import{i as f,D as g}from"./AppLayout.vue_vue_type_script_setup_true_lang-BA0fi5xR.js";import{d as r,q as _,g as i,o as l,w as p,s as n,m as u,u as a,a as m,J as v}from"./app-KXUNt_n9.js";import{P as C,c as h}from"./AppLogoIcon.vue_vue_type_script_setup_true_lang-M23wUS8o.js";import{a as x}from"./useForwardExpose-B0NY7lip.js";import{u as D}from"./RovingFocusGroup-DKdqcDpA.js";var y=r({__name:"DialogTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(o){const t=o,e=f(),{forwardRef:s,currentElement:c}=x();return e.contentId||=D(void 0,"reka-dialog-content"),_(()=>{e.triggerElement.value=c.value}),(d,B)=>(l(),i(a(C),u(t,{ref:a(s),type:d.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":a(e).open.value||!1,"aria-controls":a(e).open.value?a(e).contentId:void 0,"data-state":a(e).open.value?"open":"closed",onClick:a(e).onOpenToggle}),{default:p(()=>[n(d.$slots,"default")]),_:3},16,["type","aria-expanded","aria-controls","data-state","onClick"]))}}),k=y;const q=r({__name:"DialogClose",props:{asChild:{type:Boolean},as:{}},setup(o){const t=o;return(e,s)=>(l(),i(a(g),u({"data-slot":"dialog-close"},t),{default:p(()=>[n(e.$slots,"default")]),_:3},16))}}),I=r({__name:"DialogFooter",props:{class:{}},setup(o){const t=o;return(e,s)=>(l(),m("div",{"data-slot":"dialog-footer",class:v(a(h)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t.class))},[n(e.$slots,"default")],2))}}),P=r({__name:"DialogTrigger",props:{asChild:{type:Boolean},as:{}},setup(o){const t=o;return(e,s)=>(l(),i(a(k),u({"data-slot":"dialog-trigger"},t),{default:p(()=>[n(e.$slots,"default")]),_:3},16))}});export{P as _,I as a,q as b};
