@uob-web-and-digital/component-library 2.1.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -20,4 +20,4 @@ object-assign
20
20
  * focus-trap 7.6.5
21
21
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
22
22
  */
23
- function gt(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 Et(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 _t(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 Mt(e){for(var C=1;C<arguments.length;C++){var t=null!=arguments[C]?arguments[C]:{};C%2?_t(Object(t),!0).forEach(function(C){Et(e,C,t[C])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_t(Object(t)).forEach(function(C){Object.defineProperty(e,C,Object.getOwnPropertyDescriptor(t,C))})}return e}function bt(e){return function(e){if(Array.isArray(e))return gt(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 gt(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)?gt(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 Zt,Ht,wt=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)},Vt=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)},yt=function(e){return"Tab"===(null==e?void 0:e.key)||9===(null==e?void 0:e.keyCode)},Nt=function(e){return yt(e)&&!e.shiftKey},kt=function(e){return yt(e)&&e.shiftKey},xt=function(e){return setTimeout(e,0)},Tt=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},St=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},Pt=[],Ot=gC(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)||Pt,n=Mt({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Nt,isKeyBackward:kt},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,bt(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&&!Lt(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=ut(e,n.tabbableOptions),t=ht(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 pt(e)}),r=t.slice().reverse().find(function(e){return pt(e)}),i=!!C.find(function(e){return at(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 pt(e)}):t.slice(0,t.indexOf(e)).reverse().find(function(e){return pt(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||St(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||Lt(C,n.tabbableOptions)&&!pt(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=at(C)>=0?p.lastTabbableNode:p.lastDomTabbableNode}else yt(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||Lt(C,n.tabbableOptions)&&!pt(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=at(C)>=0?v.firstTabbableNode:v.firstDomTabbableNode}else yt(t)||(r=d.nextTabbableNode(C))}}else r=o("fallbackFocus");return r},f=function(e){var C=St(e);i(C,e)>=0||(Tt(n.clickOutsideDeactivates,e)?t.deactivate({returnFocus:n.returnFocusOnDeactivate}):Tt(n.allowOutsideClick,e)||e.preventDefault())},L=function(e){var C=St(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(at(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 at(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&&(yt(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===Tt(n.escapeDeactivates,e)||(e.preventDefault(),t.deactivate())},E=function(e){var C=St(e);i(C,e)>=0||Tt(n.clickOutsideDeactivates,e)||Tt(n.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},_=function(){if(c.active)return wt(l,t),c.delayInitialFocusTimer=n.delayInitialFocus?xt(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=Mt({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(),Vt(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(){xt(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}})),qt=gC(vt);var Ft=function(){if(Ht)return Zt;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+""}Ht=1;var i=e,o=UC(),s=Ot.createFocusTrap,m=qt.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},Zt=d}(),Bt=vC(Ft);t();var Dt=function(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.onClick,n=C.label,r=C.level,i=C.autoFocus,o=void 0!==i&&i;return e.createElement("button",{className:c("nav-link",a&&"theme-".concat(a),"nav-link--".concat(r)),onClick:l,autoFocus:o},e.createElement("span",{className:"nav-link__label"},n,e.createElement("span",{className:"nav-link__icon"},e.createElement(s,{icon:"chevron-right",theme:a,ariaHidden:!0}))))};t();var It=function(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.url,n=C.label,r=C.level,i=C.autoFocus,o=void 0!==i&&i,s=C.externalLink,m=void 0!==s&&s,d=e.useRef(null);return e.useEffect(function(){o&&d.current&&d.current.focus()},[o]),e.createElement("a",{className:c("page-link",a&&"theme-".concat(a),"page-link--".concat(r)),href:l,ref:d,target:m?"_blank":"_self",rel:m?"noopener noreferrer":""},n)};function At(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.inverse,r=void 0===n||n,i=C.image,o=C.tag,m=C.title,d=C.href,u=C.linkText,p=C.description,f=C.type;return e.createElement("div",{className:c("card-menu",f&&"card-menu--".concat(f),l&&"theme-".concat(l),r&&"theme-".concat(l,"--inverse"))},e.createElement("figure",{className:"card-menu__figure"},e.createElement("div",{className:"card-menu__image-wrapper"},e.createElement(_,a({},i,{altText:"",loadingAttr:"lazy"}))),e.createElement("figcaption",{className:"card-menu__text-content"},"secondary"===f&&e.createElement(e.Fragment,null,e.createElement("p",{className:"card-menu__tag card-menu__tag"},o),e.createElement("a",{className:"card-menu__link",href:d},e.createElement("h2",{className:"card-menu__title"},m))),"primary"===f?e.createElement(e.Fragment,null,e.createElement("h2",{className:"card-menu__title"},m),e.createElement("p",{className:"card-menu__description"},p),e.createElement("div",{className:"card-menu__cta"},e.createElement(h,{theme:l,url:d,title:u||m}))):e.createElement("div",{className:"card-menu__arrow"},e.createElement(s,{icon:"arrow-right",theme:l,ariaHidden:!0})))))}t();var Rt=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(Dt,{label:C.label,onClick:function(){return l(t)},key:C.label,theme:c,level:"level-one",autoFocus:0===t}):e.createElement(It,{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(Dt,{label:C.label,onClick:function(){return l(a+t.length)},key:C.label,theme:c,level:"level-two"}):e.createElement(It,{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(At,{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}))})))};t();var $t=function(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0!==l&&l,r=C.label,i=C.onClick;return e.createElement("button",{className:c("reverse-link-with-arrow",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse")),onClick:i},e.createElement("span",{className:"reverse-link-with-arrow__title"},e.createElement("span",{className:"reverse-link-with-arrow__icon"},e.createElement(s,{icon:"arrow-left",theme:a,inverse:n,ariaHidden:!0})),r))},jt=function(C){var t=C.headingLink,a=C.onClickGoBack,l=C.onClickNavLink,n=C.theme,r=C.backLinkLabel;return e.createElement("div",{className:"header__nested-menu"},e.createElement($t,{label:r,onClick:a,theme:n}),e.createElement("div",{className:"header__heading-link"},e.createElement(It,{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:c("header__link-list",t.description&&"header__link-list--with-desc")},t.children.map(function(C,t){return C.children?e.createElement(Dt,{label:C.label,onClick:function(){return l(t)},key:C.label,theme:n,level:"level-two"}):e.createElement(It,{label:C.label,url:C.url,key:C.label,theme:n,level:"level-two",externalLink:C.externalLink})}))))};t();var zt=function(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0!==l&&l,r=C.fieldName,i=C.hiddenLabel,o=void 0!==i&&i,s=C.defaultValue,m=C.placeholder,d=C.required,u=void 0!==d&&d,h=C.onChange;return e.createElement("div",{className:c("form-input",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"))},e.createElement("label",{htmlFor:r,className:c("form-input__label",o&&"sr-only")},"Select ",r),e.createElement("input",{className:"form-input__input",id:r,name:r,type:"text",required:u,defaultValue:s,placeholder:m,onChange:h}))},Wt=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,h=C.recommendedLinks,p=C.recommendedLinkTitle;return e.createElement("div",{className:"header-search"},m&&d&&e.createElement("div",{className:"header-search__back-link"},e.createElement($t,{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(zt,{theme:o,inverse:!1,fieldName:"search",hiddenLabel:!0,placeholder:n,onChange:r}),e.createElement(be,{theme:o,inverse:!s,title:"Search",icon:"search",isSubmit:!0})),e.createElement(u,{theme:o,inverse:!s,label:"Search",isSubmit:!0}))),h&&e.createElement("div",{className:"header-search__recommended-links-wrapper"},p&&e.createElement("h3",{className:"header-search__recommended-link-title"},p),e.createElement("ul",{className:"header-search__recommended-links"},h.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 Ut(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.label,n=C.url,r=C.externalLink,i=C.active,o=void 0!==i&&i;return e.createElement("a",{className:c("campus-selector-link",a&&"theme-".concat(a),o&&"campus-selector-link--active"),href:n,target:r?"_blank":"_self",rel:"noreferrer"},l)}function Gt(C){var t=C.active,a=C.theme,l=C.ukUrl,n=C.dubaiUrl,r=C.mobile;return e.createElement("div",{className:c("campus-selector",a&&"theme-".concat(a),r&&"campus-selector--mobile",!r&&"campus-selector--desktop")},e.createElement("div",{className:"campus-selector__container"},e.createElement("span",{className:"campus-selector__label"},"Select campus:"),r?e.createElement(e.Fragment,null,e.createElement(u,{label:"UK",theme:a,inverse:!0,url:l,hollow:"uk"!==t}),e.createElement(u,{label:"Dubai",theme:a,inverse:!0,url:n,hollow:"dubai"!==t})):e.createElement(e.Fragment,null,e.createElement(Ut,{label:"UK",theme:a,url:l,active:"uk"===t}),e.createElement(Ut,{label:"Dubai",theme:a,url:n,active:"dubai"===t}))))}t(),t(),t();var Kt={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 Yt(t){var a,l,n=t.isMobile,c=t.isTablet,r=t.image,i=n?Kt.mobile:c?Kt.tablet:Kt.desktop,o=e.useRef(null);return e.useEffect(function(){var e;o.current&&o.current.setAttribute("fetchpriority",null!==(e=r.fetchPriority)&&void 0!==e?e:"auto")}),e.createElement(e.Fragment,null,e.createElement(C.motion.div,{className:"hero__polygon-image-wrapper"},e.createElement(C.motion.img,{ref:o,className:"hero__image",src:r.src.default,srcSet:"".concat(null!==(a=r.src.small)&&void 0!==a?a:r.src.default," 576w, ").concat(null!==(l=r.src.medium)&&void 0!==l?l:r.src.default," 992w, ").concat(r.src.default," 1440w"),alt:r.alt,fetchPriority:r.fetchPriority,animate:{clipPath:i.image},transition:{type:"tween"}}),e.createElement(C.motion.div,{key:Math.random(),className:"hero__polygon-image-background",animate:{opacity:1,clipPath:i.background},transition:{type:"tween"},initial:{opacity:0}})))}t();var Jt={initial:{pathLength:0},animate:{pathLength:1},transition:{delay:.5,duration:1}};function Qt(t){var l=t.isMobile,n=t.isTablet;return l?e.createElement(e.Fragment,null,e.createElement(C.motion.div,{className:"hero__line",animate:{left:"75%",bottom:"30%",transform:"rotate(10deg)"},initial:!1},e.createElement("svg",{width:"140",height:"2",viewBox:"0 0 140 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(C.motion.path,a({d:"M0 1H140"},Jt)))),e.createElement(C.motion.div,{className:"hero__line",animate:{left:"75%",bottom:"30%",transform:"rotate(-15deg)"},initial:!1},e.createElement("svg",{width:"140",height:"2",viewBox:"0 0 140 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(C.motion.path,a({d:"M0 1H140"},Jt))))):n?e.createElement(e.Fragment,null,e.createElement(C.motion.div,{className:"hero__line",animate:{left:"calc(30% + 1px)",top:"calc(60% - 3px)",transform:"rotate(161deg)"},initial:!1},e.createElement("svg",{width:"120",height:"2",viewBox:"0 0 120 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(C.motion.path,a({d:"M0 1H140"},Jt)))),e.createElement(C.motion.div,{className:"hero__line",animate:{left:"30%",top:"calc(60% - 1px)",transform:"rotate(26deg)"},initial:!1},e.createElement("svg",{width:"120",height:"2",viewBox:"0 0 120 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(C.motion.path,a({d:"M0 1H140"},Jt))))):e.createElement(e.Fragment,null,e.createElement(C.motion.div,{className:"hero__line",animate:{left:"10%",top:"calc(65% - 3px)",transform:"rotate(118deg)"},initial:!1},e.createElement("svg",{width:"140",height:"2",viewBox:"0 0 140 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(C.motion.path,a({d:"M0 1H140"},Jt)))),e.createElement(C.motion.div,{className:"hero__line",animate:{left:"10%",top:"calc(65% - 3px)",transform:"rotate(41deg)"},initial:!1},e.createElement("svg",{width:"140",height:"2",viewBox:"0 0 140 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(C.motion.path,a({d:"M0 1H140"},Jt)))))}t();var Xt=function(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0!==l&&l,r=C.fieldName,i=C.selectOptions,o=C.defaultValue,m=void 0===o?"all":o,d=C.hiddenLabel,u=void 0!==d&&d,h=C.customLabel,p=C.title,f=C.onChange,L=C.value;return e.createElement("div",{className:c("form-select",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"))},h?e.createElement("label",{htmlFor:r,className:c("form-select__label",u&&"sr-only")},h):e.createElement("label",{htmlFor:r,className:c("form-select__label",u&&"sr-only")},"Select ",r),e.createElement("div",{className:"form-select__select-wrapper"},e.createElement("select",{className:"form-select__select",defaultValue:m,value:L,id:r,name:r,onChange:f},e.createElement("option",{value:"all"},p),i&&i.map(function(C,t){return e.createElement("option",{value:C.value,key:t},C.label)})),e.createElement("div",{className:"form-select__icon"},e.createElement(s,{icon:"arrow-down",theme:a,inverse:n}))))};function ea(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0!==l&&l,r=C.title,i=C.description,o=C.defaultSearchTerm,s=C.placeholder,m=C.filterTitle,d=C.filterFieldName,h=C.filterOptions,p=C.defaultFilter,f=void 0===p?"all":p,v=C.wrapped,g=void 0!==v&&v,E=C.fullWidth,_=void 0!==E&&E,M=C.onGrid,b=void 0!==M&&M,Z=C.titleTag,H=void 0===Z?"h2":Z,w=C.formSubmitHandler,V=C.filterChangeHandler,y=C.searchTermChangeHandler,N=H;return e.createElement("div",{className:c("search-course",_&&"search-course--full-width",b&&"search-course--on-grid",g&&"search-course--wrapped",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"),!d&&"search-course--no-filter")},e.createElement("div",{className:"search-course__container"},r&&e.createElement(N,{className:"search-course__title"},r),i&&e.createElement("div",{className:"search-course__description"},e.createElement(L,{text:i,theme:a,inverse:n})),e.createElement("form",{className:"search-course__form",method:"post",onSubmit:w},e.createElement("div",{className:"search-course__search-wrapper"},e.createElement(zt,{theme:a,inverse:n,fieldName:"search",hiddenLabel:!0,defaultValue:o,placeholder:s,onChange:y}),e.createElement(be,{theme:a,inverse:!n,title:"Search",icon:"search",isSubmit:!0}),g&&e.createElement(u,{theme:a,inverse:!n,label:"Search",isSubmit:!0})),d&&m&&h&&e.createElement(Xt,{theme:a,inverse:n,title:m,fieldName:d,selectOptions:h,defaultValue:f,hiddenLabel:!0,onChange:V}),!g&&e.createElement(u,{theme:a,inverse:!n,label:"Search",isSubmit:!0}))))}function Ca(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=C.label,r=C.icons;return e.createElement("div",{className:c("share-buttons",a&&"theme-".concat(a),l&&"theme-".concat(a,"--inverse"))},n&&e.createElement("div",{className:"share-buttons__label"},n),r&&e.createElement("ul",{className:"share-buttons__icon-wrapper"},r.map(function(C,t){return e.createElement("li",{className:"share-buttons__icon",key:t},e.createElement(be,{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,r=C.label,i=C.url,o=C.externalLink;return e.createElement("a",{className:c("paragraph-link",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse")),href:i,target:o?"_blank":"_self",rel:"noreferrer"},r)}function aa(C){var t=C.theme,a=C.inverse,l=C.buttonLabel,n=C.hollow,r=C.modalChildren,i=e.useState(!1),o=i[0],s=i[1],m=function(){s(!1),document.body.classList.remove("lock-scroll")};return e.createElement("div",{className:c("modal-cta-button",t&&"theme-".concat(t),a&&"theme-".concat(t,"--inverse"))},e.createElement(u,{inverse:a,label:l,onClick:function(){o?m():(s(!0),document.body.classList.add("lock-scroll"))},theme:t,hollow:n}),o&&e.createElement(He,{centred:!0,theme:t,closeModal:m,isOpen:o},e.createElement(je,{className:"modal-cta-button__embed-wrapper"},r)))}function la(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0!==l&&l,r=C.url,i=C.title,o=C.externalLink,m=void 0!==o&&o,d=C.iconRight,u=C.iconLeft,h=C.ariaLabel,p=C.onClick;return e.createElement("a",{className:c("link-with-icon",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse")),href:r,target:m?"_blank":"_self",rel:m?"noopener noreferrer":"","aria-label":h,onClick:p||void 0},u&&e.createElement("span",{className:"link-with-icon__icon link-with-icon__icon--left"},e.createElement(s,{icon:u.icon,theme:a,inverse:n,ariaHidden:!0})),e.createElement("span",{className:"link-with-icon__title"},i),d&&e.createElement("span",{className:"link-with-icon__icon link-with-icon__icon--right"},e.createElement(s,{icon:d.icon,theme:a,inverse:n,ariaHidden:!0})))}t(),t(),t(),t(),t(),t(),t();var na=function(e,C){var t;e.preventDefault(),null===(t=document.querySelector(C))||void 0===t||t.scrollIntoView({behavior:"smooth"})};function ca(C){var t=C.title,l=C.value,n=C.link;return e.createElement("article",{className:"course-tile"},e.createElement("div",{className:"course-tile__top"},e.createElement("div",{className:"course-tile__title"},t),e.createElement("div",{className:"course-tile__value"},l)),n&&e.createElement("div",{className:"course-tile__link-wrapper"},e.createElement(la,a({},n,{inverse:!0,onClick:function(e){return na(e,n.url||"#")}}))))}function ra(C){var t=C.title,l=C.selectProps;return e.createElement("article",{className:"course-tile-select"},e.createElement("div",{className:"course-tile-select__top"},e.createElement("div",{className:"course-tile-select__title"},t),e.createElement(Xt,a({},l,{inverse:!0}))))}function ia(C){var t=C.title,l=C.rank,n=C.rankText,c=C.link;return e.createElement("article",{className:"course-tile-ranking"},e.createElement("div",{className:"course-tile-ranking__top"},e.createElement("div",{className:"course-tile-ranking__title"},t),e.createElement("div",{className:"course-tile-ranking__rank"},l),e.createElement("div",{className:"course-tile-ranking__rank-text"},n)),c&&e.createElement("div",{className:"course-tile-ranking__link-wrapper"},e.createElement(la,a({},c,{inverse:!0,onClick:function(e){return na(e,c.url||"#")}}))))}function oa(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.inverse,r=void 0===n||n,i=C.topPadding,o=void 0!==i&&i,s=C.selectorProps;return e.createElement("div",{className:c("location-selector",l&&"theme-".concat(l),r&&"theme-".concat(l,"--inverse"))},e.createElement("div",{className:c("location-selector__container",o&&"location-selector__container--padding-top")},e.createElement(Xt,a({},s,{inverse:r}))))}t();var sa={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}},ma={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))"}},da={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}},ua={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%"}},ha={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}},pa={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%"}},fa={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)"}},La={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)"}},va={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)"}},ga={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)"}},Ea={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)"}},_a={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)"}},Ma={initial:{pathLength:0},animate:{pathLength:1},transition:{delay:.5,duration:1}};function ba(t){var l=t.isMobile,n=t.isTablet,c=t.activeVariant;return l?e.createElement(e.Fragment,null,e.createElement(C.motion.div,{className:"hero-carousel__line",variants:fa,animate:c,initial:!1},e.createElement("svg",{width:"140",height:"2",viewBox:"0 0 140 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(C.motion.path,a({d:"M0 1H140",stroke:"black"},Ma)))),e.createElement(C.motion.div,{className:"hero-carousel__line",variants:La,animate:c,initial:!1},e.createElement("svg",{width:"140",height:"2",viewBox:"0 0 140 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(C.motion.path,a({d:"M0 1H140",stroke:"black"},Ma))))):n?e.createElement(e.Fragment,null,e.createElement(C.motion.div,{className:"hero-carousel__line",variants:va,animate:c,initial:!1},e.createElement("svg",{width:"260",height:"2",viewBox:"0 0 260 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(C.motion.path,a({d:"M0 1H260",stroke:"black"},Ma)))),e.createElement(C.motion.div,{className:"hero-carousel__line",variants:ga,animate:c,initial:!1},e.createElement("svg",{width:"260",height:"2",viewBox:"0 0 260 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(C.motion.path,a({d:"M0 1H260",stroke:"black"},Ma))))):e.createElement(e.Fragment,null,e.createElement(C.motion.div,{className:"hero-carousel__line",variants:Ea,animate:c,initial:!1},e.createElement("svg",{width:"360",height:"2",viewBox:"0 0 360 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(C.motion.path,a({d:"M0 1H360",stroke:"black"},Ma)))),e.createElement(C.motion.div,{className:"hero-carousel__line",variants:_a,animate:c,initial:!1},e.createElement("svg",{width:"360",height:"2",viewBox:"0 0 360 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(C.motion.path,a({d:"M0 1H360",stroke:"black"},Ma)))))}function Za(t){var a,l,n=t.isMobile,c=t.isTablet,r=t.activeVariant,i=t.imageSrc,o=t.imageAlt,s=t.imageFetchPriority,m=e.useRef(null);return e.useEffect(function(){m.current&&m.current.setAttribute("fetchpriority",null!=s?s:"high")}),e.createElement(e.Fragment,null,e.createElement(C.AnimatePresence,null,e.createElement(C.motion.div,{className:"hero-carousel__image-wrapper",transition:{delayChildren:1}},e.createElement(C.motion.img,{ref:m,className:"hero-carousel__image",src:i.default,srcSet:"".concat(null!==(a=i.small)&&void 0!==a?a:i.default," 576w, ").concat(null!==(l=i.medium)&&void 0!==l?l:i.default," 992w, ").concat(i.default," 1440w"),alt:o,variants:n?ma:c?ua:pa,animate:r,initial:{clipPath:"polygon(0 0, 0 0, 0 0, 0 0)"},transition:{type:"tween"}}),e.createElement(C.motion.div,{key:Math.random(),className:"hero-carousel__image-background",variants:n?sa:c?da:ha,animate:["visible",r],exit:{backgroundColor:"rgba(255, 255, 255, 0)"},transition:{type:"tween"},initial:{opacity:0,clipPath:"polygon(1% 1%, 1% 1%, 1% 1%, 1% 1%)"}}))))}var Ha=e.forwardRef(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(h,{url:r,title:i,theme:a,inverse:!0,onKeyDown:o,ref:t})))});function wa(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.heading,r=void 0===n?"Page contents":n,i=C.links,o=C.buttonLinks,s=C.locationDetails;return e.createElement("div",{className:c("in-page-navigation-links",l&&"theme-".concat(l))},e.createElement("h2",{className:"in-page-navigation-links__heading"},r),s&&e.createElement(oa,a({},s,{inverse:!0})),e.createElement("nav",null,e.createElement("ul",{className:"in-page-navigation-links__link-container"},i.map(function(C){return e.createElement("li",{className:c("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,o&&o.map(function(C,t){return C.externalLink?e.createElement("li",{className:"in-page-navigation-links__link-button",key:t},e.createElement(we,{theme:l,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(u,{theme:l,label:C.label,hollow:t%2!=0,url:C.url}))})))}function Va(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.heading,n=C.cards,r=C.link;return e.createElement("div",{className:c("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(qe,{theme:a,title:C.title,href:C.href,titleTag:"h3",publishDate:C.publishDate}))})),r&&e.createElement(h,{theme:a,inverse:!0,url:r.url,title:r.title}))}function ya(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.type,c=C.image,r=C.title,i=C.url,o=C.description,s=C.details,m=C.showCategory,d=void 0!==m&&m;return e.createElement(e.Fragment,null,c&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(_,a({},c))),e.createElement("div",{className:"listing-result-card__text"},d&&e.createElement("p",{className:"listing-result-card__category"},n),e.createElement("h2",null,e.createElement("a",{className:"listing-result-card__title",href:i},r)),o&&e.createElement("p",{className:"listing-result-card__description"},o),s.length>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(Ie,{details:s,theme:l}))))}function Na(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.type,c=C.image,r=C.title,i=C.titleTag,o=void 0===i?"h2":i,s=C.url,m=C.description,d=C.supervisors,u=C.department,h=C.details,p=C.showCategory,L=void 0!==p&&p;return e.createElement(e.Fragment,null,c&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(_,a({},c))),e.createElement("div",{className:"listing-result-card__text"},L&&e.createElement("p",{className:"listing-result-card__category"},n),e.createElement(f,{htmlTag:"h3"===o?"h3":"h2"},e.createElement("a",{className:"listing-result-card__title",href:s},r)),(d||u)&&e.createElement("div",{className:"listing-result-card__course-info"},d&&e.createElement("p",{className:"listing-result-card__supervisors"},"Supervisors: ",d),u&&e.createElement("p",{className:"listing-result-card__department"},u)),m&&e.createElement("p",{className:"listing-result-card__description"},m),h.length>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(Ie,{details:h,theme:l}))))}function ka(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.inverse,c=void 0===n||n,r=C.type,i=C.image,o=C.title,s=C.url,m=C.description,d=C.details,u=C.showCategory,h=void 0!==u&&u,p=C.cardDescriptionIsRichText,v=void 0!==p&&p,g=C.titleTag,E=void 0===g?"h2":g;return e.createElement(e.Fragment,null,i&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(_,a({},i))),e.createElement("div",{className:"listing-result-card__text"},h&&e.createElement("p",{className:"listing-result-card__category"},r),e.createElement(f,{htmlTag:E},e.createElement("a",{className:"listing-result-card__title",href:s},o)),m&&!v&&e.createElement("p",{className:"listing-result-card__description"},m),m&&v&&e.createElement(L,{theme:l,inverse:c,text:m}),d.length>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(Ie,{details:d,theme:l}))))}function xa(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.type,c=C.image,r=C.title,i=C.url,o=C.description,s=C.author,m=C.details,d=C.showCategory,u=void 0!==d&&d;return e.createElement(e.Fragment,null,c&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(_,a({},c))),e.createElement("div",{className:"listing-result-card__text"},u&&e.createElement("p",{className:"listing-result-card__category"},n),e.createElement("h2",null,e.createElement("a",{className:"listing-result-card__title",href:i},r)),s&&e.createElement("p",{className:"listing-result-card__author"},"by ",s),o&&e.createElement("p",{className:"listing-result-card__description"},o),m.length>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(Ie,{details:m,theme:l}))))}function Ta(C){var t=C.image,l=C.title,n=C.url,c=C.description;return e.createElement(e.Fragment,null,t&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(_,a({},t))),e.createElement("div",{className:"listing-result-card__text"},e.createElement("h2",null,e.createElement("a",{className:"listing-result-card__title",href:n},l)),c&&e.createElement("p",{className:"listing-result-card__description"},c)))}function Sa(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.type,c=C.image,r=C.title,i=C.url,o=C.description,s=C.jobTitle,m=C.department,d=C.details,u=C.showCategory,h=void 0!==u&&u;return e.createElement(e.Fragment,null,c&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(_,a({},c))),e.createElement("div",{className:"listing-result-card__text"},h&&e.createElement("p",{className:"listing-result-card__category"},n),e.createElement("h2",null,e.createElement("a",{className:"listing-result-card__title",href:i},r)),(s||m)&&e.createElement("div",{className:"listing-result-card__staff-info"},s&&e.createElement("p",{className:"listing-result-card__job-title"},s),m&&e.createElement("p",{className:"listing-result-card__department"},m)),o&&e.createElement("p",{className:"listing-result-card__description"},o),d.length>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(Ie,{details:d,theme:l}))))}function Pa(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.image,c=C.title,r=C.url,i=C.description,o=C.jobTitle,s=C.department,m=C.details;return e.createElement(e.Fragment,null,n&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(_,a({},n))),e.createElement("div",{className:"listing-result-card__text"},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.length>120?"".concat(i.slice(0,120),"..."):i),m.length>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(Ie,{details:m,theme:l}))))}function Oa(C){return e.createElement("article",{className:c("listing-result-card",C.theme&&"theme-".concat(C.theme))},"page"===C.type&&e.createElement(Ta,a({},C)),"course"===C.type&&e.createElement(Na,a({},C)),"accomodation"===C.type&&e.createElement(ya,a({},C)),"event"===C.type&&e.createElement(ka,a({},C)),"news"===C.type&&e.createElement(xa,a({},C)),"staff"===C.type&&e.createElement(Sa,a({},C)),"profile"===C.type&&e.createElement(Pa,a({},C)))}function qa(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.numOfPages,n=C.onClick,r=C.currentPage,i=pe("768px"),o=e.createElement("li",null,e.createElement("span",{className:"pagination__ellipse"},"..."));return i&&l<=4?e.createElement(e.Fragment,null,Array(l).fill(0).map(function(C,t){return e.createElement("li",{className:c("pagination__number",r===t&&"pagination__number--selected"),key:t},e.createElement(u,{label:(t+1).toString(),onClick:function(){return n(t)},hollow:!(r===t),theme:a}))})):i&&l>4?e.createElement(e.Fragment,null,r>0&&e.createElement("li",{key:0,className:"pagination__number"},e.createElement(u,{label:"1",onClick:function(){return n(0)},theme:a,hollow:!0})),r+1>=3&&o,e.createElement("li",{key:r,className:"pagination__number pagination__number--selected"},e.createElement(u,{label:"".concat(r+1," "),onClick:function(){return n(r)},theme:a})),r+1<l-1&&o,r!==l-1&&e.createElement("li",{key:l-1,className:"pagination__number"},e.createElement(u,{label:l.toString(),onClick:function(){return n(l-1)},theme:a,hollow:!0}))):!i&&l<=6?e.createElement(e.Fragment,null,Array(l).fill(0).map(function(C,t){return e.createElement("li",{key:t,className:c("pagination__number",r===t&&"pagination__number--selected","test")},e.createElement(u,{label:(t+1).toString(),onClick:function(){return n(t)},hollow:!(r===t),theme:a}))})):!i&&l>6?e.createElement(e.Fragment,null,r>0&&e.createElement("li",{key:0,className:"pagination__number start"},e.createElement(u,{label:"1",onClick:function(){return n(0)},theme:a,hollow:!0})),r+1>=4&&o,r>1&&e.createElement("li",{key:r-1,className:"pagination__number before"},e.createElement(u,{label:(r>=1?r:r-1).toString(),onClick:function(){return n(r-1)},theme:a,hollow:!0})),e.createElement("li",{key:r,className:"pagination__number pagination__number--selected current"},e.createElement(u,{label:"".concat(r+1),onClick:function(){return n(r)},theme:a})),r+1<l-1&&e.createElement("li",{key:r+1,className:"pagination__number after"},e.createElement(u,{label:"".concat(r+2),onClick:function(){return n(r+1)},theme:a,hollow:!0})),r+1<l-2&&o,r+1!==l&&e.createElement("li",{key:l-1,className:"pagination__number end"},e.createElement(u,{label:"".concat(l),onClick:function(){return n(l-1)},theme:a,hollow:!0}))):e.createElement(e.Fragment,null)}function Fa(e,C){return i("".concat(null!=e?e:""," ").concat(C))}function Ba(C){var t=C.children,a=C.theme,l=void 0===a?"uobmain":a,n=C.inverse,r=void 0!==n&&n;return e.createElement("div",{className:c("tabs__list__container",l&&"theme-".concat(l),r&&"theme-".concat(l,"--inverse"))},e.createElement("ul",{className:"tabs__list",role:"tablist"},t))}function Da(C){var t=C.title,a=C.htmlTag,l=void 0===a?"h3":a,n=C.theme,r=void 0===n?"uobmain":n,i=C.inverse,o=void 0!==i&&i,s=C.isActive,m=C.children,d=C.tabsBlockName;if(!s)return null;var u=Fa(null!=d?d:"",t);return e.createElement("div",{id:d,className:c("tabs__panel",r&&"theme-".concat(r),o&&"theme-".concat(r,"--inverse")),role:"tabpanel","aria-labelledby":"tab_"+u},e.createElement(f,{htmlTag:l,classNames:"tabs__panel-title"},t),m)}function Ia(C){var t=C.id,a=C.theme,l=void 0===a?"uobmain":a,n=C.inverse,r=void 0!==n&&n,i=C.tabItem,o=C.isActive,s=C.hasFocus,m=C.tabsBlockName,d=C.handleClick,u=C.handleKeyboardNavigation,h=e.useRef(null);e.useEffect(function(){o&&s&&h.current&&(h.current.focus(),window.matchMedia("min-width: 768px").matches&&h.current.scrollIntoView())});var p=Fa(null!=m?m:"",i.title);return e.createElement("li",{className:"tabs__list-item",role:"presentation"},e.createElement("button",{className:c("tabs__tab",l&&"theme-".concat(l),r&&"theme-".concat(l,"--inverse"),o&&"active"),onClick:function(e){return d(e,t)},onKeyDown:u,ref:h,id:"tab_"+p,role:"tab","aria-controls":p,"aria-selected":o?"true":"false",tabIndex:o?0:-1,type:"button"},i.title))}function Aa(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.label,n=C.url,r=C.externalLink;return e.createElement("a",{className:c("pill",a&&"theme-".concat(a)),href:n,target:r?"_blank":"_self",rel:r?"noopener noreferrer":""},l)}Ha.displayName="HeroCardContent",t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t();var Ra,$a={exports:{}};var ja,za=(Ra||(Ra=1,ja=$a,function(e,C){ja.exports=C()}(0,function(){var e=[],C=[],t={},a={},l={};function n(e){return"string"==typeof e?new RegExp("^"+e+"$","i"):e}function 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})),$a.exports),Wa=vC(za);function Ua(C){var t=C.theme,l=C.heading,n=C.selectContent,r=C.defaultIsOpen,i=void 0!==r&&r;n&&(i=!!n.defaultValue||i);var o=e.useState(i),m=o[0],d=o[1];return e.createElement("fieldset",{className:c("filter-accordion-select",m&&"filter-accordion-select--open",t&&"theme-".concat(t))},e.createElement("legend",{className:"filter-accordion-select__legend"},e.createElement("button",{className:"filter-accordion-select__button",onClick:function(){return d(function(e){return!e})},"aria-expanded":m,"aria-controls":l.replace(" ","")},l,e.createElement(s,{icon:"chevron-down",theme:t,inverse:!0,ariaHidden:!0}))),m&&e.createElement("div",{className:"filter-accordion-select__select-wrapper"},e.createElement(Xt,a({theme:t,inverse:!0},n))))}function Ga(C){var t=C.theme,a=C.name,l=C.id,n=C.label,r=C.defaultValue,i=C.onChange;return e.createElement("div",{className:c("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:r,onChange:i,name:a,id:l}))}t(),t(),t();var Ka,Ya=function(e){var C=e.split(" "),t=C[C.length-1];return C[C.length-1]=Wa(t),C.join(" ")};function Ja(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.imageSrc,n=C.onClick;return e.createElement("div",{className:c("video-placeholder",a&&"theme-".concat(a))},e.createElement(_,{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 Qa(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.imageSrc,n=C.videoUrl,r=C.videoId,i=e.useState(!1),o=i[0],s=i[1];return e.createElement("div",{className:c("video-with-placeholder",a&&"theme-".concat(a))},o?e.createElement(Me,{url:n,id:r,autoPlay:!0,theme:a}):e.createElement(Ja,{imageSrc:l,onClick:function(){return s(!0)},theme:a}))}t(),t(),t(),t(),t(),t(),function(e){e.NotSpecified="NotSpecified",e.ColumnAndRowHeadings="ColumnAndRowHeadings",e.ColumnHeadingsOnly="ColumnHeadingsOnly"}(Ka||(Ka={})),t(),t(),t(),t(),exports.Accordion=E,exports.AcreditationPromotion=function(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.heading,r=C.intro,i=C.accreditations,s=C.htmlTag,m=void 0===s?"h2":s,d=C.fullWidth,u=void 0!==d&&d;return e.createElement("section",{className:c("accreditation-promotion",l&&"theme-".concat(l),u&&"accreditation-promotion--full-width")},e.createElement("div",{className:"accreditation-promotion__container"},n&&e.createElement(f,{classNames:"accreditation-promotion__heading",htmlTag:m},n),r&&e.createElement("p",{className:"accreditation-promotion__intro"},r),e.createElement("ul",null,i.map(function(C,t){return e.createElement("li",{className:c("accreditation-promotion__accreditation",t%2==0?"accreditation-promotion__accreditation--right":"accreditation-promotion__accreditation--left"),key:t},C.image&&e.createElement("div",{className:"accreditation-promotion__image-wrapper"},e.createElement(_,a({},C.image))),e.createElement(o,{theme:l,text:C.text,inverse:!0,fullWidth:!0}))}))))},exports.AlertBanner=function(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0!==l&&l,r=C.type,i=C.richText,m=e.useState(!0),d=m[0],u=m[1];return e.useEffect(function(){try{window.sessionStorage.getItem("alertBannerIsHidden")&&u(!window.sessionStorage.getItem("alertBannerIsHidden"))}catch(e){console.error(e)}},[]),e.createElement(e.Fragment,null,d&&e.createElement("div",{className:c("alert-banner",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"))},e.createElement("div",{className:"alert-banner__container"},e.createElement("div",{className:"alert-banner__left-wrapper"},e.createElement("div",{className:"alert-banner__status-icon"},"warning"===r&&e.createElement(s,{theme:a,icon:n?"warning-light":"warning-dark",inverse:n}),"success"===r&&e.createElement(s,{theme:a,icon:"success",inverse:n}),"information"===r&&e.createElement(s,{theme:a,icon:"information",inverse:n})),e.createElement(o,{theme:a,text:i.text,inverse:n})),e.createElement(M,{theme:a,icon:"cross",inverse:n,title:"Hide alert banner",onClick:function(){return function(){u(!1);var e=JSON.stringify(d);window.sessionStorage.setItem("alertBannerIsHidden",e)}()}}))))},exports.AnchorTarget=function(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0===l||l,r=C.includeDivider,i=void 0===r||r,o=C.targetLabel,s=C.children;return e.createElement("div",{id:o,className:c("anchor-target",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"))},i&&e.createElement("hr",{className:"anchor-target__divider"}),s)},exports.Breadcrumbs=function(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.inverse,r=void 0!==n&&n,i=C.links;return e.createElement("nav",{className:c("breadcrumbs",l&&"theme-".concat(l),r&&"theme-".concat(l,"--inverse"))},e.createElement("ol",{className:"breadcrumbs__list"},i.slice(0,-1).map(function(C){return e.createElement("li",{className:"breadcrumbs__link",key:C.title},e.createElement(s,{icon:"chevron-right",theme:l,ariaHidden:!0}),e.createElement(b,a({theme:l,inverse:r},C)))})))},exports.CTAComponent=function(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.inverse,r=C.highlight,i=void 0!==r&&r,o=C.image,s=C.heading,m=C.copy,d=C.primaryCTA,p=C.secondaryCTA,L=C.link,v=C.fullWidth,g=void 0!==v&&v,E=C.htmlTag,M=void 0===E?"h2":E,b=!i&&!!n;return e.createElement("div",{className:c("cta-component",l&&"theme-".concat(l),n&&"theme-".concat(l,"--inverse"),i&&"theme-".concat(l,"--highlight"),g&&"cta-component--full-width",o&&"cta-component--with-image")},e.createElement("div",{className:"cta-component__container"},e.createElement("div",{className:"cta-component__inner-wrapper"},e.createElement("div",{className:"cta-component__main-content"},o&&e.createElement("div",{className:"cta-component__image-wrapper"},e.createElement(_,a({},o))),e.createElement("div",{className:"cta-component__text-wrapper"},e.createElement(f,{htmlTag:M,classNames:"cta-component__heading"},s),m&&e.createElement("p",{className:"cta-component__copy"},m))),e.createElement("div",{className:"cta-component__button-wrapper"},d&&e.createElement(u,a({},d,{inverse:b})),p&&e.createElement(u,a({},p,{hollow:!0,inverse:b}))),L&&e.createElement(h,a({},L,{inverse:!b})))))},exports.CardProfile=function(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.inverse,r=void 0===n||n,i=C.image,o=C.name,s=C.courseTitle,m=C.href,d=C.copy,u=C.titleTag,h=void 0===u?"h3":u;return e.createElement("article",{className:c("card-profile",l&&"theme-".concat(l),r&&"theme-".concat(l,"--inverse"))},e.createElement("div",{className:"card-profile__container"},e.createElement("figure",{className:"card-profile__figure"},i&&e.createElement("div",{className:"card-profile__image-wrapper"},e.createElement(_,a({},i,{altText:"",loadingAttr:"lazy"}))),e.createElement("figcaption",null,e.createElement("a",{className:"card-profile__link",href:m},"h2"===h&&e.createElement("h2",{className:"card-profile__title"},o),"h3"===h&&e.createElement("h3",{className:"card-profile__title"},o)),s&&e.createElement("p",{className:"card-profile__course-title"},s),d&&e.createElement("p",{className:"card-profile__copy"}," ",d.length>120?"".concat(d.slice(0,120),"..."):d)))))},exports.CardPromoProfile=Ae,exports.CardStaff=Se,exports.Carousel=$e,exports.CentreWrapper=function(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.children;return e.createElement("div",{className:c("centre-wrapper",a&&"theme-".concat(a))},e.createElement("div",{className:"centre-wrapper__grid-container"},e.createElement("div",{className:"centre-wrapper__children"},l)))},exports.ClearingBanner=function(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.text,n=C.showIcon,r=void 0===n||n,i=C.smallLink,o=C.mainLink;return e.createElement("div",{className:c("clearing-banner",a&&"theme-".concat(a))},e.createElement("div",{className:"clearing-banner__container"},e.createElement("div",{className:"clearing-banner__top-wrapper"},r&&e.createElement("div",{className:"clearing-banner__icon"},e.createElement(Te,{theme:a,icon:"clearing-tick"})),e.createElement("div",null,e.createElement("span",null,l),i&&e.createElement("a",{className:"clearing-banner__small-link",href:i.url},i.label))),o&&e.createElement("div",{className:"clearing-banner__main-link"},e.createElement(we,{theme:a,inverse:!1,label:o.label,url:o.url,icon:o.icon,iconPosition:o.iconPosition}))))},exports.CourseDeliveryPills=function(C){var t=C.pills,l=C.theme,n=void 0===l?"uobmain":l;return e.createElement("div",{className:c("course-delivery-pills",n&&n&&"theme-".concat(n))},t.map(function(C,t){return e.createElement(m,a({key:t},C,{theme:n}))}))},exports.EmbedWrapper=je,exports.FactBoxes=function(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.inverse,r=void 0!==n&&n,i=C.title,o=C.description,s=C.linkProps,m=C.cards,d=C.fullWidth,u=void 0!==d&&d,h=C.htmlTag,p=C.showCardColumn,f=void 0===p||p;return e.createElement("section",{className:c("fact-boxes",l&&"theme-".concat(l),r&&"theme-".concat(l,"--inverse"),u&&"fact-boxes--full-width",f&&3===m.length&&"fact-boxes--three-facts",f&&2===m.length&&"fact-boxes--two-facts",f&&1===m.length&&"fact-boxes--one-fact")},(i||o)&&e.createElement(g,{theme:l,inverse:r,htmlTag:h,title:i,description:o,linkProps:s}),e.createElement("div",{className:"fact-boxes__container"},e.createElement("ul",{className:"fact-boxes__grid"},m.map(function(C,t){return e.createElement("li",{className:"fact-boxes__card",key:t},e.createElement(ze,a({},C,{inverse:!r})))}))))},exports.FeaturedContent=function(t){var a=t.theme,l=t.cards,n=l.length>1,r=e.useState(0),i=r[0],o=r[1],s=e.useState("first"),m=s[0],d=s[1],u=e.useState("0"),h=u[0],p=u[1],f=e.useState("0"),L=f[0],v=f[1],g=e.useState("0"),E=g[0],_=g[1],M=e.useState("0"),b=M[0],Z=M[1],H=l[i],w=e.useRef(null),V=pe("768px"),y=pe("1248px");e.useEffect(function(){switch(i){case 0:d("first"),p(Le.first.top),v(ve.first.bottom),_(ge.first.top),Z(Ee.first.bottom);break;case 1:d("second"),p(Le.second.top),v(ve.second.bottom),_(ge.second.top),Z(Ee.second.bottom);break;case 2:d("third"),p(Le.third.top),v(ve.third.bottom),_(ge.third.top),Z(Ee.third.bottom)}},[i,m]);var N=n?e.createElement(Re,{theme:a,totalNumber:l.length,currentNumber:i+1,carouselId:"featured-content",onClickPrev:function(){o(function(e){return e-1})},onClickNext:function(){o(function(e){return e+1})},prevButtonDisabled:0===i,nextButtonDisabled:i===l.length-1}):e.createElement(e.Fragment,null);return e.createElement("div",{className:c("featured-content",a&&"theme-".concat(a)),id:"featured-content"},e.createElement("div",{className:"featured-content__top"},e.createElement("div",{className:"featured-content__content"},e.createElement("div",{className:"featured-content__cards"},V&&e.createElement($e,{theme:a,type:"featured",inverse:!0,cards:l}),!V&&e.createElement(e.Fragment,null,e.createElement(C.motion.section,{className:"featured-content__active-card",key:i,initial:{opacity:0},animate:{opacity:1}},e.createElement(_e,{theme:a,imagePrimary:H.imagePrimary,imageSecondary:H.imageSecondary,imageTertiary:H.imageTertiary,categoryLabel:H.categoryLabel,slideTitle:H.slideTitle,subTitle:H.subTitle,introText:H.introText,link:H.link,linkText:H.linkText,cardOrder:H.cardOrder,activeVariant:m,leftInitialPositionTablet:h,rightInitialPositionTablet:L,leftInitialPositionDesktop:E,rightInitialPositionDesktop:b,isMobile:!1,isTablet:y,ref:w}))))),!V&&n&&l.map(function(C,t){return e.createElement("div",{className:"featured-content__invisible-card featured-content__invisible-card--desktop",key:t,"aria-hidden":!0},e.createElement("section",null,e.createElement(_e,{theme:a,categoryLabel:C.categoryLabel,slideTitle:C.slideTitle,subTitle:C.subTitle,introText:C.introText,link:C.link,linkText:C.linkText,cardOrder:C.cardOrder,activeVariant:m,imagePrimary:{src:{default:""}},imageSecondary:{src:{default:""}},imageTertiary:{src:{default:""}}})))})),e.createElement("div",{className:"featured-content__nav featured-content__nav--desktop"},N))},exports.FeaturedSignpost=function(C){var t=C.theme,a=C.inverse,l=C.position,n=C.category,r=C.title,i=C.description,o=C.linkUrl,s=C.linkLabel,m=C.linkIsExternal,d=void 0!==m&&m,u=C.imageAlt,p=C.imageSrc,f=pe("1248px");return e.createElement("div",{className:c("featured-signpost","featured-signpost--".concat(l),t&&"theme-".concat(t),a&&"theme-".concat(t,"--inverse"))},"left"===l&&e.createElement("div",{className:"featured-signpost__image-container featured-signpost__image-container--mobile"},e.createElement(cC,{isMobile:!0,isTablet:!1,position:l,imageSrc:p,imageAlt:u}),e.createElement(iC,{isMobile:!0,isTablet:!1,position:l})),"left"===l&&e.createElement("div",{className:"featured-signpost__image-container featured-signpost__image-container--desktop"},e.createElement(cC,{isMobile:!1,isTablet:f,position:l,imageSrc:p,imageAlt:u}),e.createElement(iC,{isMobile:!1,isTablet:f,position:l})),e.createElement("div",{className:"featured-signpost__content-wrapper"},e.createElement("div",{className:"featured-signpost__content"},n&&e.createElement("p",{className:"featured-signpost__category"},n)," ",e.createElement("h2",{className:"featured-signpost__title"},r),i&&e.createElement("p",{className:"featured-signpost__description"},i),e.createElement("div",{className:"featured-signpost__cta"},e.createElement(h,{url:o,title:s,theme:t,inverse:a,externalLink:d})))),"right"===l&&e.createElement("div",{className:"featured-signpost__image-container featured-signpost__image-container--mobile"},e.createElement(cC,{isMobile:!0,isTablet:!1,position:l,imageSrc:p,imageAlt:u}),e.createElement(iC,{isMobile:!0,isTablet:!1,position:l})),"right"===l&&e.createElement("div",{className:"featured-signpost__image-container featured-signpost__image-container--desktop"},e.createElement(cC,{isMobile:!1,isTablet:f,position:l,imageSrc:p,imageAlt:u}),e.createElement(iC,{isMobile:!1,isTablet:f,position:l})))},exports.FeaturedVideo=function(C){var t=C.theme,a=C.title,l=C.image,n=C.youtubeId,r=C.youtubeButtonLabel,i=void 0===r?"Watch the video":r,o=C.audioYoutubeButtonLabel,s=void 0===o?"Watch the audio described video":o,m=C.audioYoutubeId,d=e.useState(!1),u=d[0],h=d[1],p=e.useRef(n),f=pe("768px"),L=function(){h(!1),document.body.classList.remove("lock-scroll")},v=function(e){p.current=e,u?L():(h(!0),document.body.classList.add("lock-scroll"))};return e.createElement(e.Fragment,null,e.createElement("section",{className:c("featured-video",t&&"theme-".concat(t))},f?e.createElement("div",{className:"featured-video__mobile-image"},e.createElement("div",{className:"featured-video__image-wrapper",style:{backgroundImage:"url(".concat(l.src.default,")"),backgroundPosition:"50% 50%",backgroundSize:"cover",backgroundRepeat:"no-repeat"}})):e.createElement(oC,{offset:100},e.createElement("div",{className:"featured-video__image-wrapper",style:{backgroundImage:"url(".concat(l.src.default,")"),backgroundPosition:"50% 50%",backgroundSize:"cover",backgroundRepeat:"no-repeat"}})),e.createElement("div",{className:"featured-video__container"},e.createElement("h2",{className:"featured-video__title"},a),e.createElement("div",{className:"featured-video__button-wrapper"},e.createElement(we,{theme:t,inverse:!0,label:i,icon:"play",onClick:function(){return v(n)}}),m&&e.createElement("button",{className:"featured-video__button-audio",type:"button",onClick:function(){return v(m)}},s)))),u&&e.createElement(He,{theme:t,closeModal:L,isOpen:u},e.createElement(Me,{theme:t,id:p.current,autoPlay:!0})))},exports.FiveArticlesGrid=function(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.heading,r=C.featuredArticle,i=C.otherLeadArticles;return e.createElement("section",{className:c("five-articles-grid",l&&"theme-".concat(l))},e.createElement("div",{className:"five-articles-grid__container"},n&&e.createElement("h2",{className:"five-articles-grid__heading"},n),e.createElement("div",{className:"five-articles-grid__main-container"},e.createElement("div",{className:"five-articles-grid__featured-card"},e.createElement(qe,a({},r,{isPrimary:!0}))),e.createElement("ul",{className:"five-articles-grid__secondary-card-container"},i.map(function(C,t){return e.createElement("li",{className:"five-articles-grid__secondary-card",key:t},e.createElement(qe,{theme:l,image:C.image,title:C.title,href:C.href,titleTag:C.titleTag,publishDate:C.publishDate}))})))))},exports.Footer=function(C){var t=C.theme,a=C.locations,l=C.summaryLinks,n=C.hygieneLinks,c=C.activeCampus,r=void 0===c?"uk":c,i=C.address,o=C.telephoneAsNumber,m=C.telephoneAsDisplay,d=C.telIntroText,u=void 0===d?"":d,p=C.socialIcons;return e.createElement("footer",{id:"footer",className:"footer theme-".concat(t),"data-element":"footer"},e.createElement("div",{className:"footer__container"},e.createElement("div",{className:"footer__column-container"},e.createElement("div",{className:"footer__column-left"},e.createElement("div",{className:"footer__logo-wrapper"},e.createElement(uC,{activeCampus:r,imageMode:"dark",classNames:"footer__logo-link",imageWidth:240,imageHeight:79,imageAltText:"uk"===r?"University of Birmingham":"University of Birmingham Dubai"})),e.createElement("ul",{className:"footer__address"},i.map(function(C,t){return e.createElement("li",{className:"footer__address-line",key:t},C)})),e.createElement("div",{className:"footer__telephone"},u&&e.createElement("p",null,u),"Tel:",e.createElement(sC,{theme:t,url:"tel: ".concat(o),title:m,externalLink:!1})),e.createElement("ul",{className:"footer__social-wrapper"},p.map(function(C,a){return e.createElement("li",{key:a},e.createElement(be,{icon:C.icon,theme:t,url:C.url,title:C.title,externalLink:!1}))}))),e.createElement("div",{className:"footer__column-middle"},e.createElement("details",{className:"footer__details",open:!l},e.createElement("summary",{className:"footer__summary-links"},"Global Footprint",e.createElement("i",{className:"footer__summary-icon"},e.createElement(s,{icon:"chevron-down",theme:t}))),e.createElement("ul",null,a.map(function(C,a){return e.createElement("li",{className:"footer__location",key:a},e.createElement("i",{className:"footer__location-icon"},e.createElement(s,{icon:"location",theme:t})),e.createElement(sC,{theme:t,url:C.href,title:C.label,externalLink:C.externalLink}))}))),e.createElement("ul",null,l&&l.map(function(C,a){return e.createElement("li",{className:"footer__arrow-link",key:a},e.createElement(h,{theme:t,title:C.label,url:C.href,externalLink:C.externalLink}))}))),e.createElement("div",{className:"footer__map"},e.createElement(_,{src:{default:"data:image/svg+xml,%3c%3fxml version='1.0' encoding='utf-8'%3f%3e%3c!-- Generator: Adobe Illustrator 27.8.0%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e%3csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 466 304' style='enable-background:new 0 0 466 304%3b' xml:space='preserve'%3e%3cstyle type='text/css'%3e .st0%7bfill:white%3bfilter:url(%23Adobe_OpacityMaskFilter)%3b%7d .st1%7bmask:url(%23mask0_4124_14261_00000137847102346873784780000003499357769935946391_)%3b%7d .st2%7bfill:%233C3C3B%3b%7d .st3%7bfill:white%3bstroke:%233C3C3B%3bstroke-width:0.5%3bstroke-miterlimit:10%3b%7d .st4%7bfill:%23C59A00%3bstroke:%233C3C3B%3bstroke-width:0.5%3bstroke-miterlimit:10%3b%7d .st5%7bfill:%23F7F7F7%3b%7d%3c/style%3e%3cdefs%3e %3cfilter id='Adobe_OpacityMaskFilter' filterUnits='userSpaceOnUse' x='0' y='24' width='466' height='279.1'%3e %3cfeColorMatrix type='matrix' values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0'/%3e %3c/filter%3e%3c/defs%3e%3cmask maskUnits='userSpaceOnUse' x='0' y='24' width='466' height='279.1' id='mask0_4124_14261_00000137847102346873784780000003499357769935946391_'%3e %3cpath class='st0' d='M466%2c24H0v279.1h466V24z'/%3e%3c/mask%3e%3cg class='st1'%3e %3cpath class='st2' d='M109%2c74.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.1-1.9v-2.4l2.6-7.6l3.5-3.5L104.1%2c199.6z'/%3e %3cpath class='st2' d='M442.8%2c295.9l4.5-4.7l4.6-2.8l3.4-4.5l0.7%2c2l1.2-0.2l-0.3%2c1.7l-3.5%2c3.9l0.9%2c0.5l-3.1%2c0.8l-2.1%2c3.2l-3.3%2c2.8 L442.8%2c295.9z'/%3e %3cpath class='st2' d='M458.2%2c281.5l1.3%2c1.7l-0.1%2c1.2l-1.4%2c2l0.9%2c0.6l3.6-3.9l0.2-1.3l1.4-0.5l2-3.1l-1-0.4l-1%2c1.2l-1.6-1.5l-0.1-1.1 l-1-0.6v-1l-0.2-1l0.5-0.9l-2.1-2.6l-0.1%2c2l0.7%2c2.3l0.5%2c2.7l-0.7%2c2l-0.7%2c1.2L458.2%2c281.5z'/%3e %3cpath class='st2' d='M79.8%2c59.8V57l-1-1.2l7.8-8.5l6.4%2c3.2l0.9%2c3.5L79.8%2c59.8z'/%3e %3cpath class='st2' d='M93.4%2c55.6l4.6%2c4.7v2.9l2.9-5.9l1.9%2c2.1l-2.1%2c7.5l2.1%2c3.8L99%2c73.1l-4.1-2.7l-8%2c1.8l-0.5-3.1L84%2c67.9l0.7-3.6 l5.9%2c1.6l-5.9-3.2l3.8-1.4l-2.6-2.2L93.4%2c55.6z'/%3e %3cpath class='st2' d='M128.4%2c62.7l-4-1.3l-7.1%2c6.2v4.2l2.9%2c2.5l4%2c1.6l4.2-0.7l4%2c7.4l-3.2%2c6.3l-5.5%2c0.8l-0.2%2c2.1h4l2.7%2c5.4l5%2c2.7 l-2.1-5.2l4.3%2c2.9l0.5-4.5l-1.8-3.3l1.2-2.3l2.7%2c4.8l4.8-3.8l-6.6-6.5l2.6-2.2l-1.5-5.5l-5.9-5.6l0.1-3.3l-1.8-2.3L128.4%2c62.7z'/%3e %3cpath class='st2' d='M162.1%2c106.8l3.6-5.9l3.4-7.5l6.2-0.7l4.3-5.4l11.4-4.5l1.3-4.2v-7.3l4-10.5l2.1-3.4l-3.2-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l-3.9-1.7l-5-7.2l-4.5-5.5l-2.2-2.1 L354.6%2c200.4z'/%3e %3cpath class='st2' d='M374.9%2c206.2l-0.7%2c2.8l1.7%2c2.1l0.3%2c2l6.2%2c1v0.8l2.2-0.8l2.4-6.6l1.9-0.2l-1.9-1.5l0.1-3l2.1-0.7l-1.2-2.2 l-2.4-1.6l-2.2%2c3.3l-1.6%2c0.2l-1.7%2c2.5l-2.4%2c0.8l-0.3%2c1.7L374.9%2c206.2z'/%3e %3cpath class='st2' d='M397.5%2c206.5l-1.5%2c1l-4.2-0.5l-3%2c6.2l0.6%2c4.4l1.8-0.3l-0.2-4.3l2%2c2.9l1.4-1.5l-1-2.7l4.5-4.6L397.5%2c206.5z'/%3e %3cpath class='st2' d='M369.9%2c218.1l1-0.5l5.4%2c1.5l0.8-0.7l4.9%2c2.2v1.1l-5.7-0.8l-3.1-0.4L369.9%2c218.1z'/%3e %3cpath class='st2' d='M406.2%2c210.6l3.4-1.1l1.2%2c3.1l2%2c1.2l3-2.7l5.1%2c1.6l5.8%2c2.4l2%2c2.5l1.7%2c0.4l0.4%2c0.9l-1.7%2c0.3l1.4%2c2.1l3.5%2c3.6 h-1.6l-6-4.6l-2.4%2c1.7l-0.7%2c1.2l-4.6-2.4l-3.2%2c1l1.6-2.1l-1.2-3.2l-5.5-2l-1.5%2c0.6l-1-2.2l2.1-0.6L406.2%2c210.6z'/%3e %3cpath class='st2' d='M409.7%2c127c0.2%2c0.1%2c5.9%2c3%2c5.9%2c3v2.4l-2.1%2c2l-3.2-1l0.3%2c3l2.1%2c2.5l0.7%2c5.9l-0.1%2c3.2l-4.1%2c2.9l-1.7-1.8v3.4 l-3.6%2c1.1l-2.3%2c4.1l-1.5-1.2l0.4-2.9l-1.1-0.4l2.6-3.3l4.7-1.3l0.7-2.2l2.5-1.8l1-4.9l-1-1.5l0.4-1.7l-1.8-2.9l1.4-2.1L409.7%2c127z' /%3e %3cpath class='st2' d='M212.9%2c111.7c0%2c0-1.7%2c2.1-1.6%2c2.1h2.7l-1.4%2c3l1.9%2c1.6l0.4%2c1.6l1.3%2c0.8l0.6%2c2.8h1.6l0.4%2c1.2l-1.1%2c1.6l0.1%2c0.6 l-3.7%2c1.1l-4.8%2c1.1l3.4-2.8l-2.9-0.6l1-3.1l1.6-0.7l-0.4-2.5l-2.1%2c0.5v-2.5l-1.2-1l0.3-2.3l-2.1-0.5l1.9-0.3l2.3-1.8L212.9%2c111.7z' /%3e %3cpath class='st2' d='M209.5%2c120.7l-1.2%2c0.7v3.4l-3.6%2c1.5l-2.1-1.3l2-2.3l-1.3-1.6l1.1-0.9l1%2c0.4l0.3-1l-0.3-0.4l2.2-1l1.3%2c1 L209.5%2c120.7z'/%3e %3cpath class='st2' d='M284.9%2c53.8l0.4%2c3l-7.3%2c6.6l-1.5%2c9.5l3.1%2c4.3l-7.1-2l1-10.7l6.3-7.7L284.9%2c53.8z'/%3e %3cpath class='st2' d='M190%2c92.5c0.1%2c0.2%2c1.9%2c2.2%2c1.9%2c2.2l2.2-1.1l3.6-1.1l3%2c3.1l-2.5%2c3.5l-4.6%2c1.7l-3.8-2.3l0.2-1.5l-1.7-1l-0.2-2 L190%2c92.5z'/%3e %3cpath class='st2' d='M113.3%2c58.6h-2.6l-0.9-1.1l-1.7%2c3.9l-1.8-0.7l0.3%2c4.3l0.7%2c2.2l2.8-1.2l1.7-3.2l-1.1-0.9L113.3%2c58.6z'/%3e %3cpath class='st2' d='M164.8%2c32.2l-14.7%2c10.2h-5.6v3.7l-5.3%2c4.3l-3.4-1.2l2.9%2c3.2l-2.9%2c2l-9.3-3.7l6.7-5.6l-3.2-2.8l-1.1-8l6.9-5.5 l3%2c7.6l7-0.1l-0.3-1.3l-5.8-0.1l-1.5-7.6l7.2-1.4l1.7%2c1.8l2.2-3.8l9.4%2c1.1l3.7%2c2.4L164.8%2c32.2z'/%3e %3cpath class='st2' d='M142.2%2c124.1l-1.2%2c1.4l-3.8%2c5.9l5.6%2c0.4l0.5%2c0.7l2.2-2.1l-0.9-2.1l-3.2%2c0.3l0.4-2l1.8-2.3L142.2%2c124.1z'/%3e %3cpath class='st2' d='M101.5%2c42.9l-5.5%2c3.9l5.5%2c2.3l-4.3%2c1.5l6.9%2c0.3l2.8%2c0.5l2.1-3.5l-1.3-4.3l-3.7%2c3.8L101.5%2c42.9z'/%3e %3cpath class='st2' d='M111.5%2c47.1l0.8%2c6.5l3%2c0.3l3.4-6.6l-4.7%2c1.8L111.5%2c47.1z'/%3e %3cpath class='st2' d='M120%2c49.1l2.6%2c1.9l-2.2%2c5.5l6%2c3.2l6.9%2c0.4l1.2-3.6l-4.4-1.6l-4.5%2c0.2l-1.3-3l1.1-1.1l-1.6-1.9l-3.2-2.3 L120%2c49.1z'/%3e %3cpath class='st2' d='M390.7%2c168.1c0%2c0-1.2%2c1.6-1.4%2c2.1s-0.1%2c1.2-0.1%2c1.2l0.8%2c2.5l1.4-4.9l0.6-0.9l-0.5-0.4L390.7%2c168.1z'/%3e%3c/g%3e%3cpath class='st3' d='M324.9%2c171.8c-0.5-0.5-0.8-1.1-0.9-1.8c-0.1-0.7%2c0-1.4%2c0.3-2s0.8-1.1%2c1.3-1.5c0.6-0.4%2c1.3-0.5%2c2-0.5 c0.7%2c0%2c1.4%2c0.2%2c1.9%2c0.6c0.6%2c0.4%2c1%2c0.9%2c1.2%2c1.6c0.2%2c0.6%2c0.3%2c1.3%2c0.1%2c2c-0.1%2c0.7-0.5%2c1.3-1%2c1.7l-2.4%2c3.1L324.9%2c171.8z'/%3e%3cpath class='st4' d='M292.1%2c166.6c-0.5-0.5-0.8-1.1-0.9-1.8c-0.1-0.7%2c0-1.4%2c0.3-2s0.8-1.1%2c1.3-1.5c0.6-0.4%2c1.3-0.5%2c2-0.5 c0.7%2c0%2c1.4%2c0.2%2c1.9%2c0.6c0.6%2c0.4%2c1%2c0.9%2c1.2%2c1.6c0.2%2c0.6%2c0.3%2c1.3%2c0.1%2c2c-0.1%2c0.7-0.5%2c1.3-1%2c1.7l-2.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c0.6-0.4%2c1.3-0.5%2c2-0.5 c0.7%2c0%2c1.4%2c0.2%2c1.9%2c0.6c0.6%2c0.4%2c1%2c0.9%2c1.2%2c1.6c0.2%2c0.6%2c0.3%2c1.3%2c0.1%2c2c-0.1%2c0.7-0.5%2c1.3-1%2c1.7l-2.4%2c3.1L387.8%2c167.2z'/%3e%3cpath class='st5' d='M377.9%2c204.1c-0.5-0.5-0.8-1.1-0.9-1.8c-0.1-0.7%2c0-1.4%2c0.3-2s0.8-1.1%2c1.3-1.5c0.6-0.4%2c1.3-0.5%2c2-0.5 c0.7%2c0%2c1.4%2c0.2%2c1.9%2c0.6c0.6%2c0.4%2c1%2c0.9%2c1.2%2c1.6c0.2%2c0.6%2c0.3%2c1.3%2c0.1%2c2c-0.1%2c0.7-0.5%2c1.3-1%2c1.7l-2.4%2c3.1L377.9%2c204.1z'/%3e%3cpath class='st2' d='M389.5%2c172'/%3e%3c/svg%3e"},altText:"",width:368,height:240})))),e.createElement("div",{className:"footer__bottom-container"},e.createElement("div",{className:"footer__bottom-wrapper"},e.createElement("ul",{className:"footer__hygiene-link-wrapper"},n.map(function(C,a){return e.createElement("li",{className:"footer__hygiene-link",key:"hygiene-".concat(a)},e.createElement(sC,{theme:t,url:C.href,title:C.label,externalLink:C.externalLink}))})),e.createElement("p",{className:"footer__copyright"},"© University of Birmingham ",(new Date).getFullYear()))))},exports.GeneralSearchFilter=function(C){var t=C.theme,a=C.heading,l=C.typeName,n=C.typeGroups,r=C.onClearFilters,i=C.onViewResults,o=C.defaultCheckedType,s=n.find(function(e){return e.value===o});return e.createElement("div",{className:c("general-search-filter",t&&"theme-".concat(t))},e.createElement("p",{className:"general-search-filter__heading"},a),e.createElement("ul",{className:"general-search-filter__list"},e.createElement("li",{className:"general-search-filter__item",key:"type"},e.createElement(LC,{type:"radio",heading:"Type",theme:t,defaultIsOpen:!0,inputs:n.map(function(e){return{name:l,value:e.value,label:e.label,id:e.id,defaultChecked:!!o&&o===e.value,onChange:e.onChange}})})),(null==s?void 0:s.checkboxGroups)&&s.checkboxGroups.length>0&&s.checkboxGroups.map(function(C){return e.createElement("li",{className:"standard-listing-filter__item",key:C.name},e.createElement(LC,{type:"checkbox",heading:C.heading,theme:t,inputs:C.inputs.map(function(e){return{name:C.name,value:e.value,label:e.label,id:e.id,defaultChecked:!!C.defaultValues&&C.defaultValues.includes(e.value),onChange:C.onChange}})}))})),i&&e.createElement("div",{className:"general-search-filter__results-button"},e.createElement(u,{label:"View filtered results",onClick:i,theme:t})),e.createElement("div",{className:"general-search-filter__clear-button"},e.createElement(u,{label:"Clear filters",onClick:r,theme:t,hollow:!0})))},exports.GenericDetailSection=function(C){var t=C.theme,l=C.title,n=C.detailColumns,r=C.buttons;return e.createElement("section",{className:c("generic-detail-section",t&&"theme-".concat(t))},e.createElement("div",{className:"generic-detail-section__container"},l&&e.createElement("h2",{className:"generic-detail-section__title"},l),e.createElement("ul",{className:"generic-detail-section__details-container"},n.map(function(C,l){return e.createElement("ul",{key:l,className:"generic-detail-section__column"},C.map(function(C){return e.createElement("li",{className:"generic-detail-section__detail",key:C.title},e.createElement(hC,a({},C,{theme:t})))}),3===n.length&&2===l&&r&&r.map(function(C,n){return e.createElement("li",{key:n,className:"generic-detail-section__detail generic-detail-section__detail--button"},e.createElement(u,a({},C,{theme:t,hollow:l%2!=0})))}))}),n.length<3&&r&&e.createElement("ul",null,r.map(function(C,l){return e.createElement("li",{key:l,className:"generic-detail-section__detail generic-detail-section__detail--button"},e.createElement(u,a({},C,{theme:t,hollow:l%2!=0})))})))))},exports.Header=function(t){var a=t.theme,n=void 0===a?"uobmain":a,r=t.primaryLinks,i=t.secondaryLinks,o=t.menuCards,s=t.dubaiUrl,m=t.ukUrl,d=t.logoTitleTagH1,h=void 0===d||d,p=t.activeCampus,f=void 0===p?"uk":p,L=t.searchProps,v=function(){var C=e.useState(null),t=C[0],a=C[1];return e.useEffect(function(){var e=window.scrollY,C=function(){var C=window.scrollY,l=C>e?"down":"up";l!==t&&(C-e>3||C-e<-3)&&a(l),e=C>0?C:0};return window.addEventListener("scroll",C),function(){window.removeEventListener("scroll",C)}},[t]),t}(),g=e.useState(!1),E=g[0],_=g[1],M=e.useRef(null),b=e.useRef(null),Z=e.useRef(null),H=pe("768px"),w=e.useState(0),V=w[0],y=w[1],N=e.useState(null),k=N[0],x=N[1],T=e.useState(null),S=T[0],P=T[1],O=e.useState(!1),q=O[0],F=O[1],B=e.useState(!1),D=B[0],I=B[1],A=e.useState(""),R=A[0],$=A[1],j=function(){_(!0),document.body.classList.add("lock-scroll")},z=function(){F(!0),j()},W=function(){F(!1),I(!1)},U=function(){_(!1),W(),document.body.classList.remove("lock-scroll"),y(0),x(null),P(null),M.current&&M.current.focus()},G=function(){y(0),x(null),W()},K=function(){y(1),P(null),W()},Y=function(e){"Escape"===e.key&&E&&U()};e.useEffect(function(){return document.addEventListener("keydown",Y),function(){document.removeEventListener("keydown",Y)}}),e.useEffect(function(){if(b.current&&"down"===v){var e=b.current.offsetHeight;b.current.style.top="-".concat(e,"px")}else if(b.current&&"up"===v){var C=0;Z.current&&b.current&&(C=Z.current.offsetHeight),b.current.style.top="-".concat(C,"px")}},[v]);var J=null,Q=null;null!==k&&(J=l(l([],r,!0),i,!0)[k],null!==S&&J.children&&(Q=J.children[S]));var X=e.createElement("div",{className:"header__campus-selector header__campus-selector--mobile"},e.createElement(Gt,{theme:n,dubaiUrl:s,ukUrl:m,active:f,mobile:!0})),ee=e.createElement("div",{className:"header__campus-selector header__campus-selector--desktop",ref:Z},e.createElement(Gt,{theme:n,dubaiUrl:s,ukUrl:m,active:f,mobile:!1})),Ce=e.createElement("div",{className:"header__campus-selector header__campus-selector--desktop"},e.createElement(Gt,{theme:n,dubaiUrl:s,ukUrl:m,active:f,mobile:!1})),te=function(e){$(e.target.value)},ae=function(e){if(e.preventDefault(),"undefined"!=typeof window){var C=L.resultsUrl;window.location.href=R?"".concat(C,"?term=").concat(R):"".concat(C)}};return e.createElement("header",{className:c("header",n&&"theme-".concat(n),!E&&"header--is-closed","header--".concat(f)),id:"header",ref:b},e.createElement("div",{className:"header__closed"},ee,e.createElement("div",{className:"header__top-container"},e.createElement("div",{className:"header__logo-wrapper"},e.createElement(uC,{activeCampus:f,imageMode:"light",classNames:"header__logo-link"},h?e.createElement("h1",{className:"sr-only"},"uk"===f?"University of Birmingham":"University of Birmingham Dubai"):e.createElement("span",{className:"sr-only"},"uk"===f?"University of Birmingham":"University of Birmingham Dubai"))),e.createElement("div",{className:"header__right-wrapper"},e.createElement("div",{className:"header__search-button"},e.createElement(u,{theme:n,label:"Search",onClick:function(){I(!0),z()},hollow:!0})),e.createElement("div",{className:"header__menu-button"},e.createElement("span",null,"Menu"),e.createElement(be,{theme:"uobmain",icon:"hamburger",onClick:j,title:"Open menu",ariaControls:"header",ref:M,ariaExpanded:E}))))),e.createElement(C.AnimatePresence,null,E&&e.createElement(Bt,null,e.createElement(C.motion.div,{className:"header__open",initial:{x:"100%"},animate:{x:"0"},exit:{x:"100%"},transition:{type:"tween"},key:"header__open"},Ce,e.createElement("div",{className:"header__top-container"},e.createElement("div",{className:"header__logo-wrapper"},e.createElement(uC,{activeCampus:f,imageMode:"dark",classNames:"header__logo-link"},e.createElement("h1",{className:"sr-only"},"uk"===f?"University of Birmingham":"University of Birmingham Dubai"))),e.createElement("div",{className:"header__right-wrapper"},!H&&!q&&e.createElement("div",{className:"header__search-button-menu"},e.createElement(u,{theme:n,inverse:!0,label:"Search",onClick:z,hollow:!0})),e.createElement("div",{className:"header__menu-button"},e.createElement("span",null,"Menu"),e.createElement(be,{theme:"uobmain",inverse:!0,icon:"cross",onClick:U,title:"Close menu",ariaControls:"header"})))),H&&!q&&e.createElement("div",{className:"header__search-button-mobile"},e.createElement(u,{theme:n,inverse:!0,label:"Search",onClick:z,hollow:!0})),0===V&&!q&&e.createElement(Rt,{primaryLinks:r,secondaryLinks:i,menuCards:o,onClickNavLink:function(e){y(1),x(e)},theme:n}),0===V&&q&&e.createElement(Wt,{theme:n,introText:L.introText,placeholder:L.placeholder,title:L.title,handleSearchChange:te,handleSearchSubmit:ae,onClickGoBack:D?void 0:G,backLinkLabel:D?"":"Back to menu",recommendedLinks:L.recommendedLinks,recommendedLinkTitle:L.recommendedLinkTitle}),1===V&&J&&!q&&e.createElement(jt,{headingLink:J,onClickNavLink:function(e){y(2),P(e)},theme:n,onClickGoBack:G,backLinkLabel:"Back to menu"}),1===V&&J&&q&&e.createElement(Wt,{theme:n,introText:L.introText,placeholder:L.placeholder,title:L.title,handleSearchChange:te,handleSearchSubmit:ae,onClickGoBack:K,backLinkLabel:"Back to ".concat(J.label),recommendedLinks:L.recommendedLinks,recommendedLinkTitle:L.recommendedLinkTitle}),2===V&&J&&Q&&!q&&e.createElement(jt,{headingLink:Q,onClickNavLink:function(){},theme:n,onClickGoBack:K,backLinkLabel:"Back to ".concat(J.label)}),2===V&&J&&Q&&q&&e.createElement(Wt,{theme:n,introText:L.introText,placeholder:L.placeholder,title:L.title,handleSearchChange:te,handleSearchSubmit:ae,onClickGoBack:function(){y(2),W()},backLinkLabel:"Back to ".concat(Q.label),recommendedLinks:L.recommendedLinks,recommendedLinkTitle:L.recommendedLinkTitle}),X))))},exports.Heading=g,exports.Hero=function(C){var t=C.theme,l=C.inverse,n=C.title,r=C.titleTag,i=void 0===r?"h2":r,o=C.description,s=C.image,m=C.links,d=C.courseSearchProps,h=pe("768px"),p=pe("1248px");return e.createElement("div",{className:c("hero",t&&"theme-".concat(t),l&&"theme-".concat(t,"--inverse"),s&&"hero--with-image"),id:"hero"},s&&"rectangle"===s.style&&e.createElement("div",{className:"hero__image-wrapper hero__image-wrapper--mobile hero__image-wrapper--rectangle"},e.createElement(_,a({},s,{altText:s.alt,fetchPriority:s.fetchPriority}))),s&&"lines-of-intent"===s.style&&h&&e.createElement("div",{className:"hero__image-wrapper hero__image-wrapper--mobile"},e.createElement(Yt,{isMobile:!0,isTablet:!1,image:s}),e.createElement(Qt,{isMobile:!0,isTablet:!1})),e.createElement("div",{className:"hero__container"},e.createElement("div",{className:"hero__content"},e.createElement(i,{className:"hero__title"},n),o&&e.createElement("div",{className:"hero__description"},e.createElement(L,{text:o,theme:t,inverse:l})),m&&m.length>0&&e.createElement("div",{className:"hero__buttons"},m.map(function(C,a){return e.createElement(u,{theme:t,key:a,url:C.url,label:C.title,externalLink:C.externalLink,inverse:!l,hollow:1===a})})),d&&e.createElement(ea,a({theme:t,inverse:l,wrapped:!0},d))),s&&"rectangle"===s.style&&e.createElement("div",{className:"hero__image-wrapper hero__image-wrapper--desktop hero__image-wrapper--rectangle"},e.createElement(_,a({},s,{altText:s.alt,fetchPriority:s.fetchPriority}))),s&&"lines-of-intent"===s.style&&p&&e.createElement("div",{className:"hero__image-wrapper hero__image-wrapper--desktop hero__image-wrapper--polygon"},e.createElement(Yt,{isMobile:!1,isTablet:!0,image:s}),e.createElement(Qt,{isMobile:!1,isTablet:!0})),s&&"lines-of-intent"===s.style&&!h&&!p&&e.createElement("div",{className:"hero__image-wrapper hero__image-wrapper--desktop hero__image-wrapper--polygon"},e.createElement(Yt,{isMobile:!1,isTablet:!1,image:s}),e.createElement(Qt,{isMobile:!1,isTablet:!1}))))},exports.HeroArticle=function(C){var t=C.theme,l=C.inverse,n=C.title,r=C.titleTag,i=void 0===r?"h2":r,o=C.description,s=C.cardImage,m=C.publishDate,d=C.readTime,u=C.shareButtons,h=C.author;return e.createElement("section",{className:c("hero-article",t&&"theme-".concat(t),l&&"theme-".concat(t,"--inverse"))},e.createElement("div",{className:"hero-article__container"},e.createElement("div",{className:"hero-article__content"},e.createElement(i,{className:"hero-article__title"},n),e.createElement("p",{className:"hero-article__description"},o),e.createElement("div",{className:"hero-article__meta-data"},m&&e.createElement("span",{className:"hero-article__publish-date"},m),m&&d&&e.createElement("span",{className:"hero-article__separator"},"•"),d&&e.createElement("span",{className:"hero-article__read-time"},d),h&&e.createElement(e.Fragment,null,e.createElement("span",{className:"hero-article__separator"},"•"),e.createElement("span",{className:"hero-article__author"},"by ",e.createElement(ta,a({},h))))),e.createElement("div",{className:"hero-article__sharing-buttons"},e.createElement(Ca,{theme:t,label:u.label,icons:u.icons,inverse:l})))),s&&e.createElement("div",{className:"hero-article__image-wrapper"},e.createElement(Oe,a({},s,{inverse:l}))))},exports.HeroCarousel=function(t){var a=t.theme,l=t.cards,n=l.length>1,r=e.useState(0),i=r[0],o=r[1],s=l[i],m=e.useRef(null),d=pe("768px"),u=pe("1248px"),h="";switch(i){case 0:h="first";break;case 1:h="second";break;case 2:h="third"}var p=n?e.createElement(Re,{theme:a,totalNumber:l.length,currentNumber:i+1,carouselId:"hero-carousel",onClickPrev:function(){o(function(e){return e-1})},onClickNext:function(){o(function(e){return e+1})},prevButtonDisabled:0===i,nextButtonDisabled:i===l.length-1,showNumbers:!0}):e.createElement(e.Fragment,null);return e.createElement("div",{className:c("hero-carousel",a&&"theme-".concat(a)),id:"hero-carousel"},e.createElement("div",{className:"hero-carousel__top"},e.createElement("div",{className:"hero-carousel__content"},d&&e.createElement("div",{className:"hero-carousel__image-container hero-carousel__image-container--mobile"},e.createElement(Za,{isMobile:!0,isTablet:!1,activeVariant:h,imageSrc:s.imageSrc,imageAlt:s.imageAlt}),e.createElement(ba,{isMobile:!0,isTablet:!1,activeVariant:h})),e.createElement("div",{className:"hero-carousel__cards"},e.createElement(C.motion.section,{className:"hero-carousel__active-card",key:i,initial:{opacity:0},animate:{opacity:1}},e.createElement(Ha,{category:s.category,title:s.title,description:s.description,linkUrl:s.linkUrl,linkLabel:s.linkLabel,theme:a,ref:m})),d&&n&&l.map(function(C,t){return e.createElement("section",{className:"hero-carousel__invisible-card hero-carousel__invisible-card--mobile",key:t,"aria-hidden":!0},e.createElement(Ha,{category:C.category,title:C.title,description:C.description,linkUrl:C.linkUrl,linkLabel:C.linkLabel,theme:a}))}),e.createElement("div",{className:"hero-carousel__nav hero-carousel__nav--desktop"},p)),e.createElement("div",{className:"hero-carousel__image-container hero-carousel__image-container--desktop"},e.createElement(Za,{isMobile:!1,isTablet:u,activeVariant:h,imageSrc:s.imageSrc,imageAlt:s.imageAlt}),e.createElement(ba,{isMobile:!1,isTablet:u,activeVariant:h}))),!d&&n&&l.map(function(C,t){return e.createElement("div",{className:"hero-carousel__invisible-card hero-carousel__invisible-card--desktop",key:t,"aria-hidden":!0},e.createElement("section",null,e.createElement(Ha,{category:C.category,title:C.title,description:C.description,linkUrl:C.linkUrl,linkLabel:C.linkLabel,theme:a})))})),d&&e.createElement("div",{className:"hero-carousel__nav hero-carousel__nav--mobile"},p))},exports.HeroCourses=function(C){var t,l=C.theme,n=C.title,r=C.titleTag,i=void 0===r?"h2":r,o=C.awardShort,s=C.links,m=C.ranking,d=C.award,h=C.campus,p=C.ucas,L=C.duration,v=C.entryRequirements,g=C.startDate,E=C.yearOfEntry,_=C.fees,M=C.deliveryFormat,b=C.locationDetails,Z=C.modalCTA;return e.createElement("section",{className:c("hero-courses",l&&"theme-".concat(l)),id:"hero-courses"},e.createElement("div",{className:"hero-courses__container"},e.createElement("div",{className:"hero-courses__content"},e.createElement("div",{className:"hero-courses__title-wrapper"},e.createElement(f,{htmlTag:i,classNames:"hero-courses__title"},n&&n.length>0&&o&&o.length>0?n+" ":n,e.createElement("span",{className:"hero-courses__title-award"},o))),b&&e.createElement("div",{className:"hero-courses__location-wrapper"},e.createElement(oa,a({},b,{inverse:!1}))),e.createElement("ul",{className:(t="hero-courses__grid--four",m&&(h||M||p)?t="hero-courses__grid--six":(m&&!h&&!M&&!p||!m&&(h||M||p))&&(t="hero-courses__grid--five"),"hero-courses__grid "+t)},m&&e.createElement("li",{className:"hero-courses__column hero-courses__column--ranking"},e.createElement(ia,a({},m))),(p||h||M)&&e.createElement("li",{className:"hero-courses__column hero-courses__column--split hero-courses__column--award"},p&&e.createElement(ca,a({},p)),h&&e.createElement(ca,a({},h)),M&&e.createElement(ca,a({},M))),L&&E?e.createElement("li",{className:"hero-courses__column hero-courses__column--split hero-courses__column--duration"},e.createElement(ra,a({},E)),e.createElement(ca,a({},L))):L&&g?e.createElement("li",{className:"hero-courses__column hero-courses__column--split hero-courses__column--duration"},e.createElement(ca,a({},g)),e.createElement(ca,a({},L))):e.createElement("li",{className:"hero-courses__column hero-courses__column--duration"},e.createElement(ca,a({},L))),d&&e.createElement("li",{className:"hero-courses__column hero-courses__column--delivery-format"},e.createElement(ca,a({},d))),e.createElement("li",{className:"hero-courses__column hero-courses__column--entry-requirements"},e.createElement(ca,a({},v))),e.createElement("li",{className:"hero-courses__column hero-courses__column--fees"},e.createElement(ca,a({},_)))),e.createElement("div",{className:"hero-courses__button-wrapper"},e.createElement("ul",{className:"hero-courses__buttons"},s&&s.map(function(C,t){return C.externalLink?e.createElement("li",{className:"hero-courses__button",key:t},e.createElement(we,{theme:l,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(u,{theme:l,label:C.label,hollow:t%2!=0,url:C.url,inverse:!0}))})),Z&&e.createElement(aa,{theme:l,inverse:!Z.inverse,hollow:!0,buttonLabel:Z.buttonLabel,modalChildren:Z.modalChildren})))))},exports.HeroProfile=function(C){var t=C.theme,l=C.studentName,n=C.studentStatus,r=C.courseName,i=C.courseDetails,o=C.studyLevel,s=C.titleTag,m=void 0===s?"h2":s,d=C.homeCountry,u=C.studentIntro,h=C.image,p=C.inverse;return e.createElement("div",{className:c("heroProfile",t&&"theme-".concat(t),p&&"theme-".concat(t,"--inverse")),id:"hero"},e.createElement("div",{className:"heroProfile__container"},e.createElement("div",{className:"heroProfile__details"},l&&e.createElement(m,{className:"heroProfile__title"},l),n&&e.createElement("p",{className:"heroProfile__status"},n),r&&e.createElement("p",{className:"heroProfile__courseName"},r),(o||d||i&&i.length>0)&&e.createElement("ul",{className:"heroProfile__studentDetails"},i&&i.length>0&&e.createElement("li",null,e.createElement("div",{className:"heroProfile__iconContainer"},e.createElement(Te,{icon:"mortar-board",theme:t,backgroundColor:"pale"}),e.createElement("div",{className:"heroProfile__courseIconText"},e.createElement("span",null,1===i.length?"Course":"Courses",":"),e.createElement("div",{className:"heroProfile__courseDetails"},i.map(function(C,a){return e.createElement(L,{theme:t,key:a,text:C,inverse:p})}))))),o&&e.createElement("li",null,e.createElement("div",{className:"heroProfile__iconContainer"},e.createElement(Te,{icon:"scroll",theme:t,backgroundColor:"pale"}),e.createElement("div",{className:"heroProfile__iconText"},e.createElement("span",null,"Study level:"),e.createElement("span",null,o)))),d&&e.createElement("li",null,e.createElement("div",{className:"heroProfile__iconContainer"},e.createElement(Te,{icon:"flag",theme:t,backgroundColor:"pale"}),e.createElement("div",{className:"heroProfile__iconText"},e.createElement("span",null,"Home country:"),e.createElement("span",null,d))))),u&&e.createElement(L,{theme:t,text:u,inverse:p})),e.createElement("div",{className:"heroProfile__image-wrapper"},h&&e.createElement(_,a({},h,{altText:null==h?void 0:h.alt,fetchPriority:h.fetchPriority})))))},exports.ImageBlock=function(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.inverse,r=C.title,i=C.description,o=C.linkProps,s=C.fullWidth,m=C.makeHeadingFullWidth,d=C.images,u=C.htmlTag;if(!d||0===d.length)return null;var h=d.length>2?Array.from(d.slice(0,2)):Array.from(d);return e.createElement("div",{className:c("image-block",l&&"theme-".concat(l),n&&"theme-".concat(l,"--inverse"),s&&"image-block--full-width")},(r||i||o)&&e.createElement(g,{theme:l,inverse:n,title:r,description:i,linkProps:o,fullWidth:!!m,htmlTag:u}),e.createElement("div",{className:"image-block__container"},h&&h.map(function(C,t){var r=c({"image-block__image-container-single-image-full-width-true":1===d.length&&s,"image-block__image-container-single-image-full-width-false":1===d.length&&!s,"image-block__image-container-first-image-full-width-true":d.length>1&&0===t&&s,"image-block__image-container-first-image-full-width-false":d.length>1&&0===t&&!s,"image-block__image-container-second-image-full-width-true":d.length>1&&1===t&&s,"image-block__image-container-second-image-full-width-false":d.length>1&&1===t&&!s});return e.createElement("div",{key:t,className:r},e.createElement(Oe,a({},C,{theme:l,inverse:n})))})))},exports.ImageCarousel=function(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0!==l&&l,r=C.title,i=C.description,o=C.linkProps,s=C.fullWidth,m=void 0!==s&&s,d=C.widerImage,u=C.images,h=C.htmlTag;return e.createElement("section",{className:c("image-carousel",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"),m&&"image-carousel--full-width",d&&"image-carousel--wider-image")},(r||i)&&e.createElement(g,{theme:a,htmlTag:h,inverse:n,title:r,description:i,linkProps:o}),e.createElement("div",{className:"image-carousel__grid"},e.createElement($e,{theme:a,inverse:n,type:"image",cards:u})))},exports.InPageNavigation=function(t){var l,n,r=t.theme,i=void 0===r?"uobmain":r,o=t.inverse,s=void 0!==o&&o,m=t.links,d=t.expandableHeader,u=void 0===d?"Page contents":d,h=e.useState(!1),p=h[0],f=h[1],L=e.useState("not-docked"),v=L[0],g=L[1],E=e.useState(null),_=E[0],M=E[1],b=e.useRef(null),Z=e.useRef(null),H=e.useRef(null),w=e.useRef(null),V=e.useRef(null),y=function(){f(!1)};return l=V,n=function(){return y()},e.useEffect(function(){var e=function(e){!l.current||e.target instanceof HTMLElement&&l.current.contains(e.target)||n()};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),function(){document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[l,n]),e.useEffect(function(){var e;H.current=new IntersectionObserver(function(C){var t;e=null===(t=C.find(function(e){return e.isIntersecting}))||void 0===t?void 0:t.target,g(e?"docked":"not-docked")},{rootMargin:"0px 0px -100%"}),Z.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?g("docked-at-bottom"):!a&&e&&g("docked")}),b.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&&M(t.id)},{rootMargin:"0px 0px -".concat(.7*window.innerHeight,"px 0px")});var C=document.querySelectorAll(".anchor-target");C.forEach(function(e){b&&b.current&&b.current.observe(e)});var t=document.querySelectorAll("#footer");t.forEach(function(e){Z&&Z.current&&Z.current.observe(e)});var a=document.querySelectorAll("#sidebar");return a.forEach(function(e){H&&H.current&&H.current.observe(e)}),function(){C.forEach(function(e){b&&b.current&&b.current.unobserve(e)}),a.forEach(function(e){H&&H.current&&H.current.unobserve(e)}),t.forEach(function(e){Z&&Z.current&&Z.current.unobserve(e)})}},[]),m.links.map(function(e){return e.url.substring(1)===_?e.active=!0:e.active=!1}),e.createElement("div",{className:c("in-page-navigation",i&&"theme-".concat(i),s&&"theme-".concat(i,"--inverse"))},e.createElement("div",{className:c("in-page-navigation--mobile",v)},e.createElement("div",{className:"in-page-navigation__closed"},e.createElement("div",{className:"in-page-navigation__top-container"},e.createElement("div",{className:"in-page-navigation__right-wrapper"},e.createElement("div",{className:"in-page-navigation__menu-button"},e.createElement("span",{className:"in-page-navigation__expandable-header"},u),e.createElement(be,{theme:"uobmain",icon:"menu",onClick:function(){f(!0)},title:"Open menu",ariaControls:"in-page-navigation",ref:w,ariaExpanded:p})))))),p&&e.createElement("div",{className:"in-page-navigation__overlay"}),e.createElement(C.AnimatePresence,null,p&&e.createElement(C.motion.div,{className:"in-page-navigation__open",initial:{x:"100%"},animate:{x:"0"},exit:{x:"100%"},transition:{type:"tween"},key:"in-page-navigation__open",ref:V},e.createElement(Ze,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(be,{theme:"uobmain",inverse:!0,icon:"cross",onClick:y,title:"Close menu",ariaControls:"in-page-navigation"})))),e.createElement(wa,a({},m,{theme:"uobmain"})))))),e.createElement("div",{className:c("in-page-navigation--desktop",v)},e.createElement(wa,a({},m,{theme:i}))))},exports.IntroText=function(C){var t=C.text,a=C.theme,l=void 0===a?"uobmain":a,n=C.inverse,r=C.fullWidth,i=C.removeBottomPadding,o=void 0!==i&&i,s=C.removeTopPadding,m=void 0!==s&&s;return e.createElement("div",{className:c("intro-text",l&&"theme-".concat(l),n&&"theme-".concat(l,"--inverse"),r&&"intro-text--full-width",o&&"intro-text--no-bottom-padding",m&&"intro-text--no-top-padding")},e.createElement("div",{className:"intro-text__container"},e.createElement("p",{className:"intro-text__text"},t)))},exports.LeadNewsArticles=function(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.featuredArticle,r=C.otherLeadArticles,i=C.mostReadNews;return e.createElement("section",{className:c("lead-news-articles",l&&"theme-".concat(l))},e.createElement("div",{className:"lead-news-articles__container"},e.createElement("div",{className:"lead-news-articles__main-container"},e.createElement("div",{className:"lead-news-articles__featured-card"},e.createElement(qe,a({},n,{isPrimary:!0}))),e.createElement("ul",{className:"lead-news-articles__secondary-card-container"},r.map(function(C,t){return e.createElement("li",{className:"lead-news-articles__secondary-card",key:t},e.createElement(qe,{theme:l,image:C.image,title:C.title,href:C.href,titleTag:C.titleTag,publishDate:C.publishDate}))}))),e.createElement("div",{className:"lead-news-articles__side-container"},e.createElement(Va,a({},i)))))},exports.ListTable=function(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.listItems;return e.createElement("div",{className:c("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(L,{inverse:!0,theme:"uobmain",text:C}))})):null)},exports.ListingFilterWrapper=function(t){var a=t.theme,l=t.showFilterButtonLabel,n=t.numSelected,r=t.filterElement,i=e.useState(!1),o=i[0],m=i[1],d=e.useRef(null),u=function(e){"Escape"===e.key&&o&&m(!1)};return e.useEffect(function(){return document.addEventListener("keydown",u),function(){document.removeEventListener("keydown",u)}}),e.useEffect(function(){var e,C;o?null===(e=d.current)||void 0===e||e.showModal():null===(C=d.current)||void 0===C||C.close()},[o]),e.createElement(e.Fragment,null,e.createElement("div",{className:c("listing-filter-wrapper","theme-".concat(a))},e.createElement("div",{className:"listing-filter-wrapper__mobile"},e.createElement("button",{className:"listing-filter-wrapper__show-filter-button",onClick:function(){m(!0),document.body.classList.add("lock-scroll")}},e.createElement(s,{theme:"uobmain",icon:"settings"}),l,n&&e.createElement("span",{className:"listing-filter-wrapper__num-selected"},n,e.createElement("span",{className:"sr-only"},n>1?"filters":"filter"," selected"))))),e.createElement(Ze,null,e.createElement(C.motion.dialog,{className:c("listing-filter-wrapper__dialog","theme-".concat(a)),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},ref:d},e.createElement("div",{className:"listing-filter-wrapper__popup-wrapper"},e.createElement("div",{className:"listing-filter-wrapper__popup"},e.createElement("button",{className:"listing-filter-wrapper__close-button",onClick:function(){m(!1),document.body.classList.remove("lock-scroll")}},e.createElement(s,{icon:"slim-cross",theme:a,ariaHidden:!0}),e.createElement("span",{className:"sr-only"},"Close")),r)))),e.createElement("div",{className:"listing-filter-wrapper__desktop"},r))},exports.ListingResults=function(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.showCategory,r=void 0!==n&&n,i=C.cards,o=C.headingInfo;return e.createElement(e.Fragment,null,o&&e.createElement(g,a({},o,{theme:l,fullWidth:!0})),e.createElement("ul",{className:c("listing-results",l&&"theme-".concat(l))},i.map(function(C,t){return e.createElement("li",{className:"listing-results__card",key:t},e.createElement(Oa,a({},C,{showCategory:r,theme:l})))})))},exports.ListingResultsCount=function(C){var t=C.count,a=C.theme,l=void 0===a?"uobmain":a;return e.createElement("p",{className:c("listing-results-count",l&&"theme-".concat(l))},e.createElement("span",{className:"listing-results-count__number"},t.toLocaleString())," results were found based on your search term")},exports.LocationSection=function(C){var t=C.theme,l=C.embedChildren,n=C.googleMapLink,r=C.address,i=C.services,o=C.link;return e.createElement("section",{className:c("location-section",t&&"theme-".concat(t),(!i||i.length<1)&&"location-section--no-services")},e.createElement("div",{className:"location-section__container"},e.createElement("h2",{className:"location-section__title"},"Location"),e.createElement("div",{className:"location-section__grid-wrapper"},e.createElement("div",{className:"location-section__embed"},e.createElement(je,null,l)),e.createElement("div",{className:"location-section__address-wrapper"},e.createElement("div",{className:"location-section__address"},e.createElement(hC,{theme:t,title:"Address",iconType:"slim-location",value:r.map(function(e){return"<span>".concat(e,"</span>")}).join("")})),o&&(null==o?void 0:o.title)&&(null==o?void 0:o.url)&&e.createElement("div",{className:"location-section__link-wrapper"},e.createElement(h,a({},o,{inverse:!0}))),e.createElement("div",{className:"location-section__button"},e.createElement(u,{label:"View on Google Maps",theme:t,url:n}))),e.createElement("div",{className:"location-section__services"},null==i?void 0:i.map(function(C,l){return e.createElement(hC,a({},C,{theme:t,key:l}))})))))},exports.LocationSelector=oa,exports.MainWrapper=function(C){var t=C.children;return e.createElement("main",{id:"main"},t)},exports.ModalCTA=function(C){var t=C.theme,a=C.heading,l=C.inverse,n=C.description,r=C.buttonLabel,i=C.buttonModifier,o=C.modalChildren,s=C.htmlTag,m=void 0===s?"h3":s,d=e.useState(!1),h=d[0],p=d[1],L=function(){p(!1),document.body.classList.remove("lock-scroll")};return e.createElement("div",{className:c("modal-cta",t&&"theme-".concat(t),l&&"theme-".concat(t,"--inverse"))},e.createElement(f,{htmlTag:m,classNames:"modal-cta__heading"},a),n&&e.createElement("p",{className:"modal-cta__description"},n),e.createElement("div",{className:c("modal-cta__button",i&&"theme-".concat(t,"--buttonModifier"))},e.createElement(u,{inverse:!l,label:r,onClick:function(){h?L():(p(!0),document.body.classList.add("lock-scroll"))},theme:t,buttonModifier:i})),h&&e.createElement(He,{centred:!0,theme:t,closeModal:L,isOpen:h},e.createElement(je,{className:"modal-cta__embed-wrapper"},o)))},exports.NewsArticlesPromoBlock=function(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.heading,r=C.cards,i=C.cardType,o=void 0===i?"featured-news":i;return e.createElement("section",{className:c("news-articles-promo-block",l&&"theme-".concat(l),o&&"news-articles-promo-block--".concat(o))},e.createElement("div",{className:"news-articles-promo-block__heading-container"},n&&e.createElement("h2",{className:"news-articles-promo-block__heading"},n)),e.createElement("div",{className:"news-articles-promo-block__cards news-articles-promo-block__cards--mobile"},"featured-news"===o&&e.createElement($e,{theme:l,type:"featured-news",cards:r,inverse:!0,cardTitleTag:"h3"}),"promo-video"===o&&e.createElement($e,{theme:l,type:"promo-video",cards:r,inverse:!0,cardTitleTag:"h3",setCardInverse:"dark"})),e.createElement("ul",{className:"news-articles-promo-block__cards news-articles-promo-block__cards--desktop"},r.map(function(C,t){return e.createElement("li",{key:t},"featured-news"===o&&e.createElement(qe,a({},C,{inverse:!0,titleTag:"h3"})),"promo-video"===o&&e.createElement(xe,a({},C,{inverse:!1,titleTag:"h3"})))})))},exports.Pagination=function(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.numOfPages,n=C.onClick,r=C.currentPage,i=!pe("1248px");return l<=1?e.createElement(e.Fragment,null):e.createElement("div",{className:c("pagination",a&&"theme-".concat(a))},e.createElement("ul",{className:"pagination__container"},e.createElement("li",{className:"pagination__prev",key:"prev"},i?e.createElement(u,{theme:a,label:"Previous",onClick:function(){return n(r-1)},hollow:!0,disabled:r<1}):e.createElement(be,{theme:a,icon:"arrow-left",title:"Previous",onClick:function(){return n(r-1)},disabled:r<1,inverse:!0})),e.createElement(qa,{currentPage:r,onClick:n,theme:a,numOfPages:l}),e.createElement("li",{className:"pagination__next",key:"next"},i?e.createElement(u,{theme:a,label:"Next",onClick:function(){return n(r+1)},hollow:!0,disabled:r+1===l}):e.createElement(be,{theme:a,icon:"arrow-right",title:"Next",onClick:function(){return n(r+1)},disabled:r+1===l,inverse:!0}))))},exports.PromoBlock=function(C){var t,l=C.theme,n=C.inverse,r=C.type,i=C.title,s=C.description,m=C.link,d=C.cards,u=C.imageOrientation,p=void 0===u?"left":u,L=C.titleTag,v=void 0===L?"h2":L,g=C.cardTitleTag,E=void 0===g?"h3":g,_=C.cardCopyIsRichText,M=void 0!==_&&_,b=C.fullWidth,Z=void 0!==b&&b,H=C.fullWidthTitle,w=void 0!==H&&H,V=C.showFilters,y=void 0!==V&&V,N=C.firstFilterSelect,k=C.secondFilterSelect,x=!1;pe("768px")?d.length>1&&(x=!0):(Z&&d.length>2||d.length>3)&&(x=!0);var T=c(((t={})["promo-block__grid"]=!0,t["promo-block__grid--single"]=1===d.length,t["promo-block__grid--two-cards"]=2===d.length,t["promo-block__grid--three-cards"]=3===d.length,t["promo-block__grid--four-plus-cards"]=d.length>3,t));return e.createElement("div",{className:c("promo-block","promo-block--".concat(r),l&&"theme-".concat(l),n&&"theme-".concat(l,"--inverse"),Z&&"promo-block--full-width")},e.createElement("div",{className:"promo-block__container"},e.createElement("div",{className:c("promo-block__top",w&&"promo-block__top--full-width")},i&&e.createElement(f,{htmlTag:v,classNames:c("promo-block__title","h3"===v&&"promo-block__title--h3")},i),s&&e.createElement(o,{theme:"uobmain",inverse:n,text:s}),m&&e.createElement("div",{className:"promo-block__text-link"},e.createElement(h,{theme:l,inverse:n,url:m.url,title:m.title,externalLink:m.externalLink}))),y&&e.createElement("div",{className:"promo-block__filters"},e.createElement("div",{className:"promo-block__filter-wrapper"},N&&e.createElement(Xt,a({},N))),e.createElement("div",{className:"promo-block__filter-wrapper"},k&&e.createElement(Xt,a({},k)))),e.createElement("div",{className:"promo-block__content"},e.createElement("div",{className:"promo-block__cards"},!x&&e.createElement("ul",{className:T},d.map(function(C,t){return e.createElement("li",{className:"promo-block__card-item",key:t},function(C){var t=a(a({},C),{cardCopyIsRichText:M});switch(r){case"promo":return e.createElement(Ne,a({},t));case"promo-signpost":return e.createElement(ke,a({},C));case"promo-video":return e.createElement(xe,a({},C));case"promo-profile":return e.createElement(Ae,a({},C));default:return e.createElement(e.Fragment,null)}}(a(a({},C),{inverse:n,isSingle:1===d.length,imageOrientation:p,titleTag:E})))})),x&&e.createElement($e,{theme:l,inverse:n,type:r,cards:d,cardTitleTag:E,cardCopyIsRichText:M})))))},exports.PromoBlockGrid=function(C){var t=C.theme,l=C.inverse,n=C.type,r=C.title,i=C.description,s=C.link,m=C.cards,d=C.imageOrientation,u=void 0===d?"left":d,p=C.fullWidth;return e.createElement("div",{className:c("promo-block-grid","promo-block-grid--".concat(n),t&&"theme-".concat(t),l&&"theme-".concat(t,"--inverse"),p&&"promo-block-grid--full-width"),id:"promo-block-grid"},e.createElement("div",{className:"promo-block-grid__container"},e.createElement("div",{className:"promo-block-grid__top"},r&&e.createElement("h2",null,r),i&&e.createElement(o,{theme:"uobmain",inverse:l,text:i}),s&&e.createElement("div",{className:"promo-block-grid__text-link"},e.createElement(h,{theme:"uobmain",inverse:l,url:s.url,title:s.title,externalLink:s.externalLink}))),e.createElement("div",{className:"promo-block-grid__content"},e.createElement("div",{className:"promo-block-grid__cards"},m.length>0&&e.createElement("ul",{className:"promo-block-grid__grid"},m.map(function(C,t){return e.createElement("li",{className:"promo-block-grid__card-item",key:t},function(C){switch(n){case"promo":return e.createElement(Ne,a({},C));case"promo-signpost":return e.createElement(ke,a({},C));case"promo-video":return e.createElement(xe,a({},C));default:return e.createElement(e.Fragment,null)}}(a(a({},C),{inverse:l,isSingle:1===m.length,imageOrientation:u,titleTag:r?"h3":"h2"})))}))))))},exports.QuoteBlock=function(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=C.title,r=C.description,i=C.cite,o=C.role,m=C.quote,d=C.quoteeProfileImage,u=C.quoteeProfileImageAltText,p=C.cta,f=C.fullWidth,L=void 0!==f&&f,v=C.htmlTag;return e.createElement("div",{className:c("quote-block","theme-".concat(a),l&&"theme-".concat(a,"--inverse"),L&&"quote-block--full-width")},(n||r)&&e.createElement(g,{theme:a,inverse:l,htmlTag:v,title:n,description:r}),e.createElement("blockquote",{className:c("quote-block__container",!d&&"quote-block__container--no-image")},e.createElement("div",{className:"quote-block__doublequote quote-block__doublequote--open"},e.createElement(s,{icon:"quote-marks",theme:a})),e.createElement("p",{className:"quote-block__quote"},m),d&&e.createElement("div",{className:"quote-block__quotee-image"},e.createElement(_,{src:{default:d},altText:u})),(i||o)&&e.createElement("footer",{className:"quote-block__cite"},i&&e.createElement("cite",{className:"quote-block__cite-cite"},i),o&&e.createElement("div",{className:"quote-block__cite-role"},o)),e.createElement("div",{className:"quote-block__doublequote quote-block__doublequote--close"},e.createElement(s,{icon:"quote-marks",theme:a})),p&&e.createElement("div",{className:"quote-block__optional-link"},e.createElement(h,{inverse:l,onKeyDown:function(){},theme:a,title:p.title,url:p.url}))))},exports.RelatedCourses=function(C){var t,l=C.theme,n=void 0===l?"uobmain":l,r=C.inverse,i=void 0===r||r,o=C.heading,s=C.description,m=C.linkProps,d=C.headingStyle,u=C.fullWidth,p=C.cards,f=pe("768px"),L=f&&p.length>1||!f&&u&&p.length>2||!f&&!u&&p.length>3,v=c(((t={})["related-courses__grid"]=!0,t["related-courses__grid--single"]=1===p.length,t["related-courses__grid--two-cards"]=2===p.length,t["related-courses__grid--three-cards"]=3===p.length,t["related-courses__grid--four-plus-cards"]=p.length>3,t));return e.createElement("section",{className:c("related-courses",n&&"theme-".concat(n),i&&"theme-".concat(n,"--inverse"),u&&"related-courses--full-width")},e.createElement("div",{className:"related-courses__container"},e.createElement("h2",{className:c("related-courses__heading",d&&"related-courses__heading--".concat(d))},o),s&&e.createElement("div",{className:"related-courses__description"},s),m&&m.url&&m.title&&e.createElement("div",{className:"related-courses__arrow-link-container"},e.createElement(h,{theme:n,inverse:i,title:m.title,url:m.url})),e.createElement("div",{className:"related-courses__cards"},!L&&e.createElement("ul",{className:v},p.map(function(C,t){return e.createElement("li",{className:"related-courses__card-item",key:t},e.createElement(Pe,a({},C)))})),L&&e.createElement($e,{theme:n,inverse:i,type:"related",cards:p,cardTitleTag:"h3"}))))},exports.ResearchStoryCarousel=function(C){var t,l=C.theme,n=void 0===l?"uobmain":l,r=C.inverse,i=void 0===r||r,o=C.fullWidth,s=void 0!==o&&o,m=C.heading,d=C.description,u=C.cards,h=C.singleLink,p=C.titleTag,f=void 0===p?"h2":p,L=C.cardTitleTag,v=void 0===L?"h3":L,E=pe("768px"),_=E&&u.length>1||!E&&u.length>2,M=c(((t={})["research-story-carousel__grid"]=!0,t["research-story-carousel__grid--single"]=1===u.length,t["research-story-carousel__grid--two-cards"]=2===u.length,t["research-story-carousel__grid--three-plus-cards"]=u.length>3,t));return e.createElement("section",{className:c("research-story-carousel",n&&"theme-".concat(n),i&&"theme-".concat(n,"--inverse"),s&&"research-story-carousel--full-width")},e.createElement("div",{className:"research-story-carousel__container"},(m||d||h)&&e.createElement(g,{theme:n,inverse:!0,htmlTag:f,title:m,description:d,linkProps:h,fullWidth:!0}),e.createElement("div",{className:"research-story-carousel__cards"},!_&&e.createElement("ul",{className:M},u.map(function(C,t){return e.createElement("li",{key:t},e.createElement(Fe,a({},C)))})),_&&e.createElement($e,{theme:n,inverse:i,type:"research-story",cards:u,cardTitleTag:v}))))},exports.RichText=o,exports.ScholarshipCarousel=function(C){var t,l=C.theme,n=void 0===l?"uobmain":l,r=C.inverse,i=void 0===r||r,o=C.fullWidth,s=void 0!==o&&o,m=C.headingProps,d=C.cards,u=pe("768px"),h=u&&d.length>1||!u&&d.length>2,p=c(((t={})["scholarship-carousel__grid"]=!0,t["scholarship-carousel__grid--single"]=1===d.length,t["scholarship-carousel__grid--two-cards"]=2===d.length,t["scholarship-carousel__grid--three-plus-cards"]=d.length>3,t));return e.createElement("section",{className:c("scholarship-carousel",n&&"theme-".concat(n),i&&"theme-".concat(n,"--inverse"),s&&"scholarship-carousel--full-width")},e.createElement("div",{className:"scholarship-carousel__container"},m&&e.createElement(g,a({},m,{theme:n,inverse:i,fullWidth:s})),e.createElement("div",{className:"scholarship-carousel__cards"},!h&&e.createElement("ul",{className:p},d.map(function(C,t){return e.createElement("li",{className:"related-courses__card-item",key:t},e.createElement(Be,a({},C,{inverse:i})))})),h&&e.createElement($e,{theme:n,inverse:i,type:"scholarship",cards:d,cardTitleTag:"h3"}))))},exports.ScrollableTable=function(C){var t=C.text,a=C.theme,l=void 0===a?"uobmain":a,n=C.inverse,r=C.fullWidth,i=void 0!==r&&r,o=C.removeBottomPadding,s=void 0!==o&&o,m=C.tableCategory,d=void 0===m?Ka.NotSpecified:m,u=e.useRef(null),h=e.useState(!1),p=h[0],f=h[1],L=e.useState(!0),v=L[0],g=L[1],E=e.useState(!1),_=E[0],M=E[1],b=e.useState(function(){return"scrollable-table-".concat(Math.random().toString(16).slice(2))})[0],Z=function(){var e=u.current;e&&(f(e.scrollLeft>0),g(e.scrollLeft<e.scrollWidth-e.clientWidth))},H=e.useCallback(function(){var e=u.current;if(e){var C=e.scrollWidth>e.clientWidth;M(C),Z()}},[]),w=function(e){var C=u.current;if(C){var t="left"===e?C.scrollLeft-200:C.scrollLeft+200;C.scrollTo({left:t,behavior:"smooth"})}};return e.useEffect(function(){H();var e=u.current;e&&e.addEventListener("scroll",Z);var C=function(){return H()};return window.addEventListener("resize",C),function(){e&&e.removeEventListener("scroll",Z),window.removeEventListener("resize",C)}},[H]),e.createElement("div",{className:c("scrollable-table",i&&"scrollable-table--full-width",l&&"theme-".concat(l),n&&"theme-".concat(l,"--inverse"),s&&"scrollable-table--no-bottom-padding")},e.createElement("div",{className:"scrollable-table__container"},e.createElement("span",null,_&&e.createElement("div",{className:"scrollable-table__scroll-button-wrapper"},e.createElement("p",null,"Scroll buttons"),e.createElement(be,{key:"iconButtonLeft",theme:l,icon:"arrow-left",onClick:function(){return w("left")},title:"Scroll left",ariaControls:b,disabled:!p,inverse:n}),e.createElement(be,{key:"iconButtonRight",theme:l,icon:"arrow-right",onClick:function(){return w("right")},title:"Scroll right",ariaControls:b,disabled:!v,inverse:n})),e.createElement("div",{className:c("scrollable-table__table-wrapper","scrollable-table__".concat(d),n&&"scrollable-table__".concat(d,"--inverse")),ref:u,id:"".concat(b),tabIndex:0},e.createElement("span",{dangerouslySetInnerHTML:{__html:t}})))))},exports.SearchCourses=ea,exports.SidebarWrapper=function(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.sidebarElement,n=C.children;return e.createElement("div",{id:"sidebar",className:c("sidebar-wrapper",a&&"theme-".concat(a),!l&&"sidebar-wrapper--no-side-element")},e.createElement("div",{className:"sidebar-wrapper__grid-container"},l&&e.createElement("div",{className:"sidebar-wrapper__sidebar"},l),e.createElement("div",{className:"sidebar-wrapper__children"},n)))},exports.SignPost=function(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0!==l&&l,r=C.items,i=C.fullWidth,o=void 0!==i&&i,s=C.htmlTag,m=void 0===s?"h2":s;return e.createElement("div",{className:c("signpost",o&&"signpost--full-width",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"))},e.createElement("div",{className:"signpost__container"},e.createElement("div",{className:"signpost__grid"},r.map(function(C){return e.createElement("div",{className:"signpost__item",key:C.title},C.tag&&e.createElement("p",{className:"signpost__tag"},C.tag),e.createElement(f,{htmlTag:m,classNames:"signpost__title"},C.title),e.createElement(h,{url:C.linkUrl,title:C.linkLabel,theme:a,inverse:n,externalLink:C.external}))}))))},exports.SingleButton=function(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.inverse,r=void 0!==n&&n,i=C.includeIcon,o=C.link,s=C.fullWidth;return e.createElement("div",{className:c("single-button",l&&"theme-".concat(l),r&&"theme-".concat(l,"--inverse"),s&&"single-button--full-width")},e.createElement("div",{className:"single-button__container"},i?e.createElement(we,a({},o,{inverse:!r})):e.createElement(u,a({},o,{inverse:!r}))))},exports.SkipToContent=function(C){var t=C.theme,a=void 0===t?"uobmain":t;return e.createElement("div",{className:c("skip-to-content",a&&"theme-".concat(a))},e.createElement("a",{className:"skip-to-content__link",href:"#main"},"Skip to main content"))},exports.StaffListingCarousel=function(C){var t,l=C.theme,n=void 0===l?"uobmain":l,r=C.inverse,i=void 0===r||r,o=C.fullWidth,s=void 0!==o&&o,m=C.heading,d=C.headingStyle,u=void 0===d?null:d,p=C.cards,L=C.singleLink,v=C.titleTag,g=void 0===v?"h2":v,E=C.useCarousel,_=void 0===E||E,M=pe("768px"),b=_&&M&&p.length>1||_&&!M&&p.length>2,Z=c(((t={})["staff-listing-carousel__grid"]=!0,t["staff-listing-carousel__grid--single"]=1===p.length,t["staff-listing-carousel__grid--two-cards"]=2===p.length,t["staff-listing-carousel__grid--three-plus-cards"]=p.length>3,t));return e.createElement("section",{className:c("staff-listing-carousel",n&&"theme-".concat(n),i&&"theme-".concat(n,"--inverse"),s&&"staff-listing-carousel--full-width",!_&&"staff-listing-carousel--no-carousel")},e.createElement("div",{className:"staff-listing-carousel__container"},m&&e.createElement(f,{htmlTag:g,classNames:c("staff-listing-carousel__heading","staff-listing-carousel__heading--".concat(g),u&&"staff-listing-carousel__heading--".concat(u))},m),e.createElement("div",{className:"staff-listing-carousel__cards"},!b&&e.createElement("ul",{className:Z},p.map(function(C,t){return e.createElement("li",{className:"related-courses__card-item",key:t},e.createElement(Se,a({},C,{isSingle:1===p.length})))})),b&&e.createElement($e,{theme:n,inverse:i,type:"staff",cards:p,cardTitleTag:"h3"})),1===p.length&&L&&e.createElement(h,{theme:n,url:L.url,title:L.title,inverse:!0})))},exports.StandardListingFilter=function(C){var t=C.theme,l=C.heading,n=C.listingGroups,r=C.onClearFilters,i=C.onViewResults;return e.createElement("div",{className:c("standard-listing-filter",t&&"theme-".concat(t))},e.createElement("p",{className:"standard-listing-filter__heading"},l),e.createElement("ul",{className:"standard-listing-filter__list"},n.map(function(C){var l;return"date"===C.type?e.createElement("li",{className:"standard-listing-filter__item",key:C.name},e.createElement(Ga,a({},C,{theme:t,defaultValue:null!==(l=C.defaultValue)&&void 0!==l?l:"",onChange:C.onChange}))):"radio"===C.type?e.createElement("li",{className:"standard-listing-filter__item",key:C.name},e.createElement(LC,{type:"radio",heading:C.heading,theme:t,showMoreText:Ya(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(LC,{type:"checkbox",heading:C.heading,theme:t,showMoreText:Ya(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(Ua,{heading:C.heading,selectContent:C.selectContent,theme:t})):void 0})),i&&e.createElement("div",{className:"standard-listing-filter__results-button"},e.createElement(u,{label:"View selected results",onClick:i,theme:t})),e.createElement("div",{className:"standard-listing-filter__clear-button"},e.createElement(u,{label:"Clear filters",onClick:r,theme:t,hollow:!0})))},exports.TabsBlock=function(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.inverse,r=void 0!==n&&n,i=C.title,s=C.description,m=C.tabItems,d=C.fullWidth,f=C.htmlTag,L=void 0===f?"h2":f,v=C.removeBottomPadding,_=void 0!==v&&v,M=C.name,b=C.enableHashNavigation,Z=void 0!==b&&b,H=e.useRef(null),w=e.useCallback(function(){return m.findIndex(function(e){return Fa(null!=M?M:"",e.title)===window.location.hash.substring(1)})},[m,M]),V=e.useState(0),y=V[0],N=V[1],k=e.useState(-1),x=k[0],T=k[1],S=pe("1248px");function P(e){if(Z){var C=window.location.href.replace(window.location.hash,""),t=Fa(null!=M?M:"",m[e].title);history.pushState(null,"null",C.concat("#",t))}}function O(e,C){e.preventDefault(),N(C),P(C)}e.useEffect(function(){if(0!==window.location.hash.length){var e=w();e<0||(N(e),T(e))}},[w,N]);var q=function(e){switch(e.key){case"ArrowLeft":case"ArrowUp":case"Left":case"Up":if(0===y)return;N(y-1),T(y-1),P(y-1);break;case"ArrowRight":case"ArrowDown":case"Right":case"Down":if(y>=m.length-1)return;N(y+1),T(y+1),P(y+1);break;case"Home":N(0),T(0),P(0);break;case"End":N(m.length-1),T(m.length-1),P(m.length-1)}};function F(){var e="h3";return i&&"h2"===L?e="h3":i&&"h3"===L&&(e="h4"),e}return e.useEffect(function(){var e=function(e){if(e.preventDefault(),0!==window.location.hash.length){var C=w();C<0||(N(C),T(C))}};return window.addEventListener("hashchange",e),function(){window.removeEventListener("hashchange",e)}},[y,w]),e.createElement(e.Fragment,null,S&&e.createElement(E,{heading:{title:i,description:s,fullWidth:d,htmlTag:L},theme:l,inverse:r,fullWidth:d,accordionItems:m.map(function(e,C){return{key:e.title||C,title:e.title,text:e.content,titleTag:e.titleTag?e.titleTag:F(),primaryButton:e.primaryButton,secondaryButton:e.secondaryButton,link:e.link}})}),e.createElement("div",{className:c("tabs",l&&"theme-".concat(l),r&&"theme-".concat(l,"--inverse"),d&&"tabs--full-width",_&&"tabs--no-bottom-padding"),id:"tabs",ref:H},!S&&e.createElement(e.Fragment,null,e.createElement(g,{theme:l,inverse:r,htmlTag:L,title:i,description:s,fullWidth:d}),e.createElement("div",{className:"tabs__container"},e.createElement("span",null,e.createElement(Ba,{theme:l,inverse:r},m.map(function(C,t){return e.createElement(Ia,{key:t,id:t,theme:l,inverse:r,tabItem:C,tabListTopRef:H,isActive:t===y,hasFocus:t===x,enableHashNavigation:Z,tabsBlockName:M,handleClick:O,handleKeyboardNavigation:q})})),m.map(function(C,t){return e.createElement(Da,{key:t,isActive:t===y,inverse:r,theme:l,title:C.title,tabsBlockName:M,htmlTag:C.titleTag?C.titleTag:F()},C.content&&e.createElement(o,{theme:l,inverse:r,text:C.content}),C.accordionItems&&C.accordionItems.map(function(C){return e.createElement(p,a({key:C.key},C,{inverse:r}))}),(C.primaryButton&&C.primaryButton.text||C.secondaryButton&&C.secondaryButton.text)&&e.createElement("div",{className:"tabs__optional-buttons"},C.primaryButton&&C.primaryButton.text&&e.createElement(u,{label:C.primaryButton.text,url:C.primaryButton.url,theme:l,inverse:!r}),C.secondaryButton&&C.secondaryButton.text&&e.createElement(u,{hollow:!0,label:C.secondaryButton.text,url:C.secondaryButton.url,theme:l,inverse:!r})),C.link&&C.link.text&&e.createElement("div",{className:"tabs__optional-link"},e.createElement(h,{theme:l,inverse:r,url:C.link.url,title:C.link.text})))}))))))},exports.TextWithBackground=function(C){var t=C.text,a=C.theme,l=void 0===a?"uobmain":a,n=C.inverse,r=C.headingLevel,i=C.headingText,s=C.url,m=C.linkTitle,d=C.externalLink,h=C.linkStyle,p=C.fullWidth,f=C.removeBottomPadding,L=void 0!==f&&f,v=r;return e.createElement("div",{className:c("text-with-background",l&&"theme-".concat(l),n&&"theme-".concat(l,"--inverse"),p&&"text-with-background--full-width",L&&"text-with-background--no-bottom-padding")},i&&e.createElement("div",{className:"text-with-background__heading-wrapper"},e.createElement(v,null,i)),e.createElement(o,{text:t,inverse:n,theme:l}),s&&m&&e.createElement("div",{className:"text-with-background__link-wrapper"},e.createElement("div",{className:"text-with-background__link-inner-wrapper"},("primary"===h||"secondary"===h)&&e.createElement(u,{url:s,theme:l,label:m,externalLink:d,hollow:"secondary"===h,inverse:!n}),"paragraph-link"===h&&e.createElement(ta,{url:s,label:m,externalLink:d,theme:l,inverse:n}))))},exports.TopicSelector=function(C){var t=C.topics,a=C.theme,l=void 0===a?"uobmain":a,n=C.titleTag,r=C.heading;return e.createElement("section",{className:c("topics-selector",l&&"theme-".concat(l))},e.createElement("div",{className:"topics-selector__container"},"h2"===n?e.createElement("h2",{className:"topics-selector__heading"},r):e.createElement("h3",{className:"topics-selector__heading"},r),e.createElement("ul",{className:"topics-selector__topics-container"},t.map(function(C,t){return e.createElement("li",{className:"topics-selector__topic",key:t},e.createElement(Aa,{theme:l,label:C.label,url:C.url,externalLink:C.externalLink}))}))))},exports.TwoColumnWrapper=function(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.firstColumn,n=C.secondColumn;return e.createElement("div",{className:c("two-column-wrapper",a&&"theme-".concat(a))},e.createElement("div",{className:"two-column-wrapper__grid-container"},e.createElement("div",{className:c("two-column-wrapper__first-column",!n&&"two-column-wrapper__first-column-centred")},l),n&&e.createElement("div",{className:"two-column-wrapper__second-column"},n)))},exports.VideoCardComponent=function(t){var a=t.theme,l=t.tag,n=t.title,r=t.linkUrl,i=t.linkText,o=t.externalLink,s=t.cards,m={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:c("video-card-component",a&&"theme-".concat(a)),id:"video-card-component"},e.createElement("div",{className:"video-card-component__content"},l&&e.createElement("p",{className:"video-card-component__tag"},l),e.createElement("h2",{className:"video-card-component__title"},n),r&&i&&e.createElement("div",{className:"video-card-component__link"},e.createElement(h,{theme:a,url:r,title:i,inverse:!0,externalLink:o})),e.createElement("div",{className:"video-card-component__carousel"},e.createElement($e,{theme:a,type:"video",inverse:!0,cards:s,cardTitleTag:"h3"})),e.createElement("ul",{className:c("video-card-component__cards-desktop",(!r||!i)&&"video-card-component__cards-desktop--no-link")},s.map(function(t,l){return e.createElement(C.motion.li,{key:l,variants:m,initial:"initial",whileInView:"animate",viewport:{once:!0,amount:.2},custom:l},l<=1?e.createElement("div",{className:"video-card-component__lines video-card-component__lines--".concat(l)},1===l&&e.createElement("svg",{width:"406",height:"128",viewBox:"0 0 406 128",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M1 1L123 29L210 127.5",stroke:"black"}),e.createElement("path",{d:"M13 112L123 29L405 51",stroke:"black"}))):"",e.createElement(Ve,{theme:a,image:{src:{default:t.image.src.default,medium:t.image.src.medium,small:t.image.src.small},altText:""},title:t.title,youtubeId:t.youtubeId,buttonLabel:t.buttonLabel,titleTag:"h3"}))}))))},exports.VideoEmbed=function(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.inverse,r=void 0!==n&&n,i=C.imageSrc,o=C.videoUrl,s=C.videoId,m=C.heading,d=C.audioDescribedVideoId,u=C.audioDescribedVideoUrl,h=C.transcript,f=C.fullWidth,L=void 0!==f&&f,v=C.videoCaption,E=C.videoCredit,_=e.useState(!1),M=_[0],b=_[1];return e.createElement("div",{className:c("video-embed",L&&"video-embed--full-width",l&&"theme-".concat(l),r&&"theme-".concat(l,"--inverse"))},m&&e.createElement(g,a({},m,{theme:l,inverse:r})),e.createElement("div",{className:"video-embed__grid"},e.createElement("div",{className:"video-embed__content-wrapper"},e.createElement(Qa,{theme:l,imageSrc:i,videoUrl:M?o:u,videoId:M?d:s}),(v||E)&&e.createElement("div",{className:"video-embed__caption-wrapper"},v&&e.createElement("p",{className:"video-embed__caption"},v),E&&e.createElement("p",{className:"video-embed__credit"},E)),(d||u)&&(M?e.createElement("button",{className:"video-embed__audio-described-button",onClick:function(){return b(!1)}},"Non-audio described version"):e.createElement("button",{className:"video-embed__audio-described-button",onClick:function(){return b(!0)}},"Audio described version")),h&&e.createElement("div",{className:"video-embed__transcript"},e.createElement(p,{titleTag:"h3",theme:l,title:"Transcript",text:h,inverse:r})))))};
23
+ function gt(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 Et(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 _t(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 Mt(e){for(var C=1;C<arguments.length;C++){var t=null!=arguments[C]?arguments[C]:{};C%2?_t(Object(t),!0).forEach(function(C){Et(e,C,t[C])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_t(Object(t)).forEach(function(C){Object.defineProperty(e,C,Object.getOwnPropertyDescriptor(t,C))})}return e}function bt(e){return function(e){if(Array.isArray(e))return gt(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 gt(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)?gt(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 Zt,Ht,wt=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)},Vt=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)},yt=function(e){return"Tab"===(null==e?void 0:e.key)||9===(null==e?void 0:e.keyCode)},Nt=function(e){return yt(e)&&!e.shiftKey},kt=function(e){return yt(e)&&e.shiftKey},xt=function(e){return setTimeout(e,0)},Tt=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},St=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},Pt=[],Ot=gC(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)||Pt,n=Mt({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Nt,isKeyBackward:kt},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,bt(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&&!Lt(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=ut(e,n.tabbableOptions),t=ht(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 pt(e)}),r=t.slice().reverse().find(function(e){return pt(e)}),i=!!C.find(function(e){return at(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 pt(e)}):t.slice(0,t.indexOf(e)).reverse().find(function(e){return pt(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||St(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||Lt(C,n.tabbableOptions)&&!pt(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=at(C)>=0?p.lastTabbableNode:p.lastDomTabbableNode}else yt(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||Lt(C,n.tabbableOptions)&&!pt(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=at(C)>=0?v.firstTabbableNode:v.firstDomTabbableNode}else yt(t)||(r=d.nextTabbableNode(C))}}else r=o("fallbackFocus");return r},f=function(e){var C=St(e);i(C,e)>=0||(Tt(n.clickOutsideDeactivates,e)?t.deactivate({returnFocus:n.returnFocusOnDeactivate}):Tt(n.allowOutsideClick,e)||e.preventDefault())},L=function(e){var C=St(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(at(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 at(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&&(yt(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===Tt(n.escapeDeactivates,e)||(e.preventDefault(),t.deactivate())},E=function(e){var C=St(e);i(C,e)>=0||Tt(n.clickOutsideDeactivates,e)||Tt(n.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},_=function(){if(c.active)return wt(l,t),c.delayInitialFocusTimer=n.delayInitialFocus?xt(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=Mt({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(),Vt(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(){xt(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}})),qt=gC(vt);var Ft=function(){if(Ht)return Zt;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+""}Ht=1;var i=e,o=UC(),s=Ot.createFocusTrap,m=qt.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},Zt=d}(),Bt=vC(Ft);t();var Dt=function(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.onClick,n=C.label,r=C.level,i=C.autoFocus,o=void 0!==i&&i;return e.createElement("button",{className:c("nav-link",a&&"theme-".concat(a),"nav-link--".concat(r)),onClick:l,autoFocus:o},e.createElement("span",{className:"nav-link__label"},n,e.createElement("span",{className:"nav-link__icon"},e.createElement(s,{icon:"chevron-right",theme:a,ariaHidden:!0}))))};t();var It=function(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.url,n=C.label,r=C.level,i=C.autoFocus,o=void 0!==i&&i,s=C.externalLink,m=void 0!==s&&s,d=e.useRef(null);return e.useEffect(function(){o&&d.current&&d.current.focus()},[o]),e.createElement("a",{className:c("page-link",a&&"theme-".concat(a),"page-link--".concat(r)),href:l,ref:d,target:m?"_blank":"_self",rel:m?"noopener noreferrer":""},n)};function At(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.inverse,r=void 0===n||n,i=C.image,o=C.tag,m=C.title,d=C.href,u=C.linkText,p=C.description,f=C.type;return e.createElement("div",{className:c("card-menu",f&&"card-menu--".concat(f),l&&"theme-".concat(l),r&&"theme-".concat(l,"--inverse"))},e.createElement("figure",{className:"card-menu__figure"},e.createElement("div",{className:"card-menu__image-wrapper"},e.createElement(_,a({},i,{altText:"",loadingAttr:"lazy"}))),e.createElement("figcaption",{className:"card-menu__text-content"},"secondary"===f&&e.createElement(e.Fragment,null,e.createElement("p",{className:"card-menu__tag card-menu__tag"},o),e.createElement("a",{className:"card-menu__link",href:d},e.createElement("h2",{className:"card-menu__title"},m))),"primary"===f?e.createElement(e.Fragment,null,e.createElement("h2",{className:"card-menu__title"},m),e.createElement("p",{className:"card-menu__description"},p),e.createElement("div",{className:"card-menu__cta"},e.createElement(h,{theme:l,url:d,title:u||m}))):e.createElement("div",{className:"card-menu__arrow"},e.createElement(s,{icon:"arrow-right",theme:l,ariaHidden:!0})))))}t();var Rt=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(Dt,{label:C.label,onClick:function(){return l(t)},key:C.label,theme:c,level:"level-one",autoFocus:0===t}):e.createElement(It,{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(Dt,{label:C.label,onClick:function(){return l(a+t.length)},key:C.label,theme:c,level:"level-two"}):e.createElement(It,{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(At,{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}))})))};t();var $t=function(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0!==l&&l,r=C.label,i=C.onClick;return e.createElement("button",{className:c("reverse-link-with-arrow",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse")),onClick:i},e.createElement("span",{className:"reverse-link-with-arrow__title"},e.createElement("span",{className:"reverse-link-with-arrow__icon"},e.createElement(s,{icon:"arrow-left",theme:a,inverse:n,ariaHidden:!0})),r))},jt=function(C){var t=C.headingLink,a=C.onClickGoBack,l=C.onClickNavLink,n=C.theme,r=C.backLinkLabel;return e.createElement("div",{className:"header__nested-menu"},e.createElement($t,{label:r,onClick:a,theme:n}),e.createElement("div",{className:"header__heading-link"},e.createElement(It,{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:c("header__link-list",t.description&&"header__link-list--with-desc")},t.children.map(function(C,t){return C.children?e.createElement(Dt,{label:C.label,onClick:function(){return l(t)},key:C.label,theme:n,level:"level-two"}):e.createElement(It,{label:C.label,url:C.url,key:C.label,theme:n,level:"level-two",externalLink:C.externalLink})}))))};t();var zt=function(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0!==l&&l,r=C.fieldName,i=C.hiddenLabel,o=void 0!==i&&i,s=C.defaultValue,m=C.placeholder,d=C.required,u=void 0!==d&&d,h=C.onChange;return e.createElement("div",{className:c("form-input",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"))},e.createElement("label",{htmlFor:r,className:c("form-input__label",o&&"sr-only")},"Select ",r),e.createElement("input",{className:"form-input__input",id:r,name:r,type:"text",required:u,defaultValue:s,placeholder:m,onChange:h}))},Wt=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,h=C.recommendedLinks,p=C.recommendedLinkTitle;return e.createElement("div",{className:"header-search"},m&&d&&e.createElement("div",{className:"header-search__back-link"},e.createElement($t,{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(zt,{theme:o,inverse:!1,fieldName:"search",hiddenLabel:!0,placeholder:n,onChange:r}),e.createElement(be,{theme:o,inverse:!s,title:"Search",icon:"search",isSubmit:!0})),e.createElement(u,{theme:o,inverse:!s,label:"Search",isSubmit:!0}))),h&&e.createElement("div",{className:"header-search__recommended-links-wrapper"},p&&e.createElement("h3",{className:"header-search__recommended-link-title"},p),e.createElement("ul",{className:"header-search__recommended-links"},h.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 Ut(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.label,n=C.url,r=C.externalLink,i=C.active,o=void 0!==i&&i;return e.createElement("a",{className:c("campus-selector-link",a&&"theme-".concat(a),o&&"campus-selector-link--active"),href:n,target:r?"_blank":"_self",rel:"noreferrer"},l)}function Gt(C){var t=C.active,a=C.theme,l=C.ukUrl,n=C.dubaiUrl,r=C.mobile;return e.createElement("div",{className:c("campus-selector",a&&"theme-".concat(a),r&&"campus-selector--mobile",!r&&"campus-selector--desktop")},e.createElement("div",{className:"campus-selector__container"},e.createElement("span",{className:"campus-selector__label"},"Select campus:"),r?e.createElement(e.Fragment,null,e.createElement(u,{label:"UK",theme:a,inverse:!0,url:l,hollow:"uk"!==t}),e.createElement(u,{label:"Dubai",theme:a,inverse:!0,url:n,hollow:"dubai"!==t})):e.createElement(e.Fragment,null,e.createElement(Ut,{label:"UK",theme:a,url:l,active:"uk"===t}),e.createElement(Ut,{label:"Dubai",theme:a,url:n,active:"dubai"===t}))))}t(),t(),t();var Kt={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 Yt(t){var a,l,n=t.isMobile,c=t.isTablet,r=t.image,i=n?Kt.mobile:c?Kt.tablet:Kt.desktop,o=e.useRef(null);return e.useEffect(function(){var e;o.current&&o.current.setAttribute("fetchpriority",null!==(e=r.fetchPriority)&&void 0!==e?e:"auto")}),e.createElement(e.Fragment,null,e.createElement(C.motion.div,{className:"hero__polygon-image-wrapper"},e.createElement(C.motion.img,{ref:o,className:"hero__image",src:r.src.default,srcSet:"".concat(null!==(a=r.src.small)&&void 0!==a?a:r.src.default," 576w, ").concat(null!==(l=r.src.medium)&&void 0!==l?l:r.src.default," 992w, ").concat(r.src.default," 1440w"),alt:r.alt,fetchPriority:r.fetchPriority,animate:{clipPath:i.image},transition:{type:"tween"}}),e.createElement(C.motion.div,{key:Math.random(),className:"hero__polygon-image-background",animate:{opacity:1,clipPath:i.background},transition:{type:"tween"},initial:{opacity:0}})))}t();var Jt={initial:{pathLength:0},animate:{pathLength:1},transition:{delay:.5,duration:1}};function Qt(t){var l=t.isMobile,n=t.isTablet;return l?e.createElement(e.Fragment,null,e.createElement(C.motion.div,{className:"hero__line",animate:{left:"75%",bottom:"30%",transform:"rotate(10deg)"},initial:!1},e.createElement("svg",{width:"140",height:"2",viewBox:"0 0 140 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(C.motion.path,a({d:"M0 1H140"},Jt)))),e.createElement(C.motion.div,{className:"hero__line",animate:{left:"75%",bottom:"30%",transform:"rotate(-15deg)"},initial:!1},e.createElement("svg",{width:"140",height:"2",viewBox:"0 0 140 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(C.motion.path,a({d:"M0 1H140"},Jt))))):n?e.createElement(e.Fragment,null,e.createElement(C.motion.div,{className:"hero__line",animate:{left:"calc(30% + 1px)",top:"calc(60% - 3px)",transform:"rotate(161deg)"},initial:!1},e.createElement("svg",{width:"120",height:"2",viewBox:"0 0 120 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(C.motion.path,a({d:"M0 1H140"},Jt)))),e.createElement(C.motion.div,{className:"hero__line",animate:{left:"30%",top:"calc(60% - 1px)",transform:"rotate(26deg)"},initial:!1},e.createElement("svg",{width:"120",height:"2",viewBox:"0 0 120 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(C.motion.path,a({d:"M0 1H140"},Jt))))):e.createElement(e.Fragment,null,e.createElement(C.motion.div,{className:"hero__line",animate:{left:"10%",top:"calc(65% - 3px)",transform:"rotate(118deg)"},initial:!1},e.createElement("svg",{width:"140",height:"2",viewBox:"0 0 140 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(C.motion.path,a({d:"M0 1H140"},Jt)))),e.createElement(C.motion.div,{className:"hero__line",animate:{left:"10%",top:"calc(65% - 3px)",transform:"rotate(41deg)"},initial:!1},e.createElement("svg",{width:"140",height:"2",viewBox:"0 0 140 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(C.motion.path,a({d:"M0 1H140"},Jt)))))}t();var Xt=function(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0!==l&&l,r=C.fieldName,i=C.selectOptions,o=C.defaultValue,m=void 0===o?"all":o,d=C.hiddenLabel,u=void 0!==d&&d,h=C.customLabel,p=C.title,f=C.onChange,L=C.value;return e.createElement("div",{className:c("form-select",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"))},h?e.createElement("label",{htmlFor:r,className:c("form-select__label",u&&"sr-only")},h):e.createElement("label",{htmlFor:r,className:c("form-select__label",u&&"sr-only")},"Select ",r),e.createElement("div",{className:"form-select__select-wrapper"},e.createElement("select",{className:"form-select__select",defaultValue:m,value:L,id:r,name:r,onChange:f},e.createElement("option",{value:"all"},p),i&&i.map(function(C,t){return e.createElement("option",{value:C.value,key:t},C.label)})),e.createElement("div",{className:"form-select__icon"},e.createElement(s,{icon:"arrow-down",theme:a,inverse:n}))))};function ea(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0!==l&&l,r=C.title,i=C.description,o=C.defaultSearchTerm,s=C.placeholder,m=C.filterTitle,d=C.filterFieldName,h=C.filterOptions,p=C.defaultFilter,f=void 0===p?"all":p,v=C.wrapped,g=void 0!==v&&v,E=C.fullWidth,_=void 0!==E&&E,M=C.onGrid,b=void 0!==M&&M,Z=C.titleTag,H=void 0===Z?"h2":Z,w=C.formSubmitHandler,V=C.filterChangeHandler,y=C.searchTermChangeHandler,N=H;return e.createElement("div",{className:c("search-course",_&&"search-course--full-width",b&&"search-course--on-grid",g&&"search-course--wrapped",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"),!d&&"search-course--no-filter")},e.createElement("div",{className:"search-course__container"},r&&e.createElement(N,{className:"search-course__title"},r),i&&e.createElement("div",{className:"search-course__description"},e.createElement(L,{text:i,theme:a,inverse:n})),e.createElement("form",{className:"search-course__form",method:"post",onSubmit:w},e.createElement("div",{className:"search-course__search-wrapper"},e.createElement(zt,{theme:a,inverse:n,fieldName:"search",hiddenLabel:!0,defaultValue:o,placeholder:s,onChange:y}),e.createElement(be,{theme:a,inverse:!n,title:"Search",icon:"search",isSubmit:!0}),g&&e.createElement(u,{theme:a,inverse:!n,label:"Search",isSubmit:!0})),d&&m&&h&&e.createElement(Xt,{theme:a,inverse:n,title:m,fieldName:d,selectOptions:h,defaultValue:f,hiddenLabel:!0,onChange:V}),!g&&e.createElement(u,{theme:a,inverse:!n,label:"Search",isSubmit:!0}))))}function Ca(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=C.label,r=C.icons;return e.createElement("div",{className:c("share-buttons",a&&"theme-".concat(a),l&&"theme-".concat(a,"--inverse"))},n&&e.createElement("div",{className:"share-buttons__label"},n),r&&e.createElement("ul",{className:"share-buttons__icon-wrapper"},r.map(function(C,t){return e.createElement("li",{className:"share-buttons__icon",key:t},e.createElement(be,{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,r=C.label,i=C.url,o=C.externalLink;return e.createElement("a",{className:c("paragraph-link",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse")),href:i,target:o?"_blank":"_self",rel:"noreferrer"},r)}function aa(C){var t=C.theme,a=C.inverse,l=C.buttonLabel,n=C.hollow,r=C.modalChildren,i=e.useState(!1),o=i[0],s=i[1],m=function(){s(!1),document.body.classList.remove("lock-scroll")};return e.createElement("div",{className:c("modal-cta-button",t&&"theme-".concat(t),a&&"theme-".concat(t,"--inverse"))},e.createElement(u,{inverse:a,label:l,onClick:function(){o?m():(s(!0),document.body.classList.add("lock-scroll"))},theme:t,hollow:n}),o&&e.createElement(He,{centred:!0,theme:t,closeModal:m,isOpen:o},e.createElement(je,{className:"modal-cta-button__embed-wrapper"},r)))}function la(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0!==l&&l,r=C.url,i=C.title,o=C.externalLink,m=void 0!==o&&o,d=C.iconRight,u=C.iconLeft,h=C.ariaLabel,p=C.onClick;return e.createElement("a",{className:c("link-with-icon",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse")),href:r,target:m?"_blank":"_self",rel:m?"noopener noreferrer":"","aria-label":h,onClick:p||void 0},u&&e.createElement("span",{className:"link-with-icon__icon link-with-icon__icon--left"},e.createElement(s,{icon:u.icon,theme:a,inverse:n,ariaHidden:!0})),e.createElement("span",{className:"link-with-icon__title"},i),d&&e.createElement("span",{className:"link-with-icon__icon link-with-icon__icon--right"},e.createElement(s,{icon:d.icon,theme:a,inverse:n,ariaHidden:!0})))}t(),t(),t(),t(),t(),t(),t();var na=function(e,C){var t;e.preventDefault(),null===(t=document.querySelector(C))||void 0===t||t.scrollIntoView({behavior:"smooth"})};function ca(C){var t=C.title,l=C.value,n=C.link;return e.createElement("article",{className:"course-tile"},e.createElement("div",{className:"course-tile__top"},e.createElement("div",{className:"course-tile__title"},t),e.createElement("div",{className:"course-tile__value"},l)),n&&e.createElement("div",{className:"course-tile__link-wrapper"},e.createElement(la,a({},n,{inverse:!0,onClick:function(e){return na(e,n.url||"#")}}))))}function ra(C){var t=C.title,l=C.selectProps;return e.createElement("article",{className:"course-tile-select"},e.createElement("div",{className:"course-tile-select__top"},e.createElement("div",{className:"course-tile-select__title"},t),e.createElement(Xt,a({},l,{inverse:!0}))))}function ia(C){var t=C.title,l=C.rank,n=C.rankText,c=C.link;return e.createElement("article",{className:"course-tile-ranking"},e.createElement("div",{className:"course-tile-ranking__top"},e.createElement("div",{className:"course-tile-ranking__title"},t),e.createElement("div",{className:"course-tile-ranking__rank"},l),e.createElement("div",{className:"course-tile-ranking__rank-text"},n)),c&&e.createElement("div",{className:"course-tile-ranking__link-wrapper"},e.createElement(la,a({},c,{inverse:!0,onClick:function(e){return na(e,c.url||"#")}}))))}function oa(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.inverse,r=void 0===n||n,i=C.topPadding,o=void 0!==i&&i,s=C.selectorProps;return e.createElement("div",{className:c("location-selector",l&&"theme-".concat(l),r&&"theme-".concat(l,"--inverse"))},e.createElement("div",{className:c("location-selector__container",o&&"location-selector__container--padding-top")},e.createElement(Xt,a({},s,{inverse:r}))))}t();var sa={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}},ma={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))"}},da={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}},ua={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%"}},ha={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}},pa={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%"}},fa={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)"}},La={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)"}},va={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)"}},ga={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)"}},Ea={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)"}},_a={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)"}},Ma={initial:{pathLength:0},animate:{pathLength:1},transition:{delay:.5,duration:1}};function ba(t){var l=t.isMobile,n=t.isTablet,c=t.activeVariant;return l?e.createElement(e.Fragment,null,e.createElement(C.motion.div,{className:"hero-carousel__line",variants:fa,animate:c,initial:!1},e.createElement("svg",{width:"140",height:"2",viewBox:"0 0 140 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(C.motion.path,a({d:"M0 1H140",stroke:"black"},Ma)))),e.createElement(C.motion.div,{className:"hero-carousel__line",variants:La,animate:c,initial:!1},e.createElement("svg",{width:"140",height:"2",viewBox:"0 0 140 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(C.motion.path,a({d:"M0 1H140",stroke:"black"},Ma))))):n?e.createElement(e.Fragment,null,e.createElement(C.motion.div,{className:"hero-carousel__line",variants:va,animate:c,initial:!1},e.createElement("svg",{width:"260",height:"2",viewBox:"0 0 260 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(C.motion.path,a({d:"M0 1H260",stroke:"black"},Ma)))),e.createElement(C.motion.div,{className:"hero-carousel__line",variants:ga,animate:c,initial:!1},e.createElement("svg",{width:"260",height:"2",viewBox:"0 0 260 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(C.motion.path,a({d:"M0 1H260",stroke:"black"},Ma))))):e.createElement(e.Fragment,null,e.createElement(C.motion.div,{className:"hero-carousel__line",variants:Ea,animate:c,initial:!1},e.createElement("svg",{width:"360",height:"2",viewBox:"0 0 360 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(C.motion.path,a({d:"M0 1H360",stroke:"black"},Ma)))),e.createElement(C.motion.div,{className:"hero-carousel__line",variants:_a,animate:c,initial:!1},e.createElement("svg",{width:"360",height:"2",viewBox:"0 0 360 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(C.motion.path,a({d:"M0 1H360",stroke:"black"},Ma)))))}function Za(t){var a,l,n=t.isMobile,c=t.isTablet,r=t.activeVariant,i=t.imageSrc,o=t.imageAlt,s=t.imageFetchPriority,m=e.useRef(null);return e.useEffect(function(){m.current&&m.current.setAttribute("fetchpriority",null!=s?s:"high")}),e.createElement(e.Fragment,null,e.createElement(C.AnimatePresence,null,e.createElement(C.motion.div,{className:"hero-carousel__image-wrapper",transition:{delayChildren:1}},e.createElement(C.motion.img,{ref:m,className:"hero-carousel__image",src:i.default,srcSet:"".concat(null!==(a=i.small)&&void 0!==a?a:i.default," 576w, ").concat(null!==(l=i.medium)&&void 0!==l?l:i.default," 992w, ").concat(i.default," 1440w"),alt:o,variants:n?ma:c?ua:pa,animate:r,initial:{clipPath:"polygon(0 0, 0 0, 0 0, 0 0)"},transition:{type:"tween"}}),e.createElement(C.motion.div,{key:Math.random(),className:"hero-carousel__image-background",variants:n?sa:c?da:ha,animate:["visible",r],exit:{backgroundColor:"rgba(255, 255, 255, 0)"},transition:{type:"tween"},initial:{opacity:0,clipPath:"polygon(1% 1%, 1% 1%, 1% 1%, 1% 1%)"}}))))}var Ha=e.forwardRef(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(h,{url:r,title:i,theme:a,inverse:!0,onKeyDown:o,ref:t})))});function wa(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.heading,r=void 0===n?"Page contents":n,i=C.links,o=C.buttonLinks,s=C.locationDetails;return e.createElement("div",{className:c("in-page-navigation-links",l&&"theme-".concat(l))},e.createElement("h2",{className:"in-page-navigation-links__heading"},r),s&&e.createElement(oa,a({},s,{inverse:!0})),e.createElement("nav",null,e.createElement("ul",{className:"in-page-navigation-links__link-container"},i.map(function(C){return e.createElement("li",{className:c("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,o&&o.map(function(C,t){return C.externalLink?e.createElement("li",{className:"in-page-navigation-links__link-button",key:t},e.createElement(we,{theme:l,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(u,{theme:l,label:C.label,hollow:t%2!=0,url:C.url}))})))}function Va(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.heading,n=C.cards,r=C.link;return e.createElement("div",{className:c("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(qe,{theme:a,title:C.title,href:C.href,titleTag:"h3",publishDate:C.publishDate}))})),r&&e.createElement(h,{theme:a,inverse:!0,url:r.url,title:r.title}))}function ya(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.type,c=C.image,r=C.title,i=C.url,o=C.description,s=C.details,m=C.showCategory,d=void 0!==m&&m;return e.createElement(e.Fragment,null,c&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(_,a({},c))),e.createElement("div",{className:"listing-result-card__text"},d&&e.createElement("p",{className:"listing-result-card__category"},n),e.createElement("h2",null,e.createElement("a",{className:"listing-result-card__title",href:i},r)),o&&e.createElement("p",{className:"listing-result-card__description"},o),s.length>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(Ie,{details:s,theme:l}))))}function Na(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.type,c=C.image,r=C.title,i=C.titleTag,o=void 0===i?"h2":i,s=C.url,m=C.description,d=C.supervisors,u=C.department,h=C.details,p=C.showCategory,L=void 0!==p&&p;return e.createElement(e.Fragment,null,c&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(_,a({},c))),e.createElement("div",{className:"listing-result-card__text"},L&&e.createElement("p",{className:"listing-result-card__category"},n),e.createElement(f,{htmlTag:"h3"===o?"h3":"h2"},e.createElement("a",{className:"listing-result-card__title",href:s},r)),(d||u)&&e.createElement("div",{className:"listing-result-card__course-info"},d&&e.createElement("p",{className:"listing-result-card__supervisors"},"Supervisors: ",d),u&&e.createElement("p",{className:"listing-result-card__department"},u)),m&&e.createElement("p",{className:"listing-result-card__description"},m),h.length>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(Ie,{details:h,theme:l}))))}function ka(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.inverse,c=void 0===n||n,r=C.type,i=C.image,o=C.title,s=C.url,m=C.description,d=C.details,u=C.showCategory,h=void 0!==u&&u,p=C.cardDescriptionIsRichText,v=void 0!==p&&p,g=C.titleTag,E=void 0===g?"h2":g;return e.createElement(e.Fragment,null,i&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(_,a({},i))),e.createElement("div",{className:"listing-result-card__text"},h&&e.createElement("p",{className:"listing-result-card__category"},r),e.createElement(f,{htmlTag:E},e.createElement("a",{className:"listing-result-card__title",href:s},o)),m&&!v&&e.createElement("p",{className:"listing-result-card__description"},m),m&&v&&e.createElement(L,{theme:l,inverse:c,text:m}),d.length>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(Ie,{details:d,theme:l}))))}function xa(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.type,c=C.image,r=C.title,i=C.url,o=C.description,s=C.author,m=C.details,d=C.showCategory,u=void 0!==d&&d;return e.createElement(e.Fragment,null,c&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(_,a({},c))),e.createElement("div",{className:"listing-result-card__text"},u&&e.createElement("p",{className:"listing-result-card__category"},n),e.createElement("h2",null,e.createElement("a",{className:"listing-result-card__title",href:i},r)),s&&e.createElement("p",{className:"listing-result-card__author"},"by ",s),o&&e.createElement("p",{className:"listing-result-card__description"},o),m.length>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(Ie,{details:m,theme:l}))))}function Ta(C){var t=C.image,l=C.title,n=C.url,c=C.description;return e.createElement(e.Fragment,null,t&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(_,a({},t))),e.createElement("div",{className:"listing-result-card__text"},e.createElement("h2",null,e.createElement("a",{className:"listing-result-card__title",href:n},l)),c&&e.createElement("p",{className:"listing-result-card__description"},c)))}function Sa(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.type,c=C.image,r=C.title,i=C.url,o=C.description,s=C.jobTitle,m=C.department,d=C.details,u=C.showCategory,h=void 0!==u&&u;return e.createElement(e.Fragment,null,c&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(_,a({},c))),e.createElement("div",{className:"listing-result-card__text"},h&&e.createElement("p",{className:"listing-result-card__category"},n),e.createElement("h2",null,e.createElement("a",{className:"listing-result-card__title",href:i},r)),(s||m)&&e.createElement("div",{className:"listing-result-card__staff-info"},s&&e.createElement("p",{className:"listing-result-card__job-title"},s),m&&e.createElement("p",{className:"listing-result-card__department"},m)),o&&e.createElement("p",{className:"listing-result-card__description"},o),d.length>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(Ie,{details:d,theme:l}))))}function Pa(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.image,c=C.title,r=C.url,i=C.description,o=C.jobTitle,s=C.department,m=C.details;return e.createElement(e.Fragment,null,n&&e.createElement("div",{className:"listing-result-card__image"},e.createElement(_,a({},n))),e.createElement("div",{className:"listing-result-card__text"},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.length>120?"".concat(i.slice(0,120),"..."):i),m.length>0&&e.createElement("div",{className:"listing-result-card__details"},e.createElement(Ie,{details:m,theme:l}))))}function Oa(C){return e.createElement("article",{className:c("listing-result-card",C.theme&&"theme-".concat(C.theme))},"page"===C.type&&e.createElement(Ta,a({},C)),"course"===C.type&&e.createElement(Na,a({},C)),"accomodation"===C.type&&e.createElement(ya,a({},C)),"event"===C.type&&e.createElement(ka,a({},C)),"news"===C.type&&e.createElement(xa,a({},C)),"staff"===C.type&&e.createElement(Sa,a({},C)),"profile"===C.type&&e.createElement(Pa,a({},C)))}function qa(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.numOfPages,n=C.onClick,r=C.currentPage,i=pe("768px"),o=e.createElement("li",null,e.createElement("span",{className:"pagination__ellipse"},"..."));return i&&l<=4?e.createElement(e.Fragment,null,Array(l).fill(0).map(function(C,t){return e.createElement("li",{className:c("pagination__number",r===t&&"pagination__number--selected"),key:t},e.createElement(u,{label:(t+1).toString(),onClick:function(){return n(t)},hollow:!(r===t),theme:a}))})):i&&l>4?e.createElement(e.Fragment,null,r>0&&e.createElement("li",{key:0,className:"pagination__number"},e.createElement(u,{label:"1",onClick:function(){return n(0)},theme:a,hollow:!0})),r+1>=3&&o,e.createElement("li",{key:r,className:"pagination__number pagination__number--selected"},e.createElement(u,{label:"".concat(r+1," "),onClick:function(){return n(r)},theme:a})),r+1<l-1&&o,r!==l-1&&e.createElement("li",{key:l-1,className:"pagination__number"},e.createElement(u,{label:l.toString(),onClick:function(){return n(l-1)},theme:a,hollow:!0}))):!i&&l<=6?e.createElement(e.Fragment,null,Array(l).fill(0).map(function(C,t){return e.createElement("li",{key:t,className:c("pagination__number",r===t&&"pagination__number--selected","test")},e.createElement(u,{label:(t+1).toString(),onClick:function(){return n(t)},hollow:!(r===t),theme:a}))})):!i&&l>6?e.createElement(e.Fragment,null,r>0&&e.createElement("li",{key:0,className:"pagination__number start"},e.createElement(u,{label:"1",onClick:function(){return n(0)},theme:a,hollow:!0})),r+1>=4&&o,r>1&&e.createElement("li",{key:r-1,className:"pagination__number before"},e.createElement(u,{label:(r>=1?r:r-1).toString(),onClick:function(){return n(r-1)},theme:a,hollow:!0})),e.createElement("li",{key:r,className:"pagination__number pagination__number--selected current"},e.createElement(u,{label:"".concat(r+1),onClick:function(){return n(r)},theme:a})),r+1<l-1&&e.createElement("li",{key:r+1,className:"pagination__number after"},e.createElement(u,{label:"".concat(r+2),onClick:function(){return n(r+1)},theme:a,hollow:!0})),r+1<l-2&&o,r+1!==l&&e.createElement("li",{key:l-1,className:"pagination__number end"},e.createElement(u,{label:"".concat(l),onClick:function(){return n(l-1)},theme:a,hollow:!0}))):e.createElement(e.Fragment,null)}function Fa(e,C){return i("".concat(null!=e?e:""," ").concat(C))}function Ba(C){var t=C.children,a=C.theme,l=void 0===a?"uobmain":a,n=C.inverse,r=void 0!==n&&n;return e.createElement("div",{className:c("tabs__list__container",l&&"theme-".concat(l),r&&"theme-".concat(l,"--inverse"))},e.createElement("ul",{className:"tabs__list",role:"tablist"},t))}function Da(C){var t=C.title,a=C.htmlTag,l=void 0===a?"h3":a,n=C.theme,r=void 0===n?"uobmain":n,i=C.inverse,o=void 0!==i&&i,s=C.isActive,m=C.children,d=C.tabsBlockName;if(!s)return null;var u=Fa(null!=d?d:"",t);return e.createElement("div",{id:d,className:c("tabs__panel",r&&"theme-".concat(r),o&&"theme-".concat(r,"--inverse")),role:"tabpanel","aria-labelledby":"tab_"+u},e.createElement(f,{htmlTag:l,classNames:"tabs__panel-title"},t),m)}function Ia(C){var t=C.id,a=C.theme,l=void 0===a?"uobmain":a,n=C.inverse,r=void 0!==n&&n,i=C.tabItem,o=C.isActive,s=C.hasFocus,m=C.tabsBlockName,d=C.handleClick,u=C.handleKeyboardNavigation,h=e.useRef(null);e.useEffect(function(){o&&s&&h.current&&(h.current.focus(),window.matchMedia("min-width: 768px").matches&&h.current.scrollIntoView())});var p=Fa(null!=m?m:"",i.title);return e.createElement("li",{className:"tabs__list-item",role:"presentation"},e.createElement("button",{className:c("tabs__tab",l&&"theme-".concat(l),r&&"theme-".concat(l,"--inverse"),o&&"active"),onClick:function(e){return d(e,t)},onKeyDown:u,ref:h,id:"tab_"+p,role:"tab","aria-controls":p,"aria-selected":o?"true":"false",tabIndex:o?0:-1,type:"button"},i.title))}function Aa(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.label,n=C.url,r=C.externalLink;return e.createElement("a",{className:c("pill",a&&"theme-".concat(a)),href:n,target:r?"_blank":"_self",rel:r?"noopener noreferrer":""},l)}Ha.displayName="HeroCardContent",t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t(),t();var Ra,$a={exports:{}};var ja,za=(Ra||(Ra=1,ja=$a,function(e,C){ja.exports=C()}(0,function(){var e=[],C=[],t={},a={},l={};function n(e){return"string"==typeof e?new RegExp("^"+e+"$","i"):e}function 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})),$a.exports),Wa=vC(za);function Ua(C){var t=C.theme,l=C.heading,n=C.selectContent,r=C.defaultIsOpen,i=void 0!==r&&r;n&&(i=!!n.defaultValue||i);var o=e.useState(i),m=o[0],d=o[1];return e.createElement("fieldset",{className:c("filter-accordion-select",m&&"filter-accordion-select--open",t&&"theme-".concat(t))},e.createElement("legend",{className:"filter-accordion-select__legend"},e.createElement("button",{className:"filter-accordion-select__button",onClick:function(){return d(function(e){return!e})},"aria-expanded":m,"aria-controls":l.replace(" ","")},l,e.createElement(s,{icon:"chevron-down",theme:t,inverse:!0,ariaHidden:!0}))),m&&e.createElement("div",{className:"filter-accordion-select__select-wrapper"},e.createElement(Xt,a({theme:t,inverse:!0},n))))}function Ga(C){var t=C.theme,a=C.name,l=C.id,n=C.label,r=C.defaultValue,i=C.onChange;return e.createElement("div",{className:c("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:r,onChange:i,name:a,id:l}))}t(),t(),t();var Ka,Ya=function(e){var C=e.split(" "),t=C[C.length-1];return C[C.length-1]=Wa(t),C.join(" ")};function Ja(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.imageSrc,n=C.onClick;return e.createElement("div",{className:c("video-placeholder",a&&"theme-".concat(a))},e.createElement(_,{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 Qa(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.imageSrc,n=C.videoUrl,r=C.videoId,i=e.useState(!1),o=i[0],s=i[1];return e.createElement("div",{className:c("video-with-placeholder",a&&"theme-".concat(a))},o?e.createElement(Me,{url:n,id:r,autoPlay:!0,theme:a}):e.createElement(Ja,{imageSrc:l,onClick:function(){return s(!0)},theme:a}))}t(),t(),t(),t(),t(),t(),function(e){e.NotSpecified="NotSpecified",e.ColumnAndRowHeadings="ColumnAndRowHeadings",e.ColumnHeadingsOnly="ColumnHeadingsOnly"}(Ka||(Ka={})),t(),t(),t(),t(),t(),exports.Accordion=E,exports.AcreditationPromotion=function(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.heading,r=C.intro,i=C.accreditations,s=C.htmlTag,m=void 0===s?"h2":s,d=C.fullWidth,u=void 0!==d&&d;return e.createElement("section",{className:c("accreditation-promotion",l&&"theme-".concat(l),u&&"accreditation-promotion--full-width")},e.createElement("div",{className:"accreditation-promotion__container"},n&&e.createElement(f,{classNames:"accreditation-promotion__heading",htmlTag:m},n),r&&e.createElement("p",{className:"accreditation-promotion__intro"},r),e.createElement("ul",null,i.map(function(C,t){return e.createElement("li",{className:c("accreditation-promotion__accreditation",t%2==0?"accreditation-promotion__accreditation--right":"accreditation-promotion__accreditation--left"),key:t},C.image&&e.createElement("div",{className:"accreditation-promotion__image-wrapper"},e.createElement(_,a({},C.image))),e.createElement(o,{theme:l,text:C.text,inverse:!0,fullWidth:!0}))}))))},exports.AlertBanner=function(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0!==l&&l,r=C.type,i=C.richText,m=e.useState(!0),d=m[0],u=m[1];return e.useEffect(function(){try{window.sessionStorage.getItem("alertBannerIsHidden")&&u(!window.sessionStorage.getItem("alertBannerIsHidden"))}catch(e){console.error(e)}},[]),e.createElement(e.Fragment,null,d&&e.createElement("div",{className:c("alert-banner",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"))},e.createElement("div",{className:"alert-banner__container"},e.createElement("div",{className:"alert-banner__left-wrapper"},e.createElement("div",{className:"alert-banner__status-icon"},"warning"===r&&e.createElement(s,{theme:a,icon:n?"warning-light":"warning-dark",inverse:n}),"success"===r&&e.createElement(s,{theme:a,icon:"success",inverse:n}),"information"===r&&e.createElement(s,{theme:a,icon:"information",inverse:n})),e.createElement(o,{theme:a,text:i.text,inverse:n})),e.createElement(M,{theme:a,icon:"cross",inverse:n,title:"Hide alert banner",onClick:function(){return function(){u(!1);var e=JSON.stringify(d);window.sessionStorage.setItem("alertBannerIsHidden",e)}()}}))))},exports.AnchorTarget=function(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0===l||l,r=C.includeDivider,i=void 0===r||r,o=C.targetLabel,s=C.children;return e.createElement("div",{id:o,className:c("anchor-target",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"))},i&&e.createElement("hr",{className:"anchor-target__divider"}),s)},exports.Breadcrumbs=function(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.inverse,r=void 0!==n&&n,i=C.links;return e.createElement("nav",{className:c("breadcrumbs",l&&"theme-".concat(l),r&&"theme-".concat(l,"--inverse"))},e.createElement("ol",{className:"breadcrumbs__list"},i.slice(0,-1).map(function(C){return e.createElement("li",{className:"breadcrumbs__link",key:C.title},e.createElement(s,{icon:"chevron-right",theme:l,ariaHidden:!0}),e.createElement(b,a({theme:l,inverse:r},C)))})))},exports.CTAComponent=function(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.inverse,r=C.highlight,i=void 0!==r&&r,o=C.image,s=C.heading,m=C.copy,d=C.primaryCTA,p=C.secondaryCTA,L=C.link,v=C.fullWidth,g=void 0!==v&&v,E=C.htmlTag,M=void 0===E?"h2":E,b=!i&&!!n;return e.createElement("div",{className:c("cta-component",l&&"theme-".concat(l),n&&"theme-".concat(l,"--inverse"),i&&"theme-".concat(l,"--highlight"),g&&"cta-component--full-width",o&&"cta-component--with-image")},e.createElement("div",{className:"cta-component__container"},e.createElement("div",{className:"cta-component__inner-wrapper"},e.createElement("div",{className:"cta-component__main-content"},o&&e.createElement("div",{className:"cta-component__image-wrapper"},e.createElement(_,a({},o))),e.createElement("div",{className:"cta-component__text-wrapper"},e.createElement(f,{htmlTag:M,classNames:"cta-component__heading"},s),m&&e.createElement("p",{className:"cta-component__copy"},m))),e.createElement("div",{className:"cta-component__button-wrapper"},d&&e.createElement(u,a({},d,{inverse:b})),p&&e.createElement(u,a({},p,{hollow:!0,inverse:b}))),L&&e.createElement(h,a({},L,{inverse:!b})))))},exports.CardProfile=function(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.inverse,r=void 0===n||n,i=C.image,o=C.name,s=C.courseTitle,m=C.href,d=C.copy,u=C.titleTag,h=void 0===u?"h3":u;return e.createElement("article",{className:c("card-profile",l&&"theme-".concat(l),r&&"theme-".concat(l,"--inverse"))},e.createElement("div",{className:"card-profile__container"},e.createElement("figure",{className:"card-profile__figure"},i&&e.createElement("div",{className:"card-profile__image-wrapper"},e.createElement(_,a({},i,{altText:"",loadingAttr:"lazy"}))),e.createElement("figcaption",null,e.createElement("a",{className:"card-profile__link",href:m},"h2"===h&&e.createElement("h2",{className:"card-profile__title"},o),"h3"===h&&e.createElement("h3",{className:"card-profile__title"},o)),s&&e.createElement("p",{className:"card-profile__course-title"},s),d&&e.createElement("p",{className:"card-profile__copy"}," ",d.length>120?"".concat(d.slice(0,120),"..."):d)))))},exports.CardPromoProfile=Ae,exports.CardStaff=Se,exports.Carousel=$e,exports.CentreWrapper=function(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.children;return e.createElement("div",{className:c("centre-wrapper",a&&"theme-".concat(a))},e.createElement("div",{className:"centre-wrapper__grid-container"},e.createElement("div",{className:"centre-wrapper__children"},l)))},exports.ClearingBanner=function(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.text,n=C.showIcon,r=void 0===n||n,i=C.smallLink,o=C.mainLink;return e.createElement("div",{className:c("clearing-banner",a&&"theme-".concat(a))},e.createElement("div",{className:"clearing-banner__container"},e.createElement("div",{className:"clearing-banner__top-wrapper"},r&&e.createElement("div",{className:"clearing-banner__icon"},e.createElement(Te,{theme:a,icon:"clearing-tick"})),e.createElement("div",null,e.createElement("span",null,l),i&&e.createElement("a",{className:"clearing-banner__small-link",href:i.url},i.label))),o&&e.createElement("div",{className:"clearing-banner__main-link"},e.createElement(we,{theme:a,inverse:!1,label:o.label,url:o.url,icon:o.icon,iconPosition:o.iconPosition}))))},exports.CourseDeliveryPills=function(C){var t=C.pills,l=C.theme,n=void 0===l?"uobmain":l;return e.createElement("div",{className:c("course-delivery-pills",n&&n&&"theme-".concat(n))},t.map(function(C,t){return e.createElement(m,a({key:t},C,{theme:n}))}))},exports.EmbedWrapper=je,exports.FactBoxes=function(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.inverse,r=void 0!==n&&n,i=C.title,o=C.description,s=C.linkProps,m=C.cards,d=C.fullWidth,u=void 0!==d&&d,h=C.htmlTag,p=C.showCardColumn,f=void 0===p||p;return e.createElement("section",{className:c("fact-boxes",l&&"theme-".concat(l),r&&"theme-".concat(l,"--inverse"),u&&"fact-boxes--full-width",f&&3===m.length&&"fact-boxes--three-facts",f&&2===m.length&&"fact-boxes--two-facts",f&&1===m.length&&"fact-boxes--one-fact")},(i||o)&&e.createElement(g,{theme:l,inverse:r,htmlTag:h,title:i,description:o,linkProps:s}),e.createElement("div",{className:"fact-boxes__container"},e.createElement("ul",{className:"fact-boxes__grid"},m.map(function(C,t){return e.createElement("li",{className:"fact-boxes__card",key:t},e.createElement(ze,a({},C,{inverse:!r})))}))))},exports.FeaturedContent=function(t){var a=t.theme,l=t.cards,n=l.length>1,r=e.useState(0),i=r[0],o=r[1],s=e.useState("first"),m=s[0],d=s[1],u=e.useState("0"),h=u[0],p=u[1],f=e.useState("0"),L=f[0],v=f[1],g=e.useState("0"),E=g[0],_=g[1],M=e.useState("0"),b=M[0],Z=M[1],H=l[i],w=e.useRef(null),V=pe("768px"),y=pe("1248px");e.useEffect(function(){switch(i){case 0:d("first"),p(Le.first.top),v(ve.first.bottom),_(ge.first.top),Z(Ee.first.bottom);break;case 1:d("second"),p(Le.second.top),v(ve.second.bottom),_(ge.second.top),Z(Ee.second.bottom);break;case 2:d("third"),p(Le.third.top),v(ve.third.bottom),_(ge.third.top),Z(Ee.third.bottom)}},[i,m]);var N=n?e.createElement(Re,{theme:a,totalNumber:l.length,currentNumber:i+1,carouselId:"featured-content",onClickPrev:function(){o(function(e){return e-1})},onClickNext:function(){o(function(e){return e+1})},prevButtonDisabled:0===i,nextButtonDisabled:i===l.length-1}):e.createElement(e.Fragment,null);return e.createElement("div",{className:c("featured-content",a&&"theme-".concat(a)),id:"featured-content"},e.createElement("div",{className:"featured-content__top"},e.createElement("div",{className:"featured-content__content"},e.createElement("div",{className:"featured-content__cards"},V&&e.createElement($e,{theme:a,type:"featured",inverse:!0,cards:l}),!V&&e.createElement(e.Fragment,null,e.createElement(C.motion.section,{className:"featured-content__active-card",key:i,initial:{opacity:0},animate:{opacity:1}},e.createElement(_e,{theme:a,imagePrimary:H.imagePrimary,imageSecondary:H.imageSecondary,imageTertiary:H.imageTertiary,categoryLabel:H.categoryLabel,slideTitle:H.slideTitle,subTitle:H.subTitle,introText:H.introText,link:H.link,linkText:H.linkText,cardOrder:H.cardOrder,activeVariant:m,leftInitialPositionTablet:h,rightInitialPositionTablet:L,leftInitialPositionDesktop:E,rightInitialPositionDesktop:b,isMobile:!1,isTablet:y,ref:w}))))),!V&&n&&l.map(function(C,t){return e.createElement("div",{className:"featured-content__invisible-card featured-content__invisible-card--desktop",key:t,"aria-hidden":!0},e.createElement("section",null,e.createElement(_e,{theme:a,categoryLabel:C.categoryLabel,slideTitle:C.slideTitle,subTitle:C.subTitle,introText:C.introText,link:C.link,linkText:C.linkText,cardOrder:C.cardOrder,activeVariant:m,imagePrimary:{src:{default:""}},imageSecondary:{src:{default:""}},imageTertiary:{src:{default:""}}})))})),e.createElement("div",{className:"featured-content__nav featured-content__nav--desktop"},N))},exports.FeaturedSignpost=function(C){var t=C.theme,a=C.inverse,l=C.position,n=C.category,r=C.title,i=C.description,o=C.linkUrl,s=C.linkLabel,m=C.linkIsExternal,d=void 0!==m&&m,u=C.imageAlt,p=C.imageSrc,f=pe("1248px");return e.createElement("div",{className:c("featured-signpost","featured-signpost--".concat(l),t&&"theme-".concat(t),a&&"theme-".concat(t,"--inverse"))},"left"===l&&e.createElement("div",{className:"featured-signpost__image-container featured-signpost__image-container--mobile"},e.createElement(cC,{isMobile:!0,isTablet:!1,position:l,imageSrc:p,imageAlt:u}),e.createElement(iC,{isMobile:!0,isTablet:!1,position:l})),"left"===l&&e.createElement("div",{className:"featured-signpost__image-container featured-signpost__image-container--desktop"},e.createElement(cC,{isMobile:!1,isTablet:f,position:l,imageSrc:p,imageAlt:u}),e.createElement(iC,{isMobile:!1,isTablet:f,position:l})),e.createElement("div",{className:"featured-signpost__content-wrapper"},e.createElement("div",{className:"featured-signpost__content"},n&&e.createElement("p",{className:"featured-signpost__category"},n)," ",e.createElement("h2",{className:"featured-signpost__title"},r),i&&e.createElement("p",{className:"featured-signpost__description"},i),e.createElement("div",{className:"featured-signpost__cta"},e.createElement(h,{url:o,title:s,theme:t,inverse:a,externalLink:d})))),"right"===l&&e.createElement("div",{className:"featured-signpost__image-container featured-signpost__image-container--mobile"},e.createElement(cC,{isMobile:!0,isTablet:!1,position:l,imageSrc:p,imageAlt:u}),e.createElement(iC,{isMobile:!0,isTablet:!1,position:l})),"right"===l&&e.createElement("div",{className:"featured-signpost__image-container featured-signpost__image-container--desktop"},e.createElement(cC,{isMobile:!1,isTablet:f,position:l,imageSrc:p,imageAlt:u}),e.createElement(iC,{isMobile:!1,isTablet:f,position:l})))},exports.FeaturedVideo=function(C){var t=C.theme,a=C.title,l=C.image,n=C.youtubeId,r=C.youtubeButtonLabel,i=void 0===r?"Watch the video":r,o=C.audioYoutubeButtonLabel,s=void 0===o?"Watch the audio described video":o,m=C.audioYoutubeId,d=e.useState(!1),u=d[0],h=d[1],p=e.useRef(n),f=pe("768px"),L=function(){h(!1),document.body.classList.remove("lock-scroll")},v=function(e){p.current=e,u?L():(h(!0),document.body.classList.add("lock-scroll"))};return e.createElement(e.Fragment,null,e.createElement("section",{className:c("featured-video",t&&"theme-".concat(t))},f?e.createElement("div",{className:"featured-video__mobile-image"},e.createElement("div",{className:"featured-video__image-wrapper",style:{backgroundImage:"url(".concat(l.src.default,")"),backgroundPosition:"50% 50%",backgroundSize:"cover",backgroundRepeat:"no-repeat"}})):e.createElement(oC,{offset:100},e.createElement("div",{className:"featured-video__image-wrapper",style:{backgroundImage:"url(".concat(l.src.default,")"),backgroundPosition:"50% 50%",backgroundSize:"cover",backgroundRepeat:"no-repeat"}})),e.createElement("div",{className:"featured-video__container"},e.createElement("h2",{className:"featured-video__title"},a),e.createElement("div",{className:"featured-video__button-wrapper"},e.createElement(we,{theme:t,inverse:!0,label:i,icon:"play",onClick:function(){return v(n)}}),m&&e.createElement("button",{className:"featured-video__button-audio",type:"button",onClick:function(){return v(m)}},s)))),u&&e.createElement(He,{theme:t,closeModal:L,isOpen:u},e.createElement(Me,{theme:t,id:p.current,autoPlay:!0})))},exports.FiveArticlesGrid=function(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.heading,r=C.featuredArticle,i=C.otherLeadArticles;return e.createElement("section",{className:c("five-articles-grid",l&&"theme-".concat(l))},e.createElement("div",{className:"five-articles-grid__container"},n&&e.createElement("h2",{className:"five-articles-grid__heading"},n),e.createElement("div",{className:"five-articles-grid__main-container"},e.createElement("div",{className:"five-articles-grid__featured-card"},e.createElement(qe,a({},r,{isPrimary:!0}))),e.createElement("ul",{className:"five-articles-grid__secondary-card-container"},i.map(function(C,t){return e.createElement("li",{className:"five-articles-grid__secondary-card",key:t},e.createElement(qe,{theme:l,image:C.image,title:C.title,href:C.href,titleTag:C.titleTag,publishDate:C.publishDate}))})))))},exports.Footer=function(C){var t=C.theme,a=C.locations,l=C.summaryLinks,n=C.hygieneLinks,c=C.activeCampus,r=void 0===c?"uk":c,i=C.address,o=C.telephoneAsNumber,m=C.telephoneAsDisplay,d=C.telIntroText,u=void 0===d?"":d,p=C.socialIcons;return e.createElement("footer",{id:"footer",className:"footer theme-".concat(t),"data-element":"footer"},e.createElement("div",{className:"footer__container"},e.createElement("div",{className:"footer__column-container"},e.createElement("div",{className:"footer__column-left"},e.createElement("div",{className:"footer__logo-wrapper"},e.createElement(uC,{activeCampus:r,imageMode:"dark",classNames:"footer__logo-link",imageWidth:240,imageHeight:79,imageAltText:"uk"===r?"University of Birmingham":"University of Birmingham Dubai"})),e.createElement("ul",{className:"footer__address"},i.map(function(C,t){return e.createElement("li",{className:"footer__address-line",key:t},C)})),e.createElement("div",{className:"footer__telephone"},u&&e.createElement("p",null,u),"Tel:",e.createElement(sC,{theme:t,url:"tel: ".concat(o),title:m,externalLink:!1})),e.createElement("ul",{className:"footer__social-wrapper"},p.map(function(C,a){return e.createElement("li",{key:a},e.createElement(be,{icon:C.icon,theme:t,url:C.url,title:C.title,externalLink:!1}))}))),e.createElement("div",{className:"footer__column-middle"},e.createElement("details",{className:"footer__details",open:!l},e.createElement("summary",{className:"footer__summary-links"},"Global Footprint",e.createElement("i",{className:"footer__summary-icon"},e.createElement(s,{icon:"chevron-down",theme:t}))),e.createElement("ul",null,a.map(function(C,a){return e.createElement("li",{className:"footer__location",key:a},e.createElement("i",{className:"footer__location-icon"},e.createElement(s,{icon:"location",theme:t})),e.createElement(sC,{theme:t,url:C.href,title:C.label,externalLink:C.externalLink}))}))),e.createElement("ul",null,l&&l.map(function(C,a){return e.createElement("li",{className:"footer__arrow-link",key:a},e.createElement(h,{theme:t,title:C.label,url:C.href,externalLink:C.externalLink}))}))),e.createElement("div",{className:"footer__map"},e.createElement(_,{src:{default:"data:image/svg+xml,%3c%3fxml version='1.0' encoding='utf-8'%3f%3e%3c!-- Generator: Adobe Illustrator 27.8.0%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e%3csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 466 304' style='enable-background:new 0 0 466 304%3b' xml:space='preserve'%3e%3cstyle type='text/css'%3e .st0%7bfill:white%3bfilter:url(%23Adobe_OpacityMaskFilter)%3b%7d .st1%7bmask:url(%23mask0_4124_14261_00000137847102346873784780000003499357769935946391_)%3b%7d .st2%7bfill:%233C3C3B%3b%7d .st3%7bfill:white%3bstroke:%233C3C3B%3bstroke-width:0.5%3bstroke-miterlimit:10%3b%7d .st4%7bfill:%23C59A00%3bstroke:%233C3C3B%3bstroke-width:0.5%3bstroke-miterlimit:10%3b%7d .st5%7bfill:%23F7F7F7%3b%7d%3c/style%3e%3cdefs%3e %3cfilter id='Adobe_OpacityMaskFilter' filterUnits='userSpaceOnUse' x='0' y='24' width='466' height='279.1'%3e %3cfeColorMatrix type='matrix' values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0'/%3e %3c/filter%3e%3c/defs%3e%3cmask maskUnits='userSpaceOnUse' x='0' y='24' width='466' height='279.1' id='mask0_4124_14261_00000137847102346873784780000003499357769935946391_'%3e %3cpath class='st0' d='M466%2c24H0v279.1h466V24z'/%3e%3c/mask%3e%3cg class='st1'%3e %3cpath class='st2' d='M109%2c74.6l-4.1%2c4.4l-1.1-2.7l-2.2%2c1.9l-5.8-1.2L94%2c74.6l-3.8%2c1.4l-0.6%2c3.1l-0.7-3.6l-7.1-2.1l2.9-1.1L84.1%2c70 h-2.6l-3.5-5.1L74.8%2c66l0.9-2.9l-2.8%2c2.5v-5.2l-2.7%2c2.2l-9.8%2c1.9l-5.3-7.4l-6.5-4.4l-2.2-0.5l0.6-1.6l-3.7-3.2l-7.4%2c1.4l-6.7%2c4.1 l-2.8-0.4l-2%2c2.1l0.2%2c5.1l2.8%2c3.6l-5.1-0.1l0.5-1.9l-7.2%2c1.9l0.5%2c4.6l6.4%2c0.9l-2.3%2c3.9l-9.3%2c3.8L9.5%2c84l2.6-0.7L10.1%2c88l7.5%2c0.5 l-5.2%2c5.2L0%2c99l1.1%2c0.7l14.4-5.9l6.4-4.1L21%2c89.1l7.8-5.7c0%2c0-4.1%2c6-4%2c5.9c0.1-0.1%2c6.3-2%2c6.3-2l0.3-2l1.9%2c0.1l5.7%2c4.8l4.8%2c16 l2.2%2c3.4l5.7%2c12.8l-0.7%2c0.7l-4.1-7.1l-1.6%2c1.2l3.1%2c5.1l-0.6%2c6.5l-3.3%2c11.2l1.9%2c11l4.2%2c3.4l2.3%2c7.1l1.1%2c3l-1.5%2c0.4l6.6%2c8.2l0.7-0.3 L55%2c162.7l-1.1-4.4l1.2-0.2l2.2%2c5.9l3.1%2c4.8l4.6%2c6.6l-1%2c3.2l6.4%2c4.4l8.6%2c2.8l4.3%2c2.3l5.3%2c0.9l3.1%2c3.4l3.9%2c4.3l4.2%2c1.5v-1.8l3.5%2c2.1 l0.8-1.7l-2.5-2l-4%2c1l-2.8-3.6l1.1-6.4l-7.5-0.8l3.3-8.8l-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-1.4%2c4.4l-3%2c1.9l-1.1-3.2L416.7%2c280.4z'/%3e %3cpath class='st2' d='M354.6%2c200.4c0.2%2c0.1%2c3.9%2c1.8%2c3.9%2c1.8l3.4%2c3l4.2%2c3l1%2c2.4l3%2c2.4l-0.4%2c4.5l-3.9-1.7l-5-7.2l-4.5-5.5l-2.2-2.1 L354.6%2c200.4z'/%3e %3cpath class='st2' d='M374.9%2c206.2l-0.7%2c2.8l1.7%2c2.1l0.3%2c2l6.2%2c1v0.8l2.2-0.8l2.4-6.6l1.9-0.2l-1.9-1.5l0.1-3l2.1-0.7l-1.2-2.2 l-2.4-1.6l-2.2%2c3.3l-1.6%2c0.2l-1.7%2c2.5l-2.4%2c0.8l-0.3%2c1.7L374.9%2c206.2z'/%3e %3cpath class='st2' d='M397.5%2c206.5l-1.5%2c1l-4.2-0.5l-3%2c6.2l0.6%2c4.4l1.8-0.3l-0.2-4.3l2%2c2.9l1.4-1.5l-1-2.7l4.5-4.6L397.5%2c206.5z'/%3e %3cpath class='st2' d='M369.9%2c218.1l1-0.5l5.4%2c1.5l0.8-0.7l4.9%2c2.2v1.1l-5.7-0.8l-3.1-0.4L369.9%2c218.1z'/%3e %3cpath class='st2' d='M406.2%2c210.6l3.4-1.1l1.2%2c3.1l2%2c1.2l3-2.7l5.1%2c1.6l5.8%2c2.4l2%2c2.5l1.7%2c0.4l0.4%2c0.9l-1.7%2c0.3l1.4%2c2.1l3.5%2c3.6 h-1.6l-6-4.6l-2.4%2c1.7l-0.7%2c1.2l-4.6-2.4l-3.2%2c1l1.6-2.1l-1.2-3.2l-5.5-2l-1.5%2c0.6l-1-2.2l2.1-0.6L406.2%2c210.6z'/%3e %3cpath class='st2' d='M409.7%2c127c0.2%2c0.1%2c5.9%2c3%2c5.9%2c3v2.4l-2.1%2c2l-3.2-1l0.3%2c3l2.1%2c2.5l0.7%2c5.9l-0.1%2c3.2l-4.1%2c2.9l-1.7-1.8v3.4 l-3.6%2c1.1l-2.3%2c4.1l-1.5-1.2l0.4-2.9l-1.1-0.4l2.6-3.3l4.7-1.3l0.7-2.2l2.5-1.8l1-4.9l-1-1.5l0.4-1.7l-1.8-2.9l1.4-2.1L409.7%2c127z' /%3e %3cpath class='st2' d='M212.9%2c111.7c0%2c0-1.7%2c2.1-1.6%2c2.1h2.7l-1.4%2c3l1.9%2c1.6l0.4%2c1.6l1.3%2c0.8l0.6%2c2.8h1.6l0.4%2c1.2l-1.1%2c1.6l0.1%2c0.6 l-3.7%2c1.1l-4.8%2c1.1l3.4-2.8l-2.9-0.6l1-3.1l1.6-0.7l-0.4-2.5l-2.1%2c0.5v-2.5l-1.2-1l0.3-2.3l-2.1-0.5l1.9-0.3l2.3-1.8L212.9%2c111.7z' /%3e %3cpath class='st2' d='M209.5%2c120.7l-1.2%2c0.7v3.4l-3.6%2c1.5l-2.1-1.3l2-2.3l-1.3-1.6l1.1-0.9l1%2c0.4l0.3-1l-0.3-0.4l2.2-1l1.3%2c1 L209.5%2c120.7z'/%3e %3cpath class='st2' d='M284.9%2c53.8l0.4%2c3l-7.3%2c6.6l-1.5%2c9.5l3.1%2c4.3l-7.1-2l1-10.7l6.3-7.7L284.9%2c53.8z'/%3e %3cpath class='st2' d='M190%2c92.5c0.1%2c0.2%2c1.9%2c2.2%2c1.9%2c2.2l2.2-1.1l3.6-1.1l3%2c3.1l-2.5%2c3.5l-4.6%2c1.7l-3.8-2.3l0.2-1.5l-1.7-1l-0.2-2 L190%2c92.5z'/%3e %3cpath class='st2' d='M113.3%2c58.6h-2.6l-0.9-1.1l-1.7%2c3.9l-1.8-0.7l0.3%2c4.3l0.7%2c2.2l2.8-1.2l1.7-3.2l-1.1-0.9L113.3%2c58.6z'/%3e %3cpath class='st2' d='M164.8%2c32.2l-14.7%2c10.2h-5.6v3.7l-5.3%2c4.3l-3.4-1.2l2.9%2c3.2l-2.9%2c2l-9.3-3.7l6.7-5.6l-3.2-2.8l-1.1-8l6.9-5.5 l3%2c7.6l7-0.1l-0.3-1.3l-5.8-0.1l-1.5-7.6l7.2-1.4l1.7%2c1.8l2.2-3.8l9.4%2c1.1l3.7%2c2.4L164.8%2c32.2z'/%3e %3cpath class='st2' d='M142.2%2c124.1l-1.2%2c1.4l-3.8%2c5.9l5.6%2c0.4l0.5%2c0.7l2.2-2.1l-0.9-2.1l-3.2%2c0.3l0.4-2l1.8-2.3L142.2%2c124.1z'/%3e %3cpath class='st2' d='M101.5%2c42.9l-5.5%2c3.9l5.5%2c2.3l-4.3%2c1.5l6.9%2c0.3l2.8%2c0.5l2.1-3.5l-1.3-4.3l-3.7%2c3.8L101.5%2c42.9z'/%3e %3cpath class='st2' d='M111.5%2c47.1l0.8%2c6.5l3%2c0.3l3.4-6.6l-4.7%2c1.8L111.5%2c47.1z'/%3e %3cpath class='st2' d='M120%2c49.1l2.6%2c1.9l-2.2%2c5.5l6%2c3.2l6.9%2c0.4l1.2-3.6l-4.4-1.6l-4.5%2c0.2l-1.3-3l1.1-1.1l-1.6-1.9l-3.2-2.3 L120%2c49.1z'/%3e %3cpath class='st2' d='M390.7%2c168.1c0%2c0-1.2%2c1.6-1.4%2c2.1s-0.1%2c1.2-0.1%2c1.2l0.8%2c2.5l1.4-4.9l0.6-0.9l-0.5-0.4L390.7%2c168.1z'/%3e%3c/g%3e%3cpath class='st3' d='M324.9%2c171.8c-0.5-0.5-0.8-1.1-0.9-1.8c-0.1-0.7%2c0-1.4%2c0.3-2s0.8-1.1%2c1.3-1.5c0.6-0.4%2c1.3-0.5%2c2-0.5 c0.7%2c0%2c1.4%2c0.2%2c1.9%2c0.6c0.6%2c0.4%2c1%2c0.9%2c1.2%2c1.6c0.2%2c0.6%2c0.3%2c1.3%2c0.1%2c2c-0.1%2c0.7-0.5%2c1.3-1%2c1.7l-2.4%2c3.1L324.9%2c171.8z'/%3e%3cpath class='st4' d='M292.1%2c166.6c-0.5-0.5-0.8-1.1-0.9-1.8c-0.1-0.7%2c0-1.4%2c0.3-2s0.8-1.1%2c1.3-1.5c0.6-0.4%2c1.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.1%2c0.7-0.5%2c1.3-1%2c1.7l-2.4%2c3.1L415.7%2c272.5z'/%3e%3cpath class='st3' d='M387.8%2c167.2c-0.5-0.5-0.8-1.1-0.9-1.8c-0.1-0.7%2c0-1.4%2c0.3-2s0.8-1.1%2c1.3-1.5c0.6-0.4%2c1.3-0.5%2c2-0.5 c0.7%2c0%2c1.4%2c0.2%2c1.9%2c0.6c0.6%2c0.4%2c1%2c0.9%2c1.2%2c1.6c0.2%2c0.6%2c0.3%2c1.3%2c0.1%2c2c-0.1%2c0.7-0.5%2c1.3-1%2c1.7l-2.4%2c3.1L387.8%2c167.2z'/%3e%3cpath class='st5' d='M377.9%2c204.1c-0.5-0.5-0.8-1.1-0.9-1.8c-0.1-0.7%2c0-1.4%2c0.3-2s0.8-1.1%2c1.3-1.5c0.6-0.4%2c1.3-0.5%2c2-0.5 c0.7%2c0%2c1.4%2c0.2%2c1.9%2c0.6c0.6%2c0.4%2c1%2c0.9%2c1.2%2c1.6c0.2%2c0.6%2c0.3%2c1.3%2c0.1%2c2c-0.1%2c0.7-0.5%2c1.3-1%2c1.7l-2.4%2c3.1L377.9%2c204.1z'/%3e%3cpath class='st2' d='M389.5%2c172'/%3e%3c/svg%3e"},altText:"",width:368,height:240})))),e.createElement("div",{className:"footer__bottom-container"},e.createElement("div",{className:"footer__bottom-wrapper"},e.createElement("ul",{className:"footer__hygiene-link-wrapper"},n.map(function(C,a){return e.createElement("li",{className:"footer__hygiene-link",key:"hygiene-".concat(a)},e.createElement(sC,{theme:t,url:C.href,title:C.label,externalLink:C.externalLink}))})),e.createElement("p",{className:"footer__copyright"},"© University of Birmingham ",(new Date).getFullYear()))))},exports.GeneralSearchFilter=function(C){var t=C.theme,a=C.heading,l=C.typeName,n=C.typeGroups,r=C.onClearFilters,i=C.onViewResults,o=C.defaultCheckedType,s=n.find(function(e){return e.value===o});return e.createElement("div",{className:c("general-search-filter",t&&"theme-".concat(t))},e.createElement("p",{className:"general-search-filter__heading"},a),e.createElement("ul",{className:"general-search-filter__list"},e.createElement("li",{className:"general-search-filter__item",key:"type"},e.createElement(LC,{type:"radio",heading:"Type",theme:t,defaultIsOpen:!0,inputs:n.map(function(e){return{name:l,value:e.value,label:e.label,id:e.id,defaultChecked:!!o&&o===e.value,onChange:e.onChange}})})),(null==s?void 0:s.checkboxGroups)&&s.checkboxGroups.length>0&&s.checkboxGroups.map(function(C){return e.createElement("li",{className:"standard-listing-filter__item",key:C.name},e.createElement(LC,{type:"checkbox",heading:C.heading,theme:t,inputs:C.inputs.map(function(e){return{name:C.name,value:e.value,label:e.label,id:e.id,defaultChecked:!!C.defaultValues&&C.defaultValues.includes(e.value),onChange:C.onChange}})}))})),i&&e.createElement("div",{className:"general-search-filter__results-button"},e.createElement(u,{label:"View filtered results",onClick:i,theme:t})),e.createElement("div",{className:"general-search-filter__clear-button"},e.createElement(u,{label:"Clear filters",onClick:r,theme:t,hollow:!0})))},exports.GenericDetailSection=function(C){var t=C.theme,l=C.title,n=C.detailColumns,r=C.buttons;return e.createElement("section",{className:c("generic-detail-section",t&&"theme-".concat(t))},e.createElement("div",{className:"generic-detail-section__container"},l&&e.createElement("h2",{className:"generic-detail-section__title"},l),e.createElement("ul",{className:"generic-detail-section__details-container"},n.map(function(C,l){return e.createElement("ul",{key:l,className:"generic-detail-section__column"},C.map(function(C){return e.createElement("li",{className:"generic-detail-section__detail",key:C.title},e.createElement(hC,a({},C,{theme:t})))}),3===n.length&&2===l&&r&&r.map(function(C,n){return e.createElement("li",{key:n,className:"generic-detail-section__detail generic-detail-section__detail--button"},e.createElement(u,a({},C,{theme:t,hollow:l%2!=0})))}))}),n.length<3&&r&&e.createElement("ul",null,r.map(function(C,l){return e.createElement("li",{key:l,className:"generic-detail-section__detail generic-detail-section__detail--button"},e.createElement(u,a({},C,{theme:t,hollow:l%2!=0})))})))))},exports.Header=function(t){var a=t.theme,n=void 0===a?"uobmain":a,r=t.primaryLinks,i=t.secondaryLinks,o=t.menuCards,s=t.dubaiUrl,m=t.ukUrl,d=t.logoTitleTagH1,h=void 0===d||d,p=t.activeCampus,f=void 0===p?"uk":p,L=t.searchProps,v=function(){var C=e.useState(null),t=C[0],a=C[1];return e.useEffect(function(){var e=window.scrollY,C=function(){var C=window.scrollY,l=C>e?"down":"up";l!==t&&(C-e>3||C-e<-3)&&a(l),e=C>0?C:0};return window.addEventListener("scroll",C),function(){window.removeEventListener("scroll",C)}},[t]),t}(),g=e.useState(!1),E=g[0],_=g[1],M=e.useRef(null),b=e.useRef(null),Z=e.useRef(null),H=pe("768px"),w=e.useState(0),V=w[0],y=w[1],N=e.useState(null),k=N[0],x=N[1],T=e.useState(null),S=T[0],P=T[1],O=e.useState(!1),q=O[0],F=O[1],B=e.useState(!1),D=B[0],I=B[1],A=e.useState(""),R=A[0],$=A[1],j=function(){_(!0),document.body.classList.add("lock-scroll")},z=function(){F(!0),j()},W=function(){F(!1),I(!1)},U=function(){_(!1),W(),document.body.classList.remove("lock-scroll"),y(0),x(null),P(null),M.current&&M.current.focus()},G=function(){y(0),x(null),W()},K=function(){y(1),P(null),W()},Y=function(e){"Escape"===e.key&&E&&U()};e.useEffect(function(){return document.addEventListener("keydown",Y),function(){document.removeEventListener("keydown",Y)}}),e.useEffect(function(){if(b.current&&"down"===v){var e=b.current.offsetHeight;b.current.style.top="-".concat(e,"px")}else if(b.current&&"up"===v){var C=0;Z.current&&b.current&&(C=Z.current.offsetHeight),b.current.style.top="-".concat(C,"px")}},[v]);var J=null,Q=null;null!==k&&(J=l(l([],r,!0),i,!0)[k],null!==S&&J.children&&(Q=J.children[S]));var X=e.createElement("div",{className:"header__campus-selector header__campus-selector--mobile"},e.createElement(Gt,{theme:n,dubaiUrl:s,ukUrl:m,active:f,mobile:!0})),ee=e.createElement("div",{className:"header__campus-selector header__campus-selector--desktop",ref:Z},e.createElement(Gt,{theme:n,dubaiUrl:s,ukUrl:m,active:f,mobile:!1})),Ce=e.createElement("div",{className:"header__campus-selector header__campus-selector--desktop"},e.createElement(Gt,{theme:n,dubaiUrl:s,ukUrl:m,active:f,mobile:!1})),te=function(e){$(e.target.value)},ae=function(e){if(e.preventDefault(),"undefined"!=typeof window){var C=L.resultsUrl;window.location.href=R?"".concat(C,"?term=").concat(R):"".concat(C)}};return e.createElement("header",{className:c("header",n&&"theme-".concat(n),!E&&"header--is-closed","header--".concat(f)),id:"header",ref:b},e.createElement("div",{className:"header__closed"},ee,e.createElement("div",{className:"header__top-container"},e.createElement("div",{className:"header__logo-wrapper"},e.createElement(uC,{activeCampus:f,imageMode:"light",classNames:"header__logo-link"},h?e.createElement("h1",{className:"sr-only"},"uk"===f?"University of Birmingham":"University of Birmingham Dubai"):e.createElement("span",{className:"sr-only"},"uk"===f?"University of Birmingham":"University of Birmingham Dubai"))),e.createElement("div",{className:"header__right-wrapper"},e.createElement("div",{className:"header__search-button"},e.createElement(u,{theme:n,label:"Search",onClick:function(){I(!0),z()},hollow:!0})),e.createElement("div",{className:"header__menu-button"},e.createElement("span",null,"Menu"),e.createElement(be,{theme:"uobmain",icon:"hamburger",onClick:j,title:"Open menu",ariaControls:"header",ref:M,ariaExpanded:E}))))),e.createElement(C.AnimatePresence,null,E&&e.createElement(Bt,null,e.createElement(C.motion.div,{className:"header__open",initial:{x:"100%"},animate:{x:"0"},exit:{x:"100%"},transition:{type:"tween"},key:"header__open"},Ce,e.createElement("div",{className:"header__top-container"},e.createElement("div",{className:"header__logo-wrapper"},e.createElement(uC,{activeCampus:f,imageMode:"dark",classNames:"header__logo-link"},e.createElement("h1",{className:"sr-only"},"uk"===f?"University of Birmingham":"University of Birmingham Dubai"))),e.createElement("div",{className:"header__right-wrapper"},!H&&!q&&e.createElement("div",{className:"header__search-button-menu"},e.createElement(u,{theme:n,inverse:!0,label:"Search",onClick:z,hollow:!0})),e.createElement("div",{className:"header__menu-button"},e.createElement("span",null,"Menu"),e.createElement(be,{theme:"uobmain",inverse:!0,icon:"cross",onClick:U,title:"Close menu",ariaControls:"header"})))),H&&!q&&e.createElement("div",{className:"header__search-button-mobile"},e.createElement(u,{theme:n,inverse:!0,label:"Search",onClick:z,hollow:!0})),0===V&&!q&&e.createElement(Rt,{primaryLinks:r,secondaryLinks:i,menuCards:o,onClickNavLink:function(e){y(1),x(e)},theme:n}),0===V&&q&&e.createElement(Wt,{theme:n,introText:L.introText,placeholder:L.placeholder,title:L.title,handleSearchChange:te,handleSearchSubmit:ae,onClickGoBack:D?void 0:G,backLinkLabel:D?"":"Back to menu",recommendedLinks:L.recommendedLinks,recommendedLinkTitle:L.recommendedLinkTitle}),1===V&&J&&!q&&e.createElement(jt,{headingLink:J,onClickNavLink:function(e){y(2),P(e)},theme:n,onClickGoBack:G,backLinkLabel:"Back to menu"}),1===V&&J&&q&&e.createElement(Wt,{theme:n,introText:L.introText,placeholder:L.placeholder,title:L.title,handleSearchChange:te,handleSearchSubmit:ae,onClickGoBack:K,backLinkLabel:"Back to ".concat(J.label),recommendedLinks:L.recommendedLinks,recommendedLinkTitle:L.recommendedLinkTitle}),2===V&&J&&Q&&!q&&e.createElement(jt,{headingLink:Q,onClickNavLink:function(){},theme:n,onClickGoBack:K,backLinkLabel:"Back to ".concat(J.label)}),2===V&&J&&Q&&q&&e.createElement(Wt,{theme:n,introText:L.introText,placeholder:L.placeholder,title:L.title,handleSearchChange:te,handleSearchSubmit:ae,onClickGoBack:function(){y(2),W()},backLinkLabel:"Back to ".concat(Q.label),recommendedLinks:L.recommendedLinks,recommendedLinkTitle:L.recommendedLinkTitle}),X))))},exports.Heading=g,exports.Hero=function(C){var t=C.theme,l=C.inverse,n=C.title,r=C.titleTag,i=void 0===r?"h2":r,o=C.description,s=C.image,m=C.links,d=C.courseSearchProps,h=pe("768px"),p=pe("1248px");return e.createElement("div",{className:c("hero",t&&"theme-".concat(t),l&&"theme-".concat(t,"--inverse"),s&&"hero--with-image"),id:"hero"},s&&"rectangle"===s.style&&e.createElement("div",{className:"hero__image-wrapper hero__image-wrapper--mobile hero__image-wrapper--rectangle"},e.createElement(_,a({},s,{altText:s.alt,fetchPriority:s.fetchPriority}))),s&&"lines-of-intent"===s.style&&h&&e.createElement("div",{className:"hero__image-wrapper hero__image-wrapper--mobile"},e.createElement(Yt,{isMobile:!0,isTablet:!1,image:s}),e.createElement(Qt,{isMobile:!0,isTablet:!1})),e.createElement("div",{className:"hero__container"},e.createElement("div",{className:"hero__content"},e.createElement(i,{className:"hero__title"},n),o&&e.createElement("div",{className:"hero__description"},e.createElement(L,{text:o,theme:t,inverse:l})),m&&m.length>0&&e.createElement("div",{className:"hero__buttons"},m.map(function(C,a){return e.createElement(u,{theme:t,key:a,url:C.url,label:C.title,externalLink:C.externalLink,inverse:!l,hollow:1===a})})),d&&e.createElement(ea,a({theme:t,inverse:l,wrapped:!0},d))),s&&"rectangle"===s.style&&e.createElement("div",{className:"hero__image-wrapper hero__image-wrapper--desktop hero__image-wrapper--rectangle"},e.createElement(_,a({},s,{altText:s.alt,fetchPriority:s.fetchPriority}))),s&&"lines-of-intent"===s.style&&p&&e.createElement("div",{className:"hero__image-wrapper hero__image-wrapper--desktop hero__image-wrapper--polygon"},e.createElement(Yt,{isMobile:!1,isTablet:!0,image:s}),e.createElement(Qt,{isMobile:!1,isTablet:!0})),s&&"lines-of-intent"===s.style&&!h&&!p&&e.createElement("div",{className:"hero__image-wrapper hero__image-wrapper--desktop hero__image-wrapper--polygon"},e.createElement(Yt,{isMobile:!1,isTablet:!1,image:s}),e.createElement(Qt,{isMobile:!1,isTablet:!1}))))},exports.HeroArticle=function(C){var t=C.theme,l=C.inverse,n=C.title,r=C.titleTag,i=void 0===r?"h2":r,o=C.description,s=C.cardImage,m=C.publishDate,d=C.readTime,u=C.shareButtons,h=C.author;return e.createElement("section",{className:c("hero-article",t&&"theme-".concat(t),l&&"theme-".concat(t,"--inverse"))},e.createElement("div",{className:"hero-article__container"},e.createElement("div",{className:"hero-article__content"},e.createElement(i,{className:"hero-article__title"},n),e.createElement("p",{className:"hero-article__description"},o),e.createElement("div",{className:"hero-article__meta-data"},m&&e.createElement("span",{className:"hero-article__publish-date"},m),m&&d&&e.createElement("span",{className:"hero-article__separator"},"•"),d&&e.createElement("span",{className:"hero-article__read-time"},d),h&&e.createElement(e.Fragment,null,e.createElement("span",{className:"hero-article__separator"},"•"),e.createElement("span",{className:"hero-article__author"},"by ",e.createElement(ta,a({},h))))),e.createElement("div",{className:"hero-article__sharing-buttons"},e.createElement(Ca,{theme:t,label:u.label,icons:u.icons,inverse:l})))),s&&e.createElement("div",{className:"hero-article__image-wrapper"},e.createElement(Oe,a({},s,{inverse:l}))))},exports.HeroCarousel=function(t){var a=t.theme,l=t.cards,n=l.length>1,r=e.useState(0),i=r[0],o=r[1],s=l[i],m=e.useRef(null),d=pe("768px"),u=pe("1248px"),h="";switch(i){case 0:h="first";break;case 1:h="second";break;case 2:h="third"}var p=n?e.createElement(Re,{theme:a,totalNumber:l.length,currentNumber:i+1,carouselId:"hero-carousel",onClickPrev:function(){o(function(e){return e-1})},onClickNext:function(){o(function(e){return e+1})},prevButtonDisabled:0===i,nextButtonDisabled:i===l.length-1,showNumbers:!0}):e.createElement(e.Fragment,null);return e.createElement("div",{className:c("hero-carousel",a&&"theme-".concat(a)),id:"hero-carousel"},e.createElement("div",{className:"hero-carousel__top"},e.createElement("div",{className:"hero-carousel__content"},d&&e.createElement("div",{className:"hero-carousel__image-container hero-carousel__image-container--mobile"},e.createElement(Za,{isMobile:!0,isTablet:!1,activeVariant:h,imageSrc:s.imageSrc,imageAlt:s.imageAlt}),e.createElement(ba,{isMobile:!0,isTablet:!1,activeVariant:h})),e.createElement("div",{className:"hero-carousel__cards"},e.createElement(C.motion.section,{className:"hero-carousel__active-card",key:i,initial:{opacity:0},animate:{opacity:1}},e.createElement(Ha,{category:s.category,title:s.title,description:s.description,linkUrl:s.linkUrl,linkLabel:s.linkLabel,theme:a,ref:m})),d&&n&&l.map(function(C,t){return e.createElement("section",{className:"hero-carousel__invisible-card hero-carousel__invisible-card--mobile",key:t,"aria-hidden":!0},e.createElement(Ha,{category:C.category,title:C.title,description:C.description,linkUrl:C.linkUrl,linkLabel:C.linkLabel,theme:a}))}),e.createElement("div",{className:"hero-carousel__nav hero-carousel__nav--desktop"},p)),e.createElement("div",{className:"hero-carousel__image-container hero-carousel__image-container--desktop"},e.createElement(Za,{isMobile:!1,isTablet:u,activeVariant:h,imageSrc:s.imageSrc,imageAlt:s.imageAlt}),e.createElement(ba,{isMobile:!1,isTablet:u,activeVariant:h}))),!d&&n&&l.map(function(C,t){return e.createElement("div",{className:"hero-carousel__invisible-card hero-carousel__invisible-card--desktop",key:t,"aria-hidden":!0},e.createElement("section",null,e.createElement(Ha,{category:C.category,title:C.title,description:C.description,linkUrl:C.linkUrl,linkLabel:C.linkLabel,theme:a})))})),d&&e.createElement("div",{className:"hero-carousel__nav hero-carousel__nav--mobile"},p))},exports.HeroCourses=function(C){var t,l=C.theme,n=C.title,r=C.titleTag,i=void 0===r?"h2":r,o=C.awardShort,s=C.links,m=C.ranking,d=C.award,h=C.campus,p=C.ucas,L=C.duration,v=C.entryRequirements,g=C.startDate,E=C.yearOfEntry,_=C.fees,M=C.deliveryFormat,b=C.locationDetails,Z=C.modalCTA;return e.createElement("section",{className:c("hero-courses",l&&"theme-".concat(l)),id:"hero-courses"},e.createElement("div",{className:"hero-courses__container"},e.createElement("div",{className:"hero-courses__content"},e.createElement("div",{className:"hero-courses__title-wrapper"},e.createElement(f,{htmlTag:i,classNames:"hero-courses__title"},n&&n.length>0&&o&&o.length>0?n+" ":n,e.createElement("span",{className:"hero-courses__title-award"},o))),b&&e.createElement("div",{className:"hero-courses__location-wrapper"},e.createElement(oa,a({},b,{inverse:!1}))),e.createElement("ul",{className:(t="hero-courses__grid--four",m&&(h||M||p)?t="hero-courses__grid--six":(m&&!h&&!M&&!p||!m&&(h||M||p))&&(t="hero-courses__grid--five"),"hero-courses__grid "+t)},m&&e.createElement("li",{className:"hero-courses__column hero-courses__column--ranking"},e.createElement(ia,a({},m))),(p||h||M)&&e.createElement("li",{className:"hero-courses__column hero-courses__column--split hero-courses__column--award"},p&&e.createElement(ca,a({},p)),h&&e.createElement(ca,a({},h)),M&&e.createElement(ca,a({},M))),L&&E?e.createElement("li",{className:"hero-courses__column hero-courses__column--split hero-courses__column--duration"},e.createElement(ra,a({},E)),e.createElement(ca,a({},L))):L&&g?e.createElement("li",{className:"hero-courses__column hero-courses__column--split hero-courses__column--duration"},e.createElement(ca,a({},g)),e.createElement(ca,a({},L))):e.createElement("li",{className:"hero-courses__column hero-courses__column--duration"},e.createElement(ca,a({},L))),d&&e.createElement("li",{className:"hero-courses__column hero-courses__column--delivery-format"},e.createElement(ca,a({},d))),e.createElement("li",{className:"hero-courses__column hero-courses__column--entry-requirements"},e.createElement(ca,a({},v))),e.createElement("li",{className:"hero-courses__column hero-courses__column--fees"},e.createElement(ca,a({},_)))),e.createElement("div",{className:"hero-courses__button-wrapper"},e.createElement("ul",{className:"hero-courses__buttons"},s&&s.map(function(C,t){return C.externalLink?e.createElement("li",{className:"hero-courses__button",key:t},e.createElement(we,{theme:l,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(u,{theme:l,label:C.label,hollow:t%2!=0,url:C.url,inverse:!0}))})),Z&&e.createElement(aa,{theme:l,inverse:!Z.inverse,hollow:!0,buttonLabel:Z.buttonLabel,modalChildren:Z.modalChildren})))))},exports.HeroProfile=function(C){var t=C.theme,l=C.studentName,n=C.studentStatus,r=C.courseName,i=C.courseDetails,o=C.studyLevel,s=C.titleTag,m=void 0===s?"h2":s,d=C.homeCountry,u=C.studentIntro,h=C.image,p=C.inverse;return e.createElement("div",{className:c("heroProfile",t&&"theme-".concat(t),p&&"theme-".concat(t,"--inverse")),id:"hero"},e.createElement("div",{className:"heroProfile__container"},e.createElement("div",{className:"heroProfile__details"},l&&e.createElement(m,{className:"heroProfile__title"},l),n&&e.createElement("p",{className:"heroProfile__status"},n),r&&e.createElement("p",{className:"heroProfile__courseName"},r),(o||d||i&&i.length>0)&&e.createElement("ul",{className:"heroProfile__studentDetails"},i&&i.length>0&&e.createElement("li",null,e.createElement("div",{className:"heroProfile__iconContainer"},e.createElement(Te,{icon:"mortar-board",theme:t,backgroundColor:"pale"}),e.createElement("div",{className:"heroProfile__courseIconText"},e.createElement("span",null,1===i.length?"Course":"Courses",":"),e.createElement("div",{className:"heroProfile__courseDetails"},i.map(function(C,a){return e.createElement(L,{theme:t,key:a,text:C,inverse:p})}))))),o&&e.createElement("li",null,e.createElement("div",{className:"heroProfile__iconContainer"},e.createElement(Te,{icon:"scroll",theme:t,backgroundColor:"pale"}),e.createElement("div",{className:"heroProfile__iconText"},e.createElement("span",null,"Study level:"),e.createElement("span",null,o)))),d&&e.createElement("li",null,e.createElement("div",{className:"heroProfile__iconContainer"},e.createElement(Te,{icon:"flag",theme:t,backgroundColor:"pale"}),e.createElement("div",{className:"heroProfile__iconText"},e.createElement("span",null,"Home country:"),e.createElement("span",null,d))))),u&&e.createElement(L,{theme:t,text:u,inverse:p})),e.createElement("div",{className:"heroProfile__image-wrapper"},h&&e.createElement(_,a({},h,{altText:null==h?void 0:h.alt,fetchPriority:h.fetchPriority})))))},exports.ImageBlock=function(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.inverse,r=C.title,i=C.description,o=C.linkProps,s=C.fullWidth,m=C.makeHeadingFullWidth,d=C.images,u=C.htmlTag;if(!d||0===d.length)return null;var h=d.length>2?Array.from(d.slice(0,2)):Array.from(d);return e.createElement("div",{className:c("image-block",l&&"theme-".concat(l),n&&"theme-".concat(l,"--inverse"),s&&"image-block--full-width")},(r||i||o)&&e.createElement(g,{theme:l,inverse:n,title:r,description:i,linkProps:o,fullWidth:!!m,htmlTag:u}),e.createElement("div",{className:"image-block__container"},h&&h.map(function(C,t){var r=c({"image-block__image-container-single-image-full-width-true":1===d.length&&s,"image-block__image-container-single-image-full-width-false":1===d.length&&!s,"image-block__image-container-first-image-full-width-true":d.length>1&&0===t&&s,"image-block__image-container-first-image-full-width-false":d.length>1&&0===t&&!s,"image-block__image-container-second-image-full-width-true":d.length>1&&1===t&&s,"image-block__image-container-second-image-full-width-false":d.length>1&&1===t&&!s});return e.createElement("div",{key:t,className:r},e.createElement(Oe,a({},C,{theme:l,inverse:n})))})))},exports.ImageCarousel=function(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0!==l&&l,r=C.title,i=C.description,o=C.linkProps,s=C.fullWidth,m=void 0!==s&&s,d=C.widerImage,u=C.images,h=C.htmlTag;return e.createElement("section",{className:c("image-carousel",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"),m&&"image-carousel--full-width",d&&"image-carousel--wider-image")},(r||i)&&e.createElement(g,{theme:a,htmlTag:h,inverse:n,title:r,description:i,linkProps:o}),e.createElement("div",{className:"image-carousel__grid"},e.createElement($e,{theme:a,inverse:n,type:"image",cards:u})))},exports.InPageNavigation=function(t){var l,n,r=t.theme,i=void 0===r?"uobmain":r,o=t.inverse,s=void 0!==o&&o,m=t.links,d=t.expandableHeader,u=void 0===d?"Page contents":d,h=e.useState(!1),p=h[0],f=h[1],L=e.useState("not-docked"),v=L[0],g=L[1],E=e.useState(null),_=E[0],M=E[1],b=e.useRef(null),Z=e.useRef(null),H=e.useRef(null),w=e.useRef(null),V=e.useRef(null),y=function(){f(!1)};return l=V,n=function(){return y()},e.useEffect(function(){var e=function(e){!l.current||e.target instanceof HTMLElement&&l.current.contains(e.target)||n()};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),function(){document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[l,n]),e.useEffect(function(){var e;H.current=new IntersectionObserver(function(C){var t;e=null===(t=C.find(function(e){return e.isIntersecting}))||void 0===t?void 0:t.target,g(e?"docked":"not-docked")},{rootMargin:"0px 0px -100%"}),Z.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?g("docked-at-bottom"):!a&&e&&g("docked")}),b.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&&M(t.id)},{rootMargin:"0px 0px -".concat(.7*window.innerHeight,"px 0px")});var C=document.querySelectorAll(".anchor-target");C.forEach(function(e){b&&b.current&&b.current.observe(e)});var t=document.querySelectorAll("#footer");t.forEach(function(e){Z&&Z.current&&Z.current.observe(e)});var a=document.querySelectorAll("#sidebar");return a.forEach(function(e){H&&H.current&&H.current.observe(e)}),function(){C.forEach(function(e){b&&b.current&&b.current.unobserve(e)}),a.forEach(function(e){H&&H.current&&H.current.unobserve(e)}),t.forEach(function(e){Z&&Z.current&&Z.current.unobserve(e)})}},[]),m.links.map(function(e){return e.url.substring(1)===_?e.active=!0:e.active=!1}),e.createElement("div",{className:c("in-page-navigation",i&&"theme-".concat(i),s&&"theme-".concat(i,"--inverse"))},e.createElement("div",{className:c("in-page-navigation--mobile",v)},e.createElement("div",{className:"in-page-navigation__closed"},e.createElement("div",{className:"in-page-navigation__top-container"},e.createElement("div",{className:"in-page-navigation__right-wrapper"},e.createElement("div",{className:"in-page-navigation__menu-button"},e.createElement("span",{className:"in-page-navigation__expandable-header"},u),e.createElement(be,{theme:"uobmain",icon:"menu",onClick:function(){f(!0)},title:"Open menu",ariaControls:"in-page-navigation",ref:w,ariaExpanded:p})))))),p&&e.createElement("div",{className:"in-page-navigation__overlay"}),e.createElement(C.AnimatePresence,null,p&&e.createElement(C.motion.div,{className:"in-page-navigation__open",initial:{x:"100%"},animate:{x:"0"},exit:{x:"100%"},transition:{type:"tween"},key:"in-page-navigation__open",ref:V},e.createElement(Ze,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(be,{theme:"uobmain",inverse:!0,icon:"cross",onClick:y,title:"Close menu",ariaControls:"in-page-navigation"})))),e.createElement(wa,a({},m,{theme:"uobmain"})))))),e.createElement("div",{className:c("in-page-navigation--desktop",v)},e.createElement(wa,a({},m,{theme:i}))))},exports.IntroText=function(C){var t=C.text,a=C.theme,l=void 0===a?"uobmain":a,n=C.inverse,r=C.fullWidth,i=C.removeBottomPadding,o=void 0!==i&&i,s=C.removeTopPadding,m=void 0!==s&&s;return e.createElement("div",{className:c("intro-text",l&&"theme-".concat(l),n&&"theme-".concat(l,"--inverse"),r&&"intro-text--full-width",o&&"intro-text--no-bottom-padding",m&&"intro-text--no-top-padding")},e.createElement("div",{className:"intro-text__container"},e.createElement("p",{className:"intro-text__text"},t)))},exports.LeadNewsArticles=function(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.featuredArticle,r=C.otherLeadArticles,i=C.mostReadNews;return e.createElement("section",{className:c("lead-news-articles",l&&"theme-".concat(l))},e.createElement("div",{className:"lead-news-articles__container"},e.createElement("div",{className:"lead-news-articles__main-container"},e.createElement("div",{className:"lead-news-articles__featured-card"},e.createElement(qe,a({},n,{isPrimary:!0}))),e.createElement("ul",{className:"lead-news-articles__secondary-card-container"},r.map(function(C,t){return e.createElement("li",{className:"lead-news-articles__secondary-card",key:t},e.createElement(qe,{theme:l,image:C.image,title:C.title,href:C.href,titleTag:C.titleTag,publishDate:C.publishDate}))}))),e.createElement("div",{className:"lead-news-articles__side-container"},e.createElement(Va,a({},i)))))},exports.ListTable=function(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.listItems;return e.createElement("div",{className:c("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(L,{inverse:!0,theme:"uobmain",text:C}))})):null)},exports.ListingFilterWrapper=function(t){var a=t.theme,l=t.showFilterButtonLabel,n=t.numSelected,r=t.filterElement,i=e.useState(!1),o=i[0],m=i[1],d=e.useRef(null),u=function(e){"Escape"===e.key&&o&&m(!1)};return e.useEffect(function(){return document.addEventListener("keydown",u),function(){document.removeEventListener("keydown",u)}}),e.useEffect(function(){var e,C;o?null===(e=d.current)||void 0===e||e.showModal():null===(C=d.current)||void 0===C||C.close()},[o]),e.createElement(e.Fragment,null,e.createElement("div",{className:c("listing-filter-wrapper","theme-".concat(a))},e.createElement("div",{className:"listing-filter-wrapper__mobile"},e.createElement("button",{className:"listing-filter-wrapper__show-filter-button",onClick:function(){m(!0),document.body.classList.add("lock-scroll")}},e.createElement(s,{theme:"uobmain",icon:"settings"}),l,n&&e.createElement("span",{className:"listing-filter-wrapper__num-selected"},n,e.createElement("span",{className:"sr-only"},n>1?"filters":"filter"," selected"))))),e.createElement(Ze,null,e.createElement(C.motion.dialog,{className:c("listing-filter-wrapper__dialog","theme-".concat(a)),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},ref:d},e.createElement("div",{className:"listing-filter-wrapper__popup-wrapper"},e.createElement("div",{className:"listing-filter-wrapper__popup"},e.createElement("button",{className:"listing-filter-wrapper__close-button",onClick:function(){m(!1),document.body.classList.remove("lock-scroll")}},e.createElement(s,{icon:"slim-cross",theme:a,ariaHidden:!0}),e.createElement("span",{className:"sr-only"},"Close")),r)))),e.createElement("div",{className:"listing-filter-wrapper__desktop"},r))},exports.ListingResults=function(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.showCategory,r=void 0!==n&&n,i=C.cards,o=C.headingInfo;return e.createElement(e.Fragment,null,o&&e.createElement(g,a({},o,{theme:l,fullWidth:!0})),e.createElement("ul",{className:c("listing-results",l&&"theme-".concat(l))},i.map(function(C,t){return e.createElement("li",{className:"listing-results__card",key:t},e.createElement(Oa,a({},C,{showCategory:r,theme:l})))})))},exports.ListingResultsCount=function(C){var t=C.count,a=C.theme,l=void 0===a?"uobmain":a;return e.createElement("p",{className:c("listing-results-count",l&&"theme-".concat(l))},e.createElement("span",{className:"listing-results-count__number"},t.toLocaleString())," results were found based on your search term")},exports.LocationSection=function(C){var t=C.theme,l=C.embedChildren,n=C.googleMapLink,r=C.address,i=C.services,o=C.link;return e.createElement("section",{className:c("location-section",t&&"theme-".concat(t),(!i||i.length<1)&&"location-section--no-services")},e.createElement("div",{className:"location-section__container"},e.createElement("h2",{className:"location-section__title"},"Location"),e.createElement("div",{className:"location-section__grid-wrapper"},e.createElement("div",{className:"location-section__embed"},e.createElement(je,null,l)),e.createElement("div",{className:"location-section__address-wrapper"},e.createElement("div",{className:"location-section__address"},e.createElement(hC,{theme:t,title:"Address",iconType:"slim-location",value:r.map(function(e){return"<span>".concat(e,"</span>")}).join("")})),o&&(null==o?void 0:o.title)&&(null==o?void 0:o.url)&&e.createElement("div",{className:"location-section__link-wrapper"},e.createElement(h,a({},o,{inverse:!0}))),e.createElement("div",{className:"location-section__button"},e.createElement(u,{label:"View on Google Maps",theme:t,url:n}))),e.createElement("div",{className:"location-section__services"},null==i?void 0:i.map(function(C,l){return e.createElement(hC,a({},C,{theme:t,key:l}))})))))},exports.LocationSelector=oa,exports.MainWrapper=function(C){var t=C.children;return e.createElement("main",{id:"main"},t)},exports.ModalCTA=function(C){var t=C.theme,a=C.heading,l=C.inverse,n=C.description,r=C.buttonLabel,i=C.buttonModifier,o=C.modalChildren,s=C.htmlTag,m=void 0===s?"h3":s,d=e.useState(!1),h=d[0],p=d[1],L=function(){p(!1),document.body.classList.remove("lock-scroll")};return e.createElement("div",{className:c("modal-cta",t&&"theme-".concat(t),l&&"theme-".concat(t,"--inverse"))},e.createElement(f,{htmlTag:m,classNames:"modal-cta__heading"},a),n&&e.createElement("p",{className:"modal-cta__description"},n),e.createElement("div",{className:c("modal-cta__button",i&&"theme-".concat(t,"--buttonModifier"))},e.createElement(u,{inverse:!l,label:r,onClick:function(){h?L():(p(!0),document.body.classList.add("lock-scroll"))},theme:t,buttonModifier:i})),h&&e.createElement(He,{centred:!0,theme:t,closeModal:L,isOpen:h},e.createElement(je,{className:"modal-cta__embed-wrapper"},o)))},exports.ModuleCardGroup=function(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.inverse,r=void 0===n||n,i=C.cards,o=Array.isArray(i)?i:[i];return e.createElement("div",{className:c("module-card-group",l&&"theme-".concat(l),r&&"theme-".concat(l,"--inverse"))},e.createElement("div",{className:"module-card-group__container"},e.createElement("div",{className:"module-card-group__grid"},o.map(function(C,t){return e.createElement(d,a({key:t},C,{theme:l}))}))))},exports.NewsArticlesPromoBlock=function(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.heading,r=C.cards,i=C.cardType,o=void 0===i?"featured-news":i;return e.createElement("section",{className:c("news-articles-promo-block",l&&"theme-".concat(l),o&&"news-articles-promo-block--".concat(o))},e.createElement("div",{className:"news-articles-promo-block__heading-container"},n&&e.createElement("h2",{className:"news-articles-promo-block__heading"},n)),e.createElement("div",{className:"news-articles-promo-block__cards news-articles-promo-block__cards--mobile"},"featured-news"===o&&e.createElement($e,{theme:l,type:"featured-news",cards:r,inverse:!0,cardTitleTag:"h3"}),"promo-video"===o&&e.createElement($e,{theme:l,type:"promo-video",cards:r,inverse:!0,cardTitleTag:"h3",setCardInverse:"dark"})),e.createElement("ul",{className:"news-articles-promo-block__cards news-articles-promo-block__cards--desktop"},r.map(function(C,t){return e.createElement("li",{key:t},"featured-news"===o&&e.createElement(qe,a({},C,{inverse:!0,titleTag:"h3"})),"promo-video"===o&&e.createElement(xe,a({},C,{inverse:!1,titleTag:"h3"})))})))},exports.Pagination=function(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.numOfPages,n=C.onClick,r=C.currentPage,i=!pe("1248px");return l<=1?e.createElement(e.Fragment,null):e.createElement("div",{className:c("pagination",a&&"theme-".concat(a))},e.createElement("ul",{className:"pagination__container"},e.createElement("li",{className:"pagination__prev",key:"prev"},i?e.createElement(u,{theme:a,label:"Previous",onClick:function(){return n(r-1)},hollow:!0,disabled:r<1}):e.createElement(be,{theme:a,icon:"arrow-left",title:"Previous",onClick:function(){return n(r-1)},disabled:r<1,inverse:!0})),e.createElement(qa,{currentPage:r,onClick:n,theme:a,numOfPages:l}),e.createElement("li",{className:"pagination__next",key:"next"},i?e.createElement(u,{theme:a,label:"Next",onClick:function(){return n(r+1)},hollow:!0,disabled:r+1===l}):e.createElement(be,{theme:a,icon:"arrow-right",title:"Next",onClick:function(){return n(r+1)},disabled:r+1===l,inverse:!0}))))},exports.PromoBlock=function(C){var t,l=C.theme,n=C.inverse,r=C.type,i=C.title,s=C.description,m=C.link,d=C.cards,u=C.imageOrientation,p=void 0===u?"left":u,L=C.titleTag,v=void 0===L?"h2":L,g=C.cardTitleTag,E=void 0===g?"h3":g,_=C.cardCopyIsRichText,M=void 0!==_&&_,b=C.fullWidth,Z=void 0!==b&&b,H=C.fullWidthTitle,w=void 0!==H&&H,V=C.showFilters,y=void 0!==V&&V,N=C.firstFilterSelect,k=C.secondFilterSelect,x=!1;pe("768px")?d.length>1&&(x=!0):(Z&&d.length>2||d.length>3)&&(x=!0);var T=c(((t={})["promo-block__grid"]=!0,t["promo-block__grid--single"]=1===d.length,t["promo-block__grid--two-cards"]=2===d.length,t["promo-block__grid--three-cards"]=3===d.length,t["promo-block__grid--four-plus-cards"]=d.length>3,t));return e.createElement("div",{className:c("promo-block","promo-block--".concat(r),l&&"theme-".concat(l),n&&"theme-".concat(l,"--inverse"),Z&&"promo-block--full-width")},e.createElement("div",{className:"promo-block__container"},e.createElement("div",{className:c("promo-block__top",w&&"promo-block__top--full-width")},i&&e.createElement(f,{htmlTag:v,classNames:c("promo-block__title","h3"===v&&"promo-block__title--h3")},i),s&&e.createElement(o,{theme:"uobmain",inverse:n,text:s}),m&&e.createElement("div",{className:"promo-block__text-link"},e.createElement(h,{theme:l,inverse:n,url:m.url,title:m.title,externalLink:m.externalLink}))),y&&e.createElement("div",{className:"promo-block__filters"},e.createElement("div",{className:"promo-block__filter-wrapper"},N&&e.createElement(Xt,a({},N))),e.createElement("div",{className:"promo-block__filter-wrapper"},k&&e.createElement(Xt,a({},k)))),e.createElement("div",{className:"promo-block__content"},e.createElement("div",{className:"promo-block__cards"},!x&&e.createElement("ul",{className:T},d.map(function(C,t){return e.createElement("li",{className:"promo-block__card-item",key:t},function(C){var t=a(a({},C),{cardCopyIsRichText:M});switch(r){case"promo":return e.createElement(Ne,a({},t));case"promo-signpost":return e.createElement(ke,a({},C));case"promo-video":return e.createElement(xe,a({},C));case"promo-profile":return e.createElement(Ae,a({},C));default:return e.createElement(e.Fragment,null)}}(a(a({},C),{inverse:n,isSingle:1===d.length,imageOrientation:p,titleTag:E})))})),x&&e.createElement($e,{theme:l,inverse:n,type:r,cards:d,cardTitleTag:E,cardCopyIsRichText:M})))))},exports.PromoBlockGrid=function(C){var t=C.theme,l=C.inverse,n=C.type,r=C.title,i=C.description,s=C.link,m=C.cards,d=C.imageOrientation,u=void 0===d?"left":d,p=C.fullWidth;return e.createElement("div",{className:c("promo-block-grid","promo-block-grid--".concat(n),t&&"theme-".concat(t),l&&"theme-".concat(t,"--inverse"),p&&"promo-block-grid--full-width"),id:"promo-block-grid"},e.createElement("div",{className:"promo-block-grid__container"},e.createElement("div",{className:"promo-block-grid__top"},r&&e.createElement("h2",null,r),i&&e.createElement(o,{theme:"uobmain",inverse:l,text:i}),s&&e.createElement("div",{className:"promo-block-grid__text-link"},e.createElement(h,{theme:"uobmain",inverse:l,url:s.url,title:s.title,externalLink:s.externalLink}))),e.createElement("div",{className:"promo-block-grid__content"},e.createElement("div",{className:"promo-block-grid__cards"},m.length>0&&e.createElement("ul",{className:"promo-block-grid__grid"},m.map(function(C,t){return e.createElement("li",{className:"promo-block-grid__card-item",key:t},function(C){switch(n){case"promo":return e.createElement(Ne,a({},C));case"promo-signpost":return e.createElement(ke,a({},C));case"promo-video":return e.createElement(xe,a({},C));default:return e.createElement(e.Fragment,null)}}(a(a({},C),{inverse:l,isSingle:1===m.length,imageOrientation:u,titleTag:r?"h3":"h2"})))}))))))},exports.QuoteBlock=function(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=C.title,r=C.description,i=C.cite,o=C.role,m=C.quote,d=C.quoteeProfileImage,u=C.quoteeProfileImageAltText,p=C.cta,f=C.fullWidth,L=void 0!==f&&f,v=C.htmlTag;return e.createElement("div",{className:c("quote-block","theme-".concat(a),l&&"theme-".concat(a,"--inverse"),L&&"quote-block--full-width")},(n||r)&&e.createElement(g,{theme:a,inverse:l,htmlTag:v,title:n,description:r}),e.createElement("blockquote",{className:c("quote-block__container",!d&&"quote-block__container--no-image")},e.createElement("div",{className:"quote-block__doublequote quote-block__doublequote--open"},e.createElement(s,{icon:"quote-marks",theme:a})),e.createElement("p",{className:"quote-block__quote"},m),d&&e.createElement("div",{className:"quote-block__quotee-image"},e.createElement(_,{src:{default:d},altText:u})),(i||o)&&e.createElement("footer",{className:"quote-block__cite"},i&&e.createElement("cite",{className:"quote-block__cite-cite"},i),o&&e.createElement("div",{className:"quote-block__cite-role"},o)),e.createElement("div",{className:"quote-block__doublequote quote-block__doublequote--close"},e.createElement(s,{icon:"quote-marks",theme:a})),p&&e.createElement("div",{className:"quote-block__optional-link"},e.createElement(h,{inverse:l,onKeyDown:function(){},theme:a,title:p.title,url:p.url}))))},exports.RelatedCourses=function(C){var t,l=C.theme,n=void 0===l?"uobmain":l,r=C.inverse,i=void 0===r||r,o=C.heading,s=C.description,m=C.linkProps,d=C.headingStyle,u=C.fullWidth,p=C.cards,f=pe("768px"),L=f&&p.length>1||!f&&u&&p.length>2||!f&&!u&&p.length>3,v=c(((t={})["related-courses__grid"]=!0,t["related-courses__grid--single"]=1===p.length,t["related-courses__grid--two-cards"]=2===p.length,t["related-courses__grid--three-cards"]=3===p.length,t["related-courses__grid--four-plus-cards"]=p.length>3,t));return e.createElement("section",{className:c("related-courses",n&&"theme-".concat(n),i&&"theme-".concat(n,"--inverse"),u&&"related-courses--full-width")},e.createElement("div",{className:"related-courses__container"},e.createElement("h2",{className:c("related-courses__heading",d&&"related-courses__heading--".concat(d))},o),s&&e.createElement("div",{className:"related-courses__description"},s),m&&m.url&&m.title&&e.createElement("div",{className:"related-courses__arrow-link-container"},e.createElement(h,{theme:n,inverse:i,title:m.title,url:m.url})),e.createElement("div",{className:"related-courses__cards"},!L&&e.createElement("ul",{className:v},p.map(function(C,t){return e.createElement("li",{className:"related-courses__card-item",key:t},e.createElement(Pe,a({},C)))})),L&&e.createElement($e,{theme:n,inverse:i,type:"related",cards:p,cardTitleTag:"h3"}))))},exports.ResearchStoryCarousel=function(C){var t,l=C.theme,n=void 0===l?"uobmain":l,r=C.inverse,i=void 0===r||r,o=C.fullWidth,s=void 0!==o&&o,m=C.heading,d=C.description,u=C.cards,h=C.singleLink,p=C.titleTag,f=void 0===p?"h2":p,L=C.cardTitleTag,v=void 0===L?"h3":L,E=pe("768px"),_=E&&u.length>1||!E&&u.length>2,M=c(((t={})["research-story-carousel__grid"]=!0,t["research-story-carousel__grid--single"]=1===u.length,t["research-story-carousel__grid--two-cards"]=2===u.length,t["research-story-carousel__grid--three-plus-cards"]=u.length>3,t));return e.createElement("section",{className:c("research-story-carousel",n&&"theme-".concat(n),i&&"theme-".concat(n,"--inverse"),s&&"research-story-carousel--full-width")},e.createElement("div",{className:"research-story-carousel__container"},(m||d||h)&&e.createElement(g,{theme:n,inverse:!0,htmlTag:f,title:m,description:d,linkProps:h,fullWidth:!0}),e.createElement("div",{className:"research-story-carousel__cards"},!_&&e.createElement("ul",{className:M},u.map(function(C,t){return e.createElement("li",{key:t},e.createElement(Fe,a({},C)))})),_&&e.createElement($e,{theme:n,inverse:i,type:"research-story",cards:u,cardTitleTag:v}))))},exports.RichText=o,exports.ScholarshipCarousel=function(C){var t,l=C.theme,n=void 0===l?"uobmain":l,r=C.inverse,i=void 0===r||r,o=C.fullWidth,s=void 0!==o&&o,m=C.headingProps,d=C.cards,u=pe("768px"),h=u&&d.length>1||!u&&d.length>2,p=c(((t={})["scholarship-carousel__grid"]=!0,t["scholarship-carousel__grid--single"]=1===d.length,t["scholarship-carousel__grid--two-cards"]=2===d.length,t["scholarship-carousel__grid--three-plus-cards"]=d.length>3,t));return e.createElement("section",{className:c("scholarship-carousel",n&&"theme-".concat(n),i&&"theme-".concat(n,"--inverse"),s&&"scholarship-carousel--full-width")},e.createElement("div",{className:"scholarship-carousel__container"},m&&e.createElement(g,a({},m,{theme:n,inverse:i,fullWidth:s})),e.createElement("div",{className:"scholarship-carousel__cards"},!h&&e.createElement("ul",{className:p},d.map(function(C,t){return e.createElement("li",{className:"related-courses__card-item",key:t},e.createElement(Be,a({},C,{inverse:i})))})),h&&e.createElement($e,{theme:n,inverse:i,type:"scholarship",cards:d,cardTitleTag:"h3"}))))},exports.ScrollableTable=function(C){var t=C.text,a=C.theme,l=void 0===a?"uobmain":a,n=C.inverse,r=C.fullWidth,i=void 0!==r&&r,o=C.removeBottomPadding,s=void 0!==o&&o,m=C.tableCategory,d=void 0===m?Ka.NotSpecified:m,u=e.useRef(null),h=e.useState(!1),p=h[0],f=h[1],L=e.useState(!0),v=L[0],g=L[1],E=e.useState(!1),_=E[0],M=E[1],b=e.useState(function(){return"scrollable-table-".concat(Math.random().toString(16).slice(2))})[0],Z=function(){var e=u.current;e&&(f(e.scrollLeft>0),g(e.scrollLeft<e.scrollWidth-e.clientWidth))},H=e.useCallback(function(){var e=u.current;if(e){var C=e.scrollWidth>e.clientWidth;M(C),Z()}},[]),w=function(e){var C=u.current;if(C){var t="left"===e?C.scrollLeft-200:C.scrollLeft+200;C.scrollTo({left:t,behavior:"smooth"})}};return e.useEffect(function(){H();var e=u.current;e&&e.addEventListener("scroll",Z);var C=function(){return H()};return window.addEventListener("resize",C),function(){e&&e.removeEventListener("scroll",Z),window.removeEventListener("resize",C)}},[H]),e.createElement("div",{className:c("scrollable-table",i&&"scrollable-table--full-width",l&&"theme-".concat(l),n&&"theme-".concat(l,"--inverse"),s&&"scrollable-table--no-bottom-padding")},e.createElement("div",{className:"scrollable-table__container"},e.createElement("span",null,_&&e.createElement("div",{className:"scrollable-table__scroll-button-wrapper"},e.createElement("p",null,"Scroll buttons"),e.createElement(be,{key:"iconButtonLeft",theme:l,icon:"arrow-left",onClick:function(){return w("left")},title:"Scroll left",ariaControls:b,disabled:!p,inverse:n}),e.createElement(be,{key:"iconButtonRight",theme:l,icon:"arrow-right",onClick:function(){return w("right")},title:"Scroll right",ariaControls:b,disabled:!v,inverse:n})),e.createElement("div",{className:c("scrollable-table__table-wrapper","scrollable-table__".concat(d),n&&"scrollable-table__".concat(d,"--inverse")),ref:u,id:"".concat(b),tabIndex:0},e.createElement("span",{dangerouslySetInnerHTML:{__html:t}})))))},exports.SearchCourses=ea,exports.SidebarWrapper=function(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.sidebarElement,n=C.children;return e.createElement("div",{id:"sidebar",className:c("sidebar-wrapper",a&&"theme-".concat(a),!l&&"sidebar-wrapper--no-side-element")},e.createElement("div",{className:"sidebar-wrapper__grid-container"},l&&e.createElement("div",{className:"sidebar-wrapper__sidebar"},l),e.createElement("div",{className:"sidebar-wrapper__children"},n)))},exports.SignPost=function(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.inverse,n=void 0!==l&&l,r=C.items,i=C.fullWidth,o=void 0!==i&&i,s=C.htmlTag,m=void 0===s?"h2":s;return e.createElement("div",{className:c("signpost",o&&"signpost--full-width",a&&"theme-".concat(a),n&&"theme-".concat(a,"--inverse"))},e.createElement("div",{className:"signpost__container"},e.createElement("div",{className:"signpost__grid"},r.map(function(C){return e.createElement("div",{className:"signpost__item",key:C.title},C.tag&&e.createElement("p",{className:"signpost__tag"},C.tag),e.createElement(f,{htmlTag:m,classNames:"signpost__title"},C.title),e.createElement(h,{url:C.linkUrl,title:C.linkLabel,theme:a,inverse:n,externalLink:C.external}))}))))},exports.SingleButton=function(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.inverse,r=void 0!==n&&n,i=C.includeIcon,o=C.link,s=C.fullWidth;return e.createElement("div",{className:c("single-button",l&&"theme-".concat(l),r&&"theme-".concat(l,"--inverse"),s&&"single-button--full-width")},e.createElement("div",{className:"single-button__container"},i?e.createElement(we,a({},o,{inverse:!r})):e.createElement(u,a({},o,{inverse:!r}))))},exports.SkipToContent=function(C){var t=C.theme,a=void 0===t?"uobmain":t;return e.createElement("div",{className:c("skip-to-content",a&&"theme-".concat(a))},e.createElement("a",{className:"skip-to-content__link",href:"#main"},"Skip to main content"))},exports.StaffListingCarousel=function(C){var t,l=C.theme,n=void 0===l?"uobmain":l,r=C.inverse,i=void 0===r||r,o=C.fullWidth,s=void 0!==o&&o,m=C.heading,d=C.headingStyle,u=void 0===d?null:d,p=C.cards,L=C.singleLink,v=C.titleTag,g=void 0===v?"h2":v,E=C.useCarousel,_=void 0===E||E,M=pe("768px"),b=_&&M&&p.length>1||_&&!M&&p.length>2,Z=c(((t={})["staff-listing-carousel__grid"]=!0,t["staff-listing-carousel__grid--single"]=1===p.length,t["staff-listing-carousel__grid--two-cards"]=2===p.length,t["staff-listing-carousel__grid--three-plus-cards"]=p.length>3,t));return e.createElement("section",{className:c("staff-listing-carousel",n&&"theme-".concat(n),i&&"theme-".concat(n,"--inverse"),s&&"staff-listing-carousel--full-width",!_&&"staff-listing-carousel--no-carousel")},e.createElement("div",{className:"staff-listing-carousel__container"},m&&e.createElement(f,{htmlTag:g,classNames:c("staff-listing-carousel__heading","staff-listing-carousel__heading--".concat(g),u&&"staff-listing-carousel__heading--".concat(u))},m),e.createElement("div",{className:"staff-listing-carousel__cards"},!b&&e.createElement("ul",{className:Z},p.map(function(C,t){return e.createElement("li",{className:"related-courses__card-item",key:t},e.createElement(Se,a({},C,{isSingle:1===p.length})))})),b&&e.createElement($e,{theme:n,inverse:i,type:"staff",cards:p,cardTitleTag:"h3"})),1===p.length&&L&&e.createElement(h,{theme:n,url:L.url,title:L.title,inverse:!0})))},exports.StandardListingFilter=function(C){var t=C.theme,l=C.heading,n=C.listingGroups,r=C.onClearFilters,i=C.onViewResults;return e.createElement("div",{className:c("standard-listing-filter",t&&"theme-".concat(t))},e.createElement("p",{className:"standard-listing-filter__heading"},l),e.createElement("ul",{className:"standard-listing-filter__list"},n.map(function(C){var l;return"date"===C.type?e.createElement("li",{className:"standard-listing-filter__item",key:C.name},e.createElement(Ga,a({},C,{theme:t,defaultValue:null!==(l=C.defaultValue)&&void 0!==l?l:"",onChange:C.onChange}))):"radio"===C.type?e.createElement("li",{className:"standard-listing-filter__item",key:C.name},e.createElement(LC,{type:"radio",heading:C.heading,theme:t,showMoreText:Ya(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(LC,{type:"checkbox",heading:C.heading,theme:t,showMoreText:Ya(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(Ua,{heading:C.heading,selectContent:C.selectContent,theme:t})):void 0})),i&&e.createElement("div",{className:"standard-listing-filter__results-button"},e.createElement(u,{label:"View selected results",onClick:i,theme:t})),e.createElement("div",{className:"standard-listing-filter__clear-button"},e.createElement(u,{label:"Clear filters",onClick:r,theme:t,hollow:!0})))},exports.TabsBlock=function(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.inverse,r=void 0!==n&&n,i=C.title,s=C.description,m=C.tabItems,d=C.fullWidth,f=C.htmlTag,L=void 0===f?"h2":f,v=C.removeBottomPadding,_=void 0!==v&&v,M=C.name,b=C.enableHashNavigation,Z=void 0!==b&&b,H=e.useRef(null),w=e.useCallback(function(){return m.findIndex(function(e){return Fa(null!=M?M:"",e.title)===window.location.hash.substring(1)})},[m,M]),V=e.useState(0),y=V[0],N=V[1],k=e.useState(-1),x=k[0],T=k[1],S=pe("1248px");function P(e){if(Z){var C=window.location.href.replace(window.location.hash,""),t=Fa(null!=M?M:"",m[e].title);history.pushState(null,"null",C.concat("#",t))}}function O(e,C){e.preventDefault(),N(C),P(C)}e.useEffect(function(){if(0!==window.location.hash.length){var e=w();e<0||(N(e),T(e))}},[w,N]);var q=function(e){switch(e.key){case"ArrowLeft":case"ArrowUp":case"Left":case"Up":if(0===y)return;N(y-1),T(y-1),P(y-1);break;case"ArrowRight":case"ArrowDown":case"Right":case"Down":if(y>=m.length-1)return;N(y+1),T(y+1),P(y+1);break;case"Home":N(0),T(0),P(0);break;case"End":N(m.length-1),T(m.length-1),P(m.length-1)}};function F(){var e="h3";return i&&"h2"===L?e="h3":i&&"h3"===L&&(e="h4"),e}return e.useEffect(function(){var e=function(e){if(e.preventDefault(),0!==window.location.hash.length){var C=w();C<0||(N(C),T(C))}};return window.addEventListener("hashchange",e),function(){window.removeEventListener("hashchange",e)}},[y,w]),e.createElement(e.Fragment,null,S&&e.createElement(E,{heading:{title:i,description:s,fullWidth:d,htmlTag:L},theme:l,inverse:r,fullWidth:d,accordionItems:m.map(function(e,C){return{key:e.title||C,title:e.title,text:e.content,titleTag:e.titleTag?e.titleTag:F(),primaryButton:e.primaryButton,secondaryButton:e.secondaryButton,link:e.link}})}),e.createElement("div",{className:c("tabs",l&&"theme-".concat(l),r&&"theme-".concat(l,"--inverse"),d&&"tabs--full-width",_&&"tabs--no-bottom-padding"),id:"tabs",ref:H},!S&&e.createElement(e.Fragment,null,e.createElement(g,{theme:l,inverse:r,htmlTag:L,title:i,description:s,fullWidth:d}),e.createElement("div",{className:"tabs__container"},e.createElement("span",null,e.createElement(Ba,{theme:l,inverse:r},m.map(function(C,t){return e.createElement(Ia,{key:t,id:t,theme:l,inverse:r,tabItem:C,tabListTopRef:H,isActive:t===y,hasFocus:t===x,enableHashNavigation:Z,tabsBlockName:M,handleClick:O,handleKeyboardNavigation:q})})),m.map(function(C,t){return e.createElement(Da,{key:t,isActive:t===y,inverse:r,theme:l,title:C.title,tabsBlockName:M,htmlTag:C.titleTag?C.titleTag:F()},C.content&&e.createElement(o,{theme:l,inverse:r,text:C.content}),C.accordionItems&&C.accordionItems.map(function(C){return e.createElement(p,a({key:C.key},C,{inverse:r}))}),(C.primaryButton&&C.primaryButton.text||C.secondaryButton&&C.secondaryButton.text)&&e.createElement("div",{className:"tabs__optional-buttons"},C.primaryButton&&C.primaryButton.text&&e.createElement(u,{label:C.primaryButton.text,url:C.primaryButton.url,theme:l,inverse:!r}),C.secondaryButton&&C.secondaryButton.text&&e.createElement(u,{hollow:!0,label:C.secondaryButton.text,url:C.secondaryButton.url,theme:l,inverse:!r})),C.link&&C.link.text&&e.createElement("div",{className:"tabs__optional-link"},e.createElement(h,{theme:l,inverse:r,url:C.link.url,title:C.link.text})))}))))))},exports.TextWithBackground=function(C){var t=C.text,a=C.theme,l=void 0===a?"uobmain":a,n=C.inverse,r=C.headingLevel,i=C.headingText,s=C.url,m=C.linkTitle,d=C.externalLink,h=C.linkStyle,p=C.fullWidth,f=C.removeBottomPadding,L=void 0!==f&&f,v=r;return e.createElement("div",{className:c("text-with-background",l&&"theme-".concat(l),n&&"theme-".concat(l,"--inverse"),p&&"text-with-background--full-width",L&&"text-with-background--no-bottom-padding")},i&&e.createElement("div",{className:"text-with-background__heading-wrapper"},e.createElement(v,null,i)),e.createElement(o,{text:t,inverse:n,theme:l}),s&&m&&e.createElement("div",{className:"text-with-background__link-wrapper"},e.createElement("div",{className:"text-with-background__link-inner-wrapper"},("primary"===h||"secondary"===h)&&e.createElement(u,{url:s,theme:l,label:m,externalLink:d,hollow:"secondary"===h,inverse:!n}),"paragraph-link"===h&&e.createElement(ta,{url:s,label:m,externalLink:d,theme:l,inverse:n}))))},exports.TopicSelector=function(C){var t=C.topics,a=C.theme,l=void 0===a?"uobmain":a,n=C.titleTag,r=C.heading;return e.createElement("section",{className:c("topics-selector",l&&"theme-".concat(l))},e.createElement("div",{className:"topics-selector__container"},"h2"===n?e.createElement("h2",{className:"topics-selector__heading"},r):e.createElement("h3",{className:"topics-selector__heading"},r),e.createElement("ul",{className:"topics-selector__topics-container"},t.map(function(C,t){return e.createElement("li",{className:"topics-selector__topic",key:t},e.createElement(Aa,{theme:l,label:C.label,url:C.url,externalLink:C.externalLink}))}))))},exports.TwoColumnWrapper=function(C){var t=C.theme,a=void 0===t?"uobmain":t,l=C.firstColumn,n=C.secondColumn;return e.createElement("div",{className:c("two-column-wrapper",a&&"theme-".concat(a))},e.createElement("div",{className:"two-column-wrapper__grid-container"},e.createElement("div",{className:c("two-column-wrapper__first-column",!n&&"two-column-wrapper__first-column-centred")},l),n&&e.createElement("div",{className:"two-column-wrapper__second-column"},n)))},exports.VideoCardComponent=function(t){var a=t.theme,l=t.tag,n=t.title,r=t.linkUrl,i=t.linkText,o=t.externalLink,s=t.cards,m={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:c("video-card-component",a&&"theme-".concat(a)),id:"video-card-component"},e.createElement("div",{className:"video-card-component__content"},l&&e.createElement("p",{className:"video-card-component__tag"},l),e.createElement("h2",{className:"video-card-component__title"},n),r&&i&&e.createElement("div",{className:"video-card-component__link"},e.createElement(h,{theme:a,url:r,title:i,inverse:!0,externalLink:o})),e.createElement("div",{className:"video-card-component__carousel"},e.createElement($e,{theme:a,type:"video",inverse:!0,cards:s,cardTitleTag:"h3"})),e.createElement("ul",{className:c("video-card-component__cards-desktop",(!r||!i)&&"video-card-component__cards-desktop--no-link")},s.map(function(t,l){return e.createElement(C.motion.li,{key:l,variants:m,initial:"initial",whileInView:"animate",viewport:{once:!0,amount:.2},custom:l},l<=1?e.createElement("div",{className:"video-card-component__lines video-card-component__lines--".concat(l)},1===l&&e.createElement("svg",{width:"406",height:"128",viewBox:"0 0 406 128",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M1 1L123 29L210 127.5",stroke:"black"}),e.createElement("path",{d:"M13 112L123 29L405 51",stroke:"black"}))):"",e.createElement(Ve,{theme:a,image:{src:{default:t.image.src.default,medium:t.image.src.medium,small:t.image.src.small},altText:""},title:t.title,youtubeId:t.youtubeId,buttonLabel:t.buttonLabel,titleTag:"h3"}))}))))},exports.VideoEmbed=function(C){var t=C.theme,l=void 0===t?"uobmain":t,n=C.inverse,r=void 0!==n&&n,i=C.imageSrc,o=C.videoUrl,s=C.videoId,m=C.heading,d=C.audioDescribedVideoId,u=C.audioDescribedVideoUrl,h=C.transcript,f=C.fullWidth,L=void 0!==f&&f,v=C.videoCaption,E=C.videoCredit,_=e.useState(!1),M=_[0],b=_[1];return e.createElement("div",{className:c("video-embed",L&&"video-embed--full-width",l&&"theme-".concat(l),r&&"theme-".concat(l,"--inverse"))},m&&e.createElement(g,a({},m,{theme:l,inverse:r})),e.createElement("div",{className:"video-embed__grid"},e.createElement("div",{className:"video-embed__content-wrapper"},e.createElement(Qa,{theme:l,imageSrc:i,videoUrl:M?o:u,videoId:M?d:s}),(v||E)&&e.createElement("div",{className:"video-embed__caption-wrapper"},v&&e.createElement("p",{className:"video-embed__caption"},v),E&&e.createElement("p",{className:"video-embed__credit"},E)),(d||u)&&(M?e.createElement("button",{className:"video-embed__audio-described-button",onClick:function(){return b(!1)}},"Non-audio described version"):e.createElement("button",{className:"video-embed__audio-described-button",onClick:function(){return b(!0)}},"Audio described version")),h&&e.createElement("div",{className:"video-embed__transcript"},e.createElement(p,{titleTag:"h3",theme:l,title:"Transcript",text:h,inverse:r})))))};