module.exports=[19363,a=>{"use strict";var b=a.i(87924),c=a.i(15687),d=a.i(32283);function e({className:a=""}){return(0,b.jsx)("div",{className:`animate-pulse rounded ${a}`,style:{background:"var(--border)"}})}function f(){return(0,b.jsxs)("div",{className:"py-2.5",children:[(0,b.jsx)(e,{className:"h-4 w-3/4 mb-2"}),(0,b.jsx)(e,{className:"h-3 w-1/2"})]})}function g(){return(0,b.jsxs)("div",{className:"border rounded-[10px] p-5",style:{borderColor:"var(--border)",background:"var(--surface)"},children:[(0,b.jsx)(e,{className:"h-4 w-40 mb-4"}),(0,b.jsx)(f,{}),(0,b.jsx)(f,{}),(0,b.jsx)(f,{})]})}function h({sections:a=4}){return(0,b.jsxs)("div",{children:[(0,b.jsx)(e,{className:"h-7 w-48 mb-2"}),(0,b.jsx)(e,{className:"h-4 w-72 mb-6"}),(0,b.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:Array.from({length:a},(a,c)=>(0,b.jsx)(g,{},c))})]})}a.s(["HomeView",0,function(){let a=(0,c.useWikiData)(),{refreshing:e}=(0,c.useWikiDataSources)(),{emergence:f}=a,g=a.nodes.filter(a=>"seed"===a.status||"growing"===a.status),i=[{title:"🕒 最近更新",nodes:f.recentUpdates,sub:a=>`更新于 ${a.updated}`},{title:"🌱 正在生长",nodes:g.slice(0,6),sub:a=>"seed"===a.status?"种子":"成长中"},{title:"🪐 入口 hub（最多被引用）",nodes:f.hubs,sub:a=>`← ${a.metrics.in_degree} 入链`},{title:"🌐 跨领域节点",nodes:f.crossDomainHubs,sub:a=>a.domains.join(" · ")},{title:"❓ 开放问题",nodes:f.openQuestions,sub:a=>a.body_raw.slice(0,60).replace(/\n/g,"")}];return 0===a.nodes.length&&e?(0,b.jsx)(h,{}):(0,b.jsxs)("div",{children:[(0,b.jsx)("h2",{className:"text-[22px] font-semibold mt-0 mb-2",children:"欢迎回来"}),(0,b.jsxs)("p",{className:"text-[13px] mb-6",style:{color:"var(--muted)"},children:["共 ",a.nodes.length," 个节点。这里展示当前你脑中的形状——hub、跨域连接、悬而未决的问题。"]}),(0,b.jsx)("div",{className:"flex flex-wrap gap-2 text-[12px] mb-8",style:{color:"var(--muted)"},children:Object.entries(d.META_TYPE_CONFIG).map(([a,c])=>(0,b.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,b.jsx)("span",{className:"w-[9px] h-[9px] rounded-full inline-block",style:{background:c.color}}),c.icon," ",c.label]},a))}),(0,b.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:i.map(a=>a.nodes.length>0&&(0,b.jsxs)("div",{className:"border rounded-[10px] p-5",style:{borderColor:"var(--border)",background:"var(--surface)"},children:[(0,b.jsx)("h3",{className:"text-[13px] font-semibold mb-3",style:{color:"var(--text)"},children:a.title}),(0,b.jsx)("div",{children:a.nodes.map(c=>(0,b.jsx)(d.NodeCard,{...c,subtitle:a.sub(c)},c.id))})]},a.title))})]})}],19363)}];

//# sourceMappingURL=src_components_views_HomeView_tsx_0n44-7.._.js.map