import*as t from"react";import{withDelay as n,TransitionDefaults as i}from"./transition-utils.js";import{AnimatePresence as e}from"../../../../framer-motion/dist/es/components/AnimatePresence/index.js";import{motion as r}from"../../../../framer-motion/dist/es/render/dom/motion.js";import{__DEV__ as o}from"../../../utils/dist/esm/assertion.js";import{cx as a}from"../../../utils/dist/esm/dom.js";function s(){return(s=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e])}return t}).apply(this,arguments)}var m={initial:"exit",animate:"enter",exit:"exit",variants:{enter:function(t){var e,{transition:r,transitionEnd:o,delay:a}=void 0===t?{}:t;return{opacity:1,transition:null!=(e=null==r?void 0:r.enter)?e:n.enter(i.enter,a),transitionEnd:null==o?void 0:o.enter}},exit:function(t){var e,{transition:r,transitionEnd:o,delay:a}=void 0===t?{}:t;return{opacity:0,transition:null!=(e=null==r?void 0:r.exit)?e:n.exit(i.exit,a),transitionEnd:null==o?void 0:o.exit}}}},l=t.forwardRef(((n,i)=>{var{unmountOnExit:o,in:l,className:d,transition:u,transitionEnd:c,delay:f}=n,p=function(t,n){if(null==t)return{};var i,e,r={},o=Object.keys(t);for(e=0;e<o.length;e++)i=o[e],n.indexOf(i)>=0||(r[i]=t[i]);return r}(n,["unmountOnExit","in","className","transition","transitionEnd","delay"]),v=l||o?"enter":"exit",x=!o||l&&o,y={transition:u,transitionEnd:c,delay:f};return t.createElement(e,{custom:y},x&&t.createElement(r.div,s({ref:i,className:a("chakra-fade",d),custom:y},m,{animate:v},p)))}));o&&(l.displayName="Fade");export{l as Fade,m as fadeConfig};
//# sourceMappingURL=fade.js.map
