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