import{b as d,j as e}from"./vendor-rThclpOQ.js";import{I as x}from"./input-error-Br4ngfdE.js";import{L as a}from"./loading-button-DKhpmf6V.js";import{T as p}from"./textarea-DM_GyfeP.js";import{o as h}from"./inertia-SZXqLvQm.js";import"./utils-8KAaAB9H.js";import"./button-ZcsoqUQn.js";import"./index-DquVdLUg.js";const D=({outcome:o})=>{const{data:s,setData:m,put:n,delete:i,errors:l,processing:r}=d({outcome:o?o.outcome:""}),u=t=>{t.preventDefault(),n(route("exam-outcomes.update",{exam_outcome:o.id}))},c=()=>{i(route("exam-outcomes.destroy",{exam_outcome:o.id}))};return e.jsxs("form",{onSubmit:u,className:"space-y-2",children:[e.jsxs("div",{children:[e.jsx(p,{required:!0,name:"outcome",value:s.outcome||"",placeholder:"Enter exam learning outcome",onChange:t=>h(t,m)}),e.jsx(x,{message:l.outcome})]}),e.jsxs("div",{className:"flex items-center justify-end gap-2",children:[e.jsx(a,{type:"button",variant:"outline",loading:r,onClick:c,className:"h-7 w-full bg-red-50 text-xs hover:bg-red-100",children:"Remove"}),e.jsx(a,{variant:"secondary",className:"h-7 w-full text-xs",loading:r,children:"Save"})]})]})};export{D as default};
