import{d as w,a3 as h,k as _,o as r,A as i,B as t,f as a,a as p,D as C,C as x,G as T,E as c,X as B,_ as A,K as P,Y as j,Z as D,__tla as E}from"./index-92ad187a.js";import G,{__tla as I}from"./main-fb68aec4.js";import{d as K,__tla as V}from"./formatTime-c7f253d6.js";let m,X=Promise.all([(()=>{try{return E}catch{}})(),(()=>{try{return I}catch{}})(),(()=>{try{return V}catch{}})()]).then(async()=>{m=w({__name:"VoiceTable",props:{list:{},loading:{type:Boolean}},emits:["delete"],setup(u,{emit:f}){const n=u,s=f;return(Y,Z)=>{const l=B,o=A,d=P,y=j,g=h("hasPermi"),b=D;return _((r(),i(y,{data:n.list,stripe:"",border:"",style:{"margin-top":"10px"}},{default:t(()=>[a(l,{label:"\u7F16\u53F7",align:"center",prop:"mediaId"}),a(l,{label:"\u6587\u4EF6\u540D",align:"center",prop:"name"}),a(l,{label:"\u8BED\u97F3",align:"center"},{default:t(e=>[e.row.url?(r(),i(p(G),{key:0,url:e.row.url},null,8,["url"])):C("",!0)]),_:1}),a(l,{label:"\u4E0A\u4F20\u65F6\u95F4",align:"center",prop:"createTime",formatter:p(K),width:"180"},{default:t(e=>[x("span",null,T(e.row.createTime),1)]),_:1},8,["formatter"]),a(l,{label:"\u64CD\u4F5C",align:"center","class-name":"small-padding fixed-width"},{default:t(e=>[a(d,{type:"primary",link:"",onClick:k=>s("delete",e.row.id)},{default:t(()=>[a(o,{icon:"ep:download"}),c("\u4E0B\u8F7D ")]),_:2},1032,["onClick"]),_((r(),i(d,{type:"primary",link:"",onClick:k=>s("delete",e.row.id)},{default:t(()=>[a(o,{icon:"ep:delete"}),c("\u5220\u9664 ")]),_:2},1032,["onClick"])),[[g,["mp:material:delete"]]])]),_:1})]),_:1},8,["data"])),[[b,n.loading]])}}})});export{m as _,X as __tla};
