1import{_ as D,a as H,r as n,c as y,D as K,dX as P,e as C,f as m,g as s,w as l,T as I,j as T,t as i,H as O,F as S,l as R,i as o,I as F,s as j,o as v,v as A}from"./kV3UbmWC.js";import{S as E,O as M}from"./DLYgGeFx.js";import{T as U}from"./BTtQ8T53.js";import{_ as X}from"./4ZlFtI0l.js";import"./CH0wpSbt.js";import"./DjhezoFL.js";import"./C8krmiux.js";import"./C8y2i2b6.js";import"./Y2BTtirQ.js";import"./C3Ex1624.js";import"./I5BtFwJl.js";import"./BLItm3Mv.js";import"./75aSrvi5.js";import"./oi1Cz4vz.js";import"./BGKs7_5k.js";import"./B0T2cu8x.js";import"./BVff-mrc.js";import"./CMoQShzS.js";import"./CHIgUVhi.js";import"./1qp4lU9x.js";import"./DK8T1uMC.js";const q={class:"History"},G={class:"proxy_list"},J={class:"search"},Q={class:"state"},W={class:"table_emply"},Y={__name:"history",setup(Z){const{t:u}=H(),r=n(),g=n([]),c=n(1),h=n(8),w=n(0);let _=n(!1);const k=y(()=>[0,1,2,3,4].map(e=>({label:b(e),value:e}))),$=y(()=>[{title:u("user.rewardCenterTab.t3"),colKey:"task_key",width:180},{title:u("user.rewardCenterTab.t4"),colKey:"reward_amount",width:140},{title:u("user.rewardCenterTab.t5"),colKey:"completed_at",width:220,cell:(e,{row:t})=>t.completed_at?new Date(t.completed_at*1e3).toLocaleDateString():"--"},{title:u("user.residentialTab.order.table[5]"),colKey:"status",width:180}]),z=e=>e==0?"running":e==1?"reviewing":e==2?"success":e==3?"error":"cancel",b=e=>{const t=`s${e}`;return u(`user.rewardCenterTab.recordStatus.${t}`)},L=()=>{c.value=1,f()},V=e=>{c.value=e.current,f()};K(()=>{f()});const f=async()=>{_.value=!0;const e={page:c.value,size:h.value};r.value!==void 0&&r.value!==null&&r.value!==""&&(e.status=r.value),await P(e).then(t=>{var d,p;t.code==200&&(g.value=((d=t.data)==null?void 0:d.list)||[],w.value=((p=t.data)==null?void 0:p.total_count)??0)}).finally(()=>{_.value=!1})};return(e,t)=>{const d=I,p=O,N=M,x=E,B=U;return v(),C(S,null,[m(p,null,{default:l(()=>[m(d,null,{default:l(()=>[T(i(e.$t("user.rewardCenterTab.t2"))+" - ProxyLite",1)]),_:1})]),_:1}),s("div",q,[s("div",G,[s("div",J,[m(x,{modelValue:o(r),"onUpdate:modelValue":t[0]||(t[0]=a=>F(r)?r.value=a:null),class:"input",clearable:"",placeholder:e.$t("user.rewardCenterTab.status")},{default:l(()=>[(v(!0),C(S,null,R(o(k),a=>(v(),A(N,{key:a.value,value:a.value,label:a.label},{default:l(()=>[T(i(a.label),1)]),_:2},1032,["value","label"]))),128))]),_:1},8,["modelValue","placeholder"]),s("div",{class:"button",onClick:L},i(e.$t("help.Search")),1)]),m(B,{"row-key":"id",data:o(g),columns:o($),pagination:{current:o(c),pageSize:o(h),total:o(w),showPageSize:!1,totalContent:!1},loading:o(_),onPageChange:V},{reward_amount:l(({row:a})=>[s("span",null,"$"+i(a.reward_amount??0),1)]),status:l(({row:a})=>[s("div",Q,[s("b",{class:j(z(a.status))},null,2),s("span",null,i(b(a.status)),1)])]),empty:l(()=>[s("div",W,[t[1]||(t[1]=s("img",{loading:"lazy",width:"80",height:"80",src:X,alt:"ProxyLite"},null,-1)),s("p",null,i(e.$t("user.rewardCenterTab.empty")),1)])]),_:1},8,["data","columns","pagination","loading"])])])],64)}}},ye=D(Y,[["__scopeId","data-v-23e95cfa"]]);export{ye 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.