{"version":3,"sources":["../src/components/Popover/PopoverSurface/PopoverSurface.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport type { PopoverSurfaceProps } from './PopoverSurface.types';\nimport { usePopoverSurface } from './usePopoverSurface';\nimport { renderPopoverSurface } from './renderPopoverSurface';\n\n/**\n * Headless PopoverSurface component.\n *\n * Renders the popover content area as a native `<dialog popover=\"auto\">` so\n * a single element supports both non-modal (`showPopover()`) and modal\n * (`showModal()`) show modes; the choice is driven by the parent\n * `Popover`'s `trapFocus` prop.\n */\nexport const PopoverSurface: ForwardRefComponent<PopoverSurfaceProps> = React.forwardRef<\n  HTMLDialogElement,\n  PopoverSurfaceProps\n>((props, ref) => {\n  const state = usePopoverSurface(props, ref);\n  return renderPopoverSurface(state);\n});\n\nPopoverSurface.displayName = 'PopoverSurface';\n"],"names":["PopoverSurface","React","forwardRef","props","ref","state","usePopoverSurface","renderPopoverSurface","displayName"],"mappings":"AAAA;;;;;+BAgBaA;;;eAAAA;;;;iEAdU;mCAGW;sCACG;AAU9B,MAAMA,+BAA2DC,OAAMC,UAAU,CAGtF,CAACC,OAAOC;IACR,MAAMC,QAAQC,IAAAA,oCAAiB,EAACH,OAAOC;IACvC,OAAOG,IAAAA,0CAAoB,EAACF;AAC9B;AAEAL,eAAeQ,WAAW,GAAG"}