1"use strict";(globalThis.webpackChunk_coreui_coreui_free_react_admin_template=globalThis.webpackChunk_coreui_coreui_free_react_admin_template||[]).push([[3266],{83266:(e,a,s)=>{s.r(a),s.d(a,{default:()=>d});var t=s(71309),l=s(80214),r=s(18687),c=s(54757),o=s(40802),n=s(66351),i=s(7398);const d=()=>{const[e,a]=(0,l.useState)(""),[s,d]=(0,l.useState)(""),[u,m]=(0,l.useState)(""),[h,p]=(0,l.useState)(!1),[x,b]=(0,l.useState)(""),j=(0,c.Zp)();return(0,i.jsx)(n.sK,{children:(0,i.jsxs)(n.UF,{xs:12,children:[(0,i.jsx)("h1",{className:"module-main-heading",children:"Sponsor Card"}),(0,i.jsx)(o.N_,{component:"a",color:"primary",to:"/admin/sponsor-cards",role:"button",className:"mm-btn",children:"Go Back"}),(0,i.jsx)(n.E$,{className:"mb-4",children:(0,i.jsx)(n.W6,{children:(0,i.jsxs)(n.qI,{className:"row g-3 needs-validation",onSubmit:async a=>{a.preventDefault();try{await r.A.post(`${t.A}/sponsor-cards`,{title:e,price:s,description:u,soldout:h}),j("../sponsor-cards")}catch(l){l.response&&b(l.response.data.msg)}},encType:"multipart/form-data",method:"POST",children:[(0,i.jsx)(n.BG,{className:"mb-3",children:(0,i.jsx)(n.OG,{placeholder:"Title",autoComplete:"title",value:e,onChange:e=>{a(e.target.value)}})}),(0,i.jsx)(n.BG,{className:"mb-3",children:(0,i.jsx)(n.OG,{placeholder:"Discount",autoComplete:"discount",value:s,type:"number",onChange:e=>{d(e.target.value)}})}),(0,i.jsx)(n.BG,{className:"mb-3",children:(0,i.jsx)(n.Im,{placeholder:"Description",rows:3,value:u,onChange:e=>{m(e.target.value)}})}),(0,i.jsx)(n.BG,{className:"mb-3",children:(0,i.jsx)(n.CK,{id:"soldout",label:"Sold Out",checked:h,onChange:e=>p(e.target.checked)})}),(0,i.jsx)("div",{className:"d-grid submitBtn",children:(0,i.jsx)("input",{type:"submit",value:"Submit"})})]})})})]})})}}}]); 2//# sourceMappingURL=3266.08c8c9c4.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.