PageSourceSearch

https://www.thenpl.co.uk/assets/TeamList-BHT0je3I.js

js thenpl.co.uk collected 2026-09-25 07:47:03 UTC 1,564 bytes, 2 lines download raw bytes

1import{j as e}from"./vendor-react-nIFFWcjg.js";import{u as d}from"./useTeamsQuery-DCDgKGv8.js";import{L as u}from"./vendor-react-router-65IGR4DC.js";import{I as N,n as h,a3 as g,a4 as i,S as x}from"./main-CUbWTmvN.js";import"./vendor-react-query-ChuYpeSs.js";function j({team:{slug:t,fullName:r,shortName:a,nickName:s,threeLetterName:m,logo:l},nameType:o=i.FullName,style:c}){const n=(()=>{switch(o){case i.ThreeLetterName:return m??"N/A";case i.ShortName:return a??"N/A";case i.FullName:return r??"N/A";case i.NickName:return s??"N/A";default:return a??"N/A"}})();return e.jsx("div",{className:"team-card",style:c,children:e.jsxs(u,{className:"team-card__link",to:`/teams/${t}`,children:[e.jsx(N,{className:"team-card__logo",alt:n,src:l||g,width:"150",height:"150",variant:h.SquareLogoM}),e.jsx("h4",{className:"team-card__name",children:n})]})})}function f({teams:t,nameType:r,columns:a}){return e.jsx("section",{className:"league-division-section",children:e.jsx("div",{className:"league-division-section__body",children:e.jsx("ul",{className:"league-division-section__team-list",style:{gridTemplateColumns:`repeat(${a}, 1fr)`},children:t.map(s=>e.jsx("li",{className:"league-division-section__team-list-item",children:e.jsx(j,{team:s,nameType:r})},s.id))})})})}function k({columns:t=3,nameType:r}){const{data:a,isLoading:s,error:m}=d();return s?e.jsx("div",{style:{display:"block",width:"100%",height:"100%"},children:e.jsx(x,{count:21})}):!a||m?null:e.jsx(f,{teams:a,columns:t,nameType:r})}export{k as TeamList};
2//# sourceMappingURL=TeamList-BHT0je3I.js.map

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.