PageSourceSearch

https://www.georgiancollege.ca/4667-34fd96ebffb070ff497b.js

js georgiancollege.ca collected 2026-09-24 08:52:47 UTC 2,764 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkgeorgian_college=self.webpackChunkgeorgian_college||[]).push([[4667],{4667:function(e,n,t){t.r(n);var l=t(7294),i=t(1883),o=t(6377),a=t(8777),r=t(4309),s=t(6532),u=t(1930);n.default=()=>{const{ptsCourseFilters:e}=(0,l.useContext)(u.s),n=(0,i.useStaticQuery)("927834465"),t=n.allPtsCourse.totalCount;let m=(0,l.useMemo)((()=>n.allPtsCourse.nodes.filter((n=>{var t,l;const i=(0,o.Z)(n.Title||"",n.Code||"",n.Number||"",(null===(t=n.Campuses)||void 0===t?void 0:t.join(" "))||"",n.Daytime?"daytime":"",n.Evening?"evening":"",n.Weekend?"weekend":"",n.Online?"online":"").toLowerCase()||"",a=(null===(l=e.keyword)||void 0===l?void 0:l.join(" ").toLowerCase())||"";return i.includes(a)}))),[e]);m=(0,l.useMemo)((()=>e.campus&&e.campus.length>0?m.filter((n=>{var t,l;const i=(null===(t=n.Campuses)||void 0===t?void 0:t.join(" ").toLowerCase())||"",o=(null===(l=e.campus)||void 0===l?void 0:l.join("|").toLowerCase())||"";return new RegExp(o).test(i)})):m),[e]),m=(0,l.useMemo)((()=>e.time&&e.time.length>0?m.filter((n=>{var t;const l=(n.Daytime?"daytime":"")+(n.Evening?"evening":"")+(n.Weekend?"weekend":"")+(n.Online?"online":"")||"",i=(null===(t=e.time)||void 0===t?void 0:t.join("|").toLowerCase())||"";return new RegExp(i).test(l)})):m),[e]),m=(0,l.useMemo)((()=>e.area&&e.area.length>0?m.filter((n=>{var t,l;const i=(null===(t=n.Categories)||void 0===t?void 0:t.join(" ").toLowerCase())||"",o=(null===(l=e.area)||void 0===l?void 0:l.join("|").toLowerCase())||"";return new RegExp(o).test(i)})):m),[e]);const d=m.length,g=m.filter((e=>"MARI"!==e.Code)).map((e=>{var n;return[l.createElement(a.Z,{key:1,className:(0,o.Z)("underline"),to:(null==e?void 0:e.uri)||""},e.Title),l.createElement(l.Fragment,{key:4},e.Code," ",e.Number),l.createElement(l.Fragment,{key:3},null==e||null===(n=e.Campuses)||void 0===n?void 0:n.map(((n,t)=>{var i,s;const u=(0,r.u_)(n||"");return l.createElement(l.Fragment,{key:t},u?l.createElement(a.Z,{className:(0,o.Z)("underline"),to:u},n):n,((null===(i=e.Campuses)||void 0===i?void 0:i.length)||0)>1&&t!==((null===(s=e.Campuses)||void 0===s?void 0:s.length)||0)-1&&", ")}
1))),l.createElement(l.Fragment,{key:4},e.Daytime&&"Daytime",e.Evening?e.Daytime?", Evening":"Evening":"",e.Weekend?e.Daytime||e.Evening?", Weekend":"Weekend":"",e.Online?e.Daytime||e.Evening||e.Weekend?", Online":"Online":"")]}));return l.createElement(l.Fragment,null,l.createElement(s.ZP,{footer:l.createElement(l.Fragment,null,"Showing ",d," of ",t," courses"),maxHeight:500,rows:g,className:"wp-block-georgiancollege-pts-course-listing",headings:[{label:"Title",width:"w-4/12"},{label:"Code",width:"w-2/12"},{label:"Campus",width:"w-3/12"},{label:"Time",width:"w-3/12"}]}))}}}]);
2//# sourceMappingURL=4667-34fd96ebffb070ff497b.js.map

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.