PageSourceSearch

https://databallr.netlify.app/assets/DevImpactMonster-fmyHFkkq.js

js databallr.netlify.app collected 2026-10-03 10:39:24 UTC 16,586 bytes, 1 lines download raw bytes

1import{r as b,q as G,j as e,H as E}from"./index-BAz9GNw5.js";import{I as A,a as L,r as R}from"./ImpactMonsterSharePoster-BziOx6kv.js";import{I as _}from"./ImpactMonsterMark-BlHvZ3p9.js";import{f,O as u,D as T}from"./scoring-DXC4tKJn.js";import{o as O,i as z,e as M}from"./resultCard-C_LGzAUA.js";import"./exportSafeHeadshots-BxR39Mh4.js";import"./imageLoader-Cei7HNzV.js";import"./pbpTeamIds-CVPNUg-e.js";import"./posterShare-BBMpIDjS.js";import"./share-2-CLKuKOWL.js";const v=1080,F=1350;function n(t,r,i,l,s,c){return{slotId:t,playerId:r,playerName:i,years:l,value:s,weightedValue:s,percentile:c,bestPossibleValue:s+.4,chosenWasBest:!1}}const p={oFT:n("oFT","203081-2021-25","Damian Lillard","2021-25",1.99,88),oShotmix:n("oShotmix","1718-2001-05","Paul Pierce","2001-05",1.43,71),oRimFG:n("oRimFG","1641705-2022-26","Victor Wembanyama","2022-26",2.26,84),oMidFG:n("oMidFG","977-2006-10","Kobe Bryant","2006-10",2.2,93),o3pFG:n("o3pFG","201939-2015-19","Stephen Curry","2015-19",4.27,99),oTOV:n("oTOV","1628983-2022-26","Shai Gilgeous-Alexander","2022-26",2.23,79),oSC:n("oSC","203500-2018-22","Steven Adams","2018-22",4.79,96),dFT:n("dFT","201188-2009-13","Marc Gasol","2009-13",.67,44),dShotmix:n("dShotmix","203935-2018-22","Marcus Smart","2018-22",.21,22),dRimFG:n("dRimFG","202355-2011-15","Hassan Whiteside","2011-15",2.97,91),dMidFG:n("dMidFG","1112-2000-04","Ben Wallace","2000-04",1.53,67),d3pFG:n("d3pFG","1630573-2022-26","Sam Hauser","2022-26",1.37,58),dTOV:n("dTOV","1905-2003-07","Andrei Kirilenko","2003-07",1.03,61),dSC:n("dSC","2403-2009-13","Nene","2009-13",2.35,74)},h={oFT:n("oFT","2544-2006-10","LeBron James","2006-10",.62,31),oShotmix:n("oShotmix","203999-2018-22","Nikola Jokic","2018-22",.44,19),oRimFG:n("oRimFG","203507-2017-21","Giannis Antetokounmpo","2017-21",.91,38),oMidFG:n("oMidFG","893-1996-00","Michael Finley","1996-00",.35,24),o3pFG:n("o3pFG","708-1996-00","Kevin Willis","1996-00",-.18,8),oTOV:n("oTOV","1495-2000-04","Steve Francis","2000-04",.27,17),oSC:n("oSC","959-1998-02","Jason Williams","1998-02",.11,12),dFT:n("dFT","467-1997-01","Antoine Walker","1997-01",.09,14),dShotmix:n("dShotmix","1717-2002-06","Dirk Nowitzki","2002-06",.18,21),dRimFG:n("dRimFG","201142-2013-17","Kevin Durant","2013-17",.52,33),dMidFG:n("dMidFG","947-1999-03","Allen Iverson","1999-03",.14,16),d3pFG:n("d3pFG","406-1996-00","Allan Houston","1996-00",.22,26),dTOV:n("dTOV","434-1996-00","Glen Rice","1996-00",.31,29),dSC:n("dSC","920-1997-01","Shareef Abdur-Rahim","1997-01",.66,41)};function P(t,r){const i={};return[...u,...T].slice(0,r).forEach(l=>{const s=t[l.id];s&&(i[l.id]=s)}),i}function g(t){const r=u.reduce((l,s)=>{var c;return l+(((c=t[s.id])==null?void 0:c.value)??0)},0),i=T.reduce((l,s)=>{var c;return l+(((c=t[s.id])==null?void 0:c.value)??0)},0);return{offense:r,defense:i,total:r+i}}const y={monster:{label:"Monster · 99th",build:()=>{const{offense:t,defense:r,total:i}=g(p);return{total:i,offense:t,defense:r,fills:p,leaderboard:{rank:212,percentile:96.4,total_entries:8401,percentile_source:"real",impact_monster:!0},leaderboardEligible:!0,submitState:"saved"}}},beast:{label:"Beast · 78th",build:()=>{const{offense:t,defense:r,total:i}=g(p);return{total:i*.82,offense:t*.82,defense:r*.82,fills:p,leaderboard:{rank:1844,percentile:78.2,total_entries:8401,percentile_source:"real",impact_monster:!1},leaderboardEligible:!0,submitState:"saved"}}},problem:{label:"Problem · 48th",build:()=>{const{offense:t,defense:r,total:i}=g(h);return{total:i*1.6,offense:t*1.6,defense:r*1.6,fills:h,leaderboard:{rank:4390,percentile:48.1,total_entries:8401,percentile_source:"real",impact_monster:!1},leaderboardEligible:!0,submitState:"saved"}}},puppy:{label:"Puppy · 12th",build:()=>{const{offense:t,defense:r,total:i}=g(h);return{total:i,offense:t,defense:r,fills:h,leaderboard:{rank:7788,percentile:12.4,total_entries:8401,percentile_source:"real",impact_monster:!1},leaderboardEligible:!0,submitState:"saved"}}},practice:{label:"No leaderboard",build:()=>{const{offense:t,defense:r,total:i}=g(p);return{total:i,offense:t,defense:r,fills:p,leaderboard:null,leaderboardEligible:!1,submitState:"idle"}}},partial:{label:"Partial build (9/14)",build:()=>{const t=P(p,9),{offense:r,defense:i,total:l}=g(t);return{total:l,offense:r,defense:i,fills:t,leaderboard:{rank:null,percentile:63.5,total_entries:8401,percentile_source:"baseline",impact_monster:!1},leaderboardEligible:!0,submitState:"saving"}}}},a={line:"#33413e",lineStrong:"#45534f",primary:"#ffcd57",primaryBright:"#ffe08a",secondary:"#3abff8",paper:"#f1f4ec"},H="'Bebas Neue', 'Oswald', sans-serif",d="'Saira Condensed', 'Oswald', sans-serif",W="'Oswald', 'Saira Condensed', sans-serif",B=["Free throws","Shot diet","Rim finishing","Midrange","Three pointers","Turnovers","Rebounding"],D={monster:{label:"Monster",bars:4,icon:"/impact-monster/tiers/monster.svg"},beast:{label:"Beast",bars:3,icon:"/impact-monster/tiers/beast.svg"},problem:{label:"Problem",bars:2,icon:"/impact-monster/tiers/problem.svg"},puppy:{label:"Puppy",bars:1,icon:"/impact-monster/tiers/puppy.svg"}};function j(t,r=42){return{marginTop:8,color:t,fontFamily:d,fontSize:r,fontWeight:800,letterSpacing:".01em",lineHeight:.9,whiteSpace:"nowrap"}}function S({label:t,children:r}){return e.jsxs("div",{style:{height:92,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",border:"1px solid rgba(255,205,87,.48)",background:"rgba(1,6,5,.86)",fontFamily:d,fontVariantNumeric:"tabular-nums",textAlign:"center"},children:[e.jsx("span",{style:{color:"#aab3af",fontSize:14,fontWeight:700,letterSpacing:".16em",lineHeight:1,textTransform:"uppercase"},children:t}),r]})}function k({fill:t}){return e.jsxs("span",{style:{minWidth:0,width:"100%",display:"flex",flexDirection:"column",alignItems:"center",lineHeight:1.03,textAlign:"center"},children:[e.jsx("strong",{style:{maxWidth:"100%",overflow:"hidden",color:a.paper,fontFamily:d,fontSize:31,fontWeight:700,letterSpacing:".035em",textOverflow:"ellipsis",textTransform:"uppercase",whiteSpace:"nowrap"},children:t?M(t.playerName):"OPEN"}),e.jsx("small",{style:{marginTop:6,color:"#798480",fontFamily:W,fontSize:14,fontWeight:500,letterSpacing:".16em",textTransform:"uppercase"},children:(t==null?void 0:t.years)??"-"})]})}function V({category:t,offense:r,defense:i,last:l}){const s={flex:"0 0 auto",fontFamily:d,fontSize:34,fontWeight:700,letterSpacing:"-.01em",lineHeight:1};return e.jsxs("div",{style:{height:92,display:"grid",gridTemplateColumns:"409px 204px 409px",borderBottom:l?"none":`1px solid ${a.line}`,background:"linear-gradient(90deg, rgba(255,205,87,.018), transparent 31%, transparent 69%, rgba(58,191,248,.022))"},children:[e.jsxs("div",{style:{minWidth:0,display:"grid",gridTemplateColumns:"minmax(0,1fr) auto",alignItems:"center",gap:20,padding:"0 28px"},children:[e.jsx(k,{fill:r}),e.jsx("span",{style:{...s,color:a.primary},children:r?f(r.value):"-"})]}),e.jsx("div",{style:{minWidth:0,display:"flex",alignItems:"center",justifyContent:"center",padding:"0 12px",borderLeft:`1px solid ${a.line}`,borderRight:`1px solid ${a.line}`,background:"rgba(255,255,255,.012)",textAlign:"center"},children:e.jsx("span",{style:{color:"#edf0eb",fontFamily:d,fontSize:20,fontWeight:600,letterSpacing:".06em",lineHeight:1,textTransform:"uppercase"},children:t})}),e.jsxs("div",{style:{minWidth:0,display:"grid",gridTemplateColumns:"auto minmax(0,1fr)",alignItems:"center",gap:20,padding:"0 30px 0 28px"},children:[e.jsx("span",{style:{...s,color:a.secondary},children:i?f(i.value):"-"}),e.jsx(k,{fill:i})]})]})}function $({data:t}){var o,w,C,I;const r=((o=t.leaderboard)==null?void 0:o.percentile)??null,i=r===null?null:z(r),l=i?D[i]:{label:"Result",bars:0,icon:null},s=(w=t.leaderboard)!=null&&w.rank?`#${t.leaderboard.rank.toLocaleStr
1ing()}`:t.leaderboardEligible?"PENDING":"PRACTICE",c=(C=t.leaderboard)!=null&&C.total_entries?`/ ${t.leaderboard.total_entries.toLocaleString()}`:"";return e.jsxs("div",{style:{position:"relative",isolation:"isolate",width:v,height:F,overflow:"hidden",padding:28,boxSizing:"border-box",color:a.paper,backgroundColor:"#030706",backgroundImage:"linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px), radial-gradient(circle at 13% 5%, rgba(255,205,87,.14), transparent 27%), radial-gradient(circle at 91% 78%, rgba(58,191,248,.09), transparent 34%), linear-gradient(180deg, #040908 0%, #020504 100%)",backgroundSize:"5px 5px, 44px 44px, auto, auto, auto",fontFamily:W,fontVariantNumeric:"tabular-nums"},children:[e.jsx("div",{"aria-hidden":"true",style:{position:"absolute",inset:15,zIndex:20,pointerEvents:"none",border:"1px solid rgba(255,205,87,.56)"}}),e.jsxs("header",{style:{position:"relative",height:300,padding:"30px 28px 0",boxSizing:"border-box"},children:[e.jsxs("div",{style:{position:"relative",zIndex:2,display:"flex",flexDirection:"column",alignItems:"center"},children:[e.jsx("div",{style:{color:a.primary,fontFamily:d,fontSize:20,fontWeight:700,letterSpacing:".34em",lineHeight:1,textAlign:"center",textTransform:"uppercase"},children:"You built an"}),e.jsxs("div",{style:{height:96,marginTop:8,display:"grid",gridTemplateColumns:"150px auto 150px",alignItems:"center",justifyContent:"center",gap:18},children:[e.jsx("div",{"aria-hidden":"true",style:{justifySelf:"end",width:96,height:96,marginRight:22,display:"grid",placeItems:"center",color:a.primary},children:l.icon?e.jsx("img",{src:l.icon,alt:"",style:{width:96,height:96,objectFit:"contain"}}):e.jsx(_,{size:88})}),e.jsxs("h1",{style:{margin:0,color:a.paper,fontFamily:H,fontSize:78,fontWeight:400,letterSpacing:".018em",lineHeight:.92,textAlign:"center",textTransform:"uppercase",whiteSpace:"nowrap"},children:["Impact ",e.jsx("span",{style:{color:a.primaryBright},children:l.label})]}),e.jsx("div",{style:{justifySelf:"start",height:39,display:"grid",gridTemplateColumns:"repeat(4,31px)",gap:7,alignItems:"end"},children:[0,1,2,3].map(x=>{const m=x<l.bars;return e.jsx("span",{style:{display:"block",height:"100%",border:`1px solid ${m?a.primaryBright:"#46534f"}`,background:m?a.primaryBright:"#111a18",transform:"skewX(-8deg)"}},x)})})]})]}),e.jsxs("div",{style:{position:"relative",zIndex:2,display:"grid",gridTemplateColumns:"repeat(3,minmax(0,1fr))",gap:12,marginTop:28},children:[e.jsx(S,{label:"Percentile",children:e.jsx("strong",{style:j(a.primary,42),children:r===null?"--":O(r)})}),e.jsx(S,{label:"Total impact",children:e.jsx("strong",{style:j(a.primary,48),children:f(t.total)})}),e.jsx(S,{label:"Rank",children:e.jsxs("strong",{style:j(a.paper,(I=t.leaderboard)!=null&&I.rank?45:32),children:[s,c?e.jsx("small",{style:{marginLeft:6,color:"#99a39f",fontSize:24,fontWeight:600},children:c}):null]})})]})]}),e.jsxs("section",{style:{position:"relative",marginTop:10,border:`1px solid ${a.lineStrong}`,background:"rgba(4,11,10,.82)"},children:[e.jsxs("div",{style:{height:56,display:"grid",gridTemplateColumns:"409px 204px 409px",alignItems:"center",color:"#b5bfbb",fontFamily:d,fontSize:20,fontWeight:600,letterSpacing:".16em",textTransform:"uppercase",background:"linear-gradient(180deg, rgba(20,31,29,.94), rgba(8,17,16,.92))",borderBottom:`1px solid ${a.lineStrong}`},children:[e.jsx("div",{style:{display:"grid",gridTemplateColumns:"minmax(0,1fr) 70px",gap:20,padding:"0 28px",color:a.primary,fontSize:26,fontWeight:700},children:e.jsx("span",{style:{gridColumn:1,textAlign:"center"},children:"Offense"})}),e.jsx("div",{style:{textAlign:"center"},children:"Category"}),e.jsx("div",{style:{display:"grid",gridTemplateColumns:"70px minmax(0,1fr)",gap:20,padding:"0 30px 0 28px",color:a.secondary,fontSize:26,fontWeight:700},children:e.jsx("span",{style:{gridColumn:2,textAlign:"center"},children:"Defense"})})]}),u.map((x,m)=>e.jsx(V,{category:B[m],offense:t.fills[x.id],defense:t.fills[T[m].id],last:m===u.length-1},x.id)),e.jsxs("div",{style:{height:96,display:"grid",gridTemplateColumns:"409px 204px 409px",alignItems:"center",background:"linear-gradient(90deg, #091210, #050a09 58%, #0a0c13)"},children:[e.jsxs("div",{style:{alignSelf:"stretch",display:"flex",alignItems:"center",justifyContent:"flex-end",gap:14,paddingRight:28,color:a.primary},children:[e.jsx("span",{style:{fontFamily:d,fontSize:21,fontWeight:700,letterSpacing:".1em",lineHeight:1,textTransform:"uppercase"},children:"Offense total"}),e.jsx("strong",{style:{fontFamily:d,fontSize:44,fontWeight:800,lineHeight:1},children:f(t.offense)})]}),e.jsx("div",{style:{alignSelf:"stretch",display:"grid",placeItems:"center",color:"#b7c0bc",fontFamily:d,fontSize:21,fontWeight:600,letterSpacing:".15em",textTransform:"uppercase",borderLeft:`1px solid ${a.line}`,borderRight:`1px solid ${a.line}`},children:"Total impact"}),e.jsxs("div",{style:{alignSelf:"stretch",display:"flex",alignItems:"center",justifyContent:"flex-start",ga
1p:14,paddingLeft:28,color:a.secondary},children:[e.jsx("strong",{style:{fontFamily:d,fontSize:44,fontWeight:800,lineHeight:1},children:f(t.defense)}),e.jsx("span",{style:{fontFamily:d,fontSize:21,fontWeight:700,letterSpacing:".1em",lineHeight:1,textTransform:"uppercase"},children:"Defense total"})]})]})]}),e.jsx("footer",{style:{height:139,padding:"0 24px",display:"flex",alignItems:"center",justifyContent:"center",borderTop:"1px solid rgba(255,205,87,.18)",textAlign:"center"},children:e.jsxs("div",{style:{color:"#d8ded8",fontFamily:d,fontSize:34,fontWeight:700,letterSpacing:".08em"},children:["Build your own at"," ",e.jsx("strong",{style:{color:a.primaryBright,fontWeight:800},children:"databallr.com/impactmonster"})]})})]})}function N({width:t,children:r}){const i=t/v;return e.jsx("div",{style:{width:t,height:F*i,overflow:"hidden"},children:e.jsx("div",{style:{width:v,height:F,transform:`scale(${i})`,transformOrigin:"top left"},children:r})})}function re(){const[t,r]=b.useState("monster"),[i,l]=b.useState(460),s=b.useMemo(()=>y[t].build(),[t]),{data:c}=G({queryKey:["dev-impact-poster-headshots",Object.values(s.fills).map(o=>o==null?void 0:o.playerId).join(",")],queryFn:()=>R(s.fills),staleTime:1/0});return e.jsxs("div",{className:"min-h-screen bg-background px-4 py-8 text-foreground sm:px-8",children:[e.jsxs(E,{children:[e.jsx("title",{children:"Dev · Impact Monster share export"}),e.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),e.jsxs("header",{className:"mx-auto mb-6 max-w-[1500px]",children:[e.jsx("p",{className:"text-[11px] font-semibold uppercase tracking-[.28em] text-muted-foreground",children:"Dev harness"}),e.jsx("h1",{className:"mt-1 text-2xl font-black uppercase tracking-tight",children:"Impact Monster share export"}),e.jsxs("p",{className:"mt-2 max-w-3xl text-sm text-muted-foreground",children:["Mock result data, no gameplay required. 1080×1350. The"," ",e.jsx("strong",{className:"text-foreground",children:"after"})," poster is what ships;"," ",e.jsx("strong",{className:"text-foreground",children:"before"})," is a frozen copy of the previous layout for comparison. Drag the width slider down to ~360px to judge it at feed size — that is how almost everyone will actually see it."]})]}),e.jsxs("div",{className:"mx-auto mb-6 flex max-w-[1500px] flex-wrap items-center gap-3 border border-border bg-card/60 p-3",children:[e.jsx("div",{className:"flex flex-wrap gap-1.5",children:Object.keys(y).map(o=>e.jsx("button",{type:"button",onClick:()=>r(o),className:`border px-3 py-1.5 text-xs font-bold uppercase tracking-wider transition ${t===o?"border-primary bg-primary/15 text-primary":"border-border text-muted-foreground hover:border-primary/40 hover:text-foreground"}`,children:y[o].label},o))}),e.jsxs("label",{className:"ml-auto flex items-center gap-3 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:["Render width",e.jsx("input",{type:"range",min:280,max:700,step:10,value:i,onChange:o=>l(Number(o.target.value)),className:"w-56 accent-[hsl(var(--primary))]"}),e.jsxs("span",{className:"w-14 tabular-nums text-foreground",children:[i,"px"]})]}),e.jsx(A,{data:s,onNotice:o=>console.log("[dev share]",o)})]}),e.jsxs("div",{className:"mx-auto flex max-w-[1500px] flex-wrap items-start gap-8",children:[e.jsxs("figure",{className:"m-0",children:[e.jsx("figcaption",{className:"mb-2 text-xs font-bold uppercase tracking-[.24em] text-destructive",children:"Before"}),e.jsx(N,{width:i,children:e.jsx($,{data:s})})]}),e.jsxs("figure",{className:"m-0",children:[e.jsx("figcaption",{className:"mb-2 text-xs font-bold uppercase tracking-[.24em] text-primary",children:"After"}),e.jsx(N,{width:i,children:e.jsx(L,{data:s,headshots:c??{}})})]})]})]})}export{re as default};

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.