import{i as f,Z as c,r as n,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 Status"},components:{LoadingButton:v,TextInput:y,Link:f,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("statuses.store"))}}},L={class:"bg-white rounded-md shadow overflow-hidden max-w-3xl"},S={class:"p-8 -mr-6 -mb-8 flex flex-wrap"},B={class:"px-8 py-4 bg-gray-50 border-t border-gray-100 flex justify-end items-center"};function N(r,e,m,k,t,l){const d=n("Head"),p=n("text-input"),u=n("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((...s)=>l.store&&l.store(...s),["prevent"]))},[o("div",S,[a(p,{modelValue:t.form.name,"onUpdate:modelValue":e[0]||(e[0]=s=>t.form.name=s),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",B,[a(u,{loading:t.form.processing,class:"btn-indigo",type:"submit"},{default:g(()=>[w(i(r.$t("Create"))+" "+i(r.$t("Status")),1)]),_:1},8,["loading"])])],32)])])}const U=V(C,[["render",N]]);export{U as default};
