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