import{_ as e}from"./index105.js?v=1761009159";import{k as s,l as a,_ as t}from"./utils-lib.js?v=1761009159";import{c as l,s as o,q as n,a6 as i,H as r,v as c,x as p,z as m,y as u,F as d,b0 as f,A as h,D as b,e as x,P as g,Q as j,B as v,I as y,K as _}from"./base-lib.js?v=1761009159";import{aK as k}from"./store.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./files.js?v=1761009159";import"./validator.js?v=1761009159";import"./index106.js?v=1761009159";import"./column.js?v=1761009159";import"./store2.js?v=1761009159";import"./index103.js?v=1761009159";const C={class:"p-20px"},w={class:"flex justify-between"},B={class:"file-selector-head flex items-center"},D={ref:"pathInput",class:"file-selector-input overflow-hidden"},F={key:0,ref:"pathUl",class:"absolute h-[2.8rem] z-1 flex"},P=["onClick"],T={class:"truncate max-w-[8rem]"},I=t(l({__name:"index",setup(t){const l=k(),{compData:I,ossTable:K,isTagMode:S,temporaryPath:V,showPathList:z,tableColumns:H,tableData:L,loading:U}=o(l),{handleSelectionChange:q,temporaryBlur:A,temporaryFocus:E,temporaryEnter:J,goBack:M,filePathJump:Q,watchTableData:$,getDirList:G,$reset:N}=l;return n(()=>{G()}),i(()=>{N()}),(t,l)=>{const o=s,n=a,i=e,k=r("bt-loading");return c(),p("div",C,[m("div",w,[m("div",B,[m("i",{title:"返回上一层",class:"bt-open-icon svgtofont-el-back",onClick:l[0]||(l[0]=(...e)=>u(M)&&u(M)(...e))}),m("div",D,[u(S)?(c(),p("ul",F,[(c(!0),p(d,null,f(u(z),(e,s)=>(c(),p("li",{key:s,onClick:s=>u(Q)(e.path),class:"flex h-full items-center px-4px"},[m("span",T,h(e.title),1),l[4]||(l[4]=m("i",{class:"svgtofont-el-arrow-right ml-4px"},null,-1))],8,P))),128))],512)):b("",!0),x(o,{width:"40rem",readonly:"",onFocus:u(E),onBlur:u(A),onKeyup:l[1]||(l[1]=g(e=>u(J)(e),["enter","native"])),modelValue:u(V),"onUpdate:modelValue":l[2]||(l[2]=e=>j(V)?V.value=e:null)},null,8,["onFocus","onBlur","modelValue"])],512),m("i",{title:"刷新",class:"bt-open-icon svgtofont-el-refresh-right",onClick:l[3]||(l[3]=e=>u(G)())})])]),x(i,null,{content:v(()=>[y(x(n,{ref_key:"ossTable",ref:K,class:_("oss-table oss-".concat(u(I).type)),column:u(H),data:u(L),onSelectionChange:u(q),"empty-text":"(空)",height:"400","max-height":"400"},null,8,["class","column","data","onSelectionChange"]),[[k,u(U)],[k,"正在加载文件列表，请稍后...","title"]])]),popup:v(()=>l[5]||(l[5]=[])),_:1})])}}}),[["__scopeId","data-v-c7b21980"]]);export{I as default};
