PageSourceSearch

https://www.wbs.ac.uk/dist/elements.bundle.js?v=edcbdedf2a9c72e88a64

js wbs.ac.uk collected 2026-09-24 08:39:02 UTC 4,889 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[84],{8844:function(e,t,i){i.d(t,{N:function(){return l}});var s=Object.defineProperty,n=(e,t,i)=>((e,t,i)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i)(e,"symbol"!=typeof t?t+"":t,i);class r{constructor(){n(this,"filters",{}),n(this,"andGroups",[]),n(this,"orGroups",[])}filter(e,t){return this.filters[e]=t,this}filterIn(e,t){return this.filters[e]="in^"+t.join(","),this}and(e){const t=new r;return e(t),this.andGroups.push(t),this}or(e){const t=new r;return e(t),this.orGroups.push(t),this}}class o extends r{constructor(e){super(),this.url=e,n(this,"sortStr"),n(this,"showInProgrammeFinderBool",null),n(this,"fieldsArr",[]),n(this,"maxItemsNum"),n(this,"itemsPerPageNum",null)}static builder(e){return new o(e)}sort(e){return this.sortStr=e,this}showInProgrammeFinder(e){return this.showInProgrammeFinderBool=e,this}field(e){return this.fieldsArr.push(e),this}fields(...e){return this.fieldsArr.push(...e),this}maxItems(e){return this.maxItemsNum=e,this}itemsPerPage(e){return this.itemsPerPageNum=e,this}build(){let e=this.url+"/index.cfm/_api/json/v1/wbs2020/content/",t=!1;const i=(i,s)=>{t?e+="&":(e+="?",t=!0),e+=i+"="+s};this.sortStr?i("sort",this.sortStr):i("orderBy","OrderNo"),null!==this.showInProgrammeFinderBool&&i("show_in_programme_finder",this.showInProgrammeFinderBool),this.maxItemsNum&&i("maxitems",this.maxItemsNum),null!==this.itemsPerPageNum&&i("itemsPerPage",this.itemsPerPageNum),this.fieldsArr.length&&i("fields",this.fieldsArr.join(","));const s=(e,t)=>{"and"===t&&i("andOpenGrouping",""),"or"===t&&i("orOpenGrouping",""),Object.keys(e.filters).forEach((t=>{i(t,e.filters[t])})),e.andGroups.forEach((e=>s(e,"and"))),e.orGroups.forEach((e=>s(e,"or"))),"none"!==t&&i("closeGrouping","")};return s(this,"none"),e}}const l=e=>{return void 0,null,t=function*(){const t=o.builder(window.location.protocol+"//"+window.location.hostname);e(t);const i=t.build(),s=yield fetch(i);return yield s.json()},new Promise(((e,i)=>{var s=e=>{try{r(t.next(e))}catch(e){i(e)}},n=e=>{try{r(t.throw(e))}catch(e){i(e)}},r=t=>t.done?e(t.value):Promise.resolve(t.value).then(s,n);r((t=t.apply(undefined,null)).next())}));var t}},6271:function(e,t,i){var s=i(2120);const n={class:"title"},r={class:"inner"},o=["innerHTML"];var l=(0,s.pM)({__name:"AccordionItem.ce",props:{item:{},open:{type:Boolean}},emits:["clicked"],setup(e,{emit:t}){const i=e,l=t,a=(0,s.KR)(!1),u=(0,s.KR)(!1);let c=null;return(0,s.wB)(i,(()=>{i.open?(u.value=i.open,c&&clearTimeout(c),c=setTimeout((()=>{a.value=!0}),300)):(c&&clearTimeout(c),a.value=!1,u.value=i.open)})),(0,s.sV)((()=>{u.value=i.open,u.value&&(a.value=!0)})),(e,t)=>((0,s.uX)(),(0,s.CE)(s.FK,null,[(0,s.Lk)("div",{class:(0,s.C4)(["accordion-item-header",{open:u.value}]),onClick:t[0]||(t[0]=(0,s.D$)((e=>l("clicked")),["stop"]))},[t[1]||(t[1]=(0,s.Lk)("div",{class:"arrow"},null,-1)),(0,s.Lk)("div",n,(0,s.v_)(i.item.title),1)],2),(0,s.Lk)("div",{class:(0,s.C4)(["accordion-item-description",{open:u.value,scroll:a.value}])},[(0,s.Lk)("div",r,[(0,s.Lk)("div",{innerHTML:i.item.body},null,8,o)])],2)],64))}}),a=i(8844);const u={class:"accordion-component"},c={key:1},d={key:0};var h=(0,s.pM)({__name:"Accordion.ce",props:{folder:{},textField:{default:"body"}},setup(e){const t=e,i=(0,s.KR)(!0),n=(0,s.KR)({position:"absolute",left:"50%",margin:"0 auto","z-index":"999",color:"#0254a7"});(0,s.sV)((()=>{return e=this,null,s=function*(){const e=yield(0,a.N)((e=>{e.fields("contentid").filter("filename",t.folder)}));if(e.data.items.length>0){const s=e.data.items[0].contentid,n=yield(0,a.N)((e=>{e.filter("parentid",s),e.itemsPerPage(0),e.maxItems(0),e.fields("title",t.textField)}));r.value=n.data.items.map((e=>({title:e.title,body:e[t.textField]}))),setTimeout((()=>{i.value=!1}),100)}},new Promise(((t,i)=>{var n=e=>{try{o(s.next(e))}catch(e){i(e)}},r=e=>{try{o(s.throw(e))}catch(e){i(e)}},o=e=>e.done?t(e.value):Promise.resolve(e.value).then(n,r);o((s=s.apply(e,null)).next())}));var e,s}));const r=(0,s.KR)([]),o=(0,s.KR)(0);return(e,t)=>((0,s.uX)(),(0,s.CE)("div",u,[i.value?((0,s.uX)(),(0,s.CE)("div",{key:0,style:(0,s.Tr)(n.value)},t[0]||(t[0]=[(0,s.Lk)("i",{class:"fa fa-spinner fa-spin fa-2x fa-fw"},null,-1),(0,s.Lk)("span",{class:"sr-only"},"Loading...",-1)]),4)):(0,s.Q3)("",!0),i.value?(0,s.Q3)("",!0):((0,s.uX)(),(0,s.CE)("div",c,[0===r.value.length?((0,s.uX)(),(0,s.CE)("div",d,t[1]||(t[1]=[(0,s.Lk)("h2",{class:"title"},"There are currently no questions available",-1)]))):(0,s.Q3)("",!0),((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)(r.value,((e,t)=>
1((0,s.uX)(),(0,s.Wv)(l,{item:e,key:e.title,open:t===o.value,onClicked:()=>(e=>{o.value!==e?o.value=e:o.value=-1})(t)},null,8,["item","open","onClicked"])))),128))]))]))}});const m=(0,s.Xq)(h,{shadowRoot:!1});customElements.define("wbs-accordion",m)}},function(e){e(e.s=6271)}]);

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.