1import{P as c}from"./chunk-2CNEFIQP-DCg4Qd-S.js";import{g as u,c as l,d,s as x,i as f}from"./home-BSMw4C0u.js";import{r}from"./chunk-6CSD65Y2-MUzdpoiq.js";import{j as a}from"./jsx-runtime-Pt5830EZ.js";import"./index-WddKggWt.js";import"./i18nInstance-B8K6-7Zg.js";f();var y=d("RichTextEditor",x);function v({content:t,field:s}){const{tiptap:m={},options:n}=s,{extensions:o=[]}=m,e=r.useMemo(()=>[c.configure(n),...o],[s,o]),i=r.useMemo(()=>typeof t=="object"&&t?.type==="doc"?t:typeof t=="string"?/<\/?[a-z][\s\S]*>/i.test(t)?u(t,e):{type:"doc",content:[{type:"paragraph",content:[{type:"text",text:t}]}]}:{type:"doc",content:[]},[t,e]),p=r.useMemo(()=>l(i,e),[i,e]);return a.jsx("div",{className:y(),children:a.jsx("div",{className:"rich-text",dangerouslySetInnerHTML:{__html:p}})})}export{v as RichTextRender};
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.