1import{j as e,S as m,B as p}from"./index-ChE83ne2.js";import{a as o}from"./vendor-size-chart-preview-CrZ1hg3e.js";import{D as r,h as u,d as f}from"./vendor-draft-YI1zxtah.js";import{r as C}from"./vendor-rich-text-ui-jPXlCkte.js";import{D as S}from"./Divider-BO4QbDeb.js";import"./vendor-aws-core-DNXxygaL.js";import"./vendor-immutable-DzbpDxxn.js";const x={options:["blockType","inline","list","textAlign"],blockType:{inDropdown:!0,options:["H2","H3","H4","Normal"],className:void 0,component:void 0,dropdownClassName:void 0},inline:{inDropdown:!1,className:void 0,component:void 0,dropdownClassName:void 0,options:["bold","italic","underline"]},list:{options:["ordered","unordered"]}};function j(n){o.useEffect(()=>{console.log(`initial useEffect 2`,a),i(r.EditorState.createWithContent(r.ContentState.createFromBlockArray(u(n.CurrentContent).contentBlocks)))},[]);const[s,i]=o.useState(r.EditorState.createEmpty()),[a,l]=o.useState(n.CurrentContent),[E,c]=o.useState(null),d=o.useRef(null);return e.jsxs(m,{direction:"column",children:[e.jsx(p,{variant:"contained",color:"primary",style:{backgroundColor:"#303030",color:"white",margin:"10px"},onClick:t=>{n.FinishClick(a)},children:"Apply"}),e.jsx(S,{}),e.jsx(C.Editor,{ref:d,editorStyle:{height:"40vh"},toolbar:x,editorState:s,onEditorStateChange:t=>i(t),onContentStateChange:t=>{c(t),l(f(t))}})]})}export{j 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.