File indexing completed on 2024-12-29 05:25:48
0001 (window.webpackJsonp=window.webpackJsonp||[]).push([[4],{149:function(n,e,o){var r=o(5),t=o(150);"string"==typeof(t=t.__esModule?t.default:t)&&(t=[[n.i,t,""]]);var a={insert:"head",singleton:!1};r(t,a);n.exports=t.locals||{}},150:function(n,e,o){(e=o(6)(!1)).push([n.i,'#book-reader-wrapper {\n position: relative;\n height: inherit;\n padding: 10px 10px 0 10px;\n}\n#book-reader-wrapper.is-mobile #book-menu {\n width: 100%;\n}\n#book-reader-wrapper #ajax-loader {\n width: 24px;\n height: 24px;\n position: absolute;\n top: 50%;\n left: 50%;\n margin-left: -12px;\n margin-top: -12px;\n background-color: white;\n}\n#book-reader-wrapper #book-container {\n border: 1px solid #ccc;\n width: 100% !important;\n display: block !important;\n padding: 20px;\n box-sizing: border-box;\n height: 100%;\n background-color: #524631;\n text-align: center;\n}\n#book-reader-wrapper #book-container .epub-container {\n border: 1px solid #eee;\n background: white;\n margin: 0 auto;\n}\n#book-reader-wrapper #book-pager {\n position: absolute;\n bottom: 2px;\n z-index: 100;\n font-weight: bold;\n left: 0;\n width: 100%;\n font-size: 14px;\n margin-bottom: 5px;\n}\n#book-reader-wrapper #book-pager div {\n display: inline;\n}\n#book-reader-wrapper #book-pager div input[type="number"] {\n width: 30px;\n display: inline-block;\n padding: 2px;\n margin: 0 5px 0 0;\n height: 30px;\n}\n#book-reader-wrapper #book-pager div span {\n margin-right: 5px;\n}\n#book-reader-wrapper #book-pager div a {\n cursor: pointer;\n}\n#book-reader-wrapper .arrow {\n outline: none;\n border: none;\n background: none;\n position: absolute;\n top: 50%;\n margin-top: -10px !important;\n font-size: 25px;\n padding: 0px 10px;\n color: #e2e2e2;\n font-family: arial, sans-serif;\n cursor: pointer;\n user-select: none;\n z-index: 100;\n font-weight: normal;\n top: auto;\n bottom: 6px;\n z-index: 10000;\n}\n#book-reader-wrapper .arrow#prev {\n left: 40px !important;\n}\n#book-reader-wrapper .arrow#next {\n right: 40px !important;\n}\n#book-reader-wrapper .arrow:hover,\n#book-reader-wrapper .navlink:hover {\n color: #777;\n}\n#book-reader-wrapper .arrow:active,\n#book-reader-wrapper .navlink:hover {\n color: #000;\n}\n#book-reader-wrapper #toc-menu-toggle {\n position: absolute;\n bottom: 8px;\n left: 20px;\n z-index: 300;\n font-size: 22px;\n color: #e2e2e2;\n cursor: pointer;\n}\n#book-reader-wrapper #book-menu {\n position: absolute;\n top: 10px;\n left: 10px;\n list-style-type: none;\n margin: 0;\n padding: 0 20px 0 40px;\n background-color: #f7f7f7;\n z-index: 199;\n max-width: 100%;\n height: calc(100% - 10px);\n /* border-radius: 5px 0 0 5px; */\n overflow-y: scroll;\n text-align: left;\n}\n#book-reader-wrapper #book-menu li a {\n padding: 5px;\n cursor: pointer;\n display: block;\n font-size: 12px;\n}\n#book-reader-wrapper #book-menu li a:hover {\n background: rgba(0, 0, 0, 0.1);\n}\n#book-reader-wrapper #book-menu li > ul {\n padding: 0 0 0 10px;\n list-style-type: none;\n margin: 5px 0 0 0;\n}\n#book-reader-wrapper #title {\n width: 900px;\n min-height: 18px;\n margin: 10px auto;\n text-align: center;\n font-size: 16px;\n color: #E2E2E2;\n font-weight: 400;\n}\n#book-reader-wrapper #title:hover {\n color: #777;\n}\n#book-reader-wrapper #viewer.spreads {\n width: 100%;\n height: 100%;\n box-shadow: 0 0 4px #ccc;\n border-radius: 5px;\n padding: 0;\n position: relative;\n margin: 0;\n background: transparent center center no-repeat;\n top: 0;\n padding: 0px;\n}\n#book-reader-wrapper #viewer.spreads .epub-view > iframe {\n background: white;\n}\n#book-reader-wrapper #viewer.spreads .epub-view > iframe a:hover {\n color: black !important;\n}\n@media (min-width: 969px) {\n #book-reader-wrapper {\n /*#viewer.spreads:after {\n position: absolute;\n width: 1px;\n border-right: 1px #000 solid;\n height: 90%;\n z-index: 1;\n left: 50%;\n margin-left: -1px;\n top: 5%;\n opacity: .15;\n box-shadow: -2px 0 15px rgba(0, 0, 0, 1);\n content: "";\n }*/\n }\n}\n#book-reader-wrapper #viewer.scrolled {\n overflow: hidden;\n width: 800px;\n margin: 0 auto;\n position: relative;\n background: center center no-repeat;\n}\n#book-reader-wrapper #viewer.scrolled .epub-container {\n background: white;\n box-shadow: 0 0 4px #ccc;\n margin: 10px;\n padding: 20px;\n}\n#book-reader-wrapper #viewer.scrolled .epub-view > iframe {\n background: white;\n}\n#book-reader-wrapper #toc {\n display: block;\n margin: 10px auto;\n}\n@media (min-width: 1000px) {\n #book-reader-wrapper #viewer.spreads.single:after {\n display: none;\n }\n #book-reader-wrapper #prev {\n left: 40px;\n }\n #book-reader-wrapper #next {\n right: 40px;\n }\n}\n#book-reader-wrapper .navlink {\n margin: 14px;\n display: block;\n text-align: center;\n text-decoration: none;\n color: #ccc;\n}\n#book-reader-wrapper #book-wrapper {\n width: 480px;\n height: 640px;\n overflow: hidden;\n border: 1px solid #ccc;\n margin: 28px auto;\n background: #fff;\n border-radius: 0 5px 5px 0;\n position: absolute;\n}\n#book-reader-wrapper #book-viewer {\n width: 480px;\n height: 660px;\n margin: -30px auto;\n -moz-box-shadow: inset 10px 0 20px rgba(0, 0, 0, 0.1);\n -webkit-box-shadow: inset 10px 0 20px rgba(0, 0, 0, 0.1);\n box-shadow: inset 10px 0 20px rgba(0, 0, 0, 0.1);\n}\n#book-reader-wrapper #book-viewer iframe {\n padding: 40px 40px;\n}\n#book-reader-wrapper #controls {\n position: absolute;\n bottom: 16px;\n left: 50%;\n width: 400px;\n margin-left: -200px;\n text-align: center;\n display: none;\n}\n#book-reader-wrapper #controls > input[type=range] {\n width: 400px;\n}\n#book-reader-wrapper #navigation {\n width: 400px;\n height: 100vh;\n position: absolute;\n overflow: auto;\n top: 0;\n left: 0;\n background: #777;\n -webkit-transition: -webkit-transform 0.25s ease-out;\n -moz-transition: -moz-transform 0.25s ease-out;\n -ms-transition: -moz-transform 0.25s ease-out;\n transition: transform 0.25s ease-out;\n}\n#book-reader-wrapper #navigation.fixed {\n position: fixed;\n}\n#book-reader-wrapper #navigation h1 {\n width: 200px;\n font-size: 16px;\n font-weight: normal;\n color: #fff;\n margin-bottom: 10px;\n}\n#book-reader-wrapper #navigation h2 {\n font-size: 14px;\n font-weight: normal;\n color: #B0B0B0;\n margin-bottom: 20px;\n}\n#book-reader-wrapper #navigation ul {\n padding-left: 36px;\n margin-left: 0;\n margin-top: 12px;\n margin-bottom: 12px;\n width: 340px;\n}\n#book-reader-wrapper #navigation ul li {\n list-style: decimal;\n margin-bottom: 10px;\n color: #cccddd;\n font-size: 12px;\n padding-left: 0;\n margin-left: 0;\n}\n#book-reader-wrapper #navigation ul li a {\n color: #ccc;\n text-decoration: none;\n}\n#book-reader-wrapper #navigation ul li a:hover {\n color: #fff;\n text-decoration: underline;\n}\n#book-reader-wrapper #navigation ul li a.active {\n color: #fff;\n}\n#book-reader-wrapper #navigation #cover {\n display: block;\n margin: 24px auto;\n}\n#book-reader-wrapper #navigation #closer {\n position: absolute;\n top: 0;\n right: 0;\n padding: 12px;\n color: #cccddd;\n width: 24px;\n}\n#book-reader-wrapper #navigation.closed {\n -webkit-transform: translate(-400px, 0);\n -moz-transform: translate(-400px, 0);\n -ms-transform: translate(-400px, 0);\n transform: translate(-400px, 0);\n}\n#book-reader-wrapper svg {\n display: block;\n}\n#book-reader-wrapper .close-x {\n stroke: #cccddd;\n fill: transparent;\n stroke-linecap: round;\n stroke-width: 5;\n}\n#book-reader-wrapper .close-x:hover {\n stroke: #fff;\n}\n#book-reader-wrapper #opener {\n position: absolute;\n top: 0;\n left: 0;\n padding: 10px;\n stroke: #E2E2E2;\n fill: #E2E2E2;\n}\n#book-reader-wrapper #opener:hover {\n stroke: #777;\n fill: #777;\n}\n',""]),n.exports=e},233:function(n,e,o){"use strict";o.r(e);var r=o(0),t=o.n(r),a=o(1);o(149);function i(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){if(!(Symbol.iterator in Object(n))&&"[object Arguments]"!==Object.prototype.toString.call(n))return;var o=[],r=!0,t=!1,a=void 0;try{for(var i,p=n[Symbol.iterator]();!(r=(i=p.next()).done)&&(o.push(i.value),!e||o.length!==e);r=!0);}catch(n){t=!0,a=n}finally{try{r||null==p.return||p.return()}finally{if(t)throw a}}return o}(n,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function p(n){var e;if(n.item.subitems&&n.item.subitems.length>0){var o=n.item.subitems.map((function(e,o){return t.a.createElement(p,{goToTocItem:n.goToTocItem,key:o,item:e})}));e=t.a.createElement("ul",null," ",o," ")}return t.a.createElement("li",null,t.a.createElement("a",{onClick:function(){n.goToTocItem(n.item)}},n.item.label),e)}e.default=function(n){var e=i(Object(r.useState)(!0),2),o=e[0],d=e[1],l=i(Object(r.useState)(),2),c=l[0],s=l[1],b=i(Object(r.useState)(),2),w=b[0],u=b[1],x=i(Object(r.useState)(),2),m=x[0],g=x[1],k=i(Object(r.useState)(!1),2),f=k[0],h=k[1],v=i(Object(r.useState)(!1),2),y=v[0],E=v[1],z=i(Object(r.useState)(!1),2),j=z[0],S=z[1],O=i(Object(r.useState)(0),2),T=O[0],_=O[1],I=i(Object(r.useState)(!1),2),C=I[0],N=I[1];function A(){window.book=ePub(n.slide.url,{}),window.rendition=book.renderTo("viewer",{flow:"paginated",manager:"default",spread:"always",width:n.width-20,height:n.height-35}),s(rendition),window.displayed=window.rendition.display(window.location.hash.substr(1)||void 0),displayed.then((function(){})),window.book.ready.then((function(){var n=localStorage.getItem(book.key()+"-locations");return n?window.book.locations.load(n):window.book.locations.generate(1024)})).then((function(n){localStorage.setItem(book.key()+"-locations",book.locations.save())})),window.rendition.on("relocated",(function(n){u(book.locations.locationFromCfi(n.start.cfi)),g(book.locations.total),!0===o&&d(!1),!0===rendition.currentLocation().atStart?E(!1):E(!0),!0===rendition.currentLocation().atEnd?S(!1):S(!0)}))}function B(){h(!0!==f)}function M(n){c.display(n.href),B()}t.a.useEffect((function(){A()}),[]),t.a.useEffect((function(){window.book&&window.book.destroy(),A()}),[n.cinemaMode,n.width]),t.a.useEffect((function(){0===m&&function n(){var e=window.book.locations.total;0===e?setTimeout((function(){n()}),200):g(e)}()}),[m,window.book]),t.a.useEffect((function(){var e;T>3&&!1===C&&(e="https://"+window.location.hostname+"/p/"+n.product.project_id+"/startmediaviewajax?collection_id="+n.slide.collection_id+"&file_id="+n.slide.file_id+"&type_id=3",$.ajax({url:e}).done((function(n){N(!0)})))}),[T]);var J,L,F,P,q,D,G=t.a.createElement("div",{id:"ajax-loader"});if(!1===o&&(G="",!0===y&&(L=t.a.createElement("span",null,t.a.createElement("a",{onClick:function(){c.prev()}},"< previous"))),!0===j&&0!==m&&(F=t.a.createElement("span",null,t.a.createElement("a",{id:"next-page-button",onClick:function(){return _(T+1),void c.next()}},"next >"))),0!==m&&(P=t.a.createElement("span",null,t.a.createElement("input",{type:"number",className:"form-control",placeholder:w,min:"0",max:m,onChange:function(n){return e=n.target.value,o=c.book.locations._locations[e],void c.display(o);var e,o}})," / "+m)),J=t.a.createElement("div",{id:"book-pager"},t.a.createElement("div",null,L,P,F))),c&&(c.book.navigation&&(D=t.a.createElement("div",{id:"toc-menu-toggle",onClick:B},t.a.createElement("span",{className:"glyphicon glyphicon-menu-hamburger"}))),!0===f)){var H=c.book.navigation.toc.map((function(n,e){return t.a.createElement(p,{key:e,goToTocItem:M,item:n})}));q=t.a.createElement("ul",{id:"book-menu"},H)}var K=!0===a.isMobile?"is-mobile":"is-desktop";return t.a.createElement("div",{id:"book-reader-wrapper",className:K},G,D,t.a.createElement("div",{id:"viewer",className:"spreads"}),J,q)}}}]);