1import{r as t,u as M,b as f,b6 as x,j as e,aZ as u,c as H,b7 as N}from"./index-LlVqR4BX.js";import{J as w}from"./jodit-react-d0sAIeQP.js";import{M as A,a as O,F as D,b as P,B as p}from"./FormGroup-CD8YNOvz.js";const _=()=>{const g=t.useRef(null),[j,l]=t.useState(!1),[b,r]=t.useState(!0),[S,c]=t.useState(!1),[h,v]=t.useState(!1),[i,m]=t.useState("");let a;const d=M(),o=()=>v(!h),C=f(s=>s.adminHelpInfo.loading),n=f(s=>s.adminHelpInfo.adminHelp);t.useEffect(()=>{d(x())},[]),t.useEffect(()=>{m(n==null?void 0:n.text)},[n]);const k=()=>{l(!1),r(!0),c(!1),d(N({text:i.toString()})),o()},E={placeholder:"Start Typing......",toolbar:j,showCharsCounter:!1,showWordsCounter:!1,showXPathInStatusbar:!1,readonly:b,askBeforePasteHTML:!1,askBeforePasteFromWord:!0,events:{afterOpenPasteDialog:(s,R,I,F)=>{s.close(),F()}}},y=()=>{l(!0),r(!1),c(!0),a=i},T=()=>{l(!1),r(!0),c(!1),d(x())},B=s=>{a=s};return e.jsx(u.Fragment,{children:C?e.jsx(H,{}):e.jsxs(u.Fragment,{children:[S?e.jsxs("div",{className:"email_action",children:[e.jsx("button",{onClick:s=>T(),children:"Discard Changes"}),e.jsx("button",{onClick:s=>{a!==void 0&&m(a),o()},children:"Ok"})]}):e.jsx("div",{className:"email_action",children:e.jsx("button",{onClick:s=>y(),children:"Edit"})}),e.jsx(w,{ref:g,value:i,onBlur:s=>B(s),config:E}),e.jsx("div",{style:{height:"30px"}}),e.jsx(u.Fragment,{children:e.jsxs(A,{isOpen:h,toggle:o,backdrop:"static",className:"modal-sm",centered:!0,children:[e.jsx(O,{className:"p-3",children:e.jsx(D,{children:e.jsx("h4",{className:"text-center",children:"Are you sure ?"})})}),e.jsxs(P,{className:"m-auto",children:[e.jsx(p,{style:{backgroundColor:"#00A890",border:"none",outline:"none"},onClick:s=>k(),children:"Save"})," ",e.jsx(p,{color:"secondary",onClick:s=>{o()},children:"Cancel"})]})]})})]})})};export{_ 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.