PageSourceSearch

https://user.tikhub.io/assets/AdminAlipayWhitelist-BTisds0b.js

js tikhub.io collected 2026-10-03 22:56:22 UTC 6,471 bytes, 1 lines download raw bytes

1import{b as P,r as i,bj as j,j as x,p as z,v as B,I as E,B as b,d as L,O as U,C as O,V as Q,y as m}from"./index-CjJlg5IG.js";import{B as $}from"./badge-CPZdGc_N.js";import{T as q,a as G,b as y,c as h,d as J,e as d}from"./table-BBfZrtaJ.js";import{C as M}from"./credit-card-B4lnB-YB.js";import{P as V}from"./plus-C_giMoe8.js";import{R as X}from"./rotate-ccw-CJJlHHnl.js";import{T as Y}from"./trash-2-DlkAJqPA.js";import{C as Z}from"./chevron-left-DF10rNpC.js";(function(e,l){const s=r,c=e();for(;;)try{if(parseInt(s(206))/1+-parseInt(s(199))/2+parseInt(s(194))/3*(parseInt(s(196))/4)+parseInt(s(170))/5*(parseInt(s(179))/6)+-parseInt(s(191))/7*(-parseInt(s(165))/8)+-parseInt(s(228))/9*(-parseInt(s(220))/10)+-parseInt(s(166))/11===l)break;c.push(c.shift())}catch{c.push(c.shift())}})(_,169931);const ee=(function(){let e=!0;return function(l,s){const c=e?function(){if(s){const o=s.apply(l,arguments);return s=null,o}}:function(){};return e=!1,c}})(),v=ee(void 0,function(){const e=r;return v[e(186)]()[e(178)](e(200))[e(186)]()[e(157)](v).search("(((.+)+)+)+$")});v();function r(e,l){const s=_();return r=function(c,o){return c=c-137,s[c]},r(e,l)}function _(){const e=["Add failed","response","relative","div","已重置","10aiZFme","p-0","trim","输入邮箱地址...","Remove failed","Page","text-sm font-medium","重置失败","2463192lhRpXH","Alipay Whitelist","Added successfully","outline","key","text-sm","Last Reset","flex-1","message","添加成功","暂无记录","pl-10","Email","w-12 h-12 text-destructive mx-auto mb-4","Status","flex items-center justify-center gap-4","flex items-center gap-3","resetUsage","target","Usage","添加失败","已启用","每日限额","getWhitelist","secondary","value","text-center py-8 text-muted-foreground","Search email...","total_pages","user_email","Actions","w-6 h-6 text-accent","constructor","重置使用量","Daily Limit","p-4","text-sm text-muted-foreground","data","last_reset_date","text-xs","40GNdBvS","8651027FRRbEI","Failed to load whitelist","flex gap-3","isArray","5azyBYm","is_whitelisted","Add","Remove","w-4 h-4 mr-2","Enter email address...","Reset failed","addToWhitelist","search","1518582MFNdes","pagination","flex justify-center py-20","使用次数","absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground","text-xs text-muted-foreground","No records","toString","加载白名单失败","Reset usage","ghost","space-y-6","67123gqlKHO","搜索邮箱...","Remove from whitelist?","74091lmcWaJ","w-8 h-8 animate-spin text-accent","40kccDKo","已禁用","default","124018iwniwQ","(((.+)+)+)+$","toLocaleString","已移除","map","移除失败","text-center py-20","196697Qwyypx","w-4 h-4 animate-spin mr-2","flex gap-1","Active","removeFromWhitelist","h-7 w-7 p-0 text-destructive","上次重置","Inactive","h-7 w-7 p-0"];return _=function(){return e},_()}function le(){const e=r,{language:l}=P(),s=l==="zh",[c,o]=i.useState([]),[w,C]=i.useState(!0),[I,W]=i.useState(null),[p,F]=i.useState(""),[u,g]=i.useState(1),[R,D]=i.useState(1),[N,S]=i.useState(""),[A,T]=i.useState(!1),f=i.useCallback(async()=>{const a=r;try{C(!0);const t={page:u,page_size:20};p&&(t[a(178)]=p);const n=await j[a(148)](t);o(Array[a(169)](n[a(162)])?n[a(162)]:[]),D(n[a(180)]?.[a(153)]||1)}catch{W(a(s?187:167))}finally{C(!1)}},[u,p]);i.useEffect(()=>{f()},[f]);const k=async()=>{const a=r;if(N[a(222)]())try{T(!0);const t=await j[a(177)]({email:N[a(222)]()});m({title:t[a(236)]||a(s?237:230)}),S(""),f()}catch(t){m({title:t[a(216)]?.[a(162)]?.[a(236)]||a(s?145:215),variant:"destructive"})}finally{T(!1)}},H=async a=>{const t=r;if(confirm(s?"确定移除?":t(193)))try{const n=await j[t(210)](a);m({title:n.message||(s?t(202):"Removed")}),f()}catch(n){m({title:n[t(216)]?.[t(162)]?.[t(236)]||t(s?204:224),variant:"destructive"})}},K=async a=>{const t=r;try{const n=await j[t(142)](a);m({title:n[t(236)]||(s?t(219):"Usage reset")}),f()}catch(n){m({title:n.response?.[t(162)]?.message||t(s?227:176),variant:"destructive"})}};return x.jsxs(e(218),{className:e(190),children:[x.jsxs(e(218),{className:e(141),children:[x.jsx(M,{className:e(156)}),x.jsx("h1",{className:"text-2xl font-bold",children:s?"支付宝白名单":e(229)})]}),x.jsx(z,{children:x.jsx(B,{className:e(160),children:x.jsxs(e(218),{className:e(168),children:[x.jsx(E,{placeholder:e(s?223:175),value:N,onChange:a=>S(a.target.value),onKeyDown:a=>a[e(232)]==="Enter"&&k(),className:e(235)}),x.jsxs(b,{onClick:k,disabled:A,children:[A?x.jsx(L,{className:e(207)}):x.jsx(V,{className:e(174)}),s?"添加":e(172)]})]})})}),x.jsxs(e(218),{className:e(217),children:[x.jsx(U,{className:e(183)}),x.jsx(E,{placeholder:e(s?192:152),value:p,onChange:a=>{const t=r;F(a[t(143)][t(150)]),g(1)},className:e(239)})]}),w?x.jsx("div",{className:e(181),children:x.jsx(L,{className:e(195)})}):I?x.jsxs("div",{className:e(205),children:[x.jsx(O,{className:e(138)}),x.jsx("p",{children:I})]}):x.jsx(z,{children:x.jsx(B,{className:e(221),children:x.jsxs(q,{children:[x.jsx(G,{children:x.jsxs(y,{children:[x.jsx(h,{children:s?"邮箱":e(137)}),x.jsx(h,{children:e(s?147:159)}
1),x.jsx(h,{children:e(s?182:144)}),x.jsx(h,{children:e(s?212:234)}),x.jsx(h,{children:s?"状态":e(139)}),x.jsx(h,{children:s?"操作":e(155)})]})}),x.jsxs(J,{children:[c[e(203)](a=>x.jsxs(y,{children:[x.jsx(d,{className:e(226),children:a[e(154)]}),x.jsx(d,{className:"text-sm",children:"—"}),x.jsx(d,{className:e(233),children:a.daily_usage_count}),x.jsx(d,{className:e(184),children:a[e(163)]?new Date(a.last_reset_date)[e(201)]():"—"}),x.jsx(d,{children:x.jsx($,{variant:a.is_whitelisted?e(198):e(149),className:e(164),children:a[e(171)]?e(s?146:209):e(s?197:213)})}),x.jsx(d,{children:x.jsxs(e(218),{className:e(208),children:[x.jsx(b,{size:"sm",variant:e(189),className:e(214),onClick:()=>K(a.id),title:e(s?158:188),children:x.jsx(X,{className:"w-4 h-4"})}),x.jsx(b,{size:"sm",variant:e(189),className:e(211),onClick:()=>H(a.id),title:s?"移除":e(173),children:x.jsx(Y,{className:"w-4 h-4"})})]})})]},a.id)),c.length===0&&x.jsx(y,{children:x.jsx(d,{colSpan:6,className:e(151),children:e(s?238:185)})})]})]})})}),x.jsxs(e(218),{className:e(140),children:[x.jsx(b,{size:"sm",variant:"outline",disabled:u<=1,onClick:()=>g(a=>a-1),children:x.jsx(Z,{className:"w-4 h-4"})}),x.jsxs("span",{className:e(161),children:[s?"页":e(225)," ",u," / ",R]}),x.jsx(b,{size:"sm",variant:e(231),disabled:u>=R,onClick:()=>g(a=>a+1),children:x.jsx(Q,{className:"w-4 h-4"})})]})]})}export{le 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.