Component({properties:{modalData:{type:Object,observer(t){const{imgSrc:e,modalText:i}=t;this.setData({imgSrc:e,modalText:i})}}},data:{duration:1e3,showing:""},lifetimes:{},methods:{show(){const{duration:t}=this.data;this.setData({showing:"show"}),this.clearTimeOut(),this.showTimeOut=setTimeout((()=>{this.hide()}),t)},hide(){this.clearTimeOut(),this.setData({showing:""}),this.triggerEvent("onModalHide")},clearTimeOut(){this.showTimeOut&&(clearTimeout(this.showTimeOut),this.showTimeOut=null)}}});