{"version":3,"sources":["../src/components/Nav/NavCategoryItem/renderNavCategoryItem.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { JSXElement } from '@fluentui/react-utilities';\nimport { NavCategoryItemProvider } from '@fluentui/react-nav';\nimport type { NavCategoryItemState, NavCategoryItemSlots, NavCategoryItemContextValues } from './NavCategoryItem.types';\n\n/**\n * Render the final JSX of NavCategoryItem\n */\nexport const renderNavCategoryItem = (\n  state: NavCategoryItemState,\n  contextValues: NavCategoryItemContextValues,\n): JSXElement => {\n  assertSlots<NavCategoryItemSlots>(state);\n\n  return (\n    <NavCategoryItemProvider value={contextValues.navCategoryItem}>\n      <state.root>\n        {state.icon && <state.icon />}\n        {state.root.children}\n        {state.expandIcon && <state.expandIcon />}\n      </state.root>\n    </NavCategoryItemProvider>\n  );\n};\n"],"names":["renderNavCategoryItem","state","contextValues","assertSlots","NavCategoryItemProvider","value","navCategoryItem","root","icon","children","expandIcon"],"mappings":"AAAA,0BAA0B,GAC1B,iDAAiD;;;;+BAUpCA;;;eAAAA;;;;gCARe;0BAEY;AAMjC,MAAMA,wBAAwB,CACnCC,OACAC;IAEAC,IAAAA,2BAAW,EAAuBF;IAElC,qBACE,qBAACG,iCAAuB;QAACC,OAAOH,cAAcI,eAAe;kBAC3D,cAAA,sBAACL,MAAMM,IAAI;;gBACRN,MAAMO,IAAI,kBAAI,qBAACP,MAAMO,IAAI;gBACzBP,MAAMM,IAAI,CAACE,QAAQ;gBACnBR,MAAMS,UAAU,kBAAI,qBAACT,MAAMS,UAAU;;;;AAI9C"}