{"version":3,"sources":["../src/components/Menu/MenuItemSwitch/useMenuItemSwitch.ts"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { useMenuItemSwitchBase_unstable } from '@fluentui/react-menu';\nimport { stringifyDataAttribute } from '../../../utils';\nimport type { MenuItemSwitchProps, MenuItemSwitchState } from './MenuItemSwitch.types';\n\nexport const useMenuItemSwitch = (props: MenuItemSwitchProps, ref: React.Ref<HTMLDivElement>): MenuItemSwitchState => {\n  const state: MenuItemSwitchState = useMenuItemSwitchBase_unstable(props, ref);\n\n  // eslint-disable-next-line react-hooks/immutability\n  state.root['data-disabled'] = stringifyDataAttribute(state.disabled);\n  // eslint-disable-next-line react-hooks/immutability\n  state.root['data-checked'] = stringifyDataAttribute(state.checked);\n\n  return state;\n};\n"],"names":["useMenuItemSwitch","props","ref","state","useMenuItemSwitchBase_unstable","root","stringifyDataAttribute","disabled","checked"],"mappings":"AAAA;;;;;+BAOaA;;;eAAAA;;;2BAJkC;uBACR;AAGhC,MAAMA,oBAAoB,CAACC,OAA4BC;IAC5D,MAAMC,QAA6BC,IAAAA,yCAA8B,EAACH,OAAOC;IAEzE,oDAAoD;IACpDC,MAAME,IAAI,CAAC,gBAAgB,GAAGC,IAAAA,6BAAsB,EAACH,MAAMI,QAAQ;IACnE,oDAAoD;IACpDJ,MAAME,IAAI,CAAC,eAAe,GAAGC,IAAAA,6BAAsB,EAACH,MAAMK,OAAO;IAEjE,OAAOL;AACT"}