UNPKG

antd

Version:

An enterprise-class UI design language and React components implementation

1,112 lines (1,007 loc) 4.61 MB
/*! * * antd v4.24.16 * * Copyright 2015-present, Alipay, Inc. * All rights reserved. * */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("moment"), require("react"), require("react-dom")); else if(typeof define === 'function' && define.amd) define(["moment", "react", "react-dom"], factory); else if(typeof exports === 'object') exports["antd"] = factory(require("moment"), require("react"), require("react-dom")); else root["antd"] = factory(root["moment"], root["React"], root["ReactDOM"]); })(this, function(__WEBPACK_EXTERNAL_MODULE_moment__, __WEBPACK_EXTERNAL_MODULE_react__, __WEBPACK_EXTERNAL_MODULE_react_dom__) { return /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 0); /******/ }) /************************************************************************/ /******/ ({ /***/ "./components sync recursive ^\\.\\/[^_][\\w-]+\\/style\\/index\\.tsx?$": /*!**************************************************************!*\ !*** ./components sync ^\.\/[^_][\w-]+\/style\/index\.tsx?$ ***! \**************************************************************/ /*! no static exports found */ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { var map = { "./affix/style/index.tsx": "./components/affix/style/index.tsx", "./alert/style/index.tsx": "./components/alert/style/index.tsx", "./anchor/style/index.tsx": "./components/anchor/style/index.tsx", "./auto-complete/style/index.tsx": "./components/auto-complete/style/index.tsx", "./avatar/style/index.tsx": "./components/avatar/style/index.tsx", "./back-top/style/index.tsx": "./components/back-top/style/index.tsx", "./badge/style/index.tsx": "./components/badge/style/index.tsx", "./breadcrumb/style/index.tsx": "./components/breadcrumb/style/index.tsx", "./button/style/index.tsx": "./components/button/style/index.tsx", "./calendar/style/index.tsx": "./components/calendar/style/index.tsx", "./card/style/index.tsx": "./components/card/style/index.tsx", "./carousel/style/index.tsx": "./components/carousel/style/index.tsx", "./cascader/style/index.tsx": "./components/cascader/style/index.tsx", "./checkbox/style/index.tsx": "./components/checkbox/style/index.tsx", "./col/style/index.tsx": "./components/col/style/index.tsx", "./collapse/style/index.tsx": "./components/collapse/style/index.tsx", "./comment/style/index.tsx": "./components/comment/style/index.tsx", "./config-provider/style/index.tsx": "./components/config-provider/style/index.tsx", "./date-picker/style/index.tsx": "./components/date-picker/style/index.tsx", "./descriptions/style/index.tsx": "./components/descriptions/style/index.tsx", "./divider/style/index.tsx": "./components/divider/style/index.tsx", "./drawer/style/index.tsx": "./components/drawer/style/index.tsx", "./dropdown/style/index.tsx": "./components/dropdown/style/index.tsx", "./empty/style/index.tsx": "./components/empty/style/index.tsx", "./form/style/index.tsx": "./components/form/style/index.tsx", "./grid/style/index.tsx": "./components/grid/style/index.tsx", "./icon/style/index.tsx": "./components/icon/style/index.tsx", "./image/style/index.tsx": "./components/image/style/index.tsx", "./input-number/style/index.tsx": "./components/input-number/style/index.tsx", "./input/style/index.tsx": "./components/input/style/index.tsx", "./layout/style/index.tsx": "./components/layout/style/index.tsx", "./list/style/index.tsx": "./components/list/style/index.tsx", "./locale-provider/style/index.tsx": "./components/locale-provider/style/index.tsx", "./mentions/style/index.tsx": "./components/mentions/style/index.tsx", "./menu/style/index.tsx": "./components/menu/style/index.tsx", "./message/style/index.tsx": "./components/message/style/index.tsx", "./modal/style/index.tsx": "./components/modal/style/index.tsx", "./notification/style/index.tsx": "./components/notification/style/index.tsx", "./page-header/style/index.tsx": "./components/page-header/style/index.tsx", "./pagination/style/index.tsx": "./components/pagination/style/index.tsx", "./popconfirm/style/index.tsx": "./components/popconfirm/style/index.tsx", "./popover/style/index.tsx": "./components/popover/style/index.tsx", "./progress/style/index.tsx": "./components/progress/style/index.tsx", "./radio/style/index.tsx": "./components/radio/style/index.tsx", "./rate/style/index.tsx": "./components/rate/style/index.tsx", "./result/style/index.tsx": "./components/result/style/index.tsx", "./row/style/index.tsx": "./components/row/style/index.tsx", "./segmented/style/index.tsx": "./components/segmented/style/index.tsx", "./select/style/index.tsx": "./components/select/style/index.tsx", "./skeleton/style/index.tsx": "./components/skeleton/style/index.tsx", "./slider/style/index.tsx": "./components/slider/style/index.tsx", "./space/style/index.tsx": "./components/space/style/index.tsx", "./spin/style/index.tsx": "./components/spin/style/index.tsx", "./statistic/style/index.tsx": "./components/statistic/style/index.tsx", "./steps/style/index.tsx": "./components/steps/style/index.tsx", "./switch/style/index.tsx": "./components/switch/style/index.tsx", "./table/style/index.tsx": "./components/table/style/index.tsx", "./tabs/style/index.tsx": "./components/tabs/style/index.tsx", "./tag/style/index.tsx": "./components/tag/style/index.tsx", "./time-picker/style/index.tsx": "./components/time-picker/style/index.tsx", "./timeline/style/index.tsx": "./components/timeline/style/index.tsx", "./tooltip/style/index.tsx": "./components/tooltip/style/index.tsx", "./transfer/style/index.tsx": "./components/transfer/style/index.tsx", "./tree-select/style/index.tsx": "./components/tree-select/style/index.tsx", "./tree/style/index.tsx": "./components/tree/style/index.tsx", "./typography/style/index.tsx": "./components/typography/style/index.tsx", "./upload/style/index.tsx": "./components/upload/style/index.tsx", "./version/style/index.tsx": "./components/version/style/index.tsx" }; function webpackContext(req) { var id = webpackContextResolve(req); return __webpack_require__(id); } function webpackContextResolve(req) { if(!__webpack_require__.o(map, req)) { var e = new Error("Cannot find module '" + req + "'"); e.code = 'MODULE_NOT_FOUND'; throw e; } return map[req]; } webpackContext.keys = function webpackContextKeys() { return Object.keys(map); }; webpackContext.resolve = webpackContextResolve; module.exports = webpackContext; webpackContext.id = "./components sync recursive ^\\.\\/[^_][\\w-]+\\/style\\/index\\.tsx?$"; /***/ }), /***/ "./components/_util/ActionButton.tsx": /*!*******************************************!*\ !*** ./components/_util/ActionButton.tsx ***! \*******************************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js"); /* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"); /* harmony import */ var rc_util_es_hooks_useState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rc-util/es/hooks/useState */ "./node_modules/rc-util/es/hooks/useState.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../button */ "./components/button/index.tsx"); /* harmony import */ var _button_button__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../button/button */ "./components/button/button.tsx"); function isThenable(thing) { return !!(thing && !!thing.then); } var ActionButton = function ActionButton(props) { var clickedRef = react__WEBPACK_IMPORTED_MODULE_3__["useRef"](false); var ref = react__WEBPACK_IMPORTED_MODULE_3__["useRef"](null); var _useState = Object(rc_util_es_hooks_useState__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(false), _useState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_useState, 2), loading = _useState2[0], setLoading = _useState2[1]; var close = props.close; var onInternalClose = function onInternalClose() { close === null || close === void 0 ? void 0 : close.apply(void 0, arguments); }; react__WEBPACK_IMPORTED_MODULE_3__["useEffect"](function () { var timeoutId = null; if (props.autoFocus) { timeoutId = setTimeout(function () { var _a; (_a = ref.current) === null || _a === void 0 ? void 0 : _a.focus(); }); } return function () { if (timeoutId) { clearTimeout(timeoutId); } }; }, []); var handlePromiseOnOk = function handlePromiseOnOk(returnValueOfOnOk) { if (!isThenable(returnValueOfOnOk)) { return; } setLoading(true); returnValueOfOnOk.then(function () { setLoading(false, true); onInternalClose.apply(void 0, arguments); clickedRef.current = false; }, function (e) { // See: https://github.com/ant-design/ant-design/issues/6183 setLoading(false, true); clickedRef.current = false; return Promise.reject(e); }); }; var onClick = function onClick(e) { var actionFn = props.actionFn; if (clickedRef.current) { return; } clickedRef.current = true; if (!actionFn) { onInternalClose(); return; } var returnValueOfOnOk; if (props.emitEvent) { returnValueOfOnOk = actionFn(e); if (props.quitOnNullishReturnValue && !isThenable(returnValueOfOnOk)) { clickedRef.current = false; onInternalClose(e); return; } } else if (actionFn.length) { returnValueOfOnOk = actionFn(close); // https://github.com/ant-design/ant-design/issues/23358 clickedRef.current = false; } else { returnValueOfOnOk = actionFn(); if (!returnValueOfOnOk) { onInternalClose(); return; } } handlePromiseOnOk(returnValueOfOnOk); }; var type = props.type, children = props.children, prefixCls = props.prefixCls, buttonProps = props.buttonProps; return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["createElement"](_button__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({}, Object(_button_button__WEBPACK_IMPORTED_MODULE_5__[/* convertLegacyProps */ "a"])(type), { onClick: onClick, loading: loading, prefixCls: prefixCls }, buttonProps, { ref: ref }), children); }; /* harmony default export */ __webpack_exports__["a"] = (ActionButton); /***/ }), /***/ "./components/_util/colors.ts": /*!************************************!*\ !*** ./components/_util/colors.ts ***! \************************************/ /*! exports provided: PresetStatusColorTypes, PresetColorTypes */ /*! exports used: PresetColorTypes, PresetStatusColorTypes */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return PresetStatusColorTypes; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return PresetColorTypes; }); /* harmony import */ var _type__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./type */ "./components/_util/type.ts"); var PresetStatusColorTypes = Object(_type__WEBPACK_IMPORTED_MODULE_0__[/* tuple */ "a"])('success', 'processing', 'error', 'default', 'warning'); // eslint-disable-next-line import/prefer-default-export var PresetColorTypes = Object(_type__WEBPACK_IMPORTED_MODULE_0__[/* tuple */ "a"])('pink', 'red', 'yellow', 'orange', 'cyan', 'green', 'blue', 'purple', 'geekblue', 'magenta', 'volcano', 'gold', 'lime'); /***/ }), /***/ "./components/_util/easings.ts": /*!*************************************!*\ !*** ./components/_util/easings.ts ***! \*************************************/ /*! exports provided: easeInOutCubic */ /*! exports used: easeInOutCubic */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return easeInOutCubic; }); // eslint-disable-next-line import/prefer-default-export function easeInOutCubic(t, b, c, d) { var cc = c - b; t /= d / 2; if (t < 1) { return cc / 2 * t * t * t + b; } // eslint-disable-next-line no-return-assign return cc / 2 * ((t -= 2) * t * t + 2) + b; } /***/ }), /***/ "./components/_util/getDataOrAriaProps.ts": /*!************************************************!*\ !*** ./components/_util/getDataOrAriaProps.ts ***! \************************************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getDataOrAriaProps; }); function getDataOrAriaProps(props) { return Object.keys(props).reduce(function (prev, key) { if ((key.startsWith('data-') || key.startsWith('aria-') || key === 'role') && !key.startsWith('data-__')) { prev[key] = props[key]; } return prev; }, {}); } /***/ }), /***/ "./components/_util/getRenderPropValue.ts": /*!************************************************!*\ !*** ./components/_util/getRenderPropValue.ts ***! \************************************************/ /*! exports provided: getRenderPropValue */ /*! exports used: getRenderPropValue */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getRenderPropValue; }); var getRenderPropValue = function getRenderPropValue(propValue) { if (!propValue) { return null; } if (typeof propValue === 'function') { return propValue(); } return propValue; }; /***/ }), /***/ "./components/_util/getScroll.tsx": /*!****************************************!*\ !*** ./components/_util/getScroll.tsx ***! \****************************************/ /*! exports provided: isWindow, default */ /*! exports used: default, isWindow */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isWindow; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getScroll; }); function isWindow(obj) { return obj !== null && obj !== undefined && obj === obj.window; } function getScroll(target, top) { var _a, _b; if (typeof window === 'undefined') { return 0; } var method = top ? 'scrollTop' : 'scrollLeft'; var result = 0; if (isWindow(target)) { result = target[top ? 'pageYOffset' : 'pageXOffset']; } else if (target instanceof Document) { result = target.documentElement[method]; } else if (target instanceof HTMLElement) { result = target[method]; } else if (target) { // According to the type inference, the `target` is `never` type. // Since we configured the loose mode type checking, and supports mocking the target with such shape below:: // `{ documentElement: { scrollLeft: 200, scrollTop: 400 } }`, // the program may falls into this branch. // Check the corresponding tests for details. Don't sure what is the real scenario this happens. result = target[method]; } if (target && !isWindow(target) && typeof result !== 'number') { result = (_b = ((_a = target.ownerDocument) !== null && _a !== void 0 ? _a : target).documentElement) === null || _b === void 0 ? void 0 : _b[method]; } return result; } /***/ }), /***/ "./components/_util/hooks/useFlexGapSupport.ts": /*!*****************************************************!*\ !*** ./components/_util/hooks/useFlexGapSupport.ts ***! \*****************************************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _styleChecker__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../styleChecker */ "./components/_util/styleChecker.tsx"); /* harmony default export */ __webpack_exports__["a"] = (function () { var _React$useState = react__WEBPACK_IMPORTED_MODULE_1__["useState"](false), _React$useState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(_React$useState, 2), flexible = _React$useState2[0], setFlexible = _React$useState2[1]; react__WEBPACK_IMPORTED_MODULE_1__["useEffect"](function () { setFlexible(Object(_styleChecker__WEBPACK_IMPORTED_MODULE_2__[/* detectFlexGapSupported */ "b"])()); }, []); return flexible; }); /***/ }), /***/ "./components/_util/hooks/useForceUpdate.ts": /*!**************************************************!*\ !*** ./components/_util/hooks/useForceUpdate.ts ***! \**************************************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useForceUpdate; }); /* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); function useForceUpdate() { var _React$useReducer = react__WEBPACK_IMPORTED_MODULE_1__["useReducer"](function (x) { return x + 1; }, 0), _React$useReducer2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(_React$useReducer, 2), forceUpdate = _React$useReducer2[1]; return forceUpdate; } /***/ }), /***/ "./components/_util/hooks/usePatchElement.tsx": /*!****************************************************!*\ !*** ./components/_util/hooks/usePatchElement.tsx ***! \****************************************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return usePatchElement; }); /* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"); /* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__); function usePatchElement() { var _React$useState = react__WEBPACK_IMPORTED_MODULE_2__["useState"]([]), _React$useState2 = Object(_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(_React$useState, 2), elements = _React$useState2[0], setElements = _React$useState2[1]; var patchElement = react__WEBPACK_IMPORTED_MODULE_2__["useCallback"](function (element) { // append a new element to elements (and create a new ref) setElements(function (originElements) { return [].concat(Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(originElements), [element]); }); // return a function that removes the new element out of elements (and create a new ref) // it works a little like useEffect return function () { setElements(function (originElements) { return originElements.filter(function (ele) { return ele !== element; }); }); }; }, []); return [elements, patchElement]; } /***/ }), /***/ "./components/_util/hooks/useSyncState.ts": /*!************************************************!*\ !*** ./components/_util/hooks/useSyncState.ts ***! \************************************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return useSyncState; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _useForceUpdate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useForceUpdate */ "./components/_util/hooks/useForceUpdate.ts"); function useSyncState(initialValue) { var ref = react__WEBPACK_IMPORTED_MODULE_0__["useRef"](initialValue); var forceUpdate = Object(_useForceUpdate__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(); return [function () { return ref.current; }, function (newValue) { ref.current = newValue; // re-render forceUpdate(); }]; } /***/ }), /***/ "./components/_util/isNumeric.ts": /*!***************************************!*\ !*** ./components/_util/isNumeric.ts ***! \***************************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; var isNumeric = function isNumeric(value) { return !isNaN(parseFloat(value)) && isFinite(value); }; /* harmony default export */ __webpack_exports__["a"] = (isNumeric); /***/ }), /***/ "./components/_util/motion.tsx": /*!*************************************!*\ !*** ./components/_util/motion.tsx ***! \*************************************/ /*! exports provided: getTransitionName, getTransitionDirection, default */ /*! exports used: default, getTransitionDirection, getTransitionName */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getTransitionName; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getTransitionDirection; }); /* harmony import */ var _type__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./type */ "./components/_util/type.ts"); // ================== Collapse Motion ================== var getCollapsedHeight = function getCollapsedHeight() { return { height: 0, opacity: 0 }; }; var getRealHeight = function getRealHeight(node) { var scrollHeight = node.scrollHeight; return { height: scrollHeight, opacity: 1 }; }; var getCurrentHeight = function getCurrentHeight(node) { return { height: node ? node.offsetHeight : 0 }; }; var skipOpacityTransition = function skipOpacityTransition(_, event) { return (event === null || event === void 0 ? void 0 : event.deadline) === true || event.propertyName === 'height'; }; var collapseMotion = { motionName: 'ant-motion-collapse', onAppearStart: getCollapsedHeight, onEnterStart: getCollapsedHeight, onAppearActive: getRealHeight, onEnterActive: getRealHeight, onLeaveStart: getCurrentHeight, onLeaveActive: getCollapsedHeight, onAppearEnd: skipOpacityTransition, onEnterEnd: skipOpacityTransition, onLeaveEnd: skipOpacityTransition, motionDeadline: 500 }; var SelectPlacements = Object(_type__WEBPACK_IMPORTED_MODULE_0__[/* tuple */ "a"])('bottomLeft', 'bottomRight', 'topLeft', 'topRight'); var getTransitionDirection = function getTransitionDirection(placement) { if (placement !== undefined && (placement === 'topLeft' || placement === 'topRight')) { return "slide-down"; } return "slide-up"; }; var getTransitionName = function getTransitionName(rootPrefixCls, motion, transitionName) { if (transitionName !== undefined) { return transitionName; } return "".concat(rootPrefixCls, "-").concat(motion); }; /* harmony default export */ __webpack_exports__["a"] = (collapseMotion); /***/ }), /***/ "./components/_util/placements.tsx": /*!*****************************************!*\ !*** ./components/_util/placements.tsx ***! \*****************************************/ /*! exports provided: getOverflowOptions, default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* unused harmony export getOverflowOptions */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getPlacements; }); /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js"); /* harmony import */ var rc_tooltip_es_placements__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-tooltip/es/placements */ "./node_modules/rc-tooltip/es/placements.js"); var autoAdjustOverflowEnabled = { adjustX: 1, adjustY: 1 }; var autoAdjustOverflowDisabled = { adjustX: 0, adjustY: 0 }; var targetOffset = [0, 0]; function getOverflowOptions(autoAdjustOverflow) { if (typeof autoAdjustOverflow === 'boolean') { return autoAdjustOverflow ? autoAdjustOverflowEnabled : autoAdjustOverflowDisabled; } return Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({}, autoAdjustOverflowDisabled), autoAdjustOverflow); } function getPlacements(config) { var _config$arrowWidth = config.arrowWidth, arrowWidth = _config$arrowWidth === void 0 ? 4 : _config$arrowWidth, _config$horizontalArr = config.horizontalArrowShift, horizontalArrowShift = _config$horizontalArr === void 0 ? 16 : _config$horizontalArr, _config$verticalArrow = config.verticalArrowShift, verticalArrowShift = _config$verticalArrow === void 0 ? 8 : _config$verticalArrow, autoAdjustOverflow = config.autoAdjustOverflow, arrowPointAtCenter = config.arrowPointAtCenter; var placementMap = { left: { points: ['cr', 'cl'], offset: [-4, 0] }, right: { points: ['cl', 'cr'], offset: [4, 0] }, top: { points: ['bc', 'tc'], offset: [0, -4] }, bottom: { points: ['tc', 'bc'], offset: [0, 4] }, topLeft: { points: ['bl', 'tc'], offset: [-(horizontalArrowShift + arrowWidth), -4] }, leftTop: { points: ['tr', 'cl'], offset: [-4, -(verticalArrowShift + arrowWidth)] }, topRight: { points: ['br', 'tc'], offset: [horizontalArrowShift + arrowWidth, -4] }, rightTop: { points: ['tl', 'cr'], offset: [4, -(verticalArrowShift + arrowWidth)] }, bottomRight: { points: ['tr', 'bc'], offset: [horizontalArrowShift + arrowWidth, 4] }, rightBottom: { points: ['bl', 'cr'], offset: [4, verticalArrowShift + arrowWidth] }, bottomLeft: { points: ['tl', 'bc'], offset: [-(horizontalArrowShift + arrowWidth), 4] }, leftBottom: { points: ['br', 'cl'], offset: [-4, verticalArrowShift + arrowWidth] } }; Object.keys(placementMap).forEach(function (key) { placementMap[key] = arrowPointAtCenter ? Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({}, placementMap[key]), { overflow: getOverflowOptions(autoAdjustOverflow), targetOffset: targetOffset }) : Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({}, rc_tooltip_es_placements__WEBPACK_IMPORTED_MODULE_1__[/* placements */ "a"][key]), { overflow: getOverflowOptions(autoAdjustOverflow) }); placementMap[key].ignoreShake = true; }); return placementMap; } /***/ }), /***/ "./components/_util/raf.ts": /*!*********************************!*\ !*** ./components/_util/raf.ts ***! \*********************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return wrapperRaf; }); /* harmony import */ var rc_util_es_raf__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rc-util/es/raf */ "./node_modules/rc-util/es/raf.js"); var id = 0; var ids = {}; // Support call raf with delay specified frame function wrapperRaf(callback) { var delayFrames = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1; var myId = id++; var restFrames = delayFrames; function internalCallback() { restFrames -= 1; if (restFrames <= 0) { callback(); delete ids[myId]; } else { ids[myId] = Object(rc_util_es_raf__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(internalCallback); } } ids[myId] = Object(rc_util_es_raf__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(internalCallback); return myId; } wrapperRaf.cancel = function cancel(pid) { if (pid === undefined) return; rc_util_es_raf__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"].cancel(ids[pid]); delete ids[pid]; }; wrapperRaf.ids = ids; // export this for test usage /***/ }), /***/ "./components/_util/reactNode.ts": /*!***************************************!*\ !*** ./components/_util/reactNode.ts ***! \***************************************/ /*! exports provided: isValidElement, isFragment, replaceElement, cloneElement */ /*! exports used: cloneElement, isFragment, isValidElement, replaceElement */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isValidElement; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isFragment; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return replaceElement; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return cloneElement; }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); var isValidElement = react__WEBPACK_IMPORTED_MODULE_0__["isValidElement"]; function isFragment(child) { return child && isValidElement(child) && child.type === react__WEBPACK_IMPORTED_MODULE_0__["Fragment"]; } function replaceElement(element, replacement, props) { if (!isValidElement(element)) { return replacement; } return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["cloneElement"](element, typeof props === 'function' ? props(element.props || {}) : props); } function cloneElement(element, props) { return replaceElement(element, element, props); } /***/ }), /***/ "./components/_util/responsiveObserve.ts": /*!***********************************************!*\ !*** ./components/_util/responsiveObserve.ts ***! \***********************************************/ /*! exports provided: responsiveArray, responsiveMap, default */ /*! exports used: default, responsiveArray */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return responsiveArray; }); /* unused harmony export responsiveMap */ /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js"); /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js"); var responsiveArray = ['xxl', 'xl', 'lg', 'md', 'sm', 'xs']; var responsiveMap = { xs: '(max-width: 575px)', sm: '(min-width: 576px)', md: '(min-width: 768px)', lg: '(min-width: 992px)', xl: '(min-width: 1200px)', xxl: '(min-width: 1600px)' }; var subscribers = new Map(); var subUid = -1; var screens = {}; var responsiveObserve = { matchHandlers: {}, dispatch: function dispatch(pointMap) { screens = pointMap; subscribers.forEach(function (func) { return func(screens); }); return subscribers.size >= 1; }, subscribe: function subscribe(func) { if (!subscribers.size) this.register(); subUid += 1; subscribers.set(subUid, func); func(screens); return subUid; }, unsubscribe: function unsubscribe(token) { subscribers["delete"](token); if (!subscribers.size) this.unregister(); }, unregister: function unregister() { var _this = this; Object.keys(responsiveMap).forEach(function (screen) { var matchMediaQuery = responsiveMap[screen]; var handler = _this.matchHandlers[matchMediaQuery]; handler === null || handler === void 0 ? void 0 : handler.mql.removeListener(handler === null || handler === void 0 ? void 0 : handler.listener); }); subscribers.clear(); }, register: function register() { var _this2 = this; Object.keys(responsiveMap).forEach(function (screen) { var matchMediaQuery = responsiveMap[screen]; var listener = function listener(_ref) { var matches = _ref.matches; _this2.dispatch(Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])({}, screens), Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({}, screen, matches))); }; var mql = window.matchMedia(matchMediaQuery); mql.addListener(listener); _this2.matchHandlers[matchMediaQuery] = { mql: mql, listener: listener }; listener(mql); }); } }; /* harmony default export */ __webpack_exports__["a"] = (responsiveObserve); /***/ }), /***/ "./components/_util/scrollTo.ts": /*!**************************************!*\ !*** ./components/_util/scrollTo.ts ***! \**************************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return scrollTo; }); /* harmony import */ var rc_util_es_raf__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rc-util/es/raf */ "./node_modules/rc-util/es/raf.js"); /* harmony import */ var _easings__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./easings */ "./components/_util/easings.ts"); /* harmony import */ var _getScroll__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./getScroll */ "./components/_util/getScroll.tsx"); function scrollTo(y) { var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; var _options$getContainer = options.getContainer, getContainer = _options$getContainer === void 0 ? function () { return window; } : _options$getContainer, callback = options.callback, _options$duration = options.duration, duration = _options$duration === void 0 ? 450 : _options$duration; var container = getContainer(); var scrollTop = Object(_getScroll__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(container, true); var startTime = Date.now(); var frameFunc = function frameFunc() { var timestamp = Date.now(); var time = timestamp - startTime; var nextScrollTop = Object(_easings__WEBPACK_IMPORTED_MODULE_1__[/* easeInOutCubic */ "a"])(time > duration ? duration : time, scrollTop, y, duration); if (Object(_getScroll__WEBPACK_IMPORTED_MODULE_2__[/* isWindow */ "b"])(container)) { container.scrollTo(window.pageXOffset, nextScrollTop); } else if (container instanceof Document || container.constructor.name === 'HTMLDocument') { container.documentElement.scrollTop = nextScrollTop; } else { container.scrollTop = nextScrollTop; } if (time < duration) { Object(rc_util_es_raf__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(frameFunc); } else if (typeof callback === 'function') { callback(); } }; Object(rc_util_es_raf__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(frameFunc); } /***/ }), /***/ "./components/_util/statusUtils.tsx": /*!******************************************!*\ !*** ./components/_util/statusUtils.tsx ***! \******************************************/ /*! exports provided: getStatusClassNames, getMergedStatus */ /*! exports used: getMergedStatus, getStatusClassNames */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getStatusClassNames; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getMergedStatus; }); /* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js"); /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./type */ "./components/_util/type.ts"); var InputStatuses = Object(_type__WEBPACK_IMPORTED_MODULE_2__[/* tuple */ "a"])('warning', 'error', ''); function getStatusClassNames(prefixCls, status, hasFeedback) { return classnames__WEBPACK_IMPORTED_MODULE_1___default()(Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({}, "".concat(prefixCls, "-status-success"), status === 'success'), "".concat(prefixCls, "-status-warning"), status === 'warning'), "".concat(prefixCls, "-status-error"), status === 'error'), "".concat(prefixCls, "-status-validating"), status === 'validating'), "".concat(prefixCls, "-has-feedback"), hasFeedback)); } var getMergedStatus = function getMergedStatus(contextStatus, customStatus) { return customStatus || contextStatus; }; /***/ }), /***/ "./components/_util/styleChecker.tsx": /*!*******************************************!*\ !*** ./components/_util/styleChecker.tsx ***! \*******************************************/ /*! exports provided: canUseDocElement, isStyleSupport, detectFlexGapSupported */ /*! exports used: canUseDocElement, detectFlexGapSupported, isStyleSupport */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return canUseDocElement; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return detectFlexGapSupported; }); /* harmony import */ var rc_util_es_Dom_canUseDom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rc-util/es/Dom/canUseDom */ "./node_modules/rc-util/es/Dom/canUseDom.js"); /* harmony import */ var rc_util_es_Dom_styleChecker__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-util/es/Dom/styleChecker */ "./node_modules/rc-util/es/Dom/styleChecker.js"); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "c", function() { return rc_util_es_Dom_styleChecker__WEBPACK_IMPORTED_MODULE_1__["a"]; }); var canUseDocElement = function canUseDocElement() { return Object(rc_util_es_Dom_canUseDom__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])() && window.document.documentElement; }; var flexGapSupported; var detectFlexGapSupported = function detectFlexGapSupported() { if (!canUseDocElement()) { return false; } if (flexGapSupported !== undefined) { return flexGapSupported; } // create flex container with row-gap set var flex = document.createElement('div'); flex.style.display = 'flex'; flex.style.flexDirection = 'column'; flex.style.rowGap = '1px'; // create two, elements inside it flex.appendChild(document.createElement('div')); flex.appendChild(document.createElement('div')); // append to the DOM (needed to obtain scrollHeight) document.body.appendChild(flex); flexGapSupported = flex.scrollHeight === 1; // flex container should be 1px high from the row-gap document.body.removeChild(flex); return flexGapSupported; }; /***/ }), /***/ "./components/_util/throttleByAnimationFrame.tsx": /*!*******************************************************!*\ !*** ./components/_util/throttleByAnimationFrame.tsx ***! \*******************************************************/ /*! exports provided: throttleByAnimationFrame, throttleByAnimationFrameDecorator */ /*! exports used: throttleByAnimationFrame, throttleByAnimationFrameDecorator */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return throttleByAnimationFrame; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return throttleByAnimationFrameDecorator; }); /* harmony import */ var _babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"); /* harmony import */ var rc_util_es_raf__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-util/es/raf */ "./node_modules/rc-util/es/raf.js"); function throttleByAnimationFrame(fn) { var requestId; var later = function later(args) { return function () { requestId = null; fn.apply(void 0, Object(_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(args)); }; }; var throttled = function throttled() { if (requestId == null) { for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } requestId = Object(rc_util_es_raf__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(later(args)); } }; throttled.cancel = function () { rc_util_es_raf__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"].cancel(requestId); requestId = null; }; return throttled; } function throttleByAnimationFrameDecorator() { return function throttle(target, key, descriptor) { var fn = descriptor.value; var definingProperty = false; return { configurable: true, get: function get() { // In IE11 calling Object.defineProperty has a side-effect of evaluating the // getter for the property which is being replaced. This causes infinite // recursion and an "Out of stack space" error. // eslint-disable-next-line no-prototype-builtins if (definingProperty || this === target.prototype || this.hasOwnProperty(key)) { /* istanbul ignore next */ return fn; } var boundFn = throttleByAnimationFrame(fn.bind(this)); definingProperty = true; Object.defineProperty(this, key, { value: boundFn, configurable: true, writable: true }); definingProperty = false; return boundFn; } }; }; } /***/ }), /***/ "./components/_util/transButton.tsx": /*!******************************************!*\ !*** ./components/_util/transButton.tsx ***! \******************************************/ /*! exports provided: default */ /*! exports used: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var _babel_runtime_h