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]=`228a3623-bd47-41f0-ab39-c04bd3e52dc4`,e._sentryDebugIdIdentifier=`sentry-dbid-228a3623-bd47-41f0-ab39-c04bd3e52dc4`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{Ag as t,jg as n,ng as r,pi as i}from"./entry.client-mpghtlrl.js";import{F as a,it as o}from"./xds-react-components-ihgca01z.js";import{r as s}from"./SettingsDialog-0l6new0i.js";var c=t(),l=e(i(),1),u=e(n(),1),d=r(),f=e=>{let t=(0,c.c)(20),{title:n,description:r,currentValue:i,selectedId:f,options:p,onOptionSelected:m}=e,h=(0,u.useId)(),g;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,l.default)(`flex flex-col gap-internal-gap-tight`,s),t[0]=g):g=t[0];let _;t[1]!==h||t[2]!==n?(_=(0,d.jsx)(`h3`,{id:h,className:`text-noninteractive-content-primary-content type-label`,children:n}),t[1]=h,t[2]=n,t[3]=_):_=t[3];let v;t[4]===r?v=t[5]:(v=r&&(0,d.jsx)(`div`,{className:`text-noninteractive-content-primary-content type-caption`,children:r}),t[4]=r,t[5]=v);let y;if(t[6]!==m||t[7]!==p){let e;t[9]===m?e=t[10]:(e=e=>(0,d.jsx)(o,{id:e.id,label:e.label,onPress:()=>m(e.id)},e.id),t[9]=m,t[10]=e),y=p.map(e),t[6]=m,t[7]=p,t[8]=y}else y=t[8];let b;t[11]!==i||t[12]!==f||t[13]!==h||t[14]!==y?(b=(0,d.jsx)(a,{placeholder:i,selectedItem:f,"aria-labelledby":h,className:`w-full`,children:y}),t[11]=i,t[12]=f,t[13]=h,t[14]=y,t[15]=b):b=t[15];let x;return t[16]!==_||t[17]!==v||t[18]!==b?(x=(0,d.jsxs)(`div`,{className:g,children:[_,v,b]}),t[16]=_,t[17]=v,t[18]=b,t[19]=x):x=t[19],x};export{f as t};