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 s}from"../../../utils/dist/esm/dom.js";function a(){return(a=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 l={initial:"initial",animate:"enter",exit:"exit",variants:{initial:t=>{var e,{offsetX:r,offsetY:o,transition:s,transitionEnd:a,delay:l}=t;return{opacity:0,x:r,y:o,transition:null!=(e=null==s?void 0:s.exit)?e:n.exit(i.exit,l),transitionEnd:null==a?void 0:a.exit}},enter:t=>{var e,{transition:r,transitionEnd:o,delay:s}=t;return{opacity:1,x:0,y:0,transition:null!=(e=null==r?void 0:r.enter)?e:n.enter(i.enter,s),transitionEnd:null==o?void 0:o.enter}},exit:t=>{var e,{offsetY:r,offsetX:o,transition:s,transitionEnd:l,reverse:f,delay:d}=t,m={x:o,y:r};return a({opacity:0,transition:null!=(e=null==s?void 0:s.exit)?e:n.exit(i.exit,d)},f?a({},m,{transitionEnd:null==l?void 0:l.exit}):{transitionEnd:a({},m,null==l?void 0:l.exit)})}}},f=t.forwardRef(((n,i)=>{var{unmountOnExit:o,in:f,reverse:d=!0,className:m,offsetX:u=0,offsetY:v=8,transition:c,transitionEnd:x,delay:p}=n,y=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","reverse","className","offsetX","offsetY","transition","transitionEnd","delay"]),E=!o||f&&o,j=f||o?"enter":"exit",O={offsetX:u,offsetY:v,reverse:d,transition:c,transitionEnd:x,delay:p};return t.createElement(e,{custom:O},E&&t.createElement(r.div,a({ref:i,className:s("chakra-offset-slide",m),custom:O},l,{animate:j},y)))}));o&&(f.displayName="SlideFade");export{f as SlideFade,l as slideFadeConfig};
//# sourceMappingURL=slide-fade.js.map
