1import{o as e,t}from"./jsx-runtime-CUSXsbG-.js";import{a as n}from"./lib-C07fjbqe.js";import{n as r}from"./utils-CJh__9bN.js";import{t as i}from"./UserProfileTooltip-BPEiV_Yv.js";import{t as a}from"./useInfiniteScroll-0U66Krs9.js";var o=t();function s({loaderData:e}){let t=e?.pagination?.page||1,n=e?.pagination?.total||0;return[{title:`Global Leaderboard - Peak AI Rankings ${t>1?`(Page ${t})`:``}`},{content:`Explore Peak AI's global leaderboard with ${n} users competing for the top Kindle Score rankings. See who's leading in creator and AI campaigns.`,name:`description`},{content:`Peak AI leaderboard, global rankings, Kindle Score rankings, creator campaign leaders, AI campaign winners, user competition, top performers`,name:`keywords`},{content:`index, follow`,name:`robots`},{content:`Peak AI`,name:`author`},{content:`Peak AI Global Leaderboard - See Who's Leading`,property:`og:title`},{content:`Check out the top performers on Peak AI! ${n} users competing for Kindle Score supremacy. Where do you rank?`,property:`og:description`},{content:`website`,property:`og:type`},{content:`Peak AI`,property:`og:site_name`},{content:`summary_large_image`,name:`twitter:card`},{content:`Peak AI Global Leaderboard`,name:`twitter:title`},{content:`Discover the top Kindle Score performers across ${n} Peak AI users. Compete in campaigns and climb the rankings!`,name:`twitter:description`}]}var c=e(function({loaderData:e}){let{items:t,hasNextPage:s,isLoadingMore:c,loadMoreRef:l}=a({fetcher:n(),initialItems:e.users,initialPagination:e.pagination,selectItems:e=>e.users,uri:`/leaderboard`});return(0,o.jsxs)(`div`,{className:`bg-black`,children:[(0,o.jsx)(`div`,{className:`bg-center bg-cover pt-20 pb-10`,style:{background:`radial-gradient(99.68% 99.68% at 49.71% -5.81%, #707070 0%, #564731 25%, #241D13 40%, #120D0C 63.23%, #000 100%)`},children:(0,o.jsxs)(`div`,{className:`container mx-auto flex flex-col gap-6 p-4 md:gap-14 lg:px-[8%]`,children:[(0,o.jsx)(`div`,{className:`text-[#f2edea] text-xl md:text-7xl`,children:`Peekaboos`}),(0,o.jsx)(`div`,{className:`font-light text-[#cacaca] text-xs md:text-2xl`,children:`Intelligent scoring system that discovers rising micro influencers and viral contentâAI reveals hidden impact and breakout potential.`})]})}),(0,o.jsxs)(`div`,{className:`container mx-auto min-h-screen px-4 lg:px-[8%]`,children:[c&&t.length===0&&(0,o.jsx)(`div`,{className:`flex justify-center py-8`,children:(0,o.jsxs)(`div`,{className:`flex items-center gap-2 text-gray-400`,children:[(0,o.jsx)(`div`,{className:`h-4 w-4 animate-spin rounded-full border-2 border-gray-600 border-t-white`}),(0,o.jsx)(`span`,{children:`Loading leaderboard...`})]})}),t.length>0&&(0,o.jsxs)(`table`,{className:`my-10 w-full table-auto md:my-25 [&_td]:py-2 [&_td]:md:py-4 [&_th]:py-2 [&_th]:md:py-4`,children:[(0,o.jsx)(`thead`,{children:(0,o.jsxs)(`tr`,{className:`border-[#3C3C3D] border-b text-[#ADADAD] text-xs md:text-lg`,children:[(0,o.jsx)(`th`,{className:`text-left font-light md:pr-8`,children:`Rank`}),(0,o.jsx)(`th`,{className:`text-left font-light md:pr-8`,children:`Sparkers`}),(0,o.jsxs)(`th`,{className:`text-left font-light md:pr-8`,children:[(0,o.jsx)(`span`,{className:`max-md:hidden`,children:`KINDLE`}),` Score`]}),(0,o.jsx)(`th`,{className:`text-left font-light md:pr-8`,children:`Followers`}),(0,o.jsx)(`th`,{className:`text-left font-light`,children:`Likes`})]})}),(0,o.jsx)(`tbody`,{children:t.map(e=>(0,o.jsx)(i,{backgroundColor:`#1D1B19`,user:e,children:(0,o.jsxs)(`tr`,{className:`cursor-pointer text-white text-xs transition-colors duration-200 hover:bg-white/5 md:text-lg`,children:[(0,o.jsx)(`td`,{className:`font-semibold text-lg md:pr-8 md:text-xl`,children:e.rank}),(0,o.jsx)(`td`,{className:`font-medium md:pr-8`,children:e.name??e.email}),(0,o.jsx)(`td`,{className:`font-medium md:pr-8`,children:e.kindleScore?.toFixed(0)??0}),(0,o.jsx)(`td`,{className:`font-medium md:pr-8`,children:r(e.followerCount)}),(0,o.jsx)(`td`,{className:`font-medium`,children:r(e.likeCount)})]},e.rank)},e.id))})]}),s&&(0,o.jsx)(`div`,{className:`py-8`,ref:l,children:(0,o.jsx)(`div`,{className:`flex justify-center`,children:(0,o.jsxs)(`div`,{className:`flex items-center gap-2 text-gray-400`,children:[(0,o.jsx)(`div`,{className:`h-4 w-4 animate-spin rounded-full border-2 border-gray-600 border-t-white`}),(0,o.jsx)(`span`,{children:`Loading more leaderboard...`})]})})}),!s&&t.length>0&&(0,o.jsx)(`div`,{className:`py-8 text-center`,children:(0,o.jsx)(`p`,{className:`text-gray-500 text-sm`,children:`You've reached the end of the leaderboard.`})})]})]})});export{c as default,s as meta};
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.