1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="3c653fc7-2282-4d74-9894-39286c479fca",e._sentryDebugIdIdentifier="sentry-dbid-3c653fc7-2282-4d74-9894-39286c479fca")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1026],{2790:(e,a,l)=>{l.d(a,{Gg:()=>c,H$:()=>u,K5:()=>d,K6:()=>f,RN:()=>r,T1:()=>x,Vy:()=>o,Wd:()=>s,XE:()=>i,b:()=>g,g8:()=>k,hA:()=>h,mv:()=>b,q$:()=>p,w3:()=>t});var n=l(44675);let s=["card","sealed","lot","other"],r="card",t={card:"Single card",sealed:"Sealed product",lot:"Multiple cards",other:"Other"},i={card:"One card from the catalog.",sealed:"Booster packs, booster boxes, Elite Trainer Boxes, bundles, tins.",lot:"Several cards sold together as one listing.",other:"Supplies, empty boxes, promos â anything else collectors buy."},c={card:"Name this listing",sealed:"Prismatic Evolutions Elite Trainer Box â sealed",lot:"20 Scarlet & Violet holos â Near Mint bundle",other:"Pok\xe9mon Center binder, 4-pocket"};function o(e){let a=String(null!=e?e:"").trim().toLowerCase();return s.includes(a)?a:r}function d(e){return"card"===e}function u(e){return"card"===e?"card":"sealed"===e?"sealed":null}let m="sealed",p="Sealed",h="SEALED";function x(e){return String(null!=e?e:"").trim().toLowerCase()===m}let g=[{value:h,label:"Factory sealed"},...n.io.map(e=>({value:e,label:n.j6[e]}))];function f(e){return e.trim().toUpperCase()===h?{conditionKey:m,condition:null}:{conditionKey:"raw",condition:e}}function k(e,a){if(x(e))return h;let l=String(null!=a?a:"").trim().toUpperCase();return n.io.includes(l)?l:n.JG}function b(e){return"sealed"===e?h:n.JG}},20650:(e,a,l)=>{function n(e){return null!=e&&Number.isFinite(e)?"$".concat(Math.round(e).toLocaleString("en-US")):null}function s(e){if(null==e||!Number.isFinite(e))return null;let a=e>0?"+":"";if(Math.abs(e)>=100)return"".concat(a).concat(Math.round(e).toLocaleString("en-US"),"%");let l=Math.round(100*e)/100,n=Number.isInteger(l)?String(l):l.toFixed(2);return"".concat(a).concat(n,"%")}l.d(a,{$g:()=>n,R8:()=>s})},30141:(e,a,l)=>{l.d(a,{Sj:()=>c,iG:()=>o,jG:()=>d});var n=l(95155),s=l(12115),r=l(29379);let t="cardindex.game.v1",i=(0,s.createContext)(null);function c(e){let{children:a}=e,[l,c]=(0,s.useState)(r.TK);(0,s.useEffect)(()=>{let e=null;try{e=window.localStorage.getItem(t)}catch(e){}if(!e)return;let a=(0,r.JL)(e);(0,r.XL)(a).available&&c(a)},[]);let o=(0,s.useCallback)(e=>{if((0,r.XL)(e).available){c(e);try{window.localStorage.setItem(t,e)}catch(e){}}},[]),d=(0,s.useMemo)(()=>({gameId:l,game:(0,r.XL)(l),setGameId:o}),[l,o]);return(0,n.jsx)(i.Provider,{value:d,children:a})}function o(){let e=(0,s.useContext)(i);if(!e)throw Error("useCardGame must be used within a GameProvider");return e}function d(){return o().gameId}},55894:(e,a,l)=>{l.r(a),l.d(a,{default:()=>el});var n=l(95155),s=l(52619),r=l.n(s),t=l(12115),i=l(61866),c=l(59870),o=l(5141),d=l(15684),u=l(34051),m=l(81844),p=l(61227),h=l(29770),x=l(30141);function g(e,a){let[l,n]=f(e,a);return+(null!=l)+ +(null!=n)+ +(null!=e.minSales)+ +(e.rarities.length>0)+ +(null!=e.sport)}function f(e,a){return"sale"===a?[e.salePriceMin,e.salePriceMax]:[e.marketMin,e.marketMax]}function k(e,a,l,n){return"sale"===a?{...e,salePriceMin:l,salePriceMax:n}:{...e,marketMin:l,marketMax:n}}function b(e){let{filters:a,onChange:l,priceScope:s,condition:r,conditionOptions:i,onConditionChange:c,anyCondition:d,locked:b,onLocked:j}=e,[N,y]=(0,t.useState)(!1),[C,S]=(0,t.useState)(""),w=(0,t.useRef)(null),M="sports"===(0,x.jG)(),{currency:A,convert:P}=(0,h.H)(),L=e=>(function(e,a,l){let n=l(e),s=Math.pow(10,Math.floor(Math.log10(n))-1),r=Math.round(n/s)*s,t=(0,u.S1)(a);return r>=1e3?"".concat(t).concat(r/1e3,"k"):"".concat(t).concat(r)})(e,A,P),[E,G]=f(a,s),_=r!==d,U=g(a,s)+ +!!_,B=i.length>=8;(0,t.useEffect)(()=>{if(!N)return;let e=e=>{w.current&&!w.current.contains(e.target)&&y(!1)},a=e=>{"Escape"===e.key&&y(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",a),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",a)}},[N]),(0,t.useEffect)(()=>{N||S("")},[N]);let T=(0,t.useMemo)(()=>
1{let e=C.toLowerCase().split(/\s+/).filter(Boolean);return 0===e.length?i:i.filter((a,l)=>{if(0===l)return!0;let n=a.label.toLowerCase();return e.every(e=>n.includes(e))})},[i,C]),I="sale"===s?"Sale price":"Card value";return(0,n.jsxs)("div",{className:"rf",ref:w,children:[(0,n.jsxs)("button",{type:"button",className:"dd-btn rf-btn".concat(U>0?" is-active":""),"aria-label":"Filters","aria-haspopup":"dialog","aria-expanded":N,onClick:()=>y(e=>!e),children:[(0,n.jsx)(o.YG,{size:15}),(0,n.jsx)("span",{className:"rf-btn-label",children:"Filters"}),U>0&&(0,n.jsx)("span",{className:"rf-count",children:U})]}),N&&(0,n.jsxs)("div",{className:"rf-panel",role:"dialog","aria-label":"Ranking filters",children:[(0,n.jsxs)("div",{className:"rf-head",children:[(0,n.jsx)("span",{className:"rf-title",children:"Filters"}),(0,n.jsx)("button",{type:"button",className:"rf-clear",disabled:0===U,onClick:()=>{c(d),l(m.n4)},children:"Clear all"})]}),(0,n.jsxs)("div",{className:"rf-body",children:[(0,n.jsxs)("div",{className:"rf-group",children:[(0,n.jsx)("span",{className:"rf-label",children:"Condition"}),B&&(0,n.jsx)("input",{className:"rf-search",type:"search",value:C,onChange:e=>S(e.target.value),placeholder:"Find a gradeâ¦","aria-label":"Find a grade"}),(0,n.jsxs)("ul",{className:"rf-options",role:"listbox","aria-label":"Condition",children:[T.map(e=>{let a=e.value===r;return(0,n.jsx)("li",{children:(0,n.jsxs)("button",{type:"button",role:"option","aria-selected":a,className:"rf-option".concat(a?" is-active":""),onClick:()=>c(e.value),children:[(0,n.jsx)("span",{children:e.label}),a&&(0,n.jsx)(o.Sr,{size:15})]})},e.value)}),T.length<=1&&C.trim().length>0&&(0,n.jsx)("li",{className:"rf-empty",children:"No matches."})]})]}),M&&(0,n.jsxs)("div",{className:"rf-group",children:[(0,n.jsx)("span",{className:"rf-label",children:"Sport"}),(0,n.jsx)("div",{className:"rf-chips",children:p.g.map(e=>{let s=a.sport===e;return(0,n.jsxs)("button",{type:"button",className:"rf-chip".concat(s?" is-on":""),"aria-pressed":s,onClick:()=>l({...a,sport:s?null:e}),children:[s&&(0,n.jsx)(o.Sr,{size:13}),e]},e)})})]}),(0,n.jsxs)("div",{className:"rf-pro".concat(b?" is-locked":""),onClick:b?j:void 0,role:b?"button":void 0,tabIndex:b?0:void 0,"aria-label":b?"Unlock price and rarity filters with Pro":void 0,onKeyDown:b?e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),j())}:void 0,children:[(0,n.jsxs)("div",{className:"rf-group",children:[(0,n.jsxs)("div",{className:"rf-group-head",children:[(0,n.jsxs)("span",{className:"rf-label",children:[I,b&&(0,n.jsx)(o.XA,{size:13})]}),"market"===s&&(0,n.jsx)("span",{className:"rf-hint",children:"These tabs rank a % move, so the range is on what the card is worth now."})]}),(0,n.jsxs)("div",{className:"rf-range",children:[(0,n.jsx)(v,{value:E,anyLabel:"No minimum",steps:m.oG,format:L,ariaLabel:"Minimum ".concat(I.toLowerCase()),disabled:b,onChange:e=>l(k(a,s,e,null!=G&&null!=e&&G<e?null:G))}),(0,n.jsx)("span",{className:"rf-range-sep",children:"to"}),(0,n.jsx)(v,{value:G,anyLabel:"No maximum",steps:m.oG,format:L,ariaLabel:"Maximum ".concat(I.toLowerCase()),disabled:b,onChange:e=>l(k(a,s,null!=E&&null!=e&&e<E?null:E,e))})]})]}),(0,n.jsxs)("div",{className:"rf-group",children:[(0,n.jsxs)("div",{className:"rf-group-head",children:[(0,n.jsxs)("span",{className:"rf-label",children:["Sales in period",b&&(0,n.jsx)(o.XA,{size:13})]}),(0,n.jsx)("span",{className:"rf-hint",children:"A price with no volume behind it is not a market."})]}),(0,n.jsx)(v,{value:a.minSales,anyLabel:"Any number of sales",steps:m.W_,format:e=>"At least ".concat(e),ariaLabel:"Minimum sales in the period",disabled:b,onChange:e=>l({...a,minSales:e})})]}),!M&&(0,n.jsxs)("div",{className:"rf-group",children:[(0,n.jsxs)("span",{className:"rf-label",children:["Rarity",b&&(0,n.jsx)(o.XA,{size:13})]}),(0,n.jsx)("div",{className:"rf-chips",children:m.pv.map(e=>{let{key:s,label:r}=e,t=a.rarities.includes(s);return(0,n.jsxs)("button",{type:"button",className:"rf-chip".concat(t?" is-on":""),"aria-pressed":t,disabled:b,onClick:()=>(e=>{let n=a.rarities.includes(e)?a.rarities.filter(a=>a!==e):[...a.rarities,e];l({...a,rarities:n.sort()})})(s),children:[t&&(0,n.jsx)(o.Sr,{size:13}),r]},s)})})]})]})]})]})]})}function v(e){let{value:a,steps:l,anyLabel:s,format:r,ariaLabel:t,disabled:i,onChange:c}=e;return(0,n.jsxs)("select",{className:"rf-select","aria-label":t,value:null!=a?a:"",disabled:i,onChange:e=>c(""===e.target.value?null:Number(e.target.value)),children:[(0,n.jsx)("option",{value:"",children:s}),l.map(e=>(0,n.jsx)("option",{value:e,children:r(e)},e))]})}function j(e){let{values:a,width:l=88,height:s=32,color:r}=e,t=a.filter(e=>Number.isFinite(e));if(t.length<2)return(0,n.jsx)("svg",{width:l,height:s,"aria-hidden":"true"});let i=Math.min(...t),c=Math.max(...t)-i||1,o=l/(t.length-1),d=t.map((e,a)=>{let l=s-(e-i)/c*(s-4)-2;return"".concat((a*o).toFixed(1),",").concat(l.toFixed(1))}),u=null!=r?r:t[t.length-1]>=t[0]?"#1F9E5B":"#E5484D";return(0,n.jsx)("svg",{width:l,height:s,"aria-hidden":"true",className:"sparkline",children:(0,n.jsx)("polyline",{points:d.join(" "),fill:"none",stroke:u,strokeWidth:1.75})})}var N=l(44675),y=l(90960);let C=[{value:"all",label:"All graders"},{value:"PSA",label:"PSA"},{value:"BGS",label:"BGS"},{value:"CGC",label:"CGC"},{value:"SGC",label:"SGC"}],S=[{value:null,label:"Any grade"},{value:10,label:"10 only"},{value:9.5,label:"9.5 and up"},{value:9,label:"9 and up"},{value:8,label:"8 and up"}],w={grader:"all",minGrade:null,minPrice:null,maxPrice:null,maxPctOfValue:null},M=[{id:"EBAY_US",label:"United States",country:"US"},{id:"EBAY_CA",label:"Canada",country:"CA"},{id:"EBAY_GB",label:"United Kingdom",country:"GB"},{id:"EBAY_AU",label:"Australia",country:"AU"},{id:"EBAY_FR",label:"France",country:"FR"},{id:"EBAY_DE",label:"Germany",country:"DE"},{id:"EBAY_IT",label:"Italy",country:"IT"},{id:"EBAY_ES",label:"Spain",country:"ES"}],A={listings:[],total:0,lockedCount:0,isPro:!1,hasMore:!1,refreshedAt:""};var P=l(97029);let L=[{key:"time",label:e=>e?"Listed":"Ends",numeric:!0},{key:"card",label:()=>"Card",numeric:!1},{key:"grade",label:()=>"Grade",numeric:!0},{key:"market",label:()=>"Market price",numeric:!0},{key:"price",label:()=>"Current price",numeric:!0},{key:"pct",label:()=>"vs value",numeric:!0}];function E(e){return"auction"===e?{key:"time",dir:"asc"}:{key:"time",dir:"desc"}}function G(e,a){switch(a){case"time":{let a="fixed"===e.listingType?e.listedAt:e.endsAt,l=a?Date.parse(a):NaN;return Number.isFinite(l)?l:null}case"card":return e.title.toLocaleLowerCase();case"grade":var l;let n=Number(e.conditionKey.split(" ")[1]);return Number.isFinite(n)?n:-1;case"market":return e.marketValue;case"price":return null!=(l=e.priceUsd)?l:e.price;case"pct":return e.pctOfValue}}let _=[{value:"time",label:e=>e?"Newest first":"Ending soonest",sort:{key:"time",dir:"asc"}},{value:"pct",label:()=>"Best value (lowest % of market)",sort:{key:"pct",dir:"asc"}},{value:"price-asc",label:()=>"Price: low to high",sort:{key:"price",dir:"asc"}},{value:"price-desc",label:()=>"Price: high to low",sort:{key:"price",dir:"desc"}},{value:"market",label:()=>"Market price: high to low",sort:{key:"market",dir:"desc"}},{value:"grade",label:()=>"Grade: high to low",sort:{key:"grade",dir:"desc"}}];function U(e){var a,l,s,r;let{filters:t,onChange:i,sort:c,onSortChange:o,marketplace:d,onMarketplaceChange:u,fixed:m,onClose:p}=e,h=e=>{if(!e.trim())return null;let a=Number(e);return Number.isFinite(a)&&a>=0?a:null};return(0,n.jsxs)("div",{className:"sniper-filter-popover",children:[(0,n.jsxs)("div",{className:"sniper-filter-head",children:[(0,n.jsx)("strong",{children:"Filters"}),(0,n.jsx)("button",{type:"button",onClick:p,"aria-label":"Close filters",children:"\xd7"})]}),(0,n.jsxs)("label",{className:"sniper-filter-phone",children:["Sort by",(0,n.jsx)("select",{value:"time"===c.key?"time":"price"===c.key?"price-".concat(c.dir):c.key,onChange:e=>{let a=_.find(a=>a.value===e.target.value);a&&o("time"===a.value?{key:"time",dir:m?"desc":"asc"}:a.sort)},children:_.map(e=>(0,n.jsx)("option",{value:e.value,children:e.label(m)},e.value))})]}),(0,n.jsxs)("label",{className:"sniper-filter-phone",children:["eBay country",(0,n.jsx)("select",{value:d,onChange:e=>u(e.target.value),children:M.map(e=>(0,n.jsx)("option",{value:e.id,children:e.label},e.id))})]}),(0,n.jsxs)("div",{className:"sniper-filter-range",children:[(0,n.jsxs)("label",{children:["Grading company",(0,n.jsx)("select",{value:t.grader,onCh
1ange:e=>i({...t,grader:e.target.value}),children:C.map(e=>(0,n.jsx)("option",{value:e.value,children:e.label},e.value))})]}),(0,n.jsxs)("label",{children:["Grade",(0,n.jsx)("select",{value:null!=(a=t.minGrade)?a:"",onChange:e=>i({...t,minGrade:""===e.target.value?null:Number(e.target.value)}),children:S.map(e=>{var a;return(0,n.jsx)("option",{value:null!=(a=e.value)?a:"",children:e.label},e.label)})})]})]}),(0,n.jsxs)("div",{className:"sniper-filter-range",children:[(0,n.jsxs)("label",{children:["Minimum price",(0,n.jsx)("input",{type:"number",inputMode:"decimal",min:"0",value:null!=(l=t.minPrice)?l:"",onChange:e=>i({...t,minPrice:h(e.target.value)}),placeholder:"$0"})]}),(0,n.jsxs)("label",{children:["Maximum price",(0,n.jsx)("input",{type:"number",inputMode:"decimal",min:"0",value:null!=(s=t.maxPrice)?s:"",onChange:e=>i({...t,maxPrice:h(e.target.value)}),placeholder:"Any"})]})]}),(0,n.jsxs)("label",{children:["Maximum % of market value",(0,n.jsx)("input",{type:"number",inputMode:"decimal",min:"0",value:null!=(r=t.maxPctOfValue)?r:"",onChange:e=>i({...t,maxPctOfValue:h(e.target.value)}),placeholder:"Any"})]}),(0,n.jsxs)("div",{className:"sniper-filter-actions",children:[(0,n.jsx)("button",{type:"button",onClick:()=>i(w),children:"Clear"}),(0,n.jsx)("button",{type:"button",className:"btn btn-primary",onClick:p,children:"Show results"})]})]})}function B(){return(0,n.jsxs)("div",{className:"sniper-row sniper-row-skeleton","aria-hidden":"true",children:[(0,n.jsx)("span",{className:"skel sniper-skeleton-price"}),(0,n.jsx)("span",{className:"skel sniper-skeleton-image"}),(0,n.jsx)("span",{className:"skel sniper-skeleton-line"}),(0,n.jsx)("span",{className:"skel sniper-skeleton-grade"}),(0,n.jsx)("span",{className:"skel sniper-skeleton-price"}),(0,n.jsx)("span",{className:"skel sniper-skeleton-price"}),(0,n.jsx)("span",{className:"skel sniper-skeleton-price"})]})}function T(e){let{onVisible:a,disabled:l}=e,s=(0,t.useRef)(null);return(0,t.useEffect)(()=>{let e=s.current;if(!e||l)return;let n=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&a()},{rootMargin:"600px 0px"});return n.observe(e),()=>n.disconnect()},[a,l]),(0,n.jsx)("div",{ref:s,className:"sniper-load-more","aria-hidden":"true"})}let I={JP:"\uD83C\uDDEF\uD83C\uDDF5",KO:"\uD83C\uDDF0\uD83C\uDDF7",KR:"\uD83C\uDDF0\uD83C\uDDF7",CS:"\uD83C\uDDE8\uD83C\uDDF3",ZH:"\uD83C\uDDE8\uD83C\uDDF3",CT:"\uD83C\uDDF9\uD83C\uDDFC",DE:"\uD83C\uDDE9\uD83C\uDDEA",FR:"\uD83C\uDDEB\uD83C\uDDF7",IT:"\uD83C\uDDEE\uD83C\uDDF9",ES:"\uD83C\uDDEA\uD83C\uDDF8",PT:"\uD83C\uDDE7\uD83C\uDDF7",TH:"\uD83C\uDDF9\uD83C\uDDED",ID:"\uD83C\uDDEE\uD83C\uDDE9",RU:"\uD83C\uDDF7\uD83C\uDDFA",NL:"\uD83C\uDDF3\uD83C\uDDF1",PL:"\uD83C\uDDF5\uD83C\uDDF1"};function R(e){let{code:a}=e,l=I[a.toUpperCase()];return(0,n.jsx)("span",{className:"sniper-card-lang".concat(l?"":" is-code"),title:"".concat(a," printing"),children:l?"".concat(l," "):"".concat(a," \xb7 ")})}function F(e){var a,l,s,r;let{listing:t,now:i,bumpedAt:c,formatPrice:o}=e,d=null!=c&&i-c<8e3,u=null==t.pctOfValue?null:"".concat(Math.round(t.pctOfValue).toLocaleString("en-US"),"%"),m=t.endsAt?Date.parse(t.endsAt)-i:NaN,p="auction"===t.listingType&&Number.isFinite(m)&&m>0&&m<=6e5,h=null==t.pctOfValue?"is-unknown":t.pctOfValue<=80?"is-deal":t.pctOfValue<100?"is-near":"is-over",x=()=>window.open(t.url,"_blank","noopener,noreferrer");return(0,n.jsxs)("div",{className:"sniper-row".concat(d?" is-bumped":""),role:"link",tabIndex:0,"aria-label":"Open eBay listing: ".concat(t.title),onClick:x,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),x())},children:[(0,n.jsxs)("div",{className:"sniper-ends".concat(p?" is-urgent":""),children:[(0,n.jsx)("strong",{children:"fixed"===t.listingType?function(e,a){if(!e)return"Recently listed";let l=a-Date.parse(e);if(!Number.isFinite(l)||l<0)return"Just listed";let n=Math.floor(l/1e3);if(n<60)return"Just now";let s=Math.floor(n/60);if(s<60)return"".concat(s,"m ago");let r=Math.floor(s/60);if(r<24)return"".concat(r,"h ago");let t=Math.floor(r/24);return t<30?"".concat(t,"d ago"):"".concat(Math.floor(t/30),"mo ago")}(t.listedAt,i):function(e,a){if(!e)return"Ending soon";let l=Date.parse(e)-a;if(!Number.isFinite(l)||l<=0)return"Ended";let n=Math.floor(l/1e3),s=Math.floor(n/86400),r=Math.floor(n%86400/3600),t=Math.floor(n%3600/60);return s>0?"".concat(s,"d ").concat(r,"h"):r>0?"".concat(r,"h ").concat(t,"m"):"".concat(t,"m ").concat(String(n%60).padStart(2,"0"),"s")}(t.endsAt,i)}),"auction"===t.listingType&&(0,n.jsxs)("span",{className:"sniper-ends-bids",children:["\xb7 ",null!=(a=t.bidCount)?a:0," bid",1===t.bidCount?"":"s"]})]}),(0,n.jsxs)("div",{className:"sniper-listing-image",children:[t.imageUrl?(0,n.jsx)("img",{src:t.imageUrl,alt:"",loading:"lazy"}):(0,n.jsx)("span",{}),(0,n.jsx)("span",{className:"sniper-thumb-grade","aria-hidden":!0,
1children:(0,N.Jo)(t.conditionKey)})]}),(0,n.jsx)("div",{className:"sniper-card",children:(0,n.jsxs)("strong",{title:t.title,children:[t.cardLanguage?(0,n.jsx)(R,{code:t.cardLanguage}):null,t.title]})}),(0,n.jsxs)("div",{className:"sniper-grade",children:[(0,n.jsx)("span",{className:"cond-badge meta-badge",children:(0,N.Jo)(t.conditionKey)}),t.cardLanguage?(0,n.jsx)("span",{className:"cond-badge meta-badge",title:"".concat(t.cardLanguage," printing"),children:t.cardLanguage}):null]}),(0,n.jsx)("div",{className:"sniper-value",children:(0,n.jsx)("strong",{children:null!=(l=o(t.marketValue))?l:"â"})}),(0,n.jsxs)("div",{className:"sniper-price",children:[(0,n.jsx)("strong",{children:null!=(s=o(t.priceUsd))?s:"".concat(t.currency," ").concat(t.price)}),"auction"===t.listingType&&(0,n.jsxs)("span",{children:[null!=(r=t.bidCount)?r:0," bid",1===t.bidCount?"":"s"]})]}),(0,n.jsx)("div",{className:"sniper-pct ".concat(h),children:(0,n.jsx)("strong",{children:null!=u?u:"â"})})]})}function D(e){let{active:a}=e,{isPaid:l,requirePro:s}=(0,P.A)(),{currency:r,formatPrice:i}=(0,h.H)(),[u,m]=(0,t.useState)("auction"),[p,g]=(0,t.useState)(()=>"CAD"===r?"EBAY_CA":"GBP"===r?"EBAY_GB":"AUD"===r?"EBAY_AU":"EUR"===r?"EBAY_FR":"EBAY_US"),[f,k]=(0,t.useState)(""),[b,v]=(0,t.useState)(w),[j,N]=(0,t.useState)(!1),[C,S]=(0,t.useState)(()=>E("auction")),_=function(e){let[a,l]=(0,t.useState)(Date.now());return(0,t.useEffect)(()=>{if(!e)return;let a=window.setInterval(()=>l(Date.now()),1e3);return()=>window.clearInterval(a)},[e]),a}(a),I=function(e){var a,l,n,s;let{enabled:r,listingType:i,marketplace:c,query:o,filters:d}=e,u=(0,x.jG)(),[m,p]=(0,t.useState)(A),[h,g]=(0,t.useState)(!1),[f,k]=(0,t.useState)(!1),[b,v]=(0,t.useState)(!1),j=(0,t.useRef)(1),[N,C]=(0,t.useState)({}),S=(0,t.useRef)(new Map),w=(0,t.useRef)(0),M="".concat(d.grader,":").concat(null!=(a=d.minGrade)?a:"",":").concat(null!=(l=d.minPrice)?l:"",":").concat(null!=(n=d.maxPrice)?n:"",":").concat(null!=(s=d.maxPctOfValue)?s:""),P=(0,t.useMemo)(()=>d,[M]),L=(0,t.useCallback)(async e=>{if(!r)return;let a=++w.current;"initial"===e&&g(!0),"refresh"===e&&k(!0),"more"===e&&v(!0);try{let e=await (0,y.$P)("/api/sniper",{game:u,listingType:i,marketplace:c,pages:j.current,query:o.trim(),...P});if(e&&a===w.current){let a=Date.now(),l={},n=new Map;for(let s of e.listings){let e=S.current.get(s.externalId);null!=e&&s.price>e&&(l[s.externalId]=a),n.set(s.externalId,s.price)}S.current=n,Object.keys(l).length>0&&C(e=>({...e,...l})),p(e)}}catch(e){}finally{g(!1),k(!1),v(!1)}},[r,u,i,c,o,P]);(0,t.useEffect)(()=>{if(!r)return;S.current=new Map,j.current=1,L("initial");let e=window.setInterval(()=>{"visible"===document.visibilityState&&L("poll")},1e4);return()=>window.clearInterval(e)},[r,L]);let E=(0,t.useCallback)(()=>{!m.hasMore||h||b||(j.current+=1,L("more"))},[m.hasMore,h,b,L]);return{...m,loading:h,refreshing:f,loadingMore:b,bumpedAt:N,refresh:()=>L("refresh"),loadMore:E}}({enabled:a,listingType:u,marketplace:p,query:f,filters:b}),R=["all"!==b.grader,null!=b.minGrade,null!=b.minPrice,null!=b.maxPrice,null!=b.maxPctOfValue].filter(Boolean).length,D="fixed"===u,K=(0,t.useMemo)(()=>(function(e,a){let l="asc"===a.dir?1:-1;return[...e].sort((e,n)=>{let s=G(e,a.key),r=G(n,a.key);return null==s&&null==r?0:null==s?1:null==r?-1:"string"==typeof s&&"string"==typeof r?s.localeCompare(r)*l:(Number(s)-Number(r))*l})})(I.listings,C),[I.listings,C]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"sniper-controls",children:[(0,n.jsx)(c.m,{value:u,options:[{value:"auction",label:"Auctions"},{value:"fixed",label:"Buy Now"}],onChange:e=>{m(e),S(E(e))},ariaLabel:"Listing type"}),(0,n.jsxs)("label",{className:"sniper-search".concat(l?"":" is-locked"),children:[(0,n.jsx)(o.WI,{size:16}),(0,n.jsx)("input",{value:f,readOnly:!l,onFocus:()=>{l||s("Search live eBay listings with Pro")},onChange:e=>k(e.target.value),placeholder:"Search ".concat(D?"listings":"auctions").concat(l?"":" (Pro)"),"aria-label":"Search live eBay listings"}),f&&(0,n.jsx)("button",{type:"button",className:"sniper-search-clear",onClick:()=>k(""),"aria-label":"Clear search",children:"\xd7"})]}),(0,n.jsxs)("div",{className:"sniper-filter-wrap",children:[(0,n.jsxs)("button",{type:"button",className:"dd-btn rf-btn".concat(R?" is-active":""),"aria-expanded":j,onClick:()=>
1{if(!l)return void s("Live listing filters are a Pro feature");N(e=>!e)},children:[(0,n.jsx)(o.YG,{size:16}),(0,n.jsx)("span",{className:"rf-btn-label",children:"Filters"}),R>0&&(0,n.jsx)("span",{className:"sniper-filter-count",children:R})]}),j&&(0,n.jsx)(U,{filters:b,onChange:v,sort:C,onSortChange:S,marketplace:p,onMarketplaceChange:g,fixed:D,onClose:()=>N(!1)})]}),(0,n.jsxs)("div",{className:"sniper-controls-right",children:[(0,n.jsxs)("span",{className:"sniper-live",title:"Refreshed ".concat(I.refreshedAt||"just now"),children:[(0,n.jsx)("span",{className:"sniper-live-dot".concat(I.refreshing?" is-refreshing":"")}),"Live"]}),(0,n.jsx)(c.m,{value:p,options:M.map(e=>({value:e.id,label:e.label})),onChange:g,ariaLabel:"eBay country",align:"right"})]})]}),(0,n.jsxs)("div",{className:"sniper-table",children:[(0,n.jsx)("div",{className:"sniper-head",children:L.map(e=>{let a=C.key===e.key;return(0,n.jsxs)("button",{type:"button",className:"sniper-sort".concat(a?" is-active":"").concat("card"===e.key?" sniper-head-card":""),"aria-label":"Sort by ".concat(e.label(D)).concat(a?", ".concat("asc"===C.dir?"ascending":"descending"):""),"aria-pressed":a,onClick:()=>{var a;return a=e.key,void S(e=>e.key===a?{key:a,dir:"asc"===e.dir?"desc":"asc"}:"time"===a?{key:a,dir:D?"desc":"asc"}:"card"===a||"pct"===a?{key:a,dir:"asc"}:{key:a,dir:"desc"})},children:[e.label(D),(0,n.jsx)("span",{className:"sniper-sort-arrow","aria-hidden":!0,children:a?"asc"===C.dir?"â":"â":"â"})]},e.key)})}),I.loading&&0===I.listings.length?Array.from({length:8}).map((e,a)=>(0,n.jsx)(B,{},a)):0===I.listings.length?(0,n.jsx)("div",{className:"dash-empty",children:"No confidently matched eBay listings found for this catalog and country yet."}):K.map(e=>(0,n.jsx)(F,{listing:e,now:_,bumpedAt:I.bumpedAt[e.externalId],formatPrice:i},e.externalId)),I.loadingMore&&Array.from({length:3}).map((e,a)=>(0,n.jsx)(B,{},"more-".concat(a))),I.hasMore&&!I.loading&&(0,n.jsx)(T,{onVisible:I.loadMore,disabled:I.loadingMore}),!l&&I.listings.length>0&&(0,n.jsx)(d.$,{title:"See every live opportunity",subtitle:"Unlock the full feed, search, filters and every ending-soon listing.",reason:"Unlock the full Sniper feed",teasers:Array.from({length:3}).map((e,a)=>(0,n.jsx)(B,{},a))})]})]})}var K=l(85212),O=l(75704),V=l(49350);let z="watchlist",Y="sniper",W=[{key:z,label:"Watchlist"},{key:"most_valuable",label:"Highest Sales"},{key:Y,label:"Deal Sniper"},{key:"market_cap",label:"Market Cap"},{key:"top_gainers",label:"Trending Up"},{key:"top_losers",label:"Trending Down"},{key:"most_sold",label:"Most Sold"},{key:"lowest_pop",label:"Lowest Pop"},{key:"last_sales",label:"Last Sales"}],J=[10,50,100],H={"1W":"This Week","1M":"This Month","3M":"3 Months","6M":"6 Months","12M":"12 Months",ALL:"All Time"},$=[{value:"PSA 10",label:"PSA 10"},{value:"PSA 9",label:"PSA 9"},{value:"PSA 8",label:"PSA 8"},{value:"PSA 7",label:"PSA 7"},{value:"BGS 10",label:"BGS 10"},{value:"BGS 9.5",label:"BGS 9.5"},{value:"BGS 9",label:"BGS 9"},{value:N.TN,label:"CGC Pristine 10"},{value:"CGC 10",label:"CGC 10"},{value:"CGC 9.5",label:"CGC 9.5"},{value:"CGC 9",label:"CGC 9"},{value:"SGC 10",label:"SGC 10"},{value:"SGC 9",label:"SGC 9"}],X=[{value:V.Pi,label:"All conditions"},{value:"RAW NM",label:"Raw \xb7 Near Mint"},{value:"RAW LP",label:"Raw \xb7 Lightly Played"},{value:"RAW MP",label:"Raw \xb7 Moderately Played"},...$],Z=new Set(["top_gainers","top_losers","fastest_risers","lowest_pop","market_cap"]),q=new Set(["most_valuable","lowest_pop","market_cap"]),Q=$.filter(e=>e.value.startsWith("PSA ")||e.value.startsWith("CGC ")),ee=new Set(Q.map(e=>e.value));function ea(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase())}function el(){var e,a,l,s,r;let{isPaid:i,requirePro:d}=(0,P.A)(),{formatPrice:u}=(0,h.H)(),[p,f]=(0,t.useState)("most_valuable"),[k,v]=(0,t.useState)("1M"),[j,N]=(0,t.useState)(10),[y,C]=(0,t.useState)(V.Pi),[S,w]=(0,t.useState)(null),[M,A]=(0,t.useState)(m.n4),L=p===z,E=p===Y,G="last_sales"===p,_="lowest_pop"===p,U="market_cap"===p,B=Z.has(p)?"market":"sale",T=p===z||p===Y?"most_valuable":p,I=L&&!i,{cards:R,loading:F}=(0,O.Ff)(L&&i),K=(0,x.jG)(),q="PSA 10",ea=(0,t.useRef)(K);(0,t.useEffect)(()=>{ea.current!==K&&(ea.current=K,(_||U)&&C(q))},[K,_,U,q]);let el=(0,t.useRef)(null);(0,t.useEffect)(()=>{let e=el.current;if(!e)return;let a=e.parentElement;if(!a)return;let l=()=>a.style.setProperty("--dash-tabs-h","".concat(Math.round(e.getBoundingClientRect().height),"px"));l();let n=new ResizeObserver(l);return n.observe(e),()=>n.disconnect()},[]);let{data:ec,loading:eo}=(0,V.zW)(T,k,y,i||G?j:j+er,{stats:!0,filters:M}),{cards:em,sales:ep}=ec,eh=L?F:eo,ex=g(M,B),eg=(0,t.useMemo)(()=>em.filter(e=>!e.enriched).map(e=>({cardId:e.cardId,conditionKey:e.conditionKey})),[em]),ef=(0,V.bI)(eg,(0,V.U8)(k).days),ek=(0,V.Iv)(eg),eb=(0,t.useMemo)(()=>
1{if(!L)return[];let e=R;y!==V.Pi&&(e=e.filter(e=>e.conditionKey===y));let{marketMin:a,marketMax:l}=M;null!=a&&(e=e.filter(e=>{var l;return(null!=(l=e.market)?l:0)>=a})),null!=l&&(e=e.filter(e=>{var a;return(null!=(a=e.market)?a:0)<=l}));let n=(0,m.CE)(M.rarities);if(n){let a=new Set(n);e=e.filter(e=>null!=e.rarity&&a.has(e.rarity))}return e},[L,R,y,M]),ev=(0,t.useMemo)(()=>L?eb:"most_valuable"===p?[...em].sort((e,a)=>{var l,n;return(null!=(l=a.market)?l:0)-(null!=(n=e.market)?n:0)}):"most_sold"!==p?em:em.some(e=>null!=e.salesCount&&e.salesCount>0)?[...em].sort((e,a)=>{var l,n;return(null!=(l=a.salesCount)?l:0)-(null!=(n=e.salesCount)?n:0)}):em,[em,p,L,eb]),ej=e=>{if(10!==e&&!i)return void d("Top ".concat(e," rankings are a Pro feature"));N(e)},eN=e=>{if("1W"!==e&&"1M"!==e&&!i)return void d("Longer timeframes are a Pro feature");v(e)};return(0,n.jsxs)("div",{className:"dash",children:[(0,n.jsxs)("section",{className:"stat-cards",children:[(0,n.jsx)(es,{label:"Total Market Value (All)",value:null!=(e=u(ec.marketTotal))?e:"â"}),(0,n.jsx)(es,{label:"Total Market Value (Top 100)",value:null!=(a=u(ec.top100Total))?a:"â"}),(0,n.jsx)(es,{label:"7d Change",value:null!=(l=(0,V.R8)(ec.marketChange7d))?l:"â",tone:null==ec.marketChange7d?void 0:ec.marketChange7d>=0?"up":"down"}),(0,n.jsx)(es,{label:"30d Change",value:null!=(s=(0,V.R8)(ec.marketChange30d))?s:"â",tone:null==ec.marketChange30d?void 0:ec.marketChange30d>=0?"up":"down"}),(0,n.jsx)(es,{label:"Trending Set",value:null!=(r=ec.trendingSet)?r:"â",isText:!0,desktopOnly:!0})]}),(0,n.jsxs)("section",{className:"dash-panel",children:[(0,n.jsx)("div",{className:"dash-tabs",role:"tablist",ref:el,children:W.map(e=>{let{key:a,label:l}=e;return(0,n.jsx)("button",{type:"button",role:"tab","aria-selected":p===a,className:"dash-tab".concat(p===a?" is-active":""),onClick:()=>{"lowest_pop"===a?ee.has(y)||(w(y),C(q)):"market_cap"===a?y!==q&&(w(e=>null!=e?e:y),C(q)):null!=S&&(C(S),w(null)),f(a)},children:l},a)})}),!E&&(0,n.jsxs)("div",{className:"dash-controls".concat(I?" is-hidden":""),children:[(0,n.jsx)(c.m,{value:j,options:J.map(e=>({value:e,label:"Top ".concat(e),locked:10!==e&&!i})),onChange:ej,onLockedSelect:ej,prefix:"Rank",ariaLabel:"Ranking size"}),(0,n.jsxs)("div",{className:"dash-controls-right",children:[(0,n.jsx)(c.m,{value:k,options:en.map(e=>({value:e,label:H[e],locked:"1W"!==e&&"1M"!==e&&!i})),onChange:eN,onLockedSelect:eN,icon:(0,n.jsx)(o.CT,{size:15}),ariaLabel:"Ranking period",align:"right"}),(0,n.jsx)(b,{filters:M,onChange:A,priceScope:B,condition:y,conditionOptions:_?Q:U?$.filter(e=>e.value===q):X,onConditionChange:C,anyCondition:_||U?q:V.Pi,locked:!i,onLocked:()=>d("Price and rarity filters are a Pro feature")})]})]}),E?(0,n.jsx)(D,{active:!0}):G?(0,n.jsx)(eu,{sales:ep,loading:eh,filterCount:ex}):(0,n.jsx)(ed,{cards:I?[]:i?ev:ev.slice(0,j),teaserCards:I?em:i?[]:ev.slice(j),loading:eh,period:k,salesStats:ef,populations:ek,tab:T,emptyMessage:L?"You're not tracking any cards yet. Hit Track on any card's page to follow its every move here.":void 0,wall:I?ei:!i&&ev.length>0?et:null,filterCount:ex})]})]})}let en=["1W","1M","3M","6M","12M","ALL"];function es(e){let{label:a,value:l,hint:s,tone:r,isText:t,desktopOnly:i}=e;return(0,n.jsxs)("div",{className:"stat-card".concat(i?" is-desktop-only":""),children:[(0,n.jsx)("span",{className:"stat-label",children:a}),(0,n.jsx)("span",{className:"stat-value".concat(t?" stat-value-text":"").concat(r?" is-".concat(r):""),children:l}),s&&(0,n.jsx)("span",{className:"stat-hint",children:s})]})}let er=3,et={title:"See the full rankings",subtitle:"Unlock the top 100 cards, every timeframe, and every grade.",reason:"Unlock the full rankings"},ei={title:"See every move your cards make",subtitle:"Live prices, price trends and price alerts on every card you track.",reason:"Unlock your watchlist"};function ec(e){var a,l,s,t,c,o,d,m,p,x;let{card:g,rank:f,period:k,tab:b,stat:v,pop:N,teaser:y=!1}=e,{formatPrice:C,currency:S,rates:w}=(0,h.H)(),M="market_cap"===b,A=(0,V.yJ)(g,k),P=(0,V.R8)(A),L=q.has(b),E=null!=(a=g.population)?a:N,G=null!=(l=g.marketCap)?l:null!=g.market&&null!=E?g.market*E:null,_=M?null!=G?G:g.market:L?null!=(t=null!=(s=g.market)?s:g.lastSalePrice)?t:null==v?void 0:v.lastPrice:null!=(o=null!=(c=g.lastSalePrice)?c:null==v?void 0:v.lastPrice)?o:g.market,U=null!=(m=null!=(d=g.salesCount)?d:null==v?void 0:v.salesCount)?m:null,B=L?g.variant||(null==v?void 0:v.lastVariant)||"":g.lastVariant||(null==v?void 0:v.lastVariant)||g.variant||"",T=function(e){if(e.priceSeries&&e.priceSeries.length>=2)return e.priceSeries;let a=e=>null==e?null:100/(1+e/100),l=[a(e.pctChange180d),a(e.pctChange90d),a(e.pctChange30d),a(e.pctChange7d)].filter(e=>null!=e&&Number.isFinite(e));return l.length<2&&e.trendSeries?e.trendSeries:[...l,100]}
1(g),I=(M?[null!=E?"Pop ".concat(E.toLocaleString("en-US")):null,C(g.market)]:[null!=E?"Pop ".concat(E.toLocaleString("en-US")):null,U?"".concat(U.toLocaleString("en-US")," sale").concat(1===U?"":"s"):null]).filter(Boolean).join(" \xb7 "),R=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"rank-col-num",children:f}),(0,n.jsxs)("span",{className:"rank-col-card",children:[g.imageUrl?(0,n.jsx)("img",{className:"rank-thumb",src:g.imageUrl,alt:"",loading:"lazy"}):(0,n.jsx)("span",{className:"rank-thumb rank-thumb-empty"}),(0,n.jsxs)("span",{className:"rank-card-text",children:[g.setName&&(0,n.jsx)("span",{className:"rank-set",children:g.setName}),(0,n.jsxs)("span",{className:"rank-name",children:[g.name,g.number?" #".concat(g.number):""]}),B&&(0,n.jsx)("span",{className:"rank-variant",children:ea(B)}),(0,n.jsxs)("span",{className:"rank-card-badges",children:[B&&(0,n.jsx)("span",{className:"cond-badge meta-badge",children:ea(B)}),(0,n.jsx)(i.J,{conditionKey:g.conditionKey})]})]})]}),(0,n.jsx)("span",{className:"rank-col-cond",children:(0,n.jsx)(i.J,{conditionKey:g.conditionKey})}),(0,n.jsx)("span",{className:"rank-col-price",children:null!=(p=M?function(e,a,l){if(null==e||!Number.isFinite(e))return null;let n=(0,u.CY)(e,a,l),s=(0,u.S1)(a);return n>=1e9?"".concat(s).concat((n/1e9).toFixed(n>=1e10?0:1),"B"):n>=1e6?"".concat(s).concat((n/1e6).toFixed(n>=1e7?0:1),"M"):n>=1e5?"".concat(s).concat(Math.round(n/1e3),"K"):(0,u.ec)(e,a,l)}(_,S,w):C(_))?p:"â"}),(0,n.jsx)("span",{className:"rank-col-pct",style:{color:null==P?void 0:"0%"===P?"var(--text-secondary)":null!=A&&A>0?"#1F9E5B":"#E5484D"},children:null!=P?P:"â"}),(0,n.jsx)("span",{className:"rank-col-sales",children:M?null!=(x=C(g.market))?x:"â":null!=U?U.toLocaleString("en-US"):"â"}),(0,n.jsx)("span",{className:"rank-col-pop",children:null!=E?E.toLocaleString("en-US"):"â"}),I&&(0,n.jsx)("span",{className:"rank-col-meta",children:I}),(0,n.jsx)("span",{className:"rank-col-spark",children:(0,n.jsx)(j,{values:T})})]});if(y)return(0,n.jsx)("div",{className:"rank-row",children:R});let F="".concat((0,K.K)(g),"?condition=").concat(encodeURIComponent(g.conditionKey))+"&variant=".concat(encodeURIComponent(B));return(0,n.jsx)(r(),{href:F,className:"rank-row",children:R})}function eo(){return(0,n.jsxs)("div",{className:"rank-row rank-row-skeleton","aria-hidden":"true",children:[(0,n.jsx)("span",{className:"rank-col-num",children:(0,n.jsx)("span",{className:"skel skel-num"})}),(0,n.jsxs)("span",{className:"rank-col-card",children:[(0,n.jsx)("span",{className:"rank-thumb skel"}),(0,n.jsxs)("span",{className:"rank-card-text",children:[(0,n.jsx)("span",{className:"skel skel-line skel-w-35"}),(0,n.jsx)("span",{className:"skel skel-line skel-w-60"})]})]}),(0,n.jsx)("span",{className:"rank-col-cond",children:(0,n.jsx)("span",{className:"skel skel-badge"})}),(0,n.jsx)("span",{className:"rank-col-price",children:(0,n.jsx)("span",{className:"skel skel-line skel-w-full"})}),(0,n.jsx)("span",{className:"rank-col-pct",children:(0,n.jsx)("span",{className:"skel skel-line skel-w-full"})}),(0,n.jsx)("span",{className:"rank-col-sales",children:(0,n.jsx)("span",{className:"skel skel-line skel-w-full"})}),(0,n.jsx)("span",{className:"rank-col-pop",children:(0,n.jsx)("span",{className:"skel skel-line skel-w-full"})}),(0,n.jsx)("span",{className:"rank-col-spark",children:(0,n.jsx)("span",{className:"skel skel-spark"})})]})}function ed(e){let{cards:a,teaserCards:l,loading:s,period:r,salesStats:t,populations:i,tab:c,wall:o,emptyMessage:u,filterCount:m}=e,p="market_cap"===c,h=(0,n.jsxs)("div",{className:"rank-head",children:[(0,n.jsx)("span",{className:"rank-col-num",children:"#"}),(0,n.jsx)("span",{className:"rank-col-card",children:"Card"}),(0,n.jsx)("span",{className:"rank-col-cond",children:"Condition"}),(0,n.jsx)("span",{className:"rank-col-price",children:p?"Market Cap":"Price"}),(0,n.jsxs)("span",{className:"rank-col-pct",children:[r," %"]}),(0,n.jsx)("span",{className:"rank-col-sales",children:p?"PSA 10 Price":"Sales"}),(0,n.jsx)("span",{className:"rank-col-pop",children:"Population"}),(0,n.jsx)("span",{className:"rank-col-meta",children:p?"Market Cap \xb7 % Change":"Last Sold \xb7 % Change"}),(0,n.jsx)("span",{className:"rank-col-spark",children:"Trend"})]});if(s)return(0,n.jsxs)("div",{className:"rank-table","aria-busy":"true",children:[h,Array.from({length:10}).map((e,a)=>(0,n.jsx)(eo,{},a))]});if(0===a.length&&!o)return(0,n.jsx)("div",{className:"dash-empty",children:null!=u?u:"market_cap"===c?m>0?"No PSA 10 cards match these filters. Try widening the value range.":"No PSA 10 market caps to rank yet â a cap needs both a PSA 10 price and a PSA 10 population report. Check back once the catalog import has run.":"lowest_pop"===c?m>0?"No graded cards match these filters. Try widening the value range or picking another grade.":"No population report for this grade yet â PSA 10 has the deepest coverage. Cards too cheap to be worth grading are left off either way, since a thin population there means nobody tried rather than that few exist.":m>0?"No cards match these filters in this window. Try widening the price range, lowering the sales minimum, or a longer timeframe.":"No recorded market data in this window yet. Try a longer timeframe or another condition."});return(0,n.jsxs)("div",{className:"rank-table",children:[h,a.map((e,a)=>(0,n.jsx)(ec,{card:e,rank:a+1,period:r,tab:c,stat:t[e.cardId],pop:i[e.cardId]},"".concat(e.cardId,"-").concat(e.conditionKey))),o&&(0,n.jsx)(d.$,{title:o.title,subtitle:o.subtitle,reason:o.reason,teasers:l.length>0?l.slice(0,er).map((e,l)=>(0,n.jsx)(ec,{card:e,rank:a.length+l+1,period:r,tab:c,stat:t[e.cardId],pop:i[e.cardId],teaser:!0},"".concat(e.cardId,"-").concat(e.conditionKey))):Array.from({length:er}).map((e,a)=>(0,n.jsx)(eo,{},a))})]})}function eu(e){let{sales:a,loading:l,filterCount:s}=e,{formatPrice:t}=(0,h.H)();if(l&&0===a.length)return(0,n.jsx)("div",{className:"dash-loader",children:"Loading recent salesâ¦"});if(0===a.length)return(0,n.jsx)("div",{className:"dash-empty",children:s>0?"No sales match these filters in this window. Try widening the price range or a longer timeframe.":"No recent sales in this window yet."});let c=e=>e?e.charAt(0).toUpperCase()+e.slice(1):"â";return(0,n.jsxs)("div",{className:"rank-table",children:[(0,n.jsxs)("div",{className:"rank-head",children:[(0,n.jsx)("span",{className:"rank-col-num",children:"#"}),(0,n.jsx)("span",{className:"rank-col-card",children:"Card"}),(0,n.jsx)("span",{className:"rank-col-cond",children:"Condition"}),(0,n.jsx)("span",{className:"rank-col-price",children:"Sold"}),(0,n.jsx)("span",{className:"rank-col-pct",children:"Date"}),(0,n.jsx)("span",{className:"rank-col-sales",children:"Source"}),(0,n.jsx)("span",{className:"rank-col-meta",children:"Sold \xb7 Date"}),(0,n.jsx)("span",{className:"rank-col-spark"})]}),a.map((e,a)=>{var l,s;return(0,n.jsxs)(r(),{href:"".concat((0,K.K)(e),"?variant=").concat(encodeURIComponent(null!=(l=e.variant)?l:"")),className:"rank-row",children:[(0,n.jsx)("span",{className:"rank-col-num",children:a+1}),(0,n.jsxs)("span",{className:"rank-col-card",children:[e.imageUrl?(0,n.jsx)("img",{className:"rank-thumb",src:e.imageUrl,alt:"",loading:"lazy"}):(0,n.jsx)("span",{className:"rank-thumb rank-thumb-empty"}),(0,n.jsxs)("span",{className:"rank-card-text",children:[e.setName&&(0,n.jsx)("span",{className:"rank-set",children:e.setName}),(0,n.jsxs)("span",{className:"rank-name",children:[e.name,e.number?" #".concat(e.number):""]})]})]}),(0,n.jsx)("span",{className:"rank-col-cond",children:(0,n.jsx)(i.J,{conditionKey:e.conditionKey})}),(0,n.jsx)("span",{className:"rank-col-price",children:null!=(s=t(e.price))?s:"â"}),(0,n.jsx)("span",{className:"rank-col-pct rank-col-muted",children:(e=>{if(!e)return"â";let a=new Date(e);return Number.isNaN(a.getTime())?e:a.toLocaleDateString("en-US",{month:"short",day:"numeric",timeZone:"UTC"})})(e.soldAt)}),(0,n.jsx)("span",{className:"rank-col-sales rank-col-muted",children:c(e.source)}),(0,n.jsx)("span",{className:"rank-col-meta",children:c(e.source)}),(0,n.jsx)("span",{className:"rank-col-spark"})]},e.saleId)})]})}}}]);
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.