"use strict";Liferay.Loader.define("change-tracking-web$react-transition-group@4.4.1/cjs/CSSTransition",["module","exports","require","liferay!frontend-js-react-web$prop-types","change-tracking-web$dom-helpers/addClass","change-tracking-web$dom-helpers/removeClass","liferay!frontend-js-react-web$react","./Transition","./utils/PropTypes"],(function(e,n,r){window;{n.__esModule=!0,n.default=void 0,i(r("liferay!frontend-js-react-web$prop-types"));var t=i(r("change-tracking-web$dom-helpers/addClass")),s=i(r("change-tracking-web$dom-helpers/removeClass")),a=i(r("liferay!frontend-js-react-web$react")),o=i(r("./Transition"));function i(e){return e&&e.__esModule?e:{default:e}}function p(){return(p=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e}).apply(this,arguments)}r("./utils/PropTypes");var l=function(e,n){return e&&n&&n.split(" ").forEach((function(n){return(0,s.default)(e,n)}))},c=function(e){var n,r;function s(){for(var n,r=arguments.length,t=new Array(r),s=0;s<r;s++)t[s]=arguments[s];return(n=e.call.apply(e,[this].concat(t))||this).appliedClasses={appear:{},enter:{},exit:{}},n.onEnter=function(e,r){var t=n.resolveArguments(e,r),s=t[0],a=t[1];n.removeClasses(s,"exit"),n.addClass(s,a?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(e,r)},n.onEntering=function(e,r){var t=n.resolveArguments(e,r),s=t[0],a=t[1]?"appear":"enter";n.addClass(s,a,"active"),n.props.onEntering&&n.props.onEntering(e,r)},n.onEntered=function(e,r){var t=n.resolveArguments(e,r),s=t[0],a=t[1]?"appear":"enter";n.removeClasses(s,a),n.addClass(s,a,"done"),n.props.onEntered&&n.props.onEntered(e,r)},n.onExit=function(e){var r=n.resolveArguments(e)[0];n.removeClasses(r,"appear"),n.removeClasses(r,"enter"),n.addClass(r,"exit","base"),n.props.onExit&&n.props.onExit(e)},n.onExiting=function(e){var r=n.resolveArguments(e)[0];n.addClass(r,"exit","active"),n.props.onExiting&&n.props.onExiting(e)},n.onExited=function(e){var r=n.resolveArguments(e)[0];n.removeClasses(r,"exit"),n.addClass(r,"exit","done"),n.props.onExited&&n.props.onExited(e)},n.resolveArguments=function(e,r){return n.props.nodeRef?[n.props.nodeRef.current,e]:[e,r]},n.getClassNames=function(e){var r=n.props.classNames,t="string"==typeof r,s=t?(t&&r?r+"-":"")+e:r[e];return{baseClassName:s,activeClassName:t?s+"-active":r[e+"Active"],doneClassName:t?s+"-done":r[e+"Done"]}},n}r=e,(n=s).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r;var i=s.prototype;return i.addClass=function(e,n,r){var s=this.getClassNames(n)[r+"ClassName"],a=this.getClassNames("enter").doneClassName;"appear"===n&&"done"===r&&a&&(s+=" "+a),"active"===r&&e&&e.scrollTop,s&&(this.appliedClasses[n][r]=s,function(e,n){e&&n&&n.split(" ").forEach((function(n){return(0,t.default)(e,n)}))}(e,s))},i.removeClasses=function(e,n){var r=this.appliedClasses[n],t=r.base,s=r.active,a=r.done;this.appliedClasses[n]={},t&&l(e,t),s&&l(e,s),a&&l(e,a)},i.render=function(){var e=this.props,n=(e.classNames,function(e,n){if(null==e)return{};var r,t,s={},a=Object.keys(e);for(t=0;t<a.length;t++)r=a[t],n.indexOf(r)>=0||(s[r]=e[r]);return s}(e,["classNames"]));return a.default.createElement(o.default,p({},n,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},s}(a.default.Component);c.defaultProps={classNames:""},c.propTypes={};var d=c;n.default=d,e.exports=n.default}}));
//# sourceMappingURL=CSSTransition.js.map