'use strict';!function(require,directRequire){const a=require('react'),b=require('./3b5f8e2469c474c8d433c1c6926d8999.js'),c=require('./common/locales/index.js');class d extends a.Component{constructor(a){super(a)}componentDidMount(){this._cancalLocaleListener=c.onChangeLocale(()=>this.forceUpdate())}componentWillUnmount(){this._cancalLocaleListener()}componentWillReceiveProps(){}close(){this.props.setPayment({show:!1})}render(){const d=this.props,e={opacity:d.success?0.1:1},f={display:d.success?'':'none'};return a.createElement('div',{className:'payment-dialog',style:d.show?{}:b.displayNone},a.createElement('div',{className:'weui-mask'}),a.createElement('div',{className:'weui-dialog'},a.createElement('div',{className:'weui-dialog__bd'},a.createElement('div',{className:'payment-dialog-hd',onClick:this.close.bind(this)},a.createElement('i',{className:'ui-icon-close'})),a.createElement('h3',{className:'payment-dialog-title'},c.config.WECHAT_PAYMENT),a.createElement('div',{className:'payment-dialog-content'},a.createElement('img',{src:d.qrcode,alt:'',style:e}),a.createElement('i',{className:'weui-icon-success',style:f})),a.createElement('p',{className:'payment-dialog-tips'},c.config.WECHAT_QR_PAYMENT_DEBUG.format(d.nickName)))))}}module.exports=d}(require('lazyload'),require);