"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 CardContent () {
        return CardContent;
    },
    get CardInnerContent () {
        return CardInnerContent;
    },
    get base () {
        return base;
    }
});
const _styledcomponents = /*#__PURE__*/ _interop_require_wildcard(require("styled-components"));
const _Cardtokens = require("./Card.tokens");
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;
}
const CardContent = _styledcomponents.default.div.withConfig({
    displayName: "Card.styles__CardContent",
    componentId: "sc-a6638d12-0"
})([
    `position:relative;display:flex;border-radius:var(`,
    `);overflow:hidden;aspect-ratio:`,
    `;flex-direction:`,
    `;`
], _Cardtokens.tokens.contentBorderRadius, ({ aspectRatio })=>aspectRatio ?? '', ({ orientation })=>orientation === 'vertical' ? 'column' : 'row');
const CardInnerContent = _styledcomponents.default.div.withConfig({
    displayName: "Card.styles__CardInnerContent",
    componentId: "sc-a6638d12-1"
})([
    `position:absolute;top:0;left:0;right:0;bottom:0;z-index:1;display:flex;flex-direction:`,
    `;`
], ({ orientation })=>orientation === 'vertical' ? 'column' : 'row');
const base = (0, _styledcomponents.css)([
    `position:relative;display:inline-flex;box-sizing:border-box;z-index:0;&.`,
    `{position:relative;:after{content:'';display:block;position:absolute;inset:calc(-1 * var(--plasma-card-border-width));border:var(`,
    `) solid var(--outline-accent);border-radius:var(`,
    `);z-index:-1;}}:not(&.`,
    `){`,
    `{border-radius:var(`,
    `);}}&.`,
    `{padding:var(`,
    `);&.`,
    `{:after{inset:calc(-1 * var(`,
    `));}}}&.`,
    `{`,
    `{align-items:center;justify-content:center;}}&.`,
    `{`,
    `{align-items:center;justify-content:center;}flex-direction:column;}`
], _Cardtokens.classes.selected, _Cardtokens.tokens.borderWidth, _Cardtokens.tokens.borderRadius, _Cardtokens.classes.backgroundSolid, CardContent, _Cardtokens.tokens.borderRadius, _Cardtokens.classes.backgroundSolid, _Cardtokens.tokens.outlineWidth, _Cardtokens.classes.selected, _Cardtokens.tokens.borderWidth, _Cardtokens.classes.horizontal, CardContent, _Cardtokens.classes.vertical, CardContent);
