"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 FilenameExtensionPart () {
        return FilenameExtensionPart;
    },
    get FilenameWrapper () {
        return FilenameWrapper;
    },
    get FilesWrapper () {
        return FilesWrapper;
    },
    get StyledAttachButtonWrapper () {
        return StyledAttachButtonWrapper;
    },
    get StyledHelperText () {
        return StyledHelperText;
    },
    get StyledHiddenInput () {
        return StyledHiddenInput;
    },
    get TruncatedFilenamePart () {
        return TruncatedFilenamePart;
    },
    get base () {
        return base;
    }
});
const _styledcomponents = /*#__PURE__*/ _interop_require_wildcard(require("styled-components"));
const _Attachtokens = require("./Attach.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 base = (0, _styledcomponents.css)([
    `position:relative;display:flex;`
]);
const StyledHiddenInput = _styledcomponents.default.input.withConfig({
    displayName: "Attach.styles__StyledHiddenInput",
    componentId: "sc-9b65309a-0"
})([
    `display:none;`
]);
const StyledAttachButtonWrapper = _styledcomponents.default.div.withConfig({
    displayName: "Attach.styles__StyledAttachButtonWrapper",
    componentId: "sc-9b65309a-1"
})([
    `position:relative;`
]);
const StyledHelperText = _styledcomponents.default.div.withConfig({
    displayName: "Attach.styles__StyledHelperText",
    componentId: "sc-9b65309a-2"
})([
    `position:absolute;margin-top:0.25rem;`
]);
const FilenameWrapper = _styledcomponents.default.div.withConfig({
    displayName: "Attach.styles__FilenameWrapper",
    componentId: "sc-9b65309a-3"
})([
    `display:inline-grid;align-items:center;grid-template-columns:auto 1fr;min-width:8ch;height:`,
    `;`
], ({ isInsideDropdown })=>isInsideDropdown ? `var(${_Attachtokens.tokens.filenameDropdownWrapperHeight})` : `var(${_Attachtokens.tokens.filenameWrapperHeight})`);
const FilesWrapper = _styledcomponents.default.div.withConfig({
    displayName: "Attach.styles__FilesWrapper",
    componentId: "sc-9b65309a-4"
})([
    `display:flex;overflow:`,
    `;&.`,
    `{flex-direction:row;}&.`,
    `{flex-direction:column;}&.`,
    `{flex-wrap:wrap;}&.`,
    `{position:absolute;top:0;left:0;z-index:-999;visibility:hidden;opacity:0;max-width:100%;overflow:hidden;}`
], ({ applyOverflow })=>applyOverflow ? 'hidden' : 'unset', _Attachtokens.classes.horizontal, _Attachtokens.classes.vertical, _Attachtokens.classes.auto, _Attachtokens.classes.horizontalHidden);
const TruncatedFilenamePart = _styledcomponents.default.span.withConfig({
    displayName: "Attach.styles__TruncatedFilenamePart",
    componentId: "sc-9b65309a-5"
})([
    `overflow:`,
    `;text-overflow:`,
    `;white-space:nowrap;`
], ({ applyEllipsis })=>applyEllipsis ? 'hidden' : 'visible', ({ applyEllipsis })=>applyEllipsis ? 'ellipsis' : 'unset');
const FilenameExtensionPart = _styledcomponents.default.span.withConfig({
    displayName: "Attach.styles__FilenameExtensionPart",
    componentId: "sc-9b65309a-6"
})([
    ``
]);
