1import{_ as V}from"./leaderboard-empty-icon-DZR3wbQG.js";import{d as b,_ as g,b as w,T as B,A as F}from"./index-BLmIoE7D.js";import{Y as N}from"./YesSkewRect-CnIUZlVA.js";import{d as k,t as P,x as t,E as x,G as h,z as s,u as e,Y as v,c as L,k as m,a7 as T,a8 as j,y as i,ai as z,F as $,a3 as H,ah as A,aj as E,_ as G,a5 as M,r as y}from"./vue-DB6xC8oM.js";import{u as W}from"./useFriendList-BVZkx2d0.js";const q={class:"history-content"},O={class:"history-left"},U=["src"],J={class:"history-detail"},K={class:"history-type"},Q={class:"history-date"},X=k({__name:"index",props:{icon:{},nameWithCount:{},gmtCreateDate:{}},setup(p){const r=p,{icon:c,nameWithCount:f,gmtCreateDate:o}=P(r),d=L(()=>b(o.value).format("YYYY/MM/DD HH:mm"));return(l,C)=>(t(),x(N,{class:"history-item",theme:"white",bold:!0,"skew-rotate":-5},{default:h(()=>[s("div",q,[s("div",O,[s("img",{class:"history-icon",src:e(c)},null,8,U),s("div",J,[s("p",K,v(e(f)),1),s("p",Q,v(d.value),1)])])])]),_:1}))}}),Z=g(X,[["__scopeId","data-v-e78d1e29"]]),ee=k({__name:"index",setup(p){return(r,c)=>(t(),x(e(j),{class:"list-skeleton-item",loading:""},{template:h(()=>[m(e(T),{class:"paragraph-column"})]),_:1}))}}),te=g(ee,[["__scopeId","data-v-ecb18593"]]),se={class:"main"},ae={class:"main-title"},oe={key:0,class:"skeleton-list"},ie={key:1,class:"empty-list"},ne={key:2,class:"history-list"},re={key:0,class:"content-padding"},le=k({__name:"index",setup(p){const{t:r}=w(),c=y({}),f=y(!1),o=y(!1),{data:d,isFetching:l,refresh:C,toNext:R,finished:S}=W(({index:_,pageSize:a})=>F.treasury.scratchHistoryList({index:_,pageSize:a}),{immediate:!0}),u=L(()=>d.value?d.value:[]);function D(){o.value=!0,C()?.finally(()=>{o.value=!1})}function I(_){c.value=_,f.value=!0}return(_,a)=>(t(),i("div",se,[a[2]||(a[2]=s("div",{class:"main-bg"},null,-1)),s("div",{class:"main-content",style:M({paddingTop:`${e(B).navigationBarHeight}px`})},[s("p",ae,v(e(r)("scratch.history.title")),1),m(e(E),{modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=n=>o.value=n),class:"list-section",onRefresh:D},{default:h(()=>[m(e(z),{"model-value":e(l),finished:!e(l)&&e(S),offset:116,"finished-text":e(r)("common.finished"),onLoad:e(R)},{default:h(()=>[e(l)&&u.value.length===0?(t(),i("div",oe,[(t(),i($,null,H(4,n=>m(te,{key:n,loading:""})),64))])):!o.value&&!e(l)&&u.value.length===0?(t(),i("div",ie,[...a[1]||(a[1]=[s("img",{class:"empty-icon",src:V},null,-1)])])):(t(),i("div",ne,[(t(!0),i($,null,H(u.value,(n,Y)=>(t(),x(Z,A({key:Y},{ref_for:!0},n,{onClick:ce=>I(n)}),null,16,["onClick"]))),128))]))]),_:1},8,["model-value","finished","finished-text","onLoad"])]),_:1},8,["modelValue"]),u.value.length<=4?(t(),i("div",re)):G("",!0)],4)]))}}),pe=g(le,[["__scopeId","data-v-4ef2ad42"]]);export{pe 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.