import{c as t}from"./p-964e0f9d.js";import{g as o}from"./p-bbf892df.js";import"./p-6da8225a.js";import"./p-d00c3523.js";
/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const r=(r,a)=>{const i="back"===a.direction,s=a.leavingEl,p=o(a.enteringEl),e=p.querySelector("ion-toolbar"),n=t();if(n.addElement(p).fill("both").beforeRemoveClass("ion-page-invisible"),i?n.duration(a.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):n.duration(a.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(s&&i){n.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),n.addAnimation(r)}return n};export{r as mdTransitionAnimation}