"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "CardContent", {
    enumerable: true,
    get: function() {
        return CardContent;
    }
});
var _react = /*#__PURE__*/ _interop_require_default(require("react"));
var _styledcomponents = /*#__PURE__*/ _interop_require_wildcard(require("styled-components"));
function _interop_require_default(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}
function _getRequireWildcardCache(nodeInterop) {
    if (typeof WeakMap !== "function") return null;
    var cacheBabelInterop = new WeakMap();
    var cacheNodeInterop = new WeakMap();
    return (_getRequireWildcardCache = function(nodeInterop) {
        return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
    })(nodeInterop);
}
function _interop_require_wildcard(obj, nodeInterop) {
    if (!nodeInterop && obj && obj.__esModule) {
        return obj;
    }
    if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
        return {
            default: obj
        };
    }
    var cache = _getRequireWildcardCache(nodeInterop);
    if (cache && cache.has(obj)) {
        return cache.get(obj);
    }
    var newObj = {
        __proto__: null
    };
    var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
    for(var key in obj){
        if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
            var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
            if (desc && (desc.get || desc.set)) {
                Object.defineProperty(newObj, key, desc);
            } else {
                newObj[key] = obj[key];
            }
        }
    }
    newObj.default = obj;
    if (cache) {
        cache.set(obj, newObj);
    }
    return newObj;
}
var CardContent = _styledcomponents.default.div.withConfig({
    displayName: "CardContent",
    componentId: "sc-4a3fa268-0"
})([
    "display:flex;flex-direction:column;position:relative;box-sizing:border-box;padding:",
    "rem 1rem;border-radius:inherit;",
    " ",
    ""
], function(param) {
    var compact = param.compact;
    return compact ? 0.375 : 1;
}, function(param) {
    var disabled = param.disabled;
    return disabled && (0, _styledcomponents.css)([
        "opacity:0.5;"
    ]);
}, function(param) {
    var cover = param.cover, _param_coverGradient = param.coverGradient, coverGradient = _param_coverGradient === void 0 ? true : _param_coverGradient;
    return cover && (0, _styledcomponents.css)([
        "position:absolute;top:0;left:0;right:0;bottom:0;justify-content:flex-end;",
        ";"
    ], coverGradient && (0, _styledcomponents.css)([
        "background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,0.74) 100%);"
    ]));
});
