import{i as u,Z as c,r as s,c as _,a,b as o,d as b,w as g,o as x,e as w,t as i}from"./app-CK3cEAAe.js";import{L as h}from"./Layout-DIVdUaBZ.js";import{T as y}from"./TextInput-DDvOh0mT.js";import{L as v}from"./LoadingButton-DQHYFAIm.js";import{_ as V}from"./FlashMessages-ByEdcHWZ.js";import"./moment-BywspGD9.js";import"./v4-SoommWqA.js";const C={metaInfo:{title:"Create Department"},components:{LoadingButton:v,TextInput:y,Link:u,Head:c},layout:h,props:{title:String},remember:"form",data(){return{form:this.$inertia.form({name:null,color:null})}},methods:{store(){this.form.post(this.route("departments.store"))}}},L={class:"bg-white rounded-md shadow overflow-hidden max-w-3xl"},B={class:"p-8 -mr-6 -mb-8 flex flex-wrap"},N={class:"px-8 py-4 bg-gray-50 border-t border-gray-100 flex justify-end items-center"};function k(r,e,m,D,t,l){const d=s("Head"),p=s("text-input"),f=s("loading-button");return x(),_("div",null,[a(d,{title:m.title},null,8,["title"]),o("div",L,[o("form",{onSubmit:e[1]||(e[1]=b((...n)=>l.store&&l.store(...n),["prevent"]))},[o("div",B,[a(p,{modelValue:t.form.name,"onUpdate:modelValue":e[0]||(e[0]=n=>t.form.name=n),error:t.form.errors.name,class:"pr-6 pb-8 w-full lg:w-full",label:r.$t("Name")},null,8,["modelValue","error","label"])]),o("div",N,[a(f,{loading:t.form.processing,class:"btn-indigo",type:"submit"},{default:g(()=>[w(i(r.$t("Create"))+" "+i(r.$t("Department")),1)]),_:1},8,["loading"])])],32)])])}const U=V(C,[["render",k]]);export{U as default};
