import{_ as h,h as y}from"./index-BTglIPU2.js?v=1773287522785";import{k,R as x,an as C,$ as b,a8 as $,a9 as e,l as P,v as V,a0 as t,_ as m,aa as l,j as o,ao as p}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{k as j,a3 as B,ag as M}from"./naive-ui--dJnpVcV.js?v=1773287522785";const F=k({__name:"index",props:p({logsPath:{type:String,default:""}},{value:{},valueModifiers:{}}),emits:p(["refresh"],["update:value"]),setup(u,{emit:c}){const{t:_}=x(),i=C(u,"value"),f=c,d=n=>{if(n===""){y({title:_("Public.Confirm.Title"),content:_("Viewing all logs may cause the browser to freeze, are you sure you want to continue?"),onConfirm:()=>{i.value=n,f("refresh")}});return}i.value=n,f("refresh")},v=()=>{window.location.href="/files"};return(n,a)=>{const g=h,r=j,s=M,w=B;return b(),$(r,{class:"items-center justify-between! mt-10px flex-nowrap!"},{default:e(()=>[P(t(r,null,{default:e(()=>[m("span",null,l(n.$t("From")),1),t(g,{onClick:v},{default:e(()=>[o(l(u.logsPath),1)]),_:1})]),_:1},512),[[V,u.logsPath]]),t(r,{class:"items-center flex-1 justify-end!"},{default:e(()=>[m("span",null,l(n.$t("Last")),1),t(w,{value:i.value,"onUpdate:value":d},{default:e(()=>[t(s,{value:50},{default:e(()=>a[0]||(a[0]=[o(" 50 ")])),_:1,__:[0]}),t(s,{value:100},{default:e(()=>a[1]||(a[1]=[o(" 100 ")])),_:1,__:[1]}),t(s,{value:500},{default:e(()=>a[2]||(a[2]=[o(" 500 ")])),_:1,__:[2]}),t(s,{value:""},{default:e(()=>[o(l(n.$t("file.recycle.all")),1)]),_:1})]),_:1},8,["value"])]),_:1})]),_:1})}}});export{F as _};
