1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[1515],{13909:(M,_,r)=>{r.d(_,{A:()=>y});var e=r(48322),b=r(99087);const n=b.default.div` 2 ${({theme:{mq:E,layout:o}})=>(0,b.css)` 3 @media ${E.mlarge} { 4 flex-basis: 25%; 5 } 6 7 h5 { 8 margin-top: 0; 9 } 10 11 > div { 12 padding-bottom: ${o.gutter.smedium}; 13 } 14 15 .dropdown__select { 16 max-width: 100%; 17 min-width: 100%; 18 } 19 20 .checkbox { 21 padding: ${o.gutter.smedium} 0; 22 } 23 24 .search-reset { 25 width: 100%; 26 } 27 `} 28`;var i=r(20548);const y=({title:E,filters:o,showReset:j=!0,clearFilters:A,updateSelectedFilters:$})=>o?e.createElement(n,null,Object.entries(o).length?e.createElement(e.Fragment,null,E&&e.createElement("h5",null,"Course Filter"),Object.entries(o).map(([N,x])=>x.title?e.createElement(i.A,{key:N,className:x?.items?.length===1?"checkbox":"",clearFilters:A,defaultValue:`Select ${x.title.toLowerCase()}`,filterGroupKey:N,filters:x.items,label:`Filter by ${x.title.toLowerCase()}`,multiSelect:!x.isSingleSelect,updateSelectedFilters:$}):null)):null,j&&e.createElement("button",{className:"search-reset",onClick:()=>A()},"Clear filters")):null},40287:(M,_,r)=>{r.d(_,{J_:()=>w,X5:()=>e,hL:()=>b});function e(n){if(!n)return"";let i=String(n);i=i.replace(/<[^>]*>/g,""),i=i.replace(/&#(\d+);/g,(y,E)=>String.fromCharCode(Number(E))),i=i.replace(/&#x([0-9a-fA-F]+);/g,(y,E)=>String.fromCharCode(parseInt(E,16)));const v={" ":" ","&":"&","<":"<",">":">",""":'"',"'":"'","’":"\u2019","‘":"\u2018","“":"\u201C","”":"\u201D","–":"\u2013","—":"\u2014","£":"\xA3","€":"\u20AC","é":"\xE9","É":"\xC9"};return i=i.replace(/&[a-zA-Z0-9#]+;/g,y=>v[y]||y),i=i.replace(/\s+/g," ").trim(),i}function b(n){if(!n&&n!==0)return;const i=String(n).trim();return i?/^mailto:/i.test(i)||/^https?:\/\//i.test(i)||/^tel:/i.test(i)?i:i.match(/^[^\s@]+@[^\s@]+\.[^\s@]+$/)?`mailto:${i}`:i:void 0}function w(n){return n==null?!1:typeof n=="string"?n.trim().length>0:Array.isArray(n)?n.length>0&&n.some(w):typeof n=="object"?Object.keys(n).length===3&&n.type==="_paragraph"&&Array.isArray(n.value)&&n.value.length===0?!1:Object.keys(n).length>0&&Object.values(n).some(w):!0}},43518:(M,_,r)=>{r.d(_,{Fu:()=>n,fF:()=>i,ne:()=>w});var e=r(99087);const b=(0,e.css)` 29 background: linear-gradient( 30 315deg, 31 #9ecee6, 32 ${({theme:v})=>v.colors.CoreCracknellCerulean} 33 ); 34 content: ''; 35 position: absolute; 36 top: 0; 37 left: 0; 38 right: 0; 39 z-index: 1; 40`,w=(0,e.css)` 41 &:after { 42 ${b} 43 width: 4px; 44 height: 100%; 45 46 @media (min-width: 768px) { 47 width: 8px; 48 } 49 } 50`,n=(0,e.css)` 51 &:after { 52 ${b} 53 height: 4px; 54 55 @media (min-width: 768px) { 56 height: 8px; 57 } 58 } 59`,i=(v="#fff")=>(0,e.css)` 60 padding-bottom: 5px; 61 &:before { 62 ${b} 63 background: ${v}; 64 top: unset; 65 bottom: 0; 66 67 z-index: 1; 68 height: 2px; 69 } 70 71 &:after { 72 ${b} 73 background-color: ${v}; 74 top: unset; 75 bottom: 0; 76 height: 2px; 77 width: 0; 78 transition: width 0.3s ease; 79 } 80 81 &:hover:after { 82 ${b} 83 top: unset; 84 bottom: 0; 85 height: 2px; 86 width: 100%; /* Expand transition from left to right */ 87 } 88`},56950:(M,_,r)=>{r.d(_,{A:()=>A});var e=r(48322),b=r(43266),w=r(94865),n=r(99087),i=r(43518);const y=n.default.nav` 89 ${({theme:$})=>(0,n.css)` 90 overflow: auto; 91 color: #002a53; 92 background: #f4f7fc; 93 .breadcrumbs__list { 94 display: flex; 95 position: relative; 96 flex-wrap: nowrap; 97 max-width: 1560px; 98 margin: 0 auto; 99 padding-left: 16px; 100 } 101 /* Mobile: show only the page immediately before the current one */ 102 @media only screen and (max-width: 619px) { 103 .breadcrumbs__list { 104 flex-wrap: nowrap; 105 overflow: hidden; 106 max-width: 100%; 107 } 108 109 /* hide all items by default on small screens (use high specificity) 110 and force via !important to override other rules */ 111 .breadcrumbs__list > .breadcrumbs__list-item { 112 display: none !important; 113 } 114 115 /* show only the second-last item (the page before the current) */ 116 .breadcrumbs__list > .breadcrumbs__list-item:nth-last-child(2) { 117 display: flex !important; 118 align-items: center !important; 119 flex: 1 1 auto !important; 120 min-width: 0 !important; /* allow child to truncate */ 121 } 122 123 /* clamp the link text to one line with ellipsis */ 124 .breadcrumbs__list 125 > .breadcrumbs__list-item:nth-last-child(2) 126 .breadcrumbs__link { 127 display: block !important; 128 white-space: nowrap !important; 129 overflow: hidden !important; 130 text-overflow: ellipsis !important; 131 max-width: 100% !important; 132 align-content: center; 133 } 134 135 /* hide any trailing chevron for clarity and show back-arrow */ 136 .breadcrumbs__list 137 > .breadcrumbs__list-item:nth-last-child(2) 138 .chevron { 139 display: none !important; 140 } 141 142 .breadcrumbs__list 143 > .breadcrumbs__list-item:nth-last-child(2) 144 .back-arrow { 145 display: inline-block !important; 146 margin-right: 8px !important; 147 margin-left: 0 !important; 148 } 149 } 150 .breadcrumbs__list-item { 151 display: flex; 152 align-items: center; 153 position: relative; 154 line-height: 1.5 !important; 155 min-width: 0; 156 flex-shrink: 0; 157 158 & a { 159 /* text-decoration: none; */ 160 display: inline-flex; /* allows vertical centring while staying inline */ 161 align-items: center; /* vertically centre the text/icon */ 162 min-height: 44px; /* ensure vertical hit area is at least 44px */ 163 min-width: 44px; 164 padding: 0 8px; /* keep horizontal spacing â adjust to taste */ 165 line-height: normal; /* avoid unexpected larger line-height */ 166 box-sizing: border-box; /* ensure padding counts inside min-height */ 167 position: relative; 168 /* ${(0,i.fF)($.colors.SecondarySaidScarlet)} */ 169 margin-bottom: 0px; 170 padding-bottom: 0px; 171 align-content: center; 172 173 /* clamp text with ellipsis at all sizes */ 174 white-space: nowrap !important; 175 max-width: 100% !important; 176 } 177 & svg { 178 margin-right: 5px; 179 margin-left: 5px; 180 min-width: 1em; 181 min-height: 1em; 182 overflow: visible; 183 } 184 .back-arrow { 185 display: none; 186 } 187 .breadcrumbs__list-item--current-item { 188 overflow: hidden !important; 189 flex-shrink: unset; 190 } 191 } 192 `}; 193`;var E=r(29746),o=r(28346);const A=({className:$,breadcrumbs:N,breadcrumbColor:x})=>{if(!N||!Array.isArray(N))N=(0,b.d4)(w.Lg);else return null;return e.createElement(y,{className:`breadcrumbs ${x?"breadcrumbs--"
193+x:""} ${$||""}`,"aria-label":"Breadcrumb"},e.createElement("ol",{className:"breadcrumbs__list"},N.map((P,k)=>{const W=P?.includeInMenu?P?.path:null;if(N?.length-1===k){const J=({title:K})=>{const D=(0,e.useRef)(null),U=(0,e.useRef)(null);return(0,e.useEffect)(()=>{const F=()=>{const R=D.current,z=U.current;if(!R||!z)return;const V=R.scrollWidth,T=80;z.style.width=`${V+T}px`};F(),window.addEventListener("resize",F);try{document.fonts?.ready.then(F)}catch{}return()=>window.removeEventListener("resize",F)},[K]),e.createElement("li",{ref:U,className:"breadcrumbs__list-item breadcrumbs__list-item--current-item"},e.createElement("span",{ref:D,className:"breadcrumbs__current",style:{display:"inline-block",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:"1 1 auto",minWidth:0,maxWidth:"100%"}},K))};return e.createElement(J,{key:k,title:P.title})}else return e.createElement("li",{className:"breadcrumbs__list-item",key:k},N?.length-2===k?e.createElement(o.l7J,{className:"back-arrow"}):null,e.createElement(E.default,{className:"breadcrumbs__link",uri:W},P.title),e.createElement(o.U7T,{className:"chevron"}))})))}},67585:(M,_,r)=>{r.r(_),r.d(_,{default:()=>pe});var e=r(48322),b=r(43266),w=r(52546),n=r(33483),i=r(93183),v=r(14646),y=r(95987),E=r(24787),o=r(99087);const A=o.default.div` 194 ${({theme:{colors:t,mq:l}})=>(0,o.css)` 195 .course-listing__main { 196 margin-top: 4.8rem; 197 198 @media ${l.large} { 199 display: grid; 200 grid-template-columns: 1fr 3fr; 201 grid-gap: 4rem; 202 } 203 } 204 205 .course-listing__results { 206 margin-bottom: 4rem; 207 208 & h2 { 209 margin-top: 0; 210 margin-bottom: 2rem; 211 } 212 213 .internal-courses__results { 214 margin-bottom: 6rem; 215 } 216 217 .internal-courses__results, 218 .online-courses__results { 219 border: 1px solid ${t.greyLight}; 220 } 221 } 222 223 .course-filters--desktop { 224 display: none; 225 226 @media ${l.large} { 227 display: block; 228 } 229 } 230 231 .course-filters--mobile { 232 display: block; 233 234 @media ${l.large} { 235 display: none; 236 } 237 } 238 `} 239`;var $=r(80383);const x=o.default.div` 240 ${({theme:{colors:t,mq:l}})=>(0,o.css)` 241 display: none; 242 padding: 2rem; 243 244 font-size: 1.4rem; 245 font-weight: bold; 246 color: ${t.blueAlt}; 247 background-color: ${t.greyLight}; 248 249 & > span { 250 flex: 0 1 25%; 251 } 252 253 & > span:first-of-type { 254 flex: 1 0 35%; 255 } 256 257 & > span:last-of-type { 258 flex: 0 1 20%; 259 } 260 261 @media ${l.medium} { 262 display: flex; 263 } 264 `} 265`,k=({labels:t})=>e.createElement(x,null,t?.map(l=>e.createElement("span",{key:`col-${l}`},l)));var W=r(40287);const J=t=>(Array.isArray(t)?t:t?.data?Object.values(t.data):t?.items?t.items:[]).map((s,u)=>{const c=s?.title?.rendered??(typeof s?.title=="string"?s.title:""),h=(0,W.X5)(c?.replace?c.replace(" Online",""):c)+(s?.meta?._gus_programme_format?" "+s.meta._gus_programme_format:""),g=s?.link??s?.url??"No url provided",m=s?.meta?._gus_programme_duration??"No min duration provided",d=s?.maxDuration??"",p=s?.meta?._gus_programme_start_dates??"No intakes provided",a=s?.level??"Postgraduate",S=s?.id!==void 0&&s?.id!==null?String(s.id):`${u}`,C=s?.excludeOptions?String(s.excludeOptions).split(/[|,;]+/).map(f=>f.trim()).filter(Boolean):void 0;return{title:h,path:g.replace("https://wp.globaluniversitysystems.com/onlinestudy-brunel/","https://onlinestudy.brunel.ac.uk/"),minDuration:m,maxDuration:d,intakes:p,level:a,id:S,studyModes:C}}).sort((s,u)=>s.title.localeCompare(u.title)),D=o.default.div` 266 ${()=>(0,o.css)``} 267`,F=o.default.article` 268 ${({theme:{colors:t,mq:l}})=>(0,o.css)` 269 padding: 2rem; 270 271 @media ${l.medium} { 272 display: flex; 273 } 274 275 &:nth-of-type(even) { 276 background-color: ${t.greyLight}; 277 } 278 279 .course-listing-card__link { 280 margin: 0; 281 min-height: 44px; 282 } 283 284 .course-listing-card__title { 285 margin: 0; 286 287 font-size: 1.6rem; 288 line-height: 1.675em; 289 } 290 291 .course-listing-card__data-row { 292 flex: 0 1 25%; 293 display: block; 294 margin-bottom: 2rem; 295 296 &:first-of-type { 297 flex: 1 0 35%; 298 } 299 300 &:last-of-type { 301 flex: 0 1 20%; 302 } 303 304 &:not(:last-of-type) { 305 padding-right: 2rem; 306 } 307 308 @media ${l.xsmall} { 309 display: flex; 310 } 311 312 @media ${l.medium} { 313 display: flex; 314 flex-direction: column; 315 margin: 0; 316 } 317 318 & span.label { 319 display: block; 320 margin-right: 2rem; 321 font-size: 1.4rem; 322 font-weight: bold; 323 color: ${t.blueAlt}; 324 325 @media ${l.xsmall} { 326 flex: 0 0 100px; 327 } 328 329 @media ${l.medium} { 330 display: none; 331 visibility: hidden; 332 } 333 } 334 } 335 336 .course-listing-card__badge { 337 display: inline-block; 338 padding: 0.4rem 0.8rem; 339 margin: 0 1.2rem 1.2rem 0; 340 font-size: 1.4rem; 341 font-style: italic; 342 color: white; 343 background-color: ${t.blueAlt}; 344 &.clearing__badge { 345 background-color: ${t.red}; 346 } 347 @media ${l.medium} { 348 align-self: flex-start; 349 margin: 1.2rem 0 0 0; 350 } 351 } 352 `} 353`;var R=r(29746),z=r(68786);const T=({title:t,courseCode:l,studyModes:s,minDuration:u,maxDuration:c,intakes:h,inClearing:g,level:m,path:d,placement:p,joint:a,distance:S,mPhilOption:C})=>{const f=(0,i.A)().width>=v.C.medium;return e.createElement(F,{className:"course-listing-card"},t&&e.createElement("div",{className:"course-listing-card__data-row"},e.createElement("span",{className:"label"},"Course name"),e.createElement(R.default,{uri:d,className:"course-listing-card__link"},e.createElement("h3",{className:"course-listing-card__title"},t)),f&&p&&p.some(L=>L.key==="0/2/24/834/838")&&e.createElement("div",{className:"course-listing-card__badge"},"Placement offered"),f&&a&&e.createElement("div",{className:"course-listing-card__badge"},"Joint honors"),f&&S&&e.createElement("div",{className:"course-listing-card__badge"},"Distance learning"),f&&C&&e.createElement("div",{className:"course-listing-card__badge"},"MPhil option available"),f&&g&&e.createElement("div",{className:"course-listing-card__badge clearing__badge"},"Available in Clearing")),(u||c)&&e.createElement("div",{className:"course-listing-card__data-row"},e.createElement("span",{className:"label"},"Duration"),u,c&&c?.length>1?`; Maximum: ${c}`:null),e.createElement("div",{className:"course-listing-card__data-row"},l&&e.createElement(e.Fragment,null,e.createElement("span",{className:"label"},"Course code"),l)),s&&e.createElement("div",{className:"course-listing-card__data-row"},e.createElement("span",{className:"label"},"Study mode"),e.createElement("span",{className:"study-mode"},s?.map((L,I,{length:H})=>e.createElement("p",{key:`mode-${I}`},L.duration," ",(0,z.zb)(L.mode),I+1!=H?", ":"")))),h&&e.createElement("div",{className:"course-listing-card__data-row"},e.createElement("span",{className:"label"},"Intakes"),h),m&&e.createElement("div",{className:"course-listing-card__data-row"},e.createElement("span",{className:"label"},"Level"),m),!f&&p&&p.some(L=>L.key==="0/2/24/834/838")&&e.createElement("div",{className:"course-listing-card__badge"},"Placement offered"),!f&&a&&e.createElement("div",{className:"course-listing-card__badge"},"Joint honors"),!f&&S&&e.createElement("div",{className:"course-listing-card__badge"},"Distance learning"),!f&&C&&e.createElement("div",{className:"course-listing-card__badge"},"MPhil option available"),!f&&g&&e.createElement("div",{className:"course-listing-card__badge clearing__badge"},"Available in Clearing"))},te={id:"",mapper:(t=[])=>t},re=({isLoading:t,labels:l,filters:s,searchTerm:u})=>{const[c,h]=(0,e.useState)(te),{results:g}=(0,n.zK)(c);(0,e.useEffect)(()=>{h({id:"online",config:{customApi:{uri:"https://wp.globaluniversitysystems.com/onlinestudy-brunel/wp-json/wp/v2/programme?per_page=50"}},mapper:J})},[]);let m=[];const d=s.courseLevel?.items?.filter(a=>a.isSelected).map(a=>a.title?.toLowerCase()),p=s.startDate?.items?.filter(a=>a.isSelected).map(a=>a.title?.toLowerCase());return u&&u!==""&&(m=g.filter(a=>a.title.toLowerCase().includes(u.toLowerCase()))),d&&d.length>0&&(m=g.filter(a=>{if(d.indexOf(a.level.toLowerCase())>=0)return a})),p&&p.length>0&&(m=g.filter(a=>{if(a?.intakes&&(a?.intakes.toLowerCase().split(",")).some(C=>C.includes(p)))return a})),!u&&(!d||d.length===0)&&(!p||p.length===0)&&(m=g),!m||m.length===0?null:e.createElement(D,null,e.createElement("h2",null,"Online courses"),t&&e.createElement(y.Rh,{container:{height:"400px",margin:"20px auto",textAlign:"center"}}),!t&&e.createElement("div",{className:"online-courses__results"},e.createElement(k,{labels:l}),m.map(a=>e.createElement(T,{...a,key:a.id}))))},ae=o.default.div` 354 ${({theme:{colors:t,mq:l}})=>(0,o.css)` 355 margin-bottom: 1rem; 356 357 ul { 358 display: inline; 359 margin-left: 1rem; 360 padding: 0; 361 list-style-type: none; 362 } 363 364 li { 365 display: inline; 366 } 367 368 button { 369 border: none; 370 background: none; 371 cursor: pointer; 372 color: ${t.blueAlt}; 373 text-decoration: underline; 374 375 &.active { 376 color: black; 377 text-decoration: none; 378 cursor: default; 379 } 380 } 381 `} 382`,se=({options:t,text:l="Results per page:",separator:s="|",className:u="nor__container",pageSize:c,updatePageSize:h})=>{const[g,m]=(0,e.useState)(t||[]);return(0,e.useEffect)(()=>
382{if(!t||!c)return;const d=[...t];t.some(a=>a.value===c)||(d.push({value:c,label:c.toString()}),d.sort((a,S)=>a.value>=S.value?1:-1)),m(d)},[t,c]),!t||!c?null:e.createElement(ae,{className:u},e.createElement("span",{className:"nor__text"},l),e.createElement("ul",{className:"nor__ul"},g.map((d,p)=>{const a=d.value===c;return e.createElement("li",{key:`nor-option-${d.label}`,className:"nor__li"},e.createElement("button",{className:`nor__button${a?" active":""}`,disabled:a,onClick:()=>h(d.value)},d.label),g[p+1]&&e.createElement("span",{className:"nor__separator"},s))})))};var ne=r(8052),le=r(56950),ie=r(30685),oe=r(16117),Z=r(13909);const Y=o.default.div` 383 ${({theme:{colors:t}})=>(0,o.css)` 384 .course-listing__search { 385 margin-bottom: 2rem; 386 font-size: 1.4rem; 387 388 label { 389 display: block; 390 font-size: inherit; 391 font-weight: 600; 392 color: ${t.blueAlt}; 393 white-space: nowrap; 394 } 395 396 input[type='search'] { 397 padding: 1.6rem; 398 margin-top: 1.2rem; 399 border: 1px solid ${t.grey}; 400 width: 100%; 401 font-size: 1.6rem; 402 } 403 } 404 405 .course-listing__reset { 406 display: block; 407 padding: 1.6rem; 408 margin-top: 2rem; 409 border: 0; 410 width: 100%; 411 text-decoration: none; 412 text-align: center; 413 color: ${t.white}; 414 font-weight: 700; 415 background: ${t.core_digital_cerulean} 416 url('/_MB34Eg_9d49cebe-fa40-4682-96e7-4326239fc749/static-main/img/button-bg.svg') center right no-repeat; 417 cursor: pointer; 418 419 &:hover, 420 &:focus { 421 text-decoration: underline; 422 } 423 } 424 425 .course-listing__search-btn { 426 display: block; 427 padding: 1.6rem; 428 margin-top: 2rem; 429 border: 0; 430 width: 100%; 431 text-decoration: none; 432 text-align: center; 433 font-weight: 700; 434 color: ${t.white}; 435 cursor: pointer; 436 background: #001738 url('/_MB34Eg_9d49cebe-fa40-4682-96e7-4326239fc749/static-main/img/button-bg.svg') center right 437 no-repeat; 438 439 &:hover, 440 &:focus { 441 text-decoration: underline; 442 } 443 } 444 `} 445`;var B=r(10191);const ce=({clearFilters:t,handleChange:l,handleSearchReset:s,handleSubmit:u,filters:c,term:h,updateSelectedFilters:g,updateSearchTerm:m})=>e.createElement(Y,{as:"aside",className:"course-filters--desktop"},e.createElement("h2",{className:"sr-only"},"Course search filters"),e.createElement("form",{className:"course-listing__search",onSubmit:u},e.createElement("label",{htmlFor:"search"},"Search"),e.createElement("input",{type:"search",id:"search",title:"search",name:"search",placeholder:"Search course by keyword(s)",onChange:l,value:h})),e.createElement(Z.A,{filters:c,clearFilters:t,updateSelectedFilters:g,showReset:!1}),e.createElement(B.A,{className:"course-listing__search-btn",onClick:()=>m(h)},"Search"),e.createElement(B.A,{className:"course-listing__reset",onClick:s},"Reset")),me=({clearFilters:t,handleChange:l,handleSearchReset:s,handleSubmit:u,filters:c,term:h,updateSelectedFilters:g,updateSearchTerm:m})=>e.createElement(Y,{className:"course-filters--mobile"},e.createElement("form",{className:"course-listing__search",onSubmit:u},e.createElement("label",{htmlFor:"search"},"Search"),e.createElement("input",{type:"search",id:"search",title:"search",name:"search",placeholder:"Search course by keyword(s)",onChange:l,value:h})),e.createElement(oe.A,{openTitle:"Filter courses",closeTitle:"Close filter",breakpoint:v.C.large},e.createElement("h2",{className:"sr-only"},"Course search filters"),e.createElement(Z.A,{filters:c,clearFilters:t,updateSelectedFilters:g,showReset:!1}),e.createElement(B.A,{className:"course-listing__reset",onClick:()=>m(h)},"Search"),e.createElement(B.A,{className:"course-listing__reset",onClick:s},"Reset"))),de=({info:t})=>t?e.createElement(ue,null,t?.currentCount===0?e.createElement("span",null,"No courses found "):e.createElement("span",null,t.currentCount," courses found "),t?.activeTerm&&e.createElement("span",null,"for the search term ",e.createElement("strong",null,t.activeTerm)),t?.activeFilters?e.createElement("span",null,t?.activeTerm?", ":"when"," filtered by"," ",e.createElement("strong",null,t?.activeFilters)):""):null,ue=o.default.p` 446 ${()=>(0,o.css)` 447 margin-bottom: 2.4rem; 448 min-height: 2.4rem; 449 `} 450`,ge=de,pe=({mappedEntry:t})=>{const{title:l,clearingTitle:s,meta:u,breadcrumbs:c,internalLabels:h,onlineLabels:g}=t||{},{clearFilters:m,filters:d,paging:p,results:a,resultsInfo:S,isLoading:C,searchTerm:f,updatePageIndex:L,updatePageSize:I,updateSelectedFilters:H,updateSearchTerm:X}=(0,n.iQ)({mappers:$.A}),[G,Q]=(0,e.useState)(f||""),he=(0,b.d4)(w.DT.selectors.selectCurrentLocation),q=(0,i.A)().width>=v.C.large,fe=O=>{Q(O.target.value)},be=O=>{O.preventDefault(),X(G)},ve=()=>{m(),X(""),Q("")};(0,e.useEffect)(()=>{Q(f||"")},[f]);const ee={clearFilters:m,handleChange:fe,handleSubmit:be,handleSearchReset:ve,filters:d,term:G,updateSelectedFilters:H,updateSearchTerm:X};return e.createElement(E.A,null,e.createElement(A,null,e.createElement(ie.A,{...u,type:"Course Search"}),e.createElement("div",{className:"wrapper"},e.createElement(le.A,{...c}),e.createElement("h1",null,he.search.includes("clearing")?s:l),e.createElement("div",{className:"course-listing__main"},q&&e.createElement(ce,{...ee}),e.createElement("section",{className:"course-listing__results"},!C&&e.createElement(ge,{info:S?.courseListingResultsText}),!q&&e.createElement(me,{...ee}),e.createElement("section",{className:"internal-courses"},C&&e.createElement(y.Rh,{container:{height:"600px",margin:"20px auto",textAlign:"center"}}),!C&&a?.length>0&&e.createElement(e.Fragment,null,e.createElement("h2",{className:"sr-only"},"Course search results"),e.createElement(se,{options:[{value:10,label:"10"},{value:20,label:"20"},{value:50,label:"50"},{value:100,label:"100"},{value:1e4,label:"all"}],pageSize:p.pageSize,updatePageSize:I}),e.createElement("div",{className:"internal-courses__results"},e.createElement(k,{labels:h}),a.map(O=>e.createElement(T,{...O,key:O.id})))),e.createElement(ne.A,{paging:p,updatePageIndex:L})),e.createElement("section",{className:"online-courses"},e.createElement(re,{labels:g,isLoading:C,filters:d,searchTerm:G})))))))}}}]);
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.