{"version":3,"sources":["../modal/style/index.jsx","../node_modules/rc-dialog/es/LazyRenderBox.js","../node_modules/rc-dialog/es/Dialog.js","../node_modules/rc-dialog/es/DialogWrap.js","../modal/Modal.jsx","../modal/ActionButton.jsx","../modal/confirm.jsx","../modal/index.jsx","../modal/locale.jsx"],"names":["__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","LazyRenderBox","_React$Component","_classCallCheck","this","_possibleConstructorReturn","apply","arguments","_inherits","shouldComponentUpdate","nextProps","forceRender","hiddenClassName","visible","render","_a","props","className","restProps","useClassName","React","_extends","uuid","getScroll","w","top","ret","method","d","document","documentElement","body","setTransformOrigin","node","value","style","forEach","prefix","Dialog","_this","inTransition","onAnimateLeave","afterClose","wrap","display","switchScrollingEffect","onDialogMouseDown","dialogMouseDown","onMaskMouseUp","timeoutId","setTimeout","onMaskClick","Date","now","openTime","target","currentTarget","close","onKeyDown","keyboard","keyCode","KeyCode","ESC","stopPropagation","TAB","activeElement","sentinelStart","shiftKey","sentinelEnd","focus","getDialogElement","closable","prefixCls","dest","undefined","width","height","footer","ref","saveRef","header","title","id","titleId","closer","type","onClick","closeIcon","sentinelStyle","overflow","transitionName","getTransitionName","dialogElement","key","role","onMouseDown","tabIndex","bodyStyle","bodyProps","children","Animate","showProp","onLeave","component","transitionAppear","destroyOnClose","getZIndexStyle","zIndex","getWrapStyle","wrapStyle","getMaskStyle","maskStyle","getMaskElement","maskElement","mask","maskTransition","getMaskTransitionName","maskProps","maskTransitionName","animation","maskAnimation","onClose","name","componentDidMount","componentDidUpdate","getContainer","prevProps","_props","focusTriggerAfterClose","mousePosition","tryFocus","dialogNode","ReactDOM","dialog","elOffset","el","rect","getBoundingClientRect","pos","left","doc","ownerDocument","defaultView","parentWindow","offset","x","y","lastOutSideFocusNode","componentWillUnmount","_props2","getOpenCount","clearTimeout","contains","maskClosable","wrapClassName","onMouseUp","wrapProps","defaultProps","Portal","childProps","destroyFns","window","addEventListener","pageY","Modal","onCancel","onOk","okText","okType","cancelText","confirmLoading","handleCancel","locale","loading","handleOk","getContextPopupContainer","getPopupContainer","getPrefixCls","customizePrefixCls","centered","defaultFooter","componentName","defaultLocale","getConfirmLocale","closeIconToRender","classNames","PropTypes","ActionButton","actionFn","closeModal","console","$this","buttonProps","IS_REACT_16","ConfirmDialog","okButtonProps","cancelButtonProps","iconType","warning","icon","contentPrefixCls","okCancel","runtimeLocale","autoFocusButton","classString","cancelButton","autoFocus","iconNode","triggerCancel","div","currentConfig","unmountResult","args","param","config","fn","destroy","update","modalWarn","confirm","changeConfirmLocale","newLocale"],"mappings":"iKAAA,sB,6ICIIA,EAAgC,SAAUC,EAAGC,GAC7C,IAAIC,EAAI,GACR,IAAK,IAAIC,KAAKH,EACNI,OAAOC,UAAUC,eAAeC,KAAKP,EAAGG,IAAMF,EAAEO,QAAQL,GAAK,IAAGD,EAAEC,GAAKH,EAAEG,IAChF,GAAS,MAALH,GAAqD,oBAAjCI,OAAOK,sBAA2C,KAAIC,EAAI,EAAb,IAAgBP,EAAIC,OAAOK,sBAAsBT,GAAIU,EAAIP,EAAEQ,OAAQD,IACjIT,EAAEO,QAAQL,EAAEO,IAAM,IAAGR,EAAEC,EAAEO,IAAMV,EAAEG,EAAEO,KAC1C,OAAOR,GAqCGU,EAjCK,SAAUC,GAG1B,SAASD,IAGL,OAFAE,IAAgBC,KAAMH,GAEfI,IAA2BD,KAAMF,EAAiBI,MAAMF,KAAMG,YAwBzE,OA7BAC,IAAUP,EAAeC,GAQzBD,EAAcP,UAAUe,sBAAwB,SAA+BC,GAC3E,QAAIA,EAAUC,gBAGLD,EAAUE,mBAAqBF,EAAUG,UAGtDZ,EAAcP,UAAUoB,OAAS,WAC7B,IAAIC,EAAKX,KAAKY,MACVC,EAAYF,EAAGE,UACfL,EAAkBG,EAAGH,gBACrBC,EAAUE,EAAGF,QAEbK,GADcH,EAAGJ,YACLvB,EAAO2B,EAAI,CAAC,YAAa,kBAAmB,UAAW,iBACn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OAFA1M,KACAkJ,UACO,CACHwD,QADG,EAEHC,OARJ,YAEI3M,EADAoM,EAAgB,GAAc,MAAd,GAAhBA,M,iNCnFR,SAASQ,GAAU1M,GAEf,OAAO2M,GADQ,GAAc,CAAEtI,KAAF,UAAmBkH,KAAM,qBAAMlH,KAAK,uBAAwBoH,UAAU,GAAnG,IAGJrC,OAAa,SAAgBpJ,GAEzB,OAAO2M,GADQ,GAAc,CAAEtI,KAAF,OAAgBkH,KAAM,qBAAMlH,KAAK,gBAAiBoH,UAAU,GAAzF,KAGJrC,UAAgB,SAAmBpJ,GAE/B,OAAO2M,GADQ,GAAc,CAAEtI,KAAF,UAAmBkH,KAAM,qBAAMlH,KAAK,iBAAkBoH,UAAU,GAA7F,KAGJrC,QAAc,SAAiBpJ,GAE3B,OAAO2M,GADQ,GAAc,CAAEtI,KAAF,QAAiBkH,KAAM,qBAAMlH,KAAK,iBAAkBoH,UAAU,GAA3F,KAGJrC,aACAA,UACAA,UAAgB,SAAmBpJ,GAE/B,OAAO2M,GADQ,GAAc,CAAEtI,KAAF,UAAmBoH,UAAU,GAA1D,KAGJrC,aAAmB,WACf,KAAOJ,EAAP,QAA0B,CACtB,IAAMvG,EAAQuG,EAAd,MACA,GACIvG,MAIZ,O,iUCjCA,IAAIiJ,EAAgB,KAAkBpB,IAAtC,OACO,SAASsC,EAAoBC,GAE5BnB,EADJ,EACoB,EAAc,KAAd,GAAhBA,GAGgB,KAAkBpB,IAAlCoB,OAGD,SAASnB,IACZ","file":"static/js/3.8d25ea61.chunk.js","sourcesContent":["import '../../style/index.less';\nimport './index.less';\n// style dependencies\nimport '../../button/style';\n","import _extends from \"babel-runtime/helpers/extends\";\nimport _classCallCheck from \"babel-runtime/helpers/classCallCheck\";\nimport _possibleConstructorReturn from \"babel-runtime/helpers/possibleConstructorReturn\";\nimport _inherits from \"babel-runtime/helpers/inherits\";\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0) t[p[i]] = s[p[i]];\n }return t;\n};\nimport * as React from 'react';\n\nvar LazyRenderBox = function (_React$Component) {\n _inherits(LazyRenderBox, _React$Component);\n\n function LazyRenderBox() {\n _classCallCheck(this, LazyRenderBox);\n\n return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));\n }\n\n LazyRenderBox.prototype.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {\n if (nextProps.forceRender) {\n return true;\n }\n return !!nextProps.hiddenClassName || !!nextProps.visible;\n };\n\n LazyRenderBox.prototype.render = function render() {\n var _a = this.props,\n className = _a.className,\n hiddenClassName = _a.hiddenClassName,\n visible = _a.visible,\n forceRender = _a.forceRender,\n restProps = __rest(_a, [\"className\", \"hiddenClassName\", \"visible\", \"forceRender\"]);\n var useClassName = className;\n if (!!hiddenClassName && !visible) {\n useClassName += \" \" + hiddenClassName;\n }\n return React.createElement(\"div\", _extends({}, restProps, { className: useClassName }));\n };\n\n return LazyRenderBox;\n}(React.Component);\n\nexport default LazyRenderBox;","import _extends from 'babel-runtime/helpers/extends';\nimport _classCallCheck from 'babel-runtime/helpers/classCallCheck';\nimport _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';\nimport _inherits from 'babel-runtime/helpers/inherits';\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport KeyCode from 'rc-util/es/KeyCode';\nimport contains from 'rc-util/es/Dom/contains';\nimport Animate from 'rc-animate';\nimport LazyRenderBox from './LazyRenderBox';\nvar uuid = 0;\n/* eslint react/no-is-mounted:0 */\nfunction getScroll(w, top) {\n var ret = w['page' + (top ? 'Y' : 'X') + 'Offset'];\n var method = 'scroll' + (top ? 'Top' : 'Left');\n if (typeof ret !== 'number') {\n var d = w.document;\n ret = d.documentElement[method];\n if (typeof ret !== 'number') {\n ret = d.body[method];\n }\n }\n return ret;\n}\nfunction setTransformOrigin(node, value) {\n var style = node.style;\n ['Webkit', 'Moz', 'Ms', 'ms'].forEach(function (prefix) {\n style[prefix + 'TransformOrigin'] = value;\n });\n style['transformOrigin'] = value;\n}\nfunction offset(el) {\n var rect = el.getBoundingClientRect();\n var pos = {\n left: rect.left,\n top: rect.top\n };\n var doc = el.ownerDocument;\n var w = doc.defaultView || doc.parentWindow;\n pos.left += getScroll(w);\n pos.top += getScroll(w, true);\n return pos;\n}\n\nvar Dialog = function (_React$Component) {\n _inherits(Dialog, _React$Component);\n\n function Dialog(props) {\n _classCallCheck(this, Dialog);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));\n\n _this.inTransition = false;\n _this.onAnimateLeave = function () {\n var afterClose = _this.props.afterClose;\n // need demo?\n // https://github.com/react-component/dialog/pull/28\n\n if (_this.wrap) {\n _this.wrap.style.display = 'none';\n }\n _this.inTransition = false;\n _this.switchScrollingEffect();\n if (afterClose) {\n afterClose();\n }\n };\n _this.onDialogMouseDown = function () {\n _this.dialogMouseDown = true;\n };\n _this.onMaskMouseUp = function () {\n if (_this.dialogMouseDown) {\n _this.timeoutId = setTimeout(function () {\n _this.dialogMouseDown = false;\n }, 0);\n }\n };\n _this.onMaskClick = function (e) {\n // android trigger click on open (fastclick??)\n if (Date.now() - _this.openTime < 300) {\n return;\n }\n if (e.target === e.currentTarget && !_this.dialogMouseDown) {\n _this.close(e);\n }\n };\n _this.onKeyDown = function (e) {\n var props = _this.props;\n if (props.keyboard && e.keyCode === KeyCode.ESC) {\n e.stopPropagation();\n _this.close(e);\n return;\n }\n // keep focus inside dialog\n if (props.visible) {\n if (e.keyCode === KeyCode.TAB) {\n var activeElement = document.activeElement;\n var sentinelStart = _this.sentinelStart;\n if (e.shiftKey) {\n if (activeElement === sentinelStart) {\n _this.sentinelEnd.focus();\n }\n } else if (activeElement === _this.sentinelEnd) {\n sentinelStart.focus();\n }\n }\n }\n };\n _this.getDialogElement = function () {\n var props = _this.props;\n var closable = props.closable;\n var prefixCls = props.prefixCls;\n var dest = {};\n if (props.width !== undefined) {\n dest.width = props.width;\n }\n if (props.height !== undefined) {\n dest.height = props.height;\n }\n var footer = void 0;\n if (props.footer) {\n footer = React.createElement(\"div\", { className: prefixCls + '-footer', ref: _this.saveRef('footer') }, props.footer);\n }\n var header = void 0;\n if (props.title) {\n header = React.createElement(\"div\", { className: prefixCls + '-header', ref: _this.saveRef('header') }, React.createElement(\"div\", { className: prefixCls + '-title', id: _this.titleId }, props.title));\n }\n var closer = void 0;\n if (closable) {\n closer = React.createElement(\"button\", { type: \"button\", onClick: _this.close, \"aria-label\": \"Close\", className: prefixCls + '-close' }, props.closeIcon || React.createElement(\"span\", { className: prefixCls + '-close-x' }));\n }\n var style = _extends({}, props.style, dest);\n var sentinelStyle = { width: 0, height: 0, overflow: 'hidden' };\n var transitionName = _this.getTransitionName();\n var dialogElement = React.createElement(LazyRenderBox, { key: \"dialog-element\", role: \"document\", ref: _this.saveRef('dialog'), style: style, className: prefixCls + ' ' + (props.className || ''), visible: props.visible, forceRender: props.forceRender, onMouseDown: _this.onDialogMouseDown }, React.createElement(\"div\", { tabIndex: 0, ref: _this.saveRef('sentinelStart'), style: sentinelStyle, \"aria-hidden\": \"true\" }), React.createElement(\"div\", { className: prefixCls + '-content' }, closer, header, React.createElement(\"div\", _extends({ className: prefixCls + '-body', style: props.bodyStyle, ref: _this.saveRef('body') }, props.bodyProps), props.children), footer), React.createElement(\"div\", { tabIndex: 0, ref: _this.saveRef('sentinelEnd'), style: sentinelStyle, \"aria-hidden\": \"true\" }));\n return React.createElement(Animate, { key: \"dialog\", showProp: \"visible\", onLeave: _this.onAnimateLeave, transitionName: transitionName, component: \"\", transitionAppear: true }, props.visible || !props.destroyOnClose ? dialogElement : null);\n };\n _this.getZIndexStyle = function () {\n var style = {};\n var props = _this.props;\n if (props.zIndex !== undefined) {\n style.zIndex = props.zIndex;\n }\n return style;\n };\n _this.getWrapStyle = function () {\n return _extends({}, _this.getZIndexStyle(), _this.props.wrapStyle);\n };\n _this.getMaskStyle = function () {\n return _extends({}, _this.getZIndexStyle(), _this.props.maskStyle);\n };\n _this.getMaskElement = function () {\n var props = _this.props;\n var maskElement = void 0;\n if (props.mask) {\n var maskTransition = _this.getMaskTransitionName();\n maskElement = React.createElement(LazyRenderBox, _extends({ style: _this.getMaskStyle(), key: \"mask\", className: props.prefixCls + '-mask', hiddenClassName: props.prefixCls + '-mask-hidden', visible: props.visible }, props.maskProps));\n if (maskTransition) {\n maskElement = React.createElement(Animate, { key: \"mask\", showProp: \"visible\", transitionAppear: true, component: \"\", transitionName: maskTransition }, maskElement);\n }\n }\n return maskElement;\n };\n _this.getMaskTransitionName = function () {\n var props = _this.props;\n var transitionName = props.maskTransitionName;\n var animation = props.maskAnimation;\n if (!transitionName && animation) {\n transitionName = props.prefixCls + '-' + animation;\n }\n return transitionName;\n };\n _this.getTransitionName = function () {\n var props = _this.props;\n var transitionName = props.transitionName;\n var animation = props.animation;\n if (!transitionName && animation) {\n transitionName = props.prefixCls + '-' + animation;\n }\n return transitionName;\n };\n _this.close = function (e) {\n var onClose = _this.props.onClose;\n\n if (onClose) {\n onClose(e);\n }\n };\n _this.saveRef = function (name) {\n return function (node) {\n _this[name] = node;\n };\n };\n _this.titleId = 'rcDialogTitle' + uuid++;\n _this.switchScrollingEffect = props.switchScrollingEffect || function () {};\n return _this;\n }\n\n Dialog.prototype.componentDidMount = function componentDidMount() {\n this.componentDidUpdate({});\n // if forceRender is true, set element style display to be none;\n if ((this.props.forceRender || this.props.getContainer === false && !this.props.visible) && this.wrap) {\n this.wrap.style.display = 'none';\n }\n };\n\n Dialog.prototype.componentDidUpdate = function componentDidUpdate(prevProps) {\n var _props = this.props,\n visible = _props.visible,\n mask = _props.mask,\n focusTriggerAfterClose = _props.focusTriggerAfterClose;\n\n var mousePosition = this.props.mousePosition;\n if (visible) {\n // first show\n if (!prevProps.visible) {\n this.openTime = Date.now();\n this.switchScrollingEffect();\n this.tryFocus();\n var dialogNode = ReactDOM.findDOMNode(this.dialog);\n if (mousePosition) {\n var elOffset = offset(dialogNode);\n setTransformOrigin(dialogNode, mousePosition.x - elOffset.left + 'px ' + (mousePosition.y - elOffset.top) + 'px');\n } else {\n setTransformOrigin(dialogNode, '');\n }\n }\n } else if (prevProps.visible) {\n this.inTransition = true;\n if (mask && this.lastOutSideFocusNode && focusTriggerAfterClose) {\n try {\n this.lastOutSideFocusNode.focus();\n } catch (e) {\n this.lastOutSideFocusNode = null;\n }\n this.lastOutSideFocusNode = null;\n }\n }\n };\n\n Dialog.prototype.componentWillUnmount = function componentWillUnmount() {\n var _props2 = this.props,\n visible = _props2.visible,\n getOpenCount = _props2.getOpenCount;\n\n if ((visible || this.inTransition) && !getOpenCount()) {\n this.switchScrollingEffect();\n }\n clearTimeout(this.timeoutId);\n };\n\n Dialog.prototype.tryFocus = function tryFocus() {\n if (!contains(this.wrap, document.activeElement)) {\n this.lastOutSideFocusNode = document.activeElement;\n this.sentinelStart.focus();\n }\n };\n\n Dialog.prototype.render = function render() {\n var props = this.props;\n var prefixCls = props.prefixCls,\n maskClosable = props.maskClosable;\n\n var style = this.getWrapStyle();\n // clear hide display\n // and only set display after async anim, not here for hide\n if (props.visible) {\n style.display = null;\n }\n return React.createElement(\"div\", { className: prefixCls + '-root' }, this.getMaskElement(), React.createElement(\"div\", _extends({ tabIndex: -1, onKeyDown: this.onKeyDown, className: prefixCls + '-wrap ' + (props.wrapClassName || ''), ref: this.saveRef('wrap'), onClick: maskClosable ? this.onMaskClick : null, onMouseUp: maskClosable ? this.onMaskMouseUp : null, role: \"dialog\", \"aria-labelledby\": props.title ? this.titleId : null, style: style }, props.wrapProps), this.getDialogElement()));\n };\n\n return Dialog;\n}(React.Component);\n\nexport default Dialog;\n\nDialog.defaultProps = {\n className: '',\n mask: true,\n visible: false,\n keyboard: true,\n closable: true,\n maskClosable: true,\n destroyOnClose: false,\n prefixCls: 'rc-dialog',\n focusTriggerAfterClose: true\n};","import _extends from 'babel-runtime/helpers/extends';\nimport * as React from 'react';\nimport Dialog from './Dialog';\nimport Portal from 'rc-util/es/PortalWrapper';\n// fix issue #10656\n/*\n* getContainer remarks\n* Custom container should not be return, because in the Portal component, it will remove the\n* return container element here, if the custom container is the only child of it's component,\n* like issue #10656, It will has a conflict with removeChild method in react-dom.\n* So here should add a child (div element) to custom container.\n* */\nexport default (function (props) {\n var visible = props.visible,\n getContainer = props.getContainer,\n forceRender = props.forceRender;\n // 渲染在当前 dom 里;\n\n if (getContainer === false) {\n return React.createElement(Dialog, _extends({}, props, { getOpenCount: function getOpenCount() {\n return 2;\n } }));\n }\n return React.createElement(Portal, { visible: visible, forceRender: forceRender, getContainer: getContainer }, function (childProps) {\n return React.createElement(Dialog, _extends({}, props, childProps));\n });\n});","var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport * as React from 'react';\nimport Dialog from 'rc-dialog';\nimport * as PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport addEventListener from 'rc-util/lib/Dom/addEventListener';\nimport { getConfirmLocale } from './locale';\nimport Icon from '../icon';\nimport Button from '../button';\nimport LocaleReceiver from '../locale-provider/LocaleReceiver';\nimport { ConfigConsumer } from '../config-provider';\nlet mousePosition;\nexport const destroyFns = [];\n// ref: https://github.com/ant-design/ant-design/issues/15795\nconst getClickPosition = (e) => {\n mousePosition = {\n x: e.pageX,\n y: e.pageY,\n };\n // 100ms 内发生过点击事件,则从点击位置动画展示\n // 否则直接 zoom 展示\n // 这样可以兼容非点击方式展开\n setTimeout(() => (mousePosition = null), 100);\n};\n// 只有点击事件支持从鼠标位置动画展开\nif (typeof window !== 'undefined' && window.document && window.document.documentElement) {\n addEventListener(document.documentElement, 'click', getClickPosition);\n}\nexport default class Modal extends React.Component {\n constructor() {\n super(...arguments);\n this.handleCancel = (e) => {\n const { onCancel } = this.props;\n if (onCancel) {\n onCancel(e);\n }\n };\n this.handleOk = (e) => {\n const { onOk } = this.props;\n if (onOk) {\n onOk(e);\n }\n };\n this.renderFooter = (locale) => {\n const { okText, okType, cancelText, confirmLoading } = this.props;\n return (
\n \n \n
);\n };\n this.renderModal = ({ getPopupContainer: getContextPopupContainer, getPrefixCls, }) => {\n const _a = this.props, { prefixCls: customizePrefixCls, footer, visible, wrapClassName, centered, getContainer, closeIcon } = _a, restProps = __rest(_a, [\"prefixCls\", \"footer\", \"visible\", \"wrapClassName\", \"centered\", \"getContainer\", \"closeIcon\"]);\n const prefixCls = getPrefixCls('modal', customizePrefixCls);\n const defaultFooter = (\n {this.renderFooter}\n );\n const closeIconToRender = (\n {closeIcon || }\n );\n return ();\n };\n }\n render() {\n return {this.renderModal};\n }\n}\nModal.defaultProps = {\n width: 520,\n transitionName: 'zoom',\n maskTransitionName: 'fade',\n confirmLoading: false,\n visible: false,\n okType: 'primary',\n};\nModal.propTypes = {\n prefixCls: PropTypes.string,\n onOk: PropTypes.func,\n onCancel: PropTypes.func,\n okText: PropTypes.node,\n cancelText: PropTypes.node,\n centered: PropTypes.bool,\n width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n confirmLoading: PropTypes.bool,\n visible: PropTypes.bool,\n footer: PropTypes.node,\n title: PropTypes.node,\n closable: PropTypes.bool,\n closeIcon: PropTypes.node,\n};\n","import * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport Button from '../button';\nexport default class ActionButton extends React.Component {\n constructor(props) {\n super(props);\n this.onClick = () => {\n const { actionFn, closeModal } = this.props;\n if (actionFn) {\n let ret;\n if (actionFn.length) {\n ret = actionFn(closeModal);\n }\n else {\n ret = actionFn();\n if (!ret) {\n closeModal();\n }\n }\n if (ret && ret.then) {\n this.setState({ loading: true });\n ret.then((...args) => {\n // It's unnecessary to set loading=false, for the Modal will be unmounted after close.\n // this.setState({ loading: false });\n closeModal(...args);\n }, (e) => {\n // Emit error when catch promise reject\n // eslint-disable-next-line no-console\n console.error(e);\n // See: https://github.com/ant-design/ant-design/issues/6183\n this.setState({ loading: false });\n });\n }\n }\n else {\n closeModal();\n }\n };\n this.state = {\n loading: false,\n };\n }\n componentDidMount() {\n if (this.props.autoFocus) {\n const $this = ReactDOM.findDOMNode(this);\n this.timeoutId = setTimeout(() => $this.focus());\n }\n }\n componentWillUnmount() {\n clearTimeout(this.timeoutId);\n }\n render() {\n const { type, children, buttonProps } = this.props;\n const { loading } = this.state;\n return ();\n }\n}\n","import * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport classNames from 'classnames';\nimport Icon from '../icon';\nimport Dialog, { destroyFns } from './Modal';\nimport ActionButton from './ActionButton';\nimport { getConfirmLocale } from './locale';\nimport warning from '../_util/warning';\nconst IS_REACT_16 = !!ReactDOM.createPortal;\nconst ConfirmDialog = (props) => {\n const { onCancel, onOk, close, zIndex, afterClose, visible, keyboard, centered, getContainer, maskStyle, okButtonProps, cancelButtonProps, iconType = 'question-circle', } = props;\n warning(!('iconType' in props), 'Modal', `The property 'iconType' is deprecated. Use the property 'icon' instead.`);\n // 支持传入{ icon: null }来隐藏`Modal.confirm`默认的Icon\n const icon = props.icon === undefined ? iconType : props.icon;\n const okType = props.okType || 'primary';\n const prefixCls = props.prefixCls || 'ant-modal';\n const contentPrefixCls = `${prefixCls}-confirm`;\n // 默认为 true,保持向下兼容\n const okCancel = 'okCancel' in props ? props.okCancel : true;\n const width = props.width || 416;\n const style = props.style || {};\n const mask = props.mask === undefined ? true : props.mask;\n // 默认为 false,保持旧版默认行为\n const maskClosable = props.maskClosable === undefined ? false : props.maskClosable;\n const runtimeLocale = getConfirmLocale();\n const okText = props.okText || (okCancel ? runtimeLocale.okText : runtimeLocale.justOkText);\n const cancelText = props.cancelText || runtimeLocale.cancelText;\n const autoFocusButton = props.autoFocusButton === null ? false : props.autoFocusButton || 'ok';\n const transitionName = props.transitionName || 'zoom';\n const maskTransitionName = props.maskTransitionName || 'fade';\n const classString = classNames(contentPrefixCls, `${contentPrefixCls}-${props.type}`, props.className);\n const cancelButton = okCancel && (\n {cancelText}\n );\n const iconNode = typeof icon === 'string' ? : icon;\n return ( close({ triggerCancel: true })} visible={visible} title=\"\" transitionName={transitionName} footer=\"\" maskTransitionName={maskTransitionName} mask={mask} maskClosable={maskClosable} maskStyle={maskStyle} style={style} width={width} zIndex={zIndex} afterClose={afterClose} keyboard={keyboard} centered={centered} getContainer={getContainer}>\n
\n
\n {iconNode}\n {props.title === undefined ? null : ({props.title})}\n
{props.content}
\n
\n
\n {cancelButton}\n \n {okText}\n \n
\n
\n
);\n};\nexport default function confirm(config) {\n const div = document.createElement('div');\n document.body.appendChild(div);\n // eslint-disable-next-line no-use-before-define\n let currentConfig = Object.assign(Object.assign({}, config), { close, visible: true });\n function destroy(...args) {\n const unmountResult = ReactDOM.unmountComponentAtNode(div);\n if (unmountResult && div.parentNode) {\n div.parentNode.removeChild(div);\n }\n const triggerCancel = args.some(param => param && param.triggerCancel);\n if (config.onCancel && triggerCancel) {\n config.onCancel(...args);\n }\n for (let i = 0; i < destroyFns.length; i++) {\n const fn = destroyFns[i];\n // eslint-disable-next-line no-use-before-define\n if (fn === close) {\n destroyFns.splice(i, 1);\n break;\n }\n }\n }\n function render(props) {\n ReactDOM.render(, div);\n }\n function close(...args) {\n currentConfig = Object.assign(Object.assign({}, currentConfig), { visible: false, afterClose: destroy.bind(this, ...args) });\n if (IS_REACT_16) {\n render(currentConfig);\n }\n else {\n destroy(...args);\n }\n }\n function update(newConfig) {\n currentConfig = Object.assign(Object.assign({}, currentConfig), newConfig);\n render(currentConfig);\n }\n render(currentConfig);\n destroyFns.push(close);\n return {\n destroy: close,\n update,\n };\n}\n","import * as React from 'react';\nimport Modal, { destroyFns } from './Modal';\nimport confirm from './confirm';\nimport Icon from '../icon';\nfunction modalWarn(props) {\n const config = Object.assign({ type: 'warning', icon: , okCancel: false }, props);\n return confirm(config);\n}\nModal.info = function infoFn(props) {\n const config = Object.assign({ type: 'info', icon: , okCancel: false }, props);\n return confirm(config);\n};\nModal.success = function successFn(props) {\n const config = Object.assign({ type: 'success', icon: , okCancel: false }, props);\n return confirm(config);\n};\nModal.error = function errorFn(props) {\n const config = Object.assign({ type: 'error', icon: , okCancel: false }, props);\n return confirm(config);\n};\nModal.warning = modalWarn;\nModal.warn = modalWarn;\nModal.confirm = function confirmFn(props) {\n const config = Object.assign({ type: 'confirm', okCancel: true }, props);\n return confirm(config);\n};\nModal.destroyAll = function destroyAllFn() {\n while (destroyFns.length) {\n const close = destroyFns.pop();\n if (close) {\n close();\n }\n }\n};\nexport default Modal;\n","import defaultLocale from '../locale/default';\nlet runtimeLocale = Object.assign({}, defaultLocale.Modal);\nexport function changeConfirmLocale(newLocale) {\n if (newLocale) {\n runtimeLocale = Object.assign(Object.assign({}, runtimeLocale), newLocale);\n }\n else {\n runtimeLocale = Object.assign({}, defaultLocale.Modal);\n }\n}\nexport function getConfirmLocale() {\n return runtimeLocale;\n}\n"],"sourceRoot":""}