{"version":3,"sources":["../../../src/components/Calendar/renderCalendar.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\nimport { assertSlots } from '@fluentui/react-utilities';\nimport { CalendarProvider } from './calendarContext';\nimport type { JSXElement } from '@fluentui/react-utilities';\nimport type { CalendarState, CalendarContextValues, CalendarSlots } from './Calendar.types';\n\n/**\n * Render the final JSX of Calendar.\n */\nexport const renderCalendar = (state: CalendarState, contextValues: CalendarContextValues): JSXElement => {\n  assertSlots<CalendarSlots>(state);\n\n  return (\n    <CalendarProvider value={contextValues.calendar}>\n      <state.root>\n        <state.liveRegion />\n        {state.isDayPickerVisible && state.dayPicker && <state.dayPicker />}\n        {state.isDayPickerVisible && state.isMonthPickerVisible && <state.divider />}\n        {state.isMonthPickerVisible && (\n          <state.monthPickerWrapper>{state.monthPicker && <state.monthPicker />}</state.monthPickerWrapper>\n        )}\n        {state.goToTodayButton && <state.goToTodayButton />}\n      </state.root>\n    </CalendarProvider>\n  );\n};\n"],"names":["renderCalendar","state","contextValues","assertSlots","CalendarProvider","value","calendar","root","liveRegion","isDayPickerVisible","dayPicker","isMonthPickerVisible","divider","monthPickerWrapper","monthPicker","goToTodayButton"],"mappings":"AAAA,0BAA0B,GAC1B,iDAAiD;;;;+BASpCA;;;eAAAA;;;;gCARe;iCACK;AAO1B,MAAMA,iBAAiB,CAACC,OAAsBC;IACnDC,IAAAA,2BAAW,EAAgBF;IAE3B,qBACE,qBAACG,iCAAgB;QAACC,OAAOH,cAAcI,QAAQ;kBAC7C,cAAA,sBAACL,MAAMM,IAAI;;8BACT,qBAACN,MAAMO,UAAU;gBAChBP,MAAMQ,kBAAkB,IAAIR,MAAMS,SAAS,kBAAI,qBAACT,MAAMS,SAAS;gBAC/DT,MAAMQ,kBAAkB,IAAIR,MAAMU,oBAAoB,kBAAI,qBAACV,MAAMW,OAAO;gBACxEX,MAAMU,oBAAoB,kBACzB,qBAACV,MAAMY,kBAAkB;8BAAEZ,MAAMa,WAAW,kBAAI,qBAACb,MAAMa,WAAW;;gBAEnEb,MAAMc,eAAe,kBAAI,qBAACd,MAAMc,eAAe;;;;AAIxD"}