27 lines
20 KiB
Python
27 lines
20 KiB
Python
import{c as P,d as V,a as x,o as h,n as o,e as t,i as L,b as e,E as B,t as l,F as S,x as T,g as F,k as u,y as k,u as N,r as $,l as Q,j as W,p as v,v as w,O as X,m as E,P as D}from"./index-14Tp7zPK.js";import{F as Z}from"./file-CN_5aebv.js";import{T as ee}from"./trash-BTMfj7si.js";/**
|
|
* @license lucide-vue-next v0.535.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const _=P("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
* @license lucide-vue-next v0.535.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const te=P("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
* @license lucide-vue-next v0.535.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const oe=P("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
|
* @license lucide-vue-next v0.535.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const A=P("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
|
|
* @license lucide-vue-next v0.535.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const I=P("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),ae={class:"overflow-x-auto"},ie=V({__name:"DataTable",props:{title:{},headers:{}},setup(z){const y=L("isDarkMode");return(i,a)=>(h(),x("div",{class:o(["rounded-lg shadow-sm overflow-hidden transition-all duration-300",[t(y)?"bg-gray-800 bg-opacity-70":"bg-white"]])},[e("div",{class:o(["px-6 py-4 border-b",[t(y)?"border-gray-700":"border-gray-200"]])},[e("h3",{class:o(["text-lg font-medium",[t(y)?"text-white":"text-gray-800"]])},l(i.title),3)],2),e("div",ae,[e("table",{class:o(["min-w-full divide-y",[t(y)?"divide-gray-700":"divide-gray-200"]])},[e("thead",{class:o([t(y)?"bg-gray-900/50":"bg-gray-50"])},[e("tr",null,[(h(!0),x(S,null,T(i.headers,b=>(h(),x("th",{key:b,class:o(["px-6 py-3.5 text-left text-xs font-medium uppercase tracking-wider",[t(y)?"text-gray-400":"text-gray-500"]])},l(b),3))),128))])],2),e("tbody",{class:o([t(y)?"bg-gray-800/50 divide-y divide-gray-700":"bg-white divide-y divide-gray-200"])},[B(i.$slots,"body")],2)],2)]),B(i.$slots,"footer")],2))}}),se={class:"flex items-center space-x-2"},re=["disabled"],ne={class:"flex items-center space-x-1"},le=["onClick"],de=["disabled"],ge=V({__name:"DataPagination",props:{currentPage:{},pageSize:{},total:{}},emits:["page-change"],setup(z){const y=z,i=L("isDarkMode"),a=F(()=>Math.ceil(y.total/y.pageSize)),b=F(()=>{const d=y.currentPage,p=a.value,g=2,f=[];f.push(1);const c=Math.max(2,d-g),C=Math.min(p-1,d+g);c>2&&f.push("...");for(let m=c;m<=C;m++)f.push(m);return C<p-1&&f.push("..."),p>1&&f.push(p),f});return(d,p)=>(h(),x("div",{class:o(["mt-4 flex items-center justify-between px-6 py-4 border-t",[t(i)?"border-gray-700":"border-gray-200"]])},[e("div",{class:o(["flex items-center text-sm",[t(i)?"text-gray-400":"text-gray-500"]])}," 显示第 "+l((d.currentPage-1)*d.pageSize+1)+" 到 "+l(Math.min(d.currentPage*d.pageSize,d.total))+" 条,共 "+l(d.total)+" 条 ",3),e("div",se,[e("button",{onClick:p[0]||(p[0]=g=>d.$emit("page-change",d.currentPage-1)),disabled:d.currentPage===1,class:o(["inline-flex items-center px-3 py-1.5 rounded-md transition-colors duration-200",[t(i)?d.currentPage===1?"bg-gray-800 text-gray-600 cursor-not-allowed":"bg-gray-800 text-gray-300 hover:bg-gray-700":d.currentPage===1?"bg-gray-100 text-gray-400 cursor-not-allowed":"bg-gray-100 text-gray-700 hover:bg-gray-200"]])},[u(t(oe),{class:"w-4 h-4"}),p[2]||(p[2]=k(" 上一页 ",-1))],10,re),e("div",ne,[(h(!0),x(S,null,T(b.value,g=>(h(),x(S,{key:g},[g!=="..."?(h(),x("button",{key:0,onClick:f=>d.$emit("page-change",g),class:o(["inline-flex items-center px-3 py-1.5 rounded-md transition-colors duration-200",[d.currentPage===g?"bg-indigo-600 text-white":t(i)?"bg-gray-800 text-gray-300 hover:bg-gray-700":"bg-gray-100 text-gray-700 hover:bg-gray-200"]])},l(g),11,le)):(h(),x("span",{key:1,class:o(["px-2",[t(i)?"text-gray-400":"text-gray-500"]])}," ... ",2))],64))),128))]),e("button",{onClick:p[1]||(p[1]=g=>d.$emit("page-change",d.currentPage+1)),disabled:d.currentPage>=a.value,class:o(["inline-flex items-center px-3 py-1.5 rounded-md transition-colors duration-200",[t(i)?d.currentPage>=a.value?"bg-gray-800 text-gray-600 cursor-not-allowed":"bg-gray-800 text-gray-300 hover:bg-gray-700":d.currentPage>=a.value?"bg-gray-100 text-gray-400 cursor-not-allowed":"bg-gray-100 text-gray-700 hover:bg-gray-200"]])},[p[3]||(p[3]=k(" 下一页 ",-1)),u(t(te),{class:"w-4 h-4"})],10,de)])],2))}}),ce={class:"p-6 overflow-y-auto custom-scrollbar"},ue={class:"mb-8"},pe={class:"flex flex-1 gap-4 w-full sm:w-auto"},ye={class:"relative flex-1"},xe=["placeholder"],he={class:"px-6 py-4 whitespace-nowrap"},fe={class:"flex items-center"},me={class:"px-6 py-4"},be={class:"flex items-center group relative"},ve=["title"],we={class:"absolute left-0 -top-2 -translate-y-full opacity-0 group-hover:opacity-100 transition-opacity duration-200 pointer-events-none"},_e={class:"bg-gray-900 text-white text-sm rounded px-2 py-1 max-w-xs break-all"},ke={class:"px-6 py-4 whitespace-nowrap"},Me={class:"px-6 py-4"},Pe={class:"group relative"},Ce={class:"absolute left-0 -top-2 -translate-y-full opacity-0 group-hover:opacity-100 transition-opacity duration-200 pointer-events-none z-10"},$e={class:"bg-gray-900 text-white text-sm rounded px-2 py-1 max-w-xs break-all"},Se={class:"px-6 py-4 whitespace-nowrap"},Fe={class:"px-6 py-4 whitespace-nowrap text-right text-sm font-medium"},ze={class:"flex items-center space-x-2"},je=["onClick"],De=["onClick"],Ve={key:0,class:"fixed inset-0 z-50","aria-labelledby":"modal-title",role:"dialog","aria-modal":"true"},Le={class:"fixed inset-0 z-10 overflow-y-auto"},Te={class:"flex min-h-full items-center justify-center p-4 text-center sm:p-0"},Ue={class:"flex items-center justify-between"},Be={class:"flex items-center space-x-3"},Ee={class:"px-6 py-5"},Ae={class:"grid gap-6"},Ie={class:"space-y-2 group"},He={class:"relative rounded-lg shadow-sm"},Ke=["placeholder"],qe={class:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none transition-opacity duration-200 opacity-0 group-focus-within:opacity-100"},Oe={class:"space-y-2 group"},Re={class:"relative rounded-lg shadow-sm"},Ye=["placeholder"],Ge={class:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none transition-opacity duration-200 opacity-0 group-focus-within:opacity-100"},Je={class:"space-y-2 group"},Ne={class:"relative rounded-lg shadow-sm"},Qe=["placeholder"],We={class:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none transition-opacity duration-200 opacity-0 group-focus-within:opacity-100"},Xe={class:"space-y-2 group"},Ze={class:"relative rounded-lg shadow-sm"},et={class:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none transition-opacity duration-200 opacity-0 group-focus-within:opacity-100"},tt={class:"space-y-2 group"},ot={class:"relative rounded-lg shadow-sm"},at=["placeholder"],it={class:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none transition-opacity duration-200 opacity-0 group-focus-within:opacity-100"},lt=V({__name:"FileManageView",setup(z){function y(r){const n=new Date(r),s=n.getFullYear(),j=(n.getMonth()+1).toString().padStart(2,"0"),R=n.getDate().toString().padStart(2,"0"),Y=n.getHours().toString().padStart(2,"0"),G=n.getMinutes().toString().padStart(2,"0"),J=n.getSeconds().toString().padStart(2,"0");return`${s}-${j}-${R} ${Y}:${G}:${J}`}const{t:i}=N(),a=L("isDarkMode"),b=$([]),d=Q(),p=F(()=>[i("fileManage.headers.code"),i("fileManage.headers.name"),i("fileManage.headers.size"),i("fileManage.headers.description"),i("fileManage.headers.expiration"),i("fileManage.headers.actions")]),g=$({page:1,size:10,total:0,keyword:""}),f=$(!1),c=$({id:null,code:"",prefix:"",suffix:"",expired_at:"",expired_count:null}),C=r=>{c.value={id:r.id,code:r.code,prefix:r.prefix,suffix:r.suffix,expired_at:r.expired_at?r.expired_at.slice(0,16):"",expired_count:r.expired_count},f.value=!0},m=()=>{f.value=!1,c.value={id:null,code:"",prefix:"",suffix:"",expired_at:"",expired_count:null}},H=async()=>{try{await D.updateFile(c.value),await M(),m()}catch(r){const n=r;d.showAlert(n.response?.data?.detail||i("manage.fileManage.updateFailed"),"error")}},K=async r=>{try{await D.deleteAdminFile(r),await M()}catch(n){console.error(i("manage.fileManage.deleteFailed"),n)}},M=async()=>{try{const r=await D.getAdminFileList(g.value);r.detail&&(b.value=r.detail.data,g.value.total=r.detail.total)}catch(r){console.error(i("manage.fileManage.loadFileListFailed"),r)}},q=async r=>{typeof r!="string"&&(r<1||r>O.value||(g.value.page=r,await M()))};M();const O=F(()=>Math.ceil(g.value.total/g.value.size)),U=async()=>{g.value.page=1,await M()};return(r,n)=>(h(),x("div",ce,[e("div",ue,[e("h2",{class:o(["text-2xl font-bold mb-4",[t(a)?"text-white":"text-gray-800"]])},l(t(i)("fileManage.title")),3)]),e("div",{class:o(["mb-6 flex flex-col sm:flex-row gap-4 items-start sm:items-center justify-between bg-opacity-70 p-4 rounded-lg shadow-sm",[t(a)?"bg-gray-800":"bg-white"]])},[e("div",pe,[e("div",ye,[v(e("input",{type:"text","onUpdate:modelValue":n[0]||(n[0]=s=>g.value.keyword=s),onKeyup:X(U,["enter"]),class:o([t(a)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400":"bg-white border-gray-300 text-gray-900 placeholder-gray-400","w-full pl-10 pr-4 py-2.5 rounded-lg border focus:ring-2 focus:ring-indigo-500 focus:border-transparent"]),placeholder:t(i)("fileManage.searchPlaceholder")},null,42,xe),[[w,g.value.keyword]]),u(t(I),{class:o(["absolute left-3 top-3 w-5 h-5",[t(a)?"text-gray-400":"text-gray-500"]])},null,8,["class"])]),e("button",{onClick:U,class:"px-4 py-2.5 rounded-lg inline-flex items-center transition-all duration-200 bg-indigo-600 hover:bg-indigo-700 text-white shadow-sm"},[u(t(I),{class:"w-5 h-5 mr-2"}),k(" "+l(t(i)("common.search")),1)])])],2),u(ie,{title:t(i)("fileManage.allFiles"),headers:p.value},{body:E(()=>[(h(!0),x(S,null,T(b.value,s=>(h(),x("tr",{key:s.id,class:o(["hover:bg-opacity-50 transition-colors duration-200",[t(a)?"hover:bg-gray-700":"hover:bg-gray-50"]])},[e("td",he,[e("div",fe,[e("span",{class:o(["font-medium select-all",[t(a)?"text-white":"text-gray-900"]])},l(s.code),3)])]),e("td",me,[e("div",be,[u(t(Z),{class:o(["w-5 h-5 mr-2 flex-shrink-0",[t(a)?"text-indigo-400":"text-indigo-500"]])},null,8,["class"]),e("span",{class:o(["font-medium truncate max-w-[200px]",[t(a)?"text-white":"text-gray-900"]]),title:s.prefix},l(s.prefix),11,ve),e("div",we,[e("div",_e,l(s.prefix),1)])])]),e("td",ke,[e("span",{class:o(["inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",[t(a)?"bg-gray-700 text-gray-300":"bg-gray-100 text-gray-800"]])},l(Math.round(s.size/1024/1024*100)/100)+"MB ",3)]),e("td",Me,[e("div",Pe,[e("span",{class:o(["block truncate max-w-[250px]",[t(a)?"text-gray-400":"text-gray-500"]])},l(s.text),3),e("div",Ce,[e("div",$e,l(s.text),1)])])]),e("td",Se,[e("span",{class:o(["inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",[s.expired_at?t(a)?"bg-yellow-900/30 text-yellow-400":"bg-yellow-100 text-yellow-800":t(a)?"bg-green-900/30 text-green-400":"bg-green-100 text-green-800"]])},l(s.expired_at?y(s.expired_at):t(i)("send.expiration.units.forever")),3)]),e("td",Fe,[e("div",ze,[e("button",{onClick:j=>C(s),class:o(["inline-flex items-center px-3 py-1.5 rounded-md transition-colors duration-200",[t(a)?"bg-blue-900/20 text-blue-400 hover:bg-blue-900/30":"bg-blue-50 text-blue-600 hover:bg-blue-100"]])},[u(t(A),{class:"w-4 h-4 mr-1.5"}),k(" "+l(t(i)("common.edit")),1)],10,je),e("button",{onClick:j=>K(s.id),class:o(["inline-flex items-center px-3 py-1.5 rounded-md transition-colors duration-200",[t(a)?"bg-red-900/20 text-red-400 hover:bg-red-900/30":"bg-red-50 text-red-600 hover:bg-red-100"]])},[u(t(ee),{class:"w-4 h-4 mr-1.5"}),k(" "+l(t(i)("common.delete")),1)],10,De)])])],2))),128))]),footer:E(()=>[u(ge,{"current-page":g.value.page,"page-size":g.value.size,total:g.value.total,onPageChange:q},null,8,["current-page","page-size","total"])]),_:1},8,["title","headers"]),f.value?(h(),x("div",Ve,[e("div",{class:"fixed inset-0 bg-gradient-to-br from-gray-900/90 to-black/90 backdrop-blur-sm transition-opacity duration-300",onClick:m}),e("div",Le,[e("div",Te,[e("div",{class:o(["relative transform overflow-hidden rounded-2xl text-left shadow-2xl transition-all sm:my-8 sm:w-full sm:max-w-xl animate-modal-scale",[t(a)?"bg-gray-800/95 backdrop-blur-md":"bg-white"]])},[e("div",{class:o(["relative px-6 pt-6 pb-4",[t(a)?"bg-gradient-to-r from-gray-800/50 to-gray-700/50":"bg-gradient-to-r from-gray-50 to-white"]])},[e("div",Ue,[e("div",Be,[e("div",{class:o(["p-2 rounded-lg",[t(a)?"bg-indigo-500/10":"bg-indigo-50"]])},[u(t(A),{class:o(["w-5 h-5",[t(a)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"])],2),e("h3",{class:o(["text-xl font-semibold leading-6",[t(a)?"text-white":"text-gray-900"]])},l(t(i)("fileManage.editFileInfo")),3)]),e("button",{onClick:m,class:o(["rounded-lg p-2 transition-all duration-200 hover:rotate-90",[t(a)?"text-gray-400 hover:text-white hover:bg-white/10":"text-gray-500 hover:text-gray-700 hover:bg-gray-100"]])},[...n[6]||(n[6]=[e("svg",{class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)])],2)])],2),e("div",Ee,[e("div",Ae,[e("div",Ie,[e("label",{class:o(["text-sm font-medium flex items-center space-x-2 transition-colors duration-200",[t(a)?"text-gray-300 group-focus-within:text-indigo-400":"text-gray-700 group-focus-within:text-indigo-600"]])},[e("span",null,l(t(i)("fileManage.form.code")),1),e("div",{class:o(["h-px flex-1 transition-colors duration-200",[t(a)?"bg-gray-700 group-focus-within:bg-indigo-500/50":"bg-gray-200 group-focus-within:bg-indigo-500/30"]])},null,2)],2),e("div",He,[v(e("input",{type:"text","onUpdate:modelValue":n[1]||(n[1]=s=>c.value.code=s),class:o(["block w-full rounded-lg border-0 py-2.5 pl-4 pr-10 transition-all duration-200 focus:ring-2 focus:ring-inset sm:text-sm",[t(a)?"bg-gray-700/50 text-white placeholder-gray-400 focus:ring-indigo-500/50":"bg-gray-50 text-gray-900 placeholder-gray-400 focus:ring-indigo-500"]]),placeholder:t(i)("fileManage.form.codePlaceholder")},null,10,Ke),[[w,c.value.code]]),e("div",qe,[u(t(_),{class:o(["w-5 h-5",[t(a)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"])])])]),e("div",Oe,[e("label",{class:o(["text-sm font-medium flex items-center space-x-2 transition-colors duration-200",[t(a)?"text-gray-300 group-focus-within:text-indigo-400":"text-gray-700 group-focus-within:text-indigo-600"]])},[e("span",null,l(t(i)("fileManage.form.filename")),1),e("div",{class:o(["h-px flex-1 transition-colors duration-200",[t(a)?"bg-gray-700 group-focus-within:bg-indigo-500/50":"bg-gray-200 group-focus-within:bg-indigo-500/30"]])},null,2)],2),e("div",Re,[v(e("input",{type:"text","onUpdate:modelValue":n[2]||(n[2]=s=>c.value.prefix=s),class:o(["block w-full rounded-lg border-0 py-2.5 pl-4 pr-10 transition-all duration-200 focus:ring-2 focus:ring-inset sm:text-sm",[t(a)?"bg-gray-700/50 text-white placeholder-gray-400 focus:ring-indigo-500/50":"bg-gray-50 text-gray-900 placeholder-gray-400 focus:ring-indigo-500"]]),placeholder:t(i)("fileManage.form.filenamePlaceholder")},null,10,Ye),[[w,c.value.prefix]]),e("div",Ge,[u(t(_),{class:o(["w-5 h-5",[t(a)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"])])])]),e("div",Je,[e("label",{class:o(["text-sm font-medium flex items-center space-x-2 transition-colors duration-200",[t(a)?"text-gray-300 group-focus-within:text-indigo-400":"text-gray-700 group-focus-within:text-indigo-600"]])},[e("span",null,l(t(i)("fileManage.form.suffix")),1),e("div",{class:o(["h-px flex-1 transition-colors duration-200",[t(a)?"bg-gray-700 group-focus-within:bg-indigo-500/50":"bg-gray-200 group-focus-within:bg-indigo-500/30"]])},null,2)],2),e("div",Ne,[v(e("input",{type:"text","onUpdate:modelValue":n[3]||(n[3]=s=>c.value.suffix=s),class:o(["block w-full rounded-lg border-0 py-2.5 pl-4 pr-10 transition-all duration-200 focus:ring-2 focus:ring-inset sm:text-sm",[t(a)?"bg-gray-700/50 text-white placeholder-gray-400 focus:ring-indigo-500/50":"bg-gray-50 text-gray-900 placeholder-gray-400 focus:ring-indigo-500"]]),placeholder:t(i)("fileManage.form.suffixPlaceholder")},null,10,Qe),[[w,c.value.suffix]]),e("div",We,[u(t(_),{class:o(["w-5 h-5",[t(a)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"])])])]),e("div",Xe,[e("label",{class:o(["text-sm font-medium flex items-center space-x-2 transition-colors duration-200",[t(a)?"text-gray-300 group-focus-within:text-indigo-400":"text-gray-700 group-focus-within:text-indigo-600"]])},[e("span",null,l(t(i)("send.expiration.label")),1),e("div",{class:o(["h-px flex-1 transition-colors duration-200",[t(a)?"bg-gray-700 group-focus-within:bg-indigo-500/50":"bg-gray-200 group-focus-within:bg-indigo-500/30"]])},null,2)],2),e("div",Ze,[v(e("input",{type:"datetime-local","onUpdate:modelValue":n[4]||(n[4]=s=>c.value.expired_at=s),class:o(["block w-full rounded-lg border-0 py-2.5 pl-4 pr-10 transition-all duration-200 focus:ring-2 focus:ring-inset sm:text-sm",[t(a)?"bg-gray-700/50 text-white placeholder-gray-400 focus:ring-indigo-500/50":"bg-gray-50 text-gray-900 placeholder-gray-400 focus:ring-indigo-500"]])},null,2),[[w,c.value.expired_at]]),e("div",et,[u(t(_),{class:o(["w-5 h-5",[t(a)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"])])])]),e("div",tt,[e("label",{class:o(["text-sm font-medium flex items-center space-x-2 transition-colors duration-200",[t(a)?"text-gray-300 group-focus-within:text-indigo-400":"text-gray-700 group-focus-within:text-indigo-600"]])},[e("span",null,l(t(i)("fileManage.form.downloadLimit")),1),e("div",{class:o(["h-px flex-1 transition-colors duration-200",[t(a)?"bg-gray-700 group-focus-within:bg-indigo-500/50":"bg-gray-200 group-focus-within:bg-indigo-500/30"]])},null,2)],2),e("div",ot,[v(e("input",{type:"number","onUpdate:modelValue":n[5]||(n[5]=s=>c.value.expired_count=s),class:o(["block w-full rounded-lg border-0 py-2.5 pl-4 pr-10 transition-all duration-200 focus:ring-2 focus:ring-inset sm:text-sm",[t(a)?"bg-gray-700/50 text-white placeholder-gray-400 focus:ring-indigo-500/50":"bg-gray-50 text-gray-900 placeholder-gray-400 focus:ring-indigo-500"]]),placeholder:t(i)("fileManage.form.downloadLimitPlaceholder")},null,10,at),[[w,c.value.expired_count]]),e("div",it,[u(t(_),{class:o(["w-5 h-5",[t(a)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"])])])])])]),e("div",{class:o(["flex items-center justify-end gap-3 px-6 py-4 border-t bg-gradient-to-b",[t(a)?"border-gray-700/50 from-gray-800/50 to-gray-800":"border-gray-200 from-gray-50 to-white"]])},[e("button",{onClick:m,class:o(["inline-flex items-center justify-center rounded-lg px-4 py-2.5 text-sm font-medium transition-all duration-200",[t(a)?"bg-gray-700/50 text-gray-300 hover:bg-gray-600/50 hover:text-white":"bg-gray-100 text-gray-700 hover:bg-gray-200"]])},l(t(i)("common.cancel")),3),e("button",{onClick:H,class:"inline-flex items-center justify-center rounded-lg px-4 py-2.5 text-sm font-medium transition-all duration-200 bg-gradient-to-r from-indigo-600 to-indigo-500 hover:from-indigo-500 hover:to-indigo-600 text-white shadow-lg shadow-indigo-500/25 hover:shadow-indigo-500/35"},[u(t(_),{class:"w-4 h-4 mr-2"}),k(" "+l(t(i)("fileManage.saveChanges")),1)])],2)],2)])])])):W("",!0)]))}});export{lt as default};
|