(self.webpackChunkFBPublication=self.webpackChunkFBPublication||[]).push([[4],{7005:function(t,e,i){i(4147).register({clipboard:{width:16,height:16,viewBox:"0 0 100 100",data:''}})},6174:function(t,e,i){i(4147).register({close:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},7388:function(t,e,i){i(4147).register({download:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},7558:function(t,e,i){i(4147).register({"edit-note":{width:16,height:16,viewBox:"0 0 24 24",data:''}})},7046:function(t,e,i){i(4147).register({"file-any-print":{width:21,height:26,viewBox:"0 0 21 26",data:''}})},6092:function(t,e,i){i(4147).register({"file-any":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},7195:function(t,e,i){i(4147).register({"file-doc":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},6009:function(t,e,i){i(4147).register({"file-exe":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},8713:function(t,e,i){i(4147).register({"file-gif":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},3178:function(t,e,i){i(4147).register({"file-html":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},3848:function(t,e,i){i(4147).register({"file-jpg":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},3490:function(t,e,i){i(4147).register({"file-mp3":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},9573:function(t,e,i){i(4147).register({"file-mp4":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},254:function(t,e,i){i(4147).register({"file-pdf":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},5782:function(t,e,i){i(4147).register({"file-png":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},3310:function(t,e,i){i(4147).register({"file-ppt":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},1314:function(t,e,i){i(4147).register({"file-psd":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},2307:function(t,e,i){i(4147).register({"file-rar":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},4309:function(t,e,i){i(4147).register({"file-xls":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},3889:function(t,e,i){i(4147).register({"file-zip":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},7533:function(t,e,i){i(4147).register({font:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},8892:function(t,e,i){i(4147).register({"fullscreen-out":{width:16,height:16,viewBox:"0 0 24 24",data:''}})},8379:function(t,e,i){i(4147).register({help:{width:24,height:24,viewBox:"0 0 24 24",data:''}})},1710:function(t,e,i){i(4147).register({info:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},1702:function(t,e,i){i(4147).register({"left-arrow":{width:16,height:16,viewBox:"0 0 16 16",data:''}})},7328:function(t,e,i){i(4147).register({link:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},7492:function(t,e,i){i(4147).register({mute:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},7056:function(t,e,i){i(4147).register({note:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},1953:function(t,e,i){i(4147).register({print:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},6326:function(t,e,i){i(4147).register({"right-arrow":{width:16,height:16,viewBox:"0 0 16 16",data:''}})},7773:function(t,e,i){i(4147).register({"slideshow-pause":{width:16,height:16,viewBox:"0 0 24 24",data:''}})},5288:function(t,e,i){i(4147).register({slideshow:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},9790:function(t,e,i){i(4147).register({social:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},6405:function(t,e,i){i(4147).register({sound:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},7367:function(t,e,i){i(4147).register({"text-link":{width:16,height:16,viewBox:"0 0 100 100",data:''}})},8346:function(t,e,i){i(4147).register({toc:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},6834:function(t,e,i){i(4147).register({zoomin:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},7244:function(t,e,i){i(4147).register({zoomout:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},2322:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return vi}});var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",t._g({class:t.publicationClasses,attrs:{dir:t.dir}},t.embedScript&&!t.embedLightbox?{click:t.onClick}:{click:t.onClick,wheel:t.preventWheel}),[i("div",{staticClass:"inner-container",on:{click:t.onInnerContainerClick,contextmenu:t.onContextMenu}},[i("span",{ref:"first-trap",attrs:{tabindex:"0","aria-hidden":"true"}}),t._v(" "),t.showPreloader?i("preloader"):t._e(),t._v(" "),i("div",{class:["main-frame",t.mainClasses],attrs:{"aria-hidden":t.isPopupOpened?"true":"false"},on:{wheel:t.onWheel}},[t.noticeShown?i("banner-notice",{ref:"noticeBanner",on:{close:t.noticeClose}}):t._e(),t._v(" "),t.topBarEnabled?i("top-toolbar"):t._e(),t._v(" "),t.bottomBarEnabled?i("bottom-toolbar",{attrs:{"ws-toggle-fullscreen":t.toggleFullscreen}}):t._e(),t._v(" "),i("book-container",{ref:"bookContainer",attrs:{size:t.containerSize,"ws-toggle-fullscreen":t.toggleFullscreen}}),t._v(" "),t.flashMessageVisibility?i("flash-message"):t._e()],1),t._v(" "),i("context-menu",{ref:"contextMenu",attrs:{"toggle-fullscreen":t.toggleFullscreen}}),t._v(" "),"toc"===t.activeSidebarComponent?i("toc-window",{ref:"opened-sidebar-component",attrs:{id:"toc-sidebar"}}):t._e(),t._v(" "),"thumbnails"===t.activeSidebarComponent?i("th-window",{ref:"opened-sidebar-component",attrs:{id:"thumbnails-sidebar"}}):t._e(),t._v(" "),"notes"===t.activeSidebarComponent?i("note-window",{ref:"opened-sidebar-component",attrs:{id:"notes-sidebar"}}):t._e(),t._v(" "),"search"===t.activeSidebarComponent?i("search-window",{ref:"opened-sidebar-component",attrs:{id:"search-sidebar"}}):t._e(),t._v(" "),i("sound"),t._v(" "),i("transition",{attrs:{name:"slide-fade"}},[t.isPopupOpened?i("popup"):t._e()],1),t._v(" "),i("span",{ref:"last-trap",attrs:{tabindex:"0","aria-hidden":"true"}})],1),t._v(" "),i("lightbox")],1)},o=[],n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"bottom-toolbar-frame",attrs:{role:"menubar"}},[i("div",{staticClass:"bottom-toolbar",class:t.toolbarClass,style:t.toolbarStyle},[i("transition",{attrs:{name:t.areTransitionsAllowed?"highlight":null},on:{"before-enter":t.beforeIconAdd,"after-enter":t.afterIconAdd,"before-leave":t.beforeIconRemove,"after-leave":t.afterIconRemove}},[t.toc.show?i("button",{class:"svg-button icon group1"+t.tocActive,style:t.iconStyle,attrs:{role:"menuitem","aria-controls":"toc-sidebar","aria-haspopup":"tree","aria-expanded":t.tocActive?"true":"false",title:t.$t("BottomMenu.TOC_TIP"),"aria-label":t.$t("BottomMenu.TOC_TIP"),tabindex:"0"},on:{click:function(e){return t.openSidebar("toc")},mousedown:function(t){t.preventDefault()}}},[i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"toc"}})],1):t._e()]),t._v(" "),i("transition",{attrs:{name:t.areTransitionsAllowed?"highlight":null},on:{"before-enter":t.beforeIconAdd,"after-enter":t.afterIconAdd,"before-leave":t.beforeIconRemove,"after-leave":t.afterIconRemove}},[t.thumbnails.show?i("button",{class:"svg-button icon group1"+t.thActive,style:t.iconStyle,attrs:{role:"menuitem","aria-controls":"thumbnails-sidebar","aria-haspopup":"grid","aria-expanded":t.thActive?"true":"false",title:t.$t("BottomMenu.THUMBNAILS_TIP"),"aria-label":t.$t("BottomMenu.THUMBNAILS_TIP"),tabindex:"0"},on:{click:function(e){return t.openSidebar("thumbnails")},mousedown:function(t){t.preventDefault()}}},[i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"thumbnails"}})],1):t._e()]),t._v(" "),i("transition",{attrs:{name:t.areTransitionsAllowed?"highlight":null},on:{"before-enter":t.beforeIconAdd,"after-enter":t.afterIconAdd,"before-leave":t.beforeIconRemove,"after-leave":t.afterIconRemove}},[t.notes.show?i("button",{class:"svg-button icon group1"+t.notesActive,style:t.iconStyle,attrs:{role:"menuitem","aria-controls":"notes-sidebar","aria-haspopup":"grid","aria-expanded":t.notesActive?"true":"false",title:t.$t("BottomMenu.NOTES_BUTTON_TIP"),"aria-label":t.$t("BottomMenu.NOTES_BUTTON_TIP"),tabindex:"0"},on:{click:function(e){return t.openSidebar("notes")},mousedown:function(t){t.preventDefault()}}},[i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"note"}})],1):t._e()]),t._v(" "),i("transition",{attrs:{name:"fade"}},[t.divider1Visible?i("div",{staticClass:"divider",style:t.dividerStyle,attrs:{role:"separator","aria-hidden":"true"}}):t._e()]),t._v(" "),i("transition",{attrs:{name:t.areTransitionsAllowed?"highlight":null},on:{"before-enter":t.beforeIconAdd,"after-enter":t.afterIconAdd,"before-leave":t.beforeIconRemove,"after-leave":t.afterIconRemove}},[t.share.show?i("button",{class:"svg-button icon group2"+t.socialActive,style:t.iconStyle,attrs:{role:"menuitem","aria-haspopup":"dialog","aria-expanded":"false",title:t.$t("BottomMenu.PERMALINK_TIP"),"aria-label":t.$t("BottomMenu.PERMALINK_TIP"),tabindex:"0"},on:{click:function(e){return t.openPopup("social")},mousedown:function(t){t.preventDefault()}}},[i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"social"}})],1):t._e()]),t._v(" "),i("transition",{attrs:{name:t.areTransitionsAllowed?"highlight":null},on:{"before-enter":t.beforeIconAdd,"after-enter":t.afterIconAdd,"before-leave":t.beforeIconRemove,"after-leave":t.afterIconRemove}},[t.print.show?i("button",{class:"svg-button icon group2"+t.printActive,style:t.iconStyle,attrs:{role:"menuitem","aria-haspopup":"dialog","aria-expanded":"false",title:t.$t("BottomMenu.PRINT_TIP"),"aria-label":t.$t("BottomMenu.PRINT_TIP"),tabindex:"0"},on:{click:function(e){return t.openPopup("print")},mousedown:function(t){t.preventDefault()}}},[i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"print"}})],1):t._e()]),t._v(" "),i("transition",{attrs:{name:t.areTransitionsAllowed?"highlight":null},on:{"before-enter":t.beforeIconAdd,"after-enter":t.afterIconAdd,"before-leave":t.beforeIconRemove,"after-leave":t.afterIconRemove}},[t.downloads.show?i("button",{class:"svg-button icon group2"+t.downloadActive,style:t.iconStyle,attrs:{role:"menuitem","aria-haspopup":"dialog","aria-expanded":"false",title:t.$t("BottomMenu.SAVE_TIP"),"aria-label":t.$t("BottomMenu.SAVE_TIP"),tabindex:"0"},on:{click:function(e){return t.openPopup("download")},mousedown:function(t){t.preventDefault()}}},[i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"download"}})],1):t._e()]),t._v(" "),i("transition",{attrs:{name:"fade"}},[t.divider2Visible?i("div",{staticClass:"divider",style:t.dividerStyle,attrs:{role:"separator","aria-hidden":"true"}}):t._e()]),t._v(" "),i("transition",{attrs:{name:t.areTransitionsAllowed?"highlight":null},on:{"before-enter":t.beforeIconAdd,"after-enter":t.afterIconAdd,"before-leave":t.beforeIconRemove,"after-leave":t.afterIconRemove}},[t.sound.show?i("button",{class:"svg-button icon group3"+t.soundActive,style:t.iconStyle,attrs:{role:"menuitem",id:"sound",title:t.$t("BottomMenu.SOUND_BUTTON_TIP"),"aria-label":t.$t("BottomMenu.SOUND_BUTTON_TIP"),tabindex:"0"},on:{click:t.toggleMuteSound,mousedown:function(t){t.preventDefault()}}},[" toggled"===t.soundActive?i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"mute"}}):i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"sound"}})],1):t._e()]),t._v(" "),i("transition",{attrs:{name:t.areTransitionsAllowed?"highlight":null},on:{"before-enter":t.beforeIconAdd,"after-enter":t.afterIconAdd,"before-leave":t.beforeIconRemove,"after-leave":t.afterIconRemove}},[t.zoom.show?i("button",{class:"svg-button icon group3"+t.zoomActive,style:t.iconStyle,attrs:{role:"menuitem",title:t.$t(t.zoomActive?"BottomMenu.UNZOOM_BUTTON_TIP":"BottomMenu.ZOOM_BUTTON_TIP"),"aria-label":t.$t(t.zoomActive?"BottomMenu.UNZOOM_BUTTON_TIP":"BottomMenu.ZOOM_BUTTON_TIP"),tabindex:"0"},on:{click:t.toggleZoomMode,mousedown:function(t){t.preventDefault()}}},[" toggled"===t.zoomActive?i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"zoomout"}}):i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"zoomin"}})],1):t._e()]),t._v(" "),i("transition",{attrs:{name:t.areTransitionsAllowed?"highlight":null},on:{"before-enter":t.beforeIconAdd,"after-enter":t.afterIconAdd,"before-leave":t.beforeIconRemove,"after-leave":t.afterIconRemove}},[t.fullscreen.show?i("button",{class:"svg-button icon group3"+t.fullscreenActive,style:t.iconStyle,attrs:{role:"menuitem",title:t.$t(t.fullscreenActive?"BottomMenu.NORMAL_BUTTON_TIP":"BottomMenu.FULLSCREEN_BUTTON_TIP"),"aria-label":t.$t(t.fullscreenActive?"BottomMenu.NORMAL_BUTTON_TIP":"BottomMenu.FULLSCREEN_BUTTON_TIP"),tabindex:"0"},on:{click:t.toggleFullScreen,mousedown:function(t){t.preventDefault()}}},[" toggled"===t.fullscreenActive?i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"fullscreen-out"}}):i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"fullscreen"}})],1):t._e()]),t._v(" "),i("transition",{attrs:{name:"fade"}},[t.divider3Visible?i("div",{staticClass:"divider",style:t.dividerStyle,attrs:{role:"separator","aria-hidden":"true"}}):t._e()]),t._v(" "),i("transition",{attrs:{name:t.areTransitionsAllowed?"highlight":null},on:{"before-enter":t.beforeIconAdd,"after-enter":t.afterIconAdd,"before-leave":t.beforeIconRemove,"after-leave":t.afterIconRemove}},[t.slideshowVisible?i("button",{class:"svg-button icon group4"+t.slideshowActive,style:t.iconStyle,attrs:{role:"menuitem",title:t.$t(t.slideshowActive?"NavigationPanel.PAUSE_PAGE_TIP":"NavigationPanel.PLAY_PAGE_TIP"),"aria-label":t.$t(t.slideshowActive?"NavigationPanel.PAUSE_PAGE_TIP":"NavigationPanel.PLAY_PAGE_TIP"),tabindex:"0"},on:{click:t.toggleSlideShow,mousedown:function(t){t.preventDefault()}}},[" toggled"===t.slideshowActive?i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"slideshow-pause"}}):i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"slideshow"}})],1):t._e()])],1)])},a=[],r=(i(7056),i(5606),i(8346),i(9790),i(7533),i(1953),i(7388),i(6405),i(7492),i(5903),i(8892),i(6834),i(7244),i(7773),i(5288),i(464),i(925),i(2567)),l=i(90),c=600,h=100,u=1e3,d=10*28+3*29+22,p={props:{wsToggleFullscreen:{type:Function,default:function(){}}},data:function(){return{toc:{show:null,timeoutId:null},thumbnails:{show:null,timeoutId:null},notes:{show:null,timeoutId:null},share:{show:null,timeoutId:null},print:{show:null,timeoutId:null},downloads:{show:null,timeoutId:null},sound:{show:null,timeoutId:null},zoom:{show:null,timeoutId:null},fullscreen:{show:null,timeoutId:null},areTransitionsAllowed:!1,showPop:null,showBackground:null,timeoutId:null,scale:2,translateY:null}},computed:{attractOnControlsSet:function(){return this.$store.state.workspace.attractOnControlsSet},tocVisible:function(){return this.$store.state.toc&&this.$store.state.toc.enabled},thumbnailsVisible:function(){return this.$store.state.workspace.components.thumbnails},notesVisible:function(){return this.$store.state.workspace.components.notes},shareVisible:function(){return this.$store.state.workspace.components.share},printVisible:function(){return this.$store.state.workspace.components.print},downloadsVisible:function(){return this.$store.state.downloads&&this.$store.state.downloads.enabled},soundVisible:function(){return this.$store.getters["workspace/soundVisible"]},zoomVisible:function(){return this.$store.state.workspace.components.zoom},fullscreenVisible:function(){return this.$store.state.workspace.components.fullscreen},toolbarStyle:function(){return{"background-color":this.showBackground?this.backgroundColor:null,transform:this.showPop?"scale(".concat(this.scale,") translateY(").concat(this.translateY,"px)"):null}},toolbarClass:function(){return{"blink-light":this.blinkLight,"toolbar-animation-pop":this.showPop}},dividerStyle:function(){return{"border-color":this.showBackground?this.iconOverrideColor:null}},iconStyle:function(){return{fill:this.showBackground?this.iconOverrideColor:null}},opaqueBottom:function(){return-1!==this.$store.state.skin.styles.classes.indexOf("opaqueBottom")},backgroundColor:function(){var t=this.opaqueBottom?"main-color":"second-color";return this.$store.state.skin.styles[t]},iconOverrideColor:function(){var t=this.opaqueBottom?"main-icon-color":"second-icon-color";return this.$store.state.skin.styles[t]},blinkLight:function(){return this.showPop||this.opaqueBottom?(0,l.R)((0,l.l)(this.backgroundColor))<.5:(0,l.R)((0,l.l)(this.$store.state.skin.styles["bottom-center-background-color"]))<.5},muteSound:function(){return this.$store.state.sound.muteSound},soundActive:function(){return this.muteSound?" toggled":""},fullscreenActive:function(){return this.$store.state.workspace.fullScreenMode?" toggled":""},slideshowActive:function(){return this.$store.state.workspace.components.slideshow&&this.$store.state.workspace.components.slideshow.active?" toggled":""},isZoomed:function(){return this.$store.state.pages.size.zoomFactor>1},isRTLBook:function(){return this.$store.state.book.rightToLeft},isRTLLocale:function(){return this.$store.getters["i18n/isLocaleRtl"]},isZoomPanelVisible:function(){return this.$store.state.workspace.zoomPanel},zoomActive:function(){return this.isZoomPanelVisible||this.isZoomed?" toggled":""},thActive:function(){return"thumbnails"===this.$store.state.sidebar.opened?" toggled":""},notesActive:function(){return"notes"===this.$store.state.sidebar.opened?" toggled":""},tocActive:function(){return"toc"===this.$store.state.sidebar.opened?" toggled":""},socialActive:function(){return"social"===this.$store.state.popup.opened?" toggled":""},printActive:function(){return"print"===this.$store.state.popup.opened?" toggled":""},downloadActive:function(){return"download"===this.$store.state.popup.opened?" toggled":""},firstGroupVisible:function(){return this.toc.show||this.thumbnails.show||this.notes.show},secondGroupVisible:function(){return this.share.show||this.print.show||this.downloads.show},thirdGroupVisible:function(){return this.fullscreen.show||this.zoom.show||this.sound.show},fourthGroupVisible:function(){return this.slideshowVisible},divider1Visible:function(){return!this.narrowMode&&this.firstGroupVisible&&this.secondGroupVisible},divider2Visible:function(){return!this.narrowMode&&(this.firstGroupVisible||this.secondGroupVisible)&&this.thirdGroupVisible},divider3Visible:function(){return!this.narrowMode&&(this.firstGroupVisible||this.secondGroupVisible||this.thirdGroupVisible)&&this.fourthGroupVisible},slideshowVisible:function(){return this.$store.state.workspace.components.slideshow&&this.$store.state.workspace.components.slideshow.enabled},workspaceSize:function(){return this.$store.getters["workspace/size"]},sidebarOpened:function(){return this.$store.state.sidebar.opened},narrowMode:function(){var t=this.sidebarOpened?this.$store.state.sidebar.width:0;return this.workspaceSize.width<400+t}},watch:{muteSound:function(t){this.$store.dispatch("workspace/setFlashMessage",{text:t?this.$t("AlertMessage.SOUND_DISABLED"):this.$t("AlertMessage.SOUND_ENABLED")})},tocVisible:{immediate:!1,handler:function(t,e){return void 0===e?null:this.toggle("toc",t)}},thumbnailsVisible:{immediate:!1,handler:function(t,e){return void 0===e?null:this.toggle("thumbnails",t)}},notesVisible:{immediate:!1,handler:function(t,e){return void 0===e?null:this.toggle("notes",t)}},shareVisible:{immediate:!1,handler:function(t,e){return void 0===e?null:this.toggle("share",t)}},printVisible:{immediate:!1,handler:function(t,e){return void 0===e?null:this.toggle("print",t)}},downloadsVisible:{immediate:!1,handler:function(t,e){return void 0===e?null:this.toggle("downloads",t)}},soundVisible:{immediate:!1,handler:function(t,e){if(this.$store.state.workspace.bookComponent&&"string"!=typeof e)return void 0===e?null:this.toggle("sound",t)}},zoomVisible:{immediate:!1,handler:function(t,e){return void 0===e?null:this.toggle("zoom",t)}},fullscreenVisible:{immediate:!1,handler:function(t,e){return void 0===e?null:this.toggle("fullscreen",t)}}},mounted:function(){var t=this;this.toc.show=this.tocVisible,this.thumbnails.show=this.thumbnailsVisible,this.notes.show=this.notesVisible,this.share.show=this.shareVisible,this.print.show=this.printVisible,this.downloads.show=this.downloadsVisible,this.sound.show=this.soundVisible,this.zoom.show=this.zoomVisible,this.fullscreen.show=this.fullscreenVisible,this.$nextTick((function(){t.areTransitionsAllowed=!0})),setTimeout(this.onResize,300),window.addEventListener("resize",this.onResize)},methods:{beforeIconAdd:function(t){r.Z.addClass(t.firstChild,"svg-before-enter")},afterIconAdd:function(t){r.Z.removeClass(t.firstChild,"svg-before-enter")},beforeIconRemove:function(t){r.Z.addClass(t.firstChild,"svg-before-leave")},afterIconRemove:function(t){r.Z.removeClass(t.firstChild,"svg-before-leave")},toggle:function(t,e){this.attractOnControlsSet?e?this.addWithPop(t):this.removeWithPop(t):e?this.add(t):this.remove(t)},addWithPop:function(t){var e=this;clearTimeout(this[t].timeoutId),clearTimeout(this.timeoutId),this.showPop=!0,this.showBackground=!0,this[t].timeoutId=setTimeout((function(){e[t].show=!0}),c),this.timeoutId=setTimeout((function(){e.showPop=!1,e.timeoutId=setTimeout((function(){e.showBackground=!1}),c-h)}),c+u+900)},add:function(t){clearTimeout(this[t].timeoutId),this[t].show=!0},removeWithPop:function(t){var e=this;clearTimeout(this[t].timeoutId),clearTimeout(this.timeoutId),this.showPop=!0,this.showBackground=!0;var i=c+300;this[t].timeoutId=setTimeout((function(){e[t].show=!1}),i),this.timeoutId=setTimeout((function(){e.showPop=!1,e.timeoutId=setTimeout((function(){e.showBackground=!1}),c-h)}),i+u+300)},remove:function(t){clearTimeout(this[t].timeoutId),this[t].show=!1},toggleZoomMode:function(){this.isZoomed?this.$root.$emit("bottomMenu:zoomOut",!1,"bottom-toolbar-zoom"):this.isZoomed||this.isZoomPanelVisible?this.$store.dispatch("workspace/setZoomPanel",!1):this.$root.$emit("bottomMenu:zoomIn","bottom-toolbar-zoom")},toggleFullScreen:function(){this.wsToggleFullscreen()},toggleMuteSound:function(){this.$store.dispatch("sound/toggleMuteSound")},openSidebar:function(t,e){null!==this.$store.state.popup.opened&&this.$store.dispatch("popup/closePopup"),this.$store.state.sidebar.opened!==t?this.$store.dispatch("sidebar/openSidebar",{component:t,params:e}):this.$store.dispatch("sidebar/closeSidebar")},openPopup:function(t,e){this.$store.dispatch("popup/openPopup",{component:t,params:e})},toggleSlideShow:function(){this.$store.dispatch("workspace/setSlideshowActive",{value:!this.slideshowActive})},onResize:function(){this.scale=this.$store.state.workspace.size.width/d*.95,this.scale=this.scale>2?2:this.scale,this.translateY=(this.$el.clientHeight-this.$store.state.workspace.size.height)/2/this.scale}},beforeDestroy:function(){window.removeEventListener("resize",this.onResize)}},f=p,g=i(1900),v=(0,g.Z)(f,n,a,!1,null,"201fc451",null).exports,m=i(5343),b=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"top-toolbar",class:t.topBarClasses,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(" "),i("transition",{attrs:{name:"fade"}},[t.showAccessibilityPDF?i("span",{staticClass:"divider divider1",attrs:{role:"separator","aria-hidden":"true"}}):t._e()]),t._v(" "),i("transition",{attrs:{name:"highlight"},on:{"before-enter":t.beforeIconAdd,"after-enter":t.afterIconAdd,"before-leave":t.beforeIconRemove,"after-leave":t.afterIconRemove}},[t.showAccessibilityPDF?i("button",{ref:"accessibilityBtn",staticClass:"accessibility-button icon icon-button",attrs:{"aria-haspopup":"dialog","aria-expanded":"false",title:t.$t("Accessibility.WINDOW_TITLE"),"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.displayPages?i("span",{staticClass:"divider divider2",attrs:{role:"separator","aria-hidden":"true"}}):t._e(),t._v(" "),t.displayPages?i("pager",{ref:"pager"}):t._e(),t._v(" "),i("div",{staticClass:"space"}),t._v(" "),i("transition",{attrs:{name:t.veryCompactMode?null:"scale"}},[t.copyrightShown?i("copyright-button",{directives:[{name:"show",rawName:"v-show",value:!t.veryCompactMode,expression:"!veryCompactMode"}]}):t._e()],1),t._v(" "),t.showDebug?i("debug-controls",{attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),t.showHelpIcon?i("button",{staticClass:"help-button icon icon-button",attrs:{"aria-haspopup":"dialog","aria-expanded":"false",title:t.$t("HelpWindow.TITLE"),"aria-label":t.$t("HelpWindow.TITLE"),tabindex:"0"},on:{click:function(e){return t.openPopup("help")},mousedown:function(t){t.preventDefault()}}},[i("svgicon",{attrs:{focusable:"false",name:"help"}})],1):t._e(),t._v(" "),i("transition",{attrs:{name:"highlight"},on:{"before-enter":t.beforeIconAdd,"after-enter":t.afterIconAdd,"before-leave":t.beforeIconRemove,"after-leave":t.afterIconRemove}},[t.hideSearchIcon?t._e():i("button",{class:["search-button icon icon-button",{hidden:t.searchSidebarOpened}],attrs:{"aria-controls":"search-sidebar","aria-haspopup":"grid","aria-expanded":"false",title:t.$t("SearchToolWindow.TITLE"),"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)},w=[],k=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("span",{staticClass:"pager"},[i("span",{staticClass:"pager-label",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","aria-label":t.pagerLabel},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(" "),i("span",{staticClass:"status",attrs:{role:"status",tabindex:"-1"}},[t._v(t._s(t.status))]),t._v(" "),t.totalPagesVisible?i("span",{attrs:{role:"separator","aria-hidden":"true"}},[t._v("/")]):t._e(),t._v(" "),t.totalPagesVisible?i("span",{staticClass:"pager-total",attrs:{"aria-hidden":"true"}},[t._v(t._s(t.totalForDisplay))]):t._e()])},_=[],y={computed:{totalPagesVisible:function(){return this.$store.state.workspace.components.paginator&&!1!==this.$store.state.workspace.components.paginator.totalPagesVisible},totalForDisplay:function(){return this.$store.getters["pager/totalForDisplay"]},stateForDisplay:function(){return this.$store.getters["pager/stateForDisplay"]},size:function(){return Math.max(5,this.stateForDisplay.length)},status:function(){return this.$store.state.workspace.preloader?null:this.$store.getters["lightbox/isShown"]?this.$t("Lightbox.LIGHTBOX_STATUS",{0:this.$store.getters["lightbox/currentItemNumber"],1:this.$store.getters["lightbox/itemsCount"]}):this.$t("Other.STATUS",{0:this.stateForDisplay,1:this.totalForDisplay})},pagerLabel:function(){return this.$t("TopMenu.PAGER_LABEL")}},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},setFocus:function(){this.$refs.input.focus()}}},$=(0,g.Z)(y,k,_,!1,null,"82ffb7c6",null).exports,C=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,dir:t.labelDirection,id:"copyright-link",href:t.url,role:"menuitem","aria-label":t.label,tabindex:"0"},on:{click:t.onClick}},[t._v(t._s(t.label))])])},x=[],T=i(8531),I=i(6382),P=i.n(I),S={computed:{label:function(){return(0,T.m9)(this.$store.state.workspace.components.copyright.label)},labelDirection:function(){return"ltr"===P().getDirection(this.label)?"ltr":"rtl"},url:function(){return this.$store.state.workspace.components.copyright.url||null},target:function(){return this.$store.state.workspace.components.copyright.target||"_blank"}},methods:{onClick:function(){var t=this.$store.state.pager.currentPage;this.$root.$emit("link",{type:"external",source:"copyright",url:this.url,target:this.target,pageId:t})}}},A=(0,g.Z)(S,C,x,!1,null,"0dcd435e",null).exports,E=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"debug-controls",attrs:{"aria-hidden":"true"}},[i("button",{staticClass:"debug icon icon-button",class:{toggled:t.showMenu},attrs:{tabindex:"-1"},on:{click:t.toggleDebugMenu}},[t._v("Debug")]),t._v(" "),i("transition",{attrs:{name:"debug-fade"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.showMenu,expression:"showMenu"}],staticClass:"wrapper",attrs:{dir:"ltr"}},[i("ul",[i("li",{staticClass:"toggle",class:{toggled:t.sections.book}},[i("div",{staticClass:"caption",on:{click:function(e){return t.toggleSection("book")}}},[i("span",{staticClass:"section-icon"}),t._v("Book")]),t._v(" "),i("ul",[i("li",[i("label",{attrs:{for:"input-flip"}},[t._v("Flip:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.flip,expression:"flip"}],attrs:{id:"input-flip",type:"checkbox"},domProps:{checked:Array.isArray(t.flip)?t._i(t.flip,null)>-1:t.flip},on:{change:function(e){var i=t.flip,s=e.target,o=!!s.checked;if(Array.isArray(i)){var n=null,a=t._i(i,n);s.checked?a<0&&(t.flip=i.concat([n])):a>-1&&(t.flip=i.slice(0,a).concat(i.slice(a+1)))}else t.flip=o}}})]),t._v(" "),i("li",[i("label",{attrs:{for:"input-pager"}},[t._v("Pager mode:")]),t._v(" "),i("select",{directives:[{name:"model",rawName:"v-model",value:t.pagerMode,expression:"pagerMode"}],attrs:{id:"input-pager"},on:{change:function(e){var i=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.pagerMode=e.target.multiple?i:i[0]}}},[i("option",{attrs:{value:"spread"}},[t._v("Spread "+t._s(t.flip?"":"*"))]),t._v(" "),i("option",{attrs:{value:"single"}},[t._v("Single "+t._s(t.flip?"":"*"))]),t._v(" "),t.flip?i("option",{attrs:{value:"auto"}},[t._v("Auto")]):t._e(),t._v(" "),t.flip?t._e():i("option",{attrs:{value:"slide"}},[t._v("Slide")])])]),t._v(" "),!t.flip||"single"!==t.pagerMode&&"auto"!==t.pagerMode?t._e():i("li",[i("label",{attrs:{for:"input-translucent-reverse-side"}},[t._v("Translucent reverse side:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.isTranslucentReverseSide,expression:"isTranslucentReverseSide"}],attrs:{id:"input-translucent-reverse-side",type:"checkbox"},domProps:{checked:Array.isArray(t.isTranslucentReverseSide)?t._i(t.isTranslucentReverseSide,null)>-1:t.isTranslucentReverseSide},on:{change:function(e){var i=t.isTranslucentReverseSide,s=e.target,o=!!s.checked;if(Array.isArray(i)){var n=null,a=t._i(i,n);s.checked?a<0&&(t.isTranslucentReverseSide=i.concat([n])):a>-1&&(t.isTranslucentReverseSide=i.slice(0,a).concat(i.slice(a+1)))}else t.isTranslucentReverseSide=o}}})]),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,s=e.target,o=!!s.checked;if(Array.isArray(i)){var n=null,a=t._i(i,n);s.checked?a<0&&(t.cropMode=i.concat([n])):a>-1&&(t.cropMode=i.slice(0,a).concat(i.slice(a+1)))}else t.cropMode=o}}})]),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,s=e.target,o=!!s.checked;if(Array.isArray(i)){var n=null,a=t._i(i,n);s.checked?a<0&&(t.thickness=i.concat([n])):a>-1&&(t.thickness=i.slice(0,a).concat(i.slice(a+1)))}else t.thickness=o}}})]):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,s=e.target,o=!!s.checked;if(Array.isArray(i)){var n=null,a=t._i(i,n);s.checked?a<0&&(t.hardcover=i.concat([n])):a>-1&&(t.hardcover=i.slice(0,a).concat(i.slice(a+1)))}else t.hardcover=o}}}),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,s=e.target,o=!!s.checked;if(Array.isArray(i)){var n=null,a=t._i(i,n);s.checked?a<0&&(t.rtl=i.concat([n])):a>-1&&(t.rtl=i.slice(0,a).concat(i.slice(a+1)))}else t.rtl=o}}})]),t._v(" "),i("li",[i("label",{attrs:{for:"input-num-offset"}},[t._v("Num offset:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.numerationOffset,expression:"numerationOffset"}],staticClass:"num-offset",attrs:{id:"input-num-offset",type:"number",placeholder:"0",size:"3",step:"1"},domProps:{value:t.numerationOffset},on:{input:function(e){e.target.composing||(t.numerationOffset=e.target.value)}}})])])]),t._v(" "),i("li",{staticClass:"toggle",class:{toggled:t.sections.workspace}},[i("div",{staticClass:"caption",on:{click:function(e){return t.toggleSection("workspace")}}},[i("span",{staticClass:"section-icon"}),t._v("Workspace")]),t._v(" "),i("ul",[i("li",[i("label",{attrs:{for:"input-lang"}},[t._v("Language:")]),t._v(" "),i("select",{directives:[{name:"model",rawName:"v-model",value:t.currentLocale,expression:"currentLocale"}],attrs:{id:"input-lang"},on:{change:function(e){var i=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.currentLocale=e.target.multiple?i:i[0]}}},t._l(t.availableLocales,(function(e){return i("option",{domProps:{value:e}},[t._v("\n "+t._s(e)+"\n ")])})),0),t._v(" "),i("button",{staticClass:"next-locale",attrs:{title:"Alt + Ctrl + ."},on:{click:t.nextLocale}},[t._v("➡️")])]),t._v(" "),i("li",[i("label",{attrs:{for:"input-book-size"}},[t._v("Book Size:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.bookSize,expression:"bookSize"}],staticClass:"book-size",attrs:{id:"input-book-size",type:"number",placeholder:"95",size:"3",step:"1"},domProps:{value:t.bookSize},on:{input:function(e){e.target.composing||(t.bookSize=e.target.value)}}})]),t._v(" "),i("li",[i("label",{attrs:{for:"input-select-text"}},[t._v("Text Selection:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.selectText,expression:"selectText"}],attrs:{id:"input-select-text",type:"checkbox"},domProps:{checked:Array.isArray(t.selectText)?t._i(t.selectText,null)>-1:t.selectText},on:{change:function(e){var i=t.selectText,s=e.target,o=!!s.checked;if(Array.isArray(i)){var n=null,a=t._i(i,n);s.checked?a<0&&(t.selectText=i.concat([n])):a>-1&&(t.selectText=i.slice(0,a).concat(i.slice(a+1)))}else t.selectText=o}}})]),t._v(" "),i("li",[i("label",{attrs:{for:"input-search"}},[t._v("Search:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.search,expression:"search"}],attrs:{id:"input-search",type:"checkbox"},domProps:{checked:Array.isArray(t.search)?t._i(t.search,null)>-1:t.search},on:{change:function(e){var i=t.search,s=e.target,o=!!s.checked;if(Array.isArray(i)){var n=null,a=t._i(i,n);s.checked?a<0&&(t.search=i.concat([n])):a>-1&&(t.search=i.slice(0,a).concat(i.slice(a+1)))}else t.search=o}}})]),t._v(" "),i("li",[i("label",{attrs:{for:"input-accessibility"}},[t._v("Accessibility:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.accessibility,expression:"accessibility"}],attrs:{id:"input-accessibility",type:"checkbox"},domProps:{checked:Array.isArray(t.accessibility)?t._i(t.accessibility,null)>-1:t.accessibility},on:{change:function(e){var i=t.accessibility,s=e.target,o=!!s.checked;if(Array.isArray(i)){var n=null,a=t._i(i,n);s.checked?a<0&&(t.accessibility=i.concat([n])):a>-1&&(t.accessibility=i.slice(0,a).concat(i.slice(a+1)))}else t.accessibility=o}}})])])]),t._v(" "),i("li",{staticClass:"toggle",class:{toggled:t.sections.components}},[i("div",{staticClass:"caption",on:{click:function(e){return t.toggleSection("components")}}},[i("span",{staticClass:"section-icon"}),t._v("Bottom Menu")]),t._v(" "),i("ul",[i("li",[i("label",{attrs:{for:"input-attract"}},[t._v("Raise bar:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.attract,expression:"attract"}],attrs:{id:"input-attract",type:"checkbox"},domProps:{checked:Array.isArray(t.attract)?t._i(t.attract,null)>-1:t.attract},on:{change:function(e){var i=t.attract,s=e.target,o=!!s.checked;if(Array.isArray(i)){var n=null,a=t._i(i,n);s.checked?a<0&&(t.attract=i.concat([n])):a>-1&&(t.attract=i.slice(0,a).concat(i.slice(a+1)))}else t.attract=o}}})]),t._v(" "),i("li",{staticClass:"divider"}),t._v(" "),i("li",[i("label",{attrs:{for:"input-toc"}},[t._v("TOC:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.toc,expression:"toc"}],attrs:{id:"input-toc",type:"checkbox"},domProps:{checked:Array.isArray(t.toc)?t._i(t.toc,null)>-1:t.toc},on:{change:function(e){var i=t.toc,s=e.target,o=!!s.checked;if(Array.isArray(i)){var n=null,a=t._i(i,n);s.checked?a<0&&(t.toc=i.concat([n])):a>-1&&(t.toc=i.slice(0,a).concat(i.slice(a+1)))}else t.toc=o}}})]),t._v(" "),i("li",[i("label",{attrs:{for:"input-thumbnails"}},[t._v("Thumbnails:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.thumbnails,expression:"thumbnails"}],attrs:{id:"input-thumbnails",type:"checkbox"},domProps:{checked:Array.isArray(t.thumbnails)?t._i(t.thumbnails,null)>-1:t.thumbnails},on:{change:function(e){var i=t.thumbnails,s=e.target,o=!!s.checked;if(Array.isArray(i)){var n=null,a=t._i(i,n);s.checked?a<0&&(t.thumbnails=i.concat([n])):a>-1&&(t.thumbnails=i.slice(0,a).concat(i.slice(a+1)))}else t.thumbnails=o}}})]),t._v(" "),i("li",[i("label",{attrs:{for:"input-notes"}},[t._v("Notes:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.notes,expression:"notes"}],attrs:{id:"input-notes",type:"checkbox"},domProps:{checked:Array.isArray(t.notes)?t._i(t.notes,null)>-1:t.notes},on:{change:function(e){var i=t.notes,s=e.target,o=!!s.checked;if(Array.isArray(i)){var n=null,a=t._i(i,n);s.checked?a<0&&(t.notes=i.concat([n])):a>-1&&(t.notes=i.slice(0,a).concat(i.slice(a+1)))}else t.notes=o}}})]),t._v(" "),i("li",{staticClass:"divider"}),t._v(" "),i("li",[i("label",{attrs:{for:"input-share"}},[t._v("Share:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.share,expression:"share"}],attrs:{id:"input-share",type:"checkbox"},domProps:{checked:Array.isArray(t.share)?t._i(t.share,null)>-1:t.share},on:{change:function(e){var i=t.share,s=e.target,o=!!s.checked;if(Array.isArray(i)){var n=null,a=t._i(i,n);s.checked?a<0&&(t.share=i.concat([n])):a>-1&&(t.share=i.slice(0,a).concat(i.slice(a+1)))}else t.share=o}}})]),t._v(" "),i("li",[i("label",{attrs:{for:"input-print"}},[t._v("Print:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.print,expression:"print"}],attrs:{id:"input-print",type:"checkbox"},domProps:{checked:Array.isArray(t.print)?t._i(t.print,null)>-1:t.print},on:{change:function(e){var i=t.print,s=e.target,o=!!s.checked;if(Array.isArray(i)){var n=null,a=t._i(i,n);s.checked?a<0&&(t.print=i.concat([n])):a>-1&&(t.print=i.slice(0,a).concat(i.slice(a+1)))}else t.print=o}}})]),t._v(" "),i("li",[i("label",{attrs:{for:"input-download"}},[t._v("Download:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.download,expression:"download"}],attrs:{id:"input-download",type:"checkbox"},domProps:{checked:Array.isArray(t.download)?t._i(t.download,null)>-1:t.download},on:{change:function(e){var i=t.download,s=e.target,o=!!s.checked;if(Array.isArray(i)){var n=null,a=t._i(i,n);s.checked?a<0&&(t.download=i.concat([n])):a>-1&&(t.download=i.slice(0,a).concat(i.slice(a+1)))}else t.download=o}}})]),t._v(" "),i("li",{staticClass:"divider"}),t._v(" "),i("li",[i("label",{attrs:{for:"input-sound"}},[t._v("Sound:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.sound,expression:"sound"}],attrs:{id:"input-sound",type:"checkbox"},domProps:{checked:Array.isArray(t.sound)?t._i(t.sound,null)>-1:t.sound},on:{change:function(e){var i=t.sound,s=e.target,o=!!s.checked;if(Array.isArray(i)){var n=null,a=t._i(i,n);s.checked?a<0&&(t.sound=i.concat([n])):a>-1&&(t.sound=i.slice(0,a).concat(i.slice(a+1)))}else t.sound=o}}})]),t._v(" "),i("li",[i("label",{attrs:{for:"input-zoom"}},[t._v("Zoom:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.zoom,expression:"zoom"}],attrs:{id:"input-zoom",type:"checkbox"},domProps:{checked:Array.isArray(t.zoom)?t._i(t.zoom,null)>-1:t.zoom},on:{change:function(e){var i=t.zoom,s=e.target,o=!!s.checked;if(Array.isArray(i)){var n=null,a=t._i(i,n);s.checked?a<0&&(t.zoom=i.concat([n])):a>-1&&(t.zoom=i.slice(0,a).concat(i.slice(a+1)))}else t.zoom=o}}})]),t._v(" "),i("li",[i("label",{attrs:{for:"input-fullscreen"}},[t._v("Fullscreen:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.fullscreen,expression:"fullscreen"}],attrs:{id:"input-fullscreen",type:"checkbox"},domProps:{checked:Array.isArray(t.fullscreen)?t._i(t.fullscreen,null)>-1:t.fullscreen},on:{change:function(e){var i=t.fullscreen,s=e.target,o=!!s.checked;if(Array.isArray(i)){var n=null,a=t._i(i,n);s.checked?a<0&&(t.fullscreen=i.concat([n])):a>-1&&(t.fullscreen=i.slice(0,a).concat(i.slice(a+1)))}else t.fullscreen=o}}})]),t._v(" "),i("li",{staticClass:"divider"}),t._v(" "),i("li",[i("label",{attrs:{for:"input-slideshow"}},[t._v("Slideshow:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.slideshow,expression:"slideshow"}],attrs:{id:"input-slideshow",type:"checkbox"},domProps:{checked:Array.isArray(t.slideshow)?t._i(t.slideshow,null)>-1:t.slideshow},on:{change:function(e){var i=t.slideshow,s=e.target,o=!!s.checked;if(Array.isArray(i)){var n=null,a=t._i(i,n);s.checked?a<0&&(t.slideshow=i.concat([n])):a>-1&&(t.slideshow=i.slice(0,a).concat(i.slice(a+1)))}else t.slideshow=o}}})])])]),t._v(" "),i("li",{staticClass:"toggle",class:{toggled:t.sections.skin}},[i("div",{staticClass:"caption",on:{click:function(e){return t.toggleSection("skin")}}},[i("span",{staticClass:"section-icon"}),t._v("Skin")]),t._v(" "),i("ul",[i("li",[i("label",{attrs:{for:"input-skin"}},[t._v("Skin:")]),t._v(" "),i("select",{directives:[{name:"model",rawName:"v-model",value:t.currentSkin,expression:"currentSkin"}],staticClass:"skin-selector",attrs:{id:"input-skin"},on:{change:function(e){var i=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.currentSkin=e.target.multiple?i:i[0]}}},t._l(t.skinList,(function(e){return i("option",{domProps:{value:e}},[t._v("\n "+t._s(e)+"\n ")])})),0),t._v(" "),i("button",{staticClass:"next-skin",attrs:{title:"Alt + Ctrl + /"},on:{click:t.nextSkin}},[t._v("➡️")])]),t._v(" "),i("li",[i("label",{attrs:{for:"input-main-color"}},[t._v("Main color:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.mainSkinColor,expression:"mainSkinColor"}],staticClass:"skin-color",attrs:{id:"input-main-color",type:"color"},domProps:{value:t.mainSkinColor},on:{input:function(e){e.target.composing||(t.mainSkinColor=e.target.value)}}}),i("span",{staticClass:"color-hex"},[t._v(t._s(t.mainSkinColor))])]),t._v(" "),i("li",[i("label",{attrs:{for:"input-second-color"}},[t._v("Second color:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.secondSkinColor,expression:"secondSkinColor"}],staticClass:"skin-color",attrs:{id:"input-second-color",type:"color"},domProps:{value:t.secondSkinColor},on:{input:function(e){e.target.composing||(t.secondSkinColor=e.target.value)}}}),i("span",{staticClass:"color-hex"},[t._v(t._s(t.secondSkinColor))])]),t._v(" "),i("li",[i("label",{attrs:{for:"input-bg-image"}},[t._v("Bg Image:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.bgImageUrl,expression:"bgImageUrl"}],staticClass:"bg-image-input",attrs:{id:"input-bg-image",type:"text"},domProps:{value:t.bgImageUrl},on:{input:function(e){e.target.composing||(t.bgImageUrl=e.target.value)}}})])])])])])])],1)},z=[],L=i(5622),M=i(776),B={data:function(){return{showMenu:!1,sections:{book:!0,workspace:!0,components:!1,skin:!1},skinList:["current"],currentSkin:"current",api:this.$root.$options.api}},beforeMount:function(){this.setSkinColorThrottled=(0,L.P2)(this.setSkinColor,200),this.loadSkinList(),i.g.addEventListener("keydown",this.keyDownHandler)},beforeDestroy:function(){i.g.removeEventListener("keydown",this.keyDownHandler)},computed:{layout:function(){return this.$store.state.workspace.layout},availableLocales:function(){var t=this;return Object.keys(this.$store.state.workspace.locales).length>0?this.$store.state.i18n.config.locales.filter((function(e){return-1!==t.$store.state.workspace.locales.indexOf(e)})):this.$store.state.i18n.config.locales},currentLocale:{get:function(){return this.$store.state.i18n.currentLocale},set:function(t){this.setLocale(t)}},thickness:{get:function(){return this.$store.state.book.thickness},set:function(t){this.apiSetPagesValue("thickness",t)}},isTranslucentReverseSide:{get:function(){return this.$store.state.workspace.components.book.isTranslucentReverseSide},set:function(t){this.setWorkspaceBookComponent({isTranslucentReverseSide:t}),this.$store.state.pager.singleMode&&this.$store.dispatch("pager/setForceRerender",{forceRerender:!0})}},hardcover:{get:function(){return this.$store.getters["book/hasHardcover"]},set:function(t){this.apiSetPagesValue("hardcover",t)}},hardcoverColor:{get:function(){return this.$store.state.book.hardcoverColor},set:function(t){this.apiSetPagesValue("hardcoverColor",t)}},numerationOffset:{get:function(){return this.$store.state.book.numerationOffset},set:function(t){var e=parseInt(t,10);isNaN(e)||this.apiSetPagesValue("numerationOffset",e)}},bookSize:{get:function(){return this.$store.state.workspace.bookSize},set:function(t){this.apiSetWorkspaceValue("bookSize",t)}},rtl:{get:function(){return this.$store.state.book.rightToLeft},set:function(t){this.apiSetPagesValue("rightToLeft",t)}},flip:{get:function(){return this.$store.state.workspace.components.book.flip},set:function(t){this.setWorkspaceBookComponent({flip:t})}},cropMode:{get:function(){return this.$store.state.book.contentCrop},set:function(t){this.apiSetPagesValue("contentCrop",t)}},pagerMode:{get:function(){return"auto"===this.$store.state.workspace.components.book.flipbookType?"auto":this.$store.state.pager.mode},set:function(t){this.flip||"slide"===t?this.setWorkspaceBookComponent({flipbookType:t}):this.$store.dispatch("pager/changeMode",{mode:t,target:"debug"})}},attract:{get:function(){return this.$store.state.workspace.attractOnControlsSet},set:function(t){this.apiSetWorkspaceValue("attractOnControlsSet",t)}},toc:{get:function(){return this.$store.state.toc.enabled},set:function(t){this.apiSetWorkspaceValue("toc.enabled",t)}},download:{get:function(){return this.$store.state.downloads.enabled},set:function(t){this.apiSetWorkspaceValue("downloads.enabled",t)}},sound:{get:function(){return this.$store.state.sound.enabled},set:function(t){this.apiSetWorkspaceValue("sound.enabled",t)}},search:{get:function(){return this.$store.state.search.enabled},set:function(t){this.apiSetWorkspaceValue("search.enabled",t)}},accessibility:{get:function(){return this.$store.getters["workspace/accessibilityButtonVisible"]},set:function(t){this.apiSetWorkspaceValue("accessibilityPDF.enabled",t),t&&!this.$store.getters["workspace/accessibilityButtonVisible"]&&this.apiSetWorkspaceValue("accessibilityPDF.useOriginalPdf",!0)}},thumbnails:{get:function(){return this.$store.state.workspace.components.thumbnails},set:function(t){this.apiSetWorkspaceValue("components.thumbnails",t)}},notes:{get:function(){return this.$store.state.workspace.components.notes},set:function(t){this.apiSetWorkspaceValue("components.notes",t)}},share:{get:function(){return this.$store.state.workspace.components.share},set:function(t){this.apiSetWorkspaceValue("components.share",t)}},print:{get:function(){return this.$store.state.workspace.components.print},set:function(t){this.apiSetWorkspaceValue("components.print",t)}},fullscreen:{get:function(){return this.$store.state.workspace.components.fullscreen},set:function(t){this.apiSetWorkspaceValue("components.fullscreen",t)}},zoom:{get:function(){return this.$store.state.workspace.components.zoom},set:function(t){this.apiSetWorkspaceValue("components.zoom",t)}},slideshow:{get:function(){var t;return null===(t=this.$store.state.workspace.components.slideshow)||void 0===t?void 0:t.enabled},set:function(t){this.apiSetWorkspaceValue("components.slideshow.enabled",t)}},selectText:{get:function(){return this.$store.state.workspace.components.textSelection},set:function(t){this.apiSetWorkspaceValue("components.textSelection",t)}},mainSkinColor:{get:function(){return this.$store.state.skin.styles["main-color"]},set:function(t){this.setSkinColorThrottled({mainColor:t})}},secondSkinColor:{get:function(){return this.$store.state.skin.styles["second-color"]},set:function(t){this.setSkinColorThrottled({secondColor:t})}},bgImageUrl:{get:function(){return this.$store.state.skin.styles["background-image"].replace('url("',"").replace('")',"")},set:function(t){this.loadBgImage(t)}}},watch:{currentSkin:"loadSkin"},methods:{apiSetWorkspaceValue:function(t,e){this.api.getProperty("workspace").set(t,e)},apiSetPagesValue:function(t,e){this.api.getProperty("pages").set(t,e)},setSkinColor:function(t){var e=t.mainColor,i=void 0===e?null:e,s=t.secondColor,o=void 0===s?null:s,n=t.image,a=void 0===n?null:n,r=new window.ColorsFromImage;i=i||this.$store.state.skin.styles["main-color"],o=o||this.$store.state.skin.styles["second-color"],r.setMainColor(i),r.setSecondColor(o),a&&r.setImage(a);var l=r.getVars();for(var c in l)l.hasOwnProperty(c)&&this.api.getProperty("skin").set(c,l[c])},setWorkspaceBookComponent:function(t){var e=t.flip,i=void 0===e?this.flip:e,s=t.flipbookType,o=void 0===s?this.pagerMode:s,n=t.isTranslucentReverseSide,a=void 0===n?this.isTranslucentReverseSide:n;this.apiSetWorkspaceValue("components.book",{flip:i,flipbookType:o,isTranslucentReverseSide:a})},setLocale:function(t){this.$store.dispatch("i18n/setCurrentLocale",{locale:t})},toggleSection:function(t){this.sections[t]=!this.sections[t]},toggleDebugMenu:function(){this.showMenu=!this.showMenu},loadSkinList:function(){var t=["current"];i.g.fetch((0,M.Z)().translatePath("/skins/skins.json")).then((function(t){return t.json()})).then((function(e){e.map((function(e){t.push(e.folder)}))})),this.skinList=t},loadSkin:function(t){var e=this;i.g.fetch((0,M.Z)().translatePath("skins/".concat(t,"/config.json"))).then((function(t){return t.json()})).then((function(i){for(var s in i)i.hasOwnProperty(s)&&("background-image"===s&&(i[s]=i[s].replace("current",t)),e.api.getProperty("skin").set(s,i[s]))}))},loadBgImage:function(t){var e=this;t||(this.setSkinColor({image:null}),this.api.getProperty("skin").set("background-image",""));var i=new Image;i.onload=function(s){e.setSkinColor({image:i}),e.api.getProperty("skin").set("background-image",'url("'.concat(t,'")'))},i.src=(0,M.Z)().translatePath(t)},nextSkin:function(){var t=this.skinList.filter((function(t){return"current"!==t})),e=t.indexOf(this.currentSkin);this.currentSkin=t[e+1]||t[0]},nextLocale:function(){var t=this.availableLocales.indexOf(this.currentLocale);this.setLocale(this.availableLocales[t+1]||this.availableLocales[0])},keyDownHandler:function(t){(t.ctrlKey||t.metaKey)&&t.altKey&&"Slash"===t.code&&this.nextSkin(),(t.ctrlKey||t.metaKey)&&t.altKey&&"Period"===t.code&&this.nextLocale()}}},O=(0,g.Z)(B,E,z,!1,null,"1d38fd5e",null).exports,H=(i(6010),i(1083),i(8379),{computed:{blinkLight:function(){return this.opaqueTop?(0,l.R)((0,l.l)(this.backgroundColor))<.5:(0,l.R)((0,l.l)(this.$store.state.skin.styles["top-right-menu-icon-color"]))>.5},opaqueTop:function(){return-1!==this.$store.state.skin.styles.classes.indexOf("opaqueTop")},backgroundColor:function(){var t=this.opaqueTop?"main-color":"second-color";return this.$store.state.skin.styles[t]},title:function(){return(0,T.m9)(this.$store.state.workspace.title)},titleDirection:function(){return"ltr"===P().getDirection(this.title)?"ltr":"rtl"},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(){return this.$store.getters["workspace/accessibilityButtonVisible"]},searchSidebarOpened:function(){return"search"===this.$store.state.sidebar.opened},accessibilityMode:function(){return this.$store.state.workspace.accessibilityMode},topBarClasses:function(){return{"blink-light":this.blinkLight,compact:this.compactMode}},workspaceSize:function(){return this.$store.getters["workspace/size"]},sidebarOpened:function(){return this.$store.state.sidebar.opened},compactMode:function(){var t=this.sidebarOpened?this.$store.state.sidebar.width:0;return this.workspaceSize.width<500+t},veryCompactMode:function(){var t=this.sidebarOpened?this.$store.state.sidebar.width:0;return this.workspaceSize.width<350+t}},components:{pager:$,"copyright-button":A,"debug-controls":O},methods:{openSidebar:function(t){null!==this.$store.state.popup.opened&&this.$store.dispatch("popup/closePopup"),this.$store.dispatch("sidebar/openSidebar",{component:t})},openPopup:function(t){null!==this.$store.state.popup.opened&&this.$store.dispatch("popup/closePopup"),this.$store.dispatch("popup/openPopup",{component:t})},beforeIconAdd:function(t){r.Z.addClass(t.firstChild,"svg-before-enter")},afterIconAdd:function(t){r.Z.removeClass(t.firstChild,"svg-before-enter")},beforeIconRemove:function(t){r.Z.addClass(t.firstChild,"svg-before-leave")},afterIconRemove:function(t){r.Z.removeClass(t.firstChild,"svg-before-leave")}},watch:{accessibilityMode:function(t){t&&(document.activeElement&&null!==document.activeElement.getAttribute("tabindex")||(this.showAccessibilityPDF?this.$refs.accessibilityBtn.focus():this.$refs.pager.setFocus()))}}}),D=H,N=(0,g.Z)(D,b,w,!1,null,"503365c6",null).exports,R=i(7345),F=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"overlay",style:{"background-color":t.config.backgroundColor}},[t.isIE?i("div",{staticClass:"spinner-wrap"},[i("spinner",{attrs:{size:24,"line-size":4,"line-fg-color":t.spinnerFgColor,"line-bg-color":t.spinnerBgColor}})],1):i("div",{staticClass:"book-wrap",style:t.bookWrapStyles},[i("div",{staticClass:"book",style:{perspective:t.width*(t.isChrome?3:1.5)+"px"}},[i("div",{staticClass:"page start-page",style:t.pageStyles}),t._v(" "),i("div",{ref:"page1",staticClass:"page",style:t.pageStyles}),t._v(" "),i("div",{ref:"page2",staticClass:"page",style:t.pageStyles}),t._v(" "),i("div",{ref:"page3",staticClass:"page",style:t.pageStyles}),t._v(" "),i("div",{ref:"page4",staticClass:"page",style:t.pageStyles}),t._v(" "),i("div",{ref:"page5",staticClass:"page",style:t.pageStyles}),t._v(" "),i("div",{ref:"page6",staticClass:"page",style:t.pageStyles}),t._v(" "),i("div",{ref:"page7",staticClass:"page",style:t.pageStyles}),t._v(" "),i("div",{ref:"page8",staticClass:"page",style:t.pageStyles}),t._v(" "),i("div",{ref:"page9",staticClass:"page",style:t.pageStyles}),t._v(" "),i("div",{ref:"page10",staticClass:"page",style:t.pageStyles}),t._v(" "),i("div",{staticClass:"page end-page",style:t.pageStyles})])])])},V=[],W=i(2155),U=i(9426),Z={backgroundColor:"#ECF0F1",titleColor:"#3E3E43",titleText:null,coverSrc:null,logoLink:{image:null,url:"http://flippingbook.com"}},G=2,K={components:{spinner:U.Z},data:function(){return{width:60,config:null}},created:function(){this.animatePageTimeoutIds={},this.config=(0,W.Z)(Z,this.$store.state.workspace.preloaderConfig),this.pageInShadowColors=(0,l.l)(this.config.backgroundColor),this.pageInShadowColors="#000000"===this.config.backgroundColor?[35,35,35]:this.pageInShadowColors,this.pageInShadowColors=this.pageInShadowColors.map((function(t){return(.85*t).toFixed(0)}))},mounted:function(){this.animate(),this.intervalId=setInterval(this.animate,3200)},computed:{pageStyles:function(){return{"background-color":this.config.backgroundColor,"border-color":this.config.titleColor,"border-width":"".concat(G,"px"),"border-radius":"0 ".concat(this.width/10,"px ").concat(this.width/10,"px 0"),width:"".concat(this.width/2,"px"),height:"".concat(this.height,"px"),left:"".concat(this.width/2-G,"px")}},bookWrapStyles:function(){return{width:"".concat(this.width,"px"),height:"".concat(this.height,"px"),"margin-top":"-".concat(this.height,"px"),"margin-left":"".concat(-this.width/2,"px"),"background-color":this.config.backgroundColor}},height:function(){return.75*this.width},isChrome:function(){return this.$store.state.workspace.userAgentInfo.browser.chrome},isIE:function(){return!0===this.$store.state.workspace.userAgentInfo.browser.msie},spinnerBgColor:function(){var t=this.$store.state.skin.styles["main-button-color"];return t?"rgba("+(0,l.l)(t).join(",")+", 0.8)":"#FFFFFF"},spinnerFgColor:function(){var t=this.$store.state.skin.styles["second-text-color"];return t?"rgba("+(0,l.l)(t).join(",")+", 0.8)":"#5692AE"}},methods:{animate:function(){var t=this;this.animatePage("page1"),this.animateTimeoutId=setTimeout((function(){var e=[4,3,2];t.animatePagePile(e),t.animateTimeoutId=setTimeout((function(){var e=[10,9,8,7,6,5];t.animatePagePile(e)}),1100)}),600)},animatePagePile:function(t){var e=this;this.animatePagePileIntervalId=setInterval((function(){if(t.length){var i="page".concat(t.pop());e.animatePage(i)}else clearInterval(e.animatePagePileIntervalId)}),100)},animatePage:function(t){var e=this;this.$refs[t].style.transform="rotateY(-20deg)",this.$refs[t].style.transition="transform 1.1s, background-color .385s",this.$refs[t].style.transform="rotateY(-160deg)",this.$refs[t].style.backgroundColor="rgb(".concat(this.pageInShadowColors.join(","),")");var i=setTimeout((function(){delete e.animatePageTimeoutIds[i],e.$refs[t].style.transition="transform 1.1s, background-color .55s",e.$refs[t].style.backgroundColor=e.config.backgroundColor}),385),s=setTimeout((function(){delete e.animatePageTimeoutIds[s],e.$refs[t].style.transition=null,e.$refs[t].style.transform="rotateY(-20deg)"}),1100);this.animatePageTimeoutIds[i]=!0,this.animatePageTimeoutIds[s]=!0}},beforeDestroy:function(){clearInterval(this.intervalId),clearTimeout(this.animateTimeoutId),clearInterval(this.animatePagePileIntervalId),Object.keys(this.animatePageTimeoutIds).forEach((function(t){clearTimeout(t)}))}},Y=(0,g.Z)(K,F,V,!1,null,"746b7c3e",null).exports,q=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"}},[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","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"}})])])},j=[],X=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"downloads"},[t.fullPdf?i("a",{staticClass:"download-full-button",attrs:{"data-modal-tabIndex":"first-init",target:"_blank",href:"linkFull",download:t.fullPdf.fileName,role:"button",title:t.fullTooltip,"aria-label":t.fullTooltip,tabindex:"0",disabled:t.editorMode},on:{click:function(e){return t.processDownloadEvent(e,"full",null)},keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:t.onSpaceDown(e)}}},[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"},[t._v(t._s(t.fullDescription))])]):t._e(),t._v(" "),t.filesCount?i("div",{ref:"download-list",staticClass:"download-list",attrs:{id:"download-list"}},[i("ul",[t._l(t.filesArray,(function(e,s){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":s===t.filesCount-1?"last":"",target:"_blank",href:"linkPage",download:e.fileName,role:"button",title:e.tooltip,"aria-label":e.tooltip,tabindex:"0",disabled:t.editorMode},on:{click:function(i){return t.processDownloadEvent(i,e.type,s)},keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:t.onSpaceDown(e)}}},[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)})),t._v(" "),t.showAccessiblePdf?i("li",[i("svgicon",{staticClass:"svg-icon file-icon",attrs:{focusable:"false",name:"file-pdf"}}),t._v(" "),i("a",{attrs:{disabled:t.editorMode,role:"button",href:"linkFull",target:"_blank",download:t.accessiblePdfFilename,"data-modal-tabIndex":"last",title:t.accessiblePdfTitle,"aria-label":t.accessiblePdfTitle,tabindex:"0"},on:{click:function(e){return t.processAccessiblePdfDownloadEvent(e,"download-from-downloads")},keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:t.onAccessiblePdfButtonSpaceDown(e)}}},[i("bdi",[i("span",{staticClass:"file-name"},[t._v(t._s(t.accessiblePdfTitle))])]),t._v(" "),i("span",{attrs:{dir:"ltr"}},[i("bdi",[t._v("("+t._s(t.accesssiblePdfSize)+")")])])])],1):t._e()],2)]):t._e()])},Q=[],J=i(462),tt={computed:{accessiblePdf:function(){return this.$store.getters["downloads/getAccessiblePdf"]},accessiblePdfTitle:function(){return this.$t("Accessibility.DOWNLOAD_TITLE")},accesssiblePdfSize:function(){return this.accessiblePdf.size},accessiblePdfFilename:function(){return this.accessiblePdf.fileName},accessiblePdfUrl:function(){return(0,M.Z)().translatePath(this.accessiblePdf.url)}},methods:{processAccessiblePdfDownloadEvent:function(t,e){t.currentTarget.href=this.accessiblePdfUrl,this.$root.$emit("accessibility",{action:e,fileName:this.accessiblePdfFilename})},onAccessiblePdfButtonSpaceDown:function(t){t.currentTarget.click()}}},et=(i(6092),i(7195),i(6009),i(8713),i(3178),i(3848),i(3490),i(9573),i(254),i(5782),i(3310),i(1314),i(2307),i(4309),i(3889),i(5109)),it={mixins:[J.Z,tt],name:"DownloadWindow",mounted:function(){this.filesArray.length>4&&this.initScroll()},computed:{editorMode:function(){return!!this.$store.state.workspace.userAgentInfo.browser.publisher},fullDescription:function(){return this.$t("SaveWindow.FULL_PUBLICATION_DESCRIPTION")},filesArray:function(){var t=this,e=[];return this.pageFiles&&this.pageFiles.filter((function(t){return t.ready})).forEach((function(i){e.push({title:1===t.pageFiles.length?t.pagesTitle.one:t.pagesTitle[i.side],tooltip:1===t.pageFiles.length?t.pagesTooltip.one:t.pagesTooltip[i.side],url:function(){return(0,M.Z)().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,tooltip:t.windowTitle+" "+i.title,url:function(){return(0,M.Z)().translatePath(i.url)},type:"custom",size:i.size,icon:"file-"+t.getIcon(i.url),fileName:i.fileName})})),e},filesCount:function(){var t=this.filesArray.length;return this.showAccessiblePdf?t+1:t},showAccessiblePdf:function(){return this.$store.getters["workspace/accessibilityButtonVisible"]&&!this.$store.state.downloads.accessibilityPDF.useOriginalPdf}},methods:{processDownloadEvent:function(t,e,i){if(this.editorMode)t.preventDefault();else{var s,o={leftPageUrl:this.$store.getters["pages/urlHeaderById"]({id:this.pagerState.leftPage}),rightPageUrl:this.$store.getters["pages/urlHeaderById"]({id:this.pagerState.rightPage})};"full"===e?(o.option="full",o.fileName=this.fullPdf.fileName,s=(0,M.Z)().translatePath(this.fullPdf.url)):(o.option=e,o.fileName=this.filesArray[i].fileName,s=this.filesArray[i].url(),"page"===e&&(o.downloadPage=this.$store.getters["pages/urlHeaderById"]({id:this.filesArray[i].pageId}))),t.currentTarget.href=s,this.$root.$emit("download",o)}},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"},s=t.split(".").pop(),o=e.indexOf(s);return-1!==o?e[o]:i[s]||"any"},initScroll:function(){this.$refs["download-list"]&&(this.scrollComponent=new et.ZP(this.$refs["download-list"],{mouseWheel:!0,scrollbar:{fade:!1,interactive:!0,scrollbarTrackClickable:!0},probeType:0,disablePointer:!0,disableTouch:!1,disableMouse:!1,resizePolling:200,bounce:!1}))},closeDialog:function(){this.$store.dispatch("popup/closePopup")},onSpaceDown:function(t){t.currentTarget.click()}},watch:{filesArray:function(t){var e=this;!this.scrollComponent&&t.length>4?this.initScroll():t.length<=4&&this.scrollComponent&&(this.scrollComponent.destroy(),this.scrollComponent=null),this.scrollComponent&&this.$nextTick((function(){e.scrollComponent.refresh()}))}}},st=(0,g.Z)(it,X,Q,!1,null,"3a649b5e",null).exports,ot=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"print-window"},[t.pdfIsAvailable||t.editorMode?i("div",{staticClass:"print-window-container",class:this.status},[i("div",{staticClass:"print-title-frame"},[t.selectedPagesVisible&&t.fullOption?i("button",{staticClass:"print-full-button",attrs:{"data-modal-tabIndex":"first-init",tabindex:"0",title:t.localization.customTip,"aria-label":t.localization.customTip,disabled:t.editorMode},on:{click:function(e){return t.print(t.fullOption)}}},[i("span",{staticClass:"title"},[t._v(t._s(t.fullOption.title))]),t._v(" "),i("span",{staticClass:"description"},[t._v(t._s(t.localization.customRangeDescription))])]):t._e(),t._v(" "),t.partsOptionsArray.length>0?i("div",{staticClass:"print-list"},[i("div",{attrs:{role:t.partsOptionsArray.length>1&&"list"}},t._l(t.partsOptionsArray,(function(e,s){return i("div",{attrs:{role:t.partsOptionsArray.length>1&&"listitem"}},[i("svgicon",{staticClass:"svg-icon file-icon",attrs:{focusable:"false",name:"file-any-print"}}),t._v(" "),i("button",{attrs:{tabindex:"0",title:e.tooltip,"aria-label":e.tooltip,disabled:t.editorMode},on:{click:function(i){return t.print(e)}}},[i("bdi",[i("span",{staticClass:"file-name"},[t._v(t._s(e.title))])])])],1)})),0)]):t._e(),t._v(" "),t.printSupported?t._e():i("span",{staticClass:"text-block print-comment",attrs:{id:"print-comment"}},[t._v(t._s(t.localization.commentCurrent))])]),t._v(" "),i("div",{staticClass:"print-button-bar"},[i("div",{staticClass:"progress"},[i("div",{staticClass:"progress-background"},[i("div",{staticClass:"progress-bar",style:t.progressBarStyle,attrs:{id:"progress-bar"}})]),t._v(" "),i("div",{staticClass:"text-block progress-info",attrs:{id:"progress-info"}},[i("bdi",[t._v(t._s(t.downloaded))])])]),t._v(" "),i("div",{staticClass:"waiting-bar"},[i("div",{staticClass:"circle-loader"}),t._v(" "),i("label",{staticClass:"print-window-label"},[t._v(t._s(t.localization.waiting))])]),t._v(" "),i("button",{staticClass:"idle popup-button cancel-button",attrs:{tabindex:"0",id:"cancel-btn","aria-label":t.localization.cancel,title:t.localization.cancel},on:{click:t.cancel}},[t._v("\n "+t._s(t.localization.cancel)+"\n ")])])]):i("div",{staticClass:"print-window"},[t._v(t._s(t.localization.errorMsg))])])},nt=[];function at(t){var e=document.getElementById("pdf-print-iframe");if(e&&e.parentNode.removeChild(e),(e=document.createElement("iframe")).setAttribute("style","visibility: hidden; height: 0; width: 0; position: absolute; border: 0"),e.setAttribute("id","pdf-print-iframe"),t.browser.ie)try{window.open(t.printable,"_blank").focus()}catch(i){t.onError(i)}else ct(t,e)}function rt(t,e){var i="mouseover";(t.browser.chrome||t.browser.chromiumEdge)&&(i="focus");var s=function s(){t.onPrintDialogClose(),window.removeEventListener(i,s),e.remove()};window.addEventListener(i,s)}function lt(t,e){try{t.focus(),t.contentWindow.print()}catch(i){e.onError(i)}finally{rt(e,t)}}function ct(t,e){t.printable=/^(blob|http|\/\/)/i.test(t.printable)?t.printable:window.location.origin+("/"!==t.printable.charAt(0)?"/"+t.printable:t.printable);var i=new window.XMLHttpRequest;i.responseType="arraybuffer",i.addEventListener("error",(function(){rt(t,e),t.onError(i.statusText,i)})),i.addEventListener("load",(function(){if(-1===[200,201].indexOf(i.status))return rt(t),void t.onError(i.statusText,i);ht(t,e,i.response)})),i.open("GET",t.printable,!0),i.send()}function ht(t,e,i){var s=new window.Blob([i],{type:"application/pdf"});s=window.URL.createObjectURL(s),e.onload=function(){t.browser.firefox||t.browser.safari?setTimeout((function(){lt(e,t)}),1e3):lt(e,t)},e.setAttribute("src",s),document.body.appendChild(e)}i(7046);var ut,dt={data:function(){return{selected:0,printSupported:!0,pdfIsAvailable:!0,status:"idle",loaded:0,total:0,xmlHTTP:null}},mounted:function(){var t=this;if(this.checkPrintingSupport(),this.params.pageId){var e,i=null===(e=this.partsOptionsArray.filter((function(e){return e.pageId===t.params.pageId})))||void 0===e?void 0:e[0];i&&this.printSupported&&this.pdfIsAvailable&&this.print(i)}},computed:{isPrintedInSafari15:function(){return this.$store.state.workspace.isPrintedInSafari15},localization:function(){return{cancel:this.$t("PrintWindow.CANCEL_BUTTON"),waiting:this.$t("PrintWindow.WAITING"),commentCurrent:this.$t("PrintWindow.COMMENT_OPEN_CURRENT"),customTip:this.$t("PrintWindow.CUSTOM_RANGE_TIP"),errorMsg:this.$t("PrintWindow.ERROR_MESSAGE"),leftPage:this.$t("PrintWindow.LEFT_PAGE"),rightPage:this.$t("PrintWindow.RIGHT_PAGE"),currentPage:this.$t("PrintWindow.CURRENT_PAGE"),leftPageTip:this.$t("PrintWindow.LEFT_PAGE_TIP"),rightPageTip:this.$t("PrintWindow.RIGHT_PAGE_TIP"),currentPageTip:this.$t("PrintWindow.CURRENT_PAGE_TIP"),customRange:this.$t("PrintWindow.CUSTOM_RANGE"),customRangeDescription:this.$t("PrintWindow.CUSTOM_RANGE_DESCRIPTION")}},params:function(){return this.$store.state.popup.params},downloaded:function(){return this.$t("PrintWindow.DOWNLOADING",{0:(0,T.BU)(this.loaded),1:(0,T.BU)(this.total)})},fullPdf:function(){return this.$store.getters["downloads/getFullPdf"]},pageFiles:function(){return this.$store.getters["downloads/getPageFiles"]},currentPagesVisible:function(){return this.$store.state.print.currentPagesVisible},selectedPagesVisible:function(){return this.$store.state.print.selectedPagesVisible},fullOption:function(){var t=this;return{title:this.localization.customRange,url:function(){return(0,M.Z)().translatePath(t.fullPdf.url)},type:"full",fileName:this.fullPdf.fileName}},partsOptionsArray:function(){var t=this,e=[];return this.pageFiles&&this.currentPagesVisible&&this.pageFiles.filter((function(t){return t.ready})).forEach((function(i){e.push({title:1===t.pageFiles.length?t.localization.currentPage:t.localization[i.side+"Page"],tooltip:1===t.pageFiles.length?t.localization.currentPageTip:t.localization[i.side+"PageTip"],url:function(){return(0,M.Z)().translatePath(i.url)},type:"page",icon:"file-pdf",pageId:i.pageId,fileName:i.fileName})})),e},progressBarStyle:function(){return{width:0===this.total?"0%":parseInt(this.loaded/this.total*100,10)+"%"}},userAgentInfo:function(){return this.$store.state.workspace.userAgentInfo},editorMode:function(){return!!this.userAgentInfo.browser.publisher}},methods:{checkPrintingSupport:function(){var t=this;if(!this.editorMode&&(this.fullPdf&&this.fullPdf.url||this.pageFiles&&this.pageFiles.length>0)){this.url=(0,M.Z)().translatePath(this.fullPdf.url||this.pageFiles[0].url);var e=new XMLHttpRequest;e.open("HEAD",this.url),e.onreadystatechange=function(){if(this.readyState===this.DONE)if(200===this.status){var e;this.getAllResponseHeaders().indexOf("content-disposition")>=0&&(e=this.getResponseHeader("content-disposition"));var i=e&&e.search("attachment")>=0;t.pdfIsAvailable="application/pdf"===this.getResponseHeader("Content-Type")&&!i}else t.pdfIsAvailable=!1,console.error("PDF printing is not available.")},e.send()}else this.pdfIsAvailable=!1;this.printSupported=!this.userAgentInfo.browser.ie&&!this.userAgentInfo.browser.msedge},print:function(t){var e=this;if(!this.editorMode){var i=t.url();if(!this.printSupported||this.isPrintedInSafari15)return window.open(i,"_blank"),void this.onPrintDialogClose();if(this.userAgentInfo.browser.safari)15===+this.userAgentInfo.browser.version.split(".")[0]&&this.$store.dispatch("workspace/setPrintedInSafari15");var s={onPrintDialogClose:this.onPrintDialogClose,browser:this.userAgentInfo.browser,onError:function(t){throw t}};this.xmlHTTP&&this.xmlHTTP.abort(),this.xmlHTTP=new XMLHttpRequest,this.xmlHTTP.open("GET",i),this.xmlHTTP.responseType="arraybuffer","onprogress"in this.xmlHTTP&&(this.xmlHTTP.onprogress=function(t){t.lengthComputable&&(e.loaded=t.loaded,e.total=t.total)}),this.xmlHTTP.onload=function(){var t=new Blob([e.xmlHTTP.response],{type:"application/pdf"});s.printable=window.URL.createObjectURL(t),t=null,e.xmlHTTP=null,e.status="printing",at(s)},this.loaded=0,this.total=0,this.status="downloading",this.xmlHTTP.send(),this.sendApiEvent(t)}},sendApiEvent:function(t){var e,i,s=this.$store.getters["pager/legacyState"];s.leftPage&&(e=this.$store.getters["pages/urlHeaderById"]({id:s.leftPage,forceFullWide:!0})),i=s.rightPage?this.$store.getters["pages/urlHeaderById"]({id:s.rightPage,forceFullWide:!0}):e;var o={option:t.type,fileName:t.fileName,leftPageUrl:e,rightPageUrl:i};t.pageId&&(o.printPage=this.$store.getters["pages/urlHeaderById"]({id:t.pageId})),this.$root.$emit("print",o)},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")}}},pt=(0,g.Z)(dt,ot,nt,!1,null,"f9ab575e",null).exports,ft=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,s=e.target,o=!!s.checked;if(Array.isArray(i)){var n=null,a=t._i(i,n);s.checked?a<0&&(t.currentPage=i.concat([n])):a>-1&&(t.currentPage=i.slice(0,a).concat(i.slice(a+1)))}else t.currentPage=o}}}),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:{tabindex:"0"}},[t._v(t._s(t.localization.shareText))]),t._v(" "),i("a",{ref:"facebookBtn",staticClass:"social-link facebook-link",attrs:{tabindex:"0",role:"link",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:"link",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:"link",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:"link",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,s=e.target,o=!!s.checked;if(Array.isArray(i)){var n=null,a=t._i(i,n);s.checked?a<0&&(t.currentPage=i.concat([n])):a>-1&&(t.currentPage=i.slice(0,a).concat(i.slice(a+1)))}else t.currentPage=o}}}),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))])])])},gt=[];!function(){function t(t){this.mode=i.MODE_8BIT_BYTE,this.data=t,this.parsedData=[];for(var e=0,s=this.data.length;e65536?(o[0]=240|(1835008&n)>>>18,o[1]=128|(258048&n)>>>12,o[2]=128|(4032&n)>>>6,o[3]=128|63&n):n>2048?(o[0]=224|(61440&n)>>>12,o[1]=128|(4032&n)>>>6,o[2]=128|63&n):n>128?(o[0]=192|(1984&n)>>>6,o[1]=128|63&n):o[0]=n,this.parsedData.push(o)}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 s=-1;s<=7;s++)e+s<=-1||this.moduleCount<=e+s||(this.modules[t+i][e+s]=i>=0&&i<=6&&(0==s||6==s)||s>=0&&s<=6&&(0==i||6==i)||i>=2&&i<=4&&s>=2&&s<=4)},getBestMaskPattern:function(){for(var t=0,e=0,i=0;i<8;i++){this.makeImpl(!0,i);var s=n.getLostPoint(this);(0==i||t>s)&&(t=s,e=i)}return e},createMovieClip:function(t,e,i){var s=t.createEmptyMovieClip(e,i),o=1;this.make();for(var n=0;n>i&1);this.modules[Math.floor(i/3)][i%3+this.moduleCount-8-3]=s}for(i=0;i<18;i++){s=!t&&1==(e>>i&1);this.modules[i%3+this.moduleCount-8-3][Math.floor(i/3)]=s}},setupTypeInfo:function(t,e){for(var i=this.errorCorrectLevel<<3|e,s=n.getBCHTypeInfo(i),o=0;o<15;o++){var a=!t&&1==(s>>o&1);o<6?this.modules[o][8]=a:o<8?this.modules[o+1][8]=a:this.modules[this.moduleCount-15+o][8]=a}for(o=0;o<15;o++){a=!t&&1==(s>>o&1);o<8?this.modules[8][this.moduleCount-o-1]=a:o<9?this.modules[8][15-o-1+1]=a:this.modules[8][15-o-1]=a}this.modules[this.moduleCount-8][8]=!t},mapData:function(t,e){for(var i=-1,s=this.moduleCount-1,o=7,a=0,r=this.moduleCount-1;r>0;r-=2)for(6==r&&r--;;){for(var l=0;l<2;l++)if(null==this.modules[s][r-l]){var c=!1;a>>o&1)),n.getMask(e,s,r-l)&&(c=!c),this.modules[s][r-l]=c,-1==--o&&(a++,o=7)}if((s+=i)<0||this.moduleCount<=s){s-=i,i=-i;break}}}},e.PAD0=236,e.PAD1=17,e.createData=function(t,i,s){for(var o=c.getRSBlocks(t,i),a=new h,r=0;r8*u)throw new Error("code length overflow. ("+a.getLengthInBits()+">"+8*u+")");for(a.getLengthInBits()+4<=8*u&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(!1);for(;!(a.getLengthInBits()>=8*u||(a.put(e.PAD0,8),a.getLengthInBits()>=8*u));)a.put(e.PAD1,8);return e.createBytes(a,o)},e.createBytes=function(t,e){for(var i=0,s=0,o=0,a=new Array(e.length),r=new Array(e.length),c=0;c=0?f.get(g):0}}var v=0;for(d=0;d=0;)e^=n.G15<=0;)e^=n.G18<>>=1;return e},getPatternPosition:function(t){return n.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,s=0;s5&&(i+=3+n-5)}for(s=0;s=256;)t-=255;return a.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},r=0;r<8;r++)a.EXP_TABLE[r]=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 u=[[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 d(){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 f=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,s=t.getModuleCount();Math.floor(e.width/s),Math.floor(e.height/s);function o(t,e){var i=document.createElementNS("http://www.w3.org/2000/svg",t);for(var s in e)e.hasOwnProperty(s)&&i.setAttribute(s,e[s]);return i}this.clear();var n=o("svg",{viewBox:"0 0 "+String(s)+" "+String(s),width:"100%",height:"100%",fill:e.colorLight});n.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),i.appendChild(n),n.appendChild(o("rect",{fill:e.colorLight,width:"100%",height:"100%"})),n.appendChild(o("rect",{fill:e.colorDark,width:"1",height:"1",id:"template"}));for(var a=0;a'],r=0;r");for(var l=0;l');a.push("")}a.push(""),i.innerHTML=a.join("");var c=i.childNodes[0],h=(e.width-c.offsetWidth)/2,u=(e.height-c.offsetHeight)/2;h>0&&u>0&&(c.style.margin=u+"px "+h+"px")},t.prototype.clear=function(){this._el.innerHTML=""},t}();function v(t,e){for(var i=1,o=m(t),n=0,a=u.length;n<=a;n++){var r=0;switch(e){case s.L:r=u[n][0];break;case s.M:r=u[n][1];break;case s.Q:r=u[n][2];break;case s.H:r=u[n][3]}if(o<=r)break;i++}if(i>u.length)throw new Error("Too long data");return i}function m(t){var e=encodeURI(t).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return e.length+(e.length!=t?3:0)}ut=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=f),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)},ut.prototype.makeCode=function(t){this._oQRCode=new e(v(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()},ut.prototype.makeImage=function(){"function"==typeof this._oDrawing.makeImage&&(!this._android||this._android>=3)&&this._oDrawing.makeImage()},ut.prototype.clear=function(){this._oDrawing.clear()},ut.CorrectLevel=s}();var vt,mt,bt=ut,wt=i(2152),kt=i.n(wt),_t=i(466),yt=i.n(_t),$t=JSON.parse('{"X":"{{#legacy}}\\n\\n{{/legacy}}\\n{{^legacy}}\\n{{title}}