"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../ext-esm/tslib/tslib.es6.js'),i=require("react/jsx-runtime"),o=require("./icons/ArchiveFileIcon.js"),n=require("./icons/CSVFileIcon.js"),c=require("./icons/DocFileIcon.js"),l=require("./icons/EDMFileIcon.js"),r=require("./icons/ExcelFileIcon.js"),I=require("./icons/ImageFileIcon.js"),s=require("./icons/JsonFileIcon.js"),F=require("./icons/LasFileIcon.js"),t=require("./icons/OtherFileIcon.js"),u=require("./icons/PdfFileIcon.js"),m=require("./icons/PowerPointFileIcon.js"),d=require("./icons/TxtFileIcon.js"),a=require("./icons/UnknownFileIcon.js"),j=require("./icons/VideoFileIcon.js"),v=require("./icons/XmlFileIcon.js"),p=[[".pdf",u.PdfFileIcon],[".csv",n.CSVFileIcon],[".json",s.JsonFileIcon],[".edm.xml",l.EDMFileIcon],[".xml",v.XmlFileIcon],[".las",F.LasFileIcon],[".txt",d.TxtFileIcon],[".pptx",m.PowerPointFileIcon],[".ppt",m.PowerPointFileIcon],[".xlsx",r.ExcelFileIcon],[".xls",r.ExcelFileIcon],[".docx",c.DocFileIcon],[".doc",c.DocFileIcon],[".jpg",I.ImageFileIcon],[".png",I.ImageFileIcon],[".jpeg",I.ImageFileIcon],[".gif",I.ImageFileIcon],[".bmp",I.ImageFileIcon],[".svg",I.ImageFileIcon],[".webp",I.ImageFileIcon],[".rar",o.ArchiveFileIcon],[".zip",o.ArchiveFileIcon],[".7z",o.ArchiveFileIcon],[".mp4",j.VideoFileIcon],[".avi",j.VideoFileIcon],[".mkv",j.VideoFileIcon],[".mov",j.VideoFileIcon],[".wmv",j.VideoFileIcon],[".flv",j.VideoFileIcon],[".webm",j.VideoFileIcon],[".mpg",j.VideoFileIcon],[".mpeg",j.VideoFileIcon],[".m4v",j.VideoFileIcon]];exports.FileIcon=function(o){var n,c=o.name,l=e.__rest(o,["name"]),r=null==c?void 0:c.toLowerCase().trim(),I=null===(n=p.find((function(e){var i=e[0];return r.endsWith(i)})))||void 0===n?void 0:n[1];return I||(I=/\.\w{1,4}$/.test(r)?t.OtherFileIcon:a.UnknownFileIcon),i.jsx(I,e.__assign({},l))};
