1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6249],{6249:(e,n,t)=>{t.r(n),t.d(n,{default:()=>p});var i=t(5155),o=t(154),r=t(6908),l=t(1876),s=t(2806),d=t(7527),c=t(2115);function a(e){let{onMouseDown:n,active:t,children:o,title:r}=e;return(0,i.jsx)("button",{type:"button",onMouseDown:n,title:r,style:{padding:"3px 8px",border:t?"1.5px solid #6E63FF":"1px solid #E6ECF1",borderRadius:"5px",background:t?"#EDE9FF":"#fff",color:t?"#6E63FF":"#374151",cursor:"pointer",fontSize:"12px",fontWeight:t?700:500,lineHeight:1.5,minWidth:"28px",userSelect:"none"},children:o})}function x(){return(0,i.jsx)("span",{style:{width:"1px",height:"18px",background:"#E6ECF1",margin:"0 3px",flexShrink:0}})}function g(e,n){return t=>{t.preventDefault(),n(e.chain().focus())}}function p(e){var n;let{content:t,onChange:p,placeholder:h,fields:u}=e;(0,c.useRef)(u).current=u;let f=(0,o.hG)({extensions:[d.A,(n=u||[],r.YY.create({name:"fieldHighlight",addProseMirrorPlugins:()=>[function(e){let n=(e||[]).map(e=>e.name).filter(Boolean);return new l.k_({key:new l.hs("fieldHighlight"),props:{decorations(e){if(!n.length)return s.zF.empty;let t=n.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),i=RegExp("\\b(".concat(t.join("|"),")\\b"),"g"),o=[];return e.doc.descendants((e,n)=>{let t;if(e.isText&&e.text)for(i.lastIndex=0;null!==(t=i.exec(e.text));)o.push(s.NZ.inline(n+t.index,n+t.index+t[0].length,{class:"field-highlight"}))}),s.zF.create(e.doc,o)}}})}(n)]}))],content:t||"",editorProps:{attributes:{class:"rich-editor-content"}},onUpdate:e=>{let{editor:n}=e;p(n.getHTML())}}),v=(0,c.useRef)(t);return((0,c.useEffect)(()=>{f&&t!==v.current&&(v.current=t,f.getHTML()!==t&&f.commands.setContent(t||"",!1))},[t,f]),f)?(0,i.jsxs)("div",{style:{border:"1px solid #E6ECF1",borderRadius:"12px",overflow:"hidden",background:"#fff"},children:[(0,i.jsxs)("div",{style:{display:"flex",gap:"3px",padding:"7px 10px",borderBottom:"1px solid #E6ECF1",flexWrap:"wrap",alignItems:"center",background:"#FAFAFA"},children:[(0,i.jsxs)(a,{title:"Bold",onMouseDown:g(f,e=>e.toggleBold().run()),active:f.isActive("bold"),children:[" ",(0,i.jsx)("b",{children:"B"})," "]}),(0,i.jsxs)(a,{title:"Italic",onMouseDown:g(f,e=>e.toggleItalic().run()),active:f.isActive("italic"),children:[" ",(0,i.jsx)("i",{children:"I"})," "]}),(0,i.jsxs)(a,{title:"Strike",onMouseDown:g(f,e=>e.toggleStrike().run()),active:f.isActive("strike"),children:[" ",(0,i.jsx)("s",{children:"S"})," "]}),(0,i.jsxs)(a,{title:"Inline code",onMouseDown:g(f,e=>e.toggleCode().run()),active:f.isActive("code"),children:[" ","<>"," "]}),(0,i.jsx)(x,{}),(0,i.jsx)(a,{title:"Heading 1",onMouseDown:g(f,e=>e.toggleHeading({level:1}).run()),active:f.isActive("heading",{level:1}),children:"H1"}),(0,i.jsx)(a,{title:"Heading 2",onMouseDown:g(f,e=>e.toggleHeading({level:2}).run()),active:f.isActive("heading",{level:2}),children:"H2"}),(0,i.jsx)(a,{title:"Heading 3",onMouseDown:g(f,e=>e.toggleHeading({level:3}).run()),active:f.isActive("heading",{level:3}),children:"H3"}),(0,i.jsx)(x,{}),(0,i.jsx)(a,{title:"Bullet list",onMouseDown:g(f,e=>e.toggleBulletList().run()),active:f.isActive("bulletList"),children:" ul "}),(0,i.jsx)(a,{title:"Ordered list",onMouseDown:g(f,e=>e.toggleOrderedList().run()),active:f.isActive("orderedList"),children:" ol "}),(0,i.jsx)(a,{title:"Blockquote",onMouseDown:g(f,e=>e.toggleBlockquote().run()),active:f.isActive("blockquote"),children:" ââ "})]}),(0,i.jsxs)("div",{style:{position:"relative",minHeight:"220px"},children:[!f.getText().trim()&&h&&(0,i.jsx)("div",{style:{position:"absolute",top:"12px",left:"14px",color:"#9CA3AF",fontSize:"13px",pointerEvents:"none",userSelect:"none"},children:h}),(0,i.jsx)(o.$Z,{editor:f})]}),(0,i.jsx)("style",{children:"\n .rich-editor-content {\n min-height: 220px;\n outline: none;\n font-size: 13px;\n line-height: 1.75;\n color: #1a1a2e;\n padding: 12px 14px;\n }\n .rich-editor-content h1 { font-size: 17px; font-weight: 700; margin: 10px 0 4px; }\n .rich-editor-content h2 { font-size: 15px; font-weight: 700; margin: 8px 0 3px; }\n .rich-editor-content h3 { font-size: 13px; font-weight: 700; margin: 6px 0 2px; }\n .rich-editor-content p { margin: 4px 0; }\n .rich-editor-content ul,\n .rich-editor-content ol { padding-left: 22px; margin: 4px 0; }\n .rich-editor-content li { margin: 2px 0; }\n .rich-editor-content code {\n background: #F0EDFF;\n color: #6E63FF;\n border-radius: 4px;\n padding: 1px 5px;\n font-family: monospace;\n font-size: 12px;\n }\n .rich-editor-content blockquote {\n border-left: 3px solid #6E63FF;\n margin: 6px 0;\n padding-left: 12px;\n color: #64707C;\n }\n .rich-editor-content strong { font-weight: 700; }\n\n /* Field name auto-highlight â matches field names from the Data Fields schema */\n .field-highlight {\n color: #0D7E6A;\n background: #E6F6F2;\n border-radius: 3px;\n padding: 1px 3px;\n font-family: monospace;\n font-size: 12px;\n font-weight: 600;\n }\n "})]}):null}}}]);
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.