import{r as e,j as s}from"./app-61e75031.js";import{C as t}from"./index-0af180fb.js";import{C as a}from"./index-33422928.js";import{g as i,b as l,i as n}from"./local-95ab843f.js";import{C as o}from"./index-1db4bfc2.js";import"./auth-db23b820.js";class r extends e.Component{constructor(e){super(e),this.valueChange=(e,s)=>{this.setState({[s]:e})},this.state={user:"",pairs:"",direction:"",exchange:"",userSelect:{label:"用户",options:i()},directionSelect:{label:"方向",options:l("position_side")},exchangeSelect:{label:"交易所",options:l("exchange")}}}onFilter(e){this.props.FilterChange&&this.props.FilterChange(e)}render(){const{userSelect:e,exchange:i,directionSelect:l,exchangeSelect:r}=this.state;return s.jsxs("div",{className:[n()?"custom-trade-select-box__mobile":""].join(" "),children:[s.jsxs("div",{className:["custom-trade-select-box"].join(" "),children:[s.jsxs("div",{className:"custom-trade-select",children:[s.jsx("span",{className:"label",children:e.label}),s.jsx(t,{className:"real-trade-select",name:"user",value:this.state.user,options:e.options,onChange:this.valueChange})]}),s.jsxs("div",{className:"custom-trade-input",children:[s.jsx("span",{className:"label",children:"交易对"}),s.jsx(o,{name:"pairs",value:this.state.pairs,onChange:this.valueChange})]}),s.jsxs("div",{className:"custom-trade-select",children:[s.jsx("span",{className:"label",children:l.label}),s.jsx(t,{name:"direction",value:this.state.direction,className:"real-trade-select",options:l.options,onChange:this.valueChange})]}),s.jsxs("div",{className:"custom-trade-select",children:[s.jsx("span",{className:"label",children:r.label}),s.jsx(t,{name:"exchange",value:i,className:"real-trade-select",options:r.options,onChange:this.valueChange})]}),s.jsx(a,{onClick:this.onFilter.bind(this,{exchange_users_id:this.state.user,symbol:this.state.pairs,position_side:this.state.direction,exchange:this.state.exchange}),children:"查询"}),s.jsx(a,{onClick:this.onFilter.bind(this,{exchange_users_id:this.state.user,symbol:this.state.pairs,position_side:this.state.direction,exchange:this.state.exchange}),children:"刷新"})]}),this.props.children]})}}export{r as default};
