"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/slicedToArray"),i=require("./icons/ArchiveFileIcon.js"),o=require("./icons/CSVFileIcon.js"),n=require("./icons/DocFileIcon.js"),c=require("./icons/EDMFileIcon.js"),l=require("./icons/ExcelFileIcon.js"),r=require("./icons/ImageFileIcon.js"),I=require("./icons/JsonFileIcon.js"),s=require("./icons/LasFileIcon.js"),F=require("./icons/OtherFileIcon.js"),t=require("./icons/PdfFileIcon.js"),u=require("./icons/PowerPointFileIcon.js"),d=require("./icons/TxtFileIcon.js"),a=require("./icons/UnknownFileIcon.js"),m=require("./icons/VideoFileIcon.js"),p=require("./icons/XmlFileIcon.js");function v(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var j=v(e),g=[[".pdf",t.PdfFileIcon],[".csv",o.CSVFileIcon],[".json",I.JsonFileIcon],[".edm.xml",c.EDMFileIcon],[".xml",p.XmlFileIcon],[".las",s.LasFileIcon],[".txt",d.TxtFileIcon],[".pptx",u.PowerPointFileIcon],[".ppt",u.PowerPointFileIcon],[".xlsx",l.ExcelFileIcon],[".xls",l.ExcelFileIcon],[".docx",n.DocFileIcon],[".doc",n.DocFileIcon],[".jpg",r.ImageFileIcon],[".png",r.ImageFileIcon],[".jpeg",r.ImageFileIcon],[".gif",r.ImageFileIcon],[".bmp",r.ImageFileIcon],[".svg",r.ImageFileIcon],[".webp",r.ImageFileIcon],[".rar",i.ArchiveFileIcon],[".zip",i.ArchiveFileIcon],[".7z",i.ArchiveFileIcon],[".mp4",m.VideoFileIcon],[".avi",m.VideoFileIcon],[".mkv",m.VideoFileIcon],[".mov",m.VideoFileIcon],[".wmv",m.VideoFileIcon],[".flv",m.VideoFileIcon],[".webm",m.VideoFileIcon],[".mpg",m.VideoFileIcon],[".mpeg",m.VideoFileIcon],[".m4v",m.VideoFileIcon]];exports.ExtensionsToIconArray=g,exports.getComponent=function(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o=null==i?void 0:i.toLowerCase().trim(),n=null===(e=g.find((function(e){var i=j.default(e,1)[0];return o.endsWith(i)})))||void 0===e?void 0:e[1];return n||(/\.\w{1,4}$/.test(o)?F.OtherFileIcon:a.UnknownFileIcon)};
//# sourceMappingURL=constants.js.map
