@@ -1132,6 +1132,8 @@ return /******/ (function(modules) { // webpackBootstrap
11321132
11331133 'use strict' ;
11341134
1135+ var _typeof = typeof Symbol === "function" && typeof Symbol . iterator === "symbol" ? function ( obj ) { return typeof obj ; } : function ( obj ) { return obj && typeof Symbol === "function" && obj . constructor === Symbol && obj !== Symbol . prototype ? "symbol" : typeof obj ; } ;
1136+
11351137 var React = __webpack_require__ ( 2 ) ;
11361138 var div = React . DOM . div ;
11371139 var focusManager = __webpack_require__ ( 14 ) ;
@@ -1141,16 +1143,8 @@ return /******/ (function(modules) { // webpackBootstrap
11411143
11421144 // so that our CSS is statically analyzable
11431145 var CLASS_NAMES = {
1144- overlay : {
1145- base : 'ReactModal__Overlay' ,
1146- afterOpen : 'ReactModal__Overlay--after-open' ,
1147- beforeClose : 'ReactModal__Overlay--before-close'
1148- } ,
1149- content : {
1150- base : 'ReactModal__Content' ,
1151- afterOpen : 'ReactModal__Content--after-open' ,
1152- beforeClose : 'ReactModal__Content--before-close'
1153- }
1146+ overlay : 'ReactModal__Overlay' ,
1147+ content : 'ReactModal__Content'
11541148 } ;
11551149
11561150 var ModalPortal = module . exports = createReactClass ( {
@@ -1296,10 +1290,19 @@ return /******/ (function(modules) { // webpackBootstrap
12961290 } ,
12971291
12981292 buildClassName : function buildClassName ( which , additional ) {
1299- var className = CLASS_NAMES [ which ] . base ;
1300- if ( this . state . afterOpen ) className += ' ' + CLASS_NAMES [ which ] . afterOpen ;
1301- if ( this . state . beforeClose ) className += ' ' + CLASS_NAMES [ which ] . beforeClose ;
1302- return additional ? className + ' ' + additional : className ;
1293+ var classNames = ( typeof additional === 'undefined' ? 'undefined' : _typeof ( additional ) ) === 'object' ? additional : {
1294+ base : CLASS_NAMES [ which ] ,
1295+ afterOpen : CLASS_NAMES [ which ] + "--after-open" ,
1296+ beforeClose : CLASS_NAMES [ which ] + "--before-close"
1297+ } ;
1298+ var className = classNames . base ;
1299+ if ( this . state . afterOpen ) {
1300+ className += " " + classNames . afterOpen ;
1301+ }
1302+ if ( this . state . beforeClose ) {
1303+ className += " " + classNames . beforeClose ;
1304+ }
1305+ return typeof additional === 'string' && additional ? [ className , additional ] . join ( " " ) : className ;
13031306 } ,
13041307
13051308 render : function render ( ) {
0 commit comments