import{Z as p,i as f,r as n,c,o as b,a as r,b as l,d as g,w as _,e as w,t as x}from"./app-BhD6J0Va.js";import{L as V}from"./Layout-BNWXhjq5.js";import{T as y}from"./TextInput-CRQDtFka.js";import{L as h}from"./LoadingButton-BKJMdZnQ.js";import{_ as v}from"./FlashMessages-DW2Y2mP0.js";import"./moment-DeOISj6Y.js";import"./v4-SoommWqA.js";const C={components:{LoadingButton:h,TextInput:y,Link:f,Head:p},layout:V,props:{title:String},remember:"form",data(){return{form:this.$inertia.form({name:null,code:null})}},methods:{store(){this.form.post(this.route("languages.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(s,o,i,H,e,a){const d=n("Head"),m=n("text-input"),u=n("loading-button");return b(),c("div",null,[r(d,{title:i.title},null,8,["title"]),l("div",L,[l("form",{onSubmit:o[2]||(o[2]=g((...t)=>a.store&&a.store(...t),["prevent"]))},[l("div",B,[r(m,{modelValue:e.form.name,"onUpdate:modelValue":o[0]||(o[0]=t=>e.form.name=t),error:e.form.errors.name,class:"pr-6 pb-8 w-full lg:w-full",label:s.$t("Name")},null,8,["modelValue","error","label"]),r(m,{modelValue:e.form.code,"onUpdate:modelValue":o[1]||(o[1]=t=>e.form.code=t),error:e.form.errors.code,class:"pr-6 pb-8 w-full lg:w-full",label:s.$t("Code")},null,8,["modelValue","error","label"])]),l("div",N,[r(u,{loading:e.form.processing,class:"btn-indigo",type:"submit"},{default:_(()=>[w(x(s.$t("Create")),1)]),_:1},8,["loading"])])],32)])])}const M=v(C,[["render",k]]);export{M as default};
