import { j as jsxRuntimeExports } from '../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js';
import { Portal as $5d3850c4d0b4e6c7$export$602eac185826482c, Content as $5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2, Overlay as $5d3850c4d0b4e6c7$export$c6fdb837b070b4ff, Close as $5d3850c4d0b4e6c7$export$f39c2d165cd861fe, Root as $5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9, Trigger as $5d3850c4d0b4e6c7$export$41fb9f06171c75f4, Title as $5d3850c4d0b4e6c7$export$f99233281efd08a0, Description as $5d3850c4d0b4e6c7$export$393edc798c47379d } from '../node_modules/.pnpm/@radix-ui_react-dialog@1.0.4_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-dialog/dist/index.js';
import { Cross1Icon } from '../node_modules/.pnpm/@radix-ui_react-icons@1.3.0_react@18.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.js';
import { cva } from '../node_modules/.pnpm/class-variance-authority@0.6.0_typescript@5.4.3/node_modules/class-variance-authority/dist/index.js';
import { forwardRef } from 'react';
import styles from './dialog.module.css.js';

const dialogContent = cva(styles.dialogContent);
const DialogContent = forwardRef(({ className, children, close, overlayStyle, overlayClassname, overlayBlur, ...props }, forwardedRef) => {
    return (jsxRuntimeExports.jsx($5d3850c4d0b4e6c7$export$602eac185826482c, { children: jsxRuntimeExports.jsx(Overlay, { className: overlayClassname, style: overlayStyle, blur: overlayBlur, children: jsxRuntimeExports.jsxs($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2, { ...props, ref: forwardedRef, className: dialogContent({ className }), children: [children, close && (jsxRuntimeExports.jsx(CloseButton, { children: jsxRuntimeExports.jsx(Cross1Icon, {}) }))] }) }) }));
});
const overlay = cva(styles.overlay, {
    variants: {
        blur: {
            true: styles.overlayBlur,
        },
    },
});
const Overlay = forwardRef(({ className, blur, ...props }, ref) => (jsxRuntimeExports.jsx($5d3850c4d0b4e6c7$export$c6fdb837b070b4ff, { ref: ref, className: overlay({ className, blur }), ...props })));
Overlay.displayName = $5d3850c4d0b4e6c7$export$c6fdb837b070b4ff.displayName;
const close = cva(styles.close);
function CloseButton({ children, className, ...props }) {
    return (jsxRuntimeExports.jsx($5d3850c4d0b4e6c7$export$f39c2d165cd861fe, { className: close({ className }), ...props, children: children }));
}
const Dialog = Object.assign($5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9, {
    Trigger: $5d3850c4d0b4e6c7$export$41fb9f06171c75f4,
    Content: DialogContent,
    Close: $5d3850c4d0b4e6c7$export$f39c2d165cd861fe,
    Title: $5d3850c4d0b4e6c7$export$f99233281efd08a0,
    Description: $5d3850c4d0b4e6c7$export$393edc798c47379d,
});

export { CloseButton, Dialog, DialogContent };
//# sourceMappingURL=dialog.js.map
