PageSourceSearch

https://pleex.com/build/assets/useCursorInfiniteScrollBasic2-DY0czEzH.js

js pleex.com collected 2026-10-01 23:46:12 UTC 2,083 bytes, 1 lines download raw bytes

1import{u as C,a as _}from"./CacheStore-CY6wkfvK.js";import{d as A}from"./debounce-xgt6Witk.js";import{a,w as P,d as R,aj as q}from"./AchRHcpRHQ-DfxZvTuy.js";function K(E){const p=a(null),o=a(E),n=a(o.value),t=a(),L=a({total:0,current_page:0,last_page:0}),l=a([]),r=a(""),v=a(!1);let I=!0,g=!1,i=!0,w=!1,S=!1,M=!1,U=0,f=a(!1);const d=C("restore",o.value),x=C("init",o.value);try{let T=function(e=null){l.value.push(...e)},y=function(e){let u=l.value.findIndex(O=>O.uuid===e.uuid);u!==-1&&l.value.splice(u,1)},j=function(e){b||(b=window.top.scrollY,window.removeEventListener("scroll",j))};const s=d.getList("restore"),m=x.getList("init"),Y=e=>{L.value=e.meta,T(e.data)},h=()=>{m&&m.objects&&(i=!0,t.value=m.objects,n.value=o.value,Y(t.value),g=!0)};s?(M=!0,n.value=s.nextUrl,t.value=s.objects,L.value=t.value.meta,l.value=s.objectsData,r.value=s.search,s.scrollY&&(U=s.scrollY,setTimeout(()=>{window.scrollTo(0,U)},100)),i=!1,g=!0,d.remove("restore")):m&&h();const B=()=>{d.add("restore",{nextUrl:n.value,objects:t.value,objectsData:l.value,search:r.value,scrollY:window.scrollY})},c=()=>{if(n.value===null&&!v.value){v.value=!1;return}v.value=!0;let e=n.value;e&&(f.value=!0,axios.post(e,{search:r.value}).then(u=>{w&&(t.value=null,l.value=[],w=!1),t.value=u.data,i&&(l.value=[],i=!1),Y(t.value),t.value.links&&(n.value=t.value.links.next,I&&(I=!1,e===o.value&&x.add("init",{objects:t.value}))),v.value=!1}).then(()=>{k(),f.value=!1}).catch(function(u){console.log(u),f.value=!1}))},{observer:z,observe:D,disconnect:F}=_(p,c,{rootMargin:"0px 0px 100px 0px"}),k=()=>{S||(p.value!==null&&D(),S=!0)};P(r,A(function(e){w=!0,n.value=o.value,e===""&&h(),c()},300));const N=e=>{o.value=e,n.value=o.value,t.value=null,l.value=[],c()};let b=null;return R(()=>{window.addEventListener("scroll",j),i?c():(k(),M||setTimeout(()=>{b||(h(),c())},100))}),q(()=>{window.removeEventListener("scroll",j),F()}),{nextMark:p,searchObject:r,objectsData:l,meta:L,clickInfiniteItem:B,resetLoad:N,deleteItemFromList:y,isLoading:f}}catch(s){console.log(s),d.remove("restore"),x.remove("init")}}export{K as u};

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.