1import{W as q,_ as J,a as K,r as u,c as w,C as I,D as W,dk as H,K as B,dF as Q,dq as X,e as v,o as d,g as e,t as o,f as _,w as b,j as $,E as Z,i as l,F as M,l as x,s as ee,h as te,I as F,v as ae,J as se,L as oe}from"./kV3UbmWC.js";import{_ as le}from"./wsYK5a2B.js";import{S as ne,O as ie}from"./DLYgGeFx.js";import{D as re}from"./VXYkDjaB.js";import{d as c}from"./CfX1vOTs.js";import{u as ue,a as ce,b as de,c as me,d as pe,e as ve,i as _e}from"./Tufn7SaD.js";import{i as fe}from"./CaS9MynH.js";import"./CH0wpSbt.js";import"./DjhezoFL.js";import"./C8krmiux.js";import"./C8y2i2b6.js";import"./Y2BTtirQ.js";import"./CFKTYMyI.js";import"./C3Ex1624.js";import"./I5BtFwJl.js";import"./BLItm3Mv.js";import"./75aSrvi5.js";import"./oi1Cz4vz.js";import"./BGKs7_5k.js";import"./B0T2cu8x.js";import"./CHIgUVhi.js";const ge=q("/images/user/user12.png"),be={class:"LongActingISPProxy"},he={class:"product"},ye={class:"title"},Ye={class:"label"},De={class:"button"},Te={class:"progress"},we={class:"top"},$e={class:"remaining"},ke={class:"colorType"},Me={class:"value"},xe={class:"value"},Le={class:"situation"},Ce={class:"used_echarts"},Pe={class:"search"},Ie={class:"account"},Be=["onClick"],Fe={class:"params"},Se=["onClick"],Ae={__name:"LongActingISPProxy",setup(Ne){ue([ce,de,me,pe,ve,fe]);const{t:m,locale:S}=K();let h=u(null),y=w(()=>I("userInfo").value?I("userInfo").value:{}),f=u("main"),i=u([c().subtract(6,"day").format("YYYY-MM-DD"),c().format("YYYY-MM-DD")]),p=u(""),L=u([]),Y=u(!0);const C=w(()=>Number(y.value.pdidcr_traffic_total/1024/1024||0).toFixed(1)),P=w(()=>Number((y.value.pdidcr_traffic_total-y.value.pdidcr_traffic_remain)/1024/1024||0).toFixed(2)),A=w(()=>Number((P.value/C.value*100).toFixed(0))||0),N=u([{label:m("user.overviewTab.products.main.account[0]"),value:"main"},{label:m("user.overviewTab.products.main.account[1]"),value:"sub"}]),V=u([{label:m("user.overviewTab.products.main.time[0]"),value:"Yesterday"},{label:m("user.overviewTab.products.main.time[1]"),value:"7"},{label:m("user.overviewTab.products.main.time[2]"),value:"30"}]),U=t=>{t=="7"?i.value=[c().subtract(6,"day").format("YYYY-MM-DD"),c().format("YYYY-MM-DD")]:t=="30"?i.value=[c().subtract(29,"day").format("YYYY-MM-DD"),c().format("YYYY-MM-DD")]:i.value=[c().subtract(1,"day").format("YYYY-MM-DD"),c().format("YYYY-MM-DD")],g()},R=t=>{f.value=t.value,t.value=="sub"?h.value.dispose():g()},G=t=>((t||0)*1/1024/1024).toFixed(2);W(()=>{g(),z()});const z=async()=>{await H({language:S.value,product_type:12}).then(({code:t,data:a,msg:r})=>{t==200&&(L.value=a.list)})},g=async()=>{if(f.value=="sub"&&!p.value)return B.error(m("user.staticTab.msg"));Y.value=!0;let{code:t,data:a,msg:r}=await Q({start_time:i.value[0],end_time:i.value[1],product_type:12,username:f.value=="sub"?p.value:""});if(t==200){let n=[],D=[];a.list.forEach(T=>{n.push(T.day),D.push((T.flow*1/1024).toFixed(2))}),E(n,D)}else B.error(r),Y.value=!1},E=(t,a)=>{h.value=X(_e(document.getElementById("main")));let r={tooltip:{trigger:"axis",formatter:n=>`<div> 2 <div>${n[0].marker} ${n[0].name}: <span>${n[0].data} MB</span></div> 3 </div>`},grid:{left:"3%",right:"4%",bottom:"3%"},xAxis:{type:"category",boundaryGap:!1,data:t},yAxis:{type:"value",axisLabel:{formatter:n=>(+n).toFixed(2)+"MB"}},series:[{type:"line",data:a,itemStyle:{color:"#0056fb"}}]};r&&h.value.setOption(r),window.onresize=function(){h.value.resize()},Y.value=!1};return(t,a)=>{const r=Z,n=le,D=ie,T=ne,O=re,j=oe;return d(),v("div",be,[e("div",he,[e("div",ye,[e("div",Ye,[a[2]||(a[2]=e("img",{loading:"lazy",width:"44",height:"44",src:ge,alt:"ProxyLite"},null,-1)),e("span",null,o(t.$t("ProductNames.LongActingISPProxies")),1)]),e("div",De,[_(r,{to:"/buy/long-acting-isp/"},{default:b(()=>[$(o(t.$t("user.overviewTab.products.main.Recharge")),1)]),_:1}),_(r,{to:"/user/getproxy/extract/"},{default:b(()=>[$(o(t.$t("user.overviewTab.products.main.Come")),1)]),_:1})])]),e("div",Te,[e("div",we,[e("div",$e,[$(o(t.$t("common.RemainingTraffic"))+": ",1),e("span",null,o(`${G(l(y).pdidcr_traffic_remain)} GB`),1)]),e("ul",ke,[e("li",null,[a[3]||(a[3]=e("div",{class:"bg"}
3,null,-1)),e("div",Me,o(t.$t("common.UsedTraffic")),1)]),e("li",null,[a[4]||(a[4]=e("div",{class:"bg"},null,-1)),e("div",xe,o(t.$t("common.TotalTraffic")),1)])])]),_(n,{percent:l(A),showInfo:!1,strokeColor:"#ffbe4f",strokeLinecap:"butt"},null,8,["percent"]),e("div",Le,[e("span",null,o(`${t.$t("common.UsedTraffic")}: ${l(P)} GB`),1),e("span",null,o(`${t.$t("common.TotalTraffic")}: ${l(C)} GB`),1)])])]),e("div",Ce,[_(j,{attach:"#attach",loading:l(Y)},{default:b(()=>[e("div",Pe,[e("div",Ie,[(d(!0),v(M,null,x(l(N),s=>(d(),v("div",{class:ee(["account-item",{active:l(f)==s.value}]),onClick:k=>R(s),key:s.value},o(s.label),11,Be))),128))]),e("div",Fe,[te(_(T,{onChange:g,modelValue:l(p),"onUpdate:modelValue":a[0]||(a[0]=s=>F(p)?p.value=s:p=s),placeholder:t.$t("user.residentialTab.plr")},{default:b(()=>[(d(!0),v(M,null,x(l(L),(s,k)=>(d(),ae(D,{key:k,value:s.username,label:s.username},{default:b(()=>[$(o(s.username),1)]),_:2},1032,["value","label"]))),128))]),_:1},8,["modelValue","placeholder"]),[[se,l(f)=="sub"]]),(d(!0),v(M,null,x(l(V),s=>(d(),v("div",{class:"time",key:s.value,onClick:k=>U(s.value)},o(s.label),9,Se))),128)),_(O,{modelValue:l(i),"onUpdate:modelValue":a[1]||(a[1]=s=>F(i)?i.value=s:i=s)},null,8,["modelValue"]),e("div",{class:"button",onClick:g},o(t.$t("help.Search")),1)])]),a[5]||(a[5]=e("div",{id:"main"},null,-1))]),_:1},8,["loading"])])])}}},lt=J(Ae,[["__scopeId","data-v-3a248a6f"]]);export{lt 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.