1import{u as A,a as I,j as e,p as O}from"./BAV34SQA.js";import{g as C,Q as N,y as H,u as R,cC as o,a7 as c,a8 as L,f as x,cD as w,at as D,m as P,cE as V,a4 as Y,cF as h}from"./ILpXaSKq.js";import{c5 as M}from"./DO3IEkff.js";import{S as W}from"./DqNPeoye.js";import{S as k}from"./C1zynBzf.js";import{S as z}from"./Djm8L35o.js";import{A as F,L as v,c as G}from"./CQiBETs9.js";import"./DcjO-8Sp.js";import"./Cw1sBk8H.js";import"./UHi_-Dcr.js";import"./CSXxEOMA.js";import"./DUKvJ0K4.js";import"./Dye6Zp7H.js";import"./BJ9p-46o.js";import"./D15qoMPN.js";import"./C5UU4ws7.js";const X=async t=>{try{return(await W.vipController.getVipHistory(t)).data}catch(s){throw s}},B=(t,s)=>{var l;return A(N.STATISTICS.vipHistory(t),()=>X(t),{enabled:(l=s==null?void 0:s.enabled)!=null?l:!!t,staleTime:1/0,onSuccess:i=>{s!=null&&s.onSuccess&&s.onSuccess(i)},onError:i=>{i instanceof M.AxiosError&&C(i),s!=null&&s.onError&&s.onError(i)}})};function Q(){return P(t=>({isLogin:t.auth.isLogin,isWebview:t.deviceInfo.isWebview}))}const me=()=>{const{isLogin:t,isWebview:s}=Q(),{string:a}=H(),l=R(),[i,S]=I.useState(0),_=V,u=new Date().getFullYear(),p=Array.from({length:u-_+1},(r,n)=>u-n),m=()=>{l(Y())},{data:d}=B(p[i],{enabled:t&&s});if(!d)return null;const{results:y}=d,f=r=>{S(r)},j=r=>String(Number(r.split("-")[1]));return e.jsx("div",{className:"tw-scope",children:e.jsx(o.Root,{open:!0,onOpenChange:r=>{r||m()},children:e.jsxs(o.Panel,{maxWidth:"672px",maxHeight:"678px",overlayClassName:"z-modal",children:[e.jsxs(o.Header,{className:"justify-between",children:[e.jsxs("div",{className:"flex flex-col",children:[e.jsx(o.Title,{className:"sr-only",children:a.vip_level_history}),e.jsx(c,{variant:"m700",color:"primary",value:a.vip_level_history}),e.jsx(c,{variant:"xs400",color:"primary",value:a.popup_vip_level_history_subtitle})]}),e.jsx(L,{title:"close",size:"large",onClick:m,ghost:!0,children:e.jsx(O,{size:"l"})})]}),e.jsx(o.Content,{children:e.jsxs(F,{children:[e.jsx(z,{segmentedControls:p.map(r=>({label:String(r),value:String(r)})),size:"M",variant:k.SOLID_ROUND,onClickTab:f,activeIndex:i}),e.jsx(v,{children:y.map(({aggregationDate:r,rank:n,vipGrade:g})=>{const T=n>h?`${h}+`:`${n}`;return e.jsxs(v,{children:[e.jsx(c,{value:x(a.utils_month,{OOOO:j(r)}),variant:"ms700",asElement:"p",color:"primary"}),e.jsx("div",{children:x(a.popup_vip_level_history_detail,{OOOO:a[w[g].label],XXXX:T}).split(` 2`).map((E,b)=>e.jsx(c,{value:E,variant:"s400",asElement:"p",color:"primary",style:G},b))})]},r)})})]})}),e.jsx(o.Footer,{className:"border-border-tertiary",children:e.jsx(D,{title:"confirm",outline:!0,onClick:m,fullWidth:!0,children:a.common_ok})})]})})})};export{me as default}; 3//# sourceMappingURL=CEw58jgi.js.map
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.