"use strict";const p=require("./Dialog-DBm6Fap1.cjs"),e=require("./Animated-B_N04fe6.cjs"),r=require("./jsx-runtime-nZSsnGb7.cjs"),b=require("./Copy-BgRUUzWz.cjs"),C=require("./Animated-BsbNkFLg.cjs");require("@synnaxlabs/x");const i=require("./css-CloSmhZB.cjs"),s=({onClick:a,className:l,hideCaret:t=!1,children:u,variant:o,...c})=>{const{toggle:x,visible:d,variant:g}=e.useContext();let n;return o==="preview"&&(t=!0),g!=="modal"&&!t&&(n=r.jsxRuntimeExports.jsx(C.Animated,{enabled:d,enabledLoc:"bottom",disabledLoc:"left"})),r.jsxRuntimeExports.jsxs(b.Button,{className:i.CSS(i.CSS.BE("dialog","trigger"),l),onClick:m=>{a?.(m),x()},full:"x",variant:o,...c,children:[u,n]})},f=Object.freeze(Object.defineProperty({__proto__:null,Dialog:p.Dialog,Frame:e.Frame,Trigger:s,parseLocationOptions:e.parseLocationOptions,position:e.position,useContext:e.useContext,useInternalContext:e.useInternalContext},Symbol.toStringTag,{value:"Module"}));exports.Trigger=s;exports.external=f;
