(args, callback)
| 15409 | } |
| 15410 | |
| 15411 | function getRCNotificationInstance(args, callback) { |
| 15412 | var customizePrefixCls = args.prefixCls; |
| 15413 | |
| 15414 | var _globalConfig = Object(_config_provider__WEBPACK_IMPORTED_MODULE_11__[/* globalConfig */ "e"])(), |
| 15415 | getPrefixCls = _globalConfig.getPrefixCls, |
| 15416 | getRootPrefixCls = _globalConfig.getRootPrefixCls; |
| 15417 | |
| 15418 | var prefixCls = getPrefixCls('message', customizePrefixCls || localPrefixCls); |
| 15419 | var rootPrefixCls = getRootPrefixCls(args.rootPrefixCls, prefixCls); |
| 15420 | |
| 15421 | if (messageInstance) { |
| 15422 | callback({ |
| 15423 | prefixCls: prefixCls, |
| 15424 | rootPrefixCls: rootPrefixCls, |
| 15425 | instance: messageInstance |
| 15426 | }); |
| 15427 | return; |
| 15428 | } |
| 15429 | |
| 15430 | var instanceConfig = { |
| 15431 | prefixCls: prefixCls, |
| 15432 | transitionName: hasTransitionName ? transitionName : "".concat(rootPrefixCls, "-").concat(transitionName), |
| 15433 | style: { |
| 15434 | top: defaultTop |
| 15435 | }, |
| 15436 | getContainer: getContainer, |
| 15437 | maxCount: maxCount |
| 15438 | }; |
| 15439 | rc_notification__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"].newInstance(instanceConfig, function (instance) { |
| 15440 | if (messageInstance) { |
| 15441 | callback({ |
| 15442 | prefixCls: prefixCls, |
| 15443 | rootPrefixCls: rootPrefixCls, |
| 15444 | instance: messageInstance |
| 15445 | }); |
| 15446 | return; |
| 15447 | } |
| 15448 | |
| 15449 | messageInstance = instance; |
| 15450 | |
| 15451 | if (false) {} |
| 15452 | |
| 15453 | callback({ |
| 15454 | prefixCls: prefixCls, |
| 15455 | rootPrefixCls: rootPrefixCls, |
| 15456 | instance: instance |
| 15457 | }); |
| 15458 | }); |
| 15459 | } |
| 15460 | |
| 15461 | var typeToIcon = { |
| 15462 | info: _ant_design_icons_es_icons_InfoCircleFilled__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"], |
no test coverage detected
searching dependent graphs…