1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5595],{10075:(e,a,t)=>{"use strict";t.d(a,{A:()=>d});var s=t(75038);t(76430);var r=t(40120),n=t(94545),c=t(31452),o=t(21923),i=t(37593),l=t.n(i);let d=({title:e,href:a,decks:t,secondary:r="View decks",loading:i,className:l,gridClassName:d,includeContestWinnerIcons:_,useDeckHelpLinks:g,noTags:u})=>t?.length?(0,s.jsxs)("div",{className:l,children:[a&&e&&(0,s.jsx)(c.A,{main:e,secondary:r,href:a}),!a&&e&&(0,s.jsx)(c.A,{main:e}),(0,s.jsx)("div",{className:d??n.Np,children:t.map((e,a)=>_?(0,s.jsx)(h,{deck:e,index:a,loading:i,noTags:u},a):g?(0,s.jsx)(o.A,{deck:e,loading:i,options:{hideDeckHelpExtras:!0,reduceAnimations:!0}},a):(0,s.jsx)(n.Ay,{deck:e,loading:i,noTags:u},a))})]}):null,_=[{color:"#fde39b",backgroundColor:"#daa30c"},{color:"#636262",backgroundColor:"#bebebe"},{color:"#fd9855",backgroundColor:"#996b4c"}],h=({deck:e,index:a,loading:t,noTags:c})=>(0,s.jsxs)("div",{className:l().container,children:[(0,s.jsx)(n.Ay,{deck:e,loading:t,noTags:c}),(0,s.jsx)("span",{className:l().trophy,style:{color:_[a].color,backgroundColor:_[a].backgroundColor},children:(0,s.jsx)(r.A,{name:"trophy"})})]})},20692:e=>{e.exports={tag:"tagDisplayItem_tag__mIBsx",container:"tagDisplayItem_container____iC9",accordion:"tagDisplayItem_accordion__ysPwh",accordionContainer:"tagDisplayItem_accordionContainer__kiThI"}},24472:(e,a,t)=>{"use strict";t.r(a),t.d(a,{__N_SSP:()=>w,default:()=>y});var s=t(75038),r=t(76430),n=t(98381),c=t(88398),o=t.n(c),i=t(32071),l=t(79761),d=t(98419),_=t(56771),h=t(41944),g=t(21159),u=t(92910),x=t(75249),m=t(10075),p=t(15938),j=t(69841),k=t(20692),f=t.n(k);let A=({tagName:e,tagId:a})=>{let[t,n]=(0,r.useState)(!1),[c,o]=(0,r.useState)(!1),[i,l]=(0,r.useState)([]);return(0,r.useEffect)(()=>{i.length>0||c&&(n(!0),h.A.listV3({deckTagId:a}).then(e=>{l(e.results)}).catch(()=>g.A.create("Failed to fetch decks","error")).finally(()=>n(!1)))},[c]),(0,s.jsxs)("div",{className:f().container,children:[(0,s.jsx)(u.A,{href:`/tags/${(0,j.C)(e)}`,className:f().tag,children:e}),(0,s.jsx)(p.A,{value:c,onChange:o,label:(0,s.jsxs)(s.Fragment,{children:["View recent ",e.toLowerCase()," decks"]}),className:f().accordion,containerClass:f().accordionContainer,children:t?(0,s.jsx)(x.A,{}):(0,s.jsx)(m.A,{decks:i})})]})};var b=t(73836),C=t.n(b),w=!0;let y=({deckTags:e})=>{(0,n.useRouter)();let a=(0,r.useRef)(),[t,c]=(0,r.useState)(""),[h,g]=(0,r.useState)(e);return(0,r.useEffect)(()=>(a.current=setTimeout(()=>{g(e.filter(e=>{let a=t.toLowerCase();return!!(e.name.toLowerCase().includes(a)||e.aliases.split(" ").includes(a))}))},660),()=>clearTimeout(a.current)),[t]),(0,s.jsxs)(l.A,{title:"Archidekt Deck Tags",description:"Filter decks by tag, function, or theme.",children:[(0,s.jsxs)(o(),{children:[(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{name:"twitter:label1",content:"Total results"}),(0,s.jsx)("meta",{name:"twitter:data1",content:`${e.length}`})]}),(0,s.jsx)(d.A,{src:i.fz+"cm1/47a832ae-0a8d-4710-8341-a1b3e3dbf763_art_crop.jpg",style:{height:200},artist:!0,title:(0,s.jsx)("p",{children:"Deck Tags"})}),(0,s.jsxs)("div",{className:C().container,children:[(0,s.jsx)(_.A,{className:C().filter,header:"Tag filter",value:t,placeholder:"Tokens, Elves, Mill, etc.",onChange:e=>c(e)}),h.map(e=>(0,s.jsx)(A,{tagName:e.name,tagId:e?.id||1},e?.id))]})]},"tag-results-page")}},31452:(e,a,t)=>{"use strict";t.d(a,{A:()=>i});var s=t(75038);t(76430);var r=t(40120),n=t(92910),c=t(97633),o=t.n(c);let i=({main:e,secondary:a,href:t,onClick:c})=>(0,s.jsxs)("div",{className:o().container,children:[(0,s.jsx)("h3",{id:e.replace(" ","_"),children:e}),t&&a&&(0,s.jsxs)(n.A,{href:t,children:[a," ",(0,s.jsx)(r.A,{name:"arrow right"})]}),c&&a&&(0,s.jsxs)("button",{onClick:c,children:[a," ",(0,s.jsx)(r.A,{name:"arrow right"})]}),!t&&!c&&a&&a]})},37593:e=>{e.exports={container:"deckGroup_container__BniV7",trophy:"deckGroup_trophy__Xr1zs"}},71531:(e,a,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/tags",function(){return t(24472)}])},73836:e=>{e.exports={container:"tagPage_container__F92xX",filter:"tagPage_filter__R23b2"}},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=71531)),_N_E=e.O()}]); 2//# sourceMappingURL=tags-88f015dddcef160a.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.