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