1import{r as d,j as e,M as p}from"./react-vendor-Bmxl947x.js";import{r as c,c as m,g as x}from"./index-B0Ia7pcb.js";import"./utils-vendor-YwL75HfN.js";import"./i18n-vendor-T6WqKCYf.js";function v({content:s,sources:r,sourceTitle:n,author:t,onReady:o}){return d.useEffect(()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>o?.())})},[o]),e.jsxs("div",{style:{width:720,background:"#ffffff",padding:"40px 48px",fontFamily:'"Noto Serif SC", "Optima-Regular", "PingFangSC-light", "Heiti SC", sans-serif',color:"#1a1a1a",overflow:"visible"},children:[e.jsx("div",{className:"prose",style:{maxWidth:"none",color:"#333",overflow:"visible"},children:e.jsx(p,{remarkPlugins:[c],children:s})}),r&&r.length>0&&e.jsxs("div",{style:{marginTop:28,paddingTop:20,borderTop:"1px solid #e5e5e5",color:"#666",fontSize:13,lineHeight:1.65},children:[e.jsx("div",{style:{marginBottom:8,fontWeight:700,color:"#444"},children:n}),r.slice(0,8).map((i,a)=>{const l=i.metadata?.title||i.preview||m(i.text||"").slice(0,120);return e.jsxs("div",{style:{marginTop:6},children:[e.jsxs("span",{style:{color:"#999"},children:["[",a+1,"] "]}),e.jsx("span",{children:l}),e.jsxs("div",{style:{color:"#aaa",fontSize:11},children:[window.location.origin,x(i)]})]},`${i.sourceType}-${i.sourceId}`)})]}),e.jsx("style",{children:` 2 .prose img { 3 border-radius: 0 !important; 4 box-shadow: none !important; 5 max-width: 100% !important; 6 height: auto !important; 7 } 8 .prose pre { 9 border-radius: 0 !important; 10 overflow-x: visible !important; 11 } 12 `}),e.jsx("hr",{style:{border:"none",borderTop:"1px solid #e5e5e5",marginTop:32,marginBottom:16}}),e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",fontSize:13,color:"#888"},children:[t?e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[e.jsx("img",{src:t.avatar||"/DefaultAvatar.svg",alt:"",crossOrigin:"anonymous",style:{width:20,height:20,borderRadius:4,objectFit:"cover",border:"1px solid #e5e5e5"}}),e.jsx("span",{style:{color:"#555"},children:`${window.location.origin}${t.username?`/${t.username}`:""}`})]}):e.jsx("div",{}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6},children:[e.jsx("img",{src:"/ico.svg",alt:"Rote",style:{width:16,height:16}}),e.jsx("span",{style:{fontWeight:600,color:"#3ECF4A"},children:"Rote"})]})]})]})}export{v as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.