/**
 * ldesign v0.3.13
 * (c) 2023 ldesign
 * @license MIT
 */

'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var configProvider_context = require('../config-provider/context.js');
require('vue');
var configProvider_useConfig = require('../config-provider/useConfig.js');
require('lodash/mergeWith');
require('lodash/merge');
require('lodash/isArray');
require('../_common/js/global-config/default-config.js');
require('../_common/js/global-config/locale/zh_CN.js');
require('@babel/runtime/helpers/typeof');
require('../_chunks/dep-f4db2590.js');
require('dayjs');
require('lodash/cloneDeep');
require('lodash/isFunction');
require('lodash/isString');

var expand = configProvider_context.EAnimationType.expand,
  ripple = configProvider_context.EAnimationType.ripple,
  fade = configProvider_context.EAnimationType.fade;
function useKeepAnimation() {
  var _useConfig = configProvider_useConfig.useConfig("animation"),
    globalConfig = _useConfig.globalConfig;
  var keepAnimation = function keepAnimation(type) {
    var _animationConfig$excl, _animationConfig$incl;
    var animationConfig = globalConfig.value;
    return animationConfig && !((_animationConfig$excl = animationConfig.exclude) !== null && _animationConfig$excl !== void 0 && _animationConfig$excl.includes(type)) && ((_animationConfig$incl = animationConfig.include) === null || _animationConfig$incl === void 0 ? void 0 : _animationConfig$incl.includes(type));
  };
  return {
    keepExpand: keepAnimation(expand),
    keepRipple: keepAnimation(ripple),
    keepFade: keepAnimation(fade)
  };
}

exports["default"] = useKeepAnimation;
//# sourceMappingURL=useKeepAnimation.js.map
