import{X as f,B as c,C as n,j as _,t as b,m as a,k as o,H as g,E as x,x as h,y as l}from"./vendor-CoimUlS3.js";import{L as w}from"./Layout-DhxLvS0V.js";import{T as y}from"./TextInput-UGcC5hIa.js";import{L as v}from"./LoadingButton-BqD68voa.js";import{_ as C}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 V={metaInfo:{title:"Create Status"},components:{LoadingButton:v,TextInput:y,Link:c,Head:f},layout:w,props:{title:String},remember:"form",data(){return{form:this.$inertia.form({name:null,color:null})}},methods:{store(){this.form.post(this.route("statuses.store"))}}},B={class:"bg-white rounded-md shadow overflow-hidden max-w-3xl"},L={class:"p-8 -mr-6 -mb-8 flex flex-wrap"},S={class:"px-8 py-4 bg-gray-50 border-t border-gray-100 flex justify-end items-center"};function k(r,t,m,H,e,i){const p=n("Head"),d=n("text-input"),u=n("loading-button");return b(),_("div",null,[a(p,{title:m.title},null,8,["title"]),o("div",B,[o("form",{onSubmit:t[1]||(t[1]=g((...s)=>i.store&&i.store(...s),["prevent"]))},[o("div",L,[a(d,{modelValue:e.form.name,"onUpdate:modelValue":t[0]||(t[0]=s=>e.form.name=s),error:e.form.errors.name,class:"pr-6 pb-8 w-full lg:w-full",label:r.$t("Name")},null,8,["modelValue","error","label"])]),o("div",S,[a(u,{loading:e.form.processing,class:"btn-indigo",type:"submit"},{default:x(()=>[h(l(r.$t("Create"))+" "+l(r.$t("Status")),1)]),_:1},8,["loading"])])],32)])])}const A=C(V,[["render",k]]);export{A as default};
