import{d as u,i as b,o as l,j as v,h as x,n as c,g as r,Z as m,l as p,t as f,v as w,c as _,b as h,k as y}from"./index-DPl1iiyq.js";import{bl as d}from"./navigation-BzNQiq4W.js";import{v as N}from"./ReferenceContentLoader-Z8YmHBVJ.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,__:[2]}),c(p(d),{class:"custom-scroll h-8 gap-1.5 px-2.5 font-medium whitespace-nowrap 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-a93bfefe"]]),B={key:0,class:"text-c-2 text-sm leading-normal text-pretty"},D=u({__name:"DeleteSidebarListElement",props:{variableName:{},warningMessage:{}},emits:["close","delete"],setup(i,{emit:n}){const a=i,t=n,e=_(()=>a.variableName.length>18?a.variableName.slice(0,18)+"…":a.variableName);return(s,o)=>(l(),h(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)):y("",!0)]),_:1},8,["label"]))}});export{C as a,D as w};
