import{l as a,t as s,x as e,dJ as t}from"./utils-lib.js?v=20260328163632";import{u as r}from"./index115.js?v=20260328163632";import{k as o,c as l,r as i,o as m,V as p,_ as n,Y as u}from"./base-lib.js?v=20260328163632";import"./naive-ui.js?v=20260328163632";import"./__commonjsHelpers__.js?v=20260328163632";import"./env-lib.js?v=20260328163632";import"./index88.js?v=20260328163632";const c=o({__name:"index",props:{compData:{default:{}}},setup(o,{expose:c}){const d=o,{favoriteList:f,refreshFilesList:v}=r(),b=l((()=>f.value.map((s=>({label:"默认分类"===s.name?a("默认分类"):s.name,value:s.name}))))),h=i({label:a("收藏分类"),attrs:{labelStyle:"min-width: 100px"},children:[{type:"select",key:"storetype",attrs:{class:"!w-240px",options:b.value,placeholder:a("请选择分类")}}]}),x=i({formAttrs:{labelWidth:"auto"},formItems:[h.value]}),[j,_,y]=s(x);return m((()=>{var a;_.value.storetype=(null==(a=f.value[0])?void 0:a.name)||""})),c({onConfirm:async()=>0===(await e({loading:a("正在添加文件到收藏夹，请稍后..."),request:t({..._.value,path:d.compData.path}),data:{status:Number},message:!0,success:a=>{0===a.status&&(d.compData.refresh&&d.compData.refresh(),v())}})).status}),(a,s)=>(p(),n(u(j),{class:"p-20px"}))}});export{c as default};
