"use strict";(self.webpackChunk_stlite_desktop=self.webpackChunk_stlite_desktop||[]).push([[4694],{4694:(t,e,o)=>{o.r(e),o.d(e,{default:()=>c});o(5057);var s=o(69212),n=o(82160),i=o(17966);const r=(0,n.Z)("div",{target:"e18r7x300"})((t=>{let{theme:e}=t;return{paddingBottom:e.spacing.smPx,lineHeight:e.lineHeights.normal,color:(0,i.yq)(e)}}),"");var a=o(9847),g=o(96266);const c=function(t){let{element:e,width:o}=t;return(0,g.jsxs)("div",{className:"stProgress","data-testid":"stProgress",children:[(0,g.jsx)(r,{children:(0,g.jsx)(a.ZP,{source:e.text,allowHTML:!1,isLabel:!0})}),(0,g.jsx)(s.Z,{value:e.value,width:o})]})}},69212:(t,e,o)=>{o.d(e,{$:()=>l,Z:()=>d});var s=o(5057),n=o(47206),i=o(16449),r=o(80099),a=o(17966),g=o(31808),c=o(96266);let l=function(t){return t.EXTRASMALL="xs",t.SMALL="sm",t.MEDIUM="md",t.LARGE="lg",t.EXTRALARGE="xl",t}({});const d=function(t){let{value:e,width:o,size:d=l.SMALL,overrides:p}=t;const u=(0,n.u)(),m={xs:u.spacing.twoXS,sm:u.spacing.sm,md:u.spacing.lg,lg:u.spacing.xl,xl:u.spacing.twoXL},{activeTheme:h}=s.useContext(g.E),R=!(0,a.MJ)(h),w={BarContainer:{style:{marginTop:u.spacing.none,marginBottom:u.spacing.none,marginRight:u.spacing.none,marginLeft:u.spacing.none}},Bar:{style:t=>{let{$theme:e}=t;return{width:o?o.toString():void 0,marginTop:u.spacing.none,marginBottom:u.spacing.none,marginRight:u.spacing.none,marginLeft:u.spacing.none,height:m[d],backgroundColor:e.colors.progressbarTrackFill,borderTopLeftRadius:u.spacing.twoXS,borderTopRightRadius:u.spacing.twoXS,borderBottomLeftRadius:u.spacing.twoXS,borderBottomRightRadius:u.spacing.twoXS}}},BarProgress:{style:()=>({backgroundColor:R?u.colors.primary:u.colors.blue70,borderTopLeftRadius:u.spacing.twoXS,borderTopRightRadius:u.spacing.twoXS,borderBottomLeftRadius:u.spacing.twoXS,borderBottomRightRadius:u.spacing.twoXS})}};return(0,c.jsx)(i.Z,{value:e,overrides:(0,r.aO)(w,p)})}}}]);