(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define(["require", "exports", "tslib", "styled-components", "../Pallette/themes", "../utils/theme/getTheme", "../Pallette/style-utils", "../utils/defineResponsibleSize", "./theme"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.PageHeaderStyled = void 0;
    var tslib_1 = require("tslib");
    var styled_components_1 = (0, tslib_1.__importDefault)(require("styled-components"));
    var themes_1 = require("../Pallette/themes");
    var getTheme_1 = require("../utils/theme/getTheme");
    var style_utils_1 = require("../Pallette/style-utils");
    var defineResponsibleSize_1 = require("../utils/defineResponsibleSize");
    var theme_1 = require("./theme");
    exports.PageHeaderStyled = styled_components_1.default.div.attrs(function (props) { return ({
        theme: (0, getTheme_1.getTheme)({
            theme: props.theme,
            componentName: "pageHeader",
            defaultTheme: theme_1.defaultThemePageHeader
        })
    }); })(templateObject_1 || (templateObject_1 = (0, tslib_1.__makeTemplateObject)(["\n  display: flex;\n  ", "\n  .page-header_button {\n    display: flex;\n    justify-content: center;\n    align-items: center;\n    margin-right: 4px;\n    width: 32px;\n    height: 32px;\n    background: transparent;\n    border: none;\n    cursor: pointer;\n    svg {\n      color: ", ";\n    }\n  }\n\n  .page-header_text {\n    ", ";\n    color: ", ";\n    display: -webkit-box;\n    overflow: hidden;\n    -webkit-line-clamp: 3;\n    -webkit-box-orient: vertical;\n  }\n\n  .page-header_trail-button {\n    margin-right: 0;\n    margin-left: auto;\n    align-self: flex-start;\n    svg {\n      color: ", ";\n    }\n  }\n"], ["\n  display: flex;\n  ", "\n  .page-header_button {\n    display: flex;\n    justify-content: center;\n    align-items: center;\n    margin-right: 4px;\n    width: 32px;\n    height: 32px;\n    background: transparent;\n    border: none;\n    cursor: pointer;\n    svg {\n      color: ", ";\n    }\n  }\n\n  .page-header_text {\n    ", ";\n    color: ", ";\n    display: -webkit-box;\n    overflow: hidden;\n    -webkit-line-clamp: 3;\n    -webkit-box-orient: vertical;\n  }\n\n  .page-header_trail-button {\n    margin-right: 0;\n    margin-left: auto;\n    align-self: flex-start;\n    svg {\n      color: ", ";\n    }\n  }\n"])), function (_a) {
        var width = _a.width;
        return (0, defineResponsibleSize_1.defineResponsibleWidth)(width);
    }, function (_a) {
        var theme = _a.theme;
        return theme.components.pageHeader.colorArrowIcon;
    }, style_utils_1.Padding.allSide(1), function (_a) {
        var theme = _a.theme;
        return theme.components.pageHeader.colorContent;
    }, function (_a) {
        var theme = _a.theme;
        return theme.components.pageHeader.colorContent;
    });
    exports.PageHeaderStyled.defaultProps = {
        theme: themes_1.LIGHT_THEME
    };
    var templateObject_1;
});
