1"use strict";(globalThis.webpackChunk_coreui_coreui_free_react_admin_template=globalThis.webpackChunk_coreui_coreui_free_react_admin_template||[]).push([[2683],{42683:(e,a,t)=>{t.r(a),t.d(a,{default:()=>m});var s=t(71309),l=t(80214),n=t(6783),r=t(35125),i=t.n(r),u=t(18687),c=t(66351),d=t(59442),o=t(7398);const m=()=>{const[e,a]=(0,l.useState)([]),[t,r]=(0,l.useState)([]),[m,h]=(0,l.useState)(null),[p,x]=(0,l.useState)(null),[g,j]=(0,l.useState)(!1);(0,l.useEffect)(()=>{b()},[]);const b=async()=>{await u.A.get(`${s.A}/sponsor-page`).then(e=>{a(e.data),r(e.data)})};return(0,o.jsxs)(c.sK,{children:[(0,o.jsx)("h1",{className:"module-main-heading",children:"Page Sponsor"}),(0,o.jsx)(c.UF,{xs:12,children:(0,o.jsx)(c.E$,{className:"mb-4 PageSponsor 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}/sponsor-page`,{options:t})).status&&(h("Form Submitted"),setTimeout(()=>{h(null)},3e3))}catch(a){a.response&&(x(a.response.data.msg),setTimeout(()=>{x(null)},2e3))}j(!0)},validated:g,children:[(0,o.jsx)("div",{className:"mb-3",children:e.map((e,a)=>"textarea"===e.type?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(c.A6,{children:e.label}),(0,o.jsx)(n.CKEditor,{editor:i(),data:e.value,onReady:e=>{},onChange:(e,s)=>{const l=s.getData();t[a].value=l}})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(c.A6,{children:e.label}),(0,o.jsx)(c.OG,{placeholder:e.label,defaultValue:e.value,autoComplete:e.label,onChange:e=>{t[a].value=e.target.value},required:!0})]}))}),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=2683.7a1410bb.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.