webpackJsonp([7],{IY5E:function(s,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e("Dd8w"),o=e.n(a),n=e("s0MJ"),r=e("NYxO"),i=e("wYMm"),d=window.i18n,l=i.c.name,c={name:"download",props:{titleName:{type:String,default:function(){return d.t("download.hint")}},errMsg:{type:String,default:function(){return d.t("download.fail")}},retryMsg:{type:String,default:function(){return d.t("download.ensure")}},isModal:{type:Boolean,default:!0}},mounted:function(){window._ESC_HOOKS.push({method:this.hideProgressBar,key:"download"})},beforeDestroy:function(){Object(n.g)("download")},data:function(){return{status:i.a.IN_PROGRESS,DOWNLOAD_STATUS:i.a,appClass:l}},computed:o()({},Object(r.c)(["getDownloadProgress","getDownloadStatus","getDownloadTplId"]),{progressMsg:function(){return"<span>"+Object(n.c)(this.$t("download.downing"),Object(n.c)('<span style="color:#41891a">{0}%</span>',this.getDownloadProgress))+"</span>"},progressWidth:function(){return 354*this.getDownloadProgress/100-1}}),methods:o()({},Object(r.b)(["hideProgressBar"]),{close:function(){this.hideProgressBar({id:this.getDownloadTplId})}})},u={render:function(){var s=this,t=s.$createElement,e=s._self._c||t;return e("div",{class:s.appClass},[s.isModal?e("div",{staticClass:"mask-layer"}):s._e(),s._v(" "),e("div",{staticClass:"download"},[e("div",{staticClass:"header"},[e("span",{staticClass:"title-name"},[s._v(s._s(s.titleName))]),s._v(" "),e("span",{staticClass:"icon icon-close",on:{click:function(t){s.close()}}})]),s._v(" "),e("div",{staticClass:"container-body"},[s.DOWNLOAD_STATUS.IN_PROGRESS===s.getDownloadStatus?e("div",{staticClass:"in-progress"},[e("div",{staticClass:"progress-number"},[s._v(s._s(s.getDownloadProgress)+"%")]),s._v(" "),e("div",{staticClass:"progress-bar"},[e("div",{staticClass:"progress-bar-group"},[s.progressWidth>0?e("div",{staticClass:"out-progress",style:{width:s.progressWidth+"px"}}):s._e()])]),s._v(" "),e("div",{staticClass:"progress-msg",domProps:{innerHTML:s._s(s.progressMsg)}})]):s._e(),s._v(" "),s.DOWNLOAD_STATUS.ERROR===s.getDownloadStatus?e("div",{staticClass:"download-error"},[e("div",{staticClass:"err-desc"},[e("span",{staticClass:"icon icon-warning-48"}),s._v(" "),e("span",{staticClass:"err-msg"},[s._v(s._s(s.errMsg))])]),s._v(" "),e("div",{staticClass:"retry",on:{click:function(t){s.close()}}},[s._v(s._s(s.retryMsg))])]):s._e()])])])},staticRenderFns:[]};var g=e("VU/8")(c,u,!1,function(s){e("u7pD")},"data-v-1709ed46",null).exports;t.default=g},u7pD:function(s,t){}});