"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[88871],{95720:function(e,t,n){var o=n(62540),l=(n(63696),n(4452)),a=n.n(l),i=n(46782),r=function(){return r=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var l in t=arguments[n])Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l]);return e},r.apply(this,arguments)};t.A=function(e){var t=e.className,n=e.title,l=e.icon,s=e.iconClassName,c=e.disabled,u=void 0!==c&&c,f=e.onClick,d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(o=Object.getOwnPropertySymbols(e);l<o.length;l++)t.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(e,o[l])&&(n[o[l]]=e[o[l]])}return n}(e,["className","title","icon","iconClassName","disabled","onClick"]),b=a()("paper-icon-button-light",t,{"show-focus":i.A.tv}),y=a()("material-icons",s,l);return(0,o.jsx)("button",r({className:b,title:n,disabled:u,onClick:f},d,{children:(0,o.jsx)("span",{className:y,"aria-hidden":"true"})}))}},86321:function(e,t,n){n.r(t);var o=n(62540),l=n(63696),a=n(95720),i=n(5898),r=n(95569),s=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,l,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=a.next()).done;)i.push(o.value)}catch(e){l={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(l)throw l.error}}return i};t.default=function(e){var t=e.item,n=e.onExit,c=e.onPrevious,u=e.onNext,f=e.onOpenTableOfContents,d=e.onRotateTheme,b=e.onDecreaseFontSize,y=e.onIncreaseFontSize,k=e.onToggleDirection,p=e.onToggleLayout,x=e.onToggleFullscreen,m=r.dg(t.Id),v=s((0,l.useState)("rtl"===m.langDir),2),g=v[0],h=v[1],j=s((0,l.useState)(2===m.pagesPerView),2),A=j[0],C=j[1],O=s((0,l.useState)(!1),2),w=O[0],N=O[1],_=(0,l.useCallback)((function(){null==k||k(),h((function(e){return!e}))}),[k]),S=(0,l.useCallback)((function(){null==p||p(),C((function(e){return!e}))}),[p]),T=(0,l.useCallback)((function(){null==x||x(),N((function(e){return!e}))}),[x]);return(0,o.jsxs)("div",{className:"bookOsd",children:[(0,o.jsxs)("div",{className:"bookOsdRow bookOsdTop",children:[(0,o.jsx)(a.A,{onClick:n,icon:"arrow_back",title:i.Ay.translate("ButtonBack")}),(0,o.jsx)("span",{className:"bookOsdTitle",children:t.Name})]}),(0,o.jsxs)("div",{className:"bookOsdRow bookOsdBottom",children:[(0,o.jsx)(a.A,{onClick:c,icon:"navigate_before",title:i.Ay.translate("Previous")}),(0,o.jsx)(a.A,{onClick:u,icon:"navigate_next",title:i.Ay.translate("Next")}),(0,o.jsx)("div",{className:"bookOsdSpacer"}),f&&(0,o.jsx)(a.A,{onClick:f,icon:"toc",title:i.Ay.translate("TableOfContents")}),d&&(0,o.jsx)(a.A,{onClick:d,icon:"remove_red_eye",title:i.Ay.translate("LabelTheme")}),b&&(0,o.jsx)(a.A,{onClick:b,icon:"text_decrease",title:i.Ay.translate("Smaller")}),y&&(0,o.jsx)(a.A,{onClick:y,icon:"text_increase",title:i.Ay.translate("Larger")}),k&&(0,o.jsx)(a.A,{onClick:_,icon:g?"arrow_circle_left":"arrow_circle_right",title:i.Ay.translate(g?"ViewRightToLeft":"ViewLeftToRight")}),p&&(0,o.jsx)(a.A,{onClick:S,icon:A?"import_contacts":"devices_fold",title:i.Ay.translate(A?"ViewDoublePage":"ViewSinglePage")}),x&&(0,o.jsx)(a.A,{onClick:T,icon:w?"fullscreen_exit":"fullscreen",title:i.Ay.translate(w?"ExitFullscreen":"Fullscreen")})]})]})}}}]);