PageSourceSearch

https://www.nottscountyfc.co.uk/_nuxt/CvfGHQS_.js

js nottscountyfc.co.uk collected 2026-09-24 21:42:09 UTC 2,325 bytes, 1 lines download raw bytes

1import{g as o}from"./CZWMRUAc.js";class g{constructor(r){if(this.type="news",this.contentFill="auto-fill",this.method="getLatest",this.manualFillIds=null,this.count=12,this.offset=0,this.autofillOptions={latest:""},this.params=null,typeof r=="string"){const e=this.createQueryFromString(r);Object.assign(this,e)}else r&&Object.assign(this,r)}getContentFill(r,e){return e||(["id","getById","getBySlug","getByVideoID"].includes(r)?"manual-fill":"auto-fill")}createQueryFromString(r,e=12){const s=this.resolveContentString(r);if(!s)throw new Error(`Cannot resolve content string, ${r}`);const{type:a,method:t,flag:l,offset:i=0}=s;return{type:a,method:t,manualFillIds:this.resolveManualFillIdsFromFlag(a,t,l),offset:i,count:e,contentFill:this.getContentFill(t),params:this.createParams(a,i,t,e),autofillOptions:this.createAutoFillOptions(a,t,l,i)}}resolveManualFillIdsFromFlag(r,e,s){if(this.getContentFill(e)==="auto-fill")return null;if(r==="match"&&e==="id"&&s){const[a,t,l]=s.split("/");return[{matchID:a,seasonID:l,teamSlug:t.toLowerCase().replaceAll(" ","-")}]}return r==="news"&&e==="getBySlug"?[`byslug?postSlug=${s}`]:[s]}createParams(r,e,s,a){const t={};switch(e>=a?(t.pageSize=a,t.pageNumber=Math.ceil((e+1)/a)||1):(t.pageSize=a+e,t.pageNumber=1),r){case"news":return t.sort=s==="getIsFeatured"?"featuredOrder:asc":"publishedDateTime:desc",t;case"videos":return t.sort="publicationData.startAt:desc",t;default:return t}}resolveContentString(r){const e=r.match(/([^:|]+):([^=|]+)(?:=?([^|?]+))?\|?(.*?)(?:\?([^|]+))?$/);if(e){const[s,a,t,l,i,n]=e;return{type:a,method:t,flag:l,offset:Number(i)||0,optionalFlag:n}}return null}createAutoFillOptions(r,e,s,a){if(r==="news"){const t={};switch(e){case"getIsFeatured":t.featured="featured:1";break;case"getSearchResults":t.search=s?`q=${s}`:void 0;break;case"getLatest":t.latest=s?`q=${s}`:void 0;break;case"getByCategory":t.category=s}return t}if(r==="videos"){const t={};switch(e){case"getLatest":t.latest=s?`${s}`:void 0;break;case"getByCategory":t.category=`(tagData.categories:"${s}") AND (_exists_:publicationData.startAt)`}return t}if(r==="match"){const t={},l=o(s);switch(e){case"latestResult":t.teamID=(l==null?void 0:l.id)??s,t.numberOfFixtures=a+1;break;case"nextMatch":t.teamID=(l==null?void 0:l.id)??s,t.numberOfMatches=a+1}return t}return null}}export{g as G};

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.