{"version":3,"sources":["../../../src/popover/root/UIPopoverRoot.tsx"],"sourcesContent":["'use client';\nimport { styles } from '@primereact/styles/popover';\nimport { withComponent } from '@primereact/ui/base';\nimport { mergeDefaultProps } from '@primeuix/utils';\nimport { PopoverRoot, defaultRootProps } from 'primereact/popover';\nimport * as React from 'react';\n\nexport const UIPopoverRoot = withComponent({\n    name: 'Popover.Root',\n    defaultProps: defaultRootProps,\n    render(instance) {\n        // @ts-expect-error - children is not defined in the props, but we need to extract it to pass the rest of the props to the root component.\n        const { children, ...restProps } = instance.inProps;\n        const rootProps = mergeDefaultProps({ styles }, restProps);\n\n        return <PopoverRoot {...rootProps}>{children}</PopoverRoot>;\n    }\n});\n"],"mappings":"2fACA,OAAS,UAAAA,MAAc,6BACvB,OAAS,iBAAAC,MAAqB,sBAC9B,OAAS,qBAAAC,MAAyB,kBAClC,OAAS,eAAAC,EAAa,oBAAAC,MAAwB,qBAC9C,UAAYC,MAAW,QAEhB,IAAMC,EAAgBC,EAAc,CACvC,KAAM,eACN,aAAcC,EACd,OAAOC,EAAU,CAEb,IAAmCC,EAAAD,EAAS,QAApC,UAAAE,CAZhB,EAY2CD,EAAdE,EAAAC,EAAcH,EAAd,CAAb,aACFI,EAAYC,EAAkB,CAAE,OAAAC,CAAO,EAAGJ,CAAS,EAEzD,OAAO,gBAACK,EAAAC,EAAA,GAAgBJ,GAAYH,CAAS,CACjD,CACJ,CAAC","names":["styles","withComponent","mergeDefaultProps","PopoverRoot","defaultRootProps","React","UIPopoverRoot","withComponent","defaultRootProps","instance","_a","children","restProps","__objRest","rootProps","mergeDefaultProps","styles","PopoverRoot","__spreadValues"]}