import{i as e,t}from"./emotion-styled.browser.esm.Dj5rZcu_.js";import{t as n}from"./ProgressBar.CUqyemk6.js";var r=function(e){return e.EXTRASMALL=`xs`,e.SMALL=`sm`,e}({}),i=t(`div`,{target:`e1ed21rz0`})(({theme:e,$size:t})=>({height:t===r.EXTRASMALL?e.spacing.twoXS:e.spacing.sm,backgroundColor:e.colors.secondaryBg,borderRadius:e.radii.sm,overflow:`hidden`})),a=t(`div`,{target:`e1ed21rz1`})(({theme:e})=>({width:`100%`,height:`100%`,backgroundColor:e.colors.secondary,transition:`transform 0.5s ease`}));function o({value:t,size:o=r.SMALL,squareTopCorners:s=!1,"aria-label":c=`progress`}){let l=Math.min(100,Math.max(0,t));return e(n,{value:l,minValue:0,maxValue:100,"aria-label":c,children:e(i,{$size:o,"data-testid":`stProgressBarTrack`,style:s?{borderTopLeftRadius:`0`,borderTopRightRadius:`0`}:void 0,children:e(a,{style:{transform:`translateX(${l-100}%)`}})})})}export{r as n,o as t};