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