import{b as i}from"./chunk-SM2GS6OU.js";import{g as a}from"./chunk-OKF5LGRG.js";import{j as c}from"./chunk-FB5LSH2R.js";var l="ion-content",t=".ion-content-scroll-host",u="".concat(l,", ").concat(t),o=e=>e.tagName==="ION-CONTENT",p=e=>c(null,null,function*(){return o(e)?(yield new Promise(r=>i(e,r)),e.getScrollElement()):e}),h=e=>e.querySelector(t)||e.querySelector(u),v=e=>e.closest(u),f=e=>e.querySelector(t),P=e=>{if(o(e))return e.querySelector("ion-refresher");let r=e.closest(l);if(r===null)return null;let s=f(r);return s!==null&&s.contains(e)?r.querySelector("ion-refresher"):null},S=(e,r)=>o(e)?e.scrollToTop(r):Promise.resolve(e.scrollTo({top:0,left:0,behavior:"smooth"})),q=(e,r,s,n)=>o(e)?e.scrollByPoint(r,s,n):Promise.resolve(e.scrollBy({top:s,left:r,behavior:n>0?"smooth":"auto"})),T=e=>a(e,l),w=e=>{if(o(e)){let r=e.scrollY;return e.scrollY=!1,r}return e.style.setProperty("overflow","hidden"),!0},N=(e,r)=>{o(e)?e.scrollY=r:e.style.removeProperty("overflow")};export{o as a,p as b,h as c,v as d,P as e,S as f,q as g,T as h,w as i,N as j};
