PageSourceSearch

https://splinterlands.com/assets/AutoFillSettings-BJvrHn7c.js

js splinterlands.com collected 2026-10-01 12:16:14 UTC 12,879 bytes, 1 lines download raw bytes

1import{N as Ke,Q as Qe,S as Xe,U as Ze,j as l}from"./vendor-ui-BfO2VaBV.js";import{s as v,c as Ee,n as we,B as Re,iW as et,a as tt,E as lt,i_ as ot,pX as at,qb as st,J as qe,b as it,iJ as nt,C as rt,Y as ct,Z as mt}from"./index-DNro_9Uk.js";import{a as j}from"./vendor-redux-DAFPkm2K.js";import{C as dt}from"./Collection.Context-Drcq-O1c.js";import{S as ht,a as Je,p as te,W as xt,P as ft}from"./common.styled-BJgOjp8t.js";import{u as ut}from"./useSetTemplates-DrPpaSgC.js";import{b as pt}from"./manageSet.utils-C-TD-mWN.js";import"./vendor-blockchain-B33N8Jyr.js";import"./three-DYsWAOM3.js";import"./maps-BKggpbsI.js";const bt=v(Ke,{position:"relative",display:"flex",alignItems:"center",userSelect:"none",touchAction:"none",border:"3px solid #000",borderRadius:"4px",height:"12px",flexShrink:0,width:"75%"}),yt=v(Qe,{position:"relative",flexGrow:1,br:"$round",background:"#000",'&[data-orientation="horizontal"]':{height:"100%"},'&[data-orientation="vertical"]':{width:3},width:"100%",alignSelf:"center",flexShrink:0}),gt=v(Xe,{position:"absolute",flexGrow:1,borderRadius:"9999px",flexShrink:0,br:"$round",'&[data-orientation="horizontal"]':{height:"100%"},'&[data-orientation="vertical"]':{width:3},variants:{type:{common:{background:"linear-gradient(90deg, #3F3F3F 0%, #C4C4C4 100%)"},rare:{background:"linear-gradient(90deg, #00363E 0%, #3FE5FF 100%)"},epic:{background:"linear-gradient(90deg, #420049 0%, #EF5CFF 100%)"},legendary:{background:"linear-gradient(90deg, #5B4600 0%, #FFD23F 100%)"}},isDisabled:{true:{opacity:.35},false:{opacity:1}}}}),Ft=v(Ze,{all:"unset",width:22,height:22,borderRadius:11,flexShrink:0,filter:"drop-shadow(-2px 2px 4px rgba(0, 0, 0, 0.70))",fontFamily:"Proxima Nova",fontSize:"16px",color:"#FFF",display:"flex",alignItems:"center",justifyContent:"center",variants:{type:{common:{background:"#3F3F3F",border:"1px solid #C4C4C4"},rare:{background:"#00363E",border:"1px solid #3FE5FF"},epic:{background:"#46004E",border:"1px solid #EF5CFF"},legendary:{background:"#5B4600",border:"1px solid #FFD23F"}},isDisabled:{true:{cursor:"not-allowed"},false:{cursor:"pointer"}}},"&:focus":{boxShadow:"0 0 0 5px $black"}}),jt=t=>t==="common"?10:t==="rare"?8:t==="epic"?6:4,Ce=t=>{const e=Ee.c(21),{rarity:a,value:d,isDisabled:h,onChange:s,min:x}=t;let f;e[0]!==a?(f=jt(a),e[0]=a,e[1]=f):f=e[1];const o=f;let c;e[2]!==d?(c=[d],e[2]=d,e[3]=c):c=e[3];let r;e[4]!==x||e[5]!==s?(r=g=>{const C=g[0];C<=x?s(x):s(C)},e[4]=x,e[5]=s,e[6]=r):r=e[6];let i;e[7]!==h||e[8]!==a?(i=l.jsx(yt,{children:l.jsx(gt,{type:a,isDisabled:h})}),e[7]=h,e[8]=a,e[9]=i):i=e[9];let m;e[10]!==h||e[11]!==a||e[12]!==d?(m=l.jsx(Ft,{isDisabled:h,type:a,children:d}),e[10]=h,e[11]=a,e[12]=d,e[13]=m):m=e[13];let u;return e[14]!==h||e[15]!==o||e[16]!==c||e[17]!==r||e[18]!==i||e[19]!==m?(u=l.jsxs(bt,{value:c,onValueChange:r,step:1,min:1,max:o,disabled:h,children:[i,m]}),e[14]=h,e[15]=o,e[16]=c,e[17]=r,e[18]=i,e[19]=m,e[20]=u):u=e[20],u},vt=v(we,{gap:"20px 30px",flexWrap:"wrap",mt:"30px",justifyContent:"center"}),ee=v(we,{gap:"10px",alignItems:"center"}),S=v("label",{color:"#DBC488",fontFamily:"Proxima Nova",fontSize:"16px"}),St=v(Re,{color:"rgba(255, 255, 255, 0.70)",fontFamily:"Proxima Nova",fontSize:"14px",lineHeight:"18px",maxWidth:"470px"}),ke=v(we,{maxWidth:"470px",justifyContent:"space-between",alignItems:"center",gap:"10px",padding:"5px 0",variants:{isDisabled:{true:{opacity:.5}}}}),_t=v(et,{border:"1px solid #F0A528",borderRadius:6,background:"linear-gradient(180deg, #06343B 0%, #041B1F 100%)",height:32,font:"normal normal bold 14px/17px Proxima Nova",color:"$paleYellow",width:"200px"}),Ct=[{value:"",label:"More than 2 days ago"},{value:"three_days",label:"More than three days ago"},{value:"week",label:"More than a week ago"},{value:"month",label:"More than a month ago"},{value:"any",label:"Any"}],kt=t=>{var $e,Ie,He,Oe,Ne,We,ze,Ue,Ve,Te;const e=Ee.c(107),{templateLevels:a,onBack:d,setTemplate:h}=t,s=h===void 0?null:h,x=tt();let f;e[0]!==(s==null?void 0:s.template)?(f=Z=>at(Z,s==null?void 0:s.template),e[0]=s==null?void 0:s.template,e[1]=f):f=e[1];const o=lt(f),c=(s==null?void 0:s.template)==="custom",[r,i]=j.useState(($e=o==null?void 0:o.allowGoldFoils)!=null?$e:!1),[m,u]=j.useState((Ie=o==null?void 0:o.allowBlackFoils)!=null?Ie:!1),[g,C]=j.useState((He=o==null?void 0:o.minimumLevelsOnly)!=null?He:!1),[p,k]=j.useState((Oe=o==null?void 0:o.useHighestLevel)!=null?Oe:!1),[b,w]=j.useState((Ne=o==null?void 0:o.allowSoulbound)!=null?Ne:!1),[y,L]=j.useState((We=o==null?void 0:o.commonMaxLevel)!=null?We:a.common),[F,_]=j.useState((ze=o==null?void 0:o.rareMaxLevel)!=null?ze:a.rare),[A,Pe]=j.useState((Ue=o==null?void 0:o.epicMaxLevel)!=null?Ue:a.epic),[B,Ge]=j.useState((Ve=o==null?void 0:o.legendaryMaxLevel)!=null?Ve:a.legendary),[D,Ye]=j.useState((Te=o==null?void 0:o.lastPlayed)!=null?Te:""),n=g;let le;e[2]!==m||e[3]!==r||e[4]!==b||e[5]!==y||e[6]!==x||e[7]!==A||e[8]!==D||e[9]!==B||e[10]!==g||e[11]!==d||e[12]!==F||e[13]!==(s==null?void 0:s.template)||e[14]!==p?(le=()=>{x(st({set:s==null?void 0:s.template,settings:{allowGoldFoils:r,allowBlackFoils:m,minimumLevelsOnly:g,useHighestLevel:p,allowSoulbound:b,commonMaxLevel:y,rareMaxLevel:F,epicMaxLevel:A,legendaryMaxLevel:B,lastPlayed:D}})),d()},e[2]=m,e[3]=r,e[4]=b,e[5]=y,e[6]=x,e[7]=A,e[8]=D,e[9]=B,e[10]=g,e[11
1]=d,e[12]=F,e[13]=s==null?void 0:s.template,e[14]=p,e[15]=le):le=e[15];const Le=le;let oe;e[16]===Symbol.for("react.memo_cache_sentinel")?(oe=l.jsx(ht,{css:{textAlign:"center"},children:"AUTOFILL SETTINGS"}),e[16]=oe):oe=e[16];let ae;e[17]===Symbol.for("react.memo_cache_sentinel")?(ae=l.jsx(Je,{css:{mt:"15px"}}),e[17]=ae):ae=e[17];let se;e[18]===Symbol.for("react.memo_cache_sentinel")?(se={gap:"20px",flexDirection:"column",padding:"25px 0"},e[18]=se):se=e[18];let ie;e[19]===Symbol.for("react.memo_cache_sentinel")?(ie=()=>i(wt),e[19]=ie):ie=e[19];let M;e[20]!==r?(M=l.jsx(te,{id:"allowGoldFoil",checked:r,type:"checkbox",onChange:ie}),e[20]=r,e[21]=M):M=e[21];let ne;e[22]===Symbol.for("react.memo_cache_sentinel")?(ne=l.jsx(S,{htmlFor:"allowGoldFoil",css:{mt:"3px"},children:"Allow Gold Foils"}),e[22]=ne):ne=e[22];let E;e[23]!==M?(E=l.jsxs(ee,{children:[M,ne]}),e[23]=M,e[24]=E):E=e[24];let re;e[25]===Symbol.for("react.memo_cache_sentinel")?(re=()=>u(Lt),e[25]=re):re=e[25];let R;e[26]!==m?(R=l.jsx(te,{id:"allowBlackFoil",checked:m,type:"checkbox",onChange:re}),e[26]=m,e[27]=R):R=e[27];let ce;e[28]===Symbol.for("react.memo_cache_sentinel")?(ce=l.jsx(S,{htmlFor:"allowBlackFoil",css:{mt:"3px"},children:"Allow Black Foils"}),e[28]=ce):ce=e[28];let P;e[29]!==R?(P=l.jsxs(ee,{children:[R,ce]}),e[29]=R,e[30]=P):P=e[30];let me;e[31]===Symbol.for("react.memo_cache_sentinel")?(me=()=>k(At),e[31]=me):me=e[31];let G;e[32]!==p?(G=l.jsx(te,{id:"useHighestLevel",checked:p,type:"checkbox",onChange:me}),e[32]=p,e[33]=G):G=e[33];let de;e[34]===Symbol.for("react.memo_cache_sentinel")?(de=l.jsx(S,{htmlFor:"useHighestLevel",css:{mt:"3px"},children:"Use Highest Level Cards"}),e[34]=de):de=e[34];let $;e[35]!==G?($=l.jsxs(ee,{children:[G,de]}),e[35]=G,e[36]=$):$=e[36];let I;e[37]!==b||e[38]!==c?(I=c&&l.jsxs(ee,{children:[l.jsx(te,{id:"allowSoulbound",checked:b,type:"checkbox",onChange:()=>w(Bt)}),l.jsx(S,{htmlFor:"allowSoulbound",css:{mt:"3px"},children:"Allow Soulbound Cards"})]}),e[37]=b,e[38]=c,e[39]=I):I=e[39];let H;e[40]!==c||e[41]!==g||e[42]!==a?(H=!c&&l.jsxs(ee,{children:[l.jsx(te,{id:"minimumLevelOnly",checked:g,type:"checkbox",onChange:()=>{C(Z=>(Z||(L(a.common),_(a.rare),Pe(a.epic),Ge(a.legendary)),!Z))}}),l.jsx(S,{htmlFor:"minimumLevelOnly",css:{mt:"3px"},children:"Minimum Level Required Only"})]}),e[40]=c,e[41]=g,e[42]=a,e[43]=H):H=e[43];let he;e[44]===Symbol.for("react.memo_cache_sentinel")?(he=l.jsx(St,{children:"Adjust the max level of cards that can be chosen by the autofill."}),e[44]=he):he=e[44];let xe;e[45]===Symbol.for("react.memo_cache_sentinel")?(xe=l.jsx(S,{children:"Common"}),e[45]=xe):xe=e[45];const Ae=c?1:a.common;let O;e[46]!==y||e[47]!==n||e[48]!==Ae?(O=l.jsx(Ce,{min:Ae,isDisabled:n,onChange:L,rarity:"common",value:y}),e[46]=y,e[47]=n,e[48]=Ae,e[49]=O):O=e[49];let N;e[50]!==n||e[51]!==O?(N=l.jsxs(ke,{isDisabled:n,children:[xe,O]}),e[50]=n,e[51]=O,e[52]=N):N=e[52];let fe;e[53]===Symbol.for("react.memo_cache_sentinel")?(fe=l.jsx(S,{children:"Rare"}),e[53]=fe):fe=e[53];const Be=c?1:a.rare;let W;e[54]!==n||e[55]!==F||e[56]!==Be?(W=l.jsx(Ce,{min:Be,isDisabled:n,onChange:_,rarity:"rare",value:F}),e[54]=n,e[55]=F,e[56]=Be,e[57]=W):W=e[57];let z;e[58]!==n||e[59]!==W?(z=l.jsxs(ke,{isDisabled:n,children:[fe,W]}),e[58]=n,e[59]=W,e[60]=z):z=e[60];let ue;e[61]===Symbol.for("react.memo_cache_sentinel")?(ue=l.jsx(S,{children:"Epic"}),e[61]=ue):ue=e[61];const De=c?1:a.epic;let U;e[62]!==A||e[63]!==n||e[64]!==De?(U=l.jsx(Ce,{min:De,isDisabled:n,onChange:Pe,rarity:"epic",value:A}),e[62]=A,e[63]=n,e[64]=De,e[65]=U):U=e[65];let V;e[66]!==n||e[67]!==U?(V=l.jsxs(ke,{isDisabled:n,children:[ue,U]}),e[66]=n,e[67]=U,e[68]=V):V=e[68];let pe;e[69]===Symbol.for("react.memo_cache_sentinel")?(pe=l.jsx(S,{children:"Legendary"}),e[69]=pe):pe=e[69];const Me=c?1:a.legendary;let T;e[70]!==n||e[71]!==B||e[72]!==Me?(T=l.jsx(Ce,{min:Me,isDisabled:n,onChange:Ge,rarity:"legendary",value:B}),e[70]=n,e[71]=B,e[72]=Me,e[73]=T):T=e[73];let q;e[74]!==n||e[75]!==T?(q=l.jsxs(ke,{isDisabled:n,children:[pe,T]}),e[74]=n,e[75]=T,e[76]=q):q=e[76];let J;e[77]!==E||e[78]!==P||e[79]!==$||e[80]!==I||e[81]!==H||e[82]!==N||e[83]!==z||e[84]!==V||e[85]!==q?(J=l.jsxs(we,{css:se,children:[E,P,$,I,H,he,N,z,V,q]}),e[77]=E,e[78]=P,e[79]=$,e[80]=I,e[81]=H,e[82]=N,e[83]=z,e[84]=V,e[85]=q,e[86]=J):J=e[86];let be,ye;e[87]===Symbol.for("react.memo_cache_sentinel")?(be={gap:"38px"},ye=l.jsx(S,{htmlFor:"lastPlayed",children:"Last Played"}),e[87]=be,e[88]=ye):(be=e[87],ye=e[88]);let ge,Fe;e[89]===Symbol.for("react.memo_cache_sentinel")?(ge=Z=>{Ye(Z.target.value)},Fe=Ct.map(Dt),e[89]=ge,e[90]=Fe):(ge=e[89],Fe=e[90]);let Y;e[91]!==D?(Y=l.jsxs(ee,{css:be,children:[ye,l.jsx(_t,{name:"lastPlayed",id:"lastPlayed",value:D,onChange:ge,children:Fe})]}),e[91]=D,e[92]=Y):Y=e[92];let je;e[93]===Symbol.for("react.memo_cache_sentinel")?(je=l.jsx(Je,{css:{mt:"22px"}}),e[93]=je):je=e[93];let ve;e[94]===Symbol.for("react.memo_cache_sentinel")?(ve={width:"120px"},e[94]=ve):ve=e[94];let K;e[95]!==d?(K=l.jsx(qe,{type:"button",onClick:d,color:"flatRed",css:ve,children:"CANCEL"}),e[95]=d,e[96]=K):K=e[96];let Se;e[97]===Symbol.for("react.memo_cache_sentinel")?(Se={width:"120px"},e[97]=Se):Se=e[97];let Q;e[98]!==Le?(Q=l.jsx(qe,{type:"button",onClick:Le,color:"flatGreen",css:Se,children:"SAVE"}),e[98]=Le,e[99]=Q):Q=e[99];let X;e[100]!==K||e[101]!==Q?(X=l.jsxs(vt,{children:[K,Q]}),e[100]=K,e[101]=Q,e[102]=X):X=e[102];let _e;return e[103]!==J||e[104]!==Y||e[105]!==X?(_e=l.jsxs(l.Fragment,{children:[oe,ae,J,Y,je,X]}),e[103]=J,e[104]=Y,e[105]=X,e[106]=_e):_e=e[106],_e};function wt(t){return!t}function Lt(t){return!t}function At(t){return!t}function Bt(t){return!t}function Dt(t){const{label:e,value:a}=t;return l.jsx(ot,{value:a,children:e},a)}const Mt=v(Re,{background:"rgba(0, 0, 0, 0.3)",minHeight:"100vh"}),zt=()=>{const t=Ee.c(33),e=it(),{collection:a}=j.useContext(dt),{items:d,isLoading:h,isUninitialized:s,isError:x}=ut(),{template:f,id:o}=nt(),c=!!o;let r,i,m,u;if(t[0]!==a||t[1]!==c||t[2]!==h||t[3]!==s||t[4]!==d||t[5]!==e||t[6]!==o||t[7]!==f){u=Symbol.for("react.early_return_sentinel");e:{let F;if(t[12]!==f?(F=_=>_.template===f,t[12]=f,t[13]=F):F=t[13],i=d.find(F),r=()=>{e(i?c?"/user/sets/edit/template/".concat(i.template,"/").concat(o):"/user/sets/create/template/".concat(i.template):"/user/sets/create")},h||s){let _;t[14]===Symbol.for("react.memo_cache_sentinel")?(_=l.jsx(rt,{}),t[14]=_):_=t[14],u=_;break e}m=pt((i==null?void 0:i.cards)||[],a,{})}t[0]=a,t[1]=c,t[2]=h,t[3]=s,t[4]=d,t[5]=e,t[6]=o,t[7]=f,t[8]=r,t[9]=i,t[10]=m,t[11]=u}else r=t[8],i=t[9],m=t[10],u=t[11];if(u!==Symbol.for("react.early_return_sentinel"))return u;const g=m,{templateLevels:C}=g;let p;t[15]!==i?(p={...i?{backgroundImage:"url(".concat(i.mainBackgroun
1dImage,")")}:{}},t[15]=i,t[16]=p):p=t[16];let k;t[17]!==r?(k=l.jsx(ct,{onGoBackTitle:"BACK",onGoBack:r,headerTitle:"AUTOFILL SETTINGS",sticky:!0}),t[17]=r,t[18]=k):k=t[18];let b;t[19]!==x?(b=x&&l.jsx(Re,{css:{width:"100%",pt:"100px"},children:l.jsx(mt,{message:"An error occurred loading sets info, please refresh the page to try again.",withLines:!1})}),t[19]=x,t[20]=b):b=t[20];let w;t[21]!==x||t[22]!==r||t[23]!==i||t[24]!==C?(w=!x&&l.jsx(xt,{css:{mt:"40px"},children:l.jsx(kt,{templateLevels:C,onBack:r,setTemplate:i})}),t[21]=x,t[22]=r,t[23]=i,t[24]=C,t[25]=w):w=t[25];let y;t[26]!==k||t[27]!==b||t[28]!==w?(y=l.jsxs(Mt,{children:[k,b,w]}),t[26]=k,t[27]=b,t[28]=w,t[29]=y):y=t[29];let L;return t[30]!==p||t[31]!==y?(L=l.jsx(ft,{css:p,children:y}),t[30]=p,t[31]=y,t[32]=L):L=t[32],L};export{zt as AutoFillSettings,zt 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.