"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "getFilenameParts", {
    enumerable: true,
    get: function() {
        return getFilenameParts;
    }
});
var _extractExtension = require("./extractExtension");
var _getFileicon = require("./getFileicon");
var getFilenameParts = function getFilenameParts(filename, size, customIcon) {
    var extension = (0, _extractExtension.extractExtension)(filename) || '';
    var filenameWithoutExtension = filename.slice(0, -1 - ((extension === null || extension === void 0 ? void 0 : extension.length) || 0)) || '';
    var cellContentLeft = customIcon || (0, _getFileicon.getFileIcon)(extension, size);
    return {
        extension: extension,
        filenameWithoutExtension: filenameWithoutExtension,
        cellContentLeft: cellContentLeft,
        isVisible: true
    };
};
