import e from"@babel/runtime/helpers/defineProperty";import{jsx as r}from"react/jsx-runtime";import{useMemo as t}from"react";import{Step as o}from"./Step/Step.js";import{Size as n}from"./constants.js";import{StepsWrapper as c}from"./StepsWrapper.js";function i(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}var p=function(p){var s=p.steps,a=p.activeStep,f=void 0===a?-1:a,m=p.size,u=void 0===m?n.Medium:m,O=p.className,b=t((function(){return s.map((function(t,n){var c=n+1;return r(o,function(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?i(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):i(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}({size:u,checked:c<f,active:c===f},t),c)}))}),[s,f,u]);return r(c,{className:O,children:b})};p.SIZE=n;var s=p;export{s as Stepper};
//# sourceMappingURL=Stepper.js.map
