PageSourceSearch

https://bongdalu2.org/wp-content/plugins/wp-sport-advanced/assets/dist/assets/PlayerPage-BjtH9aMK.js

js bongdalu2.org collected 2026-10-02 13:21:56 UTC 1,993 bytes, 1 lines download raw bytes

1import{d2 as k,d3 as P,u as D,Q as E,cS as I,cX as w}from"./main-Dx4_sGQs.js";import{c as u,l as m,p as b,D as s,F as a,P as i,S as t,u as e,U as d,E as B,a3 as F}from"./_plugin-vue_export-helper-C8YFU58O.js";const Q=async r=>{const c=`${P.baseURL}/v1/football/players/${r}?locale=vi`,n=await k(c);if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);return(await n.json()).data},S=r=>({...D({queryKey:[E.PLAYER_DETAIL.INFO,r],queryFn:()=>Q(m(r)),enabled:u(()=>!!m(r)),refetchOnMount:!1,refetchOnWindowFocus:!1,refetchInterval:!1})}),N={class:"page-container"},$={key:0,class:"nav-header"},x={class:"page-content"},L={key:0,class:"state-message"},R={key:1,class:"state-message"},U={key:2,class:"state-message error"},C={key:3,class:"player-detail"},K={class:"player-header-detail"},O={class:"player-meta"},T={key:0},V={key:1},Y={key:4,class:"state-message"},q=b({__name:"PlayerPage",props:{playerId:{}},setup(r){const c=r,n=I(),p=u(()=>c.playerId||""),{data:o,isLoading:v,isError:g,error:h}=S(p),f=u(()=>!!c.playerId);return(A,l)=>{var y,_;return a(),s("div",N,[e(n).canGoBack()?(a(),s("div",$,[t("button",{onClick:l[0]||(l[0]=j=>e(n).goBack()),class:"btn-back"},"← Quay lại")])):i("",!0),l[2]||(l[2]=t("div",{class:"page-header"},[t("h2",null,"Player Detail")],-1)),t("div",x,[f.value?e(v)?(a(),s("div",R,"Đang tải dữ liệu cầu thủ...")):e(g)?(a(),s("div",U,d(((y=e(h))==null?void 0:y.message)||"Failed to load player details"),1)):e(o)?(a(),s("div",C,[t("div",K,[e(o).logo?(a(),B(w,{key:0,src:e(o).logo,"image-size":"xs",class:"player-logo"},null,8,["src"])):i("",!0),t("div",null,[t("h3",null,d(e(o).name),1),t("div",O,[e(o).position?(a(),s("span",T,d(e(o).position),1)):i("",!0),(_=e(o).country)!=null&&_.name?(a(),s("span",V," • "+d(e(o).country.name),1)):i("",!0)])])])])):(a(),s("div",Y,"Không có dữ liệu.")):(a(),s("div",L,[...l[1]||(l[1]=[t("p",null,"No player ID provided.",-1)])]))])])}}}),H=F(q,[["__scopeId","data-v-0900aec8"]]);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.