1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4016],{24281:(e,l,a)=>{"use strict";a.r(l),a.d(l,{default:()=>ea});var s=a(37876),r=a(14232),t=a(89099),n=a(74359),i=a(4960),d=a(57994),o=a(2171),c=a(89311),u=a(48230),x=a.n(u),m=a(83872),h=a(4755),p=a(63819),v=a(16495),g=a(1245),f=a(28857),j=a(54587),y=a.n(j),N=a(38243),b=a(38234),w=a(21639),A=a(71297),T=a(69198),C=a(68827),S=a(20841);let P=e=>{let{user:l,rank:a}=e,r=a<=100;return(0,s.jsxs)("div",{className:"relative flex items-center justify-center",children:[r?(0,s.jsx)("img",{src:v.CDNImage.leaderboardShareCardBG,className:"max-w-75 max-h-75 opacity-100 dark:opacity-30",alt:""}):null,(0,s.jsx)("div",{className:r?"absolute":"mt-8",children:(0,s.jsx)(h.Ay.LargePlus,{image:null==l?void 0:l.profilePicture,alt:p.default.getDisplayName(l)})}),r?(0,s.jsx)("div",{className:"absolute w-36 h-36",children:(0,s.jsxs)("svg",{className:"circular-text",viewBox:"0 0 400 400",children:[(0,s.jsx)("defs",{children:(0,s.jsx)("path",{id:"circle-path",d:"M 200,200 m -150,0 a 150,150 0 1,1 300,0 a 150,150 0 1,1 -300,0"})}),(0,s.jsx)("text",{fontSize:"32",fontWeight:500,className:"fill-green-400 dark:fill-green-200",letterSpacing:"4",children:(0,s.jsx)("textPath",{href:"#circle-path",startOffset:"0%",children:"TOP BUILDER \xa0â¢\xa0 TOP BUILDER \xa0â¢\xa0 TOP BUILDER \xa0â¢\xa0"})})]})}):null]})},E={DOWNLOAD:"DOWNLOAD",COPY:"COPY"},k=e=>{var l,a,t;let{entry:n,showCard:i,setShowCard:d,leaderboardInfo:o}=e,u=(0,r.useRef)(null),[x,h]=(0,r.useState)({}),f=async e=>{var l;if(!e)return;let a="launchpad-leaderboard-".concat(null==n||null==(l=n.user)?void 0:l.profileHandle);h({[e]:!0});try{switch(e){case E.DOWNLOAD:await (0,S.GV)(u.current,{imageName:a});break;case E.COPY:await (0,S.qp)(u.current,{})}let l=e===E.DOWNLOAD?T.A.SCREENSHOT.download:T.A.SCREENSHOT.copy;A.A.SuccessToast(l)}catch(a){let l=e===E.DOWNLOAD?C.A.SCREENSHOT.download:C.A.SCREENSHOT.copy;A.A.ErrorToast(l)}finally{h({})}};return(0,s.jsx)(N.Ay,{showModal:i,setShowModal:d,showClose:!1,modalBgClassName:"",showModalBorder:!1,children:(0,s.jsxs)("div",{className:"relative w-full max-w-[420px]",children:[(0,s.jsxs)("div",{ref:u,className:"w-full p-4 bg-gray-00 select-none",children:[(0,s.jsxs)("div",{className:"border pt-6 mb-6",children:[(0,s.jsxs)("div",{className:"relative mb-8 flex flex-col items-center justify-center gap-y-4",children:[(0,s.jsx)(P,{user:null==n?void 0:n.user,rank:null==n?void 0:n.rank}),(0,s.jsxs)("div",{children:[(0,s.jsx)(c.default.SemiBoldText,{lg:!0,className:"font-mono uppercase",children:p.default.getDisplayName(null==n?void 0:n.user)}),(0,s.jsxs)(c.default.MutedText,{sm:!0,className:"font-mono text-center",children:["@",null==n||null==(l=n.user)?void 0:l.profileHandle]})]}),(0,s.jsxs)(c.default.MutedText,{xxs:!0,className:"font-mono font-extralight !text-gray-300 uppercase tracking-wide -rotate-90 absolute -left-10",children:["As of"," ",b.A.getFormattedDate(new Date,"dd MMM yyyy")]}),(0,s.jsxs)(c.default.MutedText,{xxs:!0,className:"font-mono font-extralight !text-gray-300 uppercase tracking-wide rotate-90 absolute -right-10",children:["total ",null==o?void 0:o.stats," builders"]})]}),(0,s.jsxs)("div",{className:"border-t flex items-center justify-between",children:[(0,s.jsx)("div",{className:"text-center w-full",children:(0,s.jsxs)(c.default.NormalText,{xxxxl:!0,textColor:(null==n?void 0:n.rank)<=100?"text-orange-500":"text-gray-500",className:"font-mono !font-extralight",children:["#",null==n?void 0:n.rank]})}),(0,s.jsx)("div",{className:"w-[2px] h-8 bg-gray-200"}),(0,s.jsx)("div",{className:"text-right w-full",children:(0,s.jsxs)("div",{className:"px-3",children:[(0,s.jsx)(c.default.NormalText,{xs:!0,textColor:"text-gray-700",className:"font-mono uppercase",children:(null==o?void 0:o.last30Days)?"Last 30 Days":"All Time"}),(null==o||null==(a=o.category)?void 0:a.name)?(0,s.jsx)(c.default.NormalText,{xs:!0,textColor:"text-gray-700",className:"font-mono uppercase",children:null==o||null==(t=o.category)?void 0:t.name}):null]})})]})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)("p",{className:"uppercase text-gray-1k font-mono text-base !leading-4",children:["Builders",(0,s.jsx)("br",{}),"Leaderboard"]}),(0,s.jsx)(y(),{src:v.CDNImage.peerlistFullNameDarkLogo,width:93,height:20,alt:"Peerlist",className:"dark:invert"})]})]}),(0,s.jsx)("div",{className:"bg-gray-00 p-2 rounded-2xl absolute -bottom-14 left-1/2 -translate-x-1/2 sm:top-1/2 sm:-translate-y-1/2 sm:-right-20 sm:left-auto sm:bottom-auto sm:translate-x-auto",children:(0,s.jsxs)("div",{className:"w-full flex flex-row sm:flex-col gap-2",children:[(0,s.jsx)(w.Ay.Primary,{circular:!0,title:"Download Screenshot","data-tip":!0,"data-for":"download-screenshot",loading:null==x?void 0:x[E.DOWNLOAD],onClick:()=>f(E.DOWNLOAD),children:(0,s.jsx)(m.DownloadIcon,{size:"20"})}),(0,s.jsx)(g.A,{id:"download-screenshot",text:"Download Screenshot",place:"left"}),(0,p.isSafariBrowser)()?null:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(w.Ay.CarbonOutline,{circular:!0,title:"Copy to clipboard","data-tip":!0,"data-for":"copy-clipboard",loading:null==x?void 0:x[E.COPY],onClick:()=>f(E.COPY),children:(0,s.jsx)(m.CopyIcon,{size:20})}),(0,s.jsx)(g.A,{id:"copy-clipboard",text:"Copy to clipboard",place:"left"})]})]})})]})})};var O=a(11023),D=a(78545);let L=e=>{let{entry:l,openScreenshotCard:a,className:t=""}
1=e,[n,i]=(0,r.useState)(!1),d=async()=>{var e;let a=v.APP_PATHS.getAbsolutePath([v.APP_PATHS.launchpadLeaderboard]);await p.default.copyToClipboard("".concat(a,"#").concat(null==l||null==(e=l.user)?void 0:e.profileHandle)),A.A.SuccessToast("Link copied!")};return(0,s.jsx)("div",{role:"none",className:"".concat(t," ").concat(n?"!opacity-100":""),onClick:e=>null==e?void 0:e.stopPropagation(),children:(0,s.jsxs)(O.A,{width:"w-48",onOpen:()=>i(!0),onClose:()=>i(!1),dropdownButton:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(w.Ay.CarbonTransparent,{circular:!0,small:!0,className:"flex md:hidden",children:(0,s.jsx)(m.MoreVerticalIcon,{})}),(0,s.jsx)(w.Ay.CarbonOutline,{small:!0,circular:!0,className:"hidden md:flex",children:(0,s.jsx)(m.MoreVerticalIcon,{})})]}),children:[(0,s.jsxs)(O.e.Item,{onClick:a,className:"flex items-center gap-x-2",children:[(0,s.jsx)(m.ScreenshotIcon,{size:18}),"Screenshot"]}),(null==l?void 0:l.rank)<=100?(0,s.jsxs)(O.e.Item,{className:"flex items-center gap-x-2 whitespace-nowrap",onClick:d,children:[(0,s.jsx)(m.LinkIcon,{size:18}),"Copy position link"]}):null]})})},I=e=>{let{rank:l,rankShift:a,isHovered:t}=e,n=(0,r.useRef)(),[d,o]=(0,r.useState)(!1),u=(e=>{let l=null,a=null;switch(!0){case e<0:l=(0,s.jsx)(m.ChevronDownIcon,{size:12}),a="text-red-400";break;case e>0:l=(0,s.jsx)(m.ChevronUpIcon,{size:12}),a="text-green-300";break;case 0===e:l=(0,s.jsx)(m.DividerIcon,{size:10}),a="text-gray-500";break;default:l=null}return l?(0,s.jsx)("span",{className:a,children:l}):null})(a),x=l<=3;if((0,r.useEffect)(()=>{var e,l;x&&(t?null==n||null==(e=n.current)||e.play():null==n||null==(l=n.current)||l.stop())},[t]),!l)return null;if(x&&!d){let e=(e=>{switch(e){case 1:return v.CDNImage.goldMedalLottie;case 2:return v.CDNImage.silverMedalLottie;case 3:return v.CDNImage.bronzeMedalLottie;default:return null}})(l);return(0,s.jsx)("div",{className:"min-w-8 shrink-0 flex flex-col items-center justify-center",children:(0,s.jsx)(i.a,{ref:n,autoplay:!1,loop:!0,src:e,onEvent:e=>{"error"===e&&o(!0)},style:{height:"24px",width:"24px"}})})}return(0,s.jsxs)("div",{className:"min-w-8 shrink-0 flex flex-col items-center justify-center",children:[u,(0,s.jsxs)(c.default.MutedText,{xs:!0,className:"text-center",children:["#",l]})]})},_=e=>{var l,a,t,n,i,d,o,u,m,j,y,N,b,w,A,T;let{entry:C,myId:S,leaderboardInfo:P}=e,[E,O]=(0,r.useState)(!1),[_,H]=(0,r.useState)(!1),B=((null==C||null==(l=C.projects)?void 0:l.length)||0)-3,R=()=>{O(!0)};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{role:"none",onClick:R,onMouseEnter:()=>{H(!0)},onMouseLeave:()=>{H(!1)},className:"w-full group grid grid-cols-5 md:grid-cols-2 items-center px-2 mob:px-4 py-4 gap-4 transition-all ease-in-out hover:bg-gray-25 dark:hover:bg-gray-50 ".concat((null==C||null==(a=C.user)?void 0:a.id)===S?"bg-gray-100":""),children:[(0,s.jsxs)("div",{className:"flex col-span-3 md:col-span-1 items-center gap-x-1",children:[(0,s.jsx)(I,{rank:null==C?void 0:C.rank,rankShift:null==C?void 0:C.rankShift,isHovered:_}),(0,s.jsxs)("div",{className:"flex items-center gap-x-3",children:[(0,s.jsx)(f.A,{profileHandle:null==C||null==(t=C.user)?void 0:t.profileHandle,children:(0,s.jsx)(x(),{href:v.APP_PATHS.userProfile({profileHandle:null==C||null==(n=C.user)?void 0:n.profileHandle}),prefetch:!1,onClick:e=>null==e?void 0:e.stopPropagation(),children:(0,s.jsx)(h.Ay.Smaller,{image:null==C||null==(i=C.user)?void 0:i.profilePicture,verified:null==C||null==(d=C.user)?void 0:d.verified,idVerified:null==C||null==(o=C.user)?void 0:o.idVerified,companyVerified:null==C||null==(u=C.user)?void 0:u.companyVerified})})}),(0,s.jsxs)("div",{children:[(0,s.jsx)(x(),{href:v.APP_PATHS.userProfile({profileHandle:null==C||null==(m=C.user)?void 0:m.profileHandle}),prefetch:!1,onClick:e=>null==e?void 0:e.stopPropagation(),className:"hover:underline transition-all ease-in-out w-fit block",children:(0,s.jsx)(f.A,{profileHandle:null==C||null==(j=C.user)?void 0:j.profileHandle,className:"w-fit",children:(0,s.jsx)(c.default.SemiBoldText,{sm:!0,children:p.default.getDisplayName(C.user)})})}),(0,s.jsx)(c.default.MutedText,{className:"paragraph-clamp1",children:null==C||null==(y=C.user)?void 0:y.headline})]})]})]}),(0,s.jsxs)("div",{className:"w-full hidden md:grid grid-cols-2 items-center gap-4",children:[(0,s.jsxs)("div",{className:"col-span-1 flex items-center gap-x-3 px-6",children:[null==C||null==(b=C.projects)||null==(N=b.slice(0,3))?void 0:N.map(e=>{var l;return(0,s.jsxs)(x(),{href:null==e?void 0:e.projectURL,prefetch:!1,"data-tip":!0,"data-for":null==e?void 0:e.id,onClick:e=>null==e?void 0:e.stopPropagation(),className:"rounded-lg transition-shadow hover:shadow-input-hover",children:[(0,s.jsx)(D.A.Small,{src:(null==e?void 0:e.logo)||(null==e||null==(l=e.images)?void 0:l[0]),alt:(null==e?void 0:e.title)||"Leaderboard project"}),(0,s.jsx)(g.A,{id:null==e?void 0:e.id,text:(null==e?void 0:e.title)||"View Project"})]},null==e?void 0:e.id)}),B>0?(0,s.jsx)(x(),{prefetch:!1,onClick:e=>null==e?void 0:e.stopPropagation(),href:"".concat(v.APP_PATHS.userProfile({profileHandle:null==C||null==(w=C.user)?void 0:w.profileHandle}),"#projects"),children:(0,s.jsxs)("div",{"data-tip":!0,"data-for":"".concat(null==C||null==(A=C.user)?void 0:A.profileHandle,"-projects"),className:"border rounded-lg size-8 flex items-center justify-center text-gray-400",children:[(0,s.jsxs)(c.default.MutedText,{xs:!0,children:["+",B]}),(0,s.jsx)(g.A,{id:"".concat(null==C||null==(T=C.user)?void 0:T.profileHandle,"-projects"),text:"View all projects"})]})}):null]}),(0,s.jsxs)("div",{className:"col-span-1 flex items-center justify-center relative",children:[(0,s.jsx)(c.default.NormalText,{xs:!0,className:"text-center text-gray-1k",children:null==C?void 0:C.totalPoints}),(0,s.jsx)(L,{entry:C,openScreenshotCard:R,className:"absolute right-0 opacity-0 group-hover:opacity-100"})]})]}),(0,s.jsxs)("div",{className:"col-span-2 md:hidden flex items-center justify-center relative",children:[(0,s.jsx)(c.default.NormalText,{xs:!0,className:"text-center text-gray-1k",children:null==C?void 0:C.totalPoints}),(0,s.jsx)(L,{entry:C,openScreenshotCard:R,className:"absolute right-2"})]})]}),E?(0,s.jsx)(k,{entry:C,showCard:E,setShowCard:O,leaderboardInfo:P}):null]})};var H=a(4282),B=a(34321),R=a(34217);let M=e=>{var l,a,r,t;let{leaderboardInfo:i,pageQuery:d,leaderboardList:o}=e,c=(0,n.I)({queryKey:(0,H.Sx)({type:"user",pageQueryString:JSON.stringify(d)}),queryFn:async()=>{var e,l,a;let s=await B._x.leaderboard({...d,userRank:!0}),r=null==s||null==(l=s.data)||null==(e=l.data)?void 0:e.userEntry;return{userEntry:(null==r||null==(a=r.user)?void 0:a.id)?r:null}}});if((null==c?void 0:c.isFetching)||(null==c?void 0:c.isError)||!(null==c||null==(l=c.data)?void 0:l.userEntry)||(null==c||null==(r=c.data)||null==(a=r.userEntry)?void 0:a.rank)<=10)return null;let u=o.find(e=>{var l,a,s,r;return(null==e||null==(l=e.user)?void 0:l.id)===(null==c||null==(r=c.data)||null==(s=r.userEntry)||null==(a=s.user)?void 0:a.id)});return(0,s.jsx)("li",{className:"rounded-2xl border shadow-10 mx-2 sticky z-[1] bottom-20 lg:bottom-8 bg-gray-00 overflow-hidden",children:(0,s.jsx)(_,{entry:{...(null==c||null==(t=c.data)?void 0:t.userEntry)||{},...u||{}},leaderboardInfo:i})})},F=()=>(0,s.jsxs)("div",{className:"w-full grid grid-cols-5 md:grid-cols-2 items-center gap-4 h-8 pl-4 pr-2 mob:px-4 border-b sticky top-14 bg-gray-00 z-[2]",children:[(0,s.jsx)("div",{className:"col-span-3 md:col-span-1 ml-0 md:ml-2",children:(0,s.jsx)(c.default.SemiBoldText,{xxs:!0,className:"text-gray-500 uppercase",children:"Builders"})}),(0,s.jsxs)("div",{className:"hidden md:grid grid-cols-2 gap-4 w-full",children:[(0,s.jsx)("div",{className:"col-span-1 px-6",children:(0,s.jsx)(c.default.SemiBoldText,{xxs:!0,className:"text-gray-500 uppercase",children:"LAUNCHES"})}),(0,s.jsx)("div",{className:"col-span-1",children:(0,s.jsx)(c.default.SemiBoldText,{xxs:!0,className:"text-gray-500 uppercase text-center",children:"Points"})})]}),(0,s.jsx)("div",{className:"block col-span-2 md:hidden",children:(0,s.jsx)(c.default.SemiBoldText,{xxs:!0,className:"text-gray-500 uppercase text-center",children:"Points"})})]}),z=()=>(0,s.jsx)(s.Fragment,{children:Array(20).fill(null).map((e,l)=>(0,s.jsxs)("div",{className:"w-full grid grid-cols-4 md:grid-cols-2 items-center px-2 mob:px-4 py-4 gap-4 animate-pulse",children:[(0,s.jsxs)("div",{className:"flex items-center col-span-3 md:col-span-1 gap-x-1",children:[(0,s.jsx)("div",{className:"w-8 shrink-0 flex justify-center",children:(0,s.jsx)("div",{className:"w-3 h-4 bg-gray-200 rounded"})}),(0,s.jsxs)("div",{className:"flex items-center gap-x-3 shrink-0 flex-grow",children:[(0,s.jsx)("div",{className:"size-8 rounded-full bg-gray-100 shrink-0"}),(0,s.jsxs)("div",{className:"space-y-1 w-full",children:[(0,s.jsx)("div",{className:"w-1/2 h-4 bg-gray-100 rounded"}),(0,s.jsx)("div",{className:"w-full h-3 bg-gray-100 rounded"})]})]})]}),(0,s.jsxs)("div",{className:"hidden md:grid grid-cols-2 items-center w-full",children:[(0,s.jsxs)("div",{className:"col-span-1 flex items-center gap-x-3 px-6",children:[(0,s.jsx)("div",{className:"size-8 rounded-lg border bg-gray-50"}),(0,s.jsx)("div",{className:"size-8 rounded-lg border bg-gray-100"}),(0,s.jsx)("div",{className:"size-8 rounded-lg border bg-gray-50"})]}),(0,s.jsx)("div",{className:"col-span-1 flex",children:(0,s.jsx)("div",{className:"w-3 h-4 bg-gray-200 rounded mx-auto"})})]}),(0,s.jsx)("div",{className:"block col-span-1 md:hidden",children:(0,s.jsx)("div",{className:"w-6 h-4 bg-gray-200 rounded mx-auto"})})]},"random-item-".concat(l+2)))}),q=e=>{var l;let{pageQuery:a,leaderboardInfo:t}=e,{appData:i}=(0,o.useSelector)(e=>e.AppData),d=(0,n.I)({queryKey:(0,H.Sx)({pageQueryString:JSON.stringify(a)}),queryFn:async()=>{var e,l;let s=await B._x.leaderboard(a);return{leaderboard:null==s||null==(l=s.data)||null==(e=l.data)?void 0:e.leaderboard}}}),c=(null==d||null==(l=d.data)?void 0:l.leaderboard)||[];return(0,r.useEffect)(()=>
1{if((null==c?void 0:c.length)&&!(null==d?void 0:d.isFetching)&&1){var e,l,a;let s=null==(a=window)||null==(l=a.location)||null==(e=l.hash)?void 0:e.substring(1);s&&setTimeout(()=>{let e=document.getElementById(s);e&&(e.scrollIntoView({behavior:"smooth",block:"center"}),e.classList.add("bg-gray-200","transition-colors"),setTimeout(()=>{e.classList.remove("bg-gray-200")},2e3))},100)}},[null==c?void 0:c.length,null==c?void 0:c.isFetching]),(0,s.jsxs)("div",{className:"w-full pb-20",children:[(0,s.jsx)(F,{}),(null==d?void 0:d.isFetching)?(0,s.jsx)(z,{}):null,(null==d?void 0:d.isError)&&!(null==d?void 0:d.isFetching)?(0,s.jsx)("div",{className:"mx-auto",children:(0,s.jsx)(R.A.EmptyState,{title:"Something went wrong!"})}):null,(null==d?void 0:d.isLoading)||(null==d?void 0:d.isError)||null==c||!c.length?null:(0,s.jsxs)("ul",{className:"relative",children:[c.map(e=>{var l,a;return(0,s.jsx)("li",{id:null==e||null==(l=e.user)?void 0:l.profileHandle,children:(0,s.jsx)(_,{entry:e,myId:null==i?void 0:i.id,leaderboardInfo:t})},null==e||null==(a=e.user)?void 0:a.id)}),(0,s.jsx)(M,{pageQuery:a,leaderboardInfo:t,leaderboardList:c})]})]})};var G=a(18480),V=a(61028),W=a(50629),U=a(70657),Y=a(94296);let J="timePeriod",Q="category",K="last30Days",X=[{label:"All-time",value:"allTime"},{label:"Last 30 days",value:K}],Z=[v.PROJECT_CATEGORIES_IDS.FIGMA_TEMPLATE,v.PROJECT_CATEGORIES_IDS.NOTION_TEMPLATE,v.PROJECT_CATEGORIES_IDS.WEBFLOW_TEMPLATE,v.PROJECT_CATEGORIES_IDS.YOUTUBE_CHANNEL],$={name:"All Categories",id:"all"},ee=[$,...v.PROJECT_CATEGORIES].filter(e=>!Z.includes(e.id)),el=()=>{let[e,l]=(0,r.useState)(!1);return(0,s.jsxs)("div",{onMouseEnter:()=>{l(!0)},onMouseLeave:()=>{l(!1)},className:"hidden md:block w-full max-w-[347px] px-4 py-4 sm:px-8 text-left space-y-4",children:[(0,s.jsx)("div",{className:"w-fit",children:(0,s.jsx)(i.a,{autoplay:e,loop:!0,src:v.CDNLOTTIES.rocketLottie,style:{height:"40px",width:"40px"}},"lottie-rocket-".concat(e))}),(0,s.jsxs)("div",{children:[(0,s.jsx)(c.default.NormalText,{className:"font-instrument",xxl:!0,children:"Monday is a launch day!"}),(0,s.jsxs)(c.default.MutedText,{sm:!0,className:"mb-3",children:["Stay ahead of the curve and schedule your launch for next Monday."," "]}),(0,s.jsx)(W.fl,{dark:!0,small:!0})]})]})},ea=()=>{var e,l,a,r;let i=(0,t.useRouter)(),o=(null==(e=Object)?void 0:e.values((null==i?void 0:i.query)||{}).length)?i.query:{},u=(0,n.I)({queryKey:(0,H.Sx)({type:"stats",pageQueryString:JSON.stringify(o)}),queryFn:async()=>{var e,l;let a=await B._x.leaderboard({...o,stats:!0});return{stats:null==a||null==(l=a.data)||null==(e=l.data)?void 0:e.stats}}}),x=e=>{var l,a,s;let{type:r,option:t}=e,n={};switch(r){case J:(null==i||null==(l=i.query)?void 0:l.category)&&(n.category=null==i||null==(a=i.query)?void 0:a.category),(null==t?void 0:t.value)===K&&(n.last30Days=!0);break;case Q:(null==i||null==(s=i.query)?void 0:s.last30Days)&&(n.last30Days=!0),t.id!==$.id&&(n.category=t.id.toLowerCase())}i.replace({pathname:v.APP_PATHS.launchpadLeaderboard,query:n})},m=(()=>{var e;return(null==i||null==(e=i.query)?void 0:e.category)?ee.find(e=>{var l,a;return(null==e?void 0:e.id)===(null==i||null==(a=i.query)||null==(l=a.category)?void 0:l.toUpperCase())}):$})(),h=(()=>{var e;return(null==i||null==(e=i.query)?void 0:e.last30Days)?X[1]:X[0]})(),p={category:m,stats:null==(l=u.data)?void 0:l.stats};(null==h?void 0:h.value)===K&&(p.last30Days=!0);let g=(null==m?void 0:m.name)&&(null==m?void 0:m.id)!=="all"?m.name:"";return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(G.A,{title:"Peerlist Top Builders | Leaderboard ".concat(g?"- ".concat(g):""),ogImage:v.CDNImage.launchpadLeaderboard,canonical:"".concat(v.APP_PATHS.PEERLIST).concat(v.APP_PATHS.launchpadLeaderboard),description:"This leaderboard champions Peerlistâs most relentless, consistent, and inspiring builders."}),(0,s.jsx)(d.A.CenterTop,{internalPage:!0,children:(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)(d.A.BackButton,{}),(0,s.jsx)(d.A.PageHeading,{as:"p",children:"Builder Leaderboard"})]})}),(0,s.jsxs)("div",{className:"mt-14 relative",children:[(0,s.jsxs)("div",{className:"flex items-center border-b",children:[(0,s.jsxs)("div",{className:"w-full p-4 sm:p-6 border-r space-y-6",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)(c.default.NormalText,{as:"h1",className:"font-instrument text-center sm:text-left leading-10 mb-2",xxxl:!0,children:["Peerlist Top Builders",g?(0,s.jsxs)("span",{children:[" ","/ ",(0,s.jsx)("span",{className:"italic",children:g})]}):null]}),(0,s.jsxs)(c.default.NormalText,{className:"text-center sm:text-left",children:["The top"," ",(0,s.jsx)(c.default.SemiBoldText,{as:"span",children:"100"})," ","out of"," ",null==u||!u.isFetching||(null==u||null==(a=u.data)?void 0:a.stats)?(0,s.jsx)(c.default.SemiBoldText,{as:"span",children:null==u||null==(r=u.data)?void 0:r.stats}):(0,s.jsx)("span",{className:"w-8 h-4 bg-gray-100 rounded animate-pulse inline-block"})," ","builders on Peerlist. This leaderboard champions Peerlistâs most relentless, consistent, and inspiring builders."]})]}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,s.jsxs)("div",{className:"space-y-1",children:[(0,s.jsx)(c.default.SemiBoldText,{xxs:!0,textColor:"text-gray-500",children:"WHEN"}),(0,s.jsx)(V.A,{options:X,value:h,onChange:e=>{x({type:J,option:e}
1),U.A.capture(Y.Ay.CHANGE_LEADERBOARD_CATEGORY,{timePeriod:null==e?void 0:e.value})}})]}),(0,s.jsxs)("div",{className:"space-y-1",children:[(0,s.jsx)(c.default.SemiBoldText,{xxs:!0,textColor:"text-gray-500",children:"CATEGORY"}),(0,s.jsx)(V.A,{options:ee,getOptionLabel:e=>e.name,getOptionValue:e=>e.id,isClearable:!0,value:m,onChange:e=>{x({type:Q,option:e}),U.A.capture(Y.Ay.CHANGE_LEADERBOARD_CATEGORY,{category:null==e?void 0:e.value})}})]})]})]}),(0,s.jsx)(el,{})]}),(0,s.jsx)(q,{pageQuery:o,leaderboardInfo:p})]})]})}},35952:(e,l,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/launchpad/leaderboard",function(){return a(24281)}])}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=35952)),_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.