zzzz
2024-04-10 a835dca493534af6b7644bef2c4d3c678cdfca97
1
"use strict";(self["webpackChunkexchange"]=self["webpackChunkexchange"]||[]).push([[4381],{3717:function(t,e,i){i.d(e,{A:function(){return c}});var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"assetsHead"}},[i("van-nav-bar",{attrs:{border:!1,title:t.title,"left-arrow":t.showLeft},on:{"click-left":t.onClickLeft},scopedSlots:t._u([{key:"right",fn:function(){return[t._t("default")]},proxy:!0}],null,!0)})],1)},n=[],o=(i(44114),{name:"assets-head",props:{title:{type:String,default:""},goHome:{type:Boolean,default:!1},goAssetsCenter:{type:Boolean,default:!1},goPerpetualContract:{type:Boolean,default:!1},showLeft:{type:Boolean,default:!0},backFunc:{type:Function},clickFunc:{type:Function}},methods:{onClickLeft(){this.goHome?this.$router.push("/"):this.goAssetsCenter?this.$router.push("/assetsCenter/assets"):this.goPerpetualContract?this.$router.go(-2):this.backFunc?this.backFunc():this.clickFunc?this.clickFunc():this.$router.go(-1)}}}),r=o,a=i(81656),l=(0,a.A)(r,s,n,!1,null,"77f40d14",null),c=l.exports},14104:function(t,e,i){i.d(e,{A:function(){return u}});var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t.listData.length>0?t._l(t.listData,(function(e){return i("div",{key:e.order_no,staticClass:"border-b-color"},[i("div",{staticClass:"flex justify-between items-center pt-34 pb-19"},[i("div",{staticClass:"flex flex-col"},[i("div",{staticClass:"flex items-center"},[i("div",{staticClass:"font-31 w-100 buy-title",class:"buy"==e.direction?" text-green":"text-red"},[t._v(" "+t._s(t.handleWord(e.direction,e.offset,e.order_price_type))+" ")]),i("div",{staticClass:"ml-20 font-31 font-600 textColor"},[t._v(t._s(e.name))])])]),i("div",{staticClass:"text-grey font-26 flex flex-col justify-between"},[t._v(" "+t._s(e.create_time)+" ")])]),i("div",{staticClass:"flex justify-between pb-34"},[i("div",{staticClass:"flex items-center flex-between"},[i("div",{staticClass:"w-100"},[i("van-circle",{attrs:{rate:1-e.volume/e.volume_open*100,speed:100,text:t.text,"layer-color":"#EAEBEF","stroke-width":60,size:"65px"},model:{value:t.currentRate,callback:function(e){t.currentRate=e},expression:"currentRate"}})],1),i("div",{staticClass:"ml-62"},[i("div",{staticClass:"flex  items-center"},[i("div",{staticClass:"text-grey"},[i("div",[t._v(t._s(t.$t("数量")))])]),i("div",{staticClass:"ml-25 font-26 textColor"},[t._v(t._s(e.volume_open-e.volume)+"/"+t._s(e.volume_open))])]),i("div",{staticClass:"flex mt-35 items-center"},[i("div",{staticClass:"text-grey"},[t._v(t._s(t.$t("价格")))]),i("div",{staticClass:"ml-25 font-26 textColor"},[t._v(t._s(e.price))])])])]),i("div",{staticClass:"btn-wrap mt-75"},[i("button",{staticClass:"order-btn colorMain borderMain bg-white",on:{click:function(i){return i.stopPropagation(),t.goDetail(e)}}},[t._v(" "+t._s(t.$t("详情")))]),i("button",{staticClass:"ml-19 order-btn border-none greyBg",on:{click:function(i){return i.stopPropagation(),t.cancelSingle(e.order_no)}}},[t._v(" "+t._s(t.$t("撤单")))])])])])})):t._e(),t.listData.length?t._e():i("div",{staticClass:"text-grey text-center py-300"},[t._v(t._s(t.$t("还没有委托")))])],2)},n=[],o=(i(28215),i(7587)),r=(i(44114),i(93068)),a={name:"perpetualEntrustList",components:{[o.A.name]:o.A},props:{listData:{type:Array,default(){return[]}}},data(){return{currentRate:0,iconShow:!1}},computed:{text(){return this.currentRate.toFixed(0)+"%"}},mounted(){},methods:{handleWord(t,e,i){let s="",n="";return s="limit"===i?this.$t("限价"):this.$t("市价"),n="buy"===t&&"open"===e?this.$t("开多"):"sell"===t&&"open"===e?this.$t("开空"):"buy"===t&&"close"===e?this.$t("平多"):this.$t("平空"),s+"/"+n},changeIcon(){this.iconShow=!this.iconShow},goDetail(t){this.$router.push({path:"/entrustDetail?order_no="+t.order_no})},cancelSingle(t){(0,r.$$)(t).then((()=>{this.$toast(this.$t("撤单成功")),this.$emit("recall",t)}))},recallAll(){(0,r.vc)().then((()=>{this.$toast(this.$t("撤单成功")),this.$emit("recall")}))}}},l=a,c=i(81656),d=(0,c.A)(l,s,n,!1,null,"1a03bf14",null),u=d.exports},68118:function(t,e,i){i.d(e,{A:function(){return c}});var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t.listData.length>0?t._l(t.listData,(function(e){return i("div",{key:e.order_no,staticClass:"border-b-color list-item"},[i("div",{staticClass:"flex justify-between pt-30 pb-28"},[i("div",{staticClass:"flex items-center"},[i("div",{staticClass:"pl-28 pr-28 pt-10 pb-10 text-white rounded-md",class:"buy"==e.direction?" bg-green":"bg-red"},[t._v(" "+t._s("buy"==e.direction?t.$t("开多"):t.$t("开空"))+" ")]),i("div",{staticClass:"ml-22 font-30 font-700 textColor"},[t._v(t._s(e.name)+" "+t._s(t.$t("永续")))])])]),i("div",{staticClass:"flex justify-between pb-28"},[i("div",{staticClass:"text-grey"},[t._v(t._s(t.$t("价格")))]),i("div",{staticClass:"textColor"},[t._v(t._s(e.trade_avg_price))])]),i("div",{staticClass:"flex justify-between pb-28"},[i("div",{staticClass:"text-grey"},[t._v(t._s(t.$t("成交数量")))]),i("div",{staticClass:"textColor"},[t._v(t._s(e.volume_open))])]),i("div",{staticClass:"flex justify-between pb-28"},[i("div",{staticClass:"text-grey"},[t._v(t._s(t.$t("手续费")))]),i("div",{staticClass:"textColor"},[t._v(t._s(e.fee))])]),i("div",{staticClass:"flex justify-between pb-28"},[i("div",{staticClass:"text-grey"},[t._v(t._s(t.$t("实现盈亏")))]),i("div",{class:{"text-green":e.profit/1>0,"text-red":e.profit/1<0}},[t._v(t._s(e.profit/1>0?"+"+e.profit:e.profit))])]),i("div",{staticClass:"flex justify-between pb-28"},[i("div",{staticClass:"text-grey"},[t._v(t._s(t.$t("订单号")))]),i("div",{staticClass:"textColor"},[t._v(t._s(e.order_no))])]),i("div",{staticClass:"flex justify-between pb-28 items-center"},[i("div",{staticClass:"text-grey"},[t._v(t._s(t.$t("操作")))]),i("button",{staticClass:"border-none w-125 h-60  detail-btn  text-blue bg-none colorMain",on:{click:function(i){return t.goDetail(e)}}},[t._v(t._s(t.$t("详情")))])])])})):t._e()],2)},n=[],o=(i(44114),{name:"perpetualHistoryPosition",props:{listData:{type:Array,default(){return[]}}},data(){return{historyData:[{name:"BTC/USDT",direction:"buy",amount:"200",price:"23000",create_time:"2022-07-20 10:05:15"}]}},methods:{goDetail(t){this.$router.push({path:"/orderDetail?order_no="+t.order_no})}}}),r=o,a=i(81656),l=(0,a.A)(r,s,n,!1,null,"43c14960",null),c=l.exports},29645:function(t,e,i){i.r(e),i.d(e,{default:function(){return x}});var s=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"perpetualHistory"},[s("assets-head",{attrs:{title:t.$t("U本位合约历史"),backFunc:function(){t.$route.query.goback?t.$router.push({path:"/funds",query:{tab:2,index:0}}):t.$router.go(-1)}}}),s("div",[s("van-tabs",{ref:"tabs",attrs:{sticky:""},on:{change:t.onChange},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},t._l(t.selectData,(function(e){return s("van-tab",{key:e.title,attrs:{title:e.title,name:e.type}},[t.symbol?s("div",{staticClass:"all-select flex justify-end"},[s("div",{staticClass:"select-box flex",on:{click:function(e){e.stopPropagation(),t.isAll=!t.isAll}}},["wld"===t.symbol?s("div",{staticClass:"flex-1 font-24"},[t._v(" FTB/USDT ")]):"mln"===t.symbol?s("div",{staticClass:"flex-1 font-24"},[t._v(" DKL/USDT ")]):"qtum"===t.symbol?s("div",{staticClass:"flex-1 font-24"},[t._v(" BQHN/USDT ")]):"knc"===t.symbol?s("div",{staticClass:"flex-1 font-24"},[t._v(" XCM/USDT ")]):"vet"===t.symbol?s("div",{staticClass:"flex-1 font-24"},[t._v(" ACG/USDT ")]):s("div",{staticClass:"flex-1 font-24"},[t._v(" "+t._s(t.symbol.toUpperCase())+"/USDT ")]),s("van-icon",{attrs:{name:"arrow-down"}}),t.isAll?s("div",{staticClass:"select-data"},t._l(t.currencyList,(function(e,i){return s("div",{key:i,staticClass:"select-item font-24",on:{click:function(i){return i.stopPropagation(),t.selectItem(e)}}},[t._v(t._s(e.symbolFullName))])})),0):t._e()],1)]):t._e(),"orders"===t.type?[s("van-list",{attrs:{"loading-text":t.$t("加载中..."),finished:t.finished,"finished-text":t.dataList.orders.length?t.$t("已经全部加载完毕"):"",offset:130},on:{load:t.onLoad},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},["orders"===t.type?s("PerpetualEntrustList",{attrs:{"list-data":t.dataList.orders},on:{recall:t.recall}}):t._e(),t.dataList.orders.length||t.loading?t._e():s("div",{staticClass:"flex flex-col justify-center pt-50 pb-20 items-center"},[s("img",{staticClass:"w-180 h-180",attrs:{src:i(36928),alt:""}}),s("p",{staticClass:"text-grey mt-10"},[t._v(t._s(t.$t("暂无记录")))])])],1)]:t._e(),"hisorders"===t.type?[s("van-list",{attrs:{"loading-text":t.$t("加载中..."),finished:t.finished,"finished-text":t.dataList.hisorders.length?t.$t("已经全部加载完毕"):"",offset:130},on:{load:t.onLoad},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},[s("PerpetualHistoryPosition",{attrs:{"list-data":t.dataList.hisorders}}),t.dataList.hisorders.length||t.loading?t._e():s("div",{staticClass:"flex flex-col justify-center pt-50 pb-20 items-center"},[s("img",{staticClass:"w-180 h-180",attrs:{src:i(36928),alt:""}}),s("p",{staticClass:"text-grey mt-10"},[t._v(t._s(t.$t("暂无记录")))])])],1)]:t._e()],2)})),1)],1)],1)},n=[],o=(i(96356),i(162)),r=(i(1751),i(26852)),a=(i(7287),i(10339)),l=(i(57352),i(99502)),c=(i(94156),i(84458)),d=i(3717),u=i(14104),h=i(68118),f=i(93068),p=i(2223),v=i(94348),m={data(){return{type:"orders",dataList:{orders:[],hisorders:[]},isAll:!1,symbol:"",selectData:[{title:this.$t("当前委托"),type:"orders"},{title:this.$t("历史仓位"),type:"hisorders"}],loading:!1,finished:!1,page:1}},mounted(){this.getCoins(),this.symbol=this.$route.query.symbol},methods:{getCoins(){(0,p.Ks)().then((t=>{v.log(t),this.currencyList=t}))},onChange(t){this.dataList[t]=[],this.finished=!1,this.page=1,this.type=t,this.loading=!0,this.loading&&this.fetchList(this.symbol)},onClickLeft(){this.$router.go(-1)},async fetchList(t){const e="orders"===this.type?f.g3:f.RX,i=this.type;e(t,i,this.page).then((t=>{this.dataList[i]=this.dataList[i].concat(t),this.loading=!1,t.length<10&&(this.finished=!0),this.page++}))},recall(){this.page=1,this.dataList.orders=[],this.fetchList(this.symbol)},onLoad(){this.fetchList(this.symbol)},selectItem(t){this.dataList[this.type]=[],this.page=1,this.symbol=t.symbol,this.fetchList(this.symbol),this.isAll=!1}},components:{PerpetualEntrustList:u.A,PerpetualHistoryPosition:h.A,assetsHead:d.A,[c.A.name]:c.A,[l.A.name]:l.A,[a.A.name]:a.A,[r.A.name]:r.A,[o.A.name]:o.A},beforeRouteEnter(t,e,i){const{query:{symbol:s}}=t;i((t=>{t.symbol=s}))}},g=m,y=i(81656),b=(0,y.A)(g,s,n,!1,null,"9711c028",null),x=b.exports},90504:function(){},9471:function(t,e,i){var s=i(51137),n=i(4250),o=i.n(n),r=i(47456),a=i(33448),l=i(15827),c=i(39763),d=i(31994),u=i(96874),h=(0,r.Y)("cell"),f=h[0],p=h[1];function v(t,e,i,s){var n,r=e.icon,d=e.size,h=e.title,f=e.label,v=e.value,m=e.isLink,g=i.title||(0,a.C8)(h);function y(){var s=i.label||(0,a.C8)(f);if(s)return t("div",{class:[p("label"),e.labelClass]},[i.label?i.label():f])}function b(){if(g)return t("div",{class:[p("title"),e.titleClass],style:e.titleStyle},[i.title?i.title():t("span",[h]),y()])}function x(){var s=i.default||(0,a.C8)(v);if(s)return t("div",{class:[p("value",{alone:!g}),e.valueClass]},[i.default?i.default():t("span",[v])])}function C(){return i.icon?i.icon():r?t(u.A,{class:p("left-icon"),attrs:{name:r,classPrefix:e.iconPrefix}}):void 0}function _(){var s=i["right-icon"];if(s)return s();if(m){var n=e.arrowDirection;return t(u.A,{class:p("right-icon"),attrs:{name:n?"arrow-"+n:"arrow"}})}}function k(t){(0,l.Ic)(s,"click",t),(0,c.BC)(s)}var w=null!=(n=e.clickable)?n:m,$={clickable:w,center:e.center,required:e.required,borderless:!e.border};return d&&($[d]=d),t("div",o()([{class:p($),attrs:{role:w?"button":null,tabindex:w?0:null},on:{click:k}},(0,l.IL)(s)]),[C(),b(),x(),_(),null==i.extra?void 0:i.extra()])}v.props=(0,s.A)({},d.z,c.aI),e.A=f(v)},31994:function(t,e,i){i.d(e,{z:function(){return s}});var s={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}}},7587:function(t,e,i){var s=i(47456),n=i(83462),o=i(33448),r=i(23102),a=(0,s.Y)("circle"),l=a[0],c=a[1],d=3140,u=0;function h(t){return Math.min(Math.max(t,0),100)}function f(t,e){var i=t?1:0;return"M "+e/2+" "+e/2+" m 0, -500 a 500, 500 0 1, "+i+" 0, 1000 a 500, 500 0 1, "+i+" 0, -1000"}e.A=l({props:{text:String,size:[Number,String],color:[String,Object],layerColor:String,strokeLinecap:String,value:{type:Number,default:0},speed:{type:[Number,String],default:0},fill:{type:String,default:"none"},rate:{type:[Number,String],default:100},strokeWidth:{type:[Number,String],default:40},clockwise:{type:Boolean,default:!0}},beforeCreate:function(){this.uid="van-circle-gradient-"+u++},computed:{style:function(){var t=(0,n._)(this.size);return{width:t,height:t}},path:function(){return f(this.clockwise,this.viewBoxSize)},viewBoxSize:function(){return+this.strokeWidth+1e3},layerStyle:function(){return{fill:""+this.fill,stroke:""+this.layerColor,strokeWidth:this.strokeWidth+"px"}},hoverStyle:function(){var t=d*this.value/100;return{stroke:""+(this.gradient?"url(#"+this.uid+")":this.color),strokeWidth:+this.strokeWidth+1+"px",strokeLinecap:this.strokeLinecap,strokeDasharray:t+"px "+d+"px"}},gradient:function(){return(0,o.Gv)(this.color)},LinearGradient:function(){var t=this,e=this.$createElement;if(this.gradient){var i=Object.keys(this.color).sort((function(t,e){return parseFloat(t)-parseFloat(e)})).map((function(i,s){return e("stop",{key:s,attrs:{offset:i,"stop-color":t.color[i]}})}));return e("defs",[e("linearGradient",{attrs:{id:this.uid,x1:"100%",y1:"0%",x2:"0%",y2:"0%"}},[i])])}}},watch:{rate:{handler:function(t){this.startTime=Date.now(),this.startRate=this.value,this.endRate=h(t),this.increase=this.endRate>this.startRate,this.duration=Math.abs(1e3*(this.startRate-this.endRate)/this.speed),this.speed?((0,r.SA)(this.rafId),this.rafId=(0,r.er)(this.animate)):this.$emit("input",this.endRate)},immediate:!0}},methods:{animate:function(){var t=Date.now(),e=Math.min((t-this.startTime)/this.duration,1),i=e*(this.endRate-this.startRate)+this.startRate;this.$emit("input",h(parseFloat(i.toFixed(1)))),(this.increase?i<this.endRate:i>this.endRate)&&(this.rafId=(0,r.er)(this.animate))}},render:function(){var t=arguments[0];return t("div",{class:c(),style:this.style},[t("svg",{attrs:{viewBox:"0 0 "+this.viewBoxSize+" "+this.viewBoxSize}},[this.LinearGradient,t("path",{class:c("layer"),style:this.layerStyle,attrs:{d:this.path}}),t("path",{attrs:{d:this.path},class:c("hover"),style:this.hoverStyle})]),this.slots()||this.text&&t("div",{class:c("text")},[this.text])])}})},28215:function(t,e,i){i(76952)},99502:function(t,e,i){var s=i(47456),n=i(48499),o=i(52835),r=i(99297),a=i(9471),l=i(96874),c=i(75187),d=(0,s.Y)("dropdown-item"),u=d[0],h=d[1];e.A=u({mixins:[(0,o.m)({ref:"wrapper"}),(0,r.b)("vanDropdownMenu")],props:{value:null,title:String,disabled:Boolean,titleClass:String,options:{type:Array,default:function(){return[]}},lazyRender:{type:Boolean,default:!0}},data:function(){return{transition:!0,showPopup:!1,showWrapper:!1}},computed:{displayTitle:function(){var t=this;if(this.title)return this.title;var e=this.options.filter((function(e){return e.value===t.value}));return e.length?e[0].text:""}},watch:{showPopup:function(t){this.bindScroll(t)}},beforeCreate:function(){var t=this,e=function(e){return function(){return t.$emit(e)}};this.onOpen=e("open"),this.onClose=e("close"),this.onOpened=e("opened")},methods:{toggle:function(t,e){void 0===t&&(t=!this.showPopup),void 0===e&&(e={}),t!==this.showPopup&&(this.transition=!e.immediate,this.showPopup=t,t&&(this.parent.updateOffset(),this.showWrapper=!0))},bindScroll:function(t){var e=this.parent.scroller,i=t?n.on:n.AU;i(e,"scroll",this.onScroll,!0)},onScroll:function(){this.parent.updateOffset()},onClickWrapper:function(t){this.getContainer&&t.stopPropagation()}},render:function(){var t=this,e=arguments[0],i=this.parent,s=i.zIndex,n=i.offset,o=i.overlay,r=i.duration,d=i.direction,u=i.activeColor,f=i.closeOnClickOverlay,p=this.options.map((function(i){var s=i.value===t.value;return e(a.A,{attrs:{clickable:!0,icon:i.icon,title:i.text},key:i.value,class:h("option",{active:s}),style:{color:s?u:""},on:{click:function(){t.showPopup=!1,i.value!==t.value&&(t.$emit("input",i.value),t.$emit("change",i.value))}}},[s&&e(l.A,{class:h("icon"),attrs:{color:u,name:"success"}})])})),v={zIndex:s};return"down"===d?v.top=n+"px":v.bottom=n+"px",e("div",[e("div",{directives:[{name:"show",value:this.showWrapper}],ref:"wrapper",style:v,class:h([d]),on:{click:this.onClickWrapper}},[e(c.A,{attrs:{overlay:o,position:"down"===d?"top":"bottom",duration:this.transition?r:0,lazyRender:this.lazyRender,overlayStyle:{position:"absolute"},closeOnClickOverlay:f},class:h("content"),on:{open:this.onOpen,close:this.onClose,opened:this.onOpened,closed:function(){t.showWrapper=!1,t.$emit("closed")}},model:{value:t.showPopup,callback:function(e){t.showPopup=e}}},[p,this.slots("default")])])])}})},57352:function(t,e,i){i(76952),i(69176),i(98992),i(22795),i(90504),i(65270)},84458:function(t,e,i){var s=i(47456),n=i(33448),o=i(32486),r=i(99297),a=i(26063),l=(0,s.Y)("dropdown-menu"),c=l[0],d=l[1];e.A=c({mixins:[(0,r.G)("vanDropdownMenu"),(0,a.f)({event:"click",method:"onClickOutside"})],props:{zIndex:[Number,String],activeColor:String,overlay:{type:Boolean,default:!0},duration:{type:[Number,String],default:.2},direction:{type:String,default:"down"},closeOnClickOverlay:{type:Boolean,default:!0}},data:function(){return{offset:0}},computed:{scroller:function(){return(0,o.Rm)(this.$el)},opened:function(){return this.children.some((function(t){return t.showWrapper}))},barStyle:function(){if(this.opened&&(0,n.C8)(this.zIndex))return{zIndex:1+this.zIndex}}},methods:{updateOffset:function(){if(this.$refs.bar){var t=this.$refs.bar.getBoundingClientRect();"down"===this.direction?this.offset=t.bottom:this.offset=window.innerHeight-t.top}},toggleItem:function(t){this.children.forEach((function(e,i){i===t?e.toggle():e.showPopup&&e.toggle(!1,{immediate:!0})}))},onClickOutside:function(){this.children.forEach((function(t){t.toggle(!1)}))}},render:function(){var t=this,e=arguments[0],i=this.children.map((function(i,s){return e("div",{attrs:{role:"button",tabindex:i.disabled?-1:0},class:d("item",{disabled:i.disabled}),on:{click:function(){i.disabled||t.toggleItem(s)}}},[e("span",{class:[d("title",{active:i.showPopup,down:i.showPopup===("down"===t.direction)}),i.titleClass],style:{color:i.showPopup?t.activeColor:""}},[e("div",{class:"van-ellipsis"},[i.slots("title")||i.displayTitle])])])}));return e("div",{class:d()},[e("div",{ref:"bar",style:this.barStyle,class:d("bar",{opened:this.opened})},[i]),this.slots("default")])}})},94156:function(t,e,i){i(76952)},10339:function(t,e,i){var s=i(47456),n=i(73474),o=i(32486),r=i(2879),a=i(90689),l=(0,s.Y)("list"),c=l[0],d=l[1],u=l[2];e.A=c({mixins:[(0,r.x)((function(t){this.scroller||(this.scroller=(0,o.Rm)(this.$el)),t(this.scroller,"scroll",this.check)}))],model:{prop:"loading"},props:{error:Boolean,loading:Boolean,finished:Boolean,errorText:String,loadingText:String,finishedText:String,immediateCheck:{type:Boolean,default:!0},offset:{type:[Number,String],default:300},direction:{type:String,default:"down"}},data:function(){return{innerLoading:this.loading}},updated:function(){this.innerLoading=this.loading},mounted:function(){this.immediateCheck&&this.check()},watch:{loading:"check",finished:"check"},methods:{check:function(){var t=this;this.$nextTick((function(){if(!(t.innerLoading||t.finished||t.error)){var e,i=t.$el,s=t.scroller,o=t.offset,r=t.direction;e=s.getBoundingClientRect?s.getBoundingClientRect():{top:0,bottom:s.innerHeight};var a=e.bottom-e.top;if(!a||(0,n.d)(i))return!1;var l=!1,c=t.$refs.placeholder.getBoundingClientRect();l="up"===r?e.top-c.top<=o:c.bottom-e.bottom<=o,l&&(t.innerLoading=!0,t.$emit("input",!0),t.$emit("load"))}}))},clickErrorText:function(){this.$emit("update:error",!1),this.check()},genLoading:function(){var t=this.$createElement;if(this.innerLoading&&!this.finished)return t("div",{key:"loading",class:d("loading")},[this.slots("loading")||t(a.A,{attrs:{size:"16"}},[this.loadingText||u("loading")])])},genFinishedText:function(){var t=this.$createElement;if(this.finished){var e=this.slots("finished")||this.finishedText;if(e)return t("div",{class:d("finished-text")},[e])}},genErrorText:function(){var t=this.$createElement;if(this.error){var e=this.slots("error")||this.errorText;if(e)return t("div",{on:{click:this.clickErrorText},class:d("error-text")},[e])}}},render:function(){var t=arguments[0],e=t("div",{ref:"placeholder",key:"placeholder",class:d("placeholder")});return t("div",{class:d(),attrs:{role:"feed","aria-busy":this.innerLoading}},["down"===this.direction?this.slots():e,this.genLoading(),this.genFinishedText(),this.genErrorText(),"up"===this.direction?this.slots():e])}})},7287:function(t,e,i){i(76952),i(45396)},26063:function(t,e,i){i.d(e,{f:function(){return n}});var s=i(48499),n=function(t){return{props:{closeOnClickOutside:{type:Boolean,default:!0}},data:function(){var e=this,i=function(i){e.closeOnClickOutside&&!e.$el.contains(i.target)&&e[t.method]()};return{clickOutsideHandler:i}},mounted:function(){(0,s.on)(document,t.event,this.clickOutsideHandler)},beforeDestroy:function(){(0,s.AU)(document,t.event,this.clickOutsideHandler)}}}},75187:function(t,e,i){var s=i(47456),n=i(33448),o=i(56215),r=i(96874),a=(0,s.Y)("popup"),l=a[0],c=a[1];e.A=l({mixins:[(0,o.i)()],props:{round:Boolean,duration:[Number,String],closeable:Boolean,transition:String,safeAreaInsetBottom:Boolean,closeIcon:{type:String,default:"cross"},closeIconPosition:{type:String,default:"top-right"},position:{type:String,default:"center"},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}},beforeCreate:function(){var t=this,e=function(e){return function(i){return t.$emit(e,i)}};this.onClick=e("click"),this.onOpened=e("opened"),this.onClosed=e("closed")},methods:{onClickCloseIcon:function(t){this.$emit("click-close-icon",t),this.close()}},render:function(){var t,e=arguments[0];if(this.shouldRender){var i=this.round,s=this.position,o=this.duration,a="center"===s,l=this.transition||(a?"van-fade":"van-popup-slide-"+s),d={};if((0,n.C8)(o)){var u=a?"animationDuration":"transitionDuration";d[u]=o+"s"}return e("transition",{attrs:{appear:this.transitionAppear,name:l},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[e("div",{directives:[{name:"show",value:this.value}],style:d,class:c((t={round:i},t[s]=s,t["safe-area-inset-bottom"]=this.safeAreaInsetBottom,t)),on:{click:this.onClick}},[this.slots(),this.closeable&&e(r.A,{attrs:{role:"button",tabindex:"0",name:this.closeIcon},class:c("close-icon",this.closeIconPosition),on:{click:this.onClickCloseIcon}})])])}}})},36928:function(t,e,i){t.exports=i.p+"img/no-data.ecf2b7d7.png"}}]);