1import{a$ as h,ao as p,d as r,fq as g,ap as t,bo as x,au as j}from"./index-8x3up8ui.js";import{T as _}from"./index-C6iqNmYt.js";import{T as u}from"./TimeIntervals-B7kUyDDy.js";import{P as v}from"./Pagination-sPzuYJhb.js";import{u as I}from"./useFormatCurrency-DBTwJ2I7.js";import"./TextInput-Cu5q-AES.js";import"./FieldMessage-Cm1mdHwT.js";import"./DatePicker-DAVkFGsJ.js";import"./clsx-B-dksMZM.js";import"./useUserCurrency-B9QtUMOk.js";const Y="_section_bqv77_1",b="_title_bqv77_1",M="_titleIcon_bqv77_11",y="_pagination_bqv77_15",D="_timeIntervalsItem_bqv77_19",s={section:Y,title:b,titleIcon:M,pagination:y,timeIntervalsItem:D};function E(){const c=I(),[n]=h(),[e]=p(["affiliate_program","common"]),d=r().subtract(6,"day").format("YYYY-MM-DD"),m=r().format("YYYY-MM-DD"),{data:i={},isFetching:f}=g({page:n.get("page")||0,dateFrom:n.get("dateFrom")||d,dateTo:n.get("dateTo")||m}),o={page:Number(n.get("page"))||0,lastPage:Math.floor(i.total/i.limit)||0,totalCount:i.total,perPage:i.limit},l=i.data||[];return t.jsx("section",{id:"invited-referrals",className:s.section,children:t.jsxs(x,{isLoading:f,children:[t.jsxs("h2",{className:s.title,children:[t.jsx(j,{name:"chart-bar",className:s.titleIcon}),e("content.statistics.invited_referrals.title")]}),t.jsx(u,{className:s.timeIntervals,itemClassName:s.timeIntervalsItem}),t.jsxs(_,{striped:!0,children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:e("content.statistics.invited_referrals.fields.user_id")}),t.jsx("th",{children:e("content.statistics.invited_referrals.fields.registration_date")}),t.jsx("th",{children:e("content.statistics.invited_referrals.fields.username")}),t.jsx("th",{children:e("content.statistics.invited_referrals.fields.profit")})]})}),t.jsx("tbody",{children:l.length===0?t.jsx("tr",{children:t.jsx("td",{colSpan:"4",children:e("common:table.no_data")})}):l.map(a=>t.jsxs("tr",{children:[t.jsx("td",{children:a.userId}),t.jsx("td",{children:t.jsx("time",{dateTime:r(a.dateRegistration).format("YYYY-MM-DD"),children:r(a.dateRegistration).format("YYYY-MM-DD")})}),t.jsx("td",{children:a.email}),t.jsx("td",{children:c({amount:a.profit})})]},a.id))})]}),o.lastPage>0&&t.jsx(v,{className:s.pagination,data:o,pagesStartFromZero:!0})]})})}export{E 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.