PageSourceSearch

https://sorare.com/assets/layout-ChLq8kLG.js

js sorare.com collected 2026-10-02 02:29:53 UTC 3,675 bytes, 2 lines download raw bytes

1import{aK as C,cY as S,bD as l,z as k,cg as b}from"./vendor-DC5tXEj4.js";import{w2 as T,vf as v,kn as h,sf as _,lQ as w,cK as R,gH as x,oP as I,hf as $,D as M,tB as A,g7 as E,pI as L,wh as U,vI as G,sA as j,rs as B}from"./index-CeJ24_jo.js";import{S as Y}from"./index-BNFGOnVl.js";import{T as O}from"./index-BkUKvrDv.js";import"./index-BXc77FsA.js";import"./index-C8bdiThs.js";import"./index-hJNW5FTa.js";import"./useEmitClickButton-B8KLSQ9v.js";try{(function(){var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8df25f36-efe4-4400-ba91-41b012f49e93",e._sentryDebugIdIdentifier="sentry-dbid-8df25f36-efe4-4400-ba91-41b012f49e93")})()}catch{}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=(function(t){for(var r=1;r<arguments.length;r++){var a=arguments[r];if(a!=null)for(var o in a)a.hasOwnProperty(o)&&(t[o]=a[o])}return t})({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:sorare-vite-application":!0})}catch{}})();const P=b(E.NoPadding)(["background:",";min-height:calc(100vh - var(--parent-stack-height));"],L({gridColor:"var(--c-nd-50)"})),q=b.div(["padding:var(--double-unit);width:100%;@media ","{width:350px;}"],A),D=e=>{const t=C.c(18),{rarity:r,category:a,unclaimedTasksByRarity:o}=e,d=S(),{sport:i,generateSportContextPath:c}=T(),{lifecycle:p,update:y}=v();let s;t[0]!==a||t[1]!==c||t[2]!==p?.missionsRarityFilter||t[3]!==d||t[4]!==i||t[5]!==y?(s=u=>{y($.missionsRarityFilter,{...p?.missionsRarityFilter,[i]:u}),d(c(M,{params:{category:a,rarity:u}}))},t[0]=a,t[1]=c,t[2]=p?.missionsRarityFilter,t[3]=d,t[4]=i,t[5]=y,t[6]=s):s=t[6];let n;t[7]!==r||t[8]!==i||t[9]!==o?(n=[h.common,..._].filter(u=>i===w.BASEBALL?u!==h.common:!0).map(u=>({value:u,label:l.jsx(R,{badgeContent:o?.[u],size:"small",children:l.jsxs(x,{children:[l.jsx(Y,{rarities:[u]}),u===r&&I(u)]})})})),t[7]=r,t[8]=i,t[9]=o,t[10]=n):n=t[10];let m;t[11]!==r||t[12]!==s||t[13]!==n?(m=l.jsx(q,{children:l.jsx(O,{value:r,compact:!0,onChange:s,options:n})}),t[11]=r,t[12]=s,t[13]=n,t[14]=m):m=t[14];let f;t[15]===Symbol.for("react.memo_cache_sentinel")?(f=l.jsx(k,{}),t[15]=f):f=t[15];let g;return t[16]!==m?(g=l.jsxs(P,{children:[m,f]}),t[16]=m,t[17]=g):g=t[17],g},F=B`query MissionsCategoryRarityLayoutQuery($taskGroupSlug:String!$sport:Sport!){currentUser{slug id limitedCount:myUnclaimedTasksCount(sport:$sport group:$taskGroupSlug rarity:limited)rareCount:myUnclaimedTasksCount(sport:$sport group:$taskGroupSlug rarity:rare)superRareCount:myUnclaimedTasksCount(sport:$sport group:$taskGroupSlug rarity:super_rare)uniqueCount:myUnclaimedTasksCount(sport:$sport group:$taskGroupSlug rarity:unique)commonCount:myUnclaimedTasksCount(sport:$sport group:$taskGroupSlug rarity:common)}}`,X=j(F,({category:e,sport:t})=>({taskGroupSlug:e,sport:t})),Z=()=>{const e=C.c(12),{category:t,rarity:r}=U(),{data:a}=G();let o;e[0]!==a.currentUser?(o=a.currentUser||{},e[0]=a.currentUser,e[1]=o):o=e[1];const{limitedCount:d,rareCount:i,superRareCount:c,uniqueCount:p,commonCount:y}=o;let s;e[2]!==y||e[3]!==d||e[4]!==i||e[5]!==c||e[6]!==p?(s={limited:d,rare:i,super_rare:c,unique:p,common:y},e[2]=y,e[3]=d,e[4]=i,e[5]=c,e[6]=p,e[7]=s):s=e[7];let n;return e[8]!==t||e[9]!==r||e[10]!==s?(n=l.jsx(D,{rarity:r,category:t,unclaimedTasksByRarity:s}),e[8]=t,e[9]=r,e[10]=s,e[11]=n):n=e[11],n};export{Z as default,X as loader};
2//# sourceMappingURL=layout-ChLq8kLG.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.