import{o as a,a as s,h as e,e as t,g as l,t as o,l as i,q as n,d as c,L as u,f as d,u as r,j as m,C as v,F as p,i as f,w as h,am as g,ak as C,m as y,y as _,aA as b}from"./vendor-edc0678f.js";import{_ as k,c as w,u as j,a as L,w as x,f as I,an as T,ao as N,b as q}from"./index-4c745ab9.js";import{C as O}from"./currentcyNum-ee931864.js";import{j as S}from"./filters-692458bf.js";const A={class:"left"},P={class:"itemTitle"},z={class:"itemTitleTop"},B={class:"fw-bold"},E=k({__name:"left",props:{showLeftImg:{type:Boolean,default:!0},data:{type:Object,default:()=>{}}},setup:i=>(n,c)=>{const u=w;return a(),s("div",A,[i.showLeftImg?(a(),e(u,{key:0,filePath:i.data.logo,class:"leftImg"},null,8,["filePath"])):t("",!0),l("div",P,[l("div",z,[l("div",B,o(i.data.showSymbol),1)])])])}},[["__scopeId","data-v-a9af56e4"]]),F={class:"search"},U={class:"contain"},V=["placeholder"],D={class:"currencyList"},G=["onClick"],H={class:"item"},J={style:{position:"fixed",top:"30%",left:"50%",transform:"translate(-50%, -50%)"}},K=k({__name:"addOptional",emits:["linkTo"],setup(e,{emit:t}){const k=i(!1),w=j(),A=i(""),P=i([]),z=()=>{P.value=S(w.secondContractCoinList,A.value)};i(),n(()=>{P.value=w.secondContractCoinList});L().setTradeStatus(Number(-1));const B=c();u();const K=t;return(e,t)=>{const i=q,n=b,c=g;return a(),s(p,null,[d(x,{currentName:r(I)("quote_addOwn")},null,8,["currentName"]),l("div",F,[d(i,{name:"sousuo-h",class:"searchImg"}),l("div",U,[m(l("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=a=>A.value=a),class:"inputSearch",placeholder:r(I)("quote_search"),onInput:z},null,40,V),[[v,A.value,void 0,{trim:!0}]]),l("div",{class:"over",onClick:z},o(r(I)("quote_finish")),1)])]),l("div",D,[(a(!0),s(p,null,f(P.value,(e,t)=>(a(),s("div",{class:"itemEvery",key:t,onClick:a=>(a=>{B.push("/trade?symbol=".concat(a.coin)),K("linkTo",a.coin,Number(0))})(e)},[l("div",H,[d(E,{data:e},null,8,["data"]),d(O,{data:e},null,8,["data"]),d(i,{onClick:C(a=>(a=>{k.value=!0;let s={coin:null==a?void 0:a.coin};2===a.isCollect?(s.icon=null==a?void 0:a.logo,T(s).then(a=>{"200"==a.code?(w.getCoinList(),setTimeout(()=>{k.value=!1},500)):(k.value=!1,_(a.msg))})):N(s).then(a=>{"200"==a.code?(w.getCoinList(),setTimeout(()=>{k.value=!1},500)):(k.value=!1,_(a.msg))})})(e),["stop"]),name:1===e.isCollect?"tianjia18x16-x":"tianjia18x16-w",class:"rightImg"},null,8,["onClick","name"])])],8,G))),128))]),d(c,{show:k.value,"z-index":"100","custom-style":{background:"rgba(0, 0, 0, .6)"}},{default:h(()=>[l("div",J,[d(n,{vertical:"",color:"#17AC74"},{default:h(()=>[y(o(r(I)("loading"))+"...",1)]),_:1})])]),_:1},8,["show","custom-style"])],64)}}},[["__scopeId","data-v-33add1bb"]]);export{K as default};
