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