1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4799],{9222:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/prediction-markets/leaderboard",function(){return a(11850)}])},11850:(e,t,a)=>{"use strict";a.r(t),a.d(t,{__N_SSG:()=>S,default:()=>D});var r=a(66284),i=a(40330),s=a(89154),o=a(87306),l=a(66917),n=a(50333),d=a(43181),c=a(43463),p=a(66374);let u=(0,d.A)(c.default,{target:"ez3igy80"})("max-width:1400px;margin:0 auto;padding:",p.A.spacing.medium,";& .leaderboard{&__title{",p.A.helpers.textTitle,";margin:0;color:",p.A.color.text.primary,";}&__articles{border:1px solid ",p.A.color.ui.border,";border-radius:",p.A.radius.roundedLarge,";transition:box-shadow 0.2s ease;box-shadow:0 1px 3px rgba(0, 0, 0, 0.05);}}@media (max-width: ",p.A.media.tablet,"){padding:",p.A.spacing.small,";}");var m=a(14232),h=a(75656),g=a(2013),b=a(61203),w=a(84525);let y=(0,d.A)("div",{target:"e1cck410"})("padding:",p.A.spacing.medium,";background:",p.A.color.ui.foreground,";border:1px solid ",p.A.color.ui.border,";border-radius:",p.A.radius.roundedLarge,";transition:box-shadow 0.2s ease;box-shadow:0 1px 3px rgba(0, 0, 0, 0.05);& .leaderboard{&__filters{display:flex;gap:",p.A.spacing.smedium,";padding-bottom:",p.A.spacing.smedium,";margin-bottom:",p.A.spacing.smedium,";border-bottom:1px solid ",p.A.color.ui.border,";}&__fallback{",p.A.helpers.textCaptionPoppins," text-align:center;}&__container{display:grid;grid-template-columns:auto auto 4fr auto auto auto;gap:",p.A.spacing.small," ",p.A.spacing.smedium,";align-items:center;}&__header{",p.A.helpers.textCaptionPoppins," display:contents;}&__row{",p.A.helpers.textSubcaptionPoppins," font-weight:",p.A.fontWeight.normal,";display:contents;}&__user{width:fit-content;display:flex;align-items:center;gap:",p.A.spacing.small,";}&__user-image{width:30px;height:30px;border-radius:",p.A.radius.oval,";object-fit:cover;}&__user-placeholder{border:1px solid ",p.A.color.ui.border,";border-radius:",p.A.radius.oval,";}&__name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}&__source{",p.A.helpers.textSubcaptionBold,";padding:3px ",p.A.spacing.tiny,";border-radius:",p.A.radius.rounded,";font-size:11px;text-transform:uppercase;letter-spacing:0.3px;flex-shrink:0;white-space:nowrap;&--polymarket{background:",p.A.color.brand.polymarketLight,";color:",p.A.color.brand.polymarket,";}}&__value{text-align:right;&--positive{color:",p.A.color.ui.success,";}&--negative{color:",p.A.color.ui.error,";}}}");var v=a(4999),_=a(43528);let x=[{display:"Today",value:"DAY"},{display:"Weekly",value:"WEEK"},{display:"Monthly",value:"MONTH"},{display:"All Time",value:"ALL"}],A=[{display:"All Categories",value:"OVERALL"},{display:"Politics",value:"POLITICS"},{display:"Sports",value:"SPORTS"},{display:"Crypto",value:"CRYPTO"},{display:"Culture",value:"CULTURE"},{display:"Mentions",value:"MENTIONS"},{display:"Weather",value:"WEATHER"},{display:"Economics",value:"ECONOMICS"},{display:"Technology",value:"TECH"},{display:"Finance",value:"FINANCE"}],f=[{display:"PnL",value:"PNL"},{display:"Volume",value:"VOL"}];var j=a(37876);let O=()=>{let{0:e,1:t}=(0,m.useState)("DAY"),{0:a,1:r}=(0,m.useState)("OVERALL"),{0:i,1:s}=(0,m.useState)("PNL"),o=(0,w.Iu)(),{data:l,isValidating:n}=function(e={category:"OVERALL",timePeriod:"DAY",orderBy:"PNL",limit:25}){let t=(0,v.eA)(e),a=`https://data-api.polymarket.com/v1/leaderboard${t}`;return(0,h.Ay)(a,k,{fallbackData:[],revalidateOnFocus:!1,refreshInterval:6e5,dedupingInterval:6e5})}({timePeriod:e,category:a,orderBy:i});return(0,j.jsxs)(y,{children:[(0,j.jsxs)("div",{className:"leaderboard__filters",children:[(0,j.jsx)(g.Ay,{items:x,selected:e,handleClick:e=>t(e.value)}),(0,j.jsx)(g.Ay,{items:A,selected:a,handleClick:e=>r(e.value)}),(0,j.jsx)(g.Ay,{items:f,selected:i,handleClick:e=>s(e.value)})]}),0===l.length?(0,j.jsx)("p",{className:"leaderboard__fallback",children:n?"Loading...":"Leaderboard data is not available"}):(0,j.jsxs)("div",{className:"leaderboard__container",children:[(0,j.jsxs)("div",{className:"leaderboard__header",children:[(0,j.jsx)("div",{}),(0,j.jsx)("div",{}),(0,j.jsx)("div",{}),(0,j.jsx)("div",{}),(0,j.jsx)("div",{className:"leaderboard__value",children:"PnL"}),(0,j.jsx)("div",{className:"leaderboard__value",children:"Vol."})]}),l.map(e=>{let{userName:t,profileImage:a,pnl:r,vol:i,rank:s}=e;return(0,j.jsxs)("div",{className:"leaderboard__row",children:[(0,j.jsx)("div",{children:s}),(0,j.jsx)("div",{children:a?(0,j.jsx)("img",{className:"leaderboard__user-image",src:a}):(0,j.jsx)(b.A,{className:"leaderboard__user-placeholder",width:30,height:30})}),(0,j.jsx)("div",{className:"leaderboard__name",children:t}),(0,j.jsx)("div",{className:"leaderboard__source leaderboard__source--polymarket",children:o?"P":"Polymarket"}),(0,j.jsx)("div",{className:r>0?"leaderboard__value leaderboard__value--positive":"leaderboard__value leaderboard__value--negative",children:r>0?`$${(0,_.Qt)(r)}`:`-$${(0,_.Qt)(Math.abs(r))}`}),(0,j.jsxs)("div",{className:"leaderboard__value",children:["$",(0,_.Qt)(i)]})]},t)})]})]})},k=e=>(0,v.y4)(e,"GET",null,{useRelativePath:!0}).then(e=>e.response);var P=a(64053);let N=({pageData:e,articles:t})=>{let{Content:a,AffiliateBanner:r}=e;return(0,j.jsxs)(u,{spacing:"smedium",children:[(0,j.jsx)(n.A,{articles:t}),(0,j.jsx)(l.A,{affiliateData:r}),(0,j.jsx)("div",{children:(0,j.jsx)("h1",{className:"leaderboard__title",children:e.Title})}),(0,j.jsx)(O,{}),(0,j.jsx)(s.default,{className:"leaderboard__articles",title:"Prediction Market News",children:(0,j.jsx)(o.default,{articles:t})}),a.length>0&&a.map((e,t)=>(0,P.sP)(e,t))]})};var L=a(8315),E=a(56020);function T(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,r)}return a}function C(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
1t%2?T(Object(a),!0).forEach(function(t){(0,r.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):T(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var S=!0;let D=({strapiPage:e,proUpsell:t,mainNav:a,pageNav:r,articles:s})=>{let{seo:o,Schemas:l}=e,n={title:o?.metaTitle||"Prediction Markets Leaderboard | The Action Network",description:o?.metaDescription||"Prediction Markets Leaderboard | The Action Network",backgroundClassName:"faded-background",proUpsell:t,mainNav:a,pageNav:r,noContainer:!0};return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(i.A,{canonical:o?.canonicalURL,structuredData:o?.structuredData,schemas:l}),(0,j.jsx)(L.A,{children:(0,j.jsx)(E.A,C(C({},n),{},{children:(0,j.jsx)(N,{pageData:e,articles:s})}))})]})}},18185:(e,t,a)=>{"use strict";function r(e){let t=e.toLowerCase().trim(),a={all:"\uD83C\uDF10",sports:"\uD83C\uDFC8",politics:"\uD83C\uDFDBï¸",crypto:"â¿",culture:"\uD83C\uDFA4",economics:"\uD83D\uDCCA",finance:"\uD83D\uDCB0",financials:"\uD83D\uDCB0","fed rates":"\uD83D\uDCB0",mentions:"\uD83D\uDCAC",tech:"\uD83D\uDD2C",climate:"âï¸",world:"\uD83C\uDF0D",companies:"\uD83D\uDCC1",courts:"âï¸","video games":"\uD83C\uDFAE",videogames:"\uD83C\uDFAE","gta vi":"\uD83C\uDFAE",awards:"\uD83C\uDFC6",health:"\uD83E\uDE7A",social:"\uD83D\uDC65",elections:"\uD83C\uDFDBï¸",entertainment:"\uD83C\uDFA4","science and technology":"\uD83D\uDD2C","science & technology":"\uD83D\uDD2C","science technology":"\uD83D\uDD2C",technology:"\uD83D\uDD2C",science:"\uD83D\uDD2C"};return a[t]?a[t]:t.includes("election")?"\uD83C\uDFDBï¸":t.includes("entertainment")?"\uD83C\uDFA4":t.includes("science")||t.includes("technology")||t.includes("tech")?"\uD83D\uDD2C":t.includes("court")?"âï¸":t.includes("video game")||t.includes("videogame")||t.includes("gaming")?"\uD83C\uDFAE":t.includes("finance")?"\uD83D\uDCB0":t.includes("climate")||t.includes("weather")?"âï¸":t.includes("health")?"\uD83E\uDE7A":"âªï¸"}a.d(t,{q:()=>r})},43528:(e,t,a)=>{"use strict";function r(e){return null==e||0===e?"0":e>=1e9||e<=-1e9?(e/1e9).toFixed(1)+"B":e>=1e6||e<=-1e6?(e/1e6).toFixed(1)+"M":e>=1e3||e<=-1e3?(e/1e3).toFixed(1)+"K":e.toFixed(0)}a.d(t,{Qt:()=>r,q1:()=>i.q});var i=a(18185)},50333:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var r=a(66284),i=a(14232),s=a(45105),o=a.n(s),l=a(60861),n=a(37876);function d(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,r)}return a}let c=({articles:e})=>{let t=(0,i.useMemo)(()=>e.map(l.zt),[e]).map(e=>{let{authorName:t,authorSlug:a,title:i,url:s,dateUpdated:o,datePublished:n,description:c,isPro:p}=e,u=(0,l.Hn)(c);return function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?d(Object(a),!0).forEach(function(t){(0,r.A)(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):d(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}({"@type":"NewsArticle",mainEntityOfPage:{"@type":"WebPage","@id":s},"@context":"http://schema.org",publisher:{name:"The Action Network","@type":"Organization",logo:{"@type":"ImageObject",url:"https://assets.actionnetwork.com/284658_2019-tan-text-logo.png",width:600,height:60},url:"https://www.actionnetwork.com",address:{"@type":"PostalAddress",addressLocality:"New York",postalCode:"10010",streetAddress:"61 W 23rd St 2nd Floor"},sameAs:["https://twitter.com/ActionNetworkHQ","https://www.facebook.com/ActionNetworkHQ","https://www.linkedin.com/company/theactionnetwork","https://www.instagram.com/ActionNetworkHQ/","https://www.youtube.com/theactionnetwork","https://apps.apple.com/us/app/action-network-sports-betting/id1083677479","https://play.google.com/store/apps/details?id=com.sportsaction.action","https://www.tiktok.com/@actionnetworkhq","https://en.wikipedia.org/wiki/The_Action_Network"]},author:{"@type":"Person",name:t,url:(0,l.HF)(a||"","https://www.actionnetwork.com"),jobTitle:void 0},datePublished:n,dateModified:o,headline:i,description:u,url:s,image:{"@type":"ImageObject",url:e.imageUrl,width:1200,height:675}},p?{isAccessibleForFree:"False",hasPart:{"@type":"WebPageElement",isAccessibleForFree:"False",cssSelector:".seo-paywall-do-not-remove"}}:{})});return(0,n.jsx)(o(),{id:"news-seo-schema",type:"application/ld+json","data-testid":"news-seo-schema",children:JSON.stringify(t)})}}},e=>{e.O(0,[3795,8230,6941,2781,9396,1777,2783,1808,5177,1919,8966,210,4989,1048,4828,2937,6108,5831,8592,5602,5874,4053,3022,8255,6593,8792],()=>e(e.s=9222)),_N_E=e.O()}]);
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.