import{d as u,c as f,o as l,r as v,a as x,e as c,w as r,f as m,u as d,t as b,G as w,s as _,b as h,j as y}from"./index-CDPBytck.js";import{T as p,s as N}from"./ReferenceContentLoader-34zh6S1n.js";const S={class:"flex justify-between gap-10"},C=u({__name:"SidebarListElementForm",props:{danger:{type:Boolean},label:{}},emits:["cancel","submit"],setup(i,{emit:n}){const a=n;return(t,e)=>(l(),f("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(d(p),{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(d(p),{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(b(t.label??"Save"),1)]),_:1},8,["variant"])])],32))}}),k=N(C,[["__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(k,{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(),f("p",B,b(s.warningMessage),1)):y("",!0)]),_:1},8,["label"]))}});export{k as a,D as w};
