11"use strict" ;
2+ var __importDefault = ( this && this . __importDefault ) || function ( mod ) {
3+ return ( mod && mod . __esModule ) ? mod : { "default" : mod } ;
4+ } ;
25var __importStar = ( this && this . __importStar ) || function ( mod ) {
36 if ( mod && mod . __esModule ) return mod ;
47 var result = { } ;
58 if ( mod != null ) for ( var k in mod ) if ( Object . hasOwnProperty . call ( mod , k ) ) result [ k ] = mod [ k ] ;
69 result [ "default" ] = mod ;
710 return result ;
811} ;
9- var __importDefault = ( this && this . __importDefault ) || function ( mod ) {
10- return ( mod && mod . __esModule ) ? mod : { "default" : mod } ;
11- } ;
1212Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
13- const React = __importStar ( require ( "react" ) ) ;
13+ const react_1 = __importDefault ( require ( "react" ) ) ;
1414const toggle_fullscreen_1 = __importStar ( require ( "toggle-fullscreen" ) ) ;
1515const arrayutils_1 = require ( "./arrayutils" ) ;
1616const calcProgress_1 = require ( "./calcProgress" ) ;
@@ -21,7 +21,7 @@ const Preview_1 = __importDefault(require("./Preview"));
2121const ProgressBar_1 = __importDefault ( require ( "./ProgressBar" ) ) ;
2222const styles_1 = __importDefault ( require ( "./styles" ) ) ;
2323const Viewer_1 = __importDefault ( require ( "./Viewer" ) ) ;
24- class SlideShow extends React . Component {
24+ class SlideShow extends react_1 . default . Component {
2525 constructor ( props ) {
2626 super ( props ) ;
2727 this . onClickPrevButton = ( ) => {
@@ -156,28 +156,28 @@ class SlideShow extends React.Component {
156156 } ) ;
157157 }
158158 render ( ) {
159- return ( React . createElement ( "div" , { style : styles_1 . default . ROOT , className : this . props . className } ,
160- React . createElement ( "div" , { className : `${ this . props . className } -wrapper` , style : { margin : "auto" } } ,
161- React . createElement ( Viewer_1 . default , { imgClassName : `${ this . props . className } -image` , styles : styles_1 . default , src : this . state . src , onClickPrevButton : this . onClickPrevButton , onClickNextButton : this . onClickNextButton , timestamp : this . timestamp } ) ,
162- React . createElement ( Preview_1 . default , { opacity : this . state . preview , previewIndex : this . state . previewIndex , images : this . props . images , isFullScreen : this . state . isFullScreen , imgClassName : `${ this . props . className } -image` } ) ,
163- React . createElement ( ProgressBar_1 . default , { style : styles_1 . default . PROGRESS_BAR , onClick : this . onClickProgressBar , onMouseMove : this . onMouseMoveProgressBar , onMouseLeave : this . onMouseLeaveProgressBar , progress : this . state . progress } ) ,
164- React . createElement ( "div" , { style : styles_1 . default . BAR } ,
165- React . createElement ( PagingButton_1 . default , { onClick : this . onClickPrevButton } , this . props . prevIcon ) ,
166- React . createElement ( "span" , { style : styles_1 . default . PAGE_VIEW } , `${ this . state . index + 1 } / ${ this . props . images ? this . props . images . length : 0 } ` ) ,
167- React . createElement ( PagingButton_1 . default , { onClick : this . onClickNextButton } , this . props . nextIcon ) ,
168- this . props . showFullscreenIcon ? ( React . createElement ( FullscreenButton_1 . default , { onClick : this . onChangeFullScreen } ,
169- React . createElement ( FullscreenIcon_1 . default , { isFullScreen : this . state . isFullScreen } ) ) ) : null ) ) ) ) ;
159+ return ( react_1 . default . createElement ( "div" , { style : styles_1 . default . ROOT , className : this . props . className } ,
160+ react_1 . default . createElement ( "div" , { className : `${ this . props . className } -wrapper` , style : { margin : "auto" } } ,
161+ react_1 . default . createElement ( Viewer_1 . default , { imgClassName : `${ this . props . className } -image` , styles : styles_1 . default , src : this . state . src , onClickPrevButton : this . onClickPrevButton , onClickNextButton : this . onClickNextButton , timestamp : this . timestamp } ) ,
162+ react_1 . default . createElement ( Preview_1 . default , { opacity : this . state . preview , previewIndex : this . state . previewIndex , images : this . props . images , isFullScreen : this . state . isFullScreen , imgClassName : `${ this . props . className } -image` } ) ,
163+ react_1 . default . createElement ( ProgressBar_1 . default , { style : styles_1 . default . PROGRESS_BAR , onClick : this . onClickProgressBar , onMouseMove : this . onMouseMoveProgressBar , onMouseLeave : this . onMouseLeaveProgressBar , progress : this . state . progress } ) ,
164+ react_1 . default . createElement ( "div" , { style : styles_1 . default . BAR } ,
165+ react_1 . default . createElement ( PagingButton_1 . default , { onClick : this . onClickPrevButton } , this . props . prevIcon ) ,
166+ react_1 . default . createElement ( "span" , { style : styles_1 . default . PAGE_VIEW } , `${ this . state . index + 1 } / ${ this . props . images ? this . props . images . length : 0 } ` ) ,
167+ react_1 . default . createElement ( PagingButton_1 . default , { onClick : this . onClickNextButton } , this . props . nextIcon ) ,
168+ this . props . showFullscreenIcon ? ( react_1 . default . createElement ( FullscreenButton_1 . default , { onClick : this . onChangeFullScreen } ,
169+ react_1 . default . createElement ( FullscreenIcon_1 . default , { isFullScreen : this . state . isFullScreen } ) ) ) : null ) ) ) ) ;
170170 }
171171}
172172exports . default = SlideShow ;
173173SlideShow . defaultProps = {
174174 arrowButtonStyle : styles_1 . default . ARROW_BUTTON ,
175175 style : { } ,
176176 images : [ ] ,
177- prevIcon : ( React . createElement ( "svg" , { style : styles_1 . default . ARROW_BUTTON , viewBox : "0 0 8 8" } ,
178- React . createElement ( "path" , { fill : "#fff" , d : "M4 0l-4 3 4 3v-6zm0 3l4 3v-6l-4 3z" , transform : "translate(0 1)" } ) ) ) ,
179- nextIcon : ( React . createElement ( "svg" , { style : styles_1 . default . ARROW_BUTTON , viewBox : "0 0 8 8" } ,
180- React . createElement ( "path" , { fill : "#fff" , d : "M0 0v6l4-3-4-3zm4 3v3l4-3-4-3v3z" , transform : "translate(0 1)" } ) ) ) ,
177+ prevIcon : ( react_1 . default . createElement ( "svg" , { style : styles_1 . default . ARROW_BUTTON , viewBox : "0 0 8 8" } ,
178+ react_1 . default . createElement ( "path" , { fill : "#fff" , d : "M4 0l-4 3 4 3v-6zm0 3l4 3v-6l-4 3z" , transform : "translate(0 1)" } ) ) ) ,
179+ nextIcon : ( react_1 . default . createElement ( "svg" , { style : styles_1 . default . ARROW_BUTTON , viewBox : "0 0 8 8" } ,
180+ react_1 . default . createElement ( "path" , { fill : "#fff" , d : "M0 0v6l4-3-4-3zm4 3v3l4-3-4-3v3z" , transform : "translate(0 1)" } ) ) ) ,
181181 withTimestamp : false ,
182182 pageWillUpdate : ( ) => {
183183 return ;
0 commit comments