/*! builder: oce-mpa-builder - version: 2.1.0  framework: ewizardjs - version: 5.9.0 */
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{198:function(h,c,a){"use strict";a.r(c);var d=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{attrs:{id:"viewer"},on:{slideswipe:e.onSwipe,chapterswipe:e.onSwipe,subslideswipe:e.onSwipe}},[e.$navigator.navigation.errorMessage?s("div",{staticClass:"error"},[s("h2",[e._v(e._s(e.$navigator.navigation.errorMessage))])]):s("router-view",{staticClass:"view"}),e._v(" "),e._t("default")],2)},p=[];d._withStripped=!0;var O=a(219),m=a.n(O),r=a(3),o=Object.defineProperty,w=Object.defineProperties,y=Object.getOwnPropertyDescriptors,_=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,f=(e,t,s)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,u=(e,t)=>{for(var s in t||(t={}))n.call(t,s)&&f(e,s,t[s]);if(_)for(var s of _(t))l.call(t,s)&&f(e,s,t[s]);return e},v=(e,t)=>w(e,y(t)),P=(e,t)=>{var s={};for(var i in e)n.call(e,i)&&t.indexOf(i)<0&&(s[i]=e[i]);if(e!=null&&_)for(var i of _(e))t.indexOf(i)<0&&l.call(e,i)&&(s[i]=e[i]);return s},g={name:"v-viewer",props:{},mounted(){document.addEventListener("keydown",this.onKeyDown,!0)},beforeDestroy(){document.removeEventListener("keydown",this.onKeyDown,!0)},computed:{swipe(){return this.$settings.getRaw().navigation.swipe}},methods:{onSwipe(e){return this.goTo(e)},onKeyDown(e){if(e.target.tagName!=="INPUT"){const t=this.getDirectionFromKey(e.keyCode);return this.goTo({direction:t})}},getDirectionFromKey(e){return{37:r.c.Right,38:r.c.Down,39:r.c.Left,40:r.c.Up}[e]},goTo(e){const t=e.gesture?e.gesture.direction:e.direction;this.isForward(t)?this.goToNext(e):this.isBackward(t)&&this.goToPrev(e)},getEventOption(e){return e.gesture?this.getSwipeDetails(e):v(u({},this.getDirection(e.direction)),{touchesCount:1})},goToPrev(e){const t=this.$navigator.structure.hasPreviousSlide(),s=this.$navigator.hasPrevSubslide(),i=this.getEventOption(e);this.canGoTo(i,this.swipe.subslide)&&s?this.$navigator.goToPrevSubslide():this.canGoTo(i,this.swipe.subslide)&&this.isSubslide()&&!s?this.$navigator.goTo(v(u({},this.$navigator.getCurrentSlide()),{direction:this.$navigator.navigation.getSubslideDirection(i)})):this.canGoTo(i,this.swipe.slide)&&t?this.$navigator.goToPrevSlide():this.canGoTo(i,this.swipe.chapter)&&this.$navigator.goToPrevChapter()},goToNext(e){const t=this.$navigator.structure.hasNextSlide(),s=this.$navigator.hasNextSubslide(),i=this.getEventOption(e);this.canGoTo(i,this.swipe.subslide)&&s?this.$navigator.goToNextSubslide():this.canGoTo(i,this.swipe.slide)&&t?this.$navigator.goToNextSlide():this.canGoTo(i,this.swipe.chapter)&&this.$navigator.goToNextChapter()},isForward(e){return e===r.c.Left||e===r.c.Up},isBackward(e){return e===r.c.Right||e===r.c.Down},canGoTo(e,t){var s=t,{enabled:i}=s,x=P(s,["enabled"]);return i&&m()(e,x)},getSwipeDetails({gesture:{direction:e,maxPointers:t}}){return v(u({},this.getDirection(e)),{touchesCount:t})},getDirection(e){return{direction:{[r.c.Up]:r.d.Vertical,[r.c.Left]:r.d.Horizontal,[r.c.Down]:r.d.Vertical,[r.c.Right]:r.d.Horizontal}[e]}},isSubslide(){return!!this.$route.params.subslide}}},S=g,D=a(220),T=a(0),j=Object(T.a)(S,d,p,!1,null,null,null);if(!1)var b;j.options.__file="node_modules/navigator/src/common/components/Viewer/index.vue";var $=c.default=j.exports},207:function(h,c,a){},219:function(h,c,a){"use strict";var d=Array.isArray,p=Object.keys,O=Object.prototype.hasOwnProperty;h.exports=function m(r,o){if(r===o)return!0;if(r&&o&&typeof r=="object"&&typeof o=="object"){var w=d(r),y=d(o),_,n,l;if(w&&y){if(n=r.length,n!=o.length)return!1;for(_=n;_--!==0;)if(!m(r[_],o[_]))return!1;return!0}if(w!=y)return!1;var f=r instanceof Date,u=o instanceof Date;if(f!=u)return!1;if(f&&u)return r.getTime()==o.getTime();var v=r instanceof RegExp,P=o instanceof RegExp;if(v!=P)return!1;if(v&&P)return r.toString()==o.toString();var g=p(r);if(n=g.length,n!==p(o).length)return!1;for(_=n;_--!==0;)if(!O.call(o,g[_]))return!1;for(_=n;_--!==0;)if(l=g[_],!m(r[l],o[l]))return!1;return!0}return r!==r&&o!==o}},220:function(h,c,a){"use strict";var d=a(207),p=a.n(d)}}]);
