try{let 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]=`730b9179-a62a-43dd-8428-f0d14305d427`,e._sentryDebugIdIdentifier=`sentry-dbid-730b9179-a62a-43dd-8428-f0d14305d427`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{O as t}from"./xds-react-components-lks62tbl.js";import{Ag as n,Fg as r,or as i}from"./entry.client-dr7r6s9a.js";import{r as a}from"./hooks-e2ql4s1e.js";var o=r(),s=`ThirdPartyProvider`;function c(e,t){return{"grts-catalog-provider":()=>e(`Xbox`,{ns:s,shortKey:`filter_label_xbox`}),steam:()=>e(`Steam`,{ns:s,shortKey:`filter_label_steam`}),EpicGames:()=>e(`Epic Games`,{ns:s,shortKey:`filter_label_epic`}),BattleNet:()=>e(`Battle.net`,{ns:s,shortKey:`filter_label_bnet`}),GOG:()=>e(`GOG`,{ns:s,shortKey:`filter_label_gog`}),ea:()=>e(`EA`,{ns:s,shortKey:`filter_label_ea`}),ubisoft:()=>e(`Ubisoft`,{ns:s,shortKey:`filter_label_ubi`}),riot:()=>e(`Riot Games`,{ns:s,shortKey:`filter_label_riot`})}}var l=()=>a(`ProviderFilterLabels`,c),u=e(i(),1),d=n(),f=e=>{let n=(0,o.c)(15),{availableProviders:r,selectedTags:i,category:a,handleSelectedTagsChange:s}=e,c=l(),f;if(n[0]!==r||n[1]!==c||n[2]!==i||n[3]!==a||n[4]!==s){let e;n[6]===c?e=n[7]:(e=(e,t)=>{if(e===`grts-catalog-provider`||t===`grts-catalog-provider`)return e===`grts-catalog-provider`?-1:1;let n=c[e]?.()??e,r=c[t]?.()??t;return n.localeCompare(r)},n[6]=c,n[7]=e);let o=[...r].sort(e),l;n[8]!==c||n[9]!==i||n[10]!==a||n[11]!==s?(l=e=>(0,d.jsx)(t,{label:c[e]?.()??e,className:(0,u.default)(`block`),isSelected:i[a].includes(e),onChange:t=>{s(a,e,t)},wrap:!0},e),n[8]=c,n[9]=i,n[10]=a,n[11]=s,n[12]=l):l=n[12],f=o.map(l),n[0]=r,n[1]=c,n[2]=i,n[3]=a,n[4]=s,n[5]=f}else f=n[5];let p;return n[13]===f?p=n[14]:(p=(0,d.jsx)(d.Fragment,{children:f}),n[13]=f,n[14]=p),p};export{f as default};