PageSourceSearch

https://www.solent.ac.uk/_next/static/chunks/7749-5b361c18956cebba.js

js solent.ac.uk collected 2026-09-25 08:57:46 UTC 30,617 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7749],{40296:(e,r,n)=>{n.d(r,{Ck:()=>d,O9:()=>u,c$:()=>m,cl:()=>c,mD:()=>l,mO:()=>a,mc:()=>s});var o=n(21626),t=n(79594),i=n(44366),a=o.Ay.div.withConfig({componentId:"sc-aaa735c-0"})(["position:relative;display:flex;flex-direction:column;"]),s=o.Ay.div.withConfig({componentId:"sc-aaa735c-1"})(["position:relative;flex-grow:1;user-select:none;"]),c=o.Ay.button.withConfig({componentId:"sc-aaa735c-2"})(["",""],function(e){var r=e.theme,n=e.$isOpen;return(0,o.AH)(["position:relative;display:block;height:100%;width:100%;font-size:1.125rem;text-align:left;line-height:normal;color:inherit;padding:0.5rem 2rem 0.5rem 1rem;background-color:",";border-radius:0.4rem;border:0.0625rem solid ",";white-space:nowrap;text-overflow:ellipsis;overflow:hidden;"," &:focus ","{outline:0.1rem solid ",";outline-offset:0.2rem;}"],r.colors.primaryContrast.hex,r.elements.input.border,n&&(0,o.AH)(["border-radius:0.4rem 0.4rem 0 0;"]),l,r.elements.input.border)}),l=(0,o.Ay)(t.A).withConfig({componentId:"sc-aaa735c-3"})(["",""],function(e){var r=e.$isOpen;return(0,o.AH)(["position:absolute;right:0.75rem;top:50%;margin:0 auto;height:0.75rem;width:0.5rem;transform:",";transform-origin:center;transition:200ms ease;color:inherit;"],r?"translateY(-50%) rotate(-90deg)":"translateY(-50%) rotate(90deg)")}),d=o.Ay.ul.withConfig({componentId:"sc-aaa735c-4"})(["",""],function(e){var r=e.theme,n=e.$isOpen;return(0,o.AH)(["position:absolute;left:0;right:0;top:calc(100% - 0.125rem);margin:0;height:0;max-height:20rem;font-size:1.125rem;overflow-y:auto;border:0rem;background-color:",";z-index:100;padding-left:0rem;"," ",""],r.colors.secondary.hex,(0,i.A)(),n&&(0,o.AH)(["height:auto;border:0.0625rem solid ",";border-radius:0 0 0.5rem 0.5rem;"],r.colors.secondary.tints[1].hex))}),m=o.Ay.li.withConfig({componentId:"sc-aaa735c-5"})(["",""],function(e){var r=e.theme;return(0,o.AH)(["cursor:pointer;list-style:none;&:not(:last-child){border-bottom:0.0625rem solid ",";}"],r.colors.secondary.tints[1].hex)}),u=o.Ay.div.withConfig({componentId:"sc-aaa735c-6"})(["",""],function(e){var r=e.$isHovered;return(0,o.AH)(["height:100%;padding:0.625rem 1rem;transition:0.2s ease;margin-left:0rem;&:hover{margin-left:",";}"],r&&"0.5rem")})},46370:(e,r,n)=>{n.d(r,{G:()=>s});var o=n(85993),t=n(8106),i=n(4319),a=(0,t.v)((0,i.Zr)(function(e){return{courses:[],addCourse:function(r){return e(function(e){return{courses:e.courses.length<3?e.courses.some(function(e){return e.id===r.id})?e.courses:(0,o._)(e.courses).concat([r]):e.courses}})},removeCourse:function(r){return e(function(e){return{courses:e.courses.filter(function(e){return e.id!==r.id})}})},clearCourses:function(){return e({courses:[]})}}},{name:"course-compare-store"}));let s=function(){var e=a(function(e){return e}),r=a(function(e){return e.addCourse});return{store:e,addCourse:r,removeCourse:a(function(e){return e.removeCourse}),clearCourses:a(function(e){return e.clearCourses})}}},60061:(e,r,n)=>{n.d(r,{m:()=>t});var o=n(21626),t=o.Ay.div.withConfig({componentId:"sc-1282de1c-0"})(["",""],function(e){var r=e.theme,n=e.$showBorder;return(0,o.AH)(["border-radius:1.5rem;color:var(--text-color,",");background-color:var(--bg-color,",");display:inline-flex;justify-content:center;align-items:center;padding:0.1rem 1rem;transform:translateZ(0);",""],r.colors.text.hex,r.colors.secondary.tints[10].hex,n&&(0,o.AH)(["border:"," solid var(--border-color,",");"],r.commonStyles.brandPixel,r.colors.tertiary.hex))})},72206:(e,r,n)=>{n.d(r,{A:()=>i});var o=n(37876);n(14232);var t=n(60061);let i=function(e){var r=e.children,n=e.backgroundColor,i=e.textColor,a=e.borderColor,s=e.showBorder;return(0,o.jsx)(t.m,{style:{"--bg-color":n,"--text-color":i,"--border-color":a},$showBorder:void 0!==s&&s,children:r})}},75718:(e,r,n)=>{n.d(r,{A:()=>o.A});var o=n(91460)},80978:(e,r,n)=>{n.d(r,{A:()=>ej});var o=n(37876),t=n(14232),i=n(20294),a=n(43182),s=n(85993),c=n(89993),l=n(21626),d=(0,l.i7)(["0%{transform:rotate(0deg);}1%{transform:rotate(-2deg);}2%{transform:rotate(2deg);}3%{transform:rotate(-2deg);}4%{transform:rotate(1deg);}5%{transform:rotate(0deg);}100%{transform:rotate(0deg);}"]),m=l.Ay.div.withConfig({componentId:"sc-aa969f5a-0"})(["",""],function(e){var r=e.theme,n=e.$isActive;return(0,l.AH)(["position:fixed;display:flex;justify-content:center;left:0;right:0;height:6rem;transition:bottom 0.25s ease;z-index:1001;bottom:-6rem;"," @media ","{height:4.5rem;","}"],n&&(0,l.AH)(["bottom:0.75rem;"]),r.breakpoints.medium.media,n&&(0,l.AH)(["bottom:0;"]))}),u=l.Ay.aside.withConfig({componentId:"sc-aa969f5a-1"})(["",""],function(e){var r=e.theme;return(0,l.AH)(["border:"," solid ",";background-color:",";border-radius:0.5rem 0.5rem 0 0;border-top:0.125rem solid ",";height:6.9rem;display:flex;align-items:center;z-index:1000;width:100%;padding:0.25rem 1.5rem 0;flex-direction:column-reverse;max-width:calc(16.25rem);justify-content:center;@media ","{padding:1.25rem 1.5rem 0;height:4.5rem;max-width:calc(27.6rem);flex-direction:row;padding:0 1.5rem;justify-content:space-between;}@media ","{justify-content:space-between;max-width:calc(80rem);}"],r.commonStyles.brandPixel,r.colors.secondary.tints[1].hex,r.colors.primaryContrast.hex,r.colors.interactiveContrast.hex,r.breakpoints.medium.media,r.breakpoints.xlarge.media)}),h=l.Ay.div.withConfig({componentId:"sc-aa969f5a-2"})(["",""],function(e){var r=e.theme,n=e.isEmpty;return(0,l.AH)(["width:17.875rem;height:4.875rem;border:",";border-radius:0.5rem;display:flex;justify-content:center;align-items:center;background-color:",";transition:border 0.3s ease,background-color 0.3s ease;transform:translateY(1rem);display:none;@media ","{display:block;}"],n?"0.1rem dashed ".concat(r.colors.secondary.tints[2].hex):"none",n?"transparent":r.colors.background.hex,r.breakpoints.xlarge.media)}),f=l.Ay.button.withConfig({componentId:"sc-aa969f5a-3"})(["",""],function(e){var r=e.theme,n=e.$disabled,o=e.$animate;return(0,l.AH)(["background-color:",";color:",";padding:0.5rem 1rem;border:none;border-radius:0.5rem;font-size:1rem;cursor:pointer;display:flex;align-items:center;"," svg{height:1.125rem;width:1.125rem;margin-left:0.5rem;stroke-width:0.2rem;transform:rotate(180deg);}&:disabled{cursor:not-allowed;}"],n?r.colors.secondary.tints[2].hex:r.colors.accents[5].hex,n?r.colors.text.hex:r.colors.primaryContrast.hex,o&&(0,l.AH)(["animation:"," 13s infinite;"],d))}),p=l.Ay.div.withConfig({componentId:"sc-aa969f5a-4"})(["transform:translateY(-1.5rem);"]),g=l.Ay.div.withConfig({componentId:"sc-aa969f5a-5"})(["",""],function(e){var r=e.theme;return(0,l.AH)(["display:flex;align-items:center;justify-content:center;flex-direction:column;width:100%;@media ","{flex-direction:row-reverse;justify-content:space-around;}@media ","{width:auto;justify-content:center;}"],r.breakpoints.medium.media,r.breakpoints.xlarge.media)}),x=l.Ay.button.withConfig({componentId:"sc-aa969f5a-6"})(["",""],function(e){var r=e.theme;return(0,l.AH)(["border:none;background:none;text-decoration:underline;padding:0 0.5rem;margin:0.75rem 1rem 0;cursor:pointer;font-size:1rem;@media ","{margin:0.25rem 1rem 0 0;}@media ","{margin:0.25rem 1rem 0,0;padding-left:0;}&:hover{text-decoration:none;}"],r.breakpoints.medium.media,r.breakpoints.xlarge.media)}),b=n(92165),v=n(84127),y=function(e){var r=e.theme;return(0,l.i7)(["0%{transform:scale(1);}50%{transform:scale(1.1);border:0.125rem solid ",";}100%{transform:scale(1);border:0.125rem solid ",";}"],r.colors.tertiary.hex,r.colors.primaryContrast.hex)},w=l.Ay.div.withConfig({componentId:"sc-1eb65255-0"})(["",""],function(e){var r=e.theme;return(0,l.AH)(["position:relative;padding:0.75rem 0.5rem;width:17.875rem;height:5.875rem;background-color:",";border-radius:0.5rem 0.5rem 0 0;transition:transform 0.3s ease-in-out,height 0.3s ease-in-out;transform-origin:bottom;&:hover{height:6.5rem;transform:translateY(-0.25rem);}"],r.colors.secondary.tints[0].hex)}),A=l.Ay.div.withConfig({componentId:"sc-1eb65255-1"})(["display:flex;"]),j=l.Ay.div.withConfig({componentId:"sc-1eb65255-2"})(["display:flex;flex-direction:column;margin-left:0.5rem;overflow:hidden;"]),C=l.Ay.span.withConfig({componentId:"sc-1eb65255-3"})(["",""],function(e){var r=e.theme;return(0,l.AH)(["font-size:1rem;margin-bottom:0.25rem;line-height:1.1;font-weight:200;color:",";"],r.colors.secondary.tints[8].hex)}),k=l.Ay.p.withConfig({componentId:"sc-1eb65255-4"})(["font-size:1rem;line-height:1.1;margin:0;height:2.4rem;overflow:hidden;text-overflow:ellipsis;transition:height 0.4s ease;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;"]),I=l.Ay.button.withConfig({componentId:"sc-1eb65255-5"})(["",""],function(e){var r=e.theme,n=e.$clicked;return(0,l.AH)(["border-radius:0.4rem;width:1.25rem;height:1.25rem;background-color:",";border:0.1rem solid ",";position:absolute;top:0.2rem;right:0.2rem;padding:0;display:flex;justify-content:center;align-items:center;cursor:pointer;transition:transform 0.2s ease border 0.2s ease;"," svg{width:0.6rem;height:0.6rem;stroke-width:0.1rem;}"],r.colors.primaryContrast.hex,r.colors.secondary.tints[1].hex,n&&(0,l.AH)(["animation:"," 0.3s ease;
1"],y))});let H=function(e){var r=e.degreeType,n=e.image,a=e.course,s=e.closeButtonFnc,c=e.id,l=(0,i._)((0,t.useState)(!1),2),d=l[0],m=l[1];return(0,o.jsxs)(w,{onClick:function(){m(!0),setTimeout(function(){return m(!1)},300)},id:c,children:[(0,o.jsx)(I,{onClick:s,"aria-label":"Click to remove ".concat(a," from comparison"),$clicked:d,children:(0,o.jsx)(b.A,{})}),(0,o.jsxs)(A,{children:[(0,o.jsx)(v.A,{src:n.src,alt:"",width:94,height:60,style:{borderRadius:"0.5rem"}}),(0,o.jsxs)(j,{children:[r&&(0,o.jsx)(C,{children:r}),(0,o.jsx)(k,{children:a})]})]})]})},$=function(e){var r,n=e.courses,t=e.onCompare,i=e.className,a=e.clearCourses,l=(null!=(r=null==n?void 0:n.length)?r:0)>0;return(0,o.jsx)(m,{className:i,"aria-hidden":!l,$isActive:l,children:(0,o.jsxs)(u,{role:"complementary","aria-label":"Course comparison widget",children:[(0,s._)([,,,]).map(function(e,r){var t=null==n?void 0:n[r];return(0,o.jsx)(h,{isEmpty:!t,children:n&&n.length>=1&&t&&(0,o.jsx)(p,{children:(0,o.jsx)(H,{id:t.id,degreeType:t.degreeType,course:t.course,image:t.image,closeButtonFnc:t.closeButtonFnc})})},(null==t?void 0:t.id)||"card-slot-".concat(r))}),(0,o.jsxs)(g,{children:[(0,o.jsxs)(f,{onClick:t,disabled:n&&n.length<2,$disabled:n&&n.length<2,$animate:n&&n.length>=2,"aria-label":"Click for more in depth comparison of selected courses",children:["Compare ",n&&n.length," of 3 ",(0,o.jsx)(c.A,{})]}),(0,o.jsx)(x,{onClick:a,"aria-label":"Remove all courses",children:"Remove all courses"})]})]})})};var z=n(89099),E=n(83993),_=n(24795),F=n(65946),R=n(32429),S=n(59308),D=n(77583),T=n(46344),L=n(67272),N=n(97605),O=l.Ay.div.withConfig({componentId:"sc-f2020023-0"})(["margin:0 auto;text-align:center;span{text-align:inherit;}"]);let B=function(e){var r=e.name,n=e.hasFeature;return(0,o.jsx)(O,{children:n?(0,o.jsx)("span",{"aria-label":"Has feature ".concat(r),children:"Yes"}):(0,o.jsx)("span",{"aria-label":"Doesn't have feature ".concat(r),children:"None"})})};var Y=l.Ay.button.withConfig({componentId:"sc-a54ca854-0"})(["",""],function(e){var r=e.$borderRadius;return(0,l.AH)(["position:relative;display:inline-block;cursor:help;z-index:1;background:none;border:none;padding:0;",""],r&&(0,l.AH)(["border-radius:5rem;"]))}),P=l.Ay.div.withConfig({componentId:"sc-a54ca854-1"})(["display:inline-block;position:relative;"]),M=l.Ay.div.withConfig({componentId:"sc-a54ca854-2"})(["",""],function(e){var r=e.theme,n=e.$isOpen,o=e.$position;return(0,l.AH)(["position:absolute;left:","px;top:","px;transform:translateY(0.75rem);display:",";visibility:",";background-color:",";color:",";max-width:65vw;width:12rem;border-radius:0.4rem;padding:0.5rem;margin:0 0.2rem;@media ","{width:15rem;}"],o.left,o.top,n?"block":"none",n?"visible":"hidden",r.colors.secondary.tints[1].hex,r.colors.accents[5].hex,r.breakpoints.medium.media)}),U=l.Ay.p.withConfig({componentId:"sc-a54ca854-3"})(["margin:0;font-size:0.875rem;font-weight:400;line-height:1.2;"]);let q=function(e){var r=e.children,n=e.id,a=e.tooltip,s=e.mouseDisabled,c=e.borderRadius,l=e.ariaLabel,d=(0,i._)((0,t.useState)(!1),2),m=d[0],u=d[1],h=(0,i._)((0,t.useState)(!1),2),f=h[0],p=h[1],g=(0,i._)((0,t.useState)({top:0,left:0}),2),x=g[0],b=g[1],v=(0,t.useRef)(null),y=(0,t.useRef)(null),w=(0,t.useMemo)(function(){return m||f},[m,f]),A=(0,t.useRef)(!0);return(0,t.useEffect)(function(){if(w&&v.current&&y.current){var e=v.current,r=y.current;b({left:e.offsetWidth-5,top:-r.offsetHeight})}},[w]),(0,o.jsxs)(P,{ref:v,children:[(0,o.jsx)(Y,{"aria-describedby":"tooltip_".concat(n),"aria-label":l,onMouseEnter:s?void 0:function(){return u(!0)},onMouseLeave:s?void 0:function(){return u(!1)},onFocus:function(){return p(!0)},onBlur:function(){return p(!1)},tabIndex:s?-1:0,disabled:s,"aria-disabled":s,$borderRadius:c,onClick:function(e){e.preventDefault();var r=window.matchMedia("(hover: hover)").matches;e.currentTarget.blur(),r?(p(!1),u(!1)):A.current?(u(!0),p(!0),A.current=!1):(u(!m),p(!f))},children:r}),(0,o.jsx)(M,{role:"tooltip",$isOpen:w,"aria-hidden":!w,id:"tooltip_".concat(n),$position:x,ref:y,children:(0,o.jsx)(U,{children:a})})]})};var G=n(75718),V=n(44366),K=n(86495),W=l.Ay.div.withConfig({componentId:"sc-b7d872c1-0"})(["",""],function(e){var r=e.theme;return(0,l.AH)([""," display:flex;position:relative;padding:1.75rem 0 0 0.5rem;border-radius:0.875rem 0.875rem 0 0;overflow:auto;align-items:flex-start;background-color:",";max-height:calc(85vh);@media ","{max-height:calc(100vh - 1.5rem);padding:2rem 0 0 1.5rem;}"],(0,V.A)("secondary"),r.colors.primaryContrast.hex,r.breakpoints.medium.media)}),X=l.Ay.div.withConfig({componentId:"sc-b7d872c1-1"})(["",""],function(e){var r=e.theme,n=e.$isScrolling;return(0,l.AH)([""," display:grid;grid-template-columns:repeat(3,1fr);column-gap:0.5rem;overflow-x:auto;padding:1rem 0.5rem 0 0.25rem;@media only screen and (max-width:","px){","}@media ","{column-gap:2rem;padding:1rem 2rem 0 1rem;}"],(0,V.A)("secondary"),r.breakpoints.smallLarge.value+8,n&&(0,l.AH)(["padding-left:1.5rem;"]),r.breakpoints.medium.media)}),Z=l.Ay.div.withConfig({componentId:"sc-b7d872c1-2"})(["",""],function(e){var r=e.theme;return(0,l.AH)(["width:9rem;display:flex;flex-direction:column;background:",";position:relative;border-radius:0.5rem;height:auto;@media ","{width:19.5rem;}"],r.colors.primaryContrast.hex,r.breakpoints.medium.media)}),J=l.Ay.div.withConfig({componentId:"sc-b7d872c1-3"})(["",""],function(e){var r=e.theme,n=e.isEmpty;return(0,l.AH)(["position:relative;width:9rem;min-height:10rem;height:auto;border:",";border-radius:0.5rem;background-color:",";display:flex;align-items:center;justify-content:center;padding:0.5rem;height:99%;@media ","{padding:0 2.5rem;width:19.5rem;}"],n?"0.1rem dashed ".concat(r.colors.secondary.tints[2].hex):"none",n?"transparent":r.colors.background.hex,r.breakpoints.medium.media)}),Q=l.Ay.span.withConfig({componentId:"sc-b7d872c1-4"})(["display:inline-flex;justify-content:center;align-items:center;height:3.75rem;text-align:center;position:relative;width:100%;padding:0 0.5rem;line-height:1.2;font-size:1rem;&:not(:last-child){border-bottom:0.0625rem solid rgba(0,0,0,0.15);}"]),ee=(0,l.Ay)(Q).withConfig({componentId:"sc-b7d872c1-5"})(["",""],function(e){var r=e.$hidden;return(0,l.AH)(["font-weight:400;justify-content:flex-start;text-align:left;padding-right:1rem;",""],r&&(0,l.AH)(["display:none;"]))}),er=l.Ay.span.withConfig({componentId:"sc-b7d872c1-6"})(["",""],function(e){var r=e.theme;return(0,l.AH)(["font-size:1rem;opacity:1;line-height:1.4;font-weight:300;transition:opacity 25ms ease 200ms,width 200ms ease;font-family:",";"],r.fonts.secondary)}),en=l.Ay.button.withConfig({componentId:"sc-b7d872c1-7"})(["",""],function(e){var r=e.theme;return(0,l.AH)(["border:none;background:none;text-decoration:underline;padding:0 0.5rem;display:flex;justify-content:center;width:100%;margin:0.75rem 0 1.5rem;cursor:pointer;font-size:1.125rem;color:",";font-size:1rem;","{margin:0.75rem 0 1.5rem;font-size:1.25rem;}&:hover{text-decoration:none;}"],r.colors.primary.hex,r.breakpoints.medium.media)}),eo=(0,l.Ay)(en).withConfig({componentId:"sc-b7d872c1-8"})(["",""],function(e){var r=e.$isScrolling,n=e.theme;return(0,l.AH)(["display:block;@media only screen and (max-width:","px){","}"],n.breakpoints.smallLarge.value+8,r&&(0,l.AH)(["display:none;"]))}),et=(0,l.Ay)(Z).withConfig({componentId:"sc-b7d872c1-9"})(["",""],function(e){var r=e.theme,n=e.$isScrolling;return(0,l.AH)(["width:11rem;margin-top:10.1rem;margin-right:0.25rem;flex:0 0 auto;transition:transform 100ms ease,width 100ms ease,opacity "," ease-in-out;transform:translateX(0);position:relative;z-index:5;@media only screen and (max-width:","px){opacity:1;","}@media ","{width:18rem;margin-top:19.25rem;margin-right:1rem;}"],n?"50ms":"300ms",r.breakpoints.smallLarge.value+8,n&&(0,l.AH)(["","{transform:translateX(-100%);}opacity:0;width:0;pointer-events:none;"],ee),r.breakpoints.medium.media)}),ei=l.Ay.span.withConfig({componentId:"sc-b7d872c1-10"})(["",""],function(e){var r=e.theme;return(0,l.AH)(["display:inline-flex;justify-content:center;align-items:center;display:none;@media ","{display:block;}"],r.breakpoints.medium.media)}),ea=l.Ay.svg.withConfig({componentId:"sc-b7d872c1-11"})(["",""],function(e){var r=e.theme;return(0,l.AH)(["color:",";width:1.25rem;height:1.25rem;margin:0 1rem;@media ","{margin:0 0.75rem;width:2rem;height:2rem;}"],r.colors.tertiary.hex,r.breakpoints.medium.media)}),es=(0,l.Ay)(Q).withConfig({componentId:"sc-b7d872c1-12"})(["",""],function(e){var r=e.theme;return(0,l.AH)(["z-index:1;border-radius:0.5rem;display:flex;flex-direction:column;text-align:left;justify-content:flex-start;line-height:1.2;font-size:1rem;font-weight:600;height:9.1rem;align-items:flex-start;padding-left:0;
1span{display:block;font-weight:200;margin-top:0.5rem;text-align:left;align-self:flex-start;font-family:",";}@media ","{color:",";font-size:1.25rem;margin-bottom:0.75rem;height:7.5rem;}&:not(:last-child){border:none;}&:before{content:none;}"],r.fonts.secondary,r.breakpoints.medium.media,r.colors.text.hex)}),ec=l.Ay.div.withConfig({componentId:"sc-b7d872c1-13"})(["border-radius:inherit;overflow:hidden;display:none;height:7.5rem;@media ","{height:10rem;width:100%;display:block;max-width:15.625rem;}"],function(e){return e.theme.breakpoints.medium.media}),el=l.Ay.button.withConfig({componentId:"sc-b7d872c1-14"})(["",""],function(e){var r=e.theme;return(0,l.AH)(["position:fixed;right:0.75rem;top:0.5rem;background-color:",";border:0.1rem solid ",";border-radius:0.4rem;width:2rem;height:2rem;display:flex;justify-content:center;align-items:center;padding:0;cursor:pointer;z-index:2;&:hover{svg{stroke-width:0.125rem;}}@media ","{right:0.5rem;}"],r.colors.primaryContrast.hex,r.colors.secondary.tints[3].hex,r.breakpoints.xlarge.media)}),ed=(0,l.Ay)(b.A).withConfig({componentId:"sc-b7d872c1-15"})(["width:1rem;height:1rem;"]),em=(0,l.Ay)(Q).withConfig({componentId:"sc-b7d872c1-16"})(["",""],function(e){var r=e.theme;return(0,l.AH)(["font-weight:400;@media ","{font-size:1rem;}"],r.breakpoints.medium.media)}),eu=(0,l.Ay)(G.A).withConfig({componentId:"sc-b7d872c1-17"})(["padding:0.5rem;justify-content:center;font-size:0.875rem;display:flex;width:100%;max-width:14.375rem;margin:1rem auto 0;@media ","{font-size:1rem;padding:0.625rem 1.5rem;}@media ","{font-size:1.25rem;}"],function(e){return e.theme.breakpoints.medium.media},function(e){return e.theme.breakpoints.large.media}),eh=l.Ay.div.withConfig({componentId:"sc-b7d872c1-18"})(["",""],function(e){var r=e.theme;return(0,l.AH)(["display:flex;flex-direction:column;p{font-weight:bold;color:",";text-align:center;margin-bottom:0.25rem;line-height:1.2;font-size:1rem;@media ","{font-size:1.25rem;}}"],r.colors.accents[5].hex,r.breakpoints.medium.media)}),ef=l.Ay.div.withConfig({componentId:"sc-b7d872c1-19"})(["position:absolute;right:0;align-self:center;z-index:1;"]),ep=(0,l.Ay)(K.A).withConfig({componentId:"sc-b7d872c1-20"})(["",""],function(e){var r=e.theme;return(0,l.AH)(["color:",";background:",";height:1.25rem;width:1.25rem;border-radius:50%;svg{width:0.75rem;height:0.75rem;}"],r.colors.primaryContrast.hex,r.colors.accents[5].hex)});let eg=function(e){var r=e.courses,n=e.removeCourse,a=e.clearCourses,c=e.close,d=(0,i._)((0,t.useState)(!1),2),m=d[0],u=d[1],h=(0,t.useRef)(null),f=(0,t.useRef)(null),p=(0,z.useRouter)(),g=(0,l.DP)().colors;return(0,t.useEffect)(function(){var e=function(){f.current&&u(0!==f.current.scrollLeft)},r=f.current;return null==r||r.addEventListener("scroll",e),function(){null==r||r.removeEventListener("scroll",e)}},[]),(0,o.jsxs)(W,{role:"table",ref:h,children:[(0,o.jsx)(el,{onClick:c,"aria-label":"Close course compare",children:(0,o.jsx)(ed,{})}),(0,o.jsxs)("div",{children:[(0,o.jsxs)(et,{role:"row",$isScrolling:m,children:[(0,o.jsx)(ee,{role:"columnheader",$hidden:!0,children:"Course name"}),(0,o.jsxs)(ee,{role:"columnheader",children:[(0,o.jsx)(ei,{children:(0,o.jsx)(ea,{as:E.A})}),(0,o.jsx)(er,{children:"Course level"})]}),(0,o.jsxs)(ee,{role:"columnheader",children:[(0,o.jsx)(ei,{children:(0,o.jsx)(ea,{as:_.A})}),(0,o.jsx)(er,{children:"Entry requirements"})]}),(0,o.jsxs)(ee,{role:"columnheader",children:[(0,o.jsx)(ei,{children:(0,o.jsx)(ea,{as:F.A})}),(0,o.jsx)(er,{children:"Foundation year available"})]}),(0,o.jsxs)(ee,{role:"columnheader",children:[(0,o.jsx)(ei,{children:(0,o.jsx)(ea,{as:R.A})}),(0,o.jsx)(er,{children:"Placement year available"})]}),(0,o.jsxs)(ee,{role:"columnheader",children:[(0,o.jsx)(ei,{children:(0,o.jsx)(ea,{as:S.A})}),(0,o.jsx)(er,{children:"Professional accreditation"}),(0,o.jsx)(ef,{children:(0,o.jsx)(q,{id:"p-a-tooltip",ariaLabel:"Professional accreditation tooltip",tooltip:"This means the course meets the requirements of the accrediting professional body. It could also mean exemptions from modules when studying for the professional qual
1ification after graduating.",children:(0,o.jsx)(ep,{icon:D.A})})})]}),(0,o.jsxs)(ee,{role:"columnheader",children:[(0,o.jsx)(ei,{children:(0,o.jsx)(ea,{as:T.A})}),(0,o.jsx)(er,{children:"Built-in work experience placement"}),(0,o.jsx)(ef,{children:(0,o.jsx)(q,{id:"w-e-tooltip",ariaLabel:"Work experience placement tooltip",tooltip:"During this course, students are expected to complete a work experience placement – normally a module in year 2 or 3 – where they can gain vital practical skills required by employers.",children:(0,o.jsx)(ep,{icon:D.A})})})]}),(0,o.jsxs)(ee,{role:"columnheader",children:[(0,o.jsx)(ei,{children:(0,o.jsx)(ea,{as:L.A})}),(0,o.jsx)(er,{children:"Specialist facilities"})]})]}),(0,o.jsx)(eo,{onClick:function(){a(),c()},"aria-label":"Remove all courses from compare",className:"m-course-compare-remove-all",$isScrolling:m,children:"Remove all courses"})]}),(0,o.jsx)(X,{ref:f,role:"rowgroup",$isScrolling:m,children:(0,s._)([,,,]).map(function(e,t){var i=t<r.length?r[t]:void 0,a=void 0!==i?i.id:"course-slot-".concat(t);return(0,o.jsx)("div",{children:r.length>=2&&i?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(Z,{role:"row",children:[(0,o.jsx)(ec,{children:(0,o.jsx)(v.A,{src:i.image.src,alt:"",width:250,height:160})}),(0,o.jsxs)(es,{role:"cell",children:[i.degreeType&&(0,o.jsx)("span",{children:i.degreeType}),i.name]}),(0,o.jsx)(em,{role:"cell",children:(0,o.jsx)(N.A,{backgroundColor:"Undergraduate"===i.level?void 0:"#eee8e9",textColor:"Undergraduate"===i.level?void 0:g.accents[9].hex,children:i.level})}),(0,o.jsx)(Q,{role:"cell",style:{fontWeight:"bold"},children:i.entryRequirements}),(0,o.jsx)(Q,{role:"cell",children:(0,o.jsx)(B,{hasFeature:i.features.foundationYear,name:"foundation year"})}),(0,o.jsx)(Q,{role:"cell",children:(0,o.jsx)(B,{hasFeature:i.features.placementYear,name:"placement year"})}),(0,o.jsx)(Q,{role:"cell",children:(0,o.jsx)(B,{hasFeature:i.features.workExperiencePlacement,name:"built in work experience placement"})}),(0,o.jsx)(Q,{role:"cell",children:(0,o.jsx)(B,{hasFeature:i.features.professionalAccreditation,name:"built in work professional accreditation"})}),(0,o.jsx)(Q,{role:"cell",children:(0,o.jsx)(B,{hasFeature:i.features.specialistFacilities,name:"specialist facilities"})})]}),(0,o.jsx)(eu,{"aria-label":"Go to ".concat(i.name," course page"),href:i.link.href,onClick:c,variant:"accentFive",openInNewTab:!0,children:"View course"}),(0,o.jsx)(en,{onClick:function(){n(i),1===r.length&&c()},className:"m-course-compare-remove","aria-label":"Remove ".concat(i.name," from compare"),children:"Remove course"})]}):(0,o.jsx)(J,{isEmpty:!i,children:(0,o.jsxs)(eh,{children:[(0,o.jsx)("p",{children:"Add another course to compare"}),"/courses"===p.pathname?(0,o.jsx)(eu,{"aria-label":"Add course to compare",className:"m-course-compare-add",variant:"accentFive",onClick:c,children:"Add course"}):(0,o.jsx)(eu,{"aria-label":"Go to courses page",className:"m-course-compare-add",variant:"accentFive",href:"/courses",children:"Go to courses"})]})})},a)})})]})};var ex=(0,l.DU)(["html,body{overflow:hidden;position:relative;}"]),eb=l.Ay.div.withConfig({componentId:"sc-6e5630e5-0"})(["",""],function(e){var r=e.theme;return(0,l.AH)(["background:",";opacity:0.5;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;"],r.colors.accents[5].hex)}),ev=l.Ay.div.withConfig({componentId:"sc-6e5630e5-1"})(["",""],function(e){var r=e.theme,n=e.$animate;return(0,l.AH)(["position:fixed;display:",";opacity:0;bottom:-100%;max-width:calc(100% - 1rem);left:50%;transform:translateX(-50%);z-index:2147483001;animation:",";@media ","{width:calc(86.5rem);}@keyframes slide{from{opacity:0;bottom:-100%;}to{opacity:1;bottom:0;}}"],n?"block":"none",n&&"slide 0.25s ease forwards",r.breakpoints.medium.media)}),ey=l.Ay.div.withConfig({componentId:"sc-6e5630e5-2"})(["height:calc(100%);width:0;",""],function(e){return e.$isOpen&&(0,l.AH)(["width:auto;"])});let ew=function(e){var r=e.courses,n=e.removeCourse,s=e.clearCourses,c=(0,i._)((0,t.useState)(!1),2),l=c[0],d=c[1],m=r.length>1&&l,u=(0,a.A)(m,function(){return d(!1)}),h=u.containerRef,f=u.handleKeyDown,p=r.map(function(e){return{id:e.id,degreeType:e.degreeType&&e.degreeType,course:e.name,image:{src:e.image.src},closeButtonFnc:function(){return n(e)}}});return(0,o.jsxs)(o.Fragment,{children:[m&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(ex,{}),(0,o.jsx)(eb,{onClick:function(){return d(!1)},role:"button","aria-label":"Click the overlay background to close the modal"})]}),!l&&(0,o.jsx)($,{onCompare:function(){return d(!l)},clearCourses:s,courses:p,"aria-controls":"course-compare-information",className:"m-course-compare m-course-compare-open"}),(0,o.jsx)(ev,{$animate:m,"aria-hidden":!m,children:(0,o.jsx)(ey,{id:"course-compare-information",$isOpen:l,"aria-hidden":!l,role:"dialog","aria-modal":!0,"aria-label":"Course comparison information",onKeyDown:f,ref:h,children:(0,o.jsx)(eg,{c
1ourses:r,clearCourses:s,removeCourse:function(e){n(e),r.length-1<2&&d(!1)},close:function(){return d(!1)}})})})]})};var eA=n(46370);let ej=function(){var e=(0,eA.G)(),r=e.store,n=e.removeCourse,t=e.clearCourses;return(0,o.jsx)(ew,{courses:r.courses,removeCourse:n,clearCourses:t})}},93236:(e,r,n)=>{n.d(r,{A:()=>f});var o=n(67684),t=n(65699),i=n(20294),a=n(37876),s=n(14232),c=n(49581),l=n(91725),d=n.n(l),m=n(39183),u=n(40296);function h(e,r){switch(r.type){case"arrowUp":var n=e.focusIndex-1;return{focusIndex:n<0?r.maxCount-1:n};case"arrowDown":var o=e.focusIndex+1;return{focusIndex:o>=r.maxCount?0:o};case"reset":return{focusIndex:-1};case"home":return{focusIndex:0};case"end":return{focusIndex:r.maxCount-1}}}let f=function(e){var r=e.id,n=e.label,l=e.options,f=e.name,p=e.defaultValue,g=e.className,x=e.placeholder,b=void 0===x?"Please select an option..":x,v=e.handleValueChange,y=e["aria-labelledby"],w=(0,t._)(e,["id","label","options","name","defaultValue","className","placeholder","handleValueChange","aria-labelledby"]),A=(0,i._)((0,s.useState)(p||""),2),j=A[0],C=A[1],k=(0,i._)((0,s.useState)(!1),2),I=k[0],H=k[1],$=(0,i._)((0,s.useState)(!1),2),z=$[0],E=$[1],_=(0,i._)((0,s.useReducer)(h,{focusIndex:-1}),2),F=_[0].focusIndex,R=_[1],S=(0,i._)((0,s.useState)(void 0),2),D=S[0],T=S[1],L=(0,s.useRef)(null),N=(0,s.useRef)(null),O=l.find(function(e){return e.value===j})||null,B=function(e){C(e.value),H(!1)},Y=function(e){N.current instanceof HTMLElement&&!N.current.contains(e.target)&&H(!1)};(0,s.useEffect)(function(){T(void 0)},[I]),(0,s.useEffect)(function(){return document.addEventListener("click",Y),function(){document.removeEventListener("click",Y)}},[]),(0,s.useEffect)(function(){I||R({type:"reset"})},[I]),(0,s.useEffect)(function(){var e,r;I?(null==(e=L.current)?void 0:e.children[F]).focus():F>=0&&C((null==(r=L.current)?void 0:r.children[F]).dataset.value||"")},[F]),(0,s.useEffect)(function(){"function"==typeof v&&v(j||null)},[j]),(0,c.A)(function(){C(p||"")},[p]);var P=(0,s.useCallback)(function(e){switch("Tab"!==e.key&&e.preventDefault(),e.key){case" ":case"Enter":H(!I);break;case"Home":case"End":case"ArrowUp":case"ArrowDown":var r;R({type:d()(e.key),maxCount:null==(r=L.current)?void 0:r.children.length})}},[I]),M=(0,s.useCallback)(function(e){switch(e.key){case"Home":case"End":case"ArrowUp":case"ArrowDown":var r;R({type:d()(e.key),maxCount:null==(r=L.current)?void 0:r.children.length});break;case"Enter":case"Tab":C(e.target.dataset.value||""),H(!1)}},[]);return(0,a.jsxs)(u.mO,{className:g,children:[n&&(0,a.jsx)(m.A,{id:"".concat(r,"-label"),htmlFor:r,children:n}),(0,a.jsxs)(u.mc,{children:[(0,a.jsx)("input",(0,o._)({type:"hidden",value:j,name:f},w)),(0,a.jsxs)(u.cl,{onClick:function(){H(!I)},tabIndex:0,onKeyDown:function(e){return P(e)},id:r,$isOpen:I,"aria-label":y?void 0:b,"aria-haspopup":"listbox",ref:N,"aria-expanded":I,"aria-labelledby":y,style:w.style,role:"combobox","aria-activedescendant":D||void 0,"aria-controls":"".concat(r,"-listbox"),children:[(null==O?void 0:O.label)||b,(0,a.jsx)(u.mD,{$isOpen:I})]}),(0,a.jsx)(u.Ck,{id:"".concat(r,"-listbox"),tabIndex:-1,$isOpen:I,ref:L,"aria-expanded":I,"aria-label":"listbox dropdown",role:"listbox","aria-labelledby":y,children:l.map(function(e){return(0,a.jsx)(u.c$,{id:r+"-"+e.value,"data-value":e.value,role:"option",tabIndex:-1,onClick:function(){return B(e)},onKeyDown:function(e){return M(e)},"aria-selected":(null==O?void 0:O.value)===j,onMouseEnter:function(){return E(!0)},onMouseLeave:function(){return E(!1)},onFocus:function(){return T(r+"-"+e.value)},children:(0,a.jsx)(u.O9,{$isHovered:z,"data-hover":z,children:e.label})},"option ".concat(e.value))})})]})]})}},97605:(e,r,n)=>{n.d(r,{A:()=>o.A});var o=n(72206)}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.