import{M as k}from"./MkNote-RPFbRjy2.js";import{_ as x}from"./MkDateSeparatedList.vue_vue_type_style_index_0_lang-87CjANkN.js";import{M as E}from"./MkPagination-DzUgufpZ.js";import{c as M,b as y,ae as I,v as T,_ as N}from"./app-QjDgb7aF.js";import{b as C,a,c as b,Y as B,o as G,a5 as S,g as d,i as r,q as s,x as q,k as w,u as f,D,j as p}from"./vue-Cm77DuTi.js";const H={class:"_fullinfo"},V=["src"],X=C({__name:"MkNotes",props:{pagination:{},noGap:{type:Boolean}},setup(e,{expose:v}){const i=a(),l=a(),t=a(),c=a(document.documentElement.clientHeight*-.5);function g(){i.value&&I(i.value,{top:0,behavior:"smooth"})}function m(){t.value||!T.state.enableInfiniteScroll||(t.value=setInterval(()=>{const o=document.documentElement.clientHeight;document.documentElement.scrollHeight-document.documentElement.scrollTop>Math.max(o*3,o+4e3)||document.documentElement.scrollTop-c.value<o||(l.value.prefetchMore(),c.value=document.documentElement.scrollTop)},100))}function u(){t.value&&(clearInterval(t.value),t.value=void 0)}return b(m),B(m),G(u),S(u),v({pagingComponent:l,scrollTop:g}),(o,_)=>(p(),d(E,{ref_key:"pagingComponent",ref:l,pagination:e.pagination},{empty:r(()=>[s("div",H,[s("img",{src:f(M).images.info,class:"_ghost",alt:"Info"},null,8,V),s("div",null,D(f(y).ts.noNotes),1)])]),default:r(({items:h})=>[s("div",{class:q(["giivymft",{noGap:e.noGap}]),ref_key:"tlEl",ref:i},[w(x,{ref:"notes",items:h,direction:e.pagination.reversed?"up":"down",reversed:e.pagination.reversed,"no-gap":e.noGap,class:"notes"},{default:r(({item:n})=>[(p(),d(k,{key:n._featuredId_||n._prId_||n.id,class:"qtqtichx",note:n},null,8,["note"]))]),_:1},8,["items","direction","reversed","no-gap"])],2)]),_:1},8,["pagination"]))}}),U=N(X,[["__scopeId","data-v-fe034336"]]);export{U as X};
//# sourceMappingURL=MkNotes-DrVlMmnc.js.map
