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