"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[4836],{38362:function(e,t,n){n.r(t),n.d(t,{PdfPlayer:function(){return f}}),n(29305),n(32733),n(84701),n(81678),n(76281),n(44962),n(89336),n(4754),n(94),n(36947),n(78557),n(96054),n(90076),n(50987),n(99425),n(83994),n(82367);var i=n(71857),o=n(75384),r=n(8566),a=n(74550),s=n(79754),u=n(36300),l=n(70267),c=n(67430),h=n(38783),d=n(44797);function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function p(e,t){for(var n=0;n
',s.default.open(e)),this.mediaElement=e,e)}},{key:"setCurrentSrc",value:function(e,t){var r=this,a=t.items[0];return this.item=a,this.streamInfo={started:!0,ended:!1,item:this.item,mediaSource:{Id:a.Id}},Promise.all([n.e(59928),n.e(69601),n.e(99911)]).then(n.t.bind(n,12565,23)).then((function(e){var n=e.GlobalWorkerOptions,s=e.getDocument,u=(0,o.C)(c.tF.getApiClient(a)),h=(0,i.Q)(u).getDownloadUrl({itemId:a.Id});return r.bindEvents(),n.workerSrc=l.appRouter.baseUrl()+"/libraries/pdf.worker.js",s({url:h,isEvalSupported:!1}).promise.then((function(e){if(!r.cancellationToken){r.book=e,r.loaded=!0;var n=t.startPositionTicks/1e4;0!==n?(r.loadPage(n+1),r.progress=n):r.loadPage(1)}}))}))}},{key:"next",value:function(){this.progress!==this.duration()-1&&(this.loadPage(this.progress+2),this.progress=this.progress+1,d.A.trigger(this,"pause"))}},{key:"previous",value:function(){0!==this.progress&&(this.loadPage(this.progress),this.progress=this.progress-1,d.A.trigger(this,"pause"))}},{key:"replaceCanvas",value:function(e){var t=document.getElementById("canvas");e.id="canvas",t.parentNode.replaceChild(e,t)}},{key:"loadPage",value:function(e){for(var t="page",n=[t+e],i=1;i<=2;i++)e-i>0&&n.push(t+(e-i)),e+i