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]=`f9a2cc9a-a485-42b9-86a6-d4391a634596`,e._sentryDebugIdIdentifier=`sentry-dbid-f9a2cc9a-a485-42b9-86a6-d4391a634596`)}catch{}import{o as e}from"./rolldown-runtime-nx40z1zs.js";import{Ag as t,Tt as n,_r as r,jg as i,ng as a,pi as o,yt as s}from"./entry.client-mpghtlrl.js";import{b as c}from"./xds-react-components-ihgca01z.js";import{Kt as l}from"./workspace-leaf-files-oergw4h0.js";var u=t(),d=e(o(),1),f=e(i(),1),p=a(),m=()=>{},h=r(e=>{let t=(0,u.c)(53),{disabled:r,value:i,min:a,max:o,containerClassName:l,label:h,hint:g,showHintAsPercentage:_,onInput:v,onChange:y,onPointerDown:b,onPointerUp:x,onLostPointerCapture:S,onTouchEnd:C,step:w}=e,T=i===void 0?0:i,E=a===void 0?0:a,D=o===void 0?1:o,O=y===void 0?m:y,k=w===void 0?1:w,[A,j]=(0,f.useState)(T),M,N;t[0]===T?(M=t[1],N=t[2]):(M=()=>{j(T)},N=[T],t[0]=T,t[1]=M,t[2]=N),(0,f.useEffect)(M,N);let P;t[3]===O?P=t[4]:(P=e=>{j(e),O(e)},t[3]=O,t[4]=P);let F=P,{utils:I}=n(`TouchAdaptationKit`),L;t[5]!==A||t[6]!==I?(L=I.formatNumber(A/100,{style:`percent`,maximumFractionDigits:0}),t[5]=A,t[6]=I,t[7]=L):L=t[7];let R=L,z;t[8]!==_||t[9]!==R||t[10]!==I||t[11]!==A?(z=_?R:I.formatNumber(A),t[8]=_,t[9]=R,t[10]=I,t[11]=A,t[12]=z):z=t[12];let B=z,V;t[13]===l?V=t[14]:(V=s(`flex flex-1 flex-col gap-internal-container-padding-regular`,l),t[13]=l,t[14]=V);let H;t[15]===h?H=t[16]:(H=h!==void 0&&(0,p.jsx)(`div`,{className:(0,d.default)(`text-item-visible-container-default-content-primary-rest type-subtitle2`),children:h}),t[15]=h,t[16]=H);let U;t[17]!==g||t[18]!==_||t[19]!==R||t[20]!==A?(U=g!==void 0&&(0,p.jsx)(`div`,{className:(0,d.default)(`text-item-visible-container-default-content-secondary-rest type-subtitle2`),children:_?R:A}),t[17]=g,t[18]=_,t[19]=R,t[20]=A,t[21]=U):U=t[21];let W;t[22]!==H||t[23]!==U?(W=(0,p.jsxs)(`div`,{className:`flex items-center justify-between`,children:[H,U]}),t[22]=H,t[23]=U,t[24]=W):W=t[24];let G;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,d.default)(`text-item-visible-container-default-content-secondary-rest type-caption`),t[25]=G):G=t[25];let K;t[26]===E?K=t[27]:(K=(0,p.jsx)(`div`,{className:G,children:E}),t[26]=E,t[27]=K);let q=e[`aria-label`]||`${h}`,J;t[28]!==r||t[29]!==E||t[30]!==D||t[31]!==q||t[32]!==B||t[33]!==A||t[34]!==v||t[35]!==F||t[36]!==k||t[37]!==b||t[38]!==x||t[39]!==S||t[40]!==C?(J=(0,p.jsx)(`div`,{className:`flex flex-1`,children:(0,p.jsx)(c,{disabled:r,minValue:E,maxValue:D,"aria-label":q,"aria-valuetext":B,value:A,onInput:v,onChange:F,step:k,onPointerDown:b,onPointerUp:x,onLostPointerCapture:S,onTouchEnd:C,showValueIndicator:!1})}),t[28]=r,t[29]=E,t[30]=D,t[31]=q,t[32]=B,t[33]=A,t[34]=v,t[35]=F,t[36]=k,t[37]=b,t[38]=x,t[39]=S,t[40]=C,t[41]=J):J=t[41];let Y;t[42]===Symbol.for(`react.memo_cache_sentinel`)?(Y=(0,d.default)(`text-item-visible-container-default-content-secondary-rest type-caption`),t[42]=Y):Y=t[42];let X;t[43]===D?X=t[44]:(X=(0,p.jsx)(`div`,{className:Y,children:D}),t[43]=D,t[44]=X);let Z;t[45]!==K||t[46]!==J||t[47]!==X?(Z=(0,p.jsxs)(`div`,{className:`flex items-center gap-internal-container-padding-regular`,children:[K,J,X]}),t[45]=K,t[46]=J,t[47]=X,t[48]=Z):Z=t[48];let Q;return t[49]!==V||t[50]!==W||t[51]!==Z?(Q=(0,p.jsxs)(`div`,{className:V,children:[W,Z]}),t[49]=V,t[50]=W,t[51]=Z,t[52]=Q):Q=t[52],Q},e=>e),g=r(e=>{let t=(0,u.c)(6),n=h.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,p.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 c=l.converters.internalToDisplayed(n),u=(0,f.useCallback)(n=>{t(l.converters.displayedToInternal(n),e)},[e,t]),d=o??`${c}%`;return{...s,value:c,hint:d,min:r,max:i,step:a,onChange:u}});export{h as n,g as t};