import{r as p,P as S,b as j,O as c}from"./app-BZJf8lgN.js";import{d as h}from"./hooks.esm-UVLztt_0.js";import{C as w}from"./CSSTransition-DBuKQJwM.js";function a(e){"@babel/helpers - typeof";return a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},a(e)}function C(e,n){if(a(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var r=t.call(e,n);if(a(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function T(e){var n=C(e,"string");return a(n)=="symbol"?n:n+""}function R(e,n,t){return(n=T(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var E={defaultProps:{__TYPE:"CSSTransition",children:void 0},getProps:function(n){return c.getMergedProps(n,E.defaultProps)},getOtherProps:function(n){return c.getDiffProps(n,E.defaultProps)}};function P(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),t.push.apply(t,r)}return t}function f(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?P(Object(t),!0).forEach(function(r){R(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):P(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}var D=p.forwardRef(function(e,n){var t=E.getProps(e),r=p.useContext(S),u=t.disabled||t.options&&t.options.disabled||r&&!r.cssTransition||!j.cssTransition,l=function(o,s){t.onEnter&&t.onEnter(o,s),t.options&&t.options.onEnter&&t.options.onEnter(o,s)},m=function(o,s){t.onEntering&&t.onEntering(o,s),t.options&&t.options.onEntering&&t.options.onEntering(o,s)},b=function(o,s){t.onEntered&&t.onEntered(o,s),t.options&&t.options.onEntered&&t.options.onEntered(o,s)},g=function(o){t.onExit&&t.onExit(o),t.options&&t.options.onExit&&t.options.onExit(o)},y=function(o){t.onExiting&&t.onExiting(o),t.options&&t.options.onExiting&&t.options.onExiting(o)},d=function(o){t.onExited&&t.onExited(o),t.options&&t.options.onExited&&t.options.onExited(o)};if(h(function(){if(u){var i=c.getRefElement(t.nodeRef);t.in?(l(i,!0),m(i,!0),b(i,!0)):(g(i),y(i),d(i))}},[t.in]),u)return t.in?t.children:null;var v={nodeRef:t.nodeRef,in:t.in,appear:t.appear,onEnter:l,onEntering:m,onEntered:b,onExit:g,onExiting:y,onExited:d},x={classNames:t.classNames,timeout:t.timeout,unmountOnExit:t.unmountOnExit},O=f(f(f({},x),t.options||{}),v);return p.createElement(w,O,t.children)});D.displayName="CSSTransition";export{D as C};
//# sourceMappingURL=csstransition.esm-BNRxTMOa.js.map
