PageSourceSearch

https://www.unsw.edu.au/etc.clientlibs/unsw-common/clientlibs/clie…/resources/1222-02341c7f09ce582be251.js

js unsw.edu.au collected 2026-09-24 06:56:24 UTC 12,484 bytes, 1 lines download raw bytes

1(self.webpackChunkunsw_common_ui_frontend=self.webpackChunkunsw_common_ui_frontend||[]).push([[1222],{9638:(function(m,f,u){"use strict";u.d(f,{$:function(){return C},Ac:function(){return M},G:function(){return e},K2:function(){return v},Kv:function(){return c},N9:function(){return x},Nf:function(){return g},QR:function(){return n},Rk:function(){return i},SL:function(){return L},SU:function(){return _},UV:function(){return H},Ue:function(){return N},WP:function(){return F},Wt:function(){return D},aK:function(){return A},dF:function(){return O},em:function(){return h},et:function(){return y},hI:function(){return p},iO:function(){return s},jO:function(){return w},lw:function(){return t},pD:function(){return k},su:function(){return P},tR:function(){return T},th:function(){return d},vE:function(){return E},vm:function(){return I},vq:function(){return U},wp:function(){return b},yv:function(){return a}});const a="https://search.unsw.edu.au/s/search.json",s="https://customsearch.googleapis.com/customsearch/v1",h="https://search.unsw.edu.au/s/search.json",S=null,R=new RegExp(/local/),o=R.test(window.location.host)?"/mock/degree-search-results-stub.json":"/content/dam/unsw/degree-search-results-stub.stories.json",r=null;let l={};l["Content-Type"]="application/json",R.test(!window.location.host)&&(l.Authorization="Basic ZGV4OmtlbnNxdWFkMTIz");const t={method:"GET",mode:"cors",cache:"no-cache",credentials:"same-origin",headers:l,redirect:"follow",referrer:"no-referrer"},e={response:{resultPacket:{results:[],rmcs:{},spell:{},resultsSummary:{totalMatching:0}}}},n="f.Keywords%7Ckeyword=",p="f.Filter+By%7C",d=new RegExp(/[^a-zA-Z0-9]|\s/gi),i=["Tab","ArrowUp","ArrowDown","ArrowRight","ArrowLeft"],c=new RegExp(/%/gi),y={resultsPath:"",exactMatch:"false",filters:{defaults:{degreeType:"",singleDouble:"",faculty:"",campus:"",location:"",areaOfStudy:"",fieldOfInterest:""},viewLess:"Filters",viewMore:"Filters"},text:{noResults:"No results for",hasResults:"Results for",filterSingle:"filter",filterPlural:"filters",showingResults:"Showing %x out of %y results",showingNoResults:"Start by entering a search term or by selecting any of the filters to browse.",refine:"Filter by",resetFilters:"Clear filters",sortLabel:"Sort",viewMoreResults:"View More",searchPlaceholder:"Search over 400 degrees...",searchSubmit:"Submit"}},g={itemsPerPage:12,text:{searchBoxText:"Enter your search text here",filterLabel:"Refine results",clearFilterLabel:"clear all",noResultHeading:"No results",noResultDescription:"Did you mean to search for something else?",itemPerPageLabel:"Items per page",orderByLabel:"Order by"}},E={mapping:[],filters:[],keyword:{}},b={id:"sort",label:"Sort",param:"sort",options:[{label:"Relevance",value:"relevance"},{label:"Latest First",value:"date"}],selected:"relevance",open:!1},C={id:"sort",label:"Sort",param:"sort",options:[{label:"Relevance",value:"relevance"},{label:"Alphabetical",value:"title"},{label:"Latest First",value:"date"}],selected:"relevance",open:!1},v={id:"sort",label:"Sort",param:"sort",options:[{label:"Most recent",value:"date"},{label:"Relevance",value:"relevance"},{label:"Alphabetical",value:"title"}],selected:"date",open:!1},_={id:"sort",label:"Sort",param:"sort",options:[{label:"Relevance",value:"relevance"},{label:"Latest First",value:"date"}],selected:"date",open:!1},w={id:"sort",label:"Sort",param:"sort",options:[{label:"Latest First",value:"dmetadatetime"}],selected:"dmetadatetime",open:!1},T={id:"sort",label:"Sort",param:"sort",options:[{label:"",value:"dmetadatetime"}],selected:"dmetadatetime",open:!1},A={id:"sort",label:"Sort",param:"sort",options:[{label:"Alphabetical",value:"metastaffLastName"},{label:"Relevance",value:"relevance"}],selected:"metastaffLastName",open:!1,dirty:!1},k={id:"sort",label:"Sort",param:"sort",options:[{label:"Alphabetical",value:"metastaffLastName"}],selected:"metastaffLastName",open:!1,dirty:!1},F={id:"sort",label:"Sort",param:"sort",options:[{label:"Descending",value:"1|descending"},{label:"Ascending",value:"1|ascending"}],selected:"1|descending",open:!1,dirty:!1},O={data:{results:[],suggestions:[]}},L=[{id:"degreeType",label:"Degree type",placeholder:"Select degree type",param:"f.Degree+Type%7CdegreeType",options:[],selected:"",open:!1},{id:"singleDouble",label:"Single or double degree",placeholder:"Select single or double degree",param:"f.Single%2FDouble+Degree%7CdegreeCategory",options:[],selected:"",open:!1},{id:"faculty",label:"Faculty",placeholder:"Select faculty",param:"f.Faculty%7CdegreeFaculty",options:[],selected:"",open:!1},{id:"location",label:"Location",placeholder:"Select location",param:"f.Location%7CdegreeCampus",options:[],selected:"",open:!1},{id:"areaOfStudy",label:"Area of study",placeholder:"Select area of study",param:"f.Area+of+Study%7CdegreeAreaOfStudy",options:[],selected:"",open:!1},{id:"studentType",label:"Domestic or International",placeholder:"Select domestic or international",param:"f.Domestic%2FInternational%7CdegreeEligibility",options:[],selected:"",open:!1},{id:"deliveryMode",label:"Delivery Mode",placeholder:"Select delivery mode",param:"f.Campus%2FOnline%7CdegreeDeliveryMode",options:[],selected:"",open:!1}],I=[{id:"newsTopic",label:"Topic",param:"f.Topic%7CnewsTopic",options:[],selected:"",open:!1},{id:"search",label:"Keywords",placeholder:"Enter keywords...",options:[],selected:"",open:!1,type:"input"},{id:"dateRange",label:"Date Range",param:"f.Date%7Cd",options:[],selected:"",open:!1},{id:"school",label:"School",param:"f.School%7CnewsSchool",options:[],selected:"",open:!1}],N=[{id:"search",label:"Keywords",placeholder:"Enter keywords...",options:[],selected:"",open:!1,type:"input"},{id:"newsTopic",label:"Categories",param:"f.Topic%7CnewsTopic",options:[],selected:"",open:!1,placeholder:"Select categories"},{id:"dateRange",label:"Date range",param:"f.Date%7Cd",options:[],selected:"",open:!1,placeholder:"Select date range"}],P=[{id:"newsTopic",label:"Topic",param:"f.Topic%7CnewsTopic",options:[],selected:"",open:!1}],U=[{id:"search",label:"Name or keywords",placeholder:"Enter keywords...",options:[],selected:"",open:!1,type:"input"},{id:"faculty",label:"Faculty",param:"f.Faculty%7CstaffFaculty",options:[],selected:"",open:!1,placeholder:"Select a faculty..."},{id:"school",label:"School/Centre/Unit",param:"f.School%7CstaffSchool",options:[],selected:"",open:!1,placeholder:"Select"},{id:"universityRole",label:"University Role",param:"f.University+Role%7CstaffRole",options:[],selected:"",open:!1},{id:"universityRoleCategory",label:"University Role Category",param:"f.University+Role+Category%7CStaffUniversityRoleCategory",options:[],selected:"",open:!1},{id:"fieldsOfResearch",label:"Fields of Research",param:"f.Profile+Fields+Of+Research%7CstaffFieldsOfResearch",options:[],selected:"",open:!1},{id:"research",label:"Available to Supervise",param:"f.Availability%7CstaffAvailability",options:[],selected:"",open:!1}],D=[{id:"search",label:"Name or keywords",placeholder:"Enter keywords...",options:[],selected:"",open:!1,type:"input"},{id:"faculty",label:"Faculty",param:"f.Faculty%7CstaffFaculty",options:[],selected:"",open:!1,placeholder:"Select a faculty..."},{id:"school",label:"School/Centre/Unit",param:"f.School%7CstaffSchool",options:[],selected:"",open:!1,placeholder:"Select"}],x=[{id:"faculty",label:"University Faculty",param:"f.Faculty%7CprojectFaculty",options:[],selected:"",open:!1},{id:"researchArea",label:"Research area",param:"f.Research+Area%7CprojectResearchArea",options:[],selected:"",open:!1},{id:"search",label:"Keywords",placeholder:"Enter keywords...",options:[],selected:"",open:!1,type:"input"},{id:"areaOfStudy",label:"Area of Study",param:"f.School%7CprojectSchool",options:[],selected:"",open:!1}],M=[{id:"faculty",label:"Faculty",param:"f.Faculty%7CpublicationFaculty",options:[{label:"All",value:"All"},{label:"UNSW Canberra",value:"UNSW+Canberra"},{label:"UNSW Sydney",value:"UNSW+Sydney"}],selected:"",open:!1},{id:"search",label:"Keywords",placeholder:"Enter keywords...",options:[],selected:"",open:!1,type:"input"},{id:"category",label:"Category",param:"f.Categories%7CpublicationCategory",options:[],selected:"",open:!1}],G=[{id:"degreeAreaOfStudy",label:"Area of Study",param:"f.Area+of+Study",options:[],selected:!1,selectedValues:[],unselectAllUrl:"",open:!1},{id:"degreeEligibility",label:"Domestic/International",param:"f.Domestic+International",options:[],selected:!1,selectedValues:[],unselectAllUrl:"",open:!1}],H=[{headerText:"Code",varName:"integrat_coursecode",visible:!0},{headerText:"Name",varName:"integrat_coursename",visible:!0,allowSort:!0},{headerText:"Academic Unit",varName:"integrat_owningacademicunit",visible:!0},{headerText:"Delivery Mode",varName:"integrat_deliverymode",visible:!0},{headerText:"Term",varName:"integrat_term",visible:!0},{headerText:"Description",varName:"integrat_coursesummary",visible:!1,showInsideAccordion:!0},{headerText:"Location",varName:"integrat_location",visible:!0,showInsideAccordion:!0},{headerText:"Delivery Format",varName:"integrat_deliveryformat",visible:!0,showInsideAccordion:!0}
1,{headerText:"Teaching Period",varName:"integrat_teachingperiod",visible:!0,showInsideAccordion:!0},{headerText:"Total Units of Credit (UOC)",varName:"integrat_unitsofcredit",visible:!0,showInsideAccordion:!0},{headerText:"secondaryURL",varName:"secondaryURL",visible:!1,showInsideAccordion:!0}]}),9426:(function(m,f,u){"use strict";var a=u(6540);const s=5,h=0;class S extends a.Component{constructor(){super(...arguments),this.onClick=(o,r)=>{const{resultsRef:l}=this.props,t=this.startRank(o);r.preventDefault(),this.props.setStartRank(t),this.props.onPageChanged?this.props.onPageChanged():setTimeout(()=>{!l||!l.current||l.current.scrollIntoView({behavior:"smooth"})},500)},this.onFocus=o=>{const r=this.startRank(o);this.props.hasFocus("Pagination",r.toString())},this.startRank=o=>{const r=parseInt(this.props.numRanks),l=o===1?1:(o-1)*r+1;return r===0?1:l},this.pagination=()=>{const{numRanks:o,startRank:r,total:l}=this.props,t=parseInt(o);let e=[],n=s,p=1,d=0,i=1,c=1;switch(t!==0&&(i=r===1||t<=1?r:Math.floor(r/t)+1,c=Math.ceil(l/t)),!0){case c===1:return[];case c<=s:return e=this.paginator(p,c,i),e;case(c>=s&&i<=s):return e=this.paginator(1,s,i),e.push({key:"next",page:s+1}),e;case(c>s&&i>s):return d=i%s,p=d===0?i-s+1:i-d+1,n=d===0?i:i+(s-d),n=n>c?c:n,e=this.paginator(p,n,i),e.unshift({key:"previous",page:p-1}),n<c&&e.push({key:"next",page:n+1}),e;default:return e}},this.paginator=(o,r,l)=>{let t=[];for(let e=o;e<=r;e++){const n=e.toString().padStart(2,"0");e===l?t.push({key:"current",page:n}):t.push({key:e,page:n})}return t},this.renderLinks=()=>{let o=this.pagination(),r=[];for(let l=0;l<o.length;l++){const t=o[l],e=parseInt(t.page);switch(t.key){case"previous":case"next":r.push(a.createElement("li",{key:t.key,className:t.key},a.createElement("a",{href:"#refine",onClick:n=>this.onClick(e,n),onFocus:()=>this.onFocus(e),tabIndex:h,id:`pagination-${e}`},a.createElement("span",{className:"sr-only"},t.key))));break;case"current":r.push(a.createElement("li",{key:t.key,className:t.key},t.page," ",a.createElement("span",{className:"sr-only"},", current page")));break;default:r.push(a.createElement("li",{key:t.key},a.createElement("a",{href:"#refine",id:`pagination-${e}`,onClick:n=>this.onClick(e,n),onFocus:()=>this.onFocus(e)},t.page)))}}return r}}render(){const{hasModal:o,numRanks:r,searching:l,total:t,config:e}=this.props;return t<parseInt(r)||o.filter||o.sort||l||t===0||e.resultsPath!==""?null:a.createElement("nav",{className:"pagination",role:"navigation","aria-label":"Pagination"},a.createElement("ol",null,this.renderLinks()))}}S.defaultProps={hasFocus:(R,o)=>!0,onPageChanged:void 0,hasModal:{filter:!1,sort:!1},numRanks:"20",resultsRef:{current:null},searching:!1,setStartRank:R=>null,startRank:1,total:0,config:{resultsPath:"",text:{noResults:"",hasResults:"",showingResults:"",showingNoResults:"",refine:"",reset:"",sortLabel:"",viewMoreResults:"",searchPlaceholder:"",searchSubmit:""}}},f.A=S}),1312:(function(){window.unsw=window.unsw||{},window.unsw.urlUtil=(function(){function m(u,a){u=u===void 0?window.location.href:u,a=a===void 0?"unsw.edu.au":a;try{var s=new URL(u).hostname,h=s.substring(s.length-a.length-1)==="."+a;return s===a||h}catch(S){return!1}}function f(u,a="unsw.edu.au"){try{const s=new URL(u,window.location.href);return!s.hostname.endsWith(a)&&!s.hostname.endsWith("localhost")}catch(s){return!1}}return{isInternal:m,isExternal:f}})()})}]);

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.