1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"btse@5f19a485"};var a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="d96908d4-709a-4fee-9519-1f6b6a097156",e._sentryDebugIdIdentifier="sentry-dbid-d96908d4-709a-4fee-9519-1f6b6a097156")}catch(t){}}();import{ai as e,a6 as a,a8 as t,a9 as s,ah as n,aa as i,af as l,aK as r,bC as u,bD as o,ak as c,am as d,ae as m,aY as v,r as p,aE as g,aF as f,an as y,ab as b,as as C,ad as h,aU as _,B as j,ar as I,a5 as k}from"./PmfENnFs.js";import{u as E,cb as w,aI as S,am as M,dx as R,B as $,l6 as P,c as L,ad as B,ab as D,ac as T,aV as W,I as x,P as z,l7 as U,la as A,a5 as N,af as H,hF as q,dU as F,R as O,p as K}from"./BhKTELSe.js";import{M as Y}from"./BBCZVWsC.js";import{_ as Z}from"./CRPzHAml.js";import{a as J,T as V,b as Q,t as X,M as G,g as ee}from"./p86NXfwp.js";import{L as ae}from"./B7TQbCQK.js";import{P as te}from"./B4U_Irsy.js";import"./DzIKp7QL.js";import"./ByGuns7q.js";import"./chunk-lottie.zeumoeGY.js";import"./CXr9G-CP.js";import"./chunk-web3.7EmC4Up1.js";import"./chunk-web3-onboard-utils.D-9VMiP0.js";import"./chunk-sentry.q36DUBwH.js";import"./DTvt6p8J.js";import"../../app.DuROpXuw.js";import"./Bam2FmDF.js";import"./ByOB-9wo.js";import"./tad1MRrM.js";import"./cvxruSMo.js";import"./chunk-echarts.AHWYl6Ef.js";import"./B9Yq6Vz0.js";import"./C01FaP4M.js";import"./zvFuZOnV.js";import"./BKDfmFf5.js";import"./DbKBa4Od.js";import"./CjHUvruO.js";import"./CRkpGd-d.js";import"./C2-AFtvo.js";const se={...{eventCampaignCenterMastheadImagePath:"",eventCampaignCenterCommunityTelegramImagePath:"",eventCampaignCenterCommunityReferralImagePath:""}},ne={class:"masthead-title"},ie={class:"masthead-description"},le=Z(e({__name:"Masthead",setup(e){const{isEventCampaignCenterBannerImage:r}=M,{eventCampaignCenterMastheadImagePath:u}=se,o=S(),c=E(),d=a((()=>{if(!u)return"";const e=c.isSupportWebp?"webp":"png";return w(`${u}.${e}`)})),m=a((()=>d.value?d.value:o.isMobile?c.isSupportWebp?"/static/img/x9awh_3_.webp":"/static/img/w4Rze5pI.jpg":c.isSupportWebp?"/static/img/-nr4Skc6.webp":"/static/img/DseWbjQR.jpg")),v=a((()=>r?{backgroundImage:`url(${m.value})`}:{background:"var(--event-campaign-center-banner-bg)"}));return(e,a)=>(s(),t("div",{class:"event-center-masthead",style:n(v.value)},[i("div",ne,l(e.$t("nav.eventCampaignCenter")),1),i("div",ie,l(e.$t("tradingEventCenter.description")),1)],4))}}),[["__scopeId","data-v-3739e912"]]),re={class:"campaign-card"},ue={class:"campaign-card-banner"},oe=Z(e({__name:"LoadingCard",setup:e=>(e,a)=>(s(),t("div",re,[i("div",ue,[r(R,{class:"icon-pulse"})])]))}),[["__scopeId","data-v-875e3d3b"]]),ce=Z(e({__name:"PillLabelSelector",props:u({size:{default:$.XS},isMultipleSelect:{type:Boolean,default:!1},list:{default:()=>[]}},{result:{default:null},resultModifiers:{}}),emits:["update:result"],setup(e){const a=o(e,"result");return(e,t)=>(s(),c(ae,{result:a.value,"onUpdate:result":t[0]||(t[0]=e=>a.value=e),class:"pill-label-selector",isMultipleSelect:e.isMultipleSelect,list:e.list},{item:d((({info:a})=>[r(te,{class:"pill-selector-button",size:e.size},{default:d((()=>[m(l(a.name),1)])),_:2},1032,["size"])])),_:1},8,["result","isMultipleSelect","list"]))}}),[["__scopeId","data-v-bd3576f9"]]),de={class:"event-center-events"},me={class:"events-inner"},ve={class:"events-filter"},pe={class:"events-filter-left"},ge={class:"events-filter-right"},fe={key:0,class:"events-list"},ye={key:0,class:"no-data"},be={class:"no-data-text"},Ce={key:1,class:"events-list"},he=Z(e({__name:"Events",setup(e){const n=v(),u=S(),{abortApiSymbol:o}=P.useApiAbort(),d=p(J.all),m=p(V.all),j=p(""),I=p(!1),k=p([]),E=p(1),w=p(0),M=a((()=>[{title:n.t("tradingEventCenter.category.allEvent"),id:J.all},{title:n.t("t.futures"),id:J.futures},{title:n.t("t.spot"),id:J.spot},{title:n.t("msg.earn"),id:J.earn},{title:n.t("t.deposit"),id:J.deposit},{title:n.t("tradingEventCenter.category.carnival"),id:J.carnival},{title:n.t("t.others"),id:J.others}])),R=a((()=>[{value:V.all,name:n.t("t.all")},{value:V.ongoing,name:n.t("t.ongoing")},{value:V.upcoming,name:n.t("t.upcoming")},{value:V.ended,name:n.t("t.ended")}])),$=a((()=>Math.ceil(w.value/12)>E.value));function N(e){d.value=e}async function H(){try{I.value=!0;const{data:e,totalRows:a}=await X.getTradingEventList({currentPage:E.value,pageSize:12,tag:d.value===J.all?void 0:d.value,status:m.value===V.all?void 0:m.value,keywords:j.value},o);w.value=a,u.isMobile?k.value.push(...e):k.value=e,I.value=!1}catch(e){e!==A&&(I.value=!1)}}function q(e){E.value=e}
1function F(){E.value++}g((()=>{H()})),f((()=>{O.cancel()}));const O=L(H,400);return y(E,(()=>{O()})),y([d,m,j],(()=>{E.value=1,u.isMobile&&(k.value=[]),O()})),(e,a)=>(s(),t("div",de,[i("div",me,[i("div",ve,[i("div",pe,[r(B,{class:"category-tab-switch",barHeight:4,type:C(T).BOTTOM_BAR_NARROW,theme:C(D).margin,itemList:M.value,selected:d.value,isDefaultSelectedKey:!1,onSelect:N},null,8,["type","theme","itemList","selected"])]),i("div",ge,[r(W,{value:j.value,"onUpdate:value":a[0]||(a[0]=e=>j.value=e),height:"32px",width:C(u).isMobile?"100%":"200px"},null,8,["value","width"])])]),r(ce,{result:m.value,"onUpdate:result":a[1]||(a[1]=e=>m.value=e),class:"status-tabs",list:R.value},null,8,["result","list"]),I.value?(s(),t("div",fe,[(s(),t(h,null,_(6,(e=>r(oe,{key:e}))),64))])):(s(),t(h,{key:1},[0===k.value.length?(s(),t("div",ye,[r(x),i("div",be,l(e.$t("tradingEventCenter.events.noData")),1)])):(s(),t("div",Ce,[(s(!0),t(h,null,_(k.value,(e=>(s(),c(Q,{key:e.eventId,info:e},null,8,["info"])))),128))]))],64)),C(u).isLargeSize?(s(),c(z,{key:2,layout:"prev, pager, next, jumper",class:"pagination",pagerCount:5,background:!1,total:w.value,pageSize:12,currentPage:E.value,onHandleCurrentChangeP:q},null,8,["total","currentPage"])):$.value?(s(),c(U,{key:3,onLoadMore:F})):b("",!0)])]))}}),[["__scopeId","data-v-526d017d"]]),_e={class:"event-center-community"},je={class:"community-inner"},Ie={class:"community-title"},ke={class:"community-description"},Ee={class:"community-cards"},we={class:"community-card-left"},Se={class:"community-card-title"},Me={class:"community-card-description"},Re={class:"community-card-cta"},$e={class:"community-card-left"},Pe={class:"community-card-title"},Le={class:"community-card-description"},Be={class:"community-card-cta"},De=Z(e({__name:"JoinCommunity",setup(e){const{referralV2Rate:u}=q,{telegramUrl:o,telegramUrlCn:c}=N,{eventCampaignCenterCommunityTelegramImagePath:v,eventCampaignCenterCommunityReferralImagePath:p}=se,g=H(j(u).times(100).toNumber(),0),f=E(),y=e=>{if(!e)return"";const a=f.isSupportWebp?"webp":"png";return w(`${e}.${a}`)},b=a((()=>{const e=y(v);return e||(f.isSupportWebp?"/static/img/B162qKrY.webp":"/static/img/DZH6fNlF.jpg")})),h=a((()=>({backgroundImage:`url(${b.value})`}))),_=a((()=>{const e=y(p);return e||(f.isSupportWebp?"/static/img/COP4w4_g.webp":"/static/img/C0S8pQSY.jpg")})),k=a((()=>({backgroundImage:`url(${_.value})`}))),S=a((()=>{switch(f.lang){case F.ZH_CN:case F.ZH_TW:return c;default:return o}}));return(e,a)=>{const u=I("BaseButton");return s(),t("div",_e,[i("div",je,[i("div",Ie,l(e.$t("tradingEventCenter.joinCommunity")),1),i("div",ke,l(e.$t("tradingEventCenter.joinCommunity.description")),1),i("div",Ee,[i("div",{class:"community-card",style:n(h.value)},[i("div",we,[i("div",Se,l(e.$t("tradingEventCenter.joinCommunity.telegram.title")),1),i("div",Me,l(e.$t("tradingEventCenter.joinCommunity.telegram.description")),1),i("div",Re,[r(u,{class:"primary",as:"a",href:S.value,target:"_blank"},{default:d((()=>[m(l(e.$t("t.join")),1)])),_:1},8,["href"])])])],4),i("div",{class:"community-card",style:n(k.value)},[i("div",$e,[i("div",Pe,l(e.$t("tradingEventCenter.joinCommunity.referral.title")),1),i("div",Le,l(e.$t("tradingEventCenter.joinCommunity.referral.description",{referralRate:C(g)})),1),i("div",Be,[r(u,{class:"primary",as:"RouterLink",to:{name:C(O).REFERRAL_V2,params:{lang:C(f).lang}}},{default:d((()=>[m(l(e.$t("t.learnMore")),1)])),_:1},8,["to"])])])],4)])])])}}}),[["__scopeId","data-v-3af836f7"]]),Te={class:"event-center-page"},We={class:"marquee-item"},xe=Z(e({__name:"CampaignCenter",setup(e){const{isShowEventLandingPageJoinBanner:n}=K,u=v(),o=E(),{lang:m}=k(o),y=p([]),h=p(null),_=a((()=>y.value&&y.value.length>0));async function j(){try{const e=await X.getTradingEventMarqueeList();y.value=e}catch(e){}}return g((()=>{j(),h.value=setInterval((()=>{j()}),3e5)})),f((()=>{h.value&&(clearInterval(h.value),h.value=null)})),(e,a)=>(s(),t("div",Te,[r(le),_.value?(s(),c(Y,{key:0,class:"event-center-marquee",isHoverPause:"",list:y.value},{default:d((({info:e})=>{return[i("li",We,l((a=e,a.type===G.USER_JOINED?u.t("tradingEventCenter.marquee.type.1.joinedCampaign",{nickname:a.nickname,campaignName:ee(a.subtitle,m.value)}):"")),1)];var a})),_:1},8,["list"])):b("",!0),r(he),C(n)?(s(),c(De,{key:1})):b("",!0)]))}}),[["__scopeId","data-v-25ed3d41"]]);export{xe as default}; 2//# sourceMappingURL=QgszCSGN.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.