"use strict";(self["webpackChunkexchange"]=self["webpackChunkexchange"]||[]).push([[5395],{92266:function(t,e,i){i.d(e,{A:function(){return h}});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"buy_nav",attrs:{id:"buy_nav"}},[i("van-nav-bar",{staticClass:"font-36 border-none",attrs:{title:t.title},on:{"click-left":t.onClickLeft},scopedSlots:t._u([{key:"left",fn:function(){return[t._t("left",(function(){return[i("van-icon",{attrs:{name:"arrow-left"}})]}))]},proxy:!0},{key:"title",fn:function(){return[t._t("title")]},proxy:!0},{key:"right",fn:function(){return[t._t("right")]},proxy:!0}],null,!0)})],1)},l=[],r=(i(63212),i(96874)),s=(i(64258),i(31864)),c={name:"OrderNav",props:{title:{},state:{},back:{default:!0}},data(){return{}},methods:{onClickLeft(){this.back?this.$router.back():this.$emit("back")}},components:{[s.A.name]:s.A,[r.A.name]:r.A}},o=c,a=i(81656),u=(0,a.A)(o,n,l,!1,null,"fb843b68",null),h=u.exports},29135:function(t,e,i){i.d(e,{A:function(){return a}});var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"buy-input relative"},[n("img",{staticClass:"w-40 h-40 absolute left-24",attrs:{src:i(31567),alt:""}}),n("input",{staticClass:"w-full box-border pl-80",attrs:{readonly:t.readonly,type:"text",placeholder:t.placeholder},domProps:{value:t.value},on:{input:t.changeVal,focus:t.focus}})])},l=[],r={name:"BuyInput",props:["value","placeholder","isReadonly"],data(){return{readonly:!1}},mounted(){this.isReadonly?this.readonly=this.isReadonly:this.readonly=!1},methods:{focus(t){this.$emit("focus",t.target.value)},changeVal(t){this.$emit("input",t.target.value)}}},s=r,c=i(81656),o=(0,c.A)(s,n,l,!1,null,"42c13dd2",null),a=o.exports},84273:function(t,e,i){i.r(e),i.d(e,{default:function(){return A}});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"100%",height:"100%"}},[i("div",{staticClass:"top w-full"},[i("order-nav",{staticClass:"mb-20",attrs:{title:t.$t("选择法币")}}),i("div",{staticClass:"h-72 pl-32 pr-32 pb-24",on:{click:function(e){t.showSearch=!0}}},[i("buy-input",{attrs:{isReadonly:!0,placeholder:t.$t("请输入法币")}})],1)],1),i("div",{staticStyle:{width:"100%"}},[i("p",{staticClass:"jiao"},[t._v(t._s(t.$t("全部法币")))])]),i("div",{staticStyle:{width:"100%",flex:"1",overflow:"auto"}},[i("van-index-bar",{attrs:{"sticky-offset-top":100,sticky:!1}},t._l(t.items,(function(e,n){return i("div",{key:n},[i("van-index-anchor",{staticClass:"pt-10 pb-10",attrs:{index:e.title}}),t._l(e.labels,(function(e,n){return i("div",{key:n,staticClass:"payment_method_cell flex items-center ml-50 pt-8 pb-8",on:{click:function(i){return t.onSelectCurrency(e)}}},[i("span",{staticClass:"first"},[t._v(t._s(e.fLabel))]),i("van-cell",{attrs:{title:e.label}})],1)}))],2)})),0)],1),i("div",{directives:[{name:"show",rawName:"v-show",value:t.showSearch,expression:"showSearch"}],staticClass:"fixed-search"},[i("div",{staticClass:"search h-72 pb-24 flex justify-between items-center"},[i("buy-input",{attrs:{placeholder:t.$t("请输入法币")},on:{input:t.inputChange},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}}),i("span",{staticClass:"close-q",on:{click:function(e){t.showSearch=!1}}},[t._v(t._s(t.$t("取消")))])],1),i("div",{staticClass:"search-main"},[0===t.searchValue.length||0===t.searchList.length?i("div",{staticClass:"clear"},[i("p",[t._v(t._s(t.$t("历史搜索")))]),i("p",[t._v(t._s(t.$t("没有历史记录")))])]):i("div",{staticClass:"search-li"},t._l(t.searchList,(function(e,n){return i("p",{key:n,domProps:{innerHTML:t._s(t.filterStr(e.label))},on:{click:function(i){return t.onSelectCurrency(e)}}})})),0)])])])},l=[],r=(i(72161),i(9471)),s=(i(59325),i(61113)),c=(i(42345),i(83965)),o=i(92266),a=i(29135),u=i(93518),h=i(94348),d={name:"AddPaymentMethod",data(){return{showSearch:!1,searchValue:"",list:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","#"],searchList:[]}},async created(){await this.SET_FIAT_LIST()},computed:{...(0,u.L8)("c2c",["fiatList"]),items(){return this.fiatList}},methods:{...(0,u.i0)("c2c",["SET_FIAT_LIST"]),...(0,u.PY)("c2c",["SET_CURRENCY","SET_CURRENCY_SYMBOL"]),filterStr(t){return this.heightLight(t,this.searchValue)},heightLight(t,e){const i=new RegExp(e,"ig");return t.replace(i,(t=>`<span style="color:#1D91FF">${t}</span>`))},inputChange(t){let e=[];this.items.forEach((t=>{e=e.concat(t.labels)})),this.searchList=e.filter((e=>-1!==e.label.indexOf(t.toUpperCase())))},onSelectCurrency(t){h.log("item",t),this.SET_CURRENCY(t.currency),this.SET_CURRENCY_SYMBOL(t.currency_symbol),this.$router.go(-1)}},components:{[c.A.name]:c.A,[s.A.name]:s.A,[r.A.name]:r.A,OrderNav:o.A,BuyInput:a.A}},f=d,v=i(81656),p=(0,v.A)(f,n,l,!1,null,"2ce5e9ee",null),A=p.exports},90504:function(){},9471:function(t,e,i){var n=i(51137),l=i(4250),r=i.n(l),s=i(47456),c=i(33448),o=i(15827),a=i(39763),u=i(31994),h=i(96874),d=(0,s.Y)("cell"),f=d[0],v=d[1];function p(t,e,i,n){var l,s=e.icon,u=e.size,d=e.title,f=e.label,p=e.value,A=e.isLink,g=i.title||(0,c.C8)(d);function C(){var n=i.label||(0,c.C8)(f);if(n)return t("div",{class:[v("label"),e.labelClass]},[i.label?i.label():f])}function x(){if(g)return t("div",{class:[v("title"),e.titleClass],style:e.titleStyle},[i.title?i.title():t("span",[d]),C()])}function y(){var n=i.default||(0,c.C8)(p);if(n)return t("div",{class:[v("value",{alone:!g}),e.valueClass]},[i.default?i.default():t("span",[p])])}function m(){return i.icon?i.icon():s?t(h.A,{class:v("left-icon"),attrs:{name:s,classPrefix:e.iconPrefix}}):void 0}function b(){var n=i["right-icon"];if(n)return n();if(A){var l=e.arrowDirection;return t(h.A,{class:v("right-icon"),attrs:{name:l?"arrow-"+l:"arrow"}})}}function S(t){(0,o.Ic)(n,"click",t),(0,a.BC)(n)}var k=null!=(l=e.clickable)?l:A,w={clickable:k,center:e.center,required:e.required,borderless:!e.border};return u&&(w[u]=u),t("div",r()([{class:v(w),attrs:{role:k?"button":null,tabindex:k?0:null},on:{click:S}},(0,o.IL)(n)]),[m(),x(),y(),b(),null==i.extra?void 0:i.extra()])}p.props=(0,n.A)({},u.z,a.aI),e.A=f(p)},31994:function(t,e,i){i.d(e,{z:function(){return n}});var n={icon:String,size:String,center:Boolean,isLink:Boolean,required:Boolean,iconPrefix:String,titleStyle:null,titleClass:null,valueClass:null,labelClass:null,title:[Number,String],value:[Number,String],label:[Number,String],arrowDirection:String,border:{type:Boolean,default:!0},clickable:{type:Boolean,default:null}}},72161:function(t,e,i){i(76952),i(98992),i(22795),i(90504)},61113:function(t,e,i){var n=i(47456),l=i(99297),r=i(56374),s=i(32486),c=(0,n.Y)("index-anchor"),o=c[0],a=c[1];e.A=o({mixins:[(0,l.b)("vanIndexBar",{indexKey:"childrenIndex"})],props:{index:[Number,String]},data:function(){return{top:0,left:null,rect:{top:0,height:0},width:null,active:!1}},computed:{sticky:function(){return this.active&&this.parent.sticky},anchorStyle:function(){if(this.sticky)return{zIndex:""+this.parent.zIndex,left:this.left?this.left+"px":null,width:this.width?this.width+"px":null,transform:"translate3d(0, "+this.top+"px, 0)",color:this.parent.highlightColor}}},mounted:function(){var t=this.$el.getBoundingClientRect();this.rect.height=t.height},methods:{scrollIntoView:function(){this.$el.scrollIntoView()},getRect:function(t,e){var i=this.$el,n=i.getBoundingClientRect();return this.rect.height=n.height,t===window||t===document.body?this.rect.top=n.top+(0,s.Td)():this.rect.top=n.top+(0,s.hY)(t)-e.top,this.rect}},render:function(){var t,e=arguments[0],i=this.sticky;return e("div",{style:{height:i?this.rect.height+"px":null}},[e("div",{style:this.anchorStyle,class:[a({sticky:i}),(t={},t[r.n_]=i,t)]},[this.slots("default")||this.index])])}})},59325:function(t,e,i){i(76952)},83965:function(t,e,i){i(44114);var n=i(47456),l=i(33448),r=i(73474),s=i(48499),c=i(32486),o=i(28722),a=i(99297),u=i(2879);function h(){for(var t=[],e="A".charCodeAt(0),i=0;i<26;i++)t.push(String.fromCharCode(e+i));return t}var d=(0,n.Y)("index-bar"),f=d[0],v=d[1];e.A=f({mixins:[o.B,(0,a.G)("vanIndexBar"),(0,u.x)((function(t){this.scroller||(this.scroller=(0,c.Rm)(this.$el)),t(this.scroller,"scroll",this.onScroll)}))],props:{zIndex:[Number,String],highlightColor:String,sticky:{type:Boolean,default:!0},stickyOffsetTop:{type:Number,default:0},indexList:{type:Array,default:h}},data:function(){return{activeAnchorIndex:null}},computed:{sidebarStyle:function(){if((0,l.C8)(this.zIndex))return{zIndex:this.zIndex+1}},highlightStyle:function(){var t=this.highlightColor;if(t)return{color:t}}},watch:{indexList:function(){this.$nextTick(this.onScroll)},activeAnchorIndex:function(t){t&&this.$emit("change",t)}},methods:{onScroll:function(){var t=this;if(!(0,r.d)(this.$el)){var e=(0,c.hY)(this.scroller),i=this.getScrollerRect(),n=this.children.map((function(e){return e.getRect(t.scroller,i)})),l=this.getActiveAnchorIndex(e,n);this.activeAnchorIndex=this.indexList[l],this.sticky&&this.children.forEach((function(r,s){if(s===l||s===l-1){var c=r.$el.getBoundingClientRect();r.left=c.left,r.width=c.width}else r.left=null,r.width=null;if(s===l)r.active=!0,r.top=Math.max(t.stickyOffsetTop,n[s].top-e)+i.top;else if(s===l-1){var o=n[l].top-e;r.active=o>0,r.top=o+i.top-n[s].height}else r.active=!1}))}},getScrollerRect:function(){return this.scroller.getBoundingClientRect?this.scroller.getBoundingClientRect():{top:0,left:0}},getActiveAnchorIndex:function(t,e){for(var i=this.children.length-1;i>=0;i--){var n=i>0?e[i-1].height:0,l=this.sticky?n+this.stickyOffsetTop:0;if(t+l>=e[i].top)return i}return-1},onClick:function(t){this.scrollToElement(t.target)},onTouchMove:function(t){if(this.touchMove(t),"vertical"===this.direction){(0,s.wo)(t);var e=t.touches[0],i=e.clientX,n=e.clientY,l=document.elementFromPoint(i,n);if(l){var r=l.dataset.index;this.touchActiveIndex!==r&&(this.touchActiveIndex=r,this.scrollToElement(l))}}},scrollTo:function(t){var e=this.children.filter((function(e){return String(e.index)===t}));e[0]&&(e[0].scrollIntoView(),this.sticky&&this.stickyOffsetTop&&(0,c.Fk)((0,c.Td)()-this.stickyOffsetTop),this.$emit("select",e[0].index))},scrollToElement:function(t){var e=t.dataset.index;this.scrollTo(e)},onTouchEnd:function(){this.active=null}},render:function(){var t=this,e=arguments[0],i=this.indexList.map((function(i){var n=i===t.activeAnchorIndex;return e("span",{class:v("index",{active:n}),style:n?t.highlightStyle:null,attrs:{"data-index":i}},[i])}));return e("div",{class:v()},[e("div",{class:v("sidebar"),style:this.sidebarStyle,on:{click:this.onClick,touchstart:this.touchStart,touchmove:this.onTouchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}},[i]),this.slots("default")])}})},42345:function(t,e,i){i(76952)},73474:function(t,e,i){function n(t){var e=window.getComputedStyle(t),i="none"===e.display,n=null===t.offsetParent&&"fixed"!==e.position;return i||n}i.d(e,{d:function(){return n}})},31567:function(t){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAN/SURBVHgB7Zh/ThpBFMffG3T1jyZyg+IJqiconqD6Z0ULJI2ERmk5gXoCjGgITRNo/dE/xRNAb6AncL0B/zSRZXembxC0u7O7swtok8bvP+Cwb/Yzb2beDwFe9J8LYUzVao1UH4w0IizQLEk5JjjcInDz1bx9lc/nuzAFxQKs1X6mbMZzAjCLIFLhM2MHBTS3C+vfYQJFAmw0GsnffaMiBOQgttCkl+yNC6oFrNZO0sDYBX1NwgSS3uzPWeVyzK0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