PageSourceSearch

https://matchday.fancraze.com/_next/static/chunks/3853-552e6efd70ca1dd6.js

js fancraze.com collected 2026-09-24 12:02:56 UTC 137,381 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3853],{16526:function(e,l,a){"use strict";a.d(l,{$0:function(){return m},$z:function(){return d},EY:function(){return h},Hu:function(){return p},O9:function(){return o},S6:function(){return v},fO:function(){return c},lx:function(){return u},pb:function(){return x},ru:function(){return y},uW:function(){return g},zJ:function(){return r}});var t=a(10314),i=a(41558),s=a(54056),n=a(61170);let o=function(e){let l=!(arguments.length>1)||void 0===arguments[1]||arguments[1],a=arguments.length>2?arguments[2]:void 0,t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:20,{data:i,error:n,size:o,setSize:r,isValidating:d,mutate:c}=(0,s.Z)((a,i)=>{if(!l)return null;let s="/user-scout/by-player?pageLimit=".concat(t,"&page=").concat(a+1);return e?"".concat(s,"&").concat(e):s},{swr:a},!1);return{data:i,size:o,setSize:r,isValidating:d,isLoading:!i&&!n,mutate:c}},r=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],{data:l,isLoading:a}=(0,n.u)(e?"/moment-groups/filters":null);return{filters:l,isLoading:a}},d=e=>{let{data:l,error:a,mutate:t}=(0,i.Z)("/bucket/summary",{swr:e});return{data:l,isLoading:!a&&!l,mutate:t}},c=()=>{let{data:e,error:l,mutate:a}=(0,i.Z)("/bucket",void 0,!1);return{data:e,isLoading:!l&&!e,mutate:a}},m=()=>(0,t.Z)("/bucket/upsert"),u=()=>(0,t.Z)("/bucket/items"),h=()=>(0,t.Z)("/checkout/process"),v=()=>(0,t.Z)("/bucket"),p=()=>(0,t.Z)("/bucket/summary/validate"),x=function(e){let l=!(arguments.length>1)||void 0===arguments[1]||arguments[1],a=arguments.length>2?arguments[2]:void 0,t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:54,{data:i,error:n,size:o,setSize:r,isValidating:d,mutate:c}=(0,s.Z)((a,i)=>{if(!l)return null;let s="/user-scout/historical?pageLimit=".concat(t,"&page=").concat(a+1);return e?"".concat(s,"&").concat(e):s},{swr:a},!1);return{data:i,size:o,setSize:r,isValidating:d,isLoading:!i&&!n,mutate:c}},g=()=>{let{data:e,error:l,mutate:a}=(0,i.Z)("/bucket/historical",void 0,!1);return{data:e,isLoading:!l&&!e,mutate:a}},y=()=>(0,t.Z)("/bucket/historical/upsert")},30711:function(e,l,a){"use strict";a.d(l,{Z:function(){return s}});var t=a(74817),i=a(49712),s=e=>(0,t.jsx)(i.Z,{...e})},46999:function(e,l,a){"use strict";a.d(l,{Z:function(){return R}});var t=a(74817),i=a(72801),s=a(78201),n=a(22674),o=a(19502),r=a(21774),d=a(27559),c=a(94820),m=a(5023),u=a(41701),h=a(66456),v=a(77883),p=a(16728),x=a(79187),g=a(50748),y=a.n(g),_=a(67833),j=a(71248),f=a(67045),N=a(38912),S=a(67018),b=a(55282),C=a(36570),Z=a(51450),w=a(92297),M=a(3011),I=a(5543),k=a(67960),P=a(24139),E=a(83086),L=a.n(E),R=e=>{var l;let{className:a,isInTeam:g,isPBFC:E,isNets:R,isMultipliers:G=!1,selected:A,multipliers:D,momentSerialNumber:B,momentSourceData:T,momentGroupId:F,player:H,dataL15:U,collectibleScore:O,duplicates:z,onShowDuplicates:W,disabled:K,isLocked:V,isMarket:q,shopPrice:$,fantasyKey:X,selectedBy:Q,liveScore:Y,onClickL1
15:J,onClick:ee,onClickMultiplier:el,isLegendsLeague:ea,daysRemainingToTopUp:et,challengeModeVariant:ei,generalChallengeConfig:es,inSeasonBoost:en,matchStartDate:eo,selectedMultipliers:er,selectedGroups:ed,id:ec,isRental:em=!1,isAvailableForSale:eu,baseCPNotAllowed:eh,isCoachesPage:ev=!1,inChallengeBoost:ep,isHistorical:ex}=e,{imageUrl:eg,metaData:ey,momentClass:e_,quantity:ej,badgeList:ef,listings:eN,lowestAsk:eS,skillType:eb,type:eC}=F,eZ=e_===f.$0.FLASH,ew=(0,C.Ze)(e_,null==O?void 0:O.totalScore),eM=null==T?void 0:T.series,eI=(0,j.useMemo)(()=>{let e=c.XK?"https://media.fancraze.com":"https://storage.googleapis.com/fc-moments-assests-prod",l=(0,Z.PU)(ey.playerSkills);return"".concat(e,"/players-assets/pbfc/").concat(ey.playerId,"/").concat(l.type,".webp")},[ey]),ek=(0,m.Z)({max:"sm"}),{t:eP}=(0,_.Z)("common"),{hasLegendBadge:eE,hasLegendBoostBadge:eL}=(0,S.l)(ef),eR=(0,C.m6)(ex?void 0:null==es?void 0:es.rarityBoostMap,eM||"",e_),eG=e=>(null==J||J(),(0,x.Z)(e)),eA=e=>Number(e.replace("x","")),eD=()=>{var e;let l=(null==U?void 0:null===(e=U.matches)||void 0===e?void 0:e.slice(-5))||[];return l.length<5&&l.unshift(...Array(5-l.length).fill(void 0)),(0,t.jsx)("div",{className:L().graph,children:l.map((e,l)=>{let a=Math.min(100,Number((null==e?void 0:e.playerMatchScore)||0)),i=(0,b.CG)(a),s=Math.max(1,16*a/100);return(0,t.jsx)("div",{style:{backgroundColor:i,height:s},className:L().bar},(null==e?void 0:e.matchId)||l)})})},eB=()=>V||eu?(0,t.jsx)(M.Z,{icon:"lock",text:"LOCKED"}):null,eT=()=>{if(R&&N.gu)return null;let e="";return(q?e=(0,b.dW)(e_):"number"==typeof(null==O?void 0:O.totalScore)?e=O.totalScore.toString():E&&(e="5"),e&&"0"!==e)?(0,t.jsx)(d.Z,{text:"Collectible Points",children:(0,t.jsx)("div",{children:(0,t.jsx)(M.Z,{icon:"0"===e||ew&&eh?"fcScoreAlert":"fcScore",text:"".concat(e," PTS"),color:"0"===e||ew&&eh?"red":"light"})})}):null},eF=()=>Y?(0,t.jsx)(d.Z,{text:"Game Points",children:(0,t.jsx)("div",{children:(0,t.jsx)(M.Z,{style:{backgroundColor:(0,b.CG)(Number(Y))},icon:"graph",text:Math.floor(Number(Y)),color:"lightGreen"})})}):null,eH=()=>{var e;return!eZ&&en&&(0,C.sU)({modeVariant:ei},es,null==T?void 0:T.series)&&(null==es?void 0:es.e4BoostMap)?(0,t.jsx)(d.Z,{text:eP("common:e4-boost-tooltip-superTeam"),children:(0,t.jsx)("div",{children:(0,t.jsx)(M.Z,{classes:{pill:L().e4boost},text:"+".concat(null==es?void 0:null===(e=es.e4BoostMap)||void 0===e?void 0:e[e_],"%")})})}):null},eU=()=>{if(E||!ep||!(null==es?void 0:es.hybridBoostMap))return null;let e=(0,C.IY)(eo,null==es?void 0:es.hybridBoostMap);return(0,t.jsx)(d.Z,{text:eP("common:inChallenge-boost-tooltip-superTeam"),children:(0,t.jsx)("div",{children:(0,t.jsx)(M.Z,{text:"+".concat(null==e?void 0:e[e_],"%")})})})},eO=()=>{if(!E||!(null==es?void 0:es.pbfcPenalty))return null;let e=null==es?void 0:es.pbfcPenalty;return(0,t.jsx)(d.Z,{text:eP("common:pbfc-penalty-tooltip"),children:(0,t.jsx)("div",{children:(0,t.jsx)(M.Z,{classes:{pill:L().pbfcPenaltyPill},text:"-".concat(e,"%")})})})},ez=()=>eL?(0,t.jsx)(d.Z,{text:eP("common:e4-boost-tooltip-superTeam"),children:(0,t.jsx)("div",{children:(0,t.jsx)(M.Z,{classes:{pill:L().legendsBoostBadge},children:(0,t.jsxs)(r.Z,{color:"dark",weight:"medium",size:"xs",className:(0,i.Z)("ws-nowrap",L().legendText),children:[N.ot[e_],"%"]})})})}):null,eW=()=>Q?(0,t.jsx)(d.Z,{text:eP("selected-by",{percent:"".concat(Number(Q).toFixed(),"%")}),children:(0,t.jsxs)("div",{className:(0,i.Z)(L().box,"flex align-center gap5"),children:[(0,t.jsx)(p.Z,{height:"1.5rem",width:"1.5rem"}),(0,t.jsx)(r.Z,{className:"fs10",children:"".concat(Number(Q).toFixed(),"%")})]})}):null,eK=()=>D?(0,t.jsx)(d.Z,{variant:"grey",text:ex?"Simulated Match Data":"Avg. Game Points (".concat(X&&(null==U?void 0:U[X])==="avgL5"?"5":"15","-Match)"),children:(0,t.jsx)("div",{children:(0,t.jsx)(M.Z,{style:{backgroundColor:(0,b.CG)((null==U?void 0:U[X||"avgL15"])||0)},icon:"graph",text:(null==U?void 0:U[X||"avgL15"])||"DNP",color:"lightGreen"})})}):null,eV=()=>(null==eR?void 0:eR.hasBoost)?(0,t.jsx)("div",{className:L().pillContainer,children:(0,t.jsx)(r.Z,{className:(0,i.Z)("fs10",L().text),children:"+".concat(null==eR?void 0:eR.boostValue,"% REWARDS")})}):null,eq=()=>R?null:(0,t.jsxs)("div",{className:"flex align-center gap5 ws-nowrap",children:[eB(),!N.gu&&!G&&eT(),eF(),eH(),eU(),eO()]}),e$=()=>G?(0,t.jsxs)(t.Fragment,{children:[eW(),eK()]}):null,eX=()=>G?null:(0,t.jsxs)(t.Fragment,{children:[eW(),eK()]}),eQ=e=>{let l=e.replace(".","_"),a=eA(e),s=A===e,n=!s&&((null==ed?void 0:ed.includes((null==ec?void 0:ec.toString())||(null==F?void 0:F._id)))||(null==er?void 0:er.includes(e)));return(0,t.jsx)("div",{className:(0,i.Z)(s&&L()["mv".concat(l)]),onClick:()=>null==el?void 0:el(e),children:(0,t.jsxs)("div",{className:(0,i.Z)("relative",n?L().multiplierDisabled:""),children:[s&&(0,t.jsx)("div",{className:L().closeButton,children:(0,t.jsx)(h.Z,{width:"1rem",he
1ight:"1rem"})}),(0,t.jsx)(P.Z,{height:ek?"4.5rem":"5rem",width:ek?"4.5rem":"5rem",count:a,selected:s})]})},e+Math.random())};return(0,t.jsx)("div",{className:a,children:(0,t.jsxs)("div",{className:(0,i.Z)(L().wrapper,K&&L().disabled),onClick:ee,children:[(0,t.jsx)("div",{className:(0,i.Z)("br15 relative",L().border,!A&&!D&&ei&&L()[ei],D?L()["mv".concat(String(A).replace(".","_"))]:A&&L().selected),children:(0,t.jsxs)("div",{className:(0,i.Z)(L().root,!D&&A&&L().selected),children:[(0,t.jsxs)("div",{className:(0,i.Z)(L().image,q&&L().marketImage),children:[eE&&(0,t.jsx)(o.Z,{}),(0,t.jsx)(n.Z,{fill:!0,src:E?eI:eg.thumbnail_small||eg.thumbnail,fallbackSrc:"/assets/fallback/".concat(eC===f.PY.CARD?"card":"moment",".webp"),alt:ey.primaryPlayerName,objectFit:q&&eC!==f.PY.CARD?"contain":"cover",objectPosition:q&&eC!==f.PY.CARD?"center":"top"}),(0,t.jsx)("div",{className:(0,i.Z)(L().edition),children:(0,t.jsx)(s.Z,{serial:eM})}),H?(0,t.jsx)("div",{className:(0,i.Z)(L().box,L().team),children:(0,t.jsx)(r.Z,{className:"fs10",children:H.teamAbbr})}):null,(null==H?void 0:null===(l=H.playingElevenMatchIdList)||void 0===l?void 0:l.length)?(0,t.jsx)("div",{className:(0,i.Z)(L().box,L().playing11),children:(0,t.jsx)(r.Z,{className:"fs10",color:"dark",children:"XI"})}):null]}),(0,t.jsxs)("div",{className:"flex1 flex column gap5",children:[(0,t.jsxs)("div",{className:"flex align-center justify-between wrap",children:[(0,t.jsx)("div",{className:"flex align-center gap5 wrap",children:(0,t.jsxs)(t.Fragment,{children:[e$(),eq(),ev&&ez(),eX(),eV()]})}),!z&&(eh?ew?(0,t.jsxs)("div",{className:"flex align-center gap5",children:[(0,t.jsx)("div",{className:L().box,children:(0,t.jsx)(r.Z,{className:"fs10",children:"TOP-UP REQD"})}),!!et&&(0,t.jsx)(d.Z,{text:"Next Top-Up In",children:(0,t.jsx)("div",{children:(0,t.jsx)(M.Z,{icon:"clock",text:"".concat(et,"d")})})})]}):ew&&et?(0,t.jsx)(d.Z,{text:"Next Top-Up In",children:(0,t.jsx)("div",{children:(0,t.jsx)(M.Z,{icon:"clock",text:"".concat(et,"d")})})}):void 0:null)]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(r.Z,{className:"fs16",weight:"heavy",children:ey.primaryPlayerName}),(0,t.jsx)("div",{className:"flex align-center gap5 mt5",children:eb&&(0,t.jsx)(r.Z,{className:"fs14",color:"smoke",children:(0,Z.PU)(eb).abbr})})]}),(0,t.jsxs)("div",{className:"flex align-center gap10",children:[E?(0,t.jsxs)("div",{className:"flex align-center gap5",children:[(0,t.jsx)(v.Z,{height:"2rem",width:"2rem"}),(0,t.jsx)(r.Z,{className:"fs12",children:"Free Pick"})]}):null,(()=>{if(E||R)return null;let e=eZ||z?"":B&&B>ej?"#/".concat(ej):"".concat(B||"#","/").concat(ej),l="".concat(y()(e_)," ").concat(e);return(0,t.jsxs)("div",{className:"flex align-center gap5",children:[(0,t.jsx)(I.Z,{momentClass:e_,height:"2rem",width:"2rem"}),(0,t.jsx)(r.Z,{className:"fs12",children:l})]})})(),em?(0,t.jsx)("div",{className:L().onloanBadge,children:(0,t.jsx)(r.Z,{className:"fs10",children:"RENTAL"})}):null]}),!q||G?null:eZ?(0,t.jsxs)("div",{className:"flex align-center gap5",children:[(0,t.jsx)(r.Z,{className:"fs12",color:"grey",children:eP("moments:price")}),(0,t.jsx)("span",{children:$?(0,t.jsx)(w.Z,{className:"fs12",color:"grey",value:$}):"-"})]}):(0,t.jsxs)("div",{className:"flex align-center gap5",children:[(0,t.jsxs)(r.Z,{className:"fs12 ws-nowrap",color:"grey",children:[eP("listings"),": ",eN||"-"," •"]}),(0,t.jsxs)(r.Z,{className:"fs12 ws-nowrap",color:"grey",children:[eP("buy-lowest-ask"),":"]}),eS?(0,t.jsx)(w.Z,{className:"fs12",color:"grey",value:eS}):(0,t.jsx)(r.Z,{className:"fs12",color:"grey",children:"-"})]})]}),D?D?(0,t.jsx)("div",{className:"flex flex-center gap5",children:Object.keys(D).sort((e,l)=>eA(l)-eA(e)).map(e=>eQ(e))}):null:D?null:(0,t.jsxs)("div",{className:"flex column align-end gap40",children:[ea?null:(0,t.jsxs)("div",{className:(0,i.Z)(L().stats,ex&&L().historicalStats),onClick:eG,children:[eD(),(0,t.jsx)("div",{style:{backgroundColor:(0,b.CG)((null==U?void 0:U[X||"avgL15"])||0)},className:(0,i.Z)(L().box,L().statText),children:(0,t.jsx)(r.Z,{className:"fs12 ",color:"dark",weight:"heavy",children:(null==U?void 0:U[X||"avgL15"])||"DNP"})}),ex&&(0,t.jsx)(d.Z,{text:"Simulated Match",children:(0,t.jsx)("div",{className:L().jockeyIcon,children:(0,t.jsx)(k.Z,{className:"shrink0"})})})]}),z?(0,t.jsxs)("div",{className:L().duplicates,onClick:W,children:[(0,t.jsx)(r.Z,{className:"fs12",children:z}),(0,t.jsx)(u.Z,{width:"2rem",height:"2rem"})]}):null]})]})}),g?(0,t.jsx)("div",{className:L().inTeam,children:(0,t.jsx)(r.Z,{className:"fs10",children:"IN YOUR TEAM"})}):null]})})}},97169:function(e,l,a){"use strict";a.d(l,{Z:function(){return h}});var t=a(74817),i=a(27559),s=a(5023),n=a(77883),o=a(50748),r=a.n(o),d=a(71248),c=a(67045),m=a(38912),u=a(5543),h=e=>{let{config:l,challengeMode:a}=e,o=(0,s.Z)({max:"md"}),h={className:"inline-block -mb5",height:o?"2rem":"2.5rem",width:o?"2rem":"2.5rem"},v=a===c.hG.HYBRID,{rarityLimits:p,minRarityLimits:x,maxRarityLimits:g}=l,y=[],_=[c.$0.COMMON,c.$0.RARE,c.$0.EPIC,c.$0.LEGENDARY].every(e=>null==p?void 0:p.includes(e)),j=!(null==x?void 0:x.length)&&!(null==g?void 0:g.length),f=e=>o?(0,t.jsx)(u.Z,{...h,momentClass:e}):(0,t.jsx)(i.Z,{variant:"grey",text:r()(e),children:(0,t.jsx)("span",{children:(0,t.jsx)(u.Z,{...h,momentClass:e})})});if(v&&y.push((0,t.jsx)(i.Z,{variant:"grey",text:"Free Pick",children:(0,t.jsxs)("span",{children:[(0,t.jsx)(n.Z,{...h})," | "]},"freePick")})),(_||(null==p?void 0:p[0])==="ALL")&&j)y.push((0,t.jsx)("span",{children:"All Rarities Allowed"},"ALL"));else if((null==p?void 0:p[0])==="ALL")y.push((0,t.jsx)("span",{children:"All Rarities"},"ALL")),x&&(y.push((0,t.jsx)("span",{children:" | Min"},"min")),x.forEach((e,l)=>{y.push((0,t.jsxs)("span",{children:[l?", ":" ",e.count,[...e.momentClasses||[]].sort((e,l)=>m.hx[l]-m.hx[e]).map(e=>{if(e!==c.$0.LEGENDARY)return(0,t.jsxs)(d.Fragment,{children:[" ",f(e)]},e)})]},"minRarityLimits"+l))})),g&&(y.push((0,t.jsx)("span",{children:" | Max"},"max")),g.forEach((e,l)=>{y.push((0,t.jsxs)("span",{children:[l?", ":" ",e.count,[...e.momentClasses].sort((e,l)=>m.hx[l]-m.hx[e]).map((e,l)=>(0,t.jsxs)(d.Fragment,{children:[l?" / ":" ",(0,t.jsx)(u.Z,{...h,momentClass:e})]},e))]},"maxRarityLimits"+l))}));else{let e={};null==x||x.forEach(l=>
1{[...l.momentClasses||[]].forEach(a=>{e[a]||(e[a]={min:0}),e[a].min=(e[a].min||0)+l.count})}),null==g||g.forEach(l=>{[...l.momentClasses||[]].forEach(a=>{e[a]||(e[a]={max:0}),e[a].max=(e[a].max||0)+l.count})}),(null==p?void 0:p.length)&&j&&y.push((0,t.jsx)("span",{children:"Only "},"Only")),[...p||[]].sort((e,l)=>m.hx[e]-m.hx[l]).forEach((l,a)=>{"ALL"!==l&&y.push((0,t.jsxs)("span",{children:[a?" | ":null,e[l]?(0,t.jsxs)(t.Fragment,{children:[e[l].min?"Min ".concat(e[l].min," "):null,e[l].min&&e[l].max?" / ":null,e[l].max&&l!==c.$0.FLASH?"Max ".concat(e[l].max," "):null]}):null,f(l)]},l))}),(null==p?void 0:p.length)&&(null==p?void 0:p.length)===1&&j&&y.push((0,t.jsx)("span",{children:" Allowed"},"Allowed"))}return y}},64951:function(e,l,a){"use strict";a.d(l,{Z:function(){return c}});var t=a(74817),i=a(72801),s=a(21774),n=a(12137),o=a(54529),r=a(39774),d=a.n(r),c=e=>{let{startDate:l,trailingText:a,color:r,size:c,...m}=e,u=(0,o.Z)(l,60),h=Math.max(Math.floor(u/86400),0);return(0,t.jsxs)("div",{className:"flex align-center gap5",children:[(0,t.jsx)(n.Z,{className:(0,i.Z)(r&&d()[r],c&&d()[c])}),(0,t.jsx)(s.Z,{color:r,size:c,...m,children:"".concat(h,"d ").concat(Math.max(Math.floor(u/3600-24*h),0),"h ").concat(Math.max(Math.floor(u%3600/60),0),"m ").concat(a||"")})]})}},23291:function(e,l,a){"use strict";a.d(l,{Z:function(){return m}});var t=a(74817),i=a(21774),s=a(33199),n=a(67045),o=a(97169),r=a(64951),d=a(98286),c=a.n(d),m=e=>{var l,a,d;let{config:m,challenge:u,lineupSerial:h,leftComponent:v,rightComponent:p}=e,{team_a_abbr:x,title_b_abbr:g}=(null==u?void 0:u.matchData)||{},y=(null==u?void 0:u.mode)===n.hG.NETS,_=(null==u?void 0:null===(l=u.leagueDetails)||void 0===l?void 0:l.isLeague)?null==u?void 0:null===(d=u.leagueDetails)||void 0===d?void 0:d.name:"".concat(x," vs ").concat(g);return(0,t.jsxs)("div",{className:c().root,children:[(0,t.jsxs)("div",{className:"flex-auto flex align-center gap10",children:[v,(0,t.jsxs)("div",{className:"flex-auto",children:[(null==u?void 0:u.status)===n.Dj.PUBLISHED&&(0,t.jsx)(r.Z,{startDate:(null==u?void 0:u.startDateTime)||(null==u?void 0:null===(a=u.matchData)||void 0===a?void 0:a.start_date),className:"fs12",color:"grey",size:"sm"}),(0,t.jsxs)("div",{className:"flex align-center gap5",children:[(0,t.jsx)(s.Z,{variant:"h4",children:_}),(0,t.jsx)("div",{className:c().pill,children:(0,t.jsxs)(i.Z,{className:"fs10",children:["TEAM #",h]})})]}),!y&&m&&(0,t.jsx)("div",{className:"flex align-center gap5 mt5",children:(0,t.jsxs)(i.Z,{className:"fs12",color:"grey",children:[(0,t.jsx)("span",{children:"Eligible Rarities: "}),(0,t.jsx)(o.Z,{config:m,challengeMode:null==u?void 0:u.mode})]})})]})]}),p]})}},96297:function(e,l,a){"use strict";a.d(l,{M:function(){return i}});var t=a(71248);let i=(e,l,a)=>{let i=(0,t.useRef)(null);return(0,t.useCallback)(t=>{!l&&e&&a&&(i.current&&i.current.disconnect(),i.current=new IntersectionObserver(t=>{t[0].isIntersecting&&e&&!l&&a()},{rootMargin:"100px",threshold:.1}),t&&i.current.observe(t))},[e,l,a])}},88043:function(e,l,a){"use strict";var t=a(74545),i=a(3402),s=a(5023),n=a(50748),o=a.n(n),r=a(23849),d=a.n(r),c=a(67833),m=a(36497),u=a(35996),h=a(71248),v=a(67045),p=a(16526),x=a(44755);let g=[v.$0.COMMON,v.$0.RARE,v.$0.EPIC];l.Z=function(e,l,a){var n,r,y,_,j;let[f,N]=(0,h.useState)({}),[S,b]=(0,h.useState)([]),[C,Z]=(0,h.useState)(),w=(0,m.useRouter)(),{t:M}=(0,c.Z)("common"),{user:I}=(0,i.Z)(),{enqueueSnackbar:k}=(0,u.Ds)(),P=(0,s.Z)({max:"sm"}),E=w.query.sortBy||"playerASC",L=w.query.ownedCollectibles,R=w.query.slugs,G=w.query.competitionId,A=w.query.teamId,{filters:D}=(0,p.zJ)(w.isReady),B=(0,p.$0)(),{data:T,isLoading:F,mutate:H}=(0,p.fO)(),U=(0,p.S6)(),O=(0,h.useMemo)(()=>(null==T?void 0:T.items)||[],[null==T?void 0:T.items]),z=(0,h.useMemo)(()=>Array.from(new Set(O.map(e=>e.momentGroupId))).join(","),[O]),{data:W,size:K,setSize:V,isValidating:q,isLoading:$,mutate:X}=(0,p.O9)((0,x.OV)(f,{sortBy:E,ownedCollectibles:L,slugs:R,competitionId:G,teamId:A,...e}),w.isReady&&!a,{keepPreviousData:!0},l),{data:Q,isValidating:Y}=(0,p.O9)((0,x.OV)({},{momentGroupIds:z,slugs:R,competitionId:G,teamId:A}),w.isReady&&!!a&&!!z,{keepPreviousData:!0},O.length||1),J=a?Q:W,ee=(0,h.useMemo)(()=>a&&!z?[]:null==J?void 0:J.flatMap(e=>e.playerGroups),[J,a,z]),el=null==W?void 0:null===(r=W[0])||void 0===r?void 0:null===(n=r.pagination)||void 0===n?void 0:n.totalCount,ea=(0,h.useMemo)(()=>null==W?void 0:W.flatMap(e=>e.playerGroups),[W]),et=(null==ea?void 0:ea.length)&&el?ea.length>=el:!q,ei=a||et?void 0:()=>V(K+1),es=!!a&&!!z&&!Q&&Y,en=null==J?void 0:null===(y=J[0])||void 0===y?void 0:y.editionUpgradeScheduleInstance,eo=null==J?void 0:null===(_=J[0])||void 0===_?void 0:_.fcSelectScheduleInstance,er=null==J?void 0:null===(j=J[0])||void 0===j?void 0:j.constants,ed=(0,h.useMemo)(()=>{var e,l;return[...null!==(l=null==W?void 0:null===(e=W[0])||void 0===e?void 0:e.banner)&&void 0!==l?l:[]].filter(e=>"ACTIVE"===e.status).sort((e,l)=>e.priority-l.priority)},[W]),ec=null==en?void 0:en.status,em=null==eo?void 0:eo.status,[eu,eh]=(0,h.useMemo)(()=>er?[er.edition2026E,er.edition202225E]:["",""],[er]),ev=(0,h.useCallback)(e=>{if(!er)return"";switch(e){case v.HI.UPGRADE:return er.upgrade202225E;case v.HI.SINGLES:return er.buyMore2026E;case v.HI.MARKET:return er.buyMore202225E;default:return""}},[er]),ep=(0,h.useCallback)((e,l)=>{var a;return l?null!==(a=e.rarities[l])&&void 0!==a?a:[]:g.flatMap(l=>{var a;return null!==(a=e.rarities[l])&&void 0!==a?a:[]})},[]),ex=(0,h.useCallback)((e,l,a)=>{var t,i;if(!l)return[];let s=e[l];return[...a?null!==(i=null==s?void 0:null===(t=s[a])||void 0===t?void 0:t.listings)&&void 0!==i?i:[]:g.flatMap(e=>{var l,a;return null!==(a=null==s?void 0:null===(l=s[e])||void 0===l?void 0:l.listings)&&void 0!==a?a:[]})].sort((e,l)=>e.price-l.price)},[]),eg=(0,h.useCallback)((e,l)=>{var a;return l?[...(null===(a=e[l])||void 0===a?void 0:a.listings)||[]].sort((e,l)=>e.price-l.price):[]},[]),ey=(0,h.useCallback)((e,l)=>{let a=new Map;return O.filter(a=>
1a.momentGroupId===e&&a.category===l).forEach(e=>{a.set(e.price,(a.get(e.price)||0)+1)}),a},[O]),e_=(0,h.useCallback)((e,l,a)=>{let t=O.filter(a=>a.momentGroupId===e&&a.category===l&&a.featureType===v.xb.MP_UPGRADE),i=new Map;return t.forEach(l=>{let t=a.find(a=>a.momentGroupId===e&&a.price===l.price&&a.featureType===v.xb.MP_UPGRADE);(null==t?void 0:t.listingPrice)!==void 0&&i.set(t.listingPrice,(i.get(t.listingPrice)||0)+1)}),i},[O]),ej=(0,h.useCallback)((e,l,a,t,i)=>{if(l===v.HI.SINGLES){let l=new Map;return e.filter(e=>{if(e.featureType!==v.xb.MP_UPGRADE||void 0===e.listingPrice)return!0;let a=ey(e.momentGroupId,t),i="".concat(e.momentGroupId,":").concat(e.listingPrice),s=a.get(e.listingPrice)||0,n=l.get(i)||0;return!(s>0)||!(n<s)||(l.set(i,n+1),!1)})}if(l===v.HI.MARKET){let l=new Map;return e.filter(e=>{let t=e_(e.momentGroupId,a,i),s="".concat(e.momentGroupId,":").concat(e.price),n=t.get(e.price)||0,o=l.get(s)||0;return!(n>0)||!(o<n)||(l.set(s,o+1),!1)})}return e},[ey,e_]),ef=(0,h.useCallback)((e,l)=>{let a=new Map;return O.forEach(e=>{if(e.category!==l)return;let t="".concat(e.momentGroupId,":").concat(e.price);a.set(t,(a.get(t)||0)+1)}),e.filter(e=>{let l="".concat(e.momentGroupId,":").concat(e.price),t=a.get(l)||0;return!(t>0)||(a.set(l,t-1),!1)})},[O]),eN=(0,h.useCallback)((e,l,a)=>{let t=ev(l),i=ex(e,t,a),s=i;if(l===v.HI.SINGLES||l===v.HI.MARKET){let t=ev(v.HI.SINGLES),n=ev(v.HI.MARKET),o=l===v.HI.MARKET?ex(e,t,a):[];
1s=ej(i,l,t,n,o)}return ef(s,t)},[ev,ex,ej,ef]),eS=(0,h.useCallback)((e,l)=>{let a=ev(l),t=eg(e,a),i=t;if(l===v.HI.SINGLES||l===v.HI.MARKET){let a=ev(v.HI.SINGLES),s=ev(v.HI.MARKET),n=l===v.HI.MARKET?eg(e,a):[];i=ej(t,l,a,s,n)}return ef(i,a)},[ev,eg,ej,ef]),eb=(0,h.useCallback)((e,l,a)=>{let t=new Set(ep(e,a).map(e=>e.momentGroupId)),i=O.filter(e=>e.category===l&&t.has(e.momentGroupId));return{clickCount:i.length,cumulativePrice:i.reduce((e,l)=>e+l.price,0),items:i}},[O,ep]),eC=(0,h.useCallback)((e,l)=>{let a=O.filter(a=>a.category===l&&a.momentGroupId===e.momentGroupId);return{clickCount:a.length,cumulativePrice:a.reduce((e,l)=>e+l.price,0),items:a}},[O]);(0,h.useEffect)(()=>{if(!eu||!eh||!er||!ee)return;let e={title:"#Upgrades",count:0,price:0},l={title:"#".concat(eu).concat(P?"":" Buys"),count:0,price:0},a={title:"#".concat(eh).concat(P?"":" Buys"),count:0,price:0};O.forEach(t=>{t.category===er.upgrade202225E&&(e.count+=1,e.price+=t.price),t.category===er.buyMore2026E&&(l.count+=1,l.price+=t.price),t.category===er.buyMore202225E&&(a.count+=1,a.price+=t.price)}),b([e,l,a]),Z({upgrades:e.count,["".concat(eu,"Buys")]:l.count,["".concat(eh,"Buys")]:a.count,upgradesPrice:e.price,["".concat(eu,"BuysPrice")]:l.price,["".concat(eh,"BuysPrice")]:a.price})},[O,eu,eh,er,P,ee]);let eZ=(0,h.useMemo)(()=>{let e=new Map;
1return(null!=ee?ee:[]).forEach(l=>{g.forEach(a=>{var t;(null!==(t=l.rarities[a])&&void 0!==t?t:[]).forEach(l=>{e.set(l.momentGroupId,a)})})}),g.map(l=>{let a=O.filter(a=>e.get(a.momentGroupId)===l);return{title:o()(l),rarity:l,count:a.length,price:a.reduce((e,l)=>e+l.price,0)}})},[ee,O]),ew=(0,h.useMemo)(()=>{let e=null==en?void 0:en.userLimit;return e?e.totalCounts-e.consumedCounts:0},[null==en?void 0:en.userLimit]),eM=(0,h.useMemo)(()=>er?O.filter(e=>e.category===er.upgrade202225E).length:0,[O,er]),eI=(0,h.useMemo)(()=>d()(e=>{null==B||B.post({items:e}).catch(e=>{422===e.error_code?k(e.message,{variant:"error"}):k(M("request-error"),{variant:"error"})})},500),[B]);(0,h.useEffect)(()=>()=>{eI.cancel()},[eI]);let ek=(0,h.useCallback)(e=>{null==H||H(async()=>T?{...T,items:e}:void 0,{optimisticData:T?{...T,items:e}:void 0,revalidate:!1}),eI(e)},[T,H,eI]),eP=(0,h.useCallback)((e,l,a)=>{if(!I)return(0,t.zB)();let i=ev(l);if(!i)return;if(l===v.HI.UPGRADE&&(0===ew||ew>0&&eM>=ew)){k(M("scout-upgrade-limit-reached"),{variant:"warning"});return}let s=eN(e,l,a)[0];if(!s)return;let n={momentGroupId:s.momentGroupId,slug:s.slug,category:i,price:s.price};s.featureType&&(n.featureType=s.featureType),ek([...O,n])},[I,ev,eN,ew,eM,O,ek]),eE=(0,h.useCallback)((e,l,a)=>{if(!I)return(0,t.zB)();let i=ev(l);if(!i)return;let{items:s}=eb(e,i,a);if(!s.length)return;let n=s.reduce((e,l)=>l.price>e.price?l:e,s[0]),o=O.findIndex(e=>e.momentGroupId===n.momentGroupId&&e.category===i&&e.price===n.price);-1!==o&&ek([...O.slice(0,o),...O.slice(o+1)])},[I,ev,eb,O,ek]),eL=(0,h.useCallback)((e,l,a)=>{if(!I)return(0,t.zB)();let i=ev(a);if(!i)return;if(a===v.HI.UPGRADE&&(0===ew||ew>0&&eM>=ew)){k(M("scout-upgrade-limit-reached"),{variant:"warning"});return}let s=eS(l,a)[0];if(!s)return;let n={momentGroupId:s.momentGroupId,slug:s.slug,category:i,price:s.price};s.featureType&&(n.featureType=s.featureType),ek([...O,n])},[I,ev,eS,ew,eM,O,ek]),eR=(0,h.useCallback)((e,l,a)=>{if(!I)return(0,t.zB)();let i=ev(a);if(!i)return;let s=O.findLastIndex(e=>e.momentGroupId===l.momentGroupId&&e.category===i);-1!==s&&ek([...O.slice(0,s),...O.slice(s+1)])},[O,ev,ek]),eG=(0,h.useCallback)((e,l,a)=>{let t=ev(l),i=eN(e,l,a),s=ex(e,ev(l),a),{clickCount:n,cumulativePrice:o}=eb(e,t,a),r=0===i.length,d=l===v.HI.UPGRADE&&ec===v.kw.UPCOMING,c=l===v.HI.SINGLES&&em===v.kw.UPCOMING&&!s.length;return{count:n,price:n>0?o:0,availableCount:s.length,isIncrementDisabled:r,isDecrementDisabled:n<=0,isUpgradeCountdownActive:d,isSinglesCountdownActive:c}},[ev,eN,ex,eb,ew,eM,ec,em]),eA=(0,h.useCallback)((e,l,a)=>
1{let t=ev(a),i=eS(l,a),s=eg(l,ev(a)),{clickCount:n,cumulativePrice:o}=eC(l,t),r=0===i.length,d=a===v.HI.UPGRADE&&ec===v.kw.UPCOMING,c=a===v.HI.SINGLES&&em===v.kw.UPCOMING&&!s.length;return{count:n,price:n>0?o:0,availableCount:s.length,isIncrementDisabled:r,isDecrementDisabled:n<=0,isUpgradeCountdownActive:d,isSinglesCountdownActive:c}},[ev,eS,eg,eC,ew,eM,ec,em]),eD=(0,h.useCallback)((e,l)=>{var a,t;let i=null===(a=eN(e,v.HI.MARKET,l)[0])||void 0===a?void 0:a.price,s=null===(t=eN(e,v.HI.SINGLES,l)[0])||void 0===t?void 0:t.price;if(void 0!==i||void 0!==s)return void 0===s?v.HI.MARKET:void 0===i?v.HI.SINGLES:i<=s?v.HI.MARKET:v.HI.SINGLES},[eN]),eB=(0,h.useCallback)((e,l)=>{let a=eG(e,v.HI.MARKET,l),t=eG(e,v.HI.SINGLES,l);return{count:a.count+t.count,price:a.price+t.price,availableCount:a.availableCount+t.availableCount,isIncrementDisabled:a.isIncrementDisabled&&t.isIncrementDisabled,isDecrementDisabled:0===a.count&&0===t.count}},[eG]),eT=(0,h.useCallback)((e,l)=>{let a=eD(e,l);a&&eP(e,a,l)},[eD,eP]),eF=(0,h.useCallback)((e,l)=>{let a=ev(v.HI.MARKET),t=ev(v.HI.SINGLES),i=eb(e,a,l).items,s=eb(e,t,l).items,n=i.reduce((e,l)=>Math.max(e,l.price),-1/0),o=s.reduce((e,l)=>Math.max(e,l.price),-1/0);(n!==-1/0||o!==-1/0)&&eE(e,n>=o?v.HI.MARKET:v.HI.SINGLES,l)},[ev,eb,eE]),eH=(0,h.useCallback)(e=>{let l=new Set(ep(e).map(e=>e.momentGroupId));return new Set(O.filter(e=>l.has(e.momentGroupId)).map(e=>e.momentGroupId))},[O,ep]);return{players:ee,bucketItems:O,filters:D,values:f,setValues:N,scoutTotals:S,rarityTotals:eZ,totalsEventData:C,newEdition:eu,oldEdition:eh,upgradeData:en,singlesData:eo,constants:er,banners:ed,userLimit:ew,totalUpgradeCount:eM,isLoading:a?es:!et&&q,pageLoading:(a?es:$)||F,isValidating:q,loadMore:ei,handlePlayerIncrement:eP,handlePlayerDecrement:eE,handleMomentIncrement:eL,handleMomentDecrement:eR,handleClearBucket:(0,h.useCallback)(()=>{if(U&&H)return eI.cancel(),null==U?void 0:U.delete({}).then(()=>null==H?void 0:H()).catch(e=>{422===e.error_code?k(e.message,{variant:"error"}):k(M("request-error"),{variant:"error"})})},[U,H,eI]),getPlayerDisplayData:eG,getMomentDisplayData:eA,getRarityDisplayData:eB,handleRarityIncrement:eT,handleRarityDecrement:eF,getSelectedListingIds:eH,mutateBucket:H,mutateScout:X}}},18842:function(e,l,a){"use strict";var t=a(74817);l.Z=e=>(0,t.jsx)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",...e,children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.0455 7.0795C20.6062 6.64017 19.8938 6.64017 19.4545 7.0795C19.0152 7.51884 19.0152 8.23116 19.4545 8.6705L27.659 16.875H5.625C5.00368 16.875 4.5 17.3787 4.5 18C4.5 18.6213 5.00368 19.125 5.625 19.125H27.659L19.4545 27.3295C19.0152 27.7688 19.0152 28.4812 19.4545 28.9205C19.8938 29.3598 20.6062 29.3598 21.0455 28.9205L31.1694 18.7966C31.1722 18.7938 31.175 18.7909 31.1778 18.7881C31.282 18.682 31.361 18.5603 31.4146 18.4306C31.4696 18.298 31.5 18.1525 31.5 18C31.5 17.8475 31.4696 17.702 31.4146 17.5694C31.361 17.4397 31.282 17.318 31.1778 17.2119C31.175 17.2091 31.1722 17.2062 31.1694 17.2034L21.0455 7.0795Z",fill:"white"})})},83210:function(e,l,a){"use strict";a.d(l,{At:function(){return n},My:function(){return c},Qt:function(){return r},o7:function(){return d}});var t=a(67045),i=a(51450);let s=e=>"WICKETKEEPER-BATTER"===e?"WK-BATTER":e,n=e=>{let l=e.split(" "),a=l[0].charAt(0),t=l.pop();return"".concat(a,". ").concat(t)},o=[t.$0.COMMON,t.$0.RARE,t.$0.EPIC],r=e=>{for(let l of o){let a=e.rarities[l];if(null==a?void 0:a.length)return a[0]}},d=e=>{var l,a,t,i,n;let d=r(e),c=null!==(i=null!==(t=null==d?void 0:null===(l=d.imageUrl)||void 0===l?void 0:l.thumbnail_small)&&void 0!==t?t:null==d?void 0:null===(a=d.imageUrl)||void 0===a?void 0:a.thumbnail1_small)&&void 0!==i?i:"",m=o.flatMap(l=>{var a;return null!==(a=e.rarities[l])&&void 0!==a?a:[]}).reduce((e,l)=>{var a,t,i;let s=l.metaData;return{playerId:null!==(a=e.playerId)&&void 0!==a?a:null==s?void 0:s.playerId,teamAbbrevation:null!==(t=e.teamAbbrevation)&&void 0!==t?t:null==s?void 0:s.teamAbbrevation,playerSkills:null!==(i=e.playerSkills)&&void 0!==i?i:null==s?void 0:s.playerSkills}},{});return{playerId:null!==(n=m.playerId)&&void 0!==n?n:"",playerImage:c,teamAbbrevation:m.teamAbbrevation,playerSkills:s(m.playerSkills),rawPlayerSkills:m.playerSkills}},c=(e,l,a)=>{var t,s,n;if(!l)return;let{teamAbbrevation:o,rawPlayerSkills:r}=d(e),c=null!==(n=null===(t=l.imageUrl)||void 0===t?void 0:t.thumbnail_small)&&void 0!==n?n:null===(s=l.imageUrl)||void 0===s?void 0:s.thumbnail1_small;return{momentGroupId:{_id:l.momentGroupId,slug:l.slug,description:"",quantity:a||0,momentClass:l.momentClass,s3Url:"",listings:0,skillType:(0,i.PU)(r).type,imageUrl:{...l.imageUrl,cardImage_medium:c},metaData:{...l.metaData,primaryPlayerName:e.playerName,team:null!=o?o:"",currentTeam:null!=o?o:"",primaryTeam:null!=o?o:""}}}}},70368:function(e,l,a){"use strict";function t(e,l){if(!e||!l)return 0;let{topUpCostForFive:a,topUpCostForTen:t,topUpCostForFifteen:i}=l;return e>=1&&e<=5?Number(a.fcCash)+Number(a.flashReward):e>=6&&e<=10?Number(t.fcCash)+Number(t.flashReward):Number(i.fcCash)+Number(i.flashReward)}a.d(l,{Z:function(){return t}})},372:function(e,l,a){"use strict";a.d(l,{Z:function(){return lr}});var t=a(74817),i=a(71248),s=a(72801),n=a(10803),o=a(5575),r=a(49370),d=a(4443),c=a(45387),m=a(237),u=a(21774),h=a(33199),v=a(27559),p=a(66456),x=a(38812),g=a(98769),y=a(51584),_=a(79187),j=a(50748),f=a.n(j),N=a(67833),S=a(36497),b=a(35996),C=a(67045),Z=a(17491),w=a(27492),M=a(8995),I=a(37006),k=a(36570),P=a(44755),E=a(63462),L=a(30711),R=a(66188),G=a(22236),A=a(46999),D=a(91592),B=a(83086),T=a.n(B),F=e=>{let{className:l}=e;return(0,t.jsxs)("div",{className:(0,s.Z)(T().root,l),children:[(0,t.jsx)(D.Z,{count:1,height:"10.5rem",width:"10.5rem",borderRadius:"0.5rem"}),(0,t.jsxs)("div",{className:"flex-auto flex column gap5",children:[(0,t.jsx)(D.Z,{count:1,height:"2.25rem",width:"5rem",borderRadius:"0.5rem"}),(0,t.jsx)(D.Z,{count:1,height:"2.25rem",width:"100%"}),(0,t.jsx)(D.Z,{count:1,height:"1.25rem",width:"3rem"}),(0,t.jsx)(D.Z,{count:1,height:"1.75rem",width:"15rem"})]}),(0,t.jsx)(D.Z,{count:1,height:"4rem",width:"5.5rem",borderRadius:"1rem"})]})},H=a(24513),U=a(22674),O=a(5023),z=a(58284),W=a(18688),K=a(38912),V=a(15327),q=a(43928),$=a(51450),X=a(70368),Q=a(64005
1),Y=a(5543),J=a(14512),ee=a(43894),el=a.n(ee),ea=e=>{var l;let{open:a,onClose:r,moment:d}=e,[c,m]=(0,i.useState)(new Map),v=(0,S.useRouter)(),{currency:x,exchangeRate:g}=(0,V.Z)(),y=(0,O.Z)({max:"sm"}),{t:j}=(0,N.Z)("challenges"),b=(0,$.ZP)(null==d?void 0:d.momentGroupId),w=(e,l,a,t)=>{let i=(null==a?void 0:a.totalScore)>=90&&(null==a?void 0:a.totalScore)<=95?5:1;return m(e=>{let a=new Map(e);if(a.has(l)){let{topup:e}=a.get(l),s=e-i,n=(0,X.Z)(s,t);s?a.set(l,{topup:s,amount:Number((s*n).toFixed(1))}):a.delete(l)}return a}),(0,_.Z)(e)},M=(e,l,a,t)=>{let i=(null==a?void 0:a.totalScore)>=90&&(null==a?void 0:a.totalScore)<=95?5:1;return m(e=>{let a=new Map(e);if(a.has(l)){let{topup:e}=a.get(l),s=e+i,n=(0,X.Z)(s,t);a.set(l,{topup:s,amount:Number((s*n).toFixed(1))})}else{let e=(0,X.Z)(0+i,t);a.set(l,{topup:0+i,amount:(0+i)*e})}return a}),(0,_.Z)(e)},I=()=>{if(!c||!(null==d?void 0:d._id))return;let{topup:e,amount:l}=c.has(d._id)&&c.get(d._id);return v.push((0,Z.cue)("".concat(d._id,":").concat(e,":").concat(l),(0,P.Wz)({from:"coaches"})))},k=()=>{if(!d||!(null==d?void 0:d.topUpCollectibleScore))return null;let{collectibleScore:e,_id:l,momentGroupId:a,topUpCollectibleScore:i}=d,{momentClass:s}=a,n=(null==e?void 0:e.totalScore)||0,{topup:r,amount:m}=l&&c.has(l)?c.get(l):{},v=(r||0)+Number(n)+(n>=90&&n<=95?5:1),p=v>100||s===C.$0.COMMON&&v>45||s===C.$0.RARE&&v>60||s===C.$0.EPIC&&!!(v>100);return(0,t.jsxs)("div",{className:"flex align-center justify-between",children:[(0,t.jsxs)("div",{className:"flex align-center gap5",children:[(0,t.jsx)(o.Z,{disabled:!r,className:el().topUpPointsBtn,onClick:a=>w(a,l,e,i),children:(0,t.jsx)(z.Z,{height:"14px",width:"14px",className:"shrink0"})}),(0,t.jsx)("div",{className:el().topUpPoints,children:(0,t.jsx)(u.Z,{size:y?"md":"sm",className:"ws-nowrap",children:j("common:topup-points",{count:Number(r)||0})})}),(0,t.jsx)(o.Z,{disabled:15===r||p,className:el().topUpPointsBtn,onClick:a=>M(a,l,e,i),children:(0,t.jsx)(W.Z,{height:"14px",width:"14px",className:"shrink0"})})]}),(0,t.jsxs)(h.Z,{variant:y?"h5":"h4",children:["Top Up Price: ",(0,q.T4)((m||0)*g,{currency:x})]})]})},E=()=>{let{topup:e}=(null==d?void 0:d._id)&&c.has(d._id)?c.get(d._id):{topup:0};return(0,t.jsxs)("div",{className:(0,s.Z)("flex column gap10",!y&&"mt20"),children:[(0,t.jsx)(n.Z,{fullWidth:!0,onClick:I,disabled:!e,children:"Top Up Collectible"}),(0,t.jsx)(n.Z,{variant:"gray2",fullWidth:!0,onClick:r,children:"Use Another Collectible"})]})};return(0,t.jsxs)(Q.Z,{open:a,onClose:r,className:el().modal,classes:{backdrop:el().backdrop},showHeader:y,actions:y&&E(),children:[!y&&(0,t.jsx)(o.Z,{"aria-label":"Close",className:el().closeBtn,onClick:r,children:(0,t.jsx)(p.Z,{height:"2.5rem",width:"2.5rem",className:"shrink0"})}),(0,t.jsxs)("div",{className:"flex column align-center gap30",children:[(()=>{if(!d)return null;let{skillType:e,imageUrl:l,metaData:a,type:i}=d.momentGroupId,s=e?l["".concat(K.aA[e],"_medium")]:void 0;return(0,t.jsx)("div",{className:el().image,children:(0,t.jsx)(U.Z,{fill:!0,alt:a.primaryPlayerName,src:s||l.cardImage_small||l.cardImage||l.thumbnail_small||l.thumbnail,fallbackSrc:"/assets/fallback/".concat(i===C.PY.CARD?"card":"moment",".webp"),objectFit:"cover"})})})(),(0,t.jsxs)("div",{className:"flex column align-center gap5",children:[(()=>{if(!d)return null;let{momentClass:e,quantity:l,metaData:a}=d.momentGroupId,i="".concat(d.momentSerialNumber||"#","/").concat(l),s="".concat(f()(e)," ").concat(i);return(0,t.jsxs)("div",{className:"flex align-center gap5",children:[(0,t.jsx)(Y.Z,{height:"2rem",width:"2rem",momentClass:e}),(0,t.jsx)(u.Z,{size:y?"md":"sm",children:s}),d.momentSerialNumber===Number(a.jerseyNumber)&&(0,t.jsx)(J.Z,{})]})})(),(0,t.jsx)(h.Z,{variant:y?"h2":"h1",children:null==d?void 0:null===(l=d.momentGroupId)||void 0===l?void 0:l.metaData.primaryPlayerName}),(0,t.jsx)(u.Z,{size:y?"lg":"md",color:"grey5",align:"center",dangerouslySetInnerHTML:{__html:b}})]})]}),y&&(0,t.jsx)("hr",{className:"mv30"}),(()=>{if(!d)return null;let{collectibleScore:e,_id:l,momentGroupId:a}=d,{topup:i}=l&&c.has(l)?c.get(l):{topup:0};return(0,t.jsxs)("div",{className:(0,s.Z)("flex column align-center",y?"gap30":"gap20 mt20"),children:[(0,t.jsx)(u.Z,{size:y?"xl":"md",align:"center",children:j("top-up-collectible-desc-".concat(a.momentClass))}),(0,t.jsxs)("div",{className:el().topUpTile,children:[k(),(0,t.jsxs)("div",{className:el().pointsCalculation,children:[(0,t.jsxs)("div",{className:"flex align-center gap5",children:[(0,t.jsx)(u.Z,{color:"smoke",size:y?"md":"sm",children:"Current Points:"}),(0,t.jsx)(u.Z,{size:y?"lg":"md",weight:"heavy",children:null==e?void 0:e.totalScore})]}),(0,t.jsxs)("div",{className:"flex align-center gap5",children:[(0,t.jsx)(u.Z,{color:"smoke",size:y?"md":"sm",children:"After Top Up:"}),(0,t.jsx)(u.Z,{size:y?"lg":"md",weight:"heavy",children:((null==e?void 0:e.totalScore)||0)+Number(i)})]})]})]})]})})(),!y&&E()]})},et=function(e){let{structureMap:l,structure:a,selectedMoment:t,swapOutMoment:s,config:n,backupLineup:o,generalChallengeConfig:r,maxInSeasonBoost:d,challenge:c}=e,m="POTD"===a.type,u=(0,i.useMemo)(()=>new Set(Object.keys(t).reduce((e,l)=>{var i;return(null==s?void 0:s.momentGroupId._id)===t[l].momentGroupId._id||a.id===l?e:[...e,t[l].momentGroupId.metaData.playerId,...(null===(i=t[l].momentGroupId.metaData.secondaryPlayers)||void 0===i?void 0:i.map(e=>e.playerId))||[]]},[])),[t,s,a.id]),h=(0,i.useCallback)(e=>{if(!n)return;let{maxRarityLimits:l}=n;return null==l?void 0:l.find(l=>l.momentClasses.includes(e))},[n]);return{ineligiblePlayerIds:u,ineligibleClasses:(0,i.useMemo)(()=>
1{if(m)return new Set;let e=null==o?void 0:o.positions.reduce((e,l)=>{if("POTD"===l.type)return e;let{momentClass:a}=l.momentGroupId;return e[a]=(e[a]||0)+1,e},{}),i=Object.keys(t).reduce((e,i)=>{if("POTD"===l[i].type||t[i].momentGroupId._id===(null==s?void 0:s.momentGroupId._id)||a.id===i)return e;let{momentClass:n}=t[i].momentGroupId;return e[n]=(e[n]||0)+1,e},e||{});return new Set(Object.keys(C.$0).reduce((e,l)=>{let a=h(l);return a&&a.count===i[l]?[...e,...a.momentClasses]:e},[]))},[h,m,t,l,s,a.id,o]),ineligibleEditions:(0,i.useMemo)(()=>{if(!(null==r?void 0:r.CURRENT_EDITION))return new Set;let e=(null==o?void 0:o.positions.reduce((e,l)=>{var a;return(0,k.sU)(c,r,null===(a=l.momentSourceData)||void 0===a?void 0:a.series)?e+1:e},0))||0,l=Object.keys(t).reduce((e,l)=>{var i;return(null==s?void 0:s.momentGroupId._id)===t[l].momentGroupId._id||a.id===l?e:(0,k.sU)(c,r,null===(i=t[l].momentSourceData)||void 0===i?void 0:i.series)?e+1:e},0);return d&&e+l>=d?new Set(r.CURRENT_EDITION.map(String)):new Set},[r,d,t,a.id,s,o,c]),completeSelectedSet:(0,i.useMemo)(()=>new Set(Object.values(t).map(e=>e.id||e.momentGroupId._id)),[t]),getMaxLimit:h}},ei=a(16457),es=a.n(ei),en=e=>{var l,a;let{moment:i,open:r,onClose:d}=e,{momentLockingMap:c}=(0,M.Z)(),m=(null==i?void 0:null===(l=i.momentGroupId)||void 0===l?void 0:l.momentClass)==="FLASH",{t:v}=(0,N.Z)("challenges"),x=(0,O.Z)({max:"sm"}),g=(0,$.ZP)(null==i?void 0:i.momentGroupId),y=(null!==(a=i&&(null==c?void 0:c[i.id]))&&void 0!==a?a:[]).find(e=>{let{lockedBy:l}=e;return l===C.fW.FLASH});return(0,t.jsx)(Q.Z,{fullWidth:!1,open:r,onClose:d,className:es().modal,classes:{body:"p0",backdrop:es().backdrop},showHeader:!1,children:i&&(0,t.jsxs)("div",{className:es().root,children:[(0,t.jsxs)("div",{className:"flex align-start",children:[(0,t.jsxs)("div",{className:es().moment,children:[(0,t.jsx)("div",{className:(0,s.Z)(es().image,i.momentGroupId.type&&es()[i.momentGroupId.type]),children:i.momentGroupId.imageUrl?(0,t.jsx)(U.Z,{alt:"Collectible Thumbnail",src:i.momentGroupId.imageUrl.thumbnail_small||i.momentGroupId.imageUrl.thumbnail,fill:!0,objectFit:"contain"}):null}),(0,t.jsxs)("div",{className:es().rarity,children:[(0,t.jsx)(Y.Z,{className:"mr10",height:"2rem",width:"2rem",momentClass:i.momentGroupId.momentClass}),(0,t.jsxs)(u.Z,{size:"sm",children:[f()(i.momentGroupId.momentClass)," ",m?"":"".concat(i.momentSerialNumber," / ").concat(i.momentGroupId.quantity)]})]}),(0,t.jsx)(h.Z,{variant:"h1",align:"center",children:i.momentGroupId.metaData.primaryPlayerName}),(0,t.jsx)(u.Z,{className:"mt5",color:"grey",align:"center",dangerouslySetInnerHTML:{__html:g}})]}),x&&(0,t.jsx)(o.Z,{variant:"transparent",className:es().iconButton,onClick:d,children:(0,t.jsx)(p.Z,{})})]}),x&&(0,t.jsx)("div",{className:es().line}),(0,t.jsxs)("div",{className:es().body,children:[(0,t.jsx)(u.Z,{size:"lg",align:"center",className:"mb30",dangerouslySetInnerHTML:{__html:v(y?"locked-in-set":"locked-in-flash")}}),(0,t.jsx)(n.Z,{fullWidth:!0,withLoader:!0,onClick:d,className:"mt10",children:v("locked-button-got-it")})]})]})})},eo=a(27041),er=a(64226),ed=a(97217),ec=a.n(ed),em=a(93870),eu=a(96297),eh=a(88043),ev=a(83210),ep=a(9675),ex=a(74902),eg=a(94495),ey=a(77749),e_=a(16728),ej=a(55282),ef=a(3011),eN=a(67960),eS=a(92297),eb=a(24199),eC=a.n(eb),eZ=(0,i.memo)(e=>{let{player:l,rarity:a,scoutState:i}=e,{t:n}=(0,N.Z)("marketplace-search"),{getDisplayData:r,handleIncrement:d,handleDecrement:c}=i,{count:m,price:h,availableCount:v,isIncrementDisabled:p,isDecrementDisabled:x}=r(l,a),g=v>0||m>0;return(0,t.jsxs)("div",{className:eC().wrapper,children:[(0,t.jsxs)("div",{className:"flex align-center gap5 mb10",children:[(0,t.jsx)(Y.Z,{momentClass:a,height:"1.5rem",width:"1.5rem"}),(0,t.jsx)(u.Z,{size:"sm",weight:"medium",children:f()(a)})]}),(0,t.jsxs)("div",{className:(0,s.Z)(eC().box,eC()[a]),children:[(0,t.jsx)("div",{className:"flex align-center justify-between",children:g?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.Z,{size:"sm",color:"smoke",children:"Price"}),(0,t.jsx)(eS.Z,{value:h,size:"md",weight:"heavy",iconSize:"2rem",valueLimit:1e5})]}):(0,t.jsx)(u.Z,{size:"sm",color:"smoke",children:n("no-listings")})}),(0,t.jsxs)("div",{className:"flex align-center justify-end gap10 mt10",children:[(0,t.jsx)(o.Z,{className:(0,s.Z)(eC().pricePointsBtn,eC()[a]),onClick:()=>c(l,a),disabled:x,children:(0,t.jsx)(z.Z,{height:"11.11px",width:"11.11px",className:"shrink0"})}),(0,t.jsx)(u.Z,{size:"md",weight:"heavy",className:"ws-nowrap",color:x&&p?"grey5":"light",children:m}),(0,t.jsx)(o.Z,{className:(0,s.Z)(eC().pricePointsBtn,eC()[a],!p&&eC().active),onClick:()=>d(l,a),disabled:p,children:(0,t.jsx)(W.Z,{height:"11.11px",width:"11.11px",className:"shrink0"})})]})]})]})}),ew=a(43228),eM=a.n(ew);let eI=[C.$0.COMMON,C.$0.RARE,C.$0.EPIC];var ek=e=>{var l,a;let{player:i,scoutState:n,selectedByPercent:o,playerDivisionMap:r,dataL15:d,fantasyKey:c,onGraphClick:m}=e,h=(0,O.Z)({max:"sm"}),{t:p}=(0,N.Z)("common"),{playerId:x,playerImage:g,teamAbbrevation:y,playerSkills:_}=(0,ev.o7)(i),j=i.playerName,f=!!(null==r?void 0:null===(a=r[x])||void 0===a?void 0:null===(l=a.playingElevenMatchIdList)||void 0===l?void 0:l.length),S=e=>e.stopPropagation();return(0,t.jsxs)("div",{className:(0,s.Z)(eM().row,"flex",h?"column":"align-center"),children:[(0,t.jsxs)("div",{className:(0,s.Z)("flex align-center gap15",eM().playerInfo,h?"justify-between":""),children:[(0,t.jsxs)("div",{className:"flex align-center gap15 shrink0",children:[(0,t.jsxs)("div",{className:eM().imageWrap,children:[(0,t.jsx)(U.Z,{src:g,alt:j,fallbackSrc:"/assets/playerImagePlaceholder.png",fill:!0,objectFit:"cover",objectPosition:"top"}),f?(0,t.jsx)("div",{className:eM().playing11,children:(0,t.jsx)(u.Z,{className:"fs10",color:"dark",children:"XI"})}):null]}),(0,t.jsxs)("div",{className:"flex column flex-start",style:{height:"9rem"},children:[o?(0,t.jsx)(v.Z,{text:p("selected-by",{percent:"".concat(Number(o).toFixed(),"%")}),children:(0,t.jsxs)("div",{className:(0,s.Z)(eM().selectedByPill,"flex align-center gap5"),children:[(0,t.jsx)(e_.Z,{height:"1.5rem",width:"1.5rem"}),(0,t.jsx)(u.Z,{className:"fs10",children:"".concat(Number(o).toFixed(),"%")})]})}):(0,t.jsx)("div",{style:{height:"2.5rem"}}),(0,t.jsxs)("div",{style:{marginTop:"0.25rem"},children:[(0,t.jsx)(u.Z,{weight:"heavy",size:"lg",children:(0,ev.At)(j)}),(y||_)&&(0,t.jsxs)(u.Z,{size:"xs",color:"smoke",children:[y,y&&_&&" | ",_]})]})]})]}),!!d&&(h?(0,t.jsxs)("div",{className:(0,s.Z)(T().stats,T().historicalStats,eM().graphWra
1p),onClick:e=>{S(e),null==m||m((0,ev.Qt)(i))},children:[(()=>{var e;let l=(null==d?void 0:null===(e=d.matches)||void 0===e?void 0:e.slice(-5))||[];return l.length<5&&l.unshift(...Array(5-l.length).fill(void 0)),(0,t.jsx)("div",{className:T().graph,children:l.map((e,l)=>{let a=Math.min(100,Number((null==e?void 0:e.playerMatchScore)||0)),i=(0,ej.CG)(a),s=Math.max(1,16*a/100);return(0,t.jsx)("div",{style:{backgroundColor:i,height:s},className:T().bar},(null==e?void 0:e.matchId)||l)})})})(),(0,t.jsx)("div",{style:{backgroundColor:(0,ej.CG)((null==d?void 0:d[c||"avgL15"])||0)},className:(0,s.Z)(T().box,T().statText),children:(0,t.jsx)(u.Z,{className:"fs12",color:"dark",weight:"heavy",children:(null==d?void 0:d[c||"avgL15"])||"DNP"})}),(0,t.jsx)(v.Z,{text:"Simulated Match",children:(0,t.jsx)("div",{className:T().jockeyIcon,children:(0,t.jsx)(eN.Z,{className:"shrink0"})})})]}):(()=>{let e=null==d?void 0:d[c||"avgL15"];return(0,t.jsx)(v.Z,{variant:"grey",text:"Simulated Match Data (L15)",children:(0,t.jsx)("div",{children:(0,t.jsx)(ef.Z,{style:{backgroundColor:(0,ej.CG)(e||0)},icon:"graph",text:e||"DNP",color:"lightGreen"})})})})())]}),(0,t.jsx)("div",{className:eM().divider}),(0,t.jsx)("div",{className:eM().rarityBoxes,children:eI.map(e=>(0,t.jsx)(eZ,{player:i,rarity:e,scoutState:n},e))})]})},eP=a(78201),eE=a(61113),eL=a(65221),eR=a(90170),eG=a(18842),eA=a(2880),eD=a.n(eA);let eB=[C.HI.UPGRADE,C.HI.SINGLES,C.HI.MARKET];var eT=e=>{var l,a,n,o;let{player:r,moment:d,newEdition:c,oldEdition:m,scoutState:h,playerDivisionMap:v}=e,[p,x]=(0,i.useState)(null),g=d.metaData,y=(0,$.ZP)({metaData:d.metaData,type:null==g?void 0:g.momentType},"\n").split("\n"),_=!!(null==v?void 0:null===(a=v[(null==g?void 0:g.playerId)||""])||void 0===a?void 0:null===(l=a.playingElevenMatchIdList)||void 0===l?void 0:l.length),j={[C.HI.UPGRADE]:"Upgrade ".concat(m),[C.HI.SINGLES]:"Buy ".concat(c),[C.HI.MARKET]:"Buy ".concat(m)};return(0,t.jsxs)("div",{className:eD().momentCardMobile,children:[(0,t.jsxs)("div",{className:"flex align-center justify-between p10",children:[(0,t.jsxs)("div",{className:(0,s.Z)("flex align-center gap10",eD().momentInfoWrap),children:[(0,t.jsxs)("div",{className:eD().image,children:[(0,t.jsx)(U.Z,{src:(null===(n=d.imageUrl)||void 0===n?void 0:n.thumbnail_small)||(null===(o=d.imageUrl)||void 0===o?void 0:o.thumbnail1_small),alt:(null==g?void 0:g.primaryPlayerName)?(0,ev.At)(g.primaryPlayerName):"",fill:!0,objectFit:"cover",objectPosition:"top"}),_&&(0,t.jsx)("div",{className:eD().playing11,children:(0,t.jsx)(u.Z,{className:"fs10",color:"dark",children:"XI"})})]}),(0,t.jsxs)("div",{className:eD().details,children:[y.map((e,l)=>(0,t.jsx)(u.Z,{size:"sm",color:"grey",children:e},l)),(0,t.jsxs)(eE.Z,{className:eD().viewMoment,underlined:!0,onClick:()=>x(d),children:["View Moment",(0,t.jsx)(eG.Z,{width:12,height:12})]})]})]}),(0,t.jsx)("div",{className:(0,s.Z)("flex gap10",eD().ownedEditionsWrap),children:[c,m].map(e=>{var l;return(0,t.jsxs)("div",{className:"flex column align-center gap5",children:[(0,t.jsx)("div",{className:eD().editionPillScaled,children:(0,t.jsx)(eP.Z,{serial:e.replace(/E$/,"")})}),(0,t.jsxs)("div",{className:eD().ownedClass,children:[(0,t.jsx)(u.Z,{size:"md",children:null!==(l=d[e])&&void 0!==l?l:0}),(0,t.jsx)(Y.Z,{momentClass:d.momentClass,height:"1.5rem",width:"1.5rem"})]})]},e)})})]}),(0,t.jsx)("div",{className:eD().selectionContainerMobile,children:(0,t.jsx)("div",{className:eD().aggregateRow,children:eB.map(e=>(0,t.jsxs)("div",{className:eD().aggregateBoxWrap,children:[(0,t.jsx)(u.Z,{size:"sm",weight:"heavy",color:"smoke",align:"center",className:"mb5",children:j[e]}),(0,t.jsx)(eR.Z,{player:r,moment:d,variant:e,scoutState:{...h,newEdition:c,oldEdition:m},forceMobileLayout:!0})]},e))})}),(0,t.jsx)(eL.Z,{slug:null==p?void 0:p.slug,open:!!p,onClose:()=>x(null)})]})},eF=a(41701),eH=a(89714),eU=a(53930),eO=a.n(eU),ez=a(40778),eW=a.n(ez);let eK=[C.HI.UPGRADE,C.HI.SINGLES,C.HI.MARKET];var eV=e=>{var l,a,n,o;let{player:r,moment:d,newEdition:c,oldEdition:m,scoutState:h,playerDivisionMap:v}=e,[p,x]=(0,i.useState)(null),g=d.metaData,y=(0,$.ZP)({metaData:d.metaData,type:null==g?void 0:g.momentType},"\n").split("\n"),_=!!(null==v?void 0:null===(a=v[(null==g?void 0:g.playerId)||""])||void 0===a?void 0:null===(l=a.playingElevenMatchIdList)||void 0===l?void 0:l.length);return(0,t.jsxs)("div",{className:eW().row,children:[(0,t.jsxs)("div",{className:(0,s.Z)("flex align-center gap15",eW().infoWrap),children:[(0,t.jsxs)("div",{className:eO().image,children:[(0,t.jsx)(U.Z,{src:(null===(n=d.imageUrl)||void 0===n?void 0:n.thumbnail_small)||(null===(o=d.imageUrl)||void 0===o?void 0:o.thumbnail1_small),alt:(null==g?void 0:g.primaryPlayerName)?(0,ev.At)(g.primaryPlayerName):"",fill:!0,objectFit:"cover",objectPosition:"top"}),_&&(0,t.jsx)("div",{className:eW().playing11,children:(0,t.jsx)(u.Z,{className:"fs10",color:"dark",children:"XI"})})]}),(0,t.jsxs)("div",{className:eO().details,children:[(0,t.jsx)(u.Z,{weight:"heavy",size:"md",children:(0,ev.At)((null==g?void 0:g.primaryPlayerName)||r.playerName)}),y.map((e,l)=>(0,t.jsx)(u.Z,{size:"sm",color:"grey",children:e},l))]})]}),(0,t.jsx)("div",{className:"flex align-center gap15",children:[c,m].map(e=>{var l;return(0,t.jsxs)("div",{className:"flex column align-center gap5",children:[(0,t.jsx)("div",{className:eO().editionPillScaled,children:(0,t.jsx)(eP.Z,{serial:e.replace(/E$/,"")})}),(0,t.jsxs)("div",{className:eO().ownedClass,children:[(0,t.jsx)(u.Z,{size:"sm",children:null!==(l=d[e])&&void 0!==l?l:0}),(0,t.jsx)(Y.Z,{momentClass:d.momentClass,height:"1.5rem",width:"1.5rem"})]})]},e)})}),(0,t.jsx)("div",{className:eW().variantBoxes,children:eK.map(e=>(0,t.jsx)("div",{className:eW().variantBoxWrap,children:(0,t.jsx)(eR.Z,{player:r,moment:d,variant:e,scoutState:{...h,newEdition:c,oldEdition:m},forceMobileLayout:!0})},e))}),(0,t.jsx)(eL.Z,{slug:null==p?void 0:p.slug,open:!!p,onClose:()=>x(null)})]})},eq=a(30540),e$=a.n(eq);
1let eX=[C.$0.COMMON,C.$0.RARE,C.$0.EPIC],eQ=[C.HI.UPGRADE,C.HI.SINGLES,C.HI.MARKET];var eY=e=>{var l,a,n,r,d,c,m;let{player:h,newEdition:p,oldEdition:x,scoutState:g,isMobile:y=!1,initiallyExpanded:_=!1,onExpand:j,selectedByPercent:S,playerDivisionMap:b}=e,[Z,w]=(0,i.useState)(null),[M,I]=(0,i.useState)(_),{t:k}=(0,N.Z)("common"),{playerImage:P,teamAbbrevation:E,playerSkills:L}=(0,ev.o7)(h),R=(0,i.useMemo)(()=>eX.filter(e=>{var l,a;return(null!==(a=null===(l=h.rarities[e])||void 0===l?void 0:l.length)&&void 0!==a?a:0)>0}),[h]),G=null!==(d=Z&&R.includes(Z)?Z:R[0])&&void 0!==d?d:null,A=e=>{let{constants:l}=g,a=[null==l?void 0:l.buyMore202225E,null==l?void 0:l.buyMore2026E].flatMap(l=>{var a,t;if(!l)return[];let i=h[l],s=null!==(t=null==i?void 0:null===(a=i[e])||void 0===a?void 0:a.listings)&&void 0!==t?t:[];return s.length?[Math.min(...s.map(e=>e.price))]:[]});return a.length?Math.min(...a):null},D=G&&null!==(c=h.rarities[G])&&void 0!==c?c:[],B=null!==(m=null===(a=D[0])||void 0===a?void 0:null===(l=a.imageUrl)||void 0===l?void 0:l.thumbnail_small)&&void 0!==m?m:null===(r=D[0])||void 0===r?void 0:null===(n=r.imageUrl)||void 0===n?void 0:n.thumbnail1_small,T={[C.HI.UPGRADE]:"Upgrade ".concat(x),[C.HI.SINGLES]:"Buy ".concat(p),[C.HI.MARKET]:"Buy ".concat(x)},F=()=>S?(0,t.jsx)(v.Z,{text:k("selected-by",{percent:"".concat(Number(S).toFixed(),"%")}),children:(0,t.jsxs)("div",{className:(0,s.Z)(e$().selectedByPill,"flex align-center gap5"),children:[(0,t.jsx)(e_.Z,{height:"1.5rem",width:"1.5rem"}),(0,t.jsx)(u.Z,{className:"fs10",children:"".concat(Number(S).toFixed(),"%")})]})}):(0,t.jsx)("div",{style:{height:"2.5rem"}}),H=()=>!!R.length&&(0,t.jsx)("div",{className:e$().rarityRow,children:R.map(e=>{let l=A(e);return(0,t.jsxs)("div",{className:"flex column align-center",onClick:()=>w(e),children:[(0,t.jsxs)("div",{className:(0,s.Z)(e$().rarityPill,G===e&&e$().selected),children:[(0,t.jsx)(Y.Z,{momentClass:e,height:"2rem",width:"2rem"}),(0,t.jsx)(u.Z,{size:"sm",children:f()(e)})]}),(0,t.jsx)(u.Z,{size:"xs",color:"smoke",className:(0,s.Z)("mt5",e$().floorPriceText),children:null===l?"Floor Price: -":"Floor Price: $".concat(l)})]},e)})}),O=()=>(0,t.jsx)("div",{className:(0,s.Z)(e$().selectionContainerMobile,y&&e$().mobileBg),children:(0,t.jsx)("div",{className:e$().aggregateRow,children:eQ.map(e=>(0,t.jsxs)("div",{className:e$().aggregateBoxWrap,children:[y&&(0,t.jsx)(u.Z,{size:"sm",weight:"heavy",color:"smoke",align:"center",className:"mb5",children:T[e]}),(0,t.jsx)(eH.Z,{player:h,variant:e,scoutState:{...g,newEdition:p,oldEdition:x},activeRarity:G,forceMobileLayout:!0})]},e))})});return y?(0,t.jsxs)("div",{className:e$().root,children:[(0,t.jsx)("div",{className:"flex align-center justify-between p10",style:{backgroundColor:"#00000099"},children:(0,t.jsx)("div",{className:"flex column gap15 w-100",children:(0,t.jsxs)("div",{className:"flex column",children:[(0,t.jsxs)("div",{className:"flex align-center justify-between w-100",children:[(0,t.jsxs)("div",{className:"flex align-center gap10",children:[(0,t.jsx)("div",{className:e$().imageWrapMobile,children:(0,t.jsx)(U.Z,{src:null!=B?B:P,alt:h.playerName,fill:!0,objectFit:"cover",objectPosition:"top"})}),(0,t.jsxs)("div",{className:"flex column flex-start",style:{height:"9rem"},children:[F(),(0,t.jsxs)("div",{style:{marginTop:"0.25rem"},children:[(0,t.jsx)(u.Z,{weight:"heavy",size:"lg",children:(0,ev.At)(h.playerName)}),(E||L)&&(0,t.jsxs)(u.Z,{size:"xs",color:"smoke",children:[E,E&&L&&" | ",L]})]})]})]}),(0,t.jsx)("div",{className:"flex align-center gap15",children:[p,x].map(e=>{var l,a;return(0,t.jsxs)("div",{className:(0,s.Z)("flex column align-center gap5",e$().editionColumn),children:[(0,t.jsx)(eP.Z,{serial:e.replace(/E$/,"")}),(0,t.jsxs)("div",{className:e$().ownedCount,children:[(0,t.jsx)(u.Z,{children:null!==(a=G&&(null===(l=h[e])||void 0===l?void 0:l[G]))&&void 0!==a?a:0}),G&&(0,t.jsx)(Y.Z,{momentClass:G,height:"1.5rem",width:"1.5rem"})]})]},e)})})]}),(0,t.jsxs)("div",{className:"flex align-center justify-between w-100",children:[H(),(0,t.jsx)(o.Z,{onClick:()=>null==j?void 0:j(h,G),children:(0,t.jsx)(eF.Z,{height:"2rem",width:"2rem",className:"shrink0"})})]})]})})}),O()]}):(0,t.jsxs)("div",{className:e$().root,children:[(0,t.jsxs)("div",{className:"flex align-center justify-between p10",style:{backgroundColor:"#00000099"},children:[(0,t.jsxs)("div",{className:"flex align-center gap15",style:{minWidth:0},children:[(0,t.jsx)("div",{className:e$().imageWrap,children:(0,t.jsx)(U.Z,{src:null!=B?B:P,alt:h.playerName,fill:!0,objectFit:"cover",objectPosition:"top"})}),(0,t.jsxs)("div",{className:e$().playerInfoText,children:[F(),(0,t.jsxs)("div",{className:"flex align-center gap5",children:[(0,t.jsx)(u.Z,{weight:"heavy",size:"lg",children:(0,ev.At)(h.playerName)}),(E||L)&&(0,t.jsxs)(u.Z,{size:"xs",color:"smoke",children:[" | ",E,E&&L&&" | ",L]})]}),H()]})]}),(0,t.jsxs)("div",{className:"flex align-center gap20",children:[[p,x].map(e=>{var l,a;return(0,t.jsxs)("div",{className:"flex column align-center gap5",children:[(0,t.jsx)(eP.Z,{serial:e.replace(/E$/,"")}),(0,t.jsxs)("div",{className:e$().ownedCount,children:[(0,t.jsx)(u.Z,{children:null!==(a=G&&(null===(l=h[e])||void 0===l?void 0:l[G]))&&void 0!==a?a:0}),G&&(0,t.jsx)(Y.Z,{momentClass:G,height:"1.5rem",width:"1.5rem"})]})]},e)}),(0,t.jsx)(o.Z,{onClick:()=>I(e=>!e),children:(0,t.jsx)(ey.Z,{height:"2rem",width:"2rem",className:(0,s.Z)("shrink0",e$().chevron,M&&e$().open)})})]})]}),O(),(0,t.jsx)(ex.M,{initial:!1,children:M&&(0,t.jsxs)(eg.E.div,{initial:{height:0,opacity:0,y:8},animate:{height:"auto",opacity:1,y:0},exit:{height:0,opacity:0,y:8},transition:{duration:.18,ease:"easeInOut"},style:{overflow:"hidden"},children:[(0,t.jsx)("div",{className:e$().divider}),(0,t.jsx)("div",{className:"flex column ph10 pb10",children:D.map(e=>(0,t.jsx)(eV,{player:h,moment:e,newEdition:p,oldEdition:x,scoutState:g,playerDivisionMap:b},e.momentGroupId))})]},"accordion")})]})},eJ=a(29148),e0=a.n(eJ),e1=e=>{let{totals:l,showDividers:a}=e;return(0,t.jsx)(t.Fragment,{children:l.map((e,l)=>(0,t.jsxs)(i.Fragment,{children:[l>0&&a&&(0,t.jsx)("div",{className:e0().totalsDivider}),(0,t.jsxs)("div",{className:e0().totalBox,children:[(0,t.jsxs)("div",{className:"flex align-center gap5",children:[e.rarity&&(0,t.jsx)(Y.Z,{momentClass:e.rarity,height:"1.5rem",width:"1.5rem"}),(0,t.jsxs)(u.Z,{color:"smoke",size:"sm",children:[e.title,": ",e.count]})]}),(0,t.jsx)(eS.Z,{value:e.price,weight:"heavy",size:"sm",iconSize:"2rem",valueLimit:1e5})]})]},e.title))})},e5=a(36609),e2=a.n(e5),e7=e=>{var l,a,r,d,c,m,v,x;let{open:g,onClose:y,player:_,otherPlayers:j,isLoading:f,loadMore:N,newEdition:S,oldEdition:b,scoutState:C,scoutTotals:Z,userLimit:w,onClearBucket:M,onContinue:I,isContinueDisabled:k,playerPercentage:P,isHistorical:E,rarityScoutState:L,playerDivisionMap:R,mapL15:G,fantasyKey:A,onGraphClick:D}=e,B=(0,O.Z)({max:"sm"}),[T,F]=(0,i.useState)(null),[H,U]=(0,i.useState)(!1),z=(null==T?void 0:T.rarity)&&null!==(d=T.player.rarities[T.rarity])&&void 0!==d?d:[],W=(0,eu.M)(!!N,f,N),K=!!(null===(l=C.upgradeData)||void 0===l?void 0:l.instance)&&!!(null===(r=C.upgradeData)||void 0===r?void 0:null===(a=r.userLimit)||void 0===a?void 0:a.totalCounts),V=()=>(0,t.jsxs)(t.Fragment,{children:[_?(0,t.jsx)(ek,{player:_,scoutState:L,selectedByPercent:null==P?void 0:P[(0,ev.o7)(_).playerId],playerDivisionMap:R,dataL15:null==G?void 0:G[(0,ev.o7)(_).playerId],fantasyKey:A,onGraphClick:e=>null==D?void 0:D(_,e)}):f&&(0,t.jsx)(ep.Z,{}),!!j.length&&(0,t.jsxs)("div",{className:(0,s.Z)("mt20",e2().otherPlayers),children:[(0,t.jsxs)("div",{className:e2().otherPlayersHeader,onClick:()=>U(e=>!e),role:"button",children:[(0,t.jsx)(u.Z,{weight:"heavy",size:"lg",children:"Other Eligible Players"}),(0,t.jsx)(ey.Z,{height:"2rem",width:"2rem",className:(0,s.Z)("shrink0",e2().chevron,H&&e2().open)})]}),(0,t.jsx)(ex.M,{initial:!1,children:H&&(0,t.jsxs)(eg.E.div,{initial:{height:0,opacity:0}
1,animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.18,ease:"easeInOut"},style:{overflow:"hidden"},children:[(0,t.jsx)("div",{className:(0,s.Z)("flex column gap15",e2().otherPlayersContent),children:j.map(e=>(0,t.jsx)(ek,{player:e,scoutState:L,selectedByPercent:null==P?void 0:P[(0,ev.o7)(e).playerId],playerDivisionMap:R,dataL15:null==G?void 0:G[(0,ev.o7)(e).playerId],fantasyKey:A,onGraphClick:l=>null==D?void 0:D(e,l)},(0,ev.o7)(e).playerId))}),N&&(0,t.jsx)("div",{ref:W,className:"flex flex-center mv25",children:f&&(0,t.jsx)(ep.Z,{})})]},"other-players")})]})]});return(0,t.jsxs)(Q.Z,{open:g,onClose:y,showHeader:!1,className:e2().modalRoot,classes:{body:e2().contentWrapper},children:[(0,t.jsxs)("div",{className:e2().header,children:[(0,t.jsxs)("div",{className:"flex column mt5",children:[(0,t.jsx)(h.Z,{variant:"h1",children:T?(0,ev.At)(T.player.playerName):"Purchase Collectible"}),!B&&!E&&K&&(0,t.jsxs)(u.Z,{color:"smoke2",size:"sm",children:["Upgrades Remaining: ",w,"/",null===(m=C.upgradeData)||void 0===m?void 0:null===(c=m.userLimit)||void 0===c?void 0:c.totalCounts]})]}),(0,t.jsx)(o.Z,{onClick:()=>T?F(null):y(),children:(0,t.jsx)(p.Z,{height:"2.5rem",width:"2.5rem",className:"shrink0"})})]}),(0,t.jsx)("div",{className:e2().body,children:(()=>{if(E)return V();if(T)return(0,t.jsx)("div",{className:"flex column",children:z.map(e=>(0,t.jsx)(eT,{player:T.player,moment:e,newEdition:S,oldEdition:b,scoutState:C,playerDivisionMap:R},e.momentGroupId))});let e=(e,l)=>F({player:e,rarity:l});return(0,t.jsxs)(t.Fragment,{children:[_&&(0,t.jsx)(eY,{player:_,newEdition:S,oldEdition:b,scoutState:C,isMobile:B,onExpand:e,selectedByPercent:null==P?void 0:P[(0,ev.o7)(_).playerId],playerDivisionMap:R}),!!j.length&&(0,t.jsxs)("div",{className:(0,s.Z)("mt20",e2().otherPlayers),children:[(0,t.jsxs)("div",{className:e2().otherPlayersHeader,onClick:()=>U(e=>!e),role:"button",children:[(0,t.jsx)(u.Z,{weight:"heavy",size:"lg",children:"Other Eligible Players"}),(0,t.jsx)(ey.Z,{height:"2rem",width:"2rem",className:(0,s.Z)("shrink0",e2().chevron,H&&e2().open)})]}),(0,t.jsx)(ex.M,{initial:!1,children:H&&(0,t.jsxs)(eg.E.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.18,ease:"easeInOut"},style:{overflow:"hidden"},children:[(0,t.jsx)("div",{className:(0,s.Z)("flex column gap15",e2().otherPlayersContent),children:j.map(l=>(0,t.jsx)(eY,{player:l,newEdition:S,oldEdition:b,scoutState:C,isMobile:B,onExpand:e,selectedByPercent:null==P?void 0:P[(0,ev.o7)(l).playerId],playerDivisionMap:R},(0,ev.o7)(l).playerId))}),N&&(0,t.jsx)("div",{ref:W,className:"flex flex-center mv25",children:f&&(0,t.jsx)(ep.Z,{})})]},"other-players")})]})]})})()}),(0,t.jsxs)("div",{className:e2().footer,children:[T?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:(0,s.Z)("flex align-center justify-between p10",e2().totalsBackground),children:(0,t.jsx)(e1,{totals:Z,showDividers:!0})}),(0,t.jsx)(n.Z,{onClick:I,disabled:k,withLoader:!0,fullWidth:!0,children:"Continue"})]}):(0,t.jsxs)("div",{className:(0,s.Z)("flex align-center justify-between ",B&&"column w-100"),children:[(0,t.jsx)("div",{className:(0,s.Z)("flex align-center p10",e2().totalsBackground),children:(0,t.jsx)(e1,{totals:Z,showDividers:!0})}),(0,t.jsxs)("div",{className:(0,s.Z)("flex align-center gap10",B&&"w-100"),children:[(0,t.jsx)(n.Z,{fullWidth:B,variant:"gray2",onClick:M,children:"Reset"}),(0,t.jsx)(n.Z,{fullWidth:B,onClick:I,disabled:k,withLoader:!0,children:"Continue"})]})]}),!E&&B&&K&&(0,t.jsxs)(u.Z,{color:"smoke2",size:B?"md":"sm",align:"center",className:"mt10",children:["Upgrades Remaining: ",w,"/",null===(x=C.upgradeData)||void 0===x?void 0:null===(v=x.userLimit)||void 0===v?void 0:v.totalCounts]})]})]})},e4=a(30976),e3=a(25948),e8=a.n(e3);let e9=[C.$0.COMMON,C.$0.RARE,C.$0.EPIC];var e6=e=>{var l,a;let{player:n,scoutState:r,selectedByPercent:d,dataL15:c,fantasyKey:m,onClick:h,disabled:p,playerDivisionMap:x,onGraphClick:g}=e,{t:y}=(0,N.Z)("common"),_=(0,O.Z)({max:"sm"}),{playerId:j,playerImage:S,teamAbbrevation:b,playerSkills:C}=(0,ev.o7)(n),Z=n.playerName,w=!!(null==x?void 0:null===(a=x[j])||void 0===a?void 0:null===(l=a.playingElevenMatchIdList)||void 0===l?void 0:l.length),M=(0,i.useMemo)(()=>e9.filter(e=>{var l,a;return(null!==(a=null===(l=n.rarities[e])||void 0===l?void 0:l.length)&&void 0!==a?a:0)>0}),[n]),I=e=>{let{constants:l}=r,a=[null==l?void 0:l.buyMore202225E,null==l?void 0:l.buyMore2026E].flatMap(l=>{var a,t;if(!l)return[];let i=n[l],s=null!==(t=null==i?void 0:null===(a=i[e])||void 0===a?void 0:a.listings)&&void 0!==t?t:[];return s.length?[Math.min(...s.map(e=>e.price))]:[]});return a.length?Math.min(...a):null},k=e=>e.stopPropagation();return(0,t.jsx)("div",{className:(0,s.Z)(e8().row,"cursor-pointer",p&&e8().disabled),onClick:h,children:(0,t.jsxs)("div",{className:"flex justify-between gap15",children:[(0,t.jsxs)("div",{className:"flex-auto",children:[(0,t.jsx)("div",{className:"flex align-center justify-between",children:(0,t.jsxs)("div",{className:"flex align-center gap10",children:[(0,t.jsxs)("div",{className:e8().imageWrap,children:[(0,t.jsx)(U.Z,{src:S,alt:Z,fill:!0,objectFit:"cover",objectPosition:"top"}),w&&(0,t.jsx)("div",{className:e8().playing11,children:(0,t.jsx)(u.Z,{className:"fs10",color:"dark",children:"XI"})})]}),(0,t.jsxs)("div",{className:"flex column flex-start",style:{height:"9rem"},children:[d?(0,t.jsx)(v.Z,{text:y("selected-by",{percent:"".concat(Number(d).toFixed(),"%")}),children:(0,t.jsxs)("div",{className:(0,s.Z)(e8().selectedByPill,"flex align-center gap5"),children:[(0,t.jsx)(e_.Z,{height:"1.5rem",width:"1.5rem"}),(0,t.jsx)(u.Z,{className:"fs10",children:"".concat(Number(d).toFixed(),"%")})]})}):(0,t.jsx)("div",{style:{height:"2.5rem"}}),(0,t.jsxs)("div",{style:{marginTop:"0.25rem"},children:[(0,t.jsx)(u.Z,{weight:"heavy",size:"lg",children:(0,ev.At)(Z)}),(b||C)&&(0,t.jsxs)(u.Z,{size:"xs",color:"smoke",children:[b,b&&C&&" | ",C]})]})]})]})}),!!M.length&&(0,t.jsx)("div",{className:(0,s.Z)(e8().rarityRow,e8().bottomRow),children:M.map(e=>{let l=I(e);return(0,t.jsxs)("div",{className:"flex column align-center",children:[(0,t.jsxs)("div",{className:e8().rarityPill,children:[(0,t.jsx)(e4.Z,{momentClass:e,height:"2rem",width:"2rem"}),(0,t.jsx)(u.Z,{size:_?"md":"sm",children:f()(e)})]}),(0,t.jsx)(u.Z,{size:"xs",color:"smoke",className:"mt5",children:null===l?"Floor Price: -":"Floor Price: $".concat(l)})]},e)})})]}),(0,t.jsxs)("div",{className:e8().rightColumn,children:[!!c&&(0,t.jsxs)("div",{className:(0,s.Z)(T().stats,T().historicalStats),onClick:e=>{k(e),null==g||g((0,ev.Qt)(n))},children:[(()=>{var e;let l=(null==c?void 0:null===(e=c.matches)||void 0===e?void 0:e.slice(-5))||[];return l.length<5&&l.unshift(...Array(5-l.length).fill(void 0)),(0,t.jsx)("div",{className:T().graph,children:l.map((e,l)=>{let a=Math.min(100,Number((null==e?void 0:e.playerMatchScore)||0)),i=(0,ej.CG)(a),s=Math.max(1,16*a/100);return(0,t.jsx)("div",{style:{backgroundColor:i,height:s},className:T().bar}
1,(null==e?void 0:e.matchId)||l)})})})(),(0,t.jsx)("div",{style:{backgroundColor:(0,ej.CG)((null==c?void 0:c[m||"avgL15"])||0)},className:(0,s.Z)(T().box,T().statText),children:(0,t.jsx)(u.Z,{className:"fs12",color:"dark",weight:"heavy",children:(null==c?void 0:c[m||"avgL15"])||"DNP"})}),(0,t.jsx)(v.Z,{text:"Simulated Match",children:(0,t.jsx)("div",{className:T().jockeyIcon,children:(0,t.jsx)(eN.Z,{className:"shrink0"})})})]}),(0,t.jsx)(o.Z,{onClick:e=>{k(e),h()},children:(0,t.jsx)(eF.Z,{height:"2rem",width:"2rem",className:"shrink0"})})]})]})})};let le=[C.$0.COMMON,C.$0.RARE,C.$0.EPIC];var ll=e=>{var l,a,n,r,d,c,m,h,p;let{player:x,newEdition:g,oldEdition:y,scoutState:_,selectedByPercent:j,dataL15:S,fantasyKey:b,onClick:C,disabled:Z,isHistorical:w,playerDivisionMap:M,onGraphClick:I}=e,[k,P]=(0,i.useState)(null),{t:E}=(0,N.Z)("common"),L=(0,O.Z)({max:"sm"}),{playerId:R,playerImage:G,teamAbbrevation:A,playerSkills:D}=(0,ev.o7)(x),B=!!(null==M?void 0:null===(a=M[R])||void 0===a?void 0:null===(l=a.playingElevenMatchIdList)||void 0===l?void 0:l.length),F=(0,i.useMemo)(()=>le.filter(e=>{var l,a;return(null!==(a=null===(l=x.rarities[e])||void 0===l?void 0:l.length)&&void 0!==a?a:0)>0}),[x]),H=null!==(m=k&&F.includes(k)?k:F[0])&&void 0!==m?m:null,z=H&&null!==(h=x.rarities[H])&&void 0!==h?h:[],W=null!==(p=null===(r=z[0])||void 0===r?void 0:null===(n=r.imageUrl)||void 0===n?void 0:n.thumbnail_small)&&void 0!==p?p:null===(c=z[0])||void 0===c?void 0:null===(d=c.imageUrl)||void 0===d?void 0:d.thumbnail1_small,K=e=>{let{constants:l}=_,a=[null==l?void 0:l.buyMore202225E,null==l?void 0:l.buyMore2026E].flatMap(l=>{var a,t;if(!l)return[];let i=x[l],s=null!==(t=null==i?void 0:null===(a=i[e])||void 0===a?void 0:a.listings)&&void 0!==t?t:[];return s.length?[Math.min(...s.map(e=>e.price))]:[]});return a.length?Math.min(...a):null},V=e=>e.stopPropagation();return(0,t.jsx)("div",{className:(0,s.Z)(e8().row,"cursor-pointer",Z&&e8().disabled),onClick:C,children:(0,t.jsxs)("div",{className:"flex justify-between gap15",children:[(0,t.jsxs)("div",{className:"flex-auto",children:[(0,t.jsxs)("div",{className:"flex align-center justify-between",children:[(0,t.jsxs)("div",{className:"flex align-center gap10",children:[(0,t.jsxs)("div",{className:e8().imageWrap,children:[(0,t.jsx)(U.Z,{src:null!=W?W:G,alt:x.playerName,fill:!0,objectFit:"cover",objectPosition:"top"}),B&&(0,t.jsx)("div",{className:e8().playing11,children:(0,t.jsx)(u.Z,{className:"fs10",color:"dark",children:"XI"})})]}),(0,t.jsxs)("div",{className:"flex column flex-start",style:{height:"9rem"},children:[j?(0,t.jsx)(v.Z,{text:E("selected-by",{percent:"".concat(Number(j).toFixed(),"%")}),children:(0,t.jsxs)("div",{className:(0,s.Z)(e8().selectedByPill,"flex align-center gap5"),children:[(0,t.jsx)(e_.Z,{height:"1.5rem",width:"1.5rem"}),(0,t.jsx)(u.Z,{className:"fs10",children:"".concat(Number(j).toFixed(),"%")})]})}):(0,t.jsx)("div",{style:{height:"2.5rem"}}),(0,t.jsxs)("div",{style:{marginTop:"0.25rem"},children:[(0,t.jsx)(u.Z,{weight:"heavy",size:"lg",children:(0,ev.At)(x.playerName)}),(A||D)&&(0,t.jsxs)(u.Z,{size:"xs",color:"smoke",children:[A,A&&D&&" | ",D]})]})]})]}),(0,t.jsx)("div",{className:"flex align-center gap10 shrink0",children:[g,y].map(e=>{var l,a;return(0,t.jsxs)("div",{className:"flex column align-center gap5",children:[(0,t.jsx)(eP.Z,{serial:e.replace(/E$/,"")}),(0,t.jsxs)("div",{className:e8().ownedCount,children:[(0,t.jsx)(u.Z,{children:null!==(a=H&&(null===(l=x[e])||void 0===l?void 0:l[H]))&&void 0!==a?a:0}),H&&(0,t.jsx)(Y.Z,{momentClass:H,height:"1.5rem",width:"1.5rem"})]})]},e)})})]}),!!F.length&&(0,t.jsx)("div",{className:(0,s.Z)(e8().rarityRow,e8().bottomRow),children:F.map(e=>{let l=K(e);return(0,t.jsxs)("div",{className:"flex column align-center",onClick:l=>{V(l),P(e)},children:[(0,t.jsxs)("div",{className:(0,s.Z)(e8().rarityPill,H===e&&e8().selected),children:[(0,t.jsx)(Y.Z,{momentClass:e,height:"2rem",width:"2rem"}),(0,t.jsx)(u.Z,{size:L?"md":"sm",children:f()(e)})]}),(0,t.jsx)(u.Z,{size:"xs",color:"smoke",className:"mt5",children:null===l?"Floor Price: -":"Floor Price: $".concat(l)})]},e)})})]}),(0,t.jsxs)("div",{className:e8().rightColumn,children:[!!S&&(0,t.jsxs)("div",{className:(0,s.Z)(T().stats,w&&T().historicalStats),onClick:e=>{V(e),null==I||I(z[0])},children:[(()=>{var e;let l=(null==S?void 0:null===(e=S.matches)||void 0===e?void 0:e.slice(-5))||[];return l.length<5&&l.unshift(...Array(5-l.length).fill(void 0)),(0,t.jsx)("div",{className:T().graph,children:l.map((e,l)=>{let a=Math.min(100,Number((null==e?void 0:e.playerMatchScore)||0)),i=(0,ej.CG)(a),s=Math.max(1,16*a/100);return(0,t.jsx)("div",{style:{backgroundColor:i,height:s},className:T().bar}
1,(null==e?void 0:e.matchId)||l)})})})(),(0,t.jsx)("div",{style:{backgroundColor:(0,ej.CG)((null==S?void 0:S[b||"avgL15"])||0)},className:(0,s.Z)(T().box,T().statText),children:(0,t.jsx)(u.Z,{className:"fs12",color:"dark",weight:"heavy",children:(null==S?void 0:S[b||"avgL15"])||"DNP"})}),w&&(0,t.jsx)(v.Z,{text:"Simulated Match",children:(0,t.jsx)("div",{className:T().jockeyIcon,children:(0,t.jsx)(eN.Z,{className:"shrink0"})})})]}),(0,t.jsx)(o.Z,{onClick:e=>{V(e),C()},children:(0,t.jsx)(eF.Z,{height:"2rem",width:"2rem",className:"shrink0"})})]})]})})},la=e=>{var l;let a;let{onContinue:s,playerPercentage:n,mapL15:o,fantasyKey:r,filterValues:d,allowedPlayingPlayersMomentGroupsSlugs:c,isHistorical:m,slotSkillType:u,playerDivisionMap:v,setFantasyKey:p,ineligiblePlayerIds:x,challengeId:y,source:_,sortBy:j,competitionId:f,matchId:S,challenge:C,generalChallengeConfig:Z}=e,[w,M]=(0,i.useState)(null),[k,P]=(0,i.useState)(null),{t:E}=(0,N.Z)("challenges"),{enqueueSnackbar:L}=(0,b.Ds)(),R=(0,i.useMemo)(()=>{if(!(null==c?void 0:c.length))return null;let e=new Map;for(let t of c){var l,a;let i=null!==(a=null===(l=t.slugs)||void 0===l?void 0:l.filter(Boolean))&&void 0!==a?a:[];i.length&&null!=t.team_id&&e.set(String(t.team_id),i)}return e},[c]),G=(0,i.useMemo)(()=>{var e,l,a,t,i;let s={};if((null==d?void 0:null===(e=d.momentClass)||void 0===e?void 0:e.length)&&(s.momentClass=d.momentClass.map(I.f).filter(Boolean).join(",")),(null==d?void 0:null===(l=d.editions)||void 0===l?void 0:l.length)&&(s.editions=d.editions.map(I.f).filter(Boolean).join(",")),(null==d?void 0:null===(a=d.players)||void 0===a?void 0:a.length)&&(s.players=d.players.map(I.f).filter(Boolean).join(",")),u?s.playerSkills=u:(null==d?void 0:null===(t=d.playerSkills)||void 0===t?void 0:t.length)&&(s.playerSkills=d.playerSkills.map(I.f).filter(Boolean).join(",")),R&&R.size>0){let e=(null==d?void 0:null===(i=d.teams)||void 0===i?void 0:i.length)?new Set(d.teams.map(e=>String((0,I.f)(e)))):null,l=new Set;if(e&&e.size>0){for(let a of e){let e=R.get(a);if(e)for(let a of e)l.add(a)}s.slugs=l.size>0?Array.from(l).join(","):"none"}else{for(let e of R.values())for(let a of e)l.add(a);l.size>0&&(s.slugs=Array.from(l).join(","))}}return j&&(s.sortBy=j),f&&(s.competitionId=f),S&&(s.matchId=S),s},[null==d?void 0:d.momentClass,null==d?void 0:d.editions,null==d?void 0:d.players,null==d?void 0:d.playerSkills,null==d?void 0:d.teams,R,u,j,f,S]),{players:A,isLoading:D,loadMore:B,newEdition:T,oldEdition:F,upgradeData:U,singlesData:O,constants:z,userLimit:W,scoutTotals:K,rarityTotals:V,totalsEventData:q,handleClearBucket:$,getPlayerDisplayData:X,getMomentDisplayData:Q,handlePlayerIncrement:Y,handlePlayerDecrement:J,handleMomentIncrement:ee,handleMomentDecrement:el,getRarityDisplayData:ea,handleRarityIncrement:et,handleRarityDecrement:ei,getSelectedListingIds:es}=(0,eh.Z)(G),en={upgradeData:U,singlesData:O,constants:z,userLimit:W,getPlayerDisplayData:X,getMomentDisplayData:Q,handlePlayerIncrement:Y,handlePlayerDecrement:J,handleMomentIncrement:ee,handleMomentDecrement:el,getSelectedListingIds:es},eo=(0,i.useMemo)(()=>{if(!w)return[];let e=(0,ev.o7)(w).playerId;return(null!=A?A:[]).filter(l=>(0,ev.o7)(l).playerId!==e)},[A,w]),er=!K.some(e=>e.count>0),ed=(0,eu.M)(!!B,D,B),ex=k?(0,ev.o7)(k.player).playerId:void 0,{moment:eg}=(0,em.lA)(null==k?void 0:null===(l=k.moment)||void 0===l?void 0:l.slug,void 0,!!k),ey=(0,i.useMemo)(()=>
1({...q,source:_,challengeId:y}),[q,_,y]);return(0,i.useEffect)(()=>{w&&(0,g.L9)("pageview_purchase_collectible_scout",ey)},[w]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex column gap15 pb60",children:[(null==A?void 0:A.length)?A.map(e=>{let l=(0,ev.o7)(e).playerId,a=!!(null==x?void 0:x.has(l)),i=a?()=>L(E("already-playing"),{variant:"error"}):()=>{var l;(0,g.L9)("click_lineup_moment_scout",{momentId:null===(l=(0,ev.Qt)(e))||void 0===l?void 0:l.momentGroupId,challengeId:y,source:_}),M(e)};return m?(0,t.jsx)(e6,{player:e,scoutState:en,selectedByPercent:null==n?void 0:n[l],dataL15:null==o?void 0:o[l],fantasyKey:r,onClick:i,disabled:a,playerDivisionMap:v,onGraphClick:l=>P({player:e,moment:l})},l):(0,t.jsx)(ll,{player:e,newEdition:T,oldEdition:F,scoutState:en,selectedByPercent:null==n?void 0:n[l],dataL15:null==o?void 0:o[l],fantasyKey:r,onClick:i,disabled:a,isHistorical:m,playerDivisionMap:v,onGraphClick:l=>P({player:e,moment:l})},l)}):!D&&(a="No purchasable collectibles found",(0,t.jsx)("div",{className:"flex align-center justify-center pv20",children:(0,t.jsx)("div",{className:ec().empty,children:(0,t.jsx)(h.Z,{className:"mb10",variant:"h2",align:"center",children:a})})})),B&&(0,t.jsx)("div",{ref:ed,className:"flex flex-center mv25",children:D&&(0,t.jsx)(ep.Z,{})})]}),(0,t.jsx)(e7,{open:!!w,onClose:()=>M(null),player:w,otherPlayers:eo,isLoading:D,loadMore:B,newEdition:T,oldEdition:F,scoutState:en,scoutTotals:m?V:K,userLimit:W,onClearBucket:()=>{(0,g.L9)("click_reset_purchase_collectible_scout",ey),$()},onContinue:()=>{(0,g.L9)("click_continue_purchase_collectible_scout",ey),s()},isContinueDisabled:er,playerPercentage:n,isHistorical:m,rarityScoutState:{getDisplayData:ea,handleIncrement:et,handleDecrement:ei},playerDivisionMap:v,mapL15:o,fantasyKey:r,onGraphClick:(e,l)=>P({player:e,moment:l})}),(0,t.jsx)(H.Z,{open:!!k,onClose:()=>P(null),moment:k?(0,ev.My)(k.player,k.moment,null==eg?void 0:eg.quantity):void 0,player:ex?null==v?void 0:v[ex]:void 0,dataL15:ex?null==o?void 0:o[ex]:void 0,selectedBy:ex?null==n?void 0:n[ex]:void 0,fantasyKey:r,setFantasyKey:p,isHistorical:m,challenge:C,generalChallengeConfig:Z})]})},lt=a(843),li=a.n(lt),ls=function(e){let{suggestions:l,player:a,backupPlayers:t,swapOutMoment:s,suggestionKeys:n,ineligiblePlayerIds:o,isSuper:r,filterE4Collectibles:d,generalChallengeConfig:c,swapRaritiesAllowed:m,activeTab:u}=e,[h,v]=(0,i.useState)({}),p=(0,i.useMemo)(()=>{var e;let t=[...n.flatMap(e=>[...l["".concat(e,"_userOwned")]||[],...l["".concat(e,"_userOwned_locked")]||[]]).map(e=>e.momentGroupId),...n.flatMap(e=>[...l["".concat(e,"_PBFC")]||[]]),...n.flatMap(e=>[...l["".concat(e,"_marketplace")]||[],...l["".concat(e,"_fcShop")]||[],...l["".concat(e,"_fcSelect")]||[]])],i={},s={},o=new Set,r="owned"===u&&t.some(e=>!0===e.isPBFC);return t.forEach(e=>{o.add(e.momentClass);let l=e.metaData.playerId,t=(null==a?void 0:a[l])||(null==a?void 0:a[String(l)]),n=(null==t?void 0:t.teamId)!=null?String(t.teamId):null,r=e.metaData.primaryPlayerName,d=null==t?void 0:t.teamName;l&&!s[l]&&(s[l]={id:String(l),name:r}),n&&!i[n]&&(i[n]={id:n,name:null!=d?d:""})}
1),null===(e=l.allowedPlayingPlayersMomentGroupsSlugs)||void 0===e||e.forEach(e=>{if(null!=e.team_id){let l=String(e.team_id);i[l]||(i[l]={id:l,name:e.team_title})}}),{players:Object.values(s),teams:Object.values(i).sort((e,l)=>(0,I.P)(e).localeCompare((0,I.P)(l))),free:r?[{id:"free",name:"Free"}]:[],momentClass:Array.from(o).sort((e,l)=>K.hx[e]-K.hx[l])}},[l,a,n,u]);(0,i.useEffect)(()=>{p&&v(e=>{var l,a,t,i,s,o,r,d;let c={};if(null===(l=e.players)||void 0===l?void 0:l.length){let l=new Set(null===(o=p.players)||void 0===o?void 0:o.map(I.f).map(String));c.players=e.players.filter(e=>l.has(String((0,I.f)(e)))),c.players.length||delete c.players}if(null===(a=e.teams)||void 0===a?void 0:a.length){let l=new Set(null===(r=p.teams)||void 0===r?void 0:r.map(I.f).map(String));c.teams=e.teams.filter(e=>l.has(String((0,I.f)(e)))),c.teams.length||delete c.teams}if(null===(t=e.momentClass)||void 0===t?void 0:t.length){let l=new Set(p.momentClass);c.momentClass=e.momentClass.filter(e=>l.has(e)),c.momentClass.length||delete c.momentClass}if((null===(i=e.playerSkills)||void 0===i?void 0:i.length)&&n.length>1){let l=new Set(n);c.playerSkills=e.playerSkills.filter(e=>l.has((0,I.f)(e))),c.playerSkills.length||delete c.playerSkills}if(null===(s=e.free)||void 0===s?void 0:s.length){let l=new Set(null===(d=p.free)||void 0===d?void 0:d.map(I.f).map(String));c.free=e.free.filter(e=>l.has(String((0,I.f)(e)))),c.free.length||delete c.free}return c})},[n,u]);let x=(0,i.useCallback)(function(e){var l,i,n,v,p;let x=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",g=!(arguments.length>2)||void 0===arguments[2]||arguments[2],y=e,_=x+"metaData.playerId",j=x+"metaData.secondaryPlayers",f=x+"momentClass",N=x+"skillType",S=new Set(null===(l=h.teams)||void 0===l?void 0:l.map(I.f).map(String)),b=new Set(null===(i=h.players)||void 0===i?void 0:i.map(I.f).map(String)),C=new Set(h.momentClass),Z=new Set(h.playerSkills),w=new Set(null==t?void 0:t.flatMap(e=>{var l;return[String(e.momentGroupId.metaData.playerId),...(null===(l=e.momentGroupId.metaData.secondaryPlayers)||void 0===l?void 0:l.map(e=>String(e.playerId)))||[]]})),M=new Set(s?[String(s.momentGroupId.metaData.playerId),...(null===(n=s.momentGroupId.metaData.secondaryPlayers)||void 0===n?void 0:n.map(e=>String(e.playerId)))||[]]:void 0),P=(null==h?void 0:h.free)&&(null==h?void 0:null===(v=h.free)||void 0===v?void 0:v.length)>0;return C.size>0&&!P&&(y=y.filter(e=>!0!==li()(e,x+"isPBFC"))),s&&(y=y.filter(e=>(r||(null==m?void 0:m.includes(li()(e,f))))&&!o.has(String(li()(e,_)))&&!M.has(String(li()(e,_))))),S.size&&(y=y.filter(e=>{let l=(null==a?void 0:a[li()(e,_)])||(null==a?void 0:a[String(li()(e,_))]),t=(null==l?void 0:l.teamId)!=null?String(l.teamId):null;return null!=t&&S.has(t)})),b.size&&(y=y.filter(e=>{var l;return b.has(String(li()(e,_)))||(null===(l=li()(e,j))||void 0===l?void 0:l.some(e=>b.has(String(e.playerId))))})),C.size&&(y=y.filter(e=>C.has(li()(e,f)))),Z.size&&(y=y.filter(e=>Z.has(li()(e,N)))),w.size&&(y=y.filter(e=>!w.has(li()(e,_)))),d&&g&&(y=y.filter(e=>{let l="owned"===u?[li()(e,"momentSourceData.series")]:li()(e,"editionTags")||li()(e,"momentGroupId.editionTags");return(0,k.OS)(null==c?void 0:c.CURRENT_EDITION,l)})),(null===(p=h.free)||void 0===p?void 0:p.length)&&(y=y.filter(e=>!0===li()(e,x+"isPBFC"))),y},[t,s,h,a,o,d]),g=(0,i.useCallback)(function(e){let l=!(arguments.length>1)||void 0===arguments[1]||arguments[1],a=e.filter(e=>e.momentGroupId||e.id),t=e.filter(e=>!e.momentGroupId&&!e.id);return[...x(a,"momentGroupId.",l),...x(t,"",l)]},[x]);return{filterValues:h,setFilterValues:v,filters:p,filterNFTs:x,filterHybridNFTs:g}},ln=function(e){let{player:l,mapL15:a,fantasyKey:t,removeL15Options:s}=e,{t:n}=(0,N.Z)("challenges"),o="avgL15"===t?15:5,r={owned:[{title:n("sort-L15-high",{matchCount:o}),key:"-avgL15"},{title:n("sort-L15-low",{matchCount:o}),key:"avgL15"},{title:n("sort-name"),key:"momentGroupId.metaData.primaryPlayerName"},...K.gu?[]:[{title:n("sort-points-high"),key:"-collectibleScore.totalScore"},{title:n("sort-points-low"),key:"collectibleScore.totalScore"}
1]],provided:[{title:n("sort-L15-high",{matchCount:o}),key:"-avgL15"},{title:n("sort-L15-low",{matchCount:o}),key:"avgL15"},{title:n("sort-name"),key:"metaData.primaryPlayerName"}],hybrid:[{title:n("sort-L15-high",{matchCount:o}),key:"-avgL15"},{title:n("sort-L15-low",{matchCount:o}),key:"avgL15"},{title:n("sort-name"),key:"primaryPlayerName"}],market:[{title:n("sort-L15-high",{matchCount:o}),key:"-avgL15"},{title:n("sort-L15-low",{matchCount:o}),key:"avgL15"},{title:n("sort-name"),key:"metaData.primaryPlayerName"},...K.gu?[]:[{title:n("sort-points-high"),key:"-momentClass"},{title:n("sort-points-low"),key:"momentClass"}],{title:n("sort-lowestAsk"),key:"lowestAsk"}],scout:[{title:n("sort-L5-desc-playingXI"),key:"L5DESC,playingXI"},{title:n("sort-L5-asc-playingXI"),key:"L5ASC,playingXI"},{title:n("sort-L15-desc-playingXI"),key:"L15DESC,playingXI"},{title:n("sort-L15-asc-playingXI"),key:"L15ASC,playingXI"},{title:n("sort-name"),key:"playerASC"},{title:n("sort-name-desc"),key:"playerDESC"}]},d=(0,i.useMemo)(()=>{let e=[],l=[],a=[];return s?(e=r.owned.filter(e=>!e.key.includes("avgL15")),l=r.market.filter(e=>!e.key.includes("avgL15")),a=r.scout.filter(e=>!/^L(5|15)(ASC|DESC)/.test(e.key))):(e=r.owned,l=r.market,a=r.scout.filter(e=>!/^L(5|15)(ASC|DESC)/.test(e.key)||("avgL15"===t?e.key.startsWith("L15"):e.key.startsWith("L5")))),{owned:e,provided:r.provided,hybrid:r.hybrid,market:l,scout:a}},[s,t]),[c,m]=(0,i.useState)({owned:d.owned[0].key,provided:r.provided[0].key,hybrid:r.hybrid[0].key,market:d.market[0].key,scout:"avgL15"===t?"L15DESC,playingXI":"L5DESC,playingXI"}),u=(0,i.useCallback)(e=>{let i=(e,s,n)=>{let o,r;let d=e.id?e.momentGroupId:e,c=s.id?s.momentGroupId:s,{playingPlayerId:m}=(0,k.qm)(d.metaData,l),{playingPlayerId:u}=(0,k.qm)(c.metaData,l);if(m&&!u)return -1;if(!m&&u)return 1;let h=n[0].startsWith("-"),v=n[0].replace("-","");if(v.endsWith("avgL15")){var p,x;let{playingPlayerId:e}=(0,k.qm)(d.metaData,l),{playingPlayerId:i}=(0,k.qm)(c.metaData,l);o=(null==a?void 0:null===(p=a[e||d.metaData.playerId])||void 0===p?void 0:p[t||"avgL15"])||0,r=(null==a?void 0:null===(x=a[i||c.metaData.playerId])||void 0===x?void 0:x[t||"avgL15"])||0}else v.endsWith("momentClass")?(o=K.hx[d.momentClass],r=K.hx[c.momentClass]):(o=li()(e,v),r=li()(s,v),"string"==typeof o&&(o=o.toLowerCase()),"string"==typeof r&&(r=r.toLowerCase()));return o<r?h?1:-1:o>r?h?-1:1:n.length>1?i(e,s,n.slice(1)):0},s=e=>{var l,a,t,i,s,n,o;return(null==e?void 0:null===(l=e.momentGroupId)||void 0===l?void 0:l.metaData)?null!==(i=null===(t=e.momentGroupId.metaData.primaryPlayerName)||void 0===t?void 0:null===(a=t.toLowerCase)||void 0===a?void 0:a.call(t))&&void 0!==i?i:"":(null==e?void 0:e.metaData)&&null!==(o=null===(n=e.metaData.primaryPlayerName)||void 0===n?void 0:null===(s=n.toLowerCase)||void 0===s?void 0:s.call(n))&&void 0!==o?o:""};return(l,a)=>{var t,n,o,r,d,m;let u="owned"===e?"momentGroupId.metaData.primaryPlayerName":"metaData.primaryPlayerName";if("hybrid"===e&&(null===(t=c[e])||void 0===t?void 0:t.endsWith("primaryPlayerName"))){let e=s(l),t=s(a);return e<t?-1:e>t?1:0}return(null===(n=c[e])||void 0===n?void 0:n.endsWith("avgL15"))?i(l,a,[c[e],u,"-momentClass"]):(null===(o=c[e])||void 0===o?void 0:o.endsWith("primaryPlayerName"))?i(l,a,[c[e],"-momentClass"]):(null===(r=c[e])||void 0===r?void 0:r.endsWith("totalScore"))?i(l,a,[c[e],u,"-avgL15"]):(null===(d=c[e])||void 0===d?void 0:d.endsWith("momentClass"))||(null===(m=c[e])||void 0===m?void 0:m.endsWith("lowestAsk"))?i(l,a,[c[e],u]):0}},[c,l,a,t]);return{sortOptions:d,sortKey:c,setSortKey:m,sorter:u}};function lo(e){let{momentClass:l,metaData:a}=e;return[l,a.playerId].join("|")}var lr=e=>{var l,a,j,D,B;let{isLoading:T,lineupId:U,selectedMoment:O,challenge:z,config:W,suggestions:K,player:V,mapL15:q,structure:$,structureMap:X,onSelectMoment:Y,mutateSuggestions:J,backupPlayers:ee,backupLineup:el,headerComponent:ei,swapOutMoment:es,fantasyKey:ed,setFantasyKey:em,playerPercentage:eu,liveScoreMap:eh,onSaveLineup:ev,page:ep,swapDetails:ex,isPBFC:eg,lineup:ey}=e,[e_,ej]=(0,i.useState)(!1),[ef,eN]=(0,i.useState)("owned"),[eS,eb]=(0,i.useState)(),[eC,eZ]=(0,i.useState)(),[ew,eM]=(0,i.useState)(),[eI,ek]=(0,i.useState)(),[eP,eE]=(0,i.useState)(),[eL,eR]=(0,i.useState)(),[eG,eA]=(0,i.useState)(),[eD,eB]=(0,i.useState)(!1),{t:eT}=(0,N.Z)("challenges"),eF=(0,S.useRouter)(),{enqueueSnackbar:eH}=(0,b.Ds)(),{getLockedForLineup:eU}=(0,M.Z)(),eO=(0,i.useMemo)(()=>
1{if(es){var e,l;let a=null==es?void 0:null===(l=es.momentGroupId)||void 0===l?void 0:null===(e=l.skillType)||void 0===e?void 0:e.toLowerCase();if(null==a?void 0:a.startsWith("all"))return["all"];if(null==a?void 0:a.startsWith("bat"))return["bat"];if(null==a?void 0:a.startsWith("bowl"))return["bowl"]}return"open"===$.key?["bat","bowl","all"]:[$.key]},[$.key,es]),ez=(null==z?void 0:null===(l=z.leagueDetails)||void 0===l?void 0:l.subType)===C.l3.LEGENDS,eW=z.mode===C.hG.NETS,eK=z.mode===C.hG.HYBRID,eV=z.modeVariant===C.c2.STARTER,eq="coaches"===ep,e$=(null==z?void 0:z.modeVariant)===C.c2.HISTORICAL,eX=z.matchData?[z.matchData.team_a_abbr,z.matchData.title_b_abbr]:void 0,eQ=!!ey&&3===ey.paid,eY=(null==z?void 0:null===(a=z.leagueDetails)||void 0===a?void 0:a.isLeague)?null===(j=z.leagueDetails.leagueMatchIds)||void 0===j?void 0:j.join(","):(null==z?void 0:null===(D=z.matchData)||void 0===D?void 0:D.match_id)?String(z.matchData.match_id):void 0,{generalChallengeConfig:eJ}=(0,M.Z)(),{ineligiblePlayerIds:e0,ineligibleClasses:e1,ineligibleEditions:e5,completeSelectedSet:e2,getMaxLimit:e7}=et({structureMap:X,structure:$,selectedMoment:O,swapOutMoment:es,config:W,backupLineup:el,generalChallengeConfig:eJ,maxInSeasonBoost:z.maxInSeasonBoost,challenge:z}),{filterValues:e4,setFilterValues:e3,filters:e8,filterNFTs:e9,filterHybridNFTs:e6}=ls({suggestions:K,player:V,backupPlayers:ee,swapOutMoment:es,suggestionKeys:eO,ineligiblePlayerIds:e0,isSuper:z.isSuper,filterE4Collectibles:eD,generalChallengeConfig:eJ,swapRaritiesAllowed:z.swapRaritiesAllowed,activeTab:ef}),{sortKey:le,setSortKey:ll,sortOptions:lt,sorter:li}=ln({player:V,mapL15:q,fantasyKey:ed,removeL15Options:ez&&eq}),lr=(0,i.useCallback)(e=>{var l,a,t;let i=(0,k.Ze)(e.momentGroupId.momentClass,null===(l=e.collectibleScore)||void 0===l?void 0:l.totalScore),s=(0,k.nh)(e.lastTopUpDate),n=(el||e.isRental)&&(null===(a=e.collectibleScore)||void 0===a?void 0:a.totalScore)===0;return e5.has(null===(t=e.momentSourceData)||void 0===t?void 0:t.series)||i&&!!s||n},[el,e5]),[ld,lc,lm,lu,lh,lv]=(0,i.useMemo)(()=>{let e={},l={},a={},t=eO.flatMap(e=>[...K["".concat(e,"_userOwned_locked")]||[]].map((0,k.JA)(e))),i=eO.flatMap(e=>[...K["".concat(e,"_userOwned")]||[]].map((0,k.JA)(e))),s=[];return t.forEach(e=>{(null==eU?void 0:eU(U,e.id))?i.push(e):s.push({...e,isLocked:!0})}),i.sort((e,l)=>{var a,t,i,s;let n=lr(e),o=lr(l);if(n&&!o)return 1;if(!n&&o)return -1;let r=e.isAvailableForSale,d=l.isAvailableForSale;if(r&&!d||!r&&d)return 1;let c=e.momentGroupId.momentClass!==C.$0.FLASH&&(null===(a=e.momentSourceData)||void 0===a?void 0:a.series)==="4",m=e.momentGroupId.momentClass!==C.$0.FLASH&&(null===(t=l.momentSourceData)||void 0===t?void 0:t.series)==="4";if(c&&!m)return -1;if(!c&&m)return 1;let u=(null===(i=e.collectibleScore)||void 0===i?void 0:i.totalScore)||0,h=(null===(s=l.collectibleScore)||void 0===s?void 0:s.totalScore)||0;return u!==h?h-u:e.momentSerialNumber-l.momentSerialNumber}),eD||(i.forEach(t=>{var i;let s=lo(t.momentGroupId);e[s]?((null===(i=O[$.id])||void 0===i?void 0:i.id)===t.id?e[s]={momentId:t.id,count:e[s].count+1}:e[s]={...e[s],count:e[s].count+1},l[s].push(t)):(e[s]={momentId:t.id,count:1},l[s]=[t],a[s]=[])}),s.forEach(t=>{let i=lo(t.momentGroupId);e[i]?(e[i]={...e[i],count:e[i].count+1},a[i].push(t)):(e[i]={momentId:t.id,count:1},l[i]=[],a[i]=[t])}),Object.keys(e).forEach(t=>{e[t].count>1||(delete e[t],delete l[t],delete a[t])}),i=i.filter(l=>{let a=lo(l.momentGroupId);return!e[a]||e[a].momentId===l.id}),s=s.filter(l=>{let a=lo(l.momentGroupId);return!e[a]||e[a].momentId===l.id})),[i.length+s.length,e9(i,"momentGroupId.").sort(li("owned")),e9(s,"momentGroupId.").sort(li("owned")),e,l,a]},[eO,e9,li,K,U,O,$.id,eD,lr]),lp=(0,i.useMemo)(()=>e9(eO.flatMap(e=>[...K["".concat(e,"_PBFC")]||[]].map((0,k.JA)(e)))).sort(li("provided")).map(e=>e),[e9,li,eO,K]);(0,i.useEffect)(()=>{if(!z||!K||!$.id)return;let e=(null==z?void 0:z.mode)===C.hG.PRO?lc:lp,l={challengeId:null==z?void 0:z._id,challengeName:null==z?void 0:z.challengeName,challengeSlug:null==z?void 0:z.slug,status:null==z?void 0:z.status,mode:null==z?void 0:z.mode};e.length?(0,g.L9)("eligible_moments_shown",l):(0,g.L9)("eligible_moments_not_found",l)},[null==$?void 0:$.id]);let[lx,lg,ly,l_]=(0,i.useMemo)(()=>{let e={},l={},a=eO.flatMap(e=>[...K["".concat(e,"_marketplace")]||[],...K["".concat(e,"_fcShop")]||[],...K["".concat(e,"_fcSelect")]||[]].map((0,k.JA)(e)).filter(e=>"SA20"!==e.ipLicensor));
1return eD||(a.forEach(a=>{let{_id:t,listings:i}=a,s=lo(a),n=a.lowestAsk||a.fcSelectLowestPrice;e[s]?(e[s]={...e[s],listings:e[s].listings+i,lowestAsk:e[s].lowestAsk&&n?Math.min(e[s].lowestAsk||1/0,n):e[s].lowestAsk||n,count:e[s].count+1},l[s].push(a)):(e[s]={count:1,groupId:t,listings:i,lowestAsk:n},l[s]=[a])}),Object.keys(e).forEach(a=>{e[a].count>1||(delete e[a],delete l[a])}),a=a.filter(l=>{let a=lo(l);return!e[a]||e[a].groupId===l._id})),[a.length,e9(a).sort(li("market")),e,l]},[e9,li,eO,K,eD]),lj=(0,i.useMemo)(()=>{let e=new Set;return lc.forEach(l=>{var a,t;let i=null===(t=l.momentGroupId)||void 0===t?void 0:null===(a=t.metaData)||void 0===a?void 0:a.playerId;i&&!e0.has(i)&&e.add(i)}),Array.from(e)},[lc,e0]),lf=(0,i.useMemo)(()=>{let e=new Set,l=[],a=new Set([...lc.map(e=>{var l,a;return null===(a=e.momentGroupId)||void 0===a?void 0:null===(l=a.metaData)||void 0===l?void 0:l.playerId})]);return lc.forEach(a=>{var t;let i=a.id||(null==a?void 0:null===(t=a.momentGroupId)||void 0===t?void 0:t._id);i&&!e.has(i)&&(e.add(i),l.push(a))}),lm.forEach(a=>{var t;let i=a.id||(null==a?void 0:null===(t=a.momentGroupId)||void 0===t?void 0:t._id);i&&!e.has(i)&&(e.add(i),l.push(a))}),lp.forEach(t=>{var i;let s=null===(i=t.metaData)||void 0===i?void 0:i.playerId,n=t._id;!n||e.has(n)||a.has(s)||(e.add(n),l.push(t))}),e6(l).sort(li("hybrid"))},[lp,lc,lm,li]),lN=e=>(null==ev||ev(),sessionStorage.setItem("GAME_TO_MARKETPLACE_URL",eF.asPath),eF.push((0,Z._Oe)(e.metaData.playerId))),lS=e=>(null==ev||ev(),sessionStorage.setItem("GAME_TO_MARKETPLACE_URL",eF.asPath),eF.push((0,Z.NYq)(e._id))),lb=()=>(sessionStorage.setItem("GAME_TO_MARKETPLACE_URL",eF.asPath),sessionStorage.setItem("GAME_TO_MARKETPLACE_CHALLENGE_ID",z._id),sessionStorage.setItem("SCOUT_MATCHDAY_SLOT_CONTEXT",JSON.stringify({structureId:$.id,eligiblePlayerIds:lj})),sessionStorage.setItem("SCOUT_MATCHDAY_INPROGRESS_LINEUP",JSON.stringify(O)),eF.push((0,Z.t77)(e$?(0,P.Wz)({from:"HISTORICAL"}):void 0))),lC=()=>{let e="avgL15"===ed?"avgL5":"avgL15";null==em||em(e),ll(l=>({...l,scout:"avgL15"===e?"L15DESC,playingXI":"L5DESC,playingXI"}))};(0,i.useEffect)(()=>{ej(!1),eR(void 0)},[$]);let lZ=e=>{var l,a,t,i;let{dataset:s}=e.currentTarget;if(!s.filter)return;let[n,o]=s.filter.split("="),r={...e4};s.selected?(r[n]=(null!==(a=r[n])&&void 0!==a?a:[]).filter(e=>e!==o&&(0,I.f)(e)!==o),(null===(l=r[n])||void 0===l?void 0:l.length)||delete r[n]):"free"===n?(Object.keys(r).forEach(e=>{"free"!==e&&delete r[e]}),r.free=[{id:o,name:null!==(t=s.name)&&void 0!==t?t:""}]):(r.free&&delete r.free,["teams","players"].includes(n)?r[n]=[{id:o,name:null!==(i=s.name)&&void 0!==i?i:""}]:r[n]=[o]),e3(r)},lw=()=>{var e,l,a,i;let s=[];return(ez||"OPEN"!==$.type||s.push({id:"BATTER",name:"BAT",type:"playerSkills"},{id:"BOWLER",name:"BOWL",type:"playerSkills"},{id:"ALL-ROUNDER",name:"AR",type:"playerSkills"}),(null===(e=e8.teams)||void 0===e?void 0:e.length)&&s.push(...e8.teams.map(e=>({id:(0,I.f)(e),name:(0,I.P)(e),type:"teams"}))),(null===(l=e8.free)||void 0===l?void 0:l.length)&&s.push(...e8.free.map(e=>({id:(0,I.f)(e),name:(0,I.P)(e),type:"free"}))),(null===(a=e8.momentClass)||void 0===a?void 0:a.length)&&s.push(...e8.momentClass.filter(e=>!eW&&!eg&&!eV&&!ez||"FLASH"!==e).map(e=>({id:(0,I.f)(e),name:f()((0,I.f)(e)),type:"momentClass"}))),(null===(i=e8.editions)||void 0===i?void 0:i.length)&&s.push(...e8.editions.map(e=>({id:(0,I.f)(e),name:(0,I.P)(e),type:"editions"}))),s.length)?(0,t.jsx)("div",{className:"flex align-center gap5",children:s.map(e=>{var l;let a=null===(l=e4[e.type])||void 0===l?void 0:l[0],i=a===e.id||!!a&&(0,I.f)(a)===e.id;return(0,t.jsx)(L.Z,{name:e.name,value:"".concat(e.type,"=").concat(e.id),isSelected:i,onClick:lZ},e.id)})}):null},lM=e=>{let l={};return lt[e].forEach(e=>e&&(l[e.key]=e.title)),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"ph20 pt20",children:(0,t.jsxs)("div",{className:"flex align-center gap15",children:[(0,t.jsx)(E.n0,{classes:{input:ec().search},className:"flex-auto",placeholder:"Search..",onClick:()=>ej(e=>!e)}),!(ez&&eq)&&(0,t.jsx)(v.Z,{text:"Avg. Game Points(".concat("avgL15"===ed?"15":"5","-Match)"),children:(0,t.jsx)("div",{className:(0,s.Z)(ec().box,ec().l15),onClick:lC,children:(0,t.jsx)("div",{className:ec().cta,children:(0,t.jsx)(u.Z,{weight:"heavy",className:"fs14",children:null==ed?void 0:ed.replace("avg","")})})})}),(null==z?void 0:z.inSeasonBoost)&&!e$&&"scout"!==ef&&!!ld&&(0,t.jsx)(v.Z,{text:eT("common:e4-boost-tooltip-superTeam"),children:(0,t.jsx)("div",{className:ec().box,onClick:()=>eB(e=>!e),children:(0,t.jsx)("div",{className:(0,s.Z)(ec().cta,eD&&ec().e4Toggled),children:(0,t.jsx)(u.Z,{weight:"heavy",className:(0,s.Z)("fs14",ec().e4),align:"center",children:"26E"})})})}),(0,t.jsx)(m.Z,{value:le[e],options:Object.keys(l),title:eT("sort-by"),onApply:l=>ll(a=>({...a,[e]:l})),renderOption:e=>(0,t.jsx)(u.Z,{size:"lg",children:l[e]}),rootProps:{onClickCapture:(0,g.GV)("click_sort_button")},buttonComponent:(0,t.jsx)(o.Z,{children:(0,t.jsx)(x.Z,{height:"2.5rem",width:"2.5rem"})})})]})}),(0,t.jsx)("div",{className:"scroll-grid mt20",children:(0,t.jsxs)("div",{className:"flex align-center gap5 ph20",children:[(0,t.jsx)(R.Z,{filters:e8,values:{players:e4.players},setValues:e3}),lw(),(0,t.jsx)("div",{className:"p10"})]})})]})},lI=function(e){var l,a,t,s,n,o,r,d,c;let m=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{metaData:u,momentClass:h}=e.momentGroupId,v=(null===(l=O[$.id])||void 0===l?void 0:l.id)===e.id,p=e2.has(e.id),{playerIds:x,usedPlayerId:g}=(0,k.qm)(u,V),y=(0,k.Ze)(h,null===(a=e.collectibleScore)||void 0===a?void 0:a.totalScore),j=(0,k.nh)(e.lastTopUpDate),N=y&&!!j,S=(null==ex?void 0:ex.length)?null==ex?void 0:ex.map(e=>e.playerIdOut):[],b=x.find(e=>e0.has(e)),C=null==S?void 0:S.includes(u.playerId),Z=e1.has(h)&&h,w=!el&&e5.has(null===(t=e.momentSourceData)||void 0===t?void 0:t.series),M=(el||e.isRental)&&(null===(s=e.collectibleScore)||void 0===s?void 0:s.totalScore)===0,I=lo(e.momentGroupId),P=m?void 0:null===(n=lu[I])||void 0===n?void 0:n.count,E=!v&&!!(b||Z||C||N||w||M||p),L="";L=Z?eT("disabled-class",{class:f()(Z),count:null===(o=e7(Z))||void 0===o?void 0:o.count}):C?eT("disabled-swapped-player"):N?eT("disabled-top-up"):w?eT("disabled-e4",{count:null==z?void 0:z.maxInSeasonBoost}
1):M?eT("disabled-cp0",{type:e.isRental?"Rental":"Flash"}):eT("already-playing");let R=E?()=>eH(L,{variant:"error"}):y&&(null==z?void 0:null===(c=z.statusFlags)||void 0===c?void 0:c.baseCPNotAllowed)?()=>eA(e):e.isAvailableForSale?()=>eZ(e):()=>Y(e);return(0,i.createElement)(A.Z,{...e,key:e.id,className:"mb10",isNets:eW,player:null==V?void 0:V[g],dataL15:null==q?void 0:q[g],disabled:E,selected:p||v,onClick:R,duplicates:P,onShowDuplicates:l=>(eR(e),(0,_.Z)(l)),challengeTeams:eX,fantasyKey:ed,onClickL15:()=>eE({moment:e,onClick:R}),selectedBy:null==eu?void 0:eu[g],liveScore:null==eh?void 0:eh[g],isLegendsLeague:ez,daysRemainingToTopUp:j,challengeModeVariant:null==z?void 0:z.modeVariant,generalChallengeConfig:eJ,inSeasonBoost:null==z?void 0:z.inSeasonBoost,matchStartDate:null==z?void 0:null===(r=z.matchData)||void 0===r?void 0:r.start_date,baseCPNotAllowed:null==z?void 0:null===(d=z.statusFlags)||void 0===d?void 0:d.baseCPNotAllowed,isCoachesPage:eq,inChallengeBoost:eK,isHistorical:e$})},lk=function(e){var l,a;let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{metaData:s}=e.momentGroupId,{usedPlayerId:n}=(0,k.qm)(s,V),o=lo(e.momentGroupId),r=t?void 0:null===(l=lu[o])||void 0===l?void 0:l.count;return(0,i.createElement)(A.Z,{...e,key:e.id,className:"mb10",isNets:eW,isLocked:!0,disabled:!0,player:null==V?void 0:V[n],dataL15:null==q?void 0:q[n],onClick:()=>eM(e),duplicates:r,onShowDuplicates:l=>(eR(e),(0,_.Z)(l)),challengeTeams:eX,fantasyKey:ed,onClickL15:()=>eE({moment:e}),selectedBy:null==eu?void 0:eu[n],liveScore:null==eh?void 0:eh[n],isLegendsLeague:ez,challengeModeVariant:null==z?void 0:z.modeVariant,generalChallengeConfig:eJ,inSeasonBoost:null==z?void 0:z.inSeasonBoost,matchStartDate:null==z?void 0:null===(a=z.matchData)||void 0===a?void 0:a.start_date,isCoachesPage:eq,inChallengeBoost:eK,isHistorical:e$})},lP=function(e){var l,a,i,s,n;let o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{metaData:r,momentClass:d,fcSelectLowestPrice:c}=e,{playerIds:m,usedPlayerId:u}=(0,k.qm)(r,V),h=lo(e),v=o?void 0:null===(l=ly[h])||void 0===l?void 0:l.count,p=(o?void 0:null===(a=ly[h])||void 0===a?void 0:a.listings)||e.listings,x=(o?void 0:null===(i=ly[h])||void 0===i?void 0:i.lowestAsk)||e.lowestAsk||c,g=!!m.find(e=>e0.has(e)),y=eT("already-playing"),j=g?()=>eH(y,{variant:"error"}):d===C.$0.FLASH?!eQ&&eK?()=>Y({momentGroupId:e,isMarket:!0}):()=>lN(e):v?()=>eR({momentGroupId:e}):c?()=>lS(e):()=>eb(e);return(0,t.jsx)(A.Z,{isMarket:!0,className:"mb10",momentGroupId:{...e,listings:p,lowestAsk:x},duplicates:v,onClick:j,onShowDuplicates:l=>(eR({momentGroupId:e}),(0,_.Z)(l)),player:null==V?void 0:V[u],dataL15:null==q?void 0:q[u],disabled:g,challengeTeams:eX,shopPrice:null===(s=K.playerLevelToPriceMap)||void 0===s?void 0:s[r.playerLevel||""],fantasyKey:ed,onClickL15:()=>eE({moment:{momentGroupId:e}}),selectedBy:null==eu?void 0:eu[u],liveScore:null==eh?void 0:eh[u],isLegendsLeague:ez,challengeModeVariant:null==z?void 0:z.modeVariant,generalChallengeConfig:eJ,inSeasonBoost:null==z?void 0:z.inSeasonBoost,matchStartDate:null==z?void 0:null===(n=z.matchData)||void 0===n?void 0:n.start_date,isCoachesPage:eq,inChallengeBoost:eK,isHistorical:e$},e.slug)},lE=()=>eW||eg?null:lc.length||lm.length?(0,t.jsxs)("div",{className:"pb50",children:[lc.map(e=>lI(e)),lm.map(e=>lk(e))]}):(0,t.jsx)("div",{className:"flex align-center justify-center pv20",children:(0,t.jsxs)("div",{className:ec().empty,children:[(0,t.jsx)(h.Z,{className:"mb10",variant:"h2",align:"center",children:eT("empty-eligible")}),(0,t.jsx)(u.Z,{color:"grey",size:"lg",align:"center",children:eK?eT("empty-eligible-text"):eT("empty-eligible-scout-text")})]})}),lL=()=>eW||eg?null:lg.length?(0,t.jsx)("div",{children:lg.map(e=>lP(e))}):(0,t.jsx)("div",{className:"flex align-center justify-center pv20",children:(0,t.jsx)("div",{className:ec().empty,children:(0,t.jsx)(h.Z,{className:"mb10",variant:"h2",align:"center",children:eT("empty-marketplace")})})});function lR(e){return e&&"object"==typeof e&&("id"in e||"momentId"in e)}let lG=()=>(null==lf?void 0:lf.length)?(0,t.jsx)("div",{children:lf.map(e=>lR(e)&&e.isLocked?(0,t.jsx)("div",{children:lk(e)},e.id):lR(e)?(0,t.jsx)("div",{children:lI(e)},e.id):(0,t.jsx)("div",{children:lA(e)},e._id))}):null,lA=e=>{var l,a,i;let{_id:s,metaData:n,momentClass:o,isPBFC:r}=e,d=(null===(l=O[$.id])||void 0===l?void 0:l.momentGroupId._id)===s,c=e2.has(s),{playerIds:m,usedPlayerId:u}=(0,k.qm)(n,V),h=m.find(e=>e0.has(e)),v=e1.has(o)&&o,p=!d&&!!(h||v),x=v?eT("disabled-class",{class:f()(v),count:null===(a=e7(v))||void 0===a?void 0:a.count}):eT("already-playing"),g=p?()=>eH(x,{variant:"error"}):()=>Y({momentGroupId:e,isPBFC:!0});return(0,t.jsx)(A.Z,{isNets:eW||ez,isPBFC:!0,className:"mb10",player:null==V?void 0:V[u],dataL15:null==q?void 0:q[u],disabled:p,selected:c||d,momentGroupId:e,onClick:g,challengeTeams:eX,fantasyKey:ed,onClickL1
15:()=>eE({moment:{momentGroupId:e,isPBFC:r},onClick:g}),selectedBy:null==eu?void 0:eu[u],liveScore:null==eh?void 0:eh[u],challengeModeVariant:null==z?void 0:z.modeVariant,generalChallengeConfig:eJ,inSeasonBoost:null==z?void 0:z.inSeasonBoost,matchStartDate:null==z?void 0:null===(i=z.matchData)||void 0===i?void 0:i.start_date,isCoachesPage:eq,isHistorical:e$},s)},lD=()=>lp.length?(0,t.jsx)("div",{children:lp.map(e=>lA(e))}):null,lB=()=>(null==ee?void 0:ee.length)?(0,t.jsxs)("div",{className:"mt10",children:[ee.map(e=>{var l;let{metaData:a}=e.momentGroupId,{usedPlayerId:t}=(0,k.qm)(a,V);return(0,i.createElement)(A.Z,{...e,isInTeam:!0,isNets:eW,isPBFC:eg,key:e.id,className:"mb10",player:null==V?void 0:V[t],dataL15:null==q?void 0:q[t],challengeTeams:eX,fantasyKey:ed,onClickL15:()=>eE({moment:e}),selectedBy:null==eu?void 0:eu[t],liveScore:null==eh?void 0:eh[t],challengeModeVariant:null==z?void 0:z.modeVariant,generalChallengeConfig:eJ,inSeasonBoost:null==z?void 0:z.inSeasonBoost,matchStartDate:null==z?void 0:null===(l=z.matchData)||void 0===l?void 0:l.start_date,isCoachesPage:eq,isHistorical:e$})}),(0,t.jsx)("hr",{})]}):null,lT=()=>{var e;if(!es)return null;let{momentGroupId:l}=es,{metaData:a}=l,{usedPlayerId:s}=(0,k.qm)(a,V);return(0,t.jsxs)("div",{className:"mt10",children:[(0,i.createElement)(A.Z,{...es,isInTeam:!0,isNets:eW,isPBFC:eg,key:es.id,className:"mb10",player:null==V?void 0:V[s],dataL15:null==q?void 0:q[s],challengeTeams:eX,fantasyKey:ed,onClickL15:()=>eE({moment:es}),selectedBy:null==eu?void 0:eu[s],liveScore:null==eh?void 0:eh[s],challengeModeVariant:null==z?void 0:z.modeVariant,generalChallengeConfig:eJ,inSeasonBoost:null==z?void 0:z.inSeasonBoost,matchStartDate:null==z?void 0:null===(e=z.matchData)||void 0===e?void 0:e.start_date,isCoachesPage:eq,isHistorical:e$}),(0,t.jsx)("hr",{})]})},lF=()=>{let e=eK?["owned","market"]:["owned","scout"];return(0,t.jsx)(d.Z,{children:e.map(e=>(0,t.jsx)(r.Z,{className:"flex1 p15 ws-nowrap",position:"justify",variant:"body",onClick:()=>{eN(e),"scout"===e&&(0,g.L9)("click_lineup_scout",{challengeId:null==z?void 0:z._id,source:"CHALLENGE"})},active:ef===e,children:eT("tab-".concat(e))},e))})},lH=()=>es?(0,t.jsx)(u.Z,{size:"xl",className:"mt10 mb20",weight:"heavy",children:"Select A Player To Swap In"}):(null==ee?void 0:ee.length)?(0,t.jsx)(u.Z,{size:"xl",className:"mt10 mb20",weight:"heavy",children:"Select 1 ".concat($.title)}):lc.length||lm.length?eq?(0,t.jsx)(u.Z,{size:"xl",className:"mt10 mb20",weight:"heavy",children:"Choose A Player In The Coach Slot"}):(0,t.jsx)(u.Z,{size:"xl",className:"mt10 mb20",weight:"heavy",children:"OPEN"===$.type?"Choose A Player In The Open Slot":"Select 1 ".concat($.title)}):void 0,lU=()=>(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:ec().sticky,children:[ei,lM("provided")]}),(0,t.jsxs)("div",{className:"ph20",children:[lB(),lH(),lD()]})]}),lO=()=>{switch(ef){case"owned":return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:ec().sticky,children:[ei,lF(),lM("hybrid")]}),(0,t.jsxs)("div",{className:"ph20",children:[lH(),lG()]})]});case"market":return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:ec().sticky,children:[ei,lF(),lM("market")]}),(0,t.jsx)("div",{className:"ph20",children:lL()})]})}},lz=()=>{var e,l;if(!ld)return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:ec().sticky,children:[ei,lM("scout")]}),(0,t.jsxs)("div",{className:"ph20",children:[lT(),lB(),lE(),(0,t.jsx)(la,{onContinue:lb,playerPercentage:eu,mapL15:q,fantasyKey:ed,setFantasyKey:em,filterValues:e4,allowedPlayingPlayersM
1omentGroupsSlugs:K.allowedPlayingPlayersMomentGroupsSlugs,isHistorical:e$,slotSkillType:"OPEN"!==$.type?$.type:void 0,playerDivisionMap:V,ineligiblePlayerIds:e0,challengeId:null==z?void 0:z._id,source:"CHALLENGE",sortBy:le.scout,competitionId:(null==z?void 0:null===(e=z.matchData)||void 0===e?void 0:e.competition_id)?String(z.matchData.competition_id):void 0,matchId:eY,challenge:z,generalChallengeConfig:eJ})]})]});switch(ef){case"owned":return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:ec().sticky,children:[ei,lF(),lM("owned")]}),(0,t.jsxs)("div",{className:"ph20",children:[lT(),lB(),lH(),lE()]})]});case"scout":return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:ec().sticky,children:[ei,lF(),lM("scout")]}),(0,t.jsxs)("div",{className:"ph20",children:[lT(),lB(),(0,t.jsx)(la,{onContinue:lb,playerPercentage:eu,mapL15:q,fantasyKey:ed,setFantasyKey:em,filterValues:e4,allowedPlayingPlayersMomentGroupsSlugs:K.allowedPlayingPlayersMomentGroupsSlugs,isHistorical:e$,slotSkillType:"OPEN"!==$.type?$.type:void 0,playerDivisionMap:V,ineligiblePlayerIds:e0,challengeId:null==z?void 0:z._id,source:"CHALLENGE",sortBy:le.scout,competitionId:(null==z?void 0:null===(l=z.matchData)||void 0===l?void 0:l.competition_id)?String(z.matchData.competition_id):void 0,matchId:eY,challenge:z,generalChallengeConfig:eJ})]})]})}},lW=()=>{var e,l;if(!(null==eP?void 0:eP.onClick))return null;let{moment:a,onClick:i}=eP,{momentGroupId:s}=a,o=a.id?(null===(e=O[$.id])||void 0===e?void 0:e.id)===a.id:(null===(l=O[$.id])||void 0===l?void 0:l.momentGroupId._id)===s._id;return(0,t.jsx)(n.Z,{fullWidth:!0,onClick:()=>{eE(void 0),i()},children:o?"Remove":"Select"})};return(0,t.jsxs)(w.h,{children:[T?(0,t.jsx)("div",{className:"p20",children:Array(10).fill(0).map((e,l)=>(0,t.jsx)(F,{className:"mb10"},"skeleton".concat(l)))}):ez?"create"===ep?lU():eq?lz():void 0:eW||eg?lU():eK?lO():lz(),(()=>{let e=0,l=[],a=[],i=[];if(null==eL?void 0:eL.id){let t=lo(eL.momentGroupId);lu[t]&&(e=lu[t].count),lh[t]&&(l=lh[t].sort(li("owned"))),lv[t]&&(a=lv[t].sort(li("owned")))}else if(eL){let l=lo(eL.momentGroupId);ly[l]&&(e=ly[l].count),l_[l]&&(i=l_[l].sort(li("market")))}return(0,t.jsxs)(Q.Z,{className:ec().modal,classes:{root:ec().modalRoot,backdrop:ec().backdrop},open:!!eL,onClose:()=>eR(void 0),showHeader:!1,children:[(0,t.jsx)(c.Z,{title:null==eL?void 0:eL.momentGroupId.metaData.primaryPlayerName,subTitle:"".concat(e," Available"),rightComponent:(0,t.jsx)(o.Z,{onClick:()=>eR(void 0),children:(0,t.jsx)(p.Z,{})})}),(null==eL?void 0:eL.id)?(0,t.jsxs)("div",{className:"p20",children:[null==l?void 0:l.sort((0,y.Z)(["collectibleScore.totalScore"],!0)).map(e=>lI(e,!0)),null==a?void 0:a.sort((0,y.Z)(["collectibleScore.totalScore"],!0)).map(e=>lk(e,!0))]}):(0,t.jsx)("div",{className:"p20",children:i.map(e=>lP(e,!0))})]})})(),(0,t.jsx)(Q.Z,{open:e_,showHeader:!1,onClose:()=>ej(!1),className:ec().modal,classes:{header:ec().filterModalHeader,body:ec().searchModalBody,root:ec().modalRoot,backdrop:ec().backdrop},children:(0,t.jsx)("div",{className:"flex-auto flex column p20",children:(0,t.jsx)(E.ZP,{className:"flex-auto flex",placeholder:"Search..",types:["players"],options:e8,values:e4,onChange:e=>{e3(e),ej(!1)},classes:{input:ec().searchInput,root:"flex column",dropdown:ec().searchDropdown},displayOptions:!0,rightComponent:(0,t.jsx)(n.Z,{className:"p15 ml15",variant:"text",children:(0,t.jsx)(u.Z,{size:"xl",color:"primary",onClick:()=>ej(!1),children:eT("button-cancel")})})})})}),(()=>{let e="";if(eP){let{metaData:l}=eP.moment.momentGroupId;e=(0,k.qm)(l,V).usedPlayerId}return(0,t.jsx)(H.Z,{open:!!eP,challenge:z,onClose:()=>eE(void 0),moment:null==eP?void 0:eP.moment,player:null==V?void 0:V[e],dataL15:null==q?void 0:q[e],fantasyKey:ed,setFantasyKey:em,selectedBy:null==eu?void 0:eu[e],actions:lW(),generalChallengeConfig:eJ,isHistorical:e$})})(),(0,t.jsx)(er.Z,{moment:eC,open:!!eC,onClose:()=>eZ(void 0),onUnlist:J}),(0,t.jsx)(en,{moment:ew,open:!!ew,onClose:()=>eM(void 0)}),(0,t.jsx)(eo.Z,{groupId:null==eS?void 0:eS._id,open:!!eS,onClose:()=>eb(void 0),moment:eS,flashReverseScoring:z.flashReverseScoring,isSuggestions:!0,onBeforeRedirect:ev,isLegendsLeague:ez,baseCPNotAllowed:null==z?void 0:null===(B=z.statusFlags)||void 0===B?void 0:B.baseCPNotAllowed}),(0,t.jsx)(ea,{open:!!eG,onClose:()=>eA(void 0),moment:eG}),(0,t.jsx)(G.Z,{playerId:eI,openState:!!eI,setOpenState:()=>ek(void 0)})]})}},65221:function(e,l,a){"use strict";a.d(l,{Z:function(){return X}});var t=a(74817),i=a(72801),s=a(39766),n=a(33143),o=a(19502),r=a(49370),d=a(4443),c=a(45387),m=a(21774),u=a(33199),h=a(5023),v=a(35798),p=a(41701),x=a(37538),g=a(23849),y=a.n(g),_=a(50748),j=a.n(_),f=a(67833),N=a(37518),S=a.n(N),b=a(71248),C=a(96184),Z=a(67045),w=a(93870),M=a(17169),I=a(79030),k=a(38912),P=a(17491),E=a(67018),L=a(51450),R=a(9675),G=a(64005),A=a(5384),D=a(4321),B=a(89953),T=a(44284),F=a(65405),H=a(31590),U=a(46667),O=a(26914),z=a(1989),W=a.n(z),K=a(11216),V=a(5543),q=a(38082),$=a.n(q),X=e=>{let{slug:l,open:a,onClose:g,hideDetailsSlugs:_}=e,[N,z]=(0,b.useState)("stats"),[q,X]=(0,b.useState)(!1),Q=(0,b.useRef)(null),Y=(0,b.useRef)(null),J=(0,h.Z)({max:"sm"}),{t:ee}=(0,f.Z)("moments"),{moment:el}=(0,w.lA)(l,void 0,a),{data:ea,isLoading:et}=(0,M.Mt)(void 0,null==el?void 0:el._id),ei=(0,H.q)(el?{...el,makeoffersData:ea,offersDataLoading:et}:void 0),{actions:es}=ei,en=null==el?void 0:el.metaData,{player:eo}=(0,I.gA)(null==en?void 0:en.playerId,null==el?void 0:el.type),{data:er}=(0,w.kX)(null==en?void 0:en.playerId),{stats:ed}=(0,w.kN)(l),ec=(0,w.Of)(void 0,l),{hasLegendBadge:em,hasLegendBoostBadge:eu,modifiedBadgeList:eh}=(0,E.l)(null==el?void 0:el.badgeList),ev=(0,b.useRef)([]);if((0,b.useEffect)(()=>{var e;if(!J||!a||!el)return;let l=null===(e=Q.current)||void 0===e?void 0:e.closest('[data-testid="modal-content"]');if(!l)return;let t=y()(()=>{let e=l.clientHeight,a=l.getBoundingClientRect();for(let t of(X(l.scrollTop>.4*e),ev.current)){let i=l.querySelector("#moment-group-".concat(t));if(!i)continue;let s=i.getBoundingClientRect(),n=s.top-a.top,o=s.bottom-a.top;if(n<=.25*e&&o>.25*e){z(t);break}}},20);return l.addEventListener("scroll",t,{passive:!0}),t(),()=>{l.removeEventListener("scroll",t),t.cancel()}},[J,a,el]),!el)return(0,t.jsxs)(G.Z,{className:$().modal,open:a,onClose:g,fullHeight:J,showHeader:!J,contentStyle:J?void 0:{width:"90%",height:"90%"},children:[J&&(0,t.jsx)(c.Z,{className:(0,i.Z)("mb20",$().mobileHeader),title:"Moment Details",onClick:g}),(0,t.jsx)("div",{className:$().loadingWrap,children:(0,t.jsx)(R.Z,{className:"mt30"})})]});let{badgeList:ep,momentClass:ex,type:eg,ipLicensor:ey,quantity:e_,collectibleScore:ej,fcScore:ef,slug:eN}=el,eS=ex===Z.$0.FLASH,eb=ex===Z.$0.GENESIS,eC=eS?j()(ex):"".concat(j()(ex)," #/").concat(e_),eZ=(0,L.ZP)(el),ew=Array.isArray(_)&&!!eN&&_.includes(eN),eM=(eS?["stats","details"]:["stats","details","sales","supply"]).filter(e=>!("details"===e&&ew)),eI=(eS?["stats","details"]:["stats","supply","details","sales"]).filter(e=>!("details"===e&&ew));ev.current=eI;let ek=e=>{var l,a,t,i;let s=null===(l=Q.current)||void 0===l?void 0:l.closest('[data-testid="modal-content"]'),n=null==s?void 0:s.querySelector("#moment-group-".concat(e));if(!s||!n)return;let o=s.querySelector(".".concat($().mobileHeader)),r=(null!==(t=null==o?void 0:o.getBoundingClientRect().height)&&void 0!==t?t:0)+(null!==(i=null===(a=Y.current)||void 0===a?void 0:a.getBoundingClientRect().height)&&void 0!==i?i:0),d=n.getBoundingClientRect().top-s.getBoundingClientRect().top+s.scrollTop;s.scrollTo({top:d-r-16,behavior:"smooth"})},eP=()=>(0,t.jsx)(d.Z,{showBorder:!0,className:"m0 flex nowrap ws-nowrap justify-start scroll-grid",children:(J?eI:eM).map(e=>(0,t.jsx)(r.Z,{shallow:!0,exact:!0,variant:"body",position:J?"justify":"left",active:N===e,onClick:()=>J?ek(e):z(e),className:(0,i.Z)("p15",J&&"flex1 grid-block"),children:ee("tabs-".concat(e).concat(J?"-mobile":""))},e))}),eE=()=>{var e;return er?(0,t.jsxs)("div",{className:"flex column gap15",children:[!k.gu&&(0,t.jsxs)("div",{className:W().collectiblePoints,children:[(0,t.jsx)(m.Z,{size:"lg",color:"grey5",children:ee("collectible-points")}),(0,t.jsx)(u.Z,{variant:J?"h4":"h2",children:"".concat(null!==(e=null==ej?void 0:ej.totalScore)&&void 0!==e?e:0," PTS")})]}),(0,t.jsx)(O.Z,{dataL15:er})]}):null},eL=()=>ed?(0,t.jsx)("div",{className:(0,i.Z)(W().box,"pv30 ph20"),children:(0,t.jsx)(K.Z,{stats:ed})}):null,eR=()=>eo?(0,t.jsx)(U.Z,{player:eo,momentGroupId:el,isCard:eg===Z.PY.CARD}):null,eG=()=>{var e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(B.Z,{classes:{header:W().tableHeader},...ec,isFlashTrade:eS,isHideSeeMore:!0,isPastSale:!0}),!!(null===(e=ec.data)||void 0===e?void 0:e[0].sales.length)&&(0,t.jsx)("div",{className:"flex flex-center pv10",children:(0,t.jsxs)(S(),{className:W().link,href:(0,P.QRt)(l,Z.il.LATEST_SALES),children:[(0,t.jsx)(m.Z,{color:"primary",size:"lg",children:ee("button-view-sales")}),(0,t.jsx)(p.Z,{height:"2rem",width:"2rem",className:"ml5"})]})})]})},eA=(0,t.jsx)("div",{className:"mb20",children:(0,t.jsxs)(C.X2,{gutterWidth:J?0:40,justify:"between",children:[(0,t.jsx)(C.JX,{xs:12,lg:7,children:(0,t.jsx)(A.Z,{className:"mb30",moment:el})}),(0,t.jsx)(C.JX,{xs:12,lg:5,children:(0,t.jsxs)("div",{className:"flex column gap20",children:[(0,t.jsxs)("div",{className:"flex column gap10",children:[em&&(0,t.jsx)(o.Z,{variant:"rounded"}),(0,t.jsxs)("div",{className:W().titleRow,children:[(0,t.jsx)(u.Z,{variant:"h1",className:"fs32",dangerouslySetInnerHTML:{__html:((null==en?void 0:en.primaryPlayerName)||"").replace(" ","<br>")}}),(0,t.jsxs)("div",{className:"flex align-center gap15",children:[(0,t.jsx)(x.Z,{height:"4rem",width:"4rem"}),!J&&(0,t.jsx)(T.Z,{className:W().watchList,groupId:el._id,eventData:el,iconSize:"2.5rem"})]})]}),(0,t.jsx)(m.Z,{size:"lg",color:"grey",dangerouslySetInnerHTML:{__html:eZ}}),(0,t.jsxs)("div",{className:"flex column align-start gap10",children:[(0,t.jsx)("div",{className:"flex align-center justify-between",children:(0,t.jsxs)("div",{className:"flex wrap align-center gap5",children:[(0,t.jsx)(V.Z,{momentClass:ex,className:W().momentClass}),(0,t.jsx)(m.Z,{size:"lg",children:eC}),!(eb||eS)&&(0,t.jsx)(n.Z,{text:ee("max-supply-info"),size:"2rem"}),ey&&k.iv.includes(ey)&&(0,t.jsxs)("div",{className:W().flashDisabled,children:[(0,t.jsx)(v.Z,{className:W().svg}),(0,t.jsx)(m.Z,{color:"pending",size:J?"sm":"xs",weight:"bold",children:ee("flash-disabled")})]})]})}),(0,t.jsxs)("div",{className:(0,i.Z)("flex align-center",J?"gap5":"gap10"),children:[!!(null==ef?void 0:ef.totalScore)&&(0,t.jsx)("div",{className:W().fcScoreContainer,children:(0,t.jsx)("div",{className:W().fcScore,children:(0,t.jsx)(m.Z,{size:J?"sm":"xs",className:"ws-nowrap",children:"FCS ".concat(ef.totalScore)})})}),eu&&(0,t.jsx)("div",{className:W().legendsBoostBadge,children:(0,t.jsxs)(m.Z,{color:"dark",weight:"medium",size:J?"sm":"xs",className:(0,i.Z)("ws-nowrap",W().legendText),children:[k.ot[ex],"%"]})}),!!(null==ep?void 0:ep.length)&&(0,t.jsx)(D.Z,{variant:"md",badgeList:eh})]})]})]}),(0,t.jsx)(F.Z,{...el,makeoffersData:ea,offersDataLoading:et,hideActions:J,momentGroupActions:J?ei:void 0})]})})]})});return(0,t.jsxs)(G.Z,{className:$().modal,open:a,onClose:g,fullHeight:J,actions:J&&es?(0,t.jsx)("div",{className:$().actionsRow,children:es}):void 0,showHeader:!J,contentStyle:J?void 0:{width:"90%",height:"90%"},children:[J&&(0,t.jsx)(c.Z,{className:(0,i.Z)("mb20",$().mobileHeader),title:null==en?void 0:en.primaryPlayerName,onClick:g,rightComponent:(0,t.jsx)(T.Z,{groupId:el._id,eventData:el,iconSize:"15px"})}),J&&q&&(0,t.jsx)("div",{ref:Y,className:$().stickyTabs,children:eP()}),(0,t.jsx)("div",{ref:Q,children:(0,t.jsxs)(s.W2,{className:$().container,children:[eA,!J&&eP(),(0,t.jsx)("div",{className:W().tabsContainer,children:J?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{id:"moment-group-stats",children:[(0,t.jsx)(u.Z,{variant:"h2",className:"mb20",children:ee("tabs-stats-mobile")}),eE()]}),!eS&&(0,t.jsxs)("div",{id:"moment-group-supply",children:[(0,t.jsx)(u.Z,{variant:"h2",className:"mb20",children:ee("tabs-supply-mobile")}),eL()]}
1),!ew&&(0,t.jsxs)("div",{id:"moment-group-details",children:[(0,t.jsx)(u.Z,{variant:"h2",className:"mb20",children:ee("tabs-details-mobile")}),eR()]}),(0,t.jsxs)("div",{id:"moment-group-sales",children:[(0,t.jsx)(u.Z,{variant:"h2",className:"mb20",children:ee("tabs-sales-mobile")}),eG()]})]}):(()=>{switch(N){case"stats":return eE();case"supply":return eL();case"details":return eR();case"sales":return eG();default:return null}})()})]})})]})}},90170:function(e,l,a){"use strict";var t=a(74817),i=a(72801),s=a(5575),n=a(21774),o=a(5023),r=a(58284),d=a(18688),c=a(67833),m=a(71248),u=a(67045),h=a(54529),v=a(92297),p=a(11469),x=a(7857),g=a.n(x);l.Z=(0,m.memo)(e=>{var l,a;let{player:m,moment:x,variant:y=u.HI.MARKET,scoutState:_,forceMobileLayout:j,isFiltersOpen:f}=e,{t:N}=(0,c.Z)("marketplace-search"),S=(0,o.Z)({max:"sm"}),b=j||S,{upgradeData:C,singlesData:Z,newEdition:w,oldEdition:M,getMomentDisplayData:I,handleMomentIncrement:k,handleMomentDecrement:P}=_,{count:E,price:L,availableCount:R,isIncrementDisabled:G,isDecrementDisabled:A,isUpgradeCountdownActive:D,isSinglesCountdownActive:B}=I(m,x,y),T=null==C?void 0:null===(l=C.instance)||void 0===l?void 0:l.startDateTime,F=null==Z?void 0:null===(a=Z.instance)||void 0===a?void 0:a.startDateTime,H=(0,h.Z)(null!=T?T:void 0),U=(0,h.Z)(null!=F?F:void 0),O=D&&H>0,z=B&&U>0,W=()=>k(m,x,y),K=()=>P(m,x,y),V=e=>(0,t.jsx)(n.Z,{size:"sm",color:"smoke",children:e}),q=e=>(0,t.jsxs)("div",{children:[(0,t.jsx)(n.Z,{size:"sm",color:"smoke",children:"Starts In"}),(0,t.jsx)(p.Z,{size:"sm",countdown:e,separator:"",classes:{root:"flex align-center gap5"}})]}),$=()=>b||f&&!j?(0,t.jsxs)("div",{className:"flex align-center justify-between w-100",children:[(0,t.jsx)(n.Z,{size:"sm",color:"smoke",children:"Price"}),(0,t.jsx)(v.Z,{value:L,size:"md",weight:"heavy",iconSize:"2rem",valueLimit:1e5})]}):(0,t.jsxs)("div",{children:[(0,t.jsx)(n.Z,{size:"sm",color:"smoke",className:"mb5",children:"Price"}),(0,t.jsx)(v.Z,{value:L,size:"lg",weight:"heavy",iconSize:"2.5rem",valueLimit:1e3})]}),X=()=>{if(y===u.HI.UPGRADE){if(!(null==C?void 0:C.instance))return V(N("drop-inactive"));if(O)return q(H);if(0===x[M])return V(N("not-owned"))}else if(y===u.HI.SINGLES&&z)return q(U);return R?$():V(N("no-listings"))},Q=G&&A||O||z,Y=0===E&&!Q,J=()=>(0,t.jsxs)("div",{className:"flex align-center gap10",children:[(0,t.jsx)(s.Z,{className:(0,i.Z)(g().pricePointsBtn,g().webSize,g()[y]),onClick:K,disabled:O||z||A,children:(0,t.jsx)(r.Z,{height:"17.78px",width:"17.78px",className:"shrink0"})}),(0,t.jsx)(n.Z,{size:"lg",weight:"heavy",className:"ws-nowrap",color:Q?"grey5":"light",children:E}),(0,t.jsx)(s.Z,{className:(0,i.Z)(g().pricePointsBtn,g().webSize,Y?g().neutral:g()[y]),onClick:W,disabled:O||z||G,children:(0,t.jsx)(d.Z,{height:"17.78px",width:"17.78px",className:"shrink0"})})]}),ee=b||f&&!j;return(0,t.jsx)("div",{className:(0,i.Z)(g().box,g()[y],g().momentBox,E>0&&g().active),children:ee?(0,t.jsxs)("div",{className:"flex column justify-between h-100 w-100",children:[X(),(0,t.jsx)("div",{className:"flex justify-end w-100",children:J()})]}):(0,t.jsxs)("div",{className:(0,i.Z)("flex flex1 align-center justify-between",j&&"h-100"),children:[(0,t.jsx)("div",{className:"flex column justify-between h-100",children:X()}),J()]})})})},89714:function(e,l,a){"use strict";a.d(l,{Z:function(){return y}});var t=a(74817),i=a(72801),s=a(5575),n=a(21774),o=a(5023),r=a(58284),d=a(18688),c=a(67833),m=a(71248),u=a(67045),h=a(54529),v=a(92297),p=a(11469),x=a(7857),g=a.n(x),y=(0,m.memo)(e=>{var l,a;let{player:m,variant:x=u.HI.MARKET,scoutState:y,forceMobileLayout:_,activeRarity:j,isFiltersOpen:f}=e,{t:N}=(0,c.Z)("marketplace-search"),S=(0,o.Z)({max:"sm"}),{upgradeData:b,singlesData:C,newEdition:Z,oldEdition:w,getPlayerDisplayData:M,handlePlayerIncrement:I,handlePlayerDecrement:k}=y,{count:P,price:E,availableCount:L,isIncrementDisabled:R,isDecrementDisabled:G,isUpgradeCountdownActive:A,isSinglesCountdownActive:D}=M(m,x,j),B=null==b?void 0:null===(l=b.instance)||void 0===l?void 0:l.startDateTime,T=null==C?void 0:null===(a=C.instance)||void 0===a?void 0:a.startDateTime,F=(0,h.Z)(null!=B?B:void 0),H=(0,h.Z)(null!=T?T:void 0),U=A&&F>0,O=D&&H>0,z=R&&G||U||O,W={[u.HI.UPGRADE]:"Upgrade<br/>".concat(w),[u.HI.SINGLES]:"Buy More<br/>".concat(Z),[u.HI.MARKET]:"Buy More<br/>".concat(w)},K=()=>I(m,x,j),V=()=>k(m,x,j),q=()=>(0,t.jsxs)("div",{className:"flex align-center gap10",children:[(0,t.jsx)(s.Z,{className:(0,i.Z)(g().pricePointsBtn,g().webSize,g()[x],!G&&!(U||O)&&g().shadow),onClick:V,disabled:U||O||G,children:(0,t.jsx)(r.Z,{height:"17.78px",width:"17.78px",className:"shrink0"})}),(0,t.jsx)(n.Z,{size:"lg",weight:"heavy",className:"ws-nowrap",color:z?"grey5":"light",children:P}),(0,t.jsx)(s.Z,{className:(0,i.Z)(g().pricePointsBtn,g().webSize,g()[x],!R&&!(U||O)&&g().shadow),onClick:K,disabled:U||O||R,children:(0,t.jsx)(d.Z,{height:"17.78px",width:"17.78px",className:"shrink0"})})]}),$=e=>(0,t.jsx)(n.Z,{size:"sm",color:"smoke",children:e}),X=e=>(0,t.jsxs)("div",{children:[(0,t.jsx)(n.Z,{size:"sm",color:"smoke",className:(0,i.Z)(!S&&"mb5"),children:"Starts In"}),(0,t.jsx)(p.Z,{countdown:e,separator:"",classes:{root:"flex align-center gap5"}})]}),Q=()=>{let e=_||S;return S&&!_||f&&!S?(0,t.jsxs)("div",{className:"flex align-center justify-between w-100",children:[(0,t.jsx)(n.Z,{size:"sm",color:"smoke",children:"Price"}),(0,t.jsx)(v.Z,{value:E,size:"md",weight:"heavy",iconSize:"2rem",valueLimit:1e5})]}):(0,t.jsxs)("div",{children:[(0,t.jsx)(n.Z,{size:"sm",color:"smoke",className:(0,i.Z)(!e&&"mb5"),children:"Price"}),(0,t.jsx)(v.Z,{value:E,size:e?"md":"lg",weight:"heavy",iconSize:e?"2rem":"2.5rem",valueLimit:e?1e5:1e3})]})},Y=()=>{if(x===u.HI.UPGRADE){var e;if(!(null==b?void 0:b.instance))return $(N("drop-inactive"));if(U)return X(F);if(!(j&&(null===(e=m[w])||void 0===e?void 0:e[j])))return $(N("not-owned"))}else if(x===u.HI.SINGLES&&O)return X(H);return L?Q():$(N("no-listings"))},J=S||f&&!_;return(0,t.jsx)("div",{className:(0,i.Z)(g().box,g()[x]),children:J?(0,t.jsxs)("div",{className:"flex column justify-between h-100 w-100",children:[Y(),(0,t.jsx)("div",{className:"flex justify-end w-100",children:q()})]}):(0,t.jsxs)("div",{className:(0,i.Z)(g().desktopContent,_&&"h-100"),children:[(0,t.jsxs)("div",{className:(0,i.Z)("flex column justify-between h-100",_&&"gap5"),children:[_&&(0,t.jsx)(n.Z,{dangerouslySetInnerHTML:{__html:W[x].replace("<br/>"," ").toUpperCase()},color:"smoke",size:"xs",weight:"heavy"}),Y()]}),q()]})})})},64226:function(e,l,a){"use strict";a.d(l,{Z:function(){return w}});var t=a(74817),i=a(72801),s=a(10803),n=a(5575),o=a(22674),r=a(21774),d=a(33199),c=a(5023),m=a(66456),u=a(50748),h=a.n(u),v=a(67833),p=a(35996),x=a(71248),g=a(93870),y=a(56802),_=a(86229),j=a(51450),f=a(64005),N=a(29341),S=a(96392),b=a(5543),C=a(33149),Z=a.n(C),w=e=>{let{moment:l,open:a,onClose:u,onUnlist:C}=e,[w,M]=(0,x.useState)(null),{t:I}=(0,v.Z)("challenges"),k=(0,c.Z)({max:"sm"}),{enqueueSnackbar:P}=(0,p.Ds)(),{handleEmail:E,handleKYC:L}
1=(0,_.Z)(),R=(0,g.es)(),{getStatus:G}=(0,y.Z)(),A=G("MARKETPLACE.LIST_MOMENT"),D=(0,j.ZP)(null==l?void 0:l.momentGroupId),B=async()=>{if(A&&l)try{if(!await (null==R?void 0:R.post({ids:[l.id]})))return;M(N.q.SUCCESS),u()}catch(l){var e,a;412===l.error_code?L({preview:{title:I("kyc:force-kyc-title-".concat((null==l?void 0:null===(e=l.data)||void 0===e?void 0:e.jurisdiction)==="INTERNATIONAL"?"OTH":"IN")),description:I("kyc:force-kyc-desc-".concat((null==l?void 0:null===(a=l.data)||void 0===a?void 0:a.jurisdiction)==="INTERNATIONAL"?"OTH":"IN"))}}):413===l.error_code?L({preview:{title:I("kyc:redo-kyc-title"),description:I("kyc:redo-kyc-desc")}}):414===l.error_code?E():422===l.error_code?P(l.message,{variant:"error"}):(P(I("common:request-error"),{variant:"error"}),M(N.q.FAILURE))}},T=async()=>{C&&await C(),M(null)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(f.Z,{fullWidth:!1,open:!w&&a,onClose:u,className:Z().modal,classes:{body:"p0",backdrop:Z().backdrop},showHeader:!1,children:l&&(0,t.jsxs)("div",{className:Z().root,children:[(0,t.jsxs)("div",{className:"flex align-start",children:[(0,t.jsxs)("div",{className:Z().moment,children:[(0,t.jsx)("div",{className:(0,i.Z)(Z().image,l.momentGroupId.type&&Z()[l.momentGroupId.type]),children:l.momentGroupId.imageUrl?(0,t.jsx)(o.Z,{alt:"Collectible Thumbnail",src:l.momentGroupId.imageUrl.thumbnail_small||l.momentGroupId.imageUrl.thumbnail,fill:!0,objectFit:"contain"}):null}),(0,t.jsxs)("div",{className:Z().rarity,children:[(0,t.jsx)(b.Z,{className:"mr10",height:"2rem",width:"2rem",momentClass:l.momentGroupId.momentClass}),(0,t.jsxs)(r.Z,{size:k?"md":"sm",children:[h()(l.momentGroupId.momentClass)," ",l.momentSerialNumber,"/",l.momentGroupId.quantity]})]}),(0,t.jsx)(d.Z,{variant:"h1",align:"center",children:l.momentGroupId.metaData.primaryPlayerName}),(0,t.jsx)(r.Z,{className:"mt5",color:"grey",align:"center",dangerouslySetInnerHTML:{__html:D}})]}),k&&(0,t.jsx)(n.Z,{variant:"transparent",className:Z().iconButton,onClick:u,children:(0,t.jsx)(m.Z,{})})]}),k&&(0,t.jsx)("div",{className:Z().line}),(0,t.jsxs)("div",{className:Z().body,children:[(0,t.jsxs)(r.Z,{size:"lg",align:"center",className:"mb30",children:[I("remove-marketplace")," ",I("moment-sale-later")]}),(0,t.jsx)(s.Z,{disabled:!A,fullWidth:!0,withLoader:!0,loadingText:"",onClick:B,children:I("button-remove-marketplace")}),(0,t.jsx)(s.Z,{fullWidth:!0,variant:"gray2",onClick:u,className:"mt10",children:I("button-use-another")})]})]})}),(0,t.jsx)(S.Z,{title:(()=>{switch(w){case N.q.SUCCESS:return I("status-success-title");case N.q.FAILURE:return I("status-fail-title");default:return I("status-pending-title")}})(),open:!!w,status:null!=w?w:N.q.SUCCESS,desc:(()=>{let e=(null==l?void 0:l.momentGroupId.type)==="CARD"?"card":"moment";switch(w){case N.q.SUCCESS:return I("status-success-message-".concat(e));case N.q.FAILURE:return I("status-fail-message");default:return I("status-pending-message-".concat(e))}})(),children:(0,t.jsx)(s.Z,{fullWidth:!0,withLoader:!0,className:k?"mt20":"mt5",onClick:T,children:I("button-close")})})]})}},83086:function(e){e.exports={wrapper:"FlashSetCard_wrapper__4eSPc",disabled:"FlashSetCard_disabled__gZey7",onloanBadge:"FlashSetCard_onloanBadge__1jLhr",root:"FlashSetCard_root__9oyqa",selected:"FlashSetCard_selected__JFImn",e4boost:"FlashSetCard_e4boost__8Bq0l",image:"FlashSetCard_image__51OlA",marketImage:"FlashSetCard_marketImage__GvF_4",box:"FlashSetCard_box__hbMtQ",topUpBox:"FlashSetCard_topUpBox__r_8x_",team:"FlashSetCard_team__GzhDi",edition:"FlashSetCard_edition__UUPr9",playing11:"FlashSetCard_playing11__yOWGL",lockIcon:"FlashSetCard_lockIcon___j35O",stats:"FlashSetCard_stats__mWPET",historicalStats:"FlashSetCard_historicalStats__zriE3",jockeyIcon:"FlashSetCard_jockeyIcon__GaqgW",statText:"FlashSetCard_statText__evaCk",graph:"FlashSetCard_graph__4yTFY",bar:"FlashSetCard_bar__RV0K5",duplicates:"FlashSetCard_duplicates__smqFv",background:"FlashSetCard_background__irgIA",border:"FlashSetCard_border__rh0jM",flash:"FlashSetCard_flash__mg_Sw",PRO_CLASSIC:"FlashSetCard_PRO_CLASSIC__mP8DY",PRO_IN_SEASON:"FlashSetCard_PRO_IN_SEASON__o5k1G",PRO_GRAND:"FlashSetCard_PRO_GRAND__HStUe",mv2x:"FlashSetCard_mv2x__cbpts",mv1_75x:"FlashSetCard_mv1_75x__eRs47",mv1_5x:"FlashSetCard_mv1_5x__PLVS7",mv1_25x:"FlashSetCard_mv1_25x__UGIdD",inTeam:"Flas
1hSetCard_inTeam__igJ0u",multiplierInitial:"FlashSetCard_multiplierInitial__Zi_lf",closeButton:"FlashSetCard_closeButton__mXcdd",multiplierDisabled:"FlashSetCard_multiplierDisabled__5S228",legendsBoostBadge:"FlashSetCard_legendsBoostBadge__ocz3B",legendText:"FlashSetCard_legendText__bzZba",pbfcPenaltyPill:"FlashSetCard_pbfcPenaltyPill__ZEBlf",pillContainer:"FlashSetCard_pillContainer__ldws_",text:"FlashSetCard_text__at5ep"}},39774:function(e){e.exports={light:"FlashCountdown_light__F9dLw",grey:"FlashCountdown_grey__dEJMh",grey5:"FlashCountdown_grey5__8u4Iv",smoke:"FlashCountdown_smoke__n_5By",dark:"FlashCountdown_dark__DX5JK",danger:"FlashCountdown_danger__O5iU3",success:"FlashCountdown_success__KkRpg",pending:"FlashCountdown_pending__pOq_V",xs:"FlashCountdown_xs__LLj1_",xxs:"FlashCountdown_xxs__rXpbg",sm:"FlashCountdown_sm__BpIjQ",md:"FlashCountdown_md__7maeQ",lg:"FlashCountdown_lg__ha_Kr",xl:"FlashCountdown_xl__DDQSl"}},98286:function(e){e.exports={root:"FlashHeader_root__5kH9k",pill:"FlashHeader_pill__p3EE_"}},43894:function(e){e.exports={modal:"TopUpCollectibleModal_modal__LGxxA",backdrop:"TopUpCollectibleModal_backdrop__gQ36y",image:"TopUpCollectibleModal_image__g7SEU",topUpTile:"TopUpCollectibleModal_topUpTile__oqf51",topUpPointsBtn:"TopUpCollectibleModal_topUpPointsBtn__62Tnf",topUpPoints:"TopUpCollectibleModal_topUpPoints__OBMpm",pointsCalculation:"TopUpCollectibleModal_pointsCalculation__tsLkQ",closeBtn:"TopUpCollectibleModal_closeBtn__rL_yd"}},30883:function(e){e.exports={main:"FlashSet_main__DX3Q5",root:"FlashSet_root__Mou3B",drawer:"FlashSet_drawer__ytaip",modal:"FlashSet_modal__wJE3E",suggestions:"FlashSet_suggestions__vS9r2",pitchView:"FlashSet_pitchView___R00H",sticky:"FlashSet_sticky__HeL3f",position:"FlashSet_position__FjVZC",selected:"FlashSet_selected__yldlf",image:"FlashSet_image__er7O4",points:"FlashSet_points__h73Eu",upgraded:"FlashSet_upgraded__JAcaL",playing11:"FlashSet_playing11__YJg_v",addUpgradeContainer:"FlashSet_addUpgradeContainer__nAdH6",addUpgrade:"FlashSet_addUpgrade__OxJeI",skipUpgrade:"FlashSet_skipUpgrade__nzNhx",score:"FlashSet_score__TfqIe",multiplier:"FlashSet_multiplier__1oEoy",flash:"FlashSet_flash__iBdWD",PRO_IN_SEASON:"FlashSet_PRO_IN_SEASON__WJpJ5",
1nav:"FlashSet_nav__SV7MG",alertBox:"FlashSet_alertBox__EGhGQ",alertIcon:"FlashSet_alertIcon__HzQ8j",collectiblePoints:"FlashSet_collectiblePoints__tHqVK"}},97217:function(e){e.exports={empty:"FlashSuggestions_empty__Cpgow",modal:"FlashSuggestions_modal__tSfxg",modalRoot:"FlashSuggestions_modalRoot__9ojj6",backdrop:"FlashSuggestions_backdrop__D2JAL",sticky:"FlashSuggestions_sticky__Mjf9O",search:"FlashSuggestions_search__74sdc",searchModalBody:"FlashSuggestions_searchModalBody__6c0lf",searchInput:"FlashSuggestions_searchInput__7vdOl",searchDropdown:"FlashSuggestions_searchDropdown__bIHNZ",filterModalHeader:"FlashSuggestions_filterModalHeader__VVpYU",box:"FlashSuggestions_box__QgZCQ",l15:"FlashSuggestions_l15__AMOAt",cta:"FlashSuggestions_cta__T7e_B",e4Toggled:"FlashSuggestions_e4Toggled__hRHen",e4:"FlashSuggestions_e4__vVVxn"}},36609:function(e){e.exports={modalRoot:"PurchaseCollectibleModal_modalRoot___E25N",contentWrapper:"PurchaseCollectibleModal_contentWrapper__ZGGRr",header:"PurchaseCollectibleModal_header__gpRTg",body:"PurchaseCollectibleModal_body__A4HuP",footer:"PurchaseCollectibleModal_footer__vGzY6",otherPlayers:"PurchaseCollectibleModal_otherPlayers__EuyWI",otherPlayersHeader:"PurchaseCollectibleModal_otherPlayersHeader__BPvqZ",otherPlayersContent:"PurchaseCollectibleModal_otherPlayersContent__0C7Y6",chevron:"PurchaseCollectibleModal_chevron__OjAuM",open:"PurchaseCollectibleModal_open__yswp9",totalsBackground:"PurchaseCollectibleModal_totalsBackground__lk4xx"}},43228:function(e){e.exports={row:"ScoutMatchdayHistoricalPlayerRow_row__tVZEF",imageWrap:"ScoutMatchdayHistoricalPlayerRow_imageWrap__Rog_9",playing11:"ScoutMatchdayHistoricalPlayerRow_playing11__yHCGM",selectedByPill:"ScoutMatchdayHistoricalPlayerRow_selectedByPill__WD7BL",levelBadge:"ScoutMatchdayHistoricalPlayerRow_levelBadge__77RgV",rarityBoxes:"ScoutMatchdayHistoricalPlayerRow_rarityBoxes__G_poQ",divider:"ScoutMatchdayHistoricalPlayerRow_divider__C7U9E",graphWrap:"ScoutMatchdayHistoricalPlayerRow_graphWrap__cXDLg",playerInfo:"ScoutMatchdayHistoricalPlayerRow_playerInfo__4BvHk"}},40778:function(e){e.exports={playing11:"ScoutMatchdayMomentRow_playing11__zoJAv",row:"ScoutMatchdayMomentRow_row__QVBE1",infoWrap:"ScoutMatchdayMomentRow_infoWrap__OByRD",variantBoxes:"ScoutMatchdayMomentRow_variantBoxes__WVlHO",variantBoxWrap:"ScoutMatchdayMomentRow_variantBoxWrap__67SAK"}},2880:function(e){e.exports={momentCardMobile:"ScoutMatchdayMomentRowMobile_momentCardMobile__RW7BJ",momentInfoWrap:"ScoutMatchdayMomentRowMobile_momentInfoWrap__g0wnt",image:"ScoutMatchdayMomentRowMobile_image__ah3ah",playing11:"ScoutMatchdayMomentRowMobile_playing11__uo6s5",details:"ScoutMatchdayMomentRowMobile_details__XL9Ew",viewMoment:"ScoutMatchdayMomentRowMobile_viewMoment__DoVMs",ownedEditionsWrap:"ScoutMatchdayMomentRowMobile_ownedEditionsWrap__LmQbm",editionPillScaled:"ScoutMatchdayMomentRowMobile_editionPillScaled__miBQn",ownedClass:"ScoutMatchdayMomentRowMobile_ownedClass__7eh1b",selectionContainerMobile:"ScoutMatchdayMomentRowMobile_selectionContainerMobile__wS61m",aggregateRow:"ScoutMatchdayMomentRowMobile_aggregateRow__oN3Wh",aggregateBoxWrap:"ScoutMatchdayMomentRowMobile_aggregateBoxWrap__VB4bh"}},25948:function(e){e.exports={row:"ScoutMatchdayPlayerRow_row__wE9LT",disabled:"ScoutMatchdayPlayerRow_disabled__560fY",bottomRow:"ScoutMatchdayPlayerRow_bottomRow__XPZt5",rightColumn:"ScoutMatchdayPlayerRow_rightColumn__Gvpx5",imageWrap:"ScoutMatchdayPlayerRow_imageWrap__30cI4",playing11:"ScoutMatchdayPlayerRow_playing11__3Xd_s",ownedCount:"ScoutMatchdayPlayerRow_ownedCount__qOMfJ",selectedByPill:"ScoutMatchdayPlayerRow_selectedByPill__UmQEi",rarityRow:"ScoutMatchdayPlayerRow_rarityRow__eSvS_",rarityPill:"ScoutMatchdayPlayerRow_rarityPill__z5uTy",selected:"ScoutMatchdayPlayerRow_selected__hiwYN"}},30540:function(e){e.exports={root:"ScoutMatchdayPrimaryPlayer_root__vQNue",imageWrap:"ScoutMatchdayPrimaryPlayer_imageWrap__adzlQ",imageWrapMobile:"ScoutMatchdayPrimaryPlayer_imageWrapMobile__RGw5R",playerInfoText:"ScoutMatchdayPrimaryPlayer_playerInfoText__3ip1K",selectedByPill:"ScoutMatchdayPrimaryPlayer_selectedByPill__0W5L3",ownedCount:"ScoutMatchdayPrimaryPlayer_ownedCount__Yz8OQ",chevron:"ScoutMatchdayPrimaryPlayer_chevron__m6v9A",open:"ScoutMatchdayPrimaryPlayer_open__ldVH7",rarityRow:"ScoutMatchdayPrimaryPlayer_rarityRow__jvxa4",floorPriceText:"ScoutMatchdayPrimaryPlayer_floorPriceText__eFPCH",rarityPill:"ScoutMatchdayPrimaryPlayer_rarityPill__oJYrL",selected:"ScoutMatchdayPrimaryPlayer_selected__pmBFE",editionColumn:"ScoutMatchdayPrimaryPlayer_editionColumn__O3Z_J",selectionContainerMobile:"ScoutMatchdayPrimaryPlayer_selectionContainerMobile__9X5bb",mobileBg:"ScoutMatchdayPrimaryPlayer_mobileBg__GeMqs",aggregateRow:"ScoutMatchdayPrimaryPlayer_aggregateRow__BQFh1",aggregateBoxWrap:"ScoutMatchdayPrimaryPlayer_aggregateBoxWrap__pCTcf",divi
1der:"ScoutMatchdayPrimaryPlayer_divider__ri_H5"}},24199:function(e){e.exports={wrapper:"ScoutMatchdayRarityBox_wrapper__fElys",box:"ScoutMatchdayRarityBox_box__fHaTY",COMMON:"ScoutMatchdayRarityBox_COMMON__WbdPa",RARE:"ScoutMatchdayRarityBox_RARE__hmPnU",EPIC:"ScoutMatchdayRarityBox_EPIC__8xISx",pricePointsBtn:"ScoutMatchdayRarityBox_pricePointsBtn__0vD7M",active:"ScoutMatchdayRarityBox_active__IXrYx"}},29148:function(e){e.exports={totalsDivider:"ScoutTotals_totalsDivider__BXQf1",totalBox:"ScoutTotals_totalBox__XTj9L"}},16457:function(e){e.exports={root:"LockedMomentModal_root__pmky3",modal:"LockedMomentModal_modal__mHVeQ",backdrop:"LockedMomentModal_backdrop__bR_qr",iconButton:"LockedMomentModal_iconButton__DgC6D",moment:"LockedMomentModal_moment__b9iZA",image:"LockedMomentModal_image__rY07o",CARD:"LockedMomentModal_CARD__ZgYpc",body:"LockedMomentModal_body__RenY6",rarity:"LockedMomentModal_rarity__R0DQC",line:"LockedMomentModal_line__GfmcW"}},38082:function(e){e.exports={modal:"MomentGroupDetailModal_modal__cqJxF",loadingWrap:"MomentGroupDetailModal_loadingWrap__eLUhk",container:"MomentGroupDetailModal_container__k2_Ds",mobileHeader:"MomentGroupDetailModal_mobileHeader__LQt2G",stickyTabs:"MomentGroupDetailModal_stickyTabs__q64BU",actionsRow:"MomentGroupDetailModal_actionsRow__3NuUP"}},53930:function(e){e.exports={root:"PlayerMomentAccordion_root__e19Ai",desktopPanel:"PlayerMomentAccordion_desktopPanel__SjEb_",momentRow:"PlayerMomentAccordion_momentRow__Kfrsf",ownedClass:"PlayerMomentAccordion_ownedClass__RnhAw",editionPillScaled:"PlayerMomentAccordion_editionPillScaled__SUsMc",image:"PlayerMomentAccordion_image__4JQKd",details:"PlayerMomentAccordion_details__UP6mV",viewMoment:"PlayerMomentAccordion_viewMoment__kNUWg",momentInfoWrap:"PlayerMomentAccordion_momentInfoWrap__CqTkw",ownedEditionsWrap:"PlayerMomentAccordion_ownedEditionsWrap__jUi5c",momentCardMobile:"PlayerMomentAccordion_momentCardMobile__poSVp",selectionContainerMobile:"PlayerMomentAccordion_selectionContainerMobile__w3ui6"}},7857:function(e){e.exports={box:"PlayerVariantBox_box__H3Ixx",UPGRADE:"PlayerVariantBox_UPGRADE__E13KB",SINGLES:"PlayerVariantBox_SINGLES__ewMBg",MARKET:"PlayerVariantBox_MARKET__srbvE",momentBox:"PlayerVariantBox_momentBox__p0wIF",desktopContent:"PlayerVariantBox_desktopContent__530Fa",pricePointsBtn:"PlayerVariantBox_pricePointsBtn__Rst5F",shadow:"PlayerVariantBox_shadow__Ko77P",neutral:"PlayerVariantBox_neutral__Sh1_P",webSize:"PlayerVariantBox_webSize__PvHLl"}},33149:function(e){e.exports={root:"UnlistMomentModal_root__MtN0y",modal:"UnlistMomentModal_modal__RgJAL",backdrop:"UnlistMomentModal_backdrop__7u8Te",iconButton:"UnlistMomentModal_iconButton__1qlZr",moment:"UnlistMomentModal_moment__mwS4L",image:"UnlistMomentModal_image__kMEnV",CARD:"UnlistMomentModal_CARD__6uoj2",body:"UnlistMomentModal_body__jhfWb",rarity:"UnlistMomentModal_rarity__44pNB",line:"UnlistMomentModal_line__tYe4j"}}}]);

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.