import{k as h,j as $,C as x,z as i,u as s,am as y,U as r,s as e,v as o,m as v,x as b,y as m,t as _,A as f,l as d,_ as C}from"./index.js";const g={class:"confirm"},B={class:"question"},N={key:0,class:"context"},S={class:"actions"},V=h({__name:"Confirm",props:{question:{},context:{},yes:{},no:{}},emits:["confirm","cancel"],setup(l,{emit:c}){const{t:n}=$(),t=l,u=c;return(p,j)=>(d(),x(s(y),null,{default:i(({close:a})=>[r(p.$slots,"default",{close:a},()=>[e("div",g,[e("h3",B,o(t.question??s(n)("you_sure")),1),t.context?(d(),v("p",N,o(t.context),1)):b("",!0),e("div",S,[m(s(f),{variant:"flat",onClick:k=>{u("cancel"),a()}},{default:i(()=>[_(o(t.no??s(n)("cancel")),1)]),_:1},8,["onClick"]),m(s(f),{alert:"",onClick:k=>{u("confirm"),a()}},{default:i(()=>[_(o(t.yes??s(n)("confirm")),1)]),_:1},8,["onClick"])])])],!0)]),toggler:i(({open:a})=>[r(p.$slots,"toggler",{open:a},void 0,!0)]),_:3}))}}),A=C(V,[["__scopeId","data-v-4324e84e"]]),q={class:"labeled-section"},I={class:"title"},L={class:"content"},z=h({__name:"LabeledSection",props:{title:{},caption:{}},setup(l){const c=l;return(n,t)=>(d(),v("div",q,[e("aside",I,[e("h3",null,[_(o(c.title)+" ",1),e("span",null,o(c.caption),1)])]),e("div",L,[r(n.$slots,"default",{},void 0,!0)])]))}}),D=C(z,[["__scopeId","data-v-ebf123b9"]]);export{A as C,D as L};
