import{c as t}from"./p-fa62bb38.js";import{g as o}from"./p-c28b0ebf.js";import"./p-f44f0a67.js";import"./p-f8363b1b.js";
/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const r=(r,a)=>{const i="back"===a.direction,s=a.leavingEl,p=o(a.enteringEl),b=p.querySelector("ion-toolbar"),e=t();if(e.addElement(p).fill("both").beforeRemoveClass("ion-page-invisible"),i?e.duration(a.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):e.duration(a.duration||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(40px)","translateY(0px)").fromTo("opacity",.01,1),b){const o=t();o.addElement(b),e.addAnimation(o)}if(s&&i){e.duration(a.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const r=t();r.addElement(o(s)).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),e.addAnimation(r)}return e};export{r as mdTransitionAnimation}