{"version":3,"sources":["../src/components/Popover/Popover.tsx"],"sourcesContent":["'use client';\n\nimport type { PopoverProps } from './Popover.types';\nimport type { JSXElement } from '@fluentui/react-utilities';\nimport { usePopover, usePopoverContextValues } from './usePopover';\nimport { renderPopover } from './renderPopover';\n\n/**\n * Headless Popover component.\n *\n * Renders the surface in the browser's top layer with `popover=\"auto\"`,\n * letting the platform handle light dismiss (Escape, click-outside,\n * popover-stack peer dismissal). Open paths (click, hover, context menu,\n * controlled `open` prop) flow through React; close paths defer to the\n * browser, with `toggle` events mirrored back into state.\n */\nexport const Popover = (props: PopoverProps): JSXElement => {\n  const state = usePopover(props);\n  const contextValues = usePopoverContextValues(state);\n\n  return renderPopover(state, contextValues);\n};\n\nPopover.displayName = 'Popover';\n"],"names":["Popover","props","state","usePopover","contextValues","usePopoverContextValues","renderPopover","displayName"],"mappings":"AAAA;;;;;+BAgBaA;;;eAAAA;;;4BAZuC;+BACtB;AAWvB,MAAMA,UAAU,CAACC;IACtB,MAAMC,QAAQC,IAAAA,sBAAU,EAACF;IACzB,MAAMG,gBAAgBC,IAAAA,mCAAuB,EAACH;IAE9C,OAAOI,IAAAA,4BAAa,EAACJ,OAAOE;AAC9B;AAEAJ,QAAQO,WAAW,GAAG"}