import{__exports as e}from"../../../_virtual/Fade.js";import t from"react";import{p as r}from"../../prop-types/index.js";import{c as n}from"../../classnames/index.js";import o from"../../../_virtual/index7.js";import"./utils.js";import{__exports as a}from"../../../_virtual/utils.js";!function(e){function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==s(e)&&"function"!=typeof e)return{default:e};var r=y(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}n.default=e,r&&r.set(e,n);return n}(t),u=d(r),f=d(n),l=o,c=a,p=["tag","baseClass","baseClassActive","className","cssModule","children","innerRef"];function d(e){return e&&e.__esModule?e:{default:e}}function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(y=function(e){return e?r:t})(e)}function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},b.apply(this,arguments)}function O(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var g=j(j({},l.Transition.propTypes),{},{children:u.default.oneOfType([u.default.arrayOf(u.default.node),u.default.node]),tag:c.tagPropType,baseClass:u.default.string,baseClassActive:u.default.string,className:u.default.string,cssModule:u.default.object,innerRef:u.default.oneOfType([u.default.object,u.default.string,u.default.func])}),P=j(j({},l.Transition.defaultProps),{},{tag:"div",baseClass:"fade",baseClassActive:"show",timeout:c.TransitionTimeouts.Fade,appear:!0,enter:!0,exit:!0,in:!0});function w(e){var t=(0,i.useRef)(null),r=e.tag,n=e.baseClass,o=e.baseClassActive,a=e.className,s=e.cssModule,u=e.children,d=e.innerRef,y=void 0===d?t:d,m=O(e,p),j=(0,c.pick)(m,c.TransitionPropTypeKeys),v=(0,c.omit)(m,c.TransitionPropTypeKeys);return i.default.createElement(l.Transition,b({nodeRef:y},j),(function(e){var t="entered"===e,l=(0,c.mapToCssModules)((0,f.default)(a,n,t&&o),s);return i.default.createElement(r,b({className:l},v,{ref:y}),u)}))}w.propTypes=g,w.defaultProps=P;var h=w;e.default=h}(e);
//# sourceMappingURL=Fade.js.map
