import{X as p,C as t,j as c,t as f,m as e,k as r,H as _,E as b,x as g,y as h}from"./vendor-CoimUlS3.js";import{L as y}from"./Layout-DhxLvS0V.js";import{L as k}from"./LoadingButton-BqD68voa.js";import v from"./MenuFormFields-B5qFgilu.js";import{_ as x}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./utils-CXPYudwi.js";import"./LogoutButton-BZlSuKxY.js";import"./app-W9XHfen4.js";/* empty css                                                                 */import"./ui-CI37mw-K.js";import"./Logo-DiOikIGZ.js";import"./FlashMessages-D1juQjH6.js";import"./TextInput-UGcC5hIa.js";import"./SelectInput-BeV75IPk.js";const w={layout:y,components:{Head:p,LoadingButton:k,MenuFormFields:v},props:{title:String,route_options:Array,feature_options:Array,locations:Array},data(){return{form:this.$inertia.form({location:"header",label:"",route_name:"home",route_params:null,url:"",icon:"home",active_key:"home",feature_slug:"",target:"_self",sort_order:null,is_active:!0})}},methods:{store(){this.form.post(this.route("menus.store"))}}},F={class:"max-w-3xl bg-white dark:bg-slate-800 rounded-lg shadow overflow-hidden border border-slate-200 dark:border-slate-700"},C={class:"px-8 py-4 bg-slate-50 dark:bg-slate-900/50 border-t border-slate-200 dark:border-slate-700 flex justify-end"};function B(s,a,o,H,i,n){const l=t("Head"),m=t("MenuFormFields"),d=t("loading-button");return f(),c("div",null,[e(l,{title:s.$t(o.title)},null,8,["title"]),r("div",F,[r("form",{onSubmit:a[0]||(a[0]=_((...u)=>n.store&&n.store(...u),["prevent"]))},[e(m,{form:i.form,"route-options":o.route_options,"feature-options":o.feature_options,locations:o.locations},null,8,["form","route-options","feature-options","locations"]),r("div",C,[e(d,{loading:i.form.processing,class:"btn-indigo",type:"submit"},{default:b(()=>[g(h(s.$t("Create")),1)]),_:1},8,["loading"])])],32)])])}const I=x(w,[["render",B]]);export{I as default};
