"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 CloseIconWrapper () {
        return CloseIconWrapper;
    },
    get ContentBefore () {
        return ContentBefore;
    },
    get ContentWrapper () {
        return ContentWrapper;
    },
    get Text () {
        return Text;
    },
    get TextHelper () {
        return TextHelper;
    },
    get Title () {
        return Title;
    },
    get TitleHelper () {
        return TitleHelper;
    },
    get base () {
        return base;
    }
});
const _styledcomponents = /*#__PURE__*/ _interop_require_wildcard(require("styled-components"));
const _engines = require("../../engines");
const _Button = require("../Button");
const _Notetokens = require("./Note.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 mergedButtonConfig = (0, _engines.mergeConfig)(_Button.buttonConfig);
const Button = (0, _engines.component)(mergedButtonConfig);
const base = (0, _styledcomponents.css)([
    `position:relative;display:flex;box-sizing:border-box;`
]);
const ContentBefore = _styledcomponents.default.div.withConfig({
    displayName: "Note.styles__ContentBefore",
    componentId: "sc-c3cb2cd8-0"
})([
    `display:flex;`
]);
const ContentWrapper = _styledcomponents.default.div.withConfig({
    displayName: "Note.styles__ContentWrapper",
    componentId: "sc-c3cb2cd8-1"
})([
    `display:flex;flex-direction:column;box-sizing:border-box;`
]);
const Title = _styledcomponents.default.div.withConfig({
    displayName: "Note.styles__Title",
    componentId: "sc-c3cb2cd8-2"
})([
    `padding-right:`,
    `;box-sizing:border-box;display:flex;align-items:center;`
], ({ hasClose })=>hasClose ? `var(${_Notetokens.tokens.titlePaddingRight})` : 0);
const TitleHelper = _styledcomponents.default.div.withConfig({
    displayName: "Note.styles__TitleHelper",
    componentId: "sc-c3cb2cd8-3"
})([
    `visibility:hidden;position:absolute;z-index:-9999;opacity:0;top:0;left:0;`
]);
const Text = _styledcomponents.default.span.withConfig({
    displayName: "Note.styles__Text",
    componentId: "sc-c3cb2cd8-4"
})([
    `display:flex;align-items:center;position:relative;`
]);
const TextHelper = _styledcomponents.default.span.withConfig({
    displayName: "Note.styles__TextHelper",
    componentId: "sc-c3cb2cd8-5"
})([
    `display:flex;align-items:center;visibility:hidden;position:absolute;z-index:-9999;opacity:0;top:0;left:0;`
]);
const CloseIconWrapper = (0, _styledcomponents.default)(Button).withConfig({
    displayName: "Note.styles__CloseIconWrapper",
    componentId: "sc-c3cb2cd8-6"
})([
    `position:absolute;right:var(`,
    `);top:var(`,
    `);width:var(`,
    `);height:var(`,
    `);color:var(`,
    `);:hover{color:var(`,
    `);}`
], _Notetokens.tokens.closeIconRight, _Notetokens.tokens.closeIconTop, _Notetokens.tokens.closeIconButtonSize, _Notetokens.tokens.closeIconButtonSize, _Notetokens.tokens.closeIconColor, _Notetokens.tokens.closeIconColorOnHover);
