zzzz
2024-03-20 d25a45190cee44b36296693d5022a0ce9ae9b698
1
"use strict";(self["webpackChunkexchange"]=self["webpackChunkexchange"]||[]).push([[6531],{5760:function(t,e,n){n.d(e,{O:function(){return i}});var o=n(85781),i=function(t){return{props:{closeOnClickOutside:{type:Boolean,default:!0}},data:function(){var e=this,n=function(n){e.closeOnClickOutside&&!e.$el.contains(n.target)&&e[t.method]()};return{clickOutsideHandler:n}},mounted:function(){(0,o.on)(document,t.event,this.clickOutsideHandler)},beforeDestroy:function(){(0,o.S1)(document,t.event,this.clickOutsideHandler)}}}},46811:function(t,e,n){var o=n(10855),i=n(53370),s=n(18995),a=n(19858),c=(0,o.d)("popup"),r=c[0],l=c[1];e.Z=r({mixins:[(0,s.e)()],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(n){return t.$emit(e,n)}};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 n=this.round,o=this.position,s=this.duration,c="center"===o,r=this.transition||(c?"van-fade":"van-popup-slide-"+o),u={};if((0,i.Xq)(s)){var d=c?"animationDuration":"transitionDuration";u[d]=s+"s"}return e("transition",{attrs:{appear:this.transitionAppear,name:r},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[e("div",{directives:[{name:"show",value:this.value}],style:u,class:l((t={round:n},t[o]=o,t["safe-area-inset-bottom"]=this.safeAreaInsetBottom,t)),on:{click:this.onClick}},[this.slots(),this.closeable&&e(a.Z,{attrs:{role:"button",tabindex:"0",name:this.closeIcon},class:l("close-icon",this.closeIconPosition),on:{click:this.onClickCloseIcon}})])])}}})},60836:function(t,e,n){n(22184),n(74048),n(14106),n(4127),n(44174)}}]);