import{i as c,r as i,c as b,o as g,b as e,a,e as l,w as d,t as s,d as _}from"./app-BLo7SiiE.js";import{L as x}from"./Layout-BEAmuehS.js";import{T as h}from"./TextInput-D6G3wYlu.js";import{L as y}from"./LoadingButton-fIGCYE5-.js";import{_ as w}from"./FlashMessages-DImpr6PL.js";import"./moment-C7JtfGJw.js";import"./v4-SoommWqA.js";const C={metaInfo:{title:"Create City"},components:{LoadingButton:y,TextInput:h,Link:c},layout:x,props:{},remember:"form",data(){return{form:this.$inertia.form({name:null,color:null})}},methods:{store(){this.form.post(this.route("cities.store"))}}},v={class:"mb-8 font-bold text-3xl"},L={class:"bg-white rounded-md shadow overflow-hidden max-w-3xl"},V={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 B(o,t,N,$,r,m){const p=i("Link"),f=i("text-input"),u=i("loading-button");return g(),b("div",null,[e("h1",v,[a(p,{class:"text-indigo-400 hover:text-indigo-600",href:this.route("cities")},{default:d(()=>[l(s(o.$t("City")),1)]),_:1},8,["href"]),t[2]||(t[2]=e("span",{class:"text-indigo-400 font-medium"},"/",-1)),l(" "+s(o.$t("Create")),1)]),e("div",L,[e("form",{onSubmit:t[1]||(t[1]=_((...n)=>m.store&&m.store(...n),["prevent"]))},[e("div",V,[a(f,{modelValue:r.form.name,"onUpdate:modelValue":t[0]||(t[0]=n=>r.form.name=n),error:r.form.errors.name,class:"pr-6 pb-8 w-full lg:w-full",label:o.$t("Name")},null,8,["modelValue","error","label"])]),e("div",k,[a(u,{loading:r.form.processing,class:"btn-indigo",type:"submit"},{default:d(()=>[l(s(o.$t("Create"))+"   "+s(o.$t("City")),1)]),_:1},8,["loading"])])],32)])])}const U=w(C,[["render",B]]);export{U as default};
