import{r as e,t}from"./chunk-DECur_0Z.js";import{F as n,H as r,N as i,Q as a,St as o,Tt as s,_ as c,ot as l,t as u,xt as d,z as f}from"./_plugin-vue_export-helper-Df3QK1RS.js";import{g as p,h as m}from"./ui3n-utils-CqOydih4.js";var h=t(((e,t)=>{var n=p(),r=m();function i(e,t){t=n(t,e);for(var i=0,a=t.length;e!=null&&i<a;)e=e[r(t[i++])];return i&&i==a?e:void 0}t.exports=i})),g=t(((e,t)=>{var n=h();function r(e,t,r){var i=e==null?void 0:n(e,t);return i===void 0?r:i}t.exports=r})),_=e(g(),1),v={doc:{bg:`var(--files-word-secondary)`,color:`var(--files-word-primary)`},docx:{bg:`var(--files-word-secondary)`,color:`var(--files-word-primary)`},xls:{bg:`var(--files-excel-secondary)`,color:`var(--files-excel-primary)`},xlsx:{bg:`var(--files-excel-secondary)`,color:`var(--files-excel-primary)`},pdf:{bg:`var(--files-pdf-secondary)`,color:`var(--files-pdf-primary)`},jpg:{bg:`var(--files-image-secondary)`,color:`var(--files-image-primary)`},jpeg:{bg:`var(--files-image-secondary)`,color:`var(--files-image-primary)`},png:{bg:`var(--files-image-secondary)`,color:`var(--files-image-primary)`},gif:{bg:`var(--files-image-secondary)`,color:`var(--files-image-primary)`},tiff:{bg:`var(--files-image-secondary)`,color:`var(--files-image-primary)`},webp:{bg:`var(--files-image-secondary)`,color:`var(--files-image-primary)`},svg:{bg:`var(--files-image-secondary)`,color:`var(--files-image-primary)`},ico:{bg:`var(--files-image-secondary)`,color:`var(--files-image-primary)`}},y={bg:`var(--color-bg-control-secondary-pressed)`,color:`var(--color-text-control-primary-default)`},b=u(r({__name:`file-type`,props:{fileType:{}},setup(e){let t=e,r=i(()=>t.fileType?t.fileType.toUpperCase():``),u=i(()=>(0,_.default)(v,t.fileType,y));return(e,t)=>(a(),n(d(c),{class:o(e.$style.fileType),round:!1,height:`14`,"max-width":`80`,color:u.value.bg,"text-color":u.value.color,"text-size":`9`},{default:l(()=>[f(s(r.value),1)]),_:1},8,[`class`,`color`,`text-color`]))}}),[[`__cssModules`,{$style:{fileType:`_fileType_10glm_1`}}]]);export{g as n,b as t};