"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
function _export(target, all) {
    for(var name in all)Object.defineProperty(target, name, {
        enumerable: true,
        get: Object.getOwnPropertyDescriptor(all, name).get
    });
}
_export(exports, {
    get Bullet () {
        return Bullet;
    },
    get BulletIndicator () {
        return BulletIndicator;
    },
    get BulletIndicatorWrapper () {
        return BulletIndicatorWrapper;
    },
    get SpinnerStyled () {
        return SpinnerStyled;
    },
    get StepItemContent () {
        return StepItemContent;
    },
    get StepItemContentWrapper () {
        return StepItemContentWrapper;
    },
    get StepItemDivider () {
        return StepItemDivider;
    },
    get StepItemStyled () {
        return StepItemStyled;
    },
    get StepItemTitle () {
        return StepItemTitle;
    }
});
const _styled = /*#__PURE__*/ _interop_require_default(require("@emotion/styled"));
const _Stepstokens = require("../../Steps.tokens");
const _engines = require("../../../../engines");
const _Spinner = require("../../../Spinner");
const _mixins = require("../../../../mixins");
function _interop_require_default(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}
const mergedConfig = (0, _engines.mergeConfig)(_Spinner.spinnerConfig);
const Spinner = (0, _engines.component)(mergedConfig);
const SpinnerStyled = /*#__PURE__*/ (0, _styled.default)(Spinner, {
    target: "e1ibwvca0",
    label: "SpinnerStyled"
})(_Spinner.spinnerTokens.size, ":", ({ hasIndicator })=>hasIndicator ? `var(${_Stepstokens.tokens.activeIndicatorSize})` : `var(${_Stepstokens.tokens.activeBulletSize})`, ";", _Spinner.spinnerTokens.color, ":var(", _Stepstokens.tokens.loaderSpinnerColor, ",var(", _Stepstokens.tokens.activeIndicatorColor, "));");
const StepItemTitle = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "e1ibwvca1",
    label: "StepItemTitle"
})("padding-top:var(", _Stepstokens.tokens.titlePaddingTop, ");padding-right:var(", _Stepstokens.tokens.contentSidePadding, ");font-family:var(", _Stepstokens.tokens.titleFontFamily, ");font-size:var(", _Stepstokens.tokens.titleFontSize, ");font-style:var(", _Stepstokens.tokens.titleFontStyle, ");font-weight:var(", _Stepstokens.tokens.titleFontWeight, ");letter-spacing:var(", _Stepstokens.tokens.titleLetterSpacing, ");line-height:var(", _Stepstokens.tokens.titleLineHeight, ");word-break:break-word;");
const StepItemContent = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "e1ibwvca2",
    label: "StepItemContent"
})("padding-top:var(", _Stepstokens.tokens.contentPaddingTop, ");padding-right:var(", _Stepstokens.tokens.contentSidePadding, ");font-family:var(", _Stepstokens.tokens.contentFontFamily, ");font-size:var(", _Stepstokens.tokens.contentFontSize, ");font-style:var(", _Stepstokens.tokens.contentFontStyle, ");font-weight:var(", _Stepstokens.tokens.contentFontWeight, ");letter-spacing:var(", _Stepstokens.tokens.contentLetterSpacing, ");line-height:var(", _Stepstokens.tokens.contentLineHeight, ");word-break:break-word;color:var(", _Stepstokens.tokens.contentColor, ");");
const BulletIndicatorWrapper = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "e1ibwvca3",
    label: "BulletIndicatorWrapper"
})("display:flex;align-items:center;box-sizing:content-box;&:not(.", _Stepstokens.classes.simple, "){flex:0;&.", _Stepstokens.classes.hasIndicator, "{width:100%;min-height:var(", _Stepstokens.tokens.activeIndicatorSize, ");}&:not(.", _Stepstokens.classes.hasIndicator, "){width:100%;min-height:var(", _Stepstokens.tokens.activeBulletSize, ");}&.", _Stepstokens.classes.verticalOrientation, "{padding-right:var(", _Stepstokens.tokens.verticalContentPaddingLeft, ");}}&.", _Stepstokens.classes.simple, "{flex:0;justify-content:center;&.", _Stepstokens.classes.hasIndicator, "{width:var(", _Stepstokens.tokens.activeIndicatorSize, ");}&:not(.", _Stepstokens.classes.hasIndicator, "){width:var(", _Stepstokens.tokens.activeBulletSize, ");}}&.", _Stepstokens.classes.verticalOrientation, "{flex-direction:column;align-items:center;justify-content:center;&.", _Stepstokens.classes.hasIndicator, "{min-width:var(", _Stepstokens.tokens.activeIndicatorSize, ");}&:not(.", _Stepstokens.classes.hasIndicator, "){min-width:var(", _Stepstokens.tokens.activeBulletSize, ");}}&.", _Stepstokens.classes.centered, "{justify-content:center;}");
const BulletIndicator = (0, /*#__PURE__*/ _styled.default)("button", {
    target: "e1ibwvca4",
    label: "BulletIndicator"
})("display:flex;align-items:center;justify-content:center;width:var(", _Stepstokens.tokens.indicatorSize, ");height:var(", _Stepstokens.tokens.indicatorSize, ");border-radius:50%;box-sizing:border-box;position:relative;outline:none;padding:0;margin:0;border:var(", _Stepstokens.tokens.dividerThickness, ") solid var(", _Stepstokens.tokens.completedIndicatorBorder, ",transparent);cursor:pointer;color:var(", _Stepstokens.tokens.completedIndicatorColor, ");background:var(", _Stepstokens.tokens.completedIndicatorBackground, ");font-family:var(", _Stepstokens.tokens.indicatorFontFamily, ");font-size:var(", _Stepstokens.tokens.indicatorFontSize, ");font-style:var(", _Stepstokens.tokens.indicatorFontStyle, ");font-weight:var(", _Stepstokens.tokens.indicatorFontWeight, ");letter-spacing:var(", _Stepstokens.tokens.indicatorLetterSpacing, ");line-height:var(", _Stepstokens.tokens.indicatorLineHeight, ");", (0, _mixins.addFocus)({
    outlineOffset: '-0.0625rem',
    outlineSize: '0.0625rem',
    outlineRadius: '50%',
    outlineColor: `var(${_Stepstokens.tokens.focusColor})`
}), "    &.", _Stepstokens.classes.active, "{width:var(", _Stepstokens.tokens.activeIndicatorSize, ");height:var(", _Stepstokens.tokens.activeIndicatorSize, ");border:var(", _Stepstokens.tokens.dividerThickness, ") var(", _Stepstokens.tokens.activeIndicatorBorder, ");font-family:var(", _Stepstokens.tokens.activeIndicatorFontFamily, ");font-size:var(", _Stepstokens.tokens.activeIndicatorFontSize, ");font-style:var(", _Stepstokens.tokens.activeIndicatorFontStyle, ");font-weight:var(", _Stepstokens.tokens.activeIndicatorFontWeight, ");letter-spacing:var(", _Stepstokens.tokens.activeIndicatorLetterSpacing, ");line-height:var(", _Stepstokens.tokens.activeIndicatorLineHeight, ");color:var(", _Stepstokens.tokens.activeIndicatorColor, ");background:var(", _Stepstokens.tokens.activeIndicatorBackground, ");", (0, _mixins.addFocus)({
    outlineOffset: '-0.1875rem',
    outlineSize: '0.0625rem',
    outlineRadius: '50%',
    outlineColor: `var(${_Stepstokens.tokens.focusColor})`
}), "}&.", _Stepstokens.classes.inactive, "{color:var(", _Stepstokens.tokens.inactiveIndicatorColor, ");background:var(", _Stepstokens.tokens.inactiveIndicatorBackground, ");border:none;&.", _Stepstokens.classes.simple, "{&:before,&:after{background:var(", _Stepstokens.tokens.dividerColor, ");}}}");
const Bullet = /*#__PURE__*/ (0, _styled.default)(BulletIndicator, {
    target: "e1ibwvca5",
    label: "Bullet"
})("width:var(", _Stepstokens.tokens.bulletSize, ");height:var(", _Stepstokens.tokens.bulletSize, ");border:var(", _Stepstokens.tokens.dividerThickness, ") solid\n        var(", _Stepstokens.tokens.completedBulletBorder, ",var(", _Stepstokens.tokens.completedIndicatorBorder, ",transparent));background:var(", _Stepstokens.tokens.completedBulletBackground, ",var(", _Stepstokens.tokens.completedIndicatorBackground, "));&.", _Stepstokens.classes.active, "{width:var(", _Stepstokens.tokens.activeBulletSize, ");height:var(", _Stepstokens.tokens.activeBulletSize, ");border:var(", _Stepstokens.tokens.dividerThickness, ")\n            var(", _Stepstokens.tokens.bulletActiveIndicatorBorder, ",var(", _Stepstokens.tokens.activeIndicatorBorder, "));background:var(", _Stepstokens.tokens.bulletActiveBackground, ",var(", _Stepstokens.tokens.activeIndicatorBackground, "));}&.", _Stepstokens.classes.inactive, "{color:var(", _Stepstokens.tokens.inactiveIndicatorColor, ");background:var(", _Stepstokens.tokens.inactiveIndicatorBackground, ");border:none;&.", _Stepstokens.classes.simple, "{&:before,&:after{background:var(", _Stepstokens.tokens.dividerColor, ");}}}");
const StepItemDivider = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "e1ibwvca6",
    label: "StepItemDivider"
})("flex:1;width:100%;height:var(", _Stepstokens.tokens.dividerThickness, ");background:var(", _Stepstokens.tokens.dividerColor, ");&.", _Stepstokens.classes.nextActive, "{background:var(", _Stepstokens.tokens.dividerGradientColor, ",var(", _Stepstokens.tokens.dividerColor, "));}&.", _Stepstokens.classes.verticalOrientation, "{width:var(", _Stepstokens.tokens.dividerThickness, ");height:100%;background:var(", _Stepstokens.tokens.dividerColor, ");&.", _Stepstokens.classes.nextActive, "{background:var(", _Stepstokens.tokens.dividerVerticalGradientColor, ",var(", _Stepstokens.tokens.dividerColor, "));}}&.", _Stepstokens.classes.inactive, "{background:var(", _Stepstokens.tokens.inactiveIndicatorBackground, ");}&.", _Stepstokens.classes.disabled, "{opacity:var(", _Stepstokens.tokens.disabledOpacity, ");cursor:not-allowed;}&.", _Stepstokens.classes.transparentDivider, "{background:transparent;}&.", _Stepstokens.classes.indentDivider, "{height:", ({ indentToken })=>indentToken || '', ";min-height:", ({ indentToken })=>indentToken || '', ";max-height:", ({ indentToken })=>indentToken || '', ";&.", _Stepstokens.classes.simple, "{height:auto;max-height:none;}&.", _Stepstokens.classes.verticalOrientation, ".", _Stepstokens.classes.active, "{background:var(", _Stepstokens.tokens.dividerVerticalIndentColor, ",var(", _Stepstokens.tokens.dividerColor, "));}}");
const StepItemContentWrapper = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "e1ibwvca7",
    label: "StepItemContentWrapper"
})("&.", _Stepstokens.classes.verticalOrientation, "{width:100%;", StepItemTitle, "{padding-top:var(", _Stepstokens.tokens.contentVerticalPadding, ");padding-right:0;}", StepItemContent, "{padding-top:var(", _Stepstokens.tokens.contentVerticalPadding, ");padding-bottom:var(", _Stepstokens.tokens.contentVerticalPadding, ");padding-right:0;}}");
const StepItemStyled = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "e1ibwvca8",
    label: "StepItemStyled"
})("position:relative;display:flex;flex-direction:column;align-items:flex-start;flex:1;color:var(", _Stepstokens.tokens.activeIndicatorColor, ");&.", _Stepstokens.classes.verticalOrientation, "{flex-direction:row;align-items:stretch;", StepItemDivider, "{width:var(", _Stepstokens.tokens.dividerThickness, ");height:100%;}}", StepItemTitle, "{color:var(", _Stepstokens.tokens.completedTitleColor, ",", _Stepstokens.tokens.activeTitleColor, ");}&.", _Stepstokens.classes.active, "{", BulletIndicator, "{cursor:default;}", StepItemTitle, "{color:var(", _Stepstokens.tokens.activeTitleColor, ");}}&.", _Stepstokens.classes.inactive, "{color:var(", _Stepstokens.tokens.inactiveIndicatorColor, ");", StepItemTitle, "{color:var(", _Stepstokens.tokens.inactiveTitleColor, ");}}&.", _Stepstokens.classes.simple, "{flex:0;align-items:center;justify-content:center;flex-direction:row;height:100%;&.", _Stepstokens.classes.hasIndicator, "{min-width:var(", _Stepstokens.tokens.activeIndicatorSize, ");min-height:var(", _Stepstokens.tokens.activeIndicatorSize, ");}&:not(.", _Stepstokens.classes.hasIndicator, "){width:var(", _Stepstokens.tokens.activeBulletSize, ");min-height:var(", _Stepstokens.tokens.activeBulletSize, ");}&.", _Stepstokens.classes.inactive, ",&:not(.", _Stepstokens.classes.active, "){&:before,&:after{content:'';display:block;width:calc((var(", _Stepstokens.tokens.activeIndicatorSize, ") - var(", _Stepstokens.tokens.indicatorSize, ")) / 2);height:var(", _Stepstokens.tokens.dividerThickness, ");background:var(", _Stepstokens.tokens.dividerColor, ");}&:not(.", _Stepstokens.classes.hasIndicator, "){&:before,&:after{width:calc((var(", _Stepstokens.tokens.activeBulletSize, ") - var(", _Stepstokens.tokens.bulletSize, ")) / 2);}}&.", _Stepstokens.classes.verticalOrientation, "{flex-direction:column;&:before,&:after{width:var(", _Stepstokens.tokens.dividerThickness, ");height:calc((var(", _Stepstokens.tokens.activeIndicatorSize, ") - var(", _Stepstokens.tokens.indicatorSize, ")) / 2);margin:0 auto;align-self:auto;}&:not(.", _Stepstokens.classes.hasIndicator, "){&:before,&:after{height:calc((var(", _Stepstokens.tokens.activeBulletSize, ") - var(", _Stepstokens.tokens.bulletSize, ")) / 2);}}&:after{margin:0 auto;}}&.isFirst{&:before{background:transparent;}}&.isLast{&:after{background:transparent;}}}&.", _Stepstokens.classes.inactive, "{&:after,&:before{background:var(", _Stepstokens.tokens.inactiveIndicatorBackground, ");}}&.isPrevInactive{&:before{background:var(", _Stepstokens.tokens.inactiveIndicatorBackground, ");}}&.isNextInactive{&:after{background:var(", _Stepstokens.tokens.inactiveIndicatorBackground, ");}}&.", _Stepstokens.classes.disabled, "{&:before,&:after{background:var(", _Stepstokens.tokens.inactiveIndicatorBackground, ");opacity:1;}}&.", _Stepstokens.classes.transparentDivider, "{&:before,&:after{background:transparent;}}}&:not(.", _Stepstokens.classes.simple, "):not(.", _Stepstokens.classes.verticalOrientation, "){&:not(.", _Stepstokens.classes.centered, ").isNextActive{", BulletIndicatorWrapper, "{width:calc(100% - (var(", _Stepstokens.tokens.activeIndicatorSize, ") - var(", _Stepstokens.tokens.indicatorSize, ")) / 2);}}&.", _Stepstokens.classes.active, "{", BulletIndicatorWrapper, "{margin-left:calc((var(", _Stepstokens.tokens.activeIndicatorSize, ") - var(", _Stepstokens.tokens.indicatorSize, ")) / -2);width:calc(100% + (var(", _Stepstokens.tokens.activeIndicatorSize, ") - var(", _Stepstokens.tokens.indicatorSize, ")) / 2);}}}&.", _Stepstokens.classes.hovered, "{&:not(.", _Stepstokens.classes.active, "){", StepItemTitle, "{cursor:pointer;color:var(", _Stepstokens.tokens.completedTitleColorHover, ");}", BulletIndicator, "{color:var(", _Stepstokens.tokens.completedIndicatorColorHover, ");background:var(", _Stepstokens.tokens.completedIndicatorBackgroundHover, ");border:var(", _Stepstokens.tokens.dividerThickness, ") solid var(", _Stepstokens.tokens.completedIndicatorBorderHover, ",transparent);}", Bullet, "{color:var(", _Stepstokens.tokens.completedBulletBackground, ",var(", _Stepstokens.tokens.completedIndicatorColorHover, "));background:var(\n                    ", _Stepstokens.tokens.completedBulletBackgroundHover, ",var(", _Stepstokens.tokens.completedIndicatorBackgroundHover, ")\n                );border:var(", _Stepstokens.tokens.dividerThickness, ") solid var(", _Stepstokens.tokens.completedBulletBorderHover, ",transparent);}}&.", _Stepstokens.classes.inactive, "{", StepItemTitle, "{color:var(", _Stepstokens.tokens.inactiveTitleColorHover, ");}", BulletIndicator, ",", Bullet, "{color:var(", _Stepstokens.tokens.inactiveIndicatorColorHover, ");background:var(", _Stepstokens.tokens.inactiveIndicatorBackgroundHover, ");border:none;}}", BulletIndicatorWrapper, "{cursor:pointer;}}&.", _Stepstokens.classes.centered, "{align-items:center;", StepItemContentWrapper, "{display:flex;flex-direction:column;align-items:center;padding-left:calc(var(", _Stepstokens.tokens.contentSidePadding, ") / 2);padding-right:calc(var(", _Stepstokens.tokens.contentSidePadding, ") / 2);", StepItemTitle, "{width:100%;}", StepItemTitle, ",", StepItemContent, "{padding-right:0;text-align:center;}}}&.", _Stepstokens.classes.disabled, "{cursor:not-allowed;opacity:var(", _Stepstokens.tokens.disabledOpacity, ");", BulletIndicator, ",", Bullet, "{cursor:not-allowed;}}");
