1import{_ as y}from"./C-lSUrF7.js";import{_ as w}from"./B9iJQeb-.js";import{u as B,r as s,n as b,g as H,o as r,c as n,a as N,I as k,J as L,b as v,K as c,H as A,W as C}from"./HrqejFgF.js";import{u as I}from"./g02oWSPl.js";const S={class:"w-full grid gap-[15px] md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 grid-cols-2"},V={key:0,class:"w-full h-[100px] flex justify-center items-center"},T={__name:"[id]",setup(j){const _=I(),g=B(),l=s(1),x=s(50),t=s([]);b(async()=>{u()});const a=s(!1);async function u(){a.value=!0;const e=await _.getGalleryByCharacter({characterId:g.params.id,pageNum:l.value,pageSize:x.value});a.value=!1,e&&(t.value=t.value.concat(e.content),e.totalPages<=l.value&&(m.value=!0))}const m=s(!1),d=C(async function(e){const o=e.target.scrollTop||e.target.scrollTop;if(!m.value&&!a.value&&t.value.length>0){const i=e.target.clientHeight,p=e.target.scrollHeight;o+i>=p-300&&(l.value++,a.value=!0,u())}},100);return H(g,e=>{l.value=1,t.value=[],e.params.id&&u()}),(e,o)=>{const i=y,p=w;return r(),n("div",{class:"w-full h-full sm:px-[40px] sm:py-[30px] px-[20px] py-[15px] overflow-auto",onScroll:o[0]||(o[0]=(...f)=>c(d)&&c(d)(...f))},[N("ul",S,[(r(!0),n(k,null,L(c(t),(f,h)=>(r(),n("div",{class:"w-full relative",key:h},[v(i,{src:f.imgUrl,preview:"",class:"w-full h-full object-cover rounded-[8px]"},null,8,["src"])]))),128))]),c(a)?(r(),n("div",V,[v(p)])):A("",!0)],32)}}};export{T as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.