{"version":3,"file":"fileIcons-2PBoLSX1.js","sources":["../../../packs/frontend/utils/fileIcons.ts"],"sourcesContent":["// bootstrap icons filetype-xxx\nexport const supportedFiletypeIcons = [\n \"aac\",\n \"ai\",\n \"bmp\",\n \"cs\",\n \"css\",\n \"csv\",\n \"doc\",\n \"docx\",\n \"exe\",\n \"gif\",\n \"heic\",\n \"html\",\n \"java\",\n \"jpg\",\n \"js\",\n \"jsx\",\n \"key\",\n \"m4p\",\n \"md\",\n \"mdx\",\n \"mov\",\n \"mp3\",\n \"mp4\",\n \"otf\",\n \"pdf\",\n \"php\",\n \"png\",\n \"ppt\",\n \"psd\",\n \"py\",\n \"raw\",\n \"rb\",\n \"sass\",\n \"scss\",\n \"sh\",\n \"svg\",\n \"tiff\",\n \"tsx\",\n \"ttf\",\n \"txt\",\n \"wav\",\n \"woff\",\n \"xls\",\n \"xml\",\n \"yml\",\n];\n\nexport const iconForFileExtension = (fileExtension: string) => {\n let name = fileExtension.toLowerCase();\n if (name === \"jpeg\") {\n name = \"jpg\";\n }\n\n if (name === \"pdf\") {\n return \"bi-file-pdf\";\n } else if (supportedFiletypeIcons.includes(name)) {\n return `bi-filetype-${name}`;\n } else {\n return \"bi-file\";\n }\n};\n"],"names":["supportedFiletypeIcons","iconForFileExtension","fileExtension","name"],"mappings":"AACO,MAAMA,EAAyB,CACpC,MACA,KACA,MACA,KACA,MACA,MACA,MACA,OACA,MACA,MACA,OACA,OACA,OACA,MACA,KACA,MACA,MACA,MACA,KACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,KACA,MACA,KACA,OACA,OACA,KACA,MACA,OACA,MACA,MACA,MACA,MACA,OACA,MACA,MACA,KACF,EAEaC,EAAwBC,GAA0B,CACzD,IAAAC,EAAOD,EAAc,YAAY,EAKrC,OAJIC,IAAS,SACJA,EAAA,OAGLA,IAAS,MACJ,cACEH,EAAuB,SAASG,CAAI,EACtC,eAAeA,CAAI,GAEnB,SAEX"}