1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="43a14ddc-c22e-5b6b-9e6e-92528dc37685")}catch(e){}}(); 3import{g as s,l as e}from"./client-CRSsQ2ls.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};a._sentryModuleMetadata=a._sentryModuleMetadata||{},a._sentryModuleMetadata[new a.Error().stack]=(function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];if(r!=null)for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])}return t})({},a._sentryModuleMetadata[new a.Error().stack],{"_sentryBundlerPluginAppKey:uoh-app":!0})}catch{}})();const i=["entryTitle","heading","title","description","copy","studyLevel","studyMode","courseVariants","entryRequirements","benefit","type","appStatus","image","date","seoStandard","building","contract","bathroom","catering","floorPlan","accessible","weeklyPrice","totalPrice","occupancyDates","gallery","fullName","jobTitle","profileImage","briefBio","email","telephone","backgroundColour","featured","heroStandard","heroStandardAvantGarde","status","institute","centre","subject","subjectGroup","school","theme","duration","location","subjects","awardedBy","categories","category","subcategory","virtual","format","feesAndFunding","yearFee","year","linkedIn","twitter"],l=async a=>{const t=s(),n=new e.Query(e.Op.equalTo("sys.versionStatus","published"),e.Op.equalTo("sys.dataFormat","entry"),Array.isArray(a)?e.Op.in("sys.contentTypeId",...a):e.Op.equalTo("sys.contentTypeId",a));n.pageSize=100,n.fields=["entryTitle","id","label"],n.orderBy=e.OrderBy.asc("label");try{const r=await t.entries.search(n);return r.items=[...new Map(r.items.map(o=>[o.id,o])).values()],r}catch(r){console.log(r)}return[]},u=async(a,t="")=>{const n=s(),r=new e.Query(e.Op.equalTo("sys.versionStatus","published"),e.Op.equalTo("sys.dataFormat","entry"),e.Op.equalTo("sys.contentTypeId",a));t&&r.where.add(e.Op.or(e.Op.equalTo("category.entryDescription",t),e.Op.equalTo("subcategory.entryDescription",t),e.Op.equalTo("school.entryDescription",t),e.Op.equalTo("subject.entryDescription",t),e.Op.equalTo("subjectGroup.entryDescription",t),e.Op.equalTo("institute.entryDescription",t),e.Op.equalTo("centre.entryDescription",t),e.Op.equalTo("theme.entryDescription",t),e.Op.equalTo("courseVariants.variant.entryDescription",t),e.Op.equalTo("building.entryDescription",t))),r.pageSize=2e3,r.fields=i,r.fieldLinkDepths={feesAndFunding:1},a==="staffProfile"&&(r.orderBy=e.OrderBy.asc("lastName")),a==="pageNewsArticle"&&(r.orderBy=e.OrderBy.desc("date")),a==="pageEvent"&&(r.orderBy=e.OrderBy.asc("date.from"));try{return await n.entries.search(r)}catch(o){console.log(o)}},d=async a=>{const t=s();try{return await t.entries.get({id:a,fields:i})}catch(n){return console.log(n),null}};export{d as a,u as b,l as g}; 4 5//# debugId=43a14ddc-c22e-5b6b-9e6e-92528dc37685
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.