1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6357],{9071:e=>{e.exports={otherEditions:"editionsList_otherEditions__n7JnX",editionOption:"editionsList_editionOption__r1kSl",previewImage:"editionsList_previewImage__yyVQe",editionInfo:"editionsList_editionInfo__i_p3q",text:"editionsList_text__3tavh",extra:"editionsList_extra__TKGAn",loader:"editionsList_loader__ykoN1"}},9133:(e,a,s)=>{"use strict";s.d(a,{Y:()=>t});let t={count:0,next:"",results:Array(15).fill(void 0)}},9616:(e,a,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/cards/[cardName]",function(){return s(91719)}])},10075:(e,a,s)=>{"use strict";s.d(a,{A:()=>o});var t=s(75038);s(76430);var r=s(40120),i=s(94545),d=s(31452),n=s(21923),c=s(37593),l=s.n(c);let o=({title:e,href:a,decks:s,secondary:r="View decks",loading:c,className:l,gridClassName:o,includeContestWinnerIcons:_,useDeckHelpLinks:x,noTags:p})=>s?.length?(0,t.jsxs)("div",{className:l,children:[a&&e&&(0,t.jsx)(d.A,{main:e,secondary:r,href:a}),!a&&e&&(0,t.jsx)(d.A,{main:e}),(0,t.jsx)("div",{className:o??i.Np,children:s.map((e,a)=>_?(0,t.jsx)(m,{deck:e,index:a,loading:c,noTags:p},a):x?(0,t.jsx)(n.A,{deck:e,loading:c,options:{hideDeckHelpExtras:!0,reduceAnimations:!0}},a):(0,t.jsx)(i.Ay,{deck:e,loading:c,noTags:p},a))})]}):null,_=[{color:"#fde39b",backgroundColor:"#daa30c"},{color:"#636262",backgroundColor:"#bebebe"},{color:"#fd9855",backgroundColor:"#996b4c"}],m=({deck:e,index:a,loading:s,noTags:d})=>(0,t.jsxs)("div",{className:l().container,children:[(0,t.jsx)(i.Ay,{deck:e,loading:s,noTags:d}),(0,t.jsx)("span",{className:l().trophy,style:{color:_[a].color,backgroundColor:_[a].backgroundColor},children:(0,t.jsx)(r.A,{name:"trophy"})})]})},15740:e=>{e.exports={container:"cardDetailsPage_container__I4Ipq",content:"cardDetailsPage_content__87e2s",details:"cardDetailsPage_details__i_uul",cardImageAndEditions:"cardDetailsPage_cardImageAndEditions__kW196",cardImage:"cardDetailsPage_cardImage__Fdl4O",flipButton:"cardDetailsPage_flipButton__6A_K2",detailsAndOptions:"cardDetailsPage_detailsAndOptions__3Auce",cardDetails:"cardDetailsPage_cardDetails__wkEfz",drawerTopper:"cardDetailsPage_drawerTopper__0JRyv",title:"cardDetailsPage_title__JHz2u",manaCost:"cardDetailsPage_manaCost__brlJS",cardInteractions:"cardDetailsPage_cardInteractions__kjfBi",secondaryBlock:"cardDetailsPage_secondaryBlock__eleKH",prices:"cardDetailsPage_prices__m0Owk",priceBlock:"cardDetailsPage_priceBlock__77dvw",oTags:"cardDetailsPage_oTags__V3jPz",deckLinks:"cardDetailsPage_deckLinks__Ptu94"}},31452:(e,a,s)=>{"use strict";s.d(a,{A:()=>c});var t=s(75038);s(76430);var r=s(40120),i=s(92910),d=s(97633),n=s.n(d);let c=({main:e,secondary:a,href:s,onClick:d})=>(0,t.jsxs)("div",{className:n().container,children:[(0,t.jsx)("h3",{id:e.replace(" ","_"),children:e}),s&&a&&(0,t.jsxs)(i.A,{href:s,children:[a," ",(0,t.jsx)(r.A,{name:"arrow right"})]}),d&&a&&(0,t.jsxs)("button",{onClick:d,children:[a," ",(0,t.jsx)(r.A,{name:"arrow right"})]}),!s&&!d&&a&&a]})},37593:e=>{e.exports={container:"deckGroup_container__BniV7",trophy:"deckGroup_trophy__Xr1zs"}},72780:(e,a,s)=>{"use strict";s.d(a,{A:()=>h});var t=s(75038),r=s(76430),i=s(98381),d=s(15918),n=s(40120),c=s(92910),l=s(69133),o=s(41944),_=s(21159),m=s(85785),x=s(65718),p=s(68835);let h=({card:e,className:a="",forceCreateAsCommander:s=!1})=>{let h=(0,i.useRouter)(),[{tbId:u,tbRootFolderId:j}]=(0,d.A)(["tbId","tbRootFolderId"]),[g,k]=(0,r.useState)(!1);return u?(0,t.jsx)(p.A,{onClick:()=>{let a=0,t={name:`Untitled ${e.name} deck`,deckFormat:s?m.uB.EDH:m.uB.CUSTOM,parentFolder:j,private:!1,extras:{}};k(!0),o.A.create(t).then(t=>(a=t.id,o.A.add(a,[{...e,qty:1,categories:s?["Commander"]:[]}]))).then(()=>h.push((0,x.cR)(a,t.name))).catch(e=>{console.error(e),_.A.create("Unable to create new deck","Deck Service")}).finally(()=>k(!1))},disabled:g,children:g?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.A,{size:"xSmall"})," Creating new deck"]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.A,{name:"add"})," Create new deck"]})}):(0,t.jsxs)(c.A,{href:`/sandbox?commanderAs=${e.name}`,children:[(0,t.jsx)(n.A,{name:"add"})," Create new deck"]})}},74090:e=>{e.exports={gradientMask:"cards_gradientMask__zuPsR",bottomGradientMask:"cards_bottomGradientMask__9h2qq"}},91719:(e,a,s)=>{"use strict";s.r(a),s.d(a,{__N_SSP:()=>$,default:()=>G});var t=s(75038),r=s(76430),i=s(98381),d=s(88398),n=s.n(d),c=s(79761),l=s(98419),o=s(15918),_=s(9133),m=s(23418),x=s(84806),p=s(41944),h=s(10993),u=s(10075),j=s(99364),g=s(96651),k=s(19307),A=s(68835),v=s(90112),N=s(82185),f=s(59816),b=s(61476),y=s(9071),C=s.n(y),I=s(57146),w=s(21129),D=s(69133);let P=({card:e,onEditionChanged:a})=>{let[s,i]=(0,r.useState)(!0),[d,n]=(0,r.useState)([]);return(0,r.useEffect)(()=>{i(!0),f.Ay.listCardsOnly({oracleCardIds:e.oracleCardId,includeDigital:!0,includeArtCards:!0,includeEmblems:!0,includeTokens:!0,exact:!0,allEditions:!0,orderBy:"-editiondate"}).then(e=>n(e)).finally(()=>i(!1))},[]),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:C().otherEditions,children:(0,t.jsx)(E,{card:e,onClick:()=>null,disabled:!0})}),(0,t.jsxs)("div",{className:C().otherEditions,children:[s&&(0,t.jsxs)("div",{className:C().loader,children:[(0,t.jsx)(D.A,{size:"xSmall"})," Fetching editions"]}),!s&&d.map(s=>(0,t.jsx)(E,{card:s,onClick:a,disabled:s.cardId===e.cardId},s.cardId))]})]})},E=({card:e,onClick:a,disabled:s})=>{let r=(0,N.GV)(e=>e.active.priceSource),{price:i,url:d,affiliateName:n}=(0,w.VR)(e,r[0],"Normal"!==e.modifier);return(0,t.jsxs)("button",{onClick:()=>a(e),className:C().editionOption,disabled:s,children:[(0,t.jsx)("img",{className:C().previewImage,src:(0,I.X)(e.uid,!1,"art_crop",e.
1scryfallImageHash)}),(0,t.jsxs)("span",{className:C().editionInfo,children:[(0,t.jsxs)("span",{className:C().text,children:[e.set," ",(0,b.R)(e.setCode,e.rarity)]}),(0,t.jsxs)("span",{className:C().extra,children:[i," ",s?"(Current)":""]})]})]})};var S=s(35810),B=s(55756),O=s(72780),T=s(74629),L=s(15740),F=s.n(L);let R=({card:e,onCardUpdated:a})=>{let[{tbId:s}]=(0,o.A)(["tbId"]),[i,d]=(0,r.useState)(!0),[n,c]=(0,r.useState)(_.Y),[l,N]=(0,r.useState)(e.flippedDefault),[f,b]=(0,r.useState)(!1),y=x.Yp.includes(e.layout);return((0,r.useEffect)(()=>{d(!0),p.A.listV3({smartLookup:e.name}).then(e=>c(e)).finally(()=>d(!1))},[]),e.id)?(0,t.jsxs)("div",{className:F().container,children:[(0,t.jsxs)("div",{className:F().content,children:[(0,t.jsxs)("div",{className:F().details,children:[(0,t.jsxs)("div",{className:F().cardImageAndEditions,children:[(0,t.jsxs)("div",{className:F().cardImage,children:[(0,t.jsx)(h.A,{flipped:l,card:e}),y&&(0,t.jsx)(A.A,{icon:"refresh",onClick:()=>N(!l),className:F().flipButton})]}),(0,t.jsx)(P,{card:e,onEditionChanged:a}),(0,t.jsxs)("div",{className:F().cardInteractions,children:[(0,t.jsx)(A.A,{onClick:()=>b(!0),icon:"grid layout",children:"All printings"}),(0,t.jsx)(j.A,{disabled:!s,card:e}),(0,t.jsx)(O.A,{card:e}),(0,t.jsx)(k.A,{disabled:!s,card:e,onCardUpdated:a}),(0,t.jsx)(g.A,{disabled:!s,card:e,onCardUpdated:a})]})]}),(0,t.jsx)("div",{className:F().detailsAndOptions,children:(0,t.jsxs)("div",{className:F().cardDetails,children:[(0,t.jsx)(v.A,{card:e,includeCardText:!0,includeExtras:!0,hideInDeckOptions:!0,hideCardImage:!0,className:F().drawerTopper,flipped:l}),(0,t.jsxs)("div",{className:F().secondaryBlock,children:[(0,t.jsxs)("div",{className:F().prices,children:[(0,t.jsxs)("div",{className:F().priceBlock,children:[(0,t.jsx)("h3",{children:"Normal prices"}
1),Object.values(m.UV).map(a=>(0,t.jsx)(T.g,{card:{...e,modifier:"Normal"},priceSource:a},a))]}),(0,t.jsxs)("div",{className:F().priceBlock,children:[(0,t.jsx)("h3",{children:"Foil prices"}),Object.values(m.UV).map(a=>(0,t.jsx)(T.g,{card:{...e,modifier:"Foil"},priceSource:a},a))]})]}),(0,t.jsx)(S.A,{card:e,className:F().oTags})]})]})})]}),(0,t.jsx)(u.A,{title:"Used in decks",href:`/search/decks?smartLookup=${e.name}`,decks:n.results,loading:i,className:F().deckLinks})]}),(0,t.jsx)(B.A,{open:f,onClose:()=>b(!1),card:e,onCardSelected:e=>{a(e),b(!1)}})]}):null};var U=s(74090),V=s.n(U),z=s(75313),$=!0;let G=({card:e})=>{let a=(0,i.useRouter)(),[s,d]=(0,r.useState)(e),o=(0,I.X)(s.uid,!1,"large",s.scryfallImageHash),_=(0,I.X)(s.uid,!1,"art_crop",s.scryfallImageHash),m=`${s.name} - Archidekt`,x=`${(0,z.zs)(s)} 2 ${s.text} 3 ${s.flavor} 4 ${s.set}`;return(0,t.jsxs)(c.A,{title:m,description:x,children:[(0,t.jsxs)(n(),{children:[(0,t.jsx)("meta",{property:"og:url",content:a.asPath}),(0,t.jsx)("meta",{property:"og:type",content:"website"}),(0,t.jsx)("meta",{property:"og:image",content:o}),(0,t.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,t.jsx)("meta",{name:"twitter:label1",content:"Edition"}),(0,t.jsx)("meta",{name:"twitter:data1",content:s.set}),(0,t.jsx)("meta",{name:"twitter:label2",content:"Artist"}),(0,t.jsx)("meta",{name:"twitter:data2",content:s.artist})]}),(0,t.jsx)(l.A,{src:_,style:{height:250},children:(0,t.jsx)("div",{className:V().bottomGradientMask})}),(0,t.jsx)(R,{card:s,onCardUpdated:d})]})}},97633:e=>{e.exports={flex:"header_flex__ZExkp",container:"header_container__Pg3wx"}}},e=>{e.O(0,[7516,3940,8519,1031,2282,636,6593,8792],()=>e(e.s=9616)),_N_E=e.O()}]); 5//# sourceMappingURL=[cardName]-db8ab9068c86ebce.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.