"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 ButtonWrapper () {
        return ButtonWrapper;
    },
    get CloseIconWrapper () {
        return CloseIconWrapper;
    },
    get StyledHeader () {
        return StyledHeader;
    }
});
const _styledcomponents = /*#__PURE__*/ _interop_require_default(require("styled-components"));
const _engines = require("../../../../engines");
const _Button = require("../../../Button");
const _Buttontokens = require("../../../Button/Button.tokens");
const _Paneltokens = require("../../Panel.tokens");
const _PanelHeadertypes = require("./PanelHeader.types");
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 ButtonWrapper = _styledcomponents.default.div.withConfig({
    displayName: "PanelHeader.styles__ButtonWrapper",
    componentId: "sc-ac5700d3-0"
})([
    `background:var(`,
    `,var(`,
    `));order:`,
    `;padding-left:`,
    `;padding-right:`,
    `;`
], _Paneltokens.privateTokens.backgroundColor, _Paneltokens.tokens.background, ({ placement })=>placement === _PanelHeadertypes.placements.left ? -1 : 0, ({ placement })=>!placement || placement === _PanelHeadertypes.placements.right ? '0.5rem' : '', ({ placement })=>placement === _PanelHeadertypes.placements.left ? '0.5rem' : '');
const StyledHeader = _styledcomponents.default.div.withConfig({
    displayName: "PanelHeader.styles__StyledHeader",
    componentId: "sc-ac5700d3-1"
})([
    `height:fit-content;flex-grow:1;`
]);
const CloseIconWrapper = (0, _styledcomponents.default)(Button).withConfig({
    displayName: "PanelHeader.styles__CloseIconWrapper",
    componentId: "sc-ac5700d3-2"
})([
    `position:relative;width:1.5rem;min-height:1.5rem;`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`
], _Buttontokens.tokens.buttonColor, _Paneltokens.tokens.closeColor, _Buttontokens.tokens.buttonColorHover, _Paneltokens.tokens.closeColor, _Buttontokens.tokens.buttonColorActive, _Paneltokens.tokens.closeColor);
