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