1import{j as e}from"./vendor-ui-BfO2VaBV.js";import{c as Ae,s as n,n as d,p as oe,B as s,pj as fo,b as ye,a as Ye,E as Co,G as wo,ad as Ze,pk as Ao,pl as yo,pm as jo,ai as Fo,o as te,J as G,pn as So,iX as ko,po as vo,K as ne,Y as Xe,Z as Je,os as Ro,ot as To,bG as Eo,u as Po,_ as Do,S as Io,gc as Bo,pp as Lo,br as q,cg as No,pq as Vo,cT as zo}from"./index-iXJSSkdU.js";import{a as R}from"./vendor-redux-DAFPkm2K.js";import{T as Wo}from"./Timer-Bkdgy5ht.js";import{b as Mo,A as $o,a as Ho}from"./AcademyPanel-DJSOIbvm.js";import"./react-sliding-pane-UE_OijEv.js";import{b as Go,T as Q,H as Oo,D as X,L as ie,a as Ko}from"./AcademyPanel.styled-DyNXdz45.js";import{C as Uo}from"./ConflictsBanner-DPB62THL.js";import{u as Qo}from"./useClaimCenterEvents-XSFaNURN.js";import{u as qo,a as Yo}from"./transactions-Cgf7IyCR.js";import{G as Zo}from"./GlintBombSuccess-CgKlfPdp.js";import{u as Xo,a as Jo}from"./transaction-Bssn5rHn.js";import"./vendor-blockchain-B33N8Jyr.js";import"./three-DYsWAOM3.js";import"./maps-BKggpbsI.js";import"./index-Chjiymov.js";import"./frontierDraws.service-QYdDaMx_.js";import"./useGetSplinterlandsCards-J7p4_hXa.js";import"./lobbyAssets-Hb5Ij6CS.js";import"./Common.styled-OwRaibgk.js";import"./bg_noncardmarket-ydURrlIY.js";const _o="".concat(window.config.SL_ASSETS_URL,"/ui_elements/shop/visions_of_verico/ability_glint-recovery_800.png"),er="".concat(window.config.SL_ASSETS_URL,"/ui_elements/shop/visions_of_verico/ability_alteration_800.png"),or="".concat(window.config.SL_ASSETS_URL,"/ui_elements/shop/visions_of_verico/ability_fortune-seeker_800.png"),rr="".concat(window.config.SL_ASSETS_URL,"/icons/img_fortune-entry_ca.svg"),tr="".concat(window.config.SL_ASSETS_URL,"/icons/icon_fp.svg"),nr="https://peakd.com/splinterlands/@splinterlands/visions-of-verico-bloodlines-are-coming-to-land",ir="https://support.splinterlands.com/hc/en-us/articles/50737508979348-Verico-Land-Cards-FAQ",ar="/land",lr="".concat(window.config.SL_BASE_ASSETS_URL,"/cards_by_level/verico/Goldscythe%20Harvester_lv10_gold.png"),Re={target:"_blank",rel:"noreferrer"},ae=n(d,{flexDirection:"column",gap:8}),le=n(Go,{textAlign:"center",fontSize:18,lineHeight:"21px"}),sr=n(d,{alignItems:"center",justifyContent:"center",gap:14,flexWrap:"wrap",marginTop:2}),Te=n(oe,{width:52,height:52,objectFit:"contain"}),Ee=n(d,{justifyContent:"center",gap:"6px 14px",flexWrap:"wrap"}),cr=n(s,{maxWidth:"100%",overflowX:"auto"}),dr=n("table",{width:"100%",borderCollapse:"collapse",border:"1px solid #786A2F"}),se=n("th",{border:"1px solid #786A2F",color:"#F0A528",font:"normal normal bold 13px/16px Proxima Nova",padding:"8px 10px",textAlign:"left"}),H=n("td",{border:"1px solid #786A2F",color:"#FFFFFF",font:"normal normal normal 13px/16px Proxima Nova",padding:"8px 10px",verticalAlign:"top"}),ue=n(H,{width:64,textAlign:"center",verticalAlign:"middle"}),ge=n(oe,{width:44,height:44,objectFit:"contain"}),mr=n(oe,{width:220,maxWidth:"72%",margin:"8px auto 0"}),pr=n(Q,{textAlign:"center",fontStyle:"italic",color:"#C9D2F4"}),xr=t=>{const o=Ae.c(27),{onClosePanel:a,isAcademyPanelOpen:x}=t;let g,u,A;o[0]===Symbol.for("react.memo_cache_sentinel")?(g=e.jsx(Oo,{children:"CLAIM CENTER"}),u=e.jsx(Q,{children:"Claim Center gathers reward events that may need your attention. Use it to review current entries or eligible plots, watch active timers, open event histories, and check for prizes when a completed event has claimable rewards."}),A=e.jsx(X,{}),o[0]=g,o[1]=u,o[2]=A):(g=o[0],u=o[1],A=o[2]);let y,L;o[3]===Symbol.for("react.memo_cache_sentinel")?(y=e.jsx(le,{children:"VISIONS OF VERICO"}),L=e.jsx(Q,{children:"Stake the appropriately leveled Visions of Verico card on a plot to activate these claim and draw abilities. The plot does not need to be producing resources and does not need a Power Core unless you also want to use production abilities."}),o[3]=y,o[4]=L):(y=o[3],L=o[4]);let D;o[5]===Symbol.for("react.memo_cache_sentinel")?(D=e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx(se,{children:"Ability"}),e.jsx(se,{children:"Card Level"}),e.jsx(se,{children:"Reward"}),e.jsx(se,{children:"How Often"})]})}),o[5]=D):D=o[5];let h;o[6]===Symbol.for("react.memo_cache_sentinel")?(h=e.jsxs("tr",{children:[e.jsx(ue,{children:e.jsx(ge,{src:er,alt:"Alteration icon"})}),e.jsx(H,{children:"Level 4+"}),e.jsx(H,{children:"Alteration base skins and premium skin draw chances"}),e.jsx(H,{children:"Monthly"})]}),o[6]=h):h=o[6];let C;o[7]===Symbol.for("react.memo_cache_sentinel")?(C=e.jsxs("tr",{children:[e.jsx(ue,{children:e.jsx(ge,{src:_o,alt:"Glint Recovery icon"})}),e.jsx(H,{children:"Level 6+"}),e.jsx(H,{children:"Randomized Glint Recovery drops"}),e.jsx(H,{children:"Daily"})]}),o[7]=C):C=o[7];let j,S,b;o[8]===Symbol.for("react.memo_cache_sentinel")?(b=e.jsx(cr,{children:e.jsxs(dr,{children:[D,e.jsxs("tbody",{children:[h,C,e.jsxs("tr",{children:[e.jsx(ue,{children:e.jsx(ge,{src:or,alt:"Fortune Seeker icon"})}),e.jsx(H,{children:"Level 10"}),e.jsx(H,{children:"Fortune Seeker foil draws for Gold Foil, Black Foil, and Arcane variants"}),e.jsx(H,{children:"Weekly"})]})]})]})}),j=e.jsx(mr,{src:lr,alt:"Max-level Goldscythe Harvester Verico card"}),S=e.jsx(pr,{children:"Max-level Verico Card - 400 cards combined"}),o[8]=j,o[9]=S,o[10]=b):(j=o[8],S=o[9],b=o[10]);let f,k;o[11]===Symbol.for("react.memo_cache_sentinel")?(f=e.jsxs(ae,{children:[y,L,b,j,S,e.jsxs(Ee,{children:[e.jsx(ie,{href:"/shop/packs/VERICO",children:"Verico Shop"}),e.jsx(ie,{href:nr,...Re,children:"Announcement"}),e.jsx(ie,{href:ir,...Re,children:"Verico FAQ"})]})]}),k=e.jsx(X,{}),o[11]=f,o[12]=k):(f=o[11],k=o[12]);let v,F;o[13]===Symbol.for("react.memo_cache_sentinel")?(v=e.jsxs(ae,{children:[e.jsx(le,{children:"SPECIAL EVENTS"}),e.jsx(Q,{children:"Special events collect limited-time prize activity that does not fit the regular Ranked, Frontier, or Land cadence. The 8th Anniversary Fortune Draws are shown here so you can review your entries and jump back to the event shop."})]}),F=e.jsx(X,{}),o[13]=v,o[14]=F):(v=o[13],F=o[14]);let m,z;o[15]===Symbol.for("react.memo_cache_sentinel")?(m=e.jsx(le,{children:"LAND"}),z=e.jsx(Q,{children:"Land events use eligible plots and staked cards to participate in drops such as Verico Alteration, Glint Recovery, and Fortune Seeker. To get started, visit Land, review your plots, stake the required cards, and check this panel for upcoming timers and event history."}),o[15]=m,o[16]=z):(m=o[15],z=o[16]);let p,T;o[17]===Symbol.for("react.memo_cache_sentinel")?(p=e.jsxs(ae,{children:[m,z,e.jsx(Ee,{children:e.jsx(ie,{href:ar,children:"Land"})})]}),T=e.jsx(X,{}),o[17]=p,o[18]=T):(p=o[17],T=o[18]);let N;o[19]===Symbol.for("react.memo_cache_sentinel")?(N=e.jsx(le,{children:"RANKED FORTUNE DRAWS"}),o[19]=N):N=o[19];let V,W;o[20]===Symbol.for("react.memo_cache_sentinel")?(V=e.jsxs(ae,{children:[N,e.jsxs(sr,{children:[e.jsx(Te,{src:rr,alt:"Ranked Fortune Draw entry icon"}),e.jsx(Te,{src:tr,alt:"Frontier entry icon"})]}),e.jsx(Q,{children:"Ranked Fortune Draw entries require a Fortune Pass. Frontier Fortune Draw entries do not require a Fortune Pass. When a draw ends, Claim Center keeps CHECK PRIZES available if you have outstanding prizes; otherwise the event shows as completed."})]}),W=e.jsx(X,{}),o[20]=V,o[21]=W):(V=o[20],W=o[21]);let M,c;o[22]===Symbol.for("react.memo_cache_sentinel")?(M=e.jsx(Q,{css:{textAlign:"center",fontStyle:"italic"},children:"Have questions?"}),c=e.jsx(Ko,{type:"button",onClick:ur,children:"CONTACT SUPPORT"}),o[22]=M,o[23]=c):(M=o[22],c=o[23]);let I;return o[24]!==x||o[25]!==a?(I=e.jsxs(Mo,{isAcademyPanelOpen:x,onClosePanel:a,children:[g,u,A,f,k,v,F,p,T,V,W,M,c]}),o[24]=x,o[25]=a,o[26]=I):I=o[26],I};function ur(){return window.open("https://support.splinterlands.com/hc/en-us","_blank","noopener,noreferrer")}const gr=()=>{const t=Ae.c(5);let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={season_group:"escalation"},t[0]=o):o=t[0];const{data:a}=fo(o);let x;t[1]!==a?(x=Array.isArray(a)?a.find(hr):void 0,t[1]=a,t[2]=x):x=t[2];const g=x;if(!g)return null;let u;return t[3]!==g?(u=e.jsx(Uo,{currentSeason:g}),t[3]=g,t[4]=u):u=t[4],u};function hr(t){return!t.reset_block_num}const br="".concat(window.config.SL_ASSETS_URL,"/splinterbites_bg/bg_splinterbites_32.jpg"),Pe="/land/overview/praetoria",fr=n(s,{margin:"16px auto 24px",border:"1px solid #786A2F",borderRadius:4,overflow:"hidden",backgroundColor:"rgba(4, 7, 12, 0.9)",backgroundImage:"linear-gradient(180deg, rgba(3, 5, 10, 0.62), rgba(3, 5, 10, 0.9)), url(".concat(br,")"),backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center",boxShadow:"0 8px 18px rgba(0, 0, 0, 0.44)"}),Cr=n(s,{color:"#F1D58E",font:"normal normal bold 22px/26px Beaufort Pro",textAlign:"center",textTransform:"uppercase",padding:"14px 14px 4px"}),wr=n("button",{all:"unset",display:"block",boxSizing:"border-box",width:"calc(100% - 28px)",margin:"8px 14px 14px",padding:"12px 14px",background:"rgba(0, 0, 0, 0.62)",border:"1px solid rgba(240, 210, 138, 0.72)",borderRadius:4,color:"#F0D28A",cursor:"pointer",font:"normal normal bold 14px/18px Proxima Nova",textAlign:"center","&:hover":{borderColor:"#17C4CD",color:"#FFFFFF"},"&:focus":{outline:"solid 1px rgba(255, 255, 255, 0.6)"}}),Ar=n(s,{padding:"0 14px 14px"}),yr=n("button",{all:"unset",display:"grid",gridTemplateColumns:"90px minmax(140px, 1fr) minmax(130px, 170px
1) 34px",alignItems:"center",width:"100%",minHeight:42,boxSizing:"border-box",padding:"8px 10px",background:"rgba(0, 0, 0, 0.62)",color:"#FFFFFF",cursor:"pointer","&:nth-child(odd)":{background:"rgba(3, 12, 18, 0.72)"},"&:hover":{outline:"1px solid #17C4CD"},"&:focus":{outline:"solid 1px rgba(255, 255, 255, 0.6)"},"@smRev":{gridTemplateColumns:"62px minmax(96px, 1fr) minmax(86px, 116px) 28px",padding:"8px 6px"}}),jr=n(d,{display:"grid",gridTemplateColumns:"90px minmax(140px, 1fr) minmax(130px, 170px) 34px",padding:"8px 10px",color:"#FFEDA0",font:"normal normal bold 12px/14px Proxima Nova","@smRev":{gridTemplateColumns:"62px minmax(96px, 1fr) minmax(86px, 116px) 28px",padding:"8px 6px"}}),U=n(s,{minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",font:"normal normal bold 14px/18px Proxima Nova","@smRev":{font:"normal normal bold 12px/16px Proxima Nova"}}),Fr=n(d,{justifyContent:"center"}),Sr=n(s,{padding:"14px",background:"rgba(0, 0, 0, 0.62)",color:"#D8DDF4",font:"normal normal normal 14px/18px Proxima Nova",textAlign:"center"}),De=t=>{if(!t.last_claimed)return 0;const o=new Date(t.last_claimed).getTime();return Number.isNaN(o)?0:o},kr=t=>[...t!=null?t:[]].filter(o=>{var a;return((a=o.plots_owned)!=null?a:0)>0}).sort((o,a)=>De(o)-De(a)),vr=(t,o,a)=>t==="Concluded"||t==="Claimed"||t==="Ineligible"?!1:t==="All"?!0:a?t==="Active"||t==="Claimable":t==="Coming Soon"?!o:t==="Active"||t==="Claimable"||t==="Processing"?o:!0,Rr=({statusFilter:t="All"})=>{var W,M;const o=ye(),a=Ye(),x=Co(wo),g=x,u=Ze(),[A]=Ao(),{data:y,refetch:L}=yo({player:g},{skip:!g}),[D,h]=R.useState(!1),[C,j]=R.useState(""),[S,b]=R.useState(""),[f,k]=R.useState(!1),v=Number((W=y==null?void 0:y.pending_claim_amount)!=null?W:0),{data:F,isLoading:m}=jo({player:x},{skip:!x}),z=R.useMemo(()=>{var c;return kr((c=F==null?void 0:F.regions)==null?void 0:c.items)},[(M=F==null?void 0:F.regions)==null?void 0:M.items]),p=z.length>0,T=c=>{var I,$;if(!c)return null;try{const E=JSON.parse(c),O=($=(I=E==null?void 0:E.result)==null?void 0:I.data)==null?void 0:$.claimed_amount;if(O==null)return null;const P=Number(O);return Number.isFinite(P)?P.toString():String(O)}catch(E){return null}},N=R.useCallback(async()=>{var c,I,$,E,O;if(!g){j("EVP Claim"),b("Please sign in before claiming EVP."),h(!0);return}k(!0),a(Fo("Claiming EVP...")),a(te(!0));try{const P=await A({player:g}).unwrap();if(Number((c=P==null?void 0:P.pending_claim_amount)!=null?c:0)<=0){j("No EVP available to claim"),b(e.jsxs(e.Fragment,{children:[e.jsx("div",{children:"No available EVP to claim at this time."}),e.jsxs("div",{children:["To get started, buy an ElectroFox card from the"," ",e.jsx(G,{onClick:()=>o("/market/card-sales"),color:"flatGreen",css:{minWidth:"auto"},children:"Card Market"}),"."]})]})),h(!0),a(te(!1));return}const w=await u({id:"sm_claim_land_evp",data:{},synchronous:!0});if(a(te(!1)),w!=null&&w.error||!((I=w==null?void 0:w.data)!=null&&I.success)){const Z=(($=w==null?void 0:w.data)==null?void 0:$.error)||(typeof(w==null?void 0:w.error)=="string"?w.error:"An error occurred while claiming EVP.");j("EVP claim failed"),b(Z),h(!0);return}const re=T((E=w==null?void 0:w.data)==null?void 0:E.result);L(),j("EVP claimed successfully"),b(re?"You claimed ".concat(re," EVP."):"Your EVP claim transaction completed successfully. Transaction ID: ".concat((O=w.data)==null?void 0:O.id)),h(!0)}catch(P){const K=typeof(P==null?void 0:P.message)=="string"?P.message:"An error occurred while claiming EVP.";j("EVP claim failed"),b(K),h(!0)}finally{a(te(!1)),k(!1)}},[u,a,A,o,g,L]);if(!vr(t,p,m))return null;const V=c=>{if(!z.length||!c.region_uid){o(Pe);return}a(vo({name:c.name,region_number:c.region_number,uid:c.region_uid})),o("/land/praetoria/".concat(c.region_number,"/production/overview"))};return e.jsxs(fr,{role:"region","aria-label":"Harvest Land Resources",children:[e.jsxs(d,{css:{alignItems:"center",justifyContent:"space-between",gap:"12px",padding:"14px",flexWrap:"wrap"},children:[e.jsx(Cr,{css:{padding:0,textAlign:"left"},children:"Harvest Land Resources"}),e.jsx(G,{color:"darkBlue",css:{minWidth:"130px",boxShadow:"0 0 8px rgba(0, 204, 209, 0.55), inset 0px 0px 10px #00424B","&:hover":{boxShadow:"0 0 12px rgba(0, 204, 209, 0.75), inset 0px 0px 10px #00424B"}},onClick:N,isDisabled:f,children:v>0?"Claim EVP (".concat(v,")"):"Claim EVP"})]}),!p&&!m&&e.jsx(wr,{type:"button",onClick:()=>o(Pe),children:"No plots owned, visit Land to learn how to produce your own resources for crafting and trade!"}),(p||m)&&e.jsxs(Ar,{children:[e.jsxs(jr,{"aria-hidden":"true",children:[e.jsx(U,{children:"Region #"}),e.jsx(U,{children:"Name"}),e.jsx(U,{children:"Last Harvested"}),e.jsx(U,{})]}),m&&e.jsx(Sr,{children:"Loading land claim data..."}),!m&&z.map(c=>{const I=c.last_claimed?So(new Date(c.last_claimed)):"0",$=c.region_number?c.region_number.toString():"0";return e.jsxs(yr,{type:"button","aria-label":"Open land production overview for region ".concat($,", ").concat(c.name,". Last harvested ").concat(I,"."),onClick:()=>V(c),children:[e.jsx(U,{children:$}),e.jsx(U,{children:c.name||"0"}),e.jsx(U,{children:I}),e.jsx(Fr,{children:e.jsx(oe,{src:"".concat(window.config.SL_ASSETS_URL,"/ui_elements/lands/regionProductionOverview/icon_arrow.svg"),alt:"","aria-hidden":"true",css:{width:13,height:16}})})]},c.region_uid||"empty-land-claim-row")})]})," ",e.jsx(ko,{open:D,title:C,text:e.jsxs(d,{css:{flexDirection:"column",gap:"12px",textAlign:"center"},children:[e.jsx(s,{css:{color:"#FFFFFF",fontSize:"22px",fontWeight:700,lineHeight:"24px"},children:C}),e.jsx(s,{css:{color:"#D8E5EB",fontSize:"14px",lineHeight:"20px",a:{color:"#8BEED7",fontWeight:700,textDecoration:"underline"}},children:S})]}),cancelButton:e.jsx(G,{type:"button",color:"flatGreen",onClick:()=>h(!1),css:{width:"140px"},children:"OK"}),confirmButton:C==="EVP claimed successfully"?e.jsx(G,{type:"button",color:"flatGreen",onClick:()=>o("/shop/rewards"),css:{width:"140px"},children:"SPEND EVP"}):null,contentProps:{css:{top:"46%",maxWidth:"560px"},overlayCss:{background:"rgba(0, 0, 0, 0.85)"}}})]})},Tr=["All","Ranked","8th Anniversary","Land"],Er=["All","Active","Claimable","Coming Soon","Concluded"],Pr=["8th Anniversary","land","ranked-draws"],Dr="".concat(window.config.SL_ASSETS_URL,"/ui_elements/zyriel_promo/bg_shop_life-death.jpg"),Ir="/shop/packs/VERICO",_e="claimCenterViewMode",Br=()=>{try{const t=window.localStorage.getItem(_e);return t==="list"||t==="full"?t:"full"}catch(t){return"full"}},eo=n(s,{minHeight:"100vh",backgroundRepeat:"no-repeat",backgroundAttachment:"fixed",backgroundSize:"cover,
1cover",backgroundPosition:"top center, top center",backgroundImage:"linear-gradient(180deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.58) 100%), url(".concat(Dr,")"),paddingBottom:58,backgroundColor:"#05070D","@mdRev":{paddingBottom:98}}),Lr=n(s,{width:"min(980px, calc(100% - 32px))",margin:"0 auto",paddingTop:32,"@smRev":{width:"calc(100% - 16px)",paddingTop:18}}),Nr=n(s,{marginLeft:"auto",marginRight:12,"@mdRev":{marginRight:8}}),Vr=n(s,{position:"relative",height:85,zIndex:1,"& > div":{bottom:0},"@mdRev":{display:"none"}}),zr=n(d,{gap:12,justifyContent:"center",alignItems:"center",flexWrap:"wrap",marginTop:30,marginBottom:24,"@smRev":{gap:8,marginTop:22,marginBottom:14,alignItems:"stretch"}}),Wr=n("input",{width:300,height:36,boxSizing:"border-box",border:"1px solid #5E6588",borderRadius:4,background:"#000",color:"#FFFFFF",font:"normal normal normal 17px/21px Proxima Nova",padding:"0 14px","&::placeholder":{color:"#7C84A8"},"&:focus":{outline:"solid 1px rgba(255, 255, 255, 0.5)"},"@smRev":{order:1,flex:"1 1 calc(100% - 100px)",width:"auto",minWidth:0,font:"normal normal normal 14px/18px Proxima Nova"}}),Ie=n("select",{width:132,height:36,boxSizing:"border-box",border:"1px solid #5E6588",borderRadius:4,background:"#000",color:"#AEB6D8",font:"normal normal normal 17px/21px Proxima Nova",padding:"0 12px","&:focus":{outline:"solid 1px rgba(255, 255, 255, 0.5)"},"@smRev":{order:3,flex:"1 1 calc(33.333% - 6px)",minWidth:0,font:"normal normal normal 14px/18px Proxima Nova"},"@xsRev":{width:"100%"}}),Mr=n(G,{width:92,height:36,padding:0,fontWeight:"bold","@smRev":{order:3,flex:"1 1 calc(33.333% - 6px)",minWidth:0},"@xsRev":{width:"100%"}}),$r=n(d,{padding:5,"@mdRev":{display:"none"},"@smRev":{order:3,flex:"1 1 calc(33.333% - 6px)",minWidth:0},"@xsRev":{width:"100%"}}),Be=n("button",{display:"flex",backgroundColor:"$black",br:"8px",cursor:"pointer",justifyContent:"center",alignItems:"center",height:25,padding:"0px 10px",variants:{isActive:{true:{background:"transparent radial-gradient(closest-side at 50% 50%, #00E2FF 0%, #006280 100%) 0% 0% no-repeat padding-box"}},isLeft:{true:{borderRadius:"5px 0px 0px 5px",border:"1px solid #FFFFFF"}},isRight:{true:{borderRadius:"0px 5px 5px 0px",borderRight:"1px solid #FFFFFF",borderTop:"1px solid #FFFFFF",borderBottom:"1px solid #FFFFFF"}}},"@smRev":{flex:"1 1 0",width:"auto"}}),Hr=n(s,{display:"block","@mdRev":{display:"none"}}),Gr=n(d,{display:"none","@mdRev":{display:"flex",flexDirection:"column",gap:12}}),Or=n(d,{minHeight:84,alignItems:"center",gap:12,border:"1px solid #42507A",borderRadius:4,backgroundColor:"rgba(23, 28, 48, 0.86)",backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center",boxShadow:"2px 2px 4px rgba(0, 0, 0, 0.45)",padding:"10px 14px 10px 20px",boxSizing:"border-box","& + &":{marginTop:10}}),Kr=n(d,{alignItems:"center",gap:12,minWidth:0}),je=n(oe,{flex:"0 0 42px",size:"42px",objectFit:"contain"}),Ur=n(s,{minWidth:0,flex:"1 1 auto"}),Qr=n(s,{color:"#DBC488",font:"normal normal bold 21px/25px Beaufort Pro",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),qr=n(s,{color:"#D8DDF4",font:"normal normal normal 16px/19px Proxima Nova",marginTop:4,overflowWrap:"anywhere"}),oo=n(s,{flex:"1 1 auto",boxSizing:"border-box",border:"1px solid #D5A642",borderRadius:4,background:"rgba(0, 0, 0, 0.68)",color:"#F0D28A",padding:"3px 8px",font:"normal normal bold 15px/18px Proxima Nova",textAlign:"center","@mdRev":{font:"normal normal bold 12px/15px Proxima Nova"}}),Yr=n(d,{width:"100%",alignItems:"center",gap:4}),ro=n(d,{flex:"0 0 150px",flexDirection:"column",alignItems:"stretch",gap:6}),to=n(s,{borderRadius:4,background:"rgba(0, 0, 0, 0.72)",padding:"7px 10px",boxSizing:"border-box",color:"#FFFFFF",font:"normal normal normal 17px/20px Proxima Nova","@mdRev":{font:"normal normal normal 14px/17px Proxima Nova"}}),he=n(d,{justifyContent:"space-between",gap:10,minWidth:0}),be=n(s,{color:"#9DA6CC",minWidth:0,overflowWrap:"anywhere"}),fe=n(s,{color:"#FFFFFF",textAlign:"right",flex:"0 0 auto",variants:{tone:{green:{color:"#7DFF9A"},gold:{color:"#F0D28A"},red:{color:"#FF7777"}}}}),no=n(G,{flex:"0 0 112px",height:34,boxSizing:"border-box",padding:0,fontWeight:"bold",fontSize:17}),Zr=n(no,{flexBasis:170,height:"auto",minHeight:34,padding:"4px 8px",fontSize:14,lineHeight:"15px",whiteSpace:"normal",overflowWrap:"anywhere",variants:{inactive:{true:{borderColor:"#777",background:"#4A4A4A",color:"#AFAFAF",boxShadow:"none",cursor:"not-allowed","&:hover":{background:"#4A4A4A",color:"#AFAFAF",boxShadow:"none"}}}}}),Xr=n(s,{border:"1px solid #42507A",borderRadius:4,backgroundColor:"rgba(23, 28, 48, 0.88)",backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center",boxShadow:"2px 2px 4px rgba(0, 0, 0, 0.45)",overflow:"hidden"}),Jr=n(s,{background:"linear-gradient(180deg, rgba(5, 7, 13, 0.34) 0%, rgba(5, 7, 13, 0.9) 64%)",padding:"12px 14px 14px"}),_r=n(s,{color:"#DBC488",font:"normal normal bold 22px/24px Beaufort Pro",textAlign:"center",overflowWrap:"anywhere"}),et=n(d,{alignItems:"center",justifyContent:"center",gap:10}),ot=n(je,{flexBasis:"38px",size:"38px"}),rt=n(s,{color:"#F0A528",font:"normal normal normal 16px/20px Proxima Nova",textAlign:"center",marginTop:2,overflowWrap:"anywhere"}),tt=n(d,{display:"grid",gridTemplateColumns:"repeat(2, minmax(0, 1fr))",gap:8,alignItems:"stretch",marginTop:12,"@xsRev":{gridTemplateColumns:"repeat(2, minmax(0, 1fr))"}}),nt=n(to,{width:"100%",minHeight:54,display:"flex",flexDirection:"column",justifyContent:"center",padding:"8px 9px"}),it=n(ro,{flex:"initial",minWidth:0,width:"100%"}),io=n(G,{flex:"initial",width:"100%",minWidth:0,height:"auto",minHeight:54,boxSizing:"border-box",padding:"0 6px",fontWeight:"bold",variants:{inactive:{true:{borderColor:"#777",background:"#4A4A4A",color:"#AFAFAF",boxShadow:"none",cursor:"not-allowed","&:hover":{background:"#4A4A4A",color:"#AFAFAF",boxShadow:"none"}}}}}),at=n(io,{minHeight:54,padding:"5px 6px",fontSize:11,lineHeight:"12px",whiteSpace:"normal",overflowWrap:"anywhere"}),lt=n(oo,{flex:"initial",minWidth:0,width:"100%",minHeight:54,display:"flex",alignItems:"center",justifyContent:"center",padding:"6px 8px"}),st=n(s,{display:"flex",flexDirection:"column",gap:30,"@mdRev":{display:"none"},"@smRev":{gap:22}}),ct=n(s,{}),Le=n(s,{color:"#F0D28A",font:"normal normal bold 22px/26px Beaufort Pro",letterSpacing:0,textTransform:"uppercase",marginBottom:10,paddingLeft:2,textShadow:"0 2px 4px rgba(0, 0, 0, 0.75)","@smRev":{font:"normal normal bold 18px/22px Beaufort Pro"}}),dt=n(Bo,{color:"inherit",textDecoration:"underline",textUnderlineOffset:4,"&:hover":{color:"#FFFFFF"}}),mt=n(s,{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(292px, 1fr))",gap:16,"@smRev":{gridTemplateColumns:"repeat(auto-fit, minmax(168px, 1fr))",gap:12}}),pt=n(s,{position:"relative",minHeight:270,border:"1px solid #42507A",borderRadius:6,backgroundColor:"rgba(7, 10, 18, 0.92)",backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center",boxShadow:"0 8px 18px rgba(0, 0, 0, 0.44)",overflow:"hidden","@smRev":{minHeight:238}}),xt=n(s,{position:"absolute",inset:0,backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center",zIndex:0,variants:{mirrored:{true:{transform:"scaleX(-1)"}}}}),ut=n(s,{position:"absolute",inset:0,zIndex:1,background:"rgba(128, 128, 128, 0.38)",pointerEvents:"none"}),gt=n(d,{position:"relative",zIndex:2,minHeight:"inherit",boxSizing:"border-box",flexDirection:"column",padding:"14px 14px 13px",background:"linear-gradient(180deg, rgba(4, 7, 12, 0.22) 0%, rgba(4, 7, 12, 0.7) 42%, rgba(4, 7, 12, 0.95) 100%)","@smRev":{padding:12}}
1),ht=n(d,{alignItems:"flex-start",gap:10}),bt=n(je,{flexBasis:"46px",size:"46px"}),ft=n(s,{color:"#F1D58E",font:"normal normal bold 21px/23px Beaufort Pro",overflowWrap:"anywhere",textShadow:"0 2px 4px rgba(0, 0, 0, 0.8)","@smRev":{font:"normal normal bold 18px/20px Beaufort Pro"}}),Ct=n(s,{color:"#AEB6D8",font:"normal normal bold 12px/15px Proxima Nova",textTransform:"uppercase",marginTop:2}),wt=n(d,{flex:"1 1 auto",flexDirection:"column",justifyContent:"flex-end",gap:8,minHeight:0}),At=n(s,{color:"#D8DDF4",font:"normal normal normal 14px/18px Proxima Nova",overflowWrap:"anywhere",hyphens:"auto"}),yt=n(d,{display:"grid",gridTemplateColumns:"repeat(2, minmax(0, 1fr))",alignItems:"stretch",gap:8,minWidth:0}),ao=n(s,{borderRadius:4,background:"rgba(0, 0, 0, 0.72)",padding:"7px 10px",boxSizing:"border-box",color:"#FFFFFF",font:"normal normal normal 14px/17px Proxima Nova"}),lo=n(s,{border:"1px solid #D5A642",borderRadius:4,background:"rgba(0, 0, 0, 0.68)",color:"#F0D28A",padding:"7px 8px",boxSizing:"border-box",font:"normal normal bold 13px/15px Proxima Nova",textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",alignContent:"center"}),Ne=n(s,{color:"#AEB6D8",font:"normal normal bold 10px/11px Proxima Nova",textTransform:"uppercase",marginBottom:2}),Ve=n(s,{color:"#F0D28A"}),jt=n(d,{gap:8,alignItems:"stretch"}),Ft=n(d,{gap:8,alignItems:"stretch",minWidth:0}),St=n(ao,{flex:"1 1 0",minWidth:0,height:54,display:"flex",flexDirection:"column",justifyContent:"center"}),kt=n(lo,{flex:"1 1 0",minWidth:0,height:54,padding:"4px 8px"}),so=n(G,{flex:"1 1 0",minWidth:0,height:34,boxSizing:"border-box",padding:"0 6px",fontSize:12,fontWeight:"bold"}),co=n(so,{height:"auto",minHeight:34,lineHeight:"12px",whiteSpace:"normal",overflowWrap:"anywhere",variants:{inactive:{true:{borderColor:"#777",background:"#4A4A4A",color:"#AFAFAF",boxShadow:"none",cursor:"not-allowed","&:hover":{background:"#4A4A4A",color:"#AFAFAF",boxShadow:"none"}}}}}),ze=n(co,{flex:"1 1 0",minHeight:54}),vt=n(s,{border:"1px solid #42507A",borderRadius:4,background:"rgba(15, 17, 28, 0.84)",color:"#D8DDF4",font:"normal normal normal 15px/20px Proxima Nova",textAlign:"center",padding:28}),Ce=n(s,{border:"1px solid #42507A",borderRadius:4,background:"rgba(15, 17, 28, 0.84)",color:"#D8DDF4",font:"normal normal normal 17px/22px Proxima Nova",textAlign:"center",padding:"10px 14px",marginBottom:14,"@mdRev":{font:"normal normal normal 14px/19px Proxima Nova"}}),Rt=n(d,{alignItems:"center",justifyContent:"center",gap:14,marginTop:28}),We=n("button",{all:"unset",width:34,height:34,border:"1px solid #42507A",borderRadius:4,color:"#7C84A8",background:"rgba(15, 17, 28, 0.84)",textAlign:"center",font:"normal normal bold 22px/30px Proxima Nova",cursor:"not-allowed"}),Tt=n(s,{minWidth:94,height:34,border:"1px solid #42507A",borderRadius:4,color:"#D8DDF4",background:"#000",textAlign:"center",font:"normal normal normal 17px/34px Proxima Nova","@mdRev":{font:"normal normal normal 14px/34px Proxima Nova"}}),Et=t=>Number.parseFloat(t.eligibleAmount.replace(/,/g,""))>0?"green":"red",Me=t=>t.description?t.description:t.nextClaimAt?"Next Claim In: ".concat(t.nextClaimAt):t.claimedAt?"Claimed on ".concat(t.claimedAt):t.concludedAt?"Concluded On: ".concat(t.concludedAt):t.status,Y=t=>t.actionLabel?t.actionLabel:t.status==="Claimable"?"Claim":t.status==="Claimed"?"Claimed":t.status==="Processing"?"Wait":"Claim",Pt=t=>t.actionLabel.toUpperCase().startsWith("CHECK PRIZES"),ce=t=>!t.actionDisabled&&Pt(t)?"flatGreen":"darkBlue",Dt=(t,o)=>o==="All"?!0:o==="Ranked"?t.category==="Ranked"||t.category==="Frontier":t.category===o,J=t=>t.status==="Claimable"||t.status==="Processing",Fe=t=>t.status==="Concluded"||t.actionLabel==="Completed",Se=t=>{if(!t.timerTargetAt)return!1;const o=new Date(t.timerTargetAt).getTime();return!Number.isNaN(o)&&o<=Date.now()},_=t=>Fe(t)||Se(t)?"Completed":t.timerTargetAt?e.jsx(Wo,{zerosInsteadOfEmpty:!0,dateString:t.timerTargetAt},t.timerTargetAt):t.nextClaimAt,It=t=>_(t)==="Completed",we=t=>Fe(t)||Se(t),de=t=>Fe(t)||t.timerTargetAt||t.nextClaimAt,mo=t=>t.status==="Coming Soon"&&!!t.timerTargetAt&&!Se(t),$e=t=>{const o=new Date(t.createdAt).getTime();return Number.isNaN(o)?0:o},He=t=>{const o=t.timerTargetAt;if(!o)return 0;const a=new Date(o).getTime();return Number.isNaN(a)?0:Math.max(a-Date.now(),0)},Bt=(t,o)=>{const a=Number(J(o))-Number(J(t));if(a)return a;
1if(J(t)&&J(o)){const x=He(o)-He(t);if(x)return x}return $e(o)-$e(t)},Lt=t=>t.category==="Land"?"land":t.category==="Ranked"||t.category==="Frontier"?"ranked-draws":"8th Anniversary",Nt=t=>t==="ranked-draws"?"Ranked Draws":t==="land"?"Land - Visions of Verico":"8th Anniversary",ee=t=>t.id==="eight-year-anniversary-foil-fortune-draws",Ge=t=>{if(!It(t)&&mo(t))return"Starts in:"},Oe=t=>mo(t)?"Starts in:":"Claim in:",Ke=t=>ee(t)?"center -215px":(t.category==="Ranked"||t.category==="Frontier","center"),Ue=t=>ee(t)?"100% auto":"cover",po=t=>t.source==="ranked-draw"||t.source==="frontier-draw",me=t=>po(t)?"More Info":"History",pe=t=>po(t)?"View more information for ".concat(t.title):"View history for ".concat(t.title),xe=t=>{var a;const o=(a=t==null?void 0:t.data)==null?void 0:a.result;if(o)try{return JSON.parse(o)}catch(x){return}},Vt=t=>{var o,a;return(a=(o=xe(t))==null?void 0:o.prizes)!=null?a:[]},Qe=t=>{var o,a;return(a=(o=xe(t))==null?void 0:o.prizes)!=null?a:[]},zt=t=>{if(!t)return;const o=parseInt(t.editions,10);return Number.isNaN(o)?t.tier:o},Wt=t=>t.mint,Mt=t=>{if([q.Black,q.BlackArcane].includes(t))return"black";if([q.Gold,q.GoldArcane].includes(t))return"gold"},$t=n(d,{paddingTop:40,paddingBottom:42,paddingLeft:20,paddingRight:20,alignItems:"center",flexDirection:"column"}),Ht=n(d,{padding:"28px 0 20px",flexWrap:"wrap",gap:"22px 60px",maxWidth:1200,justifyContent:"center"}),Gt=n(d,{flexDirection:"column",alignItems:"center",gap:10}),Ot=n(s,{border:"2px solid rgba(255, 234, 208, 0.6)",boxShadow:"0px 0px 40px rgba(166, 127, 62, 0.50)"}),qe=n(s,{textAlign:"center",color:"#FFFFFF",font:"normal normal normal 15px/20px Proxima Nova"}),Kt=n(s,{fontSize:32,color:"#8bb9d5",fontFamily:"ZalamanderCaps",textTransform:"uppercase",textAlign:"center",fontWeight:700,lineHeight:"normal",variants:{foil:{gold:{background:"linear-gradient(180deg, #8B6931 6.76%, #EBDB99 67.57%)",backgroundClip:"text",filter:"drop-shadow(0px 0px 36px rgba(255, 183, 0, 0.72))",color:"transparent"},black:{background:"rgba(0, 0, 0, 1)",backgroundClip:"text",textShadow:"0px 0px 6px #EFB7FF",color:"#000"}}}}),Ut=n(d,{gap:16,flexWrap:"wrap",justifyContent:"center"}),Qt=t=>{const o=Ae.c(30),{prizes:a,onBack:x}=t,g=ye(),{data:u}=Eo(null),{data:A}=Po();let y;o[0]!==x?(y=e.jsx(Xe,{onGoBackTitle:"CLAIM CENTER",onGoBack:x,headerTitle:"PRIZE CLAIM",sticky:!0}),o[0]=x,o[1]=y):y=o[1];let L;o[2]===Symbol.for("react.memo_cache_sentinel")?(L=e.jsx(Je,{message:"Prize Results",singleLine:!0,css:{fontSize:30,color:"#DBC488"}}),o[2]=L):L=o[2];let D;o[3]!==a.length?(D=a.length===0&&e.jsx(qe,{children:"No prizes were returned for this claim."}),o[3]=a.length,o[4]=D):D=o[4];let h;if(o[5]!==u||o[6]!==a||o[7]!==A){let F;o[9]!==u||o[10]!==A?(F=(m,z)=>{var W,M;const p=u==null?void 0:u.find(c=>c.id===m.card_detail_id),T=m==null?void 0:m.foil,N=zt(p),V=p&&N!=null&&A?Lo({details:p,edition:N,gold:T>q.Regular,settings:A}):void 0;return e.jsxs(Gt,{children:[e.jsx(Ot,{children:p&&A&&N!=null&&e.jsx(No,{edition:N,qty:1,isGold:[q.Gold,q.GoldArcane].includes(T),foil:T,mint:Wt(m),cardDetail:p,xp:V!=null?V:1,bigCard:!1,settings:A,level:Vo(T,p==null?void 0:p.rarity)})}),e.jsx(qe,{children:(W=p==null?void 0:p.name)!=null?W:"Verico Card"}),e.jsx(Kt,{foil:Mt(T),children:(M=zo[T])!=null?M:"Foil"})]},"".concat(m.id,"-").concat(z))},o[9]=u,o[10]=A,o[11]=F):F=o[11],h=a.map(F),o[5]=u,o[6]=a,o[7]=A,o[8]=h}else h=o[8];let C;o[12]!==D||o[13]!==h?(C=e.jsxs(Ht,{children:[D,h]}),o[12]=D,o[13]=h,o[14]=C):C=o[14];let j;o[15]===Symbol.for("react.memo_cache_sentinel")?(j={width:180},o[15]=j):j=o[15];let S;o[16]!==x?(S=e.jsx(G,{color:"flatGreen",css:j,onClick:x,children:"CONTINUE"}),o[16]=x,o[17]=S):S=o[17];let b;o[18]!==g||o[19]!==a.length?(b=a.length>0&&e.jsx(G,{color:"hollowGreyBlue",css:{width:180},onClick:()=>g("/user/collection"),children:"VIEW IN COLLECTION"}),o[18]=g,o[19]=a.length,o[20]=b):b=o[20];let f;o[21]!==S||o[22]!==b?(f=e.jsxs(Ut,{children:[S,b]}),o[21]=S,o[22]=b,o[23]=f):f=o[23];let k;o[24]!==C||o[25]!==f?(k=e.jsxs($t,{children:[L,C,f]}),o[24]=C,o[25]=f,o[26]=k):k=o[26];let v;return o[27]!==y||o[28]!==k?(v=e.jsxs(eo,{children:[y,k]}),o[27]=y,o[28]=k,o[29]=v):v=o[29],v},hn=()=>{const t=ye(),o=Ye(),a=qo(),x=Yo(),g=Xo(),u=Jo(),A=Ze(),{events:y,realDataLoading:L,realDataError:D,realDataEmpty:h}
1=Qo(),[C,j]=R.useState(""),[S,b]=R.useState("All"),[f,k]=R.useState("All"),[v,F]=R.useState(Br),[m,z]=R.useState(),[p,T]=R.useState([]),[N,V]=R.useState(null),[W,M]=R.useState(!1),c=R.useMemo(()=>{if(!p.length)return 0;const r=p.reduce((l,i)=>ne(i.created_date).isBefore(l)?ne(i.created_date):l,ne(p[0].created_date));return Math.ceil(ne().diff(r,"day",!0))},[p]),I=()=>{j(""),b("All"),k("All")},$=r=>{F(r);try{window.localStorage.setItem(_e,r)}catch(l){}},E=R.useMemo(()=>{const r=C.trim().toLowerCase();return y.filter(l=>{const i=!r||l.title.toLowerCase().includes(r)||l.eventType.toLowerCase().includes(r)||l.category.toLowerCase().includes(r),B=Dt(l,S),bo=f==="All"||(f==="Active"?J(l):l.status===f);return i&&B&&bo}).sort(Bt)},[S,y,C,f]),O=R.useMemo(()=>Pr.map(r=>({section:r,events:E.filter(l=>Lt(l)===r)})).filter(({events:r})=>r.length>0),[E]),P=r=>{var l;t((l=r.historyPath)!=null?l:"/claim-center/".concat(r.id,"/history"))},K=async r=>{var i;if(!r.actionKind||r.actionDisabled||m||(r.actionKind==="claim-ranked-draw"||r.actionKind==="claim-frontier-draw")&&r.sourceId==null)return;z(r.id);const l=await(async()=>r.actionKind==="claim-ranked-draw"?a({ranked_draw_id:r.sourceId}).catch(()=>{}):r.actionKind==="claim-frontier-draw"?x({frontier_draw_id:r.sourceId}).catch(()=>{}):r.actionKind==="claim-glint-bomb"?g().catch(()=>{}):r.actionKind==="claim-eight-year-anniversary"?u().catch(()=>{}):A({id:r.actionKind==="claim-skin-factory"?"sm_claim_skin_factory":"sm_claim_fortune_seeker",data:{},synchronous:!0}).catch(()=>{}))();if((i=l==null?void 0:l.data)!=null&&i.success){if(r.actionKind==="claim-ranked-draw"){const B=xe(l);B&&t("/ranked-draw/fortune-draw-claim",{state:B})}if(r.actionKind==="claim-frontier-draw"){const B=xe(l);B&&t("/frontier/fortune-draw-claim",{state:B})}if(r.actionKind==="claim-glint-bomb"){const B=Vt(l);B.length>0&&T(B)}r.actionKind==="claim-fortune-seeker"&&V(Qe(l)),r.actionKind==="claim-eight-year-anniversary"&&V(Qe(l)),o(Do.util.invalidateTags(r.actionKind==="claim-ranked-draw"?["CardsCollection","RankedDrawStatus","RankedDrawEntries"]:r.actionKind==="claim-frontier-draw"?["CardsCollection","FrontierDrawStatus","FrontierDrawEntries"]:r.actionKind==="claim-glint-bomb"?["VericoPrizes"]:r.actionKind==="claim-fortune-seeker"?["CardsCollection","VericoPrizes"]:r.actionKind==="claim-eight-year-anniversary"?["EightAnniversaryPrizes"]:["VericoPrizes"]))}z(void 0)};if(p.length>0)return e.jsx(Zo,{onBack:()=>T([]),glintBombResult:p,daysClaimed:c,backPath:"/claim-center",backTitle:"CLAIM CENTER"});if(N)return e.jsx(Qt,{prizes:N,onBack:()=>V(null)});const w=(r,l=!1)=>de(r)&&e.jsx(Yr,{css:l?{width:"100%",justifyContent:"center",margin:"10px auto 0","& > *":{flex:"0 1 150px",minWidth:132}}:{margin:"0 auto"},children:e.jsx(oo,{children:_(r)})}),re=r=>de(r)&&e.jsxs(lt,{children:[Ge(r)&&e.jsxs(Io,{children:[Ge(r)," "]}),_(r)]}),Z=r=>{var l;return(l=r.statRows)!=null&&l.length?r.statRows.map(i=>e.jsxs(he,{children:[e.jsx(be,{children:i.label}),e.jsx(fe,{children:i.value})]},i.label)):e.jsxs(e.Fragment,{children:[e.jsxs(he,{children:[e.jsx(be,{children:r.category==="Land"?"My Plots:":"My Entries:"}),e.jsx(fe,{tone:Et(r),children:r.eligibleAmount})]}),e.jsxs(he,{children:[e.jsx(be,{children:r.category==="Land"?"Participating:":"Total:"}),e.jsx(fe,{children:r.globalAmount})]})]})},ke=(r,l=!1)=>{const i=l?it:ro,B=l?nt:to;return e.jsxs(i,{children:[!l&&w(r),e.jsx(B,{children:Z(r)})]})},ve=(r,l=!1)=>{const i=l?_r:Qr;return e.jsx(i,{children:r.title})},xo=r=>e.jsx(ft,{children:r.title}),uo=r=>e.jsxs(yt,{children:[e.jsx(ao,{children:Z(r)}),de(r)&&e.jsxs(lo,{children:[e.jsx(Ne,{children:Oe(r)}),e.jsx(Ve,{children:_(r)})]})]}),go=r=>e.jsxs(Ft,{children:[e.jsx(St,{children:Z(r)}),de(r)&&e.jsxs(kt,{children:[e.jsx(Ne,{children:Oe(r)}),e.jsx(Ve,{children:_(r)})]}),e.jsx(ze,{color:"outlinedBlue","aria-label":pe(r),onClick:()=>P(r),children:me(r)}),e.jsx(ze,{type:"button",color:ce(r),inactive:r.actionDisabled,disabled:r.actionDisabled||m===r.id,title:r.actionUnavailableReason,"aria-label":"".concat(Y(r)," for ").concat(r.title),onClick:()=>
1K(r),children:m===r.id?"CLAIMING...":Y(r)})]}),ho=r=>{const l=Nt(r);return r==="land"?e.jsx(Le,{children:e.jsx(dt,{to:Ir,children:l})}):e.jsx(Le,{children:l})};return e.jsxs(eo,{children:[e.jsx(Xe,{onGoBackTitle:"OPEN",onGoBack:()=>t("/menu-page/open"),headerTitle:"CLAIM OVERVIEW",sticky:!0,content:e.jsx(Nr,{children:e.jsx($o,{isPanelOpen:W,localStorageKey:Ho.CLAIM_CENTER,onAcademyClick:()=>M(r=>!r)})})}),e.jsx(Vr,{children:e.jsx(gr,{})}),e.jsx(xr,{isAcademyPanelOpen:W,onClosePanel:()=>M(!1)}),e.jsxs(Lr,{children:[e.jsx(Je,{message:"Claim Center",singleLine:!0,css:{maxWidth:"100%",fontSize:34,lineHeight:"36px",color:"#DBC488","@smRev":{fontSize:30,lineHeight:"32px"},"@xsRev":{fontSize:26,lineHeight:"28px"}},messageCss:{whiteSpace:"nowrap"}}),e.jsxs(zr,{children:[e.jsx(Wr,{value:C,onChange:r=>j(r.target.value),placeholder:"Search Events...","aria-label":"Search events"}),e.jsx(Ie,{value:S,onChange:r=>b(r.target.value),"aria-label":"Event category",children:Tr.map(r=>e.jsx("option",{value:r,children:r==="All"?"All Events":r},r))}),e.jsx(Ie,{value:f,onChange:r=>k(r.target.value),"aria-label":"Event status",children:Er.map(r=>e.jsx("option",{value:r,children:r==="All"?"All Statuses":r},r))}),e.jsx(Mr,{type:"button",color:"outlinedBlue",onClick:I,children:"Reset"}),e.jsxs($r,{"aria-label":"Claim Center view mode",children:[e.jsx(Be,{type:"button",isActive:v==="full",isLeft:!0,"aria-label":"Full view",title:"Full view",onClick:()=>$("full"),children:e.jsx(Ro,{})}),e.jsx(Be,{type:"button",isActive:v==="list",isRight:!0,"aria-label":"List view",title:"List view",onClick:()=>$("list"),children:e.jsx(To,{})})]})]}),L&&e.jsx(Ce,{children:"Loading Ranked and Frontier weekly Fortune Draw data..."}),D&&e.jsx(Ce,{children:"Unable to load weekly Fortune Draw data. Static placeholder events remain visible."}),h&&e.jsx(Ce,{children:"No Ranked or Frontier weekly Fortune Draw rows were returned. Static placeholder events remain visible."}),E.length===0&&e.jsx(vt,{children:"No claim events match the current search and filters."}),E.length>0&&v==="full"&&e.jsx(st,{children:O.map(({section:r,events:l})=>e.jsxs(ct,{children:[ho(r),e.jsx(mt,{children:l.map(i=>{var B;return e.jsxs(pt,{css:{borderColor:(B=i.outlineColor)!=null?B:"#42507A",boxShadow:i.outlineColor?"0 0 0 1px ".concat(i.outlineColor,"66, 0 8px 18px rgba(0, 0, 0, 0.44)"):"0 8px 18px rgba(0, 0, 0, 0.44)",backgroundImage:ee(i)?"none":"url(".concat(i.image,")"),backgroundPosition:Ke(i),backgroundSize:Ue(i)},children:[ee(i)&&e.jsx(xt,{mirrored:!0,"aria-hidden":"true",css:{backgroundImage:"url(".concat(i.image,")"),backgroundPosition:Ke(i),backgroundSize:Ue(i)}}),we(i)&&e.jsx(ut,{"aria-hidden":"true"}),e.jsxs(gt,{children:[e.jsxs(ht,{children:[i.icon&&e.jsx(bt,{src:i.icon,alt:"","aria-hidden":"true"}),e.jsxs(s,{css:{minWidth:0},children:[xo(i),i.category!=="Land"&&e.jsx(Ct,{children:i.eventType})]})]}),e.jsxs(wt,{children:[e.jsx(At,{children:i.description||Me(i)}),ee(i)?go(i):e.jsxs(e.Fragment,{children:[uo(i),e.jsxs(jt,{children:[e.jsx(so,{color:"outlinedBlue","aria-label":pe(i),onClick:()=>P(i),children:me(i)}),e.jsx(co,{type:"button",color:ce(i),inactive:i.actionDisabled,disabled:i.actionDisabled||m===i.id,title:i.actionUnavailableReason,"aria-label":"".concat(Y(i)," for ").concat(i.title),onClick:()=>K(i),children:m===i.id?"CLAIMING...":Y(i)})]})]})]})]})]},i.id)})}),r==="land"&&e.jsx(Rr,{statusFilter:f})]},r))}),E.length>0&&v==="list"&&e.jsx(Hr,{children:E.map(r=>{var l;return e.jsxs(Or,{css:{borderColor:(l=r.outlineColor)!=null?l:"#42507A",boxShadow:r.outlineColor?"0 0 0 1px ".concat(r.outlineColor,"66, 2px 2px 4px rgba(0, 0, 0, 0.45)"):"2px 2px 4px rgba(0, 0, 0, 0.45)",backgroundImage:we(r)?"linear-gradient(90deg, rgba(94, 94, 94, 0.78) 0%, rgba(28, 30, 38, 0.94) 62%), url(".concat(r.image,")"):"linear-gradient(90deg, rgba(1, 49, 27, 0.75) 0%, rgba(23, 28, 48, 0.92) 62%), url(".concat(r.image,")")},children:[e.jsx(Ur,{children:e.jsxs(Kr,{children:[r.icon&&e.jsx(je,{src:r.icon,alt:"","aria-hidden":"true"}),e.jsxs(s,{css:{minWidth:0},children:[ve(r),r.description&&e.jsx(qr,{children:r.description})]})]})}),ke(r),e.jsx(no,{color:"outlinedBlue","aria-label":pe(r),onClick:()=>P(r),children:me(r)}),e.jsx(Zr,{type:"button",color:ce(r),inactive:r.actionDisabled,disabled:r.actionDisabled||m===r.id,title:r.actionUnavailableReason,"aria-label":"".concat(r.actionLabel," for ").concat(r.title),onClick:()=>
1K(r),children:m===r.id?"CLAIMING...":r.actionLabel})]},r.id)})}),E.length>0&&e.jsx(Gr,{children:E.map(r=>{var l;return e.jsx(Xr,{css:{borderColor:(l=r.outlineColor)!=null?l:"#42507A",boxShadow:r.outlineColor?"0 0 0 1px ".concat(r.outlineColor,"66, 2px 2px 4px rgba(0, 0, 0, 0.45)"):"2px 2px 4px rgba(0, 0, 0, 0.45)",backgroundImage:we(r)?"linear-gradient(90deg, rgba(94, 94, 94, 0.76) 0%, rgba(22, 24, 31, 0.9) 100%), url(".concat(r.image,")"):"linear-gradient(90deg, rgba(5, 7, 13, 0.48) 0%, rgba(5, 7, 13, 0.56) 100%), url(".concat(r.image,")")},children:e.jsxs(Jr,{children:[e.jsxs(et,{children:[r.icon&&e.jsx(ot,{src:r.icon,alt:"","aria-hidden":"true"}),ve(r,!0)]}),e.jsx(rt,{children:r.description||Me(r)}),e.jsxs(tt,{children:[ke(r,!0),re(r),e.jsx(io,{color:"outlinedBlue","aria-label":pe(r),onClick:()=>P(r),children:me(r)}),e.jsx(at,{type:"button",color:ce(r),inactive:r.actionDisabled,disabled:r.actionDisabled||m===r.id,title:r.actionUnavailableReason,"aria-label":"".concat(Y(r)," for ").concat(r.title),onClick:()=>K(r),children:m===r.id?"CLAIMING...":Y(r)})]})]})},r.id)})}),e.jsxs(Rt,{"aria-label":"Claim Center pagination",children:[e.jsx(We,{type:"button",disabled:!0,"aria-label":"Previous page",children:"<"}),e.jsx(Tt,{children:"1 of 1"}),e.jsx(We,{type:"button",disabled:!0,"aria-label":"Next page",children:">"})]})]})]})};export{hn as ClaimCenter,hn 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.