import{c as t}from"./p-d5da637d.js";import{g as o}from"./p-cd2253e7.js";import"./p-7cbdb4ea.js";import"./p-03169580.js";
/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const s=(s,c)=>{const n="40px";const i="0px";const r=c.direction==="back";const a=c.enteringEl;const e=c.leavingEl;const p=o(a);const b=p.querySelector("ion-toolbar");const f=t();f.addElement(p).fill("both").beforeRemoveClass("ion-page-invisible");if(r){f.duration(c.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)")}else{f.duration(c.duration||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform",`translateY(${n})`,`translateY(${i})`).fromTo("opacity",.01,1)}if(b){const o=t();o.addElement(b);f.addAnimation(o)}if(e&&r){f.duration(c.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(${i})`,`translateY(${n})`).fromTo("opacity",1,0);f.addAnimation(s)}return f};export{s as mdTransitionAnimation};
//# sourceMappingURL=p-144a49be.js.map