1import{aK as H,bD as n,cN as V}from"./vendor-DC5tXEj4.js";import{B as W}from"./index-B0hHn5i6.js";import{ea as Y,vH as Z,lQ as G,w2 as J,v8 as X,rQ as K,ii as tt}from"./index-CeJ24_jo.js";import{u as rt}from"./useTitleAndDescription-CXIGS_Pr.js";import{G as et}from"./index-R2G7Q-ev.js";import{s as ot}from"./index-CwomkNam.js";import{B as it}from"./index-Betwc0lk.js";import{a as st}from"./Provider-DksQDD74.js";import{u as at}from"./index-qhfMa8H6.js";import{u as pt}from"./useBackendMarketCardsSearch-xsa24d28.js";import{b as nt}from"./useMarketCardsSearch-BULcu_fQ.js";import{u as mt}from"./useDefaultFilters-6d4EjHqr.js";import{B as lt}from"./index-rrzZMAeq.js";import{d as ct}from"./cardFilters-BpcXQnkI.js";import{c as dt}from"./cardFilters-ui7q2rm-.js";import{f as ut}from"./cardFilters-CHT3g7bS.js";import{m as ft}from"./searchLayoutMessages-C9UNDonQ.js";import{s as yt}from"./startingPredictionSort-BZryDo-a.js";import{P as ht}from"./index-yLkqfHJQ.js";import"./useConversionCredits-CsorYeuV.js";import"./index-CLIJTqy6.js";import"./index-DTkcG47N.js";import"./index-BpaY3qkI.js";import"./index-CbR-t4H8.js";import"./iconStar-omGTL_L2.js";import"./fragments-BtNshbyA.js";import"./useVirtualToggleManager-PqoUW1zg.js";import"./iconMore-D-7B1cwk.js";import"./index-BlreUJ-L.js";import"./filters-Tz_cwO9j.js";import"./algolia-DVxHG2BM.js";import"./nameWithSlug-BjchBwOi.js";import"./index-B9IosPnB.js";import"./index-DmvTeS70.js";import"./index-2QSABCeO.js";import"./index-gY0EymdF.js";import"./useSearchClient-Cg7pxklr.js";import"./algoliasearch-lite.umd-nqpgrqWf.js";import"./useCryptoAmount-CwaAuXuP.js";import"./index-Bozmj3sQ.js";import"./index-QEaCitl7.js";import"./ui-CiJfXLll.js";import"./index-OHsTizr2.js";import"./birthDate-C8hVtpXf.js";import"./index-B-eZrXk3.js";import"./index-DorhC7im.js";import"./ChevronDownBold-DlLcU8uJ.js";import"./index-BevTdlqn.js";import"./index-_WQZDCoP.js";import"./iconFilter-pqbW_0nc.js";import"./index-BZ7-R654.js";import"./iconExchangeAlt-Bu3-6C4h.js";import"./MarketCredit-B84dHYCY.js";import"./index-BkUKvrDv.js";import"./index-C8bdiThs.js";import"./index-hJNW5FTa.js";import"./useEmitClickButton-B8KLSQ9v.js";import"./index-D49JYsN3.js";import"./Shoe-Dd0Q5YT3.js";import"./index-BqRKiWbt.js";import"./ui-BJpIIer6.js";import"./useIgnoredBids-Ce52ovDu.js";import"./index-C2Rv4t8N.js";import"./auctions-DO-2aUsH.js";import"./index-DqrenHo7.js";import"./ChevronDoubleRightBold-BsPyNRv2.js";import"./ChevronRightBold-NmeHPtf9.js";import"./index-DYY-PwRe.js";import"./index-DNMBZriB.js";import"./positions-CCOkkOc9.js";import"./index-DJi04Izj.js";import"./index-D2oCVBb8.js";import"./index-CR2OScUX.js";import"./index-BU50Mhfi.js";import"./Locker-D8DImRu5.js";import"./index.withFetch-DJ3fplTa.js";import"./index--FeWphAG.js";import"./index-TAFPFlux.js";import"./CollectionArrow-D-6laoct.js";import"./index.withFetch-CFJFZ6wU.js";import"./index-DK5Z2Mro.js";import"./index-CNSM7lF5.js";import"./index-BYdyw2tP.js";import"./index-DkuRdeHR.js";import"./index-C9_1FWrC.js";import"./index-D8bF3urI.js";import"./index-CKz4GbH4.js";import"./iconRotateLeft-Bypo4m4C.js";import"./index-DRce5o64.js";import"./index-DUcC9zgJ.js";import"./index-BuG8YEIU.js";import"./iconBell-4_GRMQR1.js";import"./useCheckForMobilePushNotifications-COT9NYbV.js";import"./Ball-ehBFePoC.js";import"./iconGavel-VUIXOHSB.js";import"./index-B3KjqG1r.js";import"./index-DP9mDcrH.js";import"./useCannotTrade-DeZ28Fu0.js";import"./ui-CCS0P_c8.js";import"./utils-Diz-Otl9.js";import"./useIsBoostAffordable-CZFbiO42.js";import"./index-Bce0iAS7.js";import"./useSendUserEngagementIncrement-GduP6PC4.js";import"./deal-DFN7i4dC.js";import"./index-CfnXMT-h.js";import"./index-BuCi57bA.js";import"./index-Bod-zrl-.js";import"./index-Cr1t1V3z.js";import"./index-DVPeWkRU.js";import"./index-BGyGg2jN.js";import"./index-Df_7aRqg.js";import"./index-Bh9F0RMf.js";import"./index-CvRoahAx.js";import"./index-DYIxKHgi.js";import"./iconLayerGroup-DdNnkyDK.js";import"./index-2gQ8LAsy.js";import"./index-BVYoRvB6.js";import"./index-BaPaENK4.js";import"./index-BEpUjsJL.js";import"./index-wNwQo17h.js";import"./index-tvhMwzaC.js";import"./index-CvJcLent.js";import"./index-CWpO-pCq.js";import"./index-DFtuM626.js";import"./index-Dlbc720R.js";import"./ui-th0sEcpP.js";try{(function(){var r=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new r.Error().stack;t&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[t]="7ee553d0-748f-4c55-91d3-9f2a6f18c513",r._sentryDebugIdIdentifier="sentry-dbid-7ee553d0-748f-4c55-91d3-9f2a6f18c513")})()}catch{}(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};r._sentryModuleMetadata=r._sentryModuleMetadata||{},r._sentryModuleMetadata[new r.Error().stack]=(function(t){for(var e=1;e<arguments.length;e++){var s=arguments[e];if(s!=null)for(var i in s)s.hasOwnProperty(i)&&(t[i]=s[i])}return t})({},r._sentryModuleMetadata[new r.Error().stack],{"_sentryBundlerPluginAppKey:sorare-vite-application":!0})}catch{}})();const bt=r=>
1["Cards On Sale Popular Player","Cards On Sale Highest Price","Cards On Sale Lowest Price","Cards On Sale Highest Average Score",...yt(r)],gt="Cards On Sale Popular Player",St=40,Bt={[G.FOOTBALL]:ct,[G.NBA]:ut,[G.BASEBALL]:dt},kt=r=>{const t=H.c(62),{sport:e,banner:s}=r,{formatMessage:i}=V();let p;t[0]!==e?(p=Bt[e](),t[0]=e,t[1]=p):p=t[1];const o=p;let a;t[2]===Symbol.for("react.memo_cache_sentinel")?(a={primaryOffer:!0,bundled:!1},t[2]=a):a=t[2];const m=mt(a);let P;t[3]!==o||t[4]!==m||t[5]!==e?(P={sport:e,cardFilters:o,defaultFilters:m,defaultSort:gt},t[3]=o,t[4]=m,t[5]=e,t[6]=P):P=t[6];const{query:F,page:T,refinements:E,facets:j,sortInputs:O,advancedFilters:D,filtersLoading:v,mobileAppVariables:L,makeGqlSearchContextValue:C}=pt(P);let f;t[7]!==D||t[8]!==j||t[9]!==L||t[10]!==T||t[11]!==F||t[12]!==E||t[13]!==O?(f={...L,query:F,page:T,pageSize:St,advancedFilters:D,sorts:O,refinements:E,facets:j,onSaleOnly:!0,onlyPrimary:!0},t[7]=D,t[8]=j,t[9]=L,t[10]=T,t[11]=F,t[12]=E,t[13]=O,t[14]=f):f=t[14];let A;t[15]!==v||t[16]!==f?(A={skip:v,variables:f},t[15]=v,t[16]=f,t[17]=A):A=t[17];const{data:$,loading:N,previousData:z}=Z(nt,A),u=($??z)?.searchGroupedCards;let y,h,b,g,l,S,c,B,k,M,d;if(t[18]!==s||t[19]!==o||t[20]!==i||t[21]!==C||t[22]!==u||t[23]!==e){const Q=u?.groups??[],q=Q.flatMap(_t);g=Object.fromEntries(Q.flatMap(xt)),b=et,t[35]!==C||t[36]!==u?(c=C(u),t[35]=C,t[36]=u,t[37]=c):c=t[37],h=it,k=s,M=o,t[38]!==e?(d=bt(e),t[38]=e,t[39]=d):d=t[39],t[40]!==i?(l=i(ft.defaultPlaceholder),t[40]=i,t[41]=l):l=t[41],S=!0,y=lt,B=q.flatMap(Ct),t[18]=s,t[19]=o,t[20]=i,t[21]=C,t[22]=u,t[23]=e,t[24]=y,t[25]=h,t[26]=b,t[27]=g,t[28]=l,t[29]=S,t[30]=c,t[31]=B,t[32]=k,t[33]=M,t[34]=d}else y=t[24],h=t[25],b=t[26],g=t[27],l=t[28],S=t[29],c=t[30],B=t[31],k=t[32],M=t[33],d=t[34];const R=N||v,U=u?.nbHits??0;let I;t[42]===Symbol.for("react.memo_cache_sentinel")?(I={type:"instantBuy",label:""},t[42]=I):I=t[42];let _;t[43]!==y||t[44]!==e||t[45]!==g||t[46]!==R||t[47]!==U||t[48]!==B?(_=n.jsx(y,{cards:B,stacksBySlug:g,searchLoading:R,nbHits:U,sport:e,topic:I,onlyPrimary:!0,hideSorareUser:!0,showDesktopFilter:!0}),t[43]=y,t[44]=e,t[45]=g,t[46]=R,t[47]=U,t[48]=B,t[49]=_):_=t[49];let x;t[50]!==h||t[51]!==l||t[52]!==S||t[53]!==_||t[54]!==k||t[55]!==M||t[56]!==d?(x=n.jsx(h,{banner:k,cardFilters:M,sorts:d,searchBoxPlaceholder:l,showSavedFilters:S,children:_}),t[50]=h,t[51]=l,t[52]=S,t[53]=_,t[54]=k,t[55]=M,t[56]=d,t[57]=x):x=t[57];let w;return t[58]!==b||t[59]!==c||t[60]!==x?(w=n.jsx(b,{value:c,children:x}),t[58]=b,t[59]=c,t[60]=x,t[61]=w):w=t[61],w},Mt=r=>{const t=H.c(9),{sport:e,banner:s}=r,p=!at();let o;t[0]!==e?(o={sport:e},t[0]=e,t[1]=o):o=t[1];let a;t[2]!==s||t[3]!==e?(a=n.jsx(ot,{commonMarket:!1,children:n.jsx(kt,{sport:e,banner:s})}),t[2]=s,t[3]=e,t[4]=a):a=t[4];let m;return t[5]!==p||t[6]!==o||t[7]!==a?(m=n.jsx(Y,{wrap:p,Wrapper:st,props:o,children:a}),t[5]=p,t[6]=o,t[7]=a,t[8]=m):m=t[8],m};function _t(r){return r.hits[0]??[]}function xt(r){const t=r.hits[0];return t?[[t.slug,{count:r.stackSize??1,distinctKey:t.sale?.distinctKey??null}]]:[]}function Ct(r){return r.card?[r.card]:[]}const $e=()=>{const r=H.c(11),{sport:t}=J(),{isIosApp:e,isMarketAuthorizedIosApp:s}=X();rt(K.instantBuy.title,K.instantBuy.description);let i;r[0]!==e||r[1]!==s?(i=!!(!e||s)&&n.jsx(W,{}),r[0]=e,r[1]=s,r[2]=i):i=r[2];let p;r[3]!==t?(p=n.jsx(ht,{showBack:!0,children:n.jsx(Mt,{sport:t})}),r[3]=t,r[4]=p):p=r[4];let o;r[5]!==e?(o=!!e&&n.jsx(tt,{id:"above-bottom-bar-portal"}),r[5]=e,r[6]=o):o=r[6];let a;return r[7]!==i||r[8]!==p||r[9]!==o?(a=n.jsxs(n.Fragment,{children:[i,p,o]}),r[7]=i,r[8]=p,r[9]=o,r[10]=a):a=r[10],a};export{$e as default}; 2//# sourceMappingURL=page-CjY4_lIt.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.