(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d21ef69"],{d898:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"pdf",style:{height:t.height}},[t.pdfUrl?i("iframe",{staticStyle:{width:"100%",height:"100%"},attrs:{src:t.pdfUrl,frameborder:"0"}}):i("el-skeleton",{attrs:{loading:t.loading,animated:""}})],1)},l=[],o=(i("99af"),i("5924")),h={props:{loading:Boolean},data:function(){return{pdfUrl:null,height:"450px"}},mounted:function(){this.height=this.getDialogHeightHeight(),Object(o["on"])(document.body,"resize",this.handleDialogHeightResize)},beforeDestroy:function(){Object(o["off"])(document.body,"resize",this.handleDialogHeightResize)},methods:{load:function(t){this.pdfUrl=null,t=encodeURIComponent(t),this.pdfUrl="".concat(this.$baseUrl,"lib/pdfjs-dist/web/viewer.html?file=").concat(t)},loadData:function(t){this.pdfUrl=null,this.pdfUrl="".concat(this.$baseUrl,"lib/pdfjs-dist/web/viewer.html?file=").concat(t)},handleDialogHeightResize:function(){this.height=this.getDialogHeightHeight()},getDialogHeightHeight:function(){return(document.documentElement.clientHeight||document.body.clientHeight)-60+"px"}}},s=h,a=i("2877"),d=Object(a["a"])(s,n,l,!1,null,null,null);e["default"]=d.exports}}]);