PageSourceSearch

https://tylekeonhacai.fit/wp-content/plugins/wp-sport-advanced/assets/dist/assets/TeamPage-DTXkNhJ9.js

js tylekeonhacai.fit collected 2026-10-10 02:41:33 UTC 1,984 bytes, 1 lines download raw bytes

1import{d2 as D,d3 as T,u as b,Q as E,cS as I,cX as w}from"./main-Dx4_sGQs.js";import{c as m,l as h,p as B,D as s,F as a,P as i,S as t,u as e,U as d,E as F,a3 as N}from"./_plugin-vue_export-helper-C8YFU58O.js";const Q=async n=>{const l=`${T.baseURL}/v1/football/teams/${n}?locale=vi`,c=await D(l);if(!c.ok)throw new Error(`HTTP error! status: ${c.status}`);return(await c.json()).data},S=n=>({...b({queryKey:[E.TEAM_DETAIL.INFO,n],queryFn:()=>Q(h(n)),enabled:m(()=>!!h(n)),refetchOnMount:!1,refetchOnWindowFocus:!1,refetchInterval:!1})}),$={class:"page-container"},C={key:0,class:"nav-header"},L={class:"page-content"},P={key:0,class:"state-message"},U={key:1,class:"state-message"},V={key:2,class:"state-message error"},x={key:3,class:"team-detail"},O={class:"team-header-detail"},R={class:"team-meta"},q={key:0},A={key:1},K={key:4,class:"state-message"},M=B({__name:"TeamPage",props:{teamId:{}},setup(n){const l=n,c=I(),u=m(()=>l.teamId||""),{data:o,isLoading:f,isError:g,error:y}=S(u),k=m(()=>!!l.teamId);return(Y,r)=>{var _,v,p;return a(),s("div",$,[e(c).canGoBack()?(a(),s("div",C,[t("button",{onClick:r[0]||(r[0]=j=>e(c).goBack()),class:"btn-back"},"← Quay lại")])):i("",!0),r[2]||(r[2]=t("div",{class:"page-header"},[t("h2",null,"Team Detail")],-1)),t("div",L,[k.value?e(f)?(a(),s("div",U,"Loading team details...")):e(g)?(a(),s("div",V,d(((_=e(y))==null?void 0:_.message)||"Failed to load team details"),1)):e(o)?(a(),s("div",x,[t("div",O,[e(o).logo?(a(),F(w,{key:0,src:e(o).logo,"image-size":"sm",class:"team-logo"},null,8,["src"])):i("",!0),t("div",null,[t("h3",null,d(e(o).name),1),t("div",R,[(v=e(o).coach)!=null&&v.name?(a(),s("span",q,"Coach: "+d(e(o).coach.name),1)):i("",!0),(p=e(o).venue)!=null&&p.name?(a(),s("span",A," • Venue: "+d(e(o).venue.name),1)):i("",!0)])])])])):(a(),s("div",K,"No team data available.")):(a(),s("div",P,[...r[1]||(r[1]=[t("p",null,"No team ID provided.",-1)])]))])])}}}),H=N(M,[["__scopeId","data-v-b09664c8"]]);export{H as default};

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.