import t from"react";import{usePopoverContext as r}from"./popover-context.js";import{motion as e}from"../../../../framer-motion/dist/es/render/dom/motion.js";import{chakra as i}from"../../../system/dist/esm/system.js";import n from"../../../../lodash.mergewith/index.js";function o(){return(o=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t}).apply(this,arguments)}var a=t=>{if(t)return n(t,{enter:{visibility:"visible"},exit:{transitionEnd:{visibility:"hidden"}}})},s=e(i.section),m=t.forwardRef(((e,i)=>{var{isOpen:n}=r();return t.createElement(s,o({ref:i,variants:a(e.variants)},e,{initial:!1,animate:n?"enter":"exit"}))}));m.defaultProps={variants:{exit:{opacity:0,scale:.95,transition:{duration:.1,ease:[.4,0,1,1]}},enter:{scale:1,opacity:1,transition:{duration:.15,ease:[0,0,.2,1]}}}};export{m as PopoverTransition};
//# sourceMappingURL=popover-transition.js.map
