import{_ as d,o as i,c as s,t as a,i as m,F as f,r as _,a as l,d as u,n as y,f as h}from"./entry.DPwc-EV0.js";const x={props:{assets:{type:Array},titleText:{type:String}},methods:{getIcon(e){var c;const o=((c=e==null?void 0:e.originalFile)==null?void 0:c.split(".").pop())==="eps"?"eps":e.fileName.split(".")[1].replace("xlsx","xls");return{csv:"grommet-icons:document-csv",pdf:"fa:file-pdf-o",xls:"uiw:file-excel",zip:"formkit:zip",eps:"teenyicons:eps-outline"}[o]??`bi:filetype-${o}`}}},g={key:0},F={class:"asset-list"},k=["href"];function v(e,o,t,c,N,r){const p=h;return i(),s("div",{class:"ebm-attached-files",style:y({fontFamily:e.$ss.primaryFontFamily})},[t.titleText?(i(),s("h2",g,a(t.titleText),1)):m("",!0),(i(!0),s(f,null,_(t.assets,n=>(i(),s("div",{key:n.id,class:"attached-file"},[l("div",F,[u(p,{icon:`${r.getIcon(n)}`,width:25},null,8,["icon"]),l("a",{href:n.src},a(n.name),9,k)])]))),128))],4)}const z=d(x,[["render",v]]);export{z as default};