(window.webpackJsonp=window.webpackJsonp||[]).push([[0],Array(61).concat([function(t,e,i){"use strict";i.r(e);var n=i(744),s=i(201),o=(i(745),i(746),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(79);e.default=n.default},function(t,e,i){"use strict";i.r(e),(function(t){var n=i(588),s=i(597),o=i(600),a=i(361),r=i(702),c=i(742),l=i(753),u=i(761),d=i(767),h=i(773),f=i(775),p=i(782),v=i(785),g=i(3),m=i(186),b=i.n(m),w=i(5),_=i(25);function k(t){return T(t)||C(t)||y(t)||$()}function $(){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 y(t,e){if(t){if("string"==typeof t)return x(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)?x(t,e):void 0}}function C(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function T(t){if(Array.isArray(t))return x(t)}function x(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,e=this.$el.getBoundingClientRect();this.mini?e.width>550&&e.height>300&&this.$store.dispatch("workspace/setMini",!1):(e.width<=550||e.height<=300)&&this.$store.dispatch("workspace/setMini",!0),this.windowWidth=e.width,this.windowHeight=e.height,this.containerSize=this.$refs.bookContainer.$el.getBoundingClientRect(),this.$store.dispatch("workspace/setSize",{width:this.windowWidth,height:this.windowHeight,changedBy:t})},mouseDownHandler:function(){this.$store.state.workspace.accessibilityMode&&this.$store.dispatch("workspace/toggleAccessibilityMode")},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.showPopup&&("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.$store.dispatch(this.rightToLeftBook?"pager/goForward":"pager/goBackward",{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.$store.dispatch(this.rightToLeftBook?"pager/goBackward":"pager/goForward",{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.workspace.sound.enabled&&(this.$store.dispatch("workspace/toggleMuteSound"),t.preventDefault());break;case _.default.A:t.preventDefault();var o=this.$store.state.text.selectionRect;if(s&&null!==o){var a=this.$store.state.text.pageID,r=this.$store.getters["pages/pageProp"](a,"wide"),c="right"===this.$store.state.text.pageSide,l="slide-book"===this.$store.state.workspace.bookComponent&&this.$store.state.pager.slideMode,u=this.$store.getters["search/getSelectTextInfo"](a,c,l).isCrossWide,d=this.$store.getters["pages/pageProp"](a,"width")/(r&&!u?2:1),h=this.$store.getters["pages/pageProp"](a,"height");if(!(0===o.top&&0===o.left&&o.width===d&&o.height===h)){var f=u?{height:h,left:0,top:0,width:d}:c&&r?{height:h,left:d,top:0,width:d}:{height:h,left:0,top:0,width:d};this.$store.dispatch("text/setSelectionRect",f),this.$store.dispatch("text/setStopSelection",!0)}}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(w.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.showPopup||"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"](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(w.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 b.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 b.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.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(w.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)},setDefaultToolWindow:function(t){t&&"none"!==t?this.$store.dispatch("sidebar/openSidebar",{component:t,params:{initial:!0}}):null!==this.$store.state.sidebar.opened&&this.$store.dispatch("sidebar/closeSidebar")},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(g.isFunction)(this.$store.onNoticeClose)?this.$store.onNoticeClose():(this.isPublisher||Object(w.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(w.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()}},watch:{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})},showSidebar:function(){var t=this;this.$nextTick((function(){t.onResize("sidebar")}))},mini: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")}))},defaultToolWindow:"setDefaultToolWindow"},components:{"flash-message":s.default,"bottom-toolbar":n.default,"top-toolbar":o.default,"book-container":a.default,"th-window":c.default,"toc-window":l.default,"note-window":u.default,"search-window":d.default,"context-menu":f.default,"banner-notice":p.default,popup:r.default,sound:h.default}}}).call(this,i(7))},function(t,e,i){"use strict";i.r(e);var n=i(81);e.default=n.default},function(t,e,i){"use strict";i.r(e);i(350),i(351),i(590),i(82),i(591),i(83),i(84),i(592),i(593),i(56),i(352),i(353),i(354),i(594),i(595),i(57),i(58);e.default={props:{wsToggleFullscreen:{type:Function,default:function(){}}},computed:{muteSound:function(){return this.$store.state.workspace.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":""},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},firstGroupVisible:function(){return this.tocVisible||this.thumbnailsVisible||this.notesVisible},divider1Visible:function(){return this.firstGroupVisible&&this.secondGroupVisible},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.state.workspace.sound.enabled&&("flip-book"===this.$store.state.workspace.bookComponent||this.$store.state.workspace.sound.background.url)},secondGroupVisible:function(){return this.shareVisible||this.printVisible||this.downloadsVisible},divider2Visible:function(){return(this.firstGroupVisible||this.secondGroupVisible)&&this.thirdGroupVisible},fullscreenVisible:function(){return this.$store.state.workspace.components.fullscreen},zoomVisible:function(){return this.$store.state.workspace.components.zoom},thirdGroupVisible:function(){return this.fullscreenVisible||this.zoomVisible||this.soundVisible},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},fourthGroupVisible:function(){return this.slideshowVisible},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")})}},methods:{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("workspace/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})},goToLeftmost:function(){this.$store.dispatch(this.isRTLBook?"pager/goToLast":"pager/goToFirst",{target:"bottom-menu"})},goToRightmost:function(){this.$store.dispatch(this.isRTLBook?"pager/goToFirst":"pager/goToLast",{target:"bottom-menu"})}}}},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(87);e.default=n.default},function(t,e,i){"use strict";i.r(e),e.default={name:"FlashMessage",mounted:function(){var t=this;null!==this.$store.getters["workspace/flashMessage"]&&setTimeout((function(){t.$store.dispatch("workspace/setFlashMessage",null)}),this.delay)},computed:{messageData:function(){return this.$store.getters["workspace/flashMessage"]},delay:function(){return this.messageData&&this.messageData.delay?this.messageData.delay:900}}}},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var n=i(90);e.default=n.default},function(t,e,i){"use strict";i.r(e);var n=i(602),s=i(605),o=i(608),a=i(10),r=(i(59),i(100),i(360),i(23)),c=i.n(r);e.default={computed:{title:function(){return Object(a.decodeHtml)(this.$store.state.workspace.title)},titleDirection:function(){return c.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})}}}},function(t,e,i){"use strict";i.r(e);var n=i(92);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},totalPages:function(){var t=this.$store.state.pages.structure.length-1,e=this.$store.getters["pages/pageCaptionByIndex"](t)||"0";return this.$store.state.workspace.customTotalPages||e},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(95);e.default=n.default},function(t,e,i){"use strict";i.r(e);var n=i(10);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.singleMode?this.$store.state.rightPage:this.$store.state.pager.leftPage||this.$store.state.pager.rightPage;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(98);e.default=n.default},function(t,e,i){"use strict";i.r(e),e.default={data:function(){return{showMenu:!1}},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.$store.dispatch("i18n/setCurrentLocale",{locale:t})}},thickness:{get:function(){return this.$store.state.book.thickness},set:function(t){this.$store.dispatch("book/changeProperty",{key:"thickness",value:t})}},hardcover:{get:function(){return this.$store.getters["book/hasHardcover"]},set:function(t){this.$store.dispatch("book/changeProperty",{key:"hardcover",value:t})}},hardcoverColor:{get:function(){return this.$store.state.book.hardcoverColor},set:function(t){this.$store.dispatch("book/changeProperty",{key:"hardcoverColor",value:t})}},numerationOffset:{get:function(){return this.$store.state.book.numerationOffset},set:function(t){var e=parseInt(t,10);isNaN(e)||this.$store.dispatch("book/changeProperty",{key:"numerationOffset",value:e})}},bookSize:{get:function(){return this.$store.state.workspace.bookSize},set:function(t){this.$store.dispatch("workspace/changeProperty",{key:"bookSize",value:t})}},rtl:{get:function(){return this.$store.state.book.rightToLeft},set:function(t){this.$store.dispatch("book/changeProperty",{key:"rightToLeft",value:t})}},flip:{get:function(){return this.$store.state.workspace.components.book.flip},set:function(t){"desktop"===this.layout&&this.$store.dispatch("pager/setSlideMode",{slideMode:!t,target:"debug"}),this.$store.dispatch("workspace/setComponent",{component:"book",value:{flip:t}})}},cropMode:{get:function(){return this.$store.state.book.contentCrop},set:function(t){this.$store.dispatch("book/changeProperty",{key:"contentCrop",value:t})}},pagerMode:{get:function(){var t=this.$store.state.pager.singleMode,e=this.$store.state.pager.slideMode;return t?"single":e?"slide":"spread"},set:function(t){switch(t){case"spread":this.$store.dispatch("pager/setSingleMode",{singleMode:!1,target:"debug"}),this.$store.dispatch("pager/setSlideMode",{slideMode:!1,target:"debug"});break;case"single":this.$store.dispatch("pager/setSingleMode",{singleMode:!0,target:"debug"});break;case"slide":this.$store.dispatch("pager/setSlideMode",{slideMode:!0,target:"debug"})}}},exactMatch:{get:function(){return this.$store.state.search.exactMatch},set:function(t){this.$store.dispatch("search/setExactMatch",{component:"search",value:t})}}},methods:{showDebugMenu:function(){this.showMenu=!0},hideDebugMenu:function(t){null!==t.relatedTarget&&(this.showMenu=!1)}}}},function(t,e,i){},,function(t,e,i){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){"use strict";i.r(e);var n=i(177);e.default=n.default},function(t,e,i){"use strict";i.r(e);var n,s=i(403),o=i(721),a=i(725),r=i(731),c=i(734),l=i(737);i(84),i(83),i(82),i(197),i(740),i(360),i(100);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(179);e.default=n.default},function(t,e,i){"use strict";i.r(e);var n=i(405),s=(i(705),i(706),i(707),i(708),i(709),i(710),i(711),i(712),i(713),i(714),i(715),i(716),i(717),i(718),i(719),i(28)),o=i.n(s),a=i(5);e.default={mixins:[n.default],name:"DownloadWindow",mounted:function(){this.filesArray.length>4&&this.initScroll()},computed:{windowTitle:function(){return this.$i18n.t("SaveWindow.TITLE")},fullDescription:function(){return this.$t("SaveWindow.FULL_PUBLICATION_DESCRIPTION")},fullPdfUrl:function(){return Object(a.default)().translatePath(this.fullPdf.url)},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: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:Object(a.default)().translatePath(i.url),type:"custom",size:i.size,icon:"file-"+t.getIcon(i.url),fileName:i.fileName})})),e}},methods:{emitDownloadEvent:function(t,e){var i={leftPageUrl:this.$store.getters["pages/urlHeaderById"](this.pagerState.leftPage),rightPageUrl:this.$store.getters["pages/urlHeaderById"](this.pagerState.rightPage)};"full"===t?(i.option="full",i.fileName=this.fullPdf.fileName):(i.option=t,i.fileName=this.filesArray[e].fileName,"page"===t&&(i.downloadPage=this.$store.getters["pages/urlHeaderById"](this.filesArray[e].pageId))),this.$root.$emit("download",i)},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(182);e.default=n.default},function(t,e,i){"use strict";i.r(e);var n=i(723),s=i.n(n),o=i(10),a=i(5);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=this.optionsArray.findIndex((function(e){return e.pageId===t.params.pageId}));e&&(this.selected=e),this.printSupported&&this.pdfIsAvailable&&this.print()}},computed:{localization:function(){return{text:this.$t("PrintWindow.INTRODUCTION"),button:this.$t("PrintWindow.PRINT_BUTTON"),cancel:this.$t("PrintWindow.CANCEL_BUTTON"),waiting:this.$t("PrintWindow.WAITING"),commentCurrent:this.$t("PrintWindow.COMMENT_OPEN_CURRENT"),commentCustom:this.$t("PrintWindow.COMMENT_OPEN_CUSTOM"),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")}},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},optionsArray: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:Object(a.default)().translatePath(i.url),type:"page",size:i.size,name:i.fileName,pageId:i.pageId})})),this.fullPdf&&this.selectedPagesVisible&&e.push({title:this.localization.customRange,url:Object(a.default)().translatePath(this.fullPdf.url),type:"full",size:this.fullPdf.size,name:this.fullPdf.fileName}),e},comment:function(){var t,e;return"full"===(null===(t=this.optionsArray)||void 0===t||null===(e=t[this.selected])||void 0===e?void 0:e.type)?this.localization.commentCustom:this.localization.commentCurrent},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.firefox&&!this.userAgentInfo.browser.ie&&!this.userAgentInfo.browser.msedge},print:function(){if(!this.editorMode){var t=this.optionsArray[this.selected].url;if(!this.printSupported)return window.open(t,"_blank"),void this.onPrintDialogClose();var e=this,i={type:"pdf",onPdfOpen:this.onPrintDialogClose,onPrintDialogClose:this.onPrintDialogClose};this.xmlHTTP&&this.xmlHTTP.abort(),this.xmlHTTP=new XMLHttpRequest,this.xmlHTTP.open("GET",t),this.xmlHTTP.responseType="arraybuffer","onprogress"in this.xmlHTTP&&(e.xmlHTTP.onprogress=function(t){t.lengthComputable&&(e.loaded=t.loaded,e.total=t.total)}),this.xmlHTTP.onload=function(){var t=new Blob([this.response],{type:"application/pdf"});i.printable=window.URL.createObjectURL(t),t=null,e.xmlHTTP=null,e.status="printing",s()(i)},this.loaded=0,this.total=0,this.status="downloading",this.xmlHTTP.send(),this.sendApiEvent(this.optionsArray[this.selected])}},sendApiEvent:function(t){var e,i,n=this.$store.getters["pager/state"];n.leftPage&&(e=this.$store.getters["pages/urlHeaderById"](n.leftPage,!0)),i=n.rightPage?this.$store.getters["pages/urlHeaderById"](n.rightPage,!0):e;var s={option:t.type,fileName:t.name,leftPageUrl:e,rightPageUrl:i};t.pageId&&(s.printPage=this.$store.getters["pages/urlHeaderById"](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(185);e.default=n.default},function(t,e,i){"use strict";i.r(e);var n=i(5),s=i(727),o=i(186),a=i.n(o),r=i(728),c=i.n(r),l=i(729);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"](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(189);e.default=n.default},function(t,e,i){"use strict";i.r(e);var n=i(3);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(192);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.workspace.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"))},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(195);e.default=n.default},function(t,e,i){"use strict";i.r(e);var n=i(5),s=i(10);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:{}}},function(t,e,i){},,function(t,e,i){},function(t,e,i){"use strict";i.r(e);var n=i(200);e.default=n.default},function(t,e,i){"use strict";i.r(e);var n=i(61),s=i(747),o=i(417),a=i(15),r=i(24),c=i.n(r),l=i(8),u=i(3),d=i(25),h=new Map,f=new Map;e.default={data:function(){return{thRange:{minPage:null,maxPage:null},thumbsArray:[],thSize:{width:0,height:0},spreadCount:0,pagesCount:0,spreadsOnPage:5,visiblePages:[],wrapperHeight:0,thSchemaArray:[],activePageIndex:null}},mixins:[o.default],beforeMount:function(){this.spreadCount=this.singleMode?this.$store.getters["pages/pagesCount"]:Math.floor(this.$store.getters["pages/pagesCount"]/2)+1,this.pagesCount=Math.ceil(this.spreadCount/this.spreadsOnPage),this.thSize=this.getThumbSizes(this.slideMode)},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.pagesIsVisible(),this.checkScroll(),setTimeout((function(){t.checkActiveSpread(!1,!0)}),50),window.addEventListener("resize",this.checkScroll)},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}},methods:{changeThSchema:function(){for(var t=[],e=1;e<=this.pagesCount;e++){var i=[];if(-1!==this.visiblePages.indexOf(e))for(var n=1,s=this.getSpreadsInPage(e);n<=s;n++)i.push(this.getThsInSpread(e,n));t.push(i)}this.thSchemaArray=t},getSpreadsInPage:function(t){if(!h.has(t)){var e=this.spreadCount-t*this.spreadsOnPage<0?this.spreadsOnPage+(this.spreadCount-t*this.spreadsOnPage):this.spreadsOnPage;h.set(t,e)}return h.get(t)},getPagePosition:function(t){if(!f.has(t)){var e;if(this.slideMode){e=0;for(var i=1,n=this.getSpreadsInPage(t);i<=n;i++)for(var s=this.getThsInSpread(t,i),o=0,a=s.length;o=t&&s<=e||o>=t&&o<=e||s<=t&&o>=e?-1===a&&this.visiblePages.push(i):-1!==a&&this.visiblePages.splice(a,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.spreadsOnPage+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/pageIdByIndex"](a),c=this.$store.getters["pages/pageProp"](r,"wide"),l={id:r,index:a,wide:c,caption:this.$store.getters["pages/pageCaptionById"](r),size:this.slideMode?this.getSlideThumbSizes(r):c?this.thumbDoubleSizes:this.thumbSizes,side:c?"both":a%2==0?"left":"right"};if(c||(l.side=this.isRtl&&"left"===l.side?"right":this.isRtl&&"right"===l.side?"left":l.side),c&&this.singleMode&&(l.caption=this.$store.getters["pages/pageCaptionByIndex"](a)),null!==l.id&&s.push(l),c)break}return s},onScroll:function(){this.pagesIsVisible()},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.pagesIsVisible(),this.$nextTick((function(){t.changeRange()})))},onClick:function(t){for(var e=Object(l.composedPath)(t.target),i=0,n=e.length;i-1){this.$store.dispatch("pager/goToPageByIndex",{pageIndex:e[i].getAttribute("data-index"),target:"thumbnails"}),this.setFocus(this.$el.querySelector(".active"),!0);break}}},checkScroll:function(){var t=this;this.wrapperHeight=this.$refs.sidebar.iScroll.wrapperHeight,this.onScroll(),setTimeout((function(){t.onScrollEnd()}),200)},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=null!=s?s:this.$store.getters["pages/pageIndexById"](this.pagerState.leftPage||this.pagerState.rightPage);if(this.activePageIndex!==o||n){this.activePageIndex=o;var a=Math.ceil((o/2+1)/this.spreadsOnPage);-1===this.visiblePages.indexOf(a)?(this.visiblePages=[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.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(){t.onScrollEnd(),t.$refs.sidebar.iScroll.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 d.default.SPACE:case d.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 d.default.UP:this.moveActiveForItem(!0),e=!0;break;case d.default.DOWN:case d.default.RIGHT:this.moveActiveForItem(),e=!0;break;case d.default.LEFT:this.moveActiveForItem(!0),e=!0;break;case d.default.HOME:this.checkActiveSpread(!1,!0,!0,0),e=!0;break;case d.default.END:this.checkActiveSpread(!1,!0,!0,this.$store.getters["pages/pagesCount"]-1),e=!0}e&&(t.stopPropagation(),t.preventDefault())},sidebarClick:function(){this.setFocus(this.$el.querySelector(".active"),!0)}},watch:{visiblePages:function(t,e){this.changeThSchema()},isRtl:function(t,e){this.changeThSchema()},pagerState:function(t){"pending"===this.flipState&&this.checkActiveSpread(),"thumbnails"===this.$store.state.pager.lastTarget&&this.checkActiveSpread(!0)},thRange:function(t){var e=this;this.$nextTick((function(){e.$store.dispatch("thumbnails/changeRange",t)}))},singleMode:function(){var t=this;this.$nextTick((function(){t.$refs.sidebar.refresh()}))},slideMode:function(){var t=this;f.clear(),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:c.a},beforeDestroy:function(){window.removeEventListener("resize",this.checkScroll),this.$refs.sidebar.iScroll.off("scroll",this.onScroll),this.$refs.sidebar.iScroll.off("scrollEnd",this.onScrollEnd)}}},function(t,e,i){"use strict";i.r(e);var n=i(202);e.default=n.default},function(t,e,i){"use strict";i.r(e);var n,s=i(28),o=i.n(s);i(62),i(197);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())},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;t.$store.state.sidebar.opened||(null===(e=t.previousFocusedElement)||void 0===e||e.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(206);e.default=n.default},function(t,e,i){"use strict";i.r(e);var n=i(414);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:{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}}}},,,,function(t,e,i){},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var n=i(213);e.default=n.default},function(t,e,i){"use strict";i.r(e);var n=i(755),s=i(61),o=i(403),a=i(422),r=i(25);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(215);e.default=n.default},function(t,e,i){"use strict";i.r(e);var n=i(420),s=i(25);i(421),i(757),i(758);e.default={mixins:[n.default],name:"TocItem",computed:{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(219);e.default=n.default},function(t,e,i){"use strict";i.r(e);var n=i(61),s=i(763),o=i(15),a=i(25);i(350);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=this.$store.getters["pager/state"];i!==s.targetPage&&this.$store.dispatch("pager/goToPageById",{id:i,target:"notes"}),i===s.leftPage||i===s.rightPage?this.$store.dispatch("notes/setOpenedId",{id:n}):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=this.$store.getters["pager/state"],n=0,s=!1;n=this.isLocaleRtl&&!this.isBookRtl||!this.isLocaleRtl&&this.isBookRtl?i.rightPage?i.rightPage:i.leftPage:i.leftPage?i.leftPage:i.rightPage,this.isLocaleRtl&&i.rightPage===i.leftPage&&(s=!0),this.$root.$emit("contextMenu:zoomOut"),this.$store.dispatch("notes/addNote",{pageId:n,wideRight: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(){0===this.notesCount&&this.$refs["add-button"].focus(),null===this.activeIndex?this.$store.dispatch("notes/setActiveItemToFirst"):this.$refs["noteItem"+this.activeIndex][0].setFocus(!0)},setFocus:function(){this.$refs["note-wrapper"].focus()},setScrollToActiveElement:function(){var t=this;this.$nextTick((function(){t.$children[0].iScroll.refresh(),t.$children[0].iScroll.scrollToElement(t.$refs["noteItem"+t.activeIndex][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(221);e.default=n.default},function(t,e,i){"use strict";i.r(e);var n=i(415),s=i(23),o=i.n(s);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")},pageText:function(){return this.$i18n.t("NotesToolWindow.PAGE",{0:this.$store.getters["pages/calculatedCaptionById"](this.data.page,"-")})},textDirection:function(){var t=this.ellipseText?o.a.getDirection(this.ellipseText):null;return t&&"ltr"!==t?"rtl":"ltr"},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})},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(225);e.default=n.default},function(t,e,i){"use strict";i.r(e);var n=i(769),s=i(61),o=i(25),a=(i(59),i(136),i(427));e.default={mixins:[a.default],data:function(){return{tempTimeout:null,showClear:!1,resultsPerPages:[],visibleResultsPerPages:[],visibleResultsHeights:[],loadedTo:0,minPageHeight:660,resultsInPage:10}},components:{"search-result-item":n.default,sidebar:s.default},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.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:{numberOfResults:function(){return this.$store.state.search.results.length},subtitle:function(){return 0===this.$store.state.search.query.length||null===this.progress?null: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,r=0;r=i&&c<=s||a>=i&&a<=s||c<=i&&a>=s)&&(this.visibleResultsPerPages[r]=this.resultsPerPages[r],(this.loadedTo1?"..."+this.$i18n.tc("SearchToolWindow.MORE_RESULTS",this.itemData.count-1,{0:this.itemData.count-1}):null},isActive:function(){return this.itemData.isActive},activeIndex:function(){return this.$store.state.search.activeItemIndex}},watch:{activeIndex:function(t){t===this.itemIndex&&this.setFocus()}},methods:{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.wrapper.focus({preventScroll:!0})},onClick:function(){this.setFocus(!0);var t=this.$store.getters["pager/state"],e=this.itemData.pageId.toString();if(t.singleMode&&this.$store.getters["pages/pageProp"](e,"wide")){var i=!1;if(t.singleMode&&this.$store.getters["search/getHighlights"](e)){var n=this.$store.getters["pages/pageProp"](e,"width")/2,s=this.$store.state.book.rightToLeft,o=this.$store.getters["search/getHighlights"](e).data;i=!0;for(var a=0,r=o.length;a=n:o[a].rect[2]0}},beforeMount:function(){"undefined"!=typeof Audio||this.$store.state.workspace.userAgentInfo.browser.publisher||this.$store.dispatch("workspace/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)){this.fadeEffectInterval=null;var i,n=Object(s.isUndefined)(t)?this.muteSound||!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)},muteSound: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(233);e.default=n.default},function(t,e,i){"use strict";i.r(e);var n=i(8),s=i(3),o=i(186),a=i.n(o),r=i(5),c=i(14);i(158),i(369),i(777),i(353),i(354),i(430),i(778),i(82),i(84),i(83),i(352),i(56),i(779),i(780);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/state"]},miniMode:function(){return this.$store.state.workspace.mini}},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!!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 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"](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){"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("div",{staticClass:"main-frame",class:t.mainClasses,attrs:{"aria-hidden":t.showPopup?"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.activeComponent?i("toc-window",{ref:"opened-sidebar-component"}):t._e(),t._v(" "),"thumbnails"===t.activeComponent?i("th-window",{ref:"opened-sidebar-component"}):t._e(),t._v(" "),"notes"===t.activeComponent?i("note-window",{ref:"opened-sidebar-component"}):t._e(),t._v(" "),"search"===t.activeComponent?i("search-window",{ref:"opened-sidebar-component"}):t._e(),t._v(" "),i("sound"),t._v(" "),i("transition",{attrs:{name:"slide-fade"}},[t.showPopup?i("popup"):t._e()],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("div",{staticClass:"bottom-toolbar-frame",attrs:{role:"menubar"}},[i("div",{staticClass:"bottom-toolbar"},[t.tocVisible?i("button",{class:"svg-button icon group1"+t.tocActive,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(" "),t.thumbnailsVisible?i("button",{class:"svg-button icon group1"+t.thActive,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(" "),t.notesVisible?i("button",{class:"svg-button icon group1"+t.notesActive,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(" "),t.divider1Visible?i("div",{staticClass:"divider",attrs:{role:"separator","aria-hidden":"true"}}):t._e(),t._v(" "),t.shareVisible?i("button",{class:"svg-button icon group2"+t.socialActive,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(" "),t.printVisible?i("button",{class:"svg-button icon group2"+t.printActive,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(" "),t.downloadsVisible?i("button",{class:"svg-button icon group2"+t.downloadActive,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(" "),t.divider2Visible?i("div",{staticClass:"divider",attrs:{role:"separator","aria-hidden":"true"}}):t._e(),t._v(" "),t.soundVisible?i("button",{class:"svg-button icon group3"+t.soundActive,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(" "),t.zoomVisible?i("button",{class:"svg-button icon group3"+t.zoomActive,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(" "),t.fullscreenVisible?i("button",{class:"svg-button icon group3"+t.fullscreenActive,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(" "),t.divider3Visible?i("div",{staticClass:"divider",attrs:{role:"separator","aria-hidden":"true"}}):t._e(),t._v(" "),t.slideshowVisible?i("button",{class:"svg-button icon group4"+t.slideshowActive,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()])])},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("transition",{attrs:{name:"fade"}},[i("div",{staticClass:"flash-message",style:t.messageData.style,attrs:{role:"alert","aria-live":"assertive","aria-atomic":"true"}},[t._v("\n "+t._s(t.messageData.text)+"\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("div",{staticClass:"top-toolbar",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"}},[t.copyrightShown?i("copyright-button"):t._e(),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(" "),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(" "),t.hideSearchIcon?t._e():i("button",{directives:[{name:"show",rawName:"v-show",value:!t.searchSidebarOpened,expression:"!searchSidebarOpened"}],staticClass:"search-button icon icon-button",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.totalPages))]):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",attrs:{tabindex:"-1"},on:{click:t.showDebugMenu}},[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"},on:{mouseleave:t.hideDebugMenu,mouseenter:t.showDebugMenu}},[i("ul",[i("li",{staticClass:"caption"},[t._v("Book")]),t._v(" "),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._v(" "),i("option",{attrs:{value:"single"}},[t._v("Single")]),t._v(" "),t.flip?t._e():i("option",{attrs:{value:"slide"}},[t._v("Slide")])])]),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 off.:")]),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",[i("label",{attrs:{for:"input-book-size"}},[t._v("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",{staticClass:"caption"},[t._v("Workspace")]),t._v(" "),i("li",[i("label",{attrs:{for:"input-lang"}},[t._v("Lang:")]),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("li",{staticClass:"caption"},[t._v("Search")]),t._v(" "),i("li",[i("label",{attrs:{for:"input-exact-match"}},[t._v("Exact match:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.exactMatch,expression:"exactMatch"}],attrs:{id:"input-exact-match",type:"checkbox"},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}}})])])])])],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:"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(704),s=i(178),o=(i(720),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:t.fullPdfUrl,download:t.fullPdf.fileName,role:"button",title:t.windowTitle+" "+t.pagesTitle.full,"aria-label":t.windowTitle+" "+t.pagesTitle.full},on:{click:function(e){return t.emitDownloadEvent("full")}}},[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:e.url,download:e.fileName,role:"button",title:t.windowTitle+" "+e.title,"aria-label":t.windowTitle+" "+e.title},on:{click:function(i){return t.emitDownloadEvent(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"},[i("span",{staticClass:"text-block",attrs:{id:"popup-description"}},[t._v(t._s(t.localization.text))]),t._v(" "),i("select",{directives:[{name:"model",rawName:"v-model",value:t.selected,expression:"selected"}],staticClass:"print-options-list",attrs:{role:"listbox",tabindex:"0","data-modal-tabIndex":"first-init",id:"print-opt"},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.selected=e.target.multiple?i:i[0]}}},t._l(t.optionsArray,(function(e,n){return i("option",{attrs:{role:"option",dir:"auto",title:e.title,"aria-label":e.title},domProps:{value:n}},[t._v("\n "+t._s(e.title)+" (‎"+t._s(e.size)+")\n ")])})),0),t._v(" "),t.printSupported?i("span",{staticClass:"text-block print-comment",attrs:{id:"print-comment"}},[t._v(t._s(t.comment))]):t._e()]),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 ")]),t._v(" "),i("button",{staticClass:"idle popup-button print-button",attrs:{tabindex:"0",role:"button","data-modal-tabIndex":"last",disabled:t.editorMode,id:"print-btn","aria-label":t.localization.button,title:t.localization.button},on:{click:t.print}},[t._v("\n "+t._s(t.localization.button)+"\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.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:t.pdfURL,tabindex:"0",download:t.pdfFileName,role:"button",title:t.saveTitle+" "+t.pdfTitle,"aria-label":t.saveTitle+" "+t.pdfTitle}},[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.getPagePosition(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.spreadsOnPage*n+1}},[i("div",{staticClass:"th-spread-wrapper",attrs:{"data-th-focusable":!t.slideMode&&"true",tabindex:!t.slideMode&&-1,"data-th-focusable-index":!t.slideMode&&o+t.spreadsOnPage*n,"data-page-length":e.length,role:!t.slideMode&&"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.slideMode&&-1,"data-th-focusable-index":!!t.slideMode&&t.data.id,"data-th-focusable":!!t.slideMode,role:!!t.slideMode&&"gridcell","data-page-container":"true"}},[i("div",{staticClass:"th-img-element",style:t.itemStyles},[t.isCoverPage||t.slideMode?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(" "),i("span",{staticClass:"th-item-title",attrs:{dir:t.textDirection}},[t._v(t._s(t.data.caption))])])},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.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"},[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.textDirection}},[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("div",{staticStyle:{clear:"both"}})]),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:e.pageId,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.itemData.pageId,attrs:{role:"row","aria-rowindex":t.itemIndex+1}},[i("div",{ref:"wrapper",class:"list-item search-item-p"+(t.itemIndex===t.activeIndex?" active":""),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"},[t._v(t._s(t.title))]),t._v(" "),i("span",{staticClass:"search-item-result"},[i("bdi",[t._l(t.itemData.text,(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(587),s=i(78),o=(i(786),i(1)),a=Object(o.default)(s.default,n.render,n.staticRenderFns,!1,null,null,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(348);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(589),s=i(80),o=(i(596),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(349);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(85),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(598),s=i(86),o=(i(599),i(1)),a=Object(o.default)(s.default,n.render,n.staticRenderFns,!1,null,"83e34f4c",null);a.options.__file="src/components/desktop/flash-message/index.vue",e.default=a.exports},function(t,e,i){"use strict";i.r(e);var n=i(355);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(88),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(601),s=i(89),o=(i(611),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(356);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(603),s=i(91),o=(i(604),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(357);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(93),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(606),s=i(94),o=(i(607),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(358);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(96),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(609),s=i(97),o=(i(610),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(359);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(99),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(101),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(703),s=i(176),o=(i(741),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(402);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(404);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(180),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(722),s=i(181),o=(i(724),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(406);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(183),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(726),s=i(184),o=(i(730),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(407);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}}