import{a as e,n as t}from"./chunk-BneVvdWh.js";import{t as n}from"./react-C7IZe2D1.js";import{ht as r,t as i}from"./dist-DtfJeYQK.js";import{t as a}from"./jsx-runtime-C2wGStra.js";import{n as o,t as s}from"./dist-Cc1j9Pjk.js";import{o as c,r as l}from"./lib-8ue2PVWI.js";var u,d,f,p=t((()=>{u=`ProgressSteps__bBjWv`,d=`step__yAm5P`,f={ProgressSteps:u,step:d}})),m,h,g=t((()=>{e(n(),1),p(),i(),s(),l(),m=a(),h=({totalSteps:e,currentStep:t,"aria-label":n,dataset:i})=>{let{formatMessage:a}=c();return(0,m.jsx)(`div`,{...r(i,{preplyDsComponent:o.ProgressSteps}),className:f.ProgressSteps,role:`progressbar`,"aria-label":n,"aria-valuemin":1,"aria-valuemax":e,"aria-valuenow":t,"aria-valuetext":a({id:`preply-ds.steps.progress`,defaultMessage:`Step {currentStep} of {totalSteps}`,description:`The step progress of the current flow, e.g. 'Step 1 of 3'`},{currentStep:t,totalSteps:e}),children:Array.from({length:e}).map((e,n)=>(0,m.jsx)(`div`,{className:f.step,"data-active":n<=t-1,"aria-current":n===t-1?`step`:void 0},n))})};try{h.displayName=`ProgressSteps`,h.__docgenInfo={description:`A component that visually displays progress through a series of discrete steps.

For a continuous progress indicator, use the \`ProgressBar\` component instead.`,displayName:`ProgressSteps`,props:{totalSteps:{defaultValue:null,description:`The total number of step indicators to show in the progress steps.`,name:`totalSteps`,required:!0,type:{name:`number`}},currentStep:{defaultValue:null,description:"The current step in the progress;\nStarts at 1 for the first step, ends at `totalSteps`.",name:`currentStep`,required:!0,type:{name:`number`}},"aria-label":{defaultValue:null,description:`A description of the progress bar for screen readers.
@example 'Onboarding', 'Checkout', 'Survey', etc.`,name:`aria-label`,required:!0,type:{name:`string`}},dataset:{defaultValue:null,description:``,name:`dataset`,required:!1,type:{name:`enum`,value:[{value:`Dataset`}]}}}}}catch{}}));export{g as n,h as t};