(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e419ed76"],{"34f2":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"pdf-wrapper"},t._l(t.pages,(function(t){return n("canvas",{key:t,attrs:{id:"the-canvas"+t}})})),0)},o=[],a=n("9511"),r=n.n(a);r.a.GlobalWorkerOptions.workerSrc="../../node_modules/pdfjs-dist/build/pdf.worker.min.js";var c={props:{url:{type:String,default:""}},data:function(){return{pdfDoc:null,pages:0}},mounted:function(){this.loadFile()},methods:{showPdf:function(){this.loadFile(this.url)},loadFile:function(t){var e=this;r.a.getDocument(e.url).then((function(t){e.pdfDoc=t,e.pages=e.pdfDoc.numPages,e.$nextTick((function(){e.renderPage(1)}))}))},renderPage:function(t){var e=this;e.pdfDoc.getPage(t).then((function(n){var i=document.getElementById("the-canvas"+t),o=i.getContext("2d"),a=window.devicePixelRatio||1,r=o.webkitBackingStorePixelRatio||o.mozBackingStorePixelRatio||o.msBackingStorePixelRatio||o.oBackingStorePixelRatio||o.backingStorePixelRatio||1,c=a/r,d=n.getViewport(window.screen.availWidth/n.getViewport(1).width);i.width=d.width*c,i.height=d.height*c,i.style.width=d.width+"px",o.setTransform(c,0,0,c,0,0);var s={canvasContext:o,viewport:d};n.render(s),e.pages>t&&e.renderPage(t+1)}))}}},d=c,s=(n("452a"),n("2877")),u=Object(s["a"])(d,i,o,!1,null,"59f3d3e0",null);e["default"]=u.exports},"452a":function(t,e,n){"use strict";n("6b2a")},5:function(t,e){},6:function(t,e){},"6b2a":function(t,e,n){},7:function(t,e){},8:function(t,e){}}]);