1import{j as t}from"./vendor-ui-BfO2VaBV.js";import{c as w,b as B,E as L,T as k,J as I,C as K,n as v,B as _,Z as E}from"./index-iXJSSkdU.js";import{a as O}from"./vendor-redux-DAFPkm2K.js";import{I as W}from"./ItemsHeader-o5XanavS.js";import{A as M,a as b,b as N}from"./AcademyPanel-DJSOIbvm.js";import"./AcademyPanel.styled-DyNXdz45.js";import{A as D}from"./AcademyContent-cZ_OTHFy.js";import{S as F}from"./SetTabs-CX64r_gN.js";import{S as H}from"./SetInfoCard-D7DNH_Is.js";import{u as $}from"./useSetTemplates-D3oAl9nS.js";import{e as q,W as T,C as z,f as J,D as U,g as Z,B as G}from"./common.styled-BbyKdbZc.js";import"./vendor-blockchain-B33N8Jyr.js";import"./three-DYsWAOM3.js";import"./maps-BKggpbsI.js";import"./react-sliding-pane-UE_OijEv.js";import"./index-Chjiymov.js";import"./Collection.Context-CkqqG9m7.js";const xe=()=>{const e=w.c(31),A=B(),o=L(k),[r,C]=O.useState(!1),{items:g,isLoading:P,isUninitialized:R,isError:s}=$();if(P||R){let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(K,{}),e[0]=a):a=e[0],a}let d;e[1]===Symbol.for("react.memo_cache_sentinel")?(d={ml:"auto",mr:"20px",gap:"15px",padding:"12px 0"},e[1]=d):d=e[1];let x;e[2]===Symbol.for("react.memo_cache_sentinel")?(x=()=>C(Q),e[2]=x):x=e[2];let i;e[3]!==r?(i=t.jsx(W,{activeTab:"user/sets",content:t.jsx(v,{css:d,children:t.jsx(M,{isPanelOpen:r,localStorageKey:b.MARKET_SET_RENTALS,onAcademyClick:x})})}),e[3]=r,e[4]=i):i=e[4];let h;e[5]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx(F,{activeTab:"create"}),e[5]=h):h=e[5];let S;e[6]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(T,{children:t.jsxs(z,{children:[t.jsx(J,{children:"CREATE SET"}),!window.is_iOS&&t.jsx(U,{children:"Sets consist of cards taken from your collection that can be rented out together as a package."})]})}),e[6]=S):S=e[6];let n;e[7]!==i?(n=t.jsxs(Z,{children:[i,h,S]}),e[7]=i,e[8]=n):n=e[8];let u,j;e[9]===Symbol.for("react.memo_cache_sentinel")?(u=()=>C(!1),j=t.jsx(D,{academyPanelKey:b.MARKET_SET_RENTALS}),e[9]=u,e[10]=j):(u=e[9],j=e[10]);let l;e[11]!==r?(l=t.jsx(N,{isAcademyPanelOpen:r,onClosePanel:u,children:j}),e[11]=r,e[12]=l):l=e[12];let c;e[13]!==s?(c=s&&t.jsx(_,{css:{width:"100%",pt:"70px"},children:t.jsx(E,{message:"An error occurred loading sets info, please refresh the page to try again.",withLines:!1})}),e[13]=s,e[14]=c):c=e[14];let m;e[15]!==s||e[16]!==o?(m=!s&&o&&t.jsx(_,{css:{width:"100%",pt:"70px"},children:t.jsx(E,{message:"A Spellbook is required to create a card set.",withLines:!1})}),e[15]=s,e[16]=o,e[17]=m):m=e[17];let p;e[18]!==s||e[19]!==o||e[20]!==g||e[21]!==A?(p=!s&&!o&&t.jsx(q,{children:g.map(a=>t.jsx(H,{...a,button:t.jsx(I,{type:"button",color:"flatBlue",css:{width:"95%"},onClick:()=>{A("/user/sets/create/template/".concat(a.template))},children:"CREATE"})},a.template))}),e[18]=s,e[19]=o,e[20]=g,e[21]=A,e[22]=p):p=e[22];let f;e[23]!==m||e[24]!==p||e[25]!==c?(f=t.jsx(G,{children:t.jsxs(T,{children:[c,m,p]})}),e[23]=m,e[24]=p,e[25]=c,e[26]=f):f=e[26];let y;return e[27]!==f||e[28]!==n||e[29]!==l?(y=t.jsxs(t.Fragment,{children:[n,l,f]}),e[27]=f,e[28]=n,e[29]=l,e[30]=y):y=e[30],y};function Q(e){return!e}export{xe as SelectCreateSets,xe 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.