import{R as e}from"../../../../_virtual/ReplaceTransition.js_commonjs-module";import"../../../prop-types/index.js";import n from"react";import t from"react-dom";import"./TransitionGroup.js";import{T as r}from"../../../../_virtual/TransitionGroup.js_commonjs-module";import{p as o}from"../../../../_virtual/index.js_commonjs-module";!function(e,i){i.__esModule=!0,i.default=void 0;var l=c(o.exports),a=c(n),d=t,u=c(r.exports);function c(e){return e&&e.__esModule?e:{default:e}}var f=function(e){var n,t;function r(){for(var n,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return(n=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.handleLifecycle("onEnter",0,t)},n.handleEntering=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.handleLifecycle("onEntering",0,t)},n.handleEntered=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.handleLifecycle("onEntered",0,t)},n.handleExit=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.handleLifecycle("onExit",1,t)},n.handleExiting=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.handleLifecycle("onExiting",1,t)},n.handleExited=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.handleLifecycle("onExited",1,t)},n}t=e,(n=r).prototype=Object.create(t.prototype),n.prototype.constructor=n,n.__proto__=t;var o=r.prototype;return o.handleLifecycle=function(e,n,t){var r,o=this.props.children,i=a.default.Children.toArray(o)[n];i.props[e]&&(r=i.props)[e].apply(r,t),this.props[e]&&this.props[e]((0,d.findDOMNode)(this))},o.render=function(){var e=this.props,n=e.children,t=e.in,r=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,["children","in"]),o=a.default.Children.toArray(n),i=o[0],l=o[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,a.default.createElement(u.default,r,t?a.default.cloneElement(i,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):a.default.cloneElement(l,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},r}(a.default.Component);f.propTypes="production"!==process.env.NODE_ENV?{in:l.default.bool.isRequired,children:function(e,n){return 2!==a.default.Children.count(e[n])?new Error('"'+n+'" must be exactly two transition components.'):null}}:{};var s=f;i.default=s,e.exports=i.default}(e,e.exports);
//# sourceMappingURL=ReplaceTransition.js.map
