PageSourceSearch

https://godguess.com/_nuxt/C59rsaQE.js

js godguess.com collected 2026-10-08 09:54:17 UTC 2,625 bytes, 1 lines download raw bytes

1import{_ as F}from"./COcauKXt.js";import{_ as D,a as N}from"./CryMM4HC.js";import{q as O,Y as P,u as R,a4 as _,W as T,bk as V,c8 as Y,c,b as G,i as t,f,j as k,a as p,F as S,r as U,$ as W,v as q,E as z,a3 as H,o as l,x as h}from"./CZFxAyXy.js";import{j as y}from"./D54vuVuJ.js";import{b as I,u as J}from"./3oggnzq2.js";import{a as K}from"./BH8WKn8Y.js";import{a as Q}from"./DliqZo7O.js";import"./DPXYwrOm.js";import"./pgYj9SwA.js";const X={class:"w-full h-full relative"},Z={class:"px-4"},ee={class:"relative z-2 max-w-8xl mx-auto py-4 grid grid-cols-2 sm:grid-cols-3 gap-3 md:grid-cols-3 lg:grid-cols-5"},ae={key:0,class:"max-w-8xl mx-auto pb-8 flex justify-center"},te=["disabled"],se={key:0},oe={key:1},ge={__name:"closing",async setup(le){let i,v;const{marketList:a,page:m,scrollY:g,total:d,clear:x}=I(),{updateUrl:w}=J(),b=H("globalMessage"),M=O(),{data:s,pending:n,refresh:L}=([i,v]=P(async()=>W("market-closing",async()=>{if(a.value.length>0)return{_cached:!0};const e=await y({status:"preOpen,listed,paused",order:"closedAt:asc",page:m.value,count:24});return e.success?e:null},{getCachedData:Q})),i=await i,v(),i),C=z(()=>!n.value&&a.value.length===0&&!s.value?.success);R({title:"即將截止"}),s.value?.success&&a.value.length===0&&(a.value=s.value?.data,d.value=s.value?.total),_(n,e=>{!e&&s.value?.success&&a.value.length===0&&(a.value=s.value?.data,d.value=s.value?.total)});const r=q(!1);async function $(){r.value=!0;const e=await y({status:"preOpen,listed,paused",order:"closedAt:asc",page:m.value,count:24});e.success&&(a.value=[...a.value,...e.data],d.value=e.total),r.value=!1}T(()=>{V(()=>{window.scrollTo({top:g.value,behavior:"auto"})})}),Y(e=>{e.name=="event-id"?g.value=window.scrollY:x()}),_(b,e=>{K([a.value],e)});function B(e,o){w(M.fullPath),o?h(`/event/${e.slug}?choice=${o.id}`):h(`/event/${e.slug}`)}return(e,o)=>{const j=F,A=D,E=N;return l(),c("div",X,[G(j,{loading:t(n)||t(r)},null,8,["loading"]),t(C)?(l(),f(A,{key:0,message:"話題列表載入失敗,請稍後再試。",loading:t(n),onRetry:o[0]||(o[0]=u=>t(L)())},null,8,["loading"])):k("",!0),p("div",Z,[p("ul",ee,[(l(!0),c(S,null,U(t(a).filter(u=>["preOpen","listed","paused"].includes(u.status)),u=>(l(),f(E,{key:u.id,market:u,type:"closingSoon",onGoEvent:B},null,8,["market"]))),128))]),t(a).length<t(d)?(l(),c("div",ae,[p("button",{class:"bg-primary text-primary-content py-2 rounded-md min-w-40 hover:cursor-pointer hover:bg-primary/80 text-sm",disabled:t(r)||t(n),onClick:o[1]||(o[1]=()=>{m.value++,$()})},[t(r)?(l(),c("span",oe,"載入中...")):(l(),c("span",se,"載入更多"))],8,te)])):k("",!0)])])}}};export{ge 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.