1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[10831],{10831:(e,t,s)=>{s.r(t),s.d(t,{default:()=>V});var r=s(95155),l=s(88661),i=s.n(l),a=s(12115),o=s(46098),n=s(10699),c=s(77004),d=s(43419),u=s(56135),p=s(23327),x=s(89715),h=s(52056),f=s(6132),b=s(17666),m=s(67048),g=s(44615),j=s(3829),v=s(50859),k=s(30924),w=s(40583),y=s(57456),N=s(70355),C=s(80003),A=s(19620),M=s(37586),_=s(24033),S=s(7125),P=s(58734),T=s(40949),L=s(90651),H=s(76908);let $={green:{name:"Info",bg:"#102119",border:"rgba(7, 232, 138, 0.3)",icon:"#07e88a",label:"Information"},blue:{name:"Note",bg:"#0f1a24",border:"rgba(59, 130, 246, 0.3)",icon:"#3b82f6",label:"Note"},yellow:{name:"Warning",bg:"#1f1a0f",border:"rgba(245, 158, 11, 0.3)",icon:"#f59e0b",label:"Warning"},red:{name:"Important",bg:"#1f0f0f",border:"rgba(239, 68, 68, 0.3)",icon:"#ef4444",label:"Important"},purple:{name:"Tip",bg:"#1a0f24",border:"rgba(168, 85, 247, 0.3)",icon:"#a855f7",label:"Tip"}},W=H.bP.create({name:"callout",group:"block",content:"block+",defining:!0,addOptions:()=>({HTMLAttributes:{}}),addAttributes:()=>({color:{default:"green",parseHTML:e=>e.getAttribute("data-color")||"green",renderHTML:e=>({"data-color":e.color})},title:{default:"",parseHTML:e=>e.getAttribute("data-title")||"",renderHTML:e=>({"data-title":e.title})}}),parseHTML:()=>[{tag:'div[data-type="callout"]'}],renderHTML(e){let{node:t,HTMLAttributes:s}=e,r=t.attrs.color,l=$[r]||$.green;return["div",(0,H.KV)(this.options.HTMLAttributes,s,{"data-type":"callout","data-color":r,"data-title":t.attrs.title,class:"callout-block",style:"background-color: ".concat(l.bg,"; border: 1px solid ").concat(l.border,"; border-radius: 12px; padding: 16px; margin: 12px 0;")}),0]},addCommands(){return{setCallout:e=>t=>{let{commands:s}=t;return s.wrapIn(this.name,e)},toggleCallout:e=>t=>{let{commands:s}=t;return s.toggleWrap(this.name,e)},unsetCallout:()=>e=>{let{commands:t}=e;return t.lift(this.name)},updateCalloutAttributes:e=>t=>{let{commands:s}=t;return s.updateAttributes(this.name,e)}}},addKeyboardShortcuts(){return{"Mod-Shift-c":()=>this.editor.commands.toggleCallout({color:"green"})}}}),E=H.bP.create({name:"divider",group:"block",atom:!0,addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:'div[data-type="divider"]'},{tag:'hr[data-type="divider"]'}],renderHTML(e){let{HTMLAttributes:t}=e;return["div",(0,H.KV)(this.options.HTMLAttributes,t,{"data-type":"divider",class:"divider-block",style:"\n height: 1px;\n margin: 24px 0;\n background: linear-gradient(90deg, \n transparent 0%, \n rgba(255, 255, 255, 0.15) 10%, \n rgba(255, 255, 255, 0.25) 50%, \n rgba(255, 255, 255, 0.15) 90%, \n transparent 100%\n );\n ".replace(/\s+/g," ").trim()})]},addCommands(){return{setDivider:()=>e=>{let{commands:t}=e;return t.insertContent({type:this.name})}}},addKeyboardShortcuts(){return{"Mod-Shift-d":()=>this.editor.commands.setDivider()}}}),R=H.bP.create({name:"title",group:"block",content:"inline*",defining:!0,addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:'p[data-type="title"]'},{tag:"p.title-text"}],renderHTML(e){let{HTMLAttributes:t}=e;return["p",(0,H.KV)(this.options.HTMLAttributes,t,{"data-type":"title",class:"title-text"}),0]},addCommands(){return{setTitle:()=>e=>{let{commands:t}=e;return t.setNode(this.name)},toggleTitle:()=>e=>{let{commands:t,state:s}=e,{$from:r}=s.selection;return r.parent.type.name===this.name?t.setNode("paragraph"):t.setNode(this.name)}}},addKeyboardShortcuts(){return{"Mod-Shift-t":()=>this.editor.commands.toggleTitle()}}}),D=H.bP.create({name:"collapsibleSection",group:"block",content:"block+",defining:!0,addOptions:()=>({HTMLAttributes:{}}),addAttributes:()=>({title:{default:"Section Title",parseHTML:e=>e.getAttribute("data-title")||"Section Title",renderHTML:e=>({"data-title":e.title})}}),parseHTML:()=>[{tag:'div[data-type="collapsible-section"]',contentElement:e=>e.querySelector(".collapsible-section-content")||e}],renderHTML(e){let{node:t,HTMLAttributes:s}=e;return["div",(0,H.KV)(this.options.HTMLAttributes,s,{"data-type":"collapsible-section","data-title":t.attrs.title,class:"collapsible-section-block",style:"background-color: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 0; margin: 12px 0; overflow: hidden;"}),["div",{class:"collapsible-section-header",style:"padding: 12px 16px; background: rgba(255, 255, 255, 0.05); border-bottom: 1px solid rgba(255, 255, 255, 0.1); display: flex; align-items: center; gap: 8px; cursor: pointer;",contenteditable:"false"},["span",{class:"collapsible-section-icon",style:"transition: transform 0.2s; color: rgba(255, 255, 255, 0.5); font-size: 12px;"},"â¼"],["h2",{class:"collapsible-section-title",style:"flex: 1; margin: 0; font-size: 1.125rem; font-weight: 600; color: white;"},t.attrs.title]],["div",{class:"collapsible-section-content",style:"padding: 16px;"},0]]},addCommands(){return{setCollapsibleSection:e=>t=>{let{commands:s}=t;return s.wrapIn(this.name,e)},toggleCollapsibleSection:e=>t=>{let{commands:s}=t;return s.toggleWrap(this.name,e)},unsetCollapsibleSection:()=>e=>{let{commands:t}=e;return t.lift(this.name)},updateCollapsibleSectionTitle:e=>t=>{let{commands:s}=t;return s.updateAttributes(this.name,{title:e})}}}});var I=s(51876);let z='<div data-type="divider" class="divider-block" style="height: 1px; margin: 24px 0px; background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.15) 10%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0.15) 90%, transparent 100%);"></div>';function K(e){return/\[(H2|H3|P|LIST|DIVIDER)\]/i.test(e)}function B(e){if(K(e))return!0;let t=0;for(let s of[/^#{1,6}\s+/m,/\*\*[^*]+\*\*/,/^\s*[-*]\s+/m,/^\s*\d+\.\s+/m,/\[.+\]\(.+\)/,/^>\s+/m,/```[\s\S]*```/,/`[^`]+`/,/^-{3,}$/m])s.test(e)&&t++;return t>=2||/^#{1,6}\s+/.test(e)||/^\s*[-*]\s+.+\n\s*[-*]\s+/m.test(e)||/^\d+\.\s+.+\n\d+\.\s+/m.test(e)}let O=H.YY.create({name:"markdownPaste",addProseMirrorPlugins(){let e=this.editor;return[new I.k_({key:new I.hs("markdownPaste"),props:{handlePaste:(t,s)=>{var r,l;let i=null==(r=s.clipboardData)?void 0:r.getData("text/plain"),a=null==(l=s.clipboardData)?void 0:l.getData("text/html");if(a&&a.includes("<")&&!B(i||""))return!1;if(i&&B(i)){s.preventDefault();let t=function(e){if(K(e))return function(e){let t=e.split("\n"),s=[],r=!1;for(let e=0;e<t.length;e++){let l=t[e].trim();if(l){if(l.startsWith("[H2]")){r&&(s.push("</ul>"),r=!1);let e=l.replace("[H2]","").trim();s.push("<h2>".concat(e,"</h2>"));continue}if(l.startsWith("[H3]")){r&&(s.push("</ul>"),r=!1);let e=l.replace("[H3]","").trim();s.push("<h3>".concat(e,"</h3>"));continue}if(l.startsWith("[P]")){r&&(s.push("</ul>"),r=!1);let e=l.replace("[P]","").trim();s.push("<p>".concat(e,"</p>"));continue}if("[DIVIDER]"===l){r&&(s.push("</ul>"),r=!1),s.push(z);continue}if("[LIST]"===l){r&&s.push("</ul>"),s.push('<ul class="list-disc pl-4">'),r=!0;continue}if(l.startsWith("- ")&&r){let e=l.substring(2).trim();s.push("<li>".concat(e,"</li>"));continue}r&&!l.startsWith("- ")&&(s.push("</ul>"),r=!1),l.startsWith("[")||l.startsWith("- ")||s.push("<p>".concat(l,"</p>"))}}return r&&s.push("</ul>"),s.join("")}(e);let t=e,s=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace(/```(\w*)\n?([\s\S]*?)```/g,(e,t,s)=>"<pre><code>".concat(s.trim(),"</code></pre>"))).replace(/`([^`]+)`/g,"<code>$1</code>")).replace(/^######\s+(.+)$/gm,"<h6>$1</h6>")).replace(/^#####\s+(.+)$/gm,"<h5>$1</h5>")).replace(/^####\s+(.+)$/gm,"<h4>$1</h4>")).replace(/^###\s+(.+)$/gm,"<h3>$1</h3>")).replace(/^##\s+(.+)$/gm,"<h2>$1</h2>")).replace(/^#\s+(.+)$/gm,"<h2>$1</h2>")).replace(/\*\*([^*]+)\*\*/g,"<strong>$1</strong>")).replace(/__([^_]+)__/g,"<strong>$1</strong>")).replace(RegExp("(?<!\\*)\\*([^*]+)\\*(?!\\*)","g"),"<em>$1</em>")).replace(RegExp("(?<!_)_([^_]+)_(?!_)","g"),"<em>$1</em>")).replace(/~~([^~]+)~~/g,"<s>$1</s>")).replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')).replace(/!\[([^\]]*)\]\(([^)]+)\)/g,'<a href="$2" target="_blank" rel="noopener noreferrer">$1 (image)</a>')).replace(/^(-{3,}|\*{3,})$/gm,z)).replace(/^>\s+(.+)$/gm,"<blockquote>$1</blockquote>")).replace(/<\/blockquote>\n<blockquote>/g,"\n")).split("\n"),r=[],l=!1,i=!1;for(let e=0;e<s.length;e++){let t=s[e],a=t.match(/^[\-\*]\s+(.+)$/),o=t.match(/^\d+\.\s+(.+)$/);a?(i&&(r.push("</ol>"),i=!1),l||(r.push('<ul class="list-disc pl-4">'),l=!0),r.push("<li>".concat(a[1],"</li>"))):o?(l&&(r.push("</ul>"),l=!1),i||(r.push('<ol class="list-decimal pl-4">'),i=!0),r.push("<li>".concat(o[1],"</li>"))):(l&&(r.push("</ul>"),l=!1),i&&(r.push("</ol>"),i=!1),r.push(t))}l&&r.push("</ul>"),i&&r.push("</ol>");let a=[];for(let e of(t=r.join("\n")).split("\n")){let t=e.trim();t&&(t.startsWith("<")&&(t.startsWith("<h")||t.startsWith("<p")||t.startsWith("<ul")||t.startsWith("<ol")||t.startsWith("<li")||t.startsWith("</")||t.startsWith("<blockquote")||t.startsWith("<pre")||t.startsWith("<hr")||t.startsWith("<div")||t.startsWith("<a ")||t.startsWith("<strong")||t.startsWith("<em")||t.startsWith("<code"))?a.push(e):a.push("<p>".concat(t,"</p>")))}return a.join("")}(i);return e.chain().focus().insertContent(t).run(),!0}return!1}}})]}}),U=e=>{let{onClick:t,isActive:s,children:l,title:i,disabled:a=!1}=e;return(0,r.jsx)("button",{type:"button",onClick:t,title:i,disabled:a,className:"p-1.5 rounded-md transition-colors ".concat(s?"bg-[#07e88a] text-black":a?"text-white/30 curs
1or-not-allowed":"text-white/60 hover:text-white hover:bg-white/10"),children:l})},q={green:(0,r.jsx)(p.A,{className:"w-4 h-4"}),blue:(0,r.jsx)(x.A,{className:"w-4 h-4"}),yellow:(0,r.jsx)(h.A,{className:"w-4 h-4"}),red:(0,r.jsx)(f.A,{className:"w-4 h-4"}),purple:(0,r.jsx)(b.A,{className:"w-4 h-4"})};function V(e){let{value:t,onChange:s,placeholder:l="Brief Description here"}=e,p=(0,a.useRef)(!1),x=(0,a.useRef)(!1),[h,f]=(0,a.useState)(!1),b=(0,a.useRef)(null),[H,I]=(0,a.useState)(!1),z=(0,a.useRef)(null),[K,B]=(0,a.useState)(!1),[V,Y]=(0,a.useState)(""),F=(0,a.useRef)(null),[G,Z]=(0,a.useState)(!1),[J,Q]=(0,a.useState)(""),[X,ee]=(0,a.useState)(!1),et=(0,a.useRef)(null),[es,er]=(0,a.useState)(!1),[el,ei]=(0,a.useState)(""),ea=(0,a.useRef)(null),[,eo]=(0,a.useState)(0),en=(0,o.hG)({immediatelyRender:!1,extensions:[n.A.configure({bulletList:{HTMLAttributes:{class:"list-disc pl-4"}},orderedList:{HTMLAttributes:{class:"list-decimal pl-4"}},heading:{levels:[2,3]},link:!1,underline:!1}),R,c.A.configure({placeholder:l,emptyEditorClass:"before:content-[attr(data-placeholder)] before:text-[#a1a1a1] before:float-left before:h-0 before:pointer-events-none"}),d.A,u.Ay.configure({openOnClick:!1,HTMLAttributes:{class:"text-[#07e88a] underline hover:text-[#05c977] cursor-pointer",target:"_blank",rel:"noopener noreferrer"}}),W,E,D,O],content:t,editorProps:{attributes:{class:"prose prose-invert prose-sm max-w-none min-h-[100px] px-3 py-3 focus:outline-none text-[14px] text-white/80"}},onUpdate:e=>{let{editor:t}=e;x.current||s(t.getHTML())},onSelectionUpdate:()=>{eo(e=>e+1)},onTransaction:()=>{eo(e=>e+1)}}),ec=(0,a.useRef)("");(0,a.useEffect)(()=>{if(!en)return;let e=en.getHTML(),s=t||"",r="<p></p>"===e?"":e;if(s===ec.current)return;if(r===s){ec.current=s;return}let l=s&&""!==s.trim();(("<p></p>"===e||""===e)&&l||l&&s!==r)&&(x.current=!0,en.commands.setContent(s),x.current=!1,ec.current=s,p.current=!0)},[t,en]),(0,a.useEffect)(()=>{let e=e=>{b.current&&!b.current.contains(e.target)&&f(!1),z.current&&!z.current.contains(e.target)&&I(!1)};return(h||H)&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[h,H]);let ed=(0,a.useCallback)(()=>{en&&(ei(en.getAttributes("callout").title||""),er(!0),f(!1),setTimeout(()=>{var e,t;null==(e=ea.current)||e.focus(),null==(t=ea.current)||t.select()},100))},[en]),eu=(0,a.useCallback)(()=>{if(!en)return;let e=el.trim()||"Information";en.chain().focus().updateCalloutAttributes({title:e}).run(),er(!1),ei("")},[en,el]),ep=(0,a.useCallback)(()=>{en&&(Y(en.getAttributes("link").href||""),B(!0),setTimeout(()=>{var e;null==(e=F.current)||e.focus()},100))},[en]),ex=(0,a.useCallback)(()=>{if(!en)return;if(""===V){en.chain().focus().extendMarkRange("link").unsetLink().run(),B(!1);return}let e=V;/^https?:\/\//i.test(e)||(e="https://"+e),en.chain().focus().extendMarkRange("link").setLink({href:e}).run(),B(!1),Y("")},[en,V]),eh=(0,a.useCallback)(()=>{en&&en.chain().focus().extendMarkRange("link").unsetLink().run()},[en]),ef=(0,a.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];en&&(ee(e),e&&en.isActive("collapsibleSection")?Q(en.getAttributes("collapsibleSection").title||""):Q(""),Z(!0),setTimeout(()=>{var e,t;null==(e=et.current)||e.focus(),null==(t=et.current)||t.select()},100))},[en]),eb=(0,a.useCallback)(()=>{if(!en)return;let e=J.trim()||"Section Title";X&&en.isActive("collapsibleSection")?en.chain().focus().updateCollapsibleSectionTitle(e).run():en.chain().focus().setCollapsibleSection({title:e}).run(),Z(!1),Q(""),ee(!1)},[en,J,X]);return en?(0,r.jsxs)("div",{className:"jsx-2fa0c3412f221e03 relative bg-[#222] border border-[#2d2d2d] rounded-[12px] focus-within:border-[#07e88a] transition-colors",children:[(0,r.jsxs)("div",{className:"jsx-2fa0c3412f221e03 flex items-center gap-1 px-2 py-2 border-b border-[#2d2d2d] bg-[#1a1a1a] flex-wrap rounded-t-[12px]",children:[(0,r.jsx)(U,{onClick:()=>en.chain().focus().toggleBold().run(),isActive:en.isActive("bold"),title:"Bold (Ctrl+B)",children:(0,r.jsx)(m.A,{className:"w-4 h-4"})}),(0,r.jsx)(U,{onClick:()=>en.chain().focus().toggleItalic().run(),isActive:en.isActive("italic"),title:"Italic (Ctrl+I)",children:(0,r.jsx)(g.A,{className:"w-4 h-4"})}),(0,r.jsx)(U,{onClick:()=>en.chain().focus().toggleUnderline().run(),isActive:en.isActive("underline"),title:"Underline (Ctrl+U)",children:(0,r.jsx)(j.A,{className:"w-4 h-4"})}),(0,r.jsx)("div",{className:"jsx-2fa0c3412f221e03 w-px h-5 bg-[#2d2d2d] mx-1"}),(0,r.jsx)(U,{onClick:ep,isActive:en.isActive("link"),title:"Add Link (Ctrl+K)",children:(0,r.jsx)(v.A,{className:"w-4 h-4"})}),en.isActive("link")&&(0,r.jsx)(U,{onClick:eh,title:"Remove Link",children:(0,r.jsx)(k.A,{className:"w-4 h-4"})}),(0,r.jsx)("div",{className:"jsx-2fa0c3412f221e03 w-px h-5 bg-[#2d2d2d] mx-1"}),(0,r.jsx)(U,{onClick:()=>en.chain().focus().toggleTitle().run(),isActive:en.isActive("title"),title:"Title (Ctrl+Shift+T)",children:(0,r.jsx)(w.A,{className:"w-4 h-4"})}),(0,r.jsx)(U,{onClick:()=>en.chain().focus().toggleHeading({level:2}).run(),isActive:en.isActive("heading",{level:2}),title:"Heading (H2)",children:(0,r.jsx)(y.A,{className:"w-4 h-4"})}),(0,r.jsx)(U,{onClick:()=>en.chain().focus().toggleHeading({level:3}).run(),isActive:en.isActive("heading",{level:3}),title:"Subheading (H3)",children:(0,r.jsx)(N.A,{className:"w-4 h-4"})}),(0,r.jsx)("div",{className:"jsx-2fa0c3412f221e03 w-px h-5 bg-[#2d2d2d] mx-1"}),(0,r.jsx)(U,{onClick:()=>{en.isActive("bulletList")?en.chain().toggleBulletList().run():en.chain().focus().toggleBulletList().run()},isActive:en.isActive("bulletList"),title:"Bullet List",children:(0,r.jsx)(C.A,{className:"w-4 h-4"})}),(0,r.jsx)(U,{onClick:()=>{en.isActive("orderedList")?en.chain().toggleOrderedList().run():en.chain().focus().toggleOrderedList().run()},isActive:en.isActive("orderedList"),title:"Numbered List",children:(0,r.jsx)(A.A,{className:"w-4 h-4"})}),(0,r.jsx)("div",{className:"jsx-2fa0c3412f221e03 w-px h-5 bg-[#2d2d2d] mx-1"}),(0,r.jsxs)("div",{ref:b,className:"jsx-2fa0c3412f221e03 relative",children:[(0,r.jsxs)("button",{type:"button",onClick:()=>f(!h),title:"Insert Callout Block (Ctrl+Shift+C)",className:"jsx-2fa0c3412f221e03 "+"flex items-center gap-1 px-2 py-1.5 rounded-md transition-colors ".concat(en.isActive("callout")?"bg-[#07e88a] text-black":"text-white/60 hover:text-white hover:bg-white/10"),children:[(0,r.jsx)(M.A,{className:"w-4 h-4"}),(0,r.jsx)("span",{className:"jsx-2fa0c3412f221e03 text-xs font-medium",children:"Callout"}),(0,r.jsx)(_.A,{className:"w-3 h-3"})]}),h&&(0,r.jsxs)("div",{className:"jsx-2fa0c3412f221e03 absolute top-full left-0 mt-1 bg-[#1a1a1a] border border-[#2d2d2d] rounded-lg shadow-xl z-50 min-w-[180px] py-1",children:[(0,r.jsx)("div",{className:"jsx-2fa0c3412f221e03 px-3 py-1.5 text-xs text-white/50 border-b border-[#2d2d2d]",children:"Choose callout style"}),Object.keys($).map(e=>{let t=$[e];return(0,r.jsxs)("button",{type:"button",onClick:()=>(e=>{if(!en)return;let t=$[e];en.chain().focus().toggleCallout({color:e,title:t.label}).run(),f(!1)})(e),className:"jsx-2fa0c3412f221e03 w-full flex items-center gap-3 px-3 py-2 hover:bg-white/5 transition-colors text-left",children:[(0,r.jsx)("div",{style:{backgroundColor:t.bg,border:"1px solid ".concat(t.border)},className:"jsx-2fa0c3412f221e03 w-6 h-6 rounded flex items-center justify-center",children:(0,r.jsx)("span",{style:{color:t.icon},className:"jsx-2fa0c3412f221e03",children:q[e]})}),(0,r.jsxs)("div",{className:"jsx-2fa0c3412f221e03 flex flex-col",children:[(0,r.jsx)("span",{className:"jsx-2fa0c3412f221e03 text-sm text-white",children:t.name}),(0,r.jsx)("span",{className:"jsx-2fa0c3412f221e03 text-xs text-white/50",children:t.label})]})]},e)}),en.isActive("callout")&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"jsx-2fa0c3412f221e03 border-t border-[#2d2d2d] my-1"}),(0,r.jsx)("button",{type:"button",onClick:ed,className:"jsx-2fa0c3412f221e03 w-full flex items-center gap-3 px-3 py-2 hover:bg-white/5 transition-colors text-left text-white",children:(0,r.jsx)("span",{className:"jsx-2fa0c3412f221e03 text-sm",children:"Edit Title"})}),(0,r.jsx)("button",{type:"button",onClick:()=>{en.chain().focus().unsetCallout().run(),f(!1)},className:"jsx-2fa0c3412f221e03 w-full flex items-center gap-3 px-3 py-2 hover:bg-red-500/10 transition-colors text-left text-red-400",children:(0,r.jsx)("span",{className:"jsx-2fa0c3412f221e03 text-sm",children:"Remove Callout"})})]})]})]}),(0,r.jsx)(U,{onClick:()=>
1en.chain().focus().setDivider().run(),title:"Insert Divider (Ctrl+Shift+D)",children:(0,r.jsx)(S.A,{className:"w-4 h-4"})}),(0,r.jsxs)("div",{ref:z,className:"jsx-2fa0c3412f221e03 relative",children:[(0,r.jsxs)("button",{type:"button",onClick:()=>{en.isActive("collapsibleSection")?I(!H):ef(!1)},title:en.isActive("collapsibleSection")?"Edit Collapsible Section":"Insert Collapsible Section",className:"jsx-2fa0c3412f221e03 "+"flex items-center gap-1 px-2 py-1.5 rounded-md transition-colors ".concat(en.isActive("collapsibleSection")?"bg-[#07e88a] text-black":"text-white/60 hover:text-white hover:bg-white/10"),children:[(0,r.jsx)(P.A,{className:"w-4 h-4"}),en.isActive("collapsibleSection")&&(0,r.jsx)(_.A,{className:"w-3 h-3"})]}),H&&en.isActive("collapsibleSection")&&(0,r.jsxs)("div",{className:"jsx-2fa0c3412f221e03 absolute top-full left-0 mt-1 bg-[#1a1a1a] border border-[#2d2d2d] rounded-lg shadow-xl z-50 min-w-[180px] py-1",children:[(0,r.jsxs)("button",{type:"button",onClick:()=>{ef(!1),I(!1)},className:"jsx-2fa0c3412f221e03 w-full flex items-center gap-3 px-3 py-2 hover:bg-white/5 transition-colors text-left text-white",children:[(0,r.jsx)(P.A,{className:"w-4 h-4 text-[#07e88a]"}),(0,r.jsx)("span",{className:"jsx-2fa0c3412f221e03 text-sm",children:"Add Sub-Section"})]}),(0,r.jsx)("button",{type:"button",onClick:()=>{ef(!0),I(!1)},className:"jsx-2fa0c3412f221e03 w-full flex items-center gap-3 px-3 py-2 hover:bg-white/5 transition-colors text-left text-white",children:(0,r.jsx)("span",{className:"jsx-2fa0c3412f221e03 text-sm",children:"Edit Section Title"})}),(0,r.jsx)("button",{type:"button",onClick:()=>{en.chain().focus().unsetCollapsibleSection().run(),I(!1)},className:"jsx-2fa0c3412f221e03 w-full flex items-center gap-3 px-3 py-2 hover:bg-red-500/10 transition-colors text-left text-red-400",children:(0,r.jsx)("span",{className:"jsx-2fa0c3412f221e03 text-sm",children:"Remove Section (Keep Content)"})})]})]}),(0,r.jsx)("div",{className:"jsx-2fa0c3412f221e03 w-px h-5 bg-[#2d2d2d] mx-1"}),(0,r.jsx)(U,{onClick:()=>en.chain().focus().undo().run(),title:"Undo (Ctrl+Z)",children:(0,r.jsx)(T.A,{className:"w-4 h-4"})}),(0,r.jsx)(U,{onClick:()=>en.chain().focus().redo().run(),title:"Redo (Ctrl+Y)",children:(0,r.jsx)(L.A,{className:"w-4 h-4"})})]}),K&&(0,r.jsx)("div",{className:"jsx-2fa0c3412f221e03 absolute inset-0 bg-black/50 flex items-center justify-center z-50",children:(0,r.jsxs)("div",{className:"jsx-2fa0c3412f221e03 bg-[#1a1a1a] border border-[#2d2d2d] rounded-lg p-4 w-[320px] shadow-xl",children:[(0,r.jsxs)("div",{className:"jsx-2fa0c3412f221e03 flex items-center justify-between mb-3",children:[(0,r.jsx)("h3",{className:"jsx-2fa0c3412f221e03 text-sm font-medium text-white",children:"Add Link"}),(0,r.jsx)("button",{type:"button",onClick:()=>{B(!1),Y("")},className:"jsx-2fa0c3412f221e03 text-white/60 hover:text-white",children:"\xd7"})]}),(0,r.jsx)("input",{ref:F,type:"url",value:V,onChange:e=>Y(e.target.value),placeholder:"https://example.com",onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),ex()),"Escape"===e.key&&(B(!1),Y(""))},className:"jsx-2fa0c3412f221e03 w-full bg-[#222] border border-[#2d2d2d] rounded-lg px-3 py-2 text-sm text-white placeholder-white/40 focus:outline-none focus:border-[#07e88a]"}),(0,r.jsxs)("div",{className:"jsx-2fa0c3412f221e03 flex gap-2 mt-3",children:[(0,r.jsx)("button",{type:"button",onClick:ex,className:"jsx-2fa0c3412f221e03 flex-1 bg-[#07e88a] text-black text-sm font-medium py-2 rounded-lg hover:bg-[#05c977] transition-colors",children:V?"Save Link":"Remove Link"}),(0,r.jsx)("button",{type:"button",onClick:()=>{B(!1),Y("")},className:"jsx-2fa0c3412f221e03 px-4 py-2 text-sm text-white/60 hover:text-white border border-[#2d2d2d] rounded-lg transition-colors",children:"Cancel"})]})]})}),es&&(0,r.jsx)("div",{className:"jsx-2fa0c3412f221e03 absolute inset-0 bg-black/50 flex items-center justify-center z-50",children:(0,r.jsxs)("div",{className:"jsx-2fa0c3412f221e03 bg-[#1a1a1a] border border-[#2d2d2d] rounded-lg p-4 w-[320px] shadow-xl",children:[(0,r.jsxs)("div",{className:"jsx-2fa0c3412f221e03 flex items-center justify-between mb-3",children:[(0,r.jsx)("h3",{className:"jsx-2fa0c3412f221e03 text-sm font-medium text-white",children:"Edit Callout Title"}),(0,r.jsx)("button",{type:"button",onClick:()=>{er(!1),ei("")},className:"jsx-2fa0c3412f221e03 text-white/60 hover:text-white",children:"\xd7"})]}),(0,r.jsx)("p",{className:"jsx-2fa0c3412f221e03 text-xs text-white/50 mb-3",children:"Customize the title displayed at the top of the callout block."}),(0,r.jsx)("input",{ref:ea,type:"text",value:el,onChange:e=>ei(e.target.value),placeholder:"e.g., Note, Important, No Evaluation Required",onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),eu()),"Escape"===e.key&&(er(!1),ei(""))},className:"jsx-2fa0c3412f221e03 w-full bg-[#222] border border-[#2d2d2d] rounded-lg px-3 py-2 text-sm text-white placeholder-white/40 focus:outline-none focus:border-[#07e88a]"}),(0,r.jsxs)("div",{className:"jsx-2fa0c3412f221e03 flex gap-2 mt-3",children:[(0,r.jsx)("button",{type:"button",onClick:eu,className:"jsx-2fa0c3412f221e03 flex-1 bg-[#07e88a] text-black text-sm font-medium py-2 rounded-lg hover:bg-[#05c977] transition-colors",children:"Save Title"}),(0,r.jsx)("button",{type:"button",onClick:()=>{er(!1),ei("")},className:"jsx-2fa0c3412f221e03 px-4 py-2 text-sm text-white/60 hover:text-white border border-[#2d2d2d] rounded-lg transition-colors",children:"Cancel"})]})]})}),G&&(0,r.jsx)("div",{className:"jsx-2fa0c3412f221e03 absolute inset-0 bg-black/50 flex items-center justify-center z-50",children:(0,r.jsxs)("div",{className:"jsx-2fa0c3412f221e03 bg-[#1a1a1a] border border-[#2d2d2d] rounded-lg p-4 w-[320px] shadow-xl",children:[(0,r.jsxs)("div",{className:"jsx-2fa0c3412f221e03 flex items-center justify-between mb-3",children:[(0,r.jsx)("h3",{className:"jsx-2fa0c3412f221e03 text-sm font-medium text-white",children:X?"Edit Section Title":"Add Collapsible Section"}),(0,r.jsx)("button",{type:"button",onClick:()=>{Z(!1),Q(""),ee(!1)},className:"jsx-2fa0c3412f221e03 text-white/60 hover:text-white",children:"\xd7"})]}),(0,r.jsx)("p",{className:"jsx-2fa0c3412f221e03 text-xs text-white/50 mb-3",children:X?"Update the title for this collapsible section.":"Create a collapsible section that users can expand/collapse. Great for organizing detailed rules by account type."}),(0,r.jsx)("input",{ref:et,type:"text",value:J,onChange:e=>Q(e.target.value),placeholder:"e.g., Select Flex Policy, Daily Policy",onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),eb()),"Escape"===e.key&&(Z(!1),Q(""),ee(!1))},className:"jsx-2fa0c3412f221e03 w-full bg-[#222] border border-[#2d2d2d] rounded-lg px-3 py-2 text-sm text-white placeholder-white/40 focus:outline-none focus:border-[#07e88a]"}),(0,r.jsxs)("div",{className:"jsx-2fa0c3412f221e03 flex gap-2 mt-3",children:[(0,r.jsx)("button",{type:"button",onClick:eb,className:"jsx-2fa0c3412f221e03 flex-1 bg-[#07e88a] text-black text-sm font-medium py-2 rounded-lg hover:bg-[#05c977] transition-colors",children:X?"Update Title":"Insert Section"}),X&&(0,r.jsx)("button",{type:"button",onClick:()=>{null==en||en.chain().focus().unsetCollapsibleSection().run(),Z(!1),Q(""),ee(!1)},className:"jsx-2fa0c3412f221e03 px-4 py-2 text-sm text-red-400 hover:text-red-300 border border-red-500/30 rounded-lg transition-colors",children:"Remove"}),(0,r.jsx)("button",{type:"button",onClick:()=>{Z(!1),Q("")},className:"jsx-2fa0c3412f221e03 px-4 py-2 text-sm text-white/60 hover:text-white border border-[#2d2d2d] rounded-lg transition-colors",children:"Cancel"})]})]})}),(0,r.jsx)("div",{className:"jsx-2fa0c3412f221e03 max-h-[400px] overflow-y-auto",children:(0,r.jsx)(o.$Z,{editor:en,className:"[&_.ProseMirror]:min-h-[100px] [&_.ProseMirror_p]:my-1 [&_.ProseMirror_.title-text]:text-[17px] [&_.ProseMirror_.title-text]:font-semibold [&_.ProseMirror_.title-text]:text-white [&_.ProseMirror_.title-text]:mt-3 [&_.ProseMirror_.title-text]:mb-1 [&_.ProseMirror_h2]:text-lg [&_.ProseMirror_h2]:font-semibold [&_.ProseMirror_h2]:mt-3 [&_.ProseMirror_h2]:mb-1 [&_.ProseMirror_h3]:text-base [&_.ProseMirror_h3]:font-semibold [&_.ProseMirror_h3]:mt-2 [&_.ProseMirror_h3]:mb-1 [&_.ProseMirror_ul]:my-2 [&_.ProseMirror_ol]:my-2 [&_.ProseMirror_li]:my-0.5 [&_.ProseMirror_.callout-block]:rounded-xl [&_.ProseMirror_.callout-block]:my-3 [&_.ProseMirror_.divider-block]:my-6"})}),(0,r.jsx)(i(),{id:"2fa0c3412f221e03",children:'.ProseMirror .callout-block{position:relative}.ProseMirror .callout-block::before{content:attr(data-title);display:block;font-weight:500;font-size:14px;color:white;margin-bottom:4px;padding-left:24px}.ProseMirror .callout-block[data-color="green"]::before{color:#07e88a}.ProseMirror .callout-block[data-color="blue"]::before{color:#3b82f6}.ProseMirror .callout-block[data-color="yellow"]::before{color:#f59e0b}.ProseMirror .callout-block[data-color="red"]::before{color:#ef4444}.ProseMirror .callout-block[data-color="purple"]::before{color:#a855f7}.ProseMirror .callout-block>p{color:rgba(255,255,255,.7);font-size:14px;padding-left:24px}.ProseMirror .divider-block{cursor:pointer;transition:opacity.2s}.ProseMirror .divider-block:hover{opacity:.7}.ProseMirror .divider-block.ProseMirror-selectednode{outline:2px solid#07e88a;outline-offset:4px;border-radius:2px}.ProseMirror .collapsible-section-block{position:relative}.ProseMirror .collapsible-section-block .collapsible-section-header{-webkit-user-select:none;user-select:none}.ProseMirror .collapsible-section-block .collapsible-section-icon{font-size:10px;color:rgba(255,255,255,.5)}.ProseMirror .collapsible-section-block .collapsible-section-title{font-size:14px}.ProseMirror .collapsible-section-block.ProseMirror-selectednode{outline:2px solid#07e88a;outline-offset:2px}'})]}):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.