1"use strict";(globalThis.webpackChunk_coreui_coreui_free_react_admin_template=globalThis.webpackChunk_coreui_coreui_free_react_admin_template||[]).push([[3352],{13352:(e,a,t)=>{t.r(a),t.d(a,{default:()=>h});var s=t(88879),l=t(82483),r=t(8826),i=t(93376),n=t(99891),c=t(33626),d=t(23080),o=t(56723);const h=()=>{const{register:e,handleSubmit:a,formState:{errors:t}}=(0,d.mN)(),[h,u]=(0,l.useState)(""),[m,p]=(0,l.useState)(""),[b,x]=(0,l.useState)(""),[g,k]=(0,l.useState)(""),[j,v]=(0,l.useState)(!1),N=(0,i.Zp)();return(0,o.jsx)(c.sK,{children:(0,o.jsxs)(c.UF,{xs:12,children:[(0,o.jsx)("h1",{className:"module-main-heading",children:"Webtickers"}),(0,o.jsx)(n.N_,{to:"/admin/webtickers",className:"mm-btn",children:"Go Back"}),(0,o.jsx)(c.E$,{className:"mb-4",children:(0,o.jsx)(c.W6,{children:(0,o.jsxs)(c.qI,{className:"row g-3 needs-validation",onSubmit:a(async e=>{try{await r.A.post(`${s.A}/webtickers`,{title:h,description:m,link:b,linktype:g}),N("../webtickers")}catch(a){a.response&&setMsg(a.response.data.msg)}v(!0)}),encType:"multipart/form-data",method:"POST",validated:j,children:[(0,o.jsx)(c.BG,{className:"mb-3",children:(0,o.jsx)(c.OG,{...e("title",{required:!0,maxLength:25}),placeholder:"Title",autoComplete:"title",value:h,onChange:e=>{u(e.target.value)}})}),t.title&&(0,o.jsx)("p",{className:"field-errors",children:"Title should be less the 25 character and greater than 0"}),(0,o.jsx)(c.BG,{className:"mb-3",children:(0,o.jsx)(c.Im,{...e("description",{required:!0,maxLength:30}),placeholder:"Description",autoComplete:"description",cols:60,rows:5,value:m,onChange:e=>{p(e.target.value)}})}),t.description&&(0,o.jsx)("p",{className:"field-errors",children:"Description should be less the 30 character and greater than 0"}),(0,o.jsx)(c.BG,{className:"mb-3",children:(0,o.jsx)(c.OG,{...e("link",{required:!0,maxLength:620}),placeholder:"Link",autoComplete:"link",type:"url",value:b,onChange:e=>{x(e.target.value)}})}),t.link&&(0,o.jsx)("p",{className:"field-errors",children:"Link should be less the 620 character and greater than 0"}),(0,o.jsx)(c.MT,{id:"linktype",name:"linktype",onChange:e=>k(e.target.value),placeholder:"link type",feedbackInvalid:"The Field is required.",value:g,options:["Please Select",{label:"Same Tab",value:"sametab"},{label:"New Tab",value:"newtab"}],required:!0}),(0,o.jsx)("div",{className:"d-grid submitBtn",children:(0,o.jsx)("input",{type:"submit",value:"Submit"})})]})})})]})})}}}]); 2//# sourceMappingURL=3352.ef0832ad.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.