1import{b6 as x,aY as e}from"./.pnpm-DsWhPSJO.js";import{D as h}from"./DashboardLayout-D6O3WOCK.js";import{T as n}from"./TextInput-C3mRuXC8.js";import{I as r}from"./InputLabel-DcgV6JrA.js";import{P as j}from"./PrimaryButton-BnxW91VA.js";import{U as g}from"./UploadFileWithView-DhroyJ1-.js";import{I as m}from"./InputError-Co5soRld.js";import{S as f}from"./Select-ZEyjvwMB.js";import"./MenuToggle-B7LuEM26.js";import"./assetPath-bsj2iDPi.js";function U(){const{data:t,setData:s,post:i,processing:d,errors:o}=x({name:"",type:"",image:null,url:"",year:""}),l=a=>{const u=a.target.name;s(u,a.target.value)},p=a=>{s("image",a.target.files?.[0]??null)},c=a=>{a.preventDefault(),i("/dashboard/admin/partners")};return e.jsx(h,{header:"Add New Partner",subTitle:"Add new Data of Gallery",children:e.jsxs("form",{id:"formAdd",onSubmit:c,className:"grid grid-cols-12 my-2 px-2",children:[e.jsxs("div",{className:"col-span-12 md:col-span-4 px-2 my-2",children:[e.jsx(r,{forInput:"type",value:"Select Type"}),e.jsxs(f,{name:"type",value:t.type,handleChange:l,required:!0,children:[e.jsx("option",{value:"1",children:"Local Media Partner"}),e.jsx("option",{value:"2",children:"International Media Partner"}),e.jsx("option",{value:"3",children:"Supported"}),e.jsx("option",{value:"4",children:"Official Partner"}),e.jsx("option",{value:"5",children:"Collaboration Fair Partners"}),e.jsx("option",{value:"6",children:"Official Logistic Partner"}),e.jsx("option",{value:"7",children:"In Asocciation With"})]}),e.jsx(m,{message:o.type,className:"mt-2"})]}),e.jsxs("div",{className:"col-span-12 md:col-span-4 px-2 my-2",children:[e.jsx(r,{forInput:"name",value:"Name"}),e.jsx(n,{id:"name",name:"name",handleChange:l,value:t.name,className:"mt-1 w-full text-matte-brown placeholder:text-matte-brown border-matte-brown",placeholder:"Name ",required:!0})]}),e.jsxs("div",{className:"col-span-12 md:col-span-4 px-2 my-2",children:[e.jsx(r,{forInput:"year",value:"Year"}),e.jsx(n,{id:"year",type:"number",min:"1990",name:"year",handleChange:l,value:t.year,className:"mt-1 w-full text-matte-brown placeholder:text-matte-brown border-matte-brown",placeholder:"Year ",required:!0})]}),e.jsxs("div",{className:"col-span-12 md:col-span-6 px-2 my-2",children:[e.jsx(r,{forInput:"image",value:"Upload Image"}),e.jsx(g,{name:"image",labelText:"Upload Image Accepted only (jpeg, jpg, png) Max 256kb",accept:"image/*",handleChange:p}),e.jsx(m,{message:o.image,className:"mt-2"})]}),e.jsxs("div",{className:"col-span-12 md:col-span-6 px-2 my-2",children:[e.jsx(r,{forInput:"url",value:"Url"}),e.jsx(n,{id:"url",type:"url",name:"url",handleChange:l,value:t.url,className:"mt-1 w-full text-matte-brown placeholder:text-matte-brown border-matte-brown",placeholder:"Url "})]}),e.jsx("div",{className:"col-span-12 text-center",children:e.jsx(j,{className:"w-full h-12 bg-shadow-red hover:bg-grey-500 text-center",processing:d,children:"Submit"})})]})})}export{U 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.