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]=`76fec64f-7ce8-4b2b-bd64-a07d90568596`,e._sentryDebugIdIdentifier=`sentry-dbid-76fec64f-7ce8-4b2b-bd64-a07d90568596`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{ht as t}from"./xds-react-components-lks62tbl.js";import{Ag as n,Fg as r,cr as i,ft as a,or as o}from"./entry.client-dr7r6s9a.js";import{n as s}from"./gamepad-nav-virtual-cvbizm2x.js";var c=e(o(),1),l=r(),u=n(),d=e=>{let t=(0,l.c)(12),n,r,i,a;if(t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({isScrollable:n,scrollOffsets:r,children:a,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a),n){let e;return t[5]!==r||t[6]!==i||t[7]!==a?(e=(0,u.jsx)(s,{scrollOffsets:r,...i,children:a}),t[5]=r,t[6]=i,t[7]=a,t[8]=e):e=t[8],e}else{let e;return t[9]!==i||t[10]!==a?(e=(0,u.jsx)(`div`,{...i,children:a}),t[9]=i,t[10]=a,t[11]=e):e=t[11],e}},f=e=>{let n=(0,l.c)(33),{id:r,header:o,children:s,footer:f,className:p,contentClassName:m,scrollContainerClassName:h,scrollOffsets:g}=e;t(`${r}-outer`),t(r);let _;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(_={default:!0,XS_10:!1,XSL_10:!1},n[0]=_):_=n[0];let{data:v}=i(_),y=`${r}-outer`,b;n[1]===p?b=n[2]:(b=(0,c.default)(`flex flex-col overflow-y-auto sbar`,`[--scrollbar-track-margin-bottom:var(--V19R)]`,`-mt-template-overlays-guide-padding-internal-top`,`pt-template-overlays-guide-padding-internal-top`,`h-[calc(100%_+_var(--V19P))]`,`xs-10:mt-0 xs-10:h-full xs-10:overflow-visible xs-10:pt-0`,`xsl-10:mt-0 xsl-10:h-full xsl-10:overflow-visible xsl-10:pt-0`,`[--scrollbar-track-margin-top:calc(var(--V19R)_+_var(--V19P))]`,p),n[1]=p,n[2]=b);let x;n[3]===o?x=n[4]:(x=o&&(0,u.jsx)(`div`,{className:`px-template-overlays-guide-padding-internal-left-&-right pt-template-overlays-guide-padding-internal-top flex flex-col gap-layout-vertical-related-content-in-a-section-tight`,children:o}),n[3]=o,n[4]=x);let S=!v,C=!o&&`pt-template-overlays-guide-padding-internal-top`,w=o?`[--scrollbar-track-margin-top:0px]`:`[--scrollbar-track-margin-top:var(--V19R)]`,T=f?`[--scrollbar-track-margin-bottom:0px]`:`[--scrollbar-track-margin-bottom:var(--V19R)]`,E;n[5]!==C||n[6]!==w||n[7]!==T||n[8]!==h?(E=(0,c.default)(`relative flex shrink-0 flex-col`,`xs-10:min-h-0 xs-10:flex-1 xs-10:shrink`,`xsl-10:min-h-0 xsl-10:flex-1 xsl-10:shrink`,`px-template-overlays-guide-padding-internal-left-&-right`,`pb-template-overlays-guide-padding-internal-top`,C,`xs-10:pt-template-overlays-guide-padding-internal-top`,`xsl-10:pt-template-overlays-guide-padding-internal-top`,`xs-10:overflow-y-auto xs-10:sbar`,`xsl-10:overflow-y-auto xsl-10:sbar`,w,T,h),n[5]=C,n[6]=w,n[7]=T,n[8]=h,n[9]=E):E=n[9];let D;n[10]===m?D=n[11]:(D=(0,c.default)(`flex flex-col [--scrollbar-track-margin-bottom:0px] [--scrollbar-track-margin-top:0px]`,m),n[10]=m,n[11]=D);let O;n[12]===s?O=n[13]:(O=(0,u.jsx)(a,{children:s}),n[12]=s,n[13]=O);let k;n[14]!==D||n[15]!==O?(k=(0,u.jsx)(`div`,{className:D,children:O}),n[14]=D,n[15]=O,n[16]=k):k=n[16];let A;n[17]!==S||n[18]!==g||n[19]!==r||n[20]!==E||n[21]!==k?(A=(0,u.jsx)(d,{isScrollable:S,scrollOffsets:g,id:r,className:E,children:k}),n[17]=S,n[18]=g,n[19]=r,n[20]=E,n[21]=k,n[22]=A):A=n[22];let j;n[23]===f?j=n[24]:(j=f&&(0,u.jsx)(`div`,{className:`px-template-overlays-guide-padding-internal-left-&-right`,children:f}),n[23]=f,n[24]=j);let M;return n[25]!==v||n[26]!==g||n[27]!==y||n[28]!==b||n[29]!==x||n[30]!==A||n[31]!==j?(M=(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(d,{isScrollable:v,scrollOffsets:g,id:y,className:b,children:[x,A,j]})}),n[25]=v,n[26]=g,n[27]=y,n[28]=b,n[29]=x,n[30]=A,n[31]=j,n[32]=M):M=n[32],M};export{f as t};