{"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>` by default. Consumers\n * can render a `<div>` for non-modal surfaces with `as=\"div\"`. A `<dialog>` is\n * required when the parent `Popover` has `trapFocus` enabled.\n */\nexport const PopoverSurface: ForwardRefComponent<PopoverSurfaceProps> = React.forwardRef((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;;;;;+BAeaA;;;eAAAA;;;;iEAbU;mCAGW;sCACG;AAS9B,MAAMA,+BAA2DC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IAC/F,MAAMC,QAAQC,IAAAA,oCAAiB,EAACH,OAAOC;IACvC,OAAOG,IAAAA,0CAAoB,EAACF;AAC9B;AAEAL,eAAeQ,WAAW,GAAG"}