import{T as v}from"./TextInput-UGcC5hIa.js";import{S as c}from"./SelectInput-BeV75IPk.js";import{C as V,j as u,t,m as a,L as _,z as k,k as s,E as i,F as f,q as b,y as n,J as y,x as w,K as U}from"./vendor-CoimUlS3.js";import{_ as g}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./ui-CI37mw-K.js";import"./utils-CXPYudwi.js";const C={components:{TextInput:v,SelectInput:c},props:{form:Object,route_options:Array,feature_options:Array,locations:Array}},L={class:"p-8 space-y-6"},S=["value"],A={value:""},N=["value"],B=["value"],F={value:"_self"},I={value:"_blank"},x={class:"flex items-center gap-2 text-sm text-slate-700 dark:text-slate-300"};function T(r,o,e,j,D,E){const m=V("text-input"),d=V("select-input");return t(),u("div",L,[a(m,{modelValue:e.form.label,"onUpdate:modelValue":o[0]||(o[0]=l=>e.form.label=l),error:e.form.errors.label,label:r.$t("Label"),class:"w-full"},null,8,["modelValue","error","label"]),a(d,{modelValue:e.form.location,"onUpdate:modelValue":o[1]||(o[1]=l=>e.form.location=l),error:e.form.errors.location,label:r.$t("Location"),class:"w-full"},{default:i(()=>[(t(!0),u(f,null,b(e.locations,l=>(t(),u("option",{key:l.value,value:l.value},n(l.label),9,S))),128))]),_:1},8,["modelValue","error","label"]),a(d,{modelValue:e.form.route_name,"onUpdate:modelValue":o[2]||(o[2]=l=>e.form.route_name=l),error:e.form.errors.route_name,label:r.$t("Internal route (recommended)"),class:"w-full"},{default:i(()=>[s("option",A,n(r.$t("Custom URL instead")),1),(t(!0),u(f,null,b(e.route_options,l=>(t(),u("option",{key:l.value,value:l.value},n(l.label),9,N))),128))]),_:1},8,["modelValue","error","label"]),e.form.route_name?k("",!0):(t(),_(m,{key:0,modelValue:e.form.url,"onUpdate:modelValue":o[3]||(o[3]=l=>e.form.url=l),error:e.form.errors.url,label:r.$t("Custom URL"),class:"w-full",placeholder:"/about or https://example.com"},null,8,["modelValue","error","label"])),a(m,{modelValue:e.form.icon,"onUpdate:modelValue":o[4]||(o[4]=l=>e.form.icon=l),error:e.form.errors.icon,label:r.$t("Icon name"),class:"w-full",placeholder:"home, blog, contact"},null,8,["modelValue","error","label"]),a(m,{modelValue:e.form.active_key,"onUpdate:modelValue":o[5]||(o[5]=l=>e.form.active_key=l),error:e.form.errors.active_key,label:r.$t("Active state key"),class:"w-full",placeholder:"home, services, kb"},null,8,["modelValue","error","label"]),a(d,{modelValue:e.form.feature_slug,"onUpdate:modelValue":o[6]||(o[6]=l=>e.form.feature_slug=l),error:e.form.errors.feature_slug,label:r.$t("Show only when feature is enabled"),class:"w-full"},{default:i(()=>[(t(!0),u(f,null,b(e.feature_options,l=>(t(),u("option",{key:l.value,value:l.value},n(l.label),9,B))),128))]),_:1},8,["modelValue","error","label"]),a(d,{modelValue:e.form.target,"onUpdate:modelValue":o[7]||(o[7]=l=>e.form.target=l),error:e.form.errors.target,label:r.$t("Link target"),class:"w-full"},{default:i(()=>[s("option",F,n(r.$t("Same tab")),1),s("option",I,n(r.$t("New tab")),1)]),_:1},8,["modelValue","error","label"]),a(m,{modelValue:e.form.sort_order,"onUpdate:modelValue":o[8]||(o[8]=l=>e.form.sort_order=l),error:e.form.errors.sort_order,label:r.$t("Sort order"),type:"number",class:"w-full"},null,8,["modelValue","error","label"]),s("label",x,[y(s("input",{"onUpdate:modelValue":o[9]||(o[9]=l=>e.form.is_active=l),type:"checkbox",class:"rounded border-slate-300"},null,512),[[U,e.form.is_active]]),w(" "+n(r.$t("Active")),1)])])}const K=g(C,[["render",T]]);export{K as default};
