"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 ActionAfter () {
        return ActionAfter;
    },
    get ActionBefore () {
        return ActionBefore;
    },
    get AttachedFile () {
        return AttachedFile;
    },
    get AttachedImage () {
        return AttachedImage;
    },
    get AttachedImageOverlay () {
        return AttachedImageOverlay;
    },
    get AttachmentsList () {
        return AttachmentsList;
    },
    get Footer () {
        return Footer;
    },
    get InputFieldWrapper () {
        return InputFieldWrapper;
    },
    get RemoveButton () {
        return RemoveButton;
    },
    get SubmitButton () {
        return SubmitButton;
    },
    get TextArea () {
        return TextArea;
    },
    get TextAreaWrapper () {
        return TextAreaWrapper;
    },
    get Thumb () {
        return Thumb;
    },
    get base () {
        return base;
    }
});
const _styledcomponents = /*#__PURE__*/ _interop_require_wildcard(require("styled-components"));
const _engines = require("../../../engines");
const _File = require("../../File");
const _EmbedIconButton = require("../../EmbedIconButton");
const _IconButton = require("../../IconButton");
const _mixins = require("../../../mixins");
const _Inputtokens = require("./Input.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 fileMergedConfig = (0, _engines.mergeConfig)(_File.fileConfig);
const File = (0, _engines.component)(fileMergedConfig);
const embedIconButtonMergedConfig = (0, _engines.mergeConfig)(_EmbedIconButton.embedIconButtonConfig);
const EmbedIconButton = (0, _engines.component)(embedIconButtonMergedConfig);
const iconButtonMergedConfig = (0, _engines.mergeConfig)(_IconButton.iconButtonConfig);
const IconButton = (0, _engines.component)(iconButtonMergedConfig);
const base = (0, _styledcomponents.css)([
    `box-sizing:border-box;display:block;padding-top:var(`,
    `);padding-right:var(`,
    `);padding-bottom:var(`,
    `);padding-left:var(`,
    `);border-radius:var(`,
    `);background:var(`,
    `);`
], _Inputtokens.tokens.paddingTop, _Inputtokens.tokens.paddingRight, _Inputtokens.tokens.paddingBottom, _Inputtokens.tokens.paddingLeft, _Inputtokens.tokens.borderRadius, _Inputtokens.tokens.background);
const AttachmentsList = _styledcomponents.default.div.withConfig({
    displayName: "Input.styles__AttachmentsList",
    componentId: "sc-71c708b2-0"
})([
    `display:flex;align-items:center;flex-wrap:nowrap;gap:var(`,
    `);margin-bottom:var(`,
    `);border-radius:var(`,
    `);overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none;&::-webkit-scrollbar{display:none;}`
], _Inputtokens.tokens.attachmentsGap, _Inputtokens.tokens.attachmentsListMargin, _Inputtokens.tokens.fileBorderRadius);
const AttachedFile = (0, _styledcomponents.default)(File).withConfig({
    displayName: "Input.styles__AttachedFile",
    componentId: "sc-71c708b2-1"
})([
    `background:var(`,
    `);padding-top:var(`,
    `);padding-right:var(`,
    `);padding-bottom:var(`,
    `);padding-left:var(`,
    `);border-radius:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`
], _Inputtokens.tokens.fileBackground, _Inputtokens.tokens.filePaddingTop, _Inputtokens.tokens.filePaddingRight, _Inputtokens.tokens.filePaddingBottom, _Inputtokens.tokens.filePaddingLeft, _Inputtokens.tokens.fileBorderRadius, _File.fileTokens.embedIconButtonColor, _Inputtokens.tokens.fileEmbedIconButtonColor, _File.fileTokens.embedIconButtonColorHover, _Inputtokens.tokens.fileEmbedIconButtonColorHover, _File.fileTokens.embedIconButtonColorActive, _Inputtokens.tokens.fileEmbedIconButtonColorActive, _File.fileTokens.embedIconButtonFocusColor, _Inputtokens.tokens.focusColor, _File.fileTokens.cellTitleColor, _Inputtokens.tokens.fileCellTitleColor, _File.fileTokens.cellSubtitleColor, _Inputtokens.tokens.fileCellSubtitleColor, _File.fileTokens.embedIconButtonHeight, _Inputtokens.tokens.fileEmbedIconButtonHeight, _File.fileTokens.embedIconButtonWidth, _Inputtokens.tokens.fileEmbedIconButtonWidth, _File.fileTokens.embedIconButtonPadding, _Inputtokens.tokens.fileEmbedIconButtonPadding, _File.fileTokens.embedIconButtonRadius, _Inputtokens.tokens.fileEmbedIconButtonRadius, _File.fileTokens.cellHeight, _Inputtokens.tokens.fileCellHeight, _File.fileTokens.cellTextboxGap, _Inputtokens.tokens.fileCellTextboxGap, _File.fileTokens.cellGap, _Inputtokens.tokens.fileCellGap, _File.fileTokens.cellTitleFontFamily, _Inputtokens.tokens.fileCellTitleFontFamily, _File.fileTokens.cellTitleFontSize, _Inputtokens.tokens.fileCellTitleFontSize, _File.fileTokens.cellTitleFontStyle, _Inputtokens.tokens.fileCellTitleFontStyle, _File.fileTokens.cellTitleFontWeight, _Inputtokens.tokens.fileCellTitleFontWeight, _File.fileTokens.cellTitleLetterSpacing, _Inputtokens.tokens.fileCellTitleLetterSpacing, _File.fileTokens.cellTitleLineHeight, _Inputtokens.tokens.fileCellTitleLineHeight, _File.fileTokens.cellSubtitleFontFamily, _Inputtokens.tokens.fileCellSubtitleFontFamily, _File.fileTokens.cellSubtitleFontSize, _Inputtokens.tokens.fileCellSubtitleFontSize, _File.fileTokens.cellSubtitleFontStyle, _Inputtokens.tokens.fileCellSubtitleFontStyle, _File.fileTokens.cellSubtitleFontWeight, _Inputtokens.tokens.fileCellSubtitleFontWeight, _File.fileTokens.cellSubtitleLetterSpacing, _Inputtokens.tokens.fileCellSubtitleLetterSpacing, _File.fileTokens.cellSubtitleLineHeight, _Inputtokens.tokens.fileCellSubtitleLineHeight, _File.fileTokens.fileThumbSize, _Inputtokens.tokens.fileThumbSize, _File.fileTokens.fileThumbRadius, _Inputtokens.tokens.fileThumbRadius);
const AttachedImage = _styledcomponents.default.div.withConfig({
    displayName: "Input.styles__AttachedImage",
    componentId: "sc-71c708b2-2"
})([
    `position:relative;flex:none;background:none;padding:0;margin:0;border:none;width:calc(var(`,
    `) + var(`,
    `) + var(`,
    `));height:calc(var(`,
    `) + var(`,
    `) + var(`,
    `));line-height:0;border-radius:var(`,
    `);overflow:hidden;&:focus,&:focus-visible{outline:none;border:none;}&:hover .`,
    `,&:focus-visible .`,
    `{visibility:visible;}&:focus-visible button::before{border-color:var(`,
    `);}`
], _Inputtokens.tokens.fileCellHeight, _Inputtokens.tokens.filePaddingTop, _Inputtokens.tokens.filePaddingBottom, _Inputtokens.tokens.fileCellHeight, _Inputtokens.tokens.filePaddingTop, _Inputtokens.tokens.filePaddingBottom, _Inputtokens.tokens.fileBorderRadius, _Inputtokens.classes.attachedOverlay, _Inputtokens.classes.attachedOverlay, _Inputtokens.tokens.focusColor);
const AttachedImageOverlay = _styledcomponents.default.div.withConfig({
    displayName: "Input.styles__AttachedImageOverlay",
    componentId: "sc-71c708b2-3"
})([
    `visibility:hidden;position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:var(--overlay-blur);cursor:pointer;`
]);
const RemoveButton = (0, _styledcomponents.default)(EmbedIconButton).withConfig({
    displayName: "Input.styles__RemoveButton",
    componentId: "sc-71c708b2-4"
})([
    ``,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`
], _EmbedIconButton.embedIconButtonTokens.embedIconButtonWidth, _Inputtokens.tokens.fileEmbedIconButtonWidth, _EmbedIconButton.embedIconButtonTokens.embedIconButtonHeight, _Inputtokens.tokens.fileEmbedIconButtonHeight, _EmbedIconButton.embedIconButtonTokens.embedIconButtonRadius, _Inputtokens.tokens.fileEmbedIconButtonRadius, _EmbedIconButton.embedIconButtonTokens.embedIconButtonColor, _Inputtokens.tokens.fileEmbedIconButtonColor);
const Thumb = _styledcomponents.default.img.withConfig({
    displayName: "Input.styles__Thumb",
    componentId: "sc-71c708b2-5"
})([
    `width:100%;height:100%;object-fit:cover;`
]);
const TextAreaWrapper = _styledcomponents.default.div.withConfig({
    displayName: "Input.styles__TextAreaWrapper",
    componentId: "sc-71c708b2-6"
})([
    `padding-top:var(`,
    `);padding-right:var(`,
    `);padding-bottom:var(`,
    `);padding-left:var(`,
    `);line-height:0;`
], _Inputtokens.tokens.textareaPaddingTop, _Inputtokens.tokens.textareaPaddingRight, _Inputtokens.tokens.textareaPaddingBottom, _Inputtokens.tokens.textareaPaddingLeft);
const TextArea = _styledcomponents.default.textarea.withConfig({
    displayName: "Input.styles__TextArea",
    componentId: "sc-71c708b2-7"
})([
    `width:100%;background:transparent;border:none;color:var(`,
    `);font-family:var(`,
    `);font-size:var(`,
    `);font-style:var(`,
    `);font-weight:var(`,
    `);letter-spacing:var(`,
    `);line-height:var(`,
    `);caret-color:var(`,
    `);resize:none;overflow:hidden;&::placeholder{color:var(`,
    `);}&:focus::placeholder{color:var(`,
    `);}&:focus,&:focus-visible{outline:none;box-shadow:none;}`,
    `;--textarea-scroll-offset:calc( var(`,
    `) + var(`,
    `) - var(`,
    `) );padding:0 var(--textarea-scroll-offset) 0 0;margin-right:calc(var(--textarea-scroll-offset) * -1);&[data-condensed='true']{padding:var(`,
    `);--textarea-scroll-offset:0rem;margin-right:0;box-sizing:border-box;}`
], _Inputtokens.tokens.textareaColor, _Inputtokens.tokens.textareaFontFamily, _Inputtokens.tokens.textareaFontSize, _Inputtokens.tokens.textareaFontStyle, _Inputtokens.tokens.textareaFontWeight, _Inputtokens.tokens.textareaLetterSpacing, _Inputtokens.tokens.textareaLineHeight, _Inputtokens.tokens.textareaCaretColor, _Inputtokens.tokens.textareaPlaceholderColor, _Inputtokens.tokens.textareaPlaceholderColorFocus, (0, _mixins.addScrollbar)({
    scrollWidth: `var(${_Inputtokens.tokens.textareaScrollWidth})`,
    trackColor: `var(${_Inputtokens.tokens.textareaScrollTrackColor})`,
    thumbColor: `var(${_Inputtokens.tokens.textareaScrollThumbColor})`
}), _Inputtokens.tokens.textareaPaddingRight, _Inputtokens.tokens.paddingRight, _Inputtokens.tokens.textareaScrollWidth, _Inputtokens.tokens.inputFieldPadding);
const Footer = _styledcomponents.default.div.withConfig({
    displayName: "Input.styles__Footer",
    componentId: "sc-71c708b2-8"
})([
    `display:flex;align-items:center;justify-content:space-between;`
]);
const ActionBefore = _styledcomponents.default.div.withConfig({
    displayName: "Input.styles__ActionBefore",
    componentId: "sc-71c708b2-9"
})([
    `flex:none;line-height:0;`
]);
const InputFieldWrapper = _styledcomponents.default.div.withConfig({
    displayName: "Input.styles__InputFieldWrapper",
    componentId: "sc-71c708b2-10"
})([
    `flex:1;line-height:0;`
]);
const ActionAfter = _styledcomponents.default.div.withConfig({
    displayName: "Input.styles__ActionAfter",
    componentId: "sc-71c708b2-11"
})([
    `flex:none;line-height:0;`
]);
const SubmitButton = (0, _styledcomponents.default)(IconButton).withConfig({
    displayName: "Input.styles__SubmitButton",
    componentId: "sc-71c708b2-12"
})([
    `flex:none;margin-left:0.125rem;`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`,
    `:var(`,
    `);`
], _IconButton.iconButtonTokens.iconButtonColor, _Inputtokens.tokens.submitButtonColor, _IconButton.iconButtonTokens.iconButtonBackgroundColor, _Inputtokens.tokens.submitButtonBackgroundColor, _IconButton.iconButtonTokens.iconButtonBackgroundColorHover, _Inputtokens.tokens.submitButtonBackgroundColorHover, _IconButton.iconButtonTokens.iconButtonBackgroundColorActive, _Inputtokens.tokens.submitButtonBackgroundColorActive, _IconButton.iconButtonTokens.iconButtonLoadingBackgroundColor, _Inputtokens.tokens.submitButtonLoadingBackgroundColor, _IconButton.iconButtonTokens.iconButtonWidth, _Inputtokens.tokens.submitButtonWidth, _IconButton.iconButtonTokens.iconButtonHeight, _Inputtokens.tokens.submitButtonHeight, _IconButton.iconButtonTokens.iconButtonPadding, _Inputtokens.tokens.submitButtonPadding, _IconButton.iconButtonTokens.iconButtonRadius, _Inputtokens.tokens.submitButtonRadius, _IconButton.iconButtonTokens.iconButtonSpinnerSize, _Inputtokens.tokens.submitButtonSpinnerSize, _IconButton.iconButtonTokens.iconButtonSpinnerColor, _Inputtokens.tokens.submitButtonSpinnerColor, _IconButton.iconButtonTokens.iconButtonFocusColor, _Inputtokens.tokens.focusColor);
