From 799b89dada42c4c22884bb7d3e4e5109104ba5e8 Mon Sep 17 00:00:00 2001
From: Lan <hhxk666@gmail.com>
Date: Sun, 24 Nov 2024 22:24:09 +0800
Subject: [PATCH] =?UTF-8?q?fix:=E9=AA=8C=E8=AF=81=E7=A0=81=E5=A4=8D?=
 =?UTF-8?q?=E5=88=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .github/workflows/docker-image.yml                            | 2 +-
 .../{AdminLayout-BlNz_o4U.js => AdminLayout-BBfRqdU7.js}      | 2 +-
 .../{DashboardView-B8vFsqfC.js => DashboardView-DMN1r5C4.js}  | 2 +-
 ...{FileManageView-CzRKUKO2.js => FileManageView-B6HJEg5n.js} | 2 +-
 .../assets/{LoginView-BMK8W77m.js => LoginView-CNbKA-If.js}   | 2 +-
 ...evewFileView-qNNvzoNu.js => RetrievewFileView-CVzgwexs.js} | 2 +-
 fcb-fronted/dist/assets/SendFileView-BlI9awuG.css             | 1 -
 fcb-fronted/dist/assets/SendFileView-D1IOhjmE.css             | 1 +
 .../{SendFileView-Dkh1hDKF.js => SendFileView-DjsGNqez.js}    | 4 ++--
 ...ettingsView-C5ycrk-T.js => SystemSettingsView-CvU75WjY.js} | 2 +-
 ...mmonjsHelpers-BfvhQmQf.js => _commonjsHelpers-DsI9l0Rc.js} | 2 +-
 fcb-fronted/dist/assets/{box-BR3LWkAA.js => box-fk1vZEzO.js}  | 2 +-
 .../dist/assets/{file-DzVUhNo3.js => file-CezeW3my.js}        | 2 +-
 .../dist/assets/{index-42gh9IW1.js => index-b4wH2aDB.js}      | 4 ++--
 .../dist/assets/{trash-C4vprmIc.js => trash-2qdaMQPm.js}      | 2 +-
 fcb-fronted/dist/index.html                                   | 2 +-
 16 files changed, 17 insertions(+), 17 deletions(-)
 rename fcb-fronted/dist/assets/{AdminLayout-BlNz_o4U.js => AdminLayout-BBfRqdU7.js} (98%)
 rename fcb-fronted/dist/assets/{DashboardView-B8vFsqfC.js => DashboardView-DMN1r5C4.js} (98%)
 rename fcb-fronted/dist/assets/{FileManageView-CzRKUKO2.js => FileManageView-B6HJEg5n.js} (98%)
 rename fcb-fronted/dist/assets/{LoginView-BMK8W77m.js => LoginView-CNbKA-If.js} (96%)
 rename fcb-fronted/dist/assets/{RetrievewFileView-qNNvzoNu.js => RetrievewFileView-CVzgwexs.js} (99%)
 delete mode 100644 fcb-fronted/dist/assets/SendFileView-BlI9awuG.css
 create mode 100644 fcb-fronted/dist/assets/SendFileView-D1IOhjmE.css
 rename fcb-fronted/dist/assets/{SendFileView-Dkh1hDKF.js => SendFileView-DjsGNqez.js} (58%)
 rename fcb-fronted/dist/assets/{SystemSettingsView-C5ycrk-T.js => SystemSettingsView-CvU75WjY.js} (99%)
 rename fcb-fronted/dist/assets/{_commonjsHelpers-BfvhQmQf.js => _commonjsHelpers-DsI9l0Rc.js} (99%)
 rename fcb-fronted/dist/assets/{box-BR3LWkAA.js => box-fk1vZEzO.js} (90%)
 rename fcb-fronted/dist/assets/{file-DzVUhNo3.js => file-CezeW3my.js} (88%)
 rename fcb-fronted/dist/assets/{index-42gh9IW1.js => index-b4wH2aDB.js} (99%)
 rename fcb-fronted/dist/assets/{trash-C4vprmIc.js => trash-2qdaMQPm.js} (95%)

diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml
index 7b7a53926..37e916bc4 100644
--- a/.github/workflows/docker-image.yml
+++ b/.github/workflows/docker-image.yml
@@ -41,7 +41,7 @@ jobs:
           context: .
           platforms: linux/amd64,linux/arm64
           push: true
-          tags: ${{ secrets.DOCKER_USERNAME }}/filecodebox:latest
+          tags: ${{ secrets.DOCKER_USERNAME }}/filecodebox:beta
           cache-from: type=local,src=/tmp/.buildx-cache
           cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
       - name: Move cache
diff --git a/fcb-fronted/dist/assets/AdminLayout-BlNz_o4U.js b/fcb-fronted/dist/assets/AdminLayout-BBfRqdU7.js
similarity index 98%
rename from fcb-fronted/dist/assets/AdminLayout-BlNz_o4U.js
rename to fcb-fronted/dist/assets/AdminLayout-BBfRqdU7.js
index e5d34d121..29b47e41c 100644
--- a/fcb-fronted/dist/assets/AdminLayout-BlNz_o4U.js
+++ b/fcb-fronted/dist/assets/AdminLayout-BBfRqdU7.js
@@ -1,4 +1,4 @@
-import{c as i,B as k,r as h,o as u,J as v,p as d,b as x,d as t,n as o,e,f as n,X as w,F as _,x as M,y as C,z,m as L,K as B,L as D,k as F,t as I}from"./index-42gh9IW1.js";import{B as j}from"./box-BR3LWkAA.js";/**
+import{c as i,B as k,r as h,o as u,J as v,p as d,b as x,d as t,n as o,e,f as n,X as w,F as _,x as M,y as C,z,m as L,K as B,L as D,k as F,t as I}from"./index-b4wH2aDB.js";import{B as j}from"./box-fk1vZEzO.js";/**
  * @license lucide-vue-next v0.445.0 - ISC
  *
  * This source code is licensed under the ISC license.
diff --git a/fcb-fronted/dist/assets/DashboardView-B8vFsqfC.js b/fcb-fronted/dist/assets/DashboardView-DMN1r5C4.js
similarity index 98%
rename from fcb-fronted/dist/assets/DashboardView-B8vFsqfC.js
rename to fcb-fronted/dist/assets/DashboardView-DMN1r5C4.js
index d0c49a650..9be58c66a 100644
--- a/fcb-fronted/dist/assets/DashboardView-B8vFsqfC.js
+++ b/fcb-fronted/dist/assets/DashboardView-DMN1r5C4.js
@@ -1,4 +1,4 @@
-import{c as g,B as v,I as w,o as _,p,b as u,d as t,n as a,e,t as r,f as y,F as k,x as U,z as F,A as M,K as z,L as C}from"./index-42gh9IW1.js";import{F as m}from"./file-DzVUhNo3.js";import{H as D,T as S}from"./trash-C4vprmIc.js";/**
+import{c as g,B as v,I as w,o as _,p,b as u,d as t,n as a,e,t as r,f as y,F as k,x as U,z as F,A as M,K as z,L as C}from"./index-b4wH2aDB.js";import{F as m}from"./file-CezeW3my.js";import{H as D,T as S}from"./trash-2qdaMQPm.js";/**
  * @license lucide-vue-next v0.445.0 - ISC
  *
  * This source code is licensed under the ISC license.
diff --git a/fcb-fronted/dist/assets/FileManageView-CzRKUKO2.js b/fcb-fronted/dist/assets/FileManageView-B6HJEg5n.js
similarity index 98%
rename from fcb-fronted/dist/assets/FileManageView-CzRKUKO2.js
rename to fcb-fronted/dist/assets/FileManageView-B6HJEg5n.js
index 9aef1de6b..6e3bffcbe 100644
--- a/fcb-fronted/dist/assets/FileManageView-CzRKUKO2.js
+++ b/fcb-fronted/dist/assets/FileManageView-B6HJEg5n.js
@@ -1,4 +1,4 @@
-import{c as j,B as T,u as A,r as _,a as k,p as c,b as g,d as t,n as o,e as a,h as P,v as q,f as m,k as H,F as v,x as w,t as d,z as I,A as S}from"./index-42gh9IW1.js";import{F as L}from"./file-DzVUhNo3.js";/**
+import{c as j,B as T,u as A,r as _,a as k,p as c,b as g,d as t,n as o,e as a,h as P,v as q,f as m,k as H,F as v,x as w,t as d,z as I,A as S}from"./index-b4wH2aDB.js";import{F as L}from"./file-CezeW3my.js";/**
  * @license lucide-vue-next v0.445.0 - ISC
  *
  * This source code is licensed under the ISC license.
diff --git a/fcb-fronted/dist/assets/LoginView-BMK8W77m.js b/fcb-fronted/dist/assets/LoginView-CNbKA-If.js
similarity index 96%
rename from fcb-fronted/dist/assets/LoginView-BMK8W77m.js
rename to fcb-fronted/dist/assets/LoginView-CNbKA-If.js
index 0043aa701..3788ed4db 100644
--- a/fcb-fronted/dist/assets/LoginView-BMK8W77m.js
+++ b/fcb-fronted/dist/assets/LoginView-CNbKA-If.js
@@ -1 +1 @@
-import{H as y,r as u,B as b,u as v,p as w,b as x,d as e,n as l,e as o,f as h,g as k,h as S,v as A,k as V,t as B,z as D,y as P,A as _,_ as j}from"./index-42gh9IW1.js";import{B as z}from"./box-BR3LWkAA.js";const M=y("adminData",()=>{const d=u(localStorage.getItem("adminPassword")||"");function n(t){d.value=t,localStorage.setItem("token",t)}return{adminPassword:d,updateAdminPwd:n}}),I={class:"mx-auto h-16 w-16 relative"},L={class:"rounded-md shadow-sm -space-y-px"},N=["disabled"],T=b({__name:"LoginView",setup(d){const n=v(),t=u(""),i=u(!1),s=D("isDarkMode"),c=M(),p=()=>{let a=!0;return t.value?t.value.length<6&&(n.showAlert("密码长度至少为6位","error"),a=!1):(n.showAlert("无效的密码","error"),a=!1),a},m=P(),f=async()=>{if(p()){c.updateAdminPwd(t.value),_.post("/admin/login",{password:t.value}).then(()=>{m.push("/admin")}).catch(a=>{n.showAlert(a.response.data.detail,"error")}),i.value=!0;try{await new Promise(a=>setTimeout(a,2e3))}catch{}finally{i.value=!1}}};return(a,r)=>(w(),x("div",{class:l(["min-h-screen flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8 transition-colors duration-200 relative overflow-hidden",o(s)?"bg-gray-900":"bg-gray-50"])},[r[6]||(r[6]=e("div",{class:"absolute inset-0 z-0"},[e("div",{class:"cyber-grid"}),e("div",{class:"floating-particles"})],-1)),e("div",{class:l(["max-w-md w-full space-y-8 backdrop-blur-lg bg-opacity-20 p-8 rounded-xl border border-opacity-20",[o(s)?"bg-gray-800 border-gray-600":"bg-white/70 border-gray-200"]])},[e("div",null,[e("div",I,[r[1]||(r[1]=e("div",{class:"absolute inset-0 bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500 rounded-full animate-spin-slow"},null,-1)),r[2]||(r[2]=e("div",{class:"absolute -inset-2 bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500 rounded-full opacity-50 blur-md animate-pulse"},null,-1)),e("div",{class:l(["absolute inset-1 rounded-full flex items-center justify-center",o(s)?"bg-gray-800":"bg-white"])},[h(o(z),{class:l(["h-8 w-8",o(s)?"text-cyan-400":"text-cyan-600"])},null,8,["class"])],2)]),e("h2",{class:l(["mt-6 text-center text-3xl font-extrabold",o(s)?"text-white":"text-gray-900"])}," 登录 ",2)]),e("form",{class:"mt-8 space-y-6",onSubmit:k(f,["prevent"])},[r[5]||(r[5]=e("input",{type:"hidden",name:"remember",value:"true"},null,-1)),e("div",L,[e("div",null,[r[3]||(r[3]=e("label",{for:"password",class:"sr-only"},"密码",-1)),S(e("input",{id:"password",name:"password",type:"password",autocomplete:"current-password",required:"","onUpdate:modelValue":r[0]||(r[0]=g=>t.value=g),class:l(["appearance-none rounded-t-md relative block w-full px-4 py-3 border transition-all duration-200 placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-cyan-500 focus:border-cyan-500 focus:z-10 sm:text-sm backdrop-blur-sm",o(s)?"bg-gray-800/50 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"bg-white/50 border-gray-300 text-gray-900 hover:border-gray-400"]),placeholder:"密码"},null,2),[[A,t.value]])])]),e("div",null,[e("button",{type:"submit",class:l(["group relative w-full flex justify-center py-3 px-4 border border-transparent text-sm font-medium rounded-md text-white transition-all duration-300 transform hover:scale-[1.02] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-cyan-500 shadow-lg hover:shadow-cyan-500/50",o(s)?"bg-gradient-to-r from-cyan-500 to-purple-500 hover:from-cyan-600 hover:to-purple-600":"bg-gradient-to-r from-cyan-600 to-purple-600 hover:from-cyan-700 hover:to-purple-700",i.value?"opacity-75 cursor-not-allowed":""]),disabled:i.value},[r[4]||(r[4]=e("span",{class:"absolute left-0 inset-y-0 flex items-center pl-3"},null,-1)),V(" "+B(i.value?"登录中...":"登录"),1)],10,N)])],32)],2)],2))}}),E=j(T,[["__scopeId","data-v-2e50c3fa"]]);export{E as default};
+import{H as y,r as u,B as b,u as v,p as w,b as x,d as e,n as l,e as o,f as h,g as k,h as S,v as A,k as V,t as B,z as D,y as P,A as _,_ as j}from"./index-b4wH2aDB.js";import{B as z}from"./box-fk1vZEzO.js";const M=y("adminData",()=>{const d=u(localStorage.getItem("adminPassword")||"");function n(t){d.value=t,localStorage.setItem("token",t)}return{adminPassword:d,updateAdminPwd:n}}),I={class:"mx-auto h-16 w-16 relative"},L={class:"rounded-md shadow-sm -space-y-px"},N=["disabled"],T=b({__name:"LoginView",setup(d){const n=v(),t=u(""),i=u(!1),s=D("isDarkMode"),c=M(),p=()=>{let a=!0;return t.value?t.value.length<6&&(n.showAlert("密码长度至少为6位","error"),a=!1):(n.showAlert("无效的密码","error"),a=!1),a},m=P(),f=async()=>{if(p()){c.updateAdminPwd(t.value),_.post("/admin/login",{password:t.value}).then(()=>{m.push("/admin")}).catch(a=>{n.showAlert(a.response.data.detail,"error")}),i.value=!0;try{await new Promise(a=>setTimeout(a,2e3))}catch{}finally{i.value=!1}}};return(a,r)=>(w(),x("div",{class:l(["min-h-screen flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8 transition-colors duration-200 relative overflow-hidden",o(s)?"bg-gray-900":"bg-gray-50"])},[r[6]||(r[6]=e("div",{class:"absolute inset-0 z-0"},[e("div",{class:"cyber-grid"}),e("div",{class:"floating-particles"})],-1)),e("div",{class:l(["max-w-md w-full space-y-8 backdrop-blur-lg bg-opacity-20 p-8 rounded-xl border border-opacity-20",[o(s)?"bg-gray-800 border-gray-600":"bg-white/70 border-gray-200"]])},[e("div",null,[e("div",I,[r[1]||(r[1]=e("div",{class:"absolute inset-0 bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500 rounded-full animate-spin-slow"},null,-1)),r[2]||(r[2]=e("div",{class:"absolute -inset-2 bg-gradient-to-r from-cyan-500 via-purple-500 to-pink-500 rounded-full opacity-50 blur-md animate-pulse"},null,-1)),e("div",{class:l(["absolute inset-1 rounded-full flex items-center justify-center",o(s)?"bg-gray-800":"bg-white"])},[h(o(z),{class:l(["h-8 w-8",o(s)?"text-cyan-400":"text-cyan-600"])},null,8,["class"])],2)]),e("h2",{class:l(["mt-6 text-center text-3xl font-extrabold",o(s)?"text-white":"text-gray-900"])}," 登录 ",2)]),e("form",{class:"mt-8 space-y-6",onSubmit:k(f,["prevent"])},[r[5]||(r[5]=e("input",{type:"hidden",name:"remember",value:"true"},null,-1)),e("div",L,[e("div",null,[r[3]||(r[3]=e("label",{for:"password",class:"sr-only"},"密码",-1)),S(e("input",{id:"password",name:"password",type:"password",autocomplete:"current-password",required:"","onUpdate:modelValue":r[0]||(r[0]=g=>t.value=g),class:l(["appearance-none rounded-t-md relative block w-full px-4 py-3 border transition-all duration-200 placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-cyan-500 focus:border-cyan-500 focus:z-10 sm:text-sm backdrop-blur-sm",o(s)?"bg-gray-800/50 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"bg-white/50 border-gray-300 text-gray-900 hover:border-gray-400"]),placeholder:"密码"},null,2),[[A,t.value]])])]),e("div",null,[e("button",{type:"submit",class:l(["group relative w-full flex justify-center py-3 px-4 border border-transparent text-sm font-medium rounded-md text-white transition-all duration-300 transform hover:scale-[1.02] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-cyan-500 shadow-lg hover:shadow-cyan-500/50",o(s)?"bg-gradient-to-r from-cyan-500 to-purple-500 hover:from-cyan-600 hover:to-purple-600":"bg-gradient-to-r from-cyan-600 to-purple-600 hover:from-cyan-700 hover:to-purple-700",i.value?"opacity-75 cursor-not-allowed":""]),disabled:i.value},[r[4]||(r[4]=e("span",{class:"absolute left-0 inset-y-0 flex items-center pl-3"},null,-1)),V(" "+B(i.value?"登录中...":"登录"),1)],10,N)])],32)],2)],2))}}),E=j(T,[["__scopeId","data-v-2e50c3fa"]]);export{E as default};
diff --git a/fcb-fronted/dist/assets/RetrievewFileView-qNNvzoNu.js b/fcb-fronted/dist/assets/RetrievewFileView-CVzgwexs.js
similarity index 99%
rename from fcb-fronted/dist/assets/RetrievewFileView-qNNvzoNu.js
rename to fcb-fronted/dist/assets/RetrievewFileView-CVzgwexs.js
index d6b884903..0ee2e33e9 100644
--- a/fcb-fronted/dist/assets/RetrievewFileView-qNNvzoNu.js
+++ b/fcb-fronted/dist/assets/RetrievewFileView-CVzgwexs.js
@@ -1,4 +1,4 @@
-var qe=Object.defineProperty;var De=(d,e,t)=>e in d?qe(d,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):d[e]=t;var v=(d,e,t)=>De(d,typeof e!="symbol"?e+"":e,t);import{c as _e,_ as Pe,u as Fe,s as Ze,r as q,o as Oe,w as Ue,a as Qe,b as I,d as p,n as k,e as f,f as _,g as He,h as Ne,v as Ve,i as Y,t as D,j as U,k as Z,T as oe,l as Ge,m as Xe,p as C,X as ge,q as We,F as Ke,x as Je,y as Ye,z as et,A as tt}from"./index-42gh9IW1.js";import{c as Q,u as nt,S as st,C as it,a as rt,Q as ot,E as lt}from"./_commonjsHelpers-BfvhQmQf.js";import{B as at}from"./box-BR3LWkAA.js";import{F as xe}from"./file-DzVUhNo3.js";import{H as ct,T as ut}from"./trash-C4vprmIc.js";/**
+var qe=Object.defineProperty;var De=(d,e,t)=>e in d?qe(d,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):d[e]=t;var v=(d,e,t)=>De(d,typeof e!="symbol"?e+"":e,t);import{c as _e,_ as Pe,u as Fe,s as Ze,r as q,o as Oe,w as Ue,a as Qe,b as I,d as p,n as k,e as f,f as _,g as He,h as Ne,v as Ve,i as Y,t as D,j as U,k as Z,T as oe,l as Ge,m as Xe,p as C,X as ge,q as We,F as Ke,x as Je,y as Ye,z as et,A as tt}from"./index-b4wH2aDB.js";import{c as Q,u as nt,S as st,C as it,a as rt,Q as ot,E as lt}from"./_commonjsHelpers-DsI9l0Rc.js";import{B as at}from"./box-fk1vZEzO.js";import{F as xe}from"./file-CezeW3my.js";import{H as ct,T as ut}from"./trash-2qdaMQPm.js";/**
  * @license lucide-vue-next v0.445.0 - ISC
  *
  * This source code is licensed under the ISC license.
diff --git a/fcb-fronted/dist/assets/SendFileView-BlI9awuG.css b/fcb-fronted/dist/assets/SendFileView-BlI9awuG.css
deleted file mode 100644
index 3d12cbfef..000000000
--- a/fcb-fronted/dist/assets/SendFileView-BlI9awuG.css
+++ /dev/null
@@ -1 +0,0 @@
-.border-progress-container[data-v-2fbf5085]{position:relative;width:100%;height:100%}.border-progress-canvas[data-v-2fbf5085]{position:absolute;top:0;left:0;width:100%;height:100%;transition:all .3s ease}.fade-enter-active[data-v-8bb86630],.fade-leave-active[data-v-8bb86630]{transition:opacity .3s ease,transform .3s ease}.fade-enter-from[data-v-8bb86630],.fade-leave-to[data-v-8bb86630]{opacity:0;transform:translateY(10px)}@media (min-width: 640px){.sm\:w-120[data-v-8bb86630]{width:30rem}}.fade-enter-to[data-v-8bb86630],.fade-leave-from[data-v-8bb86630]{opacity:1;transform:translateY(0)}.drawer-enter-active[data-v-8bb86630],.drawer-leave-active[data-v-8bb86630]{transition:transform .3s ease}.drawer-enter-from[data-v-8bb86630],.drawer-leave-to[data-v-8bb86630]{transform:translate(100%)}.list-enter-active[data-v-8bb86630],.list-leave-active[data-v-8bb86630]{transition:all .5s ease}.list-enter-from[data-v-8bb86630],.list-leave-to[data-v-8bb86630]{opacity:0;transform:translate(30px)}
diff --git a/fcb-fronted/dist/assets/SendFileView-D1IOhjmE.css b/fcb-fronted/dist/assets/SendFileView-D1IOhjmE.css
new file mode 100644
index 000000000..10a130656
--- /dev/null
+++ b/fcb-fronted/dist/assets/SendFileView-D1IOhjmE.css
@@ -0,0 +1 @@
+.border-progress-container[data-v-2fbf5085]{position:relative;width:100%;height:100%}.border-progress-canvas[data-v-2fbf5085]{position:absolute;top:0;left:0;width:100%;height:100%;transition:all .3s ease}.fade-enter-active[data-v-675446d2],.fade-leave-active[data-v-675446d2]{transition:opacity .3s ease,transform .3s ease}.fade-enter-from[data-v-675446d2],.fade-leave-to[data-v-675446d2]{opacity:0;transform:translateY(10px)}@media (min-width: 640px){.sm\:w-120[data-v-675446d2]{width:30rem}}.fade-enter-to[data-v-675446d2],.fade-leave-from[data-v-675446d2]{opacity:1;transform:translateY(0)}.drawer-enter-active[data-v-675446d2],.drawer-leave-active[data-v-675446d2]{transition:transform .3s ease}.drawer-enter-from[data-v-675446d2],.drawer-leave-to[data-v-675446d2]{transform:translate(100%)}.list-enter-active[data-v-675446d2],.list-leave-active[data-v-675446d2]{transition:all .5s ease}.list-enter-from[data-v-675446d2],.list-leave-to[data-v-675446d2]{opacity:0;transform:translate(30px)}
diff --git a/fcb-fronted/dist/assets/SendFileView-Dkh1hDKF.js b/fcb-fronted/dist/assets/SendFileView-DjsGNqez.js
similarity index 58%
rename from fcb-fronted/dist/assets/SendFileView-Dkh1hDKF.js
rename to fcb-fronted/dist/assets/SendFileView-DjsGNqez.js
index bc3c66277..7e4ea1f38 100644
--- a/fcb-fronted/dist/assets/SendFileView-Dkh1hDKF.js
+++ b/fcb-fronted/dist/assets/SendFileView-DjsGNqez.js
@@ -1,4 +1,4 @@
-import{c as W,B as re,r as T,o as oe,w as he,p as F,b as $,d as i,_ as ne,u as pe,a as ge,n as h,e as l,g as G,f as C,j as N,i as E,t as P,h as J,v as ee,T as K,C as ye,D as ve,k as j,X as be,q as xe,F as me,x as we,y as _e,z as Ce,A as Ae,m as Se}from"./index-42gh9IW1.js";import{g as Me,u as Be,S as Te,C as Ie,a as ke,Q as Ue,E as De}from"./_commonjsHelpers-BfvhQmQf.js";import{F as te}from"./file-DzVUhNo3.js";import{H as Fe,T as $e}from"./trash-C4vprmIc.js";/**
+import{c as W,B as te,r as T,o as re,w as he,p as F,b as $,d as i,_ as oe,u as pe,a as ge,n as h,e as l,g as G,f as C,j as N,i as E,t as P,h as J,v as Z,T as K,C as ye,D as ve,k as j,X as be,q as xe,F as me,x as we,y as _e,z as Ce,A as Ae,m as Se}from"./index-b4wH2aDB.js";import{g as Me,u as Be,S as Te,C as Ie,a as ke,Q as Ue,E as De}from"./_commonjsHelpers-DsI9l0Rc.js";import{F as ee}from"./file-CezeW3my.js";import{H as Fe,T as $e}from"./trash-2qdaMQPm.js";/**
  * @license lucide-vue-next v0.445.0 - ISC
  *
  * This source code is licensed under the ISC license.
@@ -18,4 +18,4 @@ import{c as W,B as re,r as T,o as oe,w as he,p as F,b as $,d as i,_ as ne,u as p
  *
  * This source code is licensed under the ISC license.
  * See the LICENSE file in the root directory of this source tree.
- */const je=W("SendIcon",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]),Re=re({__name:"BorderProgressBar",props:{progress:{}},setup(q){const R=q,c=T(null),B=T(null);let d=null;const _=()=>{if(!d||!B.value||!c.value)return;const w=c.value.clientWidth,y=c.value.clientHeight;B.value.width=w,B.value.height=y;const v=4,u=8;d.lineWidth=v;const A=d.createLinearGradient(0,0,w,y);A.addColorStop(0,"#4f46e5"),A.addColorStop(.5,"#7c3aed"),A.addColorStop(1,"#db2777"),d.strokeStyle="rgba(229, 231, 235, 0.2)",U(d,v/2,v/2,w-v,y-v,u),d.stroke();const M=((w+y)*2-8*u+2*Math.PI*u)*R.progress/100;d.strokeStyle=A,d.lineCap="round",d.lineJoin="round",d.beginPath();let m=M;const b=v/2,g=w-v,a=y-v;if(m>0){const n=Math.min(g-2*u,m);d.moveTo(u+b,b),d.lineTo(n+u+b,b),m-=n}if(m>0){const n=Math.min(Math.PI/2,m/u);d.arc(g-u+b,u+b,u,-Math.PI/2,n-Math.PI/2,!1),m-=n*u}if(m>0){const n=Math.min(a-2*u,m);d.lineTo(g+b,n+u+b),m-=n}if(m>0){const n=Math.min(Math.PI/2,m/u);d.arc(g-u+b,a-u+b,u,0,n,!1),m-=n*u}if(m>0){const n=Math.min(g-2*u,m);d.lineTo(g-n-u+b,a+b),m-=n}if(m>0){const n=Math.min(Math.PI/2,m/u);d.arc(u+b,a-u+b,u,Math.PI/2,Math.PI/2+n,!1),m-=n*u}if(m>0){const n=Math.min(a-2*u,m);d.lineTo(b,a-n-u+b),m-=n}if(m>0){const n=Math.min(Math.PI/2,m/u);d.arc(u+b,u+b,u,Math.PI,Math.PI+n,!1)}d.stroke()};function U(w,y,v,u,A,x){w.beginPath(),w.moveTo(y+x,v),w.lineTo(y+u-x,v),w.arcTo(y+u,v,y+u,v+x,x),w.lineTo(y+u,v+A-x),w.arcTo(y+u,v+A,y+u-x,v+A,x),w.lineTo(y+x,v+A),w.arcTo(y,v+A,y,v+A-x,x),w.lineTo(y,v+x),w.arcTo(y,v,y+x,v,x),w.closePath()}return oe(()=>{B.value&&(d=B.value.getContext("2d"),_())}),he(()=>R.progress,_),(w,y)=>(F(),$("div",{class:"border-progress-container",ref_key:"container",ref:c},[i("canvas",{ref_key:"canvas",ref:B,class:"border-progress-canvas"},null,512)],512))}}),Ve=ne(Re,[["__scopeId","data-v-2fbf5085"]]);var ae={exports:{}};(function(q,R){(function(c){q.exports=c()})(function(c){var B=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function d(a,n){var t=a[0],e=a[1],o=a[2],r=a[3];t+=(e&o|~e&r)+n[0]-680876936|0,t=(t<<7|t>>>25)+e|0,r+=(t&e|~t&o)+n[1]-389564586|0,r=(r<<12|r>>>20)+t|0,o+=(r&t|~r&e)+n[2]+606105819|0,o=(o<<17|o>>>15)+r|0,e+=(o&r|~o&t)+n[3]-1044525330|0,e=(e<<22|e>>>10)+o|0,t+=(e&o|~e&r)+n[4]-176418897|0,t=(t<<7|t>>>25)+e|0,r+=(t&e|~t&o)+n[5]+1200080426|0,r=(r<<12|r>>>20)+t|0,o+=(r&t|~r&e)+n[6]-1473231341|0,o=(o<<17|o>>>15)+r|0,e+=(o&r|~o&t)+n[7]-45705983|0,e=(e<<22|e>>>10)+o|0,t+=(e&o|~e&r)+n[8]+1770035416|0,t=(t<<7|t>>>25)+e|0,r+=(t&e|~t&o)+n[9]-1958414417|0,r=(r<<12|r>>>20)+t|0,o+=(r&t|~r&e)+n[10]-42063|0,o=(o<<17|o>>>15)+r|0,e+=(o&r|~o&t)+n[11]-1990404162|0,e=(e<<22|e>>>10)+o|0,t+=(e&o|~e&r)+n[12]+1804603682|0,t=(t<<7|t>>>25)+e|0,r+=(t&e|~t&o)+n[13]-40341101|0,r=(r<<12|r>>>20)+t|0,o+=(r&t|~r&e)+n[14]-1502002290|0,o=(o<<17|o>>>15)+r|0,e+=(o&r|~o&t)+n[15]+1236535329|0,e=(e<<22|e>>>10)+o|0,t+=(e&r|o&~r)+n[1]-165796510|0,t=(t<<5|t>>>27)+e|0,r+=(t&o|e&~o)+n[6]-1069501632|0,r=(r<<9|r>>>23)+t|0,o+=(r&e|t&~e)+n[11]+643717713|0,o=(o<<14|o>>>18)+r|0,e+=(o&t|r&~t)+n[0]-373897302|0,e=(e<<20|e>>>12)+o|0,t+=(e&r|o&~r)+n[5]-701558691|0,t=(t<<5|t>>>27)+e|0,r+=(t&o|e&~o)+n[10]+38016083|0,r=(r<<9|r>>>23)+t|0,o+=(r&e|t&~e)+n[15]-660478335|0,o=(o<<14|o>>>18)+r|0,e+=(o&t|r&~t)+n[4]-405537848|0,e=(e<<20|e>>>12)+o|0,t+=(e&r|o&~r)+n[9]+568446438|0,t=(t<<5|t>>>27)+e|0,r+=(t&o|e&~o)+n[14]-1019803690|0,r=(r<<9|r>>>23)+t|0,o+=(r&e|t&~e)+n[3]-187363961|0,o=(o<<14|o>>>18)+r|0,e+=(o&t|r&~t)+n[8]+1163531501|0,e=(e<<20|e>>>12)+o|0,t+=(e&r|o&~r)+n[13]-1444681467|0,t=(t<<5|t>>>27)+e|0,r+=(t&o|e&~o)+n[2]-51403784|0,r=(r<<9|r>>>23)+t|0,o+=(r&e|t&~e)+n[7]+1735328473|0,o=(o<<14|o>>>18)+r|0,e+=(o&t|r&~t)+n[12]-1926607734|0,e=(e<<20|e>>>12)+o|0,t+=(e^o^r)+n[5]-378558|0,t=(t<<4|t>>>28)+e|0,r+=(t^e^o)+n[8]-2022574463|0,r=(r<<11|r>>>21)+t|0,o+=(r^t^e)+n[11]+1839030562|0,o=(o<<16|o>>>16)+r|0,e+=(o^r^t)+n[14]-35309556|0,e=(e<<23|e>>>9)+o|0,t+=(e^o^r)+n[1]-1530992060|0,t=(t<<4|t>>>28)+e|0,r+=(t^e^o)+n[4]+1272893353|0,r=(r<<11|r>>>21)+t|0,o+=(r^t^e)+n[7]-155497632|0,o=(o<<16|o>>>16)+r|0,e+=(o^r^t)+n[10]-1094730640|0,e=(e<<23|e>>>9)+o|0,t+=(e^o^r)+n[13]+681279174|0,t=(t<<4|t>>>28)+e|0,r+=(t^e^o)+n[0]-358537222|0,r=(r<<11|r>>>21)+t|0,o+=(r^t^e)+n[3]-722521979|0,o=(o<<16|o>>>16)+r|0,e+=(o^r^t)+n[6]+76029189|0,e=(e<<23|e>>>9)+o|0,t+=(e^o^r)+n[9]-640364487|0,t=(t<<4|t>>>28)+e|0,r+=(t^e^o)+n[12]-421815835|0,r=(r<<11|r>>>21)+t|0,o+=(r^t^e)+n[15]+530742520|0,o=(o<<16|o>>>16)+r|0,e+=(o^r^t)+n[2]-995338651|0,e=(e<<23|e>>>9)+o|0,t+=(o^(e|~r))+n[0]-198630844|0,t=(t<<6|t>>>26)+e|0,r+=(e^(t|~o))+n[7]+1126891415|0,r=(r<<10|r>>>22)+t|0,o+=(t^(r|~e))+n[14]-1416354905|0,o=(o<<15|o>>>17)+r|0,e+=(r^(o|~t))+n[5]-57434055|0,e=(e<<21|e>>>11)+o|0,t+=(o^(e|~r))+n[12]+1700485571|0,t=(t<<6|t>>>26)+e|0,r+=(e^(t|~o))+n[3]-1894986606|0,r=(r<<10|r>>>22)+t|0,o+=(t^(r|~e))+n[10]-1051523|0,o=(o<<15|o>>>17)+r|0,e+=(r^(o|~t))+n[1]-2054922799|0,e=(e<<21|e>>>11)+o|0,t+=(o^(e|~r))+n[8]+1873313359|0,t=(t<<6|t>>>26)+e|0,r+=(e^(t|~o))+n[15]-30611744|0,r=(r<<10|r>>>22)+t|0,o+=(t^(r|~e))+n[6]-1560198380|0,o=(o<<15|o>>>17)+r|0,e+=(r^(o|~t))+n[13]+1309151649|0,e=(e<<21|e>>>11)+o|0,t+=(o^(e|~r))+n[4]-145523070|0,t=(t<<6|t>>>26)+e|0,r+=(e^(t|~o))+n[11]-1120210379|0,r=(r<<10|r>>>22)+t|0,o+=(t^(r|~e))+n[2]+718787259|0,o=(o<<15|o>>>17)+r|0,e+=(r^(o|~t))+n[9]-343485551|0,e=(e<<21|e>>>11)+o|0,a[0]=t+a[0]|0,a[1]=e+a[1]|0,a[2]=o+a[2]|0,a[3]=r+a[3]|0}function _(a){var n=[],t;for(t=0;t<64;t+=4)n[t>>2]=a.charCodeAt(t)+(a.charCodeAt(t+1)<<8)+(a.charCodeAt(t+2)<<16)+(a.charCodeAt(t+3)<<24);return n}function U(a){var n=[],t;for(t=0;t<64;t+=4)n[t>>2]=a[t]+(a[t+1]<<8)+(a[t+2]<<16)+(a[t+3]<<24);return n}function w(a){var n=a.length,t=[1732584193,-271733879,-1732584194,271733878],e,o,r,S,D,z;for(e=64;e<=n;e+=64)d(t,_(a.substring(e-64,e)));for(a=a.substring(e-64),o=a.length,r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;e<o;e+=1)r[e>>2]|=a.charCodeAt(e)<<(e%4<<3);if(r[e>>2]|=128<<(e%4<<3),e>55)for(d(t,r),e=0;e<16;e+=1)r[e]=0;return S=n*8,S=S.toString(16).match(/(.*?)(.{0,8})$/),D=parseInt(S[2],16),z=parseInt(S[1],16)||0,r[14]=D,r[15]=z,d(t,r),t}function y(a){var n=a.length,t=[1732584193,-271733879,-1732584194,271733878],e,o,r,S,D,z;for(e=64;e<=n;e+=64)d(t,U(a.subarray(e-64,e)));for(a=e-64<n?a.subarray(e-64):new Uint8Array(0),o=a.length,r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;e<o;e+=1)r[e>>2]|=a[e]<<(e%4<<3);if(r[e>>2]|=128<<(e%4<<3),e>55)for(d(t,r),e=0;e<16;e+=1)r[e]=0;return S=n*8,S=S.toString(16).match(/(.*?)(.{0,8})$/),D=parseInt(S[2],16),z=parseInt(S[1],16)||0,r[14]=D,r[15]=z,d(t,r),t}function v(a){var n="",t;for(t=0;t<4;t+=1)n+=B[a>>t*8+4&15]+B[a>>t*8&15];return n}function u(a){var n;for(n=0;n<a.length;n+=1)a[n]=v(a[n]);return a.join("")}u(w("hello")),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&function(){function a(n,t){return n=n|0||0,n<0?Math.max(n+t,0):Math.min(n,t)}ArrayBuffer.prototype.slice=function(n,t){var e=this.byteLength,o=a(n,e),r=e,S,D,z,V;return t!==c&&(r=a(t,e)),o>r?new ArrayBuffer(0):(S=r-o,D=new ArrayBuffer(S),z=new Uint8Array(D),V=new Uint8Array(this,o,S),z.set(V),D)}}();function A(a){return/[\u0080-\uFFFF]/.test(a)&&(a=unescape(encodeURIComponent(a))),a}function x(a,n){var t=a.length,e=new ArrayBuffer(t),o=new Uint8Array(e),r;for(r=0;r<t;r+=1)o[r]=a.charCodeAt(r);return n?o:e}function M(a){return String.fromCharCode.apply(null,new Uint8Array(a))}function m(a,n,t){var e=new Uint8Array(a.byteLength+n.byteLength);return e.set(new Uint8Array(a)),e.set(new Uint8Array(n),a.byteLength),e}function b(a){var n=[],t=a.length,e;for(e=0;e<t-1;e+=2)n.push(parseInt(a.substr(e,2),16));return String.fromCharCode.apply(String,n)}function g(){this.reset()}return g.prototype.append=function(a){return this.appendBinary(A(a)),this},g.prototype.appendBinary=function(a){this._buff+=a,this._length+=a.length;var n=this._buff.length,t;for(t=64;t<=n;t+=64)d(this._hash,_(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},g.prototype.end=function(a){var n=this._buff,t=n.length,e,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],r;for(e=0;e<t;e+=1)o[e>>2]|=n.charCodeAt(e)<<(e%4<<3);return this._finish(o,t),r=u(this._hash),a&&(r=b(r)),this.reset(),r},g.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},g.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},g.prototype.setState=function(a){return this._buff=a.buff,this._length=a.length,this._hash=a.hash,this},g.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},g.prototype._finish=function(a,n){var t=n,e,o,r;if(a[t>>2]|=128<<(t%4<<3),t>55)for(d(this._hash,a),t=0;t<16;t+=1)a[t]=0;e=this._length*8,e=e.toString(16).match(/(.*?)(.{0,8})$/),o=parseInt(e[2],16),r=parseInt(e[1],16)||0,a[14]=o,a[15]=r,d(this._hash,a)},g.hash=function(a,n){return g.hashBinary(A(a),n)},g.hashBinary=function(a,n){var t=w(a),e=u(t);return n?b(e):e},g.ArrayBuffer=function(){this.reset()},g.ArrayBuffer.prototype.append=function(a){var n=m(this._buff.buffer,a),t=n.length,e;for(this._length+=a.byteLength,e=64;e<=t;e+=64)d(this._hash,U(n.subarray(e-64,e)));return this._buff=e-64<t?new Uint8Array(n.buffer.slice(e-64)):new Uint8Array(0),this},g.ArrayBuffer.prototype.end=function(a){var n=this._buff,t=n.length,e=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],o,r;for(o=0;o<t;o+=1)e[o>>2]|=n[o]<<(o%4<<3);return this._finish(e,t),r=u(this._hash),a&&(r=b(r)),this.reset(),r},g.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},g.ArrayBuffer.prototype.getState=function(){var a=g.prototype.getState.call(this);return a.buff=M(a.buff),a},g.ArrayBuffer.prototype.setState=function(a){return a.buff=x(a.buff,!0),g.prototype.setState.call(this,a)},g.ArrayBuffer.prototype.destroy=g.prototype.destroy,g.ArrayBuffer.prototype._finish=g.prototype._finish,g.ArrayBuffer.hash=function(a,n){var t=y(new Uint8Array(a)),e=u(t);return n?b(e):e},g})})(ae);var He=ae.exports;const Ne=Me(He),Ee={class:"min-h-screen flex items-center justify-center p-4 overflow-hidden transition-colors duration-300"},qe={class:"p-8"},We={class:"flex justify-center space-x-4 mb-6"},Qe={key:"file",class:"grid grid-cols-1 gap-8"},Ge={key:0,class:"absolute inset-0 w-full h-full"},Je={class:"block truncate"},Ke={key:"text",class:"grid grid-cols-1 gap-8"},Oe={key:0,class:"flex flex-col"},Xe={class:"flex flex-col space-y-4"},Ye={key:0,class:"flex items-center space-x-2"},Ze={class:"relative flex-grow"},et=["placeholder"],tt={type:"submit",class:"w-full bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500 text-white font-bold py-4 px-6 rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-opacity-50 transition-all duration-300 transform hover:scale-105 hover:shadow-lg relative overflow-hidden group"},rt={class:"relative z-10 flex items-center justify-center text-lg"},ot={class:"mt-6 text-center"},nt={class:"flex-grow overflow-y-auto p-6"},at={class:"flex-shrink-0 mr-4"},st={class:"flex-grow min-w-0 mr-4"},it={class:"flex-shrink-0 flex space-x-2"},lt=["onClick"],ut=["onClick"],ct=["onClick"],dt={key:0,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"},ft={class:"space-y-4"},ht={class:"flex items-center"},pt={class:"flex items-center"},gt={class:"flex items-center"},yt={class:"flex items-center"},vt={class:"mt-6 flex justify-between items-center"},bt={class:"flex flex-col items-center w-1/2 pr-2"},xt={class:"text-2xl font-bold text-indigo-600"},mt={class:"flex flex-col items-center w-1/2 pl-2"},wt={class:"bg-white p-2 rounded-lg shadow-md"},_t=re({__name:"SendFileView",setup(q){const R=_e(),c=Ce("isDarkMode"),B=Be(),d=T("file"),_=T(null),U=T(""),w=T(null),y=T("day"),v=T("1"),u=T(0),A=T(!1),x=T(null),M=pe(),m=ge(()=>B.shareData),b=T(""),g=T(new Set),a=()=>{var f;(f=w.value)==null||f.click()},n=async f=>{const s=f.target;s.files&&s.files.length>0&&(_.value=s.files[0],b.value=await e(_.value))},t=async f=>{var s;(s=f.dataTransfer)!=null&&s.files&&f.dataTransfer.files.length>0&&(_.value=f.dataTransfer.files[0],b.value=await e(_.value),o())},e=async f=>new Promise(s=>{const p=new Ne.ArrayBuffer,k=new FileReader;let L=0;const Q=Math.ceil(f.size/2097152);k.onload=H=>{p.append(H.target.result),L++,L<Q?Z():s(p.end())};const Z=()=>{const H=L*2097152,fe=H+2097152>=f.size?f.size:H+2097152;k.readAsArrayBuffer(f.slice(H,fe))};Z()}),o=async()=>{if(!_.value)return;const f=1024*1024,s=Math.ceil(_.value.size/f),{uploadedList:I}=await r(b.value);g.value=new Set(I);for(let p=0;p<s;p++){if(g.value.has(p)){console.log(`切片 ${p} 已上传,跳过`);continue}const k=p*f,L=Math.min(k+f,_.value.size),Q=_.value.slice(k,L);await S(Q,p,s),u.value=(g.value.size+1)/s*100}await D(b.value,s),M.showAlert("文件上传完成","success")},r=async f=>(console.log(f),new Promise(s=>{setTimeout(()=>{s({uploadedList:[]})},500)})),S=async(f,s,I)=>new Promise(p=>{setTimeout(()=>{console.log(`上传切片 ${s+1}/${I}`),g.value.add(s),p()},500)}),D=async(f,s)=>{console.log(`请求合并文件切片, fileHash: ${f}, totalChunks: ${s}`)},z=()=>{switch(y.value){case"day":return"输入天数";case"hour":return"输入小时数";case"minute":return"输入分钟数";case"count":return"输入查看次数";case"forever":return"永久";default:return"输入值"}},V=()=>{switch(y.value){case"day":return"天";case"hour":return"小时";case"minute":return"分钟";case"count":return"次";case"forever":return"永久";default:return""}},se=async()=>{if(d.value==="file"&&!_.value){M.showAlert("请选择要上传的文件","error");return}if(d.value==="text"&&!U.value.trim()){M.showAlert("请输入要发送的文本","error");return}if(y.value!=="forever"&&!v.value){M.showAlert("请输入过期值","error");return}try{let f;const s=new FormData;if(d.value==="file")s.append("file",_.value);else{const p=new Blob([U.value],{type:"text/plain"});s.append("file",p,"text_content.txt")}y.value!=="forever"&&s.append("expire_value",v.value),s.append("expire_style",y.value);const I={headers:{"Content-Type":"multipart/form-data"},onUploadProgress:p=>{const k=Math.round(p.loaded*100/p.total);u.value=k}};if(f=await Ae.post("/share/file/",s,I),f&&f.code===200){const p=f.detail.code,k=f.detail.name,L={id:Date.now(),filename:k,date:new Date().toISOString().split("T")[0],size:d.value==="text"?`${(U.value.length/1024).toFixed(2)} KB`:`${(_.value.size/(1024*1024)).toFixed(1)} MB`,expiration:y.value==="forever"?"永久":`${v.value}${V()}后过期`,retrieveCode:p};B.addShareData(L),M.showAlert(`文件发送成功!取件码:${p}`,"success"),_.value=null,U.value="",v.value="",u.value=0,A.value=!0,await Y(p)}else throw new Error("服务器响应异常")}catch(f){console.error("发送失败:",f),f.response.data.detail?M.showAlert(f.response.data.detail,"error"):M.showAlert("发送失败,请稍后重试","error")}finally{u.value=0}},ie=()=>{R.push("/")},O=()=>{A.value=!A.value},le=f=>{x.value=f},ue=f=>{const s=B.shareData.findIndex(I=>I.id===f);s!==-1&&B.deleteShareData(s)},X="",ce=f=>`${X}/?code=${f.retrieveCode}`,de=async f=>{try{await navigator.clipboard.writeText(f),M.showAlert("取件码已复制到剪贴板","success")}catch(s){console.error("无法复制取件码: ",s),M.showAlert("复制失败,请手动复制取件码","error")}},Y=async f=>{const s=`${X}/?code=${f}`;try{await navigator.clipboard.writeText(s),M.showAlert("取件链接已复制到剪贴板","success")}catch(I){console.error("无法复制取件链接: ",I),M.showAlert("复制失败,请动复制取件链接","error")}};return oe(()=>{console.log("SendFileView mounted")}),(f,s)=>{const I=Se("router-link");return F(),$("div",Ee,[i("div",{class:h(["rounded-3xl shadow-2xl overflow-hidden border w-full max-w-md transition-colors duration-300",[l(c)?"bg-white bg-opacity-10 backdrop-filter backdrop-blur-xl border-gray-700":"bg-white border-gray-200"]])},[i("div",qe,[i("h2",{class:h(["text-3xl font-extrabold text-center mb-8 cursor-pointer transition-colors duration-300",[l(c)?"text-transparent bg-clip-text bg-gradient-to-r from-indigo-300 via-purple-300 to-pink-300":"text-indigo-600"]]),onClick:ie}," FileCodeBox ",2),i("form",{onSubmit:G(se,["prevent"]),class:"space-y-8"},[i("div",We,[i("button",{type:"button",onClick:s[0]||(s[0]=p=>d.value="file"),class:h(["px-4 py-2 rounded-lg",d.value==="file"?"bg-indigo-600 text-white":"bg-gray-700 text-gray-300"])}," 发送文件 ",2),i("button",{type:"button",onClick:s[1]||(s[1]=p=>d.value="text"),class:h(["px-4 py-2 rounded-lg",d.value==="text"?"bg-indigo-600 text-white":"bg-gray-700 text-gray-300"])}," 发送文本 ",2)]),C(K,{name:"fade",mode:"out-in"},{default:N(()=>[d.value==="file"?(F(),$("div",Qe,[i("div",{class:h(["rounded-xl p-8 flex flex-col items-center justify-center border-2 border-dashed transition-all duration-300 group cursor-pointer relative",[l(c)?"bg-gray-800 bg-opacity-50 border-gray-600 hover:border-indigo-500":"bg-gray-100 border-gray-300 hover:border-indigo-500"]]),onClick:a,onDragover:s[2]||(s[2]=G(()=>{},["prevent"])),onDrop:G(t,["prevent"])},[i("input",{id:"file-upload",type:"file",class:"hidden",onChange:n,ref_key:"fileInput",ref:w},null,544),u.value>0?(F(),$("div",Ge,[C(Ve,{progress:u.value},null,8,["progress"])])):E("",!0),C(l(Le),{class:h(["w-16 h-16 transition-colors duration-300",l(c)?"text-gray-400 group-hover:text-indigo-400":"text-gray-600 group-hover:text-indigo-600"])},null,8,["class"]),i("p",{class:h(["mt-4 text-sm transition-colors duration-300 w-full text-center",l(c)?"text-gray-400 group-hover:text-indigo-400":"text-gray-600 group-hover:text-indigo-600"])},[i("span",Je,P(_.value?_.value.name:"点击或拖放文件到此处上传"),1)],2),i("p",{class:h(["mt-2 text-xs",l(c)?"text-gray-500":"text-gray-400"])}," 支持各种常见格式,最大20MB ",2)],34)])):(F(),$("div",Ke,[d.value==="text"?(F(),$("div",Oe,[J(i("textarea",{id:"text-content","onUpdate:modelValue":s[3]||(s[3]=p=>U.value=p),rows:"7",class:h(["flex-grow px-4 py-3 rounded-xl placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-indigo-500 transition duration-300 resize-none",l(c)?"bg-gray-800 bg-opacity-50 text-white":"bg-white text-gray-900 border border-gray-300"]),placeholder:"在此输入要发送的文本..."},null,2),[[ee,U.value]])])):E("",!0)]))]),_:1}),i("div",Xe,[i("label",{class:h(["text-sm font-medium",l(c)?"text-gray-300":"text-gray-700"])}," 过期方式 ",2),J(i("select",{"onUpdate:modelValue":s[4]||(s[4]=p=>y.value=p),class:h(["px-4 py-2 rounded-xl focus:outline-none focus:ring-2 focus:ring-indigo-500",l(c)?"bg-gray-800 bg-opacity-50 text-white":"bg-white text-gray-900 border border-gray-300"])},s[8]||(s[8]=[ve('<option value="day" data-v-8bb86630>按天数</option><option value="hour" data-v-8bb86630>按小时</option><option value="minute" data-v-8bb86630>按分钟</option><option value="count" data-v-8bb86630>按查看次数</option><option value="forever" data-v-8bb86630>永久</option>',5)]),2),[[ye,y.value]]),y.value!=="forever"?(F(),$("div",Ye,[i("div",Ze,[J(i("input",{"onUpdate:modelValue":s[5]||(s[5]=p=>v.value=p),type:"number",placeholder:z(),class:h(["w-full px-4 py-2 pr-16 rounded-xl placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-indigo-500",l(c)?"bg-gray-800 bg-opacity-50 text-white":"bg-white text-gray-900 border border-gray-300"])},null,10,et),[[ee,v.value]]),i("span",{class:h(["absolute right-3 top-1/2 transform -translate-y-1/2",l(c)?"text-gray-300":"text-gray-700"])},P(V()),3)])])):E("",!0)]),i("button",tt,[s[10]||(s[10]=i("span",{class:"absolute top-0 left-0 w-full h-full bg-white opacity-0 group-hover:opacity-20 transition-opacity duration-300"},null,-1)),i("span",rt,[C(l(je),{class:"w-6 h-6 mr-2"}),s[9]||(s[9]=i("span",null,"安全寄送",-1))])])],32),i("div",ot,[C(I,{to:"/",class:"text-indigo-400 hover:text-indigo-300 transition duration-300"},{default:N(()=>s[11]||(s[11]=[j(" 需要取件?点击这里 ")])),_:1})])]),i("div",{class:h(["px-8 py-4 bg-opacity-50 flex justify-between items-center",[l(c)?"bg-gray-800":"bg-gray-100"]])},[i("span",{class:h(["text-sm flex items-center",[l(c)?"text-gray-300":"text-gray-800"]])},[C(l(Te),{class:"w-4 h-4 mr-1 text-green-400"}),s[12]||(s[12]=j(" 安全加密 "))],2),i("button",{onClick:O,class:h(["text-sm hover:text-indigo-300 transition duration-300 flex items-center",[l(c)?"text-indigo-400":"text-indigo-600"]])},[s[13]||(s[13]=j(" 发件记录 ")),C(l(Ie),{class:"w-4 h-4 ml-1"})],2)],2)],2),C(K,{name:"drawer"},{default:N(()=>[A.value?(F(),$("div",{key:0,class:h(["fixed inset-y-0 right-0 w-full sm:w-120 bg-opacity-70 backdrop-filter backdrop-blur-xl shadow-2xl z-50 overflow-hidden flex flex-col",[l(c)?"bg-gray-900":"bg-white"]])},[i("div",{class:h(["flex justify-between items-center p-6 border-b",[l(c)?"border-gray-700":"border-gray-200"]])},[i("h3",{class:h(["text-2xl font-bold",[l(c)?"text-white":"text-gray-800"]])}," 发件记录 ",2),i("button",{onClick:O,class:h(["hover:text-white transition duration-300",[l(c)?"text-gray-400":"text-gray-800"]])},[C(l(be),{class:"w-6 h-6"})],2)],2),i("div",nt,[C(xe,{name:"list",tag:"div",class:"space-y-4"},{default:N(()=>[(F(!0),$(me,null,we(m.value,p=>(F(),$("div",{key:p.id,class:h(["bg-opacity-50 rounded-lg p-4 flex items-center shadow-md hover:shadow-lg transition duration-300 transform hover:scale-102",[l(c)?"bg-gray-800 hover:bg-gray-700":"bg-gray-100 hover:bg-white"]])},[i("div",at,[C(l(te),{class:h(["w-10 h-10",[l(c)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"])]),i("div",st,[i("p",{class:h(["font-medium text-lg truncate",[l(c)?"text-white":"text-gray-800"]])},P(p.filename),3),i("p",{class:h(["text-sm truncate",[l(c)?"text-gray-400":"text-gray-600"]])},P(p.date)+" · "+P(p.size),3)]),i("div",it,[i("button",{onClick:k=>Y(p.retrieveCode),class:h(["p-2 rounded-full hover:bg-opacity-20 transition duration-300",[l(c)?"hover:bg-blue-400 text-blue-400":"hover:bg-blue-100 text-blue-600"]])},[C(l(ze),{class:"w-5 h-5"})],10,lt),i("button",{onClick:k=>le(p),class:h(["p-2 rounded-full hover:bg-opacity-20 transition duration-300",[l(c)?"hover:bg-green-400 text-green-400":"hover:bg-green-100 text-green-600"]])},[C(l(De),{class:"w-5 h-5"})],10,ut),i("button",{onClick:k=>ue(p.id),class:h(["p-2 rounded-full hover:bg-opacity-20 transition duration-300",[l(c)?"hover:bg-red-400 text-red-400":"hover:bg-red-100 text-red-600"]])},[C(l($e),{class:"w-5 h-5"})],10,ct)])],2))),128))]),_:1})])],2)):E("",!0)]),_:1}),C(K,{name:"fade"},{default:N(()=>[x.value?(F(),$("div",dt,[i("div",{class:h(["p-8 rounded-2xl max-w-md w-full mx-4 shadow-2xl transform transition-all duration-300 ease-out backdrop-filter backdrop-blur-lg bg-opacity-70",[l(c)?"bg-gray-800":"bg-white"]])},[i("h3",{class:h(["text-2xl font-bold mb-6",[l(c)?"text-white":"text-gray-800"]])}," 文件详情 ",2),i("div",ft,[i("div",ht,[C(l(te),{class:h(["w-6 h-6 mr-3",[l(c)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),i("p",{class:h([l(c)?"text-gray-300":"text-gray-800"])},[s[14]||(s[14]=i("span",{class:"font-medium"},"文件名:",-1)),j(P(x.value.filename),1)],2)]),i("div",pt,[C(l(ke),{class:h(["w-6 h-6 mr-3",[l(c)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),i("p",{class:h([l(c)?"text-gray-300":"text-gray-800"])},[s[15]||(s[15]=i("span",{class:"font-medium"},"发送日期:",-1)),j(P(x.value.date),1)],2)]),i("div",gt,[C(l(Fe),{class:h(["w-6 h-6 mr-3",[l(c)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),i("p",{class:h([l(c)?"text-gray-300":"text-gray-800"])},[s[16]||(s[16]=i("span",{class:"font-medium"},"文件大小:",-1)),j(P(x.value.size),1)],2)]),i("div",yt,[C(l(Pe),{class:h(["w-6 h-6 mr-3",[l(c)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),i("p",{class:h([l(c)?"text-gray-300":"text-gray-800"])},[s[17]||(s[17]=i("span",{class:"font-medium"},"过期时间:",-1)),j(P(x.value.expiration),1)],2)])]),i("div",vt,[i("div",bt,[i("h4",{class:h(["text-lg font-semibold mb-3",[l(c)?"text-white":"text-gray-800"]])}," 取件码 ",2),i("div",{class:"bg-gray-100 p-3 rounded-lg shadow-md cursor-pointer hover:bg-gray-200 transition-colors duration-300 w-full text-center",onClick:s[6]||(s[6]=p=>de(x.value.retrieveCode))},[i("p",xt,P(x.value.retrieveCode),1)]),i("p",{class:h(["mt-2 text-sm",[l(c)?"text-gray-400":"text-gray-600"]])}," 点击复制取件码 ",2)]),i("div",mt,[i("h4",{class:h(["text-lg font-semibold mb-3",[l(c)?"text-white":"text-gray-800"]])}," 二维码 ",2),i("div",wt,[C(Ue,{value:ce(x.value),size:128,level:"M"},null,8,["value"])]),i("p",{class:h(["mt-2 text-sm",[l(c)?"text-gray-400":"text-gray-600"]])}," 扫描二维码快速取件 ",2)])]),i("button",{onClick:s[7]||(s[7]=p=>x.value=null),class:"mt-8 w-full bg-gradient-to-r from-indigo-500 to-purple-600 text-white px-6 py-3 rounded-lg font-medium hover:from-indigo-600 hover:to-purple-700 focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-opacity-50 transition duration-300 transform hover:scale-105"}," 关闭 ")],2)])):E("",!0)]),_:1})])}}}),Bt=ne(_t,[["__scopeId","data-v-8bb86630"]]);export{Bt as default};
+ */const je=W("SendIcon",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]),Re=te({__name:"BorderProgressBar",props:{progress:{}},setup(q){const R=q,c=T(null),B=T(null);let d=null;const _=()=>{if(!d||!B.value||!c.value)return;const w=c.value.clientWidth,y=c.value.clientHeight;B.value.width=w,B.value.height=y;const v=4,u=8;d.lineWidth=v;const A=d.createLinearGradient(0,0,w,y);A.addColorStop(0,"#4f46e5"),A.addColorStop(.5,"#7c3aed"),A.addColorStop(1,"#db2777"),d.strokeStyle="rgba(229, 231, 235, 0.2)",U(d,v/2,v/2,w-v,y-v,u),d.stroke();const M=((w+y)*2-8*u+2*Math.PI*u)*R.progress/100;d.strokeStyle=A,d.lineCap="round",d.lineJoin="round",d.beginPath();let m=M;const b=v/2,g=w-v,a=y-v;if(m>0){const n=Math.min(g-2*u,m);d.moveTo(u+b,b),d.lineTo(n+u+b,b),m-=n}if(m>0){const n=Math.min(Math.PI/2,m/u);d.arc(g-u+b,u+b,u,-Math.PI/2,n-Math.PI/2,!1),m-=n*u}if(m>0){const n=Math.min(a-2*u,m);d.lineTo(g+b,n+u+b),m-=n}if(m>0){const n=Math.min(Math.PI/2,m/u);d.arc(g-u+b,a-u+b,u,0,n,!1),m-=n*u}if(m>0){const n=Math.min(g-2*u,m);d.lineTo(g-n-u+b,a+b),m-=n}if(m>0){const n=Math.min(Math.PI/2,m/u);d.arc(u+b,a-u+b,u,Math.PI/2,Math.PI/2+n,!1),m-=n*u}if(m>0){const n=Math.min(a-2*u,m);d.lineTo(b,a-n-u+b),m-=n}if(m>0){const n=Math.min(Math.PI/2,m/u);d.arc(u+b,u+b,u,Math.PI,Math.PI+n,!1)}d.stroke()};function U(w,y,v,u,A,x){w.beginPath(),w.moveTo(y+x,v),w.lineTo(y+u-x,v),w.arcTo(y+u,v,y+u,v+x,x),w.lineTo(y+u,v+A-x),w.arcTo(y+u,v+A,y+u-x,v+A,x),w.lineTo(y+x,v+A),w.arcTo(y,v+A,y,v+A-x,x),w.lineTo(y,v+x),w.arcTo(y,v,y+x,v,x),w.closePath()}return re(()=>{B.value&&(d=B.value.getContext("2d"),_())}),he(()=>R.progress,_),(w,y)=>(F(),$("div",{class:"border-progress-container",ref_key:"container",ref:c},[i("canvas",{ref_key:"canvas",ref:B,class:"border-progress-canvas"},null,512)],512))}}),Ve=oe(Re,[["__scopeId","data-v-2fbf5085"]]);var ne={exports:{}};(function(q,R){(function(c){q.exports=c()})(function(c){var B=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function d(a,n){var t=a[0],e=a[1],o=a[2],r=a[3];t+=(e&o|~e&r)+n[0]-680876936|0,t=(t<<7|t>>>25)+e|0,r+=(t&e|~t&o)+n[1]-389564586|0,r=(r<<12|r>>>20)+t|0,o+=(r&t|~r&e)+n[2]+606105819|0,o=(o<<17|o>>>15)+r|0,e+=(o&r|~o&t)+n[3]-1044525330|0,e=(e<<22|e>>>10)+o|0,t+=(e&o|~e&r)+n[4]-176418897|0,t=(t<<7|t>>>25)+e|0,r+=(t&e|~t&o)+n[5]+1200080426|0,r=(r<<12|r>>>20)+t|0,o+=(r&t|~r&e)+n[6]-1473231341|0,o=(o<<17|o>>>15)+r|0,e+=(o&r|~o&t)+n[7]-45705983|0,e=(e<<22|e>>>10)+o|0,t+=(e&o|~e&r)+n[8]+1770035416|0,t=(t<<7|t>>>25)+e|0,r+=(t&e|~t&o)+n[9]-1958414417|0,r=(r<<12|r>>>20)+t|0,o+=(r&t|~r&e)+n[10]-42063|0,o=(o<<17|o>>>15)+r|0,e+=(o&r|~o&t)+n[11]-1990404162|0,e=(e<<22|e>>>10)+o|0,t+=(e&o|~e&r)+n[12]+1804603682|0,t=(t<<7|t>>>25)+e|0,r+=(t&e|~t&o)+n[13]-40341101|0,r=(r<<12|r>>>20)+t|0,o+=(r&t|~r&e)+n[14]-1502002290|0,o=(o<<17|o>>>15)+r|0,e+=(o&r|~o&t)+n[15]+1236535329|0,e=(e<<22|e>>>10)+o|0,t+=(e&r|o&~r)+n[1]-165796510|0,t=(t<<5|t>>>27)+e|0,r+=(t&o|e&~o)+n[6]-1069501632|0,r=(r<<9|r>>>23)+t|0,o+=(r&e|t&~e)+n[11]+643717713|0,o=(o<<14|o>>>18)+r|0,e+=(o&t|r&~t)+n[0]-373897302|0,e=(e<<20|e>>>12)+o|0,t+=(e&r|o&~r)+n[5]-701558691|0,t=(t<<5|t>>>27)+e|0,r+=(t&o|e&~o)+n[10]+38016083|0,r=(r<<9|r>>>23)+t|0,o+=(r&e|t&~e)+n[15]-660478335|0,o=(o<<14|o>>>18)+r|0,e+=(o&t|r&~t)+n[4]-405537848|0,e=(e<<20|e>>>12)+o|0,t+=(e&r|o&~r)+n[9]+568446438|0,t=(t<<5|t>>>27)+e|0,r+=(t&o|e&~o)+n[14]-1019803690|0,r=(r<<9|r>>>23)+t|0,o+=(r&e|t&~e)+n[3]-187363961|0,o=(o<<14|o>>>18)+r|0,e+=(o&t|r&~t)+n[8]+1163531501|0,e=(e<<20|e>>>12)+o|0,t+=(e&r|o&~r)+n[13]-1444681467|0,t=(t<<5|t>>>27)+e|0,r+=(t&o|e&~o)+n[2]-51403784|0,r=(r<<9|r>>>23)+t|0,o+=(r&e|t&~e)+n[7]+1735328473|0,o=(o<<14|o>>>18)+r|0,e+=(o&t|r&~t)+n[12]-1926607734|0,e=(e<<20|e>>>12)+o|0,t+=(e^o^r)+n[5]-378558|0,t=(t<<4|t>>>28)+e|0,r+=(t^e^o)+n[8]-2022574463|0,r=(r<<11|r>>>21)+t|0,o+=(r^t^e)+n[11]+1839030562|0,o=(o<<16|o>>>16)+r|0,e+=(o^r^t)+n[14]-35309556|0,e=(e<<23|e>>>9)+o|0,t+=(e^o^r)+n[1]-1530992060|0,t=(t<<4|t>>>28)+e|0,r+=(t^e^o)+n[4]+1272893353|0,r=(r<<11|r>>>21)+t|0,o+=(r^t^e)+n[7]-155497632|0,o=(o<<16|o>>>16)+r|0,e+=(o^r^t)+n[10]-1094730640|0,e=(e<<23|e>>>9)+o|0,t+=(e^o^r)+n[13]+681279174|0,t=(t<<4|t>>>28)+e|0,r+=(t^e^o)+n[0]-358537222|0,r=(r<<11|r>>>21)+t|0,o+=(r^t^e)+n[3]-722521979|0,o=(o<<16|o>>>16)+r|0,e+=(o^r^t)+n[6]+76029189|0,e=(e<<23|e>>>9)+o|0,t+=(e^o^r)+n[9]-640364487|0,t=(t<<4|t>>>28)+e|0,r+=(t^e^o)+n[12]-421815835|0,r=(r<<11|r>>>21)+t|0,o+=(r^t^e)+n[15]+530742520|0,o=(o<<16|o>>>16)+r|0,e+=(o^r^t)+n[2]-995338651|0,e=(e<<23|e>>>9)+o|0,t+=(o^(e|~r))+n[0]-198630844|0,t=(t<<6|t>>>26)+e|0,r+=(e^(t|~o))+n[7]+1126891415|0,r=(r<<10|r>>>22)+t|0,o+=(t^(r|~e))+n[14]-1416354905|0,o=(o<<15|o>>>17)+r|0,e+=(r^(o|~t))+n[5]-57434055|0,e=(e<<21|e>>>11)+o|0,t+=(o^(e|~r))+n[12]+1700485571|0,t=(t<<6|t>>>26)+e|0,r+=(e^(t|~o))+n[3]-1894986606|0,r=(r<<10|r>>>22)+t|0,o+=(t^(r|~e))+n[10]-1051523|0,o=(o<<15|o>>>17)+r|0,e+=(r^(o|~t))+n[1]-2054922799|0,e=(e<<21|e>>>11)+o|0,t+=(o^(e|~r))+n[8]+1873313359|0,t=(t<<6|t>>>26)+e|0,r+=(e^(t|~o))+n[15]-30611744|0,r=(r<<10|r>>>22)+t|0,o+=(t^(r|~e))+n[6]-1560198380|0,o=(o<<15|o>>>17)+r|0,e+=(r^(o|~t))+n[13]+1309151649|0,e=(e<<21|e>>>11)+o|0,t+=(o^(e|~r))+n[4]-145523070|0,t=(t<<6|t>>>26)+e|0,r+=(e^(t|~o))+n[11]-1120210379|0,r=(r<<10|r>>>22)+t|0,o+=(t^(r|~e))+n[2]+718787259|0,o=(o<<15|o>>>17)+r|0,e+=(r^(o|~t))+n[9]-343485551|0,e=(e<<21|e>>>11)+o|0,a[0]=t+a[0]|0,a[1]=e+a[1]|0,a[2]=o+a[2]|0,a[3]=r+a[3]|0}function _(a){var n=[],t;for(t=0;t<64;t+=4)n[t>>2]=a.charCodeAt(t)+(a.charCodeAt(t+1)<<8)+(a.charCodeAt(t+2)<<16)+(a.charCodeAt(t+3)<<24);return n}function U(a){var n=[],t;for(t=0;t<64;t+=4)n[t>>2]=a[t]+(a[t+1]<<8)+(a[t+2]<<16)+(a[t+3]<<24);return n}function w(a){var n=a.length,t=[1732584193,-271733879,-1732584194,271733878],e,o,r,S,D,z;for(e=64;e<=n;e+=64)d(t,_(a.substring(e-64,e)));for(a=a.substring(e-64),o=a.length,r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;e<o;e+=1)r[e>>2]|=a.charCodeAt(e)<<(e%4<<3);if(r[e>>2]|=128<<(e%4<<3),e>55)for(d(t,r),e=0;e<16;e+=1)r[e]=0;return S=n*8,S=S.toString(16).match(/(.*?)(.{0,8})$/),D=parseInt(S[2],16),z=parseInt(S[1],16)||0,r[14]=D,r[15]=z,d(t,r),t}function y(a){var n=a.length,t=[1732584193,-271733879,-1732584194,271733878],e,o,r,S,D,z;for(e=64;e<=n;e+=64)d(t,U(a.subarray(e-64,e)));for(a=e-64<n?a.subarray(e-64):new Uint8Array(0),o=a.length,r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;e<o;e+=1)r[e>>2]|=a[e]<<(e%4<<3);if(r[e>>2]|=128<<(e%4<<3),e>55)for(d(t,r),e=0;e<16;e+=1)r[e]=0;return S=n*8,S=S.toString(16).match(/(.*?)(.{0,8})$/),D=parseInt(S[2],16),z=parseInt(S[1],16)||0,r[14]=D,r[15]=z,d(t,r),t}function v(a){var n="",t;for(t=0;t<4;t+=1)n+=B[a>>t*8+4&15]+B[a>>t*8&15];return n}function u(a){var n;for(n=0;n<a.length;n+=1)a[n]=v(a[n]);return a.join("")}u(w("hello")),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&function(){function a(n,t){return n=n|0||0,n<0?Math.max(n+t,0):Math.min(n,t)}ArrayBuffer.prototype.slice=function(n,t){var e=this.byteLength,o=a(n,e),r=e,S,D,z,V;return t!==c&&(r=a(t,e)),o>r?new ArrayBuffer(0):(S=r-o,D=new ArrayBuffer(S),z=new Uint8Array(D),V=new Uint8Array(this,o,S),z.set(V),D)}}();function A(a){return/[\u0080-\uFFFF]/.test(a)&&(a=unescape(encodeURIComponent(a))),a}function x(a,n){var t=a.length,e=new ArrayBuffer(t),o=new Uint8Array(e),r;for(r=0;r<t;r+=1)o[r]=a.charCodeAt(r);return n?o:e}function M(a){return String.fromCharCode.apply(null,new Uint8Array(a))}function m(a,n,t){var e=new Uint8Array(a.byteLength+n.byteLength);return e.set(new Uint8Array(a)),e.set(new Uint8Array(n),a.byteLength),e}function b(a){var n=[],t=a.length,e;for(e=0;e<t-1;e+=2)n.push(parseInt(a.substr(e,2),16));return String.fromCharCode.apply(String,n)}function g(){this.reset()}return g.prototype.append=function(a){return this.appendBinary(A(a)),this},g.prototype.appendBinary=function(a){this._buff+=a,this._length+=a.length;var n=this._buff.length,t;for(t=64;t<=n;t+=64)d(this._hash,_(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},g.prototype.end=function(a){var n=this._buff,t=n.length,e,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],r;for(e=0;e<t;e+=1)o[e>>2]|=n.charCodeAt(e)<<(e%4<<3);return this._finish(o,t),r=u(this._hash),a&&(r=b(r)),this.reset(),r},g.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},g.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},g.prototype.setState=function(a){return this._buff=a.buff,this._length=a.length,this._hash=a.hash,this},g.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},g.prototype._finish=function(a,n){var t=n,e,o,r;if(a[t>>2]|=128<<(t%4<<3),t>55)for(d(this._hash,a),t=0;t<16;t+=1)a[t]=0;e=this._length*8,e=e.toString(16).match(/(.*?)(.{0,8})$/),o=parseInt(e[2],16),r=parseInt(e[1],16)||0,a[14]=o,a[15]=r,d(this._hash,a)},g.hash=function(a,n){return g.hashBinary(A(a),n)},g.hashBinary=function(a,n){var t=w(a),e=u(t);return n?b(e):e},g.ArrayBuffer=function(){this.reset()},g.ArrayBuffer.prototype.append=function(a){var n=m(this._buff.buffer,a),t=n.length,e;for(this._length+=a.byteLength,e=64;e<=t;e+=64)d(this._hash,U(n.subarray(e-64,e)));return this._buff=e-64<t?new Uint8Array(n.buffer.slice(e-64)):new Uint8Array(0),this},g.ArrayBuffer.prototype.end=function(a){var n=this._buff,t=n.length,e=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],o,r;for(o=0;o<t;o+=1)e[o>>2]|=n[o]<<(o%4<<3);return this._finish(e,t),r=u(this._hash),a&&(r=b(r)),this.reset(),r},g.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},g.ArrayBuffer.prototype.getState=function(){var a=g.prototype.getState.call(this);return a.buff=M(a.buff),a},g.ArrayBuffer.prototype.setState=function(a){return a.buff=x(a.buff,!0),g.prototype.setState.call(this,a)},g.ArrayBuffer.prototype.destroy=g.prototype.destroy,g.ArrayBuffer.prototype._finish=g.prototype._finish,g.ArrayBuffer.hash=function(a,n){var t=y(new Uint8Array(a)),e=u(t);return n?b(e):e},g})})(ne);var He=ne.exports;const Ne=Me(He),Ee={class:"min-h-screen flex items-center justify-center p-4 overflow-hidden transition-colors duration-300"},qe={class:"p-8"},We={class:"flex justify-center space-x-4 mb-6"},Qe={key:"file",class:"grid grid-cols-1 gap-8"},Ge={key:0,class:"absolute inset-0 w-full h-full"},Je={class:"block truncate"},Ke={key:"text",class:"grid grid-cols-1 gap-8"},Oe={key:0,class:"flex flex-col"},Xe={class:"flex flex-col space-y-4"},Ye={key:0,class:"flex items-center space-x-2"},Ze={class:"relative flex-grow"},et=["placeholder"],tt={type:"submit",class:"w-full bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500 text-white font-bold py-4 px-6 rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-opacity-50 transition-all duration-300 transform hover:scale-105 hover:shadow-lg relative overflow-hidden group"},rt={class:"relative z-10 flex items-center justify-center text-lg"},ot={class:"mt-6 text-center"},nt={class:"flex-grow overflow-y-auto p-6"},at={class:"flex-shrink-0 mr-4"},st={class:"flex-grow min-w-0 mr-4"},it={class:"flex-shrink-0 flex space-x-2"},lt=["onClick"],ut=["onClick"],ct=["onClick"],dt={key:0,class:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"},ft={class:"space-y-4"},ht={class:"flex items-center"},pt={class:"flex items-center"},gt={class:"flex items-center"},yt={class:"flex items-center"},vt={class:"mt-6 flex justify-between items-center"},bt={class:"flex flex-col items-center w-1/2 pr-2"},xt={class:"text-2xl font-bold text-indigo-600"},mt={class:"flex flex-col items-center w-1/2 pl-2"},wt={class:"bg-white p-2 rounded-lg shadow-md"},_t=te({__name:"SendFileView",setup(q){const R=_e(),c=Ce("isDarkMode"),B=Be(),d=T("file"),_=T(null),U=T(""),w=T(null),y=T("day"),v=T("1"),u=T(0),A=T(!1),x=T(null),M=pe(),m=ge(()=>B.shareData),b=T(""),g=T(new Set),a=()=>{var f;(f=w.value)==null||f.click()},n=async f=>{const s=f.target;s.files&&s.files.length>0&&(_.value=s.files[0],b.value=await e(_.value))},t=async f=>{var s;(s=f.dataTransfer)!=null&&s.files&&f.dataTransfer.files.length>0&&(_.value=f.dataTransfer.files[0],b.value=await e(_.value),o())},e=async f=>new Promise(s=>{const p=new Ne.ArrayBuffer,k=new FileReader;let L=0;const Q=Math.ceil(f.size/2097152);k.onload=H=>{p.append(H.target.result),L++,L<Q?Y():s(p.end())};const Y=()=>{const H=L*2097152,fe=H+2097152>=f.size?f.size:H+2097152;k.readAsArrayBuffer(f.slice(H,fe))};Y()}),o=async()=>{if(!_.value)return;const f=1024*1024,s=Math.ceil(_.value.size/f),{uploadedList:I}=await r(b.value);g.value=new Set(I);for(let p=0;p<s;p++){if(g.value.has(p)){console.log(`切片 ${p} 已上传,跳过`);continue}const k=p*f,L=Math.min(k+f,_.value.size),Q=_.value.slice(k,L);await S(Q,p,s),u.value=(g.value.size+1)/s*100}await D(b.value,s),M.showAlert("文件上传完成","success")},r=async f=>(console.log(f),new Promise(s=>{setTimeout(()=>{s({uploadedList:[]})},500)})),S=async(f,s,I)=>new Promise(p=>{setTimeout(()=>{console.log(`上传切片 ${s+1}/${I}`),g.value.add(s),p()},500)}),D=async(f,s)=>{console.log(`请求合并文件切片, fileHash: ${f}, totalChunks: ${s}`)},z=()=>{switch(y.value){case"day":return"输入天数";case"hour":return"输入小时数";case"minute":return"输入分钟数";case"count":return"输入查看次数";case"forever":return"永久";default:return"输入值"}},V=()=>{switch(y.value){case"day":return"天";case"hour":return"小时";case"minute":return"分钟";case"count":return"次";case"forever":return"永久";default:return""}},ae=async()=>{if(d.value==="file"&&!_.value){M.showAlert("请选择要上传的文件","error");return}if(d.value==="text"&&!U.value.trim()){M.showAlert("请输入要发送的文本","error");return}if(y.value!=="forever"&&!v.value){M.showAlert("请输入过期值","error");return}try{let f;const s=new FormData;if(d.value==="file")s.append("file",_.value);else{const p=new Blob([U.value],{type:"text/plain"});s.append("file",p,"text_content.txt")}y.value!=="forever"&&s.append("expire_value",v.value),s.append("expire_style",y.value);const I={headers:{"Content-Type":"multipart/form-data"},onUploadProgress:p=>{const k=Math.round(p.loaded*100/p.total);u.value=k}};if(f=await Ae.post("/share/file/",s,I),f&&f.code===200){const p=f.detail.code,k=f.detail.name,L={id:Date.now(),filename:k,date:new Date().toISOString().split("T")[0],size:d.value==="text"?`${(U.value.length/1024).toFixed(2)} KB`:`${(_.value.size/(1024*1024)).toFixed(1)} MB`,expiration:y.value==="forever"?"永久":`${v.value}${V()}后过期`,retrieveCode:p};B.addShareData(L),M.showAlert(`文件发送成功!取件码:${p}`,"success"),_.value=null,U.value="",v.value="",u.value=0,A.value=!0,await X(p)}else throw new Error("服务器响应异常")}catch(f){console.error("发送失败:",f),f.response.data.detail?M.showAlert(f.response.data.detail,"error"):M.showAlert("发送失败,请稍后重试","error")}finally{u.value=0}},se=()=>{R.push("/")},O=()=>{A.value=!A.value},ie=f=>{x.value=f},le=f=>{const s=B.shareData.findIndex(I=>I.id===f);s!==-1&&B.deleteShareData(s)},ue="",ce=f=>`${ue}/?code=${f.retrieveCode}`,de=async f=>{try{await navigator.clipboard.writeText(f),M.showAlert("取件码已复制到剪贴板","success")}catch(s){console.error("无法复制取件码: ",s),M.showAlert("复制失败,请手动复制取件码","error")}},X=async f=>{const s=`${window.location.origin}/#/?code=${f}`;try{await navigator.clipboard.writeText(s),M.showAlert("取件链接已复制到剪贴板","success")}catch(I){console.error("无法复制取件链接: ",I),M.showAlert("复制失败,请动复制取件链接","error")}};return re(()=>{console.log("SendFileView mounted")}),(f,s)=>{const I=Se("router-link");return F(),$("div",Ee,[i("div",{class:h(["rounded-3xl shadow-2xl overflow-hidden border w-full max-w-md transition-colors duration-300",[l(c)?"bg-white bg-opacity-10 backdrop-filter backdrop-blur-xl border-gray-700":"bg-white border-gray-200"]])},[i("div",qe,[i("h2",{class:h(["text-3xl font-extrabold text-center mb-8 cursor-pointer transition-colors duration-300",[l(c)?"text-transparent bg-clip-text bg-gradient-to-r from-indigo-300 via-purple-300 to-pink-300":"text-indigo-600"]]),onClick:se}," FileCodeBox ",2),i("form",{onSubmit:G(ae,["prevent"]),class:"space-y-8"},[i("div",We,[i("button",{type:"button",onClick:s[0]||(s[0]=p=>d.value="file"),class:h(["px-4 py-2 rounded-lg",d.value==="file"?"bg-indigo-600 text-white":"bg-gray-700 text-gray-300"])}," 发送文件 ",2),i("button",{type:"button",onClick:s[1]||(s[1]=p=>d.value="text"),class:h(["px-4 py-2 rounded-lg",d.value==="text"?"bg-indigo-600 text-white":"bg-gray-700 text-gray-300"])}," 发送文本 ",2)]),C(K,{name:"fade",mode:"out-in"},{default:N(()=>[d.value==="file"?(F(),$("div",Qe,[i("div",{class:h(["rounded-xl p-8 flex flex-col items-center justify-center border-2 border-dashed transition-all duration-300 group cursor-pointer relative",[l(c)?"bg-gray-800 bg-opacity-50 border-gray-600 hover:border-indigo-500":"bg-gray-100 border-gray-300 hover:border-indigo-500"]]),onClick:a,onDragover:s[2]||(s[2]=G(()=>{},["prevent"])),onDrop:G(t,["prevent"])},[i("input",{id:"file-upload",type:"file",class:"hidden",onChange:n,ref_key:"fileInput",ref:w},null,544),u.value>0?(F(),$("div",Ge,[C(Ve,{progress:u.value},null,8,["progress"])])):E("",!0),C(l(Le),{class:h(["w-16 h-16 transition-colors duration-300",l(c)?"text-gray-400 group-hover:text-indigo-400":"text-gray-600 group-hover:text-indigo-600"])},null,8,["class"]),i("p",{class:h(["mt-4 text-sm transition-colors duration-300 w-full text-center",l(c)?"text-gray-400 group-hover:text-indigo-400":"text-gray-600 group-hover:text-indigo-600"])},[i("span",Je,P(_.value?_.value.name:"点击或拖放文件到此处上传"),1)],2),i("p",{class:h(["mt-2 text-xs",l(c)?"text-gray-500":"text-gray-400"])}," 支持各种常见格式,最大20MB ",2)],34)])):(F(),$("div",Ke,[d.value==="text"?(F(),$("div",Oe,[J(i("textarea",{id:"text-content","onUpdate:modelValue":s[3]||(s[3]=p=>U.value=p),rows:"7",class:h(["flex-grow px-4 py-3 rounded-xl placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-indigo-500 transition duration-300 resize-none",l(c)?"bg-gray-800 bg-opacity-50 text-white":"bg-white text-gray-900 border border-gray-300"]),placeholder:"在此输入要发送的文本..."},null,2),[[Z,U.value]])])):E("",!0)]))]),_:1}),i("div",Xe,[i("label",{class:h(["text-sm font-medium",l(c)?"text-gray-300":"text-gray-700"])}," 过期方式 ",2),J(i("select",{"onUpdate:modelValue":s[4]||(s[4]=p=>y.value=p),class:h(["px-4 py-2 rounded-xl focus:outline-none focus:ring-2 focus:ring-indigo-500",l(c)?"bg-gray-800 bg-opacity-50 text-white":"bg-white text-gray-900 border border-gray-300"])},s[8]||(s[8]=[ve('<option value="day" data-v-675446d2>按天数</option><option value="hour" data-v-675446d2>按小时</option><option value="minute" data-v-675446d2>按分钟</option><option value="count" data-v-675446d2>按查看次数</option><option value="forever" data-v-675446d2>永久</option>',5)]),2),[[ye,y.value]]),y.value!=="forever"?(F(),$("div",Ye,[i("div",Ze,[J(i("input",{"onUpdate:modelValue":s[5]||(s[5]=p=>v.value=p),type:"number",placeholder:z(),class:h(["w-full px-4 py-2 pr-16 rounded-xl placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-indigo-500",l(c)?"bg-gray-800 bg-opacity-50 text-white":"bg-white text-gray-900 border border-gray-300"])},null,10,et),[[Z,v.value]]),i("span",{class:h(["absolute right-3 top-1/2 transform -translate-y-1/2",l(c)?"text-gray-300":"text-gray-700"])},P(V()),3)])])):E("",!0)]),i("button",tt,[s[10]||(s[10]=i("span",{class:"absolute top-0 left-0 w-full h-full bg-white opacity-0 group-hover:opacity-20 transition-opacity duration-300"},null,-1)),i("span",rt,[C(l(je),{class:"w-6 h-6 mr-2"}),s[9]||(s[9]=i("span",null,"安全寄送",-1))])])],32),i("div",ot,[C(I,{to:"/",class:"text-indigo-400 hover:text-indigo-300 transition duration-300"},{default:N(()=>s[11]||(s[11]=[j(" 需要取件?点击这里 ")])),_:1})])]),i("div",{class:h(["px-8 py-4 bg-opacity-50 flex justify-between items-center",[l(c)?"bg-gray-800":"bg-gray-100"]])},[i("span",{class:h(["text-sm flex items-center",[l(c)?"text-gray-300":"text-gray-800"]])},[C(l(Te),{class:"w-4 h-4 mr-1 text-green-400"}),s[12]||(s[12]=j(" 安全加密 "))],2),i("button",{onClick:O,class:h(["text-sm hover:text-indigo-300 transition duration-300 flex items-center",[l(c)?"text-indigo-400":"text-indigo-600"]])},[s[13]||(s[13]=j(" 发件记录 ")),C(l(Ie),{class:"w-4 h-4 ml-1"})],2)],2)],2),C(K,{name:"drawer"},{default:N(()=>[A.value?(F(),$("div",{key:0,class:h(["fixed inset-y-0 right-0 w-full sm:w-120 bg-opacity-70 backdrop-filter backdrop-blur-xl shadow-2xl z-50 overflow-hidden flex flex-col",[l(c)?"bg-gray-900":"bg-white"]])},[i("div",{class:h(["flex justify-between items-center p-6 border-b",[l(c)?"border-gray-700":"border-gray-200"]])},[i("h3",{class:h(["text-2xl font-bold",[l(c)?"text-white":"text-gray-800"]])}," 发件记录 ",2),i("button",{onClick:O,class:h(["hover:text-white transition duration-300",[l(c)?"text-gray-400":"text-gray-800"]])},[C(l(be),{class:"w-6 h-6"})],2)],2),i("div",nt,[C(xe,{name:"list",tag:"div",class:"space-y-4"},{default:N(()=>[(F(!0),$(me,null,we(m.value,p=>(F(),$("div",{key:p.id,class:h(["bg-opacity-50 rounded-lg p-4 flex items-center shadow-md hover:shadow-lg transition duration-300 transform hover:scale-102",[l(c)?"bg-gray-800 hover:bg-gray-700":"bg-gray-100 hover:bg-white"]])},[i("div",at,[C(l(ee),{class:h(["w-10 h-10",[l(c)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"])]),i("div",st,[i("p",{class:h(["font-medium text-lg truncate",[l(c)?"text-white":"text-gray-800"]])},P(p.filename),3),i("p",{class:h(["text-sm truncate",[l(c)?"text-gray-400":"text-gray-600"]])},P(p.date)+" · "+P(p.size),3)]),i("div",it,[i("button",{onClick:k=>X(p.retrieveCode),class:h(["p-2 rounded-full hover:bg-opacity-20 transition duration-300",[l(c)?"hover:bg-blue-400 text-blue-400":"hover:bg-blue-100 text-blue-600"]])},[C(l(ze),{class:"w-5 h-5"})],10,lt),i("button",{onClick:k=>ie(p),class:h(["p-2 rounded-full hover:bg-opacity-20 transition duration-300",[l(c)?"hover:bg-green-400 text-green-400":"hover:bg-green-100 text-green-600"]])},[C(l(De),{class:"w-5 h-5"})],10,ut),i("button",{onClick:k=>le(p.id),class:h(["p-2 rounded-full hover:bg-opacity-20 transition duration-300",[l(c)?"hover:bg-red-400 text-red-400":"hover:bg-red-100 text-red-600"]])},[C(l($e),{class:"w-5 h-5"})],10,ct)])],2))),128))]),_:1})])],2)):E("",!0)]),_:1}),C(K,{name:"fade"},{default:N(()=>[x.value?(F(),$("div",dt,[i("div",{class:h(["p-8 rounded-2xl max-w-md w-full mx-4 shadow-2xl transform transition-all duration-300 ease-out backdrop-filter backdrop-blur-lg bg-opacity-70",[l(c)?"bg-gray-800":"bg-white"]])},[i("h3",{class:h(["text-2xl font-bold mb-6",[l(c)?"text-white":"text-gray-800"]])}," 文件详情 ",2),i("div",ft,[i("div",ht,[C(l(ee),{class:h(["w-6 h-6 mr-3",[l(c)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),i("p",{class:h([l(c)?"text-gray-300":"text-gray-800"])},[s[14]||(s[14]=i("span",{class:"font-medium"},"文件名:",-1)),j(P(x.value.filename),1)],2)]),i("div",pt,[C(l(ke),{class:h(["w-6 h-6 mr-3",[l(c)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),i("p",{class:h([l(c)?"text-gray-300":"text-gray-800"])},[s[15]||(s[15]=i("span",{class:"font-medium"},"发送日期:",-1)),j(P(x.value.date),1)],2)]),i("div",gt,[C(l(Fe),{class:h(["w-6 h-6 mr-3",[l(c)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),i("p",{class:h([l(c)?"text-gray-300":"text-gray-800"])},[s[16]||(s[16]=i("span",{class:"font-medium"},"文件大小:",-1)),j(P(x.value.size),1)],2)]),i("div",yt,[C(l(Pe),{class:h(["w-6 h-6 mr-3",[l(c)?"text-indigo-400":"text-indigo-600"]])},null,8,["class"]),i("p",{class:h([l(c)?"text-gray-300":"text-gray-800"])},[s[17]||(s[17]=i("span",{class:"font-medium"},"过期时间:",-1)),j(P(x.value.expiration),1)],2)])]),i("div",vt,[i("div",bt,[i("h4",{class:h(["text-lg font-semibold mb-3",[l(c)?"text-white":"text-gray-800"]])}," 取件码 ",2),i("div",{class:"bg-gray-100 p-3 rounded-lg shadow-md cursor-pointer hover:bg-gray-200 transition-colors duration-300 w-full text-center",onClick:s[6]||(s[6]=p=>de(x.value.retrieveCode))},[i("p",xt,P(x.value.retrieveCode),1)]),i("p",{class:h(["mt-2 text-sm",[l(c)?"text-gray-400":"text-gray-600"]])}," 点击复制取件码 ",2)]),i("div",mt,[i("h4",{class:h(["text-lg font-semibold mb-3",[l(c)?"text-white":"text-gray-800"]])}," 二维码 ",2),i("div",wt,[C(Ue,{value:ce(x.value),size:128,level:"M"},null,8,["value"])]),i("p",{class:h(["mt-2 text-sm",[l(c)?"text-gray-400":"text-gray-600"]])}," 扫描二维码快速取件 ",2)])]),i("button",{onClick:s[7]||(s[7]=p=>x.value=null),class:"mt-8 w-full bg-gradient-to-r from-indigo-500 to-purple-600 text-white px-6 py-3 rounded-lg font-medium hover:from-indigo-600 hover:to-purple-700 focus:outline-none focus:ring-2 focus:ring-purple-500 focus:ring-opacity-50 transition duration-300 transform hover:scale-105"}," 关闭 ")],2)])):E("",!0)]),_:1})])}}}),Bt=oe(_t,[["__scopeId","data-v-675446d2"]]);export{Bt as default};
diff --git a/fcb-fronted/dist/assets/SystemSettingsView-C5ycrk-T.js b/fcb-fronted/dist/assets/SystemSettingsView-CvU75WjY.js
similarity index 99%
rename from fcb-fronted/dist/assets/SystemSettingsView-C5ycrk-T.js
rename to fcb-fronted/dist/assets/SystemSettingsView-CvU75WjY.js
index db278276f..30c5e7520 100644
--- a/fcb-fronted/dist/assets/SystemSettingsView-C5ycrk-T.js
+++ b/fcb-fronted/dist/assets/SystemSettingsView-CvU75WjY.js
@@ -1 +1 @@
-import{B as V,r as p,u as B,p as b,b as m,d as e,n as a,e as s,h as n,v as i,C as v,i as M,F as C,x as D,t as f,z,A as h,M as A,_ as F}from"./index-42gh9IW1.js";const T={class:"p-6 h-screen overflow-y-auto custom-scrollbar"},K={class:"space-y-4"},E={class:"grid grid-cols-1 gap-6"},G={class:"space-y-2"},I={class:"space-y-2"},j={class:"space-y-2"},N={class:"relative"},L={class:"space-y-2"},R={class:"space-y-2"},$={class:"grid grid-cols-1 gap-6 mt-8"},q={class:"space-y-2"},H={class:"space-y-2"},J={class:"mt-8"},O={class:"space-y-4"},P={class:"space-y-2"},Q={key:0,class:"space-y-4"},W={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},X={class:"space-y-2"},Y={class:"space-y-2"},Z={class:"space-y-2"},ee={class:"space-y-2"},oe={class:"mt-8"},re={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},te={class:"space-y-2"},ae={class:"flex items-center space-x-2"},se={class:"space-y-2"},le={class:"flex items-center space-x-2"},ne={class:"space-y-2"},ie={class:"flex items-center space-x-2"},de={class:"space-y-2"},ue={class:"flex flex-wrap gap-3"},ge=["value"],ce={class:"space-y-2"},ye={class:"flex items-center space-x-2"},pe={class:"space-y-2"},be={class:"flex items-center"},me=["aria-checked"],ve={class:"mt-8"},xe={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},fe={class:"space-y-2"},he={class:"flex items-center space-x-2"},_e={class:"space-y-2"},we={class:"flex items-center space-x-2"},ke=V({__name:"SystemSettingsView",setup(Ue){const t=z("isDarkMode"),l=p({name:"",description:"",file_storage:"",expireStyle:[],admin_token:"",robotsText:"",keywords:"",notify_title:"",notify_content:"",openUpload:1,uploadSize:1,uploadMinute:1,max_save_seconds:0,opacity:.9,s3_access_key_id:"",background:"",showAdminAddr:0,page_explain:"",s3_secret_access_key:"",aws_session_token:"",s3_signature_version:"",s3_region_name:"",s3_bucket_name:"",s3_endpoint_url:"",s3_hostname:"",uploadCount:1,errorMinute:1,errorCount:1}),c=p(1),y=p("MB"),u=p(1),g=p("天"),_=(d,o)=>d*{秒:1,分:60,时:3600,天:86400}[o],w=()=>{h({url:"/admin/config/get",method:"get"}).then(d=>{l.value=d.detail;let o=l.value.uploadSize;o>=1024*1024*1024?(c.value=Math.round(o/(1024*1024*1024)),y.value="GB"):o>=1024*1024?(c.value=Math.round(o/(1024*1024)),y.value="MB"):(c.value=Math.round(o/1024),y.value="KB");let r=l.value.max_save_seconds;r===0?(u.value=7,g.value="天"):r%86400===0&&r>=86400?(u.value=r/86400,g.value="天"):r%3600===0&&r>=3600?(u.value=r/3600,g.value="时"):r%60===0&&r>=60?(u.value=r/60,g.value="分"):(u.value=r,g.value="秒")})},x=B(),k=(d,o)=>d*{KB:1024,MB:1048576,GB:1073741824}[o],U=()=>{const d={...l.value};d.uploadSize=k(c.value,y.value),u.value===0?d.max_save_seconds=7*86400:d.max_save_seconds=_(u.value,g.value),h({url:"/admin/config/update",method:"patch",data:d}).then(o=>{o.code==200?x.showAlert("保存成功","success"):x.showAlert(o.message,"error")})};return w(),(d,o)=>(b(),m("div",T,[e("h2",{class:a(["text-2xl font-bold mb-6",[s(t)?"text-white":"text-gray-800"]])}," 系统设置 ",2),e("div",{class:a(["space-y-6 rounded-lg shadow-md p-6",[s(t)?"bg-gray-800 bg-opacity-70":"bg-white"]])},[e("section",K,[e("h3",{class:a(["text-lg font-medium mb-4",[s(t)?"text-white":"text-gray-800"]])}," 基本设置 ",2),e("div",E,[e("div",G,[e("label",{class:a(["block text-sm font-medium",[s(t)?"text-gray-300":"text-gray-700"]])}," 网站名称 ",2),n(e("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=r=>l.value.name=r),class:a(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(t)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,l.value.name]])]),e("div",I,[e("label",{class:a(["block text-sm font-medium",[s(t)?"text-gray-300":"text-gray-700"]])}," 网站描述 ",2),n(e("input",{type:"text","onUpdate:modelValue":o[1]||(o[1]=r=>l.value.description=r),class:a(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(t)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,l.value.description]])]),e("div",j,[e("label",{class:a(["block text-sm font-medium",[s(t)?"text-gray-300":"text-gray-700"]])}," 管理员密码 ",2),e("div",N,[n(e("input",{type:"password","onUpdate:modelValue":o[2]||(o[2]=r=>l.value.admin_token=r),placeholder:"留空则不修改密码",class:a(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(t)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,l.value.admin_token]]),e("div",{class:a(["absolute inset-y-0 right-0 flex items-center pr-3 text-sm text-gray-400",[s(t)?"text-gray-500":"text-gray-400"]])},o[22]||(o[22]=[e("span",{class:"text-xs"},"留空则不修改",-1)]),2)])]),e("div",L,[e("label",{class:a(["block text-sm font-medium",[s(t)?"text-gray-300":"text-gray-700"]])}," 关键词 ",2),n(e("input",{type:"text","onUpdate:modelValue":o[3]||(o[3]=r=>l.value.keywords=r),class:a(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(t)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,l.value.keywords]])]),e("div",R,[e("label",{class:a(["block text-sm font-medium",[s(t)?"text-gray-300":"text-gray-700"]])}," Robots.txt ",2),n(e("textarea",{"onUpdate:modelValue":o[4]||(o[4]=r=>l.value.robotsText=r),rows:"3",class:a(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border resize-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(t)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,l.value.robotsText]])])]),e("div",$,[e("div",q,[e("label",{class:a(["block text-sm font-medium",[s(t)?"text-gray-300":"text-gray-700"]])}," 通知标题 ",2),n(e("input",{type:"text","onUpdate:modelValue":o[5]||(o[5]=r=>l.value.notify_title=r),class:a(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(t)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,l.value.notify_title]])]),e("div",H,[e("label",{class:a(["block text-sm font-medium",[s(t)?"text-gray-300":"text-gray-700"]])}," 通知内容 ",2),n(e("textarea",{"onUpdate:modelValue":o[6]||(o[6]=r=>l.value.notify_content=r),rows:"3",class:a(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border resize-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(t)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,l.value.notify_content]])])]),e("div",J,[e("h3",{class:a(["text-lg font-medium mb-4",[s(t)?"text-white":"text-gray-800"]])}," 存储设置 ",2),e("div",O,[e("div",P,[e("label",{class:a(["block text-sm font-medium",[s(t)?"text-gray-300":"text-gray-700"]])}," 存储方式 ",2),n(e("select",{"onUpdate:modelValue":o[7]||(o[7]=r=>l.value.file_storage=r),class:a(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border appearance-none bg-no-repeat bg-right focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none cursor-pointer",[s(t)?"bg-gray-700 border-gray-600 text-white hover:border-gray-500":"border-gray-300 hover:border-gray-400"]]),style:{"background-image":"url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M7%208l3%203%203-3%22%20stroke%3D%22%236B7280%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E')"}},o[23]||(o[23]=[e("option",{value:"local"},"本地存储",-1),e("option",{value:"s3"},"S3 存储",-1)]),2),[[v,l.value.file_storage]])]),l.value.file_storage==="s3"?(b(),m("div",Q,[e("div",W,[e("div",X,[e("label",{class:a(["block text-sm font-medium",[s(t)?"text-gray-300":"text-gray-700"]])}," S3 AccessKeyId ",2),n(e("input",{type:"text","onUpdate:modelValue":o[8]||(o[8]=r=>l.value.s3_access_key_id=r),class:a(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(t)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,l.value.s3_access_key_id]])]),e("div",Y,[e("label",{class:a(["block text-sm font-medium",[s(t)?"text-gray-300":"text-gray-700"]])}," S3 SecretAccessKey ",2),n(e("input",{type:"password","onUpdate:modelValue":o[9]||(o[9]=r=>l.value.s3_secret_access_key=r),class:a(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(t)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,l.value.s3_secret_access_key]])]),e("div",Z,[e("label",{class:a(["block text-sm font-medium",[s(t)?"text-gray-300":"text-gray-700"]])}," S3 BucketName ",2),n(e("input",{type:"text","onUpdate:modelValue":o[10]||(o[10]=r=>l.value.s3_bucket_name=r),class:a(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(t)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,l.value.s3_bucket_name]])]),e("div",ee,[e("label",{class:a(["block text-sm font-medium",[s(t)?"text-gray-300":"text-gray-700"]])}," S3 EndpointUrl ",2),n(e("input",{type:"text","onUpdate:modelValue":o[11]||(o[11]=r=>l.value.s3_endpoint_url=r),class:a(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(t)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,l.value.s3_endpoint_url]])])])])):M("",!0)])]),e("div",oe,[e("h3",{class:a(["text-lg font-medium mb-4",[s(t)?"text-white":"text-gray-800"]])}," 上传限制 ",2),e("div",re,[e("div",te,[e("label",{class:a(["block text-sm font-medium",[s(t)?"text-gray-300":"text-gray-700"]])}," 每分钟上传限制 ",2),e("div",ae,[n(e("input",{type:"number","onUpdate:modelValue":o[12]||(o[12]=r=>l.value.uploadMinute=r),class:a(["w-24 rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(t)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,l.value.uploadMinute]]),e("span",{class:a([s(t)?"text-gray-300":"text-gray-700"])},"分钟",2)])]),e("div",se,[e("label",{class:a(["block text-sm font-medium",[s(t)?"text-gray-300":"text-gray-700"]])}," 上传数量限制 ",2),e("div",le,[n(e("input",{type:"number","onUpdate:modelValue":o[13]||(o[13]=r=>l.value.uploadCount=r),class:a(["w-24 rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(t)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,l.value.uploadCount]]),e("span",{class:a([s(t)?"text-gray-300":"text-gray-700"])},"个文件",2)])]),e("div",ne,[e("label",{class:a(["block text-sm font-medium",[s(t)?"text-gray-300":"text-gray-700"]])}," 文件大小限制 ",2),e("div",ie,[n(e("input",{type:"number","onUpdate:modelValue":o[14]||(o[14]=r=>c.value=r),class:a(["w-24 rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(t)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,c.value]]),n(e("select",{"onUpdate:modelValue":o[15]||(o[15]=r=>y.value=r),class:a(["rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(t)?"bg-gray-700 border-gray-600 text-white hover:border-gray-500":"border-gray-300 hover:border-gray-400"]])},o[24]||(o[24]=[e("option",{value:"KB"},"KB",-1),e("option",{value:"MB"},"MB",-1),e("option",{value:"GB"},"GB",-1)]),2),[[v,y.value]])])]),e("div",de,[e("label",{class:a(["block text-sm font-medium mb-2",[s(t)?"text-gray-300":"text-gray-700"]])}," 过期方式 ",2),e("div",ue,[(b(),m(C,null,D(["day","hour","minute","forever","count"],r=>e("label",{key:r,class:"relative inline-flex items-center group cursor-pointer"},[n(e("input",{type:"checkbox",value:r,"onUpdate:modelValue":o[16]||(o[16]=S=>l.value.expireStyle=S),class:"peer sr-only"},null,8,ge),[[A,l.value.expireStyle]]),e("div",{class:a(["px-4 py-2 rounded-full border-2 transition-all duration-200 select-none",[l.value.expireStyle.includes(r)?(s(t),"bg-indigo-600 border-indigo-600 text-white"):s(t)?"bg-gray-700 border-gray-600 text-gray-300 hover:border-indigo-500":"bg-white border-gray-300 text-gray-700 hover:border-indigo-500"]])},f({day:"按天",hour:"按小时",minute:"按分钟",forever:"永久",count:"按次数"}[r]),3)])),64))])]),e("div",ce,[e("label",{class:a(["block text-sm font-medium",[s(t)?"text-gray-300":"text-gray-700"]])}," 最长保存时间 ",2),e("div",ye,[n(e("input",{type:"number","onUpdate:modelValue":o[17]||(o[17]=r=>u.value=r),class:a(["w-24 rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(t)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,u.value]]),n(e("select",{"onUpdate:modelValue":o[18]||(o[18]=r=>g.value=r),class:a(["rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(t)?"bg-gray-700 border-gray-600 text-white hover:border-gray-500":"border-gray-300 hover:border-gray-400"]])},o[25]||(o[25]=[e("option",{value:"秒"},"秒",-1),e("option",{value:"分"},"分",-1),e("option",{value:"时"},"时",-1),e("option",{value:"天"},"天",-1)]),2),[[v,g.value]])])]),e("div",pe,[e("label",{class:a(["block text-sm font-medium mb-2",[s(t)?"text-gray-300":"text-gray-700"]])}," 游客上传 ",2),e("div",be,[e("button",{type:"button",onClick:o[19]||(o[19]=r=>l.value.openUpload=l.value.openUpload===1?0:1),class:a(["relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2",[l.value.openUpload===1?"bg-indigo-600":"bg-gray-200"]]),role:"switch","aria-checked":l.value.openUpload===1},[e("span",{class:a(["pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out",[l.value.openUpload===1?"translate-x-5":"translate-x-0",s(t)&&l.value.openUpload!==1?"bg-gray-100":"bg-white"]])},null,2)],10,me),e("span",{class:a(["ml-3 text-sm",[s(t)?"text-gray-300":"text-gray-700"]])},f(l.value.openUpload===1?"已开启":"已关闭"),3)])])])]),e("div",ve,[e("h3",{class:a(["text-lg font-medium mb-4",[s(t)?"text-white":"text-gray-800"]])}," 错误限制 ",2),e("div",xe,[e("div",fe,[e("label",{class:a(["block text-sm font-medium",[s(t)?"text-gray-300":"text-gray-700"]])}," 每分钟错误限制 ",2),e("div",he,[n(e("input",{type:"number","onUpdate:modelValue":o[20]||(o[20]=r=>l.value.errorMinute=r),class:a(["w-24 rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(t)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,l.value.errorMinute]]),e("span",{class:a([s(t)?"text-gray-300":"text-gray-700"])},"分钟",2)])]),e("div",_e,[e("label",{class:a(["block text-sm font-medium",[s(t)?"text-gray-300":"text-gray-700"]])}," 错误次数限制 ",2),e("div",we,[n(e("input",{type:"number","onUpdate:modelValue":o[21]||(o[21]=r=>l.value.errorCount=r),class:a(["w-24 rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(t)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,l.value.errorCount]]),e("span",{class:a([s(t)?"text-gray-300":"text-gray-700"])},"次",2)])])])]),e("div",{class:"flex justify-end mt-8"},[e("button",{onClick:U,class:"px-4 py-2 bg-indigo-600 text-white rounded-md hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 transition-colors duration-200"}," 保存设置 ")])])],2)]))}}),Ve=F(ke,[["__scopeId","data-v-2f785aa5"]]);export{Ve as default};
+import{B as V,r as p,u as B,p as b,b as m,d as e,n as a,e as s,h as n,v as i,C as v,i as M,F as C,x as D,t as f,z,A as h,M as A,_ as F}from"./index-b4wH2aDB.js";const T={class:"p-6 h-screen overflow-y-auto custom-scrollbar"},K={class:"space-y-4"},E={class:"grid grid-cols-1 gap-6"},G={class:"space-y-2"},I={class:"space-y-2"},j={class:"space-y-2"},N={class:"relative"},L={class:"space-y-2"},R={class:"space-y-2"},$={class:"grid grid-cols-1 gap-6 mt-8"},q={class:"space-y-2"},H={class:"space-y-2"},J={class:"mt-8"},O={class:"space-y-4"},P={class:"space-y-2"},Q={key:0,class:"space-y-4"},W={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},X={class:"space-y-2"},Y={class:"space-y-2"},Z={class:"space-y-2"},ee={class:"space-y-2"},oe={class:"mt-8"},re={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},te={class:"space-y-2"},ae={class:"flex items-center space-x-2"},se={class:"space-y-2"},le={class:"flex items-center space-x-2"},ne={class:"space-y-2"},ie={class:"flex items-center space-x-2"},de={class:"space-y-2"},ue={class:"flex flex-wrap gap-3"},ge=["value"],ce={class:"space-y-2"},ye={class:"flex items-center space-x-2"},pe={class:"space-y-2"},be={class:"flex items-center"},me=["aria-checked"],ve={class:"mt-8"},xe={class:"grid grid-cols-1 md:grid-cols-2 gap-6"},fe={class:"space-y-2"},he={class:"flex items-center space-x-2"},_e={class:"space-y-2"},we={class:"flex items-center space-x-2"},ke=V({__name:"SystemSettingsView",setup(Ue){const t=z("isDarkMode"),l=p({name:"",description:"",file_storage:"",expireStyle:[],admin_token:"",robotsText:"",keywords:"",notify_title:"",notify_content:"",openUpload:1,uploadSize:1,uploadMinute:1,max_save_seconds:0,opacity:.9,s3_access_key_id:"",background:"",showAdminAddr:0,page_explain:"",s3_secret_access_key:"",aws_session_token:"",s3_signature_version:"",s3_region_name:"",s3_bucket_name:"",s3_endpoint_url:"",s3_hostname:"",uploadCount:1,errorMinute:1,errorCount:1}),c=p(1),y=p("MB"),u=p(1),g=p("天"),_=(d,o)=>d*{秒:1,分:60,时:3600,天:86400}[o],w=()=>{h({url:"/admin/config/get",method:"get"}).then(d=>{l.value=d.detail;let o=l.value.uploadSize;o>=1024*1024*1024?(c.value=Math.round(o/(1024*1024*1024)),y.value="GB"):o>=1024*1024?(c.value=Math.round(o/(1024*1024)),y.value="MB"):(c.value=Math.round(o/1024),y.value="KB");let r=l.value.max_save_seconds;r===0?(u.value=7,g.value="天"):r%86400===0&&r>=86400?(u.value=r/86400,g.value="天"):r%3600===0&&r>=3600?(u.value=r/3600,g.value="时"):r%60===0&&r>=60?(u.value=r/60,g.value="分"):(u.value=r,g.value="秒")})},x=B(),k=(d,o)=>d*{KB:1024,MB:1048576,GB:1073741824}[o],U=()=>{const d={...l.value};d.uploadSize=k(c.value,y.value),u.value===0?d.max_save_seconds=7*86400:d.max_save_seconds=_(u.value,g.value),h({url:"/admin/config/update",method:"patch",data:d}).then(o=>{o.code==200?x.showAlert("保存成功","success"):x.showAlert(o.message,"error")})};return w(),(d,o)=>(b(),m("div",T,[e("h2",{class:a(["text-2xl font-bold mb-6",[s(t)?"text-white":"text-gray-800"]])}," 系统设置 ",2),e("div",{class:a(["space-y-6 rounded-lg shadow-md p-6",[s(t)?"bg-gray-800 bg-opacity-70":"bg-white"]])},[e("section",K,[e("h3",{class:a(["text-lg font-medium mb-4",[s(t)?"text-white":"text-gray-800"]])}," 基本设置 ",2),e("div",E,[e("div",G,[e("label",{class:a(["block text-sm font-medium",[s(t)?"text-gray-300":"text-gray-700"]])}," 网站名称 ",2),n(e("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=r=>l.value.name=r),class:a(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(t)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,l.value.name]])]),e("div",I,[e("label",{class:a(["block text-sm font-medium",[s(t)?"text-gray-300":"text-gray-700"]])}," 网站描述 ",2),n(e("input",{type:"text","onUpdate:modelValue":o[1]||(o[1]=r=>l.value.description=r),class:a(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(t)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,l.value.description]])]),e("div",j,[e("label",{class:a(["block text-sm font-medium",[s(t)?"text-gray-300":"text-gray-700"]])}," 管理员密码 ",2),e("div",N,[n(e("input",{type:"password","onUpdate:modelValue":o[2]||(o[2]=r=>l.value.admin_token=r),placeholder:"留空则不修改密码",class:a(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(t)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,l.value.admin_token]]),e("div",{class:a(["absolute inset-y-0 right-0 flex items-center pr-3 text-sm text-gray-400",[s(t)?"text-gray-500":"text-gray-400"]])},o[22]||(o[22]=[e("span",{class:"text-xs"},"留空则不修改",-1)]),2)])]),e("div",L,[e("label",{class:a(["block text-sm font-medium",[s(t)?"text-gray-300":"text-gray-700"]])}," 关键词 ",2),n(e("input",{type:"text","onUpdate:modelValue":o[3]||(o[3]=r=>l.value.keywords=r),class:a(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(t)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,l.value.keywords]])]),e("div",R,[e("label",{class:a(["block text-sm font-medium",[s(t)?"text-gray-300":"text-gray-700"]])}," Robots.txt ",2),n(e("textarea",{"onUpdate:modelValue":o[4]||(o[4]=r=>l.value.robotsText=r),rows:"3",class:a(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border resize-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(t)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,l.value.robotsText]])])]),e("div",$,[e("div",q,[e("label",{class:a(["block text-sm font-medium",[s(t)?"text-gray-300":"text-gray-700"]])}," 通知标题 ",2),n(e("input",{type:"text","onUpdate:modelValue":o[5]||(o[5]=r=>l.value.notify_title=r),class:a(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(t)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,l.value.notify_title]])]),e("div",H,[e("label",{class:a(["block text-sm font-medium",[s(t)?"text-gray-300":"text-gray-700"]])}," 通知内容 ",2),n(e("textarea",{"onUpdate:modelValue":o[6]||(o[6]=r=>l.value.notify_content=r),rows:"3",class:a(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border resize-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(t)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,l.value.notify_content]])])]),e("div",J,[e("h3",{class:a(["text-lg font-medium mb-4",[s(t)?"text-white":"text-gray-800"]])}," 存储设置 ",2),e("div",O,[e("div",P,[e("label",{class:a(["block text-sm font-medium",[s(t)?"text-gray-300":"text-gray-700"]])}," 存储方式 ",2),n(e("select",{"onUpdate:modelValue":o[7]||(o[7]=r=>l.value.file_storage=r),class:a(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border appearance-none bg-no-repeat bg-right focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none cursor-pointer",[s(t)?"bg-gray-700 border-gray-600 text-white hover:border-gray-500":"border-gray-300 hover:border-gray-400"]]),style:{"background-image":"url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M7%208l3%203%203-3%22%20stroke%3D%22%236B7280%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E')"}},o[23]||(o[23]=[e("option",{value:"local"},"本地存储",-1),e("option",{value:"s3"},"S3 存储",-1)]),2),[[v,l.value.file_storage]])]),l.value.file_storage==="s3"?(b(),m("div",Q,[e("div",W,[e("div",X,[e("label",{class:a(["block text-sm font-medium",[s(t)?"text-gray-300":"text-gray-700"]])}," S3 AccessKeyId ",2),n(e("input",{type:"text","onUpdate:modelValue":o[8]||(o[8]=r=>l.value.s3_access_key_id=r),class:a(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(t)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,l.value.s3_access_key_id]])]),e("div",Y,[e("label",{class:a(["block text-sm font-medium",[s(t)?"text-gray-300":"text-gray-700"]])}," S3 SecretAccessKey ",2),n(e("input",{type:"password","onUpdate:modelValue":o[9]||(o[9]=r=>l.value.s3_secret_access_key=r),class:a(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(t)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,l.value.s3_secret_access_key]])]),e("div",Z,[e("label",{class:a(["block text-sm font-medium",[s(t)?"text-gray-300":"text-gray-700"]])}," S3 BucketName ",2),n(e("input",{type:"text","onUpdate:modelValue":o[10]||(o[10]=r=>l.value.s3_bucket_name=r),class:a(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(t)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,l.value.s3_bucket_name]])]),e("div",ee,[e("label",{class:a(["block text-sm font-medium",[s(t)?"text-gray-300":"text-gray-700"]])}," S3 EndpointUrl ",2),n(e("input",{type:"text","onUpdate:modelValue":o[11]||(o[11]=r=>l.value.s3_endpoint_url=r),class:a(["w-full rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(t)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,l.value.s3_endpoint_url]])])])])):M("",!0)])]),e("div",oe,[e("h3",{class:a(["text-lg font-medium mb-4",[s(t)?"text-white":"text-gray-800"]])}," 上传限制 ",2),e("div",re,[e("div",te,[e("label",{class:a(["block text-sm font-medium",[s(t)?"text-gray-300":"text-gray-700"]])}," 每分钟上传限制 ",2),e("div",ae,[n(e("input",{type:"number","onUpdate:modelValue":o[12]||(o[12]=r=>l.value.uploadMinute=r),class:a(["w-24 rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(t)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,l.value.uploadMinute]]),e("span",{class:a([s(t)?"text-gray-300":"text-gray-700"])},"分钟",2)])]),e("div",se,[e("label",{class:a(["block text-sm font-medium",[s(t)?"text-gray-300":"text-gray-700"]])}," 上传数量限制 ",2),e("div",le,[n(e("input",{type:"number","onUpdate:modelValue":o[13]||(o[13]=r=>l.value.uploadCount=r),class:a(["w-24 rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(t)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,l.value.uploadCount]]),e("span",{class:a([s(t)?"text-gray-300":"text-gray-700"])},"个文件",2)])]),e("div",ne,[e("label",{class:a(["block text-sm font-medium",[s(t)?"text-gray-300":"text-gray-700"]])}," 文件大小限制 ",2),e("div",ie,[n(e("input",{type:"number","onUpdate:modelValue":o[14]||(o[14]=r=>c.value=r),class:a(["w-24 rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(t)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,c.value]]),n(e("select",{"onUpdate:modelValue":o[15]||(o[15]=r=>y.value=r),class:a(["rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(t)?"bg-gray-700 border-gray-600 text-white hover:border-gray-500":"border-gray-300 hover:border-gray-400"]])},o[24]||(o[24]=[e("option",{value:"KB"},"KB",-1),e("option",{value:"MB"},"MB",-1),e("option",{value:"GB"},"GB",-1)]),2),[[v,y.value]])])]),e("div",de,[e("label",{class:a(["block text-sm font-medium mb-2",[s(t)?"text-gray-300":"text-gray-700"]])}," 过期方式 ",2),e("div",ue,[(b(),m(C,null,D(["day","hour","minute","forever","count"],r=>e("label",{key:r,class:"relative inline-flex items-center group cursor-pointer"},[n(e("input",{type:"checkbox",value:r,"onUpdate:modelValue":o[16]||(o[16]=S=>l.value.expireStyle=S),class:"peer sr-only"},null,8,ge),[[A,l.value.expireStyle]]),e("div",{class:a(["px-4 py-2 rounded-full border-2 transition-all duration-200 select-none",[l.value.expireStyle.includes(r)?(s(t),"bg-indigo-600 border-indigo-600 text-white"):s(t)?"bg-gray-700 border-gray-600 text-gray-300 hover:border-indigo-500":"bg-white border-gray-300 text-gray-700 hover:border-indigo-500"]])},f({day:"按天",hour:"按小时",minute:"按分钟",forever:"永久",count:"按次数"}[r]),3)])),64))])]),e("div",ce,[e("label",{class:a(["block text-sm font-medium",[s(t)?"text-gray-300":"text-gray-700"]])}," 最长保存时间 ",2),e("div",ye,[n(e("input",{type:"number","onUpdate:modelValue":o[17]||(o[17]=r=>u.value=r),class:a(["w-24 rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(t)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,u.value]]),n(e("select",{"onUpdate:modelValue":o[18]||(o[18]=r=>g.value=r),class:a(["rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(t)?"bg-gray-700 border-gray-600 text-white hover:border-gray-500":"border-gray-300 hover:border-gray-400"]])},o[25]||(o[25]=[e("option",{value:"秒"},"秒",-1),e("option",{value:"分"},"分",-1),e("option",{value:"时"},"时",-1),e("option",{value:"天"},"天",-1)]),2),[[v,g.value]])])]),e("div",pe,[e("label",{class:a(["block text-sm font-medium mb-2",[s(t)?"text-gray-300":"text-gray-700"]])}," 游客上传 ",2),e("div",be,[e("button",{type:"button",onClick:o[19]||(o[19]=r=>l.value.openUpload=l.value.openUpload===1?0:1),class:a(["relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2",[l.value.openUpload===1?"bg-indigo-600":"bg-gray-200"]]),role:"switch","aria-checked":l.value.openUpload===1},[e("span",{class:a(["pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out",[l.value.openUpload===1?"translate-x-5":"translate-x-0",s(t)&&l.value.openUpload!==1?"bg-gray-100":"bg-white"]])},null,2)],10,me),e("span",{class:a(["ml-3 text-sm",[s(t)?"text-gray-300":"text-gray-700"]])},f(l.value.openUpload===1?"已开启":"已关闭"),3)])])])]),e("div",ve,[e("h3",{class:a(["text-lg font-medium mb-4",[s(t)?"text-white":"text-gray-800"]])}," 错误限制 ",2),e("div",xe,[e("div",fe,[e("label",{class:a(["block text-sm font-medium",[s(t)?"text-gray-300":"text-gray-700"]])}," 每分钟错误限制 ",2),e("div",he,[n(e("input",{type:"number","onUpdate:modelValue":o[20]||(o[20]=r=>l.value.errorMinute=r),class:a(["w-24 rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(t)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,l.value.errorMinute]]),e("span",{class:a([s(t)?"text-gray-300":"text-gray-700"])},"分钟",2)])]),e("div",_e,[e("label",{class:a(["block text-sm font-medium",[s(t)?"text-gray-300":"text-gray-700"]])}," 错误次数限制 ",2),e("div",we,[n(e("input",{type:"number","onUpdate:modelValue":o[21]||(o[21]=r=>l.value.errorCount=r),class:a(["w-24 rounded-md shadow-sm px-4 py-2.5 transition-all duration-200 ease-in-out border focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 outline-none",[s(t)?"bg-gray-700 border-gray-600 text-white placeholder-gray-400 hover:border-gray-500":"border-gray-300 hover:border-gray-400 placeholder-gray-500"]])},null,2),[[i,l.value.errorCount]]),e("span",{class:a([s(t)?"text-gray-300":"text-gray-700"])},"次",2)])])])]),e("div",{class:"flex justify-end mt-8"},[e("button",{onClick:U,class:"px-4 py-2 bg-indigo-600 text-white rounded-md hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 transition-colors duration-200"}," 保存设置 ")])])],2)]))}}),Ve=F(ke,[["__scopeId","data-v-2f785aa5"]]);export{Ve as default};
diff --git a/fcb-fronted/dist/assets/_commonjsHelpers-BfvhQmQf.js b/fcb-fronted/dist/assets/_commonjsHelpers-DsI9l0Rc.js
similarity index 99%
rename from fcb-fronted/dist/assets/_commonjsHelpers-BfvhQmQf.js
rename to fcb-fronted/dist/assets/_commonjsHelpers-DsI9l0Rc.js
index f8466274e..cc82e8ac8 100644
--- a/fcb-fronted/dist/assets/_commonjsHelpers-BfvhQmQf.js
+++ b/fcb-fronted/dist/assets/_commonjsHelpers-DsI9l0Rc.js
@@ -1,4 +1,4 @@
-import{c as D,B as _,E as I,r as k,G as U,o as W,H as $,I as Q}from"./index-42gh9IW1.js";/**
+import{c as D,B as _,E as I,r as k,G as U,o as W,H as $,I as Q}from"./index-b4wH2aDB.js";/**
  * @license lucide-vue-next v0.445.0 - ISC
  *
  * This source code is licensed under the ISC license.
diff --git a/fcb-fronted/dist/assets/box-BR3LWkAA.js b/fcb-fronted/dist/assets/box-fk1vZEzO.js
similarity index 90%
rename from fcb-fronted/dist/assets/box-BR3LWkAA.js
rename to fcb-fronted/dist/assets/box-fk1vZEzO.js
index 170d12251..5e19d7054 100644
--- a/fcb-fronted/dist/assets/box-BR3LWkAA.js
+++ b/fcb-fronted/dist/assets/box-fk1vZEzO.js
@@ -1,4 +1,4 @@
-import{c as a}from"./index-42gh9IW1.js";/**
+import{c as a}from"./index-b4wH2aDB.js";/**
  * @license lucide-vue-next v0.445.0 - ISC
  *
  * This source code is licensed under the ISC license.
diff --git a/fcb-fronted/dist/assets/file-DzVUhNo3.js b/fcb-fronted/dist/assets/file-CezeW3my.js
similarity index 88%
rename from fcb-fronted/dist/assets/file-DzVUhNo3.js
rename to fcb-fronted/dist/assets/file-CezeW3my.js
index 618278538..089c352fa 100644
--- a/fcb-fronted/dist/assets/file-DzVUhNo3.js
+++ b/fcb-fronted/dist/assets/file-CezeW3my.js
@@ -1,4 +1,4 @@
-import{c as a}from"./index-42gh9IW1.js";/**
+import{c as a}from"./index-b4wH2aDB.js";/**
  * @license lucide-vue-next v0.445.0 - ISC
  *
  * This source code is licensed under the ISC license.
diff --git a/fcb-fronted/dist/assets/index-42gh9IW1.js b/fcb-fronted/dist/assets/index-b4wH2aDB.js
similarity index 99%
rename from fcb-fronted/dist/assets/index-42gh9IW1.js
rename to fcb-fronted/dist/assets/index-b4wH2aDB.js
index 05a6e9cdc..f8eb423a3 100644
--- a/fcb-fronted/dist/assets/index-42gh9IW1.js
+++ b/fcb-fronted/dist/assets/index-b4wH2aDB.js
@@ -1,4 +1,4 @@
-const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/RetrievewFileView-qNNvzoNu.js","assets/_commonjsHelpers-BfvhQmQf.js","assets/box-BR3LWkAA.js","assets/file-DzVUhNo3.js","assets/trash-C4vprmIc.js","assets/RetrievewFileView-C_lpDe7q.css","assets/SendFileView-Dkh1hDKF.js","assets/SendFileView-BlI9awuG.css","assets/AdminLayout-BlNz_o4U.js","assets/AdminLayout-CEJ6vCgl.css","assets/DashboardView-B8vFsqfC.js","assets/FileManageView-CzRKUKO2.js","assets/SystemSettingsView-C5ycrk-T.js","assets/SystemSettingsView-2lDuNKAP.css","assets/LoginView-BMK8W77m.js","assets/LoginView-BU7fFnDZ.css"])))=>i.map(i=>d[i]);
+const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/RetrievewFileView-CVzgwexs.js","assets/_commonjsHelpers-DsI9l0Rc.js","assets/box-fk1vZEzO.js","assets/file-CezeW3my.js","assets/trash-2qdaMQPm.js","assets/RetrievewFileView-C_lpDe7q.css","assets/SendFileView-DjsGNqez.js","assets/SendFileView-D1IOhjmE.css","assets/AdminLayout-BBfRqdU7.js","assets/AdminLayout-CEJ6vCgl.css","assets/DashboardView-DMN1r5C4.js","assets/FileManageView-B6HJEg5n.js","assets/SystemSettingsView-CvU75WjY.js","assets/SystemSettingsView-2lDuNKAP.css","assets/LoginView-CNbKA-If.js","assets/LoginView-BU7fFnDZ.css"])))=>i.map(i=>d[i]);
 (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();/**
 * @vue/shared v3.5.8
 * (c) 2018-present Yuxi (Evan) You and Vue contributors
@@ -83,4 +83,4 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/RetrievewFileVi
 `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(r=>s.set(r)),s}static accessor(t){const s=(this[Ri]=this[Ri]={accessors:{}}).accessors,r=this.prototype;function o(i){const l=bn(i);s[l]||(ap(r,i),s[l]=!0)}return b.isArray(t)?t.forEach(o):o(t),this}}Ie.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);b.reduceDescriptors(Ie.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});b.freezeMethods(Ie);function ir(e,t){const n=this||Gn,s=t||n,r=Ie.from(s.headers);let o=s.data;return b.forEach(e,function(l){o=l.call(n,o,r.normalize(),t?t.status:void 0)}),r.normalize(),o}function Dc(e){return!!(e&&e.__CANCEL__)}function hn(e,t,n){G.call(this,e??"canceled",G.ERR_CANCELED,t,n),this.name="CanceledError"}b.inherits(hn,G,{__CANCEL__:!0});function jc(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new G("Request failed with status code "+n.status,[G.ERR_BAD_REQUEST,G.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function up(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function fp(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,o=0,i;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),a=s[o];i||(i=u),n[r]=c,s[r]=u;let f=o,p=0;for(;f!==r;)p+=n[f++],f=f%e;if(r=(r+1)%e,r===o&&(o=(o+1)%e),u-i<t)return;const m=a&&u-a;return m?Math.round(p*1e3/m):void 0}}function dp(e,t){let n=0,s=1e3/t,r,o;const i=(u,a=Date.now())=>{n=a,r=null,o&&(clearTimeout(o),o=null),e.apply(null,u)};return[(...u)=>{const a=Date.now(),f=a-n;f>=s?i(u,a):(r=u,o||(o=setTimeout(()=>{o=null,i(r)},s-f)))},()=>r&&i(r)]}const ys=(e,t,n=3)=>{let s=0;const r=fp(50,250);return dp(o=>{const i=o.loaded,l=o.lengthComputable?o.total:void 0,c=i-s,u=r(c),a=i<=l;s=i;const f={loaded:i,total:l,progress:l?i/l:void 0,bytes:c,rate:u||void 0,estimated:u&&l&&a?(l-i)/u:void 0,event:o,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},n)},xi=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},Ci=e=>(...t)=>b.asap(()=>e(...t)),hp=Pe.hasStandardBrowserEnv?function(){const t=Pe.navigator&&/(msie|trident)/i.test(Pe.navigator.userAgent),n=document.createElement("a");let s;function r(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return s=r(window.location.href),function(i){const l=b.isString(i)?r(i):i;return l.protocol===s.protocol&&l.host===s.host}}():function(){return function(){return!0}}(),pp=Pe.hasStandardBrowserEnv?{write(e,t,n,s,r,o){const i=[e+"="+encodeURIComponent(t)];b.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),b.isString(s)&&i.push("path="+s),b.isString(r)&&i.push("domain="+r),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function mp(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function gp(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Bc(e,t){return e&&!mp(t)?gp(e,t):t}const Ai=e=>e instanceof Ie?{...e}:e;function qt(e,t){t=t||{};const n={};function s(u,a,f){return b.isPlainObject(u)&&b.isPlainObject(a)?b.merge.call({caseless:f},u,a):b.isPlainObject(a)?b.merge({},a):b.isArray(a)?a.slice():a}function r(u,a,f){if(b.isUndefined(a)){if(!b.isUndefined(u))return s(void 0,u,f)}else return s(u,a,f)}function o(u,a){if(!b.isUndefined(a))return s(void 0,a)}function i(u,a){if(b.isUndefined(a)){if(!b.isUndefined(u))return s(void 0,u)}else return s(void 0,a)}function l(u,a,f){if(f in t)return s(u,a);if(f in e)return s(void 0,u)}const c={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(u,a)=>r(Ai(u),Ai(a),!0)};return b.forEach(Object.keys(Object.assign({},e,t)),function(a){const f=c[a]||r,p=f(e[a],t[a],a);b.isUndefined(p)&&f!==l||(n[a]=p)}),n}const Hc=e=>{const t=qt({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:r,xsrfCookieName:o,headers:i,auth:l}=t;t.headers=i=Ie.from(i),t.url=Mc(Bc(t.baseURL,t.url),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(b.isFormData(n)){if(Pe.hasStandardBrowserEnv||Pe.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((c=i.getContentType())!==!1){const[u,...a]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...a].join("; "))}}if(Pe.hasStandardBrowserEnv&&(s&&b.isFunction(s)&&(s=s(t)),s||s!==!1&&hp(t.url))){const u=r&&o&&pp.read(o);u&&i.set(r,u)}return t},yp=typeof XMLHttpRequest<"u",bp=yp&&function(e){return new Promise(function(n,s){const r=Hc(e);let o=r.data;const i=Ie.from(r.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:u}=r,a,f,p,m,y;function w(){m&&m(),y&&y(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let E=new XMLHttpRequest;E.open(r.method.toUpperCase(),r.url,!0),E.timeout=r.timeout;function T(){if(!E)return;const P=Ie.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),j={data:!l||l==="text"||l==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:P,config:e,request:E};jc(function(z){n(z),w()},function(z){s(z),w()},j),E=null}"onloadend"in E?E.onloadend=T:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(T)},E.onabort=function(){E&&(s(new G("Request aborted",G.ECONNABORTED,e,E)),E=null)},E.onerror=function(){s(new G("Network Error",G.ERR_NETWORK,e,E)),E=null},E.ontimeout=function(){let I=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const j=r.transitional||kc;r.timeoutErrorMessage&&(I=r.timeoutErrorMessage),s(new G(I,j.clarifyTimeoutError?G.ETIMEDOUT:G.ECONNABORTED,e,E)),E=null},o===void 0&&i.setContentType(null),"setRequestHeader"in E&&b.forEach(i.toJSON(),function(I,j){E.setRequestHeader(j,I)}),b.isUndefined(r.withCredentials)||(E.withCredentials=!!r.withCredentials),l&&l!=="json"&&(E.responseType=r.responseType),u&&([p,y]=ys(u,!0),E.addEventListener("progress",p)),c&&E.upload&&([f,m]=ys(c),E.upload.addEventListener("progress",f),E.upload.addEventListener("loadend",m)),(r.cancelToken||r.signal)&&(a=P=>{E&&(s(!P||P.type?new hn(null,e,E):P),E.abort(),E=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const C=up(r.url);if(C&&Pe.protocols.indexOf(C)===-1){s(new G("Unsupported protocol "+C+":",G.ERR_BAD_REQUEST,e));return}E.send(o||null)})},_p=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,r;const o=function(u){if(!r){r=!0,l();const a=u instanceof Error?u:this.reason;s.abort(a instanceof G?a:new hn(a instanceof Error?a.message:a))}};let i=t&&setTimeout(()=>{i=null,o(new G(`timeout ${t} of ms exceeded`,G.ETIMEDOUT))},t);const l=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));const{signal:c}=s;return c.unsubscribe=()=>b.asap(l),c}},vp=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let s=0,r;for(;s<n;)r=s+t,yield e.slice(s,r),s=r},wp=async function*(e,t){for await(const n of Ep(e))yield*vp(n,t)},Ep=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:s}=await t.read();if(n)break;yield s}}finally{await t.cancel()}},Ti=(e,t,n,s)=>{const r=wp(e,t);let o=0,i,l=c=>{i||(i=!0,s&&s(c))};return new ReadableStream({async pull(c){try{const{done:u,value:a}=await r.next();if(u){l(),c.close();return}let f=a.byteLength;if(n){let p=o+=f;n(p)}c.enqueue(new Uint8Array(a))}catch(u){throw l(u),u}},cancel(c){return l(c),r.return()}},{highWaterMark:2})},$s=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",$c=$s&&typeof ReadableStream=="function",Sp=$s&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Uc=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Rp=$c&&Uc(()=>{let e=!1;const t=new Request(Pe.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Oi=64*1024,Ar=$c&&Uc(()=>b.isReadableStream(new Response("").body)),bs={stream:Ar&&(e=>e.body)};$s&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!bs[t]&&(bs[t]=b.isFunction(e[t])?n=>n[t]():(n,s)=>{throw new G(`Response type '${t}' is not supported`,G.ERR_NOT_SUPPORT,s)})})})(new Response);const xp=async e=>{if(e==null)return 0;if(b.isBlob(e))return e.size;if(b.isSpecCompliantForm(e))return(await new Request(Pe.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(b.isArrayBufferView(e)||b.isArrayBuffer(e))return e.byteLength;if(b.isURLSearchParams(e)&&(e=e+""),b.isString(e))return(await Sp(e)).byteLength},Cp=async(e,t)=>{const n=b.toFiniteNumber(e.getContentLength());return n??xp(t)},Ap=$s&&(async e=>{let{url:t,method:n,data:s,signal:r,cancelToken:o,timeout:i,onDownloadProgress:l,onUploadProgress:c,responseType:u,headers:a,withCredentials:f="same-origin",fetchOptions:p}=Hc(e);u=u?(u+"").toLowerCase():"text";let m=_p([r,o&&o.toAbortSignal()],i),y;const w=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let E;try{if(c&&Rp&&n!=="get"&&n!=="head"&&(E=await Cp(a,s))!==0){let j=new Request(t,{method:"POST",body:s,duplex:"half"}),X;if(b.isFormData(s)&&(X=j.headers.get("content-type"))&&a.setContentType(X),j.body){const[z,V]=xi(E,ys(Ci(c)));s=Ti(j.body,Oi,z,V)}}b.isString(f)||(f=f?"include":"omit");const T="credentials"in Request.prototype;y=new Request(t,{...p,signal:m,method:n.toUpperCase(),headers:a.normalize().toJSON(),body:s,duplex:"half",credentials:T?f:void 0});let C=await fetch(y);const P=Ar&&(u==="stream"||u==="response");if(Ar&&(l||P&&w)){const j={};["status","statusText","headers"].forEach(N=>{j[N]=C[N]});const X=b.toFiniteNumber(C.headers.get("content-length")),[z,V]=l&&xi(X,ys(Ci(l),!0))||[];C=new Response(Ti(C.body,Oi,z,()=>{V&&V(),w&&w()}),j)}u=u||"text";let I=await bs[b.findKey(bs,u)||"text"](C,e);return!P&&w&&w(),await new Promise((j,X)=>{jc(j,X,{data:I,headers:Ie.from(C.headers),status:C.status,statusText:C.statusText,config:e,request:y})})}catch(T){throw w&&w(),T&&T.name==="TypeError"&&/fetch/i.test(T.message)?Object.assign(new G("Network Error",G.ERR_NETWORK,e,y),{cause:T.cause||T}):G.from(T,T&&T.code,e,y)}}),Tr={http:Uh,xhr:bp,fetch:Ap};b.forEach(Tr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Pi=e=>`- ${e}`,Tp=e=>b.isFunction(e)||e===null||e===!1,Vc={getAdapter:e=>{e=b.isArray(e)?e:[e];const{length:t}=e;let n,s;const r={};for(let o=0;o<t;o++){n=e[o];let i;if(s=n,!Tp(n)&&(s=Tr[(i=String(n)).toLowerCase()],s===void 0))throw new G(`Unknown adapter '${i}'`);if(s)break;r[i||"#"+o]=s}if(!s){const o=Object.entries(r).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since :
 `+o.map(Pi).join(`
 `):" "+Pi(o[0]):"as no adapter specified";throw new G("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return s},adapters:Tr};function lr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new hn(null,e)}function Ii(e){return lr(e),e.headers=Ie.from(e.headers),e.data=ir.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Vc.getAdapter(e.adapter||Gn.adapter)(e).then(function(s){return lr(e),s.data=ir.call(e,e.transformResponse,s),s.headers=Ie.from(s.headers),s},function(s){return Dc(s)||(lr(e),s&&s.response&&(s.response.data=ir.call(e,e.transformResponse,s.response),s.response.headers=Ie.from(s.response.headers))),Promise.reject(s)})}const qc="1.7.7",oo={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{oo[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const Li={};oo.transitional=function(t,n,s){function r(o,i){return"[Axios v"+qc+"] Transitional option '"+o+"'"+i+(s?". "+s:"")}return(o,i,l)=>{if(t===!1)throw new G(r(i," has been removed"+(n?" in "+n:"")),G.ERR_DEPRECATED);return n&&!Li[i]&&(Li[i]=!0,console.warn(r(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,l):!0}};function Op(e,t,n){if(typeof e!="object")throw new G("options must be an object",G.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const o=s[r],i=t[o];if(i){const l=e[o],c=l===void 0||i(l,o,e);if(c!==!0)throw new G("option "+o+" must be "+c,G.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new G("Unknown option "+o,G.ERR_BAD_OPTION)}}const Or={assertOptions:Op,validators:oo},_t=Or.validators;class $t{constructor(t){this.defaults=t,this.interceptors={request:new Si,response:new Si}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const o=r.stack?r.stack.replace(/^.+\n/,""):"";try{s.stack?o&&!String(s.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(s.stack+=`
-`+o):s.stack=o}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=qt(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:o}=n;s!==void 0&&Or.assertOptions(s,{silentJSONParsing:_t.transitional(_t.boolean),forcedJSONParsing:_t.transitional(_t.boolean),clarifyTimeoutError:_t.transitional(_t.boolean)},!1),r!=null&&(b.isFunction(r)?n.paramsSerializer={serialize:r}:Or.assertOptions(r,{encode:_t.function,serialize:_t.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&b.merge(o.common,o[n.method]);o&&b.forEach(["delete","get","head","post","put","patch","common"],y=>{delete o[y]}),n.headers=Ie.concat(i,o);const l=[];let c=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(c=c&&w.synchronous,l.unshift(w.fulfilled,w.rejected))});const u=[];this.interceptors.response.forEach(function(w){u.push(w.fulfilled,w.rejected)});let a,f=0,p;if(!c){const y=[Ii.bind(this),void 0];for(y.unshift.apply(y,l),y.push.apply(y,u),p=y.length,a=Promise.resolve(n);f<p;)a=a.then(y[f++],y[f++]);return a}p=l.length;let m=n;for(f=0;f<p;){const y=l[f++],w=l[f++];try{m=y(m)}catch(E){w.call(this,E);break}}try{a=Ii.call(this,m)}catch(y){return Promise.reject(y)}for(f=0,p=u.length;f<p;)a=a.then(u[f++],u[f++]);return a}getUri(t){t=qt(this.defaults,t);const n=Bc(t.baseURL,t.url);return Mc(n,t.params,t.paramsSerializer)}}b.forEach(["delete","get","head","options"],function(t){$t.prototype[t]=function(n,s){return this.request(qt(s||{},{method:t,url:n,data:(s||{}).data}))}});b.forEach(["post","put","patch"],function(t){function n(s){return function(o,i,l){return this.request(qt(l||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}$t.prototype[t]=n(),$t.prototype[t+"Form"]=n(!0)});class io{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const s=this;this.promise.then(r=>{if(!s._listeners)return;let o=s._listeners.length;for(;o-- >0;)s._listeners[o](r);s._listeners=null}),this.promise.then=r=>{let o;const i=new Promise(l=>{s.subscribe(l),o=l}).then(r);return i.cancel=function(){s.unsubscribe(o)},i},t(function(o,i,l){s.reason||(s.reason=new hn(o,i,l),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new io(function(r){t=r}),cancel:t}}}function Pp(e){return function(n){return e.apply(null,n)}}function Ip(e){return b.isObject(e)&&e.isAxiosError===!0}const Pr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Pr).forEach(([e,t])=>{Pr[t]=e});function Kc(e){const t=new $t(e),n=Ec($t.prototype.request,t);return b.extend(n,$t.prototype,t,{allOwnKeys:!0}),b.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Kc(qt(e,r))},n}const ye=Kc(Gn);ye.Axios=$t;ye.CanceledError=hn;ye.CancelToken=io;ye.isCancel=Dc;ye.VERSION=qc;ye.toFormData=Hs;ye.AxiosError=G;ye.Cancel=ye.CanceledError;ye.all=function(t){return Promise.all(t)};ye.spread=Pp;ye.isAxiosError=Ip;ye.mergeConfig=qt;ye.AxiosHeaders=Ie;ye.formToJSON=e=>Fc(b.isHTMLForm(e)?new FormData(e):e);ye.getAdapter=Vc.getAdapter;ye.HttpStatusCode=Pr;ye.default=ye;const Lp="",Wc=Lp,lo=ye.create({baseURL:Wc,timeout:1e4,headers:{"Content-Type":"application/json"}});lo.interceptors.request.use(e=>{const t=localStorage.getItem("token");return t&&(e.headers.Authorization=`Bearer ${t}`),e.url&&!e.url.startsWith("http")&&(e.url=`${Wc}/${e.url.replace(/^\//,"")}`),e},e=>Promise.reject(e));lo.interceptors.response.use(e=>e.data,e=>{if(e.response)switch(e.response.status){case 401:console.error("未授权,请重新登录"),localStorage.clear(),window.location.href="/#/login";break;case 403:console.error("禁止访问");break;case 404:console.error("请求的资源不存在");break;default:console.error("发生错误:",e.response.data)}else e.request?console.error("未收到响应:",e.request):console.error("请求配置错误:",e.message);return Promise.reject(e)});const zc=Uf("alert",{state:()=>({alerts:[]}),actions:{showAlert(e,t="info",n=5e3){const s=Date.now(),r=Date.now();this.alerts.push({id:s,message:e,type:t,progress:100,duration:n,startTime:r}),setTimeout(()=>this.removeAlert(s),n)},removeAlert(e){const t=this.alerts.findIndex(n=>n.id===e);t>-1&&this.alerts.splice(t,1)},updateAlertProgress(e){const t=this.alerts.find(n=>n.id===e);if(t){const s=100-(Date.now()-t.startTime)/t.duration*100;t.progress=Math.max(0,s),t.progress<=0&&this.removeAlert(e)}}}}),Np={class:"p-4"},Mp={class:"flex items-start"},kp={class:"flex-shrink-0"},Fp={class:"ml-3 flex-1 pt-0.5"},Dp=["innerHTML"],jp={class:"ml-4 flex-shrink-0 flex"},Bp=["onClick"],Hp={class:"h-1 bg-white bg-opacity-25"},$p=Kn({__name:"AlertComponent",setup(e){const t=zc(),{alerts:n}=Vf(t),{removeAlert:s,updateAlertProgress:r}=t,o={success:"from-green-500 to-green-600",error:"from-red-500 to-red-600",warning:"from-yellow-500 to-yellow-600",info:"from-blue-500 to-blue-600"},i={success:Xd,error:eh,warning:Jd,info:Qd};let l;return Os(()=>{l=setInterval(()=>{n.value.forEach(c=>{r(c.id)})},100)}),Jr(()=>{clearInterval(l)}),(c,u)=>(We(),sn(Ef,{name:"alert-fade",tag:"div",class:"fixed top-4 right-4 z-50 w-full sm:max-w-sm md:max-w-md space-y-4 px-4 sm:px-0"},{default:hs(()=>[(We(!0),Fn(Ue,null,su(Te(n),a=>(We(),Fn("div",{key:a.id,class:fn(["w-full rounded-lg shadow-xl overflow-hidden","bg-gradient-to-r",o[a.type]])},[De("div",Np,[De("div",Mp,[De("div",kp,[(We(),sn(Al(i[a.type]),{class:"h-6 w-6 text-white"}))]),De("div",Fp,[De("p",{class:"text-sm font-medium text-white",innerHTML:a.message},null,8,Dp)]),De("div",jp,[De("button",{onClick:f=>Te(s)(a.id),class:"inline-flex text-white hover:text-gray-200 focus:outline-none transition-colors duration-200"},[u[0]||(u[0]=De("span",{class:"sr-only"},"关闭",-1)),me(Te(th),{class:"h-5 w-5"})],8,Bp)])])]),De("div",Hp,[De("div",{class:"h-full bg-white transition-all duration-100 ease-out",style:Es({width:`${a.progress}%`})},null,4)])],2))),128))]),_:1}))}}),Up=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},Vp=Up($p,[["__scopeId","data-v-03615137"]]),qp={key:0,class:"loading-overlay"},Kp=Kn({__name:"App",setup(e){const t=nn(!1),n=nn(!1),s=Wd(),r=zc(),o=()=>window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,i=()=>{const c=localStorage.getItem("colorMode");return c?c==="dark":null},l=c=>{t.value=c,localStorage.setItem("colorMode",c?"dark":"light")};return Os(()=>{const c=i();l(c!==null?c:o()),lo.post("/",{}).then(u=>{u.code===200&&(localStorage.setItem("config",JSON.stringify(u.detail)),u.detail.notify_title&&u.detail.notify_content&&localStorage.getItem("notify")!==u.detail.notify_title+u.detail.notify_content&&(localStorage.setItem("notify",u.detail.notify_title+u.detail.notify_content),r.showAlert(u.detail.notify_title+": "+u.detail.notify_content,"success")))})}),xu(()=>{document.documentElement.classList.toggle("dark",t.value)}),s.beforeEach((c,u,a)=>{n.value=!0,a()}),s.afterEach(()=>{setTimeout(()=>{n.value=!1},200)}),Ht("isDarkMode",t),Ht("setColorMode",l),Ht("isLoading",n),(c,u)=>(We(),Fn("div",{class:fn(["app-container",t.value?"dark":"light"])},[me(nh,{modelValue:t.value,"onUpdate:modelValue":u[0]||(u[0]=a=>t.value=a)},null,8,["modelValue"]),n.value?(We(),Fn("div",qp,u[1]||(u[1]=[De("div",{class:"loading-spinner"},null,-1)]))):ju("",!0),me(Te(wc),null,{default:hs(({Component:a})=>[me(ef,{name:"fade",mode:"out-in"},{default:hs(()=>[(We(),sn(Al(a),{key:c.$route.fullPath}))]),_:2},1024)]),_:1}),me(Vp)],2))}}),Wp="modulepreload",zp=function(e){return"/"+e},Ni={},Et=function(t,n,s){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),l=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));r=Promise.allSettled(n.map(c=>{if(c=zp(c),c in Ni)return;Ni[c]=!0;const u=c.endsWith(".css"),a=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${a}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":Wp,u||(f.as="script"),f.crossOrigin="",f.href=c,l&&f.setAttribute("nonce",l),document.head.appendChild(f),u)return new Promise((p,m)=>{f.addEventListener("load",p),f.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(i){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i}return r.then(i=>{for(const l of i||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})},Gp=qd({history:wd("/"),routes:[{path:"/",name:"Retrieve",component:()=>Et(()=>import("./RetrievewFileView-qNNvzoNu.js"),__vite__mapDeps([0,1,2,3,4,5]))},{path:"/send",name:"Send",component:()=>Et(()=>import("./SendFileView-Dkh1hDKF.js"),__vite__mapDeps([6,1,3,4,7]))},{path:"/admin",name:"Manage",component:()=>Et(()=>import("./AdminLayout-BlNz_o4U.js"),__vite__mapDeps([8,2,9])),redirect:"/admin/dashboard",children:[{path:"/admin/dashboard",name:"Dashboard",component:()=>Et(()=>import("./DashboardView-B8vFsqfC.js"),__vite__mapDeps([10,3,4]))},{path:"/admin/files",name:"FileManage",component:()=>Et(()=>import("./FileManageView-CzRKUKO2.js"),__vite__mapDeps([11,3]))},{path:"/admin/settings",name:"Settings",component:()=>Et(()=>import("./SystemSettingsView-C5ycrk-T.js"),__vite__mapDeps([12,13]))}]},{path:"/login",name:"Login",component:()=>Et(()=>import("./LoginView-BMK8W77m.js"),__vite__mapDeps([14,2,15]))}]});Et(()=>import("./SendFileView-Dkh1hDKF.js"),__vite__mapDeps([6,1,3,4,7]));const co=Lf(Kp);co.use(Ff());co.use(Gp);co.mount("#app");export{lo as A,Kn as B,em as C,Qp as D,rn as E,Ue as F,Sl as G,Uf as H,Vn as I,Jr as J,sn as K,Al as L,Zp as M,ef as T,th as X,Up as _,Ve as a,Fn as b,Wt as c,De as d,Te as e,me as f,tm as g,Jp as h,ju as i,hs as j,Du as k,nm as l,Xp as m,fn as n,Os as o,We as p,Ef as q,nn as r,Vf as s,la as t,zc as u,Yp as v,Rn as w,su as x,Wd as y,Oe as z};
+`+o):s.stack=o}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=qt(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:o}=n;s!==void 0&&Or.assertOptions(s,{silentJSONParsing:_t.transitional(_t.boolean),forcedJSONParsing:_t.transitional(_t.boolean),clarifyTimeoutError:_t.transitional(_t.boolean)},!1),r!=null&&(b.isFunction(r)?n.paramsSerializer={serialize:r}:Or.assertOptions(r,{encode:_t.function,serialize:_t.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&b.merge(o.common,o[n.method]);o&&b.forEach(["delete","get","head","post","put","patch","common"],y=>{delete o[y]}),n.headers=Ie.concat(i,o);const l=[];let c=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(c=c&&w.synchronous,l.unshift(w.fulfilled,w.rejected))});const u=[];this.interceptors.response.forEach(function(w){u.push(w.fulfilled,w.rejected)});let a,f=0,p;if(!c){const y=[Ii.bind(this),void 0];for(y.unshift.apply(y,l),y.push.apply(y,u),p=y.length,a=Promise.resolve(n);f<p;)a=a.then(y[f++],y[f++]);return a}p=l.length;let m=n;for(f=0;f<p;){const y=l[f++],w=l[f++];try{m=y(m)}catch(E){w.call(this,E);break}}try{a=Ii.call(this,m)}catch(y){return Promise.reject(y)}for(f=0,p=u.length;f<p;)a=a.then(u[f++],u[f++]);return a}getUri(t){t=qt(this.defaults,t);const n=Bc(t.baseURL,t.url);return Mc(n,t.params,t.paramsSerializer)}}b.forEach(["delete","get","head","options"],function(t){$t.prototype[t]=function(n,s){return this.request(qt(s||{},{method:t,url:n,data:(s||{}).data}))}});b.forEach(["post","put","patch"],function(t){function n(s){return function(o,i,l){return this.request(qt(l||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}$t.prototype[t]=n(),$t.prototype[t+"Form"]=n(!0)});class io{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const s=this;this.promise.then(r=>{if(!s._listeners)return;let o=s._listeners.length;for(;o-- >0;)s._listeners[o](r);s._listeners=null}),this.promise.then=r=>{let o;const i=new Promise(l=>{s.subscribe(l),o=l}).then(r);return i.cancel=function(){s.unsubscribe(o)},i},t(function(o,i,l){s.reason||(s.reason=new hn(o,i,l),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new io(function(r){t=r}),cancel:t}}}function Pp(e){return function(n){return e.apply(null,n)}}function Ip(e){return b.isObject(e)&&e.isAxiosError===!0}const Pr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Pr).forEach(([e,t])=>{Pr[t]=e});function Kc(e){const t=new $t(e),n=Ec($t.prototype.request,t);return b.extend(n,$t.prototype,t,{allOwnKeys:!0}),b.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Kc(qt(e,r))},n}const ye=Kc(Gn);ye.Axios=$t;ye.CanceledError=hn;ye.CancelToken=io;ye.isCancel=Dc;ye.VERSION=qc;ye.toFormData=Hs;ye.AxiosError=G;ye.Cancel=ye.CanceledError;ye.all=function(t){return Promise.all(t)};ye.spread=Pp;ye.isAxiosError=Ip;ye.mergeConfig=qt;ye.AxiosHeaders=Ie;ye.formToJSON=e=>Fc(b.isHTMLForm(e)?new FormData(e):e);ye.getAdapter=Vc.getAdapter;ye.HttpStatusCode=Pr;ye.default=ye;const Lp="",Wc=Lp,lo=ye.create({baseURL:Wc,timeout:1e4,headers:{"Content-Type":"application/json"}});lo.interceptors.request.use(e=>{const t=localStorage.getItem("token");return t&&(e.headers.Authorization=`Bearer ${t}`),e.url&&!e.url.startsWith("http")&&(e.url=`${Wc}/${e.url.replace(/^\//,"")}`),e},e=>Promise.reject(e));lo.interceptors.response.use(e=>e.data,e=>{if(e.response)switch(e.response.status){case 401:console.error("未授权,请重新登录"),localStorage.clear(),window.location.href="/#/login";break;case 403:console.error("禁止访问");break;case 404:console.error("请求的资源不存在");break;default:console.error("发生错误:",e.response.data)}else e.request?console.error("未收到响应:",e.request):console.error("请求配置错误:",e.message);return Promise.reject(e)});const zc=Uf("alert",{state:()=>({alerts:[]}),actions:{showAlert(e,t="info",n=5e3){const s=Date.now(),r=Date.now();this.alerts.push({id:s,message:e,type:t,progress:100,duration:n,startTime:r}),setTimeout(()=>this.removeAlert(s),n)},removeAlert(e){const t=this.alerts.findIndex(n=>n.id===e);t>-1&&this.alerts.splice(t,1)},updateAlertProgress(e){const t=this.alerts.find(n=>n.id===e);if(t){const s=100-(Date.now()-t.startTime)/t.duration*100;t.progress=Math.max(0,s),t.progress<=0&&this.removeAlert(e)}}}}),Np={class:"p-4"},Mp={class:"flex items-start"},kp={class:"flex-shrink-0"},Fp={class:"ml-3 flex-1 pt-0.5"},Dp=["innerHTML"],jp={class:"ml-4 flex-shrink-0 flex"},Bp=["onClick"],Hp={class:"h-1 bg-white bg-opacity-25"},$p=Kn({__name:"AlertComponent",setup(e){const t=zc(),{alerts:n}=Vf(t),{removeAlert:s,updateAlertProgress:r}=t,o={success:"from-green-500 to-green-600",error:"from-red-500 to-red-600",warning:"from-yellow-500 to-yellow-600",info:"from-blue-500 to-blue-600"},i={success:Xd,error:eh,warning:Jd,info:Qd};let l;return Os(()=>{l=setInterval(()=>{n.value.forEach(c=>{r(c.id)})},100)}),Jr(()=>{clearInterval(l)}),(c,u)=>(We(),sn(Ef,{name:"alert-fade",tag:"div",class:"fixed top-4 right-4 z-50 w-full sm:max-w-sm md:max-w-md space-y-4 px-4 sm:px-0"},{default:hs(()=>[(We(!0),Fn(Ue,null,su(Te(n),a=>(We(),Fn("div",{key:a.id,class:fn(["w-full rounded-lg shadow-xl overflow-hidden","bg-gradient-to-r",o[a.type]])},[De("div",Np,[De("div",Mp,[De("div",kp,[(We(),sn(Al(i[a.type]),{class:"h-6 w-6 text-white"}))]),De("div",Fp,[De("p",{class:"text-sm font-medium text-white",innerHTML:a.message},null,8,Dp)]),De("div",jp,[De("button",{onClick:f=>Te(s)(a.id),class:"inline-flex text-white hover:text-gray-200 focus:outline-none transition-colors duration-200"},[u[0]||(u[0]=De("span",{class:"sr-only"},"关闭",-1)),me(Te(th),{class:"h-5 w-5"})],8,Bp)])])]),De("div",Hp,[De("div",{class:"h-full bg-white transition-all duration-100 ease-out",style:Es({width:`${a.progress}%`})},null,4)])],2))),128))]),_:1}))}}),Up=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},Vp=Up($p,[["__scopeId","data-v-03615137"]]),qp={key:0,class:"loading-overlay"},Kp=Kn({__name:"App",setup(e){const t=nn(!1),n=nn(!1),s=Wd(),r=zc(),o=()=>window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,i=()=>{const c=localStorage.getItem("colorMode");return c?c==="dark":null},l=c=>{t.value=c,localStorage.setItem("colorMode",c?"dark":"light")};return Os(()=>{const c=i();l(c!==null?c:o()),lo.post("/",{}).then(u=>{u.code===200&&(localStorage.setItem("config",JSON.stringify(u.detail)),u.detail.notify_title&&u.detail.notify_content&&localStorage.getItem("notify")!==u.detail.notify_title+u.detail.notify_content&&(localStorage.setItem("notify",u.detail.notify_title+u.detail.notify_content),r.showAlert(u.detail.notify_title+": "+u.detail.notify_content,"success")))})}),xu(()=>{document.documentElement.classList.toggle("dark",t.value)}),s.beforeEach((c,u,a)=>{n.value=!0,a()}),s.afterEach(()=>{setTimeout(()=>{n.value=!1},200)}),Ht("isDarkMode",t),Ht("setColorMode",l),Ht("isLoading",n),(c,u)=>(We(),Fn("div",{class:fn(["app-container",t.value?"dark":"light"])},[me(nh,{modelValue:t.value,"onUpdate:modelValue":u[0]||(u[0]=a=>t.value=a)},null,8,["modelValue"]),n.value?(We(),Fn("div",qp,u[1]||(u[1]=[De("div",{class:"loading-spinner"},null,-1)]))):ju("",!0),me(Te(wc),null,{default:hs(({Component:a})=>[me(ef,{name:"fade",mode:"out-in"},{default:hs(()=>[(We(),sn(Al(a),{key:c.$route.fullPath}))]),_:2},1024)]),_:1}),me(Vp)],2))}}),Wp="modulepreload",zp=function(e){return"/"+e},Ni={},Et=function(t,n,s){let r=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),l=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));r=Promise.allSettled(n.map(c=>{if(c=zp(c),c in Ni)return;Ni[c]=!0;const u=c.endsWith(".css"),a=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${a}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":Wp,u||(f.as="script"),f.crossOrigin="",f.href=c,l&&f.setAttribute("nonce",l),document.head.appendChild(f),u)return new Promise((p,m)=>{f.addEventListener("load",p),f.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(i){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i}return r.then(i=>{for(const l of i||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})},Gp=qd({history:wd("/"),routes:[{path:"/",name:"Retrieve",component:()=>Et(()=>import("./RetrievewFileView-CVzgwexs.js"),__vite__mapDeps([0,1,2,3,4,5]))},{path:"/send",name:"Send",component:()=>Et(()=>import("./SendFileView-DjsGNqez.js"),__vite__mapDeps([6,1,3,4,7]))},{path:"/admin",name:"Manage",component:()=>Et(()=>import("./AdminLayout-BBfRqdU7.js"),__vite__mapDeps([8,2,9])),redirect:"/admin/dashboard",children:[{path:"/admin/dashboard",name:"Dashboard",component:()=>Et(()=>import("./DashboardView-DMN1r5C4.js"),__vite__mapDeps([10,3,4]))},{path:"/admin/files",name:"FileManage",component:()=>Et(()=>import("./FileManageView-B6HJEg5n.js"),__vite__mapDeps([11,3]))},{path:"/admin/settings",name:"Settings",component:()=>Et(()=>import("./SystemSettingsView-CvU75WjY.js"),__vite__mapDeps([12,13]))}]},{path:"/login",name:"Login",component:()=>Et(()=>import("./LoginView-CNbKA-If.js"),__vite__mapDeps([14,2,15]))}]});Et(()=>import("./SendFileView-DjsGNqez.js"),__vite__mapDeps([6,1,3,4,7]));const co=Lf(Kp);co.use(Ff());co.use(Gp);co.mount("#app");export{lo as A,Kn as B,em as C,Qp as D,rn as E,Ue as F,Sl as G,Uf as H,Vn as I,Jr as J,sn as K,Al as L,Zp as M,ef as T,th as X,Up as _,Ve as a,Fn as b,Wt as c,De as d,Te as e,me as f,tm as g,Jp as h,ju as i,hs as j,Du as k,nm as l,Xp as m,fn as n,Os as o,We as p,Ef as q,nn as r,Vf as s,la as t,zc as u,Yp as v,Rn as w,su as x,Wd as y,Oe as z};
diff --git a/fcb-fronted/dist/assets/trash-C4vprmIc.js b/fcb-fronted/dist/assets/trash-2qdaMQPm.js
similarity index 95%
rename from fcb-fronted/dist/assets/trash-C4vprmIc.js
rename to fcb-fronted/dist/assets/trash-2qdaMQPm.js
index 091ea179a..938d0e71f 100644
--- a/fcb-fronted/dist/assets/trash-C4vprmIc.js
+++ b/fcb-fronted/dist/assets/trash-2qdaMQPm.js
@@ -1,4 +1,4 @@
-import{c as a}from"./index-42gh9IW1.js";/**
+import{c as a}from"./index-b4wH2aDB.js";/**
  * @license lucide-vue-next v0.445.0 - ISC
  *
  * This source code is licensed under the ISC license.
diff --git a/fcb-fronted/dist/index.html b/fcb-fronted/dist/index.html
index 81977d1ae..81a0a47ac 100644
--- a/fcb-fronted/dist/index.html
+++ b/fcb-fronted/dist/index.html
@@ -11,7 +11,7 @@
     <meta name="keywords" content="{{keywords}}" />
     <meta name="generator" content="FileCodeBox2.1" />
     <title>FileCodeBox</title>
-    <script type="module" crossorigin src="/assets/index-42gh9IW1.js"></script>
+    <script type="module" crossorigin src="/assets/index-b4wH2aDB.js"></script>
     <link rel="stylesheet" crossorigin href="/assets/index-91I6FA6c.css">
   </head>
   <body>