{"version":3,"sources":["../src/components/Dialog/DialogBody/useDialogBody.ts"],"sourcesContent":["import type * as React from 'react';\nimport { getIntrinsicElementProps, slot } from '@fluentui/react-utilities';\nimport type { DialogBodyProps, DialogBodyState } from './DialogBody.types';\n\n/**\n * Create the state required to render DialogBody.\n *\n * @param props - props from this instance of DialogBody\n * @param ref - reference to root HTMLDivElement of DialogBody\n */\nexport const useDialogBody = (props: DialogBodyProps, ref: React.Ref<HTMLDivElement>): DialogBodyState => {\n  return {\n    components: { root: 'div' },\n    root: slot.always(getIntrinsicElementProps('div', { ref, ...props }), { elementType: 'div' }),\n  };\n};\n"],"names":["useDialogBody","props","ref","components","root","slot","always","getIntrinsicElementProps","elementType"],"mappings":";;;;+BAUaA;;;eAAAA;;;gCATkC;AASxC,MAAMA,gBAAgB,CAACC,OAAwBC;IACpD,OAAO;QACLC,YAAY;YAAEC,MAAM;QAAM;QAC1BA,MAAMC,oBAAI,CAACC,MAAM,CAACC,IAAAA,wCAAwB,EAAC,OAAO;YAAEL;YAAK,GAAGD,KAAK;QAAC,IAAI;YAAEO,aAAa;QAAM;IAC7F;AACF"}