import{a1 as b}from"./ReferenceContentLoader-jQeEHBuo.js";import"./navigation-BK47qCFk.js";import{d as v,aB as V,e as h,c as n,i as $,o,b as i,r as c,a as p,s as w,aD as y,m as x,u as f,t as k,y as g,A as C,f as B}from"./index-D86EVCbM.js";import{a as S}from"./DeleteSidebarListElement.vue-DU9GbhpY.js";const _={class:"flex flex-1 gap-2 font-normal"},D={class:"flex flex-1 flex-col gap-0.75"},M={class:"relative flex"},A={key:0,class:"select-none whitespace-nowrap text-sm text-transparent"},E={key:1,class:"absolute inset-0 select-none overflow-hidden whitespace-nowrap text-sm"},N={key:0,class:"text-c-2"},I={class:"text-transparent"},U={key:1,class:"text-c-2"},z={},L=v({...z,inheritAttrs:!1,__name:"ScalarTextInput",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(d){const l=V(d,"modelValue"),r=h(),{classCx:u,otherAttrs:s}=b();return $(()=>{var e;"autofocus"in s.value&&((e=r.value)==null||e.focus())}),(e,t)=>(o(),n("div",x(f(u)("bg-b-1.5 flex cursor-text items-center gap-0.75 rounded-md border px-3 py-2.5 outline-offset-[-1px] focus-within:bg-b-1 has-[input:focus-visible]:outline"),{onClick:t[1]||(t[1]=a=>{var m;return(m=r.value)==null?void 0:m.focus()})}),[i("div",_,[i("div",D,[i("div",M,[e.$slots.prefix?(o(),n("span",A,[c(e.$slots,"prefix")])):p("",!0),w(i("input",x({ref_key:"input",ref:r,"onUpdate:modelValue":t[0]||(t[0]=a=>l.value=a),class:"z-1 min-w-0 flex-1 border-none bg-transparent text-sm placeholder:font-[inherit] focus-within:outline-none"},f(s)),null,16),[[y,l.value]]),e.$slots.prefix||e.$slots.suffix?(o(),n("div",E,[e.$slots.prefix?(o(),n("span",N,[c(e.$slots,"prefix")])):p("",!0),i("span",I,k(l.value||e.$attrs.placeholder),1),e.$slots.suffix?(o(),n("span",U,[c(e.$slots,"suffix")])):p("",!0)])):p("",!0)])]),c(e.$slots,"aside")])],16))}}),F=v({__name:"EditSidebarListElement",props:{name:{}},emits:["close","edit"],setup(d,{emit:l}){const r=d,u=l,s=h(r.name);return(e,t)=>(o(),g(S,{onCancel:t[1]||(t[1]=a=>u("close")),onSubmit:t[2]||(t[2]=a=>u("edit",s.value))},{default:C(()=>[B(f(L),{modelValue:s.value,"onUpdate:modelValue":t[0]||(t[0]=a=>s.value=a),autofocus:""},null,8,["modelValue"])]),_:1}))}});export{F as C,L as I};
