import{c as t}from"./p-fa62bb38.js";import{g as o}from"./p-b6b05afd.js";import"./p-f44f0a67.js";import"./p-03169580.js";
/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const s=(s,n)=>{const i="40px";const a="0px";const c=n.direction==="back";const r=n.enteringEl;const e=n.leavingEl;const p=o(r);const b=p.querySelector("ion-toolbar");const f=t();f.addElement(p).fill("both").beforeRemoveClass("ion-page-invisible");if(c){f.duration(n.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)")}else{f.duration(n.duration||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform",`translateY(${i})`,`translateY(${a})`).fromTo("opacity",.01,1)}if(b){const o=t();o.addElement(b);f.addAnimation(o)}if(e&&c){f.duration(n.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const s=t();s.addElement(o(e)).onFinish((t=>{if(t===1&&s.elements.length>0){s.elements[0].style.setProperty("display","none")}})).fromTo("transform",`translateY(${a})`,`translateY(${i})`).fromTo("opacity",1,0);f.addAnimation(s)}return f};export{s as mdTransitionAnimation};
//# sourceMappingURL=p-b8afa92d.js.map