1import{r as J,J as E,j as M,T as U,K as z}from"./main-DUgfNGuS.js";import{a as H}from"./index-D-Z_ofLq.js";import"./index-CK33sJda.js";z();z();var w=(o,t)=>{var e,u,r,n,a,c,s,g,d,v,_,A,x,B,f,k,L,p,h,m,C,R,S,T,j,I,q,b;const i=o.editor;if(!i)return{};const l=()=>i.can().chain();return{isAlignLeft:i.isActive({textAlign:"left"}),canAlignLeft:!t&&((u=(e=l()).setTextAlign)==null?void 0:u.call(e,"left").run()),isAlignCenter:i.isActive({textAlign:"center"}),canAlignCenter:!t&&((n=(r=l()).setTextAlign)==null?void 0:n.call(r,"center").run()),isAlignRight:i.isActive({textAlign:"right"}),canAlignRight:!t&&((c=(a=l()).setTextAlign)==null?void 0:c.call(a,"right").run()),isAlignJustify:i.isActive({textAlign:"justify"}),canAlignJustify:!t&&((g=(s=l()).setTextAlign)==null?void 0:g.call(s,"justify").run()),isBold:i.isActive("bold"),canBold:!t&&((v=(d=l()).toggleBold)==null?void 0:v.call(d).run()),isItalic:i.isActive("italic"),canItalic:!t&&((A=(_=l()).toggleItalic)==null?void 0:A.call(_).run()),isUnderline:i.isActive("underline"),canUnderline:!t&&((B=(x=l()).toggleUnderline)==null?void 0:B.call(x).run()),isStrike:i.isActive("strike"),canStrike:!t&&((k=(f=l()).toggleStrike)==null?void 0:k.call(f).run()),isInlineCode:i.isActive("code"),canInlineCode:!t&&((p=(L=l()).toggleCode)==null?void 0:p.call(L).run()),isBulletList:i.isActive("bulletList"),canBulletList:!t&&((m=(h=l()).toggleBulletList)==null?void 0:m.call(h).run()),isOrderedList:i.isActive("orderedList"),canOrderedList:!t&&((R=(C=l()).toggleOrderedList)==null?void 0:R.call(C).run()),isCodeBlock:i.isActive("codeBlock"),canCodeBlock:!t&&((T=(S=l()).toggleCodeBlock)==null?void 0:T.call(S).run()),isBlockquote:i.isActive("blockquote"),canBlockquote:!t&&((I=(j=l()).toggleBlockquote)==null?void 0:I.call(j).run()),canHorizontalRule:!t&&((b=(q=l()).setHorizontalRule)==null?void 0:b.call(q).run())}},D=({editor:o,field:t,readOnly:e,inline:u})=>{const{tiptap:r={}}=t,{selector:n}=r,a=J.useMemo(()=>s=>E(E({},w(s,e)),n?n(s,e):{}),[n,e]),c=H({editor:o,selector:a});return!o||!c?null:M.jsx(U,{editor:o,editorState:c,field:t,readOnly:e,inline:u})};export{D as LoadedRichTextMenuFull};
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.