import{d as u,c as b,o as l,r as v,b as x,f as c,A as r,W as m,u as p,t as f,k as w,g as y,y as _,a as h}from"./index-D86EVCbM.js";import{$ as d,E as N}from"./ReferenceContentLoader-jQeEHBuo.js";import"./navigation-BK47qCFk.js";const S={class:"flex justify-between gap-10"},k=u({__name:"SidebarListElementForm",props:{danger:{type:Boolean},label:{}},emits:["cancel","submit"],setup(i,{emit:n}){const a=n;return(t,e)=>(l(),b("form",{class:"flex flex-col gap-4 text-base",onSubmit:e[1]||(e[1]=w(s=>a("submit"),["prevent"]))},[v(t.$slots,"default",{},void 0,!0),x("div",S,[c(p(d),{class:"flex h-8 cursor-pointer items-center gap-1.5 px-2.5 shadow-none focus:outline-none",type:"button",variant:"outlined",onClick:e[0]||(e[0]=s=>a("cancel"))},{default:r(()=>e[2]||(e[2]=[m(" Cancel ")])),_:1}),c(p(d),{class:"custom-scroll h-8 gap-1.5 whitespace-nowrap px-2.5 font-medium shadow-none focus:outline-none",type:"submit",variant:t.danger?"danger":"solid"},{default:r(()=>[m(f(t.label??"Save"),1)]),_:1},8,["variant"])])],32))}}),C=N(k,[["__scopeId","data-v-c6b17e96"]]),B={key:0,class:"text-c-2 text-pretty text-sm leading-normal"},$=u({__name:"DeleteSidebarListElement",props:{variableName:{},warningMessage:{}},emits:["close","delete"],setup(i,{emit:n}){const a=i,t=n,e=y(()=>a.variableName.length>18?a.variableName.slice(0,18)+"…":a.variableName);return(s,o)=>(l(),_(C,{danger:"",label:`Delete ${e.value}`,onCancel:o[0]||(o[0]=g=>t("close")),onSubmit:o[1]||(o[1]=g=>t("delete"))},{default:r(()=>[s.warningMessage?(l(),b("p",B,f(s.warningMessage),1)):h("",!0)]),_:1},8,["label"]))}});export{C as a,$ as w};
