'use client'; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "useFluentProviderContextValues_unstable", { enumerable: true, get: function() { return useFluentProviderContextValues_unstable; } }); const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react")); function useFluentProviderContextValues_unstable(state) { const { applyStylesToPortals, customStyleHooks_unstable, dir, root, targetDocument, theme, themeClassName, overrides_unstable } = state; const provider = _react.useMemo(()=>({ dir, targetDocument }), [ dir, targetDocument ]); // "Tooltip" component mutates an object in this context, instance should be stable const [tooltip] = _react.useState(()=>({})); const iconDirection = _react.useMemo(()=>({ textDirection: dir }), [ dir ]); return { // eslint-disable-next-line @typescript-eslint/naming-convention customStyleHooks_unstable, // eslint-disable-next-line @typescript-eslint/naming-convention overrides_unstable, provider, textDirection: dir, iconDirection, tooltip, theme, themeClassName: applyStylesToPortals ? root.className : themeClassName }; }