PageSourceSearch

https://www.coinex.com/_nuxt3/BWfWYjMN00.js

js coinex.com collected 2026-10-01 10:34:22 UTC 8,064 bytes, 1 lines download raw bytes

1import{_ as H}from"./B-lYVHzI00.js";import{_ as M,a as G,b as q}from"./CALZpM8200.js";import{b as J}from"./BkhSHDnN00.js";import{_ as X,a as Z}from"./BvqnUqmk00.js";import{o as R,M as x,O as b,E as N,K as n,X as m,P as l,ac as L,q as i,U as $,Y as y,a2 as j,z as f,w as Y,e as Q,a4 as W,a5 as ee,Z as te,r as ae}from"./vendor-vue.Bkrwerli00.js";import{s as K,a as ne}from"./vendor-pinia.BCP_UPQS00.js";import{d as le,aq as oe,k as se,b as re,m as ie}from"./CCxh76Uf00.js";import{_ as ue}from"./DRW1NIml00.js";import{u as de}from"./BdAkS-xL00.js";import{u as me}from"./C9lS1zR000.js";import{p as pe,u as ce}from"./vendor-lodash.lV5qy58S00.js";import"./B1RdYMzA00.js";import"./vendor-vue-router.DXGbvEEn00.js";import"./BfPgK-ff00.js";import"./Ceyi9NyC00.js";const _e={class:"c-p2p-filter-in-progress"},fe={key:0,class:"filter-wrapper-md"},ve={class:"flex"},ge={class:"text-center"},Ve={class:"text-16 font-w600 ui0-text-primary"},Ce={class:"filter-content"},Pe={class:"filter-label"},Se={class:"filter-label mt-28"},he={class:"filter-label mt-28"},ye={class:"filter-label mt-28"},Te={class:"filter-label mt-28"},Ue={class:"filter-label mt-28"},Fe={class:"mt-32"},Oe={key:1,class:"filter-wrapper"},De={__name:"FilterOrderInProgress",emits:["init","filterChange"],setup(k,{emit:T}){const U=[["交易方向","数字货币","日期","法币币种","状态","确认","筛选","订单类型"],["交易方向","数字货币","日期","法币币种","状态","确认","筛选","订单类型","zh_Hans_CN"],["交易方向","數字貨幣","日期","法幣幣種","狀態","確認","篩選","訂單類型","zh_Hant_HK"],["Trading Type","Cryptocurrency","Date","Fiat Currency","Status","Confirm","Filter","Order Type","en_US"],["Jenis Perdagangan","Aset Kripto","Tanggal","Fiat","Status","Konfirmasi","Filter","Jenis Pesanan","id_ID"],["取引タイプ","暗号資産","日付","フィアット","ステータス","確認する","選別","注文タイプ","ja_JP"],["거래 유형","암호화폐","일시","법정 화폐 종류","상태","확인하기","선별","주문 유형","ko_KP"],["Тип торговли","Криптовалюта","Дата","Фиатная валюта","Статус","Подтвердить","Фильтр","Тип ордера","ru_KZ"],["İşlem Türü","Kripto Para","Tarih","İtibari Para Birimi","Durum","Onayla","Seç","Emir Türü","tr_TR"],["Loại giao dịch","Tiền điện tá»­","Ngày","Tiền pháp định","Trạng thái","Xác nhận","Lá»±a chọn","Loại lệnh","vi_VN"],["Tipo de Transação","Criptomoeda","Data","Moeda fiduciária","Status","Confirmar","Filtro","Tipo de ordem","pt_PT"],[" نوع التداول","العملة المشفرة","التاريخ","عملة فيات","الحالة","تأكيد","التصفية","نÙ
1ˆØ¹ الطلب","ar_AE"],["Tipo","Criptomoneda","Fecha","Moneda fiat","Estado","Confirmar","Filtro","Tipo de orden","es_ES"]],w=U.slice(1).reduce((v,e)=>({...v,[e.at(-1)]:U[0].reduce((S,a,d)=>({...S,[a]:e[d]}),{})}),{}),_=v=>{const S=ne().$lang.value||"zh_Hans_CN",a=w[S]||w.zh_Hans_CN||{};return a[v]===void 0?v:a[v]},O=T,{screens:r}=K(le()),o=f([]),u=f(""),p=f(""),g=f(""),V=f(""),C=f(""),P=f(""),F=f(!1);function D(){return{date:o.value,type:u.value,order_type:p.value,status:g.value,fiat:V.value,coin:C.value,search:P.value}}function s(){const v=D();O("filterChange",v)}function I(){F.value=!1}return R(()=>{O("init",D())}),(v,e)=>{const S=H,a=M,d=J,c=G,h=X,E=Z,A=q,z=x("via-button"),B=x("via-drawer");return b(),N("div",_e,[n(r).md?(b(),N("div",fe,[m("div",ve,[l(S,{modelValue:n(P),"onUpdate:modelValue":e[0]||(e[0]=t=>i(P)?P.value=t:null),class:"flex-1",onChange:s,onKeyup:L(s,["enter"])},null,8,["modelValue"]),m("div",{class:"btn-filter ms-24",onClick:e[1]||(e[1]=t=>F.value=!0)},[...e[16]||(e[16]=[m("i",{class:"iconfont icon-filter"},null,-1)])])]),l(B,{visible:n(F),"onUpdate:visible":e[8]||(e[8]=t=>i(F)?F.value=t:null),class:"c-p2p-order-filter-drawer","show-close":!0,"append-to-body":!0},{title:$(()=>[m("div",ge,[m("span",Ve,y(_("筛选")),1)])]),default:$(()=>[m("div",Ce,[m("div",Pe,y(_("日期")),1),l(a,{modelValue:n(o),"onUpdate:modelValue":e[2]||(e[2]=t=>i(o)?o.value=t:null),onChange:s},null,8,["modelValue"]),m("div",Se,y(_("状态")),1),l(d,{modelValue:n(g),"onUpdate:modelValue":e[3]||(e[3]=t=>i(g)?g.value=t:null),type:"inProgress",onChange:s},null,8,["modelValue"]),m("div",he,y(_("交易方向")),1),l(c,{modelValue:n(u),"onUpdate:modelValue":e[4]||(e[4]=t=>i(u)?u.value=t:null),onChange:s},null,8,["modelValue"]),m("div",ye,y(_("订单类型")),1),l(h,{modelValue:n(p),"onUpdate:modelValue":e[5]||(e[5]=t=>i(p)?p.value=t:null),onChange:s},null,8,["modelValue"]),m("div",Te,y(_("法币币种")),1),l(E,{modelValue:n(V),"onUpdate:modelValue":e[6]||(e[6]=t=>i(V)?V.value=t:null),onChange:s},null,8,["modelValue"]),m("div",Ue,y(_("数字货币")),1),l(A,{modelValue:n(C),"onUpdate:modelValue":e[7]||(e[7]=t=>i(C)?C.value=t:null),onChange:s},null,8,["modelValue"]),m("div",Fe,[l(z,{class:"w-full",type:"area",size:"40",radius:"round",onClick:I},{default:$(()=>[j(y(_("确认")),1)]),_:1})])])]),_:1},8,["visible"])])):(b(),N("div",Oe,[l(d,{modelValue:n(g),"onUpdate:modelValue":e[9]||(e[9]=t=>i(g)?g.value=t:null),type:"inProgress",onChange:s},null,8,["modelValue"]),l(c,{modelValue:n(u),"onUpdate:modelValue":e[10]||(e[10]=t=>i(u)?u.value=t:null),class:"ms-12",onChange:s},null,8,["modelValue"]),l(h,{modelValue:n(p),"onUpdate:modelValue":e[11]||(e[11]=t=>i(p)?p.value=t:null),class:"ms-12",onChange:s},null,8,["modelValue"]),l(E,{modelValue:n(V),"onUpdate:modelValue":e[12]||(e[12]=t=>i(V)?V.value=t:null),class:"ms-12",onChange:s},null,8,["modelValue"]),l(A,{modelValue:n(C),"onUpdate:modelValue":e[13]||(e[13]=t=>i(C)?C.value=t:null),class:"ms-12",onChange:s},null,8,["modelValue"]),l(S,{modelValue:n(P),"onUpdate:modelValue":e[14]||(e[14]=t=>i(P)?P.value=t:null),class:"ms-12",onChange:s,onKeyup:L(s,["enter"])},null,8,["modelValue"]),l(a,{modelValue:n(o),"onUpdate:modelValue":e[15]||(e[15]=t=>i(o)?o.value=t:null),class:"ms-12",onChange:s},null,8,["modelValue"])]))])}}},Ie={class:"p-p2p-order-in-progress"},be={key:0,class:"my-50"},qe={__name:"index",setup(k){const T=de(),U=oe(),{countPending:w}=K(T),{initPolling:_,skipPolling:O}=me(),r=f({}),o=ae({current:1,total:0,limit:10}),u=f([]),p=f(!1);Y(w,(a,d)=>{a!==d&&s()}),R(()=>{g()}),Q(()=>{T.CLEAR_POLLING_ORDERS(),U.CLEAR_UNREAD_STATUS()});function g(a){_("orderStatus",V,5e3,!1),_("unread",C,5e3,!1)}async function V(){await T.updateStatus()}async function C(){await U.updateUnreadStatus(!1)}function P(a){const d=a.map(h=>h.order_id),c=ce(a.map(h=>h.session_id));T.SET_POLLING_STATUS_IDS(d),U.SET_POLLING_UNREAD_IDS(c)}function F(){O("orderStatus"),T.updateStatus(),O("unread"),U.updateUnreadStatus(!1)}function D(){I(!0)}async function s(){await I(),!u.value.length&&o.current>1&&(o.current--,await I())}async function I(a){if(!p.value){a&&(p.value=!0);try{const d=v(),c=await se("/p2p/order/list",d);c?.code===0?(u.value=c.data?.orders||[],o.total=c.data?.total||0,P(u.value),F()):c?.message&&a&&re(c.message)}catch(d){a&&ie(d)}p.value=!1}}function v(){const a=r.value.status?r.value.status==="PAID"?["PAID","TO_FINISH"]:[r.value.status]:["CREATED","CONFIRMED","PAID","TO_FINISH"];return pe({statuses:a,side:r.value.type,order_type:r.value.order_type,fiat:r.value.fiat?[r.value.fiat]:"",assets:r.value.coin?[r.value.coin]:"",start_time:r.value.date?.[0]||"",end_time:r.value.date?.[1]||"",order_id:r.value.search,page:o.current,limit:o.limit})}function e(a){r.value=a,o.current=1,D()}function S(a){o.current=a,D()}return(a,d)=>{const c=De,h=ue,E=x("via-pagination"),A=W("via-loading");return b(),N("div",Ie,[l(c,{class:"mt-32 md:mt-0",onInit:e,onFilterChange:e}),ee(l(h,{class:"mt-20",orders:n(u)},null,8,["orders"]),[[A,n(p)]]),n(u)&&n(u).length?(b(),N("div",be,[l(E,{class:"relative p-0 -end-8 md:end-0","select-limit-visible":!1,"current-page":n(o).current,total:n(o).total,"page-size":n(o).limit,onCurrentChange:S},null,8,["current-page","total","page-size"])])):te("",!0)])}}};export{qe 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.