import{Z as u,i as f,r as s,c,o as _,a as n,b as o,d as b,w as g,e as x,t as w}from"./app-BhD6J0Va.js";import{L as h}from"./Layout-BNWXhjq5.js";import{T as y}from"./TextInput-CRQDtFka.js";import{L as v}from"./LoadingButton-BKJMdZnQ.js";import{_ as V}from"./FlashMessages-DW2Y2mP0.js";import"./moment-DeOISj6Y.js";import"./v4-SoommWqA.js";const L={components:{LoadingButton:v,TextInput:y,Link:f,Head:u},layout:h,props:{title:String},remember:"form",data(){return{form:this.$inertia.form({name:null,color:null})}},methods:{store(){this.form.post(this.route("types.store"))}}},B={class:"bg-white rounded-md shadow overflow-hidden max-w-3xl"},C={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(a,e,i,H,t,l){const m=s("Head"),d=s("text-input"),p=s("loading-button");return _(),c("div",null,[n(m,{title:i.title},null,8,["title"]),o("div",B,[o("form",{onSubmit:e[1]||(e[1]=b((...r)=>l.store&&l.store(...r),["prevent"]))},[o("div",C,[n(d,{modelValue:t.form.name,"onUpdate:modelValue":e[0]||(e[0]=r=>t.form.name=r),error:t.form.errors.name,class:"pr-6 pb-8 w-full lg:w-full",label:a.$t("Name")},null,8,["modelValue","error","label"])]),o("div",N,[n(p,{loading:t.form.processing,class:"btn-indigo",type:"submit"},{default:g(()=>[x(w(a.$t("Create")),1)]),_:1},8,["loading"])])],32)])])}const U=V(L,[["render",k]]);export{U as default};
