module.exports=[42993,a=>{"use strict";var b=a.i(87924),c=a.i(38246);a.s(["BackBar",0,function({title:a}){return(0,b.jsxs)("div",{className:"mb-6",children:[(0,b.jsx)(c.default,{href:"/",className:"text-sm transition-colors",style:{color:"var(--muted)"},children:"← 返回首页"}),a&&(0,b.jsx)("h1",{className:"text-2xl font-bold mt-2",style:{color:"var(--text)"},children:a})]})}])},59525,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(38246),e=a.i(15687),f=a.i(32283),g=a.i(42993),h=a.i(76873);a.s(["DomainView",0,function({slug:a}){let i=(0,e.useWikiData)(),j=(0,h.slugToDomain)(a),k=i.domainMap[j],l=(0,c.useMemo)(()=>{let a=j.startsWith("#")?j.slice(1):j,b=a.split("/").length,c=[];for(let d of Object.keys(i.domainMap)){let e=d.startsWith("#")?d.slice(1):d;e.startsWith(a+"/")&&e.split("/").length===b+1&&c.push({label:e.split("/").pop(),fullPath:d,count:i.domainMap[d].length})}return c.sort((a,b)=>a.label.localeCompare(b.label))},[i.domainMap,j]);if(!k)return(0,b.jsxs)("div",{className:"text-[13px]",style:{color:"var(--muted)"},children:["未找到领域: ",a]});let m=k.filter(a=>a.domains.includes(j)),n=k.filter(a=>!a.domains.includes(j));return(0,b.jsxs)("div",{children:[(0,b.jsx)(g.BackBar,{title:j}),(0,b.jsxs)("p",{className:"mb-4",style:{color:"var(--muted)"},children:[k.length," 个节点"]}),l.length>0&&(0,b.jsx)("div",{className:"flex flex-wrap gap-2 mb-6",children:l.map(a=>(0,b.jsxs)(d.default,{href:`/domain/${(0,h.domainToSlug)(a.fullPath)}`,className:"px-3 py-1.5 rounded-full text-[13px] transition-colors",style:{background:"var(--tag-bg)",color:"var(--text)",borderBottom:"none"},children:[a.label," ",(0,b.jsx)("span",{style:{color:"var(--muted)"},children:a.count})]},a.fullPath))}),m.length>0&&(0,b.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:m.map(a=>(0,b.jsx)(f.NodeCard,{...a},a.id))}),n.length>0&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"text-[11px] uppercase tracking-widest mt-6 mb-3",style:{color:"var(--muted)"},children:"来自子领域"}),(0,b.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:n.map(a=>(0,b.jsx)(f.NodeCard,{...a},a.id))})]})]})}])}];

//# sourceMappingURL=src_components_0qtotc0._.js.map