WokerTask/public/admin/assets/index.b65d81e7.js

2 lines
17 KiB
JavaScript

import{k as je,b as Me,V as Ne,M as We,p as Ge,q as Ye,r as qe,W as Ke,E as Qe,P as Ze,X as Xe,Q as Je,R as Oe,w as He,O as et,C as tt,a as lt,G as nt,N as at}from"./element-plus.ff90c99c.js";import{_ as ot}from"./index.vue_vue_type_script_setup_true_lang.44dbc460.js";import{_ as st}from"./index.e0d88e08.js";import{r as P,f as Fe,d as Ae,b as xe,i as it}from"./index.9acc1fa4.js";import{P as ut}from"./index.6e7b2ec9.js";import{U as dt}from"./index.bd85115c.js";import{_ as ct}from"./index.vue_vue_type_script_setup_true_lang.ec118b31.js";import{s as Z,r as D,$ as Se,d as X,o as s,c,a as o,P as V,T as _,W as n,J as rt,L as Ve,M as ft,u as e,b as De,w as K,R as Q,X as ue,Q as a,j as T,n as we,a0 as mt,E as pt,i as _t,U as p,a4 as Y,F as $,a9 as q,aa as vt,K as be,V as se,bg as ht,bf as gt}from"./@vue.f8dfc830.js";import{u as yt}from"./usePaging.bd7a7dec.js";import{g as Ct}from"./vue3-video-play.5592bdaa.js";const kt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAgCAYAAABgrToAAAACJElEQVRYR+2YMWsUURSFz3m7s+nskjUIQSutbMRi7WzUVjSadMHCbVLkByjmLygaCVYWRqMEUhkFS9Gg0cJfYCPZjYUQFbPs+I7c2R1Q2ZjZfRNYYS4MAzPv3vnmvDvL3kMA2Hl5/CjLI9ckf4ZwY3Zt15C+gfwIao3So0rt3XsJtPUk9M/cAW6y9ap2DIyfAjgCwANwGeoYiEFtk/5e5CvXeer1D2neATcGgiTZM4+t9RNLEKcBtAFEGeBsiRWzl7EoSXo+8rV9gWc/fDc1B1VSEoEnDpj0KTB33tS26DGaEezvZQZpRxmODyoT5+vwBwS3zeTcT4yjTdZNJEiPSykk1bjZX6HeD/WQJ1zUApgq2w+etcsniBuAVlH9vELOx6Yo1VywgkmTB4X1kEGGhyAtg/Ecq3NNqnknDwVTrNBaactEts88OHs5b8Bw/Tof4M+kr4WrwwhoL9n5uRPWhxWwsxPEl+EGNMacP5I8evCPGgVgqKSFgoWCoQqE5hc9WCgYqkBoftGDeSiYz1/+UJLe+foftvh2A2B1fwQIrapkaFoDcK4PVyH0qVnyU4fjGdW4NQ2WlgDE5hLkMoJmQdh9zW9Dk59K5lhtLjyE01TX/jDILP5MGEbvbFPOJroIXvc5PjvTBbx7GM4vAjjd9WdSc2g/IPaqaTv5Aq58haP1TSb2Au20GGErvgTxIqiTAA7tVSnn+2Z9vAXdCsa4bD6Nsf0C/gYA5PMzcW0AAAAASUVORK5CYII=";function Et(l){return P.post({url:"/file/addCate",params:l})}function wt(l){return P.post({url:"/file/editCate",params:l})}function bt(l){return P.post({url:"/file/delCate",params:l})}function Ft(l){return P.get({url:"/file/listCate",params:l})}function At(l){return P.get({url:"/file/lists",params:l})}function xt(l){return P.post({url:"/file/delete",params:l})}function St(l){return P.post({url:"/file/move",params:l})}function Vt(l){return P.post({url:"/file/rename",params:l})}function Dt(l){const F=Z(),k=D([]),r=D(""),v=async()=>{const m=await Ft({page_type:0,type:l}),y=[{name:"\u5168\u90E8",id:""},{name:"\u672A\u5206\u7EC4",id:0}];k.value=m.lists,k.value.unshift(...y),setTimeout(()=>{var f;(f=F.value)==null||f.setCurrentKey(r.value)},0)};return{treeRef:F,cateId:r,cateLists:k,handleAddCate:async m=>{await Et({type:l,name:m,pid:0}),v()},handleEditCate:async(m,y)=>{await wt({id:y,name:m}),v()},handleDeleteCate:async m=>{await Fe.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await bt({id:m}),r.value="",v()},getCateLists:v,handleCatSelect:m=>{r.value=m.id}}}function Bt(l,F,k,r){const v=Z(),x=D("normal"),E=D(0),i=D([]),h=D(!1),m=D(!1),y=Se({name:"",type:F,cid:l}),{pager:f,getLists:L,resetPage:O}=yt({fetchFun:At,params:y,firstLoading:!0,size:r}),U=()=>{L()},H=()=>{O()},ee=u=>!!i.value.find(g=>g.id==u),te=async u=>{await Fe.confirm("\u786E\u8BA4\u5220\u9664\u540E\uFF0C\u672C\u5730\u6216\u4E91\u5B58\u50A8\u6587\u4EF6\u4E5F\u5C06\u540C\u6B65\u5220\u9664\uFF0C\u5982\u6587\u4EF6\u5DF2\u88AB\u4F7F\u7528\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C\uFF01");const g=u||i.value.map(R=>R.id);await xt({ids:g}),U(),C()},z=async()=>{const u=i.value.map(g=>g.id);await St({ids:u,cid:E.value}),E.value=0,U(),C()},I=u=>{const g=i.value.findIndex(R=>R.id==u.id);if(g!=-1){i.value.splice(g,1);return}if(i.value.length==k.value){if(k.value==1){i.value=[],i.value.push(u);return}je.warning("\u5DF2\u8FBE\u5230\u9009\u62E9\u4E0A\u9650");return}i.value.push(u)},C=()=>{i.value=[]};return{listShowType:x,tableRef:v,moveId:E,pager:f,fileParams:y,select:i,isCheckAll:h,isIndeterminate:m,getFileList:U,refresh:H,batchFileDelete:te,batchFileMove:z,selectFile:I,isSelect:ee,clearSelect:C,cancelSelete:u=>{i.value=i.value.filter(g=>g.id!=u)},selectAll:u=>{var g;if(m.value=!1,(g=v.value)==null||g.toggleAllSelection(),u){i.value=[...f.lists];return}C()},handleFileRename:async(u,g)=>{await Vt({id:g,name:u}),U()}}}const Rt=X({props:{uri:{type:String},fileSize:{type:String,default:"100px"},type:{type:String,default:"image"}},emits:["close"]});const zt=["src"],It={key:2,class:"absolute left-1/2 top-1/2 translate-x-[-50%] translate-y-[-50%] rounded-full w-5 h-5 flex justify-center items-center bg-[rgba(0,0,0,0.3)]"};function Pt(l,F,k,r,v,x){const E=Me,i=xe;return s(),c("div",null,[o("div",{class:"file-item relative",style:Ve({height:l.fileSize,width:l.fileSize})},[l.type=="image"?(s(),V(E,{key:0,class:"image",fit:"contain",src:l.uri},null,8,["src"])):l.type=="video"?(s(),c("video",{key:1,class:"video",src:l.uri},null,8,zt)):_("",!0),l.type=="video"?(s(),c("div",It,[n(i,{name:"el-icon-CaretRight",size:18,color:"#fff"})])):_("",!0),rt(l.$slots,"default",{},void 0,!0)],4)])}const ie=Ae(Rt,[["render",Pt],["__scopeId","data-v-5ccc0f84"]]),$t=X({__name:"index",props:{src:{type:String,required:!0},width:String,height:String,poster:String},setup(l,{expose:F}){const k=l,r=Z(),v=Se({color:"var(--el-color-primary)",muted:!1,webFullScreen:!1,speedRate:["0.75","1.0","1.25","1.5","2.0"],autoPlay:!0,loop:!1,mirror:!1,ligthOff:!1,volume:.3,control:!0,title:"",poster:"",...k}),x=()=>{r.value.play()},E=()=>{r.value.pause()},i=f=>{console.log(f,"\u64AD\u653E")},h=f=>{console.log(f,"\u6682\u505C")},m=f=>{console.log(f,"\u65F6\u95F4\u66F4\u65B0")},y=f=>{console.log(f,"\u53EF\u4EE5\u64AD\u653E")};return F({play:x,pause:E}),(f,L)=>(s(),c("div",null,[n(e(Ct),ft({ref_key:"playerRef",ref:r},v,{src:l.src,onPlay:i,onPause:h,onTimeupdate:m,onCanplay:y}),null,16,["src"])]))}}),Tt={key:0},Lt={key:1},Ut=X({__name:"preview",props:{modelValue:{type:Boolean,default:!1},url:{type:String,default:""},type:{type:String,default:"image"}},emits:["update:modelValue"],setup(l,{emit:F}){const k=l,r=Z(),v=De({get(){return k.modelValue},set(i){F("update:modelValue",i)}}),x=()=>{F("update:modelValue",!1)},E=D([]);return K(()=>k.modelValue,i=>{i?we(()=>{var h;E.value=[k.url],(h=r.value)==null||h.play()}):we(()=>{var h;E.value=[],(h=r.value)==null||h.pause()})}),(i,h)=>{const m=Ne,y=$t,f=We;return Q((s(),c("div",null,[l.type=="image"?(s(),c("div",Tt,[e(E).length?(s(),V(m,{key:0,"url-list":e(E),"hide-on-click-modal":"",onClose:x},null,8,["url-list"])):_("",!0)])):_("",!0),l.type=="video"?(s(),c("div",Lt,[n(f,{modelValue:e(v),"onUpdate:modelValue":h[0]||(h[0]=L=>T(v)?v.value=L:null),width:"740px",title:"\u89C6\u9891\u9884\u89C8","before-close":x},{default:a(()=>[n(y,{ref_key:"playerRef",ref:r,src:l.url,width:"100%",height:"450px"},null,8,["src"])]),_:1},8,["modelValue"])])):_("",!0)],512)),[[ue,l.modelValue]])}}}),J=l=>(ht("data-v-9cc1892d"),l=l(),gt(),l),jt={class:"material"},Mt={class:"material__left"},Nt={class:"flex-1 min-h-0"},Wt={class:"material-left__content pt-4 p-b-4"},Gt={class:"flex flex-1 items-center min-w-0 pr-4"},Yt=J(()=>o("img",{class:"w-[20px] h-[16px] mr-3",src:kt},null,-1)),qt={class:"flex-1 truncate mr-2"},Kt=J(()=>o("span",{class:"muted m-r-10"},"\xB7\xB7\xB7",-1)),Qt=["onClick"],Zt={class:"flex justify-center p-2 border-t border-br"},Xt={class:"material__center flex flex-col"},Jt={class:"operate-btn flex"},Ot={class:"flex-1 flex"},Ht=J(()=>o("span",{class:"mr-5"},"\u79FB\u52A8\u6587\u4EF6\u81F3",-1)),el={class:"flex items-center ml-2"},tl={key:0,class:"mt-3"},ll={class:"material-center__content flex flex-col flex-1 mb-1 min-h-0"},nl={class:"file-list flex flex-wrap mt-4"},al={key:0,class:"item-selected"},ol={class:"operation-btns flex items-center"},sl={class:"inline-block"},il={class:"inline-block"},ul={class:"inline-block"},dl={key:1,class:"flex flex-1 justify-center items-center"},cl={class:"material-center__footer flex justify-between items-center mt-2"},rl={class:"flex"},fl={class:"mr-3"},ml=J(()=>o("span",{class:"mr-5"},"\u79FB\u52A8\u6587\u4EF6\u81F3",-1)),pl={key:0,class:"material__right"},_l={class:"flex justify-between p-2 flex-wrap"},vl={class:"sm flex items-center"},hl={key:0},gl={class:"flex-1 min-h-0"},yl={class:"select-lists flex flex-col p-t-3"},Cl={class:"select-item"},kl=X({__name:"index",props:{fileSize:{type:String,default:"100px"},limit:{type:Number,default:1},type:{type:String,default:"image"},mode:{type:String,default:"picker"},pageSize:{type:Number,default:15}},emits:["change"],setup(l,{expose:F,emit:k}){const r=l,{limit:v}=mt(r),x=De(()=>{switch(r.type){case"image":return 10;case"video":return 20;case"file":return 30;default:return 0}}),E=pt("visible"),i=D(""),h=D(!1),{treeRef:m,cateId:y,cateLists:f,handleAddCate:L,handleEditCate:O,handleDeleteCate:U,getCateLists:H,handleCatSelect:ee}=Dt(x.value),{tableRef:te,listShowType:z,moveId:I,pager:C,fileParams:M,select:S,isCheckAll:B,isIndeterminate:u,getFileList:g,refresh:R,batchFileDelete:N,batchFileMove:de,selectFile:le,isSelect:ce,clearSelect:re,cancelSelete:Be,selectAll:fe,handleFileRename:me}=Bt(y,x,v,r.pageSize),pe=async()=>{var A;await H(),(A=m.value)==null||A.setCurrentKey(y.value),g()},ne=A=>{i.value=A,h.value=!0};return K(E,async A=>{A&&pe()},{immediate:!0}),K(y,()=>{M.name="",R()}),K(S,A=>{if(k("change",A),A.length==C.lists.length&&A.length!==0){u.value=!1,B.value=!0;return}A.length>0?u.value=!0:(B.value=!1,u.value=!1)},{deep:!0}),_t(()=>{r.mode=="page"&&pe()}),F({clearSelect:re}),(A,d)=>{const _e=it,ve=Ge,W=ct,Re=Ye,ze=qe,Ie=Ke,ae=Qe,w=He,he=dt,ge=at,ye=et,Ce=ut,G=xe,Pe=tt,ke=lt,oe=nt,Ee=st,j=Ze,$e=Xe,Te=Je,Le=ot,Ue=Oe;return Q((s(),c("div",jt,[o("div",Mt,[o("div",Nt,[n(ae,null,{default:a(()=>[o("div",Wt,[n(Ie,{ref_key:"treeRef",ref:m,"node-key":"id",data:e(f),"empty-text":"''","highlight-current":!0,"expand-on-click-node":!1,"current-node-key":e(y),onNodeClick:e(ee)},{default:a(({data:t})=>[o("div",Gt,[Yt,o("span",qt,[n(_e,{content:t.name},null,8,["content"])]),t.id>0?(s(),V(ze,{key:0,"hide-on-click":!1},{dropdown:a(()=>[n(Re,null,{default:a(()=>[n(W,{onConfirm:b=>e(O)(b,t.id),size:"default",value:t.name,width:"400px",limit:20,"show-limit":"",teleported:""},{default:a(()=>[o("div",null,[n(ve,null,{default:a(()=>[p(" \u547D\u540D\u5206\u7EC4 ")]),_:1})])]),_:2},1032,["onConfirm","value"]),o("div",{onClick:b=>e(U)(t.id)},[n(ve,null,{default:a(()=>[p("\u5220\u9664\u5206\u7EC4")]),_:1})],8,Qt)]),_:2},1024)]),default:a(()=>[Kt]),_:2},1024)):_("",!0)])]),_:1},8,["data","current-node-key","onNodeClick"])])]),_:1})]),o("div",Zt,[n(W,{onConfirm:e(L),size:"default",width:"400px",limit:20,"show-limit":"",teleported:""},{default:a(()=>[n(w,null,{default:a(()=>[p(" \u6DFB\u52A0\u5206\u7EC4 ")]),_:1})]),_:1},8,["onConfirm"])])]),o("div",Xt,[o("div",Jt,[o("div",Ot,[l.type=="image"?(s(),V(he,{key:0,class:"mr-3",data:{cid:e(y)},type:l.type,"show-progress":!0,onChange:e(R)},{default:a(()=>[n(w,{type:"primary"},{default:a(()=>[p("\u672C\u5730\u4E0A\u4F20")]),_:1})]),_:1},8,["data","type","onChange"])):_("",!0),l.type=="video"?(s(),V(he,{key:1,class:"mr-3",data:{cid:e(y)},type:l.type,"show-progress":!0,onChange:e(R)},{default:a(()=>[n(w,{type:"primary"},{default:a(()=>[p("\u672C\u5730\u4E0A\u4F20")]),_:1})]),_:1},8,["data","type","onChange"])):_("",!0),l.mode=="page"?(s(),V(w,{key:2,disabled:!e(S).length,onClick:d[0]||(d[0]=Y(t=>e(N)(),["stop"]))},{default:a(()=>[p(" \u5220\u9664 ")]),_:1},8,["disabled"])):_("",!0),l.mode=="page"?(s(),V(Ce,{key:3,class:"ml-3",onConfirm:e(de),disabled:!e(S).length,title:"\u79FB\u52A8\u6587\u4EF6"},{trigger:a(()=>[n(w,{disabled:!e(S).length},{default:a(()=>[p("\u79FB\u52A8")]),_:1},8,["disabled"])]),default:a(()=>[o("div",null,[Ht,n(ye,{modelValue:e(I),"onUpdate:modelValue":d[1]||(d[1]=t=>T(I)?I.value=t:null),placeholder:"\u8BF7\u9009\u62E9"},{default:a(()=>[(s(!0),c($,null,q(e(f),t=>(s(),c($,{key:t.id},[t.id!==""?(s(),V(ge,{key:0,label:t.name,value:t.id},null,8,["label","value"])):_("",!0)],64))),128))]),_:1},8,["modelValue"])])]),_:1},8,["onConfirm","disabled"])):_("",!0)]),n(Pe,{class:"w-60",placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0",modelValue:e(M).name,"onUpdate:modelValue":d[2]||(d[2]=t=>e(M).name=t),onKeyup:vt(e(R),["enter"])},{append:a(()=>[n(w,{onClick:e(R)},{icon:a(()=>[n(G,{name:"el-icon-Search"})]),_:1},8,["onClick"])]),_:1},8,["modelValue","onKeyup"]),o("div",el,[n(ke,{content:"\u5217\u8868\u89C6\u56FE",placement:"top"},{default:a(()=>[o("div",{class:be(["list-icon",{select:e(z)=="table"}]),onClick:d[3]||(d[3]=t=>z.value="table")},[n(G,{name:"local-icon-list-2",size:18})],2)]),_:1}),n(ke,{content:"\u5E73\u94FA\u89C6\u56FE",placement:"top"},{default:a(()=>[o("div",{class:be(["list-icon",{select:e(z)=="normal"}]),onClick:d[4]||(d[4]=t=>z.value="normal")},[n(G,{name:"el-icon-Menu",size:18})],2)]),_:1})])]),l.mode=="page"?(s(),c("div",tl,[n(oe,{disabled:!e(C).lists.length,modelValue:e(B),"onUpdate:modelValue":d[5]||(d[5]=t=>T(B)?B.value=t:null),onChange:e(fe),indeterminate:e(u)},{default:a(()=>[p(" \u5F53\u9875\u5168\u9009 ")]),_:1},8,["disabled","modelValue","onChange","indeterminate"])])):_("",!0),o("div",ll,[e(C).lists.length?Q((s(),V(ae,{key:0},{default:a(()=>[o("ul",nl,[(s(!0),c($,null,q(e(C).lists,t=>(s(),c("li",{class:"file-item-wrap",key:t.id,style:Ve({width:l.fileSize})},[n(Ee,{onClose:b=>e(N)([t.id])},{default:a(()=>[n(ie,{uri:t.uri,"file-size":l.fileSize,type:l.type,onClick:b=>e(le)(t)},{default:a(()=>[e(ce)(t.id)?(s(),c("div",al,[n(G,{size:24,name:"el-icon-Check",color:"#fff"})])):_("",!0)]),_:2},1032,["uri","file-size","type","onClick"])]),_:2},1032,["onClose"]),n(_e,{class:"mt-1",content:t.name},null,8,["content"]),o("div",ol,[n(W,{onConfirm:b=>e(me)(b,t.id),size:"default",value:t.name,width:"400px",limit:50,"show-limit":"",teleported:""},{default:a(()=>[n(w,{type:"primary",link:""},{default:a(()=>[p(" \u91CD\u547D\u540D ")]),_:1})]),_:2},1032,["onConfirm","value"]),n(w,{type:"primary",link:"",onClick:b=>ne(t.uri)},{default:a(()=>[p(" \u67E5\u770B ")]),_:2},1032,["onClick"])])],4))),128))])]),_:1},512)),[[ue,e(z)=="normal"]]):_("",!0),Q(n(Te,{ref_key:"tableRef",ref:te,class:"mt-4",data:e(C).lists,width:"100%",height:"100%",size:"large",onRowClick:e(le)},{default:a(()=>[n(j,{width:"55"},{default:a(({row:t})=>[n(oe,{modelValue:e(ce)(t.id),onChange:b=>e(le)(t)},null,8,["modelValue","onChange"])]),_:1}),n(j,{label:"\u56FE\u7247",width:"100"},{default:a(({row:t})=>[n(ie,{uri:t.uri,"file-size":"50px",type:l.type},null,8,["uri","type"])]),_:1}),n(j,{label:"\u540D\u79F0","min-width":"100","show-overflow-tooltip":""},{default:a(({row:t})=>[n($e,{onClick:Y(b=>ne(t.uri),["stop"]),underline:!1},{default:a(()=>[p(se(t.name),1)]),_:2},1032,["onClick"])]),_:1}),n(j,{prop:"create_time",label:"\u4E0A\u4F20\u65F6\u95F4","min-width":"100"}),n(j,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:a(({row:t})=>[o("div",sl,[n(W,{onConfirm:b=>e(me)(b,t.id),size:"default",value:t.name,width:"400px",limit:50,"show-limit":"",teleported:""},{default:a(()=>[n(w,{type:"primary",link:""},{default:a(()=>[p(" \u91CD\u547D\u540D ")]),_:1})]),_:2},1032,["onConfirm","value"])]),o("div",il,[n(w,{type:"primary",link:"",onClick:Y(b=>ne(t.uri),["stop"])},{default:a(()=>[p(" \u67E5\u770B ")]),_:2},1032,["onClick"])]),o("div",ul,[n(w,{type:"primary",link:"",onClick:Y(b=>e(N)([t.id]),["stop"])},{default:a(()=>[p(" \u5220\u9664 ")]),_:2},1032,["onClick"])])]),_:1})]),_:1},8,["data","onRowClick"]),[[ue,e(z)=="table"]]),!e(C).loading&&!e(C).lists.length?(s(),c("div",dl," \u6682\u65E0\u6570\u636E~ ")):_("",!0)]),o("div",cl,[o("div",rl,[l.mode=="page"?(s(),c($,{key:0},[o("span",fl,[n(oe,{disabled:!e(C).lists.length,modelValue:e(B),"onUpdate:modelValue":d[6]||(d[6]=t=>T(B)?B.value=t:null),onChange:e(fe),indeterminate:e(u)},{default:a(()=>[p(" \u5F53\u9875\u5168\u9009 ")]),_:1},8,["disabled","modelValue","onChange","indeterminate"])]),n(w,{disabled:!e(S).length,onClick:d[7]||(d[7]=t=>e(N)())},{default:a(()=>[p(" \u5220\u9664 ")]),_:1},8,["disabled"]),n(Ce,{class:"ml-3 inline",onConfirm:e(de),disabled:!e(S).length,title:"\u79FB\u52A8\u6587\u4EF6"},{trigger:a(()=>[n(w,{disabled:!e(S).length},{default:a(()=>[p("\u79FB\u52A8")]),_:1},8,["disabled"])]),default:a(()=>[o("div",null,[ml,n(ye,{modelValue:e(I),"onUpdate:modelValue":d[8]||(d[8]=t=>T(I)?I.value=t:null),placeholder:"\u8BF7\u9009\u62E9"},{default:a(()=>[(s(!0),c($,null,q(e(f),t=>(s(),c($,{key:t.id},[t.id!==""?(s(),V(ge,{key:0,label:t.name,value:t.id},null,8,["label","value"])):_("",!0)],64))),128))]),_:1},8,["modelValue"])])]),_:1},8,["onConfirm","disabled"])],64)):_("",!0)]),n(Le,{modelValue:e(C),"onUpdate:modelValue":d[9]||(d[9]=t=>T(C)?C.value=t:null),onChange:e(g),layout:"total, prev, pager, next, jumper"},null,8,["modelValue","onChange"])])]),l.mode=="picker"?(s(),c("div",pl,[o("div",_l,[o("div",vl,[p(" \u5DF2\u9009\u62E9 "+se(e(S).length)+" ",1),e(v)?(s(),c("span",hl,"/"+se(e(v)),1)):_("",!0)]),n(w,{type:"primary",link:"",onClick:e(re)},{default:a(()=>[p("\u6E05\u7A7A")]),_:1},8,["onClick"])]),o("div",gl,[n(ae,{class:"ls-scrollbar"},{default:a(()=>[o("ul",yl,[(s(!0),c($,null,q(e(S),t=>(s(),c("li",{class:"mb-4",key:t.id},[o("div",Cl,[n(Ee,{onClose:b=>e(Be)(t.id)},{default:a(()=>[n(ie,{uri:t.uri,"file-size":"100px",type:l.type},null,8,["uri","type"])]),_:2},1032,["onClose"])])]))),128))])]),_:1})])])):_("",!0),n(Ut,{modelValue:e(h),"onUpdate:modelValue":d[10]||(d[10]=t=>T(h)?h.value=t:null),url:e(i),type:l.type},null,8,["modelValue","url","type"])])),[[Ue,e(C).loading]])}}});const Rl=Ae(kl,[["__scopeId","data-v-9cc1892d"]]);export{ie as F,Rl as _,Ut as a};