@@ -65,17 +65,47 @@ Object.defineProperty(exports, "__esModule", {
65
65
} ) ;
66
66
exports . default = void 0 ;
67
67
68
- function _classCallCheck ( instance , Constructor ) { if ( ! ( instance instanceof Constructor ) ) { throw new TypeError ( "Cannot call a class as a function" ) ; } }
68
+ function _extends ( ) {
69
+ _extends = Object . assign || function ( target ) {
70
+ for ( var i = 1 ; i < arguments . length ; i ++ ) {
71
+ var source = arguments [ i ] ;
72
+
73
+ for ( var key in source ) {
74
+ if ( Object . prototype . hasOwnProperty . call ( source , key ) ) {
75
+ target [ key ] = source [ key ] ;
76
+ }
77
+ }
78
+ }
79
+
80
+ return target ;
81
+ } ;
69
82
70
- function _defineProperties ( target , props ) { for ( var i = 0 ; i < props . length ; i ++ ) { var descriptor = props [ i ] ; descriptor . enumerable = descriptor . enumerable || false ; descriptor . configurable = true ; if ( "value" in descriptor ) descriptor . writable = true ; Object . defineProperty ( target , descriptor . key , descriptor ) ; } }
83
+ return _extends . apply ( this , arguments ) ;
84
+ }
85
+
86
+ function _classCallCheck ( instance , Constructor ) {
87
+ if ( ! ( instance instanceof Constructor ) ) {
88
+ throw new TypeError ( "Cannot call a class as a function" ) ;
89
+ }
90
+ }
71
91
72
- function _createClass ( Constructor , protoProps , staticProps ) { if ( protoProps ) _defineProperties ( Constructor . prototype , protoProps ) ; if ( staticProps ) _defineProperties ( Constructor , staticProps ) ; return Constructor ; }
92
+ function _defineProperties ( target , props ) {
93
+ for ( var i = 0 ; i < props . length ; i ++ ) {
94
+ var descriptor = props [ i ] ;
95
+ descriptor . enumerable = descriptor . enumerable || false ;
96
+ descriptor . configurable = true ;
97
+ if ( "value" in descriptor ) descriptor . writable = true ;
98
+ Object . defineProperty ( target , descriptor . key , descriptor ) ;
99
+ }
100
+ }
73
101
74
- require ( 'es6-object-assign/auto' ) ;
102
+ function _createClass ( Constructor , protoProps , staticProps ) {
103
+ if ( protoProps ) _defineProperties ( Constructor . prototype , protoProps ) ;
104
+ if ( staticProps ) _defineProperties ( Constructor , staticProps ) ;
105
+ return Constructor ;
106
+ }
75
107
76
- var Keyframes =
77
- /*#__PURE__*/
78
- function ( ) {
108
+ var Keyframes = function ( ) {
79
109
function Keyframes ( elem ) {
80
110
_classCallCheck ( this , Keyframes ) ;
81
111
@@ -149,14 +179,15 @@ function () {
149
179
key : "playCSS" ,
150
180
value : function playCSS ( frameOptions ) {
151
181
var animObjToStr = function animObjToStr ( obj ) {
152
- var newObj = Object . assign ( { } , {
182
+ var newObj = _extends ( { } , {
153
183
duration : '0s' ,
154
184
timingFunction : 'ease' ,
155
185
delay : '0s' ,
156
186
iterationCount : 1 ,
157
187
direction : 'normal' ,
158
188
fillMode : 'forwards'
159
189
} , obj ) ;
190
+
160
191
return [ newObj . name , newObj . duration , newObj . timingFunction , newObj . delay , newObj . iterationCount , newObj . direction , newObj . fillMode ] . join ( ' ' ) ;
161
192
} ;
162
193
@@ -268,61 +299,4 @@ if (typeof document !== 'undefined') {
268
299
var _default = Keyframes ;
269
300
exports . default = _default ;
270
301
271
- } , { "es6-object-assign/auto" :3 } ] , 3 :[ function ( require , module , exports ) {
272
- 'use strict' ;
273
-
274
- require ( './index' ) . polyfill ( ) ;
275
-
276
- } , { "./index" :4 } ] , 4 :[ function ( require , module , exports ) {
277
- /**
278
- * Code refactored from Mozilla Developer Network:
279
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
280
- */
281
- 'use strict' ;
282
-
283
- function assign ( target , firstSource ) {
284
- if ( target === undefined || target === null ) {
285
- throw new TypeError ( 'Cannot convert first argument to object' ) ;
286
- }
287
-
288
- var to = Object ( target ) ;
289
-
290
- for ( var i = 1 ; i < arguments . length ; i ++ ) {
291
- var nextSource = arguments [ i ] ;
292
-
293
- if ( nextSource === undefined || nextSource === null ) {
294
- continue ;
295
- }
296
-
297
- var keysArray = Object . keys ( Object ( nextSource ) ) ;
298
-
299
- for ( var nextIndex = 0 , len = keysArray . length ; nextIndex < len ; nextIndex ++ ) {
300
- var nextKey = keysArray [ nextIndex ] ;
301
- var desc = Object . getOwnPropertyDescriptor ( nextSource , nextKey ) ;
302
-
303
- if ( desc !== undefined && desc . enumerable ) {
304
- to [ nextKey ] = nextSource [ nextKey ] ;
305
- }
306
- }
307
- }
308
-
309
- return to ;
310
- }
311
-
312
- function polyfill ( ) {
313
- if ( ! Object . assign ) {
314
- Object . defineProperty ( Object , 'assign' , {
315
- enumerable : false ,
316
- configurable : true ,
317
- writable : true ,
318
- value : assign
319
- } ) ;
320
- }
321
- }
322
-
323
- module . exports = {
324
- assign : assign ,
325
- polyfill : polyfill
326
- } ;
327
-
328
302
} , { } ] } , { } , [ 1 ] ) ;
0 commit comments