import{j as r}from"./app-BGey7YPf.js";import{L as l}from"./label-BbSRpehS.js";import{I as x,a as c}from"./input-select-DHdS_tES.js";import{B as u}from"./button-submit-end-BkQSWpq2.js";import"./button-D5r5edT8.js";import"./index-BFyaOBDQ.js";import"./dialog-OAe1w9Cd.js";import"./x-C4WIHhXm.js";import"./search-CA9JuCC9.js";import"./index-CwO5dfCw.js";import"./separator-Di-l93J0.js";import"./chevron-down-DOZGaFlM.js";import"./save-Bm3_KHjE.js";function N({data:e,errors:s,processing:n,setData:i,lembaga_options:o,storeData:a,reset:m}){const p=(o.lembaga_options??[]).map(t=>({value:t.npsn,label:t.name}));return r.jsx("form",{onSubmit:a,children:r.jsxs("div",{className:"p-4 space-y-4",children:[r.jsxs("div",{children:[r.jsx(l,{htmlFor:"npsn",children:"Lembaga"}),r.jsx(x,{options:p,value:e.npsn||"",isDialog:!0,onValueChange:t=>{e.npsn!==t&&i("npsn",t)},clearable:!0,children:t=>r.jsx(c,{...t})}),r.jsx("p",{className:"text-red-500 text-xs",children:s.npsn})]}),r.jsx(u,{reset:m,processing:n})]})})}export{N as default};
