import{c as t}from"./p-48f72e63.js";import{g as o}from"./p-00d10dc9.js";import"./p-d68092b7.js";import"./p-ee1e0eb4.js";
/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const r=(r,e)=>{const i="back"===e.direction,a=e.leavingEl,s=o(e.enteringEl),p=s.querySelector("ion-toolbar"),n=t();if(n.addElement(s).fill("both").beforeRemoveClass("ion-page-invisible"),i?n.duration(e.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):n.duration(e.duration||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(40px)","translateY(0px)").fromTo("opacity",.01,1),p){const o=t();o.addElement(p),n.addAnimation(o)}if(a&&i){n.duration(e.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const r=t();r.addElement(o(a)).onFinish((t=>{1===t&&r.elements.length>0&&r.elements[0].style.setProperty("display","none")})).fromTo("transform","translateY(0px)","translateY(40px)").fromTo("opacity",1,0),n.addAnimation(r)}return n};export{r as mdTransitionAnimation}