{"version":3,"sources":["../../../../src/components/Calendar/CalendarYear/renderCalendarYear.tsx"],"sourcesContent":["/** @jsxRuntime automatic */\n/** @jsxImportSource @fluentui/react-jsx-runtime */\nimport { assertSlots } from '@fluentui/react-utilities';\nimport type { JSXElement } from '@fluentui/react-utilities';\nimport type { CalendarYearState, CalendarYearSlots } from './CalendarYear.types';\n\n/**\n * Render the final JSX of CalendarYear.\n */\nexport const renderCalendarYear = (state: CalendarYearState): JSXElement => {\n  assertSlots<CalendarYearSlots>(state);\n\n  return (\n    <state.root>\n      <state.header>\n        <state.heading />\n        <state.navigation>\n          <state.previousRangeButton />\n          <state.nextRangeButton />\n        </state.navigation>\n      </state.header>\n      <state.grid>\n        {/* Consumer children replace the default rows. */}\n        {state.grid.children !== undefined\n          ? state.grid.children\n          : state.yearRows.map(row => (\n              <div key={row.key} {...state.getYearRowProps(row).root}>\n                {row.cells.map(cell => {\n                  const cellProps = state.getYearCellProps(cell);\n                  return (\n                    <div key={cell.year} {...cellProps.root}>\n                      <button {...cellProps.button} />\n                    </div>\n                  );\n                })}\n              </div>\n            ))}\n      </state.grid>\n    </state.root>\n  );\n};\n"],"names":["renderCalendarYear","state","assertSlots","root","header","heading","navigation","previousRangeButton","nextRangeButton","grid","children","undefined","yearRows","map","row","div","getYearRowProps","cells","cell","cellProps","getYearCellProps","button","year","key"],"mappings":"AAAA,0BAA0B,GAC1B,iDAAiD;;;;+BAQpCA;;;eAAAA;;;;gCAPe;AAOrB,MAAMA,qBAAqB,CAACC;IACjCC,IAAAA,2BAAW,EAAoBD;IAE/B,qBACE,sBAACA,MAAME,IAAI;;0BACT,sBAACF,MAAMG,MAAM;;kCACX,qBAACH,MAAMI,OAAO;kCACd,sBAACJ,MAAMK,UAAU;;0CACf,qBAACL,MAAMM,mBAAmB;0CAC1B,qBAACN,MAAMO,eAAe;;;;;0BAG1B,qBAACP,MAAMQ,IAAI;0BAERR,MAAMQ,IAAI,CAACC,QAAQ,KAAKC,YACrBV,MAAMQ,IAAI,CAACC,QAAQ,GACnBT,MAAMW,QAAQ,CAACC,GAAG,CAACC,CAAAA,oBACjB,qBAACC;wBAAmB,GAAGd,MAAMe,eAAe,CAACF,KAAKX,IAAI;kCACnDW,IAAIG,KAAK,CAACJ,GAAG,CAACK,CAAAA;4BACb,MAAMC,YAAYlB,MAAMmB,gBAAgB,CAACF;4BACzC,qBACE,qBAACH;gCAAqB,GAAGI,UAAUhB,IAAI;0CACrC,cAAA,qBAACkB;oCAAQ,GAAGF,UAAUE,MAAM;;+BADpBH,KAAKI,IAAI;wBAIvB;uBARQR,IAAIS,GAAG;;;;AAc/B"}