@uob-web-and-digital/component-library 2.5.4 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/molecules/InPageNavigationLinks/InPageNavigationLinks.stories.d.ts +1 -0
- package/dist/components/molecules/InPageNavigationLinks/defaultProps.d.ts +1 -0
- package/dist/components/organisms/HeroCourses/HeroCourses.stories.d.ts +1 -0
- 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/module.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 Wt(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 Gt(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 Kt(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 Yt(e){for(var C=1;C<arguments.length;C++){var t=null!=arguments[C]?arguments[C]:{};C%2?Kt(Object(t),!0).forEach(function(C){Gt(e,C,t[C])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Kt(Object(t)).forEach(function(C){Object.defineProperty(e,C,Object.getOwnPropertyDescriptor(t,C))})}return e}function Jt(e){return function(e){if(Array.isArray(e))return Wt(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 Wt(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)?Wt(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 Xt,Qt,ea=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)},Ca=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)},ta=function(e){return"Tab"===(null==e?void 0:e.key)||9===(null==e?void 0:e.keyCode)},aa=function(e){return ta(e)&&!e.shiftKey},la=function(e){return ta(e)&&e.shiftKey},na=function(e){return setTimeout(e,0)},ca=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},ra=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},ia=[],oa=WC(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)||ia,n=Yt({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:aa,isKeyBackward:la},C),c={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},r=function(e,C,t){return e&&void 0!==e[C]?e[C]:n[t||C]},i=function(e,C){var t="function"==typeof(null==C?void 0:C.composedPath)?C.composedPath():void 0;return c.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})})},o=function(e){var C=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=C.hasFallback,l=void 0!==t&&t,c=C.params,r=void 0===c?[]:c,i=n[e];if("function"==typeof i&&(i=i.apply(void 0,Jt(r))),!0===i&&(i=void 0),!i){if(void 0===i||!1===i)return i;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var o=i;if("string"==typeof i){try{o=a.querySelector(i)}catch(C){throw new Error("`".concat(e,'` appears to be an invalid selector; error="').concat(C.message,'"'))}if(!o&&!l)throw new Error("`".concat(e,"` as selector refers to no known node"))}return o},s=function(){var e=o("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!zt(e,n.tabbableOptions))if(i(a.activeElement)>=0)e=a.activeElement;else{var C=c.tabbableGroups[0];e=C&&C.firstTabbableNode||o("fallbackFocus")}else null===e&&(e=o("fallbackFocus"));if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},m=function(){if(c.containerGroups=c.containers.map(function(e){var C=At(e,n.tabbableOptions),t=$t(e,n.tabbableOptions),a=C.length>0?C[0]:void 0,l=C.length>0?C[C.length-1]:void 0,c=t.find(function(e){return Rt(e)}),r=t.slice().reverse().find(function(e){return Rt(e)}),i=!!C.find(function(e){return xt(e)>0});return{container:e,tabbableNodes:C,focusableNodes:t,posTabIndexesFound:i,firstTabbableNode:a,lastTabbableNode:l,firstDomTabbableNode:c,lastDomTabbableNode:r,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 Rt(e)}):t.slice(0,t.indexOf(e)).reverse().find(function(e){return Rt(e)}):C[l+(a?1:-1)]}}}),c.tabbableGroups=c.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),c.tabbableGroups.length<=0&&!o("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(c.containerGroups.find(function(e){return e.posTabIndexesFound})&&c.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}),c.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()):u(s()))},h=function(e){var C=o("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||ra(t),m();var r=null;if(c.tabbableGroups.length>0){var s=i(C,t),d=s>=0?c.containerGroups[s]:void 0;if(s<0)r=l?c.tabbableGroups[c.tabbableGroups.length-1].lastTabbableNode:c.tabbableGroups[0].firstTabbableNode;else if(l){var u=c.tabbableGroups.findIndex(function(e){var t=e.firstTabbableNode;return C===t});if(u<0&&(d.container===C||zt(C,n.tabbableOptions)&&!Rt(C,n.tabbableOptions)&&!d.nextTabbableNode(C,!1))&&(u=s),u>=0){var h=0===u?c.tabbableGroups.length-1:u-1,p=c.tabbableGroups[h];r=xt(C)>=0?p.lastTabbableNode:p.lastDomTabbableNode}else ta(t)||(r=d.nextTabbableNode(C,!1))}else{var f=c.tabbableGroups.findIndex(function(e){var t=e.lastTabbableNode;return C===t});if(f<0&&(d.container===C||zt(C,n.tabbableOptions)&&!Rt(C,n.tabbableOptions)&&!d.nextTabbableNode(C))&&(f=s),f>=0){var L=f===c.tabbableGroups.length-1?0:f+1,v=c.tabbableGroups[L];r=xt(C)>=0?v.firstTabbableNode:v.firstDomTabbableNode}else ta(t)||(r=d.nextTabbableNode(C))}}else r=o("fallbackFocus");return r},f=function(e){var C=ra(e);i(C,e)>=0||(ca(n.clickOutsideDeactivates,e)?t.deactivate({returnFocus:n.returnFocusOnDeactivate}):ca(n.allowOutsideClick,e)||e.preventDefault())},L=function(e){var C=ra(e),t=i(C,e)>=0;if(t||C instanceof Document)t&&(c.mostRecentlyFocusedNode=C);else{var a;e.stopImmediatePropagation();var l=!0;if(c.mostRecentlyFocusedNode)if(xt(c.mostRecentlyFocusedNode)>0){var r=i(c.mostRecentlyFocusedNode),o=c.containerGroups[r].tabbableNodes;if(o.length>0){var m=o.findIndex(function(e){return e===c.mostRecentlyFocusedNode});m>=0&&(n.isKeyForward(c.recentNavEvent)?m+1<o.length&&(a=o[m+1],l=!1):m-1>=0&&(a=o[m-1],l=!1))}}else c.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return xt(e)>0})})||(l=!1);else l=!1;l&&(a=p({target:c.mostRecentlyFocusedNode,isBackward:n.isKeyBackward(c.recentNavEvent)})),u(a||(c.mostRecentlyFocusedNode||s()))}c.recentNavEvent=void 0},v=function(e){(n.isKeyForward(e)||n.isKeyBackward(e))&&function(e){var C=arguments.length>1&&void 0!==arguments[1]&&arguments[1];c.recentNavEvent=e;var t=p({event:e,isBackward:C});t&&(ta(e)&&e.preventDefault(),u(t))}(e,n.isKeyBackward(e))},g=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===ca(n.escapeDeactivates,e)||(e.preventDefault(),t.deactivate())},E=function(e){var C=ra(e);i(C,e)>=0||ca(n.clickOutsideDeactivates,e)||ca(n.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},_=function(){if(c.active)return ea(l,t),c.delayInitialFocusTimer=n.delayInitialFocus?na(function(){u(s())}):u(s()),a.addEventListener("focusin",L,!0),a.addEventListener("mousedown",f,{capture:!0,passive:!1}),a.addEventListener("touchstart",f,{capture:!0,passive:!1}),a.addEventListener("click",E,{capture:!0,passive:!1}),a.addEventListener("keydown",v,{capture:!0,passive:!1}),a.addEventListener("keydown",g),t},M=function(){if(c.active)return a.removeEventListener("focusin",L,!0),a.removeEventListener("mousedown",f,!0),a.removeEventListener("touchstart",f,!0),a.removeEventListener("click",E,!0),a.removeEventListener("keydown",v,!0),a.removeEventListener("keydown",g),t},b="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver(function(e){e.some(function(e){return Array.from(e.removedNodes).some(function(e){return e===c.mostRecentlyFocusedNode})})&&u(s())}):void 0,Z=function(){b&&(b.disconnect(),c.active&&!c.paused&&c.containers.map(function(e){b.observe(e,{subtree:!0,childList:!0})}))};return t={get active(){return c.active},get paused(){return c.paused},activate:function(e){if(c.active)return this;var C=r(e,"onActivate"),t=r(e,"onPostActivate"),l=r(e,"checkCanFocusTrap");l||m(),c.active=!0,c.paused=!1,c.nodeFocusedBeforeActivation=d(a),null==C||C();var n=function(){l&&m(),_(),Z(),null==t||t()};return l?(l(c.containers.concat()).then(n,n),this):(n(),this)},deactivate:function(e){if(!c.active)return this;var C=Yt({onDeactivate:n.onDeactivate,onPostDeactivate:n.onPostDeactivate,checkCanReturnFocus:n.checkCanReturnFocus},e);clearTimeout(c.delayInitialFocusTimer),c.delayInitialFocusTimer=void 0,M(),c.active=!1,c.paused=!1,Z(),Ca(l,t);var a=r(C,"onDeactivate"),i=r(C,"onPostDeactivate"),o=r(C,"checkCanReturnFocus"),s=r(C,"returnFocus","returnFocusOnDeactivate");null==a||a();var m=function(){na(function(){s&&u(h(c.nodeFocusedBeforeActivation)),null==i||i()})};return s&&o?(o(h(c.nodeFocusedBeforeActivation)).then(m,m),this):(m(),this)},pause:function(e){return c.active?(c.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return c.active?(c.manuallyPaused=!1,l[l.length-1]!==this?this:this._setPausedState(!1,e)):this},updateContainerElements:function(e){var C=[].concat(e).filter(Boolean);return c.containers=C.map(function(e){return"string"==typeof e?a.querySelector(e):e}),c.active&&m(),Z(),this}},Object.defineProperties(t,{_isManuallyPaused:{value:function(){return c.manuallyPaused}},_setPausedState:{value:function(e,C){if(c.paused===e)return this;if(c.paused=e,e){var t=r(C,"onPause"),a=r(C,"onPostPause");null==t||t(),M(),Z(),null==a||a()}else{var l=r(C,"onUnpause"),n=r(C,"onPostUnpause");null==l||l(),m(),_(),Z(),null==n||n()}return this}}}),t.updateContainerElements(e),t}})),sa=WC(Ut);var ma=function(){if(Qt)return Xt;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,r(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 c(e,C){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,C){return e.__proto__=C,e},c(e,C)}function r(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+""}Qt=1;var i=e,o=_t(),s=oa.createFocusTrap,m=sa.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=r(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 c,r=t;if("string"==typeof t&&!(r=null===(c=this.getDocument())||void 0===c?void 0:c.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return r}),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&&c(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||m(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?i.Children.only(this.props.children):void 0;if(C){if(C.type&&C.type===i.Fragment)throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");return i.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}}])}(i.Component),u="undefined"==typeof Element?Function:Element;return d.propTypes={active:o.bool,paused:o.bool,focusTrapOptions:o.shape({document:o.object,onActivate:o.func,onPostActivate:o.func,checkCanFocusTrap:o.func,onPause:o.func,onPostPause:o.func,onUnpause:o.func,onPostUnpause:o.func,onDeactivate:o.func,onPostDeactivate:o.func,checkCanReturnFocus:o.func,initialFocus:o.oneOfType([o.instanceOf(u),o.string,o.bool,o.func]),fallbackFocus:o.oneOfType([o.instanceOf(u),o.string,o.func]),escapeDeactivates:o.oneOfType([o.bool,o.func]),clickOutsideDeactivates:o.oneOfType([o.bool,o.func]),returnFocusOnDeactivate:o.bool,setReturnFocus:o.oneOfType([o.instanceOf(u),o.string,o.bool,o.func]),allowOutsideClick:o.oneOfType([o.bool,o.func]),preventScroll:o.bool,tabbableOptions:o.shape({displayCheck:o.oneOf(["full","legacy-full","non-zero-area","none"]),getShadowRoot:o.oneOfType([o.bool,o.func])}),trapStack:o.array,isKeyForward:o.func,isKeyBackward:o.func}),containerElements:o.arrayOf(o.instanceOf(u)),children:o.oneOfType([o.element,o.instanceOf(u)])},d.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:s},Xt=d}(),da=UC(ma);m();var ua=function(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.onClick,n=C.label,c=C.level,r=C.autoFocus,i=void 0!==r&&r;return e.createElement("button",{className:p("nav-link",a&&"theme-".concat(a),"nav-link--".concat(c)),onClick:l,autoFocus:i},e.createElement("span",{className:"nav-link__label"},n,e.createElement("span",{className:"nav-link__icon"},e.createElement(g,{icon:"chevron-right",theme:a,ariaHidden:!0}))))};m();var ha=function(C){var t=C.theme,n=void 0===t?"uobmain":t,c=C.url,r=C.label,i=C.level,o=C.autoFocus,s=void 0!==o&&o,m=C.externalLink,d=void 0!==m&&m,u=l(null);return a(function(){s&&u.current&&u.current.focus()},[s]),e.createElement("a",{className:p("page-link",n&&"theme-".concat(n),"page-link--".concat(i)),href:c,ref:u,target:d?"_blank":"_self",rel:d?"noopener noreferrer":""},r)};function pa(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0===l||l,c=C.image,r=C.tag,i=C.title,o=C.href,s=C.linkText,m=C.description,u=C.type;return e.createElement("div",{className:p("card-menu",u&&"card-menu--".concat(u),a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"))},e.createElement("figure",{className:"card-menu__figure"},e.createElement("div",{className:"card-menu__image-wrapper"},e.createElement(k,d({},c,{altText:"",loadingAttr:"lazy"}))),e.createElement("figcaption",{className:"card-menu__text-content"},"secondary"===u&&e.createElement(e.Fragment,null,e.createElement("p",{className:"card-menu__tag card-menu__tag"},r),e.createElement("a",{className:"card-menu__link",href:o},e.createElement("h2",{className:"card-menu__title"},i))),"primary"===u?e.createElement(e.Fragment,null,e.createElement("h2",{className:"card-menu__title"},i),e.createElement("p",{className:"card-menu__description"},m),e.createElement("div",{className:"card-menu__cta"},e.createElement(b,{theme:a,url:o,title:s||i}))):e.createElement("div",{className:"card-menu__arrow"},e.createElement(g,{icon:"arrow-right",theme:a,ariaHidden:!0})))))}m();var fa=function(C){var t=C.primaryLinks,a=C.secondaryLinks,l=C.onClickNavLink,n=C.menuCards,c=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(ua,{label:C.label,onClick:function(){return l(t)},key:C.label,theme:c,level:"level-one",autoFocus:0===t}):e.createElement(ha,{label:C.label,url:C.url,key:C.label,theme:c,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(ua,{label:C.label,onClick:function(){return l(a+t.length)},key:C.label,theme:c,level:"level-two"}):e.createElement(ha,{label:C.label,url:C.url,key:C.label,theme:c,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(pa,{theme:c,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}))})))};m();var La=function(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0!==l&&l,c=C.label,r=C.onClick;return e.createElement("button",{className:p("reverse-link-with-arrow",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse")),onClick:r},e.createElement("span",{className:"reverse-link-with-arrow__title"},e.createElement("span",{className:"reverse-link-with-arrow__icon"},e.createElement(g,{icon:"arrow-left",theme:a,inverse:n,ariaHidden:!0})),c))},va=function(C){var t=C.headingLink,a=C.onClickGoBack,l=C.onClickNavLink,n=C.theme,c=C.backLinkLabel;return e.createElement("div",{className:"header__nested-menu"},e.createElement(La,{label:c,onClick:a,theme:n}),e.createElement("div",{className:"header__heading-link"},e.createElement(ha,{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:p("header__link-list",t.description&&"header__link-list--with-desc")},t.children.map(function(C,t){return C.children?e.createElement(ua,{label:C.label,onClick:function(){return l(t)},key:C.label,theme:n,level:"level-two"}):e.createElement(ha,{label:C.label,url:C.url,key:C.label,theme:n,level:"level-two",externalLink:C.externalLink})}))))};m();var ga=function(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0!==l&&l,c=C.fieldName,r=C.hiddenLabel,i=void 0!==r&&r,o=C.defaultValue,s=C.placeholder,m=C.required,d=void 0!==m&&m,u=C.onChange;return e.createElement("div",{className:p("form-input",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"))},e.createElement("label",{htmlFor:c,className:p("form-input__label",i&&"sr-only")},"Select ",c),e.createElement("input",{className:"form-input__input",id:c,name:c,type:"text",required:d,defaultValue:o,placeholder:s,onChange:u}))},Ea=function(C){var t=C.title,a=void 0===t?"Search":t,l=C.placeholder,n=void 0===l?"Start typing":l,c=C.introText,r=C.handleSearchChange,i=C.handleSearchSubmit,o=C.theme,s=C.inverse,m=C.onClickGoBack,d=C.backLinkLabel,u=C.recommendedLinks,h=C.recommendedLinkTitle;return e.createElement("div",{className:"header-search"},m&&d&&e.createElement("div",{className:"header-search__back-link"},e.createElement(La,{label:d,onClick:m,theme:o})),e.createElement("div",{className:"header-search__container"},e.createElement("h2",{className:"header-search__title"},a),e.createElement("p",{className:"header-search__intro"},c),e.createElement("form",{className:"header-search__form",method:"post",onSubmit:i},e.createElement("div",{className:"header-search__search-wrapper"},e.createElement(ga,{theme:o,inverse:!1,fieldName:"search",hiddenLabel:!0,placeholder:n,onChange:r}),e.createElement(qe,{theme:o,inverse:!s,title:"Search",icon:"search",isSubmit:!0})),e.createElement(M,{theme:o,inverse:!s,label:"Search",isSubmit:!0}))),u&&e.createElement("div",{className:"header-search__recommended-links-wrapper"},h&&e.createElement("h3",{className:"header-search__recommended-link-title"},h),e.createElement("ul",{className:"header-search__recommended-links"},u.map(function(C,t){return e.createElement("li",{className:"header-search__recommended-link",key:t},e.createElement(SC,{theme:o,url:C.url,title:C.label,externalLink:C.externalLink}))}))))};function _a(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.label,n=C.url,c=C.externalLink,r=C.active,i=void 0!==r&&r;return e.createElement("a",{className:p("campus-selector-link",a&&"theme-".concat(a),i&&"campus-selector-link--active"),href:n,target:c?"_blank":"_self",rel:"noreferrer"},l)}function Ma(C){var t=C.active,a=C.theme,l=C.ukUrl,n=C.dubaiUrl,c=C.mobile;return e.createElement("div",{className:p("campus-selector",a&&"theme-".concat(a),c&&"campus-selector--mobile",!c&&"campus-selector--desktop")},e.createElement("div",{className:"campus-selector__container"},e.createElement("span",{className:"campus-selector__label"},"Select campus:"),c?e.createElement(e.Fragment,null,e.createElement(M,{label:"UK",theme:a,inverse:!0,url:l,hollow:"uk"!==t}),e.createElement(M,{label:"Dubai",theme:a,inverse:!0,url:n,hollow:"dubai"!==t})):e.createElement(e.Fragment,null,e.createElement(_a,{label:"UK",theme:a,url:l,active:"uk"===t}),e.createElement(_a,{label:"Dubai",theme:a,url:n,active:"dubai"===t}))))}m(),m(),m();var ba=function(C){var n=C.theme,c=void 0===n?"uobmain":n,i=C.primaryLinks,o=C.secondaryLinks,m=C.menuCards,d=C.dubaiUrl,h=C.ukUrl,f=C.logoTitleTagH1,L=void 0===f||f,v=C.activeCampus,g=void 0===v?"uk":v,E=C.searchProps,_=function(){var e=t(null),C=e[0],l=e[1];return a(function(){var e=window.scrollY,t=function(){var t=window.scrollY,a=t>e?"down":"up";a!==C&&(t-e>3||t-e<-3)&&l(a),e=t>0?t:0};return window.addEventListener("scroll",t),function(){window.removeEventListener("scroll",t)}},[C]),C}(),b=t(!1),Z=b[0],H=b[1],w=l(null),V=l(null),y=l(null),N=ye("768px"),k=t(0),x=k[0],T=k[1],S=t(null),P=S[0],O=S[1],q=t(null),F=q[0],B=q[1],D=t(!1),I=D[0],A=D[1],$=t(!1),R=$[0],j=$[1],z=t(""),U=z[0],W=z[1],G=function(){H(!0),document.body.classList.add("lock-scroll")},K=function(){A(!0),G()},Y=function(){A(!1),j(!1)},J=function(){H(!1),Y(),document.body.classList.remove("lock-scroll"),T(0),O(null),B(null),w.current&&w.current.focus()},X=function(){T(0),O(null),Y()},Q=function(){T(1),B(null),Y()},ee=function(e){"Escape"===e.key&&Z&&J()};a(function(){return document.addEventListener("keydown",ee),function(){document.removeEventListener("keydown",ee)}}),a(function(){if(V.current&&"down"===_){var e=V.current.offsetHeight;V.current.style.top="-".concat(e,"px")}else if(V.current&&"up"===_){var C=0;y.current&&V.current&&(C=y.current.offsetHeight),V.current.style.top="-".concat(C,"px")}},[_]);var Ce=null,te=null;null!==P&&(Ce=u(u([],i,!0),o,!0)[P],null!==F&&Ce.children&&(te=Ce.children[F]));var ae=e.createElement("div",{className:"header__campus-selector header__campus-selector--mobile"},e.createElement(Ma,{theme:c,dubaiUrl:d,ukUrl:h,active:g,mobile:!0})),le=e.createElement("div",{className:"header__campus-selector header__campus-selector--desktop",ref:y},e.createElement(Ma,{theme:c,dubaiUrl:d,ukUrl:h,active:g,mobile:!1})),ne=e.createElement("div",{className:"header__campus-selector header__campus-selector--desktop"},e.createElement(Ma,{theme:c,dubaiUrl:d,ukUrl:h,active:g,mobile:!1})),ce=function(e){W(e.target.value)},re=function(e){if(e.preventDefault(),"undefined"!=typeof window){var C=E.resultsUrl;window.location.href=U?"".concat(C,"?term=").concat(U):"".concat(C)}};return e.createElement("header",{className:p("header",c&&"theme-".concat(c),!Z&&"header--is-closed","header--".concat(g)),id:"header",ref:V},e.createElement("div",{className:"header__closed"},le,e.createElement("div",{className:"header__top-container"},e.createElement("div",{className:"header__logo-wrapper"},e.createElement(qC,{activeCampus:g,imageMode:"light",classNames:"header__logo-link"},L?e.createElement("h1",{className:"sr-only"},"uk"===g?"University of Birmingham":"University of Birmingham Dubai"):e.createElement("span",{className:"sr-only"},"uk"===g?"University of Birmingham":"University of Birmingham Dubai"))),e.createElement("div",{className:"header__right-wrapper"},e.createElement("div",{className:"header__search-button"},e.createElement(M,{theme:c,label:"Search",onClick:function(){j(!0),K()},hollow:!0})),e.createElement("div",{className:"header__menu-button"},e.createElement("span",null,"Menu"),e.createElement(qe,{theme:"uobmain",icon:"hamburger",onClick:G,title:"Open menu",ariaControls:"header",ref:w,ariaExpanded:Z}))))),e.createElement(s,null,Z&&e.createElement(da,null,e.createElement(r.div,{className:"header__open",initial:{x:"100%"},animate:{x:"0"},exit:{x:"100%"},transition:{type:"tween"},key:"header__open"},ne,e.createElement("div",{className:"header__top-container"},e.createElement("div",{className:"header__logo-wrapper"},e.createElement(qC,{activeCampus:g,imageMode:"dark",classNames:"header__logo-link"},e.createElement("h1",{className:"sr-only"},"uk"===g?"University of Birmingham":"University of Birmingham Dubai"))),e.createElement("div",{className:"header__right-wrapper"},!N&&!I&&e.createElement("div",{className:"header__search-button-menu"},e.createElement(M,{theme:c,inverse:!0,label:"Search",onClick:K,hollow:!0})),e.createElement("div",{className:"header__menu-button"},e.createElement("span",null,"Menu"),e.createElement(qe,{theme:"uobmain",inverse:!0,icon:"cross",onClick:J,title:"Close menu",ariaControls:"header"})))),N&&!I&&e.createElement("div",{className:"header__search-button-mobile"},e.createElement(M,{theme:c,inverse:!0,label:"Search",onClick:K,hollow:!0})),0===x&&!I&&e.createElement(fa,{primaryLinks:i,secondaryLinks:o,menuCards:m,onClickNavLink:function(e){T(1),O(e)},theme:c}),0===x&&I&&e.createElement(Ea,{theme:c,introText:E.introText,placeholder:E.placeholder,title:E.title,handleSearchChange:ce,handleSearchSubmit:re,onClickGoBack:R?void 0:X,backLinkLabel:R?"":"Back to menu",recommendedLinks:E.recommendedLinks,recommendedLinkTitle:E.recommendedLinkTitle}),1===x&&Ce&&!I&&e.createElement(va,{headingLink:Ce,onClickNavLink:function(e){T(2),B(e)},theme:c,onClickGoBack:X,backLinkLabel:"Back to menu"}),1===x&&Ce&&I&&e.createElement(Ea,{theme:c,introText:E.introText,placeholder:E.placeholder,title:E.title,handleSearchChange:ce,handleSearchSubmit:re,onClickGoBack:Q,backLinkLabel:"Back to ".concat(Ce.label),recommendedLinks:E.recommendedLinks,recommendedLinkTitle:E.recommendedLinkTitle}),2===x&&Ce&&te&&!I&&e.createElement(va,{headingLink:te,onClickNavLink:function(){},theme:c,onClickGoBack:Q,backLinkLabel:"Back to ".concat(Ce.label)}),2===x&&Ce&&te&&I&&e.createElement(Ea,{theme:c,introText:E.introText,placeholder:E.placeholder,title:E.title,handleSearchChange:ce,handleSearchSubmit:re,onClickGoBack:function(){T(2),Y()},backLinkLabel:"Back to ".concat(te.label),recommendedLinks:E.recommendedLinks,recommendedLinkTitle:E.recommendedLinkTitle}),ae))))},Za={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 Ha(C){var t,n,i=C.isMobile,o=C.isTablet,s=C.image,m=i?Za.mobile:o?Za.tablet:Za.desktop,d=l(null),u=c();return a(function(){var e;d.current&&d.current.setAttribute("fetchpriority",null!==(e=s.fetchPriority)&&void 0!==e?e:"auto")}),e.createElement(e.Fragment,null,e.createElement(r.div,{className:"hero__polygon-image-wrapper"},e.createElement(r.img,{ref:d,className:"hero__image",src:s.src.default,srcSet:"".concat(null!==(t=s.src.small)&&void 0!==t?t:s.src.default," 576w, ").concat(null!==(n=s.src.medium)&&void 0!==n?n:s.src.default," 992w, ").concat(s.src.default," 1440w"),alt:s.alt,fetchPriority:s.fetchPriority,animate:{clipPath:m.image},transition:{type:"tween"}}),e.createElement(r.div,{key:u,className:"hero__polygon-image-background",animate:{opacity:1,clipPath:m.background},transition:{type:"tween"},initial:{opacity:0}})))}m();var wa={initial:{pathLength:0},animate:{pathLength:1},transition:{delay:.5,duration:1}};function Va(C){var t=C.isMobile,a=C.isTablet;return t?e.createElement(e.Fragment,null,e.createElement(r.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(r.path,d({d:"M0 1H140"},wa)))),e.createElement(r.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(r.path,d({d:"M0 1H140"},wa))))):a?e.createElement(e.Fragment,null,e.createElement(r.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(r.path,d({d:"M0 1H140"},wa)))),e.createElement(r.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(r.path,d({d:"M0 1H140"},wa))))):e.createElement(e.Fragment,null,e.createElement(r.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(r.path,d({d:"M0 1H140"},wa)))),e.createElement(r.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(r.path,d({d:"M0 1H140"},wa)))))}m();var ya=function(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0!==l&&l,c=C.fieldName,r=C.selectOptions,i=C.defaultValue,o=void 0===i?"all":i,s=C.hiddenLabel,m=void 0!==s&&s,d=C.customLabel,u=C.title,h=C.onChange,f=C.value;return e.createElement("div",{className:p("form-select",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"))},d?e.createElement("label",{htmlFor:c,className:p("form-select__label",m&&"sr-only")},d):e.createElement("label",{htmlFor:c,className:p("form-select__label",m&&"sr-only")},"Select ",c),e.createElement("div",{className:"form-select__select-wrapper"},e.createElement("select",{className:"form-select__select",defaultValue:o,value:f,id:c,name:c,onChange:h},e.createElement("option",{value:"all"},u),r&&r.map(function(C,t){return e.createElement("option",{value:C.value,key:t},C.label)})),e.createElement("div",{className:"form-select__icon"},e.createElement(g,{icon:"arrow-down",theme:a,inverse:n}))))};function Na(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0!==l&&l,c=C.title,r=C.description,i=C.defaultSearchTerm,o=C.placeholder,s=C.filterTitle,m=C.filterFieldName,d=C.filterOptions,u=C.defaultFilter,h=void 0===u?"all":u,f=C.wrapped,L=void 0!==f&&f,v=C.fullWidth,g=void 0!==v&&v,E=C.onGrid,_=void 0!==E&&E,b=C.titleTag,Z=void 0===b?"h2":b,H=C.formSubmitHandler,V=C.filterChangeHandler,y=C.searchTermChangeHandler,N=Z;return e.createElement("div",{className:p("search-course",g&&"search-course--full-width",_&&"search-course--on-grid",L&&"search-course--wrapped",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"),!m&&"search-course--no-filter")},e.createElement("div",{className:"search-course__container"},c&&e.createElement(N,{className:"search-course__title"},c),r&&e.createElement("div",{className:"search-course__description"},e.createElement(w,{text:r,theme:a,inverse:n})),e.createElement("form",{className:"search-course__form",method:"post",onSubmit:H},e.createElement("div",{className:"search-course__search-wrapper"},e.createElement(ga,{theme:a,inverse:n,fieldName:"search",hiddenLabel:!0,defaultValue:i,placeholder:o,onChange:y}),e.createElement(qe,{theme:a,inverse:!n,title:"Search",icon:"search",isSubmit:!0}),L&&e.createElement(M,{theme:a,inverse:!n,label:"Search",isSubmit:!0})),m&&s&&d&&e.createElement(ya,{theme:a,inverse:n,title:s,fieldName:m,selectOptions:d,defaultValue:h,hiddenLabel:!0,onChange:V}),!L&&e.createElement(M,{theme:a,inverse:!n,label:"Search",isSubmit:!0}))))}function ka(C){var t=C.theme,a=C.inverse,l=C.title,n=C.titleTag,c=void 0===n?"h2":n,r=C.description,i=C.image,o=C.links,s=C.courseSearchProps,m=ye("768px"),u=ye("1248px");return e.createElement("div",{className:p("hero",t&&"theme-".concat(t),a&&"theme-".concat(t,"--inverse"),i&&"hero--with-image"),id:"hero"},i&&"rectangle"===i.style&&e.createElement("div",{className:"hero__image-wrapper hero__image-wrapper--mobile hero__image-wrapper--rectangle"},e.createElement(k,d({},i,{altText:i.alt,fetchPriority:i.fetchPriority}))),i&&"lines-of-intent"===i.style&&m&&e.createElement("div",{className:"hero__image-wrapper hero__image-wrapper--mobile"},e.createElement(Ha,{isMobile:!0,isTablet:!1,image:i}),e.createElement(Va,{isMobile:!0,isTablet:!1})),e.createElement("div",{className:"hero__container"},e.createElement("div",{className:"hero__content"},e.createElement(c,{className:"hero__title"},l),r&&e.createElement("div",{className:"hero__description"},e.createElement(w,{text:r,theme:t,inverse:a})),o&&o.length>0&&e.createElement("div",{className:"hero__buttons"},o.map(function(C,l){return e.createElement(M,{theme:t,key:l,url:C.url,label:C.title,externalLink:C.externalLink,inverse:!a,hollow:1===l})})),s&&e.createElement(Na,d({theme:t,inverse:a,wrapped:!0},s))),i&&"rectangle"===i.style&&e.createElement("div",{className:"hero__image-wrapper hero__image-wrapper--desktop hero__image-wrapper--rectangle"},e.createElement(k,d({},i,{altText:i.alt,fetchPriority:i.fetchPriority}))),i&&"lines-of-intent"===i.style&&u&&e.createElement("div",{className:"hero__image-wrapper hero__image-wrapper--desktop hero__image-wrapper--polygon"},e.createElement(Ha,{isMobile:!1,isTablet:!0,image:i}),e.createElement(Va,{isMobile:!1,isTablet:!0})),i&&"lines-of-intent"===i.style&&!m&&!u&&e.createElement("div",{className:"hero__image-wrapper hero__image-wrapper--desktop hero__image-wrapper--polygon"},e.createElement(Ha,{isMobile:!1,isTablet:!1,image:i}),e.createElement(Va,{isMobile:!1,isTablet:!1}))))}function xa(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=C.label,c=C.icons;return e.createElement("div",{className:p("share-buttons",a&&"theme-".concat(a),l&&"theme-".concat(a,"--inverse"))},n&&e.createElement("div",{className:"share-buttons__label"},n),c&&e.createElement("ul",{className:"share-buttons__icon-wrapper"},c.map(function(C,t){return e.createElement("li",{className:"share-buttons__icon",key:t},e.createElement(qe,{theme:a,title:C.title,icon:C.icon,url:C.url,inverse:l}))})))}function Ta(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0!==l&&l,c=C.label,r=C.url,i=C.externalLink;return e.createElement("a",{className:p("paragraph-link",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse")),href:r,target:i?"_blank":"_self",rel:"noreferrer"},c)}function Sa(C){var t=C.theme,a=C.inverse,l=C.title,n=C.titleTag,c=void 0===n?"h2":n,r=C.description,i=C.cardImage,o=C.publishDate,s=C.readTime,m=C.shareButtons,u=C.author;return e.createElement("section",{className:p("hero-article",t&&"theme-".concat(t),a&&"theme-".concat(t,"--inverse"))},e.createElement("div",{className:"hero-article__container"},e.createElement("div",{className:"hero-article__content"},e.createElement(c,{className:"hero-article__title"},l),e.createElement("p",{className:"hero-article__description"},r),e.createElement("div",{className:"hero-article__meta-data"},o&&e.createElement("span",{className:"hero-article__publish-date"},o),o&&s&&e.createElement("span",{className:"hero-article__separator"},"•"),s&&e.createElement("span",{className:"hero-article__read-time"},s),u&&e.createElement(e.Fragment,null,e.createElement("span",{className:"hero-article__separator"},"•"),e.createElement("span",{className:"hero-article__author"},"by ",e.createElement(Ta,d({},u))))),e.createElement("div",{className:"hero-article__sharing-buttons"},e.createElement(xa,{theme:t,label:m.label,icons:m.icons,inverse:a})))),i&&e.createElement("div",{className:"hero-article__image-wrapper"},e.createElement(Ge,d({},i,{inverse:a}))))}function Pa(C){var a=C.theme,l=C.inverse,n=C.buttonLabel,c=C.hollow,r=C.modalChildren,i=t(!1),o=i[0],s=i[1],m=function(){s(!1),document.body.classList.remove("lock-scroll")};return e.createElement("div",{className:p("modal-cta-button",a&&"theme-".concat(a),l&&"theme-".concat(a,"--inverse"))},e.createElement(M,{inverse:l,label:n,onClick:function(){o?m():(s(!0),document.body.classList.add("lock-scroll"))},theme:a,hollow:c}),o&&e.createElement(Be,{centred:!0,theme:a,closeModal:m,isOpen:o},e.createElement(iC,{className:"modal-cta-button__embed-wrapper"},r)))}function Oa(C){var t=C.title,a=C.value,l=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"},a)),l&&e.createElement("div",{className:"course-tile__link-wrapper"},e.createElement(BC,d({},l,{inverse:!0,onClick:function(e){return DC(e,l.url||"#")}}))))}function qa(C){var t=C.title,a=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(ya,d({},a,{inverse:!0}))))}function Fa(C){var t=C.title,a=C.rank,l=C.rankText,n=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"},a),e.createElement("div",{className:"course-tile-ranking__rank-text"},l)),n&&e.createElement("div",{className:"course-tile-ranking__link-wrapper"},e.createElement(BC,d({},n,{inverse:!0,onClick:function(e){return DC(e,n.url||"#")}}))))}function Ba(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0===l||l,c=C.topPadding,r=void 0!==c&&c,i=C.selectorProps;return e.createElement("div",{className:p("location-selector",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"))},e.createElement("div",{className:p("location-selector__container",r&&"location-selector__container--padding-top")},e.createElement(ya,d({},i,{inverse:n}))))}function Da(C){var t,a=C.theme,l=C.title,n=C.titleTag,c=void 0===n?"h2":n,r=C.awardShort,i=C.links,o=C.ranking,s=C.award,m=C.campus,u=C.ucas,h=C.duration,f=C.entryRequirements,L=C.startDate,v=C.yearOfEntry,g=C.fees,E=C.deliveryFormat,_=C.locationDetails,b=C.modalCTA;return e.createElement("section",{className:p("hero-courses",a&&"theme-".concat(a)),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(H,{htmlTag:c,classNames:"hero-courses__title"},l&&l.length>0&&r&&r.length>0?l+" ":l,e.createElement("span",{className:"hero-courses__title-award"},r))),_&&e.createElement("div",{className:"hero-courses__location-wrapper"},e.createElement(Ba,d({},_,{inverse:!1}))),e.createElement("ul",{className:(t="hero-courses__grid--four",o&&(m||E||u)?t="hero-courses__grid--six":(o&&!m&&!E&&!u||!o&&(m||E||u))&&(t="hero-courses__grid--five"),"hero-courses__grid "+t)},o&&e.createElement("li",{className:"hero-courses__column hero-courses__column--ranking"},e.createElement(Fa,d({},o))),(u||m||E)&&e.createElement("li",{className:"hero-courses__column hero-courses__column--split hero-courses__column--award"},u&&e.createElement(Oa,d({},u)),m&&e.createElement(Oa,d({},m)),E&&e.createElement(Oa,d({},E))),h&&v?e.createElement("li",{className:"hero-courses__column hero-courses__column--split hero-courses__column--duration"},e.createElement(qa,d({},v)),e.createElement(Oa,d({},h))):h&&L?e.createElement("li",{className:"hero-courses__column hero-courses__column--split hero-courses__column--duration"},e.createElement(Oa,d({},L)),e.createElement(Oa,d({},h))):e.createElement("li",{className:"hero-courses__column hero-courses__column--duration"},e.createElement(Oa,d({},h))),s&&e.createElement("li",{className:"hero-courses__column hero-courses__column--delivery-format"},e.createElement(Oa,d({},s))),e.createElement("li",{className:"hero-courses__column hero-courses__column--entry-requirements"},e.createElement(Oa,d({},f))),e.createElement("li",{className:"hero-courses__column hero-courses__column--fees"},e.createElement(Oa,d({},g)))),e.createElement("div",{className:"hero-courses__button-wrapper"},e.createElement("ul",{className:"hero-courses__buttons"},i&&i.map(function(C,t){return C.externalLink?e.createElement("li",{className:"hero-courses__button",key:t},e.createElement(De,{theme:a,label:C.label,icon:"external",hollow:t%2!=0,iconPosition:"right",url:C.url,inverse:!0})):e.createElement("li",{className:"hero-courses__button",key:t},e.createElement(M,{theme:a,label:C.label,hollow:t%2!=0,url:C.url,inverse:!0}))})),b&&e.createElement(Pa,{theme:a,inverse:!b.inverse,hollow:!0,buttonLabel:b.buttonLabel,modalChildren:b.modalChildren})))))}m(),m(),m(),m(),m(),m(),m();var Ia={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}},Aa={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))"}},$a={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}},Ra={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%"}},ja={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}},za={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%"}},Ua={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)"}},Wa={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)"}},Ga={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)"}},Ka={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)"}},Ya={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)"}},Ja={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)"}},Xa={initial:{pathLength:0},animate:{pathLength:1},transition:{delay:.5,duration:1}};function Qa(C){var t=C.isMobile,a=C.isTablet,l=C.activeVariant;return t?e.createElement(e.Fragment,null,e.createElement(r.div,{className:"hero-carousel__line",variants:Ua,animate:l,initial:!1},e.createElement("svg",{width:"140",height:"2",viewBox:"0 0 140 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(r.path,d({d:"M0 1H140",stroke:"black"},Xa)))),e.createElement(r.div,{className:"hero-carousel__line",variants:Wa,animate:l,initial:!1},e.createElement("svg",{width:"140",height:"2",viewBox:"0 0 140 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(r.path,d({d:"M0 1H140",stroke:"black"},Xa))))):a?e.createElement(e.Fragment,null,e.createElement(r.div,{className:"hero-carousel__line",variants:Ga,animate:l,initial:!1},e.createElement("svg",{width:"260",height:"2",viewBox:"0 0 260 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(r.path,d({d:"M0 1H260",stroke:"black"},Xa)))),e.createElement(r.div,{className:"hero-carousel__line",variants:Ka,animate:l,initial:!1},e.createElement("svg",{width:"260",height:"2",viewBox:"0 0 260 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(r.path,d({d:"M0 1H260",stroke:"black"},Xa))))):e.createElement(e.Fragment,null,e.createElement(r.div,{className:"hero-carousel__line",variants:Ya,animate:l,initial:!1},e.createElement("svg",{width:"360",height:"2",viewBox:"0 0 360 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(r.path,d({d:"M0 1H360",stroke:"black"},Xa)))),e.createElement(r.div,{className:"hero-carousel__line",variants:Ja,animate:l,initial:!1},e.createElement("svg",{width:"360",height:"2",viewBox:"0 0 360 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(r.path,d({d:"M0 1H360",stroke:"black"},Xa)))))}function el(C){var t,n,i=C.isMobile,o=C.isTablet,m=C.activeVariant,d=C.imageSrc,u=C.imageAlt,h=C.imageFetchPriority,p=l(null),f=c();return a(function(){p.current&&p.current.setAttribute("fetchpriority",null!=h?h:"high")}),e.createElement(e.Fragment,null,e.createElement(s,null,e.createElement(r.div,{className:"hero-carousel__image-wrapper",transition:{delayChildren:1}},e.createElement(r.img,{ref:p,className:"hero-carousel__image",src:d.default,srcSet:"".concat(null!==(t=d.small)&&void 0!==t?t:d.default," 576w, ").concat(null!==(n=d.medium)&&void 0!==n?n:d.default," 992w, ").concat(d.default," 1440w"),alt:u,variants:i?Aa:o?Ra:za,animate:m,initial:{clipPath:"polygon(0 0, 0 0, 0 0, 0 0)"},transition:{type:"tween"}}),e.createElement(r.div,{key:f,className:"hero-carousel__image-background",variants:i?Ia:o?$a:ja,animate:["visible",m],exit:{backgroundColor:"rgba(255, 255, 255, 0)"},transition:{type:"tween"},initial:{opacity:0,clipPath:"polygon(1% 1%, 1% 1%, 1% 1%, 1% 1%)"}}))))}var Cl=C(function(C,t){var a=C.theme,l=C.category,n=C.title,c=C.description,r=C.linkUrl,i=C.linkLabel,o=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"},c),e.createElement("div",{className:"hero-carousel__cta"},e.createElement(b,{url:r,title:i,theme:a,inverse:!0,onKeyDown:o,ref:t})))});function tl(C){var a=C.theme,n=C.cards,c=n.length>1,i=t(0),o=i[0],s=i[1],m=n[o],d=l(null),u=ye("768px"),h=ye("1248px"),f="";switch(o){case 0:f="first";break;case 1:f="second";break;case 2:f="third"}var L=c?e.createElement(CC,{theme:a,totalNumber:n.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===n.length-1,showNumbers:!0}):e.createElement(e.Fragment,null);return e.createElement("div",{className:p("hero-carousel",a&&"theme-".concat(a)),id:"hero-carousel"},e.createElement("div",{className:"hero-carousel__top"},e.createElement("div",{className:"hero-carousel__content"},u&&e.createElement("div",{className:"hero-carousel__image-container hero-carousel__image-container--mobile"},e.createElement(el,{isMobile:!0,isTablet:!1,activeVariant:f,imageSrc:m.imageSrc,imageAlt:m.imageAlt}),e.createElement(Qa,{isMobile:!0,isTablet:!1,activeVariant:f})),e.createElement("div",{className:"hero-carousel__cards"},e.createElement(r.section,{className:"hero-carousel__active-card",key:o,initial:{opacity:0},animate:{opacity:1}},e.createElement(Cl,{category:m.category,title:m.title,description:m.description,linkUrl:m.linkUrl,linkLabel:m.linkLabel,theme:a,ref:d})),u&&c&&n.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(Cl,{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"},L)),e.createElement("div",{className:"hero-carousel__image-container hero-carousel__image-container--desktop"},e.createElement(el,{isMobile:!1,isTablet:h,activeVariant:f,imageSrc:m.imageSrc,imageAlt:m.imageAlt}),e.createElement(Qa,{isMobile:!1,isTablet:h,activeVariant:f}))),!u&&c&&n.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(Cl,{category:C.category,title:C.title,description:C.description,linkUrl:C.linkUrl,linkLabel:C.linkLabel,theme:a})))})),u&&e.createElement("div",{className:"hero-carousel__nav hero-carousel__nav--mobile"},L))}function al(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=C.title,c=C.description,r=C.linkProps,i=C.fullWidth,o=C.makeHeadingFullWidth,s=C.images,m=C.htmlTag;if(!s||0===s.length)return null;var u=s.length>2?Array.from(s.slice(0,2)):Array.from(s);return e.createElement("div",{className:p("image-block",a&&"theme-".concat(a),l&&"theme-".concat(a,"--inverse"),i&&"image-block--full-width")},(n||c||r)&&e.createElement(y,{theme:a,inverse:l,title:n,description:c,linkProps:r,fullWidth:!!o,htmlTag:m}),e.createElement("div",{className:"image-block__container"},u&&u.map(function(C,t){var n=p({"image-block__image-container-single-image-full-width-true":1===s.length&&i,"image-block__image-container-single-image-full-width-false":1===s.length&&!i,"image-block__image-container-first-image-full-width-true":s.length>1&&0===t&&i,"image-block__image-container-first-image-full-width-false":s.length>1&&0===t&&!i,"image-block__image-container-second-image-full-width-true":s.length>1&&1===t&&i,"image-block__image-container-second-image-full-width-false":s.length>1&&1===t&&!i});return e.createElement("div",{key:t,className:n},e.createElement(Ge,d({},C,{theme:a,inverse:l})))})))}function ll(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0!==l&&l,c=C.title,r=C.description,i=C.linkProps,o=C.fullWidth,s=void 0!==o&&o,m=C.widerImage,d=C.images,u=C.htmlTag;return e.createElement("section",{className:p("image-carousel",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"),s&&"image-carousel--full-width",m&&"image-carousel--wider-image")},(c||r)&&e.createElement(y,{theme:a,htmlTag:u,inverse:n,title:c,description:r,linkProps:i}),e.createElement("div",{className:"image-carousel__grid"},e.createElement(tC,{theme:a,inverse:n,type:"image",cards:d})))}function nl(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.heading,n=void 0===l?"Page contents":l,c=C.links,r=C.buttonLinks,i=C.locationDetails;return e.createElement("div",{className:p("in-page-navigation-links",a&&"theme-".concat(a))},e.createElement("h2",{className:"in-page-navigation-links__heading"},n),i&&e.createElement(Ba,d({},i,{inverse:!0})),e.createElement("nav",null,e.createElement("ul",{className:"in-page-navigation-links__link-container"},c.map(function(C){return e.createElement("li",{className:p("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 function(e,C){var t;e.preventDefault(),null===(t=document.querySelector(C))||void 0===t||t.scrollIntoView({behavior:"smooth"})}(e,C.url)}},C.title))}))),e.createElement("ul",null,r&&r.map(function(C,t){return C.externalLink?e.createElement("li",{className:"in-page-navigation-links__link-button",key:t},e.createElement(De,{theme:a,label:C.label,icon:"external",hollow:t%2!=0,iconPosition:"right",url:C.url})):e.createElement("li",{className:"in-page-navigation-links__link-button",key:t},e.createElement(M,{theme:a,label:C.label,hollow:t%2!=0,url:C.url}))})))}function cl(C){var n,c,i=C.theme,o=void 0===i?"uobmain":i,m=C.inverse,u=void 0!==m&&m,h=C.links,f=C.expandableHeader,L=void 0===f?"Page contents":f,v=t(!1),g=v[0],E=v[1],_=t("not-docked"),M=_[0],b=_[1],Z=t(null),H=Z[0],w=Z[1],V=l(null),y=l(null),N=l(null),k=l(null),x=l(null),T=function(){E(!1)};return a(function(){var e=function(e){!n.current||e.target instanceof HTMLElement&&n.current.contains(e.target)||c()};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),function(){document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[n=x,c=function(){return T()}]),a(function(){var e;N.current=new IntersectionObserver(function(C){var t;e=null===(t=C.find(function(e){return e.isIntersecting}))||void 0===t?void 0:t.target,b(e?"docked":"not-docked")},{rootMargin:"0px 0px -100%"}),y.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?b("docked-at-bottom"):!a&&e&&b("docked")}),V.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&&w(t.id)},{rootMargin:"0px 0px -".concat(.7*window.innerHeight,"px 0px")});var C=document.querySelectorAll(".anchor-target");C.forEach(function(e){V&&V.current&&V.current.observe(e)});var t=document.querySelectorAll("#footer");t.forEach(function(e){y&&y.current&&y.current.observe(e)});var a=document.querySelectorAll("#sidebar");return a.forEach(function(e){N&&N.current&&N.current.observe(e)}),function(){C.forEach(function(e){V&&V.current&&V.current.unobserve(e)}),a.forEach(function(e){N&&N.current&&N.current.unobserve(e)}),t.forEach(function(e){y&&y.current&&y.current.unobserve(e)})}},[]),h.links.map(function(e){return e.url.substring(1)===H?e.active=!0:e.active=!1}),e.createElement("div",{className:p("in-page-navigation",o&&"theme-".concat(o),u&&"theme-".concat(o,"--inverse"))},e.createElement("div",{className:p("in-page-navigation--mobile",M)},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"},L),e.createElement(qe,{theme:"uobmain",icon:"menu",onClick:function(){E(!0)},title:"Open menu",ariaControls:"in-page-navigation",ref:k,ariaExpanded:g})))))),g&&e.createElement("div",{className:"in-page-navigation__overlay"}),e.createElement(s,null,g&&e.createElement(r.div,{className:"in-page-navigation__open",initial:{x:"100%"},animate:{x:"0"},exit:{x:"100%"},transition:{type:"tween"},key:"in-page-navigation__open",ref:x},e.createElement(Fe,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(qe,{theme:"uobmain",inverse:!0,icon:"cross",onClick:T,title:"Close menu",ariaControls:"in-page-navigation"})))),e.createElement(nl,d({},h,{theme:"uobmain"})))))),e.createElement("div",{className:p("in-page-navigation--desktop",M)},e.createElement(nl,d({},h,{theme:o}))))}function rl(C){var t=C.text,a=C.theme,l=void 0===a?"uobmain":a,n=C.inverse,c=C.fullWidth,r=C.removeBottomPadding,i=void 0!==r&&r,o=C.removeTopPadding,s=void 0!==o&&o;return e.createElement("div",{className:p("intro-text",l&&"theme-".concat(l),n&&"theme-".concat(l,"--inverse"),c&&"intro-text--full-width",i&&"intro-text--no-bottom-padding",s&&"intro-text--no-top-padding")},e.createElement("div",{className:"intro-text__container"},e.createElement("p",{className:"intro-text__text"},t)))}function il(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.heading,n=C.cards,c=C.link;return e.createElement("div",{className:p("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(Ke,{theme:a,title:C.title,href:C.href,titleTag:"h3",publishDate:C.publishDate}))})),c&&e.createElement(b,{theme:a,inverse:!0,url:c.url,title:c.title}))}function ol(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.featuredArticle,n=C.otherLeadArticles,c=C.mostReadNews;return e.createElement("section",{className:p("lead-news-articles",a&&"theme-".concat(a))},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(Ke,d({},l,{isPrimary:!0}))),e.createElement("ul",{className:"lead-news-articles__secondary-card-container"},n.map(function(C,t){return e.createElement("li",{className:"lead-news-articles__secondary-card",key:t},e.createElement(Ke,{theme:a,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(il,d({},c)))))}function sl(C){var n=C.theme,c=C.showFilterButtonLabel,i=C.numSelected,o=C.filterElement,s=t(!1),m=s[0],d=s[1],u=l(null),h=function(e){"Escape"===e.key&&m&&d(!1)};return a(function(){return document.addEventListener("keydown",h),function(){document.removeEventListener("keydown",h)}}),a(function(){var e,C;m?null===(e=u.current)||void 0===e||e.showModal():null===(C=u.current)||void 0===C||C.close()},[m]),e.createElement(e.Fragment,null,e.createElement("div",{className:p("listing-filter-wrapper","theme-".concat(n))},e.createElement("div",{className:"listing-filter-wrapper__mobile"},e.createElement("button",{className:"listing-filter-wrapper__show-filter-button",onClick:function(){d(!0),document.body.classList.add("lock-scroll")}},e.createElement(g,{theme:"uobmain",icon:"settings"}),c,i&&e.createElement("span",{className:"listing-filter-wrapper__num-selected"},i,e.createElement("span",{className:"sr-only"},i>1?"filters":"filter"," selected"))))),e.createElement(Fe,null,e.createElement(r.dialog,{className:p("listing-filter-wrapper__dialog","theme-".concat(n)),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},ref:u},e.createElement("div",{className:"listing-filter-wrapper__popup-wrapper"},e.createElement("div",{className:"listing-filter-wrapper__popup"},e.createElement("button",{className:"listing-filter-wrapper__close-button",onClick:function(){d(!1),document.body.classList.remove("lock-scroll")}},e.createElement(g,{icon:"slim-cross",theme:n,ariaHidden:!0}),e.createElement("span",{className:"sr-only"},"Close")),o)))),e.createElement("div",{className:"listing-filter-wrapper__desktop"},o))}function ml(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.type,n=C.image,c=C.title,r=C.url,i=C.description,o=C.details,s=C.showCategory,m=void 0!==s&&s;return e.createElement(e.Fragment,null,n&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(k,d({},n))),e.createElement("div",{className:"listing-result-card__text"},m&&e.createElement("p",{className:"listing-result-card__category"},l),e.createElement("h2",null,e.createElement("a",{className:"listing-result-card__title",href:r},c)),i&&e.createElement("p",{className:"listing-result-card__description"},i),o.length>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(Qe,{details:o,theme:a}))))}function dl(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.type,n=C.image,c=C.title,r=C.titleTag,i=void 0===r?"h2":r,o=C.url,s=C.description,m=C.supervisors,u=C.department,h=C.details,p=C.showCategory,f=void 0!==p&&p;return e.createElement(e.Fragment,null,n&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(k,d({},n))),e.createElement("div",{className:"listing-result-card__text"},f&&e.createElement("p",{className:"listing-result-card__category"},l),e.createElement(H,{htmlTag:"h3"===i?"h3":"h2"},e.createElement("a",{className:"listing-result-card__title",href:o},c)),(m||u)&&e.createElement("div",{className:"listing-result-card__course-info"},m&&e.createElement("p",{className:"listing-result-card__supervisors"},"Supervisors: ",m),u&&e.createElement("p",{className:"listing-result-card__department"},u)),s&&e.createElement("p",{className:"listing-result-card__description"},s),h.length>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(Qe,{details:h,theme:a}))))}function ul(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0===l||l,c=C.type,r=C.image,i=C.title,o=C.url,s=C.description,m=C.details,u=C.showCategory,h=void 0!==u&&u,p=C.cardDescriptionIsRichText,f=void 0!==p&&p,L=C.titleTag,v=void 0===L?"h2":L;return e.createElement(e.Fragment,null,r&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(k,d({},r))),e.createElement("div",{className:"listing-result-card__text"},h&&e.createElement("p",{className:"listing-result-card__category"},c),e.createElement(H,{htmlTag:v},e.createElement("a",{className:"listing-result-card__title",href:o},i)),s&&!f&&e.createElement("p",{className:"listing-result-card__description"},s),s&&f&&e.createElement(w,{theme:a,inverse:n,text:s}),m.length>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(Qe,{details:m,theme:a}))))}function hl(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.type,n=C.image,c=C.title,r=C.url,i=C.description,o=C.author,s=C.details,m=C.showCategory,u=void 0!==m&&m;return e.createElement(e.Fragment,null,n&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(k,d({},n))),e.createElement("div",{className:"listing-result-card__text"},u&&e.createElement("p",{className:"listing-result-card__category"},l),e.createElement("h2",null,e.createElement("a",{className:"listing-result-card__title",href:r},c)),o&&e.createElement("p",{className:"listing-result-card__author"},"by ",o),i&&e.createElement("p",{className:"listing-result-card__description"},i),s.length>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(Qe,{details:s,theme:a}))))}function pl(C){var t=C.image,a=C.title,l=C.url,n=C.description;return e.createElement(e.Fragment,null,t&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(k,d({},t))),e.createElement("div",{className:"listing-result-card__text"},e.createElement("h2",null,e.createElement("a",{className:"listing-result-card__title",href:l},a)),n&&e.createElement("p",{className:"listing-result-card__description"},n)))}function fl(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.type,n=C.image,c=C.title,r=C.url,i=C.description,o=C.jobTitle,s=C.department,m=C.details,u=C.showCategory,h=void 0!==u&&u;return e.createElement(e.Fragment,null,n&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(k,d({},n))),e.createElement("div",{className:"listing-result-card__text"},h&&e.createElement("p",{className:"listing-result-card__category"},l),e.createElement("h2",null,e.createElement("a",{className:"listing-result-card__title",href:r},c)),(o||s)&&e.createElement("div",{className:"listing-result-card__staff-info"},o&&e.createElement("p",{className:"listing-result-card__job-title"},o),s&&e.createElement("p",{className:"listing-result-card__department"},s)),i&&e.createElement("p",{className:"listing-result-card__description"},i),m.length>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(Qe,{details:m,theme:a}))))}function Ll(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.image,n=C.title,c=C.url,r=C.description,i=C.jobTitle,o=C.department,s=C.details;return e.createElement(e.Fragment,null,l&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(k,d({},l))),e.createElement("div",{className:"listing-result-card__text"},e.createElement("h2",null,e.createElement("a",{className:"listing-result-card__title",href:c},n)),(i||o)&&e.createElement("div",{className:"listing-result-card__staff-info"},i&&e.createElement("p",{className:"listing-result-card__job-title"},i),o&&e.createElement("p",{className:"listing-result-card__department"},o)),r&&e.createElement("p",{className:"listing-result-card__description"},r.length>120?"".concat(r.slice(0,120),"..."):r),s.length>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(Qe,{details:s,theme:a}))))}function vl(C){return e.createElement("article",{className:p("listing-result-card",C.theme&&"theme-".concat(C.theme))},"page"===C.type&&e.createElement(pl,d({},C)),"course"===C.type&&e.createElement(dl,d({},C)),"accomodation"===C.type&&e.createElement(ml,d({},C)),"event"===C.type&&e.createElement(ul,d({},C)),"news"===C.type&&e.createElement(hl,d({},C)),"staff"===C.type&&e.createElement(fl,d({},C)),"profile"===C.type&&e.createElement(Ll,d({},C)))}function gl(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.showCategory,n=void 0!==l&&l,c=C.cards,r=C.headingInfo;return e.createElement(e.Fragment,null,r&&e.createElement(y,d({},r,{theme:a,fullWidth:!0})),e.createElement("ul",{className:p("listing-results",a&&"theme-".concat(a))},c.map(function(C,t){return e.createElement("li",{className:"listing-results__card",key:t},e.createElement(vl,d({},C,{showCategory:n,theme:a})))})))}function El(C){var t=C.count,a=C.theme,l=void 0===a?"uobmain":a;return e.createElement("p",{className:p("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")}function _l(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.listItems;return e.createElement("div",{className:p("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(w,{inverse:!0,theme:"uobmain",text:C}))})):null)}function Ml(C){var t=C.children;return e.createElement("main",{id:"main"},t)}function bl(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.heading,n=C.cards,c=C.cardType,r=void 0===c?"featured-news":c;return e.createElement("section",{className:p("news-articles-promo-block",a&&"theme-".concat(a),r&&"news-articles-promo-block--".concat(r))},e.createElement("div",{className:"news-articles-promo-block__heading-container"},l&&e.createElement("h2",{className:"news-articles-promo-block__heading"},l)),e.createElement("div",{className:"news-articles-promo-block__cards news-articles-promo-block__cards--mobile"},"featured-news"===r&&e.createElement(tC,{theme:a,type:"featured-news",cards:n,inverse:!0,cardTitleTag:"h3"}),"promo-video"===r&&e.createElement(tC,{theme:a,type:"promo-video",cards:n,inverse:!0,cardTitleTag:"h3",setCardInverse:"dark"})),e.createElement("ul",{className:"news-articles-promo-block__cards news-articles-promo-block__cards--desktop"},n.map(function(C,t){return e.createElement("li",{key:t},"featured-news"===r&&e.createElement(Ke,d({},C,{inverse:!0,titleTag:"h3"})),"promo-video"===r&&e.createElement(je,d({},C,{inverse:!1,titleTag:"h3"})))})))}function Zl(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.numOfPages,n=C.onClick,c=C.currentPage,r=ye("768px"),i=e.createElement("li",null,e.createElement("span",{className:"pagination__ellipse"},"..."));return r&&l<=4?e.createElement(e.Fragment,null,Array(l).fill(0).map(function(C,t){return e.createElement("li",{className:p("pagination__number",c===t&&"pagination__number--selected"),key:t},e.createElement(M,{label:(t+1).toString(),onClick:function(){return n(t)},hollow:!(c===t),theme:a}))})):r&&l>4?e.createElement(e.Fragment,null,c>0&&e.createElement("li",{key:0,className:"pagination__number"},e.createElement(M,{label:"1",onClick:function(){return n(0)},theme:a,hollow:!0})),c+1>=3&&i,e.createElement("li",{key:c,className:"pagination__number pagination__number--selected"},e.createElement(M,{label:"".concat(c+1," "),onClick:function(){return n(c)},theme:a})),c+1<l-1&&i,c!==l-1&&e.createElement("li",{key:l-1,className:"pagination__number"},e.createElement(M,{label:l.toString(),onClick:function(){return n(l-1)},theme:a,hollow:!0}))):!r&&l<=6?e.createElement(e.Fragment,null,Array(l).fill(0).map(function(C,t){return e.createElement("li",{key:t,className:p("pagination__number",c===t&&"pagination__number--selected","test")},e.createElement(M,{label:(t+1).toString(),onClick:function(){return n(t)},hollow:!(c===t),theme:a}))})):!r&&l>6?e.createElement(e.Fragment,null,c>0&&e.createElement("li",{key:0,className:"pagination__number start"},e.createElement(M,{label:"1",onClick:function(){return n(0)},theme:a,hollow:!0})),c+1>=4&&i,c>1&&e.createElement("li",{key:c-1,className:"pagination__number before"},e.createElement(M,{label:(c>=1?c:c-1).toString(),onClick:function(){return n(c-1)},theme:a,hollow:!0})),e.createElement("li",{key:c,className:"pagination__number pagination__number--selected current"},e.createElement(M,{label:"".concat(c+1),onClick:function(){return n(c)},theme:a})),c+1<l-1&&e.createElement("li",{key:c+1,className:"pagination__number after"},e.createElement(M,{label:"".concat(c+2),onClick:function(){return n(c+1)},theme:a,hollow:!0})),c+1<l-2&&i,c+1!==l&&e.createElement("li",{key:l-1,className:"pagination__number end"},e.createElement(M,{label:"".concat(l),onClick:function(){return n(l-1)},theme:a,hollow:!0}))):e.createElement(e.Fragment,null)}function Hl(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.numOfPages,n=C.onClick,c=C.currentPage,r=!ye("1248px");return l<=1?e.createElement(e.Fragment,null):e.createElement("div",{className:p("pagination",a&&"theme-".concat(a))},e.createElement("ul",{className:"pagination__container"},e.createElement("li",{className:"pagination__prev",key:"prev"},r?e.createElement(M,{theme:a,label:"Previous",onClick:function(){return n(c-1)},hollow:!0,disabled:c<1}):e.createElement(qe,{theme:a,icon:"arrow-left",title:"Previous",onClick:function(){return n(c-1)},disabled:c<1,inverse:!0})),e.createElement(Zl,{currentPage:c,onClick:n,theme:a,numOfPages:l}),e.createElement("li",{className:"pagination__next",key:"next"},r?e.createElement(M,{theme:a,label:"Next",onClick:function(){return n(c+1)},hollow:!0,disabled:c+1===l}):e.createElement(qe,{theme:a,icon:"arrow-right",title:"Next",onClick:function(){return n(c+1)},disabled:c+1===l,inverse:!0}))))}function wl(C){var t,a=C.theme,l=C.inverse,n=C.type,c=C.title,r=C.description,i=C.link,o=C.cards,s=C.imageOrientation,m=void 0===s?"left":s,u=C.titleTag,h=void 0===u?"h2":u,f=C.cardTitleTag,L=void 0===f?"h3":f,g=C.cardCopyIsRichText,E=void 0!==g&&g,_=C.fullWidth,M=void 0!==_&&_,Z=C.fullWidthTitle,w=void 0!==Z&&Z,V=C.showFilters,y=void 0!==V&&V,N=C.firstFilterSelect,k=C.secondFilterSelect,x=!1;ye("768px")?o.length>1&&(x=!0):(M&&o.length>2||o.length>3)&&(x=!0);var T=p(((t={})["promo-block__grid"]=!0,t["promo-block__grid--single"]=1===o.length,t["promo-block__grid--two-cards"]=2===o.length,t["promo-block__grid--three-cards"]=3===o.length,t["promo-block__grid--four-plus-cards"]=o.length>3,t));return e.createElement("div",{className:p("promo-block","promo-block--".concat(n),a&&"theme-".concat(a),l&&"theme-".concat(a,"--inverse"),M&&"promo-block--full-width")},e.createElement("div",{className:"promo-block__container"},e.createElement("div",{className:p("promo-block__top",w&&"promo-block__top--full-width")},c&&e.createElement(H,{htmlTag:h,classNames:p("promo-block__title","h3"===h&&"promo-block__title--h3")},c),r&&e.createElement(v,{theme:"uobmain",inverse:l,text:r}),i&&e.createElement("div",{className:"promo-block__text-link"},e.createElement(b,{theme:a,inverse:l,url:i.url,title:i.title,externalLink:i.externalLink}))),y&&e.createElement("div",{className:"promo-block__filters"},e.createElement("div",{className:"promo-block__filter-wrapper"},N&&e.createElement(ya,d({},N))),e.createElement("div",{className:"promo-block__filter-wrapper"},k&&e.createElement(ya,d({},k)))),e.createElement("div",{className:"promo-block__content"},e.createElement("div",{className:"promo-block__cards"},!x&&e.createElement("ul",{className:T},o.map(function(C,t){return e.createElement("li",{className:"promo-block__card-item",key:t},function(C){var t=d(d({},C),{cardCopyIsRichText:E});switch(n){case"promo":return e.createElement($e,d({},t));case"promo-signpost":return e.createElement(Re,d({},C));case"promo-video":return e.createElement(je,d({},C));case"promo-profile":return e.createElement(eC,d({},C));default:return e.createElement(e.Fragment,null)}}(d(d({},C),{inverse:l,isSingle:1===o.length,imageOrientation:m,titleTag:L})))})),x&&e.createElement(tC,{theme:a,inverse:l,type:n,cards:o,cardTitleTag:L,cardCopyIsRichText:E})))))}function Vl(C){var t=C.theme,a=C.inverse,l=C.type,n=C.title,c=C.description,r=C.link,i=C.cards,o=C.imageOrientation,s=void 0===o?"left":o,m=C.fullWidth;return e.createElement("div",{className:p("promo-block-grid","promo-block-grid--".concat(l),t&&"theme-".concat(t),a&&"theme-".concat(t,"--inverse"),m&&"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"},n&&e.createElement("h2",null,n),c&&e.createElement(v,{theme:"uobmain",inverse:a,text:c}),r&&e.createElement("div",{className:"promo-block-grid__text-link"},e.createElement(b,{theme:"uobmain",inverse:a,url:r.url,title:r.title,externalLink:r.externalLink}))),e.createElement("div",{className:"promo-block-grid__content"},e.createElement("div",{className:"promo-block-grid__cards"},i.length>0&&e.createElement("ul",{className:"promo-block-grid__grid"},i.map(function(C,t){return e.createElement("li",{className:"promo-block-grid__card-item",key:t},function(C){switch(l){case"promo":return e.createElement($e,d({},C));case"promo-signpost":return e.createElement(Re,d({},C));case"promo-video":return e.createElement(je,d({},C));default:return e.createElement(e.Fragment,null)}}(d(d({},C),{inverse:a,isSingle:1===i.length,imageOrientation:s,titleTag:n?"h3":"h2"})))}))))))}function yl(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=C.title,c=C.description,r=C.cite,i=C.role,o=C.quote,s=C.quoteeProfileImage,m=C.quoteeProfileImageAltText,d=C.cta,u=C.fullWidth,h=void 0!==u&&u,f=C.htmlTag;return e.createElement("div",{className:p("quote-block","theme-".concat(a),l&&"theme-".concat(a,"--inverse"),h&&"quote-block--full-width")},(n||c)&&e.createElement(y,{theme:a,inverse:l,htmlTag:f,title:n,description:c}),e.createElement("blockquote",{className:p("quote-block__container",!s&&"quote-block__container--no-image")},e.createElement("div",{className:"quote-block__doublequote quote-block__doublequote--open"},e.createElement(g,{icon:"quote-marks",theme:a})),e.createElement("p",{className:"quote-block__quote"},o),s&&e.createElement("div",{className:"quote-block__quotee-image"},e.createElement(k,{src:{default:s},altText:m})),(r||i)&&e.createElement("footer",{className:"quote-block__cite"},r&&e.createElement("cite",{className:"quote-block__cite-cite"},r),i&&e.createElement("div",{className:"quote-block__cite-role"},i)),e.createElement("div",{className:"quote-block__doublequote quote-block__doublequote--close"},e.createElement(g,{icon:"quote-marks",theme:a})),d&&e.createElement("div",{className:"quote-block__optional-link"},e.createElement(b,{inverse:l,onKeyDown:function(){},theme:a,title:d.title,url:d.url}))))}function Nl(C){var t,a=C.theme,l=void 0===a?"uobmain":a,n=C.inverse,c=void 0===n||n,r=C.heading,i=C.description,o=C.linkProps,s=C.headingStyle,m=C.fullWidth,u=C.cards,h=ye("768px"),f=h&&u.length>1||!h&&m&&u.length>2||!h&&!m&&u.length>3,L=p(((t={})["related-courses__grid"]=!0,t["related-courses__grid--single"]=1===u.length,t["related-courses__grid--two-cards"]=2===u.length,t["related-courses__grid--three-cards"]=3===u.length,t["related-courses__grid--four-plus-cards"]=u.length>3,t));return e.createElement("section",{className:p("related-courses",l&&"theme-".concat(l),c&&"theme-".concat(l,"--inverse"),m&&"related-courses--full-width")},e.createElement("div",{className:"related-courses__container"},e.createElement("h2",{className:p("related-courses__heading",s&&"related-courses__heading--".concat(s))},r),i&&e.createElement("div",{className:"related-courses__description"},i),o&&o.url&&o.title&&e.createElement("div",{className:"related-courses__arrow-link-container"},e.createElement(b,{theme:l,inverse:c,title:o.title,url:o.url})),e.createElement("div",{className:"related-courses__cards"},!f&&e.createElement("ul",{className:L},u.map(function(C,t){return e.createElement("li",{className:"related-courses__card-item",key:t},e.createElement(We,d({},C)))})),f&&e.createElement(tC,{theme:l,inverse:c,type:"related",cards:u,cardTitleTag:"h3"}))))}function kl(C){var t,a=C.theme,l=void 0===a?"uobmain":a,n=C.inverse,c=void 0===n||n,r=C.fullWidth,i=void 0!==r&&r,o=C.headingProps,s=C.cards,m=ye("768px"),u=m&&s.length>1||!m&&s.length>2,h=p(((t={})["scholarship-carousel__grid"]=!0,t["scholarship-carousel__grid--single"]=1===s.length,t["scholarship-carousel__grid--two-cards"]=2===s.length,t["scholarship-carousel__grid--three-plus-cards"]=s.length>3,t));return e.createElement("section",{className:p("scholarship-carousel",l&&"theme-".concat(l),c&&"theme-".concat(l,"--inverse"),i&&"scholarship-carousel--full-width")},e.createElement("div",{className:"scholarship-carousel__container"},o&&e.createElement(y,d({},o,{theme:l,inverse:c,fullWidth:i})),e.createElement("div",{className:"scholarship-carousel__cards"},!u&&e.createElement("ul",{className:h},s.map(function(C,t){return e.createElement("li",{className:"related-courses__card-item",key:t},e.createElement(Je,d({},C,{inverse:c})))})),u&&e.createElement(tC,{theme:l,inverse:c,type:"scholarship",cards:s,cardTitleTag:"h3"}))))}function xl(C){var t,a=C.theme,l=void 0===a?"uobmain":a,n=C.inverse,c=void 0===n||n,r=C.fullWidth,i=void 0!==r&&r,o=C.heading,s=C.headingStyle,m=void 0===s?null:s,u=C.cards,h=C.singleLink,f=C.titleTag,L=void 0===f?"h2":f,v=C.useCarousel,g=void 0===v||v,E=C.cardType,_=void 0===E?"staff":E,M=ye("768px"),Z=g&&M&&u.length>1||g&&!M&&u.length>2,w="staff"===_,V=p(((t={})["staff-listing-carousel__grid"]=!0,t["staff-listing-carousel__grid--single"]=1===u.length,t["staff-listing-carousel__grid--two-cards"]=2===u.length,t["staff-listing-carousel__grid--three-plus-cards"]=u.length>3,t));return e.createElement("section",{className:p("staff-listing-carousel",l&&"theme-".concat(l),c&&"theme-".concat(l,"--inverse"),i&&"staff-listing-carousel--full-width",!g&&"staff-listing-carousel--no-carousel")},e.createElement("div",{className:"staff-listing-carousel__container"},o&&e.createElement(H,{htmlTag:L,classNames:p("staff-listing-carousel__heading","staff-listing-carousel__heading--".concat(L),m&&"staff-listing-carousel__heading--".concat(m))},o),e.createElement("div",{className:"staff-listing-carousel__cards"},!Z&&e.createElement("ul",{className:V},u.map(function(C,t){return e.createElement("li",{className:"related-courses__card-item",key:t},w?e.createElement(Ue,d({},C,{theme:l,inverse:c,isSingle:1===u.length})):e.createElement(eC,d({},C,{theme:l,inverse:c})))})),Z&&e.createElement(tC,{theme:l,inverse:c,type:_,cards:u,cardTitleTag:"h3"})),1===u.length&&h&&e.createElement(b,{theme:l,url:h.url,title:h.title,inverse:!0})))}function Tl(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.sidebarElement,n=C.children;return e.createElement("div",{id:"sidebar",className:p("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)))}function Sl(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0!==l&&l,c=C.items,r=C.fullWidth,i=void 0!==r&&r,o=C.htmlTag,s=void 0===o?"h2":o;return e.createElement("div",{className:p("signpost",i&&"signpost--full-width",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"))},e.createElement("div",{className:"signpost__container"},e.createElement("div",{className:"signpost__grid"},c.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(H,{htmlTag:s,classNames:"signpost__title"},C.title),e.createElement(b,{url:C.linkUrl,title:C.linkLabel,theme:a,inverse:n,externalLink:C.external}))}))))}function Pl(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0!==l&&l,c=C.includeIcon,r=C.link,i=C.fullWidth;return e.createElement("div",{className:p("single-button",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"),i&&"single-button--full-width")},e.createElement("div",{className:"single-button__container"},c?e.createElement(De,d({},r,{inverse:!n})):e.createElement(M,d({},r,{inverse:!n}))))}function Ol(C){var t=C.theme,a=void 0===t?"uobmain":t;return e.createElement("div",{className:p("skip-to-content",a&&"theme-".concat(a))},e.createElement("a",{className:"skip-to-content__link",href:"#main"},"Skip to main content"))}function ql(e,C){return L("".concat(null!=e?e:""," ").concat(C))}function Fl(C){var t=C.children,a=C.theme,l=void 0===a?"uobmain":a,n=C.inverse,c=void 0!==n&&n;return e.createElement("div",{className:p("tabs__list__container",l&&"theme-".concat(l),c&&"theme-".concat(l,"--inverse"))},e.createElement("ul",{className:"tabs__list",role:"tablist"},t))}function Bl(C){var t=C.title,a=C.htmlTag,l=void 0===a?"h3":a,n=C.theme,c=void 0===n?"uobmain":n,r=C.inverse,i=void 0!==r&&r,o=C.isActive,s=C.children,m=C.tabsBlockName;if(!o)return null;var d=ql(null!=m?m:"",t);return e.createElement("div",{id:m,className:p("tabs__panel",c&&"theme-".concat(c),i&&"theme-".concat(c,"--inverse")),role:"tabpanel","aria-labelledby":"tab_"+d},e.createElement(H,{htmlTag:l,classNames:"tabs__panel-title"},t),s)}function Dl(C){var t=C.id,n=C.theme,c=void 0===n?"uobmain":n,r=C.inverse,i=void 0!==r&&r,o=C.tabItem,s=C.isActive,m=C.hasFocus,d=C.tabsBlockName,u=C.handleClick,h=C.handleKeyboardNavigation,f=l(null);a(function(){s&&m&&f.current&&(f.current.focus(),window.matchMedia("min-width: 768px").matches&&f.current.scrollIntoView())});var L=ql(null!=d?d:"",o.title);return e.createElement("li",{className:"tabs__list-item",role:"presentation"},e.createElement("button",{className:p("tabs__tab",c&&"theme-".concat(c),i&&"theme-".concat(c,"--inverse"),s&&"active"),onClick:function(e){return u(e,t)},onKeyDown:h,ref:f,id:"tab_"+L,role:"tab","aria-controls":L,"aria-selected":s?"true":"false",tabIndex:s?0:-1,type:"button"},o.title))}function Il(C){var c=C.theme,r=void 0===c?"uobmain":c,i=C.inverse,o=void 0!==i&&i,s=C.title,m=C.description,u=C.tabItems,h=C.fullWidth,f=C.htmlTag,L=void 0===f?"h2":f,g=C.removeBottomPadding,E=void 0!==g&&g,_=C.name,H=C.enableHashNavigation,w=void 0!==H&&H,V=l(null),k=n(function(){return u.findIndex(function(e){return ql(null!=_?_:"",e.title)===window.location.hash.substring(1)})},[u,_]),x=t(0),T=x[0],S=x[1],P=t(-1),O=P[0],q=P[1],F=ye("1248px");function B(e){if(w){var C=window.location.href.replace(window.location.hash,""),t=ql(null!=_?_:"",u[e].title);history.pushState(null,"null",C.concat("#",t))}}function D(e,C){e.preventDefault(),S(C),B(C)}a(function(){if(0!==window.location.hash.length){var e=k();e<0||(S(e),q(e))}},[k,S]);var I=function(e){switch(e.key){case"ArrowLeft":case"ArrowUp":case"Left":case"Up":if(0===T)return;S(T-1),q(T-1),B(T-1);break;case"ArrowRight":case"ArrowDown":case"Right":case"Down":if(T>=u.length-1)return;S(T+1),q(T+1),B(T+1);break;case"Home":S(0),q(0),B(0);break;case"End":S(u.length-1),q(u.length-1),B(u.length-1)}};function A(){var e="h3";return s&&"h2"===L?e="h3":s&&"h3"===L&&(e="h4"),e}return a(function(){var e=function(e){if(e.preventDefault(),0!==window.location.hash.length){var C=k();C<0||(S(C),q(C))}};return window.addEventListener("hashchange",e),function(){window.removeEventListener("hashchange",e)}},[T,k]),e.createElement(e.Fragment,null,F&&e.createElement(N,{heading:{title:s,description:m,fullWidth:h,htmlTag:L},theme:r,inverse:o,fullWidth:h,accordionItems:u.map(function(e,C){return{key:e.title||C,title:e.title,text:e.content,titleTag:e.titleTag?e.titleTag:A(),primaryButton:e.primaryButton,secondaryButton:e.secondaryButton,link:e.link}})}),e.createElement("div",{className:p("tabs",r&&"theme-".concat(r),o&&"theme-".concat(r,"--inverse"),h&&"tabs--full-width",E&&"tabs--no-bottom-padding"),id:"tabs",ref:V},!F&&e.createElement(e.Fragment,null,e.createElement(y,{theme:r,inverse:o,htmlTag:L,title:s,description:m,fullWidth:h}),e.createElement("div",{className:"tabs__container"},e.createElement("span",null,e.createElement(Fl,{theme:r,inverse:o},u.map(function(C,t){return e.createElement(Dl,{key:t,id:t,theme:r,inverse:o,tabItem:C,tabListTopRef:V,isActive:t===T,hasFocus:t===O,enableHashNavigation:w,tabsBlockName:_,handleClick:D,handleKeyboardNavigation:I})})),u.map(function(C,t){return e.createElement(Bl,{key:t,isActive:t===T,inverse:o,theme:r,title:C.title,tabsBlockName:_,htmlTag:C.titleTag?C.titleTag:A()},C.content&&e.createElement(v,{theme:r,inverse:o,text:C.content}),C.accordionItems&&C.accordionItems.map(function(C){return e.createElement(Z,d({key:C.key},C,{inverse:o}))}),(C.primaryButton&&C.primaryButton.text||C.secondaryButton&&C.secondaryButton.text)&&e.createElement("div",{className:"tabs__optional-buttons"},C.primaryButton&&C.primaryButton.text&&e.createElement(M,{label:C.primaryButton.text,url:C.primaryButton.url,theme:r,inverse:!o}),C.secondaryButton&&C.secondaryButton.text&&e.createElement(M,{hollow:!0,label:C.secondaryButton.text,url:C.secondaryButton.url,theme:r,inverse:!o})),C.link&&C.link.text&&e.createElement("div",{className:"tabs__optional-link"},e.createElement(b,{theme:r,inverse:o,url:C.link.url,title:C.link.text})))}))))))}function Al(C){var t=C.text,a=C.theme,l=void 0===a?"uobmain":a,n=C.inverse,c=C.headingLevel,r=C.headingText,i=C.url,o=C.linkTitle,s=C.externalLink,m=C.linkStyle,d=C.fullWidth,u=C.removeBottomPadding,h=void 0!==u&&u,f=c;return e.createElement("div",{className:p("text-with-background",l&&"theme-".concat(l),n&&"theme-".concat(l,"--inverse"),d&&"text-with-background--full-width",h&&"text-with-background--no-bottom-padding")},r&&e.createElement("div",{className:"text-with-background__heading-wrapper"},e.createElement(f,null,r)),e.createElement(v,{text:t,inverse:n,theme:l}),i&&o&&e.createElement("div",{className:"text-with-background__link-wrapper"},e.createElement("div",{className:"text-with-background__link-inner-wrapper"},("primary"===m||"secondary"===m)&&e.createElement(M,{url:i,theme:l,label:o,externalLink:s,hollow:"secondary"===m,inverse:!n}),"paragraph-link"===m&&e.createElement(Ta,{url:i,label:o,externalLink:s,theme:l,inverse:n}))))}function $l(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.label,n=C.url,c=C.externalLink;return e.createElement("a",{className:p("pill",a&&"theme-".concat(a)),href:n,target:c?"_blank":"_self",rel:c?"noopener noreferrer":""},l)}function Rl(C){var t=C.topics,a=C.theme,l=void 0===a?"uobmain":a,n=C.titleTag,c=C.heading;return e.createElement("section",{className:p("topics-selector",l&&"theme-".concat(l))},e.createElement("div",{className:"topics-selector__container"},"h2"===n?e.createElement("h2",{className:"topics-selector__heading"},c):e.createElement("h3",{className:"topics-selector__heading"},c),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($l,{theme:l,label:C.label,url:C.url,externalLink:C.externalLink}))}))))}Cl.displayName="HeroCardContent",m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m();var jl,zl={exports:{}};var Ul,Wl=(jl||(jl=1,Ul=zl,function(e,C){Ul.exports=C()}(0,function(){var e=[],C=[],t={},a={},l={};function n(e){return"string"==typeof e?new RegExp("^"+e+"$","i"):e}function c(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 r(e,C){return e.replace(C[0],function(t,a){var l,n,r=(l=C[1],n=arguments,l.replace(/\$(\d{1,2})/g,function(e,C){return n[C]||""}));return c(""===t?e[a-1]:t,r)})}function i(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 r(C,n)}return C}function o(e,C,t){return function(a){var l=a.toLowerCase();return C.hasOwnProperty(l)?c(a,l):e.hasOwnProperty(l)?c(a,e[l]):i(l,a,t)}}function s(e,C,t,a){return function(a){var l=a.toLowerCase();return!!C.hasOwnProperty(l)||!e.hasOwnProperty(l)&&i(l,l,t)===l}}function m(e,C,t){return(t?C+" ":"")+(1===C?m.singular(e):m.plural(e))}return m.plural=o(l,a,e),m.isPlural=s(l,a,e),m.singular=o(a,l,C),m.isSingular=s(a,l,C),m.addPluralRule=function(C,t){e.push([n(C),t])},m.addSingularRule=function(e,t){C.push([n(e),t])},m.addUncountableRule=function(e){"string"!=typeof e?(m.addPluralRule(e,"$0"),m.addSingularRule(e,"$0")):t[e.toLowerCase()]=!0},m.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 m.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 m.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 m.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(m.addUncountableRule),m})),zl.exports),Gl=UC(Wl);function Kl(C){var a=C.theme,l=C.heading,n=C.selectContent,c=C.defaultIsOpen,r=void 0!==c&&c;n&&(r=!!n.defaultValue||r);var i=t(r),o=i[0],s=i[1];return e.createElement("fieldset",{className:p("filter-accordion-select",o&&"filter-accordion-select--open",a&&"theme-".concat(a))},e.createElement("legend",{className:"filter-accordion-select__legend"},e.createElement("button",{className:"filter-accordion-select__button",onClick:function(){return s(function(e){return!e})},"aria-expanded":o,"aria-controls":l.replace(" ","")},l,e.createElement(g,{icon:"chevron-down",theme:a,inverse:!0,ariaHidden:!0}))),o&&e.createElement("div",{className:"filter-accordion-select__select-wrapper"},e.createElement(ya,d({theme:a,inverse:!0},n))))}function Yl(C){var t=C.theme,a=C.name,l=C.id,n=C.label,c=C.defaultValue,r=C.onChange;return e.createElement("div",{className:p("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:c,onChange:r,name:a,id:l}))}m(),m(),m();var Jl,Xl=function(e){var C=e.split(" "),t=C[C.length-1];return C[C.length-1]=Gl(t),C.join(" ")};function Ql(C){var t=C.theme,a=C.heading,l=C.listingGroups,n=C.onClearFilters,c=C.onViewResults;return e.createElement("div",{className:p("standard-listing-filter",t&&"theme-".concat(t))},e.createElement("p",{className:"standard-listing-filter__heading"},a),e.createElement("ul",{className:"standard-listing-filter__list"},l.map(function(C){var a;return"date"===C.type?e.createElement("li",{className:"standard-listing-filter__item",key:C.name},e.createElement(Yl,d({},C,{theme:t,defaultValue:null!==(a=C.defaultValue)&&void 0!==a?a:"",onChange:C.onChange}))):"radio"===C.type?e.createElement("li",{className:"standard-listing-filter__item",key:C.name},e.createElement(jC,{type:"radio",heading:C.heading,theme:t,showMoreText:Xl(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(jC,{type:"checkbox",heading:C.heading,theme:t,showMoreText:Xl(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(Kl,{heading:C.heading,selectContent:C.selectContent,theme:t})):void 0})),c&&e.createElement("div",{className:"standard-listing-filter__results-button"},e.createElement(M,{label:"View selected results",onClick:c,theme:t})),e.createElement("div",{className:"standard-listing-filter__clear-button"},e.createElement(M,{label:"Clear filters",onClick:n,theme:t,hollow:!0})))}function en(C){var t=C.theme,a=C.tag,l=C.title,n=C.linkUrl,c=C.linkText,i=C.externalLink,o=C.cards,s={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:p("video-card-component",t&&"theme-".concat(t)),id:"video-card-component"},e.createElement("div",{className:"video-card-component__content"},a&&e.createElement("p",{className:"video-card-component__tag"},a),e.createElement("h2",{className:"video-card-component__title"},l),n&&c&&e.createElement("div",{className:"video-card-component__link"},e.createElement(b,{theme:t,url:n,title:c,inverse:!0,externalLink:i})),e.createElement("div",{className:"video-card-component__carousel"},e.createElement(tC,{theme:t,type:"video",inverse:!0,cards:o,cardTitleTag:"h3"})),e.createElement("ul",{className:p("video-card-component__cards-desktop",(!n||!c)&&"video-card-component__cards-desktop--no-link")},o.map(function(C,a){return e.createElement(r.li,{key:a,variants:s,initial:"initial",whileInView:"animate",viewport:{once:!0,amount:.2},custom:a},a<=1?e.createElement("div",{className:"video-card-component__lines video-card-component__lines--".concat(a)},1===a&&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(Ie,{theme:t,image:{src:{default:C.image.src.default,medium:C.image.src.medium,small:C.image.src.small},altText:""},title:C.title,youtubeId:C.youtubeId,buttonLabel:C.buttonLabel,titleTag:"h3"}))}))))}function Cn(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.imageSrc,n=C.onClick;return e.createElement("div",{className:p("video-placeholder",a&&"theme-".concat(a))},e.createElement(k,{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 tn(C){var a=C.theme,l=void 0===a?"uobmain":a,n=C.imageSrc,c=C.videoUrl,r=C.videoId,i=t(!1),o=i[0],s=i[1];return e.createElement("div",{className:p("video-with-placeholder",l&&"theme-".concat(l))},o?e.createElement(Oe,{url:c,id:r,autoPlay:!0,theme:l}):e.createElement(Cn,{imageSrc:n,onClick:function(){return s(!0)},theme:l}))}function an(C){var a=C.theme,l=void 0===a?"uobmain":a,n=C.inverse,c=void 0!==n&&n,r=C.imageSrc,i=C.videoUrl,o=C.videoId,s=C.heading,m=C.audioDescribedVideoId,u=C.audioDescribedVideoUrl,h=C.transcript,f=C.fullWidth,L=void 0!==f&&f,v=C.videoCaption,g=C.videoCredit,E=t(!1),_=E[0],M=E[1];return e.createElement("div",{className:p("video-embed",L&&"video-embed--full-width",l&&"theme-".concat(l),c&&"theme-".concat(l,"--inverse"))},s&&e.createElement(y,d({},s,{theme:l,inverse:c})),e.createElement("div",{className:"video-embed__grid"},e.createElement("div",{className:"video-embed__content-wrapper"},e.createElement(tn,{theme:l,imageSrc:r,videoUrl:_?i:u,videoId:_?m:o}),(v||g)&&e.createElement("div",{className:"video-embed__caption-wrapper"},v&&e.createElement("p",{className:"video-embed__caption"},v),g&&e.createElement("p",{className:"video-embed__credit"},g)),(m||u)&&(_?e.createElement("button",{className:"video-embed__audio-described-button",onClick:function(){return M(!1)}},"Non-audio described version"):e.createElement("button",{className:"video-embed__audio-described-button",onClick:function(){return M(!0)}},"Audio described version")),h&&e.createElement("div",{className:"video-embed__transcript"},e.createElement(Z,{titleTag:"h3",theme:l,title:"Transcript",text:h,inverse:c})))))}function ln(C){var t,a=C.theme,l=void 0===a?"uobmain":a,n=C.inverse,c=void 0===n||n,r=C.fullWidth,i=void 0!==r&&r,o=C.heading,s=C.description,m=C.cards,u=C.singleLink,h=C.titleTag,f=void 0===h?"h2":h,L=C.cardTitleTag,v=void 0===L?"h3":L,g=ye("768px"),E=g&&m.length>1||!g&&m.length>2,_=p(((t={})["research-story-carousel__grid"]=!0,t["research-story-carousel__grid--single"]=1===m.length,t["research-story-carousel__grid--two-cards"]=2===m.length,t["research-story-carousel__grid--three-plus-cards"]=m.length>3,t));return e.createElement("section",{className:p("research-story-carousel",l&&"theme-".concat(l),c&&"theme-".concat(l,"--inverse"),i&&"research-story-carousel--full-width")},e.createElement("div",{className:"research-story-carousel__container"},(o||s||u)&&e.createElement(y,{theme:l,inverse:!0,htmlTag:f,title:o,description:s,linkProps:u,fullWidth:!0}),e.createElement("div",{className:"research-story-carousel__cards"},!E&&e.createElement("ul",{className:_},m.map(function(C,t){return e.createElement("li",{key:t},e.createElement(Ye,d({},C)))})),E&&e.createElement(tC,{theme:l,inverse:c,type:"research-story",cards:m,cardTitleTag:v}))))}function nn(C){var r=C.text,i=C.theme,o=void 0===i?"uobmain":i,s=C.inverse,m=C.fullWidth,d=void 0!==m&&m,u=C.removeBottomPadding,h=void 0!==u&&u,f=C.tableCategory,L=void 0===f?Jl.NotSpecified:f,v=l(null),g=t(!1),E=g[0],_=g[1],M=t(!0),b=M[0],Z=M[1],H=t(!1),w=H[0],V=H[1],y=c(),N=function(){var e=v.current;e&&(_(e.scrollLeft>0),Z(e.scrollLeft<e.scrollWidth-e.clientWidth))},k=n(function(){var e=v.current;if(e){var C=e.scrollWidth>e.clientWidth;V(C),N()}},[]),x=function(e){var C=v.current;if(C){var t="left"===e?C.scrollLeft-200:C.scrollLeft+200;C.scrollTo({left:t,behavior:"smooth"})}};return a(function(){k();var e=v.current;e&&e.addEventListener("scroll",N);var C=function(){return k()};return window.addEventListener("resize",C),function(){e&&e.removeEventListener("scroll",N),window.removeEventListener("resize",C)}},[k]),e.createElement("div",{className:p("scrollable-table",d&&"scrollable-table--full-width",o&&"theme-".concat(o),s&&"theme-".concat(o,"--inverse"),h&&"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(qe,{key:"iconButtonLeft",theme:o,icon:"arrow-left",onClick:function(){return x("left")},title:"Scroll left",ariaControls:y,disabled:!E,inverse:s}),e.createElement(qe,{key:"iconButtonRight",theme:o,icon:"arrow-right",onClick:function(){return x("right")},title:"Scroll right",ariaControls:y,disabled:!b,inverse:s})),e.createElement("div",{className:p("scrollable-table__table-wrapper","scrollable-table__".concat(L),s&&"scrollable-table__".concat(L,"--inverse")),ref:v,id:y,tabIndex:0},e.createElement("span",{dangerouslySetInnerHTML:{__html:r}})))))}function cn(C){var a=C.theme,l=C.heading,n=C.inverse,c=C.description,r=C.buttonLabel,i=C.buttonModifier,o=C.modalChildren,s=C.htmlTag,m=void 0===s?"h3":s,d=t(!1),u=d[0],h=d[1],f=function(){h(!1),document.body.classList.remove("lock-scroll")};return e.createElement("div",{className:p("modal-cta",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"))},e.createElement(H,{htmlTag:m,classNames:"modal-cta__heading"},l),c&&e.createElement("p",{className:"modal-cta__description"},c),e.createElement("div",{className:p("modal-cta__button",i&&"theme-".concat(a,"--buttonModifier"))},e.createElement(M,{inverse:!n,label:r,onClick:function(){u?f():(h(!0),document.body.classList.add("lock-scroll"))},theme:a,buttonModifier:i})),u&&e.createElement(Be,{centred:!0,theme:a,closeModal:f,isOpen:u},e.createElement(iC,{className:"modal-cta__embed-wrapper"},o)))}function rn(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0===l||l,c=C.cards,r=Array.isArray(c)?c:[c];return e.createElement("div",{className:p("module-card-group",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"))},e.createElement("div",{className:"module-card-group__container"},e.createElement("div",{className:"module-card-group__grid"},r.map(function(C,t){return e.createElement(_,d({key:t},C,{theme:a}))}))))}function on(C){var t=C.theme,a=C.embedChildren,l=C.googleMapLink,n=C.address,c=C.services,r=C.link,i=C.titleTag,o=void 0===i?"h2":i;return e.createElement("section",{className:p("location-section",t&&"theme-".concat(t),(!c||c.length<1)&&"location-section--no-services")},e.createElement("div",{className:"location-section__container"},e.createElement(H,{htmlTag:o,classNames:p("location-section__title","h3"===o&&"location-section__title--h3")},"Location"),e.createElement("div",{className:"location-section__grid-wrapper"},e.createElement("div",{className:"location-section__embed"},e.createElement(iC,null,a)),e.createElement("div",{className:"location-section__address-wrapper"},e.createElement("div",{className:"location-section__address"},e.createElement(IC,{theme:t,title:"Address",iconType:"slim-location",value:n.map(function(e){return"<span>".concat(e,"</span>")}).join("")})),r&&(null==r?void 0:r.title)&&(null==r?void 0:r.url)&&e.createElement("div",{className:"location-section__link-wrapper"},e.createElement(b,d({},r,{inverse:!0}))),l?e.createElement("div",{className:"location-section__button"},e.createElement(M,{label:"View on Google Maps",theme:t,url:l})):null),(null==c?void 0:c.length)?e.createElement("div",{className:"location-section__services"},null==c?void 0:c.map(function(C,a){return e.createElement(IC,d({},C,{theme:t,key:a}))})):null)))}function sn(C){var t=C.theme,a=C.studentName,l=C.studentStatus,n=C.courseName,c=C.courseDetails,r=C.studyLevel,i=C.titleTag,o=void 0===i?"h2":i,s=C.homeCountry,m=C.studentIntro,u=C.image,h=C.inverse;return e.createElement("div",{className:p("heroProfile",t&&"theme-".concat(t),h&&"theme-".concat(t,"--inverse")),id:"hero"},e.createElement("div",{className:"heroProfile__container"},e.createElement("div",{className:"heroProfile__details"},a&&e.createElement(o,{className:"heroProfile__title"},a),l&&e.createElement("p",{className:"heroProfile__status"},l),n&&e.createElement("p",{className:"heroProfile__courseName"},n),(r||s||c&&c.length>0)&&e.createElement("ul",{className:"heroProfile__studentDetails"},c&&c.length>0&&e.createElement("li",null,e.createElement("div",{className:"heroProfile__iconContainer"},e.createElement(ze,{icon:"mortar-board",theme:t,backgroundColor:"pale"}),e.createElement("div",{className:"heroProfile__courseIconText"},e.createElement("span",null,1===c.length?"Course":"Courses",":"),e.createElement("div",{className:"heroProfile__courseDetails"},c.map(function(C,a){return e.createElement(w,{theme:t,key:a,text:C,inverse:h})}))))),r&&e.createElement("li",null,e.createElement("div",{className:"heroProfile__iconContainer"},e.createElement(ze,{icon:"scroll",theme:t,backgroundColor:"pale"}),e.createElement("div",{className:"heroProfile__iconText"},e.createElement("span",null,"Study level:"),e.createElement("span",null,r)))),s&&e.createElement("li",null,e.createElement("div",{className:"heroProfile__iconContainer"},e.createElement(ze,{icon:"flag",theme:t,backgroundColor:"pale"}),e.createElement("div",{className:"heroProfile__iconText"},e.createElement("span",null,"Home country:"),e.createElement("span",null,s))))),m&&e.createElement(w,{theme:t,text:m,inverse:h})),e.createElement("div",{className:"heroProfile__image-wrapper"},u&&e.createElement(k,d({},u,{altText:null==u?void 0:u.alt,fetchPriority:u.fetchPriority})))))}function mn(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.firstColumn,n=C.secondColumn;return e.createElement("div",{className:p("two-column-wrapper",a&&"theme-".concat(a))},e.createElement("div",{className:"two-column-wrapper__grid-container"},e.createElement("div",{className:p("two-column-wrapper__first-column",!n&&"two-column-wrapper__first-column-centred")},l),n&&e.createElement("div",{className:"two-column-wrapper__second-column"},n)))}m(),m(),m(),m(),m(),m(),function(e){e.NotSpecified="NotSpecified",e.ColumnAndRowHeadings="ColumnAndRowHeadings",e.ColumnHeadingsOnly="ColumnHeadingsOnly"}(Jl||(Jl={})),m(),m(),m(),m(),m();export{N as Accordion,x as AcreditationPromotion,S as AlertBanner,P as AnchorTarget,q as Breadcrumbs,rC as CTAComponent,aC as CardProfile,eC as CardPromoProfile,Ue as CardStaff,tC as Carousel,lC as CentreWrapper,nC as ClearingBanner,cC as CourseDeliveryPills,iC as EmbedWrapper,sC as FactBoxes,mC as FeaturedContent,NC as FeaturedSignpost,xC as FeaturedVideo,TC as FiveArticlesGrid,FC as Footer,zC as GeneralSearchFilter,AC as GenericDetailSection,ba as Header,y as Heading,ka as Hero,Sa as HeroArticle,tl as HeroCarousel,Da as HeroCourses,sn as HeroProfile,al as ImageBlock,ll as ImageCarousel,cl as InPageNavigation,rl as IntroText,ol as LeadNewsArticles,_l as ListTable,sl as ListingFilterWrapper,gl as ListingResults,El as ListingResultsCount,on as LocationSection,Ba as LocationSelector,Ml as MainWrapper,cn as ModalCTA,rn as ModuleCardGroup,bl as NewsArticlesPromoBlock,Hl as Pagination,wl as PromoBlock,Vl as PromoBlockGrid,yl as QuoteBlock,Nl as RelatedCourses,ln as ResearchStoryCarousel,v as RichText,kl as ScholarshipCarousel,nn as ScrollableTable,Na as SearchCourses,Tl as SidebarWrapper,Sl as SignPost,Pl as SingleButton,Ol as SkipToContent,xl as StaffListingCarousel,Ql as StandardListingFilter,Il as TabsBlock,Al as TextWithBackground,Rl as TopicSelector,mn as TwoColumnWrapper,en as VideoCardComponent,an as VideoEmbed};
|
|
23
|
+
function Wt(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 Gt(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 Kt(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 Yt(e){for(var C=1;C<arguments.length;C++){var t=null!=arguments[C]?arguments[C]:{};C%2?Kt(Object(t),!0).forEach(function(C){Gt(e,C,t[C])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Kt(Object(t)).forEach(function(C){Object.defineProperty(e,C,Object.getOwnPropertyDescriptor(t,C))})}return e}function Jt(e){return function(e){if(Array.isArray(e))return Wt(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 Wt(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)?Wt(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 Xt,Qt,ea=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)},Ca=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)},ta=function(e){return"Tab"===(null==e?void 0:e.key)||9===(null==e?void 0:e.keyCode)},aa=function(e){return ta(e)&&!e.shiftKey},la=function(e){return ta(e)&&e.shiftKey},na=function(e){return setTimeout(e,0)},ca=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},ra=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},ia=[],oa=WC(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)||ia,n=Yt({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:aa,isKeyBackward:la},C),c={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},r=function(e,C,t){return e&&void 0!==e[C]?e[C]:n[t||C]},i=function(e,C){var t="function"==typeof(null==C?void 0:C.composedPath)?C.composedPath():void 0;return c.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})})},o=function(e){var C=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=C.hasFallback,l=void 0!==t&&t,c=C.params,r=void 0===c?[]:c,i=n[e];if("function"==typeof i&&(i=i.apply(void 0,Jt(r))),!0===i&&(i=void 0),!i){if(void 0===i||!1===i)return i;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var o=i;if("string"==typeof i){try{o=a.querySelector(i)}catch(C){throw new Error("`".concat(e,'` appears to be an invalid selector; error="').concat(C.message,'"'))}if(!o&&!l)throw new Error("`".concat(e,"` as selector refers to no known node"))}return o},s=function(){var e=o("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!zt(e,n.tabbableOptions))if(i(a.activeElement)>=0)e=a.activeElement;else{var C=c.tabbableGroups[0];e=C&&C.firstTabbableNode||o("fallbackFocus")}else null===e&&(e=o("fallbackFocus"));if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},m=function(){if(c.containerGroups=c.containers.map(function(e){var C=At(e,n.tabbableOptions),t=$t(e,n.tabbableOptions),a=C.length>0?C[0]:void 0,l=C.length>0?C[C.length-1]:void 0,c=t.find(function(e){return Rt(e)}),r=t.slice().reverse().find(function(e){return Rt(e)}),i=!!C.find(function(e){return xt(e)>0});return{container:e,tabbableNodes:C,focusableNodes:t,posTabIndexesFound:i,firstTabbableNode:a,lastTabbableNode:l,firstDomTabbableNode:c,lastDomTabbableNode:r,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 Rt(e)}):t.slice(0,t.indexOf(e)).reverse().find(function(e){return Rt(e)}):C[l+(a?1:-1)]}}}),c.tabbableGroups=c.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),c.tabbableGroups.length<=0&&!o("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(c.containerGroups.find(function(e){return e.posTabIndexesFound})&&c.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}),c.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()):u(s()))},h=function(e){var C=o("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||ra(t),m();var r=null;if(c.tabbableGroups.length>0){var s=i(C,t),d=s>=0?c.containerGroups[s]:void 0;if(s<0)r=l?c.tabbableGroups[c.tabbableGroups.length-1].lastTabbableNode:c.tabbableGroups[0].firstTabbableNode;else if(l){var u=c.tabbableGroups.findIndex(function(e){var t=e.firstTabbableNode;return C===t});if(u<0&&(d.container===C||zt(C,n.tabbableOptions)&&!Rt(C,n.tabbableOptions)&&!d.nextTabbableNode(C,!1))&&(u=s),u>=0){var h=0===u?c.tabbableGroups.length-1:u-1,p=c.tabbableGroups[h];r=xt(C)>=0?p.lastTabbableNode:p.lastDomTabbableNode}else ta(t)||(r=d.nextTabbableNode(C,!1))}else{var f=c.tabbableGroups.findIndex(function(e){var t=e.lastTabbableNode;return C===t});if(f<0&&(d.container===C||zt(C,n.tabbableOptions)&&!Rt(C,n.tabbableOptions)&&!d.nextTabbableNode(C))&&(f=s),f>=0){var L=f===c.tabbableGroups.length-1?0:f+1,v=c.tabbableGroups[L];r=xt(C)>=0?v.firstTabbableNode:v.firstDomTabbableNode}else ta(t)||(r=d.nextTabbableNode(C))}}else r=o("fallbackFocus");return r},f=function(e){var C=ra(e);i(C,e)>=0||(ca(n.clickOutsideDeactivates,e)?t.deactivate({returnFocus:n.returnFocusOnDeactivate}):ca(n.allowOutsideClick,e)||e.preventDefault())},L=function(e){var C=ra(e),t=i(C,e)>=0;if(t||C instanceof Document)t&&(c.mostRecentlyFocusedNode=C);else{var a;e.stopImmediatePropagation();var l=!0;if(c.mostRecentlyFocusedNode)if(xt(c.mostRecentlyFocusedNode)>0){var r=i(c.mostRecentlyFocusedNode),o=c.containerGroups[r].tabbableNodes;if(o.length>0){var m=o.findIndex(function(e){return e===c.mostRecentlyFocusedNode});m>=0&&(n.isKeyForward(c.recentNavEvent)?m+1<o.length&&(a=o[m+1],l=!1):m-1>=0&&(a=o[m-1],l=!1))}}else c.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return xt(e)>0})})||(l=!1);else l=!1;l&&(a=p({target:c.mostRecentlyFocusedNode,isBackward:n.isKeyBackward(c.recentNavEvent)})),u(a||(c.mostRecentlyFocusedNode||s()))}c.recentNavEvent=void 0},v=function(e){(n.isKeyForward(e)||n.isKeyBackward(e))&&function(e){var C=arguments.length>1&&void 0!==arguments[1]&&arguments[1];c.recentNavEvent=e;var t=p({event:e,isBackward:C});t&&(ta(e)&&e.preventDefault(),u(t))}(e,n.isKeyBackward(e))},g=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===ca(n.escapeDeactivates,e)||(e.preventDefault(),t.deactivate())},E=function(e){var C=ra(e);i(C,e)>=0||ca(n.clickOutsideDeactivates,e)||ca(n.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},_=function(){if(c.active)return ea(l,t),c.delayInitialFocusTimer=n.delayInitialFocus?na(function(){u(s())}):u(s()),a.addEventListener("focusin",L,!0),a.addEventListener("mousedown",f,{capture:!0,passive:!1}),a.addEventListener("touchstart",f,{capture:!0,passive:!1}),a.addEventListener("click",E,{capture:!0,passive:!1}),a.addEventListener("keydown",v,{capture:!0,passive:!1}),a.addEventListener("keydown",g),t},M=function(){if(c.active)return a.removeEventListener("focusin",L,!0),a.removeEventListener("mousedown",f,!0),a.removeEventListener("touchstart",f,!0),a.removeEventListener("click",E,!0),a.removeEventListener("keydown",v,!0),a.removeEventListener("keydown",g),t},b="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver(function(e){e.some(function(e){return Array.from(e.removedNodes).some(function(e){return e===c.mostRecentlyFocusedNode})})&&u(s())}):void 0,Z=function(){b&&(b.disconnect(),c.active&&!c.paused&&c.containers.map(function(e){b.observe(e,{subtree:!0,childList:!0})}))};return t={get active(){return c.active},get paused(){return c.paused},activate:function(e){if(c.active)return this;var C=r(e,"onActivate"),t=r(e,"onPostActivate"),l=r(e,"checkCanFocusTrap");l||m(),c.active=!0,c.paused=!1,c.nodeFocusedBeforeActivation=d(a),null==C||C();var n=function(){l&&m(),_(),Z(),null==t||t()};return l?(l(c.containers.concat()).then(n,n),this):(n(),this)},deactivate:function(e){if(!c.active)return this;var C=Yt({onDeactivate:n.onDeactivate,onPostDeactivate:n.onPostDeactivate,checkCanReturnFocus:n.checkCanReturnFocus},e);clearTimeout(c.delayInitialFocusTimer),c.delayInitialFocusTimer=void 0,M(),c.active=!1,c.paused=!1,Z(),Ca(l,t);var a=r(C,"onDeactivate"),i=r(C,"onPostDeactivate"),o=r(C,"checkCanReturnFocus"),s=r(C,"returnFocus","returnFocusOnDeactivate");null==a||a();var m=function(){na(function(){s&&u(h(c.nodeFocusedBeforeActivation)),null==i||i()})};return s&&o?(o(h(c.nodeFocusedBeforeActivation)).then(m,m),this):(m(),this)},pause:function(e){return c.active?(c.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return c.active?(c.manuallyPaused=!1,l[l.length-1]!==this?this:this._setPausedState(!1,e)):this},updateContainerElements:function(e){var C=[].concat(e).filter(Boolean);return c.containers=C.map(function(e){return"string"==typeof e?a.querySelector(e):e}),c.active&&m(),Z(),this}},Object.defineProperties(t,{_isManuallyPaused:{value:function(){return c.manuallyPaused}},_setPausedState:{value:function(e,C){if(c.paused===e)return this;if(c.paused=e,e){var t=r(C,"onPause"),a=r(C,"onPostPause");null==t||t(),M(),Z(),null==a||a()}else{var l=r(C,"onUnpause"),n=r(C,"onPostUnpause");null==l||l(),m(),_(),Z(),null==n||n()}return this}}}),t.updateContainerElements(e),t}})),sa=WC(Ut);var ma=function(){if(Qt)return Xt;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,r(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 c(e,C){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,C){return e.__proto__=C,e},c(e,C)}function r(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+""}Qt=1;var i=e,o=_t(),s=oa.createFocusTrap,m=sa.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=r(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 c,r=t;if("string"==typeof t&&!(r=null===(c=this.getDocument())||void 0===c?void 0:c.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return r}),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&&c(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||m(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?i.Children.only(this.props.children):void 0;if(C){if(C.type&&C.type===i.Fragment)throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");return i.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}}])}(i.Component),u="undefined"==typeof Element?Function:Element;return d.propTypes={active:o.bool,paused:o.bool,focusTrapOptions:o.shape({document:o.object,onActivate:o.func,onPostActivate:o.func,checkCanFocusTrap:o.func,onPause:o.func,onPostPause:o.func,onUnpause:o.func,onPostUnpause:o.func,onDeactivate:o.func,onPostDeactivate:o.func,checkCanReturnFocus:o.func,initialFocus:o.oneOfType([o.instanceOf(u),o.string,o.bool,o.func]),fallbackFocus:o.oneOfType([o.instanceOf(u),o.string,o.func]),escapeDeactivates:o.oneOfType([o.bool,o.func]),clickOutsideDeactivates:o.oneOfType([o.bool,o.func]),returnFocusOnDeactivate:o.bool,setReturnFocus:o.oneOfType([o.instanceOf(u),o.string,o.bool,o.func]),allowOutsideClick:o.oneOfType([o.bool,o.func]),preventScroll:o.bool,tabbableOptions:o.shape({displayCheck:o.oneOf(["full","legacy-full","non-zero-area","none"]),getShadowRoot:o.oneOfType([o.bool,o.func])}),trapStack:o.array,isKeyForward:o.func,isKeyBackward:o.func}),containerElements:o.arrayOf(o.instanceOf(u)),children:o.oneOfType([o.element,o.instanceOf(u)])},d.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:s},Xt=d}(),da=UC(ma);m();var ua=function(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.onClick,n=C.label,c=C.level,r=C.autoFocus,i=void 0!==r&&r;return e.createElement("button",{className:p("nav-link",a&&"theme-".concat(a),"nav-link--".concat(c)),onClick:l,autoFocus:i},e.createElement("span",{className:"nav-link__label"},n,e.createElement("span",{className:"nav-link__icon"},e.createElement(g,{icon:"chevron-right",theme:a,ariaHidden:!0}))))};m();var ha=function(C){var t=C.theme,n=void 0===t?"uobmain":t,c=C.url,r=C.label,i=C.level,o=C.autoFocus,s=void 0!==o&&o,m=C.externalLink,d=void 0!==m&&m,u=l(null);return a(function(){s&&u.current&&u.current.focus()},[s]),e.createElement("a",{className:p("page-link",n&&"theme-".concat(n),"page-link--".concat(i)),href:c,ref:u,target:d?"_blank":"_self",rel:d?"noopener noreferrer":""},r)};function pa(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0===l||l,c=C.image,r=C.tag,i=C.title,o=C.href,s=C.linkText,m=C.description,u=C.type;return e.createElement("div",{className:p("card-menu",u&&"card-menu--".concat(u),a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"))},e.createElement("figure",{className:"card-menu__figure"},e.createElement("div",{className:"card-menu__image-wrapper"},e.createElement(k,d({},c,{altText:"",loadingAttr:"lazy"}))),e.createElement("figcaption",{className:"card-menu__text-content"},"secondary"===u&&e.createElement(e.Fragment,null,e.createElement("p",{className:"card-menu__tag card-menu__tag"},r),e.createElement("a",{className:"card-menu__link",href:o},e.createElement("h2",{className:"card-menu__title"},i))),"primary"===u?e.createElement(e.Fragment,null,e.createElement("h2",{className:"card-menu__title"},i),e.createElement("p",{className:"card-menu__description"},m),e.createElement("div",{className:"card-menu__cta"},e.createElement(b,{theme:a,url:o,title:s||i}))):e.createElement("div",{className:"card-menu__arrow"},e.createElement(g,{icon:"arrow-right",theme:a,ariaHidden:!0})))))}m();var fa=function(C){var t=C.primaryLinks,a=C.secondaryLinks,l=C.onClickNavLink,n=C.menuCards,c=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(ua,{label:C.label,onClick:function(){return l(t)},key:C.label,theme:c,level:"level-one",autoFocus:0===t}):e.createElement(ha,{label:C.label,url:C.url,key:C.label,theme:c,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(ua,{label:C.label,onClick:function(){return l(a+t.length)},key:C.label,theme:c,level:"level-two"}):e.createElement(ha,{label:C.label,url:C.url,key:C.label,theme:c,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(pa,{theme:c,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}))})))};m();var La=function(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0!==l&&l,c=C.label,r=C.onClick;return e.createElement("button",{className:p("reverse-link-with-arrow",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse")),onClick:r},e.createElement("span",{className:"reverse-link-with-arrow__title"},e.createElement("span",{className:"reverse-link-with-arrow__icon"},e.createElement(g,{icon:"arrow-left",theme:a,inverse:n,ariaHidden:!0})),c))},va=function(C){var t=C.headingLink,a=C.onClickGoBack,l=C.onClickNavLink,n=C.theme,c=C.backLinkLabel;return e.createElement("div",{className:"header__nested-menu"},e.createElement(La,{label:c,onClick:a,theme:n}),e.createElement("div",{className:"header__heading-link"},e.createElement(ha,{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:p("header__link-list",t.description&&"header__link-list--with-desc")},t.children.map(function(C,t){return C.children?e.createElement(ua,{label:C.label,onClick:function(){return l(t)},key:C.label,theme:n,level:"level-two"}):e.createElement(ha,{label:C.label,url:C.url,key:C.label,theme:n,level:"level-two",externalLink:C.externalLink})}))))};m();var ga=function(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0!==l&&l,c=C.fieldName,r=C.hiddenLabel,i=void 0!==r&&r,o=C.defaultValue,s=C.placeholder,m=C.required,d=void 0!==m&&m,u=C.onChange;return e.createElement("div",{className:p("form-input",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"))},e.createElement("label",{htmlFor:c,className:p("form-input__label",i&&"sr-only")},"Select ",c),e.createElement("input",{className:"form-input__input",id:c,name:c,type:"text",required:d,defaultValue:o,placeholder:s,onChange:u}))},Ea=function(C){var t=C.title,a=void 0===t?"Search":t,l=C.placeholder,n=void 0===l?"Start typing":l,c=C.introText,r=C.handleSearchChange,i=C.handleSearchSubmit,o=C.theme,s=C.inverse,m=C.onClickGoBack,d=C.backLinkLabel,u=C.recommendedLinks,h=C.recommendedLinkTitle;return e.createElement("div",{className:"header-search"},m&&d&&e.createElement("div",{className:"header-search__back-link"},e.createElement(La,{label:d,onClick:m,theme:o})),e.createElement("div",{className:"header-search__container"},e.createElement("h2",{className:"header-search__title"},a),e.createElement("p",{className:"header-search__intro"},c),e.createElement("form",{className:"header-search__form",method:"post",onSubmit:i},e.createElement("div",{className:"header-search__search-wrapper"},e.createElement(ga,{theme:o,inverse:!1,fieldName:"search",hiddenLabel:!0,placeholder:n,onChange:r}),e.createElement(qe,{theme:o,inverse:!s,title:"Search",icon:"search",isSubmit:!0})),e.createElement(M,{theme:o,inverse:!s,label:"Search",isSubmit:!0}))),u&&e.createElement("div",{className:"header-search__recommended-links-wrapper"},h&&e.createElement("h3",{className:"header-search__recommended-link-title"},h),e.createElement("ul",{className:"header-search__recommended-links"},u.map(function(C,t){return e.createElement("li",{className:"header-search__recommended-link",key:t},e.createElement(SC,{theme:o,url:C.url,title:C.label,externalLink:C.externalLink}))}))))};function _a(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.label,n=C.url,c=C.externalLink,r=C.active,i=void 0!==r&&r;return e.createElement("a",{className:p("campus-selector-link",a&&"theme-".concat(a),i&&"campus-selector-link--active"),href:n,target:c?"_blank":"_self",rel:"noreferrer"},l)}function Ma(C){var t=C.active,a=C.theme,l=C.ukUrl,n=C.dubaiUrl,c=C.mobile;return e.createElement("div",{className:p("campus-selector",a&&"theme-".concat(a),c&&"campus-selector--mobile",!c&&"campus-selector--desktop")},e.createElement("div",{className:"campus-selector__container"},e.createElement("span",{className:"campus-selector__label"},"Select campus:"),c?e.createElement(e.Fragment,null,e.createElement(M,{label:"UK",theme:a,inverse:!0,url:l,hollow:"uk"!==t}),e.createElement(M,{label:"Dubai",theme:a,inverse:!0,url:n,hollow:"dubai"!==t})):e.createElement(e.Fragment,null,e.createElement(_a,{label:"UK",theme:a,url:l,active:"uk"===t}),e.createElement(_a,{label:"Dubai",theme:a,url:n,active:"dubai"===t}))))}m(),m(),m();var ba=function(C){var n=C.theme,c=void 0===n?"uobmain":n,i=C.primaryLinks,o=C.secondaryLinks,m=C.menuCards,d=C.dubaiUrl,h=C.ukUrl,f=C.logoTitleTagH1,L=void 0===f||f,v=C.activeCampus,g=void 0===v?"uk":v,E=C.searchProps,_=function(){var e=t(null),C=e[0],l=e[1];return a(function(){var e=window.scrollY,t=function(){var t=window.scrollY,a=t>e?"down":"up";a!==C&&(t-e>3||t-e<-3)&&l(a),e=t>0?t:0};return window.addEventListener("scroll",t),function(){window.removeEventListener("scroll",t)}},[C]),C}(),b=t(!1),Z=b[0],H=b[1],w=l(null),V=l(null),y=l(null),N=ye("768px"),k=t(0),x=k[0],T=k[1],S=t(null),P=S[0],O=S[1],q=t(null),F=q[0],B=q[1],D=t(!1),I=D[0],A=D[1],$=t(!1),R=$[0],j=$[1],z=t(""),U=z[0],W=z[1],G=function(){H(!0),document.body.classList.add("lock-scroll")},K=function(){A(!0),G()},Y=function(){A(!1),j(!1)},J=function(){H(!1),Y(),document.body.classList.remove("lock-scroll"),T(0),O(null),B(null),w.current&&w.current.focus()},X=function(){T(0),O(null),Y()},Q=function(){T(1),B(null),Y()},ee=function(e){"Escape"===e.key&&Z&&J()};a(function(){return document.addEventListener("keydown",ee),function(){document.removeEventListener("keydown",ee)}}),a(function(){if(V.current&&"down"===_){var e=V.current.offsetHeight;V.current.style.top="-".concat(e,"px")}else if(V.current&&"up"===_){var C=0;y.current&&V.current&&(C=y.current.offsetHeight),V.current.style.top="-".concat(C,"px")}},[_]);var Ce=null,te=null;null!==P&&(Ce=u(u([],i,!0),o,!0)[P],null!==F&&Ce.children&&(te=Ce.children[F]));var ae=e.createElement("div",{className:"header__campus-selector header__campus-selector--mobile"},e.createElement(Ma,{theme:c,dubaiUrl:d,ukUrl:h,active:g,mobile:!0})),le=e.createElement("div",{className:"header__campus-selector header__campus-selector--desktop",ref:y},e.createElement(Ma,{theme:c,dubaiUrl:d,ukUrl:h,active:g,mobile:!1})),ne=e.createElement("div",{className:"header__campus-selector header__campus-selector--desktop"},e.createElement(Ma,{theme:c,dubaiUrl:d,ukUrl:h,active:g,mobile:!1})),ce=function(e){W(e.target.value)},re=function(e){if(e.preventDefault(),"undefined"!=typeof window){var C=E.resultsUrl;window.location.href=U?"".concat(C,"?term=").concat(U):"".concat(C)}};return e.createElement("header",{className:p("header",c&&"theme-".concat(c),!Z&&"header--is-closed","header--".concat(g)),id:"header",ref:V},e.createElement("div",{className:"header__closed"},le,e.createElement("div",{className:"header__top-container"},e.createElement("div",{className:"header__logo-wrapper"},e.createElement(qC,{activeCampus:g,imageMode:"light",classNames:"header__logo-link"},L?e.createElement("h1",{className:"sr-only"},"uk"===g?"University of Birmingham":"University of Birmingham Dubai"):e.createElement("span",{className:"sr-only"},"uk"===g?"University of Birmingham":"University of Birmingham Dubai"))),e.createElement("div",{className:"header__right-wrapper"},e.createElement("div",{className:"header__search-button"},e.createElement(M,{theme:c,label:"Search",onClick:function(){j(!0),K()},hollow:!0})),e.createElement("div",{className:"header__menu-button"},e.createElement("span",null,"Menu"),e.createElement(qe,{theme:"uobmain",icon:"hamburger",onClick:G,title:"Open menu",ariaControls:"header",ref:w,ariaExpanded:Z}))))),e.createElement(s,null,Z&&e.createElement(da,null,e.createElement(r.div,{className:"header__open",initial:{x:"100%"},animate:{x:"0"},exit:{x:"100%"},transition:{type:"tween"},key:"header__open"},ne,e.createElement("div",{className:"header__top-container"},e.createElement("div",{className:"header__logo-wrapper"},e.createElement(qC,{activeCampus:g,imageMode:"dark",classNames:"header__logo-link"},e.createElement("h1",{className:"sr-only"},"uk"===g?"University of Birmingham":"University of Birmingham Dubai"))),e.createElement("div",{className:"header__right-wrapper"},!N&&!I&&e.createElement("div",{className:"header__search-button-menu"},e.createElement(M,{theme:c,inverse:!0,label:"Search",onClick:K,hollow:!0})),e.createElement("div",{className:"header__menu-button"},e.createElement("span",null,"Menu"),e.createElement(qe,{theme:"uobmain",inverse:!0,icon:"cross",onClick:J,title:"Close menu",ariaControls:"header"})))),N&&!I&&e.createElement("div",{className:"header__search-button-mobile"},e.createElement(M,{theme:c,inverse:!0,label:"Search",onClick:K,hollow:!0})),0===x&&!I&&e.createElement(fa,{primaryLinks:i,secondaryLinks:o,menuCards:m,onClickNavLink:function(e){T(1),O(e)},theme:c}),0===x&&I&&e.createElement(Ea,{theme:c,introText:E.introText,placeholder:E.placeholder,title:E.title,handleSearchChange:ce,handleSearchSubmit:re,onClickGoBack:R?void 0:X,backLinkLabel:R?"":"Back to menu",recommendedLinks:E.recommendedLinks,recommendedLinkTitle:E.recommendedLinkTitle}),1===x&&Ce&&!I&&e.createElement(va,{headingLink:Ce,onClickNavLink:function(e){T(2),B(e)},theme:c,onClickGoBack:X,backLinkLabel:"Back to menu"}),1===x&&Ce&&I&&e.createElement(Ea,{theme:c,introText:E.introText,placeholder:E.placeholder,title:E.title,handleSearchChange:ce,handleSearchSubmit:re,onClickGoBack:Q,backLinkLabel:"Back to ".concat(Ce.label),recommendedLinks:E.recommendedLinks,recommendedLinkTitle:E.recommendedLinkTitle}),2===x&&Ce&&te&&!I&&e.createElement(va,{headingLink:te,onClickNavLink:function(){},theme:c,onClickGoBack:Q,backLinkLabel:"Back to ".concat(Ce.label)}),2===x&&Ce&&te&&I&&e.createElement(Ea,{theme:c,introText:E.introText,placeholder:E.placeholder,title:E.title,handleSearchChange:ce,handleSearchSubmit:re,onClickGoBack:function(){T(2),Y()},backLinkLabel:"Back to ".concat(te.label),recommendedLinks:E.recommendedLinks,recommendedLinkTitle:E.recommendedLinkTitle}),ae))))},Za={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 Ha(C){var t,n,i=C.isMobile,o=C.isTablet,s=C.image,m=i?Za.mobile:o?Za.tablet:Za.desktop,d=l(null),u=c();return a(function(){var e;d.current&&d.current.setAttribute("fetchpriority",null!==(e=s.fetchPriority)&&void 0!==e?e:"auto")}),e.createElement(e.Fragment,null,e.createElement(r.div,{className:"hero__polygon-image-wrapper"},e.createElement(r.img,{ref:d,className:"hero__image",src:s.src.default,srcSet:"".concat(null!==(t=s.src.small)&&void 0!==t?t:s.src.default," 576w, ").concat(null!==(n=s.src.medium)&&void 0!==n?n:s.src.default," 992w, ").concat(s.src.default," 1440w"),alt:s.alt,fetchPriority:s.fetchPriority,animate:{clipPath:m.image},transition:{type:"tween"}}),e.createElement(r.div,{key:u,className:"hero__polygon-image-background",animate:{opacity:1,clipPath:m.background},transition:{type:"tween"},initial:{opacity:0}})))}m();var wa={initial:{pathLength:0},animate:{pathLength:1},transition:{delay:.5,duration:1}};function Va(C){var t=C.isMobile,a=C.isTablet;return t?e.createElement(e.Fragment,null,e.createElement(r.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(r.path,d({d:"M0 1H140"},wa)))),e.createElement(r.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(r.path,d({d:"M0 1H140"},wa))))):a?e.createElement(e.Fragment,null,e.createElement(r.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(r.path,d({d:"M0 1H140"},wa)))),e.createElement(r.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(r.path,d({d:"M0 1H140"},wa))))):e.createElement(e.Fragment,null,e.createElement(r.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(r.path,d({d:"M0 1H140"},wa)))),e.createElement(r.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(r.path,d({d:"M0 1H140"},wa)))))}m();var ya=function(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0!==l&&l,c=C.fieldName,r=C.selectOptions,i=C.defaultValue,o=void 0===i?"all":i,s=C.hiddenLabel,m=void 0!==s&&s,d=C.customLabel,u=C.title,h=C.onChange,f=C.value;return e.createElement("div",{className:p("form-select",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"))},d?e.createElement("label",{htmlFor:c,className:p("form-select__label",m&&"sr-only")},d):e.createElement("label",{htmlFor:c,className:p("form-select__label",m&&"sr-only")},"Select ",c),e.createElement("div",{className:"form-select__select-wrapper"},e.createElement("select",{className:"form-select__select",defaultValue:o,value:f,id:c,name:c,onChange:h},e.createElement("option",{value:"all"},u),r&&r.map(function(C,t){return e.createElement("option",{value:C.value,key:t},C.label)})),e.createElement("div",{className:"form-select__icon"},e.createElement(g,{icon:"arrow-down",theme:a,inverse:n}))))};function Na(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0!==l&&l,c=C.title,r=C.description,i=C.defaultSearchTerm,o=C.placeholder,s=C.filterTitle,m=C.filterFieldName,d=C.filterOptions,u=C.defaultFilter,h=void 0===u?"all":u,f=C.wrapped,L=void 0!==f&&f,v=C.fullWidth,g=void 0!==v&&v,E=C.onGrid,_=void 0!==E&&E,b=C.titleTag,Z=void 0===b?"h2":b,H=C.formSubmitHandler,V=C.filterChangeHandler,y=C.searchTermChangeHandler,N=Z;return e.createElement("div",{className:p("search-course",g&&"search-course--full-width",_&&"search-course--on-grid",L&&"search-course--wrapped",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"),!m&&"search-course--no-filter")},e.createElement("div",{className:"search-course__container"},c&&e.createElement(N,{className:"search-course__title"},c),r&&e.createElement("div",{className:"search-course__description"},e.createElement(w,{text:r,theme:a,inverse:n})),e.createElement("form",{className:"search-course__form",method:"post",onSubmit:H},e.createElement("div",{className:"search-course__search-wrapper"},e.createElement(ga,{theme:a,inverse:n,fieldName:"search",hiddenLabel:!0,defaultValue:i,placeholder:o,onChange:y}),e.createElement(qe,{theme:a,inverse:!n,title:"Search",icon:"search",isSubmit:!0}),L&&e.createElement(M,{theme:a,inverse:!n,label:"Search",isSubmit:!0})),m&&s&&d&&e.createElement(ya,{theme:a,inverse:n,title:s,fieldName:m,selectOptions:d,defaultValue:h,hiddenLabel:!0,onChange:V}),!L&&e.createElement(M,{theme:a,inverse:!n,label:"Search",isSubmit:!0}))))}function ka(C){var t=C.theme,a=C.inverse,l=C.title,n=C.titleTag,c=void 0===n?"h2":n,r=C.description,i=C.image,o=C.links,s=C.courseSearchProps,m=ye("768px"),u=ye("1248px");return e.createElement("div",{className:p("hero",t&&"theme-".concat(t),a&&"theme-".concat(t,"--inverse"),i&&"hero--with-image"),id:"hero"},i&&"rectangle"===i.style&&e.createElement("div",{className:"hero__image-wrapper hero__image-wrapper--mobile hero__image-wrapper--rectangle"},e.createElement(k,d({},i,{altText:i.alt,fetchPriority:i.fetchPriority}))),i&&"lines-of-intent"===i.style&&m&&e.createElement("div",{className:"hero__image-wrapper hero__image-wrapper--mobile"},e.createElement(Ha,{isMobile:!0,isTablet:!1,image:i}),e.createElement(Va,{isMobile:!0,isTablet:!1})),e.createElement("div",{className:"hero__container"},e.createElement("div",{className:"hero__content"},e.createElement(c,{className:"hero__title"},l),r&&e.createElement("div",{className:"hero__description"},e.createElement(w,{text:r,theme:t,inverse:a})),o&&o.length>0&&e.createElement("div",{className:"hero__buttons"},o.map(function(C,l){return e.createElement(M,{theme:t,key:l,url:C.url,label:C.title,externalLink:C.externalLink,inverse:!a,hollow:1===l})})),s&&e.createElement(Na,d({theme:t,inverse:a,wrapped:!0},s))),i&&"rectangle"===i.style&&e.createElement("div",{className:"hero__image-wrapper hero__image-wrapper--desktop hero__image-wrapper--rectangle"},e.createElement(k,d({},i,{altText:i.alt,fetchPriority:i.fetchPriority}))),i&&"lines-of-intent"===i.style&&u&&e.createElement("div",{className:"hero__image-wrapper hero__image-wrapper--desktop hero__image-wrapper--polygon"},e.createElement(Ha,{isMobile:!1,isTablet:!0,image:i}),e.createElement(Va,{isMobile:!1,isTablet:!0})),i&&"lines-of-intent"===i.style&&!m&&!u&&e.createElement("div",{className:"hero__image-wrapper hero__image-wrapper--desktop hero__image-wrapper--polygon"},e.createElement(Ha,{isMobile:!1,isTablet:!1,image:i}),e.createElement(Va,{isMobile:!1,isTablet:!1}))))}function xa(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=C.label,c=C.icons;return e.createElement("div",{className:p("share-buttons",a&&"theme-".concat(a),l&&"theme-".concat(a,"--inverse"))},n&&e.createElement("div",{className:"share-buttons__label"},n),c&&e.createElement("ul",{className:"share-buttons__icon-wrapper"},c.map(function(C,t){return e.createElement("li",{className:"share-buttons__icon",key:t},e.createElement(qe,{theme:a,title:C.title,icon:C.icon,url:C.url,inverse:l}))})))}function Ta(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0!==l&&l,c=C.label,r=C.url,i=C.externalLink;return e.createElement("a",{className:p("paragraph-link",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse")),href:r,target:i?"_blank":"_self",rel:"noreferrer"},c)}function Sa(C){var t=C.theme,a=C.inverse,l=C.title,n=C.titleTag,c=void 0===n?"h2":n,r=C.description,i=C.cardImage,o=C.publishDate,s=C.readTime,m=C.shareButtons,u=C.author;return e.createElement("section",{className:p("hero-article",t&&"theme-".concat(t),a&&"theme-".concat(t,"--inverse"))},e.createElement("div",{className:"hero-article__container"},e.createElement("div",{className:"hero-article__content"},e.createElement(c,{className:"hero-article__title"},l),e.createElement("p",{className:"hero-article__description"},r),e.createElement("div",{className:"hero-article__meta-data"},o&&e.createElement("span",{className:"hero-article__publish-date"},o),o&&s&&e.createElement("span",{className:"hero-article__separator"},"•"),s&&e.createElement("span",{className:"hero-article__read-time"},s),u&&e.createElement(e.Fragment,null,e.createElement("span",{className:"hero-article__separator"},"•"),e.createElement("span",{className:"hero-article__author"},"by ",e.createElement(Ta,d({},u))))),e.createElement("div",{className:"hero-article__sharing-buttons"},e.createElement(xa,{theme:t,label:m.label,icons:m.icons,inverse:a})))),i&&e.createElement("div",{className:"hero-article__image-wrapper"},e.createElement(Ge,d({},i,{inverse:a}))))}function Pa(C){var a=C.theme,l=C.inverse,n=C.buttonLabel,c=C.hollow,r=C.modalChildren,i=t(!1),o=i[0],s=i[1],m=function(){s(!1),document.body.classList.remove("lock-scroll")};return e.createElement("div",{className:p("modal-cta-button",a&&"theme-".concat(a),l&&"theme-".concat(a,"--inverse"))},e.createElement(M,{inverse:l,label:n,onClick:function(){o?m():(s(!0),document.body.classList.add("lock-scroll"))},theme:a,hollow:c}),o&&e.createElement(Be,{centred:!0,theme:a,closeModal:m,isOpen:o},e.createElement(iC,{className:"modal-cta-button__embed-wrapper"},r)))}function Oa(C){var t=C.title,a=C.value,l=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"},a)),l&&e.createElement("div",{className:"course-tile__link-wrapper"},e.createElement(BC,d({},l,{inverse:!0,onClick:function(e){return DC(e,l.url||"#")}}))))}function qa(C){var t=C.title,a=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(ya,d({},a,{inverse:!0}))))}function Fa(C){var t=C.title,a=C.rank,l=C.rankText,n=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"},a),e.createElement("div",{className:"course-tile-ranking__rank-text"},l)),n&&e.createElement("div",{className:"course-tile-ranking__link-wrapper"},e.createElement(BC,d({},n,{inverse:!0,onClick:function(e){return DC(e,n.url||"#")}}))))}function Ba(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0===l||l,c=C.topPadding,r=void 0!==c&&c,i=C.selectorProps;return e.createElement("div",{className:p("location-selector",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"))},e.createElement("div",{className:p("location-selector__container",r&&"location-selector__container--padding-top")},e.createElement(ya,d({},i,{inverse:n}))))}function Da(C){var t,a=C.theme,l=C.title,n=C.titleTag,c=void 0===n?"h2":n,r=C.awardShort,i=C.links,o=C.ranking,s=C.award,m=C.campus,u=C.ucas,h=C.duration,f=C.entryRequirements,L=C.startDate,v=C.yearOfEntry,g=C.fees,E=C.deliveryFormat,_=C.locationDetails,b=C.modalCTA;return e.createElement("section",{className:p("hero-courses",a&&"theme-".concat(a)),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(H,{htmlTag:c,classNames:"hero-courses__title"},l&&l.length>0&&r&&r.length>0?l+" ":l,e.createElement("span",{className:"hero-courses__title-award"},r))),_&&e.createElement("div",{className:"hero-courses__location-wrapper"},e.createElement(Ba,d({},_,{inverse:!1}))),e.createElement("ul",{className:(t="hero-courses__grid--four",o&&(m||E||u)?t="hero-courses__grid--six":(o&&!m&&!E&&!u||!o&&(m||E||u))&&(t="hero-courses__grid--five"),"hero-courses__grid "+t)},o&&e.createElement("li",{className:"hero-courses__column hero-courses__column--ranking"},e.createElement(Fa,d({},o))),(u||m||E)&&e.createElement("li",{className:"hero-courses__column hero-courses__column--split hero-courses__column--award"},u&&e.createElement(Oa,d({},u)),m&&e.createElement(Oa,d({},m)),E&&e.createElement(Oa,d({},E))),h&&v?e.createElement("li",{className:"hero-courses__column hero-courses__column--split hero-courses__column--duration"},e.createElement(qa,d({},v)),e.createElement(Oa,d({},h))):h&&L?e.createElement("li",{className:"hero-courses__column hero-courses__column--split hero-courses__column--duration"},e.createElement(Oa,d({},L)),e.createElement(Oa,d({},h))):e.createElement("li",{className:"hero-courses__column hero-courses__column--duration"},e.createElement(Oa,d({},h))),s&&e.createElement("li",{className:"hero-courses__column hero-courses__column--delivery-format"},e.createElement(Oa,d({},s))),e.createElement("li",{className:"hero-courses__column hero-courses__column--entry-requirements"},e.createElement(Oa,d({},f))),e.createElement("li",{className:"hero-courses__column hero-courses__column--fees"},e.createElement(Oa,d({},g)))),e.createElement("div",{className:"hero-courses__button-wrapper"},e.createElement("ul",{className:"hero-courses__buttons"},i&&i.map(function(C,t){return C.externalLink?e.createElement("li",{className:"hero-courses__button",key:t},e.createElement(De,{theme:a,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(M,{theme:a,label:C.label,hollow:t%2!=0,url:C.url,inverse:!0,onClick:C.onClick}))})),b&&e.createElement(Pa,{theme:a,inverse:!b.inverse,hollow:!0,buttonLabel:b.buttonLabel,modalChildren:b.modalChildren})))))}m(),m(),m(),m(),m(),m(),m();var Ia={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}},Aa={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))"}},$a={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}},Ra={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%"}},ja={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}},za={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%"}},Ua={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)"}},Wa={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)"}},Ga={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)"}},Ka={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)"}},Ya={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)"}},Ja={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)"}},Xa={initial:{pathLength:0},animate:{pathLength:1},transition:{delay:.5,duration:1}};function Qa(C){var t=C.isMobile,a=C.isTablet,l=C.activeVariant;return t?e.createElement(e.Fragment,null,e.createElement(r.div,{className:"hero-carousel__line",variants:Ua,animate:l,initial:!1},e.createElement("svg",{width:"140",height:"2",viewBox:"0 0 140 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(r.path,d({d:"M0 1H140",stroke:"black"},Xa)))),e.createElement(r.div,{className:"hero-carousel__line",variants:Wa,animate:l,initial:!1},e.createElement("svg",{width:"140",height:"2",viewBox:"0 0 140 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(r.path,d({d:"M0 1H140",stroke:"black"},Xa))))):a?e.createElement(e.Fragment,null,e.createElement(r.div,{className:"hero-carousel__line",variants:Ga,animate:l,initial:!1},e.createElement("svg",{width:"260",height:"2",viewBox:"0 0 260 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(r.path,d({d:"M0 1H260",stroke:"black"},Xa)))),e.createElement(r.div,{className:"hero-carousel__line",variants:Ka,animate:l,initial:!1},e.createElement("svg",{width:"260",height:"2",viewBox:"0 0 260 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(r.path,d({d:"M0 1H260",stroke:"black"},Xa))))):e.createElement(e.Fragment,null,e.createElement(r.div,{className:"hero-carousel__line",variants:Ya,animate:l,initial:!1},e.createElement("svg",{width:"360",height:"2",viewBox:"0 0 360 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(r.path,d({d:"M0 1H360",stroke:"black"},Xa)))),e.createElement(r.div,{className:"hero-carousel__line",variants:Ja,animate:l,initial:!1},e.createElement("svg",{width:"360",height:"2",viewBox:"0 0 360 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(r.path,d({d:"M0 1H360",stroke:"black"},Xa)))))}function el(C){var t,n,i=C.isMobile,o=C.isTablet,m=C.activeVariant,d=C.imageSrc,u=C.imageAlt,h=C.imageFetchPriority,p=l(null),f=c();return a(function(){p.current&&p.current.setAttribute("fetchpriority",null!=h?h:"high")}),e.createElement(e.Fragment,null,e.createElement(s,null,e.createElement(r.div,{className:"hero-carousel__image-wrapper",transition:{delayChildren:1}},e.createElement(r.img,{ref:p,className:"hero-carousel__image",src:d.default,srcSet:"".concat(null!==(t=d.small)&&void 0!==t?t:d.default," 576w, ").concat(null!==(n=d.medium)&&void 0!==n?n:d.default," 992w, ").concat(d.default," 1440w"),alt:u,variants:i?Aa:o?Ra:za,animate:m,initial:{clipPath:"polygon(0 0, 0 0, 0 0, 0 0)"},transition:{type:"tween"}}),e.createElement(r.div,{key:f,className:"hero-carousel__image-background",variants:i?Ia:o?$a:ja,animate:["visible",m],exit:{backgroundColor:"rgba(255, 255, 255, 0)"},transition:{type:"tween"},initial:{opacity:0,clipPath:"polygon(1% 1%, 1% 1%, 1% 1%, 1% 1%)"}}))))}var Cl=C(function(C,t){var a=C.theme,l=C.category,n=C.title,c=C.description,r=C.linkUrl,i=C.linkLabel,o=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"},c),e.createElement("div",{className:"hero-carousel__cta"},e.createElement(b,{url:r,title:i,theme:a,inverse:!0,onKeyDown:o,ref:t})))});function tl(C){var a=C.theme,n=C.cards,c=n.length>1,i=t(0),o=i[0],s=i[1],m=n[o],d=l(null),u=ye("768px"),h=ye("1248px"),f="";switch(o){case 0:f="first";break;case 1:f="second";break;case 2:f="third"}var L=c?e.createElement(CC,{theme:a,totalNumber:n.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===n.length-1,showNumbers:!0}):e.createElement(e.Fragment,null);return e.createElement("div",{className:p("hero-carousel",a&&"theme-".concat(a)),id:"hero-carousel"},e.createElement("div",{className:"hero-carousel__top"},e.createElement("div",{className:"hero-carousel__content"},u&&e.createElement("div",{className:"hero-carousel__image-container hero-carousel__image-container--mobile"},e.createElement(el,{isMobile:!0,isTablet:!1,activeVariant:f,imageSrc:m.imageSrc,imageAlt:m.imageAlt}),e.createElement(Qa,{isMobile:!0,isTablet:!1,activeVariant:f})),e.createElement("div",{className:"hero-carousel__cards"},e.createElement(r.section,{className:"hero-carousel__active-card",key:o,initial:{opacity:0},animate:{opacity:1}},e.createElement(Cl,{category:m.category,title:m.title,description:m.description,linkUrl:m.linkUrl,linkLabel:m.linkLabel,theme:a,ref:d})),u&&c&&n.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(Cl,{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"},L)),e.createElement("div",{className:"hero-carousel__image-container hero-carousel__image-container--desktop"},e.createElement(el,{isMobile:!1,isTablet:h,activeVariant:f,imageSrc:m.imageSrc,imageAlt:m.imageAlt}),e.createElement(Qa,{isMobile:!1,isTablet:h,activeVariant:f}))),!u&&c&&n.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(Cl,{category:C.category,title:C.title,description:C.description,linkUrl:C.linkUrl,linkLabel:C.linkLabel,theme:a})))})),u&&e.createElement("div",{className:"hero-carousel__nav hero-carousel__nav--mobile"},L))}function al(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=C.title,c=C.description,r=C.linkProps,i=C.fullWidth,o=C.makeHeadingFullWidth,s=C.images,m=C.htmlTag;if(!s||0===s.length)return null;var u=s.length>2?Array.from(s.slice(0,2)):Array.from(s);return e.createElement("div",{className:p("image-block",a&&"theme-".concat(a),l&&"theme-".concat(a,"--inverse"),i&&"image-block--full-width")},(n||c||r)&&e.createElement(y,{theme:a,inverse:l,title:n,description:c,linkProps:r,fullWidth:!!o,htmlTag:m}),e.createElement("div",{className:"image-block__container"},u&&u.map(function(C,t){var n=p({"image-block__image-container-single-image-full-width-true":1===s.length&&i,"image-block__image-container-single-image-full-width-false":1===s.length&&!i,"image-block__image-container-first-image-full-width-true":s.length>1&&0===t&&i,"image-block__image-container-first-image-full-width-false":s.length>1&&0===t&&!i,"image-block__image-container-second-image-full-width-true":s.length>1&&1===t&&i,"image-block__image-container-second-image-full-width-false":s.length>1&&1===t&&!i});return e.createElement("div",{key:t,className:n},e.createElement(Ge,d({},C,{theme:a,inverse:l})))})))}function ll(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0!==l&&l,c=C.title,r=C.description,i=C.linkProps,o=C.fullWidth,s=void 0!==o&&o,m=C.widerImage,d=C.images,u=C.htmlTag;return e.createElement("section",{className:p("image-carousel",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"),s&&"image-carousel--full-width",m&&"image-carousel--wider-image")},(c||r)&&e.createElement(y,{theme:a,htmlTag:u,inverse:n,title:c,description:r,linkProps:i}),e.createElement("div",{className:"image-carousel__grid"},e.createElement(tC,{theme:a,inverse:n,type:"image",cards:d})))}function nl(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.heading,n=void 0===l?"Page contents":l,c=C.links,r=C.buttonLinks,i=C.locationDetails;return e.createElement("div",{className:p("in-page-navigation-links",a&&"theme-".concat(a))},e.createElement("h2",{className:"in-page-navigation-links__heading"},n),i&&e.createElement(Ba,d({},i,{inverse:!0})),e.createElement("nav",null,e.createElement("ul",{className:"in-page-navigation-links__link-container"},c.map(function(C){return e.createElement("li",{className:p("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 function(e,C){var t;e.preventDefault(),null===(t=document.querySelector(C))||void 0===t||t.scrollIntoView({behavior:"smooth"})}(e,C.url)}},C.title))}))),e.createElement("ul",null,r&&r.map(function(C,t){return C.externalLink?e.createElement("li",{className:"in-page-navigation-links__link-button",key:t},e.createElement(De,{theme:a,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(M,{theme:a,label:C.label,hollow:t%2!=0,url:C.url,onClick:C.onClick}))})))}function cl(C){var n,c,i=C.theme,o=void 0===i?"uobmain":i,m=C.inverse,u=void 0!==m&&m,h=C.links,f=C.expandableHeader,L=void 0===f?"Page contents":f,v=t(!1),g=v[0],E=v[1],_=t("not-docked"),M=_[0],b=_[1],Z=t(null),H=Z[0],w=Z[1],V=l(null),y=l(null),N=l(null),k=l(null),x=l(null),T=function(){E(!1)};return a(function(){var e=function(e){!n.current||e.target instanceof HTMLElement&&n.current.contains(e.target)||c()};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),function(){document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[n=x,c=function(){return T()}]),a(function(){var e;N.current=new IntersectionObserver(function(C){var t;e=null===(t=C.find(function(e){return e.isIntersecting}))||void 0===t?void 0:t.target,b(e?"docked":"not-docked")},{rootMargin:"0px 0px -100%"}),y.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?b("docked-at-bottom"):!a&&e&&b("docked")}),V.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&&w(t.id)},{rootMargin:"0px 0px -".concat(.7*window.innerHeight,"px 0px")});var C=document.querySelectorAll(".anchor-target");C.forEach(function(e){V&&V.current&&V.current.observe(e)});var t=document.querySelectorAll("#footer");t.forEach(function(e){y&&y.current&&y.current.observe(e)});var a=document.querySelectorAll("#sidebar");return a.forEach(function(e){N&&N.current&&N.current.observe(e)}),function(){C.forEach(function(e){V&&V.current&&V.current.unobserve(e)}),a.forEach(function(e){N&&N.current&&N.current.unobserve(e)}),t.forEach(function(e){y&&y.current&&y.current.unobserve(e)})}},[]),h.links.map(function(e){return e.url.substring(1)===H?e.active=!0:e.active=!1}),e.createElement("div",{className:p("in-page-navigation",o&&"theme-".concat(o),u&&"theme-".concat(o,"--inverse"))},e.createElement("div",{className:p("in-page-navigation--mobile",M)},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"},L),e.createElement(qe,{theme:"uobmain",icon:"menu",onClick:function(){E(!0)},title:"Open menu",ariaControls:"in-page-navigation",ref:k,ariaExpanded:g})))))),g&&e.createElement("div",{className:"in-page-navigation__overlay"}),e.createElement(s,null,g&&e.createElement(r.div,{className:"in-page-navigation__open",initial:{x:"100%"},animate:{x:"0"},exit:{x:"100%"},transition:{type:"tween"},key:"in-page-navigation__open",ref:x},e.createElement(Fe,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(qe,{theme:"uobmain",inverse:!0,icon:"cross",onClick:T,title:"Close menu",ariaControls:"in-page-navigation"})))),e.createElement(nl,d({},h,{theme:"uobmain"})))))),e.createElement("div",{className:p("in-page-navigation--desktop",M)},e.createElement(nl,d({},h,{theme:o}))))}function rl(C){var t=C.text,a=C.theme,l=void 0===a?"uobmain":a,n=C.inverse,c=C.fullWidth,r=C.removeBottomPadding,i=void 0!==r&&r,o=C.removeTopPadding,s=void 0!==o&&o;return e.createElement("div",{className:p("intro-text",l&&"theme-".concat(l),n&&"theme-".concat(l,"--inverse"),c&&"intro-text--full-width",i&&"intro-text--no-bottom-padding",s&&"intro-text--no-top-padding")},e.createElement("div",{className:"intro-text__container"},e.createElement("p",{className:"intro-text__text"},t)))}function il(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.heading,n=C.cards,c=C.link;return e.createElement("div",{className:p("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(Ke,{theme:a,title:C.title,href:C.href,titleTag:"h3",publishDate:C.publishDate}))})),c&&e.createElement(b,{theme:a,inverse:!0,url:c.url,title:c.title}))}function ol(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.featuredArticle,n=C.otherLeadArticles,c=C.mostReadNews;return e.createElement("section",{className:p("lead-news-articles",a&&"theme-".concat(a))},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(Ke,d({},l,{isPrimary:!0}))),e.createElement("ul",{className:"lead-news-articles__secondary-card-container"},n.map(function(C,t){return e.createElement("li",{className:"lead-news-articles__secondary-card",key:t},e.createElement(Ke,{theme:a,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(il,d({},c)))))}function sl(C){var n=C.theme,c=C.showFilterButtonLabel,i=C.numSelected,o=C.filterElement,s=t(!1),m=s[0],d=s[1],u=l(null),h=function(e){"Escape"===e.key&&m&&d(!1)};return a(function(){return document.addEventListener("keydown",h),function(){document.removeEventListener("keydown",h)}}),a(function(){var e,C;m?null===(e=u.current)||void 0===e||e.showModal():null===(C=u.current)||void 0===C||C.close()},[m]),e.createElement(e.Fragment,null,e.createElement("div",{className:p("listing-filter-wrapper","theme-".concat(n))},e.createElement("div",{className:"listing-filter-wrapper__mobile"},e.createElement("button",{className:"listing-filter-wrapper__show-filter-button",onClick:function(){d(!0),document.body.classList.add("lock-scroll")}},e.createElement(g,{theme:"uobmain",icon:"settings"}),c,i&&e.createElement("span",{className:"listing-filter-wrapper__num-selected"},i,e.createElement("span",{className:"sr-only"},i>1?"filters":"filter"," selected"))))),e.createElement(Fe,null,e.createElement(r.dialog,{className:p("listing-filter-wrapper__dialog","theme-".concat(n)),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},ref:u},e.createElement("div",{className:"listing-filter-wrapper__popup-wrapper"},e.createElement("div",{className:"listing-filter-wrapper__popup"},e.createElement("button",{className:"listing-filter-wrapper__close-button",onClick:function(){d(!1),document.body.classList.remove("lock-scroll")}},e.createElement(g,{icon:"slim-cross",theme:n,ariaHidden:!0}),e.createElement("span",{className:"sr-only"},"Close")),o)))),e.createElement("div",{className:"listing-filter-wrapper__desktop"},o))}function ml(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.type,n=C.image,c=C.title,r=C.url,i=C.description,o=C.details,s=C.showCategory,m=void 0!==s&&s;return e.createElement(e.Fragment,null,n&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(k,d({},n))),e.createElement("div",{className:"listing-result-card__text"},m&&e.createElement("p",{className:"listing-result-card__category"},l),e.createElement("h2",null,e.createElement("a",{className:"listing-result-card__title",href:r},c)),i&&e.createElement("p",{className:"listing-result-card__description"},i),o.length>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(Qe,{details:o,theme:a}))))}function dl(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.type,n=C.image,c=C.title,r=C.titleTag,i=void 0===r?"h2":r,o=C.url,s=C.description,m=C.supervisors,u=C.department,h=C.details,p=C.showCategory,f=void 0!==p&&p;return e.createElement(e.Fragment,null,n&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(k,d({},n))),e.createElement("div",{className:"listing-result-card__text"},f&&e.createElement("p",{className:"listing-result-card__category"},l),e.createElement(H,{htmlTag:"h3"===i?"h3":"h2"},e.createElement("a",{className:"listing-result-card__title",href:o},c)),(m||u)&&e.createElement("div",{className:"listing-result-card__course-info"},m&&e.createElement("p",{className:"listing-result-card__supervisors"},"Supervisors: ",m),u&&e.createElement("p",{className:"listing-result-card__department"},u)),s&&e.createElement("p",{className:"listing-result-card__description"},s),h.length>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(Qe,{details:h,theme:a}))))}function ul(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0===l||l,c=C.type,r=C.image,i=C.title,o=C.url,s=C.description,m=C.details,u=C.showCategory,h=void 0!==u&&u,p=C.cardDescriptionIsRichText,f=void 0!==p&&p,L=C.titleTag,v=void 0===L?"h2":L;return e.createElement(e.Fragment,null,r&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(k,d({},r))),e.createElement("div",{className:"listing-result-card__text"},h&&e.createElement("p",{className:"listing-result-card__category"},c),e.createElement(H,{htmlTag:v},e.createElement("a",{className:"listing-result-card__title",href:o},i)),s&&!f&&e.createElement("p",{className:"listing-result-card__description"},s),s&&f&&e.createElement(w,{theme:a,inverse:n,text:s}),m.length>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(Qe,{details:m,theme:a}))))}function hl(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.type,n=C.image,c=C.title,r=C.url,i=C.description,o=C.author,s=C.details,m=C.showCategory,u=void 0!==m&&m;return e.createElement(e.Fragment,null,n&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(k,d({},n))),e.createElement("div",{className:"listing-result-card__text"},u&&e.createElement("p",{className:"listing-result-card__category"},l),e.createElement("h2",null,e.createElement("a",{className:"listing-result-card__title",href:r},c)),o&&e.createElement("p",{className:"listing-result-card__author"},"by ",o),i&&e.createElement("p",{className:"listing-result-card__description"},i),s.length>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(Qe,{details:s,theme:a}))))}function pl(C){var t=C.image,a=C.title,l=C.url,n=C.description;return e.createElement(e.Fragment,null,t&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(k,d({},t))),e.createElement("div",{className:"listing-result-card__text"},e.createElement("h2",null,e.createElement("a",{className:"listing-result-card__title",href:l},a)),n&&e.createElement("p",{className:"listing-result-card__description"},n)))}function fl(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.type,n=C.image,c=C.title,r=C.url,i=C.description,o=C.jobTitle,s=C.department,m=C.details,u=C.showCategory,h=void 0!==u&&u;return e.createElement(e.Fragment,null,n&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(k,d({},n))),e.createElement("div",{className:"listing-result-card__text"},h&&e.createElement("p",{className:"listing-result-card__category"},l),e.createElement("h2",null,e.createElement("a",{className:"listing-result-card__title",href:r},c)),(o||s)&&e.createElement("div",{className:"listing-result-card__staff-info"},o&&e.createElement("p",{className:"listing-result-card__job-title"},o),s&&e.createElement("p",{className:"listing-result-card__department"},s)),i&&e.createElement("p",{className:"listing-result-card__description"},i),m.length>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(Qe,{details:m,theme:a}))))}function Ll(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.image,n=C.title,c=C.url,r=C.description,i=C.jobTitle,o=C.department,s=C.details;return e.createElement(e.Fragment,null,l&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(k,d({},l))),e.createElement("div",{className:"listing-result-card__text"},e.createElement("h2",null,e.createElement("a",{className:"listing-result-card__title",href:c},n)),(i||o)&&e.createElement("div",{className:"listing-result-card__staff-info"},i&&e.createElement("p",{className:"listing-result-card__job-title"},i),o&&e.createElement("p",{className:"listing-result-card__department"},o)),r&&e.createElement("p",{className:"listing-result-card__description"},r.length>120?"".concat(r.slice(0,120),"..."):r),s.length>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(Qe,{details:s,theme:a}))))}function vl(C){return e.createElement("article",{className:p("listing-result-card",C.theme&&"theme-".concat(C.theme))},"page"===C.type&&e.createElement(pl,d({},C)),"course"===C.type&&e.createElement(dl,d({},C)),"accomodation"===C.type&&e.createElement(ml,d({},C)),"event"===C.type&&e.createElement(ul,d({},C)),"news"===C.type&&e.createElement(hl,d({},C)),"staff"===C.type&&e.createElement(fl,d({},C)),"profile"===C.type&&e.createElement(Ll,d({},C)))}function gl(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.showCategory,n=void 0!==l&&l,c=C.cards,r=C.headingInfo;return e.createElement(e.Fragment,null,r&&e.createElement(y,d({},r,{theme:a,fullWidth:!0})),e.createElement("ul",{className:p("listing-results",a&&"theme-".concat(a))},c.map(function(C,t){return e.createElement("li",{className:"listing-results__card",key:t},e.createElement(vl,d({},C,{showCategory:n,theme:a})))})))}function El(C){var t=C.count,a=C.theme,l=void 0===a?"uobmain":a;return e.createElement("p",{className:p("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")}function _l(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.listItems;return e.createElement("div",{className:p("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(w,{inverse:!0,theme:"uobmain",text:C}))})):null)}function Ml(C){var t=C.children;return e.createElement("main",{id:"main"},t)}function bl(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.heading,n=C.cards,c=C.cardType,r=void 0===c?"featured-news":c;return e.createElement("section",{className:p("news-articles-promo-block",a&&"theme-".concat(a),r&&"news-articles-promo-block--".concat(r))},e.createElement("div",{className:"news-articles-promo-block__heading-container"},l&&e.createElement("h2",{className:"news-articles-promo-block__heading"},l)),e.createElement("div",{className:"news-articles-promo-block__cards news-articles-promo-block__cards--mobile"},"featured-news"===r&&e.createElement(tC,{theme:a,type:"featured-news",cards:n,inverse:!0,cardTitleTag:"h3"}),"promo-video"===r&&e.createElement(tC,{theme:a,type:"promo-video",cards:n,inverse:!0,cardTitleTag:"h3",setCardInverse:"dark"})),e.createElement("ul",{className:"news-articles-promo-block__cards news-articles-promo-block__cards--desktop"},n.map(function(C,t){return e.createElement("li",{key:t},"featured-news"===r&&e.createElement(Ke,d({},C,{inverse:!0,titleTag:"h3"})),"promo-video"===r&&e.createElement(je,d({},C,{inverse:!1,titleTag:"h3"})))})))}function Zl(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.numOfPages,n=C.onClick,c=C.currentPage,r=ye("768px"),i=e.createElement("li",null,e.createElement("span",{className:"pagination__ellipse"},"..."));return r&&l<=4?e.createElement(e.Fragment,null,Array(l).fill(0).map(function(C,t){return e.createElement("li",{className:p("pagination__number",c===t&&"pagination__number--selected"),key:t},e.createElement(M,{label:(t+1).toString(),onClick:function(){return n(t)},hollow:!(c===t),theme:a}))})):r&&l>4?e.createElement(e.Fragment,null,c>0&&e.createElement("li",{key:0,className:"pagination__number"},e.createElement(M,{label:"1",onClick:function(){return n(0)},theme:a,hollow:!0})),c+1>=3&&i,e.createElement("li",{key:c,className:"pagination__number pagination__number--selected"},e.createElement(M,{label:"".concat(c+1," "),onClick:function(){return n(c)},theme:a})),c+1<l-1&&i,c!==l-1&&e.createElement("li",{key:l-1,className:"pagination__number"},e.createElement(M,{label:l.toString(),onClick:function(){return n(l-1)},theme:a,hollow:!0}))):!r&&l<=6?e.createElement(e.Fragment,null,Array(l).fill(0).map(function(C,t){return e.createElement("li",{key:t,className:p("pagination__number",c===t&&"pagination__number--selected","test")},e.createElement(M,{label:(t+1).toString(),onClick:function(){return n(t)},hollow:!(c===t),theme:a}))})):!r&&l>6?e.createElement(e.Fragment,null,c>0&&e.createElement("li",{key:0,className:"pagination__number start"},e.createElement(M,{label:"1",onClick:function(){return n(0)},theme:a,hollow:!0})),c+1>=4&&i,c>1&&e.createElement("li",{key:c-1,className:"pagination__number before"},e.createElement(M,{label:(c>=1?c:c-1).toString(),onClick:function(){return n(c-1)},theme:a,hollow:!0})),e.createElement("li",{key:c,className:"pagination__number pagination__number--selected current"},e.createElement(M,{label:"".concat(c+1),onClick:function(){return n(c)},theme:a})),c+1<l-1&&e.createElement("li",{key:c+1,className:"pagination__number after"},e.createElement(M,{label:"".concat(c+2),onClick:function(){return n(c+1)},theme:a,hollow:!0})),c+1<l-2&&i,c+1!==l&&e.createElement("li",{key:l-1,className:"pagination__number end"},e.createElement(M,{label:"".concat(l),onClick:function(){return n(l-1)},theme:a,hollow:!0}))):e.createElement(e.Fragment,null)}function Hl(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.numOfPages,n=C.onClick,c=C.currentPage,r=!ye("1248px");return l<=1?e.createElement(e.Fragment,null):e.createElement("div",{className:p("pagination",a&&"theme-".concat(a))},e.createElement("ul",{className:"pagination__container"},e.createElement("li",{className:"pagination__prev",key:"prev"},r?e.createElement(M,{theme:a,label:"Previous",onClick:function(){return n(c-1)},hollow:!0,disabled:c<1}):e.createElement(qe,{theme:a,icon:"arrow-left",title:"Previous",onClick:function(){return n(c-1)},disabled:c<1,inverse:!0})),e.createElement(Zl,{currentPage:c,onClick:n,theme:a,numOfPages:l}),e.createElement("li",{className:"pagination__next",key:"next"},r?e.createElement(M,{theme:a,label:"Next",onClick:function(){return n(c+1)},hollow:!0,disabled:c+1===l}):e.createElement(qe,{theme:a,icon:"arrow-right",title:"Next",onClick:function(){return n(c+1)},disabled:c+1===l,inverse:!0}))))}function wl(C){var t,a=C.theme,l=C.inverse,n=C.type,c=C.title,r=C.description,i=C.link,o=C.cards,s=C.imageOrientation,m=void 0===s?"left":s,u=C.titleTag,h=void 0===u?"h2":u,f=C.cardTitleTag,L=void 0===f?"h3":f,g=C.cardCopyIsRichText,E=void 0!==g&&g,_=C.fullWidth,M=void 0!==_&&_,Z=C.fullWidthTitle,w=void 0!==Z&&Z,V=C.showFilters,y=void 0!==V&&V,N=C.firstFilterSelect,k=C.secondFilterSelect,x=!1;ye("768px")?o.length>1&&(x=!0):(M&&o.length>2||o.length>3)&&(x=!0);var T=p(((t={})["promo-block__grid"]=!0,t["promo-block__grid--single"]=1===o.length,t["promo-block__grid--two-cards"]=2===o.length,t["promo-block__grid--three-cards"]=3===o.length,t["promo-block__grid--four-plus-cards"]=o.length>3,t));return e.createElement("div",{className:p("promo-block","promo-block--".concat(n),a&&"theme-".concat(a),l&&"theme-".concat(a,"--inverse"),M&&"promo-block--full-width")},e.createElement("div",{className:"promo-block__container"},e.createElement("div",{className:p("promo-block__top",w&&"promo-block__top--full-width")},c&&e.createElement(H,{htmlTag:h,classNames:p("promo-block__title","h3"===h&&"promo-block__title--h3")},c),r&&e.createElement(v,{theme:"uobmain",inverse:l,text:r}),i&&e.createElement("div",{className:"promo-block__text-link"},e.createElement(b,{theme:a,inverse:l,url:i.url,title:i.title,externalLink:i.externalLink}))),y&&e.createElement("div",{className:"promo-block__filters"},e.createElement("div",{className:"promo-block__filter-wrapper"},N&&e.createElement(ya,d({},N))),e.createElement("div",{className:"promo-block__filter-wrapper"},k&&e.createElement(ya,d({},k)))),e.createElement("div",{className:"promo-block__content"},e.createElement("div",{className:"promo-block__cards"},!x&&e.createElement("ul",{className:T},o.map(function(C,t){return e.createElement("li",{className:"promo-block__card-item",key:t},function(C){var t=d(d({},C),{cardCopyIsRichText:E});switch(n){case"promo":return e.createElement($e,d({},t));case"promo-signpost":return e.createElement(Re,d({},C));case"promo-video":return e.createElement(je,d({},C));case"promo-profile":return e.createElement(eC,d({},C));default:return e.createElement(e.Fragment,null)}}(d(d({},C),{inverse:l,isSingle:1===o.length,imageOrientation:m,titleTag:L})))})),x&&e.createElement(tC,{theme:a,inverse:l,type:n,cards:o,cardTitleTag:L,cardCopyIsRichText:E})))))}function Vl(C){var t=C.theme,a=C.inverse,l=C.type,n=C.title,c=C.description,r=C.link,i=C.cards,o=C.imageOrientation,s=void 0===o?"left":o,m=C.fullWidth;return e.createElement("div",{className:p("promo-block-grid","promo-block-grid--".concat(l),t&&"theme-".concat(t),a&&"theme-".concat(t,"--inverse"),m&&"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"},n&&e.createElement("h2",null,n),c&&e.createElement(v,{theme:"uobmain",inverse:a,text:c}),r&&e.createElement("div",{className:"promo-block-grid__text-link"},e.createElement(b,{theme:"uobmain",inverse:a,url:r.url,title:r.title,externalLink:r.externalLink}))),e.createElement("div",{className:"promo-block-grid__content"},e.createElement("div",{className:"promo-block-grid__cards"},i.length>0&&e.createElement("ul",{className:"promo-block-grid__grid"},i.map(function(C,t){return e.createElement("li",{className:"promo-block-grid__card-item",key:t},function(C){switch(l){case"promo":return e.createElement($e,d({},C));case"promo-signpost":return e.createElement(Re,d({},C));case"promo-video":return e.createElement(je,d({},C));default:return e.createElement(e.Fragment,null)}}(d(d({},C),{inverse:a,isSingle:1===i.length,imageOrientation:s,titleTag:n?"h3":"h2"})))}))))))}function yl(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=C.title,c=C.description,r=C.cite,i=C.role,o=C.quote,s=C.quoteeProfileImage,m=C.quoteeProfileImageAltText,d=C.cta,u=C.fullWidth,h=void 0!==u&&u,f=C.htmlTag;return e.createElement("div",{className:p("quote-block","theme-".concat(a),l&&"theme-".concat(a,"--inverse"),h&&"quote-block--full-width")},(n||c)&&e.createElement(y,{theme:a,inverse:l,htmlTag:f,title:n,description:c}),e.createElement("blockquote",{className:p("quote-block__container",!s&&"quote-block__container--no-image")},e.createElement("div",{className:"quote-block__doublequote quote-block__doublequote--open"},e.createElement(g,{icon:"quote-marks",theme:a})),e.createElement("p",{className:"quote-block__quote"},o),s&&e.createElement("div",{className:"quote-block__quotee-image"},e.createElement(k,{src:{default:s},altText:m})),(r||i)&&e.createElement("footer",{className:"quote-block__cite"},r&&e.createElement("cite",{className:"quote-block__cite-cite"},r),i&&e.createElement("div",{className:"quote-block__cite-role"},i)),e.createElement("div",{className:"quote-block__doublequote quote-block__doublequote--close"},e.createElement(g,{icon:"quote-marks",theme:a})),d&&e.createElement("div",{className:"quote-block__optional-link"},e.createElement(b,{inverse:l,onKeyDown:function(){},theme:a,title:d.title,url:d.url}))))}function Nl(C){var t,a=C.theme,l=void 0===a?"uobmain":a,n=C.inverse,c=void 0===n||n,r=C.heading,i=C.description,o=C.linkProps,s=C.headingStyle,m=C.fullWidth,u=C.cards,h=ye("768px"),f=h&&u.length>1||!h&&m&&u.length>2||!h&&!m&&u.length>3,L=p(((t={})["related-courses__grid"]=!0,t["related-courses__grid--single"]=1===u.length,t["related-courses__grid--two-cards"]=2===u.length,t["related-courses__grid--three-cards"]=3===u.length,t["related-courses__grid--four-plus-cards"]=u.length>3,t));return e.createElement("section",{className:p("related-courses",l&&"theme-".concat(l),c&&"theme-".concat(l,"--inverse"),m&&"related-courses--full-width")},e.createElement("div",{className:"related-courses__container"},e.createElement("h2",{className:p("related-courses__heading",s&&"related-courses__heading--".concat(s))},r),i&&e.createElement("div",{className:"related-courses__description"},i),o&&o.url&&o.title&&e.createElement("div",{className:"related-courses__arrow-link-container"},e.createElement(b,{theme:l,inverse:c,title:o.title,url:o.url})),e.createElement("div",{className:"related-courses__cards"},!f&&e.createElement("ul",{className:L},u.map(function(C,t){return e.createElement("li",{className:"related-courses__card-item",key:t},e.createElement(We,d({},C)))})),f&&e.createElement(tC,{theme:l,inverse:c,type:"related",cards:u,cardTitleTag:"h3"}))))}function kl(C){var t,a=C.theme,l=void 0===a?"uobmain":a,n=C.inverse,c=void 0===n||n,r=C.fullWidth,i=void 0!==r&&r,o=C.headingProps,s=C.cards,m=ye("768px"),u=m&&s.length>1||!m&&s.length>2,h=p(((t={})["scholarship-carousel__grid"]=!0,t["scholarship-carousel__grid--single"]=1===s.length,t["scholarship-carousel__grid--two-cards"]=2===s.length,t["scholarship-carousel__grid--three-plus-cards"]=s.length>3,t));return e.createElement("section",{className:p("scholarship-carousel",l&&"theme-".concat(l),c&&"theme-".concat(l,"--inverse"),i&&"scholarship-carousel--full-width")},e.createElement("div",{className:"scholarship-carousel__container"},o&&e.createElement(y,d({},o,{theme:l,inverse:c,fullWidth:i})),e.createElement("div",{className:"scholarship-carousel__cards"},!u&&e.createElement("ul",{className:h},s.map(function(C,t){return e.createElement("li",{className:"related-courses__card-item",key:t},e.createElement(Je,d({},C,{inverse:c})))})),u&&e.createElement(tC,{theme:l,inverse:c,type:"scholarship",cards:s,cardTitleTag:"h3"}))))}function xl(C){var t,a=C.theme,l=void 0===a?"uobmain":a,n=C.inverse,c=void 0===n||n,r=C.fullWidth,i=void 0!==r&&r,o=C.heading,s=C.headingStyle,m=void 0===s?null:s,u=C.cards,h=C.singleLink,f=C.titleTag,L=void 0===f?"h2":f,v=C.useCarousel,g=void 0===v||v,E=C.cardType,_=void 0===E?"staff":E,M=ye("768px"),Z=g&&M&&u.length>1||g&&!M&&u.length>2,w="staff"===_,V=p(((t={})["staff-listing-carousel__grid"]=!0,t["staff-listing-carousel__grid--single"]=1===u.length,t["staff-listing-carousel__grid--two-cards"]=2===u.length,t["staff-listing-carousel__grid--three-plus-cards"]=u.length>3,t));return e.createElement("section",{className:p("staff-listing-carousel",l&&"theme-".concat(l),c&&"theme-".concat(l,"--inverse"),i&&"staff-listing-carousel--full-width",!g&&"staff-listing-carousel--no-carousel")},e.createElement("div",{className:"staff-listing-carousel__container"},o&&e.createElement(H,{htmlTag:L,classNames:p("staff-listing-carousel__heading","staff-listing-carousel__heading--".concat(L),m&&"staff-listing-carousel__heading--".concat(m))},o),e.createElement("div",{className:"staff-listing-carousel__cards"},!Z&&e.createElement("ul",{className:V},u.map(function(C,t){return e.createElement("li",{className:"related-courses__card-item",key:t},w?e.createElement(Ue,d({},C,{theme:l,inverse:c,isSingle:1===u.length})):e.createElement(eC,d({},C,{theme:l,inverse:c})))})),Z&&e.createElement(tC,{theme:l,inverse:c,type:_,cards:u,cardTitleTag:"h3"})),1===u.length&&h&&e.createElement(b,{theme:l,url:h.url,title:h.title,inverse:!0})))}function Tl(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.sidebarElement,n=C.children;return e.createElement("div",{id:"sidebar",className:p("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)))}function Sl(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0!==l&&l,c=C.items,r=C.fullWidth,i=void 0!==r&&r,o=C.htmlTag,s=void 0===o?"h2":o;return e.createElement("div",{className:p("signpost",i&&"signpost--full-width",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"))},e.createElement("div",{className:"signpost__container"},e.createElement("div",{className:"signpost__grid"},c.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(H,{htmlTag:s,classNames:"signpost__title"},C.title),e.createElement(b,{url:C.linkUrl,title:C.linkLabel,theme:a,inverse:n,externalLink:C.external}))}))))}function Pl(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0!==l&&l,c=C.includeIcon,r=C.link,i=C.fullWidth;return e.createElement("div",{className:p("single-button",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"),i&&"single-button--full-width")},e.createElement("div",{className:"single-button__container"},c?e.createElement(De,d({},r,{inverse:!n})):e.createElement(M,d({},r,{inverse:!n}))))}function Ol(C){var t=C.theme,a=void 0===t?"uobmain":t;return e.createElement("div",{className:p("skip-to-content",a&&"theme-".concat(a))},e.createElement("a",{className:"skip-to-content__link",href:"#main"},"Skip to main content"))}function ql(e,C){return L("".concat(null!=e?e:""," ").concat(C))}function Fl(C){var t=C.children,a=C.theme,l=void 0===a?"uobmain":a,n=C.inverse,c=void 0!==n&&n;return e.createElement("div",{className:p("tabs__list__container",l&&"theme-".concat(l),c&&"theme-".concat(l,"--inverse"))},e.createElement("ul",{className:"tabs__list",role:"tablist"},t))}function Bl(C){var t=C.title,a=C.htmlTag,l=void 0===a?"h3":a,n=C.theme,c=void 0===n?"uobmain":n,r=C.inverse,i=void 0!==r&&r,o=C.isActive,s=C.children,m=C.tabsBlockName;if(!o)return null;var d=ql(null!=m?m:"",t);return e.createElement("div",{id:m,className:p("tabs__panel",c&&"theme-".concat(c),i&&"theme-".concat(c,"--inverse")),role:"tabpanel","aria-labelledby":"tab_"+d},e.createElement(H,{htmlTag:l,classNames:"tabs__panel-title"},t),s)}function Dl(C){var t=C.id,n=C.theme,c=void 0===n?"uobmain":n,r=C.inverse,i=void 0!==r&&r,o=C.tabItem,s=C.isActive,m=C.hasFocus,d=C.tabsBlockName,u=C.handleClick,h=C.handleKeyboardNavigation,f=l(null);a(function(){s&&m&&f.current&&(f.current.focus(),window.matchMedia("min-width: 768px").matches&&f.current.scrollIntoView())});var L=ql(null!=d?d:"",o.title);return e.createElement("li",{className:"tabs__list-item",role:"presentation"},e.createElement("button",{className:p("tabs__tab",c&&"theme-".concat(c),i&&"theme-".concat(c,"--inverse"),s&&"active"),onClick:function(e){return u(e,t)},onKeyDown:h,ref:f,id:"tab_"+L,role:"tab","aria-controls":L,"aria-selected":s?"true":"false",tabIndex:s?0:-1,type:"button"},o.title))}function Il(C){var c=C.theme,r=void 0===c?"uobmain":c,i=C.inverse,o=void 0!==i&&i,s=C.title,m=C.description,u=C.tabItems,h=C.fullWidth,f=C.htmlTag,L=void 0===f?"h2":f,g=C.removeBottomPadding,E=void 0!==g&&g,_=C.name,H=C.enableHashNavigation,w=void 0!==H&&H,V=l(null),k=n(function(){return u.findIndex(function(e){return ql(null!=_?_:"",e.title)===window.location.hash.substring(1)})},[u,_]),x=t(0),T=x[0],S=x[1],P=t(-1),O=P[0],q=P[1],F=ye("1248px");function B(e){if(w){var C=window.location.href.replace(window.location.hash,""),t=ql(null!=_?_:"",u[e].title);history.pushState(null,"null",C.concat("#",t))}}function D(e,C){e.preventDefault(),S(C),B(C)}a(function(){if(0!==window.location.hash.length){var e=k();e<0||(S(e),q(e))}},[k,S]);var I=function(e){switch(e.key){case"ArrowLeft":case"ArrowUp":case"Left":case"Up":if(0===T)return;S(T-1),q(T-1),B(T-1);break;case"ArrowRight":case"ArrowDown":case"Right":case"Down":if(T>=u.length-1)return;S(T+1),q(T+1),B(T+1);break;case"Home":S(0),q(0),B(0);break;case"End":S(u.length-1),q(u.length-1),B(u.length-1)}};function A(){var e="h3";return s&&"h2"===L?e="h3":s&&"h3"===L&&(e="h4"),e}return a(function(){var e=function(e){if(e.preventDefault(),0!==window.location.hash.length){var C=k();C<0||(S(C),q(C))}};return window.addEventListener("hashchange",e),function(){window.removeEventListener("hashchange",e)}},[T,k]),e.createElement(e.Fragment,null,F&&e.createElement(N,{heading:{title:s,description:m,fullWidth:h,htmlTag:L},theme:r,inverse:o,fullWidth:h,accordionItems:u.map(function(e,C){return{key:e.title||C,title:e.title,text:e.content,titleTag:e.titleTag?e.titleTag:A(),primaryButton:e.primaryButton,secondaryButton:e.secondaryButton,link:e.link}})}),e.createElement("div",{className:p("tabs",r&&"theme-".concat(r),o&&"theme-".concat(r,"--inverse"),h&&"tabs--full-width",E&&"tabs--no-bottom-padding"),id:"tabs",ref:V},!F&&e.createElement(e.Fragment,null,e.createElement(y,{theme:r,inverse:o,htmlTag:L,title:s,description:m,fullWidth:h}),e.createElement("div",{className:"tabs__container"},e.createElement("span",null,e.createElement(Fl,{theme:r,inverse:o},u.map(function(C,t){return e.createElement(Dl,{key:t,id:t,theme:r,inverse:o,tabItem:C,tabListTopRef:V,isActive:t===T,hasFocus:t===O,enableHashNavigation:w,tabsBlockName:_,handleClick:D,handleKeyboardNavigation:I})})),u.map(function(C,t){return e.createElement(Bl,{key:t,isActive:t===T,inverse:o,theme:r,title:C.title,tabsBlockName:_,htmlTag:C.titleTag?C.titleTag:A()},C.content&&e.createElement(v,{theme:r,inverse:o,text:C.content}),C.accordionItems&&C.accordionItems.map(function(C){return e.createElement(Z,d({key:C.key},C,{inverse:o}))}),(C.primaryButton&&C.primaryButton.text||C.secondaryButton&&C.secondaryButton.text)&&e.createElement("div",{className:"tabs__optional-buttons"},C.primaryButton&&C.primaryButton.text&&e.createElement(M,{label:C.primaryButton.text,url:C.primaryButton.url,theme:r,inverse:!o}),C.secondaryButton&&C.secondaryButton.text&&e.createElement(M,{hollow:!0,label:C.secondaryButton.text,url:C.secondaryButton.url,theme:r,inverse:!o})),C.link&&C.link.text&&e.createElement("div",{className:"tabs__optional-link"},e.createElement(b,{theme:r,inverse:o,url:C.link.url,title:C.link.text})))}))))))}function Al(C){var t=C.text,a=C.theme,l=void 0===a?"uobmain":a,n=C.inverse,c=C.headingLevel,r=C.headingText,i=C.url,o=C.linkTitle,s=C.externalLink,m=C.linkStyle,d=C.fullWidth,u=C.removeBottomPadding,h=void 0!==u&&u,f=c;return e.createElement("div",{className:p("text-with-background",l&&"theme-".concat(l),n&&"theme-".concat(l,"--inverse"),d&&"text-with-background--full-width",h&&"text-with-background--no-bottom-padding")},r&&e.createElement("div",{className:"text-with-background__heading-wrapper"},e.createElement(f,null,r)),e.createElement(v,{text:t,inverse:n,theme:l}),i&&o&&e.createElement("div",{className:"text-with-background__link-wrapper"},e.createElement("div",{className:"text-with-background__link-inner-wrapper"},("primary"===m||"secondary"===m)&&e.createElement(M,{url:i,theme:l,label:o,externalLink:s,hollow:"secondary"===m,inverse:!n}),"paragraph-link"===m&&e.createElement(Ta,{url:i,label:o,externalLink:s,theme:l,inverse:n}))))}function $l(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.label,n=C.url,c=C.externalLink;return e.createElement("a",{className:p("pill",a&&"theme-".concat(a)),href:n,target:c?"_blank":"_self",rel:c?"noopener noreferrer":""},l)}function Rl(C){var t=C.topics,a=C.theme,l=void 0===a?"uobmain":a,n=C.titleTag,c=C.heading;return e.createElement("section",{className:p("topics-selector",l&&"theme-".concat(l))},e.createElement("div",{className:"topics-selector__container"},"h2"===n?e.createElement("h2",{className:"topics-selector__heading"},c):e.createElement("h3",{className:"topics-selector__heading"},c),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($l,{theme:l,label:C.label,url:C.url,externalLink:C.externalLink}))}))))}Cl.displayName="HeroCardContent",m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m(),m();var jl,zl={exports:{}};var Ul,Wl=(jl||(jl=1,Ul=zl,function(e,C){Ul.exports=C()}(0,function(){var e=[],C=[],t={},a={},l={};function n(e){return"string"==typeof e?new RegExp("^"+e+"$","i"):e}function c(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 r(e,C){return e.replace(C[0],function(t,a){var l,n,r=(l=C[1],n=arguments,l.replace(/\$(\d{1,2})/g,function(e,C){return n[C]||""}));return c(""===t?e[a-1]:t,r)})}function i(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 r(C,n)}return C}function o(e,C,t){return function(a){var l=a.toLowerCase();return C.hasOwnProperty(l)?c(a,l):e.hasOwnProperty(l)?c(a,e[l]):i(l,a,t)}}function s(e,C,t,a){return function(a){var l=a.toLowerCase();return!!C.hasOwnProperty(l)||!e.hasOwnProperty(l)&&i(l,l,t)===l}}function m(e,C,t){return(t?C+" ":"")+(1===C?m.singular(e):m.plural(e))}return m.plural=o(l,a,e),m.isPlural=s(l,a,e),m.singular=o(a,l,C),m.isSingular=s(a,l,C),m.addPluralRule=function(C,t){e.push([n(C),t])},m.addSingularRule=function(e,t){C.push([n(e),t])},m.addUncountableRule=function(e){"string"!=typeof e?(m.addPluralRule(e,"$0"),m.addSingularRule(e,"$0")):t[e.toLowerCase()]=!0},m.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 m.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 m.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 m.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(m.addUncountableRule),m})),zl.exports),Gl=UC(Wl);function Kl(C){var a=C.theme,l=C.heading,n=C.selectContent,c=C.defaultIsOpen,r=void 0!==c&&c;n&&(r=!!n.defaultValue||r);var i=t(r),o=i[0],s=i[1];return e.createElement("fieldset",{className:p("filter-accordion-select",o&&"filter-accordion-select--open",a&&"theme-".concat(a))},e.createElement("legend",{className:"filter-accordion-select__legend"},e.createElement("button",{className:"filter-accordion-select__button",onClick:function(){return s(function(e){return!e})},"aria-expanded":o,"aria-controls":l.replace(" ","")},l,e.createElement(g,{icon:"chevron-down",theme:a,inverse:!0,ariaHidden:!0}))),o&&e.createElement("div",{className:"filter-accordion-select__select-wrapper"},e.createElement(ya,d({theme:a,inverse:!0},n))))}function Yl(C){var t=C.theme,a=C.name,l=C.id,n=C.label,c=C.defaultValue,r=C.onChange;return e.createElement("div",{className:p("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:c,onChange:r,name:a,id:l}))}m(),m(),m();var Jl,Xl=function(e){var C=e.split(" "),t=C[C.length-1];return C[C.length-1]=Gl(t),C.join(" ")};function Ql(C){var t=C.theme,a=C.heading,l=C.listingGroups,n=C.onClearFilters,c=C.onViewResults;return e.createElement("div",{className:p("standard-listing-filter",t&&"theme-".concat(t))},e.createElement("p",{className:"standard-listing-filter__heading"},a),e.createElement("ul",{className:"standard-listing-filter__list"},l.map(function(C){var a;return"date"===C.type?e.createElement("li",{className:"standard-listing-filter__item",key:C.name},e.createElement(Yl,d({},C,{theme:t,defaultValue:null!==(a=C.defaultValue)&&void 0!==a?a:"",onChange:C.onChange}))):"radio"===C.type?e.createElement("li",{className:"standard-listing-filter__item",key:C.name},e.createElement(jC,{type:"radio",heading:C.heading,theme:t,showMoreText:Xl(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(jC,{type:"checkbox",heading:C.heading,theme:t,showMoreText:Xl(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(Kl,{heading:C.heading,selectContent:C.selectContent,theme:t})):void 0})),c&&e.createElement("div",{className:"standard-listing-filter__results-button"},e.createElement(M,{label:"View selected results",onClick:c,theme:t})),e.createElement("div",{className:"standard-listing-filter__clear-button"},e.createElement(M,{label:"Clear filters",onClick:n,theme:t,hollow:!0})))}function en(C){var t=C.theme,a=C.tag,l=C.title,n=C.linkUrl,c=C.linkText,i=C.externalLink,o=C.cards,s={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:p("video-card-component",t&&"theme-".concat(t)),id:"video-card-component"},e.createElement("div",{className:"video-card-component__content"},a&&e.createElement("p",{className:"video-card-component__tag"},a),e.createElement("h2",{className:"video-card-component__title"},l),n&&c&&e.createElement("div",{className:"video-card-component__link"},e.createElement(b,{theme:t,url:n,title:c,inverse:!0,externalLink:i})),e.createElement("div",{className:"video-card-component__carousel"},e.createElement(tC,{theme:t,type:"video",inverse:!0,cards:o,cardTitleTag:"h3"})),e.createElement("ul",{className:p("video-card-component__cards-desktop",(!n||!c)&&"video-card-component__cards-desktop--no-link")},o.map(function(C,a){return e.createElement(r.li,{key:a,variants:s,initial:"initial",whileInView:"animate",viewport:{once:!0,amount:.2},custom:a},a<=1?e.createElement("div",{className:"video-card-component__lines video-card-component__lines--".concat(a)},1===a&&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(Ie,{theme:t,image:{src:{default:C.image.src.default,medium:C.image.src.medium,small:C.image.src.small},altText:""},title:C.title,youtubeId:C.youtubeId,buttonLabel:C.buttonLabel,titleTag:"h3"}))}))))}function Cn(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.imageSrc,n=C.onClick;return e.createElement("div",{className:p("video-placeholder",a&&"theme-".concat(a))},e.createElement(k,{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 tn(C){var a=C.theme,l=void 0===a?"uobmain":a,n=C.imageSrc,c=C.videoUrl,r=C.videoId,i=t(!1),o=i[0],s=i[1];return e.createElement("div",{className:p("video-with-placeholder",l&&"theme-".concat(l))},o?e.createElement(Oe,{url:c,id:r,autoPlay:!0,theme:l}):e.createElement(Cn,{imageSrc:n,onClick:function(){return s(!0)},theme:l}))}function an(C){var a=C.theme,l=void 0===a?"uobmain":a,n=C.inverse,c=void 0!==n&&n,r=C.imageSrc,i=C.videoUrl,o=C.videoId,s=C.heading,m=C.audioDescribedVideoId,u=C.audioDescribedVideoUrl,h=C.transcript,f=C.fullWidth,L=void 0!==f&&f,v=C.videoCaption,g=C.videoCredit,E=t(!1),_=E[0],M=E[1];return e.createElement("div",{className:p("video-embed",L&&"video-embed--full-width",l&&"theme-".concat(l),c&&"theme-".concat(l,"--inverse"))},s&&e.createElement(y,d({},s,{theme:l,inverse:c})),e.createElement("div",{className:"video-embed__grid"},e.createElement("div",{className:"video-embed__content-wrapper"},e.createElement(tn,{theme:l,imageSrc:r,videoUrl:_?i:u,videoId:_?m:o}),(v||g)&&e.createElement("div",{className:"video-embed__caption-wrapper"},v&&e.createElement("p",{className:"video-embed__caption"},v),g&&e.createElement("p",{className:"video-embed__credit"},g)),(m||u)&&(_?e.createElement("button",{className:"video-embed__audio-described-button",onClick:function(){return M(!1)}},"Non-audio described version"):e.createElement("button",{className:"video-embed__audio-described-button",onClick:function(){return M(!0)}},"Audio described version")),h&&e.createElement("div",{className:"video-embed__transcript"},e.createElement(Z,{titleTag:"h3",theme:l,title:"Transcript",text:h,inverse:c})))))}function ln(C){var t,a=C.theme,l=void 0===a?"uobmain":a,n=C.inverse,c=void 0===n||n,r=C.fullWidth,i=void 0!==r&&r,o=C.heading,s=C.description,m=C.cards,u=C.singleLink,h=C.titleTag,f=void 0===h?"h2":h,L=C.cardTitleTag,v=void 0===L?"h3":L,g=ye("768px"),E=g&&m.length>1||!g&&m.length>2,_=p(((t={})["research-story-carousel__grid"]=!0,t["research-story-carousel__grid--single"]=1===m.length,t["research-story-carousel__grid--two-cards"]=2===m.length,t["research-story-carousel__grid--three-plus-cards"]=m.length>3,t));return e.createElement("section",{className:p("research-story-carousel",l&&"theme-".concat(l),c&&"theme-".concat(l,"--inverse"),i&&"research-story-carousel--full-width")},e.createElement("div",{className:"research-story-carousel__container"},(o||s||u)&&e.createElement(y,{theme:l,inverse:!0,htmlTag:f,title:o,description:s,linkProps:u,fullWidth:!0}),e.createElement("div",{className:"research-story-carousel__cards"},!E&&e.createElement("ul",{className:_},m.map(function(C,t){return e.createElement("li",{key:t},e.createElement(Ye,d({},C)))})),E&&e.createElement(tC,{theme:l,inverse:c,type:"research-story",cards:m,cardTitleTag:v}))))}function nn(C){var r=C.text,i=C.theme,o=void 0===i?"uobmain":i,s=C.inverse,m=C.fullWidth,d=void 0!==m&&m,u=C.removeBottomPadding,h=void 0!==u&&u,f=C.tableCategory,L=void 0===f?Jl.NotSpecified:f,v=l(null),g=t(!1),E=g[0],_=g[1],M=t(!0),b=M[0],Z=M[1],H=t(!1),w=H[0],V=H[1],y=c(),N=function(){var e=v.current;e&&(_(e.scrollLeft>0),Z(e.scrollLeft<e.scrollWidth-e.clientWidth))},k=n(function(){var e=v.current;if(e){var C=e.scrollWidth>e.clientWidth;V(C),N()}},[]),x=function(e){var C=v.current;if(C){var t="left"===e?C.scrollLeft-200:C.scrollLeft+200;C.scrollTo({left:t,behavior:"smooth"})}};return a(function(){k();var e=v.current;e&&e.addEventListener("scroll",N);var C=function(){return k()};return window.addEventListener("resize",C),function(){e&&e.removeEventListener("scroll",N),window.removeEventListener("resize",C)}},[k]),e.createElement("div",{className:p("scrollable-table",d&&"scrollable-table--full-width",o&&"theme-".concat(o),s&&"theme-".concat(o,"--inverse"),h&&"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(qe,{key:"iconButtonLeft",theme:o,icon:"arrow-left",onClick:function(){return x("left")},title:"Scroll left",ariaControls:y,disabled:!E,inverse:s}),e.createElement(qe,{key:"iconButtonRight",theme:o,icon:"arrow-right",onClick:function(){return x("right")},title:"Scroll right",ariaControls:y,disabled:!b,inverse:s})),e.createElement("div",{className:p("scrollable-table__table-wrapper","scrollable-table__".concat(L),s&&"scrollable-table__".concat(L,"--inverse")),ref:v,id:y,tabIndex:0},e.createElement("span",{dangerouslySetInnerHTML:{__html:r}})))))}function cn(C){var a=C.theme,l=C.heading,n=C.inverse,c=C.description,r=C.buttonLabel,i=C.buttonModifier,o=C.modalChildren,s=C.htmlTag,m=void 0===s?"h3":s,d=t(!1),u=d[0],h=d[1],f=function(){h(!1),document.body.classList.remove("lock-scroll")};return e.createElement("div",{className:p("modal-cta",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"))},e.createElement(H,{htmlTag:m,classNames:"modal-cta__heading"},l),c&&e.createElement("p",{className:"modal-cta__description"},c),e.createElement("div",{className:p("modal-cta__button",i&&"theme-".concat(a,"--buttonModifier"))},e.createElement(M,{inverse:!n,label:r,onClick:function(){u?f():(h(!0),document.body.classList.add("lock-scroll"))},theme:a,buttonModifier:i})),u&&e.createElement(Be,{centred:!0,theme:a,closeModal:f,isOpen:u},e.createElement(iC,{className:"modal-cta__embed-wrapper"},o)))}function rn(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0===l||l,c=C.cards,r=Array.isArray(c)?c:[c];return e.createElement("div",{className:p("module-card-group",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"))},e.createElement("div",{className:"module-card-group__container"},e.createElement("div",{className:"module-card-group__grid"},r.map(function(C,t){return e.createElement(_,d({key:t},C,{theme:a}))}))))}function on(C){var t=C.theme,a=C.embedChildren,l=C.googleMapLink,n=C.address,c=C.services,r=C.link,i=C.titleTag,o=void 0===i?"h2":i;return e.createElement("section",{className:p("location-section",t&&"theme-".concat(t),(!c||c.length<1)&&"location-section--no-services")},e.createElement("div",{className:"location-section__container"},e.createElement(H,{htmlTag:o,classNames:p("location-section__title","h3"===o&&"location-section__title--h3")},"Location"),e.createElement("div",{className:"location-section__grid-wrapper"},e.createElement("div",{className:"location-section__embed"},e.createElement(iC,null,a)),e.createElement("div",{className:"location-section__address-wrapper"},e.createElement("div",{className:"location-section__address"},e.createElement(IC,{theme:t,title:"Address",iconType:"slim-location",value:n.map(function(e){return"<span>".concat(e,"</span>")}).join("")})),r&&(null==r?void 0:r.title)&&(null==r?void 0:r.url)&&e.createElement("div",{className:"location-section__link-wrapper"},e.createElement(b,d({},r,{inverse:!0}))),l?e.createElement("div",{className:"location-section__button"},e.createElement(M,{label:"View on Google Maps",theme:t,url:l})):null),(null==c?void 0:c.length)?e.createElement("div",{className:"location-section__services"},null==c?void 0:c.map(function(C,a){return e.createElement(IC,d({},C,{theme:t,key:a}))})):null)))}function sn(C){var t=C.theme,a=C.studentName,l=C.studentStatus,n=C.courseName,c=C.courseDetails,r=C.studyLevel,i=C.titleTag,o=void 0===i?"h2":i,s=C.homeCountry,m=C.studentIntro,u=C.image,h=C.inverse;return e.createElement("div",{className:p("heroProfile",t&&"theme-".concat(t),h&&"theme-".concat(t,"--inverse")),id:"hero"},e.createElement("div",{className:"heroProfile__container"},e.createElement("div",{className:"heroProfile__details"},a&&e.createElement(o,{className:"heroProfile__title"},a),l&&e.createElement("p",{className:"heroProfile__status"},l),n&&e.createElement("p",{className:"heroProfile__courseName"},n),(r||s||c&&c.length>0)&&e.createElement("ul",{className:"heroProfile__studentDetails"},c&&c.length>0&&e.createElement("li",null,e.createElement("div",{className:"heroProfile__iconContainer"},e.createElement(ze,{icon:"mortar-board",theme:t,backgroundColor:"pale"}),e.createElement("div",{className:"heroProfile__courseIconText"},e.createElement("span",null,1===c.length?"Course":"Courses",":"),e.createElement("div",{className:"heroProfile__courseDetails"},c.map(function(C,a){return e.createElement(w,{theme:t,key:a,text:C,inverse:h})}))))),r&&e.createElement("li",null,e.createElement("div",{className:"heroProfile__iconContainer"},e.createElement(ze,{icon:"scroll",theme:t,backgroundColor:"pale"}),e.createElement("div",{className:"heroProfile__iconText"},e.createElement("span",null,"Study level:"),e.createElement("span",null,r)))),s&&e.createElement("li",null,e.createElement("div",{className:"heroProfile__iconContainer"},e.createElement(ze,{icon:"flag",theme:t,backgroundColor:"pale"}),e.createElement("div",{className:"heroProfile__iconText"},e.createElement("span",null,"Home country:"),e.createElement("span",null,s))))),m&&e.createElement(w,{theme:t,text:m,inverse:h})),e.createElement("div",{className:"heroProfile__image-wrapper"},u&&e.createElement(k,d({},u,{altText:null==u?void 0:u.alt,fetchPriority:u.fetchPriority})))))}function mn(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.firstColumn,n=C.secondColumn;return e.createElement("div",{className:p("two-column-wrapper",a&&"theme-".concat(a))},e.createElement("div",{className:"two-column-wrapper__grid-container"},e.createElement("div",{className:p("two-column-wrapper__first-column",!n&&"two-column-wrapper__first-column-centred")},l),n&&e.createElement("div",{className:"two-column-wrapper__second-column"},n)))}m(),m(),m(),m(),m(),m(),function(e){e.NotSpecified="NotSpecified",e.ColumnAndRowHeadings="ColumnAndRowHeadings",e.ColumnHeadingsOnly="ColumnHeadingsOnly"}(Jl||(Jl={})),m(),m(),m(),m(),m();export{N as Accordion,x as AcreditationPromotion,S as AlertBanner,P as AnchorTarget,q as Breadcrumbs,rC as CTAComponent,aC as CardProfile,eC as CardPromoProfile,Ue as CardStaff,tC as Carousel,lC as CentreWrapper,nC as ClearingBanner,cC as CourseDeliveryPills,iC as EmbedWrapper,sC as FactBoxes,mC as FeaturedContent,NC as FeaturedSignpost,xC as FeaturedVideo,TC as FiveArticlesGrid,FC as Footer,zC as GeneralSearchFilter,AC as GenericDetailSection,ba as Header,y as Heading,ka as Hero,Sa as HeroArticle,tl as HeroCarousel,Da as HeroCourses,sn as HeroProfile,al as ImageBlock,ll as ImageCarousel,cl as InPageNavigation,rl as IntroText,ol as LeadNewsArticles,_l as ListTable,sl as ListingFilterWrapper,gl as ListingResults,El as ListingResultsCount,on as LocationSection,Ba as LocationSelector,Ml as MainWrapper,cn as ModalCTA,rn as ModuleCardGroup,bl as NewsArticlesPromoBlock,Hl as Pagination,wl as PromoBlock,Vl as PromoBlockGrid,yl as QuoteBlock,Nl as RelatedCourses,ln as ResearchStoryCarousel,v as RichText,kl as ScholarshipCarousel,nn as ScrollableTable,Na as SearchCourses,Tl as SidebarWrapper,Sl as SignPost,Pl as SingleButton,Ol as SkipToContent,xl as StaffListingCarousel,Ql as StandardListingFilter,Il as TabsBlock,Al as TextWithBackground,Rl as TopicSelector,mn as TwoColumnWrapper,en as VideoCardComponent,an as VideoEmbed};
|