1"use strict";(globalThis.webpackChunk_coreui_coreui_free_react_admin_template=globalThis.webpackChunk_coreui_coreui_free_react_admin_template||[]).push([[4277],{14277:(e,t,a)=>{a.r(t),a.d(t,{default:()=>m});var s=a(88879),n=a(82483),i=a(90722),l=a(98710),r=a.n(l),u=a(8826),c=a(33626),d=a(39280),o=a(56723);const m=()=>{const[e,t]=(0,n.useState)([]),[a,l]=(0,n.useState)([]),[m,h]=(0,n.useState)(null),[p,g]=(0,n.useState)(null),[x,b]=(0,n.useState)(!1);(0,n.useEffect)(()=>{j()},[]);const j=async()=>{await u.A.get(`${s.A}/benefit-page`).then(e=>{t(e.data),l(e.data)})};return(0,o.jsxs)(c.sK,{children:[(0,o.jsx)("h1",{className:"module-main-heading",children:"Page Benefits"}),(0,o.jsx)(c.UF,{xs:12,children:(0,o.jsx)(c.E$,{className:"mb-4 BenefitisPage mm-detail",children:(0,o.jsx)(c.W6,{children:(0,o.jsxs)(c.qI,{className:"row g-3 needs-validation",onSubmit:async e=>{e.preventDefault();if(!1===e.currentTarget.checkValidity())e.preventDefault();else try{200==(await u.A.post(`${s.A}/benefit-page`,{options:a})).status&&(h("Form Submitted"),setTimeout(()=>{h(null)},3e3))}catch(t){t.response&&(g(t.response.data.msg),setTimeout(()=>{g(null)},3e3))}b(!0)},validated:x,children:[(0,o.jsx)("div",{className:"mb-3",children:e.map((e,t)=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(c.A6,{children:e.label}),(0,o.jsx)(i.CKEditor,{editor:r(),data:e.value,onReady:e=>{},onChange:(e,s)=>{const n=s.getData();a[t].value=n}})]}))}),m?(0,o.jsx)(d.A,{}):null,p?(0,o.jsx)(d.A,{error:p}):null,(0,o.jsx)("div",{className:"d-grid submitBtn",children:(0,o.jsx)("input",{type:"submit",value:"Submit"})})]})})})})]})}}}]); 2//# sourceMappingURL=4277.a6d49d1c.chunk.js.map
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.