PageSourceSearch

https://www.ctfc.com/_nuxt/DSeoQVKV.js

js ctfc.com collected 2026-09-25 00:22:47 UTC 1,752 bytes, 1 lines download raw bytes

1import{z as O,k as A,r as J}from"./BsvfaeEe.js";const $=(T,q=!1,z=!1)=>{const{$gc:y}=O(),o=J([]),I=A().public.club.sport,w={news:y().news.web,pages:y().pages.web,match:I==="football"?y().football.web().match:void 0,videos:y().videos.web};function x(f){try{JSON.parse(f)}catch{return!1}return!0}const v=async()=>{var h,g;const f=(()=>{let t=T;return t==null?[]:(Array.isArray(t)||(t=[t]),t.filter(n=>n.contents!=="").map(n=>({query:x(n.contents)?JSON.parse(n.contents):n.contents,contentType:n.widgetType=="Fixture"?"WidgetFixture":n.contentType})))})();if(f.length){for(const t of f){if(typeof t.query=="object"){o.value.push({...t.query,contentType:t.contentType,type:"custom"});continue}if(t.contentType==="Promo")return;const n=/([^:|]+):([^=|]+)(?:=?([^|?]+))?\|?(.*?)(?:\?([^|]+))?$/,m=t.query;if(!m){q&&o.value.push(void 0);continue}const b=m.match(n);if(!b)return;const[N,a,s,d,i,p]=b,r=typeof w[a]=="function"?await w[a]():w[a];let u,l=parseInt(i);if(a==="news"&&(u={page:{size:12,number:Math.ceil((parseInt(i)+1)/12)},sort:s==="getIsFeatured"?"featuredOrder:asc":"publishedDateTime:desc"},l-=(u.page.number-1)*u.page.size),a==="match"&&(u={page:{size:parseInt(i)+1}}),a==="videos"){const e=await r[s](d,p);o.value.push(e==null?void 0:e[l]);continue}const F=["tournament-type","event","player"];if(typeof r[s]=="function"){let e,c=(d==null?void 0:d.replace("=",""))||void 0;a==="videos"?e=o.value.push((await r[s](c,p))[l]):i==="null"||i===""?e=await r[s](c,{},p):F.includes(c)?(c=p,e=(h=await r[s](c,u))==null?void 0:h[l]):e=(g=await r[s](c,u,p))==null?void 0:g[l],(e==null?void 0:e.length)==1&&a==="news"&&(e={...e==null?void 0:e[0],type:"news-article"}),o.value.push(e)}}return o.value}};return z||v(),{data:o,getContent:v}};export{$ as u};

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.