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