'use client'; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { useSkeletonItemBase_unstable: function() { return useSkeletonItemBase_unstable; }, useSkeletonItem_unstable: function() { return useSkeletonItem_unstable; } }); const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react")); const _reactutilities = require("@fluentui/react-utilities"); const _SkeletonContext = require("../../contexts/SkeletonContext"); const useSkeletonItem_unstable = (props, ref)=>{ const { animation: contextAnimation, appearance: contextAppearance, size: contextSize, shape: contextShape } = (0, _SkeletonContext.useSkeletonContext)(); const { animation = contextAnimation !== null && contextAnimation !== void 0 ? contextAnimation : 'wave', appearance = contextAppearance !== null && contextAppearance !== void 0 ? contextAppearance : 'opaque', size = contextSize !== null && contextSize !== void 0 ? contextSize : 16, shape = contextShape !== null && contextShape !== void 0 ? contextShape : 'rectangle', ...baseProps } = props; const baseState = useSkeletonItemBase_unstable(baseProps, ref); return { ...baseState, animation, appearance, size, shape }; }; const useSkeletonItemBase_unstable = (props, ref)=>{ const root = _reactutilities.slot.always((0, _reactutilities.getIntrinsicElementProps)('div', { ref, ...props }), { elementType: 'div' }); return { components: { root: 'div' }, root }; };