1import{a$ as _,ao as b,aG as j,b6 as f,aJ as y,ap as t,b5 as P,bo as N,as as T,ax as C}from"./index-BtBBe3Qn.js";import{g as S}from"./getPaymentMethodLocaleKey-Dml5MT2V.js";import{g as v}from"./getSiteName-CcWc2OSh.js";import{u as D}from"./useTextContent-D_vt8Rya.js";import{u as H}from"./useFormatCurrency-DqOa2cEN.js";import{B as L}from"./Basic-z91SxT3M.js";import{D as O}from"./DashboardToolbar-C7_K8T0f.js";import{B as M}from"./Box-CvHbZLGA.js";import{P as k}from"./Pagination-Bgfs7Q8x.js";import{T as B}from"./index-BWZK3iLP.js";import{c as F}from"./payment-DjdcgeW4.js";import"./omit-d7OsdRiB.js";import"./isObject-CngMK1bL.js";import"./getSupportMail-iXQw2g0Y.js";import"./useUserCurrency-BIiPAJv2.js";import"./PageBg-CzMa5URk.js";import"./useCaptchaNames-Dqzca3Yu.js";import"./useCaptchaPages-BT_VI7fl.js";import"./cpp-D1xmO_kM.js";import"./Trans-PXFPyXc4.js";import"./LanguageSwitcher-fLrkgy9j.js";import"./index.modern-C2R9ac_P.js";import"./useHostname-BpltaStt.js";import"./useServiceContacts-Ld-e7nfd.js";import"./Tooltip-JWJC82fm.js";import"./usePopper-BMTjsPmq.js";import"./truncateFractionDigits-BfJLOsEL.js";import"./CopyText-BU5tS28v.js";import"./copyTextToClipboard-3H83BO1o.js";import"./capitalizeFirstLetter-C8ICUtFU.js";const U="_section_g62xc_1",A="_table_g62xc_5",E="_date_g62xc_10",K="_status_g62xc_14",R="_pagination_g62xc_18",o={section:U,table:A,date:E,status:K,pagination:R},w={wait:"#6d5500",paid:"#006400",refund:"#0149cb",partitional_refund:"#0149cb",chargeback:"#ae0000",canceled:"#ae0000"};function bt(){const l=H(),[d]=_(),[r]=b(["pages","payment_history","balance_replenishment"]),n=j.useContext(f),p=v(n),i=Number(d.get("page"))||0,{data:a={},isFetching:h}=F({page:i}),c=a.data||[],m={page:i,lastPage:Math.floor(a.total/a.limit)||0,totalCount:a.total,perPage:a.limit},u=y.camelizeKeys(r("pages:payment_history",{hostname:n,site_name:p,returnObjects:!0})),s=D(["payment_history"],"content",{},{removeUnknownKeys:!0}),x=r("balance_replenishment:content.available_payment_methods.payment_methods",{returnObjects:!0});function g(){return t.jsx(O,{})}return t.jsxs(L,{renderToolbar:g,children:[t.jsx(P,{children:t.jsx("title",{children:u.title})}),t.jsx(M,{className:o.section,borderRadius:!0,children:t.jsxs(N,{isLoading:h,children:[t.jsx(T,{className:"mb-20",children:s.title}),t.jsxs(B,{className:o.table,striped:!0,children:[t.jsx("thead",{children:t.jsx("tr",{children:Object.values(s.infoTableCaptions).map(e=>t.jsx("th",{children:e},e))})}),t.jsx("tbody",{children:c.length===0?t.jsx("tr",{children:t.jsx("td",{colSpan:"5",children:s.noData})}):c.map(e=>t.jsxs("tr",{children:[t.jsx("td",{children:e.id}),t.jsx("td",{children:Number(e.shortname)===0&&Number(e.adminPayment)===1?s.adminTopUp:t.jsxs(t.Fragment,{children:[x[S(e.shortname)],e.invoice&&t.jsx("div",{children:t.jsxs(C,{href:e.invoice,color:"blue-green",target:"_blank",explicitUnderline:!0,children:[s.invoice," ",e.paymentId]})})]})}),t.jsx("td",{className:o.status,style:{color:w[e.extendedStatus]},children:r("payment_history:content.payment_statuses.".concat(e.extendedStatus))}),t.jsx("td",{children:l({amount:e.amount})}),t.jsx("td",{className:o.date,children:e.payDate==="0000-00-00 00:00:00"?e.addDate:e.payDate})]},e.id))})]}),m.lastPage>0&&t.jsx(k,{className:o.pagination,data:m,pagesStartFromZero:!0})]})})]})}export{bt 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.