"use strict";(globalThis.webpackChunkmoowoodle=globalThis.webpackChunkmoowoodle||[]).push([[854],{25506:(t,n,e)=>{e.d(n,{Ay:()=>m});var i=e(22936),o=e(62286),s=e(51609),a=e.n(s),r=e(75795),u=e.n(r);const p=a().createContext(null);var l="unmounted",c="exited",h="entering",d="entered",f="exiting",E=function(t){function n(n,e){var i;i=t.call(this,n,e)||this;var o,s=e&&!e.isMounting?n.enter:n.appear;return i.appearStatus=null,n.in?s?(o=c,i.appearStatus=h):o=d:o=n.unmountOnExit||n.mountOnEnter?l:c,i.state={status:o},i.nextCallback=null,i}(0,o.A)(n,t),n.getDerivedStateFromProps=function(t,n){return t.in&&n.status===l?{status:c}:null};var e=n.prototype;return e.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},e.componentDidUpdate=function(t){var n=null;if(t!==this.props){var e=this.state.status;this.props.in?e!==h&&e!==d&&(n=h):e!==h&&e!==d||(n=f)}this.updateStatus(!1,n)},e.componentWillUnmount=function(){this.cancelNextCallback()},e.getTimeouts=function(){var t,n,e,i=this.props.timeout;return t=n=e=i,null!=i&&"number"!=typeof i&&(t=i.exit,n=i.enter,e=void 0!==i.appear?i.appear:n),{exit:t,enter:n,appear:e}},e.updateStatus=function(t,n){if(void 0===t&&(t=!1),null!==n)if(this.cancelNextCallback(),n===h){if(this.props.unmountOnExit||this.props.mountOnEnter){var e=this.props.nodeRef?this.props.nodeRef.current:u().findDOMNode(this);e&&function(t){t.scrollTop}(e)}this.performEnter(t)}else this.performExit();else this.props.unmountOnExit&&this.state.status===c&&this.setState({status:l})},e.performEnter=function(t){var n=this,e=this.props.enter,i=this.context?this.context.isMounting:t,o=this.props.nodeRef?[i]:[u().findDOMNode(this),i],s=o[0],a=o[1],r=this.getTimeouts(),p=i?r.appear:r.enter;t||e?(this.props.onEnter(s,a),this.safeSetState({status:h},function(){n.props.onEntering(s,a),n.onTransitionEnd(p,function(){n.safeSetState({status:d},function(){n.props.onEntered(s,a)})})})):this.safeSetState({status:d},function(){n.props.onEntered(s)})},e.performExit=function(){var t=this,n=this.props.exit,e=this.getTimeouts(),i=this.props.nodeRef?void 0:u().findDOMNode(this);n?(this.props.onExit(i),this.safeSetState({status:f},function(){t.props.onExiting(i),t.onTransitionEnd(e.exit,function(){t.safeSetState({status:c},function(){t.props.onExited(i)})})})):this.safeSetState({status:c},function(){t.props.onExited(i)})},e.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},e.safeSetState=function(t,n){n=this.setNextCallback(n),this.setState(t,n)},e.setNextCallback=function(t){var n=this,e=!0;return this.nextCallback=function(i){e&&(e=!1,n.nextCallback=null,t(i))},this.nextCallback.cancel=function(){e=!1},this.nextCallback},e.onTransitionEnd=function(t,n){this.setNextCallback(n);var e=this.props.nodeRef?this.props.nodeRef.current:u().findDOMNode(this),i=null==t&&!this.props.addEndListener;if(e&&!i){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[e,this.nextCallback],s=o[0],a=o[1];this.props.addEndListener(s,a)}null!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},e.render=function(){var t=this.state.status;if(t===l)return null;var n=this.props,e=n.children,o=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,(0,i.A)(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a().createElement(p.Provider,{value:null},"function"==typeof e?e(t,o):a().cloneElement(a().Children.only(e),o))},n}(a().Component);function x(){}E.contextType=p,E.propTypes={},E.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:x,onEntering:x,onEntered:x,onExit:x,onExiting:x,onExited:x},E.UNMOUNTED=l,E.EXITED=c,E.ENTERING=h,E.ENTERED=d,E.EXITING=f;const m=E}}]);