PageSourceSearch

https://cdn.archidekt.com/_next/static/chunks/pages/collection/v2/data/[userId]-77da127b907ff4f5.js

js archidekt.com collected 2026-09-25 18:51:45 UTC 21,566 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4603],{11792:(e,a,t)=>{"use strict";t.d(a,{L:()=>u,b:()=>_});var r=t(75038),l=t(12134),c=t(47634),o=t(84806),s=t(89808),i=t(49150),n=t.n(i),d=t(61849);let u=(e,a)=>{let t=[];"color"===a&&(t=p(e)),"types"===a&&(t=h(e,"types",a)),"subtypes"===a&&(t=h(e,"subTypes",a)),"categories"===a&&(t=h(e,"categories",a)),"rarity"===a&&(t=h(e,"rarity",a)),"power"===a&&(t=h(e,"power",a)),"toughness"===a&&(t=h(e,"toughness",a)),"loyalty"===a&&(t=h(e,"loyalty",a)),"permanentVSpell"===a&&(t=m(e));let r=0;for(let e of t){let{data:a}=(0,c.$)(e.cards),t=a.reduce((e,{count:a})=>a>e?a:e,0);t>r&&(r=t)}return{groupedData:t,relativeMax:r}},_={White:(0,r.jsxs)("label",{className:n().chartLabel,children:[(0,r.jsx)(l.Ay,{symbol:"W"})," White Spells"]}),Blue:(0,r.jsxs)("label",{className:n().chartLabel,children:[(0,r.jsx)(l.Ay,{symbol:"U"})," Blue Spells"]}),Black:(0,r.jsxs)("label",{className:n().chartLabel,children:[(0,r.jsx)(l.Ay,{symbol:"B"})," Black Spells"]}),Red:(0,r.jsxs)("label",{className:n().chartLabel,children:[(0,r.jsx)(l.Ay,{symbol:"R"})," Red Spells"]}),Green:(0,r.jsxs)("label",{className:n().chartLabel,children:[(0,r.jsx)(l.Ay,{symbol:"G"})," Green Spells"]}),Colorless:(0,r.jsxs)("label",{className:n().chartLabel,children:[(0,r.jsx)(l.Ay,{symbol:"C"})," Colorless Spells"]}),Multicolor:(0,r.jsxs)("label",{className:n().chartLabel,children:[(0,r.jsx)(d.A,{icon:"multicolor"})," Multicolor Spells"]})},p=e=>[{key:s._0.White,cards:e.filter(e=>e.colors.includes("White")),className:n().white,label:_.White},{key:s._0.Blue,cards:e.filter(e=>e.colors.includes("Blue")),className:n().blue,label:_.Blue},{key:s._0.Black,cards:e.filter(e=>e.colors.includes("Black")),className:n().black,label:_.Black},{key:s._0.Red,cards:e.filter(e=>e.colors.includes("Red")),className:n().red,label:_.Red},{key:s._0.Green,cards:e.filter(e=>e.colors.includes("Green")),className:n().green,label:_.Green},{key:"C",cards:e.filter(e=>!e.colors.length),className:n().colorless,label:_.Colorless}],m=e=>{let a={Artifact:!0,Battle:!0,Creature:!0,Enchantment:!0,Land:!0,Planeswalker:!0},t=[{key:"permanent",cards:[],label:"Permanent"},{key:"spell",cards:[],label:"Non-permanent"}];for(let r of e)t[+!(r.front||r.back?(r.flippedDefault?r.back?.types:r.front?.types)||[]:r.types).some(e=>a[e])].cards.push(r);return t},h=(e,a,t)=>{let l={};for(let t of e){let e=t[a];for(let a of(Array.isArray(e)||(e=[e]),e)){if(null==a||""===a)continue;let e=`${a}`;l[e]||(l[e]=[]),l[e].push(t)}}return Object.entries(l).map(([e,a])=>{var l,c;return{key:e,cards:a,label:(0,r.jsx)("label",{className:n().chartLabel,children:(l=e,"rarity"===(c=t)?y(l):"power"===c?`Power: ${l}`:"toughness"===c?`Toughness: ${l}`:"loyalty"===c?`Loyalty: ${l}`:l)})}}).sort((e,a)=>"rarity"===t?o.MZ[y(e.key)]-o.MZ[y(a.key)]:e.key.localeCompare(a.key))};function y(e){return e&&e[0].toUpperCase()+e.slice(1)}},19528:e=>{e.exports={bar:"progressLoadingBar_bar__7zUT7",progress:"progressLoadingBar_progress__hva9n",move:"progressLoadingBar_move__rRQ5z",text:"progressLoadingBar_text__x5VTd"}},30402:(e,a,t)=>{"use strict";t.d(a,{A:()=>n});var r=t(75038),l=t(76430),c=t(54569),o=t(92031),s=t.n(o);let i=100,n=({data:e,onGlobalBarClick:a,maxChartHeight:t=i,relativeMaximum:l,containerClassName:c="",className:o="",labelContainerClassName:n="",style:u,handleFormatCount:_})=>{let p=l||e.reduce((e,{count:a})=>a>e?a:e,0),m=e.map(({count:e})=>e/p);return(0,r.jsxs)("div",{className:`${s().container} ${c}`,style:u,children:[(0,r.jsx)("div",{className:`${s().chart} ${o}`,children:e.map((e,l)=>{let c=m[l];return(0,r.jsxs)("div",{className:s().barContainer,children:[!!e.count&&(0,r.jsx)("label",{className:s().totalCount,children:_?_(e.count):e.count}),(0,r.jsx)(d,{bar:e,onGlobalBarClick:a,maxChartHeight:t,relativeChartHeight:c},e.label)]},e.label)})}),(0,r.jsx)("div",{className:s().axis}),(0,r.jsx)("div",{className:`${s().key} ${n}`,children:e.map(({label:e},a)=>(0,r.jsx)("div",{className:s().barContainer,children:(0,r.jsx)("label",{children:e})},e))})]})}
1,d=({bar:e,onGlobalBarClick:a,maxChartHeight:t,relativeChartHeight:o})=>{let[i,n]=(0,l.useState)(!1),[d,u]=(0,l.useState)(!1),_=(0,l.useRef)(!1),p=(0,l.useRef)(null),m=(0,l.useRef)(null),h=(0,l.useCallback)(e=>{if(!m.current)return;let a=m.current.clientWidth,t=m.current.clientHeight,r=window.innerWidth||0,l=window.innerHeight||0,c=e.clientX,o=e.clientY;if(0===c&&0===o)return;let s=e.clientX>r-a,i=e.clientY>l-t,n=`translate(${c+(s?-1*a-25:25)}px, ${(i?o-t-25:o)+25}px)`;m.current.style.display="unset",m.current.style.transform=n},[i]);return(0,l.useEffect)(()=>{if(!i)return()=>document.removeEventListener("mousemove",h);document.addEventListener("mousemove",h,!1)},[i]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{onMouseOver:e=>{_.current||i||(p.current=setTimeout(()=>{h(e.nativeEvent),u(!0)},250),n(!0))},onMouseLeave:()=>{u(!1),n(!1)},onTouchStart:()=>_.current=!0,onTouchEnd:()=>setTimeout(()=>_.current=!1,100),className:s().bar,onClick:t=>e.onBarClick?e.onBarClick(t,e.label):a?a(t,e.label):void 0,style:{height:`${t*o}px`,display:e.count>0?void 0:"none",backgroundColor:e.color||void 0}}),i&&c.createPortal((0,r.jsx)("div",{ref:m,className:s().tooltip,style:{opacity:d&&m?.current?.style?.transform?1:0},children:e.tooltip||e.count}),document.body)]})}},34043:e=>{e.exports={container:"numericDisplay_container__gOHU4",number:"numericDisplay_number__Ow1LU",label:"numericDisplay_label__dGw2r"}},43034:(e,a,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/collection/v2/data/[userId]",function(){return t(81901)}])},44687:e=>{e.exports={initialModal:"fetchDataModal_initialModal__3Tncc",getDataOperation:"fetchDataModal_getDataOperation__zal8j",openFileTrigger:"fetchDataModal_openFileTrigger__nT0of",header:"fetchDataModal_header__WyTmY"}},47634:(e,a,t)=>{"use strict";t.d(a,{$:()=>l});var r=t(37195);function l(e){let a=0,t=0,l=!0,c=[{label:"0",count:0},{label:"1",count:0},{label:"2",count:0},{label:"3",count:0},{label:"4",count:0},{label:"5",count:0},{label:"6",count:0},{label:"7",count:0},{label:"8+",count:0}];for(let o of e){let e=(0,r.w)(o),s=o.qty;if(o.types.includes("Land")&&!e)continue;l=!1;let i=e<8?e:8;c[i].count+=s,t+=e*s,a+=o.qty}return{data:c,avgCmc:t/a,totalManaValue:t,isEmptyChart:l}}},49150:e=>{e.exports={white:"selectCardsByChartType_white__yaL6L",blue:"selectCardsByChartType_blue__PQS69",black:"selectCardsByChartType_black__s1VrF",red:"selectCardsByChartType_red__LYEm4",green:"selectCardsByChartType_green__FstKJ",colorless:"selectCardsByChartType_colorless__rFm2_",chartLabel:"selectCardsByChartType_chartLabel__D7eEg"}},54456:e=>{e.exports={fileUpload:"openFile_fileUpload__kK8uO"}},65748:(e,a,t)=>{"use strict";t.d(a,{A:()=>o});var r=t(75038);t(76430);
1var l=t(19528),c=t.n(l);let o=({label:e,completionPercentage:a,className:t=""})=>(0,r.jsxs)("div",{className:`${c().bar} ${t}`,children:[(0,r.jsx)("div",{className:c().progress,style:{width:`${100*a}%`}}),(0,r.jsx)("span",{className:c().text,children:e})]})},81562:e=>{e.exports={container:"data_container__tSGvo",content:"data_content__VNEJQ",pageControls:"data_pageControls__dohDQ",overview:"data_overview__FZHVc",noData:"data_noData__JypM1",charts:"data_charts__LrU1_",groupManaCurve:"data_groupManaCurve__S46QJ",manaCurve:"data_manaCurve__J_vpv",section:"data_section__0L1Uf",row:"data_row__6li8u",growTable:"data_growTable__Aq2RF",priceBracketTable:"data_priceBracketTable__aoAAV",priceBracketRow:"data_priceBracketRow__YOKfh",rowHeaders:"data_rowHeaders__CtbNr",bold:"data_bold__zjBLy"}},81901:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>z});var r=t(75038),l=t(76430),c=t(189),o=t(98381),s=t(32071),i=t(82185),n=t(89808),d=t(54072),u=t.n(d);let _={0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,"8+":0},p={0:0,"0 - 0.50":0,"0.50 - 1.00":0,"1.00 - 5.00":0,"5.00 - 10.00":0,"10.00 - 20.00":0,"20.00 - 50.00":0,"50.00 - 100.00":0,"100.00+":0},m={"Card Kingdom":u()(p),TCGplayer:u()(p),Cardhoarder:u()(p),Cardmarket:u()(p),"Mana Pool":u()(p),"Star City Games":u()(p),Cardsphere:u()(p)},h=e=>e?e<.5?"0 - 0.50":e<1?"0.50 - 1.00":e<5?"1.00 - 5.00":e<10?"5.00 - 10.00":e<20?"10.00 - 20.00":e<50?"20.00 - 50.00":e<100?"50.00 - 100.00":"100.00+":"0";var y=t(40120),b=t(79761),g=t(98419),x=t(92910),C=t(30402),v=t(68835);function j(e){return`${(Number(e)||0).toFixed()}`.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}var f=t(34043),k=t.n(f);let w=({number:e,label:a})=>(0,r.jsxs)("span",{className:k().container,children:[(0,r.jsx)("span",{className:k().number,children:j(e)}),(0,r.jsx)("span",{className:k().label,children:a})]});var N=t(83018),P=t(85785),T=t(76975),B=t(65748),$=t(54456),q=t.n($);let O=({children:e="Open file",onFileOpen:a,accept:t,className:l=""})=>(0,r.jsxs)("label",{tabIndex:0,htmlFor:"file-upload",className:`${q().fileUpload} ${l}`,children:[e,(0,r.jsx)("input",{id:"file-upload",type:"file",onChange:a,accept:t})]});var A=t(7648),L=t(21159),S=t(36601),D=t(44687),M=t.n(D);let R={0:"quantity",1:"card__oracleCard__name",2:"modifier",3:"condition",4:"createdAt",5:"language",6:"purchasePrice",7:"tags",8:"card__edition__editionname",9:"card__edition__editioncode",10:"card__multiverseid",11:"card__uid",12:"card__oracle__uid",13:"card__mtgoNormalId",14:"card__collectorNumber",15:"card__color",16:"card__colorIdentity",17:"card__manaCost",18:"card__types",19:"card__subtypes",20:"card__supertypes",21:"card__rarity",22:"card__prices__ck",23:"card__prices__tcg",24:"card__prices__scg",25:"card__prices__mtgo",26:"card__prices__cm",27:"card__prices__mp",28:"card__prices__tcg_land",29:"card__cmc",30:"card__prices__cs"},U=Object.keys(R).reduce((e,a)=>({...e,[R[Number(a)]]:a}),{}),F=({open:e,onClose:a,onDataFound:t})=>{let c=(0,o.useRouter)(),[s,i]=(0,l.useState)(!1),[n,d]=(0,l.useState)(null),[u,_]=(0,l.useState)(0),[p,m]=(0,l.useState)(Number(c.query.gameType)||1),h=e=>{let r=N.parse(e),l=[];for(let e=0;e<r.length;e++){if(0===e)continue;let c=r[e];l.push({name:c[U.card__oracleCard__name],uid:c[U.card__uid],oracleUid:c[U.card__oracle__uid],quantity:Number(c[U.quantity])||0,finish:c[U.modifier],condition:c[U.condition],dateAdded:c[U.createdAt],language:c[U.language],purchasePrice:"null"!==c[U.purchasePrice]?Number(c[U.purchasePrice])||0:null,cmc:Number(c[U.card__cmc])||0,colors:c[U.card__color].split(","),identity:c[U.card__colorIdentity].split(","),manaCost:c[U.manaCost],types:c[U.card__types].split(","),subtypes:c[U.card__subtypes].split(","),supertypes:c[U.card__supertypes].split(","),rarity:c[U.card__rarity],ckPrice:Number(c[U.card__prices__ck])||0,tcgPrice:Number(c[U.card__prices__tcg])||0,mtgoPrice:Number(c[U.card__prices__mtgo])||0,cmPrice:Number(c[U.card__prices__cm])||0,scgPrice:Number(c[U.card__prices__scg])||0,mpPrice:Number(c[U.card__prices__mp])||0,tcgLandPrice:Number(c[U.card__prices__tcg_land])||0,csPrice:Number(c[U.card__prices__cs])||0}),t(l),a()}},y=(e,a=1)=>c.query.userId?S.A.post(`/api/collection/export/v2/${c.query.userId}/`,{fields:e,page:a,game:1,pageSize:2500}):Promise.reject("You are using an old client route for your export. Follow the link in the banner to export your collection."),b=async e=>{let a=Object.values(R),t="",r=1,l=!0;i(!0);try{for(;l;){let e=await y(a,r);d(Math.ceil(e.totalRows/2500)),_(r),t+=e.content,r++,l=e.moreContent}if(e){let e=document.createElement("a");e.href=`data:text/csv;charset=utf-8,${encodeURIComponent(t)}`,e.download=`archidekt-data-page-export-${new Date().toISOString().substring(0,10)}.csv`,e.click()}h(t)}catch(e){L.A.create(e,"Data fetching failed","error")}finally{l=!1,_(0),d(null),i(!1)}};return(0,r.jsxs)(T.A,{open:e,onClose:a,modalClassName:M().initialModal,closeButton:!0,children:[(0,r.jsxs)("div",{className:M().header,children:[(0,r.jsx)("h2",{children:"Collection data viewer"}),(0,r.jsx)(A.A,{header:"Collection type",value:p,options:Object.keys(P.y1).map(e=>({label:P.y1[e],onClick:()=>m(Number(e)),id:e}))})]}),(0,r.jsx)("p",{children:"Archidekt's collection data viewer allows you to view and run simple operations on your entire collection (think of it as opening your whole collection in a spreadsheet). Since loading your entire collection can take a good amount of time, we provide a few options on how to get and view that data."}),(0,r.jsx)(G,{title:"Download collection",description:"Download your collection as a CSV file that you can save for later. Once downloaded, you can open the exported file on this page to view the data. Using this method allows you to more quickly come back to this page (at the expense of the data being stale if changes are made).",children:(0,r.jsx)(v.A,{color:"green",onClick:()=>b(!0),children:"Download collection as CSV"})}),(0,r.jsx)(G,{title:"Open previously exported file",description:"Open an existing collection export. Using this operation will take almost no time, but assumes you already have exported your collection. NOTE: if you have a file, you are viewing the contents of that file, NOT your most up to date collection information.",children:(0,r.jsx)(O,{accept:".csv",onFileOpen:e=>{if(e.preventDefault(),!e.target.files)return L.A.create("Unable to open CSV file","Collection data page","error");let a=e.target.files[0];if(!a)return L.A.create("Unable to open CSV file","Collection data page","error");let t=new FileReader;t.onload=async e=>{let a=e.target?.result;h(`${a}`)},t.readAsText(a)},className:M().openFileTrigger,children:"Open existing collection export (CSV)"})}),(0,r.jsx)(G,{title:"Open collection now",description:"Exports your collection without saving it to a file. Using this operation will force you to have to reload all collection data the next time you come back to this page.",children:(0,r.jsx)(v.A,{color:"orange",onClick:()=>b(!1),children:"View collection data"})}),s&&(0,r.jsx)(B.A,{label:"Loading full collection",completionPercentage:u/(n||1)})]})},G=({title:e,description:a,children:t})=>(0,r.jsxs)("div",{className:M().getDataOperation,children:[(0,r.jsx)("h4",{children:e}),(0,r.jsx)("p",{children:a}),t]});var E=t(87551),H=t.n(E);let V=({columnHeaders:e,data:a,className:t=""})=>(0,r.jsxs)("div",{className:`${H().table} ${t}`,children:[(0,r.jsxs)("div",{className:H().row,children:[(0,r.jsx)("div",{children:e[0]}),(0,r.jsx)("div",{children:e[1]})]}),a.map(e=>(0,r.jsxs)("div",{className:H().row,children:[(0,r.jsx)("div",{children:e.label}),(0,r.jsx)("div",{children:e.value})]}))]});var W=t(11792),I=t(81562),Q=t.n(I);let z=()=>{let e=(0,o.useRouter)(),[a,t]=(0,l.useState)(!0),[c,i]=(0,l.useState)([]),d=(e=>{let[a,t]=(0,l.useState)({totalCollectionRecords:0,totalCards:0,totalUniquePrintings:0,totalUniqueCards:0,totalCkPrice:0,totalTcgPrice:0,totalMtgoPrice:0,totalCmPrice:0,totalScgPrice:0,totalMpPrice:0,totalTcgLandPrice:0,totalCsPrice:0,rarityData:[],colorData:[],typeData:[],manaCurvePerColor:{White:[],Blue:[],Black:[],Red:[],Green:[],Colorless:[],MultiColor:[]},manaCurvePerRarity:{},manaCurvePerType:{},priceBreakdownByQuantity:u()(m)});return(0,l.useEffect)(()=>{let a=0,r=0,l=0,c=0,o=0,s=0,i=0,d=0,p=0,y={common:0,uncommon:0,rare:0,mythic:0,special:0,bonus:0},b={White:0,Blue:0,Black:0,Red:0,Green:0,Colorless:0,Multicolor:0},g={},x={},C={},v={},j={common:{..._},uncommon:{..._},rare:{..._},mythic:{..._},special:{..._},bonus:{..._}},f={White:{..._},Blue:{..._},Black:{..._},Red:{..._},Green:{..._},Colorless:{..._},Multicolor:{..._}},k=u()(m);for(let t of e){a+=t.quantity,r+=t.ckPrice*t.quantity,l+=t.tcgPrice*t.quantity,c+=t.mtgoPrice*t.quantity,o+=t.cmPrice*t.quantity,s+=t.scgPrice*t.quantity,i+=t.mpPrice*t.quantity,d+=t.tcgLandPrice*t.quantity,p+=t.csPrice*t.quantity;let e=h(t.ckPrice),n=h(t.tcgPrice),u=h(t.cmPrice),m=h(t.mtgoPrice),w=h(t.mpPrice),N=h(t.scgPrice),P=h(t.csPrice);k["Card Kingdom"][e]+=t.quantity,k.TCGplayer[n]+=t.quantity,k.Cardmarket[u]+=t.quantity,k.Cardhoarder[m]+=t.quantity,k["Mana Pool"][w]+=t.quantity,k["Star City Games"][N]+=t.quantity,k.Cardsphere[P]+=t.quantity;let T=t.colors.length>1?"Multicolor":0===t.colors.length||""===t.colors[0]?"Colorless":t.colors[0],B=t.cmc>=8?"8+":`${t.cmc}`;for(let e of(t.types.includes("Land")||(f[T][B]+=t.quantity,j[t.rarity][B]+=t.quantity),y[t.rarity]||(y[t.rarity]=0),y[t.rarity]+=t.quantity,b[T]||(b[T]=0),b[T]+=t.quantity,g[t.uid]||(g[t.uid]=0),g[t.uid]+=t.quantity,x[t.oracleUid]||(x[t.oracleUid]=0),x[t.oracleUid]+=t.quantity,t.types))C[e]||(C[e]=0),C[e]+=t.quantity,"Land"!==e&&(v[e]||(v[e]={..._}),v[e][B]+=t.quantity)}let w=Object.keys(y).map(e=>({label:e,value:y[e],color:n.b2[e]})),N=Object.keys(b).map(e=>({label:e,value:b[e],color:n.wm[e]}
1)),P=Object.keys(C).map(e=>({label:e,value:C[e],color:n.pi[e]})),T=Object.keys(j).reduce((e,a)=>{let t=j[a];return e[a]=Object.keys(t).map(e=>({label:e,count:j[a][e],color:n.b2[a]})),e},{}),B=Object.keys(f).reduce((e,a)=>{let t=f[a];return e[a]=Object.keys(t).map(e=>({label:e,count:f[a][e],color:n.wm[a]})),e},{}),$=Object.keys(v).reduce((e,a)=>{let t=v[a];return e[a]=Object.keys(t).map(e=>({label:e,count:v[a][e],color:n.pi[a]})),e},{});t({totalCards:a,totalCollectionRecords:e.length,totalUniquePrintings:Object.keys(g).length,totalUniqueCards:Object.keys(x).length,totalCkPrice:r,totalTcgPrice:l,totalMtgoPrice:c,totalCmPrice:o,totalScgPrice:s,totalMpPrice:i,totalTcgLandPrice:d,totalCsPrice:p,rarityData:w,colorData:N,typeData:P,manaCurvePerRarity:T,manaCurvePerColor:B,manaCurvePerType:$,priceBreakdownByQuantity:k})},[e]),a})(c);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(b.A,{title:"Collection data crunching",className:Q().container,children:[(0,r.jsx)(g.A,{src:s.fz+"ema/d5b5d2a7-8185-4df0-a35a-f89c12857f87_art_crop.jpg",style:{height:150},artist:!0,title:(0,r.jsxs)("p",{children:[(0,r.jsx)(y.A,{name:"pie chart"})," Collection Data"]})}),(0,r.jsxs)("div",{className:Q().content,children:[(0,r.jsxs)("div",{className:Q().pageControls,children:[(0,r.jsx)(x.A,{href:`/collection/v2/${e.query.userId}`,children:(0,r.jsx)(v.A,{icon:"arrow left",children:"Back to collection"})}),(0,r.jsx)(v.A,{icon:"close",color:"red",onClick:()=>{i([]),t(!0)},children:"Clear data and restart"})]}),(0,r.jsxs)("div",{className:Q().overview,children:[(0,r.jsx)(w,{label:"Total cards",number:d.totalCards}),(0,r.jsx)(w,{label:"Total collection records",number:d.totalCollectionRecords}),(0,r.jsx)(w,{label:"Total unique printings",number:d.totalUniquePrintings}),(0,r.jsx)(w,{label:"Total unique cards",number:d.totalUniqueCards})]}),(0,r.jsx)(V,{columnHeaders:["Price source","Estimated value"],data:[{label:"Card Kingdom",value:`$${j(d.totalCkPrice)}`},{label:"TCG Player (market)",value:`$${j(d.totalTcgPrice)}`},{label:"Star City Games",value:`$${j(d.totalScgPrice)}`},{label:"Mana Pool",value:`$${j(d.totalMpPrice)}`},{label:"Cardsphere",value:`$${j(d.totalCsPrice)}`},{label:"Cardhoarder",value:`${j(d.totalMtgoPrice)} tix`},{label:"Cardmarket",value:`€${j(d.totalCmPrice)}`},{label:"TCG Land",value:`${j(d.totalTcgLandPrice)}$`}]}),(0,r.jsxs)("div",{className:Q().priceBracketTable,children:[(0,r.jsxs)("div",{className:`${Q().priceBracketRow} ${Q().bold}`,children:[(0,r.jsx)("div",{children:"Price - quantity"}),(0,r.jsx)("div",{children:"0"}),(0,r.jsx)("div",{children:"0 - 0.50"}),(0,r.jsx)("div",{children:"0.50 - 1.00"}),(0,r.jsx)("div",{children:"1.00 - 5.00"}),(0,r.jsx)("div",{children:"5.00 - 10.00"}),(0,r.jsx)("div",{children:"10.00 - 20.00"}),(0,r.jsx)("div",{children:"20.00 - 50.00"}),(0,r.jsx)("div",{children:"50.00 - 100.00"}),(0,r.jsx)("div",{children:"100.00+"})]}),Object.keys(d.priceBreakdownByQuantity).map(e=>(0,r.jsxs)("div",{className:Q().priceBracketRow,children:[(0,r.jsx)("div",{className:Q().rowHeaders,children:e}),Object.values(d.priceBreakdownByQuantity[e]).map((a,t)=>(0,r.jsx)("div",{children:a},`${e}-col-${t}`))]},`${e}-quantity-table`))]}),c.length?(0,r.jsxs)("div",{className:Q().charts,children:[(0,r.jsx)(Y,{title:"Rarity breakdown",tableHeaders:["Rarity","Total cards"],data:d.rarityData,distributedData:d.manaCurvePerRarity}),(0,r.jsx)(Y,{title:"Color breakdown",tableHeaders:["Colors","Total cards"],data:d.colorData,distributedData:d.manaCurvePerColor,barHeaderBuilder:e=>W.b[e]||"Unknown"}),(0,r.jsx)(Y,{title:"Type breakdown",tableHeaders:["Card types","Total cards"],data:d.typeData,distributedData:d.manaCurvePerType})]}):(0,r.jsx)("div",{className:Q().noData,children:"No collection data loaded"})]})]}),(0,r.jsx)(F,{open:a,onClose:()=>t(!1),onDataFound:i})]})},Y=({title:e,tableHeaders:a,data:t,distributedData:l,barHeaderBuilder:o})=>{let s=(0,i.GV)(e=>e.active.isMobile)?125:250;return(0,r.jsxs)("div",{className:Q().section,children:[(0,r.jsx)("h3",{children:e}),(0,r.jsxs)("div",{className:Q().row,children:[(0,r.jsx)(c.r,{skipAnimation:!0,series:[{data:t}],width:s,height:s,slotProps:{legend:{sx:{fontSize:16,fontWeight:"bold",color:"var(--color)",textTransform:"capitalize"}}}}),(0,r.jsx)(V,{columnHeaders:a,data:t,className:Q().growTable})]}),(0,r.jsx)("h4",{children:"Mana curve (spells only)"}),(0,r.jsx)("div",{className:Q().groupManaCurve,children:Object.keys(l).map(e=>(0,r.jsxs)("div",{className:Q().manaCurve,children:[o?o(e):e,(0,r.jsx)(C.A,{data:l[e]})]}))})]})}},87551:e=>{e.exports={table:"genericTwoColumnTable_table__9icxB",row:"genericTwoColumnTable_row__fQFgT"}},92031:e=>{e.exports={container:"barChart_container__ZdMUc",chart:"barChart_chart__
1CQt8F",key:"barChart_key__rYbc_",barContainer:"barChart_barContainer__j4Bw8",bar:"barChart_bar__9LjFs",totalCount:"barChart_totalCount__y3az0",axis:"barChart_axis__IYKuw",tooltip:"barChart_tooltip__DZ9D8"}}},e=>{e.O(0,[7516,189,3018,636,6593,8792],()=>e(e.s=43034)),_N_E=e.O()}]);
2//# sourceMappingURL=[userId]-77da127b907ff4f5.js.map

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.