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