import{N as s,I as n,o as l,e as r,f as c}from"./vendor-wgE37vvX.js";const a=c("i",{class:"mi-chevron-u"},null,-1),i=[a],w=s({__name:"ButtonScrollUp",setup(d){const t=()=>{window.scrollTo({top:0,behavior:"smooth"})},e=()=>{const o=document.querySelector(".btn-scroll-up");o&&(window.scrollY>window.innerHeight/2?o.classList.add("btn-scroll-up-show"):o.classList.remove("btn-scroll-up-show"))};return n(()=>{window.addEventListener("scroll",e)}),(o,p)=>(l(),r("button",{type:"button",class:"btn btn-scroll-up btn-gradient btn-warning shadow p-3 stretched-link rounded-pill border-0 fixed","aria-label":"scroll up",onClick:t},i))}});export{w as default};