{"version":3,"sources":["../src/components/Drawer/InlineDrawer/renderInlineDrawer.tsx"],"sourcesContent":["import type { JSXElement } from '@fluentui/react-utilities';\nimport type { InlineDrawerState as InlineDrawerBaseState } from '@fluentui/react-drawer';\nimport { renderInlineDrawer_unstable } from '@fluentui/react-drawer';\nimport type { DrawerContextValue } from '@fluentui/react-drawer';\n\nimport type { InlineDrawerState } from './InlineDrawer.types';\n\n/**\n * Renders the final JSX of the InlineDrawer component, given the state.\n */\nexport const renderInlineDrawer = (state: InlineDrawerState, contextValue: DrawerContextValue): JSXElement | null => {\n  if (state.unmountOnClose && !state.open) {\n    return null;\n  }\n\n  // Reuse the render function from react-drawer since the structure is the same,\n  // just with fewer slots - the surfaceMotion slot is not present in the headless version.\n  return renderInlineDrawer_unstable(state as InlineDrawerBaseState, contextValue);\n};\n"],"names":["renderInlineDrawer","state","contextValue","unmountOnClose","open","renderInlineDrawer_unstable"],"mappings":";;;;+BAUaA;;;eAAAA;;;6BAR+B;AAQrC,MAAMA,qBAAqB,CAACC,OAA0BC;IAC3D,IAAID,MAAME,cAAc,IAAI,CAACF,MAAMG,IAAI,EAAE;QACvC,OAAO;IACT;IAEA,+EAA+E;IAC/E,yFAAyF;IACzF,OAAOC,IAAAA,wCAA2B,EAACJ,OAAgCC;AACrE"}