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