import{X as u,B as f,C as s,j as c,t as _,m as n,k as o,H as b,E as g,x,y}from"./vendor-CoimUlS3.js";import{L as h}from"./Layout-DhxLvS0V.js";import{T as w}from"./TextInput-UGcC5hIa.js";import{L as v}from"./LoadingButton-BqD68voa.js";import{_ as V}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./utils-CXPYudwi.js";import"./LogoutButton-BZlSuKxY.js";import"./app-W9XHfen4.js";/* empty css                                                                 */import"./ui-CI37mw-K.js";import"./Logo-DiOikIGZ.js";import"./FlashMessages-D1juQjH6.js";const B={components:{LoadingButton:v,TextInput:w,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"))}}},C={class:"bg-white rounded-md shadow overflow-hidden max-w-3xl"},L={class:"p-8 -mr-6 -mb-8 flex flex-wrap"},k={class:"px-8 py-4 bg-gray-50 border-t border-gray-100 flex justify-end items-center"};function H(i,t,m,N,e,l){const a=s("Head"),p=s("text-input"),d=s("loading-button");return _(),c("div",null,[n(a,{title:m.title},null,8,["title"]),o("div",C,[o("form",{onSubmit:t[1]||(t[1]=b((...r)=>l.store&&l.store(...r),["prevent"]))},[o("div",L,[n(p,{modelValue:e.form.name,"onUpdate:modelValue":t[0]||(t[0]=r=>e.form.name=r),error:e.form.errors.name,class:"pr-6 pb-8 w-full lg:w-full",label:i.$t("Name")},null,8,["modelValue","error","label"])]),o("div",k,[n(d,{loading:e.form.processing,class:"btn-indigo",type:"submit"},{default:g(()=>[x(y(i.$t("Create")),1)]),_:1},8,["loading"])])],32)])])}const F=V(B,[["render",H]]);export{F as default};
