"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("../../_virtual/jsx-runtime.js"),e=require("./styles.js"),x=require("../../utils/index.js");function j({percentage:s,label:i,labelDetails:a,assistiveText:n,color:d="primary",variant:o="default",...t}){if(s<0||s>100)return console.warn("Component with wrong percentage value ",s),null;const u=x.getId(t["data-testid"]),l=x.getId(t["data-testid"]);return r.jsxRuntimeExports.jsxs(e.ProgressBarContainer,{"data-testid":u("progress-bar"),"data-trackid":l("progress-bar"),"aria-label":t["aria-label"],children:[(i||a)&&r.jsxRuntimeExports.jsxs(e.ProgressBarHeader,{children:[r.jsxRuntimeExports.jsx(e.LabelText,{children:i}),r.jsxRuntimeExports.jsx(e.LabelDetailsText,{children:a})]}),r.jsxRuntimeExports.jsx(e.ProgressBarEmpty,{children:o==="default"?r.jsxRuntimeExports.jsx(e.ProgressBarFiller,{color:d,width:s}):r.jsxRuntimeExports.jsx(e.IndeterminateProgressBarFiller,{color:d,width:s})}),n&&r.jsxRuntimeExports.jsx(e.AssistiveText,{children:n})]})}exports.ProgressBar=j;
