PageSourceSearch

https://www.xstable.ai/_next/static/chunks/1696.1040d183aa9bbbe7.js

js xstable.ai collected 2026-10-05 14:38:19 UTC 16,886 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1696],{40470:(e,t,s)=>{s.d(t,{A:()=>u});var a,l,r,c,n,i,o,d=s(20801);function x(){return(x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var a in s)({}).hasOwnProperty.call(s,a)&&(e[a]=s[a])}return e}).apply(null,arguments)}let u=function(e){return d.createElement("svg",x({xmlns:"http://www.w3.org/2000/svg",width:52,height:48,fill:"none"},e),a||(a=d.createElement("path",{fill:"#8D8E92",fillOpacity:.6,d:"M22.384 2.381c2.982-1.84 7.038-1.842 10.02 0l9.375 5.788-5.057-.036c-1.41-.01-2.91-.01-4.51-.01h-9.637c-1.6 0-3.1 0-4.51.01l-5.057.036zm9.19 1.166c-2.48-1.53-5.881-1.53-8.36 0l-5.16 3.186c1.417-.01 2.922-.01 4.521-.01h9.637c1.599 0 3.104 0 4.52.01z"})),l||(l=d.createElement("path",{fill:"#8D8E92",fillOpacity:.6,fillRule:"evenodd",d:"M43 24.7a2 2 0 1 1-4 0 2 2 0 0 1 4 0",clipRule:"evenodd"})),r||(r=d.createElement("path",{stroke:"#8D8E92",strokeLinecap:"round",strokeWidth:1.4,d:"M14.086 15.7h9.75"})),c||(c=d.createElement("path",{fill:"#8D8E92",d:"m49 29.9-.002 1.578c-.012 3.453-.107 5.356-.87 6.853a8 8 0 0 1-3.496 3.496c-1.498.763-3.4.858-6.854.87L36.2 42.7H19.247q.266-.68.44-1.4H36.2c2.263 0 3.877 0 5.14-.104 1.248-.102 2.03-.296 2.656-.615a6.6 6.6 0 0 0 2.885-2.885c.318-.625.513-1.408.615-2.655.103-1.264.104-2.877.104-5.14v-.2H49zM37.778 6.7c3.454.012 5.356.107 6.854.87a8 8 0 0 1 3.496 3.496C49 12.78 49 15.02 49 19.5v.2h-1.4v-.2c0-2.263 0-3.877-.104-5.14-.102-1.248-.297-2.03-.615-2.656a6.6 6.6 0 0 0-2.885-2.885c-.625-.318-1.408-.513-2.655-.615C40.077 8.1 38.463 8.1 36.2 8.1H16.8c-2.263 0-3.877 0-5.14.103-1.248.102-2.03.297-2.656.615a6.6 6.6 0 0 0-2.885 2.885c-.318.625-.513 1.408-.615 2.655C5.4 15.622 5.4 17.236 5.4 19.5v8.805q-.725.252-1.4.598V19.5c0-4.2 0-6.432.719-8.104l.153-.328A8 8 0 0 1 8.09 7.721l.28-.15c1.71-.872 3.95-.872 8.43-.872H36.2z"})),n||(n=d.createElement("path",{stroke:"#8D8E92",strokeWidth:1.4,d:"M40 19.4h9a2.3 2.3 0 0 1 2.3 2.3v6a2.3 2.3 0 0 1-2.3 2.299h-9a5.3 5.3 0 1 1 0-10.6Z"})),i||(i=d.createElement("circle",{cx:9,cy:38.699,r:8.3,stroke:"#8D8E92",strokeOpacity:.6,strokeWidth:1.4})),o||(o=d.createElement("path",{fill:"#8D8E92",fillOpacity:.6,d:"M8.997 34a.7.7 0 0 1 .7.7v3.298h3.3a.7.7 0 0 1 0 1.4h-3.3V42.7a.7.7 0 0 1-1.4 0v-3.302h-3.3a.7.7 0 0 1 0-1.4h3.3V34.7a.7.7 0 0 1 .7-.7"})))}},41663:(e,t,s)=>{s.d(t,{A:()=>c});var a,l=s(20801);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var a in s)({}).hasOwnProperty.call(s,a)&&(e[a]=s[a])}return e}).apply(null,arguments)}let c=function(e){return l.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none"},e),a||(a=l.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.228 11.782a.72.72 0 0 1 0-1.053L8.122 7 4.228 3.271a.72.72 0 0 1 0-1.053.8.8 0 0 1 1.1 0l4.444 4.255a.723.723 0 0 1 0 1.054l-4.444 4.255a.8.8 0 0 1-1.1 0",clipRule:"evenodd"})))}},56185:(e,t,s)=>{s.d(t,{A:()=>o});var a=s(80069),l=s(34852);s(20801);var r=s(66926),c=s(78937),n=s(40470),i=s(34733);let o=e=>{let{className:t,text:s,onClick:o}=e,{t:d}=(0,r.Bd)(),{theme:x}=(0,l.D)(),u=d("home.connect_wallet_action"),m=null==s?void 0:s.split(new RegExp("(".concat(u,")")));return(0,a.jsxs)("div",{className:(0,i.cn)("flex flex-col items-center justify-center text-text-light text-[13px] gap-1",t),children:["light"===x?(0,a.jsx)(c.A,{className:"w-[56px] h-auto"}):(0,a.jsx)(n.A,{className:"w-[56px] h-auto"}),(0,a.jsx)("span",{className:"text-center",children:null==m?void 0:m.map((e,t)=>e===u?(0,a.jsx)("span",{onClick:o,className:"text-main-color font-semibold cursor-pointer hover:underline mr-0.5",children:e},t):(0,a.jsx)("span",{children:e},t))})]})}},78937:(e,t,s)=>{s.d(t,{A:()=>u});var a,l,r,c,n,i,o,d=s(20801);function x(){return(x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var a in s)({}).hasOwnProperty.call(s,a)&&(e[a]=s[a])}return e}).apply(null,arguments)}let u=function(e){return d.createElement("svg",x({xmlns:"http://www.w3.org/2000/svg",width:52,height:48,fill:"none"},e),a||(a=d.createElement("path",{fill:"#6C757D",fillOpacity:.6,d:"M22.384 2.381c2.982-1.84 7.038-1.842 10.02 0l9.375 5.788-5.057-.036c-1.41-.01-2.91-.01-4.51-.01h-9.637c-1.6 0-3.1 0-4.51.01l-5.057.036zm9.19 1.166c-2.48-1.53-5.881-1.53-8.36 0l-5.16 3.186c1.417-.01 2.922-.01 4.521-.01h9.637c1.599 0 3.104 0 4.52.01z"})),l||(l=d.createElement("path",{fill:"#6C757D",fillOpacity:.6,fillRule:"evenodd",d:"M43 24.7a2 2 0 1 1-4 0 2 2 
10 0 1 4 0",clipRule:"evenodd"})),r||(r=d.createElement("path",{stroke:"#6C757D",strokeLinecap:"round",strokeWidth:1.4,d:"M14.086 15.7h9.75"})),c||(c=d.createElement("path",{fill:"#6C757D",d:"m49 29.9-.002 1.578c-.012 3.453-.107 5.356-.87 6.853a8 8 0 0 1-3.496 3.496c-1.498.763-3.4.858-6.854.87L36.2 42.7H19.247q.266-.68.44-1.4H36.2c2.263 0 3.877 0 5.14-.104 1.248-.102 2.03-.296 2.656-.615a6.6 6.6 0 0 0 2.885-2.885c.318-.625.513-1.408.615-2.655.103-1.264.104-2.877.104-5.14v-.2H49zM37.778 6.7c3.454.012 5.356.107 6.854.87a8 8 0 0 1 3.496 3.496C49 12.78 49 15.02 49 19.5v.2h-1.4v-.2c0-2.263 0-3.877-.104-5.14-.102-1.248-.297-2.03-.615-2.656a6.6 6.6 0 0 0-2.885-2.885c-.625-.318-1.408-.513-2.655-.615C40.077 8.1 38.463 8.1 36.2 8.1H16.8c-2.263 0-3.877 0-5.14.103-1.248.102-2.03.297-2.656.615a6.6 6.6 0 0 0-2.885 2.885c-.318.625-.513 1.408-.615 2.655C5.4 15.622 5.4 17.236 5.4 19.5v8.805q-.725.252-1.4.598V19.5c0-4.2 0-6.432.719-8.104l.153-.328A8 8 0 0 1 8.09 7.721l.28-.15c1.71-.872 3.95-.872 8.43-.872H36.2z"})),n||(n=d.createElement("path",{stroke:"#6C757D",strokeWidth:1.4,d:"M40 19.4h9a2.3 2.3 0 0 1 2.3 2.3v6a2.3 2.3 0 0 1-2.3 2.299h-9a5.3 5.3 0 1 1 0-10.6Z"})),i||(i=d.createElement("circle",{cx:9,cy:38.699,r:8.3,stroke:"#6C757D",strokeOpacity:.6,strokeWidth:1.4})),o||(o=d.createElement("path",{fill:"#6C757D",fillOpacity:.6,d:"M8.997 34a.7.7 0 0 1 .7.7v3.298h3.3a.7.7 0 0 1 0 1.4h-3.3V42.7a.7.7 0 0 1-1.4 0v-3.302h-3.3a.7.7 0 0 1 0-1.4h3.3V34.7a.7.7 0 0 1 .7-.7"})))}},85246:(e,t,s)=>{s.d(t,{A:()=>r});var a=s(80069);s(20801);var l=s(66926);let r=e=>{let{num:t,className:s}=e,{t:r}=(0,l.Bd)();return(0,a.jsx)("div",{className:"".concat(s),children:"".concat(r(t>1?"assets.total_data_num":"assets.total_data_num1",{num:t}))})}},91696:(e,t,s)=>{s.r(t),s.d(t,{default:()=>C});var a=s(80069),l=s(20801),r=s(66926),c=s(72103),n=s(95702),i=s(42303),o=s(99065),d=s(70140),x=s(41663),u=s(81999),m=s(57422),h=s(2219),f=s(34202),p=s(83046),v=s(85246),g=s(98503),j=s(76055),b=s(83548),N=s(57454),w=s(42351),y=s(76273),k=s(34733),_=s(56185);let D=e=>{let{type:t}=e,{t:s}=(0,r.Bd)(),c=(0,n.useRouter)(),D=(0,b.l)(e=>e.isMobile),[C,A]=(0,l.useState)(!0),[E,F]=(0,l.useState)([]),[R,T]=(0,l.useState)(0),{showVoucherDetailDialog:O,showSelectWalletDialog:M}=(0,j.s)(),V=(0,l.useRef)(0),[z,P]=(0,l.useState)(0),[S,L]=(0,l.useState)(!0),H=(0,l.useRef)(null),I=(0,N.kH)(e=>e.isLogined),B=(0,l.useRef)(localStorage.getItem(w.Yz)||"true"),K=e=>{let t=e.balanceValue,l=e.status,r=e.rewardDefinitionType;if(0===l)return s("vouchers.coming_force_soon");if(1===l)switch(r){case"CARD":return(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[s("vouchers.status_effect"),(0,a.jsx)(x.A,{className:"text-affiliate-search-text"})]});case"TRIAL_FUND":if("true"===B.current)return(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[s("vouchers.in_use"),(0,a.jsx)(x.A,{className:"text-affiliate-search-text"})]});return s("vouchers.start_use")}else if(2===l)return 0===t?s("vouchers.used"):s("vouchers.expired")},W=e=>(0,y.ez)((0,y.BP)(e.balanceValue,e.rewardDefinitionValue),100),U=(e,t)=>{switch(t){case 0:(0,g.$s)(g.Ju);break;case 2:(0,g.$s)(g.WT)}O(e,t)},$=()=>{let e={isValid:0===t,pageNum:(D?V.current:z)+1,pageSize:10};(0,d.Rp)(e).then(e=>{e&&(F(e.list),T(e.total),V.current=e.pageNum,L((e.pageNum-1)*e.pageSize+e.list.length<e.total))}).finally(()=>{A(!1)})};(0,l.useEffect)(()=>{I?$():(F([]),P(0),T(0),A(!1),V.current=0)},[I,z]);let q=e=>{1===e.status&&((0,g.$s)(g.Qr),"TRIAL_FUND"===e.rewardDefinitionType?c.push("/trade?p=true"):c.push("/trade"))},Z=(0,l.useCallback)(e=>{H.current&&H.current.disconnect(),e&&(H.current=new IntersectionObserver(e=>{e[0].isIntersecting&&$()},{threshold:1}),H.current.observe(e))},[]),J={CARD:{nameKey:"vouchers.voucher_name",desKey:"vouchers.receive_dialog_des",image:m},TRIAL_FUND:{nameKey:"vouchers.voucher_name_contract",desKey:"vouchers.voucher_des_contract",image:h}},Q=e=>s(J[e.rewardDefinitionType].nameKey),X=e=>{let{desKey:t}=J[e.rewardDefinitionType];return"function"==typeof t?t(e):s(t)},Y=e=>J[e.rewardDefinitionType].image;return(0,a.jsx)(a.Fragment,{children:C?(0,a.jsx)("div",{className:"text-text-dark h-[200px] flex items-center justify-center",children:(0,a.jsx)(p.A,{className:"w-12 h-12"})}):I?E.length<=0?(0,a.jsx)("div",{className:"text-text-dark w-full h-[200px] mt-[6%] flex items-center justify-center",children:(0,a.jsx)(f.A,{text:s("vouchers.no_vouchers")})}):D?(0,a.jsxs)("div",{className:"mt-1 overflow-y-scroll pb-4 gap-3 flex flex-col",children:[E.map((e,t)=>(0,a.jsxs)("div",{className:"flex flex-1 flex-col py-6 px-4 w-full bg-position-item-background  border border-block-background rounded-[12px]",children:[(0,a.jsxs)("div",{className:"flex items-center ".concat(2===e.status?"gray-img":""),children:[(0,a.jsx)("div",{className:"w-30 h-17.5 flex flex-col items-center justify-center bg-cover bg-center pl-[22px] shrink-0",style:{backgroundImage:"url(".concat(Y(e),")")},children:(0,a.jsx)("span",{className:"text-xl font-semibold bg-gradient-to-r from-[#FFFFFF] ".concat("CARD"===e.rewardDefinitionType?"to-[#6CBDFF]":"to-[#AA79F1]"," bg-clip-text text-transparent"),children:"".concat(e.rewardDefinitionValue," USD")})}),(0,a.jsxs)("div",{className:"flex flex-col ml-4",children:[(0,a.jsx)("span",{className:"text-base text-text-dark font-semibold",children:Q(e)}),(0,a.jsx)("span",{className:"text-xs text-text-light font-medium",children:X(e)})]})]}),(0,a.jsxs)("div",{className:"flex mt-4",children:[(0,a.jsx)("div",{className:"text-text-light text-sm",children:(0,a.jsx)(r.x6,{i18nKey:"".concat(2===e.status?"vouchers.unused_amount":"vouchers.available_amount"),values:{amount:(0,k.Ix)(e.balanceValue,2)},components:{white:(0,a.jsx)("span",{className:"text-text-dark font-semibold"})}})}),(0,a.jsxs)("div",{className:"flex items-center ml-auto gap-1.5 cursor-pointer",onClick:()=>U(e,2),children:[(0,a.jsx)("span",{className:"text-sm font-medium text-text-light",children:s("vouchers.usage_records")}),(0,a.jsx)(x.A,{className:"text-text-light"})]})]}),(0,a.jsx)("div",{className:"w-full h-2 mt-2 bg-voucher-progress-bg-color roun
1ded-lg",children:(0,a.jsx)("div",{className:"h-full rounded-lg ".concat(2===e.status?"bg-voucher-expired-progress-color":"bg-main-color"),style:{width:"".concat(W(e),"%")}})}),(0,a.jsx)("div",{className:"flex w-full mt-4 items-center justify-center bg-border-color text-base font-medium h-10 rounded-[10px] ".concat(1===e.status?"bg-text-dark text-affiliate-search-text cursor-pointer":"bg-voucher-progress-bg-color text-text-light"),onClick:()=>q(e),children:K(e)}),(0,a.jsx)("div",{className:"w-full h-[1px] mt-4 bg-voucher-item-border"}),(0,a.jsxs)("div",{className:"flex mt-4 items-center",children:[2===e.status?(0,a.jsx)("span",{className:"text-sm text-text-light font-medium",children:"".concat((0,k._b)(e.endTime)," ").concat(s("vouchers.expired"))}):(0,a.jsx)("span",{className:"text-sm text-text-light font-medium",children:-1===e.validityType?s("vouchers.valid_forever"):s(0===e.status?"vouchers.effective_time":"vouchers.receive_dialog_time",{time:(0,k._b)(0===e.status?e.startTime:e.endTime,"-")})}),(0,a.jsx)(u.A,{className:"ml-auto cursor-pointer",onClick:()=>U(e,0)})]})]},t)),S&&(0,a.jsx)("div",{ref:Z,className:"h-10 w-full pb-6 text-center text-sm text-text-light",children:s("trade.load_more_loading")}),!S&&(0,a.jsx)("div",{className:"h-10 w-full flex items-center justify-center text-center text-sm text-text-light",children:s("trade.load_more_end")})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"grid grid-cols-2 gap-6 mt-5 overflow-y-scroll pb-4",children:E.map((e,t)=>(0,a.jsxs)("div",{className:"flex flex-1 flex-col p-6 w-full bg-vouchers-item-background rounded-[12px]",children:[(0,a.jsxs)("div",{className:"flex items-center ",children:[(0,a.jsx)("div",{className:"w-40 h-23.75 flex flex-col items-center justify-center bg-cover bg-center pl-[30px] flex-shrink-0 ".concat(2===e.status?"gray-img":""),style:{backgroundImage:"url(".concat(Y(e),")")},children:(0,a.jsx)("span",{className:"text-[27px] font-semibold bg-gradient-to-r from-[#FFFFFF] ".concat("CARD"===e.rewardDefinitionType?"to-[#6CBDFF]":"to-[#AA79F1]"," bg-clip-text text-transparent"),children:"".concat(e.rewardDefinitionValue," USD")})}),(0,a.jsxs)("div",{className:"flex flex-col ml-4 mr-4",children:[(0,a.jsx)("span",{className:"text-[28px] text-text-dark font-semibold",children:Q(e)}),(0,a.jsx)("span",{className:"text-sm text-text-light font-medium",children:X(e)})]}),(0,a.jsx)("div",{className:"flex items-center justify-center ml-auto text-base font-medium w-[112px] h-12 rounded-[10px] flex-shrink-0 ".concat(2===e.status?"bg-voucher-progress-bg-color text-text-light":1===e.status?"bg-text-dark text-affiliate-search-text cursor-pointer":"bg-voucher-progress-bg-color text-text-light"),onClick:()=>q(e),children:K(e)})]}),(0,a.jsxs)("div",{className:"flex mt-4",children:[(0,a.jsx)("div",{className:"text-text-light text-sm",children:(0,a.jsx)(r.x6,{i18nKey:"".concat(2===e.status?"vouchers.unused_amount":"vouchers.available_amount"),values:{amount:(0,k.Ix)(e.balanceValue,2)},components:{white:(0,a.jsx)("span",{className:"text-text-dark font-semibold"})}})}),(0,a.jsxs)("div",{className:"flex items-center ml-auto gap-1.5 cursor-pointer",onClick:()=>U(e,2),children:[(0,a.jsx)("span",{className:"text-sm font-medium text-text-light",children:s("vouchers.usage_records")}),(0,a.jsx)(x.A,{className:"text-text-light"})]})]}),(0,a.jsx)("div",{className:"w-full h-2 mt-2 bg-voucher-progress-bg-color rounded-lg",children:(0,a.jsx)("div",{className:"h-full rounded-lg ".concat(2===e.status?"bg-voucher-expired-progress-color":"bg-main-color"),style:{width:"".concat(W(e),"%")}})}),(0,a.jsx)("div",{className:"w-full h-[1px] mt-4 bg-panel-border-color"}),(0,a.jsxs)("div",{className:"flex mt-4 items-center",children:[2===e.status?(0,a.jsx)("span",{className:"text-sm text-text-light font-medium",children:"".concat((0,k._b)(e.endTime)," ").concat(s("vouchers.expired"))}):(0,a.jsx)("span",{className:"text-sm text-text-light font-medium",children:-1===e.validityType?s("vouchers.valid_forever"):s(0===e.status?"vouchers.effective_time":"vouchers.receive_dialog_time",{time:(0,k._b)(0===e.status?e.startTime:e.endTime,"-")})}),(0,a.jsx)(u.A,{className:"ml-auto cursor-pointer",onClick:()=>U(e,0)})]})]},t))}),(0,a.jsxs)("div",{className:"flex justify-between w-full sticky bottom-0 bg-main-background",children:[(0,a.jsx)(v.A,{num:R,className:"text-text-light text-xs h-11 flex items-center ml-7"}),(0,a.jsx)(i.m,{first:z,rows:10,totalRecords:R,onPageChange:e=>{P(e.first)},template:{layout:" PrevPageLink PageLinks NextPageLink ",RowsPerPageDropdown:e=>(0,a.jsxs)("div",{className:"flex align-items-center",children:[(0,a.jsx)(o.m,{target:".slider>.p-slider-handle",content:"".concat(e.value," / page"),position:"top",event:"focus"}),(0,a.jsxs)("span",{className:"mr-3",style:{color:"var(--text-color)",userSelect:"none"},children:["Items per page:"," "]})]}),CurrentPageReport:e=>(0,a.jsxs)("span",{style:{color:"var(--text-color)",userSelect:"none",width:"120px",textAlign:"center"},children:[e.first," ","-",e.last," ","of",e.totalRecords]})}})]})]}):(0,a.jsx)("div",{className:"text-text-dark w-full h-[200px] mt-[6%] flex items-center justify-center",children:(0,a.jsx)(_.A,{text:s("home.vouchers_connect_wallet_title"),onClick:M})})})};function C(){let{t:e}=(0,r.Bd)(),t=[e("vouchers.available_vouchers"),e("vouchers.invalid_vouchers")],[s,n]=(0,l.useState)(0);return(0,l.useEffect)(()=>{(0,g.$s)(g.ZX)},[]),(0,a.jsx)("div",{className:"w-full flex justify-center h-[calc(100svh-122px)] md:h-full",children:(0,a.jsxs)("div",{className:"w-full md:w-[1316px] flex flex-col relative px-4 h-full overflow-y-scroll",children:[(0,a.jsx)("span",{className:"text-[24px] md:text-[32px] text-text-dark font-semibold leading-[38px] pt-4 md:pt-8",children:e("vouchers.my_vouchers")}),(0,a.jsx)("div",{className:"sticky top-0 mt-2 md:mt-8 bg-main-background z-5",children:(0,a.jsx)(c.A,{value:s,tabs:t,showPadding:!1,onChange:e=>{let t=e.index;n(t),(0,g.$s)(g.Uf,{type:0===t?"available":"expired"})}})}),(0,a.jsxs)("div",{className:"w-full h-[calc(100%-132px)] ",children:[0===s&&(0,a.jsx)(D,{type:s}),1===s&&(0,a.jsx)(D,{type:s})]})]})})}}}]);

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.