"use client";
import{l as a}from"./chunk-CLTGASR6.js";import{cloneElement as h,forwardRef as P}from"react";import{Transition as b}from"react-transition-group";import{jsx as k}from"react/jsx-runtime";var w={entered:{opacity:1},entering:{opacity:1}},d=P(({addEndListener:p,appear:s=!0,children:e,easing:f,in:n,onEnter:l,onEntered:m,onEntering:y,onExit:E,onExited:c,onExiting:u,style:t,timeout:o,...x},R)=>{let{defaultTimeout:T,handleOnEnter:i,handleRef:F,nodeRef:g}=a({children:e,easing:f,onEnter:l,onExit:E,ref:R,style:t,timeout:o,type:"opacity"});return k(b,{addEndListener:p,appear:s,in:n,nodeRef:g,onEnter:i("enter"),onEntered:m,onEntering:y,onExit:i("exit"),onExited:c,onExiting:u,timeout:o||T,...x,children:r=>h(e,{ref:F,style:{opacity:0,visibility:r==="exited"&&!n?"hidden":void 0,...w[r],...t,...e.props.style}})})});d.displayName="Fade";var O=d;export{O as a};
