/* sohutv 2025-06-12 19:20:52 */ import{_ as l}from"./lazyload-B-cG4Yvq.js";import{b as e,f as p,i as s,d as _,r as m,o as T,e as f,l as u,m as h}from"./vendor-CDgHT6Qw.js";const v={},w={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"8",fill:"none"};function x(a,o){return s(),e("svg",w,o[0]||(o[0]=[p("path",{fill:"currentColor",d:"M1.944 5.829C1.193 6.668 1.788 8 2.914 8h8.26c1.112 0 1.712-1.303.99-2.148L8.13 1.132a1.302 1.302 0 0 0-1.96-.023z"},null,-1)]))}const C=l(v,[["render",x]]),b={class:"to-top"},g=100,V=_({__name:"ToTop",setup(a){const o=m(!1),t=document.body,d=()=>t.scrollTop,n=()=>{const r=d();o.value=r>g},i=()=>{t.scrollTo({top:0,behavior:"smooth"})};return T(()=>{t.addEventListener("scroll",n),n()}),(r,c)=>(s(),e("div",b,[o.value?(s(),e("div",{key:0,onClick:i,class:"to-top-button"},[u(C,{class:"icon"}),c[0]||(c[0]=h(" 椤堕儴 "))])):f("",!0)]))}}),B=l(V,[["__scopeId","data-v-7a85f079"]]);export{B as T};