"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 PaginationActions () {
        return PaginationActions;
    },
    get PaginationActionsLeft () {
        return PaginationActionsLeft;
    },
    get PaginationButton () {
        return PaginationButton;
    },
    get PaginationButtonGroup () {
        return PaginationButtonGroup;
    },
    get PaginationHelperText () {
        return PaginationHelperText;
    },
    get PaginationPages () {
        return PaginationPages;
    },
    get PaginationRoot () {
        return PaginationRoot;
    },
    get PaginationSection () {
        return PaginationSection;
    },
    get PaginationShorter () {
        return PaginationShorter;
    }
});
const _styled = /*#__PURE__*/ _interop_require_default(require("@emotion/styled"));
const _engines = require("../../engines");
const _mixins = require("../../mixins");
const _Button = require("../Button");
const _ButtonGroup = require("../ButtonGroup");
const _Paginationtokens = require("./Pagination.tokens");
function _interop_require_default(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}
const mergedButtonConfig = (0, _engines.mergeConfig)(_Button.buttonConfig);
const Button = (0, _engines.component)(mergedButtonConfig);
const mergedButtonGroupConfig = (0, _engines.mergeConfig)(_ButtonGroup.buttonGroupConfig);
const ButtonGroup = (0, _engines.component)(mergedButtonGroupConfig);
const PaginationRoot = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "e1wkjh850",
    label: "PaginationRoot"
})("display:flex;color:var(", _Paginationtokens.tokens.paginationColor, ");&.", _Paginationtokens.classes.compactType, "{flex-direction:column;gap:0.5rem;justify-content:flex-start;}&.", _Paginationtokens.classes.defaultType, "{width:100%;justify-content:space-between;flex:0 0 100%;gap:1rem;flex-wrap:nowrap;}");
const PaginationPages = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "e1wkjh851",
    label: "PaginationPages"
})("display:flex;align-items:center;gap:0.25rem;flex-shrink:0;");
const PaginationActions = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "e1wkjh852",
    label: "PaginationActions"
})("display:flex;justify-content:space-between;flex-grow:1;align-items:center;gap:var(", _Paginationtokens.tokens.paginationHelperTextGap, ");flex-shrink:1;flex-direction:row;&.", _Paginationtokens.classes.compactType, "{width:100%;flex-wrap:wrap;&.", _Paginationtokens.classes.withHasPerPageSelect, "{flex-direction:row-reverse;}&.", _Paginationtokens.classes.withHasQuickJump, "{flex-direction:row;}}");
const PaginationSection = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "e1wkjh853",
    label: "PaginationSection"
})("display:flex;gap:0.125rem;");
const PaginationButtonGroup = /*#__PURE__*/ (0, _styled.default)(ButtonGroup, {
    target: "e1wkjh854",
    label: "PaginationButtonGroup"
})(_ButtonGroup.buttonGroupTokens.buttonColor, ":var(", _Paginationtokens.tokens.buttonColor, ");", _ButtonGroup.buttonGroupTokens.buttonBackgroundColor, ":var(", _Paginationtokens.tokens.buttonBackgroundColor, ");", _ButtonGroup.buttonGroupTokens.buttonColorHover, ":var(", _Paginationtokens.tokens.buttonHoverColor, ");", _ButtonGroup.buttonGroupTokens.buttonBackgroundColorHover, ":var(", _Paginationtokens.tokens.buttonBackgroundColorHover, ");", _ButtonGroup.buttonGroupTokens.buttonColorActive, ":var(", _Paginationtokens.tokens.buttonActiveColor, ");", _ButtonGroup.buttonGroupTokens.buttonBackgroundColorActive, ":var(", _Paginationtokens.tokens.buttonBackgroundColorActive, ");", _ButtonGroup.buttonGroupTokens.buttonFontFamily, ":var(", _Paginationtokens.tokens.paginationFontFamily, ");", _ButtonGroup.buttonGroupTokens.buttonFontSize, ":var(", _Paginationtokens.tokens.paginationFontSize, ");", _ButtonGroup.buttonGroupTokens.buttonFontStyle, ":var(", _Paginationtokens.tokens.paginationFontStyle, ");", _ButtonGroup.buttonGroupTokens.buttonFontWeight, ":var(", _Paginationtokens.tokens.paginationFontWeight, ");", _ButtonGroup.buttonGroupTokens.buttonLetterSpacing, ":var(", _Paginationtokens.tokens.paginationLetterSpacing, ");", _ButtonGroup.buttonGroupTokens.buttonLineHeight, ":var(", _Paginationtokens.tokens.paginationLineHeight, ");", _ButtonGroup.buttonGroupTokens.buttonWidth, ":var(", _Paginationtokens.tokens.buttonWidth, ");", _ButtonGroup.buttonGroupTokens.buttonHeight, ":var(", _Paginationtokens.tokens.buttonHeight, ");", _ButtonGroup.buttonGroupTokens.buttonDefaultRadius, ":var(", _Paginationtokens.tokens.buttonRadius, ");", _ButtonGroup.buttonGroupTokens.buttonSideRadius, ":var(", _Paginationtokens.tokens.buttonRadius, ");", _ButtonGroup.buttonGroupTokens.buttonSegmentedRadius, ":var(", _Paginationtokens.tokens.buttonRadius, ");", _ButtonGroup.buttonGroupTokens.buttonRadiusCircle, ":var(", _Paginationtokens.tokens.buttonRadius, ");", _ButtonGroup.buttonGroupTokens.buttonPadding, ":0;");
const PaginationButton = /*#__PURE__*/ (0, _styled.default)(Button, {
    target: "e1wkjh855",
    label: "PaginationButton"
})(_Button.buttonTokens.buttonColor, ":var(", _Paginationtokens.tokens.buttonColor, ");", _Button.buttonTokens.buttonBackgroundColor, ":var(", _Paginationtokens.tokens.buttonBackgroundColor, ");", _Button.buttonTokens.buttonColorHover, ":var(", _Paginationtokens.tokens.buttonHoverColor, ");", _Button.buttonTokens.buttonBackgroundColorHover, ":var(", _Paginationtokens.tokens.buttonBackgroundColorHover, ");", _Button.buttonTokens.buttonColorActive, ":var(", _Paginationtokens.tokens.buttonActiveColor, ");", _Button.buttonTokens.buttonBackgroundColorActive, ":var(", _Paginationtokens.tokens.buttonBackgroundColorActive, ");", _Button.buttonTokens.buttonFontFamily, ":var(", _Paginationtokens.tokens.paginationFontFamily, ");", _Button.buttonTokens.buttonFontSize, ":var(", _Paginationtokens.tokens.paginationFontSize, ");", _Button.buttonTokens.buttonFontStyle, ":var(", _Paginationtokens.tokens.paginationFontStyle, ");", _Button.buttonTokens.buttonFontWeight, ":var(", _Paginationtokens.tokens.paginationFontWeight, ");", _Button.buttonTokens.buttonLetterSpacing, ":var(", _Paginationtokens.tokens.paginationLetterSpacing, ");", _Button.buttonTokens.buttonLineHeight, ":var(", _Paginationtokens.tokens.paginationLineHeight, ");", _Button.buttonTokens.buttonWidth, ":var(", _Paginationtokens.tokens.buttonWidth, ");", _Button.buttonTokens.buttonHeight, ":var(", _Paginationtokens.tokens.buttonHeight, ");", _Button.buttonTokens.buttonRadius, ":var(", _Paginationtokens.tokens.buttonRadius, ");", _Button.buttonTokens.buttonDisabledOpacity, ":var(", _Paginationtokens.tokens.buttonDisabledOpacity, ");", _Button.buttonTokens.buttonFocusColor, ":var(", _Paginationtokens.tokens.buttonFocusColor, ");&.", _Paginationtokens.classes.paginationPageButtonActive, "{", _Button.buttonTokens.buttonColor, ":var(", _Paginationtokens.tokens.paginationCurrentButtonColor, ");", _Button.buttonTokens.buttonBackgroundColor, ":var(", _Paginationtokens.tokens.paginationCurrentButtonBackgroundColor, ");", _Button.buttonTokens.buttonColorHover, ":var(", _Paginationtokens.tokens.paginationCurrentButtonColor, ");", _Button.buttonTokens.buttonBackgroundColorHover, ":var(", _Paginationtokens.tokens.paginationCurrentButtonBackgroundColor, ");", _Button.buttonTokens.buttonColorActive, ":var(", _Paginationtokens.tokens.paginationCurrentButtonColor, ");", _Button.buttonTokens.buttonBackgroundColorActive, ":var(", _Paginationtokens.tokens.paginationCurrentButtonBackgroundColor, ");cursor:default;}&.", _Paginationtokens.classes.buttonDisabled, "{", _Button.buttonTokens.buttonColor, ":var(", _Paginationtokens.tokens.paginationDisabledButtonColor, ",var(", _Paginationtokens.tokens.buttonColor, "));", _Button.buttonTokens.buttonBackgroundColor, ":var(", _Paginationtokens.tokens.paginationDisabledButtonBackgroundColor, ",var(", _Paginationtokens.tokens.buttonBackgroundColor, "));}", (0, _mixins.addFocus)({
    outlineOffset: 'var(--plasma_private-btn-outline-size)',
    outlineSize: 'var(--plasma_private-btn-outline-size)',
    outlineRadius: 'var(--plasma_private-btn-br)',
    outlineColor: `var(${_Paginationtokens.tokens.buttonFocusColor})`
}));
const PaginationShorter = /*#__PURE__*/ (0, _styled.default)(PaginationButton, {
    target: "e1wkjh856",
    label: "PaginationShorter"
})(_Button.buttonTokens.buttonWidth, ":var(", _Paginationtokens.tokens.buttonWidthShorter, ");", _Button.buttonTokens.buttonPadding, ":0;");
const PaginationActionsLeft = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "e1wkjh857",
    label: "PaginationActionsLeft"
})("display:flex;align-items:center;flex-wrap:wrap;gap:var(", _Paginationtokens.tokens.paginationHelperTextGap, ");.", _Paginationtokens.classes.defaultType, " &{min-width:0;flex-wrap:nowrap;flex-shrink:1;}");
const PaginationHelperText = (0, /*#__PURE__*/ _styled.default)("div", {
    target: "e1wkjh858",
    label: "PaginationHelperText"
})("color:var(", _Paginationtokens.tokens.paginationHelperTextColor, ");&.", _Paginationtokens.classes.defaultType, "{min-width:0;", (0, _mixins.applyEllipsis)(), "        flex-shrink:1;}&.", _Paginationtokens.classes.ellipsisText, "{", (0, _mixins.applyEllipsis)(), "}");
