import{j as e}from"./app-BGey7YPf.js";import{I as a}from"./input-CGSIKYsG.js";import{T as x}from"./textarea-B31u9E-S.js";import{L as i}from"./label-BbSRpehS.js";import{B as h}from"./button-submit-end-BkQSWpq2.js";import"./button-D5r5edT8.js";import"./x-C4WIHhXm.js";import"./save-Bm3_KHjE.js";function b({data:n,errors:l,processing:d,setData:t,storeData:c,reset:r}){return e.jsx("form",{onSubmit:c,children:e.jsxs("div",{className:"p-4 space-y-4",children:[e.jsxs("div",{children:[e.jsx(i,{children:"Nama Lembaga"}),e.jsx(a,{type:"text",name:"name",value:n.name,onChange:s=>t("name",s.target.value),placeholder:"Masukkan nama lembaga"}),e.jsx("p",{className:"text-red-500 text-xs",children:l.name})]}),e.jsxs("div",{children:[e.jsx(i,{children:"NPSN"}),e.jsx(a,{type:"text",name:"npsn",value:n.npsn,onChange:s=>t("npsn",s.target.value),placeholder:"Masukkan NPSN"}),e.jsx("p",{className:"text-red-500 text-xs",children:l.npsn})]}),e.jsxs("div",{children:[e.jsx(i,{children:"Jenjang"}),e.jsx(a,{type:"text",name:"level",value:n.level,onChange:s=>t("level",s.target.value),placeholder:"Contoh: MI, MTs, MA"}),e.jsx("p",{className:"text-red-500 text-xs",children:l.level})]}),e.jsxs("div",{children:[e.jsx(i,{children:"Logo URL"}),e.jsx(a,{type:"text",name:"logo",value:n.logo,onChange:s=>t("logo",s.target.value),placeholder:"URL logo atau path gambar"}),e.jsx("p",{className:"text-red-500 text-xs",children:l.logo})]}),e.jsxs("div",{children:[e.jsx(i,{children:"Deskripsi"}),e.jsx(x,{name:"description",value:n.description,onChange:s=>t("description",s.target.value)}),e.jsx("p",{className:"text-red-500 text-xs",children:l.description})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx(i,{children:"Provinsi"}),e.jsx(a,{type:"text",name:"province",value:n.province,onChange:s=>t("province",s.target.value)}),e.jsx("p",{className:"text-red-500 text-xs",children:l.province})]}),e.jsxs("div",{children:[e.jsx(i,{children:"Kota/Kabupaten"}),e.jsx(a,{type:"text",name:"city",value:n.city,onChange:s=>t("city",s.target.value)}),e.jsx("p",{className:"text-red-500 text-xs",children:l.city})]}),e.jsxs("div",{children:[e.jsx(i,{children:"Kecamatan"}),e.jsx(a,{type:"text",name:"district",value:n.district,onChange:s=>t("district",s.target.value)}),e.jsx("p",{className:"text-red-500 text-xs",children:l.district})]}),e.jsxs("div",{children:[e.jsx(i,{children:"Kelurahan/Desa"}),e.jsx(a,{type:"text",name:"sub_district",value:n.sub_district,onChange:s=>t("sub_district",s.target.value)}),e.jsx("p",{className:"text-red-500 text-xs",children:l.sub_district})]}),e.jsxs("div",{className:"col-span-full",children:[e.jsx(i,{children:"Alamat Lengkap"}),e.jsx(x,{name:"address",value:n.address,onChange:s=>t("address",s.target.value)}),e.jsx("p",{className:"text-red-500 text-xs",children:l.address})]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx(i,{children:"Telepon"}),e.jsx(a,{type:"text",name:"phone",value:n.phone,onChange:s=>t("phone",s.target.value)}),e.jsx("p",{className:"text-red-500 text-xs",children:l.phone})]}),e.jsxs("div",{children:[e.jsx(i,{children:"Fax"}),e.jsx(a,{type:"text",name:"fax",value:n.fax,onChange:s=>t("fax",s.target.value)}),e.jsx("p",{className:"text-red-500 text-xs",children:l.fax})]}),e.jsxs("div",{children:[e.jsx(i,{children:"Email"}),e.jsx(a,{type:"email",name:"email",value:n.email,onChange:s=>t("email",s.target.value)}),e.jsx("p",{className:"text-red-500 text-xs",children:l.email})]}),e.jsxs("div",{children:[e.jsx(i,{children:"Website"}),e.jsx(a,{type:"url",name:"website",value:n.website,onChange:s=>t("website",s.target.value)}),e.jsx("p",{className:"text-red-500 text-xs",children:l.website})]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx(i,{children:"Facebook"}),e.jsx(a,{type:"url",name:"facebook",value:n.facebook,onChange:s=>t("facebook",s.target.value)}),e.jsx("p",{className:"text-red-500 text-xs",children:l.facebook})]}),e.jsxs("div",{children:[e.jsx(i,{children:"Twitter"}),e.jsx(a,{type:"url",name:"twitter",value:n.twitter,onChange:s=>t("twitter",s.target.value)}),e.jsx("p",{className:"text-red-500 text-xs",children:l.twitter})]}),e.jsxs("div",{children:[e.jsx(i,{children:"Instagram"}),e.jsx(a,{type:"url",name:"instagram",value:n.instagram,onChange:s=>t("instagram",s.target.value)}),e.jsx("p",{className:"text-red-500 text-xs",children:l.instagram})]}),e.jsxs("div",{children:[e.jsx(i,{children:"LinkedIn"}),e.jsx(a,{type:"url",name:"linkedin",value:n.linkedin,onChange:s=>t("linkedin",s.target.value)}),e.jsx("p",{className:"text-red-500 text-xs",children:l.linkedin})]}),e.jsxs("div",{className:"col-span-full",children:[e.jsx(i,{children:"YouTube"}),e.jsx(a,{type:"url",name:"youtube",value:n.youtube,onChange:s=>t("youtube",s.target.value)}),e.jsx("p",{className:"text-red-500 text-xs",children:l.youtube})]})]}),e.jsx(h,{reset:r,processing:d})]})})}export{b as default};
