PageSourceSearch

https://ope.ai/_nuxt/BoYg6omx.js

js ope.ai collected 2026-10-05 12:23:14 UTC 1,834 bytes, 1 lines download raw bytes

1import{l as j,c as n,a as o,C as f,b as l,v as i,H as D,I as L,G as e,F as y,w as c,V as u,o as t,aD as p,t as k,E as S,D as V}from"./CoUfvyTL.js";import{_ as z}from"./DK0MM0KO.js";import{_ as q}from"./DRTjqudx.js";const w={class:"flex items-center justify-center"},E={class:"text-gray-500"},G={class:"grid place-items-center gap-y-3 py-4"},H={class:"text-red-400 text-sm font-bold"},M={key:0,class:"flex items-center justify-center my-8"},O=j({__name:"infinite-list-primitive",props:{query:{},getId:{type:Function},pt:{}},setup(I){const{data:m,error:_,hasNextPage:g,isFetching:a,refetch:$,fetchNextPage:C}=I.query;function N(){a.value||!g.value||C()}return(s,r)=>{var h,v,x;const B=S,F=V,P=z,b=q;return t(),n("section",null,[o("ul",{class:y((h=s.pt)==null?void 0:h.ul)},[(t(!0),n(D,null,L(e(m),d=>(t(),n("li",{key:s.getId(d)},[(t(),i(u,null,{default:c(()=>[p(s.$slots,"item",{hasNextPage:e(g),isFetching:e(a),item:d})]),_:2},1024))]))),128)),e(m)&&!e(m).length&&!e(a)?(t(),n("li",{key:0,class:y(["col-span-full",(v=s.pt)==null?void 0:v.empty])},[(t(),i(u,null,{default:c(()=>[p(s.$slots,"empty",{},()=>[o("div",w,[o("p",E,k(s.$t("market.noData")),1)])])]),_:3}))],2)):f("",!0),e(_)?(t(),n("li",{key:1,class:y(["col-span-full",(x=s.pt)==null?void 0:x.error])},[(t(),i(u,null,{default:c(()=>[p(s.$slots,"error",{error:e(_)},()=>[o("div",G,[l(B,{class:"text-red-400",size:"48",name:"heroicons:exclamation-circle"}),o("p",H,k(e(_).message),1),l(F,{size:"small",label:"重试",pt:{root:"px-3 py-1"},onClick:r[0]||(r[0]=d=>e($)())})])])]),_:3}))],2)):f("",!0)],2),e(a)?(t(),n("div",M,[l(P,{class:"flex items-center justify-center"})])):f("",!0),l(b,{onLoad:N}),r[1]||(r[1]=o("div",{class:"h-8"},null,-1)),(t(),i(u,null,{default:c(()=>[p(s.$slots,"footer")]),_:3}))])}}}),Q=Object.assign(O,{__name:"InfiniteListPrimitive"});export{Q as _};

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.