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