1import{_ as H}from"./BvWtaWD2.js";import{_ as P}from"./BknL7_eZ.js";import{u as I,_ as O}from"./qs8_gATm.js";import{u as L}from"./CZe-7otn.js";import{d as N,u as $,y as z,$ as A,k as R,s as j,v as q,B as E,c as M,b as c,a as o,t as U,h as a,w as _,j as F,o as y,l as G,m as J,n as K,i as Q}from"./CYMs3uwY.js";import{a as W}from"./DHA0qeWX.js";import"./CFprKcbD.js";import"./B2OIvZH8.js";import"./ChMfYSUz.js";import"./DkOf9YSu.js";import"./BA_hDSs6.js";import"./B9sshpbS.js";import"./rOmQOW4P.js";import"./z1i7nWYm.js";import"./CBzBOmYY.js";import"./CZ9UXHJB.js";import"./DDsDBead.js";import"./Uuexxa7j.js";import"./Dt8ZZmnv.js";import"./lSsM6icv.js";import"./Dd_lGV5x.js";const X={class:"orders-history-container"},Y={class:"orders-history-top"},Z={class:"account-info-content"},tt={class:"nav-switch-content"},et={class:"orders-history-table-container"},st={class:"top-content"},at={class:"panel-input-content"},ot=["value","placeholder"],nt=N({__name:"index",async setup(rt){let n,u;const{t:p}=$(),{currency:v}=z(),{statusMap:f,fetchOrdersHistoryList:d}=I(),i=A().query.active||0,h=p("order"),e=R({currency:v,current:1,size:10,countTotal:!0,keyword:"",status:i!=0?i:null,countAllTab:!0}),m=()=>{e.value.current=1},k=()=>{e.value.keyword="",m(),e.value.size=10},w=t=>{e.value.status!==t.key&&(k(),D(),e.value.status=t.key)},{tabs:g,ordersHistoryList:r}=([n,u]=j(()=>d(e.value)),n=await n,u(),n),b=q(()=>{var t;return(t=r.value)!=null&&t.records?r.value.records.map(s=>({...s,status:f[s.status.toString()]||s.status.toString()})):[]});E(()=>e.value,async t=>{await d(t)},{deep:!0});const{values:x,updateValue:C,clearValues:D}=L({fields:{keyword:{initialValue:"",transform:t=>String(t).trim(),validator:t=>t.length<=100}},callback:async t=>{e.value.keyword=W(t.keyword),m()}});return(t,s)=>{const S=H,T=P,V=O,B=F("DynaPanel");return y(),M("div",X,[c(S,{title:"Orders History"}),o("div",Y,[o("div",Z,[o("span",null,U(a(h)),1)]),o("div",tt,[c(T,{tabs:a(g),"initial-active-key":a(i),onTabChange:w},null,8,["tabs","initial-active-key"])])]),o("div",et,[c(B,null,{"top-free":_(()=>[o("div",st,[o("div",at,[s[2]||(s[2]=o("i",{class:"fa-light fa-magnifying-glass"},null,-1)),o("input",{value:a(x).keyword.value,placeholder:a(p)("enter"),onInput:s[0]||(s[0]=l=>a(C)("keyword",l.target.value))},null,40,ot)])])]),default:_(()=>[a(r)?(y(),G(V,{key:0,params:a(e),"onUpdate:params":s[1]||(s[1]=l=>J(e)?e.value=l:null),"data-list":a(b),total:a(r).total,"is-view-all-link":!1,"is-pagination":!0},null,8,["params","data-list","total"])):K("",!0)]),_:1})])])}}}),Vt=Q(nt,[["__scopeId","data-v-60fbdfe7"]]);export{Vt 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.