(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", "../utils/theme/getTheme", "../Pallette/style-utils", "../Pallette/Shape", "../Pallette/themes", "./theme"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.FooterStyled = exports.RollContentWrapper = exports.RollStyled = void 0;
    var tslib_1 = require("tslib");
    var styled_components_1 = (0, tslib_1.__importDefault)(require("styled-components"));
    var getTheme_1 = require("../utils/theme/getTheme");
    var style_utils_1 = require("../Pallette/style-utils");
    var Shape_1 = require("../Pallette/Shape");
    var themes_1 = require("../Pallette/themes");
    var theme_1 = require("./theme");
    var COMPONENT_NAME = "roll";
    exports.RollStyled = styled_components_1.default.div.attrs(function (props) { return ({
        theme: (0, getTheme_1.getTheme)({
            theme: props.theme,
            defaultTheme: theme_1.defaultThemeRoll,
            componentName: COMPONENT_NAME
        })
    }); })(templateObject_1 || (templateObject_1 = (0, tslib_1.__makeTemplateObject)(["\n  display: flex;\n  flex-direction: column;\n  gap: 12px;\n  height: 100%;\n  ", ";\n\n  background: ", ";\n\n  .roll__header {\n    ", ";\n  }\n\n  .roll-anim {\n    min-height: 1px;\n    height: 100%;\n    display: flex;\n    flex-direction: column;\n  }\n\n  .roll-anim-enter {\n    opacity: 0;\n    transform: translateY(100%);\n  }\n  .roll-anim-enter-active {\n    opacity: 1;\n    transform: translateY(0%);\n  }\n  .roll-anim-exit {\n    opacity: 1;\n    transform: translateY(0%);\n  }\n  .roll-anim-exit-active {\n    opacity: 0;\n    transform: translateY(100%);\n  }\n  .roll-anim-enter-active,\n  .roll-anim-exit-active {\n    transition: opacity 500ms, transform 500ms;\n  }\n"], ["\n  display: flex;\n  flex-direction: column;\n  gap: 12px;\n  height: 100%;\n  ", ";\n\n  background: ", ";\n\n  .roll__header {\n    ", ";\n  }\n\n  .roll-anim {\n    min-height: 1px;\n    height: 100%;\n    display: flex;\n    flex-direction: column;\n  }\n\n  .roll-anim-enter {\n    opacity: 0;\n    transform: translateY(100%);\n  }\n  .roll-anim-enter-active {\n    opacity: 1;\n    transform: translateY(0%);\n  }\n  .roll-anim-exit {\n    opacity: 1;\n    transform: translateY(0%);\n  }\n  .roll-anim-exit-active {\n    opacity: 0;\n    transform: translateY(100%);\n  }\n  .roll-anim-enter-active,\n  .roll-anim-exit-active {\n    transition: opacity 500ms, transform 500ms;\n  }\n"])), style_utils_1.BorderRadius.roundBorder(Shape_1.Shape.borderRadiusMedium), function (_a) {
        var theme = _a.theme, isOpenRoll = _a.isOpenRoll;
        return isOpenRoll && theme.components[COMPONENT_NAME].background;
    }, function (_a) {
        var theme = _a.theme, isOpenRoll = _a.isOpenRoll;
        return isOpenRoll && theme.shadows.sp.bottom;
    });
    exports.RollStyled.defaultProps = {
        theme: themes_1.LIGHT_THEME
    };
    exports.RollContentWrapper = styled_components_1.default.div.attrs(function (props) { return ({
        theme: (0, getTheme_1.getTheme)({
            theme: props.theme,
            defaultTheme: theme_1.defaultThemeRoll,
            componentName: COMPONENT_NAME
        })
    }); })(templateObject_2 || (templateObject_2 = (0, tslib_1.__makeTemplateObject)(["\n  display: flex;\n  flex-direction: column;\n  gap: 12px;\n  justify-content: space-between;\n  ", "\n  height: 100%;\n  overflow: auto;\n\n  background: ", ";\n  ", ";\n"], ["\n  display: flex;\n  flex-direction: column;\n  gap: 12px;\n  justify-content: space-between;\n  ", "\n  height: 100%;\n  overflow: auto;\n\n  background: ", ";\n  ", ";\n"])), function (_a) {
        var size = _a.size, isOpenRoll = _a.isOpenRoll;
        if (isOpenRoll) {
            return size === "l" ? style_utils_1.Padding.allSide(3, 4) : style_utils_1.Padding.allSide(2, 5);
        }
        return size === "l" ? style_utils_1.Padding.allSide(3, 0) : style_utils_1.Padding.allSide(2, 0);
    }, function (_a) {
        var theme = _a.theme, isOpenRoll = _a.isOpenRoll;
        return isOpenRoll && theme.components[COMPONENT_NAME].background;
    }, style_utils_1.BorderRadius.roundBorderBottom(Shape_1.Shape.borderRadiusMedium));
    exports.RollContentWrapper.defaultProps = {
        theme: themes_1.LIGHT_THEME
    };
    exports.FooterStyled = styled_components_1.default.div.attrs(function (props) { return ({
        theme: (0, getTheme_1.getTheme)({
            theme: props.theme,
            defaultTheme: theme_1.defaultThemeRoll,
            componentName: COMPONENT_NAME
        })
    }); })(templateObject_3 || (templateObject_3 = (0, tslib_1.__makeTemplateObject)(["\n  background: ", ";\n  ", ";\n  ", ";\n  ", ";\n"], ["\n  background: ", ";\n  ", ";\n  ", ";\n  ", ";\n"])), function (_a) {
        var theme = _a.theme;
        return theme.components[COMPONENT_NAME].background;
    }, style_utils_1.Padding.allSide(2, 4), function (_a) {
        var theme = _a.theme;
        return theme.shadows.sp.top;
    }, style_utils_1.BorderRadius.roundBorder(Shape_1.Shape.borderRadiusMedium));
    exports.FooterStyled.defaultProps = {
        theme: themes_1.LIGHT_THEME
    };
    var templateObject_1, templateObject_2, templateObject_3;
});
