PageSourceSearch

https://www.unsw.edu.au/etc.clientlibs/unsw-common/clientlibs/clie…/resources/8224-d1235da503be9645f92a.js

js unsw.edu.au collected 2026-10-01 07:25:24 UTC 12,418 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkunsw_common_ui_frontend=self.webpackChunkunsw_common_ui_frontend||[]).push([[8224],{3224:(function(U,i,n){n.d(i,{$s:function(){return e},AT:function(){return y},EY:function(){return m},Fr:function(){return R},GY:function(){return S},JT:function(){return E},Jw:function(){return L},K2:function(){return a},KY:function(){return _},Q5:function(){return A},Vj:function(){return M},Y:function(){return O},YW:function(){return P},bx:function(){return I},cD:function(){return o},g7:function(){return N},j9:function(){return T},l5:function(){return F},qh:function(){return t},s:function(){return D},uv:function(){return s},v1:function(){return l},xy:function(){return f},y:function(){return B},zs:function(){return u}});const s="term",l="faculty",A="study-area",O="campus",I="international",P="undergraduate",L="postgraduate",T="delivery-mode-campus",u="delivery-mode-online",o="study-mode-full-time",t="double",e="single",_="study-part-time",R="commonwealth",E="sort",c="page-size",d="alphabetical",f="relevance",S="Alphabetical",F="title",r="Relevance",a="relevance",C="Latest First",p="date",B="!padrenull",H="University Preparation Program (UPP)",v="UNSW Prep Program (UNSW Prep)",N="6114",m="6115",D=[{label:r,value:a},{label:S,value:F},{label:C,value:p}],g=null,y=h=>D.find(G=>G.value===h),M="UNSW College"}),372:(function(U,i,n){n.d(i,{D5:function(){return I},Jc:function(){return P},RD:function(){return L},Wn:function(){return O},j2:function(){return T},sz:function(){return A}});var s=n(2838),l=n(3224);const A=()=>{const u=(0,s.Z_)(),o=u.dialogProps.faculties?u.dialogProps.faculties.map(t=>({value:t.eclipsName,label:t.displayName})):[];return o.sort((t,e)=>t.label.localeCompare(e.label)),o},O=u=>{if(u===void 0)return;let t=new URLSearchParams(window.location.search).get(l.v1);if(!t)return null;t.includes("%")&&(t=decodeURIComponent(t));const e=t.split('","'),_=[];return e.forEach(R=>{const E=u.faculties.find(c=>c.eclipsName.toLowerCase()===R.toLowerCase());E&&_.push({value:E.eclipsName,label:E.displayName})}),_},I=()=>{const u=(0,s.Z_)();return u.dialogProps.studyAreas?u.dialogProps.studyAreas.map(o=>({value:o.funnelbackIdentifier,label:o.displayName})):[]},P=()=>{const u=(0,s.Z_)();return u.dialogProps.campuses?u.dialogProps.campuses.map(o=>({value:o.value,label:o.title})):[]},L=u=>{if(u===void 0)return;let t=new URLSearchParams(window.location.search).get(l.Q5);if(!t)return null;t.includes("%")&&(t=decodeURIComponent(t));const e=t.split('","'),_=[];return e.forEach(R=>{const E=u.studyAreas.find(c=>c.funnelbackIdentifier===R);_.push({value:E.funnelbackIdentifier,label:E.displayName})}),_},T=u=>{if(u===void 0)return;let t=new URLSearchParams(window.location.search).get(l.Y);if(!t)return null;t.includes("%")&&(t=decodeURIComponent(t));const e=t.split('","'),_=[];return e.forEach(R=>{const E=u.campuses.find(c=>c.value===R);_.push({value:E.value,label:E.title})}),_}}),2838:(function(U,i,n){n.d(i,{Q3:function(){return I},Z_:function(){return u},hJ:function(){return t},wA:function(){return o}});var s=n(6540),l=n(3224),A=n(372);const O=(0,s.lazy)(()=>Promise.all([n.e(4579),n.e(8491),n.e(2598),n.e(2599),n.e(8778)]).then(n.bind(n,2599)));var I=(e=>(e.FILTER_MENU_OPEN="FILTER_MENU_OPEN",e.FILTER_MENU_CLOSE="FILTER_MENU_CLOSE",e.SEARCH_BAR_INTERNATIONAL="SEARCH_BAR_INTERNATIONAL",e.SEARCH_BAR_FILTER_UNDERGRADUATE="SEARCH_BAR_FILTER_UNDERGRADUATE",e.SEARCH_BAR_FILTER_POSTGRADUATE="SEARCH_BAR_FILTER_POSTGRADUATE",e.SEARCH_BAR_FILTER_FACULTY="SEARCH_BAR_FILTER_FACULTY",e.SEARCH_BAR_FILTER_STUDY_AREA="SEARCH_BAR_FILTER_STUDY_AREA",e.SEARCH_BAR_FILTER_STUDY_MODE_FULL_TIME="SEARCH_BAR_FILTER_STUDY_MODE_FULL_TIME",e.SEARCH_BAR_FILTER_STUDY_MODE_PART_TIME="SEARCH_BAR_FILTER_STUDY_MODE_PART_TIME",e.SEARCH_BAR_FILTER_DELIVERY_MODE_CAMPUS="SEARCH_BAR_FILTER_DELIVERY_MODE_CAMPUS",e.SEARCH_BAR_FILTER_CAMPUS="SEARCH_BAR_FILTER_CAMPUS",e.SEARCH_BAR_FILTER_DELIVERY_MODE_ONLINE="SEARCH_BAR_FILTER_DELIVERY_MODE_ONLINE",e.SEARCH_BAR_FILTER_SINGLE="SEARCH_BAR_FILTER_SINGLE",e.SEARCH_BAR_FILTER_DOUBLE="SEARCH_BAR_FILTER_DOUBLE",e.SEARCH_BAR_FILTER_COMMONWEALTH="SEARCH_BAR_FILTER_COMMONWEALTH",e.SET_SEARCH_BAR_DEGREE_COUNT="SET_SEARCH_BAR_DEGREE_COUNT",e.LOOKUP_TOGGLE="LOOKUP_TOGGLE",e.FACET_CAMPUS="FACET_CAMPUS",e.FACET_FACULTLY="FACET_FACULTLY",e.FACET_DOMESTIC_INTERNATIONAL="FACET_DOMESTIC_INTERNATIONAL",e.FACET_DEGREE_TYPE="FACET_DEGREE_TYPE",e.FACET_LOCATION="FACET_LOCATION",e.FACET_STUDY_AREA="FACET_STUDY_AREA",e.FACET_SINGLE_DOUBLE="FACET_SINGLE_DOUBLE",e.SUGGESTIONS="SUGGESTIONS",e.SUGGESTIONS_LOADED="SUGGESTIONS_LOADED",e.LOOKUP_TEXT="LOOKUP_TEXT",e.PAGINATION_PAGE_SIZE="PAGINATION_PAGE_SIZE",e.PAGE_CURRENT="PAGE_CURRENT",e.MAIN_PAGER_CLICKED="MAIN_PAGER_CLICKED",e.SORT_OPTION="SORT_OPTION",e.RESULT_PACKET="RESULT_PACKET",e.SEARCH_COUNT="SEARCH_COUNT",e.IS_SEARCHING="IS_SEARCHING",e.CLEAR_ALL="CLEAR_ALL",e.VIEW_ALL_DEGREES="VIEW_ALL_DEGREES",e.TOGGLE_APPLY_POPUP="TOGGLE_APPLY_POPUP",e))(I||{}),P=(e=>(e.ADD_COURSE_TO_COMPARE="ADD_COURSE_TO_COMPARE",e.REMOVE_COURSE_FROM_COMPARE="REMOVE_COURSE_FROM_COMPARE",e))(P||{});const L=(0,s.createContext)(null),T=(0,s.createContext)(null);function u(){return(0,s.useContext)(L)}function o(){return(0,s.useContext)(T)}const t=e=>{const _=(0,s.useMemo)(()=>new URLSearchParams(window.location.search),[]),R=(0,s.useCallback)(r=>{try{return JSON.parse(r.toLowerCase())}catch(a){return!1}},[]),E=(0,s.useCallback)(r=>_.has(r)?R(_.get(r)):!1,[R,_]),c=(0,s.useCallback)(r=>{if(window.location.hash){const C=new URLSearchParams(window.location.hash.substring(1)).get("search");if(C)return C}return r},[]),d=(0,s.useCallback)((r,a)=>{if(window.location.hash){const p=new URLSearchParams(window.location.hash.substring(1)).get("filters");if(p&&p.includes(a))return!0}return r},[]),f=(0,s.useCallback)((r,a)=>{switch(a.type){case"FILTER_MENU_OPEN":return{...r,searchBarFilterOpen:!0};case"FILTER_MENU_CLOSE":return{...r,searchBarFilterOpen:!1,lookupOpen:!1};case"SEARCH_BAR_INTERNATIONAL":return{...r,searchBarInternational:a.payload,pageCurrent:1,...a.payload&&!r.lookupText&&{sort:(0,l.AT)(l.l5)}};case"SEARCH_BAR_FILTER_UNDERGRADUATE":return{...r,searchBarFilterUndergraduate:a.payload,pageCurrent:1,...a.payload&&!r.lookupText&&{sort:(0,l.AT)(l.l5)}};case"SEARCH_BAR_FILTER_POSTGRADUATE":return{...r,searchBarFilterPostgraduate:a.payload,pageCurrent:1,...a.payload&&!r.lookupText&&{sort:(0,l.AT)(l.l5)}};case"SEARCH_BAR_FILTER_FACULTY":return{...r,searchBarFilterFaculty:a.payload,pageCurrent:1,...a.payload&&!r.lookupText&&{sort:(0,l.AT)(l.l5)}};case"SEARCH_BAR_FILTER_STUDY_AREA":return{...r,searchBarFilterStudyArea:a.payload,pageCurrent:1,...a.payload&&!r.lookupText&&{sort:(0,l.AT)(l.l5)}};case"SEARCH_BAR_FILTER_CAMPUS":return{...r,searchBarFilterCampus:a.payload,pageCurrent:1,...a.payload&&!r.lookupText&&{sort:(0,l.AT)(l.l5)}};case"SEARCH_BAR_FILTER_STUDY_MODE_FULL_TIME":return{...r,searchBarFilterStudyModeFullTime:a.payload,pageCurrent:1,...a.payload&&!r.lookupText&&{sort:(0,l.AT)(l.l5)}};case"SEARCH_BAR_FILTER_STUDY_MODE_PART_TIME":return{...r,searchBarFilterStudyModePartTime:a.payload,pageCurrent:1,...a.payload&&!r.lookupText&&{sort:(0,l.AT)(l.l5)}};case"SEARCH_BAR_FILTER_DELIVERY_MODE_CAMPUS":return{...r,searchBarFilterDeliveryModeCampus:a.payload,pageCurrent:1};case"SEARCH_BAR_FILTER_DELIVERY_MODE_ONLINE":return{...r,searchBarFilterDeliveryModeOnline:a.payload,pageCurrent:1,...a.payload&&!r.lookupText&&{sort:(0,l.AT)(l.l5)}};case"SEARCH_BAR_FILTER_SINGLE":return{...r,searchBarFilterSingle:a.payload,pageCurrent:1,...a.payload&&!r.lookupText&&{sort:(0,l.AT)(l.l5)}};case"SEARCH_BAR_FILTER_DOUBLE":return{...r,searchBarFilterDouble:a.payload,pageCurrent:1,...a.payload&&!r.lookupText&&{sort:(0,l.AT)(l.l5)}};case"SEARCH_BAR_FILTER_COMMONWEALTH":return{...r,searchBarFilterCommonWealth:a.payload,pageCurrent:1,...a.payload&&!r.lookupText&&{sort:(0,l.AT)(l.l5)}};case"SET_SEARCH_BAR_DEGREE_COUNT":return{...r,searchBarViewDegreesCount:a.payload};case"LOOKUP_TOGGLE":return{...r,lookupOpen:a.payload};case"FACET_CAMPUS":return{...r,facetCampus:a.payload};case"FACET_FACULTLY":return{...r,facetFaculty:a.payload};case"FACET_DOMESTIC_INTERNATIONAL":return{...r,facetDomesticInternational:a.payload};case"FACET_DEGREE_TYPE":return{...r,facetDegreeType:a.payload};case"FACET_LOCATION":return{...r,facetLocation:a.payload};case"FACET_STUDY_AREA":return{...r,facetStudyArea:a.payload};case"FACET_SINGLE_DOUBLE":return{...r,facetSingleDoubleDegree:a.payload};case"SUGGESTIONS":return a.payload.sort((C,p)=>C.disp.title.toLowerCase().localeCompare(p.disp.title.toLowerCase())),{...r,suggestions:a.payload};case"SUGGESTIONS_LOADED":return{...r,suggestionsLoaded:a.payload};case"LOOKUP_TEXT":return{...r,lookupText:a.payload};case"PAGINATION_PAGE_SIZE":return{...r,paginationPageSize:a.payload};case"PAGE_CURRENT":return{...r,pageCurrent:a.payload};case"MAIN_PAGER_CLICKED":return{...r,mainPagerClicked:a.payload};case"SORT_OPTION":return{...r,sort:a.payload,pageCurrent:1};case"RESULT_PACKET":return{...r,resultPacket:a.payload};case"SEARCH_COUNT":return{...r,searchCount:a.payload,...a.payload&&r.lookupText&&{sort:(0,l.AT)(l.K2)}};case"IS_SEARCHING":return{...r,isSearching:a.payload};case"CLEAR_ALL":return{...r,searchBarInternational:!1,searchBarFilterUndergraduate:!1,searchBarFilterPostgraduate:!1,searchBarFilterFaculty:[],searchBarFilterStudyArea:[],searchBarFilterCampus:[],searchBarFilterStudyModeFullTime:!1,searchBarFilterStudyModePartTime:!1,searchBarFilterDeliveryModeCampus:!1,searchBarFilterDeliveryModeOnline:!1,searchBarFilterSingle:!1,searchBarFilterDouble:!1,searchBarFilterCommonWealth:!1,clearAll:a.payload.clearAll};case"VIEW_ALL_DEGREES":return{...r,searchBarInternational:!1,pageCurrent:1,...!r.lookupText&&{sort:(0,l.AT)(l.l5)},searchBarFilterUndergraduate:!1,searchBarFilterPostgraduate:!1,searchBarFilterFaculty:[],searchBarFilterStudyArea:[],searchBarFilterCampus:[],searchBarFilterStudyModeFullTime:!1,searchBarFilterStudyModePartTime:!1,searchBarFilterDeliveryModeCampus:!1,searchBarFilterDeliveryModeOnline:!1,searchBarFilterSingle:!1,searchBarFilterDouble:!1,searchBarFilterCommonWealth:!1,lookupText:""};case"TOGGLE_APPLY_POPUP":return{...r,applyPopupProps:{...r.applyPopupProps,...a.payload}};default:throw Error("Unknown action: "+a.type)}},[]),[S,F]=(0,s.useReducer)(f,{dialogProps:e.dialogProps,progressBarProps:e.progressBarProps,searchBarFilterOpen:!1,searchBarInternational:E(l.bx),searchBarFilterFaculty:(0,A.Wn)(e.dialogProps),searchBarFilterStudyArea:(0,A.RD)(e.dialogProps),searchBarFilterCampus:(0,A.j2)(e.dialogProps),searchBarFilterUndergraduate:d(E(l.YW),"degreeType:Undergraduate"),searchBarFilterPostgraduate:d(E(l.Jw),"degreeType:Postgraduate"),searchBarFilterStudyModeFullTime:E(l.cD),searchBarFilterStudyModePartTime:E(l.KY),searchBarFilterDeliveryModeCampus:E(l.j9),searchBarFilterDeliveryModeOnline:E(l.zs),searchBarFilterSingle:E(l.$s),searchBarFilterDouble:E(l.qh),searchBarFilterCommonWealth:E(l.Fr),searchBarViewDegreesCount:"...",lookupOpen:!1,lookupText:c(_.get(l.uv))?c(_.get(l.uv)):"",funnelBackServer:"https://unsw-search.funnelback.squiz.cloud/s/search.html",facetCampus:null,facetFaculty:null,facetDomesticInternational:null,facetDegreeType:null,facetLocation:null,facetStudyArea:null,facetSingleDoubleDegree:null,suggestions:[],suggestionsLoaded:!1,paginationPageSize:10,pageCurrent:1,mainPagerClicked:0,sort:_.get(l.JT)!=null?(0,l.AT)(_.get(l.JT)):_.get(l.uv)!=null?(0,l.AT)(l.K2):(0,l.AT)(l.l5),resultPacket:null,searchCount:0,isSearching:!1,clearAll:!1,applyPopupProps:e.applyPopupProps});return s.createElement(L.Provider,{value:S},s.createElement(T.Provider,{value:F},s.createElement(s.Fragment,null,e.children,e.applyPopupProps&&S.applyPopupProps.showPopup&&s.createElement(s.Suspense,{fallback:null},s.createElement(O,null)))))}}),2138:(function(U,i,n){n.d(i,{A:function(){return s}});class s{constructor(){this.selector="",this.onAemUpdate=()=>{}}observe(){if(!this.selector)throw new Error("A selector needs to be assigned");const A=window.MutationObserver,O=document.querySelector("body");new A(P=>{P.forEach(L=>{const T=[].slice.call(L.addedNodes);T.length>0&&T.forEach(u=>{u instanceof Element&&u.matches(this.selector)&&this.onAemUpdate(u),u.querySelectorAll&&[].slice.call(u.querySelectorAll(this.selector)).forEac
1h(t=>{this.onAemUpdate(t)})})})}).observe(O,{subtree:!0,childList:!0,characterData:!0})}}})}]);

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.