{"version":3,"sources":["../src/components/Menu/MenuItemSwitch/MenuItemSwitch.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useMenuItemSwitch } from './useMenuItemSwitch';\nimport { renderMenuItemSwitch } from './renderMenuItemSwitch';\nimport type { MenuItemSwitchProps } from './MenuItemSwitch.types';\n\n/**\n * Headless MenuItemSwitch component.\n *\n * Renders a toggle-style menu item with a `switchIndicator` slot. Selection\n * state is driven by the parent MenuList's controlled `checkedValues`.\n */\nexport const MenuItemSwitch: ForwardRefComponent<MenuItemSwitchProps> = React.forwardRef((props, ref) => {\n  const state = useMenuItemSwitch(props, ref);\n  return renderMenuItemSwitch(state);\n});\n\nMenuItemSwitch.displayName = 'MenuItemSwitch';\n"],"names":["MenuItemSwitch","React","forwardRef","props","ref","state","useMenuItemSwitch","renderMenuItemSwitch","displayName"],"mappings":"AAAA;;;;;+BAcaA;;;eAAAA;;;;iEAZU;mCAEW;sCACG;AAS9B,MAAMA,+BAA2DC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IAC/F,MAAMC,QAAQC,IAAAA,oCAAiB,EAACH,OAAOC;IACvC,OAAOG,IAAAA,0CAAoB,EAACF;AAC9B;AAEAL,eAAeQ,WAAW,GAAG"}