(window.webpackJsonp=window.webpackJsonp||[]).push([[0],Array(73).concat([function(t,e,i){"use strict";i.r(e);var n=i(854),s=i(232),o=(i(855),i(856),i(1)),a=Object(o.default)(s.default,n.render,n.staticRenderFns,!1,null,"78b93dcc",null);a.options.__file="src/components/desktop/sidebar/index.vue",e.default=a.exports},,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){"use strict";i.r(e);var n=i(101);e.default=n.default},function(t,e,i){"use strict";i.r(e),(function(t){var n,s=i(689),o=i(415),a=i(700),r=i(422),c=i(808),l=i(811),u=i(852),d=i(863),h=i(871),f=i(877),p=i(883),v=i(885),g=i(892),m=i(30),b=i(895),w=i(5),_=i(72),k=i.n(_),y=i(4),$=i(31);function C(t){return I(t)||S(t)||T(t)||x()}function x(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function T(t,e){if(t){if("string"==typeof t)return P(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?P(t,e):void 0}}function S(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function I(t){if(Array.isArray(t))return P(t)}function P(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i0&&void 0!==arguments[0]?arguments[0]:null,i=this.$el.getBoundingClientRect(),s=i.width<=550||i.height<=300;if(this.windowWidth=i.width,this.windowHeight=i.height,this.containerSize=this.$refs.bookContainer.$el.getBoundingClientRect(),s!==this.isMini)this.$store.dispatch("workspace/setMini",s);else if(this.isFlipbookTypeAuto){var o=this.$store.state.book.bookSize.width/this.$store.state.book.bookSize.height>this.containerSize.width/this.containerSize.height?"single":"spread";this.$store.state.pager.mode!==o&&(this.showPreloader=!0,this.$store.dispatch("pager/changeMode",{mode:o}))}this.$store.dispatch("workspace/setSize",{width:this.windowWidth,height:this.windowHeight,changedBy:e}),clearTimeout(n),n=setTimeout((function(){t.showPreloader=!1}),1e3)},mouseDownHandler:function(){this.$store.state.workspace.accessibilityMode?this.$store.dispatch("workspace/toggleAccessibilityMode"):this.$store.state.caniuse.userInteractions.firstClick||this.$store.dispatch("caniuse/setFirstClick")},keyDownHandler:function(t){var e,i,n=this;if(t.keyCode===$.default.ALT&&(this.altTimer=setTimeout((function(){n.$store.dispatch("workspace/toggleAccessibilityMode")}),1e3)),t.keyCode!==$.default.TAB||this.$store.state.workspace.accessibilityMode||(this.$store.dispatch("workspace/toggleAccessibilityMode"),t.preventDefault()),t.keyCode===$.default.F1||t.keyCode===$.default.SLASH&&t.shiftKey&&t.metaKey){if(!this.$store.state.workspace.components.help.enabled)return;return this.$store.dispatch("popup/openPopup",{component:"help"}),void t.preventDefault()}if((!this.embedLightbox||"Escape"!==t.key&&t.keyCode!==$.default.ESC||this.isPopupOpened||this.isSidebarOpened||this.isModalOpened||window.parent.postMessage({fbPublicationUrl:window.location.href,action:"closeLightbox"},"*"),!this.isPopupOpened)&&("Control"!==t.key&&"Meta"!==t.key||!this.dragActive||(this.$root.$emit("zoomMove",{direction:"drag",active:!1}),this.dragActive=!1),!(["input","textarea","select","option"].indexOf(null===(e=t.target)||void 0===e?void 0:e.tagName.toLowerCase())>=0))){var s=t.ctrlKey||t.metaKey;switch(s&&t.keyCode===$.default.C&&""!==this.$store.state.text.selectedText&&null!==this.$store.state.text.selectedText&&this.copyText(),t.keyCode){case $.default.LEFT:if(this.zoomFactor>1)this.$root.$emit("zoomMove",{direction:"left"});else{if(this.navTimeout>Date.now())return;this.$store.state.notes.opened&&this.$store.dispatch("notes/setOpenedId",{id:null}),this.movePagerLeft({target:"keyboard"}),this.navTimeout=Date.now()+(this.zoomFactor>1?1e3:100)}t.preventDefault();break;case $.default.RIGHT:if(this.zoomFactor>1)this.$root.$emit("zoomMove",{direction:"right"});else{if(this.navTimeout>Date.now())return;this.$store.state.notes.opened&&this.$store.dispatch("notes/setOpenedId",{id:null}),this.movePagerRight({target:"keyboard"}),this.navTimeout=Date.now()+(this.zoomFactor>1?1e3:100)}t.preventDefault();break;case $.default.UP:this.zoomFactor>1&&this.$root.$emit("zoomMove",{direction:"up"}),t.preventDefault();break;case $.default.DOWN:this.zoomFactor>1&&this.$root.$emit("zoomMove",{direction:"down"}),t.preventDefault();break;case $.default.SPACE:(null===(i=this.$store.state.workspace.components.slideshow)||void 0===i?void 0:i.enabled)&&this.$store.dispatch("workspace/setSlideshowActive",{value:!this.$store.state.workspace.components.slideshow.active});break;case $.default.F:s&&this.$store.state.search.enabled&&("search"===this.$store.state.sidebar.opened?this.$refs["opened-sidebar-component"].focusInput():this.$store.dispatch("sidebar/openSidebar",{component:"search"}),t.preventDefault());break;case $.default.M:s&&this.$store.state.sound.enabled&&(this.$store.dispatch("sound/toggleMuteSound"),t.preventDefault());break;case $.default.A:t.preventDefault();var o=this.$store.state.text.selectionRect;s&&null!==o&&this.$store.dispatch("text/setSelectAll");break;case $.default.P:s&&(this.$store.state.workspace.components.print&&this.$store.dispatch("popup/openPopup",{component:"print"}),t.preventDefault());break;case $.default.W:t.shiftKey&&(this.wheelScroll=!this.wheelScroll,Object(y.default)().getLocalStorage().setItem("wheelScroll",this.wheelScroll),this.$store.dispatch("workspace/setFlashMessage",{text:this.wheelScroll?this.$t("AlertMessage.WHEEL_FLIP_ENABLED"):this.$t("AlertMessage.WHEEL_FLIP_DISABLED")}));break;case $.default.I:s&&t.shiftKey&&t.altKey&&(this.$store.dispatch("popup/openPopup",{component:"info"}),t.preventDefault())}}},keyUpHandler:function(t){18===t.keyCode&&clearTimeout(this.altTimer),this.isPopupOpened||"Control"!==t.key&&"Meta"!==t.key||this.dragActive||(this.$root.$emit("zoomMove",{direction:"drag",active:!0}),this.dragActive=!0)},blurHandler:function(t){this.dragActive||(this.$root.$emit("zoomMove",{direction:"drag",active:!0}),this.dragActive=!0)},copyTextLink:function(){var t;this.$store.getters["pages/isFirstPage"](this.$store.state.text.pageID)||(t=this.$store.getters["pages/urlHeaderById"]({id:this.$store.state.text.pageID}),this.$store.getters["pages/pageProp"](this.$store.state.text.pageID,"wide")&&("left"===this.$store.state.text.pageSide&&(t=t.split("-")[0]),"right"===this.$store.state.text.pageSide&&(t=t.split("-")[1])));var e=Object(y.default)().getShareUrl(!0,t),i=e+(-1===e.indexOf("#")?"#":"&")+"t="+btoa(this.$store.state.text.pageID+","+this.$store.state.text.pageSide+","+this.$store.state.text.selectionRect.top.toFixed(2)+","+this.$store.state.text.selectionRect.left.toFixed(2)+","+this.$store.state.text.selectionRect.width.toFixed(2)+","+this.$store.state.text.selectionRect.height.toFixed(2)+","+this.$store.state.text.selectionRect.cursorHSide+","+this.$store.state.text.selectionRect.cursorVSide),n=document.createElement("button");n.setAttribute("data-clipboard-text",i),document.body.appendChild(n);var s=new k.a(n,{container:this.$root.$el});n.click(),s.destroy(),document.body.removeChild(n),this.$root.$emit("selectText",{action:"link",pageId:this.$store.state.text.pageID,text:this.$store.state.text.selectedText,url:i}),this.$store.dispatch("workspace/setFlashMessage",{text:this.$t("AlertMessage.LINK_COPIED")})},copyText:function(){var t=document.createElement("button");t.setAttribute("data-clipboard-text",this.$store.state.text.selectedText),document.body.appendChild(t);var e=new k.a(t,{container:this.$root.$el});t.click(),e.destroy(),document.body.removeChild(t),this.$root.$emit("selectText",{action:"copy",pageId:this.$store.state.text.pageID,text:this.$store.state.text.selectedText}),this.$store.dispatch("workspace/setFlashMessage",{text:this.$t("AlertMessage.TEXT_COPIED")})},checkPreloader:function(){var t=this;document.getElementById("preloader")?(this.$store.dispatch("workspace/setPreloader",!0),this.$root.$options.api.once&&"function"==typeof this.$root.$options.api.once&&this.$root.$options.api.once("preloader-off",(function(){t.$store.state.workspace.preloader&&t.$store.dispatch("workspace/setPreloader",!1)}))):this.$store.dispatch("workspace/setPreloader",!1)},checkFullscreen:function(t){this.isFullscreen()?(2===t.eventPhase&&(this.savedWheelState=this.wheelScroll,this.wheelScroll=!("false"===Object(y.default)().getLocalStorage().getItem("wheelScroll"))),this.$store.dispatch("workspace/setFullScreen",!0)):(2===t.eventPhase&&(this.wheelScroll=this.savedWheelState),this.$store.dispatch("workspace/setFullScreen",!1))},isFullscreen:function(){return!!(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement)},launchIntoFullscreen:function(t){this.isFullscreen()||(t.requestFullscreen?t.requestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):t.msRequestFullscreen&&t.msRequestFullscreen())},exitFullscreen:function(){this.isFullscreen()&&(document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen())},toggleFullscreen:function(){this.isFullscreen()?this.exitFullscreen():this.launchIntoFullscreen(this.$root.$options.fullscreenContainer)},onContextMenu:function(t){this.dragActive||(this.$root.$emit("zoomMove",{direction:"drag",active:!0}),this.dragActive=!0),this.$refs.contextMenu.showMenu(t)},onClick:function(t){this.$refs.contextMenu.menuShown&&(this.$store.dispatch("workspace/setHighlightTimeout",Date.now()+50),this.$refs.contextMenu.hideMenu(t))},noticeClose:function(){var t=this;this.$store.onNoticeClose&&Object(w.isFunction)(this.$store.onNoticeClose)?this.$store.onNoticeClose():(this.isPublisher||Object(y.default)().getLocalStorage().setItem("fb_cookieNotice_dismissed","true"),this.noticeShown=!1,this.$nextTick((function(){t.onResize("notice")})))},checkNoticeShow:function(t){!0===t?this.noticeShown=!0:this.noticeEnabled?this.noticeShown="true"!==Object(y.default)().getLocalStorage().getItem("fb_cookieNotice_dismissed"):this.noticeShown=!1},onWheel:function(t){t.target&&"textarea"===t.target.tagName.toLowerCase()||(this.wheelScroll&&t.preventDefault(),this.$root.$emit("wheel",t))},preventEvent:function(t){t.preventDefault()},preventWheel:function(t){t.target&&"textarea"===t.target.tagName.toLowerCase()||t.preventDefault()},setFocusTraps:function(){var t=this.$refs["first-trap"],e=this.$refs["last-trap"],i=!1;this.isIE&&(t.addEventListener("blur",(function(){i=document.activeElement===e})),e.addEventListener("blur",(function(){i=document.activeElement===t}))),t.addEventListener("focus",(function(t){t.relatedTarget===e||i||e.focus()})),e.addEventListener("focus",(function(e){e.relatedTarget===t||i||t.focus()}))}},watch:{isFlipbookTypeAuto:function(t){t&&this.onResize()},publicationPreloaderVisibility:function(t){!t&&this.$store.state.workspace.components.slideshow&&this.$store.state.workspace.components.slideshow.enabled&&this.$store.state.workspace.components.slideshow.auto&&this.$store.dispatch("workspace/setSlideshowActive",{value:!0})},isSidebarOpened:function(){var t=this;this.$nextTick((function(){t.onResize("sidebar")}))},isMini:function(){var t=this;this.$nextTick((function(){t.onResize("sidebar")}))},wheelScroll:function(t){this.$store.dispatch("workspace/setWheelScroll",t)},noticeEnabled:"checkNoticeShow",noticeShown:function(t){var e=this;t&&this.$nextTick((function(){e.onResize("notice")}))}},components:{preloader:c.default,"flash-message":o.default,"bottom-toolbar":s.default,"top-toolbar":a.default,"book-container":r.default,"th-window":u.default,"toc-window":d.default,"note-window":h.default,"search-window":f.default,"context-menu":v.default,"banner-notice":g.default,popup:l.default,sound:p.default}}}).call(this,i(7))},function(t,e,i){"use strict";i.r(e);var n=i(103);e.default=n.default},function(t,e,i){"use strict";i.r(e);i(410),i(411),i(691),i(104),i(692),i(105),i(106),i(693),i(694),i(68),i(412),i(413),i(414),i(695),i(696),i(69),i(70);var n=i(39),s=i(26),o=600,a=100,r=1e3,c=10*28+3*29+22;e.default={props:{wsToggleFullscreen:{type:Function,default:function(){}}},data:function(){return{toc:{show:null,timeoutId:null},thumbnails:{show:null,timeoutId:null},notes:{show:null,timeoutId:null},share:{show:null,timeoutId:null},print:{show:null,timeoutId:null},downloads:{show:null,timeoutId:null},sound:{show:null,timeoutId:null},zoom:{show:null,timeoutId:null},fullscreen:{show:null,timeoutId:null},areTransitionsAllowed:!1,showPop:null,showBackground:null,timeoutId:null,scale:2,translateY:null}},computed:{attractOnControlsSet:function(){return this.$store.state.workspace.attractOnControlsSet},tocVisible:function(){return this.$store.state.toc&&this.$store.state.toc.enabled},thumbnailsVisible:function(){return this.$store.state.workspace.components.thumbnails},notesVisible:function(){return this.$store.state.workspace.components.notes},shareVisible:function(){return this.$store.state.workspace.components.share},printVisible:function(){return this.$store.state.workspace.components.print},downloadsVisible:function(){return this.$store.state.downloads&&this.$store.state.downloads.enabled},soundVisible:function(){return this.$store.getters["workspace/soundVisible"]},zoomVisible:function(){return this.$store.state.workspace.components.zoom},fullscreenVisible:function(){return this.$store.state.workspace.components.fullscreen},toolbarStyle:function(){return{"background-color":this.showBackground?this.backgroundColor:null,transform:this.showPop?"scale(".concat(this.scale,") translateY(").concat(this.translateY,"px)"):null}},toolbarClass:function(){return{"blink-light":this.blinkLight,"toolbar-animation-pop":this.showPop}},dividerStyle:function(){return{"border-color":this.showBackground?this.iconOverrideColor:null}},iconStyle:function(){return{fill:this.showBackground?this.iconOverrideColor:null}},opaqueBottom:function(){return-1!==this.$store.state.skin.styles.classes.indexOf("opaqueBottom")},backgroundColor:function(){var t=this.opaqueBottom?"main-color":"second-color";return this.$store.state.skin.styles[t]},iconOverrideColor:function(){var t=this.opaqueBottom?"main-icon-color":"second-icon-color";return this.$store.state.skin.styles[t]},blinkLight:function(){return this.showPop||this.opaqueBottom?Object(s.calculateLuma)(Object(s.parseColor)(this.backgroundColor))<.5:Object(s.calculateLuma)(Object(s.parseColor)(this.$store.state.skin.styles["bottom-center-background-color"]))<.5},muteSound:function(){return this.$store.state.sound.muteSound},soundActive:function(){return this.muteSound?" toggled":""},fullscreenActive:function(){return this.$store.state.workspace.fullScreenMode?" toggled":""},slideshowActive:function(){return this.$store.state.workspace.components.slideshow&&this.$store.state.workspace.components.slideshow.active?" toggled":""},isZoomed:function(){return this.$store.state.pages.size.zoomFactor>1},isRTLBook:function(){return this.$store.state.book.rightToLeft},isRTLLocale:function(){return this.$store.getters["i18n/isLocaleRtl"]},isZoomPanelVisible:function(){return this.$store.state.workspace.zoomPanel},zoomActive:function(){return this.isZoomPanelVisible||this.isZoomed?" toggled":""},thActive:function(){return"thumbnails"===this.$store.state.sidebar.opened?" toggled":""},notesActive:function(){return"notes"===this.$store.state.sidebar.opened?" toggled":""},tocActive:function(){return"toc"===this.$store.state.sidebar.opened?" toggled":""},socialActive:function(){return"social"===this.$store.state.popup.opened?" toggled":""},printActive:function(){return"print"===this.$store.state.popup.opened?" toggled":""},downloadActive:function(){return"download"===this.$store.state.popup.opened?" toggled":""},firstGroupVisible:function(){return this.toc.show||this.thumbnails.show||this.notes.show},secondGroupVisible:function(){return this.share.show||this.print.show||this.downloads.show},thirdGroupVisible:function(){return this.fullscreen.show||this.zoom.show||this.sound.show},fourthGroupVisible:function(){return this.slideshowVisible},divider1Visible:function(){return this.firstGroupVisible&&this.secondGroupVisible},divider2Visible:function(){return(this.firstGroupVisible||this.secondGroupVisible)&&this.thirdGroupVisible},divider3Visible:function(){return(this.firstGroupVisible||this.secondGroupVisible||this.thirdGroupVisible)&&this.fourthGroupVisible},slideshowVisible:function(){return!this.narrowMode&&this.$store.state.workspace.components.slideshow&&this.$store.state.workspace.components.slideshow.enabled},workspaceSize:function(){return this.$store.getters["workspace/size"]},sidebarOpened:function(){return this.$store.state.sidebar.opened},narrowMode:function(){var t=this.sidebarOpened?240:0;return this.workspaceSize.width<400+t}},watch:{muteSound:function(t){this.$store.dispatch("workspace/setFlashMessage",{text:t?this.$t("AlertMessage.SOUND_DISABLED"):this.$t("AlertMessage.SOUND_ENABLED")})},tocVisible:{immediate:!1,handler:function(t,e){return void 0===e?null:this.toggle("toc",t)}},thumbnailsVisible:{immediate:!1,handler:function(t,e){return void 0===e?null:this.toggle("thumbnails",t)}},notesVisible:{immediate:!1,handler:function(t,e){return void 0===e?null:this.toggle("notes",t)}},shareVisible:{immediate:!1,handler:function(t,e){return void 0===e?null:this.toggle("share",t)}},printVisible:{immediate:!1,handler:function(t,e){return void 0===e?null:this.toggle("print",t)}},downloadsVisible:{immediate:!1,handler:function(t,e){return void 0===e?null:this.toggle("downloads",t)}},soundVisible:{immediate:!1,handler:function(t,e){if(this.$store.state.workspace.bookComponent&&"string"!=typeof e)return void 0===e?null:this.toggle("sound",t)}},zoomVisible:{immediate:!1,handler:function(t,e){return void 0===e?null:this.toggle("zoom",t)}},fullscreenVisible:{immediate:!1,handler:function(t,e){return void 0===e?null:this.toggle("fullscreen",t)}}},mounted:function(){var t=this;this.toc.show=this.tocVisible,this.thumbnails.show=this.thumbnailsVisible,this.notes.show=this.notesVisible,this.share.show=this.shareVisible,this.print.show=this.printVisible,this.downloads.show=this.downloadsVisible,this.sound.show=this.soundVisible,this.zoom.show=this.zoomVisible,this.fullscreen.show=this.fullscreenVisible,this.$nextTick((function(){t.areTransitionsAllowed=!0})),setTimeout(this.onResize,300),window.addEventListener("resize",this.onResize)},methods:{beforeIconAdd:function(t){n.default.addClass(t.firstChild,"svg-before-enter")},afterIconAdd:function(t){n.default.removeClass(t.firstChild,"svg-before-enter")},beforeIconRemove:function(t){n.default.addClass(t.firstChild,"svg-before-leave")},afterIconRemove:function(t){n.default.removeClass(t.firstChild,"svg-before-leave")},toggle:function(t,e){this.attractOnControlsSet?e?this.addWithPop(t):this.removeWithPop(t):e?this.add(t):this.remove(t)},addWithPop:function(t){var e=this;clearTimeout(this[t].timeoutId),clearTimeout(this.timeoutId),this.showPop=!0,this.showBackground=!0,this[t].timeoutId=setTimeout((function(){e[t].show=!0}),o),this.timeoutId=setTimeout((function(){e.showPop=!1,e.timeoutId=setTimeout((function(){e.showBackground=!1}),o-a)}),o+r+900)},add:function(t){clearTimeout(this[t].timeoutId),this[t].show=!0},removeWithPop:function(t){var e=this;clearTimeout(this[t].timeoutId),clearTimeout(this.timeoutId),this.showPop=!0,this.showBackground=!0;var i=o+300;this[t].timeoutId=setTimeout((function(){e[t].show=!1}),i),this.timeoutId=setTimeout((function(){e.showPop=!1,e.timeoutId=setTimeout((function(){e.showBackground=!1}),o-a)}),i+r+300)},remove:function(t){clearTimeout(this[t].timeoutId),this[t].show=!1},toggleZoomMode:function(){this.isZoomed?this.$root.$emit("bottomMenu:zoomOut"):this.isZoomed||this.isZoomPanelVisible?this.$store.dispatch("workspace/setZoomPanel",!1):this.$root.$emit("bottomMenu:zoomIn")},toggleFullScreen:function(){this.wsToggleFullscreen()},toggleMuteSound:function(){this.$store.dispatch("sound/toggleMuteSound")},openSidebar:function(t,e){null!==this.$store.state.popup.opened&&this.$store.dispatch("popup/closePopup"),this.$store.state.sidebar.opened!==t?this.$store.dispatch("sidebar/openSidebar",{component:t,params:e}):this.$store.dispatch("sidebar/closeSidebar")},openPopup:function(t,e){this.$store.dispatch("popup/openPopup",{component:t,params:e})},toggleSlideShow:function(){this.$store.dispatch("workspace/setSlideshowActive",{value:!this.slideshowActive})},onResize:function(){this.scale=this.$store.state.workspace.size.width/c*.95,this.scale=this.scale>2?2:this.scale,this.translateY=(this.$el.clientHeight-this.$store.state.workspace.size.height)/2/this.scale}},beforeDestroy:function(){window.removeEventListener("resize",this.onResize)}}},function(t,e,i){i(0).register({social:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},function(t,e,i){i(0).register({print:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},function(t,e,i){i(0).register({download:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},function(t,e,i){},,,,function(t,e,i){"use strict";i.r(e);var n=i(112);e.default=n.default},function(t,e,i){"use strict";i.r(e);var n=i(702),s=i(705),o=i(708),a=i(11),r=i(39),c=(i(71),i(122),i(421),i(29)),l=i.n(c),u=i(26);e.default={computed:{blinkLight:function(){return this.opaqueTop?Object(u.calculateLuma)(Object(u.parseColor)(this.backgroundColor))<.5:Object(u.calculateLuma)(Object(u.parseColor)(this.$store.state.skin.styles["top-right-menu-icon-color"]))>.5},opaqueTop:function(){return-1!==this.$store.state.skin.styles.classes.indexOf("opaqueTop")},backgroundColor:function(){var t=this.opaqueTop?"main-color":"second-color";return this.$store.state.skin.styles[t]},title:function(){return Object(a.decodeHtml)(this.$store.state.workspace.title)},titleDirection:function(){return l.a.getDirection(this.title)},hideSearchIcon:function(){return!this.$store.state.search.enabled},showHelpIcon:function(){return this.$store.state.workspace.components.help.enabled&&this.$t("HelpWindow.ABOUT_TEXT")&&this.$store.state.workspace.components.help.toolbarIcon},copyrightShown:function(){return this.$store.state.workspace.components.copyright.enabled&&this.$store.state.workspace.components.copyright.label},displayPages:function(){return!(!1===this.$store.state.workspace.components.paginator||!1===this.$store.state.workspace.components.paginator.enabled)},showDebug:function(){return!!window.FB_PUBL_DEBUG},showAccessibilityPDF:function(){var t;return null===(t=this.$store.state.workspace.accessibilityPDF)||void 0===t?void 0:t.fileName},searchSidebarOpened:function(){return"search"===this.$store.state.sidebar.opened}},components:{pager:n.default,"copyright-button":s.default,"debug-controls":o.default},methods:{openSidebar:function(t){null!==this.$store.state.popup.opened&&this.$store.dispatch("popup/closePopup"),this.$store.dispatch("sidebar/openSidebar",{component:t})},openPopup:function(t){null!==this.$store.state.popup.opened&&this.$store.dispatch("popup/closePopup"),this.$store.dispatch("popup/openPopup",{component:t})},beforeIconAdd:function(t){r.default.addClass(t.firstChild,"svg-before-enter")},afterIconAdd:function(t){r.default.removeClass(t.firstChild,"svg-before-enter")},beforeIconRemove:function(t){r.default.addClass(t.firstChild,"svg-before-leave")},afterIconRemove:function(t){r.default.removeClass(t.firstChild,"svg-before-leave")}}}},function(t,e,i){"use strict";i.r(e);var n=i(114);e.default=n.default},function(t,e,i){"use strict";i.r(e),e.default={computed:{totalPagesVisible:function(){return this.$store.state.workspace.components.paginator&&!1!==this.$store.state.workspace.components.paginator.totalPagesVisible},totalForDisplay:function(){return this.$store.getters["pager/totalForDisplay"]},stateForDisplay:function(){return this.$store.getters["pager/stateForDisplay"]},size:function(){return Math.max(5,this.stateForDisplay.length)},accessibilityMode:function(){return this.$store.state.workspace.accessibilityMode}},watch:{accessibilityMode:function(t){!t||document.activeElement&&null!==document.activeElement.getAttribute("tabindex")||this.$refs.input.focus()}},methods:{selectAll:function(t){t.target.select()},goTo:function(t){this.$store.dispatch("pager/goToPageByUserInput",{userInput:t.target.value,type:"caption",target:"paginator"}),t.target.blur()},update:function(t){t.target.value=this.stateForDisplay}}}},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var n=i(117);e.default=n.default},function(t,e,i){"use strict";i.r(e);var n=i(11);e.default={computed:{label:function(){return Object(n.decodeHtml)(this.$store.state.workspace.components.copyright.label)},url:function(){return this.$store.state.workspace.components.copyright.url||null},target:function(){return this.$store.state.workspace.components.copyright.target||"_blank"}},methods:{onClick:function(){var t=this.$store.state.pager.currentPage;this.$root.$emit("link",{type:"external",source:"copyright",url:this.url,target:this.target,pageId:t})}}}},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var n=i(120);e.default=n.default},function(t,e,i){"use strict";i.r(e),(function(t){var n=i(8),s=i(4);e.default={data:function(){return{showMenu:!1,sections:{book:!0,workspace:!0,components:!1,skin:!1},skinList:["current"],currentSkin:"current",api:this.$root.$options.api}},beforeMount:function(){this.setSkinColorDebounced=Object(n.debounce)(this.setSkinColor,50,!0),this.loadSkinList(),t.addEventListener("keydown",this.keyDownHandler)},beforeDestroy:function(){this.setSkinColorDebounced.destroy(),t.removeEventListener("keydown",this.keyDownHandler)},computed:{layout:function(){return this.$store.state.workspace.layout},availableLocales:function(){var t=this;return Object.keys(this.$store.state.workspace.locales).length>0?this.$store.state.i18n.config.locales.filter((function(e){return-1!==t.$store.state.workspace.locales.indexOf(e)})):this.$store.state.i18n.config.locales},currentLocale:{get:function(){return this.$store.state.i18n.currentLocale},set:function(t){this.setLocale(t)}},thickness:{get:function(){return this.$store.state.book.thickness},set:function(t){this.apiSetPagesValue("thickness",t)}},isTranslucentReverseSide:{get:function(){return this.$store.state.workspace.components.book.isTranslucentReverseSide},set:function(t){this.setWorkspaceBookComponent({isTranslucentReverseSide:t}),this.$store.state.pager.singleMode&&this.$store.dispatch("pager/setForceRerender",{forceRerender:!0})}},hardcover:{get:function(){return this.$store.getters["book/hasHardcover"]},set:function(t){this.apiSetPagesValue("hardcover",t)}},hardcoverColor:{get:function(){return this.$store.state.book.hardcoverColor},set:function(t){this.apiSetPagesValue("hardcoverColor",t)}},numerationOffset:{get:function(){return this.$store.state.book.numerationOffset},set:function(t){var e=parseInt(t,10);isNaN(e)||this.apiSetPagesValue("numerationOffset",e)}},bookSize:{get:function(){return this.$store.state.workspace.bookSize},set:function(t){this.apiSetWorkspaceValue("bookSize",t)}},rtl:{get:function(){return this.$store.state.book.rightToLeft},set:function(t){this.apiSetPagesValue("rightToLeft",t)}},flip:{get:function(){return this.$store.state.workspace.components.book.flip},set:function(t){this.setWorkspaceBookComponent({flip:t})}},cropMode:{get:function(){return this.$store.state.book.contentCrop},set:function(t){this.apiSetPagesValue("contentCrop",t)}},pagerMode:{get:function(){return"auto"===this.$store.state.workspace.components.book.flipbookType?"auto":this.$store.state.pager.mode},set:function(t){this.flip||"slide"===t?this.setWorkspaceBookComponent({flipbookType:t}):this.$store.dispatch("pager/changeMode",{mode:t,target:"debug"})}},attract:{get:function(){return this.$store.state.workspace.attractOnControlsSet},set:function(t){this.apiSetWorkspaceValue("attractOnControlsSet",t)}},toc:{get:function(){return this.$store.state.toc.enabled},set:function(t){this.apiSetWorkspaceValue("toc.enabled",t)}},download:{get:function(){return this.$store.state.downloads.enabled},set:function(t){this.apiSetWorkspaceValue("downloads.enabled",t)}},sound:{get:function(){return this.$store.state.sound.enabled},set:function(t){this.apiSetWorkspaceValue("sound.enabled",t)}},search:{get:function(){return this.$store.state.search.enabled},set:function(t){this.apiSetWorkspaceValue("search.enabled",t)}},thumbnails:{get:function(){return this.$store.state.workspace.components.thumbnails},set:function(t){this.apiSetWorkspaceValue("components.thumbnails",t)}},notes:{get:function(){return this.$store.state.workspace.components.notes},set:function(t){this.apiSetWorkspaceValue("components.notes",t)}},share:{get:function(){return this.$store.state.workspace.components.share},set:function(t){this.apiSetWorkspaceValue("components.share",t)}},print:{get:function(){return this.$store.state.workspace.components.print},set:function(t){this.apiSetWorkspaceValue("components.print",t)}},fullscreen:{get:function(){return this.$store.state.workspace.components.fullscreen},set:function(t){this.apiSetWorkspaceValue("components.fullscreen",t)}},zoom:{get:function(){return this.$store.state.workspace.components.zoom},set:function(t){this.apiSetWorkspaceValue("components.zoom",t)}},slideshow:{get:function(){var t;return null===(t=this.$store.state.workspace.components.slideshow)||void 0===t?void 0:t.enabled},set:function(t){this.apiSetWorkspaceValue("components.slideshow.enabled",t)}},selectText:{get:function(){return this.$store.state.workspace.components.textSelection},set:function(t){this.apiSetWorkspaceValue("components.textSelection",t)}},mainSkinColor:{get:function(){return this.$store.state.skin.styles["main-color"]},set:function(t){this.setSkinColorDebounced({mainColor:t})}},secondSkinColor:{get:function(){return this.$store.state.skin.styles["second-color"]},set:function(t){this.setSkinColorDebounced({secondColor:t})}},bgImageUrl:{get:function(){return this.$store.state.skin.styles["background-image"].replace('url("',"").replace('")',"")},set:function(t){this.loadBgImage(t)}}},watch:{currentSkin:"loadSkin"},methods:{apiSetWorkspaceValue:function(t,e){this.api.getProperty("workspace").set(t,e)},apiSetPagesValue:function(t,e){this.api.getProperty("pages").set(t,e)},setSkinColor:function(t){var e=t.mainColor,i=void 0===e?null:e,n=t.secondColor,s=void 0===n?null:n,o=t.image,a=void 0===o?null:o,r=new window.ColorsFromImage;i=i||this.$store.state.skin.styles["main-color"],s=s||this.$store.state.skin.styles["second-color"],r.setMainColor(i),r.setSecondColor(s),a&&r.setImage(a);var c=r.getVars();for(var l in c)c.hasOwnProperty(l)&&this.api.getProperty("skin").set(l,c[l])},setWorkspaceBookComponent:function(t){var e=t.flip,i=void 0===e?this.flip:e,n=t.flipbookType,s=void 0===n?this.pagerMode:n,o=t.isTranslucentReverseSide,a=void 0===o?this.isTranslucentReverseSide:o;this.apiSetWorkspaceValue("components.book",{flip:i,flipbookType:s,isTranslucentReverseSide:a})},setLocale:function(t){this.$store.dispatch("i18n/setCurrentLocale",{locale:t})},toggleSection:function(t){this.sections[t]=!this.sections[t]},toggleDebugMenu:function(){this.showMenu=!this.showMenu},loadSkinList:function(){var e=["current"];t.fetch(Object(s.default)().translatePath("/skins/skins.json")).then((function(t){return t.json()})).then((function(t){t.map((function(t){e.push(t.folder)}))})),this.skinList=e},loadSkin:function(e){var i=this;t.fetch(Object(s.default)().translatePath("skins/".concat(e,"/config.json"))).then((function(t){return t.json()})).then((function(t){for(var n in t)t.hasOwnProperty(n)&&("background-image"===n&&(t[n]=t[n].replace("current",e)),i.api.getProperty("skin").set(n,t[n]))}))},loadBgImage:function(t){var e=this;t||(this.setSkinColor({image:null}),this.api.getProperty("skin").set("background-image",""));var i=new Image;i.onload=function(n){e.setSkinColor({image:i}),e.api.getProperty("skin").set("background-image",'url("'.concat(t,'")'))},i.src=Object(s.default)().translatePath(t)},nextSkin:function(){var t=this.skinList.filter((function(t){return"current"!==t})),e=t.indexOf(this.currentSkin);this.currentSkin=t[e+1]||t[0]},nextLocale:function(){var t=this.availableLocales.indexOf(this.currentLocale);this.setLocale(this.availableLocales[t+1]||this.availableLocales[0])},keyDownHandler:function(t){(t.ctrlKey||t.metaKey)&&t.altKey&&"Slash"===t.code&&this.nextSkin(),(t.ctrlKey||t.metaKey)&&t.altKey&&"Period"===t.code&&this.nextLocale()}}}}).call(this,i(7))},function(t,e,i){},,function(t,e,i){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){"use strict";i.r(e);var n=i(206);e.default=n.default},function(t,e,i){"use strict";i.r(e);var n=i(14),s=i(24),o=i(26),a={backgroundColor:"#ECF0F1",titleColor:"#3E3E43",titleText:null,coverSrc:null,logoLink:{image:null,url:"http://flippingbook.com"}},r=2;e.default={components:{spinner:s.default},data:function(){return{width:60,config:null}},created:function(){this.animatePageTimeoutIds={},this.config=Object(n.default)(a,this.$store.state.workspace.preloaderConfig),this.pageInShadowColors=Object(o.parseColor)(this.config.backgroundColor),this.pageInShadowColors="#000000"===this.config.backgroundColor?[35,35,35]:this.pageInShadowColors,this.pageInShadowColors=this.pageInShadowColors.map((function(t){return(.85*t).toFixed(0)}))},mounted:function(){this.animate(),this.intervalId=setInterval(this.animate,3200)},computed:{pageStyles:function(){return{"background-color":this.config.backgroundColor,"border-color":this.config.titleColor,"border-width":"".concat(r,"px"),"border-radius":"0 ".concat(this.width/10,"px ").concat(this.width/10,"px 0"),width:"".concat(this.width/2,"px"),height:"".concat(this.height,"px"),left:"".concat(this.width/2-r,"px")}},bookWrapStyles:function(){return{width:"".concat(this.width,"px"),height:"".concat(this.height,"px"),"margin-top":"-".concat(this.height,"px"),"margin-left":"".concat(-this.width/2,"px"),"background-color":this.config.backgroundColor}},height:function(){return.75*this.width},isChrome:function(){return this.$store.state.workspace.userAgentInfo.browser.chrome},isIE:function(){return!0===this.$store.state.workspace.userAgentInfo.browser.msie},spinnerBgColor:function(){var t=this.$store.state.skin.styles["main-button-color"];return t?"rgba("+Object(o.parseColor)(t).join(",")+", 0.8)":"#FFFFFF"},spinnerFgColor:function(){var t=this.$store.state.skin.styles["second-text-color"];return t?"rgba("+Object(o.parseColor)(t).join(",")+", 0.8)":"#5692AE"}},methods:{animate:function(){var t=this;this.animatePage("page1"),this.animateTimeoutId=setTimeout((function(){var e=[4,3,2];t.animatePagePile(e),t.animateTimeoutId=setTimeout((function(){var e=[10,9,8,7,6,5];t.animatePagePile(e)}),1100)}),600)},animatePagePile:function(t){var e=this;this.animatePagePileIntervalId=setInterval((function(){if(t.length){var i="page".concat(t.pop());e.animatePage(i)}else clearInterval(e.animatePagePileIntervalId)}),100)},animatePage:function(t){var e=this;this.$refs[t].style.transform="rotateY(-20deg)",this.$refs[t].style.transition="transform 1.1s, background-color .385s",this.$refs[t].style.transform="rotateY(-160deg)",this.$refs[t].style.backgroundColor="rgb(".concat(this.pageInShadowColors.join(","),")");var i=setTimeout((function(){delete e.animatePageTimeoutIds[i],e.$refs[t].style.transition="transform 1.1s, background-color .55s",e.$refs[t].style.backgroundColor=e.config.backgroundColor}),385),n=setTimeout((function(){delete e.animatePageTimeoutIds[n],e.$refs[t].style.transition=null,e.$refs[t].style.transform="rotateY(-20deg)"}),1100);this.animatePageTimeoutIds[i]=!0,this.animatePageTimeoutIds[n]=!0}},beforeDestroy:function(){clearInterval(this.intervalId),clearTimeout(this.animateTimeoutId),clearInterval(this.animatePagePileIntervalId),Object.keys(this.animatePageTimeoutIds).forEach((function(t){clearTimeout(t)}))}}},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var n=i(209);e.default=n.default},function(t,e,i){"use strict";i.r(e);var n,s=i(468),o=i(830),a=i(835),r=i(841),c=i(844),l=i(847);i(106),i(105),i(104),i(228),i(850),i(421),i(122);e.default={components:{"downloads-window":s.default,"print-window":o.default,"social-window":a.default,"info-window":r.default,"help-window":c.default,"accessibility-window":l.default},computed:{title:function(){switch(this.$store.state.popup.opened){case"download":return this.$i18n.t("SaveWindow.TITLE");case"print":return this.$i18n.t("PrintWindow.TITLE");case"social":return this.$i18n.t("PermanentLinkBar.TITLE");case"info":return"Publication info";case"help":return this.$i18n.t("HelpWindow.TITLE");case"accessibility":return this.$i18n.t("Accessibility.WINDOW_TITLE");default:return"error"}},icon:function(){return this.$store.state.popup.opened},activeComponent:function(){return this.$store.state.popup.opened}},methods:{close:function(){this.$store.dispatch("popup/closePopup")},getMessageStyle:function(){var t=this.$el.getBoundingClientRect(),e=this.$store.getters["workspace/containerSize"].left;return{left:t.left-e+t.width/2+"px",top:t.top+t.height/2+"px"}}},mounted:function(){var t=this,e=document.querySelector("[data-modal-tabIndex=first]"),i=document.querySelector("[data-modal-tabIndex=last]"),n=document.querySelector("[data-modal-tabIndex=first-init]"),s=this.$refs["first-trap"],o=this.$refs["last-trap"];n&&!i&&(i=n),n&&(n.addEventListener("focus",(function(e){t.relatedTargetFocus=e.relatedTarget||null})),n.focus()),s&&i&&s.addEventListener("focus",(function(t){i.focus()})),o&&e&&o.addEventListener("focus",(function(){e.focus()}))},beforeCreate:function(){var t=this;n=function(e){27===e.keyCode&&t.$store.dispatch("popup/closePopup")},window.addEventListener("keydown",n)},beforeDestroy:function(){window.removeEventListener("keydown",n),n=null,this.relatedTargetFocus instanceof Element&&this.relatedTargetFocus.focus()}}},function(t,e,i){"use strict";i.r(e);var n=i(211);e.default=n.default},function(t,e,i){"use strict";i.r(e);var n=i(470),s=(i(814),i(815),i(816),i(817),i(818),i(819),i(820),i(821),i(822),i(823),i(824),i(825),i(826),i(827),i(828),i(41)),o=i.n(s),a=i(4);e.default={mixins:[n.default],name:"DownloadWindow",mounted:function(){this.filesArray.length>4&&this.initScroll()},computed:{editorMode:function(){return!!this.$store.state.workspace.userAgentInfo.browser.publisher},windowTitle:function(){return this.$i18n.t("SaveWindow.TITLE")},fullDescription:function(){return this.$t("SaveWindow.FULL_PUBLICATION_DESCRIPTION")},filesArray:function(){var t=this,e=[];return this.pageFiles&&this.pageFiles.filter((function(t){return t.ready})).forEach((function(i){e.push({title:1===t.pageFiles.length?t.pagesTitle.one:t.pagesTitle[i.side],url:function(){return Object(a.default)().translatePath(i.url)},type:"page",size:i.size,icon:"file-pdf",fileName:i.fileName,pageId:i.pageId})})),this.customFiles&&this.customFiles.forEach((function(i){e.push({title:i.title,url:function(){return Object(a.default)().translatePath(i.url)},type:"custom",size:i.size,icon:"file-"+t.getIcon(i.url),fileName:i.fileName})})),e}},methods:{processDownloadEvent:function(t,e,i){if(this.editorMode)t.preventDefault();else{var n,s={leftPageUrl:this.$store.getters["pages/urlHeaderById"]({id:this.pagerState.leftPage}),rightPageUrl:this.$store.getters["pages/urlHeaderById"]({id:this.pagerState.rightPage})};"full"===e?(s.option="full",s.fileName=this.fullPdf.fileName,n=Object(a.default)().translatePath(this.fullPdf.url)):(s.option=e,s.fileName=this.filesArray[i].fileName,n=this.filesArray[i].url(),"page"===e&&(s.downloadPage=this.$store.getters["pages/urlHeaderById"]({id:this.filesArray[i].pageId}))),t.currentTarget.href=n,this.$root.$emit("download",s)}},getIcon:function(t){var e=["doc","exe","gif","html","jpg","mp3","mp4","pdf","png","ppt","psd","rar","xls","zip"],i={docx:"doc",pptx:"ppt",xlsx:"xls",htm:"html"},n=t.split(".").pop(),s=e.indexOf(n);return-1!==s?e[s]:i[n]||"any"},initScroll:function(){this.$refs["download-list"]&&(this.iScroll=new o.a(this.$refs["download-list"],{mouseWheel:!0,scrollbars:!0,fadeScrollbars:!1,interactiveScrollbars:!0,probeType:0,disablePointer:!0,disableTouch:!1,disableMouse:!1,resizePolling:200,bounce:!1}))},closeDialog:function(){this.$store.dispatch("popup/closePopup")}},watch:{filesArray:function(t){var e=this;!this.iScroll&&t.length>4?this.initScroll():t.length<=4&&this.iScroll&&(this.iScroll.destroy(),this.iScroll=null),this.iScroll&&this.$nextTick((function(){e.iScroll.refresh()}))}}}},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var n=i(214);e.default=n.default},function(t,e,i){"use strict";i.r(e);var n=i(832),s=i.n(n),o=i(11),a=i(4);i(833);e.default={data:function(){return{selected:0,printSupported:!0,pdfIsAvailable:!0,status:"idle",loaded:0,total:0,xmlHTTP:null}},mounted:function(){var t=this;if(this.checkPrintingSupport(),this.params.pageId){var e,i=null===(e=this.partsOptionsArray.filter((function(e){return e.pageId===t.params.pageId})))||void 0===e?void 0:e[0];i&&this.printSupported&&this.pdfIsAvailable&&this.print(i)}},computed:{localization:function(){return{cancel:this.$t("PrintWindow.CANCEL_BUTTON"),waiting:this.$t("PrintWindow.WAITING"),commentCurrent:this.$t("PrintWindow.COMMENT_OPEN_CURRENT"),customTip:this.$t("PrintWindow.CUSTOM_RANGE_TIP"),errorMsg:this.$t("PrintWindow.ERROR_MESSAGE"),leftPage:this.$t("PrintWindow.LEFT_PAGE"),rightPage:this.$t("PrintWindow.RIGHT_PAGE"),currentPage:this.$t("PrintWindow.CURRENT_PAGE"),customRange:this.$t("PrintWindow.CUSTOM_RANGE"),customRangeDescription:this.$t("PrintWindow.CUSTOM_RANGE_DESCRIPTION")}},params:function(){return this.$store.state.popup.params},downloaded:function(){return this.$t("PrintWindow.DOWNLOADING",{0:Object(o.formatSize)(this.loaded),1:Object(o.formatSize)(this.total)})},fullPdf:function(){return this.$store.getters["downloads/getFullPdf"]},pageFiles:function(){return this.$store.getters["downloads/getPageFiles"]},currentPagesVisible:function(){return this.$store.state.print.currentPagesVisible},selectedPagesVisible:function(){return this.$store.state.print.selectedPagesVisible},fullOption:function(){var t=this;return{title:this.localization.customRange,url:function(){return Object(a.default)().translatePath(t.fullPdf.url)},type:"full",fileName:this.fullPdf.fileName}},partsOptionsArray:function(){var t=this,e=[];return this.pageFiles&&this.currentPagesVisible&&this.pageFiles.filter((function(t){return t.ready})).forEach((function(i){e.push({title:1===t.pageFiles.length?t.localization.currentPage:t.localization[i.side+"Page"],url:function(){return Object(a.default)().translatePath(i.url)},type:"page",icon:"file-pdf",pageId:i.pageId,fileName:i.fileName})})),e},progressBarStyle:function(){return{width:0===this.total?"0%":parseInt(this.loaded/this.total*100,10)+"%"}},userAgentInfo:function(){return this.$store.state.workspace.userAgentInfo},editorMode:function(){return!!this.userAgentInfo.browser.publisher}},methods:{checkPrintingSupport:function(){var t=this;if(!this.editorMode&&(this.fullPdf&&this.fullPdf.url||this.pageFiles&&this.pageFiles.length>0)){this.url=Object(a.default)().translatePath(this.fullPdf.url||this.pageFiles[0].url);var e=new XMLHttpRequest;e.open("HEAD",this.url),e.onreadystatechange=function(){if(this.readyState===this.DONE)if(200===this.status){var e;this.getAllResponseHeaders().indexOf("content-disposition")>=0&&(e=this.getResponseHeader("content-disposition"));var i=e&&e.search("attachment")>=0;t.pdfIsAvailable="application/pdf"===this.getResponseHeader("Content-Type")&&!i}else t.pdfIsAvailable=!1,console.error("PDF printing is not available.")},e.send()}else this.pdfIsAvailable=!1;this.printSupported=!this.userAgentInfo.browser.ie&&!this.userAgentInfo.browser.msedge},print:function(t){if(!this.editorMode){var e=t.url();if(!this.printSupported)return window.open(e,"_blank"),void this.onPrintDialogClose();var i=this,n={type:"pdf",onPdfOpen:this.onPrintDialogClose,onPrintDialogClose:this.onPrintDialogClose};this.xmlHTTP&&this.xmlHTTP.abort(),this.xmlHTTP=new XMLHttpRequest,this.xmlHTTP.open("GET",e),this.xmlHTTP.responseType="arraybuffer","onprogress"in this.xmlHTTP&&(i.xmlHTTP.onprogress=function(t){t.lengthComputable&&(i.loaded=t.loaded,i.total=t.total)}),this.xmlHTTP.onload=function(){var t=new Blob([this.response],{type:"application/pdf"});n.printable=window.URL.createObjectURL(t),t=null,i.xmlHTTP=null,i.status="printing",s()(n)},this.loaded=0,this.total=0,this.status="downloading",this.xmlHTTP.send(),this.sendApiEvent(t)}},sendApiEvent:function(t){var e,i,n=this.$store.getters["pager/legacyState"];n.leftPage&&(e=this.$store.getters["pages/urlHeaderById"]({id:n.leftPage,forceFullWide:!0})),i=n.rightPage?this.$store.getters["pages/urlHeaderById"]({id:n.rightPage,forceFullWide:!0}):e;var s={option:t.type,fileName:t.fileName,leftPageUrl:e,rightPageUrl:i};t.pageId&&(s.printPage=this.$store.getters["pages/urlHeaderById"]({id:t.pageId})),this.$root.$emit("print",s)},cancel:function(){this.xmlHTTP&&this.xmlHTTP.abort(),this.xmlHTTP=null,this.loaded=0,this.total=0,this.status="idle"},onPrintDialogClose:function(){this.$store.dispatch("popup/closePopup")}}}},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var n=i(217);e.default=n.default},function(t,e,i){"use strict";i.r(e);var n=i(4),s=i(837),o=i(72),a=i.n(o),r=i(838),c=i.n(r),l=i(839);e.default={data:function(){return{embedTemplate:l.template,activeTab:"share",currentPage:!1,embedWidth:"640",embedHeight:"480",embedType:"full",embedLegacy:!1,embedLightbox:!0,clipboardShare:null,clipboardEmbed:null}},mounted:function(){this.updateUrl(),this.enableClipboard(),this.params.currentPage&&(this.currentPage=!0)},beforeDestroy:function(){this.clipboardShare.destroy(),this.clipboardEmbed.destroy()},computed:{currentTitle:function(){return this.$store.state.workspace.title},params:function(){return this.$store.state.popup.params},currentUrl:function(){return Object(n.default)().getShareUrl(this.currentPage)},localization:function(){return{shareTab:this.$t("PermanentLinkBar.SHARE_TAB"),embedTab:this.$t("PermanentLinkBar.INSERT_TO_SITE_TAB"),shareCurrent:this.$t("PermanentLinkBar.SHARE_CURRENT_PAGE"),embedCurrent:this.$t("PermanentLinkBar.INSERT_CURRENT_PAGE"),width:this.$t("PermanentLinkBar.WIDTH"),height:this.$t("PermanentLinkBar.HEIGHT"),fullPublication:this.$t("PermanentLinkBar.FULL_PUBLICATION"),linkablePage:this.$t("PermanentLinkBar.LINKABLE_PAGE"),embedType:this.$t("PermanentLinkBar.EMBEDDING_TYPE"),copyButton:this.$t("PermanentLinkBar.COPY_BUTTON"),shareText:this.$t("PermanentLinkBar.SHARE_TEXT"),facebookTitle:this.$t("PermanentLinkBar.SHARE_TO_FACEBOOK"),twitterTitle:this.$t("PermanentLinkBar.SHARE_TO_TWITTER"),linkedinTitle:this.$t("PermanentLinkBar.SHARE_TO_LINKEDIN"),mailTitle:this.$t("PermanentLinkBar.SEND_BY_EMAIL"),copyTooltip:this.$t("PermanentLinkBar.COPY_TOOLTIP")}},embedCode:function(){var t=Object(n.default)().getEmbedPrefix(),e=this.embedWidth,i=this.embedHeight,s=Object(n.default)().getShareUrl(!1),o=this.currentPage?this.getCurrentPage():null,a=-1===["fbo","fbc"].indexOf(t)?Object(n.default)().translatePath("assets/cover300.jpg"):null,r={url:s,title:this.currentTitle,script:Object(n.default)().translatePath("static/embed.js",!0),prefix:t,lightbox:this.embedLightbox?"yes":"no",hashMode:Object(n.default)().getHashMode(),index:Object(n.default)().getIndexFileName(),page:o,thumbnail:a,width:-1!==e.indexOf("%")||-1!==e.indexOf("px")||-1!==e.indexOf("vh")||-1!==e.indexOf("vw")?e:e+"px",height:-1!==i.indexOf("%")||-1!==i.indexOf("px")||-1!==i.indexOf("vh")||-1!==i.indexOf("vw")?i:i+"px",method:"site",legacy:this.embedLegacy};return this.$store.state.info&&this.$store.state.info.publicationVer&&(r.version=this.$store.state.info.publicationVer),c.a.render(this.embedTemplate,r)},tabsEnabled:function(){return this.$store.state.workspace.components.embed},isMac:function(){return!0===this.$store.state.workspace.userAgentInfo.os.mac}},methods:{updateUrl:function(){var t=function(t,e){var i=[];for(var n in e)if(e.hasOwnProperty(n)){var s=encodeURIComponent(n),o=encodeURIComponent(e[n]);i.push(s+"="+o)}return t+"?"+i.join("&")};this.$refs.facebookBtn.href=t("http://www.facebook.com/sharer.php",{u:this.currentUrl}),this.$refs.twitterBtn.href=t("http://twitter.com/share",{text:this.currentTitle,url:this.currentUrl}),this.$refs.linkedinBtn.href=t("http://www.linkedin.com/shareArticle",{mini:!0,url:this.currentUrl,title:this.currentTitle,summary:this.currentTitle}),this.$refs.mailBtn.href=t("mailto:",{subject:this.currentTitle,body:this.currentUrl}),this.renderQR()},renderQR:function(){this.$refs.qr.innerHTML="",this.qr=new s.default(this.$refs.qr,{text:Object(n.default)().getShareUrl(this.currentPage)+"?utm_source=qr",width:128,height:128,correctLevel:s.default.CorrectLevel.M})},tabClick:function(t){this.activeTab=t},sendApiEvent:function(t){this.$root.$emit("share",{service:t,url:this.currentUrl})},enableClipboard:function(){var t=this;this.clipboardShare=new a.a(this.$refs.copyUrlButton),this.clipboardEmbed=new a.a(this.$refs.copyEmbedButton);var e=this.$refs.shareUrlContainer;document.addEventListener("copy",(function(i){i.target===e&&t.sendApiEvent("clipboard")})),this.clipboardShare.on("success",(function(e){t.$store.dispatch("workspace/setFlashMessage",{text:t.$t("AlertMessage.LINK_COPIED"),style:t.$parent.getMessageStyle()}),e.clearSelection()})),this.clipboardEmbed.on("success",(function(e){t.$store.dispatch("workspace/setFlashMessage",{text:t.$t("AlertMessage.EMBED_CODE_COPIED"),style:t.$parent.getMessageStyle()}),e.clearSelection()})),this.clipboardShare.on("error",(function(){t.$store.dispatch("workspace/setFlashMessage",{text:t.$tc("AlertMessage.COPY_ERROR",0,{key:t.isMac?"⌘C":"Ctrl + C"}),style:t.$parent.getMessageStyle()})})),this.clipboardEmbed.on("error",(function(){t.$store.dispatch("workspace/setFlashMessage",{text:t.$tc("AlertMessage.COPY_ERROR",0,{key:t.isMac?"⌘C":"Ctrl + C"}),style:t.$parent.getMessageStyle()})}))},getCurrentPage:function(){var t,e=this.$store.getters["pager/state"];return t=e.targetPage?e.targetPage:e.singleMode?e.rightPage:null!==e.leftPage?e.leftPage:e.rightPage,this.$store.getters["pages/urlHeaderById"]({id:t})}},watch:{currentUrl:"updateUrl",embedType:function(t){"cover"===t?(this.embedWidth="240",this.embedHeight="210"):(this.embedWidth="640",this.embedHeight="480")}}}},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var n=i(220);e.default=n.default},function(t,e,i){"use strict";i.r(e);var n=i(5);e.default={name:"InfoWindow",data:function(){return{showConfig:!1,showPagerInfo:!1,clickCount:0,currentComponent:"---",loadLabel:null,activeTab:"info"}},computed:{publicationInfoData:function(){return this.$store.state.info},hasPublicationData:function(){return!Object(n.isEmpty)(this.publicationInfoData)&&this.publicationInfoData.id},hasAdditionalData:function(){return this.hasPublicationData&&!Object(n.isEmpty)(this.publicationInfoData.additional)},pagerInfo:function(){return this.showConfig&&this.showPagerInfo?this.$root.$options.api.getProperty("pages").getJSON({space:2}):null},workspaceInfo:function(){return this.showConfig?this.$root.$options.api.getProperty("workspace").getJSON({space:2}):null},skinInfo:function(){return this.showConfig?this.$root.$options.api.getProperty("skin").getJSON({space:2}):null},availableComponents:function(){var t=Object.keys(this.$store.state).sort();return t.unshift("---"),t},componentInfo:function(){return this.$store.state.hasOwnProperty(this.currentComponent)?JSON.stringify(this.$store.state[this.currentComponent],null,2):"Please select a component"},versionInfo:function(){var t=this.$store.state.info;return t&&t.publicationVer?this.$t("HelpWindow.INFO_VERSION_LABEL")+" "+(t.publishVer?t.publishVer+"-":"")+t.publicationVer:null}},methods:{onClick:function(){this.clickCount++,10===this.clickCount&&(this.showConfig=!0,this.loadLabel="Load info",this.$store.dispatch("workspace/setFlashMessage",{text:"Are you a developer or just curious? ;)",delay:1500,style:this.$parent.getMessageStyle()}),this.$root.$emit("develop",{action:"Info Opened",data:"level 1"}))},tabClick:function(t){this.activeTab=t},loadPager:function(){var t=this;this.loadLabel="Loading... This may take a while...",setTimeout((function(){t.showPagerInfo=!0}),100)}}}},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var n=i(223);e.default=n.default},function(t,e,i){"use strict";i.r(e),e.default={name:"HelpWindow",data:function(){return{activeTab:"info"}},beforeMount:function(){this.localization.about.text&&(this.activeTab="about")},computed:{bookComponent:function(){return this.$store.state.workspace.bookComponent},isMac:function(){return!0===this.$store.state.workspace.userAgentInfo.os.mac},isIE:function(){return!0===this.$store.state.workspace.userAgentInfo.browser.msie},ctrlKey:function(){return this.isMac?"⌘":"Ctrl"},shiftKey:function(){return this.isMac?"⇧":"Shift"},altKey:function(){return this.isMac?"⌥":"Alt"},searchEnabled:function(){return this.$store.state.search.enabled},soundEnabled:function(){return this.$store.state.sound.enabled},printEnabled:function(){return this.$store.state.workspace.components.print},wheelFlipEnabled:function(){return this.$store.state.workspace.wheelScroll},selectTextEnabled:function(){return!this.isIE&&this.$store.state.workspace.components.textSelection},localization:function(){return{aboutTab:this.$t("HelpWindow.ABOUT_TAB"),infoTab:this.$t("HelpWindow.INFO_TAB"),hotkeysTab:this.$t("HelpWindow.HOTKEYS_TAB"),about:{text:this.$t("HelpWindow.ABOUT_TEXT")||null},info:{flipInfo:this.processLocaleStr(this.$t("HelpWindow.INFO_FLIP")),flipInfoWheel:this.processLocaleStr(this.$t("HelpWindow.INFO_FLIP_WHEEL")),slideInfo:this.processLocaleStr(this.$t("HelpWindow.INFO_SLIDE")),slideInfoWheel:this.processLocaleStr(this.$t("HelpWindow.INFO_SLIDE_WHEEL")),doubleClick:this.processLocaleStr(this.$t("HelpWindow.INFO_DOUBLE_CLICK")),changeZoom:this.processLocaleStr(this.$t("HelpWindow.INFO_ZOOM_CHANGE")),changeZoomWheel:this.processLocaleStr(this.$t("HelpWindow.INFO_ZOOM_CHANGE_WHEEL")),zoomMove:this.processLocaleStr(this.$t("HelpWindow.INFO_ZOOM_MOVE")),zoomSelect:this.processLocaleStr(this.$t("HelpWindow.INFO_ZOOM_TEXT_SELECT")),versionLabel:this.processLocaleStr(this.$t("HelpWindow.INFO_VERSION_LABEL")),contentHighlight:this.processLocaleStr(this.$t("HelpWindow.INFO_CONTENT_HIGHLIGHT"))},hotkeys:{zoomIn:this.$t("HelpWindow.HOTKEY_ZOOM_IN"),zoomOut:this.$t("HelpWindow.HOTKEY_ZOOM_OUT"),actualSize:this.$t("HelpWindow.HOTKEY_ACTUAL_SIZE"),copyText:this.$t("HelpWindow.HOTKEY_COPY_TEXT"),copyTextLink:this.$t("HelpWindow.HOTKEY_COPY_TEXT_LINK"),openSearch:this.$t("HelpWindow.HOTKEY_OPEN_SEARCH"),openPrint:this.$t("HelpWindow.HOTKEY_OPEN_PRINT"),muteSound:this.$t("HelpWindow.HOTKEY_TOGGLE_MUTE"),closeWindow:this.$t("HelpWindow.HOTKEY_CLOSE_WINDOW"),toggleWheel:this.$t("HelpWindow.HOTKEY_TOGGLE_WHEEL")}}},versionInfo:function(){var t=this.$store.state.info;return t&&t.publicationVer?this.localization.info.versionLabel+" "+(t.publishVer?t.publishVer+"-":"")+t.publicationVer:null}},methods:{keyDown:function(t){32!==t.keyCode&&13!==t.keyCode||(t.stopPropagation(),t.target.click())},tabClick:function(t){this.activeTab=t},processLocaleStr:function(t){return t=(t=(t=(t=(t=t.replace(/\[ctrl\]/gi,''+this.ctrlKey+"")).replace(/\[alt\]/gi,''+this.altKey+"")).replace(/\[shift\]/gi,''+this.shiftKey+"")).replace(/(\[)/gi,'')).replace(/(\])/gi,"")}}}},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var n=i(226);e.default=n.default},function(t,e,i){"use strict";i.r(e);var n=i(4),s=i(11);e.default={name:"AccessibilityWindow",data:function(){return{}},beforeMount:function(){},computed:{saveTitle:function(){return this.$i18n.t("SaveWindow.TITLE")},pdfLabel:function(){return this.$i18n.t("SaveWindow.FULL_PUBLICATION")},pdfTitle:function(){return this.$t("Accessibility.DOWNLOAD_TITLE")},pdfDescription:function(){return this.$t("Accessibility.DOWNLOAD_DESCRIPTION")},pdfSize:function(){return Object(s.formatSize)(this.$store.state.workspace.accessibilityPDF.size)},pdfFileName:function(){return this.$store.state.workspace.accessibilityPDF.fileName},pdfURL:function(){return Object(n.default)().translatePath("assets/downloads/accessibility/"+encodeURIComponent(this.pdfFileName))}},methods:{processDownloadEvent:function(t){t.currentTarget.href=this.pdfURL}}}},function(t,e,i){},,function(t,e,i){},function(t,e,i){"use strict";i.r(e);var n=i(231);e.default=n.default},function(t,e,i){"use strict";i.r(e);var n=i(73),s=i(857),o=i(482),a=i(15),r=i(24),c=i(8),l=i(5),u=i(31),d=new Map,h=new Map;e.default={data:function(){return{thRange:{minPage:null,maxPage:null},thumbsArray:[],thSize:{width:0,height:0},spreadCount:0,blocksCount:0,spreadsInBlock:5,visibleBlocks:[],wrapperHeight:0,thSchemaArray:[],activePageIndex:null}},mixins:[o.default],beforeMount:function(){this.setProperties()},mounted:function(){var t=this;this.$refs.sidebar.refresh(),this.$refs.sidebar.iScroll.on("scroll",this.onScroll),this.wrapperHeight=this.$refs.sidebar.iScroll.wrapperHeight,this.$refs.sidebar.iScroll.on("scrollEnd",this.onScrollEnd),this.setBlocksVisibility(),this.checkScroll(),setTimeout((function(){t.checkActiveSpread(!1,!0)}),50),window.addEventListener("resize",this.checkScroll)},beforeDestroy:function(){var t,e,i,n;window.removeEventListener("resize",this.checkScroll),null===(t=this.$refs.sidebar)||void 0===t||null===(e=t.iScroll)||void 0===e||e.off("scroll",this.onScroll),null===(i=this.$refs.sidebar)||void 0===i||null===(n=i.iScroll)||void 0===n||n.off("scrollEnd",this.onScrollEnd)},computed:{spreadHeight:function(){var t=40;return this.thSize.height+t},icon:function(){return"thumbnails"},wrapperClasses:function(){return{"th-wrapper":!0,rtl:this.isRtl,slide:this.slideMode}},pagerState:function(){return this.$store.getters["pager/state"]},flipState:function(){return this.$store.state.pager.flipState},params:function(){return this.$store.state.sidebar.params},focusableWrappers:function(){return!this.slideMode&&!this.singleMode}},methods:{setProperties:function(){this.spreadCount=this.singleMode?this.$store.getters["pages/pagesCount"]:Math.floor(this.$store.getters["pages/pagesCount"]/2)+1,this.blocksCount=Math.ceil(this.spreadCount/this.spreadsInBlock),this.thSize=this.getThumbSizes(this.slideMode)},changeThSchema:function(){for(var t=[],e=1;e<=this.blocksCount;e++){var i=[];if(-1!==this.visibleBlocks.indexOf(e))for(var n=1,s=this.getSpreadsInBlock(e);n<=s;n++)i.push(this.getThsInSpread(e,n));t.push(i)}this.thSchemaArray=t},getSpreadsInBlock:function(t){if(!d.has(t)){var e=this.spreadCount-t*this.spreadsInBlock<0?this.spreadsInBlock+(this.spreadCount-t*this.spreadsInBlock):this.spreadsInBlock;d.set(t,e)}return d.get(t)},getBlockPosition:function(t){if(!h.has(t)){var e;if(this.slideMode){e=0;for(var i=1,n=this.getSpreadsInBlock(t);i<=n;i++)for(var s=this.getThsInSpread(t,i),o=0,a=s.length;o=t&&a<=e||r>=t&&r<=e||a<=t&&r>=e?-1===c&&this.visibleBlocks.push(s):-1!==c&&this.visibleBlocks.splice(c,1)}},getContentSize:function(t){var e=this.$store.getters["pages/pageProp"](t,"width"),i=this.$store.getters["pages/pageProp"](t,"height"),n=Object(a.fit)({width:e,height:i},this.thumbDoubleSizes);return{width:Math.round(n.width),height:Math.round(n.height)}},getThumbSizes:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e={width:this.$store.getters["pages/size"].width*(!this.singleMode&&t?2:1),height:1*this.$store.getters["pages/size"].height},i=this.getWrapperRect(this.singleMode||t),n=Object(a.fit)(e,i);return{width:Math.round(n.width),height:Math.round(n.height)}},getSlideThumbSizes:function(t){var e={width:this.$store.getters["pages/pageProp"](t,"width"),height:this.$store.getters["pages/pageProp"](t,"height")},i=this.getWrapperRect(!0),n=Object(a.fit)(e,i);return{width:Math.round(n.width),height:Math.round(n.height)}},getThsInSpread:function(t,e){var i=1===t?e:(t-1)*this.spreadsInBlock+e,n=this.singleMode||1===i?[i]:[2*i-2,2*i-1],s=[];for(var o in n){if(!n.hasOwnProperty(o))return;var a=n[o]-1,r=this.$store.getters["pages/pageIdByIndexWide"](a),c=this.$store.getters["pages/pageProp"](r,"wide"),l=c?this.thumbDoubleSizes:this.thumbSizes,u=c&&!this.singleMode?"both":this.isRtl?a%2==0?"left":"right":a%2==0?"right":"left",d={id:r,index:a,wide:c,caption:this.singleMode?this.$store.getters["pages/pageCaptionByIndex"](a):this.$store.getters["pages/pageCaptionById"]({id:r}),size:this.slideMode?this.getSlideThumbSizes(r):l,side:u};if(null!==d.id&&s.push(d),c)break}return s},onScroll:function(){this.setBlocksVisibility()},changeRange:function(){var t=[],e=[];for(var i in this.thSchemaArray){if(!this.thSchemaArray.hasOwnProperty(i))return;var n=this.thSchemaArray[i].length;0!==n&&(t.push(this.thSchemaArray[i][0][0].index),this.thSchemaArray[i][n-1][1]?e.push(this.thSchemaArray[i][n-1][1].index):this.thSchemaArray[i][n-1][0]&&e.push(this.thSchemaArray[i][n-1][0].index))}this.thRange={minPage:Math.min.apply(Math,t)||0,maxPage:Math.max.apply(Math,e)||0}},onScrollEnd:function(){var t=this;this.hasPages&&(this.setBlocksVisibility(),this.$nextTick((function(){t.changeRange()})))},onClick:function(t){for(var e=this,i=Object(c.composedPath)(t.target),n=0,s=i.length;n-1){this.$store.dispatch("pager/goToPageByIndex",{pageIndex:i[n].getAttribute("data-index"),target:"thumbnails"}),this.$nextTick((function(){e.setFocus(e.$el.querySelector(".active"),!0)}));break}}},checkScroll:function(){var t=this;this.wrapperHeight=this.$refs.sidebar.iScroll.wrapperHeight,this.onScroll(),setTimeout((function(){t.onScrollEnd()}),200)},getActivePageIndex:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=null!=t?t:this.$store.getters["pages/pageIndexById"](this.pagerState.currentPage);return this.pagerState.widePageSecondHalf?e+1:e},getBlockIndexByPageIndex:function(t){return this.singleMode?Math.ceil((t+1)/this.spreadsInBlock):Math.ceil((t/2+1)/this.spreadsInBlock)},checkActiveSpread:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=this.getActivePageIndex(s);if(this.activePageIndex!==o||n){this.activePageIndex=o;var a=this.getBlockIndexByPageIndex(o);-1===this.visibleBlocks.indexOf(a)?(this.visibleBlocks=[a],this.$nextTick((function(){t.setActiveSpread(o,e,i)}))):this.setActiveSpread(o,e,i)}},setActiveSpread:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=this.$el.querySelector(".active");n&&n.classList.remove("active");var s=this.$el.querySelector('[data-index="'.concat(t,'"]'));if(s){var o=this.singleMode||this.slideMode?s:s.parentElement;o&&o.classList.add("active"),!e&&o&&(this.$refs.sidebar.iScroll.on("scrollEnd",this.onScrollByScrollTo),this.$refs.sidebar.scrollToElement({el:o,speed:i?10:300})),this.params.initial||this.setFocus(o,i||"thumbnails"===this.$store.state.pager.lastTarget)}},getActiveSpreadIndex:function(){return 1*(this.$el.querySelector(".active").getAttribute("data-th-focusable-index")||null)},moveActiveForItem:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.getActiveSpreadIndex()+(t?-1:1),i=this.$el.querySelector('[data-th-focusable-index="'+e+'"]');if(null!==i){var n=i.getAttribute("data-index")?i.getAttribute("data-index"):i.firstChild.getAttribute("data-index");this.setActiveSpread(n)}},onScrollByScrollTo:function(){var t=this;this.onScroll(),setTimeout((function(){var e,i;t.onScrollEnd(),null===(e=t.$refs.sidebar)||void 0===e||null===(i=e.iScroll)||void 0===i||i.off("scrollEnd",t.onScrollByScrollTo)}),200)},setFocus:function(t){var e,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(i||(null===(e=document.activeElement)||void 0===e?void 0:e.getAttribute("data-th-focusable")))&&setTimeout((function(){null==t||t.focus()}),i?50:0)},keyDown:function(t){var e=!1;switch(t.keyCode){case u.default.SPACE:case u.default.RETURN:var i=this.getActiveSpreadIndex(),n=this.$el.querySelector('[data-th-focusable-index="'+i+'"]'),s=n.querySelector('[data-page-container="true"]')||n;this.$store.dispatch("pager/goToPageByIndex",{pageIndex:s.getAttribute("data-index"),target:"thumbnails"}),e=!0;break;case u.default.UP:this.moveActiveForItem(!0),e=!0;break;case u.default.DOWN:case u.default.RIGHT:this.moveActiveForItem(),e=!0;break;case u.default.LEFT:this.moveActiveForItem(!0),e=!0;break;case u.default.HOME:this.checkActiveSpread(!1,!0,!0,0),e=!0;break;case u.default.END:this.checkActiveSpread(!1,!0,!0,this.$store.getters["pages/blocksCount"]-1),e=!0}e&&(t.stopPropagation(),t.preventDefault())},sidebarClick:function(){this.setFocus(this.$el.querySelector(".active"),!0)}},watch:{visibleBlocks:function(){this.changeThSchema()},isRtl:function(){this.changeThSchema()},pagerState:function(){"pending"===this.flipState&&this.checkActiveSpread(),"thumbnails"===this.$store.state.pager.lastTarget&&this.checkActiveSpread(!1)},thRange:function(t){var e=this;this.$nextTick((function(){e.$store.dispatch("thumbnails/changeRange",t)}))},mode:function(){var t=this;d.clear(),h.clear(),this.setProperties(),this.changeThSchema(),this.$nextTick((function(){t.$refs.sidebar.refresh(),t.onScrollEnd(),t.checkActiveSpread(!1,!1,!0)}))},contentCrop:function(){this.changeThSchema()},numerationOffset:function(){this.changeThSchema()},lowercaseRomans:function(){this.changeThSchema()},flipState:function(t,e){"pending"===t&&"pending"!==e&&this.checkActiveSpread()}},components:{sidebar:n.default,"th-item":s.default,spinner:r.default}}},function(t,e,i){"use strict";i.r(e);var n=i(233);e.default=n.default},function(t,e,i){"use strict";i.r(e);var n,s=i(41),o=i.n(s);i(74),i(228);e.default={props:{title:{type:String,required:!0},icon:{type:String,required:!0},footerTitle:{type:String,required:!1,default:""}},data:function(){return{sidebarRect:{},previousFocusedElement:null}},methods:{close:function(){"search"===this.activeComponent&&"toc"===this.$store.state.sidebar.previous?(this.$store.dispatch("sidebar/closeSidebar"),this.$store.dispatch("sidebar/openSidebar",{component:"toc"})):this.$store.dispatch("sidebar/closeSidebar")},refresh:function(){this.$nextTick((function(){this.iScroll&&(this.iScroll.refresh(),0===this.iScroll.maxScrollY?this.iScroll.wrapper.classList.add("hide-vertical"):this.iScroll.wrapper.classList.remove("hide-vertical"))}),this)},scrollToElement:function(t){this.iScroll&&void 0!==t.el&&this.iScroll.scrollToElement(t.el,t.speed,!0,!0)},onResize:function(){this.$refs.scroller&&(this.sidebarRect=this.$refs.scroller.getBoundingClientRect(),this.refresh())},isVisible:function(t){if(!t||void 0===!t.getBoundingClientRect)return null;var e=this.sidebarRect,i=t.getBoundingClientRect();return i.lefte.left&&i.tope.top},setFocusOnSidebar:function(t){this.$emit("click-by-sidebar",t)},resetScroll:function(){this.$refs.scroller&&(this.$refs.scroller.scrollTop=0)}},computed:{activeComponent:function(){return this.$store.state.sidebar.opened}},beforeDestroy:function(){var t=this;this.$nextTick((function(){var e,i,n;(null===(e=t.$store.state)||void 0===e||null===(i=e.sidebar)||void 0===i?void 0:i.opened)||(null===(n=t.previousFocusedElement)||void 0===n||n.focus())})),window.removeEventListener("resize",this.onResize),n=null,this.iScroll.destroy(),this.iScroll=null},beforeMount:function(){this.previousFocusedElement=document.activeElement},mounted:function(){var t=this;this.iScroll=new o.a(document.getElementById("scroller"),{mouseWheel:!0,scrollbars:!0,fadeScrollbars:!0,interactiveScrollbars:!0,probeType:2,disablePointer:!0,disableTouch:!1,disableMouse:!1,resizePolling:200,bounce:!1}),this.onResize(),window.addEventListener("resize",this.onResize),n=function(e){if(27===e.keyCode){if(null!==t.$store.state.popup.opened)return;t.$store.dispatch("sidebar/closeSidebar")}},this.$el.addEventListener("keydown",n)}}},function(t,e,i){},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var n=i(237);e.default=n.default},function(t,e,i){"use strict";i.r(e);var n=i(479);e.default={name:"ThItem",mixins:[n.default],props:{isVisible:{type:Boolean,default:!0},isCoverPage:{type:Boolean,default:!1}},data:function(){return{pageGradient:""}},mounted:function(){this.changePageGradient()},watch:{apiChange:function(){this.changePageGradient()}},methods:{changePageGradient:function(){switch(this.$store.getters["pages/pageGradient"](this.data.id)){case"gradient-zero":return"zero";case"gradient-light":return"light";case"gradient-dark":case"gradient-max":return"hard";case"gradient-middle":default:return""}}},computed:{inspectorMode:function(){return this.$store.state.workspace.inspectorMode},itemClasses:function(){var t={"th-item-wrapper":!0,wide:this.data.wide};return t["p"+this.data.index]=!0,t},apiChange:function(){return this.$store.state.pages.apiChange},focusableItems:function(){return this.slideMode||this.singleMode},captions:function(){var t=this.data.caption.split(" - ");return{left:t[0],right:t[1]}}}}},,,,function(t,e,i){},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var n=i(244);e.default=n.default},function(t,e,i){"use strict";i.r(e);var n=i(865),s=i(73),o=i(468),a=i(487),r=i(31);e.default={mixins:[a.default],components:{tocItem:n.default,sidebar:s.default,"downloads-window":o.default},computed:{title:function(){return this.$i18n.t("TOCToolWindow.TITLE")},icon:function(){return"toc"},activePageIndexes:function(){return this.$store.getters["toc/activePageIndexes"]},params:function(){return this.$store.state.sidebar.params}},methods:{sidebarClick:function(){this.setFocusToActiveElement()},keyDown:function(t){var e=!1;switch(t.keyCode){case r.default.SPACE:case r.default.RETURN:e=!0;break;case r.default.UP:case r.default.DOWN:case r.default.RIGHT:case r.default.LEFT:case r.default.HOME:case r.default.END:var i=this.$store.getters["toc/firstElement"];null!==i&&this.$store.dispatch("toc/setActive",i),e=!0}e&&(t.stopPropagation(),t.preventDefault())},scrollToActiveElement:function(){var t=this.$el.getElementsByClassName("active")[0];this.$children[0].scrollToElement({el:t,speed:300})},setFocusToActiveElement:function(){var t=this;0===this.$store.state.toc.activeRoute.length?this.$refs["toc-root"].focus():this.$nextTick((function(){t.$el.querySelector(".active").focus(),t.scrollToActiveElement()}))}},watch:{activePageIndexes:function(){var t=this;"toc"!==this.$store.state.pager.lastTarget&&(this.$store.dispatch("toc/setActiveByPage",this.activePageIndexes),setTimeout((function(){var e=t.$el.getElementsByClassName("active")[0];t.$children[0].scrollToElement({el:e,speed:300})}),100))}},mounted:function(){this.$store.dispatch("toc/setActiveByPage",this.activePageIndexes),this.$children[0].refresh(),this.params.initial?this.scrollToActiveElement():this.setFocusToActiveElement(),this.$root.$emit("develop",{action:"toc",data:0===this.tocItems.length?"empty":"full"})}}},function(t,e,i){"use strict";i.r(e);var n=i(246);e.default=n.default},function(t,e,i){"use strict";i.r(e);var n=i(485),s=i(31);i(486),i(867),i(868);e.default={mixins:[n.default],name:"TocItem",computed:{paddingLeft:function(){return this.depth<=2?15*this.depth:45},level:function(){return this.itemData.route.length},size:function(){return this.itemData.children?this.itemData.children.length:null},itemIndex:function(){return this.itemData.route[this.level-1]+1},hasChild:function(){return this.itemData.children},isExpanded:function(){return this.itemData.toggle},ariaExpanded:function(){return this.hasChild?this.isExpanded?"true":"false":null},openChildIcon:function(){return this.hasChild?this.isExpanded?"down-arrow":this.isLocaleRtl?"left-arrow":"right-arrow":null},active:function(){return this.itemData.active}},watch:{active:function(t){t&&this.setFocus()}},mounted:function(){var t=this;this.$nextTick((function(){t.itemData.active&&t.setFocus()}))},methods:{keyDown:function(t){var e=!1;switch(t.keyCode){case s.default.SPACE:case s.default.RETURN:this.goToPage(this.itemData.page),e=!0;break;case s.default.UP:this.focusToPreviousElement(),e=!0;break;case s.default.DOWN:this.focusToNextElement(),e=!0;break;case s.default.RIGHT:!this.isExpanded&&this.hasChild?this.toggleOpen(t):this.itemData.children&&this.focusToNextElement(),e=!0;break;case s.default.LEFT:this.isExpanded?this.toggleOpen(t):this.itemData.route.length>1&&0===this.itemData.route[this.itemData.route.length-1]&&this.focusToPreviousElement(),e=!0;break;case s.default.HOME:this.focusToFirstElement(),e=!0;break;case s.default.END:this.focusToLastElement(),e=!0}e&&(t.stopPropagation(),t.preventDefault())},focusToLastElement:function(){var t=this.$store.getters["toc/lastElement"];null!==t&&this.$store.dispatch("toc/setActive",t)},focusToFirstElement:function(){var t=this.$store.getters["toc/firstElement"];null!==t&&this.$store.dispatch("toc/setActive",t)},focusToNextElement:function(){var t=this.$store.getters["toc/nextElement"];null!==t&&this.$store.dispatch("toc/setActive",t)},focusToPreviousElement:function(){var t=this.$store.getters["toc/prevElement"];null!==t&&this.$store.dispatch("toc/setActive",t)},setFocus:function(){var t;(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||(null===(t=document.activeElement)||void 0===t?void 0:t.getAttribute("data-toc-item")))&&this.$refs["item-button"].focus()},goToPage:function(t){var e=this;this.$store.getters["pager/isFreezed"]?setTimeout((function(){e.goToPage(t)}),250):(this.$store.dispatch("toc/setActive",this.itemData),this.setFocus(!0),this.$store.dispatch("pager/goToPageByIndex",{target:"toc",pageIndex:t-1}))}}}},function(t,e,i){},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var n=i(250);e.default=n.default},function(t,e,i){"use strict";i.r(e);var n=i(73),s=i(873),o=i(15),a=i(31);i(410);e.default={components:{sidebar:n.default,"note-item":s.default},computed:{title:function(){return this.$i18n.t("NotesToolWindow.TITLE")},addNote:function(){return this.$i18n.t("NotesToolWindow.ADD_NOTE")},invitation:function(){return this.$i18n.t("NotesToolWindow.INVITATION_MESSAGE")},postInvitation:function(){return this.$i18n.t("NotesToolWindow.POST_INVITATION_MESSAGE")},icon:function(){return"note"},notesArray:function(){return this.$store.state.notes.items},notesCount:function(){return this.$store.state.notes.items.length},showInvitation:function(){return 0===this.notesArray.length},thumbSizes:function(){return this.getThumbSizes(!1)},isLocaleRtl:function(){return this.$store.getters["i18n/isLocaleRtl"]},isBookRtl:function(){return this.$store.state.book.rightToLeft},dir:function(){return this.isLocaleRtl?"rtl":"ltr"},isIE:function(){return!0===this.$store.state.workspace.userAgentInfo.browser.msie},activeIndex:function(){return this.$store.state.notes.activeItemIndex},slideMode:function(){return this.$store.state.pager.slideMode},params:function(){return this.$store.state.sidebar.params}},mounted:function(){for(var t=this.$store.state.notes.items,e=[],i=[],n=0,s=t.length;n0&&this.$store.dispatch("thumbnails/addQueue",{queue:i}),this.$store.dispatch("notes/setActiveItemToFirst"),this.params.initial||this.setFocus()},watch:{notesArray:function(){var t=this;setTimeout((function(){t.$children[0].iScroll.refresh()}),200)},activeIndex:function(t){null!==t&&this.setScrollToActiveElement()}},methods:{getThumbSizes:function(){var t={width:40,height:55};if(this.slideMode)return t;var e={width:1*this.$store.getters["pages/size"].width,height:1*this.$store.getters["pages/size"].height},i=Object(o.fit)(e,t);return{width:Math.round(i.width),height:Math.round(i.height)}},buttonKeyDown:function(t){27!==t.keyCode&&t.stopPropagation()},onClick:function(t){var e=this,i=t.page,n=t.id,s=!1;this.$store.state.pager.singleMode&&(s=t.side===(this.isBookRtl?"left":"right")),this.$store.getters["pager/isCurrentPage"]({pageId:i,widePageSecondHalf:s})?this.$store.dispatch("notes/setOpenedId",{id:n}):(this.$store.dispatch("pager/goToPageById",{id:i,widePageSecondHalf:s,target:"notes"}),this.$root.$once("turnStop",(function(){setTimeout((function(){e.$store.dispatch("notes/setOpenedId",{id:n})}),100)})))},onClickAddNote:function(t){var e=this;if(0!==this.$store.getters["pages/pagesCount"]){var i,n,s,o,a=this.$store.getters["pager/state"];if(a.spreadMode&&(this.isLocaleRtl&&!this.isBookRtl||!this.isLocaleRtl&&this.isBookRtl))i=null!==(o=a.rightPage)&&void 0!==o?o:a.leftPage;else i=a.currentPage;a.singleMode?(n=a.widePageSecondHalf,s=this.isBookRtl&&this.$store.getters["pages/pageProp"](i,"wide")&&!n):n=this.isLocaleRtl&&a.wide,this.$root.$emit("contextMenu:zoomOut"),this.$store.dispatch("notes/addNote",{pageId:i,wideRight:n,wideOpposite:s}),setTimeout((function(){e.$children[0].iScroll.refresh(),e.$children[0].iScroll.scrollToElement(t.target)}),200)}},keyDown:function(t){var e=this,i=!1;switch(t.keyCode){case a.default.SPACE:case a.default.RETURN:this.$refs["noteItem"+this.activeIndex][0].onClick(),i=!0;break;case a.default.UP:case a.default.LEFT:this.$store.dispatch("notes/setActivePreviousItem"),i=!0;break;case a.default.DOWN:case a.default.RIGHT:this.$store.dispatch("notes/setActiveNextItem"),i=!0;break;case a.default.HOME:this.$store.dispatch("notes/setActiveItemToFirst"),i=!0;break;case a.default.END:this.$store.dispatch("notes/setActiveItemToLast"),i=!0;break;case a.default.DELETE:this.$refs["noteItem"+this.activeIndex][0].deleteNote(),this.$nextTick((function(){e.setFocus()})),i=!0}i&&(t.stopPropagation(),t.preventDefault())},focusIsSet:function(){if(0===this.notesCount&&this.$refs["add-button"].focus(),null===this.activeIndex)this.$store.dispatch("notes/setActiveItemToFirst");else{var t=this.$refs["noteItem"+this.activeIndex];(null==t?void 0:t[0])&&t[0].setFocus(!0)}},setFocus:function(){this.$refs["note-wrapper"].focus()},setScrollToActiveElement:function(){var t=this;this.$nextTick((function(){t.$children[0].iScroll.refresh();var e=t.$refs["noteItem"+t.activeIndex];(null==e?void 0:e[0])&&t.$children[0].iScroll.scrollToElement(e[0].$el,50,0,!0)}))},focusOnButton:function(){this.$children[0].iScroll.scrollToElement(this.$refs["add-button"],50,0,!0)}}}},function(t,e,i){"use strict";i.r(e);var n=i(252);e.default=n.default},function(t,e,i){"use strict";i.r(e);var n=i(480);i(29);e.default={components:{thumb:n.default},props:{data:{type:Object,default:function(){return{}}},itemIndex:{type:Number},maxIndex:{type:Number},size:{type:Object,default:function(){return{}}},isie:{type:Boolean,default:!1}},data:function(){return{ellipseText:null}},computed:{noteText:function(){return this.data.text},wrapperClasses:function(){var t={"note-window-item":!0,"list-item":!0};return t.active=this.itemIndex===this.activeIndex,t},noteImgStyles:function(){var t={};return this.size&&(t.width=this.size.width+"px",t.height=this.size.height+"px"),t},textClasses:function(){var t={"note-window-item-text":!0};return this.data.text||(t["not-available"]=!0),t},textString:function(){return this.data.text?this.data.text:this.$i18n.t("NotesToolWindow.NO_TEXT_AVAILABLE")},singleMode:function(){return this.$store.state.pager.singleMode},pageText:function(){var t=this.$store.getters["pages/calculatedCaptionById"]({id:this.data.page,divider:" - ",widePageSecondHalf:this.data.side===(this.$store.state.book.rightToLeft?"left":"right")});if(this.$store.state.pager.spreadMode){var e=t.split(" - ");"left"===this.data.side?t=e[0]:"right"===this.data.side&&(t=e[1])}return this.$i18n.t("NotesToolWindow.PAGE",{0:t})},blockDirection:function(){return this.$store.getters["i18n/isLocaleRtl"]?"rtl":null},activeIndex:function(){return this.$store.state.notes.activeItemIndex},contentCrop:function(){return"slide-book"===this.$store.state.workspace.bookComponent&&this.$store.state.book.contentCrop}},mounted:function(){this.ellipsizeTextBox()},methods:{ellipsizeTextBox:function(){if(this.data.text)if(this.isie)this.ellipseText=this.data.text;else if(this.$refs.textbox.innerText=this.data.text,this.$refs.textbox.scrollHeight<=this.$refs.textbox.offsetHeight)this.ellipseText=this.data.text;else{for(var t=this.$refs.textbox.innerText.split("\n").join(" ").split(" ");this.$refs.textbox.scrollHeight>this.$refs.textbox.offsetHeight;)t.pop(),this.$refs.textbox.innerText=t.join(" ")+"...";this.ellipseText=t.join(" ")+"..."}else this.ellipseText=this.$i18n.t("NotesToolWindow.NO_TEXT_AVAILABLE")},setFocus:function(){var t;(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||(null===(t=document.activeElement)||void 0===t?void 0:t.getAttribute("data-focus-trap")))&&this.$refs.noteItem.focus({preventScroll:!0})},onClick:function(){this.$store.dispatch("notes/setActiveItemByIndex",this.itemIndex),this.$emit("item-clicked",{page:this.data.page,id:this.data.id,pX:this.data.pX,side:this.data.side})},deleteNote:function(){this.$store.dispatch("notes/deleteNote",{id:this.data.id,initiator:"hotkey"})}},watch:{noteText:function(){this.ellipsizeTextBox()},activeIndex:function(t){t===this.itemIndex&&this.setFocus()}}}},function(t,e,i){},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var n=i(256);e.default=n.default},function(t,e,i){"use strict";i.r(e);var n=i(879),s=i(73),o=i(31),a=(i(71),i(493),i(165),i(494)),r=360;e.default={mixins:[a.default],data:function(){return{tempTimeout:null,showClear:!1,showFilters:!1,resultsPerPages:[],visibleResultsPerPages:[],visibleResultsHeights:[],loadedTo:0,resultsInPage:10}},components:{"search-result-item":n.default,sidebar:s.default},created:function(){this.exactMatch&&(this.showFilters=!0,this.showFiltersIgnoreWatcher=!0)},mounted:function(){var t=this;this.$refs.searchInput.value=this.$store.state.search.query;var e=this.$store.state.search.scrollY;this.$refs.sidebar.refresh(),this.$refs.sidebar.iScroll.on("scroll",this.onScroll),this.$refs.sidebar.iScroll.on("scrollEnd",this.onScrollEnd),this.setInputDir(),this.params.initial||this.focusInput(),this.arrangeResultsInPages(),this.loadedTo=this.$store.state.search.loadedTo,this.checkVisibleResults(),""!==this.$refs.searchInput.value&&(this.showClear=!0),0!==e&&this.$nextTick((function(){return t.$refs.sidebar.iScroll.scrollTo(0,e)}))},computed:{localization:function(){return{filtersTitle:this.$i18n.t("SearchToolWindow.FILTERS_BUTTON"),exactMatchLabel:this.$i18n.t("SearchToolWindow.EXACT_MATCH_LABEL")}},exactMatch:{get:function(){return this.$store.state.search.exactMatch},set:function(t){this.$store.dispatch("search/setExactMatch",{component:"search",value:t})}},numberOfResults:function(){return this.$store.state.search.results.length},subtitle:function(){return this.searchQueryIsEmpty?null:this.isInitializing?this.$i18n.t("SearchToolWindow.INITIALIZING"):this.$store.state.search.query.length0&&void 0!==arguments[0]?arguments[0]:null,i=Math.abs(this.$refs.sidebar.iScroll.y),n=Math.abs(this.$refs.sidebar.iScroll.maxScrollY),s=i+this.$refs.sidebar.iScroll.wrapperHeight;this.visibleResultsPerPages=[];for(var o=s>=n,a=0,c=0;c=i&&l<=s||a>=i&&a<=s||l<=i&&a>=s)&&(this.visibleResultsPerPages[c]=this.resultsPerPages[c],(this.loadedTo0&&void 0!==arguments[0]&&arguments[0]||(null===(t=document.activeElement)||void 0===t?void 0:t.getAttribute("data-focus-trap")))&&this.$refs.wrapper.focus({preventScroll:!0})},onClick:function(){var t;this.setFocus(!0),this.$store.dispatch("search/setActiveItemByIndex",this.itemIndex);var e=this.pageId.toString(),i=this.$store.getters["search/getRightWideHalfSelection"](e),n=null!==(t=this.itemData.widePageSecondHalf)&&void 0!==t?t:i;this.$store.dispatch("pager/goToPageById",{id:e,target:"search",widePageSecondHalf:n})}}}},function(t,e,i){},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var n=i(262);e.default=n.default},function(t,e,i){"use strict";i.r(e);var n=i(4),s=i(5);e.default={name:"Sound",data:function(){return{canPlay:this.canPlayMp3(),fadeEffectInterval:null}},computed:{enabled:function(){return this.$store.state.sound.enabled},muteGlobalSound:function(){return this.$store.state.sound.muteSound},soundMuted:function(){return this.muteGlobalSound},flipEnabled:function(){return this.$store.state.sound.flip.enabled&&"flip-book"===this.bookComponent},backgroundEnabled:function(){return!!this.backgroundUrl},backgroundUrl:function(){var t=this.$store.state.sound.background.url;return t?Object(n.default)().translatePath("assets/sound/"+encodeURIComponent(t)):null},backgroundLoop:function(){return this.$store.state.sound.background.loop},backgroundVolume:function(){return this.$store.state.sound.background.volume/100},flipHardSounds:function(){var t=[];return this.$store.state.sound.flip.hard.forEach((function(e){t.push(Object(n.default)().translatePath("static/sound/"+e))})),t},flipSoftSounds:function(){var t=[];return this.$store.state.sound.flip.soft.forEach((function(e){t.push(Object(n.default)().translatePath("static/sound/"+e))})),t},flipVolume:function(){return this.$store.state.sound.flip.volume/100},soundNotification:function(){return this.$store.state.sound.notification},playSound:function(){return this.soundNotification.notify},bookComponent:function(){return this.$store.state.workspace.bookComponent},videosPlayingWithSound:function(){return this.$store.state.content.videosPlayingWithSound.length>0}},beforeMount:function(){"undefined"!=typeof Audio||this.$store.state.workspace.userAgentInfo.browser.publisher||this.$store.dispatch("sound/enableSound",!1)},mounted:function(){this.canPlay&&this.backgroundEnabled&&this.playBackgroundSound()},methods:{canPlayMp3:function(){if(this.$store.state.workspace.userAgentInfo.browser.publisher)return!0;var t=new Audio;return!!t.canPlayType&&""!==t.canPlayType("audio/mp3")},playBackgroundSound:function(){var t=this;this.backgroundChangeAttr("volume",this.backgroundVolume);var e=this.$refs.background.play();e&&e.then&&"function"==typeof e.then&&e.catch((function(e){t.$root.$options.api.once&&"function"==typeof t.$root.$options.api.once&&t.$root.$options.api.once("turned",(function(){t.playBackgroundSound()}))}))},playFlipSound:function(){var t=!0===(arguments.length>0&&void 0!==arguments[0]&&arguments[0])?this.$refs.hard:this.$refs.soft;if(t&&t.length>0){var e=t[this.getRandomInt(0,t.length-1)];if(!Object(s.isNumber)(e.duration)||e.error)return;if(!Object(s.isUndefined)(e)){var i=this.getRandomInt(5,10)/10;e.volume=this.flipVolume*i;var n=e.pause();if(n&&n.then&&"function"==typeof n.then&&n.catch((function(){})),e.paused){e.currentTime=0;var o=e.play();o&&o.then&&"function"==typeof o.then&&o.catch((function(){}))}}}},fadeBackgroundSound:function(t){var e=this;if(!Object(s.isUndefined)(this.$refs.background)){var i,n=Object(s.isUndefined)(t)?this.muteGlobalSound||!this.backgroundEnabled:t,o=100,a=500/o;Object(s.isUndefined)(this.fadeEffectInterval)||clearInterval(this.fadeEffectInterval),n?(i=this.$refs.background.volume/a,this.fadeEffectInterval=setInterval((function(){0===e.$refs.background.volume?(e.$refs.background.muted=!0,clearInterval(e.fadeEffectInterval)):e.$refs.background.volume>i?e.$refs.background.volume-=i:e.$refs.background.volume=0}),o)):(i=(this.backgroundVolume-this.$refs.background.volume)/a,this.$refs.background.muted=!1,this.fadeEffectInterval=setInterval((function(){e.$refs.background.volume===e.backgroundVolume?clearInterval(e.fadeEffectInterval):e.$refs.background.volume+i<=e.backgroundVolume?e.$refs.background.volume+=i:e.$refs.background.volume=e.backgroundVolume}),o))}},flipChangeAttr:function(t,e){this.flipEnabled&&[].concat(this.$refs.soft,this.$refs.hard).forEach((function(i){i[t]=e}))},backgroundChangeAttr:function(t,e){this.backgroundEnabled&&(this.$refs.background[t]=e)},getRandomInt:function(t,e){return Math.floor(Math.random()*(e-t+1))+t}},watch:{flipVolume:function(t){this.flipChangeAttr("volume",t)},backgroundVolume:function(t){this.backgroundChangeAttr("volume",t)},soundMuted:function(t){this.flipChangeAttr("muted",t),this.fadeBackgroundSound(t)},videosPlayingWithSound:function(t){this.flipChangeAttr("muted",t),this.fadeBackgroundSound(t)},muteGlobalSound:function(t){this.$root.$emit("sound",{action:t?"on":"off"})},playSound:function(){if(this.canPlay&&this.flipEnabled){var t=this.soundNotification.hardcover;this.playFlipSound(t)}}}}},function(t,e,i){"use strict";i.r(e);var n=i(264);e.default=n.default},function(t,e,i){"use strict";i.r(e);var n=i(8),s=i(5),o=i(72),a=i.n(o),r=i(4),c=i(13);i(187),i(431),i(887),i(413),i(414),i(497),i(888),i(104),i(106),i(105),i(412),i(68),i(889),i(890);e.default={name:"ContextMenu",props:{toggleFullscreen:{type:Function,default:function(){}}},data:function(){return{menuShown:!1,noteOpened:!1,x:0,y:0,pageScaleOffsetX:0,pageScaleOffsetY:0,event:null,elementPath:[],classPath:[],groups:[],items:[],pageId:null,pageObj:null,isSelection:!1,urlBlackList:this.$store.state.workspace.urlBlackList}},computed:{menu:function(){var t=this,e=[];return this.groups.forEach((function(i){var n=t.items.filter((function(e){return!(e.group!==i.id||e.elClass&&-1===t.classPath.indexOf(e.elClass)||e.condition&&!0!==e.condition(t.event))}));n.length>0&&e.push(n)})),e},menuLength:function(){var t=0;return this.menu.forEach((function(e){t+=e.length})),t},menuHeight:function(){return 36*this.menuLength},menuStyles:function(){var t=this.isRtl?null:this.x,e=this.isRtl?this.workspaceSize.width-this.x:null,i=this.y;return i+this.menuHeight>this.workspaceSize.height&&(i-=this.menuHeight)<0&&(i=0),!this.isRtl&&t+300>this.workspaceSize.width&&(t=null,e=this.workspaceSize.width-this.x),this.isRtl&&e+300>this.workspaceSize.width&&(e=null,t=this.x),{left:Object(s.isNull)(t)?null:t+"px",right:Object(s.isNull)(e)?null:e+"px",top:i+"px",zIndex:9e3,opacity:this.menuShown?"1":"0"}},isStub:function(){return this.$store.getters["pages/pageProp"](this.pageId,"stub")},isPageReady:function(){return this.$store.getters["pages/pageProp"](this.pageId,"status")===c.default.READY},isRtl:function(){return this.$store.getters["i18n/isLocaleRtl"]},workspaceSize:function(){return this.$store.getters["workspace/size"]},pagesSize:function(){return this.$store.getters["pages/size"]},notesEnabled:function(){return this.$store.state.workspace.components.notes},pagerState:function(){return this.$store.getters["pager/legacyState"]},miniMode:function(){return this.$store.state.workspace.mini},isOnline:function(){return!this.$store.getters["workspace/isOffline"]}},mounted:function(){var t=this;this.groups=[{id:"item",order:1},{id:"note",order:3},{id:"text",order:2},{id:"page",order:4},{id:"all",order:5}],this.noteOpened=this.$store.state.notes.opened,this.items=[{group:"page",order:1,elClass:"page",icon:"add-note",captionId:"RightClickMenu.ADD_NOTE",name:"Add note",action:function(e){t.$store.dispatch("notes/addNote",{pageId:t.pageId,pX:t.pageScaleOffsetX,pY:t.pageScaleOffsetY,initiator:"context-menu"})},condition:function(e){return t.notesEnabled&&t.classPath&&-1===t.classPath.indexOf("publication-note")}},{group:"note",order:2,elClass:"publication-note",icon:"trash-can",captionId:"RightClickMenu.DELETE_NOTE",name:"Delete note",action:function(e){for(var i=t.elementPath,n=0,o=i.length;n-1&&function(){var t=i[n].__vue__.$parent;""===t.data.text?t.deleteNote(null,"context-menu"):(t.showEditor(),setTimeout((function(){t.deleteDialog=!0}),1))}()}},condition:function(){return!0}},{group:"note",order:1,elClass:"publication-note",icon:"edit-note",captionId:"RightClickMenu.EDIT_NOTE",name:"Edit note",action:function(e){for(var i=t.elementPath,n=0,o=i.length;n-1&&function(){var t=i[n].__vue__.$parent;t.showEditor(),setTimeout((function(){t.forceFocus()}),1)}()}},condition:function(){return!t.noteOpened}},{group:"page",order:5,elClass:"page",icon:"zoomin",captionId:"RightClickMenu.SWITCH_TO_ZOOM",name:"Zoom in",action:function(){t.$root.$emit("contextMenu:zoomIn",{center:{x:t.x,y:t.y},target:t.event.target})},condition:function(){return 1===t.pagesSize.zoomFactor}},{group:"page",order:5,elClass:"page",icon:"zoomout",captionId:"RightClickMenu.SWITCH_TO_BOOK",name:"Zoom out",action:function(){t.$root.$emit("contextMenu:zoomOut")},condition:function(){return t.pagesSize.zoomFactor>1}},{group:"item",order:1,elClass:"link",icon:"link",captionId:"RightClickMenu.COPY_LINK",name:"Copy link",action:function(e){t.copyLink(e.target.dataset.url)},condition:function(e){return t.isOnline&&!!e.target.dataset.url&&a.a.isSupported()&&t.checkUrl(e.target.dataset.url)}},{group:"text",order:2,icon:"text-link",elClass:"text-block",captionId:"RightClickMenu.SHARE_SELECTED_TEXT",name:"Copy Text Link",action:function(e){t.$root.$emit("contextMenu:copyTextLink")},condition:function(e){return t.isOnline&&null!==t.$store.state.text.selectionRect&&t.isSelection}},{group:"text",order:1,icon:"clipboard",elClass:"text-block",captionId:"RightClickMenu.COPY_TEXT",name:"Copy Text",action:function(e){t.$root.$emit("contextMenu:copyText")},condition:function(e){return null!==t.$store.state.text.selectionRect&&t.isSelection}},{group:"item",order:2,elClass:"link",icon:"open-link",captionId:"RightClickMenu.OPEN_LINK_IN_NEW_TAB",name:"Open link",action:function(e){t.openLink(e.target.dataset.url)},condition:function(e){return!!e.target.dataset.url&&t.checkUrl(e.target.dataset.url)}},{group:"item",order:1,elClass:"logo-container",icon:"link",captionId:"RightClickMenu.COPY_LINK",name:"Copy logo link",action:function(){t.copyLink(t.$store.state.logo.url)},condition:function(){return a.a.isSupported()&&!!t.$store.state.logo.url}},{group:"item",order:2,elClass:"logo-container",icon:"open-link",captionId:"RightClickMenu.OPEN_LINK_IN_NEW_TAB",name:"Open logo link",action:function(){t.openLink(t.$store.state.logo.url)},condition:function(){return!!t.$store.state.logo.url}},{group:"page",order:4,elClass:"page",icon:"social",captionId:"RightClickMenu.SHARE_PAGE",name:"Share",action:this.sharePage,condition:function(){return!0===t.$store.state.workspace.components.share}},{group:"page",order:2,elClass:"page",icon:"download",captionId:"RightClickMenu.DOWNLOAD_PAGE",name:"Download",action:this.downloadPage,condition:function(){return!t.isStub&&t.isPageReady&&!0===t.$store.state.downloads.enabled&&!0===t.$store.state.downloads.currentPagesVisible}},{group:"page",order:3,elClass:"page",icon:"print",captionId:"RightClickMenu.PRINT_PAGE",name:"Print",action:this.printPage,condition:function(){return!t.isStub&&t.isPageReady&&!0===t.$store.state.workspace.components.print&&!0===t.$store.state.print.currentPagesVisible}},{group:"all",order:6,elClass:"book-container",icon:"fullscreen-out",captionId:"RightClickMenu.EXIT_FULLSCREEN",name:"Enter Fullscreen",action:this.toggleFullscreen,condition:function(){return!0===t.$store.state.workspace.fullScreenMode}},{group:"all",order:6,elClass:"book-container",icon:"fullscreen",captionId:"RightClickMenu.ENTER_FULLSCREEN",name:"Exit Fullscreen",action:this.toggleFullscreen,condition:function(){return!1===t.$store.state.workspace.fullScreenMode}}],this.items.sort(this.sortFunc)},methods:{sortFunc:function(t,e){return t.order-e.order},addItem:function(t){this.items.push(t),this.items.sort(this.sortFunc)},addGroup:function(t){this.groups.push(t),this.groups.sort(this.sortFunc)},showMenu:function(t){if(!t.ctrlKey&&"input"!==t.target.tagName.toLowerCase()&&"textarea"!==t.target.tagName.toLowerCase()){t.preventDefault(),this.noteOpened=this.$store.state.notes.opened;var e=this.$root.$el.getBoundingClientRect();if(this.x=t.clientX-e.left,this.y=t.clientY-e.top,this.event=t,this.elementPath=Object(s.isArray)(t.path)?t.path:Object(n.composedPath)(t.target),this.classPath=Object(n.classPath)(t.target),this.findPage(),this.isPointInSelection(t)&&this.$store.state.text.pageID===this.pageId?this.isSelection=!0:(this.isSelection=!1,this.$store.dispatch("text/reset")),this.isSelection&&this.classPath.indexOf("text-block")<0&&this.classPath.push("text-block"),this.elementPath)for(var i=0;i0&&!this.miniMode&&(this.menuShown=!0,this.$root.$emit("contextMenu",{action:"open",page:this.$store.getters["pages/pageCaptionById"]({id:this.pageId}),elementType:"",x:this.x,y:this.y}))}},hideMenu:function(){this.menuShown=!1},itemClick:function(t){this.$root.$emit("contextMenu",{action:"select",selectedItem:t.name}),t.action(this.event,{classPath:this.classPath,elementPath:this.elementPath})},openLink:function(t,e){var i=document.createElement("a");i.setAttribute("href",t),i.setAttribute("target","_blank"),e&&i.setAttribute("download",e),document.body.appendChild(i),i.click(),document.body.removeChild(i)},copyLink:function(t){var e=document.createElement("button");e.setAttribute("data-clipboard-text",t),document.body.appendChild(e);var i=new a.a(e);e.click(),i.destroy(),document.body.removeChild(e)},checkUrl:function(t){for(var e=0;e'+t+"";return this.$t("Other.CUSTOM_POLICY_TEXT",{0:e})}return null}},methods:{close:function(){this.$emit("close")}},components:{}}},function(t,e,i){},function(t,e,i){},function(t,e,i){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return n})),i.d(e,"staticRenderFns",(function(){return s}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",t._g({class:t.publicationClasses,attrs:{dir:t.dir},on:{contextmenu:t.onContextMenu,mousedown:t.mouseDownHandler}},t.embedScript&&!t.embedLightbox?{click:t.onClick}:{click:t.onClick,wheel:t.preventWheel}),[i("span",{ref:"first-trap",attrs:{tabindex:"0","aria-hidden":"true"}}),t._v(" "),t.showPreloader?i("preloader"):t._e(),t._v(" "),i("div",{staticClass:"main-frame",class:t.mainClasses,attrs:{"aria-hidden":t.isPopupOpened?"true":"false"},on:{wheel:t.onWheel}},[t.noticeShown?i("banner-notice",{ref:"noticeBanner",on:{close:t.noticeClose}}):t._e(),t._v(" "),t.topBarEnabled?i("top-toolbar"):t._e(),t._v(" "),t.bottomBarEnabled?i("bottom-toolbar",{attrs:{"ws-toggle-fullscreen":t.toggleFullscreen}}):t._e(),t._v(" "),i("book-container",{ref:"bookContainer",attrs:{size:t.containerSize,"ws-toggle-fullscreen":t.toggleFullscreen}}),t._v(" "),t.flashMessageVisibility?i("flash-message"):t._e()],1),t._v(" "),i("context-menu",{ref:"contextMenu",attrs:{"toggle-fullscreen":t.toggleFullscreen}}),t._v(" "),"toc"===t.activeSidebarComponent?i("toc-window",{ref:"opened-sidebar-component"}):t._e(),t._v(" "),"thumbnails"===t.activeSidebarComponent?i("th-window",{ref:"opened-sidebar-component"}):t._e(),t._v(" "),"notes"===t.activeSidebarComponent?i("note-window",{ref:"opened-sidebar-component"}):t._e(),t._v(" "),"search"===t.activeSidebarComponent?i("search-window",{ref:"opened-sidebar-component"}):t._e(),t._v(" "),i("sound"),t._v(" "),i("transition",{attrs:{name:"slide-fade"}},[t.isPopupOpened?i("popup"):t._e()],1),t._v(" "),i("span",{ref:"last-trap",attrs:{tabindex:"0","aria-hidden":"true"}})],1)},s=[];n._withStripped=!0},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return n})),i.d(e,"staticRenderFns",(function(){return s}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"bottom-toolbar-frame",attrs:{role:"menubar"}},[i("div",{staticClass:"bottom-toolbar",class:t.toolbarClass,style:t.toolbarStyle},[i("transition",{attrs:{name:t.areTransitionsAllowed?"highlight":null},on:{"before-enter":t.beforeIconAdd,"after-enter":t.afterIconAdd,"before-leave":t.beforeIconRemove,"after-leave":t.afterIconRemove}},[t.toc.show?i("button",{class:"svg-button icon group1"+t.tocActive,style:t.iconStyle,attrs:{role:"menuitem",title:t.$t("BottomMenu.TOC_TIP"),"aria-label":t.$t("BottomMenu.TOC_TIP"),tabindex:"0"},on:{click:function(e){return t.openSidebar("toc")},mousedown:function(t){t.preventDefault()}}},[i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"toc"}})],1):t._e()]),t._v(" "),i("transition",{attrs:{name:t.areTransitionsAllowed?"highlight":null},on:{"before-enter":t.beforeIconAdd,"after-enter":t.afterIconAdd,"before-leave":t.beforeIconRemove,"after-leave":t.afterIconRemove}},[t.thumbnails.show?i("button",{class:"svg-button icon group1"+t.thActive,style:t.iconStyle,attrs:{role:"menuitem",title:t.$t("BottomMenu.THUMBNAILS_TIP"),"aria-label":t.$t("BottomMenu.THUMBNAILS_TIP"),tabindex:"0"},on:{click:function(e){return t.openSidebar("thumbnails")},mousedown:function(t){t.preventDefault()}}},[i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"thumbnails"}})],1):t._e()]),t._v(" "),i("transition",{attrs:{name:t.areTransitionsAllowed?"highlight":null},on:{"before-enter":t.beforeIconAdd,"after-enter":t.afterIconAdd,"before-leave":t.beforeIconRemove,"after-leave":t.afterIconRemove}},[t.notes.show?i("button",{class:"svg-button icon group1"+t.notesActive,style:t.iconStyle,attrs:{role:"menuitem",title:t.$t("BottomMenu.NOTES_BUTTON_TIP"),"aria-label":t.$t("BottomMenu.NOTES_BUTTON_TIP"),tabindex:"0"},on:{click:function(e){return t.openSidebar("notes")},mousedown:function(t){t.preventDefault()}}},[i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"note"}})],1):t._e()]),t._v(" "),i("transition",{attrs:{name:"fade"}},[t.divider1Visible?i("div",{staticClass:"divider",style:t.dividerStyle,attrs:{role:"separator","aria-hidden":"true"}}):t._e()]),t._v(" "),i("transition",{attrs:{name:t.areTransitionsAllowed?"highlight":null},on:{"before-enter":t.beforeIconAdd,"after-enter":t.afterIconAdd,"before-leave":t.beforeIconRemove,"after-leave":t.afterIconRemove}},[t.share.show?i("button",{class:"svg-button icon group2"+t.socialActive,style:t.iconStyle,attrs:{role:"menuitem",title:t.$t("BottomMenu.PERMALINK_TIP"),"aria-label":t.$t("BottomMenu.PERMALINK_TIP"),tabindex:"0"},on:{click:function(e){return t.openPopup("social")},mousedown:function(t){t.preventDefault()}}},[i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"social"}})],1):t._e()]),t._v(" "),i("transition",{attrs:{name:t.areTransitionsAllowed?"highlight":null},on:{"before-enter":t.beforeIconAdd,"after-enter":t.afterIconAdd,"before-leave":t.beforeIconRemove,"after-leave":t.afterIconRemove}},[t.print.show?i("button",{class:"svg-button icon group2"+t.printActive,style:t.iconStyle,attrs:{role:"menuitem",title:t.$t("BottomMenu.PRINT_TIP"),"aria-label":t.$t("BottomMenu.PRINT_TIP"),tabindex:"0"},on:{click:function(e){return t.openPopup("print")},mousedown:function(t){t.preventDefault()}}},[i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"print"}})],1):t._e()]),t._v(" "),i("transition",{attrs:{name:t.areTransitionsAllowed?"highlight":null},on:{"before-enter":t.beforeIconAdd,"after-enter":t.afterIconAdd,"before-leave":t.beforeIconRemove,"after-leave":t.afterIconRemove}},[t.downloads.show?i("button",{class:"svg-button icon group2"+t.downloadActive,style:t.iconStyle,attrs:{role:"menuitem",title:t.$t("BottomMenu.SAVE_TIP"),"aria-label":t.$t("BottomMenu.SAVE_TIP"),"aria-haspopup":"true",tabindex:"0"},on:{click:function(e){return t.openPopup("download")},mousedown:function(t){t.preventDefault()}}},[i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"download"}})],1):t._e()]),t._v(" "),i("transition",{attrs:{name:"fade"}},[t.divider2Visible?i("div",{staticClass:"divider",style:t.dividerStyle,attrs:{role:"separator","aria-hidden":"true"}}):t._e()]),t._v(" "),i("transition",{attrs:{name:t.areTransitionsAllowed?"highlight":null},on:{"before-enter":t.beforeIconAdd,"after-enter":t.afterIconAdd,"before-leave":t.beforeIconRemove,"after-leave":t.afterIconRemove}},[t.sound.show?i("button",{class:"svg-button icon group3"+t.soundActive,style:t.iconStyle,attrs:{role:"menuitem",id:"sound",title:t.$t("BottomMenu.SOUND_BUTTON_TIP"),"aria-label":t.$t("BottomMenu.SOUND_BUTTON_TIP"),tabindex:"0"},on:{click:t.toggleMuteSound,mousedown:function(t){t.preventDefault()}}},[" toggled"===t.soundActive?i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"mute"}}):i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"sound"}})],1):t._e()]),t._v(" "),i("transition",{attrs:{name:t.areTransitionsAllowed?"highlight":null},on:{"before-enter":t.beforeIconAdd,"after-enter":t.afterIconAdd,"before-leave":t.beforeIconRemove,"after-leave":t.afterIconRemove}},[t.zoom.show?i("button",{class:"svg-button icon group3"+t.zoomActive,style:t.iconStyle,attrs:{role:"menuitem",title:t.$t("BottomMenu."+(t.zoomActive?"UNZOOM_BUTTON_TIP":"ZOOM_BUTTON_TIP")),"aria-label":t.$t("BottomMenu."+(t.zoomActive?"UNZOOM_BUTTON_TIP":"ZOOM_BUTTON_TIP")),tabindex:"0"},on:{click:t.toggleZoomMode,mousedown:function(t){t.preventDefault()}}},[" toggled"===t.zoomActive?i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"zoomout"}}):i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"zoomin"}})],1):t._e()]),t._v(" "),i("transition",{attrs:{name:t.areTransitionsAllowed?"highlight":null},on:{"before-enter":t.beforeIconAdd,"after-enter":t.afterIconAdd,"before-leave":t.beforeIconRemove,"after-leave":t.afterIconRemove}},[t.fullscreen.show?i("button",{class:"svg-button icon group3"+t.fullscreenActive,style:t.iconStyle,attrs:{role:"menuitem",title:t.$t("BottomMenu."+(t.fullscreenActive?"NORMAL_BUTTON_TIP":"FULLSCREEN_BUTTON_TIP")),"aria-label":t.$t("BottomMenu."+(t.fullscreenActive?"NORMAL_BUTTON_TIP":"FULLSCREEN_BUTTON_TIP")),tabindex:"0"},on:{click:t.toggleFullScreen,mousedown:function(t){t.preventDefault()}}},[" toggled"===t.fullscreenActive?i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"fullscreen-out"}}):i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"fullscreen"}})],1):t._e()]),t._v(" "),i("transition",{attrs:{name:"fade"}},[t.divider3Visible?i("div",{staticClass:"divider",style:t.dividerStyle,attrs:{role:"separator","aria-hidden":"true"}}):t._e()]),t._v(" "),i("transition",{attrs:{name:t.areTransitionsAllowed?"highlight":null},on:{"before-enter":t.beforeIconAdd,"after-enter":t.afterIconAdd,"before-leave":t.beforeIconRemove,"after-leave":t.afterIconRemove}},[t.slideshowVisible?i("button",{class:"svg-button icon group4"+t.slideshowActive,style:t.iconStyle,attrs:{role:"menuitem",title:t.$t("NavigationPanel."+(t.slideshowActive?"PAUSE_PAGE_TIP":"PLAY_PAGE_TIP")),"aria-label":t.$t("NavigationPanel."+(t.slideshowActive?"PAUSE_PAGE_TIP":"PLAY_PAGE_TIP")),tabindex:"0"},on:{click:t.toggleSlideShow,mousedown:function(t){t.preventDefault()}}},[" toggled"===t.slideshowActive?i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"slideshow-pause"}}):i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"slideshow"}})],1):t._e()])],1)])},s=[];n._withStripped=!0},function(t,e,i){i(0).register({note:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},,function(t,e,i){i(0).register({"fullscreen-out":{width:16,height:16,viewBox:"0 0 24 24",data:''}})},function(t,e,i){i(0).register({zoomin:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},function(t,e,i){i(0).register({zoomout:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},,,function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return n})),i.d(e,"staticRenderFns",(function(){return s}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:["top-toolbar",{"blink-light":this.blinkLight}],attrs:{id:"top"}},[i("h1",{staticClass:"publication-title",attrs:{id:"publication-title",dir:t.titleDirection,role:"heading","aria-level":"1","aria-label":t.title,tabindex:"-1","aria-readonly":"true"}},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),t.displayPages?i("span",{staticClass:"divider",attrs:{role:"separator","aria-hidden":"true"}}):t._e(),t._v(" "),t.displayPages?i("pager"):t._e(),t._v(" "),i("div",{staticClass:"space"}),t._v(" "),i("div",{staticClass:"top-btn-group",attrs:{role:"menubar"}},[i("transition",{attrs:{name:"scale"}},[t.copyrightShown?i("copyright-button"):t._e()],1),t._v(" "),t.showDebug?i("debug-controls",{attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),t.showHelpIcon?i("button",{staticClass:"help-button icon icon-button",attrs:{title:t.$t("HelpWindow.TITLE"),role:"menuitem","aria-label":t.$t("HelpWindow.TITLE"),tabindex:"0"},on:{click:function(e){return t.openPopup("help")},mousedown:function(t){t.preventDefault()}}},[i("svgicon",{attrs:{focusable:"false",name:"help"}})],1):t._e(),t._v(" "),i("transition",{attrs:{name:"highlight"},on:{"before-enter":t.beforeIconAdd,"after-enter":t.afterIconAdd,"before-leave":t.beforeIconRemove,"after-leave":t.afterIconRemove}},[t.showAccessibilityPDF?i("button",{staticClass:"accessibility-button icon icon-button",attrs:{title:t.$t("Accessibility.WINDOW_TITLE"),role:"menuitem","aria-label":t.$t("Accessibility.WINDOW_TITLE"),tabindex:"0"},on:{click:function(e){return t.openPopup("accessibility")},mousedown:function(t){t.preventDefault()}}},[i("svgicon",{attrs:{focusable:"false",name:"accessibility"}})],1):t._e()]),t._v(" "),i("transition",{attrs:{name:"highlight"},on:{"before-enter":t.beforeIconAdd,"after-enter":t.afterIconAdd,"before-leave":t.beforeIconRemove,"after-leave":t.afterIconRemove}},[t.hideSearchIcon?t._e():i("button",{class:["search-button icon icon-button",{hidden:t.searchSidebarOpened}],attrs:{title:t.$t("SearchToolWindow.TITLE"),role:"menuitem","aria-label":t.$t("SearchToolWindow.TITLE"),tabindex:"0"},on:{click:function(e){return t.openSidebar("search")},mousedown:function(t){t.preventDefault()}}},[i("svgicon",{attrs:{focusable:"false",name:"search"}})],1)])],1)],1)},s=[];n._withStripped=!0},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return n})),i.d(e,"staticRenderFns",(function(){return s}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("span",{staticClass:"pager"},[i("span",{attrs:{id:"pager-label","aria-hidden":"true"}},[t._v(t._s(t.$t("TopMenu.PAGES_LABEL")))]),t._v(" "),i("input",{ref:"input",attrs:{type:"text",size:t.size,dir:"ltr",tabindex:"0",role:"status","aria-live":"polite","aria-atomic":"true","aria-busy":"true"},domProps:{value:t.stateForDisplay},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.goTo(e)},blur:t.update,click:t.selectAll}}),t._v(" "),t.totalPagesVisible?i("span",{attrs:{role:"separator","aria-hidden":"true"}},[t._v("/")]):t._e(),t._v(" "),t.totalPagesVisible?i("span",{staticClass:"pager-total",attrs:{"aria-hidden":"true"}},[t._v(t._s(t.totalForDisplay))]):t._e()])},s=[];n._withStripped=!0},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return n})),i.d(e,"staticRenderFns",(function(){return s}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("span",{staticClass:"copyright-button",attrs:{id:"copyright-button"}},[i("a",{attrs:{target:t.target,id:"copyright-link",href:t.url,role:"menuitem","aria-label":t.label,tabindex:"0"},on:{click:t.onClick}},[t._v(t._s(t.label))])])},s=[];n._withStripped=!0},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return n})),i.d(e,"staticRenderFns",(function(){return s}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"debug-controls",attrs:{"aria-hidden":"true"}},[i("button",{staticClass:"debug icon icon-button",class:{toggled:t.showMenu},attrs:{tabindex:"-1"},on:{click:t.toggleDebugMenu}},[t._v("Debug")]),t._v(" "),i("transition",{attrs:{name:"debug-fade"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.showMenu,expression:"showMenu"}],staticClass:"wrapper",attrs:{dir:"ltr"}},[i("ul",[i("li",{staticClass:"toggle",class:{toggled:t.sections.book}},[i("div",{staticClass:"caption",on:{click:function(e){return t.toggleSection("book")}}},[i("span",{staticClass:"section-icon"}),t._v("Book")]),t._v(" "),i("ul",[i("li",[i("label",{attrs:{for:"input-flip"}},[t._v("Flip:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.flip,expression:"flip"}],attrs:{id:"input-flip",type:"checkbox"},domProps:{checked:Array.isArray(t.flip)?t._i(t.flip,null)>-1:t.flip},on:{change:function(e){var i=t.flip,n=e.target,s=!!n.checked;if(Array.isArray(i)){var o=null,a=t._i(i,o);n.checked?a<0&&(t.flip=i.concat([o])):a>-1&&(t.flip=i.slice(0,a).concat(i.slice(a+1)))}else t.flip=s}}})]),t._v(" "),i("li",[i("label",{attrs:{for:"input-pager"}},[t._v("Pager mode:")]),t._v(" "),i("select",{directives:[{name:"model",rawName:"v-model",value:t.pagerMode,expression:"pagerMode"}],attrs:{id:"input-pager"},on:{change:function(e){var i=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.pagerMode=e.target.multiple?i:i[0]}}},[i("option",{attrs:{value:"spread"}},[t._v("Spread "+t._s(t.flip?"":"*"))]),t._v(" "),i("option",{attrs:{value:"single"}},[t._v("Single "+t._s(t.flip?"":"*"))]),t._v(" "),t.flip?i("option",{attrs:{value:"auto"}},[t._v("Auto")]):t._e(),t._v(" "),t.flip?t._e():i("option",{attrs:{value:"slide"}},[t._v("Slide")])])]),t._v(" "),!t.flip||"single"!==t.pagerMode&&"auto"!==t.pagerMode?t._e():i("li",[i("label",{attrs:{for:"input-translucent-reverse-side"}},[t._v("Translucent reverse side:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.isTranslucentReverseSide,expression:"isTranslucentReverseSide"}],attrs:{id:"input-translucent-reverse-side",type:"checkbox"},domProps:{checked:Array.isArray(t.isTranslucentReverseSide)?t._i(t.isTranslucentReverseSide,null)>-1:t.isTranslucentReverseSide},on:{change:function(e){var i=t.isTranslucentReverseSide,n=e.target,s=!!n.checked;if(Array.isArray(i)){var o=null,a=t._i(i,o);n.checked?a<0&&(t.isTranslucentReverseSide=i.concat([o])):a>-1&&(t.isTranslucentReverseSide=i.slice(0,a).concat(i.slice(a+1)))}else t.isTranslucentReverseSide=s}}})]),t._v(" "),t.flip||"slide"!==t.pagerMode?t._e():i("li",[i("label",{attrs:{for:"input-crop"}},[t._v("Content crop:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.cropMode,expression:"cropMode"}],attrs:{id:"input-crop",type:"checkbox",disabled:t.flip},domProps:{checked:Array.isArray(t.cropMode)?t._i(t.cropMode,null)>-1:t.cropMode},on:{change:function(e){var i=t.cropMode,n=e.target,s=!!n.checked;if(Array.isArray(i)){var o=null,a=t._i(i,o);n.checked?a<0&&(t.cropMode=i.concat([o])):a>-1&&(t.cropMode=i.slice(0,a).concat(i.slice(a+1)))}else t.cropMode=s}}})]),t._v(" "),t.flip?i("li",[i("label",{attrs:{for:"input-thickness"}},[t._v("Thickness:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.thickness,expression:"thickness"}],attrs:{id:"input-thickness",type:"checkbox"},domProps:{checked:Array.isArray(t.thickness)?t._i(t.thickness,null)>-1:t.thickness},on:{change:function(e){var i=t.thickness,n=e.target,s=!!n.checked;if(Array.isArray(i)){var o=null,a=t._i(i,o);n.checked?a<0&&(t.thickness=i.concat([o])):a>-1&&(t.thickness=i.slice(0,a).concat(i.slice(a+1)))}else t.thickness=s}}})]):t._e(),t._v(" "),t.flip?i("li",[i("label",{attrs:{for:"input-hardcover"}},[t._v("Hardcover:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.hardcover,expression:"hardcover"}],attrs:{id:"input-hardcover",type:"checkbox",disabled:!t.flip},domProps:{checked:Array.isArray(t.hardcover)?t._i(t.hardcover,null)>-1:t.hardcover},on:{change:function(e){var i=t.hardcover,n=e.target,s=!!n.checked;if(Array.isArray(i)){var o=null,a=t._i(i,o);n.checked?a<0&&(t.hardcover=i.concat([o])):a>-1&&(t.hardcover=i.slice(0,a).concat(i.slice(a+1)))}else t.hardcover=s}}}),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.hardcoverColor,expression:"hardcoverColor"}],staticClass:"hc-color",attrs:{id:"input-hardcover-color",type:"color",disabled:!t.flip},domProps:{value:t.hardcoverColor},on:{input:function(e){e.target.composing||(t.hardcoverColor=e.target.value)}}})]):t._e(),t._v(" "),i("li",[i("label",{attrs:{for:"input-rtl"}},[t._v("RTL Book:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.rtl,expression:"rtl"}],attrs:{id:"input-rtl",type:"checkbox"},domProps:{checked:Array.isArray(t.rtl)?t._i(t.rtl,null)>-1:t.rtl},on:{change:function(e){var i=t.rtl,n=e.target,s=!!n.checked;if(Array.isArray(i)){var o=null,a=t._i(i,o);n.checked?a<0&&(t.rtl=i.concat([o])):a>-1&&(t.rtl=i.slice(0,a).concat(i.slice(a+1)))}else t.rtl=s}}})]),t._v(" "),i("li",[i("label",{attrs:{for:"input-num-offset"}},[t._v("Num offset:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.numerationOffset,expression:"numerationOffset"}],staticClass:"num-offset",attrs:{id:"input-num-offset",type:"number",placeholder:"0",size:"3",step:"1"},domProps:{value:t.numerationOffset},on:{input:function(e){e.target.composing||(t.numerationOffset=e.target.value)}}})])])]),t._v(" "),i("li",{staticClass:"toggle",class:{toggled:t.sections.workspace}},[i("div",{staticClass:"caption",on:{click:function(e){return t.toggleSection("workspace")}}},[i("span",{staticClass:"section-icon"}),t._v("Workspace")]),t._v(" "),i("ul",[i("li",[i("label",{attrs:{for:"input-lang"}},[t._v("Language:")]),t._v(" "),i("select",{directives:[{name:"model",rawName:"v-model",value:t.currentLocale,expression:"currentLocale"}],attrs:{id:"input-lang"},on:{change:function(e){var i=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.currentLocale=e.target.multiple?i:i[0]}}},t._l(t.availableLocales,(function(e){return i("option",{domProps:{value:e}},[t._v("\n "+t._s(e)+"\n ")])})),0),t._v(" "),i("button",{staticClass:"next-locale",attrs:{title:"Alt + Ctrl + ."},on:{click:t.nextLocale}},[t._v("➡️")])]),t._v(" "),i("li",[i("label",{attrs:{for:"input-book-size"}},[t._v("Book Size:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.bookSize,expression:"bookSize"}],staticClass:"book-size",attrs:{id:"input-book-size",type:"number",placeholder:"95",size:"3",step:"1"},domProps:{value:t.bookSize},on:{input:function(e){e.target.composing||(t.bookSize=e.target.value)}}})]),t._v(" "),i("li",[i("label",{attrs:{for:"input-select-text"}},[t._v("Text Selection:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.selectText,expression:"selectText"}],attrs:{id:"input-select-text",type:"checkbox"},domProps:{checked:Array.isArray(t.selectText)?t._i(t.selectText,null)>-1:t.selectText},on:{change:function(e){var i=t.selectText,n=e.target,s=!!n.checked;if(Array.isArray(i)){var o=null,a=t._i(i,o);n.checked?a<0&&(t.selectText=i.concat([o])):a>-1&&(t.selectText=i.slice(0,a).concat(i.slice(a+1)))}else t.selectText=s}}})]),t._v(" "),i("li",[i("label",{attrs:{for:"input-search"}},[t._v("Search:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.search,expression:"search"}],attrs:{id:"input-search",type:"checkbox"},domProps:{checked:Array.isArray(t.search)?t._i(t.search,null)>-1:t.search},on:{change:function(e){var i=t.search,n=e.target,s=!!n.checked;if(Array.isArray(i)){var o=null,a=t._i(i,o);n.checked?a<0&&(t.search=i.concat([o])):a>-1&&(t.search=i.slice(0,a).concat(i.slice(a+1)))}else t.search=s}}})])])]),t._v(" "),i("li",{staticClass:"toggle",class:{toggled:t.sections.components}},[i("div",{staticClass:"caption",on:{click:function(e){return t.toggleSection("components")}}},[i("span",{staticClass:"section-icon"}),t._v("Bottom Menu")]),t._v(" "),i("ul",[i("li",[i("label",{attrs:{for:"input-attract"}},[t._v("Raise bar:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.attract,expression:"attract"}],attrs:{id:"input-attract",type:"checkbox"},domProps:{checked:Array.isArray(t.attract)?t._i(t.attract,null)>-1:t.attract},on:{change:function(e){var i=t.attract,n=e.target,s=!!n.checked;if(Array.isArray(i)){var o=null,a=t._i(i,o);n.checked?a<0&&(t.attract=i.concat([o])):a>-1&&(t.attract=i.slice(0,a).concat(i.slice(a+1)))}else t.attract=s}}})]),t._v(" "),i("li",{staticClass:"divider"}),t._v(" "),i("li",[i("label",{attrs:{for:"input-toc"}},[t._v("TOC:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.toc,expression:"toc"}],attrs:{id:"input-toc",type:"checkbox"},domProps:{checked:Array.isArray(t.toc)?t._i(t.toc,null)>-1:t.toc},on:{change:function(e){var i=t.toc,n=e.target,s=!!n.checked;if(Array.isArray(i)){var o=null,a=t._i(i,o);n.checked?a<0&&(t.toc=i.concat([o])):a>-1&&(t.toc=i.slice(0,a).concat(i.slice(a+1)))}else t.toc=s}}})]),t._v(" "),i("li",[i("label",{attrs:{for:"input-thumbnails"}},[t._v("Thumbnails:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.thumbnails,expression:"thumbnails"}],attrs:{id:"input-thumbnails",type:"checkbox"},domProps:{checked:Array.isArray(t.thumbnails)?t._i(t.thumbnails,null)>-1:t.thumbnails},on:{change:function(e){var i=t.thumbnails,n=e.target,s=!!n.checked;if(Array.isArray(i)){var o=null,a=t._i(i,o);n.checked?a<0&&(t.thumbnails=i.concat([o])):a>-1&&(t.thumbnails=i.slice(0,a).concat(i.slice(a+1)))}else t.thumbnails=s}}})]),t._v(" "),i("li",[i("label",{attrs:{for:"input-notes"}},[t._v("Notes:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.notes,expression:"notes"}],attrs:{id:"input-notes",type:"checkbox"},domProps:{checked:Array.isArray(t.notes)?t._i(t.notes,null)>-1:t.notes},on:{change:function(e){var i=t.notes,n=e.target,s=!!n.checked;if(Array.isArray(i)){var o=null,a=t._i(i,o);n.checked?a<0&&(t.notes=i.concat([o])):a>-1&&(t.notes=i.slice(0,a).concat(i.slice(a+1)))}else t.notes=s}}})]),t._v(" "),i("li",{staticClass:"divider"}),t._v(" "),i("li",[i("label",{attrs:{for:"input-share"}},[t._v("Share:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.share,expression:"share"}],attrs:{id:"input-share",type:"checkbox"},domProps:{checked:Array.isArray(t.share)?t._i(t.share,null)>-1:t.share},on:{change:function(e){var i=t.share,n=e.target,s=!!n.checked;if(Array.isArray(i)){var o=null,a=t._i(i,o);n.checked?a<0&&(t.share=i.concat([o])):a>-1&&(t.share=i.slice(0,a).concat(i.slice(a+1)))}else t.share=s}}})]),t._v(" "),i("li",[i("label",{attrs:{for:"input-print"}},[t._v("Print:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.print,expression:"print"}],attrs:{id:"input-print",type:"checkbox"},domProps:{checked:Array.isArray(t.print)?t._i(t.print,null)>-1:t.print},on:{change:function(e){var i=t.print,n=e.target,s=!!n.checked;if(Array.isArray(i)){var o=null,a=t._i(i,o);n.checked?a<0&&(t.print=i.concat([o])):a>-1&&(t.print=i.slice(0,a).concat(i.slice(a+1)))}else t.print=s}}})]),t._v(" "),i("li",[i("label",{attrs:{for:"input-download"}},[t._v("Download:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.download,expression:"download"}],attrs:{id:"input-download",type:"checkbox"},domProps:{checked:Array.isArray(t.download)?t._i(t.download,null)>-1:t.download},on:{change:function(e){var i=t.download,n=e.target,s=!!n.checked;if(Array.isArray(i)){var o=null,a=t._i(i,o);n.checked?a<0&&(t.download=i.concat([o])):a>-1&&(t.download=i.slice(0,a).concat(i.slice(a+1)))}else t.download=s}}})]),t._v(" "),i("li",{staticClass:"divider"}),t._v(" "),i("li",[i("label",{attrs:{for:"input-sound"}},[t._v("Sound:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.sound,expression:"sound"}],attrs:{id:"input-sound",type:"checkbox"},domProps:{checked:Array.isArray(t.sound)?t._i(t.sound,null)>-1:t.sound},on:{change:function(e){var i=t.sound,n=e.target,s=!!n.checked;if(Array.isArray(i)){var o=null,a=t._i(i,o);n.checked?a<0&&(t.sound=i.concat([o])):a>-1&&(t.sound=i.slice(0,a).concat(i.slice(a+1)))}else t.sound=s}}})]),t._v(" "),i("li",[i("label",{attrs:{for:"input-zoom"}},[t._v("Zoom:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.zoom,expression:"zoom"}],attrs:{id:"input-zoom",type:"checkbox"},domProps:{checked:Array.isArray(t.zoom)?t._i(t.zoom,null)>-1:t.zoom},on:{change:function(e){var i=t.zoom,n=e.target,s=!!n.checked;if(Array.isArray(i)){var o=null,a=t._i(i,o);n.checked?a<0&&(t.zoom=i.concat([o])):a>-1&&(t.zoom=i.slice(0,a).concat(i.slice(a+1)))}else t.zoom=s}}})]),t._v(" "),i("li",[i("label",{attrs:{for:"input-fullscreen"}},[t._v("Fullscreen:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.fullscreen,expression:"fullscreen"}],attrs:{id:"input-fullscreen",type:"checkbox"},domProps:{checked:Array.isArray(t.fullscreen)?t._i(t.fullscreen,null)>-1:t.fullscreen},on:{change:function(e){var i=t.fullscreen,n=e.target,s=!!n.checked;if(Array.isArray(i)){var o=null,a=t._i(i,o);n.checked?a<0&&(t.fullscreen=i.concat([o])):a>-1&&(t.fullscreen=i.slice(0,a).concat(i.slice(a+1)))}else t.fullscreen=s}}})]),t._v(" "),i("li",{staticClass:"divider"}),t._v(" "),i("li",[i("label",{attrs:{for:"input-slideshow"}},[t._v("Slideshow:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.slideshow,expression:"slideshow"}],attrs:{id:"input-slideshow",type:"checkbox"},domProps:{checked:Array.isArray(t.slideshow)?t._i(t.slideshow,null)>-1:t.slideshow},on:{change:function(e){var i=t.slideshow,n=e.target,s=!!n.checked;if(Array.isArray(i)){var o=null,a=t._i(i,o);n.checked?a<0&&(t.slideshow=i.concat([o])):a>-1&&(t.slideshow=i.slice(0,a).concat(i.slice(a+1)))}else t.slideshow=s}}})])])]),t._v(" "),i("li",{staticClass:"toggle",class:{toggled:t.sections.skin}},[i("div",{staticClass:"caption",on:{click:function(e){return t.toggleSection("skin")}}},[i("span",{staticClass:"section-icon"}),t._v("Skin")]),t._v(" "),i("ul",[i("li",[i("label",{attrs:{for:"input-skin"}},[t._v("Skin:")]),t._v(" "),i("select",{directives:[{name:"model",rawName:"v-model",value:t.currentSkin,expression:"currentSkin"}],staticClass:"skin-selector",attrs:{id:"input-skin"},on:{change:function(e){var i=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.currentSkin=e.target.multiple?i:i[0]}}},t._l(t.skinList,(function(e){return i("option",{domProps:{value:e}},[t._v("\n "+t._s(e)+"\n ")])})),0),t._v(" "),i("button",{staticClass:"next-skin",attrs:{title:"Alt + Ctrl + /"},on:{click:t.nextSkin}},[t._v("➡️")])]),t._v(" "),i("li",[i("label",{attrs:{for:"input-main-color"}},[t._v("Main color:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.mainSkinColor,expression:"mainSkinColor"}],staticClass:"skin-color",attrs:{id:"input-main-color",type:"color"},domProps:{value:t.mainSkinColor},on:{input:function(e){e.target.composing||(t.mainSkinColor=e.target.value)}}}),i("span",{staticClass:"color-hex"},[t._v(t._s(t.mainSkinColor))])]),t._v(" "),i("li",[i("label",{attrs:{for:"input-second-color"}},[t._v("Second color:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.secondSkinColor,expression:"secondSkinColor"}],staticClass:"skin-color",attrs:{id:"input-second-color",type:"color"},domProps:{value:t.secondSkinColor},on:{input:function(e){e.target.composing||(t.secondSkinColor=e.target.value)}}}),i("span",{staticClass:"color-hex"},[t._v(t._s(t.secondSkinColor))])]),t._v(" "),i("li",[i("label",{attrs:{for:"input-bg-image"}},[t._v("Bg Image:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.bgImageUrl,expression:"bgImageUrl"}],staticClass:"bg-image-input",attrs:{id:"input-bg-image",type:"text"},domProps:{value:t.bgImageUrl},on:{input:function(e){e.target.composing||(t.bgImageUrl=e.target.value)}}})])])])])])])],1)},s=[];n._withStripped=!0},function(t,e,i){i(0).register({help:{width:24,height:24,viewBox:"0 0 24 24",data:''}})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return n})),i.d(e,"staticRenderFns",(function(){return s}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"overlay",style:{"background-color":t.config.backgroundColor}},[t.isIE?i("div",{staticClass:"spinner-wrap"},[i("spinner",{attrs:{size:24,"line-size":4,"line-fg-color":t.spinnerFgColor,"line-bg-color":t.spinnerBgColor}})],1):i("div",{staticClass:"book-wrap",style:t.bookWrapStyles},[i("div",{staticClass:"book",style:{perspective:t.width*(t.isChrome?3:1.5)+"px"}},[i("div",{staticClass:"page start-page",style:t.pageStyles}),t._v(" "),i("div",{ref:"page1",staticClass:"page",style:t.pageStyles}),t._v(" "),i("div",{ref:"page2",staticClass:"page",style:t.pageStyles}),t._v(" "),i("div",{ref:"page3",staticClass:"page",style:t.pageStyles}),t._v(" "),i("div",{ref:"page4",staticClass:"page",style:t.pageStyles}),t._v(" "),i("div",{ref:"page5",staticClass:"page",style:t.pageStyles}),t._v(" "),i("div",{ref:"page6",staticClass:"page",style:t.pageStyles}),t._v(" "),i("div",{ref:"page7",staticClass:"page",style:t.pageStyles}),t._v(" "),i("div",{ref:"page8",staticClass:"page",style:t.pageStyles}),t._v(" "),i("div",{ref:"page9",staticClass:"page",style:t.pageStyles}),t._v(" "),i("div",{ref:"page10",staticClass:"page",style:t.pageStyles}),t._v(" "),i("div",{staticClass:"page end-page",style:t.pageStyles})])])])},s=[];n._withStripped=!0},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return n})),i.d(e,"staticRenderFns",(function(){return s}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"popup-container"},[i("div",{staticClass:"black-out",on:{click:t.close}}),t._v(" "),i("div",{staticClass:"popup-window",attrs:{role:"dialog","aria-labelledby":"popup-title","aria-describedby":"popup-description"}},[i("span",{ref:"first-trap",attrs:{tabindex:"0","aria-hidden":"true"}}),t._v(" "),i("div",{staticClass:"popup-title-frame"},[i("span",{staticClass:"svg-button popup-title-icon"},[i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:t.icon}})],1),t._v(" "),i("h3",{staticClass:"popup-title",attrs:{id:"popup-title"}},[t._v(t._s(t.title))]),t._v(" "),i("button",{staticClass:"svg-button icon-button close-button",attrs:{tabindex:"0","data-modal-tabIndex":"first",role:"button","aria-label":t.$t("Accessibility.CLOSE_DIALOG")},on:{click:t.close}},[i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"close"}})],1)]),t._v(" "),i("div",{staticClass:"popup-content"},["download"===t.activeComponent?i("downloads-window"):t._e(),t._v(" "),"social"===t.activeComponent?i("social-window"):t._e(),t._v(" "),"print"===t.activeComponent?i("print-window"):t._e(),t._v(" "),"info"===t.activeComponent?i("info-window"):t._e(),t._v(" "),"help"===t.activeComponent?i("help-window"):t._e(),t._v(" "),"accessibility"===t.activeComponent?i("accessibility-window"):t._e()],1),t._v(" "),i("span",{ref:"last-trap",attrs:{tabindex:"0","aria-hidden":"true"}})])])},s=[];n._withStripped=!0},function(t,e,i){"use strict";i.r(e);var n=i(813),s=i(210),o=(i(829),i(1)),a=Object(o.default)(s.default,n.render,n.staticRenderFns,!1,null,"176b2e10",null);a.options.__file="src/components/desktop/downloads-window/index.vue",e.default=a.exports},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return n})),i.d(e,"staticRenderFns",(function(){return s}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"downloads"},[t.fullPdf?i("a",{staticClass:"download-full-button",attrs:{"data-modal-tabIndex":"first-init",target:"_blank",href:"linkFull",download:t.fullPdf.fileName,role:"button",title:t.windowTitle+" "+t.pagesTitle.full,"aria-label":t.windowTitle+" "+t.pagesTitle.full,tabindex:"0",disabled:t.editorMode},on:{click:function(e){return t.processDownloadEvent(e,"full",null)}}},[i("span",{staticClass:"title"},[t._v(t._s(t.pagesTitle.full)+" - "),i("span",{attrs:{dir:"ltr"}},[t._v(t._s(t.fullPdf.size))])]),t._v(" "),i("span",{staticClass:"description",attrs:{id:"popup-description"}},[t._v(t._s(t.fullDescription))])]):t._e(),t._v(" "),t.filesArray.length>0?i("div",{ref:"download-list",staticClass:"download-list",attrs:{id:"download-list"}},[i("ul",t._l(t.filesArray,(function(e,n){return i("li",{class:"download-item-"+e.type},[i("svgicon",{staticClass:"svg-icon file-icon",attrs:{focusable:"false",name:e.icon}}),t._v(" "),i("a",{attrs:{"data-modal-tabIndex":n===t.filesArray.length-1?"last":"",target:"_blank",href:"linkPage",download:e.fileName,role:"button",title:t.windowTitle+" "+e.title,"aria-label":t.windowTitle+" "+e.title,tabindex:"0",disabled:t.editorMode},on:{click:function(i){return t.processDownloadEvent(i,e.type,n)}}},[i("bdi",[i("span",{staticClass:"file-name"},[t._v(t._s(e.title))])]),t._v(" "),i("span",{attrs:{dir:"ltr"}},[i("bdi",[t._v("("+t._s(e.size)+")")])])])],1)})),0)]):t._e()])},s=[];n._withStripped=!0},,function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return n})),i.d(e,"staticRenderFns",(function(){return s}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"print-window"},[t.pdfIsAvailable||t.editorMode?i("div",{staticClass:"print-window-container",class:this.status},[i("div",{staticClass:"print-title-frame"},[t.selectedPagesVisible&&t.fullOption?i("button",{staticClass:"print-full-button",attrs:{"data-modal-tabIndex":"first-init",tabindex:"0",title:t.localization.customTip,role:"button","aria-label":t.localization.customTip,disabled:t.editorMode},on:{click:function(e){return t.print(t.fullOption)}}},[i("span",{staticClass:"title"},[t._v(t._s(t.fullOption.title))]),t._v(" "),i("span",{staticClass:"description"},[t._v(t._s(t.localization.customRangeDescription))])]):t._e(),t._v(" "),t.partsOptionsArray.length>0?i("div",{staticClass:"print-list"},[i("ul",t._l(t.partsOptionsArray,(function(e,n){return i("li",[i("svgicon",{staticClass:"svg-icon file-icon",attrs:{focusable:"false",name:"file-any-print"}}),t._v(" "),i("button",{attrs:{tabindex:"0",title:e.title,role:"button","aria-label":e.title,disabled:t.editorMode},on:{click:function(i){return t.print(e)}}},[i("bdi",[i("span",{staticClass:"file-name"},[t._v(t._s(e.title))])])])],1)})),0)]):t._e(),t._v(" "),t.printSupported?t._e():i("span",{staticClass:"text-block print-comment",attrs:{id:"print-comment"}},[t._v(t._s(t.localization.commentCurrent))])]),t._v(" "),i("div",{staticClass:"print-button-bar"},[i("div",{staticClass:"progress"},[i("div",{staticClass:"progress-background"},[i("div",{staticClass:"progress-bar",style:t.progressBarStyle,attrs:{id:"progress-bar"}})]),t._v(" "),i("div",{staticClass:"text-block progress-info",attrs:{id:"progress-info"}},[i("bdi",[t._v(t._s(t.downloaded))])])]),t._v(" "),i("div",{staticClass:"waiting-bar"},[i("div",{staticClass:"circle-loader"}),t._v(" "),i("label",{staticClass:"print-window-label"},[t._v(t._s(t.localization.waiting))])]),t._v(" "),i("button",{staticClass:"idle popup-button cancel-button",attrs:{tabindex:"0",id:"cancel-btn",role:"button","aria-label":t.localization.cancel,title:t.localization.cancel},on:{click:t.cancel}},[t._v("\n "+t._s(t.localization.cancel)+"\n ")])])]):i("div",{staticClass:"print-window"},[t._v(t._s(t.localization.errorMsg))])])},s=[];n._withStripped=!0},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return n})),i.d(e,"staticRenderFns",(function(){return s}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"socialBody"},[i("div",{staticClass:"window-tabs-head",class:{disabled:!t.tabsEnabled}},[i("span",{class:{active:"share"===t.activeTab},attrs:{id:"share-button-tab"},on:{click:function(e){return t.tabClick("share")}}},[t._v(t._s(t.localization.shareTab))]),t._v(" "),i("span",{class:{active:"embed"===t.activeTab},attrs:{id:"embed-button-tab"},on:{click:function(e){return t.tabClick("embed")}}},[t._v(t._s(t.localization.embedTab))])]),t._v(" "),i("section",{staticClass:"window-tab",class:{active:"share"===t.activeTab},attrs:{id:"share-tab"}},[i("div",{ref:"qr",staticClass:"qr",attrs:{id:"qr","aria-hidden":"true"}}),t._v(" "),i("div",{staticClass:"url-section"},[i("textarea",{directives:[{name:"model",rawName:"v-model",value:t.currentUrl,expression:"currentUrl"}],ref:"shareUrlContainer",staticClass:"url-container tip",attrs:{tabindex:"0",role:"textbox","data-modal-tabIndex":"first-init",id:"share-url-container",dir:"ltr",readonly:""},domProps:{value:t.currentUrl},on:{input:function(e){e.target.composing||(t.currentUrl=e.target.value)}}}),t._v(" "),i("label",{staticClass:"current-page-label",attrs:{for:"current-page-checkbox",id:"current-page-label"}},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.currentPage,expression:"currentPage"}],staticClass:"current-page-checkbox",attrs:{tabindex:"0",role:"checkbox","aria-labelledby":"current-page-label",type:"checkbox",id:"current-page-checkbox","aria-label":t.localization.shareCurrent},domProps:{checked:Array.isArray(t.currentPage)?t._i(t.currentPage,null)>-1:t.currentPage},on:{change:function(e){var i=t.currentPage,n=e.target,s=!!n.checked;if(Array.isArray(i)){var o=null,a=t._i(i,o);n.checked?a<0&&(t.currentPage=i.concat([o])):a>-1&&(t.currentPage=i.slice(0,a).concat(i.slice(a+1)))}else t.currentPage=s}}}),t._v(" "),i("span",{attrs:{"aria-hidden":"true"}},[t._v("\n "+t._s(t.localization.shareCurrent)+"\n ")])]),t._v(" "),i("button",{ref:"copyUrlButton",staticClass:"popup-button social-button tip",attrs:{id:"copy-button",tabindex:"0","data-clipboard-target":"#share-url-container","aria-label":t.localization.copyButton}},[t._v("\n "+t._s(t.localization.copyButton)+"\n ")])]),t._v(" "),i("span",{staticClass:"text-block",attrs:{id:"popup-description"}},[t._v(t._s(t.localization.shareText))]),t._v(" "),i("a",{ref:"facebookBtn",staticClass:"social-link facebook-link",attrs:{tabindex:"0",role:"button",id:"facebook-link",target:"_blank",title:t.localization.facebookTitle,"aria-label":t.localization.facebookTitle},on:{click:function(e){return t.sendApiEvent("facebook")}}}),t._v(" "),i("a",{ref:"twitterBtn",staticClass:"social-link twitter-link",attrs:{tabindex:"0",role:"button",id:"twitter-link",target:"_blank",title:t.localization.twitterTitle,"aria-label":t.localization.twitterTitle},on:{click:function(e){return t.sendApiEvent("twitter")}}}),t._v(" "),i("a",{ref:"linkedinBtn",staticClass:"social-link linkedin-link",attrs:{tabindex:"0",role:"button",id:"linkedin-link",target:"_blank",title:t.localization.linkedinTitle,"aria-label":t.localization.linkedinTitle},on:{click:function(e){return t.sendApiEvent("linkedIn")}}}),t._v(" "),i("a",{ref:"mailBtn",staticClass:"social-link mail-link",attrs:{tabindex:"0",role:"button",id:"mail-link",target:"_blank",title:t.localization.mailTitle,"aria-label":t.localization.mailTitle,"data-modal-tabIndex":"last"},on:{click:function(e){return t.sendApiEvent("email")}}})]),t._v(" "),i("section",{staticClass:"window-tab",class:{active:"embed"===t.activeTab},attrs:{id:"embed-tab"}},[i("label",{staticClass:"embed-label"},[t._v(t._s(t.localization.embedType)+"\n "),i("select",{directives:[{name:"model",rawName:"v-model",value:t.embedType,expression:"embedType"}],attrs:{id:"embed-type-select"},on:{change:function(e){var i=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.embedType=e.target.multiple?i:i[0]}}},[i("option",{attrs:{value:"full"}},[t._v(t._s(t.localization.fullPublication))]),t._v(" "),i("option",{attrs:{value:"cover"}},[t._v(t._s(t.localization.linkablePage))])])]),t._v(" "),i("label",{staticClass:"embed-label",attrs:{for:"current-page-embed"}},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.currentPage,expression:"currentPage"}],attrs:{type:"checkbox",id:"current-page-embed"},domProps:{checked:Array.isArray(t.currentPage)?t._i(t.currentPage,null)>-1:t.currentPage},on:{change:function(e){var i=t.currentPage,n=e.target,s=!!n.checked;if(Array.isArray(i)){var o=null,a=t._i(i,o);n.checked?a<0&&(t.currentPage=i.concat([o])):a>-1&&(t.currentPage=i.slice(0,a).concat(i.slice(a+1)))}else t.currentPage=s}}}),t._v(" "+t._s(t.localization.embedCurrent))]),t._v(" "),i("textarea",{directives:[{name:"model",rawName:"v-model",value:t.embedCode,expression:"embedCode"}],staticClass:"embed-text-area",attrs:{id:"embed-text",dir:"ltr",readonly:""},domProps:{value:t.embedCode},on:{input:function(e){e.target.composing||(t.embedCode=e.target.value)}}}),t._v(" "),"full"===t.embedType?i("div",{staticClass:"embed-size-frame",attrs:{id:"embed-size-frame"}},[i("label",{attrs:{for:"embed-width"}},[t._v(t._s(t.localization.width)+": "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.embedWidth,expression:"embedWidth"}],staticClass:"size-inp",attrs:{type:"text",id:"embed-width"},domProps:{value:t.embedWidth},on:{input:function(e){e.target.composing||(t.embedWidth=e.target.value)}}})]),t._v(" "),i("label",{attrs:{for:"embed-height"}},[t._v(t._s(t.localization.height)+": "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.embedHeight,expression:"embedHeight"}],staticClass:"size-inp",attrs:{type:"text",id:"embed-height"},domProps:{value:t.embedHeight},on:{input:function(e){e.target.composing||(t.embedHeight=e.target.value)}}})])]):t._e(),t._v(" "),i("span",{ref:"copyEmbedButton",staticClass:"popup-button social-button embed-copy tip",attrs:{id:"embed-copy-button","data-clipboard-target":"#embed-text"}},[t._v(t._s(t.localization.copyButton))])])])},s=[];n._withStripped=!0},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return n})),i.d(e,"staticRenderFns",(function(){return s}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"publication-info"},[t.showConfig?i("div",{staticClass:"window-tabs-head"},[i("span",{class:{active:"info"===t.activeTab},attrs:{id:"custom-button-tab"},on:{click:function(e){return t.tabClick("info")}}},[t._v("Info")]),t._v(" "),t.showConfig?i("span",{class:{active:"config"===t.activeTab},attrs:{id:"info-button-tab"},on:{click:function(e){return t.tabClick("config")}}},[t._v("JSON Config")]):t._e(),t._v(" "),t.showConfig?i("span",{class:{active:"store"===t.activeTab},attrs:{id:"hotkeys-button-tab"},on:{click:function(e){return t.tabClick("store")}}},[t._v("Store state")]):t._e()]):t._e(),t._v(" "),i("section",{staticClass:"window-tab debug-info info-tab",class:{active:"info"===t.activeTab},attrs:{id:"info-tab"}},[t.hasPublicationData?i("div",[i("table",{staticClass:"info-table"},[t.publicationInfoData.id?i("tr",[i("td",{staticClass:"info-table-key"},[t._v("User ID")]),t._v(" "),i("td",{staticClass:"info-table-value"},[t._v(t._s(t.publicationInfoData.id))])]):t._e(),t._v(" "),t.publicationInfoData.publicationId?i("tr",[i("td",{staticClass:"info-table-key"},[t._v("Publication ID")]),t._v(" "),i("td",{staticClass:"info-table-value"},[t._v(t._s(t.publicationInfoData.publicationId))])]):t._e(),t._v(" "),t.publicationInfoData.publicationVer?i("tr",[i("td",{staticClass:"info-table-key"},[t._v("Publication version")]),t._v(" "),i("td",{staticClass:"info-table-value"},[t._v(t._s(t.publicationInfoData.publicationVer))])]):t._e(),t._v(" "),t.publicationInfoData.publishDate?i("tr",[i("td",{staticClass:"info-table-key"},[t._v("Update date")]),t._v(" "),i("td",{staticClass:"info-table-value"},[t._v(t._s(t.publicationInfoData.publishDate))])]):t._e(),t._v(" "),t.publicationInfoData.publishVer||t.publicationInfoData.publishEdition?i("tr",[i("td",{staticClass:"info-table-key"},[t._v("Updated in")]),t._v(" "),i("td",{staticClass:"info-table-value"},[t.publicationInfoData.publishVer?i("span",[t._v(t._s(t.publicationInfoData.publishVer))]):t._e(),t.publicationInfoData.publishEdition?i("span",[t._v(" "+t._s(t.publicationInfoData.publishEdition))]):t._e()])]):t._e(),t._v(" "),t.publicationInfoData.createVer||t.publicationInfoData.createEdition?i("tr",[i("td",{staticClass:"info-table-key"},[t._v("Project created in")]),t._v(" "),i("td",{staticClass:"info-table-value"},[t.publicationInfoData.createVer?i("span",[t._v(t._s(t.publicationInfoData.createVer))]):t._e(),t.publicationInfoData.createEdition?i("span",[t._v(" "+t._s(t.publicationInfoData.createEdition))]):t._e()])]):t._e()]),t._v(" "),t.hasAdditionalData?i("h3",[t._v("Additional data:")]):t._e(),t._v(" "),t.hasAdditionalData?i("table",{staticClass:"info-table"},t._l(t.publicationInfoData.additional,(function(e,n){return i("tr",[i("td",{staticClass:"info-table-key"},[t._v(t._s(n))]),t._v(" "),i("td",{staticClass:"info-table-value"},[t._v(t._s(e))])])})),0):t._e()]):i("div",[t._v("Unfortunately, no info is available for this publication.")])]),t._v(" "),t.showConfig?i("section",{staticClass:"window-tab debug-info",class:{active:"config"===t.activeTab},attrs:{id:"config-tab"}},[i("p",{staticClass:"description"},[t._v("This window provides the current publication configs in JSON format as provided by the Publication API. Please note that these configs may contain merged default values.")]),t._v(" "),i("div",{staticClass:"divider"}),t._v(" "),i("label",{attrs:{for:"pagerInfo"}},[t._v("Pages config: "),t.pagerInfo?t._e():i("button",{on:{click:t.loadPager}},[t._v(t._s(t.loadLabel))])]),t._v(" "),i("textarea",{attrs:{id:"pagerInfo"}},[t._v(t._s(t.pagerInfo))]),t._v(" "),i("label",{attrs:{for:"wsInfo"}},[t._v("Workspace config:")]),t._v(" "),i("textarea",{attrs:{id:"wsInfo"}},[t._v(t._s(t.workspaceInfo))]),t._v(" "),i("label",{attrs:{for:"skinInfo"}},[t._v("Skin config:")]),t._v(" "),i("textarea",{attrs:{id:"skinInfo"}},[t._v(t._s(t.skinInfo))])]):t._e(),t._v(" "),t.showConfig?i("section",{staticClass:"window-tab debug-info",class:{active:"store"===t.activeTab},attrs:{id:"store-tab"}},[i("p",{staticClass:"description"},[t._v("This window provides the current store state for each component in JSON format.")]),t._v(" "),i("div",{staticClass:"divider"}),t._v(" "),i("label",{attrs:{for:"input-component"}},[t._v("Store component:\n "),i("select",{directives:[{name:"model",rawName:"v-model",value:t.currentComponent,expression:"currentComponent"}],attrs:{id:"input-component"},on:{change:function(e){var i=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.currentComponent=e.target.multiple?i:i[0]}}},t._l(t.availableComponents,(function(e){return i("option",{domProps:{value:e}},[t._v("\n "+t._s(e)+"\n ")])})),0)]),t._v(" "),i("textarea",{attrs:{id:"componentInfo"}},[t._v(t._s(t.componentInfo))])]):t._e(),t._v(" "),i("div",{staticClass:"divider wide"}),t._v(" "),t.versionInfo?i("p",{staticClass:"version",on:{click:t.onClick}},[t._v(t._s(t.versionInfo))]):i("p",{staticClass:"version",on:{click:t.onClick}},[t._v("Unknown version")])])},s=[];n._withStripped=!0},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return n})),i.d(e,"staticRenderFns",(function(){return s}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"publication-help",class:t.isMac?"":"win"},[i("div",{staticClass:"window-tabs-head",attrs:{role:"tablist"}},[t.localization.about.text?i("span",{class:{active:"about"===t.activeTab},attrs:{id:"custom-button-tab",tabindex:"0",role:"tab","aria-controls":"custom-tab","aria-selected":"about"===t.activeTab?"true":"false","data-modal-tabIndex":"about"===t.activeTab&&"first-init"},on:{click:function(e){return t.tabClick("about")},keydown:t.keyDown}},[t._v("\n "+t._s(t.localization.aboutTab)+"\n ")]):t._e(),t._v(" "),i("span",{class:{active:"info"===t.activeTab},attrs:{id:"info-button-tab",tabindex:"0",role:"tab","aria-controls":"general-tab","aria-selected":"info"===t.activeTab?"true":"false","data-modal-tabIndex":"info"===t.activeTab&&"first-init"},on:{click:function(e){return t.tabClick("info")},keydown:t.keyDown}},[t._v("\n "+t._s(t.localization.infoTab)+"\n ")]),t._v(" "),i("span",{class:{active:"hotkeys"===t.activeTab},attrs:{id:"hotkeys-button-tab",tabindex:"0",role:"tab","aria-controls":"hotkeys-tab","aria-selected":"hotkeys"===t.activeTab?"true":"false","data-modal-tabIndex":"last"},on:{click:function(e){return t.tabClick("hotkeys")},keydown:t.keyDown}},[t._v("\n "+t._s(t.localization.hotkeysTab)+"\n ")])]),t._v(" "),t.localization.about.text?i("section",{staticClass:"window-tab",class:{active:"about"===t.activeTab},attrs:{id:"custom-tab",tabindex:"-1",role:"tabpanel","aria-labelledby":"custom-button-tab"}},[i("p",[t._v(t._s(t.localization.about.text))])]):t._e(),t._v(" "),i("section",{staticClass:"window-tab",class:{active:"info"===t.activeTab},attrs:{id:"general-tab",tabindex:"-1",role:"tabpanel","aria-labelledby":"info-button-tab"}},["flip-book"!==t.bookComponent||t.wheelFlipEnabled?t._e():i("p",[i("span",{domProps:{innerHTML:t._s(t.localization.info.flipInfo)}})]),t._v(" "),"flip-book"===t.bookComponent&&t.wheelFlipEnabled?i("p",[i("span",{domProps:{innerHTML:t._s(t.localization.info.flipInfoWheel)}})]):t._e(),t._v(" "),"slide-book"!==t.bookComponent||t.wheelFlipEnabled?t._e():i("p",[i("span",{domProps:{innerHTML:t._s(t.localization.info.slideInfo)}})]),t._v(" "),"slide-book"===t.bookComponent&&t.wheelFlipEnabled?i("p",[i("span",{domProps:{innerHTML:t._s(t.localization.info.slideInfoWheel)}})]):t._e(),t._v(" "),i("div",{staticClass:"divider"}),t._v(" "),i("p",[i("span",{domProps:{innerHTML:t._s(t.localization.info.contentHighlight)}})]),t._v(" "),i("p",[i("span",{domProps:{innerHTML:t._s(t.localization.info.doubleClick)}})]),t._v(" "),t.wheelFlipEnabled?i("p",[i("span",{domProps:{innerHTML:t._s(t.localization.info.changeZoomWheel)}})]):i("p",[i("span",{domProps:{innerHTML:t._s(t.localization.info.changeZoom)}})]),t._v(" "),i("p",[i("span",{domProps:{innerHTML:t._s(t.localization.info.zoomMove)}})]),t._v(" "),t.selectTextEnabled?i("p",[i("span",{domProps:{innerHTML:t._s(t.localization.info.zoomSelect)}})]):t._e()]),t._v(" "),i("section",{staticClass:"window-tab",class:{active:"hotkeys"===t.activeTab},attrs:{id:"hotkeys-tab",tabindex:"-1",role:"tabpanel","aria-labelledby":"hotkeys-button-tab"}},[i("p",[i("span",{attrs:{dir:"ltr"}},[i("span",{staticClass:"modifier key"},[t._v(t._s(t.ctrlKey))]),i("span",{staticClass:"key"},[t._v("+")])]),t._v(" – "+t._s(t.localization.hotkeys.zoomIn))]),t._v(" "),i("p",[i("span",{attrs:{dir:"ltr"}},[i("span",{staticClass:"modifier key"},[t._v(t._s(t.ctrlKey))]),i("span",{staticClass:"key"},[t._v("-")])]),t._v(" – "+t._s(t.localization.hotkeys.zoomOut))]),t._v(" "),i("p",[i("span",{attrs:{dir:"ltr"}},[i("span",{staticClass:"modifier key"},[t._v(t._s(t.ctrlKey))]),i("span",{staticClass:"key"},[t._v("0")])]),t._v(" – "+t._s(t.localization.hotkeys.actualSize))]),t._v(" "),i("div",{staticClass:"divider"}),t._v(" "),t.selectTextEnabled?i("p",[i("span",{attrs:{dir:"ltr"}},[i("span",{staticClass:"modifier key"},[t._v(t._s(t.ctrlKey))]),i("span",{staticClass:"key"},[t._v("C")])]),t._v(" – "+t._s(t.localization.hotkeys.copyText))]):t._e(),t._v(" "),t.selectTextEnabled?i("p",[i("span",{attrs:{dir:"ltr"}},[i("span",{staticClass:"modifier key"},[t._v(t._s(t.ctrlKey))]),i("span",{staticClass:"key"},[t._v("A")])]),t._v(" – "+t._s(t.localization.hotkeys.copyTextLink))]):t._e(),t._v(" "),t.selectTextEnabled?i("div",{staticClass:"divider"}):t._e(),t._v(" "),t.searchEnabled?i("p",[i("span",{attrs:{dir:"ltr"}},[i("span",{staticClass:"modifier key"},[t._v(t._s(t.ctrlKey))]),i("span",{staticClass:"key"},[t._v("F")])]),t._v(" – "+t._s(t.localization.hotkeys.openSearch))]):t._e(),t._v(" "),t.printEnabled?i("p",[i("span",{attrs:{dir:"ltr"}},[i("span",{staticClass:"modifier key"},[t._v(t._s(t.ctrlKey))]),i("span",{staticClass:"key"},[t._v("P")])]),t._v(" – "+t._s(t.localization.hotkeys.openPrint))]):t._e(),t._v(" "),t.soundEnabled?i("p",[i("span",{attrs:{dir:"ltr"}},[i("span",{staticClass:"modifier key"},[t._v(t._s(t.ctrlKey))]),i("span",{staticClass:"key"},[t._v("M")])]),t._v(" – "+t._s(t.localization.hotkeys.muteSound))]):t._e(),t._v(" "),i("p",[i("span",{attrs:{dir:"ltr"}},[i("span",{staticClass:"modifier key"},[t._v(t._s(t.shiftKey))]),i("span",{staticClass:"key"},[t._v("W")])]),t._v(" – "+t._s(t.localization.hotkeys.toggleWheel))]),t._v(" "),i("p",[i("span",{staticClass:"wide key"},[t._v("Esc")]),t._v(" – "+t._s(t.localization.hotkeys.closeWindow))])]),t._v(" "),i("div",{staticClass:"divider"}),t._v(" "),t.versionInfo?i("p",{staticClass:"version"},[t._v(t._s(t.versionInfo))]):t._e()])},s=[];n._withStripped=!0},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return n})),i.d(e,"staticRenderFns",(function(){return s}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"acessibility"},[i("a",{staticClass:"acessibility-full-button",attrs:{"data-modal-tabIndex":"first-init",target:"_blank",href:"linkFull",tabindex:"0",download:t.pdfFileName,role:"button",title:t.saveTitle+" "+t.pdfTitle,"aria-label":t.saveTitle+" "+t.pdfTitle},on:{click:function(e){return t.processDownloadEvent(e)}}},[i("span",{staticClass:"title"},[t._v(t._s(t.pdfLabel)+" - "),i("span",{attrs:{dir:"ltr"}},[t._v(t._s(t.pdfSize))])]),t._v(" "),i("span",{staticClass:"description"},[t._v(t._s(t.pdfTitle))])]),t._v(" "),i("span",{staticClass:"text-block",attrs:{id:"popup-description"}},[t._v(t._s(t.pdfDescription))])])},s=[];n._withStripped=!0},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return n})),i.d(e,"staticRenderFns",(function(){return s}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("sidebar",{ref:"sidebar",attrs:{title:t.title,icon:t.icon},on:{"click-by-sidebar":t.sidebarClick}},[i("div",{ref:"wrapper",class:t.wrapperClasses,attrs:{title:t.title,role:"grid","aria-rowcount":t.spreadCount,"aria-label":t.title},on:{click:function(e){return e.stopPropagation(),t.onClick(e)},keydown:t.keyDown}},t._l(t.thSchemaArray,(function(e,n){return i("div",{style:{height:t.getBlockPosition(n+1).height+"px"},attrs:{role:"rowgroup"}},t._l(e,(function(s,o){return i("div",{staticClass:"th-row",attrs:{role:"row","aria-rowindex":o+t.spreadsInBlock*n+1}},[i("div",{staticClass:"th-spread-wrapper",attrs:{"data-th-focusable":t.focusableWrappers,tabindex:!!t.focusableWrappers&&-1,"data-th-focusable-index":!!t.focusableWrappers&&o+t.spreadsInBlock*n,"data-page-length":e.length,role:!!t.focusableWrappers&&"gridcell"}},t._l(s,(function(t){return i("th-item",{key:t.index+1,attrs:{data:t,isCoverPage:1===s.length&&!t.wide}})})),1)])})),0)})),0)])},s=[];n._withStripped=!0},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return n})),i.d(e,"staticRenderFns",(function(){return s}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:"tool-window",attrs:{role:"search"===t.activeComponent?"search":"navigation",tabindex:"search"!==t.activeComponent&&0},on:{click:function(e){return e.stopPropagation(),t.setFocusOnSidebar(e)},focus:t.setFocusOnSidebar}},[t._t("preloader"),t._v(" "),i("header",{staticClass:"tool-title-frame",attrs:{"aria-hidden":!0}},[i("span",{staticClass:"svg-button tool-title-icon"},[i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:t.icon}})],1),t._v(" "),i("h3",{staticClass:"tool-title"},[t._v(t._s(t.title))]),t._v(" "),i("span",{staticClass:"svg-button icon-button close-button",on:{click:t.close}},[i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"close"}})],1)]),t._v(" "),t._t("subheader"),t._v(" "),i("div",{ref:"scroller",staticClass:"scroller",attrs:{id:"scroller"},on:{scroll:t.resetScroll}},[i("div",{staticClass:"cont"},[t._t("default")],2)]),t._v(" "),i("footer",{attrs:{"aria-hidden":!0}},[t.footerTitle?i("h3",{staticClass:"tool-footer-title"},[t._v(t._s(t.footerTitle))]):t._e(),t._v(" "),t._t("footer")],2)],2)},s=[];n._withStripped=!0},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return n})),i.d(e,"staticRenderFns",(function(){return s}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:t.itemClasses,style:t.itemStyles,attrs:{"data-index":t.data.index,"data-id":t.data.id,tabindex:!!t.focusableItems&&-1,"data-th-focusable-index":!!t.focusableItems&&t.data.index,"data-th-focusable":t.focusableItems,role:!!t.focusableItems&&"gridcell","data-page-container":"true"}},[i("div",{staticClass:"th-img-element",style:t.itemStyles},[t.isCoverPage||t.slideMode||t.singleMode?t._e():i("div",{class:"gradient "+t.pageGradient,attrs:{"aria-hidden":"true"}}),t._v(" "),t.isVisible?i("thumb",{attrs:{id:t.data.id,side:t.data.side,size:t.data.size,contentCrop:t.contentCrop}}):t._e()],1),t._v(" "),!t.data.wide||t.slideMode||t.singleMode?i("span",{staticClass:"th-item-title",attrs:{dir:t.textDirection}},[t._v("\n "+t._s(t.data.caption)),t.inspectorMode?i("span",{class:["page-id",{"page-id-wide":t.data.wide}]},[t._v("\n ["+t._s(t.data.id)),t.data.wide?i("span",[t._v("w")]):t._e(),t._v("]")]):t._e()]):[i("div",{staticClass:"th-item-title wide-title",attrs:{dir:"ltr"}},[i("div",{staticClass:"title-half"},[t._v("\n "+t._s(t.captions.left)),t.inspectorMode?i("span",{staticClass:"page-id page-id-wide"},[t._v("["+t._s(t.data.id)+"w]")]):t._e()]),t._v(" "),i("div",{staticClass:"title-half"},[t._v(t._s(t.captions.right))])])]],2)},s=[];n._withStripped=!0},,,,,function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return n})),i.d(e,"staticRenderFns",(function(){return s}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("sidebar",{attrs:{title:t.title,icon:t.icon},on:{"click-by-sidebar":t.sidebarClick}},[i("ul",{ref:"toc-root",staticClass:"toc-items",class:{"additional-padding":t.level2Items},attrs:{tabindex:"-1",role:"tree","aria-label":t.title,"data-toc-item":"true"},on:{keydown:t.keyDown,click:function(t){t.stopPropagation()}}},t._l(t.tocItems,(function(e,n){return i("toc-item",{key:n,attrs:{"item-data":e,depth:"0"},on:{updateHeight:t.updateHeight}})})),1)])},s=[];n._withStripped=!0},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return n})),i.d(e,"staticRenderFns",(function(){return s}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("li",{staticClass:"toc-item"},[i("p",{ref:"item-button",staticClass:"list-item toc-item-button",class:{haschildren:t.itemData.children,active:t.itemData.active},style:t.isLocaleRtl?"padding-right: "+t.paddingLeft+"px;":"padding-left: "+t.paddingLeft+"px;",attrs:{tabindex:"-1","data-toc-item":"true",role:"treeitem","aria-expanded":t.ariaExpanded,"aria-level":t.level,"aria-setsize":t.size,"aria-posinset":t.itemIndex},on:{click:function(e){return t.goToPage(t.itemData.page)},keydown:t.keyDown}},[t.openChildIcon||!t.pageLabel?i("span",{staticClass:"icon",attrs:{"aria-hidden":"true"},on:{click:function(e){return e.stopPropagation(),t.toggleOpen(e)}}},[i("svgicon",{staticClass:"icon",attrs:{focusable:"false",name:t.openChildIcon}})],1):t._e(),t._v(" "),i("span",{staticClass:"toc-item-title",attrs:{dir:t.textDirection},domProps:{innerHTML:t._s(t.itemTitle)}}),t._v(" "),t.pageLabel?i("v-touch",{staticClass:"page-label",attrs:{tag:"span",title:t.pageLabel},on:{tap:function(e){return t.goToPage(t.itemData.page)}}},[t._v(t._s(t.pageLabel))]):t._e()],1),t._v(" "),t.itemData.children&&t.itemData.toggle?i("ul",{staticClass:"toc-sub-item-ul",attrs:{role:"group"}},t._l(t.itemData.children,(function(e,n){return i("toc-item",{key:n,attrs:{"item-data":e,depth:1*t.depth+1}})})),1):t._e()])},s=[];n._withStripped=!0},,,,function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return n})),i.d(e,"staticRenderFns",(function(){return s}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("sidebar",{attrs:{title:t.title,icon:t.icon},on:{"click-by-sidebar":t.setFocus}},[i("div",{ref:"note-wrapper",staticClass:"note-wrapper",attrs:{tabindex:"0","data-focus-trap":"item",role:t.notesCount>0&&"grid","aria-rowcount":t.notesCount,"aria-label":t.title},on:{focus:t.focusIsSet,keydown:t.keyDown}},[t._l(t.notesArray,(function(e,n){return i("div",{attrs:{role:"row","aria-rowindex":n+1}},[i("note-item",{key:e.id,ref:"noteItem"+n,refInFor:!0,attrs:{data:e,itemIndex:n,maxIndex:t.notesArray.length,size:t.thumbSizes,isie:t.isIE},on:{"item-clicked":t.onClick}})],1)})),t._v(" "),t.showInvitation?i("span",{staticClass:"note-window-invitation-text",attrs:{id:"no-notes-label"}},[t._v(t._s(t.invitation))]):t._e(),t._v(" "),i("button",{ref:"add-button",staticClass:"tool-button note-button",attrs:{role:"button",tabindex:"0",title:t.addNote,"aria-describedby":!!t.showInvitation&&"no-notes-label"},on:{keydown:t.buttonKeyDown,click:function(e){return e.stopPropagation(),t.onClickAddNote(e)},focus:t.focusOnButton}},[t._v("\n "+t._s(t.addNote)+"\n ")]),t._v(" "),t.showInvitation?i("span",{staticClass:"note-window-post-invitation-text",attrs:{"aria-hidden":"true"}},[t._v(t._s(t.postInvitation))]):t._e()],2)])},s=[];n._withStripped=!0},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return n})),i.d(e,"staticRenderFns",(function(){return s}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"noteItem",class:t.wrapperClasses,attrs:{dir:t.blockDirection,"data-id":t.data.id,"data-page":t.data.page,tabindex:"-1","data-focus-trap":"item",role:"gridcell","aria-describedby":"note-text"+t.itemIndex},on:{click:t.onClick}},[i("div",{staticClass:"note-img-element",style:t.noteImgStyles,attrs:{"aria-hidden":"true"}},[i("thumb",{attrs:{id:t.data.page,side:t.data.side,size:t.size,contentCrop:t.contentCrop}})],1),t._v(" "),i("div",{staticClass:"note-body-element"},[i("h5",{staticClass:"note-window-item-title",attrs:{title:t.pageText}},[t._v(t._s(t.pageText))]),t._v(" "),i("div",{staticClass:"note-color",class:t.data.color,attrs:{"aria-hidden":"true"}}),t._v(" "),i("span",{ref:"textbox",class:t.textClasses,attrs:{"aria-hidden":"true","aria-describedby":"note-title"+t.itemIndex,id:"note-text"+t.itemIndex,dir:t.blockDirection}},[t._v("\n "+t._s(t.ellipseText)+"\n ")])])])},s=[];n._withStripped=!0},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return n})),i.d(e,"staticRenderFns",(function(){return s}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("sidebar",{ref:"sidebar",staticClass:"right",attrs:{title:t.title,icon:t.icon},on:{"click-by-sidebar":t.setFocus}},[i("div",{staticClass:"tool-header",attrs:{slot:"subheader",id:"tool-header"},slot:"subheader"},[i("div",{staticClass:"search-input-block"},[i("label",{on:{click:function(t){t.stopPropagation()}}},[i("input",{ref:"searchInput",attrs:{tabindex:"0",placeholder:t.placeholder,dir:t.inputDir,role:"search"},on:{input:function(e){return t.input(e.target.value)}}}),t._v(" "),t.showClear?i("button",{ref:"clearButton",staticClass:"clear-icon",attrs:{role:"button",tabindex:"0"},on:{click:t.clear}},[i("svgicon",{attrs:{focusable:"false",name:"rounded-close",scale:"1"}})],1):t._e()]),t._v(" "),i("button",{ref:"filtersButton",class:["filters-icon",{active:t.showFilters}],attrs:{role:"button",tabindex:"0","aria-label":t.localization.filtersTitle,title:t.localization.filtersTitle},on:{click:function(e){t.showFilters=!t.showFilters}}},[i("svgicon",{attrs:{name:"equalizer"}})],1)]),t._v(" "),t.showFilters?i("div",{staticClass:"filters"},[i("label",{staticClass:"checkbox-container",attrs:{for:"exact-match-checkbox",id:"exact-match-label"}},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.exactMatch,expression:"exactMatch"}],ref:"exactMatchCheckbox",attrs:{id:"exact-match-checkbox",type:"checkbox",role:"checkbox","aria-labelledby":"exact-match-label",tabindex:"0"},domProps:{checked:Array.isArray(t.exactMatch)?t._i(t.exactMatch,null)>-1:t.exactMatch},on:{change:function(e){var i=t.exactMatch,n=e.target,s=!!n.checked;if(Array.isArray(i)){var o=null,a=t._i(i,o);n.checked?a<0&&(t.exactMatch=i.concat([o])):a>-1&&(t.exactMatch=i.slice(0,a).concat(i.slice(a+1)))}else t.exactMatch=s}}}),t._v(" "),i("div",{staticClass:"checkbox-body"}),t._v(" "),i("span",{attrs:{"aria-hidden":"true"}},[t._v("\n "+t._s(t.localization.exactMatchLabel)+"\n ")])])]):t._e(),t._v(" "),i("div",{staticClass:"search-sub-header subheader"},[t.subtitle?i("span",{staticClass:"search-results-count",attrs:{role:"alert","aria-atomic":"false","aria-live":"assertive"}},[t._v("\n "+t._s(t.subtitle)+"\n ")]):t._e(),t._v(" "),t.preloaderVisible?i("div",{staticClass:"search-live-preloader"},[i("div",{staticClass:"dot"})]):t._e()])]),t._v(" "),i("ul",{ref:"searchResultsList",staticClass:"search-ul",attrs:{"data-focus-trap":"list",tabindex:t.numberOfResults>0&&0,role:t.numberOfResults>0&&"grid","aria-rowcount":t.numberOfResults,"aria-label":t.title},on:{focus:t.focusIsSet,keydown:t.keyDown}},t._l(t.visibleResultsPerPages,(function(e,n){return i("div",{ref:"page"+n,refInFor:!0,staticClass:"items-page",style:{"min-height":t.getPageHeight(e)+"px"}},t._l(e,(function(e,s){return i("search-result-item",{key:n*t.resultsInPage+s,ref:"searchItem"+(n*t.resultsInPage+s),refInFor:!0,attrs:{"item-data":e,"item-index":n*t.resultsInPage+s,depth:"0"}})})),1)})),0)])},s=[];n._withStripped=!0},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return n})),i.d(e,"staticRenderFns",(function(){return s}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("li",{class:"search-item p"+t.pageId,attrs:{role:"row","aria-rowindex":t.itemIndex+1}},[i("div",{ref:"wrapper",class:["list-item search-item-p",{active:t.isCurrent}],attrs:{tabindex:"-1","data-focus-trap":"item",role:"gridcell"},on:{click:function(e){return e.stopPropagation(),t.onClick(e)}}},[i("span",{staticClass:"search-item-title",attrs:{dir:"ltr"}},[t._v(t._s(t.title))]),t._v(" "),i("span",{staticClass:"search-item-result"},[i("bdi",[t._l(t.textData,(function(e){return[e.emphasize?[i("b",[t._v(t._s(e.text))])]:[t._v(t._s(e.text))]]}))],2)]),t._v(" "),t.moreResults?i("span",{staticClass:"search-item-more"},[t._v(t._s(t.moreResults))]):t._e()])])},s=[];n._withStripped=!0},,,,function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return n})),i.d(e,"staticRenderFns",(function(){return s}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.enabled?i("div",{attrs:{id:"sound"}},[t.backgroundEnabled?i("audio",{ref:"background",attrs:{type:"audio/mp3",src:t.backgroundUrl,loop:t.backgroundLoop}}):t._e(),t._v(" "),t._l(t.flipSoftSounds,(function(e,n){return t.flipEnabled?i("audio",{ref:"soft",refInFor:!0,attrs:{id:"soft"+n}},[i("source",{attrs:{type:"audio/mp3",src:e}})]):t._e()})),t._v(" "),t._l(t.flipHardSounds,(function(e,n){return t.flipEnabled?i("audio",{ref:"hard",refInFor:!0,attrs:{id:"hard"+n}},[i("source",{attrs:{type:"audio/mp3",src:e}})]):t._e()}))],2):t._e()},s=[];n._withStripped=!0},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return n})),i.d(e,"staticRenderFns",(function(){return s}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.menuShown?i("div",{staticClass:"context-menu",style:t.menuStyles},t._l(t.menu,(function(e,n){return i("ul",{key:n,staticClass:"context-menu-group"},t._l(e,(function(e,n){return i("li",{key:n,staticClass:"context-menu-item",on:{click:function(i){return t.itemClick(e)}}},[i("svgicon",{staticClass:"svg-icon icon",attrs:{focusable:"false",name:e.icon}}),t._v(" "),i("span",{staticClass:"menu-item-title"},[t._v(t._s(t.$t(e.captionId)))])],1)})),0)})),0):t._e()},s=[];n._withStripped=!0},,function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return n})),i.d(e,"staticRenderFns",(function(){return s}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"banner-notice"},[i("span",{staticClass:"notice-text",domProps:{innerHTML:t._s(t.noticeText)}}),t._v(" "),i("button",{staticClass:"close-icon",attrs:{tabindex:"0"},on:{click:t.close}},[i("svgicon",{attrs:{focusable:"false",name:"cancel"}})],1)])},s=[];n._withStripped=!0},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){"use strict";i.r(e);var n=i(688),s=i(100),o=(i(896),i(897),i(1)),a=Object(o.default)(s.default,n.render,n.staticRenderFns,!1,null,"0e312e5a",null);a.options.__file="src/layouts/desktop/desktop.vue",e.default=a.exports},function(t,e,i){"use strict";i.r(e);var n=i(408);i.d(e,"render",(function(){return n.render})),i.d(e,"staticRenderFns",(function(){return n.staticRenderFns}))},function(t,e,i){"use strict";i.r(e);var n=i(690),s=i(102),o=(i(697),i(1)),a=Object(o.default)(s.default,n.render,n.staticRenderFns,!1,null,"71c99c82",null);a.options.__file="src/components/desktop/bottom-toolbar/index.vue",e.default=a.exports},function(t,e,i){"use strict";i.r(e);var n=i(409);i.d(e,"render",(function(){return n.render})),i.d(e,"staticRenderFns",(function(){return n.staticRenderFns}))},function(t,e,i){i(0).register({toc:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},function(t,e,i){i(0).register({font:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},function(t,e,i){i(0).register({sound:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},function(t,e,i){i(0).register({mute:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},function(t,e,i){i(0).register({"slideshow-pause":{width:16,height:16,viewBox:"0 0 24 24",data:''}})},function(t,e,i){i(0).register({slideshow:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},function(t,e,i){"use strict";i.r(e);var n=i(107),s=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e.default=s.a},,,function(t,e,i){"use strict";i.r(e);var n=i(701),s=i(111),o=(i(711),i(1)),a=Object(o.default)(s.default,n.render,n.staticRenderFns,!1,null,"2de4339a",null);a.options.__file="src/components/desktop/top-toolbar/index.vue",e.default=a.exports},function(t,e,i){"use strict";i.r(e);var n=i(417);i.d(e,"render",(function(){return n.render})),i.d(e,"staticRenderFns",(function(){return n.staticRenderFns}))},function(t,e,i){"use strict";i.r(e);var n=i(703),s=i(113),o=(i(704),i(1)),a=Object(o.default)(s.default,n.render,n.staticRenderFns,!1,null,"5ed0c29a",null);a.options.__file="src/components/desktop/pager/index.vue",e.default=a.exports},function(t,e,i){"use strict";i.r(e);var n=i(418);i.d(e,"render",(function(){return n.render})),i.d(e,"staticRenderFns",(function(){return n.staticRenderFns}))},function(t,e,i){"use strict";i.r(e);var n=i(115),s=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e.default=s.a},function(t,e,i){"use strict";i.r(e);var n=i(706),s=i(116),o=(i(707),i(1)),a=Object(o.default)(s.default,n.render,n.staticRenderFns,!1,null,"2fc5725e",null);a.options.__file="src/components/desktop/copyright-button/index.vue",e.default=a.exports},function(t,e,i){"use strict";i.r(e);var n=i(419);i.d(e,"render",(function(){return n.render})),i.d(e,"staticRenderFns",(function(){return n.staticRenderFns}))},function(t,e,i){"use strict";i.r(e);var n=i(118),s=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e.default=s.a},function(t,e,i){"use strict";i.r(e);var n=i(709),s=i(119),o=(i(710),i(1)),a=Object(o.default)(s.default,n.render,n.staticRenderFns,!1,null,"457517d4",null);a.options.__file="src/components/desktop/debug-controls/index.vue",e.default=a.exports},function(t,e,i){"use strict";i.r(e);var n=i(420);i.d(e,"render",(function(){return n.render})),i.d(e,"staticRenderFns",(function(){return n.staticRenderFns}))},function(t,e,i){"use strict";i.r(e);var n=i(121),s=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e.default=s.a},function(t,e,i){"use strict";i.r(e);var n=i(123),s=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e.default=s.a},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){"use strict";i.r(e);var n=i(809),s=i(205),o=(i(810),i(1)),a=Object(o.default)(s.default,n.render,n.staticRenderFns,!1,null,"9abc1d36",null);a.options.__file="src/components/common/preloader/index.vue",e.default=a.exports},function(t,e,i){"use strict";i.r(e);var n=i(466);i.d(e,"render",(function(){return n.render})),i.d(e,"staticRenderFns",(function(){return n.staticRenderFns}))},function(t,e,i){"use strict";i.r(e);var n=i(207),s=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e.default=s.a},function(t,e,i){"use strict";i.r(e);var n=i(812),s=i(208),o=(i(851),i(1)),a=Object(o.default)(s.default,n.render,n.staticRenderFns,!1,null,"42b65f48",null);a.options.__file="src/components/desktop/popup/index.vue",e.default=a.exports},function(t,e,i){"use strict";i.r(e);var n=i(467);i.d(e,"render",(function(){return n.render})),i.d(e,"staticRenderFns",(function(){return n.staticRenderFns}))},function(t,e,i){"use strict";i.r(e);var n=i(469);i.d(e,"render",(function(){return n.render})),i.d(e,"staticRenderFns",(function(){return n.staticRenderFns}))},function(t,e,i){i(0).register({"file-any":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},function(t,e,i){i(0).register({"file-doc":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},function(t,e,i){i(0).register({"file-exe":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},function(t,e,i){i(0).register({"file-gif":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},function(t,e,i){i(0).register({"file-html":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},function(t,e,i){i(0).register({"file-jpg":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},function(t,e,i){i(0).register({"file-mp3":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},function(t,e,i){i(0).register({"file-mp4":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},function(t,e,i){i(0).register({"file-pdf":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},function(t,e,i){i(0).register({"file-png":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},function(t,e,i){i(0).register({"file-ppt":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},function(t,e,i){i(0).register({"file-psd":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},function(t,e,i){i(0).register({"file-rar":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},function(t,e,i){i(0).register({"file-xls":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},function(t,e,i){i(0).register({"file-zip":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},function(t,e,i){"use strict";i.r(e);var n=i(212),s=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e.default=s.a},function(t,e,i){"use strict";i.r(e);var n=i(831),s=i(213),o=(i(834),i(1)),a=Object(o.default)(s.default,n.render,n.staticRenderFns,!1,null,"0507d8f6",null);a.options.__file="src/components/desktop/print-window/index.vue",e.default=a.exports},function(t,e,i){"use strict";i.r(e);var n=i(471);i.d(e,"render",(function(){return n.render})),i.d(e,"staticRenderFns",(function(){return n.staticRenderFns}))},,function(t,e,i){i(0).register({"file-any-print":{width:21,height:26,viewBox:"0 0 21 26",data:''}})},function(t,e,i){"use strict";i.r(e);var n=i(215),s=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e.default=s.a},function(t,e,i){"use strict";i.r(e);var n=i(836),s=i(216),o=(i(840),i(1)),a=Object(o.default)(s.default,n.render,n.staticRenderFns,!1,null,"2a4fa800",null);a.options.__file="src/components/desktop/social-window/index.vue",e.default=a.exports},function(t,e,i){"use strict";i.r(e);var n=i(472);i.d(e,"render",(function(){return n.render})),i.d(e,"staticRenderFns",(function(){return n.staticRenderFns}))},function(t,e,i){"use strict";var n;i.r(e),function(){function t(t){this.mode=i.MODE_8BIT_BYTE,this.data=t,this.parsedData=[];for(var e=0,n=this.data.length;e65536?(s[0]=240|(1835008&o)>>>18,s[1]=128|(258048&o)>>>12,s[2]=128|(4032&o)>>>6,s[3]=128|63&o):o>2048?(s[0]=224|(61440&o)>>>12,s[1]=128|(4032&o)>>>6,s[2]=128|63&o):o>128?(s[0]=192|(1984&o)>>>6,s[1]=128|63&o):s[0]=o,this.parsedData.push(s)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function e(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}t.prototype={getLength:function(t){return this.parsedData.length},write:function(t){for(var e=0,i=this.parsedData.length;e=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=e.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,i)},setupPositionProbePattern:function(t,e){for(var i=-1;i<=7;i++)if(!(t+i<=-1||this.moduleCount<=t+i))for(var n=-1;n<=7;n++)e+n<=-1||this.moduleCount<=e+n||(this.modules[t+i][e+n]=i>=0&&i<=6&&(0==n||6==n)||n>=0&&n<=6&&(0==i||6==i)||i>=2&&i<=4&&n>=2&&n<=4)},getBestMaskPattern:function(){for(var t=0,e=0,i=0;i<8;i++){this.makeImpl(!0,i);var n=a.getLostPoint(this);(0==i||t>n)&&(t=n,e=i)}return e},createMovieClip:function(t,e,i){var n=t.createEmptyMovieClip(e,i),s=1;this.make();for(var o=0;o>i&1);this.modules[Math.floor(i/3)][i%3+this.moduleCount-8-3]=n}for(i=0;i<18;i++){n=!t&&1==(e>>i&1);this.modules[i%3+this.moduleCount-8-3][Math.floor(i/3)]=n}},setupTypeInfo:function(t,e){for(var i=this.errorCorrectLevel<<3|e,n=a.getBCHTypeInfo(i),s=0;s<15;s++){var o=!t&&1==(n>>s&1);s<6?this.modules[s][8]=o:s<8?this.modules[s+1][8]=o:this.modules[this.moduleCount-15+s][8]=o}for(s=0;s<15;s++){o=!t&&1==(n>>s&1);s<8?this.modules[8][this.moduleCount-s-1]=o:s<9?this.modules[8][15-s-1+1]=o:this.modules[8][15-s-1]=o}this.modules[this.moduleCount-8][8]=!t},mapData:function(t,e){for(var i=-1,n=this.moduleCount-1,s=7,o=0,r=this.moduleCount-1;r>0;r-=2)for(6==r&&r--;;){for(var c=0;c<2;c++)if(null==this.modules[n][r-c]){var l=!1;o>>s&1)),a.getMask(e,n,r-c)&&(l=!l),this.modules[n][r-c]=l,-1==--s&&(o++,s=7)}if((n+=i)<0||this.moduleCount<=n){n-=i,i=-i;break}}}},e.PAD0=236,e.PAD1=17,e.createData=function(t,i,n){for(var s=u.getRSBlocks(t,i),o=new d,r=0;r8*l)throw new Error("code length overflow. ("+o.getLengthInBits()+">"+8*l+")");for(o.getLengthInBits()+4<=8*l&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=8*l||(o.put(e.PAD0,8),o.getLengthInBits()>=8*l));)o.put(e.PAD1,8);return e.createBytes(o,s)},e.createBytes=function(t,e){for(var i=0,n=0,s=0,o=new Array(e.length),r=new Array(e.length),c=0;c=0?p.get(v):0}}var g=0;for(h=0;h=0;)e^=a.G15<=0;)e^=a.G18<>>=1;return e},getPatternPosition:function(t){return a.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,i){switch(t){case o.PATTERN000:return(e+i)%2==0;case o.PATTERN001:return e%2==0;case o.PATTERN010:return i%3==0;case o.PATTERN011:return(e+i)%3==0;case o.PATTERN100:return(Math.floor(e/2)+Math.floor(i/3))%2==0;case o.PATTERN101:return e*i%2+e*i%3==0;case o.PATTERN110:return(e*i%2+e*i%3)%2==0;case o.PATTERN111:return(e*i%3+(e+i)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new l([1],0),i=0;i=1&&e<10)switch(t){case i.MODE_NUMBER:return 10;case i.MODE_ALPHA_NUM:return 9;case i.MODE_8BIT_BYTE:case i.MODE_KANJI:return 8;default:throw new Error("mode:"+t)}else if(e<27)switch(t){case i.MODE_NUMBER:return 12;case i.MODE_ALPHA_NUM:return 11;case i.MODE_8BIT_BYTE:return 16;case i.MODE_KANJI:return 10;default:throw new Error("mode:"+t)}else{if(!(e<41))throw new Error("type:"+e);switch(t){case i.MODE_NUMBER:return 14;case i.MODE_ALPHA_NUM:return 13;case i.MODE_8BIT_BYTE:return 16;case i.MODE_KANJI:return 12;default:throw new Error("mode:"+t)}}},getLostPoint:function(t){for(var e=t.getModuleCount(),i=0,n=0;n5&&(i+=3+o-5)}for(n=0;n=256;)t-=255;return r.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},c=0;c<8;c++)r.EXP_TABLE[c]=1<>>7-t%8&1)},put:function(t,e){for(var i=0;i>>e-i-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var h=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function f(){return"undefined"!=typeof CanvasRenderingContext2D}function p(){var t=!1,e=navigator.userAgent;if(/android/i.test(e)){t=!0;var i=e.toString().match(/android ([0-9]\.[0-9])/i);i&&i[1]&&(t=parseFloat(i[1]))}return t}var v=function(){var t=function(t,e){this._el=t,this._htOption=e};return t.prototype.draw=function(t){var e=this._htOption,i=this._el,n=t.getModuleCount();Math.floor(e.width/n),Math.floor(e.height/n);function s(t,e){var i=document.createElementNS("http://www.w3.org/2000/svg",t);for(var n in e)e.hasOwnProperty(n)&&i.setAttribute(n,e[n]);return i}this.clear();var o=s("svg",{viewBox:"0 0 "+String(n)+" "+String(n),width:"100%",height:"100%",fill:e.colorLight});o.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),i.appendChild(o),o.appendChild(s("rect",{fill:e.colorLight,width:"100%",height:"100%"})),o.appendChild(s("rect",{fill:e.colorDark,width:"1",height:"1",id:"template"}));for(var a=0;a'],r=0;r");for(var c=0;c');a.push("")}a.push(""),i.innerHTML=a.join("");var l=i.childNodes[0],u=(e.width-l.offsetWidth)/2,d=(e.height-l.offsetHeight)/2;u>0&&d>0&&(l.style.margin=d+"px "+u+"px")},t.prototype.clear=function(){this._el.innerHTML=""},t}();function m(t,e){for(var i=1,n=b(t),o=0,a=h.length;o<=a;o++){var r=0;switch(e){case s.L:r=h[o][0];break;case s.M:r=h[o][1];break;case s.Q:r=h[o][2];break;case s.H:r=h[o][3]}if(n<=r)break;i++}if(i>h.length)throw new Error("Too long data");return i}function b(t){var e=encodeURI(t).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return e.length+(e.length!=t?3:0)}(n=function(t,e){if(this._htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:s.H},"string"==typeof e&&(e={text:e}),e)for(var i in e)this._htOption[i]=e[i];"string"==typeof t&&(t=document.getElementById(t)),this._htOption.useSVG&&(g=v),this._android=p(),this._el=t,this._oQRCode=null,this._oDrawing=new g(this._el,this._htOption),this._htOption.text&&this.makeCode(this._htOption.text)}).prototype.makeCode=function(t){this._oQRCode=new e(m(t,this._htOption.correctLevel),this._htOption.correctLevel),this._oQRCode.addData(t),this._oQRCode.make(),this._el.title=t,this._oDrawing.draw(this._oQRCode),this.makeImage()},n.prototype.makeImage=function(){"function"==typeof this._oDrawing.makeImage&&(!this._android||this._android>=3)&&this._oDrawing.makeImage()},n.prototype.clear=function(){this._oDrawing.clear()},n.CorrectLevel=s}(),e.default=n},,function(t){t.exports=JSON.parse('{"template":"{{#legacy}}\\n\\n{{/legacy}}\\n{{^legacy}}\\n{{title}}