1import{I as D}from"./DQYp1PVJ.js";import{a as k}from"./DfOgB9l4.js";import{_ as R,u as O,a as A,z as $,a4 as q,c as E,b as v,d as u,f as i,e as d,aU as L,au as j,s as V,h as r,o as F,j as S,t as p,B as H}from"./DJCfE3oe.js";import{T as M}from"./BfV1YUxR.js";import"./BWkcWVCU.js";import"./Fg2r6g1O.js";import"./CYNsn-zs.js";import"./UwAkD10u.js";import"./4b-VKyp0.js";import"./XdutmGHI.js";import"./DLPiwjp5.js";import"./CPJeIeTf.js";import"./D9FxPwaw.js";import"./CHIgUVhi.js";import"./COHZjUSn.js";import"./BOnZHrTo.js";import"./eTfifEnw.js";import"./C3cZX21v.js";const W={class:"record"},G={class:"search"},J={__name:"usage",setup(Q){const{t:a,locale:s}=O(),m=r(!1),n=r(1),_=r(8),C=r(0),f=r(""),y=r(""),h=r(""),N=r([]),x=V(()=>s.value=="zh-hans"||s.value=="zh-hant"?"zh-hans":"en-us"),b=V(()=>(x.value,[{colKey:"trade_no",title:a("centre.PurchaseBillCount.OrderNumber"),align:"center",width:"280"},{colKey:"product_type",title:a("plans.pay.type"),align:"center",width:"220",cell:"product_type"},{colKey:"title",title:a("centre.walletCount.Plan"),align:"center",width:"150"},{colKey:"pay_fee",title:a("centre.walletCount.amount"),align:"center",width:"150",cell:"pay_fee"},{colKey:"pay_at",title:a("centre.PurchaseBillCount.PaymentTime"),align:"center",width:"200"},{colKey:"status",title:a("centre.PurchaseBillCount.Status"),align:"center",width:"120",cell:"status"}]));function B(){n.value=1,g()}function T(e){n.value=e.current,g()}async function g(){m.value=!0;let e="en-us";(s.value=="zh-hans"||s.value=="zh-hant")&&(e="zh-hans");let l={page_no:1,page_size:9999,trade_no:f.value,start_time:y.value,end_time:h.value,language:e},{code:P,data:c,msg:z}=await j(l);if(P==200){const o=c.list.filter(t=>t.pm_id==30);o.forEach(t=>{t.invoice=t.status,t.PaymentTime=t.pay_at,t.IPquantity=t.product.flow_value+t.product.flow_give}),C.value=o.length,N.value=o.slice((n.value-1)*_.value,n.value*_.value)}m.value=!1}function w(e){return`$${(+e||0).toFixed(2)}`}function I(e){return e===0?"red":e===1?"lavender":"gray"}function K(e){let l="";return e==0?l="Unpaid":e==1?l="Paid":e==2?l="Canceled":e==3&&(l="Refunded"),a("centre.PurchaseBillCount."+l)}function U(e){if(e.product_type==9)return a("ProductNames.ResidentialProxy");
1if(e.product_type==11)return a("ProductNames.UnlimitedResidentialProxy");if(e.product_type==25)return a("ProductNames.StaticResidentialProxy");if(e.product_type==19&&e.parent_product_type==25)return a("ProductNames.StaticResidentialProxy");if(e.product_type==19&&e.parent_product_type==14)return a("ProductNames.StaticDataCenterProxy");if(e.product_type==3)return a("centre.wallet");if(e.product_type==12)return a("ProductNames.LongActingISPProxy");if(e.product_type==14)return a("ProductNames.StaticDataCenterProxy");if(e.product_type==18)return a("ProductNames.WebScraperAPI")}return A(()=>({title:`${a("centre.walletCount.tabs[1]")} - 911proxy`})),$(()=>{g()}),q(x,()=>{B()}),(e,l)=>{const P=D,c=k,z=L,o=M;return F(),E("div",W,[v("div",G,[u(P,{modelValue:f.value,"onUpdate:modelValue":l[0]||(l[0]=t=>f.value=t),placeholder:i(a)("centre.PurchaseBillCount.OrderNumber")},null,8,["modelValue","placeholder"]),u(c,{modelValue:y.value,"onUpdate:modelValue":l[1]||(l[1]=t=>y.value=t),placeholder:i(a)("centre.PurchaseBillCount.startTimePlaceholder"),clearable:""},null,8,["modelValue","placeholder"]),u(c,{modelValue:h.value,"onUpdate:modelValue":l[2]||(l[2]=t=>h.value=t),placeholder:i(a)("centre.PurchaseBillCount.endTimePlaceholder"),clearable:""},null,8,["modelValue","placeholder"]),u(z,{onClick:B},{default:d(()=>[S(p(i(a)("help.search")),1)]),_:1})]),u(o,{data:N.value,columns:b.value,pagination:{pageSize:_.value,total:C.value,current:n.value,totalContent:!1,showPageSize:!1,showPreviousAndNextBtn:!0,maxPageBtn:5},loading:m.value,onPageChange:T,rowKey:"id"},{pay_fee:d(({row:t})=>[S(p(w(t.pay_fee)),1)]),product_type:d(({row:t})=>[v("span",null,p(U(t)),1)]),status:d(({row:t})=>[v("span",{class:H(I(t.status))},p(K(t.status)),3)]),_:1},8,["data","columns","pagination","loading"])])}}},fe=R(J,[["__scopeId","data-v-45ea04ec"]]);export{fe 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.