1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,61283,e=>{"use strict";var t=e.i(843476),a=e.i(271645),i=e.i(618566),l=e.i(234913),r=e.i(424083),s=e.i(555436),n=e.i(693655);async function o(e,t={},a=1,i=20,l){let r={company:"/api/company",city:"/api/city",education:"/api/educations",influencer:"/api/influencer",investor:"/api/investor",organisation:"/api/organization",sport:"/api/sports",athlete:"/api/athletes",federation:"/api/federations",team:"/api/teams",stadium:"/api/stadiums"}[e];if(!r)return;let s="city"===e||"education"===e?Math.max(a-1,0):a,n=new URLSearchParams;n.set("page",String(s)),n.set("size",String(i)),l&&n.set("sort",l),Object.entries(t||{}).forEach(([e,t])=>{null!=t&&""!==t&&n.set(e,String(t))});let c=await fetch(`${r}?${n.toString()}`,{method:"GET",cache:"no-store"});if(!c.ok)return void console.error("fetchTableEntities: failed to fetch",e,c.status,c.statusText);let d=await c.json(),p=d?.pagination||{};return{items:d?.items??[],total:p?.total??0,page:p?.page??a,size:p?.size??p?.pageSize??i}}async function c(e,t){if(!t.length)return[];let a={company:"/api/company",city:"/api/city",education:"/api/educations",influencer:"/api/influencer",investor:"/api/investor",organisation:"/api/organization",sport:"/api/sports",athlete:"/api/athletes",federation:"/api/federations",team:"/api/teams",stadium:"/api/stadiums"}[e];if(!a)return[];let i=new URLSearchParams;i.set("ids",t.join(",")),i.set("page","0"),i.set("size",String(t.length));let l=await fetch(`${a}?${i.toString()}`,{method:"GET",cache:"no-store"});if(!l.ok)return[];let r=await l.json();return r?.items??[]}var d=e.i(907130),p=e.i(162351);let u=e=>{if(null==e||""===e)return"0";let t="number"==typeof e?e:Number("string"==typeof e?e.replace(/,/g,""):e);if(!Number.isFinite(t))return"string"==typeof e&&""!==e.trim()?e:"0";try{if(t>=1e12)return`${(t/1e12).toFixed(2)}T`;if(t>=1e9)return`${(t/1e9).toFixed(2)}B`;if(t>=1e6)return`${(t/1e6).toFixed(2)}M`;return t.toLocaleString("en-US")}catch(e){return console.error("Error formatting market cap:",e),"0"}};var m=e.i(975157),y=e.i(882492),h=e.i(640651),b=e.i(187044);let g={S_0_50:"0 â 50",S_50_100:"50 â 100",S_100_500:"100 â 500",S_500_1000:"500 â 1,000","S_1,000_20,000":"1,000 â 20,000",S_1000_20000:"1,000 â 20,000",S_1_000_20_000:"1,000 â 20,000","S_20,000_50,000":"20,000 â 50,000",S_20000_50000:"20,000 â 50,000",S_20_000_50_000:"20,000 â 50,000","S_Above 50,000":"50,000+","S_Above 50000":"50,000+",S_Above_50_000:"50,000+",S_Above_50000:"50,000+"},f={S_$500K_$2M:"$500K â $2M",S_$2M_$5M:"$2M â $5M",S_$5M_$20M:"$5M â $20M",S_$20M_$100M:"$20M â $100M",S_$100M_$500M:"$100M â $500M",S_$500M_$1B:"$500M â $1B","S_Above $1B":"$1B+",S_2M_5M:"$2M â $5M",S_5M_20M:"$5M â $20M",S_20M_100M:"$20M â $100M",S_100M_500M:"$100M â $500M",S_500M_1B:"$500M â $1B",S_Above_1B:"$1B+","$500K - $2M":"$500K â $2M","$2M - $5M":"$2M â $5M","$5M - $20M":"$5M â $20M","$20M - $100M":"$20M â $100M","$100M - $500M":"$100M â $500M","$500M - $1B":"$500M â $1B","Above $1B":"$1B+","Above - 1B":"$1B+","Above - $1B":"$1B+"},k={S_0_50:"0 â 50",S_50_100:"50 â 100",S_100_500:"100 â 500",S_500_1000:"500 â 1,000",S_1000_20000:"1,000 â 20,000",S_1_000_20_000:"1,000 â 20,000",S_20000_50000:"20,000 â 50,000",S_20_000_50_000:"20,000 â 50,000","S_Above 50000":"50,000+",S_Above_50000:"50,000+",S_Above_50_000:"50,000+"};function x(e){return g[e]??e}function v(e){return f[e]??e}function w(e){return k[e]??e}var j=e.i(522016);function N({row:e,isLightmode:a}){let i=[];return e.website&&i.push({key:"website",href:e.website,icon:"/assets/social-media/site.svg",label:"Website"}),e.facebook_url&&i.push({key:"facebook",href:e.facebook_url,icon:"/assets/social-media/facebook.svg",label:"Facebook"}),e.instagram_url&&i.push({key:"instagram",href:e.instagram_url,icon:"/assets/social-media/instagram.svg",label:"Instagram"}),e.twitter_url&&i.push({key:"twitter",href:e.twitter_url,icon:"/assets/social-media/twitter.svg",label:"Twitter"}),e.linkedin_url&&i.push({key:"linkedin",href:e.linkedin_url,icon:"/assets/social-media/linkedin.svg",label:"LinkedIn"}),e.youtube_channel_url&&i.push({key:"youtube",href:e.youtube_channel_url,icon:"/assets/social-media/youtube.svg",label:"YouTube"}),(0,t.jsx)("td",{className:"py-3 pr-4 align-top w-32",onClick:e=>e.stopPropagation(),children:(0,t.jsx)("div",{className:"flex gap-2 justify-start",children:i.map(e=>(0,t.jsx)("a",{href:e.href,target:"_blank",rel:"noreferrer","aria-label":e.label,className:a?"text-black hover:text-gray-700":"text-white hover:text-white/80",children:(0,t.jsx)("img",{src:e.icon,alt:e.label,className:`h-4 w-4 ${a?"invert":""}`})},e.key))})},"social")}function _({row:e,index:a,columns:i,isLightmode:l,show:r,href:s}){return(0,t.jsx)("tr",{onClick:s?()=>window.location.href=s:void 0,className:`border-b last:border-0 ${l?"border-gray-300 hover:bg-gray-50":"border-white/10 hover:bg-white/5"} ${s?"cursor-pointer":""}`,children:i.map(a=>{if("rank"===a.key)return(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("span",{className:`font-semibold ${l?"text-black":"text-white"}`,children:null!=e.market_cap_rank&&e.market_cap_rank<0x7fffffff?e.market_cap_rank:"-"})},"rank");if("logo"===a.key||"featureImage"===a.key){let i=e.featureImage||e.featureImageSmall||e.feature_image||e.feature_imageSmall||"";return(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"h-14 w-14 md:h-16 md:w-16 rounded border border-gray-200 bg-white flex items-center justify-center p-1.5",children:(0,t.jsx)(d.ImgWithFallback,{src:i,alt:e.title||"",className:"w-full h-full object-contain"})})},a.key)}return"name"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)(j.default,{href:`/wiki/${e.slug}`,children:(0,t.jsx)("span",{className:`font-semibold ${l?"text-black":"text-white"}`,children:e.title})})},"name"):"tagline"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top overflow-hidden",children:(0,t.jsx)("div",{className:"line-clamp-3",children:e.business_tagline||""})},"tagline"):"description"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top overflow-hidden",children:(0,t.jsx)("div",{className:"line-clamp-3",children:e.description||""})},"description"):"productsAndServices"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top overflow-hidden",children:(0,t.jsx)("div",{className:"line-clamp-3",children:e.products_and_services||""})},"productsAndServices"):"numOfEmployees"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top whitespace-nowrap",children:e.num_of_employees?x(e.num_of_employees):""},"numOfEmployees"):"headquarters"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"line-clamp-3",children:e.headquarters||""})},"headquarters"):"revenues"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top whitespace-nowrap",children:e.revenues?v(e.revenues):""},"revenues"):"marketCap"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"line-clamp-3",children:e.market_cap&&0!==Number(e.market_cap)?u(e.market_cap):""})},"marketCap"):"social"===a.key?(0,t.jsx)(N,{row:e,isLightmode:l,show:r},"social"):null})},e.id??a)}function S({row:e,index:a,columns:i,isLightmode:l,href:r}){let s=e.fields||[],n=e=>s.find(t=>t.label===e)?.value||"";return(0,t.jsx)("tr",{onClick:r?()=>window.location.href=r:void 0,className:`border-b last:border-0 ${l?"border-gray-300 hover:bg-gray-50":"border-white/10 hover:bg-white/5"} ${r?"cursor-pointer":""}`,children:i.map(a=>{if("name"===a.key)return(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)(j.default,{href:`/cities/${e.slug}`,children:(0,t.jsx)("span",{className:`font-semibold ${l?"text-black":"text-white"}`,children:e.title||e.name||"-"})})},"name");if("country"===a.key)return(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("span",{className:"block line-clamp-3",children:e.country||n("Country")})},"country");if("population"===a.key){let a=e.population_total||n("Population");return(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("span",{className:"block line-clamp-3",children:a&&0!==Number(a)?a:""})},"population")}if("governmentType"===a.key)return(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("span",{className:"block line-clamp-3",children:e.government_type||n("Government Type")})},"governmentType");if("gdp"===a.key){let a=e.gdp||n("GDP");return(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("span",{className:"block line-clamp-3",children:a&&0!==Number(a)?(0,m.formatCompactNumber)(a):""})},"gdp")}if("social"===a.key)return e.city_website?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",onClick:e=>e.stopPropagation(),children:(0,t.jsx)("a",{href:e.city_website,target:"_blank",rel:"noreferrer","aria-label":"Website",children:(0,t.jsx)("img",{src:"/assets/social-media/site.svg",alt:"Website",className:`h-4 w-4 ${l?"invert":""}`})})}
1,"social"):(0,t.jsx)("td",{className:"py-3 pr-4 align-top"},"social");if("description"===a.key)return(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("span",{className:`block line-clamp-3 ${l?"text-gray-700":"text-white/80"}`,children:e.description||""})},"description");if("image"===a.key){let a=e.featureImage||e.featureImageSmall||e.feature_image||e.feature_imageSmall||void 0;return(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"h-14 w-14 md:h-16 md:w-16 rounded border border-gray-200 overflow-hidden",children:(0,t.jsx)(d.ImgWithFallback,{src:a||"",alt:e.title||"",className:"w-full h-full object-cover"})})},"image")}return null})},e.id??a)}function $({row:e,index:a,columns:i,isLightmode:l,show:r,href:s}){return(0,t.jsx)("tr",{onClick:s?()=>window.location.href=s:void 0,className:`border-b last:border-0 ${l?"border-gray-300 hover:bg-gray-50":"border-white/10 hover:bg-white/5"} ${s?"cursor-pointer":""}`,children:i.map(a=>{if("featureImage"===a.key){let a=e.featureImage||e.featureImageSmall||e.feature_image||e.feature_imageSmall||"";return(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"h-16 w-16 md:h-20 md:w-20 rounded bg-white flex items-center justify-center p-1",children:(0,t.jsx)(d.ImgWithFallback,{src:a,alt:e.title||"",className:"w-full h-full object-contain"})})},"featureImage")}return"name"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)(j.default,{href:`/wiki/${e.slug}`,children:(0,t.jsx)("span",{className:`font-semibold ${l?"text-black":"text-white"}`,children:e.title})})},"name"):"tagline"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"line-clamp-3",children:e.business_tagline||""})},"tagline"):"description"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"line-clamp-3",children:e.description||""})},"description"):"numAcademicStaff"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"line-clamp-3",children:e.num_academic_staff?w(e.num_academic_staff):""})},"numAcademicStaff"):"numStudents"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"line-clamp-3",children:e.num_students&&0!==Number(e.num_students)?e.num_students:""})},"numStudents"):"locations"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"line-clamp-3",children:e.locations||""})},"locations"):"established"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"line-clamp-3",children:e.established||""})},"established"):"affiliations"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"line-clamp-3",children:e.afiliations||""})},"affiliations"):"address"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"line-clamp-3",children:e.address||""})},"address"):"social"===a.key?(0,t.jsx)(N,{row:e,isLightmode:l,show:r},"social"):null})},e.id??a)}function I({row:e,index:a,columns:i,isLightmode:l,show:r,href:s}){return(0,t.jsx)("tr",{onClick:s?()=>window.location.href=s:void 0,className:`border-b last:border-0 ${l?"border-gray-300 hover:bg-gray-50":"border-white/10 hover:bg-white/5"} ${s?"cursor-pointer":""}`,children:i.map(a=>{if("featureImage"===a.key){let a=e.featureImage||e.feature_image||e.featureImageSmall||e.feature_imageSmall||"";return(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"h-14 w-14 md:h-16 md:w-16 rounded border border-gray-200 overflow-hidden",children:(0,t.jsx)(d.ImgWithFallback,{src:a,alt:e.title||"",className:"w-full h-full object-cover"})})},"featureImage")}return"name"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)(j.default,{href:`/wiki/${e.slug}`,children:(0,t.jsx)("span",{className:`font-semibold ${l?"text-black":"text-white"}`,children:e.title})})},"name"):"tagline"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"line-clamp-3",children:e.business_tagline||""})},"tagline"):"description"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"line-clamp-3",children:e.description||""})},"description"):"nationality"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"line-clamp-3",children:e.nationality||""})},"nationality"):"occupation"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"line-clamp-3",children:e.occupation||""})},"occupation"):"knownFor"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"line-clamp-3",children:e.known_for||""})},"knownFor"):"accolades"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"line-clamp-3",children:e.accolades||""})},"accolades"):"social"===a.key?(0,t.jsx)(N,{row:e,isLightmode:l,show:r},"social"):null})},e.id??a)}function C({row:e,index:a,columns:i,isLightmode:l,show:r,href:s}){return(0,t.jsx)("tr",{onClick:s?()=>window.location.href=s:void 0,className:`border-b last:border-0 ${l?"border-gray-300 hover:bg-gray-50":"border-white/10 hover:bg-white/5"} ${s?"cursor-pointer":""}`,children:i.map(a=>{if("featureImage"===a.key){let a=e.featureImage||e.featureImageSmall||e.feature_image||e.feature_imageSmall||"";return(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"h-14 w-14 md:h-16 md:w-16 rounded border border-gray-200 bg-white flex items-center justify-center p-1.5",children:(0,t.jsx)(d.ImgWithFallback,{src:a,alt:e.title||"",className:"w-full h-full object-contain"})})},"featureImage")}if("name"===a.key)return(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)(j.default,{href:`/wiki/${e.slug}`,children:(0,t.jsx)("span",{className:`font-semibold ${l?"text-black":"text-white"}`,children:e.title})})},"name");if("tagline"===a.key)return(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"line-clamp-3",children:e.business_tagline||""})},"tagline");if("description"===a.key)return(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"line-clamp-3",children:e.description||""})},"description");if("numOfEmployees"===a.key)return(0,t.jsx)("td",{className:"py-3 pr-4 align-top whitespace-nowrap",children:e.num_of_employees?x(e.num_of_employees):""},"numOfEmployees");if("headquarters"===a.key)return(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"line-clamp-3",children:e.headquarters||""})},"headquarters");if("established"===a.key)return(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"line-clamp-3",children:e.established||""})},"established");if("address"===a.key)return(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"line-clamp-3",children:e.address||""})},"address");if("types"===a.key){let a=e.typesTitles||[];return(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"line-clamp-3",children:a.join(", ")})},"types")}return"social"===a.key?(0,t.jsx)(N,{row:e,isLightmode:l,show:r},"social"):null})},e.id??a)}function T({row:e,index:a,columns:i,isLightmode:l,show:r,href:s}){return(0,t.jsx)("tr",{onClick:s?()=>window.location.href=s:void 0,className:`border-b last:border-0 ${l?"border-gray-100 hover:bg-gray-50":"border-white/5 hover:bg-white/5"} ${s?"cursor-pointer":""}`,children:i.map(a=>{if("featureImage"===a.key){let a=e.featureImage||e.featureImageSmall||e.feature_image||e.feature_imageSmall||"";return(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"h-14 w-14 md:h-16 md:w-16 rounded border border-gray-200 bg-white flex items-center justify-center p-1.5",children:(0,t.jsx)(d.ImgWithFallback,{src:a,alt:e.title||"",className:"w-full h-full object-contain"})})},"featureImage")}return"name"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)(j.default,{href:`/wiki/${e.slug}`,children:(0,t.jsx)("span",{className:`font-semibold ${l?"text-black":"text-white"}`,children:e.title})})},"name"):"description"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"line-clamp-3",children:e.description||""})},"description"):"tagline"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"line-clamp-3",children:e.business_tagline||""})},"tagline"):"headquarters"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"line-clamp-3",children:e.headquarters||""})},"headquarters"):"address"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"line-clamp-3",children:e.address||""})},"address"):"yearEstablished"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"line-clamp-3",children:e.year_stablished||""})},"yearEstablished"):"social"===a.key?(0,t.jsx)(N,{row:e,isLightmode:l,show:r},"social"):"type"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:e.type||""},"type"):null})},e.id??a)}function M({row:e,index:a,columns:i,isLightmode:l,show:r,href:s}){return(0,t.jsx)("tr",{onClick:s?()=>window.location.href=s:void 0,className:`border-b last:border-0 ${l?"border-gray-300 hover:bg-gray-50":"border-white/10 hover:bg-white/5"} ${s?"cursor-pointer":""}`,children:i.map(a=>{if("featureImage"===a.key){let a=e.feature_imageSmall||e.feature_image||"";return(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"h-14 w-14 roun
1ded border border-gray-200 overflow-hidden",children:(0,t.jsx)(d.ImgWithFallback,{src:a,alt:e.title||"",className:"w-full h-full object-cover",fallbackSrc:d.SPORTS_FALLBACK_SRC})})},"featureImage")}return"name"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)(j.default,{href:s||`/sports/${e.slug}`,children:(0,t.jsx)("span",{className:`font-semibold ${l?"text-black":"text-white"}`,children:e.title})})},"name"):"description"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"line-clamp-3",children:e.description||""})},"description"):"type"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:e.type||""},"type"):"supremeAuthority"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:e.supreme_authority||""},"supremeAuthority"):"origin"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:e.origin||""},"origin"):"firstPlayed"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:e.first_played||""},"firstPlayed"):"focus"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:e.focus||""},"focus"):"participationLevel"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:e.participation_level||""},"participationLevel"):"viewershipTier"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:e.viewership_tier||""},"viewershipTier"):"globalReach"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:e.global_reach||""},"globalReach"):"social"===a.key?(0,t.jsx)(N,{row:e,isLightmode:l,show:r},"social"):null})},e.id??a)}function A({row:e,index:a,columns:i,isLightmode:l,show:r,href:s}){return(0,t.jsx)("tr",{onClick:s?()=>window.location.href=s:void 0,className:`border-b last:border-0 ${l?"border-gray-300 hover:bg-gray-50":"border-white/10 hover:bg-white/5"} ${s?"cursor-pointer":""}`,children:i.map(a=>{if("featureImage"===a.key){let a=(0,y.getAthleteListingImage)(e);return(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"h-14 w-14 rounded-full border border-gray-200 overflow-hidden",children:(0,t.jsx)(d.ImgWithFallback,{src:a,alt:e.title||"",className:"w-full h-full object-cover",fallbackSrc:d.SPORTS_FALLBACK_SRC})})},"featureImage")}return"name"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)(j.default,{href:s||`/athletes/${e.slug}`,children:(0,t.jsx)("span",{className:`font-semibold ${l?"text-black":"text-white"}`,children:e.title})})},"name"):"description"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"line-clamp-3",children:e.description||""})},"description"):"fullName"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:e.full_name||""},"fullName"):"tagline"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"line-clamp-2",children:e.business_tagline||""})},"tagline"):"sport"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:e.sport||""},"sport"):"country"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:e.country||""},"country"):"positions"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:e.positions||""},"positions"):"currentTeam"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:e.current_team||""},"currentTeam"):"birthdate"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:e.birthdate||""},"birthdate"):"placeOfBirth"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:e.place_of_birth||""},"placeOfBirth"):"social"===a.key?(0,t.jsx)(N,{row:e,isLightmode:l,show:r},"social"):null})},e.id??a)}function L({row:e,index:a,columns:i,isLightmode:l,show:r,href:s}){return(0,t.jsx)("tr",{onClick:s?()=>window.location.href=s:void 0,className:`border-b last:border-0 ${l?"border-gray-300 hover:bg-gray-50":"border-white/10 hover:bg-white/5"} ${s?"cursor-pointer":""}`,children:i.map(a=>{if("featureImage"===a.key){let a=e.feature_imageSmall||e.feature_image||"";return(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"h-14 w-14 roun
1ded border border-gray-200 overflow-hidden",children:(0,t.jsx)(d.ImgWithFallback,{src:a,alt:e.title||"",className:"w-full h-full object-cover",fallbackSrc:d.SPORTS_FALLBACK_SRC})})},"featureImage")}return"name"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)(j.default,{href:s||`/federations/${e.slug}`,children:(0,t.jsx)("span",{className:`font-semibold ${l?"text-black":"text-white"}`,children:e.title})})},"name"):"description"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"line-clamp-3",children:e.description||""})},"description"):"abbreviation"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:e.abbreviation||""},"abbreviation"):"sport"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:e.sport||""},"sport"):"headquarters"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:e.headquarters||""},"headquarters"):"regionServed"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:e.region_served||""},"regionServed"):"president"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:e.president||""},"president"):"founded"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:e.founded||""},"founded"):"social"===a.key?(0,t.jsx)(N,{row:e,isLightmode:l,show:r},"social"):null})},e.id??a)}function B({row:e,index:a,columns:i,isLightmode:l,show:r,href:s}){return(0,t.jsx)("tr",{onClick:s?()=>window.location.href=s:void 0,className:`border-b last:border-0 ${l?"border-gray-300 hover:bg-gray-50":"border-white/10 hover:bg-white/5"} ${s?"cursor-pointer":""}`,children:i.map(a=>{if("featureImage"===a.key){let a=(0,h.getTeamListingImage)(e);return(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"h-14 w-14 rounded border border-gray-200 overflow-hidden",children:(0,t.jsx)(d.ImgWithFallback,{src:a,alt:e.title||"",className:"w-full h-full object-cover",fallbackSrc:d.SPORTS_FALLBACK_SRC})})},"featureImage")}return"name"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)(j.default,{href:s||`/teams/${e.slug}`,children:(0,t.jsx)("span",{className:`font-semibold ${l?"text-black":"text-white"}`,children:e.title})})},"name"):"description"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"line-clamp-3",children:e.description||""})},"description"):"fullName"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:e.full_name||""},"fullName"):"nickname"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:e.nickname||""},"nickname"):"sport"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:e.sport||""},"sport"):"country"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:e.country||""},"country"):"homeStadium"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:e.home_stadium||""},"homeStadium"):"founded"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:e.founded||""},"founded"):"headCoach"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:e.head_coach||""},"headCoach"):"captain"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:e.captain||""},"captain"):"social"===a.key?(0,t.jsx)(N,{row:e,isLightmode:l,show:r},"social"):null})},e.id??a)}function F({row:e,index:a,columns:i,isLightmode:l,show:r,href:s}){return(0,t.jsx)("tr",{onClick:s?()=>window.location.href=s:void 0,className:`border-b last:border-0 ${l?"border-gray-300 hover:bg-gray-50":"border-white/10 hover:bg-white/5"} ${s?"cursor-pointer":""}`,children:i.map(a=>{if("featureImage"===a.key){let a=e.feature_imageSmall||e.feature_image||"";return(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"h-14 w-14 rounded border border-gray-200 overflow-hidden",children:(0,t.jsx)(d.ImgWithFallback,{src:a,alt:e.title||"",className:"w-full h-full object-cover",fallbackSrc:d.SPORTS_FALLBACK_SRC})})},"featureImage")}return"name"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)(j.default,{href:s||`/stadiums/${e.slug}`,children:(0,t.jsx)("span",{className:`font-semibold ${l?"text-black":"text-white"}`,children:e.title})})},"name"):"description"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("div",{className:"line-clamp-3",children:e.description||""})},"description"):"fullName"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:e.full_name||""},"fullName"):"country"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:e.country||""},"country"):"location"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:e.location||""},"location"):"capacity"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:e.capacity||""},"capacity"):"operator"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:e.operator||""},"operator"):"surfaceType"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:e.surface_type||""},"surfaceType"):"openedDate"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:e.opened_date||""},"openedDate"):"owner"===a.key?(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:e.owner||""},"owner"):"social"===a.key?(0,t.jsx)(N,{row:e,isLightmode:l,show:r},"social"):null})},e.id??a)}let O=e=>!!e&&!1!==e.enabled;function P(e){var g;let f,k,j,N,P,q,R,E,D,W,G,K,H,z,U,V,Y,J,Q,X,Z,{isLightmode:ee,paddingXClass:et}=(0,l.useAppContext)(),ea=(0,i.useRouter)(),{title:ei,description:el,show_tabs:er=!0,show_filters:es=!1,cards:en=!1,card_image_aspect_ratio:eo,city_table:ec,company_table:ed,education_table:ep,influencer_table:eu,
1investor_table:em,organisation_table:ey,sport_table:eh,athlete_table:eb,federation_table:eg,team_table:ef,stadium_table:ek,initialRowsByTab:ex={}}=e,ev=(0,a.useMemo)(()=>{let e=[];return O(ed)&&e.push({key:"company",label:"Companies"}),O(ec)&&e.push({key:"city",label:"Cities"}),O(ep)&&e.push({key:"education",label:"Education"}),O(eu)&&e.push({key:"influencer",label:"Influencers"}),O(em)&&e.push({key:"investor",label:"Investors"}),O(ey)&&e.push({key:"organisation",label:"Organisations"}),O(eh)&&e.push({key:"sport",label:"Sports"}),O(eb)&&e.push({key:"athlete",label:"Athletes"}),O(eg)&&e.push({key:"federation",label:"Federations"}),O(ef)&&e.push({key:"team",label:"Teams"}),O(ek)&&e.push({key:"stadium",label:"Stadiums"}),e},[ec,ed,ep,eu,em,ey,eh,eb,eg,ef,ek]),[ew,ej]=(0,a.useState)(null),[eN,e_]=(0,a.useState)(1),[eS,e$]=(0,a.useState)({}),[eI,eC]=(0,a.useState)({}),[eT,eM]=(0,a.useState)({}),[eA,eL]=(0,a.useState)([]),[eB,eF]=(0,a.useState)(0),[eO,eP]=(0,a.useState)(!1),[eq,eR]=(0,a.useState)(()=>ex),[eE,eD]=(0,a.useState)(null);(0,a.useEffect)(()=>{if(!ev.length)return void ej(null);if(!ew){let e=window.location.hash.replace("#",""),t=ev.find(t=>t.key===e);if(t){ej(t.key),e_(1),e$({}),eC({});return}}ew&&ev.some(e=>e.key===ew)||(ej(ev[0].key),e_(1),e$({}),eC({}))},[ev,ew]);let eW=(0,a.useMemo)(()=>({company:ed,city:ec,education:ep,influencer:eu,investor:em,organisation:ey,sport:eh,athlete:eb,federation:eg,team:ef,stadium:ek}),[ed,ec,ep,eu,em,ey,eh,eb,eg,ef,ek]);(0,a.useEffect)(()=>{if(!ew)return;let e=!1;return(async()=>{let t=eT[ew],a=!!(t&&""!==String(t).trim())||Object.keys(eS).length>0;if(eN<=1&&!a){let e=eq[ew];if(e){eL(e.rows),eF(e.total),eP(!1);return}}eP(!0);try{let{filters:i,sort:l}=function(e,t){let a={},i=[];if("company"===e){let e=t.company,l=e?.filters||{};l.cityId&&(a.city_id=l.cityId),l.countryCode&&(a.country_code=l.countryCode),l.typeId&&(a.type_id=l.typeId),l.sortByMarketCapRank&&i.push(String(l.sortByMarketCapRank))}else if("city"===e){let e=t.city,i=e?.filters||{};i.countryId&&(a.country_id=i.countryId),i.hasPopulation&&(a.has_population="true"),i.hasGdp&&(a.has_gdp="true")}else if("education"===e){let e=t.education,i=e?.filters||{};i.cityId&&(a.city_id=i.cityId)}else if("influencer"===e){let e=t.influencer;e?.rankedOnly&&(a.ranked_only="true",i.push("rank:asc"))}else if("investor"===e){let e=t.investor,i=e?.filters||{};i.typeId&&(a.type_id=i.typeId)}else if("organisation"===e){let e=t.organisation,i=e?.filters||{};i.typeId&&(a.type_id=i.typeId)}else if("athlete"===e){let e=t.athlete,i=e?.filters||{};i.sportId&&(a.sport_id=i.sportId),i.countryId&&(a.country_id=i.countryId)}else if("federation"===e){let e=t.federation,i=e?.filters||{};i.sportId&&(a.sport_id=i.sportId)}else if("team"===e){let e=t.team,i=e?.filters||{};i.sportId&&(a.sport_id=i.sportId),i.countryId&&(a.country_id=i.countryId)}else if("stadium"===e){let e=t.stadium,i=e?.filters||{};i.countryId&&(a.country_id=i.countryId)}return{filters:a,sort:i}}(ew,eW),r={...i,...eS};t&&""!==String(t).trim()&&(r.search=String(t).trim());let s=l.length>0?l.join(","):"asc",n=await o(ew,r,eN,20,s);if(!n||e)return;let d=n.items||[],p=n.total||0;if(eN<=1&&!a){let t=eW[ew]?.shownFirstIds;if(t&&t.length>0){let a=new Set(t),i=await c(ew,t);if(e)return;i.sort((e,a)=>t.indexOf(String(e.id))-t.indexOf(String(a.id)));let l=d.filter(e=>!a.has(String(e.id)));d=[...i,...l]}}eL(e=>{if(eN<=1)return d;let t=new Set(e.map(e=>String(e.id))),a=d.filter(e=>!t.has(String(e.id)));return[...e,...a]}),eF(p),eR(e=>{if(eN<=1)return{...e,[ew]:{rows:d,total:p}};let t=e[ew]?.rows||[],a=new Set(t.map(e=>String(e.id))),i=d.filter(e=>!a.has(String(e.id)));return{...e,[ew]:{rows:[...t,...i],total:p}}})}catch(e){console.error("ComponentPagesTable: failed to load data",e)}finally{e||eP(!1)}})(),()=>{e=!0}},[ew,eN,eS,eT,ed,ec,ep,em,ey,eW,eq]),(0,a.useEffect)(()=>{if(eE)return;let e=ed?.show||{},t=ep?.show||{},a=em?.show||{},i=ey?.show||{},l="company"===ew&&(e.filterByCities||e.filterByIndustry||e.filterByType),r="education"===ew&&t.filterCities,s="investor"===ew&&a.filterTypes,n="organisation"===ew&&i.filterType;if(!l&&!r&&!s&&!n)return;let o=!1;return(async()=>{try{let e=await fetch("/api/company-filters",{cache:"no-store"});if(!e.ok)return void console.error("ComponentPagesTable: failed to load company filter options",e.status,e.statusText);let t=await e.json();if(o)return;eD({cities:t.cities||[],countries:t.countries||[],types:t.types||[],industries:t.industries||[],investorTypes:t.investorTypes||[],organisationTypes:t.organisationTypes||[]})}catch(e){o||console.error("ComponentPagesTable: error loading company filter options",e)}})(),()=>{o=!0}},[ew,ed,ep,em,ey,eE]);let eG=ed?.show||{},eK=ec?.show||{},eH=ep?.show||{},ez=eu?.show||{},eU=em?.show||{},eV=ey?.show||{},eY=eh?.show||{},eJ=eb?.show||{},eQ=eg?.show||{},eX=ef?.show||{},eZ=ek?.show||{},e0=[{key:"logo",label:"Logo",visible:!!eG.logo},{key:"featureImage",label:"Image",visible:!!eG.featureImage},{key:"name",label:"Name",visible:!1!==eG.name},{key:"description",label:"Description",visible:!!eG.description},{key:"rank",label:"Rank",visible:!!eG.marketCapRank},{key:"productsAndServices",label:"Products & Services",visible:!!eG.productsAndServices},{key:"tagline",label:"Tagline",visible:!!eG.tagline},{key:"numOfEmployees",label:"Employees",visible:!!eG.numOfEmployees},{key:"headquarters",label:"Headquarters",visible:!!eG.headquarters},{key:"revenues",label:"Revenue",visible:!!eG.revenues},{key:"marketCap",label:"Market Cap",visible:!!eG.marketCap},{key:"social",label:"Social",visible:!!eG.website||!!eG.facebook||!!eG.instagram||!!eG.twitter||!!eG.linkedin||!!eG.youtube}].filter(e=>e.visible),e1=(f=[{key:"image",label:"Image",visible:!!eK.image},{key:"name",label:"Name",visible:!1!==eK.name},{key:"description",label:"Description",visible:!!eK.description},{key:"country",label:"Country",visible:!!eK.country},{key:"population",label:"Population",visible:!!eK.population},{key:"governmentType",label:"Government",visible:!!eK.governmentType},{key:"gdp",label:"GDP",visible:!!eK.gdp},{key:"social",label:"Links",visible:!!eK.website}].filter(e=>e.visible)).length?f:[{key:"name",label:"Name",visible:!0}],e3=(k=[{key:"featureImage",label:"Image",visible:!!eH.featureImage},{key:"name",label:"Name",visible:!1!==eH.name},{key:"tagline",label:"Tagline",visible:!!eH.tagline},{key:"description",label:"Description",visible:!!eH.description},{key:"numAcademicStaff",label:"Academic Staff",visible:!!eH.numAcademicStaff},{key:"numStudents",label:"Students",visible:!!eH.numStudents},{key:"locations",label:"Locations",visible:!!eH.locations},{key:"established",label:"Established",visible:!!eH.established},{key:"affiliations",label:"Affiliations",visible:!!eH.affiliations},{key:"address",label:"Address",visible:!!eH.address},{key:"social",label:"Social",visible:!!eH.website||!!eH.facebook||!!eH.instagram||!!eH.twitter||!!eH.linkedin||!!eH.youtube}].filter(e=>e.visible)).length?k:[{key:"name",label:"Name",visible:!0}],e4=(j=[{key:"featureImage",label:"Image",visible:!!ez.featureImage},{key:"name",label:"Name",visible:!1!==ez.name},{key:"tagline",label:"Tagline",visible:!!ez.tagline},{key:"description",label:"Description",visible:!!ez.description},{key:"nationality",label:"Nationality",visible:!!ez.nationality},{key:"occupation",label:"Occupation",visible:!!ez.occupation},{key:"knownFor",label:"Known For",visible:!!ez.knownFor},{key:"accolades",label:"Accolades",visible:!!ez.accolades},{key:"social",label:"Social",visible:!!ez.website||!!ez.facebook||!!ez.instagram||!!ez.twitter||!!ez.linkedin||!!ez.youtube}].filter(e=>e.visible)).length?j:[{key:"name",label:"Name",visible:!0}],e2=(N=[{key:"featureImage",label:"Image",visible:!!eU.featureImage},{key:"name",label:"Name",visible:!1!==eU.name},{key:"tagline",label:"Tagline",visible:!!eU.tagline},{key:"description",label:"Description",visible:!!eU.description},{key:"numOfEmployees",label:"Employees",visible:!!eU.numOfEmployees},{key:"headquarters",label:"Headquarters",visible:!!eU.headquarters},{key:"established",label:"Established",visible:!!eU.established},{key:"address",label:"Address",visible:!!eU.address},{key:"types",label:"Types",visible:!!eU.types},{key:"social",label:"Social",visible:!!eU.website||!!eU.facebook||!!eU.instagram||!!eU.twitter||!!eU.linkedin||!!eU.youtube}].filter(e=>e.visible)).length?N:[{key:"name",label:"Name",visible:!0}],e5=(P=[{key:"featureImage",label:"Image",visible:!!eV.featureImage},{key:"name",label:"Name",visible:!1!==eV.name},{key:"tagline",label:"Tagline",visible:!!eV.tagline},{key:"description",label:"Description",visible:!!eV.description},{key:"headquarters",label:"Headquarters",visible:!!eV.headquarters},{key:"address",label:"Address",visible:!!eV.address},{key:"yearEstablished",label:"Year Established",visible:!!eV.yearEstablished},{key:"social",label:"Social",visible:!!eV.website||!!eV.facebook||!!eV.instagram||!!eV.twitter||!!eV.linkedin||!!eV.youtube},{key:"type",label:"Type",visible:!!eV.type}].filter(e=>e.visible)).length?P:[{key:"name",label:"Name",visible:!0}],e6=(q=[{key:"featureImage",label:"Image",visible:!!eY.featureImage},{key:"name",label:"Name",visible:!1!==eY.name},{key:"description",label:"Description",visible:!!eY.description},{key:"type",label:"Type",visible:!!eY.type},{key:"supremeAuthority",label:"Supreme Authority",visible:!!eY.supremeAuthority},{key:"origin",label:"Origin",visible:!!eY.origin},{key:"firstPlayed",label:"First Played",visible:!!eY.firstPlayed},{key:"focus",label:"Focus",visible:!!eY.focus},{key:"participationLevel",label:"Participation",visible:!!eY.participationLevel},{key:"viewershipTier",label:"Viewership",visible:!!eY.viewershipTier},{key:"globalReach",label:"Global Reach",visible:!!eY.globalReach},{key:"social",label:"Social",visible:!!eY.website||!!eY.facebook||!!eY.instagram||!!eY.twitter||!!eY.linkedin||!!eY.youtube}].filter(e=>e.visible)).length?q:[{key:"name",label:"Name",visible:!0}],e8=(R=[{key:"featureImage",label:"Image",visible:!!eJ.featureImage},{key:"name",label:"Name",visible:!1!==eJ.name},{key:"description",label:"Description",visible:!!eJ.description},{key:"fullName",label:"Full Name",visible:!!eJ.fullName},{key:"tagline",label:"Tagline",visible:!!eJ.tagline},{key:"sport",label:"Sport",visible:!!eJ.sport},{key:"country",label:"Country",visible:!!eJ.country},{key:"positions",label:"Positions",visible:!!eJ.positions},{key:"currentTeam",label:"Team",visible:!!eJ.currentTeam},{key:"birthdate",label:"Born",visible:!!eJ.birthdate},{key:"placeOfBirth",label:"Place of Birth",visible:!!eJ.placeOfBirth},{key:"social",label:"Social",visible:!!eJ.website||!!eJ.facebook||!!eJ.instagram||!!eJ.twitter||!!eJ.linkedin||!!eJ.youtube}].filter(e=>e.visible)).length?R:[{key:"name",label:"Name",visible:!0}],e7=(E=[{key:"featureImage",label:"Image",visible:!!eQ.featureImage},{key:"name",label:"Name",visible:!1!==eQ.name},{key:"description",label:"Description",visible:!!eQ.description},{key:"abbreviation",label:"Abbreviation",visible:!!eQ.abbreviation},{key:"sport",label:"Sport",visible:!!eQ.sport},{key:"headquarters",label:"Headquarters",visible:!!eQ.headquarters},{key:"regionServed",label:"Region",visible:!!eQ.regionServed},{key:"president",label:"President",visible:!!eQ.president},{key:"founded",label:"Founded",visible:!!eQ.founded},{key:"social",label:"Social",visible:!!eQ.website||!!eQ.facebook||!!eQ.instagram||!!eQ.twitter||!!eQ.linkedin||!!eQ.youtube}].filter(e=>e.visible)).length?E:[{key:"name",label:"Name",visible:!0}],e9=(D=[{key:"featureImage",label:"Image",visible:!!eX.featureImage},{key:"name",label:"Name",visible:!1!==eX.name},{key:"description",label:"Description",visible:!!eX.description},{key:"fullName",label:"Full Name",visible:!!eX.fullName},{key:"nickname",label:"Nickname",visible:!!eX.nickname},{key:"sport",label:"Sport",visible:!!eX.sport},{key:"country",label:"Country",visible:!!eX.country},{key:"homeStadium",label:"Stadium",visible:!!eX.homeStadium},{key:"founded",label:"Founded",visible:!!eX.founded},{key:"headCoach",label:"Head Coach",visible:!!eX.headCoach},{key:"captain",label:"Captain",visible:!!eX.captain},{key:"social",label:"Social",visible:!!eX.website||!!eX.facebook||!!eX.instagram||!!eX.twitter||!!eX.linkedin||!!eX.youtube}].filter(e=>e.visible)).length?D:[{key:"name",label:"Name",visible:!0}],te=(W=[{key:"featureImage",label:"Image",visible:!!eZ.featureImage},{key:"name",label:"Name",visible:!1!==eZ.name},{key:"description",label:"Description",visible:!!eZ.description},{key:"fullName",label:"Full Name",visible:!!eZ.fullName},{key:"country",label:"Country",visible:!!eZ.country},{key:"location",label:"Location",visible:!!eZ.location},{key:"capacity",label:"Capacity",visible:!!eZ.capacity},{key:"operator",label:"Operator",visible:!!eZ.operator},{key:"surfaceType",label:"Surface",visible:!!eZ.surfaceType},{key:"openedDate",label:"Opened",visible:!!eZ.openedDate},{key:"owner",label:"Owner",visible:!!eZ.owner},{key:"social",label:"Social",visible:!!eZ.website||!!eZ.facebook||!!eZ.instagram||!!eZ.twitter||!!eZ.linkedin||!!eZ.youtube}].filter(e=>e.visible)).length?W:[{key:"name",label:"Name",visible:!0}],tt=(0,a.useMemo)(()=>{let e,t,a,i;return e=[],t=(()=>{switch(ew){case"company":return eW.company??null;case"city":return eW.city??null;case"education":return eW.education??null;case"influencer":return eW.influencer??null;case"investor":return eW.investor??null;case"organisation":return eW.organisation??null;case"sport":return eW.sport??null;case"athlete":return eW.athlete??null;case"federation":return eW.federation??null;case"team":return eW.team??null;case"stadium":return eW.stadium??null;default:return null}})(),a=t?.show||{},i=t?.filters||{}
1,t&&("city"===ew&&(i.countryId&&e.push({id:"cityScope",label:"Scope",options:[{key:"country",label:"Only selected country",params:{country_id:i.countryId}}]}),a.filterByPopulationTotal&&e.push({id:"cityPopulation",label:"Population",options:[{key:"population_desc",label:"High â low",params:{sort:"population_total:desc"}},{key:"population_asc",label:"Low â high",params:{sort:"population_total:asc"}}]}),a.filterByGdp&&e.push({id:"cityGdp",label:"GDP",options:[{key:"gdp_desc",label:"High â low",params:{sort:"gdp:desc"}},{key:"gdp_asc",label:"Low â high",params:{sort:"gdp:asc"}}]})),"company"===ew&&eE&&(a.filterByIndustry&&eE.industries&&eE.industries.length&&e.push({id:"companyIndustry",label:"Industry",options:eE.industries.slice().sort((e,t)=>e.title.localeCompare(t.title,void 0,{sensitivity:"base"})).map(e=>({key:`industry_${e.id}`,label:e.title,params:{industry_id:e.id}}))}),a.filterByType&&eE.types&&eE.types.length&&e.push({id:"companyType",label:"Type",options:eE.types.slice().sort((e,t)=>e.title.localeCompare(t.title,void 0,{sensitivity:"base"})).map(e=>({key:`type_${e.id}`,label:e.title,params:{type_id:e.id}}))}),a.filterByCities&&eE.cities.length&&e.push({id:"companyCity",label:"City",options:eE.cities.slice().sort((e,t)=>e.title.localeCompare(t.title,void 0,{sensitivity:"base"})).map(e=>({key:`city_${e.id}`,label:e.title,params:{city_id:e.id}}))})),"investor"===ew&&a.filterTypes&&eE&&eE.investorTypes&&eE.investorTypes.length&&e.push({id:"investorType",label:"Type",options:eE.investorTypes.map(e=>({key:`investor_type_${e.id}`,label:e.title,params:{type_id:e.id}}))}),"organisation"===ew&&a.filterType&&eE&&eE.organisationTypes&&eE.organisationTypes.length&&e.push({id:"organisationType",label:"Type",options:eE.organisationTypes.map(e=>({key:`organisation_type_${e.id}`,label:e.title,params:{type_id:e.id}}))}),"education"===ew&&a.filterCities&&eE&&eE.cities.length&&e.push({id:"educationCity",label:"City",options:eE.cities.slice().sort((e,t)=>e.title.localeCompare(t.title,void 0,{sensitivity:"base"})).map(e=>({key:`city_${e.id}`,label:e.title,params:{city_id:e.id}}))}),"sport"===ew&&i.countryId&&e.push({id:"sportScope",label:"Scope",options:[{key:"country",label:"Selected country",params:{country_id:i.countryId}}]}),"athlete"===ew&&(a.filterBySport&&i.sportId&&e.push({id:"athleteSport",label:"Sport",options:[{key:`sport_${i.sportId}`,label:"Selected sport",params:{sport_id:i.sportId}}]}),a.filterByCountry&&i.countryId&&e.push({id:"athleteCountry",label:"Country",options:[{key:`country_${i.countryId}`,label:"Selected country",params:{country_id:i.countryId}}]})),"federation"===ew&&a.filterBySport&&i.sportId&&e.push({id:"federationSport",label:"Sport",options:[{key:`sport_${i.sportId}`,label:"Selected sport",params:{sport_id:i.sportId}}]}),"team"===ew&&(a.filterBySport&&i.sportId&&e.push({id:"teamSport",label:"Sport",options:[{key:`sport_${i.sportId}`,label:"Selected sport",params:{sport_id:i.sportId}}]}),a.filterByCountry&&i.countryId&&e.push({id:"teamCountry",label:"Country",options:[{key:`country_${i.countryId}`,label:"Selected country",params:{country_id:i.countryId}}]})),"stadium"===ew&&a.filterByCountry&&i.countryId&&e.push({id:"stadiumCountry",label:"Country",options:[{key:`country_${i.countryId}`,label:"Selected country",params:{country_id:i.countryId}}]})),e},[ew,eW,eE]);if((0,a.useEffect)(()=>{if(!ew)return;let e=eI[ew];if(!e)return void e$({});let t=tt.flatMap(e=>e.options),a={};Object.values(e).forEach(e=>{if(!e)return;let i=t.find(t=>t.key===e);i&&(a={...a,...i.params})}),e$(a)},[ew]),!ew)return null;let ta=(()=>{switch(ew){case"company":return e0;case"city":return e1;case"education":return e3;case"influencer":return e4;case"investor":return e2;case"organisation":return e5;case"sport":return e6;case"athlete":return e8;case"federation":return e7;case"team":return e9;case"stadium":return te;default:return[{key:"name",label:"Name",visible:!0}]}})();return(0,t.jsx)("section",{className:`w-full mb-6 mt-8 ${ee?"text-black bg-white":"text-white bg-transparent"}`,children:(0,t.jsxs)("div",{className:et,children:[(0,t.jsxs)("div",{className:"mb-4",children:[(0,t.jsxs)("button",{onClick:()=>ea.back(),className:`flex items-center gap-1.5 mb-3 text-sm font-medium transition-colors ${ee?"text-gray-500 hover:text-gray-900":"text-white/60 hover:text-white"}`,"aria-label":"Go back",children:[(0,t.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("path",{d:"M15 18l-6-6 6-6"})}),"Back"]}),ei&&(0,t.jsx)("div",{children:(0,t.jsx)("h2",{className:`text-xl lg:text-2xl font-bold ${ee?"text-black":"text-white"}`,children:ei})}),el&&(0,t.jsx)("p",{className:`mt-1 text-sm md:text-base ${ee?"text-gray-600":"text-white/70"}`,children:el})]}),ev.length>1&&(0,t.jsx)("div",{className:"flex flex-wrap gap-2 mb-4",children:ev.map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>{ej(e.key),e_(1),window.history.replaceState(null,"",`#${e.key}`);let t=eq[e.key];t?(eL(t.rows),eF(t.total)):(eL([]),eF(0))},className:`px-3 py-1 rounded-full text-sm border transition-colors ${ew===e.key?ee?"bg-black text-white border-black":"bg-white text-black border-white":ee?"border-gray-300 text-gray-700 hover:bg-gray-100":"border-white/30 text-white/70 hover:bg-white/10"}`,children:e.label},e.key))}),(0,t.jsx)("div",{className:"flex flex-col md:flex-row flex-wrap items-stretch md:items-end gap-4 mb-6",children:(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3 md:gap-4 w-full",children:[(0,t.jsx)("form",{onSubmit:e=>{e.preventDefault()},className:"relative w-full md:w-[320px]",children:(0,t.jsxs)("div",{className:"relative w-full rounded-xl",children:[(0,t.jsx)(r.Input,{type:"search",placeholder:"Filter",value:ew?eT[ew]??"":"",onChange:e=>{var t;
1return t=e.target.value,void(ew&&(eM(e=>({...e,[ew]:t})),e_(1)))},className:`h-12 pl-14 pr-4 rounded-xl backdrop-blur-sm border focus:outline-none w-full ${ee?"text-gray-900 bg-white border-gray-300 placeholder-gray-400":"text-gray-100 bg-[#04040F] border-[#2C3C4C]/60 placeholder-white/60"}`}),(0,t.jsx)("div",{className:`flex absolute top-1/2 -translate-y-1/2 left-3 pointer-events-none h-10 w-10 items-center justify-center ${ee?"text-gray-500":"text-gray-400"}`,children:(0,t.jsx)(s.Search,{size:18})})]})}),(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-3 md:gap-4 w-full md:flex-1",children:es&&tt.length>0&&tt.map(e=>{let a,i,l;return(0,t.jsxs)("div",{className:"flex flex-col md:flex-row items-start md:items-center gap-1 md:gap-2 w-full sm:w-auto",children:[(0,t.jsx)("span",{className:`text-sm ${ee?"text-gray-700":"text-white/80"}`,children:e.label}),(a=ew&&eI[ew]?eI[ew]?.[e.id]??"":"",i="__all",l=""===a?i:a,(0,t.jsxs)(n.Select,{onValueChange:t=>((e,t)=>{if(!ew)return;let a={...eI[ew]||{},[e]:t};eC(e=>({...e,[ew]:a}));let i=tt.flatMap(e=>e.options),l={};Object.values(a).forEach(e=>{if(!e)return;let t=i.find(t=>t.key===e);t&&(l={...l,...t.params})}),e$(l),e_(1)})(e.id,t===i?"":t),value:l,children:[(0,t.jsx)(n.SelectTrigger,{className:`h-12 rounded-xl border text-sm px-3 py-1 transition-colors outline-none w-full md:min-w-[160px] ${ee?"bg-white border-gray-300 text-gray-800 hover:bg-gray-100":"bg-[#04040F] border-[#2C3C4C]/60 text-white hover:bg-[#04040F]/80"}`,children:(0,t.jsx)(n.SelectValue,{placeholder:"All"})}),(0,t.jsxs)(n.SelectContent,{className:`rounded-xl max-h-[30rem] overflow-y-auto border ${ee?"bg-white border-gray-300 text-gray-900":"bg-[#020617] border-[#2C3C4C]/60 text-white"}`,children:[(0,t.jsx)(n.SelectItem,{className:ee?"text-gray-900":"text-white",value:i,children:"All"}),e.options.map(e=>(0,t.jsx)(n.SelectItem,{className:ee?"text-gray-900":"text-white",value:e.key,children:e.label},e.key))]})]}))]},e.id)})})]})}),(0,t.jsx)("div",{className:`mt-4 ${en?"":"md:hidden"}`,children:eO&&0===eA.length?(0,t.jsx)("div",{className:"w-full grid grid-cols-1 lg:grid-cols-1 gap-6",children:Array.from({length:3}).map((e,a)=>(0,t.jsxs)("div",{className:`w-full flex flex-col md:flex-row rounded-xl overflow-hidden border ${ee?"border-gray-200 bg-gray-50":"border-white/10 bg-[#020617]"}`,children:[(0,t.jsx)("div",{className:`md:w-1/3 lg:w-1/4 ${ee?"bg-gray-200":"bg-white/10"}`,children:(0,t.jsx)("div",{className:"h-[160px] md:h-[200px] lg:h-[220px] animate-pulse"})}),(0,t.jsxs)("div",{className:"flex-1 flex flex-col justify-between",children:[(0,t.jsxs)("div",{className:`${et} py-4 md:py-6 space-y-3`,children:[(0,t.jsx)("div",{className:`h-5 w-1/3 rounded animate-pulse ${ee?"bg-gray-200":"bg-white/10"}`}),(0,t.jsx)("div",{className:`h-4 w-2/3 rounded animate-pulse ${ee?"bg-gray-200":"bg-white/10"}`}),(0,t.jsx)("div",{className:`h-4 w-full rounded animate-pulse ${ee?"bg-gray-200":"bg-white/10"}`}),(0,t.jsx)("div",{className:`h-4 w-3/4 rounded animate-pulse ${ee?"bg-gray-200":"bg-white/10"}`})]}),(0,t.jsx)("div",{className:`border-t ${et} py-3 md:py-4 flex flex-col md:flex-row gap-3 md:gap-0 ${ee?"border-gray-200":"border-white/10"}`,children:Array.from({length:4}).map((e,i)=>(0,t.jsxs)("div",{className:`flex-1 flex flex-col gap-2 ${i<3?"md:border-r border-transparent md:border-white/10":""}`,children:[(0,t.jsx)("div",{className:`h-3 w-1/2 rounded animate-pulse ${ee?"bg-gray-200":"bg-white/10"}`}),(0,t.jsx)("div",{className:`h-4 w-3/4 rounded animate-pulse ${ee?"bg-gray-200":"bg-white/10"}`})]},`card-skeleton-field-${a}-${i}`))})]})]},`card-skeleton-${a}`))}):eA.length?(0,t.jsx)(p.default,{urlWiki:(e=>{switch(e){case"city":return"city";case"education":return"education";case"sport":return"sports";case"athlete":return"athletes";case"federation":return"federations";case"team":return"teams";case"stadium":return"stadiums";case"company":case"influencer":case"investor":case"organisation":return"wiki";default:return""}})(ew),list:(G=(g={company:eG,city:eK,education:eH,influencer:ez,investor:eU,organisation:eV,sport:eY,athlete:eJ,federation:eQ,team:eX,stadium:eZ}).company||{},K=g.city||{},H=g.education||{},z=g.influencer||{},U=g.investor||{},V=g.organisation||{},Y=g.sport||{},J=g.athlete||{},Q=g.federation||{},X=g.team||{},Z=g.stadium||{},eA.map(e=>{let t="athlete"===ew?(0,y.getAthleteListingImage)(e):"team"===ew?(0,h.getTeamListingImage)(e):"stadium"===ew?e.widget_picture||e.feature_image||e.feature_image_small||e.feature_imageSmall||"":"sport"===ew||"federation"===ew?(0,b.getSportsListingImage)(e):"",a={title:e.title||e.name||"",headline:"company"===ew?G.tagline&&e.business_tagline||"":"education"===ew?H.tagline&&e.business_tagline||"":"influencer"===ew?z.tagline&&e.business_tagline||"":"investor"===ew?U.tagline&&e.business_tagline||"":"organisation"===ew?V.tagline&&e.business_tagline||"":"athlete"===ew?J.tagline&&e.business_tagline||"":"sport"===ew?Y.type&&e.type||"":"federation"===ew?Q.abbreviation&&e.abbreviation||"":"team"===ew?X.nickname&&e.nickname||"":"stadium"===ew?Z.location&&e.location||"":e.business_tagline||"",description:"company"===ew?G.description&&e.description||"":"city"===ew?K.description&&e.description||"":"education"===ew?H.description&&e.description||"":"influencer"===ew?z.description&&e.description||"":"investor"===ew?U.description&&e.description||"":"organisation"===ew?V.description&&e.description||"":"sport"===ew?Y.description&&e.description||"":"athlete"===ew?J.description&&e.description||"":"federation"===ew?Q.description&&e.description||"":"team"===ew?X.description&&e.description||"":"stadium"===ew?Z.description&&e.description||"":e.description||"",slug:e.slug,listing_image:t,feature_image_small:t||e.featureImageSmall||e.feature_imageSmall||e.feature_image_small||"",feature_image:t||e.featureImage||e.feature_image||""},i=[],l=e.website||e.city_website,r="company"===ew&&G.website||"city"===ew&&K.website||"education"===ew&&H.website||"influencer"===ew&&z.website||"investor"===ew&&U.website||"organisation"===ew&&V.website||"sport"===ew&&Y.website||"athlete"===ew&&J.website||"federation"===ew&&Q.website||"team"===ew&&X.website||"stadium"===ew&&Z.website;l&&r&&i.push({key:"website",href:l,icon:"/assets/social-media/site.svg",label:"Website"}),e.facebook_url&&("company"===ew&&G.facebook||"education"===ew&&H.facebook||"influencer"===ew&&z.facebook||"investor"===ew&&U.facebook||"organisation"===ew&&V.facebook||"sport"===ew&&Y.facebook||"athlete"===ew&&J.facebook||"federation"===ew&&Q.facebook||"team"
1===ew&&X.facebook||"stadium"===ew&&Z.facebook)&&i.push({key:"facebook",href:e.facebook_url,icon:"/assets/social-media/facebook.svg",label:"Facebook"}),e.instagram_url&&("company"===ew&&G.instagram||"education"===ew&&H.instagram||"influencer"===ew&&z.instagram||"investor"===ew&&U.instagram||"organisation"===ew&&V.instagram||"sport"===ew&&Y.instagram||"athlete"===ew&&J.instagram||"federation"===ew&&Q.instagram||"team"===ew&&X.instagram||"stadium"===ew&&Z.instagram)&&i.push({key:"instagram",href:e.instagram_url,icon:"/assets/social-media/instagram.svg",label:"Instagram"}),e.twitter_url&&("company"===ew&&G.twitter||"education"===ew&&H.twitter||"influencer"===ew&&z.twitter||"investor"===ew&&U.twitter||"organisation"===ew&&V.twitter||"sport"===ew&&Y.twitter||"athlete"===ew&&J.twitter||"federation"===ew&&Q.twitter||"team"===ew&&X.twitter||"stadium"===ew&&Z.twitter)&&i.push({key:"twitter",href:e.twitter_url,icon:"/assets/social-media/twitter.svg",label:"Twitter"}),e.linkedin_url&&("company"===ew&&G.linkedin||"education"===ew&&H.linkedin||"influencer"===ew&&z.linkedin||"investor"===ew&&U.linkedin||"organisation"===ew&&V.linkedin||"sport"===ew&&Y.linkedin||"athlete"===ew&&J.linkedin||"federation"===ew&&Q.linkedin||"team"===ew&&X.linkedin||"stadium"===ew&&Z.linkedin)&&i.push({key:"linkedin",href:e.linkedin_url,icon:"/assets/social-media/linkedin.svg",label:"LinkedIn"}),e.youtube_channel_url&&("company"===ew&&G.youtube||"education"===ew&&H.youtube||"influencer"===ew&&z.youtube||"investor"===ew&&U.youtube||"organisation"===ew&&V.youtube||"sport"===ew&&Y.youtube||"athlete"===ew&&J.youtube||"federation"===ew&&Q.youtube||"team"===ew&&X.youtube||"stadium"===ew&&Z.youtube)&&i.push({key:"youtube",href:e.youtube_channel_url,icon:"/assets/social-media/youtube.svg",label:"YouTube"});let s=e.fields?e.fields.filter(e=>{let t=String(e.label||"").toLowerCase().trim();return!!t&&("city"===ew?"country"===t?K.country:"population"===t?K.population:"government type"===t?K.governmentType:"gdp"===t?K.gdp:"website"===t&&K.website:"company"!==ew||("market cap"===t?G.marketCap:"employees"===t?G.numOfEmployees:"products & services"===t?G.productsAndServices:"headquarters"===t?G.headquarters:"revenues"===t?G.revenues:"rank"===t?G.marketCapRank:"website"===t&&G.website))}).filter(e=>"website"!==e.label.toLowerCase()):void 0;if(!s){let t=[],a=(e,a)=>{if(null==a)return;let i=String(a).trim();i&&t.push({label:e,value:i})};"education"===ew?(a("Type",e.type),H.numAcademicStaff&&a("Academic Staff",e.num_academic_staff?w(e.num_academic_staff):void 0),H.numStudents&&a("Students",e.num_students),H.established&&a("Founded",e.established)):"company"===ew?(G.marketCap&&a("Market Cap",e.market_cap&&0!==Number(e.market_cap)?u(e.market_cap):void 0),G.numOfEmployees&&a("Employees",e.num_of_employees?x(e.num_of_employees):void 0),G.productsAndServices&&a("Products & Services",e.products_and_services),G.headquarters&&a("Headquarters",e.headquarters),G.revenues&&a("Revenue",e.revenues?v(e.revenues):void 0),G.marketCapRank&&a("Rank",null!=e.market_cap_rank&&e.market_cap_rank<0x7fffffff?e.market_cap_rank:void 0)):"city"===ew?(K.country&&a("Country",e.country),K.population&&a("Population",e.population_total),K.gdp&&a("GDP",(0,m.formatCompactNumber)(e.gdp))):"investor"===ew?(U.headquarters&&a("Headquarters",e.headquarters),U.numOfEmployees&&a("Employees",e.num_of_employees?x(e.num_of_employees):void 0),U.established&&a("Founded",e.established)):"organisation"===ew?(V.type&&a("Type",(e.typesTitles||[]).join(", ")),V.headquarters&&a("Headquarters",e.headquarters),V.yearEstablished&&a("Founded",e.year_stablished)):"influencer"===ew?(z.nationality&&a("Nationality",e.nationality),z.occupation&&a("Occupation",e.occupation),z.knownFor&&a("Known for",e.known_for)):"sport"===ew?(Y.type&&a("Type",e.type),Y.supremeAuthority&&a("Supreme Authority",e.supreme_authority),Y.origin&&a("Origin",e.origin),Y.firstPlayed&&a("First Played",e.first_played),Y.participationLevel&&a("Participation",e.participation_level),Y.globalReach&&a("Global Reach",e.global_reach)):"athlete"===ew?(J.sport&&a("Sport",e.sport),J.country&&a("Country",e.country),J.positions&&a("Positions",e.positions),J.currentTeam&&a("Team",e.current_team),J.birthdate&&a("Born",e.birthdate)):"federation"===ew?(Q.sport&&a("Sport",e.sport),Q.headquarters&&a("Headquarters",e.headquarters),Q.regionServed&&a("Region",e.region_served),Q.founded&&a("Founded",e.founded)):"team"===ew?(X.sport&&a("Sport",e.sport),X.country&&a("Country",e.country),X.homeStadium&&a("Stadium",e.home_stadium),X.founded&&a("Founded",e.founded),X.headCoach&&a("Coach",e.head_coach)):"stadium"===ew&&(Z.country&&a("Country",e.country),Z.location&&a("Location",e.location),Z.capacity&&a("Capacity",e.capacity),Z.operator&&a("Operator",e.operator),Z.openedDate&&a("Opened",e.opened_date)),s=t.length?t:void 0}return s&&((s=s.filter(e=>{let t=e.value;return null!=t&&""!==String(t).trim()})).length||(s=void 0)),{...a,fields:s,links:i.length?i:void 0}})),fallbackSrc:["sport","athlete","federation","team","stadium"].includes(ew)?d.SPORTS_FALLBACK_SRC:void 0,cardImageAspectRatio:eo,tableCardLayout:!0}):(0,t.jsx)("div",{className:`py-6 text-center ${ee?"text-gray-500":"text-white/60"}`,children:"No results found"})}),!en&&(0,t.jsx)("div",{className:"hidden md:block w-full overflow-x-auto min-h-[260px] rounded-xl",children:(0,t.jsxs)("table",{className:`min-w-full border-collapse text-xs md:text-sm ${ee?"":"bg-[#020617]"}`,children:[(0,t.jsx)("thead",{children:(0,t.jsx)("tr",{className:`border-b text-left ${ee?"border-gray-200 text-gray-600":"border-white/10 text-white/70"}`,children:eO&&0===eA.length?ta.map(e=>(0,t.jsx)("th",{className:"py-3 pr-4",children:(0,t.jsx)("div",{className:`animate-pulse h-3 w-16 rounded ${ee?"bg-gray-200":"bg-white/10"}`})},e.key)):ta.map(e=>(0,t.jsx)("th",{className:"py-3 pr-4",children:e.label},e.key))})}),(0,t.jsx)("tbody",{children:eO&&0===eA.length?(0,t.jsx)(t.Fragment,{children:Array.from({length:12}).map((e,a)=>(0,t.jsx)("tr",{className:`border-b last:border-0 ${ee?"border-gray-200":"border-white/10"}`,children:ta.map((e,a)=>(0,t.jsx)("td",{className:"py-4 pr-4 align-middle",children:0===a?(0,t.jsx)("div",{className:`animate-pulse h-10 w-10 rounded ${ee?"bg-gray-200":"bg-white/10"}`}):(0,t.jsx)("div",{className:`animate-pulse h-4 rounded ${ee?"bg-gray-200":"bg-white/10"} ${"name"===e.key||"title"===e.key?"w-40":"w-20"}`})},e.key))},`skeleton-${a}`))}):eA.length?eA.map((e,a)=>((e,a)=>{let i=ew&&e.slug?"city"===ew?`/city/${e.slug}`:"sport"===ew?`/sports/${e.slug}`:"athlete"===ew?`/athletes/${e.slug}`:"federation"===ew?`/federations/${e.slug}`:"team"===ew?`/teams/${e.slug}`:"stadium"===ew?`/stadiums/${e.slug}`:`/wiki/${e.slug}`:"";switch(ew){case"company":return(0,t.jsx)(_,{row:e,index:a,columns:e0,isLightmode:ee,show:eG,href:i},e.id??a);case"city":return(0,t.jsx)(S,{row:e,index:a,columns:e1,isLightmode:ee,show:eK,href:i},e.id??a);case"education":return(0,t.jsx)($,{row:e,index:a,columns:e3,isLightmode:ee,show:eH,href:i},e.id??a);case"influencer":return(0,t.jsx)(I,{row:e,index:a,columns:e4,isLightmode:ee,show:ez,href:i},e.id??a);case"investor":return(0,t.jsx)(C,{row:e,index:a,columns:e2,isLightmode:ee,show:eU,href:i},e.id??a);case"organisation":return(0,t.jsx)(T,{row:e,index:a,columns:e5,isLightmode:ee,show:eV,href:i},e.id??a);case"sport":return(0,t.jsx)(M,{row:e,index:a,columns:e6,isLightmode:ee,show:eY,href:i},e.id??a);case"athlete":return(0,t.jsx)(A,{row:e,index:a,columns:e8,isLightmode:ee,show:eJ,href:i},e.id??a);case"federation":return(0,t.jsx)(L,{row:e,index:a,columns:e7,isLightmode:ee,show:eQ,href:i},e.id??a);case"team":return(0,t.jsx)(B,{row:e,index:a,columns:e9,isLightmode:ee,show:eX,href:i},e.id??a);case"stadium":return(0,t.jsx)(F,{row:e,index:a,columns:te,isLightmode:ee,show:eZ,href:i},e.id??a);default:return(0,t.jsx)("tr",{className:`border-b last:border-0 ${ee?"border-gray-300":"border-white/10"}`,children:(0,t.jsx)("td",{className:"py-3 pr-4 align-top",children:(0,t.jsx)("span",{className:`font-semibold ${ee?"text-black":"text-white"}`,children:e.title||e.name||"-"})})},e.id??a)}})(e,a)):(0,t.jsx)("tr",{children:(0,t.jsx)("td",{colSpan:ew&&({company:e0,city:e1,education:e3,
1influencer:e4,investor:e2,organisation:e5,sport:e6,athlete:e8,federation:e7,team:e9,stadium:te})[ew]?.length||1,className:`py-6 text-center ${ee?"text-gray-500":"text-white/60"}`,children:"No results found"})})})]})}),eB>eA.length&&(0,t.jsx)("div",{className:"mt-4 flex justify-center",children:(0,t.jsx)("button",{type:"button",onClick:()=>e_(e=>e+1),className:`px-4 py-2 rounded-full text-sm font-medium border transition-colors ${ee?"border-gray-300 text-gray-800 hover:bg-gray-100":"border-white/40 text-white hover:bg-white/10"}`,disabled:eO,children:eO?"Loading...":"Load more"})})]})})}e.s(["default",()=>P],61283)}]);
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.