{"version":3,"file":"popover.cjs","sources":["../../../components/popover/popover.tsx"],"sourcesContent":["'use client';\n\nimport { Popover as PopoverPrimitive } from '@base-ui/react';\nimport { cx } from 'class-variance-authority';\nimport styles from './popover.module.css';\n\nexport interface PopoverContentProps\n  extends Omit<\n      PopoverPrimitive.Positioner.Props,\n      'render' | 'className' | 'style' | 'ref'\n    >,\n    PopoverPrimitive.Popup.Props {}\n\nfunction PopoverContent({\n  ref,\n  initialFocus,\n  finalFocus,\n  className,\n  style,\n  render,\n  children,\n  ...positionerProps\n}: PopoverContentProps) {\n  return (\n    <PopoverPrimitive.Portal>\n      <PopoverPrimitive.Positioner\n        sideOffset={4}\n        collisionPadding={3}\n        className={styles.popoverPositioner}\n        data-slot='popover-positioner'\n        {...positionerProps}\n      >\n        <PopoverPrimitive.Popup\n          ref={ref}\n          className={cx(styles.popover, className)}\n          render={render}\n          initialFocus={initialFocus}\n          finalFocus={finalFocus}\n          style={style}\n          data-slot='popover-content'\n        >\n          {children}\n        </PopoverPrimitive.Popup>\n      </PopoverPrimitive.Positioner>\n    </PopoverPrimitive.Portal>\n  );\n}\nPopoverContent.displayName = 'Popover.Content';\n\nexport const Popover = Object.assign(PopoverPrimitive.Root, {\n  Trigger: PopoverPrimitive.Trigger,\n  Close: PopoverPrimitive.Close,\n  Content: PopoverContent,\n  createHandle: PopoverPrimitive.createHandle\n});\n"],"names":[],"mappings":";;;;;;;;AAaA;AAUE;AAuBF;AACA;AAEa;;;AAGX;;AAED;;"}