"use strict";Liferay.Loader.define("change-tracking-web$react-transition-group@4.4.1/cjs/Transition",["module","exports","require","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","liferay!frontend-js-react-web$react-dom","./config","./utils/PropTypes","./TransitionGroupContext"],(function(t,e,n){window;{e.__esModule=!0,e.default=e.EXITING=e.ENTERED=e.ENTERING=e.EXITED=e.UNMOUNTED=void 0,s(n("liferay!frontend-js-react-web$prop-types"));var i=s(n("liferay!frontend-js-react-web$react")),o=s(n("liferay!frontend-js-react-web$react-dom")),r=s(n("./config")),a=(n("./utils/PropTypes"),s(n("./TransitionGroupContext")));function s(t){return t&&t.__esModule?t:{default:t}}var u="unmounted";e.UNMOUNTED=u;var l="exited";e.EXITED=l;var p="entering";e.ENTERING=p;var d="entered";e.ENTERED=d;var c="exiting";e.EXITING=c;var f=function(t){var e,n;function s(e,n){var i,o=t.call(this,e,n)||this,r=n&&!n.isMounting?e.enter:e.appear;return o.appearStatus=null,e.in?r?(i=l,o.appearStatus=p):i=d:i=e.unmountOnExit||e.mountOnEnter?u:l,o.state={status:i},o.nextCallback=null,o}n=t,(e=s).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,s.getDerivedStateFromProps=function(t,e){return t.in&&e.status===u?{status:l}:null};var f=s.prototype;return f.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},f.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?n!==p&&n!==d&&(e=p):n!==p&&n!==d||(e=c)}this.updateStatus(!1,e)},f.componentWillUnmount=function(){this.cancelNextCallback()},f.getTimeouts=function(){var t,e,n,i=this.props.timeout;return t=e=n=i,null!=i&&"number"!=typeof i&&(t=i.exit,e=i.enter,n=void 0!==i.appear?i.appear:e),{exit:t,enter:e,appear:n}},f.updateStatus=function(t,e){void 0===t&&(t=!1),null!==e?(this.cancelNextCallback(),e===p?this.performEnter(t):this.performExit()):this.props.unmountOnExit&&this.state.status===l&&this.setState({status:u})},f.performEnter=function(t){var e=this,n=this.props.enter,i=this.context?this.context.isMounting:t,a=this.props.nodeRef?[i]:[o.default.findDOMNode(this),i],s=a[0],u=a[1],l=this.getTimeouts(),c=i?l.appear:l.enter;!t&&!n||r.default.disabled?this.safeSetState({status:d},(function(){e.props.onEntered(s)})):(this.props.onEnter(s,u),this.safeSetState({status:p},(function(){e.props.onEntering(s,u),e.onTransitionEnd(c,(function(){e.safeSetState({status:d},(function(){e.props.onEntered(s,u)}))}))})))},f.performExit=function(){var t=this,e=this.props.exit,n=this.getTimeouts(),i=this.props.nodeRef?void 0:o.default.findDOMNode(this);e&&!r.default.disabled?(this.props.onExit(i),this.safeSetState({status:c},(function(){t.props.onExiting(i),t.onTransitionEnd(n.exit,(function(){t.safeSetState({status:l},(function(){t.props.onExited(i)}))}))}))):this.safeSetState({status:l},(function(){t.props.onExited(i)}))},f.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},f.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},f.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(i){n&&(n=!1,e.nextCallback=null,t(i))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},f.onTransitionEnd=function(t,e){this.setNextCallback(e);var n=this.props.nodeRef?this.props.nodeRef.current:o.default.findDOMNode(this),i=null==t&&!this.props.addEndListener;if(n&&!i){if(this.props.addEndListener){var r=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=r[0],s=r[1];this.props.addEndListener(a,s)}null!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},f.render=function(){var t=this.state.status;if(t===u)return null;var e=this.props,n=e.children,o=(e.in,e.mountOnEnter,e.unmountOnExit,e.appear,e.enter,e.exit,e.timeout,e.addEndListener,e.onEnter,e.onEntering,e.onEntered,e.onExit,e.onExiting,e.onExited,e.nodeRef,function(t,e){if(null==t)return{};var n,i,o={},r=Object.keys(t);for(i=0;i<r.length;i++)n=r[i],e.indexOf(n)>=0||(o[n]=t[n]);return o}(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return i.default.createElement(a.default.Provider,{value:null},"function"==typeof n?n(t,o):i.default.cloneElement(i.default.Children.only(n),o))},s}(i.default.Component);function E(){}f.contextType=a.default,f.propTypes={},f.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:E,onEntering:E,onEntered:E,onExit:E,onExiting:E,onExited:E},f.UNMOUNTED=u,f.EXITED=l,f.ENTERING=p,f.ENTERED=d,f.EXITING=c;var h=f;e.default=h}}));
//# sourceMappingURL=Transition.js.map