{"ast":null,"code":"'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { unstable_useForkRef as useForkRef, unstable_useId as useId, unstable_useEnhancedEffect as useEnhancedEffect } from '@mui/utils';\nimport { menuReducer } from './menuReducer';\nimport { DropdownContext } from '../useDropdown/DropdownContext';\nimport { ListActionTypes, useList } from '../useList';\nimport { DropdownActionTypes } from '../useDropdown';\nimport { useCompoundParent } from '../useCompound';\nimport { combineHooksSlotProps } from '../utils/combineHooksSlotProps';\nimport { extractEventHandlers } from '../utils/extractEventHandlers';\nconst FALLBACK_MENU_CONTEXT = {\n dispatch: () => {},\n popupId: '',\n registerPopup: () => {},\n registerTrigger: () => {},\n state: {\n open: true,\n changeReason: null\n },\n triggerElement: null\n};\n\n/**\n *\n * Demos:\n *\n * - [Menu](https://mui.com/base-ui/react-menu/#hooks)\n *\n * API:\n *\n * - [useMenu API](https://mui.com/base-ui/react-menu/hooks-api/#use-menu)\n */\nexport function useMenu(parameters = {}) {\n var _useId, _React$useContext;\n const {\n listboxRef: listboxRefProp,\n onItemsChange,\n id: idParam,\n disabledItemsFocusable = true,\n disableListWrap = false,\n autoFocus = true,\n componentName = 'useMenu'\n } = parameters;\n const rootRef = React.useRef(null);\n const handleRef = useForkRef(rootRef, listboxRefProp);\n const listboxId = (_useId = useId(idParam)) != null ? _useId : '';\n const {\n state: {\n open,\n changeReason\n },\n dispatch: menuDispatch,\n triggerElement,\n registerPopup\n } = (_React$useContext = React.useContext(DropdownContext)) != null ? _React$useContext : FALLBACK_MENU_CONTEXT;\n\n // store the initial open state to prevent focus stealing\n // (the first menu items gets focued only when the menu is opened by the user)\n const isInitiallyOpen = React.useRef(open);\n const {\n subitems,\n contextValue: compoundComponentContextValue\n } = useCompoundParent();\n const subitemKeys = React.useMemo(() => Array.from(subitems.keys()), [subitems]);\n const getItemDomElement = React.useCallback(itemId => {\n var _subitems$get$ref$cur, _subitems$get;\n if (itemId == null) {\n return null;\n }\n return (_subitems$get$ref$cur = (_subitems$get = subitems.get(itemId)) == null ? void 0 : _subitems$get.ref.current) != null ? _subitems$get$ref$cur : null;\n }, [subitems]);\n const isItemDisabled = React.useCallback(id => {\n var _subitems$get2;\n return (subitems == null || (_subitems$get2 = subitems.get(id)) == null ? void 0 : _subitems$get2.disabled) || false;\n }, [subitems]);\n const getItemAsString = React.useCallback(id => {\n var _subitems$get3, _subitems$get4;\n return ((_subitems$get3 = subitems.get(id)) == null ? void 0 : _subitems$get3.label) || ((_subitems$get4 = subitems.get(id)) == null || (_subitems$get4 = _subitems$get4.ref.current) == null ? void 0 : _subitems$get4.innerText);\n }, [subitems]);\n const reducerActionContext = React.useMemo(() => ({\n listboxRef: rootRef\n }), [rootRef]);\n const {\n dispatch: listDispatch,\n getRootProps: getListRootProps,\n contextValue: listContextValue,\n state: {\n highlightedValue\n },\n rootRef: mergedListRef\n } = useList({\n disabledItemsFocusable,\n disableListWrap,\n focusManagement: 'DOM',\n getItemDomElement,\n getInitialState: () => ({\n selectedValues: [],\n highlightedValue: null\n }),\n isItemDisabled,\n items: subitemKeys,\n getItemAsString,\n rootRef: handleRef,\n onItemsChange,\n reducerActionContext,\n selectionMode: 'none',\n stateReducer: menuReducer,\n componentName\n });\n useEnhancedEffect(() => {\n registerPopup(listboxId);\n }, [listboxId, registerPopup]);\n useEnhancedEffect(() => {\n if (open && (changeReason == null ? void 0 : changeReason.type) === 'keydown' && changeReason.key === 'ArrowUp') {\n listDispatch({\n type: ListActionTypes.highlightLast,\n event: changeReason\n });\n }\n }, [open, changeReason, listDispatch]);\n React.useEffect(() => {\n if (open && autoFocus && highlightedValue && !isInitiallyOpen.current) {\n var _subitems$get5;\n (_subitems$get5 = subitems.get(highlightedValue)) == null || (_subitems$get5 = _subitems$get5.ref) == null || (_subitems$get5 = _subitems$get5.current) == null || _subitems$get5.focus();\n }\n }, [open, autoFocus, highlightedValue, subitems, subitemKeys]);\n React.useEffect(() => {\n var _rootRef$current;\n // set focus to the highlighted item (but prevent stealing focus from other elements on the page)\n if ((_rootRef$current = rootRef.current) != null && _rootRef$current.contains(document.activeElement) && highlightedValue !== null) {\n var _subitems$get6;\n subitems == null || (_subitems$get6 = subitems.get(highlightedValue)) == null || (_subitems$get6 = _subitems$get6.ref.current) == null || _subitems$get6.focus();\n }\n }, [highlightedValue, subitems]);\n const createHandleBlur = otherHandlers => event => {\n var _otherHandlers$onBlur, _rootRef$current2;\n (_otherHandlers$onBlur = otherHandlers.onBlur) == null || _otherHandlers$onBlur.call(otherHandlers, event);\n if (event.defaultMuiPrevented) {\n return;\n }\n if ((_rootRef$current2 = rootRef.current) != null && _rootRef$current2.contains(event.relatedTarget) || event.relatedTarget === triggerElement) {\n return;\n }\n menuDispatch({\n type: DropdownActionTypes.blur,\n event\n });\n };\n const createHandleKeyDown = otherHandlers => event => {\n var _otherHandlers$onKeyD;\n (_otherHandlers$onKeyD = otherHandlers.onKeyDown) == null || _otherHandlers$onKeyD.call(otherHandlers, event);\n if (event.defaultMuiPrevented) {\n return;\n }\n if (event.key === 'Escape') {\n menuDispatch({\n type: DropdownActionTypes.escapeKeyDown,\n event\n });\n }\n };\n const getOwnListboxHandlers = (otherHandlers = {}) => ({\n onBlur: createHandleBlur(otherHandlers),\n onKeyDown: createHandleKeyDown(otherHandlers)\n });\n const getListboxProps = (externalProps = {}) => {\n const getCombinedRootProps = combineHooksSlotProps(getOwnListboxHandlers, getListRootProps);\n const externalEventHandlers = extractEventHandlers(externalProps);\n return _extends({}, externalProps, externalEventHandlers, getCombinedRootProps(externalEventHandlers), {\n id: listboxId,\n role: 'menu'\n });\n };\n React.useDebugValue({\n subitems,\n highlightedValue\n });\n return {\n contextValue: _extends({}, compoundComponentContextValue, listContextValue),\n dispatch: listDispatch,\n getListboxProps,\n highlightedValue,\n listboxRef: mergedListRef,\n menuItems: subitems,\n open,\n triggerElement\n };\n}","map":{"version":3,"names":["_extends","React","unstable_useForkRef","useForkRef","unstable_useId","useId","unstable_useEnhancedEffect","useEnhancedEffect","menuReducer","DropdownContext","ListActionTypes","useList","DropdownActionTypes","useCompoundParent","combineHooksSlotProps","extractEventHandlers","FALLBACK_MENU_CONTEXT","dispatch","popupId","registerPopup","registerTrigger","state","open","changeReason","triggerElement","useMenu","parameters","_useId","_React$useContext","listboxRef","listboxRefProp","onItemsChange","id","idParam","disabledItemsFocusable","disableListWrap","autoFocus","componentName","rootRef","useRef","handleRef","listboxId","menuDispatch","useContext","isInitiallyOpen","subitems","contextValue","compoundComponentContextValue","subitemKeys","useMemo","Array","from","keys","getItemDomElement","useCallback","itemId","_subitems$get$ref$cur","_subitems$get","get","ref","current","isItemDisabled","_subitems$get2","disabled","getItemAsString","_subitems$get3","_subitems$get4","label","innerText","reducerActionContext","listDispatch","getRootProps","getListRootProps","listContextValue","highlightedValue","mergedListRef","focusManagement","getInitialState","selectedValues","items","selectionMode","stateReducer","type","key","highlightLast","event","useEffect","_subitems$get5","focus","_rootRef$current","contains","document","activeElement","_subitems$get6","createHandleBlur","otherHandlers","_otherHandlers$onBlur","_rootRef$current2","onBlur","call","defaultMuiPrevented","relatedTarget","blur","createHandleKeyDown","_otherHandlers$onKeyD","onKeyDown","escapeKeyDown","getOwnListboxHandlers","getListboxProps","externalProps","getCombinedRootProps","externalEventHandlers","role","useDebugValue","menuItems"],"sources":["/home/gnx/Desktop/ETB/ETB-FrontEnd/node_modules/@mui/base/useMenu/useMenu.js"],"sourcesContent":["'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { unstable_useForkRef as useForkRef, unstable_useId as useId, unstable_useEnhancedEffect as useEnhancedEffect } from '@mui/utils';\nimport { menuReducer } from './menuReducer';\nimport { DropdownContext } from '../useDropdown/DropdownContext';\nimport { ListActionTypes, useList } from '../useList';\nimport { DropdownActionTypes } from '../useDropdown';\nimport { useCompoundParent } from '../useCompound';\nimport { combineHooksSlotProps } from '../utils/combineHooksSlotProps';\nimport { extractEventHandlers } from '../utils/extractEventHandlers';\nconst FALLBACK_MENU_CONTEXT = {\n dispatch: () => {},\n popupId: '',\n registerPopup: () => {},\n registerTrigger: () => {},\n state: {\n open: true,\n changeReason: null\n },\n triggerElement: null\n};\n\n/**\n *\n * Demos:\n *\n * - [Menu](https://mui.com/base-ui/react-menu/#hooks)\n *\n * API:\n *\n * - [useMenu API](https://mui.com/base-ui/react-menu/hooks-api/#use-menu)\n */\nexport function useMenu(parameters = {}) {\n var _useId, _React$useContext;\n const {\n listboxRef: listboxRefProp,\n onItemsChange,\n id: idParam,\n disabledItemsFocusable = true,\n disableListWrap = false,\n autoFocus = true,\n componentName = 'useMenu'\n } = parameters;\n const rootRef = React.useRef(null);\n const handleRef = useForkRef(rootRef, listboxRefProp);\n const listboxId = (_useId = useId(idParam)) != null ? _useId : '';\n const {\n state: {\n open,\n changeReason\n },\n dispatch: menuDispatch,\n triggerElement,\n registerPopup\n } = (_React$useContext = React.useContext(DropdownContext)) != null ? _React$useContext : FALLBACK_MENU_CONTEXT;\n\n // store the initial open state to prevent focus stealing\n // (the first menu items gets focued only when the menu is opened by the user)\n const isInitiallyOpen = React.useRef(open);\n const {\n subitems,\n contextValue: compoundComponentContextValue\n } = useCompoundParent();\n const subitemKeys = React.useMemo(() => Array.from(subitems.keys()), [subitems]);\n const getItemDomElement = React.useCallback(itemId => {\n var _subitems$get$ref$cur, _subitems$get;\n if (itemId == null) {\n return null;\n }\n return (_subitems$get$ref$cur = (_subitems$get = subitems.get(itemId)) == null ? void 0 : _subitems$get.ref.current) != null ? _subitems$get$ref$cur : null;\n }, [subitems]);\n const isItemDisabled = React.useCallback(id => {\n var _subitems$get2;\n return (subitems == null || (_subitems$get2 = subitems.get(id)) == null ? void 0 : _subitems$get2.disabled) || false;\n }, [subitems]);\n const getItemAsString = React.useCallback(id => {\n var _subitems$get3, _subitems$get4;\n return ((_subitems$get3 = subitems.get(id)) == null ? void 0 : _subitems$get3.label) || ((_subitems$get4 = subitems.get(id)) == null || (_subitems$get4 = _subitems$get4.ref.current) == null ? void 0 : _subitems$get4.innerText);\n }, [subitems]);\n const reducerActionContext = React.useMemo(() => ({\n listboxRef: rootRef\n }), [rootRef]);\n const {\n dispatch: listDispatch,\n getRootProps: getListRootProps,\n contextValue: listContextValue,\n state: {\n highlightedValue\n },\n rootRef: mergedListRef\n } = useList({\n disabledItemsFocusable,\n disableListWrap,\n focusManagement: 'DOM',\n getItemDomElement,\n getInitialState: () => ({\n selectedValues: [],\n highlightedValue: null\n }),\n isItemDisabled,\n items: subitemKeys,\n getItemAsString,\n rootRef: handleRef,\n onItemsChange,\n reducerActionContext,\n selectionMode: 'none',\n stateReducer: menuReducer,\n componentName\n });\n useEnhancedEffect(() => {\n registerPopup(listboxId);\n }, [listboxId, registerPopup]);\n useEnhancedEffect(() => {\n if (open && (changeReason == null ? void 0 : changeReason.type) === 'keydown' && changeReason.key === 'ArrowUp') {\n listDispatch({\n type: ListActionTypes.highlightLast,\n event: changeReason\n });\n }\n }, [open, changeReason, listDispatch]);\n React.useEffect(() => {\n if (open && autoFocus && highlightedValue && !isInitiallyOpen.current) {\n var _subitems$get5;\n (_subitems$get5 = subitems.get(highlightedValue)) == null || (_subitems$get5 = _subitems$get5.ref) == null || (_subitems$get5 = _subitems$get5.current) == null || _subitems$get5.focus();\n }\n }, [open, autoFocus, highlightedValue, subitems, subitemKeys]);\n React.useEffect(() => {\n var _rootRef$current;\n // set focus to the highlighted item (but prevent stealing focus from other elements on the page)\n if ((_rootRef$current = rootRef.current) != null && _rootRef$current.contains(document.activeElement) && highlightedValue !== null) {\n var _subitems$get6;\n subitems == null || (_subitems$get6 = subitems.get(highlightedValue)) == null || (_subitems$get6 = _subitems$get6.ref.current) == null || _subitems$get6.focus();\n }\n }, [highlightedValue, subitems]);\n const createHandleBlur = otherHandlers => event => {\n var _otherHandlers$onBlur, _rootRef$current2;\n (_otherHandlers$onBlur = otherHandlers.onBlur) == null || _otherHandlers$onBlur.call(otherHandlers, event);\n if (event.defaultMuiPrevented) {\n return;\n }\n if ((_rootRef$current2 = rootRef.current) != null && _rootRef$current2.contains(event.relatedTarget) || event.relatedTarget === triggerElement) {\n return;\n }\n menuDispatch({\n type: DropdownActionTypes.blur,\n event\n });\n };\n const createHandleKeyDown = otherHandlers => event => {\n var _otherHandlers$onKeyD;\n (_otherHandlers$onKeyD = otherHandlers.onKeyDown) == null || _otherHandlers$onKeyD.call(otherHandlers, event);\n if (event.defaultMuiPrevented) {\n return;\n }\n if (event.key === 'Escape') {\n menuDispatch({\n type: DropdownActionTypes.escapeKeyDown,\n event\n });\n }\n };\n const getOwnListboxHandlers = (otherHandlers = {}) => ({\n onBlur: createHandleBlur(otherHandlers),\n onKeyDown: createHandleKeyDown(otherHandlers)\n });\n const getListboxProps = (externalProps = {}) => {\n const getCombinedRootProps = combineHooksSlotProps(getOwnListboxHandlers, getListRootProps);\n const externalEventHandlers = extractEventHandlers(externalProps);\n return _extends({}, externalProps, externalEventHandlers, getCombinedRootProps(externalEventHandlers), {\n id: listboxId,\n role: 'menu'\n });\n };\n React.useDebugValue({\n subitems,\n highlightedValue\n });\n return {\n contextValue: _extends({}, compoundComponentContextValue, listContextValue),\n dispatch: listDispatch,\n getListboxProps,\n highlightedValue,\n listboxRef: mergedListRef,\n menuItems: subitems,\n open,\n triggerElement\n };\n}"],"mappings":"AAAA,YAAY;;AAEZ,OAAOA,QAAQ,MAAM,oCAAoC;AACzD,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,mBAAmB,IAAIC,UAAU,EAAEC,cAAc,IAAIC,KAAK,EAAEC,0BAA0B,IAAIC,iBAAiB,QAAQ,YAAY;AACxI,SAASC,WAAW,QAAQ,eAAe;AAC3C,SAASC,eAAe,QAAQ,gCAAgC;AAChE,SAASC,eAAe,EAAEC,OAAO,QAAQ,YAAY;AACrD,SAASC,mBAAmB,QAAQ,gBAAgB;AACpD,SAASC,iBAAiB,QAAQ,gBAAgB;AAClD,SAASC,qBAAqB,QAAQ,gCAAgC;AACtE,SAASC,oBAAoB,QAAQ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