2 lines
38 KiB
JavaScript
2 lines
38 KiB
JavaScript
import{j as e,r as x}from"./react-vendor-jWT2yUdV.js";import{a as M,c as C}from"./chunk-5PILOUBS-KHYNqMZE.js";import{c as f}from"./chunk-NAV3ZXLI-ChbUTMf0.js";import{d as je}from"./chunk-IHO36JMK-DJPUeGG0.js";import{u as S,k as V,c as o,P as ae,b as E,r as be,W as v,s as U,M as we,e as ve,a as Ne,g as _}from"./index-DiaaLdUu.js";import{u as T}from"./useRequest-B1BwPztr.js";import{z as G}from"./react-hot-toast-cGcFZPSt.js";import{G as K}from"./iconBase-B7bT1FlI.js";import{L as ke}from"./index-BBhZPeTB.js";import{t as N}from"./chunk-6LIX6LVT-B246pOuK.js";import{b as ye,c as ze,d as Ce,e as Se}from"./index-DvErMbt6.js";import{d as Me,e as Le,f as Ie,g as _e,h as qe}from"./index-FvTxWQTZ.js";import{a as Ue}from"./chunk-SXMLSBOY-NckgDZ9w.js";import{B as Ve}from"./index-DPx4wqle.js";import{c as Te}from"./chunk-D5XJWRAV-DVN21qSw.js";import{s as He,l as Pe}from"./chunk-KVDW62ZT-CGYYmJoP.js";import{s as Qe}from"./chunk-J6JGI6RM-Djlxjgjl.js";import{p as Be}from"./chunk-APIAPHLK-nGgOe_Nr.js";import{t as Fe,a as te}from"./chunk-ML27DD5T-ZFWrMOn-.js";import{i as $e}from"./chunk-2QAN2V2R-B2qCPZrG.js";import{F as We,a as Ee}from"./index-_HIxriDC.js";import{M as Ae,a as De}from"./mirror_selector_modal-CyjkhfUx.js";import{u as ne}from"./use-dialog-CRIMuzeE.js";import{B as Oe}from"./index-Bz8pD9tN.js";import{u as Re}from"./use-config-Cu0QvgCe.js";import{Q as Ze}from"./qq_manager-BfRTEAby.js";import"./qface-BZLvZXJ8.js";import"./chunk-M3MASYO7-B4fjH-eW.js";import"./chunk-RJKRL3AU-CjtrMR1U.js";import"./chunk-AXSF7SRE-Cr4elNVq.js";import"./react-router-dom-C6k78GT4.js";import"./chunk-WQVQ7P2I-BJd1EiqP.js";import"./useHover-DC1o5-bm.js";import"./useFocusable-DA5Croun.js";import"./chunk-UX7UMZL5-CMHjUaC_.js";import"./index-BsnVex0g.js";import"./Item-D8Sud-UP.js";import"./SelectionManager-Dl9uHsLK.js";import"./usePress-BrNwsdVw.js";import"./chunk-SLABUSGS-Cmz8sGrU.js";import"./DOMLayoutDelegate-DOgfSALU.js";import"./chunk-EN4B57RQ-Ief8qCCd.js";import"./useToggle-B3ZYBe5S.js";import"./index-BV9-YCKp.js";import"./layout-Buao20KT.js";import"./gestures-BHfQC-M8.js";import"./features-animation-BkV7kg8P.js";function Ge(s){return K({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"m3.75 13.5 10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z"},child:[]}]})(s)}const q=({count:s,label:a,size:n="md",accent:t=!1})=>{const[i]=S(V.backgroundImage,""),r=!!i;return e.jsx(M,{className:o("backdrop-blur-sm border transition-all duration-300 min-w-0 h-full",t?"bg-gradient-to-br from-primary-500/90 to-primary-400/80 border-primary-300/40 text-white shadow-md shadow-primary-500/20":r?"bg-white/10 dark:bg-black/10 border-white/30 hover:bg-white/20 dark:hover:bg-black/20 hover:-translate-y-0.5":"bg-white/50 dark:bg-black/30 border-white/50 dark:border-white/10 hover:bg-white/70 dark:hover:bg-black/40 hover:-translate-y-0.5"),shadow:"none",children:e.jsxs(C,{className:"items-center gap-0.5 p-2 md:p-3",children:[e.jsx("div",{className:o("font-mono font-bold leading-none tabular-nums",n==="md"?"text-3xl md:text-4xl":"text-2xl md:text-3xl",t||r?"text-white drop-shadow-sm":"text-default-700 dark:text-gray-200"),children:s}),e.jsx("div",{className:o("whitespace-nowrap text-nowrap flex-shrink-0 font-medium",n==="md"?"text-xs md:text-sm":"text-[11px]",t?"text-white/85":r?"text-white/80":"text-default-500"),children:a})]})})};function Ke(){const{data:s,error:a,loading:n,run:t}=T(()=>be.get("https://hi.logacg.com/"),{throttleWait:1e3}),i={hitokoto:"凡是过往,皆为序章。",from:"暴风雨",from_who:"莎士比亚"},r=(s==null?void 0:s.data)||(a?i:void 0),[c]=S(V.backgroundImage,""),d=!!c,m=()=>{try{const h=`${r==null?void 0:r.hitokoto} —— ${r==null?void 0:r.from} ${r==null?void 0:r.from_who}`;navigator.clipboard.writeText(h),G.success("复制成功")}catch{G.error("复制失败, 请手动复制")}};return e.jsxs("div",{className:"overflow-hidden",children:[e.jsxs("div",{className:"relative flex flex-col items-center justify-center px-4 pt-5 pb-3 md:px-7",children:[n&&!r&&e.jsx(ae,{}),r&&e.jsxs(e.Fragment,{children:[e.jsx(ye,{className:o("text-3xl mb-3",d?"text-white/25":"text-primary-400/30")}),e.jsxs("div",{className:o("text-lg md:text-xl font-medium tracking-wide leading-relaxed italic text-center max-w-4xl mx-auto",d?"text-white drop-shadow-sm":"text-default-700 dark:text-gray-200"),children:["“",r==null?void 0:r.hitokoto,"”"]}),e.jsxs("div",{className:"mt-3 flex items-center gap-2 text-xs",children:[e.jsxs("span",{className:o("font-semibold",d?"text-white/85":"text-primary-500"),children:["—— ",r==null?void 0:r.from]}),(r==null?void 0:r.from_who)&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:o("w-1 h-1 rounded-full",d?"bg-white/40":"bg-default-300")}),e.jsx("span",{className:d?"text-white/60":"text-default-400",children:r==null?void 0:r.from_who})]})]})]})]}),e.jsxs("div",{className:"flex gap-2 justify-center pb-3",children:[e.jsx(N,{content:"换一句",placement:"top",children:e.jsx(E,{className:o("transition-colors",d?"text-white/60 hover:text-white":"text-default-400 hover:text-primary"),onPress:t,size:"sm",isLoading:n,isIconOnly:!0,radius:"full",variant:"light",children:e.jsx(Me,{})})}),e.jsx(N,{content:"复制",placement:"top",children:e.jsx(E,{className:o("transition-colors",d?"text-white/60 hover:text-white":"text-default-400 hover:text-success"),onPress:m,size:"sm",isIconOnly:!0,radius:"full",variant:"light",children:e.jsx(Le,{})})})]})]})}const Xe=({data:s,error:a,loading:n})=>{const[t]=S(V.backgroundImage,""),i=!!t;return e.jsxs(M,{className:o("relative backdrop-blur-xl border overflow-hidden flex-shrink-0 transition-all duration-300 rounded-2xl",i?"bg-black/25 dark:bg-black/30 border-white/25":"bg-white/60 dark:bg-white/[0.04] border-white/60 dark:border-white/10","hover:shadow-lg hover:shadow-primary-500/10"),shadow:"none",children:[e.jsx(ae,{loading:n}),a?e.jsxs(C,{className:"items-start gap-1 justify-center p-4",children:[e.jsx("div",{className:"text-tiny font-semibold uppercase tracking-widest text-danger-500",children:"账号信息获取失败"}),e.jsx("div",{className:"text-small text-default-500 break-all",children:a.message})]}):e.jsxs(C,{className:"flex-row items-center gap-3.5 overflow-hidden relative p-4",children:[!i&&e.jsx("div",{className:"absolute right-[-14px] bottom-[-18px] text-[86px] text-primary-500/[0.06] rotate-12 pointer-events-none",children:e.jsx(Ve,{})}),e.jsxs("div",{className:"relative flex-shrink-0 z-10",children:[e.jsx("div",{className:o("rounded-full p-[2px]",s!=null&&s.online?"bg-gradient-to-br from-primary-400 to-secondary-400":"bg-default-200 dark:bg-white/10"),children:e.jsx(Ue,{src:(s==null?void 0:s.avatarUrl)||void 0,name:(s==null?void 0:s.nick)||(s==null?void 0:s.uin)||"?",className:"w-14 h-14 text-base font-bold bg-white dark:bg-zinc-800",isBordered:!1})}),e.jsx("div",{className:o("w-3.5 h-3.5 rounded-full absolute right-0.5 bottom-0.5 border-2 border-white dark:border-zinc-900 z-10 transition-colors",s!=null&&s.online?"bg-success-500":"bg-default-400")})]}),e.jsxs("div",{className:"flex-col justify-center z-10 min-w-0 flex-1",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[e.jsx("div",{className:o("text-lg font-bold truncate",i?"text-white drop-shadow-sm":"text-default-800 dark:text-gray-100"),children:(s==null?void 0:s.nick)||"未知用户"}),e.jsx(f,{size:"sm",variant:"flat",color:s!=null&&s.online?"success":"default",className:"h-5 flex-shrink-0",classNames:{content:"text-[10px] px-1 font-medium"},children:s!=null&&s.online?"在线":"离线"})]}),e.jsx("div",{className:o("font-mono text-xs tracking-wider",i?"text-white/70":"text-default-400"),children:(s==null?void 0:s.uin)||"Unknown"})]})]})]})};function Je(s){return K({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M14 18V20L16 21V22H8L7.99639 21.0036L10 20V18H2.9918C2.44405 18 2 17.5511 2 16.9925V4.00748C2 3.45107 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44892 22 4.00748V16.9925C22 17.5489 21.5447 18 21.0082 18H14ZM4 14V16H20V14H4Z"},child:[]}]})(s)}const Ye=/^v?(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/,A=s=>{if(!s||typeof s!="string")return{valid:!1,normalized:"1.0.0-dev",major:1,minor:0,patch:0,prerelease:"dev",buildmetadata:null};const a=s.trim().match(Ye);if(a){const n=parseInt(a[1],10),t=parseInt(a[2],10),i=parseInt(a[3],10),r=a[4]||null,c=a[5]||null;let d=`${n}.${t}.${i}`;return r&&(d+=`-${r}`),c&&(d+=`+${c}`),{valid:!0,normalized:d,major:n,minor:t,patch:i,prerelease:r,buildmetadata:c}}return{valid:!1,normalized:"1.0.0-dev",major:1,minor:0,patch:0,prerelease:"dev",buildmetadata:null}},le=(s,a)=>{const n=A(s),t=A(a);if(!n.valid||!t.valid)return 0;if(n.major!==t.major)return n.major>t.major?1:-1;if(n.minor!==t.minor)return n.minor>t.minor?1:-1;if(n.patch!==t.patch)return n.patch>t.patch?1:-1;if(n.prerelease&&!t.prerelease)return-1;if(!n.prerelease&&t.prerelease)return 1;if(n.prerelease&&t.prerelease){const i=n.prerelease.split("."),r=t.prerelease.split("."),c=Math.max(i.length,r.length);for(let d=0;d<c;d++){const m=i[d],h=r[d];if(m===void 0)return-1;if(h===void 0)return 1;const u=/^\d+$/.test(m)?parseInt(m,10):NaN,g=/^\d+$/.test(h)?parseInt(h,10):NaN;if(!isNaN(u)&&!isNaN(g)){if(u!==g)return u>g?1:-1;continue}if(!isNaN(u))return-1;if(!isNaN(g))return 1;if(m!==h)return m>h?1:-1}}return 0},es=(s,a)=>{const n=A(s),t=A(a);return!n.valid||!t.valid?!1:le(a,s)>0},W=({title:s,value:a="--",icon:n,endContent:t,hasBackground:i=!1,onClick:r,clickable:c=!1})=>e.jsxs("div",{className:o("flex text-[13px] gap-2 py-1.5 items-center transition-colors rounded-xl px-1 -mx-1",i?"text-white/90":"text-default-600 dark:text-gray-300",c&&"cursor-pointer hover:bg-white/50 dark:hover:bg-white/[0.06]"),onClick:r,children:[e.jsx("div",{className:o("w-5 flex-shrink-0 flex items-center justify-center text-base",i?"text-white/70":"text-default-400"),children:n}),e.jsx("div",{className:o("w-[70px] flex-shrink-0 font-medium text-[11.5px] leading-tight whitespace-nowrap",i?"text-white/85":"text-default-500"),children:s}),e.jsx("div",{className:o("text-[11px] font-mono flex-1 truncate tabular-nums",i?"text-white/85":"text-default-700 dark:text-gray-200"),children:a}),e.jsx("div",{className:"self-center flex-shrink-0",children:t})]}),Z=({currentVersion:s,latestVersion:a,status:n,errorMessage:t})=>e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-between gap-4 px-6 py-8 bg-default-50 dark:bg-default-100/5 rounded-xl border border-default-100 dark:border-default-100/10",children:[e.jsxs("div",{className:"flex flex-col items-center gap-2 min-w-0 w-full sm:w-auto",children:[e.jsx("span",{className:"text-xs text-default-500 font-medium uppercase tracking-wider",children:"当前版本"}),e.jsx(N,{content:`v${s}`,children:e.jsxs(f,{size:"md",variant:"flat",color:"default",classNames:{content:"font-mono font-bold text-sm truncate max-w-[120px] sm:max-w-[160px]"},children:["v",s]})})]}),e.jsx("div",{className:"flex flex-col items-center text-primary-500 px-4 shrink-0",children:e.jsx("div",{className:"p-2 rounded-full bg-primary-50 dark:bg-primary-900/20",children:e.jsx("svg",{className:"w-6 h-6 animate-pulse rotate-90 sm:rotate-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17 8l4 4m0 0l-4 4m4-4H3"})})})}),e.jsxs("div",{className:"flex flex-col items-center gap-2 min-w-0 w-full sm:w-auto",children:[e.jsx("span",{className:"text-xs text-primary-500 font-medium uppercase tracking-wider",children:"最新版本"}),e.jsx(N,{content:`v${a}`,children:e.jsxs(f,{size:"md",color:"primary",variant:"shadow",classNames:{content:"font-mono font-bold text-sm truncate max-w-[120px] sm:max-w-[160px]"},children:["v",a]})})]})]}),n==="updating"&&e.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 py-4 px-4 rounded-lg bg-primary-50/50 dark:bg-primary-900/20 border border-primary-200/50 dark:border-primary-700/30",children:[e.jsx(U,{size:"md",color:"primary"}),e.jsxs("div",{className:"text-center",children:[e.jsx("p",{className:"text-sm font-medium text-primary-600 dark:text-primary-400",children:"正在更新中..."}),e.jsx("p",{className:"text-xs text-default-500 mt-1",children:"请耐心等待,更新可能需要几分钟"})]})]}),n==="success"&&e.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 py-4 px-4 rounded-lg bg-success-50/50 dark:bg-success-900/20 border border-success-200/50 dark:border-success-700/30",children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-success-100 dark:bg-success-900/40 flex items-center justify-center",children:e.jsx("svg",{className:"w-6 h-6 text-success-600 dark:text-success-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),e.jsxs("div",{className:"text-center",children:[e.jsx("p",{className:"text-sm font-medium text-success-600 dark:text-success-400",children:"更新完成"}),e.jsx("p",{className:"text-xs text-default-500 mt-1",children:"请重启 SnowCat 以应用新版本"})]}),e.jsx("div",{className:"mt-2 p-3 rounded-lg bg-warning-50/50 dark:bg-warning-900/20 border border-warning-200/50 dark:border-warning-700/30",children:e.jsxs("p",{className:"text-xs text-warning-700 dark:text-warning-400 flex items-center gap-1 justify-center",children:[e.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})}),e.jsx("span",{children:"重启 SnowCat 生效"})]})}),e.jsx("div",{className:"flex gap-3 justify-center mt-2 w-full",children:e.jsx("button",{className:"px-4 py-2 text-sm rounded-lg bg-primary-500 hover:bg-primary-600 text-white shadow-sm transition-colors shadow-primary-500/20 w-full",onClick:()=>v.restart(),children:"立即重启"})})]}),n==="error"&&e.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 py-4 px-4 rounded-lg bg-danger-50/50 dark:bg-danger-900/20 border border-danger-200/50 dark:border-danger-700/30",children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-danger-100 dark:bg-danger-900/40 flex items-center justify-center",children:e.jsx("svg",{className:"w-6 h-6 text-danger-600 dark:text-danger-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),e.jsxs("div",{className:"text-center",children:[e.jsx("p",{className:"text-sm font-medium text-danger-600 dark:text-danger-400",children:"更新失败"}),e.jsx("p",{className:"text-xs text-default-500 mt-1",children:t||"请稍后重试或手动更新"})]})]})]}),ss=s=>{const{currentVersion:a}=s,n=ne(),{data:t,error:i}=T(v.getLatestTag,{cacheKey:"snowcat-latest-tag",staleTime:600*1e3,cacheTime:1800*1e3}),[r,c]=x.useState("idle");if(i||!t||!a||!es(a,t))return null;const d=async()=>{c("updating");try{await v.UpdateSnowCat(),c("success"),n.alert({title:"更新完成",content:e.jsx(Z,{currentVersion:a,latestVersion:t,status:"success"}),confirmText:"我知道了",size:"md"})}catch(h){console.error("Update failed:",h);const u=h instanceof Error?h.message:"未知错误";c("error"),n.alert({title:"更新失败",content:e.jsx(Z,{currentVersion:a,latestVersion:t,status:"error",errorMessage:u}),confirmText:"确定",size:"md"})}},m=()=>{n.confirm({title:"发现新版本",content:e.jsx(Z,{currentVersion:a,latestVersion:t,status:"idle"}),confirmText:"立即更新",cancelText:"稍后更新",size:"md",onConfirm:d})};return e.jsx(N,{content:"有新版本可用",children:e.jsx("div",{className:"cursor-pointer flex items-center justify-center",onClick:r==="updating"?void 0:m,children:e.jsx(f,{size:"sm",color:"primary",variant:"flat",classNames:{content:"font-bold text-[10px] px-1 flex items-center justify-center",base:"h-5 min-h-5 min-w-[42px]"},children:r==="updating"?e.jsx(U,{size:"sm",color:"primary",classNames:{wrapper:"w-3 h-3"}}):"New"})})})},ts=({currentVersion:s,onClose:a})=>{const n=ne(),[t,i]=x.useState(null),[r,c]=x.useState(!1),[d,m]=x.useState("idle"),[h,u]=x.useState(""),[g,b]=x.useState(1),[j,k]=x.useState("release"),[L,H]=x.useState(""),B=ve(L,300),[w,ie]=x.useState(void 0),[F,$]=x.useState(null),[D,X]=x.useState(!1),[oe,J]=x.useState(!1),ce=async()=>{X(!0);try{const l=await De.testSingleMirror(w||"","file");l.success?$(l.latency):$(null)}catch{$(null)}finally{X(!1)}},de=l=>l>=5e3?">5s":l>=1e3?`${(l/1e3).toFixed(1)}s`:`${l}ms`,xe=l=>l===null?"default":l<300?"success":l<1e3?"warning":"danger",me=()=>{if(!w)return"自动选择";try{return new URL(w).hostname}catch{return w}},he=15,{data:p,loading:ue,error:Y}=T(()=>v.getAllReleases({page:g,pageSize:he,type:j,search:B,mirror:w}),{refreshDeps:[g,j,B,w]}),O=(p==null?void 0:p.versions)||[],ee=x.useCallback(l=>!s||!l||l.startsWith("action-")?!1:le(l,s)<0,[s]),I=(t==null?void 0:t.tag)||"",P=ee(I),se=async l=>{if(t){m("updating"),u("");try{await v.UpdateSnowCatToVersion(I,l,w),m("success")}catch(y){console.error("Update failed:",y);const Q=y instanceof Error?y.message:"未知错误";u(Q),m("error")}}},pe=async()=>{if(t){if(P&&!r){n.confirm({title:"确认降级",content:e.jsxs("div",{className:"space-y-2",children:[e.jsxs("p",{className:"text-warning-600",children:["您正在尝试从 ",e.jsxs("strong",{children:["v",s]})," 降级到 ",e.jsx("strong",{children:I})]}),e.jsx("p",{className:"text-sm text-default-500",children:"降级可能导致配置不兼容或功能丢失,请确认您了解相关风险。"})]}),confirmText:"确认降级",cancelText:"取消",onConfirm:()=>se(!0)});return}await se(r)}},fe=l=>{b(l)};if(d==="success")return e.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 py-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-success-100 dark:bg-success-900/40 flex items-center justify-center",children:e.jsx("svg",{className:"w-6 h-6 text-success-600 dark:text-success-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),e.jsxs("div",{className:"text-center w-full",children:[e.jsxs("p",{className:"text-sm font-medium text-success-600 dark:text-success-400",children:["更新到 ",I," 完成"]}),e.jsx("p",{className:"text-xs text-default-500 mt-1 mb-6",children:"请重启 SnowCat 以应用新版本"}),e.jsxs("div",{className:"flex gap-3 justify-center",children:[e.jsx("button",{className:"px-4 py-2 text-sm rounded-lg bg-default-100 hover:bg-default-200 transition-colors text-default-700",onClick:a,children:"稍后重启"}),e.jsx("button",{className:"px-4 py-2 text-sm rounded-lg bg-primary-500 hover:bg-primary-600 text-white shadow-sm transition-colors shadow-primary-500/20",onClick:async()=>{await v.restart(),a()},children:"立即重启"})]})]})]});if(d==="error")return e.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 py-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-danger-100 dark:bg-danger-900/40 flex items-center justify-center",children:e.jsx("svg",{className:"w-6 h-6 text-danger-600 dark:text-danger-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),e.jsxs("div",{className:"text-center",children:[e.jsx("p",{className:"text-sm font-medium text-danger-600 dark:text-danger-400",children:"更新失败"}),e.jsx("p",{className:"text-xs text-default-500 mt-1",children:h||"请稍后重试"})]})]});if(d==="updating")return e.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 py-6",children:[e.jsx(U,{size:"lg",color:"primary"}),e.jsxs("div",{className:"text-center",children:[e.jsxs("p",{className:"text-sm font-medium text-primary-600 dark:text-primary-400",children:["正在更新到 ",I,"..."]}),e.jsx("p",{className:"text-xs text-default-500 mt-1",children:"请耐心等待,更新可能需要几分钟"})]})]});const R=p==null?void 0:p.pagination;return e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-sm text-default-600",children:"当前版本:"}),e.jsxs(f,{color:"primary",variant:"flat",size:"sm",children:["v",s]})]}),(p==null?void 0:p.mirror)&&e.jsxs("div",{className:"text-xs text-default-400 flex items-center gap-1",children:[e.jsx("span",{className:"w-2 h-2 rounded-full bg-success-500"}),"镜像: ",p.mirror]})]}),e.jsxs(Fe,{selectedKey:j,onSelectionChange:l=>{k(l),b(1),i(null),H("")},size:"sm",color:"primary",variant:"underlined",classNames:{tabList:"gap-4"},children:[e.jsx(te,{title:"正式版本"},"release"),e.jsx(te,{title:"临时版本 (Action)"},"action")]}),e.jsx(M,{className:"bg-default-100/50 shadow-sm",children:e.jsx(C,{className:"py-2 px-3",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-xs text-default-500",children:"镜像源:"}),e.jsx("span",{className:"text-sm font-medium",children:me()}),F!==null&&e.jsx(f,{size:"sm",color:xe(F),variant:"flat",startContent:e.jsx(ze,{size:12}),children:de(F)}),F===null&&!D&&e.jsx(f,{size:"sm",color:"default",variant:"flat",children:"未测试"}),D&&e.jsx(f,{size:"sm",color:"primary",variant:"flat",children:"测速中..."})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(N,{content:"测速",children:e.jsx(E,{isIconOnly:!0,size:"sm",variant:"light",onPress:ce,isLoading:D,children:e.jsx(Ce,{size:16})})}),e.jsx(N,{content:"切换镜像",children:e.jsx(E,{isIconOnly:!0,size:"sm",variant:"light",onPress:()=>J(!0),children:e.jsx(Se,{size:16})})})]})]})})}),e.jsx($e,{placeholder:"搜索版本号...",size:"sm",value:L,onValueChange:l=>{H(l),b(1),i(null)},startContent:e.jsx(qe,{className:"text-default-400"}),isClearable:!0,onClear:()=>H(""),classNames:{inputWrapper:"h-9"}}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("label",{className:"text-sm font-medium text-default-700",children:"选择目标版本"}),(p==null?void 0:p.pagination)&&e.jsxs("span",{className:"text-xs text-default-400",children:["共 ",p.pagination.total," 个版本"]})]}),ue?e.jsxs("div",{className:"flex items-center gap-2 py-2",children:[e.jsx(U,{size:"sm"}),e.jsx("span",{className:"text-sm text-default-500",children:"加载版本列表..."})]}):Y?e.jsxs("div",{className:"text-sm text-danger-500",children:["加载版本列表失败: ",Y.message]}):O.length===0?e.jsx("div",{className:"text-sm text-default-500 py-4 text-center",children:L?`未找到匹配 "${L}" 的版本`:"暂无可用版本"}):e.jsx(He,{label:"选择版本",placeholder:"请选择要更新的版本",selectedKeys:t?[I]:[],onSelectionChange:l=>{const y=Array.from(l)[0],Q=O.find(ge=>ge.tag===y);i(Q||null)},classNames:{trigger:"h-auto min-h-10"},children:O.map(l=>{const y=l.tag.replace(/^v/,"")===s,Q=ee(l.tag);return e.jsx(Pe,{textValue:l.tag,children:e.jsxs("div",{className:"flex flex-col gap-0.5",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"truncate max-w-[300px]",children:l.type==="action"&&(l.workflowTitle||l.artifactName)||l.tag}),l.type==="prerelease"&&e.jsx(f,{size:"sm",color:"secondary",variant:"flat",children:"预发布"}),l.type==="action"&&e.jsx(f,{size:"sm",color:"default",variant:"flat",children:"临时"}),y&&e.jsx(f,{size:"sm",color:"success",variant:"flat",children:"当前"}),Q&&!y&&l.type!=="action"&&e.jsx(f,{size:"sm",color:"warning",variant:"flat",children:"降级"})]}),l.type==="action"&&e.jsxs("div",{className:"text-xs text-default-400 flex items-center gap-2",children:[e.jsx("span",{className:"font-mono bg-default-100 dark:bg-default-100/10 px-1 rounded",children:l.tag}),l.headSha&&e.jsx("span",{className:"font-mono",title:l.headSha,children:l.headSha.slice(0,7)}),l.createdAt&&e.jsx("span",{children:new Date(l.createdAt).toLocaleString()}),l.size&&e.jsxs("span",{children:[(l.size/1024/1024).toFixed(1)," MB"]})]})]})},l.tag)})})]}),j==="action"&&e.jsx("div",{className:"p-3 rounded-lg bg-default-50 dark:bg-default-100/10 border border-default-200/50",children:e.jsxs("p",{className:"text-xs text-default-500",children:["临时版本来自 GitHub Actions 构建,可能不稳定,适合测试新功能。",(t==null?void 0:t.expiresAt)&&e.jsxs("span",{className:"block mt-1 text-warning-600",children:["此版本将于 ",new Date(t.expiresAt).toLocaleDateString()," 过期"]})]})}),t&&P&&e.jsxs("div",{className:"p-3 rounded-lg bg-warning-50/50 dark:bg-warning-900/20 border border-warning-200/50 dark:border-warning-700/30",children:[e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx("svg",{className:"w-5 h-5 text-warning-600 dark:text-warning-400 flex-shrink-0 mt-0.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-warning-700 dark:text-warning-400",children:"版本降级警告"}),e.jsx("p",{className:"text-xs text-warning-600/80 dark:text-warning-500 mt-1",children:"降级到旧版本可能导致配置不兼容或功能丢失"})]})]}),e.jsxs("div",{className:"mt-3 flex items-center gap-2",children:[e.jsx(Qe,{size:"sm",isSelected:r,onValueChange:c}),e.jsx("span",{className:"text-xs text-warning-700 dark:text-warning-400",children:"我了解风险,确认降级"})]})]}),R&&R.totalPages>1&&e.jsx("div",{className:"flex justify-center",children:e.jsx(Be,{total:R.totalPages,page:g,onChange:fe,size:"sm",showControls:!0})}),e.jsxs("div",{className:"flex justify-end gap-2 pt-4 border-t border-default-100 dark:border-default-100/10",children:[e.jsx("button",{className:"px-4 py-2 text-sm rounded-lg bg-default-100 hover:bg-default-200 transition-colors",onClick:a,children:"关闭"}),e.jsx("button",{className:o("px-4 py-2 text-sm rounded-lg transition-colors text-white shadow-sm",t&&(!P||r)?"bg-primary-500 hover:bg-primary-600 shadow-primary-500/20":"bg-default-300 cursor-not-allowed"),disabled:!t||P&&!r,onClick:pe,children:P?"确认降级更新":"更新到此版本"})]}),e.jsx(Ae,{isOpen:oe,onClose:()=>J(!1),currentMirror:w,onSelect:l=>{ie(l||void 0),$(null)},type:"file"})]})},rs=({hasBackground:s=!1})=>{const[a,n]=x.useState(!1),{data:t,loading:i,error:r}=T(v.GetSnowCatVersion,{cacheKey:"snowcat-version",staleTime:3600*1e3,cacheTime:1440*60*1e3}),c=t==null?void 0:t.version,d=x.useCallback(()=>{c&&n(!0)},[c]);return e.jsxs(e.Fragment,{children:[e.jsx(W,{title:"内核版本",icon:e.jsx(_e,{className:"text-xl"}),hasBackground:s,value:r?e.jsx("span",{className:"text-danger-500",children:"读取失败"}):i?e.jsx(U,{size:"sm"}):e.jsx(N,{content:"点击管理版本",children:e.jsx("span",{className:"cursor-pointer hover:text-primary transition-colors underline decoration-dashed decoration-default-300 underline-offset-[3px]",onClick:d,children:c})}),endContent:e.jsx(ss,{currentVersion:c})}),a&&e.jsx(we,{title:"版本管理",size:"lg",hideFooter:!0,onClose:()=>n(!1),content:e.jsx(ts,{currentVersion:c||"",onClose:()=>n(!1)})})]})},as=s=>{const{archInfo:a}=s,{data:n,loading:t,error:i}=T(v.getQQVersion,{cacheKey:"qq-version",staleTime:3600*1e3,cacheTime:1440*60*1e3}),[r]=S(V.backgroundImage,""),c=!!r;return e.jsxs(M,{className:o("backdrop-blur-xl border shadow-sm overflow-visible flex-1 rounded-2xl",c?"bg-black/25 dark:bg-black/30 border-white/25":"bg-white/60 dark:bg-white/[0.04] border-white/60 dark:border-white/10"),children:[e.jsxs(Te,{className:o("pb-2 items-center gap-2 px-4 pt-4 mb-0.5 border-b border-white/40 dark:border-white/[0.06]",c?"text-white drop-shadow-sm":"text-default-700 dark:text-white"),children:[e.jsx(We,{className:"text-sm opacity-70"}),e.jsx("span",{className:"text-sm font-semibold tracking-wide",children:"系统信息"})]}),e.jsx(C,{className:"flex-1 px-3 pb-3 pt-2",children:e.jsxs("div",{className:"flex flex-col gap-1 justify-start h-full",children:[e.jsx(rs,{hasBackground:c}),e.jsx(W,{title:"QQ 版本",icon:e.jsx(Ee,{className:"text-lg"}),hasBackground:c,value:i?e.jsx("span",{className:"text-danger-500",children:"读取失败"}):t?e.jsx(U,{size:"sm"}):n}),e.jsx(W,{title:"WebUI",icon:e.jsx(Ie,{className:"text-xl"}),value:"Next",hasBackground:c}),e.jsx(W,{title:"系统版本",icon:e.jsx(Je,{className:"text-xl"}),value:a,hasBackground:c})]})})]})};function ns(s){return K({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M151 22v32h18V22h-18zm48 0v32h18V22h-18zm48 0v32h18V22h-18zm48 0v32h18V22h-18zm48 0v32h18V22h-18zM131.7 73L73 131.7v248.6l58.7 58.7h248.6l58.7-58.7V131.7L380.3 73H131.7zm60.3 46h128v18H192v-18zM22 151v18h32v-18H22zm436 0v18h32v-18h-32zm-339 32h274v146H119V183zm-97 16v18h32v-18H22zm436 0v18h32v-18h-32zm-321 2v110h238V201H137zM22 247v18h32v-18H22zm436 0v18h32v-18h-32zM22 295v18h32v-18H22zm436 0v18h32v-18h-32zM22 343v18h32v-18H22zm436 0v18h32v-18h-32zm-266 32h128v18H192v-18zm-41 83v32h18v-32h-18zm48 0v32h18v-32h-18zm48 0v32h18v-32h-18zm48 0v32h18v-32h-18zm48 0v32h18v-32h-18z"},child:[]}]})(s)}const re=({systemUsage:s,processUsage:a,title:n,hasBackground:t})=>{const{theme:i}=Ne(),r=Math.max(s||0,0),c=Math.max(a||0,0),d=Math.min(Math.max(r,c),100),m=Math.min(c,d),h=100,u=10,g=(h-u)/2,b=2*Math.PI*g,j=h/2,k={qq:i==="dark"?"#FF9EB5":"#FF7FAC",other:i==="dark"?"#88C0D0":"#AEE1F2",track:i==="dark"?"rgba(255,255,255,0.07)":"rgba(15,23,42,0.06)"},L=x.useMemo(()=>`${d/100*b} ${b}`,[d,b]),H=x.useMemo(()=>`${m/100*b} ${b}`,[m,b]),B=Math.max(d-m,0),w=e.jsxs("div",{className:"flex flex-col gap-1 p-1 text-xs",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:k.qq}}),e.jsxs("span",{children:["QQ进程: ",m.toFixed(1),"%"]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:k.other}}),e.jsxs("span",{children:["其他进程: ",B.toFixed(1),"%"]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:k.track}}),e.jsxs("span",{children:["空闲: ",(100-d).toFixed(1),"%"]})]})]});return e.jsx(N,{content:w,placement:"top",children:e.jsxs("div",{className:"relative w-[104px] h-[104px] flex items-center justify-center cursor-pointer",children:[e.jsxs("svg",{className:"w-full h-full -rotate-90",viewBox:`0 0 ${h} ${h}`,children:[e.jsx("circle",{cx:j,cy:j,r:g,fill:"none",stroke:k.track,strokeWidth:u,strokeLinecap:"round"}),e.jsx("circle",{cx:j,cy:j,r:g,fill:"none",stroke:k.other,strokeWidth:u,strokeLinecap:"round",strokeDasharray:L,className:"transition-all duration-700 ease-out"}),e.jsx("circle",{cx:j,cy:j,r:g,fill:"none",stroke:k.qq,strokeWidth:u,strokeLinecap:"round",strokeDasharray:H,className:"transition-all duration-700 ease-out"})]}),e.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center pointer-events-none select-none",children:[n&&e.jsx("span",{className:o("text-[10px] font-medium mb-0.5 opacity-80 uppercase tracking-widest scale-90",t?"text-white/80":"text-default-500 dark:text-default-400"),children:n}),e.jsxs("div",{className:"flex items-baseline gap-0.5",children:[e.jsx("span",{className:o("text-xl font-bold font-mono tracking-tight",t?"text-white":"text-default-900 dark:text-white"),children:Math.round(d)}),e.jsx("span",{className:o("text-[10px] font-bold",t?"text-white/60":"text-default-400 dark:text-default-500"),children:"%"})]})]})]})})},z=({title:s,value:a="-",size:n="md",unit:t,hasBackground:i=!1})=>e.jsxs("div",{className:o("py-1 text-[13px] transition-colors flex items-center gap-2",n==="lg"?"col-span-2":"col-span-1"),children:[e.jsx("div",{className:o("flex-shrink-0 font-medium",n==="lg"?"w-14":"w-16",i?"text-white/85":"text-default-500 dark:text-gray-400"),children:s}),e.jsxs("div",{className:o("font-mono text-[11px] tabular-nums truncate flex-1 text-left",i?"text-white/85":"text-default-700 dark:text-gray-200"),children:[a,t&&e.jsx("span",{className:"ml-0.5 opacity-70",children:t})]})]}),ls=({data:s})=>{const a={system:0,qq:0};if(s){const i=Number(s.memory.total)||1,r=Number(s.memory.usage.system),c=Number(s.memory.usage.qq);a.system=r/i*100,a.qq=c/i*100}const[n]=S(V.backgroundImage,""),t=!!n;return e.jsx(M,{className:o("backdrop-blur-sm border border-white/40 dark:border-white/10 shadow-sm relative overflow-hidden flex-1",t?"bg-black/25 dark:bg-black/30":"bg-white/60 dark:bg-white/[0.04]"),children:e.jsxs(C,{className:"overflow-visible md:flex-row gap-4 items-center justify-stretch z-10",children:[e.jsxs("div",{className:"flex-1 w-full md:max-w-none md:flex-[1.4] space-y-3",children:[e.jsxs("div",{className:o("rounded-2xl p-3 border",t?"bg-white/[0.06] border-white/15":"bg-white/45 dark:bg-white/[0.03] border-white/60 dark:border-white/[0.06]"),children:[e.jsxs("h2",{className:o("text-sm font-semibold flex items-center gap-2 mb-1.5",t?"text-white drop-shadow-sm":"text-default-700 dark:text-gray-200"),children:[e.jsx("span",{className:o("w-6 h-6 rounded-lg flex items-center justify-center",t?"bg-white/15":"bg-primary-500/10 text-primary-500"),children:e.jsx(ns,{size:14})}),e.jsx("span",{children:"处理器"})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-x-3 gap-y-0",children:[e.jsx(z,{title:"型号",value:s==null?void 0:s.cpu.model,size:"lg",hasBackground:t}),e.jsx(z,{title:"内核数",value:s==null?void 0:s.cpu.core,hasBackground:t}),e.jsx(z,{title:"主频",value:s==null?void 0:s.cpu.speed,unit:"GHz",hasBackground:t}),e.jsx(z,{title:"使用率",value:s==null?void 0:s.cpu.usage.system,unit:"%",hasBackground:t}),e.jsx(z,{title:"QQ主线程",value:s==null?void 0:s.cpu.usage.qq,unit:"%",hasBackground:t})]})]}),e.jsxs("div",{className:o("rounded-2xl p-3 border",t?"bg-white/[0.06] border-white/15":"bg-white/45 dark:bg-white/[0.03] border-white/60 dark:border-white/[0.06]"),children:[e.jsxs("h2",{className:o("text-sm font-semibold flex items-center gap-2 mb-1.5",t?"text-white drop-shadow-sm":"text-default-700 dark:text-gray-200"),children:[e.jsx("span",{className:o("w-6 h-6 rounded-lg flex items-center justify-center",t?"bg-white/15":"bg-secondary-500/10 text-secondary-500"),children:e.jsx(Oe,{size:14})}),e.jsx("span",{children:"内存"})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-x-3 gap-y-0",children:[e.jsx(z,{title:"总量",value:s==null?void 0:s.memory.total,size:"lg",unit:"MB",hasBackground:t}),e.jsx(z,{title:"使用量",value:s==null?void 0:s.memory.usage.system,unit:"MB",hasBackground:t}),e.jsx(z,{title:"QQ主线程",value:s==null?void 0:s.memory.usage.qq,unit:"MB",hasBackground:t})]})]})]}),e.jsxs("div",{className:"flex flex-row gap-2 flex-shrink-0 w-full justify-center mt-3 md:mt-0 md:w-auto md:self-center",children:[e.jsx(re,{systemUsage:Number(s==null?void 0:s.cpu.usage.system)||0,processUsage:Number(s==null?void 0:s.cpu.usage.qq)||0,title:"CPU",hasBackground:t}),e.jsx(re,{systemUsage:a.system,processUsage:a.qq,title:"内存",hasBackground:t})]})]})})},is=()=>{const{config:s,refreshConfig:a}=Re(),n=_(s,"httpServers"),t=_(s,"httpClients"),i=_(s,"websocketServers"),r=_(s,"websocketClients"),c=_(s,"httpSseServers"),d=_(s,"mcpServers"),m=t.length+r.length+i.length+n.length+c.length+d.length;return x.useEffect(()=>{a()},[]),e.jsx(M,{className:o("backdrop-blur-md border border-white/40 dark:border-white/10 shadow-sm","bg-white/60 dark:bg-white/[0.04]"),shadow:"none",children:e.jsxs(C,{className:"p-4 gap-3",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(ke,{className:"text-primary",size:16}),e.jsx("span",{className:"text-small font-semibold text-default-700 dark:text-default-200",children:"接入点总览"}),e.jsxs(f,{size:"sm",variant:"flat",color:"primary",className:"h-6",children:[m," 条"]}),e.jsx(je,{className:"flex-1 opacity-40"})]}),e.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-3",children:[e.jsx(q,{count:m,label:"全部接入点",accent:!0}),e.jsx(q,{count:n.length,label:"HTTP 服务器"}),e.jsx(q,{count:t.length,label:"HTTP 客户端"}),e.jsx(q,{count:i.length,label:"WS 服务器"}),e.jsx(q,{count:r.length,label:"WS 客户端"}),e.jsx(q,{count:d.length,label:"MCP 服务器"})]})]})})},os=()=>{const{data:s,loading:a,error:n}=T(Ze.getQQLoginInfo);return e.jsx(Xe,{data:s,error:n,loading:a})},cs=({setArchInfo:s})=>{const[a,n]=S("snowcat_system_status_cache",void 0),t=x.useRef(!1),i=x.useCallback(()=>{try{return v.getSystemStatus(n)}catch{G.error("获取系统状态失败")}},[]);return x.useEffect(()=>{const r=i();return()=>{r==null||r.close()}},[i]),x.useEffect(()=>{a!=null&&a.arch&&!t.current&&(s(a.arch),t.current=!0)},[a,s]),e.jsx(ls,{data:a})},rt=()=>{const[s,a]=S("snowcat_arch_info_cache",void 0),[n]=S(V.backgroundImage,""),t=!!n;return e.jsxs(e.Fragment,{children:[e.jsx("title",{children:"总览 - SnowCat WebUI · 雪猫控制台"}),e.jsxs("section",{className:"w-full px-3 md:px-6 py-4 md:py-6 overflow-hidden",children:[e.jsxs("div",{className:o("mb-4 rounded-2xl px-5 py-4 flex flex-wrap items-center justify-between gap-4","bg-gradient-to-r from-primary-100/70 via-primary-50/40 to-transparent","dark:from-primary-900/30 dark:via-primary-900/10 dark:to-transparent","border border-primary-100/50 dark:border-primary-900/30"),children:[e.jsxs("div",{className:"min-w-0",children:[e.jsxs("h1",{className:"text-xl font-bold text-default-900 dark:text-white flex items-center gap-2",children:[e.jsx(Ge,{className:"text-primary"}),"雪猫运行总览"]}),e.jsx("p",{className:"text-tiny text-default-500 mt-1",children:"账号 · 系统 · 接入点 一屏尽览(NapCat + SnowLuma 融合自持版)"})]}),e.jsx(f,{variant:"flat",color:"secondary",size:"sm",className:"flex-shrink-0",children:"SnowCat.Onebot"})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-4 items-stretch",children:[e.jsxs("div",{className:"lg:col-span-4 xl:col-span-3 flex flex-col gap-4 min-w-0",children:[e.jsx(os,{}),e.jsx(as,{archInfo:s})]}),e.jsxs("div",{className:"lg:col-span-8 xl:col-span-9 flex flex-col gap-4 min-w-0",children:[e.jsx(cs,{setArchInfo:a}),e.jsx(is,{})]})]}),e.jsx(M,{className:o("mt-4 backdrop-blur-sm border border-white/40 dark:border-white/10 shadow-sm transition-all overflow-hidden",t?"bg-black/25 dark:bg-black/30":"bg-white/60 dark:bg-white/[0.04]"),children:e.jsx(C,{className:"overflow-hidden",children:e.jsx(Ke,{})})})]})]})};export{rt as default};
|