import { r, x } from "./chunk-NEPL4PF4.js"; // node_modules/@ionic/core/components/p-CU1SSH8_.js var i = (i2, r2) => { var a, n, s; const c = "40px", e = "back" === r2.direction, l = r2.leavingEl, p = x(r2.enteringEl), b = p.querySelector("ion-toolbar"), u = r(); if (u.addElement(p).fill("both").beforeRemoveClass("ion-page-invisible"), e ? u.duration((null !== (a = r2.duration) && void 0 !== a ? a : 0) || 200).easing("cubic-bezier(0.47,0,0.745,0.715)") : u.duration((null !== (n = r2.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", 0.01, 1), b) { const t = r(); t.addElement(b), u.addAnimation(t); } if (l && e) { u.duration((null !== (s = r2.duration) && void 0 !== s ? s : 0) || 200).easing("cubic-bezier(0.47,0,0.745,0.715)"); const i3 = r(); i3.addElement(x(l)).onFinish(((o) => { 1 === o && i3.elements.length > 0 && i3.elements[0].style.setProperty("display", "none"); })).fromTo("transform", "translateY(0px)", `translateY(${c})`).fromTo("opacity", 1, 0), u.addAnimation(i3); } return u; }; export { i }; /*! Bundled license information: @ionic/core/components/p-CU1SSH8_.js: (*! * (C) Ionic http://ionicframework.com - MIT License *) */ //# sourceMappingURL=chunk-TVKJKZCT.js.map