{"version":3,"sources":["../../../../src/components/List/ListItem/renderListItem.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\n\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { JSXElement } from '@fluentui/react-utilities';\n\nimport type { ListItemSlots, ListItemState } from './ListItem.types';\n\n/**\n * Renders the final JSX of the ListItem component, given the state.\n */\nexport const renderListItem = (state: ListItemState): JSXElement => {\n  assertSlots<ListItemSlots>(state);\n\n  return (\n    <state.root>\n      {state.checkmark &&\n        (state.root.role === 'row' ? (\n          <span role=\"gridcell\">\n            <state.checkmark />\n          </span>\n        ) : (\n          <state.checkmark />\n        ))}\n      {state.root.children}\n    </state.root>\n  );\n};\n"],"names":["renderListItem","state","assertSlots","root","checkmark","role","span","children"],"mappings":"AAAA,0BAA0B,GAC1B,iDAAiD;;;;+BAUpCA;;;eAAAA;;;;gCARe;AAQrB,MAAMA,iBAAiB,CAACC;IAC7BC,IAAAA,2BAAW,EAAgBD;IAE3B,qBACE,sBAACA,MAAME,IAAI;;YACRF,MAAMG,SAAS,IACbH,CAAAA,MAAME,IAAI,CAACE,IAAI,KAAK,sBACnB,qBAACC;gBAAKD,MAAK;0BACT,cAAA,qBAACJ,MAAMG,SAAS;+BAGlB,qBAACH,MAAMG,SAAS,KAClB;YACDH,MAAME,IAAI,CAACI,QAAQ;;;AAG1B"}