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]=`e1fe51ef-e0f7-4e2d-8e0f-8bcd3087f0b5`,e._sentryDebugIdIdentifier=`sentry-dbid-e1fe51ef-e0f7-4e2d-8e0f-8bcd3087f0b5`)}catch{}import{o as e}from"./rolldown-runtime-eb2nym32.js";import{g as t}from"./xds-react-components-lks62tbl.js";import{Ag as n,Fg as r,Ig as i,U as a,dn as o,or as s}from"./entry.client-dr7r6s9a.js";import{Ft as c}from"./workspace-leaf-files-mc5sghv7.js";var l=r(),u=e(s(),1),d=e(i(),1),f=n(),p=()=>{},m=o(e=>{let n=(0,l.c)(43),{disabled:r,value:i,min:o,max:s,containerClassName:c,label:m,hint:h,showHintAsPercentage:g,onInput:_,onChange:v,onPointerDown:y,onPointerUp:b,onLostPointerCapture:x,onTouchEnd:S,step:C}=e,w=i===void 0?0:i,T=o===void 0?0:o,E=s===void 0?1:s,D=v===void 0?p:v,O=C===void 0?1:C,[k,A]=(0,d.useState)(w),j,M;n[0]===w?(j=n[1],M=n[2]):(j=()=>{A(w)},M=[w],n[0]=w,n[1]=j,n[2]=M),(0,d.useEffect)(j,M);let N;n[3]===D?N=n[4]:(N=e=>{A(e),D(e)},n[3]=D,n[4]=N);let P=N,F;n[5]===c?F=n[6]:(F=a(`flex flex-1 flex-col gap-internal-container-padding-regular`,c),n[5]=c,n[6]=F);let I;n[7]===m?I=n[8]:(I=m!==void 0&&(0,f.jsx)(`div`,{className:(0,u.default)(`text-item-visible-container-default-content-primary-rest type-subtitle2`),children:m}),n[7]=m,n[8]=I);let L;n[9]!==h||n[10]!==g||n[11]!==k?(L=h!==void 0&&(0,f.jsx)(`div`,{className:(0,u.default)(`text-item-visible-container-default-content-secondary-rest type-subtitle2`),children:g?`${k}%`:k}),n[9]=h,n[10]=g,n[11]=k,n[12]=L):L=n[12];let R;n[13]!==I||n[14]!==L?(R=(0,f.jsxs)(`div`,{className:`flex items-center justify-between`,children:[I,L]}),n[13]=I,n[14]=L,n[15]=R):R=n[15];let z;n[16]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,u.default)(`text-item-visible-container-default-content-secondary-rest type-caption`),n[16]=z):z=n[16];let B;n[17]===T?B=n[18]:(B=(0,f.jsx)(`div`,{className:z,children:T}),n[17]=T,n[18]=B);let V=e[`aria-label`]||`${m}`,H;n[19]!==r||n[20]!==T||n[21]!==E||n[22]!==V||n[23]!==k||n[24]!==_||n[25]!==P||n[26]!==O||n[27]!==y||n[28]!==b||n[29]!==x||n[30]!==S?(H=(0,f.jsx)(`div`,{className:`flex flex-1`,children:(0,f.jsx)(t,{disabled:r,minValue:T,maxValue:E,"aria-label":V,value:k,onInput:_,onChange:P,step:O,onPointerDown:y,onPointerUp:b,onLostPointerCapture:x,onTouchEnd:S,showValueIndicator:!1})}),n[19]=r,n[20]=T,n[21]=E,n[22]=V,n[23]=k,n[24]=_,n[25]=P,n[26]=O,n[27]=y,n[28]=b,n[29]=x,n[30]=S,n[31]=H):H=n[31];let U;n[32]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,u.default)(`text-item-visible-container-default-content-secondary-rest type-caption`),n[32]=U):U=n[32];let W;n[33]===E?W=n[34]:(W=(0,f.jsx)(`div`,{className:U,children:E}),n[33]=E,n[34]=W);let G;n[35]!==B||n[36]!==H||n[37]!==W?(G=(0,f.jsxs)(`div`,{className:`flex items-center gap-internal-container-padding-regular`,children:[B,H,W]}),n[35]=B,n[36]=H,n[37]=W,n[38]=G):G=n[38];let K;return n[39]!==F||n[40]!==R||n[41]!==G?(K=(0,f.jsxs)(`div`,{className:F,children:[R,G]}),n[39]=F,n[40]=R,n[41]=G,n[42]=K):K=n[42],K},e=>e),h=o(e=>{let t=(0,l.c)(6),n=m.useComponent(),r;t[0]===e.label?r=t[1]:(r=e.label?.toString(),t[0]=e.label,t[1]=r);let i;return t[2]!==n||t[3]!==e||t[4]!==r?(i=(0,f.jsx)(n,{...e,containerClassName:`my-0 w-full`,"aria-label":r}),t[2]=n,t[3]=e,t[4]=r,t[5]=i):i=t[5],i},({anchorFlag:e,onMultiplierChanged:t,value:n,min:r=100,max:i=140,step:a=10,hint:o,...s})=>{let l=c.converters.internalToDisplayed(n),u=(0,d.useCallback)(n=>{t(c.converters.displayedToInternal(n),e)},[e,t]),f=o??`${l}%`;return{...s,value:l,hint:f,min:r,max:i,step:a,onChange:u}});export{m as n,h as t};