PageSourceSearch

https://www.m2.com/_next/static/chunks/pages/affiliate-portal/overview-9d49d691ba8ff27d.js

js m2.com collected 2026-10-02 07:42:07 UTC 8,015 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3d77aa73-8886-4030-bc92-a07a106a6b2c",e._sentryDebugIdIdentifier="sentry-dbid-3d77aa73-8886-4030-bc92-a07a106a6b2c")}catch(e){}}(),function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3d77aa73-8886-4030-bc92-a07a106a6b2c",e._sentryDebugIdIdentifier="sentry-dbid-3d77aa73-8886-4030-bc92-a07a106a6b2c")}catch(e){}}();var _sentryModuleMetadataGlobal="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_sentryModuleMetadataGlobal._sentryModuleMetadata=_sentryModuleMetadataGlobal._sentryModuleMetadata||{},_sentryModuleMetadataGlobal._sentryModuleMetadata[Error().stack]=Object.assign({},_sentryModuleMetadataGlobal._sentryModuleMetadata[Error().stack],{"_sentryBundlerPluginAppKey:m2-web":!0});var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"d3b6b6885ef70522fe45868cf1b6e1e7696080d0"},(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[586],{18784:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSG:()=>Z,default:()=>z});var a=n(37876),i=n(93350),r=n(77328),s=n.n(r),l=n(30794),o=n(89099),d=n.n(o),u=n(14232),c=n(23814),f=n(23725),p=n(52987),y=n(90039),v=n(36225),m=n(32756),h=n(40525),x=n(16118),w=n(57550),g=n(25854),b=n(53595),_=n(82206),j=n(28888),A=n(72921),E=n(38993),T=n(52355),M=n(13518);function S(){let e=(0,j._)(["\n    width: 100%;\n    flex-direction: column;\n    justify-content: space-between;\n    align-items: flex-start;\n    gap: ",";\n  "]);return S=function(){return e},e}function V(){let e=(0,j._)(["\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  margin-bottom: 0;\n"]);return V=function(){return e},e}function C(){let e=(0,j._)(["\n    display: flex;\n    width: 100%;\n    justify-content: space-between;\n    gap: ",";\n  "]);return C=function(){return e},e}function k(){let e=(0,j._)(["\n    display: flex;\n    width: 100%;\n    justify-content: space-between;\n    flex-direction: column;\n    gap: ",";\n  "]);return k=function(){return e},e}function H(){let e=(0,j._)(["\n    color: ",";\n  "]);return H=function(){return e},e}let I=(0,A.Ay)(T.Ay)(e=>{let{theme:t}=e;return(0,E.AH)(S(),t.spaces.medium)}),L=(0,A.Ay)(M.E)(V()),G=(0,A.Ay)("div")(e=>{let{theme:t}=e;return(0,E.AH)(C(),t.spaces.large)}),P=(0,A.Ay)("div")(e=>{let{theme:t}=e;return(0,E.AH)(k(),t.spaces.xsmall)}),D=(0,A.Ay)(M.E)(e=>{let{theme:t}=e;return(0,E.AH)(H(),t.colors.success1)}),R=()=>{let{isMobile:e}=(0,m.lW)(),t=(0,c.Ri)(c.eT.Token),{t:n}=(0,i.Bd)("affiliatePortal"),[r,s]=(0,u.useState)(!1),[l,o]=(0,u.useState)([]),d=(0,p.Lv)();return(0,u.useEffect)(()=>{t&&(s(!0),d().then(e=>{o(e),s(!1)}))},[t]),(0,a.jsx)(x.mO,{children:r?(0,a.jsxs)(I,{children:[(0,a.jsx)(_.E,{variant:"rounded",width:e?106:131,height:e?28:40,borderRadiusKey:"xxsmall"}),(0,a.jsxs)(G,{children:[(0,a.jsxs)(P,{children:[(0,a.jsx)(_.E,{variant:"rounded",width:e?85:108,height:e?16:24,borderRadiusKey:"xxsmall"}),(0,a.jsx)(_.E,{variant:"rounded",width:64,height:32,borderRadiusKey:"xxsmall"})]}),(0,a.jsxs)(P,{children:[(0,a.jsx)(_.E,{variant:"rounded",width:e?85:108,height:e?16:24,borderRadiusKey:"xxsmall"}),(0,a.jsx)(_.E,{variant:"rounded",width:64,height:32,borderRadiusKey:"xxsmall"})]})]})]}):(0,a.jsxs)(I,{children:[(0,a.jsx)(L,{component:"h1",customVariantBehavior:!0,type:h.pn.Bold,"data-testid":"commission-tier-title",variant:e?h.VH.Large:h.VH.ExtraLarge,children:n("overview.commissionTier.title")}),(0,a.jsx)(G,{children:l.map(e=>e.tierType!==b.Z4.Future&&(0,a.jsxs)(P,{children:[(0,a.jsx)(g.A,{variant:h.VH.Medium,children:n("overview.commissionTier.".concat(e.tierType.toLocaleLowerCase()))}),(0,a.jsxs)(D,{variant:h.VH.ExtraExtraLarge,children:[e.commissionRate,"%"]})]},e.tierId))})]})})};function B(){let e=(0,j._)(["\n    padding: "," "," "," ",";\n    "," {\n      width: 100%;\n    }\n    min-width: auto;\n    span {\n      white-space: nowrap;\n    }\n  "]);return B=function(){return e},e}let K=(0,A.Ay)(v.Ay)(e=>{let{theme:t}=e;return(0,E.AH)(B(),t.spaces.small,t.spaces.small,t.spaces.small,t.spaces.medium,t.breakpoints.down("md"))});var N=n(28687);function O(){let e=(0,j._)(["\n    min-width: 40px;\n    height: ",";\n    padding: "," ",";\n  "]);return O=function(){return e},e}let U=(0,A.Ay)(v.Ay)(e=>{let{theme:t}=e;return(0,E.AH)(O(),t.spaces.large,t.spaces.xsmall,t.spaces.small)});var W=n(298),F=n(81649),X=n(10808);let Y=e=>{let{statistics:t,isLoading:n}=e,{spaces:r}=(0,l.A)(),{t:s}=(0,i.Bd)("affiliatePortal"),o=[{title:s("overview.statistics.registrations"),value:null==t?void 0:t.totalSignup},{title:s("overview.statistics.firstSpot"),value:null==t?void 0:t.firstTimeSpotTrades},{title:s("overview.statistics.earnCommission"),value:null==t?void 0:t.earnPlansCommission,hasCurrency:!0},{title:s("overview.statistics.verifiedUsers"),value:null==t?void 0:t.totalKYC},{title:s("overview.statistics.totalEarn"),value:null==t?void 0:t.totalEarnPlanCreated},{title:s("overview.statistics.spotVolume"),value:null==t?void 0:t.spotTradingVolume,hasCurrency:!0},{title:s("overview.statistics.firstDeposits"),value:null==t?void 0:t.depositedUser},{title:s("overview.statistics.earnVolume"),value:null==t?void 0:t.totalEarnPlanVolume,hasCurrency:!0},{title:s("overview.statistics.spotCommission"),value:null==t?void 0:t.spotTradingCommission,hasCurrency:!0}];return(0,a.jsx)(W.Ay,{container:!0,spacing:r.large,children:o.map(e=>{let{title:t,value:i,hasCurrency:s}=e,l=0===i?"0":(0,X.nm)(i,2);return(0,a.jsxs)(W.Ay,{item:!0,xs:6,md:4,children:[(0,a.jsx)(M.E,{variant:h.VH.TradeSmall,color:"textSecondary",children:t}),(0,a.jsxs)(M.E,{type:h.pn.Medium,variant:h.VH.Small,children:[n&&(0,a.jsx)(F.A,{"data-testid":"skeleton",width:r.xxxlarge}),!n&&(s?"".concat("USDT"," ").concat(l):l)]})]},t)})})},q=()=>{let{t:e}=(0,i.Bd)("affiliatePortal"),{spaces:t}=(0,l.A)(),[n,r]=(0,u.useState)(b.L4.all),{data:s,error:o}=(0,N.vk)({duration:n});return(0,a.jsx)(x.mO,{children:(0,a.jsxs)(T.Ay,{alignItems:"start",ga
1p:t.large,direction:"column",children:[(0,a.jsxs)(T.Ay,{width:"100%",gap:t.small,flexWrap:"wrap",children:[(0,a.jsx)(M.E,{type:h.pn.Bold,variant:h.VH.ExtraLarge,children:e("overview.statistics.statistics")}),(0,a.jsx)(T.Ay,{gap:t.small,children:Object.entries(b.L4).map(t=>{let[i,s]=t;return(0,a.jsx)(U,{"data-testid":s,type:n===s?v.G2.Secondary:v.G2.Tertiary,variant:v.VG.Small,textVariant:h.VH.ExtraSmall,textType:h.pn.Light,text:e("overview.statistics.".concat(i)),onClick:()=>r(s)},s)})})]}),(0,a.jsx)(Y,{isLoading:!s&&!o,statistics:s})]})})};function Q(){let e=(0,c.Ri)(c.eT.Token),{isMobile:t}=(0,m.lW)(),{t:n}=(0,i.Bd)("affiliatePortal"),{direction:r,spaces:o}=(0,l.A)(),y=(0,p.qQ)();return(0,u.useEffect)(()=>{y().then(e=>{(null==e?void 0:e.status)!=="Approved"&&d().replace(f.Ay.affiliate)})},[e]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(s(),{children:[(0,a.jsx)("title",{children:n("form.title")}),(0,a.jsx)("meta",{name:"description",content:n("home.seo.description")})]}),(0,a.jsxs)(x.UC,{children:[(0,a.jsx)(w.A,{showTotalEarned:!0,button:(0,a.jsx)(K,{iconAfter:!0,iconProps:{height:o.medium,width:o.medium},fullWidth:t,icon:"rtl"===r?"arrow-left":"arrow-right",testId:"view-balance",textVariant:h.VH.Small,type:v.G2.Tertiary,variant:v.VG.Small,onClick:()=>d().replace(f.Ay.affiliate_portal_balance),text:n("overview.earning.viewBalance")})}),(0,a.jsx)(R,{}),(0,a.jsx)(q,{})]})]})}Q.getLayout=function(e){return(0,a.jsx)(y.A,{children:e})};var Z=!0;let z=Q},67274:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/affiliate-portal/overview",function(){return n(18784)}])}},e=>{var t=t=>e(e.s=t);e.O(0,[298,8075,9346,636,6593,8792],()=>t(67274)),_N_E=e.O()}]);

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.