import{Z as f,i as c,r as n,c as _,o as b,a,b as o,d as g,w as x,e as w,t as i}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 C={metaInfo:{title:"Create Status"},components:{LoadingButton:v,TextInput:y,Link:c,Head:f},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 b(),_("div",null,[a(d,{title:m.title},null,8,["title"]),o("div",L,[o("form",{onSubmit:e[1]||(e[1]=g((...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:x(()=>[w(i(r.$t("Create"))+" "+i(r.$t("Status")),1)]),_:1},8,["loading"])])],32)])])}const U=V(C,[["render",N]]);export{U as default};
