import"./p-16af9415.js";import"./p-9825fcb7.js";import"./p-b8fa4923.js";import{c as t}from"./p-9fb22081.js";import"./p-e4d75972.js";import{g as o}from"./p-40b3528a.js";const r=(r,i)=>{const a="back"===i.direction,p=i.leavingEl,s=o(i.enteringEl),e=s.querySelector("ion-toolbar"),n=t();if(n.addElement(s).fill("both").beforeRemoveClass("ion-page-invisible"),a?n.duration(i.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):n.duration(i.duration||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(40px)","translateY(0px)").fromTo("opacity",.01,1),e){const o=t();o.addElement(e),n.addAnimation(o)}if(p&&a){n.duration(i.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const r=t();r.addElement(o(p)).afterStyles({display:"none"}).fromTo("transform","translateY(0px)","translateY(40px)").fromTo("opacity",1,0),n.addAnimation(r)}return n};export{r as mdTransitionAnimation};