sgxt_web/qb/static/js/antd.js
2025-04-22 16:39:00 +08:00

96352 lines
4.1 MiB
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*!
*
* ant-design-vue v1.7.5
*
* Copyright 2017-present, ant-design-vue.
* All rights reserved.
*
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("moment"), require("vue"));
else if(typeof define === 'function' && define.amd)
define(["moment", "vue"], factory);
else if(typeof exports === 'object')
exports["antd"] = factory(require("moment"), require("vue"));
else
root["antd"] = factory(root["moment"], root["Vue"]);
})(window, function(__WEBPACK_EXTERNAL_MODULE_moment__, __WEBPACK_EXTERNAL_MODULE_vue__) {
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\\.js?$":
/*!*************************************************************!*\
!*** ./components sync ^\.\/[^_][\w-]+\/style\/index\.js?$ ***!
\*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var map = {
"./affix/style/index.js": "./components/affix/style/index.js",
"./alert/style/index.js": "./components/alert/style/index.js",
"./anchor/style/index.js": "./components/anchor/style/index.js",
"./auto-complete/style/index.js": "./components/auto-complete/style/index.js",
"./avatar/style/index.js": "./components/avatar/style/index.js",
"./back-top/style/index.js": "./components/back-top/style/index.js",
"./badge/style/index.js": "./components/badge/style/index.js",
"./base/style/index.js": "./components/base/style/index.js",
"./breadcrumb/style/index.js": "./components/breadcrumb/style/index.js",
"./button/style/index.js": "./components/button/style/index.js",
"./calendar/style/index.js": "./components/calendar/style/index.js",
"./card/style/index.js": "./components/card/style/index.js",
"./carousel/style/index.js": "./components/carousel/style/index.js",
"./cascader/style/index.js": "./components/cascader/style/index.js",
"./checkbox/style/index.js": "./components/checkbox/style/index.js",
"./col/style/index.js": "./components/col/style/index.js",
"./collapse/style/index.js": "./components/collapse/style/index.js",
"./comment/style/index.js": "./components/comment/style/index.js",
"./config-provider/style/index.js": "./components/config-provider/style/index.js",
"./date-picker/style/index.js": "./components/date-picker/style/index.js",
"./descriptions/style/index.js": "./components/descriptions/style/index.js",
"./divider/style/index.js": "./components/divider/style/index.js",
"./drawer/style/index.js": "./components/drawer/style/index.js",
"./dropdown/style/index.js": "./components/dropdown/style/index.js",
"./empty/style/index.js": "./components/empty/style/index.js",
"./form-model/style/index.js": "./components/form-model/style/index.js",
"./form/style/index.js": "./components/form/style/index.js",
"./grid/style/index.js": "./components/grid/style/index.js",
"./icon/style/index.js": "./components/icon/style/index.js",
"./input-number/style/index.js": "./components/input-number/style/index.js",
"./input/style/index.js": "./components/input/style/index.js",
"./layout/style/index.js": "./components/layout/style/index.js",
"./list/style/index.js": "./components/list/style/index.js",
"./locale-provider/style/index.js": "./components/locale-provider/style/index.js",
"./mentions/style/index.js": "./components/mentions/style/index.js",
"./menu/style/index.js": "./components/menu/style/index.js",
"./message/style/index.js": "./components/message/style/index.js",
"./modal/style/index.js": "./components/modal/style/index.js",
"./notification/style/index.js": "./components/notification/style/index.js",
"./page-header/style/index.js": "./components/page-header/style/index.js",
"./pagination/style/index.js": "./components/pagination/style/index.js",
"./popconfirm/style/index.js": "./components/popconfirm/style/index.js",
"./popover/style/index.js": "./components/popover/style/index.js",
"./progress/style/index.js": "./components/progress/style/index.js",
"./radio/style/index.js": "./components/radio/style/index.js",
"./rate/style/index.js": "./components/rate/style/index.js",
"./result/style/index.js": "./components/result/style/index.js",
"./row/style/index.js": "./components/row/style/index.js",
"./select/style/index.js": "./components/select/style/index.js",
"./skeleton/style/index.js": "./components/skeleton/style/index.js",
"./slider/style/index.js": "./components/slider/style/index.js",
"./space/style/index.js": "./components/space/style/index.js",
"./spin/style/index.js": "./components/spin/style/index.js",
"./statistic/style/index.js": "./components/statistic/style/index.js",
"./steps/style/index.js": "./components/steps/style/index.js",
"./switch/style/index.js": "./components/switch/style/index.js",
"./table/style/index.js": "./components/table/style/index.js",
"./tabs/style/index.js": "./components/tabs/style/index.js",
"./tag/style/index.js": "./components/tag/style/index.js",
"./time-picker/style/index.js": "./components/time-picker/style/index.js",
"./timeline/style/index.js": "./components/timeline/style/index.js",
"./tooltip/style/index.js": "./components/tooltip/style/index.js",
"./transfer/style/index.js": "./components/transfer/style/index.js",
"./tree-select/style/index.js": "./components/tree-select/style/index.js",
"./tree/style/index.js": "./components/tree/style/index.js",
"./upload/style/index.js": "./components/upload/style/index.js",
"./version/style/index.js": "./components/version/style/index.js"
};
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\\.js?$";
/***/ }),
/***/ "./components/_util/BaseMixin.js":
/*!***************************************!*\
!*** ./components/_util/BaseMixin.js ***!
\***************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./props-util */ "./components/_util/props-util.js");
/* harmony default export */ __webpack_exports__["default"] = ({
methods: {
setState: function setState() {
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var callback = arguments[1];
var newState = typeof state === 'function' ? state(this.$data, this.$props) : state;
if (this.getDerivedStateFromProps) {
var s = this.getDerivedStateFromProps(Object(_props_util__WEBPACK_IMPORTED_MODULE_2__["getOptionProps"])(this), babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.$data, newState));
if (s === null) {
return;
} else {
newState = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, newState, s || {});
}
}
babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()(this.$data, newState);
this.$forceUpdate();
this.$nextTick(function () {
callback && callback();
});
},
__emit: function __emit() {
// 直接调用listeners底层组件不需要vueTool记录events
var args = [].slice.call(arguments, 0);
var eventName = args[0];
var event = this.$listeners[eventName];
if (args.length && event) {
if (Array.isArray(event)) {
for (var i = 0, l = event.length; i < l; i++) {
event[i].apply(event, babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(args.slice(1)));
}
} else {
event.apply(undefined, babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(args.slice(1)));
}
}
}
}
});
/***/ }),
/***/ "./components/_util/ContainerRender.jsx":
/*!**********************************************!*\
!*** ./components/_util/ContainerRender.jsx ***!
\**********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./vue-types */ "./components/_util/vue-types/index.js");
/* harmony default export */ __webpack_exports__["default"] = ({
props: {
autoMount: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
autoDestroy: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
visible: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
forceRender: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
parent: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
getComponent: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func.isRequired,
getContainer: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func.isRequired,
children: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func.isRequired
},
mounted: function mounted() {
if (this.autoMount) {
this.renderComponent();
}
},
updated: function updated() {
if (this.autoMount) {
this.renderComponent();
}
},
beforeDestroy: function beforeDestroy() {
if (this.autoDestroy) {
this.removeContainer();
}
},
methods: {
removeContainer: function removeContainer() {
if (this.container) {
this._component && this._component.$destroy();
this.container.parentNode.removeChild(this.container);
this.container = null;
this._component = null;
}
},
renderComponent: function renderComponent() {
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var ready = arguments[1];
var visible = this.visible,
forceRender = this.forceRender,
getContainer = this.getContainer,
parent = this.parent;
var self = this;
if (visible || parent._component || parent.$refs._component || forceRender) {
var el = this.componentEl;
if (!this.container) {
this.container = getContainer();
el = document.createElement('div');
this.componentEl = el;
this.container.appendChild(el);
}
// self.getComponent 不要放在 render 中,会因为响应式数据问题导致,多次触发 render
var com = { component: self.getComponent(props) };
if (!this._component) {
this._component = new this.$root.constructor({
el: el,
parent: self,
data: {
_com: com
},
mounted: function mounted() {
this.$nextTick(function () {
if (ready) {
ready.call(self);
}
});
},
updated: function updated() {
this.$nextTick(function () {
if (ready) {
ready.call(self);
}
});
},
methods: {
setComponent: function setComponent(_com) {
this.$data._com = _com;
}
},
render: function render() {
return this.$data._com.component;
}
});
} else {
this._component.setComponent(com);
}
}
}
},
render: function render() {
return this.children({
renderComponent: this.renderComponent,
removeContainer: this.removeContainer
});
}
});
/***/ }),
/***/ "./components/_util/FormDecoratorDirective.js":
/*!****************************************************!*\
!*** ./components/_util/FormDecoratorDirective.js ***!
\****************************************************/
/*! exports provided: antDecorator, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "antDecorator", function() { return antDecorator; });
function antDecorator(Vue) {
return Vue.directive('decorator', {});
}
/* harmony default export */ __webpack_exports__["default"] = ({
// just for tag
install: function install(Vue) {
antDecorator(Vue);
}
});
/***/ }),
/***/ "./components/_util/KeyCode.js":
/*!*************************************!*\
!*** ./components/_util/KeyCode.js ***!
\*************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/**
* @ignore
* some key-codes definition and utils from closure-library
* @author yiminghe@gmail.com
*/
var KeyCode = {
/**
* MAC_ENTER
*/
MAC_ENTER: 3,
/**
* BACKSPACE
*/
BACKSPACE: 8,
/**
* TAB
*/
TAB: 9,
/**
* NUMLOCK on FF/Safari Mac
*/
NUM_CENTER: 12, // NUMLOCK on FF/Safari Mac
/**
* ENTER
*/
ENTER: 13,
/**
* SHIFT
*/
SHIFT: 16,
/**
* CTRL
*/
CTRL: 17,
/**
* ALT
*/
ALT: 18,
/**
* PAUSE
*/
PAUSE: 19,
/**
* CAPS_LOCK
*/
CAPS_LOCK: 20,
/**
* ESC
*/
ESC: 27,
/**
* SPACE
*/
SPACE: 32,
/**
* PAGE_UP
*/
PAGE_UP: 33, // also NUM_NORTH_EAST
/**
* PAGE_DOWN
*/
PAGE_DOWN: 34, // also NUM_SOUTH_EAST
/**
* END
*/
END: 35, // also NUM_SOUTH_WEST
/**
* HOME
*/
HOME: 36, // also NUM_NORTH_WEST
/**
* LEFT
*/
LEFT: 37, // also NUM_WEST
/**
* UP
*/
UP: 38, // also NUM_NORTH
/**
* RIGHT
*/
RIGHT: 39, // also NUM_EAST
/**
* DOWN
*/
DOWN: 40, // also NUM_SOUTH
/**
* PRINT_SCREEN
*/
PRINT_SCREEN: 44,
/**
* INSERT
*/
INSERT: 45, // also NUM_INSERT
/**
* DELETE
*/
DELETE: 46, // also NUM_DELETE
/**
* ZERO
*/
ZERO: 48,
/**
* ONE
*/
ONE: 49,
/**
* TWO
*/
TWO: 50,
/**
* THREE
*/
THREE: 51,
/**
* FOUR
*/
FOUR: 52,
/**
* FIVE
*/
FIVE: 53,
/**
* SIX
*/
SIX: 54,
/**
* SEVEN
*/
SEVEN: 55,
/**
* EIGHT
*/
EIGHT: 56,
/**
* NINE
*/
NINE: 57,
/**
* QUESTION_MARK
*/
QUESTION_MARK: 63, // needs localization
/**
* A
*/
A: 65,
/**
* B
*/
B: 66,
/**
* C
*/
C: 67,
/**
* D
*/
D: 68,
/**
* E
*/
E: 69,
/**
* F
*/
F: 70,
/**
* G
*/
G: 71,
/**
* H
*/
H: 72,
/**
* I
*/
I: 73,
/**
* J
*/
J: 74,
/**
* K
*/
K: 75,
/**
* L
*/
L: 76,
/**
* M
*/
M: 77,
/**
* N
*/
N: 78,
/**
* O
*/
O: 79,
/**
* P
*/
P: 80,
/**
* Q
*/
Q: 81,
/**
* R
*/
R: 82,
/**
* S
*/
S: 83,
/**
* T
*/
T: 84,
/**
* U
*/
U: 85,
/**
* V
*/
V: 86,
/**
* W
*/
W: 87,
/**
* X
*/
X: 88,
/**
* Y
*/
Y: 89,
/**
* Z
*/
Z: 90,
/**
* META
*/
META: 91, // WIN_KEY_LEFT
/**
* WIN_KEY_RIGHT
*/
WIN_KEY_RIGHT: 92,
/**
* CONTEXT_MENU
*/
CONTEXT_MENU: 93,
/**
* NUM_ZERO
*/
NUM_ZERO: 96,
/**
* NUM_ONE
*/
NUM_ONE: 97,
/**
* NUM_TWO
*/
NUM_TWO: 98,
/**
* NUM_THREE
*/
NUM_THREE: 99,
/**
* NUM_FOUR
*/
NUM_FOUR: 100,
/**
* NUM_FIVE
*/
NUM_FIVE: 101,
/**
* NUM_SIX
*/
NUM_SIX: 102,
/**
* NUM_SEVEN
*/
NUM_SEVEN: 103,
/**
* NUM_EIGHT
*/
NUM_EIGHT: 104,
/**
* NUM_NINE
*/
NUM_NINE: 105,
/**
* NUM_MULTIPLY
*/
NUM_MULTIPLY: 106,
/**
* NUM_PLUS
*/
NUM_PLUS: 107,
/**
* NUM_MINUS
*/
NUM_MINUS: 109,
/**
* NUM_PERIOD
*/
NUM_PERIOD: 110,
/**
* NUM_DIVISION
*/
NUM_DIVISION: 111,
/**
* F1
*/
F1: 112,
/**
* F2
*/
F2: 113,
/**
* F3
*/
F3: 114,
/**
* F4
*/
F4: 115,
/**
* F5
*/
F5: 116,
/**
* F6
*/
F6: 117,
/**
* F7
*/
F7: 118,
/**
* F8
*/
F8: 119,
/**
* F9
*/
F9: 120,
/**
* F10
*/
F10: 121,
/**
* F11
*/
F11: 122,
/**
* F12
*/
F12: 123,
/**
* NUMLOCK
*/
NUMLOCK: 144,
/**
* SEMICOLON
*/
SEMICOLON: 186, // needs localization
/**
* DASH
*/
DASH: 189, // needs localization
/**
* EQUALS
*/
EQUALS: 187, // needs localization
/**
* COMMA
*/
COMMA: 188, // needs localization
/**
* PERIOD
*/
PERIOD: 190, // needs localization
/**
* SLASH
*/
SLASH: 191, // needs localization
/**
* APOSTROPHE
*/
APOSTROPHE: 192, // needs localization
/**
* SINGLE_QUOTE
*/
SINGLE_QUOTE: 222, // needs localization
/**
* OPEN_SQUARE_BRACKET
*/
OPEN_SQUARE_BRACKET: 219, // needs localization
/**
* BACKSLASH
*/
BACKSLASH: 220, // needs localization
/**
* CLOSE_SQUARE_BRACKET
*/
CLOSE_SQUARE_BRACKET: 221, // needs localization
/**
* WIN_KEY
*/
WIN_KEY: 224,
/**
* MAC_FF_META
*/
MAC_FF_META: 224, // Firefox (Gecko) fires this for the meta key instead of 91
/**
* WIN_IME
*/
WIN_IME: 229
};
/*
whether text and modified key is entered at the same time.
*/
KeyCode.isTextModifyingKeyEvent = function isTextModifyingKeyEvent(e) {
var keyCode = e.keyCode;
if (e.altKey && !e.ctrlKey || e.metaKey ||
// Function keys don't generate text
keyCode >= KeyCode.F1 && keyCode <= KeyCode.F12) {
return false;
}
// The following keys are quite harmless, even in combination with
// CTRL, ALT or SHIFT.
switch (keyCode) {
case KeyCode.ALT:
case KeyCode.CAPS_LOCK:
case KeyCode.CONTEXT_MENU:
case KeyCode.CTRL:
case KeyCode.DOWN:
case KeyCode.END:
case KeyCode.ESC:
case KeyCode.HOME:
case KeyCode.INSERT:
case KeyCode.LEFT:
case KeyCode.MAC_FF_META:
case KeyCode.META:
case KeyCode.NUMLOCK:
case KeyCode.NUM_CENTER:
case KeyCode.PAGE_DOWN:
case KeyCode.PAGE_UP:
case KeyCode.PAUSE:
case KeyCode.PRINT_SCREEN:
case KeyCode.RIGHT:
case KeyCode.SHIFT:
case KeyCode.UP:
case KeyCode.WIN_KEY:
case KeyCode.WIN_KEY_RIGHT:
return false;
default:
return true;
}
};
/*
whether character is entered.
*/
KeyCode.isCharacterKey = function isCharacterKey(keyCode) {
if (keyCode >= KeyCode.ZERO && keyCode <= KeyCode.NINE) {
return true;
}
if (keyCode >= KeyCode.NUM_ZERO && keyCode <= KeyCode.NUM_MULTIPLY) {
return true;
}
if (keyCode >= KeyCode.A && keyCode <= KeyCode.Z) {
return true;
}
// Safari sends zero key code for non-latin characters.
if (window.navigation.userAgent.indexOf('WebKit') !== -1 && keyCode === 0) {
return true;
}
switch (keyCode) {
case KeyCode.SPACE:
case KeyCode.QUESTION_MARK:
case KeyCode.NUM_PLUS:
case KeyCode.NUM_MINUS:
case KeyCode.NUM_PERIOD:
case KeyCode.NUM_DIVISION:
case KeyCode.SEMICOLON:
case KeyCode.DASH:
case KeyCode.EQUALS:
case KeyCode.COMMA:
case KeyCode.PERIOD:
case KeyCode.SLASH:
case KeyCode.APOSTROPHE:
case KeyCode.SINGLE_QUOTE:
case KeyCode.OPEN_SQUARE_BRACKET:
case KeyCode.BACKSLASH:
case KeyCode.CLOSE_SQUARE_BRACKET:
return true;
default:
return false;
}
};
/* harmony default export */ __webpack_exports__["default"] = (KeyCode);
/***/ }),
/***/ "./components/_util/Portal.js":
/*!************************************!*\
!*** ./components/_util/Portal.js ***!
\************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _vnode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./vnode */ "./components/_util/vnode.js");
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'Portal',
props: {
getContainer: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func.isRequired,
children: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any.isRequired,
didUpdate: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func
},
mounted: function mounted() {
this.createContainer();
},
updated: function updated() {
var _this = this;
var didUpdate = this.$props.didUpdate;
if (didUpdate) {
this.$nextTick(function () {
didUpdate(_this.$props);
});
}
},
beforeDestroy: function beforeDestroy() {
this.removeContainer();
},
methods: {
createContainer: function createContainer() {
this._container = this.$props.getContainer();
this.$forceUpdate();
},
removeContainer: function removeContainer() {
if (this._container && this._container.parentNode) {
this._container.parentNode.removeChild(this._container);
}
}
},
render: function render() {
if (this._container) {
return Object(_vnode__WEBPACK_IMPORTED_MODULE_1__["cloneElement"])(this.$props.children, {
directives: [{
name: 'ant-portal',
value: this._container
}]
});
}
return null;
}
});
/***/ }),
/***/ "./components/_util/PortalWrapper.js":
/*!*******************************************!*\
!*** ./components/_util/PortalWrapper.js ***!
\*******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _switchScrollingEffect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./switchScrollingEffect */ "./components/_util/switchScrollingEffect.js");
/* harmony import */ var _setStyle__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./setStyle */ "./components/_util/setStyle.js");
/* harmony import */ var _Portal__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Portal */ "./components/_util/Portal.js");
var openCount = 0;
var windowIsUndefined = !(typeof window !== 'undefined' && window.document && window.document.createElement);
// https://github.com/ant-design/ant-design/issues/19340
// https://github.com/ant-design/ant-design/issues/19332
var cacheOverflow = {};
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'PortalWrapper',
props: {
wrapperClassName: _vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
forceRender: _vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
getContainer: _vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
children: _vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
visible: _vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool
},
data: function data() {
var visible = this.$props.visible;
openCount = visible ? openCount + 1 : openCount;
return {};
},
updated: function updated() {
this.setWrapperClassName();
},
watch: {
visible: function visible(val) {
openCount = val ? openCount + 1 : openCount - 1;
},
getContainer: function getContainer(_getContainer, prevGetContainer) {
var getContainerIsFunc = typeof _getContainer === 'function' && typeof prevGetContainer === 'function';
if (getContainerIsFunc ? _getContainer.toString() !== prevGetContainer.toString() : _getContainer !== prevGetContainer) {
this.removeCurrentContainer(false);
}
}
},
beforeDestroy: function beforeDestroy() {
var visible = this.$props.visible;
// 离开时不会 render 导到离开时数值不变,改用 func 。。
openCount = visible && openCount ? openCount - 1 : openCount;
this.removeCurrentContainer(visible);
},
methods: {
getParent: function getParent() {
var getContainer = this.$props.getContainer;
if (getContainer) {
if (typeof getContainer === 'string') {
return document.querySelectorAll(getContainer)[0];
}
if (typeof getContainer === 'function') {
return getContainer();
}
if ((typeof getContainer === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(getContainer)) === 'object' && getContainer instanceof window.HTMLElement) {
return getContainer;
}
}
return document.body;
},
getDomContainer: function getDomContainer() {
if (windowIsUndefined) {
return null;
}
if (!this.container) {
this.container = document.createElement('div');
var parent = this.getParent();
if (parent) {
parent.appendChild(this.container);
}
}
this.setWrapperClassName();
return this.container;
},
setWrapperClassName: function setWrapperClassName() {
var wrapperClassName = this.$props.wrapperClassName;
if (this.container && wrapperClassName && wrapperClassName !== this.container.className) {
this.container.className = wrapperClassName;
}
},
savePortal: function savePortal(c) {
// Warning: don't rename _component
// https://github.com/react-component/util/pull/65#discussion_r352407916
this._component = c;
},
removeCurrentContainer: function removeCurrentContainer() {
this.container = null;
this._component = null;
},
/**
* Enhance ./switchScrollingEffect
* 1. Simulate document body scroll bar with
* 2. Record body has overflow style and recover when all of PortalWrapper invisible
* 3. Disable body scroll when PortalWrapper has open
*
* @memberof PortalWrapper
*/
switchScrollingEffect: function switchScrollingEffect() {
if (openCount === 1 && !Object.keys(cacheOverflow).length) {
Object(_switchScrollingEffect__WEBPACK_IMPORTED_MODULE_3__["default"])();
// Must be set after switchScrollingEffect
cacheOverflow = Object(_setStyle__WEBPACK_IMPORTED_MODULE_4__["default"])({
overflow: 'hidden',
overflowX: 'hidden',
overflowY: 'hidden'
});
} else if (!openCount) {
Object(_setStyle__WEBPACK_IMPORTED_MODULE_4__["default"])(cacheOverflow);
cacheOverflow = {};
Object(_switchScrollingEffect__WEBPACK_IMPORTED_MODULE_3__["default"])(true);
}
}
},
render: function render() {
var h = arguments[0];
var _$props = this.$props,
children = _$props.children,
forceRender = _$props.forceRender,
visible = _$props.visible;
var portal = null;
var childProps = {
getOpenCount: function getOpenCount() {
return openCount;
},
getContainer: this.getDomContainer,
switchScrollingEffect: this.switchScrollingEffect
};
if (forceRender || visible || this._component) {
portal = h(_Portal__WEBPACK_IMPORTED_MODULE_5__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
attrs: {
getContainer: this.getDomContainer,
children: children(childProps)
}
}, {
directives: [{
name: 'ant-ref',
value: this.savePortal
}]
}]));
}
return portal;
}
});
/***/ }),
/***/ "./components/_util/antDirective.js":
/*!******************************************!*\
!*** ./components/_util/antDirective.js ***!
\******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
/* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _antInputDirective__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./antInputDirective */ "./components/_util/antInputDirective.js");
/* harmony import */ var _FormDecoratorDirective__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./FormDecoratorDirective */ "./components/_util/FormDecoratorDirective.js");
/* harmony import */ var _portalDirective__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./portalDirective */ "./components/_util/portalDirective.js");
/* harmony default export */ __webpack_exports__["default"] = ({
install: function install(Vue) {
Vue.use(vue_ref__WEBPACK_IMPORTED_MODULE_0___default.a, { name: 'ant-ref' });
Object(_antInputDirective__WEBPACK_IMPORTED_MODULE_1__["antInput"])(Vue);
Object(_FormDecoratorDirective__WEBPACK_IMPORTED_MODULE_2__["antDecorator"])(Vue);
Object(_portalDirective__WEBPACK_IMPORTED_MODULE_3__["antPortal"])(Vue);
}
});
/***/ }),
/***/ "./components/_util/antInputDirective.js":
/*!***********************************************!*\
!*** ./components/_util/antInputDirective.js ***!
\***********************************************/
/*! exports provided: inBrowser, UA, isIE9, antInput, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "inBrowser", function() { return inBrowser; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UA", function() { return UA; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isIE9", function() { return isIE9; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "antInput", function() { return antInput; });
/**
* Not type checking this file because flow doesn't like attaching
* properties to Elements.
*/
var inBrowser = typeof window !== 'undefined';
var UA = inBrowser && window.navigator.userAgent.toLowerCase();
var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
function makeMap(str, expectsLowerCase) {
var map = Object.create(null);
var list = str.split(',');
for (var i = 0; i < list.length; i++) {
map[list[i]] = true;
}
return expectsLowerCase ? function (val) {
return map[val.toLowerCase()];
} : function (val) {
return map[val];
};
}
var isTextInputType = makeMap('text,number,password,search,email,tel,url');
function onCompositionStart(e) {
e.target.composing = true;
}
function onCompositionEnd(e) {
// prevent triggering an input event for no reason
if (!e.target.composing) return;
e.target.composing = false;
trigger(e.target, 'input');
}
function trigger(el, type) {
var e = document.createEvent('HTMLEvents');
e.initEvent(type, true, true);
el.dispatchEvent(e);
}
/* istanbul ignore if */
if (isIE9) {
// http://www.matts411.com/post/internet-explorer-9-oninput/
document.addEventListener('selectionchange', function () {
var el = document.activeElement;
if (el && el.vmodel) {
trigger(el, 'input');
}
});
}
function antInput(Vue) {
return Vue.directive('ant-input', {
inserted: function inserted(el, binding, vnode) {
if (vnode.tag === 'textarea' || isTextInputType(el.type)) {
if (!binding.modifiers || !binding.modifiers.lazy) {
el.addEventListener('compositionstart', onCompositionStart);
el.addEventListener('compositionend', onCompositionEnd);
// Safari < 10.2 & UIWebView doesn't fire compositionend when
// switching focus before confirming composition choice
// this also fixes the issue where some browsers e.g. iOS Chrome
// fires "change" instead of "input" on autocomplete.
el.addEventListener('change', onCompositionEnd);
/* istanbul ignore if */
if (isIE9) {
el.vmodel = true;
}
}
}
}
});
}
/* harmony default export */ __webpack_exports__["default"] = ({
install: function install(Vue) {
antInput(Vue);
}
});
/***/ }),
/***/ "./components/_util/colors.js":
/*!************************************!*\
!*** ./components/_util/colors.js ***!
\************************************/
/*! exports provided: PresetColorTypes */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PresetColorTypes", function() { return PresetColorTypes; });
/* harmony import */ var _type__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./type */ "./components/_util/type.js");
var PresetColorTypes = Object(_type__WEBPACK_IMPORTED_MODULE_0__["tuple"])('pink', 'red', 'yellow', 'orange', 'cyan', 'green', 'blue', 'purple', 'geekblue', 'magenta', 'volcano', 'gold', 'lime');
/***/ }),
/***/ "./components/_util/createChainedFunction.js":
/*!***************************************************!*\
!*** ./components/_util/createChainedFunction.js ***!
\***************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return createChainedFunction; });
/**
* Safe chained function
*
* Will only create a new function if needed,
* otherwise will pass back existing functions or null.
*
* @returns {function|null}
*/
function createChainedFunction() {
var args = [].slice.call(arguments, 0);
if (args.length === 1) {
return args[0];
}
return function chainedFunction() {
for (var i = 0; i < args.length; i++) {
if (args[i] && args[i].apply) {
args[i].apply(this, arguments);
}
}
};
}
/***/ }),
/***/ "./components/_util/css-animation/Event.js":
/*!*************************************************!*\
!*** ./components/_util/css-animation/Event.js ***!
\*************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
var START_EVENT_NAME_MAP = {
transitionstart: {
transition: 'transitionstart',
WebkitTransition: 'webkitTransitionStart',
MozTransition: 'mozTransitionStart',
OTransition: 'oTransitionStart',
msTransition: 'MSTransitionStart'
},
animationstart: {
animation: 'animationstart',
WebkitAnimation: 'webkitAnimationStart',
MozAnimation: 'mozAnimationStart',
OAnimation: 'oAnimationStart',
msAnimation: 'MSAnimationStart'
}
};
var END_EVENT_NAME_MAP = {
transitionend: {
transition: 'transitionend',
WebkitTransition: 'webkitTransitionEnd',
MozTransition: 'mozTransitionEnd',
OTransition: 'oTransitionEnd',
msTransition: 'MSTransitionEnd'
},
animationend: {
animation: 'animationend',
WebkitAnimation: 'webkitAnimationEnd',
MozAnimation: 'mozAnimationEnd',
OAnimation: 'oAnimationEnd',
msAnimation: 'MSAnimationEnd'
}
};
var startEvents = [];
var endEvents = [];
function detectEvents() {
var testEl = document.createElement('div');
var style = testEl.style;
if (!('AnimationEvent' in window)) {
delete START_EVENT_NAME_MAP.animationstart.animation;
delete END_EVENT_NAME_MAP.animationend.animation;
}
if (!('TransitionEvent' in window)) {
delete START_EVENT_NAME_MAP.transitionstart.transition;
delete END_EVENT_NAME_MAP.transitionend.transition;
}
function process(EVENT_NAME_MAP, events) {
for (var baseEventName in EVENT_NAME_MAP) {
if (EVENT_NAME_MAP.hasOwnProperty(baseEventName)) {
var baseEvents = EVENT_NAME_MAP[baseEventName];
for (var styleName in baseEvents) {
if (styleName in style) {
events.push(baseEvents[styleName]);
break;
}
}
}
}
}
process(START_EVENT_NAME_MAP, startEvents);
process(END_EVENT_NAME_MAP, endEvents);
}
if (typeof window !== 'undefined' && typeof document !== 'undefined') {
detectEvents();
}
function addEventListener(node, eventName, eventListener) {
node.addEventListener(eventName, eventListener, false);
}
function removeEventListener(node, eventName, eventListener) {
node.removeEventListener(eventName, eventListener, false);
}
var TransitionEvents = {
// Start events
startEvents: startEvents,
addStartEventListener: function addStartEventListener(node, eventListener) {
if (startEvents.length === 0) {
window.setTimeout(eventListener, 0);
return;
}
startEvents.forEach(function (startEvent) {
addEventListener(node, startEvent, eventListener);
});
},
removeStartEventListener: function removeStartEventListener(node, eventListener) {
if (startEvents.length === 0) {
return;
}
startEvents.forEach(function (startEvent) {
removeEventListener(node, startEvent, eventListener);
});
},
// End events
endEvents: endEvents,
addEndEventListener: function addEndEventListener(node, eventListener) {
if (endEvents.length === 0) {
window.setTimeout(eventListener, 0);
return;
}
endEvents.forEach(function (endEvent) {
addEventListener(node, endEvent, eventListener);
});
},
removeEndEventListener: function removeEndEventListener(node, eventListener) {
if (endEvents.length === 0) {
return;
}
endEvents.forEach(function (endEvent) {
removeEventListener(node, endEvent, eventListener);
});
}
};
/* harmony default export */ __webpack_exports__["default"] = (TransitionEvents);
/***/ }),
/***/ "./components/_util/css-animation/index.js":
/*!*************************************************!*\
!*** ./components/_util/css-animation/index.js ***!
\*************************************************/
/*! exports provided: isCssAnimationSupported, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isCssAnimationSupported", function() { return isCssAnimationSupported; });
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _Event__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Event */ "./components/_util/css-animation/Event.js");
/* harmony import */ var component_classes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! component-classes */ "./node_modules/component-classes/index.js");
/* harmony import */ var component_classes__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(component_classes__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../requestAnimationTimeout */ "./components/_util/requestAnimationTimeout.js");
// https://github.com/yiminghe/css-animation 1.5.0
var isCssAnimationSupported = _Event__WEBPACK_IMPORTED_MODULE_1__["default"].endEvents.length !== 0;
var capitalPrefixes = ['Webkit', 'Moz', 'O',
// ms is special .... !
'ms'];
var prefixes = ['-webkit-', '-moz-', '-o-', 'ms-', ''];
function getStyleProperty(node, name) {
// old ff need null, https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle
var style = window.getComputedStyle(node, null);
var ret = '';
for (var i = 0; i < prefixes.length; i++) {
ret = style.getPropertyValue(prefixes[i] + name);
if (ret) {
break;
}
}
return ret;
}
function fixBrowserByTimeout(node) {
if (isCssAnimationSupported) {
var transitionDelay = parseFloat(getStyleProperty(node, 'transition-delay')) || 0;
var transitionDuration = parseFloat(getStyleProperty(node, 'transition-duration')) || 0;
var animationDelay = parseFloat(getStyleProperty(node, 'animation-delay')) || 0;
var animationDuration = parseFloat(getStyleProperty(node, 'animation-duration')) || 0;
var time = Math.max(transitionDuration + transitionDelay, animationDuration + animationDelay);
// sometimes, browser bug
node.rcEndAnimTimeout = setTimeout(function () {
node.rcEndAnimTimeout = null;
if (node.rcEndListener) {
node.rcEndListener();
}
}, time * 1000 + 200);
}
}
function clearBrowserBugTimeout(node) {
if (node.rcEndAnimTimeout) {
clearTimeout(node.rcEndAnimTimeout);
node.rcEndAnimTimeout = null;
}
}
var cssAnimation = function cssAnimation(node, transitionName, endCallback) {
var nameIsObj = (typeof transitionName === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(transitionName)) === 'object';
var className = nameIsObj ? transitionName.name : transitionName;
var activeClassName = nameIsObj ? transitionName.active : transitionName + '-active';
var end = endCallback;
var start = void 0;
var active = void 0;
var nodeClasses = component_classes__WEBPACK_IMPORTED_MODULE_2___default()(node);
if (endCallback && Object.prototype.toString.call(endCallback) === '[object Object]') {
end = endCallback.end;
start = endCallback.start;
active = endCallback.active;
}
if (node.rcEndListener) {
node.rcEndListener();
}
node.rcEndListener = function (e) {
if (e && e.target !== node) {
return;
}
if (node.rcAnimTimeout) {
Object(_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_3__["cancelAnimationTimeout"])(node.rcAnimTimeout);
node.rcAnimTimeout = null;
}
clearBrowserBugTimeout(node);
nodeClasses.remove(className);
nodeClasses.remove(activeClassName);
_Event__WEBPACK_IMPORTED_MODULE_1__["default"].removeEndEventListener(node, node.rcEndListener);
node.rcEndListener = null;
// Usually this optional end is used for informing an owner of
// a leave animation and telling it to remove the child.
if (end) {
end();
}
};
_Event__WEBPACK_IMPORTED_MODULE_1__["default"].addEndEventListener(node, node.rcEndListener);
if (start) {
start();
}
nodeClasses.add(className);
node.rcAnimTimeout = Object(_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_3__["requestAnimationTimeout"])(function () {
node.rcAnimTimeout = null;
nodeClasses.add(className);
nodeClasses.add(activeClassName);
if (active) {
Object(_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_3__["requestAnimationTimeout"])(active, 0);
}
fixBrowserByTimeout(node);
// 30ms for firefox
}, 30);
return {
stop: function stop() {
if (node.rcEndListener) {
node.rcEndListener();
}
}
};
};
cssAnimation.style = function (node, style, callback) {
if (node.rcEndListener) {
node.rcEndListener();
}
node.rcEndListener = function (e) {
if (e && e.target !== node) {
return;
}
if (node.rcAnimTimeout) {
Object(_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_3__["cancelAnimationTimeout"])(node.rcAnimTimeout);
node.rcAnimTimeout = null;
}
clearBrowserBugTimeout(node);
_Event__WEBPACK_IMPORTED_MODULE_1__["default"].removeEndEventListener(node, node.rcEndListener);
node.rcEndListener = null;
// Usually this optional callback is used for informing an owner of
// a leave animation and telling it to remove the child.
if (callback) {
callback();
}
};
_Event__WEBPACK_IMPORTED_MODULE_1__["default"].addEndEventListener(node, node.rcEndListener);
node.rcAnimTimeout = Object(_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_3__["requestAnimationTimeout"])(function () {
for (var s in style) {
if (style.hasOwnProperty(s)) {
node.style[s] = style[s];
}
}
node.rcAnimTimeout = null;
fixBrowserByTimeout(node);
}, 0);
};
cssAnimation.setTransition = function (node, p, value) {
var property = p;
var v = value;
if (value === undefined) {
v = property;
property = '';
}
property = property || '';
capitalPrefixes.forEach(function (prefix) {
node.style[prefix + 'Transition' + property] = v;
});
};
cssAnimation.isCssAnimationSupported = isCssAnimationSupported;
/* harmony default export */ __webpack_exports__["default"] = (cssAnimation);
/***/ }),
/***/ "./components/_util/easings.js":
/*!*************************************!*\
!*** ./components/_util/easings.js ***!
\*************************************/
/*! exports provided: easeInOutCubic */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "easeInOutCubic", function() { return easeInOutCubic; });
function easeInOutCubic(t, b, c, d) {
var cc = c - b;
t /= d / 2;
if (t < 1) {
return cc / 2 * t * t * t + b;
}
return cc / 2 * ((t -= 2) * t * t + 2) + b;
}
/***/ }),
/***/ "./components/_util/env.js":
/*!*********************************!*\
!*** ./components/_util/env.js ***!
\*********************************/
/*! exports provided: inBrowser, inWeex, weexPlatform, UA, isIE, isIE9, isEdge, isAndroid, isIOS, isChrome, isPhantomJS, isFF */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "inBrowser", function() { return inBrowser; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "inWeex", function() { return inWeex; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "weexPlatform", function() { return weexPlatform; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UA", function() { return UA; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isIE", function() { return isIE; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isIE9", function() { return isIE9; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isEdge", function() { return isEdge; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isAndroid", function() { return isAndroid; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isIOS", function() { return isIOS; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isChrome", function() { return isChrome; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isPhantomJS", function() { return isPhantomJS; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isFF", function() { return isFF; });
/* eslint-disable no-undef */
// Browser environment sniffing
var inBrowser = typeof window !== 'undefined';
var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
var UA = inBrowser && window.navigator.userAgent.toLowerCase();
var isIE = UA && /msie|trident/.test(UA);
var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
var isEdge = UA && UA.indexOf('edge/') > 0;
var isAndroid = UA && UA.indexOf('android') > 0 || weexPlatform === 'android';
var isIOS = UA && /iphone|ipad|ipod|ios/.test(UA) || weexPlatform === 'ios';
var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
var isPhantomJS = UA && /phantomjs/.test(UA);
var isFF = UA && UA.match(/firefox\/(\d+)/);
/***/ }),
/***/ "./components/_util/getRequestAnimationFrame.js":
/*!******************************************************!*\
!*** ./components/_util/getRequestAnimationFrame.js ***!
\******************************************************/
/*! exports provided: default, cancelRequestAnimationFrame */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getRequestAnimationFrame; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cancelRequestAnimationFrame", function() { return cancelRequestAnimationFrame; });
var availablePrefixs = ['moz', 'ms', 'webkit'];
function requestAnimationFramePolyfill() {
var lastTime = 0;
return function (callback) {
var currTime = new Date().getTime();
var timeToCall = Math.max(0, 16 - (currTime - lastTime));
var id = window.setTimeout(function () {
callback(currTime + timeToCall);
}, timeToCall);
lastTime = currTime + timeToCall;
return id;
};
}
function getRequestAnimationFrame() {
if (typeof window === 'undefined') {
return function () {};
}
if (window.requestAnimationFrame) {
// https://github.com/vuejs/vue/issues/4465
return window.requestAnimationFrame.bind(window);
}
var prefix = availablePrefixs.filter(function (key) {
return key + 'RequestAnimationFrame' in window;
})[0];
return prefix ? window[prefix + 'RequestAnimationFrame'] : requestAnimationFramePolyfill();
}
function cancelRequestAnimationFrame(id) {
if (typeof window === 'undefined') {
return null;
}
if (window.cancelAnimationFrame) {
return window.cancelAnimationFrame(id);
}
var prefix = availablePrefixs.filter(function (key) {
return key + 'CancelAnimationFrame' in window || key + 'CancelRequestAnimationFrame' in window;
})[0];
return prefix ? (window[prefix + 'CancelAnimationFrame'] || window[prefix + 'CancelRequestAnimationFrame']).call(this, id) : clearTimeout(id);
}
/***/ }),
/***/ "./components/_util/getScroll.js":
/*!***************************************!*\
!*** ./components/_util/getScroll.js ***!
\***************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getScroll; });
function getScroll(target, top) {
if (typeof window === 'undefined') {
return 0;
}
var prop = top ? 'pageYOffset' : 'pageXOffset';
var method = top ? 'scrollTop' : 'scrollLeft';
var isWindow = target === window;
var ret = isWindow ? target[prop] : target[method];
// ie6,7,8 standard mode
if (isWindow && typeof ret !== 'number') {
ret = window.document.documentElement[method];
}
return ret;
}
/***/ }),
/***/ "./components/_util/getScrollBarSize.js":
/*!**********************************************!*\
!*** ./components/_util/getScrollBarSize.js ***!
\**********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getScrollBarSize; });
var cached = void 0;
function getScrollBarSize(fresh) {
if (fresh || cached === undefined) {
var inner = document.createElement('div');
inner.style.width = '100%';
inner.style.height = '200px';
var outer = document.createElement('div');
var outerStyle = outer.style;
outerStyle.position = 'absolute';
outerStyle.top = 0;
outerStyle.left = 0;
outerStyle.pointerEvents = 'none';
outerStyle.visibility = 'hidden';
outerStyle.width = '200px';
outerStyle.height = '150px';
outerStyle.overflow = 'hidden';
outer.appendChild(inner);
document.body.appendChild(outer);
var widthContained = inner.offsetWidth;
outer.style.overflow = 'scroll';
var widthScroll = inner.offsetWidth;
if (widthContained === widthScroll) {
widthScroll = outer.clientWidth;
}
document.body.removeChild(outer);
cached = widthContained - widthScroll;
}
return cached;
}
/***/ }),
/***/ "./components/_util/getTransitionProps.js":
/*!************************************************!*\
!*** ./components/_util/getTransitionProps.js ***!
\************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _css_animation__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./css-animation */ "./components/_util/css-animation/index.js");
var noop = function noop() {};
var getTransitionProps = function getTransitionProps(transitionName) {
var opt = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var beforeEnter = opt.beforeEnter,
enter = opt.enter,
afterEnter = opt.afterEnter,
leave = opt.leave,
afterLeave = opt.afterLeave,
_opt$appear = opt.appear,
appear = _opt$appear === undefined ? true : _opt$appear,
tag = opt.tag,
nativeOn = opt.nativeOn;
var transitionProps = {
props: {
appear: appear,
css: false
},
on: {
beforeEnter: beforeEnter || noop,
enter: enter || function (el, done) {
Object(_css_animation__WEBPACK_IMPORTED_MODULE_0__["default"])(el, transitionName + '-enter', done);
},
afterEnter: afterEnter || noop,
leave: leave || function (el, done) {
Object(_css_animation__WEBPACK_IMPORTED_MODULE_0__["default"])(el, transitionName + '-leave', done);
},
afterLeave: afterLeave || noop
},
nativeOn: nativeOn
};
// transition-group
if (tag) {
transitionProps.tag = tag;
}
return transitionProps;
};
/* harmony default export */ __webpack_exports__["default"] = (getTransitionProps);
/***/ }),
/***/ "./components/_util/interopDefault.js":
/*!********************************************!*\
!*** ./components/_util/interopDefault.js ***!
\********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return interopDefault; });
// https://github.com/moment/moment/issues/3650
function interopDefault(m) {
return m["default"] || m;
}
/***/ }),
/***/ "./components/_util/isFlexSupported.js":
/*!*********************************************!*\
!*** ./components/_util/isFlexSupported.js ***!
\*********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return isFlexSupported; });
function isFlexSupported() {
if (typeof window !== 'undefined' && window.document && window.document.documentElement) {
var documentElement = window.document.documentElement;
return 'flex' in documentElement.style || 'webkitFlex' in documentElement.style || 'Flex' in documentElement.style || 'msFlex' in documentElement.style;
}
return false;
}
/***/ }),
/***/ "./components/_util/isNumeric.js":
/*!***************************************!*\
!*** ./components/_util/isNumeric.js ***!
\***************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
var isNumeric = function isNumeric(value) {
return !isNaN(parseFloat(value)) && isFinite(value);
};
/* harmony default export */ __webpack_exports__["default"] = (isNumeric);
/***/ }),
/***/ "./components/_util/isValid.js":
/*!*************************************!*\
!*** ./components/_util/isValid.js ***!
\*************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
var isValid = function isValid(value) {
return value !== undefined && value !== null && value !== '';
};
/* harmony default export */ __webpack_exports__["default"] = (isValid);
/***/ }),
/***/ "./components/_util/moment-util.js":
/*!*****************************************!*\
!*** ./components/_util/moment-util.js ***!
\*****************************************/
/*! exports provided: TimeType, TimesType, TimeOrTimesType, checkValidate, stringToMoment, momentToString */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TimeType", function() { return TimeType; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TimesType", function() { return TimesType; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TimeOrTimesType", function() { return TimeOrTimesType; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "checkValidate", function() { return checkValidate; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "stringToMoment", function() { return stringToMoment; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "momentToString", function() { return momentToString; });
/* harmony import */ var _interopDefault__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interopDefault */ "./components/_util/interopDefault.js");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "moment");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _warning__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./warning */ "./components/_util/warning.js");
/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js");
/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_3__);
var TimeType = {
validator: function validator(value) {
return typeof value === 'string' || lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(value) || moment__WEBPACK_IMPORTED_MODULE_1__["isMoment"](value);
}
};
var TimesType = {
validator: function validator(value) {
if (Array.isArray(value)) {
return value.length === 0 || value.findIndex(function (val) {
return typeof val !== 'string';
}) === -1 || value.findIndex(function (val) {
return !lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(val) && !moment__WEBPACK_IMPORTED_MODULE_1__["isMoment"](val);
}) === -1;
}
return false;
}
};
var TimeOrTimesType = {
validator: function validator(value) {
if (Array.isArray(value)) {
return value.length === 0 || value.findIndex(function (val) {
return typeof val !== 'string';
}) === -1 || value.findIndex(function (val) {
return !lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(val) && !moment__WEBPACK_IMPORTED_MODULE_1__["isMoment"](val);
}) === -1;
} else {
return typeof value === 'string' || lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(value) || moment__WEBPACK_IMPORTED_MODULE_1__["isMoment"](value);
}
}
};
function checkValidate(componentName, value, propName, valueFormat) {
var values = Array.isArray(value) ? value : [value];
values.forEach(function (val) {
if (!val) return;
valueFormat && Object(_warning__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_interopDefault__WEBPACK_IMPORTED_MODULE_0__["default"])(moment__WEBPACK_IMPORTED_MODULE_1__)(val, valueFormat).isValid(), componentName, 'When set `valueFormat`, `' + propName + '` should provides invalidate string time. ');
!valueFormat && Object(_warning__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_interopDefault__WEBPACK_IMPORTED_MODULE_0__["default"])(moment__WEBPACK_IMPORTED_MODULE_1__).isMoment(val) && val.isValid(), componentName, '`' + propName + '` provides invalidate moment time. If you want to set empty value, use `null` instead.');
});
}
var stringToMoment = function stringToMoment(value, valueFormat) {
if (Array.isArray(value)) {
return value.map(function (val) {
return typeof val === 'string' && val ? Object(_interopDefault__WEBPACK_IMPORTED_MODULE_0__["default"])(moment__WEBPACK_IMPORTED_MODULE_1__)(val, valueFormat) : val || null;
});
} else {
return typeof value === 'string' && value ? Object(_interopDefault__WEBPACK_IMPORTED_MODULE_0__["default"])(moment__WEBPACK_IMPORTED_MODULE_1__)(value, valueFormat) : value || null;
}
};
var momentToString = function momentToString(value, valueFormat) {
if (Array.isArray(value)) {
return value.map(function (val) {
return Object(_interopDefault__WEBPACK_IMPORTED_MODULE_0__["default"])(moment__WEBPACK_IMPORTED_MODULE_1__).isMoment(val) ? val.format(valueFormat) : val;
});
} else {
return Object(_interopDefault__WEBPACK_IMPORTED_MODULE_0__["default"])(moment__WEBPACK_IMPORTED_MODULE_1__).isMoment(value) ? value.format(valueFormat) : value;
}
};
/***/ }),
/***/ "./components/_util/openAnimation.js":
/*!*******************************************!*\
!*** ./components/_util/openAnimation.js ***!
\*******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _css_animation__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./css-animation */ "./components/_util/css-animation/index.js");
/* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! raf */ "./node_modules/raf/index.js");
/* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(raf__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ "vue");
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_2__);
function animate(node, show, done) {
var height = void 0;
var requestAnimationFrameId = void 0;
var appearRequestAnimationFrameId = void 0;
return Object(_css_animation__WEBPACK_IMPORTED_MODULE_0__["default"])(node, 'ant-motion-collapse-legacy', {
start: function start() {
if (appearRequestAnimationFrameId) {
raf__WEBPACK_IMPORTED_MODULE_1___default.a.cancel(appearRequestAnimationFrameId);
}
if (!show) {
node.style.height = node.offsetHeight + 'px';
node.style.opacity = '1';
} else {
height = node.offsetHeight;
// not get offsetHeight when appear
// set it into raf get correct offsetHeight
if (height === 0) {
appearRequestAnimationFrameId = raf__WEBPACK_IMPORTED_MODULE_1___default()(function () {
height = node.offsetHeight;
node.style.height = '0px';
node.style.opacity = '0';
});
} else {
node.style.height = '0px';
node.style.opacity = '0';
}
}
},
active: function active() {
if (requestAnimationFrameId) {
raf__WEBPACK_IMPORTED_MODULE_1___default.a.cancel(requestAnimationFrameId);
}
requestAnimationFrameId = raf__WEBPACK_IMPORTED_MODULE_1___default()(function () {
node.style.height = (show ? height : 0) + 'px';
node.style.opacity = show ? '1' : '0';
});
},
end: function end() {
if (appearRequestAnimationFrameId) {
raf__WEBPACK_IMPORTED_MODULE_1___default.a.cancel(appearRequestAnimationFrameId);
}
if (requestAnimationFrameId) {
raf__WEBPACK_IMPORTED_MODULE_1___default.a.cancel(requestAnimationFrameId);
}
node.style.height = '';
node.style.opacity = '';
done && done();
}
});
}
var animation = {
enter: function enter(node, done) {
vue__WEBPACK_IMPORTED_MODULE_2___default.a.nextTick(function () {
animate(node, true, done);
});
},
leave: function leave(node, done) {
return animate(node, false, done);
}
};
/* harmony default export */ __webpack_exports__["default"] = (animation);
/***/ }),
/***/ "./components/_util/portalDirective.js":
/*!*********************************************!*\
!*** ./components/_util/portalDirective.js ***!
\*********************************************/
/*! exports provided: antPortal, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "antPortal", function() { return antPortal; });
function antPortal(Vue) {
return Vue.directive('ant-portal', {
inserted: function inserted(el, binding) {
var value = binding.value;
var parentNode = typeof value === 'function' ? value(el) : value;
if (parentNode !== el.parentNode) {
parentNode.appendChild(el);
}
},
componentUpdated: function componentUpdated(el, binding) {
var value = binding.value;
var parentNode = typeof value === 'function' ? value(el) : value;
if (parentNode !== el.parentNode) {
parentNode.appendChild(el);
}
}
});
}
/* harmony default export */ __webpack_exports__["default"] = ({
install: function install(Vue) {
antPortal(Vue);
}
});
/***/ }),
/***/ "./components/_util/props-util.js":
/*!****************************************!*\
!*** ./components/_util/props-util.js ***!
\****************************************/
/*! exports provided: getEvents, getDataEvents, getListeners, getClass, getStyle, getComponentName, isEmptyElement, isStringElement, filterEmpty, mergeProps, hasProp, filterProps, getOptionProps, getComponentFromProp, getSlotOptions, slotHasProp, getPropsData, getKey, getAttrs, getValueByProp, parseStyleText, initDefaultProps, isValidElement, camelize, getSlots, getSlot, getAllProps, getAllChildren, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getEvents", function() { return getEvents; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDataEvents", function() { return getDataEvents; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getListeners", function() { return getListeners; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getClass", function() { return getClass; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyle", function() { return getStyle; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getComponentName", function() { return getComponentName; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isEmptyElement", function() { return isEmptyElement; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isStringElement", function() { return isStringElement; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "filterEmpty", function() { return filterEmpty; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mergeProps", function() { return mergeProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasProp", function() { return hasProp; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "filterProps", function() { return filterProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getOptionProps", function() { return getOptionProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getComponentFromProp", function() { return getComponentFromProp; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSlotOptions", function() { return getSlotOptions; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "slotHasProp", function() { return slotHasProp; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPropsData", function() { return getPropsData; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getKey", function() { return getKey; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAttrs", function() { return getAttrs; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getValueByProp", function() { return getValueByProp; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseStyleText", function() { return parseStyleText; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initDefaultProps", function() { return initDefaultProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isValidElement", function() { return isValidElement; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "camelize", function() { return camelize; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSlots", function() { return getSlots; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSlot", function() { return getSlot; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAllProps", function() { return getAllProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAllChildren", function() { return getAllChildren; });
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/slicedToArray */ "./node_modules/babel-runtime/helpers/slicedToArray.js");
/* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/isPlainObject */ "./node_modules/lodash/isPlainObject.js");
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
function getType(fn) {
var match = fn && fn.toString().match(/^\s*function (\w+)/);
return match ? match[1] : '';
}
var camelizeRE = /-(\w)/g;
var camelize = function camelize(str) {
return str.replace(camelizeRE, function (_, c) {
return c ? c.toUpperCase() : '';
});
};
var parseStyleText = function parseStyleText() {
var cssText = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
var camel = arguments[1];
var res = {};
var listDelimiter = /;(?![^(]*\))/g;
var propertyDelimiter = /:(.+)/;
cssText.split(listDelimiter).forEach(function (item) {
if (item) {
var tmp = item.split(propertyDelimiter);
if (tmp.length > 1) {
var k = camel ? camelize(tmp[0].trim()) : tmp[0].trim();
res[k] = tmp[1].trim();
}
}
});
return res;
};
var hasProp = function hasProp(instance, prop) {
var $options = instance.$options || {};
var propsData = $options.propsData || {};
return prop in propsData;
};
var slotHasProp = function slotHasProp(slot, prop) {
var $options = slot.componentOptions || {};
var propsData = $options.propsData || {};
return prop in propsData;
};
var filterProps = function filterProps(props) {
var propsData = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var res = {};
Object.keys(props).forEach(function (k) {
if (k in propsData || props[k] !== undefined) {
res[k] = props[k];
}
});
return res;
};
var getScopedSlots = function getScopedSlots(ele) {
return ele.data && ele.data.scopedSlots || {};
};
var getSlots = function getSlots(ele) {
var componentOptions = ele.componentOptions || {};
if (ele.$vnode) {
componentOptions = ele.$vnode.componentOptions || {};
}
var children = ele.children || componentOptions.children || [];
var slots = {};
children.forEach(function (child) {
if (!isEmptyElement(child)) {
var name = child.data && child.data.slot || 'default';
slots[name] = slots[name] || [];
slots[name].push(child);
}
});
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, slots, getScopedSlots(ele));
};
var getSlot = function getSlot(self) {
var name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'default';
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
return self.$scopedSlots && self.$scopedSlots[name] && self.$scopedSlots[name](options) || self.$slots[name] || [];
};
var getAllChildren = function getAllChildren(ele) {
var componentOptions = ele.componentOptions || {};
if (ele.$vnode) {
componentOptions = ele.$vnode.componentOptions || {};
}
return ele.children || componentOptions.children || [];
};
var getSlotOptions = function getSlotOptions(ele) {
if (ele.fnOptions) {
// 函数式组件
return ele.fnOptions;
}
var componentOptions = ele.componentOptions;
if (ele.$vnode) {
componentOptions = ele.$vnode.componentOptions;
}
return componentOptions ? componentOptions.Ctor.options || {} : {};
};
var getOptionProps = function getOptionProps(instance) {
if (instance.componentOptions) {
var componentOptions = instance.componentOptions;
var _componentOptions$pro = componentOptions.propsData,
propsData = _componentOptions$pro === undefined ? {} : _componentOptions$pro,
_componentOptions$Cto = componentOptions.Ctor,
Ctor = _componentOptions$Cto === undefined ? {} : _componentOptions$Cto;
var props = (Ctor.options || {}).props || {};
var res = {};
var _iteratorNormalCompletion = true;
var _didIteratorError = false;
var _iteratorError = undefined;
try {
for (var _iterator = Object.entries(props)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
var _ref = _step.value;
var _ref2 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_ref, 2);
var k = _ref2[0];
var v = _ref2[1];
var def = v['default'];
if (def !== undefined) {
res[k] = typeof def === 'function' && getType(v.type) !== 'Function' ? def.call(instance) : def;
}
}
} catch (err) {
_didIteratorError = true;
_iteratorError = err;
} finally {
try {
if (!_iteratorNormalCompletion && _iterator['return']) {
_iterator['return']();
}
} finally {
if (_didIteratorError) {
throw _iteratorError;
}
}
}
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, res, propsData);
}
var _instance$$options = instance.$options,
$options = _instance$$options === undefined ? {} : _instance$$options,
_instance$$props = instance.$props,
$props = _instance$$props === undefined ? {} : _instance$$props;
return filterProps($props, $options.propsData);
};
var getComponentFromProp = function getComponentFromProp(instance, prop) {
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : instance;
var execute = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
if (instance.$createElement) {
var h = instance.$createElement;
var temp = instance[prop];
if (temp !== undefined) {
return typeof temp === 'function' && execute ? temp(h, options) : temp;
}
return instance.$scopedSlots[prop] && execute && instance.$scopedSlots[prop](options) || instance.$scopedSlots[prop] || instance.$slots[prop] || undefined;
} else {
var _h = instance.context.$createElement;
var _temp = getPropsData(instance)[prop];
if (_temp !== undefined) {
return typeof _temp === 'function' && execute ? _temp(_h, options) : _temp;
}
var slotScope = getScopedSlots(instance)[prop];
if (slotScope !== undefined) {
return typeof slotScope === 'function' && execute ? slotScope(_h, options) : slotScope;
}
var slotsProp = [];
var componentOptions = instance.componentOptions || {};
(componentOptions.children || []).forEach(function (child) {
if (child.data && child.data.slot === prop) {
if (child.data.attrs) {
delete child.data.attrs.slot;
}
if (child.tag === 'template') {
slotsProp.push(child.children);
} else {
slotsProp.push(child);
}
}
});
return slotsProp.length ? slotsProp : undefined;
}
};
var getAllProps = function getAllProps(ele) {
var data = ele.data || {};
var componentOptions = ele.componentOptions || {};
if (ele.$vnode) {
data = ele.$vnode.data || {};
componentOptions = ele.$vnode.componentOptions || {};
}
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, data.props, data.attrs, componentOptions.propsData);
};
var getPropsData = function getPropsData(ele) {
var componentOptions = ele.componentOptions;
if (ele.$vnode) {
componentOptions = ele.$vnode.componentOptions;
}
return componentOptions ? componentOptions.propsData || {} : {};
};
var getValueByProp = function getValueByProp(ele, prop) {
return getPropsData(ele)[prop];
};
var getAttrs = function getAttrs(ele) {
var data = ele.data;
if (ele.$vnode) {
data = ele.$vnode.data;
}
return data ? data.attrs || {} : {};
};
var getKey = function getKey(ele) {
var key = ele.key;
if (ele.$vnode) {
key = ele.$vnode.key;
}
return key;
};
function getEvents(child) {
var events = {};
if (child.componentOptions && child.componentOptions.listeners) {
events = child.componentOptions.listeners;
} else if (child.data && child.data.on) {
events = child.data.on;
}
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, events);
}
// 获取 xxx.native 或者 原生标签 事件
function getDataEvents(child) {
var events = {};
if (child.data && child.data.on) {
events = child.data.on;
}
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, events);
}
// use getListeners instead this.$listeners
// https://github.com/vueComponent/ant-design-vue/issues/1705
function getListeners(context) {
return (context.$vnode ? context.$vnode.componentOptions.listeners : context.$listeners) || {};
}
function getClass(ele) {
var data = {};
if (ele.data) {
data = ele.data;
} else if (ele.$vnode && ele.$vnode.data) {
data = ele.$vnode.data;
}
var tempCls = data['class'] || {};
var staticClass = data.staticClass;
var cls = {};
staticClass && staticClass.split(' ').forEach(function (c) {
cls[c.trim()] = true;
});
if (typeof tempCls === 'string') {
tempCls.split(' ').forEach(function (c) {
cls[c.trim()] = true;
});
} else if (Array.isArray(tempCls)) {
classnames__WEBPACK_IMPORTED_MODULE_4___default()(tempCls).split(' ').forEach(function (c) {
cls[c.trim()] = true;
});
} else {
cls = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, cls, tempCls);
}
return cls;
}
function getStyle(ele, camel) {
var data = {};
if (ele.data) {
data = ele.data;
} else if (ele.$vnode && ele.$vnode.data) {
data = ele.$vnode.data;
}
var style = data.style || data.staticStyle;
if (typeof style === 'string') {
style = parseStyleText(style, camel);
} else if (camel && style) {
// 驼峰化
var res = {};
Object.keys(style).forEach(function (k) {
return res[camelize(k)] = style[k];
});
return res;
}
return style;
}
function getComponentName(opts) {
return opts && (opts.Ctor.options.name || opts.tag);
}
function isEmptyElement(c) {
return !(c.tag || c.text && c.text.trim() !== '');
}
function isStringElement(c) {
return !c.tag;
}
function filterEmpty() {
var children = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
return children.filter(function (c) {
return !isEmptyElement(c);
});
}
var initDefaultProps = function initDefaultProps(propTypes, defaultProps) {
Object.keys(defaultProps).forEach(function (k) {
if (propTypes[k]) {
propTypes[k].def && (propTypes[k] = propTypes[k].def(defaultProps[k]));
} else {
throw new Error('not have ' + k + ' prop');
}
});
return propTypes;
};
function mergeProps() {
var args = [].slice.call(arguments, 0);
var props = {};
args.forEach(function () {
var p = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var _iteratorNormalCompletion2 = true;
var _didIteratorError2 = false;
var _iteratorError2 = undefined;
try {
for (var _iterator2 = Object.entries(p)[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
var _ref3 = _step2.value;
var _ref4 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_ref3, 2);
var k = _ref4[0];
var v = _ref4[1];
props[k] = props[k] || {};
if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_3___default()(v)) {
babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()(props[k], v);
} else {
props[k] = v;
}
}
} catch (err) {
_didIteratorError2 = true;
_iteratorError2 = err;
} finally {
try {
if (!_iteratorNormalCompletion2 && _iterator2['return']) {
_iterator2['return']();
}
} finally {
if (_didIteratorError2) {
throw _iteratorError2;
}
}
}
});
return props;
}
function isValidElement(element) {
return element && (typeof element === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(element)) === 'object' && 'componentOptions' in element && 'context' in element && element.tag !== undefined; // remove text node
}
/* harmony default export */ __webpack_exports__["default"] = (hasProp);
/***/ }),
/***/ "./components/_util/proxyComponent.jsx":
/*!*********************************************!*\
!*** ./components/_util/proxyComponent.jsx ***!
\*********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return wrapWithConnect; });
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./props-util */ "./components/_util/props-util.js");
function getDisplayName(WrappedComponent) {
return WrappedComponent.name || 'Component';
}
function wrapWithConnect(WrappedComponent) {
var tempProps = WrappedComponent.props || {};
var methods = WrappedComponent.methods || {};
var props = {};
Object.keys(tempProps).forEach(function (k) {
props[k] = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, tempProps[k], { required: false });
});
WrappedComponent.props.__propsSymbol__ = _vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any;
WrappedComponent.props.children = _vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array.def([]);
var ProxyWrappedComponent = {
props: props,
model: WrappedComponent.model,
name: 'Proxy_' + getDisplayName(WrappedComponent),
methods: {
getProxyWrappedInstance: function getProxyWrappedInstance() {
return this.$refs.wrappedInstance;
}
},
render: function render() {
var h = arguments[0];
var _$slots = this.$slots,
$slots = _$slots === undefined ? {} : _$slots,
$scopedSlots = this.$scopedSlots;
var props = Object(_props_util__WEBPACK_IMPORTED_MODULE_3__["getOptionProps"])(this);
var wrapProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
__propsSymbol__: Symbol(),
componentWillReceiveProps: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props),
children: $slots['default'] || props.children || []
}),
on: Object(_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this)
};
if (Object.keys($scopedSlots).length) {
wrapProps.scopedSlots = $scopedSlots;
}
var slotsKey = Object.keys($slots);
return h(
WrappedComponent,
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([wrapProps, { ref: 'wrappedInstance' }]),
[slotsKey.length ? slotsKey.map(function (name) {
return h(
'template',
{ slot: name },
[$slots[name]]
);
}) : null]
);
}
};
Object.keys(methods).map(function (m) {
ProxyWrappedComponent.methods[m] = function () {
var _getProxyWrappedInsta;
return (_getProxyWrappedInsta = this.getProxyWrappedInstance())[m].apply(_getProxyWrappedInsta, arguments);
};
});
return ProxyWrappedComponent;
}
/***/ }),
/***/ "./components/_util/raf.js":
/*!*********************************!*\
!*** ./components/_util/raf.js ***!
\*********************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return wrapperRaf; });
/* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! raf */ "./node_modules/raf/index.js");
/* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(raf__WEBPACK_IMPORTED_MODULE_0__);
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] = raf__WEBPACK_IMPORTED_MODULE_0___default()(internalCallback);
}
}
ids[myId] = raf__WEBPACK_IMPORTED_MODULE_0___default()(internalCallback);
return myId;
}
wrapperRaf.cancel = function (pid) {
if (pid === undefined) return;
raf__WEBPACK_IMPORTED_MODULE_0___default.a.cancel(ids[pid]);
delete ids[pid];
};
wrapperRaf.ids = ids; // export this for test usage
/***/ }),
/***/ "./components/_util/requestAnimationTimeout.js":
/*!*****************************************************!*\
!*** ./components/_util/requestAnimationTimeout.js ***!
\*****************************************************/
/*! exports provided: cancelAnimationTimeout, requestAnimationTimeout */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cancelAnimationTimeout", function() { return cancelAnimationTimeout; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "requestAnimationTimeout", function() { return requestAnimationTimeout; });
/* harmony import */ var _getRequestAnimationFrame__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getRequestAnimationFrame */ "./components/_util/getRequestAnimationFrame.js");
var raf = Object(_getRequestAnimationFrame__WEBPACK_IMPORTED_MODULE_0__["default"])();
var cancelAnimationTimeout = function cancelAnimationTimeout(frame) {
return Object(_getRequestAnimationFrame__WEBPACK_IMPORTED_MODULE_0__["cancelRequestAnimationFrame"])(frame.id);
};
var requestAnimationTimeout = function requestAnimationTimeout(callback, delay) {
var start = Date.now();
function timeout() {
if (Date.now() - start >= delay) {
callback.call();
} else {
frame.id = raf(timeout);
}
}
var frame = {
id: raf(timeout)
};
return frame;
};
/***/ }),
/***/ "./components/_util/responsiveObserve.js":
/*!***********************************************!*\
!*** ./components/_util/responsiveObserve.js ***!
\***********************************************/
/*! exports provided: responsiveArray, responsiveMap, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "responsiveArray", function() { return responsiveArray; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "responsiveMap", function() { return responsiveMap; });
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
// matchMedia polyfill for
// https://github.com/WickyNilliams/enquire.js/issues/82
var enquire = void 0;
// TODO: Will be removed in antd 4.0 because we will no longer support ie9
if (typeof window !== 'undefined') {
var matchMediaPolyfill = function matchMediaPolyfill(mediaQuery) {
return {
media: mediaQuery,
matches: false,
addListener: function addListener() {},
removeListener: function removeListener() {}
};
};
// ref: https://github.com/ant-design/ant-design/issues/18774
if (!window.matchMedia) window.matchMedia = matchMediaPolyfill;
// eslint-disable-next-line global-require
enquire = __webpack_require__(/*! enquire.js */ "./node_modules/enquire.js/src/index.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 = [];
var subUid = -1;
var screens = {};
var responsiveObserve = {
dispatch: function dispatch(pointMap) {
screens = pointMap;
if (subscribers.length < 1) {
return false;
}
subscribers.forEach(function (item) {
item.func(screens);
});
return true;
},
subscribe: function subscribe(func) {
if (subscribers.length === 0) {
this.register();
}
var token = (++subUid).toString();
subscribers.push({
token: token,
func: func
});
func(screens);
return token;
},
unsubscribe: function unsubscribe(token) {
subscribers = subscribers.filter(function (item) {
return item.token !== token;
});
if (subscribers.length === 0) {
this.unregister();
}
},
unregister: function unregister() {
Object.keys(responsiveMap).map(function (screen) {
return enquire.unregister(responsiveMap[screen]);
});
},
register: function register() {
var _this = this;
Object.keys(responsiveMap).map(function (screen) {
return enquire.register(responsiveMap[screen], {
match: function match() {
var pointMap = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, screens, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, screen, true));
_this.dispatch(pointMap);
},
unmatch: function unmatch() {
var pointMap = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, screens, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, screen, false));
_this.dispatch(pointMap);
},
// Keep a empty destroy to avoid triggering unmatch when unregister
destroy: function destroy() {}
});
});
}
};
/* harmony default export */ __webpack_exports__["default"] = (responsiveObserve);
/***/ }),
/***/ "./components/_util/scrollTo.js":
/*!**************************************!*\
!*** ./components/_util/scrollTo.js ***!
\**************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return scrollTo; });
/* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! raf */ "./node_modules/raf/index.js");
/* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(raf__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _getScroll__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getScroll */ "./components/_util/getScroll.js");
/* harmony import */ var _easings__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./easings */ "./components/_util/easings.js");
// interface ScrollToOptions {
// /** Scroll container, default as window */
// getContainer?: () => HTMLElement | Window;
// /** Scroll end callback */
// callback?: () => any;
// /** Animation duration, default as 450 */
// duration?: number;
// }
function scrollTo(y) {
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var _options$getContainer = options.getContainer,
getContainer = _options$getContainer === undefined ? function () {
return window;
} : _options$getContainer,
callback = options.callback,
_options$duration = options.duration,
duration = _options$duration === undefined ? 450 : _options$duration;
var container = getContainer();
var scrollTop = Object(_getScroll__WEBPACK_IMPORTED_MODULE_1__["default"])(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_2__["easeInOutCubic"])(time > duration ? duration : time, scrollTop, y, duration);
if (container === window) {
window.scrollTo(window.pageXOffset, nextScrollTop);
} else {
container.scrollTop = nextScrollTop;
}
if (time < duration) {
raf__WEBPACK_IMPORTED_MODULE_0___default()(frameFunc);
} else if (typeof callback === 'function') {
callback();
}
};
raf__WEBPACK_IMPORTED_MODULE_0___default()(frameFunc);
}
/***/ }),
/***/ "./components/_util/setStyle.js":
/*!**************************************!*\
!*** ./components/_util/setStyle.js ***!
\**************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/**
* Easy to set element style, return previous style
* IE browser compatible(IE browser doesn't merge overflow style, need to set it separately)
* https://github.com/ant-design/ant-design/issues/19393
*
*/
function setStyle(style) {
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var _options$element = options.element,
element = _options$element === undefined ? document.body : _options$element;
var oldStyle = {};
var styleKeys = Object.keys(style);
// IE browser compatible
styleKeys.forEach(function (key) {
oldStyle[key] = element.style[key];
});
styleKeys.forEach(function (key) {
element.style[key] = style[key];
});
return oldStyle;
}
/* harmony default export */ __webpack_exports__["default"] = (setStyle);
/***/ }),
/***/ "./components/_util/store/PropTypes.js":
/*!*********************************************!*\
!*** ./components/_util/store/PropTypes.js ***!
\*********************************************/
/*! exports provided: storeShape */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "storeShape", function() { return storeShape; });
/* harmony import */ var _vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../vue-types */ "./components/_util/vue-types/index.js");
var storeShape = _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].shape({
subscribe: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func.isRequired,
setState: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func.isRequired,
getState: _vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func.isRequired
});
/***/ }),
/***/ "./components/_util/store/Provider.jsx":
/*!*********************************************!*\
!*** ./components/_util/store/Provider.jsx ***!
\*********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _PropTypes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PropTypes */ "./components/_util/store/PropTypes.js");
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'StoreProvider',
props: {
store: _PropTypes__WEBPACK_IMPORTED_MODULE_0__["storeShape"].isRequired
},
provide: function provide() {
return {
storeContext: this.$props
};
},
render: function render() {
return this.$slots['default'][0];
}
});
/***/ }),
/***/ "./components/_util/store/connect.jsx":
/*!********************************************!*\
!*** ./components/_util/store/connect.jsx ***!
\********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return connect; });
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! shallowequal */ "./node_modules/shallowequal/index.js");
/* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(shallowequal__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
/* harmony import */ var _props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../props-util */ "./components/_util/props-util.js");
/* harmony import */ var _vue_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _proxyComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../proxyComponent */ "./components/_util/proxyComponent.jsx");
function getDisplayName(WrappedComponent) {
return WrappedComponent.name || 'Component';
}
var defaultMapStateToProps = function defaultMapStateToProps() {
return {};
};
function connect(mapStateToProps) {
var shouldSubscribe = !!mapStateToProps;
var finalMapStateToProps = mapStateToProps || defaultMapStateToProps;
return function wrapWithConnect(WrappedComponent) {
var tempProps = Object(omit_js__WEBPACK_IMPORTED_MODULE_3__["default"])(WrappedComponent.props || {}, ['store']);
var props = {
__propsSymbol__: _vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any
};
Object.keys(tempProps).forEach(function (k) {
props[k] = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, tempProps[k], { required: false });
});
var Connect = {
name: 'Connect_' + getDisplayName(WrappedComponent),
props: props,
inject: {
storeContext: { 'default': function _default() {
return {};
} }
},
data: function data() {
this.store = this.storeContext.store;
this.preProps = Object(omit_js__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this), ['__propsSymbol__']);
return {
subscribed: finalMapStateToProps(this.store.getState(), this.$props)
};
},
watch: {
__propsSymbol__: function __propsSymbol__() {
if (mapStateToProps && mapStateToProps.length === 2) {
this.subscribed = finalMapStateToProps(this.store.getState(), this.$props);
}
}
},
mounted: function mounted() {
this.trySubscribe();
},
beforeDestroy: function beforeDestroy() {
this.tryUnsubscribe();
},
methods: {
handleChange: function handleChange() {
if (!this.unsubscribe) {
return;
}
var props = Object(omit_js__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this), ['__propsSymbol__']);
var nextSubscribed = finalMapStateToProps(this.store.getState(), props);
if (!shallowequal__WEBPACK_IMPORTED_MODULE_2___default()(this.preProps, props) || !shallowequal__WEBPACK_IMPORTED_MODULE_2___default()(this.subscribed, nextSubscribed)) {
this.subscribed = nextSubscribed;
}
},
trySubscribe: function trySubscribe() {
if (shouldSubscribe) {
this.unsubscribe = this.store.subscribe(this.handleChange);
this.handleChange();
}
},
tryUnsubscribe: function tryUnsubscribe() {
if (this.unsubscribe) {
this.unsubscribe();
this.unsubscribe = null;
}
},
getWrappedInstance: function getWrappedInstance() {
return this.$refs.wrappedInstance;
}
},
render: function render() {
var h = arguments[0];
var _$slots = this.$slots,
$slots = _$slots === undefined ? {} : _$slots,
$scopedSlots = this.$scopedSlots,
subscribed = this.subscribed,
store = this.store;
var props = Object(_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this);
this.preProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(omit_js__WEBPACK_IMPORTED_MODULE_3__["default"])(props, ['__propsSymbol__']));
var wrapProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, subscribed, {
store: store
}),
on: Object(_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this),
scopedSlots: $scopedSlots
};
return h(
WrappedComponent,
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([wrapProps, { ref: 'wrappedInstance' }]),
[Object.keys($slots).map(function (name) {
return h(
'template',
{ slot: name },
[$slots[name]]
);
})]
);
}
};
return Object(_proxyComponent__WEBPACK_IMPORTED_MODULE_6__["default"])(Connect);
};
}
/***/ }),
/***/ "./components/_util/store/create.js":
/*!******************************************!*\
!*** ./components/_util/store/create.js ***!
\******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return create; });
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
function create(initialState) {
var state = initialState;
var listeners = [];
function setState(partial) {
state = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, state, partial);
for (var i = 0; i < listeners.length; i++) {
listeners[i]();
}
}
function getState() {
return state;
}
function subscribe(listener) {
listeners.push(listener);
return function unsubscribe() {
var index = listeners.indexOf(listener);
listeners.splice(index, 1);
};
}
return {
setState: setState,
getState: getState,
subscribe: subscribe
};
}
/***/ }),
/***/ "./components/_util/store/index.js":
/*!*****************************************!*\
!*** ./components/_util/store/index.js ***!
\*****************************************/
/*! exports provided: Provider, connect, create */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Provider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Provider */ "./components/_util/store/Provider.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Provider", function() { return _Provider__WEBPACK_IMPORTED_MODULE_0__["default"]; });
/* harmony import */ var _connect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./connect */ "./components/_util/store/connect.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "connect", function() { return _connect__WEBPACK_IMPORTED_MODULE_1__["default"]; });
/* harmony import */ var _create__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./create */ "./components/_util/store/create.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "create", function() { return _create__WEBPACK_IMPORTED_MODULE_2__["default"]; });
/***/ }),
/***/ "./components/_util/styleChecker.js":
/*!******************************************!*\
!*** ./components/_util/styleChecker.js ***!
\******************************************/
/*! exports provided: isFlexSupported, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isFlexSupported", function() { return isFlexSupported; });
var isStyleSupport = function isStyleSupport(styleName) {
if (typeof window !== 'undefined' && window.document && window.document.documentElement) {
var styleNameList = Array.isArray(styleName) ? styleName : [styleName];
var documentElement = window.document.documentElement;
return styleNameList.some(function (name) {
return name in documentElement.style;
});
}
return false;
};
var isFlexSupported = isStyleSupport(['flex', 'webkitFlex', 'Flex', 'msFlex']);
/* harmony default export */ __webpack_exports__["default"] = (isStyleSupport);
/***/ }),
/***/ "./components/_util/switchScrollingEffect.js":
/*!***************************************************!*\
!*** ./components/_util/switchScrollingEffect.js ***!
\***************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _getScrollBarSize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getScrollBarSize */ "./components/_util/getScrollBarSize.js");
/* harmony default export */ __webpack_exports__["default"] = (function (close) {
var bodyIsOverflowing = document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth;
if (!bodyIsOverflowing) {
return;
}
if (close) {
document.body.style.position = '';
document.body.style.width = '';
return;
}
var scrollBarSize = Object(_getScrollBarSize__WEBPACK_IMPORTED_MODULE_0__["default"])();
if (scrollBarSize) {
document.body.style.position = 'relative';
document.body.style.width = 'calc(100% - ' + scrollBarSize + 'px)';
}
});
/***/ }),
/***/ "./components/_util/throttleByAnimationFrame.js":
/*!******************************************************!*\
!*** ./components/_util/throttleByAnimationFrame.js ***!
\******************************************************/
/*! exports provided: default, throttleByAnimationFrameDecorator */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return throttleByAnimationFrame; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "throttleByAnimationFrameDecorator", function() { return throttleByAnimationFrameDecorator; });
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! raf */ "./node_modules/raf/index.js");
/* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(raf__WEBPACK_IMPORTED_MODULE_1__);
function throttleByAnimationFrame(fn) {
var requestId = void 0;
var later = function later(args) {
return function () {
requestId = null;
fn.apply(undefined, babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(args));
};
};
var throttled = function throttled() {
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
if (requestId == null) {
requestId = raf__WEBPACK_IMPORTED_MODULE_1___default()(later(args));
}
};
throttled.cancel = function () {
return raf__WEBPACK_IMPORTED_MODULE_1___default.a.cancel(requestId);
};
return throttled;
}
function throttleByAnimationFrameDecorator() {
return function (target, key, descriptor) {
var fn = descriptor.value;
var definingProperty = false;
return {
configurable: true,
get: function get() {
if (definingProperty || this === target.prototype || this.hasOwnProperty(key)) {
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.jsx":
/*!******************************************!*\
!*** ./components/_util/transButton.jsx ***!
\******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _KeyCode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./KeyCode */ "./components/_util/KeyCode.js");
/* harmony import */ var _vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./vue-types */ "./components/_util/vue-types/index.js");
/**
* Wrap of sub component which need use as Button capacity (like Icon component).
* This helps accessibility reader to tread as a interactive button to operation.
*/
var inlineStyle = {
border: 0,
background: 'transparent',
padding: 0,
lineHeight: 'inherit',
display: 'inline-block'
};
var TransButton = {
props: {
noStyle: _vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool
},
methods: {
onKeyDown: function onKeyDown(event) {
var keyCode = event.keyCode;
if (keyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_2__["default"].ENTER) {
event.preventDefault();
}
},
onKeyUp: function onKeyUp(event) {
var keyCode = event.keyCode;
if (keyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_2__["default"].ENTER) {
this.$emit('click', event);
}
},
setRef: function setRef(btn) {
this.div = btn;
},
focus: function focus() {
if (this.div) {
this.div.focus();
}
},
blur: function blur() {
if (this.div) {
this.div.blur();
}
}
},
render: function render() {
var h = arguments[0];
var noStyle = this.$props.noStyle;
return h(
'div',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
attrs: {
role: 'button',
tabIndex: 0
}
}, {
directives: [{
name: 'ant-ref',
value: this.setRef
}],
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.$listeners, {
keydown: this.onKeyDown,
keyup: this.onKeyUp
})
}, {
style: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, !noStyle ? inlineStyle : null)
}]),
[this.$slots['default']]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (TransButton);
/***/ }),
/***/ "./components/_util/triggerEvent.js":
/*!******************************************!*\
!*** ./components/_util/triggerEvent.js ***!
\******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return triggerEvent; });
function triggerEvent(el, type) {
if ('createEvent' in document) {
// modern browsers, IE9+
var e = document.createEvent('HTMLEvents');
e.initEvent(type, false, true);
el.dispatchEvent(e);
}
}
/***/ }),
/***/ "./components/_util/type.js":
/*!**********************************!*\
!*** ./components/_util/type.js ***!
\**********************************/
/*! exports provided: tuple, tupleNum */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tuple", function() { return tuple; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tupleNum", function() { return tupleNum; });
// https://stackoverflow.com/questions/46176165/ways-to-get-string-literal-type-of-array-values-without-enum-overhead
var tuple = function tuple() {
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
return args;
};
var tupleNum = function tupleNum() {
for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
args[_key2] = arguments[_key2];
}
return args;
};
/***/ }),
/***/ "./components/_util/vnode.js":
/*!***********************************!*\
!*** ./components/_util/vnode.js ***!
\***********************************/
/*! exports provided: cloneVNode, cloneVNodes, cloneElement */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cloneVNode", function() { return cloneVNode; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cloneVNodes", function() { return cloneVNodes; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cloneElement", function() { return cloneElement; });
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./props-util */ "./components/_util/props-util.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
function cloneVNode(vnode, deep) {
var componentOptions = vnode.componentOptions;
var data = vnode.data;
var listeners = {};
if (componentOptions && componentOptions.listeners) {
listeners = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, componentOptions.listeners);
}
var on = {};
if (data && data.on) {
on = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, data.on);
}
var cloned = new vnode.constructor(vnode.tag, data ? babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, data, { on: on }) : data, vnode.children, vnode.text, vnode.elm, vnode.context, componentOptions ? babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, componentOptions, { listeners: listeners }) : componentOptions, vnode.asyncFactory);
cloned.ns = vnode.ns;
cloned.isStatic = vnode.isStatic;
cloned.key = vnode.key;
cloned.isComment = vnode.isComment;
cloned.fnContext = vnode.fnContext;
cloned.fnOptions = vnode.fnOptions;
cloned.fnScopeId = vnode.fnScopeId;
cloned.isCloned = true;
if (deep) {
if (vnode.children) {
cloned.children = cloneVNodes(vnode.children, true);
}
if (componentOptions && componentOptions.children) {
componentOptions.children = cloneVNodes(componentOptions.children, true);
}
}
return cloned;
}
function cloneVNodes(vnodes, deep) {
var len = vnodes.length;
var res = new Array(len);
for (var i = 0; i < len; i++) {
res[i] = cloneVNode(vnodes[i], deep);
}
return res;
}
function cloneElement(n) {
var nodeProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var deep = arguments[2];
var ele = n;
if (Array.isArray(n)) {
ele = Object(_props_util__WEBPACK_IMPORTED_MODULE_2__["filterEmpty"])(n)[0];
}
if (!ele) {
return null;
}
var node = cloneVNode(ele, deep);
// // 函数式组件不支持clone https://github.com/vueComponent/ant-design-vue/pull/1947
// warning(
// !(node.fnOptions && node.fnOptions.functional),
// `can not use cloneElement for functional component (${node.fnOptions && node.fnOptions.name})`,
// );
var _nodeProps$props = nodeProps.props,
props = _nodeProps$props === undefined ? {} : _nodeProps$props,
key = nodeProps.key,
_nodeProps$on = nodeProps.on,
on = _nodeProps$on === undefined ? {} : _nodeProps$on,
_nodeProps$nativeOn = nodeProps.nativeOn,
nativeOn = _nodeProps$nativeOn === undefined ? {} : _nodeProps$nativeOn,
children = nodeProps.children,
_nodeProps$directives = nodeProps.directives,
directives = _nodeProps$directives === undefined ? [] : _nodeProps$directives;
var data = node.data || {};
var cls = {};
var style = {};
var _nodeProps$attrs = nodeProps.attrs,
attrs = _nodeProps$attrs === undefined ? {} : _nodeProps$attrs,
ref = nodeProps.ref,
_nodeProps$domProps = nodeProps.domProps,
domProps = _nodeProps$domProps === undefined ? {} : _nodeProps$domProps,
_nodeProps$style = nodeProps.style,
tempStyle = _nodeProps$style === undefined ? {} : _nodeProps$style,
_nodeProps$class = nodeProps['class'],
tempCls = _nodeProps$class === undefined ? {} : _nodeProps$class,
_nodeProps$scopedSlot = nodeProps.scopedSlots,
scopedSlots = _nodeProps$scopedSlot === undefined ? {} : _nodeProps$scopedSlot;
if (typeof data.style === 'string') {
style = Object(_props_util__WEBPACK_IMPORTED_MODULE_2__["parseStyleText"])(data.style);
} else {
style = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, data.style, style);
}
if (typeof tempStyle === 'string') {
style = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, style, Object(_props_util__WEBPACK_IMPORTED_MODULE_2__["parseStyleText"])(style));
} else {
style = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, style, tempStyle);
}
if (typeof data['class'] === 'string' && data['class'].trim() !== '') {
data['class'].split(' ').forEach(function (c) {
cls[c.trim()] = true;
});
} else if (Array.isArray(data['class'])) {
classnames__WEBPACK_IMPORTED_MODULE_3___default()(data['class']).split(' ').forEach(function (c) {
cls[c.trim()] = true;
});
} else {
cls = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, data['class'], cls);
}
if (typeof tempCls === 'string' && tempCls.trim() !== '') {
tempCls.split(' ').forEach(function (c) {
cls[c.trim()] = true;
});
} else {
cls = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, cls, tempCls);
}
node.data = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, data, {
style: style,
attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, data.attrs, attrs),
'class': cls,
domProps: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, data.domProps, domProps),
scopedSlots: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, data.scopedSlots, scopedSlots),
directives: [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(data.directives || []), babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(directives))
});
if (node.componentOptions) {
node.componentOptions.propsData = node.componentOptions.propsData || {};
node.componentOptions.listeners = node.componentOptions.listeners || {};
node.componentOptions.propsData = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, node.componentOptions.propsData, props);
node.componentOptions.listeners = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, node.componentOptions.listeners, on);
if (children) {
node.componentOptions.children = children;
}
} else {
if (children) {
node.children = children;
}
node.data.on = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, node.data.on || {}, on);
}
node.data.on = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, node.data.on || {}, nativeOn);
if (key !== undefined) {
node.key = key;
node.data.key = key;
}
if (typeof ref === 'string') {
node.data.ref = ref;
}
return node;
}
/***/ }),
/***/ "./components/_util/vue-types/index.js":
/*!*********************************************!*\
!*** ./components/_util/vue-types/index.js ***!
\*********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isPlainObject */ "./node_modules/lodash/isPlainObject.js");
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./components/_util/vue-types/utils.js");
var VuePropTypes = {
get any() {
return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('any', {
type: null
});
},
get func() {
return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('function', {
type: Function
}).def(currentDefaults.func);
},
get bool() {
return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('boolean', {
type: Boolean
}).def(currentDefaults.bool);
},
get string() {
return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('string', {
type: String
}).def(currentDefaults.string);
},
get number() {
return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('number', {
type: Number
}).def(currentDefaults.number);
},
get array() {
return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('array', {
type: Array
}).def(currentDefaults.array);
},
get object() {
return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('object', {
type: Object
}).def(currentDefaults.object);
},
get integer() {
return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('integer', {
type: Number,
validator: function validator(value) {
return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["isInteger"])(value);
}
}).def(currentDefaults.integer);
},
get symbol() {
return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('symbol', {
type: null,
validator: function validator(value) {
return (typeof value === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(value)) === 'symbol';
}
});
},
custom: function custom(validatorFn) {
var warnMsg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'custom validation failed';
if (typeof validatorFn !== 'function') {
throw new TypeError('[VueTypes error]: You must provide a function as argument');
}
return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])(validatorFn.name || '<<anonymous function>>', {
validator: function validator() {
var valid = validatorFn.apply(undefined, arguments);
if (!valid) Object(_utils__WEBPACK_IMPORTED_MODULE_2__["warn"])(this._vueTypes_name + ' - ' + warnMsg);
return valid;
}
});
},
oneOf: function oneOf(arr) {
if (!Object(_utils__WEBPACK_IMPORTED_MODULE_2__["isArray"])(arr)) {
throw new TypeError('[VueTypes error]: You must provide an array as argument');
}
var msg = 'oneOf - value should be one of "' + arr.join('", "') + '"';
var allowedTypes = arr.reduce(function (ret, v) {
if (v !== null && v !== undefined) {
ret.indexOf(v.constructor) === -1 && ret.push(v.constructor);
}
return ret;
}, []);
return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('oneOf', {
type: allowedTypes.length > 0 ? allowedTypes : null,
validator: function validator(value) {
var valid = arr.indexOf(value) !== -1;
if (!valid) Object(_utils__WEBPACK_IMPORTED_MODULE_2__["warn"])(msg);
return valid;
}
});
},
instanceOf: function instanceOf(instanceConstructor) {
return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('instanceOf', {
type: instanceConstructor
});
},
oneOfType: function oneOfType(arr) {
if (!Object(_utils__WEBPACK_IMPORTED_MODULE_2__["isArray"])(arr)) {
throw new TypeError('[VueTypes error]: You must provide an array as argument');
}
var hasCustomValidators = false;
var nativeChecks = arr.reduce(function (ret, type) {
if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(type)) {
if (type._vueTypes_name === 'oneOf') {
return ret.concat(type.type || []);
}
if (type.type && !Object(_utils__WEBPACK_IMPORTED_MODULE_2__["isFunction"])(type.validator)) {
if (Object(_utils__WEBPACK_IMPORTED_MODULE_2__["isArray"])(type.type)) return ret.concat(type.type);
ret.push(type.type);
} else if (Object(_utils__WEBPACK_IMPORTED_MODULE_2__["isFunction"])(type.validator)) {
hasCustomValidators = true;
}
return ret;
}
ret.push(type);
return ret;
}, []);
if (!hasCustomValidators) {
// we got just native objects (ie: Array, Object)
// delegate to Vue native prop check
return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('oneOfType', {
type: nativeChecks
}).def(undefined);
}
var typesStr = arr.map(function (type) {
if (type && Object(_utils__WEBPACK_IMPORTED_MODULE_2__["isArray"])(type.type)) {
return type.type.map(_utils__WEBPACK_IMPORTED_MODULE_2__["getType"]);
}
return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["getType"])(type);
}).reduce(function (ret, type) {
return ret.concat(Object(_utils__WEBPACK_IMPORTED_MODULE_2__["isArray"])(type) ? type : [type]);
}, []).join('", "');
return this.custom(function oneOfType(value) {
var valid = arr.some(function (type) {
if (type._vueTypes_name === 'oneOf') {
return type.type ? Object(_utils__WEBPACK_IMPORTED_MODULE_2__["validateType"])(type.type, value, true) : true;
}
return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["validateType"])(type, value, true);
});
if (!valid) Object(_utils__WEBPACK_IMPORTED_MODULE_2__["warn"])('oneOfType - value type should be one of "' + typesStr + '"');
return valid;
}).def(undefined);
},
arrayOf: function arrayOf(type) {
return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('arrayOf', {
type: Array,
validator: function validator(values) {
var valid = values.every(function (value) {
return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["validateType"])(type, value);
});
if (!valid) Object(_utils__WEBPACK_IMPORTED_MODULE_2__["warn"])('arrayOf - value must be an array of "' + Object(_utils__WEBPACK_IMPORTED_MODULE_2__["getType"])(type) + '"');
return valid;
}
});
},
objectOf: function objectOf(type) {
return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('objectOf', {
type: Object,
validator: function validator(obj) {
var valid = Object.keys(obj).every(function (key) {
return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["validateType"])(type, obj[key]);
});
if (!valid) Object(_utils__WEBPACK_IMPORTED_MODULE_2__["warn"])('objectOf - value must be an object of "' + Object(_utils__WEBPACK_IMPORTED_MODULE_2__["getType"])(type) + '"');
return valid;
}
});
},
shape: function shape(obj) {
var keys = Object.keys(obj);
var requiredKeys = keys.filter(function (key) {
return obj[key] && obj[key].required === true;
});
var type = Object(_utils__WEBPACK_IMPORTED_MODULE_2__["toType"])('shape', {
type: Object,
validator: function validator(value) {
var _this = this;
if (!lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(value)) {
return false;
}
var valueKeys = Object.keys(value);
// check for required keys (if any)
if (requiredKeys.length > 0 && requiredKeys.some(function (req) {
return valueKeys.indexOf(req) === -1;
})) {
Object(_utils__WEBPACK_IMPORTED_MODULE_2__["warn"])('shape - at least one of required properties "' + requiredKeys.join('", "') + '" is not present');
return false;
}
return valueKeys.every(function (key) {
if (keys.indexOf(key) === -1) {
if (_this._vueTypes_isLoose === true) return true;
Object(_utils__WEBPACK_IMPORTED_MODULE_2__["warn"])('shape - object is missing "' + key + '" property');
return false;
}
var type = obj[key];
return Object(_utils__WEBPACK_IMPORTED_MODULE_2__["validateType"])(type, value[key]);
});
}
});
Object.defineProperty(type, '_vueTypes_isLoose', {
enumerable: false,
writable: true,
value: false
});
Object.defineProperty(type, 'loose', {
get: function get() {
this._vueTypes_isLoose = true;
return this;
},
enumerable: false
});
return type;
}
};
var typeDefaults = function typeDefaults() {
return {
func: undefined,
bool: undefined,
string: undefined,
number: undefined,
array: undefined,
object: undefined,
integer: undefined
};
};
var currentDefaults = typeDefaults();
Object.defineProperty(VuePropTypes, 'sensibleDefaults', {
enumerable: false,
set: function set(value) {
if (value === false) {
currentDefaults = {};
} else if (value === true) {
currentDefaults = typeDefaults();
} else if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(value)) {
currentDefaults = value;
}
},
get: function get() {
return currentDefaults;
}
});
/* harmony default export */ __webpack_exports__["default"] = (VuePropTypes);
/***/ }),
/***/ "./components/_util/vue-types/utils.js":
/*!*********************************************!*\
!*** ./components/_util/vue-types/utils.js ***!
\*********************************************/
/*! exports provided: hasOwn, getType, getNativeType, noop, has, isInteger, isArray, isFunction, withDefault, withRequired, toType, validateType, warn */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasOwn", function() { return hasOwn; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getType", function() { return getType; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getNativeType", function() { return getNativeType; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "noop", function() { return noop; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "has", function() { return has; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isInteger", function() { return isInteger; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isArray", function() { return isArray; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isFunction", function() { return isFunction; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withDefault", function() { return withDefault; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withRequired", function() { return withRequired; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toType", function() { return toType; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validateType", function() { return validateType; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "warn", function() { return warn; });
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isPlainObject */ "./node_modules/lodash/isPlainObject.js");
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__);
var ObjProto = Object.prototype;
var toString = ObjProto.toString;
var hasOwn = ObjProto.hasOwnProperty;
var FN_MATCH_REGEXP = /^\s*function (\w+)/;
// https://github.com/vuejs/vue/blob/dev/src/core/util/props.js#L159
var getType = function getType(fn) {
var type = fn !== null && fn !== undefined ? fn.type ? fn.type : fn : null;
var match = type && type.toString().match(FN_MATCH_REGEXP);
return match && match[1];
};
var getNativeType = function getNativeType(value) {
if (value === null || value === undefined) return null;
var match = value.constructor.toString().match(FN_MATCH_REGEXP);
return match && match[1];
};
/**
* No-op function
*/
var noop = function noop() {};
/**
* Checks for a own property in an object
*
* @param {object} obj - Object
* @param {string} prop - Property to check
*/
var has = function has(obj, prop) {
return hasOwn.call(obj, prop);
};
/**
* Determines whether the passed value is an integer. Uses `Number.isInteger` if available
*
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isInteger
* @param {*} value - The value to be tested for being an integer.
* @returns {boolean}
*/
var isInteger = Number.isInteger || function (value) {
return typeof value === 'number' && isFinite(value) && Math.floor(value) === value;
};
/**
* Determines whether the passed value is an Array.
*
* @param {*} value - The value to be tested for being an array.
* @returns {boolean}
*/
var isArray = Array.isArray || function (value) {
return toString.call(value) === '[object Array]';
};
/**
* Checks if a value is a function
*
* @param {any} value - Value to check
* @returns {boolean}
*/
var isFunction = function isFunction(value) {
return toString.call(value) === '[object Function]';
};
/**
* Adds a `def` method to the object returning a new object with passed in argument as `default` property
*
* @param {object} type - Object to enhance
*/
var withDefault = function withDefault(type) {
Object.defineProperty(type, 'def', {
value: function value(def) {
if (def === undefined && this['default'] === undefined) {
this['default'] = undefined;
return this;
}
if (!isFunction(def) && !validateType(this, def)) {
warn(this._vueTypes_name + ' - invalid default value: "' + def + '"', def);
return this;
}
this['default'] = isArray(def) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(def) ? function () {
return def;
} : def;
return this;
},
enumerable: false,
writable: false
});
};
/**
* Adds a `isRequired` getter returning a new object with `required: true` key-value
*
* @param {object} type - Object to enhance
*/
var withRequired = function withRequired(type) {
Object.defineProperty(type, 'isRequired', {
get: function get() {
this.required = true;
return this;
},
enumerable: false
});
};
/**
* Adds `isRequired` and `def` modifiers to an object
*
* @param {string} name - Type internal name
* @param {object} obj - Object to enhance
* @returns {object}
*/
var toType = function toType(name, obj) {
Object.defineProperty(obj, '_vueTypes_name', {
enumerable: false,
writable: false,
value: name
});
withRequired(obj);
withDefault(obj);
if (isFunction(obj.validator)) {
obj.validator = obj.validator.bind(obj);
}
return obj;
};
/**
* Validates a given value against a prop type object
*
* @param {Object|*} type - Type to use for validation. Either a type object or a constructor
* @param {*} value - Value to check
* @param {boolean} silent - Silence warnings
* @returns {boolean}
*/
var validateType = function validateType(type, value) {
var silent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
var typeToCheck = type;
var valid = true;
var expectedType = void 0;
if (!lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(type)) {
typeToCheck = { type: type };
}
var namePrefix = typeToCheck._vueTypes_name ? typeToCheck._vueTypes_name + ' - ' : '';
if (hasOwn.call(typeToCheck, 'type') && typeToCheck.type !== null) {
if (isArray(typeToCheck.type)) {
valid = typeToCheck.type.some(function (type) {
return validateType(type, value, true);
});
expectedType = typeToCheck.type.map(function (type) {
return getType(type);
}).join(' or ');
} else {
expectedType = getType(typeToCheck);
if (expectedType === 'Array') {
valid = isArray(value);
} else if (expectedType === 'Object') {
valid = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(value);
} else if (expectedType === 'String' || expectedType === 'Number' || expectedType === 'Boolean' || expectedType === 'Function') {
valid = getNativeType(value) === expectedType;
} else {
valid = value instanceof typeToCheck.type;
}
}
}
if (!valid) {
silent === false && warn(namePrefix + 'value "' + value + '" should be of type "' + expectedType + '"');
return false;
}
if (hasOwn.call(typeToCheck, 'validator') && isFunction(typeToCheck.validator)) {
valid = typeToCheck.validator(value);
if (!valid && silent === false) warn(namePrefix + 'custom validation failed');
return valid;
}
return valid;
};
var warn = noop;
if (true) {
var hasConsole = typeof console !== 'undefined';
warn = function warn(msg) {
if (hasConsole) {
console.warn('[VueTypes warn]: ' + msg);
}
};
}
/***/ }),
/***/ "./components/_util/warning.js":
/*!*************************************!*\
!*** ./components/_util/warning.js ***!
\*************************************/
/*! exports provided: resetWarned, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _vc_util_warning__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../vc-util/warning */ "./components/vc-util/warning.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "resetWarned", function() { return _vc_util_warning__WEBPACK_IMPORTED_MODULE_0__["resetWarned"]; });
/* harmony default export */ __webpack_exports__["default"] = (function (valid, component) {
var message = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
Object(_vc_util_warning__WEBPACK_IMPORTED_MODULE_0__["default"])(valid, '[antdv: ' + component + '] ' + message);
});
/***/ }),
/***/ "./components/_util/wave.jsx":
/*!***********************************!*\
!*** ./components/_util/wave.jsx ***!
\***********************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _css_animation_Event__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./css-animation/Event */ "./components/_util/css-animation/Event.js");
/* harmony import */ var _raf__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raf */ "./components/_util/raf.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
var styleForPesudo = void 0;
// Where el is the DOM element you'd like to test for visibility
function isHidden(element) {
if (false) {}
return !element || element.offsetParent === null;
}
function isNotGrey(color) {
// eslint-disable-next-line no-useless-escape
var match = (color || '').match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/);
if (match && match[1] && match[2] && match[3]) {
return !(match[1] === match[2] && match[2] === match[3]);
}
return true;
}
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'Wave',
props: ['insertExtraNode'],
mounted: function mounted() {
var _this = this;
this.$nextTick(function () {
var node = _this.$el;
if (node.nodeType !== 1) {
return;
}
_this.instance = _this.bindAnimationEvent(node);
});
},
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_2__["ConfigConsumerProps"];
} }
},
beforeDestroy: function beforeDestroy() {
if (this.instance) {
this.instance.cancel();
}
if (this.clickWaveTimeoutId) {
clearTimeout(this.clickWaveTimeoutId);
}
this.destroy = true;
},
methods: {
onClick: function onClick(node, waveColor) {
if (!node || isHidden(node) || node.className.indexOf('-leave') >= 0) {
return;
}
var insertExtraNode = this.$props.insertExtraNode;
this.extraNode = document.createElement('div');
var extraNode = this.extraNode;
extraNode.className = 'ant-click-animating-node';
var attributeName = this.getAttributeName();
node.removeAttribute(attributeName);
node.setAttribute(attributeName, 'true');
// Not white or transparent or grey
styleForPesudo = styleForPesudo || document.createElement('style');
if (waveColor && waveColor !== '#ffffff' && waveColor !== 'rgb(255, 255, 255)' && isNotGrey(waveColor) && !/rgba\(\d*, \d*, \d*, 0\)/.test(waveColor) && // any transparent rgba color
waveColor !== 'transparent') {
// Add nonce if CSP exist
if (this.csp && this.csp.nonce) {
styleForPesudo.nonce = this.csp.nonce;
}
extraNode.style.borderColor = waveColor;
styleForPesudo.innerHTML = '\n [ant-click-animating-without-extra-node=\'true\']::after, .ant-click-animating-node {\n --antd-wave-shadow-color: ' + waveColor + ';\n }';
if (!document.body.contains(styleForPesudo)) {
document.body.appendChild(styleForPesudo);
}
}
if (insertExtraNode) {
node.appendChild(extraNode);
}
_css_animation_Event__WEBPACK_IMPORTED_MODULE_0__["default"].addStartEventListener(node, this.onTransitionStart);
_css_animation_Event__WEBPACK_IMPORTED_MODULE_0__["default"].addEndEventListener(node, this.onTransitionEnd);
},
onTransitionStart: function onTransitionStart(e) {
if (this.destroy) return;
var node = this.$el;
if (!e || e.target !== node) {
return;
}
if (!this.animationStart) {
this.resetEffect(node);
}
},
onTransitionEnd: function onTransitionEnd(e) {
if (!e || e.animationName !== 'fadeEffect') {
return;
}
this.resetEffect(e.target);
},
getAttributeName: function getAttributeName() {
var insertExtraNode = this.$props.insertExtraNode;
return insertExtraNode ? 'ant-click-animating' : 'ant-click-animating-without-extra-node';
},
bindAnimationEvent: function bindAnimationEvent(node) {
var _this2 = this;
if (!node || !node.getAttribute || node.getAttribute('disabled') || node.className.indexOf('disabled') >= 0) {
return;
}
var onClick = function onClick(e) {
// Fix radio button click twice
if (e.target.tagName === 'INPUT' || isHidden(e.target)) {
return;
}
_this2.resetEffect(node);
// Get wave color from target
var waveColor = getComputedStyle(node).getPropertyValue('border-top-color') || // Firefox Compatible
getComputedStyle(node).getPropertyValue('border-color') || getComputedStyle(node).getPropertyValue('background-color');
_this2.clickWaveTimeoutId = window.setTimeout(function () {
return _this2.onClick(node, waveColor);
}, 0);
_raf__WEBPACK_IMPORTED_MODULE_1__["default"].cancel(_this2.animationStartId);
_this2.animationStart = true;
// Render to trigger transition event cost 3 frames. Let's delay 10 frames to reset this.
_this2.animationStartId = Object(_raf__WEBPACK_IMPORTED_MODULE_1__["default"])(function () {
_this2.animationStart = false;
}, 10);
};
node.addEventListener('click', onClick, true);
return {
cancel: function cancel() {
node.removeEventListener('click', onClick, true);
}
};
},
resetEffect: function resetEffect(node) {
if (!node || node === this.extraNode || !(node instanceof Element)) {
return;
}
var insertExtraNode = this.$props.insertExtraNode;
var attributeName = this.getAttributeName();
node.setAttribute(attributeName, 'false'); // edge has bug on `removeAttribute` #14466
if (styleForPesudo) {
styleForPesudo.innerHTML = '';
}
if (insertExtraNode && this.extraNode && node.contains(this.extraNode)) {
node.removeChild(this.extraNode);
}
_css_animation_Event__WEBPACK_IMPORTED_MODULE_0__["default"].removeStartEventListener(node, this.onTransitionStart);
_css_animation_Event__WEBPACK_IMPORTED_MODULE_0__["default"].removeEndEventListener(node, this.onTransitionEnd);
}
},
render: function render() {
if (this.configProvider.csp) {
this.csp = this.configProvider.csp;
}
return this.$slots['default'] && this.$slots['default'][0];
}
});
/***/ }),
/***/ "./components/affix/index.jsx":
/*!************************************!*\
!*** ./components/affix/index.jsx ***!
\************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
/* harmony import */ var _vc_resize_observer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vc-resize-observer */ "./components/vc-resize-observer/index.jsx");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_throttleByAnimationFrame__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/throttleByAnimationFrame */ "./components/_util/throttleByAnimationFrame.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
/* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./utils */ "./components/affix/utils.js");
function getDefaultTarget() {
return typeof window !== 'undefined' ? window : null;
}
// Affix
var AffixProps = {
/**
* 距离窗口顶部达到指定偏移量后触发
*/
offsetTop: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
offset: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
/** 距离窗口底部达到指定偏移量后触发 */
offsetBottom: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
/** 固定状态改变时触发的回调函数 */
// onChange?: (affixed?: boolean) => void;
/** 设置 Affix 需要监听其滚动事件的元素,值为一个返回对应 DOM 元素的函数 */
target: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func.def(getDefaultTarget),
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string
};
var AffixStatus = {
None: 'none',
Prepare: 'Prepare'
};
var Affix = {
name: 'AAffix',
props: AffixProps,
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__["default"]],
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__["ConfigConsumerProps"];
} }
},
data: function data() {
return {
affixStyle: undefined,
placeholderStyle: undefined,
status: AffixStatus.None,
lastAffix: false,
prevTarget: null
};
},
beforeMount: function beforeMount() {
this.updatePosition = Object(_util_throttleByAnimationFrame__WEBPACK_IMPORTED_MODULE_7__["default"])(this.updatePosition);
this.lazyUpdatePosition = Object(_util_throttleByAnimationFrame__WEBPACK_IMPORTED_MODULE_7__["default"])(this.lazyUpdatePosition);
},
mounted: function mounted() {
var _this = this;
var target = this.target;
if (target) {
// [Legacy] Wait for parent component ref has its value.
// We should use target as directly element instead of function which makes element check hard.
this.timeout = setTimeout(function () {
Object(_utils__WEBPACK_IMPORTED_MODULE_11__["addObserveTarget"])(target(), _this);
// Mock Event object.
_this.updatePosition();
});
}
},
updated: function updated() {
this.measure();
},
watch: {
target: function target(val) {
var newTarget = null;
if (val) {
newTarget = val() || null;
}
if (this.prevTarget !== newTarget) {
Object(_utils__WEBPACK_IMPORTED_MODULE_11__["removeObserveTarget"])(this);
if (newTarget) {
Object(_utils__WEBPACK_IMPORTED_MODULE_11__["addObserveTarget"])(newTarget, this);
// Mock Event object.
this.updatePosition();
}
this.prevTarget = newTarget;
}
},
offsetTop: function offsetTop() {
this.updatePosition();
},
offsetBottom: function offsetBottom() {
this.updatePosition();
}
},
beforeDestroy: function beforeDestroy() {
clearTimeout(this.timeout);
Object(_utils__WEBPACK_IMPORTED_MODULE_11__["removeObserveTarget"])(this);
this.updatePosition.cancel();
// https://github.com/ant-design/ant-design/issues/22683
this.lazyUpdatePosition.cancel();
},
methods: {
getOffsetTop: function getOffsetTop() {
var offset = this.offset,
offsetBottom = this.offsetBottom;
var offsetTop = this.offsetTop;
if (typeof offsetTop === 'undefined') {
offsetTop = offset;
Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(typeof offset === 'undefined', 'Affix', '`offset` is deprecated. Please use `offsetTop` instead.');
}
if (offsetBottom === undefined && offsetTop === undefined) {
offsetTop = 0;
}
return offsetTop;
},
getOffsetBottom: function getOffsetBottom() {
return this.offsetBottom;
},
// =================== Measure ===================
measure: function measure() {
var status = this.status,
lastAffix = this.lastAffix;
var target = this.target;
if (status !== AffixStatus.Prepare || !this.$refs.fixedNode || !this.$refs.placeholderNode || !target) {
return;
}
var offsetTop = this.getOffsetTop();
var offsetBottom = this.getOffsetBottom();
var targetNode = target();
if (!targetNode) {
return;
}
var newState = {
status: AffixStatus.None
};
var targetRect = Object(_utils__WEBPACK_IMPORTED_MODULE_11__["getTargetRect"])(targetNode);
var placeholderReact = Object(_utils__WEBPACK_IMPORTED_MODULE_11__["getTargetRect"])(this.$refs.placeholderNode);
var fixedTop = Object(_utils__WEBPACK_IMPORTED_MODULE_11__["getFixedTop"])(placeholderReact, targetRect, offsetTop);
var fixedBottom = Object(_utils__WEBPACK_IMPORTED_MODULE_11__["getFixedBottom"])(placeholderReact, targetRect, offsetBottom);
if (fixedTop !== undefined) {
newState.affixStyle = {
position: 'fixed',
top: fixedTop,
width: placeholderReact.width + 'px',
height: placeholderReact.height + 'px'
};
newState.placeholderStyle = {
width: placeholderReact.width + 'px',
height: placeholderReact.height + 'px'
};
} else if (fixedBottom !== undefined) {
newState.affixStyle = {
position: 'fixed',
bottom: fixedBottom,
width: placeholderReact.width + 'px',
height: placeholderReact.height + 'px'
};
newState.placeholderStyle = {
width: placeholderReact.width + 'px',
height: placeholderReact.height + 'px'
};
}
newState.lastAffix = !!newState.affixStyle;
if (lastAffix !== newState.lastAffix) {
this.$emit('change', newState.lastAffix);
}
this.setState(newState);
},
// @ts-ignore TS6133
prepareMeasure: function prepareMeasure() {
this.setState({
status: AffixStatus.Prepare,
affixStyle: undefined,
placeholderStyle: undefined
});
this.$forceUpdate();
// Test if `updatePosition` called
if (false) {}
},
updatePosition: function updatePosition() {
this.prepareMeasure();
},
lazyUpdatePosition: function lazyUpdatePosition() {
var target = this.target;
var affixStyle = this.affixStyle;
// Check position change before measure to make Safari smooth
if (target && affixStyle) {
var offsetTop = this.getOffsetTop();
var offsetBottom = this.getOffsetBottom();
var targetNode = target();
if (targetNode && this.$refs.placeholderNode) {
var targetRect = Object(_utils__WEBPACK_IMPORTED_MODULE_11__["getTargetRect"])(targetNode);
var placeholderReact = Object(_utils__WEBPACK_IMPORTED_MODULE_11__["getTargetRect"])(this.$refs.placeholderNode);
var fixedTop = Object(_utils__WEBPACK_IMPORTED_MODULE_11__["getFixedTop"])(placeholderReact, targetRect, offsetTop);
var fixedBottom = Object(_utils__WEBPACK_IMPORTED_MODULE_11__["getFixedBottom"])(placeholderReact, targetRect, offsetBottom);
if (fixedTop !== undefined && affixStyle.top === fixedTop || fixedBottom !== undefined && affixStyle.bottom === fixedBottom) {
return;
}
}
}
// Directly call prepare measure since it's already throttled.
this.prepareMeasure();
}
},
render: function render() {
var _this2 = this;
var h = arguments[0];
var prefixCls = this.prefixCls,
affixStyle = this.affixStyle,
placeholderStyle = this.placeholderStyle,
$slots = this.$slots,
$props = this.$props;
var getPrefixCls = this.configProvider.getPrefixCls;
var className = classnames__WEBPACK_IMPORTED_MODULE_3___default()(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, getPrefixCls('affix', prefixCls), affixStyle));
var props = {
attrs: Object(omit_js__WEBPACK_IMPORTED_MODULE_4__["default"])($props, ['prefixCls', 'offsetTop', 'offsetBottom', 'target'])
};
return h(
_vc_resize_observer__WEBPACK_IMPORTED_MODULE_5__["default"],
{
on: {
'resize': function resize() {
_this2.updatePosition();
}
}
},
[h(
'div',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([props, { style: placeholderStyle, ref: 'placeholderNode' }]),
[h(
'div',
{ 'class': className, ref: 'fixedNode', style: affixStyle },
[$slots['default']]
)]
)]
);
}
};
/* istanbul ignore next */
Affix.install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_9__["default"]);
Vue.component(Affix.name, Affix);
};
/* harmony default export */ __webpack_exports__["default"] = (Affix);
/***/ }),
/***/ "./components/affix/style/index.js":
/*!*****************************************!*\
!*** ./components/affix/style/index.js ***!
\*****************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/affix/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/***/ }),
/***/ "./components/affix/style/index.less":
/*!*******************************************!*\
!*** ./components/affix/style/index.less ***!
\*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/affix/utils.js":
/*!***********************************!*\
!*** ./components/affix/utils.js ***!
\***********************************/
/*! exports provided: getTargetRect, getFixedTop, getFixedBottom, getObserverEntities, addObserveTarget, removeObserveTarget */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTargetRect", function() { return getTargetRect; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getFixedTop", function() { return getFixedTop; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getFixedBottom", function() { return getFixedBottom; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getObserverEntities", function() { return getObserverEntities; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addObserveTarget", function() { return addObserveTarget; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeObserveTarget", function() { return removeObserveTarget; });
/* harmony import */ var _vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../vc-util/Dom/addEventListener */ "./components/vc-util/Dom/addEventListener.js");
function getTargetRect(target) {
return target !== window ? target.getBoundingClientRect() : { top: 0, bottom: window.innerHeight };
}
function getFixedTop(placeholderReact, targetRect, offsetTop) {
if (offsetTop !== undefined && targetRect.top > placeholderReact.top - offsetTop) {
return offsetTop + targetRect.top + 'px';
}
return undefined;
}
function getFixedBottom(placeholderReact, targetRect, offsetBottom) {
if (offsetBottom !== undefined && targetRect.bottom < placeholderReact.bottom + offsetBottom) {
var targetBottomOffset = window.innerHeight - targetRect.bottom;
return offsetBottom + targetBottomOffset + 'px';
}
return undefined;
}
// ======================== Observer ========================
var TRIGGER_EVENTS = ['resize', 'scroll', 'touchstart', 'touchmove', 'touchend', 'pageshow', 'load'];
var observerEntities = [];
function getObserverEntities() {
// Only used in test env. Can be removed if refactor.
return observerEntities;
}
function addObserveTarget(target, affix) {
if (!target) return;
var entity = observerEntities.find(function (item) {
return item.target === target;
});
if (entity) {
entity.affixList.push(affix);
} else {
entity = {
target: target,
affixList: [affix],
eventHandlers: {}
};
observerEntities.push(entity);
// Add listener
TRIGGER_EVENTS.forEach(function (eventName) {
entity.eventHandlers[eventName] = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_0__["default"])(target, eventName, function () {
entity.affixList.forEach(function (targetAffix) {
targetAffix.lazyUpdatePosition();
});
});
});
}
}
function removeObserveTarget(affix) {
var observerEntity = observerEntities.find(function (oriObserverEntity) {
var hasAffix = oriObserverEntity.affixList.some(function (item) {
return item === affix;
});
if (hasAffix) {
oriObserverEntity.affixList = oriObserverEntity.affixList.filter(function (item) {
return item !== affix;
});
}
return hasAffix;
});
if (observerEntity && observerEntity.affixList.length === 0) {
observerEntities = observerEntities.filter(function (item) {
return item !== observerEntity;
});
// Remove listener
TRIGGER_EVENTS.forEach(function (eventName) {
var handler = observerEntity.eventHandlers[eventName];
if (handler && handler.remove) {
handler.remove();
}
});
}
}
/***/ }),
/***/ "./components/alert/index.jsx":
/*!************************************!*\
!*** ./components/alert/index.jsx ***!
\************************************/
/*! exports provided: AlertProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AlertProps", function() { return AlertProps; });
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_getTransitionProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/getTransitionProps */ "./components/_util/getTransitionProps.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
function noop() {}
var AlertProps = {
/**
* Type of Alert styles, options:`success`, `info`, `warning`, `error`
*/
type: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOf(['success', 'info', 'warning', 'error']),
/** Whether Alert can be closed */
closable: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
/** Close text to show */
closeText: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
/** Content of Alert */
message: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
/** Additional content of Alert */
description: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
/** Callback when close Alert */
// onClose?: React.MouseEventHandler<HTMLAnchorElement>;
/** Trigger when animation ending of Alert */
afterClose: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func.def(noop),
/** Whether to show icon */
showIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
iconType: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
banner: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
icon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any
};
var Alert = {
name: 'AAlert',
props: AlertProps,
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__["ConfigConsumerProps"];
} }
},
data: function data() {
return {
closing: false,
closed: false
};
},
methods: {
handleClose: function handleClose(e) {
e.preventDefault();
var dom = this.$el;
dom.style.height = dom.offsetHeight + 'px';
// Magic code
// 重复一次后才能正确设置 height
dom.style.height = dom.offsetHeight + 'px';
this.setState({
closing: true
});
this.$emit('close', e);
},
animationEnd: function animationEnd() {
this.setState({
closing: false,
closed: true
});
this.afterClose();
}
},
render: function render() {
var _classNames;
var h = arguments[0];
var customizePrefixCls = this.prefixCls,
banner = this.banner,
closing = this.closing,
closed = this.closed;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('alert', customizePrefixCls);
var closable = this.closable,
type = this.type,
showIcon = this.showIcon,
iconType = this.iconType;
var closeText = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'closeText');
var description = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'description');
var message = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'message');
var icon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'icon');
// banner模式默认有 Icon
showIcon = banner && showIcon === undefined ? true : showIcon;
// banner模式默认为警告
type = banner && type === undefined ? 'warning' : type || 'info';
var iconTheme = 'filled';
if (!iconType) {
switch (type) {
case 'success':
iconType = 'check-circle';
break;
case 'info':
iconType = 'info-circle';
break;
case 'error':
iconType = 'close-circle';
break;
case 'warning':
iconType = 'exclamation-circle';
break;
default:
iconType = 'default';
}
// use outline icon in alert with description
if (description) {
iconTheme = 'outlined';
}
}
// closeable when closeText is assigned
if (closeText) {
closable = true;
}
var alertCls = classnames__WEBPACK_IMPORTED_MODULE_2___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-' + type, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-closing', closing), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-with-description', !!description), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-no-icon', !showIcon), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-banner', !!banner), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-closable', closable), _classNames));
var closeIcon = closable ? h(
'button',
{
attrs: {
type: 'button',
tabIndex: 0
},
on: {
'click': this.handleClose
},
'class': prefixCls + '-close-icon' },
[closeText ? h(
'span',
{ 'class': prefixCls + '-close-text' },
[closeText]
) : h(_icon__WEBPACK_IMPORTED_MODULE_1__["default"], {
attrs: { type: 'close' }
})]
) : null;
var iconNode = icon && (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["isValidElement"])(icon) ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_7__["cloneElement"])(icon, {
'class': prefixCls + '-icon'
}) : h(
'span',
{ 'class': prefixCls + '-icon' },
[icon]
)) || h(_icon__WEBPACK_IMPORTED_MODULE_1__["default"], { 'class': prefixCls + '-icon', attrs: { type: iconType, theme: iconTheme }
});
var transitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_5__["default"])(prefixCls + '-slide-up', {
appear: false,
afterLeave: this.animationEnd
});
return closed ? null : h(
'transition',
transitionProps,
[h(
'div',
{
directives: [{
name: 'show',
value: !closing
}],
'class': alertCls, attrs: { 'data-show': !closing }
},
[showIcon ? iconNode : null, h(
'span',
{ 'class': prefixCls + '-message' },
[message]
), h(
'span',
{ 'class': prefixCls + '-description' },
[description]
), closeIcon]
)]
);
}
};
/* istanbul ignore next */
Alert.install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_9__["default"]);
Vue.component(Alert.name, Alert);
};
/* harmony default export */ __webpack_exports__["default"] = (Alert);
/***/ }),
/***/ "./components/alert/style/index.js":
/*!*****************************************!*\
!*** ./components/alert/style/index.js ***!
\*****************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/alert/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/***/ }),
/***/ "./components/alert/style/index.less":
/*!*******************************************!*\
!*** ./components/alert/style/index.less ***!
\*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/anchor/Anchor.jsx":
/*!**************************************!*\
!*** ./components/anchor/Anchor.jsx ***!
\**************************************/
/*! exports provided: AnchorProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnchorProps", function() { return AnchorProps; });
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../vc-util/Dom/addEventListener */ "./components/vc-util/Dom/addEventListener.js");
/* harmony import */ var _affix__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../affix */ "./components/affix/index.jsx");
/* harmony import */ var _util_scrollTo__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/scrollTo */ "./components/_util/scrollTo.js");
/* harmony import */ var _util_getScroll__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/getScroll */ "./components/_util/getScroll.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
function getDefaultContainer() {
return window;
}
function getOffsetTop(element, container) {
if (!element) {
return 0;
}
if (!element.getClientRects().length) {
return 0;
}
var rect = element.getBoundingClientRect();
if (rect.width || rect.height) {
if (container === window) {
container = element.ownerDocument.documentElement;
return rect.top - container.clientTop;
}
return rect.top - container.getBoundingClientRect().top;
}
return rect.top;
}
// function easeInOutCubic(t, b, c, d) {
// const cc = c - b;
// t /= d / 2;
// if (t < 1) {
// return (cc / 2) * t * t * t + b;
// }
// return (cc / 2) * ((t -= 2) * t * t + 2) + b;
// }
var sharpMatcherRegx = /#([^#]+)$/;
// function scrollTo(href, offsetTop = 0, getContainer, callback = () => {}) {
// const container = getContainer();
// const scrollTop = getScroll(container, true);
// const sharpLinkMatch = sharpMatcherRegx.exec(href);
// if (!sharpLinkMatch) {
// return;
// }
// const targetElement = document.getElementById(sharpLinkMatch[1]);
// if (!targetElement) {
// return;
// }
// const eleOffsetTop = getOffsetTop(targetElement, container);
// const targetScrollTop = scrollTop + eleOffsetTop - offsetTop;
// const startTime = Date.now();
// const frameFunc = () => {
// const timestamp = Date.now();
// const time = timestamp - startTime;
// const nextScrollTop = easeInOutCubic(time, scrollTop, targetScrollTop, 450);
// if (container === window) {
// window.scrollTo(window.pageXOffset, nextScrollTop);
// } else {
// container.scrollTop = nextScrollTop;
// }
// if (time < 450) {
// raf(frameFunc);
// } else {
// callback();
// }
// };
// raf(frameFunc);
// }
var AnchorProps = {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
offsetTop: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
bounds: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
affix: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
showInkInFixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
getContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
wrapperClass: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
wrapperStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
getCurrentAnchor: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
targetOffset: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number
};
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'AAnchor',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__["default"]],
inheritAttrs: false,
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["initDefaultProps"])(AnchorProps, {
affix: true,
showInkInFixed: false,
getContainer: getDefaultContainer
}),
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_9__["ConfigConsumerProps"];
} }
},
data: function data() {
this.links = [];
this._sPrefixCls = '';
return {
activeLink: null
};
},
provide: function provide() {
var _this = this;
return {
antAnchor: {
registerLink: function registerLink(link) {
if (!_this.links.includes(link)) {
_this.links.push(link);
}
},
unregisterLink: function unregisterLink(link) {
var index = _this.links.indexOf(link);
if (index !== -1) {
_this.links.splice(index, 1);
}
},
$data: this.$data,
scrollTo: this.handleScrollTo
},
antAnchorContext: this
};
},
mounted: function mounted() {
var _this2 = this;
this.$nextTick(function () {
var getContainer = _this2.getContainer;
_this2.scrollContainer = getContainer();
_this2.scrollEvent = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_3__["default"])(_this2.scrollContainer, 'scroll', _this2.handleScroll);
_this2.handleScroll();
});
},
updated: function updated() {
var _this3 = this;
this.$nextTick(function () {
if (_this3.scrollEvent) {
var getContainer = _this3.getContainer;
var currentContainer = getContainer();
if (_this3.scrollContainer !== currentContainer) {
_this3.scrollContainer = currentContainer;
_this3.scrollEvent.remove();
_this3.scrollEvent = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_3__["default"])(_this3.scrollContainer, 'scroll', _this3.handleScroll);
_this3.handleScroll();
}
}
_this3.updateInk();
});
},
beforeDestroy: function beforeDestroy() {
if (this.scrollEvent) {
this.scrollEvent.remove();
}
},
methods: {
getCurrentActiveLink: function getCurrentActiveLink() {
var offsetTop = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
var bounds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 5;
var getCurrentAnchor = this.getCurrentAnchor;
if (typeof getCurrentAnchor === 'function') {
return getCurrentAnchor();
}
var activeLink = '';
if (typeof document === 'undefined') {
return activeLink;
}
var linkSections = [];
var getContainer = this.getContainer;
var container = getContainer();
this.links.forEach(function (link) {
var sharpLinkMatch = sharpMatcherRegx.exec(link.toString());
if (!sharpLinkMatch) {
return;
}
var target = document.getElementById(sharpLinkMatch[1]);
if (target) {
var top = getOffsetTop(target, container);
if (top < offsetTop + bounds) {
linkSections.push({
link: link,
top: top
});
}
}
});
if (linkSections.length) {
var maxSection = linkSections.reduce(function (prev, curr) {
return curr.top > prev.top ? curr : prev;
});
return maxSection.link;
}
return '';
},
handleScrollTo: function handleScrollTo(link) {
var _this4 = this;
var offsetTop = this.offsetTop,
getContainer = this.getContainer,
targetOffset = this.targetOffset;
this.setCurrentActiveLink(link);
var container = getContainer();
var scrollTop = Object(_util_getScroll__WEBPACK_IMPORTED_MODULE_6__["default"])(container, true);
var sharpLinkMatch = sharpMatcherRegx.exec(link);
if (!sharpLinkMatch) {
return;
}
var targetElement = document.getElementById(sharpLinkMatch[1]);
if (!targetElement) {
return;
}
var eleOffsetTop = getOffsetTop(targetElement, container);
var y = scrollTop + eleOffsetTop;
y -= targetOffset !== undefined ? targetOffset : offsetTop || 0;
this.animating = true;
Object(_util_scrollTo__WEBPACK_IMPORTED_MODULE_5__["default"])(y, {
callback: function callback() {
_this4.animating = false;
},
getContainer: getContainer
});
},
setCurrentActiveLink: function setCurrentActiveLink(link) {
var activeLink = this.activeLink;
if (activeLink !== link) {
this.setState({
activeLink: link
});
this.$emit('change', link);
}
},
handleScroll: function handleScroll() {
if (this.animating) {
return;
}
var offsetTop = this.offsetTop,
bounds = this.bounds,
targetOffset = this.targetOffset;
var currentActiveLink = this.getCurrentActiveLink(targetOffset !== undefined ? targetOffset : offsetTop || 0, bounds);
this.setCurrentActiveLink(currentActiveLink);
},
updateInk: function updateInk() {
if (typeof document === 'undefined') {
return;
}
var _sPrefixCls = this._sPrefixCls;
var linkNode = this.$el.getElementsByClassName(_sPrefixCls + '-link-title-active')[0];
if (linkNode) {
this.$refs.inkNode.style.top = linkNode.offsetTop + linkNode.clientHeight / 2 - 4.5 + 'px';
}
}
},
render: function render() {
var h = arguments[0];
var customizePrefixCls = this.prefixCls,
offsetTop = this.offsetTop,
affix = this.affix,
showInkInFixed = this.showInkInFixed,
activeLink = this.activeLink,
$slots = this.$slots,
getContainer = this.getContainer;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('anchor', customizePrefixCls);
this._sPrefixCls = prefixCls;
var inkClass = classnames__WEBPACK_IMPORTED_MODULE_2___default()(prefixCls + '-ink-ball', {
visible: activeLink
});
var wrapperClass = classnames__WEBPACK_IMPORTED_MODULE_2___default()(this.wrapperClass, prefixCls + '-wrapper');
var anchorClass = classnames__WEBPACK_IMPORTED_MODULE_2___default()(prefixCls, {
fixed: !affix && !showInkInFixed
});
var wrapperStyle = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
maxHeight: offsetTop ? 'calc(100vh - ' + offsetTop + 'px)' : '100vh'
}, this.wrapperStyle);
var anchorContent = h(
'div',
{ 'class': wrapperClass, style: wrapperStyle },
[h(
'div',
{ 'class': anchorClass },
[h(
'div',
{ 'class': prefixCls + '-ink' },
[h('span', { 'class': inkClass, ref: 'inkNode' })]
), $slots['default']]
)]
);
return !affix ? anchorContent : h(
_affix__WEBPACK_IMPORTED_MODULE_4__["default"],
{
attrs: { offsetTop: offsetTop, target: getContainer }
},
[anchorContent]
);
}
});
/***/ }),
/***/ "./components/anchor/AnchorLink.jsx":
/*!******************************************!*\
!*** ./components/anchor/AnchorLink.jsx ***!
\******************************************/
/*! exports provided: AnchorLinkProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnchorLinkProps", function() { return AnchorLinkProps; });
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
var AnchorLinkProps = {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
href: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
title: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
target: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string
};
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'AAnchorLink',
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["initDefaultProps"])(AnchorLinkProps, {
href: '#'
}),
inject: {
antAnchor: { 'default': function _default() {
return {};
} },
antAnchorContext: { 'default': function _default() {
return {};
} },
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__["ConfigConsumerProps"];
} }
},
watch: {
href: function href(val, oldVal) {
var _this = this;
this.$nextTick(function () {
_this.antAnchor.unregisterLink(oldVal);
_this.antAnchor.registerLink(val);
});
}
},
mounted: function mounted() {
this.antAnchor.registerLink(this.href);
},
beforeDestroy: function beforeDestroy() {
this.antAnchor.unregisterLink(this.href);
},
methods: {
handleClick: function handleClick(e) {
this.antAnchor.scrollTo(this.href);
var scrollTo = this.antAnchor.scrollTo;
var _$props = this.$props,
href = _$props.href,
title = _$props.title;
if (this.antAnchorContext.$emit) {
this.antAnchorContext.$emit('click', e, { title: title, href: href });
}
scrollTo(href);
}
},
render: function render() {
var h = arguments[0];
var customizePrefixCls = this.prefixCls,
href = this.href,
$slots = this.$slots,
target = this.target;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('anchor', customizePrefixCls);
var title = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'title');
var active = this.antAnchor.$data.activeLink === href;
var wrapperClassName = classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls + '-link', babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, prefixCls + '-link-active', active));
var titleClassName = classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls + '-link-title', babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, prefixCls + '-link-title-active', active));
return h(
'div',
{ 'class': wrapperClassName },
[h(
'a',
{
'class': titleClassName,
attrs: { href: href,
title: typeof title === 'string' ? title : '',
target: target
},
on: {
'click': this.handleClick
}
},
[title]
), $slots['default']]
);
}
});
/***/ }),
/***/ "./components/anchor/index.jsx":
/*!*************************************!*\
!*** ./components/anchor/index.jsx ***!
\*************************************/
/*! exports provided: AnchorProps, AnchorLinkProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Anchor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Anchor */ "./components/anchor/Anchor.jsx");
/* harmony import */ var _AnchorLink__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AnchorLink */ "./components/anchor/AnchorLink.jsx");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AnchorProps", function() { return _Anchor__WEBPACK_IMPORTED_MODULE_0__["AnchorProps"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AnchorLinkProps", function() { return _AnchorLink__WEBPACK_IMPORTED_MODULE_1__["AnchorLinkProps"]; });
_Anchor__WEBPACK_IMPORTED_MODULE_0__["default"].Link = _AnchorLink__WEBPACK_IMPORTED_MODULE_1__["default"];
/* istanbul ignore next */
_Anchor__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_2__["default"]);
Vue.component(_Anchor__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Anchor__WEBPACK_IMPORTED_MODULE_0__["default"]);
Vue.component(_Anchor__WEBPACK_IMPORTED_MODULE_0__["default"].Link.name, _Anchor__WEBPACK_IMPORTED_MODULE_0__["default"].Link);
};
/* harmony default export */ __webpack_exports__["default"] = (_Anchor__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/anchor/style/index.js":
/*!******************************************!*\
!*** ./components/anchor/style/index.js ***!
\******************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/anchor/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _affix_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../affix/style */ "./components/affix/style/index.js");
// style dependencies
/***/ }),
/***/ "./components/anchor/style/index.less":
/*!********************************************!*\
!*** ./components/anchor/style/index.less ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/auto-complete/InputElement.jsx":
/*!***************************************************!*\
!*** ./components/auto-complete/InputElement.jsx ***!
\***************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/slicedToArray */ "./node_modules/babel-runtime/helpers/slicedToArray.js");
/* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
function chaining() {
for (var _len = arguments.length, fns = Array(_len), _key = 0; _key < _len; _key++) {
fns[_key] = arguments[_key];
}
return function () {
for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
args[_key2] = arguments[_key2];
}
// eslint-disable-line
// eslint-disable-line
for (var i = 0; i < fns.length; i++) {
if (fns[i] && typeof fns[i] === 'function') {
fns[i].apply(this, args);
}
}
};
}
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'InputElement',
inheritAttrs: false,
props: {
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string
},
render: function render() {
var _$slots = this.$slots,
$slots = _$slots === undefined ? {} : _$slots,
_$attrs = this.$attrs,
$attrs = _$attrs === undefined ? {} : _$attrs,
placeholder = this.placeholder;
var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this);
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this);
var value = props.value === undefined ? '' : props.value;
var children = $slots['default'][0];
var _$slots$default$0$com = $slots['default'][0].componentOptions,
componentOptions = _$slots$default$0$com === undefined ? {} : _$slots$default$0$com;
var _componentOptions$lis = componentOptions.listeners,
events = _componentOptions$lis === undefined ? {} : _componentOptions$lis;
var newEvent = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, events);
var _iteratorNormalCompletion = true;
var _didIteratorError = false;
var _iteratorError = undefined;
try {
for (var _iterator = Object.entries(listeners)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
var _ref = _step.value;
var _ref2 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_ref, 2);
var eventName = _ref2[0];
var event = _ref2[1];
newEvent[eventName] = chaining(event, events[eventName]);
}
} catch (err) {
_didIteratorError = true;
_iteratorError = err;
} finally {
try {
if (!_iteratorNormalCompletion && _iterator['return']) {
_iterator['return']();
}
} finally {
if (_didIteratorError) {
throw _iteratorError;
}
}
}
var attrs = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, $attrs, { value: value });
// https://github.com/vueComponent/ant-design-vue/issues/1761
delete props.placeholder;
if (placeholder) {
props.placeholder = placeholder;
attrs.placeholder = placeholder;
}
return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_3__["cloneElement"])(children, {
domProps: {
value: value
},
props: props,
on: newEvent,
attrs: attrs,
ref: 'ele'
});
}
});
/***/ }),
/***/ "./components/auto-complete/index.jsx":
/*!********************************************!*\
!*** ./components/auto-complete/index.jsx ***!
\********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _vc_select__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../vc-select */ "./components/vc-select/index.js");
/* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../select */ "./components/select/index.jsx");
/* harmony import */ var _input__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../input */ "./components/input/index.js");
/* harmony import */ var _InputElement__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./InputElement */ "./components/auto-complete/InputElement.jsx");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
// const DataSourceItemObject = PropTypes.shape({
// value: String,
// text: String,
// }).loose
// const DataSourceItemType = PropTypes.oneOfType([
// PropTypes.string,
// DataSourceItemObject,
// ]).isRequired
// export interface AutoCompleteInputProps {
// onChange?: React.FormEventHandler<any>;
// value: any;
// }
var AutoCompleteProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(_select__WEBPACK_IMPORTED_MODULE_4__["AbstractSelectProps"])(), {
value: _select__WEBPACK_IMPORTED_MODULE_4__["SelectValue"],
defaultValue: _select__WEBPACK_IMPORTED_MODULE_4__["SelectValue"],
dataSource: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].array,
dropdownMenuStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].object,
optionLabelProp: String,
dropdownMatchSelectWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool
// onChange?: (value: SelectValue) => void;
// onSelect?: (value: SelectValue, option: Object) => any;
});
var AutoComplete = {
name: 'AAutoComplete',
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, AutoCompleteProps, {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string.def('ant-select'),
showSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool.def(false),
transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string.def('slide-up'),
choiceTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string.def('zoom'),
autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
backfill: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
optionLabelProp: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string.def('children'),
filterOption: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].func]).def(false),
defaultActiveFirstOption: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool.def(true)
}),
Option: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _vc_select__WEBPACK_IMPORTED_MODULE_3__["Option"], { name: 'AAutoCompleteOption' }),
OptGroup: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _vc_select__WEBPACK_IMPORTED_MODULE_3__["OptGroup"], { name: 'AAutoCompleteOptGroup' }),
model: {
prop: 'value',
event: 'change'
},
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__["ConfigConsumerProps"];
} }
},
provide: function provide() {
return {
savePopupRef: this.savePopupRef
};
},
methods: {
savePopupRef: function savePopupRef(ref) {
this.popupRef = ref;
},
getInputElement: function getInputElement() {
var h = this.$createElement;
var $slots = this.$slots,
placeholder = this.placeholder;
var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["filterEmpty"])($slots['default']);
var element = children.length ? children[0] : h(_input__WEBPACK_IMPORTED_MODULE_5__["default"], {
attrs: { lazy: false }
});
return h(
_InputElement__WEBPACK_IMPORTED_MODULE_6__["default"],
{
attrs: { placeholder: placeholder }
},
[element]
);
},
focus: function focus() {
if (this.$refs.select) {
this.$refs.select.focus();
}
},
blur: function blur() {
if (this.$refs.select) {
this.$refs.select.blur();
}
}
},
render: function render() {
var _cls;
var h = arguments[0];
var size = this.size,
customizePrefixCls = this.prefixCls,
optionLabelProp = this.optionLabelProp,
dataSource = this.dataSource,
$slots = this.$slots;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('select', customizePrefixCls);
var cls = (_cls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-lg', size === 'large'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-sm', size === 'small'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-show-search', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-auto-complete', true), _cls);
var options = void 0;
var childArray = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["filterEmpty"])($slots.dataSource);
if (childArray.length) {
options = childArray;
} else {
options = dataSource ? dataSource.map(function (item) {
if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["isValidElement"])(item)) {
return item;
}
switch (typeof item === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(item)) {
case 'string':
return h(
_vc_select__WEBPACK_IMPORTED_MODULE_3__["Option"],
{ key: item },
[item]
);
case 'object':
return h(
_vc_select__WEBPACK_IMPORTED_MODULE_3__["Option"],
{ key: item.value },
[item.text]
);
default:
throw new Error('AutoComplete[dataSource] only supports type `string[] | Object[]`.');
}
}) : [];
}
var selectProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getOptionProps"])(this), {
mode: _select__WEBPACK_IMPORTED_MODULE_4__["default"].SECRET_COMBOBOX_MODE_DO_NOT_USE,
optionLabelProp: optionLabelProp,
getInputElement: this.getInputElement,
notFoundContent: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(this, 'notFoundContent'),
placeholder: ''
}),
'class': cls,
ref: 'select',
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getListeners"])(this)
};
return h(
_select__WEBPACK_IMPORTED_MODULE_4__["default"],
selectProps,
[options]
);
}
};
/* istanbul ignore next */
AutoComplete.install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_10__["default"]);
Vue.component(AutoComplete.name, AutoComplete);
Vue.component(AutoComplete.Option.name, AutoComplete.Option);
Vue.component(AutoComplete.OptGroup.name, AutoComplete.OptGroup);
};
/* harmony default export */ __webpack_exports__["default"] = (AutoComplete);
/***/ }),
/***/ "./components/auto-complete/style/index.js":
/*!*************************************************!*\
!*** ./components/auto-complete/style/index.js ***!
\*************************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/auto-complete/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _select_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../select/style */ "./components/select/style/index.js");
/* harmony import */ var _input_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../input/style */ "./components/input/style/index.js");
// style dependencies
/***/ }),
/***/ "./components/auto-complete/style/index.less":
/*!***************************************************!*\
!*** ./components/auto-complete/style/index.less ***!
\***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/avatar/Avatar.jsx":
/*!**************************************!*\
!*** ./components/avatar/Avatar.jsx ***!
\**************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'AAvatar',
props: {
prefixCls: {
type: String,
'default': undefined
},
shape: {
validator: function validator(val) {
return ['circle', 'square'].includes(val);
},
'default': 'circle'
},
size: {
validator: function validator(val) {
return typeof val === 'number' || ['small', 'large', 'default'].includes(val);
},
'default': 'default'
},
src: String,
/** Srcset of image avatar */
srcSet: String,
icon: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
alt: String,
loadError: Function
},
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_3__["ConfigConsumerProps"];
} }
},
data: function data() {
return {
isImgExist: true,
isMounted: false,
scale: 1
};
},
watch: {
src: function src() {
var _this = this;
this.$nextTick(function () {
_this.isImgExist = true;
_this.scale = 1;
// force uodate for position
_this.$forceUpdate();
});
}
},
mounted: function mounted() {
var _this2 = this;
this.$nextTick(function () {
_this2.setScale();
_this2.isMounted = true;
});
},
updated: function updated() {
var _this3 = this;
this.$nextTick(function () {
_this3.setScale();
});
},
methods: {
setScale: function setScale() {
if (!this.$refs.avatarChildren || !this.$refs.avatarNode) {
return;
}
var childrenWidth = this.$refs.avatarChildren.offsetWidth; // offsetWidth avoid affecting be transform scale
var nodeWidth = this.$refs.avatarNode.offsetWidth;
// denominator is 0 is no meaning
if (childrenWidth === 0 || nodeWidth === 0 || this.lastChildrenWidth === childrenWidth && this.lastNodeWidth === nodeWidth) {
return;
}
this.lastChildrenWidth = childrenWidth;
this.lastNodeWidth = nodeWidth;
// add 4px gap for each side to get better performance
this.scale = nodeWidth - 8 < childrenWidth ? (nodeWidth - 8) / childrenWidth : 1;
},
handleImgLoadError: function handleImgLoadError() {
var loadError = this.$props.loadError;
var errorFlag = loadError ? loadError() : undefined;
if (errorFlag !== false) {
this.isImgExist = false;
}
}
},
render: function render() {
var _sizeCls, _extends3;
var h = arguments[0];
var _$props = this.$props,
customizePrefixCls = _$props.prefixCls,
shape = _$props.shape,
size = _$props.size,
src = _$props.src,
alt = _$props.alt,
srcSet = _$props.srcSet;
var icon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'icon');
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('avatar', customizePrefixCls);
var _$data = this.$data,
isImgExist = _$data.isImgExist,
scale = _$data.scale,
isMounted = _$data.isMounted;
var sizeCls = (_sizeCls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_sizeCls, prefixCls + '-lg', size === 'large'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_sizeCls, prefixCls + '-sm', size === 'small'), _sizeCls);
var classString = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, prefixCls, true), sizeCls, (_extends3 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_extends3, prefixCls + '-' + shape, shape), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_extends3, prefixCls + '-image', src && isImgExist), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_extends3, prefixCls + '-icon', icon), _extends3));
var sizeStyle = typeof size === 'number' ? {
width: size + 'px',
height: size + 'px',
lineHeight: size + 'px',
fontSize: icon ? size / 2 + 'px' : '18px'
} : {};
var children = this.$slots['default'];
if (src && isImgExist) {
children = h('img', {
attrs: { src: src, srcSet: srcSet, alt: alt },
on: {
'error': this.handleImgLoadError
}
});
} else if (icon) {
if (typeof icon === 'string') {
children = h(_icon__WEBPACK_IMPORTED_MODULE_4__["default"], {
attrs: { type: icon }
});
} else {
children = icon;
}
} else {
var childrenNode = this.$refs.avatarChildren;
if (childrenNode || scale !== 1) {
var transformString = 'scale(' + scale + ') translateX(-50%)';
var childrenStyle = {
msTransform: transformString,
WebkitTransform: transformString,
transform: transformString
};
var sizeChildrenStyle = typeof size === 'number' ? {
lineHeight: size + 'px'
} : {};
children = h(
'span',
{
'class': prefixCls + '-string',
ref: 'avatarChildren',
style: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, sizeChildrenStyle, childrenStyle)
},
[children]
);
} else {
var _childrenStyle = {};
if (!isMounted) {
_childrenStyle.opacity = 0;
}
children = h(
'span',
{ 'class': prefixCls + '-string', ref: 'avatarChildren', style: { opacity: 0 } },
[children]
);
}
}
return h(
'span',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ ref: 'avatarNode' }, { on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this), 'class': classString, style: sizeStyle }]),
[children]
);
}
});
/***/ }),
/***/ "./components/avatar/index.js":
/*!************************************!*\
!*** ./components/avatar/index.js ***!
\************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Avatar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Avatar */ "./components/avatar/Avatar.jsx");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
/* istanbul ignore next */
_Avatar__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_1__["default"]);
Vue.component(_Avatar__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Avatar__WEBPACK_IMPORTED_MODULE_0__["default"]);
};
/* harmony default export */ __webpack_exports__["default"] = (_Avatar__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/avatar/style/index.js":
/*!******************************************!*\
!*** ./components/avatar/style/index.js ***!
\******************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/avatar/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/***/ }),
/***/ "./components/avatar/style/index.less":
/*!********************************************!*\
!*** ./components/avatar/style/index.less ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/back-top/index.jsx":
/*!***************************************!*\
!*** ./components/back-top/index.jsx ***!
\***************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../vc-util/Dom/addEventListener */ "./components/vc-util/Dom/addEventListener.js");
/* harmony import */ var _util_getScroll__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/getScroll */ "./components/_util/getScroll.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_getTransitionProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/getTransitionProps */ "./components/_util/getTransitionProps.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_scrollTo__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/scrollTo */ "./components/_util/scrollTo.js");
function getDefaultTarget() {
return window;
}
var BackTopProps = {
visibilityHeight: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
// onClick?: React.MouseEventHandler<any>;
target: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string
// visible: PropTypes.bool, // Only for test. Don't use it.
};
var BackTop = {
name: 'ABackTop',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, BackTopProps, {
visibilityHeight: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number.def(400)
}),
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__["ConfigConsumerProps"];
} }
},
data: function data() {
this.scrollEvent = null;
return {
visible: false
};
},
mounted: function mounted() {
var _this = this;
this.$nextTick(function () {
var getTarget = _this.target || getDefaultTarget;
_this.scrollEvent = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_2__["default"])(getTarget(), 'scroll', _this.handleScroll);
_this.handleScroll();
});
},
activated: function activated() {
var _this2 = this;
this.$nextTick(function () {
_this2.handleScroll();
});
},
beforeDestroy: function beforeDestroy() {
if (this.scrollEvent) {
this.scrollEvent.remove();
}
},
methods: {
getCurrentScrollTop: function getCurrentScrollTop() {
var getTarget = this.target || getDefaultTarget;
var targetNode = getTarget();
if (targetNode === window) {
return window.pageYOffset || document.body.scrollTop || document.documentElement.scrollTop;
}
return targetNode.scrollTop;
},
scrollToTop: function scrollToTop(e) {
var _target = this.target,
target = _target === undefined ? getDefaultTarget : _target;
Object(_util_scrollTo__WEBPACK_IMPORTED_MODULE_9__["default"])(0, {
getContainer: target
});
this.$emit('click', e);
},
handleScroll: function handleScroll() {
var visibilityHeight = this.visibilityHeight,
_target2 = this.target,
target = _target2 === undefined ? getDefaultTarget : _target2;
var scrollTop = Object(_util_getScroll__WEBPACK_IMPORTED_MODULE_3__["default"])(target(), true);
this.setState({
visible: scrollTop > visibilityHeight
});
}
},
render: function render() {
var h = arguments[0];
var customizePrefixCls = this.prefixCls,
$slots = this.$slots;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('back-top', customizePrefixCls);
var defaultElement = h(
'div',
{ 'class': prefixCls + '-content' },
[h('div', { 'class': prefixCls + '-icon' })]
);
var divProps = {
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getListeners"])(this), {
click: this.scrollToTop
}),
'class': prefixCls
};
var backTopBtn = this.visible ? h(
'div',
divProps,
[$slots['default'] || defaultElement]
) : null;
var transitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_5__["default"])('fade');
return h(
'transition',
transitionProps,
[backTopBtn]
);
}
};
/* istanbul ignore next */
BackTop.install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_7__["default"]);
Vue.component(BackTop.name, BackTop);
};
/* harmony default export */ __webpack_exports__["default"] = (BackTop);
/***/ }),
/***/ "./components/back-top/style/index.js":
/*!********************************************!*\
!*** ./components/back-top/style/index.js ***!
\********************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/back-top/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/***/ }),
/***/ "./components/back-top/style/index.less":
/*!**********************************************!*\
!*** ./components/back-top/style/index.less ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/badge/Badge.jsx":
/*!************************************!*\
!*** ./components/badge/Badge.jsx ***!
\************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _ScrollNumber__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ScrollNumber */ "./components/badge/ScrollNumber.jsx");
/* harmony import */ var _util_colors__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/colors */ "./components/_util/colors.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _util_getTransitionProps__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_util/getTransitionProps */ "./components/_util/getTransitionProps.js");
/* harmony import */ var _util_isNumeric__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/isNumeric */ "./components/_util/isNumeric.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
var BadgeProps = {
/** Number to show in badge */
count: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
showZero: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
/** Max count to show */
overflowCount: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
/** whether to show red dot without number */
dot: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
scrollNumberPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
status: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOf(['success', 'processing', 'default', 'error', 'warning']),
color: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
text: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
offset: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].array,
numberStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object.def(function () {
return {};
}),
title: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string
};
function isPresetColor(color) {
return _util_colors__WEBPACK_IMPORTED_MODULE_6__["PresetColorTypes"].indexOf(color) !== -1;
}
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'ABadge',
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["initDefaultProps"])(BadgeProps, {
showZero: false,
dot: false,
overflowCount: 99
}),
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__["ConfigConsumerProps"];
} }
},
methods: {
getNumberedDispayCount: function getNumberedDispayCount() {
var overflowCount = this.$props.overflowCount;
var count = this.badgeCount;
var displayCount = count > overflowCount ? overflowCount + '+' : count;
return displayCount;
},
getDispayCount: function getDispayCount() {
var isDot = this.isDot();
// dot mode don't need count
if (isDot) {
return '';
}
return this.getNumberedDispayCount();
},
getScrollNumberTitle: function getScrollNumberTitle() {
var title = this.$props.title;
var count = this.badgeCount;
if (title) {
return title;
}
return typeof count === 'string' || typeof count === 'number' ? count : undefined;
},
getStyleWithOffset: function getStyleWithOffset() {
var _$props = this.$props,
offset = _$props.offset,
numberStyle = _$props.numberStyle;
return offset ? babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({
right: -parseInt(offset[0], 10) + 'px',
marginTop: Object(_util_isNumeric__WEBPACK_IMPORTED_MODULE_11__["default"])(offset[1]) ? offset[1] + 'px' : offset[1]
}, numberStyle) : babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, numberStyle);
},
getBadgeClassName: function getBadgeClassName(prefixCls) {
var _classNames;
var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["filterEmpty"])(this.$slots['default']);
var hasStatus = this.hasStatus();
return classnames__WEBPACK_IMPORTED_MODULE_7___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, prefixCls + '-status', hasStatus), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, prefixCls + '-dot-status', hasStatus && this.dot && !this.isZero()), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, prefixCls + '-not-a-wrapper', !children.length), _classNames));
},
hasStatus: function hasStatus() {
var _$props2 = this.$props,
status = _$props2.status,
color = _$props2.color;
return !!status || !!color;
},
isZero: function isZero() {
var numberedDispayCount = this.getNumberedDispayCount();
return numberedDispayCount === '0' || numberedDispayCount === 0;
},
isDot: function isDot() {
var dot = this.$props.dot;
var isZero = this.isZero();
return dot && !isZero || this.hasStatus();
},
isHidden: function isHidden() {
var showZero = this.$props.showZero;
var displayCount = this.getDispayCount();
var isZero = this.isZero();
var isDot = this.isDot();
var isEmpty = displayCount === null || displayCount === undefined || displayCount === '';
return (isEmpty || isZero && !showZero) && !isDot;
},
renderStatusText: function renderStatusText(prefixCls) {
var h = this.$createElement;
var text = this.$props.text;
var hidden = this.isHidden();
return hidden || !text ? null : h(
'span',
{ 'class': prefixCls + '-status-text' },
[text]
);
},
renderDispayComponent: function renderDispayComponent() {
var count = this.badgeCount;
var customNode = count;
if (!customNode || (typeof customNode === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(customNode)) !== 'object') {
return undefined;
}
return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_9__["cloneElement"])(customNode, {
style: this.getStyleWithOffset()
});
},
renderBadgeNumber: function renderBadgeNumber(prefixCls, scrollNumberPrefixCls) {
var _scrollNumberCls;
var h = this.$createElement;
var _$props3 = this.$props,
status = _$props3.status,
color = _$props3.color;
var count = this.badgeCount;
var displayCount = this.getDispayCount();
var isDot = this.isDot();
var hidden = this.isHidden();
var scrollNumberCls = (_scrollNumberCls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_scrollNumberCls, prefixCls + '-dot', isDot), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_scrollNumberCls, prefixCls + '-count', !isDot), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_scrollNumberCls, prefixCls + '-multiple-words', !isDot && count && count.toString && count.toString().length > 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_scrollNumberCls, prefixCls + '-status-' + status, !!status), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_scrollNumberCls, prefixCls + '-status-' + color, isPresetColor(color)), _scrollNumberCls);
var statusStyle = this.getStyleWithOffset();
if (color && !isPresetColor(color)) {
statusStyle = statusStyle || {};
statusStyle.background = color;
}
return hidden ? null : h(_ScrollNumber__WEBPACK_IMPORTED_MODULE_5__["default"], {
attrs: {
prefixCls: scrollNumberPrefixCls,
'data-show': !hidden,
className: scrollNumberCls,
count: displayCount,
displayComponent: this.renderDispayComponent() // <Badge status="success" count={<Icon type="xxx" />}></Badge>
, title: this.getScrollNumberTitle()
},
directives: [{
name: 'show',
value: !hidden
}],
style: statusStyle,
key: 'scrollNumber'
});
}
},
render: function render() {
var _classNames2;
var h = arguments[0];
var customizePrefixCls = this.prefixCls,
customizeScrollNumberPrefixCls = this.scrollNumberPrefixCls,
status = this.status,
text = this.text,
color = this.color,
$slots = this.$slots;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('badge', customizePrefixCls);
var scrollNumberPrefixCls = getPrefixCls('scroll-number', customizeScrollNumberPrefixCls);
var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["filterEmpty"])($slots['default']);
var count = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getComponentFromProp"])(this, 'count');
if (Array.isArray(count)) {
count = count[0];
}
this.badgeCount = count;
var scrollNumber = this.renderBadgeNumber(prefixCls, scrollNumberPrefixCls);
var statusText = this.renderStatusText(prefixCls);
var statusCls = classnames__WEBPACK_IMPORTED_MODULE_7___default()((_classNames2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames2, prefixCls + '-status-dot', this.hasStatus()), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames2, prefixCls + '-status-' + status, !!status), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames2, prefixCls + '-status-' + color, isPresetColor(color)), _classNames2));
var statusStyle = {};
if (color && !isPresetColor(color)) {
statusStyle.background = color;
}
// <Badge status="success" />
if (!children.length && this.hasStatus()) {
var styleWithOffset = this.getStyleWithOffset();
var statusTextColor = styleWithOffset && styleWithOffset.color;
return h(
'span',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getListeners"])(this) }, {
'class': this.getBadgeClassName(prefixCls),
style: styleWithOffset
}]),
[h('span', { 'class': statusCls, style: statusStyle }), h(
'span',
{ style: { color: statusTextColor }, 'class': prefixCls + '-status-text' },
[text]
)]
);
}
var transitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_10__["default"])(children.length ? prefixCls + '-zoom' : '');
return h(
'span',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getListeners"])(this) }, { 'class': this.getBadgeClassName(prefixCls) }]),
[children, h(
'transition',
transitionProps,
[scrollNumber]
), statusText]
);
}
});
/***/ }),
/***/ "./components/badge/ScrollNumber.jsx":
/*!*******************************************!*\
!*** ./components/badge/ScrollNumber.jsx ***!
\*******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* 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 _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
function getNumberArray(num) {
return num ? num.toString().split('').reverse().map(function (i) {
var current = Number(i);
return isNaN(current) ? i : current;
}) : [];
}
var ScrollNumberProps = {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
count: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
component: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
title: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string, null]),
displayComponent: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
className: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object
};
/* harmony default export */ __webpack_exports__["default"] = ({
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
props: ScrollNumberProps,
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_7__["ConfigConsumerProps"];
} }
},
data: function data() {
return {
animateStarted: true,
sCount: this.count
};
},
watch: {
count: function count() {
this.lastCount = this.sCount;
this.setState({
animateStarted: true
});
}
},
updated: function updated() {
var _this = this;
var animateStarted = this.animateStarted,
count = this.count;
if (animateStarted) {
this.clearTimeout();
// Let browser has time to reset the scroller before actually
// performing the transition.
this.timeout = setTimeout(function () {
_this.setState({
animateStarted: false,
sCount: count
}, _this.onAnimated);
});
}
},
beforeDestroy: function beforeDestroy() {
this.clearTimeout();
},
methods: {
clearTimeout: function (_clearTimeout) {
function clearTimeout() {
return _clearTimeout.apply(this, arguments);
}
clearTimeout.toString = function () {
return _clearTimeout.toString();
};
return clearTimeout;
}(function () {
if (this.timeout) {
clearTimeout(this.timeout);
this.timeout = undefined;
}
}),
getPositionByNum: function getPositionByNum(num, i) {
var sCount = this.sCount;
var currentCount = Math.abs(Number(sCount));
var lastCount = Math.abs(Number(this.lastCount));
var currentDigit = Math.abs(getNumberArray(sCount)[i]);
var lastDigit = Math.abs(getNumberArray(this.lastCount)[i]);
if (this.animateStarted) {
return 10 + num;
}
// 同方向则在同一侧切换数字
if (currentCount > lastCount) {
if (currentDigit >= lastDigit) {
return 10 + num;
}
return 20 + num;
}
if (currentDigit <= lastDigit) {
return 10 + num;
}
return num;
},
onAnimated: function onAnimated() {
this.$emit('animated');
},
renderNumberList: function renderNumberList(position, className) {
var h = this.$createElement;
var childrenToReturn = [];
for (var i = 0; i < 30; i++) {
childrenToReturn.push(h(
'p',
{
key: i.toString(),
'class': classnames__WEBPACK_IMPORTED_MODULE_1___default()(className, {
current: position === i
})
},
[i % 10]
));
}
return childrenToReturn;
},
renderCurrentNumber: function renderCurrentNumber(prefixCls, num, i) {
var h = this.$createElement;
if (typeof num === 'number') {
var position = this.getPositionByNum(num, i);
var removeTransition = this.animateStarted || getNumberArray(this.lastCount)[i] === undefined;
var style = {
transition: removeTransition ? 'none' : undefined,
msTransform: 'translateY(' + -position * 100 + '%)',
WebkitTransform: 'translateY(' + -position * 100 + '%)',
transform: 'translateY(' + -position * 100 + '%)'
};
return h(
'span',
{ 'class': prefixCls + '-only', style: style, key: i },
[this.renderNumberList(position, prefixCls + '-only-unit')]
);
}
return h(
'span',
{ key: 'symbol', 'class': prefixCls + '-symbol' },
[num]
);
},
renderNumberElement: function renderNumberElement(prefixCls) {
var _this2 = this;
var sCount = this.sCount;
if (sCount && Number(sCount) % 1 === 0) {
return getNumberArray(sCount).map(function (num, i) {
return _this2.renderCurrentNumber(prefixCls, num, i);
}).reverse();
}
return sCount;
}
},
render: function render() {
var h = arguments[0];
var customizePrefixCls = this.prefixCls,
title = this.title,
_component = this.component,
Tag = _component === undefined ? 'sup' : _component,
displayComponent = this.displayComponent,
className = this.className;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('scroll-number', customizePrefixCls);
if (displayComponent) {
return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_6__["cloneElement"])(displayComponent, {
'class': prefixCls + '-custom-component'
});
}
var style = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getStyle"])(this, true);
// fix https://fb.me/react-unknown-prop
var restProps = Object(omit_js__WEBPACK_IMPORTED_MODULE_5__["default"])(this.$props, ['count', 'component', 'prefixCls', 'displayComponent']);
var newProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, restProps),
attrs: {
title: title
},
style: style,
'class': classnames__WEBPACK_IMPORTED_MODULE_1___default()(prefixCls, className)
};
// allow specify the border
// mock border-color by box-shadow for compatible with old usage:
// <Badge count={4} style={{ backgroundColor: '#fff', color: '#999', borderColor: '#d9d9d9' }} />
if (style && style.borderColor) {
newProps.style.boxShadow = '0 0 0 1px ' + style.borderColor + ' inset';
}
return h(
Tag,
newProps,
[this.renderNumberElement(prefixCls)]
);
}
});
/***/ }),
/***/ "./components/badge/index.js":
/*!***********************************!*\
!*** ./components/badge/index.js ***!
\***********************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Badge__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Badge */ "./components/badge/Badge.jsx");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
/* istanbul ignore next */
_Badge__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_1__["default"]);
Vue.component(_Badge__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Badge__WEBPACK_IMPORTED_MODULE_0__["default"]);
};
/* harmony default export */ __webpack_exports__["default"] = (_Badge__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/badge/style/index.js":
/*!*****************************************!*\
!*** ./components/badge/style/index.js ***!
\*****************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/badge/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/***/ }),
/***/ "./components/badge/style/index.less":
/*!*******************************************!*\
!*** ./components/badge/style/index.less ***!
\*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/base/index.js":
/*!**********************************!*\
!*** ./components/base/index.js ***!
\**********************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _util_antDirective__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/antDirective */ "./components/_util/antDirective.js");
var base = {};
var install = function install(Vue) {
base.Vue = Vue;
Vue.use(_util_antDirective__WEBPACK_IMPORTED_MODULE_0__["default"]);
};
base.install = install;
/* harmony default export */ __webpack_exports__["default"] = (base);
/***/ }),
/***/ "./components/base/style/index.js":
/*!****************************************!*\
!*** ./components/base/style/index.js ***!
\****************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
// empty file prevent babel-plugin-import error
/***/ }),
/***/ "./components/breadcrumb/Breadcrumb.jsx":
/*!**********************************************!*\
!*** ./components/breadcrumb/Breadcrumb.jsx ***!
\**********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _BreadcrumbItem__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./BreadcrumbItem */ "./components/breadcrumb/BreadcrumbItem.jsx");
/* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../menu */ "./components/menu/index.jsx");
var Route = _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].shape({
path: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
breadcrumbName: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
children: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array
}).loose;
var BreadcrumbProps = {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
routes: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(Route),
params: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
separator: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
itemRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
};
function getBreadcrumbName(route, params) {
if (!route.breadcrumbName) {
return null;
}
var paramsKeys = Object.keys(params).join('|');
var name = route.breadcrumbName.replace(new RegExp(':(' + paramsKeys + ')', 'g'), function (replacement, key) {
return params[key] || replacement;
});
return name;
}
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'ABreadcrumb',
props: BreadcrumbProps,
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__["ConfigConsumerProps"];
} }
},
methods: {
defaultItemRender: function defaultItemRender(_ref) {
var route = _ref.route,
params = _ref.params,
routes = _ref.routes,
paths = _ref.paths;
var h = this.$createElement;
var isLastItem = routes.indexOf(route) === routes.length - 1;
var name = getBreadcrumbName(route, params);
return isLastItem ? h('span', [name]) : h(
'a',
{
attrs: { href: '#/' + paths.join('/') }
},
[name]
);
},
getPath: function getPath(path, params) {
path = (path || '').replace(/^\//, '');
Object.keys(params).forEach(function (key) {
path = path.replace(':' + key, params[key]);
});
return path;
},
addChildPath: function addChildPath(paths, childPath, params) {
var originalPaths = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(paths));
var path = this.getPath(childPath, params);
if (path) {
originalPaths.push(path);
}
return originalPaths;
},
genForRoutes: function genForRoutes(_ref2) {
var _this = this;
var _ref2$routes = _ref2.routes,
routes = _ref2$routes === undefined ? [] : _ref2$routes,
_ref2$params = _ref2.params,
params = _ref2$params === undefined ? {} : _ref2$params,
separator = _ref2.separator,
_ref2$itemRender = _ref2.itemRender,
itemRender = _ref2$itemRender === undefined ? this.defaultItemRender : _ref2$itemRender;
var h = this.$createElement;
var paths = [];
return routes.map(function (route) {
var path = _this.getPath(route.path, params);
if (path) {
paths.push(path);
}
// generated overlay by route.children
var overlay = null;
if (route.children && route.children.length) {
overlay = h(_menu__WEBPACK_IMPORTED_MODULE_7__["default"], [route.children.map(function (child) {
return h(
_menu__WEBPACK_IMPORTED_MODULE_7__["default"].Item,
{ key: child.path || child.breadcrumbName },
[itemRender({
route: child,
params: params,
routes: routes,
paths: _this.addChildPath(paths, child.path, params),
h: _this.$createElement
})]
);
})]);
}
return h(
_BreadcrumbItem__WEBPACK_IMPORTED_MODULE_6__["default"],
{
attrs: {
overlay: overlay,
separator: separator
},
key: path || route.breadcrumbName
},
[itemRender({ route: route, params: params, routes: routes, paths: paths, h: _this.$createElement })]
);
});
}
},
render: function render() {
var h = arguments[0];
var crumbs = void 0;
var customizePrefixCls = this.prefixCls,
routes = this.routes,
_params = this.params,
params = _params === undefined ? {} : _params,
$slots = this.$slots,
$scopedSlots = this.$scopedSlots;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);
var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["filterEmpty"])($slots['default']);
var separator = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'separator');
var itemRender = this.itemRender || $scopedSlots.itemRender || this.defaultItemRender;
if (routes && routes.length > 0) {
// generated by route
crumbs = this.genForRoutes({
routes: routes,
params: params,
separator: separator,
itemRender: itemRender
});
} else if (children.length) {
crumbs = children.map(function (element, index) {
Object(_util_warning__WEBPACK_IMPORTED_MODULE_4__["default"])(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getSlotOptions"])(element).__ANT_BREADCRUMB_ITEM || Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getSlotOptions"])(element).__ANT_BREADCRUMB_SEPARATOR, 'Breadcrumb', "Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children");
return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(element, {
props: { separator: separator },
key: index
});
});
}
return h(
'div',
{ 'class': prefixCls },
[crumbs]
);
}
});
/***/ }),
/***/ "./components/breadcrumb/BreadcrumbItem.jsx":
/*!**************************************************!*\
!*** ./components/breadcrumb/BreadcrumbItem.jsx ***!
\**************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _dropdown_dropdown__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../dropdown/dropdown */ "./components/dropdown/dropdown.jsx");
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'ABreadcrumbItem',
__ANT_BREADCRUMB_ITEM: true,
props: {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
href: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
separator: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any.def('/'),
overlay: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any
},
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_2__["ConfigConsumerProps"];
} }
},
methods: {
/**
* if overlay is have
* Wrap a DropDown
*/
renderBreadcrumbNode: function renderBreadcrumbNode(breadcrumbItem, prefixCls) {
var h = this.$createElement;
var overlay = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getComponentFromProp"])(this, 'overlay');
if (overlay) {
return h(
_dropdown_dropdown__WEBPACK_IMPORTED_MODULE_3__["default"],
{
attrs: { overlay: overlay, placement: 'bottomCenter' }
},
[h(
'span',
{ 'class': prefixCls + '-overlay-link' },
[breadcrumbItem, h(_icon__WEBPACK_IMPORTED_MODULE_4__["default"], {
attrs: { type: 'down' }
})]
)]
);
}
return breadcrumbItem;
}
},
render: function render() {
var h = arguments[0];
var customizePrefixCls = this.prefixCls,
$slots = this.$slots;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);
var separator = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getComponentFromProp"])(this, 'separator');
var children = $slots['default'];
var link = void 0;
if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["hasProp"])(this, 'href')) {
link = h(
'a',
{ 'class': prefixCls + '-link' },
[children]
);
} else {
link = h(
'span',
{ 'class': prefixCls + '-link' },
[children]
);
}
// wrap to dropDown
link = this.renderBreadcrumbNode(link, prefixCls);
if (children) {
return h('span', [link, separator && separator !== '' && h(
'span',
{ 'class': prefixCls + '-separator' },
[separator]
)]);
}
return null;
}
});
/***/ }),
/***/ "./components/breadcrumb/BreadcrumbSeparator.jsx":
/*!*******************************************************!*\
!*** ./components/breadcrumb/BreadcrumbSeparator.jsx ***!
\*******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'ABreadcrumbSeparator',
__ANT_BREADCRUMB_SEPARATOR: true,
props: {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string
},
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_0__["ConfigConsumerProps"];
} }
},
render: function render() {
var h = arguments[0];
var customizePrefixCls = this.prefixCls,
$slots = this.$slots;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);
var children = $slots['default'];
return h(
'span',
{ 'class': prefixCls + '-separator' },
[children || '/']
);
}
});
/***/ }),
/***/ "./components/breadcrumb/index.js":
/*!****************************************!*\
!*** ./components/breadcrumb/index.js ***!
\****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Breadcrumb__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Breadcrumb */ "./components/breadcrumb/Breadcrumb.jsx");
/* harmony import */ var _BreadcrumbItem__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BreadcrumbItem */ "./components/breadcrumb/BreadcrumbItem.jsx");
/* harmony import */ var _BreadcrumbSeparator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./BreadcrumbSeparator */ "./components/breadcrumb/BreadcrumbSeparator.jsx");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
_Breadcrumb__WEBPACK_IMPORTED_MODULE_0__["default"].Item = _BreadcrumbItem__WEBPACK_IMPORTED_MODULE_1__["default"];
_Breadcrumb__WEBPACK_IMPORTED_MODULE_0__["default"].Separator = _BreadcrumbSeparator__WEBPACK_IMPORTED_MODULE_2__["default"];
/* istanbul ignore next */
_Breadcrumb__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_3__["default"]);
Vue.component(_Breadcrumb__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Breadcrumb__WEBPACK_IMPORTED_MODULE_0__["default"]);
Vue.component(_BreadcrumbItem__WEBPACK_IMPORTED_MODULE_1__["default"].name, _BreadcrumbItem__WEBPACK_IMPORTED_MODULE_1__["default"]);
Vue.component(_BreadcrumbSeparator__WEBPACK_IMPORTED_MODULE_2__["default"].name, _BreadcrumbSeparator__WEBPACK_IMPORTED_MODULE_2__["default"]);
};
/* harmony default export */ __webpack_exports__["default"] = (_Breadcrumb__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/breadcrumb/style/index.js":
/*!**********************************************!*\
!*** ./components/breadcrumb/style/index.js ***!
\**********************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/breadcrumb/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _menu_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../menu/style */ "./components/menu/style/index.js");
/* harmony import */ var _dropdown_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../dropdown/style */ "./components/dropdown/style/index.js");
/***/ }),
/***/ "./components/breadcrumb/style/index.less":
/*!************************************************!*\
!*** ./components/breadcrumb/style/index.less ***!
\************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/button/button-group.jsx":
/*!********************************************!*\
!*** ./components/button/button-group.jsx ***!
\********************************************/
/*! exports provided: ButtonGroupProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ButtonGroupProps", function() { return ButtonGroupProps; });
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
var ButtonGroupProps = {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
size: {
validator: function validator(value) {
return ['small', 'large', 'default'].includes(value);
}
}
};
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'AButtonGroup',
props: ButtonGroupProps,
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_3__["ConfigConsumerProps"];
} }
},
data: function data() {
return {
sizeMap: {
large: 'lg',
small: 'sm'
}
};
},
render: function render() {
var _classes;
var h = arguments[0];
var customizePrefixCls = this.prefixCls,
size = this.size,
$slots = this.$slots;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('btn-group', customizePrefixCls);
// large => lg
// small => sm
var sizeCls = '';
switch (size) {
case 'large':
sizeCls = 'lg';
break;
case 'small':
sizeCls = 'sm';
break;
default:
break;
}
var classes = (_classes = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classes, '' + prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classes, prefixCls + '-' + sizeCls, sizeCls), _classes);
return h(
'div',
{ 'class': classes },
[Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["filterEmpty"])($slots['default'])]
);
}
});
/***/ }),
/***/ "./components/button/button.jsx":
/*!**************************************!*\
!*** ./components/button/button.jsx ***!
\**************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_wave__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/wave */ "./components/_util/wave.jsx");
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
/* harmony import */ var _buttonTypes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./buttonTypes */ "./components/button/buttonTypes.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
var rxTwoCNChar = /^[\u4e00-\u9fa5]{2}$/;
var isTwoCNChar = rxTwoCNChar.test.bind(rxTwoCNChar);
var props = Object(_buttonTypes__WEBPACK_IMPORTED_MODULE_5__["default"])();
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'AButton',
inheritAttrs: false,
__ANT_BUTTON: true,
props: props,
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_7__["ConfigConsumerProps"];
} }
},
data: function data() {
return {
sizeMap: {
large: 'lg',
small: 'sm'
},
sLoading: !!this.loading,
hasTwoCNChar: false
};
},
computed: {
classes: function classes() {
var _ref;
var customizePrefixCls = this.prefixCls,
type = this.type,
shape = this.shape,
size = this.size,
hasTwoCNChar = this.hasTwoCNChar,
sLoading = this.sLoading,
ghost = this.ghost,
block = this.block,
icon = this.icon,
$slots = this.$slots;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('btn', customizePrefixCls);
var autoInsertSpace = this.configProvider.autoInsertSpaceInButton !== false;
// large => lg
// small => sm
var sizeCls = '';
switch (size) {
case 'large':
sizeCls = 'lg';
break;
case 'small':
sizeCls = 'sm';
break;
default:
break;
}
var iconType = sLoading ? 'loading' : icon;
var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["filterEmpty"])($slots['default']);
return _ref = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref, '' + prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref, prefixCls + '-' + type, type), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref, prefixCls + '-' + shape, shape), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref, prefixCls + '-' + sizeCls, sizeCls), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref, prefixCls + '-icon-only', children.length === 0 && iconType), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref, prefixCls + '-loading', sLoading), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref, prefixCls + '-background-ghost', ghost || type === 'ghost'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref, prefixCls + '-two-chinese-chars', hasTwoCNChar && autoInsertSpace), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref, prefixCls + '-block', block), _ref;
}
},
watch: {
loading: function loading(val, preVal) {
var _this = this;
if (preVal && typeof preVal !== 'boolean') {
clearTimeout(this.delayTimeout);
}
if (val && typeof val !== 'boolean' && val.delay) {
this.delayTimeout = setTimeout(function () {
_this.sLoading = !!val;
}, val.delay);
} else {
this.sLoading = !!val;
}
}
},
mounted: function mounted() {
this.fixTwoCNChar();
},
updated: function updated() {
this.fixTwoCNChar();
},
beforeDestroy: function beforeDestroy() {
// if (this.timeout) {
// clearTimeout(this.timeout)
// }
if (this.delayTimeout) {
clearTimeout(this.delayTimeout);
}
},
methods: {
fixTwoCNChar: function fixTwoCNChar() {
// Fix for HOC usage like <FormatMessage />
var node = this.$refs.buttonNode;
if (!node) {
return;
}
var buttonText = node.textContent;
if (this.isNeedInserted() && isTwoCNChar(buttonText)) {
if (!this.hasTwoCNChar) {
this.hasTwoCNChar = true;
}
} else if (this.hasTwoCNChar) {
this.hasTwoCNChar = false;
}
},
handleClick: function handleClick(event) {
var sLoading = this.$data.sLoading;
if (sLoading) {
return;
}
this.$emit('click', event);
},
insertSpace: function insertSpace(child, needInserted) {
var h = this.$createElement;
var SPACE = needInserted ? ' ' : '';
if (typeof child.text === 'string') {
var text = child.text.trim();
if (isTwoCNChar(text)) {
text = text.split('').join(SPACE);
}
return h('span', [text]);
}
return child;
},
isNeedInserted: function isNeedInserted() {
var $slots = this.$slots,
type = this.type;
var icon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'icon');
return $slots['default'] && $slots['default'].length === 1 && !icon && type !== 'link';
}
},
render: function render() {
var _this2 = this;
var h = arguments[0];
var type = this.type,
htmlType = this.htmlType,
classes = this.classes,
disabled = this.disabled,
handleClick = this.handleClick,
sLoading = this.sLoading,
$slots = this.$slots,
$attrs = this.$attrs;
var icon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'icon');
var buttonProps = {
attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, $attrs, {
disabled: disabled
}),
'class': classes,
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this), {
click: handleClick
})
};
var iconType = sLoading ? 'loading' : icon;
var iconNode = iconType ? h(_icon__WEBPACK_IMPORTED_MODULE_4__["default"], {
attrs: { type: iconType }
}) : null;
var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["filterEmpty"])($slots['default']);
var autoInsertSpace = this.configProvider.autoInsertSpaceInButton !== false;
var kids = children.map(function (child) {
return _this2.insertSpace(child, _this2.isNeedInserted() && autoInsertSpace);
});
if ($attrs.href !== undefined) {
return h(
'a',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([buttonProps, { ref: 'buttonNode' }]),
[iconNode, kids]
);
}
var buttonNode = h(
'button',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([buttonProps, { ref: 'buttonNode', attrs: { type: htmlType || 'button' }
}]),
[iconNode, kids]
);
if (type === 'link') {
return buttonNode;
}
return h(_util_wave__WEBPACK_IMPORTED_MODULE_3__["default"], [buttonNode]);
}
});
/***/ }),
/***/ "./components/button/buttonTypes.js":
/*!******************************************!*\
!*** ./components/button/buttonTypes.js ***!
\******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony default export */ __webpack_exports__["default"] = (function () {
return {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
type: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
htmlType: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['button', 'submit', 'reset']).def('button'),
icon: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
shape: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['circle', 'circle-outline', 'round']),
size: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['small', 'large', 'default']).def('default'),
loading: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object]),
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
ghost: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
block: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool
};
});
/***/ }),
/***/ "./components/button/index.js":
/*!************************************!*\
!*** ./components/button/index.js ***!
\************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./button */ "./components/button/button.jsx");
/* harmony import */ var _button_group__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./button-group */ "./components/button/button-group.jsx");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
_button__WEBPACK_IMPORTED_MODULE_0__["default"].Group = _button_group__WEBPACK_IMPORTED_MODULE_1__["default"];
/* istanbul ignore next */
_button__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_2__["default"]);
Vue.component(_button__WEBPACK_IMPORTED_MODULE_0__["default"].name, _button__WEBPACK_IMPORTED_MODULE_0__["default"]);
Vue.component(_button_group__WEBPACK_IMPORTED_MODULE_1__["default"].name, _button_group__WEBPACK_IMPORTED_MODULE_1__["default"]);
};
/* harmony default export */ __webpack_exports__["default"] = (_button__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/button/style/index.js":
/*!******************************************!*\
!*** ./components/button/style/index.js ***!
\******************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/button/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/***/ }),
/***/ "./components/button/style/index.less":
/*!********************************************!*\
!*** ./components/button/style/index.less ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/calendar/Header.jsx":
/*!****************************************!*\
!*** ./components/calendar/Header.jsx ***!
\****************************************/
/*! exports provided: HeaderProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HeaderProps", function() { return HeaderProps; });
/* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/slicedToArray */ "./node_modules/babel-runtime/helpers/slicedToArray.js");
/* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../select */ "./components/select/index.jsx");
/* harmony import */ var _radio__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../radio */ "./components/radio/index.js");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
var Option = _select__WEBPACK_IMPORTED_MODULE_1__["default"].Option;
function getMonthsLocale(value) {
var current = value.clone();
var localeData = value.localeData();
var months = [];
for (var i = 0; i < 12; i++) {
current.month(i);
months.push(localeData.monthsShort(current));
}
return months;
}
var HeaderProps = {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
fullscreen: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].boolean,
yearSelectOffset: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
yearSelectTotal: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
type: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
// onValueChange: PropTypes.(value: moment.Moment) => void,
// onTypeChange: PropTypes.(type: string) => void,
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
validRange: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
headerRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func
};
/* harmony default export */ __webpack_exports__["default"] = ({
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["initDefaultProps"])(HeaderProps, {
yearSelectOffset: 10,
yearSelectTotal: 20
}),
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__["ConfigConsumerProps"];
} }
},
// private calenderHeaderNode: HTMLDivElement;
methods: {
getYearSelectElement: function getYearSelectElement(prefixCls, year) {
var _this = this;
var h = this.$createElement;
var yearSelectOffset = this.yearSelectOffset,
yearSelectTotal = this.yearSelectTotal,
_locale = this.locale,
locale = _locale === undefined ? {} : _locale,
fullscreen = this.fullscreen,
validRange = this.validRange;
var start = year - yearSelectOffset;
var end = start + yearSelectTotal;
if (validRange) {
start = validRange[0].get('year');
end = validRange[1].get('year') + 1;
}
var suffix = locale.year === '年' ? '年' : '';
var options = [];
for (var index = start; index < end; index++) {
options.push(h(
Option,
{ key: '' + index },
[index + suffix]
));
}
return h(
_select__WEBPACK_IMPORTED_MODULE_1__["default"],
{
attrs: {
size: fullscreen ? 'default' : 'small',
dropdownMatchSelectWidth: false,
value: String(year),
getPopupContainer: function getPopupContainer() {
return _this.getCalenderHeaderNode();
}
},
'class': prefixCls + '-year-select',
on: {
'change': this.onYearChange
}
},
[options]
);
},
getMonthSelectElement: function getMonthSelectElement(prefixCls, month, months) {
var _this2 = this;
var h = this.$createElement;
var fullscreen = this.fullscreen,
validRange = this.validRange,
value = this.value;
var options = [];
var start = 0;
var end = 12;
if (validRange) {
var _validRange = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(validRange, 2),
rangeStart = _validRange[0],
rangeEnd = _validRange[1];
var currentYear = value.get('year');
if (rangeEnd.get('year') === currentYear) {
end = rangeEnd.get('month') + 1;
}
if (rangeStart.get('year') === currentYear) {
start = rangeStart.get('month');
}
}
for (var index = start; index < end; index++) {
options.push(h(
Option,
{ key: '' + index },
[months[index]]
));
}
return h(
_select__WEBPACK_IMPORTED_MODULE_1__["default"],
{
attrs: {
size: fullscreen ? 'default' : 'small',
dropdownMatchSelectWidth: false,
value: String(month),
getPopupContainer: function getPopupContainer() {
return _this2.getCalenderHeaderNode();
}
},
'class': prefixCls + '-month-select', on: {
'change': this.onMonthChange
}
},
[options]
);
},
onYearChange: function onYearChange(year) {
var value = this.value,
validRange = this.validRange;
var newValue = value.clone();
newValue.year(parseInt(year, 10));
// switch the month so that it remains within range when year changes
if (validRange) {
var _validRange2 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(validRange, 2),
start = _validRange2[0],
end = _validRange2[1];
var newYear = newValue.get('year');
var newMonth = newValue.get('month');
if (newYear === end.get('year') && newMonth > end.get('month')) {
newValue.month(end.get('month'));
}
if (newYear === start.get('year') && newMonth < start.get('month')) {
newValue.month(start.get('month'));
}
}
this.$emit('valueChange', newValue);
},
onMonthChange: function onMonthChange(month) {
var newValue = this.value.clone();
newValue.month(parseInt(month, 10));
this.$emit('valueChange', newValue);
},
onInternalTypeChange: function onInternalTypeChange(e) {
this.onTypeChange(e.target.value);
},
onTypeChange: function onTypeChange(val) {
this.$emit('typeChange', val);
},
getCalenderHeaderNode: function getCalenderHeaderNode() {
return this.$refs.calenderHeaderNode;
},
getMonthYearSelections: function getMonthYearSelections(getPrefixCls) {
var _$props = this.$props,
customizePrefixCls = _$props.prefixCls,
type = _$props.type,
value = _$props.value;
var prefixCls = getPrefixCls('fullcalendar', customizePrefixCls);
var yearReactNode = this.getYearSelectElement(prefixCls, value.year());
var monthReactNode = type === 'month' ? this.getMonthSelectElement(prefixCls, value.month(), getMonthsLocale(value)) : null;
return {
yearReactNode: yearReactNode,
monthReactNode: monthReactNode
};
},
getTypeSwitch: function getTypeSwitch() {
var h = this.$createElement;
var _$props2 = this.$props,
_$props2$locale = _$props2.locale,
locale = _$props2$locale === undefined ? {} : _$props2$locale,
type = _$props2.type,
fullscreen = _$props2.fullscreen;
var size = fullscreen ? 'default' : 'small';
return h(
_radio__WEBPACK_IMPORTED_MODULE_2__["Group"],
{
on: {
'change': this.onInternalTypeChange
},
attrs: { value: type, size: size }
},
[h(
_radio__WEBPACK_IMPORTED_MODULE_2__["Button"],
{
attrs: { value: 'month' }
},
[locale.month]
), h(
_radio__WEBPACK_IMPORTED_MODULE_2__["Button"],
{
attrs: { value: 'year' }
},
[locale.year]
)]
);
},
onValueChange: function onValueChange() {
this.$emit.apply(this, ['valueChange'].concat(Array.prototype.slice.call(arguments)));
},
headerRenderCustom: function headerRenderCustom(headerRender) {
var _$props3 = this.$props,
type = _$props3.type,
value = _$props3.value;
return headerRender({
value: value,
type: type || 'month',
onChange: this.onValueChange,
onTypeChange: this.onTypeChange
});
}
},
render: function render() {
var h = arguments[0];
var customizePrefixCls = this.prefixCls,
headerRender = this.headerRender;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('fullcalendar', customizePrefixCls);
var typeSwitch = this.getTypeSwitch();
var _getMonthYearSelectio = this.getMonthYearSelections(getPrefixCls),
yearReactNode = _getMonthYearSelectio.yearReactNode,
monthReactNode = _getMonthYearSelectio.monthReactNode;
return headerRender ? this.headerRenderCustom(headerRender) : h(
'div',
{ 'class': prefixCls + '-header', ref: 'calenderHeaderNode' },
[yearReactNode, monthReactNode, typeSwitch]
);
}
});
/***/ }),
/***/ "./components/calendar/index.jsx":
/*!***************************************!*\
!*** ./components/calendar/index.jsx ***!
\***************************************/
/*! exports provided: CalendarMode, CalendarProps, HeaderProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CalendarMode", function() { return CalendarMode; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CalendarProps", function() { return CalendarProps; });
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/slicedToArray */ "./node_modules/babel-runtime/helpers/slicedToArray.js");
/* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! moment */ "moment");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _vc_calendar_src_FullCalendar__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../vc-calendar/src/FullCalendar */ "./components/vc-calendar/src/FullCalendar.jsx");
/* harmony import */ var _Header__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Header */ "./components/calendar/Header.jsx");
/* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./components/locale-provider/LocaleReceiver.jsx");
/* harmony import */ var _util_interopDefault__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/interopDefault */ "./components/_util/interopDefault.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _locale_en_US__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./locale/en_US */ "./components/calendar/locale/en_US.js");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
/* harmony import */ var _util_moment_util__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../_util/moment-util */ "./components/_util/moment-util.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HeaderProps", function() { return _Header__WEBPACK_IMPORTED_MODULE_7__["HeaderProps"]; });
function noop() {
return null;
}
function zerofixed(v) {
if (v < 10) {
return '0' + v;
}
return '' + v;
}
function isMomentArray(value) {
return Array.isArray(value) && !!value.find(function (val) {
return moment__WEBPACK_IMPORTED_MODULE_5__["isMoment"](val);
});
}
var CalendarMode = _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['month', 'year']);
var CalendarProps = function CalendarProps() {
return {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
value: _util_moment_util__WEBPACK_IMPORTED_MODULE_13__["TimeType"],
defaultValue: _util_moment_util__WEBPACK_IMPORTED_MODULE_13__["TimeType"],
mode: CalendarMode,
fullscreen: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
// dateCellRender: PropTypes.func,
// monthCellRender: PropTypes.func,
// dateFullCellRender: PropTypes.func,
// monthFullCellRender: PropTypes.func,
locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
// onPanelChange?: (date?: moment.Moment, mode?: CalendarMode) => void;
// onSelect?: (date?: moment.Moment) => void;
disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
validRange: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].custom(isMomentArray),
headerRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
valueFormat: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string
};
};
var Calendar = {
name: 'ACalendar',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["initDefaultProps"])(CalendarProps(), {
locale: {},
fullscreen: true
}),
model: {
prop: 'value',
event: 'change'
},
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_10__["ConfigConsumerProps"];
} }
},
data: function data() {
var value = this.value,
defaultValue = this.defaultValue,
valueFormat = this.valueFormat;
var sValue = value || defaultValue || Object(_util_interopDefault__WEBPACK_IMPORTED_MODULE_9__["default"])(moment__WEBPACK_IMPORTED_MODULE_5__)();
Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_13__["checkValidate"])('Calendar', defaultValue, 'defaultValue', valueFormat);
Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_13__["checkValidate"])('Calendar', value, 'value', valueFormat);
this._sPrefixCls = undefined;
return {
sValue: Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_13__["stringToMoment"])(sValue, valueFormat),
sMode: this.mode || 'month'
};
},
watch: {
value: function value(val) {
Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_13__["checkValidate"])('Calendar', val, 'value', this.valueFormat);
this.setState({
sValue: Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_13__["stringToMoment"])(val, this.valueFormat)
});
},
mode: function mode(val) {
this.setState({
sMode: val
});
}
},
methods: {
onHeaderValueChange: function onHeaderValueChange(value) {
this.setValue(value, 'changePanel');
},
onHeaderTypeChange: function onHeaderTypeChange(mode) {
this.sMode = mode;
this.onPanelChange(this.sValue, mode);
},
onPanelChange: function onPanelChange(value, mode) {
var val = this.valueFormat ? Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_13__["momentToString"])(value, this.valueFormat) : value;
this.$emit('panelChange', val, mode);
if (value !== this.sValue) {
this.$emit('change', val);
}
},
onSelect: function onSelect(value) {
this.setValue(value, 'select');
},
setValue: function setValue(value, way) {
var prevValue = this.value ? Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_13__["stringToMoment"])(this.value, this.valueFormat) : this.sValue;
var mode = this.sMode,
valueFormat = this.valueFormat;
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["hasProp"])(this, 'value')) {
this.setState({ sValue: value });
}
if (way === 'select') {
if (prevValue && prevValue.month() !== value.month()) {
this.onPanelChange(value, mode);
}
this.$emit('select', valueFormat ? Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_13__["momentToString"])(value, valueFormat) : value);
} else if (way === 'changePanel') {
this.onPanelChange(value, mode);
}
},
getDateRange: function getDateRange(validRange, disabledDate) {
return function (current) {
if (!current) {
return false;
}
var _validRange = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(validRange, 2),
startDate = _validRange[0],
endDate = _validRange[1];
var inRange = !current.isBetween(startDate, endDate, 'days', '[]');
if (disabledDate) {
return disabledDate(current) || inRange;
}
return inRange;
};
},
getDefaultLocale: function getDefaultLocale() {
var result = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _locale_en_US__WEBPACK_IMPORTED_MODULE_11__["default"], this.$props.locale);
result.lang = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, result.lang, (this.$props.locale || {}).lang);
return result;
},
monthCellRender2: function monthCellRender2(value) {
var h = this.$createElement;
var _sPrefixCls = this._sPrefixCls,
$scopedSlots = this.$scopedSlots;
var monthCellRender = this.monthCellRender || $scopedSlots.monthCellRender || noop;
return h(
'div',
{ 'class': _sPrefixCls + '-month' },
[h(
'div',
{ 'class': _sPrefixCls + '-value' },
[value.localeData().monthsShort(value)]
), h(
'div',
{ 'class': _sPrefixCls + '-content' },
[monthCellRender(value)]
)]
);
},
dateCellRender2: function dateCellRender2(value) {
var h = this.$createElement;
var _sPrefixCls = this._sPrefixCls,
$scopedSlots = this.$scopedSlots;
var dateCellRender = this.dateCellRender || $scopedSlots.dateCellRender || noop;
return h(
'div',
{ 'class': _sPrefixCls + '-date' },
[h(
'div',
{ 'class': _sPrefixCls + '-value' },
[zerofixed(value.date())]
), h(
'div',
{ 'class': _sPrefixCls + '-content' },
[dateCellRender(value)]
)]
);
},
renderCalendar: function renderCalendar(locale, localeCode) {
var h = this.$createElement;
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this);
var value = this.sValue,
mode = this.sMode,
$scopedSlots = this.$scopedSlots;
if (value && localeCode) {
value.locale(localeCode);
}
var customizePrefixCls = props.prefixCls,
fullscreen = props.fullscreen,
dateFullCellRender = props.dateFullCellRender,
monthFullCellRender = props.monthFullCellRender;
var headerRender = this.headerRender || $scopedSlots.headerRender;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('fullcalendar', customizePrefixCls);
// To support old version react.
// Have to add prefixCls on the instance.
// https://github.com/facebook/react/issues/12397
this._sPrefixCls = prefixCls;
var cls = '';
if (fullscreen) {
cls += ' ' + prefixCls + '-fullscreen';
}
var monthCellRender = monthFullCellRender || $scopedSlots.monthFullCellRender || this.monthCellRender2;
var dateCellRender = dateFullCellRender || $scopedSlots.dateFullCellRender || this.dateCellRender2;
var disabledDate = props.disabledDate;
if (props.validRange) {
disabledDate = this.getDateRange(props.validRange, disabledDate);
}
var fullCalendarProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
Select: {},
locale: locale.lang,
type: mode === 'year' ? 'month' : 'date',
prefixCls: prefixCls,
showHeader: false,
value: value,
monthCellRender: monthCellRender,
dateCellRender: dateCellRender,
disabledDate: disabledDate
}),
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this), {
select: this.onSelect
})
};
return h(
'div',
{ 'class': cls },
[h(_Header__WEBPACK_IMPORTED_MODULE_7__["default"], {
attrs: {
fullscreen: fullscreen,
type: mode,
headerRender: headerRender,
value: value,
locale: locale.lang,
prefixCls: prefixCls,
validRange: props.validRange
},
on: {
'typeChange': this.onHeaderTypeChange,
'valueChange': this.onHeaderValueChange
}
}), h(_vc_calendar_src_FullCalendar__WEBPACK_IMPORTED_MODULE_6__["default"], fullCalendarProps)]
);
}
},
render: function render() {
var h = arguments[0];
return h(_locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_8__["default"], {
attrs: {
componentName: 'Calendar',
defaultLocale: this.getDefaultLocale
},
scopedSlots: { 'default': this.renderCalendar }
});
}
};
/* istanbul ignore next */
Calendar.install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_12__["default"]);
Vue.component(Calendar.name, Calendar);
};
/* harmony default export */ __webpack_exports__["default"] = (Calendar);
/***/ }),
/***/ "./components/calendar/locale/en_US.js":
/*!*********************************************!*\
!*** ./components/calendar/locale/en_US.js ***!
\*********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _date_picker_locale_en_US__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../date-picker/locale/en_US */ "./components/date-picker/locale/en_US.js");
/* harmony default export */ __webpack_exports__["default"] = (_date_picker_locale_en_US__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/calendar/style/index.js":
/*!********************************************!*\
!*** ./components/calendar/style/index.js ***!
\********************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/calendar/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _select_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../select/style */ "./components/select/style/index.js");
/* harmony import */ var _radio_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../radio/style */ "./components/radio/style/index.js");
// style dependencies
/***/ }),
/***/ "./components/calendar/style/index.less":
/*!**********************************************!*\
!*** ./components/calendar/style/index.less ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/card/Card.jsx":
/*!**********************************!*\
!*** ./components/card/Card.jsx ***!
\**********************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
/* harmony import */ var _tabs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../tabs */ "./components/tabs/index.js");
/* harmony import */ var _row__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../row */ "./components/row/index.js");
/* harmony import */ var _col__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../col */ "./components/col/index.js");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
var TabPane = _tabs__WEBPACK_IMPORTED_MODULE_4__["default"].TabPane;
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'ACard',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_9__["default"]],
props: {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
title: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
extra: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
bordered: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool.def(true),
bodyStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].object,
headStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].object,
loading: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool.def(false),
hoverable: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool.def(false),
type: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
size: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].oneOf(['default', 'small']),
actions: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
tabList: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].array,
tabProps: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].object,
tabBarExtraContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
activeTabKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
defaultActiveTabKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string
},
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_10__["ConfigConsumerProps"];
} }
},
data: function data() {
return {
widerPadding: false
};
},
methods: {
getAction: function getAction(actions) {
var h = this.$createElement;
var actionList = actions.map(function (action, index) {
return h(
'li',
{ style: { width: 100 / actions.length + '%' }, key: 'action-' + index },
[h('span', [action])]
);
});
return actionList;
},
onTabChange: function onTabChange(key) {
this.$emit('tabChange', key);
},
isContainGrid: function isContainGrid() {
var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
var containGrid = void 0;
obj.forEach(function (element) {
if (element && Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getSlotOptions"])(element).__ANT_CARD_GRID) {
containGrid = true;
}
});
return containGrid;
}
},
render: function render() {
var _classString, _extends2;
var h = arguments[0];
var _$props = this.$props,
customizePrefixCls = _$props.prefixCls,
_$props$headStyle = _$props.headStyle,
headStyle = _$props$headStyle === undefined ? {} : _$props$headStyle,
_$props$bodyStyle = _$props.bodyStyle,
bodyStyle = _$props$bodyStyle === undefined ? {} : _$props$bodyStyle,
loading = _$props.loading,
_$props$bordered = _$props.bordered,
bordered = _$props$bordered === undefined ? true : _$props$bordered,
_$props$size = _$props.size,
size = _$props$size === undefined ? 'default' : _$props$size,
type = _$props.type,
tabList = _$props.tabList,
_$props$tabProps = _$props.tabProps,
tabProps = _$props$tabProps === undefined ? {} : _$props$tabProps,
hoverable = _$props.hoverable,
activeTabKey = _$props.activeTabKey,
defaultActiveTabKey = _$props.defaultActiveTabKey;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('card', customizePrefixCls);
var $slots = this.$slots,
$scopedSlots = this.$scopedSlots;
var tabBarExtraContent = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getComponentFromProp"])(this, 'tabBarExtraContent');
var classString = (_classString = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classString, '' + prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classString, prefixCls + '-loading', loading), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classString, prefixCls + '-bordered', bordered), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classString, prefixCls + '-hoverable', !!hoverable), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classString, prefixCls + '-contain-grid', this.isContainGrid($slots['default'])), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classString, prefixCls + '-contain-tabs', tabList && tabList.length), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classString, prefixCls + '-' + size, size !== 'default'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classString, prefixCls + '-type-' + type, !!type), _classString);
var loadingBlockStyle = bodyStyle.padding === 0 || bodyStyle.padding === '0px' ? { padding: 24 } : undefined;
var loadingBlock = h(
'div',
{ 'class': prefixCls + '-loading-content', style: loadingBlockStyle },
[h(
_row__WEBPACK_IMPORTED_MODULE_5__["default"],
{
attrs: { gutter: 8 }
},
[h(
_col__WEBPACK_IMPORTED_MODULE_6__["default"],
{
attrs: { span: 22 }
},
[h('div', { 'class': prefixCls + '-loading-block' })]
)]
), h(
_row__WEBPACK_IMPORTED_MODULE_5__["default"],
{
attrs: { gutter: 8 }
},
[h(
_col__WEBPACK_IMPORTED_MODULE_6__["default"],
{
attrs: { span: 8 }
},
[h('div', { 'class': prefixCls + '-loading-block' })]
), h(
_col__WEBPACK_IMPORTED_MODULE_6__["default"],
{
attrs: { span: 15 }
},
[h('div', { 'class': prefixCls + '-loading-block' })]
)]
), h(
_row__WEBPACK_IMPORTED_MODULE_5__["default"],
{
attrs: { gutter: 8 }
},
[h(
_col__WEBPACK_IMPORTED_MODULE_6__["default"],
{
attrs: { span: 6 }
},
[h('div', { 'class': prefixCls + '-loading-block' })]
), h(
_col__WEBPACK_IMPORTED_MODULE_6__["default"],
{
attrs: { span: 18 }
},
[h('div', { 'class': prefixCls + '-loading-block' })]
)]
), h(
_row__WEBPACK_IMPORTED_MODULE_5__["default"],
{
attrs: { gutter: 8 }
},
[h(
_col__WEBPACK_IMPORTED_MODULE_6__["default"],
{
attrs: { span: 13 }
},
[h('div', { 'class': prefixCls + '-loading-block' })]
), h(
_col__WEBPACK_IMPORTED_MODULE_6__["default"],
{
attrs: { span: 9 }
},
[h('div', { 'class': prefixCls + '-loading-block' })]
)]
), h(
_row__WEBPACK_IMPORTED_MODULE_5__["default"],
{
attrs: { gutter: 8 }
},
[h(
_col__WEBPACK_IMPORTED_MODULE_6__["default"],
{
attrs: { span: 4 }
},
[h('div', { 'class': prefixCls + '-loading-block' })]
), h(
_col__WEBPACK_IMPORTED_MODULE_6__["default"],
{
attrs: { span: 3 }
},
[h('div', { 'class': prefixCls + '-loading-block' })]
), h(
_col__WEBPACK_IMPORTED_MODULE_6__["default"],
{
attrs: { span: 16 }
},
[h('div', { 'class': prefixCls + '-loading-block' })]
)]
)]
);
var hasActiveTabKey = activeTabKey !== undefined;
var tabsProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
size: 'large'
}, tabProps, (_extends2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_extends2, hasActiveTabKey ? 'activeKey' : 'defaultActiveKey', hasActiveTabKey ? activeTabKey : defaultActiveTabKey), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_extends2, 'tabBarExtraContent', tabBarExtraContent), _extends2)),
on: {
change: this.onTabChange
},
'class': prefixCls + '-head-tabs'
};
var head = void 0;
var tabs = tabList && tabList.length ? h(
_tabs__WEBPACK_IMPORTED_MODULE_4__["default"],
tabsProps,
[tabList.map(function (item) {
var temp = item.tab,
_item$scopedSlots = item.scopedSlots,
scopedSlots = _item$scopedSlots === undefined ? {} : _item$scopedSlots;
var name = scopedSlots.tab;
var tab = temp !== undefined ? temp : $scopedSlots[name] ? $scopedSlots[name](item) : null;
return h(TabPane, {
attrs: { tab: tab, disabled: item.disabled },
key: item.key });
})]
) : null;
var titleDom = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getComponentFromProp"])(this, 'title');
var extraDom = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getComponentFromProp"])(this, 'extra');
if (titleDom || extraDom || tabs) {
head = h(
'div',
{ 'class': prefixCls + '-head', style: headStyle },
[h(
'div',
{ 'class': prefixCls + '-head-wrapper' },
[titleDom && h(
'div',
{ 'class': prefixCls + '-head-title' },
[titleDom]
), extraDom && h(
'div',
{ 'class': prefixCls + '-extra' },
[extraDom]
)]
), tabs]
);
}
var children = $slots['default'];
var cover = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getComponentFromProp"])(this, 'cover');
var coverDom = cover ? h(
'div',
{ 'class': prefixCls + '-cover' },
[cover]
) : null;
var body = h(
'div',
{ 'class': prefixCls + '-body', style: bodyStyle },
[loading ? loadingBlock : children]
);
var actions = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["filterEmpty"])(this.$slots.actions);
var actionDom = actions && actions.length ? h(
'ul',
{ 'class': prefixCls + '-actions' },
[this.getAction(actions)]
) : null;
return h(
'div',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
'class': classString,
ref: 'cardContainerRef'
}, { on: Object(omit_js__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getListeners"])(this), ['tabChange', 'tab-change']) }]),
[head, coverDom, children ? body : null, actionDom]
);
}
});
/***/ }),
/***/ "./components/card/Grid.jsx":
/*!**********************************!*\
!*** ./components/card/Grid.jsx ***!
\**********************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'ACardGrid',
__ANT_CARD_GRID: true,
props: {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
hoverable: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool
},
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_3__["ConfigConsumerProps"];
} }
},
render: function render() {
var _classString;
var h = arguments[0];
var _$props = this.$props,
customizePrefixCls = _$props.prefixCls,
_$props$hoverable = _$props.hoverable,
hoverable = _$props$hoverable === undefined ? true : _$props$hoverable;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('card', customizePrefixCls);
var classString = (_classString = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls + '-grid', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls + '-grid-hoverable', hoverable), _classString);
return h(
'div',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this) }, { 'class': classString }]),
[this.$slots['default']]
);
}
});
/***/ }),
/***/ "./components/card/Meta.jsx":
/*!**********************************!*\
!*** ./components/card/Meta.jsx ***!
\**********************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'ACardMeta',
props: {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
title: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
description: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any
},
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__["ConfigConsumerProps"];
} }
},
render: function render() {
var h = arguments[0];
var customizePrefixCls = this.$props.prefixCls;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('card', customizePrefixCls);
var classString = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, prefixCls + '-meta', true);
var avatar = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'avatar');
var title = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'title');
var description = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'description');
var avatarDom = avatar ? h(
'div',
{ 'class': prefixCls + '-meta-avatar' },
[avatar]
) : null;
var titleDom = title ? h(
'div',
{ 'class': prefixCls + '-meta-title' },
[title]
) : null;
var descriptionDom = description ? h(
'div',
{ 'class': prefixCls + '-meta-description' },
[description]
) : null;
var MetaDetail = titleDom || descriptionDom ? h(
'div',
{ 'class': prefixCls + '-meta-detail' },
[titleDom, descriptionDom]
) : null;
return h(
'div',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this) }, { 'class': classString }]),
[avatarDom, MetaDetail]
);
}
});
/***/ }),
/***/ "./components/card/index.js":
/*!**********************************!*\
!*** ./components/card/index.js ***!
\**********************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Card__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Card */ "./components/card/Card.jsx");
/* harmony import */ var _Meta__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Meta */ "./components/card/Meta.jsx");
/* harmony import */ var _Grid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Grid */ "./components/card/Grid.jsx");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
_Card__WEBPACK_IMPORTED_MODULE_0__["default"].Meta = _Meta__WEBPACK_IMPORTED_MODULE_1__["default"];
_Card__WEBPACK_IMPORTED_MODULE_0__["default"].Grid = _Grid__WEBPACK_IMPORTED_MODULE_2__["default"];
/* istanbul ignore next */
_Card__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_3__["default"]);
Vue.component(_Card__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Card__WEBPACK_IMPORTED_MODULE_0__["default"]);
Vue.component(_Meta__WEBPACK_IMPORTED_MODULE_1__["default"].name, _Meta__WEBPACK_IMPORTED_MODULE_1__["default"]);
Vue.component(_Grid__WEBPACK_IMPORTED_MODULE_2__["default"].name, _Grid__WEBPACK_IMPORTED_MODULE_2__["default"]);
};
/* harmony default export */ __webpack_exports__["default"] = (_Card__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/card/style/index.js":
/*!****************************************!*\
!*** ./components/card/style/index.js ***!
\****************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/card/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _tabs_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../tabs/style */ "./components/tabs/style/index.js");
/* harmony import */ var _row_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../row/style */ "./components/row/style/index.js");
/* harmony import */ var _col_style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../col/style */ "./components/col/style/index.js");
// style dependencies
/***/ }),
/***/ "./components/card/style/index.less":
/*!******************************************!*\
!*** ./components/card/style/index.less ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/carousel/index.jsx":
/*!***************************************!*\
!*** ./components/carousel/index.jsx ***!
\***************************************/
/*! exports provided: CarouselEffect, CarouselProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CarouselEffect", function() { return CarouselEffect; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CarouselProps", function() { return CarouselProps; });
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/debounce */ "./node_modules/lodash/debounce.js");
/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
/* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_9__);
// matchMedia polyfill for
// https://github.com/WickyNilliams/enquire.js/issues/82
if (typeof window !== 'undefined') {
var matchMediaPolyfill = function matchMediaPolyfill(mediaQuery) {
return {
media: mediaQuery,
matches: false,
addListener: function addListener() {},
removeListener: function removeListener() {}
};
};
// ref: https://github.com/ant-design/ant-design/issues/18774
if (!window.matchMedia) window.matchMedia = matchMediaPolyfill;
}
// Use require over import (will be lifted up)
// make sure matchMedia polyfill run before require('vc-slick')
// Fix https://github.com/ant-design/ant-design/issues/6560
// Fix https://github.com/ant-design/ant-design/issues/3308
var SlickCarousel = __webpack_require__(/*! ../vc-slick/src */ "./components/vc-slick/src/index.js")['default'];
var CarouselEffect = _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['scrollx', 'fade']);
// Carousel
var CarouselProps = {
effect: CarouselEffect,
dots: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
vertical: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
autoplay: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
easing: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
beforeChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
afterChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
// style: PropTypes.React.CSSProperties,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
accessibility: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
nextArrow: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
prevArrow: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
pauseOnHover: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
// className: PropTypes.string,
adaptiveHeight: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
arrows: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
autoplaySpeed: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
centerMode: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
centerPadding: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
cssEase: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
dotsClass: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
draggable: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
fade: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
focusOnSelect: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
infinite: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
initialSlide: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
lazyLoad: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
rtl: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
slide: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
slidesToShow: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
slidesToScroll: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
speed: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
swipe: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
swipeToSlide: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
touchMove: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
touchThreshold: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
variableWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
useCSS: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
slickGoTo: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
responsive: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
dotPosition: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['top', 'bottom', 'left', 'right'])
};
var Carousel = {
name: 'ACarousel',
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["initDefaultProps"])(CarouselProps, {
dots: true,
arrows: false,
draggable: false
}),
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__["ConfigConsumerProps"];
} }
},
beforeMount: function beforeMount() {
this.onWindowResized = lodash_debounce__WEBPACK_IMPORTED_MODULE_4___default()(this.onWindowResized, 500, {
leading: false
});
},
mounted: function mounted() {
if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["default"])(this, 'vertical')) {
Object(_util_warning__WEBPACK_IMPORTED_MODULE_8__["default"])(!this.vertical, 'Carousel', '`vertical` is deprecated, please use `dotPosition` instead.');
}
var autoplay = this.autoplay;
if (autoplay) {
window.addEventListener('resize', this.onWindowResized);
}
// https://github.com/ant-design/ant-design/issues/7191
this.innerSlider = this.$refs.slick && this.$refs.slick.innerSlider;
},
beforeDestroy: function beforeDestroy() {
var autoplay = this.autoplay;
if (autoplay) {
window.removeEventListener('resize', this.onWindowResized);
this.onWindowResized.cancel();
}
},
methods: {
getDotPosition: function getDotPosition() {
if (this.dotPosition) {
return this.dotPosition;
}
if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["default"])(this, 'vertical')) {
return this.vertical ? 'right' : 'bottom';
}
return 'bottom';
},
onWindowResized: function onWindowResized() {
// Fix https://github.com/ant-design/ant-design/issues/2550
var autoplay = this.autoplay;
if (autoplay && this.$refs.slick && this.$refs.slick.innerSlider && this.$refs.slick.innerSlider.autoPlay) {
this.$refs.slick.innerSlider.autoPlay();
}
},
next: function next() {
this.$refs.slick.slickNext();
},
prev: function prev() {
this.$refs.slick.slickPrev();
},
goTo: function goTo(slide) {
var dontAnimate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
this.$refs.slick.slickGoTo(slide, dontAnimate);
}
},
render: function render() {
var h = arguments[0];
var props = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props);
var $slots = this.$slots;
if (props.effect === 'fade') {
props.fade = true;
}
var getPrefixCls = this.configProvider.getPrefixCls;
var className = getPrefixCls('carousel', props.prefixCls);
var dotsClass = 'slick-dots';
var dotPosition = this.getDotPosition();
props.vertical = dotPosition === 'left' || dotPosition === 'right';
props.dotsClass = classnames__WEBPACK_IMPORTED_MODULE_9___default()('' + dotsClass, dotsClass + '-' + (dotPosition || 'bottom'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, '' + props.dotsClass, !!props.dotsClass));
if (props.vertical) {
className = className + ' ' + className + '-vertical';
}
var SlickCarouselProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, props, {
nextArrow: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'nextArrow'),
prevArrow: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'prevArrow')
}),
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this),
scopedSlots: this.$scopedSlots
};
var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["filterEmpty"])($slots['default']);
return h(
'div',
{ 'class': className },
[h(
SlickCarousel,
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ ref: 'slick' }, SlickCarouselProps]),
[children]
)]
);
}
};
/* istanbul ignore next */
Carousel.install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_7__["default"]);
Vue.component(Carousel.name, Carousel);
};
/* harmony default export */ __webpack_exports__["default"] = (Carousel);
/***/ }),
/***/ "./components/carousel/style/index.js":
/*!********************************************!*\
!*** ./components/carousel/style/index.js ***!
\********************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/carousel/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/***/ }),
/***/ "./components/carousel/style/index.less":
/*!**********************************************!*\
!*** ./components/carousel/style/index.less ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/cascader/index.jsx":
/*!***************************************!*\
!*** ./components/cascader/index.jsx ***!
\***************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _vc_cascader__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../vc-cascader */ "./components/vc-cascader/index.js");
/* harmony import */ var array_tree_filter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! array-tree-filter */ "./node_modules/array-tree-filter/lib/index.js");
/* harmony import */ var array_tree_filter__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(array_tree_filter__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
/* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/KeyCode */ "./components/_util/KeyCode.js");
/* harmony import */ var _input__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../input */ "./components/input/index.js");
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
var CascaderOptionType = _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].shape({
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number]),
label: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
children: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
key: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number])
}).loose;
var FieldNamesType = _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].shape({
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.isRequired,
label: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.isRequired,
children: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string
}).loose;
var CascaderExpandTrigger = _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['click', 'hover']);
var ShowSearchType = _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].shape({
filter: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
render: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
sort: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
matchInputWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
limit: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([Boolean, Number])
}).loose;
function noop() {}
var CascaderProps = {
/** 可选项数据源 */
options: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(CascaderOptionType).def([]),
/** 默认的选中项 */
defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
/** 指定选中项 */
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
/** 选择完成后的回调 */
// onChange?: (value: string[], selectedOptions?: CascaderOptionType[]) => void;
/** 选择后展示的渲染函数 */
displayRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.def('slide-up'),
popupStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object.def(function () {
return {};
}),
/** 自定义浮层类名 */
popupClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
/** 浮层预设位置:`bottomLeft` `bottomRight` `topLeft` `topRight` */
popupPlacement: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['bottomLeft', 'bottomRight', 'topLeft', 'topRight']).def('bottomLeft'),
/** 输入框占位文本*/
placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.def('Please select'),
/** 输入框大小,可选 `large` `default` `small` */
size: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['large', 'default', 'small']),
/** 禁用*/
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool.def(false),
/** 是否支持清除*/
allowClear: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool.def(true),
showSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([Boolean, ShowSearchType]),
notFoundContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
loadData: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
/** 次级菜单的展开方式,可选 'click' 和 'hover' */
expandTrigger: CascaderExpandTrigger,
/** 当此项为 true 时,点选每级菜单选项值都会发生变化 */
changeOnSelect: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
/** 浮层可见变化时回调 */
// onPopupVisibleChange?: (popupVisible: boolean) => void;
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
inputPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
popupVisible: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
fieldNames: FieldNamesType,
autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
suffixIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any
};
// We limit the filtered item count by default
var defaultLimit = 50;
function defaultFilterOption(inputValue, path, names) {
return path.some(function (option) {
return option[names.label].indexOf(inputValue) > -1;
});
}
function defaultSortFilteredOption(a, b, inputValue, names) {
function callback(elem) {
return elem[names.label].indexOf(inputValue) > -1;
}
return a.findIndex(callback) - b.findIndex(callback);
}
function getFilledFieldNames(_ref) {
var _ref$fieldNames = _ref.fieldNames,
fieldNames = _ref$fieldNames === undefined ? {} : _ref$fieldNames;
var names = {
children: fieldNames.children || 'children',
label: fieldNames.label || 'label',
value: fieldNames.value || 'value'
};
return names;
}
function flattenTree() {
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
var props = arguments[1];
var ancestor = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
var names = getFilledFieldNames(props);
var flattenOptions = [];
var childrenName = names.children;
options.forEach(function (option) {
var path = ancestor.concat(option);
if (props.changeOnSelect || !option[childrenName] || !option[childrenName].length) {
flattenOptions.push(path);
}
if (option[childrenName]) {
flattenOptions = flattenOptions.concat(flattenTree(option[childrenName], props, path));
}
});
return flattenOptions;
}
var defaultDisplayRender = function defaultDisplayRender(_ref2) {
var labels = _ref2.labels;
return labels.join(' / ');
};
var Cascader = {
inheritAttrs: false,
name: 'ACascader',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_12__["default"]],
props: CascaderProps,
model: {
prop: 'value',
event: 'change'
},
provide: function provide() {
return {
savePopupRef: this.savePopupRef
};
},
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_15__["ConfigConsumerProps"];
} },
localeData: { 'default': function _default() {
return {};
} }
},
data: function data() {
this.cachedOptions = [];
var value = this.value,
defaultValue = this.defaultValue,
popupVisible = this.popupVisible,
showSearch = this.showSearch,
options = this.options;
return {
sValue: value || defaultValue || [],
inputValue: '',
inputFocused: false,
sPopupVisible: popupVisible,
flattenOptions: showSearch ? flattenTree(options, this.$props) : undefined
};
},
mounted: function mounted() {
var _this = this;
this.$nextTick(function () {
if (_this.autoFocus && !_this.showSearch && !_this.disabled) {
_this.$refs.picker.focus();
}
});
},
watch: {
value: function value(val) {
this.setState({ sValue: val || [] });
},
popupVisible: function popupVisible(val) {
this.setState({ sPopupVisible: val });
},
options: function options(val) {
if (this.showSearch) {
this.setState({ flattenOptions: flattenTree(val, this.$props) });
}
}
},
methods: {
savePopupRef: function savePopupRef(ref) {
this.popupRef = ref;
},
highlightKeyword: function highlightKeyword(str, keyword, prefixCls) {
var h = this.$createElement;
return str.split(keyword).map(function (node, index) {
return index === 0 ? node : [h(
'span',
{ 'class': prefixCls + '-menu-item-keyword' },
[keyword]
), node];
});
},
defaultRenderFilteredOption: function defaultRenderFilteredOption(_ref3) {
var _this2 = this;
var inputValue = _ref3.inputValue,
path = _ref3.path,
prefixCls = _ref3.prefixCls,
names = _ref3.names;
return path.map(function (option, index) {
var label = option[names.label];
var node = label.indexOf(inputValue) > -1 ? _this2.highlightKeyword(label, inputValue, prefixCls) : label;
return index === 0 ? node : [' / ', node];
});
},
handleChange: function handleChange(value, selectedOptions) {
this.setState({ inputValue: '' });
if (selectedOptions[0].__IS_FILTERED_OPTION) {
var unwrappedValue = value[0];
var unwrappedSelectedOptions = selectedOptions[0].path;
this.setValue(unwrappedValue, unwrappedSelectedOptions);
return;
}
this.setValue(value, selectedOptions);
},
handlePopupVisibleChange: function handlePopupVisibleChange(popupVisible) {
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["hasProp"])(this, 'popupVisible')) {
this.setState(function (state) {
return {
sPopupVisible: popupVisible,
inputFocused: popupVisible,
inputValue: popupVisible ? state.inputValue : ''
};
});
}
this.$emit('popupVisibleChange', popupVisible);
},
handleInputFocus: function handleInputFocus(e) {
this.$emit('focus', e);
},
handleInputBlur: function handleInputBlur(e) {
this.setState({
inputFocused: false
});
this.$emit('blur', e);
},
handleInputClick: function handleInputClick(e) {
var inputFocused = this.inputFocused,
sPopupVisible = this.sPopupVisible;
// Prevent `Trigger` behaviour.
if (inputFocused || sPopupVisible) {
e.stopPropagation();
if (e.nativeEvent && e.nativeEvent.stopImmediatePropagation) {
e.nativeEvent.stopImmediatePropagation();
}
}
},
handleKeyDown: function handleKeyDown(e) {
if (e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].BACKSPACE || e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].SPACE) {
e.stopPropagation();
}
},
handleInputChange: function handleInputChange(e) {
var inputValue = e.target.value;
this.setState({ inputValue: inputValue });
this.$emit('search', inputValue);
},
setValue: function setValue(value, selectedOptions) {
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["hasProp"])(this, 'value')) {
this.setState({ sValue: value });
}
this.$emit('change', value, selectedOptions);
},
getLabel: function getLabel() {
var options = this.options,
$scopedSlots = this.$scopedSlots;
var names = getFilledFieldNames(this.$props);
var displayRender = this.displayRender || $scopedSlots.displayRender || defaultDisplayRender;
var value = this.sValue;
var unwrappedValue = Array.isArray(value[0]) ? value[0] : value;
var selectedOptions = array_tree_filter__WEBPACK_IMPORTED_MODULE_5___default()(options, function (o, level) {
return o[names.value] === unwrappedValue[level];
}, { childrenKeyName: names.children });
var labels = selectedOptions.map(function (o) {
return o[names.label];
});
return displayRender({ labels: labels, selectedOptions: selectedOptions });
},
clearSelection: function clearSelection(e) {
e.preventDefault();
e.stopPropagation();
if (!this.inputValue) {
this.setValue([]);
this.handlePopupVisibleChange(false);
} else {
this.setState({ inputValue: '' });
}
},
generateFilteredOptions: function generateFilteredOptions(prefixCls, renderEmpty) {
var _ref5;
var h = this.$createElement;
var showSearch = this.showSearch,
notFoundContent = this.notFoundContent,
$scopedSlots = this.$scopedSlots;
var names = getFilledFieldNames(this.$props);
var _showSearch$filter = showSearch.filter,
filter = _showSearch$filter === undefined ? defaultFilterOption : _showSearch$filter,
_showSearch$sort = showSearch.sort,
sort = _showSearch$sort === undefined ? defaultSortFilteredOption : _showSearch$sort,
_showSearch$limit = showSearch.limit,
limit = _showSearch$limit === undefined ? defaultLimit : _showSearch$limit;
var render = showSearch.render || $scopedSlots.showSearchRender || this.defaultRenderFilteredOption;
var _$data = this.$data,
_$data$flattenOptions = _$data.flattenOptions,
flattenOptions = _$data$flattenOptions === undefined ? [] : _$data$flattenOptions,
inputValue = _$data.inputValue;
// Limit the filter if needed
var filtered = void 0;
if (limit > 0) {
filtered = [];
var matchCount = 0;
// Perf optimization to filter items only below the limit
flattenOptions.some(function (path) {
var match = filter(inputValue, path, names);
if (match) {
filtered.push(path);
matchCount += 1;
}
return matchCount >= limit;
});
} else {
Object(_util_warning__WEBPACK_IMPORTED_MODULE_14__["default"])(typeof limit !== 'number', 'Cascader', "'limit' of showSearch in Cascader should be positive number or false.");
filtered = flattenOptions.filter(function (path) {
return filter(inputValue, path, names);
});
}
filtered.sort(function (a, b) {
return sort(a, b, inputValue, names);
});
if (filtered.length > 0) {
return filtered.map(function (path) {
var _ref4;
return _ref4 = {
__IS_FILTERED_OPTION: true,
path: path
}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref4, names.label, render({ inputValue: inputValue, path: path, prefixCls: prefixCls, names: names })), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref4, names.value, path.map(function (o) {
return o[names.value];
})), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref4, 'disabled', path.some(function (o) {
return !!o.disabled;
})), _ref4;
});
}
return [(_ref5 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref5, names.label, notFoundContent || renderEmpty(h, 'Cascader')), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref5, names.value, 'ANT_CASCADER_NOT_FOUND'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref5, 'disabled', true), _ref5)];
},
focus: function focus() {
if (this.showSearch) {
this.$refs.input.focus();
} else {
this.$refs.picker.focus();
}
},
blur: function blur() {
if (this.showSearch) {
this.$refs.input.blur();
} else {
this.$refs.picker.blur();
}
}
},
render: function render() {
var _classNames, _classNames2, _classNames3;
var h = arguments[0];
var $slots = this.$slots,
sPopupVisible = this.sPopupVisible,
inputValue = this.inputValue,
configProvider = this.configProvider,
localeData = this.localeData;
var _$data2 = this.$data,
value = _$data2.sValue,
inputFocused = _$data2.inputFocused;
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getOptionProps"])(this);
var suffixIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'suffixIcon');
suffixIcon = Array.isArray(suffixIcon) ? suffixIcon[0] : suffixIcon;
var getContextPopupContainer = configProvider.getPopupContainer;
var customizePrefixCls = props.prefixCls,
customizeInputPrefixCls = props.inputPrefixCls,
_props$placeholder = props.placeholder,
placeholder = _props$placeholder === undefined ? localeData.placeholder : _props$placeholder,
size = props.size,
disabled = props.disabled,
allowClear = props.allowClear,
_props$showSearch = props.showSearch,
showSearch = _props$showSearch === undefined ? false : _props$showSearch,
notFoundContent = props.notFoundContent,
otherProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(props, ['prefixCls', 'inputPrefixCls', 'placeholder', 'size', 'disabled', 'allowClear', 'showSearch', 'notFoundContent']);
var getPrefixCls = this.configProvider.getPrefixCls;
var renderEmpty = this.configProvider.renderEmpty;
var prefixCls = getPrefixCls('cascader', customizePrefixCls);
var inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
var sizeCls = classnames__WEBPACK_IMPORTED_MODULE_6___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, inputPrefixCls + '-lg', size === 'large'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, inputPrefixCls + '-sm', size === 'small'), _classNames));
var clearIcon = allowClear && !disabled && value.length > 0 || inputValue ? h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
attrs: {
type: 'close-circle',
theme: 'filled'
},
'class': prefixCls + '-picker-clear',
on: {
'click': this.clearSelection
},
key: 'clear-icon'
}) : null;
var arrowCls = classnames__WEBPACK_IMPORTED_MODULE_6___default()((_classNames2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames2, prefixCls + '-picker-arrow', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames2, prefixCls + '-picker-arrow-expand', sPopupVisible), _classNames2));
var pickerCls = classnames__WEBPACK_IMPORTED_MODULE_6___default()(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getClass"])(this), prefixCls + '-picker', (_classNames3 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames3, prefixCls + '-picker-with-value', inputValue), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames3, prefixCls + '-picker-disabled', disabled), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames3, prefixCls + '-picker-' + size, !!size), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames3, prefixCls + '-picker-show-search', !!showSearch), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames3, prefixCls + '-picker-focused', inputFocused), _classNames3));
// Fix bug of https://github.com/facebook/react/pull/5004
// and https://fb.me/react-unknown-prop
var tempInputProps = Object(omit_js__WEBPACK_IMPORTED_MODULE_7__["default"])(otherProps, ['options', 'popupPlacement', 'transitionName', 'displayRender', 'changeOnSelect', 'expandTrigger', 'popupVisible', 'getPopupContainer', 'loadData', 'popupClassName', 'filterOption', 'renderFilteredOption', 'sortFilteredOption', 'notFoundContent', 'defaultValue', 'fieldNames']);
var options = props.options;
var names = getFilledFieldNames(this.$props);
if (options && options.length > 0) {
if (inputValue) {
options = this.generateFilteredOptions(prefixCls, renderEmpty);
}
} else {
var _ref6;
options = [(_ref6 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref6, names.label, notFoundContent || renderEmpty(h, 'Cascader')), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref6, names.value, 'ANT_CASCADER_NOT_FOUND'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_ref6, 'disabled', true), _ref6)];
}
// Dropdown menu should keep previous status until it is fully closed.
if (!sPopupVisible) {
options = this.cachedOptions;
} else {
this.cachedOptions = options;
}
var dropdownMenuColumnStyle = {};
var isNotFound = (options || []).length === 1 && options[0].value === 'ANT_CASCADER_NOT_FOUND';
if (isNotFound) {
dropdownMenuColumnStyle.height = 'auto'; // Height of one row.
}
// The default value of `matchInputWidth` is `true`
var resultListMatchInputWidth = showSearch.matchInputWidth !== false;
if (resultListMatchInputWidth && (inputValue || isNotFound) && this.$refs.input) {
dropdownMenuColumnStyle.width = this.$refs.input.$el.offsetWidth + 'px';
}
// showSearch时focus、blur在input上触发反之在ref='picker'上触发
var inputProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, tempInputProps, {
prefixCls: inputPrefixCls,
placeholder: value && value.length > 0 ? undefined : placeholder,
value: inputValue,
disabled: disabled,
readOnly: !showSearch,
autoComplete: 'off'
}),
'class': prefixCls + '-input ' + sizeCls,
ref: 'input',
on: {
focus: showSearch ? this.handleInputFocus : noop,
click: showSearch ? this.handleInputClick : noop,
blur: showSearch ? this.handleInputBlur : noop,
keydown: this.handleKeyDown,
change: showSearch ? this.handleInputChange : noop
},
attrs: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getAttrs"])(this)
};
var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["filterEmpty"])($slots['default']);
var inputIcon = suffixIcon && (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["isValidElement"])(suffixIcon) ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_13__["cloneElement"])(suffixIcon, {
'class': babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, prefixCls + '-picker-arrow', true)
}) : h(
'span',
{ 'class': prefixCls + '-picker-arrow' },
[suffixIcon]
)) || h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
attrs: { type: 'down' },
'class': arrowCls });
var input = children.length ? children : h(
'span',
{ 'class': pickerCls, style: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getStyle"])(this), ref: 'picker' },
[showSearch ? h(
'span',
{ 'class': prefixCls + '-picker-label' },
[this.getLabel()]
) : null, h(_input__WEBPACK_IMPORTED_MODULE_9__["default"], inputProps), !showSearch ? h(
'span',
{ 'class': prefixCls + '-picker-label' },
[this.getLabel()]
) : null, clearIcon, inputIcon]
);
var expandIcon = h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
attrs: { type: 'right' }
});
var loadingIcon = h(
'span',
{ 'class': prefixCls + '-menu-item-loading-icon' },
[h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
attrs: { type: 'redo', spin: true }
})]
);
var getPopupContainer = props.getPopupContainer || getContextPopupContainer;
var cascaderProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
getPopupContainer: getPopupContainer,
options: options,
prefixCls: prefixCls,
value: value,
popupVisible: sPopupVisible,
dropdownMenuColumnStyle: dropdownMenuColumnStyle,
expandIcon: expandIcon,
loadingIcon: loadingIcon
}),
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getListeners"])(this), {
popupVisibleChange: this.handlePopupVisibleChange,
change: this.handleChange
})
};
return h(
_vc_cascader__WEBPACK_IMPORTED_MODULE_4__["default"],
cascaderProps,
[input]
);
}
};
/* istanbul ignore next */
Cascader.install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_16__["default"]);
Vue.component(Cascader.name, Cascader);
};
/* harmony default export */ __webpack_exports__["default"] = (Cascader);
/***/ }),
/***/ "./components/cascader/style/index.js":
/*!********************************************!*\
!*** ./components/cascader/style/index.js ***!
\********************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/cascader/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _empty_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../empty/style */ "./components/empty/style/index.js");
/* harmony import */ var _input_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../input/style */ "./components/input/style/index.js");
// style dependencies
/***/ }),
/***/ "./components/cascader/style/index.less":
/*!**********************************************!*\
!*** ./components/cascader/style/index.less ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/checkbox/Checkbox.jsx":
/*!******************************************!*\
!*** ./components/checkbox/Checkbox.jsx ***!
\******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _vc_checkbox__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../vc-checkbox */ "./components/vc-checkbox/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
function noop() {}
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'ACheckbox',
inheritAttrs: false,
__ANT_CHECKBOX: true,
model: {
prop: 'checked'
},
props: {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
defaultChecked: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
checked: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
isGroup: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
name: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
id: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
indeterminate: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
type: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def('checkbox'),
autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool
},
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__["ConfigConsumerProps"];
} },
checkboxGroupContext: { 'default': function _default() {
return undefined;
} }
},
watch: {
value: function value(_value, prevValue) {
var _this = this;
this.$nextTick(function () {
var _checkboxGroupContext = _this.checkboxGroupContext,
checkboxGroup = _checkboxGroupContext === undefined ? {} : _checkboxGroupContext;
if (checkboxGroup.registerValue && checkboxGroup.cancelValue) {
checkboxGroup.cancelValue(prevValue);
checkboxGroup.registerValue(_value);
}
});
}
},
mounted: function mounted() {
var value = this.value,
_checkboxGroupContext2 = this.checkboxGroupContext,
checkboxGroup = _checkboxGroupContext2 === undefined ? {} : _checkboxGroupContext2;
if (checkboxGroup.registerValue) {
checkboxGroup.registerValue(value);
}
Object(_util_warning__WEBPACK_IMPORTED_MODULE_9__["default"])(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["default"])(this, 'checked') || this.checkboxGroupContext || !Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["default"])(this, 'value'), 'Checkbox', '`value` is not validate prop, do you mean `checked`?');
},
beforeDestroy: function beforeDestroy() {
var value = this.value,
_checkboxGroupContext3 = this.checkboxGroupContext,
checkboxGroup = _checkboxGroupContext3 === undefined ? {} : _checkboxGroupContext3;
if (checkboxGroup.cancelValue) {
checkboxGroup.cancelValue(value);
}
},
methods: {
handleChange: function handleChange(event) {
var targetChecked = event.target.checked;
this.$emit('input', targetChecked);
this.$emit('change', event);
},
focus: function focus() {
this.$refs.vcCheckbox.focus();
},
blur: function blur() {
this.$refs.vcCheckbox.blur();
}
},
render: function render() {
var _this2 = this,
_classNames;
var h = arguments[0];
var checkboxGroup = this.checkboxGroupContext,
$slots = this.$slots;
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(this);
var children = $slots['default'];
var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this),
_getListeners$mouseen = _getListeners.mouseenter,
mouseenter = _getListeners$mouseen === undefined ? noop : _getListeners$mouseen,
_getListeners$mousele = _getListeners.mouseleave,
mouseleave = _getListeners$mousele === undefined ? noop : _getListeners$mousele,
input = _getListeners.input,
restListeners = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3___default()(_getListeners, ['mouseenter', 'mouseleave', 'input']);
var customizePrefixCls = props.prefixCls,
indeterminate = props.indeterminate,
restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3___default()(props, ['prefixCls', 'indeterminate']);
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('checkbox', customizePrefixCls);
var checkboxProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, restProps, { prefixCls: prefixCls }),
on: restListeners,
attrs: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getAttrs"])(this)
};
if (checkboxGroup) {
checkboxProps.on.change = function () {
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
_this2.$emit.apply(_this2, ['change'].concat(args));
checkboxGroup.toggleOption({ label: children, value: props.value });
};
checkboxProps.props.name = checkboxGroup.name;
checkboxProps.props.checked = checkboxGroup.sValue.indexOf(props.value) !== -1;
checkboxProps.props.disabled = props.disabled || checkboxGroup.disabled;
checkboxProps.props.indeterminate = indeterminate;
} else {
checkboxProps.on.change = this.handleChange;
}
var classString = classnames__WEBPACK_IMPORTED_MODULE_5___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-wrapper', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-wrapper-checked', checkboxProps.props.checked), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-wrapper-disabled', checkboxProps.props.disabled), _classNames));
var checkboxClass = classnames__WEBPACK_IMPORTED_MODULE_5___default()(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, prefixCls + '-indeterminate', indeterminate));
return h(
'label',
{ 'class': classString, on: {
'mouseenter': mouseenter,
'mouseleave': mouseleave
}
},
[h(_vc_checkbox__WEBPACK_IMPORTED_MODULE_6__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([checkboxProps, { 'class': checkboxClass, ref: 'vcCheckbox' }])), children !== undefined && h('span', [children])]
);
}
});
/***/ }),
/***/ "./components/checkbox/Group.jsx":
/*!***************************************!*\
!*** ./components/checkbox/Group.jsx ***!
\***************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _Checkbox__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Checkbox */ "./components/checkbox/Checkbox.jsx");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
function noop() {}
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'ACheckboxGroup',
model: {
prop: 'value'
},
props: {
name: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array,
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array,
options: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array.def([]),
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool
},
provide: function provide() {
return {
checkboxGroupContext: this
};
},
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__["ConfigConsumerProps"];
} }
},
data: function data() {
var value = this.value,
defaultValue = this.defaultValue;
return {
sValue: value || defaultValue || [],
registeredValues: []
};
},
watch: {
value: function value(val) {
this.sValue = val || [];
}
},
methods: {
getOptions: function getOptions() {
var options = this.options,
$scopedSlots = this.$scopedSlots;
return options.map(function (option) {
if (typeof option === 'string') {
return {
label: option,
value: option
};
}
var label = option.label;
if (label === undefined && $scopedSlots.label) {
label = $scopedSlots.label(option);
}
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, option, { label: label });
});
},
cancelValue: function cancelValue(value) {
this.registeredValues = this.registeredValues.filter(function (val) {
return val !== value;
});
},
registerValue: function registerValue(value) {
this.registeredValues = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(this.registeredValues), [value]);
},
toggleOption: function toggleOption(option) {
var registeredValues = this.registeredValues;
var optionIndex = this.sValue.indexOf(option.value);
var value = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(this.sValue));
if (optionIndex === -1) {
value.push(option.value);
} else {
value.splice(optionIndex, 1);
}
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["default"])(this, 'value')) {
this.sValue = value;
}
var options = this.getOptions();
var val = value.filter(function (val) {
return registeredValues.indexOf(val) !== -1;
}).sort(function (a, b) {
var indexA = options.findIndex(function (opt) {
return opt.value === a;
});
var indexB = options.findIndex(function (opt) {
return opt.value === b;
});
return indexA - indexB;
});
this.$emit('input', val);
this.$emit('change', val);
}
},
render: function render() {
var h = arguments[0];
var props = this.$props,
state = this.$data,
$slots = this.$slots;
var customizePrefixCls = props.prefixCls,
options = props.options;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('checkbox', customizePrefixCls);
var children = $slots['default'];
var groupPrefixCls = prefixCls + '-group';
if (options && options.length > 0) {
children = this.getOptions().map(function (option) {
return h(
_Checkbox__WEBPACK_IMPORTED_MODULE_3__["default"],
{
attrs: {
prefixCls: prefixCls,
disabled: 'disabled' in option ? option.disabled : props.disabled,
indeterminate: option.indeterminate,
value: option.value,
checked: state.sValue.indexOf(option.value) !== -1
},
key: option.value.toString(), on: {
'change': option.onChange || noop
},
'class': groupPrefixCls + '-item'
},
[option.label]
);
});
}
return h(
'div',
{ 'class': groupPrefixCls },
[children]
);
}
});
/***/ }),
/***/ "./components/checkbox/index.js":
/*!**************************************!*\
!*** ./components/checkbox/index.js ***!
\**************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Checkbox__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Checkbox */ "./components/checkbox/Checkbox.jsx");
/* harmony import */ var _Group__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Group */ "./components/checkbox/Group.jsx");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
_Checkbox__WEBPACK_IMPORTED_MODULE_0__["default"].Group = _Group__WEBPACK_IMPORTED_MODULE_1__["default"];
/* istanbul ignore next */
_Checkbox__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_2__["default"]);
Vue.component(_Checkbox__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Checkbox__WEBPACK_IMPORTED_MODULE_0__["default"]);
Vue.component(_Group__WEBPACK_IMPORTED_MODULE_1__["default"].name, _Group__WEBPACK_IMPORTED_MODULE_1__["default"]);
};
/* harmony default export */ __webpack_exports__["default"] = (_Checkbox__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/checkbox/style/index.js":
/*!********************************************!*\
!*** ./components/checkbox/style/index.js ***!
\********************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/checkbox/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/***/ }),
/***/ "./components/checkbox/style/index.less":
/*!**********************************************!*\
!*** ./components/checkbox/style/index.less ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/col/index.js":
/*!*********************************!*\
!*** ./components/col/index.js ***!
\*********************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _grid__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../grid */ "./components/grid/index.js");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
/* istanbul ignore next */
_grid__WEBPACK_IMPORTED_MODULE_0__["Col"].install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_1__["default"]);
Vue.component(_grid__WEBPACK_IMPORTED_MODULE_0__["Col"].name, _grid__WEBPACK_IMPORTED_MODULE_0__["Col"]);
};
/* harmony default export */ __webpack_exports__["default"] = (_grid__WEBPACK_IMPORTED_MODULE_0__["Col"]);
/***/ }),
/***/ "./components/col/style/index.js":
/*!***************************************!*\
!*** ./components/col/style/index.js ***!
\***************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _grid_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../grid/style */ "./components/grid/style/index.js");
// style dependencies
// deps-lint-skip: grid
/***/ }),
/***/ "./components/collapse/Collapse.jsx":
/*!******************************************!*\
!*** ./components/collapse/Collapse.jsx ***!
\******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _util_openAnimation__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/openAnimation */ "./components/_util/openAnimation.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _vc_collapse__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vc-collapse */ "./components/vc-collapse/index.js");
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'ACollapse',
model: {
prop: 'activeKey',
event: 'change'
},
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["initDefaultProps"])(Object(_vc_collapse__WEBPACK_IMPORTED_MODULE_5__["collapseProps"])(), {
bordered: true,
openAnimation: _util_openAnimation__WEBPACK_IMPORTED_MODULE_2__["default"],
expandIconPosition: 'left'
}),
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_7__["ConfigConsumerProps"];
} }
},
methods: {
renderExpandIcon: function renderExpandIcon(panelProps, prefixCls) {
var h = this.$createElement;
var expandIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'expandIcon', panelProps);
var icon = expandIcon || h(_icon__WEBPACK_IMPORTED_MODULE_6__["default"], {
attrs: { type: 'right', rotate: panelProps.isActive ? 90 : undefined }
});
return Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["isValidElement"])(Array.isArray(expandIcon) ? icon[0] : icon) ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_4__["cloneElement"])(icon, {
'class': prefixCls + '-arrow'
}) : icon;
}
},
render: function render() {
var _collapseClassName,
_this = this;
var h = arguments[0];
var customizePrefixCls = this.prefixCls,
bordered = this.bordered,
expandIconPosition = this.expandIconPosition;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('collapse', customizePrefixCls);
var collapseClassName = (_collapseClassName = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_collapseClassName, prefixCls + '-borderless', !bordered), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_collapseClassName, prefixCls + '-icon-position-' + expandIconPosition, true), _collapseClassName);
var rcCollapeProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getOptionProps"])(this), {
prefixCls: prefixCls,
expandIcon: function expandIcon(panelProps) {
return _this.renderExpandIcon(panelProps, prefixCls);
}
}),
'class': collapseClassName,
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this)
};
return h(
_vc_collapse__WEBPACK_IMPORTED_MODULE_5__["default"],
rcCollapeProps,
[this.$slots['default']]
);
}
});
/***/ }),
/***/ "./components/collapse/CollapsePanel.jsx":
/*!***********************************************!*\
!*** ./components/collapse/CollapsePanel.jsx ***!
\***********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _vc_collapse__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../vc-collapse */ "./components/vc-collapse/index.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'ACollapsePanel',
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_vc_collapse__WEBPACK_IMPORTED_MODULE_3__["panelProps"])()),
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__["ConfigConsumerProps"];
} }
},
render: function render() {
var h = arguments[0];
var customizePrefixCls = this.prefixCls,
_showArrow = this.showArrow,
showArrow = _showArrow === undefined ? true : _showArrow;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('collapse', customizePrefixCls);
var collapsePanelClassName = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, prefixCls + '-no-arrow', !showArrow);
var rcCollapePanelProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getOptionProps"])(this), {
prefixCls: prefixCls,
extra: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'extra')
}),
'class': collapsePanelClassName,
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getListeners"])(this)
};
var header = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'header');
return h(
_vc_collapse__WEBPACK_IMPORTED_MODULE_3__["default"].Panel,
rcCollapePanelProps,
[this.$slots['default'], header ? h(
'template',
{ slot: 'header' },
[header]
) : null]
);
}
});
/***/ }),
/***/ "./components/collapse/index.js":
/*!**************************************!*\
!*** ./components/collapse/index.js ***!
\**************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Collapse__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Collapse */ "./components/collapse/Collapse.jsx");
/* harmony import */ var _CollapsePanel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CollapsePanel */ "./components/collapse/CollapsePanel.jsx");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
_Collapse__WEBPACK_IMPORTED_MODULE_0__["default"].Panel = _CollapsePanel__WEBPACK_IMPORTED_MODULE_1__["default"];
/* istanbul ignore next */
_Collapse__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_2__["default"]);
Vue.component(_Collapse__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Collapse__WEBPACK_IMPORTED_MODULE_0__["default"]);
Vue.component(_CollapsePanel__WEBPACK_IMPORTED_MODULE_1__["default"].name, _CollapsePanel__WEBPACK_IMPORTED_MODULE_1__["default"]);
};
/* harmony default export */ __webpack_exports__["default"] = (_Collapse__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/collapse/style/index.js":
/*!********************************************!*\
!*** ./components/collapse/style/index.js ***!
\********************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/collapse/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/***/ }),
/***/ "./components/collapse/style/index.less":
/*!**********************************************!*\
!*** ./components/collapse/style/index.less ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/comment/index.jsx":
/*!**************************************!*\
!*** ./components/comment/index.jsx ***!
\**************************************/
/*! exports provided: CommentProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CommentProps", function() { return CommentProps; });
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
var CommentProps = {
actions: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
/** The element to display as the comment author. */
author: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
/** The element to display as the comment avatar - generally an antd Avatar */
avatar: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
/** The main content of the comment */
content: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
/** Comment prefix defaults to '.ant-comment' */
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
/** A datetime element containing the time to be displayed */
datetime: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
};
var Comment = {
name: 'AComment',
props: CommentProps,
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_3__["ConfigConsumerProps"];
} }
},
methods: {
getAction: function getAction(actions) {
var h = this.$createElement;
if (!actions || !actions.length) {
return null;
}
var actionList = actions.map(function (action, index) {
return h(
'li',
{ key: 'action-' + index },
[action]
);
});
return actionList;
},
renderNested: function renderNested(prefixCls, children) {
var h = this.$createElement;
return h(
'div',
{ 'class': prefixCls + '-nested' },
[children]
);
}
},
render: function render() {
var h = arguments[0];
var customizePrefixCls = this.$props.prefixCls;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('comment', customizePrefixCls);
var actions = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'actions');
var author = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'author');
var avatar = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'avatar');
var content = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'content');
var datetime = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'datetime');
var avatarDom = h(
'div',
{ 'class': prefixCls + '-avatar' },
[typeof avatar === 'string' ? h('img', {
attrs: { src: avatar, alt: 'comment-avatar' }
}) : avatar]
);
var actionDom = actions && actions.length ? h(
'ul',
{ 'class': prefixCls + '-actions' },
[this.getAction(actions)]
) : null;
var authorContent = h(
'div',
{ 'class': prefixCls + '-content-author' },
[author && h(
'span',
{ 'class': prefixCls + '-content-author-name' },
[author]
), datetime && h(
'span',
{ 'class': prefixCls + '-content-author-time' },
[datetime]
)]
);
var contentDom = h(
'div',
{ 'class': prefixCls + '-content' },
[authorContent, h(
'div',
{ 'class': prefixCls + '-content-detail' },
[content]
), actionDom]
);
var comment = h(
'div',
{ 'class': prefixCls + '-inner' },
[avatarDom, contentDom]
);
var children = this.$slots['default'];
return h(
'div',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ 'class': prefixCls }, { on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getListeners"])(this) }]),
[comment, children ? this.renderNested(prefixCls, children) : null]
);
}
};
/* istanbul ignore next */
Comment.install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_4__["default"]);
Vue.component(Comment.name, Comment);
};
/* harmony default export */ __webpack_exports__["default"] = (Comment);
/***/ }),
/***/ "./components/comment/style/index.js":
/*!*******************************************!*\
!*** ./components/comment/style/index.js ***!
\*******************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/comment/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/***/ }),
/***/ "./components/comment/style/index.less":
/*!*********************************************!*\
!*** ./components/comment/style/index.less ***!
\*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/config-provider/configConsumerProps.jsx":
/*!************************************************************!*\
!*** ./components/config-provider/configConsumerProps.jsx ***!
\************************************************************/
/*! exports provided: ConfigConsumerProps */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConfigConsumerProps", function() { return ConfigConsumerProps; });
/* harmony import */ var _renderEmpty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./renderEmpty */ "./components/config-provider/renderEmpty.jsx");
var ConfigConsumerProps = {
getPrefixCls: function getPrefixCls(suffixCls, customizePrefixCls) {
if (customizePrefixCls) return customizePrefixCls;
return 'ant-' + suffixCls;
},
renderEmpty: _renderEmpty__WEBPACK_IMPORTED_MODULE_0__["default"]
};
/***/ }),
/***/ "./components/config-provider/index.jsx":
/*!**********************************************!*\
!*** ./components/config-provider/index.jsx ***!
\**********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ "vue");
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _renderEmpty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./renderEmpty */ "./components/config-provider/renderEmpty.jsx");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
/* harmony import */ var _locale_provider__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../locale-provider */ "./components/locale-provider/index.jsx");
/* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./components/locale-provider/LocaleReceiver.jsx");
function getWatch() {
var keys = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
var watch = {};
keys.forEach(function (k) {
watch[k] = function (value) {
this._proxyVm._data[k] = value;
};
});
return watch;
}
var ConfigProvider = {
name: 'AConfigProvider',
props: {
getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
renderEmpty: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
csp: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
autoInsertSpaceInButton: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
pageHeader: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
transformCellText: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func
},
provide: function provide() {
var _self = this;
this._proxyVm = new vue__WEBPACK_IMPORTED_MODULE_1___default.a({
data: function data() {
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _self.$props, {
getPrefixCls: _self.getPrefixCls,
renderEmpty: _self.renderEmptyComponent
});
}
});
return {
configProvider: this._proxyVm._data
};
},
watch: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, getWatch(['prefixCls', 'csp', 'autoInsertSpaceInButton', 'locale', 'pageHeader', 'transformCellText'])),
methods: {
renderEmptyComponent: function renderEmptyComponent(h, name) {
var renderEmpty = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'renderEmpty', {}, false) || _renderEmpty__WEBPACK_IMPORTED_MODULE_4__["default"];
return renderEmpty(h, name);
},
getPrefixCls: function getPrefixCls(suffixCls, customizePrefixCls) {
var _$props$prefixCls = this.$props.prefixCls,
prefixCls = _$props$prefixCls === undefined ? 'ant' : _$props$prefixCls;
if (customizePrefixCls) return customizePrefixCls;
return suffixCls ? prefixCls + '-' + suffixCls : prefixCls;
},
renderProvider: function renderProvider(legacyLocale) {
var h = this.$createElement;
return h(
_locale_provider__WEBPACK_IMPORTED_MODULE_6__["default"],
{
attrs: { locale: this.locale || legacyLocale, _ANT_MARK__: _locale_provider__WEBPACK_IMPORTED_MODULE_6__["ANT_MARK"] }
},
[this.$slots['default'] ? Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["filterEmpty"])(this.$slots['default'])[0] : null]
);
}
},
render: function render() {
var _this = this;
var h = arguments[0];
return h(_locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_7__["default"], {
scopedSlots: { 'default': function _default(_, __, legacyLocale) {
return _this.renderProvider(legacyLocale);
} }
});
}
};
/* istanbul ignore next */
ConfigProvider.install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_5__["default"]);
Vue.component(ConfigProvider.name, ConfigProvider);
};
/* harmony default export */ __webpack_exports__["default"] = (ConfigProvider);
/***/ }),
/***/ "./components/config-provider/renderEmpty.jsx":
/*!****************************************************!*\
!*** ./components/config-provider/renderEmpty.jsx ***!
\****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _empty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../empty */ "./components/empty/index.jsx");
/* harmony import */ var _configConsumerProps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
var RenderEmpty = {
functional: true,
inject: {
configProvider: { 'default': function _default() {
return _configConsumerProps__WEBPACK_IMPORTED_MODULE_2__["ConfigConsumerProps"];
} }
},
props: {
componentName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string
},
render: function render(createElement, context) {
var h = arguments[0];
var props = context.props,
injections = context.injections;
function renderHtml(componentName) {
var getPrefixCls = injections.configProvider.getPrefixCls;
var prefix = getPrefixCls('empty');
switch (componentName) {
case 'Table':
case 'List':
return h(_empty__WEBPACK_IMPORTED_MODULE_1__["default"], {
attrs: { image: _empty__WEBPACK_IMPORTED_MODULE_1__["default"].PRESENTED_IMAGE_SIMPLE }
});
case 'Select':
case 'TreeSelect':
case 'Cascader':
case 'Transfer':
case 'Mentions':
return h(_empty__WEBPACK_IMPORTED_MODULE_1__["default"], {
attrs: { image: _empty__WEBPACK_IMPORTED_MODULE_1__["default"].PRESENTED_IMAGE_SIMPLE },
'class': prefix + '-small' });
default:
return h(_empty__WEBPACK_IMPORTED_MODULE_1__["default"]);
}
}
return renderHtml(props.componentName);
}
};
function renderEmpty(h, componentName) {
return h(RenderEmpty, {
attrs: { componentName: componentName }
});
}
/* harmony default export */ __webpack_exports__["default"] = (renderEmpty);
/***/ }),
/***/ "./components/config-provider/style/index.js":
/*!***************************************************!*\
!*** ./components/config-provider/style/index.js ***!
\***************************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.less */ "./components/config-provider/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_0__);
/***/ }),
/***/ "./components/config-provider/style/index.less":
/*!*****************************************************!*\
!*** ./components/config-provider/style/index.less ***!
\*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/date-picker/InputIcon.js":
/*!*********************************************!*\
!*** ./components/date-picker/InputIcon.js ***!
\*********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
/* harmony default export */ __webpack_exports__["default"] = ({
functional: true,
render: function render(h, context) {
var props = context.props;
var suffixIcon = props.suffixIcon,
prefixCls = props.prefixCls;
return (suffixIcon && Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["isValidElement"])(suffixIcon) ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(suffixIcon, {
'class': prefixCls + '-picker-icon'
}) : h(
'span',
{ 'class': prefixCls + '-picker-icon' },
[suffixIcon]
)) || h(_icon__WEBPACK_IMPORTED_MODULE_0__["default"], {
attrs: { type: 'calendar' },
'class': prefixCls + '-picker-icon' });
}
});
/***/ }),
/***/ "./components/date-picker/RangePicker.jsx":
/*!************************************************!*\
!*** ./components/date-picker/RangePicker.jsx ***!
\************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/slicedToArray */ "./node_modules/babel-runtime/helpers/slicedToArray.js");
/* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! moment */ "moment");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _vc_calendar_src_RangeCalendar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../vc-calendar/src/RangeCalendar */ "./components/vc-calendar/src/RangeCalendar.jsx");
/* harmony import */ var _vc_calendar_src_Picker__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vc-calendar/src/Picker */ "./components/vc-calendar/src/Picker.jsx");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! shallowequal */ "./node_modules/shallowequal/index.js");
/* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(shallowequal__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
/* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../tag */ "./components/tag/index.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _util_interopDefault__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/interopDefault */ "./components/_util/interopDefault.js");
/* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./interface */ "./components/date-picker/interface.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./utils */ "./components/date-picker/utils.js");
/* harmony import */ var _InputIcon__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./InputIcon */ "./components/date-picker/InputIcon.js");
function noop() {}
function getShowDateFromValue(value, mode) {
var _value = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(value, 2),
start = _value[0],
end = _value[1];
// value could be an empty array, then we should not reset showDate
if (!start && !end) {
return;
}
if (mode && mode[0] === 'month') {
return [start, end];
}
var newEnd = end && end.isSame(start, 'month') ? end.clone().add(1, 'month') : end;
return [start, newEnd];
}
function pickerValueAdapter(value) {
if (!value) {
return;
}
if (Array.isArray(value)) {
return value;
}
return [value, value.clone().add(1, 'month')];
}
function isEmptyArray(arr) {
if (Array.isArray(arr)) {
return arr.length === 0 || arr.every(function (i) {
return !i;
});
}
return false;
}
function fixLocale(value, localeCode) {
if (!localeCode) {
return;
}
if (!value || value.length === 0) {
return;
}
var _value2 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(value, 2),
start = _value2[0],
end = _value2[1];
if (start) {
start.locale(localeCode);
}
if (end) {
end.locale(localeCode);
}
}
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'ARangePicker',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_14__["default"]],
model: {
prop: 'value',
event: 'change'
},
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["initDefaultProps"])(Object(_interface__WEBPACK_IMPORTED_MODULE_12__["RangePickerProps"])(), {
allowClear: true,
showToday: false,
separator: '~'
}),
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_10__["ConfigConsumerProps"];
} }
},
data: function data() {
var value = this.value || this.defaultValue || [];
var _value3 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(value, 2),
start = _value3[0],
end = _value3[1];
if (start && !Object(_util_interopDefault__WEBPACK_IMPORTED_MODULE_11__["default"])(moment__WEBPACK_IMPORTED_MODULE_3__).isMoment(start) || end && !Object(_util_interopDefault__WEBPACK_IMPORTED_MODULE_11__["default"])(moment__WEBPACK_IMPORTED_MODULE_3__).isMoment(end)) {
throw new Error('The value/defaultValue of RangePicker must be a moment object array after `antd@2.0`, ' + 'see: https://u.ant.design/date-picker-value');
}
var pickerValue = !value || isEmptyArray(value) ? this.defaultPickerValue : value;
return {
sValue: value,
sShowDate: pickerValueAdapter(pickerValue || Object(_util_interopDefault__WEBPACK_IMPORTED_MODULE_11__["default"])(moment__WEBPACK_IMPORTED_MODULE_3__)()),
sOpen: this.open,
sHoverValue: []
};
},
watch: {
value: function value(val) {
var value = val || [];
var state = { sValue: value };
if (!shallowequal__WEBPACK_IMPORTED_MODULE_7___default()(val, this.sValue)) {
state = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, state, {
sShowDate: getShowDateFromValue(value, this.mode) || this.sShowDate
});
}
this.setState(state);
},
open: function open(val) {
var state = { sOpen: val };
this.setState(state);
},
sOpen: function sOpen(val, oldVal) {
var _this = this;
this.$nextTick(function () {
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["hasProp"])(_this, 'open') && oldVal && !val) {
_this.focus();
}
});
}
},
methods: {
setValue: function setValue(value, hidePanel) {
this.handleChange(value);
if ((hidePanel || !this.showTime) && !Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["hasProp"])(this, 'open')) {
this.setState({ sOpen: false });
}
},
clearSelection: function clearSelection(e) {
e.preventDefault();
e.stopPropagation();
this.setState({ sValue: [] });
this.handleChange([]);
},
clearHoverValue: function clearHoverValue() {
this.setState({ sHoverValue: [] });
},
handleChange: function handleChange(value) {
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["hasProp"])(this, 'value')) {
this.setState(function (_ref) {
var sShowDate = _ref.sShowDate;
return {
sValue: value,
sShowDate: getShowDateFromValue(value) || sShowDate
};
});
}
if (value[0] && value[1] && value[0].diff(value[1]) > 0) {
value[1] = undefined;
}
var _value4 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(value, 2),
start = _value4[0],
end = _value4[1];
this.$emit('change', value, [Object(_utils__WEBPACK_IMPORTED_MODULE_15__["formatDate"])(start, this.format), Object(_utils__WEBPACK_IMPORTED_MODULE_15__["formatDate"])(end, this.format)]);
},
handleOpenChange: function handleOpenChange(open) {
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["hasProp"])(this, 'open')) {
this.setState({ sOpen: open });
}
if (open === false) {
this.clearHoverValue();
}
this.$emit('openChange', open);
},
handleShowDateChange: function handleShowDateChange(showDate) {
this.setState({ sShowDate: showDate });
},
handleHoverChange: function handleHoverChange(hoverValue) {
this.setState({ sHoverValue: hoverValue });
},
handleRangeMouseLeave: function handleRangeMouseLeave() {
if (this.sOpen) {
this.clearHoverValue();
}
},
handleCalendarInputSelect: function handleCalendarInputSelect(value) {
var _value5 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(value, 1),
start = _value5[0];
if (!start) {
return;
}
this.setState(function (_ref2) {
var sShowDate = _ref2.sShowDate;
return {
sValue: value,
sShowDate: getShowDateFromValue(value) || sShowDate
};
});
},
handleRangeClick: function handleRangeClick(value) {
if (typeof value === 'function') {
value = value();
}
this.setValue(value, true);
this.$emit('ok', value);
this.$emit('openChange', false);
},
onMouseEnter: function onMouseEnter(e) {
this.$emit('mouseenter', e);
},
onMouseLeave: function onMouseLeave(e) {
this.$emit('mouseleave', e);
},
focus: function focus() {
this.$refs.picker.focus();
},
blur: function blur() {
this.$refs.picker.blur();
},
renderFooter: function renderFooter() {
var _this2 = this;
var h = this.$createElement;
var ranges = this.ranges,
$scopedSlots = this.$scopedSlots,
$slots = this.$slots;
var prefixCls = this._prefixCls,
tagPrefixCls = this._tagPrefixCls;
var renderExtraFooter = this.renderExtraFooter || $scopedSlots.renderExtraFooter || $slots.renderExtraFooter;
if (!ranges && !renderExtraFooter) {
return null;
}
var customFooter = renderExtraFooter ? h(
'div',
{ 'class': prefixCls + '-footer-extra', key: 'extra' },
[typeof renderExtraFooter === 'function' ? renderExtraFooter() : renderExtraFooter]
) : null;
var operations = ranges && Object.keys(ranges).map(function (range) {
var value = ranges[range];
var hoverValue = typeof value === 'function' ? value.call(_this2) : value;
return h(
_tag__WEBPACK_IMPORTED_MODULE_9__["default"],
{
key: range,
attrs: { prefixCls: tagPrefixCls,
color: 'blue'
},
on: {
'click': function click() {
return _this2.handleRangeClick(value);
},
'mouseenter': function mouseenter() {
return _this2.setState({ sHoverValue: hoverValue });
},
'mouseleave': _this2.handleRangeMouseLeave
}
},
[range]
);
});
var rangeNode = operations && operations.length > 0 ? h(
'div',
{ 'class': prefixCls + '-footer-extra ' + prefixCls + '-range-quick-selector', key: 'range' },
[operations]
) : null;
return [rangeNode, customFooter];
}
},
render: function render() {
var _classNames,
_this3 = this;
var h = arguments[0];
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["getOptionProps"])(this);
var suffixIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["getComponentFromProp"])(this, 'suffixIcon');
suffixIcon = Array.isArray(suffixIcon) ? suffixIcon[0] : suffixIcon;
var value = this.sValue,
showDate = this.sShowDate,
hoverValue = this.sHoverValue,
open = this.sOpen,
$scopedSlots = this.$scopedSlots;
var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["getListeners"])(this);
var _listeners$calendarCh = listeners.calendarChange,
calendarChange = _listeners$calendarCh === undefined ? noop : _listeners$calendarCh,
_listeners$ok = listeners.ok,
ok = _listeners$ok === undefined ? noop : _listeners$ok,
_listeners$focus = listeners.focus,
focus = _listeners$focus === undefined ? noop : _listeners$focus,
_listeners$blur = listeners.blur,
blur = _listeners$blur === undefined ? noop : _listeners$blur,
_listeners$panelChang = listeners.panelChange,
panelChange = _listeners$panelChang === undefined ? noop : _listeners$panelChang;
var customizePrefixCls = props.prefixCls,
customizeTagPrefixCls = props.tagPrefixCls,
popupStyle = props.popupStyle,
disabledDate = props.disabledDate,
disabledTime = props.disabledTime,
showTime = props.showTime,
showToday = props.showToday,
ranges = props.ranges,
locale = props.locale,
localeCode = props.localeCode,
format = props.format,
separator = props.separator,
inputReadOnly = props.inputReadOnly;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('calendar', customizePrefixCls);
var tagPrefixCls = getPrefixCls('tag', customizeTagPrefixCls);
this._prefixCls = prefixCls;
this._tagPrefixCls = tagPrefixCls;
var dateRender = props.dateRender || $scopedSlots.dateRender;
fixLocale(value, localeCode);
fixLocale(showDate, localeCode);
var calendarClassName = classnames__WEBPACK_IMPORTED_MODULE_6___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-time', showTime), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-range-with-ranges', ranges), _classNames));
// 需要选择时间时,点击 ok 时才触发 onChange
var pickerChangeHandler = {
on: {
change: this.handleChange
}
};
var calendarProps = {
on: {
ok: this.handleChange
},
props: {}
};
if (props.timePicker) {
pickerChangeHandler.on.change = function (changedValue) {
return _this3.handleChange(changedValue);
};
} else {
calendarProps = { on: {}, props: {} };
}
if ('mode' in props) {
calendarProps.props.mode = props.mode;
}
var startPlaceholder = Array.isArray(props.placeholder) ? props.placeholder[0] : locale.lang.rangePlaceholder[0];
var endPlaceholder = Array.isArray(props.placeholder) ? props.placeholder[1] : locale.lang.rangePlaceholder[1];
var rangeCalendarProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["mergeProps"])(calendarProps, {
props: {
separator: separator,
format: format,
prefixCls: prefixCls,
renderFooter: this.renderFooter,
timePicker: props.timePicker,
disabledDate: disabledDate,
disabledTime: disabledTime,
dateInputPlaceholder: [startPlaceholder, endPlaceholder],
locale: locale.lang,
dateRender: dateRender,
value: showDate,
hoverValue: hoverValue,
showToday: showToday,
inputReadOnly: inputReadOnly
},
on: {
change: calendarChange,
ok: ok,
valueChange: this.handleShowDateChange,
hoverChange: this.handleHoverChange,
panelChange: panelChange,
inputSelect: this.handleCalendarInputSelect
},
'class': calendarClassName,
scopedSlots: $scopedSlots
});
var calendar = h(_vc_calendar_src_RangeCalendar__WEBPACK_IMPORTED_MODULE_4__["default"], rangeCalendarProps);
// default width for showTime
var pickerStyle = {};
if (props.showTime) {
pickerStyle.width = '350px';
}
var _value6 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(value, 2),
startValue = _value6[0],
endValue = _value6[1];
var clearIcon = !props.disabled && props.allowClear && value && (startValue || endValue) ? h(_icon__WEBPACK_IMPORTED_MODULE_8__["default"], {
attrs: {
type: 'close-circle',
theme: 'filled'
},
'class': prefixCls + '-picker-clear',
on: {
'click': this.clearSelection
}
}) : null;
var inputIcon = h(_InputIcon__WEBPACK_IMPORTED_MODULE_16__["default"], {
attrs: { suffixIcon: suffixIcon, prefixCls: prefixCls }
});
var input = function input(_ref3) {
var inputValue = _ref3.value;
var _inputValue = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(inputValue, 2),
start = _inputValue[0],
end = _inputValue[1];
return h(
'span',
{ 'class': props.pickerInputClass },
[h('input', {
attrs: {
disabled: props.disabled,
readOnly: true,
placeholder: startPlaceholder,
tabIndex: -1
},
domProps: {
'value': Object(_utils__WEBPACK_IMPORTED_MODULE_15__["formatDate"])(start, props.format)
},
'class': prefixCls + '-range-picker-input' }), h(
'span',
{ 'class': prefixCls + '-range-picker-separator' },
[' ', separator, ' ']
), h('input', {
attrs: {
disabled: props.disabled,
readOnly: true,
placeholder: endPlaceholder,
tabIndex: -1
},
domProps: {
'value': Object(_utils__WEBPACK_IMPORTED_MODULE_15__["formatDate"])(end, props.format)
},
'class': prefixCls + '-range-picker-input' }), clearIcon, inputIcon]
);
};
var vcDatePickerProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["mergeProps"])({
props: props,
on: listeners
}, pickerChangeHandler, {
props: {
calendar: calendar,
value: value,
open: open,
prefixCls: prefixCls + '-picker-container'
},
on: {
openChange: this.handleOpenChange
},
style: popupStyle,
scopedSlots: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({ 'default': input }, $scopedSlots)
});
return h(
'span',
{
ref: 'picker',
'class': props.pickerClass,
style: pickerStyle,
attrs: { tabIndex: props.disabled ? -1 : 0
},
on: {
'focus': focus,
'blur': blur,
'mouseenter': this.onMouseEnter,
'mouseleave': this.onMouseLeave
}
},
[h(_vc_calendar_src_Picker__WEBPACK_IMPORTED_MODULE_5__["default"], vcDatePickerProps)]
);
}
});
/***/ }),
/***/ "./components/date-picker/WeekPicker.jsx":
/*!***********************************************!*\
!*** ./components/date-picker/WeekPicker.jsx ***!
\***********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "moment");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _vc_calendar__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../vc-calendar */ "./components/vc-calendar/index.js");
/* harmony import */ var _vc_calendar_src_Picker__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../vc-calendar/src/Picker */ "./components/vc-calendar/src/Picker.jsx");
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./interface */ "./components/date-picker/interface.js");
/* harmony import */ var _util_interopDefault__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/interopDefault */ "./components/_util/interopDefault.js");
/* harmony import */ var _InputIcon__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./InputIcon */ "./components/date-picker/InputIcon.js");
function formatValue(value, format) {
return value && value.format(format) || '';
}
function noop() {}
/* harmony default export */ __webpack_exports__["default"] = ({
// static defaultProps = {
// format: 'YYYY-wo',
// allowClear: true,
// };
// private input: any;
name: 'AWeekPicker',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__["default"]],
model: {
prop: 'value',
event: 'change'
},
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["initDefaultProps"])(Object(_interface__WEBPACK_IMPORTED_MODULE_8__["WeekPickerProps"])(), {
format: 'gggg-wo',
allowClear: true
}),
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__["ConfigConsumerProps"];
} }
},
data: function data() {
var value = this.value || this.defaultValue;
if (value && !Object(_util_interopDefault__WEBPACK_IMPORTED_MODULE_9__["default"])(moment__WEBPACK_IMPORTED_MODULE_1__).isMoment(value)) {
throw new Error('The value/defaultValue of WeekPicker or MonthPicker must be ' + 'a moment object');
}
return {
_value: value,
_open: this.open
};
},
watch: {
value: function value(val) {
var state = { _value: val };
this.setState(state);
this.prevState = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.$data, state);
},
open: function open(val) {
var state = { _open: val };
this.setState(state);
this.prevState = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.$data, state);
},
_open: function _open(val, oldVal) {
var _this = this;
this.$nextTick(function () {
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(_this, 'open') && oldVal && !val) {
_this.focus();
}
});
}
},
mounted: function mounted() {
this.prevState = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.$data);
},
updated: function updated() {
var _this2 = this;
this.$nextTick(function () {
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(_this2, 'open') && _this2.prevState._open && !_this2._open) {
_this2.focus();
}
});
},
methods: {
weekDateRender: function weekDateRender(current) {
var h = this.$createElement;
var selectedValue = this.$data._value;
var prefixCls = this._prefixCls,
$scopedSlots = this.$scopedSlots;
var dateRender = this.dateRender || $scopedSlots.dateRender;
var dateNode = dateRender ? dateRender(current) : current.date();
if (selectedValue && current.year() === selectedValue.year() && current.week() === selectedValue.week()) {
return h(
'div',
{ 'class': prefixCls + '-selected-day' },
[h(
'div',
{ 'class': prefixCls + '-date' },
[dateNode]
)]
);
}
return h(
'div',
{ 'class': prefixCls + '-date' },
[dateNode]
);
},
handleChange: function handleChange(value) {
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'value')) {
this.setState({ _value: value });
}
this.$emit('change', value, formatValue(value, this.format));
},
handleOpenChange: function handleOpenChange(open) {
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'open')) {
this.setState({ _open: open });
}
this.$emit('openChange', open);
},
clearSelection: function clearSelection(e) {
e.preventDefault();
e.stopPropagation();
this.handleChange(null);
},
focus: function focus() {
this.$refs.input.focus();
},
blur: function blur() {
this.$refs.input.blur();
},
renderFooter: function renderFooter() {
var h = this.$createElement;
var prefixCls = this._prefixCls,
$scopedSlots = this.$scopedSlots;
var renderExtraFooter = this.renderExtraFooter || $scopedSlots.renderExtraFooter;
return renderExtraFooter ? h(
'div',
{ 'class': prefixCls + '-footer-extra' },
[renderExtraFooter.apply(undefined, arguments)]
) : null;
}
},
render: function render() {
var h = arguments[0];
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(this);
var suffixIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'suffixIcon');
suffixIcon = Array.isArray(suffixIcon) ? suffixIcon[0] : suffixIcon;
var customizePrefixCls = this.prefixCls,
disabled = this.disabled,
pickerClass = this.pickerClass,
popupStyle = this.popupStyle,
pickerInputClass = this.pickerInputClass,
format = this.format,
allowClear = this.allowClear,
locale = this.locale,
localeCode = this.localeCode,
disabledDate = this.disabledDate,
defaultPickerValue = this.defaultPickerValue,
$data = this.$data,
$scopedSlots = this.$scopedSlots;
var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this);
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('calendar', customizePrefixCls);
this._prefixCls = prefixCls;
var pickerValue = $data._value,
open = $data._open;
var _listeners$focus = listeners.focus,
focus = _listeners$focus === undefined ? noop : _listeners$focus,
_listeners$blur = listeners.blur,
blur = _listeners$blur === undefined ? noop : _listeners$blur;
if (pickerValue && localeCode) {
pickerValue.locale(localeCode);
}
var placeholder = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'placeholder') ? this.placeholder : locale.lang.placeholder;
var weekDateRender = this.dateRender || $scopedSlots.dateRender || this.weekDateRender;
var calendar = h(_vc_calendar__WEBPACK_IMPORTED_MODULE_2__["default"], {
attrs: {
showWeekNumber: true,
dateRender: weekDateRender,
prefixCls: prefixCls,
format: format,
locale: locale.lang,
showDateInput: false,
showToday: false,
disabledDate: disabledDate,
renderFooter: this.renderFooter,
defaultValue: defaultPickerValue
}
});
var clearIcon = !disabled && allowClear && $data._value ? h(_icon__WEBPACK_IMPORTED_MODULE_4__["default"], {
attrs: {
type: 'close-circle',
theme: 'filled'
},
'class': prefixCls + '-picker-clear',
on: {
'click': this.clearSelection
}
}) : null;
var inputIcon = h(_InputIcon__WEBPACK_IMPORTED_MODULE_10__["default"], {
attrs: { suffixIcon: suffixIcon, prefixCls: prefixCls }
});
var input = function input(_ref) {
var value = _ref.value;
return h(
'span',
{ style: { display: 'inline-block', width: '100%' } },
[h('input', {
ref: 'input',
attrs: { disabled: disabled,
readOnly: true,
placeholder: placeholder
},
domProps: {
'value': value && value.format(format) || ''
},
'class': pickerInputClass,
on: {
'focus': focus,
'blur': blur
}
}), clearIcon, inputIcon]
);
};
var vcDatePickerProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
calendar: calendar,
prefixCls: prefixCls + '-picker-container',
value: pickerValue,
open: open
}),
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, listeners, {
change: this.handleChange,
openChange: this.handleOpenChange
}),
style: popupStyle,
scopedSlots: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({ 'default': input }, $scopedSlots)
};
return h(
'span',
{ 'class': pickerClass },
[h(_vc_calendar_src_Picker__WEBPACK_IMPORTED_MODULE_3__["default"], vcDatePickerProps)]
);
}
});
/***/ }),
/***/ "./components/date-picker/createPicker.js":
/*!************************************************!*\
!*** ./components/date-picker/createPicker.js ***!
\************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return createPicker; });
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! moment */ "moment");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/omit */ "./node_modules/lodash/omit.js");
/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _vc_calendar_src_MonthCalendar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../vc-calendar/src/MonthCalendar */ "./components/vc-calendar/src/MonthCalendar.jsx");
/* harmony import */ var _vc_calendar_src_Picker__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vc-calendar/src/Picker */ "./components/vc-calendar/src/Picker.jsx");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _util_interopDefault__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/interopDefault */ "./components/_util/interopDefault.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./utils */ "./components/date-picker/utils.js");
// export const PickerProps = {
// value?: moment.Moment;
// prefixCls: string;
// }
function noop() {}
function createPicker(TheCalendar, props) {
return {
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["initDefaultProps"])(props, {
allowClear: true,
showToday: true
}),
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_10__["default"]],
model: {
prop: 'value',
event: 'change'
},
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__["ConfigConsumerProps"];
} }
},
data: function data() {
var value = this.value || this.defaultValue;
if (value && !Object(_util_interopDefault__WEBPACK_IMPORTED_MODULE_9__["default"])(moment__WEBPACK_IMPORTED_MODULE_2__).isMoment(value)) {
throw new Error('The value/defaultValue of DatePicker or MonthPicker must be ' + 'a moment object');
}
return {
sValue: value,
showDate: value,
_open: !!this.open
};
},
watch: {
open: function open(val) {
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getOptionProps"])(this);
var state = {};
state._open = val;
if ('value' in props && !val && props.value !== this.showDate) {
state.showDate = props.value;
}
this.setState(state);
},
value: function value(val) {
var state = {};
state.sValue = val;
if (val !== this.sValue) {
state.showDate = val;
}
this.setState(state);
},
_open: function _open(val, oldVal) {
var _this = this;
this.$nextTick(function () {
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["hasProp"])(_this, 'open') && oldVal && !val) {
_this.focus();
}
});
}
},
methods: {
clearSelection: function clearSelection(e) {
e.preventDefault();
e.stopPropagation();
this.handleChange(null);
},
handleChange: function handleChange(value) {
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["hasProp"])(this, 'value')) {
this.setState({
sValue: value,
showDate: value
});
}
this.$emit('change', value, Object(_utils__WEBPACK_IMPORTED_MODULE_13__["formatDate"])(value, this.format));
},
handleCalendarChange: function handleCalendarChange(value) {
this.setState({ showDate: value });
},
handleOpenChange: function handleOpenChange(open) {
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getOptionProps"])(this);
if (!('open' in props)) {
this.setState({ _open: open });
}
this.$emit('openChange', open);
},
focus: function focus() {
this.$refs.input.focus();
},
blur: function blur() {
this.$refs.input.blur();
},
renderFooter: function renderFooter() {
var h = this.$createElement;
var $scopedSlots = this.$scopedSlots,
$slots = this.$slots,
prefixCls = this._prefixCls;
var renderExtraFooter = this.renderExtraFooter || $scopedSlots.renderExtraFooter || $slots.renderExtraFooter;
return renderExtraFooter ? h(
'div',
{ 'class': prefixCls + '-footer-extra' },
[typeof renderExtraFooter === 'function' ? renderExtraFooter.apply(undefined, arguments) : renderExtraFooter]
) : null;
},
onMouseEnter: function onMouseEnter(e) {
this.$emit('mouseenter', e);
},
onMouseLeave: function onMouseLeave(e) {
this.$emit('mouseleave', e);
}
},
render: function render() {
var _classNames,
_this2 = this;
var h = arguments[0];
var $scopedSlots = this.$scopedSlots;
var _$data = this.$data,
value = _$data.sValue,
showDate = _$data.showDate,
open = _$data._open;
var suffixIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'suffixIcon');
suffixIcon = Array.isArray(suffixIcon) ? suffixIcon[0] : suffixIcon;
var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getListeners"])(this);
var _listeners$panelChang = listeners.panelChange,
panelChange = _listeners$panelChang === undefined ? noop : _listeners$panelChang,
_listeners$focus = listeners.focus,
focus = _listeners$focus === undefined ? noop : _listeners$focus,
_listeners$blur = listeners.blur,
blur = _listeners$blur === undefined ? noop : _listeners$blur,
_listeners$ok = listeners.ok,
ok = _listeners$ok === undefined ? noop : _listeners$ok;
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getOptionProps"])(this);
var customizePrefixCls = props.prefixCls,
locale = props.locale,
localeCode = props.localeCode,
inputReadOnly = props.inputReadOnly;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('calendar', customizePrefixCls);
this._prefixCls = prefixCls;
var dateRender = props.dateRender || $scopedSlots.dateRender;
var monthCellContentRender = props.monthCellContentRender || $scopedSlots.monthCellContentRender;
var placeholder = 'placeholder' in props ? props.placeholder : locale.lang.placeholder;
var disabledTime = props.showTime ? props.disabledTime : null;
var calendarClassName = classnames__WEBPACK_IMPORTED_MODULE_6___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-time', props.showTime), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-month', _vc_calendar_src_MonthCalendar__WEBPACK_IMPORTED_MODULE_4__["default"] === TheCalendar), _classNames));
if (value && localeCode) {
value.locale(localeCode);
}
var pickerProps = { props: {}, on: {} };
var calendarProps = { props: {}, on: {} };
var pickerStyle = {};
if (props.showTime) {
// fix https://github.com/ant-design/ant-design/issues/1902
calendarProps.on.select = this.handleChange;
pickerStyle.minWidth = '195px';
} else {
pickerProps.on.change = this.handleChange;
}
if ('mode' in props) {
calendarProps.props.mode = props.mode;
}
var theCalendarProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["mergeProps"])(calendarProps, {
props: {
disabledDate: props.disabledDate,
disabledTime: disabledTime,
locale: locale.lang,
timePicker: props.timePicker,
defaultValue: props.defaultPickerValue || Object(_util_interopDefault__WEBPACK_IMPORTED_MODULE_9__["default"])(moment__WEBPACK_IMPORTED_MODULE_2__)(),
dateInputPlaceholder: placeholder,
prefixCls: prefixCls,
dateRender: dateRender,
format: props.format,
showToday: props.showToday,
monthCellContentRender: monthCellContentRender,
renderFooter: this.renderFooter,
value: showDate,
inputReadOnly: inputReadOnly
},
on: {
ok: ok,
panelChange: panelChange,
change: this.handleCalendarChange
},
'class': calendarClassName,
scopedSlots: $scopedSlots
});
var calendar = h(TheCalendar, theCalendarProps);
var clearIcon = !props.disabled && props.allowClear && value ? h(_icon__WEBPACK_IMPORTED_MODULE_7__["default"], {
attrs: {
type: 'close-circle',
theme: 'filled'
},
'class': prefixCls + '-picker-clear',
on: {
'click': this.clearSelection
}
}) : null;
var inputIcon = suffixIcon && (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["isValidElement"])(suffixIcon) ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_12__["cloneElement"])(suffixIcon, {
'class': prefixCls + '-picker-icon'
}) : h(
'span',
{ 'class': prefixCls + '-picker-icon' },
[suffixIcon]
)) || h(_icon__WEBPACK_IMPORTED_MODULE_7__["default"], {
attrs: { type: 'calendar' },
'class': prefixCls + '-picker-icon' });
var input = function input(_ref) {
var inputValue = _ref.value;
return h('div', [h('input', {
ref: 'input',
attrs: { disabled: props.disabled,
readOnly: true,
placeholder: placeholder,
tabIndex: props.tabIndex,
name: _this2.name
},
on: {
'focus': focus,
'blur': blur
},
domProps: {
'value': Object(_utils__WEBPACK_IMPORTED_MODULE_13__["formatDate"])(inputValue, _this2.format)
},
'class': props.pickerInputClass }), clearIcon, inputIcon]);
};
var vcDatePickerProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, pickerProps.props, {
calendar: calendar,
value: value,
prefixCls: prefixCls + '-picker-container'
}),
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, lodash_omit__WEBPACK_IMPORTED_MODULE_3___default()(listeners, 'change'), pickerProps.on, {
open: open,
onOpenChange: this.handleOpenChange
}),
style: props.popupStyle,
scopedSlots: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({ 'default': input }, $scopedSlots)
};
return h(
'span',
{
'class': props.pickerClass,
style: pickerStyle
// tabIndex={props.disabled ? -1 : 0}
// onFocus={focus}
// onBlur={blur}
, on: {
'mouseenter': this.onMouseEnter,
'mouseleave': this.onMouseLeave
}
},
[h(_vc_calendar_src_Picker__WEBPACK_IMPORTED_MODULE_5__["default"], vcDatePickerProps)]
);
}
};
}
/***/ }),
/***/ "./components/date-picker/index.js":
/*!*****************************************!*\
!*** ./components/date-picker/index.js ***!
\*****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _vc_calendar__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../vc-calendar */ "./components/vc-calendar/index.js");
/* harmony import */ var _vc_calendar_src_MonthCalendar__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../vc-calendar/src/MonthCalendar */ "./components/vc-calendar/src/MonthCalendar.jsx");
/* harmony import */ var _createPicker__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./createPicker */ "./components/date-picker/createPicker.js");
/* harmony import */ var _wrapPicker__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./wrapPicker */ "./components/date-picker/wrapPicker.js");
/* harmony import */ var _RangePicker__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./RangePicker */ "./components/date-picker/RangePicker.jsx");
/* harmony import */ var _WeekPicker__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./WeekPicker */ "./components/date-picker/WeekPicker.jsx");
/* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./interface */ "./components/date-picker/interface.js");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
var DatePicker = Object(_wrapPicker__WEBPACK_IMPORTED_MODULE_4__["default"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_createPicker__WEBPACK_IMPORTED_MODULE_3__["default"])(_vc_calendar__WEBPACK_IMPORTED_MODULE_1__["default"], Object(_interface__WEBPACK_IMPORTED_MODULE_7__["DatePickerProps"])()), { name: 'ADatePicker' }), Object(_interface__WEBPACK_IMPORTED_MODULE_7__["DatePickerProps"])(), 'date');
var MonthPicker = Object(_wrapPicker__WEBPACK_IMPORTED_MODULE_4__["default"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_createPicker__WEBPACK_IMPORTED_MODULE_3__["default"])(_vc_calendar_src_MonthCalendar__WEBPACK_IMPORTED_MODULE_2__["default"], Object(_interface__WEBPACK_IMPORTED_MODULE_7__["MonthPickerProps"])()), { name: 'AMonthPicker' }), Object(_interface__WEBPACK_IMPORTED_MODULE_7__["MonthPickerProps"])(), 'month');
babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()(DatePicker, {
RangePicker: Object(_wrapPicker__WEBPACK_IMPORTED_MODULE_4__["default"])(_RangePicker__WEBPACK_IMPORTED_MODULE_5__["default"], Object(_interface__WEBPACK_IMPORTED_MODULE_7__["RangePickerProps"])(), 'date'),
MonthPicker: MonthPicker,
WeekPicker: Object(_wrapPicker__WEBPACK_IMPORTED_MODULE_4__["default"])(_WeekPicker__WEBPACK_IMPORTED_MODULE_6__["default"], Object(_interface__WEBPACK_IMPORTED_MODULE_7__["WeekPickerProps"])(), 'week')
});
/* istanbul ignore next */
DatePicker.install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_8__["default"]);
Vue.component(DatePicker.name, DatePicker);
Vue.component(DatePicker.RangePicker.name, DatePicker.RangePicker);
Vue.component(DatePicker.MonthPicker.name, DatePicker.MonthPicker);
Vue.component(DatePicker.WeekPicker.name, DatePicker.WeekPicker);
};
/* harmony default export */ __webpack_exports__["default"] = (DatePicker);
/***/ }),
/***/ "./components/date-picker/interface.js":
/*!*********************************************!*\
!*** ./components/date-picker/interface.js ***!
\*********************************************/
/*! exports provided: PickerProps, SinglePickerProps, DatePickerProps, MonthPickerProps, RangePickerProps, WeekPickerProps */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PickerProps", function() { return PickerProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SinglePickerProps", function() { return SinglePickerProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DatePickerProps", function() { return DatePickerProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MonthPickerProps", function() { return MonthPickerProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RangePickerProps", function() { return RangePickerProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WeekPickerProps", function() { return WeekPickerProps; });
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_moment_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/moment-util */ "./components/_util/moment-util.js");
// import { TimePickerProps } from '../time-picker'
var PickerProps = function PickerProps() {
return {
name: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
inputPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
format: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func]),
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
allowClear: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
suffixIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
popupStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
dropdownClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
localeCode: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
size: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['large', 'small', 'default']),
getCalendarContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
open: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
// onOpenChange: PropTypes.(status: bool) => void,
disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
showToday: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
dateRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any, // (current: moment.Moment, today: moment.Moment) => React.ReactNode,
pickerClass: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
pickerInputClass: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
timePicker: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
tagPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number]),
align: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object.def(function () {
return {};
}),
inputReadOnly: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
valueFormat: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string
};
};
var SinglePickerProps = function SinglePickerProps() {
return {
value: _util_moment_util__WEBPACK_IMPORTED_MODULE_2__["TimeType"],
defaultValue: _util_moment_util__WEBPACK_IMPORTED_MODULE_2__["TimeType"],
defaultPickerValue: _util_moment_util__WEBPACK_IMPORTED_MODULE_2__["TimeType"],
renderExtraFooter: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string
// onChange?: (date: moment.Moment, dateString: string) => void;
};
};
var DatePickerProps = function DatePickerProps() {
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, PickerProps(), SinglePickerProps(), {
showTime: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool]),
open: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
disabledTime: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
// onOpenChange?: (status: bool) => void;
// onOk?: (selectedTime: moment.Moment) => void;
mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['time', 'date', 'month', 'year', 'decade'])
});
};
var MonthPickerProps = function MonthPickerProps() {
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, PickerProps(), SinglePickerProps(), {
placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
monthCellContentRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
});
};
// export const RangePickerPresetRange = PropTypes.oneOfType([TimesType, PropTypes.func])
var RangePickerProps = function RangePickerProps() {
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, PickerProps(), {
tagPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
value: _util_moment_util__WEBPACK_IMPORTED_MODULE_2__["TimesType"],
defaultValue: _util_moment_util__WEBPACK_IMPORTED_MODULE_2__["TimesType"],
defaultPickerValue: _util_moment_util__WEBPACK_IMPORTED_MODULE_2__["TimesType"],
timePicker: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
// onChange?: (dates: TimesType, dateStrings: [string, string]) => void;
// onCalendarChange?: (dates: TimesType, dateStrings: [string, string]) => void;
// onOk?: (selectedTime: moment.Moment) => void;
showTime: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool]),
ranges: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(String),
mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(String)]),
separator: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
disabledTime: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
showToday: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
renderExtraFooter: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
// onPanelChange?: (value?: TimesType, mode?: string | string[]) => void;
});
};
var WeekPickerProps = function WeekPickerProps() {
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, PickerProps(), SinglePickerProps(), {
placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string
});
};
// export interface DatePickerDecorator extends React.ClassicComponentClass<DatePickerProps> {
// RangePicker: React.ClassicComponentClass<RangePickerProps>;
// MonthPicker: React.ClassicComponentClass<MonthPickerProps>;
// WeekPicker: React.ClassicComponentClass<WeexPickerProps>;
// }
/***/ }),
/***/ "./components/date-picker/locale/en_US.js":
/*!************************************************!*\
!*** ./components/date-picker/locale/en_US.js ***!
\************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _vc_calendar_src_locale_en_US__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../vc-calendar/src/locale/en_US */ "./components/vc-calendar/src/locale/en_US.js");
/* harmony import */ var _time_picker_locale_en_US__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../time-picker/locale/en_US */ "./components/time-picker/locale/en_US.js");
// Merge into a locale object
var locale = {
lang: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
placeholder: 'Select date',
rangePlaceholder: ['Start date', 'End date']
}, _vc_calendar_src_locale_en_US__WEBPACK_IMPORTED_MODULE_1__["default"]),
timePickerLocale: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _time_picker_locale_en_US__WEBPACK_IMPORTED_MODULE_2__["default"])
};
// All settings at:
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
/* harmony default export */ __webpack_exports__["default"] = (locale);
/***/ }),
/***/ "./components/date-picker/style/index.js":
/*!***********************************************!*\
!*** ./components/date-picker/style/index.js ***!
\***********************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/date-picker/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _input_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../input/style */ "./components/input/style/index.js");
/* harmony import */ var _time_picker_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../time-picker/style */ "./components/time-picker/style/index.js");
/* harmony import */ var _tag_style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../tag/style */ "./components/tag/style/index.js");
// style dependencies
// deps-lint-skip: input
/***/ }),
/***/ "./components/date-picker/style/index.less":
/*!*************************************************!*\
!*** ./components/date-picker/style/index.less ***!
\*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/date-picker/utils.js":
/*!*****************************************!*\
!*** ./components/date-picker/utils.js ***!
\*****************************************/
/*! exports provided: formatDate */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatDate", function() { return formatDate; });
function formatDate(value, format) {
if (!value) {
return '';
}
if (Array.isArray(format)) {
format = format[0];
}
if (typeof format === 'function') {
var result = format(value);
if (typeof result === 'string') {
return result;
} else {
throw new Error('The function of format does not return a string');
}
}
return value.format(format);
}
/***/ }),
/***/ "./components/date-picker/wrapPicker.js":
/*!**********************************************!*\
!*** ./components/date-picker/wrapPicker.js ***!
\**********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return wrapPicker; });
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _vc_time_picker_Panel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../vc-time-picker/Panel */ "./components/vc-time-picker/Panel.jsx");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./components/locale-provider/LocaleReceiver.jsx");
/* harmony import */ var _time_picker__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../time-picker */ "./components/time-picker/index.jsx");
/* harmony import */ var _locale_en_US__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./locale/en_US */ "./components/date-picker/locale/en_US.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _util_moment_util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/moment-util */ "./components/_util/moment-util.js");
var DEFAULT_FORMAT = {
date: 'YYYY-MM-DD',
dateTime: 'YYYY-MM-DD HH:mm:ss',
week: 'gggg-wo',
month: 'YYYY-MM'
};
var LOCALE_FORMAT_MAPPING = {
date: 'dateFormat',
dateTime: 'dateTimeFormat',
week: 'weekFormat',
month: 'monthFormat'
};
function getColumns(_ref) {
var showHour = _ref.showHour,
showMinute = _ref.showMinute,
showSecond = _ref.showSecond,
use12Hours = _ref.use12Hours;
var column = 0;
if (showHour) {
column += 1;
}
if (showMinute) {
column += 1;
}
if (showSecond) {
column += 1;
}
if (use12Hours) {
column += 1;
}
return column;
}
function wrapPicker(Picker, props, pickerType) {
return {
name: Picker.name,
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["initDefaultProps"])(props, {
transitionName: 'slide-up',
popupStyle: {},
locale: {}
}),
model: {
prop: 'value',
event: 'change'
},
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__["ConfigConsumerProps"];
} }
},
provide: function provide() {
return {
savePopupRef: this.savePopupRef
};
},
mounted: function mounted() {
var _this = this;
var autoFocus = this.autoFocus,
disabled = this.disabled,
value = this.value,
defaultValue = this.defaultValue,
valueFormat = this.valueFormat;
Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_9__["checkValidate"])('DatePicker', defaultValue, 'defaultValue', valueFormat);
Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_9__["checkValidate"])('DatePicker', value, 'value', valueFormat);
if (autoFocus && !disabled) {
this.$nextTick(function () {
_this.focus();
});
}
},
watch: {
value: function value(val) {
Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_9__["checkValidate"])('DatePicker', val, 'value', this.valueFormat);
}
},
methods: {
getDefaultLocale: function getDefaultLocale() {
var result = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, _locale_en_US__WEBPACK_IMPORTED_MODULE_6__["default"], this.locale);
result.lang = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, result.lang, (this.locale || {}).lang);
return result;
},
savePopupRef: function savePopupRef(ref) {
this.popupRef = ref;
},
handleOpenChange: function handleOpenChange(open) {
this.$emit('openChange', open);
},
handleFocus: function handleFocus(e) {
this.$emit('focus', e);
},
handleBlur: function handleBlur(e) {
this.$emit('blur', e);
},
handleMouseEnter: function handleMouseEnter(e) {
this.$emit('mouseenter', e);
},
handleMouseLeave: function handleMouseLeave(e) {
this.$emit('mouseleave', e);
},
handleChange: function handleChange(date, dateString) {
this.$emit('change', this.valueFormat ? Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_9__["momentToString"])(date, this.valueFormat) : date, dateString);
},
handleOk: function handleOk(val) {
this.$emit('ok', this.valueFormat ? Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_9__["momentToString"])(val, this.valueFormat) : val);
},
handleCalendarChange: function handleCalendarChange(date, dateString) {
this.$emit('calendarChange', this.valueFormat ? Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_9__["momentToString"])(date, this.valueFormat) : date, dateString);
},
focus: function focus() {
this.$refs.picker.focus();
},
blur: function blur() {
this.$refs.picker.blur();
},
transformValue: function transformValue(props) {
if ('value' in props) {
props.value = Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_9__["stringToMoment"])(props.value, this.valueFormat);
}
if ('defaultValue' in props) {
props.defaultValue = Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_9__["stringToMoment"])(props.defaultValue, this.valueFormat);
}
if ('defaultPickerValue' in props) {
props.defaultPickerValue = Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_9__["stringToMoment"])(props.defaultPickerValue, this.valueFormat);
}
},
renderPicker: function renderPicker(locale, localeCode) {
var _classNames2,
_this2 = this;
var h = this.$createElement;
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(this);
this.transformValue(props);
var customizePrefixCls = props.prefixCls,
customizeInputPrefixCls = props.inputPrefixCls,
getCalendarContainer = props.getCalendarContainer,
size = props.size,
showTime = props.showTime,
disabled = props.disabled,
format = props.format;
var mergedPickerType = showTime ? pickerType + 'Time' : pickerType;
var mergedFormat = format || locale[LOCALE_FORMAT_MAPPING[mergedPickerType]] || DEFAULT_FORMAT[mergedPickerType];
var _configProvider = this.configProvider,
getPrefixCls = _configProvider.getPrefixCls,
getContextPopupContainer = _configProvider.getPopupContainer;
var getPopupContainer = getCalendarContainer || getContextPopupContainer;
var prefixCls = getPrefixCls('calendar', customizePrefixCls);
var inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
var pickerClass = classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls + '-picker', babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, prefixCls + '-picker-' + size, !!size));
var pickerInputClass = classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls + '-picker-input', inputPrefixCls, (_classNames2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, inputPrefixCls + '-lg', size === 'large'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, inputPrefixCls + '-sm', size === 'small'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, inputPrefixCls + '-disabled', disabled), _classNames2));
var timeFormat = showTime && showTime.format || 'HH:mm:ss';
var vcTimePickerProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_time_picker__WEBPACK_IMPORTED_MODULE_5__["generateShowHourMinuteSecond"])(timeFormat), {
format: timeFormat,
use12Hours: showTime && showTime.use12Hours
});
var columns = getColumns(vcTimePickerProps);
var timePickerCls = prefixCls + '-time-picker-column-' + columns;
var timePickerPanelProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, vcTimePickerProps, showTime, {
prefixCls: prefixCls + '-time-picker',
placeholder: locale.timePickerLocale.placeholder,
transitionName: 'slide-up'
}),
'class': timePickerCls,
on: {
esc: function esc() {}
}
};
var timePicker = showTime ? h(_vc_time_picker_Panel__WEBPACK_IMPORTED_MODULE_2__["default"], timePickerPanelProps) : null;
var pickerProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
getCalendarContainer: getPopupContainer,
format: mergedFormat,
pickerClass: pickerClass,
pickerInputClass: pickerInputClass,
locale: locale,
localeCode: localeCode,
timePicker: timePicker
}),
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this), {
openChange: this.handleOpenChange,
focus: this.handleFocus,
blur: this.handleBlur,
mouseenter: this.handleMouseEnter,
mouseleave: this.handleMouseLeave,
change: this.handleChange,
ok: this.handleOk,
calendarChange: this.handleCalendarChange
}),
ref: 'picker',
scopedSlots: this.$scopedSlots || {}
};
return h(
Picker,
pickerProps,
[this.$slots && Object.keys(this.$slots).map(function (key) {
return h(
'template',
{ slot: key, key: key },
[_this2.$slots[key]]
);
})]
);
}
},
render: function render() {
var h = arguments[0];
return h(_locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_4__["default"], {
attrs: {
componentName: 'DatePicker',
defaultLocale: this.getDefaultLocale
},
scopedSlots: { 'default': this.renderPicker }
});
}
};
}
/***/ }),
/***/ "./components/descriptions/Col.jsx":
/*!*****************************************!*\
!*** ./components/descriptions/Col.jsx ***!
\*****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
var ColProps = {
child: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
bordered: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
colon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
type: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['label', 'content']),
layout: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['horizontal', 'vertical'])
};
var Col = {
functional: true,
props: ColProps,
render: function render(h, ctx) {
var _ref;
var _ctx$props = ctx.props,
child = _ctx$props.child,
bordered = _ctx$props.bordered,
colon = _ctx$props.colon,
type = _ctx$props.type,
layout = _ctx$props.layout;
var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getOptionProps"])(child),
prefixCls = _getOptionProps.prefixCls,
_getOptionProps$span = _getOptionProps.span,
span = _getOptionProps$span === undefined ? 1 : _getOptionProps$span;
var key = ctx.data.key;
var label = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(child, 'label');
var slots = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getSlots"])(child);
var labelProps = {
attrs: {},
'class': [prefixCls + '-item-label', (_ref = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, prefixCls + '-item-colon', colon), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, prefixCls + '-item-no-label', !label), _ref)],
key: key + '-label'
};
if (layout === 'vertical') {
labelProps.attrs.colSpan = span * 2 - 1;
}
if (bordered) {
if (type === 'label') {
return h(
'th',
labelProps,
[label]
);
}
return h(
'td',
{ 'class': prefixCls + '-item-content', key: key + '-content', attrs: { colSpan: span * 2 - 1 }
},
[slots['default']]
);
}
if (layout === 'vertical') {
if (type === 'content') {
return h(
'td',
{
attrs: { colSpan: span },
'class': prefixCls + '-item' },
[h(
'span',
{ 'class': prefixCls + '-item-content', key: key + '-content' },
[slots['default']]
)]
);
}
return h(
'td',
{
attrs: { colSpan: span },
'class': prefixCls + '-item' },
[h(
'span',
{
'class': [prefixCls + '-item-label', babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, prefixCls + '-item-colon', colon)],
key: key + '-label'
},
[label]
)]
);
}
return h(
'td',
{
attrs: { colSpan: span },
'class': prefixCls + '-item' },
[h(
'span',
labelProps,
[label]
), h(
'span',
{ 'class': prefixCls + '-item-content', key: key + '-content' },
[slots['default']]
)]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (Col);
/***/ }),
/***/ "./components/descriptions/index.jsx":
/*!*******************************************!*\
!*** ./components/descriptions/index.jsx ***!
\*******************************************/
/*! exports provided: DescriptionsItemProps, DescriptionsItem, DescriptionsProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescriptionsItemProps", function() { return DescriptionsItemProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescriptionsItem", function() { return DescriptionsItem; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DescriptionsProps", function() { return DescriptionsProps; });
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
/* harmony import */ var _util_responsiveObserve__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/responsiveObserve */ "./components/_util/responsiveObserve.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _Col__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Col */ "./components/descriptions/Col.jsx");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
var DescriptionsItemProps = {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
label: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
span: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number
};
function toArray(value) {
var ret = value;
if (value === undefined) {
ret = [];
} else if (!Array.isArray(value)) {
ret = [value];
}
return ret;
}
var DescriptionsItem = {
name: 'ADescriptionsItem',
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["initDefaultProps"])(DescriptionsItemProps, { span: 1 })
};
var DescriptionsProps = {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
bordered: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
size: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['default', 'middle', 'small']).def('default'),
title: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
column: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object]),
layout: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['horizontal', 'vertical']),
colon: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool
};
/**
* Convert children into `column` groups.
* @param children: DescriptionsItem
* @param column: number
*/
var generateChildrenRows = function generateChildrenRows(children, column) {
var rows = [];
var columns = null;
var leftSpans = void 0;
var itemNodes = toArray(children);
itemNodes.forEach(function (node, index) {
var itemProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(node);
var itemNode = node;
if (!columns) {
leftSpans = column;
columns = [];
rows.push(columns);
}
// Always set last span to align the end of Descriptions
var lastItem = index === itemNodes.length - 1;
var lastSpanSame = true;
if (lastItem) {
lastSpanSame = !itemProps.span || itemProps.span === leftSpans;
itemNode = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_10__["cloneElement"])(itemNode, {
props: {
span: leftSpans
}
});
}
// Calculate left fill span
var _itemProps$span = itemProps.span,
span = _itemProps$span === undefined ? 1 : _itemProps$span;
columns.push(itemNode);
leftSpans -= span;
if (leftSpans <= 0) {
columns = null;
Object(_util_warning__WEBPACK_IMPORTED_MODULE_2__["default"])(leftSpans === 0 && lastSpanSame, 'Descriptions', 'Sum of column `span` in a line exceeds `column` of Descriptions.');
}
});
return rows;
};
var defaultColumnMap = {
xxl: 3,
xl: 3,
lg: 3,
md: 3,
sm: 2,
xs: 1
};
var Descriptions = {
name: 'ADescriptions',
Item: DescriptionsItem,
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__["default"]],
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__["ConfigConsumerProps"];
} }
},
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["initDefaultProps"])(DescriptionsProps, {
column: defaultColumnMap
}),
data: function data() {
return {
screens: {},
token: undefined
};
},
methods: {
getColumn: function getColumn() {
var column = this.$props.column;
if ((typeof column === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(column)) === 'object') {
for (var i = 0; i < _util_responsiveObserve__WEBPACK_IMPORTED_MODULE_3__["responsiveArray"].length; i++) {
var breakpoint = _util_responsiveObserve__WEBPACK_IMPORTED_MODULE_3__["responsiveArray"][i];
if (this.screens[breakpoint] && column[breakpoint] !== undefined) {
return column[breakpoint] || defaultColumnMap[breakpoint];
}
}
}
// If the configuration is not an object, it is a number, return number
if (typeof column === 'number') {
return column;
}
// If it is an object, but no response is found, this happens only in the test.
// Maybe there are some strange environments
return 3;
},
renderRow: function renderRow(children, index, _ref, bordered, layout, colon) {
var prefixCls = _ref.prefixCls;
var h = this.$createElement;
var renderCol = function renderCol(colItem, type, idx) {
return h(_Col__WEBPACK_IMPORTED_MODULE_5__["default"], {
attrs: {
child: colItem,
bordered: bordered,
colon: colon,
type: type,
layout: layout
},
key: type + '-' + (colItem.key || idx) });
};
var cloneChildren = [];
var cloneContentChildren = [];
toArray(children).forEach(function (childrenItem, idx) {
cloneChildren.push(renderCol(childrenItem, 'label', idx));
if (layout === 'vertical') {
cloneContentChildren.push(renderCol(childrenItem, 'content', idx));
} else if (bordered) {
cloneChildren.push(renderCol(childrenItem, 'content', idx));
}
});
if (layout === 'vertical') {
return [h(
'tr',
{ 'class': prefixCls + '-row', key: 'label-' + index },
[cloneChildren]
), h(
'tr',
{ 'class': prefixCls + '-row', key: 'content-' + index },
[cloneContentChildren]
)];
}
return h(
'tr',
{ 'class': prefixCls + '-row', key: index },
[cloneChildren]
);
}
},
mounted: function mounted() {
var _this = this;
var column = this.$props.column;
this.token = _util_responsiveObserve__WEBPACK_IMPORTED_MODULE_3__["default"].subscribe(function (screens) {
if ((typeof column === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(column)) !== 'object') {
return;
}
_this.setState({
screens: screens
});
});
},
beforeDestroy: function beforeDestroy() {
_util_responsiveObserve__WEBPACK_IMPORTED_MODULE_3__["default"].unsubscribe(this.token);
},
render: function render() {
var _ref2,
_this2 = this;
var h = arguments[0];
var _$props = this.$props,
customizePrefixCls = _$props.prefixCls,
size = _$props.size,
_$props$bordered = _$props.bordered,
bordered = _$props$bordered === undefined ? false : _$props$bordered,
_$props$layout = _$props.layout,
layout = _$props$layout === undefined ? 'horizontal' : _$props$layout,
_$props$colon = _$props.colon,
colon = _$props$colon === undefined ? true : _$props$colon;
var title = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'title') || null;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('descriptions', customizePrefixCls);
var column = this.getColumn();
var children = this.$slots['default'];
var cloneChildren = toArray(children).map(function (child) {
if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["isValidElement"])(child)) {
return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_10__["cloneElement"])(child, {
props: {
prefixCls: prefixCls
}
});
}
return null;
}).filter(function (node) {
return node;
});
var childrenArray = generateChildrenRows(cloneChildren, column);
return h(
'div',
{
'class': [prefixCls, (_ref2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref2, prefixCls + '-' + size, size !== 'default'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref2, prefixCls + '-bordered', !!bordered), _ref2)]
},
[title && h(
'div',
{ 'class': prefixCls + '-title' },
[title]
), h(
'div',
{ 'class': prefixCls + '-view' },
[h('table', [h('tbody', [childrenArray.map(function (child, index) {
return _this2.renderRow(child, index, {
prefixCls: prefixCls
}, bordered, layout, colon);
})])])]
)]
);
}
};
Descriptions.install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_9__["default"]);
Vue.component(Descriptions.name, Descriptions);
Vue.component(Descriptions.Item.name, Descriptions.Item);
};
/* harmony default export */ __webpack_exports__["default"] = (Descriptions);
/***/ }),
/***/ "./components/descriptions/style/index.js":
/*!************************************************!*\
!*** ./components/descriptions/style/index.js ***!
\************************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/descriptions/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/***/ }),
/***/ "./components/descriptions/style/index.less":
/*!**************************************************!*\
!*** ./components/descriptions/style/index.less ***!
\**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/divider/index.jsx":
/*!**************************************!*\
!*** ./components/divider/index.jsx ***!
\**************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
var Divider = {
name: 'ADivider',
props: {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
type: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['horizontal', 'vertical', '']).def('horizontal'),
dashed: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
orientation: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['left', 'right', 'center'])
},
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_2__["ConfigConsumerProps"];
} }
},
render: function render() {
var _classString;
var h = arguments[0];
var customizePrefixCls = this.prefixCls,
type = this.type,
$slots = this.$slots,
dashed = this.dashed,
_orientation = this.orientation,
orientation = _orientation === undefined ? 'center' : _orientation;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('divider', customizePrefixCls);
var orientationPrefix = orientation.length > 0 ? '-' + orientation : orientation;
var classString = (_classString = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classString, prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classString, prefixCls + '-' + type, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classString, prefixCls + '-with-text' + orientationPrefix, $slots['default']), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classString, prefixCls + '-dashed', !!dashed), _classString);
return h(
'div',
{ 'class': classString, attrs: { role: 'separator' }
},
[$slots['default'] && h(
'span',
{ 'class': prefixCls + '-inner-text' },
[$slots['default']]
)]
);
}
};
/* istanbul ignore next */
Divider.install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_3__["default"]);
Vue.component(Divider.name, Divider);
};
/* harmony default export */ __webpack_exports__["default"] = (Divider);
/***/ }),
/***/ "./components/divider/style/index.js":
/*!*******************************************!*\
!*** ./components/divider/style/index.js ***!
\*******************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/divider/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/***/ }),
/***/ "./components/divider/style/index.less":
/*!*********************************************!*\
!*** ./components/divider/style/index.less ***!
\*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/drawer/index.jsx":
/*!*************************************!*\
!*** ./components/drawer/index.jsx ***!
\*************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
/* harmony import */ var _vc_drawer_src__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vc-drawer/src */ "./components/vc-drawer/src/index.js");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
var Drawer = {
name: 'ADrawer',
props: {
closable: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool.def(true),
destroyOnClose: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
getContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
maskClosable: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool.def(true),
mask: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool.def(true),
maskStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object,
wrapStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object,
bodyStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object,
headerStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object,
drawerStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object,
title: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
width: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number]).def(256),
height: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number]).def(256),
zIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
placement: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['top', 'right', 'bottom', 'left']).def('right'),
level: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any.def(null),
wrapClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string, // not use class like react, vue will add class to root dom
handle: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
afterVisibleChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
keyboard: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool.def(true)
},
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__["default"]],
data: function data() {
this.destroyClose = false;
this.preVisible = this.$props.visible;
return {
_push: false
};
},
inject: {
parentDrawer: {
'default': function _default() {
return null;
}
},
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_10__["ConfigConsumerProps"];
} }
},
provide: function provide() {
return {
parentDrawer: this
};
},
mounted: function mounted() {
// fix: delete drawer in child and re-render, no push started.
// <Drawer>{show && <Drawer />}</Drawer>
var visible = this.visible;
if (visible && this.parentDrawer) {
this.parentDrawer.push();
}
},
updated: function updated() {
var _this = this;
this.$nextTick(function () {
if (_this.preVisible !== _this.visible && _this.parentDrawer) {
if (_this.visible) {
_this.parentDrawer.push();
} else {
_this.parentDrawer.pull();
}
}
_this.preVisible = _this.visible;
});
},
beforeDestroy: function beforeDestroy() {
// unmount drawer in child, clear push.
if (this.parentDrawer) {
this.parentDrawer.pull();
}
},
methods: {
domFocus: function domFocus() {
if (this.$refs.vcDrawer) {
this.$refs.vcDrawer.domFocus();
}
},
close: function close(e) {
this.$emit('close', e);
},
// onMaskClick(e) {
// if (!this.maskClosable) {
// return;
// }
// this.close(e);
// },
push: function push() {
this.setState({
_push: true
});
},
pull: function pull() {
var _this2 = this;
this.setState({
_push: false
}, function () {
_this2.domFocus();
});
},
onDestroyTransitionEnd: function onDestroyTransitionEnd() {
var isDestroyOnClose = this.getDestroyOnClose();
if (!isDestroyOnClose) {
return;
}
if (!this.visible) {
this.destroyClose = true;
this.$forceUpdate();
}
},
getDestroyOnClose: function getDestroyOnClose() {
return this.destroyOnClose && !this.visible;
},
// get drawar push width or height
getPushTransform: function getPushTransform(placement) {
if (placement === 'left' || placement === 'right') {
return 'translateX(' + (placement === 'left' ? 180 : -180) + 'px)';
}
if (placement === 'top' || placement === 'bottom') {
return 'translateY(' + (placement === 'top' ? 180 : -180) + 'px)';
}
},
getRcDrawerStyle: function getRcDrawerStyle() {
var _$props = this.$props,
zIndex = _$props.zIndex,
placement = _$props.placement,
wrapStyle = _$props.wrapStyle;
var push = this.$data._push;
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
zIndex: zIndex,
transform: push ? this.getPushTransform(placement) : undefined
}, wrapStyle);
},
renderHeader: function renderHeader(prefixCls) {
var h = this.$createElement;
var _$props2 = this.$props,
closable = _$props2.closable,
headerStyle = _$props2.headerStyle;
var title = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(this, 'title');
if (!title && !closable) {
return null;
}
var headerClassName = title ? prefixCls + '-header' : prefixCls + '-header-no-title';
return h(
'div',
{ 'class': headerClassName, style: headerStyle },
[title && h(
'div',
{ 'class': prefixCls + '-title' },
[title]
), closable ? this.renderCloseIcon(prefixCls) : null]
);
},
renderCloseIcon: function renderCloseIcon(prefixCls) {
var h = this.$createElement;
var closable = this.closable;
return closable && h(
'button',
{ key: 'closer', on: {
'click': this.close
},
attrs: { 'aria-label': 'Close' },
'class': prefixCls + '-close' },
[h(_icon__WEBPACK_IMPORTED_MODULE_8__["default"], {
attrs: { type: 'close' }
})]
);
},
// render drawer body dom
renderBody: function renderBody(prefixCls) {
var h = this.$createElement;
if (this.destroyClose && !this.visible) {
return null;
}
this.destroyClose = false;
var _$props3 = this.$props,
bodyStyle = _$props3.bodyStyle,
drawerStyle = _$props3.drawerStyle;
var containerStyle = {};
var isDestroyOnClose = this.getDestroyOnClose();
if (isDestroyOnClose) {
// Increase the opacity transition, delete children after closing.
containerStyle.opacity = 0;
containerStyle.transition = 'opacity .3s';
}
return h(
'div',
{
'class': prefixCls + '-wrapper-body',
style: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, containerStyle, drawerStyle),
on: {
'transitionend': this.onDestroyTransitionEnd
}
},
[this.renderHeader(prefixCls), h(
'div',
{ key: 'body', 'class': prefixCls + '-body', style: bodyStyle },
[this.$slots['default']]
)]
);
}
},
render: function render() {
var _classnames;
var h = arguments[0];
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getOptionProps"])(this);
var customizePrefixCls = props.prefixCls,
width = props.width,
height = props.height,
visible = props.visible,
placement = props.placement,
wrapClassName = props.wrapClassName,
mask = props.mask,
rest = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(props, ['prefixCls', 'width', 'height', 'visible', 'placement', 'wrapClassName', 'mask']);
var haveMask = mask ? '' : 'no-mask';
var offsetStyle = {};
if (placement === 'left' || placement === 'right') {
offsetStyle.width = typeof width === 'number' ? width + 'px' : width;
} else {
offsetStyle.height = typeof height === 'number' ? height + 'px' : height;
}
var handler = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(this, 'handle') || false;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('drawer', customizePrefixCls);
var vcDrawerProps = {
ref: 'vcDrawer',
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(omit_js__WEBPACK_IMPORTED_MODULE_4__["default"])(rest, ['closable', 'destroyOnClose', 'drawerStyle', 'headerStyle', 'bodyStyle', 'title', 'push', 'visible', 'getPopupContainer', 'rootPrefixCls', 'getPrefixCls', 'renderEmpty', 'csp', 'pageHeader', 'autoInsertSpaceInButton']), {
handler: handler
}, offsetStyle, {
prefixCls: prefixCls,
open: visible,
showMask: mask,
placement: placement,
className: classnames__WEBPACK_IMPORTED_MODULE_3___default()((_classnames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classnames, wrapClassName, !!wrapClassName), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classnames, haveMask, !!haveMask), _classnames)),
wrapStyle: this.getRcDrawerStyle()
}),
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getListeners"])(this))
};
return h(
_vc_drawer_src__WEBPACK_IMPORTED_MODULE_5__["default"],
vcDrawerProps,
[this.renderBody(prefixCls)]
);
}
};
/* istanbul ignore next */
Drawer.install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_11__["default"]);
Vue.component(Drawer.name, Drawer);
};
/* harmony default export */ __webpack_exports__["default"] = (Drawer);
/***/ }),
/***/ "./components/drawer/style/index.js":
/*!******************************************!*\
!*** ./components/drawer/style/index.js ***!
\******************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/drawer/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
// deps-lint-skip: empty
/***/ }),
/***/ "./components/drawer/style/index.less":
/*!********************************************!*\
!*** ./components/drawer/style/index.less ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/dropdown/dropdown-button.jsx":
/*!*************************************************!*\
!*** ./components/dropdown/dropdown-button.jsx ***!
\*************************************************/
/*! exports provided: DropdownButtonProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DropdownButtonProps", function() { return DropdownButtonProps; });
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../button */ "./components/button/index.js");
/* harmony import */ var _button_buttonTypes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../button/buttonTypes */ "./components/button/buttonTypes.js");
/* harmony import */ var _button_button_group__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../button/button-group */ "./components/button/button-group.jsx");
/* harmony import */ var _dropdown__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./dropdown */ "./components/dropdown/dropdown.jsx");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _getDropdownProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./getDropdownProps */ "./components/dropdown/getDropdownProps.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
var ButtonTypesProps = Object(_button_buttonTypes__WEBPACK_IMPORTED_MODULE_3__["default"])();
var DropdownProps = Object(_getDropdownProps__WEBPACK_IMPORTED_MODULE_8__["default"])();
var ButtonGroup = _button__WEBPACK_IMPORTED_MODULE_2__["default"].Group;
var DropdownButtonProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, _button_button_group__WEBPACK_IMPORTED_MODULE_4__["ButtonGroupProps"], DropdownProps, {
type: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['primary', 'ghost', 'dashed', 'danger', 'default']).def('default'),
size: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['small', 'large', 'default']).def('default'),
htmlType: ButtonTypesProps.htmlType,
href: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
placement: DropdownProps.placement.def('bottomRight'),
icon: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
title: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string
});
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'ADropdownButton',
model: {
prop: 'visible',
event: 'visibleChange'
},
props: DropdownButtonProps,
provide: function provide() {
return {
savePopupRef: this.savePopupRef
};
},
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_9__["ConfigConsumerProps"];
} }
},
methods: {
savePopupRef: function savePopupRef(ref) {
this.popupRef = ref;
},
onClick: function onClick(e) {
this.$emit('click', e);
},
onVisibleChange: function onVisibleChange(val) {
this.$emit('visibleChange', val);
}
},
render: function render() {
var h = arguments[0];
var _$props = this.$props,
type = _$props.type,
disabled = _$props.disabled,
htmlType = _$props.htmlType,
customizePrefixCls = _$props.prefixCls,
trigger = _$props.trigger,
align = _$props.align,
visible = _$props.visible,
placement = _$props.placement,
getPopupContainer = _$props.getPopupContainer,
href = _$props.href,
title = _$props.title,
restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(_$props, ['type', 'disabled', 'htmlType', 'prefixCls', 'trigger', 'align', 'visible', 'placement', 'getPopupContainer', 'href', 'title']);
var icon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'icon') || h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
attrs: { type: 'ellipsis' }
});
var getContextPopupContainer = this.configProvider.getPopupContainer;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('dropdown-button', customizePrefixCls);
var dropdownProps = {
props: {
align: align,
disabled: disabled,
trigger: disabled ? [] : trigger,
placement: placement,
getPopupContainer: getPopupContainer || getContextPopupContainer
},
on: {
visibleChange: this.onVisibleChange
}
};
if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["hasProp"])(this, 'visible')) {
dropdownProps.props.visible = visible;
}
var buttonGroupProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, restProps),
'class': prefixCls
};
return h(
ButtonGroup,
buttonGroupProps,
[h(
_button__WEBPACK_IMPORTED_MODULE_2__["default"],
{
attrs: {
type: type,
disabled: disabled,
htmlType: htmlType,
href: href,
title: title
},
on: {
'click': this.onClick
}
},
[this.$slots['default']]
), h(
_dropdown__WEBPACK_IMPORTED_MODULE_5__["default"],
dropdownProps,
[h(
'template',
{ slot: 'overlay' },
[Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'overlay')]
), h(
_button__WEBPACK_IMPORTED_MODULE_2__["default"],
{
attrs: { type: type }
},
[icon]
)]
)]
);
}
});
/***/ }),
/***/ "./components/dropdown/dropdown.jsx":
/*!******************************************!*\
!*** ./components/dropdown/dropdown.jsx ***!
\******************************************/
/*! exports provided: default, DropdownProps */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DropdownProps", function() { return DropdownProps; });
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _vc_dropdown_src_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../vc-dropdown/src/index */ "./components/vc-dropdown/src/index.js");
/* harmony import */ var _dropdown_button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./dropdown-button */ "./components/dropdown/dropdown-button.jsx");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _getDropdownProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./getDropdownProps */ "./components/dropdown/getDropdownProps.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
var DropdownProps = Object(_getDropdownProps__WEBPACK_IMPORTED_MODULE_6__["default"])();
var Dropdown = {
name: 'ADropdown',
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, DropdownProps, {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
mouseEnterDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number.def(0.15),
mouseLeaveDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number.def(0.1),
placement: DropdownProps.placement.def('bottomLeft')
}),
model: {
prop: 'visible',
event: 'visibleChange'
},
provide: function provide() {
return {
savePopupRef: this.savePopupRef
};
},
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_7__["ConfigConsumerProps"];
} }
},
methods: {
savePopupRef: function savePopupRef(ref) {
this.popupRef = ref;
},
getTransitionName: function getTransitionName() {
var _$props = this.$props,
_$props$placement = _$props.placement,
placement = _$props$placement === undefined ? '' : _$props$placement,
transitionName = _$props.transitionName;
if (transitionName !== undefined) {
return transitionName;
}
if (placement.indexOf('top') >= 0) {
return 'slide-down';
}
return 'slide-up';
},
renderOverlay: function renderOverlay(prefixCls) {
var h = this.$createElement;
var overlay = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'overlay');
var overlayNode = Array.isArray(overlay) ? overlay[0] : overlay;
// menu cannot be selectable in dropdown defaultly
// menu should be focusable in dropdown defaultly
var overlayProps = overlayNode && Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getPropsData"])(overlayNode);
var _ref = overlayProps || {},
_ref$selectable = _ref.selectable,
selectable = _ref$selectable === undefined ? false : _ref$selectable,
_ref$focusable = _ref.focusable,
focusable = _ref$focusable === undefined ? true : _ref$focusable;
var expandIcon = h(
'span',
{ 'class': prefixCls + '-menu-submenu-arrow' },
[h(_icon__WEBPACK_IMPORTED_MODULE_8__["default"], {
attrs: { type: 'right' },
'class': prefixCls + '-menu-submenu-arrow-icon' })]
);
var fixedModeOverlay = overlayNode && overlayNode.componentOptions ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_4__["cloneElement"])(overlayNode, {
props: {
mode: 'vertical',
selectable: selectable,
focusable: focusable,
expandIcon: expandIcon
}
}) : overlay;
return fixedModeOverlay;
}
},
render: function render() {
var h = arguments[0];
var $slots = this.$slots;
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
var customizePrefixCls = props.prefixCls,
trigger = props.trigger,
disabled = props.disabled,
getPopupContainer = props.getPopupContainer;
var getContextPopupContainer = this.configProvider.getPopupContainer;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('dropdown', customizePrefixCls);
var dropdownTrigger = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_4__["cloneElement"])($slots['default'], {
'class': prefixCls + '-trigger',
props: {
disabled: disabled
}
});
var triggerActions = disabled ? [] : trigger;
var alignPoint = void 0;
if (triggerActions && triggerActions.indexOf('contextmenu') !== -1) {
alignPoint = true;
}
var dropdownProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
alignPoint: alignPoint
}, props, {
prefixCls: prefixCls,
getPopupContainer: getPopupContainer || getContextPopupContainer,
transitionName: this.getTransitionName(),
trigger: triggerActions
}),
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this)
};
return h(
_vc_dropdown_src_index__WEBPACK_IMPORTED_MODULE_1__["default"],
dropdownProps,
[dropdownTrigger, h(
'template',
{ slot: 'overlay' },
[this.renderOverlay(prefixCls)]
)]
);
}
};
Dropdown.Button = _dropdown_button__WEBPACK_IMPORTED_MODULE_2__["default"];
/* harmony default export */ __webpack_exports__["default"] = (Dropdown);
/***/ }),
/***/ "./components/dropdown/getDropdownProps.js":
/*!*************************************************!*\
!*** ./components/dropdown/getDropdownProps.js ***!
\*************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony default export */ __webpack_exports__["default"] = (function () {
return {
trigger: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].array.def(['hover']),
overlay: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
align: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
placement: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['topLeft', 'topCenter', 'topRight', 'bottomLeft', 'bottomCenter', 'bottomRight']),
overlayClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
overlayStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
forceRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
mouseEnterDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
mouseLeaveDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
openClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
minOverlayWidthMatchTrigger: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool
};
});
/***/ }),
/***/ "./components/dropdown/index.js":
/*!**************************************!*\
!*** ./components/dropdown/index.js ***!
\**************************************/
/*! exports provided: DropdownProps, DropdownButtonProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _dropdown__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dropdown */ "./components/dropdown/dropdown.jsx");
/* harmony import */ var _dropdown_button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./dropdown-button */ "./components/dropdown/dropdown-button.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DropdownProps", function() { return _dropdown__WEBPACK_IMPORTED_MODULE_0__["DropdownProps"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DropdownButtonProps", function() { return _dropdown_button__WEBPACK_IMPORTED_MODULE_1__["DropdownButtonProps"]; });
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
_dropdown__WEBPACK_IMPORTED_MODULE_0__["default"].Button = _dropdown_button__WEBPACK_IMPORTED_MODULE_1__["default"];
/* istanbul ignore next */
_dropdown__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_2__["default"]);
Vue.component(_dropdown__WEBPACK_IMPORTED_MODULE_0__["default"].name, _dropdown__WEBPACK_IMPORTED_MODULE_0__["default"]);
Vue.component(_dropdown_button__WEBPACK_IMPORTED_MODULE_1__["default"].name, _dropdown_button__WEBPACK_IMPORTED_MODULE_1__["default"]);
};
/* harmony default export */ __webpack_exports__["default"] = (_dropdown__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/dropdown/style/index.js":
/*!********************************************!*\
!*** ./components/dropdown/style/index.js ***!
\********************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/dropdown/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _button_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../button/style */ "./components/button/style/index.js");
// style dependencies
/***/ }),
/***/ "./components/dropdown/style/index.less":
/*!**********************************************!*\
!*** ./components/dropdown/style/index.less ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/empty/empty.jsx":
/*!************************************!*\
!*** ./components/empty/empty.jsx ***!
\************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ({
functional: true,
PRESENTED_IMAGE_DEFAULT: true,
render: function render() {
var h = arguments[0];
return h(
"svg",
{
attrs: { width: "184", height: "152", viewBox: "0 0 184 152", xmlns: "http://www.w3.org/2000/svg" }
},
[h(
"g",
{
attrs: { fill: "none", fillRule: "evenodd" }
},
[h(
"g",
{
attrs: { transform: "translate(24 31.67)" }
},
[h("ellipse", {
attrs: {
fillOpacity: ".8",
fill: "#F5F5F7",
cx: "67.797",
cy: "106.89",
rx: "67.797",
ry: "12.668"
}
}), h("path", {
attrs: {
d: "M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",
fill: "#AEB8C2"
}
}), h("path", {
attrs: {
d: "M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",
fill: "url(#linearGradient-1)",
transform: "translate(13.56)"
}
}), h("path", {
attrs: {
d: "M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",
fill: "#F5F5F7"
}
}), h("path", {
attrs: {
d: "M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",
fill: "#DCE0E6"
}
})]
), h("path", {
attrs: {
d: "M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",
fill: "#DCE0E6"
}
}), h(
"g",
{
attrs: { transform: "translate(149.65 15.383)", fill: "#FFF" }
},
[h("ellipse", {
attrs: { cx: "20.654", cy: "3.167", rx: "2.849", ry: "2.815" }
}), h("path", {
attrs: { d: "M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z" }
})]
)]
)]
);
}
});
/***/ }),
/***/ "./components/empty/index.jsx":
/*!************************************!*\
!*** ./components/empty/index.jsx ***!
\************************************/
/*! exports provided: TransferLocale, EmptyProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferLocale", function() { return TransferLocale; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmptyProps", function() { return EmptyProps; });
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./components/locale-provider/LocaleReceiver.jsx");
/* harmony import */ var _empty__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./empty */ "./components/empty/empty.jsx");
/* harmony import */ var _simple__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./simple */ "./components/empty/simple.jsx");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
var TransferLocale = function TransferLocale() {
return {
description: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string
};
};
var EmptyProps = function EmptyProps() {
return {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
image: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
description: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
imageStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object
};
};
var Empty = {
name: 'AEmpty',
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, EmptyProps()),
methods: {
renderEmpty: function renderEmpty(contentLocale) {
var h = this.$createElement;
var _$props = this.$props,
customizePrefixCls = _$props.prefixCls,
imageStyle = _$props.imageStyle;
var prefixCls = _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__["ConfigConsumerProps"].getPrefixCls('empty', customizePrefixCls);
var image = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'image') || h(_empty__WEBPACK_IMPORTED_MODULE_8__["default"]);
var description = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'description');
var des = typeof description !== 'undefined' ? description : contentLocale.description;
var alt = typeof des === 'string' ? des : 'empty';
var cls = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, prefixCls, true);
var imageNode = null;
if (typeof image === 'string') {
imageNode = h('img', {
attrs: { alt: alt, src: image }
});
} else if ((typeof image === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(image)) === 'object' && image.PRESENTED_IMAGE_SIMPLE) {
var Image = image;
imageNode = h(Image);
cls[prefixCls + '-normal'] = true;
} else {
imageNode = image;
}
return h(
'div',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ 'class': cls }, { on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this) }]),
[h(
'div',
{ 'class': prefixCls + '-image', style: imageStyle },
[imageNode]
), des && h(
'p',
{ 'class': prefixCls + '-description' },
[des]
), this.$slots['default'] && h(
'div',
{ 'class': prefixCls + '-footer' },
[this.$slots['default']]
)]
);
}
},
render: function render() {
var h = arguments[0];
return h(_locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_7__["default"], {
attrs: { componentName: 'Empty' },
scopedSlots: { 'default': this.renderEmpty } });
}
};
Empty.PRESENTED_IMAGE_DEFAULT = _empty__WEBPACK_IMPORTED_MODULE_8__["default"];
Empty.PRESENTED_IMAGE_SIMPLE = _simple__WEBPACK_IMPORTED_MODULE_9__["default"];
/* istanbul ignore next */
Empty.install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_10__["default"]);
Vue.component(Empty.name, Empty);
};
/* harmony default export */ __webpack_exports__["default"] = (Empty);
/***/ }),
/***/ "./components/empty/simple.jsx":
/*!*************************************!*\
!*** ./components/empty/simple.jsx ***!
\*************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ({
functional: true,
PRESENTED_IMAGE_SIMPLE: true,
render: function render() {
var h = arguments[0];
return h(
"svg",
{
attrs: { width: "64", height: "41", viewBox: "0 0 64 41", xmlns: "http://www.w3.org/2000/svg" }
},
[h(
"g",
{
attrs: { transform: "translate(0 1)", fill: "none", fillRule: "evenodd" }
},
[h("ellipse", {
attrs: { fill: "#F5F5F5", cx: "32", cy: "33", rx: "32", ry: "7" }
}), h(
"g",
{
attrs: { fillRule: "nonzero", stroke: "#D9D9D9" }
},
[h("path", {
attrs: { d: "M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z" }
}), h("path", {
attrs: {
d: "M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",
fill: "#FAFAFA"
}
})]
)]
)]
);
}
});
/***/ }),
/***/ "./components/empty/style/index.js":
/*!*****************************************!*\
!*** ./components/empty/style/index.js ***!
\*****************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/empty/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/***/ }),
/***/ "./components/empty/style/index.less":
/*!*******************************************!*\
!*** ./components/empty/style/index.less ***!
\*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/form-model/Form.jsx":
/*!****************************************!*\
!*** ./components/form-model/Form.jsx ***!
\****************************************/
/*! exports provided: FormProps, ValidationRule, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FormProps", function() { return FormProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ValidationRule", function() { return ValidationRule; });
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _grid_Col__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../grid/Col */ "./components/grid/Col.jsx");
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/isRegExp */ "./node_modules/lodash/isRegExp.js");
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
/* harmony import */ var _FormItem__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./FormItem */ "./components/form-model/FormItem.jsx");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
var FormProps = {
layout: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['horizontal', 'inline', 'vertical']),
labelCol: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].shape(_grid_Col__WEBPACK_IMPORTED_MODULE_4__["ColProps"]).loose,
wrapperCol: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].shape(_grid_Col__WEBPACK_IMPORTED_MODULE_4__["ColProps"]).loose,
colon: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
labelAlign: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['left', 'right']),
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
hideRequiredMark: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
model: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
rules: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
validateMessages: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
validateOnRuleChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool
};
var ValidationRule = {
/** validation error message */
message: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func]),
/** built-in validation type, available options: https://github.com/yiminghe/async-validator#type */
type: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
/** indicates whether field is required */
required: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].boolean,
/** treat required fields that only contain whitespace as errors */
whitespace: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].boolean,
/** validate the exact length of a field */
len: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
/** validate the min length of a field */
min: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
/** validate the max length of a field */
max: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
/** validate the value from a list of possible values */
'enum': _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([String, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].arrayOf(String)]),
/** validate from a regular expression */
pattern: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].custom(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_5___default.a),
/** transform a value before validation */
transform: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
/** custom validate function (Note: callback must be called) */
validator: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func
};
var Form = {
name: 'AFormModel',
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["initDefaultProps"])(FormProps, {
layout: 'horizontal',
hideRequiredMark: false,
colon: true
}),
Item: _FormItem__WEBPACK_IMPORTED_MODULE_7__["default"],
created: function created() {
this.fields = [];
},
provide: function provide() {
return {
FormContext: this
};
},
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_9__["ConfigConsumerProps"];
} }
},
watch: {
rules: function rules() {
if (this.validateOnRuleChange) {
this.validate(function () {});
}
}
},
computed: {
vertical: function vertical() {
return this.layout === 'vertical';
}
},
methods: {
addField: function addField(field) {
if (field) {
this.fields.push(field);
}
},
removeField: function removeField(field) {
if (field.prop) {
this.fields.splice(this.fields.indexOf(field), 1);
}
},
onSubmit: function onSubmit(e) {
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getListeners"])(this).submit) {
e.preventDefault();
} else {
this.$emit('submit', e);
}
},
resetFields: function resetFields() {
if (!this.model) {
Object(_util_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(false, 'FormModel', 'model is required for resetFields to work.');
return;
}
this.fields.forEach(function (field) {
field.resetField();
});
},
clearValidate: function clearValidate() {
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
var fields = props.length ? typeof props === 'string' ? this.fields.filter(function (field) {
return props === field.prop;
}) : this.fields.filter(function (field) {
return props.indexOf(field.prop) > -1;
}) : this.fields;
fields.forEach(function (field) {
field.clearValidate();
});
},
validate: function validate(callback) {
var _this = this;
if (!this.model) {
Object(_util_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(false, 'FormModel', 'model is required for resetFields to work.');
return;
}
var promise = void 0;
// if no callback, return promise
if (typeof callback !== 'function' && window.Promise) {
promise = new window.Promise(function (resolve, reject) {
callback = function callback(valid) {
valid ? resolve(valid) : reject(valid);
};
});
}
var valid = true;
var count = 0;
// 如果需要验证的fields为空调用验证时立刻返回callback
if (this.fields.length === 0 && callback) {
callback(true);
}
var invalidFields = {};
this.fields.forEach(function (field) {
field.validate('', function (message, field) {
if (message) {
valid = false;
}
invalidFields = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, invalidFields, field);
if (typeof callback === 'function' && ++count === _this.fields.length) {
callback(valid, invalidFields);
}
});
});
if (promise) {
return promise;
}
},
validateField: function validateField(props, cb) {
props = [].concat(props);
var fields = this.fields.filter(function (field) {
return props.indexOf(field.prop) !== -1;
});
if (!fields.length) {
Object(_util_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(false, 'FormModel', 'please pass correct props!');
return;
}
fields.forEach(function (field) {
field.validate('', cb);
});
}
},
render: function render() {
var _classNames;
var h = arguments[0];
var customizePrefixCls = this.prefixCls,
hideRequiredMark = this.hideRequiredMark,
layout = this.layout,
onSubmit = this.onSubmit,
$slots = this.$slots;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('form', customizePrefixCls);
var formClassName = classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-horizontal', layout === 'horizontal'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-vertical', layout === 'vertical'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-inline', layout === 'inline'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-hide-required-mark', hideRequiredMark), _classNames));
return h(
'form',
{
on: {
'submit': onSubmit
},
'class': formClassName },
[$slots['default']]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (Form);
/***/ }),
/***/ "./components/form-model/FormItem.jsx":
/*!********************************************!*\
!*** ./components/form-model/FormItem.jsx ***!
\********************************************/
/*! exports provided: FormItemProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FormItemProps", function() { return FormItemProps; });
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var async_validator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! async-validator */ "./node_modules/async-validator/dist-web/index.js");
/* harmony import */ var lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/cloneDeep */ "./node_modules/lodash/cloneDeep.js");
/* harmony import */ var lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _grid_Col__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../grid/Col */ "./components/grid/Col.jsx");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _form_FormItem__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../form/FormItem */ "./components/form/FormItem.jsx");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
function noop() {}
function getPropByPath(obj, path, strict) {
var tempObj = obj;
path = path.replace(/\[(\w+)\]/g, '.$1');
path = path.replace(/^\./, '');
var keyArr = path.split('.');
var i = 0;
for (var len = keyArr.length; i < len - 1; ++i) {
if (!tempObj && !strict) break;
var key = keyArr[i];
if (key in tempObj) {
tempObj = tempObj[key];
} else {
if (strict) {
throw new Error('please transfer a valid prop path to form item!');
}
break;
}
}
return {
o: tempObj,
k: keyArr[i],
v: tempObj ? tempObj[keyArr[i]] : null
};
}
var FormItemProps = {
id: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
htmlFor: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
label: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
help: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
extra: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
labelCol: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].shape(_grid_Col__WEBPACK_IMPORTED_MODULE_4__["ColProps"]).loose,
wrapperCol: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].shape(_grid_Col__WEBPACK_IMPORTED_MODULE_4__["ColProps"]).loose,
hasFeedback: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
colon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
labelAlign: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['left', 'right']),
prop: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
rules: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([Array, Object]),
autoLink: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
required: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
validateStatus: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['', 'success', 'warning', 'error', 'validating'])
};
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'AFormModelItem',
__ANT_NEW_FORM_ITEM: true,
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__["default"]],
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["initDefaultProps"])(FormItemProps, {
hasFeedback: false,
autoLink: true
}),
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_7__["ConfigConsumerProps"];
} },
FormContext: { 'default': function _default() {
return {};
} }
},
data: function data() {
return {
validateState: this.validateStatus,
validateMessage: '',
validateDisabled: false,
validator: {}
};
},
computed: {
fieldValue: function fieldValue() {
var model = this.FormContext.model;
if (!model || !this.prop) {
return;
}
var path = this.prop;
if (path.indexOf(':') !== -1) {
path = path.replace(/:/g, '.');
}
return getPropByPath(model, path, true).v;
},
isRequired: function isRequired() {
var rules = this.getRules();
var isRequired = false;
if (rules && rules.length) {
rules.every(function (rule) {
if (rule.required) {
isRequired = true;
return false;
}
return true;
});
}
return isRequired;
}
},
watch: {
validateStatus: function validateStatus(val) {
this.validateState = val;
}
},
mounted: function mounted() {
if (this.prop) {
var addField = this.FormContext.addField;
addField && addField(this);
this.initialValue = lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_2___default()(this.fieldValue);
}
},
beforeDestroy: function beforeDestroy() {
var removeField = this.FormContext.removeField;
removeField && removeField(this);
},
methods: {
validate: function validate(trigger) {
var _this = this;
var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;
this.validateDisabled = false;
var rules = this.getFilteredRule(trigger);
if (!rules || rules.length === 0) {
callback();
return true;
}
this.validateState = 'validating';
var descriptor = {};
if (rules && rules.length > 0) {
rules.forEach(function (rule) {
delete rule.trigger;
});
}
descriptor[this.prop] = rules;
var validator = new async_validator__WEBPACK_IMPORTED_MODULE_1__["default"](descriptor);
if (this.FormContext && this.FormContext.validateMessages) {
validator.messages(this.FormContext.validateMessages);
}
var model = {};
model[this.prop] = this.fieldValue;
validator.validate(model, { firstFields: true }, function (errors, invalidFields) {
_this.validateState = errors ? 'error' : 'success';
_this.validateMessage = errors ? errors[0].message : '';
callback(_this.validateMessage, invalidFields);
_this.FormContext && _this.FormContext.$emit && _this.FormContext.$emit('validate', _this.prop, !errors, _this.validateMessage || null);
});
},
getRules: function getRules() {
var formRules = this.FormContext.rules;
var selfRules = this.rules;
var requiredRule = this.required !== undefined ? { required: !!this.required, trigger: 'change' } : [];
var prop = getPropByPath(formRules, this.prop || '');
formRules = formRules ? prop.o[this.prop || ''] || prop.v : [];
return [].concat(selfRules || formRules || []).concat(requiredRule);
},
getFilteredRule: function getFilteredRule(trigger) {
var rules = this.getRules();
return rules.filter(function (rule) {
if (!rule.trigger || trigger === '') return true;
if (Array.isArray(rule.trigger)) {
return rule.trigger.indexOf(trigger) > -1;
} else {
return rule.trigger === trigger;
}
}).map(function (rule) {
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, rule);
});
},
onFieldBlur: function onFieldBlur() {
this.validate('blur');
},
onFieldChange: function onFieldChange() {
if (this.validateDisabled) {
this.validateDisabled = false;
return;
}
this.validate('change');
},
clearValidate: function clearValidate() {
this.validateState = '';
this.validateMessage = '';
this.validateDisabled = false;
},
resetField: function resetField() {
var _this2 = this;
this.validateState = '';
this.validateMessage = '';
var model = this.FormContext.model || {};
var value = this.fieldValue;
var path = this.prop;
if (path.indexOf(':') !== -1) {
path = path.replace(/:/, '.');
}
var prop = getPropByPath(model, path, true);
this.validateDisabled = true;
if (Array.isArray(value)) {
prop.o[prop.k] = [].concat(this.initialValue);
} else {
prop.o[prop.k] = this.initialValue;
}
// reset validateDisabled after onFieldChange triggered
this.$nextTick(function () {
_this2.validateDisabled = false;
});
}
},
render: function render() {
var _this3 = this;
var h = arguments[0];
var $slots = this.$slots,
$scopedSlots = this.$scopedSlots;
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
var label = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'label');
var extra = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'extra');
var help = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'help');
var formProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
label: label,
extra: extra,
validateStatus: this.validateState,
help: this.validateMessage || help,
required: this.isRequired || props.required
})
};
var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["filterEmpty"])($scopedSlots['default'] ? $scopedSlots['default']() : $slots['default']);
var firstChildren = children[0];
if (this.prop && this.autoLink && Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["isValidElement"])(firstChildren)) {
var originalEvents = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getEvents"])(firstChildren);
var originalBlur = originalEvents.blur;
var originalChange = originalEvents.change;
firstChildren = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_9__["cloneElement"])(firstChildren, {
on: {
blur: function blur() {
originalBlur && originalBlur.apply(undefined, arguments);
_this3.onFieldBlur();
},
change: function change() {
if (Array.isArray(originalChange)) {
for (var i = 0, l = originalChange.length; i < l; i++) {
originalChange[i].apply(originalChange, arguments);
}
} else if (originalChange) {
originalChange.apply(undefined, arguments);
}
_this3.onFieldChange();
}
}
});
}
return h(
_form_FormItem__WEBPACK_IMPORTED_MODULE_8__["default"],
formProps,
[firstChildren, children.slice(1)]
);
}
});
/***/ }),
/***/ "./components/form-model/index.jsx":
/*!*****************************************!*\
!*** ./components/form-model/index.jsx ***!
\*****************************************/
/*! exports provided: FormProps, ValidationRule, FormItemProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "vue");
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _Form__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Form */ "./components/form-model/Form.jsx");
/* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
/* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_FormDecoratorDirective__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/FormDecoratorDirective */ "./components/_util/FormDecoratorDirective.js");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormProps", function() { return _Form__WEBPACK_IMPORTED_MODULE_1__["FormProps"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ValidationRule", function() { return _Form__WEBPACK_IMPORTED_MODULE_1__["ValidationRule"]; });
/* harmony import */ var _FormItem__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./FormItem */ "./components/form-model/FormItem.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormItemProps", function() { return _FormItem__WEBPACK_IMPORTED_MODULE_5__["FormItemProps"]; });
vue__WEBPACK_IMPORTED_MODULE_0___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_2___default.a, { name: 'ant-ref' });
vue__WEBPACK_IMPORTED_MODULE_0___default.a.use(_util_FormDecoratorDirective__WEBPACK_IMPORTED_MODULE_3__["default"]);
/* istanbul ignore next */
_Form__WEBPACK_IMPORTED_MODULE_1__["default"].install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_4__["default"]);
Vue.component(_Form__WEBPACK_IMPORTED_MODULE_1__["default"].name, _Form__WEBPACK_IMPORTED_MODULE_1__["default"]);
Vue.component(_Form__WEBPACK_IMPORTED_MODULE_1__["default"].Item.name, _Form__WEBPACK_IMPORTED_MODULE_1__["default"].Item);
};
/* harmony default export */ __webpack_exports__["default"] = (_Form__WEBPACK_IMPORTED_MODULE_1__["default"]);
/***/ }),
/***/ "./components/form-model/style/index.js":
/*!**********************************************!*\
!*** ./components/form-model/style/index.js ***!
\**********************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/form-model/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _grid_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../grid/style */ "./components/grid/style/index.js");
// style dependencies
/***/ }),
/***/ "./components/form-model/style/index.less":
/*!************************************************!*\
!*** ./components/form-model/style/index.less ***!
\************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/form/Form.jsx":
/*!**********************************!*\
!*** ./components/form/Form.jsx ***!
\**********************************/
/*! exports provided: FormCreateOption, WrappedFormUtils, FormProps, ValidationRule, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FormCreateOption", function() { return FormCreateOption; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WrappedFormUtils", function() { return WrappedFormUtils; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FormProps", function() { return FormProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ValidationRule", function() { return ValidationRule; });
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _grid_Col__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../grid/Col */ "./components/grid/Col.jsx");
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue */ "vue");
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/isRegExp */ "./node_modules/lodash/isRegExp.js");
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
/* harmony import */ var _vc_form_src_createDOMForm__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../vc-form/src/createDOMForm */ "./components/vc-form/src/createDOMForm.jsx");
/* harmony import */ var _vc_form_src_createFormField__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../vc-form/src/createFormField */ "./components/vc-form/src/createFormField.jsx");
/* harmony import */ var _FormItem__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./FormItem */ "./components/form/FormItem.jsx");
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./constants */ "./components/form/constants.jsx");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
var FormCreateOption = {
onFieldsChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
onValuesChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
mapPropsToFields: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
validateMessages: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
withRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
name: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string
};
// function create
var WrappedFormUtils = {
/** 获取一组输入控件的值,如不传入参数,则获取全部组件的值 */
getFieldsValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
/** 获取一个输入控件的值*/
getFieldValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
/** 设置一组输入控件的值*/
setFieldsValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
/** 设置一组输入控件的值*/
setFields: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
/** 校验并获取一组输入域的值与 Error */
validateFields: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
// validateFields(fieldNames: Array<string>, options: Object, callback: ValidateCallback): void;
// validateFields(fieldNames: Array<string>, callback: ValidateCallback): void;
// validateFields(options: Object, callback: ValidateCallback): void;
// validateFields(callback: ValidateCallback): void;
// validateFields(): void;
/** 与 `validateFields` 相似,但校验完后,如果校验不通过的菜单域不在可见范围内,则自动滚动进可见范围 */
validateFieldsAndScroll: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
// validateFieldsAndScroll(fieldNames?: Array<string>, options?: Object, callback?: ValidateCallback): void;
// validateFieldsAndScroll(fieldNames?: Array<string>, callback?: ValidateCallback): void;
// validateFieldsAndScroll(options?: Object, callback?: ValidateCallback): void;
// validateFieldsAndScroll(callback?: ValidateCallback): void;
// validateFieldsAndScroll(): void;
/** 获取某个输入控件的 Error */
getFieldError: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
getFieldsError: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
/** 判断一个输入控件是否在校验状态*/
isFieldValidating: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
isFieldTouched: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
isFieldsTouched: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
/** 重置一组输入控件的值与状态,如不传入参数,则重置所有组件 */
resetFields: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
getFieldDecorator: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func
};
var FormProps = {
layout: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['horizontal', 'inline', 'vertical']),
labelCol: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].shape(_grid_Col__WEBPACK_IMPORTED_MODULE_4__["ColProps"]).loose,
wrapperCol: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].shape(_grid_Col__WEBPACK_IMPORTED_MODULE_4__["ColProps"]).loose,
colon: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
labelAlign: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['left', 'right']),
form: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
// onSubmit: React.FormEventHandler<any>;
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
hideRequiredMark: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
autoFormCreate: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
options: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
selfUpdate: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool
};
var ValidationRule = {
/** validation error message */
message: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func]),
/** built-in validation type, available options: https://github.com/yiminghe/async-validator#type */
type: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
/** indicates whether field is required */
required: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].boolean,
/** treat required fields that only contain whitespace as errors */
whitespace: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].boolean,
/** validate the exact length of a field */
len: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
/** validate the min length of a field */
min: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
/** validate the max length of a field */
max: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
/** validate the value from a list of possible values */
'enum': _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([String, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].arrayOf(String)]),
/** validate from a regular expression */
pattern: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].custom(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_6___default.a),
/** transform a value before validation */
transform: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
/** custom validate function (Note: callback must be called) */
validator: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func
};
// export type ValidateCallback = (errors: any, values: any) => void;
// export type GetFieldDecoratorOptions = {
// /** 子节点的值的属性,如 Checkbox 的是 'checked' */
// valuePropName?: string;
// /** 子节点的初始值,类型、可选值均由子节点决定 */
// initialValue?: any;
// /** 收集子节点的值的时机 */
// trigger?: string;
// /** 可以把 onChange 的参数转化为控件的值,例如 DatePicker 可设为:(date, dateString) => dateString */
// getValueFromEvent?: (...args: any[]) => any;
// /** Get the component props according to field value. */
// getValueProps?: (value: any) => any;
// /** 校验子节点值的时机 */
// validateTrigger?: string | string[];
// /** 校验规则,参见 [async-validator](https://github.com/yiminghe/async-validator) */
// rules?: ValidationRule[];
// /** 是否和其他控件互斥,特别用于 Radio 单选控件 */
// exclusive?: boolean;
// /** Normalize value to form component */
// normalize?: (value: any, prevValue: any, allValues: any) => any;
// /** Whether stop validate on first rule of error for this field. */
// validateFirst?: boolean;
// /** 是否一直保留子节点的信息 */
// preserve?: boolean;
// };
var Form = {
name: 'AForm',
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["initDefaultProps"])(FormProps, {
layout: 'horizontal',
hideRequiredMark: false,
colon: true
}),
Item: _FormItem__WEBPACK_IMPORTED_MODULE_10__["default"],
createFormField: _vc_form_src_createFormField__WEBPACK_IMPORTED_MODULE_9__["default"],
create: function create() {
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
return Object(_vc_form_src_createDOMForm__WEBPACK_IMPORTED_MODULE_8__["default"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
fieldNameProp: 'id'
}, options, {
fieldMetaProp: _constants__WEBPACK_IMPORTED_MODULE_11__["FIELD_META_PROP"],
fieldDataProp: _constants__WEBPACK_IMPORTED_MODULE_11__["FIELD_DATA_PROP"]
}));
},
createForm: function createForm(context) {
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var V = _base__WEBPACK_IMPORTED_MODULE_14__["default"].Vue || vue__WEBPACK_IMPORTED_MODULE_5___default.a;
return new V(Form.create(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, options, { templateContext: context }))());
},
created: function created() {
this.formItemContexts = new Map();
},
provide: function provide() {
var _this = this;
return {
FormContext: this,
// https://github.com/vueComponent/ant-design-vue/issues/446
collectFormItemContext: this.form && this.form.templateContext ? function (c) {
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'add';
var formItemContexts = _this.formItemContexts;
var number = formItemContexts.get(c) || 0;
if (type === 'delete') {
if (number <= 1) {
formItemContexts['delete'](c);
} else {
formItemContexts.set(c, number - 1);
}
} else {
if (c !== _this.form.templateContext) {
formItemContexts.set(c, number + 1);
}
}
} : function () {}
};
},
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_13__["ConfigConsumerProps"];
} }
},
watch: {
form: function form() {
this.$forceUpdate();
}
},
computed: {
vertical: function vertical() {
return this.layout === 'vertical';
}
},
beforeUpdate: function beforeUpdate() {
this.formItemContexts.forEach(function (number, c) {
if (c.$forceUpdate) {
c.$forceUpdate();
}
});
},
updated: function updated() {
if (this.form && this.form.cleanUpUselessFields) {
this.form.cleanUpUselessFields();
}
},
methods: {
onSubmit: function onSubmit(e) {
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getListeners"])(this).submit) {
e.preventDefault();
} else {
this.$emit('submit', e);
}
}
},
render: function render() {
var _classNames,
_this2 = this;
var h = arguments[0];
var customizePrefixCls = this.prefixCls,
hideRequiredMark = this.hideRequiredMark,
layout = this.layout,
onSubmit = this.onSubmit,
$slots = this.$slots,
autoFormCreate = this.autoFormCreate,
_options = this.options,
options = _options === undefined ? {} : _options;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('form', customizePrefixCls);
var formClassName = classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-horizontal', layout === 'horizontal'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-vertical', layout === 'vertical'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-inline', layout === 'inline'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-hide-required-mark', hideRequiredMark), _classNames));
if (autoFormCreate) {
Object(_util_warning__WEBPACK_IMPORTED_MODULE_7__["default"])(false, 'Form', '`autoFormCreate` is deprecated. please use `form` instead.');
var DomForm = this.DomForm || Object(_vc_form_src_createDOMForm__WEBPACK_IMPORTED_MODULE_8__["default"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
fieldNameProp: 'id'
}, options, {
fieldMetaProp: _constants__WEBPACK_IMPORTED_MODULE_11__["FIELD_META_PROP"],
fieldDataProp: _constants__WEBPACK_IMPORTED_MODULE_11__["FIELD_DATA_PROP"],
templateContext: this.$vnode.context
}))({
provide: function provide() {
return {
decoratorFormProps: this.$props
};
},
data: function data() {
return {
children: $slots['default'],
formClassName: formClassName,
submit: onSubmit
};
},
created: function created() {
autoFormCreate(this.form);
},
render: function render() {
var h = arguments[0];
var children = this.children,
formClassName = this.formClassName,
submit = this.submit;
return h(
'form',
{
on: {
'submit': submit
},
'class': formClassName },
[children]
);
}
});
if (this.domForm) {
this.domForm.children = $slots['default'];
this.domForm.submit = onSubmit;
this.domForm.formClassName = formClassName;
}
this.DomForm = DomForm;
return h(DomForm, {
attrs: {
wrappedComponentRef: function wrappedComponentRef(inst) {
_this2.domForm = inst;
}
}
});
}
return h(
'form',
{
on: {
'submit': onSubmit
},
'class': formClassName },
[$slots['default']]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (Form);
/***/ }),
/***/ "./components/form/FormItem.jsx":
/*!**************************************!*\
!*** ./components/form/FormItem.jsx ***!
\**************************************/
/*! exports provided: FormItemProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FormItemProps", function() { return FormItemProps; });
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/find */ "./node_modules/lodash/find.js");
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var _grid_Row__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../grid/Row */ "./components/grid/Row.jsx");
/* harmony import */ var _grid_Col__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../grid/Col */ "./components/grid/Col.jsx");
/* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./constants */ "./components/form/constants.jsx");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_getTransitionProps__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../_util/getTransitionProps */ "./components/_util/getTransitionProps.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
function noop() {}
function intersperseSpace(list) {
return list.reduce(function (current, item) {
return [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4___default()(current), [' ', item]);
}, []).slice(1);
}
var FormItemProps = {
id: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
htmlFor: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
label: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
labelCol: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].shape(_grid_Col__WEBPACK_IMPORTED_MODULE_9__["ColProps"]).loose,
wrapperCol: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].shape(_grid_Col__WEBPACK_IMPORTED_MODULE_9__["ColProps"]).loose,
help: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
extra: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
validateStatus: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].oneOf(['', 'success', 'warning', 'error', 'validating']),
hasFeedback: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
required: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
colon: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
fieldDecoratorId: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
fieldDecoratorOptions: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].object,
selfUpdate: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
labelAlign: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].oneOf(['left', 'right'])
};
function comeFromSlot() {
var vnodes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
var itemVnode = arguments[1];
var isSlot = false;
for (var i = 0, len = vnodes.length; i < len; i++) {
var vnode = vnodes[i];
if (vnode && (vnode === itemVnode || vnode.$vnode === itemVnode)) {
isSlot = true;
} else {
var componentOptions = vnode.componentOptions || vnode.$vnode && vnode.$vnode.componentOptions;
var children = componentOptions ? componentOptions.children : vnode.$children;
isSlot = comeFromSlot(children, itemVnode);
}
if (isSlot) {
break;
}
}
return isSlot;
}
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'AFormItem',
__ANT_FORM_ITEM: true,
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_14__["default"]],
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["initDefaultProps"])(FormItemProps, {
hasFeedback: false
}),
provide: function provide() {
return {
isFormItemChildren: true
};
},
inject: {
isFormItemChildren: { 'default': false },
FormContext: { 'default': function _default() {
return {};
} },
decoratorFormProps: { 'default': function _default() {
return {};
} },
collectFormItemContext: { 'default': function _default() {
return noop;
} },
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_17__["ConfigConsumerProps"];
} }
},
data: function data() {
return { helpShow: false };
},
computed: {
itemSelfUpdate: function itemSelfUpdate() {
return !!(this.selfUpdate === undefined ? this.FormContext.selfUpdate : this.selfUpdate);
}
},
created: function created() {
this.collectContext();
},
beforeUpdate: function beforeUpdate() {
if (true) {
this.collectContext();
}
},
beforeDestroy: function beforeDestroy() {
this.collectFormItemContext(this.$vnode && this.$vnode.context, 'delete');
},
mounted: function mounted() {
var _$props = this.$props,
help = _$props.help,
validateStatus = _$props.validateStatus;
Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(this.getControls(this.slotDefault, true).length <= 1 || help !== undefined || validateStatus !== undefined, 'Form.Item', 'Cannot generate `validateStatus` and `help` automatically, ' + 'while there are more than one `getFieldDecorator` in it.');
Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(!this.fieldDecoratorId, 'Form.Item', '`fieldDecoratorId` is deprecated. please use `v-decorator={id, options}` instead.');
},
methods: {
collectContext: function collectContext() {
if (this.FormContext.form && this.FormContext.form.templateContext) {
var templateContext = this.FormContext.form.templateContext;
var vnodes = Object.values(templateContext.$slots || {}).reduce(function (a, b) {
return [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4___default()(a), babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4___default()(b));
}, []);
var isSlot = comeFromSlot(vnodes, this.$vnode);
Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(!isSlot, 'You can not set FormItem from slot, please use slot-scope instead slot');
var isSlotScope = false;
// 进一步判断是否是通过slot-scope传递
if (!isSlot && this.$vnode.context !== templateContext) {
isSlotScope = comeFromSlot(this.$vnode.context.$children, templateContext.$vnode);
}
if (!isSlotScope && !isSlot) {
this.collectFormItemContext(this.$vnode.context);
}
}
},
getHelpMessage: function getHelpMessage() {
var help = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(this, 'help');
var onlyControl = this.getOnlyControl();
if (help === undefined && onlyControl) {
var errors = this.getField().errors;
if (errors) {
return intersperseSpace(errors.map(function (e, index) {
var node = null;
if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["isValidElement"])(e)) {
node = e;
} else if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["isValidElement"])(e.message)) {
node = e.message;
}
return node ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_15__["cloneElement"])(node, { key: index }) : e.message;
}));
} else {
return '';
}
}
return help;
},
getControls: function getControls() {
var childrenArray = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
var recursively = arguments[1];
var controls = [];
for (var i = 0; i < childrenArray.length; i++) {
if (!recursively && controls.length > 0) {
break;
}
var child = childrenArray[i];
if (!child.tag && child.text.trim() === '') {
continue;
}
if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getSlotOptions"])(child).__ANT_FORM_ITEM) {
continue;
}
var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getAllChildren"])(child);
var attrs = child.data && child.data.attrs || {};
if (_constants__WEBPACK_IMPORTED_MODULE_11__["FIELD_META_PROP"] in attrs) {
// And means FIELD_DATA_PROP in child.props, too.
controls.push(child);
} else if (children) {
controls = controls.concat(this.getControls(children, recursively));
}
}
return controls;
},
getOnlyControl: function getOnlyControl() {
var child = this.getControls(this.slotDefault, false)[0];
return child !== undefined ? child : null;
},
getChildAttr: function getChildAttr(prop) {
var child = this.getOnlyControl();
var data = {};
if (!child) {
return undefined;
}
if (child.data) {
data = child.data;
} else if (child.$vnode && child.$vnode.data) {
data = child.$vnode.data;
}
return data[prop] || data.attrs[prop];
},
getId: function getId() {
return this.getChildAttr('id');
},
getMeta: function getMeta() {
return this.getChildAttr(_constants__WEBPACK_IMPORTED_MODULE_11__["FIELD_META_PROP"]);
},
getField: function getField() {
return this.getChildAttr(_constants__WEBPACK_IMPORTED_MODULE_11__["FIELD_DATA_PROP"]);
},
getValidateStatus: function getValidateStatus() {
var onlyControl = this.getOnlyControl();
if (!onlyControl) {
return '';
}
var field = this.getField();
if (field.validating) {
return 'validating';
}
if (field.errors) {
return 'error';
}
var fieldValue = 'value' in field ? field.value : this.getMeta().initialValue;
if (fieldValue !== undefined && fieldValue !== null && fieldValue !== '') {
return 'success';
}
return '';
},
// Resolve duplicated ids bug between different forms
// https://github.com/ant-design/ant-design/issues/7351
onLabelClick: function onLabelClick() {
var id = this.id || this.getId();
if (!id) {
return;
}
var formItemNode = this.$el;
var control = formItemNode.querySelector('[id="' + id + '"]');
if (control && control.focus) {
control.focus();
}
},
onHelpAnimEnd: function onHelpAnimEnd(_key, helpShow) {
this.helpShow = helpShow;
if (!helpShow) {
this.$forceUpdate();
}
},
isRequired: function isRequired() {
var required = this.required;
if (required !== undefined) {
return required;
}
if (this.getOnlyControl()) {
var meta = this.getMeta() || {};
var validate = meta.validate || [];
return validate.filter(function (item) {
return !!item.rules;
}).some(function (item) {
return item.rules.some(function (rule) {
return rule.required;
});
});
}
return false;
},
renderHelp: function renderHelp(prefixCls) {
var _this = this;
var h = this.$createElement;
var help = this.getHelpMessage();
var children = help ? h(
'div',
{ 'class': prefixCls + '-explain', key: 'help' },
[help]
) : null;
if (children) {
this.helpShow = !!children;
}
var transitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_13__["default"])('show-help', {
afterEnter: function afterEnter() {
return _this.onHelpAnimEnd('help', true);
},
afterLeave: function afterLeave() {
return _this.onHelpAnimEnd('help', false);
}
});
return h(
'transition',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_3___default()([transitionProps, { key: 'help' }]),
[children]
);
},
renderExtra: function renderExtra(prefixCls) {
var h = this.$createElement;
var extra = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(this, 'extra');
return extra ? h(
'div',
{ 'class': prefixCls + '-extra' },
[extra]
) : null;
},
renderValidateWrapper: function renderValidateWrapper(prefixCls, c1, c2, c3) {
var h = this.$createElement;
var props = this.$props;
var onlyControl = this.getOnlyControl;
var validateStatus = props.validateStatus === undefined && onlyControl ? this.getValidateStatus() : props.validateStatus;
var classes = prefixCls + '-item-control';
if (validateStatus) {
classes = classnames__WEBPACK_IMPORTED_MODULE_6___default()(prefixCls + '-item-control', {
'has-feedback': validateStatus && props.hasFeedback,
'has-success': validateStatus === 'success',
'has-warning': validateStatus === 'warning',
'has-error': validateStatus === 'error',
'is-validating': validateStatus === 'validating'
});
}
var iconType = '';
switch (validateStatus) {
case 'success':
iconType = 'check-circle';
break;
case 'warning':
iconType = 'exclamation-circle';
break;
case 'error':
iconType = 'close-circle';
break;
case 'validating':
iconType = 'loading';
break;
default:
iconType = '';
break;
}
var icon = props.hasFeedback && iconType ? h(
'span',
{ 'class': prefixCls + '-item-children-icon' },
[h(_icon__WEBPACK_IMPORTED_MODULE_16__["default"], {
attrs: { type: iconType, theme: iconType === 'loading' ? 'outlined' : 'filled' }
})]
) : null;
return h(
'div',
{ 'class': classes },
[h(
'span',
{ 'class': prefixCls + '-item-children' },
[c1, icon]
), c2, c3]
);
},
renderWrapper: function renderWrapper(prefixCls, children) {
var h = this.$createElement;
var _ref = this.isFormItemChildren ? {} : this.FormContext,
contextWrapperCol = _ref.wrapperCol;
var wrapperCol = this.wrapperCol;
var mergedWrapperCol = wrapperCol || contextWrapperCol || {};
var style = mergedWrapperCol.style,
id = mergedWrapperCol.id,
on = mergedWrapperCol.on,
restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(mergedWrapperCol, ['style', 'id', 'on']);
var className = classnames__WEBPACK_IMPORTED_MODULE_6___default()(prefixCls + '-item-control-wrapper', mergedWrapperCol['class']);
var colProps = {
props: restProps,
'class': className,
key: 'wrapper',
style: style,
id: id,
on: on
};
return h(
_grid_Col__WEBPACK_IMPORTED_MODULE_9__["default"],
colProps,
[children]
);
},
renderLabel: function renderLabel(prefixCls) {
var _classNames;
var h = this.$createElement;
var _FormContext = this.FormContext,
vertical = _FormContext.vertical,
contextLabelAlign = _FormContext.labelAlign,
contextLabelCol = _FormContext.labelCol,
contextColon = _FormContext.colon;
var labelAlign = this.labelAlign,
labelCol = this.labelCol,
colon = this.colon,
id = this.id,
htmlFor = this.htmlFor;
var label = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(this, 'label');
var required = this.isRequired();
var mergedLabelCol = labelCol || contextLabelCol || {};
var mergedLabelAlign = labelAlign || contextLabelAlign;
var labelClsBasic = prefixCls + '-item-label';
var labelColClassName = classnames__WEBPACK_IMPORTED_MODULE_6___default()(labelClsBasic, mergedLabelAlign === 'left' && labelClsBasic + '-left', mergedLabelCol['class']);
var labelColClass = mergedLabelCol['class'],
labelColStyle = mergedLabelCol.style,
labelColId = mergedLabelCol.id,
on = mergedLabelCol.on,
restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(mergedLabelCol, ['class', 'style', 'id', 'on']);
var labelChildren = label;
// Keep label is original where there should have no colon
var computedColon = colon === true || contextColon !== false && colon !== false;
var haveColon = computedColon && !vertical;
// Remove duplicated user input colon
if (haveColon && typeof label === 'string' && label.trim() !== '') {
labelChildren = label.replace(/[:]\s*$/, '');
}
var labelClassName = classnames__WEBPACK_IMPORTED_MODULE_6___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-item-required', required), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-item-no-colon', !computedColon), _classNames));
var colProps = {
props: restProps,
'class': labelColClassName,
key: 'label',
style: labelColStyle,
id: labelColId,
on: on
};
return label ? h(
_grid_Col__WEBPACK_IMPORTED_MODULE_9__["default"],
colProps,
[h(
'label',
{
attrs: {
'for': htmlFor || id || this.getId(),
title: typeof label === 'string' ? label : ''
},
'class': labelClassName, on: {
'click': this.onLabelClick
}
},
[labelChildren]
)]
) : null;
},
renderChildren: function renderChildren(prefixCls) {
return [this.renderLabel(prefixCls), this.renderWrapper(prefixCls, this.renderValidateWrapper(prefixCls, this.slotDefault, this.renderHelp(prefixCls), this.renderExtra(prefixCls)))];
},
renderFormItem: function renderFormItem() {
var _itemClassName;
var h = this.$createElement;
var customizePrefixCls = this.$props.prefixCls;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('form', customizePrefixCls);
var children = this.renderChildren(prefixCls);
var itemClassName = (_itemClassName = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_itemClassName, prefixCls + '-item', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_itemClassName, prefixCls + '-item-with-help', this.helpShow), _itemClassName);
return h(
_grid_Row__WEBPACK_IMPORTED_MODULE_8__["default"],
{ 'class': classnames__WEBPACK_IMPORTED_MODULE_6___default()(itemClassName), key: 'row' },
[children]
);
},
decoratorOption: function decoratorOption(vnode) {
if (vnode.data && vnode.data.directives) {
var directive = lodash_find__WEBPACK_IMPORTED_MODULE_7___default()(vnode.data.directives, ['name', 'decorator']);
Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(!directive || directive && Array.isArray(directive.value), 'Form', 'Invalid directive: type check failed for directive "decorator". Expected Array, got ' + babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(directive ? directive.value : directive) + '. At ' + vnode.tag + '.');
return directive ? directive.value : null;
} else {
return null;
}
},
decoratorChildren: function decoratorChildren(vnodes) {
var FormContext = this.FormContext;
var getFieldDecorator = FormContext.form.getFieldDecorator;
for (var i = 0, len = vnodes.length; i < len; i++) {
var vnode = vnodes[i];
if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getSlotOptions"])(vnode).__ANT_FORM_ITEM) {
break;
}
if (vnode.children) {
vnode.children = this.decoratorChildren(Object(_util_vnode__WEBPACK_IMPORTED_MODULE_15__["cloneVNodes"])(vnode.children));
} else if (vnode.componentOptions && vnode.componentOptions.children) {
vnode.componentOptions.children = this.decoratorChildren(Object(_util_vnode__WEBPACK_IMPORTED_MODULE_15__["cloneVNodes"])(vnode.componentOptions.children));
}
var option = this.decoratorOption(vnode);
if (option && option[0]) {
vnodes[i] = getFieldDecorator(option[0], option[1], this)(vnode);
}
}
return vnodes;
}
},
render: function render() {
var $slots = this.$slots,
decoratorFormProps = this.decoratorFormProps,
fieldDecoratorId = this.fieldDecoratorId,
_fieldDecoratorOption = this.fieldDecoratorOptions,
fieldDecoratorOptions = _fieldDecoratorOption === undefined ? {} : _fieldDecoratorOption,
FormContext = this.FormContext;
var child = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["filterEmpty"])($slots['default'] || []);
if (decoratorFormProps.form && fieldDecoratorId && child.length) {
var getFieldDecorator = decoratorFormProps.form.getFieldDecorator;
child[0] = getFieldDecorator(fieldDecoratorId, fieldDecoratorOptions, this)(child[0]);
Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(!(child.length > 1), 'Form', '`autoFormCreate` just `decorator` then first children. but you can use JSX to support multiple children');
this.slotDefault = child;
} else if (FormContext.form) {
child = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_15__["cloneVNodes"])(child);
this.slotDefault = this.decoratorChildren(child);
} else {
this.slotDefault = child;
}
return this.renderFormItem();
}
});
/***/ }),
/***/ "./components/form/constants.jsx":
/*!***************************************!*\
!*** ./components/form/constants.jsx ***!
\***************************************/
/*! exports provided: FIELD_META_PROP, FIELD_DATA_PROP */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FIELD_META_PROP", function() { return FIELD_META_PROP; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FIELD_DATA_PROP", function() { return FIELD_DATA_PROP; });
var FIELD_META_PROP = 'data-__meta';
var FIELD_DATA_PROP = 'data-__field';
/***/ }),
/***/ "./components/form/index.jsx":
/*!***********************************!*\
!*** ./components/form/index.jsx ***!
\***********************************/
/*! exports provided: FormProps, FormCreateOption, ValidationRule, FormItemProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "vue");
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _Form__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Form */ "./components/form/Form.jsx");
/* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
/* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_FormDecoratorDirective__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/FormDecoratorDirective */ "./components/_util/FormDecoratorDirective.js");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormProps", function() { return _Form__WEBPACK_IMPORTED_MODULE_1__["FormProps"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormCreateOption", function() { return _Form__WEBPACK_IMPORTED_MODULE_1__["FormCreateOption"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ValidationRule", function() { return _Form__WEBPACK_IMPORTED_MODULE_1__["ValidationRule"]; });
/* harmony import */ var _FormItem__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./FormItem */ "./components/form/FormItem.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormItemProps", function() { return _FormItem__WEBPACK_IMPORTED_MODULE_5__["FormItemProps"]; });
vue__WEBPACK_IMPORTED_MODULE_0___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_2___default.a, { name: 'ant-ref' });
vue__WEBPACK_IMPORTED_MODULE_0___default.a.use(_util_FormDecoratorDirective__WEBPACK_IMPORTED_MODULE_3__["default"]);
vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$form = _Form__WEBPACK_IMPORTED_MODULE_1__["default"];
/* istanbul ignore next */
_Form__WEBPACK_IMPORTED_MODULE_1__["default"].install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_4__["default"]);
Vue.component(_Form__WEBPACK_IMPORTED_MODULE_1__["default"].name, _Form__WEBPACK_IMPORTED_MODULE_1__["default"]);
Vue.component(_Form__WEBPACK_IMPORTED_MODULE_1__["default"].Item.name, _Form__WEBPACK_IMPORTED_MODULE_1__["default"].Item);
Vue.prototype.$form = _Form__WEBPACK_IMPORTED_MODULE_1__["default"];
};
/* harmony default export */ __webpack_exports__["default"] = (_Form__WEBPACK_IMPORTED_MODULE_1__["default"]);
/***/ }),
/***/ "./components/form/style/index.js":
/*!****************************************!*\
!*** ./components/form/style/index.js ***!
\****************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/form/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _grid_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../grid/style */ "./components/grid/style/index.js");
// style dependencies
/***/ }),
/***/ "./components/form/style/index.less":
/*!******************************************!*\
!*** ./components/form/style/index.less ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/grid/Col.jsx":
/*!*********************************!*\
!*** ./components/grid/Col.jsx ***!
\*********************************/
/*! exports provided: ColSize, ColProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColSize", function() { return ColSize; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColProps", function() { return ColProps; });
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
var stringOrNumber = _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number]);
var ColSize = _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].shape({
span: stringOrNumber,
order: stringOrNumber,
offset: stringOrNumber,
push: stringOrNumber,
pull: stringOrNumber
}).loose;
var objectOrNumber = _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number, ColSize]);
var ColProps = {
span: stringOrNumber,
order: stringOrNumber,
offset: stringOrNumber,
push: stringOrNumber,
pull: stringOrNumber,
xs: objectOrNumber,
sm: objectOrNumber,
md: objectOrNumber,
lg: objectOrNumber,
xl: objectOrNumber,
xxl: objectOrNumber,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
flex: stringOrNumber
};
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'ACol',
props: ColProps,
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__["ConfigConsumerProps"];
} },
rowContext: {
'default': function _default() {
return null;
}
}
},
methods: {
parseFlex: function parseFlex(flex) {
if (typeof flex === 'number') {
return flex + ' ' + flex + ' auto';
}
if (/^\d+(\.\d+)?(px|em|rem|%)$/.test(flex)) {
return '0 0 ' + flex;
}
return flex;
}
},
render: function render() {
var _this = this,
_extends3;
var h = arguments[0];
var span = this.span,
order = this.order,
offset = this.offset,
push = this.push,
pull = this.pull,
flex = this.flex,
customizePrefixCls = this.prefixCls,
$slots = this.$slots,
rowContext = this.rowContext;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('col', customizePrefixCls);
var sizeClassObj = {};
['xs', 'sm', 'md', 'lg', 'xl', 'xxl'].forEach(function (size) {
var _extends2;
var sizeProps = {};
var propSize = _this[size];
if (typeof propSize === 'number') {
sizeProps.span = propSize;
} else if ((typeof propSize === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2___default()(propSize)) === 'object') {
sizeProps = propSize || {};
}
sizeClassObj = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, sizeClassObj, (_extends2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_extends2, prefixCls + '-' + size + '-' + sizeProps.span, sizeProps.span !== undefined), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_extends2, prefixCls + '-' + size + '-order-' + sizeProps.order, sizeProps.order || sizeProps.order === 0), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_extends2, prefixCls + '-' + size + '-offset-' + sizeProps.offset, sizeProps.offset || sizeProps.offset === 0), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_extends2, prefixCls + '-' + size + '-push-' + sizeProps.push, sizeProps.push || sizeProps.push === 0), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_extends2, prefixCls + '-' + size + '-pull-' + sizeProps.pull, sizeProps.pull || sizeProps.pull === 0), _extends2));
});
var classes = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()((_extends3 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_extends3, '' + prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_extends3, prefixCls + '-' + span, span !== undefined), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_extends3, prefixCls + '-order-' + order, order), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_extends3, prefixCls + '-offset-' + offset, offset), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_extends3, prefixCls + '-push-' + push, push), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_extends3, prefixCls + '-pull-' + pull, pull), _extends3), sizeClassObj);
var divProps = {
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this),
'class': classes,
style: {}
};
if (rowContext) {
var gutter = rowContext.getGutter();
if (gutter) {
divProps.style = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, gutter[0] > 0 ? {
paddingLeft: gutter[0] / 2 + 'px',
paddingRight: gutter[0] / 2 + 'px'
} : {}, gutter[1] > 0 ? {
paddingTop: gutter[1] / 2 + 'px',
paddingBottom: gutter[1] / 2 + 'px'
} : {});
}
}
if (flex) {
divProps.style.flex = this.parseFlex(flex);
}
return h(
'div',
divProps,
[$slots['default']]
);
}
});
/***/ }),
/***/ "./components/grid/Row.jsx":
/*!*********************************!*\
!*** ./components/grid/Row.jsx ***!
\*********************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _util_responsiveObserve__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/responsiveObserve */ "./components/_util/responsiveObserve.js");
var RowProps = {
gutter: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array]),
type: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['flex']),
align: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['top', 'middle', 'bottom', 'stretch']),
justify: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['start', 'end', 'center', 'space-around', 'space-between']),
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string
};
var responsiveArray = ['xxl', 'xl', 'lg', 'md', 'sm', 'xs'];
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'ARow',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, RowProps, {
gutter: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array]).def(0)
}),
provide: function provide() {
return {
rowContext: this
};
},
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__["ConfigConsumerProps"];
} }
},
data: function data() {
return {
screens: {}
};
},
mounted: function mounted() {
var _this = this;
this.$nextTick(function () {
_this.token = _util_responsiveObserve__WEBPACK_IMPORTED_MODULE_6__["default"].subscribe(function (screens) {
var gutter = _this.gutter;
if ((typeof gutter === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(gutter)) === 'object' || Array.isArray(gutter) && (babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(gutter[0]) === 'object' || babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(gutter[1]) === 'object')) {
_this.screens = screens;
}
});
});
},
beforeDestroy: function beforeDestroy() {
_util_responsiveObserve__WEBPACK_IMPORTED_MODULE_6__["default"].unsubscribe(this.token);
},
methods: {
getGutter: function getGutter() {
var results = [0, 0];
var gutter = this.gutter,
screens = this.screens;
var normalizedGutter = Array.isArray(gutter) ? gutter : [gutter, 0];
normalizedGutter.forEach(function (g, index) {
if ((typeof g === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(g)) === 'object') {
for (var i = 0; i < responsiveArray.length; i++) {
var breakpoint = responsiveArray[i];
if (screens[breakpoint] && g[breakpoint] !== undefined) {
results[index] = g[breakpoint];
break;
}
}
} else {
results[index] = g || 0;
}
});
return results;
}
},
render: function render() {
var _classes;
var h = arguments[0];
var type = this.type,
justify = this.justify,
align = this.align,
customizePrefixCls = this.prefixCls,
$slots = this.$slots;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('row', customizePrefixCls);
var gutter = this.getGutter();
var classes = (_classes = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classes, prefixCls, !type), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classes, prefixCls + '-' + type, type), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classes, prefixCls + '-' + type + '-' + justify, type && justify), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classes, prefixCls + '-' + type + '-' + align, type && align), _classes);
var rowStyle = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, gutter[0] > 0 ? {
marginLeft: gutter[0] / -2 + 'px',
marginRight: gutter[0] / -2 + 'px'
} : {}, gutter[1] > 0 ? {
marginTop: gutter[1] / -2 + 'px',
marginBottom: gutter[1] / -2 + 'px'
} : {});
return h(
'div',
{ 'class': classes, style: rowStyle },
[$slots['default']]
);
}
});
/***/ }),
/***/ "./components/grid/index.js":
/*!**********************************!*\
!*** ./components/grid/index.js ***!
\**********************************/
/*! exports provided: Row, Col */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Row__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Row */ "./components/grid/Row.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Row", function() { return _Row__WEBPACK_IMPORTED_MODULE_0__["default"]; });
/* harmony import */ var _Col__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Col */ "./components/grid/Col.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Col", function() { return _Col__WEBPACK_IMPORTED_MODULE_1__["default"]; });
/***/ }),
/***/ "./components/grid/style/index.js":
/*!****************************************!*\
!*** ./components/grid/style/index.js ***!
\****************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/grid/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/***/ }),
/***/ "./components/grid/style/index.less":
/*!******************************************!*\
!*** ./components/grid/style/index.less ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/icon/IconFont.jsx":
/*!**************************************!*\
!*** ./components/icon/IconFont.jsx ***!
\**************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return create; });
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index */ "./components/icon/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
var customCache = new Set();
function create(options) {
var scriptUrl = options.scriptUrl,
_options$extraCommonP = options.extraCommonProps,
extraCommonProps = _options$extraCommonP === undefined ? {} : _options$extraCommonP;
/**
* DOM API required.
* Make sure in browser environment.
* The Custom Icon will create a <script/>
* that loads SVG symbols and insert the SVG Element into the document body.
*/
if (typeof document !== 'undefined' && typeof window !== 'undefined' && typeof document.createElement === 'function' && typeof scriptUrl === 'string' && scriptUrl.length && !customCache.has(scriptUrl)) {
var script = document.createElement('script');
script.setAttribute('src', scriptUrl);
script.setAttribute('data-namespace', scriptUrl);
customCache.add(scriptUrl);
document.body.appendChild(script);
}
var Iconfont = {
functional: true,
name: 'AIconfont',
props: _index__WEBPACK_IMPORTED_MODULE_1__["default"].props,
render: function render(h, context) {
var props = context.props,
slots = context.slots,
listeners = context.listeners,
data = context.data;
var type = props.type,
restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(props, ['type']);
var slotsMap = slots();
var children = slotsMap['default'];
// component > children > type
var content = null;
if (type) {
content = h('use', { attrs: { 'xlink:href': '#' + type } });
}
if (children) {
content = children;
}
var iconProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["mergeProps"])(extraCommonProps, data, { props: restProps, on: listeners });
return h(
_index__WEBPACK_IMPORTED_MODULE_1__["default"],
iconProps,
[content]
);
}
};
return Iconfont;
}
/***/ }),
/***/ "./components/icon/index.js":
/*!**********************************!*\
!*** ./components/icon/index.js ***!
\**********************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _ant_design_icons_lib_dist__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ant-design/icons/lib/dist */ "./node_modules/@ant-design/icons/lib/dist.js");
/* harmony import */ var _ant_design_icons_lib_dist__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_ant_design_icons_lib_dist__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _ant_design_icons_vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @ant-design/icons-vue */ "./node_modules/@ant-design/icons-vue/es/index.js");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _IconFont__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./IconFont */ "./components/icon/IconFont.jsx");
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils */ "./components/icon/utils.js");
/* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
/* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./components/locale-provider/LocaleReceiver.jsx");
/* harmony import */ var _twoTonePrimaryColor__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./twoTonePrimaryColor */ "./components/icon/twoTonePrimaryColor.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
// Initial setting
_ant_design_icons_vue__WEBPACK_IMPORTED_MODULE_6__["default"].add.apply(_ant_design_icons_vue__WEBPACK_IMPORTED_MODULE_6__["default"], babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_3___default()(Object.keys(_ant_design_icons_lib_dist__WEBPACK_IMPORTED_MODULE_5__).map(function (key) {
return _ant_design_icons_lib_dist__WEBPACK_IMPORTED_MODULE_5__[key];
})));
Object(_twoTonePrimaryColor__WEBPACK_IMPORTED_MODULE_12__["setTwoToneColor"])('#1890ff');
var defaultTheme = 'outlined';
var dangerousTheme = void 0;
function renderIcon(h, locale, context) {
var _classNames;
var props = context.$props,
$slots = context.$slots;
var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["getListeners"])(context);
var type = props.type,
Component = props.component,
viewBox = props.viewBox,
spin = props.spin,
theme = props.theme,
twoToneColor = props.twoToneColor,
rotate = props.rotate,
tabIndex = props.tabIndex;
var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["filterEmpty"])($slots['default']);
children = children.length === 0 ? undefined : children;
Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(Boolean(type || Component || children), 'Icon', 'Icon should have `type` prop or `component` prop or `children`.');
var classString = classnames__WEBPACK_IMPORTED_MODULE_4___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, 'anticon', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, 'anticon-' + type, !!type), _classNames));
var svgClassString = classnames__WEBPACK_IMPORTED_MODULE_4___default()(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, 'anticon-spin', !!spin || type === 'loading'));
var svgStyle = rotate ? {
msTransform: 'rotate(' + rotate + 'deg)',
transform: 'rotate(' + rotate + 'deg)'
} : undefined;
var innerSvgProps = {
attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, _utils__WEBPACK_IMPORTED_MODULE_9__["svgBaseProps"], {
viewBox: viewBox
}),
'class': svgClassString,
style: svgStyle
};
if (!viewBox) {
delete innerSvgProps.attrs.viewBox;
}
var renderInnerNode = function renderInnerNode() {
// component > children > type
if (Component) {
return h(
Component,
innerSvgProps,
[children]
);
}
if (children) {
Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(Boolean(viewBox) || children.length === 1 && children[0].tag === 'use', 'Icon', 'Make sure that you provide correct `viewBox`' + ' prop (default `0 0 1024 1024`) to the icon.');
var _innerSvgProps = {
attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, _utils__WEBPACK_IMPORTED_MODULE_9__["svgBaseProps"]),
'class': svgClassString,
style: svgStyle
};
return h(
'svg',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([_innerSvgProps, {
attrs: { viewBox: viewBox }
}]),
[children]
);
}
if (typeof type === 'string') {
var computedType = type;
if (theme) {
var themeInName = Object(_utils__WEBPACK_IMPORTED_MODULE_9__["getThemeFromTypeName"])(type);
Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(!themeInName || theme === themeInName, 'Icon', 'The icon name \'' + type + '\' already specify a theme \'' + themeInName + '\',' + (' the \'theme\' prop \'' + theme + '\' will be ignored.'));
}
computedType = Object(_utils__WEBPACK_IMPORTED_MODULE_9__["withThemeSuffix"])(Object(_utils__WEBPACK_IMPORTED_MODULE_9__["removeTypeTheme"])(Object(_utils__WEBPACK_IMPORTED_MODULE_9__["alias"])(computedType)), dangerousTheme || theme || defaultTheme);
return h(_ant_design_icons_vue__WEBPACK_IMPORTED_MODULE_6__["default"], {
attrs: {
focusable: 'false',
type: computedType,
primaryColor: twoToneColor
},
'class': svgClassString, style: svgStyle
});
}
};
var iconTabIndex = tabIndex;
if (iconTabIndex === undefined && 'click' in listeners) {
iconTabIndex = -1;
}
// functional component not support nativeOnhttps://github.com/vuejs/vue/issues/7526
var iProps = {
attrs: {
'aria-label': type && locale.icon + ': ' + type,
tabIndex: iconTabIndex
},
on: listeners,
'class': classString,
staticClass: ''
};
return h(
'i',
iProps,
[renderInnerNode()]
);
}
var Icon = {
name: 'AIcon',
props: {
tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].number,
type: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
component: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
viewBox: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
spin: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool.def(false),
rotate: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].number,
theme: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].oneOf(['filled', 'outlined', 'twoTone']),
twoToneColor: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
role: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string
},
render: function render(h) {
var _this = this;
return h(_locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_11__["default"], {
attrs: {
componentName: 'Icon'
},
scopedSlots: { 'default': function _default(locale) {
return renderIcon(h, locale, _this);
} }
});
}
};
Icon.createFromIconfontCN = _IconFont__WEBPACK_IMPORTED_MODULE_8__["default"];
Icon.getTwoToneColor = _twoTonePrimaryColor__WEBPACK_IMPORTED_MODULE_12__["getTwoToneColor"];
Icon.setTwoToneColor = _twoTonePrimaryColor__WEBPACK_IMPORTED_MODULE_12__["setTwoToneColor"];
/* istanbul ignore next */
Icon.install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_14__["default"]);
Vue.component(Icon.name, Icon);
};
/* harmony default export */ __webpack_exports__["default"] = (Icon);
/***/ }),
/***/ "./components/icon/style/index.js":
/*!****************************************!*\
!*** ./components/icon/style/index.js ***!
\****************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/icon/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/***/ }),
/***/ "./components/icon/style/index.less":
/*!******************************************!*\
!*** ./components/icon/style/index.less ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/icon/twoTonePrimaryColor.js":
/*!************************************************!*\
!*** ./components/icon/twoTonePrimaryColor.js ***!
\************************************************/
/*! exports provided: setTwoToneColor, getTwoToneColor */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setTwoToneColor", function() { return setTwoToneColor; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTwoToneColor", function() { return getTwoToneColor; });
/* harmony import */ var _ant_design_icons_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/icons-vue */ "./node_modules/@ant-design/icons-vue/es/index.js");
function setTwoToneColor(primaryColor) {
return _ant_design_icons_vue__WEBPACK_IMPORTED_MODULE_0__["default"].setTwoToneColors({
primaryColor: primaryColor
});
}
function getTwoToneColor() {
var colors = _ant_design_icons_vue__WEBPACK_IMPORTED_MODULE_0__["default"].getTwoToneColors();
return colors.primaryColor;
}
/***/ }),
/***/ "./components/icon/utils.js":
/*!**********************************!*\
!*** ./components/icon/utils.js ***!
\**********************************/
/*! exports provided: svgBaseProps, getThemeFromTypeName, removeTypeTheme, withThemeSuffix, alias */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "svgBaseProps", function() { return svgBaseProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getThemeFromTypeName", function() { return getThemeFromTypeName; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeTypeTheme", function() { return removeTypeTheme; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withThemeSuffix", function() { return withThemeSuffix; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "alias", function() { return alias; });
/* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
// These props make sure that the SVG behaviours like general text.
// Reference: https://blog.prototypr.io/align-svg-icons-to-text-and-say-goodbye-to-font-icons-d44b3d7b26b4
var svgBaseProps = {
width: '1em',
height: '1em',
fill: 'currentColor',
'aria-hidden': 'true',
focusable: 'false'
};
var fillTester = /-fill$/;
var outlineTester = /-o$/;
var twoToneTester = /-twotone$/;
function getThemeFromTypeName(type) {
var result = null;
if (fillTester.test(type)) {
result = 'filled';
} else if (outlineTester.test(type)) {
result = 'outlined';
} else if (twoToneTester.test(type)) {
result = 'twoTone';
}
return result;
}
function removeTypeTheme(type) {
return type.replace(fillTester, '').replace(outlineTester, '').replace(twoToneTester, '');
}
function withThemeSuffix(type, theme) {
var result = type;
if (theme === 'filled') {
result += '-fill';
} else if (theme === 'outlined') {
result += '-o';
} else if (theme === 'twoTone') {
result += '-twotone';
} else {
Object(_util_warning__WEBPACK_IMPORTED_MODULE_0__["default"])(false, 'Icon', 'This icon \'' + type + '\' has unknown theme \'' + theme + '\'');
}
return result;
}
// For alias or compatibility
function alias(type) {
var newType = type;
switch (type) {
case 'cross':
newType = 'close';
break;
// https://github.com/ant-design/ant-design/issues/13007
case 'interation':
newType = 'interaction';
break;
// https://github.com/ant-design/ant-design/issues/16810
case 'canlendar':
newType = 'calendar';
break;
// https://github.com/ant-design/ant-design/issues/17448
case 'colum-height':
newType = 'column-height';
break;
default:
}
Object(_util_warning__WEBPACK_IMPORTED_MODULE_0__["default"])(newType === type, 'Icon', 'Icon \'' + type + '\' was a typo and is now deprecated, please use \'' + newType + '\' instead.');
return newType;
}
/***/ }),
/***/ "./components/index.js":
/*!*****************************!*\
!*** ./components/index.js ***!
\*****************************/
/*! exports provided: Base, version, install, message, notification, Affix, Anchor, AutoComplete, Alert, Avatar, BackTop, Badge, Breadcrumb, Button, Calendar, Card, Collapse, Carousel, Cascader, Checkbox, Col, DatePicker, Divider, Dropdown, Form, FormModel, Icon, Input, InputNumber, Layout, List, LocaleProvider, Menu, Mentions, Modal, Pagination, Popconfirm, Popover, Progress, Radio, Rate, Row, Select, Slider, Spin, Statistic, Steps, Switch, Table, Transfer, Tree, TreeSelect, Tabs, Tag, TimePicker, Timeline, Tooltip, Upload, Drawer, Skeleton, Comment, ConfigProvider, Empty, Result, Descriptions, PageHeader, Space, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "install", function() { return install; });
/* harmony import */ var _affix__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./affix */ "./components/affix/index.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Affix", function() { return _affix__WEBPACK_IMPORTED_MODULE_0__["default"]; });
/* harmony import */ var _anchor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./anchor */ "./components/anchor/index.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Anchor", function() { return _anchor__WEBPACK_IMPORTED_MODULE_1__["default"]; });
/* harmony import */ var _auto_complete__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./auto-complete */ "./components/auto-complete/index.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AutoComplete", function() { return _auto_complete__WEBPACK_IMPORTED_MODULE_2__["default"]; });
/* harmony import */ var _alert__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./alert */ "./components/alert/index.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Alert", function() { return _alert__WEBPACK_IMPORTED_MODULE_3__["default"]; });
/* harmony import */ var _avatar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./avatar */ "./components/avatar/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Avatar", function() { return _avatar__WEBPACK_IMPORTED_MODULE_4__["default"]; });
/* harmony import */ var _back_top__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./back-top */ "./components/back-top/index.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BackTop", function() { return _back_top__WEBPACK_IMPORTED_MODULE_5__["default"]; });
/* harmony import */ var _badge__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./badge */ "./components/badge/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Badge", function() { return _badge__WEBPACK_IMPORTED_MODULE_6__["default"]; });
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./base */ "./components/base/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Base", function() { return _base__WEBPACK_IMPORTED_MODULE_7__["default"]; });
/* harmony import */ var _breadcrumb__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./breadcrumb */ "./components/breadcrumb/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Breadcrumb", function() { return _breadcrumb__WEBPACK_IMPORTED_MODULE_8__["default"]; });
/* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./button */ "./components/button/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Button", function() { return _button__WEBPACK_IMPORTED_MODULE_9__["default"]; });
/* harmony import */ var _calendar__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./calendar */ "./components/calendar/index.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Calendar", function() { return _calendar__WEBPACK_IMPORTED_MODULE_10__["default"]; });
/* harmony import */ var _card__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./card */ "./components/card/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Card", function() { return _card__WEBPACK_IMPORTED_MODULE_11__["default"]; });
/* harmony import */ var _collapse__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./collapse */ "./components/collapse/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Collapse", function() { return _collapse__WEBPACK_IMPORTED_MODULE_12__["default"]; });
/* harmony import */ var _carousel__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./carousel */ "./components/carousel/index.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Carousel", function() { return _carousel__WEBPACK_IMPORTED_MODULE_13__["default"]; });
/* harmony import */ var _cascader__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./cascader */ "./components/cascader/index.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Cascader", function() { return _cascader__WEBPACK_IMPORTED_MODULE_14__["default"]; });
/* harmony import */ var _checkbox__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./checkbox */ "./components/checkbox/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Checkbox", function() { return _checkbox__WEBPACK_IMPORTED_MODULE_15__["default"]; });
/* harmony import */ var _col__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./col */ "./components/col/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Col", function() { return _col__WEBPACK_IMPORTED_MODULE_16__["default"]; });
/* harmony import */ var _date_picker__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./date-picker */ "./components/date-picker/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DatePicker", function() { return _date_picker__WEBPACK_IMPORTED_MODULE_17__["default"]; });
/* harmony import */ var _divider__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./divider */ "./components/divider/index.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Divider", function() { return _divider__WEBPACK_IMPORTED_MODULE_18__["default"]; });
/* harmony import */ var _dropdown__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./dropdown */ "./components/dropdown/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Dropdown", function() { return _dropdown__WEBPACK_IMPORTED_MODULE_19__["default"]; });
/* harmony import */ var _form__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./form */ "./components/form/index.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Form", function() { return _form__WEBPACK_IMPORTED_MODULE_20__["default"]; });
/* harmony import */ var _form_model__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./form-model */ "./components/form-model/index.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FormModel", function() { return _form_model__WEBPACK_IMPORTED_MODULE_21__["default"]; });
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./icon */ "./components/icon/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Icon", function() { return _icon__WEBPACK_IMPORTED_MODULE_22__["default"]; });
/* harmony import */ var _input__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./input */ "./components/input/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Input", function() { return _input__WEBPACK_IMPORTED_MODULE_23__["default"]; });
/* harmony import */ var _input_number__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./input-number */ "./components/input-number/index.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "InputNumber", function() { return _input_number__WEBPACK_IMPORTED_MODULE_24__["default"]; });
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./layout */ "./components/layout/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Layout", function() { return _layout__WEBPACK_IMPORTED_MODULE_25__["default"]; });
/* harmony import */ var _list__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./list */ "./components/list/index.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "List", function() { return _list__WEBPACK_IMPORTED_MODULE_26__["default"]; });
/* harmony import */ var _locale_provider__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./locale-provider */ "./components/locale-provider/index.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LocaleProvider", function() { return _locale_provider__WEBPACK_IMPORTED_MODULE_27__["default"]; });
/* harmony import */ var _message__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./message */ "./components/message/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "message", function() { return _message__WEBPACK_IMPORTED_MODULE_28__["default"]; });
/* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./menu */ "./components/menu/index.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Menu", function() { return _menu__WEBPACK_IMPORTED_MODULE_29__["default"]; });
/* harmony import */ var _mentions__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./mentions */ "./components/mentions/index.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Mentions", function() { return _mentions__WEBPACK_IMPORTED_MODULE_30__["default"]; });
/* harmony import */ var _modal__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./modal */ "./components/modal/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Modal", function() { return _modal__WEBPACK_IMPORTED_MODULE_31__["default"]; });
/* harmony import */ var _notification__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./notification */ "./components/notification/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "notification", function() { return _notification__WEBPACK_IMPORTED_MODULE_32__["default"]; });
/* harmony import */ var _pagination__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./pagination */ "./components/pagination/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Pagination", function() { return _pagination__WEBPACK_IMPORTED_MODULE_33__["default"]; });
/* harmony import */ var _popconfirm__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./popconfirm */ "./components/popconfirm/index.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Popconfirm", function() { return _popconfirm__WEBPACK_IMPORTED_MODULE_34__["default"]; });
/* harmony import */ var _popover__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./popover */ "./components/popover/index.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Popover", function() { return _popover__WEBPACK_IMPORTED_MODULE_35__["default"]; });
/* harmony import */ var _progress__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./progress */ "./components/progress/index.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Progress", function() { return _progress__WEBPACK_IMPORTED_MODULE_36__["default"]; });
/* harmony import */ var _radio__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./radio */ "./components/radio/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Radio", function() { return _radio__WEBPACK_IMPORTED_MODULE_37__["default"]; });
/* harmony import */ var _rate__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./rate */ "./components/rate/index.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Rate", function() { return _rate__WEBPACK_IMPORTED_MODULE_38__["default"]; });
/* harmony import */ var _row__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./row */ "./components/row/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Row", function() { return _row__WEBPACK_IMPORTED_MODULE_39__["default"]; });
/* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./select */ "./components/select/index.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Select", function() { return _select__WEBPACK_IMPORTED_MODULE_40__["default"]; });
/* harmony import */ var _slider__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./slider */ "./components/slider/index.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Slider", function() { return _slider__WEBPACK_IMPORTED_MODULE_41__["default"]; });
/* harmony import */ var _spin__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./spin */ "./components/spin/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Spin", function() { return _spin__WEBPACK_IMPORTED_MODULE_42__["default"]; });
/* harmony import */ var _statistic__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./statistic */ "./components/statistic/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Statistic", function() { return _statistic__WEBPACK_IMPORTED_MODULE_43__["default"]; });
/* harmony import */ var _steps__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./steps */ "./components/steps/index.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Steps", function() { return _steps__WEBPACK_IMPORTED_MODULE_44__["default"]; });
/* harmony import */ var _switch__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./switch */ "./components/switch/index.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Switch", function() { return _switch__WEBPACK_IMPORTED_MODULE_45__["default"]; });
/* harmony import */ var _table__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./table */ "./components/table/index.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Table", function() { return _table__WEBPACK_IMPORTED_MODULE_46__["default"]; });
/* harmony import */ var _transfer__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./transfer */ "./components/transfer/index.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Transfer", function() { return _transfer__WEBPACK_IMPORTED_MODULE_47__["default"]; });
/* harmony import */ var _tree__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./tree */ "./components/tree/index.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tree", function() { return _tree__WEBPACK_IMPORTED_MODULE_48__["default"]; });
/* harmony import */ var _tree_select__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./tree-select */ "./components/tree-select/index.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreeSelect", function() { return _tree_select__WEBPACK_IMPORTED_MODULE_49__["default"]; });
/* harmony import */ var _tabs__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./tabs */ "./components/tabs/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tabs", function() { return _tabs__WEBPACK_IMPORTED_MODULE_50__["default"]; });
/* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./tag */ "./components/tag/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tag", function() { return _tag__WEBPACK_IMPORTED_MODULE_51__["default"]; });
/* harmony import */ var _time_picker__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./time-picker */ "./components/time-picker/index.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TimePicker", function() { return _time_picker__WEBPACK_IMPORTED_MODULE_52__["default"]; });
/* harmony import */ var _timeline__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./timeline */ "./components/timeline/index.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Timeline", function() { return _timeline__WEBPACK_IMPORTED_MODULE_53__["default"]; });
/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./tooltip */ "./components/tooltip/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tooltip", function() { return _tooltip__WEBPACK_IMPORTED_MODULE_54__["default"]; });
/* harmony import */ var _upload__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./upload */ "./components/upload/index.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Upload", function() { return _upload__WEBPACK_IMPORTED_MODULE_55__["default"]; });
/* harmony import */ var _version__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./version */ "./components/version/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "version", function() { return _version__WEBPACK_IMPORTED_MODULE_56__["default"]; });
/* harmony import */ var _drawer__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./drawer */ "./components/drawer/index.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Drawer", function() { return _drawer__WEBPACK_IMPORTED_MODULE_57__["default"]; });
/* harmony import */ var _skeleton__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./skeleton */ "./components/skeleton/index.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Skeleton", function() { return _skeleton__WEBPACK_IMPORTED_MODULE_58__["default"]; });
/* harmony import */ var _comment__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./comment */ "./components/comment/index.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Comment", function() { return _comment__WEBPACK_IMPORTED_MODULE_59__["default"]; });
/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./config-provider */ "./components/config-provider/index.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConfigProvider", function() { return _config_provider__WEBPACK_IMPORTED_MODULE_60__["default"]; });
/* harmony import */ var _empty__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./empty */ "./components/empty/index.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Empty", function() { return _empty__WEBPACK_IMPORTED_MODULE_61__["default"]; });
/* harmony import */ var _result__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ./result */ "./components/result/index.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Result", function() { return _result__WEBPACK_IMPORTED_MODULE_62__["default"]; });
/* harmony import */ var _descriptions__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ./descriptions */ "./components/descriptions/index.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Descriptions", function() { return _descriptions__WEBPACK_IMPORTED_MODULE_63__["default"]; });
/* harmony import */ var _page_header__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ./page-header */ "./components/page-header/index.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PageHeader", function() { return _page_header__WEBPACK_IMPORTED_MODULE_64__["default"]; });
/* harmony import */ var _space__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ./space */ "./components/space/index.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Space", function() { return _space__WEBPACK_IMPORTED_MODULE_65__["default"]; });
/* @remove-on-es-build-begin */
// this file is not used if use https://github.com/ant-design/babel-plugin-import
var ENV = "development";
if (ENV !== 'production' && ENV !== 'test' && typeof console !== 'undefined' && console.warn && typeof window !== 'undefined') {
console.warn('You are using a whole package of antd, ' + 'please use https://www.npmjs.com/package/babel-plugin-import to reduce app bundle size.');
}
/* @remove-on-es-build-end */
var components = [_base__WEBPACK_IMPORTED_MODULE_7__["default"], _affix__WEBPACK_IMPORTED_MODULE_0__["default"], _anchor__WEBPACK_IMPORTED_MODULE_1__["default"], _auto_complete__WEBPACK_IMPORTED_MODULE_2__["default"], _alert__WEBPACK_IMPORTED_MODULE_3__["default"], _avatar__WEBPACK_IMPORTED_MODULE_4__["default"], _back_top__WEBPACK_IMPORTED_MODULE_5__["default"], _badge__WEBPACK_IMPORTED_MODULE_6__["default"], _breadcrumb__WEBPACK_IMPORTED_MODULE_8__["default"], _button__WEBPACK_IMPORTED_MODULE_9__["default"], _calendar__WEBPACK_IMPORTED_MODULE_10__["default"], _card__WEBPACK_IMPORTED_MODULE_11__["default"], _collapse__WEBPACK_IMPORTED_MODULE_12__["default"], _carousel__WEBPACK_IMPORTED_MODULE_13__["default"], _cascader__WEBPACK_IMPORTED_MODULE_14__["default"], _checkbox__WEBPACK_IMPORTED_MODULE_15__["default"], _col__WEBPACK_IMPORTED_MODULE_16__["default"], _date_picker__WEBPACK_IMPORTED_MODULE_17__["default"], _divider__WEBPACK_IMPORTED_MODULE_18__["default"], _dropdown__WEBPACK_IMPORTED_MODULE_19__["default"], _form__WEBPACK_IMPORTED_MODULE_20__["default"], _form_model__WEBPACK_IMPORTED_MODULE_21__["default"], _icon__WEBPACK_IMPORTED_MODULE_22__["default"], _input__WEBPACK_IMPORTED_MODULE_23__["default"], _input_number__WEBPACK_IMPORTED_MODULE_24__["default"], _layout__WEBPACK_IMPORTED_MODULE_25__["default"], _list__WEBPACK_IMPORTED_MODULE_26__["default"], _locale_provider__WEBPACK_IMPORTED_MODULE_27__["default"], _menu__WEBPACK_IMPORTED_MODULE_29__["default"], _mentions__WEBPACK_IMPORTED_MODULE_30__["default"], _modal__WEBPACK_IMPORTED_MODULE_31__["default"], _pagination__WEBPACK_IMPORTED_MODULE_33__["default"], _popconfirm__WEBPACK_IMPORTED_MODULE_34__["default"], _popover__WEBPACK_IMPORTED_MODULE_35__["default"], _progress__WEBPACK_IMPORTED_MODULE_36__["default"], _radio__WEBPACK_IMPORTED_MODULE_37__["default"], _rate__WEBPACK_IMPORTED_MODULE_38__["default"], _row__WEBPACK_IMPORTED_MODULE_39__["default"], _select__WEBPACK_IMPORTED_MODULE_40__["default"], _slider__WEBPACK_IMPORTED_MODULE_41__["default"], _spin__WEBPACK_IMPORTED_MODULE_42__["default"], _statistic__WEBPACK_IMPORTED_MODULE_43__["default"], _steps__WEBPACK_IMPORTED_MODULE_44__["default"], _switch__WEBPACK_IMPORTED_MODULE_45__["default"], _table__WEBPACK_IMPORTED_MODULE_46__["default"], _transfer__WEBPACK_IMPORTED_MODULE_47__["default"], _tree__WEBPACK_IMPORTED_MODULE_48__["default"], _tree_select__WEBPACK_IMPORTED_MODULE_49__["default"], _tabs__WEBPACK_IMPORTED_MODULE_50__["default"], _tag__WEBPACK_IMPORTED_MODULE_51__["default"], _time_picker__WEBPACK_IMPORTED_MODULE_52__["default"], _timeline__WEBPACK_IMPORTED_MODULE_53__["default"], _tooltip__WEBPACK_IMPORTED_MODULE_54__["default"], _upload__WEBPACK_IMPORTED_MODULE_55__["default"], _drawer__WEBPACK_IMPORTED_MODULE_57__["default"], _skeleton__WEBPACK_IMPORTED_MODULE_58__["default"], _comment__WEBPACK_IMPORTED_MODULE_59__["default"],
// ColorPicker,
_config_provider__WEBPACK_IMPORTED_MODULE_60__["default"], _empty__WEBPACK_IMPORTED_MODULE_61__["default"], _result__WEBPACK_IMPORTED_MODULE_62__["default"], _descriptions__WEBPACK_IMPORTED_MODULE_63__["default"], _page_header__WEBPACK_IMPORTED_MODULE_64__["default"], _space__WEBPACK_IMPORTED_MODULE_65__["default"]];
var install = function install(Vue) {
components.map(function (component) {
Vue.use(component);
});
Vue.prototype.$message = _message__WEBPACK_IMPORTED_MODULE_28__["default"];
Vue.prototype.$notification = _notification__WEBPACK_IMPORTED_MODULE_32__["default"];
Vue.prototype.$info = _modal__WEBPACK_IMPORTED_MODULE_31__["default"].info;
Vue.prototype.$success = _modal__WEBPACK_IMPORTED_MODULE_31__["default"].success;
Vue.prototype.$error = _modal__WEBPACK_IMPORTED_MODULE_31__["default"].error;
Vue.prototype.$warning = _modal__WEBPACK_IMPORTED_MODULE_31__["default"].warning;
Vue.prototype.$confirm = _modal__WEBPACK_IMPORTED_MODULE_31__["default"].confirm;
Vue.prototype.$destroyAll = _modal__WEBPACK_IMPORTED_MODULE_31__["default"].destroyAll;
};
/* istanbul ignore if */
if (typeof window !== 'undefined' && window.Vue) {
install(window.Vue);
}
/* harmony default export */ __webpack_exports__["default"] = ({
version: _version__WEBPACK_IMPORTED_MODULE_56__["default"],
install: install
});
/***/ }),
/***/ "./components/input-number/index.jsx":
/*!*******************************************!*\
!*** ./components/input-number/index.jsx ***!
\*******************************************/
/*! exports provided: InputNumberProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputNumberProps", function() { return InputNumberProps; });
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
/* harmony import */ var _vc_input_number_src__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../vc-input-number/src */ "./components/vc-input-number/src/index.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
var InputNumberProps = {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
min: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
max: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string]),
step: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string]),
defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string]),
tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
size: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['large', 'small', 'default']),
formatter: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
parser: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
decimalSeparator: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
name: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
id: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
precision: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool
};
var InputNumber = {
name: 'AInputNumber',
model: {
prop: 'value',
event: 'change'
},
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["initDefaultProps"])(InputNumberProps, {
step: 1
}),
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__["ConfigConsumerProps"];
} }
},
methods: {
focus: function focus() {
this.$refs.inputNumberRef.focus();
},
blur: function blur() {
this.$refs.inputNumberRef.blur();
}
},
render: function render() {
var _classNames;
var h = arguments[0];
var _getOptionProps$$attr = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this), this.$attrs),
customizePrefixCls = _getOptionProps$$attr.prefixCls,
size = _getOptionProps$$attr.size,
others = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(_getOptionProps$$attr, ['prefixCls', 'size']);
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('input-number', customizePrefixCls);
var inputNumberClass = classnames__WEBPACK_IMPORTED_MODULE_5___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-lg', size === 'large'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-sm', size === 'small'), _classNames));
var upIcon = h(_icon__WEBPACK_IMPORTED_MODULE_6__["default"], {
attrs: { type: 'up' },
'class': prefixCls + '-handler-up-inner' });
var downIcon = h(_icon__WEBPACK_IMPORTED_MODULE_6__["default"], {
attrs: { type: 'down' },
'class': prefixCls + '-handler-down-inner' });
var vcInputNumberprops = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
prefixCls: prefixCls,
upHandler: upIcon,
downHandler: downIcon
}, others),
'class': inputNumberClass,
ref: 'inputNumberRef',
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this)
};
return h(_vc_input_number_src__WEBPACK_IMPORTED_MODULE_7__["default"], vcInputNumberprops);
}
};
/* istanbul ignore next */
InputNumber.install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_9__["default"]);
Vue.component(InputNumber.name, InputNumber);
};
/* harmony default export */ __webpack_exports__["default"] = (InputNumber);
/***/ }),
/***/ "./components/input-number/style/index.js":
/*!************************************************!*\
!*** ./components/input-number/style/index.js ***!
\************************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/input-number/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/***/ }),
/***/ "./components/input-number/style/index.less":
/*!**************************************************!*\
!*** ./components/input-number/style/index.less ***!
\**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/input/ClearableLabeledInput.jsx":
/*!****************************************************!*\
!*** ./components/input/ClearableLabeledInput.jsx ***!
\****************************************************/
/*! exports provided: hasPrefixSuffix, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasPrefixSuffix", function() { return hasPrefixSuffix; });
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* 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 _icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
/* harmony import */ var _Input__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Input */ "./components/input/Input.jsx");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
function hasPrefixSuffix(instance) {
return !!(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(instance, 'prefix') || Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(instance, 'suffix') || instance.$props.allowClear);
}
var ClearableInputType = ['text', 'input'];
var ClearableLabeledInput = {
props: {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
inputType: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOf(ClearableInputType),
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
allowClear: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
element: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
handleReset: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
size: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOf(['small', 'large', 'default']),
suffix: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
prefix: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
addonBefore: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
addonAfter: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
className: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
readOnly: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool
},
methods: {
renderClearIcon: function renderClearIcon(prefixCls) {
var h = this.$createElement;
var _$props = this.$props,
allowClear = _$props.allowClear,
value = _$props.value,
disabled = _$props.disabled,
readOnly = _$props.readOnly,
inputType = _$props.inputType,
handleReset = _$props.handleReset;
if (!allowClear || disabled || readOnly || value === undefined || value === null || value === '') {
return null;
}
var className = inputType === ClearableInputType[0] ? prefixCls + '-textarea-clear-icon' : prefixCls + '-clear-icon';
return h(_icon__WEBPACK_IMPORTED_MODULE_2__["default"], {
attrs: {
type: 'close-circle',
theme: 'filled',
role: 'button'
},
on: {
'click': handleReset
},
'class': className });
},
renderSuffix: function renderSuffix(prefixCls) {
var h = this.$createElement;
var _$props2 = this.$props,
suffix = _$props2.suffix,
allowClear = _$props2.allowClear;
if (suffix || allowClear) {
return h(
'span',
{ 'class': prefixCls + '-suffix' },
[this.renderClearIcon(prefixCls), suffix]
);
}
return null;
},
renderLabeledIcon: function renderLabeledIcon(prefixCls, element) {
var _classNames;
var h = this.$createElement;
var props = this.$props;
var suffix = this.renderSuffix(prefixCls);
if (!hasPrefixSuffix(this)) {
return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_5__["cloneElement"])(element, {
props: { value: props.value }
});
}
var prefix = props.prefix ? h(
'span',
{ 'class': prefixCls + '-prefix' },
[props.prefix]
) : null;
var affixWrapperCls = classnames__WEBPACK_IMPORTED_MODULE_1___default()(props.className, prefixCls + '-affix-wrapper', (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-affix-wrapper-sm', props.size === 'small'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-affix-wrapper-lg', props.size === 'large'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-affix-wrapper-input-with-clear-btn', props.suffix && props.allowClear && this.$props.value), _classNames));
return h(
'span',
{ 'class': affixWrapperCls, style: props.style },
[prefix, Object(_util_vnode__WEBPACK_IMPORTED_MODULE_5__["cloneElement"])(element, {
style: null,
props: { value: props.value },
'class': Object(_Input__WEBPACK_IMPORTED_MODULE_3__["getInputClassName"])(prefixCls, props.size, props.disabled)
}), suffix]
);
},
renderInputWithLabel: function renderInputWithLabel(prefixCls, labeledElement) {
var _classNames3;
var h = this.$createElement;
var _$props3 = this.$props,
addonBefore = _$props3.addonBefore,
addonAfter = _$props3.addonAfter,
style = _$props3.style,
size = _$props3.size,
className = _$props3.className;
// Not wrap when there is not addons
if (!addonBefore && !addonAfter) {
return labeledElement;
}
var wrapperClassName = prefixCls + '-group';
var addonClassName = wrapperClassName + '-addon';
var addonBeforeNode = addonBefore ? h(
'span',
{ 'class': addonClassName },
[addonBefore]
) : null;
var addonAfterNode = addonAfter ? h(
'span',
{ 'class': addonClassName },
[addonAfter]
) : null;
var mergedWrapperClassName = classnames__WEBPACK_IMPORTED_MODULE_1___default()(prefixCls + '-wrapper', babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, wrapperClassName, addonBefore || addonAfter));
var mergedGroupClassName = classnames__WEBPACK_IMPORTED_MODULE_1___default()(className, prefixCls + '-group-wrapper', (_classNames3 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames3, prefixCls + '-group-wrapper-sm', size === 'small'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames3, prefixCls + '-group-wrapper-lg', size === 'large'), _classNames3));
// Need another wrapper for changing display:table to display:inline-block
// and put style prop in wrapper
return h(
'span',
{ 'class': mergedGroupClassName, style: style },
[h(
'span',
{ 'class': mergedWrapperClassName },
[addonBeforeNode, Object(_util_vnode__WEBPACK_IMPORTED_MODULE_5__["cloneElement"])(labeledElement, { style: null }), addonAfterNode]
)]
);
},
renderTextAreaWithClearIcon: function renderTextAreaWithClearIcon(prefixCls, element) {
var h = this.$createElement;
var _$props4 = this.$props,
value = _$props4.value,
allowClear = _$props4.allowClear,
className = _$props4.className,
style = _$props4.style;
if (!allowClear) {
return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_5__["cloneElement"])(element, {
props: { value: value }
});
}
var affixWrapperCls = classnames__WEBPACK_IMPORTED_MODULE_1___default()(className, prefixCls + '-affix-wrapper', prefixCls + '-affix-wrapper-textarea-with-clear-btn');
return h(
'span',
{ 'class': affixWrapperCls, style: style },
[Object(_util_vnode__WEBPACK_IMPORTED_MODULE_5__["cloneElement"])(element, {
style: null,
props: { value: value }
}), this.renderClearIcon(prefixCls)]
);
},
renderClearableLabeledInput: function renderClearableLabeledInput() {
var _$props5 = this.$props,
prefixCls = _$props5.prefixCls,
inputType = _$props5.inputType,
element = _$props5.element;
if (inputType === ClearableInputType[0]) {
return this.renderTextAreaWithClearIcon(prefixCls, element);
}
return this.renderInputWithLabel(prefixCls, this.renderLabeledIcon(prefixCls, element));
}
},
render: function render() {
return this.renderClearableLabeledInput();
}
};
/* harmony default export */ __webpack_exports__["default"] = (ClearableLabeledInput);
/***/ }),
/***/ "./components/input/Group.jsx":
/*!************************************!*\
!*** ./components/input/Group.jsx ***!
\************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'AInputGroup',
props: {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
size: {
validator: function validator(value) {
return ['small', 'large', 'default'].includes(value);
}
},
compact: Boolean
},
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__["ConfigConsumerProps"];
} }
},
computed: {
classes: function classes() {
var _ref;
var customizePrefixCls = this.prefixCls,
size = this.size,
_compact = this.compact,
compact = _compact === undefined ? false : _compact;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('input-group', customizePrefixCls);
return _ref = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, '' + prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, prefixCls + '-lg', size === 'large'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, prefixCls + '-sm', size === 'small'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, prefixCls + '-compact', compact), _ref;
}
},
methods: {},
render: function render() {
var h = arguments[0];
return h(
'span',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ 'class': this.classes }, { on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this) }]),
[Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["filterEmpty"])(this.$slots['default'])]
);
}
});
/***/ }),
/***/ "./components/input/Input.jsx":
/*!************************************!*\
!*** ./components/input/Input.jsx ***!
\************************************/
/*! exports provided: fixControlledValue, resolveOnChange, getInputClassName, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fixControlledValue", function() { return fixControlledValue; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resolveOnChange", function() { return resolveOnChange; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getInputClassName", function() { return getInputClassName; });
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _TextArea__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TextArea */ "./components/input/TextArea.jsx");
/* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
/* harmony import */ var _inputProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./inputProps */ "./components/input/inputProps.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _ClearableLabeledInput__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./ClearableLabeledInput */ "./components/input/ClearableLabeledInput.jsx");
function noop() {}
function fixControlledValue(value) {
if (typeof value === 'undefined' || value === null) {
return '';
}
return value;
}
function resolveOnChange(target, e, onChange) {
if (onChange) {
var event = e;
if (e.type === 'click') {
// click clear icon
//event = Object.create(e);
Object.defineProperty(event, 'target', {
writable: true
});
Object.defineProperty(event, 'currentTarget', {
writable: true
});
event.target = target;
event.currentTarget = target;
var originalInputValue = target.value;
// change target ref value cause e.target.value should be '' when clear input
target.value = '';
onChange(event);
// reset target ref value
target.value = originalInputValue;
return;
}
onChange(event);
}
}
function getInputClassName(prefixCls, size, disabled) {
var _classNames;
return classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, prefixCls + '-sm', size === 'small'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, prefixCls + '-lg', size === 'large'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, prefixCls + '-disabled', disabled), _classNames));
}
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'AInput',
inheritAttrs: false,
model: {
prop: 'value',
event: 'change.value'
},
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, _inputProps__WEBPACK_IMPORTED_MODULE_6__["default"]),
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__["ConfigConsumerProps"];
} }
},
data: function data() {
var props = this.$props;
var value = typeof props.value === 'undefined' ? props.defaultValue : props.value;
return {
stateValue: typeof value === 'undefined' ? '' : value
};
},
watch: {
value: function value(val) {
this.stateValue = val;
}
},
mounted: function mounted() {
var _this = this;
this.$nextTick(function () {
if (_this.autoFocus) {
_this.focus();
}
_this.clearPasswordValueAttribute();
});
},
beforeDestroy: function beforeDestroy() {
if (this.removePasswordTimeout) {
clearTimeout(this.removePasswordTimeout);
}
},
methods: {
onBlur: function onBlur(e) {
// fix this isssue: https://github.com/vueComponent/ant-design-vue/issues/3816
// reference: https://github.com/vuejs/vue/issues/5847 and https://github.com/vuejs/vue/issues/8431
this.$forceUpdate();
var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this),
blur = _getListeners.blur;
blur && blur(e);
},
focus: function focus() {
this.$refs.input.focus();
},
blur: function blur() {
this.$refs.input.blur();
},
select: function select() {
this.$refs.input.select();
},
setValue: function setValue(value, callback) {
if (this.stateValue === value) {
return;
}
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["hasProp"])(this, 'value')) {
this.stateValue = value;
this.$nextTick(function () {
callback && callback();
});
} else {
// 不在严格受控
// https://github.com/vueComponent/ant-design-vue/issues/2207modal 是 新 new 实例,更新队列和当前不在同一个更新队列中
// this.$forceUpdate();
}
},
onChange: function onChange(e) {
this.$emit('change.value', e.target.value);
this.$emit('change', e);
this.$emit('input', e);
},
handleReset: function handleReset(e) {
var _this2 = this;
this.setValue('', function () {
_this2.focus();
});
resolveOnChange(this.$refs.input, e, this.onChange);
},
renderInput: function renderInput(prefixCls) {
var h = this.$createElement;
var otherProps = Object(omit_js__WEBPACK_IMPORTED_MODULE_5__["default"])(this.$props, ['prefixCls', 'addonBefore', 'addonAfter', 'prefix', 'suffix', 'allowClear', 'value', 'defaultValue', 'lazy', 'size', 'inputType', 'className']);
var stateValue = this.stateValue,
handleKeyDown = this.handleKeyDown,
handleChange = this.handleChange,
size = this.size,
disabled = this.disabled;
var inputProps = {
directives: [{ name: 'ant-input' }],
domProps: {
value: fixControlledValue(stateValue)
},
attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, otherProps, this.$attrs),
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this), {
keydown: handleKeyDown,
input: handleChange,
change: noop,
blur: this.onBlur
}),
'class': getInputClassName(prefixCls, size, disabled),
ref: 'input',
key: 'ant-input'
};
return h('input', inputProps);
},
clearPasswordValueAttribute: function clearPasswordValueAttribute() {
var _this3 = this;
// https://github.com/ant-design/ant-design/issues/20541
this.removePasswordTimeout = setTimeout(function () {
if (_this3.$refs.input && _this3.$refs.input.getAttribute && _this3.$refs.input.getAttribute('type') === 'password' && _this3.$refs.input.hasAttribute('value')) {
_this3.$refs.input.removeAttribute('value');
}
});
},
handleChange: function handleChange(e) {
var _e$target = e.target,
value = _e$target.value,
composing = _e$target.composing;
// https://github.com/vueComponent/ant-design-vue/issues/2203
if ((e.isComposing || composing) && this.lazy || this.stateValue === value) return;
this.setValue(value, this.clearPasswordValueAttribute);
resolveOnChange(this.$refs.input, e, this.onChange);
},
handleKeyDown: function handleKeyDown(e) {
if (e.keyCode === 13) {
this.$emit('pressEnter', e);
}
this.$emit('keydown', e);
}
},
render: function render() {
var h = arguments[0];
if (this.$props.type === 'textarea') {
var textareaProps = {
props: this.$props,
attrs: this.$attrs,
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this), {
input: this.handleChange,
keydown: this.handleKeyDown,
change: noop,
blur: this.onBlur
})
};
return h(_TextArea__WEBPACK_IMPORTED_MODULE_4__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([textareaProps, { ref: 'input' }]));
}
var customizePrefixCls = this.$props.prefixCls;
var stateValue = this.$data.stateValue;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('input', customizePrefixCls);
var addonAfter = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'addonAfter');
var addonBefore = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'addonBefore');
var suffix = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'suffix');
var prefix = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'prefix');
var props = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(this), {
prefixCls: prefixCls,
inputType: 'input',
value: fixControlledValue(stateValue),
element: this.renderInput(prefixCls),
handleReset: this.handleReset,
addonAfter: addonAfter,
addonBefore: addonBefore,
suffix: suffix,
prefix: prefix
}),
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this)
};
return h(_ClearableLabeledInput__WEBPACK_IMPORTED_MODULE_9__["default"], props);
}
});
/***/ }),
/***/ "./components/input/Password.jsx":
/*!***************************************!*\
!*** ./components/input/Password.jsx ***!
\***************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _Input__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Input */ "./components/input/Input.jsx");
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
/* harmony import */ var _inputProps__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./inputProps */ "./components/input/inputProps.js");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
var ActionMap = {
click: 'click',
hover: 'mouseover'
};
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'AInputPassword',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_9__["default"]],
inheritAttrs: false,
model: {
prop: 'value',
event: 'change.value'
},
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _inputProps__WEBPACK_IMPORTED_MODULE_7__["default"], {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].string.def('ant-input-password'),
inputPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].string.def('ant-input'),
action: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].string.def('click'),
visibilityToggle: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].bool.def(true)
}),
data: function data() {
return {
visible: false
};
},
methods: {
focus: function focus() {
this.$refs.input.focus();
},
blur: function blur() {
this.$refs.input.blur();
},
onVisibleChange: function onVisibleChange() {
if (this.disabled) {
return;
}
this.setState({
visible: !this.visible
});
},
getIcon: function getIcon() {
var _on;
var h = this.$createElement;
var _$props = this.$props,
prefixCls = _$props.prefixCls,
action = _$props.action;
var iconTrigger = ActionMap[action] || '';
var iconProps = {
props: {
type: this.visible ? 'eye' : 'eye-invisible'
},
on: (_on = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_on, iconTrigger, this.onVisibleChange), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_on, 'mousedown', function mousedown(e) {
// Prevent focused state lost
// https://github.com/ant-design/ant-design/issues/15173
e.preventDefault();
}), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_on, 'mouseup', function mouseup(e) {
// Prevent focused state lost
// https://github.com/ant-design/ant-design/pull/23633/files
e.preventDefault();
}), _on),
'class': prefixCls + '-icon',
key: 'passwordIcon'
};
return h(_icon__WEBPACK_IMPORTED_MODULE_6__["default"], iconProps);
}
},
render: function render() {
var h = arguments[0];
var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this),
prefixCls = _getOptionProps.prefixCls,
inputPrefixCls = _getOptionProps.inputPrefixCls,
size = _getOptionProps.size,
suffix = _getOptionProps.suffix,
visibilityToggle = _getOptionProps.visibilityToggle,
restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(_getOptionProps, ['prefixCls', 'inputPrefixCls', 'size', 'suffix', 'visibilityToggle']);
var suffixIcon = visibilityToggle && this.getIcon();
var inputClassName = classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, prefixCls + '-' + size, !!size));
var inputProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, restProps, {
prefixCls: inputPrefixCls,
size: size,
suffix: suffixIcon,
prefix: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'prefix'),
addonAfter: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'addonAfter'),
addonBefore: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'addonBefore')
}),
attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$attrs, {
type: this.visible ? 'text' : 'password'
}),
'class': inputClassName,
ref: 'input',
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this)
};
return h(_Input__WEBPACK_IMPORTED_MODULE_5__["default"], inputProps);
}
});
/***/ }),
/***/ "./components/input/ResizableTextArea.jsx":
/*!************************************************!*\
!*** ./components/input/ResizableTextArea.jsx ***!
\************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _vc_resize_observer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../vc-resize-observer */ "./components/vc-resize-observer/index.jsx");
/* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _calculateNodeHeight__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./calculateNodeHeight */ "./components/input/calculateNodeHeight.js");
/* harmony import */ var _util_raf__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/raf */ "./components/_util/raf.js");
/* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _inputProps__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./inputProps */ "./components/input/inputProps.js");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
var RESIZE_STATUS_NONE = 0;
var RESIZE_STATUS_RESIZING = 1;
var RESIZE_STATUS_RESIZED = 2;
var TextAreaProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _inputProps__WEBPACK_IMPORTED_MODULE_10__["default"], {
autosize: _util_vue_types__WEBPACK_IMPORTED_MODULE_11__["default"].oneOfType([Object, Boolean]),
autoSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_11__["default"].oneOfType([Object, Boolean])
});
var ResizableTextArea = {
name: 'ResizableTextArea',
props: TextAreaProps,
data: function data() {
return {
textareaStyles: {},
resizeStatus: RESIZE_STATUS_NONE
};
},
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_9__["default"]],
mounted: function mounted() {
var _this = this;
this.$nextTick(function () {
_this.resizeTextarea();
});
},
beforeDestroy: function beforeDestroy() {
_util_raf__WEBPACK_IMPORTED_MODULE_7__["default"].cancel(this.nextFrameActionId);
_util_raf__WEBPACK_IMPORTED_MODULE_7__["default"].cancel(this.resizeFrameId);
},
watch: {
value: function value() {
var _this2 = this;
this.$nextTick(function () {
_this2.resizeTextarea();
});
}
},
methods: {
handleResize: function handleResize(size) {
var resizeStatus = this.$data.resizeStatus;
var autoSize = this.$props.autoSize;
if (resizeStatus !== RESIZE_STATUS_NONE) {
return;
}
this.$emit('resize', size);
if (autoSize) {
this.resizeOnNextFrame();
}
},
resizeOnNextFrame: function resizeOnNextFrame() {
_util_raf__WEBPACK_IMPORTED_MODULE_7__["default"].cancel(this.nextFrameActionId);
this.nextFrameActionId = Object(_util_raf__WEBPACK_IMPORTED_MODULE_7__["default"])(this.resizeTextarea);
},
resizeTextarea: function resizeTextarea() {
var _this3 = this;
var autoSize = this.$props.autoSize || this.$props.autosize;
if (!autoSize || !this.$refs.textArea) {
return;
}
var minRows = autoSize.minRows,
maxRows = autoSize.maxRows;
var textareaStyles = Object(_calculateNodeHeight__WEBPACK_IMPORTED_MODULE_6__["default"])(this.$refs.textArea, false, minRows, maxRows);
this.setState({ textareaStyles: textareaStyles, resizeStatus: RESIZE_STATUS_RESIZING }, function () {
_util_raf__WEBPACK_IMPORTED_MODULE_7__["default"].cancel(_this3.resizeFrameId);
_this3.resizeFrameId = Object(_util_raf__WEBPACK_IMPORTED_MODULE_7__["default"])(function () {
_this3.setState({ resizeStatus: RESIZE_STATUS_RESIZED }, function () {
_this3.resizeFrameId = Object(_util_raf__WEBPACK_IMPORTED_MODULE_7__["default"])(function () {
_this3.setState({ resizeStatus: RESIZE_STATUS_NONE });
_this3.fixFirefoxAutoScroll();
});
});
});
});
},
// https://github.com/ant-design/ant-design/issues/21870
fixFirefoxAutoScroll: function fixFirefoxAutoScroll() {
try {
if (document.activeElement === this.$refs.textArea) {
var currentStart = this.$refs.textArea.selectionStart;
var currentEnd = this.$refs.textArea.selectionEnd;
this.$refs.textArea.setSelectionRange(currentStart, currentEnd);
}
} catch (e) {
// Fix error in Chrome:
// Failed to read the 'selectionStart' property from 'HTMLInputElement'
// http://stackoverflow.com/q/21177489/3040605
}
},
renderTextArea: function renderTextArea() {
var h = this.$createElement;
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getOptionProps"])(this);
var prefixCls = props.prefixCls,
autoSize = props.autoSize,
autosize = props.autosize,
disabled = props.disabled;
var _$data = this.$data,
textareaStyles = _$data.textareaStyles,
resizeStatus = _$data.resizeStatus;
Object(_util_warning__WEBPACK_IMPORTED_MODULE_8__["default"])(autosize === undefined, 'Input.TextArea', 'autosize is deprecated, please use autoSize instead.');
var otherProps = Object(omit_js__WEBPACK_IMPORTED_MODULE_4__["default"])(props, ['prefixCls', 'autoSize', 'autosize', 'defaultValue', 'allowClear', 'type', 'lazy', 'value']);
var cls = classnames__WEBPACK_IMPORTED_MODULE_5___default()(prefixCls, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, prefixCls + '-disabled', disabled));
var domProps = {};
// Fix https://github.com/ant-design/ant-design/issues/6776
// Make sure it could be reset when using form.getFieldDecorator
if ('value' in props) {
domProps.value = props.value || '';
}
var style = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, textareaStyles, resizeStatus === RESIZE_STATUS_RESIZING ? { overflowX: 'hidden', overflowY: 'hidden' } : null);
var textareaProps = {
attrs: otherProps,
domProps: domProps,
style: style,
'class': cls,
on: Object(omit_js__WEBPACK_IMPORTED_MODULE_4__["default"])(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getListeners"])(this), 'pressEnter'),
directives: [{
name: 'ant-input'
}]
};
return h(
_vc_resize_observer__WEBPACK_IMPORTED_MODULE_3__["default"],
{
on: {
'resize': this.handleResize
},
attrs: { disabled: !(autoSize || autosize) }
},
[h('textarea', babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([textareaProps, { ref: 'textArea' }]))]
);
}
},
render: function render() {
return this.renderTextArea();
}
};
/* harmony default export */ __webpack_exports__["default"] = (ResizableTextArea);
/***/ }),
/***/ "./components/input/Search.jsx":
/*!*************************************!*\
!*** ./components/input/Search.jsx ***!
\*************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var is_mobile__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! is-mobile */ "./node_modules/is-mobile/index.js");
/* harmony import */ var is_mobile__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(is_mobile__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _Input__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Input */ "./components/input/Input.jsx");
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
/* harmony import */ var _inputProps__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./inputProps */ "./components/input/inputProps.js");
/* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../button */ "./components/button/index.js");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'AInputSearch',
inheritAttrs: false,
model: {
prop: 'value',
event: 'change.value'
},
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _inputProps__WEBPACK_IMPORTED_MODULE_7__["default"], {
// 不能设置默认值 https://github.com/vueComponent/ant-design-vue/issues/1916
enterButton: _util_vue_types__WEBPACK_IMPORTED_MODULE_10__["default"].any
}),
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__["ConfigConsumerProps"];
} }
},
methods: {
onChange: function onChange(e) {
if (e && e.target && e.type === 'click') {
this.$emit('search', e.target.value, e);
}
this.$emit('change', e);
},
onSearch: function onSearch(e) {
if (this.loading || this.disabled) {
return;
}
this.$emit('search', this.$refs.input.stateValue, e);
if (!Object(is_mobile__WEBPACK_IMPORTED_MODULE_4__["isMobile"])({ tablet: true })) {
this.$refs.input.focus();
}
},
focus: function focus() {
this.$refs.input.focus();
},
blur: function blur() {
this.$refs.input.blur();
},
renderLoading: function renderLoading(prefixCls) {
var h = this.$createElement;
var size = this.$props.size;
var enterButton = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'enterButton');
// 兼容 <a-input-search enterButton /> 因enterButton类型为 any此类写法 enterButton 为空字符串
enterButton = enterButton || enterButton === '';
if (enterButton) {
return h(
_button__WEBPACK_IMPORTED_MODULE_8__["default"],
{ 'class': prefixCls + '-button', attrs: { type: 'primary', size: size },
key: 'enterButton' },
[h(_icon__WEBPACK_IMPORTED_MODULE_6__["default"], {
attrs: { type: 'loading' }
})]
);
}
return h(_icon__WEBPACK_IMPORTED_MODULE_6__["default"], { 'class': prefixCls + '-icon', attrs: { type: 'loading' },
key: 'loadingIcon' });
},
renderSuffix: function renderSuffix(prefixCls) {
var h = this.$createElement;
var loading = this.loading;
var suffix = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'suffix');
var enterButton = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'enterButton');
// 兼容 <a-input-search enterButton /> 因enterButton类型为 any此类写法 enterButton 为空字符串
enterButton = enterButton || enterButton === '';
if (loading && !enterButton) {
return [suffix, this.renderLoading(prefixCls)];
}
if (enterButton) return suffix;
var icon = h(_icon__WEBPACK_IMPORTED_MODULE_6__["default"], { 'class': prefixCls + '-icon', attrs: { type: 'search' },
key: 'searchIcon', on: {
'click': this.onSearch
}
});
if (suffix) {
// let cloneSuffix = suffix;
// if (isValidElement(cloneSuffix) && !cloneSuffix.key) {
// cloneSuffix = cloneElement(cloneSuffix, {
// key: 'originSuffix',
// });
// }
return [suffix, icon];
}
return icon;
},
renderAddonAfter: function renderAddonAfter(prefixCls) {
var h = this.$createElement;
var size = this.size,
disabled = this.disabled,
loading = this.loading;
var btnClassName = prefixCls + '-button';
var enterButton = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'enterButton');
enterButton = enterButton || enterButton === '';
var addonAfter = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'addonAfter');
if (loading && enterButton) {
return [this.renderLoading(prefixCls), addonAfter];
}
if (!enterButton) return addonAfter;
var enterButtonAsElement = Array.isArray(enterButton) ? enterButton[0] : enterButton;
var button = void 0;
var isAntdButton = enterButtonAsElement.componentOptions && enterButtonAsElement.componentOptions.Ctor.extendOptions.__ANT_BUTTON;
if (enterButtonAsElement.tag === 'button' || isAntdButton) {
button = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_9__["cloneElement"])(enterButtonAsElement, {
key: 'enterButton',
'class': isAntdButton ? btnClassName : '',
props: isAntdButton ? { size: size } : {},
on: {
click: this.onSearch
}
});
} else {
button = h(
_button__WEBPACK_IMPORTED_MODULE_8__["default"],
{
'class': btnClassName,
attrs: { type: 'primary',
size: size,
disabled: disabled
},
key: 'enterButton',
on: {
'click': this.onSearch
}
},
[enterButton === true || enterButton === '' ? h(_icon__WEBPACK_IMPORTED_MODULE_6__["default"], {
attrs: { type: 'search' }
}) : enterButton]
);
}
if (addonAfter) {
return [button, addonAfter];
}
return button;
}
},
render: function render() {
var h = arguments[0];
var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getOptionProps"])(this),
customizePrefixCls = _getOptionProps.prefixCls,
customizeInputPrefixCls = _getOptionProps.inputPrefixCls,
size = _getOptionProps.size,
loading = _getOptionProps.loading,
others = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_getOptionProps, ['prefixCls', 'inputPrefixCls', 'size', 'loading']);
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('input-search', customizePrefixCls);
var inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
var enterButton = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'enterButton');
var addonBefore = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'addonBefore');
enterButton = enterButton || enterButton === '';
var inputClassName = void 0;
if (enterButton) {
var _classNames;
inputClassName = classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-enter-button', !!enterButton), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-' + size, !!size), _classNames));
} else {
inputClassName = prefixCls;
}
var on = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getListeners"])(this));
delete on.search;
var inputProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, others, {
prefixCls: inputPrefixCls,
size: size,
suffix: this.renderSuffix(prefixCls),
prefix: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'prefix'),
addonAfter: this.renderAddonAfter(prefixCls),
addonBefore: addonBefore,
className: inputClassName
}),
attrs: this.$attrs,
ref: 'input',
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
pressEnter: this.onSearch
}, on, {
change: this.onChange
})
};
return h(_Input__WEBPACK_IMPORTED_MODULE_5__["default"], inputProps);
}
});
/***/ }),
/***/ "./components/input/TextArea.jsx":
/*!***************************************!*\
!*** ./components/input/TextArea.jsx ***!
\***************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _ClearableLabeledInput__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ClearableLabeledInput */ "./components/input/ClearableLabeledInput.jsx");
/* harmony import */ var _ResizableTextArea__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ResizableTextArea */ "./components/input/ResizableTextArea.jsx");
/* harmony import */ var _inputProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./inputProps */ "./components/input/inputProps.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _Input__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Input */ "./components/input/Input.jsx");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
var TextAreaProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, _inputProps__WEBPACK_IMPORTED_MODULE_4__["default"], {
autosize: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].oneOfType([Object, Boolean]),
autoSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].oneOfType([Object, Boolean])
});
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'ATextarea',
inheritAttrs: false,
model: {
prop: 'value',
event: 'change.value'
},
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, TextAreaProps),
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__["ConfigConsumerProps"];
} }
},
data: function data() {
var value = typeof this.value === 'undefined' ? this.defaultValue : this.value;
return {
stateValue: typeof value === 'undefined' ? '' : value
};
},
computed: {},
watch: {
value: function value(val) {
this.stateValue = val;
}
},
mounted: function mounted() {
var _this = this;
this.$nextTick(function () {
if (_this.autoFocus) {
_this.focus();
}
});
},
methods: {
setValue: function setValue(value, callback) {
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["default"])(this, 'value')) {
this.stateValue = value;
this.$nextTick(function () {
callback && callback();
});
} else {
// 不在严格受控
// https://github.com/vueComponent/ant-design-vue/issues/2207modal 是 新 new 实例,更新队列和当前不在同一个更新队列中
// this.$forceUpdate();
}
},
handleKeyDown: function handleKeyDown(e) {
if (e.keyCode === 13) {
this.$emit('pressEnter', e);
}
this.$emit('keydown', e);
},
onChange: function onChange(e) {
this.$emit('change.value', e.target.value);
this.$emit('change', e);
this.$emit('input', e);
},
handleChange: function handleChange(e) {
var _this2 = this;
var _e$target = e.target,
value = _e$target.value,
composing = _e$target.composing;
if ((e.isComposing || composing) && this.lazy || this.stateValue === value) return;
this.setValue(e.target.value, function () {
_this2.$refs.resizableTextArea.resizeTextarea();
});
Object(_Input__WEBPACK_IMPORTED_MODULE_7__["resolveOnChange"])(this.$refs.resizableTextArea.$refs.textArea, e, this.onChange);
},
focus: function focus() {
this.$refs.resizableTextArea.$refs.textArea.focus();
},
blur: function blur() {
this.$refs.resizableTextArea.$refs.textArea.blur();
},
handleReset: function handleReset(e) {
var _this3 = this;
this.setValue('', function () {
_this3.$refs.resizableTextArea.renderTextArea();
_this3.focus();
});
Object(_Input__WEBPACK_IMPORTED_MODULE_7__["resolveOnChange"])(this.$refs.resizableTextArea.$refs.textArea, e, this.onChange);
},
renderTextArea: function renderTextArea(prefixCls) {
var h = this.$createElement;
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
var resizeProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
prefixCls: prefixCls
}),
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this), {
input: this.handleChange,
keydown: this.handleKeyDown
}),
attrs: this.$attrs
};
return h(_ResizableTextArea__WEBPACK_IMPORTED_MODULE_3__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([resizeProps, { ref: 'resizableTextArea' }]));
}
},
render: function render() {
var h = arguments[0];
var stateValue = this.stateValue,
customizePrefixCls = this.prefixCls;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('input', customizePrefixCls);
var props = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this), {
prefixCls: prefixCls,
inputType: 'text',
value: Object(_Input__WEBPACK_IMPORTED_MODULE_7__["fixControlledValue"])(stateValue),
element: this.renderTextArea(prefixCls),
handleReset: this.handleReset
}),
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this)
};
return h(_ClearableLabeledInput__WEBPACK_IMPORTED_MODULE_2__["default"], props);
}
});
/***/ }),
/***/ "./components/input/calculateNodeHeight.js":
/*!*************************************************!*\
!*** ./components/input/calculateNodeHeight.js ***!
\*************************************************/
/*! exports provided: calculateNodeStyling, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calculateNodeStyling", function() { return calculateNodeStyling; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return calculateNodeHeight; });
// Thanks to https://github.com/andreypopp/react-textarea-autosize/
/**
* calculateNodeHeight(uiTextNode, useCache = false)
*/
var HIDDEN_TEXTAREA_STYLE = '\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n';
var SIZING_STYLE = ['letter-spacing', 'line-height', 'padding-top', 'padding-bottom', 'font-family', 'font-weight', 'font-size', 'font-variant', 'text-rendering', 'text-transform', 'width', 'text-indent', 'padding-left', 'padding-right', 'border-width', 'box-sizing'];
var computedStyleCache = {};
var hiddenTextarea = void 0;
function calculateNodeStyling(node) {
var useCache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
var nodeRef = node.getAttribute('id') || node.getAttribute('data-reactid') || node.getAttribute('name');
if (useCache && computedStyleCache[nodeRef]) {
return computedStyleCache[nodeRef];
}
var style = window.getComputedStyle(node);
var boxSizing = style.getPropertyValue('box-sizing') || style.getPropertyValue('-moz-box-sizing') || style.getPropertyValue('-webkit-box-sizing');
var paddingSize = parseFloat(style.getPropertyValue('padding-bottom')) + parseFloat(style.getPropertyValue('padding-top'));
var borderSize = parseFloat(style.getPropertyValue('border-bottom-width')) + parseFloat(style.getPropertyValue('border-top-width'));
var sizingStyle = SIZING_STYLE.map(function (name) {
return name + ':' + style.getPropertyValue(name);
}).join(';');
var nodeInfo = {
sizingStyle: sizingStyle,
paddingSize: paddingSize,
borderSize: borderSize,
boxSizing: boxSizing
};
if (useCache && nodeRef) {
computedStyleCache[nodeRef] = nodeInfo;
}
return nodeInfo;
}
function calculateNodeHeight(uiTextNode) {
var useCache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
var minRows = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
var maxRows = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
if (!hiddenTextarea) {
hiddenTextarea = document.createElement('textarea');
document.body.appendChild(hiddenTextarea);
}
// Fix wrap="off" issue
// https://github.com/ant-design/ant-design/issues/6577
if (uiTextNode.getAttribute('wrap')) {
hiddenTextarea.setAttribute('wrap', uiTextNode.getAttribute('wrap'));
} else {
hiddenTextarea.removeAttribute('wrap');
}
// Copy all CSS properties that have an impact on the height of the content in
// the textbox
var _calculateNodeStyling = calculateNodeStyling(uiTextNode, useCache),
paddingSize = _calculateNodeStyling.paddingSize,
borderSize = _calculateNodeStyling.borderSize,
boxSizing = _calculateNodeStyling.boxSizing,
sizingStyle = _calculateNodeStyling.sizingStyle;
// Need to have the overflow attribute to hide the scrollbar otherwise
// text-lines will not calculated properly as the shadow will technically be
// narrower for content
hiddenTextarea.setAttribute('style', sizingStyle + ';' + HIDDEN_TEXTAREA_STYLE);
hiddenTextarea.value = uiTextNode.value || uiTextNode.placeholder || '';
var minHeight = Number.MIN_SAFE_INTEGER;
var maxHeight = Number.MAX_SAFE_INTEGER;
var height = hiddenTextarea.scrollHeight;
var overflowY = void 0;
if (boxSizing === 'border-box') {
// border-box: add border, since height = content + padding + border
height += borderSize;
} else if (boxSizing === 'content-box') {
// remove padding, since height = content
height -= paddingSize;
}
if (minRows !== null || maxRows !== null) {
// measure height of a textarea with a single row
hiddenTextarea.value = ' ';
var singleRowHeight = hiddenTextarea.scrollHeight - paddingSize;
if (minRows !== null) {
minHeight = singleRowHeight * minRows;
if (boxSizing === 'border-box') {
minHeight = minHeight + paddingSize + borderSize;
}
height = Math.max(minHeight, height);
}
if (maxRows !== null) {
maxHeight = singleRowHeight * maxRows;
if (boxSizing === 'border-box') {
maxHeight = maxHeight + paddingSize + borderSize;
}
overflowY = height > maxHeight ? '' : 'hidden';
height = Math.min(maxHeight, height);
}
}
return {
height: height + 'px',
minHeight: minHeight + 'px',
maxHeight: maxHeight + 'px',
overflowY: overflowY
};
}
/***/ }),
/***/ "./components/input/index.js":
/*!***********************************!*\
!*** ./components/input/index.js ***!
\***********************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "vue");
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _Input__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Input */ "./components/input/Input.jsx");
/* harmony import */ var _Group__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Group */ "./components/input/Group.jsx");
/* harmony import */ var _Search__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Search */ "./components/input/Search.jsx");
/* harmony import */ var _TextArea__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TextArea */ "./components/input/TextArea.jsx");
/* harmony import */ var _Password__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Password */ "./components/input/Password.jsx");
/* harmony import */ var _util_antInputDirective__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/antInputDirective */ "./components/_util/antInputDirective.js");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
vue__WEBPACK_IMPORTED_MODULE_0___default.a.use(_util_antInputDirective__WEBPACK_IMPORTED_MODULE_6__["default"]);
_Input__WEBPACK_IMPORTED_MODULE_1__["default"].Group = _Group__WEBPACK_IMPORTED_MODULE_2__["default"];
_Input__WEBPACK_IMPORTED_MODULE_1__["default"].Search = _Search__WEBPACK_IMPORTED_MODULE_3__["default"];
_Input__WEBPACK_IMPORTED_MODULE_1__["default"].TextArea = _TextArea__WEBPACK_IMPORTED_MODULE_4__["default"];
_Input__WEBPACK_IMPORTED_MODULE_1__["default"].Password = _Password__WEBPACK_IMPORTED_MODULE_5__["default"];
/* istanbul ignore next */
_Input__WEBPACK_IMPORTED_MODULE_1__["default"].install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_7__["default"]);
Vue.component(_Input__WEBPACK_IMPORTED_MODULE_1__["default"].name, _Input__WEBPACK_IMPORTED_MODULE_1__["default"]);
Vue.component(_Input__WEBPACK_IMPORTED_MODULE_1__["default"].Group.name, _Input__WEBPACK_IMPORTED_MODULE_1__["default"].Group);
Vue.component(_Input__WEBPACK_IMPORTED_MODULE_1__["default"].Search.name, _Input__WEBPACK_IMPORTED_MODULE_1__["default"].Search);
Vue.component(_Input__WEBPACK_IMPORTED_MODULE_1__["default"].TextArea.name, _Input__WEBPACK_IMPORTED_MODULE_1__["default"].TextArea);
Vue.component(_Input__WEBPACK_IMPORTED_MODULE_1__["default"].Password.name, _Input__WEBPACK_IMPORTED_MODULE_1__["default"].Password);
};
/* harmony default export */ __webpack_exports__["default"] = (_Input__WEBPACK_IMPORTED_MODULE_1__["default"]);
/***/ }),
/***/ "./components/input/inputProps.js":
/*!****************************************!*\
!*** ./components/input/inputProps.js ***!
\****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony default export */ __webpack_exports__["default"] = ({
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
inputPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]),
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]),
placeholder: [String, Number],
type: {
'default': 'text',
type: String
},
name: String,
size: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['small', 'large', 'default']),
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
readOnly: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
addonBefore: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
addonAfter: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
// onPressEnter?: React.FormEventHandler<any>;
// onKeyDown?: React.FormEventHandler<any>;
// onChange?: React.ChangeEventHandler<HTMLInputElement>;
// onClick?: React.FormEventHandler<any>;
// onFocus?: React.FormEventHandler<any>;
// onBlur?: React.FormEventHandler<any>;
prefix: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
suffix: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
// spellCheck: Boolean,
autoFocus: Boolean,
allowClear: Boolean,
lazy: {
'default': true,
type: Boolean
},
maxLength: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
loading: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
className: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string
});
/***/ }),
/***/ "./components/input/style/index.js":
/*!*****************************************!*\
!*** ./components/input/style/index.js ***!
\*****************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/input/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _button_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../button/style */ "./components/button/style/index.js");
// style dependencies
/***/ }),
/***/ "./components/input/style/index.less":
/*!*******************************************!*\
!*** ./components/input/style/index.less ***!
\*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/layout/Sider.jsx":
/*!*************************************!*\
!*** ./components/layout/Sider.jsx ***!
\*************************************/
/*! exports provided: SiderProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SiderProps", function() { return SiderProps; });
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* 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 _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_isNumeric__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/isNumeric */ "./components/_util/isNumeric.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
// matchMedia polyfill for
// https://github.com/WickyNilliams/enquire.js/issues/82
if (typeof window !== 'undefined') {
var matchMediaPolyfill = function matchMediaPolyfill(mediaQuery) {
return {
media: mediaQuery,
matches: false,
addListener: function addListener() {},
removeListener: function removeListener() {}
};
};
window.matchMedia = window.matchMedia || matchMediaPolyfill;
}
var dimensionMaxMap = {
xs: '479.98px',
sm: '575.98px',
md: '767.98px',
lg: '991.98px',
xl: '1199.98px',
xxl: '1599.98px'
};
// export type CollapseType = 'clickTrigger' | 'responsive';
var SiderProps = {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
collapsible: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
collapsed: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
defaultCollapsed: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
reverseArrow: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
// onCollapse?: (collapsed: boolean, type: CollapseType) => void;
zeroWidthTriggerStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
trigger: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
width: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string]),
collapsedWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string]),
breakpoint: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['xs', 'sm', 'md', 'lg', 'xl', 'xxl']),
theme: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['light', 'dark']).def('dark')
};
// export interface SiderState {
// collapsed?: boolean;
// below: boolean;
// belowShow?: boolean;
// }
// export interface SiderContext {
// siderCollapsed: boolean;
// }
var generateId = function () {
var i = 0;
return function () {
var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
i += 1;
return '' + prefix + i;
};
}();
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'ALayoutSider',
__ANT_LAYOUT_SIDER: true,
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
model: {
prop: 'collapsed',
event: 'collapse'
},
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["initDefaultProps"])(SiderProps, {
collapsible: false,
defaultCollapsed: false,
reverseArrow: false,
width: 200,
collapsedWidth: 80
}),
data: function data() {
this.uniqueId = generateId('ant-sider-');
var matchMedia = void 0;
if (typeof window !== 'undefined') {
matchMedia = window.matchMedia;
}
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getOptionProps"])(this);
if (matchMedia && props.breakpoint && props.breakpoint in dimensionMaxMap) {
this.mql = matchMedia('(max-width: ' + dimensionMaxMap[props.breakpoint] + ')');
}
var sCollapsed = void 0;
if ('collapsed' in props) {
sCollapsed = props.collapsed;
} else {
sCollapsed = props.defaultCollapsed;
}
return {
sCollapsed: sCollapsed,
below: false,
belowShow: false
};
},
provide: function provide() {
return {
layoutSiderContext: this // menu组件中使用
};
},
inject: {
siderHook: { 'default': function _default() {
return {};
} },
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__["ConfigConsumerProps"];
} }
},
// getChildContext() {
// return {
// siderCollapsed: this.state.collapsed,
// collapsedWidth: this.props.collapsedWidth,
// };
// }
watch: {
collapsed: function collapsed(val) {
this.setState({
sCollapsed: val
});
}
},
mounted: function mounted() {
var _this = this;
this.$nextTick(function () {
if (_this.mql) {
_this.mql.addListener(_this.responsiveHandler);
_this.responsiveHandler(_this.mql);
}
if (_this.siderHook.addSider) {
_this.siderHook.addSider(_this.uniqueId);
}
});
},
beforeDestroy: function beforeDestroy() {
if (this.mql) {
this.mql.removeListener(this.responsiveHandler);
}
if (this.siderHook.removeSider) {
this.siderHook.removeSider(this.uniqueId);
}
},
methods: {
responsiveHandler: function responsiveHandler(mql) {
this.setState({ below: mql.matches });
this.$emit('breakpoint', mql.matches);
if (this.sCollapsed !== mql.matches) {
this.setCollapsed(mql.matches, 'responsive');
}
},
setCollapsed: function setCollapsed(collapsed, type) {
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["hasProp"])(this, 'collapsed')) {
this.setState({
sCollapsed: collapsed
});
}
this.$emit('collapse', collapsed, type);
},
toggle: function toggle() {
var collapsed = !this.sCollapsed;
this.setCollapsed(collapsed, 'clickTrigger');
},
belowShowChange: function belowShowChange() {
this.setState({ belowShow: !this.belowShow });
}
},
render: function render() {
var _classNames;
var h = arguments[0];
var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getOptionProps"])(this),
customizePrefixCls = _getOptionProps.prefixCls,
theme = _getOptionProps.theme,
collapsible = _getOptionProps.collapsible,
reverseArrow = _getOptionProps.reverseArrow,
width = _getOptionProps.width,
collapsedWidth = _getOptionProps.collapsedWidth,
zeroWidthTriggerStyle = _getOptionProps.zeroWidthTriggerStyle;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('layout-sider', customizePrefixCls);
var trigger = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'trigger');
var rawWidth = this.sCollapsed ? collapsedWidth : width;
// use "px" as fallback unit for width
var siderWidth = Object(_util_isNumeric__WEBPACK_IMPORTED_MODULE_5__["default"])(rawWidth) ? rawWidth + 'px' : String(rawWidth);
// special trigger when collapsedWidth == 0
var zeroWidthTrigger = parseFloat(String(collapsedWidth || 0)) === 0 ? h(
'span',
{
on: {
'click': this.toggle
},
'class': prefixCls + '-zero-width-trigger ' + prefixCls + '-zero-width-trigger-' + (reverseArrow ? 'right' : 'left'),
style: zeroWidthTriggerStyle
},
[h(_icon__WEBPACK_IMPORTED_MODULE_7__["default"], {
attrs: { type: 'bars' }
})]
) : null;
var iconObj = {
expanded: reverseArrow ? h(_icon__WEBPACK_IMPORTED_MODULE_7__["default"], {
attrs: { type: 'right' }
}) : h(_icon__WEBPACK_IMPORTED_MODULE_7__["default"], {
attrs: { type: 'left' }
}),
collapsed: reverseArrow ? h(_icon__WEBPACK_IMPORTED_MODULE_7__["default"], {
attrs: { type: 'left' }
}) : h(_icon__WEBPACK_IMPORTED_MODULE_7__["default"], {
attrs: { type: 'right' }
})
};
var status = this.sCollapsed ? 'collapsed' : 'expanded';
var defaultTrigger = iconObj[status];
var triggerDom = trigger !== null ? zeroWidthTrigger || h(
'div',
{ 'class': prefixCls + '-trigger', on: {
'click': this.toggle
},
style: { width: siderWidth } },
[trigger || defaultTrigger]
) : null;
var divStyle = {
// ...style,
flex: '0 0 ' + siderWidth,
maxWidth: siderWidth, // Fix width transition bug in IE11
minWidth: siderWidth, // https://github.com/ant-design/ant-design/issues/6349
width: siderWidth
};
var siderCls = classnames__WEBPACK_IMPORTED_MODULE_1___default()(prefixCls, prefixCls + '-' + theme, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-collapsed', !!this.sCollapsed), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-has-trigger', collapsible && trigger !== null && !zeroWidthTrigger), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-below', !!this.below), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-zero-width', parseFloat(siderWidth) === 0), _classNames));
var divProps = {
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this),
'class': siderCls,
style: divStyle
};
return h(
'aside',
divProps,
[h(
'div',
{ 'class': prefixCls + '-children' },
[this.$slots['default']]
), collapsible || this.below && zeroWidthTrigger ? triggerDom : null]
);
}
});
/***/ }),
/***/ "./components/layout/index.js":
/*!************************************!*\
!*** ./components/layout/index.js ***!
\************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./layout */ "./components/layout/layout.jsx");
/* harmony import */ var _Sider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Sider */ "./components/layout/Sider.jsx");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
_layout__WEBPACK_IMPORTED_MODULE_0__["default"].Sider = _Sider__WEBPACK_IMPORTED_MODULE_1__["default"];
/* istanbul ignore next */
_layout__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_2__["default"]);
Vue.component(_layout__WEBPACK_IMPORTED_MODULE_0__["default"].name, _layout__WEBPACK_IMPORTED_MODULE_0__["default"]);
Vue.component(_layout__WEBPACK_IMPORTED_MODULE_0__["default"].Header.name, _layout__WEBPACK_IMPORTED_MODULE_0__["default"].Header);
Vue.component(_layout__WEBPACK_IMPORTED_MODULE_0__["default"].Footer.name, _layout__WEBPACK_IMPORTED_MODULE_0__["default"].Footer);
Vue.component(_layout__WEBPACK_IMPORTED_MODULE_0__["default"].Sider.name, _layout__WEBPACK_IMPORTED_MODULE_0__["default"].Sider);
Vue.component(_layout__WEBPACK_IMPORTED_MODULE_0__["default"].Content.name, _layout__WEBPACK_IMPORTED_MODULE_0__["default"].Content);
};
/* harmony default export */ __webpack_exports__["default"] = (_layout__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/layout/layout.jsx":
/*!**************************************!*\
!*** ./components/layout/layout.jsx ***!
\**************************************/
/*! exports provided: BasicProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BasicProps", function() { return BasicProps; });
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
var BasicProps = {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
hasSider: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].boolean,
tagName: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string
};
function generator(_ref) {
var suffixCls = _ref.suffixCls,
tagName = _ref.tagName,
name = _ref.name;
return function (BasicComponent) {
return {
name: name,
props: BasicComponent.props,
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__["ConfigConsumerProps"];
} }
},
render: function render() {
var h = arguments[0];
var customizePrefixCls = this.$props.prefixCls;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls(suffixCls, customizePrefixCls);
var basicComponentProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
prefixCls: prefixCls
}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this), {
tagName: tagName
}),
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this)
};
return h(
BasicComponent,
basicComponentProps,
[this.$slots['default']]
);
}
};
};
}
var Basic = {
props: BasicProps,
render: function render() {
var h = arguments[0];
var prefixCls = this.prefixCls,
Tag = this.tagName,
$slots = this.$slots;
var divProps = {
'class': prefixCls,
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this)
};
return h(
Tag,
divProps,
[$slots['default']]
);
}
};
var BasicLayout = {
props: BasicProps,
data: function data() {
return {
siders: []
};
},
provide: function provide() {
var _this = this;
return {
siderHook: {
addSider: function addSider(id) {
_this.siders = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(_this.siders), [id]);
},
removeSider: function removeSider(id) {
_this.siders = _this.siders.filter(function (currentId) {
return currentId !== id;
});
}
}
};
},
render: function render() {
var h = arguments[0];
var prefixCls = this.prefixCls,
$slots = this.$slots,
hasSider = this.hasSider,
Tag = this.tagName;
var divCls = classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, prefixCls + '-has-sider', typeof hasSider === 'boolean' ? hasSider : this.siders.length > 0));
var divProps = {
'class': divCls,
on: _util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"]
};
return h(
Tag,
divProps,
[$slots['default']]
);
}
};
var Layout = generator({
suffixCls: 'layout',
tagName: 'section',
name: 'ALayout'
})(BasicLayout);
var Header = generator({
suffixCls: 'layout-header',
tagName: 'header',
name: 'ALayoutHeader'
})(Basic);
var Footer = generator({
suffixCls: 'layout-footer',
tagName: 'footer',
name: 'ALayoutFooter'
})(Basic);
var Content = generator({
suffixCls: 'layout-content',
tagName: 'main',
name: 'ALayoutContent'
})(Basic);
Layout.Header = Header;
Layout.Footer = Footer;
Layout.Content = Content;
/* harmony default export */ __webpack_exports__["default"] = (Layout);
/***/ }),
/***/ "./components/layout/style/index.js":
/*!******************************************!*\
!*** ./components/layout/style/index.js ***!
\******************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/layout/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/***/ }),
/***/ "./components/layout/style/index.less":
/*!********************************************!*\
!*** ./components/layout/style/index.less ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/list/Item.jsx":
/*!**********************************!*\
!*** ./components/list/Item.jsx ***!
\**********************************/
/*! exports provided: ListItemProps, ListItemMetaProps, Meta, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListItemProps", function() { return ListItemProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListItemMetaProps", function() { return ListItemMetaProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Meta", function() { return Meta; });
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _grid__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../grid */ "./components/grid/index.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./index */ "./components/list/index.jsx");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
var ListItemProps = {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
extra: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
actions: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any),
grid: _index__WEBPACK_IMPORTED_MODULE_7__["ListGridType"]
};
var ListItemMetaProps = {
avatar: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
description: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
title: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any
};
var Meta = {
functional: true,
name: 'AListItemMeta',
__ANT_LIST_ITEM_META: true,
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__["ConfigConsumerProps"];
} }
},
render: function render(h, context) {
var props = context.props,
slots = context.slots,
listeners = context.listeners,
injections = context.injections;
var slotsMap = slots();
var getPrefixCls = injections.configProvider.getPrefixCls;
var customizePrefixCls = props.prefixCls;
var prefixCls = getPrefixCls('list', customizePrefixCls);
var avatar = props.avatar || slotsMap.avatar;
var title = props.title || slotsMap.title;
var description = props.description || slotsMap.description;
var content = h(
'div',
{ 'class': prefixCls + '-item-meta-content' },
[title && h(
'h4',
{ 'class': prefixCls + '-item-meta-title' },
[title]
), description && h(
'div',
{ 'class': prefixCls + '-item-meta-description' },
[description]
)]
);
return h(
'div',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1___default()([{ on: listeners }, { 'class': prefixCls + '-item-meta' }]),
[avatar && h(
'div',
{ 'class': prefixCls + '-item-meta-avatar' },
[avatar]
), (title || description) && content]
);
}
};
function getGrid(grid, t) {
return grid[t] && Math.floor(24 / grid[t]);
}
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'AListItem',
Meta: Meta,
props: ListItemProps,
inject: {
listContext: { 'default': function _default() {
return {};
} },
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__["ConfigConsumerProps"];
} }
},
methods: {
isItemContainsTextNodeAndNotSingular: function isItemContainsTextNodeAndNotSingular() {
var $slots = this.$slots;
var result = void 0;
var children = $slots['default'] || [];
children.forEach(function (element) {
if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["isStringElement"])(element) && !Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["isEmptyElement"])(element)) {
result = true;
}
});
return result && children.length > 1;
},
isFlexMode: function isFlexMode() {
var extra = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'extra');
var itemLayout = this.listContext.itemLayout;
if (itemLayout === 'vertical') {
return !!extra;
}
return !this.isItemContainsTextNodeAndNotSingular();
}
},
render: function render() {
var h = arguments[0];
var _listContext = this.listContext,
grid = _listContext.grid,
itemLayout = _listContext.itemLayout;
var customizePrefixCls = this.prefixCls,
$slots = this.$slots;
var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this);
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('list', customizePrefixCls);
var extra = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'extra');
var actions = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'actions');
var actionsContent = actions && actions.length > 0 && h(
'ul',
{ 'class': prefixCls + '-item-action', key: 'actions' },
[actions.map(function (action, i) {
return h(
'li',
{ key: prefixCls + '-item-action-' + i },
[action, i !== actions.length - 1 && h('em', { 'class': prefixCls + '-item-action-split' })]
);
})]
);
var Tag = grid ? 'div' : 'li';
var itemChildren = h(
Tag,
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1___default()([{ on: listeners }, {
'class': classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls + '-item', babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, prefixCls + '-item-no-flex', !this.isFlexMode()))
}]),
[itemLayout === 'vertical' && extra ? [h(
'div',
{ 'class': prefixCls + '-item-main', key: 'content' },
[$slots['default'], actionsContent]
), h(
'div',
{ 'class': prefixCls + '-item-extra', key: 'extra' },
[extra]
)] : [$slots['default'], actionsContent, Object(_util_vnode__WEBPACK_IMPORTED_MODULE_8__["cloneElement"])(extra, { key: 'extra' })]]
);
var mainContent = grid ? h(
_grid__WEBPACK_IMPORTED_MODULE_5__["Col"],
{
attrs: {
span: getGrid(grid, 'column'),
xs: getGrid(grid, 'xs'),
sm: getGrid(grid, 'sm'),
md: getGrid(grid, 'md'),
lg: getGrid(grid, 'lg'),
xl: getGrid(grid, 'xl'),
xxl: getGrid(grid, 'xxl')
}
},
[itemChildren]
) : itemChildren;
return mainContent;
}
});
/***/ }),
/***/ "./components/list/index.jsx":
/*!***********************************!*\
!*** ./components/list/index.jsx ***!
\***********************************/
/*! exports provided: ListItemProps, ListItemMetaProps, ColumnCount, ColumnType, ListGridType, ListSize, ListProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColumnCount", function() { return ColumnCount; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColumnType", function() { return ColumnType; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListGridType", function() { return ListGridType; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListSize", function() { return ListSize; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListProps", function() { return ListProps; });
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _spin__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../spin */ "./components/spin/index.js");
/* harmony import */ var _pagination__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../pagination */ "./components/pagination/index.js");
/* harmony import */ var _grid__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../grid */ "./components/grid/index.js");
/* harmony import */ var _Item__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Item */ "./components/list/Item.jsx");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListItemProps", function() { return _Item__WEBPACK_IMPORTED_MODULE_13__["ListItemProps"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ListItemMetaProps", function() { return _Item__WEBPACK_IMPORTED_MODULE_13__["ListItemMetaProps"]; });
var ColumnCount = ['', 1, 2, 3, 4, 6, 8, 12, 24];
var ColumnType = ['gutter', 'column', 'xs', 'sm', 'md', 'lg', 'xl', 'xxl'];
var ListGridType = {
gutter: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number,
column: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(ColumnCount),
xs: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(ColumnCount),
sm: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(ColumnCount),
md: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(ColumnCount),
lg: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(ColumnCount),
xl: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(ColumnCount),
xxl: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(ColumnCount)
};
var ListSize = ['small', 'default', 'large'];
var ListProps = function ListProps() {
return {
bordered: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
dataSource: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
extra: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
grid: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].shape(ListGridType).loose,
itemLayout: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
loading: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object]),
loadMore: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
pagination: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].shape(Object(_pagination__WEBPACK_IMPORTED_MODULE_11__["PaginationConfig"])()).loose, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool]),
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
rowKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
renderItem: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
size: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(ListSize),
split: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
header: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
footer: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object
};
};
var List = {
Item: _Item__WEBPACK_IMPORTED_MODULE_13__["default"],
name: 'AList',
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["initDefaultProps"])(ListProps(), {
dataSource: [],
bordered: false,
split: true,
loading: false,
pagination: false
}),
provide: function provide() {
return {
listContext: this
};
},
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_9__["ConfigConsumerProps"];
} }
},
data: function data() {
var _this = this;
this.keys = [];
this.defaultPaginationProps = {
current: 1,
pageSize: 10,
onChange: function onChange(page, pageSize) {
var pagination = _this.pagination;
_this.paginationCurrent = page;
if (pagination && pagination.onChange) {
pagination.onChange(page, pageSize);
}
},
total: 0
};
this.onPaginationChange = this.triggerPaginationEvent('onChange');
this.onPaginationShowSizeChange = this.triggerPaginationEvent('onShowSizeChange');
var pagination = this.$props.pagination;
var paginationObj = pagination && (typeof pagination === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_5___default()(pagination)) === 'object' ? pagination : {};
return {
paginationCurrent: paginationObj.defaultCurrent || 1,
paginationSize: paginationObj.defaultPageSize || 10
};
},
methods: {
triggerPaginationEvent: function triggerPaginationEvent(eventName) {
var _this2 = this;
return function (page, pageSize) {
var pagination = _this2.$props.pagination;
_this2.paginationCurrent = page;
_this2.paginationSize = pageSize;
if (pagination && pagination[eventName]) {
pagination[eventName](page, pageSize);
}
};
},
renderItem2: function renderItem2(item, index) {
var $scopedSlots = this.$scopedSlots,
rowKey = this.rowKey;
var renderItem = this.renderItem || $scopedSlots.renderItem;
if (!renderItem) return null;
var key = void 0;
if (typeof rowKey === 'function') {
key = rowKey(item);
} else if (typeof rowKey === 'string') {
key = item[rowKey];
} else {
key = item.key;
}
if (!key) {
key = 'list-item-' + index;
}
this.keys[index] = key;
return renderItem(item, index);
},
isSomethingAfterLastItem: function isSomethingAfterLastItem() {
var pagination = this.pagination;
var loadMore = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["getComponentFromProp"])(this, 'loadMore');
var footer = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["getComponentFromProp"])(this, 'footer');
return !!(loadMore || pagination || footer);
},
renderEmpty: function renderEmpty(prefixCls, _renderEmpty) {
var h = this.$createElement;
var locale = this.locale;
return h(
'div',
{ 'class': prefixCls + '-empty-text' },
[locale && locale.emptyText || _renderEmpty(h, 'List')]
);
}
},
render: function render() {
var _classNames,
_this3 = this;
var h = arguments[0];
var customizePrefixCls = this.prefixCls,
bordered = this.bordered,
split = this.split,
itemLayout = this.itemLayout,
pagination = this.pagination,
grid = this.grid,
_dataSource = this.dataSource,
dataSource = _dataSource === undefined ? [] : _dataSource,
size = this.size,
loading = this.loading,
$slots = this.$slots,
paginationCurrent = this.paginationCurrent,
paginationSize = this.paginationSize;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('list', customizePrefixCls);
var loadMore = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["getComponentFromProp"])(this, 'loadMore');
var footer = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["getComponentFromProp"])(this, 'footer');
var header = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["getComponentFromProp"])(this, 'header');
var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["filterEmpty"])($slots['default'] || []);
var loadingProp = loading;
if (typeof loadingProp === 'boolean') {
loadingProp = {
spinning: loadingProp
};
}
var isLoading = loadingProp && loadingProp.spinning;
// large => lg
// small => sm
var sizeCls = '';
switch (size) {
case 'large':
sizeCls = 'lg';
break;
case 'small':
sizeCls = 'sm';
break;
default:
break;
}
var classString = classnames__WEBPACK_IMPORTED_MODULE_7___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4___default()(_classNames, prefixCls + '-vertical', itemLayout === 'vertical'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4___default()(_classNames, prefixCls + '-' + sizeCls, sizeCls), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4___default()(_classNames, prefixCls + '-split', split), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4___default()(_classNames, prefixCls + '-bordered', bordered), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4___default()(_classNames, prefixCls + '-loading', isLoading), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4___default()(_classNames, prefixCls + '-grid', grid), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_4___default()(_classNames, prefixCls + '-something-after-last-item', this.isSomethingAfterLastItem()), _classNames));
var paginationProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, this.defaultPaginationProps, {
total: dataSource.length,
current: paginationCurrent,
pageSize: paginationSize
}, pagination || {});
var largestPage = Math.ceil(paginationProps.total / paginationProps.pageSize);
if (paginationProps.current > largestPage) {
paginationProps.current = largestPage;
}
var cls = paginationProps['class'],
style = paginationProps.style,
restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(paginationProps, ['class', 'style']);
var paginationContent = pagination ? h(
'div',
{ 'class': prefixCls + '-pagination' },
[h(_pagination__WEBPACK_IMPORTED_MODULE_11__["default"], {
props: Object(omit_js__WEBPACK_IMPORTED_MODULE_8__["default"])(restProps, ['onChange']),
'class': cls,
style: style,
on: {
change: this.onPaginationChange,
showSizeChange: this.onPaginationShowSizeChange
}
})]
) : null;
var splitDataSource = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(dataSource));
if (pagination) {
if (dataSource.length > (paginationProps.current - 1) * paginationProps.pageSize) {
splitDataSource = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(dataSource)).splice((paginationProps.current - 1) * paginationProps.pageSize, paginationProps.pageSize);
}
}
var childrenContent = void 0;
childrenContent = isLoading && h('div', { style: { minHeight: 53 } });
if (splitDataSource.length > 0) {
var items = splitDataSource.map(function (item, index) {
return _this3.renderItem2(item, index);
});
var childrenList = items.map(function (child, index) {
return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_15__["cloneElement"])(child, {
key: _this3.keys[index]
});
});
childrenContent = grid ? h(
_grid__WEBPACK_IMPORTED_MODULE_12__["Row"],
{
attrs: { gutter: grid.gutter }
},
[childrenList]
) : h(
'ul',
{ 'class': prefixCls + '-items' },
[childrenList]
);
} else if (!children.length && !isLoading) {
var renderEmpty = this.configProvider.renderEmpty;
childrenContent = this.renderEmpty(prefixCls, renderEmpty);
}
var paginationPosition = paginationProps.position || 'bottom';
return h(
'div',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ 'class': classString }, { on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["getListeners"])(this) }]),
[(paginationPosition === 'top' || paginationPosition === 'both') && paginationContent, header && h(
'div',
{ 'class': prefixCls + '-header' },
[header]
), h(
_spin__WEBPACK_IMPORTED_MODULE_10__["default"],
{ props: loadingProp },
[childrenContent, children]
), footer && h(
'div',
{ 'class': prefixCls + '-footer' },
[footer]
), loadMore || (paginationPosition === 'bottom' || paginationPosition === 'both') && paginationContent]
);
}
};
/* istanbul ignore next */
List.install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_16__["default"]);
Vue.component(List.name, List);
Vue.component(List.Item.name, List.Item);
Vue.component(List.Item.Meta.name, List.Item.Meta);
};
/* harmony default export */ __webpack_exports__["default"] = (List);
/***/ }),
/***/ "./components/list/style/index.js":
/*!****************************************!*\
!*** ./components/list/style/index.js ***!
\****************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/list/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _empty_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../empty/style */ "./components/empty/style/index.js");
/* harmony import */ var _spin_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../spin/style */ "./components/spin/style/index.js");
/* harmony import */ var _pagination_style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../pagination/style */ "./components/pagination/style/index.js");
/* harmony import */ var _grid_style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../grid/style */ "./components/grid/style/index.js");
// style dependencies
/***/ }),
/***/ "./components/list/style/index.less":
/*!******************************************!*\
!*** ./components/list/style/index.less ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/locale-provider/LocaleReceiver.jsx":
/*!*******************************************************!*\
!*** ./components/locale-provider/LocaleReceiver.jsx ***!
\*******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _default__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./default */ "./components/locale-provider/default.js");
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'LocaleReceiver',
props: {
componentName: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string.def('global'),
defaultLocale: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func]),
children: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
},
inject: {
localeData: { 'default': function _default() {
return {};
} }
},
methods: {
getLocale: function getLocale() {
var componentName = this.componentName,
defaultLocale = this.defaultLocale;
var locale = defaultLocale || _default__WEBPACK_IMPORTED_MODULE_2__["default"][componentName || 'global'];
var antLocale = this.localeData.antLocale;
var localeFromContext = componentName && antLocale ? antLocale[componentName] : {};
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, typeof locale === 'function' ? locale() : locale, localeFromContext || {});
},
getLocaleCode: function getLocaleCode() {
var antLocale = this.localeData.antLocale;
var localeCode = antLocale && antLocale.locale;
// Had use LocaleProvide but didn't set locale
if (antLocale && antLocale.exist && !localeCode) {
return _default__WEBPACK_IMPORTED_MODULE_2__["default"].locale;
}
return localeCode;
}
},
render: function render() {
var $scopedSlots = this.$scopedSlots;
var children = this.children || $scopedSlots['default'];
var antLocale = this.localeData.antLocale;
return children(this.getLocale(), this.getLocaleCode(), antLocale);
}
});
/***/ }),
/***/ "./components/locale-provider/default.js":
/*!***********************************************!*\
!*** ./components/locale-provider/default.js ***!
\***********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _locale_default__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../locale/default */ "./components/locale/default.js");
/* harmony default export */ __webpack_exports__["default"] = (_locale_default__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/locale-provider/index.jsx":
/*!**********************************************!*\
!*** ./components/locale-provider/index.jsx ***!
\**********************************************/
/*! exports provided: ANT_MARK, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ANT_MARK", function() { return ANT_MARK; });
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! moment */ "moment");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_interopDefault__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/interopDefault */ "./components/_util/interopDefault.js");
/* harmony import */ var _modal_locale__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../modal/locale */ "./components/modal/locale.js");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
/* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
// export interface Locale {
// locale: string;
// Pagination?: Object;
// DatePicker?: Object;
// TimePicker?: Object;
// Calendar?: Object;
// Table?: Object;
// Modal?: ModalLocale;
// Popconfirm?: Object;
// Transfer?: Object;
// Select?: Object;
// Upload?: Object;
// }
var ANT_MARK = 'internalMark';
function setMomentLocale(locale) {
if (locale && locale.locale) {
Object(_util_interopDefault__WEBPACK_IMPORTED_MODULE_3__["default"])(moment__WEBPACK_IMPORTED_MODULE_2__).locale(locale.locale);
} else {
Object(_util_interopDefault__WEBPACK_IMPORTED_MODULE_3__["default"])(moment__WEBPACK_IMPORTED_MODULE_2__).locale('en');
}
}
var LocaleProvider = {
name: 'ALocaleProvider',
props: {
locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object.def(function () {
return {};
}),
_ANT_MARK__: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string
},
data: function data() {
Object(_util_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(this._ANT_MARK__ === ANT_MARK, 'LocaleProvider', '`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead');
return {
antLocale: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.locale, {
exist: true
})
};
},
provide: function provide() {
return {
localeData: this.$data
};
},
watch: {
locale: function locale(val) {
this.antLocale = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.locale, {
exist: true
});
setMomentLocale(val);
Object(_modal_locale__WEBPACK_IMPORTED_MODULE_4__["changeConfirmLocale"])(val && val.Modal);
}
},
created: function created() {
var locale = this.locale;
setMomentLocale(locale);
Object(_modal_locale__WEBPACK_IMPORTED_MODULE_4__["changeConfirmLocale"])(locale && locale.Modal);
},
beforeDestroy: function beforeDestroy() {
Object(_modal_locale__WEBPACK_IMPORTED_MODULE_4__["changeConfirmLocale"])();
},
render: function render() {
return this.$slots['default'] ? this.$slots['default'][0] : null;
}
};
/* istanbul ignore next */
LocaleProvider.install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_5__["default"]);
Vue.component(LocaleProvider.name, LocaleProvider);
};
/* harmony default export */ __webpack_exports__["default"] = (LocaleProvider);
/***/ }),
/***/ "./components/locale-provider/style/index.js":
/*!***************************************************!*\
!*** ./components/locale-provider/style/index.js ***!
\***************************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.less */ "./components/locale-provider/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_0__);
/***/ }),
/***/ "./components/locale-provider/style/index.less":
/*!*****************************************************!*\
!*** ./components/locale-provider/style/index.less ***!
\*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/locale/default.js":
/*!**************************************!*\
!*** ./components/locale/default.js ***!
\**************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _vc_pagination_locale_en_US__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../vc-pagination/locale/en_US */ "./components/vc-pagination/locale/en_US.js");
/* harmony import */ var _date_picker_locale_en_US__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../date-picker/locale/en_US */ "./components/date-picker/locale/en_US.js");
/* harmony import */ var _time_picker_locale_en_US__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../time-picker/locale/en_US */ "./components/time-picker/locale/en_US.js");
/* harmony import */ var _calendar_locale_en_US__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../calendar/locale/en_US */ "./components/calendar/locale/en_US.js");
/* harmony default export */ __webpack_exports__["default"] = ({
locale: 'en',
Pagination: _vc_pagination_locale_en_US__WEBPACK_IMPORTED_MODULE_0__["default"],
DatePicker: _date_picker_locale_en_US__WEBPACK_IMPORTED_MODULE_1__["default"],
TimePicker: _time_picker_locale_en_US__WEBPACK_IMPORTED_MODULE_2__["default"],
Calendar: _calendar_locale_en_US__WEBPACK_IMPORTED_MODULE_3__["default"],
global: {
placeholder: 'Please select'
},
Table: {
filterTitle: 'Filter menu',
filterConfirm: 'OK',
filterReset: 'Reset',
selectAll: 'Select current page',
selectInvert: 'Invert current page',
sortTitle: 'Sort',
expand: 'Expand row',
collapse: 'Collapse row'
},
Modal: {
okText: 'OK',
cancelText: 'Cancel',
justOkText: 'OK'
},
Popconfirm: {
okText: 'OK',
cancelText: 'Cancel'
},
Transfer: {
titles: ['', ''],
searchPlaceholder: 'Search here',
itemUnit: 'item',
itemsUnit: 'items'
},
Upload: {
uploading: 'Uploading...',
removeFile: 'Remove file',
uploadError: 'Upload error',
previewFile: 'Preview file',
downloadFile: 'Download file'
},
Empty: {
description: 'No Data'
},
Icon: {
icon: 'icon'
},
Text: {
edit: 'Edit',
copy: 'Copy',
copied: 'Copied',
expand: 'Expand'
},
PageHeader: {
back: 'Back'
}
});
/***/ }),
/***/ "./components/mentions/index.jsx":
/*!***************************************!*\
!*** ./components/mentions/index.jsx ***!
\***************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _vc_mentions__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../vc-mentions */ "./components/vc-mentions/index.js");
/* harmony import */ var _vc_mentions_src_mentionsProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../vc-mentions/src/mentionsProps */ "./components/vc-mentions/src/mentionsProps.js");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
/* harmony import */ var _spin__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../spin */ "./components/spin/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
var Option = _vc_mentions__WEBPACK_IMPORTED_MODULE_7__["default"].Option;
function loadingFilterOption() {
return true;
}
function getMentions() {
var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
var config = arguments[1];
var _ref = config || {},
_ref$prefix = _ref.prefix,
prefix = _ref$prefix === undefined ? '@' : _ref$prefix,
_ref$split = _ref.split,
split = _ref$split === undefined ? ' ' : _ref$split;
var prefixList = Array.isArray(prefix) ? prefix : [prefix];
return value.split(split).map(function () {
var str = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
var hitPrefix = null;
prefixList.some(function (prefixStr) {
var startStr = str.slice(0, prefixStr.length);
if (startStr === prefixStr) {
hitPrefix = prefixStr;
return true;
}
return false;
});
if (hitPrefix !== null) {
return {
prefix: hitPrefix,
value: str.slice(hitPrefix.length)
};
}
return null;
}).filter(function (entity) {
return !!entity && !!entity.value;
});
}
var Mentions = {
name: 'AMentions',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_11__["default"]],
inheritAttrs: false,
model: {
prop: 'value',
event: 'change'
},
Option: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, Option, { name: 'AMentionsOption' }),
getMentions: getMentions,
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, _vc_mentions_src_mentionsProps__WEBPACK_IMPORTED_MODULE_8__["mentionsProps"], {
loading: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool
}),
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__["ConfigConsumerProps"];
} }
},
data: function data() {
return {
focused: false
};
},
mounted: function mounted() {
var _this = this;
this.$nextTick(function () {
if (_this.autoFocus) {
_this.focus();
}
});
},
methods: {
onFocus: function onFocus() {
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
this.$emit.apply(this, ['focus'].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(args)));
this.setState({
focused: true
});
},
onBlur: function onBlur() {
for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
args[_key2] = arguments[_key2];
}
this.$emit.apply(this, ['blur'].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(args)));
this.setState({
focused: false
});
},
onSelect: function onSelect() {
for (var _len3 = arguments.length, args = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
args[_key3] = arguments[_key3];
}
this.$emit.apply(this, ['select'].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(args)));
this.setState({
focused: true
});
},
onChange: function onChange(val) {
this.$emit('change', val);
},
getNotFoundContent: function getNotFoundContent(renderEmpty) {
var h = this.$createElement;
var notFoundContent = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["getComponentFromProp"])(this, 'notFoundContent');
if (notFoundContent !== undefined) {
return notFoundContent;
}
return renderEmpty(h, 'Select');
},
getOptions: function getOptions() {
var h = this.$createElement;
var loading = this.$props.loading;
var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["filterEmpty"])(this.$slots['default'] || []);
if (loading) {
return h(
Option,
{
attrs: { value: 'ANTD_SEARCHING', disabled: true }
},
[h(_spin__WEBPACK_IMPORTED_MODULE_10__["default"], {
attrs: { size: 'small' }
})]
);
}
return children;
},
getFilterOption: function getFilterOption() {
var _$props = this.$props,
filterOption = _$props.filterOption,
loading = _$props.loading;
if (loading) {
return loadingFilterOption;
}
return filterOption;
},
focus: function focus() {
this.$refs.vcMentions.focus();
},
blur: function blur() {
this.$refs.vcMentions.blur();
}
},
render: function render() {
var _classNames;
var h = arguments[0];
var focused = this.$data.focused;
var _configProvider = this.configProvider,
getPrefixCls = _configProvider.getPrefixCls,
renderEmpty = _configProvider.renderEmpty;
var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["getOptionProps"])(this),
customizePrefixCls = _getOptionProps.prefixCls,
disabled = _getOptionProps.disabled,
getPopupContainer = _getOptionProps.getPopupContainer,
restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_getOptionProps, ['prefixCls', 'disabled', 'getPopupContainer']);
var prefixCls = getPrefixCls('mentions', customizePrefixCls);
var otherProps = Object(omit_js__WEBPACK_IMPORTED_MODULE_5__["default"])(restProps, ['loading']);
var mergedClassName = classnames__WEBPACK_IMPORTED_MODULE_4___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-disabled', disabled), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-focused', focused), _classNames));
var mentionsProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({
prefixCls: prefixCls,
notFoundContent: this.getNotFoundContent(renderEmpty)
}, otherProps, {
disabled: disabled,
filterOption: this.getFilterOption(),
getPopupContainer: getPopupContainer,
children: this.getOptions()
}),
'class': mergedClassName,
attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({ rows: 1 }, this.$attrs),
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_13__["getListeners"])(this), {
change: this.onChange,
select: this.onSelect,
focus: this.onFocus,
blur: this.onBlur
}),
ref: 'vcMentions'
};
return h(_vc_mentions__WEBPACK_IMPORTED_MODULE_7__["default"], mentionsProps);
}
};
/* istanbul ignore next */
Mentions.install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_9__["default"]);
Vue.component(Mentions.name, Mentions);
Vue.component(Mentions.Option.name, Mentions.Option);
};
/* harmony default export */ __webpack_exports__["default"] = (Mentions);
/***/ }),
/***/ "./components/mentions/style/index.js":
/*!********************************************!*\
!*** ./components/mentions/style/index.js ***!
\********************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.less */ "./components/mentions/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _empty_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../empty/style */ "./components/empty/style/index.js");
/* harmony import */ var _spin_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../spin/style */ "./components/spin/style/index.js");
// style dependencies
/***/ }),
/***/ "./components/mentions/style/index.less":
/*!**********************************************!*\
!*** ./components/mentions/style/index.less ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/menu/MenuItem.jsx":
/*!**************************************!*\
!*** ./components/menu/MenuItem.jsx ***!
\**************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _vc_menu__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../vc-menu */ "./components/vc-menu/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../tooltip */ "./components/tooltip/index.js");
function noop() {}
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'MenuItem',
inheritAttrs: false,
props: _vc_menu__WEBPACK_IMPORTED_MODULE_2__["itemProps"],
inject: {
getInlineCollapsed: { 'default': function _default() {
return noop;
} },
layoutSiderContext: { 'default': function _default() {
return {};
} }
},
isMenuItem: true,
methods: {
onKeyDown: function onKeyDown(e) {
this.$refs.menuItem.onKeyDown(e);
}
},
render: function render() {
var h = arguments[0];
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getOptionProps"])(this);
var level = props.level,
title = props.title,
rootPrefixCls = props.rootPrefixCls;
var getInlineCollapsed = this.getInlineCollapsed,
$slots = this.$slots,
attrs = this.$attrs;
var inlineCollapsed = getInlineCollapsed();
var tooltipTitle = title;
if (typeof title === 'undefined') {
tooltipTitle = level === 1 ? $slots['default'] : '';
} else if (title === false) {
tooltipTitle = '';
}
var tooltipProps = {
title: tooltipTitle
};
var siderCollapsed = this.layoutSiderContext.sCollapsed;
if (!siderCollapsed && !inlineCollapsed) {
tooltipProps.title = null;
// Reset `visible` to fix control mode tooltip display not correct
// ref: https://github.com/ant-design/ant-design/issues/16742
tooltipProps.visible = false;
}
var itemProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
title: title
}),
attrs: attrs,
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this)
};
var toolTipProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, tooltipProps, {
placement: 'right',
overlayClassName: rootPrefixCls + '-inline-collapsed-tooltip'
})
};
return h(
_tooltip__WEBPACK_IMPORTED_MODULE_4__["default"],
toolTipProps,
[h(
_vc_menu__WEBPACK_IMPORTED_MODULE_2__["Item"],
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([itemProps, { ref: 'menuItem' }]),
[$slots['default']]
)]
);
}
});
/***/ }),
/***/ "./components/menu/SubMenu.jsx":
/*!*************************************!*\
!*** ./components/menu/SubMenu.jsx ***!
\*************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _vc_menu__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../vc-menu */ "./components/vc-menu/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'ASubMenu',
isSubMenu: true,
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _vc_menu__WEBPACK_IMPORTED_MODULE_1__["SubMenu"].props),
inject: {
menuPropsContext: { 'default': function _default() {
return {};
} }
},
methods: {
onKeyDown: function onKeyDown(e) {
this.$refs.subMenu.onKeyDown(e);
}
},
render: function render() {
var h = arguments[0];
var $slots = this.$slots,
$scopedSlots = this.$scopedSlots;
var _$props = this.$props,
rootPrefixCls = _$props.rootPrefixCls,
popupClassName = _$props.popupClassName;
var antdMenuTheme = this.menuPropsContext.theme;
var props = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.$props, {
popupClassName: classnames__WEBPACK_IMPORTED_MODULE_3___default()(rootPrefixCls + '-' + antdMenuTheme, popupClassName)
}),
ref: 'subMenu',
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getListeners"])(this),
scopedSlots: $scopedSlots
};
var slotsKey = Object.keys($slots);
return h(
_vc_menu__WEBPACK_IMPORTED_MODULE_1__["SubMenu"],
props,
[slotsKey.length ? slotsKey.map(function (name) {
return h(
'template',
{ slot: name },
[$slots[name]]
);
}) : null]
);
}
});
/***/ }),
/***/ "./components/menu/index.jsx":
/*!***********************************!*\
!*** ./components/menu/index.jsx ***!
\***********************************/
/*! exports provided: MenuMode, menuProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MenuMode", function() { return MenuMode; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "menuProps", function() { return menuProps; });
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
/* harmony import */ var _vc_menu__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../vc-menu */ "./components/vc-menu/index.js");
/* harmony import */ var _SubMenu__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./SubMenu */ "./components/menu/SubMenu.jsx");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_openAnimation__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/openAnimation */ "./components/_util/openAnimation.js");
/* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
/* harmony import */ var _MenuItem__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./MenuItem */ "./components/menu/MenuItem.jsx");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _vc_menu_commonPropsType__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../vc-menu/commonPropsType */ "./components/vc-menu/commonPropsType.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
// import raf from '../_util/raf';
var MenuMode = _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['vertical', 'vertical-left', 'vertical-right', 'horizontal', 'inline']);
var menuProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _vc_menu_commonPropsType__WEBPACK_IMPORTED_MODULE_12__["default"], {
theme: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['light', 'dark']).def('light'),
mode: MenuMode.def('vertical'),
selectable: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
selectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number])),
defaultSelectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
openKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
defaultOpenKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
openAnimation: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object]),
openTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
inlineIndent: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number.def(24),
inlineCollapsed: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
isRootMenu: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool.def(true),
focusable: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool.def(false)
});
var Menu = {
name: 'AMenu',
props: menuProps,
Divider: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _vc_menu__WEBPACK_IMPORTED_MODULE_4__["Divider"], { name: 'AMenuDivider' }),
Item: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _MenuItem__WEBPACK_IMPORTED_MODULE_9__["default"], { name: 'AMenuItem' }),
SubMenu: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _SubMenu__WEBPACK_IMPORTED_MODULE_5__["default"], { name: 'ASubMenu' }),
ItemGroup: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _vc_menu__WEBPACK_IMPORTED_MODULE_4__["ItemGroup"], { name: 'AMenuItemGroup' }),
provide: function provide() {
return {
getInlineCollapsed: this.getInlineCollapsed,
menuPropsContext: this.$props
};
},
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_11__["default"]],
inject: {
layoutSiderContext: { 'default': function _default() {
return {};
} },
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_13__["ConfigConsumerProps"];
} }
},
model: {
prop: 'selectedKeys',
event: 'selectChange'
},
updated: function updated() {
this.propsUpdating = false;
},
// beforeDestroy() {
// raf.cancel(this.mountRafId);
// },
watch: {
mode: function mode(val, oldVal) {
if (oldVal === 'inline' && val !== 'inline') {
this.switchingModeFromInline = true;
}
},
openKeys: function openKeys(val) {
this.setState({ sOpenKeys: val });
},
inlineCollapsed: function inlineCollapsed(val) {
this.collapsedChange(val);
},
'layoutSiderContext.sCollapsed': function layoutSiderContextSCollapsed(val) {
this.collapsedChange(val);
}
},
data: function data() {
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["getOptionProps"])(this);
Object(_util_warning__WEBPACK_IMPORTED_MODULE_8__["default"])(!('inlineCollapsed' in props && props.mode !== 'inline'), 'Menu', "`inlineCollapsed` should only be used when Menu's `mode` is inline.");
this.switchingModeFromInline = false;
this.leaveAnimationExecutedWhenInlineCollapsed = false;
this.inlineOpenKeys = [];
var sOpenKeys = void 0;
if ('openKeys' in props) {
sOpenKeys = props.openKeys;
} else if ('defaultOpenKeys' in props) {
sOpenKeys = props.defaultOpenKeys;
}
return {
sOpenKeys: sOpenKeys
};
},
methods: {
collapsedChange: function collapsedChange(val) {
if (this.propsUpdating) {
return;
}
this.propsUpdating = true;
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["hasProp"])(this, 'openKeys')) {
if (val) {
this.switchingModeFromInline = true;
this.inlineOpenKeys = this.sOpenKeys;
this.setState({ sOpenKeys: [] });
} else {
this.setState({ sOpenKeys: this.inlineOpenKeys });
this.inlineOpenKeys = [];
}
} else if (val) {
// 缩起时openKeys置为空的动画会闪动react可以通过是否传递openKeys避免闪动vue不是很方便动态传递openKeys
this.switchingModeFromInline = true;
}
},
restoreModeVerticalFromInline: function restoreModeVerticalFromInline() {
if (this.switchingModeFromInline) {
this.switchingModeFromInline = false;
this.$forceUpdate();
}
},
// Restore vertical mode when menu is collapsed responsively when mounted
// https://github.com/ant-design/ant-design/issues/13104
// TODO: not a perfect solution, looking a new way to avoid setting switchingModeFromInline in this situation
handleMouseEnter: function handleMouseEnter(e) {
this.restoreModeVerticalFromInline();
this.$emit('mouseenter', e);
},
handleTransitionEnd: function handleTransitionEnd(e) {
// when inlineCollapsed menu width animation finished
// https://github.com/ant-design/ant-design/issues/12864
var widthCollapsed = e.propertyName === 'width' && e.target === e.currentTarget;
// Fix SVGElement e.target.className.indexOf is not a function
// https://github.com/ant-design/ant-design/issues/15699
var className = e.target.className;
// SVGAnimatedString.animVal should be identical to SVGAnimatedString.baseVal, unless during an animation.
var classNameValue = Object.prototype.toString.call(className) === '[object SVGAnimatedString]' ? className.animVal : className;
// Fix for <Menu style={{ width: '100%' }} />, the width transition won't trigger when menu is collapsed
// https://github.com/ant-design/ant-design-pro/issues/2783
var iconScaled = e.propertyName === 'font-size' && classNameValue.indexOf('anticon') >= 0;
if (widthCollapsed || iconScaled) {
this.restoreModeVerticalFromInline();
}
},
handleClick: function handleClick(e) {
this.handleOpenChange([]);
this.$emit('click', e);
},
handleSelect: function handleSelect(info) {
this.$emit('select', info);
this.$emit('selectChange', info.selectedKeys);
},
handleDeselect: function handleDeselect(info) {
this.$emit('deselect', info);
this.$emit('selectChange', info.selectedKeys);
},
handleOpenChange: function handleOpenChange(openKeys) {
this.setOpenKeys(openKeys);
this.$emit('openChange', openKeys);
this.$emit('update:openKeys', openKeys);
},
setOpenKeys: function setOpenKeys(openKeys) {
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["hasProp"])(this, 'openKeys')) {
this.setState({ sOpenKeys: openKeys });
}
},
getRealMenuMode: function getRealMenuMode() {
var inlineCollapsed = this.getInlineCollapsed();
if (this.switchingModeFromInline && inlineCollapsed) {
return 'inline';
}
var mode = this.$props.mode;
return inlineCollapsed ? 'vertical' : mode;
},
getInlineCollapsed: function getInlineCollapsed() {
var inlineCollapsed = this.$props.inlineCollapsed;
if (this.layoutSiderContext.sCollapsed !== undefined) {
return this.layoutSiderContext.sCollapsed;
}
return inlineCollapsed;
},
getMenuOpenAnimation: function getMenuOpenAnimation(menuMode) {
var _$props = this.$props,
openAnimation = _$props.openAnimation,
openTransitionName = _$props.openTransitionName;
var menuOpenAnimation = openAnimation || openTransitionName;
if (openAnimation === undefined && openTransitionName === undefined) {
if (menuMode === 'horizontal') {
menuOpenAnimation = 'slide-up';
} else if (menuMode === 'inline') {
menuOpenAnimation = { on: _util_openAnimation__WEBPACK_IMPORTED_MODULE_7__["default"] };
} else {
// When mode switch from inline
// submenu should hide without animation
if (this.switchingModeFromInline) {
menuOpenAnimation = '';
this.switchingModeFromInline = false;
} else {
menuOpenAnimation = 'zoom-big';
}
}
}
return menuOpenAnimation;
}
},
render: function render() {
var _menuClassName,
_this = this;
var h = arguments[0];
var layoutSiderContext = this.layoutSiderContext,
$slots = this.$slots;
var collapsedWidth = layoutSiderContext.collapsedWidth;
var getContextPopupContainer = this.configProvider.getPopupContainer;
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["getOptionProps"])(this);
var customizePrefixCls = props.prefixCls,
theme = props.theme,
getPopupContainer = props.getPopupContainer;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('menu', customizePrefixCls);
var menuMode = this.getRealMenuMode();
var menuOpenAnimation = this.getMenuOpenAnimation(menuMode);
var menuClassName = (_menuClassName = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_menuClassName, prefixCls + '-' + theme, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_menuClassName, prefixCls + '-inline-collapsed', this.getInlineCollapsed()), _menuClassName);
var menuProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(omit_js__WEBPACK_IMPORTED_MODULE_3__["default"])(props, ['inlineCollapsed']), {
getPopupContainer: getPopupContainer || getContextPopupContainer,
openKeys: this.sOpenKeys,
mode: menuMode,
prefixCls: prefixCls
}),
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["getListeners"])(this), {
select: this.handleSelect,
deselect: this.handleDeselect,
openChange: this.handleOpenChange,
mouseenter: this.handleMouseEnter
}),
nativeOn: {
transitionend: this.handleTransitionEnd
}
};
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["hasProp"])(this, 'selectedKeys')) {
delete menuProps.props.selectedKeys;
}
if (menuMode !== 'inline') {
// closing vertical popup submenu after click it
menuProps.on.click = this.handleClick;
menuProps.props.openTransitionName = menuOpenAnimation;
} else {
menuProps.on.click = function (e) {
_this.$emit('click', e);
};
menuProps.props.openAnimation = menuOpenAnimation;
}
// https://github.com/ant-design/ant-design/issues/8587
var hideMenu = this.getInlineCollapsed() && (collapsedWidth === 0 || collapsedWidth === '0' || collapsedWidth === '0px');
if (hideMenu) {
menuProps.props.openKeys = [];
}
return h(
_vc_menu__WEBPACK_IMPORTED_MODULE_4__["default"],
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([menuProps, { 'class': menuClassName }]),
[$slots['default']]
);
}
};
/* istanbul ignore next */
Menu.install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_14__["default"]);
Vue.component(Menu.name, Menu);
Vue.component(Menu.Item.name, Menu.Item);
Vue.component(Menu.SubMenu.name, Menu.SubMenu);
Vue.component(Menu.Divider.name, Menu.Divider);
Vue.component(Menu.ItemGroup.name, Menu.ItemGroup);
};
/* harmony default export */ __webpack_exports__["default"] = (Menu);
/***/ }),
/***/ "./components/menu/style/index.js":
/*!****************************************!*\
!*** ./components/menu/style/index.js ***!
\****************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/menu/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _tooltip_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../tooltip/style */ "./components/tooltip/style/index.js");
// style dependencies
// deps-lint-skip: layout
/***/ }),
/***/ "./components/menu/style/index.less":
/*!******************************************!*\
!*** ./components/menu/style/index.less ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/message/index.js":
/*!*************************************!*\
!*** ./components/message/index.js ***!
\*************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _vc_notification__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../vc-notification */ "./components/vc-notification/index.js");
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
var defaultDuration = 3;
var defaultTop = void 0;
var messageInstance = void 0;
var key = 1;
var prefixCls = 'ant-message';
var transitionName = 'move-up';
var getContainer = function getContainer() {
return document.body;
};
var maxCount = void 0;
function getMessageInstance(callback) {
if (messageInstance) {
callback(messageInstance);
return;
}
_vc_notification__WEBPACK_IMPORTED_MODULE_1__["default"].newInstance({
prefixCls: prefixCls,
transitionName: transitionName,
style: { top: defaultTop }, // 覆盖原来的样式
getContainer: getContainer,
maxCount: maxCount
}, function (instance) {
if (messageInstance) {
callback(messageInstance);
return;
}
messageInstance = instance;
callback(instance);
});
}
// type NoticeType = 'info' | 'success' | 'error' | 'warning' | 'loading';
function notice(args) {
var duration = args.duration !== undefined ? args.duration : defaultDuration;
var iconType = {
info: 'info-circle',
success: 'check-circle',
error: 'close-circle',
warning: 'exclamation-circle',
loading: 'loading'
}[args.type];
var target = args.key || key++;
var closePromise = new Promise(function (resolve) {
var callback = function callback() {
if (typeof args.onClose === 'function') {
args.onClose();
}
return resolve(true);
};
getMessageInstance(function (instance) {
instance.notice({
key: target,
duration: duration,
style: {},
content: function content(h) {
var iconNode = h(_icon__WEBPACK_IMPORTED_MODULE_2__["default"], {
attrs: { type: iconType, theme: iconType === 'loading' ? 'outlined' : 'filled' }
});
var switchIconNode = iconType ? iconNode : '';
return h(
'div',
{
'class': prefixCls + '-custom-content' + (args.type ? ' ' + prefixCls + '-' + args.type : '')
},
[args.icon ? typeof args.icon === 'function' ? args.icon(h) : args.icon : switchIconNode, h('span', [typeof args.content === 'function' ? args.content(h) : args.content])]
);
},
onClose: callback
});
});
});
var result = function result() {
if (messageInstance) {
messageInstance.removeNotice(target);
}
};
result.then = function (filled, rejected) {
return closePromise.then(filled, rejected);
};
result.promise = closePromise;
return result;
}
// type ConfigContent = React.ReactNode | string;
// type ConfigDuration = number | (() => void);
// export type ConfigOnClose = () => void;
function isArgsProps(content) {
return Object.prototype.toString.call(content) === '[object Object]' && !!content.content;
}
// export interface ConfigOptions {
// top?: number;
// duration?: number;
// prefixCls?: string;
// getContainer?: () => HTMLElement;
// transitionName?: string;
// }
var api = {
open: notice,
config: function config(options) {
if (options.top !== undefined) {
defaultTop = options.top;
messageInstance = null; // delete messageInstance for new defaultTop
}
if (options.duration !== undefined) {
defaultDuration = options.duration;
}
if (options.prefixCls !== undefined) {
prefixCls = options.prefixCls;
}
if (options.getContainer !== undefined) {
getContainer = options.getContainer;
}
if (options.transitionName !== undefined) {
transitionName = options.transitionName;
messageInstance = null; // delete messageInstance for new transitionName
}
if (options.maxCount !== undefined) {
maxCount = options.maxCount;
messageInstance = null;
}
},
destroy: function destroy() {
if (messageInstance) {
messageInstance.destroy();
messageInstance = null;
}
}
};
['success', 'info', 'warning', 'error', 'loading'].forEach(function (type) {
api[type] = function (content, duration, onClose) {
if (isArgsProps(content)) {
return api.open(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, content, { type: type }));
}
if (typeof duration === 'function') {
onClose = duration;
duration = undefined;
}
return api.open({ content: content, duration: duration, type: type, onClose: onClose });
};
});
api.warn = api.warning;
/* harmony default export */ __webpack_exports__["default"] = (api);
/***/ }),
/***/ "./components/message/style/index.js":
/*!*******************************************!*\
!*** ./components/message/style/index.js ***!
\*******************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/message/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/***/ }),
/***/ "./components/message/style/index.less":
/*!*********************************************!*\
!*** ./components/message/style/index.less ***!
\*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/modal/ActionButton.jsx":
/*!*******************************************!*\
!*** ./components/modal/ActionButton.jsx ***!
\*******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../button */ "./components/button/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _button_buttonTypes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../button/buttonTypes */ "./components/button/buttonTypes.js");
var ButtonType = Object(_button_buttonTypes__WEBPACK_IMPORTED_MODULE_4__["default"])().type;
var ActionButtonProps = {
type: ButtonType,
actionFn: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
closeModal: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
buttonProps: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object
};
/* harmony default export */ __webpack_exports__["default"] = ({
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
props: ActionButtonProps,
data: function data() {
return {
loading: false
};
},
mounted: function mounted() {
var _this = this;
if (this.autoFocus) {
this.timeoutId = setTimeout(function () {
return _this.$el.focus();
});
}
},
beforeDestroy: function beforeDestroy() {
clearTimeout(this.timeoutId);
},
methods: {
onClick: function onClick() {
var _this2 = this;
var actionFn = this.actionFn,
closeModal = this.closeModal;
if (actionFn) {
var ret = void 0;
if (actionFn.length) {
ret = actionFn(closeModal);
} else {
ret = actionFn();
if (!ret) {
closeModal();
}
}
if (ret && ret.then) {
this.setState({ loading: true });
ret.then(function () {
// It's unnecessary to set loading=false, for the Modal will be unmounted after close.
// this.setState({ loading: false });
closeModal.apply(undefined, arguments);
}, function (e) {
// Emit error when catch promise reject
// eslint-disable-next-line no-console
console.error(e);
// See: https://github.com/ant-design/ant-design/issues/6183
_this2.setState({ loading: false });
});
}
} else {
closeModal();
}
}
},
render: function render() {
var h = arguments[0];
var type = this.type,
$slots = this.$slots,
loading = this.loading,
buttonProps = this.buttonProps;
return h(
_button__WEBPACK_IMPORTED_MODULE_2__["default"],
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
attrs: { type: type, loading: loading },
on: {
'click': this.onClick
}
}, buttonProps]),
[$slots['default']]
);
}
});
/***/ }),
/***/ "./components/modal/ConfirmDialog.jsx":
/*!********************************************!*\
!*** ./components/modal/ConfirmDialog.jsx ***!
\********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* 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 _icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
/* harmony import */ var _Modal__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Modal */ "./components/modal/Modal.jsx");
/* harmony import */ var _ActionButton__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ActionButton */ "./components/modal/ActionButton.jsx");
/* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./locale */ "./components/modal/locale.js");
/* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
/* harmony default export */ __webpack_exports__["default"] = ({
functional: true,
render: function render(h, context) {
var props = context.props;
var onCancel = props.onCancel,
onOk = props.onOk,
close = props.close,
zIndex = props.zIndex,
afterClose = props.afterClose,
visible = props.visible,
keyboard = props.keyboard,
centered = props.centered,
getContainer = props.getContainer,
maskStyle = props.maskStyle,
okButtonProps = props.okButtonProps,
cancelButtonProps = props.cancelButtonProps,
_props$iconType = props.iconType,
iconType = _props$iconType === undefined ? 'question-circle' : _props$iconType,
_props$closable = props.closable,
closable = _props$closable === undefined ? false : _props$closable;
Object(_util_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(!('iconType' in props), 'Modal', 'The property \'iconType\' is deprecated. Use the property \'icon\' instead.');
var icon = props.icon ? props.icon : iconType;
var okType = props.okType || 'primary';
var prefixCls = props.prefixCls || 'ant-modal';
var contentPrefixCls = prefixCls + '-confirm';
// 默认为 true保持向下兼容
var okCancel = 'okCancel' in props ? props.okCancel : true;
var width = props.width || 416;
var style = props.style || {};
var mask = props.mask === undefined ? true : props.mask;
// 默认为 false保持旧版默认行为
var maskClosable = props.maskClosable === undefined ? false : props.maskClosable;
var runtimeLocale = Object(_locale__WEBPACK_IMPORTED_MODULE_5__["getConfirmLocale"])();
var okText = props.okText || (okCancel ? runtimeLocale.okText : runtimeLocale.justOkText);
var cancelText = props.cancelText || runtimeLocale.cancelText;
var autoFocusButton = props.autoFocusButton === null ? false : props.autoFocusButton || 'ok';
var transitionName = props.transitionName || 'zoom';
var maskTransitionName = props.maskTransitionName || 'fade';
var classString = classnames__WEBPACK_IMPORTED_MODULE_1___default()(contentPrefixCls, contentPrefixCls + '-' + props.type, prefixCls + '-' + props.type, props['class']);
var cancelButton = okCancel && h(
_ActionButton__WEBPACK_IMPORTED_MODULE_4__["default"],
{
attrs: {
actionFn: onCancel,
closeModal: close,
autoFocus: autoFocusButton === 'cancel',
buttonProps: cancelButtonProps
}
},
[cancelText]
);
var iconNode = typeof icon === 'string' ? h(_icon__WEBPACK_IMPORTED_MODULE_2__["default"], {
attrs: { type: icon }
}) : icon(h);
return h(
_Modal__WEBPACK_IMPORTED_MODULE_3__["default"],
{
attrs: {
prefixCls: prefixCls,
wrapClassName: classnames__WEBPACK_IMPORTED_MODULE_1___default()(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, contentPrefixCls + '-centered', !!centered)),
visible: visible,
closable: closable,
title: '',
transitionName: transitionName,
footer: '',
maskTransitionName: maskTransitionName,
mask: mask,
maskClosable: maskClosable,
maskStyle: maskStyle,
width: width,
zIndex: zIndex,
afterClose: afterClose,
keyboard: keyboard,
centered: centered,
getContainer: getContainer
},
'class': classString, on: {
'cancel': function cancel(e) {
return close({ triggerCancel: true }, e);
}
},
style: style },
[h(
'div',
{ 'class': contentPrefixCls + '-body-wrapper' },
[h(
'div',
{ 'class': contentPrefixCls + '-body' },
[iconNode, props.title === undefined ? null : h(
'span',
{ 'class': contentPrefixCls + '-title' },
[typeof props.title === 'function' ? props.title(h) : props.title]
), h(
'div',
{ 'class': contentPrefixCls + '-content' },
[typeof props.content === 'function' ? props.content(h) : props.content]
)]
), h(
'div',
{ 'class': contentPrefixCls + '-btns' },
[cancelButton, h(
_ActionButton__WEBPACK_IMPORTED_MODULE_4__["default"],
{
attrs: {
type: okType,
actionFn: onOk,
closeModal: close,
autoFocus: autoFocusButton === 'ok',
buttonProps: okButtonProps
}
},
[okText]
)]
)]
)]
);
}
});
/***/ }),
/***/ "./components/modal/Modal.jsx":
/*!************************************!*\
!*** ./components/modal/Modal.jsx ***!
\************************************/
/*! exports provided: destroyFns, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "destroyFns", function() { return destroyFns; });
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _vc_dialog__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../vc-dialog */ "./components/vc-dialog/index.js");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vc-util/Dom/addEventListener */ "./components/vc-util/Dom/addEventListener.js");
/* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./locale */ "./components/modal/locale.js");
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
/* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../button */ "./components/button/index.js");
/* harmony import */ var _button_buttonTypes__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../button/buttonTypes */ "./components/button/buttonTypes.js");
/* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./components/locale-provider/LocaleReceiver.jsx");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
var ButtonType = Object(_button_buttonTypes__WEBPACK_IMPORTED_MODULE_9__["default"])().type;
var mousePosition = null;
// ref: https://github.com/ant-design/ant-design/issues/15795
var getClickPosition = function getClickPosition(e) {
mousePosition = {
x: e.pageX,
y: e.pageY
};
// 100ms 内发生过点击事件,则从点击位置动画展示
// 否则直接 zoom 展示
// 这样可以兼容非点击方式展开
setTimeout(function () {
return mousePosition = null;
}, 100);
};
// 只有点击事件支持从鼠标位置动画展开
if (typeof window !== 'undefined' && window.document && window.document.documentElement) {
Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_5__["default"])(document.documentElement, 'click', getClickPosition, true);
}
function noop() {}
var modalProps = function modalProps() {
var defaultProps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var props = {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
/** 对话框是否可见*/
visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
/** 确定按钮 loading*/
confirmLoading: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
/** 标题*/
title: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
/** 是否显示右上角的关闭按钮*/
closable: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
closeIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
/** 点击确定回调*/
// onOk: (e: React.MouseEvent<any>) => void,
/** 点击模态框右上角叉、取消按钮、Props.maskClosable 值为 true 时的遮罩层或键盘按下 Esc 时的回调*/
// onCancel: (e: React.MouseEvent<any>) => void,
afterClose: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func.def(noop),
/** 垂直居中 */
centered: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
/** 宽度*/
width: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number]),
/** 底部内容*/
footer: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
/** 确认按钮文字*/
okText: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
/** 确认按钮类型*/
okType: ButtonType,
/** 取消按钮文字*/
cancelText: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
icon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
/** 点击蒙层是否允许关闭*/
maskClosable: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
/** 强制渲染 Modal*/
forceRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
okButtonProps: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
cancelButtonProps: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
destroyOnClose: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
wrapClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
maskTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
getContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func,
zIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
bodyStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
maskStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
mask: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
keyboard: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
wrapProps: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
focusTriggerAfterClose: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
dialogStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object.def(function () {
return {};
})
};
return Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["initDefaultProps"])(props, defaultProps);
};
var destroyFns = [];
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'AModal',
inheritAttrs: false,
model: {
prop: 'visible',
event: 'change'
},
props: modalProps({
width: 520,
transitionName: 'zoom',
maskTransitionName: 'fade',
confirmLoading: false,
visible: false,
okType: 'primary'
}),
data: function data() {
return {
sVisible: !!this.visible
};
},
watch: {
visible: function visible(val) {
this.sVisible = val;
}
},
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__["ConfigConsumerProps"];
} }
},
// static info: ModalFunc;
// static success: ModalFunc;
// static error: ModalFunc;
// static warn: ModalFunc;
// static warning: ModalFunc;
// static confirm: ModalFunc;
methods: {
handleCancel: function handleCancel(e) {
this.$emit('cancel', e);
this.$emit('change', false);
},
handleOk: function handleOk(e) {
this.$emit('ok', e);
},
renderFooter: function renderFooter(locale) {
var h = this.$createElement;
var okType = this.okType,
confirmLoading = this.confirmLoading;
var cancelBtnProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["mergeProps"])({ on: { click: this.handleCancel } }, this.cancelButtonProps || {});
var okBtnProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["mergeProps"])({
on: { click: this.handleOk },
props: {
type: okType,
loading: confirmLoading
}
}, this.okButtonProps || {});
return h('div', [h(
_button__WEBPACK_IMPORTED_MODULE_8__["default"],
cancelBtnProps,
[Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'cancelText') || locale.cancelText]
), h(
_button__WEBPACK_IMPORTED_MODULE_8__["default"],
okBtnProps,
[Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'okText') || locale.okText]
)]);
}
},
render: function render() {
var h = arguments[0];
var customizePrefixCls = this.prefixCls,
visible = this.sVisible,
wrapClassName = this.wrapClassName,
centered = this.centered,
getContainer = this.getContainer,
$slots = this.$slots,
$scopedSlots = this.$scopedSlots,
$attrs = this.$attrs;
var children = $scopedSlots['default'] ? $scopedSlots['default']() : $slots['default'];
var _configProvider = this.configProvider,
getPrefixCls = _configProvider.getPrefixCls,
getContextPopupContainer = _configProvider.getPopupContainer;
var prefixCls = getPrefixCls('modal', customizePrefixCls);
var defaultFooter = h(_locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_10__["default"], {
attrs: {
componentName: 'Modal',
defaultLocale: Object(_locale__WEBPACK_IMPORTED_MODULE_6__["getConfirmLocale"])()
},
scopedSlots: { 'default': this.renderFooter }
});
var closeIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'closeIcon');
var closeIconToRender = h(
'span',
{ 'class': prefixCls + '-close-x' },
[closeIcon || h(_icon__WEBPACK_IMPORTED_MODULE_7__["default"], { 'class': prefixCls + '-close-icon', attrs: { type: 'close' }
})]
);
var footer = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'footer');
var title = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getComponentFromProp"])(this, 'title');
var dialogProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.$props, {
getContainer: getContainer === undefined ? getContextPopupContainer : getContainer,
prefixCls: prefixCls,
wrapClassName: classnames__WEBPACK_IMPORTED_MODULE_2___default()(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, prefixCls + '-centered', !!centered), wrapClassName),
title: title,
footer: footer === undefined ? defaultFooter : footer,
visible: visible,
mousePosition: mousePosition,
closeIcon: closeIconToRender
}),
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getListeners"])(this), {
close: this.handleCancel
}),
'class': Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getClass"])(this),
style: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_11__["getStyle"])(this),
attrs: $attrs
};
return h(
_vc_dialog__WEBPACK_IMPORTED_MODULE_3__["default"],
dialogProps,
[children]
);
}
});
/***/ }),
/***/ "./components/modal/confirm.js":
/*!*************************************!*\
!*** ./components/modal/confirm.js ***!
\*************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return confirm; });
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ "vue");
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _ConfirmDialog__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ConfirmDialog */ "./components/modal/ConfirmDialog.jsx");
/* harmony import */ var _Modal__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Modal */ "./components/modal/Modal.jsx");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
/* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
function confirm(config) {
var div = document.createElement('div');
var el = document.createElement('div');
div.appendChild(el);
document.body.appendChild(div);
var currentConfig = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(omit_js__WEBPACK_IMPORTED_MODULE_5__["default"])(config, ['parentContext']), { close: close, visible: true });
var confirmDialogInstance = null;
var confirmDialogProps = { props: {} };
function close() {
destroy.apply(undefined, arguments);
}
function update(newConfig) {
currentConfig = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, currentConfig, newConfig);
confirmDialogProps.props = currentConfig;
}
function destroy() {
if (confirmDialogInstance && div.parentNode) {
confirmDialogInstance.$destroy();
confirmDialogInstance = null;
div.parentNode.removeChild(div);
}
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
var triggerCancel = args.some(function (param) {
return param && param.triggerCancel;
});
if (config.onCancel && triggerCancel) {
config.onCancel.apply(config, args);
}
for (var i = 0; i < _Modal__WEBPACK_IMPORTED_MODULE_3__["destroyFns"].length; i++) {
var fn = _Modal__WEBPACK_IMPORTED_MODULE_3__["destroyFns"][i];
if (fn === close) {
_Modal__WEBPACK_IMPORTED_MODULE_3__["destroyFns"].splice(i, 1);
break;
}
}
}
function render(props) {
confirmDialogProps.props = props;
var V = _base__WEBPACK_IMPORTED_MODULE_4__["default"].Vue || vue__WEBPACK_IMPORTED_MODULE_1___default.a;
return new V({
el: el,
parent: config.parentContext,
data: function data() {
return { confirmDialogProps: confirmDialogProps };
},
render: function render() {
var h = arguments[0];
// 先解构,避免报错,原因不详
var cdProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.confirmDialogProps);
return h(_ConfirmDialog__WEBPACK_IMPORTED_MODULE_2__["default"], cdProps);
}
});
}
confirmDialogInstance = render(currentConfig);
_Modal__WEBPACK_IMPORTED_MODULE_3__["destroyFns"].push(close);
return {
destroy: close,
update: update
};
}
/***/ }),
/***/ "./components/modal/index.js":
/*!***********************************!*\
!*** ./components/modal/index.js ***!
\***********************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _Modal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Modal */ "./components/modal/Modal.jsx");
/* harmony import */ var _confirm__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./confirm */ "./components/modal/confirm.js");
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
// export { ActionButtonProps } from './ActionButton'
// export { ModalProps, ModalFuncProps } from './Modal'
var info = function info(props) {
var config = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
type: 'info',
icon: function icon(h) {
return h(_icon__WEBPACK_IMPORTED_MODULE_3__["default"], {
attrs: { type: 'info-circle' }
});
},
okCancel: false
}, props);
return Object(_confirm__WEBPACK_IMPORTED_MODULE_2__["default"])(config);
};
var success = function success(props) {
var config = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
type: 'success',
icon: function icon(h) {
return h(_icon__WEBPACK_IMPORTED_MODULE_3__["default"], {
attrs: { type: 'check-circle' }
});
},
okCancel: false
}, props);
return Object(_confirm__WEBPACK_IMPORTED_MODULE_2__["default"])(config);
};
var error = function error(props) {
var config = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
type: 'error',
icon: function icon(h) {
return h(_icon__WEBPACK_IMPORTED_MODULE_3__["default"], {
attrs: { type: 'close-circle' }
});
},
okCancel: false
}, props);
return Object(_confirm__WEBPACK_IMPORTED_MODULE_2__["default"])(config);
};
var warning = function warning(props) {
var config = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
type: 'warning',
icon: function icon(h) {
return h(_icon__WEBPACK_IMPORTED_MODULE_3__["default"], {
attrs: { type: 'exclamation-circle' }
});
},
okCancel: false
}, props);
return Object(_confirm__WEBPACK_IMPORTED_MODULE_2__["default"])(config);
};
var warn = warning;
var confirm = function confirmFn(props) {
var config = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
type: 'confirm',
okCancel: true
}, props);
return Object(_confirm__WEBPACK_IMPORTED_MODULE_2__["default"])(config);
};
_Modal__WEBPACK_IMPORTED_MODULE_1__["default"].info = info;
_Modal__WEBPACK_IMPORTED_MODULE_1__["default"].success = success;
_Modal__WEBPACK_IMPORTED_MODULE_1__["default"].error = error;
_Modal__WEBPACK_IMPORTED_MODULE_1__["default"].warning = warning;
_Modal__WEBPACK_IMPORTED_MODULE_1__["default"].warn = warn;
_Modal__WEBPACK_IMPORTED_MODULE_1__["default"].confirm = confirm;
_Modal__WEBPACK_IMPORTED_MODULE_1__["default"].destroyAll = function destroyAllFn() {
while (_Modal__WEBPACK_IMPORTED_MODULE_1__["destroyFns"].length) {
var close = _Modal__WEBPACK_IMPORTED_MODULE_1__["destroyFns"].pop();
if (close) {
close();
}
}
};
/* istanbul ignore next */
_Modal__WEBPACK_IMPORTED_MODULE_1__["default"].install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_4__["default"]);
Vue.component(_Modal__WEBPACK_IMPORTED_MODULE_1__["default"].name, _Modal__WEBPACK_IMPORTED_MODULE_1__["default"]);
};
/* harmony default export */ __webpack_exports__["default"] = (_Modal__WEBPACK_IMPORTED_MODULE_1__["default"]);
/***/ }),
/***/ "./components/modal/locale.js":
/*!************************************!*\
!*** ./components/modal/locale.js ***!
\************************************/
/*! exports provided: changeConfirmLocale, getConfirmLocale */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "changeConfirmLocale", function() { return changeConfirmLocale; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getConfirmLocale", function() { return getConfirmLocale; });
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _locale_default__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../locale/default */ "./components/locale/default.js");
// export interface ModalLocale {
// okText: string;
// cancelText: string;
// justOkText: string;
// }
var runtimeLocale = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _locale_default__WEBPACK_IMPORTED_MODULE_1__["default"].Modal);
function changeConfirmLocale(newLocale) {
if (newLocale) {
runtimeLocale = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, runtimeLocale, newLocale);
} else {
runtimeLocale = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _locale_default__WEBPACK_IMPORTED_MODULE_1__["default"].Modal);
}
}
function getConfirmLocale() {
return runtimeLocale;
}
/***/ }),
/***/ "./components/modal/style/index.js":
/*!*****************************************!*\
!*** ./components/modal/style/index.js ***!
\*****************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/modal/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _button_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../button/style */ "./components/button/style/index.js");
// style dependencies
/***/ }),
/***/ "./components/modal/style/index.less":
/*!*******************************************!*\
!*** ./components/modal/style/index.less ***!
\*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/notification/index.js":
/*!******************************************!*\
!*** ./components/notification/index.js ***!
\******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _vc_notification__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../vc-notification */ "./components/vc-notification/index.js");
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
var notificationInstance = {};
var defaultDuration = 4.5;
var defaultTop = '24px';
var defaultBottom = '24px';
var defaultPlacement = 'topRight';
var defaultGetContainer = function defaultGetContainer() {
return document.body;
};
var defaultCloseIcon = null;
function setNotificationConfig(options) {
var duration = options.duration,
placement = options.placement,
bottom = options.bottom,
top = options.top,
getContainer = options.getContainer,
closeIcon = options.closeIcon;
if (duration !== undefined) {
defaultDuration = duration;
}
if (placement !== undefined) {
defaultPlacement = placement;
}
if (bottom !== undefined) {
defaultBottom = typeof bottom === 'number' ? bottom + 'px' : bottom;
}
if (top !== undefined) {
defaultTop = typeof top === 'number' ? top + 'px' : top;
}
if (getContainer !== undefined) {
defaultGetContainer = getContainer;
}
if (closeIcon !== undefined) {
defaultCloseIcon = closeIcon;
}
}
function getPlacementStyle(placement) {
var top = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultTop;
var bottom = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultBottom;
var style = void 0;
switch (placement) {
case 'topLeft':
style = {
left: 0,
top: top,
bottom: 'auto'
};
break;
case 'topRight':
style = {
right: 0,
top: top,
bottom: 'auto'
};
break;
case 'bottomLeft':
style = {
left: 0,
top: 'auto',
bottom: bottom
};
break;
default:
style = {
right: 0,
top: 'auto',
bottom: bottom
};
break;
}
return style;
}
function getNotificationInstance(_ref, callback) {
var prefixCls = _ref.prefixCls,
_ref$placement = _ref.placement,
placement = _ref$placement === undefined ? defaultPlacement : _ref$placement,
_ref$getContainer = _ref.getContainer,
getContainer = _ref$getContainer === undefined ? defaultGetContainer : _ref$getContainer,
top = _ref.top,
bottom = _ref.bottom,
_ref$closeIcon = _ref.closeIcon,
_closeIcon = _ref$closeIcon === undefined ? defaultCloseIcon : _ref$closeIcon;
var cacheKey = prefixCls + '-' + placement;
if (notificationInstance[cacheKey]) {
callback(notificationInstance[cacheKey]);
return;
}
_vc_notification__WEBPACK_IMPORTED_MODULE_1__["default"].newInstance({
prefixCls: prefixCls,
'class': prefixCls + '-' + placement,
style: getPlacementStyle(placement, top, bottom),
getContainer: getContainer,
closeIcon: function closeIcon(h) {
var icon = typeof _closeIcon === 'function' ? _closeIcon(h) : _closeIcon;
var closeIconToRender = h(
'span',
{ 'class': prefixCls + '-close-x' },
[icon || h(_icon__WEBPACK_IMPORTED_MODULE_2__["default"], { 'class': prefixCls + '-close-icon', attrs: { type: 'close' }
})]
);
return closeIconToRender;
}
}, function (notification) {
notificationInstance[cacheKey] = notification;
callback(notification);
});
}
var typeToIcon = {
success: 'check-circle-o',
info: 'info-circle-o',
error: 'close-circle-o',
warning: 'exclamation-circle-o'
};
function notice(args) {
var icon = args.icon,
type = args.type,
description = args.description,
message = args.message,
btn = args.btn;
var outerPrefixCls = args.prefixCls || 'ant-notification';
var prefixCls = outerPrefixCls + '-notice';
var duration = args.duration === undefined ? defaultDuration : args.duration;
var iconNode = null;
if (icon) {
iconNode = function iconNode(h) {
return h(
'span',
{ 'class': prefixCls + '-icon' },
[typeof icon === 'function' ? icon(h) : icon]
);
};
} else if (type) {
var iconType = typeToIcon[type];
iconNode = function iconNode(h) {
return h(_icon__WEBPACK_IMPORTED_MODULE_2__["default"], { 'class': prefixCls + '-icon ' + prefixCls + '-icon-' + type, attrs: { type: iconType }
});
}; // eslint-disable-line
}
var placement = args.placement,
top = args.top,
bottom = args.bottom,
getContainer = args.getContainer,
closeIcon = args.closeIcon;
getNotificationInstance({
prefixCls: outerPrefixCls,
placement: placement,
top: top,
bottom: bottom,
getContainer: getContainer,
closeIcon: closeIcon
}, function (notification) {
notification.notice({
content: function content(h) {
return h(
'div',
{ 'class': iconNode ? prefixCls + '-with-icon' : '' },
[iconNode && iconNode(h), h(
'div',
{ 'class': prefixCls + '-message' },
[!description && iconNode ? h('span', { 'class': prefixCls + '-message-single-line-auto-margin' }) : null, typeof message === 'function' ? message(h) : message]
), h(
'div',
{ 'class': prefixCls + '-description' },
[typeof description === 'function' ? description(h) : description]
), btn ? h(
'span',
{ 'class': prefixCls + '-btn' },
[typeof btn === 'function' ? btn(h) : btn]
) : null]
);
},
duration: duration,
closable: true,
onClose: args.onClose,
onClick: args.onClick,
key: args.key,
style: args.style || {},
'class': args['class']
});
});
}
var api = {
open: notice,
close: function close(key) {
Object.keys(notificationInstance).forEach(function (cacheKey) {
return notificationInstance[cacheKey].removeNotice(key);
});
},
config: setNotificationConfig,
destroy: function destroy() {
Object.keys(notificationInstance).forEach(function (cacheKey) {
notificationInstance[cacheKey].destroy();
delete notificationInstance[cacheKey];
});
}
};
['success', 'info', 'warning', 'error'].forEach(function (type) {
api[type] = function (args) {
return api.open(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, args, {
type: type
}));
};
});
api.warn = api.warning;
/* harmony default export */ __webpack_exports__["default"] = (api);
/***/ }),
/***/ "./components/notification/style/index.js":
/*!************************************************!*\
!*** ./components/notification/style/index.js ***!
\************************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/notification/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/***/ }),
/***/ "./components/notification/style/index.less":
/*!**************************************************!*\
!*** ./components/notification/style/index.less ***!
\**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/page-header/index.jsx":
/*!******************************************!*\
!*** ./components/page-header/index.jsx ***!
\******************************************/
/*! exports provided: PageHeaderProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PageHeaderProps", function() { return PageHeaderProps; });
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
/* harmony import */ var _breadcrumb__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../breadcrumb */ "./components/breadcrumb/index.js");
/* harmony import */ var _avatar__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../avatar */ "./components/avatar/index.js");
/* harmony import */ var _util_transButton__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/transButton */ "./components/_util/transButton.jsx");
/* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./components/locale-provider/LocaleReceiver.jsx");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
var PageHeaderProps = {
backIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
title: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
subTitle: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
breadcrumb: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
tags: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
footer: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
extra: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
avatar: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
ghost: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool
};
var renderBack = function renderBack(instance, prefixCls, backIcon, onBack) {
// eslint-disable-next-line no-unused-vars
var h = instance.$createElement;
if (!backIcon || !onBack) {
return null;
}
return h(
_locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_8__["default"],
{
attrs: { componentName: 'PageHeader' }
},
[function (_ref) {
var back = _ref.back;
return h(
'div',
{ 'class': prefixCls + '-back' },
[h(
_util_transButton__WEBPACK_IMPORTED_MODULE_7__["default"],
{
on: {
'click': function click(e) {
instance.$emit('back', e);
}
},
'class': prefixCls + '-back-button',
attrs: { 'aria-label': back
}
},
[backIcon]
)]
);
}]
);
};
var renderBreadcrumb = function renderBreadcrumb(h, breadcrumb) {
return h(_breadcrumb__WEBPACK_IMPORTED_MODULE_5__["default"], breadcrumb);
};
var renderTitle = function renderTitle(h, prefixCls, instance) {
var avatar = instance.avatar;
var title = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(instance, 'title');
var subTitle = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(instance, 'subTitle');
var tags = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(instance, 'tags');
var extra = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(instance, 'extra');
var backIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(instance, 'backIcon') !== undefined ? Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(instance, 'backIcon') : h(_icon__WEBPACK_IMPORTED_MODULE_4__["default"], {
attrs: { type: 'arrow-left' }
});
var onBack = instance.$listeners.back;
var headingPrefixCls = prefixCls + '-heading';
if (title || subTitle || tags || extra) {
var backIconDom = renderBack(instance, prefixCls, backIcon, onBack);
return h(
'div',
{ 'class': headingPrefixCls },
[backIconDom, avatar && h(_avatar__WEBPACK_IMPORTED_MODULE_6__["default"], avatar), title && h(
'span',
{ 'class': headingPrefixCls + '-title' },
[title]
), subTitle && h(
'span',
{ 'class': headingPrefixCls + '-sub-title' },
[subTitle]
), tags && h(
'span',
{ 'class': headingPrefixCls + '-tags' },
[tags]
), extra && h(
'span',
{ 'class': headingPrefixCls + '-extra' },
[extra]
)]
);
}
return null;
};
var renderFooter = function renderFooter(h, prefixCls, footer) {
if (footer) {
return h(
'div',
{ 'class': prefixCls + '-footer' },
[footer]
);
}
return null;
};
var renderChildren = function renderChildren(h, prefixCls, children) {
return h(
'div',
{ 'class': prefixCls + '-content' },
[children]
);
};
var PageHeader = {
name: 'APageHeader',
props: PageHeaderProps,
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_3__["ConfigConsumerProps"];
} }
},
render: function render(h) {
var _configProvider = this.configProvider,
getPrefixCls = _configProvider.getPrefixCls,
pageHeader = _configProvider.pageHeader;
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getOptionProps"])(this);
var customizePrefixCls = props.prefixCls,
breadcrumb = props.breadcrumb;
var footer = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'footer');
var children = this.$slots['default'];
var ghost = true;
// Use `ghost` from `props` or from `ConfigProvider` instead.
if ('ghost' in props) {
ghost = props.ghost;
} else if (pageHeader && 'ghost' in pageHeader) {
ghost = pageHeader.ghost;
}
var prefixCls = getPrefixCls('page-header', customizePrefixCls);
var breadcrumbDom = breadcrumb && breadcrumb.props && breadcrumb.props.routes ? renderBreadcrumb(h, breadcrumb) : null;
var className = [prefixCls, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({
'has-breadcrumb': breadcrumbDom,
'has-footer': footer
}, prefixCls + '-ghost', ghost)];
return h(
'div',
{ 'class': className },
[breadcrumbDom, renderTitle(h, prefixCls, this), children && renderChildren(h, prefixCls, children), renderFooter(h, prefixCls, footer)]
);
}
};
/* istanbul ignore next */
PageHeader.install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_9__["default"]);
Vue.component(PageHeader.name, PageHeader);
};
/* harmony default export */ __webpack_exports__["default"] = (PageHeader);
/***/ }),
/***/ "./components/page-header/style/index.js":
/*!***********************************************!*\
!*** ./components/page-header/style/index.js ***!
\***********************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.less */ "./components/page-header/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _breadcrumb_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../breadcrumb/style */ "./components/breadcrumb/style/index.js");
/* harmony import */ var _avatar_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../avatar/style */ "./components/avatar/style/index.js");
// style dependencies
/***/ }),
/***/ "./components/page-header/style/index.less":
/*!*************************************************!*\
!*** ./components/page-header/style/index.less ***!
\*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/pagination/MiniSelect.jsx":
/*!**********************************************!*\
!*** ./components/pagination/MiniSelect.jsx ***!
\**********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../select */ "./components/select/index.jsx");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony default export */ __webpack_exports__["default"] = ({
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _select__WEBPACK_IMPORTED_MODULE_1__["SelectProps"]),
Option: _select__WEBPACK_IMPORTED_MODULE_1__["default"].Option,
render: function render() {
var h = arguments[0];
var selectOptionsProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getOptionProps"])(this);
var selelctProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, selectOptionsProps, {
size: 'small'
}),
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getListeners"])(this)
};
return h(
_select__WEBPACK_IMPORTED_MODULE_1__["default"],
selelctProps,
[Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["filterEmpty"])(this.$slots['default'])]
);
}
});
/***/ }),
/***/ "./components/pagination/Pagination.jsx":
/*!**********************************************!*\
!*** ./components/pagination/Pagination.jsx ***!
\**********************************************/
/*! exports provided: PaginationProps, PaginationConfig, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PaginationProps", function() { return PaginationProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PaginationConfig", function() { return PaginationConfig; });
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../select */ "./components/select/index.jsx");
/* harmony import */ var _MiniSelect__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./MiniSelect */ "./components/pagination/MiniSelect.jsx");
/* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./components/locale-provider/LocaleReceiver.jsx");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _vc_pagination__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../vc-pagination */ "./components/vc-pagination/index.js");
/* harmony import */ var _vc_pagination_locale_en_US__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../vc-pagination/locale/en_US */ "./components/vc-pagination/locale/en_US.js");
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
var PaginationProps = function PaginationProps() {
return {
total: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
defaultCurrent: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
current: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
defaultPageSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
pageSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
hideOnSinglePage: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
showSizeChanger: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
pageSizeOptions: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string])),
buildOptionText: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
showSizeChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
showQuickJumper: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object]),
showTotal: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
size: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
simple: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
selectPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
itemRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
role: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
showLessItems: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool
};
};
var PaginationConfig = function PaginationConfig() {
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, PaginationProps(), {
position: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['top', 'bottom', 'both'])
});
};
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'APagination',
model: {
prop: 'current',
event: 'change.current'
},
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, PaginationProps()),
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_10__["ConfigConsumerProps"];
} }
},
methods: {
getIconsProps: function getIconsProps(prefixCls) {
var h = this.$createElement;
var prevIcon = h(
'a',
{ 'class': prefixCls + '-item-link' },
[h(_icon__WEBPACK_IMPORTED_MODULE_9__["default"], {
attrs: { type: 'left' }
})]
);
var nextIcon = h(
'a',
{ 'class': prefixCls + '-item-link' },
[h(_icon__WEBPACK_IMPORTED_MODULE_9__["default"], {
attrs: { type: 'right' }
})]
);
var jumpPrevIcon = h(
'a',
{ 'class': prefixCls + '-item-link' },
[h(
'div',
{ 'class': prefixCls + '-item-container' },
[h(_icon__WEBPACK_IMPORTED_MODULE_9__["default"], { 'class': prefixCls + '-item-link-icon', attrs: { type: 'double-left' }
}), h(
'span',
{ 'class': prefixCls + '-item-ellipsis' },
['\u2022\u2022\u2022']
)]
)]
);
var jumpNextIcon = h(
'a',
{ 'class': prefixCls + '-item-link' },
[h(
'div',
{ 'class': prefixCls + '-item-container' },
[h(_icon__WEBPACK_IMPORTED_MODULE_9__["default"], { 'class': prefixCls + '-item-link-icon', attrs: { type: 'double-right' }
}), h(
'span',
{ 'class': prefixCls + '-item-ellipsis' },
['\u2022\u2022\u2022']
)]
)]
);
return {
prevIcon: prevIcon,
nextIcon: nextIcon,
jumpPrevIcon: jumpPrevIcon,
jumpNextIcon: jumpNextIcon
};
},
renderPagination: function renderPagination(contextLocale) {
var h = this.$createElement;
var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(this),
customizePrefixCls = _getOptionProps.prefixCls,
customizeSelectPrefixCls = _getOptionProps.selectPrefixCls,
buildOptionText = _getOptionProps.buildOptionText,
size = _getOptionProps.size,
customLocale = _getOptionProps.locale,
restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(_getOptionProps, ['prefixCls', 'selectPrefixCls', 'buildOptionText', 'size', 'locale']);
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('pagination', customizePrefixCls);
var selectPrefixCls = getPrefixCls('select', customizeSelectPrefixCls);
var isSmall = size === 'small';
var paginationProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
prefixCls: prefixCls,
selectPrefixCls: selectPrefixCls
}, restProps, this.getIconsProps(prefixCls), {
selectComponentClass: isSmall ? _MiniSelect__WEBPACK_IMPORTED_MODULE_4__["default"] : _select__WEBPACK_IMPORTED_MODULE_3__["default"],
locale: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, contextLocale, customLocale),
buildOptionText: buildOptionText || this.$scopedSlots.buildOptionText
}),
'class': {
mini: isSmall
},
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this)
};
return h(_vc_pagination__WEBPACK_IMPORTED_MODULE_7__["default"], paginationProps);
}
},
render: function render() {
var h = arguments[0];
return h(_locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_5__["default"], {
attrs: {
componentName: 'Pagination',
defaultLocale: _vc_pagination_locale_en_US__WEBPACK_IMPORTED_MODULE_8__["default"]
},
scopedSlots: { 'default': this.renderPagination }
});
}
});
/***/ }),
/***/ "./components/pagination/index.js":
/*!****************************************!*\
!*** ./components/pagination/index.js ***!
\****************************************/
/*! exports provided: PaginationProps, PaginationConfig, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Pagination__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Pagination */ "./components/pagination/Pagination.jsx");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PaginationProps", function() { return _Pagination__WEBPACK_IMPORTED_MODULE_0__["PaginationProps"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PaginationConfig", function() { return _Pagination__WEBPACK_IMPORTED_MODULE_0__["PaginationConfig"]; });
/* istanbul ignore next */
_Pagination__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_1__["default"]);
Vue.component(_Pagination__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Pagination__WEBPACK_IMPORTED_MODULE_0__["default"]);
};
/* harmony default export */ __webpack_exports__["default"] = (_Pagination__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/pagination/style/index.js":
/*!**********************************************!*\
!*** ./components/pagination/style/index.js ***!
\**********************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/pagination/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _select_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../select/style */ "./components/select/style/index.js");
// style dependencies
/***/ }),
/***/ "./components/pagination/style/index.less":
/*!************************************************!*\
!*** ./components/pagination/style/index.less ***!
\************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/popconfirm/index.jsx":
/*!*****************************************!*\
!*** ./components/popconfirm/index.jsx ***!
\*****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../tooltip */ "./components/tooltip/index.js");
/* harmony import */ var _tooltip_abstractTooltipProps__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../tooltip/abstractTooltipProps */ "./components/tooltip/abstractTooltipProps.js");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _button_buttonTypes__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../button/buttonTypes */ "./components/button/buttonTypes.js");
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
/* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../button */ "./components/button/index.js");
/* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./components/locale-provider/LocaleReceiver.jsx");
/* harmony import */ var _locale_provider_default__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../locale-provider/default */ "./components/locale-provider/default.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
var tooltipProps = Object(_tooltip_abstractTooltipProps__WEBPACK_IMPORTED_MODULE_3__["default"])();
var btnProps = Object(_button_buttonTypes__WEBPACK_IMPORTED_MODULE_7__["default"])();
var Popconfirm = {
name: 'APopconfirm',
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, tooltipProps, {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def('zoom-big'),
content: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
title: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
trigger: tooltipProps.trigger.def('click'),
okType: btnProps.type.def('primary'),
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool.def(false),
okText: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
cancelText: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
icon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
okButtonProps: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
cancelButtonProps: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object
}),
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__["default"]],
model: {
prop: 'visible',
event: 'visibleChange'
},
watch: {
visible: function visible(val) {
this.sVisible = val;
}
},
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__["ConfigConsumerProps"];
} }
},
data: function data() {
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
var state = { sVisible: false };
if ('visible' in props) {
state.sVisible = props.visible;
}
if ('defaultVisible' in props) {
state.sVisible = props.defaultVisible;
}
return state;
},
methods: {
onConfirm: function onConfirm(e) {
this.setVisible(false, e);
this.$emit('confirm', e);
},
onCancel: function onCancel(e) {
this.setVisible(false, e);
this.$emit('cancel', e);
},
onVisibleChange: function onVisibleChange(sVisible) {
var disabled = this.$props.disabled;
if (disabled) {
return;
}
this.setVisible(sVisible);
},
setVisible: function setVisible(sVisible, e) {
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'visible')) {
this.setState({ sVisible: sVisible });
}
this.$emit('visibleChange', sVisible, e);
},
getPopupDomNode: function getPopupDomNode() {
return this.$refs.tooltip.getPopupDomNode();
},
renderOverlay: function renderOverlay(prefixCls, popconfirmLocale) {
var h = this.$createElement;
var okType = this.okType,
okButtonProps = this.okButtonProps,
cancelButtonProps = this.cancelButtonProps;
var icon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'icon') || h(_icon__WEBPACK_IMPORTED_MODULE_8__["default"], {
attrs: { type: 'exclamation-circle', theme: 'filled' }
});
var cancelBtnProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["mergeProps"])({
props: {
size: 'small'
},
on: {
click: this.onCancel
}
}, cancelButtonProps);
var okBtnProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["mergeProps"])({
props: {
type: okType,
size: 'small'
},
on: {
click: this.onConfirm
}
}, okButtonProps);
return h(
'div',
{ 'class': prefixCls + '-inner-content' },
[h(
'div',
{ 'class': prefixCls + '-message' },
[icon, h(
'div',
{ 'class': prefixCls + '-message-title' },
[Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'title')]
)]
), h(
'div',
{ 'class': prefixCls + '-buttons' },
[h(
_button__WEBPACK_IMPORTED_MODULE_9__["default"],
cancelBtnProps,
[Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'cancelText') || popconfirmLocale.cancelText]
), h(
_button__WEBPACK_IMPORTED_MODULE_9__["default"],
okBtnProps,
[Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'okText') || popconfirmLocale.okText]
)]
)]
);
}
},
render: function render() {
var _this = this;
var h = arguments[0];
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
var customizePrefixCls = props.prefixCls;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('popover', customizePrefixCls);
var otherProps = Object(omit_js__WEBPACK_IMPORTED_MODULE_1__["default"])(props, ['title', 'content', 'cancelText', 'okText']);
var tooltipProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, otherProps, {
prefixCls: prefixCls,
visible: this.sVisible
}),
ref: 'tooltip',
on: {
visibleChange: this.onVisibleChange
}
};
var overlay = h(_locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_10__["default"], {
attrs: {
componentName: 'Popconfirm',
defaultLocale: _locale_provider_default__WEBPACK_IMPORTED_MODULE_11__["default"].Popconfirm
},
scopedSlots: {
'default': function _default(popconfirmLocale) {
return _this.renderOverlay(prefixCls, popconfirmLocale);
}
}
});
return h(
_tooltip__WEBPACK_IMPORTED_MODULE_2__["default"],
tooltipProps,
[h(
'template',
{ slot: 'title' },
[overlay]
), this.$slots['default']]
);
}
};
/* istanbul ignore next */
Popconfirm.install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_13__["default"]);
Vue.component(Popconfirm.name, Popconfirm);
};
/* harmony default export */ __webpack_exports__["default"] = (Popconfirm);
/***/ }),
/***/ "./components/popconfirm/style/index.js":
/*!**********************************************!*\
!*** ./components/popconfirm/style/index.js ***!
\**********************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _popover_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../popover/style */ "./components/popover/style/index.js");
/* harmony import */ var _button_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../button/style */ "./components/button/style/index.js");
// style dependencies
// deps-lint-skip: tooltip, popover
/***/ }),
/***/ "./components/popover/index.jsx":
/*!**************************************!*\
!*** ./components/popover/index.jsx ***!
\**************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../tooltip */ "./components/tooltip/index.js");
/* harmony import */ var _tooltip_abstractTooltipProps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../tooltip/abstractTooltipProps */ "./components/tooltip/abstractTooltipProps.js");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
var props = Object(_tooltip_abstractTooltipProps__WEBPACK_IMPORTED_MODULE_2__["default"])();
var Popover = {
name: 'APopover',
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.def('zoom-big'),
content: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
title: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any
}),
model: {
prop: 'visible',
event: 'visibleChange'
},
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__["ConfigConsumerProps"];
} }
},
methods: {
getPopupDomNode: function getPopupDomNode() {
return this.$refs.tooltip.getPopupDomNode();
}
},
render: function render() {
var h = arguments[0];
var title = this.title,
customizePrefixCls = this.prefixCls,
$slots = this.$slots;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('popover', customizePrefixCls);
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this);
delete props.title;
delete props.content;
var tooltipProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
prefixCls: prefixCls
}),
ref: 'tooltip',
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this)
};
return h(
_tooltip__WEBPACK_IMPORTED_MODULE_1__["default"],
tooltipProps,
[h(
'template',
{ slot: 'title' },
[h('div', [(title || $slots.title) && h(
'div',
{ 'class': prefixCls + '-title' },
[Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'title')]
), h(
'div',
{ 'class': prefixCls + '-inner-content' },
[Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'content')]
)])]
), this.$slots['default']]
);
}
};
/* istanbul ignore next */
Popover.install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_6__["default"]);
Vue.component(Popover.name, Popover);
};
/* harmony default export */ __webpack_exports__["default"] = (Popover);
/***/ }),
/***/ "./components/popover/style/index.js":
/*!*******************************************!*\
!*** ./components/popover/style/index.js ***!
\*******************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/popover/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
// style dependencies
// deps-lint-skip: tooltip
/***/ }),
/***/ "./components/popover/style/index.less":
/*!*********************************************!*\
!*** ./components/popover/style/index.less ***!
\*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/progress/circle.jsx":
/*!****************************************!*\
!*** ./components/progress/circle.jsx ***!
\****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _vc_progress__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../vc-progress */ "./components/vc-progress/index.js");
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./components/progress/utils.js");
var statusColorMap = {
normal: '#108ee9',
exception: '#ff5500',
success: '#87d068'
};
function getPercentage(_ref) {
var percent = _ref.percent,
successPercent = _ref.successPercent;
var ptg = Object(_utils__WEBPACK_IMPORTED_MODULE_2__["validProgress"])(percent);
if (!successPercent) return ptg;
var successPtg = Object(_utils__WEBPACK_IMPORTED_MODULE_2__["validProgress"])(successPercent);
return [successPercent, Object(_utils__WEBPACK_IMPORTED_MODULE_2__["validProgress"])(ptg - successPtg)];
}
function getStrokeColor(_ref2) {
var progressStatus = _ref2.progressStatus,
successPercent = _ref2.successPercent,
strokeColor = _ref2.strokeColor;
var color = strokeColor || statusColorMap[progressStatus];
if (!successPercent) return color;
return [statusColorMap.success, color];
}
var Circle = {
functional: true,
render: function render(h, context) {
var _wrapperClassName;
var props = context.props,
children = context.children;
var prefixCls = props.prefixCls,
width = props.width,
strokeWidth = props.strokeWidth,
trailColor = props.trailColor,
strokeLinecap = props.strokeLinecap,
gapPosition = props.gapPosition,
gapDegree = props.gapDegree,
type = props.type;
var circleSize = width || 120;
var circleStyle = {
width: typeof circleSize === 'number' ? circleSize + 'px' : circleSize,
height: typeof circleSize === 'number' ? circleSize + 'px' : circleSize,
fontSize: circleSize * 0.15 + 6
};
var circleWidth = strokeWidth || 6;
var gapPos = gapPosition || type === 'dashboard' && 'bottom' || 'top';
var gapDeg = gapDegree || type === 'dashboard' && 75;
var strokeColor = getStrokeColor(props);
var isGradient = Object.prototype.toString.call(strokeColor) === '[object Object]';
var wrapperClassName = (_wrapperClassName = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_wrapperClassName, prefixCls + '-inner', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_wrapperClassName, prefixCls + '-circle-gradient', isGradient), _wrapperClassName);
return h(
'div',
{ 'class': wrapperClassName, style: circleStyle },
[h(_vc_progress__WEBPACK_IMPORTED_MODULE_1__["Circle"], {
attrs: {
percent: getPercentage(props),
strokeWidth: circleWidth,
trailWidth: circleWidth,
strokeColor: strokeColor,
strokeLinecap: strokeLinecap,
trailColor: trailColor,
prefixCls: prefixCls,
gapDegree: gapDeg,
gapPosition: gapPos
}
}), children]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (Circle);
/***/ }),
/***/ "./components/progress/index.jsx":
/*!***************************************!*\
!*** ./components/progress/index.jsx ***!
\***************************************/
/*! exports provided: ProgressProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _progress__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./progress */ "./components/progress/progress.jsx");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ProgressProps", function() { return _progress__WEBPACK_IMPORTED_MODULE_0__["ProgressProps"]; });
/* istanbul ignore next */
_progress__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_1__["default"]);
Vue.component(_progress__WEBPACK_IMPORTED_MODULE_0__["default"].name, _progress__WEBPACK_IMPORTED_MODULE_0__["default"]);
};
/* harmony default export */ __webpack_exports__["default"] = (_progress__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/progress/line.jsx":
/*!**************************************!*\
!*** ./components/progress/line.jsx ***!
\**************************************/
/*! exports provided: sortGradient, handleGradient, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sortGradient", function() { return sortGradient; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "handleGradient", function() { return handleGradient; });
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/slicedToArray */ "./node_modules/babel-runtime/helpers/slicedToArray.js");
/* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ "./components/progress/utils.js");
/**
* {
* '0%': '#afc163',
* '75%': '#009900',
* '50%': 'green', ====> '#afc163 0%, #66FF00 25%, #00CC00 50%, #009900 75%, #ffffff 100%'
* '25%': '#66FF00',
* '100%': '#ffffff'
* }
*/
var sortGradient = function sortGradient(gradients) {
var tempArr = [];
// eslint-disable-next-line no-restricted-syntax
var _iteratorNormalCompletion = true;
var _didIteratorError = false;
var _iteratorError = undefined;
try {
for (var _iterator = Object.entries(gradients)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
var _ref = _step.value;
var _ref2 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(_ref, 2);
var key = _ref2[0];
var value = _ref2[1];
var formatKey = parseFloat(key.replace(/%/g, ''));
if (isNaN(formatKey)) {
return {};
}
tempArr.push({
key: formatKey,
value: value
});
}
} catch (err) {
_didIteratorError = true;
_iteratorError = err;
} finally {
try {
if (!_iteratorNormalCompletion && _iterator['return']) {
_iterator['return']();
}
} finally {
if (_didIteratorError) {
throw _iteratorError;
}
}
}
tempArr = tempArr.sort(function (a, b) {
return a.key - b.key;
});
return tempArr.map(function (_ref3) {
var key = _ref3.key,
value = _ref3.value;
return value + ' ' + key + '%';
}).join(', ');
};
/**
* {
* '0%': '#afc163',
* '25%': '#66FF00',
* '50%': '#00CC00', ====> linear-gradient(to right, #afc163 0%, #66FF00 25%,
* '75%': '#009900', #00CC00 50%, #009900 75%, #ffffff 100%)
* '100%': '#ffffff'
* }
*
* Then this man came to realize the truth:
* Besides six pence, there is the moon.
* Besides bread and butter, there is the bug.
* And...
* Besides women, there is the code.
*/
var handleGradient = function handleGradient(strokeColor) {
var _strokeColor$from = strokeColor.from,
from = _strokeColor$from === undefined ? '#1890ff' : _strokeColor$from,
_strokeColor$to = strokeColor.to,
to = _strokeColor$to === undefined ? '#1890ff' : _strokeColor$to,
_strokeColor$directio = strokeColor.direction,
direction = _strokeColor$directio === undefined ? 'to right' : _strokeColor$directio,
rest = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(strokeColor, ['from', 'to', 'direction']);
if (Object.keys(rest).length !== 0) {
var sortedGradients = sortGradient(rest);
return { backgroundImage: 'linear-gradient(' + direction + ', ' + sortedGradients + ')' };
}
return { backgroundImage: 'linear-gradient(' + direction + ', ' + from + ', ' + to + ')' };
};
var Line = {
functional: true,
render: function render(h, context) {
var props = context.props,
children = context.children;
var prefixCls = props.prefixCls,
percent = props.percent,
successPercent = props.successPercent,
strokeWidth = props.strokeWidth,
size = props.size,
strokeColor = props.strokeColor,
strokeLinecap = props.strokeLinecap;
var backgroundProps = void 0;
if (strokeColor && typeof strokeColor !== 'string') {
backgroundProps = handleGradient(strokeColor);
} else {
backgroundProps = {
background: strokeColor
};
}
var percentStyle = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
width: Object(_utils__WEBPACK_IMPORTED_MODULE_3__["validProgress"])(percent) + '%',
height: (strokeWidth || (size === 'small' ? 6 : 8)) + 'px',
background: strokeColor,
borderRadius: strokeLinecap === 'square' ? 0 : '100px'
}, backgroundProps);
var successPercentStyle = {
width: Object(_utils__WEBPACK_IMPORTED_MODULE_3__["validProgress"])(successPercent) + '%',
height: (strokeWidth || (size === 'small' ? 6 : 8)) + 'px',
borderRadius: strokeLinecap === 'square' ? 0 : ''
};
var successSegment = successPercent !== undefined ? h('div', { 'class': prefixCls + '-success-bg', style: successPercentStyle }) : null;
return h('div', [h(
'div',
{ 'class': prefixCls + '-outer' },
[h(
'div',
{ 'class': prefixCls + '-inner' },
[h('div', { 'class': prefixCls + '-bg', style: percentStyle }), successSegment]
)]
), children]);
}
};
/* harmony default export */ __webpack_exports__["default"] = (Line);
/***/ }),
/***/ "./components/progress/progress.jsx":
/*!******************************************!*\
!*** ./components/progress/progress.jsx ***!
\******************************************/
/*! exports provided: ProgressType, ProgressSize, ProgressProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProgressType", function() { return ProgressType; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProgressSize", function() { return ProgressSize; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProgressProps", function() { return ProgressProps; });
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
/* harmony import */ var _line__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./line */ "./components/progress/line.jsx");
/* harmony import */ var _circle__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./circle */ "./components/progress/circle.jsx");
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils */ "./components/progress/utils.js");
var ProgressStatuses = ['normal', 'exception', 'active', 'success'];
var ProgressType = _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['line', 'circle', 'dashboard']);
var ProgressSize = _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['default', 'small']);
var ProgressProps = {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
type: ProgressType,
percent: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
successPercent: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
format: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
status: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(ProgressStatuses),
showInfo: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
strokeWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
strokeLinecap: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['butt', 'round', 'square']),
strokeColor: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object]),
trailColor: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
width: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
gapDegree: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
gapPosition: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['top', 'bottom', 'left', 'right']),
size: ProgressSize
};
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'AProgress',
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["initDefaultProps"])(ProgressProps, {
type: 'line',
percent: 0,
showInfo: true,
trailColor: '#f3f3f3',
size: 'default',
gapDegree: 0,
strokeLinecap: 'round'
}),
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__["ConfigConsumerProps"];
} }
},
methods: {
getPercentNumber: function getPercentNumber() {
var _$props = this.$props,
successPercent = _$props.successPercent,
_$props$percent = _$props.percent,
percent = _$props$percent === undefined ? 0 : _$props$percent;
return parseInt(successPercent !== undefined ? successPercent.toString() : percent.toString(), 10);
},
getProgressStatus: function getProgressStatus() {
var status = this.$props.status;
if (ProgressStatuses.indexOf(status) < 0 && this.getPercentNumber() >= 100) {
return 'success';
}
return status || 'normal';
},
renderProcessInfo: function renderProcessInfo(prefixCls, progressStatus) {
var h = this.$createElement;
var _$props2 = this.$props,
showInfo = _$props2.showInfo,
format = _$props2.format,
type = _$props2.type,
percent = _$props2.percent,
successPercent = _$props2.successPercent;
if (!showInfo) return null;
var text = void 0;
var textFormatter = format || this.$scopedSlots.format || function (percentNumber) {
return percentNumber + '%';
};
var iconType = type === 'circle' || type === 'dashboard' ? '' : '-circle';
if (format || this.$scopedSlots.format || progressStatus !== 'exception' && progressStatus !== 'success') {
text = textFormatter(Object(_utils__WEBPACK_IMPORTED_MODULE_9__["validProgress"])(percent), Object(_utils__WEBPACK_IMPORTED_MODULE_9__["validProgress"])(successPercent));
} else if (progressStatus === 'exception') {
text = h(_icon__WEBPACK_IMPORTED_MODULE_6__["default"], {
attrs: { type: 'close' + iconType, theme: type === 'line' ? 'filled' : 'outlined' }
});
} else if (progressStatus === 'success') {
text = h(_icon__WEBPACK_IMPORTED_MODULE_6__["default"], {
attrs: { type: 'check' + iconType, theme: type === 'line' ? 'filled' : 'outlined' }
});
}
return h(
'span',
{ 'class': prefixCls + '-text', attrs: { title: typeof text === 'string' ? text : undefined }
},
[text]
);
}
},
render: function render() {
var _classNames;
var h = arguments[0];
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this);
var customizePrefixCls = props.prefixCls,
size = props.size,
type = props.type,
showInfo = props.showInfo;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('progress', customizePrefixCls);
var progressStatus = this.getProgressStatus();
var progressInfo = this.renderProcessInfo(prefixCls, progressStatus);
var progress = void 0;
// Render progress shape
if (type === 'line') {
var lineProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
prefixCls: prefixCls
})
};
progress = h(
_line__WEBPACK_IMPORTED_MODULE_7__["default"],
lineProps,
[progressInfo]
);
} else if (type === 'circle' || type === 'dashboard') {
var circleProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
prefixCls: prefixCls,
progressStatus: progressStatus
})
};
progress = h(
_circle__WEBPACK_IMPORTED_MODULE_8__["default"],
circleProps,
[progressInfo]
);
}
var classString = classnames__WEBPACK_IMPORTED_MODULE_2___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-' + (type === 'dashboard' && 'circle' || type), true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-status-' + progressStatus, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-show-info', showInfo), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-' + size, size), _classNames));
var progressProps = {
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this),
'class': classString
};
return h(
'div',
progressProps,
[progress]
);
}
});
/***/ }),
/***/ "./components/progress/style/index.js":
/*!********************************************!*\
!*** ./components/progress/style/index.js ***!
\********************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/progress/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/***/ }),
/***/ "./components/progress/style/index.less":
/*!**********************************************!*\
!*** ./components/progress/style/index.less ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/progress/utils.js":
/*!**************************************!*\
!*** ./components/progress/utils.js ***!
\**************************************/
/*! exports provided: validProgress */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validProgress", function() { return validProgress; });
function validProgress(progress) {
if (!progress || progress < 0) {
return 0;
}
if (progress > 100) {
return 100;
}
return progress;
}
/***/ }),
/***/ "./components/radio/Group.jsx":
/*!************************************!*\
!*** ./components/radio/Group.jsx ***!
\************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _Radio__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Radio */ "./components/radio/Radio.jsx");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
function noop() {}
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'ARadioGroup',
model: {
prop: 'value'
},
props: {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
size: {
'default': 'default',
validator: function validator(value) {
return ['large', 'default', 'small'].includes(value);
}
},
options: {
'default': function _default() {
return [];
},
type: Array
},
disabled: Boolean,
name: String,
buttonStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.def('outline')
},
data: function data() {
var value = this.value,
defaultValue = this.defaultValue;
this.updatingValue = false;
return {
stateValue: value === undefined ? defaultValue : value
};
},
provide: function provide() {
return {
radioGroupContext: this
};
},
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__["ConfigConsumerProps"];
} }
},
computed: {
radioOptions: function radioOptions() {
var disabled = this.disabled;
return this.options.map(function (option) {
return typeof option === 'string' ? { label: option, value: option } : babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, option, { disabled: option.disabled === undefined ? disabled : option.disabled });
});
},
classes: function classes() {
var _ref;
var prefixCls = this.prefixCls,
size = this.size;
return _ref = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, '' + prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, prefixCls + '-' + size, size), _ref;
}
},
watch: {
value: function value(val) {
this.updatingValue = false;
this.stateValue = val;
}
},
methods: {
onRadioChange: function onRadioChange(ev) {
var _this = this;
var lastValue = this.stateValue;
var value = ev.target.value;
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'value')) {
this.stateValue = value;
}
// nextTick for https://github.com/vueComponent/ant-design-vue/issues/1280
if (!this.updatingValue && value !== lastValue) {
this.updatingValue = true;
this.$emit('input', value);
this.$emit('change', ev);
}
this.$nextTick(function () {
_this.updatingValue = false;
});
}
},
render: function render() {
var _this2 = this;
var h = arguments[0];
var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this),
_getListeners$mouseen = _getListeners.mouseenter,
mouseenter = _getListeners$mouseen === undefined ? noop : _getListeners$mouseen,
_getListeners$mousele = _getListeners.mouseleave,
mouseleave = _getListeners$mousele === undefined ? noop : _getListeners$mousele;
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
var customizePrefixCls = props.prefixCls,
options = props.options,
buttonStyle = props.buttonStyle;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('radio', customizePrefixCls);
var groupPrefixCls = prefixCls + '-group';
var classString = classnames__WEBPACK_IMPORTED_MODULE_2___default()(groupPrefixCls, groupPrefixCls + '-' + buttonStyle, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, groupPrefixCls + '-' + props.size, props.size));
var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["filterEmpty"])(this.$slots['default']);
// 如果存在 options, 优先使用
if (options && options.length > 0) {
children = options.map(function (option) {
if (typeof option === 'string') {
return h(
_Radio__WEBPACK_IMPORTED_MODULE_4__["default"],
{
key: option,
attrs: { prefixCls: prefixCls,
disabled: props.disabled,
value: option,
checked: _this2.stateValue === option
}
},
[option]
);
} else {
return h(
_Radio__WEBPACK_IMPORTED_MODULE_4__["default"],
{
key: 'radio-group-value-options-' + option.value,
attrs: { prefixCls: prefixCls,
disabled: option.disabled || props.disabled,
value: option.value,
checked: _this2.stateValue === option.value
}
},
[option.label]
);
}
});
}
return h(
'div',
{ 'class': classString, on: {
'mouseenter': mouseenter,
'mouseleave': mouseleave
}
},
[children]
);
}
});
/***/ }),
/***/ "./components/radio/Radio.jsx":
/*!************************************!*\
!*** ./components/radio/Radio.jsx ***!
\************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _vc_checkbox__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vc-checkbox */ "./components/vc-checkbox/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
function noop() {}
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'ARadio',
model: {
prop: 'checked'
},
props: {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
defaultChecked: Boolean,
checked: { type: Boolean, 'default': undefined },
disabled: Boolean,
isGroup: Boolean,
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
name: String,
id: String,
autoFocus: Boolean,
type: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def('radio')
},
inject: {
radioGroupContext: { 'default': undefined },
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__["ConfigConsumerProps"];
} }
},
methods: {
focus: function focus() {
this.$refs.vcCheckbox.focus();
},
blur: function blur() {
this.$refs.vcCheckbox.blur();
},
handleChange: function handleChange(event) {
var targetChecked = event.target.checked;
this.$emit('input', targetChecked);
this.$emit('change', event);
},
onChange: function onChange(e) {
this.$emit('change', e);
if (this.radioGroupContext && this.radioGroupContext.onRadioChange) {
this.radioGroupContext.onRadioChange(e);
}
}
},
render: function render() {
var _classNames;
var h = arguments[0];
var $slots = this.$slots,
radioGroup = this.radioGroupContext;
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(this);
var children = $slots['default'];
var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this),
_getListeners$mouseen = _getListeners.mouseenter,
mouseenter = _getListeners$mouseen === undefined ? noop : _getListeners$mouseen,
_getListeners$mousele = _getListeners.mouseleave,
mouseleave = _getListeners$mousele === undefined ? noop : _getListeners$mousele,
restListeners = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3___default()(_getListeners, ['mouseenter', 'mouseleave']);
var customizePrefixCls = props.prefixCls,
restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3___default()(props, ['prefixCls']);
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('radio', customizePrefixCls);
var radioProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, restProps, { prefixCls: prefixCls }),
on: restListeners,
attrs: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getAttrs"])(this)
};
if (radioGroup) {
radioProps.props.name = radioGroup.name;
radioProps.on.change = this.onChange;
radioProps.props.checked = props.value === radioGroup.stateValue;
radioProps.props.disabled = props.disabled || radioGroup.disabled;
} else {
radioProps.on.change = this.handleChange;
}
var wrapperClassString = classnames__WEBPACK_IMPORTED_MODULE_6___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-wrapper', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-wrapper-checked', radioProps.props.checked), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-wrapper-disabled', radioProps.props.disabled), _classNames));
return h(
'label',
{ 'class': wrapperClassString, on: {
'mouseenter': mouseenter,
'mouseleave': mouseleave
}
},
[h(_vc_checkbox__WEBPACK_IMPORTED_MODULE_5__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([radioProps, { ref: 'vcCheckbox' }])), children !== undefined ? h('span', [children]) : null]
);
}
});
/***/ }),
/***/ "./components/radio/RadioButton.jsx":
/*!******************************************!*\
!*** ./components/radio/RadioButton.jsx ***!
\******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Radio__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Radio */ "./components/radio/Radio.jsx");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'ARadioButton',
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, _Radio__WEBPACK_IMPORTED_MODULE_2__["default"].props),
inject: {
radioGroupContext: { 'default': undefined },
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__["ConfigConsumerProps"];
} }
},
render: function render() {
var h = arguments[0];
var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getOptionProps"])(this),
customizePrefixCls = _getOptionProps.prefixCls,
otherProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(_getOptionProps, ['prefixCls']);
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('radio-button', customizePrefixCls);
var radioProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, otherProps, {
prefixCls: prefixCls
}),
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this)
};
if (this.radioGroupContext) {
radioProps.on.change = this.radioGroupContext.onRadioChange;
radioProps.props.checked = this.$props.value === this.radioGroupContext.stateValue;
radioProps.props.disabled = this.$props.disabled || this.radioGroupContext.disabled;
}
return h(
_Radio__WEBPACK_IMPORTED_MODULE_2__["default"],
radioProps,
[this.$slots['default']]
);
}
});
/***/ }),
/***/ "./components/radio/index.js":
/*!***********************************!*\
!*** ./components/radio/index.js ***!
\***********************************/
/*! exports provided: Button, Group, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Radio__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Radio */ "./components/radio/Radio.jsx");
/* harmony import */ var _Group__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Group */ "./components/radio/Group.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Group", function() { return _Group__WEBPACK_IMPORTED_MODULE_1__["default"]; });
/* harmony import */ var _RadioButton__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./RadioButton */ "./components/radio/RadioButton.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Button", function() { return _RadioButton__WEBPACK_IMPORTED_MODULE_2__["default"]; });
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
_Radio__WEBPACK_IMPORTED_MODULE_0__["default"].Group = _Group__WEBPACK_IMPORTED_MODULE_1__["default"];
_Radio__WEBPACK_IMPORTED_MODULE_0__["default"].Button = _RadioButton__WEBPACK_IMPORTED_MODULE_2__["default"];
/* istanbul ignore next */
_Radio__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_3__["default"]);
Vue.component(_Radio__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Radio__WEBPACK_IMPORTED_MODULE_0__["default"]);
Vue.component(_Radio__WEBPACK_IMPORTED_MODULE_0__["default"].Group.name, _Radio__WEBPACK_IMPORTED_MODULE_0__["default"].Group);
Vue.component(_Radio__WEBPACK_IMPORTED_MODULE_0__["default"].Button.name, _Radio__WEBPACK_IMPORTED_MODULE_0__["default"].Button);
};
/* harmony default export */ __webpack_exports__["default"] = (_Radio__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/radio/style/index.js":
/*!*****************************************!*\
!*** ./components/radio/style/index.js ***!
\*****************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/radio/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/***/ }),
/***/ "./components/radio/style/index.less":
/*!*******************************************!*\
!*** ./components/radio/style/index.less ***!
\*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/rate/index.jsx":
/*!***********************************!*\
!*** ./components/rate/index.jsx ***!
\***********************************/
/*! exports provided: RateProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RateProps", function() { return RateProps; });
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _vc_rate__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../vc-rate */ "./components/vc-rate/index.js");
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../tooltip */ "./components/tooltip/index.js");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
var RateProps = {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
count: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].value,
defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].value,
allowHalf: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
allowClear: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
tooltips: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string),
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
character: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool
};
var Rate = {
name: 'ARate',
model: {
prop: 'value',
event: 'change'
},
props: RateProps,
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__["ConfigConsumerProps"];
} }
},
methods: {
characterRender: function characterRender(node, _ref) {
var index = _ref.index;
var h = this.$createElement;
var tooltips = this.$props.tooltips;
if (!tooltips) return node;
return h(
_tooltip__WEBPACK_IMPORTED_MODULE_8__["default"],
{
attrs: { title: tooltips[index] }
},
[node]
);
},
focus: function focus() {
this.$refs.refRate.focus();
},
blur: function blur() {
this.$refs.refRate.blur();
}
},
render: function render() {
var h = arguments[0];
var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this),
customizePrefixCls = _getOptionProps.prefixCls,
restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_getOptionProps, ['prefixCls']);
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('rate', customizePrefixCls);
var character = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'character') || h(_icon__WEBPACK_IMPORTED_MODULE_7__["default"], {
attrs: { type: 'star', theme: 'filled' }
});
var rateProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
character: character,
characterRender: this.characterRender,
prefixCls: prefixCls
}, Object(omit_js__WEBPACK_IMPORTED_MODULE_2__["default"])(restProps, ['tooltips'])),
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this),
ref: 'refRate'
};
return h(_vc_rate__WEBPACK_IMPORTED_MODULE_6__["default"], rateProps);
}
};
/* istanbul ignore next */
Rate.install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_9__["default"]);
Vue.component(Rate.name, Rate);
};
/* harmony default export */ __webpack_exports__["default"] = (Rate);
/***/ }),
/***/ "./components/rate/style/index.js":
/*!****************************************!*\
!*** ./components/rate/style/index.js ***!
\****************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/rate/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _tooltip_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../tooltip/style */ "./components/tooltip/style/index.js");
// style dependencies
/***/ }),
/***/ "./components/rate/style/index.less":
/*!******************************************!*\
!*** ./components/rate/style/index.less ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/result/index.jsx":
/*!*************************************!*\
!*** ./components/result/index.jsx ***!
\*************************************/
/*! exports provided: IconMap, ExceptionMap, ResultProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IconMap", function() { return IconMap; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExceptionMap", function() { return ExceptionMap; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResultProps", function() { return ResultProps; });
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
/* harmony import */ var _noFound__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./noFound */ "./components/result/noFound.jsx");
/* harmony import */ var _serverError__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./serverError */ "./components/result/serverError.jsx");
/* harmony import */ var _unauthorized__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./unauthorized */ "./components/result/unauthorized.jsx");
var IconMap = {
success: 'check-circle',
error: 'close-circle',
info: 'exclamation-circle',
warning: 'warning'
};
var ExceptionMap = {
'404': _noFound__WEBPACK_IMPORTED_MODULE_5__["default"],
'500': _serverError__WEBPACK_IMPORTED_MODULE_6__["default"],
'403': _unauthorized__WEBPACK_IMPORTED_MODULE_7__["default"]
};
// ExceptionImageMap keys
var ExceptionStatus = Object.keys(ExceptionMap);
var ResultProps = {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
icon: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
status: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['success', 'error', 'info', 'warning', '404', '403', '500']).def('info'),
title: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
subTitle: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
extra: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any
};
var renderIcon = function renderIcon(h, prefixCls, _ref) {
var status = _ref.status,
icon = _ref.icon;
if (ExceptionStatus.includes('' + status)) {
var SVGComponent = ExceptionMap[status];
return h(
'div',
{ 'class': prefixCls + '-icon ' + prefixCls + '-image' },
[h(SVGComponent)]
);
}
// prop `icon` require slot or VNode
var iconString = IconMap[status];
var iconNode = icon || h(_icon__WEBPACK_IMPORTED_MODULE_3__["default"], {
attrs: { type: iconString, theme: 'filled' }
});
return h(
'div',
{ 'class': prefixCls + '-icon' },
[iconNode]
);
};
var renderExtra = function renderExtra(h, prefixCls, extra) {
return extra && h(
'div',
{ 'class': prefixCls + '-extra' },
[extra]
);
};
var Result = {
name: 'AResult',
props: ResultProps,
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_2__["ConfigConsumerProps"];
} }
},
render: function render(h) {
var customizePrefixCls = this.prefixCls,
status = this.status;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('result', customizePrefixCls);
var title = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getComponentFromProp"])(this, 'title');
var subTitle = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getComponentFromProp"])(this, 'subTitle');
var icon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getComponentFromProp"])(this, 'icon');
var extra = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getComponentFromProp"])(this, 'extra');
return h(
'div',
{ 'class': prefixCls + ' ' + prefixCls + '-' + status },
[renderIcon(h, prefixCls, { status: status, icon: icon }), h(
'div',
{ 'class': prefixCls + '-title' },
[title]
), subTitle && h(
'div',
{ 'class': prefixCls + '-subtitle' },
[subTitle]
), this.$slots['default'] && h(
'div',
{ 'class': prefixCls + '-content' },
[this.$slots['default']]
), renderExtra(h, prefixCls, extra)]
);
}
};
/* add resource */
Result.PRESENTED_IMAGE_403 = ExceptionMap[403];
Result.PRESENTED_IMAGE_404 = ExceptionMap[404];
Result.PRESENTED_IMAGE_500 = ExceptionMap[500];
/* istanbul ignore next */
Result.install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_4__["default"]);
Vue.component(Result.name, Result);
};
/* harmony default export */ __webpack_exports__["default"] = (Result);
/***/ }),
/***/ "./components/result/noFound.jsx":
/*!***************************************!*\
!*** ./components/result/noFound.jsx ***!
\***************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
var NoFound = {
functional: true,
render: function render() {
var h = arguments[0];
return h(
"svg",
{
attrs: { width: "252", height: "294" }
},
[h("defs", [h("path", {
attrs: { d: "M0 .387h251.772v251.772H0z" }
})]), h(
"g",
{
attrs: { fill: "none", fillRule: "evenodd" }
},
[h(
"g",
{
attrs: { transform: "translate(0 .012)" }
},
[h("mask", {
attrs: { fill: "#fff" }
}), h("path", {
attrs: {
d: "M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",
fill: "#E4EBF7",
mask: "url(#b)"
}
})]
), h("path", {
attrs: {
d: "M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",
fill: "#FFF"
}
}), h("path", {
attrs: {
d: "M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",
stroke: "#FFF",
strokeWidth: "2"
}
}), h("path", {
attrs: {
d: "M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",
fill: "#FFF"
}
}), h("path", {
attrs: {
d: "M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",
fill: "#FFF"
}
}), h("path", {
attrs: {
d: "M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",
stroke: "#FFF",
strokeWidth: "2"
}
}), h("path", {
attrs: {
d: "M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",
fill: "#FFF"
}
}), h("path", {
attrs: {
d: "M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",
stroke: "#FFF",
strokeWidth: "2"
}
}), h("path", {
attrs: {
stroke: "#FFF",
strokeWidth: "2",
d: "M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"
}
}), h("path", {
attrs: {
d: "M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",
fill: "#FFF"
}
}), h("path", {
attrs: {
d: "M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",
fill: "#1890FF"
}
}), h("path", {
attrs: {
d: "M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",
fill: "#FFF"
}
}), h("path", {
attrs: {
d: "M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",
fill: "#FFB594"
}
}), h("path", {
attrs: {
d: "M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",
fill: "#FFC6A0"
}
}), h("path", {
attrs: {
d: "M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",
fill: "#FFF"
}
}), h("path", {
attrs: {
d: "M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",
fill: "#CBD1D1"
}
}), h("path", {
attrs: {
d: "M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",
fill: "#2B0849"
}
}), h("path", {
attrs: {
d: "M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",
fill: "#A4AABA"
}
}), h("path", {
attrs: {
d: "M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",
fill: "#CBD1D1"
}
}), h("path", {
attrs: {
d: "M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",
fill: "#2B0849"
}
}), h("path", {
attrs: {
d: "M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",
fill: "#A4AABA"
}
}), h("path", {
attrs: {
d: "M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",
fill: "#7BB2F9"
}
}), h("path", {
attrs: {
d: "M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",
stroke: "#648BD8",
strokeWidth: "1.051",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M107.275 222.1s2.773-1.11 6.102-3.884",
stroke: "#648BD8",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",
stroke: "#648BD8",
strokeWidth: "1.051",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",
fill: "#192064"
}
}), h("path", {
attrs: {
d: "M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",
fill: "#FFF"
}
}), h("path", {
attrs: {
d: "M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",
fill: "#192064"
}
}), h("path", {
attrs: {
d: "M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",
stroke: "#648BD8",
strokeWidth: "1.051",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",
fill: "#FFC6A0"
}
}), h("path", {
attrs: {
d: "M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",
fill: "#FFC6A0"
}
}), h("path", {
attrs: {
d: "M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",
fill: "#520038"
}
}), h("path", {
attrs: {
d: "M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",
fill: "#552950"
}
}), h("path", {
attrs: {
stroke: "#DB836E",
strokeWidth: "1.118",
strokeLinecap: "round",
strokeLinejoin: "round",
d: "M110.13 74.84l-.896 1.61-.298 4.357h-2.228"
}
}), h("path", {
attrs: {
d: "M110.846 74.481s1.79-.716 2.506.537",
stroke: "#5C2552",
strokeWidth: "1.118",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",
stroke: "#DB836E",
strokeWidth: "1.118",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M103.287 72.93s1.83 1.113 4.137.954",
stroke: "#5C2552",
strokeWidth: "1.118",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",
stroke: "#DB836E",
strokeWidth: "1.118",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",
stroke: "#E4EBF7",
strokeWidth: "1.101",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M129.405 122.865s-5.272 7.403-9.422 10.768",
stroke: "#E4EBF7",
strokeWidth: "1.051",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M119.306 107.329s.452 4.366-2.127 32.062",
stroke: "#E4EBF7",
strokeWidth: "1.101",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",
fill: "#F2D7AD"
}
}), h("path", {
attrs: {
d: "M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",
fill: "#F4D19D"
}
}), h("path", {
attrs: {
d: "M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",
fill: "#F2D7AD"
}
}), h("path", {
attrs: { fill: "#CC9B6E", d: "M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z" }
}), h("path", {
attrs: {
d: "M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",
fill: "#F4D19D"
}
}), h("path", {
attrs: {
fill: "#CC9B6E",
d: "M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"
}
}), h("path", {
attrs: {
fill: "#CC9B6E",
d: "M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"
}
}), h("path", {
attrs: {
d: "M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",
fill: "#FFC6A0"
}
}), h("path", {
attrs: {
d: "M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",
stroke: "#DB836E",
strokeWidth: "1.051",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",
stroke: "#DB836E",
strokeWidth: "1.051",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",
stroke: "#DB836E",
strokeWidth: "1.051",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",
fill: "#5BA02E"
}
}), h("path", {
attrs: {
d: "M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",
fill: "#92C110"
}
}), h("path", {
attrs: {
d: "M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",
fill: "#F2D7AD"
}
}), h("path", {
attrs: {
d: "M88.979 89.48s7.776 5.384 16.6 2.842",
stroke: "#E4EBF7",
strokeWidth: "1.101",
strokeLinecap: "round",
strokeLinejoin: "round"
}
})]
)]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (NoFound);
/***/ }),
/***/ "./components/result/serverError.jsx":
/*!*******************************************!*\
!*** ./components/result/serverError.jsx ***!
\*******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
var ServerError = {
functional: true,
render: function render() {
var h = arguments[0];
return h(
"svg",
{
attrs: { width: "254", height: "294" }
},
[h("defs", [h("path", {
attrs: { d: "M0 .335h253.49v253.49H0z" }
}), h("path", {
attrs: { d: "M0 293.665h253.49V.401H0z" }
})]), h(
"g",
{
attrs: { fill: "none", fillRule: "evenodd" }
},
[h(
"g",
{
attrs: { transform: "translate(0 .067)" }
},
[h("mask", {
attrs: { fill: "#fff" }
}), h("path", {
attrs: {
d: "M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",
fill: "#E4EBF7",
mask: "url(#b)"
}
})]
), h("path", {
attrs: {
d: "M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",
fill: "#FFF"
}
}), h("path", {
attrs: {
d: "M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",
stroke: "#FFF",
strokeWidth: "2"
}
}), h("path", {
attrs: {
d: "M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",
fill: "#FFF"
}
}), h("path", {
attrs: {
d: "M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",
fill: "#FFF"
}
}), h("path", {
attrs: {
d: "M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",
fill: "#FF603B"
}
}), h("path", {
attrs: {
d: "M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",
fill: "#FFF"
}
}), h("path", {
attrs: {
d: "M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",
fill: "#FFB594"
}
}), h("path", {
attrs: {
d: "M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",
fill: "#FFF"
}
}), h("path", {
attrs: {
d: "M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",
fill: "#FFB594"
}
}), h("path", {
attrs: {
d: "M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",
fill: "#FFC6A0"
}
}), h("path", {
attrs: {
d: "M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",
fill: "#520038"
}
}), h("path", {
attrs: {
d: "M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",
fill: "#552950"
}
}), h("path", {
attrs: {
stroke: "#DB836E",
strokeWidth: "1.063",
strokeLinecap: "round",
strokeLinejoin: "round",
d: "M99.206 73.644l-.9 1.62-.3 4.38h-2.24"
}
}), h("path", {
attrs: {
d: "M99.926 73.284s1.8-.72 2.52.54",
stroke: "#5C2552",
strokeWidth: "1.117",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",
stroke: "#DB836E",
strokeWidth: "1.117",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M92.326 71.724s1.84 1.12 4.16.96",
stroke: "#5C2552",
strokeWidth: "1.117",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",
stroke: "#DB836E",
strokeWidth: "1.063",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",
stroke: "#E4EBF7",
strokeWidth: "1.136",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",
fill: "#FFF"
}
}), h("path", {
attrs: {
d: "M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",
fill: "#FFC6A0"
}
}), h("path", {
attrs: {
d: "M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",
fill: "#FFC6A0"
}
}), h("path", {
attrs: {
d: "M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",
stroke: "#E4EBF7",
strokeWidth: "1.085",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",
fill: "#FFC6A0"
}
}), h("path", {
attrs: {
d: "M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",
fill: "#FFF"
}
}), h("path", {
attrs: {
d: "M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",
fill: "#CBD1D1"
}
}), h("path", {
attrs: {
d: "M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",
fill: "#2B0849"
}
}), h("path", {
attrs: {
d: "M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",
fill: "#A4AABA"
}
}), h("path", {
attrs: {
d: "M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",
fill: "#CBD1D1"
}
}), h("path", {
attrs: {
d: "M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",
fill: "#2B0849"
}
}), h("path", {
attrs: {
d: "M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",
fill: "#A4AABA"
}
}), h("path", {
attrs: {
d: "M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",
fill: "#7BB2F9"
}
}), h("path", {
attrs: {
d: "M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",
stroke: "#648BD8",
strokeWidth: "1.085",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M96.973 219.373s2.882-1.153 6.34-4.034",
stroke: "#648BD8",
strokeWidth: "1.032",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",
stroke: "#648BD8",
strokeWidth: "1.085",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",
fill: "#192064"
}
}), h("path", {
attrs: {
d: "M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",
fill: "#FFF"
}
}), h("path", {
attrs: {
d: "M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",
fill: "#192064"
}
}), h("path", {
attrs: {
d: "M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",
stroke: "#648BD8",
strokeWidth: "1.085",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",
stroke: "#E4EBF7",
strokeWidth: "1.085",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",
fill: "#FFC6A0"
}
}), h("path", {
attrs: {
d: "M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",
stroke: "#DB836E",
strokeWidth: ".774",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",
stroke: "#E59788",
strokeWidth: ".774",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",
fill: "#FFC6A0"
}
}), h("path", {
attrs: {
d: "M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",
stroke: "#E59788",
strokeWidth: ".774",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M109.278 112.533s3.38-3.613 7.575-4.662",
stroke: "#E4EBF7",
strokeWidth: "1.085",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M107.375 123.006s9.697-2.745 11.445-.88",
stroke: "#E59788",
strokeWidth: ".774",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",
stroke: "#BFCDDD",
strokeWidth: "2",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",
fill: "#A3B4C6"
}
}), h("path", {
attrs: {
d: "M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",
fill: "#A3B4C6"
}
}), h("mask", {
attrs: { fill: "#fff" }
}), h("path", {
attrs: { fill: "#A3B4C6", mask: "url(#d)", d: "M154.098 190.096h70.513v-84.617h-70.513z" }
}), h("path", {
attrs: {
d: "M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",
fill: "#BFCDDD",
mask: "url(#d)"
}
}), h("path", {
attrs: {
d: "M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",
fill: "#FFF",
mask: "url(#d)"
}
}), h("path", {
attrs: {
d: "M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",
fill: "#BFCDDD",
mask: "url(#d)"
}
}), h("path", {
attrs: {
d: "M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",
stroke: "#7C90A5",
strokeWidth: "1.124",
strokeLinecap: "round",
strokeLinejoin: "round",
mask: "url(#d)"
}
}), h("path", {
attrs: {
d: "M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",
fill: "#FFF",
mask: "url(#d)"
}
}), h("path", {
attrs: {
d: "M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",
fill: "#BFCDDD",
mask: "url(#d)"
}
}), h("path", {
attrs: {
d: "M177.259 207.217v11.52M201.05 207.217v11.52",
stroke: "#A3B4C6",
strokeWidth: "1.124",
strokeLinecap: "round",
strokeLinejoin: "round",
mask: "url(#d)"
}
}), h("path", {
attrs: {
d: "M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",
fill: "#5BA02E",
mask: "url(#d)"
}
}), h("path", {
attrs: {
d: "M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",
fill: "#92C110",
mask: "url(#d)"
}
}), h("path", {
attrs: {
d: "M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",
fill: "#F2D7AD",
mask: "url(#d)"
}
})]
)]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (ServerError);
/***/ }),
/***/ "./components/result/style/index.js":
/*!******************************************!*\
!*** ./components/result/style/index.js ***!
\******************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/result/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/***/ }),
/***/ "./components/result/style/index.less":
/*!********************************************!*\
!*** ./components/result/style/index.less ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/result/unauthorized.jsx":
/*!********************************************!*\
!*** ./components/result/unauthorized.jsx ***!
\********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
var Unauthorized = {
functional: true,
render: function render() {
var h = arguments[0];
return h(
"svg",
{
attrs: { width: "251", height: "294" }
},
[h(
"g",
{
attrs: { fill: "none", fillRule: "evenodd" }
},
[h("path", {
attrs: {
d: "M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",
fill: "#E4EBF7"
}
}), h("path", {
attrs: {
d: "M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",
fill: "#FFF"
}
}), h("path", {
attrs: {
d: "M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",
stroke: "#FFF",
strokeWidth: "2"
}
}), h("path", {
attrs: {
d: "M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",
fill: "#FFF"
}
}), h("path", {
attrs: {
d: "M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",
fill: "#FFF"
}
}), h("path", {
attrs: {
d: "M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",
stroke: "#FFF",
strokeWidth: "2"
}
}), h("path", {
attrs: {
d: "M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",
fill: "#FFF"
}
}), h("path", {
attrs: {
d: "M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",
stroke: "#FFF",
strokeWidth: "2"
}
}), h("path", {
attrs: {
stroke: "#FFF",
strokeWidth: "2",
d: "M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"
}
}), h("path", {
attrs: {
d: "M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",
fill: "#A26EF4"
}
}), h("path", {
attrs: {
d: "M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",
fill: "#FFF"
}
}), h("path", {
attrs: {
d: "M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",
fill: "#FFF"
}
}), h("path", {
attrs: {
d: "M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",
fill: "#5BA02E"
}
}), h("path", {
attrs: {
d: "M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",
fill: "#92C110"
}
}), h("path", {
attrs: {
d: "M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",
fill: "#F2D7AD"
}
}), h("path", {
attrs: {
d: "M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",
fill: "#FFF"
}
}), h("path", {
attrs: {
d: "M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",
fill: "#FFC6A0"
}
}), h("path", {
attrs: {
d: "M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",
fill: "#FFB594"
}
}), h("path", {
attrs: {
d: "M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",
fill: "#FFC6A0"
}
}), h("path", {
attrs: {
d: "M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",
fill: "#FFF"
}
}), h("path", {
attrs: {
d: "M78.18 94.656s.911 7.41-4.914 13.078",
stroke: "#E4EBF7",
strokeWidth: "1.051",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",
stroke: "#E4EBF7",
strokeWidth: ".932",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",
fill: "#FFC6A0"
}
}), h("path", {
attrs: {
d: "M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",
fill: "#FFB594"
}
}), h("path", {
attrs: {
d: "M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",
fill: "#5C2552"
}
}), h("path", {
attrs: {
d: "M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",
fill: "#FFC6A0"
}
}), h("path", {
attrs: {
stroke: "#DB836E",
strokeWidth: "1.145",
strokeLinecap: "round",
strokeLinejoin: "round",
d: "M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"
}
}), h("path", {
attrs: {
d: "M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",
fill: "#552950"
}
}), h("path", {
attrs: {
d: "M91.132 86.786s5.269 4.957 12.679 2.327",
stroke: "#DB836E",
strokeWidth: "1.145",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",
fill: "#DB836E"
}
}), h("path", {
attrs: {
d: "M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",
stroke: "#5C2552",
strokeWidth: "1.526",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",
stroke: "#DB836E",
strokeWidth: "1.145",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",
stroke: "#E4EBF7",
strokeWidth: "1.051",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M66.508 86.763s-1.598 8.83-6.697 14.078",
stroke: "#E4EBF7",
strokeWidth: "1.114",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M128.31 87.934s3.013 4.121 4.06 11.785",
stroke: "#E4EBF7",
strokeWidth: "1.051",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M64.09 84.816s-6.03 9.912-13.607 9.903",
stroke: "#DB836E",
strokeWidth: ".795",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",
fill: "#FFC6A0"
}
}), h("path", {
attrs: {
d: "M130.532 85.488s4.588 5.757 11.619 6.214",
stroke: "#DB836E",
strokeWidth: ".75",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M121.708 105.73s-.393 8.564-1.34 13.612",
stroke: "#E4EBF7",
strokeWidth: "1.051",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M115.784 161.512s-3.57-1.488-2.678-7.14",
stroke: "#648BD8",
strokeWidth: "1.051",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",
fill: "#CBD1D1"
}
}), h("path", {
attrs: {
d: "M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",
fill: "#2B0849"
}
}), h("path", {
attrs: {
d: "M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",
fill: "#A4AABA"
}
}), h("path", {
attrs: {
d: "M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",
fill: "#CBD1D1"
}
}), h("path", {
attrs: {
d: "M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",
fill: "#2B0849"
}
}), h("path", {
attrs: {
d: "M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",
fill: "#A4AABA"
}
}), h("path", {
attrs: {
d: "M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",
fill: "#7BB2F9"
}
}), h("path", {
attrs: {
d: "M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",
stroke: "#648BD8",
strokeWidth: "1.051",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M108.459 220.905s2.759-1.104 6.07-3.863",
stroke: "#648BD8",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",
stroke: "#648BD8",
strokeWidth: "1.051",
strokeLinecap: "round",
strokeLinejoin: "round"
}
}), h("path", {
attrs: {
d: "M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",
fill: "#192064"
}
}), h("path", {
attrs: {
d: "M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",
fill: "#FFF"
}
}), h("path", {
attrs: {
d: "M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",
fill: "#192064"
}
}), h("path", {
attrs: {
d: "M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",
stroke: "#648BD8",
strokeWidth: "1.051",
strokeLinecap: "round",
strokeLinejoin: "round"
}
})]
)]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (Unauthorized);
/***/ }),
/***/ "./components/row/index.js":
/*!*********************************!*\
!*** ./components/row/index.js ***!
\*********************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _grid__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../grid */ "./components/grid/index.js");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
/* istanbul ignore next */
_grid__WEBPACK_IMPORTED_MODULE_0__["Row"].install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_1__["default"]);
Vue.component(_grid__WEBPACK_IMPORTED_MODULE_0__["Row"].name, _grid__WEBPACK_IMPORTED_MODULE_0__["Row"]);
};
/* harmony default export */ __webpack_exports__["default"] = (_grid__WEBPACK_IMPORTED_MODULE_0__["Row"]);
/***/ }),
/***/ "./components/row/style/index.js":
/*!***************************************!*\
!*** ./components/row/style/index.js ***!
\***************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _grid_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../grid/style */ "./components/grid/style/index.js");
// style dependencies
// deps-lint-skip: grid
/***/ }),
/***/ "./components/select/index.jsx":
/*!*************************************!*\
!*** ./components/select/index.jsx ***!
\*************************************/
/*! exports provided: AbstractSelectProps, SelectValue, SelectProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AbstractSelectProps", function() { return AbstractSelectProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SelectValue", function() { return SelectValue; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SelectProps", function() { return SelectProps; });
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
/* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _vc_select__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../vc-select */ "./components/vc-select/index.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
var AbstractSelectProps = function AbstractSelectProps() {
return {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
size: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['small', 'large', 'default']),
showAction: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].arrayOf(String)]),
notFoundContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
choiceTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
showSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
allowClear: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number,
placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
defaultActiveFirstOption: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
dropdownClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
dropdownStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
dropdownMenuStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
dropdownMatchSelectWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
// onSearch: (value: string) => any,
filterOption: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func]),
autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
backfill: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
showArrow: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
open: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
defaultOpen: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
autoClearSearchValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
dropdownRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
loading: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool
};
};
var Value = _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].shape({
key: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number])
}).loose;
var SelectValue = _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([Value, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number])), Value]);
var SelectProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, AbstractSelectProps(), {
value: SelectValue,
defaultValue: SelectValue,
// mode: PropTypes.oneOf(['default', 'multiple', 'tags', 'combobox']),
mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
optionLabelProp: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
firstActiveValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([String, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].arrayOf(String)]),
maxTagCount: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number,
maxTagPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
maxTagTextLength: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number,
dropdownMatchSelectWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
optionFilterProp: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
labelInValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].boolean,
getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
tokenSeparators: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string),
getInputElement: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
options: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
suffixIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
removeIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
clearIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
menuItemSelectedIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any
});
var SelectPropTypes = {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
size: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['default', 'large', 'small']),
// combobox: PropTypes.bool,
notFoundContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
showSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
optionLabelProp: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
choiceTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string
};
var SECRET_COMBOBOX_MODE_DO_NOT_USE = 'SECRET_COMBOBOX_MODE_DO_NOT_USE';
var Select = {
SECRET_COMBOBOX_MODE_DO_NOT_USE: SECRET_COMBOBOX_MODE_DO_NOT_USE,
Option: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, _vc_select__WEBPACK_IMPORTED_MODULE_7__["Option"], { name: 'ASelectOption' }),
OptGroup: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, _vc_select__WEBPACK_IMPORTED_MODULE_7__["OptGroup"], { name: 'ASelectOptGroup' }),
name: 'ASelect',
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, SelectProps, {
showSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool.def(false),
transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string.def('slide-up'),
choiceTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string.def('zoom')
}),
propTypes: SelectPropTypes,
model: {
prop: 'value',
event: 'change'
},
provide: function provide() {
return {
savePopupRef: this.savePopupRef
};
},
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__["ConfigConsumerProps"];
} }
},
created: function created() {
Object(_util_warning__WEBPACK_IMPORTED_MODULE_4__["default"])(this.$props.mode !== 'combobox', 'Select', 'The combobox mode of Select is deprecated,' + 'it will be removed in next major version,' + 'please use AutoComplete instead');
},
methods: {
getNotFoundContent: function getNotFoundContent(renderEmpty) {
var h = this.$createElement;
var notFoundContent = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(this, 'notFoundContent');
if (notFoundContent !== undefined) {
return notFoundContent;
}
if (this.isCombobox()) {
return null;
}
return renderEmpty(h, 'Select');
},
savePopupRef: function savePopupRef(ref) {
this.popupRef = ref;
},
focus: function focus() {
this.$refs.vcSelect.focus();
},
blur: function blur() {
this.$refs.vcSelect.blur();
},
isCombobox: function isCombobox() {
var mode = this.mode;
return mode === 'combobox' || mode === SECRET_COMBOBOX_MODE_DO_NOT_USE;
},
renderSuffixIcon: function renderSuffixIcon(prefixCls) {
var h = this.$createElement;
var loading = this.$props.loading;
var suffixIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(this, 'suffixIcon');
suffixIcon = Array.isArray(suffixIcon) ? suffixIcon[0] : suffixIcon;
if (suffixIcon) {
return Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["isValidElement"])(suffixIcon) ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_11__["cloneElement"])(suffixIcon, { 'class': prefixCls + '-arrow-icon' }) : suffixIcon;
}
if (loading) {
return h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
attrs: { type: 'loading' }
});
}
return h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
attrs: { type: 'down' },
'class': prefixCls + '-arrow-icon' });
}
},
render: function render() {
var _cls;
var h = arguments[0];
var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getOptionProps"])(this),
customizePrefixCls = _getOptionProps.prefixCls,
size = _getOptionProps.size,
mode = _getOptionProps.mode,
options = _getOptionProps.options,
getPopupContainer = _getOptionProps.getPopupContainer,
showArrow = _getOptionProps.showArrow,
restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(_getOptionProps, ['prefixCls', 'size', 'mode', 'options', 'getPopupContainer', 'showArrow']);
var getPrefixCls = this.configProvider.getPrefixCls;
var renderEmpty = this.configProvider.renderEmpty;
var prefixCls = getPrefixCls('select', customizePrefixCls);
var getContextPopupContainer = this.configProvider.getPopupContainer;
var removeIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(this, 'removeIcon');
removeIcon = Array.isArray(removeIcon) ? removeIcon[0] : removeIcon;
var clearIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(this, 'clearIcon');
clearIcon = Array.isArray(clearIcon) ? clearIcon[0] : clearIcon;
var menuItemSelectedIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(this, 'menuItemSelectedIcon');
menuItemSelectedIcon = Array.isArray(menuItemSelectedIcon) ? menuItemSelectedIcon[0] : menuItemSelectedIcon;
var rest = Object(omit_js__WEBPACK_IMPORTED_MODULE_5__["default"])(restProps, ['inputIcon', 'removeIcon', 'clearIcon', 'suffixIcon', 'menuItemSelectedIcon']);
var cls = (_cls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-lg', size === 'large'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-sm', size === 'small'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-show-arrow', showArrow), _cls);
var optionLabelProp = this.$props.optionLabelProp;
if (this.isCombobox()) {
// children 带 dom 结构时,无法填入输入框
optionLabelProp = optionLabelProp || 'value';
}
var modeConfig = {
multiple: mode === 'multiple',
tags: mode === 'tags',
combobox: this.isCombobox()
};
var finalRemoveIcon = removeIcon && (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["isValidElement"])(removeIcon) ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_11__["cloneElement"])(removeIcon, { 'class': prefixCls + '-remove-icon' }) : removeIcon) || h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
attrs: { type: 'close' },
'class': prefixCls + '-remove-icon' });
var finalClearIcon = clearIcon && (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["isValidElement"])(clearIcon) ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_11__["cloneElement"])(clearIcon, { 'class': prefixCls + '-clear-icon' }) : clearIcon) || h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
attrs: { type: 'close-circle', theme: 'filled' },
'class': prefixCls + '-clear-icon' });
var finalMenuItemSelectedIcon = menuItemSelectedIcon && (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["isValidElement"])(menuItemSelectedIcon) ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_11__["cloneElement"])(menuItemSelectedIcon, { 'class': prefixCls + '-selected-icon' }) : menuItemSelectedIcon) || h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
attrs: { type: 'check' },
'class': prefixCls + '-selected-icon' });
var selectProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({
inputIcon: this.renderSuffixIcon(prefixCls),
removeIcon: finalRemoveIcon,
clearIcon: finalClearIcon,
menuItemSelectedIcon: finalMenuItemSelectedIcon,
showArrow: showArrow
}, rest, modeConfig, {
prefixCls: prefixCls,
optionLabelProp: optionLabelProp || 'children',
notFoundContent: this.getNotFoundContent(renderEmpty),
maxTagPlaceholder: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(this, 'maxTagPlaceholder'),
placeholder: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(this, 'placeholder'),
children: options ? options.map(function (option) {
var key = option.key,
_option$label = option.label,
label = _option$label === undefined ? option.title : _option$label,
on = option.on,
cls = option['class'],
style = option.style,
restOption = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(option, ['key', 'label', 'on', 'class', 'style']);
return h(
_vc_select__WEBPACK_IMPORTED_MODULE_7__["Option"],
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ key: key }, { props: restOption, on: on, 'class': cls, style: style }]),
[label]
);
}) : Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["filterEmpty"])(this.$slots['default']),
__propsSymbol__: Symbol(),
dropdownRender: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(this, 'dropdownRender', {}, false),
getPopupContainer: getPopupContainer || getContextPopupContainer
}),
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getListeners"])(this),
'class': cls,
ref: 'vcSelect'
};
return h(_vc_select__WEBPACK_IMPORTED_MODULE_7__["Select"], selectProps);
}
};
/* istanbul ignore next */
Select.install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_12__["default"]);
Vue.component(Select.name, Select);
Vue.component(Select.Option.name, Select.Option);
Vue.component(Select.OptGroup.name, Select.OptGroup);
};
/* harmony default export */ __webpack_exports__["default"] = (Select);
/***/ }),
/***/ "./components/select/style/index.js":
/*!******************************************!*\
!*** ./components/select/style/index.js ***!
\******************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/select/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _empty_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../empty/style */ "./components/empty/style/index.js");
// style dependencies
/***/ }),
/***/ "./components/select/style/index.less":
/*!********************************************!*\
!*** ./components/select/style/index.less ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/skeleton/Avatar.jsx":
/*!****************************************!*\
!*** ./components/skeleton/Avatar.jsx ***!
\****************************************/
/*! exports provided: SkeletonAvatarProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SkeletonAvatarProps", function() { return SkeletonAvatarProps; });
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* 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 _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
var skeletonAvatarProps = {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
size: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['large', 'small', 'default']), _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number]),
shape: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['circle', 'square'])
};
var SkeletonAvatarProps = _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].shape(skeletonAvatarProps).loose;
var Avatar = {
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["initDefaultProps"])(skeletonAvatarProps, {
size: 'large'
}),
render: function render() {
var _classNames, _classNames2;
var h = arguments[0];
var _$props = this.$props,
prefixCls = _$props.prefixCls,
size = _$props.size,
shape = _$props.shape;
var sizeCls = classnames__WEBPACK_IMPORTED_MODULE_1___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-lg', size === 'large'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-sm', size === 'small'), _classNames));
var shapeCls = classnames__WEBPACK_IMPORTED_MODULE_1___default()((_classNames2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, prefixCls + '-circle', shape === 'circle'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, prefixCls + '-square', shape === 'square'), _classNames2));
var sizeStyle = typeof size === 'number' ? {
width: size + 'px',
height: size + 'px',
lineHeight: size + 'px'
} : {};
return h('span', { 'class': classnames__WEBPACK_IMPORTED_MODULE_1___default()(prefixCls, sizeCls, shapeCls), style: sizeStyle });
}
};
/* harmony default export */ __webpack_exports__["default"] = (Avatar);
/***/ }),
/***/ "./components/skeleton/Paragraph.jsx":
/*!*******************************************!*\
!*** ./components/skeleton/Paragraph.jsx ***!
\*******************************************/
/*! exports provided: SkeletonParagraphProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SkeletonParagraphProps", function() { return SkeletonParagraphProps; });
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
var widthUnit = _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string]);
var skeletonParagraphProps = {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
width: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([widthUnit, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(widthUnit)]),
rows: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number
};
var SkeletonParagraphProps = _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].shape(skeletonParagraphProps);
var Paragraph = {
props: skeletonParagraphProps,
methods: {
getWidth: function getWidth(index) {
var width = this.width,
_rows = this.rows,
rows = _rows === undefined ? 2 : _rows;
if (Array.isArray(width)) {
return width[index];
}
// last paragraph
if (rows - 1 === index) {
return width;
}
return undefined;
}
},
render: function render() {
var _this = this;
var h = arguments[0];
var _$props = this.$props,
prefixCls = _$props.prefixCls,
rows = _$props.rows;
var rowList = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(Array(rows))).map(function (_, index) {
var width = _this.getWidth(index);
return h('li', { key: index, style: { width: typeof width === 'number' ? width + 'px' : width } });
});
return h(
'ul',
{ 'class': prefixCls },
[rowList]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (Paragraph);
/***/ }),
/***/ "./components/skeleton/Title.jsx":
/*!***************************************!*\
!*** ./components/skeleton/Title.jsx ***!
\***************************************/
/*! exports provided: SkeletonTitleProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SkeletonTitleProps", function() { return SkeletonTitleProps; });
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
var skeletonTitleProps = {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
width: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string])
};
var SkeletonTitleProps = _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].shape(skeletonTitleProps);
var Title = {
props: skeletonTitleProps,
render: function render() {
var h = arguments[0];
var _$props = this.$props,
prefixCls = _$props.prefixCls,
width = _$props.width;
var zWidth = typeof width === 'number' ? width + 'px' : width;
return h('h3', { 'class': prefixCls, style: { width: zWidth } });
}
};
/* harmony default export */ __webpack_exports__["default"] = (Title);
/***/ }),
/***/ "./components/skeleton/index.jsx":
/*!***************************************!*\
!*** ./components/skeleton/index.jsx ***!
\***************************************/
/*! exports provided: SkeletonProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SkeletonProps", function() { return SkeletonProps; });
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _Avatar__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Avatar */ "./components/skeleton/Avatar.jsx");
/* harmony import */ var _Title__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Title */ "./components/skeleton/Title.jsx");
/* harmony import */ var _Paragraph__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Paragraph */ "./components/skeleton/Paragraph.jsx");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
var SkeletonProps = {
active: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
loading: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
children: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
avatar: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _Avatar__WEBPACK_IMPORTED_MODULE_7__["SkeletonAvatarProps"], _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool]),
title: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _Title__WEBPACK_IMPORTED_MODULE_8__["SkeletonTitleProps"]]),
paragraph: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _Paragraph__WEBPACK_IMPORTED_MODULE_9__["SkeletonParagraphProps"]])
};
function getComponentProps(prop) {
if (prop && (typeof prop === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2___default()(prop)) === 'object') {
return prop;
}
return {};
}
function getAvatarBasicProps(hasTitle, hasParagraph) {
if (hasTitle && !hasParagraph) {
return { shape: 'square' };
}
return { shape: 'circle' };
}
function getTitleBasicProps(hasAvatar, hasParagraph) {
if (!hasAvatar && hasParagraph) {
return { width: '38%' };
}
if (hasAvatar && hasParagraph) {
return { width: '50%' };
}
return {};
}
function getParagraphBasicProps(hasAvatar, hasTitle) {
var basicProps = {};
// Width
if (!hasAvatar || !hasTitle) {
basicProps.width = '61%';
}
// Rows
if (!hasAvatar && hasTitle) {
basicProps.rows = 3;
} else {
basicProps.rows = 2;
}
return basicProps;
}
var Skeleton = {
name: 'ASkeleton',
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["initDefaultProps"])(SkeletonProps, {
avatar: false,
title: true,
paragraph: true
}),
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__["ConfigConsumerProps"];
} }
},
render: function render() {
var h = arguments[0];
var _$props = this.$props,
customizePrefixCls = _$props.prefixCls,
loading = _$props.loading,
avatar = _$props.avatar,
title = _$props.title,
paragraph = _$props.paragraph,
active = _$props.active;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('skeleton', customizePrefixCls);
if (loading || !Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'loading')) {
var _classNames;
var hasAvatar = !!avatar || avatar === '';
var hasTitle = !!title;
var hasParagraph = !!paragraph;
// Avatar
var avatarNode = void 0;
if (hasAvatar) {
var avatarProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
prefixCls: prefixCls + '-avatar'
}, getAvatarBasicProps(hasTitle, hasParagraph), getComponentProps(avatar))
};
avatarNode = h(
'div',
{ 'class': prefixCls + '-header' },
[h(_Avatar__WEBPACK_IMPORTED_MODULE_7__["default"], avatarProps)]
);
}
var contentNode = void 0;
if (hasTitle || hasParagraph) {
// Title
var $title = void 0;
if (hasTitle) {
var titleProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
prefixCls: prefixCls + '-title'
}, getTitleBasicProps(hasAvatar, hasParagraph), getComponentProps(title))
};
$title = h(_Title__WEBPACK_IMPORTED_MODULE_8__["default"], titleProps);
}
// Paragraph
var paragraphNode = void 0;
if (hasParagraph) {
var paragraphProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
prefixCls: prefixCls + '-paragraph'
}, getParagraphBasicProps(hasAvatar, hasTitle), getComponentProps(paragraph))
};
paragraphNode = h(_Paragraph__WEBPACK_IMPORTED_MODULE_9__["default"], paragraphProps);
}
contentNode = h(
'div',
{ 'class': prefixCls + '-content' },
[$title, paragraphNode]
);
}
var cls = classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-with-avatar', hasAvatar), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-active', active), _classNames));
return h(
'div',
{ 'class': cls },
[avatarNode, contentNode]
);
}
var children = this.$slots['default'];
return children && children.length === 1 ? children[0] : h('span', [children]);
}
};
/* istanbul ignore next */
Skeleton.install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_10__["default"]);
Vue.component(Skeleton.name, Skeleton);
};
/* harmony default export */ __webpack_exports__["default"] = (Skeleton);
/***/ }),
/***/ "./components/skeleton/style/index.js":
/*!********************************************!*\
!*** ./components/skeleton/style/index.js ***!
\********************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/skeleton/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/***/ }),
/***/ "./components/skeleton/style/index.less":
/*!**********************************************!*\
!*** ./components/skeleton/style/index.less ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/slider/index.jsx":
/*!*************************************!*\
!*** ./components/slider/index.jsx ***!
\*************************************/
/*! exports provided: SliderProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SliderProps", function() { return SliderProps; });
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _vc_slider_src_Slider__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../vc-slider/src/Slider */ "./components/vc-slider/src/Slider.jsx");
/* harmony import */ var _vc_slider_src_Range__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../vc-slider/src/Range */ "./components/vc-slider/src/Range.jsx");
/* harmony import */ var _vc_slider_src_Handle__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../vc-slider/src/Handle */ "./components/vc-slider/src/Handle.jsx");
/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../tooltip */ "./components/tooltip/index.js");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _tooltip_abstractTooltipProps__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../tooltip/abstractTooltipProps */ "./components/tooltip/abstractTooltipProps.js");
// export interface SliderMarks {
// [key]: React.ReactNode | {
// style: React.CSSProperties,
// label: React.ReactNode,
// };
// }
// const SliderMarks = PropTypes.shape({
// style: PropTypes.object,
// label: PropTypes.any,
// }).loose
var tooltipProps = Object(_tooltip_abstractTooltipProps__WEBPACK_IMPORTED_MODULE_12__["default"])();
var SliderProps = function SliderProps() {
return {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
tooltipPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
range: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
reverse: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
min: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
max: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
step: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any]),
marks: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
dots: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number)]),
defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number)]),
included: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
vertical: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
tipFormatter: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object]),
tooltipVisible: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
tooltipPlacement: tooltipProps.placement,
getTooltipPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func
};
};
var Slider = {
name: 'ASlider',
model: {
prop: 'value',
event: 'change'
},
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_11__["ConfigConsumerProps"];
} }
},
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, SliderProps(), {
tipFormatter: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object]).def(function (value) {
return value.toString();
})
}),
data: function data() {
return {
visibles: {}
};
},
methods: {
toggleTooltipVisible: function toggleTooltipVisible(index, visible) {
this.setState(function (_ref) {
var visibles = _ref.visibles;
return {
visibles: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, visibles, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, index, visible))
};
});
},
handleWithTooltip: function handleWithTooltip(tooltipPrefixCls, prefixCls, _ref2) {
var _this = this;
var value = _ref2.value,
dragging = _ref2.dragging,
index = _ref2.index,
directives = _ref2.directives,
on = _ref2.on,
restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(_ref2, ['value', 'dragging', 'index', 'directives', 'on']);
var h = this.$createElement;
var _$props = this.$props,
tipFormatter = _$props.tipFormatter,
tooltipVisible = _$props.tooltipVisible,
tooltipPlacement = _$props.tooltipPlacement,
getTooltipPopupContainer = _$props.getTooltipPopupContainer;
var visibles = this.visibles;
var isTipFormatter = tipFormatter ? visibles[index] || dragging : false;
var visible = tooltipVisible || tooltipVisible === undefined && isTipFormatter;
var tooltipProps = {
props: {
prefixCls: tooltipPrefixCls,
title: tipFormatter ? tipFormatter(value) : '',
visible: visible,
placement: tooltipPlacement || 'top',
transitionName: 'zoom-down',
overlayClassName: prefixCls + '-tooltip',
getPopupContainer: getTooltipPopupContainer || function () {
return document.body;
}
},
key: index
};
var handleProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
value: value
}, restProps),
directives: directives,
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, on, {
mouseenter: function mouseenter() {
return _this.toggleTooltipVisible(index, true);
},
mouseleave: function mouseleave() {
return _this.toggleTooltipVisible(index, false);
}
})
};
return h(
_tooltip__WEBPACK_IMPORTED_MODULE_9__["default"],
tooltipProps,
[h(_vc_slider_src_Handle__WEBPACK_IMPORTED_MODULE_8__["default"], handleProps)]
);
},
focus: function focus() {
this.$refs.sliderRef.focus();
},
blur: function blur() {
this.$refs.sliderRef.blur();
}
},
render: function render() {
var _this2 = this;
var h = arguments[0];
var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this),
range = _getOptionProps.range,
customizePrefixCls = _getOptionProps.prefixCls,
customizeTooltipPrefixCls = _getOptionProps.tooltipPrefixCls,
restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(_getOptionProps, ['range', 'prefixCls', 'tooltipPrefixCls']);
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('slider', customizePrefixCls);
var tooltipPrefixCls = getPrefixCls('tooltip', customizeTooltipPrefixCls);
var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this);
if (range) {
var vcRangeProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, restProps, {
prefixCls: prefixCls,
tooltipPrefixCls: tooltipPrefixCls,
handle: function handle(info) {
return _this2.handleWithTooltip(tooltipPrefixCls, prefixCls, info);
}
}),
ref: 'sliderRef',
on: listeners
};
return h(_vc_slider_src_Range__WEBPACK_IMPORTED_MODULE_7__["default"], vcRangeProps);
}
var vcSliderProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, restProps, {
prefixCls: prefixCls,
tooltipPrefixCls: tooltipPrefixCls,
handle: function handle(info) {
return _this2.handleWithTooltip(tooltipPrefixCls, prefixCls, info);
}
}),
ref: 'sliderRef',
on: listeners
};
return h(_vc_slider_src_Slider__WEBPACK_IMPORTED_MODULE_6__["default"], vcSliderProps);
}
};
/* istanbul ignore next */
Slider.install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_10__["default"]);
Vue.component(Slider.name, Slider);
};
/* harmony default export */ __webpack_exports__["default"] = (Slider);
/***/ }),
/***/ "./components/slider/style/index.js":
/*!******************************************!*\
!*** ./components/slider/style/index.js ***!
\******************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/slider/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _tooltip_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../tooltip/style */ "./components/tooltip/style/index.js");
// style dependencies
/***/ }),
/***/ "./components/slider/style/index.less":
/*!********************************************!*\
!*** ./components/slider/style/index.less ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/space/index.jsx":
/*!************************************!*\
!*** ./components/space/index.jsx ***!
\************************************/
/*! exports provided: SpaceSizeType, SpaceProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SpaceSizeType", function() { return SpaceSizeType; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SpaceProps", function() { return SpaceProps; });
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
var SpaceSizeType = _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['small', 'middle', 'large'])]);
var spaceSize = {
small: 8,
middle: 16,
large: 24
};
var SpaceProps = {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
size: SpaceSizeType,
direction: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['horizontal', 'vertical']),
align: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['start', 'end', 'center', 'baseline'])
};
var Space = {
functional: true,
name: 'ASpace',
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["initDefaultProps"])(SpaceProps, {
size: 'small',
direction: 'horizontal'
}),
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__["ConfigConsumerProps"];
} }
},
render: function render(h, content) {
var _ref;
var customizePrefixCls = content.prefixCls,
configProvider = content.injections.configProvider,
children = content.children;
var _content$props = content.props,
align = _content$props.align,
size = _content$props.size,
direction = _content$props.direction;
var getPrefixCls = configProvider.getPrefixCls;
var prefixCls = getPrefixCls('space', customizePrefixCls);
var items = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["filterEmpty"])(children);
var len = items.length;
if (len === 0) {
return null;
}
var mergedAlign = align === undefined && direction === 'horizontal' ? 'center' : align;
var someSpaceClass = [(_ref = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, prefixCls + '-' + direction, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, prefixCls + '-align-' + mergedAlign, mergedAlign), _ref)];
if (content.data['class']) {
someSpaceClass.push(content.data['class']);
}
var itemClassName = prefixCls + '-item';
var marginDirection = 'marginRight'; // directionConfig === 'rtl' ? 'marginLeft' : 'marginRight';
return h(
'div',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([content.data, { 'class': someSpaceClass }]),
[items.map(function (child, i) {
return h(
'div',
{
'class': itemClassName,
key: itemClassName + '-' + i,
style: i === len - 1 ? {} : babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, direction === 'vertical' ? 'marginBottom' : marginDirection, typeof size === 'string' ? spaceSize[size] + 'px' : size + 'px')
},
[child]
);
})]
);
}
};
/* istanbul ignore next */
Space.install = function (Vue) {
Vue.component(Space.name, Space);
};
/* harmony default export */ __webpack_exports__["default"] = (Space);
/***/ }),
/***/ "./components/space/style/index.js":
/*!*****************************************!*\
!*** ./components/space/style/index.js ***!
\*****************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/space/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/***/ }),
/***/ "./components/space/style/index.less":
/*!*******************************************!*\
!*** ./components/space/style/index.less ***!
\*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/spin/Spin.jsx":
/*!**********************************!*\
!*** ./components/spin/Spin.jsx ***!
\**********************************/
/*! exports provided: SpinSize, SpinProps, setDefaultIndicator, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SpinSize", function() { return SpinSize; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SpinProps", function() { return SpinProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setDefaultIndicator", function() { return setDefaultIndicator; });
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/debounce */ "./node_modules/lodash/debounce.js");
/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
var SpinSize = _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOf(['small', 'default', 'large']);
var SpinProps = function SpinProps() {
return {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
spinning: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
size: SpinSize,
wrapperClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
tip: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
delay: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
indicator: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any
};
};
// Render indicator
var defaultIndicator = void 0;
function shouldDelay(spinning, delay) {
return !!spinning && !!delay && !isNaN(Number(delay));
}
function setDefaultIndicator(Content) {
defaultIndicator = typeof Content.indicator === 'function' ? Content.indicator : function (h) {
return h(Content.indicator);
};
}
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'ASpin',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__["default"]],
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["initDefaultProps"])(SpinProps(), {
size: 'default',
spinning: true,
wrapperClassName: ''
}),
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__["ConfigConsumerProps"];
} }
},
data: function data() {
var spinning = this.spinning,
delay = this.delay;
var shouldBeDelayed = shouldDelay(spinning, delay);
this.originalUpdateSpinning = this.updateSpinning;
this.debouncifyUpdateSpinning(this.$props);
return {
sSpinning: spinning && !shouldBeDelayed
};
},
mounted: function mounted() {
this.updateSpinning();
},
updated: function updated() {
var _this = this;
this.$nextTick(function () {
_this.debouncifyUpdateSpinning();
_this.updateSpinning();
});
},
beforeDestroy: function beforeDestroy() {
this.cancelExistingSpin();
},
methods: {
debouncifyUpdateSpinning: function debouncifyUpdateSpinning(props) {
var _ref = props || this.$props,
delay = _ref.delay;
if (delay) {
this.cancelExistingSpin();
this.updateSpinning = lodash_debounce__WEBPACK_IMPORTED_MODULE_3___default()(this.originalUpdateSpinning, delay);
}
},
updateSpinning: function updateSpinning() {
var spinning = this.spinning,
sSpinning = this.sSpinning;
if (sSpinning !== spinning) {
this.setState({ sSpinning: spinning });
}
},
cancelExistingSpin: function cancelExistingSpin() {
var updateSpinning = this.updateSpinning;
if (updateSpinning && updateSpinning.cancel) {
updateSpinning.cancel();
}
},
getChildren: function getChildren() {
if (this.$slots && this.$slots['default']) {
return Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["filterEmpty"])(this.$slots['default']);
}
return null;
},
renderIndicator: function renderIndicator(h, prefixCls) {
// const h = this.$createElement
var dotClassName = prefixCls + '-dot';
var indicator = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'indicator');
// should not be render default indicator when indicator value is null
if (indicator === null) {
return null;
}
if (Array.isArray(indicator)) {
indicator = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["filterEmpty"])(indicator);
indicator = indicator.length === 1 ? indicator[0] : indicator;
}
if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["isValidElement"])(indicator)) {
return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_7__["cloneElement"])(indicator, { 'class': dotClassName });
}
if (defaultIndicator && Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["isValidElement"])(defaultIndicator(h))) {
return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_7__["cloneElement"])(defaultIndicator(h), { 'class': dotClassName });
}
return h(
'span',
{ 'class': dotClassName + ' ' + prefixCls + '-dot-spin' },
[h('i', { 'class': prefixCls + '-dot-item' }), h('i', { 'class': prefixCls + '-dot-item' }), h('i', { 'class': prefixCls + '-dot-item' }), h('i', { 'class': prefixCls + '-dot-item' })]
);
}
},
render: function render(h) {
var _spinClassName;
var _$props = this.$props,
size = _$props.size,
customizePrefixCls = _$props.prefixCls,
tip = _$props.tip,
wrapperClassName = _$props.wrapperClassName,
restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(_$props, ['size', 'prefixCls', 'tip', 'wrapperClassName']);
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('spin', customizePrefixCls);
var sSpinning = this.sSpinning;
var spinClassName = (_spinClassName = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_spinClassName, prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_spinClassName, prefixCls + '-sm', size === 'small'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_spinClassName, prefixCls + '-lg', size === 'large'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_spinClassName, prefixCls + '-spinning', sSpinning), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_spinClassName, prefixCls + '-show-text', !!tip), _spinClassName);
var spinElement = h(
'div',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([restProps, { 'class': spinClassName }]),
[this.renderIndicator(h, prefixCls), tip ? h(
'div',
{ 'class': prefixCls + '-text' },
[tip]
) : null]
);
var children = this.getChildren();
if (children) {
var _containerClassName;
var containerClassName = (_containerClassName = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_containerClassName, prefixCls + '-container', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_containerClassName, prefixCls + '-blur', sSpinning), _containerClassName);
return h(
'div',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this) }, {
'class': [prefixCls + '-nested-loading', wrapperClassName]
}]),
[sSpinning && h(
'div',
{ key: 'loading' },
[spinElement]
), h(
'div',
{ 'class': containerClassName, key: 'container' },
[children]
)]
);
}
return spinElement;
}
});
/***/ }),
/***/ "./components/spin/index.js":
/*!**********************************!*\
!*** ./components/spin/index.js ***!
\**********************************/
/*! exports provided: SpinProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Spin__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Spin */ "./components/spin/Spin.jsx");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SpinProps", function() { return _Spin__WEBPACK_IMPORTED_MODULE_0__["SpinProps"]; });
_Spin__WEBPACK_IMPORTED_MODULE_0__["default"].setDefaultIndicator = _Spin__WEBPACK_IMPORTED_MODULE_0__["setDefaultIndicator"];
/* istanbul ignore next */
_Spin__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_1__["default"]);
Vue.component(_Spin__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Spin__WEBPACK_IMPORTED_MODULE_0__["default"]);
};
/* harmony default export */ __webpack_exports__["default"] = (_Spin__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/spin/style/index.js":
/*!****************************************!*\
!*** ./components/spin/style/index.js ***!
\****************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/spin/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/***/ }),
/***/ "./components/spin/style/index.less":
/*!******************************************!*\
!*** ./components/spin/style/index.less ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/statistic/Countdown.jsx":
/*!********************************************!*\
!*** ./components/statistic/Countdown.jsx ***!
\********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! moment */ "moment");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_interopDefault__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/interopDefault */ "./components/_util/interopDefault.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _Statistic__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Statistic */ "./components/statistic/Statistic.jsx");
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils */ "./components/statistic/utils.js");
var REFRESH_INTERVAL = 1000 / 30;
function getTime(value) {
return Object(_util_interopDefault__WEBPACK_IMPORTED_MODULE_3__["default"])(moment__WEBPACK_IMPORTED_MODULE_2__)(value).valueOf();
}
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'AStatisticCountdown',
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["initDefaultProps"])(_Statistic__WEBPACK_IMPORTED_MODULE_5__["StatisticProps"], {
format: 'HH:mm:ss'
}),
created: function created() {
this.countdownId = undefined;
},
mounted: function mounted() {
this.syncTimer();
},
updated: function updated() {
this.syncTimer();
},
beforeDestroy: function beforeDestroy() {
this.stopTimer();
},
methods: {
syncTimer: function syncTimer() {
var value = this.$props.value;
var timestamp = getTime(value);
if (timestamp >= Date.now()) {
this.startTimer();
} else {
this.stopTimer();
}
},
startTimer: function startTimer() {
var _this = this;
if (this.countdownId) return;
this.countdownId = window.setInterval(function () {
_this.$refs.statistic.$forceUpdate();
_this.syncTimer();
}, REFRESH_INTERVAL);
},
stopTimer: function stopTimer() {
var value = this.$props.value;
if (this.countdownId) {
clearInterval(this.countdownId);
this.countdownId = undefined;
var timestamp = getTime(value);
if (timestamp < Date.now()) {
this.$emit('finish');
}
}
},
formatCountdown: function formatCountdown(_ref) {
var value = _ref.value,
config = _ref.config;
var format = this.$props.format;
return Object(_utils__WEBPACK_IMPORTED_MODULE_6__["formatCountdown"])(value, babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, config, { format: format }));
},
valueRenderHtml: function valueRenderHtml(node) {
return node;
}
},
render: function render() {
var h = arguments[0];
return h(_Statistic__WEBPACK_IMPORTED_MODULE_5__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
ref: 'statistic'
}, {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.$props, {
valueRender: this.valueRenderHtml,
formatter: this.formatCountdown
}),
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this)
}]));
}
});
/***/ }),
/***/ "./components/statistic/Number.jsx":
/*!*****************************************!*\
!*** ./components/statistic/Number.jsx ***!
\*****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var lodash_padEnd__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/padEnd */ "./node_modules/lodash/padEnd.js");
/* harmony import */ var lodash_padEnd__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_padEnd__WEBPACK_IMPORTED_MODULE_0__);
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'AStatisticNumber',
functional: true,
render: function render(h, context) {
var _context$props = context.props,
value = _context$props.value,
formatter = _context$props.formatter,
precision = _context$props.precision,
decimalSeparator = _context$props.decimalSeparator,
_context$props$groupS = _context$props.groupSeparator,
groupSeparator = _context$props$groupS === undefined ? '' : _context$props$groupS,
prefixCls = _context$props.prefixCls;
var valueNode = void 0;
if (typeof formatter === 'function') {
// Customize formatter
valueNode = formatter({ value: value, h: h });
} else {
// Internal formatter
var val = String(value);
var cells = val.match(/^(-?)(\d*)(\.(\d+))?$/);
// Process if illegal number
if (!cells) {
valueNode = val;
} else {
var negative = cells[1];
var int = cells[2] || '0';
var decimal = cells[4] || '';
int = int.replace(/\B(?=(\d{3})+(?!\d))/g, groupSeparator);
if (typeof precision === 'number') {
decimal = lodash_padEnd__WEBPACK_IMPORTED_MODULE_0___default()(decimal, precision, '0').slice(0, precision);
}
if (decimal) {
decimal = '' + decimalSeparator + decimal;
}
valueNode = [h(
'span',
{ key: 'int', 'class': prefixCls + '-content-value-int' },
[negative, int]
), decimal && h(
'span',
{ key: 'decimal', 'class': prefixCls + '-content-value-decimal' },
[decimal]
)];
}
}
return h(
'span',
{ 'class': prefixCls + '-content-value' },
[valueNode]
);
}
});
/***/ }),
/***/ "./components/statistic/Statistic.jsx":
/*!********************************************!*\
!*** ./components/statistic/Statistic.jsx ***!
\********************************************/
/*! exports provided: StatisticProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StatisticProps", function() { return StatisticProps; });
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _Number__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Number */ "./components/statistic/Number.jsx");
var StatisticProps = {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
decimalSeparator: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
groupSeparator: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
format: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object]),
valueStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
valueRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
formatter: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
precision: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
prefix: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
suffix: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
title: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
};
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'AStatistic',
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["initDefaultProps"])(StatisticProps, {
decimalSeparator: '.',
groupSeparator: ','
}),
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_3__["ConfigConsumerProps"];
} }
},
render: function render() {
var h = arguments[0];
var _$props = this.$props,
customizePrefixCls = _$props.prefixCls,
_$props$value = _$props.value,
value = _$props$value === undefined ? 0 : _$props$value,
valueStyle = _$props.valueStyle,
valueRender = _$props.valueRender;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('statistic', customizePrefixCls);
var title = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'title');
var prefix = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'prefix');
var suffix = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'suffix');
var formatter = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'formatter', {}, false);
var valueNode = h(_Number__WEBPACK_IMPORTED_MODULE_4__["default"], { props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.$props, { prefixCls: prefixCls, value: value, formatter: formatter }) });
if (valueRender) {
valueNode = valueRender(valueNode);
}
return h(
'div',
{ 'class': prefixCls },
[title && h(
'div',
{ 'class': prefixCls + '-title' },
[title]
), h(
'div',
{ style: valueStyle, 'class': prefixCls + '-content' },
[prefix && h(
'span',
{ 'class': prefixCls + '-content-prefix' },
[prefix]
), valueNode, suffix && h(
'span',
{ 'class': prefixCls + '-content-suffix' },
[suffix]
)]
)]
);
}
});
/***/ }),
/***/ "./components/statistic/index.js":
/*!***************************************!*\
!*** ./components/statistic/index.js ***!
\***************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Statistic__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Statistic */ "./components/statistic/Statistic.jsx");
/* harmony import */ var _Countdown__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Countdown */ "./components/statistic/Countdown.jsx");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
_Statistic__WEBPACK_IMPORTED_MODULE_0__["default"].Countdown = _Countdown__WEBPACK_IMPORTED_MODULE_1__["default"];
/* istanbul ignore next */
_Statistic__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_2__["default"]);
Vue.component(_Statistic__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Statistic__WEBPACK_IMPORTED_MODULE_0__["default"]);
Vue.component(_Statistic__WEBPACK_IMPORTED_MODULE_0__["default"].Countdown.name, _Statistic__WEBPACK_IMPORTED_MODULE_0__["default"].Countdown);
};
/* harmony default export */ __webpack_exports__["default"] = (_Statistic__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/statistic/style/index.js":
/*!*********************************************!*\
!*** ./components/statistic/style/index.js ***!
\*********************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/statistic/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/***/ }),
/***/ "./components/statistic/style/index.less":
/*!***********************************************!*\
!*** ./components/statistic/style/index.less ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/statistic/utils.js":
/*!***************************************!*\
!*** ./components/statistic/utils.js ***!
\***************************************/
/*! exports provided: formatTimeStr, formatCountdown */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatTimeStr", function() { return formatTimeStr; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatCountdown", function() { return formatCountdown; });
/* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/slicedToArray */ "./node_modules/babel-runtime/helpers/slicedToArray.js");
/* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "moment");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var lodash_padStart__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/padStart */ "./node_modules/lodash/padStart.js");
/* harmony import */ var lodash_padStart__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_padStart__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_interopDefault__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/interopDefault */ "./components/_util/interopDefault.js");
// Countdown
var timeUnits = [['Y', 1000 * 60 * 60 * 24 * 365], // years
['M', 1000 * 60 * 60 * 24 * 30], // months
['D', 1000 * 60 * 60 * 24], // days
['H', 1000 * 60 * 60], // hours
['m', 1000 * 60], // minutes
['s', 1000], // seconds
['S', 1]];
function formatTimeStr(duration, format) {
var leftDuration = duration;
var escapeRegex = /\[[^\]]*\]/g;
var keepList = (format.match(escapeRegex) || []).map(function (str) {
return str.slice(1, -1);
});
var templateText = format.replace(escapeRegex, '[]');
var replacedText = timeUnits.reduce(function (current, _ref) {
var _ref2 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_ref, 2),
name = _ref2[0],
unit = _ref2[1];
if (current.indexOf(name) !== -1) {
var value = Math.floor(leftDuration / unit);
leftDuration -= value * unit;
return current.replace(new RegExp(name + '+', 'g'), function (match) {
var len = match.length;
return lodash_padStart__WEBPACK_IMPORTED_MODULE_2___default()(value.toString(), len, '0');
});
}
return current;
}, templateText);
var index = 0;
return replacedText.replace(escapeRegex, function () {
var match = keepList[index];
index += 1;
return match;
});
}
function formatCountdown(value, config) {
var _config$format = config.format,
format = _config$format === undefined ? '' : _config$format;
var target = Object(_util_interopDefault__WEBPACK_IMPORTED_MODULE_3__["default"])(moment__WEBPACK_IMPORTED_MODULE_1__)(value).valueOf();
var current = Object(_util_interopDefault__WEBPACK_IMPORTED_MODULE_3__["default"])(moment__WEBPACK_IMPORTED_MODULE_1__)().valueOf();
var diff = Math.max(target - current, 0);
return formatTimeStr(diff, format);
}
/***/ }),
/***/ "./components/steps/index.jsx":
/*!************************************!*\
!*** ./components/steps/index.jsx ***!
\************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _vc_steps__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../vc-steps */ "./components/vc-steps/index.js");
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
var getStepsProps = function getStepsProps() {
var defaultProps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var props = {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
iconPrefix: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
current: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
initial: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
labelPlacement: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['horizontal', 'vertical']).def('horizontal'),
status: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['wait', 'process', 'finish', 'error']),
size: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['default', 'small']),
direction: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['horizontal', 'vertical']),
progressDot: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func]),
type: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['default', 'navigation'])
};
return Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["initDefaultProps"])(props, defaultProps);
};
var Steps = {
name: 'ASteps',
props: getStepsProps({
current: 0
}),
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_5__["ConfigConsumerProps"];
} }
},
model: {
prop: 'current',
event: 'change'
},
Step: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _vc_steps__WEBPACK_IMPORTED_MODULE_3__["default"].Step, { name: 'AStep' }),
render: function render() {
var h = arguments[0];
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getOptionProps"])(this);
var customizePrefixCls = props.prefixCls,
customizeIconPrefixCls = props.iconPrefix;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('steps', customizePrefixCls);
var iconPrefix = getPrefixCls('', customizeIconPrefixCls);
var icons = {
finish: h(_icon__WEBPACK_IMPORTED_MODULE_4__["default"], {
attrs: { type: 'check' },
'class': prefixCls + '-finish-icon' }),
error: h(_icon__WEBPACK_IMPORTED_MODULE_4__["default"], {
attrs: { type: 'close' },
'class': prefixCls + '-error-icon' })
};
var stepsProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
icons: icons,
iconPrefix: iconPrefix,
prefixCls: prefixCls
}, props),
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getListeners"])(this),
scopedSlots: this.$scopedSlots
};
return h(
_vc_steps__WEBPACK_IMPORTED_MODULE_3__["default"],
stepsProps,
[this.$slots['default']]
);
}
};
/* istanbul ignore next */
Steps.install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_6__["default"]);
Vue.component(Steps.name, Steps);
Vue.component(Steps.Step.name, Steps.Step);
};
/* harmony default export */ __webpack_exports__["default"] = (Steps);
/***/ }),
/***/ "./components/steps/style/index.js":
/*!*****************************************!*\
!*** ./components/steps/style/index.js ***!
\*****************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/steps/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/***/ }),
/***/ "./components/steps/style/index.less":
/*!*******************************************!*\
!*** ./components/steps/style/index.less ***!
\*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/style/index.less":
/*!*************************************!*\
!*** ./components/style/index.less ***!
\*************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/switch/index.jsx":
/*!*************************************!*\
!*** ./components/switch/index.jsx ***!
\*************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _vc_switch__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vc-switch */ "./components/vc-switch/index.js");
/* harmony import */ var _util_wave__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/wave */ "./components/_util/wave.jsx");
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
/* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
var Switch = {
name: 'ASwitch',
__ANT_SWITCH: true,
model: {
prop: 'checked',
event: 'change'
},
props: {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
// size=default and size=large are the same
size: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['small', 'default', 'large']),
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
checkedChildren: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
unCheckedChildren: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number]),
checked: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
defaultChecked: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
loading: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool
},
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__["ConfigConsumerProps"];
} }
},
methods: {
focus: function focus() {
this.$refs.refSwitchNode.focus();
},
blur: function blur() {
this.$refs.refSwitchNode.blur();
}
},
created: function created() {
Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["default"])(this, 'checked') || !Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["default"])(this, 'value'), 'Switch', '`value` is not validate prop, do you mean `checked`?');
},
render: function render() {
var _classes;
var h = arguments[0];
var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this),
customizePrefixCls = _getOptionProps.prefixCls,
size = _getOptionProps.size,
loading = _getOptionProps.loading,
disabled = _getOptionProps.disabled,
restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(_getOptionProps, ['prefixCls', 'size', 'loading', 'disabled']);
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('switch', customizePrefixCls);
var classes = (_classes = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classes, prefixCls + '-small', size === 'small'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classes, prefixCls + '-loading', loading), _classes);
var loadingIcon = loading ? h(_icon__WEBPACK_IMPORTED_MODULE_7__["default"], {
attrs: { type: 'loading' },
'class': prefixCls + '-loading-icon' }) : null;
var switchProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, restProps, {
prefixCls: prefixCls,
loadingIcon: loadingIcon,
checkedChildren: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'checkedChildren'),
unCheckedChildren: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'unCheckedChildren'),
disabled: disabled || loading
}),
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this),
'class': classes,
ref: 'refSwitchNode'
};
return h(
_util_wave__WEBPACK_IMPORTED_MODULE_6__["default"],
{
attrs: { insertExtraNode: true }
},
[h(_vc_switch__WEBPACK_IMPORTED_MODULE_5__["default"], switchProps)]
);
}
};
/* istanbul ignore next */
Switch.install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_9__["default"]);
Vue.component(Switch.name, Switch);
};
/* harmony default export */ __webpack_exports__["default"] = (Switch);
/***/ }),
/***/ "./components/switch/style/index.js":
/*!******************************************!*\
!*** ./components/switch/style/index.js ***!
\******************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/switch/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/***/ }),
/***/ "./components/switch/style/index.less":
/*!********************************************!*\
!*** ./components/switch/style/index.less ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/table/Column.jsx":
/*!*************************************!*\
!*** ./components/table/Column.jsx ***!
\*************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interface */ "./components/table/interface.js");
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'ATableColumn',
props: _interface__WEBPACK_IMPORTED_MODULE_0__["ColumnProps"]
});
/***/ }),
/***/ "./components/table/ColumnGroup.jsx":
/*!******************************************!*\
!*** ./components/table/ColumnGroup.jsx ***!
\******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'ATableColumnGroup',
props: {
fixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['left', 'right'])]),
title: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any
},
__ANT_TABLE_COLUMN_GROUP: true
});
/***/ }),
/***/ "./components/table/FilterDropdownMenuWrapper.jsx":
/*!********************************************************!*\
!*** ./components/table/FilterDropdownMenuWrapper.jsx ***!
\********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'FilterDropdownMenuWrapper',
methods: {
handelClick: function handelClick(e) {
e.stopPropagation();
//this.$emit('click', e);
}
},
render: function render() {
var h = arguments[0];
var $slots = this.$slots,
handelClick = this.handelClick;
return h(
'div',
{
on: {
'click': handelClick
}
},
[$slots['default']]
);
}
});
/***/ }),
/***/ "./components/table/SelectionBox.jsx":
/*!*******************************************!*\
!*** ./components/table/SelectionBox.jsx ***!
\*******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _checkbox__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../checkbox */ "./components/checkbox/index.js");
/* harmony import */ var _radio__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../radio */ "./components/radio/index.js");
/* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./interface */ "./components/table/interface.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'SelectionBox',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__["default"]],
props: _interface__WEBPACK_IMPORTED_MODULE_4__["SelectionBoxProps"],
computed: {
checked: function checked() {
var _$props = this.$props,
store = _$props.store,
defaultSelection = _$props.defaultSelection,
rowIndex = _$props.rowIndex;
var checked = false;
if (store.selectionDirty) {
checked = store.selectedRowKeys.indexOf(rowIndex) >= 0;
} else {
checked = store.selectedRowKeys.indexOf(rowIndex) >= 0 || defaultSelection.indexOf(rowIndex) >= 0;
}
return checked;
}
},
render: function render() {
var h = arguments[0];
var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(this),
type = _getOptionProps.type,
rowIndex = _getOptionProps.rowIndex,
rest = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_getOptionProps, ['type', 'rowIndex']);
var checked = this.checked;
var checkboxProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
checked: checked
}, rest),
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this)
};
if (type === 'radio') {
checkboxProps.props.value = rowIndex;
return h(_radio__WEBPACK_IMPORTED_MODULE_3__["default"], checkboxProps);
}
return h(_checkbox__WEBPACK_IMPORTED_MODULE_2__["default"], checkboxProps);
}
});
/***/ }),
/***/ "./components/table/SelectionCheckboxAll.jsx":
/*!***************************************************!*\
!*** ./components/table/SelectionCheckboxAll.jsx ***!
\***************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _checkbox__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../checkbox */ "./components/checkbox/index.js");
/* harmony import */ var _dropdown__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../dropdown */ "./components/dropdown/index.js");
/* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../menu */ "./components/menu/index.jsx");
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./interface */ "./components/table/interface.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
function checkSelection(_ref) {
var store = _ref.store,
getCheckboxPropsByItem = _ref.getCheckboxPropsByItem,
getRecordKey = _ref.getRecordKey,
data = _ref.data,
type = _ref.type,
byDefaultChecked = _ref.byDefaultChecked;
return byDefaultChecked ? data[type](function (item, i) {
return getCheckboxPropsByItem(item, i).defaultChecked;
}) : data[type](function (item, i) {
return store.selectedRowKeys.indexOf(getRecordKey(item, i)) >= 0;
});
}
function getIndeterminateState(props) {
var store = props.store,
data = props.data;
if (!data.length) {
return false;
}
var someCheckedNotByDefaultChecked = checkSelection(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
data: data,
type: 'some',
byDefaultChecked: false
})) && !checkSelection(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
data: data,
type: 'every',
byDefaultChecked: false
}));
var someCheckedByDefaultChecked = checkSelection(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
data: data,
type: 'some',
byDefaultChecked: true
})) && !checkSelection(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
data: data,
type: 'every',
byDefaultChecked: true
}));
if (store.selectionDirty) {
return someCheckedNotByDefaultChecked;
}
return someCheckedNotByDefaultChecked || someCheckedByDefaultChecked;
}
function getCheckState(props) {
var store = props.store,
data = props.data;
if (!data.length) {
return false;
}
if (store.selectionDirty) {
return checkSelection(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
data: data,
type: 'every',
byDefaultChecked: false
}));
}
return checkSelection(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
data: data,
type: 'every',
byDefaultChecked: false
})) || checkSelection(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
data: data,
type: 'every',
byDefaultChecked: true
}));
}
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'SelectionCheckboxAll',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__["default"]],
props: _interface__WEBPACK_IMPORTED_MODULE_7__["SelectionCheckboxAllProps"],
data: function data() {
var props = this.$props;
this.defaultSelections = props.hideDefaultSelections ? [] : [{
key: 'all',
text: props.locale.selectAll
}, {
key: 'invert',
text: props.locale.selectInvert
}];
return {
checked: getCheckState(props),
indeterminate: getIndeterminateState(props)
};
},
watch: {
$props: {
handler: function handler() {
this.setCheckState(this.$props);
},
deep: true,
immediate: true
}
},
methods: {
checkSelection: function checkSelection(props, data, type, byDefaultChecked) {
var _ref2 = props || this.$props,
store = _ref2.store,
getCheckboxPropsByItem = _ref2.getCheckboxPropsByItem,
getRecordKey = _ref2.getRecordKey;
// type should be 'every' | 'some'
if (type === 'every' || type === 'some') {
return byDefaultChecked ? data[type](function (item, i) {
return getCheckboxPropsByItem(item, i).props.defaultChecked;
}) : data[type](function (item, i) {
return store.selectedRowKeys.indexOf(getRecordKey(item, i)) >= 0;
});
}
return false;
},
setCheckState: function setCheckState(props) {
var checked = getCheckState(props);
var indeterminate = getIndeterminateState(props);
this.setState(function (prevState) {
var newState = {};
if (indeterminate !== prevState.indeterminate) {
newState.indeterminate = indeterminate;
}
if (checked !== prevState.checked) {
newState.checked = checked;
}
return newState;
});
},
handleSelectAllChange: function handleSelectAllChange(e) {
var checked = e.target.checked;
this.$emit('select', checked ? 'all' : 'removeAll', 0, null);
},
renderMenus: function renderMenus(selections) {
var _this = this;
var h = this.$createElement;
return selections.map(function (selection, index) {
return h(
_menu__WEBPACK_IMPORTED_MODULE_4__["default"].Item,
{ key: selection.key || index },
[h(
'div',
{
on: {
'click': function click() {
_this.$emit('select', selection.key, index, selection.onSelect);
}
}
},
[selection.text]
)]
);
});
}
},
render: function render() {
var h = arguments[0];
var disabled = this.disabled,
prefixCls = this.prefixCls,
selections = this.selections,
getPopupContainer = this.getPopupContainer,
checked = this.checked,
indeterminate = this.indeterminate;
var selectionPrefixCls = prefixCls + '-selection';
var customSelections = null;
if (selections) {
var newSelections = Array.isArray(selections) ? this.defaultSelections.concat(selections) : this.defaultSelections;
var menu = h(
_menu__WEBPACK_IMPORTED_MODULE_4__["default"],
{ 'class': selectionPrefixCls + '-menu', attrs: { selectedKeys: [] }
},
[this.renderMenus(newSelections)]
);
customSelections = newSelections.length > 0 ? h(
_dropdown__WEBPACK_IMPORTED_MODULE_3__["default"],
{
attrs: { getPopupContainer: getPopupContainer }
},
[h(
'template',
{ slot: 'overlay' },
[menu]
), h(
'div',
{ 'class': selectionPrefixCls + '-down' },
[h(_icon__WEBPACK_IMPORTED_MODULE_5__["default"], {
attrs: { type: 'down' }
})]
)]
) : null;
}
return h(
'div',
{ 'class': selectionPrefixCls },
[h(_checkbox__WEBPACK_IMPORTED_MODULE_2__["default"], {
'class': classnames__WEBPACK_IMPORTED_MODULE_6___default()(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, selectionPrefixCls + '-select-all-custom', customSelections)),
attrs: { checked: checked,
indeterminate: indeterminate,
disabled: disabled
},
on: {
'change': this.handleSelectAllChange
}
}), customSelections]
);
}
});
/***/ }),
/***/ "./components/table/Table.jsx":
/*!************************************!*\
!*** ./components/table/Table.jsx ***!
\************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _vc_table__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vc-table */ "./components/vc-table/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! shallowequal */ "./node_modules/shallowequal/index.js");
/* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(shallowequal__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var _filterDropdown__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./filterDropdown */ "./components/table/filterDropdown.jsx");
/* harmony import */ var _SelectionBox__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./SelectionBox */ "./components/table/SelectionBox.jsx");
/* harmony import */ var _SelectionCheckboxAll__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./SelectionCheckboxAll */ "./components/table/SelectionCheckboxAll.jsx");
/* harmony import */ var _Column__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Column */ "./components/table/Column.jsx");
/* harmony import */ var _ColumnGroup__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./ColumnGroup */ "./components/table/ColumnGroup.jsx");
/* harmony import */ var _createBodyRow__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./createBodyRow */ "./components/table/createBodyRow.jsx");
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./util */ "./components/table/util.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./interface */ "./components/table/interface.js");
/* harmony import */ var _pagination__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../pagination */ "./components/pagination/index.js");
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
/* harmony import */ var _spin__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../spin */ "./components/spin/index.js");
/* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./components/locale-provider/LocaleReceiver.jsx");
/* harmony import */ var _locale_provider_default__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../locale-provider/default */ "./components/locale-provider/default.js");
/* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
/* harmony import */ var _util_scrollTo__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../_util/scrollTo */ "./components/_util/scrollTo.js");
/* harmony import */ var _util_transButton__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../_util/transButton */ "./components/_util/transButton.jsx");
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! vue */ "vue");
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_27__);
function noop() {}
function stopPropagation(e) {
e.stopPropagation();
}
function getRowSelection(props) {
return props.rowSelection || {};
}
function getColumnKey(column, index) {
return column.key || column.dataIndex || index;
}
function isSameColumn(a, b) {
if (a && b && a.key && a.key === b.key) {
return true;
}
return a === b || shallowequal__WEBPACK_IMPORTED_MODULE_7___default()(a, b, function (value, other) {
// https://github.com/ant-design/ant-design/issues/12737
if (typeof value === 'function' && typeof other === 'function') {
return value === other || value.toString() === other.toString();
}
// https://github.com/ant-design/ant-design/issues/19398
if (Array.isArray(value) && Array.isArray(other)) {
return value === other || shallowequal__WEBPACK_IMPORTED_MODULE_7___default()(value, other);
}
});
}
var defaultPagination = {
onChange: noop,
onShowSizeChange: noop
};
/**
* Avoid creating new object, so that parent component's shouldComponentUpdate
* can works appropriately。
*/
var emptyObject = {};
var createComponents = function createComponents() {
var components = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var bodyRow = components && components.body && components.body.row;
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, components, {
body: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, components.body, {
row: Object(_createBodyRow__WEBPACK_IMPORTED_MODULE_13__["default"])(bodyRow)
})
});
};
function isTheSameComponents() {
var components1 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var components2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
return components1 === components2 || ['table', 'header', 'body'].every(function (key) {
return shallowequal__WEBPACK_IMPORTED_MODULE_7___default()(components1[key], components2[key]);
});
}
function getFilteredValueColumns(state, columns) {
return Object(_util__WEBPACK_IMPORTED_MODULE_14__["flatFilter"])(columns || (state || {}).columns || [], function (column) {
return typeof column.filteredValue !== 'undefined';
});
}
function getFiltersFromColumns(state, columns) {
var filters = {};
getFilteredValueColumns(state, columns).forEach(function (col) {
var colKey = getColumnKey(col);
filters[colKey] = col.filteredValue;
});
return filters;
}
function isFiltersChanged(state, filters) {
if (Object.keys(filters).length !== Object.keys(state.filters).length) {
return true;
}
return Object.keys(filters).some(function (columnKey) {
return filters[columnKey] !== state.filters[columnKey];
});
}
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'Table',
Column: _Column__WEBPACK_IMPORTED_MODULE_11__["default"],
ColumnGroup: _ColumnGroup__WEBPACK_IMPORTED_MODULE_12__["default"],
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_16__["default"]],
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_17__["ConfigConsumerProps"];
} }
},
provide: function provide() {
return {
store: this.store
};
},
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_15__["initDefaultProps"])(_interface__WEBPACK_IMPORTED_MODULE_18__["TableProps"], {
dataSource: [],
useFixedHeader: false,
// rowSelection: null,
size: 'default',
loading: false,
bordered: false,
indentSize: 20,
locale: {},
rowKey: 'key',
showHeader: true,
sortDirections: ['ascend', 'descend'],
childrenColumnName: 'children'
}),
data: function data() {
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_15__["getOptionProps"])(this);
Object(_util_warning__WEBPACK_IMPORTED_MODULE_24__["default"])(!props.expandedRowRender || !('scroll' in props) || !props.scroll.x, '`expandedRowRender` and `scroll` are not compatible. Please use one of them at one time.');
this.CheckboxPropsCache = {};
this.store = vue__WEBPACK_IMPORTED_MODULE_27___default.a.observable({
selectedRowKeys: getRowSelection(this.$props).selectedRowKeys || [],
selectionDirty: false
});
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, this.getDefaultSortOrder(props.columns || []), {
// 减少状态
sFilters: this.getDefaultFilters(props.columns),
sPagination: this.getDefaultPagination(this.$props),
pivot: undefined,
sComponents: createComponents(this.components),
filterDataCnt: 0
});
},
watch: {
pagination: {
handler: function handler(val) {
this.setState(function (previousState) {
var newPagination = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, defaultPagination, previousState.sPagination, val);
newPagination.current = newPagination.current || 1;
newPagination.pageSize = newPagination.pageSize || 10;
return { sPagination: val !== false ? newPagination : emptyObject };
});
},
deep: true
},
rowSelection: {
handler: function handler(val, oldVal) {
if (val && 'selectedRowKeys' in val) {
this.store.selectedRowKeys = val.selectedRowKeys || [];
var rowSelection = this.rowSelection;
if (rowSelection && val.getCheckboxProps !== rowSelection.getCheckboxProps) {
this.CheckboxPropsCache = {};
}
} else if (oldVal && !val) {
this.store.selectedRowKeys = [];
}
},
deep: true
},
dataSource: function dataSource() {
this.store.selectionDirty = false;
this.CheckboxPropsCache = {};
},
columns: function columns(val) {
var filteredValueColumns = getFilteredValueColumns({ columns: val }, val);
if (filteredValueColumns.length > 0) {
var filtersFromColumns = getFiltersFromColumns({ columns: val }, val);
var newFilters = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, this.sFilters);
Object.keys(filtersFromColumns).forEach(function (key) {
newFilters[key] = filtersFromColumns[key];
});
if (isFiltersChanged({ filters: this.sFilters }, newFilters)) {
this.setState({ sFilters: newFilters });
}
}
this.$forceUpdate();
},
components: {
handler: function handler(val, oldVal) {
if (!isTheSameComponents(val, oldVal)) {
var components = createComponents(val);
this.setState({ sComponents: components });
}
},
deep: true
}
},
updated: function updated() {
var columns = this.columns,
sortColumn = this.sSortColumn,
sortOrder = this.sSortOrder;
if (this.getSortOrderColumns(columns).length > 0) {
var sortState = this.getSortStateFromColumns(columns);
if (!isSameColumn(sortState.sSortColumn, sortColumn) || sortState.sSortOrder !== sortOrder) {
this.setState(sortState);
}
}
},
methods: {
getCheckboxPropsByItem: function getCheckboxPropsByItem(item, index) {
var rowSelection = getRowSelection(this.$props);
if (!rowSelection.getCheckboxProps) {
return { props: {} };
}
var key = this.getRecordKey(item, index);
// Cache checkboxProps
if (!this.CheckboxPropsCache[key]) {
this.CheckboxPropsCache[key] = rowSelection.getCheckboxProps(item);
}
this.CheckboxPropsCache[key].props = this.CheckboxPropsCache[key].props || {};
return this.CheckboxPropsCache[key];
},
getDefaultSelection: function getDefaultSelection() {
var _this = this;
var rowSelection = getRowSelection(this.$props);
if (!rowSelection.getCheckboxProps) {
return [];
}
return this.getFlatData().filter(function (item, rowIndex) {
return _this.getCheckboxPropsByItem(item, rowIndex).props.defaultChecked;
}).map(function (record, rowIndex) {
return _this.getRecordKey(record, rowIndex);
});
},
getDefaultPagination: function getDefaultPagination(props) {
var pagination = babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_3___default()(props.pagination) === 'object' ? props.pagination : {};
var current = void 0;
if ('current' in pagination) {
current = pagination.current;
} else if ('defaultCurrent' in pagination) {
current = pagination.defaultCurrent;
}
var pageSize = void 0;
if ('pageSize' in pagination) {
pageSize = pagination.pageSize;
} else if ('defaultPageSize' in pagination) {
pageSize = pagination.defaultPageSize;
}
return this.hasPagination(props) ? babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, defaultPagination, pagination, {
current: current || 1,
pageSize: pageSize || 10
}) : {};
},
getSortOrderColumns: function getSortOrderColumns(columns) {
return Object(_util__WEBPACK_IMPORTED_MODULE_14__["flatFilter"])(columns || this.columns || [], function (column) {
return 'sortOrder' in column;
});
},
getDefaultFilters: function getDefaultFilters(columns) {
var definedFilters = getFiltersFromColumns({ columns: this.columns }, columns);
var defaultFilteredValueColumns = Object(_util__WEBPACK_IMPORTED_MODULE_14__["flatFilter"])(columns || [], function (column) {
return typeof column.defaultFilteredValue !== 'undefined';
});
var defaultFilters = defaultFilteredValueColumns.reduce(function (soFar, col) {
var colKey = getColumnKey(col);
soFar[colKey] = col.defaultFilteredValue;
return soFar;
}, {});
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, defaultFilters, definedFilters);
},
getDefaultSortOrder: function getDefaultSortOrder(columns) {
var definedSortState = this.getSortStateFromColumns(columns);
var defaultSortedColumn = Object(_util__WEBPACK_IMPORTED_MODULE_14__["flatFilter"])(columns || [], function (column) {
return column.defaultSortOrder != null;
})[0];
if (defaultSortedColumn && !definedSortState.sortColumn) {
return {
sSortColumn: defaultSortedColumn,
sSortOrder: defaultSortedColumn.defaultSortOrder
};
}
return definedSortState;
},
getSortStateFromColumns: function getSortStateFromColumns(columns) {
// return first column which sortOrder is not falsy
var sortedColumn = this.getSortOrderColumns(columns).filter(function (col) {
return col.sortOrder;
})[0];
if (sortedColumn) {
return {
sSortColumn: sortedColumn,
sSortOrder: sortedColumn.sortOrder
};
}
return {
sSortColumn: null,
sSortOrder: null
};
},
getMaxCurrent: function getMaxCurrent(total) {
var _sPagination = this.sPagination,
current = _sPagination.current,
pageSize = _sPagination.pageSize;
if ((current - 1) * pageSize >= total) {
return Math.floor((total - 1) / pageSize) + 1;
}
return current;
},
getRecordKey: function getRecordKey(record, index) {
var rowKey = this.rowKey;
var recordKey = typeof rowKey === 'function' ? rowKey(record, index) : record[rowKey];
Object(_util_warning__WEBPACK_IMPORTED_MODULE_24__["default"])(recordKey !== undefined, 'Table', 'Each record in dataSource of table should have a unique `key` prop, ' + 'or set `rowKey` of Table to an unique primary key, ');
return recordKey === undefined ? index : recordKey;
},
getSorterFn: function getSorterFn(state) {
var _ref = state || this.$data,
sortOrder = _ref.sSortOrder,
sortColumn = _ref.sSortColumn;
if (!sortOrder || !sortColumn || typeof sortColumn.sorter !== 'function') {
return;
}
return function (a, b) {
var result = sortColumn.sorter(a, b, sortOrder);
if (result !== 0) {
return sortOrder === 'descend' ? -result : result;
}
return 0;
};
},
getCurrentPageData: function getCurrentPageData() {
var data = this.getLocalData();
this.filterDataCnt = data.length;
var current = void 0;
var pageSize = void 0;
var sPagination = this.sPagination;
// 如果没有分页的话,默认全部展示
if (!this.hasPagination()) {
pageSize = Number.MAX_VALUE;
current = 1;
} else {
pageSize = sPagination.pageSize;
current = this.getMaxCurrent(sPagination.total || data.length);
}
// 分页
// ---
// 当数据量少于等于每页数量时,直接设置数据
// 否则进行读取分页数据
if (data.length > pageSize || pageSize === Number.MAX_VALUE) {
data = data.slice((current - 1) * pageSize, current * pageSize);
}
return data;
},
getFlatData: function getFlatData() {
var childrenColumnName = this.$props.childrenColumnName;
return Object(_util__WEBPACK_IMPORTED_MODULE_14__["flatArray"])(this.getLocalData(null, false), childrenColumnName);
},
getFlatCurrentPageData: function getFlatCurrentPageData() {
var childrenColumnName = this.$props.childrenColumnName;
return Object(_util__WEBPACK_IMPORTED_MODULE_14__["flatArray"])(this.getCurrentPageData(), childrenColumnName);
},
getLocalData: function getLocalData(state) {
var _this2 = this;
var filter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
var currentState = state || this.$data;
var filters = currentState.sFilters;
var dataSource = this.$props.dataSource;
var data = dataSource || [];
// 优化本地排序
data = data.slice(0);
var sorterFn = this.getSorterFn(currentState);
if (sorterFn) {
// 使用新数组,避免改变原数组导致无限循环更新
// https://github.com/vueComponent/ant-design-vue/issues/2270
data = this.recursiveSort([].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(data)), sorterFn);
}
// 筛选
if (filter && filters) {
Object.keys(filters).forEach(function (columnKey) {
var col = _this2.findColumn(columnKey);
if (!col) {
return;
}
var values = filters[columnKey] || [];
if (values.length === 0) {
return;
}
var onFilter = col.onFilter;
data = onFilter ? data.filter(function (record) {
return values.some(function (v) {
return onFilter(v, record);
});
}) : data;
});
}
return data;
},
onRow: function onRow(prefixCls, record, index) {
var customRow = this.customRow;
var custom = customRow ? customRow(record, index) : {};
return Object(_util_props_util__WEBPACK_IMPORTED_MODULE_15__["mergeProps"])(custom, {
props: {
prefixCls: prefixCls,
store: this.store,
rowKey: this.getRecordKey(record, index)
}
});
},
setSelectedRowKeys: function setSelectedRowKeys(selectedRowKeys, selectionInfo) {
var _this3 = this;
var selectWay = selectionInfo.selectWay,
record = selectionInfo.record,
checked = selectionInfo.checked,
changeRowKeys = selectionInfo.changeRowKeys,
nativeEvent = selectionInfo.nativeEvent;
var rowSelection = getRowSelection(this.$props);
if (rowSelection && !('selectedRowKeys' in rowSelection)) {
this.store.selectedRowKeys = selectedRowKeys;
}
var data = this.getFlatData();
if (!rowSelection.onChange && !rowSelection[selectWay]) {
return;
}
var selectedRows = data.filter(function (row, i) {
return selectedRowKeys.indexOf(_this3.getRecordKey(row, i)) >= 0;
});
if (rowSelection.onChange) {
rowSelection.onChange(selectedRowKeys, selectedRows);
}
if (selectWay === 'onSelect' && rowSelection.onSelect) {
rowSelection.onSelect(record, checked, selectedRows, nativeEvent);
} else if (selectWay === 'onSelectMultiple' && rowSelection.onSelectMultiple) {
var changeRows = data.filter(function (row, i) {
return changeRowKeys.indexOf(_this3.getRecordKey(row, i)) >= 0;
});
rowSelection.onSelectMultiple(checked, selectedRows, changeRows);
} else if (selectWay === 'onSelectAll' && rowSelection.onSelectAll) {
var _changeRows = data.filter(function (row, i) {
return changeRowKeys.indexOf(_this3.getRecordKey(row, i)) >= 0;
});
rowSelection.onSelectAll(checked, selectedRows, _changeRows);
} else if (selectWay === 'onSelectInvert' && rowSelection.onSelectInvert) {
rowSelection.onSelectInvert(selectedRowKeys);
}
},
generatePopupContainerFunc: function generatePopupContainerFunc(getPopupContainer) {
var scroll = this.$props.scroll;
var table = this.$refs.vcTable;
if (getPopupContainer) {
return getPopupContainer;
}
// Use undefined to let rc component use default logic.
return scroll && table ? function () {
return table.getTableNode();
} : undefined;
},
scrollToFirstRow: function scrollToFirstRow() {
var _this4 = this;
var scroll = this.$props.scroll;
if (scroll && scroll.scrollToFirstRowOnChange !== false) {
Object(_util_scrollTo__WEBPACK_IMPORTED_MODULE_25__["default"])(0, {
getContainer: function getContainer() {
return _this4.$refs.vcTable.getBodyTable();
}
});
}
},
isSameColumn: function isSameColumn(a, b) {
if (a && b && a.key && a.key === b.key) {
return true;
}
return a === b || shallowequal__WEBPACK_IMPORTED_MODULE_7___default()(a, b, function (value, other) {
if (typeof value === 'function' && typeof other === 'function') {
return value === other || value.toString() === other.toString();
}
});
},
handleFilter: function handleFilter(column, nextFilters) {
var _this5 = this;
var props = this.$props;
var pagination = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, this.sPagination);
var filters = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, this.sFilters, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, getColumnKey(column), nextFilters));
// Remove filters not in current columns
var currentColumnKeys = [];
Object(_util__WEBPACK_IMPORTED_MODULE_14__["treeMap"])(this.columns, function (c) {
if (!c.children) {
currentColumnKeys.push(getColumnKey(c));
}
});
Object.keys(filters).forEach(function (columnKey) {
if (currentColumnKeys.indexOf(columnKey) < 0) {
delete filters[columnKey];
}
});
if (props.pagination) {
// Reset current prop
pagination.current = 1;
pagination.onChange(pagination.current);
}
var newState = {
sPagination: pagination,
sFilters: {}
};
var filtersToSetState = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, filters);
// Remove filters which is controlled
getFilteredValueColumns({ columns: props.columns }).forEach(function (col) {
var columnKey = getColumnKey(col);
if (columnKey) {
delete filtersToSetState[columnKey];
}
});
if (Object.keys(filtersToSetState).length > 0) {
newState.sFilters = filtersToSetState;
}
// Controlled current prop will not respond user interaction
if (babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_3___default()(props.pagination) === 'object' && 'current' in props.pagination) {
newState.sPagination = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, pagination, {
current: this.sPagination.current
});
}
this.setState(newState, function () {
_this5.scrollToFirstRow();
_this5.store.selectionDirty = false;
_this5.$emit.apply(_this5, ['change'].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(_this5.prepareParamsArguments(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, _this5.$data, {
sSelectionDirty: false,
sFilters: filters,
sPagination: pagination
})))));
});
},
handleSelect: function handleSelect(record, rowIndex, e) {
var _this6 = this;
var checked = e.target.checked;
var nativeEvent = e.nativeEvent;
var defaultSelection = this.store.selectionDirty ? [] : this.getDefaultSelection();
var selectedRowKeys = this.store.selectedRowKeys.concat(defaultSelection);
var key = this.getRecordKey(record, rowIndex);
var pivot = this.$data.pivot;
var rows = this.getFlatCurrentPageData();
var realIndex = rowIndex;
if (this.$props.expandedRowRender) {
realIndex = rows.findIndex(function (row) {
return _this6.getRecordKey(row, rowIndex) === key;
});
}
if (nativeEvent.shiftKey && pivot !== undefined && realIndex !== pivot) {
var changeRowKeys = [];
var direction = Math.sign(pivot - realIndex);
var dist = Math.abs(pivot - realIndex);
var step = 0;
var _loop = function _loop() {
var i = realIndex + step * direction;
step += 1;
var row = rows[i];
var rowKey = _this6.getRecordKey(row, i);
var checkboxProps = _this6.getCheckboxPropsByItem(row, i);
if (!checkboxProps.disabled) {
if (selectedRowKeys.includes(rowKey)) {
if (!checked) {
selectedRowKeys = selectedRowKeys.filter(function (j) {
return rowKey !== j;
});
changeRowKeys.push(rowKey);
}
} else if (checked) {
selectedRowKeys.push(rowKey);
changeRowKeys.push(rowKey);
}
}
};
while (step <= dist) {
_loop();
}
this.setState({ pivot: realIndex });
this.store.selectionDirty = true;
this.setSelectedRowKeys(selectedRowKeys, {
selectWay: 'onSelectMultiple',
record: record,
checked: checked,
changeRowKeys: changeRowKeys,
nativeEvent: nativeEvent
});
} else {
if (checked) {
selectedRowKeys.push(this.getRecordKey(record, realIndex));
} else {
selectedRowKeys = selectedRowKeys.filter(function (i) {
return key !== i;
});
}
this.setState({ pivot: realIndex });
this.store.selectionDirty = true;
this.setSelectedRowKeys(selectedRowKeys, {
selectWay: 'onSelect',
record: record,
checked: checked,
changeRowKeys: undefined,
nativeEvent: nativeEvent
});
}
},
handleRadioSelect: function handleRadioSelect(record, rowIndex, e) {
var checked = e.target.checked;
var nativeEvent = e.nativeEvent;
var key = this.getRecordKey(record, rowIndex);
var selectedRowKeys = [key];
this.store.selectionDirty = true;
this.setSelectedRowKeys(selectedRowKeys, {
selectWay: 'onSelect',
record: record,
checked: checked,
changeRowKeys: undefined,
nativeEvent: nativeEvent
});
},
handleSelectRow: function handleSelectRow(selectionKey, index, onSelectFunc) {
var _this7 = this;
var data = this.getFlatCurrentPageData();
var defaultSelection = this.store.selectionDirty ? [] : this.getDefaultSelection();
var selectedRowKeys = this.store.selectedRowKeys.concat(defaultSelection);
var changeableRowKeys = data.filter(function (item, i) {
return !_this7.getCheckboxPropsByItem(item, i).props.disabled;
}).map(function (item, i) {
return _this7.getRecordKey(item, i);
});
var changeRowKeys = [];
var selectWay = 'onSelectAll';
var checked = void 0;
// handle default selection
switch (selectionKey) {
case 'all':
changeableRowKeys.forEach(function (key) {
if (selectedRowKeys.indexOf(key) < 0) {
selectedRowKeys.push(key);
changeRowKeys.push(key);
}
});
selectWay = 'onSelectAll';
checked = true;
break;
case 'removeAll':
changeableRowKeys.forEach(function (key) {
if (selectedRowKeys.indexOf(key) >= 0) {
selectedRowKeys.splice(selectedRowKeys.indexOf(key), 1);
changeRowKeys.push(key);
}
});
selectWay = 'onSelectAll';
checked = false;
break;
case 'invert':
changeableRowKeys.forEach(function (key) {
if (selectedRowKeys.indexOf(key) < 0) {
selectedRowKeys.push(key);
} else {
selectedRowKeys.splice(selectedRowKeys.indexOf(key), 1);
}
changeRowKeys.push(key);
selectWay = 'onSelectInvert';
});
break;
default:
break;
}
this.store.selectionDirty = true;
// when select custom selection, callback selections[n].onSelect
var rowSelection = this.rowSelection;
var customSelectionStartIndex = 2;
if (rowSelection && rowSelection.hideDefaultSelections) {
customSelectionStartIndex = 0;
}
if (index >= customSelectionStartIndex && typeof onSelectFunc === 'function') {
return onSelectFunc(changeableRowKeys);
}
this.setSelectedRowKeys(selectedRowKeys, {
selectWay: selectWay,
checked: checked,
changeRowKeys: changeRowKeys
});
},
handlePageChange: function handlePageChange(current) {
var props = this.$props;
var pagination = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, this.sPagination);
if (current) {
pagination.current = current;
} else {
pagination.current = pagination.current || 1;
}
for (var _len = arguments.length, otherArguments = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
otherArguments[_key - 1] = arguments[_key];
}
pagination.onChange.apply(pagination, [pagination.current].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(otherArguments)));
var newState = {
sPagination: pagination
};
// Controlled current prop will not respond user interaction
if (props.pagination && babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_3___default()(props.pagination) === 'object' && 'current' in props.pagination) {
newState.sPagination = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, pagination, {
current: this.sPagination.current
});
}
this.setState(newState, this.scrollToFirstRow);
this.store.selectionDirty = false;
this.$emit.apply(this, ['change'].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(this.prepareParamsArguments(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, this.$data, {
sSelectionDirty: false,
sPagination: pagination
})))));
},
handleShowSizeChange: function handleShowSizeChange(current, pageSize) {
var pagination = this.sPagination;
pagination.onShowSizeChange(current, pageSize);
var nextPagination = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, pagination, {
pageSize: pageSize,
current: current
});
this.setState({ sPagination: nextPagination }, this.scrollToFirstRow);
this.$emit.apply(this, ['change'].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(this.prepareParamsArguments(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, this.$data, {
sPagination: nextPagination
})))));
},
toggleSortOrder: function toggleSortOrder(column) {
var sortDirections = column.sortDirections || this.sortDirections;
var sortOrder = this.sSortOrder,
sortColumn = this.sSortColumn;
// 只同时允许一列进行排序,否则会导致排序顺序的逻辑问题
var newSortOrder = void 0;
// 切换另一列时,丢弃 sortOrder 的状态
if (isSameColumn(sortColumn, column) && sortOrder !== undefined) {
// 按照sortDirections的内容依次切换排序状态
var methodIndex = sortDirections.indexOf(sortOrder) + 1;
newSortOrder = methodIndex === sortDirections.length ? undefined : sortDirections[methodIndex];
} else {
newSortOrder = sortDirections[0];
}
var newState = {
sSortOrder: newSortOrder,
sSortColumn: newSortOrder ? column : null
};
// Controlled
if (this.getSortOrderColumns().length === 0) {
this.setState(newState, this.scrollToFirstRow);
}
this.$emit.apply(this, ['change'].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(this.prepareParamsArguments(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, this.$data, newState), column))));
},
hasPagination: function hasPagination(props) {
return (props || this.$props).pagination !== false;
},
isSortColumn: function isSortColumn(column) {
var sortColumn = this.sSortColumn;
if (!column || !sortColumn) {
return false;
}
return getColumnKey(sortColumn) === getColumnKey(column);
},
// Get pagination, filters, sorter
prepareParamsArguments: function prepareParamsArguments(state, column) {
var pagination = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, state.sPagination);
// remove useless handle function in Table.onChange
delete pagination.onChange;
delete pagination.onShowSizeChange;
var filters = state.sFilters;
var sorter = {};
var currentColumn = column;
if (state.sSortColumn && state.sSortOrder) {
currentColumn = state.sSortColumn;
sorter.column = state.sSortColumn;
sorter.order = state.sSortOrder;
}
if (currentColumn) {
sorter.field = currentColumn.dataIndex;
sorter.columnKey = getColumnKey(currentColumn);
}
var extra = {
currentDataSource: this.getLocalData(state)
};
return [pagination, filters, sorter, extra];
},
findColumn: function findColumn(myKey) {
var column = void 0;
Object(_util__WEBPACK_IMPORTED_MODULE_14__["treeMap"])(this.columns, function (c) {
if (getColumnKey(c) === myKey) {
column = c;
}
});
return column;
},
recursiveSort: function recursiveSort(data, sorterFn) {
var _this8 = this;
var _childrenColumnName = this.childrenColumnName,
childrenColumnName = _childrenColumnName === undefined ? 'children' : _childrenColumnName;
return data.sort(sorterFn).map(function (item) {
return item[childrenColumnName] ? babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, item, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, childrenColumnName, _this8.recursiveSort([].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(item[childrenColumnName])), sorterFn))) : item;
});
},
renderExpandIcon: function renderExpandIcon(prefixCls) {
var h = this.$createElement;
return function (_ref2) {
var expandable = _ref2.expandable,
expanded = _ref2.expanded,
needIndentSpaced = _ref2.needIndentSpaced,
record = _ref2.record,
onExpand = _ref2.onExpand;
if (expandable) {
return h(
_locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_22__["default"],
{
attrs: { componentName: 'Table', defaultLocale: _locale_provider_default__WEBPACK_IMPORTED_MODULE_23__["default"].Table }
},
[function (locale) {
var _classNames;
return h(_util_transButton__WEBPACK_IMPORTED_MODULE_26__["default"], {
'class': classnames__WEBPACK_IMPORTED_MODULE_6___default()(prefixCls + '-row-expand-icon', (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-row-collapsed', !expanded), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-row-expanded', expanded), _classNames)),
on: {
'click': function click(event) {
onExpand(record, event);
}
},
attrs: {
'aria-label': expanded ? locale.collapse : locale.expand,
noStyle: true
}
});
}]
);
}
if (needIndentSpaced) {
return h('span', { 'class': prefixCls + '-row-expand-icon ' + prefixCls + '-row-spaced' });
}
return null;
};
},
renderPagination: function renderPagination(prefixCls, paginationPosition) {
var h = this.$createElement;
// 强制不需要分页
if (!this.hasPagination()) {
return null;
}
var size = 'default';
var pagination = this.sPagination;
if (pagination.size) {
size = pagination.size;
} else if (this.size === 'middle' || this.size === 'small') {
size = 'small';
}
var position = pagination.position || 'bottom';
var total = pagination.total || this.filterDataCnt;
var cls = pagination['class'],
style = pagination.style,
onChange = pagination.onChange,
onShowSizeChange = pagination.onShowSizeChange,
restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(pagination, ['class', 'style', 'onChange', 'onShowSizeChange']); // eslint-disable-line
var paginationProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_15__["mergeProps"])({
key: 'pagination-' + paginationPosition,
'class': classnames__WEBPACK_IMPORTED_MODULE_6___default()(cls, prefixCls + '-pagination'),
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, restProps, {
total: total,
size: size,
current: this.getMaxCurrent(total)
}),
style: style,
on: {
change: this.handlePageChange,
showSizeChange: this.handleShowSizeChange
}
});
return total > 0 && (position === paginationPosition || position === 'both') ? h(_pagination__WEBPACK_IMPORTED_MODULE_19__["default"], paginationProps) : null;
},
renderSelectionBox: function renderSelectionBox(type) {
var _this9 = this;
var h = this.$createElement;
return function (_, record, index) {
var rowKey = _this9.getRecordKey(record, index); // 从 1 开始
var props = _this9.getCheckboxPropsByItem(record, index);
var handleChange = function handleChange(e) {
type === 'radio' ? _this9.handleRadioSelect(record, index, e) : _this9.handleSelect(record, index, e);
};
var selectionBoxProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_15__["mergeProps"])({
props: {
type: type,
store: _this9.store,
rowIndex: rowKey,
defaultSelection: _this9.getDefaultSelection()
},
on: {
change: handleChange
}
}, props);
return h(
'span',
{
on: {
'click': stopPropagation
}
},
[h(_SelectionBox__WEBPACK_IMPORTED_MODULE_9__["default"], selectionBoxProps)]
);
};
},
renderRowSelection: function renderRowSelection(_ref3) {
var _this10 = this;
var prefixCls = _ref3.prefixCls,
locale = _ref3.locale,
getPopupContainer = _ref3.getPopupContainer;
var h = this.$createElement;
var rowSelection = this.rowSelection;
var columns = this.columns.concat();
if (rowSelection) {
var data = this.getFlatCurrentPageData().filter(function (item, index) {
if (rowSelection.getCheckboxProps) {
return !_this10.getCheckboxPropsByItem(item, index).props.disabled;
}
return true;
});
var selectionColumnClass = classnames__WEBPACK_IMPORTED_MODULE_6___default()(prefixCls + '-selection-column', babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, prefixCls + '-selection-column-custom', rowSelection.selections));
var selectionColumn = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({
key: 'selection-column',
customRender: this.renderSelectionBox(rowSelection.type),
className: selectionColumnClass,
fixed: rowSelection.fixed,
width: rowSelection.columnWidth,
title: rowSelection.columnTitle
}, _vc_table__WEBPACK_IMPORTED_MODULE_5__["INTERNAL_COL_DEFINE"], {
'class': prefixCls + '-selection-col'
});
if (rowSelection.type !== 'radio') {
var checkboxAllDisabled = data.every(function (item, index) {
return _this10.getCheckboxPropsByItem(item, index).props.disabled;
});
selectionColumn.title = selectionColumn.title || h(_SelectionCheckboxAll__WEBPACK_IMPORTED_MODULE_10__["default"], {
attrs: {
store: this.store,
locale: locale,
data: data,
getCheckboxPropsByItem: this.getCheckboxPropsByItem,
getRecordKey: this.getRecordKey,
disabled: checkboxAllDisabled,
prefixCls: prefixCls,
selections: rowSelection.selections,
hideDefaultSelections: rowSelection.hideDefaultSelections,
getPopupContainer: this.generatePopupContainerFunc(getPopupContainer)
},
on: {
'select': this.handleSelectRow
}
});
}
if ('fixed' in rowSelection) {
selectionColumn.fixed = rowSelection.fixed;
} else if (columns.some(function (column) {
return column.fixed === 'left' || column.fixed === true;
})) {
selectionColumn.fixed = 'left';
}
if (columns[0] && columns[0].key === 'selection-column') {
columns[0] = selectionColumn;
} else {
columns.unshift(selectionColumn);
}
}
return columns;
},
renderColumnsDropdown: function renderColumnsDropdown(_ref4) {
var _this11 = this;
var prefixCls = _ref4.prefixCls,
dropdownPrefixCls = _ref4.dropdownPrefixCls,
columns = _ref4.columns,
locale = _ref4.locale,
getPopupContainer = _ref4.getPopupContainer;
var h = this.$createElement;
var sortOrder = this.sSortOrder,
filters = this.sFilters;
return Object(_util__WEBPACK_IMPORTED_MODULE_14__["treeMap"])(columns, function (column, i) {
var _classNames3;
var key = getColumnKey(column, i);
var filterDropdown = void 0;
var sortButton = void 0;
var customHeaderCell = column.customHeaderCell;
var isSortColumn = _this11.isSortColumn(column);
if (column.filters && column.filters.length > 0 || column.filterDropdown) {
var colFilters = key in filters ? filters[key] : [];
filterDropdown = h(_filterDropdown__WEBPACK_IMPORTED_MODULE_8__["default"], {
attrs: {
_propsSymbol: Symbol(),
locale: locale,
column: column,
selectedKeys: colFilters,
confirmFilter: _this11.handleFilter,
prefixCls: prefixCls + '-filter',
dropdownPrefixCls: dropdownPrefixCls || 'ant-dropdown',
getPopupContainer: _this11.generatePopupContainerFunc(getPopupContainer)
},
key: 'filter-dropdown'
});
}
if (column.sorter) {
var sortDirections = column.sortDirections || _this11.sortDirections;
var isAscend = isSortColumn && sortOrder === 'ascend';
var isDescend = isSortColumn && sortOrder === 'descend';
var ascend = sortDirections.indexOf('ascend') !== -1 && h(_icon__WEBPACK_IMPORTED_MODULE_20__["default"], {
'class': prefixCls + '-column-sorter-up ' + (isAscend ? 'on' : 'off'),
attrs: { type: 'caret-up',
theme: 'filled'
},
key: 'caret-up'
});
var descend = sortDirections.indexOf('descend') !== -1 && h(_icon__WEBPACK_IMPORTED_MODULE_20__["default"], {
'class': prefixCls + '-column-sorter-down ' + (isDescend ? 'on' : 'off'),
attrs: { type: 'caret-down',
theme: 'filled'
},
key: 'caret-down'
});
sortButton = h(
'div',
{
attrs: {
title: locale.sortTitle
},
'class': classnames__WEBPACK_IMPORTED_MODULE_6___default()(prefixCls + '-column-sorter-inner', ascend && descend && prefixCls + '-column-sorter-inner-full'),
key: 'sorter'
},
[ascend, descend]
);
customHeaderCell = function customHeaderCell(col) {
var colProps = {};
// Get original first
if (column.customHeaderCell) {
colProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, column.customHeaderCell(col));
}
colProps.on = colProps.on || {};
// Add sorter logic
var onHeaderCellClick = colProps.on.click;
colProps.on.click = function () {
_this11.toggleSortOrder(column);
if (onHeaderCellClick) {
onHeaderCellClick.apply(undefined, arguments);
}
};
return colProps;
};
}
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, column, {
className: classnames__WEBPACK_IMPORTED_MODULE_6___default()(column.className, (_classNames3 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames3, prefixCls + '-column-has-actions', sortButton || filterDropdown), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames3, prefixCls + '-column-has-filters', filterDropdown), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames3, prefixCls + '-column-has-sorters', sortButton), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames3, prefixCls + '-column-sort', isSortColumn && sortOrder), _classNames3)),
title: [h(
'span',
{ key: 'title', 'class': prefixCls + '-header-column' },
[h(
'div',
{ 'class': sortButton ? prefixCls + '-column-sorters' : undefined },
[h(
'span',
{ 'class': prefixCls + '-column-title' },
[_this11.renderColumnTitle(column.title)]
), h(
'span',
{ 'class': prefixCls + '-column-sorter' },
[sortButton]
)]
)]
), filterDropdown],
customHeaderCell: customHeaderCell
});
});
},
renderColumnTitle: function renderColumnTitle(title) {
var _$data = this.$data,
filters = _$data.sFilters,
sortOrder = _$data.sSortOrder,
sortColumn = _$data.sSortColumn;
// https://github.com/ant-design/ant-design/issues/11246#issuecomment-405009167
if (title instanceof Function) {
return title({
filters: filters,
sortOrder: sortOrder,
sortColumn: sortColumn
});
}
return title;
},
renderTable: function renderTable(_ref5) {
var _classNames4,
_this12 = this;
var prefixCls = _ref5.prefixCls,
renderEmpty = _ref5.renderEmpty,
dropdownPrefixCls = _ref5.dropdownPrefixCls,
contextLocale = _ref5.contextLocale,
contextGetPopupContainer = _ref5.getPopupContainer,
transformCellText = _ref5.transformCellText;
var h = this.$createElement;
var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_15__["getOptionProps"])(this),
showHeader = _getOptionProps.showHeader,
locale = _getOptionProps.locale,
getPopupContainer = _getOptionProps.getPopupContainer,
restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(_getOptionProps, ['showHeader', 'locale', 'getPopupContainer']);
var data = this.getCurrentPageData();
var expandIconAsCell = this.expandedRowRender && this.expandIconAsCell !== false;
// use props.getPopupContainer first
var realGetPopupContainer = getPopupContainer || contextGetPopupContainer;
// Merge too locales
var mergedLocale = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, contextLocale, locale);
if (!locale || !locale.emptyText) {
mergedLocale.emptyText = renderEmpty(h, 'Table');
}
var classString = classnames__WEBPACK_IMPORTED_MODULE_6___default()((_classNames4 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames4, prefixCls + '-' + this.size, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames4, prefixCls + '-bordered', this.bordered), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames4, prefixCls + '-empty', !data.length), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames4, prefixCls + '-without-column-header', !showHeader), _classNames4));
var columnsWithRowSelection = this.renderRowSelection({
prefixCls: prefixCls,
locale: mergedLocale,
getPopupContainer: realGetPopupContainer
});
var columns = this.renderColumnsDropdown({
columns: columnsWithRowSelection,
prefixCls: prefixCls,
dropdownPrefixCls: dropdownPrefixCls,
locale: mergedLocale,
getPopupContainer: realGetPopupContainer
}).map(function (column, i) {
var newColumn = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, column);
newColumn.key = getColumnKey(newColumn, i);
return newColumn;
});
var expandIconColumnIndex = columns[0] && columns[0].key === 'selection-column' ? 1 : 0;
if ('expandIconColumnIndex' in restProps) {
expandIconColumnIndex = restProps.expandIconColumnIndex;
}
var vcTableProps = {
key: 'table',
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({
expandIcon: this.renderExpandIcon(prefixCls)
}, restProps, {
customRow: function customRow(record, index) {
return _this12.onRow(prefixCls, record, index);
},
components: this.sComponents,
prefixCls: prefixCls,
data: data,
columns: columns,
showHeader: showHeader,
expandIconColumnIndex: expandIconColumnIndex,
expandIconAsCell: expandIconAsCell,
emptyText: mergedLocale.emptyText,
transformCellText: transformCellText
}),
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_15__["getListeners"])(this),
'class': classString,
ref: 'vcTable'
};
return h(_vc_table__WEBPACK_IMPORTED_MODULE_5__["default"], vcTableProps);
}
},
render: function render() {
var _this13 = this;
var h = arguments[0];
var customizePrefixCls = this.prefixCls,
customizeDropdownPrefixCls = this.dropdownPrefixCls,
customizeTransformCellText = this.transformCellText;
var data = this.getCurrentPageData();
var _configProvider = this.configProvider,
getContextPopupContainer = _configProvider.getPopupContainer,
tct = _configProvider.transformCellText;
var getPopupContainer = this.getPopupContainer || getContextPopupContainer;
var transformCellText = customizeTransformCellText || tct;
var loading = this.loading;
if (typeof loading === 'boolean') {
loading = {
props: {
spinning: loading
}
};
} else {
loading = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, loading)
};
}
var getPrefixCls = this.configProvider.getPrefixCls;
var renderEmpty = this.configProvider.renderEmpty;
var prefixCls = getPrefixCls('table', customizePrefixCls);
var dropdownPrefixCls = getPrefixCls('dropdown', customizeDropdownPrefixCls);
var table = h(_locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_22__["default"], {
attrs: {
componentName: 'Table',
defaultLocale: _locale_provider_default__WEBPACK_IMPORTED_MODULE_23__["default"].Table,
children: function children(locale) {
return _this13.renderTable({
prefixCls: prefixCls,
renderEmpty: renderEmpty,
dropdownPrefixCls: dropdownPrefixCls,
contextLocale: locale,
getPopupContainer: getPopupContainer,
transformCellText: transformCellText
});
}
}
});
// if there is no pagination or no data,
// the height of spin should decrease by half of pagination
var paginationPatchClass = this.hasPagination() && data && data.length !== 0 ? prefixCls + '-with-pagination' : prefixCls + '-without-pagination';
var spinProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_4___default()({}, loading, {
'class': loading.props && loading.props.spinning ? paginationPatchClass + ' ' + prefixCls + '-spin-holder' : ''
});
return h(
'div',
{ 'class': classnames__WEBPACK_IMPORTED_MODULE_6___default()(prefixCls + '-wrapper') },
[h(
_spin__WEBPACK_IMPORTED_MODULE_21__["default"],
spinProps,
[this.renderPagination(prefixCls, 'top'), table, this.renderPagination(prefixCls, 'bottom')]
)]
);
}
});
/***/ }),
/***/ "./components/table/createBodyRow.jsx":
/*!********************************************!*\
!*** ./components/table/createBodyRow.jsx ***!
\********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return createBodyRow; });
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
var BodyRowProps = {
store: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
rowKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number]),
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string
};
function createBodyRow() {
var Component = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'tr';
var BodyRow = {
name: 'BodyRow',
props: BodyRowProps,
computed: {
selected: function selected() {
return this.$props.store.selectedRowKeys.indexOf(this.$props.rowKey) >= 0;
}
},
render: function render() {
var h = arguments[0];
var className = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, this.prefixCls + '-row-selected', this.selected);
return h(
Component,
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ 'class': className }, { on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this) }]),
[this.$slots['default']]
);
}
};
return BodyRow;
}
/***/ }),
/***/ "./components/table/filterDropdown.jsx":
/*!*********************************************!*\
!*** ./components/table/filterDropdown.jsx ***!
\*********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _vc_menu__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../vc-menu */ "./components/vc-menu/index.js");
/* harmony import */ var dom_closest__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! dom-closest */ "./node_modules/dom-closest/index.js");
/* harmony import */ var dom_closest__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(dom_closest__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! shallowequal */ "./node_modules/shallowequal/index.js");
/* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(shallowequal__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _dropdown__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../dropdown */ "./components/dropdown/index.js");
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
/* harmony import */ var _checkbox__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../checkbox */ "./components/checkbox/index.js");
/* harmony import */ var _radio__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../radio */ "./components/radio/index.js");
/* harmony import */ var _FilterDropdownMenuWrapper__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./FilterDropdownMenuWrapper */ "./components/table/FilterDropdownMenuWrapper.jsx");
/* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./interface */ "./components/table/interface.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./util */ "./components/table/util.js");
function stopPropagation(e) {
e.stopPropagation();
}
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'FilterMenu',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_14__["default"]],
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["initDefaultProps"])(_interface__WEBPACK_IMPORTED_MODULE_11__["FilterMenuProps"], {
handleFilter: function handleFilter() {},
column: {}
}),
data: function data() {
var visible = 'filterDropdownVisible' in this.column ? this.column.filterDropdownVisible : false;
this.preProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getOptionProps"])(this));
return {
sSelectedKeys: this.selectedKeys,
sKeyPathOfSelectedItem: {}, // 记录所有有选中子菜单的祖先菜单
sVisible: visible,
sValueKeys: Object(_util__WEBPACK_IMPORTED_MODULE_15__["generateValueMaps"])(this.column.filters)
};
},
watch: {
_propsSymbol: function _propsSymbol() {
var nextProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getOptionProps"])(this);
var column = nextProps.column;
var newState = {};
/**
* if the state is visible the component should ignore updates on selectedKeys prop to avoid
* that the user selection is lost
* this happens frequently when a table is connected on some sort of realtime data
* Fixes https://github.com/ant-design/ant-design/issues/10289 and
* https://github.com/ant-design/ant-design/issues/10209
*/
if ('selectedKeys' in nextProps && !shallowequal__WEBPACK_IMPORTED_MODULE_5___default()(this.preProps.selectedKeys, nextProps.selectedKeys)) {
newState.sSelectedKeys = nextProps.selectedKeys;
}
if (!shallowequal__WEBPACK_IMPORTED_MODULE_5___default()((this.preProps.column || {}).filters, (nextProps.column || {}).filters)) {
newState.sValueKeys = Object(_util__WEBPACK_IMPORTED_MODULE_15__["generateValueMaps"])(nextProps.column.filters);
}
if ('filterDropdownVisible' in column) {
newState.sVisible = column.filterDropdownVisible;
}
if (Object.keys(newState).length > 0) {
this.setState(newState);
}
this.preProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, nextProps);
}
},
mounted: function mounted() {
var _this = this;
var column = this.column;
this.$nextTick(function () {
_this.setNeverShown(column);
});
},
updated: function updated() {
var _this2 = this;
var column = this.column;
this.$nextTick(function () {
_this2.setNeverShown(column);
});
},
methods: {
getDropdownVisible: function getDropdownVisible() {
return this.neverShown ? false : this.sVisible;
},
setNeverShown: function setNeverShown(column) {
var rootNode = this.$el;
var filterBelongToScrollBody = !!dom_closest__WEBPACK_IMPORTED_MODULE_3___default()(rootNode, '.ant-table-scroll');
if (filterBelongToScrollBody) {
// When fixed column have filters, there will be two dropdown menus
// Filter dropdown menu inside scroll body should never be shown
// To fix https://github.com/ant-design/ant-design/issues/5010 and
// https://github.com/ant-design/ant-design/issues/7909
this.neverShown = !!column.fixed;
}
},
setSelectedKeys: function setSelectedKeys(_ref) {
var selectedKeys = _ref.selectedKeys;
this.setState({ sSelectedKeys: selectedKeys });
},
setVisible: function setVisible(visible) {
var column = this.column;
if (!('filterDropdownVisible' in column)) {
this.setState({ sVisible: visible });
}
if (column.onFilterDropdownVisibleChange) {
column.onFilterDropdownVisibleChange(visible);
}
},
handleClearFilters: function handleClearFilters() {
this.setState({
sSelectedKeys: []
}, this.handleConfirm);
},
handleConfirm: function handleConfirm() {
var _this3 = this;
this.setVisible(false);
this.confirmFilter2();
// Call `setSelectedKeys` & `confirm` in the same time will make filter data not up to date
// https://github.com/ant-design/ant-design/issues/12284
this.$forceUpdate();
this.$nextTick(function () {
_this3.confirmFilter;
});
},
onVisibleChange: function onVisibleChange(visible) {
this.setVisible(visible);
var column = this.$props.column;
// https://github.com/ant-design/ant-design/issues/17833
if (!visible && !(column.filterDropdown instanceof Function)) {
this.confirmFilter2();
}
},
handleMenuItemClick: function handleMenuItemClick(info) {
var selectedKeys = this.$data.sSelectedKeys;
if (!info.keyPath || info.keyPath.length <= 1) {
return;
}
var keyPathOfSelectedItem = this.$data.sKeyPathOfSelectedItem;
if (selectedKeys && selectedKeys.indexOf(info.key) >= 0) {
// deselect SubMenu child
delete keyPathOfSelectedItem[info.key];
} else {
// select SubMenu child
keyPathOfSelectedItem[info.key] = info.keyPath;
}
this.setState({ sKeyPathOfSelectedItem: keyPathOfSelectedItem });
},
hasSubMenu: function hasSubMenu() {
var _column$filters = this.column.filters,
filters = _column$filters === undefined ? [] : _column$filters;
return filters.some(function (item) {
return !!(item.children && item.children.length > 0);
});
},
confirmFilter2: function confirmFilter2() {
var _$props = this.$props,
column = _$props.column,
propSelectedKeys = _$props.selectedKeys,
confirmFilter = _$props.confirmFilter;
var _$data = this.$data,
selectedKeys = _$data.sSelectedKeys,
valueKeys = _$data.sValueKeys;
var filterDropdown = column.filterDropdown;
if (!shallowequal__WEBPACK_IMPORTED_MODULE_5___default()(selectedKeys, propSelectedKeys)) {
confirmFilter(column, filterDropdown ? selectedKeys : selectedKeys.map(function (key) {
return valueKeys[key];
}).filter(function (key) {
return key !== undefined;
}));
}
},
renderMenus: function renderMenus(items) {
var _this4 = this;
var h = this.$createElement;
var _$props2 = this.$props,
dropdownPrefixCls = _$props2.dropdownPrefixCls,
prefixCls = _$props2.prefixCls;
return items.map(function (item) {
if (item.children && item.children.length > 0) {
var sKeyPathOfSelectedItem = _this4.sKeyPathOfSelectedItem;
var containSelected = Object.keys(sKeyPathOfSelectedItem).some(function (key) {
return sKeyPathOfSelectedItem[key].indexOf(item.value) >= 0;
});
var subMenuCls = classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls + '-dropdown-submenu', babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, dropdownPrefixCls + '-submenu-contain-selected', containSelected));
return h(
_vc_menu__WEBPACK_IMPORTED_MODULE_2__["SubMenu"],
{
attrs: { title: item.text, popupClassName: subMenuCls },
key: item.value },
[_this4.renderMenus(item.children)]
);
}
return _this4.renderMenuItem(item);
});
},
renderFilterIcon: function renderFilterIcon() {
var _classNames2;
var h = this.$createElement;
var column = this.column,
locale = this.locale,
prefixCls = this.prefixCls,
selectedKeys = this.selectedKeys;
var filtered = selectedKeys && selectedKeys.length > 0;
var filterIcon = column.filterIcon;
if (typeof filterIcon === 'function') {
filterIcon = filterIcon(filtered, column);
}
var dropdownIconClass = classnames__WEBPACK_IMPORTED_MODULE_4___default()((_classNames2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, prefixCls + '-selected', 'filtered' in column ? column.filtered : filtered), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, prefixCls + '-open', this.getDropdownVisible()), _classNames2));
if (!filterIcon) {
return h(_icon__WEBPACK_IMPORTED_MODULE_7__["default"], {
attrs: {
title: locale.filterTitle,
type: 'filter',
theme: 'filled'
},
'class': dropdownIconClass,
on: {
'click': stopPropagation
}
});
}
if (filterIcon.length === 1 && Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["isValidElement"])(filterIcon[0])) {
return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_13__["cloneElement"])(filterIcon[0], {
on: {
click: stopPropagation
},
'class': classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls + '-icon', dropdownIconClass)
});
}
return h(
'span',
{ 'class': classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls + '-icon', dropdownIconClass) },
[filterIcon]
);
},
renderMenuItem: function renderMenuItem(item) {
var h = this.$createElement;
var column = this.column;
var selectedKeys = this.$data.sSelectedKeys;
var multiple = 'filterMultiple' in column ? column.filterMultiple : true;
var input = multiple ? h(_checkbox__WEBPACK_IMPORTED_MODULE_8__["default"], {
attrs: { checked: selectedKeys && selectedKeys.indexOf(item.value) >= 0 }
}) : h(_radio__WEBPACK_IMPORTED_MODULE_9__["default"], {
attrs: { checked: selectedKeys && selectedKeys.indexOf(item.value) >= 0 }
});
return h(
_vc_menu__WEBPACK_IMPORTED_MODULE_2__["Item"],
{ key: item.value },
[input, h('span', [item.text])]
);
}
},
render: function render() {
var _this5 = this;
var h = arguments[0];
var originSelectedKeys = this.$data.sSelectedKeys;
var column = this.column,
locale = this.locale,
prefixCls = this.prefixCls,
dropdownPrefixCls = this.dropdownPrefixCls,
getPopupContainer = this.getPopupContainer;
// default multiple selection in filter dropdown
var multiple = 'filterMultiple' in column ? column.filterMultiple : true;
var dropdownMenuClass = classnames__WEBPACK_IMPORTED_MODULE_4___default()(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, dropdownPrefixCls + '-menu-without-submenu', !this.hasSubMenu()));
var filterDropdown = column.filterDropdown;
if (filterDropdown instanceof Function) {
filterDropdown = filterDropdown({
prefixCls: dropdownPrefixCls + '-custom',
setSelectedKeys: function setSelectedKeys(selectedKeys) {
return _this5.setSelectedKeys({ selectedKeys: selectedKeys });
},
selectedKeys: originSelectedKeys,
confirm: this.handleConfirm,
clearFilters: this.handleClearFilters,
filters: column.filters,
visible: this.getDropdownVisible(),
column: column
});
}
var menus = filterDropdown ? h(
_FilterDropdownMenuWrapper__WEBPACK_IMPORTED_MODULE_10__["default"],
{ 'class': prefixCls + '-dropdown' },
[filterDropdown]
) : h(
_FilterDropdownMenuWrapper__WEBPACK_IMPORTED_MODULE_10__["default"],
{ 'class': prefixCls + '-dropdown' },
[h(
_vc_menu__WEBPACK_IMPORTED_MODULE_2__["default"],
{
attrs: {
multiple: multiple,
prefixCls: dropdownPrefixCls + '-menu',
selectedKeys: originSelectedKeys && originSelectedKeys.map(function (val) {
return val;
}),
getPopupContainer: getPopupContainer
},
on: {
'click': this.handleMenuItemClick,
'select': this.setSelectedKeys,
'deselect': this.setSelectedKeys
},
'class': dropdownMenuClass
},
[this.renderMenus(column.filters)]
), h(
'div',
{ 'class': prefixCls + '-dropdown-btns' },
[h(
'a',
{ 'class': prefixCls + '-dropdown-link confirm', on: {
'click': this.handleConfirm
}
},
[locale.filterConfirm]
), h(
'a',
{ 'class': prefixCls + '-dropdown-link clear', on: {
'click': this.handleClearFilters
}
},
[locale.filterReset]
)]
)]
);
return h(
_dropdown__WEBPACK_IMPORTED_MODULE_6__["default"],
{
attrs: {
trigger: ['click'],
placement: 'bottomRight',
visible: this.getDropdownVisible(),
getPopupContainer: getPopupContainer,
forceRender: true
},
on: {
'visibleChange': this.onVisibleChange
}
},
[h(
'template',
{ slot: 'overlay' },
[menus]
), this.renderFilterIcon()]
);
}
});
/***/ }),
/***/ "./components/table/index.jsx":
/*!************************************!*\
!*** ./components/table/index.jsx ***!
\************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Table__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Table */ "./components/table/Table.jsx");
/* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
/* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vue */ "vue");
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
vue__WEBPACK_IMPORTED_MODULE_4___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_3___default.a, { name: 'ant-ref' });
var Table = {
name: 'ATable',
Column: _Table__WEBPACK_IMPORTED_MODULE_2__["default"].Column,
ColumnGroup: _Table__WEBPACK_IMPORTED_MODULE_2__["default"].ColumnGroup,
props: _Table__WEBPACK_IMPORTED_MODULE_2__["default"].props,
methods: {
normalize: function normalize() {
var _this = this;
var elements = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
var columns = [];
elements.forEach(function (element) {
if (!element.tag) {
return;
}
var key = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getKey"])(element);
var style = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getStyle"])(element);
var cls = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getClass"])(element);
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(element);
var events = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getEvents"])(element);
var listeners = {};
Object.keys(events).forEach(function (e) {
/*
Convert events on template Column to function props onPropAbcChange in Table.columns prop.
If you write template code like below:
<Column @prop-abc-change="f1" @update:prop-abc="f2" :prop-abc.sync="dataAbc" />
You will get these events:
{
'prop-abc-change': this.f1,
'update:prop-abc': [this.f2, e => this.dataAbc = e],
'update:propAbc': e => this.dataAbc = e,
}
All of these events would be treat as column.onPropAbcChange,
but only one of them will be valid, which can not be determined.
*/
var k = void 0;
if (e.startsWith('update:')) {
k = 'on-' + e.substr('update:'.length) + '-change';
} else {
k = 'on-' + e;
}
listeners[Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["camelize"])(k)] = events[e];
});
var _getSlots = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getSlots"])(element),
children = _getSlots['default'],
restSlots = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_getSlots, ['default']);
var column = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, restSlots, props, { style: style, 'class': cls }, listeners);
if (key) {
column.key = key;
}
if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getSlotOptions"])(element).__ANT_TABLE_COLUMN_GROUP) {
column.children = _this.normalize(typeof children === 'function' ? children() : children);
} else {
var customRender = element.data && element.data.scopedSlots && element.data.scopedSlots['default'];
column.customRender = column.customRender || customRender;
}
columns.push(column);
});
return columns;
},
updateColumns: function updateColumns() {
var _this2 = this;
var cols = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
var columns = [];
var $slots = this.$slots,
$scopedSlots = this.$scopedSlots;
cols.forEach(function (col) {
var _col$slots = col.slots,
slots = _col$slots === undefined ? {} : _col$slots,
_col$scopedSlots = col.scopedSlots,
scopedSlots = _col$scopedSlots === undefined ? {} : _col$scopedSlots,
restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(col, ['slots', 'scopedSlots']);
var column = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, restProps);
Object.keys(slots).forEach(function (key) {
var name = slots[key];
if (column[key] === undefined && $slots[name]) {
column[key] = $slots[name].length === 1 ? $slots[name][0] : $slots[name];
}
});
Object.keys(scopedSlots).forEach(function (key) {
var name = scopedSlots[key];
if (column[key] === undefined && $scopedSlots[name]) {
column[key] = $scopedSlots[name];
}
});
// if (slotScopeName && $scopedSlots[slotScopeName]) {
// column.customRender = column.customRender || $scopedSlots[slotScopeName]
// }
if (col.children) {
column.children = _this2.updateColumns(column.children);
}
columns.push(column);
});
return columns;
}
},
render: function render() {
var h = arguments[0];
var $slots = this.$slots,
normalize = this.normalize,
$scopedSlots = this.$scopedSlots;
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
var columns = props.columns ? this.updateColumns(props.columns) : normalize($slots['default']);
var title = props.title,
footer = props.footer;
var slotTitle = $scopedSlots.title,
slotFooter = $scopedSlots.footer,
_$scopedSlots$expande = $scopedSlots.expandedRowRender,
expandedRowRender = _$scopedSlots$expande === undefined ? props.expandedRowRender : _$scopedSlots$expande;
title = title || slotTitle;
footer = footer || slotFooter;
var tProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
columns: columns,
title: title,
footer: footer,
expandedRowRender: expandedRowRender
}),
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this)
};
return h(_Table__WEBPACK_IMPORTED_MODULE_2__["default"], tProps);
}
};
/* istanbul ignore next */
Table.install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_6__["default"]);
Vue.component(Table.name, Table);
Vue.component(Table.Column.name, Table.Column);
Vue.component(Table.ColumnGroup.name, Table.ColumnGroup);
};
/* harmony default export */ __webpack_exports__["default"] = (Table);
/***/ }),
/***/ "./components/table/interface.js":
/*!***************************************!*\
!*** ./components/table/interface.js ***!
\***************************************/
/*! exports provided: ColumnFilterItem, ColumnProps, TableLocale, RowSelectionType, TableRowSelection, TableProps, SelectionCheckboxAllProps, SelectionBoxProps, FilterMenuProps */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColumnFilterItem", function() { return ColumnFilterItem; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColumnProps", function() { return ColumnProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TableLocale", function() { return TableLocale; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RowSelectionType", function() { return RowSelectionType; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TableRowSelection", function() { return TableRowSelection; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TableProps", function() { return TableProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SelectionCheckboxAllProps", function() { return SelectionCheckboxAllProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SelectionBoxProps", function() { return SelectionBoxProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FilterMenuProps", function() { return FilterMenuProps; });
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _pagination__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../pagination */ "./components/pagination/index.js");
/* harmony import */ var _spin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../spin */ "./components/spin/index.js");
var PaginationProps = Object(_pagination__WEBPACK_IMPORTED_MODULE_2__["PaginationProps"])();
var SpinProps = Object(_spin__WEBPACK_IMPORTED_MODULE_3__["SpinProps"])();
// export type CompareFn<T> = ((a: T, b: T) => number);
var ColumnFilterItem = _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].shape({
text: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
children: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array
}).loose;
var ColumnProps = {
title: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
// key?: React.Key;
dataIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
customRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
customCell: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
customHeaderCell: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
align: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['left', 'right', 'center']),
ellipsis: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
filters: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(ColumnFilterItem),
// onFilter: (value: any, record: T) => PropTypes.bool,
filterMultiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
filterDropdown: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
filterDropdownVisible: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
// onFilterDropdownVisibleChange?: (visible: boolean) => void;
sorter: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].boolean, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func]),
defaultSortOrder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['ascend', 'descend']),
colSpan: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
width: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number]),
className: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
fixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['left', 'right'])]),
filterIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
filteredValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
filtered: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
defaultFilteredValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
sortOrder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['ascend', 'descend'])]),
sortDirections: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array
// children?: ColumnProps<T>[];
// onCellClick?: (record: T, event: any) => void;
// onCell?: (record: T) => any;
// onHeaderCell?: (props: ColumnProps<T>) => any;
};
// export interface TableComponents {
// table?: any;
// header?: {
// wrapper?: any;
// row?: any;
// cell?: any;
// };
// body?: {
// wrapper?: any;
// row?: any;
// cell?: any;
// };
// }
var TableLocale = _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].shape({
filterTitle: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
filterConfirm: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
filterReset: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
emptyText: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
selectAll: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
selectInvert: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
sortTitle: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
expand: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
collapse: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string
}).loose;
var RowSelectionType = _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['checkbox', 'radio']);
// export type SelectionSelectFn<T> = (record: T, selected: boolean, selectedRows: Object[]) => any;
var TableRowSelection = {
type: RowSelectionType,
selectedRowKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
// onChange?: (selectedRowKeys: string[] | number[], selectedRows: Object[]) => any;
getCheckboxProps: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
// onSelect?: SelectionSelectFn<T>;
// onSelectAll?: (selected: boolean, selectedRows: Object[], changeRows: Object[]) => any;
// onSelectInvert?: (selectedRows: Object[]) => any;
selections: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool]),
hideDefaultSelections: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
fixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
columnWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number]),
selectWay: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['onSelect', 'onSelectMultiple', 'onSelectAll', 'onSelectInvert']),
columnTitle: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
};
var TableProps = {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
dropdownPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
rowSelection: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].shape(TableRowSelection).loose, null]),
pagination: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].shape(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, PaginationProps, {
position: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['top', 'bottom', 'both'])
})).loose, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool]),
size: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['default', 'middle', 'small', 'large']),
dataSource: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
components: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
columns: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
rowKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func]),
rowClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
expandedRowRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
defaultExpandAllRows: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
defaultExpandedRowKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
expandedRowKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
expandIconAsCell: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
expandIconColumnIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
expandRowByClick: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
// onExpandedRowsChange?: (expandedRowKeys: string[] | number[]) => void;
// onExpand?: (expanded: boolean, record: T) => void;
// onChange?: (pagination: PaginationProps | boolean, filters: string[], sorter: Object) => any;
loading: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].shape(SpinProps).loose, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool]),
locale: TableLocale,
indentSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
// onRowClick?: (record: T, index: number, event: Event) => any;
customRow: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
customHeaderRow: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
useFixedHeader: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
bordered: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
showHeader: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
footer: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
title: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
scroll: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
childrenColumnName: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string]),
bodyStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
sortDirections: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
tableLayout: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
expandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
transformCellText: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
// className?: PropTypes.string,
// style?: React.CSSProperties;
// children?: React.ReactNode;
};
// export interface TableStateFilters {
// [key: string]: string[];
// }
// export interface TableState<T> {
// pagination: PaginationProps;
// filters: TableStateFilters;
// sortColumn: ColumnProps<T> | null;
// sortOrder: PropTypes.string,
// }
// export type SelectionItemSelectFn = (key: string[]) => any;
// export interface SelectionItem {
// key: PropTypes.string,
// text: PropTypes.any,
// onSelect: SelectionItemSelectFn;
// }
var SelectionCheckboxAllProps = {
store: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
getCheckboxPropsByItem: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
getRecordKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
data: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
// onSelect: (key: string, index: number, selectFunc: any) => void;
hideDefaultSelections: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
selections: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool]),
getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
};
// export interface SelectionCheckboxAllState {
// checked: PropTypes.bool,
// indeterminate: PropTypes.bool,
// }
var SelectionBoxProps = {
store: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
type: RowSelectionType,
defaultSelection: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number]),
rowIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number]),
name: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
id: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string
// onChange: React.ChangeEventHandler<HTMLInputElement>;
};
// export interface SelectionBoxState {
// checked?: PropTypes.bool,
// }
var FilterMenuProps = {
_propsSymbol: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
locale: TableLocale,
selectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number]),
column: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
confirmFilter: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
dropdownPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
handleFilter: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
};
// export interface FilterMenuState {
// selectedKeys: string[];
// keyPathOfSelectedItem: { [key: string]: string };
// visible?: PropTypes.bool,
// }
/***/ }),
/***/ "./components/table/style/index.js":
/*!*****************************************!*\
!*** ./components/table/style/index.js ***!
\*****************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/table/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _empty_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../empty/style */ "./components/empty/style/index.js");
/* harmony import */ var _radio_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../radio/style */ "./components/radio/style/index.js");
/* harmony import */ var _checkbox_style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../checkbox/style */ "./components/checkbox/style/index.js");
/* harmony import */ var _dropdown_style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../dropdown/style */ "./components/dropdown/style/index.js");
/* harmony import */ var _spin_style__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../spin/style */ "./components/spin/style/index.js");
/* harmony import */ var _pagination_style__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../pagination/style */ "./components/pagination/style/index.js");
// style dependencies
// deps-lint-skip: menu
/***/ }),
/***/ "./components/table/style/index.less":
/*!*******************************************!*\
!*** ./components/table/style/index.less ***!
\*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/table/util.js":
/*!**********************************!*\
!*** ./components/table/util.js ***!
\**********************************/
/*! exports provided: flatArray, treeMap, flatFilter, generateValueMaps */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "flatArray", function() { return flatArray; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "treeMap", function() { return treeMap; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "flatFilter", function() { return flatFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "generateValueMaps", function() { return generateValueMaps; });
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
function flatArray() {
var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
var childrenName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'children';
var result = [];
var loop = function loop(array) {
array.forEach(function (item) {
if (item[childrenName]) {
var newItem = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, item);
delete newItem[childrenName];
result.push(newItem);
if (item[childrenName].length > 0) {
loop(item[childrenName]);
}
} else {
result.push(item);
}
});
};
loop(data);
return result;
}
function treeMap(tree, mapper) {
var childrenName = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'children';
return tree.map(function (node, index) {
var extra = {};
if (node[childrenName]) {
extra[childrenName] = treeMap(node[childrenName], mapper, childrenName);
}
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, mapper(node, index), extra);
});
}
function flatFilter(tree, callback) {
return tree.reduce(function (acc, node) {
if (callback(node)) {
acc.push(node);
}
if (node.children) {
var children = flatFilter(node.children, callback);
acc.push.apply(acc, babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(children));
}
return acc;
}, []);
}
// export function normalizeColumns (elements) {
// const columns = []
// React.Children.forEach(elements, (element) => {
// if (!React.isValidElement(element)) {
// return
// }
// const column = {
// ...element.props,
// }
// if (element.key) {
// column.key = element.key
// }
// if (element.type && element.type.__ANT_TABLE_COLUMN_GROUP) {
// column.children = normalizeColumns(column.children)
// }
// columns.push(column)
// })
// return columns
// }
function generateValueMaps(items) {
var maps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
(items || []).forEach(function (_ref) {
var value = _ref.value,
children = _ref.children;
maps[value.toString()] = value;
generateValueMaps(children, maps);
});
return maps;
}
/***/ }),
/***/ "./components/tabs/TabBar.jsx":
/*!************************************!*\
!*** ./components/tabs/TabBar.jsx ***!
\************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
/* harmony import */ var _vc_tabs_src_ScrollableInkTabBar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../vc-tabs/src/ScrollableInkTabBar */ "./components/vc-tabs/src/ScrollableInkTabBar.jsx");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
var TabBar = {
name: 'TabBar',
inheritAttrs: false,
props: {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
tabBarStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object,
tabBarExtraContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
type: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['line', 'card', 'editable-card']),
tabPosition: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['top', 'right', 'bottom', 'left']).def('top'),
tabBarPosition: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['top', 'right', 'bottom', 'left']),
size: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['default', 'small', 'large']),
animated: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object]),
renderTabBar: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
panels: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array.def([]),
activeKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number]),
tabBarGutter: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number
},
render: function render() {
var _cls;
var h = arguments[0];
var _$props = this.$props,
tabBarStyle = _$props.tabBarStyle,
_$props$animated = _$props.animated,
animated = _$props$animated === undefined ? true : _$props$animated,
renderTabBar = _$props.renderTabBar,
tabBarExtraContent = _$props.tabBarExtraContent,
tabPosition = _$props.tabPosition,
prefixCls = _$props.prefixCls,
_$props$type = _$props.type,
type = _$props$type === undefined ? 'line' : _$props$type,
size = _$props.size;
var inkBarAnimated = (typeof animated === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2___default()(animated)) === 'object' ? animated.inkBar : animated;
var isVertical = tabPosition === 'left' || tabPosition === 'right';
var prevIconType = isVertical ? 'up' : 'left';
var nextIconType = isVertical ? 'down' : 'right';
var prevIcon = h(
'span',
{ 'class': prefixCls + '-tab-prev-icon' },
[h(_icon__WEBPACK_IMPORTED_MODULE_3__["default"], {
attrs: { type: prevIconType },
'class': prefixCls + '-tab-prev-icon-target' })]
);
var nextIcon = h(
'span',
{ 'class': prefixCls + '-tab-next-icon' },
[h(_icon__WEBPACK_IMPORTED_MODULE_3__["default"], {
attrs: { type: nextIconType },
'class': prefixCls + '-tab-next-icon-target' })]
);
// Additional className for style usage
var cls = (_cls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-' + tabPosition + '-bar', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-' + size + '-bar', !!size), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-card-bar', type && type.indexOf('card') >= 0), _cls);
var renderProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.$props, this.$attrs, {
inkBarAnimated: inkBarAnimated,
extraContent: tabBarExtraContent,
prevIcon: prevIcon,
nextIcon: nextIcon
}),
style: tabBarStyle,
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this),
'class': cls
};
var RenderTabBar = void 0;
if (renderTabBar) {
RenderTabBar = renderTabBar(renderProps, _vc_tabs_src_ScrollableInkTabBar__WEBPACK_IMPORTED_MODULE_4__["default"]);
// https://github.com/vueComponent/ant-design-vue/issues/2157
return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_5__["cloneElement"])(RenderTabBar, renderProps);
} else {
return h(_vc_tabs_src_ScrollableInkTabBar__WEBPACK_IMPORTED_MODULE_4__["default"], renderProps);
}
}
};
/* harmony default export */ __webpack_exports__["default"] = (TabBar);
/***/ }),
/***/ "./components/tabs/index.js":
/*!**********************************!*\
!*** ./components/tabs/index.js ***!
\**********************************/
/*! exports provided: default, TabPane, TabContent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
/* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ "vue");
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _tabs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./tabs */ "./components/tabs/tabs.jsx");
/* harmony import */ var _vc_tabs_src_TabPane__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../vc-tabs/src/TabPane */ "./components/vc-tabs/src/TabPane.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabPane", function() { return _vc_tabs_src_TabPane__WEBPACK_IMPORTED_MODULE_4__["default"]; });
/* harmony import */ var _vc_tabs_src_TabContent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vc-tabs/src/TabContent */ "./components/vc-tabs/src/TabContent.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabContent", function() { return _vc_tabs_src_TabContent__WEBPACK_IMPORTED_MODULE_5__["default"]; });
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
_tabs__WEBPACK_IMPORTED_MODULE_3__["default"].TabPane = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _vc_tabs_src_TabPane__WEBPACK_IMPORTED_MODULE_4__["default"], { name: 'ATabPane', __ANT_TAB_PANE: true });
_tabs__WEBPACK_IMPORTED_MODULE_3__["default"].TabContent = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _vc_tabs_src_TabContent__WEBPACK_IMPORTED_MODULE_5__["default"], { name: 'ATabContent' });
vue__WEBPACK_IMPORTED_MODULE_2___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_1___default.a, { name: 'ant-ref' });
/* istanbul ignore next */
_tabs__WEBPACK_IMPORTED_MODULE_3__["default"].install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_6__["default"]);
Vue.component(_tabs__WEBPACK_IMPORTED_MODULE_3__["default"].name, _tabs__WEBPACK_IMPORTED_MODULE_3__["default"]);
Vue.component(_tabs__WEBPACK_IMPORTED_MODULE_3__["default"].TabPane.name, _tabs__WEBPACK_IMPORTED_MODULE_3__["default"].TabPane);
Vue.component(_tabs__WEBPACK_IMPORTED_MODULE_3__["default"].TabContent.name, _tabs__WEBPACK_IMPORTED_MODULE_3__["default"].TabContent);
};
/* harmony default export */ __webpack_exports__["default"] = (_tabs__WEBPACK_IMPORTED_MODULE_3__["default"]);
/***/ }),
/***/ "./components/tabs/style/index.js":
/*!****************************************!*\
!*** ./components/tabs/style/index.js ***!
\****************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/tabs/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/***/ }),
/***/ "./components/tabs/style/index.less":
/*!******************************************!*\
!*** ./components/tabs/style/index.less ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/tabs/tabs.jsx":
/*!**********************************!*\
!*** ./components/tabs/tabs.jsx ***!
\**********************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
/* harmony import */ var _vc_tabs_src__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vc-tabs/src */ "./components/vc-tabs/src/index.js");
/* harmony import */ var _vc_tabs_src_TabContent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../vc-tabs/src/TabContent */ "./components/vc-tabs/src/TabContent.jsx");
/* harmony import */ var _util_styleChecker__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/styleChecker */ "./components/_util/styleChecker.js");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _util_isValid__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/isValid */ "./components/_util/isValid.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _TabBar__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./TabBar */ "./components/tabs/TabBar.jsx");
/* harmony default export */ __webpack_exports__["default"] = ({
TabPane: _vc_tabs_src__WEBPACK_IMPORTED_MODULE_5__["TabPane"],
name: 'ATabs',
model: {
prop: 'activeKey',
event: 'change'
},
props: {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].string,
activeKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].number]),
defaultActiveKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].number]),
hideAdd: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].bool.def(false),
tabBarStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].object,
tabBarExtraContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].any,
destroyInactiveTabPane: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].bool.def(false),
type: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].oneOf(['line', 'card', 'editable-card']),
tabPosition: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].oneOf(['top', 'right', 'bottom', 'left']).def('top'),
size: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].oneOf(['default', 'small', 'large']),
animated: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].object]),
tabBarGutter: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].number,
renderTabBar: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].func
},
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__["ConfigConsumerProps"];
} }
},
mounted: function mounted() {
var NO_FLEX = ' no-flex';
var tabNode = this.$el;
if (tabNode && !_util_styleChecker__WEBPACK_IMPORTED_MODULE_7__["isFlexSupported"] && tabNode.className.indexOf(NO_FLEX) === -1) {
tabNode.className += NO_FLEX;
}
},
methods: {
removeTab: function removeTab(targetKey, e) {
e.stopPropagation();
if (Object(_util_isValid__WEBPACK_IMPORTED_MODULE_11__["default"])(targetKey)) {
this.$emit('edit', targetKey, 'remove');
}
},
handleChange: function handleChange(activeKey) {
this.$emit('change', activeKey);
},
createNewTab: function createNewTab(targetKey) {
this.$emit('edit', targetKey, 'add');
},
onTabClick: function onTabClick(val) {
this.$emit('tabClick', val);
},
onPrevClick: function onPrevClick(val) {
this.$emit('prevClick', val);
},
onNextClick: function onNextClick(val) {
this.$emit('nextClick', val);
}
},
render: function render() {
var _cls,
_this = this,
_contentCls;
var h = arguments[0];
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getOptionProps"])(this);
var customizePrefixCls = props.prefixCls,
size = props.size,
_props$type = props.type,
type = _props$type === undefined ? 'line' : _props$type,
tabPosition = props.tabPosition,
_props$animated = props.animated,
animated = _props$animated === undefined ? true : _props$animated,
hideAdd = props.hideAdd,
renderTabBar = props.renderTabBar;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('tabs', customizePrefixCls);
var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["filterEmpty"])(this.$slots['default']);
var tabBarExtraContent = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(this, 'tabBarExtraContent');
var tabPaneAnimated = (typeof animated === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_3___default()(animated)) === 'object' ? animated.tabPane : animated;
// card tabs should not have animation
if (type !== 'line') {
tabPaneAnimated = 'animated' in props ? tabPaneAnimated : false;
}
var cls = (_cls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_cls, prefixCls + '-vertical', tabPosition === 'left' || tabPosition === 'right'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_cls, prefixCls + '-' + size, !!size), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_cls, prefixCls + '-card', type.indexOf('card') >= 0), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_cls, prefixCls + '-' + type, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_cls, prefixCls + '-no-animation', !tabPaneAnimated), _cls);
// only card type tabs can be added and closed
var childrenWithClose = [];
if (type === 'editable-card') {
childrenWithClose = [];
children.forEach(function (child, index) {
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getOptionProps"])(child);
var closable = props.closable;
closable = typeof closable === 'undefined' ? true : closable;
var closeIcon = closable ? h(_icon__WEBPACK_IMPORTED_MODULE_4__["default"], {
attrs: {
type: 'close'
},
'class': prefixCls + '-close-x',
on: {
'click': function click(e) {
return _this.removeTab(child.key, e);
}
}
}) : null;
childrenWithClose.push(Object(_util_vnode__WEBPACK_IMPORTED_MODULE_10__["cloneElement"])(child, {
props: {
tab: h(
'div',
{ 'class': closable ? undefined : prefixCls + '-tab-unclosable' },
[Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(child, 'tab'), closeIcon]
)
},
key: child.key || index
}));
});
// Add new tab handler
if (!hideAdd) {
tabBarExtraContent = h('span', [h(_icon__WEBPACK_IMPORTED_MODULE_4__["default"], {
attrs: { type: 'plus' },
'class': prefixCls + '-new-tab', on: {
'click': this.createNewTab
}
}), tabBarExtraContent]);
}
}
tabBarExtraContent = tabBarExtraContent ? h(
'div',
{ 'class': prefixCls + '-extra-content' },
[tabBarExtraContent]
) : null;
var renderTabBarSlot = renderTabBar || this.$scopedSlots.renderTabBar;
var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getListeners"])(this);
var tabBarProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.$props, {
prefixCls: prefixCls,
tabBarExtraContent: tabBarExtraContent,
renderTabBar: renderTabBarSlot
}),
on: listeners
};
var contentCls = (_contentCls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_contentCls, prefixCls + '-' + tabPosition + '-content', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_contentCls, prefixCls + '-card-content', type.indexOf('card') >= 0), _contentCls);
var tabsProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getOptionProps"])(this), {
prefixCls: prefixCls,
tabBarPosition: tabPosition,
// https://github.com/vueComponent/ant-design-vue/issues/2030
// 如仅传递 tabBarProps 会导致,第二次执行 renderTabBar 时,丢失 on 属性,
// 添加key之后会在babel jsx 插件中做一次merge最终TabBar接收的是一个新的对象而不是 tabBarProps
renderTabBar: function renderTabBar() {
return h(_TabBar__WEBPACK_IMPORTED_MODULE_13__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ key: 'tabBar' }, tabBarProps]));
},
renderTabContent: function renderTabContent() {
return h(_vc_tabs_src_TabContent__WEBPACK_IMPORTED_MODULE_6__["default"], { 'class': contentCls, attrs: { animated: tabPaneAnimated, animatedWithMargin: true }
});
},
children: childrenWithClose.length > 0 ? childrenWithClose : children,
__propsSymbol__: Symbol()
}),
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, listeners, {
change: this.handleChange
}),
'class': cls
};
return h(_vc_tabs_src__WEBPACK_IMPORTED_MODULE_5__["default"], tabsProps);
}
});
/***/ }),
/***/ "./components/tag/CheckableTag.jsx":
/*!*****************************************!*\
!*** ./components/tag/CheckableTag.jsx ***!
\*****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'ACheckableTag',
model: {
prop: 'checked'
},
props: {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
checked: Boolean
},
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_2__["ConfigConsumerProps"];
} }
},
computed: {
classes: function classes() {
var _ref;
var checked = this.checked,
customizePrefixCls = this.prefixCls;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('tag', customizePrefixCls);
return _ref = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, '' + prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, prefixCls + '-checkable', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, prefixCls + '-checkable-checked', checked), _ref;
}
},
methods: {
handleClick: function handleClick() {
var checked = this.checked;
this.$emit('input', !checked);
this.$emit('change', !checked);
}
},
render: function render() {
var h = arguments[0];
var classes = this.classes,
handleClick = this.handleClick,
$slots = this.$slots;
return h(
'div',
{ 'class': classes, on: {
'click': handleClick
}
},
[$slots['default']]
);
}
});
/***/ }),
/***/ "./components/tag/Tag.jsx":
/*!********************************!*\
!*** ./components/tag/Tag.jsx ***!
\********************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
/* harmony import */ var _util_getTransitionProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/getTransitionProps */ "./components/_util/getTransitionProps.js");
/* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
/* harmony import */ var _util_wave__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/wave */ "./components/_util/wave.jsx");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
var PresetColorTypes = ['pink', 'red', 'yellow', 'orange', 'cyan', 'green', 'blue', 'purple', 'geekblue', 'magenta', 'volcano', 'gold', 'lime'];
var PresetColorRegex = new RegExp('^(' + PresetColorTypes.join('|') + ')(-inverse)?$');
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'ATag',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__["default"]],
model: {
prop: 'visible',
event: 'close.visible'
},
props: {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
color: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
closable: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool.def(false),
visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
afterClose: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func
},
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_9__["ConfigConsumerProps"];
} }
},
data: function data() {
var _visible = true;
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(this);
if ('visible' in props) {
_visible = this.visible;
}
Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(!('afterClose' in props), 'Tag', "'afterClose' will be deprecated, please use 'close' event, we will remove this in the next version.");
return {
_visible: _visible
};
},
watch: {
visible: function visible(val) {
this.setState({
_visible: val
});
}
},
methods: {
setVisible: function setVisible(visible, e) {
this.$emit('close', e);
this.$emit('close.visible', false);
var afterClose = this.afterClose;
if (afterClose) {
// next version remove.
afterClose();
}
if (e.defaultPrevented) {
return;
}
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["hasProp"])(this, 'visible')) {
this.setState({ _visible: visible });
}
},
handleIconClick: function handleIconClick(e) {
e.stopPropagation();
this.setVisible(false, e);
},
isPresetColor: function isPresetColor() {
var color = this.$props.color;
if (!color) {
return false;
}
return PresetColorRegex.test(color);
},
getTagStyle: function getTagStyle() {
var color = this.$props.color;
var isPresetColor = this.isPresetColor();
return {
backgroundColor: color && !isPresetColor ? color : undefined
};
},
getTagClassName: function getTagClassName(prefixCls) {
var _ref;
var color = this.$props.color;
var isPresetColor = this.isPresetColor();
return _ref = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, prefixCls + '-' + color, isPresetColor), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, prefixCls + '-has-color', color && !isPresetColor), _ref;
},
renderCloseIcon: function renderCloseIcon() {
var h = this.$createElement;
var closable = this.$props.closable;
return closable ? h(_icon__WEBPACK_IMPORTED_MODULE_3__["default"], {
attrs: { type: 'close' },
on: {
'click': this.handleIconClick
}
}) : null;
}
},
render: function render() {
var h = arguments[0];
var customizePrefixCls = this.$props.prefixCls;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('tag', customizePrefixCls);
var visible = this.$data._visible;
var tag = h(
'span',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
directives: [{
name: 'show',
value: visible
}]
}, { on: Object(omit_js__WEBPACK_IMPORTED_MODULE_5__["default"])(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this), ['close']) }, {
'class': this.getTagClassName(prefixCls),
style: this.getTagStyle()
}]),
[this.$slots['default'], this.renderCloseIcon()]
);
var transitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_4__["default"])(prefixCls + '-zoom', {
appear: false
});
return h(_util_wave__WEBPACK_IMPORTED_MODULE_6__["default"], [h(
'transition',
transitionProps,
[tag]
)]);
}
});
/***/ }),
/***/ "./components/tag/index.js":
/*!*********************************!*\
!*** ./components/tag/index.js ***!
\*********************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Tag__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Tag */ "./components/tag/Tag.jsx");
/* harmony import */ var _CheckableTag__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CheckableTag */ "./components/tag/CheckableTag.jsx");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
_Tag__WEBPACK_IMPORTED_MODULE_0__["default"].CheckableTag = _CheckableTag__WEBPACK_IMPORTED_MODULE_1__["default"];
/* istanbul ignore next */
_Tag__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_2__["default"]);
Vue.component(_Tag__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Tag__WEBPACK_IMPORTED_MODULE_0__["default"]);
Vue.component(_Tag__WEBPACK_IMPORTED_MODULE_0__["default"].CheckableTag.name, _Tag__WEBPACK_IMPORTED_MODULE_0__["default"].CheckableTag);
};
/* harmony default export */ __webpack_exports__["default"] = (_Tag__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/tag/style/index.js":
/*!***************************************!*\
!*** ./components/tag/style/index.js ***!
\***************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/tag/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/***/ }),
/***/ "./components/tag/style/index.less":
/*!*****************************************!*\
!*** ./components/tag/style/index.less ***!
\*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/time-picker/index.jsx":
/*!******************************************!*\
!*** ./components/time-picker/index.jsx ***!
\******************************************/
/*! exports provided: generateShowHourMinuteSecond, TimePickerProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "generateShowHourMinuteSecond", function() { return generateShowHourMinuteSecond; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TimePickerProps", function() { return TimePickerProps; });
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
/* harmony import */ var _vc_time_picker__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../vc-time-picker */ "./components/vc-time-picker/index.js");
/* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./components/locale-provider/LocaleReceiver.jsx");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
/* harmony import */ var _locale_en_US__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./locale/en_US */ "./components/time-picker/locale/en_US.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
/* harmony import */ var _util_moment_util__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../_util/moment-util */ "./components/_util/moment-util.js");
function generateShowHourMinuteSecond(format) {
// Ref: http://momentjs.com/docs/#/parsing/string-format/
return {
showHour: format.indexOf('H') > -1 || format.indexOf('h') > -1 || format.indexOf('k') > -1,
showMinute: format.indexOf('m') > -1,
showSecond: format.indexOf('s') > -1
};
}
var TimePickerProps = function TimePickerProps() {
return {
size: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOf(['large', 'default', 'small']),
value: _util_moment_util__WEBPACK_IMPORTED_MODULE_14__["TimeOrTimesType"],
defaultValue: _util_moment_util__WEBPACK_IMPORTED_MODULE_14__["TimeOrTimesType"],
open: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
format: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
hideDisabledOptions: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
disabledHours: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
disabledMinutes: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
disabledSeconds: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
use12Hours: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
focusOnOpen: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
hourStep: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number,
minuteStep: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number,
secondStep: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].number,
allowEmpty: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
allowClear: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
inputReadOnly: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
clearText: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
defaultOpenValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object,
popupClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
popupStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object,
suffixIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
align: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object,
placement: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
addon: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
clearIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object,
valueFormat: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string
};
};
var TimePicker = {
name: 'ATimePicker',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__["default"]],
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["initDefaultProps"])(TimePickerProps(), {
align: {
offset: [0, -2]
},
disabled: false,
disabledHours: undefined,
disabledMinutes: undefined,
disabledSeconds: undefined,
hideDisabledOptions: false,
placement: 'bottomLeft',
transitionName: 'slide-up',
focusOnOpen: true,
allowClear: true
}),
model: {
prop: 'value',
event: 'change'
},
provide: function provide() {
return {
savePopupRef: this.savePopupRef
};
},
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__["ConfigConsumerProps"];
} }
},
data: function data() {
var value = this.value,
defaultValue = this.defaultValue,
valueFormat = this.valueFormat;
Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_14__["checkValidate"])('TimePicker', defaultValue, 'defaultValue', valueFormat);
Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_14__["checkValidate"])('TimePicker', value, 'value', valueFormat);
Object(_util_warning__WEBPACK_IMPORTED_MODULE_7__["default"])(!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["hasProp"])(this, 'allowEmpty'), 'TimePicker', '`allowEmpty` is deprecated. Please use `allowClear` instead.');
return {
sValue: Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_14__["stringToMoment"])(value || defaultValue, valueFormat)
};
},
watch: {
value: function value(val) {
Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_14__["checkValidate"])('TimePicker', val, 'value', this.valueFormat);
this.setState({ sValue: Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_14__["stringToMoment"])(val, this.valueFormat) });
}
},
methods: {
getDefaultFormat: function getDefaultFormat() {
var format = this.format,
use12Hours = this.use12Hours;
if (format) {
return format;
} else if (use12Hours) {
return 'h:mm:ss a';
}
return 'HH:mm:ss';
},
getAllowClear: function getAllowClear() {
var _$props = this.$props,
allowClear = _$props.allowClear,
allowEmpty = _$props.allowEmpty;
if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["hasProp"])(this, 'allowClear')) {
return allowClear;
}
return allowEmpty;
},
getDefaultLocale: function getDefaultLocale() {
var defaultLocale = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, _locale_en_US__WEBPACK_IMPORTED_MODULE_9__["default"], this.$props.locale);
return defaultLocale;
},
savePopupRef: function savePopupRef(ref) {
this.popupRef = ref;
},
handleChange: function handleChange(value) {
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["hasProp"])(this, 'value')) {
this.setState({ sValue: value });
}
var _format = this.format,
format = _format === undefined ? 'HH:mm:ss' : _format;
this.$emit('change', this.valueFormat ? Object(_util_moment_util__WEBPACK_IMPORTED_MODULE_14__["momentToString"])(value, this.valueFormat) : value, value && value.format(format) || '');
},
handleOpenClose: function handleOpenClose(_ref) {
var open = _ref.open;
this.$emit('openChange', open);
this.$emit('update:open', open);
},
focus: function focus() {
this.$refs.timePicker.focus();
},
blur: function blur() {
this.$refs.timePicker.blur();
},
renderInputIcon: function renderInputIcon(prefixCls) {
var h = this.$createElement;
var suffixIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["getComponentFromProp"])(this, 'suffixIcon');
suffixIcon = Array.isArray(suffixIcon) ? suffixIcon[0] : suffixIcon;
var clockIcon = suffixIcon && Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["isValidElement"])(suffixIcon) && Object(_util_vnode__WEBPACK_IMPORTED_MODULE_11__["cloneElement"])(suffixIcon, {
'class': prefixCls + '-clock-icon'
}) || h(_icon__WEBPACK_IMPORTED_MODULE_8__["default"], {
attrs: { type: 'clock-circle' },
'class': prefixCls + '-clock-icon' });
return h(
'span',
{ 'class': prefixCls + '-icon' },
[clockIcon]
);
},
renderClearIcon: function renderClearIcon(prefixCls) {
var h = this.$createElement;
var clearIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["getComponentFromProp"])(this, 'clearIcon');
var clearIconPrefixCls = prefixCls + '-clear';
if (clearIcon && Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["isValidElement"])(clearIcon)) {
return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_11__["cloneElement"])(clearIcon, {
'class': clearIconPrefixCls
});
}
return h(_icon__WEBPACK_IMPORTED_MODULE_8__["default"], {
attrs: { type: 'close-circle', theme: 'filled' },
'class': clearIconPrefixCls });
},
renderTimePicker: function renderTimePicker(locale) {
var h = this.$createElement;
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["getOptionProps"])(this);
props = Object(omit_js__WEBPACK_IMPORTED_MODULE_2__["default"])(props, ['defaultValue', 'suffixIcon', 'allowEmpty', 'allowClear']);
var _props = props,
customizePrefixCls = _props.prefixCls,
getPopupContainer = _props.getPopupContainer,
placeholder = _props.placeholder,
size = _props.size;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('time-picker', customizePrefixCls);
var format = this.getDefaultFormat();
var pickerClassName = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, prefixCls + '-' + size, !!size);
var tempAddon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["getComponentFromProp"])(this, 'addon', {}, false);
var pickerAddon = function pickerAddon(panel) {
return tempAddon ? h(
'div',
{ 'class': prefixCls + '-panel-addon' },
[typeof tempAddon === 'function' ? tempAddon(panel) : tempAddon]
) : null;
};
var inputIcon = this.renderInputIcon(prefixCls);
var clearIcon = this.renderClearIcon(prefixCls);
var getContextPopupContainer = this.configProvider.getPopupContainer;
var timeProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, generateShowHourMinuteSecond(format), props, {
allowEmpty: this.getAllowClear(),
prefixCls: prefixCls,
getPopupContainer: getPopupContainer || getContextPopupContainer,
format: format,
value: this.sValue,
placeholder: placeholder === undefined ? locale.placeholder : placeholder,
addon: pickerAddon,
inputIcon: inputIcon,
clearIcon: clearIcon
}),
'class': pickerClassName,
ref: 'timePicker',
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["getListeners"])(this), {
change: this.handleChange,
open: this.handleOpenClose,
close: this.handleOpenClose
})
};
return h(_vc_time_picker__WEBPACK_IMPORTED_MODULE_3__["default"], timeProps);
}
},
render: function render() {
var h = arguments[0];
return h(_locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_4__["default"], {
attrs: {
componentName: 'TimePicker',
defaultLocale: this.getDefaultLocale()
},
scopedSlots: { 'default': this.renderTimePicker }
});
}
};
/* istanbul ignore next */
TimePicker.install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_13__["default"]);
Vue.component(TimePicker.name, TimePicker);
};
/* harmony default export */ __webpack_exports__["default"] = (TimePicker);
/***/ }),
/***/ "./components/time-picker/locale/en_US.js":
/*!************************************************!*\
!*** ./components/time-picker/locale/en_US.js ***!
\************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
var locale = {
placeholder: 'Select time'
};
/* harmony default export */ __webpack_exports__["default"] = (locale);
/***/ }),
/***/ "./components/time-picker/style/index.js":
/*!***********************************************!*\
!*** ./components/time-picker/style/index.js ***!
\***********************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/time-picker/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/***/ }),
/***/ "./components/time-picker/style/index.less":
/*!*************************************************!*\
!*** ./components/time-picker/style/index.less ***!
\*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/timeline/Timeline.jsx":
/*!******************************************!*\
!*** ./components/timeline/Timeline.jsx ***!
\******************************************/
/*! exports provided: TimelineProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TimelineProps", function() { return TimelineProps; });
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _TimelineItem__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./TimelineItem */ "./components/timeline/TimelineItem.jsx");
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
var TimelineProps = {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
/** 指定最后一个幽灵节点是否存在或内容 */
pending: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
pendingDot: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
reverse: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].oneOf(['left', 'alternate', 'right', ''])
};
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'ATimeline',
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["initDefaultProps"])(TimelineProps, {
reverse: false,
mode: ''
}),
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_10__["ConfigConsumerProps"];
} }
},
render: function render() {
var _classNames;
var h = arguments[0];
var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(this),
customizePrefixCls = _getOptionProps.prefixCls,
reverse = _getOptionProps.reverse,
mode = _getOptionProps.mode,
restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3___default()(_getOptionProps, ['prefixCls', 'reverse', 'mode']);
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('timeline', customizePrefixCls);
var pendingDot = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'pendingDot');
var pending = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'pending');
var pendingNode = typeof pending === 'boolean' ? null : pending;
var classString = classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, prefixCls + '-pending', !!pending), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, prefixCls + '-reverse', !!reverse), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, prefixCls + '-' + mode, !!mode), _classNames));
var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["filterEmpty"])(this.$slots['default']);
// // Remove falsy items
// const falsylessItems = filterEmpty(this.$slots.default)
// const items = falsylessItems.map((item, idx) => {
// return cloneElement(item, {
// props: {
// last: falsylessItems.length - 1 === idx,
// },
// })
// })
var pendingItem = pending ? h(
_TimelineItem__WEBPACK_IMPORTED_MODULE_8__["default"],
{
attrs: { pending: !!pending }
},
[h(
'template',
{ slot: 'dot' },
[pendingDot || h(_icon__WEBPACK_IMPORTED_MODULE_9__["default"], {
attrs: { type: 'loading' }
})]
), pendingNode]
) : null;
var timeLineItems = reverse ? [pendingItem].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(children.reverse())) : [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(children), [pendingItem]);
var getPositionCls = function getPositionCls(ele, idx) {
var eleProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getPropsData"])(ele);
if (mode === 'alternate') {
if (eleProps.position === 'right') return prefixCls + '-item-right';
if (eleProps.position === 'left') return prefixCls + '-item-left';
return idx % 2 === 0 ? prefixCls + '-item-left' : prefixCls + '-item-right';
}
if (mode === 'left') return prefixCls + '-item-left';
if (mode === 'right') return prefixCls + '-item-right';
if (eleProps.position === 'right') return prefixCls + '-item-right';
return '';
};
// Remove falsy items
var truthyItems = timeLineItems.filter(function (item) {
return !!item;
});
var itemsCount = truthyItems.length;
var lastCls = prefixCls + '-item-last';
var items = truthyItems.map(function (ele, idx) {
var pendingClass = idx === itemsCount - 2 ? lastCls : '';
var readyClass = idx === itemsCount - 1 ? lastCls : '';
return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_7__["cloneElement"])(ele, {
'class': classnames__WEBPACK_IMPORTED_MODULE_4___default()([!reverse && !!pending ? pendingClass : readyClass, getPositionCls(ele, idx)])
});
});
var timelineProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, restProps),
'class': classString,
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this)
};
return h(
'ul',
timelineProps,
[items]
);
}
});
/***/ }),
/***/ "./components/timeline/TimelineItem.jsx":
/*!**********************************************!*\
!*** ./components/timeline/TimelineItem.jsx ***!
\**********************************************/
/*! exports provided: TimeLineItemProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TimeLineItemProps", function() { return TimeLineItemProps; });
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* 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 _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
var TimeLineItemProps = {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
color: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
dot: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
pending: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
position: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOf(['left', 'right', '']).def('')
};
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'ATimelineItem',
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["initDefaultProps"])(TimeLineItemProps, {
color: 'blue',
pending: false
}),
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_4__["ConfigConsumerProps"];
} }
},
render: function render() {
var _classNames, _classNames2;
var h = arguments[0];
var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getOptionProps"])(this),
customizePrefixCls = _getOptionProps.prefixCls,
_getOptionProps$color = _getOptionProps.color,
color = _getOptionProps$color === undefined ? '' : _getOptionProps$color,
pending = _getOptionProps.pending;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('timeline', customizePrefixCls);
var dot = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'dot');
var itemClassName = classnames__WEBPACK_IMPORTED_MODULE_1___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-item', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-item-pending', pending), _classNames));
var dotClassName = classnames__WEBPACK_IMPORTED_MODULE_1___default()((_classNames2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, prefixCls + '-item-head', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, prefixCls + '-item-head-custom', dot), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, prefixCls + '-item-head-' + color, true), _classNames2));
var liProps = {
'class': itemClassName,
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this)
};
return h(
'li',
liProps,
[h('div', { 'class': prefixCls + '-item-tail' }), h(
'div',
{
'class': dotClassName,
style: { borderColor: /blue|red|green|gray/.test(color) ? undefined : color }
},
[dot]
), h(
'div',
{ 'class': prefixCls + '-item-content' },
[this.$slots['default']]
)]
);
}
});
/***/ }),
/***/ "./components/timeline/index.jsx":
/*!***************************************!*\
!*** ./components/timeline/index.jsx ***!
\***************************************/
/*! exports provided: TimelineProps, TimeLineItemProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Timeline__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Timeline */ "./components/timeline/Timeline.jsx");
/* harmony import */ var _TimelineItem__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./TimelineItem */ "./components/timeline/TimelineItem.jsx");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TimelineProps", function() { return _Timeline__WEBPACK_IMPORTED_MODULE_0__["TimelineProps"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TimeLineItemProps", function() { return _TimelineItem__WEBPACK_IMPORTED_MODULE_1__["TimeLineItemProps"]; });
_Timeline__WEBPACK_IMPORTED_MODULE_0__["default"].Item = _TimelineItem__WEBPACK_IMPORTED_MODULE_1__["default"];
/* istanbul ignore next */
_Timeline__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_2__["default"]);
Vue.component(_Timeline__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Timeline__WEBPACK_IMPORTED_MODULE_0__["default"]);
Vue.component(_TimelineItem__WEBPACK_IMPORTED_MODULE_1__["default"].name, _TimelineItem__WEBPACK_IMPORTED_MODULE_1__["default"]);
};
/* harmony default export */ __webpack_exports__["default"] = (_Timeline__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/timeline/style/index.js":
/*!********************************************!*\
!*** ./components/timeline/style/index.js ***!
\********************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/timeline/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/***/ }),
/***/ "./components/timeline/style/index.less":
/*!**********************************************!*\
!*** ./components/timeline/style/index.less ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/tooltip/Tooltip.jsx":
/*!****************************************!*\
!*** ./components/tooltip/Tooltip.jsx ***!
\****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _vc_tooltip__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../vc-tooltip */ "./components/vc-tooltip/index.js");
/* harmony import */ var _placements__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./placements */ "./components/tooltip/placements.js");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _abstractTooltipProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./abstractTooltipProps */ "./components/tooltip/abstractTooltipProps.js");
var splitObject = function splitObject(obj, keys) {
var picked = {};
var omitted = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, obj);
keys.forEach(function (key) {
if (obj && key in obj) {
picked[key] = obj[key];
delete omitted[key];
}
});
return { picked: picked, omitted: omitted };
};
var props = Object(_abstractTooltipProps__WEBPACK_IMPORTED_MODULE_8__["default"])();
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'ATooltip',
model: {
prop: 'visible',
event: 'visibleChange'
},
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
title: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any
}),
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_7__["ConfigConsumerProps"];
} }
},
data: function data() {
return {
sVisible: !!this.$props.visible || !!this.$props.defaultVisible
};
},
watch: {
visible: function visible(val) {
this.sVisible = val;
}
},
methods: {
onVisibleChange: function onVisibleChange(visible) {
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'visible')) {
this.sVisible = this.isNoTitle() ? false : visible;
}
if (!this.isNoTitle()) {
this.$emit('visibleChange', visible);
}
},
getPopupDomNode: function getPopupDomNode() {
return this.$refs.tooltip.getPopupDomNode();
},
getPlacements: function getPlacements() {
var _$props = this.$props,
builtinPlacements = _$props.builtinPlacements,
arrowPointAtCenter = _$props.arrowPointAtCenter,
autoAdjustOverflow = _$props.autoAdjustOverflow;
return builtinPlacements || Object(_placements__WEBPACK_IMPORTED_MODULE_4__["default"])({
arrowPointAtCenter: arrowPointAtCenter,
verticalArrowShift: 8,
autoAdjustOverflow: autoAdjustOverflow
});
},
// Fix Tooltip won't hide at disabled button
// mouse events don't trigger at disabled button in Chrome
// https://github.com/react-component/tooltip/issues/18
getDisabledCompatibleChildren: function getDisabledCompatibleChildren(ele) {
var h = this.$createElement;
var options = ele.componentOptions && ele.componentOptions.Ctor.options || {};
if ((options.__ANT_BUTTON === true || options.__ANT_SWITCH === true || options.__ANT_CHECKBOX === true) && (ele.componentOptions.propsData.disabled || ele.componentOptions.propsData.disabled === '') || ele.tag === 'button' && ele.data && ele.data.attrs && ele.data.attrs.disabled !== undefined) {
// Pick some layout related style properties up to span
// Prevent layout bugs like https://github.com/ant-design/ant-design/issues/5254
var _splitObject = splitObject(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getStyle"])(ele), ['position', 'left', 'right', 'top', 'bottom', 'float', 'display', 'zIndex']),
picked = _splitObject.picked,
omitted = _splitObject.omitted;
var spanStyle = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
display: 'inline-block' }, picked, {
cursor: 'not-allowed',
width: ele.componentOptions.propsData.block ? '100%' : null
});
var buttonStyle = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, omitted, {
pointerEvents: 'none'
});
var spanCls = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getClass"])(ele);
var child = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(ele, {
style: buttonStyle,
'class': null
});
return h(
'span',
{ style: spanStyle, 'class': spanCls },
[child]
);
}
return ele;
},
isNoTitle: function isNoTitle() {
var title = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'title');
return !title && title !== 0;
},
getOverlay: function getOverlay() {
var title = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'title');
if (title === 0) {
return title;
}
return title || '';
},
// 动态设置动画点
onPopupAlign: function onPopupAlign(domNode, align) {
var placements = this.getPlacements();
// 当前返回的位置
var placement = Object.keys(placements).filter(function (key) {
return placements[key].points[0] === align.points[0] && placements[key].points[1] === align.points[1];
})[0];
if (!placement) {
return;
}
// 根据当前坐标设置动画点
var rect = domNode.getBoundingClientRect();
var transformOrigin = {
top: '50%',
left: '50%'
};
if (placement.indexOf('top') >= 0 || placement.indexOf('Bottom') >= 0) {
transformOrigin.top = rect.height - align.offset[1] + 'px';
} else if (placement.indexOf('Top') >= 0 || placement.indexOf('bottom') >= 0) {
transformOrigin.top = -align.offset[1] + 'px';
}
if (placement.indexOf('left') >= 0 || placement.indexOf('Right') >= 0) {
transformOrigin.left = rect.width - align.offset[0] + 'px';
} else if (placement.indexOf('right') >= 0 || placement.indexOf('Left') >= 0) {
transformOrigin.left = -align.offset[0] + 'px';
}
domNode.style.transformOrigin = transformOrigin.left + ' ' + transformOrigin.top;
}
},
render: function render() {
var h = arguments[0];
var $props = this.$props,
$data = this.$data,
$slots = this.$slots;
var customizePrefixCls = $props.prefixCls,
openClassName = $props.openClassName,
getPopupContainer = $props.getPopupContainer;
var getContextPopupContainer = this.configProvider.getPopupContainer;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('tooltip', customizePrefixCls);
var children = ($slots['default'] || []).filter(function (c) {
return c.tag || c.text.trim() !== '';
});
children = children.length === 1 ? children[0] : children;
var sVisible = $data.sVisible;
// Hide tooltip when there is no title
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'visible') && this.isNoTitle()) {
sVisible = false;
}
if (!children) {
return null;
}
var child = this.getDisabledCompatibleChildren(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["isValidElement"])(children) ? children : h('span', [children]));
var childCls = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, openClassName || prefixCls + '-open', true);
var tooltipProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, $props, {
prefixCls: prefixCls,
getTooltipContainer: getPopupContainer || getContextPopupContainer,
builtinPlacements: this.getPlacements(),
overlay: this.getOverlay(),
visible: sVisible
}),
ref: 'tooltip',
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this), {
visibleChange: this.onVisibleChange,
popupAlign: this.onPopupAlign
})
};
return h(
_vc_tooltip__WEBPACK_IMPORTED_MODULE_3__["default"],
tooltipProps,
[sVisible ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(child, { 'class': childCls }) : child]
);
}
});
/***/ }),
/***/ "./components/tooltip/abstractTooltipProps.js":
/*!****************************************************!*\
!*** ./components/tooltip/abstractTooltipProps.js ***!
\****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
var triggerType = _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['hover', 'focus', 'click', 'contextmenu']);
/* harmony default export */ __webpack_exports__["default"] = (function () {
return {
trigger: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([triggerType, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].arrayOf(triggerType)]).def('hover'),
visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
defaultVisible: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
placement: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['top', 'left', 'right', 'bottom', 'topLeft', 'topRight', 'bottomLeft', 'bottomRight', 'leftTop', 'leftBottom', 'rightTop', 'rightBottom']).def('top'),
transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string.def('zoom-big-fast'),
// onVisibleChange: PropTypes.func,
overlayStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object.def(function () {
return {};
}),
overlayClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
mouseEnterDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(0.1),
mouseLeaveDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(0.1),
getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
arrowPointAtCenter: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
autoAdjustOverflow: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object]).def(true),
destroyTooltipOnHide: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
align: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object.def(function () {
return {};
}),
builtinPlacements: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object
};
});
/***/ }),
/***/ "./components/tooltip/index.js":
/*!*************************************!*\
!*** ./components/tooltip/index.js ***!
\*************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Tooltip */ "./components/tooltip/Tooltip.jsx");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
/* istanbul ignore next */
_Tooltip__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_1__["default"]);
Vue.component(_Tooltip__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Tooltip__WEBPACK_IMPORTED_MODULE_0__["default"]);
};
/* harmony default export */ __webpack_exports__["default"] = (_Tooltip__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/tooltip/placements.js":
/*!******************************************!*\
!*** ./components/tooltip/placements.js ***!
\******************************************/
/*! exports provided: getOverflowOptions, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getOverflowOptions", function() { return getOverflowOptions; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getPlacements; });
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _vc_tooltip_placements__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../vc-tooltip/placements */ "./components/vc-tooltip/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 babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, autoAdjustOverflowDisabled, autoAdjustOverflow);
}
function getPlacements(config) {
var _config$arrowWidth = config.arrowWidth,
arrowWidth = _config$arrowWidth === undefined ? 5 : _config$arrowWidth,
_config$horizontalArr = config.horizontalArrowShift,
horizontalArrowShift = _config$horizontalArr === undefined ? 16 : _config$horizontalArr,
_config$verticalArrow = config.verticalArrowShift,
verticalArrowShift = _config$verticalArrow === undefined ? 12 : _config$verticalArrow,
_config$autoAdjustOve = config.autoAdjustOverflow,
autoAdjustOverflow = _config$autoAdjustOve === undefined ? true : _config$autoAdjustOve;
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] = config.arrowPointAtCenter ? babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, placementMap[key], {
overflow: getOverflowOptions(autoAdjustOverflow),
targetOffset: targetOffset
}) : babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _vc_tooltip_placements__WEBPACK_IMPORTED_MODULE_1__["placements"][key], {
overflow: getOverflowOptions(autoAdjustOverflow)
});
placementMap[key].ignoreShake = true;
});
return placementMap;
}
/***/ }),
/***/ "./components/tooltip/style/index.js":
/*!*******************************************!*\
!*** ./components/tooltip/style/index.js ***!
\*******************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/tooltip/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/***/ }),
/***/ "./components/tooltip/style/index.less":
/*!*********************************************!*\
!*** ./components/tooltip/style/index.less ***!
\*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/transfer/ListItem.jsx":
/*!******************************************!*\
!*** ./components/transfer/ListItem.jsx ***!
\******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _vc_lazy_load__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../vc-lazy-load */ "./components/vc-lazy-load/index.js");
/* harmony import */ var _checkbox__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../checkbox */ "./components/checkbox/index.js");
function noop() {}
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'ListItem',
props: {
renderedText: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
renderedEl: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
item: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
lazy: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object]),
checked: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool
},
render: function render() {
var _classNames,
_this = this;
var h = arguments[0];
var _$props = this.$props,
renderedText = _$props.renderedText,
renderedEl = _$props.renderedEl,
item = _$props.item,
lazy = _$props.lazy,
checked = _$props.checked,
disabled = _$props.disabled,
prefixCls = _$props.prefixCls;
var className = classnames__WEBPACK_IMPORTED_MODULE_3___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-content-item', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-content-item-disabled', disabled || item.disabled), _classNames));
var title = void 0;
if (typeof renderedText === 'string' || typeof renderedText === 'number') {
title = String(renderedText);
}
var listItem = h(
'li',
{
'class': className,
attrs: { title: title
},
on: {
'click': disabled || item.disabled ? noop : function () {
_this.$emit('click', item);
}
}
},
[h(_checkbox__WEBPACK_IMPORTED_MODULE_5__["default"], {
attrs: { checked: checked, disabled: disabled || item.disabled }
}), h(
'span',
{ 'class': prefixCls + '-content-item-text' },
[renderedEl]
)]
);
var children = null;
if (lazy) {
var lazyProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
height: 32,
offset: 500,
throttle: 0,
debounce: false
}, lazy, {
_propsSymbol: Symbol()
})
};
children = h(
_vc_lazy_load__WEBPACK_IMPORTED_MODULE_4__["default"],
lazyProps,
[listItem]
);
} else {
children = listItem;
}
return children;
}
});
/***/ }),
/***/ "./components/transfer/index.jsx":
/*!***************************************!*\
!*** ./components/transfer/index.jsx ***!
\***************************************/
/*! exports provided: TransferDirection, TransferItem, TransferProps, TransferLocale, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferDirection", function() { return TransferDirection; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferItem", function() { return TransferItem; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferProps", function() { return TransferProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferLocale", function() { return TransferLocale; });
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _list__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./list */ "./components/transfer/list.jsx");
/* harmony import */ var _operation__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./operation */ "./components/transfer/operation.jsx");
/* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./components/locale-provider/LocaleReceiver.jsx");
/* harmony import */ var _locale_provider_default__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../locale-provider/default */ "./components/locale-provider/default.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
var TransferDirection = 'left' | 'right';
var TransferItem = {
key: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.isRequired,
title: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.isRequired,
description: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool
};
var TransferProps = {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
dataSource: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].shape(TransferItem).loose),
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].boolean,
targetKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string),
selectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string),
render: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
listStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object]),
operationStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
titles: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string),
operations: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string),
showSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
filterOption: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
searchPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
notFoundContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
rowKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
lazy: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool]),
showSelectAll: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool
};
var TransferLocale = {
titles: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string),
notFoundContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
itemUnit: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
itemsUnit: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string
};
var Transfer = {
name: 'ATransfer',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__["default"]],
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["initDefaultProps"])(TransferProps, {
dataSource: [],
locale: {},
showSearch: false,
listStyle: function listStyle() {}
}),
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_11__["ConfigConsumerProps"];
} }
},
data: function data() {
// vue 中 通过slot不方便传递保留notFoundContent及searchPlaceholder
// warning(
// !(getComponentFromProp(this, 'notFoundContent') || hasProp(this, 'searchPlaceholder')),
// 'Transfer[notFoundContent] and Transfer[searchPlaceholder] will be removed, ' +
// 'please use Transfer[locale] instead.',
// )
var _selectedKeys = this.selectedKeys,
selectedKeys = _selectedKeys === undefined ? [] : _selectedKeys,
_targetKeys = this.targetKeys,
targetKeys = _targetKeys === undefined ? [] : _targetKeys;
return {
leftFilter: '',
rightFilter: '',
sourceSelectedKeys: selectedKeys.filter(function (key) {
return targetKeys.indexOf(key) === -1;
}),
targetSelectedKeys: selectedKeys.filter(function (key) {
return targetKeys.indexOf(key) > -1;
})
};
},
mounted: function mounted() {
// this.currentProps = { ...this.$props }
},
watch: {
targetKeys: function targetKeys() {
this.updateState();
if (this.selectedKeys) {
var targetKeys = this.targetKeys || [];
this.setState({
sourceSelectedKeys: this.selectedKeys.filter(function (key) {
return !targetKeys.includes(key);
}),
targetSelectedKeys: this.selectedKeys.filter(function (key) {
return targetKeys.includes(key);
})
});
}
},
dataSource: function dataSource() {
this.updateState();
},
selectedKeys: function selectedKeys() {
if (this.selectedKeys) {
var targetKeys = this.targetKeys || [];
this.setState({
sourceSelectedKeys: this.selectedKeys.filter(function (key) {
return !targetKeys.includes(key);
}),
targetSelectedKeys: this.selectedKeys.filter(function (key) {
return targetKeys.includes(key);
})
});
}
}
},
methods: {
getSelectedKeysName: function getSelectedKeysName(direction) {
return direction === 'left' ? 'sourceSelectedKeys' : 'targetSelectedKeys';
},
getTitles: function getTitles(transferLocale) {
if (this.titles) {
return this.titles;
}
return transferLocale.titles || ['', ''];
},
getLocale: function getLocale(transferLocale, renderEmpty) {
var h = this.$createElement;
// Keep old locale props still working.
var oldLocale = {
notFoundContent: renderEmpty(h, 'Transfer')
};
var notFoundContent = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'notFoundContent');
if (notFoundContent) {
oldLocale.notFoundContent = notFoundContent;
}
if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["hasProp"])(this, 'searchPlaceholder')) {
oldLocale.searchPlaceholder = this.$props.searchPlaceholder;
}
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, transferLocale, oldLocale, this.$props.locale);
},
updateState: function updateState() {
var sourceSelectedKeys = this.sourceSelectedKeys,
targetSelectedKeys = this.targetSelectedKeys;
this.separatedDataSource = null;
if (!this.selectedKeys) {
// clear key nolonger existed
// clear checkedKeys according to targetKeys
var dataSource = this.dataSource,
_targetKeys2 = this.targetKeys,
targetKeys = _targetKeys2 === undefined ? [] : _targetKeys2;
var newSourceSelectedKeys = [];
var newTargetSelectedKeys = [];
dataSource.forEach(function (_ref) {
var key = _ref.key;
if (sourceSelectedKeys.includes(key) && !targetKeys.includes(key)) {
newSourceSelectedKeys.push(key);
}
if (targetSelectedKeys.includes(key) && targetKeys.includes(key)) {
newTargetSelectedKeys.push(key);
}
});
this.setState({
sourceSelectedKeys: newSourceSelectedKeys,
targetSelectedKeys: newTargetSelectedKeys
});
}
},
moveTo: function moveTo(direction) {
var _$props = this.$props,
_$props$targetKeys = _$props.targetKeys,
targetKeys = _$props$targetKeys === undefined ? [] : _$props$targetKeys,
_$props$dataSource = _$props.dataSource,
dataSource = _$props$dataSource === undefined ? [] : _$props$dataSource;
var sourceSelectedKeys = this.sourceSelectedKeys,
targetSelectedKeys = this.targetSelectedKeys;
var moveKeys = direction === 'right' ? sourceSelectedKeys : targetSelectedKeys;
// filter the disabled options
var newMoveKeys = moveKeys.filter(function (key) {
return !dataSource.some(function (data) {
return !!(key === data.key && data.disabled);
});
});
// move items to target box
var newTargetKeys = direction === 'right' ? newMoveKeys.concat(targetKeys) : targetKeys.filter(function (targetKey) {
return newMoveKeys.indexOf(targetKey) === -1;
});
// empty checked keys
var oppositeDirection = direction === 'right' ? 'left' : 'right';
this.setState(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, this.getSelectedKeysName(oppositeDirection), []));
this.handleSelectChange(oppositeDirection, []);
this.$emit('change', newTargetKeys, direction, newMoveKeys);
},
moveToLeft: function moveToLeft() {
this.moveTo('left');
},
moveToRight: function moveToRight() {
this.moveTo('right');
},
onItemSelectAll: function onItemSelectAll(direction, selectedKeys, checkAll) {
var originalSelectedKeys = this.$data[this.getSelectedKeysName(direction)] || [];
var mergedCheckedKeys = [];
if (checkAll) {
// Merge current keys with origin key
mergedCheckedKeys = Array.from(new Set([].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(originalSelectedKeys), babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(selectedKeys))));
} else {
// Remove current keys from origin keys
mergedCheckedKeys = originalSelectedKeys.filter(function (key) {
return selectedKeys.indexOf(key) === -1;
});
}
this.handleSelectChange(direction, mergedCheckedKeys);
if (!this.$props.selectedKeys) {
this.setState(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, this.getSelectedKeysName(direction), mergedCheckedKeys));
}
},
handleSelectAll: function handleSelectAll(direction, filteredDataSource, checkAll) {
this.onItemSelectAll(direction, filteredDataSource.map(function (_ref2) {
var key = _ref2.key;
return key;
}), !checkAll);
},
// [Legacy] Old prop `body` pass origin check as arg. It's confusing.
// TODO: Remove this in next version.
handleLeftSelectAll: function handleLeftSelectAll(filteredDataSource, checkAll) {
return this.handleSelectAll('left', filteredDataSource, !checkAll);
},
handleRightSelectAll: function handleRightSelectAll(filteredDataSource, checkAll) {
return this.handleSelectAll('right', filteredDataSource, !checkAll);
},
onLeftItemSelectAll: function onLeftItemSelectAll(selectedKeys, checkAll) {
return this.onItemSelectAll('left', selectedKeys, checkAll);
},
onRightItemSelectAll: function onRightItemSelectAll(selectedKeys, checkAll) {
return this.onItemSelectAll('right', selectedKeys, checkAll);
},
handleFilter: function handleFilter(direction, e) {
var value = e.target.value;
if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this).searchChange) {
Object(_util_warning__WEBPACK_IMPORTED_MODULE_12__["default"])(false, 'Transfer', '`searchChange` in Transfer is deprecated. Please use `search` instead.');
this.$emit('searchChange', direction, e);
}
this.$emit('search', direction, value);
},
handleLeftFilter: function handleLeftFilter(e) {
this.handleFilter('left', e);
},
handleRightFilter: function handleRightFilter(e) {
this.handleFilter('right', e);
},
handleClear: function handleClear(direction) {
this.$emit('search', direction, '');
},
handleLeftClear: function handleLeftClear() {
this.handleClear('left');
},
handleRightClear: function handleRightClear() {
this.handleClear('right');
},
onItemSelect: function onItemSelect(direction, selectedKey, checked) {
var sourceSelectedKeys = this.sourceSelectedKeys,
targetSelectedKeys = this.targetSelectedKeys;
var holder = direction === 'left' ? [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(sourceSelectedKeys)) : [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(targetSelectedKeys));
var index = holder.indexOf(selectedKey);
if (index > -1) {
holder.splice(index, 1);
}
if (checked) {
holder.push(selectedKey);
}
this.handleSelectChange(direction, holder);
if (!this.selectedKeys) {
this.setState(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, this.getSelectedKeysName(direction), holder));
}
},
handleSelect: function handleSelect(direction, selectedItem, checked) {
Object(_util_warning__WEBPACK_IMPORTED_MODULE_12__["default"])(false, 'Transfer', '`handleSelect` will be removed, please use `onSelect` instead.');
this.onItemSelect(direction, selectedItem.key, checked);
},
handleLeftSelect: function handleLeftSelect(selectedItem, checked) {
return this.handleSelect('left', selectedItem, checked);
},
handleRightSelect: function handleRightSelect(selectedItem, checked) {
return this.handleSelect('right', selectedItem, checked);
},
onLeftItemSelect: function onLeftItemSelect(selectedKey, checked) {
return this.onItemSelect('left', selectedKey, checked);
},
onRightItemSelect: function onRightItemSelect(selectedKey, checked) {
return this.onItemSelect('right', selectedKey, checked);
},
handleScroll: function handleScroll(direction, e) {
this.$emit('scroll', direction, e);
},
handleLeftScroll: function handleLeftScroll(e) {
this.handleScroll('left', e);
},
handleRightScroll: function handleRightScroll(e) {
this.handleScroll('right', e);
},
handleSelectChange: function handleSelectChange(direction, holder) {
var sourceSelectedKeys = this.sourceSelectedKeys,
targetSelectedKeys = this.targetSelectedKeys;
if (direction === 'left') {
this.$emit('selectChange', holder, targetSelectedKeys);
} else {
this.$emit('selectChange', sourceSelectedKeys, holder);
}
},
handleListStyle: function handleListStyle(listStyle, direction) {
if (typeof listStyle === 'function') {
return listStyle({ direction: direction });
}
return listStyle;
},
separateDataSource: function separateDataSource() {
var _$props2 = this.$props,
dataSource = _$props2.dataSource,
rowKey = _$props2.rowKey,
_$props2$targetKeys = _$props2.targetKeys,
targetKeys = _$props2$targetKeys === undefined ? [] : _$props2$targetKeys;
var leftDataSource = [];
var rightDataSource = new Array(targetKeys.length);
dataSource.forEach(function (record) {
if (rowKey) {
record.key = rowKey(record);
}
// rightDataSource should be ordered by targetKeys
// leftDataSource should be ordered by dataSource
var indexOfKey = targetKeys.indexOf(record.key);
if (indexOfKey !== -1) {
rightDataSource[indexOfKey] = record;
} else {
leftDataSource.push(record);
}
});
return {
leftDataSource: leftDataSource,
rightDataSource: rightDataSource
};
},
renderTransfer: function renderTransfer(transferLocale) {
var _classNames;
var h = this.$createElement;
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this);
var customizePrefixCls = props.prefixCls,
disabled = props.disabled,
_props$operations = props.operations,
operations = _props$operations === undefined ? [] : _props$operations,
showSearch = props.showSearch,
listStyle = props.listStyle,
operationStyle = props.operationStyle,
filterOption = props.filterOption,
lazy = props.lazy,
showSelectAll = props.showSelectAll;
var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'children', {}, false);
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('transfer', customizePrefixCls);
var renderEmpty = this.configProvider.renderEmpty;
var locale = this.getLocale(transferLocale, renderEmpty);
var sourceSelectedKeys = this.sourceSelectedKeys,
targetSelectedKeys = this.targetSelectedKeys,
$scopedSlots = this.$scopedSlots;
var body = $scopedSlots.body,
footer = $scopedSlots.footer;
var renderItem = props.render;
var _separateDataSource = this.separateDataSource(),
leftDataSource = _separateDataSource.leftDataSource,
rightDataSource = _separateDataSource.rightDataSource;
var leftActive = targetSelectedKeys.length > 0;
var rightActive = sourceSelectedKeys.length > 0;
var cls = classnames__WEBPACK_IMPORTED_MODULE_6___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-disabled', disabled), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-customize-list', !!children), _classNames));
var titles = this.getTitles(locale);
return h(
'div',
{ 'class': cls },
[h(_list__WEBPACK_IMPORTED_MODULE_7__["default"], {
key: 'leftList',
attrs: { prefixCls: prefixCls + '-list',
titleText: titles[0],
dataSource: leftDataSource,
filterOption: filterOption,
checkedKeys: sourceSelectedKeys,
handleFilter: this.handleLeftFilter,
handleClear: this.handleLeftClear,
handleSelect: this.handleLeftSelect,
handleSelectAll: this.handleLeftSelectAll,
renderItem: renderItem,
showSearch: showSearch,
body: body,
renderList: children,
footer: footer,
lazy: lazy,
disabled: disabled,
direction: 'left',
showSelectAll: showSelectAll,
itemUnit: locale.itemUnit,
itemsUnit: locale.itemsUnit,
notFoundContent: locale.notFoundContent,
searchPlaceholder: locale.searchPlaceholder
},
style: this.handleListStyle(listStyle, 'left'), on: {
'itemSelect': this.onLeftItemSelect,
'itemSelectAll': this.onLeftItemSelectAll,
'scroll': this.handleLeftScroll
}
}), h(_operation__WEBPACK_IMPORTED_MODULE_8__["default"], {
key: 'operation',
'class': prefixCls + '-operation',
attrs: { rightActive: rightActive,
rightArrowText: operations[0],
moveToRight: this.moveToRight,
leftActive: leftActive,
leftArrowText: operations[1],
moveToLeft: this.moveToLeft,
disabled: disabled
},
style: operationStyle }), h(_list__WEBPACK_IMPORTED_MODULE_7__["default"], {
key: 'rightList',
attrs: { prefixCls: prefixCls + '-list',
titleText: titles[1],
dataSource: rightDataSource,
filterOption: filterOption,
checkedKeys: targetSelectedKeys,
handleFilter: this.handleRightFilter,
handleClear: this.handleRightClear,
handleSelect: this.handleRightSelect,
handleSelectAll: this.handleRightSelectAll,
renderItem: renderItem,
showSearch: showSearch,
body: body,
renderList: children,
footer: footer,
lazy: lazy,
disabled: disabled,
direction: 'right',
showSelectAll: showSelectAll,
itemUnit: locale.itemUnit,
itemsUnit: locale.itemsUnit,
notFoundContent: locale.notFoundContent,
searchPlaceholder: locale.searchPlaceholder
},
style: this.handleListStyle(listStyle, 'right'), on: {
'itemSelect': this.onRightItemSelect,
'itemSelectAll': this.onRightItemSelectAll,
'scroll': this.handleRightScroll
}
})]
);
}
},
render: function render() {
var h = arguments[0];
return h(_locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_9__["default"], {
attrs: {
componentName: 'Transfer',
defaultLocale: _locale_provider_default__WEBPACK_IMPORTED_MODULE_10__["default"].Transfer
},
scopedSlots: { 'default': this.renderTransfer }
});
}
};
/* istanbul ignore next */
Transfer.install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_13__["default"]);
Vue.component(Transfer.name, Transfer);
};
/* harmony default export */ __webpack_exports__["default"] = (Transfer);
/***/ }),
/***/ "./components/transfer/list.jsx":
/*!**************************************!*\
!*** ./components/transfer/list.jsx ***!
\**************************************/
/*! exports provided: TransferListProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferListProps", function() { return TransferListProps; });
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _checkbox__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../checkbox */ "./components/checkbox/index.js");
/* harmony import */ var _search__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./search */ "./components/transfer/search.jsx");
/* harmony import */ var _renderListBody__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./renderListBody */ "./components/transfer/renderListBody.jsx");
/* harmony import */ var _util_triggerEvent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/triggerEvent */ "./components/_util/triggerEvent.js");
/* harmony import */ var _vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../vc-util/Dom/addEventListener */ "./components/vc-util/Dom/addEventListener.js");
var defaultRender = function defaultRender() {
return null;
};
var TransferItem = {
key: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.isRequired,
title: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.isRequired,
description: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool
};
function isRenderResultPlainObject(result) {
return result && !Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["isValidElement"])(result) && Object.prototype.toString.call(result) === '[object Object]';
}
var TransferListProps = {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
titleText: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
dataSource: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].shape(TransferItem).loose),
filter: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
filterOption: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
checkedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string),
handleFilter: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
handleSelect: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
handleSelectAll: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
handleClear: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
renderItem: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
showSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
searchPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
notFoundContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
itemUnit: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
itemsUnit: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
body: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
renderList: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
footer: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
lazy: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object]),
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
direction: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
showSelectAll: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool
};
function renderListNode(h, renderList, props) {
var bodyContent = renderList ? renderList(props) : null;
var customize = !!bodyContent;
if (!customize) {
bodyContent = Object(_renderListBody__WEBPACK_IMPORTED_MODULE_8__["default"])(h, props);
}
return {
customize: customize,
bodyContent: bodyContent
};
}
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'TransferList',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__["default"]],
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["initDefaultProps"])(TransferListProps, {
dataSource: [],
titleText: '',
showSearch: false,
lazy: {}
}),
data: function data() {
this.timer = null;
this.triggerScrollTimer = null;
return {
filterValue: ''
};
},
// mounted() {
// this.timer = setTimeout(() => {
// this.setState({
// mounted: true,
// });
// }, 0);
// this.$nextTick(() => {
// if (this.$refs.listContentWrapper) {
// const listContentWrapperDom = this.$refs.listContentWrapper.$el;
// this.scrollEvent = addEventListener(listContentWrapperDom, 'scroll', this.handleScroll);
// }
// });
// },
beforeDestroy: function beforeDestroy() {
clearTimeout(this.triggerScrollTimer);
// if (this.scrollEvent) {
// this.scrollEvent.remove();
// }
},
updated: function updated() {
var _this = this;
this.$nextTick(function () {
if (_this.scrollEvent) {
_this.scrollEvent.remove();
}
if (_this.$refs.listContentWrapper) {
var listContentWrapperDom = _this.$refs.listContentWrapper.$el;
_this.scrollEvent = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_10__["default"])(listContentWrapperDom, 'scroll', _this.handleScroll);
}
});
},
methods: {
handleScroll: function handleScroll(e) {
this.$emit('scroll', e);
},
getCheckStatus: function getCheckStatus(filteredItems) {
var checkedKeys = this.$props.checkedKeys;
if (checkedKeys.length === 0) {
return 'none';
}
if (filteredItems.every(function (item) {
return checkedKeys.indexOf(item.key) >= 0 || !!item.disabled;
})) {
return 'all';
}
return 'part';
},
getFilteredItems: function getFilteredItems(dataSource, filterValue) {
var _this2 = this;
var filteredItems = [];
var filteredRenderItems = [];
dataSource.forEach(function (item) {
var renderedItem = _this2.renderItemHtml(item);
var renderedText = renderedItem.renderedText;
// Filter skip
if (filterValue && filterValue.trim() && !_this2.matchFilter(renderedText, item)) {
return null;
}
filteredItems.push(item);
filteredRenderItems.push(renderedItem);
});
return { filteredItems: filteredItems, filteredRenderItems: filteredRenderItems };
},
getListBody: function getListBody(prefixCls, searchPlaceholder, filterValue, filteredItems, notFoundContent, bodyDom, filteredRenderItems, checkedKeys, renderList, showSearch, disabled) {
var h = this.$createElement;
var search = showSearch ? h(
'div',
{ 'class': prefixCls + '-body-search-wrapper' },
[h(_search__WEBPACK_IMPORTED_MODULE_7__["default"], {
attrs: {
prefixCls: prefixCls + '-search',
handleClear: this._handleClear,
placeholder: searchPlaceholder,
value: filterValue,
disabled: disabled
},
on: {
'change': this._handleFilter
}
})]
) : null;
var listBody = bodyDom;
if (!listBody) {
var bodyNode = void 0;
var _renderListNode = renderListNode(this.$createElement, renderList, {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.$props, { filteredItems: filteredItems, filteredRenderItems: filteredRenderItems, selectedKeys: checkedKeys }),
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this)
}),
bodyContent = _renderListNode.bodyContent,
customize = _renderListNode.customize;
// We should wrap customize list body in a classNamed div to use flex layout.
if (customize) {
bodyNode = h(
'div',
{ 'class': prefixCls + '-body-customize-wrapper' },
[bodyContent]
);
} else {
bodyNode = filteredItems.length ? bodyContent : h(
'div',
{ 'class': prefixCls + '-body-not-found' },
[notFoundContent]
);
}
listBody = h(
'div',
{
'class': classnames__WEBPACK_IMPORTED_MODULE_2___default()(showSearch ? prefixCls + '-body ' + prefixCls + '-body-with-search' : prefixCls + '-body')
},
[search, bodyNode]
);
}
return listBody;
},
getCheckBox: function getCheckBox(filteredItems, showSelectAll, disabled) {
var _this3 = this;
var h = this.$createElement;
var checkStatus = this.getCheckStatus(filteredItems);
var checkedAll = checkStatus === 'all';
var checkAllCheckbox = showSelectAll !== false && h(_checkbox__WEBPACK_IMPORTED_MODULE_6__["default"], {
attrs: {
disabled: disabled,
checked: checkedAll,
indeterminate: checkStatus === 'part'
},
on: {
'change': function change() {
// Only select enabled items
_this3.$emit('itemSelectAll', filteredItems.filter(function (item) {
return !item.disabled;
}).map(function (_ref) {
var key = _ref.key;
return key;
}), !checkedAll);
}
}
});
return checkAllCheckbox;
},
_handleSelect: function _handleSelect(selectedItem) {
var checkedKeys = this.$props.checkedKeys;
var result = checkedKeys.some(function (key) {
return key === selectedItem.key;
});
this.handleSelect(selectedItem, !result);
},
_handleFilter: function _handleFilter(e) {
var _this4 = this;
var handleFilter = this.$props.handleFilter;
var filterValue = e.target.value;
this.setState({ filterValue: filterValue });
handleFilter(e);
if (!filterValue) {
return;
}
// Manually trigger scroll event for lazy search bug
// https://github.com/ant-design/ant-design/issues/5631
this.triggerScrollTimer = setTimeout(function () {
var transferNode = _this4.$el;
var listNode = transferNode.querySelectorAll('.ant-transfer-list-content')[0];
if (listNode) {
Object(_util_triggerEvent__WEBPACK_IMPORTED_MODULE_9__["default"])(listNode, 'scroll');
}
}, 0);
},
_handleClear: function _handleClear(e) {
this.setState({ filterValue: '' });
this.handleClear(e);
},
matchFilter: function matchFilter(text, item) {
var filterValue = this.$data.filterValue;
var filterOption = this.$props.filterOption;
if (filterOption) {
return filterOption(filterValue, item);
}
return text.indexOf(filterValue) >= 0;
},
renderItemHtml: function renderItemHtml(item) {
var _$props$renderItem = this.$props.renderItem,
renderItem = _$props$renderItem === undefined ? defaultRender : _$props$renderItem;
var renderResult = renderItem(item);
var isRenderResultPlain = isRenderResultPlainObject(renderResult);
return {
renderedText: isRenderResultPlain ? renderResult.value : renderResult,
renderedEl: isRenderResultPlain ? renderResult.label : renderResult,
item: item
};
},
filterNull: function filterNull(arr) {
return arr.filter(function (item) {
return item !== null;
});
}
},
render: function render() {
var h = arguments[0];
var filterValue = this.$data.filterValue;
var _$props = this.$props,
prefixCls = _$props.prefixCls,
dataSource = _$props.dataSource,
titleText = _$props.titleText,
checkedKeys = _$props.checkedKeys,
disabled = _$props.disabled,
body = _$props.body,
footer = _$props.footer,
showSearch = _$props.showSearch,
searchPlaceholder = _$props.searchPlaceholder,
notFoundContent = _$props.notFoundContent,
itemUnit = _$props.itemUnit,
itemsUnit = _$props.itemsUnit,
renderList = _$props.renderList,
showSelectAll = _$props.showSelectAll;
// Custom Layout
var footerDom = footer && footer(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.$props));
var bodyDom = body && body(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.$props));
var listCls = classnames__WEBPACK_IMPORTED_MODULE_2___default()(prefixCls, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, prefixCls + '-with-footer', !!footerDom));
// ====================== Get filtered, checked item list ======================
var _getFilteredItems = this.getFilteredItems(dataSource, filterValue),
filteredItems = _getFilteredItems.filteredItems,
filteredRenderItems = _getFilteredItems.filteredRenderItems;
// ================================= List Body =================================
var unit = dataSource.length > 1 ? itemsUnit : itemUnit;
var listBody = this.getListBody(prefixCls, searchPlaceholder, filterValue, filteredItems, notFoundContent, bodyDom, filteredRenderItems, checkedKeys, renderList, showSearch, disabled);
var listFooter = footerDom ? h(
'div',
{ 'class': prefixCls + '-footer' },
[footerDom]
) : null;
var checkAllCheckbox = this.getCheckBox(filteredItems, showSelectAll, disabled);
return h(
'div',
{ 'class': listCls },
[h(
'div',
{ 'class': prefixCls + '-header' },
[checkAllCheckbox, h(
'span',
{ 'class': prefixCls + '-header-selected' },
[h('span', [(checkedKeys.length > 0 ? checkedKeys.length + '/' : '') + filteredItems.length, ' ', unit]), h(
'span',
{ 'class': prefixCls + '-header-title' },
[titleText]
)]
)]
), listBody, listFooter]
);
}
});
/***/ }),
/***/ "./components/transfer/operation.jsx":
/*!*******************************************!*\
!*** ./components/transfer/operation.jsx ***!
\*******************************************/
/*! exports provided: TransferOperationProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferOperationProps", function() { return TransferOperationProps; });
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../button */ "./components/button/index.js");
function noop() {}
var TransferOperationProps = {
className: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
leftArrowText: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
rightArrowText: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
moveToLeft: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
moveToRight: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
leftActive: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
rightActive: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool
};
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'Operation',
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, TransferOperationProps),
render: function render() {
var h = arguments[0];
var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getOptionProps"])(this),
disabled = _getOptionProps.disabled,
_getOptionProps$moveT = _getOptionProps.moveToLeft,
moveToLeft = _getOptionProps$moveT === undefined ? noop : _getOptionProps$moveT,
_getOptionProps$moveT2 = _getOptionProps.moveToRight,
moveToRight = _getOptionProps$moveT2 === undefined ? noop : _getOptionProps$moveT2,
_getOptionProps$leftA = _getOptionProps.leftArrowText,
leftArrowText = _getOptionProps$leftA === undefined ? '' : _getOptionProps$leftA,
_getOptionProps$right = _getOptionProps.rightArrowText,
rightArrowText = _getOptionProps$right === undefined ? '' : _getOptionProps$right,
leftActive = _getOptionProps.leftActive,
rightActive = _getOptionProps.rightActive;
return h('div', [h(
_button__WEBPACK_IMPORTED_MODULE_3__["default"],
{
attrs: {
type: 'primary',
size: 'small',
disabled: disabled || !rightActive,
icon: 'right'
},
on: {
'click': moveToRight
}
},
[rightArrowText]
), h(
_button__WEBPACK_IMPORTED_MODULE_3__["default"],
{
attrs: {
type: 'primary',
size: 'small',
disabled: disabled || !leftActive,
icon: 'left'
},
on: {
'click': moveToLeft
}
},
[leftArrowText]
)]);
}
});
/***/ }),
/***/ "./components/transfer/renderListBody.jsx":
/*!************************************************!*\
!*** ./components/transfer/renderListBody.jsx ***!
\************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_raf__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/raf */ "./components/_util/raf.js");
/* harmony import */ var _ListItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ListItem */ "./components/transfer/ListItem.jsx");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_getTransitionProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/getTransitionProps */ "./components/_util/getTransitionProps.js");
function noop() {}
var ListBody = {
name: 'ListBody',
inheritAttrs: false,
props: {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
filteredRenderItems: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array.def([]),
lazy: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object]),
selectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool
},
data: function data() {
return {
mounted: false
};
},
computed: {
itemsLength: function itemsLength() {
return this.filteredRenderItems ? this.filteredRenderItems.length : 0;
}
},
watch: {
itemsLength: function itemsLength() {
var _this = this;
this.$nextTick(function () {
var lazy = _this.$props.lazy;
if (lazy !== false) {
var container = _this.$el;
_util_raf__WEBPACK_IMPORTED_MODULE_1__["default"].cancel(_this.lazyId);
_this.lazyId = Object(_util_raf__WEBPACK_IMPORTED_MODULE_1__["default"])(function () {
if (container) {
var scrollEvent = new Event('scroll', { bubbles: true });
container.dispatchEvent(scrollEvent);
}
});
}
});
}
},
mounted: function mounted() {
var _this2 = this;
this.mountId = Object(_util_raf__WEBPACK_IMPORTED_MODULE_1__["default"])(function () {
_this2.mounted = true;
});
},
beforeDestroy: function beforeDestroy() {
_util_raf__WEBPACK_IMPORTED_MODULE_1__["default"].cancel(this.mountId);
_util_raf__WEBPACK_IMPORTED_MODULE_1__["default"].cancel(this.lazyId);
},
methods: {
onItemSelect: function onItemSelect(item) {
var selectedKeys = this.$props.selectedKeys;
var checked = selectedKeys.indexOf(item.key) >= 0;
this.$emit('itemSelect', item.key, !checked);
},
onScroll: function onScroll(e) {
this.$emit('scroll', e);
}
},
render: function render() {
var _this3 = this;
var h = arguments[0];
var mounted = this.$data.mounted;
var _$props = this.$props,
prefixCls = _$props.prefixCls,
filteredRenderItems = _$props.filteredRenderItems,
lazy = _$props.lazy,
selectedKeys = _$props.selectedKeys,
globalDisabled = _$props.disabled;
var items = filteredRenderItems.map(function (_ref) {
var renderedEl = _ref.renderedEl,
renderedText = _ref.renderedText,
item = _ref.item;
var disabled = item.disabled;
var checked = selectedKeys.indexOf(item.key) >= 0;
return h(_ListItem__WEBPACK_IMPORTED_MODULE_2__["default"], {
attrs: {
disabled: globalDisabled || disabled,
item: item,
lazy: lazy,
renderedText: renderedText,
renderedEl: renderedEl,
checked: checked,
prefixCls: prefixCls
},
key: item.key, on: {
'click': _this3.onItemSelect
}
});
});
var transitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_4__["default"])(mounted ? prefixCls + '-content-item-highlight' : '', {
tag: 'ul',
nativeOn: {
scroll: this.onScroll
},
leave: noop
});
return h(
'transition-group',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ 'class': prefixCls + '-content' }, transitionProps]),
[items]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (function (h, props) {
return h(ListBody, props);
});
/***/ }),
/***/ "./components/transfer/search.jsx":
/*!****************************************!*\
!*** ./components/transfer/search.jsx ***!
\****************************************/
/*! exports provided: TransferSearchProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferSearchProps", function() { return TransferSearchProps; });
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
/* harmony import */ var _input__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../input */ "./components/input/index.js");
var TransferSearchProps = {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
handleClear: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool
};
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'Search',
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["initDefaultProps"])(TransferSearchProps, {
placeholder: ''
}),
methods: {
handleChange: function handleChange(e) {
this.$emit('change', e);
},
handleClear2: function handleClear2(e) {
e.preventDefault();
var _$props = this.$props,
handleClear = _$props.handleClear,
disabled = _$props.disabled;
if (!disabled && handleClear) {
handleClear(e);
}
}
},
render: function render() {
var h = arguments[0];
var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getOptionProps"])(this),
placeholder = _getOptionProps.placeholder,
value = _getOptionProps.value,
prefixCls = _getOptionProps.prefixCls,
disabled = _getOptionProps.disabled;
var icon = value && value.length > 0 ? h(
'a',
{
attrs: { href: '#' },
'class': prefixCls + '-action', on: {
'click': this.handleClear2
}
},
[h(_icon__WEBPACK_IMPORTED_MODULE_2__["default"], {
attrs: { type: 'close-circle', theme: 'filled' }
})]
) : h(
'span',
{ 'class': prefixCls + '-action' },
[h(_icon__WEBPACK_IMPORTED_MODULE_2__["default"], {
attrs: { type: 'search' }
})]
);
return h('div', [h(_input__WEBPACK_IMPORTED_MODULE_3__["default"], {
attrs: {
placeholder: placeholder,
value: value,
disabled: disabled
},
'class': prefixCls, on: {
'change': this.handleChange
}
}), icon]);
}
});
/***/ }),
/***/ "./components/transfer/style/index.js":
/*!********************************************!*\
!*** ./components/transfer/style/index.js ***!
\********************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/transfer/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _empty_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../empty/style */ "./components/empty/style/index.js");
/* harmony import */ var _checkbox_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../checkbox/style */ "./components/checkbox/style/index.js");
/* harmony import */ var _button_style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../button/style */ "./components/button/style/index.js");
/* harmony import */ var _input_style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../input/style */ "./components/input/style/index.js");
// style dependencies
/***/ }),
/***/ "./components/transfer/style/index.less":
/*!**********************************************!*\
!*** ./components/transfer/style/index.less ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/tree-select/index.jsx":
/*!******************************************!*\
!*** ./components/tree-select/index.jsx ***!
\******************************************/
/*! exports provided: TreeData, TreeSelectProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _vc_tree_select__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../vc-tree-select */ "./components/vc-tree-select/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./interface */ "./components/tree-select/interface.jsx");
/* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreeData", function() { return _interface__WEBPACK_IMPORTED_MODULE_5__["TreeData"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreeSelectProps", function() { return _interface__WEBPACK_IMPORTED_MODULE_5__["TreeSelectProps"]; });
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
/* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
var TreeSelect = {
TreeNode: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _vc_tree_select__WEBPACK_IMPORTED_MODULE_3__["TreeNode"], { name: 'ATreeSelectNode' }),
SHOW_ALL: _vc_tree_select__WEBPACK_IMPORTED_MODULE_3__["SHOW_ALL"],
SHOW_PARENT: _vc_tree_select__WEBPACK_IMPORTED_MODULE_3__["SHOW_PARENT"],
SHOW_CHILD: _vc_tree_select__WEBPACK_IMPORTED_MODULE_3__["SHOW_CHILD"],
name: 'ATreeSelect',
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["initDefaultProps"])(Object(_interface__WEBPACK_IMPORTED_MODULE_5__["TreeSelectProps"])(), {
transitionName: 'slide-up',
choiceTransitionName: 'zoom',
showSearch: false
}),
model: {
prop: 'value',
event: 'change'
},
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_8__["ConfigConsumerProps"];
} }
},
created: function created() {
Object(_util_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(this.multiple !== false || !this.treeCheckable, 'TreeSelect', '`multiple` will alway be `true` when `treeCheckable` is true');
},
methods: {
focus: function focus() {
this.$refs.vcTreeSelect.focus();
},
blur: function blur() {
this.$refs.vcTreeSelect.blur();
},
renderSwitcherIcon: function renderSwitcherIcon(prefixCls, _ref) {
var isLeaf = _ref.isLeaf,
loading = _ref.loading;
var h = this.$createElement;
if (loading) {
return h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
attrs: { type: 'loading' },
'class': prefixCls + '-switcher-loading-icon' });
}
if (isLeaf) {
return null;
}
return h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
attrs: { type: 'caret-down' },
'class': prefixCls + '-switcher-icon' });
},
onChange: function onChange() {
this.$emit.apply(this, ['change'].concat(Array.prototype.slice.call(arguments)));
},
updateTreeData: function updateTreeData(treeData) {
var _this = this;
var $scopedSlots = this.$scopedSlots;
var defaultFields = {
children: 'children',
title: 'title',
key: 'key',
label: 'label',
value: 'value'
};
var replaceFields = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, defaultFields, this.$props.replaceFields);
return treeData.map(function (item) {
var _item$scopedSlots = item.scopedSlots,
scopedSlots = _item$scopedSlots === undefined ? {} : _item$scopedSlots;
var label = item[replaceFields.label];
var title = item[replaceFields.title];
var value = item[replaceFields.value];
var key = item[replaceFields.key];
var children = item[replaceFields.children];
var newLabel = typeof label === 'function' ? label(_this.$createElement) : label;
var newTitle = typeof title === 'function' ? title(_this.$createElement) : title;
if (!newLabel && scopedSlots.label && $scopedSlots[scopedSlots.label]) {
newLabel = $scopedSlots[scopedSlots.label](item);
}
if (!newTitle && scopedSlots.title && $scopedSlots[scopedSlots.title]) {
newTitle = $scopedSlots[scopedSlots.title](item);
}
var treeNodeProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, item, {
title: newTitle || newLabel,
value: value,
dataRef: item,
key: key
});
if (children) {
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, treeNodeProps, { children: _this.updateTreeData(children) });
}
return treeNodeProps;
});
}
},
render: function render(h) {
var _cls,
_this2 = this;
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(this);
var customizePrefixCls = props.prefixCls,
size = props.size,
dropdownStyle = props.dropdownStyle,
dropdownClassName = props.dropdownClassName,
getPopupContainer = props.getPopupContainer,
restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(props, ['prefixCls', 'size', 'dropdownStyle', 'dropdownClassName', 'getPopupContainer']);
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('select', customizePrefixCls);
var renderEmpty = this.configProvider.renderEmpty;
var notFoundContent = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'notFoundContent');
var removeIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'removeIcon');
var clearIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'clearIcon');
var getContextPopupContainer = this.configProvider.getPopupContainer;
var rest = Object(omit_js__WEBPACK_IMPORTED_MODULE_11__["default"])(restProps, ['inputIcon', 'removeIcon', 'clearIcon', 'switcherIcon', 'suffixIcon']);
var suffixIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'suffixIcon');
suffixIcon = Array.isArray(suffixIcon) ? suffixIcon[0] : suffixIcon;
var treeData = props.treeData;
if (treeData) {
treeData = this.updateTreeData(treeData);
}
var cls = (_cls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_cls, prefixCls + '-lg', size === 'large'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_cls, prefixCls + '-sm', size === 'small'), _cls);
// showSearch: single - false, multiple - true
var showSearch = restProps.showSearch;
if (!('showSearch' in restProps)) {
showSearch = !!(restProps.multiple || restProps.treeCheckable);
}
var checkable = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'treeCheckable');
if (checkable) {
checkable = h('span', { 'class': prefixCls + '-tree-checkbox-inner' });
}
var inputIcon = suffixIcon || h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
attrs: { type: 'down' },
'class': prefixCls + '-arrow-icon' });
var finalRemoveIcon = removeIcon || h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
attrs: { type: 'close' },
'class': prefixCls + '-remove-icon' });
var finalClearIcon = clearIcon || h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
attrs: { type: 'close-circle', theme: 'filled' },
'class': prefixCls + '-clear-icon' });
var VcTreeSelectProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
switcherIcon: function switcherIcon(nodeProps) {
return _this2.renderSwitcherIcon(prefixCls, nodeProps);
},
inputIcon: inputIcon,
removeIcon: finalRemoveIcon,
clearIcon: finalClearIcon
}, rest, {
showSearch: showSearch,
getPopupContainer: getPopupContainer || getContextPopupContainer,
dropdownClassName: classnames__WEBPACK_IMPORTED_MODULE_4___default()(dropdownClassName, prefixCls + '-tree-dropdown'),
prefixCls: prefixCls,
dropdownStyle: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({ maxHeight: '100vh', overflow: 'auto' }, dropdownStyle),
treeCheckable: checkable,
notFoundContent: notFoundContent || renderEmpty(h, 'Select'),
__propsSymbol__: Symbol()
}), treeData ? { treeData: treeData } : {}),
'class': cls,
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this), { change: this.onChange }),
ref: 'vcTreeSelect',
scopedSlots: this.$scopedSlots
};
return h(
_vc_tree_select__WEBPACK_IMPORTED_MODULE_3__["default"],
VcTreeSelectProps,
[Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["filterEmpty"])(this.$slots['default'])]
);
}
};
/* istanbul ignore next */
TreeSelect.install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_9__["default"]);
Vue.component(TreeSelect.name, TreeSelect);
Vue.component(TreeSelect.TreeNode.name, TreeSelect.TreeNode);
};
/* harmony default export */ __webpack_exports__["default"] = (TreeSelect);
/***/ }),
/***/ "./components/tree-select/interface.jsx":
/*!**********************************************!*\
!*** ./components/tree-select/interface.jsx ***!
\**********************************************/
/*! exports provided: TreeData, TreeSelectProps */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TreeData", function() { return TreeData; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TreeSelectProps", function() { return TreeSelectProps; });
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _select__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../select */ "./components/select/index.jsx");
var TreeData = _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].shape({
key: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
label: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
scopedSlots: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
children: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array
}).loose;
var TreeSelectProps = function TreeSelectProps() {
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_select__WEBPACK_IMPORTED_MODULE_2__["AbstractSelectProps"])(), {
autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
dropdownStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
filterTreeNode: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([Function, Boolean]),
getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
labelInValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
loadData: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
maxTagCount: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
maxTagPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number]),
defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number]),
multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
notFoundContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
// onSelect: (value: any) => void,
// onChange: (value: any, label: any) => void,
// onSearch: (value: any) => void,
searchPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
searchValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
showCheckedStrategy: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['SHOW_ALL', 'SHOW_PARENT', 'SHOW_CHILD']),
suffixIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
treeCheckable: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool]),
treeCheckStrictly: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
treeData: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(Object),
treeDataSimpleMode: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([Boolean, Object]),
dropdownClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
dropdownMatchSelectWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
treeDefaultExpandAll: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
treeExpandedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
treeIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
treeDefaultExpandedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
treeNodeFilterProp: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
treeNodeLabelProp: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
replaceFields: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object.def({})
});
};
/***/ }),
/***/ "./components/tree-select/style/index.js":
/*!***********************************************!*\
!*** ./components/tree-select/style/index.js ***!
\***********************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/tree-select/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _select_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../select/style */ "./components/select/style/index.js");
/* harmony import */ var _empty_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../empty/style */ "./components/empty/style/index.js");
// style dependencies
// deps-lint-skip: select
/***/ }),
/***/ "./components/tree-select/style/index.less":
/*!*************************************************!*\
!*** ./components/tree-select/style/index.less ***!
\*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/tree/DirectoryTree.jsx":
/*!*******************************************!*\
!*** ./components/tree/DirectoryTree.jsx ***!
\*******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/debounce */ "./node_modules/lodash/debounce.js");
/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
/* harmony import */ var _vc_tree_src_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../vc-tree/src/util */ "./components/vc-tree/src/util.js");
/* harmony import */ var _Tree__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Tree */ "./components/tree/Tree.jsx");
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./util */ "./components/tree/util.js");
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
// export type ExpandAction = false | 'click' | 'dblclick'; export interface
// DirectoryTreeProps extends TreeProps { expandAction?: ExpandAction; }
// export interface DirectoryTreeState { expandedKeys?: string[];
// selectedKeys?: string[]; }
function getIcon(props, h) {
var isLeaf = props.isLeaf,
expanded = props.expanded;
if (isLeaf) {
return h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
attrs: { type: 'file' }
});
}
return h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
attrs: { type: expanded ? 'folder-open' : 'folder' }
});
}
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'ADirectoryTree',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_11__["default"]],
model: {
prop: 'checkedKeys',
event: 'check'
},
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["initDefaultProps"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(_Tree__WEBPACK_IMPORTED_MODULE_8__["TreeProps"])(), {
expandAction: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].oneOf([false, 'click', 'doubleclick', 'dblclick'])
}), {
showIcon: true,
expandAction: 'click'
}),
// state: DirectoryTreeState; onDebounceExpand: (event, node: AntTreeNode) =>
// void; // Shift click usage lastSelectedKey?: string; cachedSelectedKeys?:
// string[];
inject: {
configProvider: {
'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_13__["ConfigConsumerProps"];
}
}
},
data: function data() {
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getOptionProps"])(this);
var defaultExpandAll = props.defaultExpandAll,
defaultExpandParent = props.defaultExpandParent,
expandedKeys = props.expandedKeys,
defaultExpandedKeys = props.defaultExpandedKeys;
var _convertTreeToEntitie = Object(_vc_tree_src_util__WEBPACK_IMPORTED_MODULE_7__["convertTreeToEntities"])(this.$slots['default']),
keyEntities = _convertTreeToEntitie.keyEntities;
var state = {};
// Selected keys
state._selectedKeys = props.selectedKeys || props.defaultSelectedKeys || [];
// Expanded keys
if (defaultExpandAll) {
if (props.treeData) {
state._expandedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_9__["getFullKeyListByTreeData"])(props.treeData);
} else {
state._expandedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_9__["getFullKeyList"])(this.$slots['default']);
}
} else if (defaultExpandParent) {
state._expandedKeys = Object(_vc_tree_src_util__WEBPACK_IMPORTED_MODULE_7__["conductExpandParent"])(expandedKeys || defaultExpandedKeys, keyEntities);
} else {
state._expandedKeys = expandedKeys || defaultExpandedKeys;
}
this.onDebounceExpand = lodash_debounce__WEBPACK_IMPORTED_MODULE_4___default()(this.expandFolderNode, 200, { leading: true });
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
_selectedKeys: [],
_expandedKeys: []
}, state);
},
watch: {
expandedKeys: function expandedKeys(val) {
this.setState({ _expandedKeys: val });
},
selectedKeys: function selectedKeys(val) {
this.setState({ _selectedKeys: val });
}
},
methods: {
onExpand: function onExpand(expandedKeys, info) {
this.setUncontrolledState({ _expandedKeys: expandedKeys });
this.$emit('expand', expandedKeys, info);
return undefined;
},
onClick: function onClick(event, node) {
var expandAction = this.$props.expandAction;
// Expand the tree
if (expandAction === 'click') {
this.onDebounceExpand(event, node);
}
this.$emit('click', event, node);
},
onDoubleClick: function onDoubleClick(event, node) {
var expandAction = this.$props.expandAction;
// Expand the tree
if (expandAction === 'dblclick' || expandAction === 'doubleclick') {
this.onDebounceExpand(event, node);
}
this.$emit('doubleclick', event, node);
this.$emit('dblclick', event, node);
},
onSelect: function onSelect(keys, event) {
var multiple = this.$props.multiple;
var children = this.$slots['default'] || [];
var _$data$_expandedKeys = this.$data._expandedKeys,
expandedKeys = _$data$_expandedKeys === undefined ? [] : _$data$_expandedKeys;
var node = event.node,
nativeEvent = event.nativeEvent;
var _node$eventKey = node.eventKey,
eventKey = _node$eventKey === undefined ? '' : _node$eventKey;
var newState = {};
// We need wrap this event since some value is not same
var newEvent = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, event, {
selected: true // Directory selected always true
});
// Windows / Mac single pick
var ctrlPick = nativeEvent.ctrlKey || nativeEvent.metaKey;
var shiftPick = nativeEvent.shiftKey;
// Generate new selected keys
var newSelectedKeys = void 0;
if (multiple && ctrlPick) {
// Control click
newSelectedKeys = keys;
this.lastSelectedKey = eventKey;
this.cachedSelectedKeys = newSelectedKeys;
newEvent.selectedNodes = Object(_util__WEBPACK_IMPORTED_MODULE_9__["convertDirectoryKeysToNodes"])(children, newSelectedKeys);
} else if (multiple && shiftPick) {
// Shift click
newSelectedKeys = Array.from(new Set([].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(this.cachedSelectedKeys || []), babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(Object(_util__WEBPACK_IMPORTED_MODULE_9__["calcRangeKeys"])(children, expandedKeys, eventKey, this.lastSelectedKey)))));
newEvent.selectedNodes = Object(_util__WEBPACK_IMPORTED_MODULE_9__["convertDirectoryKeysToNodes"])(children, newSelectedKeys);
} else {
// Single click
newSelectedKeys = [eventKey];
this.lastSelectedKey = eventKey;
this.cachedSelectedKeys = newSelectedKeys;
newEvent.selectedNodes = [event.node];
}
newState._selectedKeys = newSelectedKeys;
this.$emit('update:selectedKeys', newSelectedKeys);
this.$emit('select', newSelectedKeys, newEvent);
this.setUncontrolledState(newState);
},
expandFolderNode: function expandFolderNode(event, node) {
var isLeaf = node.isLeaf;
if (isLeaf || event.shiftKey || event.metaKey || event.ctrlKey) {
return;
}
if (this.$refs.tree.$refs.tree) {
// Get internal vc-tree
var internalTree = this.$refs.tree.$refs.tree;
// Call internal rc-tree expand function
// https://github.com/ant-design/ant-design/issues/12567
internalTree.onNodeExpand(event, node);
}
},
setUncontrolledState: function setUncontrolledState(state) {
var newState = Object(omit_js__WEBPACK_IMPORTED_MODULE_3__["default"])(state, Object.keys(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getOptionProps"])(this)).map(function (p) {
return '_' + p;
}));
if (Object.keys(newState).length) {
this.setState(newState);
}
}
},
render: function render() {
var h = arguments[0];
var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getOptionProps"])(this),
customizePrefixCls = _getOptionProps.prefixCls,
props = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(_getOptionProps, ['prefixCls']);
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('tree', customizePrefixCls);
var _$data = this.$data,
expandedKeys = _$data._expandedKeys,
selectedKeys = _$data._selectedKeys;
var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getListeners"])(this);
Object(_util_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(!listeners.doubleclick, '`doubleclick` is deprecated. please use `dblclick` instead.');
var treeProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
icon: getIcon
}, props, {
prefixCls: prefixCls,
expandedKeys: expandedKeys,
selectedKeys: selectedKeys,
switcherIcon: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(this, 'switcherIcon')
}),
ref: 'tree',
'class': prefixCls + '-directory',
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(omit_js__WEBPACK_IMPORTED_MODULE_3__["default"])(listeners, ['update:selectedKeys']), {
select: this.onSelect,
click: this.onClick,
dblclick: this.onDoubleClick,
expand: this.onExpand
})
};
return h(
_Tree__WEBPACK_IMPORTED_MODULE_8__["default"],
treeProps,
[this.$slots['default']]
);
}
});
/***/ }),
/***/ "./components/tree/Tree.jsx":
/*!**********************************!*\
!*** ./components/tree/Tree.jsx ***!
\**********************************/
/*! exports provided: TreeProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TreeProps", function() { return TreeProps; });
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! warning */ "./node_modules/warning/warning.js");
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _vc_tree__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../vc-tree */ "./components/vc-tree/index.js");
/* harmony import */ var _vc_tree__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_vc_tree__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _util_openAnimation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/openAnimation */ "./components/_util/openAnimation.js");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
function TreeProps() {
return {
showLine: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
/** 是否支持多选 */
multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
/** 是否自动展开父节点 */
autoExpandParent: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
/** checkable状态下节点选择完全受控父子节点选中状态不再关联*/
checkStrictly: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
/** 是否支持选中 */
checkable: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
/** 是否禁用树 */
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
/** 默认展开所有树节点 */
defaultExpandAll: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
/** 默认展开对应树节点 */
defaultExpandParent: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
/** 默认展开指定的树节点 */
defaultExpandedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
/** (受控)展开指定的树节点 */
expandedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
/** (受控)选中复选框的树节点 */
checkedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array, _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].shape({
checked: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
halfChecked: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array
}).loose]),
/** 默认选中复选框的树节点 */
defaultCheckedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
/** (受控)设置选中的树节点 */
selectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
/** 默认选中的树节点 */
defaultSelectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
selectable: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
/** 展开/收起节点时触发 */
// onExpand: (expandedKeys: string[], info: AntTreeNodeExpandedEvent) => void | PromiseLike<any>,
/** 点击复选框触发 */
// onCheck: (checkedKeys: string[] | { checked: string[]; halfChecked: string[] }, e: AntTreeNodeCheckedEvent) => void,
/** 点击树节点触发 */
// onSelect: (selectedKeys: string[], e: AntTreeNodeSelectedEvent) => void,
/** 单击树节点触发 */
// onClick: (e: React.MouseEvent<HTMLElement>, node: AntTreeNode) => void,
/** 双击树节点触发 */
// onDoubleClick: (e: React.MouseEvent<HTMLElement>, node: AntTreeNode) => void,
/** filter some AntTreeNodes as you need. it should return true */
filterAntTreeNode: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
/** 异步加载数据 */
loadData: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
loadedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
// onLoaded: (loadedKeys: string[], info: { event: 'load', node: AntTreeNode; }) => void,
/** 响应右键点击 */
// onRightClick: (options: AntTreeNodeMouseEvent) => void,
/** 设置节点可拖拽IE>8*/
draggable: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
// /** 开始拖拽时调用 */
// onDragStart: (options: AntTreeNodeMouseEvent) => void,
// /** dragenter 触发时调用 */
// onDragEnter: (options: AntTreeNodeMouseEvent) => void,
// /** dragover 触发时调用 */
// onDragOver: (options: AntTreeNodeMouseEvent) => void,
// /** dragleave 触发时调用 */
// onDragLeave: (options: AntTreeNodeMouseEvent) => void,
// /** drop 触发时调用 */
// onDrop: (options: AntTreeNodeMouseEvent) => void,
showIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool,
icon: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
switcherIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].string,
filterTreeNode: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].func,
openAnimation: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].any,
treeNodes: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
treeData: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].array,
/**
* @default{title,key,children}
* 替换treeNode中 title,key,children字段为treeData中对应的字段
*/
replaceFields: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].object,
blockNode: _util_vue_types__WEBPACK_IMPORTED_MODULE_6__["default"].bool
};
}
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'ATree',
model: {
prop: 'checkedKeys',
event: 'check'
},
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["initDefaultProps"])(TreeProps(), {
checkable: false,
showIcon: false,
openAnimation: {
on: _util_openAnimation__WEBPACK_IMPORTED_MODULE_5__["default"],
props: { appear: null }
},
blockNode: false
}),
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_9__["ConfigConsumerProps"];
} }
},
created: function created() {
warning__WEBPACK_IMPORTED_MODULE_3___default()(!('treeNodes' in Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(this)), '`treeNodes` is deprecated. please use treeData instead.');
},
TreeNode: _vc_tree__WEBPACK_IMPORTED_MODULE_4__["TreeNode"],
methods: {
renderSwitcherIcon: function renderSwitcherIcon(prefixCls, switcherIcon, _ref) {
var isLeaf = _ref.isLeaf,
expanded = _ref.expanded,
loading = _ref.loading;
var h = this.$createElement;
var showLine = this.$props.showLine;
if (loading) {
return h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
attrs: { type: 'loading' },
'class': prefixCls + '-switcher-loading-icon' });
}
if (isLeaf) {
return showLine ? h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
attrs: { type: 'file' },
'class': prefixCls + '-switcher-line-icon' }) : null;
}
var switcherCls = prefixCls + '-switcher-icon';
if (switcherIcon) {
return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_8__["cloneElement"])(switcherIcon, {
'class': babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, switcherCls, true)
});
}
return showLine ? h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
attrs: {
type: expanded ? 'minus-square' : 'plus-square',
theme: 'outlined'
},
'class': prefixCls + '-switcher-line-icon' }) : h(_icon__WEBPACK_IMPORTED_MODULE_10__["default"], {
attrs: { type: 'caret-down', theme: 'filled' },
'class': switcherCls });
},
updateTreeData: function updateTreeData(treeData) {
var _this = this;
var $slots = this.$slots,
$scopedSlots = this.$scopedSlots;
var defaultFields = { children: 'children', title: 'title', key: 'key' };
var replaceFields = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, defaultFields, this.$props.replaceFields);
return treeData.map(function (item) {
var key = item[replaceFields.key];
var children = item[replaceFields.children];
var _item$on = item.on,
on = _item$on === undefined ? {} : _item$on,
_item$slots = item.slots,
slots = _item$slots === undefined ? {} : _item$slots,
_item$scopedSlots = item.scopedSlots,
scopedSlots = _item$scopedSlots === undefined ? {} : _item$scopedSlots,
cls = item['class'],
style = item.style,
restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(item, ['on', 'slots', 'scopedSlots', 'class', 'style']);
var treeNodeProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, restProps, {
icon: $scopedSlots[scopedSlots.icon] || $slots[slots.icon] || restProps.icon,
switcherIcon: $scopedSlots[scopedSlots.switcherIcon] || $slots[slots.switcherIcon] || restProps.switcherIcon,
title: $scopedSlots[scopedSlots.title] || $slots[slots.title] || restProps[replaceFields.title],
dataRef: item,
on: on,
key: key,
'class': cls,
style: style
});
if (children) {
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, treeNodeProps, { children: _this.updateTreeData(children) });
}
return treeNodeProps;
});
}
},
render: function render() {
var _this2 = this,
_class2;
var h = arguments[0];
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(this);
var $slots = this.$slots,
$scopedSlots = this.$scopedSlots;
var customizePrefixCls = props.prefixCls,
showIcon = props.showIcon,
treeNodes = props.treeNodes,
blockNode = props.blockNode;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('tree', customizePrefixCls);
var _switcherIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'switcherIcon');
var checkable = props.checkable;
var treeData = props.treeData || treeNodes;
if (treeData) {
treeData = this.updateTreeData(treeData);
}
var vcTreeProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
prefixCls: prefixCls,
checkable: checkable ? h('span', { 'class': prefixCls + '-checkbox-inner' }) : checkable,
children: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["filterEmpty"])($scopedSlots['default'] ? $scopedSlots['default']() : $slots['default']),
__propsSymbol__: Symbol(),
switcherIcon: function switcherIcon(nodeProps) {
return _this2.renderSwitcherIcon(prefixCls, _switcherIcon, nodeProps);
}
}),
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this),
ref: 'tree',
'class': (_class2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_class2, prefixCls + '-icon-hide', !showIcon), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_class2, prefixCls + '-block-node', blockNode), _class2)
};
if (treeData) {
vcTreeProps.props.treeData = treeData;
}
return h(_vc_tree__WEBPACK_IMPORTED_MODULE_4__["Tree"], vcTreeProps);
}
});
/***/ }),
/***/ "./components/tree/index.jsx":
/*!***********************************!*\
!*** ./components/tree/index.jsx ***!
\***********************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Tree__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Tree */ "./components/tree/Tree.jsx");
/* harmony import */ var _DirectoryTree__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DirectoryTree */ "./components/tree/DirectoryTree.jsx");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
_Tree__WEBPACK_IMPORTED_MODULE_0__["default"].TreeNode.name = 'ATreeNode';
_Tree__WEBPACK_IMPORTED_MODULE_0__["default"].DirectoryTree = _DirectoryTree__WEBPACK_IMPORTED_MODULE_1__["default"];
/* istanbul ignore next */
_Tree__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_2__["default"]);
Vue.component(_Tree__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Tree__WEBPACK_IMPORTED_MODULE_0__["default"]);
Vue.component(_Tree__WEBPACK_IMPORTED_MODULE_0__["default"].TreeNode.name, _Tree__WEBPACK_IMPORTED_MODULE_0__["default"].TreeNode);
Vue.component(_DirectoryTree__WEBPACK_IMPORTED_MODULE_1__["default"].name, _DirectoryTree__WEBPACK_IMPORTED_MODULE_1__["default"]);
};
/* harmony default export */ __webpack_exports__["default"] = (_Tree__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/tree/style/index.js":
/*!****************************************!*\
!*** ./components/tree/style/index.js ***!
\****************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/tree/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/***/ }),
/***/ "./components/tree/style/index.less":
/*!******************************************!*\
!*** ./components/tree/style/index.less ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/tree/util.js":
/*!*********************************!*\
!*** ./components/tree/util.js ***!
\*********************************/
/*! exports provided: getFullKeyList, calcRangeKeys, convertDirectoryKeysToNodes, getFullKeyListByTreeData */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getFullKeyList", function() { return getFullKeyList; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calcRangeKeys", function() { return calcRangeKeys; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "convertDirectoryKeysToNodes", function() { return convertDirectoryKeysToNodes; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getFullKeyListByTreeData", function() { return getFullKeyListByTreeData; });
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _vc_tree_src_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../vc-tree/src/util */ "./components/vc-tree/src/util.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
var Record = {
None: 'node',
Start: 'start',
End: 'end'
};
// TODO: Move this logic into `rc-tree`
function traverseNodesKey(rootChildren, callback) {
var nodeList = Object(_vc_tree_src_util__WEBPACK_IMPORTED_MODULE_1__["getNodeChildren"])(rootChildren) || [];
function processNode(node) {
var key = node.key;
var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getSlots"])(node)['default'];
if (callback(key, node) !== false) {
traverseNodesKey(typeof children === 'function' ? children() : children, callback);
}
}
nodeList.forEach(processNode);
}
function getFullKeyList(children) {
var _convertTreeToEntitie = Object(_vc_tree_src_util__WEBPACK_IMPORTED_MODULE_1__["convertTreeToEntities"])(children),
keyEntities = _convertTreeToEntitie.keyEntities;
return [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(keyEntities.keys()));
}
/** 计算选中范围只考虑expanded情况以优化性能 */
function calcRangeKeys(rootChildren, expandedKeys, startKey, endKey) {
var keys = [];
var record = Record.None;
if (startKey && startKey === endKey) {
return [startKey];
}
if (!startKey || !endKey) {
return [];
}
function matchKey(key) {
return key === startKey || key === endKey;
}
traverseNodesKey(rootChildren, function (key) {
if (record === Record.End) {
return false;
}
if (matchKey(key)) {
// Match test
keys.push(key);
if (record === Record.None) {
record = Record.Start;
} else if (record === Record.Start) {
record = Record.End;
return false;
}
} else if (record === Record.Start) {
// Append selection
keys.push(key);
}
if (expandedKeys.indexOf(key) === -1) {
return false;
}
return true;
});
return keys;
}
function convertDirectoryKeysToNodes(rootChildren, keys) {
var restKeys = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(keys));
var nodes = [];
traverseNodesKey(rootChildren, function (key, node) {
var index = restKeys.indexOf(key);
if (index !== -1) {
nodes.push(node);
restKeys.splice(index, 1);
}
return !!restKeys.length;
});
return nodes;
}
function getFullKeyListByTreeData(treeData) {
var keys = [];
(treeData || []).forEach(function (item) {
keys.push(item.key);
if (item.children) {
keys = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(keys), babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(getFullKeyListByTreeData(item.children)));
}
});
return keys;
}
/***/ }),
/***/ "./components/upload/Dragger.jsx":
/*!***************************************!*\
!*** ./components/upload/Dragger.jsx ***!
\***************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _Upload__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Upload */ "./components/upload/Upload.jsx");
/* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./interface */ "./components/upload/interface.jsx");
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'AUploadDragger',
props: _interface__WEBPACK_IMPORTED_MODULE_3__["UploadProps"],
render: function render() {
var h = arguments[0];
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getOptionProps"])(this);
var draggerProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
type: 'drag'
}),
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getListeners"])(this),
style: { height: this.height }
};
return h(
_Upload__WEBPACK_IMPORTED_MODULE_2__["default"],
draggerProps,
[this.$slots['default']]
);
}
});
/***/ }),
/***/ "./components/upload/Upload.jsx":
/*!**************************************!*\
!*** ./components/upload/Upload.jsx ***!
\**************************************/
/*! exports provided: UploadProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var lodash_uniqBy__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/uniqBy */ "./node_modules/lodash/uniqBy.js");
/* harmony import */ var lodash_uniqBy__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqBy__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var lodash_findIndex__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/findIndex */ "./node_modules/lodash/findIndex.js");
/* harmony import */ var lodash_findIndex__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_findIndex__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/pick */ "./node_modules/lodash/pick.js");
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _vc_upload__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../vc-upload */ "./components/vc-upload/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../locale-provider/LocaleReceiver */ "./components/locale-provider/LocaleReceiver.jsx");
/* harmony import */ var _locale_provider_default__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../locale-provider/default */ "./components/locale-provider/default.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _Dragger__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Dragger */ "./components/upload/Dragger.jsx");
/* harmony import */ var _UploadList__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./UploadList */ "./components/upload/UploadList.jsx");
/* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./interface */ "./components/upload/interface.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UploadProps", function() { return _interface__WEBPACK_IMPORTED_MODULE_15__["UploadProps"]; });
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./utils */ "./components/upload/utils.jsx");
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'AUpload',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__["default"]],
inheritAttrs: false,
Dragger: _Dragger__WEBPACK_IMPORTED_MODULE_13__["default"],
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["initDefaultProps"])(_interface__WEBPACK_IMPORTED_MODULE_15__["UploadProps"], {
type: 'select',
multiple: false,
action: '',
data: {},
accept: '',
beforeUpload: _utils__WEBPACK_IMPORTED_MODULE_16__["T"],
showUploadList: true,
listType: 'text', // or pictrue
disabled: false,
supportServerRender: true
}),
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_12__["ConfigConsumerProps"];
} }
},
// recentUploadStatus: boolean | PromiseLike<any>;
data: function data() {
this.progressTimer = null;
return {
sFileList: this.fileList || this.defaultFileList || [],
dragState: 'drop'
};
},
watch: {
fileList: function fileList(val) {
this.sFileList = val || [];
}
},
beforeDestroy: function beforeDestroy() {
this.clearProgressTimer();
},
methods: {
onStart: function onStart(file) {
var targetItem = Object(_utils__WEBPACK_IMPORTED_MODULE_16__["fileToObject"])(file);
targetItem.status = 'uploading';
var nextFileList = this.sFileList.concat();
var fileIndex = lodash_findIndex__WEBPACK_IMPORTED_MODULE_5___default()(nextFileList, function (_ref) {
var uid = _ref.uid;
return uid === targetItem.uid;
});
if (fileIndex === -1) {
nextFileList.push(targetItem);
} else {
nextFileList[fileIndex] = targetItem;
}
this.onChange({
file: targetItem,
fileList: nextFileList
});
// fix ie progress
if (!window.File || process.env.TEST_IE) {
this.autoUpdateProgress(0, targetItem);
}
},
onSuccess: function onSuccess(response, file, xhr) {
this.clearProgressTimer();
try {
if (typeof response === 'string') {
response = JSON.parse(response);
}
} catch (e) {
/* do nothing */
}
var fileList = this.sFileList;
var targetItem = Object(_utils__WEBPACK_IMPORTED_MODULE_16__["getFileItem"])(file, fileList);
// removed
if (!targetItem) {
return;
}
targetItem.status = 'done';
targetItem.response = response;
targetItem.xhr = xhr;
this.onChange({
file: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, targetItem),
fileList: fileList
});
},
onProgress: function onProgress(e, file) {
var fileList = this.sFileList;
var targetItem = Object(_utils__WEBPACK_IMPORTED_MODULE_16__["getFileItem"])(file, fileList);
// removed
if (!targetItem) {
return;
}
targetItem.percent = e.percent;
this.onChange({
event: e,
file: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, targetItem),
fileList: this.sFileList
});
},
onError: function onError(error, response, file) {
this.clearProgressTimer();
var fileList = this.sFileList;
var targetItem = Object(_utils__WEBPACK_IMPORTED_MODULE_16__["getFileItem"])(file, fileList);
// removed
if (!targetItem) {
return;
}
targetItem.error = error;
targetItem.response = response;
targetItem.status = 'error';
this.onChange({
file: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, targetItem),
fileList: fileList
});
},
onReject: function onReject(fileList) {
this.$emit('reject', fileList);
},
handleRemove: function handleRemove(file) {
var _this = this;
var onRemove = this.remove;
var fileList = this.$data.sFileList;
Promise.resolve(typeof onRemove === 'function' ? onRemove(file) : onRemove).then(function (ret) {
// Prevent removing file
if (ret === false) {
return;
}
var removedFileList = Object(_utils__WEBPACK_IMPORTED_MODULE_16__["removeFileItem"])(file, fileList);
if (removedFileList) {
file.status = 'removed'; // eslint-disable-line
if (_this.upload) {
_this.upload.abort(file);
}
_this.onChange({
file: file,
fileList: removedFileList
});
}
});
},
handleManualRemove: function handleManualRemove(file) {
if (this.$refs.uploadRef) {
this.$refs.uploadRef.abort(file);
}
this.handleRemove(file);
},
onChange: function onChange(info) {
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["hasProp"])(this, 'fileList')) {
this.setState({ sFileList: info.fileList });
}
this.$emit('change', info);
},
onFileDrop: function onFileDrop(e) {
this.setState({
dragState: e.type
});
},
reBeforeUpload: function reBeforeUpload(file, fileList) {
var beforeUpload = this.$props.beforeUpload;
var stateFileList = this.$data.sFileList;
if (!beforeUpload) {
return true;
}
var result = beforeUpload(file, fileList);
if (result === false) {
this.onChange({
file: file,
fileList: lodash_uniqBy__WEBPACK_IMPORTED_MODULE_4___default()(stateFileList.concat(fileList.map(_utils__WEBPACK_IMPORTED_MODULE_16__["fileToObject"])), function (item) {
return item.uid;
})
});
return false;
}
if (result && result.then) {
return result;
}
return true;
},
clearProgressTimer: function clearProgressTimer() {
clearInterval(this.progressTimer);
},
autoUpdateProgress: function autoUpdateProgress(_, file) {
var _this2 = this;
var getPercent = Object(_utils__WEBPACK_IMPORTED_MODULE_16__["genPercentAdd"])();
var curPercent = 0;
this.clearProgressTimer();
this.progressTimer = setInterval(function () {
curPercent = getPercent(curPercent);
_this2.onProgress({
percent: curPercent * 100
}, file);
}, 200);
},
renderUploadList: function renderUploadList(locale) {
var h = this.$createElement;
var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getOptionProps"])(this),
_getOptionProps$showU = _getOptionProps.showUploadList,
showUploadList = _getOptionProps$showU === undefined ? {} : _getOptionProps$showU,
listType = _getOptionProps.listType,
previewFile = _getOptionProps.previewFile,
disabled = _getOptionProps.disabled,
propLocale = _getOptionProps.locale;
var showRemoveIcon = showUploadList.showRemoveIcon,
showPreviewIcon = showUploadList.showPreviewIcon,
showDownloadIcon = showUploadList.showDownloadIcon;
var fileList = this.$data.sFileList;
var uploadListProps = {
props: {
listType: listType,
items: fileList,
previewFile: previewFile,
showRemoveIcon: !disabled && showRemoveIcon,
showPreviewIcon: showPreviewIcon,
showDownloadIcon: showDownloadIcon,
locale: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, locale, propLocale)
},
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
remove: this.handleManualRemove
}, lodash_pick__WEBPACK_IMPORTED_MODULE_6___default()(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getListeners"])(this), ['download', 'preview']))
};
return h(_UploadList__WEBPACK_IMPORTED_MODULE_14__["default"], uploadListProps);
}
},
render: function render() {
var _classNames2;
var h = arguments[0];
var _getOptionProps2 = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getOptionProps"])(this),
customizePrefixCls = _getOptionProps2.prefixCls,
showUploadList = _getOptionProps2.showUploadList,
listType = _getOptionProps2.listType,
type = _getOptionProps2.type,
disabled = _getOptionProps2.disabled;
var _$data = this.$data,
fileList = _$data.sFileList,
dragState = _$data.dragState;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('upload', customizePrefixCls);
var vcUploadProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, {
prefixCls: prefixCls,
beforeUpload: this.reBeforeUpload
}),
on: {
start: this.onStart,
error: this.onError,
progress: this.onProgress,
success: this.onSuccess,
reject: this.onReject
},
ref: 'uploadRef',
attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$attrs)
};
var children = this.$slots['default'];
// Remove id to avoid open by label when trigger is hidden
// https://github.com/ant-design/ant-design/issues/14298
if (!children || disabled) {
delete vcUploadProps.props.id;
delete vcUploadProps.attrs.id;
}
var uploadList = showUploadList ? h(_locale_provider_LocaleReceiver__WEBPACK_IMPORTED_MODULE_10__["default"], {
attrs: {
componentName: 'Upload',
defaultLocale: _locale_provider_default__WEBPACK_IMPORTED_MODULE_11__["default"].Upload
},
scopedSlots: { 'default': this.renderUploadList }
}) : null;
if (type === 'drag') {
var _classNames;
var dragCls = classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-drag', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-drag-uploading', fileList.some(function (file) {
return file.status === 'uploading';
})), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-drag-hover', dragState === 'dragover'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-disabled', disabled), _classNames));
return h('span', [h(
'div',
{
'class': dragCls,
on: {
'drop': this.onFileDrop,
'dragover': this.onFileDrop,
'dragleave': this.onFileDrop
}
},
[h(
_vc_upload__WEBPACK_IMPORTED_MODULE_7__["default"],
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([vcUploadProps, { 'class': prefixCls + '-btn' }]),
[h(
'div',
{ 'class': prefixCls + '-drag-container' },
[children]
)]
)]
), uploadList]);
}
var uploadButtonCls = classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls, (_classNames2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, prefixCls + '-select', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, prefixCls + '-select-' + listType, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, prefixCls + '-disabled', disabled), _classNames2));
var uploadButton = h(
'div',
{ 'class': uploadButtonCls, style: children ? undefined : { display: 'none' } },
[h(
_vc_upload__WEBPACK_IMPORTED_MODULE_7__["default"],
vcUploadProps,
[children]
)]
);
if (listType === 'picture-card') {
return h(
'span',
{ 'class': prefixCls + '-picture-card-wrapper' },
[uploadList, uploadButton]
);
}
return h('span', [uploadButton, uploadList]);
}
});
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../node_modules/process/browser.js */ "./node_modules/process/browser.js")))
/***/ }),
/***/ "./components/upload/UploadList.jsx":
/*!******************************************!*\
!*** ./components/upload/UploadList.jsx ***!
\******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_getTransitionProps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/getTransitionProps */ "./components/_util/getTransitionProps.js");
/* harmony import */ var _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../config-provider/configConsumerProps */ "./components/config-provider/configConsumerProps.jsx");
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils */ "./components/upload/utils.jsx");
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../icon */ "./components/icon/index.js");
/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../tooltip */ "./components/tooltip/index.js");
/* harmony import */ var _progress__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../progress */ "./components/progress/index.jsx");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_11__);
/* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./interface */ "./components/upload/interface.jsx");
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'AUploadList',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["initDefaultProps"])(_interface__WEBPACK_IMPORTED_MODULE_12__["UploadListProps"], {
listType: 'text', // or picture
progressAttr: {
strokeWidth: 2,
showInfo: false
},
showRemoveIcon: true,
showDownloadIcon: false,
showPreviewIcon: true,
previewFile: _utils__WEBPACK_IMPORTED_MODULE_7__["previewImage"]
}),
inject: {
configProvider: { 'default': function _default() {
return _config_provider_configConsumerProps__WEBPACK_IMPORTED_MODULE_6__["ConfigConsumerProps"];
} }
},
updated: function updated() {
var _this = this;
this.$nextTick(function () {
var _$props = _this.$props,
listType = _$props.listType,
items = _$props.items,
previewFile = _$props.previewFile;
if (listType !== 'picture' && listType !== 'picture-card') {
return;
}
(items || []).forEach(function (file) {
if (typeof document === 'undefined' || typeof window === 'undefined' || !window.FileReader || !window.File || !(file.originFileObj instanceof File || file.originFileObj instanceof Blob) || file.thumbUrl !== undefined) {
return;
}
/*eslint-disable */
file.thumbUrl = '';
if (previewFile) {
previewFile(file.originFileObj).then(function (previewDataUrl) {
// Need append '' to avoid dead loop
file.thumbUrl = previewDataUrl || '';
_this.$forceUpdate();
});
}
});
});
},
methods: {
handlePreview: function handlePreview(file, e) {
var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this),
preview = _getListeners.preview;
if (!preview) {
return;
}
e.preventDefault();
return this.$emit('preview', file);
},
handleDownload: function handleDownload(file) {
var _getListeners2 = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this),
download = _getListeners2.download;
if (typeof download === 'function') {
download(file);
} else if (file.url) {
window.open(file.url);
}
},
handleClose: function handleClose(file) {
this.$emit('remove', file);
}
},
render: function render() {
var _this2 = this,
_classNames4;
var h = arguments[0];
var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this),
customizePrefixCls = _getOptionProps.prefixCls,
_getOptionProps$items = _getOptionProps.items,
items = _getOptionProps$items === undefined ? [] : _getOptionProps$items,
listType = _getOptionProps.listType,
showPreviewIcon = _getOptionProps.showPreviewIcon,
showRemoveIcon = _getOptionProps.showRemoveIcon,
showDownloadIcon = _getOptionProps.showDownloadIcon,
locale = _getOptionProps.locale,
progressAttr = _getOptionProps.progressAttr;
var getPrefixCls = this.configProvider.getPrefixCls;
var prefixCls = getPrefixCls('upload', customizePrefixCls);
var list = items.map(function (file) {
var _classNames, _classNames2;
var progress = void 0;
var icon = h(_icon__WEBPACK_IMPORTED_MODULE_8__["default"], {
attrs: { type: file.status === 'uploading' ? 'loading' : 'paper-clip' }
});
if (listType === 'picture' || listType === 'picture-card') {
if (listType === 'picture-card' && file.status === 'uploading') {
icon = h(
'div',
{ 'class': prefixCls + '-list-item-uploading-text' },
[locale.uploading]
);
} else if (!file.thumbUrl && !file.url) {
icon = h(_icon__WEBPACK_IMPORTED_MODULE_8__["default"], { 'class': prefixCls + '-list-item-thumbnail', attrs: { type: 'picture', theme: 'twoTone' }
});
} else {
var thumbnail = Object(_utils__WEBPACK_IMPORTED_MODULE_7__["isImageUrl"])(file) ? h('img', {
attrs: {
src: file.thumbUrl || file.url,
alt: file.name
},
'class': prefixCls + '-list-item-image'
}) : h(_icon__WEBPACK_IMPORTED_MODULE_8__["default"], {
attrs: { type: 'file', theme: 'twoTone' },
'class': prefixCls + '-list-item-icon' });
icon = h(
'a',
{
'class': prefixCls + '-list-item-thumbnail',
on: {
'click': function click(e) {
return _this2.handlePreview(file, e);
}
},
attrs: {
href: file.url || file.thumbUrl,
target: '_blank',
rel: 'noopener noreferrer'
}
},
[thumbnail]
);
}
}
if (file.status === 'uploading') {
var progressProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, progressAttr, {
type: 'line',
percent: file.percent
})
};
// show loading icon if upload progress listener is disabled
var loadingProgress = 'percent' in file ? h(_progress__WEBPACK_IMPORTED_MODULE_10__["default"], progressProps) : null;
progress = h(
'div',
{ 'class': prefixCls + '-list-item-progress', key: 'progress' },
[loadingProgress]
);
}
var infoUploadingClass = classnames__WEBPACK_IMPORTED_MODULE_11___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-list-item', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-list-item-' + file.status, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-list-item-list-type-' + listType, true), _classNames));
var linkProps = typeof file.linkProps === 'string' ? JSON.parse(file.linkProps) : file.linkProps;
var removeIcon = showRemoveIcon ? h(_icon__WEBPACK_IMPORTED_MODULE_8__["default"], {
attrs: { type: 'delete', title: locale.removeFile },
on: {
'click': function click() {
return _this2.handleClose(file);
}
}
}) : null;
var downloadIcon = showDownloadIcon && file.status === 'done' ? h(_icon__WEBPACK_IMPORTED_MODULE_8__["default"], {
attrs: {
type: 'download',
title: locale.downloadFile
},
on: {
'click': function click() {
return _this2.handleDownload(file);
}
}
}) : null;
var downloadOrDelete = listType !== 'picture-card' && h(
'span',
{
key: 'download-delete',
'class': prefixCls + '-list-item-card-actions ' + (listType === 'picture' ? 'picture' : '')
},
[downloadIcon && h(
'a',
{
attrs: { title: locale.downloadFile }
},
[downloadIcon]
), removeIcon && h(
'a',
{
attrs: { title: locale.removeFile }
},
[removeIcon]
)]
);
var listItemNameClass = classnames__WEBPACK_IMPORTED_MODULE_11___default()((_classNames2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, prefixCls + '-list-item-name', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, prefixCls + '-list-item-name-icon-count-' + [downloadIcon, removeIcon].filter(function (x) {
return x;
}).length, true), _classNames2));
var preview = file.url ? [h(
'a',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
attrs: {
target: '_blank',
rel: 'noopener noreferrer',
title: file.name
},
'class': listItemNameClass }, linkProps, {
attrs: {
href: file.url
},
on: {
'click': function click(e) {
return _this2.handlePreview(file, e);
}
}
}]),
[file.name]
), downloadOrDelete] : [h(
'span',
{
key: 'view',
'class': prefixCls + '-list-item-name',
on: {
'click': function click(e) {
return _this2.handlePreview(file, e);
}
},
attrs: {
title: file.name
}
},
[file.name]
), downloadOrDelete];
var style = file.url || file.thumbUrl ? undefined : {
pointerEvents: 'none',
opacity: 0.5
};
var previewIcon = showPreviewIcon ? h(
'a',
{
attrs: {
href: file.url || file.thumbUrl,
target: '_blank',
rel: 'noopener noreferrer',
title: locale.previewFile
},
style: style,
on: {
'click': function click(e) {
return _this2.handlePreview(file, e);
}
}
},
[h(_icon__WEBPACK_IMPORTED_MODULE_8__["default"], {
attrs: { type: 'eye-o' }
})]
) : null;
var actions = listType === 'picture-card' && file.status !== 'uploading' && h(
'span',
{ 'class': prefixCls + '-list-item-actions' },
[previewIcon, file.status === 'done' && downloadIcon, removeIcon]
);
var message = void 0;
if (file.response && typeof file.response === 'string') {
message = file.response;
} else {
message = file.error && file.error.statusText || locale.uploadError;
}
var iconAndPreview = h('span', [icon, preview]);
var transitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_5__["default"])('fade');
var dom = h(
'div',
{ 'class': infoUploadingClass, key: file.uid },
[h(
'div',
{ 'class': prefixCls + '-list-item-info' },
[iconAndPreview]
), actions, h(
'transition',
transitionProps,
[progress]
)]
);
var listContainerNameClass = classnames__WEBPACK_IMPORTED_MODULE_11___default()(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, prefixCls + '-list-picture-card-container', listType === 'picture-card'));
return h(
'div',
{ key: file.uid, 'class': listContainerNameClass },
[file.status === 'error' ? h(
_tooltip__WEBPACK_IMPORTED_MODULE_9__["default"],
{
attrs: { title: message }
},
[dom]
) : h('span', [dom])]
);
});
var listClassNames = classnames__WEBPACK_IMPORTED_MODULE_11___default()((_classNames4 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames4, prefixCls + '-list', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames4, prefixCls + '-list-' + listType, true), _classNames4));
var animationDirection = listType === 'picture-card' ? 'animate-inline' : 'animate';
var transitionGroupProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_5__["default"])(prefixCls + '-' + animationDirection);
return h(
'transition-group',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([transitionGroupProps, {
attrs: { tag: 'div' },
'class': listClassNames }]),
[list]
);
}
});
/***/ }),
/***/ "./components/upload/index.jsx":
/*!*************************************!*\
!*** ./components/upload/index.jsx ***!
\*************************************/
/*! exports provided: UploadProps, UploadListProps, UploadChangeParam, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Upload__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Upload */ "./components/upload/Upload.jsx");
/* harmony import */ var _Dragger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Dragger */ "./components/upload/Dragger.jsx");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
/* harmony import */ var _interface__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./interface */ "./components/upload/interface.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UploadProps", function() { return _interface__WEBPACK_IMPORTED_MODULE_3__["UploadProps"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UploadListProps", function() { return _interface__WEBPACK_IMPORTED_MODULE_3__["UploadListProps"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UploadChangeParam", function() { return _interface__WEBPACK_IMPORTED_MODULE_3__["UploadChangeParam"]; });
_Upload__WEBPACK_IMPORTED_MODULE_0__["default"].Dragger = _Dragger__WEBPACK_IMPORTED_MODULE_1__["default"];
/* istanbul ignore next */
_Upload__WEBPACK_IMPORTED_MODULE_0__["default"].install = function (Vue) {
Vue.use(_base__WEBPACK_IMPORTED_MODULE_2__["default"]);
Vue.component(_Upload__WEBPACK_IMPORTED_MODULE_0__["default"].name, _Upload__WEBPACK_IMPORTED_MODULE_0__["default"]);
Vue.component(_Dragger__WEBPACK_IMPORTED_MODULE_1__["default"].name, _Dragger__WEBPACK_IMPORTED_MODULE_1__["default"]);
};
/* harmony default export */ __webpack_exports__["default"] = (_Upload__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/upload/interface.jsx":
/*!*****************************************!*\
!*** ./components/upload/interface.jsx ***!
\*****************************************/
/*! exports provided: UploadFileStatus, UploadChangeParam, ShowUploadListInterface, UploadLocale, UploadProps, UploadState, UploadListProps */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UploadFileStatus", function() { return UploadFileStatus; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UploadChangeParam", function() { return UploadChangeParam; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ShowUploadListInterface", function() { return ShowUploadListInterface; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UploadLocale", function() { return UploadLocale; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UploadProps", function() { return UploadProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UploadState", function() { return UploadState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UploadListProps", function() { return UploadListProps; });
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
var UploadFileStatus = _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['error', 'success', 'done', 'uploading', 'removed']);
// export const HttpRequestHeader {
// [key: string]: string;
// }
// export const UploadFile = PropsTypes.shape({
// uid: PropsTypes.oneOfType([
// PropsTypes.string,
// PropsTypes.number,
// ]),
// size: PropsTypes.number,
// name: PropsTypes.string,
// filename: PropsTypes.string,
// lastModified: PropsTypes.number,
// lastModifiedDate: PropsTypes.any,
// url: PropsTypes.string,
// status: UploadFileStatus,
// percent: PropsTypes.number,
// thumbUrl: PropsTypes.string,
// originFileObj: PropsTypes.any,
// response: PropsTypes.any,
// error: PropsTypes.any,
// linkProps: PropsTypes.any,
// type: PropsTypes.string,
// }).loose
function UploadFile(_ref) {
var uid = _ref.uid,
name = _ref.name;
if (!uid && uid !== 0) return false;
if (!['string', 'number'].includes(typeof uid === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(uid))) return false;
if (name === '' || typeof name !== 'string') return false;
return true;
}
var UploadChangeParam = {
file: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].custom(UploadFile),
fileList: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].custom(UploadFile)),
event: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object
};
var ShowUploadListInterface = _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].shape({
showRemoveIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
showPreviewIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool
}).loose;
var UploadLocale = _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].shape({
uploading: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
removeFile: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
downloadFile: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
uploadError: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
previewFile: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string
}).loose;
var UploadProps = {
type: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['drag', 'select']),
name: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
defaultFileList: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].custom(UploadFile)),
fileList: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].custom(UploadFile)),
action: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func]),
directory: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
data: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func]),
method: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['POST', 'PUT', 'post', 'put']),
headers: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
showUploadList: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool, ShowUploadListInterface]),
multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
accept: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
beforeUpload: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
// onChange: PropsTypes.func,
listType: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['text', 'picture', 'picture-card']),
// className: PropsTypes.string,
// onPreview: PropsTypes.func,
remove: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
supportServerRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
// style: PropsTypes.object,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
customRequest: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
withCredentials: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
openFileDialogOnClick: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
locale: UploadLocale,
height: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
id: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
previewFile: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
transformFile: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
};
var UploadState = {
fileList: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].custom(UploadFile)),
dragState: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string
};
var UploadListProps = {
listType: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['text', 'picture', 'picture-card']),
// onPreview: PropsTypes.func,
// onRemove: PropsTypes.func,
// items: PropsTypes.arrayOf(UploadFile),
items: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].custom(UploadFile)),
// items: PropsTypes.any,
progressAttr: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
showRemoveIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
showDownloadIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
showPreviewIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
locale: UploadLocale,
previewFile: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
};
/***/ }),
/***/ "./components/upload/style/index.js":
/*!******************************************!*\
!*** ./components/upload/style/index.js ***!
\******************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.less */ "./components/upload/style/index.less");
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _progress_style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../progress/style */ "./components/progress/style/index.js");
/* harmony import */ var _tooltip_style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../tooltip/style */ "./components/tooltip/style/index.js");
// style dependencies
/***/ }),
/***/ "./components/upload/style/index.less":
/*!********************************************!*\
!*** ./components/upload/style/index.less ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
/***/ }),
/***/ "./components/upload/utils.jsx":
/*!*************************************!*\
!*** ./components/upload/utils.jsx ***!
\*************************************/
/*! exports provided: T, fileToObject, genPercentAdd, getFileItem, removeFileItem, isImageUrl, previewImage */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "T", function() { return T; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fileToObject", function() { return fileToObject; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "genPercentAdd", function() { return genPercentAdd; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getFileItem", function() { return getFileItem; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeFileItem", function() { return removeFileItem; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isImageUrl", function() { return isImageUrl; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "previewImage", function() { return previewImage; });
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
function T() {
return true;
}
// Fix IE file.status problem
// via coping a new Object
function fileToObject(file) {
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, file, {
lastModified: file.lastModified,
lastModifiedDate: file.lastModifiedDate,
name: file.name,
size: file.size,
type: file.type,
uid: file.uid,
percent: 0,
originFileObj: file
});
}
/**
* 生成Progress percent: 0.1 -> 0.98
* - for ie
*/
function genPercentAdd() {
var k = 0.1;
var i = 0.01;
var end = 0.98;
return function (s) {
var start = s;
if (start >= end) {
return start;
}
start += k;
k = k - i;
if (k < 0.001) {
k = 0.001;
}
return start;
};
}
function getFileItem(file, fileList) {
var matchKey = file.uid !== undefined ? 'uid' : 'name';
return fileList.filter(function (item) {
return item[matchKey] === file[matchKey];
})[0];
}
function removeFileItem(file, fileList) {
var matchKey = file.uid !== undefined ? 'uid' : 'name';
var removed = fileList.filter(function (item) {
return item[matchKey] !== file[matchKey];
});
if (removed.length === fileList.length) {
return null;
}
return removed;
}
// ==================== Default Image Preview ====================
var extname = function extname() {
var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
var temp = url.split('/');
var filename = temp[temp.length - 1];
var filenameWithoutSuffix = filename.split(/#|\?/)[0];
return (/\.[^./\\]*$/.exec(filenameWithoutSuffix) || [''])[0];
};
var isImageFileType = function isImageFileType(type) {
return !!type && type.indexOf('image/') === 0;
};
var isImageUrl = function isImageUrl(file) {
if (isImageFileType(file.type)) {
return true;
}
var url = file.thumbUrl || file.url;
var extension = extname(url);
if (/^data:image\//.test(url) || /(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(extension)) {
return true;
}
if (/^data:/.test(url)) {
// other file types of base64
return false;
}
if (extension) {
// other file types which have extension
return false;
}
return true;
};
var MEASURE_SIZE = 200;
function previewImage(file) {
return new Promise(function (resolve) {
if (!isImageFileType(file.type)) {
resolve('');
return;
}
var canvas = document.createElement('canvas');
canvas.width = MEASURE_SIZE;
canvas.height = MEASURE_SIZE;
canvas.style.cssText = 'position: fixed; left: 0; top: 0; width: ' + MEASURE_SIZE + 'px; height: ' + MEASURE_SIZE + 'px; z-index: 9999; display: none;';
document.body.appendChild(canvas);
var ctx = canvas.getContext('2d');
var img = new Image();
img.onload = function () {
var width = img.width,
height = img.height;
var drawWidth = MEASURE_SIZE;
var drawHeight = MEASURE_SIZE;
var offsetX = 0;
var offsetY = 0;
if (width < height) {
drawHeight = height * (MEASURE_SIZE / width);
offsetY = -(drawHeight - drawWidth) / 2;
} else {
drawWidth = width * (MEASURE_SIZE / height);
offsetX = -(drawWidth - drawHeight) / 2;
}
ctx.drawImage(img, offsetX, offsetY, drawWidth, drawHeight);
var dataURL = canvas.toDataURL();
document.body.removeChild(canvas);
resolve(dataURL);
};
img.src = window.URL.createObjectURL(file);
});
}
/***/ }),
/***/ "./components/vc-align/Align.jsx":
/*!***************************************!*\
!*** ./components/vc-align/Align.jsx ***!
\***************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var dom_align__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! dom-align */ "./node_modules/dom-align/dist-web/index.js");
/* harmony import */ var _vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../vc-util/Dom/addEventListener */ "./components/vc-util/Dom/addEventListener.js");
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./util */ "./components/vc-align/util.js");
/* harmony import */ var _util_vnode_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vnode.js */ "./components/_util/vnode.js");
/* harmony import */ var lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/cloneDeep */ "./node_modules/lodash/cloneDeep.js");
/* harmony import */ var lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
function getElement(func) {
if (typeof func !== 'function' || !func) return null;
return func();
}
function getPoint(point) {
if ((typeof point === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(point)) !== 'object' || !point) return null;
return point;
}
/* harmony default export */ __webpack_exports__["default"] = ({
props: {
childrenProps: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
align: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object.isRequired,
target: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object]).def(function () {
return window;
}),
monitorBufferTime: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number.def(50),
monitorWindowResize: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool.def(false),
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool.def(false)
},
data: function data() {
this.aligned = false;
return {};
},
mounted: function mounted() {
var _this = this;
this.$nextTick(function () {
_this.prevProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _this.$props);
var props = _this.$props;
// if parent ref not attached .... use document.getElementById
!_this.aligned && _this.forceAlign();
if (!props.disabled && props.monitorWindowResize) {
_this.startMonitorWindowResize();
}
});
},
updated: function updated() {
var _this2 = this;
this.$nextTick(function () {
var prevProps = _this2.prevProps;
var props = _this2.$props;
var reAlign = false;
if (!props.disabled) {
var source = _this2.$el;
var sourceRect = source ? source.getBoundingClientRect() : null;
if (prevProps.disabled) {
reAlign = true;
} else {
var lastElement = getElement(prevProps.target);
var currentElement = getElement(props.target);
var lastPoint = getPoint(prevProps.target);
var currentPoint = getPoint(props.target);
if (Object(_util__WEBPACK_IMPORTED_MODULE_5__["isWindow"])(lastElement) && Object(_util__WEBPACK_IMPORTED_MODULE_5__["isWindow"])(currentElement)) {
// Skip if is window
reAlign = false;
} else if (lastElement !== currentElement || // Element change
lastElement && !currentElement && currentPoint || // Change from element to point
lastPoint && currentPoint && currentElement || // Change from point to element
currentPoint && !Object(_util__WEBPACK_IMPORTED_MODULE_5__["isSamePoint"])(lastPoint, currentPoint)) {
reAlign = true;
}
// If source element size changed
var preRect = _this2.sourceRect || {};
if (!reAlign && source && (!Object(_util__WEBPACK_IMPORTED_MODULE_5__["isSimilarValue"])(preRect.width, sourceRect.width) || !Object(_util__WEBPACK_IMPORTED_MODULE_5__["isSimilarValue"])(preRect.height, sourceRect.height))) {
reAlign = true;
}
}
_this2.sourceRect = sourceRect;
}
if (reAlign) {
_this2.forceAlign();
}
if (props.monitorWindowResize && !props.disabled) {
_this2.startMonitorWindowResize();
} else {
_this2.stopMonitorWindowResize();
}
_this2.prevProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _this2.$props, { align: lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_7___default()(_this2.$props.align) });
});
},
beforeDestroy: function beforeDestroy() {
this.stopMonitorWindowResize();
},
methods: {
startMonitorWindowResize: function startMonitorWindowResize() {
if (!this.resizeHandler) {
this.bufferMonitor = Object(_util__WEBPACK_IMPORTED_MODULE_5__["buffer"])(this.forceAlign, this.$props.monitorBufferTime);
this.resizeHandler = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_4__["default"])(window, 'resize', this.bufferMonitor);
}
},
stopMonitorWindowResize: function stopMonitorWindowResize() {
if (this.resizeHandler) {
this.bufferMonitor.clear();
this.resizeHandler.remove();
this.resizeHandler = null;
}
},
forceAlign: function forceAlign() {
var _$props = this.$props,
disabled = _$props.disabled,
target = _$props.target,
align = _$props.align;
if (!disabled && target) {
var source = this.$el;
var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getListeners"])(this);
var result = void 0;
var element = getElement(target);
var point = getPoint(target);
// IE lose focus after element realign
// We should record activeElement and restore later
var activeElement = document.activeElement;
if (element) {
result = Object(dom_align__WEBPACK_IMPORTED_MODULE_3__["alignElement"])(source, element, align);
} else if (point) {
result = Object(dom_align__WEBPACK_IMPORTED_MODULE_3__["alignPoint"])(source, point, align);
}
Object(_util__WEBPACK_IMPORTED_MODULE_5__["restoreFocus"])(activeElement, source);
this.aligned = true;
listeners.align && listeners.align(source, result);
}
}
},
render: function render() {
var childrenProps = this.$props.childrenProps;
var child = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getSlot"])(this)[0];
if (child && childrenProps) {
return Object(_util_vnode_js__WEBPACK_IMPORTED_MODULE_6__["cloneElement"])(child, { props: childrenProps });
}
return child;
}
});
/***/ }),
/***/ "./components/vc-align/index.js":
/*!**************************************!*\
!*** ./components/vc-align/index.js ***!
\**************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Align__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Align */ "./components/vc-align/Align.jsx");
// based on vc-align 2.4.5
/* harmony default export */ __webpack_exports__["default"] = (_Align__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/vc-align/util.js":
/*!*************************************!*\
!*** ./components/vc-align/util.js ***!
\*************************************/
/*! exports provided: buffer, isSamePoint, isWindow, isSimilarValue, restoreFocus */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "buffer", function() { return buffer; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isSamePoint", function() { return isSamePoint; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isWindow", function() { return isWindow; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isSimilarValue", function() { return isSimilarValue; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "restoreFocus", function() { return restoreFocus; });
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _vc_util_Dom_contains__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../vc-util/Dom/contains */ "./components/vc-util/Dom/contains.js");
function buffer(fn, ms) {
var timer = void 0;
function clear() {
if (timer) {
clearTimeout(timer);
timer = null;
}
}
function bufferFn() {
clear();
timer = setTimeout(fn, ms);
}
bufferFn.clear = clear;
return bufferFn;
}
function isSamePoint(prev, next) {
if (prev === next) return true;
if (!prev || !next) return false;
if ('pageX' in next && 'pageY' in next) {
return prev.pageX === next.pageX && prev.pageY === next.pageY;
}
if ('clientX' in next && 'clientY' in next) {
return prev.clientX === next.clientX && prev.clientY === next.clientY;
}
return false;
}
function isWindow(obj) {
return obj && (typeof obj === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(obj)) === 'object' && obj.window === obj;
}
function isSimilarValue(val1, val2) {
var int1 = Math.floor(val1);
var int2 = Math.floor(val2);
return Math.abs(int1 - int2) <= 1;
}
function restoreFocus(activeElement, container) {
// Focus back if is in the container
if (activeElement !== document.activeElement && Object(_vc_util_Dom_contains__WEBPACK_IMPORTED_MODULE_1__["default"])(container, activeElement)) {
activeElement.focus();
}
}
/***/ }),
/***/ "./components/vc-calendar/index.js":
/*!*****************************************!*\
!*** ./components/vc-calendar/index.js ***!
\*****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "vue");
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
/* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _src___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./src/ */ "./components/vc-calendar/src/index.js");
// based on rc-calendar 9.15.10
vue__WEBPACK_IMPORTED_MODULE_0___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_1___default.a, { name: 'ant-ref' });
/* harmony default export */ __webpack_exports__["default"] = (_src___WEBPACK_IMPORTED_MODULE_2__["default"]);
/***/ }),
/***/ "./components/vc-calendar/src/Calendar.jsx":
/*!*************************************************!*\
!*** ./components/vc-calendar/src/Calendar.jsx ***!
\*************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/KeyCode */ "./components/_util/KeyCode.js");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! moment */ "moment");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _date_DateTable__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./date/DateTable */ "./components/vc-calendar/src/date/DateTable.jsx");
/* harmony import */ var _calendar_CalendarHeader__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./calendar/CalendarHeader */ "./components/vc-calendar/src/calendar/CalendarHeader.jsx");
/* harmony import */ var _calendar_CalendarFooter__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./calendar/CalendarFooter */ "./components/vc-calendar/src/calendar/CalendarFooter.jsx");
/* harmony import */ var _mixin_CalendarMixin__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./mixin/CalendarMixin */ "./components/vc-calendar/src/mixin/CalendarMixin.js");
/* harmony import */ var _mixin_CommonMixin__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./mixin/CommonMixin */ "./components/vc-calendar/src/mixin/CommonMixin.js");
/* harmony import */ var _date_DateInput__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./date/DateInput */ "./components/vc-calendar/src/date/DateInput.jsx");
/* harmony import */ var _locale_en_US__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./locale/en_US */ "./components/vc-calendar/src/locale/en_US.js");
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./util */ "./components/vc-calendar/src/util/index.js");
/* harmony import */ var _util_toTime__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./util/toTime */ "./components/vc-calendar/src/util/toTime.js");
var getMomentObjectIfValid = function getMomentObjectIfValid(date) {
if (moment__WEBPACK_IMPORTED_MODULE_6___default.a.isMoment(date) && date.isValid()) {
return date;
}
return false;
};
var Calendar = {
name: 'Calendar',
props: {
locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object.def(_locale_en_US__WEBPACK_IMPORTED_MODULE_13__["default"]),
format: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string), _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func]),
visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool.def(true),
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string.def('rc-calendar'),
// prefixCls: PropTypes.string,
defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
selectedValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
defaultSelectedValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(['time', 'date', 'month', 'year', 'decade']),
// locale: PropTypes.object,
showDateInput: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool.def(true),
showWeekNumber: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
showToday: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool.def(true),
showOk: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
// onSelect: PropTypes.func,
// onOk: PropTypes.func,
// onKeyDown: PropTypes.func,
timePicker: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
dateInputPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
// onClear: PropTypes.func,
// onChange: PropTypes.func,
// onPanelChange: PropTypes.func,
disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
disabledTime: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
dateRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
renderFooter: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func.def(function () {
return null;
}),
renderSidebar: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func.def(function () {
return null;
}),
clearIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
focusablePanel: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool.def(true),
inputMode: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
inputReadOnly: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool
},
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"], _mixin_CommonMixin__WEBPACK_IMPORTED_MODULE_11__["default"], _mixin_CalendarMixin__WEBPACK_IMPORTED_MODULE_10__["default"]],
data: function data() {
var props = this.$props;
return {
sMode: this.mode || 'date',
sValue: getMomentObjectIfValid(props.value) || getMomentObjectIfValid(props.defaultValue) || moment__WEBPACK_IMPORTED_MODULE_6___default()(),
sSelectedValue: props.selectedValue || props.defaultSelectedValue
};
},
watch: {
mode: function mode(val) {
this.setState({ sMode: val });
},
value: function value(val) {
this.setState({
sValue: getMomentObjectIfValid(val) || getMomentObjectIfValid(this.defaultValue) || Object(_mixin_CalendarMixin__WEBPACK_IMPORTED_MODULE_10__["getNowByCurrentStateValue"])(this.sValue)
});
},
selectedValue: function selectedValue(val) {
this.setState({
sSelectedValue: val
});
}
},
mounted: function mounted() {
var _this = this;
this.$nextTick(function () {
_this.saveFocusElement(_date_DateInput__WEBPACK_IMPORTED_MODULE_12__["default"].getInstance());
});
},
methods: {
onPanelChange: function onPanelChange(value, mode) {
var sValue = this.sValue;
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["hasProp"])(this, 'mode')) {
this.setState({ sMode: mode });
}
this.__emit('panelChange', value || sValue, mode);
},
onKeyDown: function onKeyDown(event) {
if (event.target.nodeName.toLowerCase() === 'input') {
return undefined;
}
var keyCode = event.keyCode;
// mac
var ctrlKey = event.ctrlKey || event.metaKey;
var disabledDate = this.disabledDate,
value = this.sValue;
switch (keyCode) {
case _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].DOWN:
this.goTime(1, 'weeks');
event.preventDefault();
return 1;
case _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].UP:
this.goTime(-1, 'weeks');
event.preventDefault();
return 1;
case _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].LEFT:
if (ctrlKey) {
this.goTime(-1, 'years');
} else {
this.goTime(-1, 'days');
}
event.preventDefault();
return 1;
case _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].RIGHT:
if (ctrlKey) {
this.goTime(1, 'years');
} else {
this.goTime(1, 'days');
}
event.preventDefault();
return 1;
case _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].HOME:
this.setValue(Object(_util_toTime__WEBPACK_IMPORTED_MODULE_15__["goStartMonth"])(value));
event.preventDefault();
return 1;
case _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].END:
this.setValue(Object(_util_toTime__WEBPACK_IMPORTED_MODULE_15__["goEndMonth"])(value));
event.preventDefault();
return 1;
case _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].PAGE_DOWN:
this.goTime(1, 'month');
event.preventDefault();
return 1;
case _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].PAGE_UP:
this.goTime(-1, 'month');
event.preventDefault();
return 1;
case _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].ENTER:
if (!disabledDate || !disabledDate(value)) {
this.onSelect(value, {
source: 'keyboard'
});
}
event.preventDefault();
return 1;
default:
this.__emit('keydown', event);
return 1;
}
},
onClear: function onClear() {
this.onSelect(null);
this.__emit('clear');
},
onOk: function onOk() {
var sSelectedValue = this.sSelectedValue;
if (this.isAllowedDate(sSelectedValue)) {
this.__emit('ok', sSelectedValue);
}
},
onDateInputChange: function onDateInputChange(value) {
this.onSelect(value, {
source: 'dateInput'
});
},
onDateInputSelect: function onDateInputSelect(value) {
this.onSelect(value, {
source: 'dateInputSelect'
});
},
onDateTableSelect: function onDateTableSelect(value) {
var timePicker = this.timePicker,
sSelectedValue = this.sSelectedValue;
if (!sSelectedValue && timePicker) {
var timePickerProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getOptionProps"])(timePicker);
var timePickerDefaultValue = timePickerProps.defaultValue;
if (timePickerDefaultValue) {
Object(_util__WEBPACK_IMPORTED_MODULE_14__["syncTime"])(timePickerDefaultValue, value);
}
}
this.onSelect(value);
},
onToday: function onToday() {
var sValue = this.sValue;
var now = Object(_util__WEBPACK_IMPORTED_MODULE_14__["getTodayTime"])(sValue);
this.onSelect(now, {
source: 'todayButton'
});
},
onBlur: function onBlur(event) {
var _this2 = this;
setTimeout(function () {
var dateInput = _date_DateInput__WEBPACK_IMPORTED_MODULE_12__["default"].getInstance();
var rootInstance = _this2.rootInstance;
if (!rootInstance || rootInstance.contains(document.activeElement) || dateInput && dateInput.contains(document.activeElement)) {
// focused element is still part of Calendar
return;
}
_this2.$emit('blur', event);
}, 0);
},
getRootDOMNode: function getRootDOMNode() {
return this.$el;
},
openTimePicker: function openTimePicker() {
this.onPanelChange(null, 'time');
},
closeTimePicker: function closeTimePicker() {
this.onPanelChange(null, 'date');
},
goTime: function goTime(direction, unit) {
this.setValue(Object(_util_toTime__WEBPACK_IMPORTED_MODULE_15__["goTime"])(this.sValue, direction, unit));
}
},
render: function render() {
var h = arguments[0];
var locale = this.locale,
prefixCls = this.prefixCls,
disabledDate = this.disabledDate,
dateInputPlaceholder = this.dateInputPlaceholder,
timePicker = this.timePicker,
disabledTime = this.disabledTime,
showDateInput = this.showDateInput,
sValue = this.sValue,
sSelectedValue = this.sSelectedValue,
sMode = this.sMode,
renderFooter = this.renderFooter,
inputMode = this.inputMode,
inputReadOnly = this.inputReadOnly,
monthCellRender = this.monthCellRender,
monthCellContentRender = this.monthCellContentRender,
props = this.$props;
var clearIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'clearIcon');
var showTimePicker = sMode === 'time';
var disabledTimeConfig = showTimePicker && disabledTime && timePicker ? Object(_util__WEBPACK_IMPORTED_MODULE_14__["getTimeConfig"])(sSelectedValue, disabledTime) : null;
var timePickerEle = null;
if (timePicker && showTimePicker) {
var timePickerOriginProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getOptionProps"])(timePicker);
var timePickerProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
showHour: true,
showSecond: true,
showMinute: true
}, timePickerOriginProps, disabledTimeConfig, {
value: sSelectedValue,
disabledTime: disabledTime
}),
on: {
change: this.onDateInputChange
}
};
if (timePickerOriginProps.defaultValue !== undefined) {
timePickerProps.props.defaultOpenValue = timePickerOriginProps.defaultValue;
}
timePickerEle = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_4__["cloneElement"])(timePicker, timePickerProps);
}
var dateInputElement = showDateInput ? h(_date_DateInput__WEBPACK_IMPORTED_MODULE_12__["default"], {
attrs: {
format: this.getFormat(),
value: sValue,
locale: locale,
placeholder: dateInputPlaceholder,
showClear: true,
disabledTime: disabledTime,
disabledDate: disabledDate,
prefixCls: prefixCls,
selectedValue: sSelectedValue,
clearIcon: clearIcon,
inputMode: inputMode,
inputReadOnly: inputReadOnly
},
key: 'date-input', on: {
'clear': this.onClear,
'change': this.onDateInputChange,
'select': this.onDateInputSelect
}
}) : null;
var children = [];
if (props.renderSidebar) {
children.push(props.renderSidebar());
}
children.push(h(
'div',
{ 'class': prefixCls + '-panel', key: 'panel' },
[dateInputElement, h(
'div',
{
attrs: { tabIndex: props.focusablePanel ? 0 : undefined },
'class': prefixCls + '-date-panel' },
[h(_calendar_CalendarHeader__WEBPACK_IMPORTED_MODULE_8__["default"], {
attrs: {
locale: locale,
mode: sMode,
value: sValue,
disabledMonth: disabledDate,
renderFooter: renderFooter,
showTimePicker: showTimePicker,
prefixCls: prefixCls,
monthCellRender: monthCellRender,
monthCellContentRender: monthCellContentRender
},
on: {
'valueChange': this.setValue,
'panelChange': this.onPanelChange
}
}), timePicker && showTimePicker ? h(
'div',
{ 'class': prefixCls + '-time-picker' },
[h(
'div',
{ 'class': prefixCls + '-time-picker-panel' },
[timePickerEle]
)]
) : null, h(
'div',
{ 'class': prefixCls + '-body' },
[h(_date_DateTable__WEBPACK_IMPORTED_MODULE_7__["default"], {
attrs: {
locale: locale,
value: sValue,
selectedValue: sSelectedValue,
prefixCls: prefixCls,
dateRender: props.dateRender,
disabledDate: disabledDate,
showWeekNumber: props.showWeekNumber
},
on: {
'select': this.onDateTableSelect
}
})]
), h(_calendar_CalendarFooter__WEBPACK_IMPORTED_MODULE_9__["default"], {
attrs: {
showOk: props.showOk,
mode: sMode,
renderFooter: props.renderFooter,
locale: locale,
prefixCls: prefixCls,
showToday: props.showToday,
disabledTime: disabledTime,
showTimePicker: showTimePicker,
showDateInput: props.showDateInput,
timePicker: timePicker,
selectedValue: sSelectedValue,
timePickerDisabled: !sSelectedValue,
value: sValue,
disabledDate: disabledDate,
okDisabled: props.showOk !== false && (!sSelectedValue || !this.isAllowedDate(sSelectedValue))
},
on: {
'ok': this.onOk,
'select': this.onSelect,
'today': this.onToday,
'openTimePicker': this.openTimePicker,
'closeTimePicker': this.closeTimePicker
}
})]
)]
));
return this.renderRoot({
children: children,
'class': props.showWeekNumber ? prefixCls + '-week-number' : ''
});
}
};
/* harmony default export */ __webpack_exports__["default"] = (Calendar);
/***/ }),
/***/ "./components/vc-calendar/src/FullCalendar.jsx":
/*!*****************************************************!*\
!*** ./components/vc-calendar/src/FullCalendar.jsx ***!
\*****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "moment");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _date_DateTable__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./date/DateTable */ "./components/vc-calendar/src/date/DateTable.jsx");
/* harmony import */ var _month_MonthTable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./month/MonthTable */ "./components/vc-calendar/src/month/MonthTable.jsx");
/* harmony import */ var _mixin_CalendarMixin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./mixin/CalendarMixin */ "./components/vc-calendar/src/mixin/CalendarMixin.js");
/* harmony import */ var _mixin_CommonMixin__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./mixin/CommonMixin */ "./components/vc-calendar/src/mixin/CommonMixin.js");
/* harmony import */ var _full_calendar_CalendarHeader__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./full-calendar/CalendarHeader */ "./components/vc-calendar/src/full-calendar/CalendarHeader.jsx");
/* harmony import */ var _locale_en_US__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./locale/en_US */ "./components/vc-calendar/src/locale/en_US.js");
var FullCalendar = {
name: 'FullCalendar',
props: {
locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object.def(_locale_en_US__WEBPACK_IMPORTED_MODULE_10__["default"]),
format: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func]),
visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool.def(true),
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def('rc-calendar'),
defaultType: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def('date'),
type: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
fullscreen: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool.def(false),
monthCellRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
dateCellRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
showTypeSwitch: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool.def(true),
Select: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object.isRequired,
headerComponents: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array,
headerComponent: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object, // The whole header component
headerRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
showHeader: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool.def(true),
disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
selectedValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
defaultSelectedValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
renderFooter: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func.def(function () {
return null;
}),
renderSidebar: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func.def(function () {
return null;
})
},
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"], _mixin_CommonMixin__WEBPACK_IMPORTED_MODULE_8__["default"], _mixin_CalendarMixin__WEBPACK_IMPORTED_MODULE_7__["default"]],
data: function data() {
var type = void 0;
if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["hasProp"])(this, 'type')) {
type = this.type;
} else {
type = this.defaultType;
}
var props = this.$props;
return {
sType: type,
sValue: props.value || props.defaultValue || moment__WEBPACK_IMPORTED_MODULE_1___default()(),
sSelectedValue: props.selectedValue || props.defaultSelectedValue
};
},
watch: {
type: function type(val) {
this.setState({
sType: val
});
},
value: function value(val) {
var sValue = val || this.defaultValue || Object(_mixin_CalendarMixin__WEBPACK_IMPORTED_MODULE_7__["getNowByCurrentStateValue"])(this.sValue);
this.setState({
sValue: sValue
});
},
selectedValue: function selectedValue(val) {
this.setState({
sSelectedValue: val
});
}
},
methods: {
onMonthSelect: function onMonthSelect(value) {
this.onSelect(value, {
target: 'month'
});
},
setType: function setType(type) {
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["hasProp"])(this, 'type')) {
this.setState({
sType: type
});
}
this.__emit('typeChange', type);
}
},
render: function render() {
var h = arguments[0];
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this);
var locale = props.locale,
prefixCls = props.prefixCls,
fullscreen = props.fullscreen,
showHeader = props.showHeader,
headerComponent = props.headerComponent,
headerRender = props.headerRender,
disabledDate = props.disabledDate;
var value = this.sValue,
type = this.sType;
var header = null;
if (showHeader) {
if (headerRender) {
header = headerRender(value, type, locale);
} else {
var TheHeader = headerComponent || _full_calendar_CalendarHeader__WEBPACK_IMPORTED_MODULE_9__["default"];
var headerProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
prefixCls: prefixCls + '-full',
type: type,
value: value
}),
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this), {
typeChange: this.setType,
valueChange: this.setValue
}),
key: 'calendar-header'
};
header = h(TheHeader, headerProps);
}
}
var table = type === 'date' ? h(_date_DateTable__WEBPACK_IMPORTED_MODULE_5__["default"], {
attrs: {
dateRender: props.dateCellRender,
contentRender: props.dateCellContentRender,
locale: locale,
prefixCls: prefixCls,
value: value,
disabledDate: disabledDate
},
on: {
'select': this.onSelect
}
}) : h(_month_MonthTable__WEBPACK_IMPORTED_MODULE_6__["default"], {
attrs: {
cellRender: props.monthCellRender,
contentRender: props.monthCellContentRender,
locale: locale,
prefixCls: prefixCls + '-month-panel',
value: value,
disabledDate: disabledDate
},
on: {
'select': this.onMonthSelect
}
});
var children = [header, h(
'div',
{ key: 'calendar-body', 'class': prefixCls + '-calendar-body' },
[table]
)];
var className = [prefixCls + '-full'];
if (fullscreen) {
className.push(prefixCls + '-fullscreen');
}
return this.renderRoot({
children: children,
'class': className.join(' ')
});
}
};
/* harmony default export */ __webpack_exports__["default"] = (FullCalendar);
/***/ }),
/***/ "./components/vc-calendar/src/MonthCalendar.jsx":
/*!******************************************************!*\
!*** ./components/vc-calendar/src/MonthCalendar.jsx ***!
\******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! moment */ "moment");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/KeyCode */ "./components/_util/KeyCode.js");
/* harmony import */ var _calendar_CalendarHeader__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./calendar/CalendarHeader */ "./components/vc-calendar/src/calendar/CalendarHeader.jsx");
/* harmony import */ var _calendar_CalendarFooter__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./calendar/CalendarFooter */ "./components/vc-calendar/src/calendar/CalendarFooter.jsx");
/* harmony import */ var _mixin_CalendarMixin__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./mixin/CalendarMixin */ "./components/vc-calendar/src/mixin/CalendarMixin.js");
/* harmony import */ var _mixin_CommonMixin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./mixin/CommonMixin */ "./components/vc-calendar/src/mixin/CommonMixin.js");
/* harmony import */ var _locale_en_US__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./locale/en_US */ "./components/vc-calendar/src/locale/en_US.js");
var MonthCalendar = {
name: 'MonthCalendar',
props: {
locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object.def(_locale_en_US__WEBPACK_IMPORTED_MODULE_8__["default"]),
format: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool.def(true),
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string.def('rc-calendar'),
monthCellRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
selectedValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
defaultSelectedValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
monthCellContentRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
renderFooter: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func.def(function () {
return null;
}),
renderSidebar: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func.def(function () {
return null;
})
},
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"], _mixin_CommonMixin__WEBPACK_IMPORTED_MODULE_7__["default"], _mixin_CalendarMixin__WEBPACK_IMPORTED_MODULE_6__["default"]],
data: function data() {
var props = this.$props;
return {
mode: 'month',
sValue: props.value || props.defaultValue || moment__WEBPACK_IMPORTED_MODULE_0___default()(),
sSelectedValue: props.selectedValue || props.defaultSelectedValue
};
},
methods: {
onKeyDown: function onKeyDown(event) {
var keyCode = event.keyCode;
var ctrlKey = event.ctrlKey || event.metaKey;
var stateValue = this.sValue;
var disabledDate = this.disabledDate;
var value = stateValue;
switch (keyCode) {
case _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].DOWN:
value = stateValue.clone();
value.add(3, 'months');
break;
case _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].UP:
value = stateValue.clone();
value.add(-3, 'months');
break;
case _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].LEFT:
value = stateValue.clone();
if (ctrlKey) {
value.add(-1, 'years');
} else {
value.add(-1, 'months');
}
break;
case _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].RIGHT:
value = stateValue.clone();
if (ctrlKey) {
value.add(1, 'years');
} else {
value.add(1, 'months');
}
break;
case _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].ENTER:
if (!disabledDate || !disabledDate(stateValue)) {
this.onSelect(stateValue);
}
event.preventDefault();
return 1;
default:
return undefined;
}
if (value !== stateValue) {
this.setValue(value);
event.preventDefault();
return 1;
}
},
handlePanelChange: function handlePanelChange(_, mode) {
if (mode !== 'date') {
this.setState({ mode: mode });
}
}
},
render: function render() {
var h = arguments[0];
var mode = this.mode,
value = this.sValue,
props = this.$props,
$scopedSlots = this.$scopedSlots;
var prefixCls = props.prefixCls,
locale = props.locale,
disabledDate = props.disabledDate;
var monthCellRender = this.monthCellRender || $scopedSlots.monthCellRender;
var monthCellContentRender = this.monthCellContentRender || $scopedSlots.monthCellContentRender;
var renderFooter = this.renderFooter || $scopedSlots.renderFooter;
var children = h(
'div',
{ 'class': prefixCls + '-month-calendar-content' },
[h(
'div',
{ 'class': prefixCls + '-month-header-wrap' },
[h(_calendar_CalendarHeader__WEBPACK_IMPORTED_MODULE_4__["default"], {
attrs: {
prefixCls: prefixCls,
mode: mode,
value: value,
locale: locale,
disabledMonth: disabledDate,
monthCellRender: monthCellRender,
monthCellContentRender: monthCellContentRender
},
on: {
'monthSelect': this.onSelect,
'valueChange': this.setValue,
'panelChange': this.handlePanelChange
}
})]
), h(_calendar_CalendarFooter__WEBPACK_IMPORTED_MODULE_5__["default"], {
attrs: { prefixCls: prefixCls, renderFooter: renderFooter }
})]
);
return this.renderRoot({
'class': props.prefixCls + '-month-calendar',
children: children
});
}
};
/* harmony default export */ __webpack_exports__["default"] = (MonthCalendar);
/***/ }),
/***/ "./components/vc-calendar/src/Picker.jsx":
/*!***********************************************!*\
!*** ./components/vc-calendar/src/Picker.jsx ***!
\***********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _util_createChainedFunction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/createChainedFunction */ "./components/_util/createChainedFunction.js");
/* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/KeyCode */ "./components/_util/KeyCode.js");
/* harmony import */ var _picker_placements__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./picker/placements */ "./components/vc-calendar/src/picker/placements.js");
/* harmony import */ var _vc_trigger__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../vc-trigger */ "./components/vc-trigger/index.js");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! moment */ "moment");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! lodash/isNil */ "./node_modules/lodash/isNil.js");
/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_9__);
var TimeType = {
validator: function validator(value) {
if (Array.isArray(value)) {
return value.length === 0 || value.findIndex(function (val) {
return !lodash_isNil__WEBPACK_IMPORTED_MODULE_9___default()(val) && !moment__WEBPACK_IMPORTED_MODULE_8___default.a.isMoment(val);
}) === -1;
} else {
return lodash_isNil__WEBPACK_IMPORTED_MODULE_9___default()(value) || moment__WEBPACK_IMPORTED_MODULE_8___default.a.isMoment(value);
}
}
};
var Picker = {
name: 'Picker',
props: {
animation: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string]),
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
format: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].array, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func]),
// onChange: PropTypes.func,
// onOpenChange: PropTypes.func,
children: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
getCalendarContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
calendar: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
open: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
defaultOpen: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string.def('rc-calendar-picker'),
placement: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any.def('bottomLeft'),
value: TimeType,
defaultValue: TimeType,
align: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object.def(function () {
return {};
}),
dropdownClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
dateRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func
},
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__["default"]],
data: function data() {
var props = this.$props;
var open = void 0;
if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["hasProp"])(this, 'open')) {
open = props.open;
} else {
open = props.defaultOpen;
}
var value = props.value || props.defaultValue;
return {
sOpen: open,
sValue: value
};
},
watch: {
value: function value(val) {
this.setState({
sValue: val
});
},
open: function open(val) {
this.setState({
sOpen: val
});
}
},
mounted: function mounted() {
this.preSOpen = this.sOpen;
},
updated: function updated() {
if (!this.preSOpen && this.sOpen) {
// setTimeout is for making sure saveCalendarRef happen before focusCalendar
this.focusTimeout = setTimeout(this.focusCalendar, 0);
}
this.preSOpen = this.sOpen;
},
beforeDestroy: function beforeDestroy() {
clearTimeout(this.focusTimeout);
},
methods: {
onCalendarKeyDown: function onCalendarKeyDown(event) {
if (event.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].ESC) {
event.stopPropagation();
this.closeCalendar(this.focus);
}
},
onCalendarSelect: function onCalendarSelect(value) {
var cause = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var props = this.$props;
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["hasProp"])(this, 'value')) {
this.setState({
sValue: value
});
}
var calendarProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getOptionProps"])(props.calendar);
if (cause.source === 'keyboard' || cause.source === 'dateInputSelect' || !calendarProps.timePicker && cause.source !== 'dateInput' || cause.source === 'todayButton') {
this.closeCalendar(this.focus);
}
this.__emit('change', value);
},
onKeyDown: function onKeyDown(event) {
if (!this.sOpen && (event.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].DOWN || event.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_5__["default"].ENTER)) {
this.openCalendar();
event.preventDefault();
}
},
onCalendarOk: function onCalendarOk() {
this.closeCalendar(this.focus);
},
onCalendarClear: function onCalendarClear() {
this.closeCalendar(this.focus);
},
onCalendarBlur: function onCalendarBlur() {
this.setOpen(false);
},
onVisibleChange: function onVisibleChange(open) {
this.setOpen(open);
},
getCalendarElement: function getCalendarElement() {
var props = this.$props;
var calendarProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getOptionProps"])(props.calendar);
var calendarEvents = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getEvents"])(props.calendar);
var value = this.sValue;
var defaultValue = value;
var extraProps = {
ref: 'calendarInstance',
props: {
defaultValue: defaultValue || calendarProps.defaultValue,
selectedValue: value
},
on: {
keydown: this.onCalendarKeyDown,
ok: Object(_util_createChainedFunction__WEBPACK_IMPORTED_MODULE_4__["default"])(calendarEvents.ok, this.onCalendarOk),
select: Object(_util_createChainedFunction__WEBPACK_IMPORTED_MODULE_4__["default"])(calendarEvents.select, this.onCalendarSelect),
clear: Object(_util_createChainedFunction__WEBPACK_IMPORTED_MODULE_4__["default"])(calendarEvents.clear, this.onCalendarClear),
blur: Object(_util_createChainedFunction__WEBPACK_IMPORTED_MODULE_4__["default"])(calendarEvents.blur, this.onCalendarBlur)
}
};
return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_3__["cloneElement"])(props.calendar, extraProps);
},
setOpen: function setOpen(open, callback) {
if (this.sOpen !== open) {
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["hasProp"])(this, 'open')) {
this.setState({
sOpen: open
}, callback);
}
this.__emit('openChange', open);
}
},
openCalendar: function openCalendar(callback) {
this.setOpen(true, callback);
},
closeCalendar: function closeCalendar(callback) {
this.setOpen(false, callback);
},
focus: function focus() {
if (!this.sOpen) {
this.$el.focus();
}
},
focusCalendar: function focusCalendar() {
if (this.sOpen && this.calendarInstance && this.calendarInstance.componentInstance) {
this.calendarInstance.componentInstance.focus();
}
}
},
render: function render() {
var h = arguments[0];
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getOptionProps"])(this);
var style = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getStyle"])(this);
var prefixCls = props.prefixCls,
placement = props.placement,
getCalendarContainer = props.getCalendarContainer,
align = props.align,
animation = props.animation,
disabled = props.disabled,
dropdownClassName = props.dropdownClassName,
transitionName = props.transitionName;
var sValue = this.sValue,
sOpen = this.sOpen;
var children = this.$scopedSlots['default'];
var childrenState = {
value: sValue,
open: sOpen
};
if (this.sOpen || !this.calendarInstance) {
this.calendarInstance = this.getCalendarElement();
}
return h(
_vc_trigger__WEBPACK_IMPORTED_MODULE_7__["default"],
{
attrs: {
popupAlign: align,
builtinPlacements: _picker_placements__WEBPACK_IMPORTED_MODULE_6__["default"],
popupPlacement: placement,
action: disabled && !sOpen ? [] : ['click'],
destroyPopupOnHide: true,
getPopupContainer: getCalendarContainer,
popupStyle: style,
popupAnimation: animation,
popupTransitionName: transitionName,
popupVisible: sOpen,
prefixCls: prefixCls,
popupClassName: dropdownClassName
},
on: {
'popupVisibleChange': this.onVisibleChange
}
},
[h(
'template',
{ slot: 'popup' },
[this.calendarInstance]
), Object(_util_vnode__WEBPACK_IMPORTED_MODULE_3__["cloneElement"])(children(childrenState, props), { on: { keydown: this.onKeyDown } })]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (Picker);
/***/ }),
/***/ "./components/vc-calendar/src/RangeCalendar.jsx":
/*!******************************************************!*\
!*** ./components/vc-calendar/src/RangeCalendar.jsx ***!
\******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/slicedToArray */ "./node_modules/babel-runtime/helpers/slicedToArray.js");
/* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! moment */ "moment");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../_util/KeyCode */ "./components/_util/KeyCode.js");
/* harmony import */ var _range_calendar_CalendarPart__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./range-calendar/CalendarPart */ "./components/vc-calendar/src/range-calendar/CalendarPart.jsx");
/* harmony import */ var _calendar_TodayButton__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./calendar/TodayButton */ "./components/vc-calendar/src/calendar/TodayButton.jsx");
/* harmony import */ var _calendar_OkButton__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./calendar/OkButton */ "./components/vc-calendar/src/calendar/OkButton.jsx");
/* harmony import */ var _calendar_TimePickerButton__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./calendar/TimePickerButton */ "./components/vc-calendar/src/calendar/TimePickerButton.jsx");
/* harmony import */ var _mixin_CommonMixin__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./mixin/CommonMixin */ "./components/vc-calendar/src/mixin/CommonMixin.js");
/* harmony import */ var _locale_en_US__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./locale/en_US */ "./components/vc-calendar/src/locale/en_US.js");
/* harmony import */ var _util___WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./util/ */ "./components/vc-calendar/src/util/index.js");
/* harmony import */ var _util_toTime__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./util/toTime */ "./components/vc-calendar/src/util/toTime.js");
function noop() {}
function isEmptyArray(arr) {
return Array.isArray(arr) && (arr.length === 0 || arr.every(function (i) {
return !i;
}));
}
function isArraysEqual(a, b) {
if (a === b) return true;
if (a === null || typeof a === 'undefined' || b === null || typeof b === 'undefined') {
return false;
}
if (a.length !== b.length) return false;
for (var i = 0; i < a.length; ++i) {
if (a[i] !== b[i]) return false;
}
return true;
}
function getValueFromSelectedValue(selectedValue) {
var _selectedValue = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3___default()(selectedValue, 2),
start = _selectedValue[0],
end = _selectedValue[1];
if (end && (start === undefined || start === null)) {
start = end.clone().subtract(1, 'month');
}
if (start && (end === undefined || end === null)) {
end = start.clone().add(1, 'month');
}
return [start, end];
}
function normalizeAnchor(props, init) {
var selectedValue = props.selectedValue || init && props.defaultSelectedValue;
var value = props.value || init && props.defaultValue;
var normalizedValue = value ? getValueFromSelectedValue(value) : getValueFromSelectedValue(selectedValue);
return !isEmptyArray(normalizedValue) ? normalizedValue : init && [moment__WEBPACK_IMPORTED_MODULE_7___default()(), moment__WEBPACK_IMPORTED_MODULE_7___default()().add(1, 'months')];
}
function generateOptions(length, extraOptionGen) {
var arr = extraOptionGen ? extraOptionGen().concat() : [];
for (var value = 0; value < length; value++) {
if (arr.indexOf(value) === -1) {
arr.push(value);
}
}
return arr;
}
function onInputSelect(direction, value, cause) {
if (!value) {
return;
}
var originalValue = this.sSelectedValue;
var selectedValue = originalValue.concat();
var index = direction === 'left' ? 0 : 1;
selectedValue[index] = value;
if (selectedValue[0] && this.compare(selectedValue[0], selectedValue[1]) > 0) {
selectedValue[1 - index] = this.sShowTimePicker ? selectedValue[index] : undefined;
}
this.__emit('inputSelect', selectedValue);
this.fireSelectValueChange(selectedValue, null, cause || { source: 'dateInput' });
}
var RangeCalendar = {
props: {
locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object.def(_locale_en_US__WEBPACK_IMPORTED_MODULE_14__["default"]),
visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool.def(true),
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def('rc-calendar'),
dateInputPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
seperator: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def('~'),
defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
hoverValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOf(['time', 'date', 'month', 'year', 'decade'])),
showDateInput: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool.def(true),
timePicker: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
showOk: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
showToday: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool.def(true),
defaultSelectedValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].array.def([]),
selectedValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].array,
showClear: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
showWeekNumber: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
// locale: PropTypes.object,
// onChange: PropTypes.func,
// onSelect: PropTypes.func,
// onValueChange: PropTypes.func,
// onHoverChange: PropTypes.func,
// onPanelChange: PropTypes.func,
format: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string), _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func]),
// onClear: PropTypes.func,
type: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any.def('both'),
disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func,
disabledTime: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func.def(noop),
renderFooter: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func.def(function () {
return null;
}),
renderSidebar: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func.def(function () {
return null;
}),
dateRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func,
clearIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
inputReadOnly: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool
},
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__["default"], _mixin_CommonMixin__WEBPACK_IMPORTED_MODULE_13__["default"]],
data: function data() {
var props = this.$props;
var selectedValue = props.selectedValue || props.defaultSelectedValue;
var value = normalizeAnchor(props, 1);
return {
sSelectedValue: selectedValue,
prevSelectedValue: selectedValue,
firstSelectedValue: null,
sHoverValue: props.hoverValue || [],
sValue: value,
sShowTimePicker: false,
sMode: props.mode || ['date', 'date'],
sPanelTriggerSource: '' // Trigger by which picker panel: 'start' & 'end'
};
},
watch: {
value: function value() {
var newState = {};
newState.sValue = normalizeAnchor(this.$props, 0);
this.setState(newState);
},
hoverValue: function hoverValue(val) {
if (!isArraysEqual(this.sHoverValue, val)) {
this.setState({ sHoverValue: val });
}
},
selectedValue: function selectedValue(val) {
var newState = {};
newState.sSelectedValue = val;
newState.prevSelectedValue = val;
this.setState(newState);
},
mode: function mode(val) {
if (!isArraysEqual(this.sMode, val)) {
this.setState({ sMode: val });
}
}
},
methods: {
onDatePanelEnter: function onDatePanelEnter() {
if (this.hasSelectedValue()) {
this.fireHoverValueChange(this.sSelectedValue.concat());
}
},
onDatePanelLeave: function onDatePanelLeave() {
if (this.hasSelectedValue()) {
this.fireHoverValueChange([]);
}
},
onSelect: function onSelect(value) {
var type = this.type,
sSelectedValue = this.sSelectedValue,
prevSelectedValue = this.prevSelectedValue,
firstSelectedValue = this.firstSelectedValue;
var nextSelectedValue = void 0;
if (type === 'both') {
if (!firstSelectedValue) {
Object(_util___WEBPACK_IMPORTED_MODULE_15__["syncTime"])(prevSelectedValue[0], value);
nextSelectedValue = [value];
} else if (this.compare(firstSelectedValue, value) < 0) {
Object(_util___WEBPACK_IMPORTED_MODULE_15__["syncTime"])(prevSelectedValue[1], value);
nextSelectedValue = [firstSelectedValue, value];
} else {
Object(_util___WEBPACK_IMPORTED_MODULE_15__["syncTime"])(prevSelectedValue[0], value);
Object(_util___WEBPACK_IMPORTED_MODULE_15__["syncTime"])(prevSelectedValue[1], firstSelectedValue);
nextSelectedValue = [value, firstSelectedValue];
}
} else if (type === 'start') {
Object(_util___WEBPACK_IMPORTED_MODULE_15__["syncTime"])(prevSelectedValue[0], value);
var endValue = sSelectedValue[1];
nextSelectedValue = endValue && this.compare(endValue, value) > 0 ? [value, endValue] : [value];
} else {
// type === 'end'
var startValue = sSelectedValue[0];
if (startValue && this.compare(startValue, value) <= 0) {
Object(_util___WEBPACK_IMPORTED_MODULE_15__["syncTime"])(prevSelectedValue[1], value);
nextSelectedValue = [startValue, value];
} else {
Object(_util___WEBPACK_IMPORTED_MODULE_15__["syncTime"])(prevSelectedValue[0], value);
nextSelectedValue = [value];
}
}
this.fireSelectValueChange(nextSelectedValue);
},
onKeyDown: function onKeyDown(event) {
var _this = this;
if (event.target.nodeName.toLowerCase() === 'input') {
return;
}
var keyCode = event.keyCode;
var ctrlKey = event.ctrlKey || event.metaKey;
var _$data = this.$data,
selectedValue = _$data.sSelectedValue,
hoverValue = _$data.sHoverValue,
firstSelectedValue = _$data.firstSelectedValue,
value = _$data.sValue;
var disabledDate = this.$props.disabledDate;
// Update last time of the picker
var updateHoverPoint = function updateHoverPoint(func) {
// Change hover to make focus in UI
var currentHoverTime = void 0;
var nextHoverTime = void 0;
var nextHoverValue = void 0;
if (!firstSelectedValue) {
currentHoverTime = hoverValue[0] || selectedValue[0] || value[0] || moment__WEBPACK_IMPORTED_MODULE_7___default()();
nextHoverTime = func(currentHoverTime);
nextHoverValue = [nextHoverTime];
_this.fireHoverValueChange(nextHoverValue);
} else {
if (hoverValue.length === 1) {
currentHoverTime = hoverValue[0].clone();
nextHoverTime = func(currentHoverTime);
nextHoverValue = _this.onDayHover(nextHoverTime);
} else {
currentHoverTime = hoverValue[0].isSame(firstSelectedValue, 'day') ? hoverValue[1] : hoverValue[0];
nextHoverTime = func(currentHoverTime);
nextHoverValue = _this.onDayHover(nextHoverTime);
}
}
// Find origin hover time on value index
if (nextHoverValue.length >= 2) {
var miss = nextHoverValue.some(function (ht) {
return !Object(_util_toTime__WEBPACK_IMPORTED_MODULE_16__["includesTime"])(value, ht, 'month');
});
if (miss) {
var newValue = nextHoverValue.slice().sort(function (t1, t2) {
return t1.valueOf() - t2.valueOf();
});
if (newValue[0].isSame(newValue[1], 'month')) {
newValue[1] = newValue[0].clone().add(1, 'month');
}
_this.fireValueChange(newValue);
}
} else if (nextHoverValue.length === 1) {
// If only one value, let's keep the origin panel
var oriValueIndex = value.findIndex(function (time) {
return time.isSame(currentHoverTime, 'month');
});
if (oriValueIndex === -1) oriValueIndex = 0;
if (value.every(function (time) {
return !time.isSame(nextHoverTime, 'month');
})) {
var _newValue = value.slice();
_newValue[oriValueIndex] = nextHoverTime.clone();
_this.fireValueChange(_newValue);
}
}
event.preventDefault();
return nextHoverTime;
};
switch (keyCode) {
case _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].DOWN:
updateHoverPoint(function (time) {
return Object(_util_toTime__WEBPACK_IMPORTED_MODULE_16__["goTime"])(time, 1, 'weeks');
});
return;
case _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].UP:
updateHoverPoint(function (time) {
return Object(_util_toTime__WEBPACK_IMPORTED_MODULE_16__["goTime"])(time, -1, 'weeks');
});
return;
case _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].LEFT:
if (ctrlKey) {
updateHoverPoint(function (time) {
return Object(_util_toTime__WEBPACK_IMPORTED_MODULE_16__["goTime"])(time, -1, 'years');
});
} else {
updateHoverPoint(function (time) {
return Object(_util_toTime__WEBPACK_IMPORTED_MODULE_16__["goTime"])(time, -1, 'days');
});
}
return;
case _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].RIGHT:
if (ctrlKey) {
updateHoverPoint(function (time) {
return Object(_util_toTime__WEBPACK_IMPORTED_MODULE_16__["goTime"])(time, 1, 'years');
});
} else {
updateHoverPoint(function (time) {
return Object(_util_toTime__WEBPACK_IMPORTED_MODULE_16__["goTime"])(time, 1, 'days');
});
}
return;
case _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].HOME:
updateHoverPoint(function (time) {
return Object(_util_toTime__WEBPACK_IMPORTED_MODULE_16__["goStartMonth"])(time);
});
return;
case _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].END:
updateHoverPoint(function (time) {
return Object(_util_toTime__WEBPACK_IMPORTED_MODULE_16__["goEndMonth"])(time);
});
return;
case _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].PAGE_DOWN:
updateHoverPoint(function (time) {
return Object(_util_toTime__WEBPACK_IMPORTED_MODULE_16__["goTime"])(time, 1, 'month');
});
return;
case _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].PAGE_UP:
updateHoverPoint(function (time) {
return Object(_util_toTime__WEBPACK_IMPORTED_MODULE_16__["goTime"])(time, -1, 'month');
});
return;
case _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].ENTER:
{
var lastValue = void 0;
if (hoverValue.length === 0) {
lastValue = updateHoverPoint(function (time) {
return time;
});
} else if (hoverValue.length === 1) {
lastValue = hoverValue[0];
} else {
lastValue = hoverValue[0].isSame(firstSelectedValue, 'day') ? hoverValue[1] : hoverValue[0];
}
if (lastValue && (!disabledDate || !disabledDate(lastValue))) {
this.onSelect(lastValue);
}
event.preventDefault();
return;
}
default:
this.__emit('keydown', event);
}
},
onDayHover: function onDayHover(value) {
var hoverValue = [];
var sSelectedValue = this.sSelectedValue,
firstSelectedValue = this.firstSelectedValue,
type = this.type;
if (type === 'start' && sSelectedValue[1]) {
hoverValue = this.compare(value, sSelectedValue[1]) < 0 ? [value, sSelectedValue[1]] : [value];
} else if (type === 'end' && sSelectedValue[0]) {
hoverValue = this.compare(value, sSelectedValue[0]) > 0 ? [sSelectedValue[0], value] : [];
} else {
if (!firstSelectedValue) {
if (this.sHoverValue.length) {
this.setState({ sHoverValue: [] });
}
return hoverValue;
}
hoverValue = this.compare(value, firstSelectedValue) < 0 ? [value, firstSelectedValue] : [firstSelectedValue, value];
}
this.fireHoverValueChange(hoverValue);
return hoverValue;
},
onToday: function onToday() {
var startValue = Object(_util___WEBPACK_IMPORTED_MODULE_15__["getTodayTime"])(this.sValue[0]);
var endValue = startValue.clone().add(1, 'months');
this.setState({ sValue: [startValue, endValue] });
},
onOpenTimePicker: function onOpenTimePicker() {
this.setState({
sShowTimePicker: true
});
},
onCloseTimePicker: function onCloseTimePicker() {
this.setState({
sShowTimePicker: false
});
},
onOk: function onOk() {
var sSelectedValue = this.sSelectedValue;
if (this.isAllowedDateAndTime(sSelectedValue)) {
this.__emit('ok', sSelectedValue);
}
},
onStartInputChange: function onStartInputChange() {
for (var _len = arguments.length, oargs = Array(_len), _key = 0; _key < _len; _key++) {
oargs[_key] = arguments[_key];
}
var args = ['left'].concat(oargs);
return onInputSelect.apply(this, args);
},
onEndInputChange: function onEndInputChange() {
for (var _len2 = arguments.length, oargs = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
oargs[_key2] = arguments[_key2];
}
var args = ['right'].concat(oargs);
return onInputSelect.apply(this, args);
},
onStartInputSelect: function onStartInputSelect(value) {
var args = ['left', value, { source: 'dateInputSelect' }];
return onInputSelect.apply(this, args);
},
onEndInputSelect: function onEndInputSelect(value) {
var args = ['right', value, { source: 'dateInputSelect' }];
return onInputSelect.apply(this, args);
},
onStartValueChange: function onStartValueChange(leftValue) {
var value = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(this.sValue));
value[0] = leftValue;
return this.fireValueChange(value);
},
onEndValueChange: function onEndValueChange(rightValue) {
var value = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(this.sValue));
value[1] = rightValue;
return this.fireValueChange(value);
},
onStartPanelChange: function onStartPanelChange(value, mode) {
var sMode = this.sMode,
sValue = this.sValue;
var newMode = [mode, sMode[1]];
var newValue = [value || sValue[0], sValue[1]];
this.__emit('panelChange', newValue, newMode);
var newState = {
sPanelTriggerSource: 'start'
};
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'mode')) {
newState.sMode = newMode;
}
this.setState(newState);
},
onEndPanelChange: function onEndPanelChange(value, mode) {
var sMode = this.sMode,
sValue = this.sValue;
var newMode = [sMode[0], mode];
var newValue = [sValue[0], value || sValue[1]];
this.__emit('panelChange', newValue, newMode);
var newState = {
sPanelTriggerSource: 'end'
};
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'mode')) {
newState.sMode = newMode;
}
this.setState(newState);
},
getStartValue: function getStartValue() {
var _$data2 = this.$data,
selectedValue = _$data2.sSelectedValue,
showTimePicker = _$data2.sShowTimePicker,
value = _$data2.sValue,
mode = _$data2.sMode,
panelTriggerSource = _$data2.sPanelTriggerSource;
var startValue = value[0];
// keep selectedTime when select date
if (selectedValue[0] && this.$props.timePicker) {
startValue = startValue.clone();
Object(_util___WEBPACK_IMPORTED_MODULE_15__["syncTime"])(selectedValue[0], startValue);
}
if (showTimePicker && selectedValue[0]) {
startValue = selectedValue[0];
}
// Adjust month if date not align
if (panelTriggerSource === 'end' && mode[0] === 'date' && mode[1] === 'date' && startValue.isSame(value[1], 'month')) {
startValue = startValue.clone().subtract(1, 'month');
}
return startValue;
},
getEndValue: function getEndValue() {
var _$data3 = this.$data,
selectedValue = _$data3.sSelectedValue,
showTimePicker = _$data3.sShowTimePicker,
value = _$data3.sValue,
mode = _$data3.sMode,
panelTriggerSource = _$data3.sPanelTriggerSource;
var endValue = value[1] ? value[1].clone() : value[0].clone().add(1, 'month');
// keep selectedTime when select date
if (selectedValue[1] && this.$props.timePicker) {
Object(_util___WEBPACK_IMPORTED_MODULE_15__["syncTime"])(selectedValue[1], endValue);
}
if (showTimePicker) {
endValue = selectedValue[1] ? selectedValue[1] : this.getStartValue();
}
// Adjust month if date not align
if (!showTimePicker && panelTriggerSource !== 'end' && mode[0] === 'date' && mode[1] === 'date' && endValue.isSame(value[0], 'month')) {
endValue = endValue.clone().add(1, 'month');
}
return endValue;
},
// get disabled hours for second picker
getEndDisableTime: function getEndDisableTime() {
var sSelectedValue = this.sSelectedValue,
sValue = this.sValue,
disabledTime = this.disabledTime;
var userSettingDisabledTime = disabledTime(sSelectedValue, 'end') || {};
var startValue = sSelectedValue && sSelectedValue[0] || sValue[0].clone();
// if startTime and endTime is same day..
// the second time picker will not able to pick time before first time picker
if (!sSelectedValue[1] || startValue.isSame(sSelectedValue[1], 'day')) {
var hours = startValue.hour();
var minutes = startValue.minute();
var second = startValue.second();
var _disabledHours = userSettingDisabledTime.disabledHours,
_disabledMinutes = userSettingDisabledTime.disabledMinutes,
_disabledSeconds = userSettingDisabledTime.disabledSeconds;
var oldDisabledMinutes = _disabledMinutes ? _disabledMinutes() : [];
var olddisabledSeconds = _disabledSeconds ? _disabledSeconds() : [];
_disabledHours = generateOptions(hours, _disabledHours);
_disabledMinutes = generateOptions(minutes, _disabledMinutes);
_disabledSeconds = generateOptions(second, _disabledSeconds);
return {
disabledHours: function disabledHours() {
return _disabledHours;
},
disabledMinutes: function disabledMinutes(hour) {
if (hour === hours) {
return _disabledMinutes;
}
return oldDisabledMinutes;
},
disabledSeconds: function disabledSeconds(hour, minute) {
if (hour === hours && minute === minutes) {
return _disabledSeconds;
}
return olddisabledSeconds;
}
};
}
return userSettingDisabledTime;
},
isAllowedDateAndTime: function isAllowedDateAndTime(selectedValue) {
return Object(_util___WEBPACK_IMPORTED_MODULE_15__["isAllowedDate"])(selectedValue[0], this.disabledDate, this.disabledStartTime) && Object(_util___WEBPACK_IMPORTED_MODULE_15__["isAllowedDate"])(selectedValue[1], this.disabledDate, this.disabledEndTime);
},
isMonthYearPanelShow: function isMonthYearPanelShow(mode) {
return ['month', 'year', 'decade'].indexOf(mode) > -1;
},
hasSelectedValue: function hasSelectedValue() {
var sSelectedValue = this.sSelectedValue;
return !!sSelectedValue[1] && !!sSelectedValue[0];
},
compare: function compare(v1, v2) {
if (this.timePicker) {
return v1.diff(v2);
}
return v1.diff(v2, 'days');
},
fireSelectValueChange: function fireSelectValueChange(selectedValue, direct, cause) {
var timePicker = this.timePicker,
prevSelectedValue = this.prevSelectedValue;
if (timePicker) {
var timePickerProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(timePicker);
if (timePickerProps.defaultValue) {
var timePickerDefaultValue = timePickerProps.defaultValue;
if (!prevSelectedValue[0] && selectedValue[0]) {
Object(_util___WEBPACK_IMPORTED_MODULE_15__["syncTime"])(timePickerDefaultValue[0], selectedValue[0]);
}
if (!prevSelectedValue[1] && selectedValue[1]) {
Object(_util___WEBPACK_IMPORTED_MODULE_15__["syncTime"])(timePickerDefaultValue[1], selectedValue[1]);
}
}
}
// 尚未选择过时间,直接输入的话
if (!this.sSelectedValue[0] || !this.sSelectedValue[1]) {
var startValue = selectedValue[0] || moment__WEBPACK_IMPORTED_MODULE_7___default()();
var endValue = selectedValue[1] || startValue.clone().add(1, 'months');
this.setState({
sSelectedValue: selectedValue,
sValue: selectedValue && selectedValue.length === 2 ? getValueFromSelectedValue([startValue, endValue]) : this.sValue
});
}
if (selectedValue[0] && !selectedValue[1]) {
this.setState({ firstSelectedValue: selectedValue[0] });
this.fireHoverValueChange(selectedValue.concat());
}
this.__emit('change', selectedValue);
if (direct || selectedValue[0] && selectedValue[1]) {
this.setState({
prevSelectedValue: selectedValue,
firstSelectedValue: null
});
this.fireHoverValueChange([]);
this.__emit('select', selectedValue, cause);
}
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'selectedValue')) {
this.setState({
sSelectedValue: selectedValue
});
}
},
fireValueChange: function fireValueChange(value) {
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'value')) {
this.setState({
sValue: value
});
}
this.__emit('valueChange', value);
},
fireHoverValueChange: function fireHoverValueChange(hoverValue) {
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'hoverValue')) {
this.setState({ sHoverValue: hoverValue });
}
this.__emit('hoverChange', hoverValue);
},
clear: function clear() {
this.fireSelectValueChange([], true);
this.__emit('clear');
},
disabledStartTime: function disabledStartTime(time) {
return this.disabledTime(time, 'start');
},
disabledEndTime: function disabledEndTime(time) {
return this.disabledTime(time, 'end');
},
disabledStartMonth: function disabledStartMonth(month) {
var sValue = this.sValue;
return month.isAfter(sValue[1], 'month');
},
disabledEndMonth: function disabledEndMonth(month) {
var sValue = this.sValue;
return month.isBefore(sValue[0], 'month');
}
},
render: function render() {
var _className, _cls;
var h = arguments[0];
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(this);
var prefixCls = props.prefixCls,
dateInputPlaceholder = props.dateInputPlaceholder,
timePicker = props.timePicker,
showOk = props.showOk,
locale = props.locale,
showClear = props.showClear,
showToday = props.showToday,
type = props.type,
seperator = props.seperator;
var clearIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'clearIcon');
var sHoverValue = this.sHoverValue,
sSelectedValue = this.sSelectedValue,
mode = this.sMode,
sShowTimePicker = this.sShowTimePicker,
sValue = this.sValue;
var className = (_className = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_className, prefixCls, 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_className, prefixCls + '-hidden', !props.visible), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_className, prefixCls + '-range', 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_className, prefixCls + '-show-time-picker', sShowTimePicker), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_className, prefixCls + '-week-number', props.showWeekNumber), _className);
var baseProps = {
props: props,
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this)
};
var newProps = {
props: {
selectedValue: sSelectedValue
},
on: {
select: this.onSelect,
dayHover: type === 'start' && sSelectedValue[1] || type === 'end' && sSelectedValue[0] || !!sHoverValue.length ? this.onDayHover : noop
}
};
var placeholder1 = void 0;
var placeholder2 = void 0;
if (dateInputPlaceholder) {
if (Array.isArray(dateInputPlaceholder)) {
var _dateInputPlaceholder = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3___default()(dateInputPlaceholder, 2);
placeholder1 = _dateInputPlaceholder[0];
placeholder2 = _dateInputPlaceholder[1];
} else {
placeholder1 = placeholder2 = dateInputPlaceholder;
}
}
var showOkButton = showOk === true || showOk !== false && !!timePicker;
var cls = (_cls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-footer', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-range-bottom', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-footer-show-ok', showOkButton), _cls);
var startValue = this.getStartValue();
var endValue = this.getEndValue();
var todayTime = Object(_util___WEBPACK_IMPORTED_MODULE_15__["getTodayTime"])(startValue);
var thisMonth = todayTime.month();
var thisYear = todayTime.year();
var isTodayInView = startValue.year() === thisYear && startValue.month() === thisMonth || endValue.year() === thisYear && endValue.month() === thisMonth;
var nextMonthOfStart = startValue.clone().add(1, 'months');
var isClosestMonths = nextMonthOfStart.year() === endValue.year() && nextMonthOfStart.month() === endValue.month();
var leftPartProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["mergeProps"])(baseProps, newProps, {
props: {
hoverValue: sHoverValue,
direction: 'left',
disabledTime: this.disabledStartTime,
disabledMonth: this.disabledStartMonth,
format: this.getFormat(),
value: startValue,
mode: mode[0],
placeholder: placeholder1,
showDateInput: this.showDateInput,
timePicker: timePicker,
showTimePicker: sShowTimePicker || mode[0] === 'time',
enablePrev: true,
enableNext: !isClosestMonths || this.isMonthYearPanelShow(mode[1]),
clearIcon: clearIcon
},
on: {
inputChange: this.onStartInputChange,
inputSelect: this.onStartInputSelect,
valueChange: this.onStartValueChange,
panelChange: this.onStartPanelChange
}
});
var rightPartProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["mergeProps"])(baseProps, newProps, {
props: {
hoverValue: sHoverValue,
direction: 'right',
format: this.getFormat(),
timePickerDisabledTime: this.getEndDisableTime(),
placeholder: placeholder2,
value: endValue,
mode: mode[1],
showDateInput: this.showDateInput,
timePicker: timePicker,
showTimePicker: sShowTimePicker || mode[1] === 'time',
disabledTime: this.disabledEndTime,
disabledMonth: this.disabledEndMonth,
enablePrev: !isClosestMonths || this.isMonthYearPanelShow(mode[0]),
enableNext: true,
clearIcon: clearIcon
},
on: {
inputChange: this.onEndInputChange,
inputSelect: this.onEndInputSelect,
valueChange: this.onEndValueChange,
panelChange: this.onEndPanelChange
}
});
var TodayButtonNode = null;
if (showToday) {
var todayButtonProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["mergeProps"])(baseProps, {
props: {
disabled: isTodayInView,
value: sValue[0],
text: locale.backToToday
},
on: {
today: this.onToday
}
});
TodayButtonNode = h(_calendar_TodayButton__WEBPACK_IMPORTED_MODULE_10__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ key: 'todayButton' }, todayButtonProps]));
}
var TimePickerButtonNode = null;
if (props.timePicker) {
var timePickerButtonProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["mergeProps"])(baseProps, {
props: {
showTimePicker: sShowTimePicker || mode[0] === 'time' && mode[1] === 'time',
timePickerDisabled: !this.hasSelectedValue() || sHoverValue.length
},
on: {
openTimePicker: this.onOpenTimePicker,
closeTimePicker: this.onCloseTimePicker
}
});
TimePickerButtonNode = h(_calendar_TimePickerButton__WEBPACK_IMPORTED_MODULE_12__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ key: 'timePickerButton' }, timePickerButtonProps]));
}
var OkButtonNode = null;
if (showOkButton) {
var okButtonProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["mergeProps"])(baseProps, {
props: {
okDisabled: !this.isAllowedDateAndTime(sSelectedValue) || !this.hasSelectedValue() || sHoverValue.length
},
on: {
ok: this.onOk
}
});
OkButtonNode = h(_calendar_OkButton__WEBPACK_IMPORTED_MODULE_11__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ key: 'okButtonNode' }, okButtonProps]));
}
var extraFooter = this.renderFooter(mode);
return h(
'div',
{ ref: 'rootInstance', 'class': className, attrs: { tabIndex: '0' },
on: {
'keydown': this.onKeyDown
}
},
[props.renderSidebar(), h(
'div',
{ 'class': prefixCls + '-panel' },
[showClear && sSelectedValue[0] && sSelectedValue[1] ? h(
'a',
{
attrs: { role: 'button', title: locale.clear },
on: {
'click': this.clear
}
},
[clearIcon || h('span', { 'class': prefixCls + '-clear-btn' })]
) : null, h(
'div',
{
'class': prefixCls + '-date-panel',
on: {
'mouseleave': type !== 'both' ? this.onDatePanelLeave : noop,
'mouseenter': type !== 'both' ? this.onDatePanelEnter : noop
}
},
[h(_range_calendar_CalendarPart__WEBPACK_IMPORTED_MODULE_9__["default"], leftPartProps), h(
'span',
{ 'class': prefixCls + '-range-middle' },
[seperator]
), h(_range_calendar_CalendarPart__WEBPACK_IMPORTED_MODULE_9__["default"], rightPartProps)]
), h(
'div',
{ 'class': cls },
[showToday || props.timePicker || showOkButton || extraFooter ? h(
'div',
{ 'class': prefixCls + '-footer-btn' },
[extraFooter, TodayButtonNode, TimePickerButtonNode, OkButtonNode]
) : null]
)]
)]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (RangeCalendar);
/***/ }),
/***/ "./components/vc-calendar/src/calendar/CalendarFooter.jsx":
/*!****************************************************************!*\
!*** ./components/vc-calendar/src/calendar/CalendarFooter.jsx ***!
\****************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _TodayButton__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./TodayButton */ "./components/vc-calendar/src/calendar/TodayButton.jsx");
/* harmony import */ var _OkButton__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./OkButton */ "./components/vc-calendar/src/calendar/OkButton.jsx");
/* harmony import */ var _TimePickerButton__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./TimePickerButton */ "./components/vc-calendar/src/calendar/TimePickerButton.jsx");
var CalendarFooter = {
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
props: {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
showDateInput: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
disabledTime: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
timePicker: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
selectedValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
showOk: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
// onSelect: PropTypes.func,
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
renderFooter: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
showToday: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
showTimePicker: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
okDisabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string
},
methods: {
onSelect: function onSelect(value) {
this.__emit('select', value);
},
getRootDOMNode: function getRootDOMNode() {
return this.$el;
}
},
render: function render() {
var h = arguments[0];
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
var value = props.value,
prefixCls = props.prefixCls,
showOk = props.showOk,
timePicker = props.timePicker,
renderFooter = props.renderFooter,
showToday = props.showToday,
mode = props.mode;
var footerEl = null;
var extraFooter = renderFooter && renderFooter(mode);
if (showToday || timePicker || extraFooter) {
var _cls;
var btnProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, props, {
value: value
}),
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this)
};
var nowEl = null;
if (showToday) {
nowEl = h(_TodayButton__WEBPACK_IMPORTED_MODULE_6__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1___default()([{ key: 'todayButton' }, btnProps]));
}
delete btnProps.props.value;
var okBtn = null;
if (showOk === true || showOk !== false && !!timePicker) {
okBtn = h(_OkButton__WEBPACK_IMPORTED_MODULE_7__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1___default()([{ key: 'okButton' }, btnProps]));
}
var timePickerBtn = null;
if (timePicker) {
timePickerBtn = h(_TimePickerButton__WEBPACK_IMPORTED_MODULE_8__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1___default()([{ key: 'timePickerButton' }, btnProps]));
}
var footerBtn = void 0;
if (nowEl || timePickerBtn || okBtn || extraFooter) {
footerBtn = h(
'span',
{ 'class': prefixCls + '-footer-btn' },
[extraFooter, nowEl, timePickerBtn, okBtn]
);
}
var cls = (_cls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_cls, prefixCls + '-footer', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_cls, prefixCls + '-footer-show-ok', !!okBtn), _cls);
footerEl = h(
'div',
{ 'class': cls },
[footerBtn]
);
}
return footerEl;
}
};
/* harmony default export */ __webpack_exports__["default"] = (CalendarFooter);
/***/ }),
/***/ "./components/vc-calendar/src/calendar/CalendarHeader.jsx":
/*!****************************************************************!*\
!*** ./components/vc-calendar/src/calendar/CalendarHeader.jsx ***!
\****************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _month_MonthPanel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../month/MonthPanel */ "./components/vc-calendar/src/month/MonthPanel.jsx");
/* harmony import */ var _year_YearPanel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../year/YearPanel */ "./components/vc-calendar/src/year/YearPanel.jsx");
/* harmony import */ var _decade_DecadePanel__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../decade/DecadePanel */ "./components/vc-calendar/src/decade/DecadePanel.jsx");
function noop() {}
function goMonth(direction) {
var next = this.value.clone();
next.add(direction, 'months');
this.__emit('valueChange', next);
}
function goYear(direction) {
var next = this.value.clone();
next.add(direction, 'years');
this.__emit('valueChange', next);
}
function showIf(condition, el) {
return condition ? el : null;
}
var CalendarHeader = {
name: 'CalendarHeader',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__["default"]],
props: {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
// onValueChange: PropTypes.func,
showTimePicker: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
// onPanelChange: PropTypes.func,
locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
enablePrev: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any.def(1),
enableNext: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any.def(1),
disabledMonth: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
monthCellRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
monthCellContentRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
renderFooter: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func
},
data: function data() {
this.nextMonth = goMonth.bind(this, 1);
this.previousMonth = goMonth.bind(this, -1);
this.nextYear = goYear.bind(this, 1);
this.previousYear = goYear.bind(this, -1);
return {
yearPanelReferer: null
};
},
methods: {
onMonthSelect: function onMonthSelect(value) {
this.__emit('panelChange', value, 'date');
if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getListeners"])(this).monthSelect) {
this.__emit('monthSelect', value);
} else {
this.__emit('valueChange', value);
}
},
onYearSelect: function onYearSelect(value) {
var referer = this.yearPanelReferer;
this.setState({ yearPanelReferer: null });
this.__emit('panelChange', value, referer);
this.__emit('valueChange', value);
},
onDecadeSelect: function onDecadeSelect(value) {
this.__emit('panelChange', value, 'year');
this.__emit('valueChange', value);
},
changeYear: function changeYear(direction) {
if (direction > 0) {
this.nextYear();
} else {
this.previousYear();
}
},
monthYearElement: function monthYearElement(showTimePicker) {
var _this = this;
var h = this.$createElement;
var props = this.$props;
var prefixCls = props.prefixCls;
var locale = props.locale;
var value = props.value;
var localeData = value.localeData();
var monthBeforeYear = locale.monthBeforeYear;
var selectClassName = prefixCls + '-' + (monthBeforeYear ? 'my-select' : 'ym-select');
var timeClassName = showTimePicker ? ' ' + prefixCls + '-time-status' : '';
var year = h(
'a',
{
'class': prefixCls + '-year-select' + timeClassName,
attrs: { role: 'button',
title: showTimePicker ? null : locale.yearSelect
},
on: {
'click': showTimePicker ? noop : function () {
return _this.showYearPanel('date');
}
}
},
[value.format(locale.yearFormat)]
);
var month = h(
'a',
{
'class': prefixCls + '-month-select' + timeClassName,
attrs: { role: 'button',
title: showTimePicker ? null : locale.monthSelect
},
on: {
'click': showTimePicker ? noop : this.showMonthPanel
}
},
[locale.monthFormat ? value.format(locale.monthFormat) : localeData.monthsShort(value)]
);
var day = void 0;
if (showTimePicker) {
day = h(
'a',
{ 'class': prefixCls + '-day-select' + timeClassName, attrs: { role: 'button' }
},
[value.format(locale.dayFormat)]
);
}
var my = [];
if (monthBeforeYear) {
my = [month, day, year];
} else {
my = [year, month, day];
}
return h(
'span',
{ 'class': selectClassName },
[my]
);
},
showMonthPanel: function showMonthPanel() {
// null means that users' interaction doesn't change value
this.__emit('panelChange', null, 'month');
},
showYearPanel: function showYearPanel(referer) {
this.setState({ yearPanelReferer: referer });
this.__emit('panelChange', null, 'year');
},
showDecadePanel: function showDecadePanel() {
this.__emit('panelChange', null, 'decade');
}
},
render: function render() {
var _this2 = this;
var h = arguments[0];
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getOptionProps"])(this);
var prefixCls = props.prefixCls,
locale = props.locale,
mode = props.mode,
value = props.value,
showTimePicker = props.showTimePicker,
enableNext = props.enableNext,
enablePrev = props.enablePrev,
disabledMonth = props.disabledMonth,
renderFooter = props.renderFooter;
var panel = null;
if (mode === 'month') {
panel = h(_month_MonthPanel__WEBPACK_IMPORTED_MODULE_3__["default"], {
attrs: {
locale: locale,
value: value,
rootPrefixCls: prefixCls,
disabledDate: disabledMonth,
cellRender: props.monthCellRender,
contentRender: props.monthCellContentRender,
renderFooter: renderFooter,
changeYear: this.changeYear
},
on: {
'select': this.onMonthSelect,
'yearPanelShow': function yearPanelShow() {
return _this2.showYearPanel('month');
}
}
});
}
if (mode === 'year') {
panel = h(_year_YearPanel__WEBPACK_IMPORTED_MODULE_4__["default"], {
attrs: {
locale: locale,
value: value,
rootPrefixCls: prefixCls,
renderFooter: renderFooter,
disabledDate: disabledMonth
},
on: {
'select': this.onYearSelect,
'decadePanelShow': this.showDecadePanel
}
});
}
if (mode === 'decade') {
panel = h(_decade_DecadePanel__WEBPACK_IMPORTED_MODULE_5__["default"], {
attrs: {
locale: locale,
value: value,
rootPrefixCls: prefixCls,
renderFooter: renderFooter
},
on: {
'select': this.onDecadeSelect
}
});
}
return h(
'div',
{ 'class': prefixCls + '-header' },
[h(
'div',
{ style: { position: 'relative' } },
[showIf(enablePrev && !showTimePicker, h('a', {
'class': prefixCls + '-prev-year-btn',
attrs: { role: 'button',
title: locale.previousYear
},
on: {
'click': this.previousYear
}
})), showIf(enablePrev && !showTimePicker, h('a', {
'class': prefixCls + '-prev-month-btn',
attrs: { role: 'button',
title: locale.previousMonth
},
on: {
'click': this.previousMonth
}
})), this.monthYearElement(showTimePicker), showIf(enableNext && !showTimePicker, h('a', {
'class': prefixCls + '-next-month-btn',
on: {
'click': this.nextMonth
},
attrs: {
title: locale.nextMonth
}
})), showIf(enableNext && !showTimePicker, h('a', {
'class': prefixCls + '-next-year-btn',
on: {
'click': this.nextYear
},
attrs: {
title: locale.nextYear
}
}))]
), panel]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (CalendarHeader);
/***/ }),
/***/ "./components/vc-calendar/src/calendar/OkButton.jsx":
/*!**********************************************************!*\
!*** ./components/vc-calendar/src/calendar/OkButton.jsx ***!
\**********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
function noop() {}
/* harmony default export */ __webpack_exports__["default"] = ({
functional: true,
render: function render(createElement, context) {
var h = arguments[0];
var props = context.props,
_context$listeners = context.listeners,
listeners = _context$listeners === undefined ? {} : _context$listeners;
var prefixCls = props.prefixCls,
locale = props.locale,
okDisabled = props.okDisabled;
var _listeners$ok = listeners.ok,
ok = _listeners$ok === undefined ? noop : _listeners$ok;
var className = prefixCls + "-ok-btn";
if (okDisabled) {
className += " " + prefixCls + "-ok-btn-disabled";
}
return h(
"a",
{ "class": className, attrs: { role: "button" },
on: {
"click": okDisabled ? noop : ok
}
},
[locale.ok]
);
}
});
/***/ }),
/***/ "./components/vc-calendar/src/calendar/TimePickerButton.jsx":
/*!******************************************************************!*\
!*** ./components/vc-calendar/src/calendar/TimePickerButton.jsx ***!
\******************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
function noop() {}
/* harmony default export */ __webpack_exports__["default"] = ({
functional: true,
render: function render(h, context) {
var _className;
var props = context.props,
_context$listeners = context.listeners,
listeners = _context$listeners === undefined ? {} : _context$listeners;
var prefixCls = props.prefixCls,
locale = props.locale,
showTimePicker = props.showTimePicker,
timePickerDisabled = props.timePickerDisabled;
var _listeners$closeTimeP = listeners.closeTimePicker,
closeTimePicker = _listeners$closeTimeP === undefined ? noop : _listeners$closeTimeP,
_listeners$openTimePi = listeners.openTimePicker,
openTimePicker = _listeners$openTimePi === undefined ? noop : _listeners$openTimePi;
var className = (_className = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_className, prefixCls + "-time-picker-btn", true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_className, prefixCls + "-time-picker-btn-disabled", timePickerDisabled), _className);
var onClick = noop;
if (!timePickerDisabled) {
onClick = showTimePicker ? closeTimePicker : openTimePicker;
}
return h(
"a",
{ "class": className, attrs: { role: "button" },
on: {
"click": onClick
}
},
[showTimePicker ? locale.dateSelect : locale.timeSelect]
);
}
});
/***/ }),
/***/ "./components/vc-calendar/src/calendar/TodayButton.jsx":
/*!*************************************************************!*\
!*** ./components/vc-calendar/src/calendar/TodayButton.jsx ***!
\*************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _util___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/ */ "./components/vc-calendar/src/util/index.js");
function noop() {}
/* harmony default export */ __webpack_exports__["default"] = ({
functional: true,
render: function render(createElement, context) {
var h = arguments[0];
var props = context.props,
_context$listeners = context.listeners,
listeners = _context$listeners === undefined ? {} : _context$listeners;
var prefixCls = props.prefixCls,
locale = props.locale,
value = props.value,
timePicker = props.timePicker,
disabled = props.disabled,
disabledDate = props.disabledDate,
text = props.text;
var _listeners$today = listeners.today,
today = _listeners$today === undefined ? noop : _listeners$today;
var localeNow = (!text && timePicker ? locale.now : text) || locale.today;
var disabledToday = disabledDate && !Object(_util___WEBPACK_IMPORTED_MODULE_0__["isAllowedDate"])(Object(_util___WEBPACK_IMPORTED_MODULE_0__["getTodayTime"])(value), disabledDate);
var isDisabled = disabledToday || disabled;
var disabledTodayClass = isDisabled ? prefixCls + '-today-btn-disabled' : '';
return h(
'a',
{
'class': prefixCls + '-today-btn ' + disabledTodayClass,
attrs: { role: 'button',
title: Object(_util___WEBPACK_IMPORTED_MODULE_0__["getTodayTimeStr"])(value)
},
on: {
'click': isDisabled ? noop : today
}
},
[localeNow]
);
}
});
/***/ }),
/***/ "./components/vc-calendar/src/date/DateConstants.js":
/*!**********************************************************!*\
!*** ./components/vc-calendar/src/date/DateConstants.js ***!
\**********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ({
DATE_ROW_COUNT: 6,
DATE_COL_COUNT: 7
});
/***/ }),
/***/ "./components/vc-calendar/src/date/DateInput.jsx":
/*!*******************************************************!*\
!*** ./components/vc-calendar/src/date/DateInput.jsx ***!
\*******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! moment */ "moment");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util */ "./components/vc-calendar/src/util/index.js");
/* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../_util/KeyCode */ "./components/_util/KeyCode.js");
var cachedSelectionStart = void 0;
var cachedSelectionEnd = void 0;
var dateInputInstance = void 0;
var DateInput = {
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"]],
props: {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
timePicker: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
disabledTime: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
format: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string), _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func]),
locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
// onChange: PropTypes.func,
// onClear: PropTypes.func,
placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
// onSelect: PropTypes.func,
selectedValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
clearIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
inputMode: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
inputReadOnly: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool
},
data: function data() {
var selectedValue = this.selectedValue;
return {
str: Object(_util__WEBPACK_IMPORTED_MODULE_5__["formatDate"])(selectedValue, this.format),
invalid: false,
hasFocus: false
};
},
watch: {
selectedValue: function selectedValue() {
this.setState();
},
format: function format() {
this.setState();
}
},
updated: function updated() {
var _this = this;
this.$nextTick(function () {
if (dateInputInstance && _this.$data.hasFocus && !_this.invalid && !(cachedSelectionStart === 0 && cachedSelectionEnd === 0)) {
dateInputInstance.setSelectionRange(cachedSelectionStart, cachedSelectionEnd);
}
});
},
getInstance: function getInstance() {
return dateInputInstance;
},
methods: {
getDerivedStateFromProps: function getDerivedStateFromProps(nextProps, state) {
var newState = {};
if (dateInputInstance) {
cachedSelectionStart = dateInputInstance.selectionStart;
cachedSelectionEnd = dateInputInstance.selectionEnd;
}
// when popup show, click body will call this, bug!
var selectedValue = nextProps.selectedValue;
if (!state.hasFocus) {
newState = {
str: Object(_util__WEBPACK_IMPORTED_MODULE_5__["formatDate"])(selectedValue, this.format),
invalid: false
};
}
return newState;
},
onClear: function onClear() {
this.setState({
str: ''
});
this.__emit('clear', null);
},
onInputChange: function onInputChange(e) {
var _e$target = e.target,
str = _e$target.value,
composing = _e$target.composing;
var _str = this.str,
oldStr = _str === undefined ? '' : _str;
if (e.isComposing || composing || oldStr === str) return;
var _$props = this.$props,
disabledDate = _$props.disabledDate,
format = _$props.format,
selectedValue = _$props.selectedValue;
// 没有内容,合法并直接退出
if (!str) {
this.__emit('change', null);
this.setState({
invalid: false,
str: str
});
return;
}
// 不合法直接退出
var parsed = moment__WEBPACK_IMPORTED_MODULE_4___default()(str, format, true);
if (!parsed.isValid()) {
this.setState({
invalid: true,
str: str
});
return;
}
var value = this.value.clone();
value.year(parsed.year()).month(parsed.month()).date(parsed.date()).hour(parsed.hour()).minute(parsed.minute()).second(parsed.second());
if (!value || disabledDate && disabledDate(value)) {
this.setState({
invalid: true,
str: str
});
return;
}
if (selectedValue !== value || selectedValue && value && !selectedValue.isSame(value)) {
this.setState({
invalid: false,
str: str
});
this.__emit('change', value);
}
},
onFocus: function onFocus() {
this.setState({ hasFocus: true });
},
onBlur: function onBlur() {
this.setState(function (prevState, prevProps) {
return {
hasFocus: false,
str: Object(_util__WEBPACK_IMPORTED_MODULE_5__["formatDate"])(prevProps.value, prevProps.format)
};
});
},
onKeyDown: function onKeyDown(event) {
var keyCode = event.keyCode;
var _$props2 = this.$props,
value = _$props2.value,
disabledDate = _$props2.disabledDate;
if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_6__["default"].ENTER) {
var validateDate = !disabledDate || !disabledDate(value);
if (validateDate) {
this.__emit('select', value.clone());
}
event.preventDefault();
}
},
getRootDOMNode: function getRootDOMNode() {
return this.$el;
},
focus: function focus() {
if (dateInputInstance) {
dateInputInstance.focus();
}
},
saveDateInput: function saveDateInput(dateInput) {
dateInputInstance = dateInput;
}
},
render: function render() {
var h = arguments[0];
var invalid = this.invalid,
str = this.str,
locale = this.locale,
prefixCls = this.prefixCls,
placeholder = this.placeholder,
disabled = this.disabled,
showClear = this.showClear,
inputMode = this.inputMode,
inputReadOnly = this.inputReadOnly;
var clearIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'clearIcon');
var invalidClass = invalid ? prefixCls + '-input-invalid' : '';
return h(
'div',
{ 'class': prefixCls + '-input-wrap' },
[h(
'div',
{ 'class': prefixCls + '-date-input-wrap' },
[h('input', babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
directives: [{
name: 'ant-ref',
value: this.saveDateInput
}, {
name: 'ant-input'
}]
}, {
'class': prefixCls + '-input ' + invalidClass,
domProps: {
'value': str
},
attrs: {
disabled: disabled,
placeholder: placeholder,
inputMode: inputMode,
readOnly: inputReadOnly
},
on: {
'input': this.onInputChange,
'keydown': this.onKeyDown,
'focus': this.onFocus,
'blur': this.onBlur
}
}]))]
), showClear ? h(
'a',
{
attrs: { role: 'button', title: locale.clear },
on: {
'click': this.onClear
}
},
[clearIcon || h('span', { 'class': prefixCls + '-clear-btn' })]
) : null]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (DateInput);
/***/ }),
/***/ "./components/vc-calendar/src/date/DateTBody.jsx":
/*!*******************************************************!*\
!*** ./components/vc-calendar/src/date/DateTBody.jsx ***!
\*******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _DateConstants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./DateConstants */ "./components/vc-calendar/src/date/DateConstants.js");
/* harmony import */ var _util___WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util/ */ "./components/vc-calendar/src/util/index.js");
function noop() {}
function isSameDay(one, two) {
return one && two && one.isSame(two, 'day');
}
function beforeCurrentMonthYear(current, today) {
if (current.year() < today.year()) {
return 1;
}
return current.year() === today.year() && current.month() < today.month();
}
function afterCurrentMonthYear(current, today) {
if (current.year() > today.year()) {
return 1;
}
return current.year() === today.year() && current.month() > today.month();
}
function getIdFromDate(date) {
return 'rc-calendar-' + date.year() + '-' + date.month() + '-' + date.date();
}
var DateTBody = {
props: {
contentRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
dateRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
selectedValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any)]),
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
hoverValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any.def([]),
showWeekNumber: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool
},
render: function render() {
var h = arguments[0];
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getOptionProps"])(this);
var contentRender = props.contentRender,
prefixCls = props.prefixCls,
selectedValue = props.selectedValue,
value = props.value,
showWeekNumber = props.showWeekNumber,
dateRender = props.dateRender,
disabledDate = props.disabledDate,
hoverValue = props.hoverValue;
var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getListeners"])(this),
_getListeners$select = _getListeners.select,
select = _getListeners$select === undefined ? noop : _getListeners$select,
_getListeners$dayHove = _getListeners.dayHover,
dayHover = _getListeners$dayHove === undefined ? noop : _getListeners$dayHove;
var iIndex = void 0;
var jIndex = void 0;
var current = void 0;
var dateTable = [];
var today = Object(_util___WEBPACK_IMPORTED_MODULE_5__["getTodayTime"])(value);
var cellClass = prefixCls + '-cell';
var weekNumberCellClass = prefixCls + '-week-number-cell';
var dateClass = prefixCls + '-date';
var todayClass = prefixCls + '-today';
var selectedClass = prefixCls + '-selected-day';
var selectedDateClass = prefixCls + '-selected-date'; // do not move with mouse operation
var selectedStartDateClass = prefixCls + '-selected-start-date';
var selectedEndDateClass = prefixCls + '-selected-end-date';
var inRangeClass = prefixCls + '-in-range-cell';
var lastMonthDayClass = prefixCls + '-last-month-cell';
var nextMonthDayClass = prefixCls + '-next-month-btn-day';
var disabledClass = prefixCls + '-disabled-cell';
var firstDisableClass = prefixCls + '-disabled-cell-first-of-row';
var lastDisableClass = prefixCls + '-disabled-cell-last-of-row';
var lastDayOfMonthClass = prefixCls + '-last-day-of-month';
var month1 = value.clone();
month1.date(1);
var day = month1.day();
var lastMonthDiffDay = (day + 7 - value.localeData().firstDayOfWeek()) % 7;
// calculate last month
var lastMonth1 = month1.clone();
lastMonth1.add(0 - lastMonthDiffDay, 'days');
var passed = 0;
for (iIndex = 0; iIndex < _DateConstants__WEBPACK_IMPORTED_MODULE_4__["default"].DATE_ROW_COUNT; iIndex++) {
for (jIndex = 0; jIndex < _DateConstants__WEBPACK_IMPORTED_MODULE_4__["default"].DATE_COL_COUNT; jIndex++) {
current = lastMonth1;
if (passed) {
current = current.clone();
current.add(passed, 'days');
}
dateTable.push(current);
passed++;
}
}
var tableHtml = [];
passed = 0;
for (iIndex = 0; iIndex < _DateConstants__WEBPACK_IMPORTED_MODULE_4__["default"].DATE_ROW_COUNT; iIndex++) {
var _cx;
var isCurrentWeek = void 0;
var weekNumberCell = void 0;
var isActiveWeek = false;
var dateCells = [];
if (showWeekNumber) {
weekNumberCell = h(
'td',
{ key: 'week-' + dateTable[passed].week(), attrs: { role: 'gridcell' },
'class': weekNumberCellClass },
[dateTable[passed].week()]
);
}
for (jIndex = 0; jIndex < _DateConstants__WEBPACK_IMPORTED_MODULE_4__["default"].DATE_COL_COUNT; jIndex++) {
var next = null;
var last = null;
current = dateTable[passed];
if (jIndex < _DateConstants__WEBPACK_IMPORTED_MODULE_4__["default"].DATE_COL_COUNT - 1) {
next = dateTable[passed + 1];
}
if (jIndex > 0) {
last = dateTable[passed - 1];
}
var cls = cellClass;
var disabled = false;
var selected = false;
if (isSameDay(current, today)) {
cls += ' ' + todayClass;
isCurrentWeek = true;
}
var isBeforeCurrentMonthYear = beforeCurrentMonthYear(current, value);
var isAfterCurrentMonthYear = afterCurrentMonthYear(current, value);
if (selectedValue && Array.isArray(selectedValue)) {
var rangeValue = hoverValue.length ? hoverValue : selectedValue;
if (!isBeforeCurrentMonthYear && !isAfterCurrentMonthYear) {
var startValue = rangeValue[0];
var endValue = rangeValue[1];
if (startValue) {
if (isSameDay(current, startValue)) {
selected = true;
isActiveWeek = true;
cls += ' ' + selectedStartDateClass;
}
}
if (startValue || endValue) {
if (isSameDay(current, endValue)) {
selected = true;
isActiveWeek = true;
cls += ' ' + selectedEndDateClass;
} else if ((startValue === null || startValue === undefined) && current.isBefore(endValue, 'day')) {
cls += ' ' + inRangeClass;
} else if ((endValue === null || endValue === undefined) && current.isAfter(startValue, 'day')) {
cls += ' ' + inRangeClass;
} else if (current.isAfter(startValue, 'day') && current.isBefore(endValue, 'day')) {
cls += ' ' + inRangeClass;
}
}
}
} else if (isSameDay(current, value)) {
// keyboard change value, highlight works
selected = true;
isActiveWeek = true;
}
if (isSameDay(current, selectedValue)) {
cls += ' ' + selectedDateClass;
}
if (isBeforeCurrentMonthYear) {
cls += ' ' + lastMonthDayClass;
}
if (isAfterCurrentMonthYear) {
cls += ' ' + nextMonthDayClass;
}
if (current.clone().endOf('month').date() === current.date()) {
cls += ' ' + lastDayOfMonthClass;
}
if (disabledDate) {
if (disabledDate(current, value)) {
disabled = true;
if (!last || !disabledDate(last, value)) {
cls += ' ' + firstDisableClass;
}
if (!next || !disabledDate(next, value)) {
cls += ' ' + lastDisableClass;
}
}
}
if (selected) {
cls += ' ' + selectedClass;
}
if (disabled) {
cls += ' ' + disabledClass;
}
var dateHtml = void 0;
if (dateRender) {
dateHtml = dateRender(current, value);
} else {
var content = contentRender ? contentRender(current, value) : current.date();
dateHtml = h(
'div',
{
key: getIdFromDate(current),
'class': dateClass,
attrs: { 'aria-selected': selected,
'aria-disabled': disabled
}
},
[content]
);
}
dateCells.push(h(
'td',
{
key: passed,
on: {
'click': disabled ? noop : select.bind(null, current),
'mouseenter': disabled ? noop : dayHover.bind(null, current)
},
attrs: {
role: 'gridcell',
title: Object(_util___WEBPACK_IMPORTED_MODULE_5__["getTitleString"])(current)
},
'class': cls
},
[dateHtml]
));
passed++;
}
tableHtml.push(h(
'tr',
{
key: iIndex,
attrs: { role: 'row'
},
'class': classnames__WEBPACK_IMPORTED_MODULE_3___default()((_cx = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_cx, prefixCls + '-current-week', isCurrentWeek), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_cx, prefixCls + '-active-week', isActiveWeek), _cx))
},
[weekNumberCell, dateCells]
));
}
return h(
'tbody',
{ 'class': prefixCls + '-tbody' },
[tableHtml]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (DateTBody);
/***/ }),
/***/ "./components/vc-calendar/src/date/DateTHead.jsx":
/*!*******************************************************!*\
!*** ./components/vc-calendar/src/date/DateTHead.jsx ***!
\*******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _DateConstants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DateConstants */ "./components/vc-calendar/src/date/DateConstants.js");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "moment");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
/* harmony default export */ __webpack_exports__["default"] = ({
functional: true,
render: function render(createElement, context) {
var h = arguments[0];
var props = context.props;
var value = props.value;
var localeData = value.localeData();
var prefixCls = props.prefixCls;
var veryShortWeekdays = [];
var weekDays = [];
var firstDayOfWeek = localeData.firstDayOfWeek();
var showWeekNumberEl = void 0;
var now = moment__WEBPACK_IMPORTED_MODULE_1___default()();
for (var dateColIndex = 0; dateColIndex < _DateConstants__WEBPACK_IMPORTED_MODULE_0__["default"].DATE_COL_COUNT; dateColIndex++) {
var index = (firstDayOfWeek + dateColIndex) % _DateConstants__WEBPACK_IMPORTED_MODULE_0__["default"].DATE_COL_COUNT;
now.day(index);
veryShortWeekdays[dateColIndex] = localeData.weekdaysMin(now);
weekDays[dateColIndex] = localeData.weekdaysShort(now);
}
if (props.showWeekNumber) {
showWeekNumberEl = h(
'th',
{
attrs: {
role: 'columnheader'
},
'class': prefixCls + '-column-header ' + prefixCls + '-week-number-header'
},
[h(
'span',
{ 'class': prefixCls + '-column-header-inner' },
['x']
)]
);
}
var weekDaysEls = weekDays.map(function (day, xindex) {
return h(
'th',
{ key: xindex, attrs: { role: 'columnheader', title: day },
'class': prefixCls + '-column-header' },
[h(
'span',
{ 'class': prefixCls + '-column-header-inner' },
[veryShortWeekdays[xindex]]
)]
);
});
return h('thead', [h(
'tr',
{
attrs: { role: 'row' }
},
[showWeekNumberEl, weekDaysEls]
)]);
}
});
/***/ }),
/***/ "./components/vc-calendar/src/date/DateTable.jsx":
/*!*******************************************************!*\
!*** ./components/vc-calendar/src/date/DateTable.jsx ***!
\*******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _DateTHead__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DateTHead */ "./components/vc-calendar/src/date/DateTHead.jsx");
/* harmony import */ var _DateTBody__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DateTBody */ "./components/vc-calendar/src/date/DateTBody.jsx");
/* harmony default export */ __webpack_exports__["default"] = ({
functional: true,
render: function render(createElement, context) {
var h = arguments[0];
var props = context.props,
_context$listeners = context.listeners,
listeners = _context$listeners === undefined ? {} : _context$listeners;
var prefixCls = props.prefixCls;
var bodyProps = {
props: props,
on: listeners
};
return h(
'table',
{ 'class': prefixCls + '-table', attrs: { cellSpacing: '0', role: 'grid' }
},
[h(_DateTHead__WEBPACK_IMPORTED_MODULE_0__["default"], bodyProps), h(_DateTBody__WEBPACK_IMPORTED_MODULE_1__["default"], bodyProps)]
);
}
});
/***/ }),
/***/ "./components/vc-calendar/src/decade/DecadePanel.jsx":
/*!***********************************************************!*\
!*** ./components/vc-calendar/src/decade/DecadePanel.jsx ***!
\***********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
var ROW = 4;
var COL = 3;
function noop() {}
function goYear(direction) {
var next = this.sValue.clone();
next.add(direction, 'years');
this.setState({
sValue: next
});
}
function chooseDecade(year, event) {
var next = this.sValue.clone();
next.year(year);
next.month(this.sValue.month());
this.__emit('select', next);
event.preventDefault();
}
/* harmony default export */ __webpack_exports__["default"] = ({
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"]],
props: {
locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
rootPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
renderFooter: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
},
data: function data() {
this.nextCentury = goYear.bind(this, 100);
this.previousCentury = goYear.bind(this, -100);
return {
sValue: this.value || this.defaultValue
};
},
watch: {
value: function value(val) {
this.sValue = val;
}
},
render: function render() {
var _this = this;
var h = arguments[0];
var value = this.sValue;
var _$props = this.$props,
locale = _$props.locale,
renderFooter = _$props.renderFooter;
var currentYear = value.year();
var startYear = parseInt(currentYear / 100, 10) * 100;
var preYear = startYear - 10;
var endYear = startYear + 99;
var decades = [];
var index = 0;
var prefixCls = this.rootPrefixCls + '-decade-panel';
for (var rowIndex = 0; rowIndex < ROW; rowIndex++) {
decades[rowIndex] = [];
for (var colIndex = 0; colIndex < COL; colIndex++) {
var startDecade = preYear + index * 10;
var endDecade = preYear + index * 10 + 9;
decades[rowIndex][colIndex] = {
startDecade: startDecade,
endDecade: endDecade
};
index++;
}
}
var footer = renderFooter && renderFooter('decade');
var decadesEls = decades.map(function (row, decadeIndex) {
var tds = row.map(function (decadeData) {
var _classNameMap;
var dStartDecade = decadeData.startDecade;
var dEndDecade = decadeData.endDecade;
var isLast = dStartDecade < startYear;
var isNext = dEndDecade > endYear;
var classNameMap = (_classNameMap = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNameMap, prefixCls + '-cell', 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNameMap, prefixCls + '-selected-cell', dStartDecade <= currentYear && currentYear <= dEndDecade), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNameMap, prefixCls + '-last-century-cell', isLast), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNameMap, prefixCls + '-next-century-cell', isNext), _classNameMap);
var content = dStartDecade + '-' + dEndDecade;
var clickHandler = noop;
if (isLast) {
clickHandler = _this.previousCentury;
} else if (isNext) {
clickHandler = _this.nextCentury;
} else {
clickHandler = chooseDecade.bind(_this, dStartDecade);
}
return h(
'td',
{ key: dStartDecade, on: {
'click': clickHandler
},
attrs: { role: 'gridcell' },
'class': classNameMap },
[h(
'a',
{ 'class': prefixCls + '-decade' },
[content]
)]
);
});
return h(
'tr',
{ key: decadeIndex, attrs: { role: 'row' }
},
[tds]
);
});
return h(
'div',
{ 'class': prefixCls },
[h(
'div',
{ 'class': prefixCls + '-header' },
[h('a', {
'class': prefixCls + '-prev-century-btn',
attrs: { role: 'button',
title: locale.previousCentury
},
on: {
'click': this.previousCentury
}
}), h(
'div',
{ 'class': prefixCls + '-century' },
[startYear, '-', endYear]
), h('a', {
'class': prefixCls + '-next-century-btn',
attrs: { role: 'button',
title: locale.nextCentury
},
on: {
'click': this.nextCentury
}
})]
), h(
'div',
{ 'class': prefixCls + '-body' },
[h(
'table',
{ 'class': prefixCls + '-table', attrs: { cellSpacing: '0', role: 'grid' }
},
[h(
'tbody',
{ 'class': prefixCls + '-tbody' },
[decadesEls]
)]
)]
), footer && h(
'div',
{ 'class': prefixCls + '-footer' },
[footer]
)]
);
}
});
/***/ }),
/***/ "./components/vc-calendar/src/full-calendar/CalendarHeader.jsx":
/*!*********************************************************************!*\
!*** ./components/vc-calendar/src/full-calendar/CalendarHeader.jsx ***!
\*********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util */ "./components/vc-calendar/src/util/index.js");
var CalendarHeader = {
name: 'CalendarHeader',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__["default"]],
props: {
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
yearSelectOffset: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(10),
yearSelectTotal: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(20),
// onValueChange: PropTypes.func,
// onTypeChange: PropTypes.func,
Select: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
type: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
showTypeSwitch: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
headerComponents: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].array
},
methods: {
onYearChange: function onYearChange(year) {
var newValue = this.value.clone();
newValue.year(parseInt(year, 10));
this.__emit('valueChange', newValue);
},
onMonthChange: function onMonthChange(month) {
var newValue = this.value.clone();
newValue.month(parseInt(month, 10));
this.__emit('valueChange', newValue);
},
yearSelectElement: function yearSelectElement(year) {
var h = this.$createElement;
var yearSelectOffset = this.yearSelectOffset,
yearSelectTotal = this.yearSelectTotal,
prefixCls = this.prefixCls,
Select = this.Select;
var start = year - yearSelectOffset;
var end = start + yearSelectTotal;
var options = [];
for (var index = start; index < end; index++) {
options.push(h(
Select.Option,
{ key: '' + index },
[index]
));
}
return h(
Select,
{
'class': prefixCls + '-header-year-select',
on: {
'change': this.onYearChange
},
attrs: {
dropdownStyle: { zIndex: 2000 },
dropdownMenuStyle: { maxHeight: '250px', overflow: 'auto', fontSize: '12px' },
optionLabelProp: 'children',
value: String(year),
showSearch: false
}
},
[options]
);
},
monthSelectElement: function monthSelectElement(month) {
var h = this.$createElement;
var value = this.value,
Select = this.Select,
prefixCls = this.prefixCls;
var t = value.clone();
var options = [];
for (var index = 0; index < 12; index++) {
t.month(index);
options.push(h(
Select.Option,
{ key: '' + index },
[Object(_util__WEBPACK_IMPORTED_MODULE_2__["getMonthName"])(t)]
));
}
return h(
Select,
{
'class': prefixCls + '-header-month-select',
attrs: { dropdownStyle: { zIndex: 2000 },
dropdownMenuStyle: {
maxHeight: '250px',
overflow: 'auto',
overflowX: 'hidden',
fontSize: '12px'
},
optionLabelProp: 'children',
value: String(month),
showSearch: false
},
on: {
'change': this.onMonthChange
}
},
[options]
);
},
changeTypeToDate: function changeTypeToDate() {
this.__emit('typeChange', 'date');
},
changeTypeToMonth: function changeTypeToMonth() {
this.__emit('typeChange', 'month');
}
},
render: function render() {
var h = arguments[0];
var value = this.value,
locale = this.locale,
prefixCls = this.prefixCls,
type = this.type,
showTypeSwitch = this.showTypeSwitch,
headerComponents = this.headerComponents;
var year = value.year();
var month = value.month();
var yearSelect = this.yearSelectElement(year);
var monthSelect = type === 'month' ? null : this.monthSelectElement(month);
var switchCls = prefixCls + '-header-switcher';
var typeSwitcher = showTypeSwitch ? h(
'span',
{ 'class': switchCls },
[type === 'date' ? h(
'span',
{ 'class': switchCls + '-focus' },
[locale.month]
) : h(
'span',
{
on: {
'click': this.changeTypeToDate
},
'class': switchCls + '-normal' },
[locale.month]
), type === 'month' ? h(
'span',
{ 'class': switchCls + '-focus' },
[locale.year]
) : h(
'span',
{
on: {
'click': this.changeTypeToMonth
},
'class': switchCls + '-normal' },
[locale.year]
)]
) : null;
return h(
'div',
{ 'class': prefixCls + '-header' },
[typeSwitcher, monthSelect, yearSelect, headerComponents]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (CalendarHeader);
/***/ }),
/***/ "./components/vc-calendar/src/index.js":
/*!*********************************************!*\
!*** ./components/vc-calendar/src/index.js ***!
\*********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Calendar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Calendar */ "./components/vc-calendar/src/Calendar.jsx");
/* harmony default export */ __webpack_exports__["default"] = (_Calendar__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/vc-calendar/src/locale/en_US.js":
/*!****************************************************!*\
!*** ./components/vc-calendar/src/locale/en_US.js ***!
\****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ({
today: 'Today',
now: 'Now',
backToToday: 'Back to today',
ok: 'Ok',
clear: 'Clear',
month: 'Month',
year: 'Year',
timeSelect: 'select time',
dateSelect: 'select date',
weekSelect: 'Choose a week',
monthSelect: 'Choose a month',
yearSelect: 'Choose a year',
decadeSelect: 'Choose a decade',
yearFormat: 'YYYY',
dateFormat: 'M/D/YYYY',
dayFormat: 'D',
dateTimeFormat: 'M/D/YYYY HH:mm:ss',
monthBeforeYear: true,
previousMonth: 'Previous month (PageUp)',
nextMonth: 'Next month (PageDown)',
previousYear: 'Last year (Control + left)',
nextYear: 'Next year (Control + right)',
previousDecade: 'Last decade',
nextDecade: 'Next decade',
previousCentury: 'Last century',
nextCentury: 'Next century'
});
/***/ }),
/***/ "./components/vc-calendar/src/mixin/CalendarMixin.js":
/*!***********************************************************!*\
!*** ./components/vc-calendar/src/mixin/CalendarMixin.js ***!
\***********************************************************/
/*! exports provided: getNowByCurrentStateValue, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getNowByCurrentStateValue", function() { return getNowByCurrentStateValue; });
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! moment */ "moment");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util/index */ "./components/vc-calendar/src/util/index.js");
function noop() {}
function getNowByCurrentStateValue(value) {
var ret = void 0;
if (value) {
ret = Object(_util_index__WEBPACK_IMPORTED_MODULE_5__["getTodayTime"])(value);
} else {
ret = moment__WEBPACK_IMPORTED_MODULE_4___default()();
}
return ret;
}
function isMoment(value) {
if (Array.isArray(value)) {
return value.length === 0 || value.findIndex(function (val) {
return val === undefined || moment__WEBPACK_IMPORTED_MODULE_4___default.a.isMoment(val);
}) !== -1;
} else {
return value === undefined || moment__WEBPACK_IMPORTED_MODULE_4___default.a.isMoment(value);
}
}
var MomentType = _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].custom(isMoment);
var CalendarMixin = {
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"]],
name: 'CalendarMixinWrapper',
props: {
value: MomentType,
defaultValue: MomentType
},
data: function data() {
var props = this.$props;
var sValue = props.value || props.defaultValue || getNowByCurrentStateValue();
return {
sValue: sValue,
sSelectedValue: props.selectedValue || props.defaultSelectedValue
};
},
watch: {
value: function value(val) {
var sValue = val || this.defaultValue || getNowByCurrentStateValue(this.sValue);
this.setState({
sValue: sValue
});
},
selectedValue: function selectedValue(val) {
this.setState({
sSelectedValue: val
});
}
},
methods: {
onSelect: function onSelect(value, cause) {
if (value) {
this.setValue(value);
}
this.setSelectedValue(value, cause);
},
renderRoot: function renderRoot(newProps) {
var _className;
var h = this.$createElement;
var props = this.$props;
var prefixCls = props.prefixCls;
var className = (_className = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_className, prefixCls, 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_className, prefixCls + '-hidden', !props.visible), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_className, newProps['class'], !!newProps['class']), _className);
return h(
'div',
{
ref: 'rootInstance',
'class': className,
attrs: { tabIndex: '0'
},
on: {
'keydown': this.onKeyDown || noop,
'blur': this.onBlur || noop
}
},
[newProps.children]
);
},
setSelectedValue: function setSelectedValue(selectedValue, cause) {
// if (this.isAllowedDate(selectedValue)) {
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["hasProp"])(this, 'selectedValue')) {
this.setState({
sSelectedValue: selectedValue
});
}
this.__emit('select', selectedValue, cause);
// }
},
setValue: function setValue(value) {
var originalValue = this.sValue;
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["hasProp"])(this, 'value')) {
this.setState({
sValue: value
});
}
if (originalValue && value && !originalValue.isSame(value) || !originalValue && value || originalValue && !value) {
this.__emit('change', value);
}
},
isAllowedDate: function isAllowedDate(value) {
var disabledDate = this.disabledDate;
var disabledTime = this.disabledTime;
return Object(_util_index__WEBPACK_IMPORTED_MODULE_5__["isAllowedDate"])(value, disabledDate, disabledTime);
}
}
};
/* harmony default export */ __webpack_exports__["default"] = (CalendarMixin);
/***/ }),
/***/ "./components/vc-calendar/src/mixin/CommonMixin.js":
/*!*********************************************************!*\
!*** ./components/vc-calendar/src/mixin/CommonMixin.js ***!
\*********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ({
methods: {
getFormat: function getFormat() {
var format = this.format;
var locale = this.locale,
timePicker = this.timePicker;
if (!format) {
if (timePicker) {
format = locale.dateTimeFormat;
} else {
format = locale.dateFormat;
}
}
return format;
},
focus: function focus() {
if (this.focusElement) {
this.focusElement.focus();
} else if (this.$refs.rootInstance) {
this.$refs.rootInstance.focus();
}
},
saveFocusElement: function saveFocusElement(focusElement) {
this.focusElement = focusElement;
}
}
});
/***/ }),
/***/ "./components/vc-calendar/src/month/MonthPanel.jsx":
/*!*********************************************************!*\
!*** ./components/vc-calendar/src/month/MonthPanel.jsx ***!
\*********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _MonthTable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./MonthTable */ "./components/vc-calendar/src/month/MonthTable.jsx");
function goYear(direction) {
this.changeYear(direction);
}
function noop() {}
var MonthPanel = {
name: 'MonthPanel',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__["default"]],
props: {
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
cellRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
contentRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
rootPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
// onChange: PropTypes.func,
disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
// onSelect: PropTypes.func,
renderFooter: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
changeYear: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func.def(noop)
},
data: function data() {
var value = this.value,
defaultValue = this.defaultValue;
// bind methods
this.nextYear = goYear.bind(this, 1);
this.previousYear = goYear.bind(this, -1);
return {
sValue: value || defaultValue
};
},
watch: {
value: function value(val) {
this.setState({
sValue: val
});
}
},
methods: {
setAndSelectValue: function setAndSelectValue(value) {
this.setValue(value);
this.__emit('select', value);
},
setValue: function setValue(value) {
if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["hasProp"])(this, 'value')) {
this.setState({
sValue: value
});
}
}
},
render: function render() {
var h = arguments[0];
var sValue = this.sValue,
cellRender = this.cellRender,
contentRender = this.contentRender,
locale = this.locale,
rootPrefixCls = this.rootPrefixCls,
disabledDate = this.disabledDate,
renderFooter = this.renderFooter;
var year = sValue.year();
var prefixCls = rootPrefixCls + '-month-panel';
var footer = renderFooter && renderFooter('month');
return h(
'div',
{ 'class': prefixCls },
[h('div', [h(
'div',
{ 'class': prefixCls + '-header' },
[h('a', {
'class': prefixCls + '-prev-year-btn',
attrs: { role: 'button',
title: locale.previousYear
},
on: {
'click': this.previousYear
}
}), h(
'a',
{
'class': prefixCls + '-year-select',
attrs: { role: 'button',
title: locale.yearSelect
},
on: {
'click': Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getListeners"])(this).yearPanelShow || noop
}
},
[h(
'span',
{ 'class': prefixCls + '-year-select-content' },
[year]
), h(
'span',
{ 'class': prefixCls + '-year-select-arrow' },
['x']
)]
), h('a', {
'class': prefixCls + '-next-year-btn',
attrs: { role: 'button',
title: locale.nextYear
},
on: {
'click': this.nextYear
}
})]
), h(
'div',
{ 'class': prefixCls + '-body' },
[h(_MonthTable__WEBPACK_IMPORTED_MODULE_3__["default"], {
attrs: {
disabledDate: disabledDate,
locale: locale,
value: sValue,
cellRender: cellRender,
contentRender: contentRender,
prefixCls: prefixCls
},
on: {
'select': this.setAndSelectValue
}
})]
), footer && h(
'div',
{ 'class': prefixCls + '-footer' },
[footer]
)])]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (MonthPanel);
/***/ }),
/***/ "./components/vc-calendar/src/month/MonthTable.jsx":
/*!*********************************************************!*\
!*** ./components/vc-calendar/src/month/MonthTable.jsx ***!
\*********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/index */ "./components/vc-calendar/src/util/index.js");
var ROW = 4;
var COL = 3;
function noop() {}
var MonthTable = {
name: 'MonthTable',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"]],
props: {
cellRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
contentRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
},
data: function data() {
return {
sValue: this.value
};
},
watch: {
value: function value(val) {
this.setState({
sValue: val
});
}
},
methods: {
setAndSelectValue: function setAndSelectValue(value) {
this.setState({
sValue: value
});
this.__emit('select', value);
},
chooseMonth: function chooseMonth(month) {
var next = this.sValue.clone();
next.month(month);
this.setAndSelectValue(next);
},
months: function months() {
var value = this.sValue;
var current = value.clone();
var months = [];
var index = 0;
for (var rowIndex = 0; rowIndex < ROW; rowIndex++) {
months[rowIndex] = [];
for (var colIndex = 0; colIndex < COL; colIndex++) {
current.month(index);
var content = Object(_util_index__WEBPACK_IMPORTED_MODULE_3__["getMonthName"])(current);
months[rowIndex][colIndex] = {
value: index,
content: content,
title: content
};
index++;
}
}
return months;
}
},
render: function render() {
var _this = this;
var h = arguments[0];
var props = this.$props;
var value = this.sValue;
var today = Object(_util_index__WEBPACK_IMPORTED_MODULE_3__["getTodayTime"])(value);
var months = this.months();
var currentMonth = value.month();
var prefixCls = props.prefixCls,
locale = props.locale,
contentRender = props.contentRender,
cellRender = props.cellRender,
disabledDate = props.disabledDate;
var monthsEls = months.map(function (month, index) {
var tds = month.map(function (monthData) {
var _classNameMap;
var disabled = false;
if (disabledDate) {
var testValue = value.clone();
testValue.month(monthData.value);
disabled = disabledDate(testValue);
}
var classNameMap = (_classNameMap = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNameMap, prefixCls + '-cell', 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNameMap, prefixCls + '-cell-disabled', disabled), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNameMap, prefixCls + '-selected-cell', monthData.value === currentMonth), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNameMap, prefixCls + '-current-cell', today.year() === value.year() && monthData.value === today.month()), _classNameMap);
var cellEl = void 0;
if (cellRender) {
var currentValue = value.clone();
currentValue.month(monthData.value);
cellEl = cellRender(currentValue, locale);
} else {
var content = void 0;
if (contentRender) {
var _currentValue = value.clone();
_currentValue.month(monthData.value);
content = contentRender(_currentValue, locale);
} else {
content = monthData.content;
}
cellEl = h(
'a',
{ 'class': prefixCls + '-month' },
[content]
);
}
return h(
'td',
{
attrs: {
role: 'gridcell',
title: monthData.title
},
key: monthData.value,
on: {
'click': disabled ? noop : function () {
return _this.chooseMonth(monthData.value);
}
},
'class': classNameMap
},
[cellEl]
);
});
return h(
'tr',
{ key: index, attrs: { role: 'row' }
},
[tds]
);
});
return h(
'table',
{ 'class': prefixCls + '-table', attrs: { cellSpacing: '0', role: 'grid' }
},
[h(
'tbody',
{ 'class': prefixCls + '-tbody' },
[monthsEls]
)]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (MonthTable);
/***/ }),
/***/ "./components/vc-calendar/src/picker/placements.js":
/*!*********************************************************!*\
!*** ./components/vc-calendar/src/picker/placements.js ***!
\*********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
var autoAdjustOverflow = {
adjustX: 1,
adjustY: 1
};
var targetOffset = [0, 0];
var placements = {
bottomLeft: {
points: ['tl', 'tl'],
overflow: autoAdjustOverflow,
offset: [0, -3],
targetOffset: targetOffset
},
bottomRight: {
points: ['tr', 'tr'],
overflow: autoAdjustOverflow,
offset: [0, -3],
targetOffset: targetOffset
},
topRight: {
points: ['br', 'br'],
overflow: autoAdjustOverflow,
offset: [0, 3],
targetOffset: targetOffset
},
topLeft: {
points: ['bl', 'bl'],
overflow: autoAdjustOverflow,
offset: [0, 3],
targetOffset: targetOffset
}
};
/* harmony default export */ __webpack_exports__["default"] = (placements);
/***/ }),
/***/ "./components/vc-calendar/src/range-calendar/CalendarPart.jsx":
/*!********************************************************************!*\
!*** ./components/vc-calendar/src/range-calendar/CalendarPart.jsx ***!
\********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _calendar_CalendarHeader__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../calendar/CalendarHeader */ "./components/vc-calendar/src/calendar/CalendarHeader.jsx");
/* harmony import */ var _date_DateTable__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../date/DateTable */ "./components/vc-calendar/src/date/DateTable.jsx");
/* harmony import */ var _date_DateInput__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../date/DateInput */ "./components/vc-calendar/src/date/DateInput.jsx");
/* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../util/index */ "./components/vc-calendar/src/util/index.js");
function noop() {}
var CalendarPart = {
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"]],
props: {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
hoverValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
selectedValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
direction: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
showDateInput: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
showTimePicker: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
showWeekNumber: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
format: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
timePicker: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
disabledTime: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
disabledMonth: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
// onInputSelect: PropTypes.func,
timePickerDisabledTime: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
enableNext: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
enablePrev: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
clearIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
dateRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
inputMode: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
inputReadOnly: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool
},
render: function render() {
var h = arguments[0];
var props = this.$props;
var prefixCls = props.prefixCls,
value = props.value,
hoverValue = props.hoverValue,
selectedValue = props.selectedValue,
mode = props.mode,
direction = props.direction,
locale = props.locale,
format = props.format,
placeholder = props.placeholder,
disabledDate = props.disabledDate,
timePicker = props.timePicker,
disabledTime = props.disabledTime,
timePickerDisabledTime = props.timePickerDisabledTime,
showTimePicker = props.showTimePicker,
enablePrev = props.enablePrev,
enableNext = props.enableNext,
disabledMonth = props.disabledMonth,
showDateInput = props.showDateInput,
dateRender = props.dateRender,
showWeekNumber = props.showWeekNumber,
showClear = props.showClear,
inputMode = props.inputMode,
inputReadOnly = props.inputReadOnly;
var clearIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'clearIcon');
var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this),
_getListeners$inputCh = _getListeners.inputChange,
inputChange = _getListeners$inputCh === undefined ? noop : _getListeners$inputCh,
_getListeners$inputSe = _getListeners.inputSelect,
inputSelect = _getListeners$inputSe === undefined ? noop : _getListeners$inputSe,
_getListeners$valueCh = _getListeners.valueChange,
valueChange = _getListeners$valueCh === undefined ? noop : _getListeners$valueCh,
_getListeners$panelCh = _getListeners.panelChange,
panelChange = _getListeners$panelCh === undefined ? noop : _getListeners$panelCh,
_getListeners$select = _getListeners.select,
select = _getListeners$select === undefined ? noop : _getListeners$select,
_getListeners$dayHove = _getListeners.dayHover,
dayHover = _getListeners$dayHove === undefined ? noop : _getListeners$dayHove;
var shouldShowTimePicker = showTimePicker && timePicker;
var disabledTimeConfig = shouldShowTimePicker && disabledTime ? Object(_util_index__WEBPACK_IMPORTED_MODULE_8__["getTimeConfig"])(selectedValue, disabledTime) : null;
var rangeClassName = prefixCls + '-range';
var newProps = {
locale: locale,
value: value,
prefixCls: prefixCls,
showTimePicker: showTimePicker
};
var index = direction === 'left' ? 0 : 1;
var timePickerEle = null;
if (shouldShowTimePicker) {
var timePickerProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getOptionProps"])(timePicker);
timePickerEle = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_4__["cloneElement"])(timePicker, {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
showHour: true,
showMinute: true,
showSecond: true
}, timePickerProps, disabledTimeConfig, timePickerDisabledTime, {
defaultOpenValue: value,
value: selectedValue[index]
}),
on: {
change: inputChange
}
});
}
var dateInputElement = showDateInput && h(_date_DateInput__WEBPACK_IMPORTED_MODULE_7__["default"], {
attrs: {
format: format,
locale: locale,
prefixCls: prefixCls,
timePicker: timePicker,
disabledDate: disabledDate,
placeholder: placeholder,
disabledTime: disabledTime,
value: value,
showClear: showClear || false,
selectedValue: selectedValue[index],
clearIcon: clearIcon,
inputMode: inputMode,
inputReadOnly: inputReadOnly
},
on: {
'change': inputChange,
'select': inputSelect
}
});
var headerProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, newProps, {
mode: mode,
enableNext: enableNext,
enablePrev: enablePrev,
disabledMonth: disabledMonth
}),
on: {
valueChange: valueChange,
panelChange: panelChange
}
};
var tableProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, newProps, {
hoverValue: hoverValue,
selectedValue: selectedValue,
dateRender: dateRender,
disabledDate: disabledDate,
showWeekNumber: showWeekNumber
}),
on: {
select: select,
dayHover: dayHover
}
};
return h(
'div',
{ 'class': rangeClassName + '-part ' + rangeClassName + '-' + direction },
[dateInputElement, h(
'div',
{ style: { outline: 'none' } },
[h(_calendar_CalendarHeader__WEBPACK_IMPORTED_MODULE_5__["default"], headerProps), showTimePicker ? h(
'div',
{ 'class': prefixCls + '-time-picker' },
[h(
'div',
{ 'class': prefixCls + '-time-picker-panel' },
[timePickerEle]
)]
) : null, h(
'div',
{ 'class': prefixCls + '-body' },
[h(_date_DateTable__WEBPACK_IMPORTED_MODULE_6__["default"], tableProps)]
)]
)]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (CalendarPart);
/***/ }),
/***/ "./components/vc-calendar/src/util/index.js":
/*!**************************************************!*\
!*** ./components/vc-calendar/src/util/index.js ***!
\**************************************************/
/*! exports provided: getTodayTime, getTitleString, getTodayTimeStr, getMonthName, syncTime, getTimeConfig, isTimeValidByConfig, isTimeValid, isAllowedDate, formatDate */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTodayTime", function() { return getTodayTime; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTitleString", function() { return getTitleString; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTodayTimeStr", function() { return getTodayTimeStr; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMonthName", function() { return getMonthName; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "syncTime", function() { return syncTime; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTimeConfig", function() { return getTimeConfig; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isTimeValidByConfig", function() { return isTimeValidByConfig; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isTimeValid", function() { return isTimeValid; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isAllowedDate", function() { return isAllowedDate; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatDate", function() { return formatDate; });
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "moment");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
var defaultDisabledTime = {
disabledHours: function disabledHours() {
return [];
},
disabledMinutes: function disabledMinutes() {
return [];
},
disabledSeconds: function disabledSeconds() {
return [];
}
};
function getTodayTime(value) {
var today = moment__WEBPACK_IMPORTED_MODULE_1___default()();
today.locale(value.locale()).utcOffset(value.utcOffset());
return today;
}
function getTitleString(value) {
return value.format('LL');
}
function getTodayTimeStr(value) {
var today = getTodayTime(value);
return getTitleString(today);
}
function getMonthName(month) {
var locale = month.locale();
var localeData = month.localeData();
return localeData[locale === 'zh-cn' ? 'months' : 'monthsShort'](month);
}
function syncTime(from, to) {
if (!moment__WEBPACK_IMPORTED_MODULE_1___default.a.isMoment(from) || !moment__WEBPACK_IMPORTED_MODULE_1___default.a.isMoment(to)) return;
to.hour(from.hour());
to.minute(from.minute());
to.second(from.second());
to.millisecond(from.millisecond());
}
function getTimeConfig(value, disabledTime) {
var disabledTimeConfig = disabledTime ? disabledTime(value) : {};
disabledTimeConfig = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, defaultDisabledTime, disabledTimeConfig);
return disabledTimeConfig;
}
function isTimeValidByConfig(value, disabledTimeConfig) {
var invalidTime = false;
if (value) {
var hour = value.hour();
var minutes = value.minute();
var seconds = value.second();
var disabledHours = disabledTimeConfig.disabledHours();
if (disabledHours.indexOf(hour) === -1) {
var disabledMinutes = disabledTimeConfig.disabledMinutes(hour);
if (disabledMinutes.indexOf(minutes) === -1) {
var disabledSeconds = disabledTimeConfig.disabledSeconds(hour, minutes);
invalidTime = disabledSeconds.indexOf(seconds) !== -1;
} else {
invalidTime = true;
}
} else {
invalidTime = true;
}
}
return !invalidTime;
}
function isTimeValid(value, disabledTime) {
var disabledTimeConfig = getTimeConfig(value, disabledTime);
return isTimeValidByConfig(value, disabledTimeConfig);
}
function isAllowedDate(value, disabledDate, disabledTime) {
if (disabledDate) {
if (disabledDate(value)) {
return false;
}
}
if (disabledTime) {
if (!isTimeValid(value, disabledTime)) {
return false;
}
}
return true;
}
function formatDate(value, format) {
if (!value) {
return '';
}
if (Array.isArray(format)) {
format = format[0];
}
if (typeof format === 'function') {
var result = format(value);
if (typeof result === 'string') {
return result;
} else {
throw new Error('The function of format does not return a string');
}
}
return value.format(format);
}
/***/ }),
/***/ "./components/vc-calendar/src/util/toTime.js":
/*!***************************************************!*\
!*** ./components/vc-calendar/src/util/toTime.js ***!
\***************************************************/
/*! exports provided: goStartMonth, goEndMonth, goTime, includesTime */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "goStartMonth", function() { return goStartMonth; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "goEndMonth", function() { return goEndMonth; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "goTime", function() { return goTime; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "includesTime", function() { return includesTime; });
function goStartMonth(time) {
return time.clone().startOf('month');
}
function goEndMonth(time) {
return time.clone().endOf('month');
}
function goTime(time, direction, unit) {
return time.clone().add(direction, unit);
}
function includesTime() {
var timeList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
var time = arguments[1];
var unit = arguments[2];
return timeList.some(function (t) {
return t.isSame(time, unit);
});
}
/***/ }),
/***/ "./components/vc-calendar/src/year/YearPanel.jsx":
/*!*******************************************************!*\
!*** ./components/vc-calendar/src/year/YearPanel.jsx ***!
\*******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../_util/props-util */ "./components/_util/props-util.js");
var ROW = 4;
var COL = 3;
function noop() {}
function goYear(direction) {
var value = this.sValue.clone();
value.add(direction, 'year');
this.setState({
sValue: value
});
}
function chooseYear(year) {
var value = this.sValue.clone();
value.year(year);
value.month(this.sValue.month());
this.sValue = value;
this.__emit('select', value);
}
/* harmony default export */ __webpack_exports__["default"] = ({
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"]],
props: {
rootPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
renderFooter: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
},
data: function data() {
this.nextDecade = goYear.bind(this, 10);
this.previousDecade = goYear.bind(this, -10);
return {
sValue: this.value || this.defaultValue
};
},
watch: {
value: function value(val) {
this.sValue = val;
}
},
methods: {
years: function years() {
var value = this.sValue;
var currentYear = value.year();
var startYear = parseInt(currentYear / 10, 10) * 10;
var previousYear = startYear - 1;
var years = [];
var index = 0;
for (var rowIndex = 0; rowIndex < ROW; rowIndex++) {
years[rowIndex] = [];
for (var colIndex = 0; colIndex < COL; colIndex++) {
var year = previousYear + index;
var content = String(year);
years[rowIndex][colIndex] = {
content: content,
year: year,
title: content
};
index++;
}
}
return years;
}
},
render: function render() {
var _this = this;
var h = arguments[0];
var value = this.sValue,
locale = this.locale,
renderFooter = this.renderFooter,
$props = this.$props;
var decadePanelShow = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this).decadePanelShow || noop;
var years = this.years();
var currentYear = value.year();
var startYear = parseInt(currentYear / 10, 10) * 10;
var endYear = startYear + 9;
var prefixCls = this.rootPrefixCls + '-year-panel';
var disabledDate = $props.disabledDate;
var yeasEls = years.map(function (row, index) {
var tds = row.map(function (yearData) {
var _classNameMap;
var disabled = false;
if (disabledDate) {
var testValue = value.clone();
testValue.year(yearData.year);
disabled = disabledDate(testValue);
}
var classNameMap = (_classNameMap = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNameMap, prefixCls + '-cell', 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNameMap, prefixCls + '-cell-disabled', disabled), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNameMap, prefixCls + '-selected-cell', yearData.year === currentYear), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNameMap, prefixCls + '-last-decade-cell', yearData.year < startYear), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNameMap, prefixCls + '-next-decade-cell', yearData.year > endYear), _classNameMap);
var clickHandler = noop;
if (yearData.year < startYear) {
clickHandler = _this.previousDecade;
} else if (yearData.year > endYear) {
clickHandler = _this.nextDecade;
} else {
clickHandler = chooseYear.bind(_this, yearData.year);
}
return h(
'td',
{
attrs: {
role: 'gridcell',
title: yearData.title
},
key: yearData.content,
on: {
'click': disabled ? noop : clickHandler
},
'class': classNameMap
},
[h(
'a',
{ 'class': prefixCls + '-year' },
[yearData.content]
)]
);
});
return h(
'tr',
{ key: index, attrs: { role: 'row' }
},
[tds]
);
});
var footer = renderFooter && renderFooter('year');
return h(
'div',
{ 'class': prefixCls },
[h('div', [h(
'div',
{ 'class': prefixCls + '-header' },
[h('a', {
'class': prefixCls + '-prev-decade-btn',
attrs: { role: 'button',
title: locale.previousDecade
},
on: {
'click': this.previousDecade
}
}), h(
'a',
{
'class': prefixCls + '-decade-select',
attrs: { role: 'button',
title: locale.decadeSelect
},
on: {
'click': decadePanelShow
}
},
[h(
'span',
{ 'class': prefixCls + '-decade-select-content' },
[startYear, '-', endYear]
), h(
'span',
{ 'class': prefixCls + '-decade-select-arrow' },
['x']
)]
), h('a', {
'class': prefixCls + '-next-decade-btn',
attrs: { role: 'button',
title: locale.nextDecade
},
on: {
'click': this.nextDecade
}
})]
), h(
'div',
{ 'class': prefixCls + '-body' },
[h(
'table',
{ 'class': prefixCls + '-table', attrs: { cellSpacing: '0', role: 'grid' }
},
[h(
'tbody',
{ 'class': prefixCls + '-tbody' },
[yeasEls]
)]
)]
), footer && h(
'div',
{ 'class': prefixCls + '-footer' },
[footer]
)])]
);
}
});
/***/ }),
/***/ "./components/vc-cascader/Cascader.jsx":
/*!*********************************************!*\
!*** ./components/vc-cascader/Cascader.jsx ***!
\*********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _vc_trigger__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vc-trigger */ "./components/vc-trigger/index.js");
/* harmony import */ var _Menus__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Menus */ "./components/vc-cascader/Menus.jsx");
/* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/KeyCode */ "./components/_util/KeyCode.js");
/* harmony import */ var array_tree_filter__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! array-tree-filter */ "./node_modules/array-tree-filter/lib/index.js");
/* harmony import */ var array_tree_filter__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(array_tree_filter__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var shallow_equal_arrays__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! shallow-equal/arrays */ "./node_modules/shallow-equal/arrays/index.js");
/* harmony import */ var shallow_equal_arrays__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(shallow_equal_arrays__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
var BUILT_IN_PLACEMENTS = {
bottomLeft: {
points: ['tl', 'bl'],
offset: [0, 4],
overflow: {
adjustX: 1,
adjustY: 1
}
},
topLeft: {
points: ['bl', 'tl'],
offset: [0, -4],
overflow: {
adjustX: 1,
adjustY: 1
}
},
bottomRight: {
points: ['tr', 'br'],
offset: [0, 4],
overflow: {
adjustX: 1,
adjustY: 1
}
},
topRight: {
points: ['br', 'tr'],
offset: [0, -4],
overflow: {
adjustX: 1,
adjustY: 1
}
}
};
/* harmony default export */ __webpack_exports__["default"] = ({
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_10__["default"]],
model: {
prop: 'value',
event: 'change'
},
props: {
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].array,
defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].array,
options: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].array,
// onChange: PropTypes.func,
// onPopupVisibleChange: PropTypes.func,
popupVisible: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool.def(false),
transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def(''),
popupClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def(''),
popupStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object.def(function () {
return {};
}),
popupPlacement: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def('bottomLeft'),
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def('rc-cascader'),
dropdownMenuColumnStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
builtinPlacements: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object.def(BUILT_IN_PLACEMENTS),
loadData: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func,
changeOnSelect: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
// onKeyDown: PropTypes.func,
expandTrigger: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def('click'),
fieldNames: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object.def(function () {
return {
label: 'label',
value: 'value',
children: 'children'
};
}),
expandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
loadingIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func
},
data: function data() {
var initialValue = [];
var value = this.value,
defaultValue = this.defaultValue,
popupVisible = this.popupVisible;
if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["hasProp"])(this, 'value')) {
initialValue = value || [];
} else if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["hasProp"])(this, 'defaultValue')) {
initialValue = defaultValue || [];
}
// warning(!('filedNames' in props),
// '`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead.');
return {
sPopupVisible: popupVisible,
sActiveValue: initialValue,
sValue: initialValue
};
},
watch: {
value: function value(val, oldValue) {
if (!shallow_equal_arrays__WEBPACK_IMPORTED_MODULE_9___default()(val, oldValue)) {
var newValues = {
sValue: val || []
};
// allow activeValue diff from value
// https://github.com/ant-design/ant-design/issues/2767
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["hasProp"])(this, 'loadData')) {
newValues.sActiveValue = val || [];
}
this.setState(newValues);
}
},
popupVisible: function popupVisible(val) {
this.setState({
sPopupVisible: val
});
}
},
methods: {
getPopupDOMNode: function getPopupDOMNode() {
return this.$refs.trigger.getPopupDomNode();
},
getFieldName: function getFieldName(name) {
var defaultFieldNames = this.defaultFieldNames,
fieldNames = this.fieldNames;
return fieldNames[name] || defaultFieldNames[name];
},
getFieldNames: function getFieldNames() {
return this.fieldNames;
},
getCurrentLevelOptions: function getCurrentLevelOptions() {
var _this = this;
var _options = this.options,
options = _options === undefined ? [] : _options,
_sActiveValue = this.sActiveValue,
sActiveValue = _sActiveValue === undefined ? [] : _sActiveValue;
var result = array_tree_filter__WEBPACK_IMPORTED_MODULE_8___default()(options, function (o, level) {
return o[_this.getFieldName('value')] === sActiveValue[level];
}, { childrenKeyName: this.getFieldName('children') });
if (result[result.length - 2]) {
return result[result.length - 2][this.getFieldName('children')];
}
return [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(options)).filter(function (o) {
return !o.disabled;
});
},
getActiveOptions: function getActiveOptions(activeValue) {
var _this2 = this;
return array_tree_filter__WEBPACK_IMPORTED_MODULE_8___default()(this.options || [], function (o, level) {
return o[_this2.getFieldName('value')] === activeValue[level];
}, { childrenKeyName: this.getFieldName('children') });
},
setPopupVisible: function setPopupVisible(popupVisible) {
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["hasProp"])(this, 'popupVisible')) {
this.setState({ sPopupVisible: popupVisible });
}
// sync activeValue with value when panel open
if (popupVisible && !this.sPopupVisible) {
this.setState({
sActiveValue: this.sValue
});
}
this.__emit('popupVisibleChange', popupVisible);
},
handleChange: function handleChange(options, setProps, e) {
var _this3 = this;
if (e.type !== 'keydown' || e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].ENTER) {
this.__emit('change', options.map(function (o) {
return o[_this3.getFieldName('value')];
}), options);
this.setPopupVisible(setProps.visible);
}
},
handlePopupVisibleChange: function handlePopupVisibleChange(popupVisible) {
this.setPopupVisible(popupVisible);
},
handleMenuSelect: function handleMenuSelect(targetOption, menuIndex, e) {
// Keep focused state for keyboard support
var triggerNode = this.$refs.trigger.getRootDomNode();
if (triggerNode && triggerNode.focus) {
triggerNode.focus();
}
var changeOnSelect = this.changeOnSelect,
loadData = this.loadData,
expandTrigger = this.expandTrigger;
if (!targetOption || targetOption.disabled) {
return;
}
var sActiveValue = this.sActiveValue;
sActiveValue = sActiveValue.slice(0, menuIndex + 1);
sActiveValue[menuIndex] = targetOption[this.getFieldName('value')];
var activeOptions = this.getActiveOptions(sActiveValue);
if (targetOption.isLeaf === false && !targetOption[this.getFieldName('children')] && loadData) {
if (changeOnSelect) {
this.handleChange(activeOptions, { visible: true }, e);
}
this.setState({ sActiveValue: sActiveValue });
loadData(activeOptions);
return;
}
var newState = {};
if (!targetOption[this.getFieldName('children')] || !targetOption[this.getFieldName('children')].length) {
this.handleChange(activeOptions, { visible: false }, e);
// set value to activeValue when select leaf option
newState.sValue = sActiveValue;
// add e.type judgement to prevent `onChange` being triggered by mouseEnter
} else if (changeOnSelect && (e.type === 'click' || e.type === 'keydown')) {
if (expandTrigger === 'hover') {
this.handleChange(activeOptions, { visible: false }, e);
} else {
this.handleChange(activeOptions, { visible: true }, e);
}
// set value to activeValue on every select
newState.sValue = sActiveValue;
}
newState.sActiveValue = sActiveValue;
// not change the value by keyboard
if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["hasProp"])(this, 'value') || e.type === 'keydown' && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].ENTER) {
delete newState.sValue;
}
this.setState(newState);
},
handleItemDoubleClick: function handleItemDoubleClick() {
var changeOnSelect = this.$props.changeOnSelect;
if (changeOnSelect) {
this.setPopupVisible(false);
}
},
handleKeyDown: function handleKeyDown(e) {
var _this4 = this;
var $slots = this.$slots;
var children = $slots['default'] && $slots['default'][0];
// https://github.com/ant-design/ant-design/issues/6717
// Don't bind keyboard support when children specify the onKeyDown
if (children) {
var keydown = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getEvents"])(children).keydown;
if (keydown) {
keydown(e);
return;
}
}
var activeValue = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(this.sActiveValue));
var currentLevel = activeValue.length - 1 < 0 ? 0 : activeValue.length - 1;
var currentOptions = this.getCurrentLevelOptions();
var currentIndex = currentOptions.map(function (o) {
return o[_this4.getFieldName('value')];
}).indexOf(activeValue[currentLevel]);
if (e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].DOWN && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].UP && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].LEFT && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].RIGHT && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].ENTER && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].SPACE && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].BACKSPACE && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].ESC && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].TAB) {
return;
}
// Press any keys above to reopen menu
if (!this.sPopupVisible && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].BACKSPACE && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].LEFT && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].RIGHT && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].ESC && e.keyCode !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].TAB) {
this.setPopupVisible(true);
return;
}
if (e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].DOWN || e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].UP) {
e.preventDefault();
var nextIndex = currentIndex;
if (nextIndex !== -1) {
if (e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].DOWN) {
nextIndex += 1;
nextIndex = nextIndex >= currentOptions.length ? 0 : nextIndex;
} else {
nextIndex -= 1;
nextIndex = nextIndex < 0 ? currentOptions.length - 1 : nextIndex;
}
} else {
nextIndex = 0;
}
activeValue[currentLevel] = currentOptions[nextIndex][this.getFieldName('value')];
} else if (e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].LEFT || e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].BACKSPACE) {
e.preventDefault();
activeValue.splice(activeValue.length - 1, 1);
} else if (e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].RIGHT) {
e.preventDefault();
if (currentOptions[currentIndex] && currentOptions[currentIndex][this.getFieldName('children')]) {
activeValue.push(currentOptions[currentIndex][this.getFieldName('children')][0][this.getFieldName('value')]);
}
} else if (e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].ESC || e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].TAB) {
this.setPopupVisible(false);
return;
}
if (!activeValue || activeValue.length === 0) {
this.setPopupVisible(false);
}
var activeOptions = this.getActiveOptions(activeValue);
var targetOption = activeOptions[activeOptions.length - 1];
this.handleMenuSelect(targetOption, activeOptions.length - 1, e);
this.__emit('keydown', e);
}
},
render: function render() {
var h = arguments[0];
var $props = this.$props,
sActiveValue = this.sActiveValue,
handleMenuSelect = this.handleMenuSelect,
sPopupVisible = this.sPopupVisible,
handlePopupVisibleChange = this.handlePopupVisibleChange,
handleKeyDown = this.handleKeyDown;
var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this);
var prefixCls = $props.prefixCls,
transitionName = $props.transitionName,
popupClassName = $props.popupClassName,
_$props$options = $props.options,
options = _$props$options === undefined ? [] : _$props$options,
disabled = $props.disabled,
builtinPlacements = $props.builtinPlacements,
popupPlacement = $props.popupPlacement,
restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()($props, ['prefixCls', 'transitionName', 'popupClassName', 'options', 'disabled', 'builtinPlacements', 'popupPlacement']);
// Did not show popup when there is no options
var menus = h('div');
var emptyMenuClassName = '';
if (options && options.length > 0) {
var loadingIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'loadingIcon');
var expandIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'expandIcon') || '>';
var menusProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, $props, {
fieldNames: this.getFieldNames(),
defaultFieldNames: this.defaultFieldNames,
activeValue: sActiveValue,
visible: sPopupVisible,
loadingIcon: loadingIcon,
expandIcon: expandIcon
}),
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, listeners, {
select: handleMenuSelect,
itemDoubleClick: this.handleItemDoubleClick
})
};
menus = h(_Menus__WEBPACK_IMPORTED_MODULE_6__["default"], menusProps);
} else {
emptyMenuClassName = ' ' + prefixCls + '-menus-empty';
}
var triggerProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, restProps, {
disabled: disabled,
popupPlacement: popupPlacement,
builtinPlacements: builtinPlacements,
popupTransitionName: transitionName,
action: disabled ? [] : ['click'],
popupVisible: disabled ? false : sPopupVisible,
prefixCls: prefixCls + '-menus',
popupClassName: popupClassName + emptyMenuClassName
}),
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, listeners, {
popupVisibleChange: handlePopupVisibleChange
}),
ref: 'trigger'
};
var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getSlot"])(this, 'default')[0];
return h(
_vc_trigger__WEBPACK_IMPORTED_MODULE_5__["default"],
triggerProps,
[children && Object(_util_vnode__WEBPACK_IMPORTED_MODULE_11__["cloneElement"])(children, {
on: {
keydown: handleKeyDown
},
attrs: {
tabIndex: disabled ? undefined : 0
}
}), h(
'template',
{ slot: 'popup' },
[menus]
)]
);
}
});
/***/ }),
/***/ "./components/vc-cascader/Menus.jsx":
/*!******************************************!*\
!*** ./components/vc-cascader/Menus.jsx ***!
\******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var array_tree_filter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! array-tree-filter */ "./node_modules/array-tree-filter/lib/index.js");
/* harmony import */ var array_tree_filter__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(array_tree_filter__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'CascaderMenus',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
props: {
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array.def([]),
activeValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array.def([]),
options: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string.def('rc-cascader-menus'),
expandTrigger: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string.def('click'),
// onSelect: PropTypes.func,
visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool.def(false),
dropdownMenuColumnStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
defaultFieldNames: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
fieldNames: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
expandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
loadingIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
},
data: function data() {
this.menuItems = {};
return {};
},
watch: {
visible: function visible(val) {
var _this = this;
if (val) {
this.$nextTick(function () {
_this.scrollActiveItemToView();
});
}
}
},
mounted: function mounted() {
var _this2 = this;
this.$nextTick(function () {
_this2.scrollActiveItemToView();
});
},
methods: {
getFieldName: function getFieldName(name) {
var _$props = this.$props,
fieldNames = _$props.fieldNames,
defaultFieldNames = _$props.defaultFieldNames;
// 防止只设置单个属性的名字
return fieldNames[name] || defaultFieldNames[name];
},
getOption: function getOption(option, menuIndex) {
var _this3 = this;
var h = this.$createElement;
var prefixCls = this.prefixCls,
expandTrigger = this.expandTrigger;
var loadingIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_0__["getComponentFromProp"])(this, 'loadingIcon');
var expandIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_0__["getComponentFromProp"])(this, 'expandIcon');
var onSelect = function onSelect(e) {
_this3.__emit('select', option, menuIndex, e);
};
var onItemDoubleClick = function onItemDoubleClick(e) {
_this3.__emit('itemDoubleClick', option, menuIndex, e);
};
var key = option[this.getFieldName('value')];
var expandProps = {
attrs: {
role: 'menuitem'
},
on: {
click: onSelect,
dblclick: onItemDoubleClick,
mousedown: function mousedown(e) {
return e.preventDefault();
}
},
key: Array.isArray(key) ? key.join('__ant__') : key
};
var menuItemCls = prefixCls + '-menu-item';
var expandIconNode = null;
var hasChildren = option[this.getFieldName('children')] && option[this.getFieldName('children')].length > 0;
if (hasChildren || option.isLeaf === false) {
menuItemCls += ' ' + prefixCls + '-menu-item-expand';
if (!option.loading) {
expandIconNode = h(
'span',
{ 'class': prefixCls + '-menu-item-expand-icon' },
[expandIcon]
);
}
}
if (expandTrigger === 'hover' && (hasChildren || option.isLeaf === false)) {
expandProps.on = {
mouseenter: this.delayOnSelect.bind(this, onSelect),
mouseleave: this.delayOnSelect.bind(this),
click: onSelect
};
}
if (this.isActiveOption(option, menuIndex)) {
menuItemCls += ' ' + prefixCls + '-menu-item-active';
expandProps.ref = this.getMenuItemRef(menuIndex);
}
if (option.disabled) {
menuItemCls += ' ' + prefixCls + '-menu-item-disabled';
}
var loadingIconNode = null;
if (option.loading) {
menuItemCls += ' ' + prefixCls + '-menu-item-loading';
loadingIconNode = loadingIcon || null;
}
var title = '';
if (option.title) {
title = option.title;
} else if (typeof option[this.getFieldName('label')] === 'string') {
title = option[this.getFieldName('label')];
}
expandProps.attrs.title = title;
expandProps['class'] = menuItemCls;
return h(
'li',
expandProps,
[option[this.getFieldName('label')], expandIconNode, loadingIconNode]
);
},
getActiveOptions: function getActiveOptions(values) {
var _this4 = this;
var activeValue = values || this.activeValue;
var options = this.options;
return array_tree_filter__WEBPACK_IMPORTED_MODULE_2___default()(options, function (o, level) {
return o[_this4.getFieldName('value')] === activeValue[level];
}, { childrenKeyName: this.getFieldName('children') });
},
getShowOptions: function getShowOptions() {
var _this5 = this;
var options = this.options;
var result = this.getActiveOptions().map(function (activeOption) {
return activeOption[_this5.getFieldName('children')];
}).filter(function (activeOption) {
return !!activeOption;
});
result.unshift(options);
return result;
},
delayOnSelect: function delayOnSelect(onSelect) {
var _this6 = this;
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
args[_key - 1] = arguments[_key];
}
if (this.delayTimer) {
clearTimeout(this.delayTimer);
this.delayTimer = null;
}
if (typeof onSelect === 'function') {
this.delayTimer = setTimeout(function () {
onSelect(args);
_this6.delayTimer = null;
}, 150);
}
},
scrollActiveItemToView: function scrollActiveItemToView() {
// scroll into view
var optionsLength = this.getShowOptions().length;
for (var i = 0; i < optionsLength; i++) {
var itemComponent = this.$refs['menuItems_' + i];
if (itemComponent) {
var target = itemComponent;
target.parentNode.scrollTop = target.offsetTop;
}
}
},
isActiveOption: function isActiveOption(option, menuIndex) {
var _activeValue = this.activeValue,
activeValue = _activeValue === undefined ? [] : _activeValue;
return activeValue[menuIndex] === option[this.getFieldName('value')];
},
getMenuItemRef: function getMenuItemRef(index) {
return 'menuItems_' + index;
}
},
render: function render() {
var _this7 = this;
var h = arguments[0];
var prefixCls = this.prefixCls,
dropdownMenuColumnStyle = this.dropdownMenuColumnStyle;
return h('div', [this.getShowOptions().map(function (options, menuIndex) {
return h(
'ul',
{ 'class': prefixCls + '-menu', key: menuIndex, style: dropdownMenuColumnStyle },
[options.map(function (option) {
return _this7.getOption(option, menuIndex);
})]
);
})]);
}
});
/***/ }),
/***/ "./components/vc-cascader/index.js":
/*!*****************************************!*\
!*** ./components/vc-cascader/index.js ***!
\*****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Cascader__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Cascader */ "./components/vc-cascader/Cascader.jsx");
// based on rc-cascader 0.17.4
/* harmony default export */ __webpack_exports__["default"] = (_Cascader__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/vc-checkbox/index.js":
/*!*****************************************!*\
!*** ./components/vc-checkbox/index.js ***!
\*****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _src___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./src/ */ "./components/vc-checkbox/src/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _src___WEBPACK_IMPORTED_MODULE_0__["default"]; });
// based on rc-checkbox 2.1.7
/***/ }),
/***/ "./components/vc-checkbox/src/Checkbox.jsx":
/*!*************************************************!*\
!*** ./components/vc-checkbox/src/Checkbox.jsx ***!
\*************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'Checkbox',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__["default"]],
inheritAttrs: false,
model: {
prop: 'checked',
event: 'change'
},
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["initDefaultProps"])({
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
name: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
id: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
type: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
defaultChecked: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool]),
checked: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool]),
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
// onFocus: PropTypes.func,
// onBlur: PropTypes.func,
// onChange: PropTypes.func,
// onClick: PropTypes.func,
tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number]),
readOnly: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any
}, {
prefixCls: 'rc-checkbox',
type: 'checkbox',
defaultChecked: false
}),
data: function data() {
var checked = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'checked') ? this.checked : this.defaultChecked;
return {
sChecked: checked
};
},
watch: {
checked: function checked(val) {
this.sChecked = val;
}
},
mounted: function mounted() {
var _this = this;
this.$nextTick(function () {
if (_this.autoFocus) {
_this.$refs.input && _this.$refs.input.focus();
}
});
},
methods: {
focus: function focus() {
this.$refs.input.focus();
},
blur: function blur() {
this.$refs.input.blur();
},
handleChange: function handleChange(e) {
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(this);
if (props.disabled) {
return;
}
if (!('checked' in props)) {
this.sChecked = e.target.checked;
}
this.$forceUpdate(); // change前维持现有状态
e.shiftKey = this.eventShiftKey;
this.__emit('change', {
target: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, props, {
checked: e.target.checked
}),
stopPropagation: function stopPropagation() {
e.stopPropagation();
},
preventDefault: function preventDefault() {
e.preventDefault();
},
nativeEvent: e
});
this.eventShiftKey = false;
// fix https://github.com/vueComponent/ant-design-vue/issues/3047
if ('checked' in props) {
this.$refs.input.checked = props.checked;
}
},
onClick: function onClick(e) {
this.__emit('click', e);
// onChange没能获取到shiftKey使用onClick hack
this.eventShiftKey = e.shiftKey;
}
},
render: function render() {
var _classNames;
var h = arguments[0];
var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(this),
prefixCls = _getOptionProps.prefixCls,
name = _getOptionProps.name,
id = _getOptionProps.id,
type = _getOptionProps.type,
disabled = _getOptionProps.disabled,
readOnly = _getOptionProps.readOnly,
tabIndex = _getOptionProps.tabIndex,
autoFocus = _getOptionProps.autoFocus,
value = _getOptionProps.value,
others = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(_getOptionProps, ['prefixCls', 'name', 'id', 'type', 'disabled', 'readOnly', 'tabIndex', 'autoFocus', 'value']);
var attrs = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getAttrs"])(this);
var globalProps = Object.keys(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, others, attrs)).reduce(function (prev, key) {
if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {
prev[key] = others[key];
}
return prev;
}, {});
var sChecked = this.sChecked;
var classString = classnames__WEBPACK_IMPORTED_MODULE_5___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-checked', sChecked), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-disabled', disabled), _classNames));
return h(
'span',
{ 'class': classString },
[h('input', babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
attrs: {
name: name,
id: id,
type: type,
readOnly: readOnly,
disabled: disabled,
tabIndex: tabIndex,
autoFocus: autoFocus
},
'class': prefixCls + '-input',
domProps: {
'checked': !!sChecked,
'value': value
},
ref: 'input'
}, {
attrs: globalProps,
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this), {
change: this.handleChange,
click: this.onClick
})
}])), h('span', { 'class': prefixCls + '-inner' })]
);
}
});
/***/ }),
/***/ "./components/vc-checkbox/src/index.js":
/*!*********************************************!*\
!*** ./components/vc-checkbox/src/index.js ***!
\*********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Checkbox__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Checkbox */ "./components/vc-checkbox/src/Checkbox.jsx");
/* harmony default export */ __webpack_exports__["default"] = (_Checkbox__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/vc-collapse/index.js":
/*!*****************************************!*\
!*** ./components/vc-collapse/index.js ***!
\*****************************************/
/*! exports provided: collapseProps, panelProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _src_Panel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./src/Panel */ "./components/vc-collapse/src/Panel.jsx");
/* harmony import */ var _src_Collapse__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./src/Collapse */ "./components/vc-collapse/src/Collapse.jsx");
/* harmony import */ var _src_commonProps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./src/commonProps */ "./components/vc-collapse/src/commonProps.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "collapseProps", function() { return _src_commonProps__WEBPACK_IMPORTED_MODULE_2__["collapseProps"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "panelProps", function() { return _src_commonProps__WEBPACK_IMPORTED_MODULE_2__["panelProps"]; });
// based on rc-collapse 1.11.8
_src_Collapse__WEBPACK_IMPORTED_MODULE_1__["default"].Panel = _src_Panel__WEBPACK_IMPORTED_MODULE_0__["default"];
/* harmony default export */ __webpack_exports__["default"] = (_src_Collapse__WEBPACK_IMPORTED_MODULE_1__["default"]);
/***/ }),
/***/ "./components/vc-collapse/src/Collapse.jsx":
/*!*************************************************!*\
!*** ./components/vc-collapse/src/Collapse.jsx ***!
\*************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _openAnimationFactory__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./openAnimationFactory */ "./components/vc-collapse/src/openAnimationFactory.js");
/* harmony import */ var _commonProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commonProps */ "./components/vc-collapse/src/commonProps.js");
function _toArray(activeKey) {
var currentActiveKey = activeKey;
if (!Array.isArray(currentActiveKey)) {
currentActiveKey = currentActiveKey ? [currentActiveKey] : [];
}
return currentActiveKey.map(function (key) {
return String(key);
});
}
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'Collapse',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"]],
model: {
prop: 'activeKey',
event: 'change'
},
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["initDefaultProps"])(Object(_commonProps__WEBPACK_IMPORTED_MODULE_6__["collapseProps"])(), {
prefixCls: 'rc-collapse',
accordion: false,
destroyInactivePanel: false
}),
data: function data() {
var _$props = this.$props,
activeKey = _$props.activeKey,
defaultActiveKey = _$props.defaultActiveKey,
openAnimation = _$props.openAnimation,
prefixCls = _$props.prefixCls;
var currentActiveKey = defaultActiveKey;
if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["hasProp"])(this, 'activeKey')) {
currentActiveKey = activeKey;
}
var currentOpenAnimations = openAnimation || Object(_openAnimationFactory__WEBPACK_IMPORTED_MODULE_5__["default"])(prefixCls);
return {
currentOpenAnimations: currentOpenAnimations,
stateActiveKey: _toArray(currentActiveKey)
};
},
watch: {
activeKey: function activeKey(val) {
this.setState({
stateActiveKey: _toArray(val)
});
},
openAnimation: function openAnimation(val) {
this.setState({
currentOpenAnimations: val
});
}
},
methods: {
onClickItem: function onClickItem(key) {
var activeKey = this.stateActiveKey;
if (this.accordion) {
activeKey = activeKey[0] === key ? [] : [key];
} else {
activeKey = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(activeKey));
var index = activeKey.indexOf(key);
var isActive = index > -1;
if (isActive) {
// remove active state
activeKey.splice(index, 1);
} else {
activeKey.push(key);
}
}
this.setActiveKey(activeKey);
},
getNewChild: function getNewChild(child, index) {
if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["isEmptyElement"])(child)) return;
var activeKey = this.stateActiveKey;
var _$props2 = this.$props,
prefixCls = _$props2.prefixCls,
accordion = _$props2.accordion,
destroyInactivePanel = _$props2.destroyInactivePanel,
expandIcon = _$props2.expandIcon;
// If there is no key provide, use the panel order as default key
var key = child.key || String(index);
var _getPropsData = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getPropsData"])(child),
header = _getPropsData.header,
headerClass = _getPropsData.headerClass,
disabled = _getPropsData.disabled;
var isActive = false;
if (accordion) {
isActive = activeKey[0] === key;
} else {
isActive = activeKey.indexOf(key) > -1;
}
var panelEvents = {};
if (!disabled && disabled !== '') {
panelEvents = {
itemClick: this.onClickItem
};
}
var props = {
key: key,
props: {
panelKey: key,
header: header,
headerClass: headerClass,
isActive: isActive,
prefixCls: prefixCls,
destroyInactivePanel: destroyInactivePanel,
openAnimation: this.currentOpenAnimations,
accordion: accordion,
expandIcon: expandIcon
},
on: panelEvents
};
return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_4__["cloneElement"])(child, props);
},
getItems: function getItems() {
var _this = this;
var newChildren = [];
this.$slots['default'] && this.$slots['default'].forEach(function (child, index) {
newChildren.push(_this.getNewChild(child, index));
});
return newChildren;
},
setActiveKey: function setActiveKey(activeKey) {
this.setState({ stateActiveKey: activeKey });
this.$emit('change', this.accordion ? activeKey[0] : activeKey);
}
},
render: function render() {
var h = arguments[0];
var _$props3 = this.$props,
prefixCls = _$props3.prefixCls,
accordion = _$props3.accordion;
var collapseClassName = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, prefixCls, true);
return h(
'div',
{ 'class': collapseClassName, attrs: { role: accordion ? 'tablist' : null }
},
[this.getItems()]
);
}
});
/***/ }),
/***/ "./components/vc-collapse/src/Panel.jsx":
/*!**********************************************!*\
!*** ./components/vc-collapse/src/Panel.jsx ***!
\**********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _PanelContent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./PanelContent */ "./components/vc-collapse/src/PanelContent.jsx");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _commonProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./commonProps */ "./components/vc-collapse/src/commonProps.js");
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'Panel',
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["initDefaultProps"])(Object(_commonProps__WEBPACK_IMPORTED_MODULE_4__["panelProps"])(), {
showArrow: true,
isActive: false,
destroyInactivePanel: false,
headerClass: '',
forceRender: false
}),
methods: {
handleItemClick: function handleItemClick() {
this.$emit('itemClick', this.panelKey);
},
handleKeyPress: function handleKeyPress(e) {
if (e.key === 'Enter' || e.keyCode === 13 || e.which === 13) {
this.handleItemClick();
}
}
},
render: function render() {
var _headerCls, _itemCls;
var h = arguments[0];
var _$props = this.$props,
prefixCls = _$props.prefixCls,
headerClass = _$props.headerClass,
isActive = _$props.isActive,
showArrow = _$props.showArrow,
destroyInactivePanel = _$props.destroyInactivePanel,
disabled = _$props.disabled,
openAnimation = _$props.openAnimation,
accordion = _$props.accordion,
forceRender = _$props.forceRender,
expandIcon = _$props.expandIcon,
extra = _$props.extra;
var $slots = this.$slots;
var transitionProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
appear: true,
css: false
}),
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, openAnimation)
};
var headerCls = (_headerCls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_headerCls, prefixCls + '-header', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_headerCls, headerClass, headerClass), _headerCls);
var header = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'header');
var itemCls = (_itemCls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_itemCls, prefixCls + '-item', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_itemCls, prefixCls + '-item-active', isActive), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_itemCls, prefixCls + '-item-disabled', disabled), _itemCls);
var icon = h('i', { 'class': 'arrow' });
if (showArrow && typeof expandIcon === 'function') {
icon = expandIcon(this.$props);
}
return h(
'div',
{ 'class': itemCls, attrs: { role: 'tablist' }
},
[h(
'div',
{
'class': headerCls,
on: {
'click': this.handleItemClick.bind(this),
'keypress': this.handleKeyPress
},
attrs: {
role: accordion ? 'tab' : 'button',
tabIndex: disabled ? -1 : 0,
'aria-expanded': isActive
}
},
[showArrow && icon, header, extra && h(
'div',
{ 'class': prefixCls + '-extra' },
[extra]
)]
), h(
'transition',
transitionProps,
[h(
_PanelContent__WEBPACK_IMPORTED_MODULE_2__["default"],
{
directives: [{
name: 'show',
value: isActive
}],
attrs: {
prefixCls: prefixCls,
isActive: isActive,
destroyInactivePanel: destroyInactivePanel,
forceRender: forceRender,
role: accordion ? 'tabpanel' : null
}
},
[$slots['default']]
)]
)]
);
}
});
/***/ }),
/***/ "./components/vc-collapse/src/PanelContent.jsx":
/*!*****************************************************!*\
!*** ./components/vc-collapse/src/PanelContent.jsx ***!
\*****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'PanelContent',
props: {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
isActive: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
destroyInactivePanel: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
forceRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
role: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
},
data: function data() {
return {
_isActive: undefined
};
},
render: function render() {
var _contentCls;
var h = arguments[0];
this._isActive = this.forceRender || this._isActive || this.isActive;
if (!this._isActive) {
return null;
}
var _$props = this.$props,
prefixCls = _$props.prefixCls,
isActive = _$props.isActive,
destroyInactivePanel = _$props.destroyInactivePanel,
forceRender = _$props.forceRender,
role = _$props.role;
var $slots = this.$slots;
var contentCls = (_contentCls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_contentCls, prefixCls + '-content', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_contentCls, prefixCls + '-content-active', isActive), _contentCls);
var child = !forceRender && !isActive && destroyInactivePanel ? null : h(
'div',
{ 'class': prefixCls + '-content-box' },
[$slots['default']]
);
return h(
'div',
{ 'class': contentCls, attrs: { role: role }
},
[child]
);
}
});
/***/ }),
/***/ "./components/vc-collapse/src/commonProps.js":
/*!***************************************************!*\
!*** ./components/vc-collapse/src/commonProps.js ***!
\***************************************************/
/*! exports provided: collapseProps, panelProps */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "collapseProps", function() { return collapseProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "panelProps", function() { return panelProps; });
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
var collapseProps = function collapseProps() {
return {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
activeKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]))]),
defaultActiveKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]))]),
accordion: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
destroyInactivePanel: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
bordered: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
expandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
openAnimation: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
expandIconPosition: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['left', 'right'])
};
};
var panelProps = function panelProps() {
return {
openAnimation: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
header: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].node]),
headerClass: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
showArrow: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
isActive: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
destroyInactivePanel: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
accordion: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
forceRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
expandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
extra: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
panelKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any
};
};
/***/ }),
/***/ "./components/vc-collapse/src/openAnimationFactory.js":
/*!************************************************************!*\
!*** ./components/vc-collapse/src/openAnimationFactory.js ***!
\************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _util_css_animation__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/css-animation */ "./components/_util/css-animation/index.js");
function animate(node, show, transitionName, done) {
var height = void 0;
return Object(_util_css_animation__WEBPACK_IMPORTED_MODULE_0__["default"])(node, transitionName, {
start: function start() {
if (!show) {
node.style.height = node.offsetHeight + 'px';
} else {
height = node.offsetHeight;
node.style.height = 0;
}
},
active: function active() {
node.style.height = (show ? height : 0) + 'px';
},
end: function end() {
node.style.height = '';
done();
}
});
}
function animation(prefixCls) {
return {
enter: function enter(node, done) {
return animate(node, true, prefixCls + '-anim', done);
},
leave: function leave(node, done) {
return animate(node, false, prefixCls + '-anim', done);
}
};
}
/* harmony default export */ __webpack_exports__["default"] = (animation);
/***/ }),
/***/ "./components/vc-dialog/Dialog.jsx":
/*!*****************************************!*\
!*** ./components/vc-dialog/Dialog.jsx ***!
\*****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/KeyCode */ "./components/_util/KeyCode.js");
/* harmony import */ var _vc_util_Dom_contains__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../vc-util/Dom/contains */ "./components/vc-util/Dom/contains.js");
/* harmony import */ var _LazyRenderBox__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./LazyRenderBox */ "./components/vc-dialog/LazyRenderBox.jsx");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_getTransitionProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/getTransitionProps */ "./components/_util/getTransitionProps.js");
/* harmony import */ var _util_switchScrollingEffect__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/switchScrollingEffect */ "./components/_util/switchScrollingEffect.js");
/* harmony import */ var _IDialogPropTypes__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./IDialogPropTypes */ "./components/vc-dialog/IDialogPropTypes.js");
var IDialogPropTypes = Object(_IDialogPropTypes__WEBPACK_IMPORTED_MODULE_10__["default"])();
var uuid = 0;
function noop() {}
function getScroll(w, top) {
var ret = w['page' + (top ? 'Y' : 'X') + 'Offset'];
var method = 'scroll' + (top ? 'Top' : 'Left');
if (typeof ret !== 'number') {
var d = w.document;
ret = d.documentElement[method];
if (typeof ret !== 'number') {
ret = d.body[method];
}
}
return ret;
}
function setTransformOrigin(node, value) {
var style = node.style;
['Webkit', 'Moz', 'Ms', 'ms'].forEach(function (prefix) {
style[prefix + 'TransformOrigin'] = value;
});
style['transformOrigin'] = value;
}
function offset(el) {
var rect = el.getBoundingClientRect();
var pos = {
left: rect.left,
top: rect.top
};
var doc = el.ownerDocument;
var w = doc.defaultView || doc.parentWindow;
pos.left += getScroll(w);
pos.top += getScroll(w, true);
return pos;
}
var cacheOverflow = {};
/* harmony default export */ __webpack_exports__["default"] = ({
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__["default"]],
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["initDefaultProps"])(IDialogPropTypes, {
mask: true,
visible: false,
keyboard: true,
closable: true,
maskClosable: true,
destroyOnClose: false,
prefixCls: 'rc-dialog',
getOpenCount: function getOpenCount() {
return null;
},
focusTriggerAfterClose: true
}),
data: function data() {
return {
destroyPopup: false
};
},
provide: function provide() {
return {
dialogContext: this
};
},
watch: {
visible: function visible(val) {
var _this = this;
if (val) {
this.destroyPopup = false;
}
this.$nextTick(function () {
_this.updatedCallback(!val);
});
}
},
beforeMount: function beforeMount() {
this.inTransition = false;
this.titleId = 'rcDialogTitle' + uuid++;
},
mounted: function mounted() {
var _this2 = this;
this.$nextTick(function () {
_this2.updatedCallback(false);
// if forceRender is true, set element style display to be none;
if ((_this2.forceRender || _this2.getContainer === false && !_this2.visible) && _this2.$refs.wrap) {
_this2.$refs.wrap.style.display = 'none';
}
});
},
beforeDestroy: function beforeDestroy() {
var visible = this.visible,
getOpenCount = this.getOpenCount;
if ((visible || this.inTransition) && !getOpenCount()) {
this.switchScrollingEffect();
}
clearTimeout(this.timeoutId);
},
methods: {
// 对外暴露的 api 不要更改名称或删除
getDialogWrap: function getDialogWrap() {
return this.$refs.wrap;
},
updatedCallback: function updatedCallback(visible) {
var mousePosition = this.mousePosition;
var mask = this.mask,
focusTriggerAfterClose = this.focusTriggerAfterClose;
if (this.visible) {
// first show
if (!visible) {
this.openTime = Date.now();
// this.lastOutSideFocusNode = document.activeElement
this.switchScrollingEffect();
// this.$refs.wrap.focus()
this.tryFocus();
var dialogNode = this.$refs.dialog.$el;
if (mousePosition) {
var elOffset = offset(dialogNode);
setTransformOrigin(dialogNode, mousePosition.x - elOffset.left + 'px ' + (mousePosition.y - elOffset.top) + 'px');
} else {
setTransformOrigin(dialogNode, '');
}
}
} else if (visible) {
this.inTransition = true;
if (mask && this.lastOutSideFocusNode && focusTriggerAfterClose) {
try {
this.lastOutSideFocusNode.focus();
} catch (e) {
this.lastOutSideFocusNode = null;
}
this.lastOutSideFocusNode = null;
}
}
},
tryFocus: function tryFocus() {
if (!Object(_vc_util_Dom_contains__WEBPACK_IMPORTED_MODULE_5__["default"])(this.$refs.wrap, document.activeElement)) {
this.lastOutSideFocusNode = document.activeElement;
this.$refs.sentinelStart.focus();
}
},
onAnimateLeave: function onAnimateLeave() {
var afterClose = this.afterClose,
destroyOnClose = this.destroyOnClose;
// need demo?
// https://github.com/react-component/dialog/pull/28
if (this.$refs.wrap) {
this.$refs.wrap.style.display = 'none';
}
if (destroyOnClose) {
this.destroyPopup = true;
}
this.inTransition = false;
this.switchScrollingEffect();
if (afterClose) {
afterClose();
}
},
onDialogMouseDown: function onDialogMouseDown() {
this.dialogMouseDown = true;
},
onMaskMouseUp: function onMaskMouseUp() {
var _this3 = this;
if (this.dialogMouseDown) {
this.timeoutId = setTimeout(function () {
_this3.dialogMouseDown = false;
}, 0);
}
},
onMaskClick: function onMaskClick(e) {
// android trigger click on open (fastclick??)
if (Date.now() - this.openTime < 300) {
return;
}
if (e.target === e.currentTarget && !this.dialogMouseDown) {
this.close(e);
}
},
onKeydown: function onKeydown(e) {
var props = this.$props;
if (props.keyboard && e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__["default"].ESC) {
e.stopPropagation();
this.close(e);
return;
}
// keep focus inside dialog
if (props.visible) {
if (e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__["default"].TAB) {
var activeElement = document.activeElement;
var sentinelStart = this.$refs.sentinelStart;
if (e.shiftKey) {
if (activeElement === sentinelStart) {
this.$refs.sentinelEnd.focus();
}
} else if (activeElement === this.$refs.sentinelEnd) {
sentinelStart.focus();
}
}
}
},
getDialogElement: function getDialogElement() {
var h = this.$createElement;
var closable = this.closable,
prefixCls = this.prefixCls,
width = this.width,
height = this.height,
title = this.title,
tempFooter = this.footer,
bodyStyle = this.bodyStyle,
visible = this.visible,
bodyProps = this.bodyProps,
forceRender = this.forceRender,
dialogStyle = this.dialogStyle,
dialogClass = this.dialogClass;
var dest = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, dialogStyle);
if (width !== undefined) {
dest.width = typeof width === 'number' ? width + 'px' : width;
}
if (height !== undefined) {
dest.height = typeof height === 'number' ? height + 'px' : height;
}
var footer = void 0;
if (tempFooter) {
footer = h(
'div',
{ key: 'footer', 'class': prefixCls + '-footer', ref: 'footer' },
[tempFooter]
);
}
var header = void 0;
if (title) {
header = h(
'div',
{ key: 'header', 'class': prefixCls + '-header', ref: 'header' },
[h(
'div',
{ 'class': prefixCls + '-title', attrs: { id: this.titleId }
},
[title]
)]
);
}
var closer = void 0;
if (closable) {
var closeIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'closeIcon');
closer = h(
'button',
{
attrs: {
type: 'button',
'aria-label': 'Close'
},
key: 'close',
on: {
'click': this.close || noop
},
'class': prefixCls + '-close'
},
[closeIcon || h('span', { 'class': prefixCls + '-close-x' })]
);
}
var style = dest;
var sentinelStyle = { width: 0, height: 0, overflow: 'hidden' };
var cls = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, prefixCls, true);
var transitionName = this.getTransitionName();
var dialogElement = h(
_LazyRenderBox__WEBPACK_IMPORTED_MODULE_6__["default"],
{
directives: [{
name: 'show',
value: visible
}],
key: 'dialog-element',
attrs: { role: 'document',
forceRender: forceRender
},
ref: 'dialog',
style: style,
'class': [cls, dialogClass], on: {
'mousedown': this.onDialogMouseDown
}
},
[h('div', {
attrs: { tabIndex: 0, 'aria-hidden': 'true' },
ref: 'sentinelStart', style: sentinelStyle }), h(
'div',
{ 'class': prefixCls + '-content' },
[closer, header, h(
'div',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ key: 'body', 'class': prefixCls + '-body', style: bodyStyle, ref: 'body' }, bodyProps]),
[this.$slots['default']]
), footer]
), h('div', {
attrs: { tabIndex: 0, 'aria-hidden': 'true' },
ref: 'sentinelEnd', style: sentinelStyle })]
);
var dialogTransitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_8__["default"])(transitionName, {
afterLeave: this.onAnimateLeave
});
return h(
'transition',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ key: 'dialog' }, dialogTransitionProps]),
[visible || !this.destroyPopup ? dialogElement : null]
);
},
getZIndexStyle: function getZIndexStyle() {
var style = {};
var props = this.$props;
if (props.zIndex !== undefined) {
style.zIndex = props.zIndex;
}
return style;
},
getWrapStyle: function getWrapStyle() {
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.getZIndexStyle(), this.wrapStyle);
},
getMaskStyle: function getMaskStyle() {
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.getZIndexStyle(), this.maskStyle);
},
getMaskElement: function getMaskElement() {
var h = this.$createElement;
var props = this.$props;
var maskElement = void 0;
if (props.mask) {
var maskTransition = this.getMaskTransitionName();
maskElement = h(_LazyRenderBox__WEBPACK_IMPORTED_MODULE_6__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
directives: [{
name: 'show',
value: props.visible
}],
style: this.getMaskStyle(),
key: 'mask',
'class': props.prefixCls + '-mask'
}, props.maskProps]));
if (maskTransition) {
var maskTransitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_8__["default"])(maskTransition);
maskElement = h(
'transition',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ key: 'mask' }, maskTransitionProps]),
[maskElement]
);
}
}
return maskElement;
},
getMaskTransitionName: function getMaskTransitionName() {
var props = this.$props;
var transitionName = props.maskTransitionName;
var animation = props.maskAnimation;
if (!transitionName && animation) {
transitionName = props.prefixCls + '-' + animation;
}
return transitionName;
},
getTransitionName: function getTransitionName() {
var props = this.$props;
var transitionName = props.transitionName;
var animation = props.animation;
if (!transitionName && animation) {
transitionName = props.prefixCls + '-' + animation;
}
return transitionName;
},
// setScrollbar() {
// if (this.bodyIsOverflowing && this.scrollbarWidth !== undefined) {
// document.body.style.paddingRight = `${this.scrollbarWidth}px`;
// }
// },
switchScrollingEffect: function switchScrollingEffect() {
var getOpenCount = this.getOpenCount;
var openCount = getOpenCount();
if (openCount === 1) {
if (cacheOverflow.hasOwnProperty('overflowX')) {
return;
}
cacheOverflow = {
overflowX: document.body.style.overflowX,
overflowY: document.body.style.overflowY,
overflow: document.body.style.overflow
};
Object(_util_switchScrollingEffect__WEBPACK_IMPORTED_MODULE_9__["default"])();
// Must be set after switchScrollingEffect
document.body.style.overflow = 'hidden';
} else if (!openCount) {
// IE browser doesn't merge overflow style, need to set it separately
// https://github.com/ant-design/ant-design/issues/19393
if (cacheOverflow.overflow !== undefined) {
document.body.style.overflow = cacheOverflow.overflow;
}
if (cacheOverflow.overflowX !== undefined) {
document.body.style.overflowX = cacheOverflow.overflowX;
}
if (cacheOverflow.overflowY !== undefined) {
document.body.style.overflowY = cacheOverflow.overflowY;
}
cacheOverflow = {};
Object(_util_switchScrollingEffect__WEBPACK_IMPORTED_MODULE_9__["default"])(true);
}
},
// removeScrollingEffect() {
// const { getOpenCount } = this;
// const openCount = getOpenCount();
// if (openCount !== 0) {
// return;
// }
// document.body.style.overflow = '';
// switchScrollingEffect(true);
// // this.resetAdjustments();
// },
close: function close(e) {
this.__emit('close', e);
}
},
render: function render() {
var h = arguments[0];
var prefixCls = this.prefixCls,
maskClosable = this.maskClosable,
visible = this.visible,
wrapClassName = this.wrapClassName,
title = this.title,
wrapProps = this.wrapProps;
var style = this.getWrapStyle();
// clear hide display
// and only set display after async anim, not here for hide
if (visible) {
style.display = null;
}
return h(
'div',
{ 'class': prefixCls + '-root' },
[this.getMaskElement(), h(
'div',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
attrs: {
tabIndex: -1,
role: 'dialog',
'aria-labelledby': title ? this.titleId : null
},
on: {
'keydown': this.onKeydown,
'click': maskClosable ? this.onMaskClick : noop,
'mouseup': maskClosable ? this.onMaskMouseUp : noop
},
'class': prefixCls + '-wrap ' + (wrapClassName || ''),
ref: 'wrap',
style: style
}, wrapProps]),
[this.getDialogElement()]
)]
);
}
});
/***/ }),
/***/ "./components/vc-dialog/DialogWrap.jsx":
/*!*********************************************!*\
!*** ./components/vc-dialog/DialogWrap.jsx ***!
\*********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Dialog__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Dialog */ "./components/vc-dialog/Dialog.jsx");
/* harmony import */ var _IDialogPropTypes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./IDialogPropTypes */ "./components/vc-dialog/IDialogPropTypes.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_PortalWrapper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/PortalWrapper */ "./components/_util/PortalWrapper.js");
var IDialogPropTypes = Object(_IDialogPropTypes__WEBPACK_IMPORTED_MODULE_3__["default"])();
var DialogWrap = {
inheritAttrs: false,
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, IDialogPropTypes, {
visible: IDialogPropTypes.visible.def(false)
}),
render: function render() {
var _this = this;
var h = arguments[0];
var _$props = this.$props,
visible = _$props.visible,
getContainer = _$props.getContainer,
forceRender = _$props.forceRender;
var dialogProps = {
props: this.$props,
attrs: this.$attrs,
ref: '_component',
key: 'dialog',
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this)
};
// 渲染在当前 dom 里;
if (getContainer === false) {
return h(
_Dialog__WEBPACK_IMPORTED_MODULE_2__["default"],
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([dialogProps, {
attrs: {
getOpenCount: function getOpenCount() {
return 2;
} // 不对 body 做任何操作。。
}
}]),
[this.$slots['default']]
);
}
return h(_util_PortalWrapper__WEBPACK_IMPORTED_MODULE_5__["default"], {
attrs: {
visible: visible,
forceRender: forceRender,
getContainer: getContainer,
children: function children(childProps) {
dialogProps.props = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, dialogProps.props, childProps);
return h(
_Dialog__WEBPACK_IMPORTED_MODULE_2__["default"],
dialogProps,
[_this.$slots['default']]
);
}
}
});
}
};
/* harmony default export */ __webpack_exports__["default"] = (DialogWrap);
/***/ }),
/***/ "./components/vc-dialog/IDialogPropTypes.js":
/*!**************************************************!*\
!*** ./components/vc-dialog/IDialogPropTypes.js ***!
\**************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
function IDialogPropTypes() {
return {
keyboard: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
mask: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
afterClose: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
// onClose: PropTypes. (e: SyntheticEvent<HTMLDivElement>) =>any,
closable: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
maskClosable: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
destroyOnClose: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
mousePosition: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].shape({
x: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
y: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number
}).loose,
title: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
footer: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
maskTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
animation: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
maskAnimation: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
wrapStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
bodyStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
maskStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
wrapClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
width: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]),
height: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]),
zIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
bodyProps: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
maskProps: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
wrapProps: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
getContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
dialogStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object.def(function () {
return {};
}),
dialogClass: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string.def(''),
closeIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
forceRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
getOpenCount: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
// https://github.com/ant-design/ant-design/issues/19771
// https://github.com/react-component/dialog/issues/95
focusTriggerAfterClose: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool
};
}
/* harmony default export */ __webpack_exports__["default"] = (IDialogPropTypes);
/***/ }),
/***/ "./components/vc-dialog/LazyRenderBox.jsx":
/*!************************************************!*\
!*** ./components/vc-dialog/LazyRenderBox.jsx ***!
\************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
var ILazyRenderBoxPropTypes = {
visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
hiddenClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
forceRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool
};
/* harmony default export */ __webpack_exports__["default"] = ({
props: ILazyRenderBoxPropTypes,
render: function render() {
var h = arguments[0];
return h(
'div',
{ on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getListeners"])(this) },
[this.$slots['default']]
);
}
});
/***/ }),
/***/ "./components/vc-dialog/index.js":
/*!***************************************!*\
!*** ./components/vc-dialog/index.js ***!
\***************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _DialogWrap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DialogWrap */ "./components/vc-dialog/DialogWrap.jsx");
// based on vc-dialog 7.5.14
/* harmony default export */ __webpack_exports__["default"] = (_DialogWrap__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/vc-drawer/src/Drawer.js":
/*!********************************************!*\
!*** ./components/vc-drawer/src/Drawer.js ***!
\********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue */ "vue");
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
/* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _util_getScrollBarSize__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../_util/getScrollBarSize */ "./components/_util/getScrollBarSize.js");
/* harmony import */ var _IDrawerPropTypes__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./IDrawerPropTypes */ "./components/vc-drawer/src/IDrawerPropTypes.js");
/* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../_util/KeyCode */ "./components/_util/KeyCode.js");
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./utils */ "./components/vc-drawer/src/utils.js");
/* harmony import */ var _util_Portal__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../_util/Portal */ "./components/_util/Portal.js");
function noop() {}
var currentDrawer = {};
var windowIsUndefined = !(typeof window !== 'undefined' && window.document && window.document.createElement);
vue__WEBPACK_IMPORTED_MODULE_5___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_6___default.a, { name: 'ant-ref' });
var Drawer = {
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__["default"]],
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["initDefaultProps"])(_IDrawerPropTypes__WEBPACK_IMPORTED_MODULE_11__["IDrawerProps"], {
prefixCls: 'drawer',
placement: 'left',
getContainer: 'body',
level: 'all',
duration: '.3s',
ease: 'cubic-bezier(0.78, 0.14, 0.15, 0.86)',
firstEnter: false, // 记录首次进入.
showMask: true,
handler: true,
maskStyle: {},
wrapperClassName: '',
className: ''
}),
data: function data() {
this.levelDom = [];
this.contentDom = null;
this.maskDom = null;
this.handlerdom = null;
this.mousePos = null;
this.sFirstEnter = this.firstEnter;
this.timeout = null;
this.children = null;
this.drawerId = Number((Date.now() + Math.random()).toString().replace('.', Math.round(Math.random() * 9))).toString(16);
var open = this.open !== undefined ? this.open : !!this.defaultOpen;
currentDrawer[this.drawerId] = open;
this.orignalOpen = this.open;
this.preProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, this.$props);
return {
sOpen: open
};
},
mounted: function mounted() {
var _this = this;
this.$nextTick(function () {
if (!windowIsUndefined) {
var passiveSupported = false;
window.addEventListener('test', null, Object.defineProperty({}, 'passive', {
get: function get() {
passiveSupported = true;
return null;
}
}));
_this.passive = passiveSupported ? { passive: false } : false;
}
var open = _this.getOpen();
if (_this.handler || open || _this.sFirstEnter) {
_this.getDefault(_this.$props);
if (open) {
_this.isOpenChange = true;
_this.$nextTick(function () {
_this.domFocus();
});
}
_this.$forceUpdate();
}
});
},
watch: {
open: function (_open) {
function open(_x) {
return _open.apply(this, arguments);
}
open.toString = function () {
return _open.toString();
};
return open;
}(function (val) {
var _this2 = this;
if (val !== undefined && val !== this.preProps.open) {
this.isOpenChange = true;
// 没渲染 dom 时,获取默认数据;
if (!this.container) {
this.getDefault(this.$props);
}
this.setState({
sOpen: open
});
}
this.preProps.open = val;
if (val) {
this.$nextTick(function () {
_this2.domFocus();
});
}
}),
placement: function placement(val) {
if (val !== this.preProps.placement) {
// test 的 bug, 有动画过场,删除 dom
this.contentDom = null;
}
this.preProps.placement = val;
},
level: function level(val) {
if (this.preProps.level !== val) {
this.getParentAndLevelDom(this.$props);
}
this.preProps.level = val;
}
},
updated: function updated() {
var _this3 = this;
this.$nextTick(function () {
// dom 没渲染时,重走一遍。
if (!_this3.sFirstEnter && _this3.container) {
_this3.$forceUpdate();
_this3.sFirstEnter = true;
}
});
},
beforeDestroy: function beforeDestroy() {
delete currentDrawer[this.drawerId];
delete this.isOpenChange;
if (this.container) {
if (this.sOpen) {
this.setLevelDomTransform(false, true);
}
document.body.style.overflow = '';
}
this.sFirstEnter = false;
clearTimeout(this.timeout);
},
methods: {
domFocus: function domFocus() {
if (this.dom) {
this.dom.focus();
}
},
onKeyDown: function onKeyDown(e) {
if (e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_12__["default"].ESC) {
e.stopPropagation();
this.$emit('close', e);
}
},
onMaskTouchEnd: function onMaskTouchEnd(e) {
this.$emit('close', e);
this.onTouchEnd(e, true);
},
onIconTouchEnd: function onIconTouchEnd(e) {
this.$emit('handleClick', e);
this.onTouchEnd(e);
},
onTouchEnd: function onTouchEnd(e, close) {
if (this.open !== undefined) {
return;
}
var open = close || this.sOpen;
this.isOpenChange = true;
this.setState({
sOpen: !open
});
},
onWrapperTransitionEnd: function onWrapperTransitionEnd(e) {
if (e.target === this.contentWrapper && e.propertyName.match(/transform$/)) {
var _open2 = this.getOpen();
this.dom.style.transition = '';
if (!_open2 && this.getCurrentDrawerSome()) {
document.body.style.overflowX = '';
if (this.maskDom) {
this.maskDom.style.left = '';
this.maskDom.style.width = '';
}
}
if (this.afterVisibleChange) {
this.afterVisibleChange(!!_open2);
}
}
},
getDefault: function getDefault(props) {
this.getParentAndLevelDom(props);
if (props.getContainer || props.parent) {
this.container = this.defaultGetContainer();
}
},
getCurrentDrawerSome: function getCurrentDrawerSome() {
return !Object.keys(currentDrawer).some(function (key) {
return currentDrawer[key];
});
},
getSelfContainer: function getSelfContainer() {
return this.container;
},
getParentAndLevelDom: function getParentAndLevelDom(props) {
var _this4 = this;
if (windowIsUndefined) {
return;
}
var level = props.level,
getContainer = props.getContainer;
this.levelDom = [];
if (getContainer) {
if (typeof getContainer === 'string') {
var dom = document.querySelectorAll(getContainer)[0];
this.parent = dom;
}
if (typeof getContainer === 'function') {
this.parent = getContainer();
}
if ((typeof getContainer === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2___default()(getContainer)) === 'object' && getContainer instanceof window.HTMLElement) {
this.parent = getContainer;
}
}
if (!getContainer && this.container) {
this.parent = this.container.parentNode;
}
if (level === 'all') {
var children = Array.prototype.slice.call(this.parent.children);
children.forEach(function (child) {
if (child.nodeName !== 'SCRIPT' && child.nodeName !== 'STYLE' && child.nodeName !== 'LINK' && child !== _this4.container) {
_this4.levelDom.push(child);
}
});
} else if (level) {
Object(_utils__WEBPACK_IMPORTED_MODULE_13__["dataToArray"])(level).forEach(function (key) {
document.querySelectorAll(key).forEach(function (item) {
_this4.levelDom.push(item);
});
});
}
},
setLevelDomTransform: function setLevelDomTransform(open, openTransition, placementName, value) {
var _this5 = this;
var _$props = this.$props,
placement = _$props.placement,
levelMove = _$props.levelMove,
duration = _$props.duration,
ease = _$props.ease,
getContainer = _$props.getContainer;
if (!windowIsUndefined) {
this.levelDom.forEach(function (dom) {
if (_this5.isOpenChange || openTransition) {
/* eslint no-param-reassign: "error" */
dom.style.transition = 'transform ' + duration + ' ' + ease;
Object(_utils__WEBPACK_IMPORTED_MODULE_13__["addEventListener"])(dom, _utils__WEBPACK_IMPORTED_MODULE_13__["transitionEnd"], _this5.trnasitionEnd);
var levelValue = open ? value : 0;
if (levelMove) {
var $levelMove = Object(_utils__WEBPACK_IMPORTED_MODULE_13__["transformArguments"])(levelMove, { target: dom, open: open });
levelValue = open ? $levelMove[0] : $levelMove[1] || 0;
}
var $value = typeof levelValue === 'number' ? levelValue + 'px' : levelValue;
var placementPos = placement === 'left' || placement === 'top' ? $value : '-' + $value;
dom.style.transform = levelValue ? placementName + '(' + placementPos + ')' : '';
dom.style.msTransform = levelValue ? placementName + '(' + placementPos + ')' : '';
}
});
// 处理 body 滚动
if (getContainer === 'body') {
var eventArray = ['touchstart'];
var domArray = [document.body, this.maskDom, this.handlerdom, this.contentDom];
var right = document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth ? Object(_util_getScrollBarSize__WEBPACK_IMPORTED_MODULE_10__["default"])(1) : 0;
var widthTransition = 'width ' + duration + ' ' + ease;
var trannsformTransition = 'transform ' + duration + ' ' + ease;
if (open && document.body.style.overflow !== 'hidden') {
document.body.style.overflow = 'hidden';
if (right) {
document.body.style.position = 'relative';
document.body.style.width = 'calc(100% - ' + right + 'px)';
this.dom.style.transition = 'none';
switch (placement) {
case 'right':
this.dom.style.transform = 'translateX(-' + right + 'px)';
this.dom.style.msTransform = 'translateX(-' + right + 'px)';
break;
case 'top':
case 'bottom':
this.dom.style.width = 'calc(100% - ' + right + 'px)';
this.dom.style.transform = 'translateZ(0)';
break;
default:
break;
}
clearTimeout(this.timeout);
this.timeout = setTimeout(function () {
_this5.dom.style.transition = trannsformTransition + ',' + widthTransition;
_this5.dom.style.width = '';
_this5.dom.style.transform = '';
_this5.dom.style.msTransform = '';
});
}
// 手机禁滚
domArray.forEach(function (item, i) {
if (!item) {
return;
}
Object(_utils__WEBPACK_IMPORTED_MODULE_13__["addEventListener"])(item, eventArray[i] || 'touchmove', i ? _this5.removeMoveHandler : _this5.removeStartHandler, _this5.passive);
});
} else if (this.getCurrentDrawerSome()) {
document.body.style.overflow = '';
if ((this.isOpenChange || openTransition) && right) {
document.body.style.position = '';
document.body.style.width = '';
if (_utils__WEBPACK_IMPORTED_MODULE_13__["transitionStr"]) {
document.body.style.overflowX = 'hidden';
}
this.dom.style.transition = 'none';
var heightTransition = void 0;
switch (placement) {
case 'right':
{
this.dom.style.transform = 'translateX(' + right + 'px)';
this.dom.style.msTransform = 'translateX(' + right + 'px)';
this.dom.style.width = '100%';
widthTransition = 'width 0s ' + ease + ' ' + duration;
if (this.maskDom) {
this.maskDom.style.left = '-' + right + 'px';
this.maskDom.style.width = 'calc(100% + ' + right + 'px)';
}
break;
}
case 'top':
case 'bottom':
{
this.dom.style.width = 'calc(100% + ' + right + 'px)';
this.dom.style.height = '100%';
this.dom.style.transform = 'translateZ(0)';
heightTransition = 'height 0s ' + ease + ' ' + duration;
break;
}
default:
break;
}
clearTimeout(this.timeout);
this.timeout = setTimeout(function () {
_this5.dom.style.transition = trannsformTransition + ',' + (heightTransition ? heightTransition + ',' : '') + widthTransition;
_this5.dom.style.transform = '';
_this5.dom.style.msTransform = '';
_this5.dom.style.width = '';
_this5.dom.style.height = '';
});
}
domArray.forEach(function (item, i) {
if (!item) {
return;
}
Object(_utils__WEBPACK_IMPORTED_MODULE_13__["removeEventListener"])(item, eventArray[i] || 'touchmove', i ? _this5.removeMoveHandler : _this5.removeStartHandler, _this5.passive);
});
}
}
}
var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getListeners"])(this),
change = _getListeners.change;
if (change && this.isOpenChange && this.sFirstEnter) {
change(open);
this.isOpenChange = false;
}
},
getChildToRender: function getChildToRender(open) {
var _classnames,
_this6 = this;
var h = this.$createElement;
var _$props2 = this.$props,
className = _$props2.className,
prefixCls = _$props2.prefixCls,
placement = _$props2.placement,
handler = _$props2.handler,
showMask = _$props2.showMask,
maskStyle = _$props2.maskStyle,
width = _$props2.width,
height = _$props2.height,
wrapStyle = _$props2.wrapStyle,
keyboard = _$props2.keyboard,
maskClosable = _$props2.maskClosable;
var children = this.$slots['default'];
var wrapperClassname = classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls, (_classnames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classnames, prefixCls + '-' + placement, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classnames, prefixCls + '-open', open), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classnames, className, !!className), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classnames, 'no-mask', !showMask), _classnames));
var isOpenChange = this.isOpenChange;
var isHorizontal = placement === 'left' || placement === 'right';
var placementName = 'translate' + (isHorizontal ? 'X' : 'Y');
// 百分比与像素动画不同步,第一次打用后全用像素动画。
// const defaultValue = !this.contentDom || !level ? '100%' : `${value}px`;
var placementPos = placement === 'left' || placement === 'top' ? '-100%' : '100%';
var transform = open ? '' : placementName + '(' + placementPos + ')';
if (isOpenChange === undefined || isOpenChange) {
var contentValue = this.contentDom ? this.contentDom.getBoundingClientRect()[isHorizontal ? 'width' : 'height'] : 0;
var value = (isHorizontal ? width : height) || contentValue;
this.setLevelDomTransform(open, false, placementName, value);
}
var handlerChildren = void 0;
if (handler !== false) {
var handlerDefalut = h(
'div',
{ 'class': 'drawer-handle' },
[h('i', { 'class': 'drawer-handle-icon' })]
);
var handlerSlot = this.handler;
var handlerSlotVnode = handlerSlot && handlerSlot[0] || handlerDefalut;
var _getEvents = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getEvents"])(handlerSlotVnode),
handleIconClick = _getEvents.click;
handlerChildren = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_9__["cloneElement"])(handlerSlotVnode, {
on: {
click: function click(e) {
handleIconClick && handleIconClick();
_this6.onIconTouchEnd(e);
}
},
directives: [{
name: 'ant-ref',
value: function value(c) {
_this6.handlerdom = c;
}
}]
});
}
var domContProps = {
'class': wrapperClassname,
directives: [{
name: 'ant-ref',
value: function value(c) {
_this6.dom = c;
}
}],
on: {
transitionend: this.onWrapperTransitionEnd,
keydown: open && keyboard ? this.onKeyDown : noop
},
style: wrapStyle
};
var directivesMaskDom = [{
name: 'ant-ref',
value: function value(c) {
_this6.maskDom = c;
}
}];
var directivesContentWrapper = [{
name: 'ant-ref',
value: function value(c) {
_this6.contentWrapper = c;
}
}];
var directivesContentDom = [{
name: 'ant-ref',
value: function value(c) {
_this6.contentDom = c;
}
}];
return h(
'div',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([domContProps, {
attrs: { tabIndex: -1 }
}]),
[showMask && h('div', babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
key: open // 第二次渲染时虚拟DOM没有改变没有出发dom更新使用key强制更新 https://github.com/vueComponent/ant-design-vue/issues/2407
, 'class': prefixCls + '-mask',
on: {
'click': maskClosable ? this.onMaskTouchEnd : noop
},
style: maskStyle
}, { directives: directivesMaskDom }])), h(
'div',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
'class': prefixCls + '-content-wrapper',
style: {
transform: transform,
msTransform: transform,
width: Object(_utils__WEBPACK_IMPORTED_MODULE_13__["isNumeric"])(width) ? width + 'px' : width,
height: Object(_utils__WEBPACK_IMPORTED_MODULE_13__["isNumeric"])(height) ? height + 'px' : height
}
}, { directives: directivesContentWrapper }]),
[h(
'div',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
'class': prefixCls + '-content'
}, { directives: directivesContentDom }, {
on: {
'touchstart': open ? this.removeStartHandler : noop,
'touchmove': open ? this.removeMoveHandler : noop
}
}]),
[children]
), handlerChildren]
)]
);
},
getOpen: function getOpen() {
return this.open !== undefined ? this.open : this.sOpen;
},
getTouchParentScroll: function getTouchParentScroll(root, currentTarget, differX, differY) {
if (!currentTarget || currentTarget === document) {
return false;
}
// root 为 drawer-content 设定了 overflow, 判断为 root 的 parent 时结束滚动;
if (currentTarget === root.parentNode) {
return true;
}
var isY = Math.max(Math.abs(differX), Math.abs(differY)) === Math.abs(differY);
var isX = Math.max(Math.abs(differX), Math.abs(differY)) === Math.abs(differX);
var scrollY = currentTarget.scrollHeight - currentTarget.clientHeight;
var scrollX = currentTarget.scrollWidth - currentTarget.clientWidth;
/**
* <div style="height: 300px">
* <div style="height: 900px"></div>
* </div>
* 在没设定 overflow: auto 或 scroll 时currentTarget 里获取不到 scrollTop 或 scrollLeft,
* 预先用 scrollTo 来滚动,如果取出的值跟滚动前取出不同,则 currnetTarget 被设定了 overflow; 否则就是上面这种。
*/
var t = currentTarget.scrollTop;
var l = currentTarget.scrollLeft;
if (currentTarget.scrollTo) {
currentTarget.scrollTo(currentTarget.scrollLeft + 1, currentTarget.scrollTop + 1);
}
var currentT = currentTarget.scrollTop;
var currentL = currentTarget.scrollLeft;
if (currentTarget.scrollTo) {
currentTarget.scrollTo(currentTarget.scrollLeft - 1, currentTarget.scrollTop - 1);
}
if (isY && (!scrollY || !(currentT - t) || scrollY && (currentTarget.scrollTop >= scrollY && differY < 0 || currentTarget.scrollTop <= 0 && differY > 0)) || isX && (!scrollX || !(currentL - l) || scrollX && (currentTarget.scrollLeft >= scrollX && differX < 0 || currentTarget.scrollLeft <= 0 && differX > 0))) {
return this.getTouchParentScroll(root, currentTarget.parentNode, differX, differY);
}
return false;
},
removeStartHandler: function removeStartHandler(e) {
if (e.touches.length > 1) {
return;
}
this.startPos = {
x: e.touches[0].clientX,
y: e.touches[0].clientY
};
},
removeMoveHandler: function removeMoveHandler(e) {
if (e.changedTouches.length > 1) {
return;
}
var currentTarget = e.currentTarget;
var differX = e.changedTouches[0].clientX - this.startPos.x;
var differY = e.changedTouches[0].clientY - this.startPos.y;
if (currentTarget === this.maskDom || currentTarget === this.handlerdom || currentTarget === this.contentDom && this.getTouchParentScroll(currentTarget, e.target, differX, differY)) {
e.preventDefault();
}
},
trnasitionEnd: function trnasitionEnd(e) {
Object(_utils__WEBPACK_IMPORTED_MODULE_13__["removeEventListener"])(e.target, _utils__WEBPACK_IMPORTED_MODULE_13__["transitionEnd"], this.trnasitionEnd);
e.target.style.transition = '';
},
defaultGetContainer: function defaultGetContainer() {
if (windowIsUndefined) {
return null;
}
var container = document.createElement('div');
this.parent.appendChild(container);
if (this.wrapperClassName) {
container.className = this.wrapperClassName;
}
return container;
}
},
render: function render() {
var _this7 = this;
var h = arguments[0];
var _$props3 = this.$props,
getContainer = _$props3.getContainer,
wrapperClassName = _$props3.wrapperClassName,
handler = _$props3.handler,
forceRender = _$props3.forceRender;
var open = this.getOpen();
var portal = null;
currentDrawer[this.drawerId] = open ? this.container : open;
var children = this.getChildToRender(this.sFirstEnter ? open : false);
if (!getContainer) {
var directives = [{
name: 'ant-ref',
value: function value(c) {
_this7.container = c;
}
}];
return h(
'div',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ 'class': wrapperClassName }, { directives: directives }]),
[children]
);
}
if (!this.container || !open && !this.sFirstEnter) {
return null;
}
// 如果有 handler 为内置强制渲染;
var $forceRender = !!handler || forceRender;
if ($forceRender || open || this.dom) {
portal = h(_util_Portal__WEBPACK_IMPORTED_MODULE_14__["default"], {
attrs: { getContainer: this.getSelfContainer, children: children }
});
}
return portal;
}
};
/* harmony default export */ __webpack_exports__["default"] = (Drawer);
/***/ }),
/***/ "./components/vc-drawer/src/IDrawerPropTypes.js":
/*!******************************************************!*\
!*** ./components/vc-drawer/src/IDrawerPropTypes.js ***!
\******************************************************/
/*! exports provided: IDrawerProps, IDrawerChildProps */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IDrawerProps", function() { return IDrawerProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IDrawerChildProps", function() { return IDrawerChildProps; });
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
var IProps = {
width: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
height: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
defaultOpen: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
firstEnter: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
open: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
placement: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
level: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array]),
levelMove: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array]),
ease: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
duration: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
handler: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
showMask: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
maskStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
className: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
wrapStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
maskClosable: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
afterVisibleChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
keyboard: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool
};
var IDrawerProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, IProps, {
wrapperClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
forceRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
getContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool])
});
var IDrawerChildProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, IProps, {
getContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
getOpenCount: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
switchScrollingEffect: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
});
/***/ }),
/***/ "./components/vc-drawer/src/index.js":
/*!*******************************************!*\
!*** ./components/vc-drawer/src/index.js ***!
\*******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Drawer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Drawer */ "./components/vc-drawer/src/Drawer.js");
// base in 1.7.7
// export this package's api
/* harmony default export */ __webpack_exports__["default"] = (_Drawer__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/vc-drawer/src/utils.js":
/*!*******************************************!*\
!*** ./components/vc-drawer/src/utils.js ***!
\*******************************************/
/*! exports provided: dataToArray, transitionStr, transitionEnd, addEventListener, removeEventListener, transformArguments, isNumeric, windowIsUndefined, getTouchParentScroll */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dataToArray", function() { return dataToArray; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "transitionStr", function() { return transitionStr; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "transitionEnd", function() { return transitionEnd; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addEventListener", function() { return addEventListener; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeEventListener", function() { return removeEventListener; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "transformArguments", function() { return transformArguments; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isNumeric", function() { return isNumeric; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "windowIsUndefined", function() { return windowIsUndefined; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTouchParentScroll", function() { return getTouchParentScroll; });
function dataToArray(vars) {
if (Array.isArray(vars)) {
return vars;
}
return [vars];
}
var transitionEndObject = {
transition: 'transitionend',
WebkitTransition: 'webkitTransitionEnd',
MozTransition: 'transitionend',
OTransition: 'oTransitionEnd otransitionend'
};
var transitionStr = Object.keys(transitionEndObject).filter(function (key) {
if (typeof document === 'undefined') {
return false;
}
var html = document.getElementsByTagName('html')[0];
return key in (html ? html.style : {});
})[0];
var transitionEnd = transitionEndObject[transitionStr];
function addEventListener(target, eventType, callback, options) {
if (target.addEventListener) {
target.addEventListener(eventType, callback, options);
} else if (target.attachEvent) {
target.attachEvent('on' + eventType, callback);
}
}
function removeEventListener(target, eventType, callback, options) {
if (target.removeEventListener) {
target.removeEventListener(eventType, callback, options);
} else if (target.attachEvent) {
target.detachEvent('on' + eventType, callback);
}
}
function transformArguments(arg, cb) {
var result = void 0;
if (typeof arg === 'function') {
result = arg(cb);
} else {
result = arg;
}
if (Array.isArray(result)) {
if (result.length === 2) {
return result;
}
return [result[0], result[1]];
}
return [result];
}
var isNumeric = function isNumeric(value) {
return !isNaN(parseFloat(value)) && isFinite(value); // eslint-disable-line
};
var windowIsUndefined = !(typeof window !== 'undefined' && window.document && window.document.createElement);
var getTouchParentScroll = function getTouchParentScroll(root, currentTarget, differX, differY) {
if (!currentTarget || currentTarget === document || currentTarget instanceof Document) {
return false;
}
// root 为 drawer-content 设定了 overflow, 判断为 root 的 parent 时结束滚动;
if (currentTarget === root.parentNode) {
return true;
}
var isY = Math.max(Math.abs(differX), Math.abs(differY)) === Math.abs(differY);
var isX = Math.max(Math.abs(differX), Math.abs(differY)) === Math.abs(differX);
var scrollY = currentTarget.scrollHeight - currentTarget.clientHeight;
var scrollX = currentTarget.scrollWidth - currentTarget.clientWidth;
var style = document.defaultView.getComputedStyle(currentTarget);
var overflowY = style.overflowY === 'auto' || style.overflowY === 'scroll';
var overflowX = style.overflowX === 'auto' || style.overflowX === 'scroll';
var y = scrollY && overflowY;
var x = scrollX && overflowX;
if (isY && (!y || y && (currentTarget.scrollTop >= scrollY && differY < 0 || currentTarget.scrollTop <= 0 && differY > 0)) || isX && (!x || x && (currentTarget.scrollLeft >= scrollX && scrollX < 0 || currentTarget.scrollLeft <= 0 && scrollX > 0))) {
return getTouchParentScroll(root, currentTarget.parentNode, differX, differY);
}
return false;
};
/***/ }),
/***/ "./components/vc-dropdown/src/Dropdown.jsx":
/*!*************************************************!*\
!*** ./components/vc-dropdown/src/Dropdown.jsx ***!
\*************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _vc_trigger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../vc-trigger */ "./components/vc-trigger/index.js");
/* harmony import */ var _placements__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./placements */ "./components/vc-dropdown/src/placements.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
/* harmony default export */ __webpack_exports__["default"] = ({
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__["default"]],
props: {
minOverlayWidthMatchTrigger: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def('rc-dropdown'),
transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
overlayClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def(''),
openClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
animation: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
align: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
overlayStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object.def(function () {
return {};
}),
placement: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def('bottomLeft'),
overlay: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
trigger: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array.def(['hover']),
alignPoint: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
showAction: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array.def([]),
hideAction: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array.def([]),
getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
defaultVisible: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool.def(false),
mouseEnterDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number.def(0.15),
mouseLeaveDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number.def(0.1)
},
data: function data() {
var sVisible = this.defaultVisible;
if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'visible')) {
sVisible = this.visible;
}
return {
sVisible: sVisible
};
},
watch: {
visible: function visible(val) {
if (val !== undefined) {
this.setState({
sVisible: val
});
}
}
},
methods: {
onClick: function onClick(e) {
// do no call onVisibleChange, if you need click to hide, use onClick and control visible
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'visible')) {
this.setState({
sVisible: false
});
}
this.$emit('overlayClick', e);
if (this.childOriginEvents.click) {
this.childOriginEvents.click(e);
}
},
onVisibleChange: function onVisibleChange(visible) {
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'visible')) {
this.setState({
sVisible: visible
});
}
this.__emit('visibleChange', visible);
},
getMinOverlayWidthMatchTrigger: function getMinOverlayWidthMatchTrigger() {
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
var minOverlayWidthMatchTrigger = props.minOverlayWidthMatchTrigger,
alignPoint = props.alignPoint;
if ('minOverlayWidthMatchTrigger' in props) {
return minOverlayWidthMatchTrigger;
}
return !alignPoint;
},
getOverlayElement: function getOverlayElement() {
var overlay = this.overlay || this.$slots.overlay || this.$scopedSlots.overlay;
var overlayElement = void 0;
if (typeof overlay === 'function') {
overlayElement = overlay();
} else {
overlayElement = overlay;
}
return overlayElement;
},
getMenuElement: function getMenuElement() {
var _this = this;
var onClick = this.onClick,
prefixCls = this.prefixCls,
$slots = this.$slots;
this.childOriginEvents = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getEvents"])($slots.overlay[0]);
var overlayElement = this.getOverlayElement();
var extraOverlayProps = {
props: {
prefixCls: prefixCls + '-menu',
getPopupContainer: function getPopupContainer() {
return _this.getPopupDomNode();
}
},
on: {
click: onClick
}
};
if (typeof overlayElement.type === 'string') {
delete extraOverlayProps.props.prefixCls;
}
return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_7__["cloneElement"])($slots.overlay[0], extraOverlayProps);
},
getMenuElementOrLambda: function getMenuElementOrLambda() {
var overlay = this.overlay || this.$slots.overlay || this.$scopedSlots.overlay;
if (typeof overlay === 'function') {
return this.getMenuElement;
}
return this.getMenuElement();
},
getPopupDomNode: function getPopupDomNode() {
return this.$refs.trigger.getPopupDomNode();
},
getOpenClassName: function getOpenClassName() {
var _$props = this.$props,
openClassName = _$props.openClassName,
prefixCls = _$props.prefixCls;
if (openClassName !== undefined) {
return openClassName;
}
return prefixCls + '-open';
},
afterVisibleChange: function afterVisibleChange(visible) {
if (visible && this.getMinOverlayWidthMatchTrigger()) {
var overlayNode = this.getPopupDomNode();
var rootNode = this.$el;
if (rootNode && overlayNode && rootNode.offsetWidth > overlayNode.offsetWidth) {
overlayNode.style.minWidth = rootNode.offsetWidth + 'px';
if (this.$refs.trigger && this.$refs.trigger._component && this.$refs.trigger._component.$refs && this.$refs.trigger._component.$refs.alignInstance) {
this.$refs.trigger._component.$refs.alignInstance.forceAlign();
}
}
}
},
renderChildren: function renderChildren() {
var children = this.$slots['default'] && this.$slots['default'][0];
var sVisible = this.sVisible;
return sVisible && children ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_7__["cloneElement"])(children, { 'class': this.getOpenClassName() }) : children;
}
},
render: function render() {
var h = arguments[0];
var _$props2 = this.$props,
prefixCls = _$props2.prefixCls,
transitionName = _$props2.transitionName,
animation = _$props2.animation,
align = _$props2.align,
placement = _$props2.placement,
getPopupContainer = _$props2.getPopupContainer,
showAction = _$props2.showAction,
hideAction = _$props2.hideAction,
overlayClassName = _$props2.overlayClassName,
overlayStyle = _$props2.overlayStyle,
trigger = _$props2.trigger,
otherProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_$props2, ['prefixCls', 'transitionName', 'animation', 'align', 'placement', 'getPopupContainer', 'showAction', 'hideAction', 'overlayClassName', 'overlayStyle', 'trigger']);
var triggerHideAction = hideAction;
if (!triggerHideAction && trigger.indexOf('contextmenu') !== -1) {
triggerHideAction = ['click'];
}
var triggerProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, otherProps, {
prefixCls: prefixCls,
popupClassName: overlayClassName,
popupStyle: overlayStyle,
builtinPlacements: _placements__WEBPACK_IMPORTED_MODULE_4__["default"],
action: trigger,
showAction: showAction,
hideAction: triggerHideAction || [],
popupPlacement: placement,
popupAlign: align,
popupTransitionName: transitionName,
popupAnimation: animation,
popupVisible: this.sVisible,
afterPopupVisibleChange: this.afterVisibleChange,
getPopupContainer: getPopupContainer
}),
on: {
popupVisibleChange: this.onVisibleChange
},
ref: 'trigger'
};
return h(
_vc_trigger__WEBPACK_IMPORTED_MODULE_3__["default"],
triggerProps,
[this.renderChildren(), h(
'template',
{ slot: 'popup' },
[this.$slots.overlay && this.getMenuElement()]
)]
);
}
});
/***/ }),
/***/ "./components/vc-dropdown/src/index.js":
/*!*********************************************!*\
!*** ./components/vc-dropdown/src/index.js ***!
\*********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Dropdown */ "./components/vc-dropdown/src/Dropdown.jsx");
// base in 2.4.1
/* harmony default export */ __webpack_exports__["default"] = (_Dropdown__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/vc-dropdown/src/placements.js":
/*!**************************************************!*\
!*** ./components/vc-dropdown/src/placements.js ***!
\**************************************************/
/*! exports provided: placements, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "placements", function() { return placements; });
var autoAdjustOverflow = {
adjustX: 1,
adjustY: 1
};
var targetOffset = [0, 0];
var placements = {
topLeft: {
points: ['bl', 'tl'],
overflow: autoAdjustOverflow,
offset: [0, -4],
targetOffset: targetOffset
},
topCenter: {
points: ['bc', 'tc'],
overflow: autoAdjustOverflow,
offset: [0, -4],
targetOffset: targetOffset
},
topRight: {
points: ['br', 'tr'],
overflow: autoAdjustOverflow,
offset: [0, -4],
targetOffset: targetOffset
},
bottomLeft: {
points: ['tl', 'bl'],
overflow: autoAdjustOverflow,
offset: [0, 4],
targetOffset: targetOffset
},
bottomCenter: {
points: ['tc', 'bc'],
overflow: autoAdjustOverflow,
offset: [0, 4],
targetOffset: targetOffset
},
bottomRight: {
points: ['tr', 'br'],
overflow: autoAdjustOverflow,
offset: [0, 4],
targetOffset: targetOffset
}
};
/* harmony default export */ __webpack_exports__["default"] = (placements);
/***/ }),
/***/ "./components/vc-form/src/createBaseForm.jsx":
/*!***************************************************!*\
!*** ./components/vc-form/src/createBaseForm.jsx ***!
\***************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var async_validator__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! async-validator */ "./node_modules/async-validator/dist-web/index.js");
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! warning */ "./node_modules/warning/warning.js");
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/get */ "./node_modules/lodash/get.js");
/* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_get__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var lodash_set__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/set */ "./node_modules/lodash/set.js");
/* harmony import */ var lodash_set__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_set__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var lodash_eq__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! lodash/eq */ "./node_modules/lodash/eq.js");
/* harmony import */ var lodash_eq__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_eq__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! lodash/omit */ "./node_modules/lodash/omit.js");
/* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_10__);
/* harmony import */ var _createFieldsStore__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./createFieldsStore */ "./components/vc-form/src/createFieldsStore.jsx");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./utils */ "./components/vc-form/src/utils.js");
var DEFAULT_TRIGGER = 'change';
function createBaseForm() {
var option = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var mixins = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
var validateMessages = option.validateMessages,
onFieldsChange = option.onFieldsChange,
onValuesChange = option.onValuesChange,
_option$mapProps = option.mapProps,
mapProps = _option$mapProps === undefined ? _utils__WEBPACK_IMPORTED_MODULE_16__["identity"] : _option$mapProps,
mapPropsToFields = option.mapPropsToFields,
fieldNameProp = option.fieldNameProp,
fieldMetaProp = option.fieldMetaProp,
fieldDataProp = option.fieldDataProp,
_option$formPropName = option.formPropName,
formPropName = _option$formPropName === undefined ? 'form' : _option$formPropName,
formName = option.name,
_option$props = option.props,
props = _option$props === undefined ? {} : _option$props,
templateContext = option.templateContext;
return function decorate(WrappedComponent) {
var formProps = {};
if (Array.isArray(props)) {
props.forEach(function (prop) {
formProps[prop] = _util_vue_types__WEBPACK_IMPORTED_MODULE_15__["default"].any;
});
} else {
formProps = props;
}
var Form = {
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_13__["default"]].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4___default()(mixins)),
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, formProps, {
wrappedComponentRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_15__["default"].func.def(function () {})
}),
data: function data() {
var _this = this;
var fields = mapPropsToFields && mapPropsToFields(this.$props);
this.fieldsStore = Object(_createFieldsStore__WEBPACK_IMPORTED_MODULE_11__["default"])(fields || {});
this.templateContext = templateContext;
this.instances = {};
this.cachedBind = {};
this.clearedFieldMetaCache = {};
this.formItems = {};
this.renderFields = {};
this.domFields = {};
// HACK: https://github.com/ant-design/ant-design/issues/6406
['getFieldsValue', 'getFieldValue', 'setFieldsInitialValue', 'getFieldsError', 'getFieldError', 'isFieldValidating', 'isFieldsValidating', 'isFieldsTouched', 'isFieldTouched'].forEach(function (key) {
_this[key] = function () {
var _fieldsStore;
return (_fieldsStore = _this.fieldsStore)[key].apply(_fieldsStore, arguments);
};
});
return {
submitting: false
};
},
watch: templateContext ? {} : {
$props: {
handler: function handler(nextProps) {
if (mapPropsToFields) {
this.fieldsStore.updateFields(mapPropsToFields(nextProps));
}
},
deep: true
}
},
mounted: function mounted() {
this.cleanUpUselessFields();
},
updated: function updated() {
// form updated add for template v-decorator
this.cleanUpUselessFields();
},
methods: {
updateFields: function updateFields() {
var fields = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
this.fieldsStore.updateFields(mapPropsToFields(fields));
if (templateContext) {
templateContext.$forceUpdate();
}
},
onCollectCommon: function onCollectCommon(name, action, args) {
var fieldMeta = this.fieldsStore.getFieldMeta(name);
if (fieldMeta[action]) {
fieldMeta[action].apply(fieldMeta, babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4___default()(args));
} else if (fieldMeta.originalProps && fieldMeta.originalProps[action]) {
var _fieldMeta$originalPr;
(_fieldMeta$originalPr = fieldMeta.originalProps)[action].apply(_fieldMeta$originalPr, babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4___default()(args));
}
var value = fieldMeta.getValueFromEvent ? fieldMeta.getValueFromEvent.apply(fieldMeta, babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4___default()(args)) : _utils__WEBPACK_IMPORTED_MODULE_16__["getValueFromEvent"].apply(undefined, babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_4___default()(args));
if (onValuesChange && value !== this.fieldsStore.getFieldValue(name)) {
var valuesAll = this.fieldsStore.getAllValues();
var valuesAllSet = {};
valuesAll[name] = value;
Object.keys(valuesAll).forEach(function (key) {
return lodash_set__WEBPACK_IMPORTED_MODULE_8___default()(valuesAllSet, key, valuesAll[key]);
});
onValuesChange(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, formPropName, this.getForm()), this.$props), lodash_set__WEBPACK_IMPORTED_MODULE_8___default()({}, name, value), valuesAllSet);
}
var field = this.fieldsStore.getField(name);
return { name: name, field: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, field, { value: value, touched: true }), fieldMeta: fieldMeta };
},
onCollect: function onCollect(name_, action) {
for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
args[_key - 2] = arguments[_key];
}
var _onCollectCommon = this.onCollectCommon(name_, action, args),
name = _onCollectCommon.name,
field = _onCollectCommon.field,
fieldMeta = _onCollectCommon.fieldMeta;
var validate = fieldMeta.validate;
this.fieldsStore.setFieldsAsDirty();
var newField = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, field, {
dirty: Object(_utils__WEBPACK_IMPORTED_MODULE_16__["hasRules"])(validate)
});
this.setFields(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, name, newField));
},
onCollectValidate: function onCollectValidate(name_, action) {
for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
args[_key2 - 2] = arguments[_key2];
}
var _onCollectCommon2 = this.onCollectCommon(name_, action, args),
field = _onCollectCommon2.field,
fieldMeta = _onCollectCommon2.fieldMeta;
var newField = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, field, {
dirty: true
});
this.fieldsStore.setFieldsAsDirty();
this.validateFieldsInternal([newField], {
action: action,
options: {
firstFields: !!fieldMeta.validateFirst
}
});
},
getCacheBind: function getCacheBind(name, action, fn) {
if (!this.cachedBind[name]) {
this.cachedBind[name] = {};
}
var cache = this.cachedBind[name];
if (!cache[action] || cache[action].oriFn !== fn) {
cache[action] = {
fn: fn.bind(this, name, action),
oriFn: fn
};
}
return cache[action].fn;
},
getFieldDecorator: function getFieldDecorator(name, fieldOption, formItem) {
var _this2 = this;
var _getFieldProps = this.getFieldProps(name, fieldOption),
props = _getFieldProps.props,
restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_getFieldProps, ['props']);
this.formItems[name] = formItem;
return function (fieldElem) {
// We should put field in record if it is rendered
_this2.renderFields[name] = true;
var fieldMeta = _this2.fieldsStore.getFieldMeta(name);
var originalProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["getOptionProps"])(fieldElem);
var originalEvents = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["getEvents"])(fieldElem);
if (true) {
var valuePropName = fieldMeta.valuePropName;
warning__WEBPACK_IMPORTED_MODULE_6___default()(!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["slotHasProp"])(fieldElem, valuePropName), '`getFieldDecorator` will override `' + valuePropName + '`, ' + ('so please don\'t set `' + valuePropName + ' and v-model` directly ') + 'and use `setFieldsValue` to set it.');
warning__WEBPACK_IMPORTED_MODULE_6___default()(!(!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["slotHasProp"])(fieldElem, valuePropName) && valuePropName in originalProps && !(fieldOption && 'initialValue' in fieldOption)), Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["getComponentName"])(fieldElem.componentOptions) + ' `default value` can not collect, ' + ' please use `option.initialValue` to set default value.');
var defaultValuePropName = 'default' + valuePropName[0].toUpperCase() + valuePropName.slice(1);
warning__WEBPACK_IMPORTED_MODULE_6___default()(!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["slotHasProp"])(fieldElem, defaultValuePropName), '`' + defaultValuePropName + '` is invalid ' + ('for `getFieldDecorator` will set `' + valuePropName + '`,') + ' please use `option.initialValue` instead.');
}
fieldMeta.originalProps = originalProps;
// fieldMeta.ref = fieldElem.data && fieldElem.data.ref
var newProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, props, _this2.fieldsStore.getFieldValuePropValue(fieldMeta))
}, restProps);
newProps.domProps.value = newProps.props.value;
var newEvents = {};
Object.keys(newProps.on).forEach(function (key) {
if (originalEvents[key]) {
var triggerEvents = newProps.on[key];
newEvents[key] = function () {
originalEvents[key].apply(originalEvents, arguments);
triggerEvents.apply(undefined, arguments);
};
} else {
newEvents[key] = newProps.on[key];
}
});
return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_12__["cloneElement"])(fieldElem, babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, newProps, { on: newEvents }));
};
},
getFieldProps: function getFieldProps(name) {
var _this3 = this;
var usersFieldOption = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
if (!name) {
throw new Error('Must call `getFieldProps` with valid name string!');
}
if (true) {
warning__WEBPACK_IMPORTED_MODULE_6___default()(this.fieldsStore.isValidNestedFieldName(name), 'One field name cannot be part of another, e.g. `a` and `a.b`. Check field: ' + name);
warning__WEBPACK_IMPORTED_MODULE_6___default()(!('exclusive' in usersFieldOption), '`option.exclusive` of `getFieldProps`|`getFieldDecorator` had been remove.');
}
delete this.clearedFieldMetaCache[name];
var fieldOption = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({
name: name,
trigger: DEFAULT_TRIGGER,
valuePropName: 'value',
validate: []
}, usersFieldOption);
var rules = fieldOption.rules,
trigger = fieldOption.trigger,
_fieldOption$validate = fieldOption.validateTrigger,
validateTrigger = _fieldOption$validate === undefined ? trigger : _fieldOption$validate,
validate = fieldOption.validate;
var fieldMeta = this.fieldsStore.getFieldMeta(name);
if ('initialValue' in fieldOption) {
fieldMeta.initialValue = fieldOption.initialValue;
}
var inputProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, this.fieldsStore.getFieldValuePropValue(fieldOption));
var inputListeners = {};
var inputAttrs = {};
if (fieldNameProp) {
inputProps[fieldNameProp] = formName ? formName + '_' + name : name;
}
var validateRules = Object(_utils__WEBPACK_IMPORTED_MODULE_16__["normalizeValidateRules"])(validate, rules, validateTrigger);
var validateTriggers = Object(_utils__WEBPACK_IMPORTED_MODULE_16__["getValidateTriggers"])(validateRules);
validateTriggers.forEach(function (action) {
if (inputListeners[action]) return;
inputListeners[action] = _this3.getCacheBind(name, action, _this3.onCollectValidate);
});
// make sure that the value will be collect
if (trigger && validateTriggers.indexOf(trigger) === -1) {
inputListeners[trigger] = this.getCacheBind(name, trigger, this.onCollect);
}
var meta = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, fieldMeta, fieldOption, {
validate: validateRules
});
this.fieldsStore.setFieldMeta(name, meta);
if (fieldMetaProp) {
inputAttrs[fieldMetaProp] = meta;
}
if (fieldDataProp) {
inputAttrs[fieldDataProp] = this.fieldsStore.getField(name);
}
// This field is rendered, record it
this.renderFields[name] = true;
return {
props: lodash_omit__WEBPACK_IMPORTED_MODULE_10___default()(inputProps, ['id']),
// id: inputProps.id,
domProps: {
value: inputProps.value
},
attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, inputAttrs, {
id: inputProps.id
}),
directives: [{
name: 'ant-ref',
value: this.getCacheBind(name, name + '__ref', this.saveRef)
}],
on: inputListeners
};
},
getFieldInstance: function getFieldInstance(name) {
return this.instances[name];
},
getRules: function getRules(fieldMeta, action) {
var actionRules = fieldMeta.validate.filter(function (item) {
return !action || item.trigger.indexOf(action) >= 0;
}).map(function (item) {
return item.rules;
});
return Object(_utils__WEBPACK_IMPORTED_MODULE_16__["flattenArray"])(actionRules);
},
setFields: function setFields(maybeNestedFields, callback) {
var _this4 = this;
var fields = this.fieldsStore.flattenRegisteredFields(maybeNestedFields);
this.fieldsStore.setFields(fields);
var changedFields = Object.keys(fields).reduce(function (acc, name) {
return lodash_set__WEBPACK_IMPORTED_MODULE_8___default()(acc, name, _this4.fieldsStore.getField(name));
}, {});
if (onFieldsChange) {
var _changedFields = Object.keys(fields).reduce(function (acc, name) {
return lodash_set__WEBPACK_IMPORTED_MODULE_8___default()(acc, name, _this4.fieldsStore.getField(name));
}, {});
onFieldsChange(this, _changedFields, this.fieldsStore.getNestedAllFields());
}
var formContext = templateContext || this;
var allUpdate = false;
Object.keys(changedFields).forEach(function (key) {
var formItem = _this4.formItems[key];
formItem = typeof formItem === 'function' ? formItem() : formItem;
if (formItem && formItem.itemSelfUpdate) {
formItem.$forceUpdate();
} else {
allUpdate = true;
}
});
if (allUpdate) {
formContext.$forceUpdate();
}
this.$nextTick(function () {
callback && callback();
});
},
setFieldsValue: function setFieldsValue(changedValues, callback) {
var fieldsMeta = this.fieldsStore.fieldsMeta;
var values = this.fieldsStore.flattenRegisteredFields(changedValues);
var newFields = Object.keys(values).reduce(function (acc, name) {
var isRegistered = fieldsMeta[name];
if (true) {
warning__WEBPACK_IMPORTED_MODULE_6___default()(isRegistered, 'Cannot use `setFieldsValue` until ' + 'you use `getFieldDecorator` or `getFieldProps` to register it.');
}
if (isRegistered) {
var value = values[name];
acc[name] = {
value: value
};
}
return acc;
}, {});
this.setFields(newFields, callback);
if (onValuesChange) {
var allValues = this.fieldsStore.getAllValues();
onValuesChange(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, formPropName, this.getForm()), this.$props), changedValues, allValues);
}
},
saveRef: function saveRef(name, _, component) {
if (!component) {
var fieldMeta = this.fieldsStore.getFieldMeta(name);
if (!fieldMeta.preserve) {
// after destroy, delete data
this.clearedFieldMetaCache[name] = {
field: this.fieldsStore.getField(name),
meta: fieldMeta
};
this.clearField(name);
}
delete this.domFields[name];
return;
}
this.domFields[name] = true;
this.recoverClearedField(name);
// const fieldMeta = this.fieldsStore.getFieldMeta(name)
// if (fieldMeta) {
// const ref = fieldMeta.ref
// if (ref) {
// if (typeof ref === 'string') {
// throw new Error(`can not set ref string for ${name}`)
// }
// ref(component)
// }
// }
this.instances[name] = component;
},
cleanUpUselessFields: function cleanUpUselessFields() {
var _this5 = this;
var fieldList = this.fieldsStore.getAllFieldsName();
var removedList = fieldList.filter(function (field) {
var fieldMeta = _this5.fieldsStore.getFieldMeta(field);
return !_this5.renderFields[field] && !_this5.domFields[field] && !fieldMeta.preserve;
});
if (removedList.length) {
removedList.forEach(this.clearField);
}
this.renderFields = {};
},
clearField: function clearField(name) {
this.fieldsStore.clearField(name);
delete this.instances[name];
delete this.cachedBind[name];
},
resetFields: function resetFields(ns) {
var _this6 = this;
var newFields = this.fieldsStore.resetFields(ns);
if (Object.keys(newFields).length > 0) {
this.setFields(newFields);
}
if (ns) {
var names = Array.isArray(ns) ? ns : [ns];
names.forEach(function (name) {
return delete _this6.clearedFieldMetaCache[name];
});
} else {
this.clearedFieldMetaCache = {};
}
},
recoverClearedField: function recoverClearedField(name) {
if (this.clearedFieldMetaCache[name]) {
this.fieldsStore.setFields(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, name, this.clearedFieldMetaCache[name].field));
this.fieldsStore.setFieldMeta(name, this.clearedFieldMetaCache[name].meta);
delete this.clearedFieldMetaCache[name];
}
},
validateFieldsInternal: function validateFieldsInternal(fields, _ref, callback) {
var _this7 = this;
var fieldNames = _ref.fieldNames,
action = _ref.action,
_ref$options = _ref.options,
options = _ref$options === undefined ? {} : _ref$options;
var allRules = {};
var allValues = {};
var allFields = {};
var alreadyErrors = {};
fields.forEach(function (field) {
var name = field.name;
if (options.force !== true && field.dirty === false) {
if (field.errors) {
lodash_set__WEBPACK_IMPORTED_MODULE_8___default()(alreadyErrors, name, { errors: field.errors });
}
return;
}
var fieldMeta = _this7.fieldsStore.getFieldMeta(name);
var newField = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, field);
newField.errors = undefined;
newField.validating = true;
newField.dirty = true;
allRules[name] = _this7.getRules(fieldMeta, action);
allValues[name] = newField.value;
allFields[name] = newField;
});
this.setFields(allFields);
// in case normalize
Object.keys(allValues).forEach(function (f) {
allValues[f] = _this7.fieldsStore.getFieldValue(f);
});
if (callback && Object(_utils__WEBPACK_IMPORTED_MODULE_16__["isEmptyObject"])(allFields)) {
callback(Object(_utils__WEBPACK_IMPORTED_MODULE_16__["isEmptyObject"])(alreadyErrors) ? null : alreadyErrors, this.fieldsStore.getFieldsValue(fieldNames));
return;
}
var validator = new async_validator__WEBPACK_IMPORTED_MODULE_5__["default"](allRules);
if (validateMessages) {
validator.messages(validateMessages);
}
validator.validate(allValues, options, function (errors) {
var errorsGroup = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, alreadyErrors);
if (errors && errors.length) {
errors.forEach(function (e) {
var errorFieldName = e.field;
var fieldName = errorFieldName;
// Handle using array validation rule.
// ref: https://github.com/ant-design/ant-design/issues/14275
Object.keys(allRules).some(function (ruleFieldName) {
var rules = allRules[ruleFieldName] || [];
// Exist if match rule
if (ruleFieldName === errorFieldName) {
fieldName = ruleFieldName;
return true;
}
// Skip if not match array type
if (rules.every(function (_ref2) {
var type = _ref2.type;
return type !== 'array';
}) && errorFieldName.indexOf(ruleFieldName) !== 0) {
return false;
}
// Exist if match the field name
var restPath = errorFieldName.slice(ruleFieldName.length + 1);
if (/^\d+$/.test(restPath)) {
fieldName = ruleFieldName;
return true;
}
return false;
});
var field = lodash_get__WEBPACK_IMPORTED_MODULE_7___default()(errorsGroup, fieldName);
if ((typeof field === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(field)) !== 'object' || Array.isArray(field)) {
lodash_set__WEBPACK_IMPORTED_MODULE_8___default()(errorsGroup, fieldName, { errors: [] });
}
var fieldErrors = lodash_get__WEBPACK_IMPORTED_MODULE_7___default()(errorsGroup, fieldName.concat('.errors'));
fieldErrors.push(e);
});
}
var expired = [];
var nowAllFields = {};
Object.keys(allRules).forEach(function (name) {
var fieldErrors = lodash_get__WEBPACK_IMPORTED_MODULE_7___default()(errorsGroup, name);
var nowField = _this7.fieldsStore.getField(name);
// avoid concurrency problems
if (!lodash_eq__WEBPACK_IMPORTED_MODULE_9___default()(nowField.value, allValues[name])) {
expired.push({
name: name
});
} else {
nowField.errors = fieldErrors && fieldErrors.errors;
nowField.value = allValues[name];
nowField.validating = false;
nowField.dirty = false;
nowAllFields[name] = nowField;
}
});
_this7.setFields(nowAllFields);
if (callback) {
if (expired.length) {
expired.forEach(function (_ref3) {
var name = _ref3.name;
var fieldErrors = [{
message: name + ' need to revalidate',
field: name
}];
lodash_set__WEBPACK_IMPORTED_MODULE_8___default()(errorsGroup, name, {
expired: true,
errors: fieldErrors
});
});
}
callback(Object(_utils__WEBPACK_IMPORTED_MODULE_16__["isEmptyObject"])(errorsGroup) ? null : errorsGroup, _this7.fieldsStore.getFieldsValue(fieldNames));
}
});
},
validateFields: function validateFields(ns, opt, cb) {
var _this8 = this;
var pending = new Promise(function (resolve, reject) {
var _getParams = Object(_utils__WEBPACK_IMPORTED_MODULE_16__["getParams"])(ns, opt, cb),
names = _getParams.names,
options = _getParams.options;
var _getParams2 = Object(_utils__WEBPACK_IMPORTED_MODULE_16__["getParams"])(ns, opt, cb),
callback = _getParams2.callback;
if (!callback || typeof callback === 'function') {
var oldCb = callback;
callback = function callback(errors, values) {
if (oldCb) {
oldCb(errors, values);
} else if (errors) {
reject({ errors: errors, values: values });
} else {
resolve(values);
}
};
}
var fieldNames = names ? _this8.fieldsStore.getValidFieldsFullName(names) : _this8.fieldsStore.getValidFieldsName();
var fields = fieldNames.filter(function (name) {
var fieldMeta = _this8.fieldsStore.getFieldMeta(name);
return Object(_utils__WEBPACK_IMPORTED_MODULE_16__["hasRules"])(fieldMeta.validate);
}).map(function (name) {
var field = _this8.fieldsStore.getField(name);
field.value = _this8.fieldsStore.getFieldValue(name);
return field;
});
if (!fields.length) {
callback(null, _this8.fieldsStore.getFieldsValue(fieldNames));
return;
}
if (!('firstFields' in options)) {
options.firstFields = fieldNames.filter(function (name) {
var fieldMeta = _this8.fieldsStore.getFieldMeta(name);
return !!fieldMeta.validateFirst;
});
}
_this8.validateFieldsInternal(fields, {
fieldNames: fieldNames,
options: options
}, callback);
});
pending['catch'](function (e) {
if (console.error && "development" !== 'production') {
console.error(e);
}
return e;
});
return pending;
},
isSubmitting: function isSubmitting() {
if (true) {
warning__WEBPACK_IMPORTED_MODULE_6___default()(false, '`isSubmitting` is deprecated. ' + "Actually, it's more convenient to handle submitting status by yourself.");
}
return this.submitting;
},
submit: function submit(callback) {
var _this9 = this;
if (true) {
warning__WEBPACK_IMPORTED_MODULE_6___default()(false, '`submit` is deprecated. ' + "Actually, it's more convenient to handle submitting status by yourself.");
}
var fn = function fn() {
_this9.setState({
submitting: false
});
};
this.setState({
submitting: true
});
callback(fn);
}
},
render: function render() {
var h = arguments[0];
var $slots = this.$slots,
$scopedSlots = this.$scopedSlots;
var formProps = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, formPropName, this.getForm());
var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["getOptionProps"])(this),
wrappedComponentRef = _getOptionProps.wrappedComponentRef,
restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_getOptionProps, ['wrappedComponentRef']);
var wrappedComponentProps = {
props: mapProps.call(this, babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, formProps, restProps)),
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_14__["getListeners"])(this),
ref: 'WrappedComponent',
directives: [{
name: 'ant-ref',
value: wrappedComponentRef
}]
};
if (Object.keys($scopedSlots).length) {
wrappedComponentProps.scopedSlots = $scopedSlots;
}
var slotsKey = Object.keys($slots);
return WrappedComponent ? h(
WrappedComponent,
wrappedComponentProps,
[slotsKey.length ? slotsKey.map(function (name) {
return h(
'template',
{ slot: name },
[$slots[name]]
);
}) : null]
) : null;
}
};
if (!WrappedComponent) return Form;
if (Array.isArray(WrappedComponent.props)) {
var newProps = {};
WrappedComponent.props.forEach(function (prop) {
newProps[prop] = _util_vue_types__WEBPACK_IMPORTED_MODULE_15__["default"].any;
});
newProps[formPropName] = Object;
WrappedComponent.props = newProps;
} else {
WrappedComponent.props = WrappedComponent.props || {};
if (!(formPropName in WrappedComponent.props)) {
WrappedComponent.props[formPropName] = Object;
}
}
return Object(_utils__WEBPACK_IMPORTED_MODULE_16__["argumentContainer"])(Form, WrappedComponent);
};
}
/* harmony default export */ __webpack_exports__["default"] = (createBaseForm);
/***/ }),
/***/ "./components/vc-form/src/createDOMForm.jsx":
/*!**************************************************!*\
!*** ./components/vc-form/src/createDOMForm.jsx ***!
\**************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var dom_scroll_into_view__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! dom-scroll-into-view */ "./node_modules/dom-scroll-into-view/dist-web/index.js");
/* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/has */ "./node_modules/lodash/has.js");
/* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_has__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _createBaseForm__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./createBaseForm */ "./components/vc-form/src/createBaseForm.jsx");
/* harmony import */ var _createForm__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./createForm */ "./components/vc-form/src/createForm.jsx");
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils */ "./components/vc-form/src/utils.js");
function computedStyle(el, prop) {
var getComputedStyle = window.getComputedStyle;
var style =
// If we have getComputedStyle
getComputedStyle ? // Query it
// TODO: From CSS-Query notes, we might need (node, null) for FF
getComputedStyle(el) : // Otherwise, we are in IE and use currentStyle
el.currentStyle;
if (style) {
return style[
// Switch to camelCase for CSSOM
// DEV: Grabbed from jQuery
// https://github.com/jquery/jquery/blob/1.9-stable/src/css.js#L191-L194
// https://github.com/jquery/jquery/blob/1.9-stable/src/core.js#L593-L597
prop.replace(/-(\w)/gi, function (word, letter) {
return letter.toUpperCase();
})];
}
return undefined;
}
function getScrollableContainer(n) {
var node = n;
var nodeName = void 0;
/* eslint no-cond-assign:0 */
while ((nodeName = node.nodeName.toLowerCase()) !== 'body') {
var overflowY = computedStyle(node, 'overflowY');
// https://stackoverflow.com/a/36900407/3040605
if (node !== n && (overflowY === 'auto' || overflowY === 'scroll') && node.scrollHeight > node.clientHeight) {
return node;
}
node = node.parentNode;
}
return nodeName === 'body' ? node.ownerDocument : node;
}
var mixin = {
methods: {
getForm: function getForm() {
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _createForm__WEBPACK_IMPORTED_MODULE_4__["mixin"].methods.getForm.call(this), {
validateFieldsAndScroll: this.validateFieldsAndScroll
});
},
validateFieldsAndScroll: function validateFieldsAndScroll(ns, opt, cb) {
var _this = this;
var _getParams = Object(_utils__WEBPACK_IMPORTED_MODULE_5__["getParams"])(ns, opt, cb),
names = _getParams.names,
callback = _getParams.callback,
options = _getParams.options;
var newCb = function newCb(error, values) {
if (error) {
var validNames = _this.fieldsStore.getValidFieldsName();
var firstNode = void 0;
var firstTop = void 0;
validNames.forEach(function (name) {
if (lodash_has__WEBPACK_IMPORTED_MODULE_2___default()(error, name)) {
var instance = _this.getFieldInstance(name);
if (instance) {
var node = instance.$el || instance.elm;
var top = node.getBoundingClientRect().top;
if (node.type !== 'hidden' && (firstTop === undefined || firstTop > top)) {
firstTop = top;
firstNode = node;
}
}
}
});
if (firstNode) {
var c = options.container || getScrollableContainer(firstNode);
Object(dom_scroll_into_view__WEBPACK_IMPORTED_MODULE_1__["default"])(firstNode, c, babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
onlyScrollIfNeeded: true
}, options.scroll));
}
}
if (typeof callback === 'function') {
callback(error, values);
}
};
return this.validateFields(names, options, newCb);
}
}
};
function createDOMForm(option) {
return Object(_createBaseForm__WEBPACK_IMPORTED_MODULE_3__["default"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, option), [mixin]);
}
/* harmony default export */ __webpack_exports__["default"] = (createDOMForm);
/***/ }),
/***/ "./components/vc-form/src/createFieldsStore.jsx":
/*!******************************************************!*\
!*** ./components/vc-form/src/createFieldsStore.jsx ***!
\******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return createFieldsStore; });
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/classCallCheck */ "./node_modules/babel-runtime/helpers/classCallCheck.js");
/* harmony import */ var babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/createClass */ "./node_modules/babel-runtime/helpers/createClass.js");
/* harmony import */ var babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var lodash_set__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/set */ "./node_modules/lodash/set.js");
/* harmony import */ var lodash_set__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_set__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _createFormField__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./createFormField */ "./components/vc-form/src/createFormField.jsx");
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils */ "./components/vc-form/src/utils.js");
function partOf(a, b) {
return b.indexOf(a) === 0 && ['.', '['].indexOf(b[a.length]) !== -1;
}
function internalFlattenFields(fields) {
return Object(_utils__WEBPACK_IMPORTED_MODULE_6__["flattenFields"])(fields, function (_, node) {
return Object(_createFormField__WEBPACK_IMPORTED_MODULE_5__["isFormField"])(node);
}, 'You must wrap field data with `createFormField`.');
}
var FieldsStore = function () {
function FieldsStore(fields) {
babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this, FieldsStore);
_initialiseProps.call(this);
this.fields = internalFlattenFields(fields);
this.fieldsMeta = {};
}
babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(FieldsStore, [{
key: 'updateFields',
value: function updateFields(fields) {
this.fields = internalFlattenFields(fields);
}
}, {
key: 'flattenRegisteredFields',
value: function flattenRegisteredFields(fields) {
var validFieldsName = this.getAllFieldsName();
return Object(_utils__WEBPACK_IMPORTED_MODULE_6__["flattenFields"])(fields, function (path) {
return validFieldsName.indexOf(path) >= 0;
}, 'You cannot set a form field before rendering a field associated with the value. You can use `getFieldDecorator(id, options)` instead `v-decorator="[id, options]"` to register it before render.');
}
}, {
key: 'setFields',
value: function setFields(fields) {
var _this = this;
var fieldsMeta = this.fieldsMeta;
var nowFields = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.fields, fields);
var nowValues = {};
Object.keys(fieldsMeta).forEach(function (f) {
nowValues[f] = _this.getValueFromFields(f, nowFields);
});
Object.keys(nowValues).forEach(function (f) {
var value = nowValues[f];
var fieldMeta = _this.getFieldMeta(f);
if (fieldMeta && fieldMeta.normalize) {
var nowValue = fieldMeta.normalize(value, _this.getValueFromFields(f, _this.fields), nowValues);
if (nowValue !== value) {
nowFields[f] = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, nowFields[f], {
value: nowValue
});
}
}
});
this.fields = nowFields;
}
}, {
key: 'resetFields',
value: function resetFields(ns) {
var fields = this.fields;
var names = ns ? this.getValidFieldsFullName(ns) : this.getAllFieldsName();
return names.reduce(function (acc, name) {
var field = fields[name];
if (field && 'value' in field) {
acc[name] = {};
}
return acc;
}, {});
}
}, {
key: 'setFieldMeta',
value: function setFieldMeta(name, meta) {
this.fieldsMeta[name] = meta;
}
}, {
key: 'setFieldsAsDirty',
value: function setFieldsAsDirty() {
var _this2 = this;
Object.keys(this.fields).forEach(function (name) {
var field = _this2.fields[name];
var fieldMeta = _this2.fieldsMeta[name];
if (field && fieldMeta && Object(_utils__WEBPACK_IMPORTED_MODULE_6__["hasRules"])(fieldMeta.validate)) {
_this2.fields[name] = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, field, {
dirty: true
});
}
});
}
}, {
key: 'getFieldMeta',
value: function getFieldMeta(name) {
this.fieldsMeta[name] = this.fieldsMeta[name] || {};
return this.fieldsMeta[name];
}
}, {
key: 'getValueFromFields',
value: function getValueFromFields(name, fields) {
var field = fields[name];
if (field && 'value' in field) {
return field.value;
}
var fieldMeta = this.getFieldMeta(name);
return fieldMeta && fieldMeta.initialValue;
}
}, {
key: 'getValidFieldsName',
value: function getValidFieldsName() {
var _this3 = this;
var fieldsMeta = this.fieldsMeta;
return fieldsMeta ? Object.keys(fieldsMeta).filter(function (name) {
return !_this3.getFieldMeta(name).hidden;
}) : [];
}
}, {
key: 'getAllFieldsName',
value: function getAllFieldsName() {
var fieldsMeta = this.fieldsMeta;
return fieldsMeta ? Object.keys(fieldsMeta) : [];
}
}, {
key: 'getValidFieldsFullName',
value: function getValidFieldsFullName(maybePartialName) {
var maybePartialNames = Array.isArray(maybePartialName) ? maybePartialName : [maybePartialName];
return this.getValidFieldsName().filter(function (fullName) {
return maybePartialNames.some(function (partialName) {
return fullName === partialName || Object(_utils__WEBPACK_IMPORTED_MODULE_6__["startsWith"])(fullName, partialName) && ['.', '['].indexOf(fullName[partialName.length]) >= 0;
});
});
}
}, {
key: 'getFieldValuePropValue',
value: function getFieldValuePropValue(fieldMeta) {
var name = fieldMeta.name,
getValueProps = fieldMeta.getValueProps,
valuePropName = fieldMeta.valuePropName;
var field = this.getField(name);
var fieldValue = 'value' in field ? field.value : fieldMeta.initialValue;
if (getValueProps) {
return getValueProps(fieldValue);
}
return babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, valuePropName, fieldValue);
}
}, {
key: 'getField',
value: function getField(name) {
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.fields[name], {
name: name
});
}
}, {
key: 'getNotCollectedFields',
value: function getNotCollectedFields() {
var _this4 = this;
var fieldsName = this.getValidFieldsName();
return fieldsName.filter(function (name) {
return !_this4.fields[name];
}).map(function (name) {
return {
name: name,
dirty: false,
value: _this4.getFieldMeta(name).initialValue
};
}).reduce(function (acc, field) {
return lodash_set__WEBPACK_IMPORTED_MODULE_4___default()(acc, field.name, Object(_createFormField__WEBPACK_IMPORTED_MODULE_5__["default"])(field));
}, {});
}
}, {
key: 'getNestedAllFields',
value: function getNestedAllFields() {
var _this5 = this;
return Object.keys(this.fields).reduce(function (acc, name) {
return lodash_set__WEBPACK_IMPORTED_MODULE_4___default()(acc, name, Object(_createFormField__WEBPACK_IMPORTED_MODULE_5__["default"])(_this5.fields[name]));
}, this.getNotCollectedFields());
}
}, {
key: 'getFieldMember',
value: function getFieldMember(name, member) {
return this.getField(name)[member];
}
}, {
key: 'getNestedFields',
value: function getNestedFields(names, getter) {
var fields = names || this.getValidFieldsName();
return fields.reduce(function (acc, f) {
return lodash_set__WEBPACK_IMPORTED_MODULE_4___default()(acc, f, getter(f));
}, {});
}
}, {
key: 'getNestedField',
value: function getNestedField(name, getter) {
var fullNames = this.getValidFieldsFullName(name);
if (fullNames.length === 0 || // Not registered
fullNames.length === 1 && fullNames[0] === name // Name already is full name.
) {
return getter(name);
}
var isArrayValue = fullNames[0][name.length] === '[';
var suffixNameStartIndex = isArrayValue ? name.length : name.length + 1;
return fullNames.reduce(function (acc, fullName) {
return lodash_set__WEBPACK_IMPORTED_MODULE_4___default()(acc, fullName.slice(suffixNameStartIndex), getter(fullName));
}, isArrayValue ? [] : {});
}
}, {
key: 'isValidNestedFieldName',
// @private
// BG: `a` and `a.b` cannot be use in the same form
value: function isValidNestedFieldName(name) {
var names = this.getAllFieldsName();
return names.every(function (n) {
return !partOf(n, name) && !partOf(name, n);
});
}
}, {
key: 'clearField',
value: function clearField(name) {
delete this.fields[name];
delete this.fieldsMeta[name];
}
}]);
return FieldsStore;
}();
var _initialiseProps = function _initialiseProps() {
var _this6 = this;
this.setFieldsInitialValue = function (initialValues) {
var flattenedInitialValues = _this6.flattenRegisteredFields(initialValues);
var fieldsMeta = _this6.fieldsMeta;
Object.keys(flattenedInitialValues).forEach(function (name) {
if (fieldsMeta[name]) {
_this6.setFieldMeta(name, babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, _this6.getFieldMeta(name), {
initialValue: flattenedInitialValues[name]
}));
}
});
};
this.getAllValues = function () {
var fieldsMeta = _this6.fieldsMeta,
fields = _this6.fields;
return Object.keys(fieldsMeta).reduce(function (acc, name) {
return lodash_set__WEBPACK_IMPORTED_MODULE_4___default()(acc, name, _this6.getValueFromFields(name, fields));
}, {});
};
this.getFieldsValue = function (names) {
return _this6.getNestedFields(names, _this6.getFieldValue);
};
this.getFieldValue = function (name) {
var fields = _this6.fields;
return _this6.getNestedField(name, function (fullName) {
return _this6.getValueFromFields(fullName, fields);
});
};
this.getFieldsError = function (names) {
return _this6.getNestedFields(names, _this6.getFieldError);
};
this.getFieldError = function (name) {
return _this6.getNestedField(name, function (fullName) {
return Object(_utils__WEBPACK_IMPORTED_MODULE_6__["getErrorStrs"])(_this6.getFieldMember(fullName, 'errors'));
});
};
this.isFieldValidating = function (name) {
return _this6.getFieldMember(name, 'validating');
};
this.isFieldsValidating = function (ns) {
var names = ns || _this6.getValidFieldsName();
return names.some(function (n) {
return _this6.isFieldValidating(n);
});
};
this.isFieldTouched = function (name) {
return _this6.getFieldMember(name, 'touched');
};
this.isFieldsTouched = function (ns) {
var names = ns || _this6.getValidFieldsName();
return names.some(function (n) {
return _this6.isFieldTouched(n);
});
};
};
function createFieldsStore(fields) {
return new FieldsStore(fields);
}
/***/ }),
/***/ "./components/vc-form/src/createForm.jsx":
/*!***********************************************!*\
!*** ./components/vc-form/src/createForm.jsx ***!
\***********************************************/
/*! exports provided: mixin, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mixin", function() { return mixin; });
/* harmony import */ var _createBaseForm__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createBaseForm */ "./components/vc-form/src/createBaseForm.jsx");
var mixin = {
methods: {
getForm: function getForm() {
return {
getFieldsValue: this.fieldsStore.getFieldsValue,
getFieldValue: this.fieldsStore.getFieldValue,
getFieldInstance: this.getFieldInstance,
setFieldsValue: this.setFieldsValue,
setFields: this.setFields,
setFieldsInitialValue: this.fieldsStore.setFieldsInitialValue,
getFieldDecorator: this.getFieldDecorator,
getFieldProps: this.getFieldProps,
getFieldsError: this.fieldsStore.getFieldsError,
getFieldError: this.fieldsStore.getFieldError,
isFieldValidating: this.fieldsStore.isFieldValidating,
isFieldsValidating: this.fieldsStore.isFieldsValidating,
isFieldsTouched: this.fieldsStore.isFieldsTouched,
isFieldTouched: this.fieldsStore.isFieldTouched,
isSubmitting: this.isSubmitting,
submit: this.submit,
validateFields: this.validateFields,
resetFields: this.resetFields
};
}
}
};
function createForm(options) {
return Object(_createBaseForm__WEBPACK_IMPORTED_MODULE_0__["default"])(options, [mixin]);
}
/* harmony default export */ __webpack_exports__["default"] = (createForm);
/***/ }),
/***/ "./components/vc-form/src/createFormField.jsx":
/*!****************************************************!*\
!*** ./components/vc-form/src/createFormField.jsx ***!
\****************************************************/
/*! exports provided: isFormField, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isFormField", function() { return isFormField; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return createFormField; });
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/classCallCheck */ "./node_modules/babel-runtime/helpers/classCallCheck.js");
/* harmony import */ var babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
var Field = function Field(fields) {
babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, Field);
babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()(this, fields);
};
function isFormField(obj) {
return obj instanceof Field;
}
function createFormField(field) {
if (isFormField(field)) {
return field;
}
return new Field(field);
}
/***/ }),
/***/ "./components/vc-form/src/utils.js":
/*!*****************************************!*\
!*** ./components/vc-form/src/utils.js ***!
\*****************************************/
/*! exports provided: argumentContainer, identity, flattenArray, treeTraverse, flattenFields, normalizeValidateRules, getValidateTriggers, getValueFromEvent, getErrorStrs, getParams, isEmptyObject, hasRules, startsWith */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "argumentContainer", function() { return argumentContainer; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "identity", function() { return identity; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "flattenArray", function() { return flattenArray; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "treeTraverse", function() { return treeTraverse; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "flattenFields", function() { return flattenFields; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "normalizeValidateRules", function() { return normalizeValidateRules; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getValidateTriggers", function() { return getValidateTriggers; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getValueFromEvent", function() { return getValueFromEvent; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getErrorStrs", function() { return getErrorStrs; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getParams", function() { return getParams; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isEmptyObject", function() { return isEmptyObject; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasRules", function() { return hasRules; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "startsWith", function() { return startsWith; });
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! warning */ "./node_modules/warning/warning.js");
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_2__);
function getDisplayName(WrappedComponent) {
return WrappedComponent.name || 'WrappedComponent';
}
function argumentContainer(Container, WrappedComponent) {
/* eslint no-param-reassign:0 */
Container.name = 'Form_' + getDisplayName(WrappedComponent);
Container.WrappedComponent = WrappedComponent;
Container.props = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, Container.props, WrappedComponent.props);
return Container;
}
function identity(obj) {
return obj;
}
function flattenArray(arr) {
return Array.prototype.concat.apply([], arr);
}
function treeTraverse() {
var path = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
var tree = arguments[1];
var isLeafNode = arguments[2];
var errorMessage = arguments[3];
var callback = arguments[4];
if (isLeafNode(path, tree)) {
callback(path, tree);
} else if (tree === undefined || tree === null) {
// Do nothing
} else if (Array.isArray(tree)) {
tree.forEach(function (subTree, index) {
return treeTraverse(path + '[' + index + ']', subTree, isLeafNode, errorMessage, callback);
});
} else {
// It's object and not a leaf node
if ((typeof tree === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(tree)) !== 'object') {
warning__WEBPACK_IMPORTED_MODULE_2___default()(false, errorMessage);
return;
}
Object.keys(tree).forEach(function (subTreeKey) {
var subTree = tree[subTreeKey];
treeTraverse('' + path + (path ? '.' : '') + subTreeKey, subTree, isLeafNode, errorMessage, callback);
});
}
}
function flattenFields(maybeNestedFields, isLeafNode, errorMessage) {
var fields = {};
treeTraverse(undefined, maybeNestedFields, isLeafNode, errorMessage, function (path, node) {
fields[path] = node;
});
return fields;
}
function normalizeValidateRules(validate, rules, validateTrigger) {
var validateRules = validate.map(function (item) {
var newItem = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, item, {
trigger: item.trigger || []
});
if (typeof newItem.trigger === 'string') {
newItem.trigger = [newItem.trigger];
}
return newItem;
});
if (rules) {
validateRules.push({
trigger: validateTrigger ? [].concat(validateTrigger) : [],
rules: rules
});
}
return validateRules;
}
function getValidateTriggers(validateRules) {
return validateRules.filter(function (item) {
return !!item.rules && item.rules.length;
}).map(function (item) {
return item.trigger;
}).reduce(function (pre, curr) {
return pre.concat(curr);
}, []);
}
function getValueFromEvent(e) {
// To support custom element
if (!e || !e.target) {
return e;
}
var target = e.target;
return target.type === 'checkbox' ? target.checked : target.value;
}
function getErrorStrs(errors) {
if (errors) {
return errors.map(function (e) {
if (e && e.message) {
return e.message;
}
return e;
});
}
return errors;
}
function getParams(ns, opt, cb) {
var names = ns;
var options = opt;
var callback = cb;
if (cb === undefined) {
if (typeof names === 'function') {
callback = names;
options = {};
names = undefined;
} else if (Array.isArray(names)) {
if (typeof options === 'function') {
callback = options;
options = {};
} else {
options = options || {};
}
} else {
callback = options;
options = names || {};
names = undefined;
}
}
return {
names: names,
options: options,
callback: callback
};
}
function isEmptyObject(obj) {
return Object.keys(obj).length === 0;
}
function hasRules(validate) {
if (validate) {
return validate.some(function (item) {
return item.rules && item.rules.length;
});
}
return false;
}
function startsWith(str, prefix) {
return str.lastIndexOf(prefix, 0) === 0;
}
/***/ }),
/***/ "./components/vc-input-number/src/InputHandler.js":
/*!********************************************************!*\
!*** ./components/vc-input-number/src/InputHandler.js ***!
\********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _vc_m_feedback__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../vc-m-feedback */ "./components/vc-m-feedback/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
var InputHandler = {
name: 'InputHandler',
props: {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool
},
render: function render() {
var h = arguments[0];
var _$props = this.$props,
prefixCls = _$props.prefixCls,
disabled = _$props.disabled;
var touchableProps = {
props: {
disabled: disabled,
activeClassName: prefixCls + '-handler-active'
},
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getListeners"])(this)
};
return h(
_vc_m_feedback__WEBPACK_IMPORTED_MODULE_1__["default"],
touchableProps,
[h('span', [this.$slots['default']])]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (InputHandler);
/***/ }),
/***/ "./components/vc-input-number/src/index.js":
/*!*************************************************!*\
!*** ./components/vc-input-number/src/index.js ***!
\*************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/KeyCode */ "./components/_util/KeyCode.js");
/* harmony import */ var _InputHandler__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./InputHandler */ "./components/vc-input-number/src/InputHandler.js");
// based on rc-input-number 4.5.5
function noop() {}
function preventDefault(e) {
e.preventDefault();
}
function defaultParser(input) {
return input.replace(/[^\w\.-]+/g, '');
}
/**
* When click and hold on a button - the speed of auto changin the value.
*/
var SPEED = 200;
/**
* When click and hold on a button - the delay before auto changin the value.
*/
var DELAY = 600;
/**
* Max Safe Integer -- on IE this is not available, so manually set the number in that case.
* The reason this is used, instead of Infinity is because numbers above the MSI are unstable
*/
var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || Math.pow(2, 53) - 1;
var isValidProps = function isValidProps(value) {
return value !== undefined && value !== null;
};
var isEqual = function isEqual(oldValue, newValue) {
return newValue === oldValue || typeof newValue === 'number' && typeof oldValue === 'number' && isNaN(newValue) && isNaN(oldValue);
};
var inputNumberProps = {
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string]),
defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string]),
focusOnUpDown: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
// onChange: PropTypes.func,
// onKeyDown: PropTypes.func,
// onKeyUp: PropTypes.func,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number]),
placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
// onFocus: PropTypes.func,
// onBlur: PropTypes.func,
readonly: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
max: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
min: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
step: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string]),
upHandler: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
downHandler: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
useTouch: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
formatter: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
parser: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
// onMouseEnter: PropTypes.func,
// onMouseLeave: PropTypes.func,
// onMouseOver: PropTypes.func,
// onMouseOut: PropTypes.func,
precision: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
required: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
pattern: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
decimalSeparator: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
autoComplete: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
title: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
name: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
id: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string
};
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'VCInputNumber',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
model: {
prop: 'value',
event: 'change'
},
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["initDefaultProps"])(inputNumberProps, {
focusOnUpDown: true,
useTouch: false,
prefixCls: 'rc-input-number',
min: -MAX_SAFE_INTEGER,
step: 1,
parser: defaultParser,
required: false,
autoComplete: 'off'
}),
data: function data() {
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
this.prevProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, props);
var value = void 0;
if ('value' in props) {
value = this.value;
} else {
value = this.defaultValue;
}
var validValue = this.getValidValue(this.toNumber(value));
return {
inputValue: this.toPrecisionAsStep(validValue),
sValue: validValue,
focused: this.autoFocus
};
},
mounted: function mounted() {
var _this = this;
this.$nextTick(function () {
if (_this.autoFocus && !_this.disabled) {
_this.focus();
}
_this.updatedFunc();
});
},
updated: function updated() {
var _this2 = this;
var _$props = this.$props,
value = _$props.value,
max = _$props.max,
min = _$props.min;
var focused = this.$data.focused;
var prevProps = this.prevProps;
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
// Don't trigger in componentDidMount
if (prevProps) {
if (!isEqual(prevProps.value, value) || !isEqual(prevProps.max, max) || !isEqual(prevProps.min, min)) {
var validValue = focused ? value : this.getValidValue(value);
var nextInputValue = void 0;
if (this.pressingUpOrDown) {
nextInputValue = validValue;
} else if (this.inputting) {
nextInputValue = this.rawInput;
} else {
nextInputValue = this.toPrecisionAsStep(validValue);
}
this.setState({
// eslint-disable-line
sValue: validValue,
inputValue: nextInputValue
});
}
// Trigger onChange when max or min change
// https://github.com/ant-design/ant-design/issues/11574
var nextValue = 'value' in props ? value : this.sValue;
// ref: null < 20 === true
// https://github.com/ant-design/ant-design/issues/14277
if ('max' in props && prevProps.max !== max && typeof nextValue === 'number' && nextValue > max) {
this.$emit('change', max);
}
if ('min' in props && prevProps.min !== min && typeof nextValue === 'number' && nextValue < min) {
this.$emit('change', min);
}
}
this.prevProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, props);
this.$nextTick(function () {
_this2.updatedFunc();
});
},
beforeDestroy: function beforeDestroy() {
this.stop();
},
methods: {
updatedFunc: function updatedFunc() {
var inputElem = this.$refs.inputRef;
// Restore cursor
try {
// Firefox set the input cursor after it get focused.
// This caused that if an input didn't init with the selection,
// set will cause cursor not correct when first focus.
// Safari will focus input if set selection. We need skip this.
if (this.cursorStart !== undefined && this.focused) {
// In most cases, the string after cursor is stable.
// We can move the cursor before it
if (
// If not match full str, try to match part of str
!this.partRestoreByAfter(this.cursorAfter) && this.sValue !== this.value) {
// If not match any of then, let's just keep the position
// TODO: Logic should not reach here, need check if happens
var pos = this.cursorStart + 1;
// If not have last string, just position to the end
if (!this.cursorAfter) {
pos = inputElem.value.length;
} else if (this.lastKeyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].BACKSPACE) {
pos = this.cursorStart - 1;
} else if (this.lastKeyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].DELETE) {
pos = this.cursorStart;
}
this.fixCaret(pos, pos);
} else if (this.currentValue === inputElem.value) {
// Handle some special key code
switch (this.lastKeyCode) {
case _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].BACKSPACE:
this.fixCaret(this.cursorStart - 1, this.cursorStart - 1);
break;
case _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].DELETE:
this.fixCaret(this.cursorStart + 1, this.cursorStart + 1);
break;
default:
// Do nothing
}
}
}
} catch (e) {}
// Do nothing
// Reset last key
this.lastKeyCode = null;
// pressingUpOrDown is true means that someone just click up or down button
if (!this.pressingUpOrDown) {
return;
}
if (this.focusOnUpDown && this.focused) {
if (document.activeElement !== inputElem) {
this.focus();
}
}
this.pressingUpOrDown = false;
},
onKeyDown: function onKeyDown(e) {
if (e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].UP) {
var ratio = this.getRatio(e);
this.up(e, ratio);
this.stop();
} else if (e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].DOWN) {
var _ratio = this.getRatio(e);
this.down(e, _ratio);
this.stop();
} else if (e.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].ENTER) {
this.$emit('pressEnter', e);
}
// Trigger user key down
this.recordCursorPosition();
this.lastKeyCode = e.keyCode;
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
args[_key - 1] = arguments[_key];
}
this.$emit.apply(this, ['keydown', e].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(args)));
},
onKeyUp: function onKeyUp(e) {
this.stop();
this.recordCursorPosition();
for (var _len2 = arguments.length, args = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
args[_key2 - 1] = arguments[_key2];
}
this.$emit.apply(this, ['keyup', e].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(args)));
},
onTrigger: function onTrigger(e) {
if (e.target.composing) return false;
this.onChange(e);
},
onChange: function onChange(e) {
if (this.focused) {
this.inputting = true;
}
this.rawInput = this.parser(this.getValueFromEvent(e));
this.setState({ inputValue: this.rawInput });
this.$emit('change', this.toNumber(this.rawInput)); // valid number or invalid string
},
onFocus: function onFocus() {
this.setState({
focused: true
});
for (var _len3 = arguments.length, args = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
args[_key3] = arguments[_key3];
}
this.$emit.apply(this, ['focus'].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(args)));
},
onBlur: function onBlur() {
this.inputting = false;
this.setState({
focused: false
});
var value = this.getCurrentValidValue(this.inputValue);
var newValue = this.setValue(value);
if (this.$listeners.blur) {
var originValue = this.$refs.inputRef.value;
var inputValue = this.getInputDisplayValue({ focused: false, sValue: newValue });
this.$refs.inputRef.value = inputValue;
for (var _len4 = arguments.length, args = Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
args[_key4] = arguments[_key4];
}
this.$emit.apply(this, ['blur'].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(args)));
this.$refs.inputRef.value = originValue;
}
},
getCurrentValidValue: function getCurrentValidValue(value) {
var val = value;
if (val === '') {
val = '';
} else if (!this.isNotCompleteNumber(parseFloat(val, 10))) {
val = this.getValidValue(val);
} else {
val = this.sValue;
}
return this.toNumber(val);
},
getRatio: function getRatio(e) {
var ratio = 1;
if (e.metaKey || e.ctrlKey) {
ratio = 0.1;
} else if (e.shiftKey) {
ratio = 10;
}
return ratio;
},
getValueFromEvent: function getValueFromEvent(e) {
// optimize for chinese input expierence
// https://github.com/ant-design/ant-design/issues/8196
var value = e.target.value.trim().replace(/。/g, '.');
if (isValidProps(this.decimalSeparator)) {
value = value.replace(this.decimalSeparator, '.');
}
return value;
},
getValidValue: function getValidValue(value) {
var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.min;
var max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.max;
var val = parseFloat(value, 10);
// https://github.com/ant-design/ant-design/issues/7358
if (isNaN(val)) {
return value;
}
if (val < min) {
val = min;
}
if (val > max) {
val = max;
}
return val;
},
setValue: function setValue(v, callback) {
// trigger onChange
var precision = this.$props.precision;
var newValue = this.isNotCompleteNumber(parseFloat(v, 10)) ? null : parseFloat(v, 10);
var _$data = this.$data,
_$data$sValue = _$data.sValue,
value = _$data$sValue === undefined ? null : _$data$sValue,
_$data$inputValue = _$data.inputValue,
inputValue = _$data$inputValue === undefined ? null : _$data$inputValue;
// https://github.com/ant-design/ant-design/issues/7363
// https://github.com/ant-design/ant-design/issues/16622
var newValueInString = typeof newValue === 'number' ? newValue.toFixed(precision) : '' + newValue;
var changed = newValue !== value || newValueInString !== '' + inputValue;
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'value')) {
this.setState({
sValue: newValue,
inputValue: this.toPrecisionAsStep(v)
}, callback);
} else {
// always set input value same as value
this.setState({
inputValue: this.toPrecisionAsStep(this.sValue)
}, callback);
}
if (changed) {
this.$emit('change', newValue);
}
return newValue;
},
getPrecision: function getPrecision(value) {
if (isValidProps(this.precision)) {
return this.precision;
}
var valueString = value.toString();
if (valueString.indexOf('e-') >= 0) {
return parseInt(valueString.slice(valueString.indexOf('e-') + 2), 10);
}
var precision = 0;
if (valueString.indexOf('.') >= 0) {
precision = valueString.length - valueString.indexOf('.') - 1;
}
return precision;
},
// step={1.0} value={1.51}
// press +
// then value should be 2.51, rather than 2.5
// if this.$props.precision is undefined
// https://github.com/react-component/input-number/issues/39
getMaxPrecision: function getMaxPrecision(currentValue) {
var ratio = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
if (isValidProps(this.precision)) {
return this.precision;
}
var step = this.step;
var ratioPrecision = this.getPrecision(ratio);
var stepPrecision = this.getPrecision(step);
var currentValuePrecision = this.getPrecision(currentValue);
if (!currentValue) {
return ratioPrecision + stepPrecision;
}
return Math.max(currentValuePrecision, ratioPrecision + stepPrecision);
},
getPrecisionFactor: function getPrecisionFactor(currentValue) {
var ratio = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
var precision = this.getMaxPrecision(currentValue, ratio);
return Math.pow(10, precision);
},
getInputDisplayValue: function getInputDisplayValue(state) {
var _ref = state || this.$data,
focused = _ref.focused,
inputValue = _ref.inputValue,
sValue = _ref.sValue;
var inputDisplayValue = void 0;
if (focused) {
inputDisplayValue = inputValue;
} else {
inputDisplayValue = this.toPrecisionAsStep(sValue);
}
if (inputDisplayValue === undefined || inputDisplayValue === null) {
inputDisplayValue = '';
}
var inputDisplayValueFormat = this.formatWrapper(inputDisplayValue);
if (isValidProps(this.$props.decimalSeparator)) {
inputDisplayValueFormat = inputDisplayValueFormat.toString().replace('.', this.$props.decimalSeparator);
}
return inputDisplayValueFormat;
},
recordCursorPosition: function recordCursorPosition() {
// Record position
try {
var inputElem = this.$refs.inputRef;
this.cursorStart = inputElem.selectionStart;
this.cursorEnd = inputElem.selectionEnd;
this.currentValue = inputElem.value;
this.cursorBefore = inputElem.value.substring(0, this.cursorStart);
this.cursorAfter = inputElem.value.substring(this.cursorEnd);
} catch (e) {
// Fix error in Chrome:
// Failed to read the 'selectionStart' property from 'HTMLInputElement'
// http://stackoverflow.com/q/21177489/3040605
}
},
fixCaret: function fixCaret(start, end) {
if (start === undefined || end === undefined || !this.$refs.inputRef || !this.$refs.inputRef.value) {
return;
}
try {
var inputElem = this.$refs.inputRef;
var currentStart = inputElem.selectionStart;
var currentEnd = inputElem.selectionEnd;
if (start !== currentStart || end !== currentEnd) {
inputElem.setSelectionRange(start, end);
}
} catch (e) {
// Fix error in Chrome:
// Failed to read the 'selectionStart' property from 'HTMLInputElement'
// http://stackoverflow.com/q/21177489/3040605
}
},
restoreByAfter: function restoreByAfter(str) {
if (str === undefined) return false;
var fullStr = this.$refs.inputRef.value;
var index = fullStr.lastIndexOf(str);
if (index === -1) return false;
var prevCursorPos = this.cursorBefore.length;
if (this.lastKeyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].DELETE && this.cursorBefore.charAt(prevCursorPos - 1) === str[0]) {
this.fixCaret(prevCursorPos, prevCursorPos);
return true;
}
if (index + str.length === fullStr.length) {
this.fixCaret(index, index);
return true;
}
return false;
},
partRestoreByAfter: function partRestoreByAfter(str) {
var _this3 = this;
if (str === undefined) return false;
// For loop from full str to the str with last char to map. e.g. 123
// -> 123
// -> 23
// -> 3
return Array.prototype.some.call(str, function (_, start) {
var partStr = str.substring(start);
return _this3.restoreByAfter(partStr);
});
},
focus: function focus() {
this.$refs.inputRef.focus();
this.recordCursorPosition();
},
blur: function blur() {
this.$refs.inputRef.blur();
},
formatWrapper: function formatWrapper(num) {
// http://2ality.com/2012/03/signedzero.html
// https://github.com/ant-design/ant-design/issues/9439
if (this.formatter) {
return this.formatter(num);
}
return num;
},
toPrecisionAsStep: function toPrecisionAsStep(num) {
if (this.isNotCompleteNumber(num) || num === '') {
return num;
}
var precision = Math.abs(this.getMaxPrecision(num));
if (!isNaN(precision)) {
return Number(num).toFixed(precision);
}
return num.toString();
},
// '1.' '1x' 'xx' '' => are not complete numbers
isNotCompleteNumber: function isNotCompleteNumber(num) {
return isNaN(num) || num === '' || num === null || num && num.toString().indexOf('.') === num.toString().length - 1;
},
toNumber: function toNumber(num) {
var _$props2 = this.$props,
precision = _$props2.precision,
autoFocus = _$props2.autoFocus;
var _focused = this.focused,
focused = _focused === undefined ? autoFocus : _focused;
// num.length > 16 => This is to prevent input of large numbers
var numberIsTooLarge = num && num.length > 16 && focused;
if (this.isNotCompleteNumber(num) || numberIsTooLarge) {
return num;
}
if (isValidProps(precision)) {
return Math.round(num * Math.pow(10, precision)) / Math.pow(10, precision);
}
return Number(num);
},
upStep: function upStep(val, rat) {
var step = this.step;
var precisionFactor = this.getPrecisionFactor(val, rat);
var precision = Math.abs(this.getMaxPrecision(val, rat));
var result = ((precisionFactor * val + precisionFactor * step * rat) / precisionFactor).toFixed(precision);
return this.toNumber(result);
},
downStep: function downStep(val, rat) {
var step = this.step;
var precisionFactor = this.getPrecisionFactor(val, rat);
var precision = Math.abs(this.getMaxPrecision(val, rat));
var result = ((precisionFactor * val - precisionFactor * step * rat) / precisionFactor).toFixed(precision);
return this.toNumber(result);
},
stepFn: function stepFn(type, e) {
var _this4 = this;
var ratio = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
var recursive = arguments[3];
this.stop();
if (e) {
// e.persist()
e.preventDefault();
}
if (this.disabled) {
return;
}
var max = this.max,
min = this.min;
var value = this.getCurrentValidValue(this.inputValue) || 0;
if (this.isNotCompleteNumber(value)) {
return;
}
var val = this[type + 'Step'](value, ratio);
var outOfRange = val > max || val < min;
if (val > max) {
val = max;
} else if (val < min) {
val = min;
}
this.setValue(val);
this.setState({
focused: true
});
if (outOfRange) {
return;
}
this.autoStepTimer = setTimeout(function () {
_this4[type](e, ratio, true);
}, recursive ? SPEED : DELAY);
},
stop: function stop() {
if (this.autoStepTimer) {
clearTimeout(this.autoStepTimer);
}
},
down: function down(e, ratio, recursive) {
this.pressingUpOrDown = true;
this.stepFn('down', e, ratio, recursive);
},
up: function up(e, ratio, recursive) {
this.pressingUpOrDown = true;
this.stepFn('up', e, ratio, recursive);
},
handleInputClick: function handleInputClick() {
this.$emit('click');
},
onCompositionstart: function onCompositionstart(e) {
e.target.composing = true;
},
onCompositionend: function onCompositionend(e) {
this.onChange(e);
e.target.composing = false;
}
},
render: function render() {
var _classNames;
var h = arguments[0];
var _$props3 = this.$props,
prefixCls = _$props3.prefixCls,
disabled = _$props3.disabled,
readonly = _$props3.readonly,
useTouch = _$props3.useTouch,
autoComplete = _$props3.autoComplete,
upHandler = _$props3.upHandler,
downHandler = _$props3.downHandler;
var classes = classnames__WEBPACK_IMPORTED_MODULE_6___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-disabled', disabled), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-focused', this.focused), _classNames));
var upDisabledClass = '';
var downDisabledClass = '';
var sValue = this.sValue;
if (sValue || sValue === 0) {
if (!isNaN(sValue)) {
var val = Number(sValue);
if (val >= this.max) {
upDisabledClass = prefixCls + '-handler-up-disabled';
}
if (val <= this.min) {
downDisabledClass = prefixCls + '-handler-down-disabled';
}
} else {
upDisabledClass = prefixCls + '-handler-up-disabled';
downDisabledClass = prefixCls + '-handler-down-disabled';
}
}
var editable = !this.readonly && !this.disabled;
// focus state, show input value
// unfocus state, show valid value
var inputDisplayValue = this.getInputDisplayValue();
var upEvents = void 0;
var downEvents = void 0;
if (useTouch) {
upEvents = {
touchstart: editable && !upDisabledClass ? this.up : noop,
touchend: this.stop
};
downEvents = {
touchstart: editable && !downDisabledClass ? this.down : noop,
touchend: this.stop
};
} else {
upEvents = {
mousedown: editable && !upDisabledClass ? this.up : noop,
mouseup: this.stop,
mouseleave: this.stop
};
downEvents = {
mousedown: editable && !downDisabledClass ? this.down : noop,
mouseup: this.stop,
mouseleave: this.stop
};
}
var isUpDisabled = !!upDisabledClass || disabled || readonly;
var isDownDisabled = !!downDisabledClass || disabled || readonly;
var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this),
_getListeners$mouseen = _getListeners.mouseenter,
mouseenter = _getListeners$mouseen === undefined ? noop : _getListeners$mouseen,
_getListeners$mousele = _getListeners.mouseleave,
mouseleave = _getListeners$mousele === undefined ? noop : _getListeners$mousele,
_getListeners$mouseov = _getListeners.mouseover,
mouseover = _getListeners$mouseov === undefined ? noop : _getListeners$mouseov,
_getListeners$mouseou = _getListeners.mouseout,
mouseout = _getListeners$mouseou === undefined ? noop : _getListeners$mouseou;
var contentProps = {
on: { mouseenter: mouseenter, mouseleave: mouseleave, mouseover: mouseover, mouseout: mouseout },
'class': classes,
attrs: { title: this.$props.title }
};
var upHandlerProps = {
props: {
disabled: isUpDisabled,
prefixCls: prefixCls
},
attrs: {
unselectable: 'unselectable',
role: 'button',
'aria-label': 'Increase Value',
'aria-disabled': !!isUpDisabled
},
'class': prefixCls + '-handler ' + prefixCls + '-handler-up ' + upDisabledClass,
on: upEvents,
ref: 'up'
};
var downHandlerProps = {
props: {
disabled: isDownDisabled,
prefixCls: prefixCls
},
attrs: {
unselectable: 'unselectable',
role: 'button',
'aria-label': 'Decrease Value',
'aria-disabled': !!isDownDisabled
},
'class': prefixCls + '-handler ' + prefixCls + '-handler-down ' + downDisabledClass,
on: downEvents,
ref: 'down'
};
// ref for test
return h(
'div',
contentProps,
[h(
'div',
{ 'class': prefixCls + '-handler-wrap' },
[h(
_InputHandler__WEBPACK_IMPORTED_MODULE_8__["default"],
upHandlerProps,
[upHandler || h('span', {
attrs: {
unselectable: 'unselectable'
},
'class': prefixCls + '-handler-up-inner',
on: {
'click': preventDefault
}
})]
), h(
_InputHandler__WEBPACK_IMPORTED_MODULE_8__["default"],
downHandlerProps,
[downHandler || h('span', {
attrs: {
unselectable: 'unselectable'
},
'class': prefixCls + '-handler-down-inner',
on: {
'click': preventDefault
}
})]
)]
), h(
'div',
{ 'class': prefixCls + '-input-wrap' },
[h('input', {
attrs: {
role: 'spinbutton',
'aria-valuemin': this.min,
'aria-valuemax': this.max,
'aria-valuenow': sValue,
required: this.required,
type: this.type,
placeholder: this.placeholder,
tabIndex: this.tabIndex,
autoComplete: autoComplete,
readonly: this.readonly,
disabled: this.disabled,
max: this.max,
min: this.min,
step: this.step,
name: this.name,
title: this.title,
id: this.id,
pattern: this.pattern
},
on: {
'click': this.handleInputClick,
'focus': this.onFocus,
'blur': this.onBlur,
'keydown': editable ? this.onKeyDown : noop,
'keyup': editable ? this.onKeyUp : noop,
'input': this.onTrigger,
'compositionstart': this.onCompositionstart,
'compositionend': this.onCompositionend
},
'class': prefixCls + '-input',
ref: 'inputRef',
domProps: {
'value': inputDisplayValue
}
})]
)]
);
}
});
/***/ }),
/***/ "./components/vc-lazy-load/index.js":
/*!******************************************!*\
!*** ./components/vc-lazy-load/index.js ***!
\******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _src_LazyLoad__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./src/LazyLoad */ "./components/vc-lazy-load/src/LazyLoad.jsx");
/* harmony default export */ __webpack_exports__["default"] = (_src_LazyLoad__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/vc-lazy-load/src/LazyLoad.jsx":
/*!**************************************************!*\
!*** ./components/vc-lazy-load/src/LazyLoad.jsx ***!
\**************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../vc-util/Dom/addEventListener */ "./components/vc-util/Dom/addEventListener.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/warning */ "./components/_util/warning.js");
/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/debounce */ "./node_modules/lodash/debounce.js");
/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var lodash_throttle__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/throttle */ "./node_modules/lodash/throttle.js");
/* harmony import */ var lodash_throttle__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_throttle__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _utils_parentScroll__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils/parentScroll */ "./components/vc-lazy-load/src/utils/parentScroll.js");
/* harmony import */ var _utils_inViewport__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/inViewport */ "./components/vc-lazy-load/src/utils/inViewport.js");
var lazyLoadProps = {
debounce: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
elementType: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
height: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]),
offset: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
offsetBottom: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
offsetHorizontal: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
offsetLeft: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
offsetRight: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
offsetTop: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
offsetVertical: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
threshold: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
throttle: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
width: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]),
_propsSymbol: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any
};
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'LazyLoad',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__["default"]],
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["initDefaultProps"])(lazyLoadProps, {
elementType: 'div',
debounce: true,
offset: 0,
offsetBottom: 0,
offsetHorizontal: 0,
offsetLeft: 0,
offsetRight: 0,
offsetTop: 0,
offsetVertical: 0,
throttle: 250
}),
data: function data() {
if (this.throttle > 0) {
if (this.debounce) {
this.lazyLoadHandler = lodash_debounce__WEBPACK_IMPORTED_MODULE_5___default()(this.lazyLoadHandler, this.throttle);
} else {
this.lazyLoadHandler = lodash_throttle__WEBPACK_IMPORTED_MODULE_6___default()(this.lazyLoadHandler, this.throttle);
}
}
return {
visible: false
};
},
watch: {
_propsSymbol: function _propsSymbol() {
if (!this.visible) {
this.lazyLoadHandler();
}
}
},
mounted: function mounted() {
var _this = this;
this.$nextTick(function () {
_this._mounted = true;
var eventNode = _this.getEventNode();
_this.lazyLoadHandler();
if (_this.lazyLoadHandler.flush) {
_this.lazyLoadHandler.flush();
}
_this.resizeHander = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_2__["default"])(window, 'resize', _this.lazyLoadHandler);
_this.scrollHander = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_2__["default"])(eventNode, 'scroll', _this.lazyLoadHandler);
});
},
beforeDestroy: function beforeDestroy() {
this._mounted = false;
if (this.lazyLoadHandler.cancel) {
this.lazyLoadHandler.cancel();
}
this.detachListeners();
},
methods: {
getEventNode: function getEventNode() {
return Object(_utils_parentScroll__WEBPACK_IMPORTED_MODULE_7__["default"])(this.$el);
},
getOffset: function getOffset() {
var _$props = this.$props,
offset = _$props.offset,
offsetVertical = _$props.offsetVertical,
offsetHorizontal = _$props.offsetHorizontal,
offsetTop = _$props.offsetTop,
offsetBottom = _$props.offsetBottom,
offsetLeft = _$props.offsetLeft,
offsetRight = _$props.offsetRight,
threshold = _$props.threshold;
var _offsetAll = threshold || offset;
var _offsetVertical = offsetVertical || _offsetAll;
var _offsetHorizontal = offsetHorizontal || _offsetAll;
return {
top: offsetTop || _offsetVertical,
bottom: offsetBottom || _offsetVertical,
left: offsetLeft || _offsetHorizontal,
right: offsetRight || _offsetHorizontal
};
},
lazyLoadHandler: function lazyLoadHandler() {
var _this2 = this;
if (!this._mounted) {
return;
}
var offset = this.getOffset();
var node = this.$el;
var eventNode = this.getEventNode();
if (Object(_utils_inViewport__WEBPACK_IMPORTED_MODULE_8__["default"])(node, eventNode, offset)) {
this.setState({ visible: true }, function () {
_this2.__emit('contentVisible');
});
this.detachListeners();
}
},
detachListeners: function detachListeners() {
this.resizeHander && this.resizeHander.remove();
this.scrollHander && this.scrollHander.remove();
}
},
render: function render(createElement) {
var children = this.$slots['default'];
if (children.length !== 1) {
Object(_util_warning__WEBPACK_IMPORTED_MODULE_4__["default"])(false, 'lazyLoad组件只能包含一个子元素');
return null;
}
var _$props2 = this.$props,
height = _$props2.height,
width = _$props2.width,
elementType = _$props2.elementType;
var visible = this.visible;
var elStyles = {
height: typeof height === 'number' ? height + 'px' : height,
width: typeof width === 'number' ? width + 'px' : width
};
var elClasses = {
LazyLoad: true,
'is-visible': visible
};
return createElement(elementType, {
'class': elClasses,
style: elStyles
}, [visible ? children[0] : null]);
}
});
/***/ }),
/***/ "./components/vc-lazy-load/src/utils/getElementPosition.js":
/*!*****************************************************************!*\
!*** ./components/vc-lazy-load/src/utils/getElementPosition.js ***!
\*****************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return getElementPosition; });
/*
* Finds element's position relative to the whole document,
* rather than to the viewport as it is the case with .getBoundingClientRect().
*/
function getElementPosition(element) {
var rect = element.getBoundingClientRect();
return {
top: rect.top + window.pageYOffset,
left: rect.left + window.pageXOffset
};
}
/***/ }),
/***/ "./components/vc-lazy-load/src/utils/inViewport.js":
/*!*********************************************************!*\
!*** ./components/vc-lazy-load/src/utils/inViewport.js ***!
\*********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return inViewport; });
/* harmony import */ var _getElementPosition__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getElementPosition */ "./components/vc-lazy-load/src/utils/getElementPosition.js");
var isHidden = function isHidden(element) {
return element.offsetParent === null;
};
function inViewport(element, container, customOffset) {
if (isHidden(element)) {
return false;
}
var top = void 0;
var bottom = void 0;
var left = void 0;
var right = void 0;
if (typeof container === 'undefined' || container === window) {
top = window.pageYOffset;
left = window.pageXOffset;
bottom = top + window.innerHeight;
right = left + window.innerWidth;
} else {
var containerPosition = Object(_getElementPosition__WEBPACK_IMPORTED_MODULE_0__["default"])(container);
top = containerPosition.top;
left = containerPosition.left;
bottom = top + container.offsetHeight;
right = left + container.offsetWidth;
}
var elementPosition = Object(_getElementPosition__WEBPACK_IMPORTED_MODULE_0__["default"])(element);
return top <= elementPosition.top + element.offsetHeight + customOffset.top && bottom >= elementPosition.top - customOffset.bottom && left <= elementPosition.left + element.offsetWidth + customOffset.left && right >= elementPosition.left - customOffset.right;
}
/***/ }),
/***/ "./components/vc-lazy-load/src/utils/parentScroll.js":
/*!***********************************************************!*\
!*** ./components/vc-lazy-load/src/utils/parentScroll.js ***!
\***********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
var style = function style(element, prop) {
var styleVal = '';
if (typeof getComputedStyle !== 'undefined') {
styleVal = window.getComputedStyle(element, null).getPropertyValue(prop);
} else {
styleVal = element.style[prop];
}
return styleVal;
};
var overflow = function overflow(element) {
return style(element, 'overflow') + style(element, 'overflow-y') + style(element, 'overflow-x');
};
var scrollParent = function scrollParent(element) {
if (!(element instanceof window.HTMLElement)) {
return window;
}
var parent = element;
while (parent) {
if (parent === document.body || parent === document.documentElement) {
break;
}
if (!parent.parentNode) {
break;
}
if (/(scroll|auto)/.test(overflow(parent))) {
return parent;
}
parent = parent.parentNode;
}
return window;
};
/* harmony default export */ __webpack_exports__["default"] = (scrollParent);
/***/ }),
/***/ "./components/vc-m-feedback/index.js":
/*!*******************************************!*\
!*** ./components/vc-m-feedback/index.js ***!
\*******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _src_TouchFeedback__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./src/TouchFeedback */ "./components/vc-m-feedback/src/TouchFeedback.jsx");
// based on 2.0.0
/* harmony default export */ __webpack_exports__["default"] = (_src_TouchFeedback__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/vc-m-feedback/src/PropTypes.jsx":
/*!****************************************************!*\
!*** ./components/vc-m-feedback/src/PropTypes.jsx ***!
\****************************************************/
/*! exports provided: ITouchProps */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ITouchProps", function() { return ITouchProps; });
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
var ITouchProps = {
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
activeClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
activeStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any
// onTouchStart: PropTypes.func,
// onTouchEnd: PropTypes.func,
// onTouchCancel: PropTypes.func,
// onMouseDown: PropTypes.func,
// onMouseUp: PropTypes.func,
// onMouseLeave: PropTypes.func,
};
/***/ }),
/***/ "./components/vc-m-feedback/src/TouchFeedback.jsx":
/*!********************************************************!*\
!*** ./components/vc-m-feedback/src/TouchFeedback.jsx ***!
\********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/warning */ "./components/_util/warning.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _PropTypes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./PropTypes */ "./components/vc-m-feedback/src/PropTypes.jsx");
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'TouchFeedback',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["initDefaultProps"])(_PropTypes__WEBPACK_IMPORTED_MODULE_5__["ITouchProps"], {
disabled: false
}),
data: function data() {
return {
active: false
};
},
mounted: function mounted() {
var _this = this;
this.$nextTick(function () {
if (_this.disabled && _this.active) {
_this.setState({
active: false
});
}
});
},
methods: {
triggerEvent: function triggerEvent(type, isActive, ev) {
// 暂时仅有input-number用到事件直接到挂载到Touchable上不需要像antd那样从子组件触发
this.$emit(type, ev);
if (isActive !== this.active) {
this.setState({
active: isActive
});
}
},
onTouchStart: function onTouchStart(e) {
this.triggerEvent('touchstart', true, e);
},
onTouchMove: function onTouchMove(e) {
this.triggerEvent('touchmove', false, e);
},
onTouchEnd: function onTouchEnd(e) {
this.triggerEvent('touchend', false, e);
},
onTouchCancel: function onTouchCancel(e) {
this.triggerEvent('touchcancel', false, e);
},
onMouseDown: function onMouseDown(e) {
// pc simulate mobile
this.triggerEvent('mousedown', true, e);
},
onMouseUp: function onMouseUp(e) {
this.triggerEvent('mouseup', false, e);
},
onMouseLeave: function onMouseLeave(e) {
this.triggerEvent('mouseleave', false, e);
}
},
render: function render() {
var _$props = this.$props,
disabled = _$props.disabled,
_$props$activeClassNa = _$props.activeClassName,
activeClassName = _$props$activeClassNa === undefined ? '' : _$props$activeClassNa,
_$props$activeStyle = _$props.activeStyle,
activeStyle = _$props$activeStyle === undefined ? {} : _$props$activeStyle;
var child = this.$slots['default'];
if (child.length !== 1) {
Object(_util_warning__WEBPACK_IMPORTED_MODULE_3__["default"])(false, 'm-feedback组件只能包含一个子元素');
return null;
}
var childProps = {
on: disabled ? {} : {
touchstart: this.onTouchStart,
touchmove: this.onTouchMove,
touchend: this.onTouchEnd,
touchcancel: this.onTouchCancel,
mousedown: this.onMouseDown,
mouseup: this.onMouseUp,
mouseleave: this.onMouseLeave
}
};
if (!disabled && this.active) {
childProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, childProps, {
style: activeStyle,
'class': activeClassName
});
}
return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(child, childProps);
}
});
/***/ }),
/***/ "./components/vc-mentions/index.js":
/*!*****************************************!*\
!*** ./components/vc-mentions/index.js ***!
\*****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _src_Mentions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./src/Mentions */ "./components/vc-mentions/src/Mentions.jsx");
/* harmony import */ var _src_Option__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./src/Option */ "./components/vc-mentions/src/Option.jsx");
_src_Mentions__WEBPACK_IMPORTED_MODULE_0__["default"].Option = _src_Option__WEBPACK_IMPORTED_MODULE_1__["default"];
/* harmony default export */ __webpack_exports__["default"] = (_src_Mentions__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/vc-mentions/src/DropdownMenu.jsx":
/*!*****************************************************!*\
!*** ./components/vc-mentions/src/DropdownMenu.jsx ***!
\*****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _vc_menu__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../vc-menu */ "./components/vc-menu/index.js");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _Option__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Option */ "./components/vc-mentions/src/Option.jsx");
function noop() {}
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'DropdownMenu',
props: {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
options: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].arrayOf(_Option__WEBPACK_IMPORTED_MODULE_2__["OptionProps"])
},
inject: {
mentionsContext: { 'default': {} }
},
render: function render() {
var h = arguments[0];
var _mentionsContext = this.mentionsContext,
notFoundContent = _mentionsContext.notFoundContent,
activeIndex = _mentionsContext.activeIndex,
setActiveIndex = _mentionsContext.setActiveIndex,
selectOption = _mentionsContext.selectOption,
_mentionsContext$onFo = _mentionsContext.onFocus,
onFocus = _mentionsContext$onFo === undefined ? noop : _mentionsContext$onFo,
_mentionsContext$onBl = _mentionsContext.onBlur,
onBlur = _mentionsContext$onBl === undefined ? noop : _mentionsContext$onBl;
var _$props = this.$props,
prefixCls = _$props.prefixCls,
options = _$props.options;
var activeOption = options[activeIndex] || {};
return h(
_vc_menu__WEBPACK_IMPORTED_MODULE_0__["default"],
{
props: {
prefixCls: prefixCls + '-menu',
activeKey: activeOption.value
},
on: {
select: function select(_ref) {
var key = _ref.key;
var option = options.find(function (_ref2) {
var value = _ref2.value;
return value === key;
});
selectOption(option);
},
focus: onFocus,
blur: onBlur
}
},
[options.map(function (option, index) {
var value = option.value,
disabled = option.disabled,
children = option.children;
return h(
_vc_menu__WEBPACK_IMPORTED_MODULE_0__["MenuItem"],
{
key: value,
attrs: { disabled: disabled
},
on: {
'mouseenter': function mouseenter() {
setActiveIndex(index);
}
}
},
[children]
);
}), !options.length && h(
_vc_menu__WEBPACK_IMPORTED_MODULE_0__["MenuItem"],
{
attrs: { disabled: true }
},
[notFoundContent]
)]
);
}
});
/***/ }),
/***/ "./components/vc-mentions/src/KeywordTrigger.jsx":
/*!*******************************************************!*\
!*** ./components/vc-mentions/src/KeywordTrigger.jsx ***!
\*******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _vc_trigger__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../vc-trigger */ "./components/vc-trigger/index.js");
/* harmony import */ var _DropdownMenu__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./DropdownMenu */ "./components/vc-mentions/src/DropdownMenu.jsx");
/* harmony import */ var _Option__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Option */ "./components/vc-mentions/src/Option.jsx");
/* harmony import */ var _placement__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./placement */ "./components/vc-mentions/src/placement.js");
var BUILT_IN_PLACEMENTS = {
bottomRight: {
points: ['tl', 'br'],
offset: [0, 4],
overflow: {
adjustX: 0,
adjustY: 1
}
},
topRight: {
points: ['bl', 'tr'],
offset: [0, -4],
overflow: {
adjustX: 0,
adjustY: 1
}
}
};
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'KeywordTrigger',
props: {
loading: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
options: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].arrayOf(_Option__WEBPACK_IMPORTED_MODULE_3__["OptionProps"]),
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
placement: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(_placement__WEBPACK_IMPORTED_MODULE_4__["PlaceMent"]),
visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func
},
methods: {
getDropdownPrefix: function getDropdownPrefix() {
return this.$props.prefixCls + '-dropdown';
},
getDropdownElement: function getDropdownElement() {
var h = this.$createElement;
var options = this.$props.options;
return h(_DropdownMenu__WEBPACK_IMPORTED_MODULE_2__["default"], {
attrs: { prefixCls: this.getDropdownPrefix(), options: options }
});
}
},
render: function render() {
var h = arguments[0];
var _$props = this.$props,
visible = _$props.visible,
placement = _$props.placement,
transitionName = _$props.transitionName,
getPopupContainer = _$props.getPopupContainer;
var $slots = this.$slots;
var children = $slots['default'];
var popupElement = this.getDropdownElement();
return h(
_vc_trigger__WEBPACK_IMPORTED_MODULE_1__["default"],
{
attrs: {
prefixCls: this.getDropdownPrefix(),
popupVisible: visible,
popup: popupElement,
popupPlacement: placement === 'top' ? 'topRight' : 'bottomRight',
popupTransitionName: transitionName,
builtinPlacements: BUILT_IN_PLACEMENTS,
getPopupContainer: getPopupContainer
}
},
[children]
);
}
});
/***/ }),
/***/ "./components/vc-mentions/src/Mentions.jsx":
/*!*************************************************!*\
!*** ./components/vc-mentions/src/Mentions.jsx ***!
\*************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
/* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/KeyCode */ "./components/_util/KeyCode.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! warning */ "./node_modules/warning/warning.js");
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./util */ "./components/vc-mentions/src/util.js");
/* harmony import */ var _KeywordTrigger__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./KeywordTrigger */ "./components/vc-mentions/src/KeywordTrigger.jsx");
/* harmony import */ var _mentionsProps__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./mentionsProps */ "./components/vc-mentions/src/mentionsProps.js");
function noop() {}
var Mentions = {
name: 'Mentions',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__["default"]],
inheritAttrs: false,
model: {
prop: 'value',
event: 'change'
},
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["initDefaultProps"])(_mentionsProps__WEBPACK_IMPORTED_MODULE_10__["vcMentionsProps"], _mentionsProps__WEBPACK_IMPORTED_MODULE_10__["defaultProps"]),
provide: function provide() {
return {
mentionsContext: this
};
},
data: function data() {
var _$props = this.$props,
_$props$value = _$props.value,
value = _$props$value === undefined ? '' : _$props$value,
_$props$defaultValue = _$props.defaultValue,
defaultValue = _$props$defaultValue === undefined ? '' : _$props$defaultValue;
warning__WEBPACK_IMPORTED_MODULE_7___default()(this.$props.children, 'please children prop replace slots.default');
return {
_value: !Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'value') ? defaultValue : value,
measuring: false,
measureLocation: 0,
measureText: null,
measurePrefix: '',
activeIndex: 0,
isFocus: false
};
},
watch: {
value: function value(val) {
this.$data._value = val;
}
},
updated: function updated() {
var _this = this;
this.$nextTick(function () {
var measuring = _this.$data.measuring;
// Sync measure div top with textarea for rc-trigger usage
if (measuring) {
_this.$refs.measure.scrollTop = _this.$refs.textarea.scrollTop;
}
});
},
methods: {
triggerChange: function triggerChange(value) {
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(this);
if (!('value' in props)) {
this.setState({ _value: value });
} else {
this.$forceUpdate();
}
this.$emit('change', value);
},
onChange: function onChange(_ref) {
var _ref$target = _ref.target,
value = _ref$target.value,
composing = _ref$target.composing,
isComposing = _ref.isComposing;
if (isComposing || composing) return;
this.triggerChange(value);
},
onKeyDown: function onKeyDown(event) {
var which = event.which;
var _$data = this.$data,
activeIndex = _$data.activeIndex,
measuring = _$data.measuring;
// Skip if not measuring
if (!measuring) {
return;
}
if (which === _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__["default"].UP || which === _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__["default"].DOWN) {
// Control arrow function
var optionLen = this.getOptions().length;
var offset = which === _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__["default"].UP ? -1 : 1;
var newActiveIndex = (activeIndex + offset + optionLen) % optionLen;
this.setState({
activeIndex: newActiveIndex
});
event.preventDefault();
} else if (which === _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__["default"].ESC) {
this.stopMeasure();
} else if (which === _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__["default"].ENTER) {
// Measure hit
event.preventDefault();
var options = this.getOptions();
if (!options.length) {
this.stopMeasure();
return;
}
var option = options[activeIndex];
this.selectOption(option);
}
},
/**
* When to start measure:
* 1. When user press `prefix`
* 2. When measureText !== prevMeasureText
* - If measure hit
* - If measuring
*
* When to stop measure:
* 1. Selection is out of range
* 2. Contains `space`
* 3. ESC or select one
*/
onKeyUp: function onKeyUp(event) {
var key = event.key,
which = event.which;
var _$data2 = this.$data,
prevMeasureText = _$data2.measureText,
measuring = _$data2.measuring;
var _$props2 = this.$props,
_$props2$prefix = _$props2.prefix,
prefix = _$props2$prefix === undefined ? '' : _$props2$prefix,
validateSearch = _$props2.validateSearch;
var target = event.target;
var selectionStartText = Object(_util__WEBPACK_IMPORTED_MODULE_8__["getBeforeSelectionText"])(target);
var _getLastMeasureIndex = Object(_util__WEBPACK_IMPORTED_MODULE_8__["getLastMeasureIndex"])(selectionStartText, prefix),
measureIndex = _getLastMeasureIndex.location,
measurePrefix = _getLastMeasureIndex.prefix;
// Skip if match the white key list
if ([_util_KeyCode__WEBPACK_IMPORTED_MODULE_4__["default"].ESC, _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__["default"].UP, _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__["default"].DOWN, _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__["default"].ENTER].indexOf(which) !== -1) {
return;
}
if (measureIndex !== -1) {
var measureText = selectionStartText.slice(measureIndex + measurePrefix.length);
var validateMeasure = validateSearch(measureText, this.$props);
var matchOption = !!this.getOptions(measureText).length;
if (validateMeasure) {
if (key === measurePrefix || measuring || measureText !== prevMeasureText && matchOption) {
this.startMeasure(measureText, measurePrefix, measureIndex);
}
} else if (measuring) {
// Stop if measureText is invalidate
this.stopMeasure();
}
/**
* We will trigger `onSearch` to developer since they may use for async update.
* If met `space` means user finished searching.
*/
if (validateMeasure) {
this.$emit('search', measureText, measurePrefix);
}
} else if (measuring) {
this.stopMeasure();
}
},
onInputFocus: function onInputFocus(event) {
this.onFocus(event);
},
onInputBlur: function onInputBlur(event) {
this.onBlur(event);
},
onDropdownFocus: function onDropdownFocus() {
this.onFocus();
},
onDropdownBlur: function onDropdownBlur() {
this.onBlur();
},
onFocus: function onFocus(event) {
window.clearTimeout(this.focusId);
var isFocus = this.$data.isFocus;
if (!isFocus && event) {
this.$emit('focus', event);
}
this.setState({ isFocus: true });
},
onBlur: function onBlur(event) {
var _this2 = this;
this.focusId = window.setTimeout(function () {
_this2.setState({ isFocus: false });
_this2.stopMeasure();
_this2.$emit('blur', event);
}, 0);
},
selectOption: function selectOption(option) {
var _this3 = this;
var _$data3 = this.$data,
value = _$data3._value,
measureLocation = _$data3.measureLocation,
measurePrefix = _$data3.measurePrefix;
var split = this.$props.split;
var _option$value = option.value,
mentionValue = _option$value === undefined ? '' : _option$value;
var _replaceWithMeasure = Object(_util__WEBPACK_IMPORTED_MODULE_8__["replaceWithMeasure"])(value, {
measureLocation: measureLocation,
targetText: mentionValue,
prefix: measurePrefix,
selectionStart: this.$refs.textarea.selectionStart,
split: split
}),
text = _replaceWithMeasure.text,
selectionLocation = _replaceWithMeasure.selectionLocation;
this.triggerChange(text);
this.stopMeasure(function () {
// We need restore the selection position
Object(_util__WEBPACK_IMPORTED_MODULE_8__["setInputSelection"])(_this3.$refs.textarea, selectionLocation);
});
this.$emit('select', option, measurePrefix);
},
setActiveIndex: function setActiveIndex(activeIndex) {
this.setState({
activeIndex: activeIndex
});
},
getOptions: function getOptions(measureText) {
var targetMeasureText = measureText || this.$data.measureText || '';
var _$props3 = this.$props,
filterOption = _$props3.filterOption,
_$props3$children = _$props3.children,
children = _$props3$children === undefined ? [] : _$props3$children;
var list = (Array.isArray(children) ? children : [children]).map(function (item) {
var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getSlots"])(item)['default'];
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(item), { children: children });
}).filter(function (option) {
/** Return all result if `filterOption` is false. */
if (filterOption === false) {
return true;
}
return filterOption(targetMeasureText, option);
});
return list;
},
startMeasure: function startMeasure(measureText, measurePrefix, measureLocation) {
this.setState({
measuring: true,
measureText: measureText,
measurePrefix: measurePrefix,
measureLocation: measureLocation,
activeIndex: 0
});
},
stopMeasure: function stopMeasure(callback) {
this.setState({
measuring: false,
measureLocation: 0,
measureText: null
}, callback);
},
focus: function focus() {
this.$refs.textarea.focus();
},
blur: function blur() {
this.$refs.textarea.blur();
}
},
render: function render() {
var h = arguments[0];
var _$data4 = this.$data,
value = _$data4._value,
measureLocation = _$data4.measureLocation,
measurePrefix = _$data4.measurePrefix,
measuring = _$data4.measuring;
var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(this),
prefixCls = _getOptionProps.prefixCls,
placement = _getOptionProps.placement,
transitionName = _getOptionProps.transitionName,
autoFocus = _getOptionProps.autoFocus,
notFoundContent = _getOptionProps.notFoundContent,
getPopupContainer = _getOptionProps.getPopupContainer,
restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_getOptionProps, ['prefixCls', 'placement', 'transitionName', 'autoFocus', 'notFoundContent', 'getPopupContainer']);
var inputProps = Object(omit_js__WEBPACK_IMPORTED_MODULE_3__["default"])(restProps, ['value', 'defaultValue', 'prefix', 'split', 'children', 'validateSearch', 'filterOption']);
var options = measuring ? this.getOptions() : [];
return h(
'div',
{ 'class': prefixCls },
[h('textarea', babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
ref: 'textarea'
}, {
directives: [{ name: 'ant-input' }],
attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, inputProps, this.$attrs),
domProps: {
value: value
},
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this), {
select: noop,
change: noop,
input: this.onChange,
keydown: this.onKeyDown,
keyup: this.onKeyUp,
blur: this.onInputBlur
})
}])), measuring && h(
'div',
{ ref: 'measure', 'class': prefixCls + '-measure' },
[value.slice(0, measureLocation), h(
_KeywordTrigger__WEBPACK_IMPORTED_MODULE_9__["default"],
{
attrs: {
prefixCls: prefixCls,
transitionName: transitionName,
placement: placement,
options: options,
visible: true,
getPopupContainer: getPopupContainer
}
},
[h('span', [measurePrefix])]
), value.slice(measureLocation + measurePrefix.length)]
)]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (Mentions);
/***/ }),
/***/ "./components/vc-mentions/src/Option.jsx":
/*!***********************************************!*\
!*** ./components/vc-mentions/src/Option.jsx ***!
\***********************************************/
/*! exports provided: OptionProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OptionProps", function() { return OptionProps; });
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
var OptionProps = {
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].boolean,
children: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any
};
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'Option',
props: OptionProps,
render: function render() {
return null;
}
});
/***/ }),
/***/ "./components/vc-mentions/src/mentionsProps.js":
/*!*****************************************************!*\
!*** ./components/vc-mentions/src/mentionsProps.js ***!
\*****************************************************/
/*! exports provided: mentionsProps, vcMentionsProps, defaultProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mentionsProps", function() { return mentionsProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "vcMentionsProps", function() { return vcMentionsProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultProps", function() { return defaultProps; });
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./util */ "./components/vc-mentions/src/util.js");
/* harmony import */ var _placement__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./placement */ "./components/vc-mentions/src/placement.js");
var mentionsProps = {
autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
prefix: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array]),
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
notFoundContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
split: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
placement: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOf(_placement__WEBPACK_IMPORTED_MODULE_4__["PlaceMent"]),
character: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
characterRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
filterOption: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
validateSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
};
var vcMentionsProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, mentionsProps, {
children: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
});
var defaultProps = {
prefix: '@',
split: ' ',
validateSearch: _util__WEBPACK_IMPORTED_MODULE_3__["validateSearch"],
filterOption: _util__WEBPACK_IMPORTED_MODULE_3__["filterOption"]
};
/* harmony default export */ __webpack_exports__["default"] = (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["initDefaultProps"])(vcMentionsProps, defaultProps));
/***/ }),
/***/ "./components/vc-mentions/src/placement.js":
/*!*************************************************!*\
!*** ./components/vc-mentions/src/placement.js ***!
\*************************************************/
/*! exports provided: PlaceMent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlaceMent", function() { return PlaceMent; });
var PlaceMent = ['top', 'bottom'];
/***/ }),
/***/ "./components/vc-mentions/src/util.js":
/*!********************************************!*\
!*** ./components/vc-mentions/src/util.js ***!
\********************************************/
/*! exports provided: getBeforeSelectionText, getLastMeasureIndex, replaceWithMeasure, setInputSelection, validateSearch, filterOption */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getBeforeSelectionText", function() { return getBeforeSelectionText; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLastMeasureIndex", function() { return getLastMeasureIndex; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "replaceWithMeasure", function() { return replaceWithMeasure; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setInputSelection", function() { return setInputSelection; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validateSearch", function() { return validateSearch; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "filterOption", function() { return filterOption; });
/**
* Cut input selection into 2 part and return text before selection start
*/
function getBeforeSelectionText(input) {
var selectionStart = input.selectionStart;
return input.value.slice(0, selectionStart);
}
function lower(char) {
return (char || '').toLowerCase();
}
/**
* Find the last match prefix index
*/
function getLastMeasureIndex(text) {
var prefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
var prefixList = Array.isArray(prefix) ? prefix : [prefix];
return prefixList.reduce(function (lastMatch, prefixStr) {
var lastIndex = text.lastIndexOf(prefixStr);
if (lastIndex > lastMatch.location) {
return {
location: lastIndex,
prefix: prefixStr
};
}
return lastMatch;
}, { location: -1, prefix: '' });
}
function reduceText(text, targetText, split) {
var firstChar = text[0];
if (!firstChar || firstChar === split) {
return text;
}
// Reuse rest text as it can
var restText = text;
var targetTextLen = targetText.length;
for (var i = 0; i < targetTextLen; i += 1) {
if (lower(restText[i]) !== lower(targetText[i])) {
restText = restText.slice(i);
break;
} else if (i === targetTextLen - 1) {
restText = restText.slice(targetTextLen);
}
}
return restText;
}
/**
* Paint targetText into current text:
* text: little@litest
* targetText: light
* => little @light test
*/
function replaceWithMeasure(text, measureConfig) {
var measureLocation = measureConfig.measureLocation,
prefix = measureConfig.prefix,
targetText = measureConfig.targetText,
selectionStart = measureConfig.selectionStart,
split = measureConfig.split;
// Before text will append one space if have other text
var beforeMeasureText = text.slice(0, measureLocation);
if (beforeMeasureText[beforeMeasureText.length - split.length] === split) {
beforeMeasureText = beforeMeasureText.slice(0, beforeMeasureText.length - split.length);
}
if (beforeMeasureText) {
beforeMeasureText = '' + beforeMeasureText + split;
}
// Cut duplicate string with current targetText
var restText = reduceText(text.slice(selectionStart), targetText.slice(selectionStart - measureLocation - prefix.length), split);
if (restText.slice(0, split.length) === split) {
restText = restText.slice(split.length);
}
var connectedStartText = '' + beforeMeasureText + prefix + targetText + split;
return {
text: '' + connectedStartText + restText,
selectionLocation: connectedStartText.length
};
}
function setInputSelection(input, location) {
input.setSelectionRange(location, location);
/**
* Reset caret into view.
* Since this function always called by user control, it's safe to focus element.
*/
input.blur();
input.focus();
}
function validateSearch() {
var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var split = props.split;
return !split || text.indexOf(split) === -1;
}
function filterOption() {
var input = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
_ref$value = _ref.value,
value = _ref$value === undefined ? '' : _ref$value;
var lowerCase = input.toLowerCase();
return value.toLowerCase().indexOf(lowerCase) !== -1;
}
/***/ }),
/***/ "./components/vc-menu/DOMWrap.jsx":
/*!****************************************!*\
!*** ./components/vc-menu/DOMWrap.jsx ***!
\****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! resize-observer-polyfill */ "./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js");
/* harmony import */ var _SubMenu__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./SubMenu */ "./components/vc-menu/SubMenu.jsx");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./util */ "./components/vc-menu/util.js");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
var MENUITEM_OVERFLOWED_CLASSNAME = 'menuitem-overflowed';
var FLOAT_PRECISION_ADJUST = 0.5;
// Fix ssr
if (canUseDOM) {
__webpack_require__(/*! mutationobserver-shim */ "./node_modules/mutationobserver-shim/dist/mutationobserver.min.js");
}
var DOMWrap = {
name: 'DOMWrap',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__["default"]],
data: function data() {
this.resizeObserver = null;
this.mutationObserver = null;
// original scroll size of the list
this.originalTotalWidth = 0;
// copy of overflowed items
this.overflowedItems = [];
// cache item of the original items (so we can track the size and order)
this.menuItemSizes = [];
return {
lastVisibleIndex: undefined
};
},
mounted: function mounted() {
var _this = this;
this.$nextTick(function () {
_this.setChildrenWidthAndResize();
if (_this.level === 1 && _this.mode === 'horizontal') {
var menuUl = _this.$el;
if (!menuUl) {
return;
}
_this.resizeObserver = new resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_4__["default"](function (entries) {
entries.forEach(_this.setChildrenWidthAndResize);
});
[].slice.call(menuUl.children).concat(menuUl).forEach(function (el) {
_this.resizeObserver.observe(el);
});
if (typeof MutationObserver !== 'undefined') {
_this.mutationObserver = new MutationObserver(function () {
_this.resizeObserver.disconnect();
[].slice.call(menuUl.children).concat(menuUl).forEach(function (el) {
_this.resizeObserver.observe(el);
});
_this.setChildrenWidthAndResize();
});
_this.mutationObserver.observe(menuUl, {
attributes: false,
childList: true,
subTree: false
});
}
}
});
},
beforeDestroy: function beforeDestroy() {
if (this.resizeObserver) {
this.resizeObserver.disconnect();
}
if (this.mutationObserver) {
this.mutationObserver.disconnect();
}
},
methods: {
// get all valid menuItem nodes
getMenuItemNodes: function getMenuItemNodes() {
var prefixCls = this.$props.prefixCls;
var ul = this.$el;
if (!ul) {
return [];
}
// filter out all overflowed indicator placeholder
return [].slice.call(ul.children).filter(function (node) {
return node.className.split(' ').indexOf(prefixCls + '-overflowed-submenu') < 0;
});
},
getOverflowedSubMenuItem: function getOverflowedSubMenuItem(keyPrefix, overflowedItems, renderPlaceholder) {
var h = this.$createElement;
var _$props = this.$props,
overflowedIndicator = _$props.overflowedIndicator,
level = _$props.level,
mode = _$props.mode,
prefixCls = _$props.prefixCls,
theme = _$props.theme;
if (level !== 1 || mode !== 'horizontal') {
return null;
}
// put all the overflowed item inside a submenu
// with a title of overflow indicator ('...')
var copy = this.$slots['default'][0];
var _getPropsData = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getPropsData"])(copy),
title = _getPropsData.title,
rest = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(_getPropsData, ['title']); // eslint-disable-line no-unused-vars
var events = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getEvents"])(copy);
var style = {};
var key = keyPrefix + '-overflowed-indicator';
var eventKey = keyPrefix + '-overflowed-indicator';
if (overflowedItems.length === 0 && renderPlaceholder !== true) {
style = {
display: 'none'
};
} else if (renderPlaceholder) {
style = {
visibility: 'hidden',
// prevent from taking normal dom space
position: 'absolute'
};
key = key + '-placeholder';
eventKey = eventKey + '-placeholder';
}
var popupClassName = theme ? prefixCls + '-' + theme : '';
var props = {};
var on = {};
_util__WEBPACK_IMPORTED_MODULE_7__["menuAllProps"].props.forEach(function (k) {
if (rest[k] !== undefined) {
props[k] = rest[k];
}
});
_util__WEBPACK_IMPORTED_MODULE_7__["menuAllProps"].on.forEach(function (k) {
if (events[k] !== undefined) {
on[k] = events[k];
}
});
var subMenuProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
title: overflowedIndicator,
popupClassName: popupClassName
}, props, {
eventKey: eventKey,
disabled: false
}),
'class': prefixCls + '-overflowed-submenu',
key: key,
style: style,
on: on
};
return h(
_SubMenu__WEBPACK_IMPORTED_MODULE_5__["default"],
subMenuProps,
[overflowedItems]
);
},
// memorize rendered menuSize
setChildrenWidthAndResize: function setChildrenWidthAndResize() {
if (this.mode !== 'horizontal') {
return;
}
var ul = this.$el;
if (!ul) {
return;
}
var ulChildrenNodes = ul.children;
if (!ulChildrenNodes || ulChildrenNodes.length === 0) {
return;
}
var lastOverflowedIndicatorPlaceholder = ul.children[ulChildrenNodes.length - 1];
// need last overflowed indicator for calculating length;
Object(_util__WEBPACK_IMPORTED_MODULE_7__["setStyle"])(lastOverflowedIndicatorPlaceholder, 'display', 'inline-block');
var menuItemNodes = this.getMenuItemNodes();
// reset display attribute for all hidden elements caused by overflow to calculate updated width
// and then reset to original state after width calculation
var overflowedItems = menuItemNodes.filter(function (c) {
return c.className.split(' ').indexOf(MENUITEM_OVERFLOWED_CLASSNAME) >= 0;
});
overflowedItems.forEach(function (c) {
Object(_util__WEBPACK_IMPORTED_MODULE_7__["setStyle"])(c, 'display', 'inline-block');
});
this.menuItemSizes = menuItemNodes.map(function (c) {
return Object(_util__WEBPACK_IMPORTED_MODULE_7__["getWidth"])(c);
});
overflowedItems.forEach(function (c) {
Object(_util__WEBPACK_IMPORTED_MODULE_7__["setStyle"])(c, 'display', 'none');
});
this.overflowedIndicatorWidth = Object(_util__WEBPACK_IMPORTED_MODULE_7__["getWidth"])(ul.children[ul.children.length - 1]);
this.originalTotalWidth = this.menuItemSizes.reduce(function (acc, cur) {
return acc + cur;
}, 0);
this.handleResize();
// prevent the overflowed indicator from taking space;
Object(_util__WEBPACK_IMPORTED_MODULE_7__["setStyle"])(lastOverflowedIndicatorPlaceholder, 'display', 'none');
},
handleResize: function handleResize() {
var _this2 = this;
if (this.mode !== 'horizontal') {
return;
}
var ul = this.$el;
if (!ul) {
return;
}
var width = Object(_util__WEBPACK_IMPORTED_MODULE_7__["getWidth"])(ul);
this.overflowedItems = [];
var currentSumWidth = 0;
// index for last visible child in horizontal mode
var lastVisibleIndex = void 0;
// float number comparison could be problematic
// e.g. 0.1 + 0.2 > 0.3 =====> true
// thus using FLOAT_PRECISION_ADJUST as buffer to help the situation
if (this.originalTotalWidth > width + FLOAT_PRECISION_ADJUST) {
lastVisibleIndex = -1;
this.menuItemSizes.forEach(function (liWidth) {
currentSumWidth += liWidth;
if (currentSumWidth + _this2.overflowedIndicatorWidth <= width) {
lastVisibleIndex += 1;
}
});
}
this.setState({ lastVisibleIndex: lastVisibleIndex });
},
renderChildren: function renderChildren(children) {
var _this3 = this;
// need to take care of overflowed items in horizontal mode
var lastVisibleIndex = this.$data.lastVisibleIndex;
var className = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getClass"])(this);
return (children || []).reduce(function (acc, childNode, index) {
var item = childNode;
var eventKey = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getPropsData"])(childNode).eventKey;
if (_this3.mode === 'horizontal') {
var overflowed = _this3.getOverflowedSubMenuItem(eventKey, []);
if (lastVisibleIndex !== undefined && className[_this3.prefixCls + '-root'] !== -1) {
if (index > lastVisibleIndex) {
item = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_8__["cloneElement"])(childNode,
// 这里修改 eventKey 是为了防止隐藏状态下还会触发 openkeys 事件
{
style: { display: 'none' },
props: { eventKey: eventKey + '-hidden' },
'class': MENUITEM_OVERFLOWED_CLASSNAME
});
}
if (index === lastVisibleIndex + 1) {
_this3.overflowedItems = children.slice(lastVisibleIndex + 1).map(function (c) {
return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_8__["cloneElement"])(c,
// children[index].key will become '.$key' in clone by default,
// we have to overwrite with the correct key explicitly
{
key: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getPropsData"])(c).eventKey,
props: { mode: 'vertical-left' }
});
});
overflowed = _this3.getOverflowedSubMenuItem(eventKey, _this3.overflowedItems);
}
}
var ret = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(acc), [overflowed, item]);
if (index === children.length - 1) {
// need a placeholder for calculating overflowed indicator width
ret.push(_this3.getOverflowedSubMenuItem(eventKey, [], true));
}
return ret;
}
return [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(acc), [item]);
}, []);
}
},
render: function render() {
var h = arguments[0];
var Tag = this.$props.tag;
var tagProps = {
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getListeners"])(this)
};
return h(
Tag,
tagProps,
[this.renderChildren(this.$slots['default'])]
);
}
};
DOMWrap.props = {
mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']),
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
level: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
theme: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
overflowedIndicator: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].node,
visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
hiddenClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
tag: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.def('div')
};
/* harmony default export */ __webpack_exports__["default"] = (DOMWrap);
/***/ }),
/***/ "./components/vc-menu/Divider.jsx":
/*!****************************************!*\
!*** ./components/vc-menu/Divider.jsx ***!
\****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'MenuDivider',
props: {
disabled: {
type: Boolean,
'default': true
},
rootPrefixCls: String
},
render: function render() {
var h = arguments[0];
var rootPrefixCls = this.$props.rootPrefixCls;
return h('li', { 'class': rootPrefixCls + '-item-divider' });
}
});
/***/ }),
/***/ "./components/vc-menu/Menu.jsx":
/*!*************************************!*\
!*** ./components/vc-menu/Menu.jsx ***!
\*************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_store__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/store */ "./components/_util/store/index.js");
/* harmony import */ var _SubPopupMenu__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./SubPopupMenu */ "./components/vc-menu/SubPopupMenu.jsx");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _commonPropsType__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./commonPropsType */ "./components/vc-menu/commonPropsType.js");
var Menu = {
name: 'Menu',
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _commonPropsType__WEBPACK_IMPORTED_MODULE_6__["default"], {
selectable: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool.def(true)
}),
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
data: function data() {
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
var selectedKeys = props.defaultSelectedKeys;
var openKeys = props.defaultOpenKeys;
if ('selectedKeys' in props) {
selectedKeys = props.selectedKeys || [];
}
if ('openKeys' in props) {
openKeys = props.openKeys || [];
}
this.store = Object(_util_store__WEBPACK_IMPORTED_MODULE_2__["create"])({
selectedKeys: selectedKeys,
openKeys: openKeys,
activeKey: {
'0-menu-': Object(_SubPopupMenu__WEBPACK_IMPORTED_MODULE_3__["getActiveKey"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, { children: this.$slots['default'] || [] }), props.activeKey)
}
});
// this.isRootMenu = true // 声明在props上
return {};
},
mounted: function mounted() {
this.updateMiniStore();
},
updated: function updated() {
this.updateMiniStore();
},
methods: {
onSelect: function onSelect(selectInfo) {
var props = this.$props;
if (props.selectable) {
// root menu
var selectedKeys = this.store.getState().selectedKeys;
var selectedKey = selectInfo.key;
if (props.multiple) {
selectedKeys = selectedKeys.concat([selectedKey]);
} else {
selectedKeys = [selectedKey];
}
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["default"])(this, 'selectedKeys')) {
this.store.setState({
selectedKeys: selectedKeys
});
}
this.__emit('select', babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, selectInfo, {
selectedKeys: selectedKeys
}));
}
},
onClick: function onClick(e) {
this.__emit('click', e);
},
// onKeyDown needs to be exposed as a instance method
// e.g., in rc-select, we need to navigate menu item while
// current active item is rc-select input box rather than the menu itself
onKeyDown: function onKeyDown(e, callback) {
this.$refs.innerMenu.getWrappedInstance().onKeyDown(e, callback);
},
onOpenChange: function onOpenChange(event) {
var openKeys = this.store.getState().openKeys.concat();
var changed = false;
var processSingle = function processSingle(e) {
var oneChanged = false;
if (e.open) {
oneChanged = openKeys.indexOf(e.key) === -1;
if (oneChanged) {
openKeys.push(e.key);
}
} else {
var index = openKeys.indexOf(e.key);
oneChanged = index !== -1;
if (oneChanged) {
openKeys.splice(index, 1);
}
}
changed = changed || oneChanged;
};
if (Array.isArray(event)) {
// batch change call
event.forEach(processSingle);
} else {
processSingle(event);
}
if (changed) {
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["default"])(this, 'openKeys')) {
this.store.setState({ openKeys: openKeys });
}
this.__emit('openChange', openKeys);
}
},
onDeselect: function onDeselect(selectInfo) {
var props = this.$props;
if (props.selectable) {
var selectedKeys = this.store.getState().selectedKeys.concat();
var selectedKey = selectInfo.key;
var index = selectedKeys.indexOf(selectedKey);
if (index !== -1) {
selectedKeys.splice(index, 1);
}
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["default"])(this, 'selectedKeys')) {
this.store.setState({
selectedKeys: selectedKeys
});
}
this.__emit('deselect', babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, selectInfo, {
selectedKeys: selectedKeys
}));
}
},
getOpenTransitionName: function getOpenTransitionName() {
var props = this.$props;
var transitionName = props.openTransitionName;
var animationName = props.openAnimation;
if (!transitionName && typeof animationName === 'string') {
transitionName = props.prefixCls + '-open-' + animationName;
}
return transitionName;
},
updateMiniStore: function updateMiniStore() {
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
if ('selectedKeys' in props) {
this.store.setState({
selectedKeys: props.selectedKeys || []
});
}
if ('openKeys' in props) {
this.store.setState({
openKeys: props.openKeys || []
});
}
}
},
render: function render() {
var h = arguments[0];
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
var subPopupMenuProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
itemIcon: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'itemIcon', props),
expandIcon: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'expandIcon', props),
overflowedIndicator: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'overflowedIndicator', props) || h('span', ['\xB7\xB7\xB7']),
openTransitionName: this.getOpenTransitionName(),
parentMenu: this,
children: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["filterEmpty"])(this.$slots['default'] || [])
}),
'class': props.prefixCls + '-root',
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this), {
click: this.onClick,
openChange: this.onOpenChange,
deselect: this.onDeselect,
select: this.onSelect
}),
ref: 'innerMenu'
};
return h(
_util_store__WEBPACK_IMPORTED_MODULE_2__["Provider"],
{
attrs: { store: this.store }
},
[h(_SubPopupMenu__WEBPACK_IMPORTED_MODULE_3__["default"], subPopupMenuProps)]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (Menu);
/***/ }),
/***/ "./components/vc-menu/MenuItem.jsx":
/*!*****************************************!*\
!*** ./components/vc-menu/MenuItem.jsx ***!
\*****************************************/
/*! exports provided: default, menuItemProps */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "menuItemProps", function() { return props; });
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/KeyCode */ "./components/_util/KeyCode.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var dom_scroll_into_view__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! dom-scroll-into-view */ "./node_modules/dom-scroll-into-view/dist-web/index.js");
/* harmony import */ var _util_store__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/store */ "./components/_util/store/index.js");
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./util */ "./components/vc-menu/util.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
var props = {
attribute: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
rootPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
eventKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number]),
active: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
selectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
title: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
index: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
inlineIndent: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number.def(24),
level: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number.def(1),
mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']).def('vertical'),
parentMenu: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
isSelected: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
manualRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func.def(_util__WEBPACK_IMPORTED_MODULE_8__["noop"]),
role: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
subMenuKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
itemIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any
// clearSubMenuTimers: PropTypes.func.def(noop),
};
var MenuItem = {
name: 'MenuItem',
props: props,
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__["default"]],
isMenuItem: true,
created: function created() {
this.prevActive = this.active;
// invoke customized ref to expose component to mixin
this.callRef();
},
updated: function updated() {
var _this = this;
this.$nextTick(function () {
var _$props = _this.$props,
active = _$props.active,
parentMenu = _$props.parentMenu,
eventKey = _$props.eventKey;
if (!_this.prevActive && active && (!parentMenu || !parentMenu['scrolled-' + eventKey])) {
Object(dom_scroll_into_view__WEBPACK_IMPORTED_MODULE_6__["default"])(_this.$el, _this.parentMenu.$el, {
onlyScrollIfNeeded: true
});
parentMenu['scrolled-' + eventKey] = true;
} else if (parentMenu && parentMenu['scrolled-' + eventKey]) {
delete parentMenu['scrolled-' + eventKey];
}
_this.prevActive = active;
});
this.callRef();
},
beforeDestroy: function beforeDestroy() {
var props = this.$props;
this.__emit('destroy', props.eventKey);
},
methods: {
onKeyDown: function onKeyDown(e) {
var keyCode = e.keyCode;
if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_4__["default"].ENTER) {
this.onClick(e);
return true;
}
},
onMouseLeave: function onMouseLeave(e) {
var eventKey = this.$props.eventKey;
this.__emit('itemHover', {
key: eventKey,
hover: false
});
this.__emit('mouseleave', {
key: eventKey,
domEvent: e
});
},
onMouseEnter: function onMouseEnter(e) {
var eventKey = this.eventKey;
this.__emit('itemHover', {
key: eventKey,
hover: true
});
this.__emit('mouseenter', {
key: eventKey,
domEvent: e
});
},
onClick: function onClick(e) {
var _$props2 = this.$props,
eventKey = _$props2.eventKey,
multiple = _$props2.multiple,
isSelected = _$props2.isSelected;
var info = {
key: eventKey,
keyPath: [eventKey],
item: this,
domEvent: e
};
this.__emit('click', info);
if (multiple) {
if (isSelected) {
this.__emit('deselect', info);
} else {
this.__emit('select', info);
}
} else if (!isSelected) {
this.__emit('select', info);
}
},
getPrefixCls: function getPrefixCls() {
return this.$props.rootPrefixCls + '-item';
},
getActiveClassName: function getActiveClassName() {
return this.getPrefixCls() + '-active';
},
getSelectedClassName: function getSelectedClassName() {
return this.getPrefixCls() + '-selected';
},
getDisabledClassName: function getDisabledClassName() {
return this.getPrefixCls() + '-disabled';
},
callRef: function callRef() {
if (this.manualRef) {
this.manualRef(this);
}
}
},
render: function render() {
var _className;
var h = arguments[0];
var props = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props);
var className = (_className = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_className, this.getPrefixCls(), true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_className, this.getActiveClassName(), !props.disabled && props.active), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_className, this.getSelectedClassName(), props.isSelected), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_className, this.getDisabledClassName(), props.disabled), _className);
var attrs = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, props.attribute, {
title: props.title,
role: props.role || 'menuitem',
'aria-disabled': props.disabled
});
if (props.role === 'option') {
// overwrite to option
attrs = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, attrs, {
role: 'option',
'aria-selected': props.isSelected
});
} else if (props.role === null || props.role === 'none') {
// sometimes we want to specify role inside <li/> element
// <li><a role='menuitem'>Link</a></li> would be a good example
// in this case the role on <li/> should be "none" to
// remove the implied listitem role.
// https://www.w3.org/TR/wai-aria-practices-1.1/examples/menubar/menubar-1/menubar-1.html
attrs.role = 'none';
}
// In case that onClick/onMouseLeave/onMouseEnter is passed down from owner
var mouseEvent = {
click: props.disabled ? _util__WEBPACK_IMPORTED_MODULE_8__["noop"] : this.onClick,
mouseleave: props.disabled ? _util__WEBPACK_IMPORTED_MODULE_8__["noop"] : this.onMouseLeave,
mouseenter: props.disabled ? _util__WEBPACK_IMPORTED_MODULE_8__["noop"] : this.onMouseEnter
};
var style = {};
if (props.mode === 'inline') {
style.paddingLeft = props.inlineIndent * props.level + 'px';
}
var listeners = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getListeners"])(this));
_util__WEBPACK_IMPORTED_MODULE_8__["menuAllProps"].props.forEach(function (key) {
return delete props[key];
});
_util__WEBPACK_IMPORTED_MODULE_8__["menuAllProps"].on.forEach(function (key) {
return delete listeners[key];
});
var liProps = {
attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, props, attrs),
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, listeners, mouseEvent)
};
return h(
'li',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([liProps, { style: style, 'class': className }]),
[this.$slots['default'], Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getComponentFromProp"])(this, 'itemIcon', props)]
);
}
};
var connected = Object(_util_store__WEBPACK_IMPORTED_MODULE_7__["connect"])(function (_ref, _ref2) {
var activeKey = _ref.activeKey,
selectedKeys = _ref.selectedKeys;
var eventKey = _ref2.eventKey,
subMenuKey = _ref2.subMenuKey;
return {
active: activeKey[subMenuKey] === eventKey,
isSelected: selectedKeys.indexOf(eventKey) !== -1
};
})(MenuItem);
/* harmony default export */ __webpack_exports__["default"] = (connected);
/***/ }),
/***/ "./components/vc-menu/MenuItemGroup.jsx":
/*!**********************************************!*\
!*** ./components/vc-menu/MenuItemGroup.jsx ***!
\**********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
// import { menuAllProps } from './util'
var MenuItemGroup = {
name: 'MenuItemGroup',
props: {
renderMenuItem: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
index: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
className: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
subMenuKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
rootPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool.def(true),
title: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
},
isMenuItemGroup: true,
methods: {
renderInnerMenuItem: function renderInnerMenuItem(item) {
var _$props = this.$props,
renderMenuItem = _$props.renderMenuItem,
index = _$props.index,
subMenuKey = _$props.subMenuKey;
return renderMenuItem(item, index, subMenuKey);
}
},
render: function render() {
var h = arguments[0];
var props = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.$props);
var rootPrefixCls = props.rootPrefixCls,
title = props.title;
var titleClassName = rootPrefixCls + '-item-group-title';
var listClassName = rootPrefixCls + '-item-group-list';
// menuAllProps.props.forEach(key => delete props[key])
var listeners = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getListeners"])(this));
delete listeners.click;
return h(
'li',
{ on: listeners, 'class': rootPrefixCls + '-item-group' },
[h(
'div',
{ 'class': titleClassName, attrs: { title: typeof title === 'string' ? title : undefined }
},
[Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'title')]
), h(
'ul',
{ 'class': listClassName },
[this.$slots['default'] && this.$slots['default'].map(this.renderInnerMenuItem)]
)]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (MenuItemGroup);
/***/ }),
/***/ "./components/vc-menu/SubMenu.jsx":
/*!****************************************!*\
!*** ./components/vc-menu/SubMenu.jsx ***!
\****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _vc_trigger__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../vc-trigger */ "./components/vc-trigger/index.js");
/* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/KeyCode */ "./components/_util/KeyCode.js");
/* harmony import */ var _util_store__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/store */ "./components/_util/store/index.js");
/* harmony import */ var _SubPopupMenu__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./SubPopupMenu */ "./components/vc-menu/SubPopupMenu.jsx");
/* harmony import */ var _placements__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./placements */ "./components/vc-menu/placements.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../_util/requestAnimationTimeout */ "./components/_util/requestAnimationTimeout.js");
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./util */ "./components/vc-menu/util.js");
/* harmony import */ var _util_getTransitionProps__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../_util/getTransitionProps */ "./components/_util/getTransitionProps.js");
var guid = 0;
var popupPlacementMap = {
horizontal: 'bottomLeft',
vertical: 'rightTop',
'vertical-left': 'rightTop',
'vertical-right': 'leftTop'
};
var updateDefaultActiveFirst = function updateDefaultActiveFirst(store, eventKey, defaultActiveFirst) {
var menuId = Object(_util__WEBPACK_IMPORTED_MODULE_14__["getMenuIdFromSubMenuEventKey"])(eventKey);
var state = store.getState();
store.setState({
defaultActiveFirst: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, state.defaultActiveFirst, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, menuId, defaultActiveFirst))
});
};
var SubMenu = {
name: 'SubMenu',
props: {
parentMenu: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].object,
title: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
selectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].array.def([]),
openKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].array.def([]),
openChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].func.def(_util__WEBPACK_IMPORTED_MODULE_14__["noop"]),
rootPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
eventKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].number]),
multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
active: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool, // TODO: remove
isRootMenu: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool.def(false),
index: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].number,
triggerSubMenuAction: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
popupClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].func,
forceSubMenuRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
openAnimation: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].object]),
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
subMenuOpenDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].number.def(0.1),
subMenuCloseDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].number.def(0.1),
level: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].number.def(1),
inlineIndent: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].number.def(24),
openTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
popupOffset: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].array,
isOpen: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
store: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].object,
mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']).def('vertical'),
manualRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].func.def(_util__WEBPACK_IMPORTED_MODULE_14__["noop"]),
builtinPlacements: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].object.def(function () {
return {};
}),
itemIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
expandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
subMenuKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string
},
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_11__["default"]],
isSubMenu: true,
data: function data() {
var props = this.$props;
var store = props.store;
var eventKey = props.eventKey;
var defaultActiveFirst = store.getState().defaultActiveFirst;
var value = false;
if (defaultActiveFirst) {
value = defaultActiveFirst[eventKey];
}
updateDefaultActiveFirst(store, eventKey, value);
return {
// defaultActiveFirst: false,
};
},
mounted: function mounted() {
var _this = this;
this.$nextTick(function () {
_this.handleUpdated();
});
},
updated: function updated() {
var _this2 = this;
this.$nextTick(function () {
_this2.handleUpdated();
});
},
beforeDestroy: function beforeDestroy() {
var eventKey = this.eventKey;
this.__emit('destroy', eventKey);
/* istanbul ignore if */
if (this.minWidthTimeout) {
Object(_util_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_13__["cancelAnimationTimeout"])(this.minWidthTimeout);
this.minWidthTimeout = null;
}
/* istanbul ignore if */
if (this.mouseenterTimeout) {
Object(_util_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_13__["cancelAnimationTimeout"])(this.mouseenterTimeout);
this.mouseenterTimeout = null;
}
},
methods: {
handleUpdated: function handleUpdated() {
var _this3 = this;
var _$props = this.$props,
mode = _$props.mode,
parentMenu = _$props.parentMenu,
manualRef = _$props.manualRef;
// invoke customized ref to expose component to mixin
if (manualRef) {
manualRef(this);
}
if (mode !== 'horizontal' || !parentMenu.isRootMenu || !this.isOpen) {
return;
}
this.minWidthTimeout = Object(_util_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_13__["requestAnimationTimeout"])(function () {
return _this3.adjustWidth();
}, 0);
},
onKeyDown: function onKeyDown(e) {
var keyCode = e.keyCode;
var menu = this.menuInstance;
var _$props2 = this.$props,
store = _$props2.store,
isOpen = _$props2.isOpen;
if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].ENTER) {
this.onTitleClick(e);
updateDefaultActiveFirst(store, this.eventKey, true);
return true;
}
if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].RIGHT) {
if (isOpen) {
menu.onKeyDown(e);
} else {
this.triggerOpenChange(true);
// need to update current menu's defaultActiveFirst value
updateDefaultActiveFirst(store, this.eventKey, true);
}
return true;
}
if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].LEFT) {
var handled = void 0;
if (isOpen) {
handled = menu.onKeyDown(e);
} else {
return undefined;
}
if (!handled) {
this.triggerOpenChange(false);
handled = true;
}
return handled;
}
if (isOpen && (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].UP || keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].DOWN)) {
return menu.onKeyDown(e);
}
return undefined;
},
onPopupVisibleChange: function onPopupVisibleChange(visible) {
this.triggerOpenChange(visible, visible ? 'mouseenter' : 'mouseleave');
},
onMouseEnter: function onMouseEnter(e) {
var _$props3 = this.$props,
key = _$props3.eventKey,
store = _$props3.store;
updateDefaultActiveFirst(store, key, false);
this.__emit('mouseenter', {
key: key,
domEvent: e
});
},
onMouseLeave: function onMouseLeave(e) {
var eventKey = this.eventKey,
parentMenu = this.parentMenu;
parentMenu.subMenuInstance = this;
// parentMenu.subMenuLeaveFn = () => {
// // trigger mouseleave
// this.__emit('mouseleave', {
// key: eventKey,
// domEvent: e,
// })
// }
this.__emit('mouseleave', {
key: eventKey,
domEvent: e
});
// prevent popup menu and submenu gap
// parentMenu.subMenuLeaveTimer = setTimeout(parentMenu.subMenuLeaveFn, 100)
},
onTitleMouseEnter: function onTitleMouseEnter(domEvent) {
var key = this.$props.eventKey;
// this.clearSubMenuTitleLeaveTimer()
this.__emit('itemHover', {
key: key,
hover: true
});
this.__emit('titleMouseenter', {
key: key,
domEvent: domEvent
});
},
onTitleMouseLeave: function onTitleMouseLeave(e) {
var eventKey = this.eventKey,
parentMenu = this.parentMenu;
parentMenu.subMenuInstance = this;
this.__emit('itemHover', {
key: eventKey,
hover: false
});
this.__emit('titleMouseleave', {
key: eventKey,
domEvent: e
});
},
onTitleClick: function onTitleClick(e) {
var _$props4 = this.$props,
triggerSubMenuAction = _$props4.triggerSubMenuAction,
eventKey = _$props4.eventKey,
isOpen = _$props4.isOpen,
store = _$props4.store;
this.__emit('titleClick', {
key: eventKey,
domEvent: e
});
if (triggerSubMenuAction === 'hover') {
return;
}
this.triggerOpenChange(!isOpen, 'click');
updateDefaultActiveFirst(store, eventKey, false);
},
onSubMenuClick: function onSubMenuClick(info) {
this.__emit('click', this.addKeyPath(info));
},
getPrefixCls: function getPrefixCls() {
return this.$props.rootPrefixCls + '-submenu';
},
getActiveClassName: function getActiveClassName() {
return this.getPrefixCls() + '-active';
},
getDisabledClassName: function getDisabledClassName() {
return this.getPrefixCls() + '-disabled';
},
getSelectedClassName: function getSelectedClassName() {
return this.getPrefixCls() + '-selected';
},
getOpenClassName: function getOpenClassName() {
return this.$props.rootPrefixCls + '-submenu-open';
},
saveMenuInstance: function saveMenuInstance(c) {
// children menu instance
this.menuInstance = c;
},
addKeyPath: function addKeyPath(info) {
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, info, {
keyPath: (info.keyPath || []).concat(this.$props.eventKey)
});
},
// triggerOpenChange (open, type) {
// const key = this.$props.eventKey
// this.__emit('openChange', {
// key,
// item: this,
// trigger: type,
// open,
// })
// },
triggerOpenChange: function triggerOpenChange(open, type) {
var _this4 = this;
var key = this.$props.eventKey;
var openChange = function openChange() {
_this4.__emit('openChange', {
key: key,
item: _this4,
trigger: type,
open: open
});
};
if (type === 'mouseenter') {
// make sure mouseenter happen after other menu item's mouseleave
this.mouseenterTimeout = Object(_util_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_13__["requestAnimationTimeout"])(function () {
openChange();
}, 0);
} else {
openChange();
}
},
isChildrenSelected: function isChildrenSelected() {
var ret = { find: false };
Object(_util__WEBPACK_IMPORTED_MODULE_14__["loopMenuItemRecursively"])(this.$slots['default'], this.$props.selectedKeys, ret);
return ret.find;
},
// isOpen () {
// return this.$props.openKeys.indexOf(this.$props.eventKey) !== -1
// },
adjustWidth: function adjustWidth() {
/* istanbul ignore if */
if (!this.$refs.subMenuTitle || !this.menuInstance) {
return;
}
var popupMenu = this.menuInstance.$el;
if (popupMenu.offsetWidth >= this.$refs.subMenuTitle.offsetWidth) {
return;
}
/* istanbul ignore next */
popupMenu.style.minWidth = this.$refs.subMenuTitle.offsetWidth + 'px';
},
renderChildren: function renderChildren(children) {
var h = this.$createElement;
var props = this.$props;
var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getListeners"])(this),
select = _getListeners.select,
deselect = _getListeners.deselect,
openChange = _getListeners.openChange;
var subPopupMenuProps = {
props: {
mode: props.mode === 'horizontal' ? 'vertical' : props.mode,
visible: props.isOpen,
level: props.level + 1,
inlineIndent: props.inlineIndent,
focusable: false,
selectedKeys: props.selectedKeys,
eventKey: props.eventKey + '-menu-',
openKeys: props.openKeys,
openTransitionName: props.openTransitionName,
openAnimation: props.openAnimation,
subMenuOpenDelay: props.subMenuOpenDelay,
parentMenu: this,
subMenuCloseDelay: props.subMenuCloseDelay,
forceSubMenuRender: props.forceSubMenuRender,
triggerSubMenuAction: props.triggerSubMenuAction,
builtinPlacements: props.builtinPlacements,
defaultActiveFirst: props.store.getState().defaultActiveFirst[Object(_util__WEBPACK_IMPORTED_MODULE_14__["getMenuIdFromSubMenuEventKey"])(props.eventKey)],
multiple: props.multiple,
prefixCls: props.rootPrefixCls,
manualRef: this.saveMenuInstance,
itemIcon: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(this, 'itemIcon'),
expandIcon: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(this, 'expandIcon'),
children: children
},
on: {
click: this.onSubMenuClick,
select: select,
deselect: deselect,
openChange: openChange
},
id: this.internalMenuId
};
var baseProps = subPopupMenuProps.props;
var haveRendered = this.haveRendered;
this.haveRendered = true;
this.haveOpened = this.haveOpened || baseProps.visible || baseProps.forceSubMenuRender;
// never rendered not planning to, don't render
if (!this.haveOpened) {
return h('div');
}
// don't show transition on first rendering (no animation for opened menu)
// show appear transition if it's not visible (not sure why)
// show appear transition if it's not inline mode
var transitionAppear = haveRendered || !baseProps.visible || !baseProps.mode === 'inline';
subPopupMenuProps['class'] = ' ' + baseProps.prefixCls + '-sub';
var animProps = { appear: transitionAppear, css: false };
var transitionProps = {
props: animProps,
on: {}
};
if (baseProps.openTransitionName) {
transitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_15__["default"])(baseProps.openTransitionName, {
appear: transitionAppear
});
} else if (babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(baseProps.openAnimation) === 'object') {
animProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, animProps, baseProps.openAnimation.props || {});
if (!transitionAppear) {
animProps.appear = false;
}
} else if (typeof baseProps.openAnimation === 'string') {
transitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_15__["default"])(baseProps.openAnimation, { appear: transitionAppear });
}
if (babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(baseProps.openAnimation) === 'object' && baseProps.openAnimation.on) {
transitionProps.on = baseProps.openAnimation.on;
}
return h(
'transition',
transitionProps,
[h(_SubPopupMenu__WEBPACK_IMPORTED_MODULE_9__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
directives: [{
name: 'show',
value: props.isOpen
}]
}, subPopupMenuProps]))]
);
}
},
render: function render() {
var _className, _attrs;
var h = arguments[0];
var props = this.$props;
var rootPrefixCls = this.rootPrefixCls,
parentMenu = this.parentMenu;
var isOpen = props.isOpen;
var prefixCls = this.getPrefixCls();
var isInlineMode = props.mode === 'inline';
var className = (_className = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_className, prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_className, prefixCls + '-' + props.mode, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_className, this.getOpenClassName(), isOpen), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_className, this.getActiveClassName(), props.active || isOpen && !isInlineMode), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_className, this.getDisabledClassName(), props.disabled), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_className, this.getSelectedClassName(), this.isChildrenSelected()), _className);
if (!this.internalMenuId) {
if (props.eventKey) {
this.internalMenuId = props.eventKey + '$Menu';
} else {
this.internalMenuId = '$__$' + ++guid + '$Menu';
}
}
var mouseEvents = {};
var titleClickEvents = {};
var titleMouseEvents = {};
if (!props.disabled) {
mouseEvents = {
mouseleave: this.onMouseLeave,
mouseenter: this.onMouseEnter
};
// only works in title, not outer li
titleClickEvents = {
click: this.onTitleClick
};
titleMouseEvents = {
mouseenter: this.onTitleMouseEnter,
mouseleave: this.onTitleMouseLeave
};
}
var style = {};
if (isInlineMode) {
style.paddingLeft = props.inlineIndent * props.level + 'px';
}
var ariaOwns = {};
// only set aria-owns when menu is open
// otherwise it would be an invalid aria-owns value
// since corresponding node cannot be found
if (isOpen) {
ariaOwns = {
'aria-owns': this.internalMenuId
};
}
var titleProps = {
attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({
'aria-expanded': isOpen
}, ariaOwns, {
'aria-haspopup': 'true',
title: typeof props.title === 'string' ? props.title : undefined
}),
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, titleMouseEvents, titleClickEvents),
style: style,
'class': prefixCls + '-title',
ref: 'subMenuTitle'
};
// expand custom icon should NOT be displayed in menu with horizontal mode.
var icon = null;
if (props.mode !== 'horizontal') {
icon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(this, 'expandIcon', props);
}
var title = h(
'div',
titleProps,
[Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(this, 'title'), icon || h('i', { 'class': prefixCls + '-arrow' })]
);
var children = this.renderChildren(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["filterEmpty"])(this.$slots['default']));
var getPopupContainer = this.parentMenu.isRootMenu ? this.parentMenu.getPopupContainer : function (triggerNode) {
return triggerNode.parentNode;
};
var popupPlacement = popupPlacementMap[props.mode];
var popupAlign = props.popupOffset ? { offset: props.popupOffset } : {};
var popupClassName = props.mode === 'inline' ? '' : props.popupClassName;
var liProps = {
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, Object(omit_js__WEBPACK_IMPORTED_MODULE_4__["default"])(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getListeners"])(this), ['click']), mouseEvents),
'class': className
};
return h(
'li',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([liProps, {
attrs: { role: 'menuitem' }
}]),
[isInlineMode && title, isInlineMode && children, !isInlineMode && h(
_vc_trigger__WEBPACK_IMPORTED_MODULE_6__["default"],
{
attrs: (_attrs = {
prefixCls: prefixCls,
popupClassName: prefixCls + '-popup ' + rootPrefixCls + '-' + parentMenu.theme + ' ' + (popupClassName || ''),
getPopupContainer: getPopupContainer,
builtinPlacements: _placements__WEBPACK_IMPORTED_MODULE_10__["default"]
}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_attrs, 'builtinPlacements', babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, _placements__WEBPACK_IMPORTED_MODULE_10__["default"], props.builtinPlacements)), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_attrs, 'popupPlacement', popupPlacement), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_attrs, 'popupVisible', isOpen), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_attrs, 'popupAlign', popupAlign), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_attrs, 'action', props.disabled ? [] : [props.triggerSubMenuAction]), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_attrs, 'mouseEnterDelay', props.subMenuOpenDelay), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_attrs, 'mouseLeaveDelay', props.subMenuCloseDelay), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_attrs, 'forceRender', props.forceSubMenuRender), _attrs),
on: {
'popupVisibleChange': this.onPopupVisibleChange
}
},
[h(
'template',
{ slot: 'popup' },
[children]
), title]
)]
);
}
};
var connected = Object(_util_store__WEBPACK_IMPORTED_MODULE_8__["connect"])(function (_ref, _ref2) {
var openKeys = _ref.openKeys,
activeKey = _ref.activeKey,
selectedKeys = _ref.selectedKeys;
var eventKey = _ref2.eventKey,
subMenuKey = _ref2.subMenuKey;
return {
isOpen: openKeys.indexOf(eventKey) > -1,
active: activeKey[subMenuKey] === eventKey,
selectedKeys: selectedKeys
};
})(SubMenu);
connected.isSubMenu = true;
/* harmony default export */ __webpack_exports__["default"] = (connected);
/***/ }),
/***/ "./components/vc-menu/SubPopupMenu.jsx":
/*!*********************************************!*\
!*** ./components/vc-menu/SubPopupMenu.jsx ***!
\*********************************************/
/*! exports provided: saveRef, getActiveKey, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "saveRef", function() { return saveRef; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getActiveKey", function() { return getActiveKey; });
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_store__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/store */ "./components/_util/store/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/KeyCode */ "./components/_util/KeyCode.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./util */ "./components/vc-menu/util.js");
/* harmony import */ var _DOMWrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./DOMWrap */ "./components/vc-menu/DOMWrap.jsx");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
function allDisabled(arr) {
if (!arr.length) {
return true;
}
return arr.every(function (c) {
return !!c.disabled;
});
}
function updateActiveKey(store, menuId, activeKey) {
var state = store.getState();
store.setState({
activeKey: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, state.activeKey, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, menuId, activeKey))
});
}
function getEventKey(props) {
// when eventKey not available ,it's menu and return menu id '0-menu-'
return props.eventKey || '0-menu-';
}
function saveRef(key, c) {
if (c) {
var index = this.instanceArrayKeyIndexMap[key];
this.instanceArray[index] = c;
}
}
function getActiveKey(props, originalActiveKey) {
var activeKey = originalActiveKey;
var eventKey = props.eventKey,
defaultActiveFirst = props.defaultActiveFirst,
children = props.children;
if (activeKey !== undefined && activeKey !== null) {
var found = void 0;
Object(_util__WEBPACK_IMPORTED_MODULE_9__["loopMenuItem"])(children, function (c, i) {
var propsData = c.componentOptions.propsData || {};
if (c && !propsData.disabled && activeKey === Object(_util__WEBPACK_IMPORTED_MODULE_9__["getKeyFromChildrenIndex"])(c, eventKey, i)) {
found = true;
}
});
if (found) {
return activeKey;
}
}
activeKey = null;
if (defaultActiveFirst) {
Object(_util__WEBPACK_IMPORTED_MODULE_9__["loopMenuItem"])(children, function (c, i) {
var propsData = c.componentOptions.propsData || {};
var noActiveKey = activeKey === null || activeKey === undefined;
if (noActiveKey && c && !propsData.disabled) {
activeKey = Object(_util__WEBPACK_IMPORTED_MODULE_9__["getKeyFromChildrenIndex"])(c, eventKey, i);
}
});
return activeKey;
}
return activeKey;
}
var SubPopupMenu = {
name: 'SubPopupMenu',
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["initDefaultProps"])({
// onSelect: PropTypes.func,
// onClick: PropTypes.func,
// onDeselect: PropTypes.func,
// onOpenChange: PropTypes.func,
// onDestroy: PropTypes.func,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
openTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
openAnimation: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object]),
openKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number])),
visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
parentMenu: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
eventKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
store: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
forceSubMenuRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
// adding in refactor
focusable: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
defaultActiveFirst: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
activeKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number]),
selectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number])),
defaultSelectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number])),
defaultOpenKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number])),
level: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']),
triggerSubMenuAction: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOf(['click', 'hover']),
inlineIndent: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string]),
manualRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func,
itemIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
expandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
overflowedIndicator: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
children: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any.def([]),
__propsSymbol__: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any // mock componentWillReceiveProps
}, {
prefixCls: 'rc-menu',
mode: 'vertical',
level: 1,
inlineIndent: 24,
visible: true,
focusable: true,
manualRef: _util__WEBPACK_IMPORTED_MODULE_9__["noop"]
}),
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__["default"]],
created: function created() {
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getOptionProps"])(this);
this.prevProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, props);
props.store.setState({
activeKey: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, props.store.getState().activeKey, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, props.eventKey, getActiveKey(props, props.activeKey)))
});
this.instanceArray = [];
},
mounted: function mounted() {
// invoke customized ref to expose component to mixin
if (this.manualRef) {
this.manualRef(this);
}
},
updated: function updated() {
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getOptionProps"])(this);
var prevProps = this.prevProps;
var originalActiveKey = 'activeKey' in props ? props.activeKey : props.store.getState().activeKey[getEventKey(props)];
var activeKey = getActiveKey(props, originalActiveKey);
if (activeKey !== originalActiveKey) {
updateActiveKey(props.store, getEventKey(props), activeKey);
} else if ('activeKey' in prevProps) {
// If prev activeKey is not same as current activeKey,
// we should set it.
var prevActiveKey = getActiveKey(prevProps, prevProps.activeKey);
if (activeKey !== prevActiveKey) {
updateActiveKey(props.store, getEventKey(props), activeKey);
}
}
this.prevProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, props);
},
methods: {
// all keyboard events callbacks run from here at first
onKeyDown: function onKeyDown(e, callback) {
var keyCode = e.keyCode;
var handled = void 0;
this.getFlatInstanceArray().forEach(function (obj) {
if (obj && obj.active && obj.onKeyDown) {
handled = obj.onKeyDown(e);
}
});
if (handled) {
return 1;
}
var activeItem = null;
if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].UP || keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].DOWN) {
activeItem = this.step(keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_7__["default"].UP ? -1 : 1);
}
if (activeItem) {
e.preventDefault();
updateActiveKey(this.$props.store, getEventKey(this.$props), activeItem.eventKey);
if (typeof callback === 'function') {
callback(activeItem);
}
return 1;
}
return undefined;
},
onItemHover: function onItemHover(e) {
var key = e.key,
hover = e.hover;
updateActiveKey(this.$props.store, getEventKey(this.$props), hover ? key : null);
},
onDeselect: function onDeselect(selectInfo) {
this.__emit('deselect', selectInfo);
},
onSelect: function onSelect(selectInfo) {
this.__emit('select', selectInfo);
},
onClick: function onClick(e) {
this.__emit('click', e);
},
onOpenChange: function onOpenChange(e) {
this.__emit('openChange', e);
},
onDestroy: function onDestroy(key) {
this.__emit('destroy', key);
},
getFlatInstanceArray: function getFlatInstanceArray() {
return this.instanceArray;
},
getOpenTransitionName: function getOpenTransitionName() {
return this.$props.openTransitionName;
},
step: function step(direction) {
var children = this.getFlatInstanceArray();
var activeKey = this.$props.store.getState().activeKey[getEventKey(this.$props)];
var len = children.length;
if (!len) {
return null;
}
if (direction < 0) {
children = children.concat().reverse();
}
// find current activeIndex
var activeIndex = -1;
children.every(function (c, ci) {
if (c && c.eventKey === activeKey) {
activeIndex = ci;
return false;
}
return true;
});
if (!this.defaultActiveFirst && activeIndex !== -1 && allDisabled(children.slice(activeIndex, len - 1))) {
return undefined;
}
var start = (activeIndex + 1) % len;
var i = start;
do {
var child = children[i];
if (!child || child.disabled) {
i = (i + 1) % len;
} else {
return child;
}
} while (i !== start);
return null;
},
getIcon: function getIcon(instance, name) {
if (instance.$createElement) {
var temp = instance[name];
if (temp !== undefined) {
return temp;
}
return instance.$slots[name] || instance.$scopedSlots[name];
} else {
var _temp = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getPropsData"])(instance)[name];
if (_temp !== undefined) {
return _temp;
}
var slotsProp = [];
var componentOptions = instance.componentOptions || {};
(componentOptions.children || []).forEach(function (child) {
if (child.data && child.data.slot === name) {
if (child.tag === 'template') {
slotsProp.push(child.children);
} else {
slotsProp.push(child);
}
}
});
return slotsProp.length ? slotsProp : undefined;
}
},
renderCommonMenuItem: function renderCommonMenuItem(child, i, extraProps) {
var _this = this;
if (child.tag === undefined) {
return child;
}
var state = this.$props.store.getState();
var props = this.$props;
var key = Object(_util__WEBPACK_IMPORTED_MODULE_9__["getKeyFromChildrenIndex"])(child, props.eventKey, i);
var childProps = child.componentOptions.propsData || {};
var isActive = key === state.activeKey[getEventKey(this.$props)];
if (!childProps.disabled) {
// manualRef的执行顺序不能保证使用key映射ref在this.instanceArray中的位置
this.instanceArrayKeyIndexMap[key] = Object.keys(this.instanceArrayKeyIndexMap).length;
}
var childListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getEvents"])(child);
var newChildProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
mode: childProps.mode || props.mode,
level: props.level,
inlineIndent: props.inlineIndent,
renderMenuItem: this.renderMenuItem,
rootPrefixCls: props.prefixCls,
index: i,
parentMenu: props.parentMenu,
// customized ref function, need to be invoked manually in child's componentDidMount
manualRef: childProps.disabled ? _util__WEBPACK_IMPORTED_MODULE_9__["noop"] : saveRef.bind(this, key),
eventKey: key,
active: !childProps.disabled && isActive,
multiple: props.multiple,
openTransitionName: this.getOpenTransitionName(),
openAnimation: props.openAnimation,
subMenuOpenDelay: props.subMenuOpenDelay,
subMenuCloseDelay: props.subMenuCloseDelay,
forceSubMenuRender: props.forceSubMenuRender,
builtinPlacements: props.builtinPlacements,
itemIcon: this.getIcon(child, 'itemIcon') || this.getIcon(this, 'itemIcon'),
expandIcon: this.getIcon(child, 'expandIcon') || this.getIcon(this, 'expandIcon')
}, extraProps),
on: {
click: function click(e) {
(childListeners.click || _util__WEBPACK_IMPORTED_MODULE_9__["noop"])(e);
_this.onClick(e);
},
itemHover: this.onItemHover,
openChange: this.onOpenChange,
deselect: this.onDeselect,
// destroy: this.onDestroy,
select: this.onSelect
}
};
// ref: https://github.com/ant-design/ant-design/issues/13943
if (props.mode === 'inline' || Object(_util__WEBPACK_IMPORTED_MODULE_9__["isMobileDevice"])()) {
newChildProps.props.triggerSubMenuAction = 'click';
}
return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_11__["cloneElement"])(child, newChildProps);
},
renderMenuItem: function renderMenuItem(c, i, subMenuKey) {
if (!c) {
return null;
}
var state = this.$props.store.getState();
var extraProps = {
openKeys: state.openKeys,
selectedKeys: state.selectedKeys,
triggerSubMenuAction: this.triggerSubMenuAction,
isRootMenu: false,
subMenuKey: subMenuKey
};
return this.renderCommonMenuItem(c, i, extraProps);
}
},
render: function render() {
var _this2 = this;
var h = arguments[0];
var props = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(this.$props, []);
var eventKey = props.eventKey,
prefixCls = props.prefixCls,
visible = props.visible,
level = props.level,
mode = props.mode,
theme = props.theme;
this.instanceArray = [];
this.instanceArrayKeyIndexMap = {};
var className = classnames__WEBPACK_IMPORTED_MODULE_8___default()(props.prefixCls, props.prefixCls + '-' + props.mode);
var domWrapProps = {
props: {
tag: 'ul',
// hiddenClassName: `${prefixCls}-hidden`,
visible: visible,
prefixCls: prefixCls,
level: level,
mode: mode,
theme: theme,
overflowedIndicator: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(this, 'overflowedIndicator')
},
attrs: {
role: props.role || 'menu'
},
'class': className,
// Otherwise, the propagated click event will trigger another onClick
on: Object(omit_js__WEBPACK_IMPORTED_MODULE_3__["default"])(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getListeners"])(this), ['click'])
};
// if (props.id) {
// domProps.id = props.id
// }
if (props.focusable) {
domWrapProps.attrs.tabIndex = '0';
domWrapProps.on.keydown = this.onKeyDown;
}
return (
// ESLint is not smart enough to know that the type of `children` was checked.
/* eslint-disable */
h(
_DOMWrap__WEBPACK_IMPORTED_MODULE_10__["default"],
domWrapProps,
[props.children.map(function (c, i) {
return _this2.renderMenuItem(c, i, eventKey || '0-menu-');
})]
)
/*eslint -enable */
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (Object(_util_store__WEBPACK_IMPORTED_MODULE_5__["connect"])()(SubPopupMenu));
/***/ }),
/***/ "./components/vc-menu/commonPropsType.js":
/*!***********************************************!*\
!*** ./components/vc-menu/commonPropsType.js ***!
\***********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony default export */ __webpack_exports__["default"] = ({
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string.def('rc-menu'),
focusable: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
defaultActiveFirst: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
activeKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]),
selectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number])),
defaultSelectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number])).def([]),
defaultOpenKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number])).def([]),
openKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number])),
openAnimation: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object]),
mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']).def('vertical'),
triggerSubMenuAction: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string.def('hover'),
subMenuOpenDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(0.1),
subMenuCloseDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(0.1),
level: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(1),
inlineIndent: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(24),
theme: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['light', 'dark']).def('light'),
getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
openTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
forceSubMenuRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
selectable: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
isRootMenu: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
builtinPlacements: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object.def(function () {
return {};
}),
itemIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
expandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
overflowedIndicator: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any
});
/***/ }),
/***/ "./components/vc-menu/index.js":
/*!*************************************!*\
!*** ./components/vc-menu/index.js ***!
\*************************************/
/*! exports provided: SubMenu, Item, itemProps, MenuItem, MenuItemGroup, ItemGroup, Divider, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Menu__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Menu */ "./components/vc-menu/Menu.jsx");
/* harmony import */ var _SubMenu__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SubMenu */ "./components/vc-menu/SubMenu.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SubMenu", function() { return _SubMenu__WEBPACK_IMPORTED_MODULE_1__["default"]; });
/* harmony import */ var _MenuItem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./MenuItem */ "./components/vc-menu/MenuItem.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Item", function() { return _MenuItem__WEBPACK_IMPORTED_MODULE_2__["default"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "itemProps", function() { return _MenuItem__WEBPACK_IMPORTED_MODULE_2__["menuItemProps"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MenuItem", function() { return _MenuItem__WEBPACK_IMPORTED_MODULE_2__["default"]; });
/* harmony import */ var _MenuItemGroup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./MenuItemGroup */ "./components/vc-menu/MenuItemGroup.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MenuItemGroup", function() { return _MenuItemGroup__WEBPACK_IMPORTED_MODULE_3__["default"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ItemGroup", function() { return _MenuItemGroup__WEBPACK_IMPORTED_MODULE_3__["default"]; });
/* harmony import */ var _Divider__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Divider */ "./components/vc-menu/Divider.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Divider", function() { return _Divider__WEBPACK_IMPORTED_MODULE_4__["default"]; });
// based on rc-menu 7.5.5
/* harmony default export */ __webpack_exports__["default"] = (_Menu__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/vc-menu/placements.js":
/*!******************************************!*\
!*** ./components/vc-menu/placements.js ***!
\******************************************/
/*! exports provided: placements, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "placements", function() { return placements; });
var autoAdjustOverflow = {
adjustX: 1,
adjustY: 1
};
var placements = {
topLeft: {
points: ['bl', 'tl'],
overflow: autoAdjustOverflow,
offset: [0, -7]
},
bottomLeft: {
points: ['tl', 'bl'],
overflow: autoAdjustOverflow,
offset: [0, 7]
},
leftTop: {
points: ['tr', 'tl'],
overflow: autoAdjustOverflow,
offset: [-4, 0]
},
rightTop: {
points: ['tl', 'tr'],
overflow: autoAdjustOverflow,
offset: [4, 0]
}
};
/* harmony default export */ __webpack_exports__["default"] = (placements);
/***/ }),
/***/ "./components/vc-menu/util.js":
/*!************************************!*\
!*** ./components/vc-menu/util.js ***!
\************************************/
/*! exports provided: noop, getKeyFromChildrenIndex, getMenuIdFromSubMenuEventKey, loopMenuItem, loopMenuItemRecursively, menuAllProps, getWidth, setStyle, isMobileDevice */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "noop", function() { return noop; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getKeyFromChildrenIndex", function() { return getKeyFromChildrenIndex; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMenuIdFromSubMenuEventKey", function() { return getMenuIdFromSubMenuEventKey; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "loopMenuItem", function() { return loopMenuItem; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "loopMenuItemRecursively", function() { return loopMenuItemRecursively; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "menuAllProps", function() { return menuAllProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getWidth", function() { return getWidth; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setStyle", function() { return setStyle; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isMobileDevice", function() { return isMobileDevice; });
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _utils_isMobile__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils/isMobile */ "./components/vc-menu/utils/isMobile.js");
function noop() {}
function getKeyFromChildrenIndex(child, menuEventKey, index) {
var prefix = menuEventKey || '';
return child.key === undefined ? prefix + 'item_' + index : child.key;
}
function getMenuIdFromSubMenuEventKey(eventKey) {
return eventKey + '-menu-';
}
function loopMenuItem(children, cb) {
var index = -1;
children.forEach(function (c) {
index++;
if (c && c.type && c.type.isMenuItemGroup) {
c.$slots['default'].forEach(function (c2) {
index++;
c.componentOptions && cb(c2, index);
});
} else {
c.componentOptions && cb(c, index);
}
});
}
function loopMenuItemRecursively(children, keys, ret) {
if (!children || ret.find) {
return;
}
children.forEach(function (c) {
if (ret.find) {
return;
}
if (c.data && c.data.slot && c.data.slot !== 'default') {
return;
}
if (c && c.componentOptions) {
var options = c.componentOptions.Ctor.options;
if (!options || !(options.isSubMenu || options.isMenuItem || options.isMenuItemGroup)) {
return;
}
if (keys.indexOf(c.key) !== -1) {
ret.find = true;
} else if (c.componentOptions.children) {
loopMenuItemRecursively(c.componentOptions.children, keys, ret);
}
}
});
}
var menuAllProps = {
props: ['defaultSelectedKeys', 'selectedKeys', 'defaultOpenKeys', 'openKeys', 'mode', 'getPopupContainer', 'openTransitionName', 'openAnimation', 'subMenuOpenDelay', 'subMenuCloseDelay', 'forceSubMenuRender', 'triggerSubMenuAction', 'level', 'selectable', 'multiple', 'visible', 'focusable', 'defaultActiveFirst', 'prefixCls', 'inlineIndent', 'parentMenu', 'title', 'rootPrefixCls', 'eventKey', 'active', 'popupAlign', 'popupOffset', 'isOpen', 'renderMenuItem', 'manualRef', 'subMenuKey', 'disabled', 'index', 'isSelected', 'store', 'activeKey', 'builtinPlacements', 'overflowedIndicator',
// the following keys found need to be removed from test regression
'attribute', 'value', 'popupClassName', 'inlineCollapsed', 'menu', 'theme', 'itemIcon', 'expandIcon'],
on: ['select', 'deselect', 'destroy', 'openChange', 'itemHover', 'titleMouseenter', 'titleMouseleave', 'titleClick']
};
// ref: https://github.com/ant-design/ant-design/issues/14007
// ref: https://bugs.chromium.org/p/chromium/issues/detail?id=360889
// getBoundingClientRect return the full precision value, which is
// not the same behavior as on chrome. Set the precision to 6 to
// unify their behavior
var getWidth = function getWidth(elem) {
var width = elem && typeof elem.getBoundingClientRect === 'function' && elem.getBoundingClientRect().width;
if (width) {
width = +width.toFixed(6);
}
return width || 0;
};
var setStyle = function setStyle(elem, styleProperty, value) {
if (elem && babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(elem.style) === 'object') {
elem.style[styleProperty] = value;
}
};
var isMobileDevice = function isMobileDevice() {
return _utils_isMobile__WEBPACK_IMPORTED_MODULE_1__["default"].any;
};
/***/ }),
/***/ "./components/vc-menu/utils/isMobile.js":
/*!**********************************************!*\
!*** ./components/vc-menu/utils/isMobile.js ***!
\**********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/slicedToArray */ "./node_modules/babel-runtime/helpers/slicedToArray.js");
/* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__);
// MIT License from https://github.com/kaimallea/isMobile
var applePhone = /iPhone/i;
var appleIpod = /iPod/i;
var appleTablet = /iPad/i;
var androidPhone = /\bAndroid(?:.+)Mobile\b/i; // Match 'Android' AND 'Mobile'
var androidTablet = /Android/i;
var amazonPhone = /\bAndroid(?:.+)SD4930UR\b/i;
var amazonTablet = /\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i;
var windowsPhone = /Windows Phone/i;
var windowsTablet = /\bWindows(?:.+)ARM\b/i; // Match 'Windows' AND 'ARM'
var otherBlackberry = /BlackBerry/i;
var otherBlackberry10 = /BB10/i;
var otherOpera = /Opera Mini/i;
var otherChrome = /\b(CriOS|Chrome)(?:.+)Mobile/i;
var otherFirefox = /Mobile(?:.+)Firefox\b/i; // Match 'Mobile' AND 'Firefox'
function match(regex, userAgent) {
return regex.test(userAgent);
}
function isMobile(userAgent) {
var ua = userAgent || (typeof navigator !== 'undefined' ? navigator.userAgent : '');
// Facebook mobile app's integrated browser adds a bunch of strings that
// match everything. Strip it out if it exists.
var tmp = ua.split('[FBAN');
if (typeof tmp[1] !== 'undefined') {
var _tmp = tmp;
var _tmp2 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_tmp, 1);
ua = _tmp2[0];
}
// Twitter mobile app's integrated browser on iPad adds a "Twitter for
// iPhone" string. Same probably happens on other tablet platforms.
// This will confuse detection so strip it out if it exists.
tmp = ua.split('Twitter');
if (typeof tmp[1] !== 'undefined') {
var _tmp3 = tmp;
var _tmp4 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_tmp3, 1);
ua = _tmp4[0];
}
var result = {
apple: {
phone: match(applePhone, ua) && !match(windowsPhone, ua),
ipod: match(appleIpod, ua),
tablet: !match(applePhone, ua) && match(appleTablet, ua) && !match(windowsPhone, ua),
device: (match(applePhone, ua) || match(appleIpod, ua) || match(appleTablet, ua)) && !match(windowsPhone, ua)
},
amazon: {
phone: match(amazonPhone, ua),
tablet: !match(amazonPhone, ua) && match(amazonTablet, ua),
device: match(amazonPhone, ua) || match(amazonTablet, ua)
},
android: {
phone: !match(windowsPhone, ua) && match(amazonPhone, ua) || !match(windowsPhone, ua) && match(androidPhone, ua),
tablet: !match(windowsPhone, ua) && !match(amazonPhone, ua) && !match(androidPhone, ua) && (match(amazonTablet, ua) || match(androidTablet, ua)),
device: !match(windowsPhone, ua) && (match(amazonPhone, ua) || match(amazonTablet, ua) || match(androidPhone, ua) || match(androidTablet, ua)) || match(/\bokhttp\b/i, ua)
},
windows: {
phone: match(windowsPhone, ua),
tablet: match(windowsTablet, ua),
device: match(windowsPhone, ua) || match(windowsTablet, ua)
},
other: {
blackberry: match(otherBlackberry, ua),
blackberry10: match(otherBlackberry10, ua),
opera: match(otherOpera, ua),
firefox: match(otherFirefox, ua),
chrome: match(otherChrome, ua),
device: match(otherBlackberry, ua) || match(otherBlackberry10, ua) || match(otherOpera, ua) || match(otherFirefox, ua) || match(otherChrome, ua)
},
// Additional
any: null,
phone: null,
tablet: null
};
result.any = result.apple.device || result.android.device || result.windows.device || result.other.device;
// excludes 'other' devices and ipods, targeting touchscreen phones
result.phone = result.apple.phone || result.android.phone || result.windows.phone;
result.tablet = result.apple.tablet || result.android.tablet || result.windows.tablet;
return result;
}
var defaultResult = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, isMobile(), {
isMobile: isMobile
});
/* harmony default export */ __webpack_exports__["default"] = (defaultResult);
/***/ }),
/***/ "./components/vc-notification/Notice.jsx":
/*!***********************************************!*\
!*** ./components/vc-notification/Notice.jsx ***!
\***********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
function noop() {}
/* harmony default export */ __webpack_exports__["default"] = ({
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
props: {
duration: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number.def(1.5),
closable: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
update: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
closeIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
},
watch: {
duration: function duration() {
this.restartCloseTimer();
}
},
mounted: function mounted() {
this.startCloseTimer();
},
updated: function updated() {
if (this.update) {
this.restartCloseTimer();
}
},
beforeDestroy: function beforeDestroy() {
this.clearCloseTimer();
this.willDestroy = true; // beforeDestroy调用后依然会触发onMouseleave事件
},
methods: {
close: function close(e) {
if (e) {
e.stopPropagation();
}
this.clearCloseTimer();
this.__emit('close');
},
startCloseTimer: function startCloseTimer() {
var _this = this;
this.clearCloseTimer();
if (!this.willDestroy && this.duration) {
this.closeTimer = setTimeout(function () {
_this.close();
}, this.duration * 1000);
}
},
clearCloseTimer: function clearCloseTimer() {
if (this.closeTimer) {
clearTimeout(this.closeTimer);
this.closeTimer = null;
}
},
restartCloseTimer: function restartCloseTimer() {
this.clearCloseTimer();
this.startCloseTimer();
}
},
render: function render() {
var _className;
var h = arguments[0];
var prefixCls = this.prefixCls,
closable = this.closable,
clearCloseTimer = this.clearCloseTimer,
startCloseTimer = this.startCloseTimer,
$slots = this.$slots,
close = this.close;
var componentClass = prefixCls + '-notice';
var className = (_className = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_className, '' + componentClass, 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_className, componentClass + '-closable', closable), _className);
var style = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getStyle"])(this);
var closeIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'closeIcon');
return h(
'div',
{
'class': className,
style: style || { right: '50%' },
on: {
'mouseenter': clearCloseTimer,
'mouseleave': startCloseTimer,
'click': Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getListeners"])(this).click || noop
}
},
[h(
'div',
{ 'class': componentClass + '-content' },
[$slots['default']]
), closable ? h(
'a',
{
attrs: { tabIndex: '0' },
on: {
'click': close
},
'class': componentClass + '-close' },
[closeIcon || h('span', { 'class': componentClass + '-close-x' })]
) : null]
);
}
});
/***/ }),
/***/ "./components/vc-notification/Notification.jsx":
/*!*****************************************************!*\
!*** ./components/vc-notification/Notification.jsx ***!
\*****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ "vue");
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_createChainedFunction__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/createChainedFunction */ "./components/_util/createChainedFunction.js");
/* harmony import */ var _util_getTransitionProps__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/getTransitionProps */ "./components/_util/getTransitionProps.js");
/* harmony import */ var _Notice__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Notice */ "./components/vc-notification/Notice.jsx");
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../base */ "./components/base/index.js");
function noop() {}
var seed = 0;
var now = Date.now();
function getUuid() {
return 'rcNotification_' + now + '_' + seed++;
}
var Notification = {
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__["default"]],
props: {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.def('rc-notification'),
transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
animation: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object]).def('fade'),
maxCount: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
closeIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any
},
data: function data() {
return {
notices: []
};
},
methods: {
getTransitionName: function getTransitionName() {
var props = this.$props;
var transitionName = props.transitionName;
if (!transitionName && props.animation) {
transitionName = props.prefixCls + '-' + props.animation;
}
return transitionName;
},
add: function add(notice) {
var key = notice.key = notice.key || getUuid();
var maxCount = this.$props.maxCount;
this.setState(function (previousState) {
var notices = previousState.notices;
var noticeIndex = notices.map(function (v) {
return v.key;
}).indexOf(key);
var updatedNotices = notices.concat();
if (noticeIndex !== -1) {
updatedNotices.splice(noticeIndex, 1, notice);
} else {
if (maxCount && notices.length >= maxCount) {
// XXX, use key of first item to update new added (let React to move exsiting
// instead of remove and mount). Same key was used before for both a) external
// manual control and b) internal react 'key' prop , which is not that good.
notice.updateKey = updatedNotices[0].updateKey || updatedNotices[0].key;
updatedNotices.shift();
}
updatedNotices.push(notice);
}
return {
notices: updatedNotices
};
});
},
remove: function remove(key) {
this.setState(function (previousState) {
return {
notices: previousState.notices.filter(function (notice) {
return notice.key !== key;
})
};
});
}
},
render: function render(h) {
var _this = this;
var prefixCls = this.prefixCls,
notices = this.notices,
remove = this.remove,
getTransitionName = this.getTransitionName;
var transitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_7__["default"])(getTransitionName());
var noticeNodes = notices.map(function (notice, index) {
var update = Boolean(index === notices.length - 1 && notice.updateKey);
var key = notice.updateKey ? notice.updateKey : notice.key;
var content = notice.content,
duration = notice.duration,
closable = notice.closable,
onClose = notice.onClose,
style = notice.style,
className = notice['class'];
var close = Object(_util_createChainedFunction__WEBPACK_IMPORTED_MODULE_6__["default"])(remove.bind(_this, notice.key), onClose);
var noticeProps = {
props: {
prefixCls: prefixCls,
duration: duration,
closable: closable,
update: update,
closeIcon: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(_this, 'closeIcon')
},
on: {
close: close,
click: notice.onClick || noop
},
style: style,
'class': className,
key: key
};
return h(
_Notice__WEBPACK_IMPORTED_MODULE_8__["default"],
noticeProps,
[typeof content === 'function' ? content(h) : content]
);
});
var className = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, prefixCls, 1);
var style = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getStyle"])(this);
return h(
'div',
{
'class': className,
style: style || {
top: '65px',
left: '50%'
}
},
[h(
'transition-group',
transitionProps,
[noticeNodes]
)]
);
}
};
Notification.newInstance = function newNotificationInstance(properties, callback) {
var _ref = properties || {},
getContainer = _ref.getContainer,
style = _ref.style,
className = _ref['class'],
props = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(_ref, ['getContainer', 'style', 'class']);
var div = document.createElement('div');
if (getContainer) {
var root = getContainer();
root.appendChild(div);
} else {
document.body.appendChild(div);
}
var V = _base__WEBPACK_IMPORTED_MODULE_9__["default"].Vue || vue__WEBPACK_IMPORTED_MODULE_2___default.a;
new V({
el: div,
mounted: function mounted() {
var self = this;
this.$nextTick(function () {
callback({
notice: function notice(noticeProps) {
self.$refs.notification.add(noticeProps);
},
removeNotice: function removeNotice(key) {
self.$refs.notification.remove(key);
},
component: self,
destroy: function destroy() {
self.$destroy();
self.$el.parentNode.removeChild(self.$el);
}
});
});
},
render: function render() {
var h = arguments[0];
var p = {
props: props,
ref: 'notification',
style: style,
'class': className
};
return h(Notification, p);
}
});
};
/* harmony default export */ __webpack_exports__["default"] = (Notification);
/***/ }),
/***/ "./components/vc-notification/index.js":
/*!*********************************************!*\
!*** ./components/vc-notification/index.js ***!
\*********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Notification__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Notification */ "./components/vc-notification/Notification.jsx");
// based on rc-notification 3.3.1
/* harmony default export */ __webpack_exports__["default"] = (_Notification__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/vc-pagination/KeyCode.js":
/*!*********************************************!*\
!*** ./components/vc-pagination/KeyCode.js ***!
\*********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ({
ZERO: 48,
NINE: 57,
NUMPAD_ZERO: 96,
NUMPAD_NINE: 105,
BACKSPACE: 8,
DELETE: 46,
ENTER: 13,
ARROW_UP: 38,
ARROW_DOWN: 40
});
/***/ }),
/***/ "./components/vc-pagination/Options.jsx":
/*!**********************************************!*\
!*** ./components/vc-pagination/Options.jsx ***!
\**********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _KeyCode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./KeyCode */ "./components/vc-pagination/KeyCode.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony default export */ __webpack_exports__["default"] = ({
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
props: {
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
changeSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
quickGo: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
selectComponentClass: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
current: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
pageSizeOptions: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array.def(['10', '20', '30', '40']),
pageSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
buildOptionText: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
rootPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
selectPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
goButton: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
},
data: function data() {
return {
goInputText: ''
};
},
methods: {
getValidValue: function getValidValue() {
var goInputText = this.goInputText,
current = this.current;
return !goInputText || isNaN(goInputText) ? current : Number(goInputText);
},
defaultBuildOptionText: function defaultBuildOptionText(opt) {
return opt.value + ' ' + this.locale.items_per_page;
},
handleChange: function handleChange(e) {
var _e$target = e.target,
value = _e$target.value,
composing = _e$target.composing;
if (e.isComposing || composing || this.goInputText === value) return;
this.setState({
goInputText: value
});
},
handleBlur: function handleBlur(e) {
var _$props = this.$props,
goButton = _$props.goButton,
quickGo = _$props.quickGo,
rootPrefixCls = _$props.rootPrefixCls;
if (goButton) {
return;
}
if (e.relatedTarget && (e.relatedTarget.className.indexOf(rootPrefixCls + '-prev') >= 0 || e.relatedTarget.className.indexOf(rootPrefixCls + '-next') >= 0)) {
return;
}
quickGo(this.getValidValue());
},
go: function go(e) {
var goInputText = this.goInputText;
if (goInputText === '') {
return;
}
if (e.keyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_2__["default"].ENTER || e.type === 'click') {
// https://github.com/vueComponent/ant-design-vue/issues/1316
this.quickGo(this.getValidValue());
this.setState({
goInputText: ''
});
}
}
},
render: function render() {
var _this = this;
var h = arguments[0];
var rootPrefixCls = this.rootPrefixCls,
locale = this.locale,
changeSize = this.changeSize,
quickGo = this.quickGo,
goButton = this.goButton,
Select = this.selectComponentClass,
defaultBuildOptionText = this.defaultBuildOptionText,
selectPrefixCls = this.selectPrefixCls,
pageSize = this.pageSize,
pageSizeOptions = this.pageSizeOptions,
goInputText = this.goInputText,
disabled = this.disabled;
var prefixCls = rootPrefixCls + '-options';
var changeSelect = null;
var goInput = null;
var gotoButton = null;
if (!changeSize && !quickGo) {
return null;
}
if (changeSize && Select) {
var buildOptionText = this.buildOptionText || defaultBuildOptionText;
var options = pageSizeOptions.map(function (opt, i) {
return h(
Select.Option,
{ key: i, attrs: { value: opt }
},
[buildOptionText({ value: opt })]
);
});
changeSelect = h(
Select,
{
attrs: {
disabled: disabled,
prefixCls: selectPrefixCls,
showSearch: false,
optionLabelProp: 'children',
dropdownMatchSelectWidth: false,
value: (pageSize || pageSizeOptions[0]).toString(),
getPopupContainer: function getPopupContainer(triggerNode) {
return triggerNode.parentNode;
}
},
'class': prefixCls + '-size-changer', on: {
'change': function change(value) {
return _this.changeSize(Number(value));
}
}
},
[options]
);
}
if (quickGo) {
if (goButton) {
gotoButton = typeof goButton === 'boolean' ? h(
'button',
{
attrs: { type: 'button', disabled: disabled },
on: {
'click': this.go,
'keyup': this.go
}
},
[locale.jump_to_confirm]
) : h(
'span',
{
on: {
'click': this.go,
'keyup': this.go
}
},
[goButton]
);
}
goInput = h(
'div',
{ 'class': prefixCls + '-quick-jumper' },
[locale.jump_to, h('input', babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
attrs: {
disabled: disabled,
type: 'text'
},
domProps: {
'value': goInputText
},
on: {
'input': this.handleChange,
'keyup': this.go,
'blur': this.handleBlur
}
}, {
directives: [{
name: 'ant-input'
}]
}])), locale.page, gotoButton]
);
}
return h(
'li',
{ 'class': '' + prefixCls },
[changeSelect, goInput]
);
}
});
/***/ }),
/***/ "./components/vc-pagination/Pager.jsx":
/*!********************************************!*\
!*** ./components/vc-pagination/Pager.jsx ***!
\********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'Pager',
props: {
rootPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
page: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
active: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
last: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
showTitle: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
itemRender: {
type: Function,
'default': function _default() {}
}
},
methods: {
handleClick: function handleClick() {
this.$emit('click', this.page);
},
handleKeyPress: function handleKeyPress(event) {
this.$emit('keypress', event, this.handleClick, this.page);
}
},
render: function render() {
var _classNames;
var h = arguments[0];
var props = this.$props;
var prefixCls = props.rootPrefixCls + '-item';
var cls = classnames__WEBPACK_IMPORTED_MODULE_2___default()(prefixCls, prefixCls + '-' + props.page, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-active', props.active), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-disabled', !props.page), _classNames));
return h(
'li',
{
'class': cls,
on: {
'click': this.handleClick,
'keypress': this.handleKeyPress
},
attrs: {
title: this.showTitle ? this.page : null,
tabIndex: '0'
}
},
[this.itemRender(this.page, 'page', h('a', [this.page]))]
);
}
});
/***/ }),
/***/ "./components/vc-pagination/Pagination.jsx":
/*!*************************************************!*\
!*** ./components/vc-pagination/Pagination.jsx ***!
\*************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _Pager__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Pager */ "./components/vc-pagination/Pager.jsx");
/* harmony import */ var _Options__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Options */ "./components/vc-pagination/Options.jsx");
/* harmony import */ var _locale_zh_CN__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./locale/zh_CN */ "./components/vc-pagination/locale/zh_CN.js");
/* harmony import */ var _KeyCode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./KeyCode */ "./components/vc-pagination/KeyCode.js");
function noop() {}
// 是否是正整数
function isInteger(value) {
return typeof value === 'number' && isFinite(value) && Math.floor(value) === value;
}
function defaultItemRender(page, type, element) {
return element;
}
function calculatePage(p, state, props) {
var pageSize = p;
if (typeof pageSize === 'undefined') {
pageSize = state.statePageSize;
}
return Math.floor((props.total - 1) / pageSize) + 1;
}
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'Pagination',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
model: {
prop: 'current',
event: 'change.current'
},
props: {
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.def('rc-pagination'),
selectPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.def('rc-select'),
current: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
defaultCurrent: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number.def(1),
total: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number.def(0),
pageSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
defaultPageSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number.def(10),
hideOnSinglePage: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool.def(false),
showSizeChanger: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool.def(false),
showLessItems: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool.def(false),
// showSizeChange: PropTypes.func.def(noop),
selectComponentClass: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
showPrevNextJumpers: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool.def(true),
showQuickJumper: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object]).def(false),
showTitle: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool.def(true),
pageSizeOptions: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string),
buildOptionText: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
showTotal: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
simple: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
locale: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object.def(_locale_zh_CN__WEBPACK_IMPORTED_MODULE_8__["default"]),
itemRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func.def(defaultItemRender),
prevIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
nextIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
jumpPrevIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
jumpNextIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any
},
data: function data() {
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this);
var hasOnChange = this.onChange !== noop;
var hasCurrent = 'current' in props;
if (hasCurrent && !hasOnChange) {
console.warn('Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.'); // eslint-disable-line
}
var current = this.defaultCurrent;
if ('current' in props) {
current = this.current;
}
var pageSize = this.defaultPageSize;
if ('pageSize' in props) {
pageSize = this.pageSize;
}
current = Math.min(current, calculatePage(pageSize, undefined, props));
return {
stateCurrent: current,
stateCurrentInputValue: current,
statePageSize: pageSize
};
},
watch: {
current: function current(val) {
this.setState({
stateCurrent: val,
stateCurrentInputValue: val
});
},
pageSize: function pageSize(val) {
var newState = {};
var current = this.stateCurrent;
var newCurrent = calculatePage(val, this.$data, this.$props);
current = current > newCurrent ? newCurrent : current;
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'current')) {
newState.stateCurrent = current;
newState.stateCurrentInputValue = current;
}
newState.statePageSize = val;
this.setState(newState);
},
stateCurrent: function stateCurrent(val, oldValue) {
var _this = this;
// When current page change, fix focused style of prev item
// A hacky solution of https://github.com/ant-design/ant-design/issues/8948
this.$nextTick(function () {
if (_this.$refs.paginationNode) {
var lastCurrentNode = _this.$refs.paginationNode.querySelector('.' + _this.prefixCls + '-item-' + oldValue);
if (lastCurrentNode && document.activeElement === lastCurrentNode) {
lastCurrentNode.blur();
}
}
});
},
total: function total() {
var newState = {};
var newCurrent = calculatePage(this.pageSize, this.$data, this.$props);
if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'current')) {
var current = Math.min(this.current, newCurrent);
newState.stateCurrent = current;
newState.stateCurrentInputValue = current;
} else {
var _current = this.stateCurrent;
if (_current === 0 && newCurrent > 0) {
_current = 1;
} else {
_current = Math.min(this.stateCurrent, newCurrent);
}
newState.stateCurrent = _current;
}
this.setState(newState);
}
},
methods: {
getJumpPrevPage: function getJumpPrevPage() {
return Math.max(1, this.stateCurrent - (this.showLessItems ? 3 : 5));
},
getJumpNextPage: function getJumpNextPage() {
return Math.min(calculatePage(undefined, this.$data, this.$props), this.stateCurrent + (this.showLessItems ? 3 : 5));
},
getItemIcon: function getItemIcon(icon) {
var h = this.$createElement;
var prefixCls = this.$props.prefixCls;
var iconNode = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, icon, this.$props) || h('a', { 'class': prefixCls + '-item-link' });
return iconNode;
},
getValidValue: function getValidValue(e) {
var inputValue = e.target.value;
var allPages = calculatePage(undefined, this.$data, this.$props);
var stateCurrentInputValue = this.$data.stateCurrentInputValue;
var value = void 0;
if (inputValue === '') {
value = inputValue;
} else if (isNaN(Number(inputValue))) {
value = stateCurrentInputValue;
} else if (inputValue >= allPages) {
value = allPages;
} else {
value = Number(inputValue);
}
return value;
},
isValid: function isValid(page) {
return isInteger(page) && page !== this.stateCurrent;
},
shouldDisplayQuickJumper: function shouldDisplayQuickJumper() {
var _$props = this.$props,
showQuickJumper = _$props.showQuickJumper,
pageSize = _$props.pageSize,
total = _$props.total;
if (total <= pageSize) {
return false;
}
return showQuickJumper;
},
// calculatePage (p) {
// let pageSize = p
// if (typeof pageSize === 'undefined') {
// pageSize = this.statePageSize
// }
// return Math.floor((this.total - 1) / pageSize) + 1
// },
handleKeyDown: function handleKeyDown(event) {
if (event.keyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_9__["default"].ARROW_UP || event.keyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_9__["default"].ARROW_DOWN) {
event.preventDefault();
}
},
handleKeyUp: function handleKeyUp(e) {
if (e.isComposing || e.target.composing) return;
var value = this.getValidValue(e);
var stateCurrentInputValue = this.stateCurrentInputValue;
if (value !== stateCurrentInputValue) {
this.setState({
stateCurrentInputValue: value
});
}
if (e.keyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_9__["default"].ENTER) {
this.handleChange(value);
} else if (e.keyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_9__["default"].ARROW_UP) {
this.handleChange(value - 1);
} else if (e.keyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_9__["default"].ARROW_DOWN) {
this.handleChange(value + 1);
}
},
changePageSize: function changePageSize(size) {
var current = this.stateCurrent;
var preCurrent = current;
var newCurrent = calculatePage(size, this.$data, this.$props);
current = current > newCurrent ? newCurrent : current;
// fix the issue:
// Once 'total' is 0, 'current' in 'onShowSizeChange' is 0, which is not correct.
if (newCurrent === 0) {
current = this.stateCurrent;
}
if (typeof size === 'number') {
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'pageSize')) {
this.setState({
statePageSize: size
});
}
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'current')) {
this.setState({
stateCurrent: current,
stateCurrentInputValue: current
});
}
}
this.$emit('update:pageSize', size);
this.$emit('showSizeChange', current, size);
if (current !== preCurrent) {
this.$emit('change.current', current, size);
}
},
handleChange: function handleChange(p) {
var disabled = this.$props.disabled;
var page = p;
if (this.isValid(page) && !disabled) {
var currentPage = calculatePage(undefined, this.$data, this.$props);
if (page > currentPage) {
page = currentPage;
} else if (page < 1) {
page = 1;
}
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'current')) {
this.setState({
stateCurrent: page,
stateCurrentInputValue: page
});
}
// this.$emit('input', page)
this.$emit('change.current', page, this.statePageSize);
this.$emit('change', page, this.statePageSize);
return page;
}
return this.stateCurrent;
},
prev: function prev() {
if (this.hasPrev()) {
this.handleChange(this.stateCurrent - 1);
}
},
next: function next() {
if (this.hasNext()) {
this.handleChange(this.stateCurrent + 1);
}
},
jumpPrev: function jumpPrev() {
this.handleChange(this.getJumpPrevPage());
},
jumpNext: function jumpNext() {
this.handleChange(this.getJumpNextPage());
},
hasPrev: function hasPrev() {
return this.stateCurrent > 1;
},
hasNext: function hasNext() {
return this.stateCurrent < calculatePage(undefined, this.$data, this.$props);
},
runIfEnter: function runIfEnter(event, callback) {
if (event.key === 'Enter' || event.charCode === 13) {
for (var _len = arguments.length, restParams = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
restParams[_key - 2] = arguments[_key];
}
callback.apply(undefined, babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(restParams));
}
},
runIfEnterPrev: function runIfEnterPrev(event) {
this.runIfEnter(event, this.prev);
},
runIfEnterNext: function runIfEnterNext(event) {
this.runIfEnter(event, this.next);
},
runIfEnterJumpPrev: function runIfEnterJumpPrev(event) {
this.runIfEnter(event, this.jumpPrev);
},
runIfEnterJumpNext: function runIfEnterJumpNext(event) {
this.runIfEnter(event, this.jumpNext);
},
handleGoTO: function handleGoTO(event) {
if (event.keyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_9__["default"].ENTER || event.type === 'click') {
this.handleChange(this.stateCurrentInputValue);
}
}
},
render: function render() {
var _ref;
var h = arguments[0];
var _$props2 = this.$props,
prefixCls = _$props2.prefixCls,
disabled = _$props2.disabled;
// When hideOnSinglePage is true and there is only 1 page, hide the pager
if (this.hideOnSinglePage === true && this.total <= this.statePageSize) {
return null;
}
var props = this.$props;
var locale = this.locale;
var allPages = calculatePage(undefined, this.$data, this.$props);
var pagerList = [];
var jumpPrev = null;
var jumpNext = null;
var firstPager = null;
var lastPager = null;
var gotoButton = null;
var goButton = this.showQuickJumper && this.showQuickJumper.goButton;
var pageBufferSize = this.showLessItems ? 1 : 2;
var stateCurrent = this.stateCurrent,
statePageSize = this.statePageSize;
var prevPage = stateCurrent - 1 > 0 ? stateCurrent - 1 : 0;
var nextPage = stateCurrent + 1 < allPages ? stateCurrent + 1 : allPages;
if (this.simple) {
if (goButton) {
if (typeof goButton === 'boolean') {
gotoButton = h(
'button',
{
attrs: { type: 'button' },
on: {
'click': this.handleGoTO,
'keyup': this.handleGoTO
}
},
[locale.jump_to_confirm]
);
} else {
gotoButton = h(
'span',
{
on: {
'click': this.handleGoTO,
'keyup': this.handleGoTO
}
},
[goButton]
);
}
gotoButton = h(
'li',
{
attrs: {
title: this.showTitle ? '' + locale.jump_to + this.stateCurrent + '/' + allPages : null
},
'class': prefixCls + '-simple-pager'
},
[gotoButton]
);
}
var hasPrev = this.hasPrev();
var hasNext = this.hasNext();
return h(
'ul',
{ 'class': prefixCls + ' ' + prefixCls + '-simple' },
[h(
'li',
{
attrs: {
title: this.showTitle ? locale.prev_page : null,
tabIndex: hasPrev ? 0 : null,
'aria-disabled': !this.hasPrev()
},
on: {
'click': this.prev,
'keypress': this.runIfEnterPrev
},
'class': (hasPrev ? '' : prefixCls + '-disabled') + ' ' + prefixCls + '-prev' },
[this.itemRender(prevPage, 'prev', this.getItemIcon('prevIcon'))]
), h(
'li',
{
attrs: {
title: this.showTitle ? stateCurrent + '/' + allPages : null
},
'class': prefixCls + '-simple-pager'
},
[h('input', babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1___default()([{
attrs: {
type: 'text',
size: '3'
},
domProps: {
'value': this.stateCurrentInputValue
},
on: {
'keydown': this.handleKeyDown,
'keyup': this.handleKeyUp,
'input': this.handleKeyUp
}
}, {
directives: [{
name: 'ant-input'
}]
}])), h(
'span',
{ 'class': prefixCls + '-slash' },
['\uFF0F']
), allPages]
), h(
'li',
{
attrs: {
title: this.showTitle ? locale.next_page : null,
tabIndex: this.hasNext ? 0 : null,
'aria-disabled': !this.hasNext()
},
on: {
'click': this.next,
'keypress': this.runIfEnterNext
},
'class': (hasNext ? '' : prefixCls + '-disabled') + ' ' + prefixCls + '-next' },
[this.itemRender(nextPage, 'next', this.getItemIcon('nextIcon'))]
), gotoButton]
);
}
if (allPages <= 5 + pageBufferSize * 2) {
var pagerProps = {
props: {
locale: locale,
rootPrefixCls: prefixCls,
showTitle: props.showTitle,
itemRender: props.itemRender
},
on: {
click: this.handleChange,
keypress: this.runIfEnter
}
};
if (!allPages) {
pagerList.push(h(_Pager__WEBPACK_IMPORTED_MODULE_6__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1___default()([pagerProps, { key: 'noPager', attrs: { page: allPages },
'class': prefixCls + '-disabled' }])));
}
for (var i = 1; i <= allPages; i++) {
var active = stateCurrent === i;
pagerList.push(h(_Pager__WEBPACK_IMPORTED_MODULE_6__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1___default()([pagerProps, { key: i, attrs: { page: i, active: active }
}])));
}
} else {
var prevItemTitle = this.showLessItems ? locale.prev_3 : locale.prev_5;
var nextItemTitle = this.showLessItems ? locale.next_3 : locale.next_5;
if (this.showPrevNextJumpers) {
var jumpPrevClassString = prefixCls + '-jump-prev';
if (props.jumpPrevIcon) {
jumpPrevClassString += ' ' + prefixCls + '-jump-prev-custom-icon';
}
jumpPrev = h(
'li',
{
attrs: {
title: this.showTitle ? prevItemTitle : null,
tabIndex: '0'
},
key: 'prev',
on: {
'click': this.jumpPrev,
'keypress': this.runIfEnterJumpPrev
},
'class': jumpPrevClassString
},
[this.itemRender(this.getJumpPrevPage(), 'jump-prev', this.getItemIcon('jumpPrevIcon'))]
);
var jumpNextClassString = prefixCls + '-jump-next';
if (props.jumpNextIcon) {
jumpNextClassString += ' ' + prefixCls + '-jump-next-custom-icon';
}
jumpNext = h(
'li',
{
attrs: {
title: this.showTitle ? nextItemTitle : null,
tabIndex: '0'
},
key: 'next', on: {
'click': this.jumpNext,
'keypress': this.runIfEnterJumpNext
},
'class': jumpNextClassString
},
[this.itemRender(this.getJumpNextPage(), 'jump-next', this.getItemIcon('jumpNextIcon'))]
);
}
lastPager = h(_Pager__WEBPACK_IMPORTED_MODULE_6__["default"], {
attrs: {
locale: locale,
last: true,
rootPrefixCls: prefixCls,
page: allPages,
active: false,
showTitle: this.showTitle,
itemRender: this.itemRender
},
on: {
'click': this.handleChange,
'keypress': this.runIfEnter
},
key: allPages });
firstPager = h(_Pager__WEBPACK_IMPORTED_MODULE_6__["default"], {
attrs: {
locale: locale,
rootPrefixCls: prefixCls,
page: 1,
active: false,
showTitle: this.showTitle,
itemRender: this.itemRender
},
on: {
'click': this.handleChange,
'keypress': this.runIfEnter
},
key: 1 });
var left = Math.max(1, stateCurrent - pageBufferSize);
var right = Math.min(stateCurrent + pageBufferSize, allPages);
if (stateCurrent - 1 <= pageBufferSize) {
right = 1 + pageBufferSize * 2;
}
if (allPages - stateCurrent <= pageBufferSize) {
left = allPages - pageBufferSize * 2;
}
for (var _i = left; _i <= right; _i++) {
var _active = stateCurrent === _i;
pagerList.push(h(_Pager__WEBPACK_IMPORTED_MODULE_6__["default"], {
attrs: {
locale: locale,
rootPrefixCls: prefixCls,
page: _i,
active: _active,
showTitle: this.showTitle,
itemRender: this.itemRender
},
on: {
'click': this.handleChange,
'keypress': this.runIfEnter
},
key: _i }));
}
if (stateCurrent - 1 >= pageBufferSize * 2 && stateCurrent !== 1 + 2) {
pagerList[0] = h(_Pager__WEBPACK_IMPORTED_MODULE_6__["default"], {
attrs: {
locale: locale,
rootPrefixCls: prefixCls,
page: left,
active: false,
showTitle: this.showTitle,
itemRender: this.itemRender
},
on: {
'click': this.handleChange,
'keypress': this.runIfEnter
},
key: left, 'class': prefixCls + '-item-after-jump-prev' });
pagerList.unshift(jumpPrev);
}
if (allPages - stateCurrent >= pageBufferSize * 2 && stateCurrent !== allPages - 2) {
pagerList[pagerList.length - 1] = h(_Pager__WEBPACK_IMPORTED_MODULE_6__["default"], {
attrs: {
locale: locale,
rootPrefixCls: prefixCls,
page: right,
active: false,
showTitle: this.showTitle,
itemRender: this.itemRender
},
on: {
'click': this.handleChange,
'keypress': this.runIfEnter
},
key: right, 'class': prefixCls + '-item-before-jump-next' });
pagerList.push(jumpNext);
}
if (left !== 1) {
pagerList.unshift(firstPager);
}
if (right !== allPages) {
pagerList.push(lastPager);
}
}
var totalText = null;
if (this.showTotal) {
totalText = h(
'li',
{ 'class': prefixCls + '-total-text' },
[this.showTotal(this.total, [this.total === 0 ? 0 : (stateCurrent - 1) * statePageSize + 1, stateCurrent * statePageSize > this.total ? this.total : stateCurrent * statePageSize])]
);
}
var prevDisabled = !this.hasPrev() || !allPages;
var nextDisabled = !this.hasNext() || !allPages;
var buildOptionText = this.buildOptionText || this.$scopedSlots.buildOptionText;
return h(
'ul',
{
'class': (_ref = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, '' + prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, prefixCls + '-disabled', disabled), _ref),
attrs: { unselectable: 'unselectable'
},
ref: 'paginationNode'
},
[totalText, h(
'li',
{
attrs: {
title: this.showTitle ? locale.prev_page : null,
tabIndex: prevDisabled ? null : 0,
'aria-disabled': prevDisabled
},
on: {
'click': this.prev,
'keypress': this.runIfEnterPrev
},
'class': (!prevDisabled ? '' : prefixCls + '-disabled') + ' ' + prefixCls + '-prev' },
[this.itemRender(prevPage, 'prev', this.getItemIcon('prevIcon'))]
), pagerList, h(
'li',
{
attrs: {
title: this.showTitle ? locale.next_page : null,
tabIndex: nextDisabled ? null : 0,
'aria-disabled': nextDisabled
},
on: {
'click': this.next,
'keypress': this.runIfEnterNext
},
'class': (!nextDisabled ? '' : prefixCls + '-disabled') + ' ' + prefixCls + '-next' },
[this.itemRender(nextPage, 'next', this.getItemIcon('nextIcon'))]
), h(_Options__WEBPACK_IMPORTED_MODULE_7__["default"], {
attrs: {
disabled: disabled,
locale: locale,
rootPrefixCls: prefixCls,
selectComponentClass: this.selectComponentClass,
selectPrefixCls: this.selectPrefixCls,
changeSize: this.showSizeChanger ? this.changePageSize : null,
current: stateCurrent,
pageSize: statePageSize,
pageSizeOptions: this.pageSizeOptions,
buildOptionText: buildOptionText || null,
quickGo: this.shouldDisplayQuickJumper() ? this.handleChange : null,
goButton: goButton
}
})]
);
}
});
/***/ }),
/***/ "./components/vc-pagination/index.js":
/*!*******************************************!*\
!*** ./components/vc-pagination/index.js ***!
\*******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Pagination__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Pagination */ "./components/vc-pagination/Pagination.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _Pagination__WEBPACK_IMPORTED_MODULE_0__["default"]; });
// based on rc-pagination 1.20.14
/***/ }),
/***/ "./components/vc-pagination/locale/en_US.js":
/*!**************************************************!*\
!*** ./components/vc-pagination/locale/en_US.js ***!
\**************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ({
// Options.jsx
items_per_page: '/ page',
jump_to: 'Go to',
jump_to_confirm: 'confirm',
page: '',
// Pagination.jsx
prev_page: 'Previous Page',
next_page: 'Next Page',
prev_5: 'Previous 5 Pages',
next_5: 'Next 5 Pages',
prev_3: 'Previous 3 Pages',
next_3: 'Next 3 Pages'
});
/***/ }),
/***/ "./components/vc-pagination/locale/zh_CN.js":
/*!**************************************************!*\
!*** ./components/vc-pagination/locale/zh_CN.js ***!
\**************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ({
// Options.jsx
items_per_page: '条/页',
jump_to: '跳至',
jump_to_confirm: '确定',
page: '页',
// Pagination.jsx
prev_page: '上一页',
next_page: '下一页',
prev_5: '向前 5 页',
next_5: '向后 5 页',
prev_3: '向前 3 页',
next_3: '向后 3 页'
});
/***/ }),
/***/ "./components/vc-progress/index.js":
/*!*****************************************!*\
!*** ./components/vc-progress/index.js ***!
\*****************************************/
/*! exports provided: Line, Circle, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _src___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./src/ */ "./components/vc-progress/src/index.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Line", function() { return _src___WEBPACK_IMPORTED_MODULE_0__["Line"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Circle", function() { return _src___WEBPACK_IMPORTED_MODULE_0__["Circle"]; });
// based on rc-progress 2.5.2
/* harmony default export */ __webpack_exports__["default"] = (_src___WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/vc-progress/src/Circle.js":
/*!**********************************************!*\
!*** ./components/vc-progress/src/Circle.js ***!
\**********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue */ "vue");
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
/* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _enhancer__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./enhancer */ "./components/vc-progress/src/enhancer.js");
/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./types */ "./components/vc-progress/src/types.js");
var circlePropTypes = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _types__WEBPACK_IMPORTED_MODULE_8__["propTypes"], {
gapPosition: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].oneOf(['top', 'bottom', 'left', 'right']),
gapDegree: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool])
});
var circleDefaultProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _types__WEBPACK_IMPORTED_MODULE_8__["defaultProps"], {
gapPosition: 'top'
});
vue__WEBPACK_IMPORTED_MODULE_3___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_4___default.a, { name: 'ant-ref' });
var gradientSeed = 0;
function stripPercentToNumber(percent) {
return +percent.replace('%', '');
}
function toArray(symArray) {
return Array.isArray(symArray) ? symArray : [symArray];
}
function getPathStyles(offset, percent, strokeColor, strokeWidth) {
var gapDegree = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
var gapPosition = arguments[5];
var radius = 50 - strokeWidth / 2;
var beginPositionX = 0;
var beginPositionY = -radius;
var endPositionX = 0;
var endPositionY = -2 * radius;
switch (gapPosition) {
case 'left':
beginPositionX = -radius;
beginPositionY = 0;
endPositionX = 2 * radius;
endPositionY = 0;
break;
case 'right':
beginPositionX = radius;
beginPositionY = 0;
endPositionX = -2 * radius;
endPositionY = 0;
break;
case 'bottom':
beginPositionY = radius;
endPositionY = 2 * radius;
break;
default:
}
var pathString = 'M 50,50 m ' + beginPositionX + ',' + beginPositionY + '\n a ' + radius + ',' + radius + ' 0 1 1 ' + endPositionX + ',' + -endPositionY + '\n a ' + radius + ',' + radius + ' 0 1 1 ' + -endPositionX + ',' + endPositionY;
var len = Math.PI * 2 * radius;
var pathStyle = {
stroke: strokeColor,
strokeDasharray: percent / 100 * (len - gapDegree) + 'px ' + len + 'px',
strokeDashoffset: '-' + (gapDegree / 2 + offset / 100 * (len - gapDegree)) + 'px',
transition: 'stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s' // eslint-disable-line
};
return {
pathString: pathString,
pathStyle: pathStyle
};
}
var Circle = {
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["initDefaultProps"])(circlePropTypes, circleDefaultProps),
created: function created() {
this.paths = {};
this.gradientId = gradientSeed;
gradientSeed += 1;
},
methods: {
getStokeList: function getStokeList() {
var _this = this;
var h = this.$createElement;
var _$props = this.$props,
prefixCls = _$props.prefixCls,
percent = _$props.percent,
strokeColor = _$props.strokeColor,
strokeWidth = _$props.strokeWidth,
strokeLinecap = _$props.strokeLinecap,
gapDegree = _$props.gapDegree,
gapPosition = _$props.gapPosition;
var percentList = toArray(percent);
var strokeColorList = toArray(strokeColor);
var stackPtg = 0;
return percentList.map(function (ptg, index) {
var color = strokeColorList[index] || strokeColorList[strokeColorList.length - 1];
var stroke = Object.prototype.toString.call(color) === '[object Object]' ? 'url(#' + prefixCls + '-gradient-' + _this.gradientId + ')' : '';
var _getPathStyles = getPathStyles(stackPtg, ptg, color, strokeWidth, gapDegree, gapPosition),
pathString = _getPathStyles.pathString,
pathStyle = _getPathStyles.pathStyle;
stackPtg += ptg;
var pathProps = {
key: index,
attrs: {
d: pathString,
stroke: stroke,
'stroke-linecap': strokeLinecap,
'stroke-width': strokeWidth,
opacity: ptg === 0 ? 0 : 1,
'fill-opacity': '0'
},
'class': prefixCls + '-circle-path',
style: pathStyle,
directives: [{
name: 'ant-ref',
value: function value(c) {
_this.paths[index] = c;
}
}]
};
return h('path', pathProps);
});
}
},
render: function render() {
var h = arguments[0];
var _$props2 = this.$props,
prefixCls = _$props2.prefixCls,
strokeWidth = _$props2.strokeWidth,
trailWidth = _$props2.trailWidth,
gapDegree = _$props2.gapDegree,
gapPosition = _$props2.gapPosition,
trailColor = _$props2.trailColor,
strokeLinecap = _$props2.strokeLinecap,
strokeColor = _$props2.strokeColor,
restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_$props2, ['prefixCls', 'strokeWidth', 'trailWidth', 'gapDegree', 'gapPosition', 'trailColor', 'strokeLinecap', 'strokeColor']);
var _getPathStyles2 = getPathStyles(0, 100, trailColor, strokeWidth, gapDegree, gapPosition),
pathString = _getPathStyles2.pathString,
pathStyle = _getPathStyles2.pathStyle;
delete restProps.percent;
var strokeColorList = toArray(strokeColor);
var gradient = strokeColorList.find(function (color) {
return Object.prototype.toString.call(color) === '[object Object]';
});
var pathFirst = {
attrs: {
d: pathString,
stroke: trailColor,
'stroke-linecap': strokeLinecap,
'stroke-width': trailWidth || strokeWidth,
'fill-opacity': '0'
},
'class': prefixCls + '-circle-trail',
style: pathStyle
};
return h(
'svg',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ 'class': prefixCls + '-circle', attrs: { viewBox: '0 0 100 100' }
}, restProps]),
[gradient && h('defs', [h(
'linearGradient',
{
attrs: {
id: prefixCls + '-gradient-' + this.gradientId,
x1: '100%',
y1: '0%',
x2: '0%',
y2: '0%'
}
},
[Object.keys(gradient).sort(function (a, b) {
return stripPercentToNumber(a) - stripPercentToNumber(b);
}).map(function (key, index) {
return h('stop', { key: index, attrs: { offset: key, 'stop-color': gradient[key] }
});
})]
)]), h('path', pathFirst), this.getStokeList().reverse()]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (Object(_enhancer__WEBPACK_IMPORTED_MODULE_7__["default"])(Circle));
/***/ }),
/***/ "./components/vc-progress/src/Line.js":
/*!********************************************!*\
!*** ./components/vc-progress/src/Line.js ***!
\********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ "vue");
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
/* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _enhancer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./enhancer */ "./components/vc-progress/src/enhancer.js");
/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./types */ "./components/vc-progress/src/types.js");
vue__WEBPACK_IMPORTED_MODULE_2___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_3___default.a, { name: 'ant-ref' });
var Line = {
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["initDefaultProps"])(_types__WEBPACK_IMPORTED_MODULE_6__["propTypes"], _types__WEBPACK_IMPORTED_MODULE_6__["defaultProps"]),
created: function created() {
this.paths = {};
},
render: function render() {
var _this = this;
var h = arguments[0];
var _$props = this.$props,
percent = _$props.percent,
prefixCls = _$props.prefixCls,
strokeColor = _$props.strokeColor,
strokeLinecap = _$props.strokeLinecap,
strokeWidth = _$props.strokeWidth,
trailColor = _$props.trailColor,
trailWidth = _$props.trailWidth,
transition = _$props.transition,
restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_$props, ['percent', 'prefixCls', 'strokeColor', 'strokeLinecap', 'strokeWidth', 'trailColor', 'trailWidth', 'transition']);
delete restProps.gapPosition;
var percentList = Array.isArray(percent) ? percent : [percent];
var strokeColorList = Array.isArray(strokeColor) ? strokeColor : [strokeColor];
var center = strokeWidth / 2;
var right = 100 - strokeWidth / 2;
var pathString = 'M ' + (strokeLinecap === 'round' ? center : 0) + ',' + center + '\n L ' + (strokeLinecap === 'round' ? right : 100) + ',' + center;
var viewBoxString = '0 0 100 ' + strokeWidth;
var stackPtg = 0;
var pathFirst = {
attrs: {
d: pathString,
'stroke-linecap': strokeLinecap,
stroke: trailColor,
'stroke-width': trailWidth || strokeWidth,
'fill-opacity': '0'
},
'class': prefixCls + '-line-trail'
};
return h(
'svg',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
'class': prefixCls + '-line',
attrs: { viewBox: viewBoxString,
preserveAspectRatio: 'none'
}
}, restProps]),
[h('path', pathFirst), percentList.map(function (ptg, index) {
var pathStyle = {
strokeDasharray: ptg + 'px, 100px',
strokeDashoffset: '-' + stackPtg + 'px',
transition: transition || 'stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear'
};
var color = strokeColorList[index] || strokeColorList[strokeColorList.length - 1];
stackPtg += ptg;
var pathProps = {
key: index,
attrs: {
d: pathString,
'stroke-linecap': strokeLinecap,
stroke: color,
'stroke-width': strokeWidth,
'fill-opacity': '0'
},
'class': prefixCls + '-line-path',
style: pathStyle,
directives: [{
name: 'ant-ref',
value: function value(c) {
_this.paths[index] = c;
}
}]
};
return h('path', pathProps);
})]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (Object(_enhancer__WEBPACK_IMPORTED_MODULE_5__["default"])(Line));
/***/ }),
/***/ "./components/vc-progress/src/enhancer.js":
/*!************************************************!*\
!*** ./components/vc-progress/src/enhancer.js ***!
\************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
function enhancer(Component) {
return {
mixins: [Component],
updated: function updated() {
var _this = this;
var now = Date.now();
var updated = false;
Object.keys(this.paths).forEach(function (key) {
var path = _this.paths[key];
if (!path) {
return;
}
updated = true;
var pathStyle = path.style;
pathStyle.transitionDuration = '.3s, .3s, .3s, .06s';
if (_this.prevTimeStamp && now - _this.prevTimeStamp < 100) {
pathStyle.transitionDuration = '0s, 0s';
}
});
if (updated) {
this.prevTimeStamp = Date.now();
}
}
};
}
/* harmony default export */ __webpack_exports__["default"] = (enhancer);
/***/ }),
/***/ "./components/vc-progress/src/index.js":
/*!*********************************************!*\
!*** ./components/vc-progress/src/index.js ***!
\*********************************************/
/*! exports provided: Line, Circle, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Line__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Line */ "./components/vc-progress/src/Line.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Line", function() { return _Line__WEBPACK_IMPORTED_MODULE_0__["default"]; });
/* harmony import */ var _Circle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Circle */ "./components/vc-progress/src/Circle.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Circle", function() { return _Circle__WEBPACK_IMPORTED_MODULE_1__["default"]; });
/* harmony default export */ __webpack_exports__["default"] = ({
Line: _Line__WEBPACK_IMPORTED_MODULE_0__["default"],
Circle: _Circle__WEBPACK_IMPORTED_MODULE_1__["default"]
});
/***/ }),
/***/ "./components/vc-progress/src/types.js":
/*!*********************************************!*\
!*** ./components/vc-progress/src/types.js ***!
\*********************************************/
/*! exports provided: defaultProps, propTypes */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultProps", function() { return defaultProps; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "propTypes", function() { return propTypes; });
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
var defaultProps = {
// className: '',
percent: 0,
prefixCls: 'rc-progress',
strokeColor: '#2db7f5',
strokeLinecap: 'round',
strokeWidth: 1,
// style: {},
trailColor: '#D9D9D9',
trailWidth: 1
};
var mixedType = _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string]);
var propTypes = {
// className: PropTypes.string,
percent: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([mixedType, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].arrayOf(mixedType)]),
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
strokeColor: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object])), _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object]),
strokeLinecap: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['butt', 'round', 'square']),
strokeWidth: mixedType,
// style: PropTypes.object,
trailColor: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
trailWidth: mixedType
};
/***/ }),
/***/ "./components/vc-rate/index.js":
/*!*************************************!*\
!*** ./components/vc-rate/index.js ***!
\*************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _src___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./src/ */ "./components/vc-rate/src/index.js");
// based on rc-rate 2.5.0
/* harmony default export */ __webpack_exports__["default"] = (_src___WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/vc-rate/src/Rate.jsx":
/*!*****************************************!*\
!*** ./components/vc-rate/src/Rate.jsx ***!
\*****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.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 _util_KeyCode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/KeyCode */ "./components/_util/KeyCode.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./util */ "./components/vc-rate/src/util.js");
/* harmony import */ var _Star__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Star */ "./components/vc-rate/src/Star.jsx");
var rateProps = {
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
count: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
allowHalf: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
allowClear: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
character: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
characterRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool
};
function noop() {}
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'Rate',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
model: {
prop: 'value',
event: 'change'
},
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["initDefaultProps"])(rateProps, {
defaultValue: 0,
count: 5,
allowHalf: false,
allowClear: true,
prefixCls: 'rc-rate',
tabIndex: 0,
character: '★'
}),
data: function data() {
var value = this.value;
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["hasProp"])(this, 'value')) {
value = this.defaultValue;
}
return {
sValue: value,
focused: false,
cleanedValue: null,
hoverValue: undefined
};
},
watch: {
value: function value(val) {
this.setState({
sValue: val
});
}
},
mounted: function mounted() {
var _this = this;
this.$nextTick(function () {
if (_this.autoFocus && !_this.disabled) {
_this.focus();
}
});
},
methods: {
onHover: function onHover(event, index) {
var hoverValue = this.getStarValue(index, event.pageX);
var cleanedValue = this.cleanedValue;
if (hoverValue !== cleanedValue) {
this.setState({
hoverValue: hoverValue,
cleanedValue: null
});
}
this.$emit('hoverChange', hoverValue);
},
onMouseLeave: function onMouseLeave() {
this.setState({
hoverValue: undefined,
cleanedValue: null
});
this.$emit('hoverChange', undefined);
},
onClick: function onClick(event, index) {
var allowClear = this.allowClear,
value = this.sValue;
var newValue = this.getStarValue(index, event.pageX);
var isReset = false;
if (allowClear) {
isReset = newValue === value;
}
this.onMouseLeave(true);
this.changeValue(isReset ? 0 : newValue);
this.setState({
cleanedValue: isReset ? newValue : null
});
},
onFocus: function onFocus() {
this.setState({
focused: true
});
this.$emit('focus');
},
onBlur: function onBlur() {
this.setState({
focused: false
});
this.$emit('blur');
},
onKeyDown: function onKeyDown(event) {
var keyCode = event.keyCode;
var count = this.count,
allowHalf = this.allowHalf;
var sValue = this.sValue;
if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_2__["default"].RIGHT && sValue < count) {
if (allowHalf) {
sValue += 0.5;
} else {
sValue += 1;
}
this.changeValue(sValue);
event.preventDefault();
} else if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_2__["default"].LEFT && sValue > 0) {
if (allowHalf) {
sValue -= 0.5;
} else {
sValue -= 1;
}
this.changeValue(sValue);
event.preventDefault();
}
this.$emit('keydown', event);
},
getStarDOM: function getStarDOM(index) {
return this.$refs['stars' + index].$el;
},
getStarValue: function getStarValue(index, x) {
var value = index + 1;
if (this.allowHalf) {
var starEle = this.getStarDOM(index);
var leftDis = Object(_util__WEBPACK_IMPORTED_MODULE_5__["getOffsetLeft"])(starEle);
var width = starEle.clientWidth;
if (x - leftDis < width / 2) {
value -= 0.5;
}
}
return value;
},
focus: function focus() {
if (!this.disabled) {
this.$refs.rateRef.focus();
}
},
blur: function blur() {
if (!this.disabled) {
this.$refs.rateRef.blur();
}
},
changeValue: function changeValue(value) {
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["hasProp"])(this, 'value')) {
this.setState({
sValue: value
});
}
this.$emit('change', value);
}
},
render: function render() {
var h = arguments[0];
var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getOptionProps"])(this),
count = _getOptionProps.count,
allowHalf = _getOptionProps.allowHalf,
prefixCls = _getOptionProps.prefixCls,
disabled = _getOptionProps.disabled,
tabIndex = _getOptionProps.tabIndex;
var sValue = this.sValue,
hoverValue = this.hoverValue,
focused = this.focused;
var stars = [];
var disabledClass = disabled ? prefixCls + '-disabled' : '';
var character = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'character');
var characterRender = this.characterRender || this.$scopedSlots.characterRender;
for (var index = 0; index < count; index++) {
var starProps = {
props: {
index: index,
count: count,
disabled: disabled,
prefixCls: prefixCls + '-star',
allowHalf: allowHalf,
value: hoverValue === undefined ? sValue : hoverValue,
character: character,
characterRender: characterRender,
focused: focused
},
on: {
click: this.onClick,
hover: this.onHover
},
key: index,
ref: 'stars' + index
};
stars.push(h(_Star__WEBPACK_IMPORTED_MODULE_6__["default"], starProps));
}
return h(
'ul',
{
'class': classnames__WEBPACK_IMPORTED_MODULE_1___default()(prefixCls, disabledClass),
on: {
'mouseleave': disabled ? noop : this.onMouseLeave,
'focus': disabled ? noop : this.onFocus,
'blur': disabled ? noop : this.onBlur,
'keydown': disabled ? noop : this.onKeyDown
},
attrs: {
tabIndex: disabled ? -1 : tabIndex,
role: 'radiogroup'
},
ref: 'rateRef' },
[stars]
);
}
});
/***/ }),
/***/ "./components/vc-rate/src/Star.jsx":
/*!*****************************************!*\
!*** ./components/vc-rate/src/Star.jsx ***!
\*****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
function noop() {}
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'Star',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__["default"]],
props: {
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
index: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
allowHalf: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
character: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
characterRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
focused: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
count: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number
},
methods: {
onHover: function onHover(e) {
var index = this.index;
this.$emit('hover', e, index);
},
onClick: function onClick(e) {
var index = this.index;
this.$emit('click', e, index);
},
onKeyDown: function onKeyDown(e) {
var index = this.$props.index;
if (e.keyCode === 13) {
this.__emit('click', e, index);
}
},
getClassName: function getClassName() {
var prefixCls = this.prefixCls,
index = this.index,
value = this.value,
allowHalf = this.allowHalf,
focused = this.focused;
var starValue = index + 1;
var className = prefixCls;
if (value === 0 && index === 0 && focused) {
className += ' ' + prefixCls + '-focused';
} else if (allowHalf && value + 0.5 === starValue) {
className += ' ' + prefixCls + '-half ' + prefixCls + '-active';
if (focused) {
className += ' ' + prefixCls + '-focused';
}
} else {
className += starValue <= value ? ' ' + prefixCls + '-full' : ' ' + prefixCls + '-zero';
if (starValue === value && focused) {
className += ' ' + prefixCls + '-focused';
}
}
return className;
}
},
render: function render() {
var h = arguments[0];
var onHover = this.onHover,
onClick = this.onClick,
onKeyDown = this.onKeyDown,
disabled = this.disabled,
prefixCls = this.prefixCls,
characterRender = this.characterRender,
index = this.index,
count = this.count,
value = this.value;
var character = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'character');
var star = h(
'li',
{ 'class': this.getClassName() },
[h(
'div',
{
on: {
'click': disabled ? noop : onClick,
'keydown': disabled ? noop : onKeyDown,
'mousemove': disabled ? noop : onHover
},
attrs: {
role: 'radio',
'aria-checked': value > index ? 'true' : 'false',
'aria-posinset': index + 1,
'aria-setsize': count,
tabIndex: 0
}
},
[h(
'div',
{ 'class': prefixCls + '-first' },
[character]
), h(
'div',
{ 'class': prefixCls + '-second' },
[character]
)]
)]
);
if (characterRender) {
star = characterRender(star, this.$props);
}
return star;
}
});
/***/ }),
/***/ "./components/vc-rate/src/index.js":
/*!*****************************************!*\
!*** ./components/vc-rate/src/index.js ***!
\*****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Rate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Rate */ "./components/vc-rate/src/Rate.jsx");
/* harmony default export */ __webpack_exports__["default"] = (_Rate__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/vc-rate/src/util.js":
/*!****************************************!*\
!*** ./components/vc-rate/src/util.js ***!
\****************************************/
/*! exports provided: getOffsetLeft */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getOffsetLeft", function() { return getOffsetLeft; });
function getScroll(w, top) {
var ret = top ? w.pageYOffset : w.pageXOffset;
var method = top ? 'scrollTop' : 'scrollLeft';
if (typeof ret !== 'number') {
var d = w.document;
// ie6,7,8 standard mode
ret = d.documentElement[method];
if (typeof ret !== 'number') {
// quirks mode
ret = d.body[method];
}
}
return ret;
}
function getClientPosition(elem) {
var x = void 0;
var y = void 0;
var doc = elem.ownerDocument;
var body = doc.body;
var docElem = doc && doc.documentElement;
var box = elem.getBoundingClientRect();
x = box.left;
y = box.top;
x -= docElem.clientLeft || body.clientLeft || 0;
y -= docElem.clientTop || body.clientTop || 0;
return {
left: x,
top: y
};
}
function getOffsetLeft(el) {
var pos = getClientPosition(el);
var doc = el.ownerDocument;
var w = doc.defaultView || doc.parentWindow;
pos.left += getScroll(w);
return pos.left;
}
/***/ }),
/***/ "./components/vc-resize-observer/index.jsx":
/*!*************************************************!*\
!*** ./components/vc-resize-observer/index.jsx ***!
\*************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! resize-observer-polyfill */ "./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js");
// based on rc-resize-observer 0.1.3
// Still need to be compatible with React 15, we use class component here
var VueResizeObserver = {
name: 'ResizeObserver',
props: {
disabled: Boolean
},
data: function data() {
this.currentElement = null;
this.resizeObserver = null;
return {
width: 0,
height: 0
};
},
mounted: function mounted() {
this.onComponentUpdated();
},
updated: function updated() {
this.onComponentUpdated();
},
beforeDestroy: function beforeDestroy() {
this.destroyObserver();
},
methods: {
onComponentUpdated: function onComponentUpdated() {
var disabled = this.$props.disabled;
// Unregister if disabled
if (disabled) {
this.destroyObserver();
return;
}
// Unregister if element changed
var element = this.$el;
var elementChanged = element !== this.currentElement;
if (elementChanged) {
this.destroyObserver();
this.currentElement = element;
}
if (!this.resizeObserver && element) {
this.resizeObserver = new resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_0__["default"](this.onResize);
this.resizeObserver.observe(element);
}
},
onResize: function onResize(entries) {
var target = entries[0].target;
var _target$getBoundingCl = target.getBoundingClientRect(),
width = _target$getBoundingCl.width,
height = _target$getBoundingCl.height;
/**
* Resize observer trigger when content size changed.
* In most case we just care about element size,
* let's use `boundary` instead of `contentRect` here to avoid shaking.
*/
var fixedWidth = Math.floor(width);
var fixedHeight = Math.floor(height);
if (this.width !== fixedWidth || this.height !== fixedHeight) {
var size = { width: fixedWidth, height: fixedHeight };
this.width = fixedWidth;
this.height = fixedHeight;
this.$emit('resize', size);
}
},
destroyObserver: function destroyObserver() {
if (this.resizeObserver) {
this.resizeObserver.disconnect();
this.resizeObserver = null;
}
}
},
render: function render() {
return this.$slots['default'][0];
}
};
/* harmony default export */ __webpack_exports__["default"] = (VueResizeObserver);
/***/ }),
/***/ "./components/vc-select/DropdownMenu.jsx":
/*!***********************************************!*\
!*** ./components/vc-select/DropdownMenu.jsx ***!
\***********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! raf */ "./node_modules/raf/index.js");
/* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(raf__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _vc_menu__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../vc-menu */ "./components/vc-menu/index.js");
/* harmony import */ var dom_scroll_into_view__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! dom-scroll-into-view */ "./node_modules/dom-scroll-into-view/dist-web/index.js");
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./util */ "./components/vc-select/util.js");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'DropdownMenu',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__["default"]],
props: {
ariaId: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
defaultActiveFirstOption: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
dropdownMenuStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
// onPopupFocus: PropTypes.func,
// onPopupScroll: PropTypes.func,
// onMenuDeSelect: PropTypes.func,
// onMenuSelect: PropTypes.func,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
menuItems: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
inputValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
backfillValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
firstActiveValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
menuItemSelectedIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any
},
watch: {
visible: function visible(val) {
var _this = this;
if (!val) {
this.lastVisible = val;
} else {
this.$nextTick(function () {
_this.scrollActiveItemToView();
});
}
}
},
created: function created() {
this.rafInstance = null;
this.lastInputValue = this.$props.inputValue;
this.lastVisible = false;
},
mounted: function mounted() {
var _this2 = this;
this.$nextTick(function () {
_this2.scrollActiveItemToView();
});
this.lastVisible = this.$props.visible;
},
updated: function updated() {
var props = this.$props;
// if (!this.prevVisible && props.visible) {
// this.$nextTick(() => {
// this.scrollActiveItemToView();
// });
// }
this.lastVisible = props.visible;
this.lastInputValue = props.inputValue;
this.prevVisible = this.visible;
},
beforeDestroy: function beforeDestroy() {
if (this.rafInstance) {
raf__WEBPACK_IMPORTED_MODULE_1___default.a.cancel(this.rafInstance);
}
},
methods: {
scrollActiveItemToView: function scrollActiveItemToView() {
var _this3 = this;
// scroll into view
var itemComponent = this.firstActiveItem && this.firstActiveItem.$el;
var props = this.$props;
var value = props.value,
visible = props.visible,
firstActiveValue = props.firstActiveValue;
if (!itemComponent || !visible) {
return;
}
var scrollIntoViewOpts = {
onlyScrollIfNeeded: true
};
if ((!value || value.length === 0) && firstActiveValue) {
scrollIntoViewOpts.alignWithTop = true;
}
// Delay to scroll since current frame item position is not ready when pre view is by filter
// https://github.com/ant-design/ant-design/issues/11268#issuecomment-406634462
this.rafInstance = raf__WEBPACK_IMPORTED_MODULE_1___default()(function () {
Object(dom_scroll_into_view__WEBPACK_IMPORTED_MODULE_4__["default"])(itemComponent, _this3.$refs.menuRef.$el, scrollIntoViewOpts);
});
},
renderMenu: function renderMenu() {
var _this4 = this;
var h = this.$createElement;
var props = this.$props;
var menuItems = props.menuItems,
defaultActiveFirstOption = props.defaultActiveFirstOption,
value = props.value,
prefixCls = props.prefixCls,
multiple = props.multiple,
inputValue = props.inputValue,
firstActiveValue = props.firstActiveValue,
dropdownMenuStyle = props.dropdownMenuStyle,
backfillValue = props.backfillValue,
visible = props.visible;
var menuItemSelectedIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getComponentFromProp"])(this, 'menuItemSelectedIcon');
var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getListeners"])(this),
menuDeselect = _getListeners.menuDeselect,
menuSelect = _getListeners.menuSelect,
popupScroll = _getListeners.popupScroll;
if (menuItems && menuItems.length) {
var selectedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_5__["getSelectKeys"])(menuItems, value);
var menuProps = {
props: {
multiple: multiple,
itemIcon: multiple ? menuItemSelectedIcon : null,
selectedKeys: selectedKeys,
prefixCls: prefixCls + '-menu'
},
on: {},
style: dropdownMenuStyle,
ref: 'menuRef',
attrs: {
role: 'listbox'
}
};
if (popupScroll) {
menuProps.on.scroll = popupScroll;
}
if (multiple) {
menuProps.on.deselect = menuDeselect;
menuProps.on.select = menuSelect;
} else {
menuProps.on.click = menuSelect;
}
var activeKeyProps = {};
var defaultActiveFirst = defaultActiveFirstOption;
var clonedMenuItems = menuItems;
if (selectedKeys.length || firstActiveValue) {
if (props.visible && !this.lastVisible) {
activeKeyProps.activeKey = selectedKeys[0] || firstActiveValue;
} else if (!visible) {
// Do not trigger auto active since we already have selectedKeys
if (selectedKeys[0]) {
defaultActiveFirst = false;
}
activeKeyProps.activeKey = undefined;
}
var foundFirst = false;
// set firstActiveItem via cloning menus
// for scroll into view
var clone = function clone(item) {
if (!foundFirst && selectedKeys.indexOf(item.key) !== -1 || !foundFirst && !selectedKeys.length && firstActiveValue.indexOf(item.key) !== -1) {
foundFirst = true;
return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_6__["cloneElement"])(item, {
directives: [{
name: 'ant-ref',
value: function value(ref) {
_this4.firstActiveItem = ref;
}
}]
});
}
return item;
};
clonedMenuItems = menuItems.map(function (item) {
if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getSlotOptions"])(item).isMenuItemGroup) {
var children = item.componentOptions.children.map(clone);
return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_6__["cloneElement"])(item, { children: children });
}
return clone(item);
});
} else {
// Clear firstActiveItem when dropdown menu items was empty
// Avoid `Unable to find node on an unmounted component`
// https://github.com/ant-design/ant-design/issues/10774
this.firstActiveItem = null;
}
// clear activeKey when inputValue change
var lastValue = value && value[value.length - 1];
if (inputValue !== this.lastInputValue && (!lastValue || lastValue !== backfillValue)) {
activeKeyProps.activeKey = '';
}
menuProps.props = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, activeKeyProps, menuProps.props, { defaultActiveFirst: defaultActiveFirst });
return h(
_vc_menu__WEBPACK_IMPORTED_MODULE_3__["default"],
menuProps,
[clonedMenuItems]
);
}
return null;
}
},
render: function render() {
var h = arguments[0];
var renderMenu = this.renderMenu();
var _getListeners2 = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getListeners"])(this),
popupFocus = _getListeners2.popupFocus,
popupScroll = _getListeners2.popupScroll;
return renderMenu ? h(
'div',
{
style: {
overflow: 'auto',
transform: 'translateZ(0)'
},
attrs: { id: this.$props.ariaId,
tabIndex: '-1'
},
on: {
'focus': popupFocus,
'mousedown': _util__WEBPACK_IMPORTED_MODULE_5__["preventDefaultEvent"],
'scroll': popupScroll
},
ref: 'menuContainer'
},
[renderMenu]
) : null;
}
});
/***/ }),
/***/ "./components/vc-select/OptGroup.jsx":
/*!*******************************************!*\
!*** ./components/vc-select/OptGroup.jsx ***!
\*******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony default export */ __webpack_exports__["default"] = ({
props: {
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]),
label: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number])
},
isSelectOptGroup: true
});
/***/ }),
/***/ "./components/vc-select/Option.jsx":
/*!*****************************************!*\
!*** ./components/vc-select/Option.jsx ***!
\*****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony default export */ __webpack_exports__["default"] = ({
props: {
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]),
label: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]),
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
title: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number])
},
isSelectOption: true
});
/***/ }),
/***/ "./components/vc-select/PropTypes.js":
/*!*******************************************!*\
!*** ./components/vc-select/PropTypes.js ***!
\*******************************************/
/*! exports provided: SelectPropTypes */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SelectPropTypes", function() { return SelectPropTypes; });
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
var SelectPropTypes = {
defaultActiveFirstOption: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
filterOption: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
// children: PropTypes.any,
showSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
allowClear: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
showArrow: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
tags: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
// className: PropTypes.string,
transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
optionLabelProp: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
optionFilterProp: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
animation: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
choiceTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
open: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
defaultOpen: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
// onChange: PropTypes.func,
// onBlur: PropTypes.func,
// onFocus: PropTypes.func,
// onSelect: PropTypes.func,
// onSearch: PropTypes.func,
// onPopupScroll: PropTypes.func,
// onMouseEnter: PropTypes.func,
// onMouseLeave: PropTypes.func,
// onInputKeyDown: PropTypes.func,
placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
// onDeselect: PropTypes.func,
labelInValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
loading: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
dropdownStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
dropdownClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
maxTagTextLength: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
maxTagCount: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
maxTagPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
tokenSeparators: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string),
getInputElement: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
showAction: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string),
autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
clearIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
inputIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
removeIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
menuItemSelectedIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
dropdownRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
mode: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['multiple', 'tags']),
backfill: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
dropdownAlign: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
dropdownMatchSelectWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
dropdownMenuStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
notFoundContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([String, Number]),
tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([String, Number])
};
/***/ }),
/***/ "./components/vc-select/Select.jsx":
/*!*****************************************!*\
!*** ./components/vc-select/Select.jsx ***!
\*****************************************/
/*! exports provided: Select, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Select", function() { return Select; });
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/KeyCode */ "./components/_util/KeyCode.js");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var component_classes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! component-classes */ "./node_modules/component-classes/index.js");
/* harmony import */ var component_classes__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(component_classes__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _vc_menu__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../vc-menu */ "./components/vc-menu/index.js");
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! warning */ "./node_modules/warning/warning.js");
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! vue */ "vue");
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_9__);
/* harmony import */ var _Option__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Option */ "./components/vc-select/Option.jsx");
/* harmony import */ var _OptGroup__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./OptGroup */ "./components/vc-select/OptGroup.jsx");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_getTransitionProps__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../_util/getTransitionProps */ "./components/_util/getTransitionProps.js");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_proxyComponent__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../_util/proxyComponent */ "./components/_util/proxyComponent.jsx");
/* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
/* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_17__);
/* harmony import */ var _SelectTrigger__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./SelectTrigger */ "./components/vc-select/SelectTrigger.jsx");
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./util */ "./components/vc-select/util.js");
/* harmony import */ var _PropTypes__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./PropTypes */ "./components/vc-select/PropTypes.js");
/* harmony import */ var _vc_util_Dom_contains__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../vc-util/Dom/contains */ "./components/vc-util/Dom/contains.js");
/* harmony import */ var _util_env__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../_util/env */ "./components/_util/env.js");
vue__WEBPACK_IMPORTED_MODULE_9___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_17___default.a, { name: 'ant-ref' });
var SELECT_EMPTY_VALUE_KEY = 'RC_SELECT_EMPTY_VALUE_KEY';
var noop = function noop() {
return null;
};
// Where el is the DOM element you'd like to test for visibility
function isHidden(node) {
return !node || node.offsetParent === null;
}
function chaining() {
for (var _len = arguments.length, fns = Array(_len), _key = 0; _key < _len; _key++) {
fns[_key] = arguments[_key];
}
return function () {
for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
args[_key2] = arguments[_key2];
}
// eslint-disable-line
// eslint-disable-line
for (var i = 0; i < fns.length; i++) {
if (fns[i] && typeof fns[i] === 'function') {
fns[i].apply(chaining, args);
}
}
};
}
var Select = {
inheritAttrs: false,
Option: _Option__WEBPACK_IMPORTED_MODULE_10__["default"],
OptGroup: _OptGroup__WEBPACK_IMPORTED_MODULE_11__["default"],
name: 'Select',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_15__["default"]],
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _PropTypes__WEBPACK_IMPORTED_MODULE_20__["SelectPropTypes"], {
prefixCls: _PropTypes__WEBPACK_IMPORTED_MODULE_20__["SelectPropTypes"].prefixCls.def('rc-select'),
defaultOpen: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool.def(false),
labelInValue: _PropTypes__WEBPACK_IMPORTED_MODULE_20__["SelectPropTypes"].labelInValue.def(false),
defaultActiveFirstOption: _PropTypes__WEBPACK_IMPORTED_MODULE_20__["SelectPropTypes"].defaultActiveFirstOption.def(true),
showSearch: _PropTypes__WEBPACK_IMPORTED_MODULE_20__["SelectPropTypes"].showSearch.def(true),
allowClear: _PropTypes__WEBPACK_IMPORTED_MODULE_20__["SelectPropTypes"].allowClear.def(false),
placeholder: _PropTypes__WEBPACK_IMPORTED_MODULE_20__["SelectPropTypes"].placeholder.def(''),
// showArrow: SelectPropTypes.showArrow.def(true),
dropdownMatchSelectWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool.def(true),
dropdownStyle: _PropTypes__WEBPACK_IMPORTED_MODULE_20__["SelectPropTypes"].dropdownStyle.def(function () {
return {};
}),
dropdownMenuStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object.def(function () {
return {};
}),
optionFilterProp: _PropTypes__WEBPACK_IMPORTED_MODULE_20__["SelectPropTypes"].optionFilterProp.def('value'),
optionLabelProp: _PropTypes__WEBPACK_IMPORTED_MODULE_20__["SelectPropTypes"].optionLabelProp.def('value'),
notFoundContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any.def('Not Found'),
backfill: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool.def(false),
showAction: _PropTypes__WEBPACK_IMPORTED_MODULE_20__["SelectPropTypes"].showAction.def(['click']),
combobox: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool.def(false),
tokenSeparators: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string).def([]),
autoClearSearchValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool.def(true),
tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any.def(0),
dropdownRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func.def(function (menu) {
return menu;
})
// onChange: noop,
// onFocus: noop,
// onBlur: noop,
// onSelect: noop,
// onSearch: noop,
// onDeselect: noop,
// onInputKeydown: noop,
}),
model: {
prop: 'value',
event: 'change'
},
created: function created() {
this.saveInputRef = Object(_util__WEBPACK_IMPORTED_MODULE_19__["saveRef"])(this, 'inputRef');
this.saveInputMirrorRef = Object(_util__WEBPACK_IMPORTED_MODULE_19__["saveRef"])(this, 'inputMirrorRef');
this.saveTopCtrlRef = Object(_util__WEBPACK_IMPORTED_MODULE_19__["saveRef"])(this, 'topCtrlRef');
this.saveSelectTriggerRef = Object(_util__WEBPACK_IMPORTED_MODULE_19__["saveRef"])(this, 'selectTriggerRef');
this.saveRootRef = Object(_util__WEBPACK_IMPORTED_MODULE_19__["saveRef"])(this, 'rootRef');
this.saveSelectionRef = Object(_util__WEBPACK_IMPORTED_MODULE_19__["saveRef"])(this, 'selectionRef');
this._focused = false;
this._mouseDown = false;
this._options = [];
this._empty = false;
},
data: function data() {
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getOptionProps"])(this);
var optionsInfo = this.getOptionsInfoFromProps(props);
warning__WEBPACK_IMPORTED_MODULE_8___default()(this.__propsSymbol__, 'Replace slots.default with props.children and pass props.__propsSymbol__');
if (props.tags && typeof props.filterOption !== 'function') {
var isDisabledExist = Object.keys(optionsInfo).some(function (key) {
return optionsInfo[key].disabled;
});
warning__WEBPACK_IMPORTED_MODULE_8___default()(!isDisabledExist, 'Please avoid setting option to disabled in tags mode since user can always type text as tag.');
}
var state = {
_value: this.getValueFromProps(props, true), // true: use default value
_inputValue: props.combobox ? this.getInputValueForCombobox(props, optionsInfo, true // use default value
) : '',
_open: props.defaultOpen,
_optionsInfo: optionsInfo,
_backfillValue: '',
// a flag for aviod redundant getOptionsInfoFromProps call
_skipBuildOptionsInfo: true,
_ariaId: Object(_util__WEBPACK_IMPORTED_MODULE_19__["generateUUID"])()
};
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, state, {
_mirrorInputValue: state._inputValue }, this.getDerivedState(props, state));
},
mounted: function mounted() {
var _this = this;
this.$nextTick(function () {
// when defaultOpen is true, we should auto focus search input
// https://github.com/ant-design/ant-design/issues/14254
if (_this.autoFocus || _this._open) {
_this.focus();
}
// this.setState({
// _ariaId: generateUUID(),
// });
});
},
watch: {
__propsSymbol__: function __propsSymbol__() {
babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()(this.$data, this.getDerivedState(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getOptionProps"])(this), this.$data));
},
'$data._inputValue': function $data_inputValue(val) {
this.$data._mirrorInputValue = val;
}
},
updated: function updated() {
var _this2 = this;
this.$nextTick(function () {
if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(_this2.$props)) {
var inputNode = _this2.getInputDOMNode();
var mirrorNode = _this2.getInputMirrorDOMNode();
if (inputNode && inputNode.value && mirrorNode) {
inputNode.style.width = '';
inputNode.style.width = mirrorNode.clientWidth + 10 + 'px';
} else if (inputNode) {
inputNode.style.width = '';
}
}
_this2.forcePopupAlign();
});
},
beforeDestroy: function beforeDestroy() {
this.clearFocusTime();
this.clearBlurTime();
this.clearComboboxTime();
if (this.dropdownContainer) {
document.body.removeChild(this.dropdownContainer);
this.dropdownContainer = null;
}
},
methods: {
getDerivedState: function getDerivedState(nextProps, prevState) {
var optionsInfo = prevState._skipBuildOptionsInfo ? prevState._optionsInfo : this.getOptionsInfoFromProps(nextProps, prevState);
var newState = {
_optionsInfo: optionsInfo,
_skipBuildOptionsInfo: false
};
if ('open' in nextProps) {
newState._open = nextProps.open;
}
if ('value' in nextProps) {
var value = this.getValueFromProps(nextProps);
newState._value = value;
if (nextProps.combobox) {
newState._inputValue = this.getInputValueForCombobox(nextProps, optionsInfo);
}
}
return newState;
},
getOptionsFromChildren: function getOptionsFromChildren() {
var _this3 = this;
var children = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
children.forEach(function (child) {
if (!child.data || child.data.slot !== undefined) {
return;
}
if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getSlotOptions"])(child).isSelectOptGroup) {
_this3.getOptionsFromChildren(child.componentOptions.children, options);
} else {
options.push(child);
}
});
return options;
},
getInputValueForCombobox: function getInputValueForCombobox(props, optionsInfo, useDefaultValue) {
var value = [];
if ('value' in props && !useDefaultValue) {
value = Object(_util__WEBPACK_IMPORTED_MODULE_19__["toArray"])(props.value);
}
if ('defaultValue' in props && useDefaultValue) {
value = Object(_util__WEBPACK_IMPORTED_MODULE_19__["toArray"])(props.defaultValue);
}
if (value.length) {
value = value[0];
} else {
return '';
}
var label = value;
if (props.labelInValue) {
label = value.label;
} else if (optionsInfo[Object(_util__WEBPACK_IMPORTED_MODULE_19__["getMapKey"])(value)]) {
label = optionsInfo[Object(_util__WEBPACK_IMPORTED_MODULE_19__["getMapKey"])(value)].label;
}
if (label === undefined) {
label = '';
}
return label;
},
getLabelFromOption: function getLabelFromOption(props, option) {
return Object(_util__WEBPACK_IMPORTED_MODULE_19__["getPropValue"])(option, props.optionLabelProp);
},
getOptionsInfoFromProps: function getOptionsInfoFromProps(props, preState) {
var _this4 = this;
var options = this.getOptionsFromChildren(this.$props.children);
var optionsInfo = {};
options.forEach(function (option) {
var singleValue = Object(_util__WEBPACK_IMPORTED_MODULE_19__["getValuePropValue"])(option);
optionsInfo[Object(_util__WEBPACK_IMPORTED_MODULE_19__["getMapKey"])(singleValue)] = {
option: option,
value: singleValue,
label: _this4.getLabelFromOption(props, option),
title: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getValueByProp"])(option, 'title'),
disabled: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getValueByProp"])(option, 'disabled')
};
});
if (preState) {
// keep option info in pre state value.
var oldOptionsInfo = preState._optionsInfo;
var value = preState._value;
if (value) {
value.forEach(function (v) {
var key = Object(_util__WEBPACK_IMPORTED_MODULE_19__["getMapKey"])(v);
if (!optionsInfo[key] && oldOptionsInfo[key] !== undefined) {
optionsInfo[key] = oldOptionsInfo[key];
}
});
}
}
return optionsInfo;
},
getValueFromProps: function getValueFromProps(props, useDefaultValue) {
var value = [];
if ('value' in props && !useDefaultValue) {
value = Object(_util__WEBPACK_IMPORTED_MODULE_19__["toArray"])(props.value);
}
if ('defaultValue' in props && useDefaultValue) {
value = Object(_util__WEBPACK_IMPORTED_MODULE_19__["toArray"])(props.defaultValue);
}
if (props.labelInValue) {
value = value.map(function (v) {
return v.key;
});
}
return value;
},
onInputChange: function onInputChange(e) {
var _e$target = e.target,
val = _e$target.value,
composing = _e$target.composing;
var _$data$_inputValue = this.$data._inputValue,
_inputValue = _$data$_inputValue === undefined ? '' : _$data$_inputValue;
if (e.isComposing || composing || _inputValue === val) {
this.setState({
_mirrorInputValue: val
});
return;
}
var tokenSeparators = this.$props.tokenSeparators;
if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(this.$props) && tokenSeparators.length && Object(_util__WEBPACK_IMPORTED_MODULE_19__["includesSeparators"])(val, tokenSeparators)) {
var nextValue = this.getValueByInput(val);
if (nextValue !== undefined) {
this.fireChange(nextValue);
}
this.setOpenState(false, { needFocus: true });
this.setInputValue('', false);
return;
}
this.setInputValue(val);
this.setState({
_open: true
});
if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isCombobox"])(this.$props)) {
this.fireChange([val]);
}
},
onDropdownVisibleChange: function onDropdownVisibleChange(open) {
if (open && !this._focused) {
this.clearBlurTime();
this.timeoutFocus();
this._focused = true;
this.updateFocusClassName();
}
this.setOpenState(open);
},
// combobox ignore
onKeyDown: function onKeyDown(event) {
var open = this.$data._open;
var disabled = this.$props.disabled;
if (disabled) {
return;
}
var keyCode = event.keyCode;
if (open && !this.getInputDOMNode()) {
this.onInputKeydown(event);
} else if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].ENTER || keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].DOWN) {
// vue state是同步更新onKeyDown在onMenuSelect后会再次调用单选时不在调用setOpenState
// https://github.com/vueComponent/ant-design-vue/issues/1142
if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].ENTER && !Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(this.$props)) {
this.maybeFocus(true);
} else if (!open) {
this.setOpenState(true);
}
event.preventDefault();
} else if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].SPACE) {
// Not block space if popup is shown
if (!open) {
this.setOpenState(true);
event.preventDefault();
}
}
},
onInputKeydown: function onInputKeydown(event) {
var _this5 = this;
var _$props = this.$props,
disabled = _$props.disabled,
combobox = _$props.combobox,
defaultActiveFirstOption = _$props.defaultActiveFirstOption;
if (disabled) {
return;
}
var state = this.$data;
var isRealOpen = this.getRealOpenState(state);
var keyCode = event.keyCode;
if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(this.$props) && !event.target.value && keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].BACKSPACE) {
event.preventDefault();
var value = state._value;
if (value.length) {
this.removeSelected(value[value.length - 1]);
}
return;
}
if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].DOWN) {
if (!state._open) {
this.openIfHasChildren();
event.preventDefault();
event.stopPropagation();
return;
}
} else if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].ENTER && state._open) {
// Aviod trigger form submit when select item
// https://github.com/ant-design/ant-design/issues/10861
// https://github.com/ant-design/ant-design/issues/14544
if (isRealOpen || !combobox) {
event.preventDefault();
}
// Hard close popup to avoid lock of non option in combobox mode
if (isRealOpen && combobox && defaultActiveFirstOption === false) {
this.comboboxTimer = setTimeout(function () {
_this5.setOpenState(false);
});
}
} else if (keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].ESC) {
if (state._open) {
this.setOpenState(false);
event.preventDefault();
event.stopPropagation();
}
return;
}
if (isRealOpen && this.selectTriggerRef) {
var menu = this.selectTriggerRef.getInnerMenu();
if (menu && menu.onKeyDown(event, this.handleBackfill)) {
event.preventDefault();
event.stopPropagation();
}
}
},
onMenuSelect: function onMenuSelect(_ref) {
var item = _ref.item;
if (!item) {
return;
}
var value = this.$data._value;
var props = this.$props;
var selectedValue = Object(_util__WEBPACK_IMPORTED_MODULE_19__["getValuePropValue"])(item);
var lastValue = value[value.length - 1];
var skipTrigger = false;
if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(props)) {
if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["findIndexInValueBySingleValue"])(value, selectedValue) !== -1) {
skipTrigger = true;
} else {
value = value.concat([selectedValue]);
}
} else {
if (!Object(_util__WEBPACK_IMPORTED_MODULE_19__["isCombobox"])(props) && lastValue !== undefined && lastValue === selectedValue && selectedValue !== this.$data._backfillValue) {
this.setOpenState(false, { needFocus: true, fireSearch: false });
skipTrigger = true;
} else {
value = [selectedValue];
this.setOpenState(false, { needFocus: true, fireSearch: false });
}
}
if (!skipTrigger) {
this.fireChange(value);
}
if (!skipTrigger) {
this.fireSelect(selectedValue);
var inputValue = Object(_util__WEBPACK_IMPORTED_MODULE_19__["isCombobox"])(props) ? Object(_util__WEBPACK_IMPORTED_MODULE_19__["getPropValue"])(item, props.optionLabelProp) : '';
if (props.autoClearSearchValue) {
this.setInputValue(inputValue, false);
}
}
},
onMenuDeselect: function onMenuDeselect(_ref2) {
var item = _ref2.item,
domEvent = _ref2.domEvent;
if (domEvent.type === 'keydown' && domEvent.keyCode === _util_KeyCode__WEBPACK_IMPORTED_MODULE_3__["default"].ENTER) {
var menuItemDomNode = item.$el;
// https://github.com/ant-design/ant-design/issues/20465#issuecomment-569033796
if (!isHidden(menuItemDomNode)) {
this.removeSelected(Object(_util__WEBPACK_IMPORTED_MODULE_19__["getValuePropValue"])(item));
}
return;
}
if (domEvent.type === 'click') {
this.removeSelected(Object(_util__WEBPACK_IMPORTED_MODULE_19__["getValuePropValue"])(item));
}
if (this.autoClearSearchValue) {
this.setInputValue('');
}
},
onArrowClick: function onArrowClick(e) {
e.stopPropagation();
e.preventDefault();
this.clearBlurTime();
if (!this.disabled) {
this.setOpenState(!this.$data._open, { needFocus: !this.$data._open });
}
},
onPlaceholderClick: function onPlaceholderClick() {
if (this.getInputDOMNode() && this.getInputDOMNode()) {
this.getInputDOMNode().focus();
}
},
onPopupFocus: function onPopupFocus() {
// fix ie scrollbar, focus element again
this.maybeFocus(true, true);
},
onClearSelection: function onClearSelection(event) {
var props = this.$props;
var state = this.$data;
if (props.disabled) {
return;
}
var inputValue = state._inputValue,
value = state._value;
event.stopPropagation();
if (inputValue || value.length) {
if (value.length) {
this.fireChange([]);
}
this.setOpenState(false, { needFocus: true });
if (inputValue) {
this.setInputValue('');
}
}
},
onChoiceAnimationLeave: function onChoiceAnimationLeave() {
this.forcePopupAlign();
},
getOptionInfoBySingleValue: function getOptionInfoBySingleValue(value, optionsInfo) {
var h = this.$createElement;
var info = void 0;
optionsInfo = optionsInfo || this.$data._optionsInfo;
if (optionsInfo[Object(_util__WEBPACK_IMPORTED_MODULE_19__["getMapKey"])(value)]) {
info = optionsInfo[Object(_util__WEBPACK_IMPORTED_MODULE_19__["getMapKey"])(value)];
}
if (info) {
return info;
}
var defaultLabel = value;
if (this.$props.labelInValue) {
var valueLabel = Object(_util__WEBPACK_IMPORTED_MODULE_19__["getLabelFromPropsValue"])(this.$props.value, value);
var defaultValueLabel = Object(_util__WEBPACK_IMPORTED_MODULE_19__["getLabelFromPropsValue"])(this.$props.defaultValue, value);
if (valueLabel !== undefined) {
defaultLabel = valueLabel;
} else if (defaultValueLabel !== undefined) {
defaultLabel = defaultValueLabel;
}
}
var defaultInfo = {
option: h(
_Option__WEBPACK_IMPORTED_MODULE_10__["default"],
{
attrs: { value: value },
key: value },
[value]
),
value: value,
label: defaultLabel
};
return defaultInfo;
},
getOptionBySingleValue: function getOptionBySingleValue(value) {
var _getOptionInfoBySingl = this.getOptionInfoBySingleValue(value),
option = _getOptionInfoBySingl.option;
return option;
},
getOptionsBySingleValue: function getOptionsBySingleValue(values) {
var _this6 = this;
return values.map(function (value) {
return _this6.getOptionBySingleValue(value);
});
},
getValueByLabel: function getValueByLabel(label) {
var _this7 = this;
if (label === undefined) {
return null;
}
var value = null;
Object.keys(this.$data._optionsInfo).forEach(function (key) {
var info = _this7.$data._optionsInfo[key];
var disabled = info.disabled;
if (disabled) {
return;
}
var oldLable = Object(_util__WEBPACK_IMPORTED_MODULE_19__["toArray"])(info.label);
if (oldLable && oldLable.join('') === label) {
value = info.value;
}
});
return value;
},
getVLBySingleValue: function getVLBySingleValue(value) {
if (this.$props.labelInValue) {
return {
key: value,
label: this.getLabelBySingleValue(value)
};
}
return value;
},
getVLForOnChange: function getVLForOnChange(vlsS) {
var _this8 = this;
var vls = vlsS;
if (vls !== undefined) {
if (!this.labelInValue) {
vls = vls.map(function (v) {
return v;
});
} else {
vls = vls.map(function (vl) {
return {
key: vl,
label: _this8.getLabelBySingleValue(vl)
};
});
}
return Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(this.$props) ? vls : vls[0];
}
return vls;
},
getLabelBySingleValue: function getLabelBySingleValue(value, optionsInfo) {
var _getOptionInfoBySingl2 = this.getOptionInfoBySingleValue(value, optionsInfo),
label = _getOptionInfoBySingl2.label;
return label;
},
getDropdownContainer: function getDropdownContainer() {
if (!this.dropdownContainer) {
this.dropdownContainer = document.createElement('div');
document.body.appendChild(this.dropdownContainer);
}
return this.dropdownContainer;
},
getPlaceholderElement: function getPlaceholderElement() {
var h = this.$createElement;
var props = this.$props,
state = this.$data;
var hidden = false;
if (state._mirrorInputValue) {
hidden = true;
}
var value = state._value;
if (value.length) {
hidden = true;
}
if (!state._mirrorInputValue && Object(_util__WEBPACK_IMPORTED_MODULE_19__["isCombobox"])(props) && value.length === 1 && state._value && !state._value[0]) {
hidden = false;
}
var placeholder = props.placeholder;
if (placeholder) {
var p = {
on: {
mousedown: _util__WEBPACK_IMPORTED_MODULE_19__["preventDefaultEvent"],
click: this.onPlaceholderClick
},
attrs: _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_ATTRIBUTE"],
style: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
display: hidden ? 'none' : 'block'
}, _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_STYLE"]),
'class': props.prefixCls + '-selection__placeholder'
};
return h(
'div',
p,
[placeholder]
);
}
return null;
},
inputClick: function inputClick(e) {
if (this.$data._open) {
this.clearBlurTime();
e.stopPropagation();
} else {
this._focused = false;
}
},
inputBlur: function inputBlur(e) {
var _this9 = this;
var target = e.relatedTarget || document.activeElement;
// https://github.com/vueComponent/ant-design-vue/issues/999
// https://github.com/vueComponent/ant-design-vue/issues/1223
if ((_util_env__WEBPACK_IMPORTED_MODULE_22__["isIE"] || _util_env__WEBPACK_IMPORTED_MODULE_22__["isEdge"]) && (e.relatedTarget === this.$refs.arrow || target && this.selectTriggerRef && this.selectTriggerRef.getInnerMenu() && this.selectTriggerRef.getInnerMenu().$el === target || Object(_vc_util_Dom_contains__WEBPACK_IMPORTED_MODULE_21__["default"])(e.target, target))) {
e.target.focus();
e.preventDefault();
return;
}
this.clearBlurTime();
if (this.disabled) {
e.preventDefault();
return;
}
this.blurTimer = setTimeout(function () {
_this9._focused = false;
_this9.updateFocusClassName();
var props = _this9.$props;
var value = _this9.$data._value;
var inputValue = _this9.$data._inputValue;
if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isSingleMode"])(props) && props.showSearch && inputValue && props.defaultActiveFirstOption) {
var options = _this9._options || [];
if (options.length) {
var firstOption = Object(_util__WEBPACK_IMPORTED_MODULE_19__["findFirstMenuItem"])(options);
if (firstOption) {
value = [Object(_util__WEBPACK_IMPORTED_MODULE_19__["getValuePropValue"])(firstOption)];
_this9.fireChange(value);
}
}
} else if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(props) && inputValue) {
if (_this9._mouseDown) {
// need update dropmenu when not blur
_this9.setInputValue('');
} else {
// why not use setState?
_this9.$data._inputValue = '';
if (_this9.getInputDOMNode && _this9.getInputDOMNode()) {
_this9.getInputDOMNode().value = '';
}
}
var tmpValue = _this9.getValueByInput(inputValue);
if (tmpValue !== undefined) {
value = tmpValue;
_this9.fireChange(value);
}
}
// if click the rest space of Select in multiple mode
if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(props) && _this9._mouseDown) {
_this9.maybeFocus(true, true);
_this9._mouseDown = false;
return;
}
_this9.setOpenState(false);
_this9.$emit('blur', _this9.getVLForOnChange(value));
}, 200);
},
inputFocus: function inputFocus(e) {
if (this.$props.disabled) {
e.preventDefault();
return;
}
this.clearBlurTime();
// In IE11, onOuterFocus will be trigger twice when focus input
// First one: e.target is div
// Second one: e.target is input
// other browser only trigger second one
// https://github.com/ant-design/ant-design/issues/15942
// Here we ignore the first one when e.target is div
var inputNode = this.getInputDOMNode();
if (inputNode && e.target === this.rootRef) {
return;
}
if (!Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTagsOrCombobox"])(this.$props) && e.target === inputNode) {
return;
}
if (this._focused) {
return;
}
this._focused = true;
this.updateFocusClassName();
// only effect multiple or tag mode
if (!Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(this.$props) || !this._mouseDown) {
this.timeoutFocus();
}
},
_getInputElement: function _getInputElement() {
var h = this.$createElement;
var props = this.$props;
var _$data = this.$data,
inputValue = _$data._inputValue,
_mirrorInputValue = _$data._mirrorInputValue;
var attrs = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getAttrs"])(this);
var defaultInput = h('input', {
attrs: { id: attrs.id, autoComplete: 'off' }
});
var inputElement = props.getInputElement ? props.getInputElement() : defaultInput;
var inputCls = classnames__WEBPACK_IMPORTED_MODULE_5___default()(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getClass"])(inputElement), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, props.prefixCls + '-search__field', true));
var inputEvents = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getEvents"])(inputElement);
// https://github.com/ant-design/ant-design/issues/4992#issuecomment-281542159
// Add space to the end of the inputValue as the width measurement tolerance
inputElement.data = inputElement.data || {};
return h(
'div',
{ 'class': props.prefixCls + '-search__field__wrap', on: {
'click': this.inputClick
}
},
[Object(_util_vnode__WEBPACK_IMPORTED_MODULE_14__["cloneElement"])(inputElement, {
props: {
disabled: props.disabled,
value: inputValue
},
attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, inputElement.data.attrs || {}, {
disabled: props.disabled,
value: inputValue
}),
domProps: {
value: inputValue
},
'class': inputCls,
directives: [{
name: 'ant-ref',
value: this.saveInputRef
}, {
name: 'ant-input'
}],
on: {
input: this.onInputChange,
keydown: chaining(this.onInputKeydown, inputEvents.keydown, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getListeners"])(this).inputKeydown),
focus: chaining(this.inputFocus, inputEvents.focus),
blur: chaining(this.inputBlur, inputEvents.blur)
}
}), h(
'span',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
directives: [{
name: 'ant-ref',
value: this.saveInputMirrorRef
}]
}, {
// ref='inputMirrorRef'
'class': props.prefixCls + '-search__field__mirror'
}]),
[_mirrorInputValue, '\xA0']
)]
);
},
getInputDOMNode: function getInputDOMNode() {
return this.topCtrlRef ? this.topCtrlRef.querySelector('input,textarea,div[contentEditable]') : this.inputRef;
},
getInputMirrorDOMNode: function getInputMirrorDOMNode() {
return this.inputMirrorRef;
},
getPopupDOMNode: function getPopupDOMNode() {
if (this.selectTriggerRef) {
return this.selectTriggerRef.getPopupDOMNode();
}
},
getPopupMenuComponent: function getPopupMenuComponent() {
if (this.selectTriggerRef) {
return this.selectTriggerRef.getInnerMenu();
}
},
setOpenState: function setOpenState(open) {
var _this10 = this;
var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var props = this.$props,
state = this.$data;
var needFocus = config.needFocus,
fireSearch = config.fireSearch;
if (state._open === open) {
this.maybeFocus(open, !!needFocus);
return;
}
this.__emit('dropdownVisibleChange', open);
var nextState = {
_open: open,
_backfillValue: ''
};
// clear search input value when open is false in singleMode.
if (!open && Object(_util__WEBPACK_IMPORTED_MODULE_19__["isSingleMode"])(props) && props.showSearch) {
this.setInputValue('', fireSearch);
}
if (!open) {
this.maybeFocus(open, !!needFocus);
}
this.setState(nextState, function () {
if (open) {
_this10.maybeFocus(open, !!needFocus);
}
});
},
setInputValue: function setInputValue(inputValue) {
var fireSearch = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
if (inputValue !== this.$data._inputValue) {
this.setState({
_inputValue: inputValue
}, this.forcePopupAlign);
if (fireSearch) {
this.$emit('search', inputValue);
}
}
},
getValueByInput: function getValueByInput(str) {
var _this11 = this;
var _$props2 = this.$props,
multiple = _$props2.multiple,
tokenSeparators = _$props2.tokenSeparators;
var nextValue = this.$data._value;
var hasNewValue = false;
Object(_util__WEBPACK_IMPORTED_MODULE_19__["splitBySeparators"])(str, tokenSeparators).forEach(function (label) {
var selectedValue = [label];
if (multiple) {
var value = _this11.getValueByLabel(label);
if (value && Object(_util__WEBPACK_IMPORTED_MODULE_19__["findIndexInValueBySingleValue"])(nextValue, value) === -1) {
nextValue = nextValue.concat(value);
hasNewValue = true;
_this11.fireSelect(value);
}
} else if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["findIndexInValueBySingleValue"])(nextValue, label) === -1) {
nextValue = nextValue.concat(selectedValue);
hasNewValue = true;
_this11.fireSelect(label);
}
});
return hasNewValue ? nextValue : undefined;
},
getRealOpenState: function getRealOpenState(state) {
var _open = this.$props.open;
if (typeof _open === 'boolean') {
return _open;
}
var open = (state || this.$data)._open;
var options = this._options || [];
if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTagsOrCombobox"])(this.$props) || !this.$props.showSearch) {
if (open && !options.length) {
open = false;
}
}
return open;
},
focus: function focus() {
if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isSingleMode"])(this.$props) && this.selectionRef) {
this.selectionRef.focus();
} else if (this.getInputDOMNode()) {
this.getInputDOMNode().focus();
}
},
blur: function blur() {
if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isSingleMode"])(this.$props) && this.selectionRef) {
this.selectionRef.blur();
} else if (this.getInputDOMNode()) {
this.getInputDOMNode().blur();
}
},
markMouseDown: function markMouseDown() {
this._mouseDown = true;
},
markMouseLeave: function markMouseLeave() {
this._mouseDown = false;
},
handleBackfill: function handleBackfill(item) {
if (!this.backfill || !(Object(_util__WEBPACK_IMPORTED_MODULE_19__["isSingleMode"])(this.$props) || Object(_util__WEBPACK_IMPORTED_MODULE_19__["isCombobox"])(this.$props))) {
return;
}
var key = Object(_util__WEBPACK_IMPORTED_MODULE_19__["getValuePropValue"])(item);
if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isCombobox"])(this.$props)) {
this.setInputValue(key, false);
}
this.setState({
_value: [key],
_backfillValue: key
});
},
_filterOption: function _filterOption(input, child) {
var defaultFilter = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _util__WEBPACK_IMPORTED_MODULE_19__["defaultFilterFn"];
var _$data2 = this.$data,
value = _$data2._value,
backfillValue = _$data2._backfillValue;
var lastValue = value[value.length - 1];
if (!input || lastValue && lastValue === backfillValue) {
return true;
}
var filterFn = this.$props.filterOption;
if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["hasProp"])(this, 'filterOption')) {
if (filterFn === true) {
filterFn = defaultFilter.bind(this);
}
} else {
filterFn = defaultFilter.bind(this);
}
if (!filterFn) {
return true;
} else if (typeof filterFn === 'function') {
return filterFn.call(this, input, child);
} else if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getValueByProp"])(child, 'disabled')) {
return false;
}
return true;
},
timeoutFocus: function timeoutFocus() {
var _this12 = this;
if (this.focusTimer) {
this.clearFocusTime();
}
this.focusTimer = window.setTimeout(function () {
// this._focused = true
// this.updateFocusClassName()
_this12.$emit('focus');
}, 10);
},
clearFocusTime: function clearFocusTime() {
if (this.focusTimer) {
clearTimeout(this.focusTimer);
this.focusTimer = null;
}
},
clearBlurTime: function clearBlurTime() {
if (this.blurTimer) {
clearTimeout(this.blurTimer);
this.blurTimer = null;
}
},
clearComboboxTime: function clearComboboxTime() {
if (this.comboboxTimer) {
clearTimeout(this.comboboxTimer);
this.comboboxTimer = null;
}
},
updateFocusClassName: function updateFocusClassName() {
var rootRef = this.rootRef,
prefixCls = this.prefixCls;
// avoid setState and its side effect
if (this._focused) {
component_classes__WEBPACK_IMPORTED_MODULE_6___default()(rootRef).add(prefixCls + '-focused');
} else {
component_classes__WEBPACK_IMPORTED_MODULE_6___default()(rootRef).remove(prefixCls + '-focused');
}
},
maybeFocus: function maybeFocus(open, needFocus) {
if (needFocus || open) {
var input = this.getInputDOMNode();
var _document = document,
activeElement = _document.activeElement;
if (input && (open || Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTagsOrCombobox"])(this.$props))) {
if (activeElement !== input) {
input.focus();
this._focused = true;
}
} else if (activeElement !== this.selectionRef && this.selectionRef) {
this.selectionRef.focus();
this._focused = true;
}
}
},
removeSelected: function removeSelected(selectedKey, e) {
var props = this.$props;
if (props.disabled || this.isChildDisabled(selectedKey)) {
return;
}
// Do not trigger Trigger popup
if (e && e.stopPropagation) {
e.stopPropagation();
}
var oldValue = this.$data._value;
var value = oldValue.filter(function (singleValue) {
return singleValue !== selectedKey;
});
var canMultiple = Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(props);
if (canMultiple) {
var event = selectedKey;
if (props.labelInValue) {
event = {
key: selectedKey,
label: this.getLabelBySingleValue(selectedKey)
};
}
this.$emit('deselect', event, this.getOptionBySingleValue(selectedKey));
}
this.fireChange(value);
},
openIfHasChildren: function openIfHasChildren() {
var $props = this.$props;
if ($props.children && $props.children.length || Object(_util__WEBPACK_IMPORTED_MODULE_19__["isSingleMode"])($props)) {
this.setOpenState(true);
}
},
fireSelect: function fireSelect(value) {
this.$emit('select', this.getVLBySingleValue(value), this.getOptionBySingleValue(value));
},
fireChange: function fireChange(value) {
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["hasProp"])(this, 'value')) {
this.setState({
_value: value
}, this.forcePopupAlign);
}
var vls = this.getVLForOnChange(value);
var options = this.getOptionsBySingleValue(value);
this._valueOptions = options;
this.$emit('change', vls, Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(this.$props) ? options : options[0]);
},
isChildDisabled: function isChildDisabled(key) {
return (this.$props.children || []).some(function (child) {
var childValue = Object(_util__WEBPACK_IMPORTED_MODULE_19__["getValuePropValue"])(child);
return childValue === key && Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getValueByProp"])(child, 'disabled');
});
},
forcePopupAlign: function forcePopupAlign() {
if (!this.$data._open) {
return;
}
if (this.selectTriggerRef && this.selectTriggerRef.triggerRef) {
this.selectTriggerRef.triggerRef.forcePopupAlign();
}
},
renderFilterOptions: function renderFilterOptions() {
var h = this.$createElement;
var inputValue = this.$data._inputValue;
var _$props3 = this.$props,
children = _$props3.children,
tags = _$props3.tags,
notFoundContent = _$props3.notFoundContent;
var menuItems = [];
var childrenKeys = [];
var empty = false;
var options = this.renderFilterOptionsFromChildren(children, childrenKeys, menuItems);
if (tags) {
// tags value must be string
var value = this.$data._value;
value = value.filter(function (singleValue) {
return childrenKeys.indexOf(singleValue) === -1 && (!inputValue || String(singleValue).indexOf(String(inputValue)) > -1);
});
// sort by length
value.sort(function (val1, val2) {
return val1.length - val2.length;
});
value.forEach(function (singleValue) {
var key = singleValue;
var attrs = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_ATTRIBUTE"], {
role: 'option'
});
var menuItem = h(
_vc_menu__WEBPACK_IMPORTED_MODULE_7__["Item"],
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ style: _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_STYLE"] }, { attrs: attrs }, {
attrs: { value: key },
key: key }]),
[key]
);
options.push(menuItem);
menuItems.push(menuItem);
});
// ref: https://github.com/ant-design/ant-design/issues/14090
if (inputValue && menuItems.every(function (option) {
return Object(_util__WEBPACK_IMPORTED_MODULE_19__["getValuePropValue"])(option) !== inputValue;
})) {
var p = {
attrs: _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_ATTRIBUTE"],
key: inputValue,
props: {
value: inputValue,
role: 'option'
},
style: _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_STYLE"]
};
options.unshift(h(
_vc_menu__WEBPACK_IMPORTED_MODULE_7__["Item"],
p,
[inputValue]
));
}
}
if (!options.length && notFoundContent) {
empty = true;
var _p = {
attrs: _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_ATTRIBUTE"],
key: 'NOT_FOUND',
props: {
value: 'NOT_FOUND',
disabled: true,
role: 'option'
},
style: _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_STYLE"]
};
options = [h(
_vc_menu__WEBPACK_IMPORTED_MODULE_7__["Item"],
_p,
[notFoundContent]
)];
}
return { empty: empty, options: options };
},
renderFilterOptionsFromChildren: function renderFilterOptionsFromChildren() {
var children = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
var _this13 = this;
var childrenKeys = arguments[1];
var menuItems = arguments[2];
var h = this.$createElement;
var sel = [];
var props = this.$props;
var inputValue = this.$data._inputValue;
var tags = props.tags;
children.forEach(function (child) {
if (!child.data || child.data.slot !== undefined) {
return;
}
if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getSlotOptions"])(child).isSelectOptGroup) {
var label = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(child, 'label');
var key = child.key;
if (!key && typeof label === 'string') {
key = label;
} else if (!label && key) {
label = key;
}
var childChildren = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getSlots"])(child)['default'];
childChildren = typeof childChildren === 'function' ? childChildren() : childChildren;
// Match option group label
if (inputValue && _this13._filterOption(inputValue, child)) {
var innerItems = childChildren.map(function (subChild) {
var childValueSub = Object(_util__WEBPACK_IMPORTED_MODULE_19__["getValuePropValue"])(subChild) || subChild.key;
return h(
_vc_menu__WEBPACK_IMPORTED_MODULE_7__["Item"],
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ key: childValueSub, attrs: { value: childValueSub }
}, subChild.data]),
[subChild.componentOptions.children]
);
});
sel.push(h(
_vc_menu__WEBPACK_IMPORTED_MODULE_7__["ItemGroup"],
{ key: key, attrs: { title: label },
'class': Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getClass"])(child) },
[innerItems]
));
// Not match
} else {
var _innerItems = _this13.renderFilterOptionsFromChildren(childChildren, childrenKeys, menuItems);
if (_innerItems.length) {
sel.push(h(
_vc_menu__WEBPACK_IMPORTED_MODULE_7__["ItemGroup"],
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ key: key, attrs: { title: label }
}, child.data]),
[_innerItems]
));
}
}
return;
}
warning__WEBPACK_IMPORTED_MODULE_8___default()(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getSlotOptions"])(child).isSelectOption, 'the children of `Select` should be `Select.Option` or `Select.OptGroup`, ' + ('instead of `' + (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getSlotOptions"])(child).name || Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getSlotOptions"])(child)) + '`.'));
var childValue = Object(_util__WEBPACK_IMPORTED_MODULE_19__["getValuePropValue"])(child);
Object(_util__WEBPACK_IMPORTED_MODULE_19__["validateOptionValue"])(childValue, _this13.$props);
if (_this13._filterOption(inputValue, child)) {
var p = {
attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_ATTRIBUTE"], Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getAttrs"])(child)),
key: childValue,
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
value: childValue
}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getPropsData"])(child), {
role: 'option'
}),
style: _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_STYLE"],
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getEvents"])(child),
'class': Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getClass"])(child)
};
var menuItem = h(
_vc_menu__WEBPACK_IMPORTED_MODULE_7__["Item"],
p,
[child.componentOptions.children]
);
sel.push(menuItem);
menuItems.push(menuItem);
}
if (tags) {
childrenKeys.push(childValue);
}
});
return sel;
},
renderTopControlNode: function renderTopControlNode() {
var _this14 = this;
var h = this.$createElement;
var props = this.$props;
var _$data3 = this.$data,
value = _$data3._value,
inputValue = _$data3._inputValue,
open = _$data3._open;
var choiceTransitionName = props.choiceTransitionName,
prefixCls = props.prefixCls,
maxTagTextLength = props.maxTagTextLength,
maxTagCount = props.maxTagCount,
maxTagPlaceholder = props.maxTagPlaceholder,
showSearch = props.showSearch;
var removeIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(this, 'removeIcon');
var className = prefixCls + '-selection__rendered';
// search input is inside topControlNode in single, multiple & combobox. 2016/04/13
var innerNode = null;
if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isSingleMode"])(props)) {
var selectedValue = null;
if (value.length) {
var showSelectedValue = false;
var opacity = 1;
if (!showSearch) {
showSelectedValue = true;
} else if (open) {
showSelectedValue = !inputValue;
if (showSelectedValue) {
opacity = 0.4;
}
} else {
showSelectedValue = true;
}
var singleValue = value[0];
var _getOptionInfoBySingl3 = this.getOptionInfoBySingleValue(singleValue),
label = _getOptionInfoBySingl3.label,
title = _getOptionInfoBySingl3.title;
selectedValue = h(
'div',
{
key: 'value',
'class': prefixCls + '-selection-selected-value',
attrs: { title: Object(_util__WEBPACK_IMPORTED_MODULE_19__["toTitle"])(title || label)
},
style: {
display: showSelectedValue ? 'block' : 'none',
opacity: opacity
}
},
[label]
);
}
if (!showSearch) {
innerNode = [selectedValue];
} else {
innerNode = [selectedValue, h(
'div',
{
'class': prefixCls + '-search ' + prefixCls + '-search--inline',
key: 'input',
style: {
display: open ? 'block' : 'none'
}
},
[this._getInputElement()]
)];
}
} else {
var selectedValueNodes = [];
var limitedCountValue = value;
var maxTagPlaceholderEl = void 0;
if (maxTagCount !== undefined && value.length > maxTagCount) {
limitedCountValue = limitedCountValue.slice(0, maxTagCount);
var omittedValues = this.getVLForOnChange(value.slice(maxTagCount, value.length));
var content = '+ ' + (value.length - maxTagCount) + ' ...';
if (maxTagPlaceholder) {
content = typeof maxTagPlaceholder === 'function' ? maxTagPlaceholder(omittedValues) : maxTagPlaceholder;
}
var attrs = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_ATTRIBUTE"], {
role: 'presentation',
title: Object(_util__WEBPACK_IMPORTED_MODULE_19__["toTitle"])(content)
});
maxTagPlaceholderEl = h(
'li',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
style: _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_STYLE"]
}, { attrs: attrs }, {
on: {
'mousedown': _util__WEBPACK_IMPORTED_MODULE_19__["preventDefaultEvent"]
},
'class': prefixCls + '-selection__choice ' + prefixCls + '-selection__choice__disabled',
key: 'maxTagPlaceholder'
}]),
[h(
'div',
{ 'class': prefixCls + '-selection__choice__content' },
[content]
)]
);
}
if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(props)) {
selectedValueNodes = limitedCountValue.map(function (singleValue) {
var info = _this14.getOptionInfoBySingleValue(singleValue);
var content = info.label;
var title = info.title || content;
if (maxTagTextLength && typeof content === 'string' && content.length > maxTagTextLength) {
content = content.slice(0, maxTagTextLength) + '...';
}
var disabled = _this14.isChildDisabled(singleValue);
var choiceClassName = disabled ? prefixCls + '-selection__choice ' + prefixCls + '-selection__choice__disabled' : prefixCls + '-selection__choice';
// attrs 放在一起避免动态title混乱问题很奇怪的问题 https://github.com/vueComponent/ant-design-vue/issues/588
var attrs = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_ATTRIBUTE"], {
role: 'presentation',
title: Object(_util__WEBPACK_IMPORTED_MODULE_19__["toTitle"])(title)
});
return h(
'li',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
style: _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_STYLE"]
}, { attrs: attrs }, {
on: {
'mousedown': _util__WEBPACK_IMPORTED_MODULE_19__["preventDefaultEvent"]
},
'class': choiceClassName,
key: singleValue || SELECT_EMPTY_VALUE_KEY
}]),
[h(
'div',
{ 'class': prefixCls + '-selection__choice__content' },
[content]
), disabled ? null : h(
'span',
{
on: {
'click': function click(event) {
_this14.removeSelected(singleValue, event);
}
},
'class': prefixCls + '-selection__choice__remove'
},
[removeIcon || h(
'i',
{ 'class': prefixCls + '-selection__choice__remove-icon' },
['\xD7']
)]
)]
);
});
}
if (maxTagPlaceholderEl) {
selectedValueNodes.push(maxTagPlaceholderEl);
}
selectedValueNodes.push(h(
'li',
{ 'class': prefixCls + '-search ' + prefixCls + '-search--inline', key: '__input' },
[this._getInputElement()]
));
if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(props) && choiceTransitionName) {
var transitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_13__["default"])(choiceTransitionName, {
tag: 'ul',
afterLeave: this.onChoiceAnimationLeave
});
innerNode = h(
'transition-group',
transitionProps,
[selectedValueNodes]
);
} else {
innerNode = h('ul', [selectedValueNodes]);
}
}
return h(
'div',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
'class': className
}, {
directives: [{
name: 'ant-ref',
value: this.saveTopCtrlRef
}]
}, {
on: {
'click': this.topCtrlContainerClick
}
}]),
[this.getPlaceholderElement(), innerNode]
);
},
renderArrow: function renderArrow(multiple) {
var h = this.$createElement;
// showArrow : Set to true if not multiple by default but keep set value.
var _$props4 = this.$props,
_$props4$showArrow = _$props4.showArrow,
showArrow = _$props4$showArrow === undefined ? !multiple : _$props4$showArrow,
loading = _$props4.loading,
prefixCls = _$props4.prefixCls;
var inputIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(this, 'inputIcon');
if (!showArrow && !loading) {
return null;
}
// if loading have loading icon
var defaultIcon = loading ? h('i', { 'class': prefixCls + '-arrow-loading' }) : h('i', { 'class': prefixCls + '-arrow-icon' });
return h(
'span',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
key: 'arrow',
'class': prefixCls + '-arrow',
style: _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_STYLE"]
}, { attrs: _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_ATTRIBUTE"] }, {
on: {
'click': this.onArrowClick
},
ref: 'arrow'
}]),
[inputIcon || defaultIcon]
);
},
topCtrlContainerClick: function topCtrlContainerClick(e) {
if (this.$data._open && !Object(_util__WEBPACK_IMPORTED_MODULE_19__["isSingleMode"])(this.$props)) {
e.stopPropagation();
}
},
renderClear: function renderClear() {
var h = this.$createElement;
var _$props5 = this.$props,
prefixCls = _$props5.prefixCls,
allowClear = _$props5.allowClear;
var _$data4 = this.$data,
value = _$data4._value,
inputValue = _$data4._inputValue;
var clearIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(this, 'clearIcon');
var clear = h(
'span',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
key: 'clear',
'class': prefixCls + '-selection__clear',
on: {
'mousedown': _util__WEBPACK_IMPORTED_MODULE_19__["preventDefaultEvent"]
},
style: _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_STYLE"]
}, { attrs: _util__WEBPACK_IMPORTED_MODULE_19__["UNSELECTABLE_ATTRIBUTE"] }, {
on: {
'click': this.onClearSelection
}
}]),
[clearIcon || h(
'i',
{ 'class': prefixCls + '-selection__clear-icon' },
['\xD7']
)]
);
if (!allowClear) {
return null;
}
if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isCombobox"])(this.$props)) {
if (inputValue) {
return clear;
}
return null;
}
if (inputValue || value.length) {
return clear;
}
return null;
},
selectionRefClick: function selectionRefClick() {
//e.stopPropagation();
if (!this.disabled) {
var input = this.getInputDOMNode();
if (this._focused && this.$data._open) {
// this._focused = false;
this.setOpenState(false, false);
input && input.blur();
} else {
this.clearBlurTime();
//this._focused = true;
this.setOpenState(true, true);
input && input.focus();
}
}
},
selectionRefFocus: function selectionRefFocus(e) {
if (this._focused || this.disabled || Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTagsOrCombobox"])(this.$props)) {
e.preventDefault();
return;
}
this._focused = true;
this.updateFocusClassName();
this.$emit('focus');
},
selectionRefBlur: function selectionRefBlur(e) {
if (Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTagsOrCombobox"])(this.$props)) {
e.preventDefault();
return;
}
this.inputBlur(e);
}
},
render: function render() {
var _rootCls;
var h = arguments[0];
var props = this.$props;
var multiple = Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTags"])(props);
// Default set showArrow to true if not set (not set directly in defaultProps to handle multiple case)
var _props$showArrow = props.showArrow,
showArrow = _props$showArrow === undefined ? true : _props$showArrow;
var state = this.$data;
var disabled = props.disabled,
prefixCls = props.prefixCls,
loading = props.loading;
var ctrlNode = this.renderTopControlNode();
var _$data5 = this.$data,
open = _$data5._open,
inputValue = _$data5._inputValue,
value = _$data5._value;
if (open) {
var filterOptions = this.renderFilterOptions();
this._empty = filterOptions.empty;
this._options = filterOptions.options;
}
var realOpen = this.getRealOpenState();
var empty = this._empty;
var options = this._options || [];
var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getListeners"])(this),
_getListeners$mouseen = _getListeners.mouseenter,
mouseenter = _getListeners$mouseen === undefined ? noop : _getListeners$mouseen,
_getListeners$mousele = _getListeners.mouseleave,
mouseleave = _getListeners$mousele === undefined ? noop : _getListeners$mousele,
_getListeners$popupSc = _getListeners.popupScroll,
popupScroll = _getListeners$popupSc === undefined ? noop : _getListeners$popupSc;
var selectionProps = {
props: {},
attrs: {
role: 'combobox',
'aria-autocomplete': 'list',
'aria-haspopup': 'true',
'aria-expanded': realOpen,
'aria-controls': this.$data._ariaId
},
on: {
// click: this.selectionRefClick,
},
'class': prefixCls + '-selection ' + prefixCls + '-selection--' + (multiple ? 'multiple' : 'single'),
// directives: [
// {
// name: 'ant-ref',
// value: this.saveSelectionRef,
// },
// ],
key: 'selection'
};
//if (!isMultipleOrTagsOrCombobox(props)) {
// selectionProps.on.keydown = this.onKeyDown;
// selectionProps.on.focus = this.selectionRefFocus;
// selectionProps.on.blur = this.selectionRefBlur;
// selectionProps.attrs.tabIndex = props.disabled ? -1 : props.tabIndex;
//}
var extraSelectionProps = { attrs: { tabIndex: -1 } };
if (!Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTagsOrCombobox"])(props)) {
extraSelectionProps.attrs.tabIndex = props.disabled ? -1 : props.tabIndex;
}
var rootCls = (_rootCls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_rootCls, prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_rootCls, prefixCls + '-open', open), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_rootCls, prefixCls + '-focused', open || !!this._focused), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_rootCls, prefixCls + '-combobox', Object(_util__WEBPACK_IMPORTED_MODULE_19__["isCombobox"])(props)), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_rootCls, prefixCls + '-disabled', disabled), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_rootCls, prefixCls + '-enabled', !disabled), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_rootCls, prefixCls + '-allow-clear', !!props.allowClear), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_rootCls, prefixCls + '-no-arrow', !showArrow), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_rootCls, prefixCls + '-loading', !!loading), _rootCls);
return h(
_SelectTrigger__WEBPACK_IMPORTED_MODULE_18__["default"],
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
attrs: {
dropdownAlign: props.dropdownAlign,
dropdownClassName: props.dropdownClassName,
dropdownMatchSelectWidth: props.dropdownMatchSelectWidth,
defaultActiveFirstOption: props.defaultActiveFirstOption,
dropdownMenuStyle: props.dropdownMenuStyle,
transitionName: props.transitionName,
animation: props.animation,
prefixCls: props.prefixCls,
dropdownStyle: props.dropdownStyle,
combobox: props.combobox,
showSearch: props.showSearch,
options: options,
empty: empty,
multiple: multiple,
disabled: disabled,
visible: realOpen,
inputValue: inputValue,
value: value,
backfillValue: state._backfillValue,
firstActiveValue: props.firstActiveValue,
getPopupContainer: props.getPopupContainer,
showAction: props.showAction,
menuItemSelectedIcon: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getComponentFromProp"])(this, 'menuItemSelectedIcon')
},
on: {
'dropdownVisibleChange': this.onDropdownVisibleChange,
'menuSelect': this.onMenuSelect,
'menuDeselect': this.onMenuDeselect,
'popupScroll': popupScroll,
'popupFocus': this.onPopupFocus,
'mouseenter': mouseenter,
'mouseleave': mouseleave
}
}, {
directives: [{
name: 'ant-ref',
value: this.saveSelectTriggerRef
}]
}, {
attrs: {
dropdownRender: props.dropdownRender,
ariaId: this.$data._ariaId
}
}]),
[h(
'div',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
directives: [{
name: 'ant-ref',
value: chaining(this.saveRootRef, this.saveSelectionRef)
}]
}, {
style: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_12__["getStyle"])(this),
'class': classnames__WEBPACK_IMPORTED_MODULE_5___default()(rootCls),
on: {
'mousedown': this.markMouseDown,
'mouseup': this.markMouseLeave,
'mouseout': this.markMouseLeave
}
}, extraSelectionProps, {
on: {
'blur': this.selectionRefBlur,
'focus': this.selectionRefFocus,
'click': this.selectionRefClick,
'keydown': Object(_util__WEBPACK_IMPORTED_MODULE_19__["isMultipleOrTagsOrCombobox"])(props) ? noop : this.onKeyDown
}
}]),
[h(
'div',
selectionProps,
[ctrlNode, this.renderClear(), this.renderArrow(!!multiple)]
)]
)]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (Object(_util_proxyComponent__WEBPACK_IMPORTED_MODULE_16__["default"])(Select));
/***/ }),
/***/ "./components/vc-select/SelectTrigger.jsx":
/*!************************************************!*\
!*** ./components/vc-select/SelectTrigger.jsx ***!
\************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! raf */ "./node_modules/raf/index.js");
/* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(raf__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _vc_trigger__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../vc-trigger */ "./components/vc-trigger/index.js");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _DropdownMenu__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./DropdownMenu */ "./components/vc-select/DropdownMenu.jsx");
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./util */ "./components/vc-select/util.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
var BUILT_IN_PLACEMENTS = {
bottomLeft: {
points: ['tl', 'bl'],
offset: [0, 4],
overflow: {
adjustX: 0,
adjustY: 1
}
},
topLeft: {
points: ['bl', 'tl'],
offset: [0, -4],
overflow: {
adjustX: 0,
adjustY: 1
}
}
};
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'SelectTrigger',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__["default"]],
props: {
// onPopupFocus: PropTypes.func,
// onPopupScroll: PropTypes.func,
dropdownMatchSelectWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
defaultActiveFirstOption: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
dropdownAlign: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].object,
visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
showSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
dropdownClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
dropdownStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].object,
dropdownMenuStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].object,
multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
inputValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
filterOption: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
empty: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
options: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
popupClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].array,
// children: PropTypes.any,
showAction: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string),
combobox: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool,
animation: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].func,
backfillValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
menuItemSelectedIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
dropdownRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].func,
ariaId: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string
},
data: function data() {
return {
dropdownWidth: 0
};
},
created: function created() {
this.rafInstance = null;
this.saveDropdownMenuRef = Object(_util__WEBPACK_IMPORTED_MODULE_7__["saveRef"])(this, 'dropdownMenuRef');
this.saveTriggerRef = Object(_util__WEBPACK_IMPORTED_MODULE_7__["saveRef"])(this, 'triggerRef');
},
mounted: function mounted() {
var _this = this;
this.$nextTick(function () {
_this.setDropdownWidth();
});
},
updated: function updated() {
var _this2 = this;
this.$nextTick(function () {
_this2.setDropdownWidth();
});
},
beforeDestroy: function beforeDestroy() {
this.cancelRafInstance();
},
methods: {
setDropdownWidth: function setDropdownWidth() {
var _this3 = this;
this.cancelRafInstance();
this.rafInstance = raf__WEBPACK_IMPORTED_MODULE_3___default()(function () {
var width = _this3.$el.offsetWidth;
if (width !== _this3.dropdownWidth) {
_this3.setState({ dropdownWidth: width });
}
});
},
cancelRafInstance: function cancelRafInstance() {
if (this.rafInstance) {
raf__WEBPACK_IMPORTED_MODULE_3___default.a.cancel(this.rafInstance);
}
},
getInnerMenu: function getInnerMenu() {
return this.dropdownMenuRef && this.dropdownMenuRef.$refs.menuRef;
},
getPopupDOMNode: function getPopupDOMNode() {
return this.triggerRef.getPopupDomNode();
},
getDropdownElement: function getDropdownElement(newProps) {
var h = this.$createElement;
var value = this.value,
firstActiveValue = this.firstActiveValue,
defaultActiveFirstOption = this.defaultActiveFirstOption,
dropdownMenuStyle = this.dropdownMenuStyle,
getDropdownPrefixCls = this.getDropdownPrefixCls,
backfillValue = this.backfillValue,
menuItemSelectedIcon = this.menuItemSelectedIcon;
var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getListeners"])(this),
menuSelect = _getListeners.menuSelect,
menuDeselect = _getListeners.menuDeselect,
popupScroll = _getListeners.popupScroll;
var props = this.$props;
var dropdownRender = props.dropdownRender,
ariaId = props.ariaId;
var dropdownMenuProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, newProps.props, {
ariaId: ariaId,
prefixCls: getDropdownPrefixCls(),
value: value,
firstActiveValue: firstActiveValue,
defaultActiveFirstOption: defaultActiveFirstOption,
dropdownMenuStyle: dropdownMenuStyle,
backfillValue: backfillValue,
menuItemSelectedIcon: menuItemSelectedIcon
}),
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, newProps.on, {
menuSelect: menuSelect,
menuDeselect: menuDeselect,
popupScroll: popupScroll
}),
directives: [{
name: 'ant-ref',
value: this.saveDropdownMenuRef
}]
};
var menuNode = h(_DropdownMenu__WEBPACK_IMPORTED_MODULE_6__["default"], dropdownMenuProps);
if (dropdownRender) {
return dropdownRender(menuNode, props);
}
return null;
},
getDropdownTransitionName: function getDropdownTransitionName() {
var props = this.$props;
var transitionName = props.transitionName;
if (!transitionName && props.animation) {
transitionName = this.getDropdownPrefixCls() + '-' + props.animation;
}
return transitionName;
},
getDropdownPrefixCls: function getDropdownPrefixCls() {
return this.prefixCls + '-dropdown';
}
},
render: function render() {
var _popupClassName;
var h = arguments[0];
var $props = this.$props,
$slots = this.$slots;
var multiple = $props.multiple,
visible = $props.visible,
inputValue = $props.inputValue,
dropdownAlign = $props.dropdownAlign,
disabled = $props.disabled,
showSearch = $props.showSearch,
dropdownClassName = $props.dropdownClassName,
dropdownStyle = $props.dropdownStyle,
dropdownMatchSelectWidth = $props.dropdownMatchSelectWidth,
options = $props.options,
getPopupContainer = $props.getPopupContainer,
showAction = $props.showAction,
empty = $props.empty;
var _getListeners2 = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_9__["getListeners"])(this),
mouseenter = _getListeners2.mouseenter,
mouseleave = _getListeners2.mouseleave,
popupFocus = _getListeners2.popupFocus,
dropdownVisibleChange = _getListeners2.dropdownVisibleChange;
var dropdownPrefixCls = this.getDropdownPrefixCls();
var popupClassName = (_popupClassName = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_popupClassName, dropdownClassName, !!dropdownClassName), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_popupClassName, dropdownPrefixCls + '--' + (multiple ? 'multiple' : 'single'), 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_popupClassName, dropdownPrefixCls + '--empty', empty), _popupClassName);
var popupElement = this.getDropdownElement({
props: {
menuItems: options,
multiple: multiple,
inputValue: inputValue,
visible: visible
},
on: {
popupFocus: popupFocus
}
});
var hideAction = void 0;
if (disabled) {
hideAction = [];
} else if (Object(_util__WEBPACK_IMPORTED_MODULE_7__["isSingleMode"])($props) && !showSearch) {
hideAction = ['click'];
} else {
hideAction = ['blur'];
}
var popupStyle = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, dropdownStyle);
var widthProp = dropdownMatchSelectWidth ? 'width' : 'minWidth';
if (this.dropdownWidth) {
popupStyle[widthProp] = this.dropdownWidth + 'px';
}
var triggerProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, $props, {
showAction: disabled ? [] : showAction,
hideAction: hideAction,
ref: 'triggerRef',
popupPlacement: 'bottomLeft',
builtinPlacements: BUILT_IN_PLACEMENTS,
prefixCls: dropdownPrefixCls,
popupTransitionName: this.getDropdownTransitionName(),
popupAlign: dropdownAlign,
popupVisible: visible,
getPopupContainer: getPopupContainer,
popupClassName: classnames__WEBPACK_IMPORTED_MODULE_2___default()(popupClassName),
popupStyle: popupStyle
}),
on: {
popupVisibleChange: dropdownVisibleChange
},
directives: [{
name: 'ant-ref',
value: this.saveTriggerRef
}]
};
if (mouseenter) {
triggerProps.on.mouseenter = mouseenter;
}
if (mouseleave) {
triggerProps.on.mouseleave = mouseleave;
}
return h(
_vc_trigger__WEBPACK_IMPORTED_MODULE_4__["default"],
triggerProps,
[$slots['default'], h(
'template',
{ slot: 'popup' },
[popupElement]
)]
);
}
});
/***/ }),
/***/ "./components/vc-select/index.js":
/*!***************************************!*\
!*** ./components/vc-select/index.js ***!
\***************************************/
/*! exports provided: Select, Option, OptGroup, SelectPropTypes, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Select__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Select */ "./components/vc-select/Select.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Select", function() { return _Select__WEBPACK_IMPORTED_MODULE_0__["Select"]; });
/* harmony import */ var _Option__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Option */ "./components/vc-select/Option.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Option", function() { return _Option__WEBPACK_IMPORTED_MODULE_1__["default"]; });
/* harmony import */ var _PropTypes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./PropTypes */ "./components/vc-select/PropTypes.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SelectPropTypes", function() { return _PropTypes__WEBPACK_IMPORTED_MODULE_2__["SelectPropTypes"]; });
/* harmony import */ var _OptGroup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./OptGroup */ "./components/vc-select/OptGroup.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "OptGroup", function() { return _OptGroup__WEBPACK_IMPORTED_MODULE_3__["default"]; });
// based on vc-select 9.2.2
_Select__WEBPACK_IMPORTED_MODULE_0__["Select"].Option = _Option__WEBPACK_IMPORTED_MODULE_1__["default"];
_Select__WEBPACK_IMPORTED_MODULE_0__["Select"].OptGroup = _OptGroup__WEBPACK_IMPORTED_MODULE_3__["default"];
_Select__WEBPACK_IMPORTED_MODULE_0__["default"].Option = _Option__WEBPACK_IMPORTED_MODULE_1__["default"];
_Select__WEBPACK_IMPORTED_MODULE_0__["default"].OptGroup = _OptGroup__WEBPACK_IMPORTED_MODULE_3__["default"];
/* harmony default export */ __webpack_exports__["default"] = (_Select__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/vc-select/util.js":
/*!**************************************!*\
!*** ./components/vc-select/util.js ***!
\**************************************/
/*! exports provided: toTitle, getValuePropValue, getPropValue, isMultiple, isCombobox, isMultipleOrTags, isMultipleOrTagsOrCombobox, isSingleMode, toArray, getMapKey, preventDefaultEvent, findIndexInValueBySingleValue, getLabelFromPropsValue, getSelectKeys, UNSELECTABLE_STYLE, UNSELECTABLE_ATTRIBUTE, findFirstMenuItem, includesSeparators, splitBySeparators, defaultFilterFn, validateOptionValue, saveRef, generateUUID */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toTitle", function() { return toTitle; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getValuePropValue", function() { return getValuePropValue; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPropValue", function() { return getPropValue; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isMultiple", function() { return isMultiple; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isCombobox", function() { return isCombobox; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isMultipleOrTags", function() { return isMultipleOrTags; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isMultipleOrTagsOrCombobox", function() { return isMultipleOrTagsOrCombobox; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isSingleMode", function() { return isSingleMode; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toArray", function() { return toArray; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMapKey", function() { return getMapKey; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "preventDefaultEvent", function() { return preventDefaultEvent; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findIndexInValueBySingleValue", function() { return findIndexInValueBySingleValue; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLabelFromPropsValue", function() { return getLabelFromPropsValue; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSelectKeys", function() { return getSelectKeys; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UNSELECTABLE_STYLE", function() { return UNSELECTABLE_STYLE; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UNSELECTABLE_ATTRIBUTE", function() { return UNSELECTABLE_ATTRIBUTE; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findFirstMenuItem", function() { return findFirstMenuItem; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "includesSeparators", function() { return includesSeparators; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "splitBySeparators", function() { return splitBySeparators; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultFilterFn", function() { return defaultFilterFn; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validateOptionValue", function() { return validateOptionValue; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "saveRef", function() { return saveRef; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "generateUUID", function() { return generateUUID; });
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
function toTitle(title) {
if (typeof title === 'string') {
return title.trim();
}
return '';
}
function getValuePropValue(child) {
if (!child) {
return null;
}
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getPropsData"])(child);
if ('value' in props) {
return props.value;
}
if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getKey"])(child) !== undefined) {
return Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getKey"])(child);
}
if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getSlotOptions"])(child).isSelectOptGroup) {
var label = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getComponentFromProp"])(child, 'label');
if (label) {
return label;
}
}
throw new Error('Need at least a key or a value or a label (only for OptGroup) for ' + child);
}
function getPropValue(child, prop) {
if (prop === 'value') {
return getValuePropValue(child);
}
if (prop === 'children') {
var newChild = child.$slots ? Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneVNodes"])(child.$slots['default'], true) : Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneVNodes"])(child.componentOptions.children, true);
if (newChild.length === 1 && !newChild[0].tag) {
return newChild[0].text;
}
return newChild;
}
var data = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getPropsData"])(child);
if (prop in data) {
return data[prop];
} else {
return Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getAttrs"])(child)[prop];
}
}
function isMultiple(props) {
return props.multiple;
}
function isCombobox(props) {
return props.combobox;
}
function isMultipleOrTags(props) {
return props.multiple || props.tags;
}
function isMultipleOrTagsOrCombobox(props) {
return isMultipleOrTags(props) || isCombobox(props);
}
function isSingleMode(props) {
return !isMultipleOrTagsOrCombobox(props);
}
function toArray(value) {
var ret = value;
if (value === undefined) {
ret = [];
} else if (!Array.isArray(value)) {
ret = [value];
}
return ret;
}
function getMapKey(value) {
return (typeof value === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(value)) + '-' + value;
}
function preventDefaultEvent(e) {
e.preventDefault();
}
function findIndexInValueBySingleValue(value, singleValue) {
var index = -1;
if (value) {
for (var i = 0; i < value.length; i++) {
if (value[i] === singleValue) {
index = i;
break;
}
}
}
return index;
}
function getLabelFromPropsValue(value, key) {
var label = void 0;
value = toArray(value);
if (value) {
for (var i = 0; i < value.length; i++) {
if (value[i].key === key) {
label = value[i].label;
break;
}
}
}
return label;
}
function getSelectKeys(menuItems, value) {
if (value === null || value === undefined) {
return [];
}
var selectedKeys = [];
menuItems.forEach(function (item) {
if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getSlotOptions"])(item).isMenuItemGroup) {
selectedKeys = selectedKeys.concat(getSelectKeys(item.componentOptions.children, value));
} else {
var itemValue = getValuePropValue(item);
var itemKey = item.key;
if (findIndexInValueBySingleValue(value, itemValue) !== -1 && itemKey !== undefined) {
selectedKeys.push(itemKey);
}
}
});
return selectedKeys;
}
var UNSELECTABLE_STYLE = {
userSelect: 'none',
WebkitUserSelect: 'none'
};
var UNSELECTABLE_ATTRIBUTE = {
unselectable: 'on'
};
function findFirstMenuItem(children) {
for (var i = 0; i < children.length; i++) {
var child = children[i];
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getPropsData"])(child);
if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getSlotOptions"])(child).isMenuItemGroup) {
var found = findFirstMenuItem(child.componentOptions.children);
if (found) {
return found;
}
} else if (!(props.disabled || props.disabled === '')) {
return child;
}
}
return null;
}
function includesSeparators(str, separators) {
for (var i = 0; i < separators.length; ++i) {
if (str.lastIndexOf(separators[i]) > 0) {
return true;
}
}
return false;
}
function splitBySeparators(str, separators) {
var reg = new RegExp('[' + separators.join() + ']');
return str.split(reg).filter(function (token) {
return token;
});
}
function defaultFilterFn(input, child) {
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_1__["getPropsData"])(child);
if (props.disabled) {
return false;
}
var value = getPropValue(child, this.optionFilterProp);
if (value.length && value[0].text) {
value = value[0].text;
} else {
value = String(value);
}
return value.toLowerCase().indexOf(input.toLowerCase()) > -1;
}
function validateOptionValue(value, props) {
if (isSingleMode(props) || isMultiple(props)) {
return;
}
if (typeof value !== 'string') {
throw new Error('Invalid `value` of type `' + (typeof value === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(value)) + '` supplied to Option, ' + 'expected `string` when `tags/combobox` is `true`.');
}
}
function saveRef(instance, name) {
return function (node) {
instance[name] = node;
};
}
function generateUUID() {
if (false) {}
var d = new Date().getTime();
var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
var r = (d + Math.random() * 16) % 16 | 0;
d = Math.floor(d / 16);
return (c === 'x' ? r : r & 0x7 | 0x8).toString(16);
});
return uuid;
}
/***/ }),
/***/ "./components/vc-slick/src/arrows.js":
/*!*******************************************!*\
!*** ./components/vc-slick/src/arrows.js ***!
\*******************************************/
/*! exports provided: PrevArrow, NextArrow */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PrevArrow", function() { return PrevArrow; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NextArrow", function() { return NextArrow; });
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils/innerSliderUtils */ "./components/vc-slick/src/utils/innerSliderUtils.js");
function noop() {}
var PrevArrow = {
functional: true,
clickHandler: function clickHandler(options, handle, e) {
if (e) {
e.preventDefault();
}
handle(options, e);
},
render: function render(createElement, context) {
var h = arguments[0];
var props = context.props;
var clickHandler = props.clickHandler,
infinite = props.infinite,
currentSlide = props.currentSlide,
slideCount = props.slideCount,
slidesToShow = props.slidesToShow;
var prevClasses = { 'slick-arrow': true, 'slick-prev': true };
var prevHandler = function prevHandler(e) {
if (e) {
e.preventDefault();
}
clickHandler({ message: 'previous' });
};
if (!infinite && (currentSlide === 0 || slideCount <= slidesToShow)) {
prevClasses['slick-disabled'] = true;
prevHandler = noop;
}
var prevArrowProps = {
key: '0',
domProps: {
'data-role': 'none'
},
'class': prevClasses,
style: { display: 'block' },
on: {
click: prevHandler
}
};
var customProps = {
currentSlide: currentSlide,
slideCount: slideCount
};
var prevArrow = void 0;
if (props.prevArrow) {
prevArrow = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(props.prevArrow(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, prevArrowProps, {
props: customProps
})), {
key: '0',
'class': prevClasses,
style: { display: 'block' },
on: {
click: prevHandler
}
});
} else {
prevArrow = h(
'button',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ key: '0', attrs: { type: 'button' }
}, prevArrowProps]),
[' ', 'Previous']
);
}
return prevArrow;
}
};
var NextArrow = {
functional: true,
clickHandler: function clickHandler(options, handle, e) {
if (e) {
e.preventDefault();
}
handle(options, e);
},
render: function render(createElement, context) {
var h = arguments[0];
var props = context.props;
var clickHandler = props.clickHandler,
currentSlide = props.currentSlide,
slideCount = props.slideCount;
var nextClasses = { 'slick-arrow': true, 'slick-next': true };
var nextHandler = function nextHandler(e) {
if (e) {
e.preventDefault();
}
clickHandler({ message: 'next' });
};
if (!Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_3__["canGoNext"])(props)) {
nextClasses['slick-disabled'] = true;
nextHandler = noop;
}
var nextArrowProps = {
key: '1',
domProps: {
'data-role': 'none'
},
'class': nextClasses,
style: { display: 'block' },
on: {
click: nextHandler
}
};
var customProps = {
currentSlide: currentSlide,
slideCount: slideCount
};
var nextArrow = void 0;
if (props.nextArrow) {
nextArrow = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(props.nextArrow(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, nextArrowProps, {
props: customProps
})), {
key: '1',
'class': nextClasses,
style: { display: 'block' },
on: {
click: nextHandler
}
});
} else {
nextArrow = h(
'button',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ key: '1', attrs: { type: 'button' }
}, nextArrowProps]),
[' ', 'Next']
);
}
return nextArrow;
}
};
/***/ }),
/***/ "./components/vc-slick/src/default-props.js":
/*!**************************************************!*\
!*** ./components/vc-slick/src/default-props.js ***!
\**************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
var defaultProps = {
accessibility: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
// 自定义高度
adaptiveHeight: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
afterChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any.def(null),
arrows: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
autoplay: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
autoplaySpeed: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(3000),
beforeChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any.def(null),
centerMode: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
centerPadding: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string.def('50px'),
cssEase: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string.def('ease'),
dots: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
dotsClass: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string.def('slick-dots'),
draggable: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
unslick: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
easing: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string.def('linear'),
edgeFriction: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(0.35),
fade: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
focusOnSelect: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
infinite: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
initialSlide: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(0),
lazyLoad: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any.def(null),
verticalSwiping: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
asNavFor: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any.def(null),
// 圆点hover是否暂停
pauseOnDotsHover: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
// focus是否暂停
pauseOnFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
// hover是否暂停
pauseOnHover: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
responsive: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].array,
rows: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(1),
rtl: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
slide: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string.def('div'),
slidesPerRow: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(1),
slidesToScroll: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(1),
slidesToShow: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(1),
speed: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(500),
swipe: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
swipeEvent: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any.def(null),
swipeToSlide: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
touchMove: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
touchThreshold: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number.def(5),
useCSS: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
useTransform: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
variableWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
vertical: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
waitForAnimate: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(true),
children: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].array,
__propsSymbol__: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any
};
/* harmony default export */ __webpack_exports__["default"] = (defaultProps);
/***/ }),
/***/ "./components/vc-slick/src/dots.js":
/*!*****************************************!*\
!*** ./components/vc-slick/src/dots.js ***!
\*****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* 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 _util_vnode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
var getDotCount = function getDotCount(spec) {
var dots = void 0;
if (spec.infinite) {
dots = Math.ceil(spec.slideCount / spec.slidesToScroll);
} else {
dots = Math.ceil((spec.slideCount - spec.slidesToShow) / spec.slidesToScroll) + 1;
}
return dots;
};
/* harmony default export */ __webpack_exports__["default"] = ({
functional: true,
render: function render(createElement, context) {
var h = arguments[0];
var props = context.props,
listeners = context.listeners;
var slideCount = props.slideCount,
slidesToScroll = props.slidesToScroll,
slidesToShow = props.slidesToShow,
infinite = props.infinite,
currentSlide = props.currentSlide,
appendDots = props.appendDots,
customPaging = props.customPaging,
clickHandler = props.clickHandler,
dotsClass = props.dotsClass;
var dotCount = getDotCount({
slideCount: slideCount,
slidesToScroll: slidesToScroll,
slidesToShow: slidesToShow,
infinite: infinite
});
// Apply join & split to Array to pre-fill it for IE8
//
// Credit: http://stackoverflow.com/a/13735425/1849458
var mouseenter = listeners.mouseenter,
mouseover = listeners.mouseover,
mouseleave = listeners.mouseleave;
var mouseEvents = { mouseenter: mouseenter, mouseover: mouseover, mouseleave: mouseleave };
var dots = Array.apply(null, Array(dotCount + 1).join('0').split('')).map(function (x, i) {
var leftBound = i * slidesToScroll;
var rightBound = i * slidesToScroll + (slidesToScroll - 1);
var className = classnames__WEBPACK_IMPORTED_MODULE_1___default()({
'slick-active': currentSlide >= leftBound && currentSlide <= rightBound
});
var dotOptions = {
message: 'dots',
index: i,
slidesToScroll: slidesToScroll,
currentSlide: currentSlide
};
function onClick(e) {
// In Autoplay the focus stays on clicked button even after transition
// to next slide. That only goes away by click somewhere outside
if (e) {
e.preventDefault();
}
clickHandler(dotOptions);
}
return h(
'li',
{ key: i, 'class': className },
[Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(customPaging({ i: i }), {
on: {
click: onClick
}
})]
);
});
return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(appendDots({ dots: dots }), {
'class': dotsClass,
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, mouseEvents)
});
}
});
/***/ }),
/***/ "./components/vc-slick/src/index.js":
/*!******************************************!*\
!*** ./components/vc-slick/src/index.js ***!
\******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _slider__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./slider */ "./components/vc-slick/src/slider.js");
// base react-slick 0.23.2
/* harmony default export */ __webpack_exports__["default"] = (_slider__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/vc-slick/src/initial-state.js":
/*!**************************************************!*\
!*** ./components/vc-slick/src/initial-state.js ***!
\**************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
var initialState = {
animating: false,
autoplaying: null,
currentDirection: 0,
currentLeft: null,
currentSlide: 0,
direction: 1,
dragging: false,
edgeDragged: false,
initialized: false,
lazyLoadedList: [],
listHeight: null,
listWidth: null,
scrolling: false,
slideCount: null,
slideHeight: null,
slideWidth: null,
swipeLeft: null,
swiped: false, // used by swipeEvent. differentites between touch and swipe.
swiping: false,
touchObject: { startX: 0, startY: 0, curX: 0, curY: 0 },
trackStyle: {},
trackWidth: 0
};
/* harmony default export */ __webpack_exports__["default"] = (initialState);
/***/ }),
/***/ "./components/vc-slick/src/inner-slider.js":
/*!*************************************************!*\
!*** ./components/vc-slick/src/inner-slider.js ***!
\*************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/debounce */ "./node_modules/lodash/debounce.js");
/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue */ "vue");
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
/* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _default_props__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./default-props */ "./components/vc-slick/src/default-props.js");
/* harmony import */ var _initial_state__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./initial-state */ "./components/vc-slick/src/initial-state.js");
/* harmony import */ var _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./utils/innerSliderUtils */ "./components/vc-slick/src/utils/innerSliderUtils.js");
/* harmony import */ var _track__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./track */ "./components/vc-slick/src/track.js");
/* harmony import */ var _dots__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./dots */ "./components/vc-slick/src/dots.js");
/* harmony import */ var _arrows__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./arrows */ "./components/vc-slick/src/arrows.js");
/* harmony import */ var resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! resize-observer-polyfill */ "./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js");
vue__WEBPACK_IMPORTED_MODULE_5___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_6___default.a, { name: 'ant-ref' });
function noop() {}
/* harmony default export */ __webpack_exports__["default"] = ({
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _default_props__WEBPACK_IMPORTED_MODULE_9__["default"]),
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__["default"]],
data: function data() {
this.preProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props);
this.list = null;
this.track = null;
this.callbackTimers = [];
this.clickable = true;
this.debouncedResize = null;
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _initial_state__WEBPACK_IMPORTED_MODULE_10__["default"], {
currentSlide: this.initialSlide,
slideCount: this.children.length
});
},
methods: {
listRefHandler: function listRefHandler(ref) {
this.list = ref;
},
trackRefHandler: function trackRefHandler(ref) {
this.track = ref;
},
adaptHeight: function adaptHeight() {
if (this.adaptiveHeight && this.list) {
var elem = this.list.querySelector('[data-index="' + this.currentSlide + '"]');
this.list.style.height = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["getHeight"])(elem) + 'px';
}
},
onWindowResized: function onWindowResized(setTrackStyle) {
var _this = this;
if (this.debouncedResize) this.debouncedResize.cancel();
this.debouncedResize = lodash_debounce__WEBPACK_IMPORTED_MODULE_3___default()(function () {
return _this.resizeWindow(setTrackStyle);
}, 50);
this.debouncedResize();
},
resizeWindow: function resizeWindow() {
var _this2 = this;
var setTrackStyle = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
if (!this.track) return;
var spec = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
listRef: this.list,
trackRef: this.track,
children: this.children
}, this.$props, this.$data);
this.updateState(spec, setTrackStyle, function () {
if (_this2.autoplay) {
_this2.handleAutoPlay('update');
} else {
_this2.pause('paused');
}
});
// animating state should be cleared while resizing, otherwise autoplay stops working
this.setState({
animating: false
});
clearTimeout(this.animationEndCallback);
delete this.animationEndCallback;
},
updateState: function updateState(spec, setTrackStyle, callback) {
var updatedState = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["initializedState"])(spec);
spec = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, spec, updatedState, { slideIndex: updatedState.currentSlide });
var targetLeft = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["getTrackLeft"])(spec);
spec = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, spec, { left: targetLeft });
var trackStyle = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["getTrackCSS"])(spec);
if (setTrackStyle || this.children.length !== spec.children.length) {
updatedState['trackStyle'] = trackStyle;
}
this.setState(updatedState, callback);
},
ssrInit: function ssrInit() {
var children = this.children;
if (this.variableWidth) {
var _trackWidth = 0;
var _trackLeft = 0;
var childrenWidths = [];
var preClones = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["getPreClones"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$data, {
slideCount: children.length
}));
var postClones = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["getPostClones"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$data, {
slideCount: children.length
}));
children.forEach(function (child) {
var childWidth = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getStyle"])(child).width.split('px')[0];
childrenWidths.push(childWidth);
_trackWidth += childWidth;
});
for (var i = 0; i < preClones; i++) {
_trackLeft += childrenWidths[childrenWidths.length - 1 - i];
_trackWidth += childrenWidths[childrenWidths.length - 1 - i];
}
for (var _i = 0; _i < postClones; _i++) {
_trackWidth += childrenWidths[_i];
}
for (var _i2 = 0; _i2 < this.currentSlide; _i2++) {
_trackLeft += childrenWidths[_i2];
}
var _trackStyle = {
width: _trackWidth + 'px',
left: -_trackLeft + 'px'
};
if (this.centerMode) {
var currentWidth = childrenWidths[this.currentSlide] + 'px';
_trackStyle.left = 'calc(' + _trackStyle.left + ' + (100% - ' + currentWidth + ') / 2 ) ';
}
this.setState({
trackStyle: _trackStyle
});
return;
}
var childrenCount = children.length;
var spec = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$data, { slideCount: childrenCount });
var slideCount = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["getPreClones"])(spec) + Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["getPostClones"])(spec) + childrenCount;
var trackWidth = 100 / this.slidesToShow * slideCount;
var slideWidth = 100 / slideCount;
var trackLeft = -slideWidth * (Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["getPreClones"])(spec) + this.currentSlide) * trackWidth / 100;
if (this.centerMode) {
trackLeft += (100 - slideWidth * trackWidth / 100) / 2;
}
var trackStyle = {
width: trackWidth + '%',
left: trackLeft + '%'
};
this.setState({
slideWidth: slideWidth + '%',
trackStyle: trackStyle
});
},
checkImagesLoad: function checkImagesLoad() {
var _this3 = this;
var images = document.querySelectorAll('.slick-slide img');
var imagesCount = images.length;
var loadedCount = 0;
Array.prototype.forEach.call(images, function (image) {
var handler = function handler() {
return ++loadedCount && loadedCount >= imagesCount && _this3.onWindowResized();
};
if (!image.onclick) {
image.onclick = function () {
return image.parentNode.focus();
};
} else {
var prevClickHandler = image.onclick;
image.onclick = function () {
prevClickHandler();
image.parentNode.focus();
};
}
if (!image.onload) {
if (_this3.$props.lazyLoad) {
image.onload = function () {
_this3.adaptHeight();
_this3.callbackTimers.push(setTimeout(_this3.onWindowResized, _this3.speed));
};
} else {
image.onload = handler;
image.onerror = function () {
handler();
_this3.$emit('lazyLoadError');
};
}
}
});
},
progressiveLazyLoad: function progressiveLazyLoad() {
var slidesToLoad = [];
var spec = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$data);
for (var index = this.currentSlide; index < this.slideCount + Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["getPostClones"])(spec); index++) {
if (this.lazyLoadedList.indexOf(index) < 0) {
slidesToLoad.push(index);
break;
}
}
for (var _index = this.currentSlide - 1; _index >= -Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["getPreClones"])(spec); _index--) {
if (this.lazyLoadedList.indexOf(_index) < 0) {
slidesToLoad.push(_index);
break;
}
}
if (slidesToLoad.length > 0) {
this.setState(function (state) {
return {
lazyLoadedList: state.lazyLoadedList.concat(slidesToLoad)
};
});
this.$emit('lazyLoad', slidesToLoad);
} else {
if (this.lazyLoadTimer) {
clearInterval(this.lazyLoadTimer);
delete this.lazyLoadTimer;
}
}
},
slideHandler: function slideHandler(index) {
var _this4 = this;
var dontAnimate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
var _$props = this.$props,
asNavFor = _$props.asNavFor,
currentSlide = _$props.currentSlide,
beforeChange = _$props.beforeChange,
speed = _$props.speed,
afterChange = _$props.afterChange;
var _slideHandler2 = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["slideHandler"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
index: index
}, this.$props, this.$data, {
trackRef: this.track,
useCSS: this.useCSS && !dontAnimate
})),
state = _slideHandler2.state,
nextState = _slideHandler2.nextState;
if (!state) return;
beforeChange && beforeChange(currentSlide, state.currentSlide);
var slidesToLoad = state.lazyLoadedList.filter(function (value) {
return _this4.lazyLoadedList.indexOf(value) < 0;
});
if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this).lazyLoad && slidesToLoad.length > 0) {
this.$emit('lazyLoad', slidesToLoad);
}
this.setState(state, function () {
asNavFor && asNavFor.innerSlider.currentSlide !== currentSlide && asNavFor.innerSlider.slideHandler(index);
if (!nextState) return;
_this4.animationEndCallback = setTimeout(function () {
var animating = nextState.animating,
firstBatch = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(nextState, ['animating']);
_this4.setState(firstBatch, function () {
_this4.callbackTimers.push(setTimeout(function () {
return _this4.setState({ animating: animating });
}, 10));
afterChange && afterChange(state.currentSlide);
delete _this4.animationEndCallback;
});
}, speed);
});
},
changeSlide: function changeSlide(options) {
var dontAnimate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
var spec = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$data);
var targetSlide = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["changeSlide"])(spec, options);
if (targetSlide !== 0 && !targetSlide) return;
if (dontAnimate === true) {
this.slideHandler(targetSlide, dontAnimate);
} else {
this.slideHandler(targetSlide);
}
},
clickHandler: function clickHandler(e) {
if (this.clickable === false) {
e.stopPropagation();
e.preventDefault();
}
this.clickable = true;
},
keyHandler: function keyHandler(e) {
var dir = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["keyHandler"])(e, this.accessibility, this.rtl);
dir !== '' && this.changeSlide({ message: dir });
},
selectHandler: function selectHandler(options) {
this.changeSlide(options);
},
disableBodyScroll: function disableBodyScroll() {
var preventDefault = function preventDefault(e) {
e = e || window.event;
if (e.preventDefault) e.preventDefault();
e.returnValue = false;
};
window.ontouchmove = preventDefault;
},
enableBodyScroll: function enableBodyScroll() {
window.ontouchmove = null;
},
swipeStart: function swipeStart(e) {
if (this.verticalSwiping) {
this.disableBodyScroll();
}
var state = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["swipeStart"])(e, this.swipe, this.draggable);
state !== '' && this.setState(state);
},
swipeMove: function swipeMove(e) {
var state = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["swipeMove"])(e, babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$data, {
trackRef: this.track,
listRef: this.list,
slideIndex: this.currentSlide
}));
if (!state) return;
if (state['swiping']) {
this.clickable = false;
}
this.setState(state);
},
swipeEnd: function swipeEnd(e) {
var state = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["swipeEnd"])(e, babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$data, {
trackRef: this.track,
listRef: this.list,
slideIndex: this.currentSlide
}));
if (!state) return;
var triggerSlideHandler = state['triggerSlideHandler'];
delete state['triggerSlideHandler'];
this.setState(state);
if (triggerSlideHandler === undefined) return;
this.slideHandler(triggerSlideHandler);
if (this.$props.verticalSwiping) {
this.enableBodyScroll();
}
},
slickPrev: function slickPrev() {
var _this5 = this;
// this and fellow methods are wrapped in setTimeout
// to make sure initialize setState has happened before
// any of such methods are called
this.callbackTimers.push(setTimeout(function () {
return _this5.changeSlide({ message: 'previous' });
}, 0));
},
slickNext: function slickNext() {
var _this6 = this;
this.callbackTimers.push(setTimeout(function () {
return _this6.changeSlide({ message: 'next' });
}, 0));
},
slickGoTo: function slickGoTo(slide) {
var _this7 = this;
var dontAnimate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
slide = Number(slide);
if (isNaN(slide)) return '';
this.callbackTimers.push(setTimeout(function () {
return _this7.changeSlide({
message: 'index',
index: slide,
currentSlide: _this7.currentSlide
}, dontAnimate);
}, 0));
},
play: function play() {
var nextIndex = void 0;
if (this.rtl) {
nextIndex = this.currentSlide - this.slidesToScroll;
} else {
if (Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["canGoNext"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$data))) {
nextIndex = this.currentSlide + this.slidesToScroll;
} else {
return false;
}
}
this.slideHandler(nextIndex);
},
handleAutoPlay: function handleAutoPlay(playType) {
if (this.autoplayTimer) {
clearInterval(this.autoplayTimer);
}
var autoplaying = this.autoplaying;
if (playType === 'update') {
if (autoplaying === 'hovered' || autoplaying === 'focused' || autoplaying === 'paused') {
return;
}
} else if (playType === 'leave') {
if (autoplaying === 'paused' || autoplaying === 'focused') {
return;
}
} else if (playType === 'blur') {
if (autoplaying === 'paused' || autoplaying === 'hovered') {
return;
}
}
this.autoplayTimer = setInterval(this.play, this.autoplaySpeed + 50);
this.setState({ autoplaying: 'playing' });
},
pause: function pause(pauseType) {
if (this.autoplayTimer) {
clearInterval(this.autoplayTimer);
this.autoplayTimer = null;
}
var autoplaying = this.autoplaying;
if (pauseType === 'paused') {
this.setState({ autoplaying: 'paused' });
} else if (pauseType === 'focused') {
if (autoplaying === 'hovered' || autoplaying === 'playing') {
this.setState({ autoplaying: 'focused' });
}
} else {
// pauseType is 'hovered'
if (autoplaying === 'playing') {
this.setState({ autoplaying: 'hovered' });
}
}
},
onDotsOver: function onDotsOver() {
this.autoplay && this.pause('hovered');
},
onDotsLeave: function onDotsLeave() {
this.autoplay && this.autoplaying === 'hovered' && this.handleAutoPlay('leave');
},
onTrackOver: function onTrackOver() {
this.autoplay && this.pause('hovered');
},
onTrackLeave: function onTrackLeave() {
this.autoplay && this.autoplaying === 'hovered' && this.handleAutoPlay('leave');
},
onSlideFocus: function onSlideFocus() {
this.autoplay && this.pause('focused');
},
onSlideBlur: function onSlideBlur() {
this.autoplay && this.autoplaying === 'focused' && this.handleAutoPlay('blur');
},
customPaging: function customPaging(_ref) {
var i = _ref.i;
var h = this.$createElement;
return h('button', [i + 1]);
},
appendDots: function appendDots(_ref2) {
var dots = _ref2.dots;
var h = this.$createElement;
return h(
'ul',
{ style: { display: 'block' } },
[dots]
);
}
},
beforeMount: function beforeMount() {
this.ssrInit();
this.$emit('init');
if (this.lazyLoad) {
var slidesToLoad = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["getOnDemandLazySlides"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$data));
if (slidesToLoad.length > 0) {
this.setState(function (prevState) {
return {
lazyLoadedList: prevState.lazyLoadedList.concat(slidesToLoad)
};
});
this.$emit('lazyLoad', slidesToLoad);
}
}
},
mounted: function mounted() {
var _this8 = this;
this.$nextTick(function () {
var spec = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
listRef: _this8.list,
trackRef: _this8.track,
children: _this8.children
}, _this8.$props);
_this8.updateState(spec, true, function () {
_this8.adaptHeight();
_this8.autoplay && _this8.handleAutoPlay('update');
});
if (_this8.lazyLoad === 'progressive') {
_this8.lazyLoadTimer = setInterval(_this8.progressiveLazyLoad, 1000);
}
_this8.ro = new resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_15__["default"](function () {
if (_this8.animating) {
_this8.onWindowResized(false); // don't set trackStyle hence don't break animation
_this8.callbackTimers.push(setTimeout(function () {
return _this8.onWindowResized();
}, _this8.speed));
} else {
_this8.onWindowResized();
}
});
_this8.ro.observe(_this8.list);
Array.prototype.forEach.call(document.querySelectorAll('.slick-slide'), function (slide) {
slide.onfocus = _this8.$props.pauseOnFocus ? _this8.onSlideFocus : null;
slide.onblur = _this8.$props.pauseOnFocus ? _this8.onSlideBlur : null;
});
// To support server-side rendering
if (!window) {
return;
}
if (window.addEventListener) {
window.addEventListener('resize', _this8.onWindowResized);
} else {
window.attachEvent('onresize', _this8.onWindowResized);
}
});
},
beforeDestroy: function beforeDestroy() {
if (this.animationEndCallback) {
clearTimeout(this.animationEndCallback);
}
if (this.lazyLoadTimer) {
clearInterval(this.lazyLoadTimer);
}
if (this.callbackTimers.length) {
this.callbackTimers.forEach(function (timer) {
return clearTimeout(timer);
});
this.callbackTimers = [];
}
if (window.addEventListener) {
window.removeEventListener('resize', this.onWindowResized);
} else {
window.detachEvent('onresize', this.onWindowResized);
}
if (this.autoplayTimer) {
clearInterval(this.autoplayTimer);
}
},
updated: function updated() {
this.checkImagesLoad();
this.$emit('reInit');
if (this.lazyLoad) {
var slidesToLoad = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["getOnDemandLazySlides"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$data));
if (slidesToLoad.length > 0) {
this.setState(function (prevState) {
return {
lazyLoadedList: prevState.lazyLoadedList.concat(slidesToLoad)
};
});
this.$emit('lazyLoad');
}
}
// if (this.props.onLazyLoad) {
// this.props.onLazyLoad([leftMostSlide])
// }
this.adaptHeight();
},
watch: {
__propsSymbol__: function __propsSymbol__() {
var _this9 = this;
var nextProps = this.$props;
var spec = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
listRef: this.list,
trackRef: this.track
}, nextProps, this.$data);
var setTrackStyle = false;
var _iteratorNormalCompletion = true;
var _didIteratorError = false;
var _iteratorError = undefined;
try {
for (var _iterator = Object.keys(this.preProps)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
var key = _step.value;
if (!nextProps.hasOwnProperty(key)) {
setTrackStyle = true;
break;
}
if (babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(nextProps[key]) === 'object' || typeof nextProps[key] === 'function' || babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(nextProps[key]) === 'symbol') {
continue;
}
if (nextProps[key] !== this.preProps[key]) {
setTrackStyle = true;
break;
}
}
} catch (err) {
_didIteratorError = true;
_iteratorError = err;
} finally {
try {
if (!_iteratorNormalCompletion && _iterator['return']) {
_iterator['return']();
}
} finally {
if (_didIteratorError) {
throw _iteratorError;
}
}
}
this.updateState(spec, setTrackStyle, function () {
if (_this9.currentSlide >= nextProps.children.length) {
_this9.changeSlide({
message: 'index',
index: nextProps.children.length - nextProps.slidesToShow,
currentSlide: _this9.currentSlide
});
}
if (nextProps.autoplay) {
_this9.handleAutoPlay('update');
} else {
_this9.pause('paused');
}
});
this.preProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, nextProps);
}
},
render: function render() {
var h = arguments[0];
var className = classnames__WEBPACK_IMPORTED_MODULE_4___default()('slick-slider', {
'slick-vertical': this.vertical,
'slick-initialized': true
});
var spec = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$data);
var trackProps = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["extractObject"])(spec, ['fade', 'cssEase', 'speed', 'infinite', 'centerMode', 'focusOnSelect', 'currentSlide', 'lazyLoad', 'lazyLoadedList', 'rtl', 'slideWidth', 'slideHeight', 'listHeight', 'vertical', 'slidesToShow', 'slidesToScroll', 'slideCount', 'trackStyle', 'variableWidth', 'unslick', 'centerPadding']);
var pauseOnHover = this.$props.pauseOnHover;
trackProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, trackProps, {
focusOnSelect: this.focusOnSelect ? this.selectHandler : null
}),
directives: [{
name: 'ant-ref',
value: this.trackRefHandler
}],
on: {
mouseenter: pauseOnHover ? this.onTrackOver : noop,
mouseleave: pauseOnHover ? this.onTrackLeave : noop,
mouseover: pauseOnHover ? this.onTrackOver : noop
}
};
var dots = void 0;
if (this.dots === true && this.slideCount >= this.slidesToShow) {
var dotProps = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["extractObject"])(spec, ['dotsClass', 'slideCount', 'slidesToShow', 'currentSlide', 'slidesToScroll', 'clickHandler', 'children', 'infinite', 'appendDots']);
dotProps.customPaging = this.customPaging;
dotProps.appendDots = this.appendDots;
var _$scopedSlots = this.$scopedSlots,
customPaging = _$scopedSlots.customPaging,
appendDots = _$scopedSlots.appendDots;
if (customPaging) {
dotProps.customPaging = customPaging;
}
if (appendDots) {
dotProps.appendDots = appendDots;
}
var pauseOnDotsHover = this.$props.pauseOnDotsHover;
dotProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, dotProps, {
clickHandler: this.changeSlide
}),
on: {
mouseenter: pauseOnDotsHover ? this.onDotsLeave : noop,
mouseover: pauseOnDotsHover ? this.onDotsOver : noop,
mouseleave: pauseOnDotsHover ? this.onDotsLeave : noop
}
};
dots = h(_dots__WEBPACK_IMPORTED_MODULE_13__["default"], dotProps);
}
var prevArrow = void 0,
nextArrow = void 0;
var arrowProps = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_11__["extractObject"])(spec, ['infinite', 'centerMode', 'currentSlide', 'slideCount', 'slidesToShow']);
arrowProps.clickHandler = this.changeSlide;
var _$scopedSlots2 = this.$scopedSlots,
prevArrowCustom = _$scopedSlots2.prevArrow,
nextArrowCustom = _$scopedSlots2.nextArrow;
if (prevArrowCustom) {
arrowProps.prevArrow = prevArrowCustom;
}
if (nextArrowCustom) {
arrowProps.nextArrow = nextArrowCustom;
}
if (this.arrows) {
prevArrow = h(_arrows__WEBPACK_IMPORTED_MODULE_14__["PrevArrow"], { props: arrowProps });
nextArrow = h(_arrows__WEBPACK_IMPORTED_MODULE_14__["NextArrow"], { props: arrowProps });
}
var verticalHeightStyle = null;
if (this.vertical) {
verticalHeightStyle = {
height: typeof this.listHeight === 'number' ? this.listHeight + 'px' : this.listHeight
};
}
var centerPaddingStyle = null;
if (this.vertical === false) {
if (this.centerMode === true) {
centerPaddingStyle = {
padding: '0px ' + this.centerPadding
};
}
} else {
if (this.centerMode === true) {
centerPaddingStyle = {
padding: this.centerPadding + ' 0px'
};
}
}
var listStyle = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, verticalHeightStyle, centerPaddingStyle);
var touchMove = this.touchMove;
var listProps = {
directives: [{
name: 'ant-ref',
value: this.listRefHandler
}],
'class': 'slick-list',
style: listStyle,
on: {
click: this.clickHandler,
mousedown: touchMove ? this.swipeStart : noop,
mousemove: this.dragging && touchMove ? this.swipeMove : noop,
mouseup: touchMove ? this.swipeEnd : noop,
mouseleave: this.dragging && touchMove ? this.swipeEnd : noop,
touchstart: touchMove ? this.swipeStart : noop,
touchmove: this.dragging && touchMove ? this.swipeMove : noop,
touchend: touchMove ? this.swipeEnd : noop,
touchcancel: this.dragging && touchMove ? this.swipeEnd : noop,
keydown: this.accessibility ? this.keyHandler : noop
}
};
var innerSliderProps = {
'class': className,
props: {
dir: 'ltr'
}
};
if (this.unslick) {
listProps = {
'class': 'slick-list',
directives: [{
name: 'ant-ref',
value: this.listRefHandler
}]
};
innerSliderProps = { 'class': className };
}
return h(
'div',
innerSliderProps,
[!this.unslick ? prevArrow : '', h(
'div',
listProps,
[h(
_track__WEBPACK_IMPORTED_MODULE_12__["default"],
trackProps,
[this.children]
)]
), !this.unslick ? nextArrow : '', !this.unslick ? dots : '']
);
}
});
/***/ }),
/***/ "./components/vc-slick/src/slider.js":
/*!*******************************************!*\
!*** ./components/vc-slick/src/slider.js ***!
\*******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var json2mq__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! json2mq */ "./node_modules/json2mq/index.js");
/* harmony import */ var json2mq__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(json2mq__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ "vue");
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
/* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _inner_slider__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./inner-slider */ "./components/vc-slick/src/inner-slider.js");
/* harmony import */ var _default_props__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./default-props */ "./components/vc-slick/src/default-props.js");
/* harmony import */ var _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils/innerSliderUtils */ "./components/vc-slick/src/utils/innerSliderUtils.js");
var enquire = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_9__["canUseDOM"])() && __webpack_require__(/*! enquire.js */ "./node_modules/enquire.js/src/index.js");
vue__WEBPACK_IMPORTED_MODULE_2___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_3___default.a, { name: 'ant-ref' });
/* harmony default export */ __webpack_exports__["default"] = ({
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, _default_props__WEBPACK_IMPORTED_MODULE_8__["default"]),
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
data: function data() {
this._responsiveMediaHandlers = [];
return {
breakpoint: null
};
},
methods: {
innerSliderRefHandler: function innerSliderRefHandler(ref) {
this.innerSlider = ref;
},
media: function media(query, handler) {
// javascript handler for css media query
enquire.register(query, handler);
this._responsiveMediaHandlers.push({ query: query, handler: handler });
},
slickPrev: function slickPrev() {
this.innerSlider.slickPrev();
},
slickNext: function slickNext() {
this.innerSlider.slickNext();
},
slickGoTo: function slickGoTo(slide) {
var dontAnimate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
this.innerSlider.slickGoTo(slide, dontAnimate);
},
slickPause: function slickPause() {
this.innerSlider.pause('paused');
},
slickPlay: function slickPlay() {
this.innerSlider.handleAutoPlay('play');
}
},
// handles responsive breakpoints
beforeMount: function beforeMount() {
var _this = this;
// performance monitoring
// if (process.env.NODE_ENV !== 'production') {
// const { whyDidYouUpdate } = require('why-did-you-update')
// whyDidYouUpdate(React)
// }
if (this.responsive) {
var breakpoints = this.responsive.map(function (breakpt) {
return breakpt.breakpoint;
});
// sort them in increasing order of their numerical value
breakpoints.sort(function (x, y) {
return x - y;
});
breakpoints.forEach(function (breakpoint, index) {
// media query for each breakpoint
var bQuery = void 0;
if (index === 0) {
bQuery = json2mq__WEBPACK_IMPORTED_MODULE_1___default()({ minWidth: 0, maxWidth: breakpoint });
} else {
bQuery = json2mq__WEBPACK_IMPORTED_MODULE_1___default()({
minWidth: breakpoints[index - 1] + 1,
maxWidth: breakpoint
});
}
// when not using server side rendering
Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_9__["canUseDOM"])() && _this.media(bQuery, function () {
_this.setState({ breakpoint: breakpoint });
});
});
// Register media query for full screen. Need to support resize from small to large
// convert javascript object to media query string
var query = json2mq__WEBPACK_IMPORTED_MODULE_1___default()({ minWidth: breakpoints.slice(-1)[0] });
Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_9__["canUseDOM"])() && this.media(query, function () {
_this.setState({ breakpoint: null });
});
}
},
beforeDestroy: function beforeDestroy() {
this._responsiveMediaHandlers.forEach(function (obj) {
enquire.unregister(obj.query, obj.handler);
});
},
render: function render() {
var _this2 = this;
var h = arguments[0];
var settings = void 0;
var newProps = void 0;
if (this.breakpoint) {
newProps = this.responsive.filter(function (resp) {
return resp.breakpoint === _this2.breakpoint;
});
settings = newProps[0].settings === 'unslick' ? 'unslick' : babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.$props, newProps[0].settings);
} else {
settings = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.$props);
}
// force scrolling by one if centerMode is on
if (settings.centerMode) {
if (settings.slidesToScroll > 1 && "development" !== 'production') {
console.warn('slidesToScroll should be equal to 1 in centerMode, you are using ' + settings.slidesToScroll);
}
settings.slidesToScroll = 1;
}
// force showing one slide and scrolling by one if the fade mode is on
if (settings.fade) {
if (settings.slidesToShow > 1 && "development" !== 'production') {
console.warn('slidesToShow should be equal to 1 when fade is true, you\'re using ' + settings.slidesToShow);
}
if (settings.slidesToScroll > 1 && "development" !== 'production') {
console.warn('slidesToScroll should be equal to 1 when fade is true, you\'re using ' + settings.slidesToScroll);
}
settings.slidesToShow = 1;
settings.slidesToScroll = 1;
}
// makes sure that children is an array, even when there is only 1 child
var children = this.$slots['default'] || [];
// Children may contain false or null, so we should filter them
// children may also contain string filled with spaces (in certain cases where we use jsx strings)
children = children.filter(function (child) {
if (typeof child === 'string') {
return !!child.trim();
}
return !!child;
});
// rows and slidesPerRow logic is handled here
if (settings.variableWidth && (settings.rows > 1 || settings.slidesPerRow > 1)) {
console.warn('variableWidth is not supported in case of rows > 1 or slidesPerRow > 1');
settings.variableWidth = false;
}
var newChildren = [];
var currentWidth = null;
for (var i = 0; i < children.length; i += settings.rows * settings.slidesPerRow) {
var newSlide = [];
for (var j = i; j < i + settings.rows * settings.slidesPerRow; j += settings.slidesPerRow) {
var row = [];
for (var k = j; k < j + settings.slidesPerRow; k += 1) {
if (settings.variableWidth && Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getStyle"])(children[k])) {
currentWidth = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getStyle"])(children[k]).width;
}
if (k >= children.length) break;
row.push(Object(_util_vnode__WEBPACK_IMPORTED_MODULE_5__["cloneElement"])(children[k], {
key: 100 * i + 10 * j + k,
attrs: {
tabIndex: -1
},
style: {
width: 100 / settings.slidesPerRow + '%',
display: 'inline-block'
}
}));
}
newSlide.push(h(
'div',
{ key: 10 * i + j },
[row]
));
}
if (settings.variableWidth) {
newChildren.push(h(
'div',
{ key: i, style: { width: currentWidth } },
[newSlide]
));
} else {
newChildren.push(h(
'div',
{ key: i },
[newSlide]
));
}
}
if (settings === 'unslick') {
var className = 'regular slider ' + (this.className || '');
return h(
'div',
{ 'class': className },
[newChildren]
);
} else if (newChildren.length <= settings.slidesToShow) {
settings.unslick = true;
}
var sliderProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, settings, {
children: newChildren,
__propsSymbol__: Symbol()
}),
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this),
directives: [{
name: 'ant-ref',
value: this.innerSliderRefHandler
}],
scopedSlots: this.$scopedSlots
};
return h(_inner_slider__WEBPACK_IMPORTED_MODULE_7__["default"], sliderProps);
}
});
/***/ }),
/***/ "./components/vc-slick/src/track.js":
/*!******************************************!*\
!*** ./components/vc-slick/src/track.js ***!
\******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* 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 _util_vnode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./utils/innerSliderUtils */ "./components/vc-slick/src/utils/innerSliderUtils.js");
// given specifications/props for a slide, fetch all the classes that need to be applied to the slide
var getSlideClasses = function getSlideClasses(spec) {
var slickActive = void 0,
slickCenter = void 0;
var centerOffset = void 0,
index = void 0;
if (spec.rtl) {
index = spec.slideCount - 1 - spec.index;
} else {
index = spec.index;
}
var slickCloned = index < 0 || index >= spec.slideCount;
if (spec.centerMode) {
centerOffset = Math.floor(spec.slidesToShow / 2);
slickCenter = (index - spec.currentSlide) % spec.slideCount === 0;
if (index > spec.currentSlide - centerOffset - 1 && index <= spec.currentSlide + centerOffset) {
slickActive = true;
}
} else {
slickActive = spec.currentSlide <= index && index < spec.currentSlide + spec.slidesToShow;
}
var slickCurrent = index === spec.currentSlide;
return {
'slick-slide': true,
'slick-active': slickActive,
'slick-center': slickCenter,
'slick-cloned': slickCloned,
'slick-current': slickCurrent // dubious in case of RTL
};
};
var getSlideStyle = function getSlideStyle(spec) {
var style = {};
if (spec.variableWidth === undefined || spec.variableWidth === false) {
style.width = spec.slideWidth + (typeof spec.slideWidth === 'number' ? 'px' : '');
}
if (spec.fade) {
style.position = 'relative';
if (spec.vertical) {
style.top = -spec.index * parseInt(spec.slideHeight) + 'px';
} else {
style.left = -spec.index * parseInt(spec.slideWidth) + 'px';
}
style.opacity = spec.currentSlide === spec.index ? 1 : 0;
style.transition = 'opacity ' + spec.speed + 'ms ' + spec.cssEase + ', ' + 'visibility ' + spec.speed + 'ms ' + spec.cssEase;
style.WebkitTransition = 'opacity ' + spec.speed + 'ms ' + spec.cssEase + ', ' + 'visibility ' + spec.speed + 'ms ' + spec.cssEase;
}
return style;
};
var getKey = function getKey(child, fallbackKey) {
return child.key || child.key === 0 && '0' || fallbackKey;
};
var renderSlides = function renderSlides(spec, children, createElement) {
var key = void 0;
var slides = [];
var preCloneSlides = [];
var postCloneSlides = [];
var childrenCount = children.length;
var startIndex = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__["lazyStartIndex"])(spec);
var endIndex = Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__["lazyEndIndex"])(spec);
children.forEach(function (elem, index) {
var child = void 0;
var childOnClickOptions = {
message: 'children',
index: index,
slidesToScroll: spec.slidesToScroll,
currentSlide: spec.currentSlide
};
// in case of lazyLoad, whether or not we want to fetch the slide
if (!spec.lazyLoad || spec.lazyLoad && spec.lazyLoadedList.indexOf(index) >= 0) {
child = elem;
} else {
child = createElement('div');
}
var childStyle = getSlideStyle(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, spec, { index: index }));
var slideClass = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getClass"])(child.context) || '';
var slideClasses = getSlideClasses(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, spec, { index: index }));
// push a cloned element of the desired slide
slides.push(Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(child, {
key: 'original' + getKey(child, index),
attrs: {
tabIndex: '-1',
'data-index': index,
'aria-hidden': !slideClasses['slick-active']
},
'class': classnames__WEBPACK_IMPORTED_MODULE_1___default()(slideClasses, slideClass),
style: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({ outline: 'none' }, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getStyle"])(child.context) || {}, childStyle),
on: {
click: function click() {
// child.props && child.props.onClick && child.props.onClick(e)
if (spec.focusOnSelect) {
spec.focusOnSelect(childOnClickOptions);
}
}
}
}, true));
// if slide needs to be precloned or postcloned
if (spec.infinite && spec.fade === false) {
var preCloneNo = childrenCount - index;
if (preCloneNo <= Object(_utils_innerSliderUtils__WEBPACK_IMPORTED_MODULE_4__["getPreClones"])(spec) && childrenCount !== spec.slidesToShow) {
key = -preCloneNo;
if (key >= startIndex) {
child = elem;
}
slideClasses = getSlideClasses(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, spec, { index: key }));
preCloneSlides.push(Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(child, {
key: 'precloned' + getKey(child, key),
'class': classnames__WEBPACK_IMPORTED_MODULE_1___default()(slideClasses, slideClass),
attrs: {
tabIndex: '-1',
'data-index': key,
'aria-hidden': !slideClasses['slick-active']
},
style: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getStyle"])(child.context) || {}, childStyle),
on: {
click: function click() {
// child.props && child.props.onClick && child.props.onClick(e)
if (spec.focusOnSelect) {
spec.focusOnSelect(childOnClickOptions);
}
}
}
}));
}
if (childrenCount !== spec.slidesToShow) {
key = childrenCount + index;
if (key < endIndex) {
child = elem;
}
slideClasses = getSlideClasses(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, spec, { index: key }));
postCloneSlides.push(Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(child, {
key: 'postcloned' + getKey(child, key),
attrs: {
tabIndex: '-1',
'data-index': key,
'aria-hidden': !slideClasses['slick-active']
},
'class': classnames__WEBPACK_IMPORTED_MODULE_1___default()(slideClasses, slideClass),
style: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getStyle"])(child.context) || {}, childStyle),
on: {
click: function click() {
// child.props && child.props.onClick && child.props.onClick(e)
if (spec.focusOnSelect) {
spec.focusOnSelect(childOnClickOptions);
}
}
}
}));
}
}
});
if (spec.rtl) {
return preCloneSlides.concat(slides, postCloneSlides).reverse();
} else {
return preCloneSlides.concat(slides, postCloneSlides);
}
};
/* harmony default export */ __webpack_exports__["default"] = ({
functional: true,
render: function render(createElement, context) {
var h = arguments[0];
var props = context.props,
listeners = context.listeners,
children = context.children,
data = context.data;
var slides = renderSlides(props, children, createElement);
var mouseenter = listeners.mouseenter,
mouseover = listeners.mouseover,
mouseleave = listeners.mouseleave;
var mouseEvents = { mouseenter: mouseenter, mouseover: mouseover, mouseleave: mouseleave };
var trackProps = {
'class': 'slick-track',
style: props.trackStyle,
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, mouseEvents),
directives: data.directives
};
return h(
'div',
trackProps,
[slides]
);
}
});
/***/ }),
/***/ "./components/vc-slick/src/utils/innerSliderUtils.js":
/*!***********************************************************!*\
!*** ./components/vc-slick/src/utils/innerSliderUtils.js ***!
\***********************************************************/
/*! exports provided: getOnDemandLazySlides, getRequiredLazySlides, lazyStartIndex, lazyEndIndex, lazySlidesOnLeft, lazySlidesOnRight, getWidth, getHeight, getSwipeDirection, canGoNext, extractObject, initializedState, slideHandler, changeSlide, keyHandler, swipeStart, swipeMove, swipeEnd, getNavigableIndexes, checkNavigable, getSlideCount, checkSpecKeys, getTrackCSS, getTrackAnimateCSS, getTrackLeft, getPreClones, getPostClones, getTotalSlides, siblingDirection, slidesOnRight, slidesOnLeft, canUseDOM */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getOnDemandLazySlides", function() { return getOnDemandLazySlides; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getRequiredLazySlides", function() { return getRequiredLazySlides; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lazyStartIndex", function() { return lazyStartIndex; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lazyEndIndex", function() { return lazyEndIndex; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lazySlidesOnLeft", function() { return lazySlidesOnLeft; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lazySlidesOnRight", function() { return lazySlidesOnRight; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getWidth", function() { return getWidth; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getHeight", function() { return getHeight; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSwipeDirection", function() { return getSwipeDirection; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "canGoNext", function() { return canGoNext; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "extractObject", function() { return extractObject; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initializedState", function() { return initializedState; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "slideHandler", function() { return slideHandler; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "changeSlide", function() { return changeSlide; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "keyHandler", function() { return keyHandler; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "swipeStart", function() { return swipeStart; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "swipeMove", function() { return swipeMove; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "swipeEnd", function() { return swipeEnd; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getNavigableIndexes", function() { return getNavigableIndexes; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "checkNavigable", function() { return checkNavigable; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSlideCount", function() { return getSlideCount; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "checkSpecKeys", function() { return checkSpecKeys; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTrackCSS", function() { return getTrackCSS; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTrackAnimateCSS", function() { return getTrackAnimateCSS; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTrackLeft", function() { return getTrackLeft; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPreClones", function() { return getPreClones; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPostClones", function() { return getPostClones; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTotalSlides", function() { return getTotalSlides; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "siblingDirection", function() { return siblingDirection; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "slidesOnRight", function() { return slidesOnRight; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "slidesOnLeft", function() { return slidesOnLeft; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "canUseDOM", function() { return canUseDOM; });
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
var getOnDemandLazySlides = function getOnDemandLazySlides(spec) {
var onDemandSlides = [];
var startIndex = lazyStartIndex(spec);
var endIndex = lazyEndIndex(spec);
for (var slideIndex = startIndex; slideIndex < endIndex; slideIndex++) {
if (spec.lazyLoadedList.indexOf(slideIndex) < 0) {
onDemandSlides.push(slideIndex);
}
}
return onDemandSlides;
};
// return list of slides that need to be present
var getRequiredLazySlides = function getRequiredLazySlides(spec) {
var requiredSlides = [];
var startIndex = lazyStartIndex(spec);
var endIndex = lazyEndIndex(spec);
for (var slideIndex = startIndex; slideIndex < endIndex; slideIndex++) {
requiredSlides.push(slideIndex);
}
return requiredSlides;
};
// startIndex that needs to be present
var lazyStartIndex = function lazyStartIndex(spec) {
return spec.currentSlide - lazySlidesOnLeft(spec);
};
var lazyEndIndex = function lazyEndIndex(spec) {
return spec.currentSlide + lazySlidesOnRight(spec);
};
var lazySlidesOnLeft = function lazySlidesOnLeft(spec) {
return spec.centerMode ? Math.floor(spec.slidesToShow / 2) + (parseInt(spec.centerPadding) > 0 ? 1 : 0) : 0;
};
var lazySlidesOnRight = function lazySlidesOnRight(spec) {
return spec.centerMode ? Math.floor((spec.slidesToShow - 1) / 2) + 1 + (parseInt(spec.centerPadding) > 0 ? 1 : 0) : spec.slidesToShow;
};
// get width of an element
var getWidth = function getWidth(elem) {
return elem && elem.offsetWidth || 0;
};
var getHeight = function getHeight(elem) {
return elem && elem.offsetHeight || 0;
};
var getSwipeDirection = function getSwipeDirection(touchObject) {
var verticalSwiping = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
var swipeAngle = void 0;
var xDist = touchObject.startX - touchObject.curX;
var yDist = touchObject.startY - touchObject.curY;
var r = Math.atan2(yDist, xDist);
swipeAngle = Math.round(r * 180 / Math.PI);
if (swipeAngle < 0) {
swipeAngle = 360 - Math.abs(swipeAngle);
}
if (swipeAngle <= 45 && swipeAngle >= 0 || swipeAngle <= 360 && swipeAngle >= 315) {
return 'left';
}
if (swipeAngle >= 135 && swipeAngle <= 225) {
return 'right';
}
if (verticalSwiping === true) {
if (swipeAngle >= 35 && swipeAngle <= 135) {
return 'up';
} else {
return 'down';
}
}
return 'vertical';
};
// whether or not we can go next
var canGoNext = function canGoNext(spec) {
var canGo = true;
if (!spec.infinite) {
if (spec.centerMode && spec.currentSlide >= spec.slideCount - 1) {
canGo = false;
} else if (spec.slideCount <= spec.slidesToShow || spec.currentSlide >= spec.slideCount - spec.slidesToShow) {
canGo = false;
}
}
return canGo;
};
// given an object and a list of keys, return new object with given keys
var extractObject = function extractObject(spec, keys) {
var newObject = {};
keys.forEach(function (key) {
return newObject[key] = spec[key];
});
return newObject;
};
// get initialized state
var initializedState = function initializedState(spec) {
// spec also contains listRef, trackRef
var slideCount = spec.children.length;
var listWidth = Math.ceil(getWidth(spec.listRef));
var trackWidth = Math.ceil(getWidth(spec.trackRef));
var slideWidth = void 0;
if (!spec.vertical) {
var centerPaddingAdj = spec.centerMode && parseInt(spec.centerPadding) * 2;
if (typeof spec.centerPadding === 'string' && spec.centerPadding.slice(-1) === '%') {
centerPaddingAdj *= listWidth / 100;
}
slideWidth = Math.ceil((listWidth - centerPaddingAdj) / spec.slidesToShow);
} else {
slideWidth = listWidth;
}
var slideHeight = spec.listRef && getHeight(spec.listRef.querySelector('[data-index="0"]'));
var listHeight = slideHeight * spec.slidesToShow;
var currentSlide = spec.currentSlide === undefined ? spec.initialSlide : spec.currentSlide;
if (spec.rtl && spec.currentSlide === undefined) {
currentSlide = slideCount - 1 - spec.initialSlide;
}
var lazyLoadedList = spec.lazyLoadedList || [];
var slidesToLoad = getOnDemandLazySlides({ currentSlide: currentSlide, lazyLoadedList: lazyLoadedList }, spec);
lazyLoadedList.concat(slidesToLoad);
var state = {
slideCount: slideCount,
slideWidth: slideWidth,
listWidth: listWidth,
trackWidth: trackWidth,
currentSlide: currentSlide,
slideHeight: slideHeight,
listHeight: listHeight,
lazyLoadedList: lazyLoadedList
};
if (spec.autoplaying === null && spec.autoplay) {
state['autoplaying'] = 'playing';
}
return state;
};
var slideHandler = function slideHandler(spec) {
var waitForAnimate = spec.waitForAnimate,
animating = spec.animating,
fade = spec.fade,
infinite = spec.infinite,
index = spec.index,
slideCount = spec.slideCount,
lazyLoadedList = spec.lazyLoadedList,
lazyLoad = spec.lazyLoad,
currentSlide = spec.currentSlide,
centerMode = spec.centerMode,
slidesToScroll = spec.slidesToScroll,
slidesToShow = spec.slidesToShow,
useCSS = spec.useCSS;
if (waitForAnimate && animating) return {};
var animationSlide = index;
var finalSlide = void 0;
var animationLeft = void 0;
var finalLeft = void 0;
var state = {};
var nextState = {};
if (fade) {
if (!infinite && (index < 0 || index >= slideCount)) return {};
if (index < 0) {
animationSlide = index + slideCount;
} else if (index >= slideCount) {
animationSlide = index - slideCount;
}
if (lazyLoad && lazyLoadedList.indexOf(animationSlide) < 0) {
lazyLoadedList.push(animationSlide);
}
state = {
animating: true,
currentSlide: animationSlide,
lazyLoadedList: lazyLoadedList
};
nextState = { animating: false };
} else {
finalSlide = animationSlide;
if (animationSlide < 0) {
finalSlide = animationSlide + slideCount;
if (!infinite) finalSlide = 0;else if (slideCount % slidesToScroll !== 0) {
finalSlide = slideCount - slideCount % slidesToScroll;
}
} else if (!canGoNext(spec) && animationSlide > currentSlide) {
animationSlide = finalSlide = currentSlide;
} else if (centerMode && animationSlide >= slideCount) {
animationSlide = infinite ? slideCount : slideCount - 1;
finalSlide = infinite ? 0 : slideCount - 1;
} else if (animationSlide >= slideCount) {
finalSlide = animationSlide - slideCount;
if (!infinite) finalSlide = slideCount - slidesToShow;else if (slideCount % slidesToScroll !== 0) finalSlide = 0;
}
animationLeft = getTrackLeft(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, spec, { slideIndex: animationSlide }));
finalLeft = getTrackLeft(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, spec, { slideIndex: finalSlide }));
if (!infinite) {
if (animationLeft === finalLeft) animationSlide = finalSlide;
animationLeft = finalLeft;
}
lazyLoad && lazyLoadedList.concat(getOnDemandLazySlides(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, spec, { currentSlide: animationSlide })));
if (!useCSS) {
state = {
currentSlide: finalSlide,
trackStyle: getTrackCSS(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, spec, { left: finalLeft })),
lazyLoadedList: lazyLoadedList
};
} else {
state = {
animating: true,
currentSlide: finalSlide,
trackStyle: getTrackAnimateCSS(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, spec, { left: animationLeft })),
lazyLoadedList: lazyLoadedList
};
nextState = {
animating: false,
currentSlide: finalSlide,
trackStyle: getTrackCSS(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, spec, { left: finalLeft })),
swipeLeft: null
};
}
}
return { state: state, nextState: nextState };
};
var changeSlide = function changeSlide(spec, options) {
var previousInt = void 0,
slideOffset = void 0,
targetSlide = void 0;
var slidesToScroll = spec.slidesToScroll,
slidesToShow = spec.slidesToShow,
slideCount = spec.slideCount,
currentSlide = spec.currentSlide,
lazyLoad = spec.lazyLoad,
infinite = spec.infinite;
var unevenOffset = slideCount % slidesToScroll !== 0;
var indexOffset = unevenOffset ? 0 : (slideCount - currentSlide) % slidesToScroll;
if (options.message === 'previous') {
slideOffset = indexOffset === 0 ? slidesToScroll : slidesToShow - indexOffset;
targetSlide = currentSlide - slideOffset;
if (lazyLoad && !infinite) {
previousInt = currentSlide - slideOffset;
targetSlide = previousInt === -1 ? slideCount - 1 : previousInt;
}
} else if (options.message === 'next') {
slideOffset = indexOffset === 0 ? slidesToScroll : indexOffset;
targetSlide = currentSlide + slideOffset;
if (lazyLoad && !infinite) {
targetSlide = (currentSlide + slidesToScroll) % slideCount + indexOffset;
}
} else if (options.message === 'dots') {
// Click on dots
targetSlide = options.index * options.slidesToScroll;
if (targetSlide === options.currentSlide) {
return null;
}
} else if (options.message === 'children') {
// Click on the slides
targetSlide = options.index;
if (targetSlide === options.currentSlide) {
return null;
}
if (infinite) {
var direction = siblingDirection(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, spec, { targetSlide: targetSlide }));
if (targetSlide > options.currentSlide && direction === 'left') {
targetSlide = targetSlide - slideCount;
} else if (targetSlide < options.currentSlide && direction === 'right') {
targetSlide = targetSlide + slideCount;
}
}
} else if (options.message === 'index') {
targetSlide = Number(options.index);
if (targetSlide === options.currentSlide) {
return null;
}
}
return targetSlide;
};
var keyHandler = function keyHandler(e, accessibility, rtl) {
if (e.target.tagName.match('TEXTAREA|INPUT|SELECT') || !accessibility) {
return '';
}
if (e.keyCode === 37) return rtl ? 'next' : 'previous';
if (e.keyCode === 39) return rtl ? 'previous' : 'next';
return '';
};
var swipeStart = function swipeStart(e, swipe, draggable) {
e.target.tagName === 'IMG' && e.preventDefault();
if (!swipe || !draggable && e.type.indexOf('mouse') !== -1) return '';
return {
dragging: true,
touchObject: {
startX: e.touches ? e.touches[0].pageX : e.clientX,
startY: e.touches ? e.touches[0].pageY : e.clientY,
curX: e.touches ? e.touches[0].pageX : e.clientX,
curY: e.touches ? e.touches[0].pageY : e.clientY
}
};
};
var swipeMove = function swipeMove(e, spec) {
// spec also contains, trackRef and slideIndex
var scrolling = spec.scrolling,
animating = spec.animating,
vertical = spec.vertical,
swipeToSlide = spec.swipeToSlide,
verticalSwiping = spec.verticalSwiping,
rtl = spec.rtl,
currentSlide = spec.currentSlide,
edgeFriction = spec.edgeFriction,
edgeDragged = spec.edgeDragged,
onEdge = spec.onEdge,
swiped = spec.swiped,
swiping = spec.swiping,
slideCount = spec.slideCount,
slidesToScroll = spec.slidesToScroll,
infinite = spec.infinite,
touchObject = spec.touchObject,
swipeEvent = spec.swipeEvent,
listHeight = spec.listHeight,
listWidth = spec.listWidth;
if (scrolling) return;
if (animating) return e.preventDefault();
if (vertical && swipeToSlide && verticalSwiping) e.preventDefault();
var swipeLeft = void 0;
var state = {};
var curLeft = getTrackLeft(spec);
touchObject.curX = e.touches ? e.touches[0].pageX : e.clientX;
touchObject.curY = e.touches ? e.touches[0].pageY : e.clientY;
touchObject.swipeLength = Math.round(Math.sqrt(Math.pow(touchObject.curX - touchObject.startX, 2)));
var verticalSwipeLength = Math.round(Math.sqrt(Math.pow(touchObject.curY - touchObject.startY, 2)));
if (!verticalSwiping && !swiping && verticalSwipeLength > 10) {
return { scrolling: true };
}
if (verticalSwiping) touchObject.swipeLength = verticalSwipeLength;
var positionOffset = (!rtl ? 1 : -1) * (touchObject.curX > touchObject.startX ? 1 : -1);
if (verticalSwiping) {
positionOffset = touchObject.curY > touchObject.startY ? 1 : -1;
}
var dotCount = Math.ceil(slideCount / slidesToScroll);
var swipeDirection = getSwipeDirection(spec.touchObject, verticalSwiping);
var touchSwipeLength = touchObject.swipeLength;
if (!infinite) {
if (currentSlide === 0 && swipeDirection === 'right' || currentSlide + 1 >= dotCount && swipeDirection === 'left' || !canGoNext(spec) && swipeDirection === 'left') {
touchSwipeLength = touchObject.swipeLength * edgeFriction;
if (edgeDragged === false && onEdge) {
onEdge(swipeDirection);
state['edgeDragged'] = true;
}
}
}
if (!swiped && swipeEvent) {
swipeEvent(swipeDirection);
state['swiped'] = true;
}
if (!vertical) {
if (!rtl) {
swipeLeft = curLeft + touchSwipeLength * positionOffset;
} else {
swipeLeft = curLeft - touchSwipeLength * positionOffset;
}
} else {
swipeLeft = curLeft + touchSwipeLength * (listHeight / listWidth) * positionOffset;
}
if (verticalSwiping) {
swipeLeft = curLeft + touchSwipeLength * positionOffset;
}
state = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, state, {
touchObject: touchObject,
swipeLeft: swipeLeft,
trackStyle: getTrackCSS(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, spec, { left: swipeLeft }))
});
if (Math.abs(touchObject.curX - touchObject.startX) < Math.abs(touchObject.curY - touchObject.startY) * 0.8) {
return state;
}
if (touchObject.swipeLength > 10) {
state['swiping'] = true;
e.preventDefault();
}
return state;
};
var swipeEnd = function swipeEnd(e, spec) {
var dragging = spec.dragging,
swipe = spec.swipe,
touchObject = spec.touchObject,
listWidth = spec.listWidth,
touchThreshold = spec.touchThreshold,
verticalSwiping = spec.verticalSwiping,
listHeight = spec.listHeight,
currentSlide = spec.currentSlide,
swipeToSlide = spec.swipeToSlide,
scrolling = spec.scrolling,
onSwipe = spec.onSwipe;
if (!dragging) {
if (swipe) e.preventDefault();
return {};
}
var minSwipe = verticalSwiping ? listHeight / touchThreshold : listWidth / touchThreshold;
var swipeDirection = getSwipeDirection(touchObject, verticalSwiping);
// reset the state of touch related state variables.
var state = {
dragging: false,
edgeDragged: false,
scrolling: false,
swiping: false,
swiped: false,
swipeLeft: null,
touchObject: {}
};
if (scrolling) {
return state;
}
if (!touchObject.swipeLength) {
return state;
}
if (touchObject.swipeLength > minSwipe) {
e.preventDefault();
if (onSwipe) {
onSwipe(swipeDirection);
}
var slideCount = void 0,
newSlide = void 0;
switch (swipeDirection) {
case 'left':
case 'up':
newSlide = currentSlide + getSlideCount(spec);
slideCount = swipeToSlide ? checkNavigable(spec, newSlide) : newSlide;
state['currentDirection'] = 0;
break;
case 'right':
case 'down':
newSlide = currentSlide - getSlideCount(spec);
slideCount = swipeToSlide ? checkNavigable(spec, newSlide) : newSlide;
state['currentDirection'] = 1;
break;
default:
slideCount = currentSlide;
}
state['triggerSlideHandler'] = slideCount;
} else {
// Adjust the track back to it's original position.
var currentLeft = getTrackLeft(spec);
state['trackStyle'] = getTrackAnimateCSS(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, spec, { left: currentLeft }));
}
return state;
};
var getNavigableIndexes = function getNavigableIndexes(spec) {
var max = spec.infinite ? spec.slideCount * 2 : spec.slideCount;
var breakpoint = spec.infinite ? spec.slidesToShow * -1 : 0;
var counter = spec.infinite ? spec.slidesToShow * -1 : 0;
var indexes = [];
while (breakpoint < max) {
indexes.push(breakpoint);
breakpoint = counter + spec.slidesToScroll;
counter += Math.min(spec.slidesToScroll, spec.slidesToShow);
}
return indexes;
};
var checkNavigable = function checkNavigable(spec, index) {
var navigables = getNavigableIndexes(spec);
var prevNavigable = 0;
if (index > navigables[navigables.length - 1]) {
index = navigables[navigables.length - 1];
} else {
for (var n in navigables) {
if (index < navigables[n]) {
index = prevNavigable;
break;
}
prevNavigable = navigables[n];
}
}
return index;
};
var getSlideCount = function getSlideCount(spec) {
var centerOffset = spec.centerMode ? spec.slideWidth * Math.floor(spec.slidesToShow / 2) : 0;
if (spec.swipeToSlide) {
var swipedSlide = void 0;
var slickList = spec.listRef;
var slides = slickList.querySelectorAll('.slick-slide');
Array.from(slides).every(function (slide) {
if (!spec.vertical) {
if (slide.offsetLeft - centerOffset + getWidth(slide) / 2 > spec.swipeLeft * -1) {
swipedSlide = slide;
return false;
}
} else {
if (slide.offsetTop + getHeight(slide) / 2 > spec.swipeLeft * -1) {
swipedSlide = slide;
return false;
}
}
return true;
});
if (!swipedSlide) {
return 0;
}
var currentIndex = spec.rtl === true ? spec.slideCount - spec.currentSlide : spec.currentSlide;
var slidesTraversed = Math.abs(swipedSlide.dataset.index - currentIndex) || 1;
return slidesTraversed;
} else {
return spec.slidesToScroll;
}
};
var checkSpecKeys = function checkSpecKeys(spec, keysArray) {
return keysArray.reduce(function (value, key) {
return value && spec.hasOwnProperty(key);
}, true) ? null : console.error('Keys Missing:', spec);
};
var getTrackCSS = function getTrackCSS(spec) {
checkSpecKeys(spec, ['left', 'variableWidth', 'slideCount', 'slidesToShow', 'slideWidth']);
var trackWidth = void 0,
trackHeight = void 0;
var trackChildren = spec.slideCount + 2 * spec.slidesToShow;
if (!spec.vertical) {
trackWidth = getTotalSlides(spec) * spec.slideWidth;
} else {
trackHeight = trackChildren * spec.slideHeight;
}
var style = {
opacity: 1,
transition: '',
WebkitTransition: ''
};
if (spec.useTransform) {
var WebkitTransform = !spec.vertical ? 'translate3d(' + spec.left + 'px, 0px, 0px)' : 'translate3d(0px, ' + spec.left + 'px, 0px)';
var transform = !spec.vertical ? 'translate3d(' + spec.left + 'px, 0px, 0px)' : 'translate3d(0px, ' + spec.left + 'px, 0px)';
var msTransform = !spec.vertical ? 'translateX(' + spec.left + 'px)' : 'translateY(' + spec.left + 'px)';
style = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, style, {
WebkitTransform: WebkitTransform,
transform: transform,
msTransform: msTransform
});
} else {
if (spec.vertical) {
style['top'] = spec.left;
} else {
style['left'] = spec.left;
}
}
if (spec.fade) style = { opacity: 1 };
if (trackWidth) style.width = trackWidth + 'px';
if (trackHeight) style.height = trackHeight + 'px';
// Fallback for IE8
if (window && !window.addEventListener && window.attachEvent) {
if (!spec.vertical) {
style.marginLeft = spec.left + 'px';
} else {
style.marginTop = spec.left + 'px';
}
}
return style;
};
var getTrackAnimateCSS = function getTrackAnimateCSS(spec) {
checkSpecKeys(spec, ['left', 'variableWidth', 'slideCount', 'slidesToShow', 'slideWidth', 'speed', 'cssEase']);
var style = getTrackCSS(spec);
// useCSS is true by default so it can be undefined
if (spec.useTransform) {
style.WebkitTransition = '-webkit-transform ' + spec.speed + 'ms ' + spec.cssEase;
style.transition = 'transform ' + spec.speed + 'ms ' + spec.cssEase;
} else {
if (spec.vertical) {
style.transition = 'top ' + spec.speed + 'ms ' + spec.cssEase;
} else {
style.transition = 'left ' + spec.speed + 'ms ' + spec.cssEase;
}
}
return style;
};
var getTrackLeft = function getTrackLeft(spec) {
if (spec.unslick) {
return 0;
}
checkSpecKeys(spec, ['slideIndex', 'trackRef', 'infinite', 'centerMode', 'slideCount', 'slidesToShow', 'slidesToScroll', 'slideWidth', 'listWidth', 'variableWidth', 'slideHeight']);
var slideIndex = spec.slideIndex,
trackRef = spec.trackRef,
infinite = spec.infinite,
centerMode = spec.centerMode,
slideCount = spec.slideCount,
slidesToShow = spec.slidesToShow,
slidesToScroll = spec.slidesToScroll,
slideWidth = spec.slideWidth,
listWidth = spec.listWidth,
variableWidth = spec.variableWidth,
slideHeight = spec.slideHeight,
fade = spec.fade,
vertical = spec.vertical;
var slideOffset = 0;
var targetLeft = void 0;
var targetSlide = void 0;
var verticalOffset = 0;
if (fade || spec.slideCount === 1) {
return 0;
}
var slidesToOffset = 0;
if (infinite) {
slidesToOffset = -getPreClones(spec); // bring active slide to the beginning of visual area
// if next scroll doesn't have enough children, just reach till the end of original slides instead of shifting slidesToScroll children
if (slideCount % slidesToScroll !== 0 && slideIndex + slidesToScroll > slideCount) {
slidesToOffset = -(slideIndex > slideCount ? slidesToShow - (slideIndex - slideCount) : slideCount % slidesToScroll);
}
// shift current slide to center of the frame
if (centerMode) {
slidesToOffset += parseInt(slidesToShow / 2);
}
} else {
if (slideCount % slidesToScroll !== 0 && slideIndex + slidesToScroll > slideCount) {
slidesToOffset = slidesToShow - slideCount % slidesToScroll;
}
if (centerMode) {
slidesToOffset = parseInt(slidesToShow / 2);
}
}
slideOffset = slidesToOffset * slideWidth;
verticalOffset = slidesToOffset * slideHeight;
if (!vertical) {
targetLeft = slideIndex * slideWidth * -1 + slideOffset;
} else {
targetLeft = slideIndex * slideHeight * -1 + verticalOffset;
}
if (variableWidth === true) {
var targetSlideIndex = void 0;
var trackElem = trackRef;
targetSlideIndex = slideIndex + getPreClones(spec);
targetSlide = trackElem && trackElem.childNodes[targetSlideIndex];
targetLeft = targetSlide ? targetSlide.offsetLeft * -1 : 0;
if (centerMode === true) {
targetSlideIndex = infinite ? slideIndex + getPreClones(spec) : slideIndex;
targetSlide = trackElem && trackElem.children[targetSlideIndex];
targetLeft = 0;
for (var slide = 0; slide < targetSlideIndex; slide++) {
targetLeft -= trackElem && trackElem.children[slide] && trackElem.children[slide].offsetWidth;
}
targetLeft -= parseInt(spec.centerPadding);
targetLeft += targetSlide && (listWidth - targetSlide.offsetWidth) / 2;
}
}
return targetLeft;
};
var getPreClones = function getPreClones(spec) {
if (spec.unslick || !spec.infinite) {
return 0;
}
if (spec.variableWidth) {
return spec.slideCount;
}
return spec.slidesToShow + (spec.centerMode ? 1 : 0);
};
var getPostClones = function getPostClones(spec) {
if (spec.unslick || !spec.infinite) {
return 0;
}
return spec.slideCount;
};
var getTotalSlides = function getTotalSlides(spec) {
return spec.slideCount === 1 ? 1 : getPreClones(spec) + spec.slideCount + getPostClones(spec);
};
var siblingDirection = function siblingDirection(spec) {
if (spec.targetSlide > spec.currentSlide) {
if (spec.targetSlide > spec.currentSlide + slidesOnRight(spec)) {
return 'left';
}
return 'right';
} else {
if (spec.targetSlide < spec.currentSlide - slidesOnLeft(spec)) {
return 'right';
}
return 'left';
}
};
var slidesOnRight = function slidesOnRight(_ref) {
var slidesToShow = _ref.slidesToShow,
centerMode = _ref.centerMode,
rtl = _ref.rtl,
centerPadding = _ref.centerPadding;
// returns no of slides on the right of active slide
if (centerMode) {
var right = (slidesToShow - 1) / 2 + 1;
if (parseInt(centerPadding) > 0) right += 1;
if (rtl && slidesToShow % 2 === 0) right += 1;
return right;
}
if (rtl) {
return 0;
}
return slidesToShow - 1;
};
var slidesOnLeft = function slidesOnLeft(_ref2) {
var slidesToShow = _ref2.slidesToShow,
centerMode = _ref2.centerMode,
rtl = _ref2.rtl,
centerPadding = _ref2.centerPadding;
// returns no of slides on the left of active slide
if (centerMode) {
var left = (slidesToShow - 1) / 2 + 1;
if (parseInt(centerPadding) > 0) left += 1;
if (!rtl && slidesToShow % 2 === 0) left += 1;
return left;
}
if (rtl) {
return slidesToShow - 1;
}
return 0;
};
var canUseDOM = function canUseDOM() {
return !!(typeof window !== 'undefined' && window.document && window.document.createElement);
};
/***/ }),
/***/ "./components/vc-slider/src/Handle.jsx":
/*!*********************************************!*\
!*** ./components/vc-slider/src/Handle.jsx ***!
\*********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../vc-util/Dom/addEventListener */ "./components/vc-util/Dom/addEventListener.js");
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'Handle',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
props: {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
vertical: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
offset: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
min: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
max: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
className: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
reverse: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool
// handleFocus: PropTypes.func.def(noop),
// handleBlur: PropTypes.func.def(noop),
},
data: function data() {
return {
clickFocused: false
};
},
mounted: function mounted() {
// mouseup won't trigger if mouse moved out of handle
// so we listen on document here.
this.onMouseUpListener = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_6__["default"])(document, 'mouseup', this.handleMouseUp);
},
beforeDestroy: function beforeDestroy() {
if (this.onMouseUpListener) {
this.onMouseUpListener.remove();
}
},
methods: {
setClickFocus: function setClickFocus(focused) {
this.setState({ clickFocused: focused });
},
handleMouseUp: function handleMouseUp() {
if (document.activeElement === this.$refs.handle) {
this.setClickFocus(true);
}
},
handleBlur: function handleBlur(e) {
this.setClickFocus(false);
this.__emit('blur', e);
},
handleKeyDown: function handleKeyDown() {
this.setClickFocus(false);
},
clickFocus: function clickFocus() {
this.setClickFocus(true);
this.focus();
},
focus: function focus() {
this.$refs.handle.focus();
},
blur: function blur() {
this.$refs.handle.blur();
},
// when click can not focus in vue, use mousedown trigger focus
handleMousedown: function handleMousedown(e) {
this.focus();
this.__emit('mousedown', e);
}
},
render: function render() {
var _ref, _ref2;
var h = arguments[0];
var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this),
prefixCls = _getOptionProps.prefixCls,
vertical = _getOptionProps.vertical,
reverse = _getOptionProps.reverse,
offset = _getOptionProps.offset,
disabled = _getOptionProps.disabled,
min = _getOptionProps.min,
max = _getOptionProps.max,
value = _getOptionProps.value,
tabIndex = _getOptionProps.tabIndex;
var className = classnames__WEBPACK_IMPORTED_MODULE_2___default()(this.$props.className, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, prefixCls + '-handle-click-focused', this.clickFocused));
var positionStyle = vertical ? (_ref = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, reverse ? 'top' : 'bottom', offset + '%'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, reverse ? 'bottom' : 'top', 'auto'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, 'transform', 'translateY(+50%)'), _ref) : (_ref2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref2, reverse ? 'right' : 'left', offset + '%'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref2, reverse ? 'left' : 'right', 'auto'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref2, 'transform', 'translateX(' + (reverse ? '+' : '-') + '50%)'), _ref2);
var ariaProps = {
'aria-valuemin': min,
'aria-valuemax': max,
'aria-valuenow': value,
'aria-disabled': !!disabled
};
var _tabIndex = tabIndex || 0;
if (disabled || tabIndex === null) {
_tabIndex = null;
}
var handleProps = {
attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
role: 'slider',
tabIndex: _tabIndex
}, ariaProps),
'class': className,
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this), {
blur: this.handleBlur,
keydown: this.handleKeyDown,
mousedown: this.handleMousedown
}),
ref: 'handle',
style: positionStyle
};
return h('div', handleProps);
}
});
/***/ }),
/***/ "./components/vc-slider/src/Range.jsx":
/*!********************************************!*\
!*** ./components/vc-slider/src/Range.jsx ***!
\********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _common_Track__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./common/Track */ "./components/vc-slider/src/common/Track.jsx");
/* harmony import */ var _common_createSlider__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./common/createSlider */ "./components/vc-slider/src/common/createSlider.jsx");
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils */ "./components/vc-slider/src/utils.js");
var _trimAlignValue = function _trimAlignValue(_ref) {
var value = _ref.value,
handle = _ref.handle,
bounds = _ref.bounds,
props = _ref.props;
var allowCross = props.allowCross,
pushable = props.pushable;
var thershold = Number(pushable);
var valInRange = _utils__WEBPACK_IMPORTED_MODULE_9__["ensureValueInRange"](value, props);
var valNotConflict = valInRange;
if (!allowCross && handle != null && bounds !== undefined) {
if (handle > 0 && valInRange <= bounds[handle - 1] + thershold) {
valNotConflict = bounds[handle - 1] + thershold;
}
if (handle < bounds.length - 1 && valInRange >= bounds[handle + 1] - thershold) {
valNotConflict = bounds[handle + 1] - thershold;
}
}
return _utils__WEBPACK_IMPORTED_MODULE_9__["ensureValuePrecision"](valNotConflict, props);
};
var rangeProps = {
defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number),
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number),
count: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
pushable: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number]),
allowCross: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
reverse: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number),
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
min: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
max: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool
};
var Range = {
name: 'Range',
displayName: 'Range',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__["default"]],
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["initDefaultProps"])(rangeProps, {
count: 1,
allowCross: true,
pushable: false,
tabIndex: []
}),
data: function data() {
var _this = this;
var count = this.count,
min = this.min,
max = this.max;
var initialValue = Array.apply(undefined, babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(Array(count + 1))).map(function () {
return min;
});
var defaultValue = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'defaultValue') ? this.defaultValue : initialValue;
var value = this.value;
if (value === undefined) {
value = defaultValue;
}
var bounds = value.map(function (v, i) {
return _trimAlignValue({
value: v,
handle: i,
props: _this.$props
});
});
var recent = bounds[0] === max ? 0 : bounds.length - 1;
return {
sHandle: null,
recent: recent,
bounds: bounds
};
},
watch: {
value: {
handler: function handler(val) {
var bounds = this.bounds;
this.setChangeValue(val || bounds);
},
deep: true
},
min: function min() {
var value = this.value;
this.setChangeValue(value || this.bounds);
},
max: function max() {
var value = this.value;
this.setChangeValue(value || this.bounds);
}
},
methods: {
setChangeValue: function setChangeValue(value) {
var _this2 = this;
var bounds = this.bounds;
var nextBounds = value.map(function (v, i) {
return _trimAlignValue({
value: v,
handle: i,
bounds: bounds,
props: _this2.$props
});
});
if (nextBounds.length === bounds.length && nextBounds.every(function (v, i) {
return v === bounds[i];
})) return;
this.setState({ bounds: nextBounds });
if (value.some(function (v) {
return _utils__WEBPACK_IMPORTED_MODULE_9__["isValueOutOfRange"](v, _this2.$props);
})) {
var newValues = value.map(function (v) {
return _utils__WEBPACK_IMPORTED_MODULE_9__["ensureValueInRange"](v, _this2.$props);
});
this.$emit('change', newValues);
}
},
onChange: function onChange(state) {
var isNotControlled = !Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'value');
if (isNotControlled) {
this.setState(state);
} else {
var controlledState = {};
['sHandle', 'recent'].forEach(function (item) {
if (state[item] !== undefined) {
controlledState[item] = state[item];
}
});
if (Object.keys(controlledState).length) {
this.setState(controlledState);
}
}
var data = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.$data, state);
var changedValue = data.bounds;
this.$emit('change', changedValue);
},
onStart: function onStart(position) {
var bounds = this.bounds;
this.$emit('beforeChange', bounds);
var value = this.calcValueByPos(position);
this.startValue = value;
this.startPosition = position;
var closestBound = this.getClosestBound(value);
this.prevMovedHandleIndex = this.getBoundNeedMoving(value, closestBound);
this.setState({
sHandle: this.prevMovedHandleIndex,
recent: this.prevMovedHandleIndex
});
var prevValue = bounds[this.prevMovedHandleIndex];
if (value === prevValue) return;
var nextBounds = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(bounds));
nextBounds[this.prevMovedHandleIndex] = value;
this.onChange({ bounds: nextBounds });
},
onEnd: function onEnd(force) {
var sHandle = this.sHandle;
this.removeDocumentEvents();
if (sHandle !== null || force) {
this.$emit('afterChange', this.bounds);
}
this.setState({ sHandle: null });
},
onMove: function onMove(e, position) {
_utils__WEBPACK_IMPORTED_MODULE_9__["pauseEvent"](e);
var bounds = this.bounds,
sHandle = this.sHandle;
var value = this.calcValueByPos(position);
var oldValue = bounds[sHandle];
if (value === oldValue) return;
this.moveTo(value);
},
onKeyboard: function onKeyboard(e) {
var _$props = this.$props,
reverse = _$props.reverse,
vertical = _$props.vertical;
var valueMutator = _utils__WEBPACK_IMPORTED_MODULE_9__["getKeyboardValueMutator"](e, vertical, reverse);
if (valueMutator) {
_utils__WEBPACK_IMPORTED_MODULE_9__["pauseEvent"](e);
var bounds = this.bounds,
sHandle = this.sHandle;
var oldValue = bounds[sHandle === null ? this.recent : sHandle];
var mutatedValue = valueMutator(oldValue, this.$props);
var value = _trimAlignValue({
value: mutatedValue,
handle: sHandle,
bounds: bounds,
props: this.$props
});
if (value === oldValue) return;
var isFromKeyboardEvent = true;
this.moveTo(value, isFromKeyboardEvent);
}
},
getClosestBound: function getClosestBound(value) {
var bounds = this.bounds;
var closestBound = 0;
for (var i = 1; i < bounds.length - 1; ++i) {
if (value > bounds[i]) {
closestBound = i;
}
}
if (Math.abs(bounds[closestBound + 1] - value) < Math.abs(bounds[closestBound] - value)) {
closestBound += 1;
}
return closestBound;
},
getBoundNeedMoving: function getBoundNeedMoving(value, closestBound) {
var bounds = this.bounds,
recent = this.recent;
var boundNeedMoving = closestBound;
var isAtTheSamePoint = bounds[closestBound + 1] === bounds[closestBound];
if (isAtTheSamePoint && bounds[recent] === bounds[closestBound]) {
boundNeedMoving = recent;
}
if (isAtTheSamePoint && value !== bounds[closestBound + 1]) {
boundNeedMoving = value < bounds[closestBound + 1] ? closestBound : closestBound + 1;
}
return boundNeedMoving;
},
getLowerBound: function getLowerBound() {
return this.bounds[0];
},
getUpperBound: function getUpperBound() {
var bounds = this.bounds;
return bounds[bounds.length - 1];
},
/**
* Returns an array of possible slider points, taking into account both
* `marks` and `step`. The result is cached.
*/
getPoints: function getPoints() {
var marks = this.marks,
step = this.step,
min = this.min,
max = this.max;
var cache = this._getPointsCache;
if (!cache || cache.marks !== marks || cache.step !== step) {
var pointsObject = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, marks);
if (step !== null) {
for (var point = min; point <= max; point += step) {
pointsObject[point] = point;
}
}
var points = Object.keys(pointsObject).map(parseFloat);
points.sort(function (a, b) {
return a - b;
});
this._getPointsCache = { marks: marks, step: step, points: points };
}
return this._getPointsCache.points;
},
moveTo: function moveTo(value, isFromKeyboardEvent) {
var _this3 = this;
var nextBounds = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(this.bounds));
var sHandle = this.sHandle,
recent = this.recent;
var handle = sHandle === null ? recent : sHandle;
nextBounds[handle] = value;
var nextHandle = handle;
if (this.$props.pushable !== false) {
this.pushSurroundingHandles(nextBounds, nextHandle);
} else if (this.$props.allowCross) {
nextBounds.sort(function (a, b) {
return a - b;
});
nextHandle = nextBounds.indexOf(value);
}
this.onChange({
recent: nextHandle,
sHandle: nextHandle,
bounds: nextBounds
});
if (isFromKeyboardEvent) {
// known problem: because setState is async,
// so trigger focus will invoke handler's onEnd and another handler's onStart too early,
// cause onBeforeChange and onAfterChange receive wrong value.
// here use setState callback to hackbut not elegant
this.$emit('afterChange', nextBounds);
this.setState({}, function () {
_this3.handlesRefs[nextHandle].focus();
});
this.onEnd();
}
},
pushSurroundingHandles: function pushSurroundingHandles(bounds, handle) {
var value = bounds[handle];
var threshold = this.pushable;
threshold = Number(threshold);
var direction = 0;
if (bounds[handle + 1] - value < threshold) {
direction = +1; // push to right
}
if (value - bounds[handle - 1] < threshold) {
direction = -1; // push to left
}
if (direction === 0) {
return;
}
var nextHandle = handle + direction;
var diffToNext = direction * (bounds[nextHandle] - value);
if (!this.pushHandle(bounds, nextHandle, direction, threshold - diffToNext)) {
// revert to original value if pushing is impossible
bounds[handle] = bounds[nextHandle] - direction * threshold;
}
},
pushHandle: function pushHandle(bounds, handle, direction, amount) {
var originalValue = bounds[handle];
var currentValue = bounds[handle];
while (direction * (currentValue - originalValue) < amount) {
if (!this.pushHandleOnePoint(bounds, handle, direction)) {
// can't push handle enough to create the needed `amount` gap, so we
// revert its position to the original value
bounds[handle] = originalValue;
return false;
}
currentValue = bounds[handle];
}
// the handle was pushed enough to create the needed `amount` gap
return true;
},
pushHandleOnePoint: function pushHandleOnePoint(bounds, handle, direction) {
var points = this.getPoints();
var pointIndex = points.indexOf(bounds[handle]);
var nextPointIndex = pointIndex + direction;
if (nextPointIndex >= points.length || nextPointIndex < 0) {
// reached the minimum or maximum available point, can't push anymore
return false;
}
var nextHandle = handle + direction;
var nextValue = points[nextPointIndex];
var threshold = this.pushable;
var diffToNext = direction * (bounds[nextHandle] - nextValue);
if (!this.pushHandle(bounds, nextHandle, direction, threshold - diffToNext)) {
// couldn't push next handle, so we won't push this one either
return false;
}
// push the handle
bounds[handle] = nextValue;
return true;
},
trimAlignValue: function trimAlignValue(value) {
var sHandle = this.sHandle,
bounds = this.bounds;
return _trimAlignValue({
value: value,
handle: sHandle,
bounds: bounds,
props: this.$props
});
},
ensureValueNotConflict: function ensureValueNotConflict(handle, val, _ref2) {
var allowCross = _ref2.allowCross,
thershold = _ref2.pushable;
var state = this.$data || {};
var bounds = state.bounds;
handle = handle === undefined ? state.sHandle : handle;
thershold = Number(thershold);
/* eslint-disable eqeqeq */
if (!allowCross && handle != null && bounds !== undefined) {
if (handle > 0 && val <= bounds[handle - 1] + thershold) {
return bounds[handle - 1] + thershold;
}
if (handle < bounds.length - 1 && val >= bounds[handle + 1] - thershold) {
return bounds[handle + 1] - thershold;
}
}
/* eslint-enable eqeqeq */
return val;
},
getTrack: function getTrack(_ref3) {
var bounds = _ref3.bounds,
prefixCls = _ref3.prefixCls,
reverse = _ref3.reverse,
vertical = _ref3.vertical,
included = _ref3.included,
offsets = _ref3.offsets,
trackStyle = _ref3.trackStyle;
var h = this.$createElement;
return bounds.slice(0, -1).map(function (_, index) {
var _classNames;
var i = index + 1;
var trackClassName = classnames__WEBPACK_IMPORTED_MODULE_3___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-track', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-track-' + i, true), _classNames));
return h(_common_Track__WEBPACK_IMPORTED_MODULE_7__["default"], {
'class': trackClassName,
attrs: { vertical: vertical,
reverse: reverse,
included: included,
offset: offsets[i - 1],
length: offsets[i] - offsets[i - 1]
},
style: trackStyle[index],
key: i
});
});
},
renderSlider: function renderSlider() {
var _this4 = this;
var sHandle = this.sHandle,
bounds = this.bounds,
prefixCls = this.prefixCls,
vertical = this.vertical,
included = this.included,
disabled = this.disabled,
min = this.min,
max = this.max,
reverse = this.reverse,
handle = this.handle,
defaultHandle = this.defaultHandle,
trackStyle = this.trackStyle,
handleStyle = this.handleStyle,
tabIndex = this.tabIndex;
var handleGenerator = handle || defaultHandle;
var offsets = bounds.map(function (v) {
return _this4.calcOffset(v);
});
var handleClassName = prefixCls + '-handle';
var handles = bounds.map(function (v, i) {
var _classNames2;
var _tabIndex = tabIndex[i] || 0;
if (disabled || tabIndex[i] === null) {
_tabIndex = null;
}
return handleGenerator({
className: classnames__WEBPACK_IMPORTED_MODULE_3___default()((_classNames2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, handleClassName, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, handleClassName + '-' + (i + 1), true), _classNames2)),
prefixCls: prefixCls,
vertical: vertical,
offset: offsets[i],
value: v,
dragging: sHandle === i,
index: i,
tabIndex: _tabIndex,
min: min,
max: max,
reverse: reverse,
disabled: disabled,
style: handleStyle[i],
directives: [{
name: 'ant-ref',
value: function value(h) {
return _this4.saveHandle(i, h);
}
}],
on: {
focus: _this4.onFocus,
blur: _this4.onBlur
}
});
});
return {
tracks: this.getTrack({
bounds: bounds,
prefixCls: prefixCls,
reverse: reverse,
vertical: vertical,
included: included,
offsets: offsets,
trackStyle: trackStyle
}),
handles: handles
};
}
}
};
/* harmony default export */ __webpack_exports__["default"] = (Object(_common_createSlider__WEBPACK_IMPORTED_MODULE_8__["default"])(Range));
/***/ }),
/***/ "./components/vc-slider/src/Slider.jsx":
/*!*********************************************!*\
!*** ./components/vc-slider/src/Slider.jsx ***!
\*********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/warning */ "./components/_util/warning.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _common_Track__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./common/Track */ "./components/vc-slider/src/common/Track.jsx");
/* harmony import */ var _common_createSlider__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./common/createSlider */ "./components/vc-slider/src/common/createSlider.jsx");
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils */ "./components/vc-slider/src/utils.js");
var Slider = {
name: 'Slider',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
props: {
defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
reverse: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
min: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
max: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number
},
data: function data() {
var defaultValue = this.defaultValue !== undefined ? this.defaultValue : this.min;
var value = this.value !== undefined ? this.value : defaultValue;
Object(_util_warning__WEBPACK_IMPORTED_MODULE_2__["default"])(!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["hasProp"])(this, 'minimumTrackStyle'), 'Slider', 'minimumTrackStyle will be deprecate, please use trackStyle instead.');
Object(_util_warning__WEBPACK_IMPORTED_MODULE_2__["default"])(!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["hasProp"])(this, 'maximumTrackStyle'), 'Slider', 'maximumTrackStyle will be deprecate, please use railStyle instead.');
return {
sValue: this.trimAlignValue(value),
dragging: false
};
},
watch: {
value: {
handler: function handler(val) {
this.setChangeValue(val);
},
deep: true
},
min: function min() {
var sValue = this.sValue;
this.setChangeValue(sValue);
},
max: function max() {
var sValue = this.sValue;
this.setChangeValue(sValue);
}
},
methods: {
setChangeValue: function setChangeValue(value) {
var newValue = value !== undefined ? value : this.sValue;
var nextValue = this.trimAlignValue(newValue, this.$props);
if (nextValue === this.sValue) return;
this.setState({ sValue: nextValue });
if (_utils__WEBPACK_IMPORTED_MODULE_7__["isValueOutOfRange"](newValue, this.$props)) {
this.$emit('change', nextValue);
}
},
onChange: function onChange(state) {
var isNotControlled = !Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["hasProp"])(this, 'value');
var nextState = state.sValue > this.max ? babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, state, { sValue: this.max }) : state;
if (isNotControlled) {
this.setState(nextState);
}
var changedValue = nextState.sValue;
this.$emit('change', changedValue);
},
onStart: function onStart(position) {
this.setState({ dragging: true });
var sValue = this.sValue;
this.$emit('beforeChange', sValue);
var value = this.calcValueByPos(position);
this.startValue = value;
this.startPosition = position;
if (value === sValue) return;
this.prevMovedHandleIndex = 0;
this.onChange({ sValue: value });
},
onEnd: function onEnd(force) {
var dragging = this.dragging;
this.removeDocumentEvents();
if (dragging || force) {
this.$emit('afterChange', this.sValue);
}
this.setState({ dragging: false });
},
onMove: function onMove(e, position) {
_utils__WEBPACK_IMPORTED_MODULE_7__["pauseEvent"](e);
var sValue = this.sValue;
var value = this.calcValueByPos(position);
if (value === sValue) return;
this.onChange({ sValue: value });
},
onKeyboard: function onKeyboard(e) {
var _$props = this.$props,
reverse = _$props.reverse,
vertical = _$props.vertical;
var valueMutator = _utils__WEBPACK_IMPORTED_MODULE_7__["getKeyboardValueMutator"](e, vertical, reverse);
if (valueMutator) {
_utils__WEBPACK_IMPORTED_MODULE_7__["pauseEvent"](e);
var sValue = this.sValue;
var mutatedValue = valueMutator(sValue, this.$props);
var value = this.trimAlignValue(mutatedValue);
if (value === sValue) return;
this.onChange({ sValue: value });
this.$emit('afterChange', value);
this.onEnd();
}
},
getLowerBound: function getLowerBound() {
return this.min;
},
getUpperBound: function getUpperBound() {
return this.sValue;
},
trimAlignValue: function trimAlignValue(v) {
var nextProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
if (v === null) {
return null;
}
var mergedProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.$props, nextProps);
var val = _utils__WEBPACK_IMPORTED_MODULE_7__["ensureValueInRange"](v, mergedProps);
return _utils__WEBPACK_IMPORTED_MODULE_7__["ensureValuePrecision"](val, mergedProps);
},
getTrack: function getTrack(_ref) {
var prefixCls = _ref.prefixCls,
reverse = _ref.reverse,
vertical = _ref.vertical,
included = _ref.included,
offset = _ref.offset,
minimumTrackStyle = _ref.minimumTrackStyle,
_trackStyle = _ref._trackStyle;
var h = this.$createElement;
return h(_common_Track__WEBPACK_IMPORTED_MODULE_5__["default"], {
'class': prefixCls + '-track',
attrs: { vertical: vertical,
included: included,
offset: 0,
reverse: reverse,
length: offset
},
style: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, minimumTrackStyle, _trackStyle)
});
},
renderSlider: function renderSlider() {
var _this = this;
var prefixCls = this.prefixCls,
vertical = this.vertical,
included = this.included,
disabled = this.disabled,
minimumTrackStyle = this.minimumTrackStyle,
trackStyle = this.trackStyle,
handleStyle = this.handleStyle,
tabIndex = this.tabIndex,
min = this.min,
max = this.max,
reverse = this.reverse,
handle = this.handle,
defaultHandle = this.defaultHandle;
var handleGenerator = handle || defaultHandle;
var sValue = this.sValue,
dragging = this.dragging;
var offset = this.calcOffset(sValue);
var handles = handleGenerator({
className: prefixCls + '-handle',
prefixCls: prefixCls,
vertical: vertical,
offset: offset,
value: sValue,
dragging: dragging,
disabled: disabled,
min: min,
max: max,
reverse: reverse,
index: 0,
tabIndex: tabIndex,
style: handleStyle[0] || handleStyle,
directives: [{
name: 'ant-ref',
value: function value(h) {
return _this.saveHandle(0, h);
}
}],
on: {
focus: this.onFocus,
blur: this.onBlur
}
});
var _trackStyle = trackStyle[0] || trackStyle;
return {
tracks: this.getTrack({
prefixCls: prefixCls,
reverse: reverse,
vertical: vertical,
included: included,
offset: offset,
minimumTrackStyle: minimumTrackStyle,
_trackStyle: _trackStyle
}),
handles: handles
};
}
}
};
/* harmony default export */ __webpack_exports__["default"] = (Object(_common_createSlider__WEBPACK_IMPORTED_MODULE_6__["default"])(Slider));
/***/ }),
/***/ "./components/vc-slider/src/common/Marks.jsx":
/*!***************************************************!*\
!*** ./components/vc-slider/src/common/Marks.jsx ***!
\***************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../_util/props-util */ "./components/_util/props-util.js");
var Marks = {
functional: true,
render: function render(h, context) {
var _context$props = context.props,
className = _context$props.className,
vertical = _context$props.vertical,
reverse = _context$props.reverse,
marks = _context$props.marks,
included = _context$props.included,
upperBound = _context$props.upperBound,
lowerBound = _context$props.lowerBound,
max = _context$props.max,
min = _context$props.min;
var clickLabel = context.listeners.clickLabel;
var marksKeys = Object.keys(marks);
var range = max - min;
var elements = marksKeys.map(parseFloat).sort(function (a, b) {
return a - b;
}).map(function (point) {
var _classNames;
var markPoint = typeof marks[point] === 'function' ? marks[point](h) : marks[point];
var markPointIsObject = (typeof markPoint === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2___default()(markPoint)) === 'object' && !Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["isValidElement"])(markPoint);
var markLabel = markPointIsObject ? markPoint.label : markPoint;
if (!markLabel && markLabel !== 0) {
return null;
}
var isActive = !included && point === upperBound || included && point <= upperBound && point >= lowerBound;
var markClassName = classnames__WEBPACK_IMPORTED_MODULE_3___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, className + '-text', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, className + '-text-active', isActive), _classNames));
var bottomStyle = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({
marginBottom: '-50%'
}, reverse ? 'top' : 'bottom', (point - min) / range * 100 + '%');
var leftStyle = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({
transform: 'translateX(-50%)',
msTransform: 'translateX(-50%)'
}, reverse ? 'right' : 'left', reverse ? (point - min / 4) / range * 100 + '%' : (point - min) / range * 100 + '%');
var style = vertical ? bottomStyle : leftStyle;
var markStyle = markPointIsObject ? babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, style, markPoint.style) : style;
return h(
'span',
{
'class': markClassName,
style: markStyle,
key: point,
on: {
'mousedown': function mousedown(e) {
return clickLabel(e, point);
},
'touchstart': function touchstart(e) {
return clickLabel(e, point);
}
}
},
[markLabel]
);
});
return h(
'div',
{ 'class': className },
[elements]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (Marks);
/***/ }),
/***/ "./components/vc-slider/src/common/Steps.jsx":
/*!***************************************************!*\
!*** ./components/vc-slider/src/common/Steps.jsx ***!
\***************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../_util/warning */ "./components/_util/warning.js");
var calcPoints = function calcPoints(vertical, marks, dots, step, min, max) {
Object(_util_warning__WEBPACK_IMPORTED_MODULE_3__["default"])(dots ? step > 0 : true, 'Slider', '`Slider[step]` should be a positive number in order to make Slider[dots] work.');
var points = Object.keys(marks).map(parseFloat).sort(function (a, b) {
return a - b;
});
if (dots && step) {
for (var i = min; i <= max; i += step) {
if (points.indexOf(i) === -1) {
points.push(i);
}
}
}
return points;
};
var Steps = {
functional: true,
render: function render(h, context) {
var _context$props = context.props,
prefixCls = _context$props.prefixCls,
vertical = _context$props.vertical,
reverse = _context$props.reverse,
marks = _context$props.marks,
dots = _context$props.dots,
step = _context$props.step,
included = _context$props.included,
lowerBound = _context$props.lowerBound,
upperBound = _context$props.upperBound,
max = _context$props.max,
min = _context$props.min,
dotStyle = _context$props.dotStyle,
activeDotStyle = _context$props.activeDotStyle;
var range = max - min;
var elements = calcPoints(vertical, marks, dots, step, min, max).map(function (point) {
var _classNames;
var offset = Math.abs(point - min) / range * 100 + '%';
var isActived = !included && point === upperBound || included && point <= upperBound && point >= lowerBound;
var style = vertical ? babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, dotStyle, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, reverse ? 'top' : 'bottom', offset)) : babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, dotStyle, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, reverse ? 'right' : 'left', offset));
if (isActived) {
style = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, style, activeDotStyle);
}
var pointClassName = classnames__WEBPACK_IMPORTED_MODULE_2___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-dot', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-dot-active', isActived), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-dot-reverse', reverse), _classNames));
return h('span', { 'class': pointClassName, style: style, key: point });
});
return h(
'div',
{ 'class': prefixCls + '-step' },
[elements]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (Steps);
/***/ }),
/***/ "./components/vc-slider/src/common/Track.jsx":
/*!***************************************************!*\
!*** ./components/vc-slider/src/common/Track.jsx ***!
\***************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* eslint-disable */
var Track = {
functional: true,
render: function render(h, context) {
var _ref, _ref2;
var _context$props = context.props,
included = _context$props.included,
vertical = _context$props.vertical,
offset = _context$props.offset,
length = _context$props.length,
reverse = _context$props.reverse;
var _context$data = context.data,
style = _context$data.style,
className = _context$data['class'];
var positonStyle = vertical ? (_ref = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, reverse ? 'top' : 'bottom', offset + '%'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, reverse ? 'bottom' : 'top', 'auto'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, 'height', length + '%'), _ref) : (_ref2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref2, reverse ? 'right' : 'left', offset + '%'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref2, reverse ? 'left' : 'right', 'auto'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref2, 'width', length + '%'), _ref2);
var elStyle = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, style, positonStyle);
return included ? h('div', { 'class': className, style: elStyle }) : null;
}
};
/* harmony default export */ __webpack_exports__["default"] = (Track);
/***/ }),
/***/ "./components/vc-slider/src/common/createSlider.jsx":
/*!**********************************************************!*\
!*** ./components/vc-slider/src/common/createSlider.jsx ***!
\**********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return createSlider; });
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../vc-util/Dom/addEventListener */ "./components/vc-util/Dom/addEventListener.js");
/* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../_util/warning */ "./components/_util/warning.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _Steps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Steps */ "./components/vc-slider/src/common/Steps.jsx");
/* harmony import */ var _Marks__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Marks */ "./components/vc-slider/src/common/Marks.jsx");
/* harmony import */ var _Handle__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Handle */ "./components/vc-slider/src/Handle.jsx");
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils */ "./components/vc-slider/src/utils.js");
function noop() {}
function createSlider(Component) {
// const displayName = `ComponentEnhancer(${Component.displayName})`
var propTypes = {
min: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
max: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
step: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
marks: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
included: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
handle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func,
dots: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
vertical: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
reverse: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
minimumTrackStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object, // just for compatibility, will be deperecate
maximumTrackStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object, // just for compatibility, will be deperecate
handleStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object)]),
trackStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object)]),
railStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
dotStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
activeDotStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool
};
return {
name: 'createSlider',
mixins: [Component],
model: {
prop: 'value',
event: 'change'
},
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["initDefaultProps"])(propTypes, {
prefixCls: 'rc-slider',
min: 0,
max: 100,
step: 1,
marks: {},
included: true,
disabled: false,
dots: false,
vertical: false,
reverse: false,
trackStyle: [{}],
handleStyle: [{}],
railStyle: {},
dotStyle: {},
activeDotStyle: {}
}),
data: function data() {
var step = this.step,
max = this.max,
min = this.min;
var isPointDiffEven = isFinite(max - min) ? (max - min) % step === 0 : true; // eslint-disable-line
Object(_util_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(step && Math.floor(step) === step ? isPointDiffEven : true, 'Slider', 'Slider[max] - Slider[min] (%s) should be a multiple of Slider[step] (%s)', max - min, step);
this.handlesRefs = {};
return {};
},
mounted: function mounted() {
var _this = this;
this.$nextTick(function () {
// Snapshot testing cannot handle refs, so be sure to null-check this.
_this.document = _this.$refs.sliderRef && _this.$refs.sliderRef.ownerDocument;
// this.setHandleRefs()
var autoFocus = _this.autoFocus,
disabled = _this.disabled;
if (autoFocus && !disabled) {
_this.focus();
}
});
},
beforeDestroy: function beforeDestroy() {
var _this2 = this;
this.$nextTick(function () {
// if (super.componentWillUnmount) super.componentWillUnmount()
_this2.removeDocumentEvents();
});
},
methods: {
defaultHandle: function defaultHandle(_ref) {
var index = _ref.index,
directives = _ref.directives,
className = _ref.className,
style = _ref.style,
on = _ref.on,
restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(_ref, ['index', 'directives', 'className', 'style', 'on']);
var h = this.$createElement;
delete restProps.dragging;
if (restProps.value === null) {
return null;
}
var handleProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, restProps),
'class': className,
style: style,
key: index,
directives: directives,
on: on
};
return h(_Handle__WEBPACK_IMPORTED_MODULE_10__["default"], handleProps);
},
onMouseDown: function onMouseDown(e) {
if (e.button !== 0) {
return;
}
var isVertical = this.vertical;
var position = _utils__WEBPACK_IMPORTED_MODULE_11__["getMousePosition"](isVertical, e);
if (!_utils__WEBPACK_IMPORTED_MODULE_11__["isEventFromHandle"](e, this.handlesRefs)) {
this.dragOffset = 0;
} else {
var handlePosition = _utils__WEBPACK_IMPORTED_MODULE_11__["getHandleCenterPosition"](isVertical, e.target);
this.dragOffset = position - handlePosition;
position = handlePosition;
}
this.removeDocumentEvents();
this.onStart(position);
this.addDocumentMouseEvents();
_utils__WEBPACK_IMPORTED_MODULE_11__["pauseEvent"](e);
},
onTouchStart: function onTouchStart(e) {
if (_utils__WEBPACK_IMPORTED_MODULE_11__["isNotTouchEvent"](e)) return;
var isVertical = this.vertical;
var position = _utils__WEBPACK_IMPORTED_MODULE_11__["getTouchPosition"](isVertical, e);
if (!_utils__WEBPACK_IMPORTED_MODULE_11__["isEventFromHandle"](e, this.handlesRefs)) {
this.dragOffset = 0;
} else {
var handlePosition = _utils__WEBPACK_IMPORTED_MODULE_11__["getHandleCenterPosition"](isVertical, e.target);
this.dragOffset = position - handlePosition;
position = handlePosition;
}
this.onStart(position);
this.addDocumentTouchEvents();
_utils__WEBPACK_IMPORTED_MODULE_11__["pauseEvent"](e);
},
onFocus: function onFocus(e) {
var vertical = this.vertical;
if (_utils__WEBPACK_IMPORTED_MODULE_11__["isEventFromHandle"](e, this.handlesRefs)) {
var handlePosition = _utils__WEBPACK_IMPORTED_MODULE_11__["getHandleCenterPosition"](vertical, e.target);
this.dragOffset = 0;
this.onStart(handlePosition);
_utils__WEBPACK_IMPORTED_MODULE_11__["pauseEvent"](e);
this.$emit('focus', e);
}
},
onBlur: function onBlur(e) {
this.onEnd();
this.$emit('blur', e);
},
onMouseUp: function onMouseUp() {
if (this.handlesRefs[this.prevMovedHandleIndex]) {
this.handlesRefs[this.prevMovedHandleIndex].clickFocus();
}
},
onMouseMove: function onMouseMove(e) {
if (!this.$refs.sliderRef) {
this.onEnd();
return;
}
var position = _utils__WEBPACK_IMPORTED_MODULE_11__["getMousePosition"](this.vertical, e);
this.onMove(e, position - this.dragOffset);
},
onTouchMove: function onTouchMove(e) {
if (_utils__WEBPACK_IMPORTED_MODULE_11__["isNotTouchEvent"](e) || !this.$refs.sliderRef) {
this.onEnd();
return;
}
var position = _utils__WEBPACK_IMPORTED_MODULE_11__["getTouchPosition"](this.vertical, e);
this.onMove(e, position - this.dragOffset);
},
onKeyDown: function onKeyDown(e) {
if (this.$refs.sliderRef && _utils__WEBPACK_IMPORTED_MODULE_11__["isEventFromHandle"](e, this.handlesRefs)) {
this.onKeyboard(e);
}
},
onClickMarkLabel: function onClickMarkLabel(e, value) {
var _this3 = this;
e.stopPropagation();
this.onChange({ sValue: value });
this.setState({ sValue: value }, function () {
return _this3.onEnd(true);
});
},
getSliderStart: function getSliderStart() {
var slider = this.$refs.sliderRef;
var vertical = this.vertical,
reverse = this.reverse;
var rect = slider.getBoundingClientRect();
if (vertical) {
return reverse ? rect.bottom : rect.top;
}
return window.pageXOffset + (reverse ? rect.right : rect.left);
},
getSliderLength: function getSliderLength() {
var slider = this.$refs.sliderRef;
if (!slider) {
return 0;
}
var coords = slider.getBoundingClientRect();
return this.vertical ? coords.height : coords.width;
},
addDocumentTouchEvents: function addDocumentTouchEvents() {
// just work for Chrome iOS Safari and Android Browser
this.onTouchMoveListener = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_5__["default"])(this.document, 'touchmove', this.onTouchMove);
this.onTouchUpListener = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_5__["default"])(this.document, 'touchend', this.onEnd);
},
addDocumentMouseEvents: function addDocumentMouseEvents() {
this.onMouseMoveListener = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_5__["default"])(this.document, 'mousemove', this.onMouseMove);
this.onMouseUpListener = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_5__["default"])(this.document, 'mouseup', this.onEnd);
},
removeDocumentEvents: function removeDocumentEvents() {
/* eslint-disable no-unused-expressions */
this.onTouchMoveListener && this.onTouchMoveListener.remove();
this.onTouchUpListener && this.onTouchUpListener.remove();
this.onMouseMoveListener && this.onMouseMoveListener.remove();
this.onMouseUpListener && this.onMouseUpListener.remove();
/* eslint-enable no-unused-expressions */
},
focus: function focus() {
if (!this.disabled) {
this.handlesRefs[0].focus();
}
},
blur: function blur() {
var _this4 = this;
if (!this.disabled) {
Object.keys(this.handlesRefs).forEach(function (key) {
if (_this4.handlesRefs[key] && _this4.handlesRefs[key].blur) {
_this4.handlesRefs[key].blur();
}
});
}
},
calcValue: function calcValue(offset) {
var vertical = this.vertical,
min = this.min,
max = this.max;
var ratio = Math.abs(Math.max(offset, 0) / this.getSliderLength());
var value = vertical ? (1 - ratio) * (max - min) + min : ratio * (max - min) + min;
return value;
},
calcValueByPos: function calcValueByPos(position) {
var sign = this.reverse ? -1 : +1;
var pixelOffset = sign * (position - this.getSliderStart());
var nextValue = this.trimAlignValue(this.calcValue(pixelOffset));
return nextValue;
},
calcOffset: function calcOffset(value) {
var min = this.min,
max = this.max;
var ratio = (value - min) / (max - min);
return ratio * 100;
},
saveHandle: function saveHandle(index, handle) {
this.handlesRefs[index] = handle;
}
},
render: function render(h) {
var _classNames;
var prefixCls = this.prefixCls,
marks = this.marks,
dots = this.dots,
step = this.step,
included = this.included,
disabled = this.disabled,
vertical = this.vertical,
reverse = this.reverse,
min = this.min,
max = this.max,
maximumTrackStyle = this.maximumTrackStyle,
railStyle = this.railStyle,
dotStyle = this.dotStyle,
activeDotStyle = this.activeDotStyle;
var _renderSlider = this.renderSlider(h),
tracks = _renderSlider.tracks,
handles = _renderSlider.handles;
var sliderClassName = classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-with-marks', Object.keys(marks).length), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-disabled', disabled), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-vertical', vertical), _classNames));
var markProps = {
props: {
vertical: vertical,
marks: marks,
included: included,
lowerBound: this.getLowerBound(),
upperBound: this.getUpperBound(),
max: max,
min: min,
reverse: reverse,
className: prefixCls + '-mark'
},
on: {
clickLabel: disabled ? noop : this.onClickMarkLabel
}
};
return h(
'div',
{
ref: 'sliderRef',
attrs: { tabIndex: '-1'
},
'class': sliderClassName,
on: {
'touchstart': disabled ? noop : this.onTouchStart,
'mousedown': disabled ? noop : this.onMouseDown,
'mouseup': disabled ? noop : this.onMouseUp,
'keydown': disabled ? noop : this.onKeyDown,
'focus': disabled ? noop : this.onFocus,
'blur': disabled ? noop : this.onBlur
}
},
[h('div', {
'class': prefixCls + '-rail',
style: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, maximumTrackStyle, railStyle)
}), tracks, h(_Steps__WEBPACK_IMPORTED_MODULE_8__["default"], {
attrs: {
prefixCls: prefixCls,
vertical: vertical,
reverse: reverse,
marks: marks,
dots: dots,
step: step,
included: included,
lowerBound: this.getLowerBound(),
upperBound: this.getUpperBound(),
max: max,
min: min,
dotStyle: dotStyle,
activeDotStyle: activeDotStyle
}
}), handles, h(_Marks__WEBPACK_IMPORTED_MODULE_9__["default"], markProps), this.$slots['default']]
);
}
};
}
/***/ }),
/***/ "./components/vc-slider/src/utils.js":
/*!*******************************************!*\
!*** ./components/vc-slider/src/utils.js ***!
\*******************************************/
/*! exports provided: isEventFromHandle, isValueOutOfRange, isNotTouchEvent, getClosestPoint, getPrecision, getMousePosition, getTouchPosition, getHandleCenterPosition, ensureValueInRange, ensureValuePrecision, pauseEvent, calculateNextValue, getKeyboardValueMutator */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isEventFromHandle", function() { return isEventFromHandle; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isValueOutOfRange", function() { return isValueOutOfRange; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isNotTouchEvent", function() { return isNotTouchEvent; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getClosestPoint", function() { return getClosestPoint; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPrecision", function() { return getPrecision; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMousePosition", function() { return getMousePosition; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTouchPosition", function() { return getTouchPosition; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getHandleCenterPosition", function() { return getHandleCenterPosition; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ensureValueInRange", function() { return ensureValueInRange; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ensureValuePrecision", function() { return ensureValuePrecision; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pauseEvent", function() { return pauseEvent; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calculateNextValue", function() { return calculateNextValue; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getKeyboardValueMutator", function() { return getKeyboardValueMutator; });
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/KeyCode */ "./components/_util/KeyCode.js");
function isEventFromHandle(e, handles) {
try {
return Object.keys(handles).some(function (key) {
return e.target === handles[key].$el || e.target === handles[key];
});
} catch (error) {
return false;
}
}
function isValueOutOfRange(value, _ref) {
var min = _ref.min,
max = _ref.max;
return value < min || value > max;
}
function isNotTouchEvent(e) {
return e.touches.length > 1 || e.type.toLowerCase() === 'touchend' && e.touches.length > 0;
}
function getClosestPoint(val, _ref2) {
var marks = _ref2.marks,
step = _ref2.step,
min = _ref2.min,
max = _ref2.max;
var points = Object.keys(marks).map(parseFloat);
if (step !== null) {
var base = Math.pow(10, getPrecision(step));
var maxSteps = Math.floor((max * base - min * base) / (step * base));
var steps = Math.min((val - min) / step, maxSteps);
var closestStep = Math.round(steps) * step + min;
points.push(closestStep);
}
var diffs = points.map(function (point) {
return Math.abs(val - point);
});
return points[diffs.indexOf(Math.min.apply(Math, babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(diffs)))];
}
function getPrecision(step) {
var stepString = step.toString();
var precision = 0;
if (stepString.indexOf('.') >= 0) {
precision = stepString.length - stepString.indexOf('.') - 1;
}
return precision;
}
function getMousePosition(vertical, e) {
var zoom = 1;
if (window.visualViewport) {
zoom = +(window.visualViewport.width / document.body.getBoundingClientRect().width).toFixed(2);
}
return (vertical ? e.clientY : e.pageX) / zoom;
}
function getTouchPosition(vertical, e) {
var zoom = 1;
if (window.visualViewport) {
zoom = +(window.visualViewport.width / document.body.getBoundingClientRect().width).toFixed(2);
}
return (vertical ? e.touches[0].clientY : e.touches[0].pageX) / zoom;
}
function getHandleCenterPosition(vertical, handle) {
var coords = handle.getBoundingClientRect();
return vertical ? coords.top + coords.height * 0.5 : window.pageXOffset + coords.left + coords.width * 0.5;
}
function ensureValueInRange(val, _ref3) {
var max = _ref3.max,
min = _ref3.min;
if (val <= min) {
return min;
}
if (val >= max) {
return max;
}
return val;
}
function ensureValuePrecision(val, props) {
var step = props.step;
var closestPoint = isFinite(getClosestPoint(val, props)) ? getClosestPoint(val, props) : 0; // eslint-disable-line
return step === null ? closestPoint : parseFloat(closestPoint.toFixed(getPrecision(step)));
}
function pauseEvent(e) {
e.stopPropagation();
e.preventDefault();
}
function calculateNextValue(func, value, props) {
var operations = {
increase: function increase(a, b) {
return a + b;
},
decrease: function decrease(a, b) {
return a - b;
}
};
var indexToGet = operations[func](Object.keys(props.marks).indexOf(JSON.stringify(value)), 1);
var keyToGet = Object.keys(props.marks)[indexToGet];
if (props.step) {
return operations[func](value, props.step);
} else if (!!Object.keys(props.marks).length && !!props.marks[keyToGet]) {
return props.marks[keyToGet];
}
return value;
}
function getKeyboardValueMutator(e, vertical, reverse) {
var increase = 'increase';
var decrease = 'decrease';
var method = increase;
switch (e.keyCode) {
case _util_KeyCode__WEBPACK_IMPORTED_MODULE_1__["default"].UP:
method = vertical && reverse ? decrease : increase;
break;
case _util_KeyCode__WEBPACK_IMPORTED_MODULE_1__["default"].RIGHT:
method = !vertical && reverse ? decrease : increase;
break;
case _util_KeyCode__WEBPACK_IMPORTED_MODULE_1__["default"].DOWN:
method = vertical && reverse ? increase : decrease;
break;
case _util_KeyCode__WEBPACK_IMPORTED_MODULE_1__["default"].LEFT:
method = !vertical && reverse ? increase : decrease;
break;
case _util_KeyCode__WEBPACK_IMPORTED_MODULE_1__["default"].END:
return function (value, props) {
return props.max;
};
case _util_KeyCode__WEBPACK_IMPORTED_MODULE_1__["default"].HOME:
return function (value, props) {
return props.min;
};
case _util_KeyCode__WEBPACK_IMPORTED_MODULE_1__["default"].PAGE_UP:
return function (value, props) {
return value + props.step * 2;
};
case _util_KeyCode__WEBPACK_IMPORTED_MODULE_1__["default"].PAGE_DOWN:
return function (value, props) {
return value - props.step * 2;
};
default:
return undefined;
}
return function (value, props) {
return calculateNextValue(method, value, props);
};
}
/***/ }),
/***/ "./components/vc-steps/Step.jsx":
/*!**************************************!*\
!*** ./components/vc-steps/Step.jsx ***!
\**************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
function isString(str) {
return typeof str === 'string';
}
function noop() {}
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'Step',
props: {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
wrapperStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
itemWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
active: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
status: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
iconPrefix: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
icon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
adjustMarginRight: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
stepNumber: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
stepIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
description: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
title: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
subTitle: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
progressDot: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func]),
tailContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
icons: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].shape({
finish: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
error: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any
}).loose
},
methods: {
onClick: function onClick() {
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
this.$emit.apply(this, ['click'].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_2___default()(args)));
this.$emit('stepClick', this.stepIndex);
},
renderIconNode: function renderIconNode() {
var _iconClassName;
var h = this.$createElement;
var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this),
prefixCls = _getOptionProps.prefixCls,
stepNumber = _getOptionProps.stepNumber,
status = _getOptionProps.status,
iconPrefix = _getOptionProps.iconPrefix,
icons = _getOptionProps.icons;
var progressDot = this.progressDot;
if (progressDot === undefined) {
progressDot = this.$scopedSlots.progressDot;
}
var icon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'icon');
var title = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'title');
var description = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'description');
var iconNode = void 0;
var iconClassName = (_iconClassName = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_iconClassName, prefixCls + '-icon', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_iconClassName, iconPrefix + 'icon', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_iconClassName, iconPrefix + 'icon-' + icon, icon && isString(icon)), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_iconClassName, iconPrefix + 'icon-check', !icon && status === 'finish' && icons && !icons.finish), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_iconClassName, iconPrefix + 'icon-close', !icon && status === 'error' && icons && !icons.error), _iconClassName);
var iconDot = h('span', { 'class': prefixCls + '-icon-dot' });
// `progressDot` enjoy the highest priority
if (progressDot) {
if (typeof progressDot === 'function') {
iconNode = h(
'span',
{ 'class': prefixCls + '-icon' },
[progressDot({ index: stepNumber - 1, status: status, title: title, description: description, prefixCls: prefixCls })]
);
} else {
iconNode = h(
'span',
{ 'class': prefixCls + '-icon' },
[iconDot]
);
}
} else if (icon && !isString(icon)) {
iconNode = h(
'span',
{ 'class': prefixCls + '-icon' },
[icon]
);
} else if (icons && icons.finish && status === 'finish') {
iconNode = h(
'span',
{ 'class': prefixCls + '-icon' },
[icons.finish]
);
} else if (icons && icons.error && status === 'error') {
iconNode = h(
'span',
{ 'class': prefixCls + '-icon' },
[icons.error]
);
} else if (icon || status === 'finish' || status === 'error') {
iconNode = h('span', { 'class': iconClassName });
} else {
iconNode = h(
'span',
{ 'class': prefixCls + '-icon' },
[stepNumber]
);
}
return iconNode;
}
},
render: function render() {
var _classString;
var h = arguments[0];
var _getOptionProps2 = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this),
prefixCls = _getOptionProps2.prefixCls,
itemWidth = _getOptionProps2.itemWidth,
active = _getOptionProps2.active,
_getOptionProps2$stat = _getOptionProps2.status,
status = _getOptionProps2$stat === undefined ? 'wait' : _getOptionProps2$stat,
tailContent = _getOptionProps2.tailContent,
adjustMarginRight = _getOptionProps2.adjustMarginRight,
disabled = _getOptionProps2.disabled;
var title = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'title');
var subTitle = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'subTitle');
var description = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'description');
var classString = (_classString = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls + '-item', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls + '-item-' + status, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls + '-item-custom', Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getComponentFromProp"])(this, 'icon')), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls + '-item-active', active), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls + '-item-disabled', disabled === true), _classString);
var stepProps = {
'class': classString,
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this)
};
var stepItemStyle = {};
if (itemWidth) {
stepItemStyle.width = itemWidth;
}
if (adjustMarginRight) {
stepItemStyle.marginRight = adjustMarginRight;
}
var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this);
var accessibilityProps = {
attrs: {},
on: {
click: listeners.click || noop
}
};
if (listeners.stepClick && !disabled) {
accessibilityProps.attrs.role = 'button';
accessibilityProps.attrs.tabIndex = 0;
accessibilityProps.on.click = this.onClick;
}
return h(
'div',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([stepProps, { style: stepItemStyle }]),
[h(
'div',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([accessibilityProps, { 'class': prefixCls + '-item-container' }]),
[h(
'div',
{ 'class': prefixCls + '-item-tail' },
[tailContent]
), h(
'div',
{ 'class': prefixCls + '-item-icon' },
[this.renderIconNode()]
), h(
'div',
{ 'class': prefixCls + '-item-content' },
[h(
'div',
{ 'class': prefixCls + '-item-title' },
[title, subTitle && h(
'div',
{
attrs: { title: subTitle },
'class': prefixCls + '-item-subtitle' },
[subTitle]
)]
), description && h(
'div',
{ 'class': prefixCls + '-item-description' },
[description]
)]
)]
)]
);
}
});
/***/ }),
/***/ "./components/vc-steps/Steps.jsx":
/*!***************************************!*\
!*** ./components/vc-steps/Steps.jsx ***!
\***************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/debounce */ "./node_modules/lodash/debounce.js");
/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _util_isFlexSupported__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/isFlexSupported */ "./components/_util/isFlexSupported.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'Steps',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
props: {
type: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def('default'),
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def('rc-steps'),
iconPrefix: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def('rc'),
direction: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def('horizontal'),
labelPlacement: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def('horizontal'),
status: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def('process'),
size: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def(''),
progressDot: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func]),
initial: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number.def(0),
current: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number.def(0),
icons: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].shape({
finish: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
error: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any
}).loose
},
data: function data() {
this.calcStepOffsetWidth = lodash_debounce__WEBPACK_IMPORTED_MODULE_4___default()(this.calcStepOffsetWidth, 150);
return {
flexSupported: true,
lastStepOffsetWidth: 0
};
},
mounted: function mounted() {
var _this = this;
this.$nextTick(function () {
_this.calcStepOffsetWidth();
if (!Object(_util_isFlexSupported__WEBPACK_IMPORTED_MODULE_5__["default"])()) {
_this.setState({
flexSupported: false
});
}
});
},
updated: function updated() {
var _this2 = this;
this.$nextTick(function () {
_this2.calcStepOffsetWidth();
});
},
beforeDestroy: function beforeDestroy() {
if (this.calcTimeout) {
clearTimeout(this.calcTimeout);
}
if (this.calcStepOffsetWidth && this.calcStepOffsetWidth.cancel) {
this.calcStepOffsetWidth.cancel();
}
},
methods: {
onStepClick: function onStepClick(next) {
var current = this.$props.current;
if (current !== next) {
this.$emit('change', next);
}
},
calcStepOffsetWidth: function calcStepOffsetWidth() {
var _this3 = this;
if (Object(_util_isFlexSupported__WEBPACK_IMPORTED_MODULE_5__["default"])()) {
return;
}
var lastStepOffsetWidth = this.$data.lastStepOffsetWidth;
// Just for IE9
var domNode = this.$refs.vcStepsRef;
if (domNode.children.length > 0) {
if (this.calcTimeout) {
clearTimeout(this.calcTimeout);
}
this.calcTimeout = setTimeout(function () {
// +1 for fit edge bug of digit width, like 35.4px
var offsetWidth = (domNode.lastChild.offsetWidth || 0) + 1;
// Reduce shake bug
if (lastStepOffsetWidth === offsetWidth || Math.abs(lastStepOffsetWidth - offsetWidth) <= 3) {
return;
}
_this3.setState({ lastStepOffsetWidth: offsetWidth });
});
}
}
},
render: function render() {
var _classString,
_this4 = this;
var h = arguments[0];
var prefixCls = this.prefixCls,
direction = this.direction,
type = this.type,
labelPlacement = this.labelPlacement,
iconPrefix = this.iconPrefix,
status = this.status,
size = this.size,
current = this.current,
$scopedSlots = this.$scopedSlots,
initial = this.initial,
icons = this.icons;
var isNav = type === 'navigation';
var progressDot = this.progressDot;
if (progressDot === undefined) {
progressDot = $scopedSlots.progressDot;
}
var lastStepOffsetWidth = this.lastStepOffsetWidth,
flexSupported = this.flexSupported;
var filteredChildren = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["filterEmpty"])(this.$slots['default']);
var lastIndex = filteredChildren.length - 1;
var adjustedlabelPlacement = progressDot ? 'vertical' : labelPlacement;
var classString = (_classString = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls + '-' + direction, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls + '-' + size, size), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls + '-label-' + adjustedlabelPlacement, direction === 'horizontal'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls + '-dot', !!progressDot), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls + '-navigation', isNav), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classString, prefixCls + '-flex-not-supported', !flexSupported), _classString);
var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this);
var stepsProps = {
'class': classString,
ref: 'vcStepsRef',
on: listeners
};
return h(
'div',
stepsProps,
[filteredChildren.map(function (child, index) {
var childProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getPropsData"])(child);
var stepNumber = initial + index;
var stepProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
stepNumber: '' + (stepNumber + 1),
stepIndex: stepNumber,
prefixCls: prefixCls,
iconPrefix: iconPrefix,
progressDot: _this4.progressDot,
icons: icons
}, childProps),
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getEvents"])(child),
scopedSlots: $scopedSlots
};
if (listeners.change) {
stepProps.on.stepClick = _this4.onStepClick;
}
if (!flexSupported && direction !== 'vertical') {
if (isNav) {
stepProps.props.itemWidth = 100 / (lastIndex + 1) + '%';
stepProps.props.adjustMarginRight = 0;
} else if (index !== lastIndex) {
stepProps.props.itemWidth = 100 / lastIndex + '%';
stepProps.props.adjustMarginRight = -Math.round(lastStepOffsetWidth / lastIndex + 1) + 'px';
}
}
// fix tail color
if (status === 'error' && index === current - 1) {
stepProps['class'] = prefixCls + '-next-error';
}
if (!childProps.status) {
if (stepNumber === current) {
stepProps.props.status = status;
} else if (stepNumber < current) {
stepProps.props.status = 'finish';
} else {
stepProps.props.status = 'wait';
}
}
stepProps.props.active = stepNumber === current;
return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_7__["cloneElement"])(child, stepProps);
})]
);
}
});
/***/ }),
/***/ "./components/vc-steps/index.js":
/*!**************************************!*\
!*** ./components/vc-steps/index.js ***!
\**************************************/
/*! exports provided: Step, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Steps__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Steps */ "./components/vc-steps/Steps.jsx");
/* harmony import */ var _Step__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Step */ "./components/vc-steps/Step.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Step", function() { return _Step__WEBPACK_IMPORTED_MODULE_1__["default"]; });
// base rc-steps 3.5.0
_Steps__WEBPACK_IMPORTED_MODULE_0__["default"].Step = _Step__WEBPACK_IMPORTED_MODULE_1__["default"];
/* harmony default export */ __webpack_exports__["default"] = (_Steps__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/vc-switch/PropTypes.js":
/*!*******************************************!*\
!*** ./components/vc-switch/PropTypes.js ***!
\*******************************************/
/*! exports provided: switchPropTypes */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "switchPropTypes", function() { return switchPropTypes; });
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
var switchPropTypes = {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
checkedChildren: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
unCheckedChildren: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
// onChange: PropTypes.func,
// onMouseUp: PropTypes.func,
// onClick: PropTypes.func,
tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]),
checked: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
defaultChecked: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.def(false),
loadingIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any
};
/***/ }),
/***/ "./components/vc-switch/Switch.jsx":
/*!*****************************************!*\
!*** ./components/vc-switch/Switch.jsx ***!
\*****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _PropTypes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./PropTypes */ "./components/vc-switch/PropTypes.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
// function noop () {
// }
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'VcSwitch',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
model: {
prop: 'checked',
event: 'change'
},
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _PropTypes__WEBPACK_IMPORTED_MODULE_3__["switchPropTypes"], {
prefixCls: _PropTypes__WEBPACK_IMPORTED_MODULE_3__["switchPropTypes"].prefixCls.def('rc-switch')
// onChange: switchPropTypes.onChange.def(noop),
// onClick: switchPropTypes.onClick.def(noop),
}),
data: function data() {
var checked = false;
if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'checked')) {
checked = !!this.checked;
} else {
checked = !!this.defaultChecked;
}
return {
stateChecked: checked
};
},
watch: {
checked: function checked(val) {
this.stateChecked = val;
}
},
mounted: function mounted() {
var _this = this;
this.$nextTick(function () {
var autoFocus = _this.autoFocus,
disabled = _this.disabled;
if (autoFocus && !disabled) {
_this.focus();
}
});
},
methods: {
setChecked: function setChecked(checked, e) {
if (this.disabled) {
return;
}
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'checked')) {
this.stateChecked = checked;
}
this.$emit('change', checked, e);
},
handleClick: function handleClick(e) {
var checked = !this.stateChecked;
this.setChecked(checked, e);
this.$emit('click', checked, e);
},
handleKeyDown: function handleKeyDown(e) {
if (e.keyCode === 37) {
// Left
this.setChecked(false, e);
} else if (e.keyCode === 39) {
// Right
this.setChecked(true, e);
}
},
handleMouseUp: function handleMouseUp(e) {
if (this.$refs.refSwitchNode) {
this.$refs.refSwitchNode.blur();
}
this.$emit('mouseup', e);
},
focus: function focus() {
this.$refs.refSwitchNode.focus();
},
blur: function blur() {
this.$refs.refSwitchNode.blur();
}
},
render: function render() {
var _switchClassName;
var h = arguments[0];
var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(this),
prefixCls = _getOptionProps.prefixCls,
disabled = _getOptionProps.disabled,
loadingIcon = _getOptionProps.loadingIcon,
tabIndex = _getOptionProps.tabIndex,
restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_getOptionProps, ['prefixCls', 'disabled', 'loadingIcon', 'tabIndex']);
var checked = this.stateChecked;
var switchClassName = (_switchClassName = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_switchClassName, prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_switchClassName, prefixCls + '-checked', checked), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_switchClassName, prefixCls + '-disabled', disabled), _switchClassName);
var spanProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, restProps),
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this), {
keydown: this.handleKeyDown,
click: this.handleClick,
mouseup: this.handleMouseUp
}),
attrs: {
type: 'button',
role: 'switch',
'aria-checked': checked,
disabled: disabled,
tabIndex: tabIndex
},
'class': switchClassName,
ref: 'refSwitchNode'
};
return h(
'button',
spanProps,
[loadingIcon, h(
'span',
{ 'class': prefixCls + '-inner' },
[checked ? Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'checkedChildren') : Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'unCheckedChildren')]
)]
);
}
});
/***/ }),
/***/ "./components/vc-switch/index.js":
/*!***************************************!*\
!*** ./components/vc-switch/index.js ***!
\***************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Switch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Switch */ "./components/vc-switch/Switch.jsx");
// base rc-switch 1.9.0
/* harmony default export */ __webpack_exports__["default"] = (_Switch__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/vc-table/index.js":
/*!**************************************!*\
!*** ./components/vc-table/index.js ***!
\**************************************/
/*! exports provided: default, Column, ColumnGroup, INTERNAL_COL_DEFINE */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _src_Table__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./src/Table */ "./components/vc-table/src/Table.jsx");
/* harmony import */ var _src_Column__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./src/Column */ "./components/vc-table/src/Column.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Column", function() { return _src_Column__WEBPACK_IMPORTED_MODULE_2__["default"]; });
/* harmony import */ var _src_ColumnGroup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./src/ColumnGroup */ "./components/vc-table/src/ColumnGroup.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ColumnGroup", function() { return _src_ColumnGroup__WEBPACK_IMPORTED_MODULE_3__["default"]; });
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _src_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./src/utils */ "./components/vc-table/src/utils.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "INTERNAL_COL_DEFINE", function() { return _src_utils__WEBPACK_IMPORTED_MODULE_5__["INTERNAL_COL_DEFINE"]; });
// base rc-table 6.10.9
var Table = {
name: 'Table',
Column: _src_Column__WEBPACK_IMPORTED_MODULE_2__["default"],
ColumnGroup: _src_ColumnGroup__WEBPACK_IMPORTED_MODULE_3__["default"],
props: _src_Table__WEBPACK_IMPORTED_MODULE_1__["default"].props,
methods: {
getTableNode: function getTableNode() {
return this.$refs.table.tableNode;
},
getBodyTable: function getBodyTable() {
return this.$refs.table.ref_bodyTable;
},
normalize: function normalize() {
var _this = this;
var elements = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
var columns = [];
elements.forEach(function (element) {
if (!element.tag) {
return;
}
var key = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getKey"])(element);
var style = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getStyle"])(element);
var cls = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getClass"])(element);
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(element);
var events = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getEvents"])(element);
var listeners = {};
Object.keys(events).forEach(function (e) {
var k = 'on-' + e;
listeners[Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["camelize"])(k)] = events[e];
});
var _getSlots = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getSlots"])(element),
children = _getSlots['default'],
title = _getSlots.title;
var column = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({ title: title }, props, { style: style, 'class': cls }, listeners);
if (key) {
column.key = key;
}
if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getSlotOptions"])(element).isTableColumnGroup) {
column.children = _this.normalize(typeof children === 'function' ? children() : children);
} else {
var customRender = element.data && element.data.scopedSlots && element.data.scopedSlots['default'];
column.customRender = column.customRender || customRender;
}
columns.push(column);
});
return columns;
}
},
render: function render() {
var h = arguments[0];
var $slots = this.$slots,
normalize = this.normalize;
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getOptionProps"])(this);
var columns = props.columns || normalize($slots['default']);
var tProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
columns: columns
}),
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_4__["getListeners"])(this),
ref: 'table'
};
return h(_src_Table__WEBPACK_IMPORTED_MODULE_1__["default"], tProps);
}
};
/* harmony default export */ __webpack_exports__["default"] = (Table);
/***/ }),
/***/ "./components/vc-table/src/BaseTable.jsx":
/*!***********************************************!*\
!*** ./components/vc-table/src/BaseTable.jsx ***!
\***********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _ColGroup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ColGroup */ "./components/vc-table/src/ColGroup.jsx");
/* harmony import */ var _TableHeader__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TableHeader */ "./components/vc-table/src/TableHeader.jsx");
/* harmony import */ var _TableRow__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./TableRow */ "./components/vc-table/src/TableRow.jsx");
/* harmony import */ var _ExpandableRow__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ExpandableRow */ "./components/vc-table/src/ExpandableRow.jsx");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
function noop() {}
var BaseTable = {
name: 'BaseTable',
props: {
fixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool]),
columns: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array.isRequired,
tableClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string.isRequired,
hasHead: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool.isRequired,
hasBody: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool.isRequired,
expander: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object.isRequired,
getRowKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
isAnyColumnsFixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool
},
inject: {
table: { 'default': function _default() {
return {};
} },
store: { from: 'table-store', 'default': function _default() {
return {};
} }
},
methods: {
getColumns: function getColumns(cols) {
var _$props = this.$props,
_$props$columns = _$props.columns,
columns = _$props$columns === undefined ? [] : _$props$columns,
fixed = _$props.fixed;
var table = this.table;
var prefixCls = table.$props.prefixCls;
return (cols || columns).map(function (column) {
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, column, {
className: !!column.fixed && !fixed ? classnames__WEBPACK_IMPORTED_MODULE_2___default()(prefixCls + '-fixed-columns-in-body', column.className || column['class']) : column.className || column['class']
});
});
},
handleRowHover: function handleRowHover(isHover, key) {
this.store.currentHoverKey = isHover ? key : null;
},
renderRows: function renderRows(renderData, indent) {
var _this = this;
var ancestorKeys = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
var h = this.$createElement;
var _table = this.table,
columnManager = _table.columnManager,
components = _table.sComponents,
prefixCls = _table.prefixCls,
childrenColumnName = _table.childrenColumnName,
rowClassName = _table.rowClassName,
_table$customRow = _table.customRow,
customRow = _table$customRow === undefined ? noop : _table$customRow;
var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this.table),
_getListeners$rowClic = _getListeners.rowClick,
onRowClick = _getListeners$rowClic === undefined ? noop : _getListeners$rowClic,
_getListeners$rowDoub = _getListeners.rowDoubleclick,
onRowDoubleClick = _getListeners$rowDoub === undefined ? noop : _getListeners$rowDoub,
_getListeners$rowCont = _getListeners.rowContextmenu,
onRowContextMenu = _getListeners$rowCont === undefined ? noop : _getListeners$rowCont,
_getListeners$rowMous = _getListeners.rowMouseenter,
onRowMouseEnter = _getListeners$rowMous === undefined ? noop : _getListeners$rowMous,
_getListeners$rowMous2 = _getListeners.rowMouseleave,
onRowMouseLeave = _getListeners$rowMous2 === undefined ? noop : _getListeners$rowMous2;
var getRowKey = this.getRowKey,
fixed = this.fixed,
expander = this.expander,
isAnyColumnsFixed = this.isAnyColumnsFixed;
var rows = [];
var _loop = function _loop(i) {
var record = renderData[i];
var key = getRowKey(record, i);
var className = typeof rowClassName === 'string' ? rowClassName : rowClassName(record, i, indent);
var onHoverProps = {};
if (columnManager.isAnyColumnsFixed()) {
onHoverProps.hover = _this.handleRowHover;
}
var leafColumns = void 0;
if (fixed === 'left') {
leafColumns = columnManager.leftLeafColumns();
} else if (fixed === 'right') {
leafColumns = columnManager.rightLeafColumns();
} else {
leafColumns = _this.getColumns(columnManager.leafColumns());
}
var rowPrefixCls = prefixCls + '-row';
var expandableRowProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, expander.props, {
fixed: fixed,
index: i,
prefixCls: rowPrefixCls,
record: record,
rowKey: key,
needIndentSpaced: expander.needIndentSpaced
}),
key: key,
on: {
// ...expander.on,
rowClick: onRowClick,
expandedChange: expander.handleExpandChange
},
scopedSlots: {
'default': function _default(expandableRow) {
var tableRowProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["mergeProps"])({
props: {
fixed: fixed,
indent: indent,
record: record,
index: i,
prefixCls: rowPrefixCls,
childrenColumnName: childrenColumnName,
columns: leafColumns,
rowKey: key,
ancestorKeys: ancestorKeys,
components: components,
isAnyColumnsFixed: isAnyColumnsFixed,
customRow: customRow
},
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
rowDoubleclick: onRowDoubleClick,
rowContextmenu: onRowContextMenu,
rowMouseenter: onRowMouseEnter,
rowMouseleave: onRowMouseLeave
}, onHoverProps),
'class': className,
ref: 'row_' + i + '_' + indent
}, expandableRow);
return h(_TableRow__WEBPACK_IMPORTED_MODULE_5__["default"], tableRowProps);
}
}
};
var row = h(_ExpandableRow__WEBPACK_IMPORTED_MODULE_6__["default"], expandableRowProps);
rows.push(row);
expander.renderRows(_this.renderRows, rows, record, i, indent, fixed, key, ancestorKeys);
};
for (var i = 0; i < renderData.length; i += 1) {
_loop(i);
}
return rows;
}
},
render: function render() {
var h = arguments[0];
var _table2 = this.table,
components = _table2.sComponents,
prefixCls = _table2.prefixCls,
scroll = _table2.scroll,
data = _table2.data,
getBodyWrapper = _table2.getBodyWrapper;
var _$props2 = this.$props,
expander = _$props2.expander,
tableClassName = _$props2.tableClassName,
hasHead = _$props2.hasHead,
hasBody = _$props2.hasBody,
fixed = _$props2.fixed,
isAnyColumnsFixed = _$props2.isAnyColumnsFixed;
var columns = this.getColumns();
var tableStyle = {};
if (!fixed && scroll.x) {
// 当有固定列时width auto 会导致 body table 的宽度撑不开,从而固定列无法对齐
// 详情见https://github.com/ant-design/ant-design/issues/22160
var tableWidthScrollX = isAnyColumnsFixed ? 'max-content' : 'auto';
// not set width, then use content fixed width
tableStyle.width = scroll.x === true ? tableWidthScrollX : scroll.x;
tableStyle.width = typeof tableStyle.width === 'number' ? tableStyle.width + 'px' : tableStyle.width;
}
if (fixed) {
var width = columns.reduce(function (sum, _ref) {
var w = _ref.width;
return sum + parseFloat(w, 10);
}, 0);
if (width > 0) {
tableStyle.width = width + 'px';
}
}
var Table = hasBody ? components.table : 'table';
var BodyWrapper = components.body.wrapper;
var body = void 0;
if (hasBody) {
body = h(
BodyWrapper,
{ 'class': prefixCls + '-tbody' },
[this.renderRows(data, 0)]
);
if (getBodyWrapper) {
body = getBodyWrapper(body);
}
}
return h(
Table,
{ 'class': tableClassName, style: tableStyle, key: 'table' },
[h(_ColGroup__WEBPACK_IMPORTED_MODULE_3__["default"], {
attrs: { columns: columns, fixed: fixed }
}), hasHead && h(_TableHeader__WEBPACK_IMPORTED_MODULE_4__["default"], {
attrs: { expander: expander, columns: columns, fixed: fixed }
}), body]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (BaseTable);
/***/ }),
/***/ "./components/vc-table/src/BodyTable.jsx":
/*!***********************************************!*\
!*** ./components/vc-table/src/BodyTable.jsx ***!
\***********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ "./components/vc-table/src/utils.js");
/* harmony import */ var _BaseTable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./BaseTable */ "./components/vc-table/src/BaseTable.jsx");
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'BodyTable',
props: {
fixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool]),
columns: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array.isRequired,
tableClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.isRequired,
handleBodyScroll: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func.isRequired,
handleWheel: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func.isRequired,
getRowKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func.isRequired,
expander: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object.isRequired,
isAnyColumnsFixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool
},
inject: {
table: { 'default': function _default() {
return {};
} }
},
render: function render() {
var h = arguments[0];
var _table = this.table,
prefixCls = _table.prefixCls,
scroll = _table.scroll;
var columns = this.columns,
fixed = this.fixed,
tableClassName = this.tableClassName,
getRowKey = this.getRowKey,
handleBodyScroll = this.handleBodyScroll,
handleWheel = this.handleWheel,
expander = this.expander,
isAnyColumnsFixed = this.isAnyColumnsFixed;
var _table2 = this.table,
useFixedHeader = _table2.useFixedHeader,
saveRef = _table2.saveRef;
var bodyStyle = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.table.bodyStyle);
var innerBodyStyle = {};
if (scroll.x || fixed) {
bodyStyle.overflowX = bodyStyle.overflowX || 'scroll';
// Fix weired webkit render bug
// https://github.com/ant-design/ant-design/issues/7783
bodyStyle.WebkitTransform = 'translate3d (0, 0, 0)';
}
if (scroll.y) {
// maxHeight will make fixed-Table scrolling not working
// so we only set maxHeight to body-Table here
var maxHeight = bodyStyle.maxHeight || scroll.y;
maxHeight = typeof maxHeight === 'number' ? maxHeight + 'px' : maxHeight;
if (fixed) {
innerBodyStyle.maxHeight = maxHeight;
innerBodyStyle.overflowY = bodyStyle.overflowY || 'scroll';
} else {
bodyStyle.maxHeight = maxHeight;
}
bodyStyle.overflowY = bodyStyle.overflowY || 'scroll';
useFixedHeader = true;
// Add negative margin bottom for scroll bar overflow bug
var scrollbarWidth = Object(_utils__WEBPACK_IMPORTED_MODULE_3__["measureScrollbar"])({ direction: 'vertical' });
if (scrollbarWidth > 0 && fixed) {
bodyStyle.marginBottom = '-' + scrollbarWidth + 'px';
bodyStyle.paddingBottom = '0px';
}
}
var baseTable = h(_BaseTable__WEBPACK_IMPORTED_MODULE_4__["default"], {
attrs: {
tableClassName: tableClassName,
hasHead: !useFixedHeader,
hasBody: true,
fixed: fixed,
columns: columns,
expander: expander,
getRowKey: getRowKey,
isAnyColumnsFixed: isAnyColumnsFixed
}
});
if (fixed && columns.length) {
var refName = void 0;
if (columns[0].fixed === 'left' || columns[0].fixed === true) {
refName = 'fixedColumnsBodyLeft';
} else if (columns[0].fixed === 'right') {
refName = 'fixedColumnsBodyRight';
}
delete bodyStyle.overflowX;
delete bodyStyle.overflowY;
return h(
'div',
{ key: 'bodyTable', 'class': prefixCls + '-body-outer', style: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, bodyStyle) },
[h(
'div',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
'class': prefixCls + '-body-inner',
style: innerBodyStyle
}, {
directives: [{
name: 'ant-ref',
value: saveRef(refName)
}]
}, {
on: {
'wheel': handleWheel,
'scroll': handleBodyScroll
}
}]),
[baseTable]
)]
);
}
// Should provides `tabIndex` if use scroll to enable keyboard scroll
var useTabIndex = scroll && (scroll.x || scroll.y);
return h(
'div',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
attrs: {
tabIndex: useTabIndex ? -1 : undefined
},
key: 'bodyTable',
'class': prefixCls + '-body',
style: bodyStyle
}, {
directives: [{
name: 'ant-ref',
value: saveRef('bodyTable')
}]
}, {
on: {
'wheel': handleWheel,
'scroll': handleBodyScroll
}
}]),
[baseTable]
);
}
});
/***/ }),
/***/ "./components/vc-table/src/ColGroup.jsx":
/*!**********************************************!*\
!*** ./components/vc-table/src/ColGroup.jsx ***!
\**********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "./components/vc-table/src/utils.js");
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'ColGroup',
props: {
fixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
columns: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array
},
inject: {
table: { 'default': function _default() {
return {};
} }
},
render: function render() {
var h = arguments[0];
var fixed = this.fixed,
table = this.table;
var prefixCls = table.prefixCls,
expandIconAsCell = table.expandIconAsCell,
columnManager = table.columnManager;
var cols = [];
if (expandIconAsCell && fixed !== 'right') {
cols.push(h('col', { 'class': prefixCls + '-expand-icon-col', key: 'rc-table-expand-icon-col' }));
}
var leafColumns = void 0;
if (fixed === 'left') {
leafColumns = columnManager.leftLeafColumns();
} else if (fixed === 'right') {
leafColumns = columnManager.rightLeafColumns();
} else {
leafColumns = columnManager.leafColumns();
}
cols = cols.concat(leafColumns.map(function (_ref) {
var key = _ref.key,
dataIndex = _ref.dataIndex,
width = _ref.width,
additionalProps = _ref[_utils__WEBPACK_IMPORTED_MODULE_2__["INTERNAL_COL_DEFINE"]];
var mergedKey = key !== undefined ? key : dataIndex;
var w = typeof width === 'number' ? width + 'px' : width;
return h('col', babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ key: mergedKey, style: { width: w, minWidth: w } }, additionalProps]));
}));
return h('colgroup', [cols]);
}
});
/***/ }),
/***/ "./components/vc-table/src/Column.jsx":
/*!********************************************!*\
!*** ./components/vc-table/src/Column.jsx ***!
\********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'Column',
props: {
rowSpan: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
colSpan: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
title: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
dataIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
width: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string]),
ellipsis: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
fixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf([true, 'left', 'right']),
align: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOf(['left', 'center', 'right']),
customRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
className: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
// onCellClick: PropTypes.func,
customCell: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
customHeaderCell: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func
}
});
/***/ }),
/***/ "./components/vc-table/src/ColumnGroup.jsx":
/*!*************************************************!*\
!*** ./components/vc-table/src/ColumnGroup.jsx ***!
\*************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'ColumnGroup',
props: {
title: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any
},
isTableColumnGroup: true
});
/***/ }),
/***/ "./components/vc-table/src/ColumnManager.jsx":
/*!***************************************************!*\
!*** ./components/vc-table/src/ColumnManager.jsx ***!
\***************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/classCallCheck */ "./node_modules/babel-runtime/helpers/classCallCheck.js");
/* harmony import */ var babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/createClass */ "./node_modules/babel-runtime/helpers/createClass.js");
/* harmony import */ var babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__);
var ColumnManager = function () {
function ColumnManager(columns) {
babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this, ColumnManager);
this.columns = columns;
this._cached = {};
}
babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(ColumnManager, [{
key: 'isAnyColumnsFixed',
value: function isAnyColumnsFixed() {
var _this = this;
return this._cache('isAnyColumnsFixed', function () {
return _this.columns.some(function (column) {
return !!column.fixed;
});
});
}
}, {
key: 'isAnyColumnsLeftFixed',
value: function isAnyColumnsLeftFixed() {
var _this2 = this;
return this._cache('isAnyColumnsLeftFixed', function () {
return _this2.columns.some(function (column) {
return column.fixed === 'left' || column.fixed === true;
});
});
}
}, {
key: 'isAnyColumnsRightFixed',
value: function isAnyColumnsRightFixed() {
var _this3 = this;
return this._cache('isAnyColumnsRightFixed', function () {
return _this3.columns.some(function (column) {
return column.fixed === 'right';
});
});
}
}, {
key: 'leftColumns',
value: function leftColumns() {
var _this4 = this;
return this._cache('leftColumns', function () {
return _this4.groupedColumns().filter(function (column) {
return column.fixed === 'left' || column.fixed === true;
});
});
}
}, {
key: 'rightColumns',
value: function rightColumns() {
var _this5 = this;
return this._cache('rightColumns', function () {
return _this5.groupedColumns().filter(function (column) {
return column.fixed === 'right';
});
});
}
}, {
key: 'leafColumns',
value: function leafColumns() {
var _this6 = this;
return this._cache('leafColumns', function () {
return _this6._leafColumns(_this6.columns);
});
}
}, {
key: 'leftLeafColumns',
value: function leftLeafColumns() {
var _this7 = this;
return this._cache('leftLeafColumns', function () {
return _this7._leafColumns(_this7.leftColumns());
});
}
}, {
key: 'rightLeafColumns',
value: function rightLeafColumns() {
var _this8 = this;
return this._cache('rightLeafColumns', function () {
return _this8._leafColumns(_this8.rightColumns());
});
}
// add appropriate rowspan and colspan to column
}, {
key: 'groupedColumns',
value: function groupedColumns() {
var _this9 = this;
return this._cache('groupedColumns', function () {
var _groupColumns = function _groupColumns(columns) {
var currentRow = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
var parentColumn = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
var rows = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
// track how many rows we got
rows[currentRow] = rows[currentRow] || [];
var grouped = [];
var setRowSpan = function setRowSpan(column) {
var rowSpan = rows.length - currentRow;
if (column && !column.children && // parent columns are supposed to be one row
rowSpan > 1 && (!column.rowSpan || column.rowSpan < rowSpan)) {
column.rowSpan = rowSpan;
}
};
columns.forEach(function (column, index) {
var newColumn = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, column);
rows[currentRow].push(newColumn);
parentColumn.colSpan = parentColumn.colSpan || 0;
if (newColumn.children && newColumn.children.length > 0) {
newColumn.children = _groupColumns(newColumn.children, currentRow + 1, newColumn, rows);
parentColumn.colSpan += newColumn.colSpan;
} else {
parentColumn.colSpan += 1;
}
// update rowspan to all same row columns
for (var i = 0; i < rows[currentRow].length - 1; i += 1) {
setRowSpan(rows[currentRow][i]);
}
// last column, update rowspan immediately
if (index + 1 === columns.length) {
setRowSpan(newColumn);
}
grouped.push(newColumn);
});
return grouped;
};
return _groupColumns(_this9.columns);
});
}
}, {
key: 'reset',
value: function reset(columns) {
this.columns = columns;
this._cached = {};
}
}, {
key: '_cache',
value: function _cache(name, fn) {
if (name in this._cached) {
return this._cached[name];
}
this._cached[name] = fn();
return this._cached[name];
}
}, {
key: '_leafColumns',
value: function _leafColumns(columns) {
var _this10 = this;
var leafColumns = [];
columns.forEach(function (column) {
if (!column.children) {
leafColumns.push(column);
} else {
leafColumns.push.apply(leafColumns, babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(_this10._leafColumns(column.children)));
}
});
return leafColumns;
}
}]);
return ColumnManager;
}();
/* harmony default export */ __webpack_exports__["default"] = (ColumnManager);
/***/ }),
/***/ "./components/vc-table/src/ExpandIcon.jsx":
/*!************************************************!*\
!*** ./components/vc-table/src/ExpandIcon.jsx ***!
\************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'ExpandIcon',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_1__["default"]],
props: {
record: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
expandable: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
expanded: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
needIndentSpaced: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool
},
methods: {
onExpand: function onExpand(e) {
this.__emit('expand', this.record, e);
}
},
render: function render() {
var h = arguments[0];
var expandable = this.expandable,
prefixCls = this.prefixCls,
onExpand = this.onExpand,
needIndentSpaced = this.needIndentSpaced,
expanded = this.expanded;
if (expandable) {
var expandClassName = expanded ? 'expanded' : 'collapsed';
return h('span', {
'class': prefixCls + '-expand-icon ' + prefixCls + '-' + expandClassName,
on: {
'click': onExpand
}
});
}
if (needIndentSpaced) {
return h('span', { 'class': prefixCls + '-expand-icon ' + prefixCls + '-spaced' });
}
return null;
}
});
/***/ }),
/***/ "./components/vc-table/src/ExpandableRow.jsx":
/*!***************************************************!*\
!*** ./components/vc-table/src/ExpandableRow.jsx ***!
\***************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _ExpandIcon__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ExpandIcon */ "./components/vc-table/src/ExpandIcon.jsx");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
var ExpandableRow = {
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"]],
name: 'ExpandableRow',
props: {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string.isRequired,
rowKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number]).isRequired,
fixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool]),
record: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].array]).isRequired,
indentSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
needIndentSpaced: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool.isRequired,
expandRowByClick: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
expandIconAsCell: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
expandIconColumnIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].number,
childrenColumnName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
expandedRowRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
expandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func
// onExpandedChange: PropTypes.func.isRequired,
// onRowClick: PropTypes.func,
// children: PropTypes.func.isRequired,
},
inject: {
store: { from: 'table-store', 'default': function _default() {
return {};
} }
},
computed: {
expanded: function expanded() {
return this.store.expandedRowKeys.includes(this.$props.rowKey);
}
},
beforeDestroy: function beforeDestroy() {
this.handleDestroy();
},
methods: {
hasExpandIcon: function hasExpandIcon(columnIndex) {
var _$props = this.$props,
expandRowByClick = _$props.expandRowByClick,
expandIcon = _$props.expandIcon;
if (this.tempExpandIconAsCell || columnIndex !== this.tempExpandIconColumnIndex) {
return false;
}
return !!expandIcon || !expandRowByClick;
},
handleExpandChange: function handleExpandChange(record, event) {
var expanded = this.expanded,
rowKey = this.rowKey;
this.__emit('expandedChange', !expanded, record, event, rowKey);
},
handleDestroy: function handleDestroy() {
var rowKey = this.rowKey,
record = this.record;
this.__emit('expandedChange', false, record, null, rowKey, true);
},
handleRowClick: function handleRowClick(record, index, event) {
var expandRowByClick = this.expandRowByClick;
if (expandRowByClick) {
this.handleExpandChange(record, event);
}
this.__emit('rowClick', record, index, event);
},
renderExpandIcon: function renderExpandIcon() {
var h = this.$createElement;
var prefixCls = this.prefixCls,
expanded = this.expanded,
record = this.record,
needIndentSpaced = this.needIndentSpaced,
expandIcon = this.expandIcon;
if (expandIcon) {
return expandIcon({
prefixCls: prefixCls,
expanded: expanded,
record: record,
needIndentSpaced: needIndentSpaced,
expandable: this.expandable,
onExpand: this.handleExpandChange
});
}
return h(_ExpandIcon__WEBPACK_IMPORTED_MODULE_1__["default"], {
attrs: {
expandable: this.expandable,
prefixCls: prefixCls,
needIndentSpaced: needIndentSpaced,
expanded: expanded,
record: record
},
on: {
'expand': this.handleExpandChange
}
});
},
renderExpandIconCell: function renderExpandIconCell(cells) {
var h = this.$createElement;
if (!this.tempExpandIconAsCell) {
return;
}
var prefixCls = this.prefixCls;
cells.push(h(
'td',
{ 'class': prefixCls + '-expand-icon-cell', key: 'rc-table-expand-icon-cell' },
[this.renderExpandIcon()]
));
}
},
render: function render() {
var childrenColumnName = this.childrenColumnName,
expandedRowRender = this.expandedRowRender,
indentSize = this.indentSize,
record = this.record,
fixed = this.fixed,
$scopedSlots = this.$scopedSlots,
expanded = this.expanded;
this.tempExpandIconAsCell = fixed !== 'right' ? this.expandIconAsCell : false;
this.tempExpandIconColumnIndex = fixed !== 'right' ? this.expandIconColumnIndex : -1;
var childrenData = record[childrenColumnName];
this.expandable = !!(childrenData || expandedRowRender);
var expandableRowProps = {
props: {
indentSize: indentSize,
expanded: expanded, // not used in TableRow, but it's required to re-render TableRow when `expanded` changes
hasExpandIcon: this.hasExpandIcon,
renderExpandIcon: this.renderExpandIcon,
renderExpandIconCell: this.renderExpandIconCell
},
on: {
rowClick: this.handleRowClick
}
};
return $scopedSlots['default'] && $scopedSlots['default'](expandableRowProps);
}
};
/* harmony default export */ __webpack_exports__["default"] = (ExpandableRow);
/***/ }),
/***/ "./components/vc-table/src/ExpandableTable.jsx":
/*!*****************************************************!*\
!*** ./components/vc-table/src/ExpandableTable.jsx ***!
\*****************************************************/
/*! exports provided: ExpandableTableProps, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExpandableTableProps", function() { return ExpandableTableProps; });
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! shallowequal */ "./node_modules/shallowequal/index.js");
/* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(shallowequal__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _TableRow__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./TableRow */ "./components/vc-table/src/TableRow.jsx");
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils */ "./components/vc-table/src/utils.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
var ExpandableTableProps = function ExpandableTableProps() {
return {
expandIconAsCell: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
expandRowByClick: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
expandedRowKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array,
expandedRowClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
defaultExpandAllRows: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
defaultExpandedRowKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array,
expandIconColumnIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
expandedRowRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
expandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
childrenColumnName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
indentSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
// onExpand: PropTypes.func,
// onExpandedRowsChange: PropTypes.func,
columnManager: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object.isRequired,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.isRequired,
data: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array,
getRowKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func
};
};
var ExpandableTable = {
name: 'ExpandableTable',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["initDefaultProps"])(ExpandableTableProps(), {
expandIconAsCell: false,
expandedRowClassName: function expandedRowClassName() {
return '';
},
expandIconColumnIndex: 0,
defaultExpandAllRows: false,
defaultExpandedRowKeys: [],
childrenColumnName: 'children',
indentSize: 15
}),
inject: {
store: { from: 'table-store', 'default': function _default() {
return {};
} }
},
data: function data() {
var data = this.data,
childrenColumnName = this.childrenColumnName,
defaultExpandAllRows = this.defaultExpandAllRows,
expandedRowKeys = this.expandedRowKeys,
defaultExpandedRowKeys = this.defaultExpandedRowKeys,
getRowKey = this.getRowKey;
var finalExpandedRowKeys = [];
var rows = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(data));
if (defaultExpandAllRows) {
for (var i = 0; i < rows.length; i += 1) {
var row = rows[i];
finalExpandedRowKeys.push(getRowKey(row, i));
rows = rows.concat(row[childrenColumnName] || []);
}
} else {
finalExpandedRowKeys = expandedRowKeys || defaultExpandedRowKeys;
}
// this.columnManager = props.columnManager
// this.store = props.store
this.store.expandedRowsHeight = {};
this.store.expandedRowKeys = finalExpandedRowKeys;
return {};
},
mounted: function mounted() {
this.handleUpdated();
},
updated: function updated() {
this.handleUpdated();
},
watch: {
expandedRowKeys: function expandedRowKeys(val) {
var _this = this;
this.$nextTick(function () {
_this.store.expandedRowKeys = val;
});
}
},
methods: {
handleUpdated: function handleUpdated() {
// We should record latest expanded rows to avoid multiple rows remove cause `onExpandedRowsChange` trigger many times
this.latestExpandedRows = null;
},
handleExpandChange: function handleExpandChange(expanded, record, event, rowKey) {
var destroy = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
if (event) {
event.preventDefault();
event.stopPropagation();
}
var expandedRowKeys = this.store.expandedRowKeys;
if (expanded) {
// row was expaned
expandedRowKeys = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(expandedRowKeys), [rowKey]);
} else {
// row was collapse
var expandedRowIndex = expandedRowKeys.indexOf(rowKey);
if (expandedRowIndex !== -1) {
expandedRowKeys = Object(_utils__WEBPACK_IMPORTED_MODULE_6__["remove"])(expandedRowKeys, rowKey);
}
}
if (!this.expandedRowKeys) {
this.store.expandedRowKeys = expandedRowKeys;
}
// De-dup of repeat call
if (!this.latestExpandedRows || !shallowequal__WEBPACK_IMPORTED_MODULE_4___default()(this.latestExpandedRows, expandedRowKeys)) {
this.latestExpandedRows = expandedRowKeys;
this.__emit('expandedRowsChange', expandedRowKeys);
this.__emit('update:expandedRowKeys', expandedRowKeys);
}
if (!destroy) {
this.__emit('expand', expanded, record);
}
},
renderExpandIndentCell: function renderExpandIndentCell(rows, fixed) {
var prefixCls = this.prefixCls,
expandIconAsCell = this.expandIconAsCell;
if (!expandIconAsCell || fixed === 'right' || !rows.length) {
return;
}
var iconColumn = {
key: 'rc-table-expand-icon-cell',
className: prefixCls + '-expand-icon-th',
title: '',
rowSpan: rows.length
};
rows[0].unshift(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, iconColumn, { column: iconColumn }));
},
renderExpandedRow: function renderExpandedRow(record, index, expandedRowRender, className, ancestorKeys, indent, fixed) {
var _this2 = this;
var h = this.$createElement;
var prefixCls = this.prefixCls,
expandIconAsCell = this.expandIconAsCell,
indentSize = this.indentSize;
var parentKey = ancestorKeys[ancestorKeys.length - 1];
var rowKey = parentKey + '-extra-row';
var components = {
body: {
row: 'tr',
cell: 'td'
}
};
var colCount = void 0;
if (fixed === 'left') {
colCount = this.columnManager.leftLeafColumns().length;
} else if (fixed === 'right') {
colCount = this.columnManager.rightLeafColumns().length;
} else {
colCount = this.columnManager.leafColumns().length;
}
var columns = [{
key: 'extra-row',
customRender: function customRender() {
var expandedRowKeys = _this2.store.expandedRowKeys;
var expanded = expandedRowKeys.includes(parentKey);
return {
attrs: {
colSpan: colCount
},
children: fixed !== 'right' ? expandedRowRender(record, index, indent, expanded) : '&nbsp;'
};
}
}];
if (expandIconAsCell && fixed !== 'right') {
columns.unshift({
key: 'expand-icon-placeholder',
customRender: function customRender() {
return null;
}
});
}
return h(_TableRow__WEBPACK_IMPORTED_MODULE_5__["default"], {
key: rowKey,
attrs: { columns: columns,
rowKey: rowKey,
ancestorKeys: ancestorKeys,
prefixCls: prefixCls + '-expanded-row',
indentSize: indentSize,
indent: indent,
fixed: fixed,
components: components,
expandedRow: true,
hasExpandIcon: function hasExpandIcon() {}
},
'class': className });
},
renderRows: function renderRows(_renderRows, rows, record, index, indent, fixed, parentKey, ancestorKeys) {
var expandedRowClassName = this.expandedRowClassName,
expandedRowRender = this.expandedRowRender,
childrenColumnName = this.childrenColumnName;
var childrenData = record[childrenColumnName];
var nextAncestorKeys = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(ancestorKeys), [parentKey]);
var nextIndent = indent + 1;
if (expandedRowRender) {
rows.push(this.renderExpandedRow(record, index, expandedRowRender, expandedRowClassName(record, index, indent), nextAncestorKeys, nextIndent, fixed));
}
if (childrenData) {
rows.push.apply(rows, babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(_renderRows(childrenData, nextIndent, nextAncestorKeys)));
}
}
},
render: function render() {
var data = this.data,
childrenColumnName = this.childrenColumnName,
$scopedSlots = this.$scopedSlots;
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(this);
var needIndentSpaced = data.some(function (record) {
return record[childrenColumnName];
});
return $scopedSlots['default'] && $scopedSlots['default']({
props: props,
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this),
needIndentSpaced: needIndentSpaced,
renderRows: this.renderRows,
handleExpandChange: this.handleExpandChange,
renderExpandIndentCell: this.renderExpandIndentCell
});
}
};
/* harmony default export */ __webpack_exports__["default"] = (ExpandableTable);
/***/ }),
/***/ "./components/vc-table/src/HeadTable.jsx":
/*!***********************************************!*\
!*** ./components/vc-table/src/HeadTable.jsx ***!
\***********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ "./components/vc-table/src/utils.js");
/* harmony import */ var _BaseTable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./BaseTable */ "./components/vc-table/src/BaseTable.jsx");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'HeadTable',
props: {
fixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool]),
columns: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array.isRequired,
tableClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.isRequired,
handleBodyScrollLeft: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func.isRequired,
expander: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object.isRequired
},
inject: {
table: { 'default': function _default() {
return {};
} }
},
render: function render() {
var h = arguments[0];
var columns = this.columns,
fixed = this.fixed,
tableClassName = this.tableClassName,
handleBodyScrollLeft = this.handleBodyScrollLeft,
expander = this.expander,
table = this.table;
var prefixCls = table.prefixCls,
scroll = table.scroll,
showHeader = table.showHeader,
saveRef = table.saveRef;
var useFixedHeader = table.useFixedHeader;
var headStyle = {};
var scrollbarWidth = Object(_utils__WEBPACK_IMPORTED_MODULE_3__["measureScrollbar"])({ direction: 'vertical' });
if (scroll.y) {
useFixedHeader = true;
// https://github.com/ant-design/ant-design/issues/17051
var scrollbarWidthOfHeader = Object(_utils__WEBPACK_IMPORTED_MODULE_3__["measureScrollbar"])({ direction: 'horizontal', prefixCls: prefixCls });
// Add negative margin bottom for scroll bar overflow bug
if (scrollbarWidthOfHeader > 0 && !fixed) {
headStyle.marginBottom = '-' + scrollbarWidthOfHeader + 'px';
headStyle.paddingBottom = '0px';
// https://github.com/ant-design/ant-design/pull/19986
headStyle.minWidth = scrollbarWidth + 'px';
// https://github.com/ant-design/ant-design/issues/17051
headStyle.overflowX = 'scroll';
headStyle.overflowY = scrollbarWidth === 0 ? 'hidden' : 'scroll';
}
}
if (!useFixedHeader || !showHeader) {
return null;
}
return h(
'div',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
key: 'headTable'
}, {
directives: [{
name: 'ant-ref',
value: fixed ? function () {} : saveRef('headTable')
}]
}, {
'class': classnames__WEBPACK_IMPORTED_MODULE_5___default()(prefixCls + '-header', babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, prefixCls + '-hide-scrollbar', scrollbarWidth > 0)),
style: headStyle,
on: {
'scroll': handleBodyScrollLeft
}
}]),
[h(_BaseTable__WEBPACK_IMPORTED_MODULE_4__["default"], {
attrs: {
tableClassName: tableClassName,
hasHead: true,
hasBody: false,
fixed: fixed,
columns: columns,
expander: expander
}
})]
);
}
});
/***/ }),
/***/ "./components/vc-table/src/Table.jsx":
/*!*******************************************!*\
!*** ./components/vc-table/src/Table.jsx ***!
\*******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! shallowequal */ "./node_modules/shallowequal/index.js");
/* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(shallowequal__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var lodash_merge__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/merge */ "./node_modules/lodash/merge.js");
/* harmony import */ var lodash_merge__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_merge__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var component_classes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! component-classes */ "./node_modules/component-classes/index.js");
/* harmony import */ var component_classes__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(component_classes__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils */ "./components/vc-table/src/utils.js");
/* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../_util/warning */ "./components/_util/warning.js");
/* harmony import */ var _vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../vc-util/Dom/addEventListener */ "./components/vc-util/Dom/addEventListener.js");
/* harmony import */ var _ColumnManager__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./ColumnManager */ "./components/vc-table/src/ColumnManager.jsx");
/* harmony import */ var _HeadTable__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./HeadTable */ "./components/vc-table/src/HeadTable.jsx");
/* harmony import */ var _BodyTable__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./BodyTable */ "./components/vc-table/src/BodyTable.jsx");
/* harmony import */ var _ExpandableTable__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./ExpandableTable */ "./components/vc-table/src/ExpandableTable.jsx");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! vue */ "vue");
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_18__);
/* eslint-disable camelcase */
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'Table',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_17__["default"]],
provide: function provide() {
return { 'table-store': this.store, table: this };
},
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_16__["initDefaultProps"])({
data: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].array,
useFixedHeader: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].bool,
columns: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].array,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].string,
bodyStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].object,
rowKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].func]),
rowClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].func]),
customRow: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].func,
customHeaderRow: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].func,
// onRowClick: PropTypes.func,
// onRowDoubleClick: PropTypes.func,
// onRowContextMenu: PropTypes.func,
// onRowMouseEnter: PropTypes.func,
// onRowMouseLeave: PropTypes.func,
showHeader: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].bool,
title: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].func,
id: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].string,
footer: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].func,
emptyText: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].any,
scroll: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].object,
rowRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].func,
getBodyWrapper: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].func,
components: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].shape({
table: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].any,
header: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].shape({
wrapper: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].any,
row: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].any,
cell: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].any
}),
body: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].shape({
wrapper: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].any,
row: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].any,
cell: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].any
})
}),
expandIconAsCell: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].bool,
expandedRowKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].array,
expandedRowClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].func,
defaultExpandAllRows: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].bool,
defaultExpandedRowKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].array,
expandIconColumnIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].number,
expandedRowRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].func,
childrenColumnName: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].string,
indentSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].number,
expandRowByClick: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].bool,
expandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].func,
tableLayout: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].string,
transformCellText: _util_vue_types__WEBPACK_IMPORTED_MODULE_8__["default"].func
}, {
data: [],
useFixedHeader: false,
rowKey: 'key',
rowClassName: function rowClassName() {
return '';
},
prefixCls: 'rc-table',
bodyStyle: {},
showHeader: true,
scroll: {},
rowRef: function rowRef() {
return null;
},
emptyText: function emptyText() {
return 'No Data';
},
customHeaderRow: function customHeaderRow() {}
}),
data: function data() {
this.preData = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_3___default()(this.data));
this.store = vue__WEBPACK_IMPORTED_MODULE_18___default.a.observable({
currentHoverKey: null,
fixedColumnsHeadRowsHeight: [],
fixedColumnsBodyRowsHeight: {},
expandedRowsHeight: {},
expandedRowKeys: []
});
return {
columnManager: new _ColumnManager__WEBPACK_IMPORTED_MODULE_12__["default"](this.columns),
sComponents: lodash_merge__WEBPACK_IMPORTED_MODULE_5___default()({
table: 'table',
header: {
wrapper: 'thead',
row: 'tr',
cell: 'th'
},
body: {
wrapper: 'tbody',
row: 'tr',
cell: 'td'
}
}, this.components)
};
},
watch: {
components: function components() {
this._components = lodash_merge__WEBPACK_IMPORTED_MODULE_5___default()({
table: 'table',
header: {
wrapper: 'thead',
row: 'tr',
cell: 'th'
},
body: {
wrapper: 'tbody',
row: 'tr',
cell: 'td'
}
}, this.components);
},
columns: function columns(val) {
if (val) {
this.columnManager.reset(val);
}
},
data: function data(val) {
var _this = this;
if (val.length === 0 && this.hasScrollX()) {
this.$nextTick(function () {
_this.resetScrollX();
});
}
}
},
// static childContextTypes = {
// table: PropTypes.any,
// components: PropTypes.any,
// },
created: function created() {
var _this2 = this;
['rowClick', 'rowDoubleclick', 'rowContextmenu', 'rowMouseenter', 'rowMouseleave'].forEach(function (name) {
Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_16__["getListeners"])(_this2)[name] === undefined, name + ' is deprecated, please use customRow instead.');
});
Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(this.getBodyWrapper === undefined, 'getBodyWrapper is deprecated, please use custom components instead.');
this.setScrollPosition('left');
this.debouncedWindowResize = Object(_utils__WEBPACK_IMPORTED_MODULE_9__["debounce"])(this.handleWindowResize, 150);
},
mounted: function mounted() {
var _this3 = this;
this.$nextTick(function () {
if (_this3.columnManager.isAnyColumnsFixed()) {
_this3.handleWindowResize();
_this3.resizeEvent = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_11__["default"])(window, 'resize', _this3.debouncedWindowResize);
}
// https://github.com/ant-design/ant-design/issues/11635
if (_this3.ref_headTable) {
_this3.ref_headTable.scrollLeft = 0;
}
if (_this3.ref_bodyTable) {
_this3.ref_bodyTable.scrollLeft = 0;
}
});
},
updated: function updated() {
var _this4 = this;
this.$nextTick(function () {
if (_this4.columnManager.isAnyColumnsFixed()) {
_this4.handleWindowResize();
if (!_this4.resizeEvent) {
_this4.resizeEvent = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_11__["default"])(window, 'resize', _this4.debouncedWindowResize);
}
}
});
},
beforeDestroy: function beforeDestroy() {
if (this.resizeEvent) {
this.resizeEvent.remove();
}
if (this.debouncedWindowResize) {
this.debouncedWindowResize.cancel();
}
},
methods: {
getRowKey: function getRowKey(record, index) {
var rowKey = this.rowKey;
var key = typeof rowKey === 'function' ? rowKey(record, index) : record[rowKey];
Object(_util_warning__WEBPACK_IMPORTED_MODULE_10__["default"])(key !== undefined, 'Each record in table should have a unique `key` prop,' + 'or set `rowKey` to an unique primary key.');
return key === undefined ? index : key;
},
setScrollPosition: function setScrollPosition(position) {
this.scrollPosition = position;
if (this.tableNode) {
var prefixCls = this.prefixCls;
if (position === 'both') {
component_classes__WEBPACK_IMPORTED_MODULE_6___default()(this.tableNode).remove(new RegExp('^' + prefixCls + '-scroll-position-.+$')).add(prefixCls + '-scroll-position-left').add(prefixCls + '-scroll-position-right');
} else {
component_classes__WEBPACK_IMPORTED_MODULE_6___default()(this.tableNode).remove(new RegExp('^' + prefixCls + '-scroll-position-.+$')).add(prefixCls + '-scroll-position-' + position);
}
}
},
setScrollPositionClassName: function setScrollPositionClassName() {
var node = this.ref_bodyTable;
var scrollToLeft = node.scrollLeft === 0;
var scrollToRight = node.scrollLeft + 1 >= node.children[0].getBoundingClientRect().width - node.getBoundingClientRect().width;
if (scrollToLeft && scrollToRight) {
this.setScrollPosition('both');
} else if (scrollToLeft) {
this.setScrollPosition('left');
} else if (scrollToRight) {
this.setScrollPosition('right');
} else if (this.scrollPosition !== 'middle') {
this.setScrollPosition('middle');
}
},
isTableLayoutFixed: function isTableLayoutFixed() {
var _$props = this.$props,
tableLayout = _$props.tableLayout,
_$props$columns = _$props.columns,
columns = _$props$columns === undefined ? [] : _$props$columns,
useFixedHeader = _$props.useFixedHeader,
_$props$scroll = _$props.scroll,
scroll = _$props$scroll === undefined ? {} : _$props$scroll;
if (typeof tableLayout !== 'undefined') {
return tableLayout === 'fixed';
}
// if one column is ellipsis, use fixed table layout to fix align issue
if (columns.some(function (_ref) {
var ellipsis = _ref.ellipsis;
return !!ellipsis;
})) {
return true;
}
// if header fixed, use fixed table layout to fix align issue
if (useFixedHeader || scroll.y) {
return true;
}
// if scroll.x is number/px/% width value, we should fixed table layout
// to avoid long word layout broken issue
if (scroll.x && scroll.x !== true && scroll.x !== 'max-content') {
return true;
}
return false;
},
handleWindowResize: function handleWindowResize() {
this.syncFixedTableRowHeight();
this.setScrollPositionClassName();
},
syncFixedTableRowHeight: function syncFixedTableRowHeight() {
var tableRect = this.tableNode.getBoundingClientRect();
// If tableNode's height less than 0, suppose it is hidden and don't recalculate rowHeight.
// see: https://github.com/ant-design/ant-design/issues/4836
if (tableRect.height !== undefined && tableRect.height <= 0) {
return;
}
var prefixCls = this.prefixCls;
var headRows = this.ref_headTable ? this.ref_headTable.querySelectorAll('thead') : this.ref_bodyTable.querySelectorAll('thead');
var bodyRows = this.ref_bodyTable.querySelectorAll('.' + prefixCls + '-row') || [];
var fixedColumnsHeadRowsHeight = [].map.call(headRows, function (row) {
return row.getBoundingClientRect().height ? row.getBoundingClientRect().height - 0.5 : 'auto';
});
var state = this.store;
var fixedColumnsBodyRowsHeight = [].reduce.call(bodyRows, function (acc, row) {
var rowKey = row.getAttribute('data-row-key');
var height = row.getBoundingClientRect().height || state.fixedColumnsBodyRowsHeight[rowKey] || 'auto';
acc[rowKey] = height;
return acc;
}, {});
if (shallowequal__WEBPACK_IMPORTED_MODULE_4___default()(state.fixedColumnsHeadRowsHeight, fixedColumnsHeadRowsHeight) && shallowequal__WEBPACK_IMPORTED_MODULE_4___default()(state.fixedColumnsBodyRowsHeight, fixedColumnsBodyRowsHeight)) {
return;
}
this.store.fixedColumnsHeadRowsHeight = fixedColumnsHeadRowsHeight;
this.store.fixedColumnsBodyRowsHeight = fixedColumnsBodyRowsHeight;
},
resetScrollX: function resetScrollX() {
if (this.ref_headTable) {
this.ref_headTable.scrollLeft = 0;
}
if (this.ref_bodyTable) {
this.ref_bodyTable.scrollLeft = 0;
}
},
hasScrollX: function hasScrollX() {
var _scroll = this.scroll,
scroll = _scroll === undefined ? {} : _scroll;
return 'x' in scroll;
},
handleBodyScrollLeft: function handleBodyScrollLeft(e) {
// Fix https://github.com/ant-design/ant-design/issues/7635
if (e.currentTarget !== e.target) {
return;
}
var target = e.target;
var _scroll2 = this.scroll,
scroll = _scroll2 === undefined ? {} : _scroll2;
var ref_headTable = this.ref_headTable,
ref_bodyTable = this.ref_bodyTable;
if (target.scrollLeft !== this.lastScrollLeft && scroll.x) {
if (target === ref_bodyTable && ref_headTable) {
ref_headTable.scrollLeft = target.scrollLeft;
} else if (target === ref_headTable && ref_bodyTable) {
ref_bodyTable.scrollLeft = target.scrollLeft;
}
this.setScrollPositionClassName();
}
// Remember last scrollLeft for scroll direction detecting.
this.lastScrollLeft = target.scrollLeft;
},
handleBodyScrollTop: function handleBodyScrollTop(e) {
var target = e.target;
// Fix https://github.com/ant-design/ant-design/issues/9033
if (e.currentTarget !== target) {
return;
}
var _scroll3 = this.scroll,
scroll = _scroll3 === undefined ? {} : _scroll3;
var ref_headTable = this.ref_headTable,
ref_bodyTable = this.ref_bodyTable,
ref_fixedColumnsBodyLeft = this.ref_fixedColumnsBodyLeft,
ref_fixedColumnsBodyRight = this.ref_fixedColumnsBodyRight;
if (target.scrollTop !== this.lastScrollTop && scroll.y && target !== ref_headTable) {
var scrollTop = target.scrollTop;
if (ref_fixedColumnsBodyLeft && target !== ref_fixedColumnsBodyLeft) {
ref_fixedColumnsBodyLeft.scrollTop = scrollTop;
}
if (ref_fixedColumnsBodyRight && target !== ref_fixedColumnsBodyRight) {
ref_fixedColumnsBodyRight.scrollTop = scrollTop;
}
if (ref_bodyTable && target !== ref_bodyTable) {
ref_bodyTable.scrollTop = scrollTop;
}
}
// Remember last scrollTop for scroll direction detecting.
this.lastScrollTop = target.scrollTop;
},
handleBodyScroll: function handleBodyScroll(e) {
this.handleBodyScrollLeft(e);
this.handleBodyScrollTop(e);
},
handleWheel: function handleWheel(event) {
var _$props$scroll2 = this.$props.scroll,
scroll = _$props$scroll2 === undefined ? {} : _$props$scroll2;
if (window.navigator.userAgent.match(/Trident\/7\./) && scroll.y) {
event.preventDefault();
var wd = event.deltaY;
var target = event.target;
var bodyTable = this.ref_bodyTable,
fixedColumnsBodyLeft = this.ref_fixedColumnsBodyLeft,
fixedColumnsBodyRight = this.ref_fixedColumnsBodyRight;
var scrollTop = 0;
if (this.lastScrollTop) {
scrollTop = this.lastScrollTop + wd;
} else {
scrollTop = wd;
}
if (fixedColumnsBodyLeft && target !== fixedColumnsBodyLeft) {
fixedColumnsBodyLeft.scrollTop = scrollTop;
}
if (fixedColumnsBodyRight && target !== fixedColumnsBodyRight) {
fixedColumnsBodyRight.scrollTop = scrollTop;
}
if (bodyTable && target !== bodyTable) {
bodyTable.scrollTop = scrollTop;
}
}
},
// saveChildrenRef(name, node) {
// this[`ref_${name}`] = node;
// },
saveRef: function saveRef(name) {
var _this5 = this;
return function (node) {
_this5['ref_' + name] = node;
};
},
saveTableNodeRef: function saveTableNodeRef(node) {
this.tableNode = node;
},
renderMainTable: function renderMainTable() {
var h = this.$createElement;
var scroll = this.scroll,
prefixCls = this.prefixCls;
var isAnyColumnsFixed = this.columnManager.isAnyColumnsFixed();
var scrollable = isAnyColumnsFixed || scroll.x || scroll.y;
var table = [this.renderTable({
columns: this.columnManager.groupedColumns(),
isAnyColumnsFixed: isAnyColumnsFixed
}), this.renderEmptyText(), this.renderFooter()];
return scrollable ? h(
'div',
{ 'class': prefixCls + '-scroll' },
[table]
) : table;
},
renderLeftFixedTable: function renderLeftFixedTable() {
var h = this.$createElement;
var prefixCls = this.prefixCls;
return h(
'div',
{ 'class': prefixCls + '-fixed-left' },
[this.renderTable({
columns: this.columnManager.leftColumns(),
fixed: 'left'
})]
);
},
renderRightFixedTable: function renderRightFixedTable() {
var h = this.$createElement;
var prefixCls = this.prefixCls;
return h(
'div',
{ 'class': prefixCls + '-fixed-right' },
[this.renderTable({
columns: this.columnManager.rightColumns(),
fixed: 'right'
})]
);
},
renderTable: function renderTable(options) {
var h = this.$createElement;
var columns = options.columns,
fixed = options.fixed,
isAnyColumnsFixed = options.isAnyColumnsFixed;
var prefixCls = this.prefixCls,
_scroll4 = this.scroll,
scroll = _scroll4 === undefined ? {} : _scroll4;
var tableClassName = scroll.x || fixed ? prefixCls + '-fixed' : '';
var headTable = h(_HeadTable__WEBPACK_IMPORTED_MODULE_13__["default"], {
key: 'head',
attrs: { columns: columns,
fixed: fixed,
tableClassName: tableClassName,
handleBodyScrollLeft: this.handleBodyScrollLeft,
expander: this.expander
}
});
var bodyTable = h(_BodyTable__WEBPACK_IMPORTED_MODULE_14__["default"], {
key: 'body',
attrs: { columns: columns,
fixed: fixed,
tableClassName: tableClassName,
getRowKey: this.getRowKey,
handleWheel: this.handleWheel,
handleBodyScroll: this.handleBodyScroll,
expander: this.expander,
isAnyColumnsFixed: isAnyColumnsFixed
}
});
return [headTable, bodyTable];
},
renderTitle: function renderTitle() {
var h = this.$createElement;
var title = this.title,
prefixCls = this.prefixCls,
data = this.data;
return title ? h(
'div',
{ 'class': prefixCls + '-title', key: 'title' },
[title(data)]
) : null;
},
renderFooter: function renderFooter() {
var h = this.$createElement;
var footer = this.footer,
prefixCls = this.prefixCls,
data = this.data;
return footer ? h(
'div',
{ 'class': prefixCls + '-footer', key: 'footer' },
[footer(data)]
) : null;
},
renderEmptyText: function renderEmptyText() {
var h = this.$createElement;
var emptyText = this.emptyText,
prefixCls = this.prefixCls,
data = this.data;
if (data.length) {
return null;
}
var emptyClassName = prefixCls + '-placeholder';
return h(
'div',
{ 'class': emptyClassName, key: 'emptyText' },
[typeof emptyText === 'function' ? emptyText() : emptyText]
);
}
},
render: function render() {
var _classNames,
_this6 = this;
var h = arguments[0];
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_16__["getOptionProps"])(this);
var columnManager = this.columnManager,
getRowKey = this.getRowKey;
var prefixCls = props.prefixCls;
var tableClassName = classnames__WEBPACK_IMPORTED_MODULE_7___default()(props.prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, prefixCls + '-fixed-header', props.useFixedHeader || props.scroll && props.scroll.y), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, prefixCls + '-scroll-position-left ' + prefixCls + '-scroll-position-right', this.scrollPosition === 'both'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, prefixCls + '-scroll-position-' + this.scrollPosition, this.scrollPosition !== 'both'), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()(_classNames, prefixCls + '-layout-fixed', this.isTableLayoutFixed()), _classNames));
var hasLeftFixed = columnManager.isAnyColumnsLeftFixed();
var hasRightFixed = columnManager.isAnyColumnsRightFixed();
var expandableTableProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
columnManager: columnManager,
getRowKey: getRowKey
}),
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_16__["getListeners"])(this),
scopedSlots: {
'default': function _default(expander) {
_this6.expander = expander;
return h(
'div',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
directives: [{
name: 'ant-ref',
value: _this6.saveTableNodeRef
}]
}, {
'class': tableClassName
// style={props.style}
// id={props.id}
}]),
[_this6.renderTitle(), h(
'div',
{ 'class': prefixCls + '-content' },
[_this6.renderMainTable(), hasLeftFixed && _this6.renderLeftFixedTable(), hasRightFixed && _this6.renderRightFixedTable()]
)]
);
}
}
};
return h(_ExpandableTable__WEBPACK_IMPORTED_MODULE_15__["default"], expandableTableProps);
}
});
/***/ }),
/***/ "./components/vc-table/src/TableCell.jsx":
/*!***********************************************!*\
!*** ./components/vc-table/src/TableCell.jsx ***!
\***********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/get */ "./node_modules/lodash/get.js");
/* harmony import */ var lodash_get__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_get__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
function isInvalidRenderCellText(text) {
return text && !Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["isValidElement"])(text) && Object.prototype.toString.call(text) === '[object Object]';
}
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'TableCell',
props: {
record: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
index: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
indent: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
indentSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
column: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
expandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
component: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any
},
inject: {
table: { 'default': function _default() {
return {};
} }
},
methods: {
handleClick: function handleClick(e) {
var record = this.record,
onCellClick = this.column.onCellClick;
if (onCellClick) {
onCellClick(record, e);
}
}
},
render: function render() {
var _classNames;
var h = arguments[0];
var record = this.record,
indentSize = this.indentSize,
prefixCls = this.prefixCls,
indent = this.indent,
index = this.index,
expandIcon = this.expandIcon,
column = this.column,
BodyCell = this.component;
var dataIndex = column.dataIndex,
customRender = column.customRender,
_column$className = column.className,
className = _column$className === undefined ? '' : _column$className;
var transformCellText = this.table.transformCellText;
// We should return undefined if no dataIndex is specified, but in order to
// be compatible with object-path's behavior, we return the record object instead.
var text = void 0;
if (typeof dataIndex === 'number') {
text = lodash_get__WEBPACK_IMPORTED_MODULE_4___default()(record, dataIndex);
} else if (!dataIndex || dataIndex.length === 0) {
text = record;
} else {
text = lodash_get__WEBPACK_IMPORTED_MODULE_4___default()(record, dataIndex);
}
var tdProps = {
props: {},
attrs: {},
on: {
click: this.handleClick
}
};
var colSpan = void 0;
var rowSpan = void 0;
if (customRender) {
text = customRender(text, record, index, column);
if (isInvalidRenderCellText(text)) {
tdProps.attrs = text.attrs || {};
tdProps.props = text.props || {};
tdProps['class'] = text['class'];
tdProps.style = text.style;
colSpan = tdProps.attrs.colSpan;
rowSpan = tdProps.attrs.rowSpan;
text = text.children;
}
}
if (column.customCell) {
tdProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["mergeProps"])(tdProps, column.customCell(record, index));
}
// Fix https://github.com/ant-design/ant-design/issues/1202
if (isInvalidRenderCellText(text)) {
text = null;
}
if (transformCellText) {
text = transformCellText({ text: text, column: column, record: record, index: index });
}
var indentText = expandIcon ? h('span', {
style: { paddingLeft: indentSize * indent + 'px' },
'class': prefixCls + '-indent indent-level-' + indent
}) : null;
if (rowSpan === 0 || colSpan === 0) {
return null;
}
if (column.align) {
tdProps.style = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({ textAlign: column.align }, tdProps.style);
}
var cellClassName = classnames__WEBPACK_IMPORTED_MODULE_5___default()(className, column['class'], (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-cell-ellipsis', !!column.ellipsis), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-cell-break-word', !!column.width), _classNames));
if (column.ellipsis) {
if (typeof text === 'string') {
tdProps.attrs.title = text;
} else if (text) {
// const { props: textProps } = text;
// if (textProps && textProps.children && typeof textProps.children === 'string') {
// tdProps.attrs.title = textProps.children;
// }
}
}
return h(
BodyCell,
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ 'class': cellClassName }, tdProps]),
[indentText, expandIcon, text]
);
}
});
/***/ }),
/***/ "./components/vc-table/src/TableHeader.jsx":
/*!*************************************************!*\
!*** ./components/vc-table/src/TableHeader.jsx ***!
\*************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _TableHeaderRow__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./TableHeaderRow */ "./components/vc-table/src/TableHeaderRow.jsx");
function getHeaderRows(_ref) {
var _ref$columns = _ref.columns,
columns = _ref$columns === undefined ? [] : _ref$columns,
_ref$currentRow = _ref.currentRow,
currentRow = _ref$currentRow === undefined ? 0 : _ref$currentRow,
_ref$rows = _ref.rows,
rows = _ref$rows === undefined ? [] : _ref$rows,
_ref$isLast = _ref.isLast,
isLast = _ref$isLast === undefined ? true : _ref$isLast;
rows = rows || [];
rows[currentRow] = rows[currentRow] || [];
columns.forEach(function (column, i) {
if (column.rowSpan && rows.length < column.rowSpan) {
while (rows.length < column.rowSpan) {
rows.push([]);
}
}
var cellIsLast = isLast && i === columns.length - 1;
var cell = {
key: column.key,
className: column.className || column['class'] || '',
children: column.title,
isLast: cellIsLast,
column: column
};
if (column.children) {
getHeaderRows({
columns: column.children,
currentRow: currentRow + 1,
rows: rows,
isLast: cellIsLast
});
}
if ('colSpan' in column) {
cell.colSpan = column.colSpan;
}
if ('rowSpan' in column) {
cell.rowSpan = column.rowSpan;
}
if (cell.colSpan !== 0) {
rows[currentRow].push(cell);
}
});
return rows.filter(function (row) {
return row.length > 0;
});
}
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'TableHeader',
props: {
fixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
columns: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].array.isRequired,
expander: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object.isRequired
},
inject: {
table: { 'default': function _default() {
return {};
} }
},
render: function render() {
var h = arguments[0];
var _table = this.table,
components = _table.sComponents,
prefixCls = _table.prefixCls,
showHeader = _table.showHeader,
customHeaderRow = _table.customHeaderRow;
var expander = this.expander,
columns = this.columns,
fixed = this.fixed;
if (!showHeader) {
return null;
}
var rows = getHeaderRows({ columns: columns });
expander.renderExpandIndentCell(rows, fixed);
var HeaderWrapper = components.header.wrapper;
return h(
HeaderWrapper,
{ 'class': prefixCls + '-thead' },
[rows.map(function (row, index) {
return h(_TableHeaderRow__WEBPACK_IMPORTED_MODULE_1__["default"], {
attrs: {
prefixCls: prefixCls,
index: index,
fixed: fixed,
columns: columns,
rows: rows,
row: row,
components: components,
customHeaderRow: customHeaderRow
},
key: index });
})]
);
}
});
/***/ }),
/***/ "./components/vc-table/src/TableHeaderRow.jsx":
/*!****************************************************!*\
!*** ./components/vc-table/src/TableHeaderRow.jsx ***!
\****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
var TableHeaderRow = {
inject: {
store: { from: 'table-store', 'default': function _default() {
return {};
} }
},
props: {
index: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].number,
fixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string,
columns: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].array,
rows: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].array,
row: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].array,
components: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].object,
customHeaderRow: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].func,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string
},
name: 'TableHeaderRow',
computed: {
height: function height() {
var fixedColumnsHeadRowsHeight = this.store.fixedColumnsHeadRowsHeight;
var _$props = this.$props,
columns = _$props.columns,
rows = _$props.rows,
fixed = _$props.fixed;
var headerHeight = fixedColumnsHeadRowsHeight[0];
if (!fixed) {
return null;
}
if (headerHeight && columns) {
if (headerHeight === 'auto') {
return 'auto';
}
return headerHeight / rows.length + 'px';
}
return null;
}
},
render: function render(h) {
var row = this.row,
index = this.index,
height = this.height,
components = this.components,
customHeaderRow = this.customHeaderRow,
prefixCls = this.prefixCls;
var HeaderRow = components.header.row;
var HeaderCell = components.header.cell;
var rowProps = customHeaderRow(row.map(function (cell) {
return cell.column;
}), index);
var customStyle = rowProps ? rowProps.style : {};
var style = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({ height: height }, customStyle);
if (style.height === null) {
delete style.height;
}
return h(
HeaderRow,
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([rowProps, { style: style }]),
[row.map(function (cell, i) {
var _classNames;
var column = cell.column,
isLast = cell.isLast,
children = cell.children,
className = cell.className,
cellProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(cell, ['column', 'isLast', 'children', 'className']);
var customProps = column.customHeaderCell ? column.customHeaderCell(column) : {};
var headerCellProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["mergeProps"])({
attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, cellProps)
}, babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, customProps, {
key: column.key || column.dataIndex || i
}));
if (column.align) {
headerCellProps.style = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_3___default()({}, customProps.style, { textAlign: column.align });
}
headerCellProps['class'] = classnames__WEBPACK_IMPORTED_MODULE_4___default()(customProps['class'], customProps.className, column['class'], column.className, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-align-' + column.align, !!column.align), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-row-cell-ellipsis', !!column.ellipsis), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-row-cell-break-word', !!column.width), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-row-cell-last', isLast), _classNames));
if (typeof HeaderCell === 'function') {
return HeaderCell(h, headerCellProps, children);
}
return h(
HeaderCell,
headerCellProps,
[children]
);
})]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (TableHeaderRow);
/***/ }),
/***/ "./components/vc-table/src/TableRow.jsx":
/*!**********************************************!*\
!*** ./components/vc-table/src/TableRow.jsx ***!
\**********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _TableCell__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./TableCell */ "./components/vc-table/src/TableCell.jsx");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../_util/warning */ "./components/_util/warning.js");
function noop() {}
var TableRow = {
name: 'TableRow',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__["default"]],
inject: {
store: { from: 'table-store', 'default': function _default() {
return {};
} }
},
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["initDefaultProps"])({
customRow: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func,
// onRowClick: PropTypes.func,
// onRowDoubleClick: PropTypes.func,
// onRowContextMenu: PropTypes.func,
// onRowMouseEnter: PropTypes.func,
// onRowMouseLeave: PropTypes.func,
record: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].object,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
// onHover: PropTypes.func,
columns: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].array,
index: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
rowKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number]).isRequired,
className: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
indent: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
indentSize: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
hasExpandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func,
fixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool]),
renderExpandIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func,
renderExpandIconCell: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func,
components: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
expandedRow: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
isAnyColumnsFixed: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
ancestorKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].array.isRequired,
expandIconColumnIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number,
expandRowByClick: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool
// visible: PropTypes.bool,
// hovered: PropTypes.bool,
// height: PropTypes.any,
}, {
// expandIconColumnIndex: 0,
// expandRowByClick: false,
hasExpandIcon: function hasExpandIcon() {},
renderExpandIcon: function renderExpandIcon() {},
renderExpandIconCell: function renderExpandIconCell() {}
}),
computed: {
visible: function visible() {
var expandedRowKeys = this.store.expandedRowKeys;
var ancestorKeys = this.$props.ancestorKeys;
return !!(ancestorKeys.length === 0 || ancestorKeys.every(function (k) {
return expandedRowKeys.includes(k);
}));
},
height: function height() {
var _store = this.store,
expandedRowsHeight = _store.expandedRowsHeight,
fixedColumnsBodyRowsHeight = _store.fixedColumnsBodyRowsHeight;
var _$props = this.$props,
fixed = _$props.fixed,
rowKey = _$props.rowKey;
if (!fixed) {
return null;
}
if (expandedRowsHeight[rowKey]) {
return expandedRowsHeight[rowKey];
}
if (fixedColumnsBodyRowsHeight[rowKey]) {
return fixedColumnsBodyRowsHeight[rowKey];
}
return null;
},
hovered: function hovered() {
var currentHoverKey = this.store.currentHoverKey;
var rowKey = this.$props.rowKey;
return currentHoverKey === rowKey;
}
},
data: function data() {
// this.shouldRender = this.visible
return {
shouldRender: this.visible
};
},
mounted: function mounted() {
var _this = this;
if (this.shouldRender) {
this.$nextTick(function () {
_this.saveRowRef();
});
}
},
watch: {
visible: {
handler: function handler(val) {
if (val) {
this.shouldRender = true;
}
},
immediate: true
}
},
updated: function updated() {
var _this2 = this;
if (this.shouldRender && !this.rowRef) {
this.$nextTick(function () {
_this2.saveRowRef();
});
}
},
methods: {
onRowClick: function onRowClick(event) {
var rowPropFunc = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;
var record = this.record,
index = this.index;
this.__emit('rowClick', record, index, event);
rowPropFunc(event);
},
onRowDoubleClick: function onRowDoubleClick(event) {
var rowPropFunc = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;
var record = this.record,
index = this.index;
this.__emit('rowDoubleClick', record, index, event);
rowPropFunc(event);
},
onContextMenu: function onContextMenu(event) {
var rowPropFunc = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;
var record = this.record,
index = this.index;
this.__emit('rowContextmenu', record, index, event);
rowPropFunc(event);
},
onMouseEnter: function onMouseEnter(event) {
var rowPropFunc = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;
var record = this.record,
index = this.index,
rowKey = this.rowKey;
this.__emit('hover', true, rowKey);
this.__emit('rowMouseenter', record, index, event);
rowPropFunc(event);
},
onMouseLeave: function onMouseLeave(event) {
var rowPropFunc = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;
var record = this.record,
index = this.index,
rowKey = this.rowKey;
this.__emit('hover', false, rowKey);
this.__emit('rowMouseleave', record, index, event);
rowPropFunc(event);
},
setExpandedRowHeight: function setExpandedRowHeight() {
var store = this.store,
rowKey = this.rowKey;
var expandedRowsHeight = store.expandedRowsHeight;
var height = this.rowRef.getBoundingClientRect().height;
expandedRowsHeight = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, expandedRowsHeight, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, rowKey, height));
store.expandedRowsHeight = expandedRowsHeight;
},
setRowHeight: function setRowHeight() {
var store = this.store,
rowKey = this.rowKey;
var fixedColumnsBodyRowsHeight = store.fixedColumnsBodyRowsHeight;
var height = this.rowRef.getBoundingClientRect().height;
store.fixedColumnsBodyRowsHeight = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, fixedColumnsBodyRowsHeight, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, rowKey, height));
},
getStyle: function getStyle() {
var height = this.height,
visible = this.visible;
var style = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getStyle"])(this);
if (height) {
style = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, style, { height: height });
}
if (!visible && !style.display) {
style = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, style, { display: 'none' });
}
return style;
},
saveRowRef: function saveRowRef() {
this.rowRef = this.$el;
var isAnyColumnsFixed = this.isAnyColumnsFixed,
fixed = this.fixed,
expandedRow = this.expandedRow,
ancestorKeys = this.ancestorKeys;
if (!isAnyColumnsFixed) {
return;
}
if (!fixed && expandedRow) {
this.setExpandedRowHeight();
}
if (!fixed && ancestorKeys.length >= 0) {
this.setRowHeight();
}
}
},
render: function render() {
var _this3 = this;
var h = arguments[0];
if (!this.shouldRender) {
return null;
}
var prefixCls = this.prefixCls,
columns = this.columns,
record = this.record,
rowKey = this.rowKey,
index = this.index,
_customRow = this.customRow,
customRow = _customRow === undefined ? noop : _customRow,
indent = this.indent,
indentSize = this.indentSize,
hovered = this.hovered,
height = this.height,
visible = this.visible,
components = this.components,
hasExpandIcon = this.hasExpandIcon,
renderExpandIcon = this.renderExpandIcon,
renderExpandIconCell = this.renderExpandIconCell;
var BodyRow = components.body.row;
var BodyCell = components.body.cell;
var className = '';
if (hovered) {
className += ' ' + prefixCls + '-hover';
}
var cells = [];
renderExpandIconCell(cells);
for (var i = 0; i < columns.length; i += 1) {
var column = columns[i];
Object(_util_warning__WEBPACK_IMPORTED_MODULE_8__["default"])(column.onCellClick === undefined, 'column[onCellClick] is deprecated, please use column[customCell] instead.');
cells.push(h(_TableCell__WEBPACK_IMPORTED_MODULE_5__["default"], {
attrs: {
prefixCls: prefixCls,
record: record,
indentSize: indentSize,
indent: indent,
index: index,
column: column,
expandIcon: hasExpandIcon(i) && renderExpandIcon(),
component: BodyCell
},
key: column.key || column.dataIndex }));
}
var _ref = customRow(record, index) || {},
customClass = _ref['class'],
customClassName = _ref.className,
customStyle = _ref.style,
rowProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_0___default()(_ref, ['class', 'className', 'style']);
var style = { height: typeof height === 'number' ? height + 'px' : height };
if (!visible) {
style.display = 'none';
}
style = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, style, customStyle);
var rowClassName = classnames__WEBPACK_IMPORTED_MODULE_3___default()(prefixCls, className, prefixCls + '-level-' + indent, customClassName, customClass);
var rowPropEvents = rowProps.on || {};
var bodyRowProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["mergeProps"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, rowProps, { style: style }), {
on: {
click: function click(e) {
_this3.onRowClick(e, rowPropEvents.click);
},
dblclick: function dblclick(e) {
_this3.onRowDoubleClick(e, rowPropEvents.dblclick);
},
mouseenter: function mouseenter(e) {
_this3.onMouseEnter(e, rowPropEvents.mouseenter);
},
mouseleave: function mouseleave(e) {
_this3.onMouseLeave(e, rowPropEvents.mouseleave);
},
contextmenu: function contextmenu(e) {
_this3.onContextMenu(e, rowPropEvents.contextmenu);
}
},
'class': rowClassName
}, {
attrs: {
'data-row-key': rowKey
}
});
return h(
BodyRow,
bodyRowProps,
[cells]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (TableRow);
/***/ }),
/***/ "./components/vc-table/src/utils.js":
/*!******************************************!*\
!*** ./components/vc-table/src/utils.js ***!
\******************************************/
/*! exports provided: INTERNAL_COL_DEFINE, measureScrollbar, debounce, remove */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "INTERNAL_COL_DEFINE", function() { return INTERNAL_COL_DEFINE; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "measureScrollbar", function() { return measureScrollbar; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "debounce", function() { return debounce; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "remove", function() { return remove; });
var scrollbarVerticalSize = void 0;
var scrollbarHorizontalSize = void 0;
// Measure scrollbar width for padding body during modal show/hide
var scrollbarMeasure = {
position: 'absolute',
top: '-9999px',
width: '50px',
height: '50px'
};
var INTERNAL_COL_DEFINE = 'RC_TABLE_INTERNAL_COL_DEFINE';
function measureScrollbar(_ref) {
var _ref$direction = _ref.direction,
direction = _ref$direction === undefined ? 'vertical' : _ref$direction,
prefixCls = _ref.prefixCls;
if (typeof document === 'undefined' || typeof window === 'undefined') {
return 0;
}
var isVertical = direction === 'vertical';
if (isVertical && scrollbarVerticalSize) {
return scrollbarVerticalSize;
}
if (!isVertical && scrollbarHorizontalSize) {
return scrollbarHorizontalSize;
}
var scrollDiv = document.createElement('div');
Object.keys(scrollbarMeasure).forEach(function (scrollProp) {
scrollDiv.style[scrollProp] = scrollbarMeasure[scrollProp];
});
// apply hide scrollbar className ahead
scrollDiv.className = prefixCls + '-hide-scrollbar scroll-div-append-to-body';
// Append related overflow style
if (isVertical) {
scrollDiv.style.overflowY = 'scroll';
} else {
scrollDiv.style.overflowX = 'scroll';
}
document.body.appendChild(scrollDiv);
var size = 0;
if (isVertical) {
size = scrollDiv.offsetWidth - scrollDiv.clientWidth;
scrollbarVerticalSize = size;
} else {
size = scrollDiv.offsetHeight - scrollDiv.clientHeight;
scrollbarHorizontalSize = size;
}
document.body.removeChild(scrollDiv);
return size;
}
function debounce(func, wait, immediate) {
var timeout = void 0;
function debounceFunc() {
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
var context = this;
// https://fb.me/react-event-pooling
if (args[0] && args[0].persist) {
args[0].persist();
}
var later = function later() {
timeout = null;
if (!immediate) {
func.apply(context, args);
}
};
var callNow = immediate && !timeout;
clearTimeout(timeout);
timeout = setTimeout(later, wait);
if (callNow) {
func.apply(context, args);
}
}
debounceFunc.cancel = function cancel() {
if (timeout) {
clearTimeout(timeout);
timeout = null;
}
};
return debounceFunc;
}
function remove(array, item) {
var index = array.indexOf(item);
var front = array.slice(0, index);
var last = array.slice(index + 1, array.length);
return front.concat(last);
}
/***/ }),
/***/ "./components/vc-tabs/src/InkTabBarNode.jsx":
/*!**************************************************!*\
!*** ./components/vc-tabs/src/InkTabBarNode.jsx ***!
\**************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ "./components/vc-tabs/src/utils.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
function componentDidUpdate(component, init) {
var _component$$props = component.$props,
_component$$props$sty = _component$$props.styles,
styles = _component$$props$sty === undefined ? {} : _component$$props$sty,
panels = _component$$props.panels,
activeKey = _component$$props.activeKey,
direction = _component$$props.direction;
var rootNode = component.getRef('root');
var wrapNode = component.getRef('nav') || rootNode;
var inkBarNode = component.getRef('inkBar');
var activeTab = component.getRef('activeTab');
var inkBarNodeStyle = inkBarNode.style;
var tabBarPosition = component.$props.tabBarPosition;
var activeIndex = Object(_utils__WEBPACK_IMPORTED_MODULE_3__["getActiveIndex"])(panels, activeKey);
if (init) {
// prevent mount animation
inkBarNodeStyle.display = 'none';
}
if (activeTab) {
var tabNode = activeTab;
var transformSupported = Object(_utils__WEBPACK_IMPORTED_MODULE_3__["isTransform3dSupported"])(inkBarNodeStyle);
// Reset current style
Object(_utils__WEBPACK_IMPORTED_MODULE_3__["setTransform"])(inkBarNodeStyle, '');
inkBarNodeStyle.width = '';
inkBarNodeStyle.height = '';
inkBarNodeStyle.left = '';
inkBarNodeStyle.top = '';
inkBarNodeStyle.bottom = '';
inkBarNodeStyle.right = '';
if (tabBarPosition === 'top' || tabBarPosition === 'bottom') {
var left = Object(_utils__WEBPACK_IMPORTED_MODULE_3__["getLeft"])(tabNode, wrapNode);
var width = tabNode.offsetWidth;
// If tabNode'width width equal to wrapNode'width when tabBarPosition is top or bottom
// It means no css working, then ink bar should not have width until css is loaded
// Fix https://github.com/ant-design/ant-design/issues/7564
if (width === rootNode.offsetWidth) {
width = 0;
} else if (styles.inkBar && styles.inkBar.width !== undefined) {
width = parseFloat(styles.inkBar.width, 10);
if (width) {
left += (tabNode.offsetWidth - width) / 2;
}
}
if (direction === 'rtl') {
left = Object(_utils__WEBPACK_IMPORTED_MODULE_3__["getStyle"])(tabNode, 'margin-left') - left;
}
// use 3d gpu to optimize render
if (transformSupported) {
Object(_utils__WEBPACK_IMPORTED_MODULE_3__["setTransform"])(inkBarNodeStyle, 'translate3d(' + left + 'px,0,0)');
} else {
inkBarNodeStyle.left = left + 'px';
}
inkBarNodeStyle.width = width + 'px';
} else {
var top = Object(_utils__WEBPACK_IMPORTED_MODULE_3__["getTop"])(tabNode, wrapNode, true);
var height = tabNode.offsetHeight;
if (styles.inkBar && styles.inkBar.height !== undefined) {
height = parseFloat(styles.inkBar.height, 10);
if (height) {
top += (tabNode.offsetHeight - height) / 2;
}
}
if (transformSupported) {
Object(_utils__WEBPACK_IMPORTED_MODULE_3__["setTransform"])(inkBarNodeStyle, 'translate3d(0,' + top + 'px,0)');
inkBarNodeStyle.top = '0';
} else {
inkBarNodeStyle.top = top + 'px';
}
inkBarNodeStyle.height = height + 'px';
}
}
inkBarNodeStyle.display = activeIndex !== -1 ? 'block' : 'none';
}
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'InkTabBarNode',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
props: {
inkBarAnimated: {
type: Boolean,
'default': true
},
direction: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
prefixCls: String,
styles: Object,
tabBarPosition: String,
saveRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func.def(function () {}),
getRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func.def(function () {}),
panels: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].array,
activeKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number])
},
updated: function updated() {
this.$nextTick(function () {
componentDidUpdate(this);
});
},
mounted: function mounted() {
this.$nextTick(function () {
componentDidUpdate(this, true);
});
},
render: function render() {
var _classes;
var h = arguments[0];
var prefixCls = this.prefixCls,
_styles = this.styles,
styles = _styles === undefined ? {} : _styles,
inkBarAnimated = this.inkBarAnimated;
var className = prefixCls + '-ink-bar';
var classes = (_classes = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classes, className, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classes, inkBarAnimated ? className + '-animated' : className + '-no-animated', true), _classes);
return h('div', babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
style: styles.inkBar,
'class': classes,
key: 'inkBar'
}, {
directives: [{
name: 'ant-ref',
value: this.saveRef('inkBar')
}]
}]));
}
});
/***/ }),
/***/ "./components/vc-tabs/src/KeyCode.js":
/*!*******************************************!*\
!*** ./components/vc-tabs/src/KeyCode.js ***!
\*******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ({
/**
* LEFT
*/
LEFT: 37, // also NUM_WEST
/**
* UP
*/
UP: 38, // also NUM_NORTH
/**
* RIGHT
*/
RIGHT: 39, // also NUM_EAST
/**
* DOWN
*/
DOWN: 40 // also NUM_SOUTH
});
/***/ }),
/***/ "./components/vc-tabs/src/SaveRef.jsx":
/*!********************************************!*\
!*** ./components/vc-tabs/src/SaveRef.jsx ***!
\********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony default export */ __webpack_exports__["default"] = ({
props: {
children: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func.def(function () {
return null;
})
},
methods: {
getRef: function getRef(name) {
return this[name];
},
saveRef: function saveRef(name) {
var _this = this;
return function (node) {
if (node) {
_this[name] = node;
}
};
}
},
render: function render() {
var _this2 = this;
// 每次都new一个新的function避免子节点不能重新渲染
var saveRef = function saveRef(name) {
return _this2.saveRef(name);
};
var getRef = function getRef(name) {
return _this2.getRef(name);
};
return this.children(saveRef, getRef);
}
});
/***/ }),
/***/ "./components/vc-tabs/src/ScrollableInkTabBar.jsx":
/*!********************************************************!*\
!*** ./components/vc-tabs/src/ScrollableInkTabBar.jsx ***!
\********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _InkTabBarNode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./InkTabBarNode */ "./components/vc-tabs/src/InkTabBarNode.jsx");
/* harmony import */ var _TabBarTabsNode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./TabBarTabsNode */ "./components/vc-tabs/src/TabBarTabsNode.jsx");
/* harmony import */ var _TabBarRootNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TabBarRootNode */ "./components/vc-tabs/src/TabBarRootNode.jsx");
/* harmony import */ var _ScrollableTabBarNode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ScrollableTabBarNode */ "./components/vc-tabs/src/ScrollableTabBarNode.jsx");
/* harmony import */ var _SaveRef__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./SaveRef */ "./components/vc-tabs/src/SaveRef.jsx");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'ScrollableInkTabBar',
inheritAttrs: false,
props: ['extraContent', 'inkBarAnimated', 'tabBarGutter', 'prefixCls', 'navWrapper', 'tabBarPosition', 'panels', 'activeKey', 'prevIcon', 'nextIcon'],
render: function render() {
var h = arguments[0];
var props = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.$props);
var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this);
var renderTabBarNode = this.$scopedSlots['default'];
return h(_SaveRef__WEBPACK_IMPORTED_MODULE_6__["default"], {
attrs: {
children: function children(saveRef, getRef) {
return h(
_TabBarRootNode__WEBPACK_IMPORTED_MODULE_4__["default"],
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
attrs: { saveRef: saveRef }
}, { props: props, on: listeners }]),
[h(
_ScrollableTabBarNode__WEBPACK_IMPORTED_MODULE_5__["default"],
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
attrs: { saveRef: saveRef, getRef: getRef }
}, { props: props, on: listeners }]),
[h(_TabBarTabsNode__WEBPACK_IMPORTED_MODULE_3__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
attrs: {
saveRef: saveRef
}
}, { props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, props, { renderTabBarNode: renderTabBarNode }), on: listeners }])), h(_InkTabBarNode__WEBPACK_IMPORTED_MODULE_2__["default"], babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
attrs: { saveRef: saveRef, getRef: getRef }
}, { props: props, on: listeners }]))]
)]
);
}
}
});
}
});
/***/ }),
/***/ "./components/vc-tabs/src/ScrollableTabBarNode.jsx":
/*!*********************************************************!*\
!*** ./components/vc-tabs/src/ScrollableTabBarNode.jsx ***!
\*********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/debounce */ "./node_modules/lodash/debounce.js");
/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! resize-observer-polyfill */ "./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils */ "./components/vc-tabs/src/utils.js");
function noop() {}
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'ScrollableTabBarNode',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_6__["default"]],
props: {
activeKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
getRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].func.def(function () {}),
saveRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].func.def(function () {}),
tabBarPosition: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].oneOf(['left', 'right', 'top', 'bottom']).def('left'),
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string.def(''),
scrollAnimated: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].bool.def(true),
navWrapper: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].func.def(function (arg) {
return arg;
}),
prevIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
nextIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].any,
direction: _util_vue_types__WEBPACK_IMPORTED_MODULE_5__["default"].string
},
data: function data() {
this.offset = 0;
this.prevProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props);
return {
next: false,
prev: false
};
},
watch: {
tabBarPosition: function tabBarPosition() {
var _this = this;
this.tabBarPositionChange = true;
this.$nextTick(function () {
_this.setOffset(0);
});
}
},
mounted: function mounted() {
var _this2 = this;
this.$nextTick(function () {
_this2.updatedCal();
_this2.debouncedResize = lodash_debounce__WEBPACK_IMPORTED_MODULE_3___default()(function () {
_this2.setNextPrev();
_this2.scrollToActiveTab();
}, 200);
_this2.resizeObserver = new resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_4__["default"](_this2.debouncedResize);
_this2.resizeObserver.observe(_this2.$props.getRef('container'));
});
},
updated: function updated() {
var _this3 = this;
this.$nextTick(function () {
_this3.updatedCal(_this3.prevProps);
_this3.prevProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _this3.$props);
});
},
beforeDestroy: function beforeDestroy() {
if (this.resizeObserver) {
this.resizeObserver.disconnect();
}
if (this.debouncedResize && this.debouncedResize.cancel) {
this.debouncedResize.cancel();
}
},
methods: {
updatedCal: function updatedCal(prevProps) {
var _this4 = this;
var props = this.$props;
if (prevProps && prevProps.tabBarPosition !== props.tabBarPosition) {
this.setOffset(0);
return;
}
// wait next, prev show hide
if (this.isNextPrevShown(this.$data) !== this.isNextPrevShown(this.setNextPrev())) {
this.$forceUpdate();
this.$nextTick(function () {
_this4.scrollToActiveTab();
});
} else if (!prevProps || props.activeKey !== prevProps.activeKey) {
// can not use props.activeKey
this.scrollToActiveTab();
}
},
setNextPrev: function setNextPrev() {
var navNode = this.$props.getRef('nav');
var navTabsContainer = this.$props.getRef('navTabsContainer');
var navNodeWH = this.getScrollWH(navTabsContainer || navNode);
// Add 1px to fix `offsetWidth` with decimal in Chrome not correct handle
// https://github.com/ant-design/ant-design/issues/13423
var containerWH = this.getOffsetWH(this.$props.getRef('container')) + 1;
var navWrapNodeWH = this.getOffsetWH(this.$props.getRef('navWrap'));
var offset = this.offset;
var minOffset = containerWH - navNodeWH;
var next = this.next,
prev = this.prev;
if (minOffset >= 0) {
next = false;
this.setOffset(0, false);
offset = 0;
} else if (minOffset < offset) {
next = true;
} else {
next = false;
// Fix https://github.com/ant-design/ant-design/issues/8861
// Test with container offset which is stable
// and set the offset of the nav wrap node
var realOffset = navWrapNodeWH - navNodeWH;
this.setOffset(realOffset, false);
offset = realOffset;
}
if (offset < 0) {
prev = true;
} else {
prev = false;
}
this.setNext(next);
this.setPrev(prev);
return {
next: next,
prev: prev
};
},
getOffsetWH: function getOffsetWH(node) {
var tabBarPosition = this.$props.tabBarPosition;
var prop = 'offsetWidth';
if (tabBarPosition === 'left' || tabBarPosition === 'right') {
prop = 'offsetHeight';
}
return node[prop];
},
getScrollWH: function getScrollWH(node) {
var tabBarPosition = this.tabBarPosition;
var prop = 'scrollWidth';
if (tabBarPosition === 'left' || tabBarPosition === 'right') {
prop = 'scrollHeight';
}
return node[prop];
},
getOffsetLT: function getOffsetLT(node) {
var tabBarPosition = this.$props.tabBarPosition;
var prop = 'left';
if (tabBarPosition === 'left' || tabBarPosition === 'right') {
prop = 'top';
}
return node.getBoundingClientRect()[prop];
},
setOffset: function setOffset(offset) {
var checkNextPrev = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
var target = Math.min(0, offset);
if (this.offset !== target) {
this.offset = target;
var navOffset = {};
var tabBarPosition = this.$props.tabBarPosition;
var navStyle = this.$props.getRef('nav').style;
var transformSupported = Object(_utils__WEBPACK_IMPORTED_MODULE_8__["isTransform3dSupported"])(navStyle);
if (tabBarPosition === 'left' || tabBarPosition === 'right') {
if (transformSupported) {
navOffset = {
value: 'translate3d(0,' + target + 'px,0)'
};
} else {
navOffset = {
name: 'top',
value: target + 'px'
};
}
} else if (transformSupported) {
if (this.$props.direction === 'rtl') {
target = -target;
}
navOffset = {
value: 'translate3d(' + target + 'px,0,0)'
};
} else {
navOffset = {
name: 'left',
value: target + 'px'
};
}
if (transformSupported) {
Object(_utils__WEBPACK_IMPORTED_MODULE_8__["setTransform"])(navStyle, navOffset.value);
} else {
navStyle[navOffset.name] = navOffset.value;
}
if (checkNextPrev) {
this.setNextPrev();
}
}
},
setPrev: function setPrev(v) {
if (this.prev !== v) {
this.prev = v;
}
},
setNext: function setNext(v) {
if (this.next !== v) {
this.next = v;
}
},
isNextPrevShown: function isNextPrevShown(state) {
if (state) {
return state.next || state.prev;
}
return this.next || this.prev;
},
prevTransitionEnd: function prevTransitionEnd(e) {
if (e.propertyName !== 'opacity') {
return;
}
var container = this.$props.getRef('container');
this.scrollToActiveTab({
target: container,
currentTarget: container
});
},
scrollToActiveTab: function scrollToActiveTab(e) {
var activeTab = this.$props.getRef('activeTab');
var navWrap = this.$props.getRef('navWrap');
if (e && e.target !== e.currentTarget || !activeTab) {
return;
}
// when not scrollable or enter scrollable first time, don't emit scrolling
var needToSroll = this.isNextPrevShown() && this.lastNextPrevShown;
this.lastNextPrevShown = this.isNextPrevShown();
if (!needToSroll) {
return;
}
var activeTabWH = this.getScrollWH(activeTab);
var navWrapNodeWH = this.getOffsetWH(navWrap);
var offset = this.offset;
var wrapOffset = this.getOffsetLT(navWrap);
var activeTabOffset = this.getOffsetLT(activeTab);
if (wrapOffset > activeTabOffset) {
offset += wrapOffset - activeTabOffset;
this.setOffset(offset);
} else if (wrapOffset + navWrapNodeWH < activeTabOffset + activeTabWH) {
offset -= activeTabOffset + activeTabWH - (wrapOffset + navWrapNodeWH);
this.setOffset(offset);
}
},
prevClick: function prevClick(e) {
this.__emit('prevClick', e);
var navWrapNode = this.$props.getRef('navWrap');
var navWrapNodeWH = this.getOffsetWH(navWrapNode);
var offset = this.offset;
this.setOffset(offset + navWrapNodeWH);
},
nextClick: function nextClick(e) {
this.__emit('nextClick', e);
var navWrapNode = this.$props.getRef('navWrap');
var navWrapNodeWH = this.getOffsetWH(navWrapNode);
var offset = this.offset;
this.setOffset(offset - navWrapNodeWH);
}
},
render: function render() {
var _ref, _ref2, _navClasses, _ref3;
var h = arguments[0];
var next = this.next,
prev = this.prev;
var _$props = this.$props,
prefixCls = _$props.prefixCls,
scrollAnimated = _$props.scrollAnimated,
navWrapper = _$props.navWrapper;
var prevIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'prevIcon');
var nextIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getComponentFromProp"])(this, 'nextIcon');
var showNextPrev = prev || next;
var prevButton = h(
'span',
{
on: {
'click': prev ? this.prevClick : noop,
'transitionend': this.prevTransitionEnd
},
attrs: {
unselectable: 'unselectable'
},
'class': (_ref = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, prefixCls + '-tab-prev', 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, prefixCls + '-tab-btn-disabled', !prev), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref, prefixCls + '-tab-arrow-show', showNextPrev), _ref)
},
[prevIcon || h('span', { 'class': prefixCls + '-tab-prev-icon' })]
);
var nextButton = h(
'span',
{
on: {
'click': next ? this.nextClick : noop
},
attrs: {
unselectable: 'unselectable'
},
'class': (_ref2 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref2, prefixCls + '-tab-next', 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref2, prefixCls + '-tab-btn-disabled', !next), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref2, prefixCls + '-tab-arrow-show', showNextPrev), _ref2)
},
[nextIcon || h('span', { 'class': prefixCls + '-tab-next-icon' })]
);
var navClassName = prefixCls + '-nav';
var navClasses = (_navClasses = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_navClasses, navClassName, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_navClasses, scrollAnimated ? navClassName + '-animated' : navClassName + '-no-animated', true), _navClasses);
return h(
'div',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
'class': (_ref3 = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref3, prefixCls + '-nav-container', 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_ref3, prefixCls + '-nav-container-scrolling', showNextPrev), _ref3),
key: 'container'
}, {
directives: [{
name: 'ant-ref',
value: this.saveRef('container')
}]
}]),
[prevButton, nextButton, h(
'div',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
'class': prefixCls + '-nav-wrap'
}, {
directives: [{
name: 'ant-ref',
value: this.saveRef('navWrap')
}]
}]),
[h(
'div',
{ 'class': prefixCls + '-nav-scroll' },
[h(
'div',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
'class': navClasses
}, {
directives: [{
name: 'ant-ref',
value: this.saveRef('nav')
}]
}]),
[navWrapper(this.$slots['default'])]
)]
)]
)]
);
}
});
/***/ }),
/***/ "./components/vc-tabs/src/Sentinel.jsx":
/*!*********************************************!*\
!*** ./components/vc-tabs/src/Sentinel.jsx ***!
\*********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/KeyCode */ "./components/_util/KeyCode.js");
var sentinelStyle = { width: 0, height: 0, overflow: 'hidden', position: 'absolute' };
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'Sentinel',
props: {
setRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
prevElement: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
nextElement: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
},
methods: {
onKeyDown: function onKeyDown(_ref) {
var target = _ref.target,
which = _ref.which,
shiftKey = _ref.shiftKey;
var _$props = this.$props,
nextElement = _$props.nextElement,
prevElement = _$props.prevElement;
if (which !== _util_KeyCode__WEBPACK_IMPORTED_MODULE_2__["default"].TAB || document.activeElement !== target) return;
// Tab next
if (!shiftKey && nextElement) {
nextElement.focus();
}
// Tab prev
if (shiftKey && prevElement) {
prevElement.focus();
}
}
},
render: function render() {
var h = arguments[0];
var setRef = this.$props.setRef;
return h(
'div',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
attrs: {
tabIndex: 0
}
}, {
directives: [{
name: 'ant-ref',
value: setRef
}]
}, {
style: sentinelStyle,
on: {
'keydown': this.onKeyDown
},
attrs: {
role: 'presentation'
}
}]),
[this.$slots['default']]
);
}
});
/***/ }),
/***/ "./components/vc-tabs/src/TabBarRootNode.jsx":
/*!***************************************************!*\
!*** ./components/vc-tabs/src/TabBarRootNode.jsx ***!
\***************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
function noop() {}
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'TabBarRootNode',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__["default"]],
props: {
saveRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func.def(noop),
getRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func.def(noop),
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def(''),
tabBarPosition: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def('top'),
extraContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any
},
methods: {
onKeyDown: function onKeyDown(e) {
this.__emit('keydown', e);
}
},
render: function render() {
var h = arguments[0];
var prefixCls = this.prefixCls,
onKeyDown = this.onKeyDown,
tabBarPosition = this.tabBarPosition,
extraContent = this.extraContent;
var cls = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, prefixCls + '-bar', true);
var topOrBottom = tabBarPosition === 'top' || tabBarPosition === 'bottom';
var tabBarExtraContentStyle = topOrBottom ? { float: 'right' } : {};
var children = this.$slots['default'];
var newChildren = children;
if (extraContent) {
newChildren = [Object(_util_vnode__WEBPACK_IMPORTED_MODULE_3__["cloneElement"])(extraContent, {
key: 'extra',
style: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, tabBarExtraContentStyle)
}), Object(_util_vnode__WEBPACK_IMPORTED_MODULE_3__["cloneElement"])(children, { key: 'content' })];
newChildren = topOrBottom ? newChildren : newChildren.reverse();
}
return h(
'div',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
attrs: {
role: 'tablist',
tabIndex: '0'
},
'class': cls, on: {
'keydown': onKeyDown
}
}, {
directives: [{
name: 'ant-ref',
value: this.saveRef('root')
}]
}]),
[newChildren]
);
}
});
/***/ }),
/***/ "./components/vc-tabs/src/TabBarTabsNode.jsx":
/*!***************************************************!*\
!*** ./components/vc-tabs/src/TabBarTabsNode.jsx ***!
\***************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! warning */ "./node_modules/warning/warning.js");
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils */ "./components/vc-tabs/src/utils.js");
function noop() {}
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'TabBarTabsNode',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
props: {
activeKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number]),
panels: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any.def([]),
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.def(''),
tabBarGutter: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any.def(null),
onTabClick: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
saveRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func.def(noop),
getRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func.def(noop),
renderTabBarNode: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
tabBarPosition: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
direction: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string
},
render: function render() {
var _this = this;
var h = arguments[0];
var _$props = this.$props,
children = _$props.panels,
activeKey = _$props.activeKey,
prefixCls = _$props.prefixCls,
tabBarGutter = _$props.tabBarGutter,
saveRef = _$props.saveRef,
tabBarPosition = _$props.tabBarPosition,
direction = _$props.direction;
var rst = [];
var renderTabBarNode = this.renderTabBarNode || this.$scopedSlots.renderTabBarNode;
children.forEach(function (child, index) {
if (!child) {
return;
}
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getOptionProps"])(child);
var key = child.key;
var cls = activeKey === key ? prefixCls + '-tab-active' : '';
cls += ' ' + prefixCls + '-tab';
var events = { on: {} };
var disabled = props.disabled || props.disabled === '';
if (disabled) {
cls += ' ' + prefixCls + '-tab-disabled';
} else {
events.on.click = function () {
_this.__emit('tabClick', key);
};
}
var directives = [];
if (activeKey === key) {
directives.push({
name: 'ant-ref',
value: saveRef('activeTab')
});
}
var tab = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(child, 'tab');
var gutter = tabBarGutter && index === children.length - 1 ? 0 : tabBarGutter;
gutter = typeof gutter === 'number' ? gutter + 'px' : gutter;
var marginProperty = direction === 'rtl' ? 'marginLeft' : 'marginRight';
var style = babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, Object(_utils__WEBPACK_IMPORTED_MODULE_6__["isVertical"])(tabBarPosition) ? 'marginBottom' : marginProperty, gutter);
warning__WEBPACK_IMPORTED_MODULE_2___default()(tab !== undefined, 'There must be `tab` property or slot on children of Tabs.');
var node = h(
'div',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
attrs: {
role: 'tab',
'aria-disabled': disabled ? 'true' : 'false',
'aria-selected': activeKey === key ? 'true' : 'false'
}
}, events, {
'class': cls,
key: key,
style: style
}, { directives: directives }]),
[tab]
);
if (renderTabBarNode) {
node = renderTabBarNode(node);
}
rst.push(node);
});
return h(
'div',
{
directives: [{
name: 'ant-ref',
value: this.saveRef('navTabsContainer')
}]
},
[rst]
);
}
});
/***/ }),
/***/ "./components/vc-tabs/src/TabContent.jsx":
/*!***********************************************!*\
!*** ./components/vc-tabs/src/TabContent.jsx ***!
\***********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils */ "./components/vc-tabs/src/utils.js");
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'TabContent',
props: {
animated: { type: Boolean, 'default': true },
animatedWithMargin: { type: Boolean, 'default': true },
prefixCls: {
'default': 'ant-tabs',
type: String
},
activeKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number]),
tabBarPosition: String,
direction: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
destroyInactiveTabPane: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool
},
computed: {
classes: function classes() {
var _ref;
var animated = this.animated,
prefixCls = this.prefixCls;
return _ref = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, prefixCls + '-content', true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, animated ? prefixCls + '-content-animated' : prefixCls + '-content-no-animated', true), _ref;
}
},
methods: {
getTabPanes: function getTabPanes() {
var props = this.$props;
var activeKey = props.activeKey;
var children = this.$slots['default'] || [];
var newChildren = [];
children.forEach(function (child) {
if (!child) {
return;
}
var key = child.key;
var active = activeKey === key;
newChildren.push(Object(_util_vnode__WEBPACK_IMPORTED_MODULE_2__["cloneElement"])(child, {
props: {
active: active,
destroyInactiveTabPane: props.destroyInactiveTabPane,
rootPrefixCls: props.prefixCls
}
}));
});
return newChildren;
}
},
render: function render() {
var h = arguments[0];
var activeKey = this.activeKey,
tabBarPosition = this.tabBarPosition,
animated = this.animated,
animatedWithMargin = this.animatedWithMargin,
direction = this.direction,
classes = this.classes;
var style = {};
if (animated && this.$slots['default']) {
var activeIndex = Object(_utils__WEBPACK_IMPORTED_MODULE_3__["getActiveIndex"])(this.$slots['default'], activeKey);
if (activeIndex !== -1) {
var animatedStyle = animatedWithMargin ? Object(_utils__WEBPACK_IMPORTED_MODULE_3__["getMarginStyle"])(activeIndex, tabBarPosition) : Object(_utils__WEBPACK_IMPORTED_MODULE_3__["getTransformPropValue"])(Object(_utils__WEBPACK_IMPORTED_MODULE_3__["getTransformByIndex"])(activeIndex, tabBarPosition, direction));
style = animatedStyle;
} else {
style = {
display: 'none'
};
}
}
return h(
'div',
{ 'class': classes, style: style },
[this.getTabPanes()]
);
}
});
/***/ }),
/***/ "./components/vc-tabs/src/TabPane.jsx":
/*!********************************************!*\
!*** ./components/vc-tabs/src/TabPane.jsx ***!
\********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _Sentinel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Sentinel */ "./components/vc-tabs/src/Sentinel.jsx");
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'TabPane',
props: {
active: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
destroyInactiveTabPane: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
forceRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
rootPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
tab: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
closable: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool
},
inject: {
sentinelContext: { 'default': function _default() {
return {};
} }
},
render: function render() {
var _cls;
var h = arguments[0];
var _$props = this.$props,
destroyInactiveTabPane = _$props.destroyInactiveTabPane,
active = _$props.active,
forceRender = _$props.forceRender,
rootPrefixCls = _$props.rootPrefixCls;
var children = this.$slots['default'];
var placeholder = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getComponentFromProp"])(this, 'placeholder');
this._isActived = this._isActived || active;
var prefixCls = rootPrefixCls + '-tabpane';
var cls = (_cls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_cls, prefixCls, 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_cls, prefixCls + '-inactive', !active), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_cls, prefixCls + '-active', active), _cls);
var isRender = destroyInactiveTabPane ? active : this._isActived;
var shouldRender = isRender || forceRender;
var _sentinelContext = this.sentinelContext,
sentinelStart = _sentinelContext.sentinelStart,
sentinelEnd = _sentinelContext.sentinelEnd,
setPanelSentinelStart = _sentinelContext.setPanelSentinelStart,
setPanelSentinelEnd = _sentinelContext.setPanelSentinelEnd;
var panelSentinelStart = void 0;
var panelSentinelEnd = void 0;
if (active && shouldRender) {
panelSentinelStart = h(_Sentinel__WEBPACK_IMPORTED_MODULE_3__["default"], {
attrs: { setRef: setPanelSentinelStart, prevElement: sentinelStart }
});
panelSentinelEnd = h(_Sentinel__WEBPACK_IMPORTED_MODULE_3__["default"], {
attrs: { setRef: setPanelSentinelEnd, nextElement: sentinelEnd }
});
}
return h(
'div',
{ 'class': cls, attrs: { role: 'tabpanel', 'aria-hidden': active ? 'false' : 'true' }
},
[panelSentinelStart, shouldRender ? children : placeholder, panelSentinelEnd]
);
}
});
/***/ }),
/***/ "./components/vc-tabs/src/Tabs.jsx":
/*!*****************************************!*\
!*** ./components/vc-tabs/src/Tabs.jsx ***!
\*****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! raf */ "./node_modules/raf/index.js");
/* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(raf__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _KeyCode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./KeyCode */ "./components/vc-tabs/src/KeyCode.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _Sentinel__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Sentinel */ "./components/vc-tabs/src/Sentinel.jsx");
/* harmony import */ var _util_isValid__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../_util/isValid */ "./components/_util/isValid.js");
function getDefaultActiveKey(props) {
var activeKey = void 0;
var children = props.children;
children.forEach(function (child) {
if (child && !Object(_util_isValid__WEBPACK_IMPORTED_MODULE_10__["default"])(activeKey) && !child.disabled) {
activeKey = child.key;
}
});
return activeKey;
}
function activeKeyIsValid(props, key) {
var children = props.children;
var keys = children.map(function (child) {
return child && child.key;
});
return keys.indexOf(key) >= 0;
}
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'Tabs',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
model: {
prop: 'activeKey',
event: 'change'
},
props: {
destroyInactiveTabPane: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
renderTabBar: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func.isRequired,
renderTabContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func.isRequired,
navWrapper: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func.def(function (arg) {
return arg;
}),
children: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any.def([]),
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def('ant-tabs'),
tabBarPosition: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def('top'),
activeKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number]),
defaultActiveKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number]),
__propsSymbol__: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
direction: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string.def('ltr'),
tabBarGutter: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number
},
data: function data() {
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(this);
var activeKey = void 0;
if ('activeKey' in props) {
activeKey = props.activeKey;
} else if ('defaultActiveKey' in props) {
activeKey = props.defaultActiveKey;
} else {
activeKey = getDefaultActiveKey(props);
}
return {
_activeKey: activeKey
};
},
provide: function provide() {
return {
sentinelContext: this
};
},
watch: {
__propsSymbol__: function __propsSymbol__() {
var nextProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(this);
if ('activeKey' in nextProps) {
this.setState({
_activeKey: nextProps.activeKey
});
} else if (!activeKeyIsValid(nextProps, this.$data._activeKey)) {
// https://github.com/ant-design/ant-design/issues/7093
this.setState({
_activeKey: getDefaultActiveKey(nextProps)
});
}
}
},
beforeDestroy: function beforeDestroy() {
this.destroy = true;
raf__WEBPACK_IMPORTED_MODULE_5___default.a.cancel(this.sentinelId);
},
methods: {
onTabClick: function onTabClick(activeKey, e) {
if (this.tabBar.componentOptions && this.tabBar.componentOptions.listeners && this.tabBar.componentOptions.listeners.tabClick) {
this.tabBar.componentOptions.listeners.tabClick(activeKey, e);
}
this.setActiveKey(activeKey);
},
onNavKeyDown: function onNavKeyDown(e) {
var eventKeyCode = e.keyCode;
if (eventKeyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_6__["default"].RIGHT || eventKeyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_6__["default"].DOWN) {
e.preventDefault();
var nextKey = this.getNextActiveKey(true);
this.onTabClick(nextKey);
} else if (eventKeyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_6__["default"].LEFT || eventKeyCode === _KeyCode__WEBPACK_IMPORTED_MODULE_6__["default"].UP) {
e.preventDefault();
var previousKey = this.getNextActiveKey(false);
this.onTabClick(previousKey);
}
},
onScroll: function onScroll(_ref) {
var target = _ref.target,
currentTarget = _ref.currentTarget;
if (target === currentTarget && target.scrollLeft > 0) {
target.scrollLeft = 0;
}
},
// Sentinel for tab index
setSentinelStart: function setSentinelStart(node) {
this.sentinelStart = node;
},
setSentinelEnd: function setSentinelEnd(node) {
this.sentinelEnd = node;
},
setPanelSentinelStart: function setPanelSentinelStart(node) {
if (node !== this.panelSentinelStart) {
this.updateSentinelContext();
}
this.panelSentinelStart = node;
},
setPanelSentinelEnd: function setPanelSentinelEnd(node) {
if (node !== this.panelSentinelEnd) {
this.updateSentinelContext();
}
this.panelSentinelEnd = node;
},
setActiveKey: function setActiveKey(activeKey) {
if (this.$data._activeKey !== activeKey) {
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(this);
if (!('activeKey' in props)) {
this.setState({
_activeKey: activeKey
});
}
this.__emit('change', activeKey);
}
},
getNextActiveKey: function getNextActiveKey(next) {
var activeKey = this.$data._activeKey;
var children = [];
this.$props.children.forEach(function (c) {
var disabled = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getValueByProp"])(c, 'disabled');
if (c && !disabled && disabled !== '') {
if (next) {
children.push(c);
} else {
children.unshift(c);
}
}
});
var length = children.length;
var ret = length && children[0].key;
children.forEach(function (child, i) {
if (child.key === activeKey) {
if (i === length - 1) {
ret = children[0].key;
} else {
ret = children[i + 1].key;
}
}
});
return ret;
},
updateSentinelContext: function updateSentinelContext() {
var _this = this;
if (this.destroy) return;
raf__WEBPACK_IMPORTED_MODULE_5___default.a.cancel(this.sentinelId);
this.sentinelId = raf__WEBPACK_IMPORTED_MODULE_5___default()(function () {
if (_this.destroy) return;
_this.$forceUpdate();
});
}
},
render: function render() {
var _cls;
var h = arguments[0];
var props = this.$props;
var prefixCls = props.prefixCls,
navWrapper = props.navWrapper,
tabBarPosition = props.tabBarPosition,
renderTabContent = props.renderTabContent,
renderTabBar = props.renderTabBar,
destroyInactiveTabPane = props.destroyInactiveTabPane,
direction = props.direction,
tabBarGutter = props.tabBarGutter;
var cls = (_cls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls, 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-' + tabBarPosition, 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_cls, prefixCls + '-rtl', direction === 'rtl'), _cls);
this.tabBar = renderTabBar();
var tabBar = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_8__["cloneElement"])(this.tabBar, {
props: {
prefixCls: prefixCls,
navWrapper: navWrapper,
tabBarPosition: tabBarPosition,
panels: props.children,
activeKey: this.$data._activeKey,
direction: direction,
tabBarGutter: tabBarGutter
},
on: {
keydown: this.onNavKeyDown,
tabClick: this.onTabClick
},
key: 'tabBar'
});
var tabContent = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_8__["cloneElement"])(renderTabContent(), {
props: {
prefixCls: prefixCls,
tabBarPosition: tabBarPosition,
activeKey: this.$data._activeKey,
destroyInactiveTabPane: destroyInactiveTabPane,
direction: direction
},
on: {
change: this.setActiveKey
},
children: props.children,
key: 'tabContent'
});
var sentinelStart = h(_Sentinel__WEBPACK_IMPORTED_MODULE_9__["default"], {
key: 'sentinelStart',
attrs: { setRef: this.setSentinelStart,
nextElement: this.panelSentinelStart
}
});
var sentinelEnd = h(_Sentinel__WEBPACK_IMPORTED_MODULE_9__["default"], {
key: 'sentinelEnd',
attrs: { setRef: this.setSentinelEnd,
prevElement: this.panelSentinelEnd
}
});
var contents = [];
if (tabBarPosition === 'bottom') {
contents.push(sentinelStart, tabContent, sentinelEnd, tabBar);
} else {
contents.push(tabBar, sentinelStart, tabContent, sentinelEnd);
}
var listeners = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(omit_js__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getListeners"])(this), ['change']), {
scroll: this.onScroll
});
return h(
'div',
{ on: listeners, 'class': cls },
[contents]
);
}
});
/***/ }),
/***/ "./components/vc-tabs/src/index.js":
/*!*****************************************!*\
!*** ./components/vc-tabs/src/index.js ***!
\*****************************************/
/*! exports provided: default, TabPane, TabContent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
/* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ "vue");
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _Tabs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Tabs */ "./components/vc-tabs/src/Tabs.jsx");
/* harmony import */ var _TabPane__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./TabPane */ "./components/vc-tabs/src/TabPane.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabPane", function() { return _TabPane__WEBPACK_IMPORTED_MODULE_3__["default"]; });
/* harmony import */ var _TabContent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TabContent */ "./components/vc-tabs/src/TabContent.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabContent", function() { return _TabContent__WEBPACK_IMPORTED_MODULE_4__["default"]; });
// based on rc-tabs 9.7.0
vue__WEBPACK_IMPORTED_MODULE_1___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_0___default.a, { name: 'ant-ref' });
/* harmony default export */ __webpack_exports__["default"] = (_Tabs__WEBPACK_IMPORTED_MODULE_2__["default"]);
/***/ }),
/***/ "./components/vc-tabs/src/utils.js":
/*!*****************************************!*\
!*** ./components/vc-tabs/src/utils.js ***!
\*****************************************/
/*! exports provided: toArray, getActiveIndex, getActiveKey, setTransform, isTransform3dSupported, setTransition, getTransformPropValue, isVertical, getTransformByIndex, getMarginStyle, getStyle, setPxStyle, getDataAttr, getLeft, getTop */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toArray", function() { return toArray; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getActiveIndex", function() { return getActiveIndex; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getActiveKey", function() { return getActiveKey; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setTransform", function() { return setTransform; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isTransform3dSupported", function() { return isTransform3dSupported; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setTransition", function() { return setTransition; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTransformPropValue", function() { return getTransformPropValue; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isVertical", function() { return isVertical; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTransformByIndex", function() { return getTransformByIndex; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMarginStyle", function() { return getMarginStyle; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getStyle", function() { return getStyle; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setPxStyle", function() { return setPxStyle; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDataAttr", function() { return getDataAttr; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLeft", function() { return getLeft; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTop", function() { return getTop; });
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
function toArray(children) {
var c = [];
children.forEach(function (child) {
if (child.data) {
c.push(child);
}
});
return c;
}
function getActiveIndex(children, activeKey) {
var c = toArray(children);
for (var i = 0; i < c.length; i++) {
if (c[i].key === activeKey) {
return i;
}
}
return -1;
}
function getActiveKey(children, index) {
var c = toArray(children);
return c[index].key;
}
function setTransform(style, v) {
style.transform = v;
style.webkitTransform = v;
style.mozTransform = v;
}
function isTransform3dSupported(style) {
return ('transform' in style || 'webkitTransform' in style || 'MozTransform' in style) && window.atob;
}
function setTransition(style, v) {
style.transition = v;
style.webkitTransition = v;
style.MozTransition = v;
}
function getTransformPropValue(v) {
return {
transform: v,
WebkitTransform: v,
MozTransform: v
};
}
function isVertical(tabBarPosition) {
return tabBarPosition === 'left' || tabBarPosition === 'right';
}
function getTransformByIndex(index, tabBarPosition) {
var direction = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'ltr';
var translate = isVertical(tabBarPosition) ? 'translateY' : 'translateX';
if (!isVertical(tabBarPosition) && direction === 'rtl') {
return translate + '(' + index * 100 + '%) translateZ(0)';
}
return translate + '(' + -index * 100 + '%) translateZ(0)';
}
function getMarginStyle(index, tabBarPosition) {
var marginDirection = isVertical(tabBarPosition) ? 'marginTop' : 'marginLeft';
return babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, marginDirection, -index * 100 + '%');
}
function getStyle(el, property) {
return +window.getComputedStyle(el).getPropertyValue(property).replace('px', '');
}
function setPxStyle(el, value, vertical) {
value = vertical ? '0px, ' + value + 'px, 0px' : value + 'px, 0px, 0px';
setTransform(el.style, 'translate3d(' + value + ')');
}
function getDataAttr(props) {
return Object.keys(props).reduce(function (prev, key) {
if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {
prev[key] = props[key];
}
return prev;
}, {});
}
function toNum(style, property) {
return +style.getPropertyValue(property).replace('px', '');
}
function getTypeValue(start, current, end, tabNode, wrapperNode) {
var total = getStyle(wrapperNode, 'padding-' + start);
if (!tabNode || !tabNode.parentNode) {
return total;
}
var childNodes = tabNode.parentNode.childNodes;
Array.prototype.some.call(childNodes, function (node) {
var style = window.getComputedStyle(node);
if (node !== tabNode) {
total += toNum(style, 'margin-' + start);
total += node[current];
total += toNum(style, 'margin-' + end);
if (style.boxSizing === 'content-box') {
total += toNum(style, 'border-' + start + '-width') + toNum(style, 'border-' + end + '-width');
}
return false;
}
// We need count current node margin
// ref: https://github.com/react-component/tabs/pull/139#issuecomment-431005262
total += toNum(style, 'margin-' + start);
return true;
});
return total;
}
function getLeft(tabNode, wrapperNode) {
return getTypeValue('left', 'offsetWidth', 'right', tabNode, wrapperNode);
}
function getTop(tabNode, wrapperNode) {
return getTypeValue('top', 'offsetHeight', 'bottom', tabNode, wrapperNode);
}
/***/ }),
/***/ "./components/vc-time-picker/Combobox.jsx":
/*!************************************************!*\
!*** ./components/vc-time-picker/Combobox.jsx ***!
\************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _Select__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Select */ "./components/vc-time-picker/Select.jsx");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
var formatOption = function formatOption(option, disabledOptions) {
var value = '' + option;
if (option < 10) {
value = '0' + option;
}
var disabled = false;
if (disabledOptions && disabledOptions.indexOf(option) >= 0) {
disabled = true;
}
return {
value: value,
disabled: disabled
};
};
var Combobox = {
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"]],
name: 'Combobox',
props: {
format: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
defaultOpenValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].object,
// onChange: PropTypes.func,
// onAmPmChange: PropTypes.func,
showHour: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
showMinute: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
showSecond: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
hourOptions: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].array,
minuteOptions: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].array,
secondOptions: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].array,
disabledHours: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
disabledMinutes: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
disabledSeconds: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].func,
// onCurrentSelectPanelChange: PropTypes.func,
use12Hours: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
isAM: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool
},
methods: {
onItemChange: function onItemChange(type, itemValue) {
var defaultOpenValue = this.defaultOpenValue,
use12Hours = this.use12Hours,
propValue = this.value,
isAM = this.isAM;
var value = (propValue || defaultOpenValue).clone();
if (type === 'hour') {
if (use12Hours) {
if (isAM) {
value.hour(+itemValue % 12);
} else {
value.hour(+itemValue % 12 + 12);
}
} else {
value.hour(+itemValue);
}
} else if (type === 'minute') {
value.minute(+itemValue);
} else if (type === 'ampm') {
var ampm = itemValue.toUpperCase();
if (use12Hours) {
if (ampm === 'PM' && value.hour() < 12) {
value.hour(value.hour() % 12 + 12);
}
if (ampm === 'AM') {
if (value.hour() >= 12) {
value.hour(value.hour() - 12);
}
}
}
this.__emit('amPmChange', ampm);
} else {
value.second(+itemValue);
}
this.__emit('change', value);
},
onEnterSelectPanel: function onEnterSelectPanel(range) {
this.__emit('currentSelectPanelChange', range);
},
onEsc: function onEsc(e) {
this.__emit('esc', e);
},
getHourSelect: function getHourSelect(hour) {
var _this = this;
var h = this.$createElement;
var prefixCls = this.prefixCls,
hourOptions = this.hourOptions,
disabledHours = this.disabledHours,
showHour = this.showHour,
use12Hours = this.use12Hours;
if (!showHour) {
return null;
}
var disabledOptions = disabledHours();
var hourOptionsAdj = void 0;
var hourAdj = void 0;
if (use12Hours) {
hourOptionsAdj = [12].concat(hourOptions.filter(function (h) {
return h < 12 && h > 0;
}));
hourAdj = hour % 12 || 12;
} else {
hourOptionsAdj = hourOptions;
hourAdj = hour;
}
return h(_Select__WEBPACK_IMPORTED_MODULE_1__["default"], {
attrs: {
prefixCls: prefixCls,
options: hourOptionsAdj.map(function (option) {
return formatOption(option, disabledOptions);
}),
selectedIndex: hourOptionsAdj.indexOf(hourAdj),
type: 'hour'
},
on: {
'select': this.onItemChange,
'mouseenter': function mouseenter() {
return _this.onEnterSelectPanel('hour');
},
'esc': this.onEsc
}
});
},
getMinuteSelect: function getMinuteSelect(minute) {
var _this2 = this;
var h = this.$createElement;
var prefixCls = this.prefixCls,
minuteOptions = this.minuteOptions,
disabledMinutes = this.disabledMinutes,
defaultOpenValue = this.defaultOpenValue,
showMinute = this.showMinute,
propValue = this.value;
if (!showMinute) {
return null;
}
var value = propValue || defaultOpenValue;
var disabledOptions = disabledMinutes(value.hour());
return h(_Select__WEBPACK_IMPORTED_MODULE_1__["default"], {
attrs: {
prefixCls: prefixCls,
options: minuteOptions.map(function (option) {
return formatOption(option, disabledOptions);
}),
selectedIndex: minuteOptions.indexOf(minute),
type: 'minute'
},
on: {
'select': this.onItemChange,
'mouseenter': function mouseenter() {
return _this2.onEnterSelectPanel('minute');
},
'esc': this.onEsc
}
});
},
getSecondSelect: function getSecondSelect(second) {
var _this3 = this;
var h = this.$createElement;
var prefixCls = this.prefixCls,
secondOptions = this.secondOptions,
disabledSeconds = this.disabledSeconds,
showSecond = this.showSecond,
defaultOpenValue = this.defaultOpenValue,
propValue = this.value;
if (!showSecond) {
return null;
}
var value = propValue || defaultOpenValue;
var disabledOptions = disabledSeconds(value.hour(), value.minute());
return h(_Select__WEBPACK_IMPORTED_MODULE_1__["default"], {
attrs: {
prefixCls: prefixCls,
options: secondOptions.map(function (option) {
return formatOption(option, disabledOptions);
}),
selectedIndex: secondOptions.indexOf(second),
type: 'second'
},
on: {
'select': this.onItemChange,
'mouseenter': function mouseenter() {
return _this3.onEnterSelectPanel('second');
},
'esc': this.onEsc
}
});
},
getAMPMSelect: function getAMPMSelect() {
var _this4 = this;
var h = this.$createElement;
var prefixCls = this.prefixCls,
use12Hours = this.use12Hours,
format = this.format,
isAM = this.isAM;
if (!use12Hours) {
return null;
}
var AMPMOptions = ['am', 'pm'] // If format has A char, then we should uppercase AM/PM
.map(function (c) {
return format.match(/\sA/) ? c.toUpperCase() : c;
}).map(function (c) {
return { value: c };
});
var selected = isAM ? 0 : 1;
return h(_Select__WEBPACK_IMPORTED_MODULE_1__["default"], {
attrs: {
prefixCls: prefixCls,
options: AMPMOptions,
selectedIndex: selected,
type: 'ampm'
},
on: {
'select': this.onItemChange,
'mouseenter': function mouseenter() {
return _this4.onEnterSelectPanel('ampm');
},
'esc': this.onEsc
}
});
}
},
render: function render() {
var h = arguments[0];
var prefixCls = this.prefixCls,
defaultOpenValue = this.defaultOpenValue,
propValue = this.value;
var value = propValue || defaultOpenValue;
return h(
'div',
{ 'class': prefixCls + '-combobox' },
[this.getHourSelect(value.hour()), this.getMinuteSelect(value.minute()), this.getSecondSelect(value.second()), this.getAMPMSelect(value.hour())]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (Combobox);
/***/ }),
/***/ "./components/vc-time-picker/Header.jsx":
/*!**********************************************!*\
!*** ./components/vc-time-picker/Header.jsx ***!
\**********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! moment */ "moment");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_3__);
var Header = {
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"]],
props: {
format: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
disabledDate: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
clearText: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
inputReadOnly: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool.def(false),
hourOptions: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
minuteOptions: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
secondOptions: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
disabledHours: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
disabledMinutes: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
disabledSeconds: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
// onChange: PropTypes.func,
// onClear: PropTypes.func,
// onEsc: PropTypes.func,
allowEmpty: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
defaultOpenValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
currentSelectPanel: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
focusOnOpen: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
// onKeyDown: PropTypes.func,
clearIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
},
data: function data() {
var value = this.value,
format = this.format;
return {
str: value && value.format(format) || '',
invalid: false
};
},
mounted: function mounted() {
var _this = this;
if (this.focusOnOpen) {
// Wait one frame for the panel to be positioned before focusing
var requestAnimationFrame = window.requestAnimationFrame || window.setTimeout;
requestAnimationFrame(function () {
_this.$refs.input.focus();
_this.$refs.input.select();
});
}
},
watch: {
value: function value(val) {
var _this2 = this;
this.$nextTick(function () {
_this2.setState({
str: val && val.format(_this2.format) || '',
invalid: false
});
});
}
},
methods: {
onInputChange: function onInputChange(e) {
var _e$target = e.target,
str = _e$target.value,
composing = _e$target.composing;
var _str = this.str,
oldStr = _str === undefined ? '' : _str;
if (e.isComposing || composing || oldStr === str) return;
this.setState({
str: str
});
var format = this.format,
hourOptions = this.hourOptions,
minuteOptions = this.minuteOptions,
secondOptions = this.secondOptions,
disabledHours = this.disabledHours,
disabledMinutes = this.disabledMinutes,
disabledSeconds = this.disabledSeconds,
originalValue = this.value;
if (str) {
var value = this.getProtoValue().clone();
var parsed = moment__WEBPACK_IMPORTED_MODULE_3___default()(str, format, true);
if (!parsed.isValid()) {
this.setState({
invalid: true
});
return;
}
value.hour(parsed.hour()).minute(parsed.minute()).second(parsed.second());
// if time value not allowed, response warning.
if (hourOptions.indexOf(value.hour()) < 0 || minuteOptions.indexOf(value.minute()) < 0 || secondOptions.indexOf(value.second()) < 0) {
this.setState({
invalid: true
});
return;
}
// if time value is disabled, response warning.
var disabledHourOptions = disabledHours();
var disabledMinuteOptions = disabledMinutes(value.hour());
var disabledSecondOptions = disabledSeconds(value.hour(), value.minute());
if (disabledHourOptions && disabledHourOptions.indexOf(value.hour()) >= 0 || disabledMinuteOptions && disabledMinuteOptions.indexOf(value.minute()) >= 0 || disabledSecondOptions && disabledSecondOptions.indexOf(value.second()) >= 0) {
this.setState({
invalid: true
});
return;
}
if (originalValue) {
if (originalValue.hour() !== value.hour() || originalValue.minute() !== value.minute() || originalValue.second() !== value.second()) {
// keep other fields for rc-calendar
var changedValue = originalValue.clone();
changedValue.hour(value.hour());
changedValue.minute(value.minute());
changedValue.second(value.second());
this.__emit('change', changedValue);
}
} else if (originalValue !== value) {
this.__emit('change', value);
}
} else {
this.__emit('change', null);
}
this.setState({
invalid: false
});
},
onKeyDown: function onKeyDown(e) {
if (e.keyCode === 27) {
this.__emit('esc');
}
this.__emit('keydown', e);
},
getProtoValue: function getProtoValue() {
return this.value || this.defaultOpenValue;
},
getInput: function getInput() {
var h = this.$createElement;
var prefixCls = this.prefixCls,
placeholder = this.placeholder,
inputReadOnly = this.inputReadOnly,
invalid = this.invalid,
str = this.str;
var invalidClass = invalid ? prefixCls + '-input-invalid' : '';
return h('input', babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
'class': prefixCls + '-input ' + invalidClass,
ref: 'input',
on: {
'keydown': this.onKeyDown,
'input': this.onInputChange
},
domProps: {
'value': str
},
attrs: {
placeholder: placeholder,
readOnly: !!inputReadOnly
}
}, {
directives: [{
name: 'ant-input'
}]
}]));
}
},
render: function render() {
var h = arguments[0];
var prefixCls = this.prefixCls;
return h(
'div',
{ 'class': prefixCls + '-input-wrap' },
[this.getInput()]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (Header);
/***/ }),
/***/ "./components/vc-time-picker/Panel.jsx":
/*!*********************************************!*\
!*** ./components/vc-time-picker/Panel.jsx ***!
\*********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! moment */ "moment");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _Header__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Header */ "./components/vc-time-picker/Header.jsx");
/* harmony import */ var _Combobox__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Combobox */ "./components/vc-time-picker/Combobox.jsx");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
function noop() {}
function generateOptions(length, disabledOptions, hideDisabledOptions) {
var step = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
var arr = [];
for (var value = 0; value < length; value += step) {
if (!disabledOptions || disabledOptions.indexOf(value) < 0 || !hideDisabledOptions) {
arr.push(value);
}
}
return arr;
}
function toNearestValidTime(time, hourOptions, minuteOptions, secondOptions) {
var hour = hourOptions.slice().sort(function (a, b) {
return Math.abs(time.hour() - a) - Math.abs(time.hour() - b);
})[0];
var minute = minuteOptions.slice().sort(function (a, b) {
return Math.abs(time.minute() - a) - Math.abs(time.minute() - b);
})[0];
var second = secondOptions.slice().sort(function (a, b) {
return Math.abs(time.second() - a) - Math.abs(time.second() - b);
})[0];
return moment__WEBPACK_IMPORTED_MODULE_0___default()(hour + ':' + minute + ':' + second, 'HH:mm:ss');
}
var Panel = {
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"]],
props: {
clearText: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string.def('rc-time-picker-panel'),
defaultOpenValue: {
type: Object,
'default': function _default() {
return moment__WEBPACK_IMPORTED_MODULE_0___default()();
}
},
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
format: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
inputReadOnly: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool.def(false),
disabledHours: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func.def(noop),
disabledMinutes: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func.def(noop),
disabledSeconds: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func.def(noop),
hideDisabledOptions: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
// onChange: PropTypes.func,
// onEsc: PropTypes.func,
allowEmpty: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
showHour: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
showMinute: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
showSecond: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
// onClear: PropTypes.func,
use12Hours: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool.def(false),
hourStep: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
minuteStep: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
secondStep: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
addon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func.def(noop),
focusOnOpen: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
// onKeydown: PropTypes.func,
clearIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
},
data: function data() {
return {
sValue: this.value,
selectionRange: [],
currentSelectPanel: ''
};
},
watch: {
value: function value(val) {
this.setState({
sValue: val
});
}
},
methods: {
onChange: function onChange(newValue) {
this.setState({ sValue: newValue });
this.__emit('change', newValue);
},
onAmPmChange: function onAmPmChange(ampm) {
this.__emit('amPmChange', ampm);
},
onCurrentSelectPanelChange: function onCurrentSelectPanelChange(currentSelectPanel) {
this.setState({ currentSelectPanel: currentSelectPanel });
},
// https://github.com/ant-design/ant-design/issues/5829
close: function close() {
this.__emit('esc');
},
onEsc: function onEsc(e) {
this.__emit('esc', e);
},
disabledHours2: function disabledHours2() {
var use12Hours = this.use12Hours,
disabledHours = this.disabledHours;
var disabledOptions = disabledHours();
if (use12Hours && Array.isArray(disabledOptions)) {
if (this.isAM()) {
disabledOptions = disabledOptions.filter(function (h) {
return h < 12;
}).map(function (h) {
return h === 0 ? 12 : h;
});
} else {
disabledOptions = disabledOptions.map(function (h) {
return h === 12 ? 12 : h - 12;
});
}
}
return disabledOptions;
},
isAM: function isAM() {
var value = this.sValue || this.defaultOpenValue;
return value.hour() >= 0 && value.hour() < 12;
}
},
render: function render() {
var h = arguments[0];
var prefixCls = this.prefixCls,
placeholder = this.placeholder,
disabledMinutes = this.disabledMinutes,
addon = this.addon,
disabledSeconds = this.disabledSeconds,
hideDisabledOptions = this.hideDisabledOptions,
showHour = this.showHour,
showMinute = this.showMinute,
showSecond = this.showSecond,
format = this.format,
defaultOpenValue = this.defaultOpenValue,
clearText = this.clearText,
use12Hours = this.use12Hours,
focusOnOpen = this.focusOnOpen,
hourStep = this.hourStep,
minuteStep = this.minuteStep,
secondStep = this.secondStep,
inputReadOnly = this.inputReadOnly,
sValue = this.sValue,
currentSelectPanel = this.currentSelectPanel;
var clearIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'clearIcon');
var _getListeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this),
_getListeners$esc = _getListeners.esc,
esc = _getListeners$esc === undefined ? noop : _getListeners$esc,
_getListeners$keydown = _getListeners.keydown,
keydown = _getListeners$keydown === undefined ? noop : _getListeners$keydown;
var disabledHourOptions = this.disabledHours2();
var disabledMinuteOptions = disabledMinutes(sValue ? sValue.hour() : null);
var disabledSecondOptions = disabledSeconds(sValue ? sValue.hour() : null, sValue ? sValue.minute() : null);
var hourOptions = generateOptions(24, disabledHourOptions, hideDisabledOptions, hourStep);
var minuteOptions = generateOptions(60, disabledMinuteOptions, hideDisabledOptions, minuteStep);
var secondOptions = generateOptions(60, disabledSecondOptions, hideDisabledOptions, secondStep);
var validDefaultOpenValue = toNearestValidTime(defaultOpenValue, hourOptions, minuteOptions, secondOptions);
return h(
'div',
{ 'class': prefixCls + '-inner' },
[h(_Header__WEBPACK_IMPORTED_MODULE_3__["default"], {
attrs: {
clearText: clearText,
prefixCls: prefixCls,
defaultOpenValue: validDefaultOpenValue,
value: sValue,
currentSelectPanel: currentSelectPanel,
format: format,
placeholder: placeholder,
hourOptions: hourOptions,
minuteOptions: minuteOptions,
secondOptions: secondOptions,
disabledHours: this.disabledHours2,
disabledMinutes: disabledMinutes,
disabledSeconds: disabledSeconds,
focusOnOpen: focusOnOpen,
inputReadOnly: inputReadOnly,
clearIcon: clearIcon
},
on: {
'esc': esc,
'change': this.onChange,
'keydown': keydown
}
}), h(_Combobox__WEBPACK_IMPORTED_MODULE_4__["default"], {
attrs: {
prefixCls: prefixCls,
value: sValue,
defaultOpenValue: validDefaultOpenValue,
format: format,
showHour: showHour,
showMinute: showMinute,
showSecond: showSecond,
hourOptions: hourOptions,
minuteOptions: minuteOptions,
secondOptions: secondOptions,
disabledHours: this.disabledHours2,
disabledMinutes: disabledMinutes,
disabledSeconds: disabledSeconds,
use12Hours: use12Hours,
isAM: this.isAM()
},
on: {
'change': this.onChange,
'amPmChange': this.onAmPmChange,
'currentSelectPanelChange': this.onCurrentSelectPanelChange,
'esc': this.onEsc
}
}), addon(this)]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (Panel);
/***/ }),
/***/ "./components/vc-time-picker/Select.jsx":
/*!**********************************************!*\
!*** ./components/vc-time-picker/Select.jsx ***!
\**********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! raf */ "./node_modules/raf/index.js");
/* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(raf__WEBPACK_IMPORTED_MODULE_4__);
function noop() {}
var scrollTo = function scrollTo(element, to, duration) {
// jump to target if duration zero
if (duration <= 0) {
raf__WEBPACK_IMPORTED_MODULE_4___default()(function () {
element.scrollTop = to;
});
return;
}
var difference = to - element.scrollTop;
var perTick = difference / duration * 10;
raf__WEBPACK_IMPORTED_MODULE_4___default()(function () {
element.scrollTop += perTick;
if (element.scrollTop === to) return;
scrollTo(element, to, duration - 10);
});
};
var Select = {
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_2__["default"]],
props: {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
options: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].array,
selectedIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
type: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string
// onSelect: PropTypes.func,
// onMouseEnter: PropTypes.func,
},
data: function data() {
return {
active: false
};
},
mounted: function mounted() {
var _this = this;
this.$nextTick(function () {
// jump to selected option
_this.scrollToSelected(0);
});
},
watch: {
selectedIndex: function selectedIndex() {
var _this2 = this;
this.$nextTick(function () {
// smooth scroll to selected option
_this2.scrollToSelected(120);
});
}
},
methods: {
onSelect: function onSelect(value) {
var type = this.type;
this.__emit('select', type, value);
},
onEsc: function onEsc(e) {
this.__emit('esc', e);
},
getOptions: function getOptions() {
var _this3 = this;
var h = this.$createElement;
var options = this.options,
selectedIndex = this.selectedIndex,
prefixCls = this.prefixCls;
return options.map(function (item, index) {
var _classnames;
var cls = classnames__WEBPACK_IMPORTED_MODULE_3___default()((_classnames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classnames, prefixCls + '-select-option-selected', selectedIndex === index), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classnames, prefixCls + '-select-option-disabled', item.disabled), _classnames));
var onClick = item.disabled ? noop : function () {
_this3.onSelect(item.value);
};
var onKeyDown = function onKeyDown(e) {
if (e.keyCode === 13) onClick();else if (e.keyCode === 27) _this3.onEsc();
};
return h(
'li',
{
attrs: {
role: 'button',
disabled: item.disabled,
tabIndex: '0'
},
on: {
'click': onClick,
'keydown': onKeyDown
},
'class': cls,
key: index },
[item.value]
);
});
},
handleMouseEnter: function handleMouseEnter(e) {
this.setState({ active: true });
this.__emit('mouseenter', e);
},
handleMouseLeave: function handleMouseLeave() {
this.setState({ active: false });
},
scrollToSelected: function scrollToSelected(duration) {
// move to selected item
var select = this.$el;
var list = this.$refs.list;
if (!list) {
return;
}
var index = this.selectedIndex;
if (index < 0) {
index = 0;
}
var topOption = list.children[index];
var to = topOption.offsetTop;
scrollTo(select, to, duration);
}
},
render: function render() {
var _cls;
var h = arguments[0];
var prefixCls = this.prefixCls,
options = this.options,
active = this.active;
if (options.length === 0) {
return null;
}
var cls = (_cls = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_cls, prefixCls + '-select', 1), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_cls, prefixCls + '-select-active', active), _cls);
return h(
'div',
{ 'class': cls, on: {
'mouseenter': this.handleMouseEnter,
'mouseleave': this.handleMouseLeave
}
},
[h(
'ul',
{ ref: 'list' },
[this.getOptions()]
)]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (Select);
/***/ }),
/***/ "./components/vc-time-picker/TimePicker.jsx":
/*!**************************************************!*\
!*** ./components/vc-time-picker/TimePicker.jsx ***!
\**************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "moment");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _vc_trigger__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../vc-trigger */ "./components/vc-trigger/index.js");
/* harmony import */ var _Panel__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Panel */ "./components/vc-time-picker/Panel.jsx");
/* harmony import */ var _placements__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./placements */ "./components/vc-time-picker/placements.js");
function noop() {}
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'VcTimePicker',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["initDefaultProps"])({
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
clearText: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
defaultOpenValue: {
type: Object,
'default': function _default() {
return moment__WEBPACK_IMPORTED_MODULE_1___default()();
}
},
inputReadOnly: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
allowEmpty: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
open: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
defaultOpen: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
align: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
placement: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
format: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
showHour: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
showMinute: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
showSecond: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
popupClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
popupStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
disabledHours: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
disabledMinutes: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
disabledSeconds: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
hideDisabledOptions: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
// onChange: PropTypes.func,
// onAmPmChange: PropTypes.func,
// onOpen: PropTypes.func,
// onClose: PropTypes.func,
// onFocus: PropTypes.func,
// onBlur: PropTypes.func,
name: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
autoComplete: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
use12Hours: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
hourStep: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
minuteStep: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
secondStep: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
focusOnOpen: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
// onKeyDown: PropTypes.func,
autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
id: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
inputIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
clearIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
addon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func
}, {
clearText: 'clear',
prefixCls: 'rc-time-picker',
defaultOpen: false,
inputReadOnly: false,
popupClassName: '',
popupStyle: {},
align: {},
allowEmpty: true,
showHour: true,
showMinute: true,
showSecond: true,
disabledHours: noop,
disabledMinutes: noop,
disabledSeconds: noop,
hideDisabledOptions: false,
placement: 'bottomLeft',
use12Hours: false,
focusOnOpen: false
}),
data: function data() {
var defaultOpen = this.defaultOpen,
defaultValue = this.defaultValue,
_open = this.open,
open = _open === undefined ? defaultOpen : _open,
_value = this.value,
value = _value === undefined ? defaultValue : _value;
return {
sOpen: open,
sValue: value
};
},
watch: {
value: function value(val) {
this.setState({
sValue: val
});
},
open: function open(val) {
if (val !== undefined) {
this.setState({
sOpen: val
});
}
}
},
mounted: function mounted() {
var _this = this;
this.$nextTick(function () {
if (_this.autoFocus) {
_this.focus();
}
});
},
methods: {
onPanelChange: function onPanelChange(value) {
this.setValue(value);
},
onAmPmChange: function onAmPmChange(ampm) {
this.__emit('amPmChange', ampm);
},
onClear: function onClear(event) {
event.stopPropagation();
this.setValue(null);
this.setOpen(false);
},
onVisibleChange: function onVisibleChange(open) {
this.setOpen(open);
},
onEsc: function onEsc() {
this.setOpen(false);
this.focus();
},
onKeyDown: function onKeyDown(e) {
if (e.keyCode === 40) {
this.setOpen(true);
}
},
onKeyDown2: function onKeyDown2(e) {
this.__emit('keydown', e);
},
setValue: function setValue(value) {
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'value')) {
this.setState({
sValue: value
});
}
this.__emit('change', value);
},
getFormat: function getFormat() {
var format = this.format,
showHour = this.showHour,
showMinute = this.showMinute,
showSecond = this.showSecond,
use12Hours = this.use12Hours;
if (format) {
return format;
}
if (use12Hours) {
var fmtString = [showHour ? 'h' : '', showMinute ? 'mm' : '', showSecond ? 'ss' : ''].filter(function (item) {
return !!item;
}).join(':');
return fmtString.concat(' a');
}
return [showHour ? 'HH' : '', showMinute ? 'mm' : '', showSecond ? 'ss' : ''].filter(function (item) {
return !!item;
}).join(':');
},
getPanelElement: function getPanelElement() {
var h = this.$createElement;
var prefixCls = this.prefixCls,
placeholder = this.placeholder,
disabledHours = this.disabledHours,
addon = this.addon,
disabledMinutes = this.disabledMinutes,
disabledSeconds = this.disabledSeconds,
hideDisabledOptions = this.hideDisabledOptions,
inputReadOnly = this.inputReadOnly,
showHour = this.showHour,
showMinute = this.showMinute,
showSecond = this.showSecond,
defaultOpenValue = this.defaultOpenValue,
clearText = this.clearText,
use12Hours = this.use12Hours,
focusOnOpen = this.focusOnOpen,
onKeyDown2 = this.onKeyDown2,
hourStep = this.hourStep,
minuteStep = this.minuteStep,
secondStep = this.secondStep,
sValue = this.sValue;
var clearIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'clearIcon');
return h(_Panel__WEBPACK_IMPORTED_MODULE_8__["default"], {
attrs: {
clearText: clearText,
prefixCls: prefixCls + '-panel',
value: sValue,
inputReadOnly: inputReadOnly,
defaultOpenValue: defaultOpenValue,
showHour: showHour,
showMinute: showMinute,
showSecond: showSecond,
format: this.getFormat(),
placeholder: placeholder,
disabledHours: disabledHours,
disabledMinutes: disabledMinutes,
disabledSeconds: disabledSeconds,
hideDisabledOptions: hideDisabledOptions,
use12Hours: use12Hours,
hourStep: hourStep,
minuteStep: minuteStep,
secondStep: secondStep,
focusOnOpen: focusOnOpen,
clearIcon: clearIcon,
addon: addon
},
ref: 'panel', on: {
'change': this.onPanelChange,
'amPmChange': this.onAmPmChange,
'esc': this.onEsc,
'keydown': onKeyDown2
}
});
},
getPopupClassName: function getPopupClassName() {
var showHour = this.showHour,
showMinute = this.showMinute,
showSecond = this.showSecond,
use12Hours = this.use12Hours,
prefixCls = this.prefixCls,
popupClassName = this.popupClassName;
var selectColumnCount = 0;
if (showHour) {
selectColumnCount += 1;
}
if (showMinute) {
selectColumnCount += 1;
}
if (showSecond) {
selectColumnCount += 1;
}
if (use12Hours) {
selectColumnCount += 1;
}
// Keep it for old compatibility
return classnames__WEBPACK_IMPORTED_MODULE_2___default()(popupClassName, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, prefixCls + '-panel-narrow', (!showHour || !showMinute || !showSecond) && !use12Hours), prefixCls + '-panel-column-' + selectColumnCount);
},
setOpen: function setOpen(open) {
if (this.sOpen !== open) {
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'open')) {
this.setState({ sOpen: open });
}
if (open) {
this.__emit('open', { open: open });
} else {
this.__emit('close', { open: open });
}
}
},
focus: function focus() {
this.$refs.picker.focus();
},
blur: function blur() {
this.$refs.picker.blur();
},
onFocus: function onFocus(e) {
this.__emit('focus', e);
},
onBlur: function onBlur(e) {
this.__emit('blur', e);
},
renderClearButton: function renderClearButton() {
var _this2 = this;
var h = this.$createElement;
var sValue = this.sValue;
var _$props = this.$props,
prefixCls = _$props.prefixCls,
allowEmpty = _$props.allowEmpty,
clearText = _$props.clearText,
disabled = _$props.disabled;
if (!allowEmpty || !sValue || disabled) {
return null;
}
var clearIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'clearIcon');
if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["isValidElement"])(clearIcon)) {
var _ref = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getEvents"])(clearIcon) || {},
_click = _ref.click;
return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_6__["cloneElement"])(clearIcon, {
on: {
click: function click() {
if (_click) _click.apply(undefined, arguments);
_this2.onClear.apply(_this2, arguments);
}
}
});
}
return h(
'a',
{
attrs: {
role: 'button',
title: clearText,
tabIndex: 0
},
'class': prefixCls + '-clear', on: {
'click': this.onClear
}
},
[clearIcon || h('i', { 'class': prefixCls + '-clear-icon' })]
);
}
},
render: function render() {
var h = arguments[0];
var prefixCls = this.prefixCls,
placeholder = this.placeholder,
placement = this.placement,
align = this.align,
id = this.id,
disabled = this.disabled,
transitionName = this.transitionName,
getPopupContainer = this.getPopupContainer,
name = this.name,
autoComplete = this.autoComplete,
autoFocus = this.autoFocus,
inputReadOnly = this.inputReadOnly,
sOpen = this.sOpen,
sValue = this.sValue,
onFocus = this.onFocus,
onBlur = this.onBlur,
popupStyle = this.popupStyle;
var popupClassName = this.getPopupClassName();
var inputIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(this, 'inputIcon');
return h(
_vc_trigger__WEBPACK_IMPORTED_MODULE_7__["default"],
{
attrs: {
prefixCls: prefixCls + '-panel',
popupClassName: popupClassName,
popupStyle: popupStyle,
popupAlign: align,
builtinPlacements: _placements__WEBPACK_IMPORTED_MODULE_9__["default"],
popupPlacement: placement,
action: disabled ? [] : ['click'],
destroyPopupOnHide: true,
getPopupContainer: getPopupContainer,
popupTransitionName: transitionName,
popupVisible: sOpen
},
on: {
'popupVisibleChange': this.onVisibleChange
}
},
[h(
'template',
{ slot: 'popup' },
[this.getPanelElement()]
), h(
'span',
{ 'class': '' + prefixCls },
[h('input', {
'class': prefixCls + '-input',
ref: 'picker',
attrs: { type: 'text',
placeholder: placeholder,
name: name,
disabled: disabled,
autoComplete: autoComplete,
autoFocus: autoFocus,
readOnly: !!inputReadOnly,
id: id
},
on: {
'keydown': this.onKeyDown,
'focus': onFocus,
'blur': onBlur
},
domProps: {
'value': sValue && sValue.format(this.getFormat()) || ''
}
}), inputIcon || h('span', { 'class': prefixCls + '-icon' }), this.renderClearButton()]
)]
);
}
});
/***/ }),
/***/ "./components/vc-time-picker/index.js":
/*!********************************************!*\
!*** ./components/vc-time-picker/index.js ***!
\********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _TimePicker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TimePicker */ "./components/vc-time-picker/TimePicker.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "default", function() { return _TimePicker__WEBPACK_IMPORTED_MODULE_0__["default"]; });
// based on rc-time-picker 3.7.3
/***/ }),
/***/ "./components/vc-time-picker/placements.js":
/*!*************************************************!*\
!*** ./components/vc-time-picker/placements.js ***!
\*************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
var autoAdjustOverflow = {
adjustX: 1,
adjustY: 1
};
var targetOffset = [0, 0];
var placements = {
bottomLeft: {
points: ['tl', 'tl'],
overflow: autoAdjustOverflow,
offset: [0, -3],
targetOffset: targetOffset
},
bottomRight: {
points: ['tr', 'tr'],
overflow: autoAdjustOverflow,
offset: [0, -3],
targetOffset: targetOffset
},
topRight: {
points: ['br', 'br'],
overflow: autoAdjustOverflow,
offset: [0, 3],
targetOffset: targetOffset
},
topLeft: {
points: ['bl', 'bl'],
overflow: autoAdjustOverflow,
offset: [0, 3],
targetOffset: targetOffset
}
};
/* harmony default export */ __webpack_exports__["default"] = (placements);
/***/ }),
/***/ "./components/vc-tooltip/Content.jsx":
/*!*******************************************!*\
!*** ./components/vc-tooltip/Content.jsx ***!
\*******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony default export */ __webpack_exports__["default"] = ({
props: {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string,
overlay: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any,
trigger: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].any
},
updated: function updated() {
var trigger = this.trigger;
if (trigger) {
trigger.forcePopupAlign();
}
},
render: function render() {
var h = arguments[0];
var overlay = this.overlay,
prefixCls = this.prefixCls;
return h(
'div',
{ 'class': prefixCls + '-inner', attrs: { role: 'tooltip' }
},
[typeof overlay === 'function' ? overlay() : overlay]
);
}
});
/***/ }),
/***/ "./components/vc-tooltip/Tooltip.jsx":
/*!*******************************************!*\
!*** ./components/vc-tooltip/Tooltip.jsx ***!
\*******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _vc_trigger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../vc-trigger */ "./components/vc-trigger/index.js");
/* harmony import */ var _placements__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./placements */ "./components/vc-tooltip/placements.js");
/* harmony import */ var _Content__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Content */ "./components/vc-tooltip/Content.jsx");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
function noop() {}
/* harmony default export */ __webpack_exports__["default"] = ({
props: {
trigger: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any.def(['hover']),
defaultVisible: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
placement: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def('right'),
transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object]),
animation: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
afterVisibleChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func.def(function () {}),
overlay: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
overlayStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
overlayClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string.def('rc-tooltip'),
mouseEnterDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number.def(0),
mouseLeaveDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number.def(0.1),
getTooltipContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
destroyTooltipOnHide: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool.def(false),
align: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object.def(function () {
return {};
}),
arrowContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any.def(null),
tipId: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
builtinPlacements: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object
},
methods: {
getPopupElement: function getPopupElement() {
var h = this.$createElement;
var _$props = this.$props,
prefixCls = _$props.prefixCls,
tipId = _$props.tipId;
return [h(
'div',
{ 'class': prefixCls + '-arrow', key: 'arrow' },
[Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'arrowContent')]
), h(_Content__WEBPACK_IMPORTED_MODULE_5__["default"], {
key: 'content',
attrs: { trigger: this.$refs.trigger,
prefixCls: prefixCls,
id: tipId,
overlay: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'overlay')
}
})];
},
getPopupDomNode: function getPopupDomNode() {
return this.$refs.trigger.getPopupDomNode();
}
},
render: function render(h) {
var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(this),
overlayClassName = _getOptionProps.overlayClassName,
trigger = _getOptionProps.trigger,
mouseEnterDelay = _getOptionProps.mouseEnterDelay,
mouseLeaveDelay = _getOptionProps.mouseLeaveDelay,
overlayStyle = _getOptionProps.overlayStyle,
prefixCls = _getOptionProps.prefixCls,
afterVisibleChange = _getOptionProps.afterVisibleChange,
transitionName = _getOptionProps.transitionName,
animation = _getOptionProps.animation,
placement = _getOptionProps.placement,
align = _getOptionProps.align,
destroyTooltipOnHide = _getOptionProps.destroyTooltipOnHide,
defaultVisible = _getOptionProps.defaultVisible,
getTooltipContainer = _getOptionProps.getTooltipContainer,
restProps = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_getOptionProps, ['overlayClassName', 'trigger', 'mouseEnterDelay', 'mouseLeaveDelay', 'overlayStyle', 'prefixCls', 'afterVisibleChange', 'transitionName', 'animation', 'placement', 'align', 'destroyTooltipOnHide', 'defaultVisible', 'getTooltipContainer']);
var extraProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, restProps);
if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(this, 'visible')) {
extraProps.popupVisible = this.$props.visible;
}
var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this);
var triggerProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
popupClassName: overlayClassName,
prefixCls: prefixCls,
action: trigger,
builtinPlacements: _placements__WEBPACK_IMPORTED_MODULE_4__["placements"],
popupPlacement: placement,
popupAlign: align,
getPopupContainer: getTooltipContainer,
afterPopupVisibleChange: afterVisibleChange,
popupTransitionName: transitionName,
popupAnimation: animation,
defaultPopupVisible: defaultVisible,
destroyPopupOnHide: destroyTooltipOnHide,
mouseLeaveDelay: mouseLeaveDelay,
popupStyle: overlayStyle,
mouseEnterDelay: mouseEnterDelay
}, extraProps),
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, listeners, {
popupVisibleChange: listeners.visibleChange || noop,
popupAlign: listeners.popupAlign || noop
}),
ref: 'trigger'
};
return h(
_vc_trigger__WEBPACK_IMPORTED_MODULE_3__["default"],
triggerProps,
[h(
'template',
{ slot: 'popup' },
[this.getPopupElement(h)]
), this.$slots['default']]
);
}
});
/***/ }),
/***/ "./components/vc-tooltip/index.js":
/*!****************************************!*\
!*** ./components/vc-tooltip/index.js ***!
\****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Tooltip__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Tooltip */ "./components/vc-tooltip/Tooltip.jsx");
// based on rc-tooltip 3.7.3
/* harmony default export */ __webpack_exports__["default"] = (_Tooltip__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/vc-tooltip/placements.js":
/*!*********************************************!*\
!*** ./components/vc-tooltip/placements.js ***!
\*********************************************/
/*! exports provided: placements, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "placements", function() { return placements; });
var autoAdjustOverflow = {
adjustX: 1,
adjustY: 1
};
var targetOffset = [0, 0];
var placements = {
left: {
points: ['cr', 'cl'],
overflow: autoAdjustOverflow,
offset: [-4, 0],
targetOffset: targetOffset
},
right: {
points: ['cl', 'cr'],
overflow: autoAdjustOverflow,
offset: [4, 0],
targetOffset: targetOffset
},
top: {
points: ['bc', 'tc'],
overflow: autoAdjustOverflow,
offset: [0, -4],
targetOffset: targetOffset
},
bottom: {
points: ['tc', 'bc'],
overflow: autoAdjustOverflow,
offset: [0, 4],
targetOffset: targetOffset
},
topLeft: {
points: ['bl', 'tl'],
overflow: autoAdjustOverflow,
offset: [0, -4],
targetOffset: targetOffset
},
leftTop: {
points: ['tr', 'tl'],
overflow: autoAdjustOverflow,
offset: [-4, 0],
targetOffset: targetOffset
},
topRight: {
points: ['br', 'tr'],
overflow: autoAdjustOverflow,
offset: [0, -4],
targetOffset: targetOffset
},
rightTop: {
points: ['tl', 'tr'],
overflow: autoAdjustOverflow,
offset: [4, 0],
targetOffset: targetOffset
},
bottomRight: {
points: ['tr', 'br'],
overflow: autoAdjustOverflow,
offset: [0, 4],
targetOffset: targetOffset
},
rightBottom: {
points: ['bl', 'br'],
overflow: autoAdjustOverflow,
offset: [4, 0],
targetOffset: targetOffset
},
bottomLeft: {
points: ['tl', 'bl'],
overflow: autoAdjustOverflow,
offset: [0, 4],
targetOffset: targetOffset
},
leftBottom: {
points: ['br', 'bl'],
overflow: autoAdjustOverflow,
offset: [-4, 0],
targetOffset: targetOffset
}
};
/* harmony default export */ __webpack_exports__["default"] = (placements);
/***/ }),
/***/ "./components/vc-tree-select/index.js":
/*!********************************************!*\
!*** ./components/vc-tree-select/index.js ***!
\********************************************/
/*! exports provided: default, TreeNode, SHOW_ALL, SHOW_PARENT, SHOW_CHILD */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "vue");
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _src__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./src */ "./components/vc-tree-select/src/index.js");
/* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
/* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_2__);
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreeNode", function() { return _src__WEBPACK_IMPORTED_MODULE_1__["TreeNode"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SHOW_ALL", function() { return _src__WEBPACK_IMPORTED_MODULE_1__["SHOW_ALL"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SHOW_PARENT", function() { return _src__WEBPACK_IMPORTED_MODULE_1__["SHOW_PARENT"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SHOW_CHILD", function() { return _src__WEBPACK_IMPORTED_MODULE_1__["SHOW_CHILD"]; });
// export this package's api
// base 2.9.3
vue__WEBPACK_IMPORTED_MODULE_0___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_2___default.a, { name: 'ant-ref' });
/* harmony default export */ __webpack_exports__["default"] = (_src__WEBPACK_IMPORTED_MODULE_1__["default"]);
/***/ }),
/***/ "./components/vc-tree-select/src/Base/BasePopup.jsx":
/*!**********************************************************!*\
!*** ./components/vc-tree-select/src/Base/BasePopup.jsx ***!
\**********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! warning */ "./node_modules/warning/warning.js");
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _vc_tree__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../vc-tree */ "./components/vc-tree/index.js");
/* harmony import */ var _vc_tree__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_vc_tree__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../util */ "./components/vc-tree-select/src/util.js");
// export const popupContextTypes = {
// onPopupKeyDown: PropTypes.func.isRequired,
// onTreeNodeSelect: PropTypes.func.isRequired,
// onTreeNodeCheck: PropTypes.func.isRequired,
// }
function getDerivedState(nextProps, prevState) {
var _ref = prevState || {},
_ref$_prevProps = _ref._prevProps,
prevProps = _ref$_prevProps === undefined ? {} : _ref$_prevProps,
loadedKeys = _ref._loadedKeys,
expandedKeyList = _ref._expandedKeyList,
cachedExpandedKeyList = _ref._cachedExpandedKeyList;
var valueList = nextProps.valueList,
valueEntities = nextProps.valueEntities,
keyEntities = nextProps.keyEntities,
treeExpandedKeys = nextProps.treeExpandedKeys,
filteredTreeNodes = nextProps.filteredTreeNodes,
upperSearchValue = nextProps.upperSearchValue;
var newState = {
_prevProps: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, nextProps)
};
// Check value update
if (valueList !== prevProps.valueList) {
newState._keyList = valueList.map(function (_ref2) {
var value = _ref2.value;
return valueEntities[value];
}).filter(function (entity) {
return entity;
}).map(function (_ref3) {
var key = _ref3.key;
return key;
});
}
// Show all when tree is in filter mode
if (!treeExpandedKeys && filteredTreeNodes && filteredTreeNodes.length && filteredTreeNodes !== prevProps.filteredTreeNodes) {
newState._expandedKeyList = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(keyEntities.keys()));
}
// Cache `expandedKeyList` when filter set
if (upperSearchValue && !prevProps.upperSearchValue) {
newState._cachedExpandedKeyList = expandedKeyList;
} else if (!upperSearchValue && prevProps.upperSearchValue && !treeExpandedKeys) {
newState._expandedKeyList = cachedExpandedKeyList || [];
newState._cachedExpandedKeyList = [];
}
// Use expandedKeys if provided
if (prevProps.treeExpandedKeys !== treeExpandedKeys) {
newState._expandedKeyList = treeExpandedKeys;
}
// Clean loadedKeys if key not exist in keyEntities anymore
if (nextProps.loadData) {
newState._loadedKeys = loadedKeys.filter(function (key) {
return keyEntities.has(key);
});
}
return newState;
}
var BasePopup = {
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_5__["default"]],
name: 'BasePopup',
props: {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
upperSearchValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
valueList: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
searchHalfCheckedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
valueEntities: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
keyEntities: Map,
treeIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
treeLine: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
treeNodeFilterProp: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
treeCheckable: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
treeCheckStrictly: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
treeDefaultExpandAll: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
treeDefaultExpandedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
treeExpandedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
loadData: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
// onTreeExpand: PropTypes.func,
searchValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
treeNodes: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
filteredTreeNodes: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
notFoundContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
ariaId: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
switcherIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
// HOC
renderSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
// onTreeExpanded: PropTypes.func,
__propsSymbol__: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any
},
inject: {
vcTreeSelect: { 'default': function _default() {
return {};
} }
},
watch: {
__propsSymbol__: function __propsSymbol__() {
var state = getDerivedState(this.$props, this.$data);
this.setState(state);
}
},
data: function data() {
this.treeRef = Object(_util__WEBPACK_IMPORTED_MODULE_6__["createRef"])();
warning__WEBPACK_IMPORTED_MODULE_2___default()(this.$props.__propsSymbol__, 'must pass __propsSymbol__');
var _$props = this.$props,
treeDefaultExpandAll = _$props.treeDefaultExpandAll,
treeDefaultExpandedKeys = _$props.treeDefaultExpandedKeys,
keyEntities = _$props.keyEntities;
// TODO: make `expandedKeyList` control
var expandedKeyList = treeDefaultExpandedKeys;
if (treeDefaultExpandAll) {
expandedKeyList = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(keyEntities.keys()));
}
var state = {
_keyList: [],
_expandedKeyList: expandedKeyList,
// Cache `expandedKeyList` when tree is in filter. This is used in `getDerivedState`
_cachedExpandedKeyList: [],
_loadedKeys: [],
_prevProps: {}
};
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, state, getDerivedState(this.$props, state));
},
methods: {
onTreeExpand: function onTreeExpand(expandedKeyList) {
var _this = this;
var treeExpandedKeys = this.$props.treeExpandedKeys;
// Set uncontrolled state
if (!treeExpandedKeys) {
this.setState({ _expandedKeyList: expandedKeyList }, function () {
_this.__emit('treeExpanded');
});
}
this.__emit('update:treeExpandedKeys', expandedKeyList);
this.__emit('treeExpand', expandedKeyList);
},
onLoad: function onLoad(loadedKeys) {
this.setState({ _loadedKeys: loadedKeys });
},
getTree: function getTree() {
return this.treeRef.current;
},
/**
* Not pass `loadData` when searching. To avoid loop ajax call makes browser crash.
*/
getLoadData: function getLoadData() {
var _$props2 = this.$props,
loadData = _$props2.loadData,
upperSearchValue = _$props2.upperSearchValue;
if (upperSearchValue) return null;
return loadData;
},
/**
* This method pass to Tree component which is used for add filtered class
* in TreeNode > li
*/
filterTreeNode: function filterTreeNode(treeNode) {
var _$props3 = this.$props,
upperSearchValue = _$props3.upperSearchValue,
treeNodeFilterProp = _$props3.treeNodeFilterProp;
var filterVal = treeNode[treeNodeFilterProp];
if (typeof filterVal === 'string') {
return upperSearchValue && filterVal.toUpperCase().indexOf(upperSearchValue) !== -1;
}
return false;
},
renderNotFound: function renderNotFound() {
var h = this.$createElement;
var _$props4 = this.$props,
prefixCls = _$props4.prefixCls,
notFoundContent = _$props4.notFoundContent;
return h(
'span',
{ 'class': prefixCls + '-not-found' },
[notFoundContent]
);
}
},
render: function render() {
var h = arguments[0];
var _$data = this.$data,
keyList = _$data._keyList,
expandedKeyList = _$data._expandedKeyList,
loadedKeys = _$data._loadedKeys;
var _$props5 = this.$props,
prefixCls = _$props5.prefixCls,
treeNodes = _$props5.treeNodes,
filteredTreeNodes = _$props5.filteredTreeNodes,
treeIcon = _$props5.treeIcon,
treeLine = _$props5.treeLine,
treeCheckable = _$props5.treeCheckable,
treeCheckStrictly = _$props5.treeCheckStrictly,
multiple = _$props5.multiple,
ariaId = _$props5.ariaId,
renderSearch = _$props5.renderSearch,
switcherIcon = _$props5.switcherIcon,
searchHalfCheckedKeys = _$props5.searchHalfCheckedKeys;
var _vcTreeSelect = this.vcTreeSelect,
onPopupKeyDown = _vcTreeSelect.onPopupKeyDown,
onTreeNodeSelect = _vcTreeSelect.onTreeNodeSelect,
onTreeNodeCheck = _vcTreeSelect.onTreeNodeCheck;
var loadData = this.getLoadData();
var treeProps = {};
if (treeCheckable) {
treeProps.checkedKeys = keyList;
} else {
treeProps.selectedKeys = keyList;
}
var $notFound = void 0;
var $treeNodes = void 0;
if (filteredTreeNodes) {
if (filteredTreeNodes.length) {
treeProps.checkStrictly = true;
$treeNodes = filteredTreeNodes;
// Fill halfCheckedKeys
if (treeCheckable && !treeCheckStrictly) {
treeProps.checkedKeys = {
checked: keyList,
halfChecked: searchHalfCheckedKeys
};
}
} else {
$notFound = this.renderNotFound();
}
} else if (!treeNodes || !treeNodes.length) {
$notFound = this.renderNotFound();
} else {
$treeNodes = treeNodes;
}
var $tree = void 0;
if ($notFound) {
$tree = $notFound;
} else {
var treeAllProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
prefixCls: prefixCls + '-tree',
showIcon: treeIcon,
showLine: treeLine,
selectable: !treeCheckable,
checkable: treeCheckable,
checkStrictly: treeCheckStrictly,
multiple: multiple,
loadData: loadData,
loadedKeys: loadedKeys,
expandedKeys: expandedKeyList,
filterTreeNode: this.filterTreeNode,
switcherIcon: switcherIcon
}, treeProps, {
__propsSymbol__: Symbol(),
children: $treeNodes
}),
on: {
select: onTreeNodeSelect,
check: onTreeNodeCheck,
expand: this.onTreeExpand,
load: this.onLoad
},
directives: [{
name: 'ant-ref',
value: this.treeRef
}]
};
$tree = h(_vc_tree__WEBPACK_IMPORTED_MODULE_4__["Tree"], treeAllProps);
}
return h(
'div',
{
attrs: { role: 'listbox', id: ariaId, tabIndex: -1 },
on: {
'keydown': onPopupKeyDown
}
},
[renderSearch ? renderSearch() : null, $tree]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (BasePopup);
/***/ }),
/***/ "./components/vc-tree-select/src/Base/BaseSelector.jsx":
/*!*************************************************************!*\
!*** ./components/vc-tree-select/src/Base/BaseSelector.jsx ***!
\*************************************************************/
/*! exports provided: selectorPropTypes, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "selectorPropTypes", function() { return selectorPropTypes; });
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util */ "./components/vc-tree-select/src/util.js");
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/**
* Input Box is in different position for different mode.
* This not the same design as `Select` cause it's followed by antd 0.x `Select`.
* We will not follow the new design immediately since antd 3.x is already released.
*
* So this file named as Selector to avoid confuse.
*/
var selectorPropTypes = function selectorPropTypes() {
return {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
className: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
open: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
selectorValueList: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].array,
allowClear: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
showArrow: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
// onClick: PropTypes.func,
// onBlur: PropTypes.func,
// onFocus: PropTypes.func,
removeSelected: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func,
choiceTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
// Pass by component
ariaId: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].string,
inputIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
clearIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
removeIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].any,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool,
focused: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].bool
};
};
function noop() {}
/* harmony default export */ __webpack_exports__["default"] = (function (modeName) {
var BaseSelector = {
name: 'BaseSelector',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__["default"]],
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["initDefaultProps"])(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, selectorPropTypes(), {
// Pass by HOC
renderSelection: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func.isRequired,
renderPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].func,
tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_4__["default"].number
}), {
tabIndex: 0
}),
inject: {
vcTreeSelect: { 'default': function _default() {
return {};
} }
},
created: function created() {
this.domRef = Object(_util__WEBPACK_IMPORTED_MODULE_3__["createRef"])();
},
methods: {
onFocus: function onFocus(e) {
var focused = this.$props.focused;
var onSelectorFocus = this.vcTreeSelect.onSelectorFocus;
if (!focused) {
onSelectorFocus();
}
this.__emit('focus', e);
},
onBlur: function onBlur(e) {
var onSelectorBlur = this.vcTreeSelect.onSelectorBlur;
// TODO: Not trigger when is inner component get focused
onSelectorBlur();
this.__emit('blur', e);
},
focus: function focus() {
this.domRef.current.focus();
},
blur: function blur() {
this.domRef.current.blur();
},
renderClear: function renderClear() {
var h = this.$createElement;
var _$props = this.$props,
prefixCls = _$props.prefixCls,
allowClear = _$props.allowClear,
selectorValueList = _$props.selectorValueList;
var onSelectorClear = this.vcTreeSelect.onSelectorClear;
if (!allowClear || !selectorValueList.length || !selectorValueList[0].value) {
return null;
}
var clearIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'clearIcon');
return h(
'span',
{ key: 'clear', 'class': prefixCls + '-selection__clear', on: {
'click': onSelectorClear
}
},
[clearIcon]
);
},
renderArrow: function renderArrow() {
var h = this.$createElement;
var _$props2 = this.$props,
prefixCls = _$props2.prefixCls,
showArrow = _$props2.showArrow;
if (!showArrow) {
return null;
}
var inputIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'inputIcon');
return h(
'span',
{ key: 'arrow', 'class': prefixCls + '-arrow', style: { outline: 'none' } },
[inputIcon]
);
}
},
render: function render() {
var _classNames;
var h = arguments[0];
var _$props3 = this.$props,
prefixCls = _$props3.prefixCls,
className = _$props3.className,
style = _$props3.style,
open = _$props3.open,
focused = _$props3.focused,
disabled = _$props3.disabled,
allowClear = _$props3.allowClear,
ariaId = _$props3.ariaId,
renderSelection = _$props3.renderSelection,
renderPlaceholder = _$props3.renderPlaceholder,
tabIndex = _$props3.tabIndex;
var onSelectorKeyDown = this.vcTreeSelect.onSelectorKeyDown;
var myTabIndex = tabIndex;
if (disabled) {
myTabIndex = null;
}
return h(
'span',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
style: style,
on: {
'click': Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this).click || noop
},
'class': classnames__WEBPACK_IMPORTED_MODULE_5___default()(className, prefixCls, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-open', open), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-focused', open || focused), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-disabled', disabled), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-enabled', !disabled), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-allow-clear', allowClear), _classNames))
}, {
directives: [{
name: 'ant-ref',
value: this.domRef
}]
}, {
attrs: {
role: 'combobox',
'aria-expanded': open,
'aria-owns': open ? ariaId : undefined,
'aria-controls': open ? ariaId : undefined,
'aria-haspopup': 'listbox',
'aria-disabled': disabled,
tabIndex: myTabIndex
},
on: {
'focus': this.onFocus,
'blur': this.onBlur,
'keydown': onSelectorKeyDown
}
}]),
[h(
'span',
{
key: 'selection',
'class': classnames__WEBPACK_IMPORTED_MODULE_5___default()(prefixCls + '-selection', prefixCls + '-selection--' + modeName)
},
[renderSelection(), this.renderClear(), this.renderArrow(), renderPlaceholder && renderPlaceholder()]
)]
);
}
};
return BaseSelector;
});
/***/ }),
/***/ "./components/vc-tree-select/src/Popup/MultiplePopup.jsx":
/*!***************************************************************!*\
!*** ./components/vc-tree-select/src/Popup/MultiplePopup.jsx ***!
\***************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Base_BasePopup__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Base/BasePopup */ "./components/vc-tree-select/src/Base/BasePopup.jsx");
/* harmony default export */ __webpack_exports__["default"] = (_Base_BasePopup__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/vc-tree-select/src/Popup/SinglePopup.jsx":
/*!*************************************************************!*\
!*** ./components/vc-tree-select/src/Popup/SinglePopup.jsx ***!
\*************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _Base_BasePopup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Base/BasePopup */ "./components/vc-tree-select/src/Base/BasePopup.jsx");
/* harmony import */ var _SearchInput__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../SearchInput */ "./components/vc-tree-select/src/SearchInput.jsx");
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util */ "./components/vc-tree-select/src/util.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../_util/props-util */ "./components/_util/props-util.js");
var SinglePopup = {
name: 'SinglePopup',
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, _Base_BasePopup__WEBPACK_IMPORTED_MODULE_3__["default"].props, _SearchInput__WEBPACK_IMPORTED_MODULE_4__["default"].props, {
searchValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
showSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
dropdownPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
searchPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string
}),
created: function created() {
this.inputRef = Object(_util__WEBPACK_IMPORTED_MODULE_5__["createRef"])();
this.searchRef = Object(_util__WEBPACK_IMPORTED_MODULE_5__["createRef"])();
this.popupRef = Object(_util__WEBPACK_IMPORTED_MODULE_5__["createRef"])();
},
methods: {
onPlaceholderClick: function onPlaceholderClick() {
this.inputRef.current.focus();
},
getTree: function getTree() {
return this.popupRef.current && this.popupRef.current.getTree();
},
_renderPlaceholder: function _renderPlaceholder() {
var h = this.$createElement;
var _$props = this.$props,
searchPlaceholder = _$props.searchPlaceholder,
searchValue = _$props.searchValue,
prefixCls = _$props.prefixCls;
if (!searchPlaceholder) {
return null;
}
return h(
'span',
{
style: {
display: searchValue ? 'none' : 'block'
},
on: {
'click': this.onPlaceholderClick
},
'class': prefixCls + '-search__field__placeholder'
},
[searchPlaceholder]
);
},
_renderSearch: function _renderSearch() {
var h = this.$createElement;
var _$props2 = this.$props,
showSearch = _$props2.showSearch,
dropdownPrefixCls = _$props2.dropdownPrefixCls;
if (!showSearch) {
return null;
}
return h(
'span',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
'class': dropdownPrefixCls + '-search'
}, {
directives: [{
name: 'ant-ref',
value: this.searchRef
}]
}]),
[h(_SearchInput__WEBPACK_IMPORTED_MODULE_4__["default"], {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.$props, { renderPlaceholder: this._renderPlaceholder }),
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this),
directives: [{
name: 'ant-ref',
value: this.inputRef
}]
})]
);
}
},
render: function render() {
var h = arguments[0];
return h(_Base_BasePopup__WEBPACK_IMPORTED_MODULE_3__["default"], {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.$props, { renderSearch: this._renderSearch, __propsSymbol__: Symbol() }),
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getListeners"])(this),
directives: [{
name: 'ant-ref',
value: this.popupRef
}]
});
}
};
/* harmony default export */ __webpack_exports__["default"] = (SinglePopup);
/***/ }),
/***/ "./components/vc-tree-select/src/SearchInput.jsx":
/*!*******************************************************!*\
!*** ./components/vc-tree-select/src/SearchInput.jsx ***!
\*******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./util */ "./components/vc-tree-select/src/util.js");
/**
* Since search box is in different position with different mode.
* - Single: in the popup box
* - multiple: in the selector
* Move the code as a SearchInput for easy management.
*/
var SearchInput = {
name: 'SearchInput',
props: {
open: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
searchValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
renderPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
needAlign: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
ariaId: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string
},
inject: {
vcTreeSelect: { 'default': function _default() {
return {};
} }
},
data: function data() {
return {
mirrorSearchValue: this.searchValue
};
},
watch: {
searchValue: function searchValue(val) {
this.mirrorSearchValue = val;
}
},
created: function created() {
this.inputRef = Object(_util__WEBPACK_IMPORTED_MODULE_3__["createRef"])();
this.mirrorInputRef = Object(_util__WEBPACK_IMPORTED_MODULE_3__["createRef"])();
this.prevProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, this.$props);
},
mounted: function mounted() {
var _this = this;
this.$nextTick(function () {
var _$props = _this.$props,
open = _$props.open,
needAlign = _$props.needAlign;
if (needAlign) {
_this.alignInputWidth();
}
if (open) {
_this.focus(true);
}
});
},
updated: function updated() {
var _this2 = this;
var _$props2 = this.$props,
open = _$props2.open,
searchValue = _$props2.searchValue,
needAlign = _$props2.needAlign;
var prevProps = this.prevProps;
this.$nextTick(function () {
if (open && prevProps.open !== open) {
_this2.focus();
}
if (needAlign && searchValue !== prevProps.searchValue) {
_this2.alignInputWidth();
}
_this2.prevProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, _this2.$props);
});
},
methods: {
/**
* `scrollWidth` is not correct in IE, do the workaround.
* ref: https://github.com/react-component/tree-select/issues/65
* clientWidth 0 when mounted in vue. why?
*/
alignInputWidth: function alignInputWidth() {
this.inputRef.current.style.width = (this.mirrorInputRef.current.clientWidth || this.mirrorInputRef.current.offsetWidth) + 'px';
},
/**
* Need additional timeout for focus cause parent dom is not ready when didMount trigger
*/
focus: function focus(isDidMount) {
var _this3 = this;
if (this.inputRef.current) {
if (isDidMount) {
setTimeout(function () {
_this3.inputRef.current.focus();
}, 0);
} else {
// set it into else, Avoid scrolling when focus
this.inputRef.current.focus();
}
}
},
blur: function blur() {
if (this.inputRef.current) {
this.inputRef.current.blur();
}
},
handleInputChange: function handleInputChange(e) {
var _e$target = e.target,
value = _e$target.value,
composing = _e$target.composing;
var _searchValue = this.searchValue,
searchValue = _searchValue === undefined ? '' : _searchValue;
if (e.isComposing || composing || searchValue === value) {
this.mirrorSearchValue = value;
return;
}
this.vcTreeSelect.onSearchInputChange(e);
}
},
render: function render() {
var h = arguments[0];
var _$props3 = this.$props,
searchValue = _$props3.searchValue,
prefixCls = _$props3.prefixCls,
disabled = _$props3.disabled,
renderPlaceholder = _$props3.renderPlaceholder,
open = _$props3.open,
ariaId = _$props3.ariaId;
var onSearchInputKeyDown = this.vcTreeSelect.onSearchInputKeyDown,
handleInputChange = this.handleInputChange,
mirrorSearchValue = this.mirrorSearchValue;
return h(
'span',
{ 'class': prefixCls + '-search__field__wrap' },
[h('input', babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
attrs: {
type: 'text'
}
}, {
directives: [{
name: 'ant-ref',
value: this.inputRef
}, {
name: 'ant-input'
}]
}, {
on: {
'input': handleInputChange,
'keydown': onSearchInputKeyDown
},
domProps: {
'value': searchValue
},
attrs: {
disabled: disabled,
'aria-label': 'filter select',
'aria-autocomplete': 'list',
'aria-controls': open ? ariaId : undefined,
'aria-multiline': 'false'
},
'class': prefixCls + '-search__field' }])), h(
'span',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
directives: [{
name: 'ant-ref',
value: this.mirrorInputRef
}]
}, {
'class': prefixCls + '-search__field__mirror'
}]),
[mirrorSearchValue, '\xA0']
), renderPlaceholder && !mirrorSearchValue ? renderPlaceholder() : null]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (SearchInput);
/***/ }),
/***/ "./components/vc-tree-select/src/Select.jsx":
/*!**************************************************!*\
!*** ./components/vc-tree-select/src/Select.jsx ***!
\**************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! shallowequal */ "./node_modules/shallowequal/index.js");
/* harmony import */ var shallowequal__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(shallowequal__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! raf */ "./node_modules/raf/index.js");
/* harmony import */ var raf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(raf__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var dom_scroll_into_view__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! dom-scroll-into-view */ "./node_modules/dom-scroll-into-view/dist-web/index.js");
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! warning */ "./node_modules/warning/warning.js");
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../_util/KeyCode */ "./components/_util/KeyCode.js");
/* harmony import */ var _SelectTrigger__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./SelectTrigger */ "./components/vc-tree-select/src/SelectTrigger.jsx");
/* harmony import */ var _Selector_SingleSelector__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Selector/SingleSelector */ "./components/vc-tree-select/src/Selector/SingleSelector.jsx");
/* harmony import */ var _Selector_MultipleSelector__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Selector/MultipleSelector */ "./components/vc-tree-select/src/Selector/MultipleSelector/index.jsx");
/* harmony import */ var _Popup_SinglePopup__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Popup/SinglePopup */ "./components/vc-tree-select/src/Popup/SinglePopup.jsx");
/* harmony import */ var _Popup_MultiplePopup__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Popup/MultiplePopup */ "./components/vc-tree-select/src/Popup/MultiplePopup.jsx");
/* harmony import */ var _strategies__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./strategies */ "./components/vc-tree-select/src/strategies.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./util */ "./components/vc-tree-select/src/util.js");
/* harmony import */ var _SelectNode__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./SelectNode */ "./components/vc-tree-select/src/SelectNode.jsx");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
/**
* ARIA: https://www.w3.org/TR/wai-aria/#combobox
* Sample 1: https://www.w3.org/TR/2017/NOTE-wai-aria-practices-1.1-20171214/examples/combobox/aria1.1pattern/listbox-combo.html
* Sample 2: https://www.w3.org/blog/wai-components-gallery/widget/combobox-with-aria-autocompleteinline/
*
* Tab logic:
* Popup is close
* 1. Focus input (mark component as focused)
* 2. Press enter to show the popup
* 3. If popup has input, focus it
*
* Popup is open
* 1. press tab to close the popup
* 2. Focus back to the selection input box
* 3. Let the native tab going on
*
* TreeSelect use 2 design type.
* In single mode, we should focus on the `span`
* In multiple mode, we should focus on the `input`
*/
function getWatch() {
var keys = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
var watch = {};
keys.forEach(function (k) {
watch[k] = function () {
this.needSyncKeys[k] = true;
};
});
return watch;
}
var Select = {
name: 'Select',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_15__["default"]],
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["initDefaultProps"])({
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
prefixAria: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
showArrow: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
open: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
autoFocus: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
defaultOpen: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
defaultValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
showSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
placeholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
inputValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string, // [Legacy] Deprecated. Use `searchValue` instead.
searchValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
autoClearSearchValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
searchPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any, // [Legacy] Confuse with placeholder
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
children: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
labelInValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
maxTagCount: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].number,
maxTagPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any, _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].func]),
maxTagTextLength: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].number,
showCheckedStrategy: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].oneOf([_strategies__WEBPACK_IMPORTED_MODULE_14__["SHOW_ALL"], _strategies__WEBPACK_IMPORTED_MODULE_14__["SHOW_PARENT"], _strategies__WEBPACK_IMPORTED_MODULE_14__["SHOW_CHILD"]]),
dropdownClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
dropdownStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].object,
dropdownVisibleChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].func,
dropdownMatchSelectWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
treeData: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].array,
treeDataSimpleMode: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool, _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].object]),
treeNodeFilterProp: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
treeNodeLabelProp: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
treeCheckable: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any, _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool]),
// treeCheckable: PropTypes.any,
treeCheckStrictly: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
treeIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
treeLine: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
treeDefaultExpandAll: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
treeDefaultExpandedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].array,
treeExpandedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].array,
loadData: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].func,
filterTreeNode: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].func, _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool]),
notFoundContent: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].func,
// onSearch: PropTypes.func,
// onSelect: PropTypes.func,
// onDeselect: PropTypes.func,
// onChange: PropTypes.func,
// onDropdownVisibleChange: PropTypes.func,
// onTreeExpand: PropTypes.func,
allowClear: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].bool,
transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
animation: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
choiceTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].string,
inputIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
clearIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
removeIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
switcherIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any,
__propsSymbol__: _util_vue_types__WEBPACK_IMPORTED_MODULE_7__["default"].any
}, {
prefixCls: 'rc-tree-select',
prefixAria: 'rc-tree-select',
showArrow: true,
showSearch: true,
autoClearSearchValue: true,
showCheckedStrategy: _strategies__WEBPACK_IMPORTED_MODULE_14__["SHOW_CHILD"],
// dropdownMatchSelectWidth change the origin design, set to false now
// ref: https://github.com/react-component/select/blob/4cad95e098a341a09de239ad6981067188842020/src/Select.jsx#L344
// ref: https://github.com/react-component/select/pull/71
treeNodeFilterProp: 'value',
treeNodeLabelProp: 'title',
treeIcon: false,
notFoundContent: 'Not Found',
dropdownStyle: {},
dropdownVisibleChange: function dropdownVisibleChange() {
return true;
}
}),
data: function data() {
warning__WEBPACK_IMPORTED_MODULE_6___default()(this.$props.__propsSymbol__, 'must pass __propsSymbol__');
var _$props = this.$props,
prefixAria = _$props.prefixAria,
defaultOpen = _$props.defaultOpen,
open = _$props.open;
this.needSyncKeys = {};
this.selectorRef = Object(_util__WEBPACK_IMPORTED_MODULE_16__["createRef"])();
this.selectTriggerRef = Object(_util__WEBPACK_IMPORTED_MODULE_16__["createRef"])();
// ARIA need `aria-controls` props mapping
// Since this need user input. Let's generate ourselves
this.ariaId = Object(_util__WEBPACK_IMPORTED_MODULE_16__["generateAriaId"])(prefixAria + '-list');
var state = {
_open: open || defaultOpen,
_valueList: [],
_searchHalfCheckedKeys: [],
_missValueList: [], // Contains the value not in the tree
_selectorValueList: [], // Used for multiple selector
_valueEntities: {},
_posEntities: new Map(),
_keyEntities: new Map(),
_searchValue: '',
_prevProps: {},
_init: true,
_focused: undefined,
_treeNodes: undefined,
_filteredTreeNodes: undefined
};
var newState = this.getDerivedState(this.$props, state);
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, state, newState);
},
provide: function provide() {
return {
vcTreeSelect: {
onSelectorFocus: this.onSelectorFocus,
onSelectorBlur: this.onSelectorBlur,
onSelectorKeyDown: this.onComponentKeyDown,
onSelectorClear: this.onSelectorClear,
onMultipleSelectorRemove: this.onMultipleSelectorRemove,
onTreeNodeSelect: this.onTreeNodeSelect,
onTreeNodeCheck: this.onTreeNodeCheck,
onPopupKeyDown: this.onComponentKeyDown,
onSearchInputChange: this.onSearchInputChange,
onSearchInputKeyDown: this.onSearchInputKeyDown
}
};
},
watch: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, getWatch(['treeData', 'defaultValue', 'value']), {
__propsSymbol__: function __propsSymbol__() {
var state = this.getDerivedState(this.$props, this.$data);
this.setState(state);
this.needSyncKeys = {};
},
'$data._valueList': function $data_valueList() {
var _this = this;
this.$nextTick(function () {
_this.forcePopupAlign();
});
},
'$data._open': function $data_open(open) {
var _this2 = this;
setTimeout(function () {
var prefixCls = _this2.$props.prefixCls;
var _$data = _this2.$data,
selectorValueList = _$data._selectorValueList,
valueEntities = _$data._valueEntities;
var isMultiple = _this2.isMultiple();
// Scroll to value position, only need sync on single mode
if (!isMultiple && selectorValueList.length && open && _this2.popup) {
var value = selectorValueList[0].value;
var _popup$getTree = _this2.popup.getTree(),
domTreeNodes = _popup$getTree.domTreeNodes;
var _ref = valueEntities[value] || {},
key = _ref.key;
var treeNode = domTreeNodes[key];
if (treeNode) {
var domNode = treeNode.$el;
raf__WEBPACK_IMPORTED_MODULE_4___default()(function () {
var popupNode = _this2.popup.$el;
var triggerContainer = Object(_util__WEBPACK_IMPORTED_MODULE_16__["findPopupContainer"])(popupNode, prefixCls + '-dropdown');
var searchNode = _this2.popup.searchRef.current;
if (domNode && triggerContainer && searchNode) {
Object(dom_scroll_into_view__WEBPACK_IMPORTED_MODULE_5__["default"])(domNode, triggerContainer, {
onlyScrollIfNeeded: true,
offsetTop: searchNode.offsetHeight
});
}
});
}
}
});
}
}),
mounted: function mounted() {
var _this3 = this;
this.$nextTick(function () {
var _$props2 = _this3.$props,
autoFocus = _$props2.autoFocus,
disabled = _$props2.disabled;
if (autoFocus && !disabled) {
_this3.focus();
}
});
},
methods: {
getDerivedState: function getDerivedState(nextProps, prevState) {
var h = this.$createElement;
var _prevState$_prevProps = prevState._prevProps,
prevProps = _prevState$_prevProps === undefined ? {} : _prevState$_prevProps;
var treeCheckable = nextProps.treeCheckable,
treeCheckStrictly = nextProps.treeCheckStrictly,
filterTreeNode = nextProps.filterTreeNode,
treeNodeFilterProp = nextProps.treeNodeFilterProp,
treeDataSimpleMode = nextProps.treeDataSimpleMode;
var newState = {
_prevProps: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, nextProps),
_init: false
};
var self = this;
// Process the state when props updated
function processState(propName, updater) {
if (prevProps[propName] !== nextProps[propName] || self.needSyncKeys[propName]) {
updater(nextProps[propName], prevProps[propName]);
return true;
}
return false;
}
var valueRefresh = false;
// Open
processState('open', function (propValue) {
newState._open = propValue;
});
// Tree Nodes
var treeNodes = void 0;
var treeDataChanged = false;
var treeDataModeChanged = false;
processState('treeData', function (propValue) {
treeNodes = Object(_util__WEBPACK_IMPORTED_MODULE_16__["convertDataToTree"])(h, propValue);
treeDataChanged = true;
});
processState('treeDataSimpleMode', function (propValue, prevValue) {
if (!propValue) return;
var prev = !prevValue || prevValue === true ? {} : prevValue;
// Shallow equal to avoid dynamic prop object
if (!shallowequal__WEBPACK_IMPORTED_MODULE_3___default()(propValue, prev)) {
treeDataModeChanged = true;
}
});
// Parse by `treeDataSimpleMode`
if (treeDataSimpleMode && (treeDataChanged || treeDataModeChanged)) {
var simpleMapper = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
id: 'id',
pId: 'pId',
rootPId: null
}, treeDataSimpleMode !== true ? treeDataSimpleMode : {});
treeNodes = Object(_util__WEBPACK_IMPORTED_MODULE_16__["convertDataToTree"])(h, Object(_util__WEBPACK_IMPORTED_MODULE_16__["parseSimpleTreeData"])(nextProps.treeData, simpleMapper));
}
// If `treeData` not provide, use children TreeNodes
if (!nextProps.treeData) {
// processState('children', (propValue) => {
// treeNodes = Array.isArray(propValue) ? propValue : [propValue]
// })
treeNodes = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["filterEmpty"])(this.$slots['default']);
}
// Convert `treeData` to entities
if (treeNodes) {
var entitiesMap = Object(_util__WEBPACK_IMPORTED_MODULE_16__["convertTreeToEntities"])(treeNodes);
newState._treeNodes = treeNodes;
newState._posEntities = entitiesMap.posEntities;
newState._valueEntities = entitiesMap.valueEntities;
newState._keyEntities = entitiesMap.keyEntities;
valueRefresh = true;
}
// Value List
if (prevState._init) {
processState('defaultValue', function (propValue) {
newState._valueList = Object(_util__WEBPACK_IMPORTED_MODULE_16__["formatInternalValue"])(propValue, nextProps);
valueRefresh = true;
});
}
processState('value', function (propValue) {
newState._valueList = Object(_util__WEBPACK_IMPORTED_MODULE_16__["formatInternalValue"])(propValue, nextProps);
valueRefresh = true;
});
// Selector Value List
if (valueRefresh) {
// Find out that value not exist in the tree
var missValueList = [];
var filteredValueList = [];
var keyList = [];
// Get latest value list
var latestValueList = newState._valueList;
if (!latestValueList) {
// Also need add prev missValueList to avoid new treeNodes contains the value
latestValueList = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(prevState._valueList), babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(prevState._missValueList));
}
// Get key by value
var valueLabels = {};
latestValueList.forEach(function (wrapperValue) {
var value = wrapperValue.value,
label = wrapperValue.label;
var entity = (newState._valueEntities || prevState._valueEntities)[value];
valueLabels[value] = label;
if (entity) {
keyList.push(entity.key);
filteredValueList.push(wrapperValue);
return;
}
// If not match, it may caused by ajax load. We need keep this
missValueList.push(wrapperValue);
});
// We need calculate the value when tree is checked tree
if (treeCheckable && !treeCheckStrictly) {
// Calculate the keys need to be checked
var _conductCheck = Object(_util__WEBPACK_IMPORTED_MODULE_16__["conductCheck"])(keyList, true, newState._keyEntities || prevState._keyEntities),
checkedKeys = _conductCheck.checkedKeys;
// Format value list again for internal usage
newState._valueList = checkedKeys.map(function (key) {
var val = (newState._keyEntities || prevState._keyEntities).get(key).value;
var wrappedValue = {
value: val
};
if (valueLabels[val] !== undefined) {
wrappedValue.label = valueLabels[val];
}
return wrappedValue;
});
} else {
newState._valueList = filteredValueList;
}
// Fill the missValueList, we still need display in the selector
newState._missValueList = missValueList;
// Calculate the value list for `Selector` usage
newState._selectorValueList = Object(_util__WEBPACK_IMPORTED_MODULE_16__["formatSelectorValue"])(newState._valueList, nextProps, newState._valueEntities || prevState._valueEntities);
}
// [Legacy] To align with `Select` component,
// We use `searchValue` instead of `inputValue` but still keep the api
// `inputValue` support `null` to work as `autoClearSearchValue`
processState('inputValue', function (propValue) {
if (propValue !== null) {
newState._searchValue = propValue;
}
});
// Search value
processState('searchValue', function (propValue) {
newState._searchValue = propValue;
});
// Do the search logic
if (newState._searchValue !== undefined || prevState._searchValue && treeNodes) {
var searchValue = newState._searchValue !== undefined ? newState._searchValue : prevState._searchValue;
var upperSearchValue = String(searchValue).toUpperCase();
var filterTreeNodeFn = filterTreeNode;
if (filterTreeNode === false) {
// Don't filter if is false
filterTreeNodeFn = function filterTreeNodeFn() {
return true;
};
} else if (typeof filterTreeNodeFn !== 'function') {
// When is not function (true or undefined), use inner filter
filterTreeNodeFn = function filterTreeNodeFn(_, node) {
var nodeValue = String(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["getPropsData"])(node)[treeNodeFilterProp]).toUpperCase();
return nodeValue.indexOf(upperSearchValue) !== -1;
};
}
newState._filteredTreeNodes = Object(_util__WEBPACK_IMPORTED_MODULE_16__["getFilterTree"])(this.$createElement, newState._treeNodes || prevState._treeNodes, searchValue, filterTreeNodeFn, newState._valueEntities || prevState._valueEntities, _SelectNode__WEBPACK_IMPORTED_MODULE_17__["default"]);
}
// We should re-calculate the halfCheckedKeys when in search mode
if (valueRefresh && treeCheckable && !treeCheckStrictly && (newState._searchValue || prevState._searchValue)) {
newState._searchHalfCheckedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_16__["getHalfCheckedKeys"])(newState._valueList, newState._valueEntities || prevState._valueEntities);
}
// Checked Strategy
processState('showCheckedStrategy', function () {
newState._selectorValueList = newState._selectorValueList || Object(_util__WEBPACK_IMPORTED_MODULE_16__["formatSelectorValue"])(newState._valueList || prevState._valueList, nextProps, newState._valueEntities || prevState._valueEntities);
});
return newState;
},
// ==================== Selector ====================
onSelectorFocus: function onSelectorFocus() {
this.setState({ _focused: true });
},
onSelectorBlur: function onSelectorBlur() {
this.setState({ _focused: false });
// TODO: Close when Popup is also not focused
// this.setState({ open: false });
},
// Handle key board event in both Selector and Popup
onComponentKeyDown: function onComponentKeyDown(event) {
var open = this.$data._open;
var keyCode = event.keyCode;
if (!open) {
if ([_util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].ENTER, _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].DOWN].indexOf(keyCode) !== -1) {
this.setOpenState(true);
}
} else if (_util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].ESC === keyCode) {
this.setOpenState(false);
} else if ([_util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].UP, _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].DOWN, _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].LEFT, _util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].RIGHT].indexOf(keyCode) !== -1) {
// TODO: Handle `open` state
event.stopPropagation();
}
},
onDeselect: function onDeselect(wrappedValue, node, nodeEventInfo) {
this.__emit('deselect', wrappedValue, node, nodeEventInfo);
},
onSelectorClear: function onSelectorClear(event) {
var disabled = this.$props.disabled;
if (disabled) return;
this.triggerChange([], []);
if (!this.isSearchValueControlled()) {
this.setUncontrolledState({
_searchValue: '',
_filteredTreeNodes: null
});
}
event.stopPropagation();
},
onMultipleSelectorRemove: function onMultipleSelectorRemove(event, removeValue) {
event.stopPropagation();
var _$data2 = this.$data,
valueList = _$data2._valueList,
missValueList = _$data2._missValueList,
valueEntities = _$data2._valueEntities;
var _$props3 = this.$props,
treeCheckable = _$props3.treeCheckable,
treeCheckStrictly = _$props3.treeCheckStrictly,
treeNodeLabelProp = _$props3.treeNodeLabelProp,
disabled = _$props3.disabled;
if (disabled) return;
// Find trigger entity
var triggerEntity = valueEntities[removeValue];
// Clean up value
var newValueList = valueList;
if (triggerEntity) {
// If value is in tree
if (treeCheckable && !treeCheckStrictly) {
newValueList = valueList.filter(function (_ref2) {
var value = _ref2.value;
var entity = valueEntities[value];
return !Object(_util__WEBPACK_IMPORTED_MODULE_16__["isPosRelated"])(entity.pos, triggerEntity.pos);
});
} else {
newValueList = valueList.filter(function (_ref3) {
var value = _ref3.value;
return value !== removeValue;
});
}
}
var triggerNode = triggerEntity ? triggerEntity.node : null;
var extraInfo = {
triggerValue: removeValue,
triggerNode: triggerNode
};
var deselectInfo = {
node: triggerNode
};
// [Legacy] Little hack on this to make same action as `onCheck` event.
if (treeCheckable) {
var filteredEntityList = newValueList.map(function (_ref4) {
var value = _ref4.value;
return valueEntities[value];
});
deselectInfo.event = 'check';
deselectInfo.checked = false;
deselectInfo.checkedNodes = filteredEntityList.map(function (_ref5) {
var node = _ref5.node;
return node;
});
deselectInfo.checkedNodesPositions = filteredEntityList.map(function (_ref6) {
var node = _ref6.node,
pos = _ref6.pos;
return {
node: node,
pos: pos
};
});
if (treeCheckStrictly) {
extraInfo.allCheckedNodes = deselectInfo.checkedNodes;
} else {
// TODO: It's too expansive to get `halfCheckedKeys` in onDeselect. Not pass this.
extraInfo.allCheckedNodes = Object(_util__WEBPACK_IMPORTED_MODULE_16__["flatToHierarchy"])(filteredEntityList).map(function (_ref7) {
var node = _ref7.node;
return node;
});
}
} else {
deselectInfo.event = 'select';
deselectInfo.selected = false;
deselectInfo.selectedNodes = newValueList.map(function (_ref8) {
var value = _ref8.value;
return (valueEntities[value] || {}).node;
});
}
// Some value user pass prop is not in the tree, we also need clean it
var newMissValueList = missValueList.filter(function (_ref9) {
var value = _ref9.value;
return value !== removeValue;
});
var wrappedValue = void 0;
if (this.isLabelInValue()) {
wrappedValue = {
label: triggerNode ? Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["getPropsData"])(triggerNode)[treeNodeLabelProp] : null,
value: removeValue
};
} else {
wrappedValue = removeValue;
}
this.onDeselect(wrappedValue, triggerNode, deselectInfo);
this.triggerChange(newMissValueList, newValueList, extraInfo);
},
// ===================== Popup ======================
onValueTrigger: function onValueTrigger(isAdd, nodeList, nodeEventInfo, nodeExtraInfo) {
var node = nodeEventInfo.node;
var value = node.$props.value;
var _$data3 = this.$data,
missValueList = _$data3._missValueList,
valueEntities = _$data3._valueEntities,
keyEntities = _$data3._keyEntities,
searchValue = _$data3._searchValue;
var _$props4 = this.$props,
disabled = _$props4.disabled,
inputValue = _$props4.inputValue,
treeNodeLabelProp = _$props4.treeNodeLabelProp,
multiple = _$props4.multiple,
treeCheckable = _$props4.treeCheckable,
treeCheckStrictly = _$props4.treeCheckStrictly,
autoClearSearchValue = _$props4.autoClearSearchValue;
var label = node.$props[treeNodeLabelProp];
if (disabled) return;
// Wrap the return value for user
var wrappedValue = void 0;
if (this.isLabelInValue()) {
wrappedValue = {
value: value,
label: label
};
} else {
wrappedValue = value;
}
// [Legacy] Origin code not trigger `onDeselect` every time. Let's align the behaviour.
if (isAdd) {
this.__emit('select', wrappedValue, node, nodeEventInfo);
} else {
this.__emit('deselect', wrappedValue, node, nodeEventInfo);
}
// Get wrapped value list.
// This is a bit hack cause we use key to match the value.
var newValueList = nodeList.map(function (node) {
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["getPropsData"])(node);
return {
value: props.value,
label: props[treeNodeLabelProp]
};
});
// When is `treeCheckable` and with `searchValue`, `valueList` is not full filled.
// We need calculate the missing nodes.
if (treeCheckable && !treeCheckStrictly) {
var keyList = newValueList.map(function (_ref10) {
var val = _ref10.value;
return valueEntities[val].key;
});
if (isAdd) {
keyList = Object(_util__WEBPACK_IMPORTED_MODULE_16__["conductCheck"])(keyList, true, keyEntities).checkedKeys;
} else {
keyList = Object(_util__WEBPACK_IMPORTED_MODULE_16__["conductCheck"])([valueEntities[value].key], false, keyEntities, {
checkedKeys: keyList
}).checkedKeys;
}
newValueList = keyList.map(function (key) {
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["getPropsData"])(keyEntities.get(key).node);
return {
value: props.value,
label: props[treeNodeLabelProp]
};
});
}
// Clean up `searchValue` when this prop is set
if (autoClearSearchValue || inputValue === null) {
// Clean state `searchValue` if uncontrolled
if (!this.isSearchValueControlled() && (multiple || treeCheckable)) {
this.setUncontrolledState({
_searchValue: '',
_filteredTreeNodes: null
});
}
// Trigger onSearch if `searchValue` to be empty.
// We should also trigger onSearch with empty string here
// since if user use `treeExpandedKeys`, it need user have the ability to reset it.
if (searchValue && searchValue.length) {
this.__emit('update:searchValue', '');
this.__emit('search', '');
}
}
// [Legacy] Provide extra info
var extraInfo = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, nodeExtraInfo, {
triggerValue: value,
triggerNode: node
});
this.triggerChange(missValueList, newValueList, extraInfo);
},
onTreeNodeSelect: function onTreeNodeSelect(_, nodeEventInfo) {
var _$data4 = this.$data,
valueList = _$data4._valueList,
valueEntities = _$data4._valueEntities;
var _$props5 = this.$props,
treeCheckable = _$props5.treeCheckable,
multiple = _$props5.multiple;
if (treeCheckable) return;
if (!multiple) {
this.setOpenState(false);
}
var isAdd = nodeEventInfo.selected;
var selectedValue = nodeEventInfo.node.$props.value;
var newValueList = void 0;
if (!multiple) {
newValueList = [{ value: selectedValue }];
} else {
newValueList = valueList.filter(function (_ref11) {
var value = _ref11.value;
return value !== selectedValue;
});
if (isAdd) {
newValueList.push({ value: selectedValue });
}
}
var selectedNodes = newValueList.map(function (_ref12) {
var value = _ref12.value;
return valueEntities[value];
}).filter(function (entity) {
return entity;
}).map(function (_ref13) {
var node = _ref13.node;
return node;
});
this.onValueTrigger(isAdd, selectedNodes, nodeEventInfo, { selected: isAdd });
},
onTreeNodeCheck: function onTreeNodeCheck(_, nodeEventInfo) {
var _$data5 = this.$data,
searchValue = _$data5._searchValue,
keyEntities = _$data5._keyEntities,
valueEntities = _$data5._valueEntities,
valueList = _$data5._valueList;
var treeCheckStrictly = this.$props.treeCheckStrictly;
var checkedNodes = nodeEventInfo.checkedNodes,
checkedNodesPositions = nodeEventInfo.checkedNodesPositions;
var isAdd = nodeEventInfo.checked;
var extraInfo = {
checked: isAdd
};
var checkedNodeList = checkedNodes;
// [Legacy] Check event provide `allCheckedNodes`.
// When `treeCheckStrictly` or internal `searchValue` is set, TreeNode will be unrelated:
// - Related: Show the top checked nodes and has children prop.
// - Unrelated: Show all the checked nodes.
if (searchValue) {
var oriKeyList = valueList.map(function (_ref14) {
var value = _ref14.value;
return valueEntities[value];
}).filter(function (entity) {
return entity;
}).map(function (_ref15) {
var key = _ref15.key;
return key;
});
var keyList = void 0;
if (isAdd) {
keyList = Array.from(new Set([].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(oriKeyList), babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(checkedNodeList.map(function (node) {
var _getPropsData = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["getPropsData"])(node),
value = _getPropsData.value;
return valueEntities[value].key;
})))));
} else {
keyList = Object(_util__WEBPACK_IMPORTED_MODULE_16__["conductCheck"])([Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["getPropsData"])(nodeEventInfo.node).eventKey], false, keyEntities, {
checkedKeys: oriKeyList
}).checkedKeys;
}
checkedNodeList = keyList.map(function (key) {
return keyEntities.get(key).node;
});
// Let's follow as not `treeCheckStrictly` format
extraInfo.allCheckedNodes = keyList.map(function (key) {
return Object(_util__WEBPACK_IMPORTED_MODULE_16__["cleanEntity"])(keyEntities.get(key));
});
} else if (treeCheckStrictly) {
extraInfo.allCheckedNodes = nodeEventInfo.checkedNodes;
} else {
extraInfo.allCheckedNodes = Object(_util__WEBPACK_IMPORTED_MODULE_16__["flatToHierarchy"])(checkedNodesPositions);
}
this.onValueTrigger(isAdd, checkedNodeList, nodeEventInfo, extraInfo);
},
// ==================== Trigger =====================
onDropdownVisibleChange: function onDropdownVisibleChange(open) {
var _$props6 = this.$props,
multiple = _$props6.multiple,
treeCheckable = _$props6.treeCheckable;
var _searchValue = this.$data._searchValue;
// When set open success and single mode,
// we will reset the input content.
if (open && !multiple && !treeCheckable && _searchValue) {
this.setUncontrolledState({
_searchValue: '',
_filteredTreeNodes: null
});
}
this.setOpenState(open, true);
},
onSearchInputChange: function onSearchInputChange(event) {
var value = event.target.value;
var _$data6 = this.$data,
treeNodes = _$data6._treeNodes,
valueEntities = _$data6._valueEntities;
var _$props7 = this.$props,
filterTreeNode = _$props7.filterTreeNode,
treeNodeFilterProp = _$props7.treeNodeFilterProp;
this.__emit('update:searchValue', value);
this.__emit('search', value);
var isSet = false;
if (!this.isSearchValueControlled()) {
isSet = this.setUncontrolledState({
_searchValue: value
});
this.setOpenState(true);
}
if (isSet) {
// Do the search logic
var upperSearchValue = String(value).toUpperCase();
var filterTreeNodeFn = filterTreeNode;
if (filterTreeNode === false) {
filterTreeNodeFn = function filterTreeNodeFn() {
return true;
};
} else if (!filterTreeNodeFn) {
filterTreeNodeFn = function filterTreeNodeFn(_, node) {
var nodeValue = String(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["getPropsData"])(node)[treeNodeFilterProp]).toUpperCase();
return nodeValue.indexOf(upperSearchValue) !== -1;
};
}
this.setState({
_filteredTreeNodes: Object(_util__WEBPACK_IMPORTED_MODULE_16__["getFilterTree"])(this.$createElement, treeNodes, value, filterTreeNodeFn, valueEntities, _SelectNode__WEBPACK_IMPORTED_MODULE_17__["default"])
});
}
},
onSearchInputKeyDown: function onSearchInputKeyDown(event) {
var _$data7 = this.$data,
searchValue = _$data7._searchValue,
valueList = _$data7._valueList;
var keyCode = event.keyCode;
if (_util_KeyCode__WEBPACK_IMPORTED_MODULE_8__["default"].BACKSPACE === keyCode && this.isMultiple() && !searchValue && valueList.length) {
var lastValue = valueList[valueList.length - 1].value;
this.onMultipleSelectorRemove(event, lastValue);
}
},
onChoiceAnimationLeave: function onChoiceAnimationLeave() {
var _this4 = this;
raf__WEBPACK_IMPORTED_MODULE_4___default()(function () {
_this4.forcePopupAlign();
});
},
setPopupRef: function setPopupRef(popup) {
this.popup = popup;
},
/**
* Only update the value which is not in props
*/
setUncontrolledState: function setUncontrolledState(state) {
var needSync = false;
var newState = {};
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["getOptionProps"])(this);
Object.keys(state).forEach(function (name) {
if (name.slice(1) in props) return;
needSync = true;
newState[name] = state[name];
});
if (needSync) {
this.setState(newState);
}
return needSync;
},
// [Legacy] Origin provide `documentClickClose` which triggered by `Trigger`
// Currently `TreeSelect` align the hide popup logic as `Select` which blur to hide.
// `documentClickClose` is not accurate anymore. Let's just keep the key word.
setOpenState: function setOpenState(open) {
var byTrigger = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
var dropdownVisibleChange = this.$props.dropdownVisibleChange;
if (dropdownVisibleChange && dropdownVisibleChange(open, { documentClickClose: !open && byTrigger }) === false) {
return;
}
this.setUncontrolledState({ _open: open });
},
// Tree checkable is also a multiple case
isMultiple: function isMultiple() {
var _$props8 = this.$props,
multiple = _$props8.multiple,
treeCheckable = _$props8.treeCheckable;
return !!(multiple || treeCheckable);
},
isLabelInValue: function isLabelInValue() {
return Object(_util__WEBPACK_IMPORTED_MODULE_16__["isLabelInValue"])(this.$props);
},
// [Legacy] To align with `Select` component,
// We use `searchValue` instead of `inputValue`
// but currently still need support that.
// Add this method the check if is controlled
isSearchValueControlled: function isSearchValueControlled() {
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["getOptionProps"])(this);
var inputValue = props.inputValue;
if ('searchValue' in props) return true;
return 'inputValue' in props && inputValue !== null;
},
forcePopupAlign: function forcePopupAlign() {
var $trigger = this.selectTriggerRef.current;
if ($trigger) {
$trigger.forcePopupAlign();
}
},
delayForcePopupAlign: function delayForcePopupAlign() {
var _this5 = this;
// Wait 2 frame to avoid dom update & dom algin in the same time
// https://github.com/ant-design/ant-design/issues/12031
raf__WEBPACK_IMPORTED_MODULE_4___default()(function () {
raf__WEBPACK_IMPORTED_MODULE_4___default()(_this5.forcePopupAlign);
});
},
/**
* 1. Update state valueList.
* 2. Fire `onChange` event to user.
*/
triggerChange: function triggerChange(missValueList, valueList) {
var extraInfo = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
var _$data8 = this.$data,
valueEntities = _$data8._valueEntities,
searchValue = _$data8._searchValue,
prevSelectorValueList = _$data8._selectorValueList;
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["getOptionProps"])(this);
var disabled = props.disabled,
treeCheckable = props.treeCheckable,
treeCheckStrictly = props.treeCheckStrictly;
if (disabled) return;
// Trigger
var extra = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
// [Legacy] Always return as array contains label & value
preValue: prevSelectorValueList.map(function (_ref16) {
var label = _ref16.label,
value = _ref16.value;
return { label: label, value: value };
})
}, extraInfo);
// Format value by `treeCheckStrictly`
var selectorValueList = Object(_util__WEBPACK_IMPORTED_MODULE_16__["formatSelectorValue"])(valueList, props, valueEntities);
if (!('value' in props)) {
var newState = {
_missValueList: missValueList,
_valueList: valueList,
_selectorValueList: selectorValueList
};
if (searchValue && treeCheckable && !treeCheckStrictly) {
newState._searchHalfCheckedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_16__["getHalfCheckedKeys"])(valueList, valueEntities);
}
this.setState(newState);
}
// Only do the logic when `onChange` function provided
if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["getListeners"])(this).change) {
var connectValueList = void 0;
// Get value by mode
if (this.isMultiple()) {
connectValueList = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(missValueList), babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(selectorValueList));
} else {
connectValueList = selectorValueList.slice(0, 1);
}
var labelList = null;
var returnValue = void 0;
if (this.isLabelInValue()) {
returnValue = connectValueList.map(function (_ref17) {
var label = _ref17.label,
value = _ref17.value;
return { label: label, value: value };
});
} else {
labelList = [];
returnValue = connectValueList.map(function (_ref18) {
var label = _ref18.label,
value = _ref18.value;
labelList.push(label);
return value;
});
}
if (!this.isMultiple()) {
returnValue = returnValue[0];
}
this.__emit('change', returnValue, labelList, extra);
}
},
focus: function focus() {
this.selectorRef.current.focus();
},
blur: function blur() {
this.selectorRef.current.blur();
}
},
// ===================== Render =====================
render: function render() {
var h = arguments[0];
var _$data9 = this.$data,
valueList = _$data9._valueList,
missValueList = _$data9._missValueList,
selectorValueList = _$data9._selectorValueList,
searchHalfCheckedKeys = _$data9._searchHalfCheckedKeys,
valueEntities = _$data9._valueEntities,
keyEntities = _$data9._keyEntities,
searchValue = _$data9._searchValue,
open = _$data9._open,
focused = _$data9._focused,
treeNodes = _$data9._treeNodes,
filteredTreeNodes = _$data9._filteredTreeNodes;
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["getOptionProps"])(this);
var prefixCls = props.prefixCls,
treeExpandedKeys = props.treeExpandedKeys;
var isMultiple = this.isMultiple();
var passProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, props, {
isMultiple: isMultiple,
valueList: valueList,
searchHalfCheckedKeys: searchHalfCheckedKeys,
selectorValueList: [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(missValueList), babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(selectorValueList)),
valueEntities: valueEntities,
keyEntities: keyEntities,
searchValue: searchValue,
upperSearchValue: (searchValue || '').toUpperCase(), // Perf save
open: open,
focused: focused,
dropdownPrefixCls: prefixCls + '-dropdown',
ariaId: this.ariaId
}),
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["getListeners"])(this), {
choiceAnimationLeave: this.onChoiceAnimationLeave
}),
scopedSlots: this.$scopedSlots
};
var popupProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["mergeProps"])(passProps, {
props: {
treeNodes: treeNodes,
filteredTreeNodes: filteredTreeNodes,
// Tree expanded control
treeExpandedKeys: treeExpandedKeys,
__propsSymbol__: Symbol()
},
on: {
treeExpanded: this.delayForcePopupAlign
},
directives: [{
name: 'ant-ref',
value: this.setPopupRef
}]
});
var Popup = isMultiple ? _Popup_MultiplePopup__WEBPACK_IMPORTED_MODULE_13__["default"] : _Popup_SinglePopup__WEBPACK_IMPORTED_MODULE_12__["default"];
var $popup = h(Popup, popupProps);
var Selector = isMultiple ? _Selector_MultipleSelector__WEBPACK_IMPORTED_MODULE_11__["default"] : _Selector_SingleSelector__WEBPACK_IMPORTED_MODULE_10__["default"];
var $selector = h(Selector, babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([passProps, {
directives: [{
name: 'ant-ref',
value: this.selectorRef
}]
}]));
var selectTriggerProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_18__["mergeProps"])(passProps, {
props: {
popupElement: $popup,
dropdownVisibleChange: this.onDropdownVisibleChange
},
directives: [{
name: 'ant-ref',
value: this.selectTriggerRef
}]
});
return h(
_SelectTrigger__WEBPACK_IMPORTED_MODULE_9__["default"],
selectTriggerProps,
[$selector]
);
}
};
Select.TreeNode = _SelectNode__WEBPACK_IMPORTED_MODULE_17__["default"];
Select.SHOW_ALL = _strategies__WEBPACK_IMPORTED_MODULE_14__["SHOW_ALL"];
Select.SHOW_PARENT = _strategies__WEBPACK_IMPORTED_MODULE_14__["SHOW_PARENT"];
Select.SHOW_CHILD = _strategies__WEBPACK_IMPORTED_MODULE_14__["SHOW_CHILD"];
// Let warning show correct component name
Select.name = 'TreeSelect';
/* harmony default export */ __webpack_exports__["default"] = (Select);
/***/ }),
/***/ "./components/vc-tree-select/src/SelectNode.jsx":
/*!******************************************************!*\
!*** ./components/vc-tree-select/src/SelectNode.jsx ***!
\******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _vc_tree__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../vc-tree */ "./components/vc-tree/index.js");
/* harmony import */ var _vc_tree__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_vc_tree__WEBPACK_IMPORTED_MODULE_1__);
/**
* SelectNode wrapped the tree node.
* Let's use SelectNode instead of TreeNode
* since TreeNode is so confuse here.
*/
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'SelectNode',
functional: true,
isTreeNode: true,
props: _vc_tree__WEBPACK_IMPORTED_MODULE_1__["TreeNode"].props,
render: function render(h, context) {
var props = context.props,
slots = context.slots,
listeners = context.listeners,
data = context.data,
scopedSlots = context.scopedSlots;
var $slots = slots() || {};
var children = $slots['default'];
var slotsKey = Object.keys($slots);
var scopedSlotsTemp = {}; // for vue 2.5.x
slotsKey.forEach(function (name) {
scopedSlotsTemp[name] = function () {
return $slots[name];
};
});
var treeNodeProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, data, {
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, listeners, data.nativeOn),
props: props,
scopedSlots: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, scopedSlotsTemp, scopedSlots)
});
return h(
_vc_tree__WEBPACK_IMPORTED_MODULE_1__["TreeNode"],
treeNodeProps,
[children]
);
}
});
/***/ }),
/***/ "./components/vc-tree-select/src/SelectTrigger.jsx":
/*!*********************************************************!*\
!*** ./components/vc-tree-select/src/SelectTrigger.jsx ***!
\*********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _vc_trigger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../vc-trigger */ "./components/vc-trigger/index.js");
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./util */ "./components/vc-tree-select/src/util.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);
var BUILT_IN_PLACEMENTS = {
bottomLeft: {
points: ['tl', 'bl'],
offset: [0, 4],
overflow: {
adjustX: 0,
adjustY: 1
},
ignoreShake: true
},
topLeft: {
points: ['bl', 'tl'],
offset: [0, -4],
overflow: {
adjustX: 0,
adjustY: 1
},
ignoreShake: true
}
};
var SelectTrigger = {
name: 'SelectTrigger',
props: {
// Pass by outside user props
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
showSearch: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
dropdownPopupAlign: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
dropdownClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
dropdownStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
animation: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
dropdownMatchSelectWidth: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
// Pass by Select
isMultiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
dropdownPrefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
dropdownVisibleChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
popupElement: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].node,
open: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool
},
created: function created() {
this.triggerRef = Object(_util__WEBPACK_IMPORTED_MODULE_4__["createRef"])();
},
methods: {
getDropdownTransitionName: function getDropdownTransitionName() {
var _$props = this.$props,
transitionName = _$props.transitionName,
animation = _$props.animation,
dropdownPrefixCls = _$props.dropdownPrefixCls;
if (!transitionName && animation) {
return dropdownPrefixCls + '-' + animation;
}
return transitionName;
},
forcePopupAlign: function forcePopupAlign() {
var $trigger = this.triggerRef.current;
if ($trigger) {
$trigger.forcePopupAlign();
}
}
},
render: function render() {
var _classNames;
var h = arguments[0];
var _$props2 = this.$props,
disabled = _$props2.disabled,
isMultiple = _$props2.isMultiple,
dropdownPopupAlign = _$props2.dropdownPopupAlign,
dropdownMatchSelectWidth = _$props2.dropdownMatchSelectWidth,
dropdownClassName = _$props2.dropdownClassName,
dropdownStyle = _$props2.dropdownStyle,
dropdownVisibleChange = _$props2.dropdownVisibleChange,
getPopupContainer = _$props2.getPopupContainer,
dropdownPrefixCls = _$props2.dropdownPrefixCls,
popupElement = _$props2.popupElement,
open = _$props2.open;
// TODO: [Legacy] Use new action when trigger fixed: https://github.com/react-component/trigger/pull/86
// When false do nothing with the width
// ref: https://github.com/ant-design/ant-design/issues/10927
var stretch = void 0;
if (dropdownMatchSelectWidth !== false) {
stretch = dropdownMatchSelectWidth ? 'width' : 'minWidth';
}
return h(
_vc_trigger__WEBPACK_IMPORTED_MODULE_3__["default"],
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
directives: [{
name: 'ant-ref',
value: this.triggerRef
}]
}, {
attrs: {
action: disabled ? [] : ['click'],
popupPlacement: 'bottomLeft',
builtinPlacements: BUILT_IN_PLACEMENTS,
popupAlign: dropdownPopupAlign,
prefixCls: dropdownPrefixCls,
popupTransitionName: this.getDropdownTransitionName(),
popup: popupElement,
popupVisible: open,
getPopupContainer: getPopupContainer,
stretch: stretch,
popupClassName: classnames__WEBPACK_IMPORTED_MODULE_5___default()(dropdownClassName, (_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, dropdownPrefixCls + '--multiple', isMultiple), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, dropdownPrefixCls + '--single', !isMultiple), _classNames)),
popupStyle: dropdownStyle
},
on: {
'popupVisibleChange': dropdownVisibleChange
}
}]),
[this.$slots['default']]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (SelectTrigger);
/***/ }),
/***/ "./components/vc-tree-select/src/Selector/MultipleSelector/Selection.jsx":
/*!*******************************************************************************!*\
!*** ./components/vc-tree-select/src/Selector/MultipleSelector/Selection.jsx ***!
\*******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util */ "./components/vc-tree-select/src/util.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
var Selection = {
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_4__["default"]],
props: {
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
maxTagTextLength: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number,
// onRemove: PropTypes.func,
label: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any,
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].number]),
removeIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].any
},
methods: {
onRemove: function onRemove(event) {
var value = this.$props.value;
this.__emit('remove', event, value);
event.stopPropagation();
}
},
render: function render() {
var h = arguments[0];
var _$props = this.$props,
prefixCls = _$props.prefixCls,
maxTagTextLength = _$props.maxTagTextLength,
label = _$props.label,
value = _$props.value;
var content = label || value;
if (maxTagTextLength && typeof content === 'string' && content.length > maxTagTextLength) {
content = content.slice(0, maxTagTextLength) + '...';
}
return h(
'li',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
style: _util__WEBPACK_IMPORTED_MODULE_2__["UNSELECTABLE_STYLE"]
}, { attrs: _util__WEBPACK_IMPORTED_MODULE_2__["UNSELECTABLE_ATTRIBUTE"] }, {
attrs: {
role: 'menuitem',
title: Object(_util__WEBPACK_IMPORTED_MODULE_2__["toTitle"])(label)
},
'class': prefixCls + '-selection__choice' }]),
[Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this).remove && h(
'span',
{ 'class': prefixCls + '-selection__choice__remove', on: {
'click': this.onRemove
}
},
[Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getComponentFromProp"])(this, 'removeIcon')]
), h(
'span',
{ 'class': prefixCls + '-selection__choice__content' },
[content]
)]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (Selection);
/***/ }),
/***/ "./components/vc-tree-select/src/Selector/MultipleSelector/index.jsx":
/*!***************************************************************************!*\
!*** ./components/vc-tree-select/src/Selector/MultipleSelector/index.jsx ***!
\***************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../util */ "./components/vc-tree-select/src/util.js");
/* harmony import */ var _Base_BaseSelector__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../Base/BaseSelector */ "./components/vc-tree-select/src/Base/BaseSelector.jsx");
/* harmony import */ var _SearchInput__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../SearchInput */ "./components/vc-tree-select/src/SearchInput.jsx");
/* harmony import */ var _Selection__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Selection */ "./components/vc-tree-select/src/Selector/MultipleSelector/Selection.jsx");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_getTransitionProps__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../_util/getTransitionProps */ "./components/_util/getTransitionProps.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
var TREE_SELECT_EMPTY_VALUE_KEY = 'RC_TREE_SELECT_EMPTY_VALUE_KEY';
var Selector = Object(_Base_BaseSelector__WEBPACK_IMPORTED_MODULE_5__["default"])('multiple');
// export const multipleSelectorContextTypes = {
// onMultipleSelectorRemove: PropTypes.func.isRequired,
// }
var MultipleSelector = {
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_10__["default"]],
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, Object(_Base_BaseSelector__WEBPACK_IMPORTED_MODULE_5__["selectorPropTypes"])(), _SearchInput__WEBPACK_IMPORTED_MODULE_6__["default"].props, {
selectorValueList: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
searchValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
labelInValue: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
maxTagCount: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
maxTagPlaceholder: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any
// onChoiceAnimationLeave: PropTypes.func,
}),
inject: {
vcTreeSelect: { 'default': function _default() {
return {};
} }
},
created: function created() {
this.inputRef = Object(_util__WEBPACK_IMPORTED_MODULE_4__["createRef"])();
},
methods: {
onPlaceholderClick: function onPlaceholderClick() {
this.inputRef.current.focus();
},
focus: function focus() {
this.inputRef.current.focus();
},
blur: function blur() {
this.inputRef.current.blur();
},
_renderPlaceholder: function _renderPlaceholder() {
var h = this.$createElement;
var _$props = this.$props,
prefixCls = _$props.prefixCls,
placeholder = _$props.placeholder,
searchPlaceholder = _$props.searchPlaceholder,
searchValue = _$props.searchValue,
selectorValueList = _$props.selectorValueList;
var currentPlaceholder = placeholder || searchPlaceholder;
if (!currentPlaceholder) return null;
var hidden = searchValue || selectorValueList.length;
// [Legacy] Not remove the placeholder
return h(
'span',
{
style: {
display: hidden ? 'none' : 'block'
},
on: {
'click': this.onPlaceholderClick
},
'class': prefixCls + '-search__field__placeholder'
},
[currentPlaceholder]
);
},
onChoiceAnimationLeave: function onChoiceAnimationLeave() {
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
this.__emit.apply(this, ['choiceAnimationLeave'].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(args)));
},
renderSelection: function renderSelection() {
var _this = this;
var h = this.$createElement;
var _$props2 = this.$props,
selectorValueList = _$props2.selectorValueList,
choiceTransitionName = _$props2.choiceTransitionName,
prefixCls = _$props2.prefixCls,
labelInValue = _$props2.labelInValue,
maxTagCount = _$props2.maxTagCount;
var onMultipleSelectorRemove = this.vcTreeSelect.onMultipleSelectorRemove,
$slots = this.$slots;
var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getListeners"])(this);
// Check if `maxTagCount` is set
var myValueList = selectorValueList;
if (maxTagCount >= 0) {
myValueList = selectorValueList.slice(0, maxTagCount);
}
// Selector node list
var selectedValueNodes = myValueList.map(function (_ref) {
var label = _ref.label,
value = _ref.value;
return h(
_Selection__WEBPACK_IMPORTED_MODULE_7__["default"],
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, _this.$props, {
label: label,
value: value
}),
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, listeners, { remove: onMultipleSelectorRemove })
}, {
key: value || TREE_SELECT_EMPTY_VALUE_KEY
}]),
[$slots['default']]
);
});
// Rest node count
if (maxTagCount >= 0 && maxTagCount < selectorValueList.length) {
var content = '+ ' + (selectorValueList.length - maxTagCount) + ' ...';
var maxTagPlaceholder = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getComponentFromProp"])(this, 'maxTagPlaceholder', {}, false);
if (typeof maxTagPlaceholder === 'string') {
content = maxTagPlaceholder;
} else if (typeof maxTagPlaceholder === 'function') {
var restValueList = selectorValueList.slice(maxTagCount);
content = maxTagPlaceholder(labelInValue ? restValueList : restValueList.map(function (_ref2) {
var value = _ref2.value;
return value;
}));
}
var restNodeSelect = h(
_Selection__WEBPACK_IMPORTED_MODULE_7__["default"],
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, {
label: content,
value: null
}),
on: listeners
}, {
key: 'rc-tree-select-internal-max-tag-counter'
}]),
[$slots['default']]
);
selectedValueNodes.push(restNodeSelect);
}
selectedValueNodes.push(h(
'li',
{ 'class': prefixCls + '-search ' + prefixCls + '-search--inline', key: '__input' },
[h(
_SearchInput__WEBPACK_IMPORTED_MODULE_6__["default"],
{
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, {
needAlign: true
}),
on: listeners,
directives: [{
name: 'ant-ref',
value: this.inputRef
}]
},
[$slots['default']]
)]
));
var className = prefixCls + '-selection__rendered';
if (choiceTransitionName) {
var transitionProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_9__["default"])(choiceTransitionName, {
tag: 'ul',
afterLeave: this.onChoiceAnimationLeave
});
return h(
'transition-group',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([{ 'class': className }, transitionProps]),
[selectedValueNodes]
);
}
return h(
'ul',
{ 'class': className, attrs: { role: 'menubar' }
},
[selectedValueNodes]
);
}
},
render: function render() {
var h = arguments[0];
var $slots = this.$slots;
var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getListeners"])(this);
return h(
Selector,
{
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, {
tabIndex: -1,
showArrow: false,
renderSelection: this.renderSelection,
renderPlaceholder: this._renderPlaceholder
}),
on: listeners
},
[$slots['default']]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (MultipleSelector);
/***/ }),
/***/ "./components/vc-tree-select/src/Selector/SingleSelector.jsx":
/*!*******************************************************************!*\
!*** ./components/vc-tree-select/src/Selector/SingleSelector.jsx ***!
\*******************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _Base_BaseSelector__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Base/BaseSelector */ "./components/vc-tree-select/src/Base/BaseSelector.jsx");
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util */ "./components/vc-tree-select/src/util.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../_util/props-util */ "./components/_util/props-util.js");
var Selector = Object(_Base_BaseSelector__WEBPACK_IMPORTED_MODULE_1__["default"])('single');
var SingleSelector = {
name: 'SingleSelector',
props: Object(_Base_BaseSelector__WEBPACK_IMPORTED_MODULE_1__["selectorPropTypes"])(),
created: function created() {
this.selectorRef = Object(_util__WEBPACK_IMPORTED_MODULE_2__["createRef"])();
},
methods: {
focus: function focus() {
this.selectorRef.current.focus();
},
blur: function blur() {
this.selectorRef.current.blur();
},
renderSelection: function renderSelection() {
var h = this.$createElement;
var _$props = this.$props,
selectorValueList = _$props.selectorValueList,
placeholder = _$props.placeholder,
prefixCls = _$props.prefixCls;
var innerNode = void 0;
if (selectorValueList.length) {
var _selectorValueList$ = selectorValueList[0],
label = _selectorValueList$.label,
value = _selectorValueList$.value;
innerNode = h(
'span',
{ key: 'value', attrs: { title: Object(_util__WEBPACK_IMPORTED_MODULE_2__["toTitle"])(label) },
'class': prefixCls + '-selection-selected-value' },
[label || value]
);
} else {
innerNode = h(
'span',
{ key: 'placeholder', 'class': prefixCls + '-selection__placeholder' },
[placeholder]
);
}
return h(
'span',
{ 'class': prefixCls + '-selection__rendered' },
[innerNode]
);
}
},
render: function render() {
var h = arguments[0];
var props = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getOptionProps"])(this), {
renderSelection: this.renderSelection
}),
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this),
directives: [{
name: 'ant-ref',
value: this.selectorRef
}]
};
return h(Selector, props);
}
};
/* harmony default export */ __webpack_exports__["default"] = (SingleSelector);
/***/ }),
/***/ "./components/vc-tree-select/src/index.js":
/*!************************************************!*\
!*** ./components/vc-tree-select/src/index.js ***!
\************************************************/
/*! exports provided: SHOW_ALL, SHOW_CHILD, SHOW_PARENT, TreeNode, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TreeNode", function() { return TreeNode; });
/* harmony import */ var _Select__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Select */ "./components/vc-tree-select/src/Select.jsx");
/* harmony import */ var _SelectNode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SelectNode */ "./components/vc-tree-select/src/SelectNode.jsx");
/* harmony import */ var _strategies__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./strategies */ "./components/vc-tree-select/src/strategies.js");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SHOW_ALL", function() { return _strategies__WEBPACK_IMPORTED_MODULE_2__["SHOW_ALL"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SHOW_CHILD", function() { return _strategies__WEBPACK_IMPORTED_MODULE_2__["SHOW_CHILD"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SHOW_PARENT", function() { return _strategies__WEBPACK_IMPORTED_MODULE_2__["SHOW_PARENT"]; });
var TreeNode = _SelectNode__WEBPACK_IMPORTED_MODULE_1__["default"];
/* harmony default export */ __webpack_exports__["default"] = (_Select__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/vc-tree-select/src/strategies.js":
/*!*****************************************************!*\
!*** ./components/vc-tree-select/src/strategies.js ***!
\*****************************************************/
/*! exports provided: SHOW_ALL, SHOW_PARENT, SHOW_CHILD */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SHOW_ALL", function() { return SHOW_ALL; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SHOW_PARENT", function() { return SHOW_PARENT; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SHOW_CHILD", function() { return SHOW_CHILD; });
var SHOW_ALL = 'SHOW_ALL';
var SHOW_PARENT = 'SHOW_PARENT';
var SHOW_CHILD = 'SHOW_CHILD';
/***/ }),
/***/ "./components/vc-tree-select/src/util.js":
/*!***********************************************!*\
!*** ./components/vc-tree-select/src/util.js ***!
\***********************************************/
/*! exports provided: findPopupContainer, toTitle, toArray, createRef, UNSELECTABLE_STYLE, UNSELECTABLE_ATTRIBUTE, flatToHierarchy, resetAriaId, generateAriaId, isLabelInValue, parseSimpleTreeData, isPosRelated, cleanEntity, getFilterTree, formatInternalValue, getLabel, formatSelectorValue, convertDataToTree, convertTreeToEntities, getHalfCheckedKeys, conductCheck */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findPopupContainer", function() { return findPopupContainer; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toTitle", function() { return toTitle; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toArray", function() { return toArray; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createRef", function() { return createRef; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UNSELECTABLE_STYLE", function() { return UNSELECTABLE_STYLE; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UNSELECTABLE_ATTRIBUTE", function() { return UNSELECTABLE_ATTRIBUTE; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "flatToHierarchy", function() { return flatToHierarchy; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resetAriaId", function() { return resetAriaId; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "generateAriaId", function() { return generateAriaId; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isLabelInValue", function() { return isLabelInValue; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseSimpleTreeData", function() { return parseSimpleTreeData; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isPosRelated", function() { return isPosRelated; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cleanEntity", function() { return cleanEntity; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getFilterTree", function() { return getFilterTree; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatInternalValue", function() { return formatInternalValue; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLabel", function() { return getLabel; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatSelectorValue", function() { return formatSelectorValue; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "convertDataToTree", function() { return convertDataToTree; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "convertTreeToEntities", function() { return convertTreeToEntities; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getHalfCheckedKeys", function() { return getHalfCheckedKeys; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "conductCheck", function() { return conductCheck; });
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! warning */ "./node_modules/warning/warning.js");
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
/* harmony import */ var _vc_tree_src_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../vc-tree/src/util */ "./components/vc-tree/src/util.js");
/* harmony import */ var _vc_util_Dom_class__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../vc-util/Dom/class */ "./components/vc-util/Dom/class.js");
/* harmony import */ var _strategies__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./strategies */ "./components/vc-tree-select/src/strategies.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
var warnDeprecatedLabel = false;
// =================== DOM =====================
function findPopupContainer(node, prefixClass) {
var current = node;
while (current) {
if (Object(_vc_util_Dom_class__WEBPACK_IMPORTED_MODULE_6__["hasClass"])(current, prefixClass)) {
return current;
}
current = current.parentNode;
}
return null;
}
// =================== MISC ====================
function toTitle(title) {
if (typeof title === 'string') {
return title;
}
return null;
}
function toArray(data) {
if (data === undefined || data === null) return [];
return Array.isArray(data) ? data : [data];
}
function createRef() {
var func = function setRef(node) {
func.current = node;
};
return func;
}
// =============== Legacy ===============
var UNSELECTABLE_STYLE = {
userSelect: 'none',
WebkitUserSelect: 'none'
};
var UNSELECTABLE_ATTRIBUTE = {
unselectable: 'unselectable'
};
/**
* Convert position list to hierarchy structure.
* This is little hack since use '-' to split the position.
*/
function flatToHierarchy(positionList) {
if (!positionList.length) {
return [];
}
var entrances = {};
// Prepare the position map
var posMap = {};
var parsedList = positionList.slice().map(function (entity) {
var clone = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, entity, {
fields: entity.pos.split('-')
});
delete clone.children;
return clone;
});
parsedList.forEach(function (entity) {
posMap[entity.pos] = entity;
});
parsedList.sort(function (a, b) {
return a.fields.length - b.fields.length;
});
// Create the hierarchy
parsedList.forEach(function (entity) {
var parentPos = entity.fields.slice(0, -1).join('-');
var parentEntity = posMap[parentPos];
if (!parentEntity) {
entrances[entity.pos] = entity;
} else {
parentEntity.children = parentEntity.children || [];
parentEntity.children.push(entity);
}
// Some time position list provide `key`, we don't need it
delete entity.key;
delete entity.fields;
});
return Object.keys(entrances).map(function (key) {
return entrances[key];
});
}
// =============== Accessibility ===============
var ariaId = 0;
function resetAriaId() {
ariaId = 0;
}
function generateAriaId(prefix) {
ariaId += 1;
return prefix + '_' + ariaId;
}
function isLabelInValue(props) {
var treeCheckable = props.treeCheckable,
treeCheckStrictly = props.treeCheckStrictly,
labelInValue = props.labelInValue;
if (treeCheckable && treeCheckStrictly) {
return true;
}
return labelInValue || false;
}
// =================== Tree ====================
function parseSimpleTreeData(treeData, _ref) {
var id = _ref.id,
pId = _ref.pId,
rootPId = _ref.rootPId;
var keyNodes = {};
var rootNodeList = [];
// Fill in the map
var nodeList = treeData.map(function (node) {
var clone = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, node);
var key = clone[id];
keyNodes[key] = clone;
clone.key = clone.key || key;
return clone;
});
// Connect tree
nodeList.forEach(function (node) {
var parentKey = node[pId];
var parent = keyNodes[parentKey];
// Fill parent
if (parent) {
parent.children = parent.children || [];
parent.children.push(node);
}
// Fill root tree node
if (parentKey === rootPId || !parent && rootPId === null) {
rootNodeList.push(node);
}
});
return rootNodeList;
}
/**
* Detect if position has relation.
* e.g. 1-2 related with 1-2-3
* e.g. 1-3-2 related with 1
* e.g. 1-2 not related with 1-21
*/
function isPosRelated(pos1, pos2) {
var fields1 = pos1.split('-');
var fields2 = pos2.split('-');
var minLen = Math.min(fields1.length, fields2.length);
for (var i = 0; i < minLen; i += 1) {
if (fields1[i] !== fields2[i]) {
return false;
}
}
return true;
}
/**
* This function is only used on treeNode check (none treeCheckStrictly but has searchInput).
* We convert entity to { node, pos, children } format.
* This is legacy bug but we still need to do with it.
* @param entity
*/
function cleanEntity(_ref2) {
var node = _ref2.node,
pos = _ref2.pos,
children = _ref2.children;
var instance = {
node: node,
pos: pos
};
if (children) {
instance.children = children.map(cleanEntity);
}
return instance;
}
/**
* Get a filtered TreeNode list by provided treeNodes.
* [Legacy] Since `Tree` use `key` as map but `key` will changed by React,
* we have to convert `treeNodes > data > treeNodes` to keep the key.
* Such performance hungry!
*/
function getFilterTree(h, treeNodes, searchValue, filterFunc, valueEntities, Component) {
if (!searchValue) {
return null;
}
function mapFilteredNodeToData(node) {
if (!node || Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["isEmptyElement"])(node)) return null;
var match = false;
if (filterFunc(searchValue, node)) {
match = true;
}
var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getSlots"])(node)['default'];
children = ((typeof children === 'function' ? children() : children) || []).map(mapFilteredNodeToData).filter(function (n) {
return n;
});
if (children.length || match) {
return h(
Component,
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_1___default()([node.data, { key: valueEntities[Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getPropsData"])(node).value].key }]),
[children]
);
}
return null;
}
return treeNodes.map(mapFilteredNodeToData).filter(function (node) {
return node;
});
}
// =================== Value ===================
/**
* Convert value to array format to make logic simplify.
*/
function formatInternalValue(value, props) {
var valueList = toArray(value);
// Parse label in value
if (isLabelInValue(props)) {
return valueList.map(function (val) {
if ((typeof val === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(val)) !== 'object' || !val) {
return {
value: '',
label: ''
};
}
return val;
});
}
return valueList.map(function (val) {
return {
value: val
};
});
}
function getLabel(wrappedValue, entity, treeNodeLabelProp) {
if (wrappedValue.label) {
return wrappedValue.label;
}
if (entity) {
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getPropsData"])(entity.node);
if (Object.keys(props).length) {
return props[treeNodeLabelProp];
}
}
// Since value without entity will be in missValueList.
// This code will never reached, but we still need this in case.
return wrappedValue.value;
}
/**
* Convert internal state `valueList` to user needed value list.
* This will return an array list. You need check if is not multiple when return.
*
* `allCheckedNodes` is used for `treeCheckStrictly`
*/
function formatSelectorValue(valueList, props, valueEntities) {
var treeNodeLabelProp = props.treeNodeLabelProp,
treeCheckable = props.treeCheckable,
treeCheckStrictly = props.treeCheckStrictly,
showCheckedStrategy = props.showCheckedStrategy;
// Will hide some value if `showCheckedStrategy` is set
if (treeCheckable && !treeCheckStrictly) {
var values = {};
valueList.forEach(function (wrappedValue) {
values[wrappedValue.value] = wrappedValue;
});
var hierarchyList = flatToHierarchy(valueList.map(function (_ref3) {
var value = _ref3.value;
return valueEntities[value];
}));
if (showCheckedStrategy === _strategies__WEBPACK_IMPORTED_MODULE_7__["SHOW_PARENT"]) {
// Only get the parent checked value
return hierarchyList.map(function (_ref4) {
var node = _ref4.node;
var value = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getPropsData"])(node).value;
return {
label: getLabel(values[value], valueEntities[value], treeNodeLabelProp),
value: value
};
});
}
if (showCheckedStrategy === _strategies__WEBPACK_IMPORTED_MODULE_7__["SHOW_CHILD"]) {
// Only get the children checked value
var targetValueList = [];
// Find the leaf children
var traverse = function traverse(_ref5) {
var node = _ref5.node,
children = _ref5.children;
var value = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getPropsData"])(node).value;
if (!children || children.length === 0) {
targetValueList.push({
label: getLabel(values[value], valueEntities[value], treeNodeLabelProp),
value: value
});
return;
}
children.forEach(function (entity) {
traverse(entity);
});
};
hierarchyList.forEach(function (entity) {
traverse(entity);
});
return targetValueList;
}
}
return valueList.map(function (wrappedValue) {
return {
label: getLabel(wrappedValue, valueEntities[wrappedValue.value], treeNodeLabelProp),
value: wrappedValue.value
};
});
}
/**
* Use `rc-tree` convertDataToTree to convert treeData to TreeNodes.
* This will change the label to title value
*/
function processProps(props) {
var title = props.title,
label = props.label,
value = props.value,
cls = props['class'],
style = props.style,
_props$on = props.on,
on = _props$on === undefined ? {} : _props$on;
var key = props.key;
if (!key && (key === undefined || key === null)) {
key = value;
}
var p = {
props: Object(omit_js__WEBPACK_IMPORTED_MODULE_4__["default"])(props, ['on', 'key', 'class', 'className', 'style']),
on: on,
'class': cls || props.className,
style: style,
key: key
};
// Warning user not to use deprecated label prop.
if (label && !title) {
if (!warnDeprecatedLabel) {
warning__WEBPACK_IMPORTED_MODULE_3___default()(false, "'label' in treeData is deprecated. Please use 'title' instead.");
warnDeprecatedLabel = true;
}
p.props.title = label;
}
return p;
}
function convertDataToTree(h, treeData) {
return Object(_vc_tree_src_util__WEBPACK_IMPORTED_MODULE_5__["convertDataToTree"])(h, treeData, { processProps: processProps });
}
/**
* Use `rc-tree` convertTreeToEntities for entities calculation.
* We have additional entities of `valueEntities`
*/
function initWrapper(wrapper) {
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, wrapper, {
valueEntities: {}
});
}
function processEntity(entity, wrapper) {
var value = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getPropsData"])(entity.node).value;
entity.value = value;
// This should be empty, or will get error message.
var currentEntity = wrapper.valueEntities[value];
if (currentEntity) {
warning__WEBPACK_IMPORTED_MODULE_3___default()(false, 'Conflict! value of node \'' + entity.key + '\' (' + value + ') has already used by node \'' + currentEntity.key + '\'.');
}
wrapper.valueEntities[value] = entity;
}
function convertTreeToEntities(treeNodes) {
return Object(_vc_tree_src_util__WEBPACK_IMPORTED_MODULE_5__["convertTreeToEntities"])(treeNodes, {
initWrapper: initWrapper,
processEntity: processEntity
});
}
/**
* https://github.com/ant-design/ant-design/issues/13328
* We need calculate the half check key when searchValue is set.
*/
// TODO: This logic may better move to rc-tree
function getHalfCheckedKeys(valueList, valueEntities) {
var values = {};
// Fill checked keys
valueList.forEach(function (_ref6) {
var value = _ref6.value;
values[value] = false;
});
// Fill half checked keys
valueList.forEach(function (_ref7) {
var value = _ref7.value;
var current = valueEntities[value];
while (current && current.parent) {
var parentValue = current.parent.value;
if (parentValue in values) break;
values[parentValue] = true;
current = current.parent;
}
});
// Get half keys
return Object.keys(values).filter(function (value) {
return values[value];
}).map(function (value) {
return valueEntities[value].key;
});
}
var conductCheck = _vc_tree_src_util__WEBPACK_IMPORTED_MODULE_5__["conductCheck"];
/***/ }),
/***/ "./components/vc-tree/index.js":
/*!*************************************!*\
!*** ./components/vc-tree/index.js ***!
\*************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// based on rc-tree 2.1.3
module.exports = __webpack_require__(/*! ./src/ */ "./components/vc-tree/src/index.js");
/***/ }),
/***/ "./components/vc-tree/src/Tree.jsx":
/*!*****************************************!*\
!*** ./components/vc-tree/src/Tree.jsx ***!
\*****************************************/
/*! exports provided: Tree, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Tree", function() { return Tree; });
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! warning */ "./node_modules/warning/warning.js");
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_proxyComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../_util/proxyComponent */ "./components/_util/proxyComponent.jsx");
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./util */ "./components/vc-tree/src/util.js");
/**
* Thought we still use `cloneElement` to pass `key`,
* other props can pass with context for future refactor.
*/
function getWatch() {
var keys = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
var watch = {};
keys.forEach(function (k) {
watch[k] = function () {
this.needSyncKeys[k] = true;
};
});
return watch;
}
var Tree = {
name: 'Tree',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_8__["default"]],
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["initDefaultProps"])({
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
tabIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number]),
children: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
treeData: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array, // Generate treeNode by children
showLine: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
showIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
icon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func]),
focusable: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
selectable: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
checkable: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool]),
checkStrictly: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
draggable: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
defaultExpandParent: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
autoExpandParent: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
defaultExpandAll: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
defaultExpandedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
expandedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
defaultCheckedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
checkedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object]),
defaultSelectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
selectedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
// onClick: PropTypes.func,
// onDoubleClick: PropTypes.func,
// onExpand: PropTypes.func,
// onCheck: PropTypes.func,
// onSelect: PropTypes.func,
loadData: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
loadedKeys: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].array,
// onMouseEnter: PropTypes.func,
// onMouseLeave: PropTypes.func,
// onRightClick: PropTypes.func,
// onDragStart: PropTypes.func,
// onDragEnter: PropTypes.func,
// onDragOver: PropTypes.func,
// onDragLeave: PropTypes.func,
// onDragEnd: PropTypes.func,
// onDrop: PropTypes.func,
filterTreeNode: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
openTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
openAnimation: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object]),
switcherIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
_propsSymbol: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any
}, {
prefixCls: 'rc-tree',
showLine: false,
showIcon: true,
selectable: true,
multiple: false,
checkable: false,
disabled: false,
checkStrictly: false,
draggable: false,
defaultExpandParent: true,
autoExpandParent: false,
defaultExpandAll: false,
defaultExpandedKeys: [],
defaultCheckedKeys: [],
defaultSelectedKeys: []
}),
data: function data() {
warning__WEBPACK_IMPORTED_MODULE_5___default()(this.$props.__propsSymbol__, 'must pass __propsSymbol__');
warning__WEBPACK_IMPORTED_MODULE_5___default()(this.$props.children, 'please use children prop replace slots.default');
this.needSyncKeys = {};
this.domTreeNodes = {};
var state = {
_posEntities: new Map(),
_keyEntities: new Map(),
_expandedKeys: [],
_selectedKeys: [],
_checkedKeys: [],
_halfCheckedKeys: [],
_loadedKeys: [],
_loadingKeys: [],
_treeNode: [],
_prevProps: null,
_dragOverNodeKey: '',
_dropPosition: null,
_dragNodesKeys: []
};
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, state, this.getDerivedState(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(this), state));
},
provide: function provide() {
return {
vcTree: this
};
},
watch: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, getWatch(['treeData', 'children', 'expandedKeys', 'autoExpandParent', 'selectedKeys', 'checkedKeys', 'loadedKeys']), {
__propsSymbol__: function __propsSymbol__() {
this.setState(this.getDerivedState(Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(this), this.$data));
this.needSyncKeys = {};
}
}),
methods: {
getDerivedState: function getDerivedState(props, prevState) {
var _prevProps = prevState._prevProps;
var newState = {
_prevProps: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, props)
};
var self = this;
function needSync(name) {
return !_prevProps && name in props || _prevProps && self.needSyncKeys[name];
}
// ================== Tree Node ==================
var treeNode = null;
// Check if `treeData` or `children` changed and save into the state.
if (needSync('treeData')) {
treeNode = Object(_util__WEBPACK_IMPORTED_MODULE_10__["convertDataToTree"])(this.$createElement, props.treeData);
} else if (needSync('children')) {
treeNode = props.children;
}
// Tree support filter function which will break the tree structure in the vdm.
// We cache the treeNodes in state so that we can return the treeNode in event trigger.
if (treeNode) {
newState._treeNode = treeNode;
// Calculate the entities data for quick match
var entitiesMap = Object(_util__WEBPACK_IMPORTED_MODULE_10__["convertTreeToEntities"])(treeNode);
newState._keyEntities = entitiesMap.keyEntities;
}
var keyEntities = newState._keyEntities || prevState._keyEntities;
// ================ expandedKeys =================
if (needSync('expandedKeys') || _prevProps && needSync('autoExpandParent')) {
newState._expandedKeys = props.autoExpandParent || !_prevProps && props.defaultExpandParent ? Object(_util__WEBPACK_IMPORTED_MODULE_10__["conductExpandParent"])(props.expandedKeys, keyEntities) : props.expandedKeys;
} else if (!_prevProps && props.defaultExpandAll) {
newState._expandedKeys = [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(keyEntities.keys()));
} else if (!_prevProps && props.defaultExpandedKeys) {
newState._expandedKeys = props.autoExpandParent || props.defaultExpandParent ? Object(_util__WEBPACK_IMPORTED_MODULE_10__["conductExpandParent"])(props.defaultExpandedKeys, keyEntities) : props.defaultExpandedKeys;
}
// ================ selectedKeys =================
if (props.selectable) {
if (needSync('selectedKeys')) {
newState._selectedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_10__["calcSelectedKeys"])(props.selectedKeys, props);
} else if (!_prevProps && props.defaultSelectedKeys) {
newState._selectedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_10__["calcSelectedKeys"])(props.defaultSelectedKeys, props);
}
}
// ================= checkedKeys =================
if (props.checkable) {
var checkedKeyEntity = void 0;
if (needSync('checkedKeys')) {
checkedKeyEntity = Object(_util__WEBPACK_IMPORTED_MODULE_10__["parseCheckedKeys"])(props.checkedKeys) || {};
} else if (!_prevProps && props.defaultCheckedKeys) {
checkedKeyEntity = Object(_util__WEBPACK_IMPORTED_MODULE_10__["parseCheckedKeys"])(props.defaultCheckedKeys) || {};
} else if (treeNode) {
// If treeNode changed, we also need check it
checkedKeyEntity = Object(_util__WEBPACK_IMPORTED_MODULE_10__["parseCheckedKeys"])(props.checkedKeys) || {
checkedKeys: prevState._checkedKeys,
halfCheckedKeys: prevState._halfCheckedKeys
};
}
if (checkedKeyEntity) {
var _checkedKeyEntity = checkedKeyEntity,
_checkedKeyEntity$che = _checkedKeyEntity.checkedKeys,
checkedKeys = _checkedKeyEntity$che === undefined ? [] : _checkedKeyEntity$che,
_checkedKeyEntity$hal = _checkedKeyEntity.halfCheckedKeys,
halfCheckedKeys = _checkedKeyEntity$hal === undefined ? [] : _checkedKeyEntity$hal;
if (!props.checkStrictly) {
var conductKeys = Object(_util__WEBPACK_IMPORTED_MODULE_10__["conductCheck"])(checkedKeys, true, keyEntities);
checkedKeys = conductKeys.checkedKeys;
halfCheckedKeys = conductKeys.halfCheckedKeys;
}
newState._checkedKeys = checkedKeys;
newState._halfCheckedKeys = halfCheckedKeys;
}
}
// ================= loadedKeys ==================
if (needSync('loadedKeys')) {
newState._loadedKeys = props.loadedKeys;
}
return newState;
},
onNodeDragStart: function onNodeDragStart(event, node) {
var _expandedKeys = this.$data._expandedKeys;
var eventKey = node.eventKey;
var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getSlots"])(node)['default'];
this.dragNode = node;
this.setState({
_dragNodesKeys: Object(_util__WEBPACK_IMPORTED_MODULE_10__["getDragNodesKeys"])(typeof children === 'function' ? children() : children, node),
_expandedKeys: Object(_util__WEBPACK_IMPORTED_MODULE_10__["arrDel"])(_expandedKeys, eventKey)
});
this.__emit('dragstart', { event: event, node: node });
},
/**
* [Legacy] Select handler is less small than node,
* so that this will trigger when drag enter node or select handler.
* This is a little tricky if customize css without padding.
* Better for use mouse move event to refresh drag state.
* But let's just keep it to avoid event trigger logic change.
*/
onNodeDragEnter: function onNodeDragEnter(event, node) {
var _this = this;
var expandedKeys = this.$data._expandedKeys;
var pos = node.pos,
eventKey = node.eventKey;
if (!this.dragNode || !node.$refs.selectHandle) return;
var dropPosition = Object(_util__WEBPACK_IMPORTED_MODULE_10__["calcDropPosition"])(event, node);
// Skip if drag node is self
if (this.dragNode.eventKey === eventKey && dropPosition === 0) {
this.setState({
_dragOverNodeKey: '',
_dropPosition: null
});
return;
}
// Ref: https://github.com/react-component/tree/issues/132
// Add timeout to let onDragLevel fire before onDragEnter,
// so that we can clean drag props for onDragLeave node.
// Macro task for this:
// https://html.spec.whatwg.org/multipage/webappapis.html#clean-up-after-running-script
setTimeout(function () {
// Update drag over node
_this.setState({
_dragOverNodeKey: eventKey,
_dropPosition: dropPosition
});
// Side effect for delay drag
if (!_this.delayedDragEnterLogic) {
_this.delayedDragEnterLogic = {};
}
Object.keys(_this.delayedDragEnterLogic).forEach(function (key) {
clearTimeout(_this.delayedDragEnterLogic[key]);
});
_this.delayedDragEnterLogic[pos] = setTimeout(function () {
var newExpandedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_10__["arrAdd"])(expandedKeys, eventKey);
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["hasProp"])(_this, 'expandedKeys')) {
_this.setState({
_expandedKeys: newExpandedKeys
});
}
_this.__emit('dragenter', { event: event, node: node, expandedKeys: newExpandedKeys });
}, 400);
}, 0);
},
onNodeDragOver: function onNodeDragOver(event, node) {
var eventKey = node.eventKey;
var _$data = this.$data,
_dragOverNodeKey = _$data._dragOverNodeKey,
_dropPosition = _$data._dropPosition;
// Update drag position
if (this.dragNode && eventKey === _dragOverNodeKey && node.$refs.selectHandle) {
var dropPosition = Object(_util__WEBPACK_IMPORTED_MODULE_10__["calcDropPosition"])(event, node);
if (dropPosition === _dropPosition) return;
this.setState({
_dropPosition: dropPosition
});
}
this.__emit('dragover', { event: event, node: node });
},
onNodeDragLeave: function onNodeDragLeave(event, node) {
this.setState({
_dragOverNodeKey: ''
});
this.__emit('dragleave', { event: event, node: node });
},
onNodeDragEnd: function onNodeDragEnd(event, node) {
this.setState({
_dragOverNodeKey: ''
});
this.__emit('dragend', { event: event, node: node });
this.dragNode = null;
},
onNodeDrop: function onNodeDrop(event, node) {
var _$data2 = this.$data,
_$data2$_dragNodesKey = _$data2._dragNodesKeys,
_dragNodesKeys = _$data2$_dragNodesKey === undefined ? [] : _$data2$_dragNodesKey,
_dropPosition = _$data2._dropPosition;
var eventKey = node.eventKey,
pos = node.pos;
this.setState({
_dragOverNodeKey: ''
});
if (_dragNodesKeys.indexOf(eventKey) !== -1) {
warning__WEBPACK_IMPORTED_MODULE_5___default()(false, "Can not drop to dragNode(include it's children node)");
return;
}
var posArr = Object(_util__WEBPACK_IMPORTED_MODULE_10__["posToArr"])(pos);
var dropResult = {
event: event,
node: node,
dragNode: this.dragNode,
dragNodesKeys: _dragNodesKeys.slice(),
dropPosition: _dropPosition + Number(posArr[posArr.length - 1]),
dropToGap: false
};
if (_dropPosition !== 0) {
dropResult.dropToGap = true;
}
this.__emit('drop', dropResult);
this.dragNode = null;
},
onNodeClick: function onNodeClick(e, treeNode) {
this.__emit('click', e, treeNode);
},
onNodeDoubleClick: function onNodeDoubleClick(e, treeNode) {
this.__emit('dblclick', e, treeNode);
},
onNodeSelect: function onNodeSelect(e, treeNode) {
var selectedKeys = this.$data._selectedKeys;
var keyEntities = this.$data._keyEntities;
var multiple = this.$props.multiple;
var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(treeNode),
selected = _getOptionProps.selected,
eventKey = _getOptionProps.eventKey;
var targetSelected = !selected;
// Update selected keys
if (!targetSelected) {
selectedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_10__["arrDel"])(selectedKeys, eventKey);
} else if (!multiple) {
selectedKeys = [eventKey];
} else {
selectedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_10__["arrAdd"])(selectedKeys, eventKey);
}
// [Legacy] Not found related usage in doc or upper libs
var selectedNodes = selectedKeys.map(function (key) {
var entity = keyEntities.get(key);
if (!entity) return null;
return entity.node;
}).filter(function (node) {
return node;
});
this.setUncontrolledState({ _selectedKeys: selectedKeys });
var eventObj = {
event: 'select',
selected: targetSelected,
node: treeNode,
selectedNodes: selectedNodes,
nativeEvent: e
};
this.__emit('update:selectedKeys', selectedKeys);
this.__emit('select', selectedKeys, eventObj);
},
onNodeCheck: function onNodeCheck(e, treeNode, checked) {
var _$data3 = this.$data,
keyEntities = _$data3._keyEntities,
oriCheckedKeys = _$data3._checkedKeys,
oriHalfCheckedKeys = _$data3._halfCheckedKeys;
var checkStrictly = this.$props.checkStrictly;
var _getOptionProps2 = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(treeNode),
eventKey = _getOptionProps2.eventKey;
// Prepare trigger arguments
var checkedObj = void 0;
var eventObj = {
event: 'check',
node: treeNode,
checked: checked,
nativeEvent: e
};
if (checkStrictly) {
var checkedKeys = checked ? Object(_util__WEBPACK_IMPORTED_MODULE_10__["arrAdd"])(oriCheckedKeys, eventKey) : Object(_util__WEBPACK_IMPORTED_MODULE_10__["arrDel"])(oriCheckedKeys, eventKey);
var halfCheckedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_10__["arrDel"])(oriHalfCheckedKeys, eventKey);
checkedObj = { checked: checkedKeys, halfChecked: halfCheckedKeys };
eventObj.checkedNodes = checkedKeys.map(function (key) {
return keyEntities.get(key);
}).filter(function (entity) {
return entity;
}).map(function (entity) {
return entity.node;
});
this.setUncontrolledState({ _checkedKeys: checkedKeys });
} else {
var _conductCheck = Object(_util__WEBPACK_IMPORTED_MODULE_10__["conductCheck"])([eventKey], checked, keyEntities, {
checkedKeys: oriCheckedKeys,
halfCheckedKeys: oriHalfCheckedKeys
}),
_checkedKeys = _conductCheck.checkedKeys,
_halfCheckedKeys = _conductCheck.halfCheckedKeys;
checkedObj = _checkedKeys;
// [Legacy] This is used for `rc-tree-select`
eventObj.checkedNodes = [];
eventObj.checkedNodesPositions = [];
eventObj.halfCheckedKeys = _halfCheckedKeys;
_checkedKeys.forEach(function (key) {
var entity = keyEntities.get(key);
if (!entity) return;
var node = entity.node,
pos = entity.pos;
eventObj.checkedNodes.push(node);
eventObj.checkedNodesPositions.push({ node: node, pos: pos });
});
this.setUncontrolledState({
_checkedKeys: _checkedKeys,
_halfCheckedKeys: _halfCheckedKeys
});
}
this.__emit('check', checkedObj, eventObj);
},
onNodeLoad: function onNodeLoad(treeNode) {
var _this2 = this;
return new Promise(function (resolve) {
// We need to get the latest state of loading/loaded keys
_this2.setState(function (_ref) {
var _ref$_loadedKeys = _ref._loadedKeys,
loadedKeys = _ref$_loadedKeys === undefined ? [] : _ref$_loadedKeys,
_ref$_loadingKeys = _ref._loadingKeys,
loadingKeys = _ref$_loadingKeys === undefined ? [] : _ref$_loadingKeys;
var loadData = _this2.$props.loadData;
var _getOptionProps3 = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(treeNode),
eventKey = _getOptionProps3.eventKey;
if (!loadData || loadedKeys.indexOf(eventKey) !== -1 || loadingKeys.indexOf(eventKey) !== -1) {
return {};
}
// Process load data
var promise = loadData(treeNode);
promise.then(function () {
var _$data4 = _this2.$data,
currentLoadedKeys = _$data4._loadedKeys,
currentLoadingKeys = _$data4._loadingKeys;
var newLoadedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_10__["arrAdd"])(currentLoadedKeys, eventKey);
var newLoadingKeys = Object(_util__WEBPACK_IMPORTED_MODULE_10__["arrDel"])(currentLoadingKeys, eventKey);
// onLoad should trigger before internal setState to avoid `loadData` trigger twice.
// https://github.com/ant-design/ant-design/issues/12464
_this2.__emit('load', newLoadedKeys, {
event: 'load',
node: treeNode
});
_this2.setUncontrolledState({
_loadedKeys: newLoadedKeys
});
_this2.setState({
_loadingKeys: newLoadingKeys
});
resolve();
});
return {
_loadingKeys: Object(_util__WEBPACK_IMPORTED_MODULE_10__["arrAdd"])(loadingKeys, eventKey)
};
});
});
},
onNodeExpand: function onNodeExpand(e, treeNode) {
var _this3 = this;
var expandedKeys = this.$data._expandedKeys;
var loadData = this.$props.loadData;
var _getOptionProps4 = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(treeNode),
eventKey = _getOptionProps4.eventKey,
expanded = _getOptionProps4.expanded;
// Update selected keys
var index = expandedKeys.indexOf(eventKey);
var targetExpanded = !expanded;
warning__WEBPACK_IMPORTED_MODULE_5___default()(expanded && index !== -1 || !expanded && index === -1, 'Expand state not sync with index check');
if (targetExpanded) {
expandedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_10__["arrAdd"])(expandedKeys, eventKey);
} else {
expandedKeys = Object(_util__WEBPACK_IMPORTED_MODULE_10__["arrDel"])(expandedKeys, eventKey);
}
this.setUncontrolledState({ _expandedKeys: expandedKeys });
this.__emit('expand', expandedKeys, {
node: treeNode,
expanded: targetExpanded,
nativeEvent: e
});
this.__emit('update:expandedKeys', expandedKeys);
// Async Load data
if (targetExpanded && loadData) {
var loadPromise = this.onNodeLoad(treeNode);
return loadPromise ? loadPromise.then(function () {
// [Legacy] Refresh logic
_this3.setUncontrolledState({ _expandedKeys: expandedKeys });
}) : null;
}
return null;
},
onNodeMouseEnter: function onNodeMouseEnter(event, node) {
this.__emit('mouseenter', { event: event, node: node });
},
onNodeMouseLeave: function onNodeMouseLeave(event, node) {
this.__emit('mouseleave', { event: event, node: node });
},
onNodeContextMenu: function onNodeContextMenu(event, node) {
event.preventDefault();
this.__emit('rightClick', { event: event, node: node });
},
/**
* Only update the value which is not in props
*/
setUncontrolledState: function setUncontrolledState(state) {
var needSync = false;
var newState = {};
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getOptionProps"])(this);
Object.keys(state).forEach(function (name) {
if (name.replace('_', '') in props) return;
needSync = true;
newState[name] = state[name];
});
if (needSync) {
this.setState(newState);
}
},
registerTreeNode: function registerTreeNode(key, node) {
if (node) {
this.domTreeNodes[key] = node;
} else {
delete this.domTreeNodes[key];
}
},
isKeyChecked: function isKeyChecked(key) {
var _$data$_checkedKeys = this.$data._checkedKeys,
checkedKeys = _$data$_checkedKeys === undefined ? [] : _$data$_checkedKeys;
return checkedKeys.indexOf(key) !== -1;
},
/**
* [Legacy] Original logic use `key` as tracking clue.
* We have to use `cloneElement` to pass `key`.
*/
renderTreeNode: function renderTreeNode(child, index) {
var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
var _$data5 = this.$data,
keyEntities = _$data5._keyEntities,
_$data5$_expandedKeys = _$data5._expandedKeys,
expandedKeys = _$data5$_expandedKeys === undefined ? [] : _$data5$_expandedKeys,
_$data5$_selectedKeys = _$data5._selectedKeys,
selectedKeys = _$data5$_selectedKeys === undefined ? [] : _$data5$_selectedKeys,
_$data5$_halfCheckedK = _$data5._halfCheckedKeys,
halfCheckedKeys = _$data5$_halfCheckedK === undefined ? [] : _$data5$_halfCheckedK,
_$data5$_loadedKeys = _$data5._loadedKeys,
loadedKeys = _$data5$_loadedKeys === undefined ? [] : _$data5$_loadedKeys,
_$data5$_loadingKeys = _$data5._loadingKeys,
loadingKeys = _$data5$_loadingKeys === undefined ? [] : _$data5$_loadingKeys,
dragOverNodeKey = _$data5._dragOverNodeKey,
dropPosition = _$data5._dropPosition;
var pos = Object(_util__WEBPACK_IMPORTED_MODULE_10__["getPosition"])(level, index);
var key = child.key;
if (!key && (key === undefined || key === null)) {
key = pos;
}
if (!keyEntities.get(key)) {
Object(_util__WEBPACK_IMPORTED_MODULE_10__["warnOnlyTreeNode"])();
return null;
}
return Object(_util_vnode__WEBPACK_IMPORTED_MODULE_7__["cloneElement"])(child, {
props: {
eventKey: key,
expanded: expandedKeys.indexOf(key) !== -1,
selected: selectedKeys.indexOf(key) !== -1,
loaded: loadedKeys.indexOf(key) !== -1,
loading: loadingKeys.indexOf(key) !== -1,
checked: this.isKeyChecked(key),
halfChecked: halfCheckedKeys.indexOf(key) !== -1,
pos: pos,
// [Legacy] Drag props
dragOver: dragOverNodeKey === key && dropPosition === 0,
dragOverGapTop: dragOverNodeKey === key && dropPosition === -1,
dragOverGapBottom: dragOverNodeKey === key && dropPosition === 1
},
key: key
});
}
},
render: function render() {
var _this4 = this;
var h = arguments[0];
var treeNode = this.$data._treeNode;
var _$props = this.$props,
prefixCls = _$props.prefixCls,
focusable = _$props.focusable,
showLine = _$props.showLine,
_$props$tabIndex = _$props.tabIndex,
tabIndex = _$props$tabIndex === undefined ? 0 : _$props$tabIndex;
return h(
'ul',
{
'class': classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, prefixCls + '-show-line', showLine)),
attrs: { role: 'tree',
unselectable: 'on',
tabIndex: focusable ? tabIndex : null
}
},
[Object(_util__WEBPACK_IMPORTED_MODULE_10__["mapChildren"])(treeNode, function (node, index) {
return _this4.renderTreeNode(node, index);
})]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (Object(_util_proxyComponent__WEBPACK_IMPORTED_MODULE_9__["default"])(Tree));
/***/ }),
/***/ "./components/vc-tree/src/TreeNode.jsx":
/*!*********************************************!*\
!*** ./components/vc-tree/src/TreeNode.jsx ***!
\*********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./util */ "./components/vc-tree/src/util.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_getTransitionProps__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../_util/getTransitionProps */ "./components/_util/getTransitionProps.js");
function noop() {}
var ICON_OPEN = 'open';
var ICON_CLOSE = 'close';
var defaultTitle = '---';
var TreeNode = {
name: 'TreeNode',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__["default"]],
__ANT_TREE_NODE: true,
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["initDefaultProps"])({
eventKey: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number]), // Pass by parent `cloneElement`
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
// className: PropTypes.string,
root: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
// onSelect: PropTypes.func,
// By parent
expanded: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
selected: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
checked: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
loaded: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
loading: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
halfChecked: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
title: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
pos: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
dragOver: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
dragOverGapTop: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
dragOverGapBottom: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
// By user
isLeaf: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
checkable: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
selectable: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
disableCheckbox: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
icon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
dataRef: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
switcherIcon: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
label: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
value: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any
}, {}),
data: function data() {
return {
dragNodeHighlight: false
};
},
inject: {
vcTree: { 'default': function _default() {
return {};
} },
vcTreeNode: { 'default': function _default() {
return {};
} }
},
provide: function provide() {
return {
vcTreeNode: this
};
},
// Isomorphic needn't load data in server side
mounted: function mounted() {
var eventKey = this.eventKey,
registerTreeNode = this.vcTree.registerTreeNode;
this.syncLoadData(this.$props);
registerTreeNode && registerTreeNode(eventKey, this);
},
updated: function updated() {
this.syncLoadData(this.$props);
},
beforeDestroy: function beforeDestroy() {
var eventKey = this.eventKey,
registerTreeNode = this.vcTree.registerTreeNode;
registerTreeNode && registerTreeNode(eventKey, null);
},
methods: {
onSelectorClick: function onSelectorClick(e) {
// Click trigger before select/check operation
var onNodeClick = this.vcTree.onNodeClick;
onNodeClick(e, this);
if (this.isSelectable()) {
this.onSelect(e);
} else {
this.onCheck(e);
}
},
onSelectorDoubleClick: function onSelectorDoubleClick(e) {
var onNodeDoubleClick = this.vcTree.onNodeDoubleClick;
onNodeDoubleClick(e, this);
},
onSelect: function onSelect(e) {
if (this.isDisabled()) return;
var onNodeSelect = this.vcTree.onNodeSelect;
e.preventDefault();
onNodeSelect(e, this);
},
onCheck: function onCheck(e) {
if (this.isDisabled()) return;
var disableCheckbox = this.disableCheckbox,
checked = this.checked;
var onNodeCheck = this.vcTree.onNodeCheck;
if (!this.isCheckable() || disableCheckbox) return;
e.preventDefault();
var targetChecked = !checked;
onNodeCheck(e, this, targetChecked);
},
onMouseEnter: function onMouseEnter(e) {
var onNodeMouseEnter = this.vcTree.onNodeMouseEnter;
onNodeMouseEnter(e, this);
},
onMouseLeave: function onMouseLeave(e) {
var onNodeMouseLeave = this.vcTree.onNodeMouseLeave;
onNodeMouseLeave(e, this);
},
onContextMenu: function onContextMenu(e) {
var onNodeContextMenu = this.vcTree.onNodeContextMenu;
onNodeContextMenu(e, this);
},
onDragStart: function onDragStart(e) {
var onNodeDragStart = this.vcTree.onNodeDragStart;
e.stopPropagation();
this.setState({
dragNodeHighlight: true
});
onNodeDragStart(e, this);
try {
// ie throw error
// firefox-need-it
e.dataTransfer.setData('text/plain', '');
} catch (error) {
// empty
}
},
onDragEnter: function onDragEnter(e) {
var onNodeDragEnter = this.vcTree.onNodeDragEnter;
e.preventDefault();
e.stopPropagation();
onNodeDragEnter(e, this);
},
onDragOver: function onDragOver(e) {
var onNodeDragOver = this.vcTree.onNodeDragOver;
e.preventDefault();
e.stopPropagation();
onNodeDragOver(e, this);
},
onDragLeave: function onDragLeave(e) {
var onNodeDragLeave = this.vcTree.onNodeDragLeave;
e.stopPropagation();
onNodeDragLeave(e, this);
},
onDragEnd: function onDragEnd(e) {
var onNodeDragEnd = this.vcTree.onNodeDragEnd;
e.stopPropagation();
this.setState({
dragNodeHighlight: false
});
onNodeDragEnd(e, this);
},
onDrop: function onDrop(e) {
var onNodeDrop = this.vcTree.onNodeDrop;
e.preventDefault();
e.stopPropagation();
this.setState({
dragNodeHighlight: false
});
onNodeDrop(e, this);
},
// Disabled item still can be switch
onExpand: function onExpand(e) {
var onNodeExpand = this.vcTree.onNodeExpand;
onNodeExpand(e, this);
},
getNodeChildren: function getNodeChildren() {
var children = this.$slots['default'];
var originList = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["filterEmpty"])(children);
var targetList = Object(_util__WEBPACK_IMPORTED_MODULE_5__["getNodeChildren"])(originList);
if (originList.length !== targetList.length) {
Object(_util__WEBPACK_IMPORTED_MODULE_5__["warnOnlyTreeNode"])();
}
return targetList;
},
getNodeState: function getNodeState() {
var expanded = this.expanded;
if (this.isLeaf2()) {
return null;
}
return expanded ? ICON_OPEN : ICON_CLOSE;
},
isLeaf2: function isLeaf2() {
var isLeaf = this.isLeaf,
loaded = this.loaded;
var loadData = this.vcTree.loadData;
var hasChildren = this.getNodeChildren().length !== 0;
if (isLeaf === false) {
return false;
}
return isLeaf || !loadData && !hasChildren || loadData && loaded && !hasChildren;
},
isDisabled: function isDisabled() {
var disabled = this.disabled;
var treeDisabled = this.vcTree.disabled;
// Follow the logic of Selectable
if (disabled === false) {
return false;
}
return !!(treeDisabled || disabled);
},
isCheckable: function isCheckable() {
var checkable = this.$props.checkable;
var treeCheckable = this.vcTree.checkable;
// Return false if tree or treeNode is not checkable
if (!treeCheckable || checkable === false) return false;
return treeCheckable;
},
// Load data to avoid default expanded tree without data
syncLoadData: function syncLoadData(props) {
var expanded = props.expanded,
loading = props.loading,
loaded = props.loaded;
var _vcTree = this.vcTree,
loadData = _vcTree.loadData,
onNodeLoad = _vcTree.onNodeLoad;
if (loading) return;
// read from state to avoid loadData at same time
if (loadData && expanded && !this.isLeaf2()) {
// We needn't reload data when has children in sync logic
// It's only needed in node expanded
var hasChildren = this.getNodeChildren().length !== 0;
if (!hasChildren && !loaded) {
onNodeLoad(this);
}
}
},
isSelectable: function isSelectable() {
var selectable = this.selectable;
var treeSelectable = this.vcTree.selectable;
// Ignore when selectable is undefined or null
if (typeof selectable === 'boolean') {
return selectable;
}
return treeSelectable;
},
// Switcher
renderSwitcher: function renderSwitcher() {
var h = this.$createElement;
var expanded = this.expanded;
var prefixCls = this.vcTree.prefixCls;
var switcherIcon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'switcherIcon', {}, false) || Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this.vcTree, 'switcherIcon', {}, false);
if (this.isLeaf2()) {
return h(
'span',
{
key: 'switcher',
'class': classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls + '-switcher', prefixCls + '-switcher-noop')
},
[typeof switcherIcon === 'function' ? switcherIcon(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$props.dataRef, { isLeaf: true })) : switcherIcon]
);
}
var switcherCls = classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls + '-switcher', prefixCls + '-switcher_' + (expanded ? ICON_OPEN : ICON_CLOSE));
return h(
'span',
{ key: 'switcher', on: {
'click': this.onExpand
},
'class': switcherCls },
[typeof switcherIcon === 'function' ? switcherIcon(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$props.dataRef, { isLeaf: false })) : switcherIcon]
);
},
// Checkbox
renderCheckbox: function renderCheckbox() {
var h = this.$createElement;
var checked = this.checked,
halfChecked = this.halfChecked,
disableCheckbox = this.disableCheckbox;
var prefixCls = this.vcTree.prefixCls;
var disabled = this.isDisabled();
var checkable = this.isCheckable();
if (!checkable) return null;
// [Legacy] Custom element should be separate with `checkable` in future
var $custom = typeof checkable !== 'boolean' ? checkable : null;
return h(
'span',
{
key: 'checkbox',
'class': classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls + '-checkbox', checked && prefixCls + '-checkbox-checked', !checked && halfChecked && prefixCls + '-checkbox-indeterminate', (disabled || disableCheckbox) && prefixCls + '-checkbox-disabled'),
on: {
'click': this.onCheck
}
},
[$custom]
);
},
renderIcon: function renderIcon() {
var h = this.$createElement;
var loading = this.loading;
var prefixCls = this.vcTree.prefixCls;
return h('span', {
key: 'icon',
'class': classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls + '-iconEle', prefixCls + '-icon__' + (this.getNodeState() || 'docu'), loading && prefixCls + '-icon_loading')
});
},
// Icon + Title
renderSelector: function renderSelector(h) {
var selected = this.selected,
loading = this.loading,
dragNodeHighlight = this.dragNodeHighlight;
var icon = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'icon', {}, false);
var _vcTree2 = this.vcTree,
prefixCls = _vcTree2.prefixCls,
showIcon = _vcTree2.showIcon,
treeIcon = _vcTree2.icon,
draggable = _vcTree2.draggable,
loadData = _vcTree2.loadData;
var disabled = this.isDisabled();
var title = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_6__["getComponentFromProp"])(this, 'title', {}, false);
var wrapClass = prefixCls + '-node-content-wrapper';
// Icon - Still show loading icon when loading without showIcon
var $icon = void 0;
if (showIcon) {
var currentIcon = icon || treeIcon;
$icon = currentIcon ? h(
'span',
{ 'class': classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls + '-iconEle', prefixCls + '-icon__customize') },
[typeof currentIcon === 'function' ? currentIcon(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$props.dataRef), h) : currentIcon]
) : this.renderIcon();
} else if (loadData && loading) {
$icon = this.renderIcon();
}
var currentTitle = title;
var $title = currentTitle ? h(
'span',
{ 'class': prefixCls + '-title' },
[typeof currentTitle === 'function' ? currentTitle(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, this.$props, this.$props.dataRef), h) : currentTitle]
) : h(
'span',
{ 'class': prefixCls + '-title' },
[defaultTitle]
);
return h(
'span',
{
key: 'selector',
ref: 'selectHandle',
attrs: { title: typeof title === 'string' ? title : '',
draggable: !disabled && draggable || undefined,
'aria-grabbed': !disabled && draggable || undefined
},
'class': classnames__WEBPACK_IMPORTED_MODULE_4___default()('' + wrapClass, wrapClass + '-' + (this.getNodeState() || 'normal'), !disabled && (selected || dragNodeHighlight) && prefixCls + '-node-selected', !disabled && draggable && 'draggable'), on: {
'mouseenter': this.onMouseEnter,
'mouseleave': this.onMouseLeave,
'contextmenu': this.onContextMenu,
'click': this.onSelectorClick,
'dblclick': this.onSelectorDoubleClick,
'dragstart': draggable ? this.onDragStart : noop
}
},
[$icon, $title]
);
},
// Children list wrapped with `Animation`
renderChildren: function renderChildren() {
var h = this.$createElement;
var expanded = this.expanded,
pos = this.pos;
var _vcTree3 = this.vcTree,
prefixCls = _vcTree3.prefixCls,
openTransitionName = _vcTree3.openTransitionName,
openAnimation = _vcTree3.openAnimation,
renderTreeNode = _vcTree3.renderTreeNode;
var animProps = {};
if (openTransitionName) {
animProps = Object(_util_getTransitionProps__WEBPACK_IMPORTED_MODULE_8__["default"])(openTransitionName);
} else if ((typeof openAnimation === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(openAnimation)) === 'object') {
animProps = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({}, openAnimation);
animProps.props = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({ css: false }, animProps.props);
}
// Children TreeNode
var nodeList = this.getNodeChildren();
if (nodeList.length === 0) {
return null;
}
var $children = void 0;
if (expanded) {
$children = h(
'ul',
{
'class': classnames__WEBPACK_IMPORTED_MODULE_4___default()(prefixCls + '-child-tree', expanded && prefixCls + '-child-tree-open'),
attrs: { 'data-expanded': expanded,
role: 'group'
}
},
[Object(_util__WEBPACK_IMPORTED_MODULE_5__["mapChildren"])(nodeList, function (node, index) {
return renderTreeNode(node, index, pos);
})]
);
}
return h(
'transition',
animProps,
[$children]
);
}
},
render: function render(h) {
var _ref;
var _$props = this.$props,
dragOver = _$props.dragOver,
dragOverGapTop = _$props.dragOverGapTop,
dragOverGapBottom = _$props.dragOverGapBottom,
isLeaf = _$props.isLeaf,
expanded = _$props.expanded,
selected = _$props.selected,
checked = _$props.checked,
halfChecked = _$props.halfChecked,
loading = _$props.loading;
var _vcTree4 = this.vcTree,
prefixCls = _vcTree4.prefixCls,
filterTreeNode = _vcTree4.filterTreeNode,
draggable = _vcTree4.draggable;
var disabled = this.isDisabled();
return h(
'li',
{
'class': (_ref = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, prefixCls + '-treenode-disabled', disabled), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, prefixCls + '-treenode-switcher-' + (expanded ? 'open' : 'close'), !isLeaf), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, prefixCls + '-treenode-checkbox-checked', checked), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, prefixCls + '-treenode-checkbox-indeterminate', halfChecked), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, prefixCls + '-treenode-selected', selected), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, prefixCls + '-treenode-loading', loading), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, 'drag-over', !disabled && dragOver), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, 'drag-over-gap-top', !disabled && dragOverGapTop), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, 'drag-over-gap-bottom', !disabled && dragOverGapBottom), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_ref, 'filter-node', filterTreeNode && filterTreeNode(this)), _ref),
attrs: { role: 'treeitem'
},
on: {
'dragenter': draggable ? this.onDragEnter : noop,
'dragover': draggable ? this.onDragOver : noop,
'dragleave': draggable ? this.onDragLeave : noop,
'drop': draggable ? this.onDrop : noop,
'dragend': draggable ? this.onDragEnd : noop
}
},
[this.renderSwitcher(), this.renderCheckbox(), this.renderSelector(h), this.renderChildren()]
);
}
};
TreeNode.isTreeNode = 1;
/* harmony default export */ __webpack_exports__["default"] = (TreeNode);
/***/ }),
/***/ "./components/vc-tree/src/index.js":
/*!*****************************************!*\
!*** ./components/vc-tree/src/index.js ***!
\*****************************************/
/*! exports provided: Tree, TreeNode, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Tree__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Tree */ "./components/vc-tree/src/Tree.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Tree", function() { return _Tree__WEBPACK_IMPORTED_MODULE_0__["Tree"]; });
/* harmony import */ var _TreeNode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./TreeNode */ "./components/vc-tree/src/TreeNode.jsx");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TreeNode", function() { return _TreeNode__WEBPACK_IMPORTED_MODULE_1__["default"]; });
_Tree__WEBPACK_IMPORTED_MODULE_0__["Tree"].TreeNode = _TreeNode__WEBPACK_IMPORTED_MODULE_1__["default"];
_Tree__WEBPACK_IMPORTED_MODULE_0__["default"].TreeNode = _TreeNode__WEBPACK_IMPORTED_MODULE_1__["default"];
/* harmony default export */ __webpack_exports__["default"] = (_Tree__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/vc-tree/src/util.js":
/*!****************************************!*\
!*** ./components/vc-tree/src/util.js ***!
\****************************************/
/*! exports provided: warnOnlyTreeNode, arrDel, arrAdd, posToArr, getPosition, isTreeNode, getNodeChildren, isCheckDisabled, traverseTreeNodes, mapChildren, getDragNodesKeys, calcDropPosition, calcSelectedKeys, convertDataToTree, convertTreeToEntities, parseCheckedKeys, conductCheck, conductExpandParent, getDataAndAria */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "warnOnlyTreeNode", function() { return warnOnlyTreeNode; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "arrDel", function() { return arrDel; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "arrAdd", function() { return arrAdd; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "posToArr", function() { return posToArr; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPosition", function() { return getPosition; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isTreeNode", function() { return isTreeNode; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getNodeChildren", function() { return getNodeChildren; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isCheckDisabled", function() { return isCheckDisabled; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "traverseTreeNodes", function() { return traverseTreeNodes; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mapChildren", function() { return mapChildren; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDragNodesKeys", function() { return getDragNodesKeys; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calcDropPosition", function() { return calcDropPosition; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calcSelectedKeys", function() { return calcSelectedKeys; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "convertDataToTree", function() { return convertDataToTree; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "convertTreeToEntities", function() { return convertTreeToEntities; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseCheckedKeys", function() { return parseCheckedKeys; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "conductCheck", function() { return conductCheck; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "conductExpandParent", function() { return conductExpandParent; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDataAndAria", function() { return getDataAndAria; });
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/toConsumableArray */ "./node_modules/babel-runtime/helpers/toConsumableArray.js");
/* harmony import */ var babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/slicedToArray */ "./node_modules/babel-runtime/helpers/slicedToArray.js");
/* harmony import */ var babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babel-runtime/helpers/objectWithoutProperties */ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js");
/* harmony import */ var babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! warning */ "./node_modules/warning/warning.js");
/* harmony import */ var warning__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(warning__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var omit_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! omit.js */ "./node_modules/omit.js/es/index.js");
/* harmony import */ var _TreeNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./TreeNode */ "./components/vc-tree/src/TreeNode.jsx");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
/* eslint no-loop-func: 0*/
var DRAG_SIDE_RANGE = 0.25;
var DRAG_MIN_GAP = 2;
var onlyTreeNodeWarned = false;
function warnOnlyTreeNode() {
if (onlyTreeNodeWarned) return;
onlyTreeNodeWarned = true;
warning__WEBPACK_IMPORTED_MODULE_4___default()(false, 'Tree only accept TreeNode as children.');
}
function arrDel(list, value) {
var clone = list.slice();
var index = clone.indexOf(value);
if (index >= 0) {
clone.splice(index, 1);
}
return clone;
}
function arrAdd(list, value) {
var clone = list.slice();
if (clone.indexOf(value) === -1) {
clone.push(value);
}
return clone;
}
function posToArr(pos) {
return pos.split('-');
}
function getPosition(level, index) {
return level + '-' + index;
}
function isTreeNode(node) {
return Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getSlotOptions"])(node).isTreeNode;
}
function getNodeChildren() {
var children = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
return children.filter(isTreeNode);
}
function isCheckDisabled(node) {
var _ref = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(node) || {},
disabled = _ref.disabled,
disableCheckbox = _ref.disableCheckbox,
checkable = _ref.checkable;
return !!(disabled || disableCheckbox) || checkable === false;
}
function traverseTreeNodes(treeNodes, callback) {
function processNode(node, index, parent) {
var children = node ? node.componentOptions.children : treeNodes;
var pos = node ? getPosition(parent.pos, index) : 0;
// Filter children
var childList = getNodeChildren(children);
// Process node if is not root
if (node) {
var key = node.key;
if (!key && (key === undefined || key === null)) {
key = pos;
}
var data = {
node: node,
index: index,
pos: pos,
key: key,
parentPos: parent.node ? parent.pos : null
};
callback(data);
}
// Process children node
childList.forEach(function (subNode, subIndex) {
processNode(subNode, subIndex, { node: node, pos: pos });
});
}
processNode(null);
}
/**
* Use `rc-util` `toArray` to get the children list which keeps the key.
* And return single node if children is only one(This can avoid `key` missing check).
*/
function mapChildren() {
var children = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
var func = arguments[1];
var list = children.map(func);
if (list.length === 1) {
return list[0];
}
return list;
}
function getDragNodesKeys(treeNodes, node) {
var _getOptionProps = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(node),
eventKey = _getOptionProps.eventKey,
pos = _getOptionProps.pos;
var dragNodesKeys = [];
traverseTreeNodes(treeNodes, function (_ref2) {
var key = _ref2.key;
dragNodesKeys.push(key);
});
dragNodesKeys.push(eventKey || pos);
return dragNodesKeys;
}
function calcDropPosition(event, treeNode) {
var clientY = event.clientY;
var _treeNode$$refs$selec = treeNode.$refs.selectHandle.getBoundingClientRect(),
top = _treeNode$$refs$selec.top,
bottom = _treeNode$$refs$selec.bottom,
height = _treeNode$$refs$selec.height;
var des = Math.max(height * DRAG_SIDE_RANGE, DRAG_MIN_GAP);
if (clientY <= top + des) {
return -1;
}
if (clientY >= bottom - des) {
return 1;
}
return 0;
}
/**
* Return selectedKeys according with multiple prop
* @param selectedKeys
* @param props
* @returns [string]
*/
function calcSelectedKeys(selectedKeys, props) {
if (!selectedKeys) {
return undefined;
}
var multiple = props.multiple;
if (multiple) {
return selectedKeys.slice();
}
if (selectedKeys.length) {
return [selectedKeys[0]];
}
return selectedKeys;
}
/**
* Since React internal will convert key to string,
* we need do this to avoid `checkStrictly` use number match
*/
// function keyListToString (keyList) {
// if (!keyList) return keyList
// return keyList.map(key => String(key))
// }
var internalProcessProps = function internalProcessProps() {
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
return {
props: Object(omit_js__WEBPACK_IMPORTED_MODULE_5__["default"])(props, ['on', 'key', 'class', 'className', 'style']),
on: props.on || {},
'class': props['class'] || props.className,
style: props.style,
key: props.key
};
};
function convertDataToTree(h, treeData, processor) {
if (!treeData) return [];
var _ref3 = processor || {},
_ref3$processProps = _ref3.processProps,
processProps = _ref3$processProps === undefined ? internalProcessProps : _ref3$processProps;
var list = Array.isArray(treeData) ? treeData : [treeData];
return list.map(function (_ref4) {
var children = _ref4.children,
props = babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3___default()(_ref4, ['children']);
var childrenNodes = convertDataToTree(h, children, processor);
return h(
_TreeNode__WEBPACK_IMPORTED_MODULE_6__["default"],
processProps(props),
[childrenNodes]
);
});
}
// TODO: ========================= NEW LOGIC =========================
/**
* Calculate treeNodes entities. `processTreeEntity` is used for `rc-tree-select`
* @param treeNodes
* @param processTreeEntity User can customize the entity
*/
function convertTreeToEntities(treeNodes) {
var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
initWrapper = _ref5.initWrapper,
processEntity = _ref5.processEntity,
onProcessFinished = _ref5.onProcessFinished;
var posEntities = new Map();
var keyEntities = new Map();
var wrapper = {
posEntities: posEntities,
keyEntities: keyEntities
};
if (initWrapper) {
wrapper = initWrapper(wrapper) || wrapper;
}
traverseTreeNodes(treeNodes, function (item) {
var node = item.node,
index = item.index,
pos = item.pos,
key = item.key,
parentPos = item.parentPos;
var entity = { node: node, index: index, key: key, pos: pos };
posEntities.set(pos, entity);
keyEntities.set(key, entity);
// Fill children
entity.parent = posEntities.get(parentPos);
if (entity.parent) {
entity.parent.children = entity.parent.children || [];
entity.parent.children.push(entity);
}
if (processEntity) {
processEntity(entity, wrapper);
}
});
if (onProcessFinished) {
onProcessFinished(wrapper);
}
return wrapper;
}
/**
* Parse `checkedKeys` to { checkedKeys, halfCheckedKeys } style
*/
function parseCheckedKeys(keys) {
if (!keys) {
return null;
}
// Convert keys to object format
var keyProps = void 0;
if (Array.isArray(keys)) {
// [Legacy] Follow the api doc
keyProps = {
checkedKeys: keys,
halfCheckedKeys: undefined
};
} else if ((typeof keys === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_2___default()(keys)) === 'object') {
keyProps = {
checkedKeys: keys.checked || undefined,
halfCheckedKeys: keys.halfChecked || undefined
};
} else {
warning__WEBPACK_IMPORTED_MODULE_4___default()(false, '`checkedKeys` is not an array or an object');
return null;
}
// keyProps.checkedKeys = keyListToString(keyProps.checkedKeys)
// keyProps.halfCheckedKeys = keyListToString(keyProps.halfCheckedKeys)
return keyProps;
}
/**
* Conduct check state by the keyList. It will conduct up & from the provided key.
* If the conduct path reach the disabled or already checked / unchecked node will stop conduct.
* @param keyList list of keys
* @param isCheck is check the node or not
* @param keyEntities parsed by `convertTreeToEntities` function in Tree
* @param checkStatus Can pass current checked status for process (usually for uncheck operation)
* @returns {{checkedKeys: [], halfCheckedKeys: []}}
*/
function conductCheck(keyList, isCheck, keyEntities) {
var checkStatus = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
var checkedKeys = new Map();
var halfCheckedKeys = new Map(); // Record the key has some child checked (include child half checked)
(checkStatus.checkedKeys || []).forEach(function (key) {
checkedKeys.set(key, true);
});
(checkStatus.halfCheckedKeys || []).forEach(function (key) {
halfCheckedKeys.set(key, true);
});
// Conduct up
function conductUp(key) {
if (checkedKeys.get(key) === isCheck) return;
var entity = keyEntities.get(key);
if (!entity) return;
var children = entity.children,
parent = entity.parent,
node = entity.node;
if (isCheckDisabled(node)) return;
// Check child node checked status
var everyChildChecked = true;
var someChildChecked = false; // Child checked or half checked
(children || []).filter(function (child) {
return !isCheckDisabled(child.node);
}).forEach(function (_ref6) {
var childKey = _ref6.key;
var childChecked = checkedKeys.get(childKey);
var childHalfChecked = halfCheckedKeys.get(childKey);
if (childChecked || childHalfChecked) someChildChecked = true;
if (!childChecked) everyChildChecked = false;
});
// Update checked status
if (isCheck) {
checkedKeys.set(key, everyChildChecked);
} else {
checkedKeys.set(key, false);
}
halfCheckedKeys.set(key, someChildChecked);
if (parent) {
conductUp(parent.key);
}
}
// Conduct down
function conductDown(key) {
if (checkedKeys.get(key) === isCheck) return;
var entity = keyEntities.get(key);
if (!entity) return;
var children = entity.children,
node = entity.node;
if (isCheckDisabled(node)) return;
checkedKeys.set(key, isCheck);
(children || []).forEach(function (child) {
conductDown(child.key);
});
}
function conduct(key) {
var entity = keyEntities.get(key);
if (!entity) {
warning__WEBPACK_IMPORTED_MODULE_4___default()(false, '\'' + key + '\' does not exist in the tree.');
return;
}
var children = entity.children,
parent = entity.parent,
node = entity.node;
checkedKeys.set(key, isCheck);
if (isCheckDisabled(node)) return;
// Conduct down
(children || []).filter(function (child) {
return !isCheckDisabled(child.node);
}).forEach(function (child) {
conductDown(child.key);
});
// Conduct up
if (parent) {
conductUp(parent.key);
}
}
(keyList || []).forEach(function (key) {
conduct(key);
});
var checkedKeyList = [];
var halfCheckedKeyList = [];
// Fill checked list
var _iteratorNormalCompletion = true;
var _didIteratorError = false;
var _iteratorError = undefined;
try {
for (var _iterator = checkedKeys[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
var _ref7 = _step.value;
var _ref8 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_ref7, 2);
var key = _ref8[0];
var value = _ref8[1];
if (value) {
checkedKeyList.push(key);
}
}
// Fill half checked list
} catch (err) {
_didIteratorError = true;
_iteratorError = err;
} finally {
try {
if (!_iteratorNormalCompletion && _iterator['return']) {
_iterator['return']();
}
} finally {
if (_didIteratorError) {
throw _iteratorError;
}
}
}
var _iteratorNormalCompletion2 = true;
var _didIteratorError2 = false;
var _iteratorError2 = undefined;
try {
for (var _iterator2 = halfCheckedKeys[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
var _ref9 = _step2.value;
var _ref10 = babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_ref9, 2);
var _key = _ref10[0];
var _value = _ref10[1];
if (!checkedKeys.get(_key) && _value) {
halfCheckedKeyList.push(_key);
}
}
} catch (err) {
_didIteratorError2 = true;
_iteratorError2 = err;
} finally {
try {
if (!_iteratorNormalCompletion2 && _iterator2['return']) {
_iterator2['return']();
}
} finally {
if (_didIteratorError2) {
throw _iteratorError2;
}
}
}
return {
checkedKeys: checkedKeyList,
halfCheckedKeys: halfCheckedKeyList
};
}
/**
* If user use `autoExpandParent` we should get the list of parent node
* @param keyList
* @param keyEntities
*/
function conductExpandParent(keyList, keyEntities) {
var expandedKeys = new Map();
function conductUp(key) {
if (expandedKeys.get(key)) return;
var entity = keyEntities.get(key);
if (!entity) return;
expandedKeys.set(key, true);
var parent = entity.parent,
node = entity.node;
var props = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_7__["getOptionProps"])(node);
if (props && props.disabled) return;
if (parent) {
conductUp(parent.key);
}
}
(keyList || []).forEach(function (key) {
conductUp(key);
});
return [].concat(babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(expandedKeys.keys()));
}
/**
* Returns only the data- and aria- key/value pairs
* @param {object} props
*/
function getDataAndAria(props) {
return Object.keys(props).reduce(function (prev, key) {
if (key.substr(0, 5) === 'data-' || key.substr(0, 5) === 'aria-') {
prev[key] = props[key];
}
return prev;
}, {});
}
/***/ }),
/***/ "./components/vc-trigger/LazyRenderBox.jsx":
/*!*************************************************!*\
!*** ./components/vc-trigger/LazyRenderBox.jsx ***!
\*************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony default export */ __webpack_exports__["default"] = ({
props: {
visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].bool,
hiddenClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_0__["default"].string
},
render: function render() {
var h = arguments[0];
var _$props = this.$props,
hiddenClassName = _$props.hiddenClassName,
visible = _$props.visible;
var children = null;
if (hiddenClassName || !this.$slots['default'] || this.$slots['default'].length > 1) {
var cls = '';
if (!visible && hiddenClassName) {
// cls += ` ${hiddenClassName}`
}
children = h(
'div',
{ 'class': cls },
[this.$slots['default']]
);
} else {
children = this.$slots['default'][0];
}
return children;
}
});
/***/ }),
/***/ "./components/vc-trigger/Popup.jsx":
/*!*****************************************!*\
!*** ./components/vc-trigger/Popup.jsx ***!
\*****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/typeof */ "./node_modules/babel-runtime/helpers/typeof.js");
/* harmony import */ var babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _vc_align__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../vc-align */ "./components/vc-align/index.js");
/* harmony import */ var _PopupInner__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./PopupInner */ "./components/vc-trigger/PopupInner.jsx");
/* harmony import */ var _LazyRenderBox__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./LazyRenderBox */ "./components/vc-trigger/LazyRenderBox.jsx");
/* harmony import */ var _util_css_animation__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/css-animation */ "./components/_util/css-animation/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'VCTriggerPopup',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_7__["default"]],
props: {
visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
getClassNameFromAlign: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
getRootDomNode: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
align: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
destroyPopupOnHide: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
getContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
transitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
animation: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
maskAnimation: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
maskTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
mask: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
zIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
popupClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].any,
popupStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object.def(function () {
return {};
}),
stretch: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
point: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].shape({
pageX: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number,
pageY: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].number
})
},
data: function data() {
this.domEl = null;
return {
// Used for stretch
stretchChecked: false,
targetWidth: undefined,
targetHeight: undefined
};
},
mounted: function mounted() {
var _this = this;
this.$nextTick(function () {
_this.rootNode = _this.getPopupDomNode();
_this.setStretchSize();
});
},
// 如添加会导致动画失效,如放开会导致快速输入时闪动 https://github.com/vueComponent/ant-design-vue/issues/1327
// 目前方案是保留动画,闪动问题(动画多次执行)进一步定位
// beforeUpdate() {
// if (this.domEl && this.domEl.rcEndListener) {
// this.domEl.rcEndListener();
// this.domEl = null;
// }
// },
updated: function updated() {
var _this2 = this;
this.$nextTick(function () {
_this2.setStretchSize();
});
},
beforeDestroy: function beforeDestroy() {
if (this.$el.parentNode) {
this.$el.parentNode.removeChild(this.$el);
} else if (this.$el.remove) {
this.$el.remove();
}
},
methods: {
onAlign: function onAlign(popupDomNode, align) {
var props = this.$props;
var currentAlignClassName = props.getClassNameFromAlign(align);
// FIX: https://github.com/react-component/trigger/issues/56
// FIX: https://github.com/react-component/tooltip/issues/79
if (this.currentAlignClassName !== currentAlignClassName) {
this.currentAlignClassName = currentAlignClassName;
popupDomNode.className = this.getClassName(currentAlignClassName);
}
var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getListeners"])(this);
listeners.align && listeners.align(popupDomNode, align);
},
// Record size if stretch needed
setStretchSize: function setStretchSize() {
var _$props = this.$props,
stretch = _$props.stretch,
getRootDomNode = _$props.getRootDomNode,
visible = _$props.visible;
var _$data = this.$data,
stretchChecked = _$data.stretchChecked,
targetHeight = _$data.targetHeight,
targetWidth = _$data.targetWidth;
if (!stretch || !visible) {
if (stretchChecked) {
this.setState({ stretchChecked: false });
}
return;
}
var $ele = getRootDomNode();
if (!$ele) return;
var height = $ele.offsetHeight;
var width = $ele.offsetWidth;
if (targetHeight !== height || targetWidth !== width || !stretchChecked) {
this.setState({
stretchChecked: true,
targetHeight: height,
targetWidth: width
});
}
},
getPopupDomNode: function getPopupDomNode() {
return this.$refs.popupInstance ? this.$refs.popupInstance.$el : null;
},
getTargetElement: function getTargetElement() {
return this.$props.getRootDomNode();
},
// `target` on `rc-align` can accept as a function to get the bind element or a point.
// ref: https://www.npmjs.com/package/rc-align
getAlignTarget: function getAlignTarget() {
var point = this.$props.point;
if (point) {
return point;
}
return this.getTargetElement;
},
getMaskTransitionName: function getMaskTransitionName() {
var props = this.$props;
var transitionName = props.maskTransitionName;
var animation = props.maskAnimation;
if (!transitionName && animation) {
transitionName = props.prefixCls + '-' + animation;
}
return transitionName;
},
getTransitionName: function getTransitionName() {
var props = this.$props;
var transitionName = props.transitionName;
var animation = props.animation;
if (!transitionName) {
if (typeof animation === 'string') {
transitionName = '' + animation;
} else if (animation && animation.props && animation.props.name) {
transitionName = animation.props.name;
}
}
return transitionName;
},
getClassName: function getClassName(currentAlignClassName) {
return this.$props.prefixCls + ' ' + this.$props.popupClassName + ' ' + currentAlignClassName;
},
getPopupElement: function getPopupElement() {
var _this3 = this;
var h = this.$createElement;
var props = this.$props,
$slots = this.$slots,
getTransitionName = this.getTransitionName;
var _$data2 = this.$data,
stretchChecked = _$data2.stretchChecked,
targetHeight = _$data2.targetHeight,
targetWidth = _$data2.targetWidth;
var align = props.align,
visible = props.visible,
prefixCls = props.prefixCls,
animation = props.animation,
popupStyle = props.popupStyle,
getClassNameFromAlign = props.getClassNameFromAlign,
destroyPopupOnHide = props.destroyPopupOnHide,
stretch = props.stretch;
var className = this.getClassName(this.currentAlignClassName || getClassNameFromAlign(align));
// const hiddenClassName = `${prefixCls}-hidden`
if (!visible) {
this.currentAlignClassName = null;
}
var sizeStyle = {};
if (stretch) {
// Stretch with target
if (stretch.indexOf('height') !== -1) {
sizeStyle.height = typeof targetHeight === 'number' ? targetHeight + 'px' : targetHeight;
} else if (stretch.indexOf('minHeight') !== -1) {
sizeStyle.minHeight = typeof targetHeight === 'number' ? targetHeight + 'px' : targetHeight;
}
if (stretch.indexOf('width') !== -1) {
sizeStyle.width = typeof targetWidth === 'number' ? targetWidth + 'px' : targetWidth;
} else if (stretch.indexOf('minWidth') !== -1) {
sizeStyle.minWidth = typeof targetWidth === 'number' ? targetWidth + 'px' : targetWidth;
}
// Delay force align to makes ui smooth
if (!stretchChecked) {
// sizeStyle.visibility = 'hidden'
setTimeout(function () {
if (_this3.$refs.alignInstance) {
_this3.$refs.alignInstance.forceAlign();
}
}, 0);
}
}
var popupInnerProps = {
props: {
prefixCls: prefixCls,
visible: visible
// hiddenClassName,
},
'class': className,
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_8__["getListeners"])(this),
ref: 'popupInstance',
style: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, sizeStyle, popupStyle, this.getZIndexStyle())
};
var transitionProps = {
props: {
appear: true,
css: false
}
};
var transitionName = getTransitionName();
var useTransition = !!transitionName;
var transitionEvent = {
beforeEnter: function beforeEnter() {
// el.style.display = el.__vOriginalDisplay
// this.$refs.alignInstance.forceAlign();
},
enter: function enter(el, done) {
// render 后 vue 会移除通过animate动态添加的 class导致动画闪动延迟两帧添加动画class可以进一步定位或者重写 transition 组件
_this3.$nextTick(function () {
if (_this3.$refs.alignInstance) {
_this3.$refs.alignInstance.$nextTick(function () {
_this3.domEl = el;
Object(_util_css_animation__WEBPACK_IMPORTED_MODULE_6__["default"])(el, transitionName + '-enter', done);
});
} else {
done();
}
});
},
beforeLeave: function beforeLeave() {
_this3.domEl = null;
},
leave: function leave(el, done) {
Object(_util_css_animation__WEBPACK_IMPORTED_MODULE_6__["default"])(el, transitionName + '-leave', done);
}
};
if ((typeof animation === 'undefined' ? 'undefined' : babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(animation)) === 'object') {
useTransition = true;
var _animation$on = animation.on,
on = _animation$on === undefined ? {} : _animation$on,
_animation$props = animation.props,
_props = _animation$props === undefined ? {} : _animation$props;
transitionProps.props = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, transitionProps.props, _props);
transitionProps.on = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, transitionEvent, on);
} else {
transitionProps.on = transitionEvent;
}
if (!useTransition) {
transitionProps = {};
}
if (destroyPopupOnHide) {
return h(
'transition',
transitionProps,
[visible ? h(
_vc_align__WEBPACK_IMPORTED_MODULE_3__["default"],
{
attrs: {
target: this.getAlignTarget(),
monitorWindowResize: true,
align: align
},
key: 'popup',
ref: 'alignInstance', on: {
'align': this.onAlign
}
},
[h(
_PopupInner__WEBPACK_IMPORTED_MODULE_4__["default"],
popupInnerProps,
[$slots['default']]
)]
) : null]
);
}
return h(
'transition',
transitionProps,
[h(
_vc_align__WEBPACK_IMPORTED_MODULE_3__["default"],
{
directives: [{
name: 'show',
value: visible
}],
attrs: {
target: this.getAlignTarget(),
monitorWindowResize: true,
disabled: !visible,
align: align
},
key: 'popup',
ref: 'alignInstance', on: {
'align': this.onAlign
}
},
[h(
_PopupInner__WEBPACK_IMPORTED_MODULE_4__["default"],
popupInnerProps,
[$slots['default']]
)]
)]
);
},
getZIndexStyle: function getZIndexStyle() {
var style = {};
var props = this.$props;
if (props.zIndex !== undefined) {
style.zIndex = props.zIndex;
}
return style;
},
getMaskElement: function getMaskElement() {
var h = this.$createElement;
var props = this.$props;
var maskElement = null;
if (props.mask) {
var maskTransition = this.getMaskTransitionName();
maskElement = h(_LazyRenderBox__WEBPACK_IMPORTED_MODULE_5__["default"], {
directives: [{
name: 'show',
value: props.visible
}],
style: this.getZIndexStyle(),
key: 'mask',
'class': props.prefixCls + '-mask',
attrs: { visible: props.visible
}
});
if (maskTransition) {
maskElement = h(
'transition',
{
attrs: { appear: true, name: maskTransition }
},
[maskElement]
);
}
}
return maskElement;
}
},
render: function render() {
var h = arguments[0];
var getMaskElement = this.getMaskElement,
getPopupElement = this.getPopupElement;
return h('div', [getMaskElement(), getPopupElement()]);
}
});
/***/ }),
/***/ "./components/vc-trigger/PopupInner.jsx":
/*!**********************************************!*\
!*** ./components/vc-trigger/PopupInner.jsx ***!
\**********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-helper-vue-jsx-merge-props */ "./node_modules/babel-helper-vue-jsx-merge-props/index.js");
/* harmony import */ var babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _LazyRenderBox__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./LazyRenderBox */ "./components/vc-trigger/LazyRenderBox.jsx");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony default export */ __webpack_exports__["default"] = ({
props: {
hiddenClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string.def(''),
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
visible: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool
},
render: function render() {
var h = arguments[0];
var _$props = this.$props,
prefixCls = _$props.prefixCls,
visible = _$props.visible,
hiddenClassName = _$props.hiddenClassName;
var divProps = {
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_3__["getListeners"])(this)
};
return h(
'div',
babel_helper_vue_jsx_merge_props__WEBPACK_IMPORTED_MODULE_0___default()([divProps, { 'class': !visible ? hiddenClassName : '' }]),
[h(
_LazyRenderBox__WEBPACK_IMPORTED_MODULE_2__["default"],
{ 'class': prefixCls + '-content', attrs: { visible: visible }
},
[this.$slots['default']]
)]
);
}
});
/***/ }),
/***/ "./components/vc-trigger/Trigger.jsx":
/*!*******************************************!*\
!*** ./components/vc-trigger/Trigger.jsx ***!
\*******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ "vue");
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue-ref */ "./node_modules/vue-ref/index.js");
/* harmony import */ var vue_ref__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(vue_ref__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _vc_util_Dom_contains__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../vc-util/Dom/contains */ "./components/vc-util/Dom/contains.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../_util/requestAnimationTimeout */ "./components/_util/requestAnimationTimeout.js");
/* harmony import */ var _vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../vc-util/Dom/addEventListener */ "./components/vc-util/Dom/addEventListener.js");
/* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/warning */ "./components/_util/warning.js");
/* harmony import */ var _Popup__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Popup */ "./components/vc-trigger/Popup.jsx");
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utils */ "./components/vc-trigger/utils.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _util_vnode__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../_util/vnode */ "./components/_util/vnode.js");
/* harmony import */ var _util_ContainerRender__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../_util/ContainerRender */ "./components/_util/ContainerRender.jsx");
vue__WEBPACK_IMPORTED_MODULE_1___default.a.use(vue_ref__WEBPACK_IMPORTED_MODULE_2___default.a, { name: 'ant-ref' });
function returnEmptyString() {
return '';
}
function returnDocument() {
return window.document;
}
var ALL_HANDLERS = ['click', 'mousedown', 'touchstart', 'mouseenter', 'mouseleave', 'focus', 'blur', 'contextmenu'];
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'Trigger',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_11__["default"]],
props: {
action: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].arrayOf(_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string)]).def([]),
showAction: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any.def([]),
hideAction: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any.def([]),
getPopupClassNameFromAlign: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any.def(returnEmptyString),
// onPopupVisibleChange: PropTypes.func.def(noop),
afterPopupVisibleChange: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func.def(_utils__WEBPACK_IMPORTED_MODULE_10__["noop"]),
popup: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
popupStyle: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object.def(function () {
return {};
}),
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.def('rc-trigger-popup'),
popupClassName: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string.def(''),
popupPlacement: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
builtinPlacements: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object,
popupTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object]),
popupAnimation: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].any,
mouseEnterDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number.def(0),
mouseLeaveDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number.def(0.1),
zIndex: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number,
focusDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number.def(0),
blurDelay: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].number.def(0.15),
getPopupContainer: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func,
getDocument: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].func.def(returnDocument),
forceRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
destroyPopupOnHide: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool.def(false),
mask: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool.def(false),
maskClosable: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool.def(true),
// onPopupAlign: PropTypes.func.def(noop),
popupAlign: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object.def(function () {
return {};
}),
popupVisible: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool,
defaultPopupVisible: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool.def(false),
maskTransitionName: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].object]),
maskAnimation: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
stretch: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].string,
alignPoint: _util_vue_types__WEBPACK_IMPORTED_MODULE_3__["default"].bool // Maybe we can support user pass position in the future
},
provide: function provide() {
return {
vcTriggerContext: this
};
},
inject: {
vcTriggerContext: { 'default': function _default() {
return {};
} },
savePopupRef: { 'default': function _default() {
return _utils__WEBPACK_IMPORTED_MODULE_10__["noop"];
} },
dialogContext: { 'default': function _default() {
return null;
} }
},
data: function data() {
var _this = this;
var props = this.$props;
var popupVisible = void 0;
if (Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'popupVisible')) {
popupVisible = !!props.popupVisible;
} else {
popupVisible = !!props.defaultPopupVisible;
}
ALL_HANDLERS.forEach(function (h) {
_this['fire' + h] = function (e) {
_this.fireEvents(h, e);
};
});
return {
prevPopupVisible: popupVisible,
sPopupVisible: popupVisible,
point: null
};
},
watch: {
popupVisible: function popupVisible(val) {
if (val !== undefined) {
this.prevPopupVisible = this.sPopupVisible;
this.sPopupVisible = val;
}
}
},
deactivated: function deactivated() {
this.setPopupVisible(false);
},
mounted: function mounted() {
var _this2 = this;
this.$nextTick(function () {
_this2.renderComponent(null);
_this2.updatedCal();
});
},
updated: function updated() {
var _this3 = this;
var triggerAfterPopupVisibleChange = function triggerAfterPopupVisibleChange() {
if (_this3.sPopupVisible !== _this3.prevPopupVisible) {
_this3.afterPopupVisibleChange(_this3.sPopupVisible);
}
_this3.prevPopupVisible = _this3.sPopupVisible;
};
this.renderComponent(null, triggerAfterPopupVisibleChange);
this.$nextTick(function () {
_this3.updatedCal();
});
},
beforeDestroy: function beforeDestroy() {
this.clearDelayTimer();
this.clearOutsideHandler();
clearTimeout(this.mouseDownTimeout);
},
methods: {
updatedCal: function updatedCal() {
var props = this.$props;
var state = this.$data;
// We must listen to `mousedown` or `touchstart`, edge case:
// https://github.com/ant-design/ant-design/issues/5804
// https://github.com/react-component/calendar/issues/250
// https://github.com/react-component/trigger/issues/50
if (state.sPopupVisible) {
var currentDocument = void 0;
if (!this.clickOutsideHandler && (this.isClickToHide() || this.isContextmenuToShow())) {
currentDocument = props.getDocument();
this.clickOutsideHandler = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_7__["default"])(currentDocument, 'mousedown', this.onDocumentClick);
}
// always hide on mobile
if (!this.touchOutsideHandler) {
currentDocument = currentDocument || props.getDocument();
this.touchOutsideHandler = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_7__["default"])(currentDocument, 'touchstart', this.onDocumentClick);
}
// close popup when trigger type contains 'onContextmenu' and document is scrolling.
if (!this.contextmenuOutsideHandler1 && this.isContextmenuToShow()) {
currentDocument = currentDocument || props.getDocument();
this.contextmenuOutsideHandler1 = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_7__["default"])(currentDocument, 'scroll', this.onContextmenuClose);
}
// close popup when trigger type contains 'onContextmenu' and window is blur.
if (!this.contextmenuOutsideHandler2 && this.isContextmenuToShow()) {
this.contextmenuOutsideHandler2 = Object(_vc_util_Dom_addEventListener__WEBPACK_IMPORTED_MODULE_7__["default"])(window, 'blur', this.onContextmenuClose);
}
} else {
this.clearOutsideHandler();
}
},
onMouseenter: function onMouseenter(e) {
var mouseEnterDelay = this.$props.mouseEnterDelay;
this.fireEvents('mouseenter', e);
this.delaySetPopupVisible(true, mouseEnterDelay, mouseEnterDelay ? null : e);
},
onMouseMove: function onMouseMove(e) {
this.fireEvents('mousemove', e);
this.setPoint(e);
},
onMouseleave: function onMouseleave(e) {
this.fireEvents('mouseleave', e);
this.delaySetPopupVisible(false, this.$props.mouseLeaveDelay);
},
onPopupMouseenter: function onPopupMouseenter() {
this.clearDelayTimer();
},
onPopupMouseleave: function onPopupMouseleave(e) {
if (e && e.relatedTarget && !e.relatedTarget.setTimeout && this._component && this._component.getPopupDomNode && Object(_vc_util_Dom_contains__WEBPACK_IMPORTED_MODULE_4__["default"])(this._component.getPopupDomNode(), e.relatedTarget)) {
return;
}
this.delaySetPopupVisible(false, this.$props.mouseLeaveDelay);
},
onFocus: function onFocus(e) {
this.fireEvents('focus', e);
// incase focusin and focusout
this.clearDelayTimer();
if (this.isFocusToShow()) {
this.focusTime = Date.now();
this.delaySetPopupVisible(true, this.$props.focusDelay);
}
},
onMousedown: function onMousedown(e) {
this.fireEvents('mousedown', e);
this.preClickTime = Date.now();
},
onTouchstart: function onTouchstart(e) {
this.fireEvents('touchstart', e);
this.preTouchTime = Date.now();
},
onBlur: function onBlur(e) {
if (!Object(_vc_util_Dom_contains__WEBPACK_IMPORTED_MODULE_4__["default"])(e.target, e.relatedTarget || document.activeElement)) {
this.fireEvents('blur', e);
this.clearDelayTimer();
if (this.isBlurToHide()) {
this.delaySetPopupVisible(false, this.$props.blurDelay);
}
}
},
onContextmenu: function onContextmenu(e) {
e.preventDefault();
this.fireEvents('contextmenu', e);
this.setPopupVisible(true, e);
},
onContextmenuClose: function onContextmenuClose() {
if (this.isContextmenuToShow()) {
this.close();
}
},
onClick: function onClick(event) {
this.fireEvents('click', event);
// focus will trigger click
if (this.focusTime) {
var preTime = void 0;
if (this.preClickTime && this.preTouchTime) {
preTime = Math.min(this.preClickTime, this.preTouchTime);
} else if (this.preClickTime) {
preTime = this.preClickTime;
} else if (this.preTouchTime) {
preTime = this.preTouchTime;
}
if (Math.abs(preTime - this.focusTime) < 20) {
return;
}
this.focusTime = 0;
}
this.preClickTime = 0;
this.preTouchTime = 0;
// Only prevent default when all the action is click.
// https://github.com/ant-design/ant-design/issues/17043
// https://github.com/ant-design/ant-design/issues/17291
if (this.isClickToShow() && (this.isClickToHide() || this.isBlurToHide()) && event && event.preventDefault) {
event.preventDefault();
}
if (event && event.domEvent) {
event.domEvent.preventDefault();
}
var nextVisible = !this.$data.sPopupVisible;
if (this.isClickToHide() && !nextVisible || nextVisible && this.isClickToShow()) {
this.setPopupVisible(!this.$data.sPopupVisible, event);
}
},
onPopupMouseDown: function onPopupMouseDown() {
var _this4 = this;
var _vcTriggerContext = this.vcTriggerContext,
vcTriggerContext = _vcTriggerContext === undefined ? {} : _vcTriggerContext;
this.hasPopupMouseDown = true;
clearTimeout(this.mouseDownTimeout);
this.mouseDownTimeout = setTimeout(function () {
_this4.hasPopupMouseDown = false;
}, 0);
if (vcTriggerContext.onPopupMouseDown) {
vcTriggerContext.onPopupMouseDown.apply(vcTriggerContext, arguments);
}
},
onDocumentClick: function onDocumentClick(event) {
if (this.$props.mask && !this.$props.maskClosable) {
return;
}
var target = event.target;
var root = this.$el;
if (!Object(_vc_util_Dom_contains__WEBPACK_IMPORTED_MODULE_4__["default"])(root, target) && !this.hasPopupMouseDown) {
this.close();
}
},
getPopupDomNode: function getPopupDomNode() {
if (this._component && this._component.getPopupDomNode) {
return this._component.getPopupDomNode();
}
return null;
},
getRootDomNode: function getRootDomNode() {
return this.$el;
// return this.$el.children[0] || this.$el
},
handleGetPopupClassFromAlign: function handleGetPopupClassFromAlign(align) {
var className = [];
var props = this.$props;
var popupPlacement = props.popupPlacement,
builtinPlacements = props.builtinPlacements,
prefixCls = props.prefixCls,
alignPoint = props.alignPoint,
getPopupClassNameFromAlign = props.getPopupClassNameFromAlign;
if (popupPlacement && builtinPlacements) {
className.push(Object(_utils__WEBPACK_IMPORTED_MODULE_10__["getAlignPopupClassName"])(builtinPlacements, prefixCls, align, alignPoint));
}
if (getPopupClassNameFromAlign) {
className.push(getPopupClassNameFromAlign(align));
}
return className.join(' ');
},
getPopupAlign: function getPopupAlign() {
var props = this.$props;
var popupPlacement = props.popupPlacement,
popupAlign = props.popupAlign,
builtinPlacements = props.builtinPlacements;
if (popupPlacement && builtinPlacements) {
return Object(_utils__WEBPACK_IMPORTED_MODULE_10__["getAlignFromPlacement"])(builtinPlacements, popupPlacement, popupAlign);
}
return popupAlign;
},
savePopup: function savePopup(node) {
this._component = node;
this.savePopupRef(node);
},
getComponent: function getComponent() {
var h = this.$createElement;
var self = this;
var mouseProps = {};
if (this.isMouseEnterToShow()) {
mouseProps.mouseenter = self.onPopupMouseenter;
}
if (this.isMouseLeaveToHide()) {
mouseProps.mouseleave = self.onPopupMouseleave;
}
mouseProps.mousedown = this.onPopupMouseDown;
mouseProps.touchstart = this.onPopupMouseDown;
var handleGetPopupClassFromAlign = self.handleGetPopupClassFromAlign,
getRootDomNode = self.getRootDomNode,
getContainer = self.getContainer;
var _self$$props = self.$props,
prefixCls = _self$$props.prefixCls,
destroyPopupOnHide = _self$$props.destroyPopupOnHide,
popupClassName = _self$$props.popupClassName,
action = _self$$props.action,
popupAnimation = _self$$props.popupAnimation,
popupTransitionName = _self$$props.popupTransitionName,
popupStyle = _self$$props.popupStyle,
mask = _self$$props.mask,
maskAnimation = _self$$props.maskAnimation,
maskTransitionName = _self$$props.maskTransitionName,
zIndex = _self$$props.zIndex,
stretch = _self$$props.stretch,
alignPoint = _self$$props.alignPoint;
var _$data = this.$data,
sPopupVisible = _$data.sPopupVisible,
point = _$data.point;
var align = this.getPopupAlign();
var popupProps = {
props: {
prefixCls: prefixCls,
destroyPopupOnHide: destroyPopupOnHide,
visible: sPopupVisible,
point: alignPoint && point,
action: action,
align: align,
animation: popupAnimation,
getClassNameFromAlign: handleGetPopupClassFromAlign,
stretch: stretch,
getRootDomNode: getRootDomNode,
mask: mask,
zIndex: zIndex,
transitionName: popupTransitionName,
maskAnimation: maskAnimation,
maskTransitionName: maskTransitionName,
getContainer: getContainer,
popupClassName: popupClassName,
popupStyle: popupStyle
},
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
align: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this).popupAlign || _utils__WEBPACK_IMPORTED_MODULE_10__["noop"]
}, mouseProps),
directives: [{
name: 'ant-ref',
value: this.savePopup
}]
};
return h(
_Popup__WEBPACK_IMPORTED_MODULE_9__["default"],
popupProps,
[Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getComponentFromProp"])(self, 'popup')]
);
},
getContainer: function getContainer() {
var props = this.$props,
dialogContext = this.dialogContext;
var popupContainer = document.createElement('div');
// Make sure default popup container will never cause scrollbar appearing
// https://github.com/react-component/trigger/issues/41
popupContainer.style.position = 'absolute';
popupContainer.style.top = '0';
popupContainer.style.left = '0';
popupContainer.style.width = '100%';
var mountNode = props.getPopupContainer ? props.getPopupContainer(this.$el, dialogContext) : props.getDocument().body;
mountNode.appendChild(popupContainer);
this.popupContainer = popupContainer;
return popupContainer;
},
setPopupVisible: function setPopupVisible(sPopupVisible, event) {
var alignPoint = this.alignPoint,
prevPopupVisible = this.sPopupVisible;
this.clearDelayTimer();
if (prevPopupVisible !== sPopupVisible) {
if (!Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["hasProp"])(this, 'popupVisible')) {
this.setState({
sPopupVisible: sPopupVisible,
prevPopupVisible: prevPopupVisible
});
}
var listeners = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this);
listeners.popupVisibleChange && listeners.popupVisibleChange(sPopupVisible);
}
// Always record the point position since mouseEnterDelay will delay the show
if (alignPoint && event) {
this.setPoint(event);
}
},
setPoint: function setPoint(point) {
var alignPoint = this.$props.alignPoint;
if (!alignPoint || !point) return;
this.setState({
point: {
pageX: point.pageX,
pageY: point.pageY
}
});
},
delaySetPopupVisible: function delaySetPopupVisible(visible, delayS, event) {
var _this5 = this;
var delay = delayS * 1000;
this.clearDelayTimer();
if (delay) {
var point = event ? { pageX: event.pageX, pageY: event.pageY } : null;
this.delayTimer = Object(_util_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_6__["requestAnimationTimeout"])(function () {
_this5.setPopupVisible(visible, point);
_this5.clearDelayTimer();
}, delay);
} else {
this.setPopupVisible(visible, event);
}
},
clearDelayTimer: function clearDelayTimer() {
if (this.delayTimer) {
Object(_util_requestAnimationTimeout__WEBPACK_IMPORTED_MODULE_6__["cancelAnimationTimeout"])(this.delayTimer);
this.delayTimer = null;
}
},
clearOutsideHandler: function clearOutsideHandler() {
if (this.clickOutsideHandler) {
this.clickOutsideHandler.remove();
this.clickOutsideHandler = null;
}
if (this.contextmenuOutsideHandler1) {
this.contextmenuOutsideHandler1.remove();
this.contextmenuOutsideHandler1 = null;
}
if (this.contextmenuOutsideHandler2) {
this.contextmenuOutsideHandler2.remove();
this.contextmenuOutsideHandler2 = null;
}
if (this.touchOutsideHandler) {
this.touchOutsideHandler.remove();
this.touchOutsideHandler = null;
}
},
createTwoChains: function createTwoChains(event) {
var fn = function fn() {};
var events = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getListeners"])(this);
if (this.childOriginEvents[event] && events[event]) {
return this['fire' + event];
}
fn = this.childOriginEvents[event] || events[event] || fn;
return fn;
},
isClickToShow: function isClickToShow() {
var _$props = this.$props,
action = _$props.action,
showAction = _$props.showAction;
return action.indexOf('click') !== -1 || showAction.indexOf('click') !== -1;
},
isContextmenuToShow: function isContextmenuToShow() {
var _$props2 = this.$props,
action = _$props2.action,
showAction = _$props2.showAction;
return action.indexOf('contextmenu') !== -1 || showAction.indexOf('contextmenu') !== -1;
},
isClickToHide: function isClickToHide() {
var _$props3 = this.$props,
action = _$props3.action,
hideAction = _$props3.hideAction;
return action.indexOf('click') !== -1 || hideAction.indexOf('click') !== -1;
},
isMouseEnterToShow: function isMouseEnterToShow() {
var _$props4 = this.$props,
action = _$props4.action,
showAction = _$props4.showAction;
return action.indexOf('hover') !== -1 || showAction.indexOf('mouseenter') !== -1;
},
isMouseLeaveToHide: function isMouseLeaveToHide() {
var _$props5 = this.$props,
action = _$props5.action,
hideAction = _$props5.hideAction;
return action.indexOf('hover') !== -1 || hideAction.indexOf('mouseleave') !== -1;
},
isFocusToShow: function isFocusToShow() {
var _$props6 = this.$props,
action = _$props6.action,
showAction = _$props6.showAction;
return action.indexOf('focus') !== -1 || showAction.indexOf('focus') !== -1;
},
isBlurToHide: function isBlurToHide() {
var _$props7 = this.$props,
action = _$props7.action,
hideAction = _$props7.hideAction;
return action.indexOf('focus') !== -1 || hideAction.indexOf('blur') !== -1;
},
forcePopupAlign: function forcePopupAlign() {
if (this.$data.sPopupVisible && this._component && this._component.$refs.alignInstance) {
this._component.$refs.alignInstance.forceAlign();
}
},
fireEvents: function fireEvents(type, e) {
if (this.childOriginEvents[type]) {
this.childOriginEvents[type](e);
}
this.__emit(type, e);
},
close: function close() {
this.setPopupVisible(false);
}
},
render: function render() {
var _this6 = this;
var h = arguments[0];
var sPopupVisible = this.sPopupVisible;
var children = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["filterEmpty"])(this.$slots['default']);
var _$props8 = this.$props,
forceRender = _$props8.forceRender,
alignPoint = _$props8.alignPoint;
if (children.length > 1) {
Object(_util_warning__WEBPACK_IMPORTED_MODULE_8__["default"])(false, 'Trigger $slots.default.length > 1, just support only one default', true);
}
var child = children[0];
this.childOriginEvents = Object(_util_props_util__WEBPACK_IMPORTED_MODULE_5__["getDataEvents"])(child);
var newChildProps = {
props: {},
nativeOn: {},
key: 'trigger'
};
if (this.isContextmenuToShow()) {
newChildProps.nativeOn.contextmenu = this.onContextmenu;
} else {
newChildProps.nativeOn.contextmenu = this.createTwoChains('contextmenu');
}
if (this.isClickToHide() || this.isClickToShow()) {
newChildProps.nativeOn.click = this.onClick;
newChildProps.nativeOn.mousedown = this.onMousedown;
newChildProps.nativeOn.touchstart = this.onTouchstart;
} else {
newChildProps.nativeOn.click = this.createTwoChains('click');
newChildProps.nativeOn.mousedown = this.createTwoChains('mousedown');
newChildProps.nativeOn.touchstart = this.createTwoChains('onTouchstart');
}
if (this.isMouseEnterToShow()) {
newChildProps.nativeOn.mouseenter = this.onMouseenter;
if (alignPoint) {
newChildProps.nativeOn.mousemove = this.onMouseMove;
}
} else {
newChildProps.nativeOn.mouseenter = this.createTwoChains('mouseenter');
}
if (this.isMouseLeaveToHide()) {
newChildProps.nativeOn.mouseleave = this.onMouseleave;
} else {
newChildProps.nativeOn.mouseleave = this.createTwoChains('mouseleave');
}
if (this.isFocusToShow() || this.isBlurToHide()) {
newChildProps.nativeOn.focus = this.onFocus;
newChildProps.nativeOn.blur = this.onBlur;
} else {
newChildProps.nativeOn.focus = this.createTwoChains('focus');
newChildProps.nativeOn.blur = function (e) {
if (e && (!e.relatedTarget || !Object(_vc_util_Dom_contains__WEBPACK_IMPORTED_MODULE_4__["default"])(e.target, e.relatedTarget))) {
_this6.createTwoChains('blur')(e);
}
};
}
this.trigger = Object(_util_vnode__WEBPACK_IMPORTED_MODULE_12__["cloneElement"])(child, newChildProps);
return h(_util_ContainerRender__WEBPACK_IMPORTED_MODULE_13__["default"], {
attrs: {
parent: this,
visible: sPopupVisible,
autoMount: false,
forceRender: forceRender,
getComponent: this.getComponent,
getContainer: this.getContainer,
children: function children(_ref) {
var renderComponent = _ref.renderComponent;
_this6.renderComponent = renderComponent;
return _this6.trigger;
}
}
});
}
});
/***/ }),
/***/ "./components/vc-trigger/index.js":
/*!****************************************!*\
!*** ./components/vc-trigger/index.js ***!
\****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Trigger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Trigger */ "./components/vc-trigger/Trigger.jsx");
// based on rc-trigger 2.6.5
/* harmony default export */ __webpack_exports__["default"] = (_Trigger__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/vc-trigger/utils.js":
/*!****************************************!*\
!*** ./components/vc-trigger/utils.js ***!
\****************************************/
/*! exports provided: getAlignFromPlacement, getAlignPopupClassName, noop */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAlignFromPlacement", function() { return getAlignFromPlacement; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAlignPopupClassName", function() { return getAlignPopupClassName; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "noop", function() { return noop; });
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
function isPointsEq(a1, a2, isAlignPoint) {
if (isAlignPoint) {
return a1[0] === a2[0];
}
return a1[0] === a2[0] && a1[1] === a2[1];
}
function getAlignFromPlacement(builtinPlacements, placementStr, align) {
var baseAlign = builtinPlacements[placementStr] || {};
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, baseAlign, align);
}
function getAlignPopupClassName(builtinPlacements, prefixCls, align, isAlignPoint) {
var points = align.points;
for (var placement in builtinPlacements) {
if (builtinPlacements.hasOwnProperty(placement)) {
if (isPointsEq(builtinPlacements[placement].points, points, isAlignPoint)) {
return prefixCls + '-placement-' + placement;
}
}
}
return '';
}
function noop() {}
/***/ }),
/***/ "./components/vc-upload/index.js":
/*!***************************************!*\
!*** ./components/vc-upload/index.js ***!
\***************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _src__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./src */ "./components/vc-upload/src/index.js");
// rc-upload 2.9.4
/* harmony default export */ __webpack_exports__["default"] = (_src__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/vc-upload/src/AjaxUploader.jsx":
/*!***************************************************!*\
!*** ./components/vc-upload/src/AjaxUploader.jsx ***!
\***************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var lodash_partition__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/partition */ "./node_modules/lodash/partition.js");
/* harmony import */ var lodash_partition__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_partition__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _request__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./request */ "./components/vc-upload/src/request.js");
/* harmony import */ var _uid__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./uid */ "./components/vc-upload/src/uid.js");
/* harmony import */ var _attr_accept__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./attr-accept */ "./components/vc-upload/src/attr-accept.js");
/* harmony import */ var _traverseFileTree__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./traverseFileTree */ "./components/vc-upload/src/traverseFileTree.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
var upLoadPropTypes = {
componentTag: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
// style: PropTypes.object,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
name: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
// className: PropTypes.string,
multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
directory: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
accept: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
// children: PropTypes.any,
// onStart: PropTypes.func,
data: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func]),
action: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func]),
headers: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object,
beforeUpload: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
customRequest: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
// onProgress: PropTypes.func,
withCredentials: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
openFileDialogOnClick: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
transformFile: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func,
method: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string
};
var AjaxUploader = {
inheritAttrs: false,
name: 'ajaxUploader',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
props: upLoadPropTypes,
data: function data() {
this.reqs = {};
return {
uid: Object(_uid__WEBPACK_IMPORTED_MODULE_7__["default"])()
};
},
mounted: function mounted() {
this._isMounted = true;
},
beforeDestroy: function beforeDestroy() {
this._isMounted = false;
this.abort();
},
methods: {
onChange: function onChange(e) {
var files = e.target.files;
this.uploadFiles(files);
this.reset();
},
onClick: function onClick() {
var el = this.$refs.fileInputRef;
if (!el) {
return;
}
el.click();
},
onKeyDown: function onKeyDown(e) {
if (e.key === 'Enter') {
this.onClick();
}
},
onFileDrop: function onFileDrop(e) {
var _this = this;
var multiple = this.$props.multiple;
e.preventDefault();
if (e.type === 'dragover') {
return;
}
if (this.directory) {
Object(_traverseFileTree__WEBPACK_IMPORTED_MODULE_9__["default"])(e.dataTransfer.items, this.uploadFiles, function (_file) {
return Object(_attr_accept__WEBPACK_IMPORTED_MODULE_8__["default"])(_file, _this.accept);
});
} else {
var files = lodash_partition__WEBPACK_IMPORTED_MODULE_4___default()(Array.prototype.slice.call(e.dataTransfer.files), function (file) {
return Object(_attr_accept__WEBPACK_IMPORTED_MODULE_8__["default"])(file, _this.accept);
});
var successFiles = files[0];
var errorFiles = files[1];
if (multiple === false) {
successFiles = successFiles.slice(0, 1);
}
this.uploadFiles(successFiles);
if (errorFiles.length) {
this.$emit('reject', errorFiles);
}
}
},
uploadFiles: function uploadFiles(files) {
var _this2 = this;
var postFiles = Array.prototype.slice.call(files);
postFiles.map(function (file) {
file.uid = Object(_uid__WEBPACK_IMPORTED_MODULE_7__["default"])();
return file;
}).forEach(function (file) {
_this2.upload(file, postFiles);
});
},
upload: function upload(file, fileList) {
var _this3 = this;
if (!this.beforeUpload) {
// always async in case use react state to keep fileList
return setTimeout(function () {
return _this3.post(file);
}, 0);
}
var before = this.beforeUpload(file, fileList);
if (before && before.then) {
before.then(function (processedFile) {
var processedFileType = Object.prototype.toString.call(processedFile);
if (processedFileType === '[object File]' || processedFileType === '[object Blob]') {
return _this3.post(processedFile);
}
return _this3.post(file);
})['catch'](function (e) {
console && console.log(e); // eslint-disable-line
});
} else if (before !== false) {
setTimeout(function () {
return _this3.post(file);
}, 0);
}
},
post: function post(file) {
var _this4 = this;
if (!this._isMounted) {
return;
}
var props = this.$props;
var data = props.data;
var _props$transformFile = props.transformFile,
transformFile = _props$transformFile === undefined ? function (originFile) {
return originFile;
} : _props$transformFile;
new Promise(function (resolve) {
var action = _this4.action;
if (typeof action === 'function') {
return resolve(action(file));
}
resolve(action);
}).then(function (action) {
var uid = file.uid;
var request = _this4.customRequest || _request__WEBPACK_IMPORTED_MODULE_6__["default"];
var transform = Promise.resolve(transformFile(file))['catch'](function (e) {
console.error(e); // eslint-disable-line no-console
});
transform.then(function (transformedFile) {
if (typeof data === 'function') {
data = data(file);
}
var requestOption = {
action: action,
filename: _this4.name,
data: data,
file: transformedFile,
headers: _this4.headers,
withCredentials: _this4.withCredentials,
method: props.method || 'post',
onProgress: function onProgress(e) {
_this4.$emit('progress', e, file);
},
onSuccess: function onSuccess(ret, xhr) {
delete _this4.reqs[uid];
_this4.$emit('success', ret, file, xhr);
},
onError: function onError(err, ret) {
delete _this4.reqs[uid];
_this4.$emit('error', err, ret, file);
}
};
_this4.reqs[uid] = request(requestOption);
_this4.$emit('start', file);
});
});
},
reset: function reset() {
this.setState({
uid: Object(_uid__WEBPACK_IMPORTED_MODULE_7__["default"])()
});
},
abort: function abort(file) {
var reqs = this.reqs;
if (file) {
var uid = file;
if (file && file.uid) {
uid = file.uid;
}
if (reqs[uid] && reqs[uid].abort) {
reqs[uid].abort();
}
delete reqs[uid];
} else {
Object.keys(reqs).forEach(function (uid) {
if (reqs[uid] && reqs[uid].abort) {
reqs[uid].abort();
}
delete reqs[uid];
});
}
}
},
render: function render() {
var _classNames;
var h = arguments[0];
var $props = this.$props,
$attrs = this.$attrs;
var Tag = $props.componentTag,
prefixCls = $props.prefixCls,
disabled = $props.disabled,
multiple = $props.multiple,
accept = $props.accept,
directory = $props.directory,
openFileDialogOnClick = $props.openFileDialogOnClick;
var cls = classnames__WEBPACK_IMPORTED_MODULE_5___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, prefixCls + '-disabled', disabled), _classNames));
var events = disabled ? {} : {
click: openFileDialogOnClick ? this.onClick : function () {},
keydown: openFileDialogOnClick ? this.onKeyDown : function () {},
drop: this.onFileDrop,
dragover: this.onFileDrop
};
var tagProps = {
on: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, Object(_util_props_util__WEBPACK_IMPORTED_MODULE_10__["getListeners"])(this), events),
attrs: {
role: 'button',
tabIndex: disabled ? null : '0'
},
'class': cls
};
return h(
Tag,
tagProps,
[h('input', {
attrs: {
id: $attrs.id,
type: 'file',
accept: accept,
directory: directory ? 'directory' : null,
webkitdirectory: directory ? 'webkitdirectory' : null,
multiple: multiple
},
ref: 'fileInputRef',
on: {
'click': function click(e) {
return e.stopPropagation();
},
'change': this.onChange
},
// https://github.com/ant-design/ant-design/issues/19948
key: this.uid,
style: { display: 'none' } }), this.$slots['default']]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (AjaxUploader);
/***/ }),
/***/ "./components/vc-upload/src/IframeUploader.jsx":
/*!*****************************************************!*\
!*** ./components/vc-upload/src/IframeUploader.jsx ***!
\*****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/defineProperty */ "./node_modules/babel-runtime/helpers/defineProperty.js");
/* harmony import */ var babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var _uid__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./uid */ "./components/vc-upload/src/uid.js");
/* harmony import */ var _util_warning__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../_util/warning */ "./components/_util/warning.js");
var IFRAME_STYLE = {
position: 'absolute',
top: 0,
opacity: 0,
filter: 'alpha(opacity=0)',
left: 0,
zIndex: 9999
};
// diferent from AjaxUpload, can only upload on at one time, serial seriously
var IframeUploader = {
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
props: {
componentTag: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
// style: PropTypes.object,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
// className: PropTypes.string,
accept: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string,
// onStart: PropTypes.func,
multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].bool,
// children: PropTypes.any,
data: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func]),
action: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].func]),
name: _util_vue_types__WEBPACK_IMPORTED_MODULE_2__["default"].string
},
data: function data() {
this.file = {};
return {
uploading: false
};
},
methods: {
onLoad: function onLoad() {
if (!this.uploading) {
return;
}
var file = this.file;
var response = void 0;
try {
var doc = this.getIframeDocument();
var script = doc.getElementsByTagName('script')[0];
if (script && script.parentNode === doc.body) {
doc.body.removeChild(script);
}
response = doc.body.innerHTML;
this.$emit('success', response, file);
} catch (err) {
Object(_util_warning__WEBPACK_IMPORTED_MODULE_6__["default"])(false, 'cross domain error for Upload. Maybe server should return document.domain script. see Note from https://github.com/react-component/upload');
response = 'cross-domain';
this.$emit('error', err, null, file);
}
this.endUpload();
},
onChange: function onChange() {
var _this = this;
var target = this.getFormInputNode();
// ie8/9 don't support FileList Object
// http://stackoverflow.com/questions/12830058/ie8-input-type-file-get-files
var file = this.file = {
uid: Object(_uid__WEBPACK_IMPORTED_MODULE_5__["default"])(),
name: target.value && target.value.substring(target.value.lastIndexOf('\\') + 1, target.value.length)
};
this.startUpload();
var props = this.$props;
if (!props.beforeUpload) {
return this.post(file);
}
var before = props.beforeUpload(file);
if (before && before.then) {
before.then(function () {
_this.post(file);
}, function () {
_this.endUpload();
});
} else if (before !== false) {
this.post(file);
} else {
this.endUpload();
}
},
getIframeNode: function getIframeNode() {
return this.$refs.iframeRef;
},
getIframeDocument: function getIframeDocument() {
return this.getIframeNode().contentDocument;
},
getFormNode: function getFormNode() {
return this.getIframeDocument().getElementById('form');
},
getFormInputNode: function getFormInputNode() {
return this.getIframeDocument().getElementById('input');
},
getFormDataNode: function getFormDataNode() {
return this.getIframeDocument().getElementById('data');
},
getFileForMultiple: function getFileForMultiple(file) {
return this.multiple ? [file] : file;
},
getIframeHTML: function getIframeHTML(domain) {
var domainScript = '';
var domainInput = '';
if (domain) {
var script = 'script';
domainScript = '<' + script + '>document.domain="' + domain + '";</' + script + '>';
domainInput = '<input name="_documentDomain" value="' + domain + '" />';
}
return '\n <!DOCTYPE html>\n <html>\n <head>\n <meta http-equiv="X-UA-Compatible" content="IE=edge" />\n <style>\n body,html {padding:0;margin:0;border:0;overflow:hidden;}\n </style>\n ' + domainScript + '\n </head>\n <body>\n <form method="post"\n encType="multipart/form-data"\n action="" id="form"\n style="display:block;height:9999px;position:relative;overflow:hidden;">\n <input id="input" type="file"\n name="' + this.name + '"\n style="position:absolute;top:0;right:0;height:9999px;font-size:9999px;cursor:pointer;"/>\n ' + domainInput + '\n <span id="data"></span>\n </form>\n </body>\n </html>\n ';
},
initIframeSrc: function initIframeSrc() {
if (this.domain) {
this.getIframeNode().src = 'javascript:void((function(){\n var d = document;\n d.open();\n d.domain=\'' + this.domain + '\';\n d.write(\'\');\n d.close();\n })())';
}
},
initIframe: function initIframe() {
var iframeNode = this.getIframeNode();
var win = iframeNode.contentWindow;
var doc = void 0;
this.domain = this.domain || '';
this.initIframeSrc();
try {
doc = win.document;
} catch (e) {
this.domain = document.domain;
this.initIframeSrc();
win = iframeNode.contentWindow;
doc = win.document;
}
doc.open('text/html', 'replace');
doc.write(this.getIframeHTML(this.domain));
doc.close();
this.getFormInputNode().onchange = this.onChange;
},
endUpload: function endUpload() {
if (this.uploading) {
this.file = {};
// hack avoid batch
this.uploading = false;
this.setState({
uploading: false
});
this.initIframe();
}
},
startUpload: function startUpload() {
if (!this.uploading) {
this.uploading = true;
this.setState({
uploading: true
});
}
},
updateIframeWH: function updateIframeWH() {
var rootNode = this.$el;
var iframeNode = this.getIframeNode();
iframeNode.style.height = rootNode.offsetHeight + 'px';
iframeNode.style.width = rootNode.offsetWidth + 'px';
},
abort: function abort(file) {
if (file) {
var uid = file;
if (file && file.uid) {
uid = file.uid;
}
if (uid === this.file.uid) {
this.endUpload();
}
} else {
this.endUpload();
}
},
post: function post(file) {
var _this2 = this;
var formNode = this.getFormNode();
var dataSpan = this.getFormDataNode();
var data = this.$props.data;
if (typeof data === 'function') {
data = data(file);
}
var inputs = document.createDocumentFragment();
for (var key in data) {
if (data.hasOwnProperty(key)) {
var input = document.createElement('input');
input.setAttribute('name', key);
input.value = data[key];
inputs.appendChild(input);
}
}
dataSpan.appendChild(inputs);
new Promise(function (resolve) {
var action = _this2.action;
if (typeof action === 'function') {
return resolve(action(file));
}
resolve(action);
}).then(function (action) {
formNode.setAttribute('action', action);
formNode.submit();
dataSpan.innerHTML = '';
_this2.$emit('start', file);
});
}
},
mounted: function mounted() {
var _this3 = this;
this.$nextTick(function () {
_this3.updateIframeWH();
_this3.initIframe();
});
},
updated: function updated() {
var _this4 = this;
this.$nextTick(function () {
_this4.updateIframeWH();
});
},
render: function render() {
var _classNames;
var h = arguments[0];
var _$props = this.$props,
Tag = _$props.componentTag,
disabled = _$props.disabled,
prefixCls = _$props.prefixCls;
var iframeStyle = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({}, IFRAME_STYLE, {
display: this.uploading || disabled ? 'none' : ''
});
var cls = classnames__WEBPACK_IMPORTED_MODULE_4___default()((_classNames = {}, babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls, true), babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, prefixCls + '-disabled', disabled), _classNames));
return h(
Tag,
{
attrs: { className: cls },
style: { position: 'relative', zIndex: 0 } },
[h('iframe', { ref: 'iframeRef', on: {
'load': this.onLoad
},
style: iframeStyle }), this.$slots['default']]
);
}
};
/* harmony default export */ __webpack_exports__["default"] = (IframeUploader);
/***/ }),
/***/ "./components/vc-upload/src/Upload.jsx":
/*!*********************************************!*\
!*** ./components/vc-upload/src/Upload.jsx ***!
\*********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _util_vue_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../_util/vue-types */ "./components/_util/vue-types/index.js");
/* harmony import */ var _util_props_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../_util/props-util */ "./components/_util/props-util.js");
/* harmony import */ var _util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../_util/BaseMixin */ "./components/_util/BaseMixin.js");
/* harmony import */ var _AjaxUploader__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./AjaxUploader */ "./components/vc-upload/src/AjaxUploader.jsx");
/* harmony import */ var _IframeUploader__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./IframeUploader */ "./components/vc-upload/src/IframeUploader.jsx");
function empty() {}
var uploadProps = {
componentTag: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
prefixCls: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
action: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func]),
name: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
multipart: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
directory: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
// onError: PropTypes.func,
// onSuccess: PropTypes.func,
// onProgress: PropTypes.func,
// onStart: PropTypes.func,
data: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].oneOfType([_util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object, _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func]),
headers: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].object,
accept: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
multiple: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
disabled: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
beforeUpload: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
customRequest: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func,
// onReady: PropTypes.func,
method: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].string,
withCredentials: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
supportServerRender: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
openFileDialogOnClick: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].bool,
transformFile: _util_vue_types__WEBPACK_IMPORTED_MODULE_1__["default"].func
};
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'Upload',
mixins: [_util_BaseMixin__WEBPACK_IMPORTED_MODULE_3__["default"]],
inheritAttrs: false,
props: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["initDefaultProps"])(uploadProps, {
componentTag: 'span',
prefixCls: 'rc-upload',
data: {},
headers: {},
name: 'file',
multipart: false,
// onReady: empty,
// onStart: empty,
// onError: empty,
// onSuccess: empty,
supportServerRender: false,
multiple: false,
beforeUpload: empty,
withCredentials: false,
openFileDialogOnClick: true
}),
data: function data() {
return {
Component: null
};
},
mounted: function mounted() {
var _this = this;
this.$nextTick(function () {
if (_this.supportServerRender) {
_this.setState({
Component: _this.getComponent()
}, function () {
_this.$emit('ready');
});
}
});
},
methods: {
getComponent: function getComponent() {
return typeof File !== 'undefined' ? _AjaxUploader__WEBPACK_IMPORTED_MODULE_4__["default"] : _IframeUploader__WEBPACK_IMPORTED_MODULE_5__["default"];
},
abort: function abort(file) {
this.$refs.uploaderRef.abort(file);
}
},
render: function render() {
var h = arguments[0];
var componentProps = {
props: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, this.$props),
on: Object(_util_props_util__WEBPACK_IMPORTED_MODULE_2__["getListeners"])(this),
ref: 'uploaderRef',
attrs: this.$attrs
};
if (this.supportServerRender) {
var _ComponentUploader = this.Component;
if (_ComponentUploader) {
return h(
_ComponentUploader,
componentProps,
[this.$slots['default']]
);
}
return null;
}
var ComponentUploader = this.getComponent();
return h(
ComponentUploader,
componentProps,
[this.$slots['default']]
);
}
});
/***/ }),
/***/ "./components/vc-upload/src/attr-accept.js":
/*!*************************************************!*\
!*** ./components/vc-upload/src/attr-accept.js ***!
\*************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
function endsWith(str, suffix) {
return str.indexOf(suffix, str.length - suffix.length) !== -1;
}
/* harmony default export */ __webpack_exports__["default"] = (function (file, acceptedFiles) {
if (file && acceptedFiles) {
var acceptedFilesArray = Array.isArray(acceptedFiles) ? acceptedFiles : acceptedFiles.split(',');
var fileName = file.name || '';
var mimeType = file.type || '';
var baseMimeType = mimeType.replace(/\/.*$/, '');
return acceptedFilesArray.some(function (type) {
var validType = type.trim();
if (validType.charAt(0) === '.') {
return endsWith(fileName.toLowerCase(), validType.toLowerCase());
} else if (/\/\*$/.test(validType)) {
// This is something like a image/* mime type
return baseMimeType === validType.replace(/\/.*$/, '');
}
return mimeType === validType;
});
}
return true;
});
/***/ }),
/***/ "./components/vc-upload/src/index.js":
/*!*******************************************!*\
!*** ./components/vc-upload/src/index.js ***!
\*******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Upload__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Upload */ "./components/vc-upload/src/Upload.jsx");
// export this package's api
/* harmony default export */ __webpack_exports__["default"] = (_Upload__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./components/vc-upload/src/request.js":
/*!*********************************************!*\
!*** ./components/vc-upload/src/request.js ***!
\*********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return upload; });
function getError(option, xhr) {
var msg = 'cannot ' + option.method + ' ' + option.action + ' ' + xhr.status + '\'';
var err = new Error(msg);
err.status = xhr.status;
err.method = option.method;
err.url = option.action;
return err;
}
function getBody(xhr) {
var text = xhr.responseText || xhr.response;
if (!text) {
return text;
}
try {
return JSON.parse(text);
} catch (e) {
return text;
}
}
// option {
// onProgress: (event: { percent: number }): void,
// onError: (event: Error, body?: Object): void,
// onSuccess: (body: Object): void,
// data: Object,
// filename: String,
// file: File,
// withCredentials: Boolean,
// action: String,
// headers: Object,
// }
function upload(option) {
var xhr = new window.XMLHttpRequest();
if (option.onProgress && xhr.upload) {
xhr.upload.onprogress = function progress(e) {
if (e.total > 0) {
e.percent = e.loaded / e.total * 100;
}
option.onProgress(e);
};
}
var formData = new window.FormData();
if (option.data) {
Object.keys(option.data).forEach(function (key) {
var value = option.data[key];
// support key-value array data
if (Array.isArray(value)) {
value.forEach(function (item) {
// { list: [ 11, 22 ] }
// formData.append('list[]', 11);
formData.append(key + '[]', item);
});
return;
}
formData.append(key, option.data[key]);
});
}
formData.append(option.filename, option.file);
xhr.onerror = function error(e) {
option.onError(e);
};
xhr.onload = function onload() {
// allow success when 2xx status
// see https://github.com/react-component/upload/issues/34
if (xhr.status < 200 || xhr.status >= 300) {
return option.onError(getError(option, xhr), getBody(xhr));
}
option.onSuccess(getBody(xhr), xhr);
};
xhr.open(option.method, option.action, true);
// Has to be after `.open()`. See https://github.com/enyo/dropzone/issues/179
if (option.withCredentials && 'withCredentials' in xhr) {
xhr.withCredentials = true;
}
var headers = option.headers || {};
// when set headers['X-Requested-With'] = null , can close default XHR header
// see https://github.com/react-component/upload/issues/33
if (headers['X-Requested-With'] !== null) {
xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
}
for (var h in headers) {
if (headers.hasOwnProperty(h) && headers[h] !== null) {
xhr.setRequestHeader(h, headers[h]);
}
}
xhr.send(formData);
return {
abort: function abort() {
xhr.abort();
}
};
}
/***/ }),
/***/ "./components/vc-upload/src/traverseFileTree.js":
/*!******************************************************!*\
!*** ./components/vc-upload/src/traverseFileTree.js ***!
\******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
function loopFiles(item, callback) {
var dirReader = item.createReader();
var fileList = [];
function sequence() {
dirReader.readEntries(function (entries) {
var entryList = Array.prototype.slice.apply(entries);
fileList = fileList.concat(entryList);
// Check if all the file has been viewed
var isFinished = !entryList.length;
if (isFinished) {
callback(fileList);
} else {
sequence();
}
});
}
sequence();
}
var traverseFileTree = function traverseFileTree(files, callback, isAccepted) {
var _traverseFileTree = function _traverseFileTree(item, path) {
path = path || '';
if (item.isFile) {
item.file(function (file) {
if (isAccepted(file)) {
// https://github.com/ant-design/ant-design/issues/16426
if (item.fullPath && !file.webkitRelativePath) {
Object.defineProperties(file, {
webkitRelativePath: {
writable: true
}
});
file.webkitRelativePath = item.fullPath.replace(/^\//, '');
Object.defineProperties(file, {
webkitRelativePath: {
writable: false
}
});
}
callback([file]);
}
});
} else if (item.isDirectory) {
loopFiles(item, function (entries) {
entries.forEach(function (entryItem) {
_traverseFileTree(entryItem, '' + path + item.name + '/');
});
});
}
};
var _iteratorNormalCompletion = true;
var _didIteratorError = false;
var _iteratorError = undefined;
try {
for (var _iterator = files[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
var file = _step.value;
_traverseFileTree(file.webkitGetAsEntry());
}
} catch (err) {
_didIteratorError = true;
_iteratorError = err;
} finally {
try {
if (!_iteratorNormalCompletion && _iterator['return']) {
_iterator['return']();
}
} finally {
if (_didIteratorError) {
throw _iteratorError;
}
}
}
};
/* harmony default export */ __webpack_exports__["default"] = (traverseFileTree);
/***/ }),
/***/ "./components/vc-upload/src/uid.js":
/*!*****************************************!*\
!*** ./components/vc-upload/src/uid.js ***!
\*****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return uid; });
var now = +new Date();
var index = 0;
function uid() {
return "vc-upload-" + now + "-" + ++index;
}
/***/ }),
/***/ "./components/vc-util/Dom/addEventListener.js":
/*!****************************************************!*\
!*** ./components/vc-util/Dom/addEventListener.js ***!
\****************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return addEventListenerWrap; });
/* harmony import */ var add_dom_event_listener__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! add-dom-event-listener */ "./node_modules/add-dom-event-listener/lib/index.js");
/* harmony import */ var add_dom_event_listener__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(add_dom_event_listener__WEBPACK_IMPORTED_MODULE_0__);
function addEventListenerWrap(target, eventType, cb, option) {
return add_dom_event_listener__WEBPACK_IMPORTED_MODULE_0___default()(target, eventType, cb, option);
}
/***/ }),
/***/ "./components/vc-util/Dom/class.js":
/*!*****************************************!*\
!*** ./components/vc-util/Dom/class.js ***!
\*****************************************/
/*! exports provided: hasClass, addClass, removeClass */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasClass", function() { return hasClass; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addClass", function() { return addClass; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "removeClass", function() { return removeClass; });
function hasClass(node, className) {
if (node.classList) {
return node.classList.contains(className);
}
var originClass = node.className;
return (' ' + originClass + ' ').indexOf(' ' + className + ' ') > -1;
}
function addClass(node, className) {
if (node.classList) {
node.classList.add(className);
} else {
if (!hasClass(node, className)) {
node.className = node.className + ' ' + className;
}
}
}
function removeClass(node, className) {
if (node.classList) {
node.classList.remove(className);
} else {
if (hasClass(node, className)) {
var originClass = node.className;
node.className = (' ' + originClass + ' ').replace(' ' + className + ' ', ' ');
}
}
}
/***/ }),
/***/ "./components/vc-util/Dom/contains.js":
/*!********************************************!*\
!*** ./components/vc-util/Dom/contains.js ***!
\********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return contains; });
function contains(root, n) {
var node = n;
while (node) {
if (node === root) {
return true;
}
node = node.parentNode;
}
return false;
}
/***/ }),
/***/ "./components/vc-util/warning.js":
/*!***************************************!*\
!*** ./components/vc-util/warning.js ***!
\***************************************/
/*! exports provided: warning, note, resetWarned, call, warningOnce, noteOnce, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "warning", function() { return warning; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "note", function() { return note; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resetWarned", function() { return resetWarned; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "call", function() { return call; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "warningOnce", function() { return warningOnce; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "noteOnce", function() { return noteOnce; });
/* eslint-disable no-console */
var warned = {};
function warning(valid, message) {
// Support uglify
if ( true && !valid && console !== undefined) {
console.error('Warning: ' + message);
}
}
function note(valid, message) {
// Support uglify
if ( true && !valid && console !== undefined) {
console.warn('Note: ' + message);
}
}
function resetWarned() {
warned = {};
}
function call(method, valid, message) {
if (!valid && !warned[message]) {
method(false, message);
warned[message] = true;
}
}
function warningOnce(valid, message) {
call(warning, valid, message);
}
function noteOnce(valid, message) {
call(note, valid, message);
}
/* harmony default export */ __webpack_exports__["default"] = (warningOnce);
/* eslint-enable */
/***/ }),
/***/ "./components/version/index.js":
/*!*************************************!*\
!*** ./components/version/index.js ***!
\*************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _package_json__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../package.json */ "./package.json");
var _package_json__WEBPACK_IMPORTED_MODULE_0___namespace = /*#__PURE__*/__webpack_require__.t(/*! ../../package.json */ "./package.json", 1);
/* harmony default export */ __webpack_exports__["default"] = (_package_json__WEBPACK_IMPORTED_MODULE_0__.version);
/***/ }),
/***/ "./components/version/style/index.js":
/*!*******************************************!*\
!*** ./components/version/style/index.js ***!
\*******************************************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style/index.less */ "./components/style/index.less");
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
// empty file prevent babel-plugin-import error
/***/ }),
/***/ "./index.js":
/*!******************!*\
!*** ./index.js ***!
\******************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
/* eslint no-console:0 */
function camelCase(name) {
return name.charAt(0).toUpperCase() + name.slice(1).replace(/-(\w)/g, function (m, n) {
return n.toUpperCase();
});
}
// Just import style for https://github.com/ant-design/ant-design/issues/3745
var req = __webpack_require__("./components sync recursive ^\\.\\/[^_][\\w-]+\\/style\\/index\\.js?$");
req.keys().forEach(function (mod) {
var v = req(mod);
if (v && v['default']) {
v = v['default'];
}
var match = mod.match(/^\.\/([^_][\w-]+)\/index\.js?$/);
if (match && match[1]) {
if (match[1] === 'message' || match[1] === 'notification') {
// message & notification should not be capitalized
exports[match[1]] = v;
} else {
exports[camelCase(match[1])] = v;
}
}
});
module.exports = __webpack_require__(/*! ./components */ "./components/index.js");
/***/ }),
/***/ "./node_modules/@ant-design/colors/lib/generate.js":
/*!*********************************************************!*\
!*** ./node_modules/@ant-design/colors/lib/generate.js ***!
\*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var tinycolor2_1 = __importDefault(__webpack_require__(/*! tinycolor2 */ "./node_modules/tinycolor2/tinycolor.js"));
var hueStep = 2; // 色相阶梯
var saturationStep = 16; // 饱和度阶梯,浅色部分
var saturationStep2 = 5; // 饱和度阶梯,深色部分
var brightnessStep1 = 5; // 亮度阶梯,浅色部分
var brightnessStep2 = 15; // 亮度阶梯,深色部分
var lightColorCount = 5; // 浅色数量,主色上
var darkColorCount = 4; // 深色数量,主色下
function getHue(hsv, i, light) {
var hue;
// 根据色相不同,色相转向不同
if (Math.round(hsv.h) >= 60 && Math.round(hsv.h) <= 240) {
hue = light ? Math.round(hsv.h) - hueStep * i : Math.round(hsv.h) + hueStep * i;
}
else {
hue = light ? Math.round(hsv.h) + hueStep * i : Math.round(hsv.h) - hueStep * i;
}
if (hue < 0) {
hue += 360;
}
else if (hue >= 360) {
hue -= 360;
}
return hue;
}
function getSaturation(hsv, i, light) {
// grey color don't change saturation
if (hsv.h === 0 && hsv.s === 0) {
return hsv.s;
}
var saturation;
if (light) {
saturation = Math.round(hsv.s * 100) - saturationStep * i;
}
else if (i === darkColorCount) {
saturation = Math.round(hsv.s * 100) + saturationStep;
}
else {
saturation = Math.round(hsv.s * 100) + saturationStep2 * i;
}
// 边界值修正
if (saturation > 100) {
saturation = 100;
}
// 第一格的 s 限制在 6-10 之间
if (light && i === lightColorCount && saturation > 10) {
saturation = 10;
}
if (saturation < 6) {
saturation = 6;
}
return saturation;
}
function getValue(hsv, i, light) {
if (light) {
return Math.round(hsv.v * 100) + brightnessStep1 * i;
}
return Math.round(hsv.v * 100) - brightnessStep2 * i;
}
function generate(color) {
var patterns = [];
var pColor = tinycolor2_1.default(color);
for (var i = lightColorCount; i > 0; i -= 1) {
var hsv = pColor.toHsv();
var colorString = tinycolor2_1.default({
h: getHue(hsv, i, true),
s: getSaturation(hsv, i, true),
v: getValue(hsv, i, true),
}).toHexString();
patterns.push(colorString);
}
patterns.push(pColor.toHexString());
for (var i = 1; i <= darkColorCount; i += 1) {
var hsv = pColor.toHsv();
var colorString = tinycolor2_1.default({
h: getHue(hsv, i),
s: getSaturation(hsv, i),
v: getValue(hsv, i),
}).toHexString();
patterns.push(colorString);
}
return patterns;
}
exports.default = generate;
/***/ }),
/***/ "./node_modules/@ant-design/colors/lib/index.js":
/*!******************************************************!*\
!*** ./node_modules/@ant-design/colors/lib/index.js ***!
\******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var generate_1 = __importDefault(__webpack_require__(/*! ./generate */ "./node_modules/@ant-design/colors/lib/generate.js"));
exports.generate = generate_1.default;
var presetPrimaryColors = {
red: '#F5222D',
volcano: '#FA541C',
orange: '#FA8C16',
gold: '#FAAD14',
yellow: '#FADB14',
lime: '#A0D911',
green: '#52C41A',
cyan: '#13C2C2',
blue: '#1890FF',
geekblue: '#2F54EB',
purple: '#722ED1',
magenta: '#EB2F96',
grey: '#666666',
};
exports.presetPrimaryColors = presetPrimaryColors;
var presetPalettes = {};
exports.presetPalettes = presetPalettes;
Object.keys(presetPrimaryColors).forEach(function (key) {
presetPalettes[key] = generate_1.default(presetPrimaryColors[key]);
presetPalettes[key].primary = presetPalettes[key][5];
});
var red = presetPalettes.red;
exports.red = red;
var volcano = presetPalettes.volcano;
exports.volcano = volcano;
var gold = presetPalettes.gold;
exports.gold = gold;
var orange = presetPalettes.orange;
exports.orange = orange;
var yellow = presetPalettes.yellow;
exports.yellow = yellow;
var lime = presetPalettes.lime;
exports.lime = lime;
var green = presetPalettes.green;
exports.green = green;
var cyan = presetPalettes.cyan;
exports.cyan = cyan;
var blue = presetPalettes.blue;
exports.blue = blue;
var geekblue = presetPalettes.geekblue;
exports.geekblue = geekblue;
var purple = presetPalettes.purple;
exports.purple = purple;
var magenta = presetPalettes.magenta;
exports.magenta = magenta;
var grey = presetPalettes.grey;
exports.grey = grey;
/***/ }),
/***/ "./node_modules/@ant-design/icons-vue/es/components/Icon.js":
/*!******************************************************************!*\
!*** ./node_modules/@ant-design/icons-vue/es/components/Icon.js ***!
\******************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils */ "./node_modules/@ant-design/icons-vue/es/utils.js");
var twoToneColorPalette = {
primaryColor: '#333',
secondaryColor: '#E6E6E6'
};
var Icon = {
name: 'AntdIcon',
props: ['type', 'primaryColor', 'secondaryColor'],
displayName: 'IconVue',
definitions: new _utils__WEBPACK_IMPORTED_MODULE_1__["MiniMap"](),
data: function data() {
return {
twoToneColorPalette: twoToneColorPalette
};
},
add: function add() {
for (var _len = arguments.length, icons = Array(_len), _key = 0; _key < _len; _key++) {
icons[_key] = arguments[_key];
}
icons.forEach(function (icon) {
Icon.definitions.set(Object(_utils__WEBPACK_IMPORTED_MODULE_1__["withSuffix"])(icon.name, icon.theme), icon);
});
},
clear: function clear() {
Icon.definitions.clear();
},
get: function get(key) {
var colors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : twoToneColorPalette;
if (key) {
var target = Icon.definitions.get(key);
if (target && typeof target.icon === 'function') {
target = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, target, {
icon: target.icon(colors.primaryColor, colors.secondaryColor)
});
}
return target;
}
},
setTwoToneColors: function setTwoToneColors(_ref) {
var primaryColor = _ref.primaryColor,
secondaryColor = _ref.secondaryColor;
twoToneColorPalette.primaryColor = primaryColor;
twoToneColorPalette.secondaryColor = secondaryColor || Object(_utils__WEBPACK_IMPORTED_MODULE_1__["getSecondaryColor"])(primaryColor);
},
getTwoToneColors: function getTwoToneColors() {
return babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, twoToneColorPalette);
},
render: function render(h) {
var _$props = this.$props,
type = _$props.type,
primaryColor = _$props.primaryColor,
secondaryColor = _$props.secondaryColor;
var target = void 0;
var colors = twoToneColorPalette;
if (primaryColor) {
colors = {
primaryColor: primaryColor,
secondaryColor: secondaryColor || Object(_utils__WEBPACK_IMPORTED_MODULE_1__["getSecondaryColor"])(primaryColor)
};
}
if (Object(_utils__WEBPACK_IMPORTED_MODULE_1__["isIconDefinition"])(type)) {
target = type;
} else if (typeof type === 'string') {
target = Icon.get(type, colors);
if (!target) {
// log(`Could not find icon: ${type}`);
return null;
}
}
if (!target) {
Object(_utils__WEBPACK_IMPORTED_MODULE_1__["log"])('type should be string or icon definiton, but got ' + type);
return null;
}
if (target && typeof target.icon === 'function') {
target = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, target, {
icon: target.icon(colors.primaryColor, colors.secondaryColor)
});
}
return Object(_utils__WEBPACK_IMPORTED_MODULE_1__["generate"])(h, target.icon, 'svg-' + target.name, {
attrs: {
'data-icon': target.name,
width: '1em',
height: '1em',
fill: 'currentColor',
'aria-hidden': 'true'
},
on: this.$listeners
});
}
};
/* istanbul ignore next */
Icon.install = function (Vue) {
Vue.component(Icon.name, Icon);
};
/* harmony default export */ __webpack_exports__["default"] = (Icon);
/***/ }),
/***/ "./node_modules/@ant-design/icons-vue/es/index.js":
/*!********************************************************!*\
!*** ./node_modules/@ant-design/icons-vue/es/index.js ***!
\********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _components_Icon__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./components/Icon */ "./node_modules/@ant-design/icons-vue/es/components/Icon.js");
/* harmony default export */ __webpack_exports__["default"] = (_components_Icon__WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./node_modules/@ant-design/icons-vue/es/utils.js":
/*!********************************************************!*\
!*** ./node_modules/@ant-design/icons-vue/es/utils.js ***!
\********************************************************/
/*! exports provided: log, isIconDefinition, normalizeAttrs, MiniMap, generate, getSecondaryColor, withSuffix */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* WEBPACK VAR INJECTION */(function(process) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "log", function() { return log; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isIconDefinition", function() { return isIconDefinition; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "normalizeAttrs", function() { return normalizeAttrs; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MiniMap", function() { return MiniMap; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "generate", function() { return generate; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSecondaryColor", function() { return getSecondaryColor; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withSuffix", function() { return withSuffix; });
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babel-runtime/helpers/classCallCheck */ "./node_modules/babel-runtime/helpers/classCallCheck.js");
/* harmony import */ var babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babel-runtime/helpers/createClass */ "./node_modules/babel-runtime/helpers/createClass.js");
/* harmony import */ var babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _ant_design_colors__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ant-design/colors */ "./node_modules/@ant-design/colors/lib/index.js");
/* harmony import */ var _ant_design_colors__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_ant_design_colors__WEBPACK_IMPORTED_MODULE_3__);
function log(message) {
if (!(process && process.env && "development" === 'production')) {
console.error('[@ant-design/icons-vue]: ' + message + '.');
}
}
function isIconDefinition(target) {
return typeof target === 'object' && typeof target.name === 'string' && typeof target.theme === 'string' && (typeof target.icon === 'object' || typeof target.icon === 'function');
}
function normalizeAttrs() {
var attrs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
return Object.keys(attrs).reduce(function (acc, key) {
var val = attrs[key];
switch (key) {
case 'class':
acc.className = val;
delete acc['class'];
break;
default:
acc[key] = val;
}
return acc;
}, {});
}
var MiniMap = function () {
function MiniMap() {
babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this, MiniMap);
this.collection = {};
}
babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(MiniMap, [{
key: 'clear',
value: function clear() {
this.collection = {};
}
}, {
key: 'delete',
value: function _delete(key) {
return delete this.collection[key];
}
}, {
key: 'get',
value: function get(key) {
return this.collection[key];
}
}, {
key: 'has',
value: function has(key) {
return Boolean(this.collection[key]);
}
}, {
key: 'set',
value: function set(key, value) {
this.collection[key] = value;
return this;
}
}, {
key: 'size',
get: function get() {
return Object.keys(this.collection).length;
}
}]);
return MiniMap;
}();
function generate(h, node, key, rootProps) {
if (!rootProps) {
return h(node.tag, { key: key, attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, normalizeAttrs(node.attrs)) }, (node.children || []).map(function (child, index) {
return generate(h, child, key + '-' + node.tag + '-' + index);
}));
}
return h(node.tag, babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
key: key
}, rootProps, {
attrs: babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, normalizeAttrs(node.attrs), rootProps.attrs)
}), (node.children || []).map(function (child, index) {
return generate(h, child, key + '-' + node.tag + '-' + index);
}));
}
function getSecondaryColor(primaryColor) {
// choose the second color
return Object(_ant_design_colors__WEBPACK_IMPORTED_MODULE_3__["generate"])(primaryColor)[0];
}
function withSuffix(name, theme) {
switch (theme) {
case 'fill':
return name + '-fill';
case 'outline':
return name + '-o';
case 'twotone':
return name + '-twotone';
default:
throw new TypeError('Unknown theme type: ' + theme + ', name: ' + name);
}
}
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../process/browser.js */ "./node_modules/process/browser.js")))
/***/ }),
/***/ "./node_modules/@ant-design/icons/lib/dist.js":
/*!****************************************************!*\
!*** ./node_modules/@ant-design/icons/lib/dist.js ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var normalViewBox = '0 0 1024 1024';
var newViewBox = '64 64 896 896';
var fill = 'fill';
var outline = 'outline';
var twotone = 'twotone';
function getNode(viewBox) {
var paths = [];
for (var _i = 1; _i < arguments.length; _i++) {
paths[_i - 1] = arguments[_i];
}
return {
tag: 'svg',
attrs: { viewBox: viewBox, focusable: false },
children: paths.map(function (path) {
if (Array.isArray(path)) {
return {
tag: 'path',
attrs: {
fill: path[0],
d: path[1]
}
};
}
return {
tag: 'path',
attrs: {
d: path
}
};
})
};
}
function getIcon(name, theme, icon) {
return {
name: name,
theme: theme,
icon: icon
};
}
exports.AccountBookFill = getIcon('account-book', fill, getNode(newViewBox, 'M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zM648.3 426.8l-87.7 161.1h45.7c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4v29.7h63.4c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4V752c0 5.5-4.5 10-10 10h-41.3c-5.5 0-10-4.5-10-10v-51.8h-63.1c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h63.1v-29.7h-63.1c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h45.2l-88-161.1c-2.6-4.8-.9-10.9 4-13.6 1.5-.8 3.1-1.2 4.8-1.2h46c3.8 0 7.2 2.1 8.9 5.5l72.9 144.3 73.2-144.3a10 10 0 0 1 8.9-5.5h45c5.5 0 10 4.5 10 10 .1 1.7-.3 3.3-1.1 4.8z'));
exports.AlertFill = getIcon('alert', fill, getNode(newViewBox, 'M512 244c176.18 0 319 142.82 319 319v233a32 32 0 0 1-32 32H225a32 32 0 0 1-32-32V563c0-176.18 142.82-319 319-319zM484 68h56a8 8 0 0 1 8 8v96a8 8 0 0 1-8 8h-56a8 8 0 0 1-8-8V76a8 8 0 0 1 8-8zM177.25 191.66a8 8 0 0 1 11.32 0l67.88 67.88a8 8 0 0 1 0 11.31l-39.6 39.6a8 8 0 0 1-11.31 0l-67.88-67.88a8 8 0 0 1 0-11.31l39.6-39.6zm669.6 0l39.6 39.6a8 8 0 0 1 0 11.3l-67.88 67.9a8 8 0 0 1-11.32 0l-39.6-39.6a8 8 0 0 1 0-11.32l67.89-67.88a8 8 0 0 1 11.31 0zM192 892h640a32 32 0 0 1 32 32v24a8 8 0 0 1-8 8H168a8 8 0 0 1-8-8v-24a32 32 0 0 1 32-32zm148-317v253h64V575h-64z'));
exports.AlipaySquareFill = getIcon('alipay-square', fill, getNode(newViewBox, 'M308.6 545.7c-19.8 2-57.1 10.7-77.4 28.6-61 53-24.5 150 99 150 71.8 0 143.5-45.7 199.8-119-80.2-38.9-148.1-66.8-221.4-59.6zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm29.4 663.2S703 689.4 598.7 639.5C528.8 725.2 438.6 777.3 345 777.3c-158.4 0-212.1-138.1-137.2-229 16.3-19.8 44.2-38.7 87.3-49.4 67.5-16.5 175 10.3 275.7 43.4 18.1-33.3 33.4-69.9 44.7-108.9H305.1V402h160v-56.2H271.3v-31.3h193.8v-80.1s0-13.5 13.7-13.5H557v93.6h191.7v31.3H557.1V402h156.4c-15 61.1-37.7 117.4-66.2 166.8 47.5 17.1 90.1 33.3 121.8 43.9 114.3 38.2 140.2 40.2 140.2 40.2v122.3z'));
exports.AliwangwangFill = getIcon('aliwangwang', fill, getNode(newViewBox, 'M868.2 377.4c-18.9-45.1-46.3-85.6-81.2-120.6a377.26 377.26 0 0 0-120.5-81.2A375.65 375.65 0 0 0 519 145.8c-41.9 0-82.9 6.7-121.9 20C306 123.3 200.8 120 170.6 120c-2.2 0-7.4 0-9.4.2-11.9.4-22.8 6.5-29.2 16.4-6.5 9.9-7.7 22.4-3.4 33.5l64.3 161.6a378.59 378.59 0 0 0-52.8 193.2c0 51.4 10 101 29.8 147.6 18.9 45 46.2 85.6 81.2 120.5 34.7 34.8 75.4 62.1 120.5 81.2C418.3 894 467.9 904 519 904c51.3 0 100.9-10 147.7-29.8 44.9-18.9 85.5-46.3 120.4-81.2 34.7-34.8 62.1-75.4 81.2-120.6a376.5 376.5 0 0 0 29.8-147.6c-.2-51.2-10.1-100.8-29.9-147.4zm-325.2 79c0 20.4-16.6 37.1-37.1 37.1-20.4 0-37.1-16.7-37.1-37.1v-55.1c0-20.4 16.6-37.1 37.1-37.1 20.4 0 37.1 16.6 37.1 37.1v55.1zm175.2 0c0 20.4-16.6 37.1-37.1 37.1S644 476.8 644 456.4v-55.1c0-20.4 16.7-37.1 37.1-37.1 20.4 0 37.1 16.6 37.1 37.1v55.1z'));
exports.AlipayCircleFill = getIcon('alipay-circle', fill, getNode(newViewBox, 'M308.6 545.7c-19.8 2-57.1 10.7-77.4 28.6-61 53-24.5 150 99 150 71.8 0 143.5-45.7 199.8-119-80.2-38.9-148.1-66.8-221.4-59.6zm460.5 67c100.1 33.4 154.7 43 166.7 44.8A445.9 445.9 0 0 0 960 512c0-247.4-200.6-448-448-448S64 264.6 64 512s200.6 448 448 448c155.9 0 293.2-79.7 373.5-200.5-75.6-29.8-213.6-85-286.8-120.1-69.9 85.7-160.1 137.8-253.7 137.8-158.4 0-212.1-138.1-137.2-229 16.3-19.8 44.2-38.7 87.3-49.4 67.5-16.5 175 10.3 275.7 43.4 18.1-33.3 33.4-69.9 44.7-108.9H305.1V402h160v-56.2H271.3v-31.3h193.8v-80.1s0-13.5 13.7-13.5H557v93.6h191.7v31.3H557.1V402h156.4c-15 61.1-37.7 117.4-66.2 166.8 47.5 17.1 90.1 33.3 121.8 43.9z'));
exports.AmazonCircleFill = getIcon('amazon-circle', fill, getNode(newViewBox, 'M485 467.5c-11.6 4.9-20.9 12.2-27.8 22-6.9 9.8-10.4 21.6-10.4 35.5 0 17.8 7.5 31.5 22.4 41.2 14.1 9.1 28.9 11.4 44.4 6.8 17.9-5.2 30-17.9 36.4-38.1 3-9.3 4.5-19.7 4.5-31.3v-50.2c-12.6.4-24.4 1.6-35.5 3.7-11.1 2.1-22.4 5.6-34 10.4zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm35.8 262.7c-7.2-10.9-20.1-16.4-38.7-16.4-1.3 0-3 .1-5.3.3-2.2.2-6.6 1.5-12.9 3.7a79.4 79.4 0 0 0-17.9 9.1c-5.5 3.8-11.5 10-18 18.4-6.4 8.5-11.5 18.4-15.3 29.8l-94-8.4c0-12.4 2.4-24.7 7-36.9 4.7-12.2 11.8-23.9 21.4-35 9.6-11.2 21.1-21 34.5-29.4 13.4-8.5 29.6-15.2 48.4-20.3 18.9-5.1 39.1-7.6 60.9-7.6 21.3 0 40.6 2.6 57.8 7.7 17.2 5.2 31.1 11.5 41.4 19.1a117 117 0 0 1 25.9 25.7c6.9 9.6 11.7 18.5 14.4 26.7 2.7 8.2 4 15.7 4 22.8v182.5c0 6.4 1.4 13 4.3 19.8 2.9 6.8 6.3 12.8 10.2 18 3.9 5.2 7.9 9.9 12 14.3 4.1 4.3 7.6 7.7 10.6 9.9l4.1 3.4-72.5 69.4c-8.5-7.7-16.9-15.4-25.2-23.4-8.3-8-14.5-14-18.5-18.1l-6.1-6.2c-2.4-2.3-5-5.7-8-10.2-8.1 12.2-18.5 22.8-31.1 31.8-12.7 9-26.3 15.6-40.7 19.7-14.5 4.1-29.4 6.5-44.7 7.1-15.3.6-30-1.5-43.9-6.5-13.9-5-26.5-11.7-37.6-20.3-11.1-8.6-19.9-20.2-26.5-35-6.6-14.8-9.9-31.5-9.9-50.4 0-17.4 3-33.3 8.9-47.7 6-14.5 13.6-26.5 23-36.1 9.4-9.6 20.7-18.2 34-25.7s26.4-13.4 39.2-17.7c12.8-4.2 26.6-7.8 41.5-10.7 14.9-2.9 27.6-4.8 38.2-5.7 10.6-.9 21.2-1.6 31.8-2v-39.4c0-13.5-2.3-23.5-6.7-30.1zm180.5 379.6c-2.8 3.3-7.5 7.8-14.1 13.5s-16.8 12.7-30.5 21.1c-13.7 8.4-28.8 16-45 22.9-16.3 6.9-36.3 12.9-60.1 18-23.7 5.1-48.2 7.6-73.3 7.6-25.4 0-50.7-3.2-76.1-9.6-25.4-6.4-47.6-14.3-66.8-23.7-19.1-9.4-37.6-20.2-55.1-32.2-17.6-12.1-31.7-22.9-42.4-32.5-10.6-9.6-19.6-18.7-26.8-27.1-1.7-1.9-2.8-3.6-3.2-5.1-.4-1.5-.3-2.8.3-3.7.6-.9 1.5-1.6 2.6-2.2a7.42 7.42 0 0 1 7.4.8c40.9 24.2 72.9 41.3 95.9 51.4 82.9 36.4 168 45.7 255.3 27.9 40.5-8.3 82.1-22.2 124.9-41.8 3.2-1.2 6-1.5 8.3-.9 2.3.6 3.5 2.4 3.5 5.4 0 2.8-1.6 6.3-4.8 10.2zm59.9-29c-1.8 11.1-4.9 21.6-9.1 31.8-7.2 17.1-16.3 30-27.1 38.4-3.6 2.9-6.4 3.8-8.3 2.8-1.9-1-1.9-3.5 0-7.4 4.5-9.3 9.2-21.8 14.2-37.7 5-15.8 5.7-26 2.1-30.5-1.1-1.5-2.7-2.6-5-3.6-2.2-.9-5.1-1.5-8.6-1.9s-6.7-.6-9.4-.8c-2.8-.2-6.5-.2-11.2 0-4.7.2-8 .4-10.1.6a874.4 874.4 0 0 1-17.1 1.5c-1.3.2-2.7.4-4.1.5-1.5.1-2.7.2-3.5.3l-2.7.3c-1 .1-1.7.2-2.2.2h-3.2l-1-.2-.6-.5-.5-.9c-1.3-3.3 3.7-7.4 15-12.4s22.3-8.1 32.9-9.3c9.8-1.5 21.3-1.5 34.5-.3s21.3 3.7 24.3 7.4c2.3 3.5 2.5 10.7.7 21.7z'));
exports.AndroidFill = getIcon('android', fill, getNode(newViewBox, 'M270.1 741.7c0 23.4 19.1 42.5 42.6 42.5h48.7v120.4c0 30.5 24.5 55.4 54.6 55.4 30.2 0 54.6-24.8 54.6-55.4V784.1h85v120.4c0 30.5 24.5 55.4 54.6 55.4 30.2 0 54.6-24.8 54.6-55.4V784.1h48.7c23.5 0 42.6-19.1 42.6-42.5V346.4h-486v395.3zm357.1-600.1l44.9-65c2.6-3.8 2-8.9-1.5-11.4-3.5-2.4-8.5-1.2-11.1 2.6l-46.6 67.6c-30.7-12.1-64.9-18.8-100.8-18.8-35.9 0-70.1 6.7-100.8 18.8l-46.6-67.5c-2.6-3.8-7.6-5.1-11.1-2.6-3.5 2.4-4.1 7.4-1.5 11.4l44.9 65c-71.4 33.2-121.4 96.1-127.8 169.6h486c-6.6-73.6-56.7-136.5-128-169.7zM409.5 244.1a26.9 26.9 0 1 1 26.9-26.9 26.97 26.97 0 0 1-26.9 26.9zm208.4 0a26.9 26.9 0 1 1 26.9-26.9 26.97 26.97 0 0 1-26.9 26.9zm223.4 100.7c-30.2 0-54.6 24.8-54.6 55.4v216.4c0 30.5 24.5 55.4 54.6 55.4 30.2 0 54.6-24.8 54.6-55.4V400.1c.1-30.6-24.3-55.3-54.6-55.3zm-658.6 0c-30.2 0-54.6 24.8-54.6 55.4v216.4c0 30.5 24.5 55.4 54.6 55.4 30.2 0 54.6-24.8 54.6-55.4V400.1c0-30.6-24.5-55.3-54.6-55.3z'));
exports.AmazonSquareFill = getIcon('amazon-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM547.8 326.7c-7.2-10.9-20.1-16.4-38.7-16.4-1.3 0-3 .1-5.3.3-2.2.2-6.6 1.5-12.9 3.7a79.4 79.4 0 0 0-17.9 9.1c-5.5 3.8-11.5 10-18 18.4-6.4 8.5-11.5 18.4-15.3 29.8l-94-8.4c0-12.4 2.4-24.7 7-36.9s11.8-23.9 21.4-35c9.6-11.2 21.1-21 34.5-29.4 13.4-8.5 29.6-15.2 48.4-20.3 18.9-5.1 39.1-7.6 60.9-7.6 21.3 0 40.6 2.6 57.8 7.7 17.2 5.2 31.1 11.5 41.4 19.1a117 117 0 0 1 25.9 25.7c6.9 9.6 11.7 18.5 14.4 26.7 2.7 8.2 4 15.7 4 22.8v182.5c0 6.4 1.4 13 4.3 19.8 2.9 6.8 6.3 12.8 10.2 18 3.9 5.2 7.9 9.9 12 14.3 4.1 4.3 7.6 7.7 10.6 9.9l4.1 3.4-72.5 69.4c-8.5-7.7-16.9-15.4-25.2-23.4-8.3-8-14.5-14-18.5-18.1l-6.1-6.2c-2.4-2.3-5-5.7-8-10.2-8.1 12.2-18.5 22.8-31.1 31.8-12.7 9-26.3 15.6-40.7 19.7-14.5 4.1-29.4 6.5-44.7 7.1-15.3.6-30-1.5-43.9-6.5-13.9-5-26.5-11.7-37.6-20.3-11.1-8.6-19.9-20.2-26.5-35-6.6-14.8-9.9-31.5-9.9-50.4 0-17.4 3-33.3 8.9-47.7 6-14.5 13.6-26.5 23-36.1 9.4-9.6 20.7-18.2 34-25.7s26.4-13.4 39.2-17.7c12.8-4.2 26.6-7.8 41.5-10.7 14.9-2.9 27.6-4.8 38.2-5.7 10.6-.9 21.2-1.6 31.8-2v-39.4c0-13.5-2.3-23.5-6.7-30.1zm180.5 379.6c-2.8 3.3-7.5 7.8-14.1 13.5s-16.8 12.7-30.5 21.1c-13.7 8.4-28.8 16-45 22.9-16.3 6.9-36.3 12.9-60.1 18-23.7 5.1-48.2 7.6-73.3 7.6-25.4 0-50.7-3.2-76.1-9.6-25.4-6.4-47.6-14.3-66.8-23.7-19.1-9.4-37.6-20.2-55.1-32.2-17.6-12.1-31.7-22.9-42.4-32.5-10.6-9.6-19.6-18.7-26.8-27.1-1.7-1.9-2.8-3.6-3.2-5.1-.4-1.5-.3-2.8.3-3.7.6-.9 1.5-1.6 2.6-2.2a7.42 7.42 0 0 1 7.4.8c40.9 24.2 72.9 41.3 95.9 51.4 82.9 36.4 168 45.7 255.3 27.9 40.5-8.3 82.1-22.2 124.9-41.8 3.2-1.2 6-1.5 8.3-.9 2.3.6 3.5 2.4 3.5 5.4 0 2.8-1.6 6.3-4.8 10.2zm59.9-29c-1.8 11.1-4.9 21.6-9.1 31.8-7.2 17.1-16.3 30-27.1 38.4-3.6 2.9-6.4 3.8-8.3 2.8-1.9-1-1.9-3.5 0-7.4 4.5-9.3 9.2-21.8 14.2-37.7 5-15.8 5.7-26 2.1-30.5-1.1-1.5-2.7-2.6-5-3.6-2.2-.9-5.1-1.5-8.6-1.9s-6.7-.6-9.4-.8c-2.8-.2-6.5-.2-11.2 0-4.7.2-8 .4-10.1.6a874.4 874.4 0 0 1-17.1 1.5c-1.3.2-2.7.4-4.1.5-1.5.1-2.7.2-3.5.3l-2.7.3c-1 .1-1.7.2-2.2.2h-3.2l-1-.2-.6-.5-.5-.9c-1.3-3.3 3.7-7.4 15-12.4s22.3-8.1 32.9-9.3c9.8-1.5 21.3-1.5 34.5-.3s21.3 3.7 24.3 7.4c2.3 3.5 2.5 10.7.7 21.7zM485 467.5c-11.6 4.9-20.9 12.2-27.8 22-6.9 9.8-10.4 21.6-10.4 35.5 0 17.8 7.5 31.5 22.4 41.2 14.1 9.1 28.9 11.4 44.4 6.8 17.9-5.2 30-17.9 36.4-38.1 3-9.3 4.5-19.7 4.5-31.3v-50.2c-12.6.4-24.4 1.6-35.5 3.7-11.1 2.1-22.4 5.6-34 10.4z'));
exports.ApiFill = getIcon('api', fill, getNode(newViewBox, 'M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 0 0-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 0 0 0 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM578.9 546.7a8.03 8.03 0 0 0-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 0 0-11.3 0L363 475.3l-43-43a7.85 7.85 0 0 0-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 68.9-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 0 0 0 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2z'));
exports.AppstoreFill = getIcon('appstore', fill, getNode(newViewBox, 'M864 144H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm0 400H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zM464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm0 400H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16z'));
exports.AudioFill = getIcon('audio', fill, getNode(newViewBox, 'M512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm330-170c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1z'));
exports.AppleFill = getIcon('apple', fill, getNode(newViewBox, 'M747.4 535.7c-.4-68.2 30.5-119.6 92.9-157.5-34.9-50-87.7-77.5-157.3-82.8-65.9-5.2-138 38.4-164.4 38.4-27.9 0-91.7-36.6-141.9-36.6C273.1 298.8 163 379.8 163 544.6c0 48.7 8.9 99 26.7 150.8 23.8 68.2 109.6 235.3 199.1 232.6 46.8-1.1 79.9-33.2 140.8-33.2 59.1 0 89.7 33.2 141.9 33.2 90.3-1.3 167.9-153.2 190.5-221.6-121.1-57.1-114.6-167.2-114.6-170.7zm-105.1-305c50.7-60.2 46.1-115 44.6-134.7-44.8 2.6-96.6 30.5-126.1 64.8-32.5 36.8-51.6 82.3-47.5 133.6 48.4 3.7 92.6-21.2 129-63.7z'));
exports.BackwardFill = getIcon('backward', fill, getNode(normalViewBox, 'M485.6 249.9L198.2 498c-8.3 7.1-8.3 20.8 0 27.9l287.4 248.2c10.7 9.2 26.4.9 26.4-14V263.8c0-14.8-15.7-23.2-26.4-13.9zm320 0L518.2 498a18.6 18.6 0 0 0-6.2 14c0 5.2 2.1 10.4 6.2 14l287.4 248.2c10.7 9.2 26.4.9 26.4-14V263.8c0-14.8-15.7-23.2-26.4-13.9z'));
exports.BankFill = getIcon('bank', fill, getNode(newViewBox, 'M894 462c30.9 0 43.8-39.7 18.7-58L530.8 126.2a31.81 31.81 0 0 0-37.6 0L111.3 404c-25.1 18.2-12.2 58 18.8 58H192v374h-72c-4.4 0-8 3.6-8 8v52c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-52c0-4.4-3.6-8-8-8h-72V462h62zM381 836H264V462h117v374zm189 0H453V462h117v374zm190 0H642V462h118v374z'));
exports.BehanceCircleFill = getIcon('behance-circle', fill, getNode(newViewBox, 'M420.3 470.3c8.7-6.3 12.9-16.7 12.9-31 .3-6.8-1.1-13.5-4.1-19.6-2.7-4.9-6.7-9-11.6-11.9a44.8 44.8 0 0 0-16.6-6c-6.4-1.2-12.9-1.8-19.3-1.7h-70.3v79.7h76.1c13.1.1 24.2-3.1 32.9-9.5zm11.8 72c-9.8-7.5-22.9-11.2-39.2-11.2h-81.8v94h80.2c7.5 0 14.4-.7 21.1-2.1a50.5 50.5 0 0 0 17.8-7.2c5.1-3.3 9.2-7.8 12.3-13.6 3-5.8 4.5-13.2 4.5-22.1 0-17.7-5-30.2-14.9-37.8zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm86.5 286.9h138.4v33.7H598.5v-33.7zM512 628.8a89.52 89.52 0 0 1-27 31c-11.8 8.2-24.9 14.2-38.8 17.7a167.4 167.4 0 0 1-44.6 5.7H236V342.1h161c16.3 0 31.1 1.5 44.6 4.3 13.4 2.8 24.8 7.6 34.4 14.1 9.5 6.5 17 15.2 22.3 26 5.2 10.7 7.9 24.1 7.9 40 0 17.2-3.9 31.4-11.7 42.9-7.9 11.5-19.3 20.8-34.8 28.1 21.1 6 36.6 16.7 46.8 31.7 10.4 15.2 15.5 33.4 15.5 54.8 0 17.4-3.3 32.3-10 44.8zM790.8 576H612.4c0 19.4 6.7 38 16.8 48 10.2 9.9 24.8 14.9 43.9 14.9 13.8 0 25.5-3.5 35.5-10.4 9.9-6.9 15.9-14.2 18.1-21.8h59.8c-9.6 29.7-24.2 50.9-44 63.7-19.6 12.8-43.6 19.2-71.5 19.2-19.5 0-37-3.2-52.7-9.3-15.1-5.9-28.7-14.9-39.9-26.5a121.2 121.2 0 0 1-25.1-41.2c-6.1-16.9-9.1-34.7-8.9-52.6 0-18.5 3.1-35.7 9.1-51.7 11.5-31.1 35.4-56 65.9-68.9 16.3-6.8 33.8-10.2 51.5-10 21 0 39.2 4 55 12.2a111.6 111.6 0 0 1 38.6 32.8c10.1 13.7 17.2 29.3 21.7 46.9 4.3 17.3 5.8 35.5 4.6 54.7zm-122-95.6c-10.8 0-19.9 1.9-26.9 5.6-7 3.7-12.8 8.3-17.2 13.6a48.4 48.4 0 0 0-9.1 17.4c-1.6 5.3-2.7 10.7-3.1 16.2H723c-1.6-17.3-7.6-30.1-15.6-39.1-8.4-8.9-21.9-13.7-38.6-13.7z'));
exports.BellFill = getIcon('bell', fill, getNode(newViewBox, 'M816 768h-24V428c0-141.1-104.3-257.8-240-277.2V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.8C336.3 170.2 232 286.9 232 428v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48z'));
exports.BehanceSquareFill = getIcon('behance-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM598.5 350.9h138.4v33.7H598.5v-33.7zM512 628.8a89.52 89.52 0 0 1-27 31c-11.8 8.2-24.9 14.2-38.8 17.7a167.4 167.4 0 0 1-44.6 5.7H236V342.1h161c16.3 0 31.1 1.5 44.6 4.3 13.4 2.8 24.8 7.6 34.4 14.1 9.5 6.5 17 15.2 22.3 26 5.2 10.7 7.9 24.1 7.9 40 0 17.2-3.9 31.4-11.7 42.9-7.9 11.5-19.3 20.8-34.8 28.1 21.1 6 36.6 16.7 46.8 31.7 10.4 15.2 15.5 33.4 15.5 54.8 0 17.4-3.3 32.3-10 44.8zM790.8 576H612.4c0 19.4 6.7 38 16.8 48 10.2 9.9 24.8 14.9 43.9 14.9 13.8 0 25.5-3.5 35.5-10.4 9.9-6.9 15.9-14.2 18.1-21.8h59.8c-9.6 29.7-24.2 50.9-44 63.7-19.6 12.8-43.6 19.2-71.5 19.2-19.5 0-37-3.2-52.7-9.3-15.1-5.9-28.7-14.9-39.9-26.5a121.2 121.2 0 0 1-25.1-41.2c-6.1-16.9-9.1-34.7-8.9-52.6 0-18.5 3.1-35.7 9.1-51.7 11.5-31.1 35.4-56 65.9-68.9 16.3-6.8 33.8-10.2 51.5-10 21 0 39.2 4 55 12.2a111.6 111.6 0 0 1 38.6 32.8c10.1 13.7 17.2 29.3 21.7 46.9 4.3 17.3 5.8 35.5 4.6 54.7zm-122-95.6c-10.8 0-19.9 1.9-26.9 5.6-7 3.7-12.8 8.3-17.2 13.6a48.4 48.4 0 0 0-9.1 17.4c-1.6 5.3-2.7 10.7-3.1 16.2H723c-1.6-17.3-7.6-30.1-15.6-39.1-8.4-8.9-21.9-13.7-38.6-13.7zm-248.5-10.1c8.7-6.3 12.9-16.7 12.9-31 .3-6.8-1.1-13.5-4.1-19.6-2.7-4.9-6.7-9-11.6-11.9a44.8 44.8 0 0 0-16.6-6c-6.4-1.2-12.9-1.8-19.3-1.7h-70.3v79.7h76.1c13.1.1 24.2-3.1 32.9-9.5zm11.8 72c-9.8-7.5-22.9-11.2-39.2-11.2h-81.8v94h80.2c7.5 0 14.4-.7 21.1-2.1s12.7-3.8 17.8-7.2c5.1-3.3 9.2-7.8 12.3-13.6 3-5.8 4.5-13.2 4.5-22.1 0-17.7-5-30.2-14.9-37.8z'));
exports.BookFill = getIcon('book', fill, getNode(newViewBox, 'M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zM668 345.9L621.5 312 572 347.4V124h96v221.9z'));
exports.BoxPlotFill = getIcon('box-plot', fill, getNode(newViewBox, 'M952 224h-52c-4.4 0-8 3.6-8 8v248h-92V304c0-4.4-3.6-8-8-8H448v432h344c4.4 0 8-3.6 8-8V548h92v244c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V232c0-4.4-3.6-8-8-8zm-728 80v176h-92V232c0-4.4-3.6-8-8-8H72c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V548h92v172c0 4.4 3.6 8 8 8h152V296H232c-4.4 0-8 3.6-8 8z'));
exports.BugFill = getIcon('bug', fill, getNode(newViewBox, 'M304 280h416c4.4 0 8-3.6 8-8 0-40-8.8-76.7-25.9-108.1a184.31 184.31 0 0 0-74-74C596.7 72.8 560 64 520 64h-16c-40 0-76.7 8.8-108.1 25.9a184.31 184.31 0 0 0-74 74C304.8 195.3 296 232 296 272c0 4.4 3.6 8 8 8z', 'M940 512H792V412c76.8 0 139-62.2 139-139 0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8a63 63 0 0 1-63 63H232a63 63 0 0 1-63-63c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 76.8 62.2 139 139 139v100H84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h148v96c0 6.5.2 13 .7 19.3C164.1 728.6 116 796.7 116 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-44.2 23.9-82.9 59.6-103.7a273 273 0 0 0 22.7 49c24.3 41.5 59 76.2 100.5 100.5 28.9 16.9 61 28.8 95.3 34.5 4.4 0 8-3.6 8-8V484c0-4.4 3.6-8 8-8h60c4.4 0 8 3.6 8 8v464.2c0 4.4 3.6 8 8 8 34.3-5.7 66.4-17.6 95.3-34.5a281.38 281.38 0 0 0 123.2-149.5A120.4 120.4 0 0 1 836 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-79.3-48.1-147.4-116.7-176.7.4-6.4.7-12.8.7-19.3v-96h148c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
exports.CalculatorFill = getIcon('calculator', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM440.2 765h-50.8c-2.2 0-4.5-1.1-5.9-2.9L348 718.6l-35.5 43.5a7.38 7.38 0 0 1-5.9 2.9h-50.8c-6.6 0-10.2-7.9-5.8-13.1l62.7-76.8-61.2-74.9c-4.3-5.2-.7-13.1 5.9-13.1h50.9c2.2 0 4.5 1.1 5.9 2.9l34 41.6 34-41.6c1.5-1.9 3.6-2.9 5.9-2.9h50.8c6.6 0 10.2 7.9 5.9 13.1L383.5 675l62.7 76.8c4.2 5.3.6 13.2-6 13.2zm7.8-382c0 2.2-1.4 4-3.2 4H376v68.7c0 1.9-1.8 3.3-4 3.3h-48c-2.2 0-4-1.4-4-3.2V387h-68.8c-1.8 0-3.2-1.8-3.2-4v-48c0-2.2 1.4-4 3.2-4H320v-68.8c0-1.8 1.8-3.2 4-3.2h48c2.2 0 4 1.4 4 3.2V331h68.7c1.9 0 3.3 1.8 3.3 4v48zm328 369c0 2.2-1.4 4-3.2 4H579.2c-1.8 0-3.2-1.8-3.2-4v-48c0-2.2 1.4-4 3.2-4h193.5c1.9 0 3.3 1.8 3.3 4v48zm0-104c0 2.2-1.4 4-3.2 4H579.2c-1.8 0-3.2-1.8-3.2-4v-48c0-2.2 1.4-4 3.2-4h193.5c1.9 0 3.3 1.8 3.3 4v48zm0-265c0 2.2-1.4 4-3.2 4H579.2c-1.8 0-3.2-1.8-3.2-4v-48c0-2.2 1.4-4 3.2-4h193.5c1.9 0 3.3 1.8 3.3 4v48z'));
exports.BulbFill = getIcon('bulb', fill, getNode(newViewBox, 'M348 676.1C250 619.4 184 513.4 184 392c0-181.1 146.9-328 328-328s328 146.9 328 328c0 121.4-66 227.4-164 284.1V792c0 17.7-14.3 32-32 32H380c-17.7 0-32-14.3-32-32V676.1zM392 888h240c4.4 0 8 3.6 8 8v32c0 17.7-14.3 32-32 32H416c-17.7 0-32-14.3-32-32v-32c0-4.4 3.6-8 8-8z'));
exports.BuildFill = getIcon('build', fill, getNode(newViewBox, 'M916 210H376c-17.7 0-32 14.3-32 32v236H108c-17.7 0-32 14.3-32 32v272c0 17.7 14.3 32 32 32h540c17.7 0 32-14.3 32-32V546h236c17.7 0 32-14.3 32-32V242c0-17.7-14.3-32-32-32zM612 746H412V546h200v200zm268-268H680V278h200v200z'));
exports.CalendarFill = getIcon('calendar', fill, getNode(newViewBox, 'M112 880c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V460H112v420zm768-696H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v176h800V216c0-17.7-14.3-32-32-32z'));
exports.CameraFill = getIcon('camera', fill, getNode(newViewBox, 'M864 260H728l-32.4-90.8a32.07 32.07 0 0 0-30.2-21.2H358.6c-13.5 0-25.6 8.5-30.1 21.2L296 260H160c-44.2 0-80 35.8-80 80v456c0 44.2 35.8 80 80 80h704c44.2 0 80-35.8 80-80V340c0-44.2-35.8-80-80-80zM512 716c-88.4 0-160-71.6-160-160s71.6-160 160-160 160 71.6 160 160-71.6 160-160 160zm-96-160a96 96 0 1 0 192 0 96 96 0 1 0-192 0z'));
exports.CarFill = getIcon('car', fill, getNode(newViewBox, 'M959 413.4L935.3 372a8 8 0 0 0-10.9-2.9l-50.7 29.6-78.3-216.2a63.9 63.9 0 0 0-60.9-44.4H301.2c-34.7 0-65.5 22.4-76.2 55.5l-74.6 205.2-50.8-29.6a8 8 0 0 0-10.9 2.9L65 413.4c-2.2 3.8-.9 8.6 2.9 10.8l60.4 35.2-14.5 40c-1.2 3.2-1.8 6.6-1.8 10v348.2c0 15.7 11.8 28.4 26.3 28.4h67.6c12.3 0 23-9.3 25.6-22.3l7.7-37.7h545.6l7.7 37.7c2.7 13 13.3 22.3 25.6 22.3h67.6c14.5 0 26.3-12.7 26.3-28.4V509.4c0-3.4-.6-6.8-1.8-10l-14.5-40 60.3-35.2a8 8 0 0 0 3-10.8zM264 621c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm388 75c0 4.4-3.6 8-8 8H380c-4.4 0-8-3.6-8-8v-84c0-4.4 3.6-8 8-8h40c4.4 0 8 3.6 8 8v36h168v-36c0-4.4 3.6-8 8-8h40c4.4 0 8 3.6 8 8v84zm108-75c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zM220 418l72.7-199.9.5-1.3.4-1.3c1.1-3.3 4.1-5.5 7.6-5.5h427.6l75.4 208H220z'));
exports.CaretDownFill = getIcon('caret-down', fill, getNode(normalViewBox, 'M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z'));
exports.CaretLeftFill = getIcon('caret-left', fill, getNode(normalViewBox, 'M689 165.1L308.2 493.5c-10.9 9.4-10.9 27.5 0 37L689 858.9c14.2 12.2 35 1.2 35-18.5V183.6c0-19.7-20.8-30.7-35-18.5z'));
exports.CaretRightFill = getIcon('caret-right', fill, getNode(normalViewBox, 'M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z'));
exports.CarryOutFill = getIcon('carry-out', fill, getNode(newViewBox, 'M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zM694.5 432.7L481.9 725.4a16.1 16.1 0 0 1-26 0l-126.4-174c-3.8-5.3 0-12.7 6.5-12.7h55.2c5.1 0 10 2.5 13 6.6l64.7 89 150.9-207.8c3-4.1 7.8-6.6 13-6.6H688c6.5.1 10.3 7.5 6.5 12.8z'));
exports.CaretUpFill = getIcon('caret-up', fill, getNode(normalViewBox, 'M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z'));
exports.CheckCircleFill = getIcon('check-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 0 1-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z'));
exports.CheckSquareFill = getIcon('check-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM695.5 365.7l-210.6 292a31.8 31.8 0 0 1-51.7 0L308.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H689c6.5 0 10.3 7.4 6.5 12.7z'));
exports.ChromeFill = getIcon('chrome', fill, getNode(newViewBox, 'M371.8 512c0 77.5 62.7 140.2 140.2 140.2S652.2 589.5 652.2 512 589.5 371.8 512 371.8 371.8 434.4 371.8 512zM900 362.4l-234.3 12.1c63.6 74.3 64.6 181.5 11.1 263.7l-188 289.2c78 4.2 158.4-12.9 231.2-55.2 180-104 253-322.1 180-509.8zM320.3 591.9L163.8 284.1A415.35 415.35 0 0 0 96 512c0 208 152.3 380.3 351.4 410.8l106.9-209.4c-96.6 18.2-189.9-34.8-234-121.5zm218.5-285.5l344.4 18.1C848 254.7 792.6 194 719.8 151.7 653.9 113.6 581.5 95.5 510.5 96c-122.5.5-242.2 55.2-322.1 154.5l128.2 196.9c32-91.9 124.8-146.7 222.2-141z'));
exports.CiCircleFill = getIcon('ci-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-63.6 656c-103 0-162.4-68.6-162.4-182.6v-49C286 373.5 345.4 304 448.3 304c88.3 0 152.3 56.9 152.3 138.1 0 2.4-2 4.4-4.4 4.4h-52.6c-4.2 0-7.6-3.2-8-7.4-4-46.1-37.6-77.6-87-77.6-61.1 0-95.6 45.4-95.6 126.9v49.3c0 80.3 34.5 125.1 95.6 125.1 49.3 0 82.8-29.5 87-72.4.4-4.1 3.8-7.3 8-7.3h52.7c2.4 0 4.4 2 4.4 4.4 0 77.4-64.3 132.5-152.3 132.5zM738 704.1c0 4.4-3.6 8-8 8h-50.4c-4.4 0-8-3.6-8-8V319.9c0-4.4 3.6-8 8-8H730c4.4 0 8 3.6 8 8v384.2z'));
exports.ClockCircleFill = getIcon('clock-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm176.5 585.7l-28.6 39a7.99 7.99 0 0 1-11.2 1.7L483.3 569.8a7.92 7.92 0 0 1-3.3-6.5V288c0-4.4 3.6-8 8-8h48.1c4.4 0 8 3.6 8 8v247.5l142.6 103.1c3.6 2.5 4.4 7.5 1.8 11.1z'));
exports.CloseCircleFill = getIcon('close-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 0 1-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z'));
exports.CloudFill = getIcon('cloud', fill, getNode(newViewBox, 'M811.4 418.7C765.6 297.9 648.9 212 512.2 212S258.8 297.8 213 418.6C127.3 441.1 64 519.1 64 612c0 110.5 89.5 200 199.9 200h496.2C870.5 812 960 722.5 960 612c0-92.7-63.1-170.7-148.6-193.3z'));
exports.CloseSquareFill = getIcon('close-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM676.1 657.9c4.4 5.2.7 13.1-6.1 13.1h-58.9c-4.7 0-9.2-2.1-12.3-5.7L512 561.8l-86.8 103.5c-3 3.6-7.5 5.7-12.3 5.7H354c-6.8 0-10.5-7.9-6.1-13.1L470.2 512 347.9 366.1A7.95 7.95 0 0 1 354 353h58.9c4.7 0 9.2 2.1 12.3 5.7L512 462.2l86.8-103.5c3-3.6 7.5-5.7 12.3-5.7H670c6.8 0 10.5 7.9 6.1 13.1L553.8 512l122.3 145.9z'));
exports.CodeSandboxSquareFill = getIcon('code-sandbox-square', fill, getNode(newViewBox, 'M307.9 536.7l87.6 49.9V681l96.7 55.9V524.8L307.9 418.4zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM755.7 653.2L512 794 268.3 653.2V371.8l110-63.6-.4-.2h.2L512 231l134 77h-.2l-.3.2 110.1 63.6v281.4zm-223.9 83.7l97.3-56.2v-94.1l87-49.5V418.5L531.8 525zm-20-352L418 331l-91.1 52.6 185.2 107 185.2-106.9-91.4-52.8z'));
exports.CodeSandboxCircleFill = getIcon('code-sandbox-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm243.7 589.2L512 794 268.3 653.2V371.8l110-63.6-.4-.2h.2L512 231l134 77h-.2l-.3.2 110.1 63.6v281.4zM307.9 536.7l87.6 49.9V681l96.7 55.9V524.8L307.9 418.4zm203.9-151.8L418 331l-91.1 52.6 185.2 107 185.2-106.9-91.4-52.8zm20 352l97.3-56.2v-94.1l87-49.5V418.5L531.8 525z'));
exports.CodeFill = getIcon('code', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM513.1 518.1l-192 161c-5.2 4.4-13.1.7-13.1-6.1v-62.7c0-2.3 1.1-4.6 2.9-6.1L420.7 512l-109.8-92.2a7.63 7.63 0 0 1-2.9-6.1V351c0-6.8 7.9-10.5 13.1-6.1l192 160.9c3.9 3.2 3.9 9.1 0 12.3zM716 673c0 4.4-3.4 8-7.5 8h-185c-4.1 0-7.5-3.6-7.5-8v-48c0-4.4 3.4-8 7.5-8h185c4.1 0 7.5 3.6 7.5 8v48z'));
exports.CompassFill = getIcon('compass', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM327.3 702.4c-2 .9-4.4 0-5.3-2.1-.4-1-.4-2.2 0-3.2l98.7-225.5 132.1 132.1-225.5 98.7zm375.1-375.1l-98.7 225.5-132.1-132.1L697.1 322c2-.9 4.4 0 5.3 2.1.4 1 .4 2.1 0 3.2z'));
exports.CodepenCircleFill = getIcon('codepen-circle', fill, getNode(newViewBox, 'M488.1 414.7V303.4L300.9 428l83.6 55.8zm254.1 137.7v-79.8l-59.8 39.9zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm278 533c0 1.1-.1 2.1-.2 3.1 0 .4-.1.7-.2 1a14.16 14.16 0 0 1-.8 3.2c-.2.6-.4 1.2-.6 1.7-.2.4-.4.8-.5 1.2-.3.5-.5 1.1-.8 1.6-.2.4-.4.7-.7 1.1-.3.5-.7 1-1 1.5-.3.4-.5.7-.8 1-.4.4-.8.9-1.2 1.3-.3.3-.6.6-1 .9-.4.4-.9.8-1.4 1.1-.4.3-.7.6-1.1.8-.1.1-.3.2-.4.3L525.2 786c-4 2.7-8.6 4-13.2 4-4.7 0-9.3-1.4-13.3-4L244.6 616.9c-.1-.1-.3-.2-.4-.3l-1.1-.8c-.5-.4-.9-.7-1.3-1.1-.3-.3-.6-.6-1-.9-.4-.4-.8-.8-1.2-1.3a7 7 0 0 1-.8-1c-.4-.5-.7-1-1-1.5-.2-.4-.5-.7-.7-1.1-.3-.5-.6-1.1-.8-1.6-.2-.4-.4-.8-.5-1.2-.2-.6-.4-1.2-.6-1.7-.1-.4-.3-.8-.4-1.2-.2-.7-.3-1.3-.4-2-.1-.3-.1-.7-.2-1-.1-1-.2-2.1-.2-3.1V427.9c0-1 .1-2.1.2-3.1.1-.3.1-.7.2-1a14.16 14.16 0 0 1 .8-3.2c.2-.6.4-1.2.6-1.7.2-.4.4-.8.5-1.2.2-.5.5-1.1.8-1.6.2-.4.4-.7.7-1.1.6-.9 1.2-1.7 1.8-2.5.4-.4.8-.9 1.2-1.3.3-.3.6-.6 1-.9.4-.4.9-.8 1.3-1.1.4-.3.7-.6 1.1-.8.1-.1.3-.2.4-.3L498.7 239c8-5.3 18.5-5.3 26.5 0l254.1 169.1c.1.1.3.2.4.3l1.1.8 1.4 1.1c.3.3.6.6 1 .9.4.4.8.8 1.2 1.3.7.8 1.3 1.6 1.8 2.5.2.4.5.7.7 1.1.3.5.6 1 .8 1.6.2.4.4.8.5 1.2.2.6.4 1.2.6 1.7.1.4.3.8.4 1.2.2.7.3 1.3.4 2 .1.3.1.7.2 1 .1 1 .2 2.1.2 3.1V597zm-254.1 13.3v111.3L723.1 597l-83.6-55.8zM281.8 472.6v79.8l59.8-39.9zM512 456.1l-84.5 56.4 84.5 56.4 84.5-56.4zM723.1 428L535.9 303.4v111.3l103.6 69.1zM384.5 541.2L300.9 597l187.2 124.6V610.3l-103.6-69.1z'));
exports.CodepenSquareFill = getIcon('codepen-square', fill, getNode(newViewBox, 'M723.1 428L535.9 303.4v111.3l103.6 69.1zM512 456.1l-84.5 56.4 84.5 56.4 84.5-56.4zm23.9 154.2v111.3L723.1 597l-83.6-55.8zm-151.4-69.1L300.9 597l187.2 124.6V610.3l-103.6-69.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-90 485c0 1.1-.1 2.1-.2 3.1 0 .4-.1.7-.2 1a14.16 14.16 0 0 1-.8 3.2c-.2.6-.4 1.2-.6 1.7-.2.4-.4.8-.5 1.2-.3.5-.5 1.1-.8 1.6-.2.4-.4.7-.7 1.1-.3.5-.7 1-1 1.5-.3.4-.5.7-.8 1-.4.4-.8.9-1.2 1.3-.3.3-.6.6-1 .9-.4.4-.9.8-1.4 1.1-.4.3-.7.6-1.1.8-.1.1-.3.2-.4.3L525.2 786c-4 2.7-8.6 4-13.2 4-4.7 0-9.3-1.4-13.3-4L244.6 616.9c-.1-.1-.3-.2-.4-.3l-1.1-.8c-.5-.4-.9-.7-1.3-1.1-.3-.3-.6-.6-1-.9-.4-.4-.8-.8-1.2-1.3a7 7 0 0 1-.8-1c-.4-.5-.7-1-1-1.5-.2-.4-.5-.7-.7-1.1-.3-.5-.6-1.1-.8-1.6-.2-.4-.4-.8-.5-1.2-.2-.6-.4-1.2-.6-1.7-.1-.4-.3-.8-.4-1.2-.2-.7-.3-1.3-.4-2-.1-.3-.1-.7-.2-1-.1-1-.2-2.1-.2-3.1V427.9c0-1 .1-2.1.2-3.1.1-.3.1-.7.2-1a14.16 14.16 0 0 1 .8-3.2c.2-.6.4-1.2.6-1.7.2-.4.4-.8.5-1.2.2-.5.5-1.1.8-1.6.2-.4.4-.7.7-1.1.6-.9 1.2-1.7 1.8-2.5.4-.4.8-.9 1.2-1.3.3-.3.6-.6 1-.9.4-.4.9-.8 1.3-1.1.4-.3.7-.6 1.1-.8.1-.1.3-.2.4-.3L498.7 239c8-5.3 18.5-5.3 26.5 0l254.1 169.1c.1.1.3.2.4.3l1.1.8 1.4 1.1c.3.3.6.6 1 .9.4.4.8.8 1.2 1.3.7.8 1.3 1.6 1.8 2.5.2.4.5.7.7 1.1.3.5.6 1 .8 1.6.2.4.4.8.5 1.2.2.6.4 1.2.6 1.7.1.4.3.8.4 1.2.2.7.3 1.3.4 2 .1.3.1.7.2 1 .1 1 .2 2.1.2 3.1V597zm-47.8-44.6v-79.8l-59.8 39.9zm-460.4-79.8v79.8l59.8-39.9zm206.3-57.9V303.4L300.9 428l83.6 55.8z'));
exports.ContactsFill = getIcon('contacts', fill, getNode(newViewBox, 'M928 224H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zM661 736h-43.9c-4.2 0-7.6-3.3-7.9-7.5-3.8-50.6-46-90.5-97.2-90.5s-93.4 40-97.2 90.5c-.3 4.2-3.7 7.5-7.9 7.5H363a8 8 0 0 1-8-8.4c2.8-53.3 32-99.7 74.6-126.1a111.8 111.8 0 0 1-29.1-75.5c0-61.9 49.9-112 111.4-112 61.5 0 111.4 50.1 111.4 112 0 29.1-11 55.5-29.1 75.5 42.7 26.5 71.8 72.8 74.6 126.1.4 4.6-3.2 8.4-7.8 8.4zM512 474c-28.5 0-51.7 23.3-51.7 52s23.2 52 51.7 52c28.5 0 51.7-23.3 51.7-52s-23.2-52-51.7-52z'));
exports.ControlFill = getIcon('control', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM404 683v77c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-77c-41.7-13.6-72-52.8-72-99s30.3-85.5 72-99V264c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v221c41.7 13.6 72 52.8 72 99s-30.3 85.5-72 99zm279.6-143.9c.2 0 .3-.1.4-.1v221c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V539c.2 0 .3.1.4.1-42-13.4-72.4-52.7-72.4-99.1 0-46.4 30.4-85.7 72.4-99.1-.2 0-.3.1-.4.1v-77c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v77c-.2 0-.3-.1-.4-.1 42 13.4 72.4 52.7 72.4 99.1 0 46.4-30.4 85.7-72.4 99.1zM616 440a36 36 0 1 0 72 0 36 36 0 1 0-72 0zM403.4 566.5l-1.5-2.4c0-.1-.1-.1-.1-.2l-.9-1.2c-.1-.1-.2-.2-.2-.3-1-1.3-2-2.5-3.2-3.6l-.2-.2c-.4-.4-.8-.8-1.2-1.1-.8-.8-1.7-1.5-2.6-2.1h-.1l-1.2-.9c-.1-.1-.3-.2-.4-.3-1.2-.8-2.5-1.6-3.9-2.2-.2-.1-.5-.2-.7-.4-.4-.2-.7-.3-1.1-.5-.3-.1-.7-.3-1-.4-.5-.2-1-.4-1.5-.5-.4-.1-.9-.3-1.3-.4l-.9-.3-1.4-.3c-.2-.1-.5-.1-.7-.2-.7-.1-1.4-.3-2.1-.4-.2 0-.4 0-.6-.1-.6-.1-1.1-.1-1.7-.2-.2 0-.4 0-.7-.1-.8 0-1.5-.1-2.3-.1s-1.5 0-2.3.1c-.2 0-.4 0-.7.1-.6 0-1.2.1-1.7.2-.2 0-.4 0-.6.1-.7.1-1.4.2-2.1.4-.2.1-.5.1-.7.2l-1.4.3-.9.3c-.4.1-.9.3-1.3.4-.5.2-1 .4-1.5.5-.3.1-.7.3-1 .4-.4.2-.7.3-1.1.5-.2.1-.5.2-.7.4-1.3.7-2.6 1.4-3.9 2.2-.1.1-.3.2-.4.3l-1.2.9h-.1c-.9.7-1.8 1.4-2.6 2.1-.4.4-.8.7-1.2 1.1l-.2.2a54.8 54.8 0 0 0-3.2 3.6c-.1.1-.2.2-.2.3l-.9 1.2c0 .1-.1.1-.1.2l-1.5 2.4c-.1.2-.2.3-.3.5-2.7 5.1-4.3 10.9-4.3 17s1.6 12 4.3 17c.1.2.2.3.3.5l1.5 2.4c0 .1.1.1.1.2l.9 1.2c.1.1.2.2.2.3 1 1.3 2 2.5 3.2 3.6l.2.2c.4.4.8.8 1.2 1.1.8.8 1.7 1.5 2.6 2.1h.1l1.2.9c.1.1.3.2.4.3 1.2.8 2.5 1.6 3.9 2.2.2.1.5.2.7.4.4.2.7.3 1.1.5.3.1.7.3 1 .4.5.2 1 .4 1.5.5.4.1.9.3 1.3.4l.9.3 1.4.3c.2.1.5.1.7.2.7.1 1.4.3 2.1.4.2 0 .4 0 .6.1.6.1 1.1.1 1.7.2.2 0 .4 0 .7.1.8 0 1.5.1 2.3.1s1.5 0 2.3-.1c.2 0 .4 0 .7-.1.6 0 1.2-.1 1.7-.2.2 0 .4 0 .6-.1.7-.1 1.4-.2 2.1-.4.2-.1.5-.1.7-.2l1.4-.3.9-.3c.4-.1.9-.3 1.3-.4.5-.2 1-.4 1.5-.5.3-.1.7-.3 1-.4.4-.2.7-.3 1.1-.5.2-.1.5-.2.7-.4 1.3-.7 2.6-1.4 3.9-2.2.1-.1.3-.2.4-.3l1.2-.9h.1c.9-.7 1.8-1.4 2.6-2.1.4-.4.8-.7 1.2-1.1l.2-.2c1.1-1.1 2.2-2.4 3.2-3.6.1-.1.2-.2.2-.3l.9-1.2c0-.1.1-.1.1-.2l1.5-2.4c.1-.2.2-.3.3-.5 2.7-5.1 4.3-10.9 4.3-17s-1.6-12-4.3-17c-.1-.2-.2-.4-.3-.5z'));
exports.ContainerFill = getIcon('container', fill, getNode(newViewBox, 'M832 64H192c-17.7 0-32 14.3-32 32v529c0-.6.4-1 1-1h219.3l5.2 24.7C397.6 708.5 450.8 752 512 752s114.4-43.5 126.4-103.3l5.2-24.7H863c.6 0 1 .4 1 1V96c0-17.7-14.3-32-32-32zM712 493c0 4.4-3.6 8-8 8H320c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h384c4.4 0 8 3.6 8 8v48zm0-160c0 4.4-3.6 8-8 8H320c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h384c4.4 0 8 3.6 8 8v48zm151 354H694.1c-11.6 32.8-32 62.3-59.1 84.7-34.5 28.6-78.2 44.3-123 44.3s-88.5-15.8-123-44.3a194.02 194.02 0 0 1-59.1-84.7H161c-.6 0-1-.4-1-1v242c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V686c0 .6-.4 1-1 1z'));
exports.CopyFill = getIcon('copy', fill, getNode(newViewBox, 'M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM382 896h-.2L232 746.2v-.2h150v150z'));
exports.CopyrightCircleFill = getIcon('copyright-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm5.4 670c-110 0-173.4-73.2-173.4-194.9v-52.3C344 364.2 407.4 290 517.3 290c94.3 0 162.7 60.7 162.7 147.4 0 2.6-2.1 4.7-4.7 4.7h-56.7c-4.2 0-7.6-3.2-8-7.4-4-49.5-40-83.4-93-83.4-65.3 0-102.1 48.5-102.1 135.5v52.6c0 85.7 36.9 133.6 102.1 133.6 52.8 0 88.7-31.7 93-77.8.4-4.1 3.8-7.3 8-7.3h56.8c2.6 0 4.7 2.1 4.7 4.7 0 82.6-68.7 141.4-162.7 141.4z'));
exports.CreditCardFill = getIcon('credit-card', fill, getNode(newViewBox, 'M928 160H96c-17.7 0-32 14.3-32 32v160h896V192c0-17.7-14.3-32-32-32zM64 832c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V440H64v392zm579-184c0-4.4 3.6-8 8-8h165c4.4 0 8 3.6 8 8v72c0 4.4-3.6 8-8 8H651c-4.4 0-8-3.6-8-8v-72z'));
exports.CrownFill = getIcon('crown', fill, getNode(newViewBox, 'M899.6 276.5L705 396.4 518.4 147.5a8.06 8.06 0 0 0-12.9 0L319 396.4 124.3 276.5c-5.7-3.5-13.1 1.2-12.2 7.9L188.5 865c1.1 7.9 7.9 14 16 14h615.1c8 0 14.9-6 15.9-14l76.4-580.6c.8-6.7-6.5-11.4-12.3-7.9zM512 734.2c-62.1 0-112.6-50.5-112.6-112.6S449.9 509 512 509s112.6 50.5 112.6 112.6S574.1 734.2 512 734.2zm0-160.9c-26.6 0-48.2 21.6-48.2 48.3 0 26.6 21.6 48.3 48.2 48.3s48.2-21.6 48.2-48.3c0-26.6-21.6-48.3-48.2-48.3z'));
exports.CustomerServiceFill = getIcon('customer-service', fill, getNode(newViewBox, 'M512 128c-212.1 0-384 171.9-384 384v360c0 13.3 10.7 24 24 24h184c35.3 0 64-28.7 64-64V624c0-35.3-28.7-64-64-64H200v-48c0-172.3 139.7-312 312-312s312 139.7 312 312v48H688c-35.3 0-64 28.7-64 64v208c0 35.3 28.7 64 64 64h184c13.3 0 24-10.7 24-24V512c0-212.1-171.9-384-384-384z'));
exports.DashboardFill = getIcon('dashboard', fill, getNode(newViewBox, 'M924.8 385.6a446.7 446.7 0 0 0-96-142.4 446.7 446.7 0 0 0-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 0 0-142.4 96 446.7 446.7 0 0 0-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM482 232c0-4.4 3.6-8 8-8h44c4.4 0 8 3.6 8 8v80c0 4.4-3.6 8-8 8h-44c-4.4 0-8-3.6-8-8v-80zM270 582c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8v-44c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v44zm90.7-204.5l-31.1 31.1a8.03 8.03 0 0 1-11.3 0L261.7 352a8.03 8.03 0 0 1 0-11.3l31.1-31.1c3.1-3.1 8.2-3.1 11.3 0l56.6 56.6c3.1 3.1 3.1 8.2 0 11.3zm291.1 83.6l-84.5 84.5c5 18.7.2 39.4-14.5 54.1a55.95 55.95 0 0 1-79.2 0 55.95 55.95 0 0 1 0-79.2 55.87 55.87 0 0 1 54.1-14.5l84.5-84.5c3.1-3.1 8.2-3.1 11.3 0l28.3 28.3c3.1 3.1 3.1 8.1 0 11.3zm43-52.4l-31.1-31.1a8.03 8.03 0 0 1 0-11.3l56.6-56.6c3.1-3.1 8.2-3.1 11.3 0l31.1 31.1c3.1 3.1 3.1 8.2 0 11.3l-56.6 56.6a8.03 8.03 0 0 1-11.3 0zM846 582c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8v-44c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v44z'));
exports.DeleteFill = getIcon('delete', fill, getNode(newViewBox, 'M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-200 0H360v-72h304v72z'));
exports.DiffFill = getIcon('diff', fill, getNode(newViewBox, 'M854.2 306.6L611.3 72.9c-6-5.7-13.9-8.9-22.2-8.9H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h277l219 210.6V824c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V329.6c0-8.7-3.5-17-9.8-23zM553.4 201.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v704c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32V397.3c0-8.5-3.4-16.6-9.4-22.6L553.4 201.4zM568 753c0 3.8-3.4 7-7.5 7h-225c-4.1 0-7.5-3.2-7.5-7v-42c0-3.8 3.4-7 7.5-7h225c4.1 0 7.5 3.2 7.5 7v42zm0-220c0 3.8-3.4 7-7.5 7H476v84.9c0 3.9-3.1 7.1-7 7.1h-42c-3.8 0-7-3.2-7-7.1V540h-84.5c-4.1 0-7.5-3.2-7.5-7v-42c0-3.9 3.4-7 7.5-7H420v-84.9c0-3.9 3.2-7.1 7-7.1h42c3.9 0 7 3.2 7 7.1V484h84.5c4.1 0 7.5 3.1 7.5 7v42z'));
exports.DingtalkCircleFill = getIcon('dingtalk-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm227 385.3c-1 4.2-3.5 10.4-7 17.8h.1l-.4.7c-20.3 43.1-73.1 127.7-73.1 127.7s-.1-.2-.3-.5l-15.5 26.8h74.5L575.1 810l32.3-128h-58.6l20.4-84.7c-16.5 3.9-35.9 9.4-59 16.8 0 0-31.2 18.2-89.9-35 0 0-39.6-34.7-16.6-43.4 9.8-3.7 47.4-8.4 77-12.3 40-5.4 64.6-8.2 64.6-8.2S422 517 392.7 512.5c-29.3-4.6-66.4-53.1-74.3-95.8 0 0-12.2-23.4 26.3-12.3 38.5 11.1 197.9 43.2 197.9 43.2s-207.4-63.3-221.2-78.7c-13.8-15.4-40.6-84.2-37.1-126.5 0 0 1.5-10.5 12.4-7.7 0 0 153.3 69.7 258.1 107.9 104.8 37.9 195.9 57.3 184.2 106.7z'));
exports.DatabaseFill = getIcon('database', fill, getNode(newViewBox, 'M832 64H192c-17.7 0-32 14.3-32 32v224h704V96c0-17.7-14.3-32-32-32zM288 232c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zM160 928c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V704H160v224zm128-136c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zM160 640h704V384H160v256zm128-168c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40z'));
exports.DingtalkSquareFill = getIcon('dingtalk-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM739 449.3c-1 4.2-3.5 10.4-7 17.8h.1l-.4.7c-20.3 43.1-73.1 127.7-73.1 127.7s-.1-.2-.3-.5l-15.5 26.8h74.5L575.1 810l32.3-128h-58.6l20.4-84.7c-16.5 3.9-35.9 9.4-59 16.8 0 0-31.2 18.2-89.9-35 0 0-39.6-34.7-16.6-43.4 9.8-3.7 47.4-8.4 77-12.3 40-5.4 64.6-8.2 64.6-8.2S422 517 392.7 512.5c-29.3-4.6-66.4-53.1-74.3-95.8 0 0-12.2-23.4 26.3-12.3 38.5 11.1 197.9 43.2 197.9 43.2s-207.4-63.3-221.2-78.7c-13.8-15.4-40.6-84.2-37.1-126.5 0 0 1.5-10.5 12.4-7.7 0 0 153.3 69.7 258.1 107.9 104.8 37.9 195.9 57.3 184.2 106.7z'));
exports.DislikeFill = getIcon('dislike', fill, getNode(newViewBox, 'M885.9 490.3c3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-51.6-30.7-98.1-78.3-118.4a66.1 66.1 0 0 0-26.5-5.4H273v428h.3l85.8 310.8C372.9 889 418.9 924 470.9 924c29.7 0 57.4-11.8 77.9-33.4 20.5-21.5 31-49.7 29.5-79.4l-6-122.9h239.9c12.1 0 23.9-3.2 34.3-9.3 40.4-23.5 65.5-66.1 65.5-111 0-28.3-9.3-55.5-26.1-77.7zM112 132v364c0 17.7 14.3 32 32 32h65V100h-65c-17.7 0-32 14.3-32 32z'));
exports.DollarCircleFill = getIcon('dollar-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm22.3 665.2l.2 31.7c0 4.4-3.6 8.1-8 8.1h-28.4c-4.4 0-8-3.6-8-8v-31.4C401.3 723 359.5 672.4 355 617.4c-.4-4.7 3.3-8.7 8-8.7h46.2c3.9 0 7.3 2.8 7.9 6.6 5.1 31.7 29.8 55.4 74.1 61.3V533.9l-24.7-6.3c-52.3-12.5-102.1-45.1-102.1-112.7 0-72.9 55.4-112.1 126.2-119v-33c0-4.4 3.6-8 8-8h28.1c4.4 0 8 3.6 8 8v32.7c68.5 6.9 119.9 46.9 125.9 109.2.5 4.7-3.2 8.8-8 8.8h-44.9c-4 0-7.4-3-7.9-6.9-4-29.2-27.4-53-65.5-58.2v134.3l25.4 5.9c64.8 16 108.9 47 108.9 116.4 0 75.3-56 117.3-134.3 124.1zM426.6 410.3c0 25.4 15.7 45.1 49.5 57.3 4.7 1.9 9.4 3.4 15 5v-124c-36.9 4.7-64.5 25.4-64.5 61.7zm116.5 135.2c-2.8-.6-5.6-1.3-8.8-2.2V677c42.6-3.8 72-27.2 72-66.4 0-30.7-15.9-50.7-63.2-65.1z'));
exports.DownCircleFill = getIcon('down-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm184.5 353.7l-178 246a7.95 7.95 0 0 1-12.9 0l-178-246c-3.8-5.3 0-12.7 6.5-12.7H381c10.2 0 19.9 4.9 25.9 13.2L512 563.6l105.2-145.4c6-8.3 15.6-13.2 25.9-13.2H690c6.5 0 10.3 7.4 6.5 12.7z'));
exports.DownSquareFill = getIcon('down-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM696.5 412.7l-178 246a7.95 7.95 0 0 1-12.9 0l-178-246c-3.8-5.3 0-12.7 6.5-12.7H381c10.2 0 19.9 4.9 25.9 13.2L512 558.6l105.2-145.4c6-8.3 15.6-13.2 25.9-13.2H690c6.5 0 10.3 7.4 6.5 12.7z'));
exports.DribbbleCircleFill = getIcon('dribbble-circle', fill, getNode(newViewBox, 'M675.1 328.3a245.2 245.2 0 0 0-220.8-55.1c6.8 9.1 51.5 69.9 91.8 144 87.5-32.8 124.5-82.6 129-88.9zM554 552.8c-138.7 48.3-188.6 144.6-193 153.6 41.7 32.5 94.1 51.9 151 51.9 34.1 0 66.6-6.9 96.1-19.5-3.7-21.6-17.9-96.8-52.5-186.6l-1.6.6zm47.7-11.9c32.2 88.4 45.3 160.4 47.8 175.4 55.2-37.3 94.5-96.4 105.4-164.9-8.4-2.6-76.1-22.8-153.2-10.5zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 736c-158.8 0-288-129.2-288-288s129.2-288 288-288 288 129.2 288 288-129.2 288-288 288zm53.1-346.2c5.7 11.7 11.2 23.6 16.3 35.6 1.8 4.2 3.6 8.4 5.3 12.7 81.8-10.3 163.2 6.2 171.3 7.9-.5-58.1-21.3-111.4-55.5-153.3-5.3 7.1-46.5 60-137.4 97.1zM498.6 432c-40.8-72.5-84.7-133.4-91.2-142.3-68.8 32.5-120.3 95.9-136.2 172.2 11 .2 112.4.7 227.4-29.9zm30.6 82.5c3.2-1 6.4-2 9.7-2.9-6.2-14-12.9-28-19.9-41.7-122.8 36.8-242.1 35.2-252.8 35-.1 2.5-.1 5-.1 7.5 0 63.2 23.9 120.9 63.2 164.5 5.5-9.6 73-121.4 199.9-162.4z'));
exports.DribbbleSquareFill = getIcon('dribbble-square', fill, getNode(newViewBox, 'M498.6 432c-40.8-72.5-84.7-133.4-91.2-142.3-68.8 32.5-120.3 95.9-136.2 172.2 11 .2 112.4.7 227.4-29.9zm66.5 21.8c5.7 11.7 11.2 23.6 16.3 35.6 1.8 4.2 3.6 8.4 5.3 12.7 81.8-10.3 163.2 6.2 171.3 7.9-.5-58.1-21.3-111.4-55.5-153.3-5.3 7.1-46.5 60-137.4 97.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM512 800c-158.8 0-288-129.2-288-288s129.2-288 288-288 288 129.2 288 288-129.2 288-288 288zm89.7-259.1c32.2 88.4 45.3 160.4 47.8 175.4 55.2-37.3 94.5-96.4 105.4-164.9-8.4-2.6-76.1-22.8-153.2-10.5zm-72.5-26.4c3.2-1 6.4-2 9.7-2.9-6.2-14-12.9-28-19.9-41.7-122.8 36.8-242.1 35.2-252.8 35-.1 2.5-.1 5-.1 7.5 0 63.2 23.9 120.9 63.2 164.5 5.5-9.6 73-121.4 199.9-162.4zm145.9-186.2a245.2 245.2 0 0 0-220.8-55.1c6.8 9.1 51.5 69.9 91.8 144 87.5-32.8 124.5-82.6 129-88.9zM554 552.8c-138.7 48.3-188.6 144.6-193 153.6 41.7 32.5 94.1 51.9 151 51.9 34.1 0 66.6-6.9 96.1-19.5-3.7-21.6-17.9-96.8-52.5-186.6l-1.6.6z'));
exports.DropboxCircleFill = getIcon('dropbox-circle', fill, getNode(newViewBox, 'M663.8 455.5zm-151.5-93.8l-151.8 93.8 151.8 93.9 151.5-93.9zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm151.2 595.5L512.6 750l-151-90.5v-33.1l45.4 29.4 105.6-87.7 105.6 87.7 45.1-29.4v33.1zm-45.6-22.4l-105.3-87.7L407 637.1l-151-99.2 104.5-82.4L256 371.2 407 274l105.3 87.7L617.6 274 768 372.1l-104.2 83.5L768 539l-150.4 98.1z'));
exports.DropboxSquareFill = getIcon('dropbox-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM663.2 659.5L512.6 750l-151-90.5v-33.1l45.4 29.4 105.6-87.7 105.6 87.7 45.1-29.4v33.1zm-45.6-22.4l-105.3-87.7L407 637.1l-151-99.2 104.5-82.4L256 371.2 407 274l105.3 87.7L617.6 274 768 372.1l-104.2 83.5L768 539l-150.4 98.1zM512.3 361.7l-151.8 93.8 151.8 93.9 151.5-93.9zm151.5 93.8z'));
exports.EnvironmentFill = getIcon('environment', fill, getNode(newViewBox, 'M512 327c-29.9 0-58 11.6-79.2 32.8A111.6 111.6 0 0 0 400 439c0 29.9 11.7 58 32.8 79.2A111.6 111.6 0 0 0 512 551c29.9 0 58-11.7 79.2-32.8C612.4 497 624 468.9 624 439c0-29.9-11.6-58-32.8-79.2S541.9 327 512 327zm342.6-37.9a362.49 362.49 0 0 0-79.9-115.7 370.83 370.83 0 0 0-118.2-77.8C610.7 76.6 562.1 67 512 67c-50.1 0-98.7 9.6-144.5 28.5-44.3 18.3-84 44.5-118.2 77.8A363.6 363.6 0 0 0 169.4 289c-19.5 45-29.4 92.8-29.4 142 0 70.6 16.9 140.9 50.1 208.7 26.7 54.5 64 107.6 111 158.1 80.3 86.2 164.5 138.9 188.4 153a43.9 43.9 0 0 0 22.4 6.1c7.8 0 15.5-2 22.4-6.1 23.9-14.1 108.1-66.8 188.4-153 47-50.4 84.3-103.6 111-158.1C867.1 572 884 501.8 884 431.1c0-49.2-9.9-97-29.4-142zM512 615c-97.2 0-176-78.8-176-176s78.8-176 176-176 176 78.8 176 176-78.8 176-176 176z'));
exports.EditFill = getIcon('edit', fill, getNode(newViewBox, 'M880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32zm-622.3-84c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 0 0 0-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 0 0 9.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9z'));
exports.ExclamationCircleFill = getIcon('exclamation-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'));
exports.EuroCircleFill = getIcon('euro-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm63.5 375.8c4.4 0 8 3.6 8 8V475c0 4.4-3.6 8-8 8h-136c-.3 4.4-.3 9.1-.3 13.8v36h136.2c4.4 0 8 3.6 8 8V568c0 4.4-3.6 8-8 8H444.9c15.3 62 61.3 98.6 129.8 98.6 19.9 0 37.1-1.2 51.8-4.1 4.9-1 9.5 2.8 9.5 7.8v42.8c0 3.8-2.7 7-6.4 7.8-15.9 3.4-34.3 5.1-55.3 5.1-109.8 0-183-58.8-200.2-158H344c-4.4 0-8-3.6-8-8v-27.2c0-4.4 3.6-8 8-8h26.1v-36.9c0-4.4 0-8.8.3-12.8H344c-4.4 0-8-3.6-8-8v-27.2c0-4.4 3.6-8 8-8h31.7c19.7-94.2 92-149.9 198.6-149.9 20.9 0 39.4 1.9 55.3 5.4 3.7.8 6.3 4 6.3 7.8V346h.1c0 5.1-4.6 8.8-9.6 7.8-14.7-2.9-31.8-4.4-51.7-4.4-65.4 0-110.4 33.5-127.6 90.4h128.4z'));
exports.ExperimentFill = getIcon('experiment', fill, getNode(newViewBox, 'M218.9 636.3l42.6 26.6c.1.1.3.2.4.3l12.7 8 .3.3a186.9 186.9 0 0 0 94.1 25.1c44.9 0 87.2-15.7 121-43.8a256.27 256.27 0 0 1 164.9-59.9c52.3 0 102.2 15.7 144.6 44.5l7.9 5-111.6-289V179.8h63.5c4.4 0 8-3.6 8-8V120c0-4.4-3.6-8-8-8H264.7c-4.4 0-8 3.6-8 8v51.9c0 4.4 3.6 8 8 8h63.5v173.6L218.9 636.3zm333-203.1c22 0 39.9 17.9 39.9 39.9S573.9 513 551.9 513 512 495.1 512 473.1s17.9-39.9 39.9-39.9zM878 825.1l-29.9-77.4-85.7-53.5-.1.1c-.7-.5-1.5-1-2.2-1.5l-8.1-5-.3-.3c-29-17.5-62.3-26.8-97-26.8-44.9 0-87.2 15.7-121 43.8a256.27 256.27 0 0 1-164.9 59.9c-53 0-103.5-16.1-146.2-45.6l-28.9-18.1L146 825.1c-2.8 7.4-4.3 15.2-4.3 23 0 35.2 28.6 63.8 63.8 63.8h612.9c7.9 0 15.7-1.5 23-4.3a63.6 63.6 0 0 0 36.6-82.5z'));
exports.EyeInvisibleFill = getIcon('eye-invisible', fill, getNode(newViewBox, 'M508 624a112 112 0 0 0 112-112c0-3.28-.15-6.53-.43-9.74L498.26 623.57c3.21.28 6.45.43 9.74.43zm370.72-458.44L836 122.88a8 8 0 0 0-11.31 0L715.37 232.23Q624.91 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 0 0 0 51.5q56.7 119.43 136.55 191.45L112.56 835a8 8 0 0 0 0 11.31L155.25 889a8 8 0 0 0 11.31 0l712.16-712.12a8 8 0 0 0 0-11.32zM332 512a176 176 0 0 1 258.88-155.28l-48.62 48.62a112.08 112.08 0 0 0-140.92 140.92l-48.62 48.62A175.09 175.09 0 0 1 332 512z', 'M942.2 486.2Q889.4 375 816.51 304.85L672.37 449A176.08 176.08 0 0 1 445 676.37L322.74 798.63Q407.82 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 0 0 0-51.5z'));
exports.EyeFill = getIcon('eye', fill, getNode(newViewBox, 'M396 512a112 112 0 1 0 224 0 112 112 0 1 0-224 0zm546.2-25.8C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 0 0 0 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM508 688c-97.2 0-176-78.8-176-176s78.8-176 176-176 176 78.8 176 176-78.8 176-176 176z'));
exports.FacebookFill = getIcon('facebook', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-92.4 233.5h-63.9c-50.1 0-59.8 23.8-59.8 58.8v77.1h119.6l-15.6 120.7h-104V912H539.2V602.2H434.9V481.4h104.3v-89c0-103.3 63.1-159.6 155.3-159.6 44.2 0 82.1 3.3 93.2 4.8v107.9z'));
exports.FastBackwardFill = getIcon('fast-backward', fill, getNode(normalViewBox, 'M517.6 273.5L230.2 499.3a16.14 16.14 0 0 0 0 25.4l287.4 225.8c10.7 8.4 26.4.8 26.4-12.7V286.2c0-13.5-15.7-21.1-26.4-12.7zm320 0L550.2 499.3a16.14 16.14 0 0 0 0 25.4l287.4 225.8c10.7 8.4 26.4.8 26.4-12.7V286.2c0-13.5-15.7-21.1-26.4-12.7zm-620-25.5h-51.2c-3.5 0-6.4 2.7-6.4 6v516c0 3.3 2.9 6 6.4 6h51.2c3.5 0 6.4-2.7 6.4-6V254c0-3.3-2.9-6-6.4-6z'));
exports.FastForwardFill = getIcon('fast-forward', fill, getNode(normalViewBox, 'M793.8 499.3L506.4 273.5c-10.7-8.4-26.4-.8-26.4 12.7v451.6c0 13.5 15.7 21.1 26.4 12.7l287.4-225.8a16.14 16.14 0 0 0 0-25.4zm-320 0L186.4 273.5c-10.7-8.4-26.4-.8-26.4 12.7v451.5c0 13.5 15.7 21.1 26.4 12.7l287.4-225.8c4.1-3.2 6.2-8 6.2-12.7 0-4.6-2.1-9.4-6.2-12.6zM857.6 248h-51.2c-3.5 0-6.4 2.7-6.4 6v516c0 3.3 2.9 6 6.4 6h51.2c3.5 0 6.4-2.7 6.4-6V254c0-3.3-2.9-6-6.4-6z'));
exports.FileAddFill = getIcon('file-add', fill, getNode(newViewBox, 'M480 580H372a8 8 0 0 0-8 8v48a8 8 0 0 0 8 8h108v108a8 8 0 0 0 8 8h48a8 8 0 0 0 8-8V644h108a8 8 0 0 0 8-8v-48a8 8 0 0 0-8-8H544V472a8 8 0 0 0-8-8h-48a8 8 0 0 0-8 8v108zm374.6-291.3c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2z'));
exports.FileExcelFill = getIcon('file-excel', fill, getNode(newViewBox, 'M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM575.34 477.84l-61.22 102.3L452.3 477.8a12 12 0 0 0-10.27-5.79h-38.44a12 12 0 0 0-6.4 1.85 12 12 0 0 0-3.75 16.56l82.34 130.42-83.45 132.78a12 12 0 0 0-1.84 6.39 12 12 0 0 0 12 12h34.46a12 12 0 0 0 10.21-5.7l62.7-101.47 62.3 101.45a12 12 0 0 0 10.23 5.72h37.48a12 12 0 0 0 6.48-1.9 12 12 0 0 0 3.62-16.58l-83.83-130.55 85.3-132.47a12 12 0 0 0 1.9-6.5 12 12 0 0 0-12-12h-35.7a12 12 0 0 0-10.29 5.84z'));
exports.FileExclamationFill = getIcon('file-exclamation', fill, getNode(newViewBox, 'M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM512 784a40 40 0 1 0 0-80 40 40 0 0 0 0 80zm32-152V448a8 8 0 0 0-8-8h-48a8 8 0 0 0-8 8v184a8 8 0 0 0 8 8h48a8 8 0 0 0 8-8z'));
exports.FileImageFill = getIcon('file-image', fill, getNode(newViewBox, 'M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.6-9.4-22.6zM400 402c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm296 294H328c-6.7 0-10.4-7.7-6.3-12.9l99.8-127.2a8 8 0 0 1 12.6 0l41.1 52.4 77.8-99.2a8 8 0 0 1 12.6 0l136.5 174c4.3 5.2.5 12.9-6.1 12.9zm-94-370V137.8L790.2 326H602z'));
exports.FileMarkdownFill = getIcon('file-markdown', fill, getNode(newViewBox, 'M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM426.13 600.93l59.11 132.97a16 16 0 0 0 14.62 9.5h24.06a16 16 0 0 0 14.63-9.51l59.1-133.35V758a16 16 0 0 0 16.01 16H641a16 16 0 0 0 16-16V486a16 16 0 0 0-16-16h-34.75a16 16 0 0 0-14.67 9.62L512.1 662.2l-79.48-182.59a16 16 0 0 0-14.67-9.61H383a16 16 0 0 0-16 16v272a16 16 0 0 0 16 16h27.13a16 16 0 0 0 16-16V600.93z'));
exports.FilePdfFill = getIcon('file-pdf', fill, getNode(newViewBox, 'M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM633.22 637.26c-15.18-.5-31.32.67-49.65 2.96-24.3-14.99-40.66-35.58-52.28-65.83l1.07-4.38 1.24-5.18c4.3-18.13 6.61-31.36 7.3-44.7.52-10.07-.04-19.36-1.83-27.97-3.3-18.59-16.45-29.46-33.02-30.13-15.45-.63-29.65 8-33.28 21.37-5.91 21.62-2.45 50.07 10.08 98.59-15.96 38.05-37.05 82.66-51.2 107.54-18.89 9.74-33.6 18.6-45.96 28.42-16.3 12.97-26.48 26.3-29.28 40.3-1.36 6.49.69 14.97 5.36 21.92 5.3 7.88 13.28 13 22.85 13.74 24.15 1.87 53.83-23.03 86.6-79.26 3.29-1.1 6.77-2.26 11.02-3.7l11.9-4.02c7.53-2.54 12.99-4.36 18.39-6.11 23.4-7.62 41.1-12.43 57.2-15.17 27.98 14.98 60.32 24.8 82.1 24.8 17.98 0 30.13-9.32 34.52-23.99 3.85-12.88.8-27.82-7.48-36.08-8.56-8.41-24.3-12.43-45.65-13.12zM385.23 765.68v-.36l.13-.34a54.86 54.86 0 0 1 5.6-10.76c4.28-6.58 10.17-13.5 17.47-20.87 3.92-3.95 8-7.8 12.79-12.12 1.07-.96 7.91-7.05 9.19-8.25l11.17-10.4-8.12 12.93c-12.32 19.64-23.46 33.78-33 43-3.51 3.4-6.6 5.9-9.1 7.51a16.43 16.43 0 0 1-2.61 1.42c-.41.17-.77.27-1.13.3a2.2 2.2 0 0 1-1.12-.15 2.07 2.07 0 0 1-1.27-1.91zM511.17 547.4l-2.26 4-1.4-4.38c-3.1-9.83-5.38-24.64-6.01-38-.72-15.2.49-24.32 5.29-24.32 6.74 0 9.83 10.8 10.07 27.05.22 14.28-2.03 29.14-5.7 35.65zm-5.81 58.46l1.53-4.05 2.09 3.8c11.69 21.24 26.86 38.96 43.54 51.31l3.6 2.66-4.39.9c-16.33 3.38-31.54 8.46-52.34 16.85 2.17-.88-21.62 8.86-27.64 11.17l-5.25 2.01 2.8-4.88c12.35-21.5 23.76-47.32 36.05-79.77zm157.62 76.26c-7.86 3.1-24.78.33-54.57-12.39l-7.56-3.22 8.2-.6c23.3-1.73 39.8-.45 49.42 3.07 4.1 1.5 6.83 3.39 8.04 5.55a4.64 4.64 0 0 1-1.36 6.31 6.7 6.7 0 0 1-2.17 1.28z'));
exports.FilePptFill = getIcon('file-ppt', fill, getNode(newViewBox, 'M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM468.53 760v-91.54h59.27c60.57 0 100.2-39.65 100.2-98.12 0-58.22-39.58-98.34-99.98-98.34H424a12 12 0 0 0-12 12v276a12 12 0 0 0 12 12h32.53a12 12 0 0 0 12-12zm0-139.33h34.9c47.82 0 67.19-12.93 67.19-50.33 0-32.05-18.12-50.12-49.87-50.12h-52.22v100.45z'));
exports.FileTextFill = getIcon('file-text', fill, getNode(newViewBox, 'M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM320 482a8 8 0 0 0-8 8v48a8 8 0 0 0 8 8h384a8 8 0 0 0 8-8v-48a8 8 0 0 0-8-8H320zm0 136a8 8 0 0 0-8 8v48a8 8 0 0 0 8 8h184a8 8 0 0 0 8-8v-48a8 8 0 0 0-8-8H320z'));
exports.FileWordFill = getIcon('file-word', fill, getNode(newViewBox, 'M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM512 566.1l52.81 197a12 12 0 0 0 11.6 8.9h31.77a12 12 0 0 0 11.6-8.88l74.37-276a12 12 0 0 0 .4-3.12 12 12 0 0 0-12-12h-35.57a12 12 0 0 0-11.7 9.31l-45.78 199.1-49.76-199.32A12 12 0 0 0 528.1 472h-32.2a12 12 0 0 0-11.64 9.1L434.6 680.01 388.5 481.3a12 12 0 0 0-11.68-9.29h-35.39a12 12 0 0 0-3.11.41 12 12 0 0 0-8.47 14.7l74.17 276A12 12 0 0 0 415.6 772h31.99a12 12 0 0 0 11.59-8.9l52.81-197z'));
exports.FileUnknownFill = getIcon('file-unknown', fill, getNode(newViewBox, 'M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM402 549c0 5.4 4.4 9.5 9.8 9.5h32.4c5.4 0 9.8-4.2 9.8-9.4 0-28.2 25.8-51.6 58-51.6s58 23.4 58 51.5c0 25.3-21 47.2-49.3 50.9-19.3 2.8-34.5 20.3-34.7 40.1v32c0 5.5 4.5 10 10 10h32c5.5 0 10-4.5 10-10v-12.2c0-6 4-11.5 9.7-13.3 44.6-14.4 75-54 74.3-98.9-.8-55.5-49.2-100.8-108.5-101.6-61.4-.7-111.5 45.6-111.5 103zm110 227a32 32 0 1 0 0-64 32 32 0 0 0 0 64z'));
exports.FileZipFill = getIcon('file-zip', fill, getNode(newViewBox, 'M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM296 136v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm0 64v160h128V584H296zm48 48h32v64h-32v-64z'));
exports.FileFill = getIcon('file', fill, getNode(newViewBox, 'M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2z'));
exports.FilterFill = getIcon('filter', fill, getNode(newViewBox, 'M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z'));
exports.FireFill = getIcon('fire', fill, getNode(newViewBox, 'M834.1 469.2A347.49 347.49 0 0 0 751.2 354l-29.1-26.7a8.09 8.09 0 0 0-13 3.3l-13 37.3c-8.1 23.4-23 47.3-44.1 70.8-1.4 1.5-3 1.9-4.1 2-1.1.1-2.8-.1-4.3-1.5-1.4-1.2-2.1-3-2-4.8 3.7-60.2-14.3-128.1-53.7-202C555.3 171 510 123.1 453.4 89.7l-41.3-24.3c-5.4-3.2-12.3 1-12 7.3l2.2 48c1.5 32.8-2.3 61.8-11.3 85.9-11 29.5-26.8 56.9-47 81.5a295.64 295.64 0 0 1-47.5 46.1 352.6 352.6 0 0 0-100.3 121.5A347.75 347.75 0 0 0 160 610c0 47.2 9.3 92.9 27.7 136a349.4 349.4 0 0 0 75.5 110.9c32.4 32 70 57.2 111.9 74.7C418.5 949.8 464.5 959 512 959s93.5-9.2 136.9-27.3A348.6 348.6 0 0 0 760.8 857c32.4-32 57.8-69.4 75.5-110.9a344.2 344.2 0 0 0 27.7-136c0-48.8-10-96.2-29.9-140.9z'));
exports.FlagFill = getIcon('flag', fill, getNode(newViewBox, 'M880 305H624V192c0-17.7-14.3-32-32-32H184v-40c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v784c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V640h248v113c0 17.7 14.3 32 32 32h416c17.7 0 32-14.3 32-32V337c0-17.7-14.3-32-32-32z'));
exports.FolderAddFill = getIcon('folder-add', fill, getNode(newViewBox, 'M880 298.4H521L403.7 186.2a8.15 8.15 0 0 0-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM632 577c0 3.8-3.4 7-7.5 7H540v84.9c0 3.9-3.2 7.1-7 7.1h-42c-3.8 0-7-3.2-7-7.1V584h-84.5c-4.1 0-7.5-3.2-7.5-7v-42c0-3.8 3.4-7 7.5-7H484v-84.9c0-3.9 3.2-7.1 7-7.1h42c3.8 0 7 3.2 7 7.1V528h84.5c4.1 0 7.5 3.2 7.5 7v42z'));
exports.FolderFill = getIcon('folder', fill, getNode(newViewBox, 'M880 298.4H521L403.7 186.2a8.15 8.15 0 0 0-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32z'));
exports.FolderOpenFill = getIcon('folder-open', fill, getNode(newViewBox, 'M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 0 0-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zm-180 0H238c-13 0-24.8 7.9-29.7 20L136 643.2V256h188.5l119.6 114.4H748V444z'));
exports.ForwardFill = getIcon('forward', fill, getNode(normalViewBox, 'M825.8 498L538.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L825.8 526c8.3-7.2 8.3-20.8 0-28zm-320 0L218.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L505.8 526c4.1-3.6 6.2-8.8 6.2-14 0-5.2-2.1-10.4-6.2-14z'));
exports.FrownFill = getIcon('frown', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM288 421a48.01 48.01 0 0 1 96 0 48.01 48.01 0 0 1-96 0zm376 272h-48.1c-4.2 0-7.8-3.2-8.1-7.4C604 636.1 562.5 597 512 597s-92.1 39.1-95.8 88.6c-.3 4.2-3.9 7.4-8.1 7.4H360a8 8 0 0 1-8-8.4c4.4-84.3 74.5-151.6 160-151.6s155.6 67.3 160 151.6a8 8 0 0 1-8 8.4zm24-224a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'));
exports.FundFill = getIcon('fund', fill, getNode(newViewBox, 'M926 164H94c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V196c0-17.7-14.3-32-32-32zm-92.3 194.4l-297 297.2a8.03 8.03 0 0 1-11.3 0L410.9 541.1 238.4 713.7a8.03 8.03 0 0 1-11.3 0l-36.8-36.8a8.03 8.03 0 0 1 0-11.3l214.9-215c3.1-3.1 8.2-3.1 11.3 0L531 565l254.5-254.6c3.1-3.1 8.2-3.1 11.3 0l36.8 36.8c3.2 3 3.2 8.1.1 11.2z'));
exports.FunnelPlotFill = getIcon('funnel-plot', fill, getNode(newViewBox, 'M336.7 586h350.6l84.9-148H251.8zm543.4-432H143.9c-24.5 0-39.8 26.7-27.5 48L215 374h594l98.7-172c12.2-21.3-3.1-48-27.6-48zM349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V650H349v188z'));
exports.GiftFill = getIcon('gift', fill, getNode(newViewBox, 'M160 894c0 17.7 14.3 32 32 32h286V550H160v344zm386 32h286c17.7 0 32-14.3 32-32V550H546v376zm334-616H732.4c13.6-21.4 21.6-46.8 21.6-74 0-76.1-61.9-138-138-138-41.4 0-78.7 18.4-104 47.4-25.3-29-62.6-47.4-104-47.4-76.1 0-138 61.9-138 138 0 27.2 7.9 52.6 21.6 74H144c-17.7 0-32 14.3-32 32v140h366V310h68v172h366V342c0-17.7-14.3-32-32-32zm-402-4h-70c-38.6 0-70-31.4-70-70s31.4-70 70-70 70 31.4 70 70v70zm138 0h-70v-70c0-38.6 31.4-70 70-70s70 31.4 70 70-31.4 70-70 70z'));
exports.GithubFill = getIcon('github', fill, getNode(newViewBox, 'M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0 1 38.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z'));
exports.GitlabFill = getIcon('gitlab', fill, getNode(newViewBox, 'M910.5 553.2l-109-370.8c-6.8-20.4-23.1-34.1-44.9-34.1s-39.5 12.3-46.3 32.7l-72.2 215.4H386.2L314 181.1c-6.8-20.4-24.5-32.7-46.3-32.7s-39.5 13.6-44.9 34.1L113.9 553.2c-4.1 13.6 1.4 28.6 12.3 36.8l385.4 289 386.7-289c10.8-8.1 16.3-23.1 12.2-36.8z'));
exports.GoldenFill = getIcon('golden', fill, getNode(newViewBox, 'M905.9 806.7l-40.2-248c-.6-3.9-4-6.7-7.9-6.7H596.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8h342c.4 0 .9 0 1.3-.1 4.3-.7 7.3-4.8 6.6-9.2zm-470.2-248c-.6-3.9-4-6.7-7.9-6.7H166.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8h342c.4 0 .9 0 1.3-.1 4.4-.7 7.3-4.8 6.6-9.2l-40.2-248zM342 472h342c.4 0 .9 0 1.3-.1 4.4-.7 7.3-4.8 6.6-9.2l-40.2-248c-.6-3.9-4-6.7-7.9-6.7H382.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8z'));
exports.GoogleCircleFill = getIcon('google-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm167 633.6C638.4 735 583 757 516.9 757c-95.7 0-178.5-54.9-218.8-134.9C281.5 589 272 551.6 272 512s9.5-77 26.1-110.1c40.3-80.1 123.1-135 218.8-135 66 0 121.4 24.3 163.9 63.8L610.6 401c-25.4-24.3-57.7-36.6-93.6-36.6-63.8 0-117.8 43.1-137.1 101-4.9 14.7-7.7 30.4-7.7 46.6s2.8 31.9 7.7 46.6c19.3 57.9 73.3 101 137 101 33 0 61-8.7 82.9-23.4 26-17.4 43.2-43.3 48.9-74H516.9v-94.8h230.7c2.9 16.1 4.4 32.8 4.4 50.1 0 74.7-26.7 137.4-73 180.1z'));
exports.GooglePlusCircleFill = getIcon('google-plus-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm36.5 558.8c-43.9 61.8-132.1 79.8-200.9 53.3-69-26.3-118-99.2-112.1-173.5 1.5-90.9 85.2-170.6 176.1-167.5 43.6-2 84.6 16.9 118 43.6-14.3 16.2-29 31.8-44.8 46.3-40.1-27.7-97.2-35.6-137.3-3.6-57.4 39.7-60 133.4-4.8 176.1 53.7 48.7 155.2 24.5 170.1-50.1-33.6-.5-67.4 0-101-1.1-.1-20.1-.2-40.1-.1-60.2 56.2-.2 112.5-.3 168.8.2 3.3 47.3-3 97.5-32 136.5zM791 536.5c-16.8.2-33.6.3-50.4.4-.2 16.8-.3 33.6-.3 50.4H690c-.2-16.8-.2-33.5-.3-50.3-16.8-.2-33.6-.3-50.4-.5v-50.1c16.8-.2 33.6-.3 50.4-.3.1-16.8.3-33.6.4-50.4h50.2l.3 50.4c16.8.2 33.6.2 50.4.3v50.1z'));
exports.GooglePlusSquareFill = getIcon('google-plus-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM548.5 622.8c-43.9 61.8-132.1 79.8-200.9 53.3-69-26.3-118-99.2-112.1-173.5 1.5-90.9 85.2-170.6 176.1-167.5 43.6-2 84.6 16.9 118 43.6-14.3 16.2-29 31.8-44.8 46.3-40.1-27.7-97.2-35.6-137.3-3.6-57.4 39.7-60 133.4-4.8 176.1 53.7 48.7 155.2 24.5 170.1-50.1-33.6-.5-67.4 0-101-1.1-.1-20.1-.2-40.1-.1-60.2 56.2-.2 112.5-.3 168.8.2 3.3 47.3-3 97.5-32 136.5zM791 536.5c-16.8.2-33.6.3-50.4.4-.2 16.8-.3 33.6-.3 50.4H690c-.2-16.8-.2-33.5-.3-50.3-16.8-.2-33.6-.3-50.4-.5v-50.1c16.8-.2 33.6-.3 50.4-.3.1-16.8.3-33.6.4-50.4h50.2l.3 50.4c16.8.2 33.6.2 50.4.3v50.1z'));
exports.GoogleSquareFill = getIcon('google-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM679 697.6C638.4 735 583 757 516.9 757c-95.7 0-178.5-54.9-218.8-134.9A245.02 245.02 0 0 1 272 512c0-39.6 9.5-77 26.1-110.1 40.3-80.1 123.1-135 218.8-135 66 0 121.4 24.3 163.9 63.8L610.6 401c-25.4-24.3-57.7-36.6-93.6-36.6-63.8 0-117.8 43.1-137.1 101-4.9 14.7-7.7 30.4-7.7 46.6s2.8 31.9 7.7 46.6c19.3 57.9 73.3 101 137 101 33 0 61-8.7 82.9-23.4 26-17.4 43.2-43.3 48.9-74H516.9v-94.8h230.7c2.9 16.1 4.4 32.8 4.4 50.1 0 74.7-26.7 137.4-73 180.1z'));
exports.HddFill = getIcon('hdd', fill, getNode(newViewBox, 'M832 64H192c-17.7 0-32 14.3-32 32v224h704V96c0-17.7-14.3-32-32-32zM456 216c0 4.4-3.6 8-8 8H264c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zM160 928c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V704H160v224zm576-136c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zM160 640h704V384H160v256zm96-152c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H264c-4.4 0-8-3.6-8-8v-48z'));
exports.HeartFill = getIcon('heart', fill, getNode(newViewBox, 'M923 283.6a260.04 260.04 0 0 0-56.9-82.8 264.4 264.4 0 0 0-84-55.5A265.34 265.34 0 0 0 679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 0 0-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9z'));
exports.HighlightFill = getIcon('highlight', fill, getNode(newViewBox, 'M957.6 507.4L603.2 158.2a7.9 7.9 0 0 0-11.2 0L353.3 393.4a8.03 8.03 0 0 0-.1 11.3l.1.1 40 39.4-117.2 115.3a8.03 8.03 0 0 0-.1 11.3l.1.1 39.5 38.9-189.1 187H72.1c-4.4 0-8.1 3.6-8.1 8V860c0 4.4 3.6 8 8 8h344.9c2.1 0 4.1-.8 5.6-2.3l76.1-75.6 40.4 39.8a7.9 7.9 0 0 0 11.2 0l117.1-115.6 40.1 39.5a7.9 7.9 0 0 0 11.2 0l238.7-235.2c3.4-3 3.4-8 .3-11.2z'));
exports.HomeFill = getIcon('home', fill, getNode(newViewBox, 'M946.5 505L534.6 93.4a31.93 31.93 0 0 0-45.2 0L77.5 505c-12 12-18.8 28.3-18.8 45.3 0 35.3 28.7 64 64 64h43.4V908c0 17.7 14.3 32 32 32H448V716h112v224h265.9c17.7 0 32-14.3 32-32V614.3h43.4c17 0 33.3-6.7 45.3-18.8 24.9-25 24.9-65.5-.1-90.5z'));
exports.HourglassFill = getIcon('hourglass', fill, getNode(newViewBox, 'M742 318V184h86c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H196c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h86v134c0 81.5 42.4 153.2 106.4 194-64 40.8-106.4 112.5-106.4 194v134h-86c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h632c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-86V706c0-81.5-42.4-153.2-106.4-194 64-40.8 106.4-112.5 106.4-194z'));
exports.Html5Fill = getIcon('html5', fill, getNode(newViewBox, 'M145.2 96l66 746.6L512 928l299.6-85.4L878.9 96H145.2zm595 177.1l-4.8 47.2-1.7 19.5H382.3l8.2 94.2h335.1l-3.3 24.3-21.2 242.2-1.7 16.2-187 51.6v.3h-1.2l-.3.1v-.1h-.1l-188.6-52L310.8 572h91.1l6.5 73.2 102.4 27.7h.4l102-27.6 11.4-118.6H510.9v-.1H306l-22.8-253.5-1.7-24.3h460.3l-1.6 24.3z'));
exports.IdcardFill = getIcon('idcard', fill, getNode(newViewBox, 'M373 411c-28.5 0-51.7 23.3-51.7 52s23.2 52 51.7 52 51.7-23.3 51.7-52-23.2-52-51.7-52zm555-251H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zM608 420c0-4.4 1-8 2.3-8h123.4c1.3 0 2.3 3.6 2.3 8v48c0 4.4-1 8-2.3 8H610.3c-1.3 0-2.3-3.6-2.3-8v-48zm-86 253h-43.9c-4.2 0-7.6-3.3-7.9-7.5-3.8-50.5-46-90.5-97.2-90.5s-93.4 40-97.2 90.5c-.3 4.2-3.7 7.5-7.9 7.5H224a8 8 0 0 1-8-8.4c2.8-53.3 32-99.7 74.6-126.1a111.8 111.8 0 0 1-29.1-75.5c0-61.9 49.9-112 111.4-112s111.4 50.1 111.4 112c0 29.1-11 55.5-29.1 75.5 42.7 26.5 71.8 72.8 74.6 126.1.4 4.6-3.2 8.4-7.8 8.4zm278.9-53H615.1c-3.9 0-7.1-3.6-7.1-8v-48c0-4.4 3.2-8 7.1-8h185.7c3.9 0 7.1 3.6 7.1 8v48h.1c0 4.4-3.2 8-7.1 8z'));
exports.IeCircleFill = getIcon('ie-circle', fill, getNode(newViewBox, 'M693.6 284.4c-24 0-51.1 11.7-72.6 22 46.3 18 86 57.3 112.3 99.6 7.1-18.9 14.6-47.9 14.6-67.9 0-32-22.8-53.7-54.3-53.7zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm253.9 492.9H437.1c0 100.4 144.3 136 196.8 47.4h120.8c-32.6 91.7-119.7 146-216.8 146-35.1 0-70.3-.1-101.7-15.6-87.4 44.5-180.3 56.6-180.3-42 0-45.8 23.2-107.1 44-145C335 484 381.3 422.8 435.6 374.5c-43.7 18.9-91.1 66.3-122 101.2 25.9-112.8 129.5-193.6 237.1-186.5 130-59.8 209.7-34.1 209.7 38.6 0 27.4-10.6 63.3-21.4 87.9 25.2 45.5 33.3 97.6 26.9 141.2zM540.5 399.1c-53.7 0-102 39.7-104 94.9h208c-2-55.1-50.6-94.9-104-94.9zM320.6 602.9c-73 152.4 11.5 172.2 100.3 123.3-46.6-27.5-82.6-72.2-100.3-123.3z'));
exports.IeSquareFill = getIcon('ie-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM765.9 556.9H437.1c0 100.4 144.3 136 196.8 47.4h120.8c-32.6 91.7-119.7 146-216.8 146-35.1 0-70.3-.1-101.7-15.6-87.4 44.5-180.3 56.6-180.3-42 0-45.8 23.2-107.1 44-145C335 484 381.3 422.8 435.6 374.5c-43.7 18.9-91.1 66.3-122 101.2 25.9-112.8 129.5-193.6 237.1-186.5 130-59.8 209.7-34.1 209.7 38.6 0 27.4-10.6 63.3-21.4 87.9 25.2 45.5 33.3 97.6 26.9 141.2zm-72.3-272.5c-24 0-51.1 11.7-72.6 22 46.3 18 86 57.3 112.3 99.6 7.1-18.9 14.6-47.9 14.6-67.9 0-32-22.8-53.7-54.3-53.7zM540.5 399.1c-53.7 0-102 39.7-104 94.9h208c-2-55.1-50.6-94.9-104-94.9zM320.6 602.9c-73 152.4 11.5 172.2 100.3 123.3-46.6-27.5-82.6-72.2-100.3-123.3z'));
exports.InfoCircleFill = getIcon('info-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'));
exports.InstagramFill = getIcon('instagram', fill, getNode(newViewBox, 'M512 378.7c-73.4 0-133.3 59.9-133.3 133.3S438.6 645.3 512 645.3 645.3 585.4 645.3 512 585.4 378.7 512 378.7zM911.8 512c0-55.2.5-109.9-2.6-165-3.1-64-17.7-120.8-64.5-167.6-46.9-46.9-103.6-61.4-167.6-64.5-55.2-3.1-109.9-2.6-165-2.6-55.2 0-109.9-.5-165 2.6-64 3.1-120.8 17.7-167.6 64.5C132.6 226.3 118.1 283 115 347c-3.1 55.2-2.6 109.9-2.6 165s-.5 109.9 2.6 165c3.1 64 17.7 120.8 64.5 167.6 46.9 46.9 103.6 61.4 167.6 64.5 55.2 3.1 109.9 2.6 165 2.6 55.2 0 109.9.5 165-2.6 64-3.1 120.8-17.7 167.6-64.5 46.9-46.9 61.4-103.6 64.5-167.6 3.2-55.1 2.6-109.8 2.6-165zM512 717.1c-113.5 0-205.1-91.6-205.1-205.1S398.5 306.9 512 306.9 717.1 398.5 717.1 512 625.5 717.1 512 717.1zm213.5-370.7c-26.5 0-47.9-21.4-47.9-47.9s21.4-47.9 47.9-47.9 47.9 21.4 47.9 47.9a47.84 47.84 0 0 1-47.9 47.9z'));
exports.InsuranceFill = getIcon('insurance', fill, getNode(newViewBox, 'M519.9 358.8h97.9v41.6h-97.9zm347-188.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM411.3 656h-.2c0 4.4-3.6 8-8 8h-37.3c-4.4 0-8-3.6-8-8V471.4c-7.7 9.2-15.4 17.9-23.1 26a6.04 6.04 0 0 1-10.2-2.4l-13.2-43.5c-.6-2-.2-4.1 1.2-5.6 37-43.4 64.7-95.1 82.2-153.6 1.1-3.5 5-5.3 8.4-3.7l38.6 18.3c2.7 1.3 4.1 4.4 3.2 7.2a429.2 429.2 0 0 1-33.6 79V656zm296.5-49.2l-26.3 35.3a5.92 5.92 0 0 1-8.9.7c-30.6-29.3-56.8-65.2-78.1-106.9V656c0 4.4-3.6 8-8 8h-36.2c-4.4 0-8-3.6-8-8V536c-22 44.7-49 80.8-80.6 107.6a5.9 5.9 0 0 1-8.9-1.4L430 605.7a6 6 0 0 1 1.6-8.1c28.6-20.3 51.9-45.2 71-76h-55.1c-4.4 0-8-3.6-8-8V478c0-4.4 3.6-8 8-8h94.9v-18.6h-65.9c-4.4 0-8-3.6-8-8V316c0-4.4 3.6-8 8-8h184.7c4.4 0 8 3.6 8 8v127.2c0 4.4-3.6 8-8 8h-66.7v18.6h98.8c4.4 0 8 3.6 8 8v35.6c0 4.4-3.6 8-8 8h-59c18.1 29.1 41.8 54.3 72.3 76.9 2.6 2.1 3.2 5.9 1.2 8.5z'));
exports.InteractionFill = getIcon('interaction', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM726 585.7c0 55.3-44.7 100.1-99.7 100.1H420.6v53.4c0 5.7-6.5 8.8-10.9 5.3l-109.1-85.7c-3.5-2.7-3.5-8 0-10.7l109.1-85.7c4.4-3.5 10.9-.3 10.9 5.3v53.4h205.7c19.6 0 35.5-16 35.5-35.6v-78.9c0-3.7 3-6.8 6.8-6.8h50.7c3.7 0 6.8 3 6.8 6.8v79.1zm-2.6-209.9l-109.1 85.7c-4.4 3.5-10.9.3-10.9-5.3v-53.4H397.7c-19.6 0-35.5 16-35.5 35.6v78.9c0 3.7-3 6.8-6.8 6.8h-50.7c-3.7 0-6.8-3-6.8-6.8v-78.9c0-55.3 44.7-100.1 99.7-100.1h205.7v-53.4c0-5.7 6.5-8.8 10.9-5.3l109.1 85.7c3.6 2.5 3.6 7.8.1 10.5z'));
exports.InterationFill = getIcon('interation', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM726 585.7c0 55.3-44.7 100.1-99.7 100.1H420.6v53.4c0 5.7-6.5 8.8-10.9 5.3l-109.1-85.7c-3.5-2.7-3.5-8 0-10.7l109.1-85.7c4.4-3.5 10.9-.3 10.9 5.3v53.4h205.7c19.6 0 35.5-16 35.5-35.6v-78.9c0-3.7 3-6.8 6.8-6.8h50.7c3.7 0 6.8 3 6.8 6.8v79.1zm-2.6-209.9l-109.1 85.7c-4.4 3.5-10.9.3-10.9-5.3v-53.4H397.7c-19.6 0-35.5 16-35.5 35.6v78.9c0 3.7-3 6.8-6.8 6.8h-50.7c-3.7 0-6.8-3-6.8-6.8v-78.9c0-55.3 44.7-100.1 99.7-100.1h205.7v-53.4c0-5.7 6.5-8.8 10.9-5.3l109.1 85.7c3.6 2.5 3.6 7.8.1 10.5z'));
exports.LayoutFill = getIcon('layout', fill, getNode(newViewBox, 'M384 912h496c17.7 0 32-14.3 32-32V340H384v572zm496-800H384v164h528V144c0-17.7-14.3-32-32-32zm-768 32v736c0 17.7 14.3 32 32 32h176V112H144c-17.7 0-32 14.3-32 32z'));
exports.LeftCircleFill = getIcon('left-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm104 316.9c0 10.2-4.9 19.9-13.2 25.9L457.4 512l145.4 105.2c8.3 6 13.2 15.6 13.2 25.9V690c0 6.5-7.4 10.3-12.7 6.5l-246-178a7.95 7.95 0 0 1 0-12.9l246-178a8 8 0 0 1 12.7 6.5v46.8z'));
exports.LeftSquareFill = getIcon('left-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM624 380.9c0 10.2-4.9 19.9-13.2 25.9L465.4 512l145.4 105.2c8.3 6 13.2 15.6 13.2 25.9V690c0 6.5-7.4 10.3-12.7 6.5l-246-178a7.95 7.95 0 0 1 0-12.9l246-178c5.3-3.8 12.7 0 12.7 6.5v46.8z'));
exports.LikeFill = getIcon('like', fill, getNode(newViewBox, 'M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 0 0-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 0 0 471 99.9c-52 0-98 35-111.8 85.1l-85.9 311h-.3v428h472.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM112 528v364c0 17.7 14.3 32 32 32h65V496h-65c-17.7 0-32 14.3-32 32z'));
exports.LockFill = getIcon('lock', fill, getNode(newViewBox, 'M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM540 701v53c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-53a48.01 48.01 0 1 1 56 0zm152-237H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224z'));
exports.LinkedinFill = getIcon('linkedin', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM349.3 793.7H230.6V411.9h118.7v381.8zm-59.3-434a68.8 68.8 0 1 1 68.8-68.8c-.1 38-30.9 68.8-68.8 68.8zm503.7 434H675.1V608c0-44.3-.8-101.2-61.7-101.2-61.7 0-71.2 48.2-71.2 98v188.9H423.7V411.9h113.8v52.2h1.6c15.8-30 54.5-61.7 112.3-61.7 120.2 0 142.3 79.1 142.3 181.9v209.4z'));
exports.MailFill = getIcon('mail', fill, getNode(newViewBox, 'M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-80.8 108.9L531.7 514.4c-7.8 6.1-18.7 6.1-26.5 0L189.6 268.9A7.2 7.2 0 0 1 194 256h648.8a7.2 7.2 0 0 1 4.4 12.9z'));
exports.MedicineBoxFill = getIcon('medicine-box', fill, getNode(newViewBox, 'M839.2 278.1a32 32 0 0 0-30.4-22.1H736V144c0-17.7-14.3-32-32-32H320c-17.7 0-32 14.3-32 32v112h-72.8a31.9 31.9 0 0 0-30.4 22.1L112 502v378c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V502l-72.8-223.9zM660 628c0 4.4-3.6 8-8 8H544v108c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V636H372c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h108V464c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v108h108c4.4 0 8 3.6 8 8v48zm4-372H360v-72h304v72z'));
exports.MediumCircleFill = getIcon('medium-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm256 253.7l-40.8 39.1c-3.6 2.7-5.3 7.1-4.6 11.4v287.7c-.7 4.4 1 8.8 4.6 11.4l40 39.1v8.7H566.4v-8.3l41.3-40.1c4.1-4.1 4.1-5.3 4.1-11.4V422.5l-115 291.6h-15.5L347.5 422.5V618c-1.2 8.2 1.7 16.5 7.5 22.4l53.8 65.1v8.7H256v-8.7l53.8-65.1a26.1 26.1 0 0 0 7-22.4V392c.7-6.3-1.7-12.4-6.5-16.7l-47.8-57.6V309H411l114.6 251.5 100.9-251.3H768v8.5z'));
exports.MediumSquareFill = getIcon('medium-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM768 317.7l-40.8 39.1c-3.6 2.7-5.3 7.1-4.6 11.4v287.7c-.7 4.4 1 8.8 4.6 11.4l40 39.1v8.7H566.4v-8.3l41.3-40.1c4.1-4.1 4.1-5.3 4.1-11.4V422.5l-115 291.6h-15.5L347.5 422.5V618c-1.2 8.2 1.7 16.5 7.5 22.4l53.8 65.1v8.7H256v-8.7l53.8-65.1a26.1 26.1 0 0 0 7-22.4V392c.7-6.3-1.7-12.4-6.5-16.7l-47.8-57.6V309H411l114.6 251.5 100.9-251.3H768v8.5z'));
exports.MehFill = getIcon('meh', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM288 421a48.01 48.01 0 0 1 96 0 48.01 48.01 0 0 1-96 0zm384 200c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h304c4.4 0 8 3.6 8 8v48zm16-152a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'));
exports.MessageFill = getIcon('message', fill, getNode(newViewBox, 'M924.3 338.4a447.57 447.57 0 0 0-96.1-143.3 443.09 443.09 0 0 0-143-96.3A443.91 443.91 0 0 0 512 64h-2c-60.5.3-119 12.3-174.1 35.9a444.08 444.08 0 0 0-141.7 96.5 445 445 0 0 0-95 142.8A449.89 449.89 0 0 0 65 514.1c.3 69.4 16.9 138.3 47.9 199.9v152c0 25.4 20.6 46 45.9 46h151.8a447.72 447.72 0 0 0 199.5 48h2.1c59.8 0 117.7-11.6 172.3-34.3A443.2 443.2 0 0 0 827 830.5c41.2-40.9 73.6-88.7 96.3-142 23.5-55.2 35.5-113.9 35.8-174.5.2-60.9-11.6-120-34.8-175.6zM312.4 560c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.4 48-47.9 48zm199.6 0c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.5 48-47.9 48zm199.6 0c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.5 48-47.9 48z'));
exports.MinusCircleFill = getIcon('minus-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm192 472c0 4.4-3.6 8-8 8H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h368c4.4 0 8 3.6 8 8v48z'));
exports.MinusSquareFill = getIcon('minus-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM704 536c0 4.4-3.6 8-8 8H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h368c4.4 0 8 3.6 8 8v48z'));
exports.MobileFill = getIcon('mobile', fill, getNode(newViewBox, 'M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zM512 824c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40z'));
exports.MoneyCollectFill = getIcon('money-collect', fill, getNode(newViewBox, 'M911.5 699.7a8 8 0 0 0-10.3-4.8L840 717.2V179c0-37.6-30.4-68-68-68H252c-37.6 0-68 30.4-68 68v538.2l-61.3-22.3c-.9-.3-1.8-.5-2.7-.5-4.4 0-8 3.6-8 8V762c0 3.3 2.1 6.3 5.3 7.5L501 909.1c7.1 2.6 14.8 2.6 21.9 0l383.8-139.5c3.2-1.2 5.3-4.2 5.3-7.5v-59.6c0-1-.2-1.9-.5-2.8zm-243.8-377L564 514.3h57.6c4.4 0 8 3.6 8 8v27.1c0 4.4-3.6 8-8 8h-76.3v39h76.3c4.4 0 8 3.6 8 8v27.1c0 4.4-3.6 8-8 8h-76.3V703c0 4.4-3.6 8-8 8h-49.9c-4.4 0-8-3.6-8-8v-63.4h-76c-4.4 0-8-3.6-8-8v-27.1c0-4.4 3.6-8 8-8h76v-39h-76c-4.4 0-8-3.6-8-8v-27.1c0-4.4 3.6-8 8-8h57L356.5 322.8c-2.1-3.8-.7-8.7 3.2-10.8 1.2-.7 2.5-1 3.8-1h55.7a8 8 0 0 1 7.1 4.4L511 484.2h3.3L599 315.4c1.3-2.7 4.1-4.4 7.1-4.4h54.5c4.4 0 8 3.6 8.1 7.9 0 1.3-.4 2.6-1 3.8z'));
exports.PauseCircleFill = getIcon('pause-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-80 600c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V360c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v304zm224 0c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V360c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v304z'));
exports.PayCircleFill = getIcon('pay-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm166.6 246.8L567.5 515.6h62c4.4 0 8 3.6 8 8v29.9c0 4.4-3.6 8-8 8h-82V603h82c4.4 0 8 3.6 8 8v29.9c0 4.4-3.6 8-8 8h-82V717c0 4.4-3.6 8-8 8h-54.3c-4.4 0-8-3.6-8-8v-68.1h-81.7c-4.4 0-8-3.6-8-8V611c0-4.4 3.6-8 8-8h81.7v-41.5h-81.7c-4.4 0-8-3.6-8-8v-29.9c0-4.4 3.6-8 8-8h61.4L345.4 310.8a8.07 8.07 0 0 1 7-11.9h60.7c3 0 5.8 1.7 7.1 4.4l90.6 180h3.4l90.6-180a8 8 0 0 1 7.1-4.4h59.5c4.4 0 8 3.6 8 8 .2 1.4-.2 2.7-.8 3.9z'));
exports.NotificationFill = getIcon('notification', fill, getNode(newViewBox, 'M880 112c-3.8 0-7.7.7-11.6 2.3L292 345.9H128c-8.8 0-16 7.4-16 16.6v299c0 9.2 7.2 16.6 16 16.6h101.6c-3.7 11.6-5.6 23.9-5.6 36.4 0 65.9 53.8 119.5 120 119.5 55.4 0 102.1-37.6 115.9-88.4l408.6 164.2c3.9 1.5 7.8 2.3 11.6 2.3 16.9 0 32-14.2 32-33.2V145.2C912 126.2 897 112 880 112zM344 762.3c-26.5 0-48-21.4-48-47.8 0-11.2 3.9-21.9 11-30.4l84.9 34.1c-2 24.6-22.7 44.1-47.9 44.1z'));
exports.PhoneFill = getIcon('phone', fill, getNode(newViewBox, 'M885.6 230.2L779.1 123.8a80.83 80.83 0 0 0-57.3-23.8c-21.7 0-42.1 8.5-57.4 23.8L549.8 238.4a80.83 80.83 0 0 0-23.8 57.3c0 21.7 8.5 42.1 23.8 57.4l83.8 83.8A393.82 393.82 0 0 1 553.1 553 395.34 395.34 0 0 1 437 633.8L353.2 550a80.83 80.83 0 0 0-57.3-23.8c-21.7 0-42.1 8.5-57.4 23.8L123.8 664.5a80.89 80.89 0 0 0-23.8 57.4c0 21.7 8.5 42.1 23.8 57.4l106.3 106.3c24.4 24.5 58.1 38.4 92.7 38.4 7.3 0 14.3-.6 21.2-1.8 134.8-22.2 268.5-93.9 376.4-201.7C828.2 612.8 899.8 479.2 922.3 344c6.8-41.3-6.9-83.8-36.7-113.8z'));
exports.PictureFill = getIcon('picture', fill, getNode(newViewBox, 'M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zM338 304c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm513.9 437.1a8.11 8.11 0 0 1-5.2 1.9H177.2c-4.4 0-8-3.6-8-8 0-1.9.7-3.7 1.9-5.2l170.3-202c2.8-3.4 7.9-3.8 11.3-1 .3.3.7.6 1 1l99.4 118 158.1-187.5c2.8-3.4 7.9-3.8 11.3-1 .3.3.7.6 1 1l229.6 271.6c2.6 3.3 2.2 8.4-1.2 11.2z'));
exports.PieChartFill = getIcon('pie-chart', fill, getNode(newViewBox, 'M863.1 518.5H505.5V160.9c0-4.4-3.6-8-8-8h-26a398.57 398.57 0 0 0-282.5 117 397.47 397.47 0 0 0-85.6 127C82.6 446.2 72 498.5 72 552.5S82.6 658.7 103.4 708c20.1 47.5 48.9 90.3 85.6 127 36.7 36.7 79.4 65.5 127 85.6a396.64 396.64 0 0 0 155.6 31.5 398.57 398.57 0 0 0 282.5-117c36.7-36.7 65.5-79.4 85.6-127a396.64 396.64 0 0 0 31.5-155.6v-26c-.1-4.4-3.7-8-8.1-8zM951 463l-2.6-28.2c-8.5-92-49.3-178.8-115.1-244.3A398.5 398.5 0 0 0 588.4 75.6L560.1 73c-4.7-.4-8.7 3.2-8.7 7.9v383.7c0 4.4 3.6 8 8 8l383.6-1c4.7-.1 8.4-4 8-8.6z'));
exports.PlayCircleFill = getIcon('play-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm144.1 454.9L437.7 677.8a8.02 8.02 0 0 1-12.7-6.5V353.7a8 8 0 0 1 12.7-6.5L656.1 506a7.9 7.9 0 0 1 0 12.9z'));
exports.PlaySquareFill = getIcon('play-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM641.7 520.8L442.3 677.6c-7.4 5.8-18.3.6-18.3-8.8V355.3c0-9.4 10.9-14.7 18.3-8.8l199.4 156.7a11.2 11.2 0 0 1 0 17.6z'));
exports.PlusCircleFill = getIcon('plus-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm192 472c0 4.4-3.6 8-8 8H544v152c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V544H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h152V328c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v152h152c4.4 0 8 3.6 8 8v48z'));
exports.PlusSquareFill = getIcon('plus-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM704 536c0 4.4-3.6 8-8 8H544v152c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V544H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h152V328c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v152h152c4.4 0 8 3.6 8 8v48z'));
exports.PoundCircleFill = getIcon('pound-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm146 658c0 4.4-3.6 8-8 8H376.2c-4.4 0-8-3.6-8-8v-38.5c0-3.7 2.5-6.9 6.1-7.8 44-10.9 72.8-49 72.8-94.2 0-14.7-2.5-29.4-5.9-44.2H374c-4.4 0-8-3.6-8-8v-30c0-4.4 3.6-8 8-8h53.7c-7.8-25.1-14.6-50.7-14.6-77.1 0-75.8 58.6-120.3 151.5-120.3 26.5 0 51.4 5.5 70.3 12.7 3.1 1.2 5.2 4.2 5.2 7.5v39.5a8 8 0 0 1-10.6 7.6c-17.9-6.4-39-10.5-60.4-10.5-53.3 0-87.3 26.6-87.3 70.2 0 24.7 6.2 47.9 13.4 70.5h112c4.4 0 8 3.6 8 8v30c0 4.4-3.6 8-8 8h-98.6c3.1 13.2 5.3 26.9 5.3 41 0 40.7-16.5 73.9-43.9 91.1v4.7h180c4.4 0 8 3.6 8 8V722z'));
exports.PrinterFill = getIcon('printer', fill, getNode(newViewBox, 'M732 120c0-4.4-3.6-8-8-8H300c-4.4 0-8 3.6-8 8v148h440V120zm120 212H172c-44.2 0-80 35.8-80 80v328c0 17.7 14.3 32 32 32h168v132c0 4.4 3.6 8 8 8h424c4.4 0 8-3.6 8-8V772h168c17.7 0 32-14.3 32-32V412c0-44.2-35.8-80-80-80zM664 844H360V568h304v276zm164-360c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-40c0-4.4 3.6-8 8-8h40c4.4 0 8 3.6 8 8v40z'));
exports.ProfileFill = getIcon('profile', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM380 696c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm0-144c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm0-144c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm304 272c0 4.4-3.6 8-8 8H492c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zm0-144c0 4.4-3.6 8-8 8H492c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zm0-144c0 4.4-3.6 8-8 8H492c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48z'));
exports.ProjectFill = getIcon('project', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM368 744c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8V280c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v464zm192-280c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8V280c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v184zm192 72c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8V280c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v256z'));
exports.PushpinFill = getIcon('pushpin', fill, getNode(newViewBox, 'M878.3 392.1L631.9 145.7c-6.5-6.5-15-9.7-23.5-9.7s-17 3.2-23.5 9.7L423.8 306.9c-12.2-1.4-24.5-2-36.8-2-73.2 0-146.4 24.1-206.5 72.3-15.4 12.3-16.6 35.4-2.7 49.4l181.7 181.7-215.4 215.2a15.8 15.8 0 0 0-4.6 9.8l-3.4 37.2c-.9 9.4 6.6 17.4 15.9 17.4.5 0 1 0 1.5-.1l37.2-3.4c3.7-.3 7.2-2 9.8-4.6l215.4-215.4 181.7 181.7c6.5 6.5 15 9.7 23.5 9.7 9.7 0 19.3-4.2 25.9-12.4 56.3-70.3 79.7-158.3 70.2-243.4l161.1-161.1c12.9-12.8 12.9-33.8 0-46.8z'));
exports.PropertySafetyFill = getIcon('property-safety', fill, getNode(newViewBox, 'M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM648.3 332.8l-87.7 161.1h45.7c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4v29.7h63.4c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4V658c0 5.5-4.5 10-10 10h-41.3c-5.5 0-10-4.5-10-10v-51.8h-63.1c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h63.1v-29.7h-63.1c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h45.2l-88-161.1c-2.6-4.8-.9-10.9 4-13.6 1.5-.8 3.1-1.2 4.8-1.2h46c3.8 0 7.2 2.1 8.9 5.5l72.9 144.3 73.2-144.3a10 10 0 0 1 8.9-5.5h45c5.5 0 10 4.5 10 10 .1 1.7-.3 3.3-1.1 4.8z'));
exports.QqCircleFill = getIcon('qq-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm210.5 612.4c-11.5 1.4-44.9-52.7-44.9-52.7 0 31.3-16.2 72.2-51.1 101.8 16.9 5.2 54.9 19.2 45.9 34.4-7.3 12.3-125.6 7.9-159.8 4-34.2 3.8-152.5 8.3-159.8-4-9.1-15.2 28.9-29.2 45.8-34.4-35-29.5-51.1-70.4-51.1-101.8 0 0-33.4 54.1-44.9 52.7-5.4-.7-12.4-29.6 9.4-99.7 10.3-33 22-60.5 40.2-105.8-3.1-116.9 45.3-215 160.4-215 113.9 0 163.3 96.1 160.4 215 18.1 45.2 29.9 72.8 40.2 105.8 21.7 70.1 14.6 99.1 9.3 99.7z'));
exports.QqSquareFill = getIcon('qq-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM722.5 676.4c-11.5 1.4-44.9-52.7-44.9-52.7 0 31.3-16.2 72.2-51.1 101.8 16.9 5.2 54.9 19.2 45.9 34.4-7.3 12.3-125.6 7.9-159.8 4-34.2 3.8-152.5 8.3-159.8-4-9.1-15.2 28.9-29.2 45.8-34.4-35-29.5-51.1-70.4-51.1-101.8 0 0-33.4 54.1-44.9 52.7-5.4-.7-12.4-29.6 9.4-99.7 10.3-33 22-60.5 40.2-105.8-3.1-116.9 45.3-215 160.4-215 113.9 0 163.3 96.1 160.4 215 18.1 45.2 29.9 72.8 40.2 105.8 21.7 70.1 14.6 99.1 9.3 99.7z'));
exports.QuestionCircleFill = getIcon('question-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 708c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm62.9-219.5a48.3 48.3 0 0 0-30.9 44.8V620c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-21.5c0-23.1 6.7-45.9 19.9-64.9 12.9-18.6 30.9-32.8 52.1-40.9 34-13.1 56-41.6 56-72.7 0-44.1-43.1-80-96-80s-96 35.9-96 80v7.6c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V420c0-39.3 17.2-76 48.4-103.3C430.4 290.4 470 276 512 276s81.6 14.5 111.6 40.7C654.8 344 672 380.7 672 420c0 57.8-38.1 109.8-97.1 132.5z'));
exports.ReadFill = getIcon('read', fill, getNode(newViewBox, 'M928 161H699.2c-49.1 0-97.1 14.1-138.4 40.7L512 233l-48.8-31.3A255.2 255.2 0 0 0 324.8 161H96c-17.7 0-32 14.3-32 32v568c0 17.7 14.3 32 32 32h228.8c49.1 0 97.1 14.1 138.4 40.7l44.4 28.6c1.3.8 2.8 1.3 4.3 1.3s3-.4 4.3-1.3l44.4-28.6C602 807.1 650.1 793 699.2 793H928c17.7 0 32-14.3 32-32V193c0-17.7-14.3-32-32-32zM404 553.5c0 4.1-3.2 7.5-7.1 7.5H211.1c-3.9 0-7.1-3.4-7.1-7.5v-45c0-4.1 3.2-7.5 7.1-7.5h185.7c3.9 0 7.1 3.4 7.1 7.5v45zm0-140c0 4.1-3.2 7.5-7.1 7.5H211.1c-3.9 0-7.1-3.4-7.1-7.5v-45c0-4.1 3.2-7.5 7.1-7.5h185.7c3.9 0 7.1 3.4 7.1 7.5v45zm416 140c0 4.1-3.2 7.5-7.1 7.5H627.1c-3.9 0-7.1-3.4-7.1-7.5v-45c0-4.1 3.2-7.5 7.1-7.5h185.7c3.9 0 7.1 3.4 7.1 7.5v45zm0-140c0 4.1-3.2 7.5-7.1 7.5H627.1c-3.9 0-7.1-3.4-7.1-7.5v-45c0-4.1 3.2-7.5 7.1-7.5h185.7c3.9 0 7.1 3.4 7.1 7.5v45z'));
exports.ReconciliationFill = getIcon('reconciliation', fill, getNode(newViewBox, 'M676 623c-18.8 0-34 15.2-34 34s15.2 34 34 34 34-15.2 34-34-15.2-34-34-34zm204-455H668c0-30.9-25.1-56-56-56h-80c-30.9 0-56 25.1-56 56H264c-17.7 0-32 14.3-32 32v200h-88c-17.7 0-32 14.3-32 32v448c0 17.7 14.3 32 32 32h336c17.7 0 32-14.3 32-32v-16h368c17.7 0 32-14.3 32-32V200c0-17.7-14.3-32-32-32zM448 848H176V616h272v232zm0-296H176v-88h272v88zm20-272v-48h72v-56h64v56h72v48H468zm180 168v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8zm28 301c-50.8 0-92-41.2-92-92s41.2-92 92-92 92 41.2 92 92-41.2 92-92 92zm92-245c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-96c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v96zm-92 61c-50.8 0-92 41.2-92 92s41.2 92 92 92 92-41.2 92-92-41.2-92-92-92zm0 126c-18.8 0-34-15.2-34-34s15.2-34 34-34 34 15.2 34 34-15.2 34-34 34z'));
exports.RedEnvelopeFill = getIcon('red-envelope', fill, getNode(newViewBox, 'M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zM647 470.4l-87.2 161h45.9c4.6 0 8.4 3.8 8.4 8.4v25.1c0 4.6-3.8 8.4-8.4 8.4h-63.3v28.6h63.3c4.6 0 8.4 3.8 8.4 8.4v25c.2 4.6-3.6 8.5-8.2 8.5h-63.3v49.9c0 4.6-3.8 8.4-8.4 8.4h-43.7c-4.6 0-8.4-3.8-8.4-8.4v-49.9h-63c-4.6 0-8.4-3.8-8.4-8.4v-25.1c0-4.6 3.8-8.4 8.4-8.4h63v-28.6h-63c-4.6 0-8.4-3.8-8.4-8.4v-25.1c0-4.6 3.8-8.4 8.4-8.4h45.4l-87.5-161c-2.2-4.1-.7-9.1 3.4-11.4 1.3-.6 2.6-1 3.9-1h48.8c3.2 0 6.1 1.8 7.5 4.6l71.9 141.8 71.9-141.9a8.5 8.5 0 0 1 7.5-4.6h47.8c4.6 0 8.4 3.8 8.4 8.4-.1 1.5-.5 2.9-1.1 4.1zM512.6 323L289 148h446L512.6 323z'));
exports.RedditCircleFill = getIcon('reddit-circle', fill, getNode(newViewBox, 'M584 548a36 36 0 1 0 72 0 36 36 0 1 0-72 0zm144-108a35.9 35.9 0 0 0-32.5 20.6c18.8 14.3 34.4 30.7 45.9 48.8A35.98 35.98 0 0 0 728 440zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm245 477.9c4.6 13.5 7 27.6 7 42.1 0 99.4-112.8 180-252 180s-252-80.6-252-180c0-14.5 2.4-28.6 7-42.1A72.01 72.01 0 0 1 296 404c27.1 0 50.6 14.9 62.9 37 36.2-19.8 80.2-32.8 128.1-36.1l58.4-131.1c4.3-9.8 15.2-14.8 25.5-11.8l91.6 26.5a54.03 54.03 0 0 1 101.6 25.6c0 29.8-24.2 54-54 54-23.5 0-43.5-15.1-50.9-36.1L577 308.3l-43 96.5c49.1 3 94.2 16.1 131.2 36.3 12.3-22.1 35.8-37 62.9-37 39.8 0 72 32.2 72 72-.1 29.3-17.8 54.6-43.1 65.8zm-171.3 83c-14.9 11.7-44.3 24.3-73.7 24.3s-58.9-12.6-73.7-24.3c-9.3-7.3-22.7-5.7-30 3.6-7.3 9.3-5.7 22.7 3.6 30 25.7 20.4 65 33.5 100.1 33.5 35.1 0 74.4-13.1 100.2-33.5 9.3-7.3 10.9-20.8 3.6-30a21.46 21.46 0 0 0-30.1-3.6zM296 440a35.98 35.98 0 0 0-13.4 69.4c11.5-18.1 27.1-34.5 45.9-48.8A35.9 35.9 0 0 0 296 440zm72 108a36 36 0 1 0 72 0 36 36 0 1 0-72 0z'));
exports.RedditSquareFill = getIcon('reddit-square', fill, getNode(newViewBox, 'M296 440a35.98 35.98 0 0 0-13.4 69.4c11.5-18.1 27.1-34.5 45.9-48.8A35.9 35.9 0 0 0 296 440zm289.7 184.9c-14.9 11.7-44.3 24.3-73.7 24.3s-58.9-12.6-73.7-24.3c-9.3-7.3-22.7-5.7-30 3.6-7.3 9.3-5.7 22.7 3.6 30 25.7 20.4 65 33.5 100.1 33.5 35.1 0 74.4-13.1 100.2-33.5 9.3-7.3 10.9-20.8 3.6-30a21.46 21.46 0 0 0-30.1-3.6zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM757 541.9c4.6 13.5 7 27.6 7 42.1 0 99.4-112.8 180-252 180s-252-80.6-252-180c0-14.5 2.4-28.6 7-42.1A72.01 72.01 0 0 1 296 404c27.1 0 50.6 14.9 62.9 37 36.2-19.8 80.2-32.8 128.1-36.1l58.4-131.1c4.3-9.8 15.2-14.8 25.5-11.8l91.6 26.5a54.03 54.03 0 0 1 101.6 25.6c0 29.8-24.2 54-54 54-23.5 0-43.5-15.1-50.9-36.1L577 308.3l-43 96.5c49.1 3 94.2 16.1 131.2 36.3 12.3-22.1 35.8-37 62.9-37 39.8 0 72 32.2 72 72-.1 29.3-17.8 54.6-43.1 65.8zM584 548a36 36 0 1 0 72 0 36 36 0 1 0-72 0zm144-108a35.9 35.9 0 0 0-32.5 20.6c18.8 14.3 34.4 30.7 45.9 48.8A35.98 35.98 0 0 0 728 440zM368 548a36 36 0 1 0 72 0 36 36 0 1 0-72 0z'));
exports.RestFill = getIcon('rest', fill, getNode(newViewBox, 'M832 256h-28.1l-35.7-120.9c-4-13.7-16.5-23.1-30.7-23.1h-451c-14.3 0-26.8 9.4-30.7 23.1L220.1 256H192c-17.7 0-32 14.3-32 32v28c0 4.4 3.6 8 8 8h45.8l47.7 558.7a32 32 0 0 0 31.9 29.3h429.2a32 32 0 0 0 31.9-29.3L802.2 324H856c4.4 0 8-3.6 8-8v-28c0-17.7-14.3-32-32-32zM508 704c-79.5 0-144-64.5-144-144s64.5-144 144-144 144 64.5 144 144-64.5 144-144 144zM291 256l22.4-76h397.2l22.4 76H291zm137 304a80 80 0 1 0 160 0 80 80 0 1 0-160 0z'));
exports.RightCircleFill = getIcon('right-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm154.7 454.5l-246 178c-5.3 3.8-12.7 0-12.7-6.5v-46.9c0-10.2 4.9-19.9 13.2-25.9L566.6 512 421.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.8 0 13z'));
exports.RocketFill = getIcon('rocket', fill, getNode(newViewBox, 'M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 0 0-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0 0 43.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0 0 43.1-30.5 97.52 97.52 0 0 0 21.4-60.8c0-8.4-1.1-16.4-3.1-23.8L864 736zM512 352a48.01 48.01 0 0 1 0 96 48.01 48.01 0 0 1 0-96zm116.1 432.2c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5s-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 0 1-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5z'));
exports.RightSquareFill = getIcon('right-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM658.7 518.5l-246 178c-5.3 3.8-12.7 0-12.7-6.5v-46.9c0-10.2 4.9-19.9 13.2-25.9L558.6 512 413.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.8 0 13z'));
exports.SafetyCertificateFill = getIcon('safety-certificate', fill, getNode(newViewBox, 'M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM694.5 340.7L481.9 633.4a16.1 16.1 0 0 1-26 0l-126.4-174c-3.8-5.3 0-12.7 6.5-12.7h55.2c5.1 0 10 2.5 13 6.6l64.7 89 150.9-207.8c3-4.1 7.8-6.6 13-6.6H688c6.5.1 10.3 7.5 6.5 12.8z'));
exports.SaveFill = getIcon('save', fill, getNode(newViewBox, 'M893.3 293.3L730.7 130.7c-12-12-28.3-18.7-45.3-18.7H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 176h256v112H384V176zm128 554c-79.5 0-144-64.5-144-144s64.5-144 144-144 144 64.5 144 144-64.5 144-144 144zm0-224c-44.2 0-80 35.8-80 80s35.8 80 80 80 80-35.8 80-80-35.8-80-80-80z'));
exports.ScheduleFill = getIcon('schedule', fill, getNode(newViewBox, 'M928 224H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zM424 688c0 4.4-3.6 8-8 8H232c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zm0-136c0 4.4-3.6 8-8 8H232c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zm374.5-91.3l-165 228.7a15.9 15.9 0 0 1-25.8 0L493.5 531.2c-3.8-5.3 0-12.7 6.5-12.7h54.9c5.1 0 9.9 2.5 12.9 6.6l52.8 73.1 103.7-143.7c3-4.2 7.8-6.6 12.9-6.6H792c6.5.1 10.3 7.5 6.5 12.8z'));
exports.SecurityScanFill = getIcon('security-scan', fill, getNode(newViewBox, 'M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM626.8 554c-48.5 48.5-123 55.2-178.6 20.1l-77.5 77.5a8.03 8.03 0 0 1-11.3 0l-34-34a8.03 8.03 0 0 1 0-11.3l77.5-77.5c-35.1-55.7-28.4-130.1 20.1-178.6 56.3-56.3 147.5-56.3 203.8 0 56.3 56.3 56.3 147.5 0 203.8zm-158.54-45.27a80.1 80.1 0 1 0 113.27-113.28 80.1 80.1 0 1 0-113.27 113.28z'));
exports.SettingFill = getIcon('setting', fill, getNode(newViewBox, 'M512.5 390.6c-29.9 0-57.9 11.6-79.1 32.8-21.1 21.2-32.8 49.2-32.8 79.1 0 29.9 11.7 57.9 32.8 79.1 21.2 21.1 49.2 32.8 79.1 32.8 29.9 0 57.9-11.7 79.1-32.8 21.1-21.2 32.8-49.2 32.8-79.1 0-29.9-11.7-57.9-32.8-79.1a110.96 110.96 0 0 0-79.1-32.8zm412.3 235.5l-65.4-55.9c3.1-19 4.7-38.4 4.7-57.7s-1.6-38.8-4.7-57.7l65.4-55.9a32.03 32.03 0 0 0 9.3-35.2l-.9-2.6a442.5 442.5 0 0 0-79.6-137.7l-1.8-2.1a32.12 32.12 0 0 0-35.1-9.5l-81.2 28.9c-30-24.6-63.4-44-99.6-57.5l-15.7-84.9a32.05 32.05 0 0 0-25.8-25.7l-2.7-.5c-52-9.4-106.8-9.4-158.8 0l-2.7.5a32.05 32.05 0 0 0-25.8 25.7l-15.8 85.3a353.44 353.44 0 0 0-98.9 57.3l-81.8-29.1a32 32 0 0 0-35.1 9.5l-1.8 2.1a445.93 445.93 0 0 0-79.6 137.7l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.2 56.5c-3.1 18.8-4.6 38-4.6 57 0 19.2 1.5 38.4 4.6 57l-66 56.5a32.03 32.03 0 0 0-9.3 35.2l.9 2.6c18.1 50.3 44.8 96.8 79.6 137.7l1.8 2.1a32.12 32.12 0 0 0 35.1 9.5l81.8-29.1c29.8 24.5 63 43.9 98.9 57.3l15.8 85.3a32.05 32.05 0 0 0 25.8 25.7l2.7.5a448.27 448.27 0 0 0 158.8 0l2.7-.5a32.05 32.05 0 0 0 25.8-25.7l15.7-84.9c36.2-13.6 69.6-32.9 99.6-57.5l81.2 28.9a32 32 0 0 0 35.1-9.5l1.8-2.1c34.8-41.1 61.5-87.4 79.6-137.7l.9-2.6c4.3-12.4.6-26.3-9.5-35zm-412.3 52.2c-97.1 0-175.8-78.7-175.8-175.8s78.7-175.8 175.8-175.8 175.8 78.7 175.8 175.8-78.7 175.8-175.8 175.8z'));
exports.ShopFill = getIcon('shop', fill, getNode(newViewBox, 'M882 272.1V144c0-17.7-14.3-32-32-32H174c-17.7 0-32 14.3-32 32v128.1c-16.7 1-30 14.9-30 31.9v131.7a177 177 0 0 0 14.4 70.4c4.3 10.2 9.6 19.8 15.6 28.9v345c0 17.6 14.3 32 32 32h274V736h128v176h274c17.7 0 32-14.3 32-32V535a175 175 0 0 0 15.6-28.9c9.5-22.3 14.4-46 14.4-70.4V304c0-17-13.3-30.9-30-31.9zm-72 568H640V704c0-17.7-14.3-32-32-32H416c-17.7 0-32 14.3-32 32v136.1H214V597.9c2.9 1.4 5.9 2.8 9 4 22.3 9.4 46 14.1 70.4 14.1s48-4.7 70.4-14.1c13.8-5.8 26.8-13.2 38.7-22.1.2-.1.4-.1.6 0a180.4 180.4 0 0 0 38.7 22.1c22.3 9.4 46 14.1 70.4 14.1 24.4 0 48-4.7 70.4-14.1 13.8-5.8 26.8-13.2 38.7-22.1.2-.1.4-.1.6 0a180.4 180.4 0 0 0 38.7 22.1c22.3 9.4 46 14.1 70.4 14.1 24.4 0 48-4.7 70.4-14.1 3-1.3 6-2.6 9-4v242.2zm0-568.1H214v-88h596v88z'));
exports.ShoppingFill = getIcon('shopping', fill, getNode(newViewBox, 'M832 312H696v-16c0-101.6-82.4-184-184-184s-184 82.4-184 184v16H192c-17.7 0-32 14.3-32 32v536c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V344c0-17.7-14.3-32-32-32zm-208 0H400v-16c0-61.9 50.1-112 112-112s112 50.1 112 112v16z'));
exports.SketchCircleFill = getIcon('sketch-circle', fill, getNode(newViewBox, 'M582.3 625.6l147.9-166.3h-63.4zm90-202.3h62.5l-92.1-115.1zm-274.7 36L512 684.5l114.4-225.2zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm286.7 380.2L515.8 762.3c-1 1.1-2.4 1.7-3.8 1.7s-2.8-.6-3.8-1.7L225.3 444.2a5.14 5.14 0 0 1-.2-6.6L365.6 262c1-1.2 2.4-1.9 4-1.9h284.6c1.6 0 3 .7 4 1.9l140.5 175.6a4.9 4.9 0 0 1 0 6.6zm-190.5-20.9L512 326.1l-96.2 97.2zM420.3 301.1l-23.1 89.8 88.8-89.8zm183.4 0H538l88.8 89.8zm-222.4 7.1l-92.1 115.1h62.5zm-87.5 151.1l147.9 166.3-84.5-166.3z'));
exports.SketchSquareFill = getIcon('sketch-square', fill, getNode(newViewBox, 'M608.2 423.3L512 326.1l-96.2 97.2zm-25.9 202.3l147.9-166.3h-63.4zm90-202.3h62.5l-92.1-115.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-81.3 332.2L515.8 762.3c-1 1.1-2.4 1.7-3.8 1.7s-2.8-.6-3.8-1.7L225.3 444.2a5.14 5.14 0 0 1-.2-6.6L365.6 262c1-1.2 2.4-1.9 4-1.9h284.6c1.6 0 3 .7 4 1.9l140.5 175.6a4.9 4.9 0 0 1 0 6.6zm-401.1 15.1L512 684.5l114.4-225.2zm-16.3-151.1l-92.1 115.1h62.5zm-87.5 151.1l147.9 166.3-84.5-166.3zm126.5-158.2l-23.1 89.8 88.8-89.8zm183.4 0H538l88.8 89.8z'));
exports.SkinFill = getIcon('skin', fill, getNode(newViewBox, 'M870 126H663.8c-17.4 0-32.9 11.9-37 29.3C614.3 208.1 567 246 512 246s-102.3-37.9-114.8-90.7a37.93 37.93 0 0 0-37-29.3H154a44 44 0 0 0-44 44v252a44 44 0 0 0 44 44h75v388a44 44 0 0 0 44 44h478a44 44 0 0 0 44-44V466h75a44 44 0 0 0 44-44V170a44 44 0 0 0-44-44z'));
exports.SlackCircleFill = getIcon('slack-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM361.5 580.2c0 27.8-22.5 50.4-50.3 50.4a50.35 50.35 0 0 1-50.3-50.4c0-27.8 22.5-50.4 50.3-50.4h50.3v50.4zm134 134.4c0 27.8-22.5 50.4-50.3 50.4-27.8 0-50.3-22.6-50.3-50.4V580.2c0-27.8 22.5-50.4 50.3-50.4a50.35 50.35 0 0 1 50.3 50.4v134.4zm-50.2-218.4h-134c-27.8 0-50.3-22.6-50.3-50.4 0-27.8 22.5-50.4 50.3-50.4h134c27.8 0 50.3 22.6 50.3 50.4-.1 27.9-22.6 50.4-50.3 50.4zm0-134.4c-13.3 0-26.1-5.3-35.6-14.8S395 324.8 395 311.4c0-27.8 22.5-50.4 50.3-50.4 27.8 0 50.3 22.6 50.3 50.4v50.4h-50.3zm83.7-50.4c0-27.8 22.5-50.4 50.3-50.4 27.8 0 50.3 22.6 50.3 50.4v134.4c0 27.8-22.5 50.4-50.3 50.4-27.8 0-50.3-22.6-50.3-50.4V311.4zM579.3 765c-27.8 0-50.3-22.6-50.3-50.4v-50.4h50.3c27.8 0 50.3 22.6 50.3 50.4 0 27.8-22.5 50.4-50.3 50.4zm134-134.4h-134c-13.3 0-26.1-5.3-35.6-14.8S529 593.6 529 580.2c0-27.8 22.5-50.4 50.3-50.4h134c27.8 0 50.3 22.6 50.3 50.4 0 27.8-22.5 50.4-50.3 50.4zm0-134.4H663v-50.4c0-27.8 22.5-50.4 50.3-50.4s50.3 22.6 50.3 50.4c0 27.8-22.5 50.4-50.3 50.4z'));
exports.SlackSquareFill = getIcon('slack-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM529 311.4c0-27.8 22.5-50.4 50.3-50.4 27.8 0 50.3 22.6 50.3 50.4v134.4c0 27.8-22.5 50.4-50.3 50.4-27.8 0-50.3-22.6-50.3-50.4V311.4zM361.5 580.2c0 27.8-22.5 50.4-50.3 50.4a50.35 50.35 0 0 1-50.3-50.4c0-27.8 22.5-50.4 50.3-50.4h50.3v50.4zm134 134.4c0 27.8-22.5 50.4-50.3 50.4-27.8 0-50.3-22.6-50.3-50.4V580.2c0-27.8 22.5-50.4 50.3-50.4a50.35 50.35 0 0 1 50.3 50.4v134.4zm-50.2-218.4h-134c-27.8 0-50.3-22.6-50.3-50.4 0-27.8 22.5-50.4 50.3-50.4h134c27.8 0 50.3 22.6 50.3 50.4-.1 27.9-22.6 50.4-50.3 50.4zm0-134.4c-13.3 0-26.1-5.3-35.6-14.8S395 324.8 395 311.4c0-27.8 22.5-50.4 50.3-50.4 27.8 0 50.3 22.6 50.3 50.4v50.4h-50.3zm134 403.2c-27.8 0-50.3-22.6-50.3-50.4v-50.4h50.3c27.8 0 50.3 22.6 50.3 50.4 0 27.8-22.5 50.4-50.3 50.4zm134-134.4h-134a50.35 50.35 0 0 1-50.3-50.4c0-27.8 22.5-50.4 50.3-50.4h134c27.8 0 50.3 22.6 50.3 50.4 0 27.8-22.5 50.4-50.3 50.4zm0-134.4H663v-50.4c0-27.8 22.5-50.4 50.3-50.4s50.3 22.6 50.3 50.4c0 27.8-22.5 50.4-50.3 50.4z'));
exports.SkypeFill = getIcon('skype', fill, getNode(newViewBox, 'M883.7 578.6c4.1-22.5 6.3-45.5 6.3-68.5 0-51-10-100.5-29.7-147-19-45-46.3-85.4-81-120.1a375.79 375.79 0 0 0-120.1-80.9c-46.6-19.7-96-29.7-147-29.7-24 0-48.1 2.3-71.5 6.8A225.1 225.1 0 0 0 335.6 113c-59.7 0-115.9 23.3-158.1 65.5A222.25 222.25 0 0 0 112 336.6c0 38 9.8 75.4 28.1 108.4-3.7 21.4-5.7 43.3-5.7 65.1 0 51 10 100.5 29.7 147 19 45 46.2 85.4 80.9 120.1 34.7 34.7 75.1 61.9 120.1 80.9 46.6 19.7 96 29.7 147 29.7 22.2 0 44.4-2 66.2-5.9 33.5 18.9 71.3 29 110 29 59.7 0 115.9-23.2 158.1-65.5 42.3-42.2 65.5-98.4 65.5-158.1.1-38-9.7-75.5-28.2-108.7zm-370 162.9c-134.2 0-194.2-66-194.2-115.4 0-25.4 18.7-43.1 44.5-43.1 57.4 0 42.6 82.5 149.7 82.5 54.9 0 85.2-29.8 85.2-60.3 0-18.3-9-38.7-45.2-47.6l-119.4-29.8c-96.1-24.1-113.6-76.1-113.6-124.9 0-101.4 95.5-139.5 185.2-139.5 82.6 0 180 45.7 180 106.5 0 26.1-22.6 41.2-48.4 41.2-49 0-40-67.8-138.7-67.8-49 0-76.1 22.2-76.1 53.9s38.7 41.8 72.3 49.5l88.4 19.6c96.8 21.6 121.3 78.1 121.3 131.3 0 82.3-63.3 143.9-191 143.9z'));
exports.SlidersFill = getIcon('sliders', fill, getNode(newViewBox, 'M904 296h-66v-96c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v96h-66c-4.4 0-8 3.6-8 8v416c0 4.4 3.6 8 8 8h66v96c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-96h66c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8zm-584-72h-66v-56c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v56h-66c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8h66v56c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-56h66c4.4 0 8-3.6 8-8V232c0-4.4-3.6-8-8-8zm292 180h-66V232c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v172h-66c-4.4 0-8 3.6-8 8v200c0 4.4 3.6 8 8 8h66v172c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V620h66c4.4 0 8-3.6 8-8V412c0-4.4-3.6-8-8-8z'));
exports.SmileFill = getIcon('smile', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM288 421a48.01 48.01 0 0 1 96 0 48.01 48.01 0 0 1-96 0zm224 272c-85.5 0-155.6-67.3-160-151.6a8 8 0 0 1 8-8.4h48.1c4.2 0 7.8 3.2 8.1 7.4C420 589.9 461.5 629 512 629s92.1-39.1 95.8-88.6c.3-4.2 3.9-7.4 8.1-7.4H664a8 8 0 0 1 8 8.4C667.6 625.7 597.5 693 512 693zm176-224a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'));
exports.SnippetsFill = getIcon('snippets', fill, getNode(newViewBox, 'M832 112H724V72c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v40H500V72c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v40H320c-17.7 0-32 14.3-32 32v120h-96c-17.7 0-32 14.3-32 32v632c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32v-96h96c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM664 486H514V336h.2L664 485.8v.2zm128 274h-56V456L544 264H360v-80h68v32c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-32h152v32c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-32h68v576z'));
exports.SoundFill = getIcon('sound', fill, getNode(newViewBox, 'M892.1 737.8l-110.3-63.7a15.9 15.9 0 0 0-21.7 5.9l-19.9 34.5c-4.4 7.6-1.8 17.4 5.8 21.8L856.3 800a15.9 15.9 0 0 0 21.7-5.9l19.9-34.5c4.4-7.6 1.7-17.4-5.8-21.8zM760 344a15.9 15.9 0 0 0 21.7 5.9L892 286.2c7.6-4.4 10.2-14.2 5.8-21.8L878 230a15.9 15.9 0 0 0-21.7-5.9L746 287.8a15.99 15.99 0 0 0-5.8 21.8L760 344zm174 132H806c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16h128c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16zM625.9 115c-5.9 0-11.9 1.6-17.4 5.3L254 352H90c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h164l354.5 231.7c5.5 3.6 11.6 5.3 17.4 5.3 16.7 0 32.1-13.3 32.1-32.1V147.1c0-18.8-15.4-32.1-32.1-32.1z'));
exports.StarFill = getIcon('star', fill, getNode(newViewBox, 'M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 0 0 .6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0 0 46.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z'));
exports.StepBackwardFill = getIcon('step-backward', fill, getNode(normalViewBox, 'M347.6 528.95l383.2 301.02c14.25 11.2 35.2 1.1 35.2-16.95V210.97c0-18.05-20.95-28.14-35.2-16.94L347.6 495.05a21.53 21.53 0 0 0 0 33.9M330 864h-64a8 8 0 0 1-8-8V168a8 8 0 0 1 8-8h64a8 8 0 0 1 8 8v688a8 8 0 0 1-8 8'));
exports.StepForwardFill = getIcon('step-forward', fill, getNode(normalViewBox, 'M676.4 528.95L293.2 829.97c-14.25 11.2-35.2 1.1-35.2-16.95V210.97c0-18.05 20.95-28.14 35.2-16.94l383.2 301.02a21.53 21.53 0 0 1 0 33.9M694 864h64a8 8 0 0 0 8-8V168a8 8 0 0 0-8-8h-64a8 8 0 0 0-8 8v688a8 8 0 0 0 8 8'));
exports.StopFill = getIcon('stop', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm234.8 736.5L223.5 277.2c16-19.7 34-37.7 53.7-53.7l523.3 523.3c-16 19.6-34 37.7-53.7 53.7z'));
exports.SwitcherFill = getIcon('switcher', fill, getNode(newViewBox, 'M752 240H144c-17.7 0-32 14.3-32 32v608c0 17.7 14.3 32 32 32h608c17.7 0 32-14.3 32-32V272c0-17.7-14.3-32-32-32zM596 606c0 4.4-3.6 8-8 8H308c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h280c4.4 0 8 3.6 8 8v48zm284-494H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h576v576c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V144c0-17.7-14.3-32-32-32z'));
exports.TabletFill = getIcon('tablet', fill, getNode(newViewBox, 'M800 64H224c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h576c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64zM512 824c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40z'));
exports.TagFill = getIcon('tag', fill, getNode(newViewBox, 'M938 458.8l-29.6-312.6c-1.5-16.2-14.4-29-30.6-30.6L565.2 86h-.4c-3.2 0-5.7 1-7.6 2.9L88.9 557.2a9.96 9.96 0 0 0 0 14.1l363.8 363.8c1.9 1.9 4.4 2.9 7.1 2.9s5.2-1 7.1-2.9l468.3-468.3c2-2.1 3-5 2.8-8zM699 387c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64z'));
exports.TagsFill = getIcon('tags', fill, getNode(newViewBox, 'M483.2 790.3L861.4 412c1.7-1.7 2.5-4 2.3-6.3l-25.5-301.4c-.7-7.8-6.8-13.9-14.6-14.6L522.2 64.3c-2.3-.2-4.7.6-6.3 2.3L137.7 444.8a8.03 8.03 0 0 0 0 11.3l334.2 334.2c3.1 3.2 8.2 3.2 11.3 0zm122.7-533.4c18.7-18.7 49.1-18.7 67.9 0 18.7 18.7 18.7 49.1 0 67.9-18.7 18.7-49.1 18.7-67.9 0-18.7-18.7-18.7-49.1 0-67.9zm283.8 282.9l-39.6-39.5a8.03 8.03 0 0 0-11.3 0l-362 361.3-237.6-237a8.03 8.03 0 0 0-11.3 0l-39.6 39.5a8.03 8.03 0 0 0 0 11.3l243.2 242.8 39.6 39.5c3.1 3.1 8.2 3.1 11.3 0l407.3-406.6c3.1-3.1 3.1-8.2 0-11.3z'));
exports.TaobaoCircleFill = getIcon('taobao-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM315.7 291.5c27.3 0 49.5 22.1 49.5 49.4s-22.1 49.4-49.5 49.4a49.4 49.4 0 1 1 0-98.8zM366.9 578c-13.6 42.3-10.2 26.7-64.4 144.5l-78.5-49s87.7-79.8 105.6-116.2c19.2-38.4-21.1-58.9-21.1-58.9l-60.2-37.5 32.7-50.2c45.4 33.7 48.7 36.6 79.2 67.2 23.8 23.9 20.7 56.8 6.7 100.1zm427.2 55c-15.3 143.8-202.4 90.3-202.4 90.3l10.2-41.1 43.3 9.3c80 5 72.3-64.9 72.3-64.9V423c.6-77.3-72.6-85.4-204.2-38.3l30.6 8.3c-2.5 9-12.5 23.2-25.2 38.6h176v35.6h-99.1v44.5h98.7v35.7h-98.7V622c14.9-4.8 28.6-11.5 40.5-20.5l-8.7-32.5 46.5-14.4 38.8 94.9-57.3 23.9-10.2-37.8c-25.6 19.5-78.8 48-171.8 45.4-99.2 2.6-73.7-112-73.7-112l2.5-1.3H472c-.5 14.7-6.6 38.7 1.7 51.8 6.8 10.8 24.2 12.6 35.3 13.1 1.3.1 2.6.1 3.9.1v-85.3h-101v-35.7h101v-44.5H487c-22.7 24.1-43.5 44.1-43.5 44.1l-30.6-26.7c21.7-22.9 43.3-59.1 56.8-83.2-10.9 4.4-22 9.2-33.6 14.2-11.2 14.3-24.2 29-38.7 43.5.5.8-50-28.4-50-28.4 52.2-44.4 81.4-139.9 81.4-139.9l72.5 20.4s-5.9 14-18.4 35.6c290.3-82.3 307.4 50.5 307.4 50.5s19.1 91.8 3.8 235.7z'));
exports.TaobaoSquareFill = getIcon('taobao-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM315.7 291.5c27.3 0 49.5 22.1 49.5 49.4s-22.1 49.4-49.5 49.4a49.4 49.4 0 1 1 0-98.8zM366.9 578c-13.6 42.3-10.2 26.7-64.4 144.5l-78.5-49s87.7-79.8 105.6-116.2c19.2-38.4-21.1-58.9-21.1-58.9l-60.2-37.5 32.7-50.2c45.4 33.7 48.7 36.6 79.2 67.2 23.8 23.9 20.7 56.8 6.7 100.1zm427.2 55c-15.3 143.8-202.4 90.3-202.4 90.3l10.2-41.1 43.3 9.3c80 5 72.3-64.9 72.3-64.9V423c.6-77.3-72.6-85.4-204.2-38.3l30.6 8.3c-2.5 9-12.5 23.2-25.2 38.6h176v35.6h-99.1v44.5h98.7v35.7h-98.7V622c14.9-4.8 28.6-11.5 40.5-20.5l-8.7-32.5 46.5-14.4 38.8 94.9-57.3 23.9-10.2-37.8c-25.6 19.5-78.8 48-171.8 45.4-99.2 2.6-73.7-112-73.7-112l2.5-1.3H472c-.5 14.7-6.6 38.7 1.7 51.8 6.8 10.8 24.2 12.6 35.3 13.1 1.3.1 2.6.1 3.9.1v-85.3h-101v-35.7h101v-44.5H487c-22.7 24.1-43.5 44.1-43.5 44.1l-30.6-26.7c21.7-22.9 43.3-59.1 56.8-83.2-10.9 4.4-22 9.2-33.6 14.2-11.2 14.3-24.2 29-38.7 43.5.5.8-50-28.4-50-28.4 52.2-44.4 81.4-139.9 81.4-139.9l72.5 20.4s-5.9 14-18.4 35.6c290.3-82.3 307.4 50.5 307.4 50.5s19.1 91.8 3.8 235.7z'));
exports.ToolFill = getIcon('tool', fill, getNode(newViewBox, 'M865.3 244.7c-.3-.3-61.1 59.8-182.1 180.6l-84.9-84.9 180.9-180.9c-95.2-57.3-217.5-42.6-296.8 36.7A244.42 244.42 0 0 0 419 432l1.8 6.7-283.5 283.4c-6.2 6.2-6.2 16.4 0 22.6l141.4 141.4c6.2 6.2 16.4 6.2 22.6 0l283.3-283.3 6.7 1.8c83.7 22.3 173.6-.9 236-63.3 79.4-79.3 94.1-201.6 38-296.6z'));
exports.ThunderboltFill = getIcon('thunderbolt', fill, getNode(newViewBox, 'M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7z'));
exports.TrademarkCircleFill = getIcon('trademark-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm164.7 660.2c-1.1.5-2.3.8-3.5.8h-62c-3.1 0-5.9-1.8-7.2-4.6l-74.6-159.2h-88.7V717c0 4.4-3.6 8-8 8H378c-4.4 0-8-3.6-8-8V307c0-4.4 3.6-8 8-8h155.6c98.8 0 144.2 59.9 144.2 131.1 0 70.2-43.6 106.4-78.4 119.2l80.8 164.2c2.1 3.9.4 8.7-3.5 10.7zM523.9 357h-83.4v148H522c53 0 82.8-25.6 82.8-72.4 0-50.3-32.9-75.6-80.9-75.6z'));
exports.TwitterCircleFill = getIcon('twitter-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm215.3 337.7c.3 4.7.3 9.6.3 14.4 0 146.8-111.8 315.9-316.1 315.9-63 0-121.4-18.3-170.6-49.8 9 1 17.6 1.4 26.8 1.4 52 0 99.8-17.6 137.9-47.4-48.8-1-89.8-33-103.8-77 17.1 2.5 32.5 2.5 50.1-2a111 111 0 0 1-88.9-109v-1.4c14.7 8.3 32 13.4 50.1 14.1a111.13 111.13 0 0 1-49.5-92.4c0-20.7 5.4-39.6 15.1-56a315.28 315.28 0 0 0 229 116.1C492 353.1 548.4 292 616.2 292c32 0 60.8 13.4 81.1 35 25.1-4.7 49.1-14.1 70.5-26.7-8.3 25.7-25.7 47.4-48.8 61.1 22.4-2.4 44-8.6 64-17.3-15.1 22.2-34 41.9-55.7 57.6z'));
exports.TrophyFill = getIcon('trophy', fill, getNode(newViewBox, 'M868 160h-92v-40c0-4.4-3.6-8-8-8H256c-4.4 0-8 3.6-8 8v40h-92a44 44 0 0 0-44 44v148c0 81.7 60 149.6 138.2 162C265.6 630.2 359 721.8 476 734.5v105.2H280c-17.7 0-32 14.3-32 32V904c0 4.4 3.6 8 8 8h512c4.4 0 8-3.6 8-8v-32.3c0-17.7-14.3-32-32-32H548V734.5C665 721.8 758.4 630.2 773.8 514 852 501.6 912 433.7 912 352V204a44 44 0 0 0-44-44zM248 439.6c-37.1-11.9-64-46.7-64-87.6V232h64v207.6zM840 352c0 41-26.9 75.8-64 87.6V232h64v120z'));
exports.TwitterSquareFill = getIcon('twitter-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM727.3 401.7c.3 4.7.3 9.6.3 14.4 0 146.8-111.8 315.9-316.1 315.9-63 0-121.4-18.3-170.6-49.8 9 1 17.6 1.4 26.8 1.4 52 0 99.8-17.6 137.9-47.4-48.8-1-89.8-33-103.8-77 17.1 2.5 32.5 2.5 50.1-2a111 111 0 0 1-88.9-109v-1.4c14.7 8.3 32 13.4 50.1 14.1a111.13 111.13 0 0 1-49.5-92.4c0-20.7 5.4-39.6 15.1-56a315.28 315.28 0 0 0 229 116.1C492 353.1 548.4 292 616.2 292c32 0 60.8 13.4 81.1 35 25.1-4.7 49.1-14.1 70.5-26.7-8.3 25.7-25.7 47.4-48.8 61.1 22.4-2.4 44-8.6 64-17.3-15.1 22.2-34 41.9-55.7 57.6z'));
exports.UnlockFill = getIcon('unlock', fill, getNode(newViewBox, 'M832 464H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v68c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-68c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM540 701v53c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-53a48.01 48.01 0 1 1 56 0z'));
exports.UpCircleFill = getIcon('up-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm178 555h-46.9c-10.2 0-19.9-4.9-25.9-13.2L512 460.4 406.8 605.8c-6 8.3-15.6 13.2-25.9 13.2H334c-6.5 0-10.3-7.4-6.5-12.7l178-246c3.2-4.4 9.7-4.4 12.9 0l178 246c3.9 5.3.1 12.7-6.4 12.7z'));
exports.UpSquareFill = getIcon('up-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM690 624h-46.9c-10.2 0-19.9-4.9-25.9-13.2L512 465.4 406.8 610.8c-6 8.3-15.6 13.2-25.9 13.2H334c-6.5 0-10.3-7.4-6.5-12.7l178-246c3.2-4.4 9.7-4.4 12.9 0l178 246c3.9 5.3.1 12.7-6.4 12.7z'));
exports.UsbFill = getIcon('usb', fill, getNode(newViewBox, 'M408 312h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm352 120V144c0-17.7-14.3-32-32-32H296c-17.7 0-32 14.3-32 32v288c-66.2 0-120 52.1-120 116v356c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8V548c0-63.9-53.8-116-120-116zm-72 0H336V184h352v248zM568 312h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z'));
exports.WalletFill = getIcon('wallet', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-32 464H528V448h320v128zm-268-64a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'));
exports.VideoCameraFill = getIcon('video-camera', fill, getNode(newViewBox, 'M912 302.3L784 376V224c0-35.3-28.7-64-64-64H128c-35.3 0-64 28.7-64 64v576c0 35.3 28.7 64 64 64h592c35.3 0 64-28.7 64-64V648l128 73.7c21.3 12.3 48-3.1 48-27.6V330c0-24.6-26.7-40-48-27.7zM328 352c0 4.4-3.6 8-8 8H208c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h112c4.4 0 8 3.6 8 8v48zm560 273l-104-59.8V458.9L888 399v226z'));
exports.WarningFill = getIcon('warning', fill, getNode(newViewBox, 'M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'));
exports.WeiboCircleFill = getIcon('weibo-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-44.4 672C353.1 736 236 680.4 236 588.9c0-47.8 30.2-103.1 82.3-155.3 69.5-69.6 150.6-101.4 181.1-70.8 13.5 13.5 14.8 36.8 6.1 64.6-4.5 14 13.1 6.3 13.1 6.3 56.2-23.6 105.2-25 123.1.7 9.6 13.7 8.6 32.8-.2 55.1-4.1 10.2 1.3 11.8 9 14.1 31.7 9.8 66.9 33.6 66.9 75.5.2 69.5-99.7 156.9-249.8 156.9zm207.3-290.8a34.9 34.9 0 0 0-7.2-34.1 34.68 34.68 0 0 0-33.1-10.7 18.24 18.24 0 0 1-7.6-35.7c24.1-5.1 50.1 2.3 67.7 21.9 17.7 19.6 22.4 46.3 14.9 69.8a18.13 18.13 0 0 1-22.9 11.7 18.18 18.18 0 0 1-11.8-22.9zm106 34.3s0 .1 0 0a21.1 21.1 0 0 1-26.6 13.7 21.19 21.19 0 0 1-13.6-26.7c11-34.2 4-73.2-21.7-101.8a104.04 104.04 0 0 0-98.9-32.1 21.14 21.14 0 0 1-25.1-16.3 21.07 21.07 0 0 1 16.2-25.1c49.4-10.5 102.8 4.8 139.1 45.1 36.3 40.2 46.1 95.1 30.6 143.2zm-334.5 6.1c-91.4 9-160.7 65.1-154.7 125.2 5.9 60.1 84.8 101.5 176.2 92.5 91.4-9.1 160.7-65.1 154.7-125.3-5.9-60.1-84.8-101.5-176.2-92.4zm80.2 141.7c-18.7 42.3-72.3 64.8-117.8 50.1-43.9-14.2-62.5-57.7-43.3-96.8 18.9-38.4 68-60.1 111.5-48.8 45 11.7 68 54.2 49.6 95.5zm-93-32.2c-14.2-5.9-32.4.2-41.2 13.9-8.8 13.8-4.7 30.2 9.3 36.6 14.3 6.5 33.2.3 42-13.8 8.8-14.3 4.2-30.6-10.1-36.7zm34.9-14.5c-5.4-2.2-12.2.5-15.4 5.8-3.1 5.4-1.4 11.5 4.1 13.8 5.5 2.3 12.6-.3 15.8-5.8 3-5.6 1-11.8-4.5-13.8z'));
exports.WechatFill = getIcon('wechat', fill, getNode(newViewBox, 'M690.1 377.4c5.9 0 11.8.2 17.6.5-24.4-128.7-158.3-227.1-319.9-227.1C209 150.8 64 271.4 64 420.2c0 81.1 43.6 154.2 111.9 203.6a21.5 21.5 0 0 1 9.1 17.6c0 2.4-.5 4.6-1.1 6.9-5.5 20.3-14.2 52.8-14.6 54.3-.7 2.6-1.7 5.2-1.7 7.9 0 5.9 4.8 10.8 10.8 10.8 2.3 0 4.2-.9 6.2-2l70.9-40.9c5.3-3.1 11-5 17.2-5 3.2 0 6.4.5 9.5 1.4 33.1 9.5 68.8 14.8 105.7 14.8 6 0 11.9-.1 17.8-.4-7.1-21-10.9-43.1-10.9-66 0-135.8 132.2-245.8 295.3-245.8zm-194.3-86.5c23.8 0 43.2 19.3 43.2 43.1s-19.3 43.1-43.2 43.1c-23.8 0-43.2-19.3-43.2-43.1s19.4-43.1 43.2-43.1zm-215.9 86.2c-23.8 0-43.2-19.3-43.2-43.1s19.3-43.1 43.2-43.1 43.2 19.3 43.2 43.1-19.4 43.1-43.2 43.1zm586.8 415.6c56.9-41.2 93.2-102 93.2-169.7 0-124-120.8-224.5-269.9-224.5-149 0-269.9 100.5-269.9 224.5S540.9 847.5 690 847.5c30.8 0 60.6-4.4 88.1-12.3 2.6-.8 5.2-1.2 7.9-1.2 5.2 0 9.9 1.6 14.3 4.1l59.1 34c1.7 1 3.3 1.7 5.2 1.7a9 9 0 0 0 6.4-2.6 9 9 0 0 0 2.6-6.4c0-2.2-.9-4.4-1.4-6.6-.3-1.2-7.6-28.3-12.2-45.3-.5-1.9-.9-3.8-.9-5.7.1-5.9 3.1-11.2 7.6-14.5zM600.2 587.2c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9c0 19.8-16.2 35.9-36 35.9zm179.9 0c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9a36.08 36.08 0 0 1-36 35.9z'));
exports.WindowsFill = getIcon('windows', fill, getNode(newViewBox, 'M523.8 191.4v288.9h382V128.1zm0 642.2l382 62.2v-352h-382zM120.1 480.2H443V201.9l-322.9 53.5zm0 290.4L443 823.2V543.8H120.1z'));
exports.YahooFill = getIcon('yahoo', fill, getNode(newViewBox, 'M937.3 231H824.7c-15.5 0-27.7 12.6-27.1 28.1l13.1 366h84.4l65.4-366.4c2.7-15.2-7.8-27.7-23.2-27.7zm-77.4 450.4h-14.1c-27.1 0-49.2 22.2-49.2 49.3v14.1c0 27.1 22.2 49.3 49.2 49.3h14.1c27.1 0 49.2-22.2 49.2-49.3v-14.1c0-27.1-22.2-49.3-49.2-49.3zM402.6 231C216.2 231 65 357 65 512.5S216.2 794 402.6 794s337.6-126 337.6-281.5S589.1 231 402.6 231zm225.2 225.2h-65.3L458.9 559.8v65.3h84.4v56.3H318.2v-56.3h84.4v-65.3L242.9 399.9h-37v-56.3h168.5v56.3h-37l93.4 93.5 28.1-28.1V400h168.8v56.2z'));
exports.WeiboSquareFill = getIcon('weibo-square', fill, getNode(newViewBox, 'M433.6 595.1c-14.2-5.9-32.4.2-41.2 13.9-8.8 13.8-4.7 30.2 9.3 36.6 14.3 6.5 33.2.3 42-13.8 8.8-14.3 4.2-30.6-10.1-36.7zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM467.6 736C353.1 736 236 680.4 236 588.9c0-47.8 30.2-103.1 82.3-155.3 69.5-69.6 150.6-101.4 181.1-70.8 13.5 13.5 14.8 36.8 6.1 64.6-4.5 14 13.1 6.3 13.1 6.3 56.2-23.6 105.2-25 123.1.7 9.6 13.7 8.6 32.8-.2 55.1-4.1 10.2 1.3 11.8 9 14.1 31.7 9.8 66.9 33.6 66.9 75.5.2 69.5-99.7 156.9-249.8 156.9zm207.3-290.8a34.9 34.9 0 0 0-7.2-34.1 34.68 34.68 0 0 0-33.1-10.7 18.24 18.24 0 0 1-7.6-35.7c24.1-5.1 50.1 2.3 67.7 21.9 17.7 19.6 22.4 46.3 14.9 69.8a18.13 18.13 0 0 1-22.9 11.7 18.18 18.18 0 0 1-11.8-22.9zm106 34.3s0 .1 0 0a21.1 21.1 0 0 1-26.6 13.7 21.19 21.19 0 0 1-13.6-26.7c11-34.2 4-73.2-21.7-101.8a104.04 104.04 0 0 0-98.9-32.1 21.14 21.14 0 0 1-25.1-16.3 21.07 21.07 0 0 1 16.2-25.1c49.4-10.5 102.8 4.8 139.1 45.1 36.3 40.2 46.1 95.1 30.6 143.2zm-334.5 6.1c-91.4 9-160.7 65.1-154.7 125.2 5.9 60.1 84.8 101.5 176.2 92.5 91.4-9.1 160.7-65.1 154.7-125.3-5.9-60.1-84.8-101.5-176.2-92.4zm80.2 141.7c-18.7 42.3-72.3 64.8-117.8 50.1-43.9-14.2-62.5-57.7-43.3-96.8 18.9-38.4 68-60.1 111.5-48.8 45 11.7 68 54.2 49.6 95.5zm-58.1-46.7c-5.4-2.2-12.2.5-15.4 5.8-3.1 5.4-1.4 11.5 4.1 13.8 5.5 2.3 12.6-.3 15.8-5.8 3-5.6 1-11.8-4.5-13.8z'));
exports.YuqueFill = getIcon('yuque', fill, getNode(newViewBox, 'M854.6 370.6c-9.9-39.4 9.9-102.2 73.4-124.4l-67.9-3.6s-25.7-90-143.6-98c-117.9-8.1-195-3-195-3s87.4 55.6 52.4 154.7c-25.6 52.5-65.8 95.6-108.8 144.7-1.3 1.3-2.5 2.6-3.5 3.7C319.4 605 96 860 96 860c245.9 64.4 410.7-6.3 508.2-91.1 20.5-.2 35.9-.3 46.3-.3 135.8 0 250.6-117.6 245.9-248.4-3.2-89.9-31.9-110.2-41.8-149.6z'));
exports.YoutubeFill = getIcon('youtube', fill, getNode(newViewBox, 'M941.3 296.1a112.3 112.3 0 0 0-79.2-79.3C792.2 198 512 198 512 198s-280.2 0-350.1 18.7A112.12 112.12 0 0 0 82.7 296C64 366 64 512 64 512s0 146 18.7 215.9c10.3 38.6 40.7 69 79.2 79.3C231.8 826 512 826 512 826s280.2 0 350.1-18.8c38.6-10.3 68.9-40.7 79.2-79.3C960 658 960 512 960 512s0-146-18.7-215.9zM423 646V378l232 133-232 135z'));
exports.ZhihuSquareFill = getIcon('zhihu-square', fill, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM432.3 592.8l71 80.7c9.2 33-3.3 63.1-3.3 63.1l-95.7-111.9v-.1c-8.9 29-20.1 57.3-33.3 84.7-22.6 45.7-55.2 54.7-89.5 57.7-34.4 3-23.3-5.3-23.3-5.3 68-55.5 78-87.8 96.8-123.1 11.9-22.3 20.4-64.3 25.3-96.8H264.1s4.8-31.2 19.2-41.7h101.6c.6-15.3-1.3-102.8-2-131.4h-49.4c-9.2 45-41 56.7-48.1 60.1-7 3.4-23.6 7.1-21.1 0 2.6-7.1 27-46.2 43.2-110.7 16.3-64.6 63.9-62 63.9-62-12.8 22.5-22.4 73.6-22.4 73.6h159.7c10.1 0 10.6 39 10.6 39h-90.8c-.7 22.7-2.8 83.8-5 131.4H519s12.2 15.4 12.2 41.7h-110l-.1 1.5c-1.5 20.4-6.3 43.9-12.9 67.6l24.1-18.1zm335.5 116h-87.6l-69.5 46.6-16.4-46.6h-40.1V321.5h213.6v387.3zM408.2 611s0-.1 0 0zm216 94.3l56.8-38.1h45.6-.1V364.7H596.7v302.5h14.1z'));
exports.ZhihuCircleFill = getIcon('zhihu-circle', fill, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-90.7 477.8l-.1 1.5c-1.5 20.4-6.3 43.9-12.9 67.6l24-18.1 71 80.7c9.2 33-3.3 63.1-3.3 63.1l-95.7-111.9v-.1c-8.9 29-20.1 57.3-33.3 84.7-22.6 45.7-55.2 54.7-89.5 57.7-34.4 3-23.3-5.3-23.3-5.3 68-55.5 78-87.8 96.8-123.1 11.9-22.3 20.4-64.3 25.3-96.8H264.1s4.8-31.2 19.2-41.7h101.6c.6-15.3-1.3-102.8-2-131.4h-49.4c-9.2 45-41 56.7-48.1 60.1-7 3.4-23.6 7.1-21.1 0 2.6-7.1 27-46.2 43.2-110.7 16.3-64.6 63.9-62 63.9-62-12.8 22.5-22.4 73.6-22.4 73.6h159.7c10.1 0 10.6 39 10.6 39h-90.8c-.7 22.7-2.8 83.8-5 131.4H519s12.2 15.4 12.2 41.7H421.3zm346.5 167h-87.6l-69.5 46.6-16.4-46.6h-40.1V321.5h213.6v387.3zM408.2 611s0-.1 0 0zm216 94.3l56.8-38.1h45.6-.1V364.7H596.7v302.5h14.1z'));
exports.AccountBookOutline = getIcon('account-book', outline, getNode(newViewBox, 'M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v584zM639.5 414h-45c-3 0-5.8 1.7-7.1 4.4L514 563.8h-2.8l-73.4-145.4a8 8 0 0 0-7.1-4.4h-46c-1.3 0-2.7.3-3.8 1-3.9 2.1-5.3 7-3.2 10.9l89.3 164h-48.6c-4.4 0-8 3.6-8 8v21.3c0 4.4 3.6 8 8 8h65.1v33.7h-65.1c-4.4 0-8 3.6-8 8v21.3c0 4.4 3.6 8 8 8h65.1V752c0 4.4 3.6 8 8 8h41.3c4.4 0 8-3.6 8-8v-53.8h65.4c4.4 0 8-3.6 8-8v-21.3c0-4.4-3.6-8-8-8h-65.4v-33.7h65.4c4.4 0 8-3.6 8-8v-21.3c0-4.4-3.6-8-8-8h-49.1l89.3-164.1c.6-1.2 1-2.5 1-3.8.1-4.4-3.4-8-7.9-8z'));
exports.AlertOutline = getIcon('alert', outline, getNode(newViewBox, 'M193 796c0 17.7 14.3 32 32 32h574c17.7 0 32-14.3 32-32V563c0-176.2-142.8-319-319-319S193 386.8 193 563v233zm72-233c0-136.4 110.6-247 247-247s247 110.6 247 247v193H404V585c0-5.5-4.5-10-10-10h-44c-5.5 0-10 4.5-10 10v171h-75V563zm-48.1-252.5l39.6-39.6c3.1-3.1 3.1-8.2 0-11.3l-67.9-67.9a8.03 8.03 0 0 0-11.3 0l-39.6 39.6a8.03 8.03 0 0 0 0 11.3l67.9 67.9c3.1 3.1 8.1 3.1 11.3 0zm669.6-79.2l-39.6-39.6a8.03 8.03 0 0 0-11.3 0l-67.9 67.9a8.03 8.03 0 0 0 0 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l67.9-67.9c3.1-3.2 3.1-8.2 0-11.3zM832 892H192c-17.7 0-32 14.3-32 32v24c0 4.4 3.6 8 8 8h688c4.4 0 8-3.6 8-8v-24c0-17.7-14.3-32-32-32zM484 180h56c4.4 0 8-3.6 8-8V76c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v96c0 4.4 3.6 8 8 8z'));
exports.AlipayCircleOutline = getIcon('alipay-circle', outline, getNode(newViewBox, 'M308.6 545.7c-19.8 2-57.1 10.7-77.4 28.6-61 53-24.5 150 99 150 71.8 0 143.5-45.7 199.8-119-80.2-38.9-148.1-66.8-221.4-59.6zm460.5 67c100.1 33.4 154.7 43 166.7 44.8A445.9 445.9 0 0 0 960 512c0-247.4-200.6-448-448-448S64 264.6 64 512s200.6 448 448 448c155.9 0 293.2-79.7 373.5-200.5-75.6-29.8-213.6-85-286.8-120.1-69.9 85.7-160.1 137.8-253.7 137.8-158.4 0-212.1-138.1-137.2-229 16.3-19.8 44.2-38.7 87.3-49.4 67.5-16.5 175 10.3 275.7 43.4 18.1-33.3 33.4-69.9 44.7-108.9H305.1V402h160v-56.2H271.3v-31.3h193.8v-80.1s0-13.5 13.7-13.5H557v93.6h191.7v31.3H557.1V402h156.4c-15 61.1-37.7 117.4-66.2 166.8 47.5 17.1 90.1 33.3 121.8 43.9z'));
exports.AliwangwangOutline = getIcon('aliwangwang', outline, getNode(newViewBox, 'M868.2 377.4c-18.9-45.1-46.3-85.6-81.2-120.6a377.26 377.26 0 0 0-120.5-81.2A375.65 375.65 0 0 0 519 145.8c-41.9 0-82.9 6.7-121.9 20C306 123.3 200.8 120 170.6 120c-2.2 0-7.4 0-9.4.2-11.9.4-22.8 6.5-29.2 16.4-6.5 9.9-7.7 22.4-3.4 33.5l64.3 161.6a378.59 378.59 0 0 0-52.8 193.2c0 51.4 10 101 29.8 147.6 18.9 45 46.2 85.6 81.2 120.5 34.7 34.8 75.4 62.1 120.5 81.2C418.3 894 467.9 904 519 904c51.3 0 100.9-10.1 147.7-29.8 44.9-18.9 85.5-46.3 120.4-81.2 34.7-34.8 62.1-75.4 81.2-120.6a376.5 376.5 0 0 0 29.8-147.6c-.2-51.2-10.1-100.8-29.9-147.4zm-66.4 266.5a307.08 307.08 0 0 1-65.9 98c-28.4 28.5-61.3 50.7-97.7 65.9h-.1c-38 16-78.3 24.2-119.9 24.2a306.51 306.51 0 0 1-217.5-90.2c-28.4-28.5-50.6-61.4-65.8-97.8v-.1c-16-37.8-24.1-78.2-24.1-119.9 0-55.4 14.8-109.7 42.8-157l13.2-22.1-9.5-23.9L206 192c14.9.6 35.9 2.1 59.7 5.6 43.8 6.5 82.5 17.5 114.9 32.6l19 8.9 19.9-6.8c31.5-10.8 64.8-16.2 98.9-16.2a306.51 306.51 0 0 1 217.5 90.2c28.4 28.5 50.6 61.4 65.8 97.8l.1.1.1.1c16 37.6 24.1 78 24.2 119.8-.1 41.7-8.3 82-24.3 119.8zM681.1 364.2c-20.4 0-37.1 16.7-37.1 37.1v55.1c0 20.4 16.6 37.1 37.1 37.1s37.1-16.7 37.1-37.1v-55.1c0-20.5-16.7-37.1-37.1-37.1zm-175.2 0c-20.5 0-37.1 16.7-37.1 37.1v55.1c0 20.4 16.7 37.1 37.1 37.1 20.5 0 37.1-16.7 37.1-37.1v-55.1c0-20.5-16.7-37.1-37.1-37.1z'));
exports.AndroidOutline = getIcon('android', outline, getNode(newViewBox, 'M448.3 225.2c-18.6 0-32 13.4-32 31.9s13.5 31.9 32 31.9c18.6 0 32-13.4 32-31.9.1-18.4-13.4-31.9-32-31.9zm393.9 96.4c-13.8-13.8-32.7-21.5-53.2-21.5-3.9 0-7.4.4-10.7 1v-1h-3.6c-5.5-30.6-18.6-60.5-38.1-87.4-18.7-25.7-43-47.9-70.8-64.9l25.1-35.8v-3.3c0-.8.4-2.3.7-3.8.6-2.4 1.4-5.5 1.4-8.9 0-18.5-13.5-31.9-32-31.9-9.8 0-19.5 5.7-25.9 15.4l-29.3 42.1c-30-9.8-62.4-15-93.8-15-31.3 0-63.7 5.2-93.8 15L389 79.4c-6.6-9.6-16.1-15.4-26-15.4-18.6 0-32 13.4-32 31.9 0 6.2 2.5 12.8 6.7 17.4l22.6 32.3c-28.7 17-53.5 39.4-72.2 65.1-19.4 26.9-32 56.8-36.7 87.4h-5.5v1c-3.2-.6-6.7-1-10.7-1-20.3 0-39.2 7.5-53.1 21.3-13.8 13.8-21.5 32.6-21.5 53v235c0 20.3 7.5 39.1 21.4 52.9 13.8 13.8 32.8 21.5 53.2 21.5 3.9 0 7.4-.4 10.7-1v93.5c0 29.2 23.9 53.1 53.2 53.1H331v58.3c0 20.3 7.5 39.1 21.4 52.9 13.8 13.8 32.8 21.5 53.2 21.5 20.3 0 39.2-7.5 53.1-21.3 13.8-13.8 21.5-32.6 21.5-53v-58.2H544v58.1c0 20.3 7.5 39.1 21.4 52.9 13.8 13.8 32.8 21.5 53.2 21.5 20.4 0 39.2-7.5 53.1-21.6 13.8-13.8 21.5-32.6 21.5-53v-58.2h31.9c29.3 0 53.2-23.8 53.2-53.1v-91.4c3.2.6 6.7 1 10.7 1 20.3 0 39.2-7.5 53.1-21.3 13.8-13.8 21.5-32.6 21.5-53v-235c-.1-20.3-7.6-39-21.4-52.9zM246 609.6c0 6.8-3.9 10.6-10.7 10.6-6.8 0-10.7-3.8-10.7-10.6V374.5c0-6.8 3.9-10.6 10.7-10.6 6.8 0 10.7 3.8 10.7 10.6v235.1zm131.1-396.8c37.5-27.3 85.3-42.3 135-42.3s97.5 15.1 135 42.5c32.4 23.7 54.2 54.2 62.7 87.5H314.4c8.5-33.4 30.5-64 62.7-87.7zm39.3 674.7c-.6 5.6-4.4 8.7-10.5 8.7-6.8 0-10.7-3.8-10.7-10.6v-58.2h21.2v60.1zm202.3 8.7c-6.8 0-10.7-3.8-10.7-10.6v-58.2h21.2v60.1c-.6 5.6-4.3 8.7-10.5 8.7zm95.8-132.6H309.9V364h404.6v399.6zm85.2-154c0 6.8-3.9 10.6-10.7 10.6-6.8 0-10.7-3.8-10.7-10.6V374.5c0-6.8 3.9-10.6 10.7-10.6 6.8 0 10.7 3.8 10.7 10.6v235.1zM576.1 225.2c-18.6 0-32 13.4-32 31.9s13.5 31.9 32 31.9c18.6 0 32.1-13.4 32.1-32-.1-18.6-13.4-31.8-32.1-31.8z'));
exports.ApiOutline = getIcon('api', outline, getNode(newViewBox, 'M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 0 0-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 0 0 0 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7 35.3 0 68.4 13.7 93.4 38.7 24.9 24.9 38.7 58.1 38.7 93.4 0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 0 0-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 0 0-11.3 0L363 475.3l-43-43a7.85 7.85 0 0 0-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 0 0 0 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 0 1-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 0 1-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4z'));
exports.AppstoreOutline = getIcon('appstore', outline, getNode(newViewBox, 'M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z'));
exports.AudioOutline = getIcon('audio', outline, getNode(newViewBox, 'M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z'));
exports.AppleOutline = getIcon('apple', outline, getNode(newViewBox, 'M747.4 535.7c-.4-68.2 30.5-119.6 92.9-157.5-34.9-50-87.7-77.5-157.3-82.8-65.9-5.2-138 38.4-164.4 38.4-27.9 0-91.7-36.6-141.9-36.6C273.1 298.8 163 379.8 163 544.6c0 48.7 8.9 99 26.7 150.8 23.8 68.2 109.6 235.3 199.1 232.6 46.8-1.1 79.9-33.2 140.8-33.2 59.1 0 89.7 33.2 141.9 33.2 90.3-1.3 167.9-153.2 190.5-221.6-121.1-57.1-114.6-167.2-114.6-170.7zm-10.6 267c-14.3 19.9-28.7 35.6-41.9 45.7-10.5 8-18.6 11.4-24 11.6-9-.1-17.7-2.3-34.7-8.8-1.2-.5-2.5-1-4.2-1.6l-4.4-1.7c-17.4-6.7-27.8-10.3-41.1-13.8-18.6-4.8-37.1-7.4-56.9-7.4-20.2 0-39.2 2.5-58.1 7.2-13.9 3.5-25.6 7.4-42.7 13.8-.7.3-8.1 3.1-10.2 3.9-3.5 1.3-6.2 2.3-8.7 3.2-10.4 3.6-17 5.1-22.9 5.2-.7 0-1.3-.1-1.8-.2-1.1-.2-2.5-.6-4.1-1.3-4.5-1.8-9.9-5.1-16-9.8-14-10.9-29.4-28-45.1-49.9-27.5-38.6-53.5-89.8-66-125.7-15.4-44.8-23-87.7-23-128.6 0-60.2 17.8-106 48.4-137.1 26.3-26.6 61.7-41.5 97.8-42.3 5.9.1 14.5 1.5 25.4 4.5 8.6 2.3 18 5.4 30.7 9.9 3.8 1.4 16.9 6.1 18.5 6.7 7.7 2.8 13.5 4.8 19.2 6.6 18.2 5.8 32.3 9 47.6 9 15.5 0 28.8-3.3 47.7-9.8 7.1-2.4 32.9-12 37.5-13.6 25.6-9.1 44.5-14 60.8-15.2 4.8-.4 9.1-.4 13.2-.1 22.7 1.8 42.1 6.3 58.6 13.8-37.6 43.4-57 96.5-56.9 158.4-.3 14.7.9 31.7 5.1 51.8 6.4 30.5 18.6 60.7 37.9 89 14.7 21.5 32.9 40.9 54.7 57.8-11.5 23.7-25.6 48.2-40.4 68.8zm-94.5-572c50.7-60.2 46.1-115 44.6-134.7-44.8 2.6-96.6 30.5-126.1 64.8-32.5 36.8-51.6 82.3-47.5 133.6 48.4 3.7 92.6-21.2 129-63.7z'));
exports.BackwardOutline = getIcon('backward', outline, getNode(normalViewBox, 'M485.6 249.9L198.2 498c-8.3 7.1-8.3 20.8 0 27.9l287.4 248.2c10.7 9.2 26.4.9 26.4-14V263.8c0-14.8-15.7-23.2-26.4-13.9zm320 0L518.2 498a18.6 18.6 0 0 0-6.2 14c0 5.2 2.1 10.4 6.2 14l287.4 248.2c10.7 9.2 26.4.9 26.4-14V263.8c0-14.8-15.7-23.2-26.4-13.9z'));
exports.BankOutline = getIcon('bank', outline, getNode(newViewBox, 'M894 462c30.9 0 43.8-39.7 18.7-58L530.8 126.2a31.81 31.81 0 0 0-37.6 0L111.3 404c-25.1 18.2-12.2 58 18.8 58H192v374h-72c-4.4 0-8 3.6-8 8v52c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-52c0-4.4-3.6-8-8-8h-72V462h62zM512 196.7l271.1 197.2H240.9L512 196.7zM264 462h117v374H264V462zm189 0h117v374H453V462zm307 374H642V462h118v374z'));
exports.BellOutline = getIcon('bell', outline, getNode(newViewBox, 'M816 768h-24V428c0-141.1-104.3-257.7-240-277.1V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.9c-135.7 19.4-240 136-240 277.1v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48zM304 768V428c0-55.6 21.6-107.8 60.9-147.1S456.4 220 512 220c55.6 0 107.8 21.6 147.1 60.9S720 372.4 720 428v340H304z'));
exports.BehanceSquareOutline = getIcon('behance-square', outline, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM598.5 350.9h138.4v33.7H598.5v-33.7zM512 628.8a89.52 89.52 0 0 1-27 31c-11.8 8.2-24.9 14.2-38.8 17.7a167.4 167.4 0 0 1-44.6 5.7H236V342.1h161c16.3 0 31.1 1.5 44.6 4.3 13.4 2.8 24.8 7.6 34.4 14.1 9.5 6.5 17 15.2 22.3 26 5.2 10.7 7.9 24.1 7.9 40 0 17.2-3.9 31.4-11.7 42.9-7.9 11.5-19.3 20.8-34.8 28.1 21.1 6 36.6 16.7 46.8 31.7 10.4 15.2 15.5 33.4 15.5 54.8 0 17.4-3.3 32.3-10 44.8zM790.8 576H612.4c0 19.4 6.7 38 16.8 48 10.2 9.9 24.8 14.9 43.9 14.9 13.8 0 25.5-3.5 35.5-10.4 9.9-6.9 15.9-14.2 18.1-21.8h59.8c-9.6 29.7-24.2 50.9-44 63.7-19.6 12.8-43.6 19.2-71.5 19.2-19.5 0-37-3.2-52.7-9.3-15.1-5.9-28.7-14.9-39.9-26.5a121.2 121.2 0 0 1-25.1-41.2c-6.1-16.9-9.1-34.7-8.9-52.6 0-18.5 3.1-35.7 9.1-51.7 11.5-31.1 35.4-56 65.9-68.9 16.3-6.8 33.8-10.2 51.5-10 21 0 39.2 4 55 12.2a111.6 111.6 0 0 1 38.6 32.8c10.1 13.7 17.2 29.3 21.7 46.9 4.3 17.3 5.8 35.5 4.6 54.7zm-122-95.6c-10.8 0-19.9 1.9-26.9 5.6-7 3.7-12.8 8.3-17.2 13.6a48.4 48.4 0 0 0-9.1 17.4c-1.6 5.3-2.7 10.7-3.1 16.2H723c-1.6-17.3-7.6-30.1-15.6-39.1-8.4-8.9-21.9-13.7-38.6-13.7zm-248.5-10.1c8.7-6.3 12.9-16.7 12.9-31 .3-6.8-1.1-13.5-4.1-19.6-2.7-4.9-6.7-9-11.6-11.9a44.8 44.8 0 0 0-16.6-6c-6.4-1.2-12.9-1.8-19.3-1.7h-70.3v79.7h76.1c13.1.1 24.2-3.1 32.9-9.5zm11.8 72c-9.8-7.5-22.9-11.2-39.2-11.2h-81.8v94h80.2c7.5 0 14.4-.7 21.1-2.1s12.7-3.8 17.8-7.2c5.1-3.3 9.2-7.8 12.3-13.6 3-5.8 4.5-13.2 4.5-22.1 0-17.7-5-30.2-14.9-37.8z'));
exports.BookOutline = getIcon('book', outline, getNode(newViewBox, 'M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0 0 22.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z'));
exports.BoxPlotOutline = getIcon('box-plot', outline, getNode(newViewBox, 'M952 224h-52c-4.4 0-8 3.6-8 8v248h-92V304c0-4.4-3.6-8-8-8H232c-4.4 0-8 3.6-8 8v176h-92V232c0-4.4-3.6-8-8-8H72c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V548h92v172c0 4.4 3.6 8 8 8h560c4.4 0 8-3.6 8-8V548h92v244c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V232c0-4.4-3.6-8-8-8zM296 368h88v288h-88V368zm432 288H448V368h280v288z'));
exports.BulbOutline = getIcon('bulb', outline, getNode(newViewBox, 'M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z'));
exports.BugOutline = getIcon('bug', outline, getNode(newViewBox, 'M304 280h56c4.4 0 8-3.6 8-8 0-28.3 5.9-53.2 17.1-73.5 10.6-19.4 26-34.8 45.4-45.4C450.9 142 475.7 136 504 136h16c28.3 0 53.2 5.9 73.5 17.1 19.4 10.6 34.8 26 45.4 45.4C650 218.9 656 243.7 656 272c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-40-8.8-76.7-25.9-108.1a184.31 184.31 0 0 0-74-74C596.7 72.8 560 64 520 64h-16c-40 0-76.7 8.8-108.1 25.9a184.31 184.31 0 0 0-74 74C304.8 195.3 296 232 296 272c0 4.4 3.6 8 8 8z', 'M940 512H792V412c76.8 0 139-62.2 139-139 0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8a63 63 0 0 1-63 63H232a63 63 0 0 1-63-63c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 76.8 62.2 139 139 139v100H84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h148v96c0 6.5.2 13 .7 19.3C164.1 728.6 116 796.7 116 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-44.2 23.9-82.9 59.6-103.7a273 273 0 0 0 22.7 49c24.3 41.5 59 76.2 100.5 100.5S460.5 960 512 960s99.8-13.9 141.3-38.2a281.38 281.38 0 0 0 123.2-149.5A120 120 0 0 1 836 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-79.3-48.1-147.4-116.7-176.7.4-6.4.7-12.8.7-19.3v-96h148c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM716 680c0 36.8-9.7 72-27.8 102.9-17.7 30.3-43 55.6-73.3 73.3C584 874.3 548.8 884 512 884s-72-9.7-102.9-27.8c-30.3-17.7-55.6-43-73.3-73.3A202.75 202.75 0 0 1 308 680V412h408v268z'));
exports.CalculatorOutline = getIcon('calculator', outline, getNode(newViewBox, 'M251.2 387H320v68.8c0 1.8 1.8 3.2 4 3.2h48c2.2 0 4-1.4 4-3.3V387h68.8c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H376v-68.8c0-1.8-1.8-3.2-4-3.2h-48c-2.2 0-4 1.4-4 3.2V331h-68.8c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm328 0h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm0 265h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm0 104h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm-195.7-81l61.2-74.9c4.3-5.2.7-13.1-5.9-13.1H388c-2.3 0-4.5 1-5.9 2.9l-34 41.6-34-41.6a7.85 7.85 0 0 0-5.9-2.9h-50.9c-6.6 0-10.2 7.9-5.9 13.1l61.2 74.9-62.7 76.8c-4.4 5.2-.8 13.1 5.8 13.1h50.8c2.3 0 4.5-1 5.9-2.9l35.5-43.5 35.5 43.5c1.5 1.8 3.7 2.9 5.9 2.9h50.8c6.6 0 10.2-7.9 5.9-13.1L383.5 675zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-36 732H180V180h664v664z'));
exports.BuildOutline = getIcon('build', outline, getNode(newViewBox, 'M916 210H376c-17.7 0-32 14.3-32 32v236H108c-17.7 0-32 14.3-32 32v272c0 17.7 14.3 32 32 32h540c17.7 0 32-14.3 32-32V546h236c17.7 0 32-14.3 32-32V242c0-17.7-14.3-32-32-32zm-504 68h200v200H412V278zm-68 468H144V546h200v200zm268 0H412V546h200v200zm268-268H680V278h200v200z'));
exports.CalendarOutline = getIcon('calendar', outline, getNode(newViewBox, 'M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z'));
exports.CameraOutline = getIcon('camera', outline, getNode(newViewBox, 'M864 248H728l-32.4-90.8a32.07 32.07 0 0 0-30.2-21.2H358.6c-13.5 0-25.6 8.5-30.1 21.2L296 248H160c-44.2 0-80 35.8-80 80v456c0 44.2 35.8 80 80 80h704c44.2 0 80-35.8 80-80V328c0-44.2-35.8-80-80-80zm8 536c0 4.4-3.6 8-8 8H160c-4.4 0-8-3.6-8-8V328c0-4.4 3.6-8 8-8h186.7l17.1-47.8 22.9-64.2h250.5l22.9 64.2 17.1 47.8H864c4.4 0 8 3.6 8 8v456zM512 384c-88.4 0-160 71.6-160 160s71.6 160 160 160 160-71.6 160-160-71.6-160-160-160zm0 256c-53 0-96-43-96-96s43-96 96-96 96 43 96 96-43 96-96 96z'));
exports.CarOutline = getIcon('car', outline, getNode(newViewBox, 'M380 704h264c4.4 0 8-3.6 8-8v-84c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v36H428v-36c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v84c0 4.4 3.6 8 8 8zm340-123a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm239-167.6L935.3 372a8 8 0 0 0-10.9-2.9l-50.7 29.6-78.3-216.2a63.9 63.9 0 0 0-60.9-44.4H301.2c-34.7 0-65.5 22.4-76.2 55.5l-74.6 205.2-50.8-29.6a8 8 0 0 0-10.9 2.9L65 413.4c-2.2 3.8-.9 8.6 2.9 10.8l60.4 35.2-14.5 40c-1.2 3.2-1.8 6.6-1.8 10v348.2c0 15.7 11.8 28.4 26.3 28.4h67.6c12.3 0 23-9.3 25.6-22.3l7.7-37.7h545.6l7.7 37.7c2.7 13 13.3 22.3 25.6 22.3h67.6c14.5 0 26.3-12.7 26.3-28.4V509.4c0-3.4-.6-6.8-1.8-10l-14.5-40 60.3-35.2a8 8 0 0 0 3-10.8zM840 517v237H184V517l15.6-43h624.8l15.6 43zM292.7 218.1l.5-1.3.4-1.3c1.1-3.3 4.1-5.5 7.6-5.5h427.6l75.4 208H220l72.7-199.9zM224 581a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'));
exports.CaretDownOutline = getIcon('caret-down', outline, getNode(normalViewBox, 'M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z'));
exports.CaretLeftOutline = getIcon('caret-left', outline, getNode(normalViewBox, 'M689 165.1L308.2 493.5c-10.9 9.4-10.9 27.5 0 37L689 858.9c14.2 12.2 35 1.2 35-18.5V183.6c0-19.7-20.8-30.7-35-18.5z'));
exports.CaretRightOutline = getIcon('caret-right', outline, getNode(normalViewBox, 'M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z'));
exports.CarryOutOutline = getIcon('carry-out', outline, getNode(newViewBox, 'M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v584zM688 420h-55.2c-5.1 0-10 2.5-13 6.6L468.9 634.4l-64.7-89c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0 0 26 0l212.6-292.7c3.8-5.4 0-12.8-6.5-12.8z'));
exports.CheckCircleOutline = getIcon('check-circle', outline, getNode(newViewBox, 'M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0 0 51.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z', 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'));
exports.CaretUpOutline = getIcon('caret-up', outline, getNode(normalViewBox, 'M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z'));
exports.CheckSquareOutline = getIcon('check-square', outline, getNode(newViewBox, 'M433.1 657.7a31.8 31.8 0 0 0 51.7 0l210.6-292c3.8-5.3 0-12.7-6.5-12.7H642c-10.2 0-19.9 4.9-25.9 13.3L459 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H315c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8z', 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'));
exports.ChromeOutline = getIcon('chrome', outline, getNode(newViewBox, 'M928 512.3v-.3c0-229.8-186.2-416-416-416S96 282.2 96 512v.4c0 229.8 186.2 416 416 416s416-186.2 416-416v-.3.2zm-6.7-74.6l.6 3.3-.6-3.3zM676.7 638.2c53.5-82.2 52.5-189.4-11.1-263.7l162.4-8.4c20.5 44.4 32 93.8 32 145.9 0 185.2-144.6 336.6-327.1 347.4l143.8-221.2zM512 652.3c-77.5 0-140.2-62.7-140.2-140.2 0-77.7 62.7-140.2 140.2-140.2S652.2 434.5 652.2 512 589.5 652.3 512 652.3zm369.2-331.7l-3-5.7 3 5.7zM512 164c121.3 0 228.2 62.1 290.4 156.2l-263.6-13.9c-97.5-5.7-190.2 49.2-222.3 141.1L227.8 311c63.1-88.9 166.9-147 284.2-147zM102.5 585.8c26 145 127.1 264 261.6 315.1C229.6 850 128.5 731 102.5 585.8zM164 512c0-55.9 13.2-108.7 36.6-155.5l119.7 235.4c44.1 86.7 137.4 139.7 234 121.6l-74 145.1C302.9 842.5 164 693.5 164 512zm324.7 415.4c4 .2 8 .4 12 .5-4-.2-8-.3-12-.5z'));
exports.ClockCircleOutline = getIcon('clock-circle', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z', 'M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z'));
exports.CloseCircleOutline = getIcon('close-circle', outline, getNode(newViewBox, 'M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 0 0-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z', 'M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'));
exports.CloudOutline = getIcon('cloud', outline, getNode(newViewBox, 'M811.4 418.7C765.6 297.9 648.9 212 512.2 212S258.8 297.8 213 418.6C127.3 441.1 64 519.1 64 612c0 110.5 89.5 200 199.9 200h496.2C870.5 812 960 722.5 960 612c0-92.7-63.1-170.7-148.6-193.3zm36.3 281a123.07 123.07 0 0 1-87.6 36.3H263.9c-33.1 0-64.2-12.9-87.6-36.3A123.3 123.3 0 0 1 140 612c0-28 9.1-54.3 26.2-76.3a125.7 125.7 0 0 1 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0 1 52.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10c54.3 14.5 92.1 63.8 92.1 120 0 33.1-12.9 64.3-36.3 87.7z'));
exports.CloseSquareOutline = getIcon('close-square', outline, getNode(newViewBox, 'M354 671h58.9c4.7 0 9.2-2.1 12.3-5.7L512 561.8l86.8 103.5c3 3.6 7.5 5.7 12.3 5.7H670c6.8 0 10.5-7.9 6.1-13.1L553.8 512l122.4-145.9c4.4-5.2.7-13.1-6.1-13.1h-58.9c-4.7 0-9.2 2.1-12.3 5.7L512 462.2l-86.8-103.5c-3-3.6-7.5-5.7-12.3-5.7H354c-6.8 0-10.5 7.9-6.1 13.1L470.2 512 347.9 657.9A7.95 7.95 0 0 0 354 671z', 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'));
exports.CodeOutline = getIcon('code', outline, getNode(newViewBox, 'M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 0 0 308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 0 0-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'));
exports.CodepenCircleOutline = getIcon('codepen-circle', outline, getNode(newViewBox, 'M488.1 414.7V303.4L300.9 428l83.6 55.8zm254.1 137.7v-79.8l-59.8 39.9zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm278 533c0 1.1-.1 2.1-.2 3.1 0 .4-.1.7-.2 1a14.16 14.16 0 0 1-.8 3.2c-.2.6-.4 1.2-.6 1.7-.2.4-.4.8-.5 1.2-.3.5-.5 1.1-.8 1.6-.2.4-.4.7-.7 1.1-.3.5-.7 1-1 1.5-.3.4-.5.7-.8 1-.4.4-.8.9-1.2 1.3-.3.3-.6.6-1 .9-.4.4-.9.8-1.4 1.1-.4.3-.7.6-1.1.8-.1.1-.3.2-.4.3L525.2 786c-4 2.7-8.6 4-13.2 4-4.7 0-9.3-1.4-13.3-4L244.6 616.9c-.1-.1-.3-.2-.4-.3l-1.1-.8c-.5-.4-.9-.7-1.3-1.1-.3-.3-.6-.6-1-.9-.4-.4-.8-.8-1.2-1.3a7 7 0 0 1-.8-1c-.4-.5-.7-1-1-1.5-.2-.4-.5-.7-.7-1.1-.3-.5-.6-1.1-.8-1.6-.2-.4-.4-.8-.5-1.2-.2-.6-.4-1.2-.6-1.7-.1-.4-.3-.8-.4-1.2-.2-.7-.3-1.3-.4-2-.1-.3-.1-.7-.2-1-.1-1-.2-2.1-.2-3.1V427.9c0-1 .1-2.1.2-3.1.1-.3.1-.7.2-1a14.16 14.16 0 0 1 .8-3.2c.2-.6.4-1.2.6-1.7.2-.4.4-.8.5-1.2.2-.5.5-1.1.8-1.6.2-.4.4-.7.7-1.1.6-.9 1.2-1.7 1.8-2.5.4-.4.8-.9 1.2-1.3.3-.3.6-.6 1-.9.4-.4.9-.8 1.3-1.1.4-.3.7-.6 1.1-.8.1-.1.3-.2.4-.3L498.7 239c8-5.3 18.5-5.3 26.5 0l254.1 169.1c.1.1.3.2.4.3l1.1.8 1.4 1.1c.3.3.6.6 1 .9.4.4.8.8 1.2 1.3.7.8 1.3 1.6 1.8 2.5.2.4.5.7.7 1.1.3.5.6 1 .8 1.6.2.4.4.8.5 1.2.2.6.4 1.2.6 1.7.1.4.3.8.4 1.2.2.7.3 1.3.4 2 .1.3.1.7.2 1 .1 1 .2 2.1.2 3.1V597zm-254.1 13.3v111.3L723.1 597l-83.6-55.8zM281.8 472.6v79.8l59.8-39.9zM512 456.1l-84.5 56.4 84.5 56.4 84.5-56.4zM723.1 428L535.9 303.4v111.3l103.6 69.1zM384.5 541.2L300.9 597l187.2 124.6V610.3l-103.6-69.1z'));
exports.CompassOutline = getIcon('compass', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm198.4-588.1a32 32 0 0 0-24.5.5L414.9 415 296.4 686c-3.6 8.2-3.6 17.5 0 25.7 3.4 7.8 9.7 13.9 17.7 17 3.8 1.5 7.7 2.2 11.7 2.2 4.4 0 8.7-.9 12.8-2.7l271-118.6 118.5-271a32.06 32.06 0 0 0-17.7-42.7zM576.8 534.4l26.2 26.2-42.4 42.4-26.2-26.2L380 644.4 447.5 490 422 464.4l42.4-42.4 25.5 25.5L644.4 380l-67.6 154.4zM464.4 422L422 464.4l25.5 25.6 86.9 86.8 26.2 26.2 42.4-42.4-26.2-26.2-86.8-86.9z'));
exports.ContactsOutline = getIcon('contacts', outline, getNode(newViewBox, 'M594.3 601.5a111.8 111.8 0 0 0 29.1-75.5c0-61.9-49.9-112-111.4-112s-111.4 50.1-111.4 112c0 29.1 11 55.5 29.1 75.5a158.09 158.09 0 0 0-74.6 126.1 8 8 0 0 0 8 8.4H407c4.2 0 7.6-3.3 7.9-7.5 3.8-50.6 46-90.5 97.2-90.5s93.4 40 97.2 90.5c.3 4.2 3.7 7.5 7.9 7.5H661a8 8 0 0 0 8-8.4c-2.8-53.3-32-99.7-74.7-126.1zM512 578c-28.5 0-51.7-23.3-51.7-52s23.2-52 51.7-52 51.7 23.3 51.7 52-23.2 52-51.7 52zm416-354H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zm-40 568H136V296h120v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h120v496z'));
exports.ContainerOutline = getIcon('container', outline, getNode(newViewBox, 'M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V687h97.9c11.6 32.8 32 62.3 59.1 84.7 34.5 28.5 78.2 44.3 123 44.3s88.5-15.7 123-44.3c27.1-22.4 47.5-51.9 59.1-84.7H792v-63H643.6l-5.2 24.7C626.4 708.5 573.2 752 512 752s-114.4-43.5-126.5-103.3l-5.2-24.7H232V136h560v752zM320 341h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 160h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z'));
exports.ControlOutline = getIcon('control', outline, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM340 683v77c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-77c-10.1 3.3-20.8 5-32 5s-21.9-1.8-32-5zm64-198V264c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v221c10.1-3.3 20.8-5 32-5s21.9 1.8 32 5zm-64 198c10.1 3.3 20.8 5 32 5s21.9-1.8 32-5c41.8-13.5 72-52.7 72-99s-30.2-85.5-72-99c-10.1-3.3-20.8-5-32-5s-21.9 1.8-32 5c-41.8 13.5-72 52.7-72 99s30.2 85.5 72 99zm.1-115.7c.3-.6.7-1.2 1-1.8v-.1l1.2-1.8c.1-.2.2-.3.3-.5.3-.5.7-.9 1-1.4.1-.1.2-.3.3-.4.5-.6.9-1.1 1.4-1.6l.3-.3 1.2-1.2.4-.4c.5-.5 1-.9 1.6-1.4.6-.5 1.1-.9 1.7-1.3.2-.1.3-.2.5-.3.5-.3.9-.7 1.4-1 .1-.1.3-.2.4-.3.6-.4 1.2-.7 1.9-1.1.1-.1.3-.1.4-.2.5-.3 1-.5 1.6-.8l.6-.3c.7-.3 1.3-.6 2-.8.7-.3 1.4-.5 2.1-.7.2-.1.4-.1.6-.2.6-.2 1.1-.3 1.7-.4.2 0 .3-.1.5-.1.7-.2 1.5-.3 2.2-.4.2 0 .3 0 .5-.1.6-.1 1.2-.1 1.8-.2h.6c.8 0 1.5-.1 2.3-.1s1.5 0 2.3.1h.6c.6 0 1.2.1 1.8.2.2 0 .3 0 .5.1.7.1 1.5.2 2.2.4.2 0 .3.1.5.1.6.1 1.2.3 1.7.4.2.1.4.1.6.2.7.2 1.4.4 2.1.7.7.2 1.3.5 2 .8l.6.3c.5.2 1.1.5 1.6.8.1.1.3.1.4.2.6.3 1.3.7 1.9 1.1.1.1.3.2.4.3.5.3 1 .6 1.4 1 .2.1.3.2.5.3.6.4 1.2.9 1.7 1.3s1.1.9 1.6 1.4l.4.4 1.2 1.2.3.3c.5.5 1 1.1 1.4 1.6.1.1.2.3.3.4.4.4.7.9 1 1.4.1.2.2.3.3.5l1.2 1.8s0 .1.1.1a36.18 36.18 0 0 1 5.1 18.5c0 6-1.5 11.7-4.1 16.7-.3.6-.7 1.2-1 1.8 0 0 0 .1-.1.1l-1.2 1.8c-.1.2-.2.3-.3.5-.3.5-.7.9-1 1.4-.1.1-.2.3-.3.4-.5.6-.9 1.1-1.4 1.6l-.3.3-1.2 1.2-.4.4c-.5.5-1 .9-1.6 1.4-.6.5-1.1.9-1.7 1.3-.2.1-.3.2-.5.3-.5.3-.9.7-1.4 1-.1.1-.3.2-.4.3-.6.4-1.2.7-1.9 1.1-.1.1-.3.1-.4.2-.5.3-1 .5-1.6.8l-.6.3c-.7.3-1.3.6-2 .8-.7.3-1.4.5-2.1.7-.2.1-.4.1-.6.2-.6.2-1.1.3-1.7.4-.2 0-.3.1-.5.1-.7.2-1.5.3-2.2.4-.2 0-.3 0-.5.1-.6.1-1.2.1-1.8.2h-.6c-.8 0-1.5.1-2.3.1s-1.5 0-2.3-.1h-.6c-.6 0-1.2-.1-1.8-.2-.2 0-.3 0-.5-.1-.7-.1-1.5-.2-2.2-.4-.2 0-.3-.1-.5-.1-.6-.1-1.2-.3-1.7-.4-.2-.1-.4-.1-.6-.2-.7-.2-1.4-.4-2.1-.7-.7-.2-1.3-.5-2-.8l-.6-.3c-.5-.2-1.1-.5-1.6-.8-.1-.1-.3-.1-.4-.2-.6-.3-1.3-.7-1.9-1.1-.1-.1-.3-.2-.4-.3-.5-.3-1-.6-1.4-1-.2-.1-.3-.2-.5-.3-.6-.4-1.2-.9-1.7-1.3s-1.1-.9-1.6-1.4l-.4-.4-1.2-1.2-.3-.3c-.5-.5-1-1.1-1.4-1.6-.1-.1-.2-.3-.3-.4-.4-.4-.7-.9-1-1.4-.1-.2-.2-.3-.3-.5l-1.2-1.8v-.1c-.4-.6-.7-1.2-1-1.8-2.6-5-4.1-10.7-4.1-16.7s1.5-11.7 4.1-16.7zM620 539v221c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V539c-10.1 3.3-20.8 5-32 5s-21.9-1.8-32-5zm64-198v-77c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v77c10.1-3.3 20.8-5 32-5s21.9 1.8 32 5zm-64 198c10.1 3.3 20.8 5 32 5s21.9-1.8 32-5c41.8-13.5 72-52.7 72-99s-30.2-85.5-72-99c-10.1-3.3-20.8-5-32-5s-21.9 1.8-32 5c-41.8 13.5-72 52.7-72 99s30.2 85.5 72 99zm.1-115.7c.3-.6.7-1.2 1-1.8v-.1l1.2-1.8c.1-.2.2-.3.3-.5.3-.5.7-.9 1-1.4.1-.1.2-.3.3-.4.5-.6.9-1.1 1.4-1.6l.3-.3 1.2-1.2.4-.4c.5-.5 1-.9 1.6-1.4.6-.5 1.1-.9 1.7-1.3.2-.1.3-.2.5-.3.5-.3.9-.7 1.4-1 .1-.1.3-.2.4-.3.6-.4 1.2-.7 1.9-1.1.1-.1.3-.1.4-.2.5-.3 1-.5 1.6-.8l.6-.3c.7-.3 1.3-.6 2-.8.7-.3 1.4-.5 2.1-.7.2-.1.4-.1.6-.2.6-.2 1.1-.3 1.7-.4.2 0 .3-.1.5-.1.7-.2 1.5-.3 2.2-.4.2 0 .3 0 .5-.1.6-.1 1.2-.1 1.8-.2h.6c.8 0 1.5-.1 2.3-.1s1.5 0 2.3.1h.6c.6 0 1.2.1 1.8.2.2 0 .3 0 .5.1.7.1 1.5.2 2.2.4.2 0 .3.1.5.1.6.1 1.2.3 1.7.4.2.1.4.1.6.2.7.2 1.4.4 2.1.7.7.2 1.3.5 2 .8l.6.3c.5.2 1.1.5 1.6.8.1.1.3.1.4.2.6.3 1.3.7 1.9 1.1.1.1.3.2.4.3.5.3 1 .6 1.4 1 .2.1.3.2.5.3.6.4 1.2.9 1.7 1.3s1.1.9 1.6 1.4l.4.4 1.2 1.2.3.3c.5.5 1 1.1 1.4 1.6.1.1.2.3.3.4.4.4.7.9 1 1.4.1.2.2.3.3.5l1.2 1.8v.1a36.18 36.18 0 0 1 5.1 18.5c0 6-1.5 11.7-4.1 16.7-.3.6-.7 1.2-1 1.8v.1l-1.2 1.8c-.1.2-.2.3-.3.5-.3.5-.7.9-1 1.4-.1.1-.2.3-.3.4-.5.6-.9 1.1-1.4 1.6l-.3.3-1.2 1.2-.4.4c-.5.5-1 .9-1.6 1.4-.6.5-1.1.9-1.7 1.3-.2.1-.3.2-.5.3-.5.3-.9.7-1.4 1-.1.1-.3.2-.4.3-.6.4-1.2.7-1.9 1.1-.1.1-.3.1-.4.2-.5.3-1 .5-1.6.8l-.6.3c-.7.3-1.3.6-2 .8-.7.3-1.4.5-2.1.7-.2.1-.4.1-.6.2-.6.2-1.1.3-1.7.4-.2 0-.3.1-.5.1-.7.2-1.5.3-2.2.4-.2 0-.3 0-.5.1-.6.1-1.2.1-1.8.2h-.6c-.8 0-1.5.1-2.3.1s-1.5 0-2.3-.1h-.6c-.6 0-1.2-.1-1.8-.2-.2 0-.3 0-.5-.1-.7-.1-1.5-.2-2.2-.4-.2 0-.3-.1-.5-.1-.6-.1-1.2-.3-1.7-.4-.2-.1-.4-.1-.6-.2-.7-.2-1.4-.4-2.1-.7-.7-.2-1.3-.5-2-.8l-.6-.3c-.5-.2-1.1-.5-1.6-.8-.1-.1-.3-.1-.4-.2-.6-.3-1.3-.7-1.9-1.1-.1-.1-.3-.2-.4-.3-.5-.3-1-.6-1.4-1-.2-.1-.3-.2-.5-.3-.6-.4-1.2-.9-1.7-1.3s-1.1-.9-1.6-1.4l-.4-.4-1.2-1.2-.3-.3c-.5-.5-1-1.1-1.4-1.6-.1-.1-.2-.3-.3-.4-.4-.4-.7-.9-1-1.4-.1-.2-.2-.3-.3-.5l-1.2-1.8v-.1c-.4-.6-.7-1.2-1-1.8-2.6-5-4.1-10.7-4.1-16.7s1.5-11.7 4.1-16.7z'));
exports.CopyOutline = getIcon('copy', outline, getNode(newViewBox, 'M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z'));
exports.CreditCardOutline = getIcon('credit-card', outline, getNode(newViewBox, 'M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-792 72h752v120H136V232zm752 560H136V440h752v352zm-237-64h165c4.4 0 8-3.6 8-8v-72c0-4.4-3.6-8-8-8H651c-4.4 0-8 3.6-8 8v72c0 4.4 3.6 8 8 8z'));
exports.CrownOutline = getIcon('crown', outline, getNode(newViewBox, 'M899.6 276.5L705 396.4 518.4 147.5a8.06 8.06 0 0 0-12.9 0L319 396.4 124.3 276.5c-5.7-3.5-13.1 1.2-12.2 7.9L188.5 865c1.1 7.9 7.9 14 16 14h615.1c8 0 14.9-6 15.9-14l76.4-580.6c.8-6.7-6.5-11.4-12.3-7.9zm-126 534.1H250.3l-53.8-409.4 139.8 86.1L512 252.9l175.7 234.4 139.8-86.1-53.9 409.4zM512 509c-62.1 0-112.6 50.5-112.6 112.6S449.9 734.2 512 734.2s112.6-50.5 112.6-112.6S574.1 509 512 509zm0 160.9c-26.6 0-48.2-21.6-48.2-48.3 0-26.6 21.6-48.3 48.2-48.3s48.2 21.6 48.2 48.3c0 26.6-21.6 48.3-48.2 48.3z'));
exports.CustomerServiceOutline = getIcon('customer-service', outline, getNode(newViewBox, 'M512 128c-212.1 0-384 171.9-384 384v360c0 13.3 10.7 24 24 24h184c35.3 0 64-28.7 64-64V624c0-35.3-28.7-64-64-64H200v-48c0-172.3 139.7-312 312-312s312 139.7 312 312v48H688c-35.3 0-64 28.7-64 64v208c0 35.3 28.7 64 64 64h184c13.3 0 24-10.7 24-24V512c0-212.1-171.9-384-384-384zM328 632v192H200V632h128zm496 192H696V632h128v192z'));
exports.DashboardOutline = getIcon('dashboard', outline, getNode(newViewBox, 'M924.8 385.6a446.7 446.7 0 0 0-96-142.4 446.7 446.7 0 0 0-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 0 0-142.4 96 446.7 446.7 0 0 0-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6A371.12 371.12 0 0 1 140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276zM623.5 421.5a8.03 8.03 0 0 0-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5a55.95 55.95 0 0 0 0 79.2 55.95 55.95 0 0 0 79.2 0 55.87 55.87 0 0 0 14.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8zm260 218v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zm12.7-197.2l-31.1-31.1a8.03 8.03 0 0 0-11.3 0l-56.6 56.6a8.03 8.03 0 0 0 0 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zm-458.6-31.1a8.03 8.03 0 0 0-11.3 0l-31.1 31.1a8.03 8.03 0 0 0 0 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z'));
exports.DeleteOutline = getIcon('delete', outline, getNode(newViewBox, 'M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z'));
exports.DiffOutline = getIcon('diff', outline, getNode(newViewBox, 'M476 399.1c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1V484h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H420v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V540h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H476v-84.9zM560.5 704h-225c-4.1 0-7.5 3.2-7.5 7v42c0 3.8 3.4 7 7.5 7h225c4.1 0 7.5-3.2 7.5-7v-42c0-3.8-3.4-7-7.5-7zm-7.1-502.6c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v704c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32V397.3c0-8.5-3.4-16.6-9.4-22.6L553.4 201.4zM664 888H232V264h282.2L664 413.8V888zm190.2-581.4L611.3 72.9c-6-5.7-13.9-8.9-22.2-8.9H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h277l219 210.6V824c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V329.6c0-8.7-3.5-17-9.8-23z'));
exports.DatabaseOutline = getIcon('database', outline, getNode(newViewBox, 'M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm0 272a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm0 272a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'));
exports.DislikeOutline = getIcon('dislike', outline, getNode(newViewBox, 'M885.9 490.3c3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-51.6-30.7-98.1-78.3-118.4a66.1 66.1 0 0 0-26.5-5.4H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h129.3l85.8 310.8C372.9 889 418.9 924 470.9 924c29.7 0 57.4-11.8 77.9-33.4 20.5-21.5 31-49.7 29.5-79.4l-6-122.9h239.9c12.1 0 23.9-3.2 34.3-9.3 40.4-23.5 65.5-66.1 65.5-111 0-28.3-9.3-55.5-26.1-77.7zM184 456V172h81v284h-81zm627.2 160.4H496.8l9.6 198.4c.6 11.9-4.7 23.1-14.6 30.5-6.1 4.5-13.6 6.8-21.1 6.7a44.28 44.28 0 0 1-42.2-32.3L329 459.2V172h415.4a56.85 56.85 0 0 1 33.6 51.8c0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19a56.76 56.76 0 0 1 19.6 43c0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19a56.76 56.76 0 0 1 19.6 43c0 9.7-2.3 18.9-6.9 27.3l-14 25.5 21.9 19a56.76 56.76 0 0 1 19.6 43c0 19.1-11 37.5-28.8 48.4z'));
exports.DownCircleOutline = getIcon('down-circle', outline, getNode(newViewBox, 'M690 405h-46.9c-10.2 0-19.9 4.9-25.9 13.2L512 563.6 406.8 418.2c-6-8.3-15.6-13.2-25.9-13.2H334c-6.5 0-10.3 7.4-6.5 12.7l178 246c3.2 4.4 9.7 4.4 12.9 0l178-246c3.9-5.3.1-12.7-6.4-12.7z', 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'));
exports.DownSquareOutline = getIcon('down-square', outline, getNode(newViewBox, 'M505.5 658.7c3.2 4.4 9.7 4.4 12.9 0l178-246c3.8-5.3 0-12.7-6.5-12.7H643c-10.2 0-19.9 4.9-25.9 13.2L512 558.6 406.8 413.2c-6-8.3-15.6-13.2-25.9-13.2H334c-6.5 0-10.3 7.4-6.5 12.7l178 246z', 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'));
exports.DribbbleSquareOutline = getIcon('dribbble-square', outline, getNode(newViewBox, 'M498.6 432c-40.8-72.5-84.7-133.4-91.2-142.3-68.8 32.5-120.3 95.9-136.2 172.2 11 .2 112.4.7 227.4-29.9zm66.5 21.8c5.7 11.7 11.2 23.6 16.3 35.6 1.8 4.2 3.6 8.4 5.3 12.7 81.8-10.3 163.2 6.2 171.3 7.9-.5-58.1-21.3-111.4-55.5-153.3-5.3 7.1-46.5 60-137.4 97.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM512 800c-158.8 0-288-129.2-288-288s129.2-288 288-288 288 129.2 288 288-129.2 288-288 288zm89.7-259.1c32.2 88.4 45.3 160.4 47.8 175.4 55.2-37.3 94.5-96.4 105.4-164.9-8.4-2.6-76.1-22.8-153.2-10.5zm-72.5-26.4c3.2-1 6.4-2 9.7-2.9-6.2-14-12.9-28-19.9-41.7-122.8 36.8-242.1 35.2-252.8 35-.1 2.5-.1 5-.1 7.5 0 63.2 23.9 120.9 63.2 164.5 5.5-9.6 73-121.4 199.9-162.4zm145.9-186.2a245.2 245.2 0 0 0-220.8-55.1c6.8 9.1 51.5 69.9 91.8 144 87.5-32.8 124.5-82.6 129-88.9zM554 552.8c-138.7 48.3-188.6 144.6-193 153.6 41.7 32.5 94.1 51.9 151 51.9 34.1 0 66.6-6.9 96.1-19.5-3.7-21.6-17.9-96.8-52.5-186.6l-1.6.6z'));
exports.EnvironmentOutline = getIcon('environment', outline, getNode(newViewBox, 'M854.6 289.1a362.49 362.49 0 0 0-79.9-115.7 370.83 370.83 0 0 0-118.2-77.8C610.7 76.6 562.1 67 512 67c-50.1 0-98.7 9.6-144.5 28.5-44.3 18.3-84 44.5-118.2 77.8A363.6 363.6 0 0 0 169.4 289c-19.5 45-29.4 92.8-29.4 142 0 70.6 16.9 140.9 50.1 208.7 26.7 54.5 64 107.6 111 158.1 80.3 86.2 164.5 138.9 188.4 153a43.9 43.9 0 0 0 22.4 6.1c7.8 0 15.5-2 22.4-6.1 23.9-14.1 108.1-66.8 188.4-153 47-50.4 84.3-103.6 111-158.1C867.1 572 884 501.8 884 431.1c0-49.2-9.9-97-29.4-142zM512 880.2c-65.9-41.9-300-207.8-300-449.1 0-77.9 31.1-151.1 87.6-206.3C356.3 169.5 431.7 139 512 139s155.7 30.5 212.4 85.9C780.9 280 812 353.2 812 431.1c0 241.3-234.1 407.2-300 449.1zm0-617.2c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 0 1 512 551c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 0 1 400 439c0-29.9 11.7-58 32.8-79.2C454 338.6 482.1 327 512 327c29.9 0 58 11.6 79.2 32.8C612.4 381 624 409.1 624 439c0 29.9-11.6 58-32.8 79.2z'));
exports.EditOutline = getIcon('edit', outline, getNode(newViewBox, 'M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 0 0 0-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 0 0 9.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z'));
exports.ExclamationCircleOutline = getIcon('exclamation-circle', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z', 'M464 688a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z'));
exports.ExperimentOutline = getIcon('experiment', outline, getNode(newViewBox, 'M512 472a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm367 352.9L696.3 352V178H768v-68H256v68h71.7v174L145 824.9c-2.8 7.4-4.3 15.2-4.3 23.1 0 35.3 28.7 64 64 64h614.6c7.9 0 15.7-1.5 23.1-4.3 33-12.7 49.4-49.8 36.6-82.8zM395.7 364.7V180h232.6v184.7L719.2 600c-20.7-5.3-42.1-8-63.9-8-61.2 0-119.2 21.5-165.3 60a188.78 188.78 0 0 1-121.3 43.9c-32.7 0-64.1-8.3-91.8-23.7l118.8-307.5zM210.5 844l41.7-107.8c35.7 18.1 75.4 27.8 116.6 27.8 61.2 0 119.2-21.5 165.3-60 33.9-28.2 76.3-43.9 121.3-43.9 35 0 68.4 9.5 97.6 27.1L813.5 844h-603z'));
exports.EyeInvisibleOutline = getIcon('eye-invisible', outline, getNode(newViewBox, 'M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 0 0 0-51.5zm-63.57-320.64L836 122.88a8 8 0 0 0-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 0 0 0 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 0 0 0 11.31L155.17 889a8 8 0 0 0 11.31 0l712.15-712.12a8 8 0 0 0 0-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 0 0-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 0 1 146.2-106.69L401.31 546.2A112 112 0 0 1 396 512z', 'M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 0 0 227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 0 1-112 112z'));
exports.EyeOutline = getIcon('eye', outline, getNode(newViewBox, 'M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 0 0 0 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z'));
exports.FacebookOutline = getIcon('facebook', outline, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-32 736H663.9V602.2h104l15.6-120.7H663.9v-77.1c0-35 9.7-58.8 59.8-58.8h63.9v-108c-11.1-1.5-49-4.8-93.2-4.8-92.2 0-155.3 56.3-155.3 159.6v89H434.9v120.7h104.3V848H176V176h672v672z'));
exports.FastBackwardOutline = getIcon('fast-backward', outline, getNode(normalViewBox, 'M517.6 273.5L230.2 499.3a16.14 16.14 0 0 0 0 25.4l287.4 225.8c10.7 8.4 26.4.8 26.4-12.7V286.2c0-13.5-15.7-21.1-26.4-12.7zm320 0L550.2 499.3a16.14 16.14 0 0 0 0 25.4l287.4 225.8c10.7 8.4 26.4.8 26.4-12.7V286.2c0-13.5-15.7-21.1-26.4-12.7zm-620-25.5h-51.2c-3.5 0-6.4 2.7-6.4 6v516c0 3.3 2.9 6 6.4 6h51.2c3.5 0 6.4-2.7 6.4-6V254c0-3.3-2.9-6-6.4-6z'));
exports.FastForwardOutline = getIcon('fast-forward', outline, getNode(normalViewBox, 'M793.8 499.3L506.4 273.5c-10.7-8.4-26.4-.8-26.4 12.7v451.6c0 13.5 15.7 21.1 26.4 12.7l287.4-225.8a16.14 16.14 0 0 0 0-25.4zm-320 0L186.4 273.5c-10.7-8.4-26.4-.8-26.4 12.7v451.5c0 13.5 15.7 21.1 26.4 12.7l287.4-225.8c4.1-3.2 6.2-8 6.2-12.7 0-4.6-2.1-9.4-6.2-12.6zM857.6 248h-51.2c-3.5 0-6.4 2.7-6.4 6v516c0 3.3 2.9 6 6.4 6h51.2c3.5 0 6.4-2.7 6.4-6V254c0-3.3-2.9-6-6.4-6z'));
exports.FileAddOutline = getIcon('file-add', outline, getNode(newViewBox, 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494zM544 472c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v108H372c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h108v108c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V644h108c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V472z'));
exports.FileExcelOutline = getIcon('file-excel', outline, getNode(newViewBox, 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494zM514.1 580.1l-61.8-102.4c-2.2-3.6-6.1-5.8-10.3-5.8h-38.4c-2.3 0-4.5.6-6.4 1.9-5.6 3.5-7.3 10.9-3.7 16.6l82.3 130.4-83.4 132.8a12.04 12.04 0 0 0 10.2 18.4h34.5c4.2 0 8-2.2 10.2-5.7L510 664.8l62.3 101.4c2.2 3.6 6.1 5.7 10.2 5.7H620c2.3 0 4.5-.7 6.5-1.9 5.6-3.6 7.2-11 3.6-16.6l-84-130.4 85.3-132.5a12.04 12.04 0 0 0-10.1-18.5h-35.7c-4.2 0-8.1 2.2-10.3 5.8l-61.2 102.3z'));
exports.FileExclamationOutline = getIcon('file-exclamation', outline, getNode(newViewBox, 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494zM472 744a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm16-104h48c4.4 0 8-3.6 8-8V448c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v184c0 4.4 3.6 8 8 8z'));
exports.FileImageOutline = getIcon('file-image', outline, getNode(newViewBox, 'M553.1 509.1l-77.8 99.2-41.1-52.4a8 8 0 0 0-12.6 0l-99.8 127.2a7.98 7.98 0 0 0 6.3 12.9H696c6.7 0 10.4-7.7 6.3-12.9l-136.5-174a8.1 8.1 0 0 0-12.7 0zM360 442a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm494.6-153.4L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494z'));
exports.FileMarkdownOutline = getIcon('file-markdown', outline, getNode(newViewBox, 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494zM429 481.2c-1.9-4.4-6.2-7.2-11-7.2h-35c-6.6 0-12 5.4-12 12v272c0 6.6 5.4 12 12 12h27.1c6.6 0 12-5.4 12-12V582.1l66.8 150.2a12 12 0 0 0 11 7.1H524c4.7 0 9-2.8 11-7.1l66.8-150.6V758c0 6.6 5.4 12 12 12H641c6.6 0 12-5.4 12-12V486c0-6.6-5.4-12-12-12h-34.7c-4.8 0-9.1 2.8-11 7.2l-83.1 191-83.2-191z'));
exports.FilePptOutline = getIcon('file-ppt', outline, getNode(newViewBox, 'M424 476c-4.4 0-8 3.6-8 8v276c0 4.4 3.6 8 8 8h32.5c4.4 0 8-3.6 8-8v-95.5h63.3c59.4 0 96.2-38.9 96.2-94.1 0-54.5-36.3-94.3-96-94.3H424zm150.6 94.3c0 43.4-26.5 54.3-71.2 54.3h-38.9V516.2h56.2c33.8 0 53.9 19.7 53.9 54.1zm280-281.7L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494z'));
exports.FileTextOutline = getIcon('file-text', outline, getNode(newViewBox, 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z'));
exports.FilePdfOutline = getIcon('file-pdf', outline, getNode(newViewBox, 'M531.3 574.4l.3-1.4c5.8-23.9 13.1-53.7 7.4-80.7-3.8-21.3-19.5-29.6-32.9-30.2-15.8-.7-29.9 8.3-33.4 21.4-6.6 24-.7 56.8 10.1 98.6-13.6 32.4-35.3 79.5-51.2 107.5-29.6 15.3-69.3 38.9-75.2 68.7-1.2 5.5.2 12.5 3.5 18.8 3.7 7 9.6 12.4 16.5 15 3 1.1 6.6 2 10.8 2 17.6 0 46.1-14.2 84.1-79.4 5.8-1.9 11.8-3.9 17.6-5.9 27.2-9.2 55.4-18.8 80.9-23.1 28.2 15.1 60.3 24.8 82.1 24.8 21.6 0 30.1-12.8 33.3-20.5 5.6-13.5 2.9-30.5-6.2-39.6-13.2-13-45.3-16.4-95.3-10.2-24.6-15-40.7-35.4-52.4-65.8zM421.6 726.3c-13.9 20.2-24.4 30.3-30.1 34.7 6.7-12.3 19.8-25.3 30.1-34.7zm87.6-235.5c5.2 8.9 4.5 35.8.5 49.4-4.9-19.9-5.6-48.1-2.7-51.4.8.1 1.5.7 2.2 2zm-1.6 120.5c10.7 18.5 24.2 34.4 39.1 46.2-21.6 4.9-41.3 13-58.9 20.2-4.2 1.7-8.3 3.4-12.3 5 13.3-24.1 24.4-51.4 32.1-71.4zm155.6 65.5c.1.2.2.5-.4.9h-.2l-.2.3c-.8.5-9 5.3-44.3-8.6 40.6-1.9 45 7.3 45.1 7.4zm191.4-388.2L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494z'));
exports.FileZipOutline = getIcon('file-zip', outline, getNode(newViewBox, 'M296 392h64v64h-64zm0 190v160h128V582h-64v-62h-64v62zm80 48v64h-32v-64h32zm-16-302h64v64h-64zm-64-64h64v64h-64zm64 192h64v64h-64zm0-256h64v64h-64zm494.6 88.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h64v64h64v-64h174v216a42 42 0 0 0 42 42h216v494z'));
exports.FileOutline = getIcon('file', outline, getNode(newViewBox, 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494z'));
exports.FilterOutline = getIcon('filter', outline, getNode(newViewBox, 'M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z'));
exports.FileWordOutline = getIcon('file-word', outline, getNode(newViewBox, 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494zM528.1 472h-32.2c-5.5 0-10.3 3.7-11.6 9.1L434.6 680l-46.1-198.7c-1.3-5.4-6.1-9.3-11.7-9.3h-35.4a12.02 12.02 0 0 0-11.6 15.1l74.2 276c1.4 5.2 6.2 8.9 11.6 8.9h32c5.4 0 10.2-3.6 11.6-8.9l52.8-197 52.8 197c1.4 5.2 6.2 8.9 11.6 8.9h31.8c5.4 0 10.2-3.6 11.6-8.9l74.4-276a12.04 12.04 0 0 0-11.6-15.1H647c-5.6 0-10.4 3.9-11.7 9.3l-45.8 199.1-49.8-199.3c-1.3-5.4-6.1-9.1-11.6-9.1z'));
exports.FireOutline = getIcon('fire', outline, getNode(newViewBox, 'M834.1 469.2A347.49 347.49 0 0 0 751.2 354l-29.1-26.7a8.09 8.09 0 0 0-13 3.3l-13 37.3c-8.1 23.4-23 47.3-44.1 70.8-1.4 1.5-3 1.9-4.1 2-1.1.1-2.8-.1-4.3-1.5-1.4-1.2-2.1-3-2-4.8 3.7-60.2-14.3-128.1-53.7-202C555.3 171 510 123.1 453.4 89.7l-41.3-24.3c-5.4-3.2-12.3 1-12 7.3l2.2 48c1.5 32.8-2.3 61.8-11.3 85.9-11 29.5-26.8 56.9-47 81.5a295.64 295.64 0 0 1-47.5 46.1 352.6 352.6 0 0 0-100.3 121.5A347.75 347.75 0 0 0 160 610c0 47.2 9.3 92.9 27.7 136a349.4 349.4 0 0 0 75.5 110.9c32.4 32 70 57.2 111.9 74.7C418.5 949.8 464.5 959 512 959s93.5-9.2 136.9-27.3A348.6 348.6 0 0 0 760.8 857c32.4-32 57.8-69.4 75.5-110.9a344.2 344.2 0 0 0 27.7-136c0-48.8-10-96.2-29.9-140.9zM713 808.5c-53.7 53.2-125 82.4-201 82.4s-147.3-29.2-201-82.4c-53.5-53.1-83-123.5-83-198.4 0-43.5 9.8-85.2 29.1-124 18.8-37.9 46.8-71.8 80.8-97.9a349.6 349.6 0 0 0 58.6-56.8c25-30.5 44.6-64.5 58.2-101a240 240 0 0 0 12.1-46.5c24.1 22.2 44.3 49 61.2 80.4 33.4 62.6 48.8 118.3 45.8 165.7a74.01 74.01 0 0 0 24.4 59.8 73.36 73.36 0 0 0 53.4 18.8c19.7-1 37.8-9.7 51-24.4 13.3-14.9 24.8-30.1 34.4-45.6 14 17.9 25.7 37.4 35 58.4 15.9 35.8 24 73.9 24 113.1 0 74.9-29.5 145.4-83 198.4z'));
exports.FileUnknownOutline = getIcon('file-unknown', outline, getNode(newViewBox, 'M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.6-9.4-22.6zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494zM402 549c0 5.4 4.4 9.5 9.8 9.5h32.4c5.4 0 9.8-4.2 9.8-9.4 0-28.2 25.8-51.6 58-51.6s58 23.4 58 51.5c0 25.3-21 47.2-49.3 50.9-19.3 2.8-34.5 20.3-34.7 40.1v32c0 5.5 4.5 10 10 10h32c5.5 0 10-4.5 10-10v-12.2c0-6 4-11.5 9.7-13.3 44.6-14.4 75-54 74.3-98.9-.8-55.5-49.2-100.8-108.5-101.6-61.4-.7-111.5 45.6-111.5 103zm78 195a32 32 0 1 0 64 0 32 32 0 1 0-64 0z'));
exports.FlagOutline = getIcon('flag', outline, getNode(newViewBox, 'M880 305H624V192c0-17.7-14.3-32-32-32H184v-40c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v784c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V640h248v113c0 17.7 14.3 32 32 32h416c17.7 0 32-14.3 32-32V337c0-17.7-14.3-32-32-32zM184 568V232h368v336H184zm656 145H504v-73h112c4.4 0 8-3.6 8-8V377h216v336z'));
exports.FolderAddOutline = getIcon('folder-add', outline, getNode(newViewBox, 'M484 443.1V528h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H484v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V584h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H540v-84.9c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1zm396-144.7H521L403.7 186.2a8.15 8.15 0 0 0-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z'));
exports.FolderOutline = getIcon('folder', outline, getNode(newViewBox, 'M880 298.4H521L403.7 186.2a8.15 8.15 0 0 0-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z'));
exports.FolderOpenOutline = getIcon('folder-open', outline, getNode(newViewBox, 'M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 0 0-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z'));
exports.ForwardOutline = getIcon('forward', outline, getNode(normalViewBox, 'M825.8 498L538.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L825.8 526c8.3-7.2 8.3-20.8 0-28zm-320 0L218.4 249.9c-10.7-9.2-26.4-.9-26.4 14v496.3c0 14.9 15.7 23.2 26.4 14L505.8 526c4.1-3.6 6.2-8.8 6.2-14 0-5.2-2.1-10.4-6.2-14z'));
exports.FrownOutline = getIcon('frown', outline, getNode(newViewBox, 'M288 421a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm352 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 0 1 248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 0 1 249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 0 1 775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 0 1 775 775zM512 533c-85.5 0-155.6 67.3-160 151.6a8 8 0 0 0 8 8.4h48.1c4.2 0 7.8-3.2 8.1-7.4C420 636.1 461.5 597 512 597s92.1 39.1 95.8 88.6c.3 4.2 3.9 7.4 8.1 7.4H664a8 8 0 0 0 8-8.4C667.6 600.3 597.5 533 512 533z'));
exports.FundOutline = getIcon('fund', outline, getNode(newViewBox, 'M926 164H94c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V196c0-17.7-14.3-32-32-32zm-40 632H134V236h752v560zm-658.9-82.3c3.1 3.1 8.2 3.1 11.3 0l172.5-172.5 114.4 114.5c3.1 3.1 8.2 3.1 11.3 0l297-297.2c3.1-3.1 3.1-8.2 0-11.3l-36.8-36.8a8.03 8.03 0 0 0-11.3 0L531 565 416.6 450.5a8.03 8.03 0 0 0-11.3 0l-214.9 215a8.03 8.03 0 0 0 0 11.3l36.7 36.9z'));
exports.FunnelPlotOutline = getIcon('funnel-plot', outline, getNode(newViewBox, 'M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 607.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V607.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V650h182.9v148zm9.6-226.6l-8.4 14.6H419.3l-8.4-14.6L334.4 438h355.2L613 571.4zM726.3 374H297.7l-85-148h598.6l-85 148z'));
exports.GiftOutline = getIcon('gift', outline, getNode(newViewBox, 'M880 310H732.4c13.6-21.4 21.6-46.8 21.6-74 0-76.1-61.9-138-138-138-41.4 0-78.7 18.4-104 47.4-25.3-29-62.6-47.4-104-47.4-76.1 0-138 61.9-138 138 0 27.2 7.9 52.6 21.6 74H144c-17.7 0-32 14.3-32 32v200c0 4.4 3.6 8 8 8h40v344c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V550h40c4.4 0 8-3.6 8-8V342c0-17.7-14.3-32-32-32zm-334-74c0-38.6 31.4-70 70-70s70 31.4 70 70-31.4 70-70 70h-70v-70zm-138-70c38.6 0 70 31.4 70 70v70h-70c-38.6 0-70-31.4-70-70s31.4-70 70-70zM180 482V378h298v104H180zm48 68h250v308H228V550zm568 308H546V550h250v308zm48-376H546V378h298v104z'));
exports.GithubOutline = getIcon('github', outline, getNode(newViewBox, 'M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0 1 38.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z'));
exports.GitlabOutline = getIcon('gitlab', outline, getNode(newViewBox, 'M913.9 552.2L805 181.4v-.1c-7.6-22.9-25.7-36.5-48.3-36.5-23.4 0-42.5 13.5-49.7 35.2l-71.4 213H388.8l-71.4-213c-7.2-21.7-26.3-35.2-49.7-35.2-23.1 0-42.5 14.8-48.4 36.6L110.5 552.2c-4.4 14.7 1.2 31.4 13.5 40.7l368.5 276.4c2.6 3.6 6.2 6.3 10.4 7.8l8.6 6.4 8.5-6.4c4.9-1.7 9-4.7 11.9-8.9l368.4-275.4c12.4-9.2 18-25.9 13.6-40.6zM751.7 193.4c1-1.8 2.9-1.9 3.5-1.9 1.1 0 2.5.3 3.4 3L818 394.3H684.5l67.2-200.9zm-487.4 1c.9-2.6 2.3-2.9 3.4-2.9 2.7 0 2.9.1 3.4 1.7l67.3 201.2H206.5l57.8-200zM158.8 558.7l28.2-97.3 202.4 270.2-230.6-172.9zm73.9-116.4h122.1l90.8 284.3-212.9-284.3zM512.9 776L405.7 442.3H620L512.9 776zm157.9-333.7h119.5L580 723.1l90.8-280.8zm-40.7 293.9l207.3-276.7 29.5 99.2-236.8 177.5z'));
exports.HeartOutline = getIcon('heart', outline, getNode(newViewBox, 'M923 283.6a260.04 260.04 0 0 0-56.9-82.8 264.4 264.4 0 0 0-84-55.5A265.34 265.34 0 0 0 679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 0 0-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z'));
exports.HddOutline = getIcon('hdd', outline, getNode(newViewBox, 'M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM496 208H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 544h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm328 244a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'));
exports.HighlightOutline = getIcon('highlight', outline, getNode(newViewBox, 'M957.6 507.4L603.2 158.2a7.9 7.9 0 0 0-11.2 0L353.3 393.4a8.03 8.03 0 0 0-.1 11.3l.1.1 40 39.4-117.2 115.3a8.03 8.03 0 0 0-.1 11.3l.1.1 39.5 38.9-189.1 187H72.1c-4.4 0-8.1 3.6-8.1 8V860c0 4.4 3.6 8 8 8h344.9c2.1 0 4.1-.8 5.6-2.3l76.1-75.6 40.4 39.8a7.9 7.9 0 0 0 11.2 0l117.1-115.6 40.1 39.5a7.9 7.9 0 0 0 11.2 0l238.7-235.2c3.4-3 3.4-8 .3-11.2zM389.8 796.2H229.6l134.4-133 80.1 78.9-54.3 54.1zm154.8-62.1L373.2 565.2l68.6-67.6 171.4 168.9-68.6 67.6zM713.1 658L450.3 399.1 597.6 254l262.8 259-147.3 145z'));
exports.HomeOutline = getIcon('home', outline, getNode(newViewBox, 'M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 0 0-44.4 0L77.5 505a63.9 63.9 0 0 0-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0 0 18.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z'));
exports.HourglassOutline = getIcon('hourglass', outline, getNode(newViewBox, 'M742 318V184h86c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H196c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h86v134c0 81.5 42.4 153.2 106.4 194-64 40.8-106.4 112.5-106.4 194v134h-86c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h632c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-86V706c0-81.5-42.4-153.2-106.4-194 64-40.8 106.4-112.5 106.4-194zm-72 388v134H354V706c0-42.2 16.4-81.9 46.3-111.7C430.1 564.4 469.8 548 512 548s81.9 16.4 111.7 46.3C653.6 624.1 670 663.8 670 706zm0-388c0 42.2-16.4 81.9-46.3 111.7C593.9 459.6 554.2 476 512 476s-81.9-16.4-111.7-46.3A156.63 156.63 0 0 1 354 318V184h316v134z'));
exports.Html5Outline = getIcon('html5', outline, getNode(newViewBox, 'M145 96l66 746.6L511.8 928l299.6-85.4L878.7 96H145zm610.9 700.6l-244.1 69.6-245.2-69.6-56.7-641.2h603.8l-57.8 641.2zM281 249l1.7 24.3 22.7 253.5h206.5v-.1h112.9l-11.4 118.5L511 672.9v.2h-.8l-102.4-27.7-6.5-73.2h-91l11.3 144.7 188.6 52h1.7v-.4l187.7-51.7 1.7-16.3 21.2-242.2 3.2-24.3H511v.2H389.9l-8.2-94.2h352.1l1.7-19.5 4.8-47.2L742 249H511z'));
exports.IdcardOutline = getIcon('idcard', outline, getNode(newViewBox, 'M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136V232h752v560zM610.3 476h123.4c1.3 0 2.3-3.6 2.3-8v-48c0-4.4-1-8-2.3-8H610.3c-1.3 0-2.3 3.6-2.3 8v48c0 4.4 1 8 2.3 8zm4.8 144h185.7c3.9 0 7.1-3.6 7.1-8v-48c0-4.4-3.2-8-7.1-8H615.1c-3.9 0-7.1 3.6-7.1 8v48c0 4.4 3.2 8 7.1 8zM224 673h43.9c4.2 0 7.6-3.3 7.9-7.5 3.8-50.5 46-90.5 97.2-90.5s93.4 40 97.2 90.5c.3 4.2 3.7 7.5 7.9 7.5H522a8 8 0 0 0 8-8.4c-2.8-53.3-32-99.7-74.6-126.1a111.8 111.8 0 0 0 29.1-75.5c0-61.9-49.9-112-111.4-112s-111.4 50.1-111.4 112c0 29.1 11 55.5 29.1 75.5a158.09 158.09 0 0 0-74.6 126.1c-.4 4.6 3.2 8.4 7.8 8.4zm149-262c28.5 0 51.7 23.3 51.7 52s-23.2 52-51.7 52-51.7-23.3-51.7-52 23.2-52 51.7-52z'));
exports.InfoCircleOutline = getIcon('info-circle', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z', 'M464 336a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z'));
exports.InstagramOutline = getIcon('instagram', outline, getNode(newViewBox, 'M512 306.9c-113.5 0-205.1 91.6-205.1 205.1S398.5 717.1 512 717.1 717.1 625.5 717.1 512 625.5 306.9 512 306.9zm0 338.4c-73.4 0-133.3-59.9-133.3-133.3S438.6 378.7 512 378.7 645.3 438.6 645.3 512 585.4 645.3 512 645.3zm213.5-394.6c-26.5 0-47.9 21.4-47.9 47.9s21.4 47.9 47.9 47.9 47.9-21.3 47.9-47.9a47.84 47.84 0 0 0-47.9-47.9zM911.8 512c0-55.2.5-109.9-2.6-165-3.1-64-17.7-120.8-64.5-167.6-46.9-46.9-103.6-61.4-167.6-64.5-55.2-3.1-109.9-2.6-165-2.6-55.2 0-109.9-.5-165 2.6-64 3.1-120.8 17.7-167.6 64.5C132.6 226.3 118.1 283 115 347c-3.1 55.2-2.6 109.9-2.6 165s-.5 109.9 2.6 165c3.1 64 17.7 120.8 64.5 167.6 46.9 46.9 103.6 61.4 167.6 64.5 55.2 3.1 109.9 2.6 165 2.6 55.2 0 109.9.5 165-2.6 64-3.1 120.8-17.7 167.6-64.5 46.9-46.9 61.4-103.6 64.5-167.6 3.2-55.1 2.6-109.8 2.6-165zm-88 235.8c-7.3 18.2-16.1 31.8-30.2 45.8-14.1 14.1-27.6 22.9-45.8 30.2C695.2 844.7 570.3 840 512 840c-58.3 0-183.3 4.7-235.9-16.1-18.2-7.3-31.8-16.1-45.8-30.2-14.1-14.1-22.9-27.6-30.2-45.8C179.3 695.2 184 570.3 184 512c0-58.3-4.7-183.3 16.1-235.9 7.3-18.2 16.1-31.8 30.2-45.8s27.6-22.9 45.8-30.2C328.7 179.3 453.7 184 512 184s183.3-4.7 235.9 16.1c18.2 7.3 31.8 16.1 45.8 30.2 14.1 14.1 22.9 27.6 30.2 45.8C844.7 328.7 840 453.7 840 512c0 58.3 4.7 183.2-16.2 235.8z'));
exports.InsuranceOutline = getIcon('insurance', outline, getNode(newViewBox, 'M441.6 306.8L403 288.6a6.1 6.1 0 0 0-8.4 3.7c-17.5 58.5-45.2 110.1-82.2 153.6a6.05 6.05 0 0 0-1.2 5.6l13.2 43.5c1.3 4.4 7 5.7 10.2 2.4 7.7-8.1 15.4-16.9 23.1-26V656c0 4.4 3.6 8 8 8H403c4.4 0 8-3.6 8-8V393.1a429.2 429.2 0 0 0 33.6-79c1-2.9-.3-6-3-7.3zm26.8 9.2v127.2c0 4.4 3.6 8 8 8h65.9v18.6h-94.9c-4.4 0-8 3.6-8 8v35.6c0 4.4 3.6 8 8 8h55.1c-19.1 30.8-42.4 55.7-71 76a6 6 0 0 0-1.6 8.1l22.8 36.5c1.9 3.1 6.2 3.8 8.9 1.4 31.6-26.8 58.7-62.9 80.6-107.6v120c0 4.4 3.6 8 8 8h36.2c4.4 0 8-3.6 8-8V536c21.3 41.7 47.5 77.5 78.1 106.9 2.6 2.5 6.8 2.1 8.9-.7l26.3-35.3c2-2.7 1.4-6.5-1.2-8.4-30.5-22.6-54.2-47.8-72.3-76.9h59c4.4 0 8-3.6 8-8V478c0-4.4-3.6-8-8-8h-98.8v-18.6h66.7c4.4 0 8-3.6 8-8V316c0-4.4-3.6-8-8-8H476.4c-4.4 0-8 3.6-8 8zm51.5 42.8h97.9v41.6h-97.9v-41.6zm347-188.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6z'));
exports.InteractionOutline = getIcon('interaction', outline, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM304.8 524h50.7c3.7 0 6.8-3 6.8-6.8v-78.9c0-19.7 15.9-35.6 35.5-35.6h205.7v53.4c0 5.7 6.5 8.8 10.9 5.3l109.1-85.7c3.5-2.7 3.5-8 0-10.7l-109.1-85.7c-4.4-3.5-10.9-.3-10.9 5.3V338H397.7c-55.1 0-99.7 44.8-99.7 100.1V517c0 4 3 7 6.8 7zm-4.2 134.9l109.1 85.7c4.4 3.5 10.9.3 10.9-5.3v-53.4h205.7c55.1 0 99.7-44.8 99.7-100.1v-78.9c0-3.7-3-6.8-6.8-6.8h-50.7c-3.7 0-6.8 3-6.8 6.8v78.9c0 19.7-15.9 35.6-35.5 35.6H420.6V568c0-5.7-6.5-8.8-10.9-5.3l-109.1 85.7c-3.5 2.5-3.5 7.8 0 10.5z'));
exports.InterationOutline = getIcon('interation', outline, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM304.8 524h50.7c3.7 0 6.8-3 6.8-6.8v-78.9c0-19.7 15.9-35.6 35.5-35.6h205.7v53.4c0 5.7 6.5 8.8 10.9 5.3l109.1-85.7c3.5-2.7 3.5-8 0-10.7l-109.1-85.7c-4.4-3.5-10.9-.3-10.9 5.3V338H397.7c-55.1 0-99.7 44.8-99.7 100.1V517c0 4 3 7 6.8 7zm-4.2 134.9l109.1 85.7c4.4 3.5 10.9.3 10.9-5.3v-53.4h205.7c55.1 0 99.7-44.8 99.7-100.1v-78.9c0-3.7-3-6.8-6.8-6.8h-50.7c-3.7 0-6.8 3-6.8 6.8v78.9c0 19.7-15.9 35.6-35.5 35.6H420.6V568c0-5.7-6.5-8.8-10.9-5.3l-109.1 85.7c-3.5 2.5-3.5 7.8 0 10.5z'));
exports.LayoutOutline = getIcon('layout', outline, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-696 72h136v656H184V184zm656 656H384V384h456v456zM384 320V184h456v136H384z'));
exports.LeftCircleOutline = getIcon('left-circle', outline, getNode(newViewBox, 'M603.3 327.5l-246 178a7.95 7.95 0 0 0 0 12.9l246 178c5.3 3.8 12.7 0 12.7-6.5V643c0-10.2-4.9-19.9-13.2-25.9L457.4 512l145.4-105.2c8.3-6 13.2-15.6 13.2-25.9V334c0-6.5-7.4-10.3-12.7-6.5z', 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'));
exports.LeftSquareOutline = getIcon('left-square', outline, getNode(newViewBox, 'M365.3 518.5l246 178c5.3 3.8 12.7 0 12.7-6.5v-46.9c0-10.2-4.9-19.9-13.2-25.9L465.4 512l145.4-105.2c8.3-6 13.2-15.6 13.2-25.9V334c0-6.5-7.4-10.3-12.7-6.5l-246 178a8.05 8.05 0 0 0 0 13z', 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'));
exports.LikeOutline = getIcon('like', outline, getNode(newViewBox, 'M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 0 0-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 0 0 471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 0 1 6.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 0 1 6.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 0 1 6.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0 1 42.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z'));
exports.LinkedinOutline = getIcon('linkedin', outline, getNode(newViewBox, 'M847.7 112H176.3c-35.5 0-64.3 28.8-64.3 64.3v671.4c0 35.5 28.8 64.3 64.3 64.3h671.4c35.5 0 64.3-28.8 64.3-64.3V176.3c0-35.5-28.8-64.3-64.3-64.3zm0 736c-447.8-.1-671.7-.2-671.7-.3.1-447.8.2-671.7.3-671.7 447.8.1 671.7.2 671.7.3-.1 447.8-.2 671.7-.3 671.7zM230.6 411.9h118.7v381.8H230.6zm59.4-52.2c37.9 0 68.8-30.8 68.8-68.8a68.8 68.8 0 1 0-137.6 0c-.1 38 30.7 68.8 68.8 68.8zm252.3 245.1c0-49.8 9.5-98 71.2-98 60.8 0 61.7 56.9 61.7 101.2v185.7h118.6V584.3c0-102.8-22.2-181.9-142.3-181.9-57.7 0-96.4 31.7-112.3 61.7h-1.6v-52.2H423.7v381.8h118.6V604.8z'));
exports.LockOutline = getIcon('lock', outline, getNode(newViewBox, 'M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 1 0-56 0z'));
exports.MedicineBoxOutline = getIcon('medicine-box', outline, getNode(newViewBox, 'M839.2 278.1a32 32 0 0 0-30.4-22.1H736V144c0-17.7-14.3-32-32-32H320c-17.7 0-32 14.3-32 32v112h-72.8a31.9 31.9 0 0 0-30.4 22.1L112 502v378c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V502l-72.8-223.9zM360 184h304v72H360v-72zm480 656H184V513.4L244.3 328h535.4L840 513.4V840zM652 572H544V464c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v108H372c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h108v108c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V636h108c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z'));
exports.MehOutline = getIcon('meh', outline, getNode(newViewBox, 'M288 421a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm352 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 0 1 248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 0 1 249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 0 1 775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 0 1 775 775zM664 565H360c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z'));
exports.MailOutline = getIcon('mail', outline, getNode(newViewBox, 'M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0 0 68.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z'));
exports.MessageOutline = getIcon('message', outline, getNode(newViewBox, 'M464 512a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm200 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm-400 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 0 0-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 0 0-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 0 0 112 714v152a46 46 0 0 0 46 46h152.1A449.4 449.4 0 0 0 510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 0 0 142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z'));
exports.MinusCircleOutline = getIcon('minus-circle', outline, getNode(newViewBox, 'M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z', 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'));
exports.MinusSquareOutline = getIcon('minus-square', outline, getNode(newViewBox, 'M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z', 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'));
exports.MobileOutline = getIcon('mobile', outline, getNode(newViewBox, 'M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'));
exports.MoneyCollectOutline = getIcon('money-collect', outline, getNode(newViewBox, 'M911.5 700.7a8 8 0 0 0-10.3-4.8L840 718.2V180c0-37.6-30.4-68-68-68H252c-37.6 0-68 30.4-68 68v538.2l-61.3-22.3c-.9-.3-1.8-.5-2.7-.5-4.4 0-8 3.6-8 8V763c0 3.3 2.1 6.3 5.3 7.5L501 910.1c7.1 2.6 14.8 2.6 21.9 0l383.8-139.5c3.2-1.2 5.3-4.2 5.3-7.5v-59.6c0-1-.2-1.9-.5-2.8zM512 837.5l-256-93.1V184h512v560.4l-256 93.1zM660.6 312h-54.5c-3 0-5.8 1.7-7.1 4.4l-84.7 168.8H511l-84.7-168.8a8 8 0 0 0-7.1-4.4h-55.7c-1.3 0-2.6.3-3.8 1-3.9 2.1-5.3 7-3.2 10.8l103.9 191.6h-57c-4.4 0-8 3.6-8 8v27.1c0 4.4 3.6 8 8 8h76v39h-76c-4.4 0-8 3.6-8 8v27.1c0 4.4 3.6 8 8 8h76V704c0 4.4 3.6 8 8 8h49.9c4.4 0 8-3.6 8-8v-63.5h76.3c4.4 0 8-3.6 8-8v-27.1c0-4.4-3.6-8-8-8h-76.3v-39h76.3c4.4 0 8-3.6 8-8v-27.1c0-4.4-3.6-8-8-8H564l103.7-191.6c.6-1.2 1-2.5 1-3.8-.1-4.3-3.7-7.9-8.1-7.9z'));
exports.PauseCircleOutline = getIcon('pause-circle', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm-88-532h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zm224 0h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z'));
exports.PayCircleOutline = getIcon('pay-circle', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm159.6-585h-59.5c-3 0-5.8 1.7-7.1 4.4l-90.6 180H511l-90.6-180a8 8 0 0 0-7.1-4.4h-60.7c-1.3 0-2.6.3-3.8 1-3.9 2.1-5.3 7-3.2 10.9L457 515.7h-61.4c-4.4 0-8 3.6-8 8v29.9c0 4.4 3.6 8 8 8h81.7V603h-81.7c-4.4 0-8 3.6-8 8v29.9c0 4.4 3.6 8 8 8h81.7V717c0 4.4 3.6 8 8 8h54.3c4.4 0 8-3.6 8-8v-68.1h82c4.4 0 8-3.6 8-8V611c0-4.4-3.6-8-8-8h-82v-41.5h82c4.4 0 8-3.6 8-8v-29.9c0-4.4-3.6-8-8-8h-62l111.1-204.8c.6-1.2 1-2.5 1-3.8-.1-4.4-3.7-8-8.1-8z'));
exports.NotificationOutline = getIcon('notification', outline, getNode(newViewBox, 'M880 112c-3.8 0-7.7.7-11.6 2.3L292 345.9H128c-8.8 0-16 7.4-16 16.6v299c0 9.2 7.2 16.6 16 16.6h101.7c-3.7 11.6-5.7 23.9-5.7 36.4 0 65.9 53.8 119.5 120 119.5 55.4 0 102.1-37.6 115.9-88.4l408.6 164.2c3.9 1.5 7.8 2.3 11.6 2.3 16.9 0 32-14.2 32-33.2V145.2C912 126.2 897 112 880 112zM344 762.3c-26.5 0-48-21.4-48-47.8 0-11.2 3.9-21.9 11-30.4l84.9 34.1c-2 24.6-22.7 44.1-47.9 44.1zm496 58.4L318.8 611.3l-12.9-5.2H184V417.9h121.9l12.9-5.2L840 203.3v617.4z'));
exports.PhoneOutline = getIcon('phone', outline, getNode(newViewBox, 'M877.1 238.7L770.6 132.3c-13-13-30.4-20.3-48.8-20.3s-35.8 7.2-48.8 20.3L558.3 246.8c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l89.6 89.7a405.46 405.46 0 0 1-86.4 127.3c-36.7 36.9-79.6 66-127.2 86.6l-89.6-89.7c-13-13-30.4-20.3-48.8-20.3a68.2 68.2 0 0 0-48.8 20.3L132.3 673c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l106.4 106.4c22.2 22.2 52.8 34.9 84.2 34.9 6.5 0 12.8-.5 19.2-1.6 132.4-21.8 263.8-92.3 369.9-198.3C818 606 888.4 474.6 910.4 342.1c6.3-37.6-6.3-76.3-33.3-103.4zm-37.6 91.5c-19.5 117.9-82.9 235.5-178.4 331s-213 158.9-330.9 178.4c-14.8 2.5-30-2.5-40.8-13.2L184.9 721.9 295.7 611l119.8 120 .9.9 21.6-8a481.29 481.29 0 0 0 285.7-285.8l8-21.6-120.8-120.7 110.8-110.9 104.5 104.5c10.8 10.8 15.8 26 13.3 40.8z'));
exports.PictureOutline = getIcon('picture', outline, getNode(newViewBox, 'M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2zM304 456a88 88 0 1 0 0-176 88 88 0 0 0 0 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z'));
exports.PieChartOutline = getIcon('pie-chart', outline, getNode(newViewBox, 'M864 518H506V160c0-4.4-3.6-8-8-8h-26a398.46 398.46 0 0 0-282.8 117.1 398.19 398.19 0 0 0-85.7 127.1A397.61 397.61 0 0 0 72 552a398.46 398.46 0 0 0 117.1 282.8c36.7 36.7 79.5 65.6 127.1 85.7A397.61 397.61 0 0 0 472 952a398.46 398.46 0 0 0 282.8-117.1c36.7-36.7 65.6-79.5 85.7-127.1A397.61 397.61 0 0 0 872 552v-26c0-4.4-3.6-8-8-8zM705.7 787.8A331.59 331.59 0 0 1 470.4 884c-88.1-.4-170.9-34.9-233.2-97.2C174.5 724.1 140 640.7 140 552c0-88.7 34.5-172.1 97.2-234.8 54.6-54.6 124.9-87.9 200.8-95.5V586h364.3c-7.7 76.3-41.3 147-96.6 201.8zM952 462.4l-2.6-28.2c-8.5-92.1-49.4-179-115.2-244.6A399.4 399.4 0 0 0 589 74.6L560.7 72c-4.7-.4-8.7 3.2-8.7 7.9V464c0 4.4 3.6 8 8 8l384-1c4.7 0 8.4-4 8-8.6zm-332.2-58.2V147.6a332.24 332.24 0 0 1 166.4 89.8c45.7 45.6 77 103.6 90 166.1l-256.4.7z'));
exports.PlaySquareOutline = getIcon('play-square', outline, getNode(newViewBox, 'M442.3 677.6l199.4-156.7a11.3 11.3 0 0 0 0-17.7L442.3 346.4c-7.4-5.8-18.3-.6-18.3 8.8v313.5c0 9.4 10.9 14.7 18.3 8.9z', 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'));
exports.PlayCircleOutline = getIcon('play-circle', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z', 'M719.4 499.1l-296.1-215A15.9 15.9 0 0 0 398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 0 0 0-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z'));
exports.PlusCircleOutline = getIcon('plus-circle', outline, getNode(newViewBox, 'M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z', 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'));
exports.PrinterOutline = getIcon('printer', outline, getNode(newViewBox, 'M820 436h-40c-4.4 0-8 3.6-8 8v40c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-40c0-4.4-3.6-8-8-8zm32-104H732V120c0-4.4-3.6-8-8-8H300c-4.4 0-8 3.6-8 8v212H172c-44.2 0-80 35.8-80 80v328c0 17.7 14.3 32 32 32h168v132c0 4.4 3.6 8 8 8h424c4.4 0 8-3.6 8-8V772h168c17.7 0 32-14.3 32-32V412c0-44.2-35.8-80-80-80zM360 180h304v152H360V180zm304 664H360V568h304v276zm200-140H732V500H292v204H160V412c0-6.6 5.4-12 12-12h680c6.6 0 12 5.4 12 12v292z'));
exports.PlusSquareOutline = getIcon('plus-square', outline, getNode(newViewBox, 'M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z', 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'));
exports.ProfileOutline = getIcon('profile', outline, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM492 400h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0 144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zM340 368a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm0 144a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm0 144a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'));
exports.ProjectOutline = getIcon('project', outline, getNode(newViewBox, 'M280 752h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8zm192-280h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v184c0 4.4 3.6 8 8 8zm192 72h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v256c0 4.4 3.6 8 8 8zm216-432H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'));
exports.PushpinOutline = getIcon('pushpin', outline, getNode(newViewBox, 'M878.3 392.1L631.9 145.7c-6.5-6.5-15-9.7-23.5-9.7s-17 3.2-23.5 9.7L423.8 306.9c-12.2-1.4-24.5-2-36.8-2-73.2 0-146.4 24.1-206.5 72.3a33.23 33.23 0 0 0-2.7 49.4l181.7 181.7-215.4 215.2a15.8 15.8 0 0 0-4.6 9.8l-3.4 37.2c-.9 9.4 6.6 17.4 15.9 17.4.5 0 1 0 1.5-.1l37.2-3.4c3.7-.3 7.2-2 9.8-4.6l215.4-215.4 181.7 181.7c6.5 6.5 15 9.7 23.5 9.7 9.7 0 19.3-4.2 25.9-12.4 56.3-70.3 79.7-158.3 70.2-243.4l161.1-161.1c12.9-12.8 12.9-33.8 0-46.8zM666.2 549.3l-24.5 24.5 3.8 34.4a259.92 259.92 0 0 1-30.4 153.9L262 408.8c12.9-7.1 26.3-13.1 40.3-17.9 27.2-9.4 55.7-14.1 84.7-14.1 9.6 0 19.3.5 28.9 1.6l34.4 3.8 24.5-24.5L608.5 224 800 415.5 666.2 549.3z'));
exports.PropertySafetyOutline = getIcon('property-safety', outline, getNode(newViewBox, 'M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zM430.5 318h-46c-1.7 0-3.3.4-4.8 1.2a10.1 10.1 0 0 0-4 13.6l88 161.1h-45.2c-5.5 0-10 4.5-10 10v21.3c0 5.5 4.5 10 10 10h63.1v29.7h-63.1c-5.5 0-10 4.5-10 10v21.3c0 5.5 4.5 10 10 10h63.1V658c0 5.5 4.5 10 10 10h41.3c5.5 0 10-4.5 10-10v-51.8h63.4c5.5 0 10-4.5 10-10v-21.3c0-5.5-4.5-10-10-10h-63.4v-29.7h63.4c5.5 0 10-4.5 10-10v-21.3c0-5.5-4.5-10-10-10h-45.7l87.7-161.1a10.05 10.05 0 0 0-8.8-14.8h-45c-3.8 0-7.2 2.1-8.9 5.5l-73.2 144.3-72.9-144.3c-1.7-3.4-5.2-5.5-9-5.5z'));
exports.QuestionCircleOutline = getIcon('question-circle', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z', 'M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0 1 30.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'));
exports.ReadOutline = getIcon('read', outline, getNode(newViewBox, 'M928 161H699.2c-49.1 0-97.1 14.1-138.4 40.7L512 233l-48.8-31.3A255.2 255.2 0 0 0 324.8 161H96c-17.7 0-32 14.3-32 32v568c0 17.7 14.3 32 32 32h228.8c49.1 0 97.1 14.1 138.4 40.7l44.4 28.6c1.3.8 2.8 1.3 4.3 1.3s3-.4 4.3-1.3l44.4-28.6C602 807.1 650.1 793 699.2 793H928c17.7 0 32-14.3 32-32V193c0-17.7-14.3-32-32-32zM324.8 721H136V233h188.8c35.4 0 69.8 10.1 99.5 29.2l48.8 31.3 6.9 4.5v462c-47.6-25.6-100.8-39-155.2-39zm563.2 0H699.2c-54.4 0-107.6 13.4-155.2 39V298l6.9-4.5 48.8-31.3c29.7-19.1 64.1-29.2 99.5-29.2H888v488zM396.9 361H211.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5zm223.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c0-4.1-3.2-7.5-7.1-7.5H627.1c-3.9 0-7.1 3.4-7.1 7.5zM396.9 501H211.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5zm416 0H627.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5z'));
exports.ReconciliationOutline = getIcon('reconciliation', outline, getNode(newViewBox, 'M676 565c-50.8 0-92 41.2-92 92s41.2 92 92 92 92-41.2 92-92-41.2-92-92-92zm0 126c-18.8 0-34-15.2-34-34s15.2-34 34-34 34 15.2 34 34-15.2 34-34 34zm204-523H668c0-30.9-25.1-56-56-56h-80c-30.9 0-56 25.1-56 56H264c-17.7 0-32 14.3-32 32v200h-88c-17.7 0-32 14.3-32 32v448c0 17.7 14.3 32 32 32h336c17.7 0 32-14.3 32-32v-16h368c17.7 0 32-14.3 32-32V200c0-17.7-14.3-32-32-32zm-412 64h72v-56h64v56h72v48H468v-48zm-20 616H176V616h272v232zm0-296H176v-88h272v88zm392 240H512V432c0-17.7-14.3-32-32-32H304V240h100v104h336V240h100v552zM704 408v96c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-96c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zM592 512h48c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8z'));
exports.RedEnvelopeOutline = getIcon('red-envelope', outline, getNode(newViewBox, 'M440.6 462.6a8.38 8.38 0 0 0-7.5-4.6h-48.8c-1.3 0-2.6.4-3.9 1a8.4 8.4 0 0 0-3.4 11.4l87.4 161.1H419c-4.6 0-8.4 3.8-8.4 8.4V665c0 4.6 3.8 8.4 8.4 8.4h63V702h-63c-4.6 0-8.4 3.8-8.4 8.4v25.1c0 4.6 3.8 8.4 8.4 8.4h63v49.9c0 4.6 3.8 8.4 8.4 8.4h43.7c4.6 0 8.4-3.8 8.4-8.4v-49.9h63.3c4.7 0 8.4-3.8 8.2-8.5v-25c0-4.6-3.8-8.4-8.4-8.4h-63.3v-28.6h63.3c4.6 0 8.4-3.8 8.4-8.4v-25.1c0-4.6-3.8-8.4-8.4-8.4h-45.9l87.2-161a8.45 8.45 0 0 0-7.4-12.4h-47.8c-3.1 0-6 1.8-7.5 4.6l-71.9 141.9-71.7-142zM832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V193.1l260.3 204.1c11.6 9.1 27.9 9.1 39.5 0L792 193.1V888zm0-751.3h-31.7L512 331.3 263.7 136.7H232v-.7h560v.7z'));
exports.RestOutline = getIcon('rest', outline, getNode(newViewBox, 'M508 704c79.5 0 144-64.5 144-144s-64.5-144-144-144-144 64.5-144 144 64.5 144 144 144zm0-224c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z', 'M832 256h-28.1l-35.7-120.9c-4-13.7-16.5-23.1-30.7-23.1h-451c-14.3 0-26.8 9.4-30.7 23.1L220.1 256H192c-17.7 0-32 14.3-32 32v28c0 4.4 3.6 8 8 8h45.8l47.7 558.7a32 32 0 0 0 31.9 29.3h429.2a32 32 0 0 0 31.9-29.3L802.2 324H856c4.4 0 8-3.6 8-8v-28c0-17.7-14.3-32-32-32zm-518.6-76h397.2l22.4 76H291l22.4-76zm376.2 664H326.4L282 324h451.9l-44.3 520z'));
exports.RightCircleOutline = getIcon('right-circle', outline, getNode(newViewBox, 'M666.7 505.5l-246-178A8 8 0 0 0 408 334v46.9c0 10.2 4.9 19.9 13.2 25.9L566.6 512 421.2 617.2c-8.3 6-13.2 15.6-13.2 25.9V690c0 6.5 7.4 10.3 12.7 6.5l246-178c4.4-3.2 4.4-9.8 0-13z', 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'));
exports.RocketOutline = getIcon('rocket', outline, getNode(newViewBox, 'M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 0 0-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0 0 43.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0 0 43.1-30.5 97.52 97.52 0 0 0 21.4-60.8c0-8.4-1.1-16.4-3.1-23.8H864zM762.3 621.4c9.4 14.6 17 30.3 22.5 46.6H700V558.7a211.6 211.6 0 0 1 62.3 62.7zM388 483.1V318.8l124-147 124 147V668H388V483.1zM239.2 668c5.5-16.3 13.1-32 22.5-46.6 16.3-25.2 37.5-46.5 62.3-62.7V668h-84.8zm388.9 116.2c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5-38.3 0-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 0 1-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5zM464 400a48 48 0 1 0 96 0 48 48 0 1 0-96 0z'));
exports.RightSquareOutline = getIcon('right-square', outline, getNode(newViewBox, 'M412.7 696.5l246-178c4.4-3.2 4.4-9.7 0-12.9l-246-178c-5.3-3.8-12.7 0-12.7 6.5V381c0 10.2 4.9 19.9 13.2 25.9L558.6 512 413.2 617.2c-8.3 6-13.2 15.6-13.2 25.9V690c0 6.5 7.4 10.3 12.7 6.5z', 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'));
exports.SafetyCertificateOutline = getIcon('safety-certificate', outline, getNode(newViewBox, 'M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zm-405.8-201c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0 0 26 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z'));
exports.ScheduleOutline = getIcon('schedule', outline, getNode(newViewBox, 'M928 224H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zm-40 568H136V296h120v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h120v496zM416 496H232c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm0 136H232c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm308.2-177.4L620.6 598.3l-52.8-73.1c-3-4.2-7.8-6.6-12.9-6.6H500c-6.5 0-10.3 7.4-6.5 12.7l114.1 158.2a15.9 15.9 0 0 0 25.8 0l165-228.7c3.8-5.3 0-12.7-6.5-12.7H737c-5-.1-9.8 2.4-12.8 6.5z'));
exports.SaveOutline = getIcon('save', outline, getNode(newViewBox, 'M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z'));
exports.SecurityScanOutline = getIcon('security-scan', outline, getNode(newViewBox, 'M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zM402.9 528.8l-77.5 77.5a8.03 8.03 0 0 0 0 11.3l34 34c3.1 3.1 8.2 3.1 11.3 0l77.5-77.5c55.7 35.1 130.1 28.4 178.6-20.1 56.3-56.3 56.3-147.5 0-203.8-56.3-56.3-147.5-56.3-203.8 0-48.5 48.5-55.2 123-20.1 178.6zm65.4-133.3c31.3-31.3 82-31.3 113.2 0 31.3 31.3 31.3 82 0 113.2-31.3 31.3-82 31.3-113.2 0s-31.3-81.9 0-113.2z'));
exports.SettingOutline = getIcon('setting', outline, getNode(newViewBox, 'M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 0 0 9.3-35.2l-.9-2.6a443.74 443.74 0 0 0-79.7-137.9l-1.8-2.1a32.12 32.12 0 0 0-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 0 0-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 0 0-25.8 25.7l-15.8 85.4a351.86 351.86 0 0 0-99 57.4l-81.9-29.1a32 32 0 0 0-35.1 9.5l-1.8 2.1a446.02 446.02 0 0 0-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 0 0-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0 0 35.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0 0 25.8 25.7l2.7.5a449.4 449.4 0 0 0 159 0l2.7-.5a32.05 32.05 0 0 0 25.8-25.7l15.7-85a350 350 0 0 0 99.7-57.6l81.3 28.9a32 32 0 0 0 35.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 0 1-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 0 1-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 0 1 512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 0 1 400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 0 1 624 502c0 29.9-11.7 58-32.8 79.2z'));
exports.ShoppingOutline = getIcon('shopping', outline, getNode(newViewBox, 'M832 312H696v-16c0-101.6-82.4-184-184-184s-184 82.4-184 184v16H192c-17.7 0-32 14.3-32 32v536c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V344c0-17.7-14.3-32-32-32zm-432-16c0-61.9 50.1-112 112-112s112 50.1 112 112v16H400v-16zm392 544H232V384h96v88c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-88h224v88c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-88h96v456z'));
exports.SkinOutline = getIcon('skin', outline, getNode(newViewBox, 'M870 126H663.8c-17.4 0-32.9 11.9-37 29.3C614.3 208.1 567 246 512 246s-102.3-37.9-114.8-90.7a37.93 37.93 0 0 0-37-29.3H154a44 44 0 0 0-44 44v252a44 44 0 0 0 44 44h75v388a44 44 0 0 0 44 44h478a44 44 0 0 0 44-44V466h75a44 44 0 0 0 44-44V170a44 44 0 0 0-44-44zm-28 268H723v432H301V394H182V198h153.3c28.2 71.2 97.5 120 176.7 120s148.5-48.8 176.7-120H842v196z'));
exports.SkypeOutline = getIcon('skype', outline, getNode(newViewBox, 'M883.7 578.6c4.1-22.5 6.3-45.5 6.3-68.5 0-51-10-100.5-29.7-147-19-45-46.3-85.4-81-120.1a375.79 375.79 0 0 0-120.1-80.9c-46.6-19.7-96-29.7-147-29.7-24 0-48.1 2.3-71.5 6.8A225.1 225.1 0 0 0 335.6 113c-59.7 0-115.9 23.3-158.1 65.5A222.25 222.25 0 0 0 112 336.6c0 38 9.8 75.4 28.1 108.4-3.7 21.4-5.7 43.3-5.7 65.1 0 51 10 100.5 29.7 147 19 45 46.2 85.4 80.9 120.1 34.7 34.7 75.1 61.9 120.1 80.9 46.6 19.7 96 29.7 147 29.7 22.2 0 44.4-2 66.2-5.9 33.5 18.9 71.3 29 110 29 59.7 0 115.9-23.2 158.1-65.5 42.3-42.2 65.5-98.4 65.5-158.1.1-38-9.7-75.5-28.2-108.7zm-88.1 216C766.9 823.4 729 839 688.4 839c-26.1 0-51.8-6.8-74.6-19.7l-22.5-12.7-25.5 4.5c-17.8 3.2-35.8 4.8-53.6 4.8-41.4 0-81.3-8.1-119.1-24.1-36.3-15.3-69-37.3-97.2-65.5a304.29 304.29 0 0 1-65.5-97.1c-16-37.7-24-77.6-24-119 0-17.4 1.6-35.2 4.6-52.8l4.4-25.1L203 410a151.02 151.02 0 0 1-19.1-73.4c0-40.6 15.7-78.5 44.4-107.2C257.1 200.7 295 185 335.6 185a153 153 0 0 1 71.4 17.9l22.4 11.8 24.8-4.8c18.9-3.6 38.4-5.5 58-5.5 41.4 0 81.3 8.1 119 24 36.5 15.4 69.1 37.4 97.2 65.5 28.2 28.1 50.2 60.8 65.6 97.2 16 37.7 24 77.6 24 119 0 18.4-1.7 37-5.1 55.5l-4.7 25.5 12.6 22.6c12.6 22.5 19.2 48 19.2 73.7 0 40.7-15.7 78.5-44.4 107.2zM583.4 466.2L495 446.6c-33.6-7.7-72.3-17.8-72.3-49.5s27.1-53.9 76.1-53.9c98.7 0 89.7 67.8 138.7 67.8 25.8 0 48.4-15.2 48.4-41.2 0-60.8-97.4-106.5-180-106.5-89.7 0-185.2 38.1-185.2 139.5 0 48.8 17.4 100.8 113.6 124.9l119.4 29.8c36.1 8.9 45.2 29.2 45.2 47.6 0 30.5-30.3 60.3-85.2 60.3-107.2 0-92.3-82.5-149.7-82.5-25.8 0-44.5 17.8-44.5 43.1 0 49.4 60 115.4 194.2 115.4 127.7 0 191-61.5 191-144 0-53.1-24.5-109.6-121.3-131.2z'));
exports.SlackSquareOutline = getIcon('slack-square', outline, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM529 311.4c0-27.8 22.5-50.4 50.3-50.4 27.8 0 50.3 22.6 50.3 50.4v134.4c0 27.8-22.5 50.4-50.3 50.4-27.8 0-50.3-22.6-50.3-50.4V311.4zM361.5 580.2c0 27.8-22.5 50.4-50.3 50.4a50.35 50.35 0 0 1-50.3-50.4c0-27.8 22.5-50.4 50.3-50.4h50.3v50.4zm134 134.4c0 27.8-22.5 50.4-50.3 50.4-27.8 0-50.3-22.6-50.3-50.4V580.2c0-27.8 22.5-50.4 50.3-50.4a50.35 50.35 0 0 1 50.3 50.4v134.4zm-50.2-218.4h-134c-27.8 0-50.3-22.6-50.3-50.4 0-27.8 22.5-50.4 50.3-50.4h134c27.8 0 50.3 22.6 50.3 50.4-.1 27.9-22.6 50.4-50.3 50.4zm0-134.4c-13.3 0-26.1-5.3-35.6-14.8S395 324.8 395 311.4c0-27.8 22.5-50.4 50.3-50.4 27.8 0 50.3 22.6 50.3 50.4v50.4h-50.3zm134 403.2c-27.8 0-50.3-22.6-50.3-50.4v-50.4h50.3c27.8 0 50.3 22.6 50.3 50.4 0 27.8-22.5 50.4-50.3 50.4zm134-134.4h-134a50.35 50.35 0 0 1-50.3-50.4c0-27.8 22.5-50.4 50.3-50.4h134c27.8 0 50.3 22.6 50.3 50.4 0 27.8-22.5 50.4-50.3 50.4zm0-134.4H663v-50.4c0-27.8 22.5-50.4 50.3-50.4s50.3 22.6 50.3 50.4c0 27.8-22.5 50.4-50.3 50.4z'));
exports.SlidersOutline = getIcon('sliders', outline, getNode(newViewBox, 'M320 224h-66v-56c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v56h-66c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8h66v56c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-56h66c4.4 0 8-3.6 8-8V232c0-4.4-3.6-8-8-8zm-60 508h-80V292h80v440zm644-436h-66v-96c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v96h-66c-4.4 0-8 3.6-8 8v416c0 4.4 3.6 8 8 8h66v96c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-96h66c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8zm-60 364h-80V364h80v296zM612 404h-66V232c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v172h-66c-4.4 0-8 3.6-8 8v200c0 4.4 3.6 8 8 8h66v172c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V620h66c4.4 0 8-3.6 8-8V412c0-4.4-3.6-8-8-8zm-60 145a3 3 0 0 1-3 3h-74a3 3 0 0 1-3-3v-74a3 3 0 0 1 3-3h74a3 3 0 0 1 3 3v74z'));
exports.SmileOutline = getIcon('smile', outline, getNode(newViewBox, 'M288 421a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm352 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 0 1 248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 0 1 249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 0 1 775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 0 1 775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 0 0-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 0 0-8-8.4z'));
exports.SnippetsOutline = getIcon('snippets', outline, getNode(newViewBox, 'M832 112H724V72c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v40H500V72c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v40H320c-17.7 0-32 14.3-32 32v120h-96c-17.7 0-32 14.3-32 32v632c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32v-96h96c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM664 888H232V336h218v174c0 22.1 17.9 40 40 40h174v338zm0-402H514V336h.2L664 485.8v.2zm128 274h-56V456L544 264H360v-80h68v32c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-32h152v32c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-32h68v576z'));
exports.SoundOutline = getIcon('sound', outline, getNode(newViewBox, 'M625.9 115c-5.9 0-11.9 1.6-17.4 5.3L254 352H90c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h164l354.5 231.7c5.5 3.6 11.6 5.3 17.4 5.3 16.7 0 32.1-13.3 32.1-32.1V147.1c0-18.8-15.4-32.1-32.1-32.1zM586 803L293.4 611.7l-18-11.7H146V424h129.4l17.9-11.7L586 221v582zm348-327H806c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16h128c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16zm-41.9 261.8l-110.3-63.7a15.9 15.9 0 0 0-21.7 5.9l-19.9 34.5c-4.4 7.6-1.8 17.4 5.8 21.8L856.3 800a15.9 15.9 0 0 0 21.7-5.9l19.9-34.5c4.4-7.6 1.7-17.4-5.8-21.8zM760 344a15.9 15.9 0 0 0 21.7 5.9L892 286.2c7.6-4.4 10.2-14.2 5.8-21.8L878 230a15.9 15.9 0 0 0-21.7-5.9L746 287.8a15.99 15.99 0 0 0-5.8 21.8L760 344z'));
exports.StarOutline = getIcon('star', outline, getNode(newViewBox, 'M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 0 0 .6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0 0 46.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM664.8 561.6l36.1 210.3L512 672.7 323.1 772l36.1-210.3-152.8-149L417.6 382 512 190.7 606.4 382l211.2 30.7-152.8 148.9z'));
exports.StepBackwardOutline = getIcon('step-backward', outline, getNode(normalViewBox, 'M347.6 528.95l383.2 301.02c14.25 11.2 35.2 1.1 35.2-16.95V210.97c0-18.05-20.95-28.14-35.2-16.94L347.6 495.05a21.53 21.53 0 0 0 0 33.9M330 864h-64a8 8 0 0 1-8-8V168a8 8 0 0 1 8-8h64a8 8 0 0 1 8 8v688a8 8 0 0 1-8 8'));
exports.StepForwardOutline = getIcon('step-forward', outline, getNode(normalViewBox, 'M676.4 528.95L293.2 829.97c-14.25 11.2-35.2 1.1-35.2-16.95V210.97c0-18.05 20.95-28.14 35.2-16.94l383.2 301.02a21.53 21.53 0 0 1 0 33.9M694 864h64a8 8 0 0 0 8-8V168a8 8 0 0 0-8-8h-64a8 8 0 0 0-8 8v688a8 8 0 0 0 8 8'));
exports.StopOutline = getIcon('stop', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372 0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372 0 89-31.3 170.8-83.5 234.8z'));
exports.SwitcherOutline = getIcon('switcher', outline, getNode(newViewBox, 'M752 240H144c-17.7 0-32 14.3-32 32v608c0 17.7 14.3 32 32 32h608c17.7 0 32-14.3 32-32V272c0-17.7-14.3-32-32-32zm-40 600H184V312h528v528zm168-728H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h576v576c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V144c0-17.7-14.3-32-32-32zM300 550h296v64H300z'));
exports.TagOutline = getIcon('tag', outline, getNode(newViewBox, 'M938 458.8l-29.6-312.6c-1.5-16.2-14.4-29-30.6-30.6L565.2 86h-.4c-3.2 0-5.7 1-7.6 2.9L88.9 557.2a9.96 9.96 0 0 0 0 14.1l363.8 363.8c1.9 1.9 4.4 2.9 7.1 2.9s5.2-1 7.1-2.9l468.3-468.3c2-2.1 3-5 2.8-8zM459.7 834.7L189.3 564.3 589 164.6 836 188l23.4 247-399.7 399.7zM680 256c-48.5 0-88 39.5-88 88s39.5 88 88 88 88-39.5 88-88-39.5-88-88-88zm0 120c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z'));
exports.TabletOutline = getIcon('tablet', outline, getNode(newViewBox, 'M800 64H224c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h576c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64zm-8 824H232V136h560v752zM472 784a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'));
exports.ShopOutline = getIcon('shop', outline, getNode(newViewBox, 'M882 272.1V144c0-17.7-14.3-32-32-32H174c-17.7 0-32 14.3-32 32v128.1c-16.7 1-30 14.9-30 31.9v131.7a177 177 0 0 0 14.4 70.4c4.3 10.2 9.6 19.8 15.6 28.9v345c0 17.6 14.3 32 32 32h676c17.7 0 32-14.3 32-32V535a175 175 0 0 0 15.6-28.9c9.5-22.3 14.4-46 14.4-70.4V304c0-17-13.3-30.9-30-31.9zM214 184h596v88H214v-88zm362 656.1H448V736h128v104.1zm234 0H640V704c0-17.7-14.3-32-32-32H416c-17.7 0-32 14.3-32 32v136.1H214V597.9c2.9 1.4 5.9 2.8 9 4 22.3 9.4 46 14.1 70.4 14.1s48-4.7 70.4-14.1c13.8-5.8 26.8-13.2 38.7-22.1.2-.1.4-.1.6 0a180.4 180.4 0 0 0 38.7 22.1c22.3 9.4 46 14.1 70.4 14.1 24.4 0 48-4.7 70.4-14.1 13.8-5.8 26.8-13.2 38.7-22.1.2-.1.4-.1.6 0a180.4 180.4 0 0 0 38.7 22.1c22.3 9.4 46 14.1 70.4 14.1 24.4 0 48-4.7 70.4-14.1 3-1.3 6-2.6 9-4v242.2zm30-404.4c0 59.8-49 108.3-109.3 108.3-40.8 0-76.4-22.1-95.2-54.9-2.9-5-8.1-8.1-13.9-8.1h-.6c-5.7 0-11 3.1-13.9 8.1A109.24 109.24 0 0 1 512 544c-40.7 0-76.2-22-95-54.7-3-5.1-8.4-8.3-14.3-8.3s-11.4 3.2-14.3 8.3a109.63 109.63 0 0 1-95.1 54.7C233 544 184 495.5 184 435.7v-91.2c0-.3.2-.5.5-.5h655c.3 0 .5.2.5.5v91.2z'));
exports.TagsOutline = getIcon('tags', outline, getNode(newViewBox, 'M483.2 790.3L861.4 412c1.7-1.7 2.5-4 2.3-6.3l-25.5-301.4c-.7-7.8-6.8-13.9-14.6-14.6L522.2 64.3c-2.3-.2-4.7.6-6.3 2.3L137.7 444.8a8.03 8.03 0 0 0 0 11.3l334.2 334.2c3.1 3.2 8.2 3.2 11.3 0zm62.6-651.7l224.6 19 19 224.6L477.5 694 233.9 450.5l311.9-311.9zm60.16 186.23a48 48 0 1 0 67.88-67.89 48 48 0 1 0-67.88 67.89zM889.7 539.8l-39.6-39.5a8.03 8.03 0 0 0-11.3 0l-362 361.3-237.6-237a8.03 8.03 0 0 0-11.3 0l-39.6 39.5a8.03 8.03 0 0 0 0 11.3l243.2 242.8 39.6 39.5c3.1 3.1 8.2 3.1 11.3 0l407.3-406.6c3.1-3.1 3.1-8.2 0-11.3z'));
exports.TaobaoCircleOutline = getIcon('taobao-circle', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM315.7 291.5c27.3 0 49.5 22.1 49.5 49.4s-22.1 49.4-49.5 49.4a49.4 49.4 0 1 1 0-98.8zM366.9 578c-13.6 42.3-10.2 26.7-64.4 144.5l-78.5-49s87.7-79.8 105.6-116.2c19.2-38.4-21.1-58.9-21.1-58.9l-60.2-37.5 32.7-50.2c45.4 33.7 48.7 36.6 79.2 67.2 23.8 23.9 20.7 56.8 6.7 100.1zm427.2 55c-15.3 143.8-202.4 90.3-202.4 90.3l10.2-41.1 43.3 9.3c80 5 72.3-64.9 72.3-64.9V423c.6-77.3-72.6-85.4-204.2-38.3l30.6 8.3c-2.5 9-12.5 23.2-25.2 38.6h176v35.6h-99.1v44.5h98.7v35.7h-98.7V622c14.9-4.8 28.6-11.5 40.5-20.5l-8.7-32.5 46.5-14.4 38.8 94.9-57.3 23.9-10.2-37.8c-25.6 19.5-78.8 48-171.8 45.4-99.2 2.6-73.7-112-73.7-112l2.5-1.3H472c-.5 14.7-6.6 38.7 1.7 51.8 6.8 10.8 24.2 12.6 35.3 13.1 1.3.1 2.6.1 3.9.1v-85.3h-101v-35.7h101v-44.5H487c-22.7 24.1-43.5 44.1-43.5 44.1l-30.6-26.7c21.7-22.9 43.3-59.1 56.8-83.2-10.9 4.4-22 9.2-33.6 14.2-11.2 14.3-24.2 29-38.7 43.5.5.8-50-28.4-50-28.4 52.2-44.4 81.4-139.9 81.4-139.9l72.5 20.4s-5.9 14-18.4 35.6c290.3-82.3 307.4 50.5 307.4 50.5s19.1 91.8 3.8 235.7z'));
exports.ToolOutline = getIcon('tool', outline, getNode(newViewBox, 'M876.6 239.5c-.5-.9-1.2-1.8-2-2.5-5-5-13.1-5-18.1 0L684.2 409.3l-67.9-67.9L788.7 169c.8-.8 1.4-1.6 2-2.5 3.6-6.1 1.6-13.9-4.5-17.5-98.2-58-226.8-44.7-311.3 39.7-67 67-89.2 162-66.5 247.4l-293 293c-3 3-2.8 7.9.3 11l169.7 169.7c3.1 3.1 8.1 3.3 11 .3l292.9-292.9c85.5 22.8 180.5.7 247.6-66.4 84.4-84.5 97.7-213.1 39.7-311.3zM786 499.8c-58.1 58.1-145.3 69.3-214.6 33.6l-8.8 8.8-.1-.1-274 274.1-79.2-79.2 230.1-230.1s0 .1.1.1l52.8-52.8c-35.7-69.3-24.5-156.5 33.6-214.6a184.2 184.2 0 0 1 144-53.5L537 318.9a32.05 32.05 0 0 0 0 45.3l124.5 124.5a32.05 32.05 0 0 0 45.3 0l132.8-132.8c3.7 51.8-14.4 104.8-53.6 143.9z'));
exports.ThunderboltOutline = getIcon('thunderbolt', outline, getNode(newViewBox, 'M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z'));
exports.TrophyOutline = getIcon('trophy', outline, getNode(newViewBox, 'M868 160h-92v-40c0-4.4-3.6-8-8-8H256c-4.4 0-8 3.6-8 8v40h-92a44 44 0 0 0-44 44v148c0 81.7 60 149.6 138.2 162C265.7 630.2 359 721.7 476 734.5v105.2H280c-17.7 0-32 14.3-32 32V904c0 4.4 3.6 8 8 8h512c4.4 0 8-3.6 8-8v-32.3c0-17.7-14.3-32-32-32H548V734.5C665 721.7 758.3 630.2 773.8 514 852 501.6 912 433.7 912 352V204a44 44 0 0 0-44-44zM184 352V232h64v207.6a91.99 91.99 0 0 1-64-87.6zm520 128c0 49.1-19.1 95.4-53.9 130.1-34.8 34.8-81 53.9-130.1 53.9h-16c-49.1 0-95.4-19.1-130.1-53.9-34.8-34.8-53.9-81-53.9-130.1V184h384v296zm136-128c0 41-26.9 75.8-64 87.6V232h64v120z'));
exports.UnlockOutline = getIcon('unlock', outline, getNode(newViewBox, 'M832 464H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v68c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-68c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zm-40 376H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 1 0-56 0z'));
exports.UpCircleOutline = getIcon('up-circle', outline, getNode(newViewBox, 'M518.5 360.3a7.95 7.95 0 0 0-12.9 0l-178 246c-3.8 5.3 0 12.7 6.5 12.7H381c10.2 0 19.9-4.9 25.9-13.2L512 460.4l105.2 145.4c6 8.3 15.6 13.2 25.9 13.2H690c6.5 0 10.3-7.4 6.5-12.7l-178-246z', 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'));
exports.UpSquareOutline = getIcon('up-square', outline, getNode(newViewBox, 'M334 624h46.9c10.2 0 19.9-4.9 25.9-13.2L512 465.4l105.2 145.4c6 8.3 15.6 13.2 25.9 13.2H690c6.5 0 10.3-7.4 6.5-12.7l-178-246a7.95 7.95 0 0 0-12.9 0l-178 246A7.96 7.96 0 0 0 334 624z', 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'));
exports.UsbOutline = getIcon('usb', outline, getNode(newViewBox, 'M760 432V144c0-17.7-14.3-32-32-32H296c-17.7 0-32 14.3-32 32v288c-66.2 0-120 52.1-120 116v356c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V548c0-24.3 21.6-44 48.1-44h495.8c26.5 0 48.1 19.7 48.1 44v356c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V548c0-63.9-53.8-116-120-116zm-424 0V184h352v248H336zm120-184h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm160 0h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z'));
exports.VideoCameraOutline = getIcon('video-camera', outline, getNode(newViewBox, 'M912 302.3L784 376V224c0-35.3-28.7-64-64-64H128c-35.3 0-64 28.7-64 64v576c0 35.3 28.7 64 64 64h592c35.3 0 64-28.7 64-64V648l128 73.7c21.3 12.3 48-3.1 48-27.6V330c0-24.6-26.7-40-48-27.7zM712 792H136V232h576v560zm176-167l-104-59.8V458.9L888 399v226zM208 360h112c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H208c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z'));
exports.WalletOutline = getIcon('wallet', outline, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 464H528V448h312v128zm0 264H184V184h656v200H496c-17.7 0-32 14.3-32 32v192c0 17.7 14.3 32 32 32h344v200zM580 512a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'));
exports.WarningOutline = getIcon('warning', outline, getNode(newViewBox, 'M464 720a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z'));
exports.WechatOutline = getIcon('wechat', outline, getNode(newViewBox, 'M690.1 377.4c5.9 0 11.8.2 17.6.5-24.4-128.7-158.3-227.1-319.9-227.1C209 150.8 64 271.4 64 420.2c0 81.1 43.6 154.2 111.9 203.6a21.5 21.5 0 0 1 9.1 17.6c0 2.4-.5 4.6-1.1 6.9-5.5 20.3-14.2 52.8-14.6 54.3-.7 2.6-1.7 5.2-1.7 7.9 0 5.9 4.8 10.8 10.8 10.8 2.3 0 4.2-.9 6.2-2l70.9-40.9c5.3-3.1 11-5 17.2-5 3.2 0 6.4.5 9.5 1.4 33.1 9.5 68.8 14.8 105.7 14.8 6 0 11.9-.1 17.8-.4-7.1-21-10.9-43.1-10.9-66 0-135.8 132.2-245.8 295.3-245.8zm-194.3-86.5c23.8 0 43.2 19.3 43.2 43.1s-19.3 43.1-43.2 43.1c-23.8 0-43.2-19.3-43.2-43.1s19.4-43.1 43.2-43.1zm-215.9 86.2c-23.8 0-43.2-19.3-43.2-43.1s19.3-43.1 43.2-43.1 43.2 19.3 43.2 43.1-19.4 43.1-43.2 43.1zm586.8 415.6c56.9-41.2 93.2-102 93.2-169.7 0-124-120.8-224.5-269.9-224.5-149 0-269.9 100.5-269.9 224.5S540.9 847.5 690 847.5c30.8 0 60.6-4.4 88.1-12.3 2.6-.8 5.2-1.2 7.9-1.2 5.2 0 9.9 1.6 14.3 4.1l59.1 34c1.7 1 3.3 1.7 5.2 1.7a9 9 0 0 0 6.4-2.6 9 9 0 0 0 2.6-6.4c0-2.2-.9-4.4-1.4-6.6-.3-1.2-7.6-28.3-12.2-45.3-.5-1.9-.9-3.8-.9-5.7.1-5.9 3.1-11.2 7.6-14.5zM600.2 587.2c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9c0 19.8-16.2 35.9-36 35.9zm179.9 0c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9a36.08 36.08 0 0 1-36 35.9z'));
exports.WeiboCircleOutline = getIcon('weibo-circle', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-44.4 672C353.1 736 236 680.4 236 588.9c0-47.8 30.2-103.1 82.3-155.3 69.5-69.6 150.6-101.4 181.1-70.8 13.5 13.5 14.8 36.8 6.1 64.6-4.5 14 13.1 6.3 13.1 6.3 56.2-23.6 105.2-25 123.1.7 9.6 13.7 8.6 32.8-.2 55.1-4.1 10.2 1.3 11.8 9 14.1 31.7 9.8 66.9 33.6 66.9 75.5.2 69.5-99.7 156.9-249.8 156.9zm207.3-290.8a34.9 34.9 0 0 0-7.2-34.1 34.68 34.68 0 0 0-33.1-10.7 18.24 18.24 0 0 1-7.6-35.7c24.1-5.1 50.1 2.3 67.7 21.9 17.7 19.6 22.4 46.3 14.9 69.8a18.13 18.13 0 0 1-22.9 11.7 18.18 18.18 0 0 1-11.8-22.9zm106 34.3s0 .1 0 0a21.1 21.1 0 0 1-26.6 13.7 21.19 21.19 0 0 1-13.6-26.7c11-34.2 4-73.2-21.7-101.8a104.04 104.04 0 0 0-98.9-32.1 21.14 21.14 0 0 1-25.1-16.3 21.07 21.07 0 0 1 16.2-25.1c49.4-10.5 102.8 4.8 139.1 45.1 36.3 40.2 46.1 95.1 30.6 143.2zm-334.5 6.1c-91.4 9-160.7 65.1-154.7 125.2 5.9 60.1 84.8 101.5 176.2 92.5 91.4-9.1 160.7-65.1 154.7-125.3-5.9-60.1-84.8-101.5-176.2-92.4zm80.2 141.7c-18.7 42.3-72.3 64.8-117.8 50.1-43.9-14.2-62.5-57.7-43.3-96.8 18.9-38.4 68-60.1 111.5-48.8 45 11.7 68 54.2 49.6 95.5zm-93-32.2c-14.2-5.9-32.4.2-41.2 13.9-8.8 13.8-4.7 30.2 9.3 36.6 14.3 6.5 33.2.3 42-13.8 8.8-14.3 4.2-30.6-10.1-36.7zm34.9-14.5c-5.4-2.2-12.2.5-15.4 5.8-3.1 5.4-1.4 11.5 4.1 13.8 5.5 2.3 12.6-.3 15.8-5.8 3-5.6 1-11.8-4.5-13.8z'));
exports.WindowsOutline = getIcon('windows', outline, getNode(newViewBox, 'M120.1 770.6L443 823.2V543.8H120.1v226.8zm63.4-163.5h196.2v141.6l-196.2-31.9V607.1zm340.3 226.5l382 62.2v-352h-382v289.8zm63.4-226.5h255.3v214.4l-255.3-41.6V607.1zm-63.4-415.7v288.8h382V128.1l-382 63.3zm318.7 225.5H587.3V245l255.3-42.3v214.2zm-722.4 63.3H443V201.9l-322.9 53.5v224.8zM183.5 309l196.2-32.5v140.4H183.5V309z'));
exports.YahooOutline = getIcon('yahoo', outline, getNode(newViewBox, 'M859.9 681.4h-14.1c-27.1 0-49.2 22.2-49.2 49.3v14.1c0 27.1 22.2 49.3 49.2 49.3h14.1c27.1 0 49.2-22.2 49.2-49.3v-14.1c0-27.1-22.2-49.3-49.2-49.3zM402.6 231C216.2 231 65 357 65 512.5S216.2 794 402.6 794s337.6-126 337.6-281.5S589.1 231 402.6 231zm0 507C245.1 738 121 634.6 121 512.5c0-62.3 32.3-119.7 84.9-161v48.4h37l159.8 159.9v65.3h-84.4v56.3h225.1v-56.3H459v-65.3l103.5-103.6h65.3v-56.3H459v65.3l-28.1 28.1-93.4-93.5h37v-56.3H216.4c49.4-35 114.3-56.6 186.2-56.6 157.6 0 281.6 103.4 281.6 225.5S560.2 738 402.6 738zm534.7-507H824.7c-15.5 0-27.7 12.6-27.1 28.1l13.1 366h84.4l65.4-366.4c2.7-15.2-7.8-27.7-23.2-27.7z'));
exports.WeiboSquareOutline = getIcon('weibo-square', outline, getNode(newViewBox, 'M433.6 595.1c-14.2-5.9-32.4.2-41.2 13.9-8.8 13.8-4.7 30.2 9.3 36.6 14.3 6.5 33.2.3 42-13.8 8.8-14.3 4.2-30.6-10.1-36.7zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM467.6 736C353.1 736 236 680.4 236 588.9c0-47.8 30.2-103.1 82.3-155.3 69.5-69.6 150.6-101.4 181.1-70.8 13.5 13.5 14.8 36.8 6.1 64.6-4.5 14 13.1 6.3 13.1 6.3 56.2-23.6 105.2-25 123.1.7 9.6 13.7 8.6 32.8-.2 55.1-4.1 10.2 1.3 11.8 9 14.1 31.7 9.8 66.9 33.6 66.9 75.5.2 69.5-99.7 156.9-249.8 156.9zm207.3-290.8a34.9 34.9 0 0 0-7.2-34.1 34.68 34.68 0 0 0-33.1-10.7 18.24 18.24 0 0 1-7.6-35.7c24.1-5.1 50.1 2.3 67.7 21.9 17.7 19.6 22.4 46.3 14.9 69.8a18.13 18.13 0 0 1-22.9 11.7 18.18 18.18 0 0 1-11.8-22.9zm106 34.3s0 .1 0 0a21.1 21.1 0 0 1-26.6 13.7 21.19 21.19 0 0 1-13.6-26.7c11-34.2 4-73.2-21.7-101.8a104.04 104.04 0 0 0-98.9-32.1 21.14 21.14 0 0 1-25.1-16.3 21.07 21.07 0 0 1 16.2-25.1c49.4-10.5 102.8 4.8 139.1 45.1 36.3 40.2 46.1 95.1 30.6 143.2zm-334.5 6.1c-91.4 9-160.7 65.1-154.7 125.2 5.9 60.1 84.8 101.5 176.2 92.5 91.4-9.1 160.7-65.1 154.7-125.3-5.9-60.1-84.8-101.5-176.2-92.4zm80.2 141.7c-18.7 42.3-72.3 64.8-117.8 50.1-43.9-14.2-62.5-57.7-43.3-96.8 18.9-38.4 68-60.1 111.5-48.8 45 11.7 68 54.2 49.6 95.5zm-58.1-46.7c-5.4-2.2-12.2.5-15.4 5.8-3.1 5.4-1.4 11.5 4.1 13.8 5.5 2.3 12.6-.3 15.8-5.8 3-5.6 1-11.8-4.5-13.8z'));
exports.YuqueOutline = getIcon('yuque', outline, getNode(newViewBox, 'M854.6 370.6c-9.9-39.4 9.9-102.2 73.4-124.4l-67.9-3.6s-25.7-90-143.6-98c-117.8-8.1-194.9-3-195-3 .1 0 87.4 55.6 52.4 154.7-25.6 52.5-65.8 95.6-108.8 144.7-1.3 1.3-2.5 2.6-3.5 3.7C319.4 605 96 860 96 860c245.9 64.4 410.7-6.3 508.2-91.1 20.5-.2 35.9-.3 46.3-.3 135.8 0 250.6-117.6 245.9-248.4-3.2-89.9-31.9-110.2-41.8-149.6zm-204.1 334c-10.6 0-26.2.1-46.8.3l-23.6.2-17.8 15.5c-47.1 41-104.4 71.5-171.4 87.6-52.5 12.6-110 16.2-172.7 9.6 18-20.5 36.5-41.6 55.4-63.1 92-104.6 173.8-197.5 236.9-268.5l1.4-1.4 1.3-1.5c4.1-4.6 20.6-23.3 24.7-28.1 9.7-11.1 17.3-19.9 24.5-28.6 30.7-36.7 52.2-67.8 69-102.2l1.6-3.3 1.2-3.4c13.7-38.8 15.4-76.9 6.2-112.8 22.5.7 46.5 1.9 71.7 3.6 33.3 2.3 55.5 12.9 71.1 29.2 5.8 6 10.2 12.5 13.4 18.7 1 2 1.7 3.6 2.3 5l5 17.7c-15.7 34.5-19.9 73.3-11.4 107.2 3 11.8 6.9 22.4 12.3 34.4 2.1 4.7 9.5 20.1 11 23.3 10.3 22.7 15.4 43 16.7 78.7 3.3 94.6-82.7 181.9-182 181.9z'));
exports.YoutubeOutline = getIcon('youtube', outline, getNode(newViewBox, 'M960 509.2c0-2.2 0-4.7-.1-7.6-.1-8.1-.3-17.2-.5-26.9-.8-27.9-2.2-55.7-4.4-81.9-3-36.1-7.4-66.2-13.4-88.8a139.52 139.52 0 0 0-98.3-98.5c-28.3-7.6-83.7-12.3-161.7-15.2-37.1-1.4-76.8-2.3-116.5-2.8-13.9-.2-26.8-.3-38.4-.4h-29.4c-11.6.1-24.5.2-38.4.4-39.7.5-79.4 1.4-116.5 2.8-78 3-133.5 7.7-161.7 15.2A139.35 139.35 0 0 0 82.4 304C76.3 326.6 72 356.7 69 392.8c-2.2 26.2-3.6 54-4.4 81.9-.3 9.7-.4 18.8-.5 26.9 0 2.9-.1 5.4-.1 7.6v5.6c0 2.2 0 4.7.1 7.6.1 8.1.3 17.2.5 26.9.8 27.9 2.2 55.7 4.4 81.9 3 36.1 7.4 66.2 13.4 88.8 12.8 47.9 50.4 85.7 98.3 98.5 28.2 7.6 83.7 12.3 161.7 15.2 37.1 1.4 76.8 2.3 116.5 2.8 13.9.2 26.8.3 38.4.4h29.4c11.6-.1 24.5-.2 38.4-.4 39.7-.5 79.4-1.4 116.5-2.8 78-3 133.5-7.7 161.7-15.2 47.9-12.8 85.5-50.5 98.3-98.5 6.1-22.6 10.4-52.7 13.4-88.8 2.2-26.2 3.6-54 4.4-81.9.3-9.7.4-18.8.5-26.9 0-2.9.1-5.4.1-7.6v-5.6zm-72 5.2c0 2.1 0 4.4-.1 7.1-.1 7.8-.3 16.4-.5 25.7-.7 26.6-2.1 53.2-4.2 77.9-2.7 32.2-6.5 58.6-11.2 76.3-6.2 23.1-24.4 41.4-47.4 47.5-21 5.6-73.9 10.1-145.8 12.8-36.4 1.4-75.6 2.3-114.7 2.8-13.7.2-26.4.3-37.8.3h-28.6l-37.8-.3c-39.1-.5-78.2-1.4-114.7-2.8-71.9-2.8-124.9-7.2-145.8-12.8-23-6.2-41.2-24.4-47.4-47.5-4.7-17.7-8.5-44.1-11.2-76.3-2.1-24.7-3.4-51.3-4.2-77.9-.3-9.3-.4-18-.5-25.7 0-2.7-.1-5.1-.1-7.1v-4.8c0-2.1 0-4.4.1-7.1.1-7.8.3-16.4.5-25.7.7-26.6 2.1-53.2 4.2-77.9 2.7-32.2 6.5-58.6 11.2-76.3 6.2-23.1 24.4-41.4 47.4-47.5 21-5.6 73.9-10.1 145.8-12.8 36.4-1.4 75.6-2.3 114.7-2.8 13.7-.2 26.4-.3 37.8-.3h28.6l37.8.3c39.1.5 78.2 1.4 114.7 2.8 71.9 2.8 124.9 7.2 145.8 12.8 23 6.2 41.2 24.4 47.4 47.5 4.7 17.7 8.5 44.1 11.2 76.3 2.1 24.7 3.4 51.3 4.2 77.9.3 9.3.4 18 .5 25.7 0 2.7.1 5.1.1 7.1v4.8zM423 646l232-135-232-133z'));
exports.AlibabaOutline = getIcon('alibaba', outline, getNode(newViewBox, 'M602.9 669.8c-37.2 2.6-33.6-17.3-11.5-46.2 50.4-67.2 143.7-158.5 147.9-225.2 5.8-86.6-81.3-113.4-171-113.4-62.4 1.6-127 18.9-171 34.6-151.6 53.5-246.6 137.5-306.9 232-62.4 93.4-43 183.2 91.8 185.8 101.8-4.2 170.5-32.5 239.7-68.2.5 0-192.5 55.1-263.9 14.7-7.9-4.2-15.7-10-17.8-26.2 0-33.1 54.6-67.7 86.6-78.7v-56.7c64.5 22.6 140.6 16.3 205.7-32 2.1 5.8 4.2 13.1 3.7 21h11c2.6-22.6-12.6-44.6-37.8-46.2 7.3 5.8 12.6 10.5 15.2 14.7l-1 1-.5.5c-83.9 58.8-165.3 31.5-173.1 29.9l46.7-45.7-13.1-33.1c92.9-32.5 169.5-56.2 296.9-78.7l-28.5-23 14.7-8.9c75.5 21 126.4 36.7 123.8 76.6-1 6.8-3.7 14.7-7.9 23.1C660.1 466.1 594 538 567.2 569c-17.3 20.5-34.6 39.4-46.7 58.3-13.6 19.4-20.5 37.3-21 53.5 2.6 131.8 391.4-61.9 468-112.9-111.7 47.8-232.9 93.5-364.6 101.9zm85-302.9c2.8 5.2 4.1 11.6 4.1 19.1-.1-6.8-1.4-13.3-4.1-19.1z'));
exports.AlignCenterOutline = getIcon('align-center', outline, getNode(newViewBox, 'M264 230h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm496 424c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496zm144 140H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
exports.AlignLeftOutline = getIcon('align-left', outline, getNode(newViewBox, 'M120 230h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 424h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm784 140H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
exports.AlignRightOutline = getIcon('align-right', outline, getNode(newViewBox, 'M904 158H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 424H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 212H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
exports.AlipayOutline = getIcon('alipay', outline, getNode(newViewBox, 'M789 610.3c-38.7-12.9-90.7-32.7-148.5-53.6 34.8-60.3 62.5-129 80.7-203.6H530.5v-68.6h233.6v-38.3H530.5V132h-95.4c-16.7 0-16.7 16.5-16.7 16.5v97.8H182.2v38.3h236.3v68.6H223.4v38.3h378.4a667.18 667.18 0 0 1-54.5 132.9c-122.8-40.4-253.8-73.2-336.1-53-52.6 13-86.5 36.1-106.5 60.3-91.4 111-25.9 279.6 167.2 279.6C386 811.2 496 747.6 581.2 643 708.3 704 960 808.7 960 808.7V659.4s-31.6-2.5-171-49.1zM253.9 746.6c-150.5 0-195-118.3-120.6-183.1 24.8-21.9 70.2-32.6 94.4-35 89.4-8.8 172.2 25.2 269.9 72.8-68.8 89.5-156.3 145.3-243.7 145.3z'));
exports.AliyunOutline = getIcon('aliyun', outline, getNode(newViewBox, 'M959.2 383.9c-.3-82.1-66.9-148.6-149.1-148.6H575.9l21.6 85.2 201 43.7a42.58 42.58 0 0 1 32.9 39.7c.1.5.1 216.1 0 216.6a42.58 42.58 0 0 1-32.9 39.7l-201 43.7-21.6 85.3h234.2c82.1 0 148.8-66.5 149.1-148.6V383.9zM225.5 660.4a42.58 42.58 0 0 1-32.9-39.7c-.1-.6-.1-216.1 0-216.6.8-19.4 14.6-35.5 32.9-39.7l201-43.7 21.6-85.2H213.8c-82.1 0-148.8 66.4-149.1 148.6V641c.3 82.1 67 148.6 149.1 148.6H448l-21.6-85.3-200.9-43.9zm200.9-158.8h171v21.3h-171z'));
exports.AmazonOutline = getIcon('amazon', outline, getNode(newViewBox, 'M825 768.9c-3.3-.9-7.3-.4-11.9 1.3-61.6 28.2-121.5 48.3-179.7 60.2C507.7 856 385.2 842.6 266 790.3c-33.1-14.6-79.1-39.2-138-74a9.36 9.36 0 0 0-5.3-2c-2-.1-3.7.1-5.3.9-1.6.8-2.8 1.8-3.7 3.1-.9 1.3-1.1 3.1-.4 5.4.6 2.2 2.1 4.7 4.6 7.4 10.4 12.2 23.3 25.2 38.6 39s35.6 29.4 60.9 46.8c25.3 17.4 51.8 32.9 79.3 46.4 27.6 13.5 59.6 24.9 96.1 34.1s73 13.8 109.4 13.8c36.2 0 71.4-3.7 105.5-10.9 34.2-7.3 63-15.9 86.5-25.9 23.4-9.9 45-21 64.8-33 19.8-12 34.4-22.2 43.9-30.3 9.5-8.2 16.3-14.6 20.2-19.4 4.6-5.7 6.9-10.6 6.9-14.9.1-4.5-1.7-7.1-5-7.9zM527.4 348.1c-15.2 1.3-33.5 4.1-55 8.3-21.5 4.1-41.4 9.3-59.8 15.4s-37.2 14.6-56.3 25.4c-19.2 10.8-35.5 23.2-49 37s-24.5 31.1-33.1 52c-8.6 20.8-12.9 43.7-12.9 68.7 0 27.1 4.7 51.2 14.3 72.5 9.5 21.3 22.2 38 38.2 50.4 15.9 12.4 34 22.1 54 29.2 20 7.1 41.2 10.3 63.2 9.4 22-.9 43.5-4.3 64.4-10.3 20.8-5.9 40.4-15.4 58.6-28.3 18.2-12.9 33.1-28.2 44.8-45.7 4.3 6.6 8.1 11.5 11.5 14.7l8.7 8.9c5.8 5.9 14.7 14.6 26.7 26.1 11.9 11.5 24.1 22.7 36.3 33.7l104.4-99.9-6-4.9c-4.3-3.3-9.4-8-15.2-14.3-5.8-6.2-11.6-13.1-17.2-20.5-5.7-7.4-10.6-16.1-14.7-25.9-4.1-9.8-6.2-19.3-6.2-28.5V258.7c0-10.1-1.9-21-5.7-32.8-3.9-11.7-10.7-24.5-20.7-38.3-10-13.8-22.4-26.2-37.2-37-14.9-10.8-34.7-20-59.6-27.4-24.8-7.4-52.6-11.1-83.2-11.1-31.3 0-60.4 3.7-87.6 10.9-27.1 7.3-50.3 17-69.7 29.2-19.3 12.2-35.9 26.3-49.7 42.4-13.8 16.1-24.1 32.9-30.8 50.4-6.7 17.5-10.1 35.2-10.1 53.1L408 310c5.5-16.4 12.9-30.6 22-42.8 9.2-12.2 17.9-21 25.8-26.5 8-5.5 16.6-9.9 25.7-13.2 9.2-3.3 15.4-5 18.6-5.4 3.2-.3 5.7-.4 7.6-.4 26.7 0 45.2 7.9 55.6 23.6 6.5 9.5 9.7 23.9 9.7 43.3v56.6c-15.2.6-30.4 1.6-45.6 2.9zM573.1 500c0 16.6-2.2 31.7-6.5 45-9.2 29.1-26.7 47.4-52.4 54.8-22.4 6.6-43.7 3.3-63.9-9.8-21.5-14-32.2-33.8-32.2-59.3 0-19.9 5-36.9 15-51.1 10-14.1 23.3-24.7 40-31.7s33-12 49-14.9c15.9-3 33-4.8 51-5.4V500zm335.2 218.9c-4.3-5.4-15.9-8.9-34.9-10.7-19-1.8-35.5-1.7-49.7.4-15.3 1.8-31.1 6.2-47.3 13.4-16.3 7.1-23.4 13.1-21.6 17.8l.7 1.3.9.7 1.4.2h4.6c.8 0 1.8-.1 3.2-.2 1.4-.1 2.7-.3 3.9-.4 1.2-.1 2.9-.3 5.1-.4 2.1-.1 4.1-.4 6-.7.3 0 3.7-.3 10.3-.9 6.6-.6 11.4-1 14.3-1.3 2.9-.3 7.8-.6 14.5-.9 6.7-.3 12.1-.3 16.1 0 4 .3 8.5.7 13.6 1.1 5.1.4 9.2 1.3 12.4 2.7 3.2 1.3 5.6 3 7.1 5.1 5.2 6.6 4.2 21.2-3 43.9s-14 40.8-20.4 54.2c-2.8 5.7-2.8 9.2 0 10.7s6.7.1 11.9-4c15.6-12.2 28.6-30.6 39.1-55.3 6.1-14.6 10.5-29.8 13.1-45.7 2.4-15.9 2-26.2-1.3-31z'));
exports.AntCloudOutline = getIcon('ant-cloud', outline, getNode(newViewBox, 'M378.9 738c-3.1 0-6.1-.5-8.8-1.5l4.4 30.7h26.3l-15.5-29.9c-2.1.5-4.2.7-6.4.7zm421-291.2c-12.6 0-24.8 1.5-36.5 4.2-21.4-38.4-62.3-64.3-109.3-64.3-6.9 0-13.6.6-20.2 1.6-35.4-77.4-113.4-131.1-203.9-131.1-112.3 0-205.3 82.6-221.6 190.4C127.3 455.5 64 523.8 64 607c0 88.4 71.6 160.1 160 160.2h50l13.2-27.6c-26.2-8.3-43.3-29-39.1-48.8 4.6-21.6 32.8-33.9 63.1-27.5 22.9 4.9 40.4 19.1 45.5 35.1a26.1 26.1 0 0 1 22.1-12.4h.2c-.8-3.2-1.2-6.5-1.2-9.9 0-20.1 14.8-36.7 34.1-39.6v-25.4c0-4.4 3.6-8 8-8s8 3.6 8 8v26.3c4.6 1.2 8.8 3.2 12.6 5.8l19.5-21.4c3-3.3 8-3.5 11.3-.5 3.3 3 3.5 8 .5 11.3l-20 22-.2.2a40 40 0 0 1-46.9 59.2c-.4 5.6-2.6 10.7-6 14.8l20 38.4H804v-.1c86.5-2.2 156-73 156-160.1 0-88.5-71.7-160.2-160.1-160.2zM338.2 737.2l-4.3 30h24.4l-5.9-41.5c-3.5 4.6-8.3 8.5-14.2 11.5zM797.5 305a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm-65.7 61.3a24 24 0 1 0 48 0 24 24 0 1 0-48 0zM303.4 742.9l-11.6 24.3h26l3.5-24.7c-5.7.8-11.7 1-17.9.4z'));
exports.ApartmentOutline = getIcon('apartment', outline, getNode(newViewBox, 'M908 640H804V488c0-4.4-3.6-8-8-8H548v-96h108c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16H368c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h108v96H228c-4.4 0-8 3.6-8 8v152H116c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16H292v-88h440v88H620c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16zm-564 76v168H176V716h168zm84-408V140h168v168H428zm420 576H680V716h168v168z'));
exports.AntDesignOutline = getIcon('ant-design', outline, getNode(newViewBox, 'M716.3 313.8c19-18.9 19-49.7 0-68.6l-69.9-69.9.1.1c-18.5-18.5-50.3-50.3-95.3-95.2-21.2-20.7-55.5-20.5-76.5.5L80.9 474.2a53.84 53.84 0 0 0 0 76.4L474.6 944a54.14 54.14 0 0 0 76.5 0l165.1-165c19-18.9 19-49.7 0-68.6a48.7 48.7 0 0 0-68.7 0l-125 125.2c-5.2 5.2-13.3 5.2-18.5 0L189.5 521.4c-5.2-5.2-5.2-13.3 0-18.5l314.4-314.2c.4-.4.9-.7 1.3-1.1 5.2-4.1 12.4-3.7 17.2 1.1l125.2 125.1c19 19 49.8 19 68.7 0zM408.6 514.4a106.3 106.2 0 1 0 212.6 0 106.3 106.2 0 1 0-212.6 0zm536.2-38.6L821.9 353.5c-19-18.9-49.8-18.9-68.7.1a48.4 48.4 0 0 0 0 68.6l83 82.9c5.2 5.2 5.2 13.3 0 18.5l-81.8 81.7a48.4 48.4 0 0 0 0 68.6 48.7 48.7 0 0 0 68.7 0l121.8-121.7a53.93 53.93 0 0 0-.1-76.4z'));
exports.AreaChartOutline = getIcon('area-chart', outline, getNode(newViewBox, 'M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-616-64h536c4.4 0 8-3.6 8-8V284c0-7.2-8.7-10.7-13.7-5.7L592 488.6l-125.4-124a8.03 8.03 0 0 0-11.3 0l-189 189.6a7.87 7.87 0 0 0-2.3 5.6V720c0 4.4 3.6 8 8 8z'));
exports.ArrowLeftOutline = getIcon('arrow-left', outline, getNode(newViewBox, 'M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 0 0 0 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z'));
exports.ArrowDownOutline = getIcon('arrow-down', outline, getNode(newViewBox, 'M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0 0 48.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z'));
exports.ArrowUpOutline = getIcon('arrow-up', outline, getNode(newViewBox, 'M868 545.5L536.1 163a31.96 31.96 0 0 0-48.3 0L156 545.5a7.97 7.97 0 0 0 6 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z'));
exports.ArrowsAltOutline = getIcon('arrows-alt', outline, getNode(newViewBox, 'M855 160.1l-189.2 23.5c-6.6.8-9.3 8.8-4.7 13.5l54.7 54.7-153.5 153.5a8.03 8.03 0 0 0 0 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l153.6-153.6 54.7 54.7a7.94 7.94 0 0 0 13.5-4.7L863.9 169a7.9 7.9 0 0 0-8.9-8.9zM416.6 562.3a8.03 8.03 0 0 0-11.3 0L251.8 715.9l-54.7-54.7a7.94 7.94 0 0 0-13.5 4.7L160.1 855c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 153.6-153.6c3.1-3.1 3.1-8.2 0-11.3l-45.2-45z'));
exports.ArrowRightOutline = getIcon('arrow-right', outline, getNode(newViewBox, 'M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 0 0 0-48.4z'));
exports.AuditOutline = getIcon('audit', outline, getNode(newViewBox, 'M296 250c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm184 144H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 458H208V148h560v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm440-88H728v-36.6c46.3-13.8 80-56.6 80-107.4 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 50.7 33.7 93.6 80 107.4V764H520c-8.8 0-16 7.2-16 16v152c0 8.8 7.2 16 16 16h352c8.8 0 16-7.2 16-16V780c0-8.8-7.2-16-16-16zM646 620c0-27.6 22.4-50 50-50s50 22.4 50 50-22.4 50-50 50-50-22.4-50-50zm180 266H566v-60h260v60z'));
exports.BarChartOutline = getIcon('bar-chart', outline, getNode(newViewBox, 'M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-600-80h56c4.4 0 8-3.6 8-8V560c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V384c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v320c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V462c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v242c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v400c0 4.4 3.6 8 8 8z'));
exports.BarcodeOutline = getIcon('barcode', outline, getNode(newViewBox, 'M120 160H72c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8zm833 0h-48c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8zM200 736h112c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8H200c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8zm321 0h48c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8zm126 0h178c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8H647c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8zm-255 0h48c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8zm-79 64H201c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h112c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm257 0h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm256 0H648c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h178c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-385 0h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z'));
exports.BarsOutline = getIcon('bars', outline, getNode(normalViewBox, 'M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm0 284a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm0 284a56 56 0 1 0 112 0 56 56 0 1 0-112 0z'));
exports.BgColorsOutline = getIcon('bg-colors', outline, getNode(newViewBox, 'M766.4 744.3c43.7 0 79.4-36.2 79.4-80.5 0-53.5-79.4-140.8-79.4-140.8S687 610.3 687 663.8c0 44.3 35.7 80.5 79.4 80.5zm-377.1-44.1c7.1 7.1 18.6 7.1 25.6 0l256.1-256c7.1-7.1 7.1-18.6 0-25.6l-256-256c-.6-.6-1.3-1.2-2-1.7l-78.2-78.2a9.11 9.11 0 0 0-12.8 0l-48 48a9.11 9.11 0 0 0 0 12.8l67.2 67.2-207.8 207.9c-7.1 7.1-7.1 18.6 0 25.6l255.9 256zm12.9-448.6l178.9 178.9H223.4l178.8-178.9zM904 816H120c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8z'));
exports.BehanceOutline = getIcon('behance', outline, getNode(newViewBox, 'M634 294.3h199.5v48.4H634zM434.1 485.8c44.1-21.1 67.2-53.2 67.2-102.8 0-98.1-73-121.9-157.3-121.9H112v492.4h238.5c89.4 0 173.3-43 173.3-143 0-61.8-29.2-107.5-89.7-124.7zM220.2 345.1h101.5c39.1 0 74.2 10.9 74.2 56.3 0 41.8-27.3 58.6-66 58.6H220.2V345.1zm115.5 324.8H220.1V534.3H338c47.6 0 77.7 19.9 77.7 70.3 0 49.6-35.9 65.3-80 65.3zm575.8-89.5c0-105.5-61.7-193.4-173.3-193.4-108.5 0-182.3 81.7-182.3 188.8 0 111 69.9 187.2 182.3 187.2 85.1 0 140.2-38.3 166.7-120h-86.3c-9.4 30.5-47.6 46.5-77.3 46.5-57.4 0-87.4-33.6-87.4-90.7h256.9c.3-5.9.7-12.1.7-18.4zM653.9 537c3.1-46.9 34.4-76.2 81.2-76.2 49.2 0 73.8 28.9 78.1 76.2H653.9z'));
exports.BlockOutline = getIcon('block', outline, getNode(newViewBox, 'M856 376H648V168c0-8.8-7.2-16-16-16H168c-8.8 0-16 7.2-16 16v464c0 8.8 7.2 16 16 16h208v208c0 8.8 7.2 16 16 16h464c8.8 0 16-7.2 16-16V392c0-8.8-7.2-16-16-16zm-480 16v188H220V220h360v156H392c-8.8 0-16 7.2-16 16zm204 52v136H444V444h136zm224 360H444V648h188c8.8 0 16-7.2 16-16V444h156v360z'));
exports.BoldOutline = getIcon('bold', outline, getNode(newViewBox, 'M697.8 481.4c33.6-35 54.2-82.3 54.2-134.3v-10.2C752 229.3 663.9 142 555.3 142H259.4c-15.1 0-27.4 12.3-27.4 27.4v679.1c0 16.3 13.2 29.5 29.5 29.5h318.7c117 0 211.8-94.2 211.8-210.5v-11c0-73-37.4-137.3-94.2-175.1zM328 238h224.7c57.1 0 103.3 44.4 103.3 99.3v9.5c0 54.8-46.3 99.3-103.3 99.3H328V238zm366.6 429.4c0 62.9-51.7 113.9-115.5 113.9H328V542.7h251.1c63.8 0 115.5 51 115.5 113.9v10.8z'));
exports.BorderBottomOutline = getIcon('border-bottom', outline, getNode(newViewBox, 'M872 808H152c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-720-94h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0-498h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 332h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0-166h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm166 166h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0-332h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm332 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 332h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm222-72h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-388 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm388-404h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-388 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm388 426h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-388 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm388-404h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-388 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8z'));
exports.BorderLeftOutline = getIcon('border-left', outline, getNode(newViewBox, 'M208 144h-56c-4.4 0-8 3.6-8 8v720c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V152c0-4.4-3.6-8-8-8zm166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm498 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM540 310h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM374 808h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
exports.BorderOuterOutline = getIcon('border-outer', outline, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM484 366h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zM302 548h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm364 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-182 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 182h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8z'));
exports.BorderInnerOutline = getIcon('border-inner', outline, getNode(newViewBox, 'M872 476H548V144h-72v332H152c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h324v332h72V548h324c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 498h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-664h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 498h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM650 216h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm56 592h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-56-592h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-166 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm56 592h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-56-426h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm56 260h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
exports.BorderRightOutline = getIcon('border-right', outline, getNode(newViewBox, 'M872 144h-56c-4.4 0-8 3.6-8 8v720c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V152c0-4.4-3.6-8-8-8zm-166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-498 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm166 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM208 808h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm498 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM374 808h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
exports.BorderHorizontalOutline = getIcon('border-horizontal', outline, getNode(newViewBox, 'M540 144h-56c-4.4 0-8 3.6-8 8v720c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V152c0-4.4-3.6-8-8-8zm-166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm498 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-664 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm498 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM208 310h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm664 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-664 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm664 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM374 808h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
exports.BorderTopOutline = getIcon('border-top', outline, getNode(newViewBox, 'M872 144H152c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM208 310h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 498h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm166-166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332-498h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
exports.BorderVerticleOutline = getIcon('border-verticle', outline, getNode(newViewBox, 'M872 476H152c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 498h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-664h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 498h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM650 216h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm56 592h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-56-592h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-166 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm332 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zM208 808h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM152 382h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm332 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zM208 642h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
exports.BorderOutline = getIcon('border', outline, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'));
exports.BranchesOutline = getIcon('branches', outline, getNode(newViewBox, 'M740 161c-61.8 0-112 50.2-112 112 0 50.1 33.1 92.6 78.5 106.9v95.9L320 602.4V318.1c44.2-15 76-56.9 76-106.1 0-61.8-50.2-112-112-112s-112 50.2-112 112c0 49.2 31.8 91 76 106.1V706c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1v-27.8l423.5-138.7a50.52 50.52 0 0 0 34.9-48.2V378.2c42.9-15.8 73.6-57 73.6-105.2 0-61.8-50.2-112-112-112zm-504 51a48.01 48.01 0 0 1 96 0 48.01 48.01 0 0 1-96 0zm96 600a48.01 48.01 0 0 1-96 0 48.01 48.01 0 0 1 96 0zm408-491a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'));
exports.CheckOutline = getIcon('check', outline, getNode(newViewBox, 'M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z'));
exports.CiOutline = getIcon('ci', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm218-572.1h-50.4c-4.4 0-8 3.6-8 8v384.2c0 4.4 3.6 8 8 8H730c4.4 0 8-3.6 8-8V319.9c0-4.4-3.6-8-8-8zm-281.4 49.6c49.5 0 83.1 31.5 87 77.6.4 4.2 3.8 7.4 8 7.4h52.6c2.4 0 4.4-2 4.4-4.4 0-81.2-64-138.1-152.3-138.1C345.4 304 286 373.5 286 488.4v49c0 114 59.4 182.6 162.3 182.6 88 0 152.3-55.1 152.3-132.5 0-2.4-2-4.4-4.4-4.4h-52.7c-4.2 0-7.6 3.2-8 7.3-4.2 43-37.7 72.4-87 72.4-61.1 0-95.6-44.9-95.6-125.2v-49.3c.1-81.4 34.6-126.8 95.7-126.8z'));
exports.CloseOutline = getIcon('close', outline, getNode(newViewBox, 'M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 0 0 203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z'));
exports.CloudDownloadOutline = getIcon('cloud-download', outline, getNode(newViewBox, 'M624 706.3h-74.1V464c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v242.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.7a8 8 0 0 0 12.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9z', 'M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0 1 52.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 0 1-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z'));
exports.CloudServerOutline = getIcon('cloud-server', outline, getNode(newViewBox, 'M704 446H320c-4.4 0-8 3.6-8 8v402c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8V454c0-4.4-3.6-8-8-8zm-328 64h272v117H376V510zm272 290H376V683h272v117z', 'M424 748a32 32 0 1 0 64 0 32 32 0 1 0-64 0zm0-178a32 32 0 1 0 64 0 32 32 0 1 0-64 0z', 'M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z'));
exports.CloudSyncOutline = getIcon('cloud-sync', outline, getNode(newViewBox, 'M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z', 'M376.9 656.4c1.8-33.5 15.7-64.7 39.5-88.6 25.4-25.5 60-39.8 96-39.8 36.2 0 70.3 14.1 96 39.8 1.4 1.4 2.7 2.8 4.1 4.3l-25 19.6a8 8 0 0 0 3 14.1l98.2 24c5 1.2 9.9-2.6 9.9-7.7l.5-101.3c0-6.7-7.6-10.5-12.9-6.3L663 532.7c-36.6-42-90.4-68.6-150.5-68.6-107.4 0-195 85.1-199.4 191.7-.2 4.5 3.4 8.3 8 8.3H369c4.2-.1 7.7-3.4 7.9-7.7zM703 664h-47.9c-4.2 0-7.7 3.3-8 7.6-1.8 33.5-15.7 64.7-39.5 88.6-25.4 25.5-60 39.8-96 39.8-36.2 0-70.3-14.1-96-39.8-1.4-1.4-2.7-2.8-4.1-4.3l25-19.6a8 8 0 0 0-3-14.1l-98.2-24c-5-1.2-9.9 2.6-9.9 7.7l-.4 101.4c0 6.7 7.6 10.5 12.9 6.3l23.2-18.2c36.6 42 90.4 68.6 150.5 68.6 107.4 0 195-85.1 199.4-191.7.2-4.5-3.4-8.3-8-8.3z'));
exports.CloudUploadOutline = getIcon('cloud-upload', outline, getNode(newViewBox, 'M518.3 459a8 8 0 0 0-12.6 0l-112 141.7a7.98 7.98 0 0 0 6.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z', 'M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0 1 52.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 0 1-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z'));
exports.ClusterOutline = getIcon('cluster', outline, getNode(newViewBox, 'M888 680h-54V540H546v-92h238c8.8 0 16-7.2 16-16V168c0-8.8-7.2-16-16-16H240c-8.8 0-16 7.2-16 16v264c0 8.8 7.2 16 16 16h238v92H190v140h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8h-54v-72h220v72h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8h-54v-72h220v72h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8zM256 805.3c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zm288 0c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zM288 384V216h448v168H288zm544 421.3c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zM360 300a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'));
exports.CodepenOutline = getIcon('codepen', outline, getNode(newViewBox, 'M911.7 385.3l-.3-1.5c-.2-1-.3-1.9-.6-2.9-.2-.6-.4-1.1-.5-1.7-.3-.8-.5-1.7-.9-2.5-.2-.6-.5-1.1-.8-1.7-.4-.8-.8-1.5-1.2-2.3-.3-.5-.6-1.1-1-1.6-.8-1.2-1.7-2.4-2.6-3.6-.5-.6-1.1-1.3-1.7-1.9-.4-.5-.9-.9-1.4-1.3-.6-.6-1.3-1.1-1.9-1.6-.5-.4-1-.8-1.6-1.2-.2-.1-.4-.3-.6-.4L531.1 117.8a34.3 34.3 0 0 0-38.1 0L127.3 361.3c-.2.1-.4.3-.6.4-.5.4-1 .8-1.6 1.2-.7.5-1.3 1.1-1.9 1.6-.5.4-.9.9-1.4 1.3-.6.6-1.2 1.2-1.7 1.9-1 1.1-1.8 2.3-2.6 3.6-.3.5-.7 1-1 1.6-.4.7-.8 1.5-1.2 2.3-.3.5-.5 1.1-.8 1.7-.3.8-.6 1.7-.9 2.5-.2.6-.4 1.1-.5 1.7-.2.9-.4 1.9-.6 2.9l-.3 1.5c-.2 1.5-.3 3-.3 4.5v243.5c0 1.5.1 3 .3 4.5l.3 1.5.6 2.9c.2.6.3 1.1.5 1.7.3.9.6 1.7.9 2.5.2.6.5 1.1.8 1.7.4.8.7 1.5 1.2 2.3.3.5.6 1.1 1 1.6.5.7.9 1.4 1.5 2.1l1.2 1.5c.5.6 1.1 1.3 1.7 1.9.4.5.9.9 1.4 1.3.6.6 1.3 1.1 1.9 1.6.5.4 1 .8 1.6 1.2.2.1.4.3.6.4L493 905.7c5.6 3.8 12.3 5.8 19.1 5.8 6.6 0 13.3-1.9 19.1-5.8l365.6-243.5c.2-.1.4-.3.6-.4.5-.4 1-.8 1.6-1.2.7-.5 1.3-1.1 1.9-1.6.5-.4.9-.9 1.4-1.3.6-.6 1.2-1.2 1.7-1.9l1.2-1.5 1.5-2.1c.3-.5.7-1 1-1.6.4-.8.8-1.5 1.2-2.3.3-.5.5-1.1.8-1.7.3-.8.6-1.7.9-2.5.2-.5.4-1.1.5-1.7.3-.9.4-1.9.6-2.9l.3-1.5c.2-1.5.3-3 .3-4.5V389.8c-.3-1.5-.4-3-.6-4.5zM546.4 210.5l269.4 179.4-120.3 80.4-149-99.6V210.5zm-68.8 0v160.2l-149 99.6-120.3-80.4 269.3-179.4zM180.7 454.1l86 57.5-86 57.5v-115zm296.9 358.5L208.3 633.2l120.3-80.4 149 99.6v160.2zM512 592.8l-121.6-81.2L512 430.3l121.6 81.2L512 592.8zm34.4 219.8V652.4l149-99.6 120.3 80.4-269.3 179.4zM843.3 569l-86-57.5 86-57.5v115z'));
exports.CodeSandboxOutline = getIcon('code-sandbox', outline, getNode(newViewBox, 'M709.6 210l.4-.2h.2L512 96 313.9 209.8h-.2l.7.3L151.5 304v416L512 928l360.5-208V304l-162.9-94zM482.7 843.6L339.6 761V621.4L210 547.8V372.9l272.7 157.3v313.4zM238.2 321.5l134.7-77.8 138.9 79.7 139.1-79.9 135.2 78-273.9 158-274-158zM814 548.3l-128.8 73.1v139.1l-143.9 83V530.4L814 373.1v175.2z'));
exports.ColumHeightOutline = getIcon('colum-height', outline, getNode(newViewBox, 'M840 836H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm0-724H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM610.8 378c6 0 9.4-7 5.7-11.7L515.7 238.7a7.14 7.14 0 0 0-11.3 0L403.6 366.3a7.23 7.23 0 0 0 5.7 11.7H476v268h-62.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H548V378h62.8z'));
exports.ColumnWidthOutline = getIcon('column-width', outline, getNode(newViewBox, 'M180 176h-60c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8zm724 0h-60c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8zM785.3 504.3L657.7 403.6a7.23 7.23 0 0 0-11.7 5.7V476H378v-62.8c0-6-7-9.4-11.7-5.7L238.7 508.3a7.14 7.14 0 0 0 0 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V548h268v62.8c0 6 7 9.4 11.7 5.7l127.5-100.8c3.8-2.9 3.8-8.5.2-11.4z'));
exports.ColumnHeightOutline = getIcon('column-height', outline, getNode(newViewBox, 'M840 836H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm0-724H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM610.8 378c6 0 9.4-7 5.7-11.7L515.7 238.7a7.14 7.14 0 0 0-11.3 0L403.6 366.3a7.23 7.23 0 0 0 5.7 11.7H476v268h-62.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H548V378h62.8z'));
exports.CoffeeOutline = getIcon('coffee', outline, getNode(normalViewBox, 'M275 281c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36zm613 144H768c0-39.8-32.2-72-72-72H200c-39.8 0-72 32.2-72 72v248c0 3.4.2 6.7.7 9.9-.5 7-.7 14-.7 21.1 0 176.7 143.3 320 320 320 160.1 0 292.7-117.5 316.3-271H888c39.8 0 72-32.2 72-72V497c0-39.8-32.2-72-72-72zM696 681h-1.1c.7 7.6 1.1 15.2 1.1 23 0 137-111 248-248 248S200 841 200 704c0-7.8.4-15.4 1.1-23H200V425h496v256zm192-8H776V497h112v176zM613 281c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36zm-170 0c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36z'));
exports.CopyrightOutline = getIcon('copyright', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm5.6-532.7c53 0 89 33.8 93 83.4.3 4.2 3.8 7.4 8 7.4h56.7c2.6 0 4.7-2.1 4.7-4.7 0-86.7-68.4-147.4-162.7-147.4C407.4 290 344 364.2 344 486.8v52.3C344 660.8 407.4 734 517.3 734c94 0 162.7-58.8 162.7-141.4 0-2.6-2.1-4.7-4.7-4.7h-56.8c-4.2 0-7.6 3.2-8 7.3-4.2 46.1-40.1 77.8-93 77.8-65.3 0-102.1-47.9-102.1-133.6v-52.6c.1-87 37-135.5 102.2-135.5z'));
exports.DashOutline = getIcon('dash', outline, getNode(newViewBox, 'M112 476h160v72H112zm320 0h160v72H432zm320 0h160v72H752z'));
exports.DeploymentUnitOutline = getIcon('deployment-unit', outline, getNode(newViewBox, 'M888.3 693.2c-42.5-24.6-94.3-18-129.2 12.8l-53-30.7V523.6c0-15.7-8.4-30.3-22-38.1l-136-78.3v-67.1c44.2-15 76-56.8 76-106.1 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 49.3 31.8 91.1 76 106.1v67.1l-136 78.3c-13.6 7.8-22 22.4-22 38.1v151.6l-53 30.7c-34.9-30.8-86.8-37.4-129.2-12.8-53.5 31-71.7 99.4-41 152.9 30.8 53.5 98.9 71.9 152.2 41 42.5-24.6 62.7-73 53.6-118.8l48.7-28.3 140.6 81c6.8 3.9 14.4 5.9 22 5.9s15.2-2 22-5.9L674.5 740l48.7 28.3c-9.1 45.7 11.2 94.2 53.6 118.8 53.3 30.9 121.5 12.6 152.2-41 30.8-53.6 12.6-122-40.7-152.9zm-673 138.4a47.6 47.6 0 0 1-65.2-17.6c-13.2-22.9-5.4-52.3 17.5-65.5a47.6 47.6 0 0 1 65.2 17.6c13.2 22.9 5.4 52.3-17.5 65.5zM522 463.8zM464 234a48.01 48.01 0 0 1 96 0 48.01 48.01 0 0 1-96 0zm170 446.2l-122 70.3-122-70.3V539.8l122-70.3 122 70.3v140.4zm239.9 133.9c-13.2 22.9-42.4 30.8-65.2 17.6-22.8-13.2-30.7-42.6-17.5-65.5s42.4-30.8 65.2-17.6c22.9 13.2 30.7 42.5 17.5 65.5z'));
exports.DesktopOutline = getIcon('desktop', outline, getNode(newViewBox, 'M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z'));
exports.DingdingOutline = getIcon('dingding', outline, getNode(newViewBox, 'M573.7 252.5C422.5 197.4 201.3 96.7 201.3 96.7c-15.7-4.1-17.9 11.1-17.9 11.1-5 61.1 33.6 160.5 53.6 182.8 19.9 22.3 319.1 113.7 319.1 113.7S326 357.9 270.5 341.9c-55.6-16-37.9 17.8-37.9 17.8 11.4 61.7 64.9 131.8 107.2 138.4 42.2 6.6 220.1 4 220.1 4s-35.5 4.1-93.2 11.9c-42.7 5.8-97 12.5-111.1 17.8-33.1 12.5 24 62.6 24 62.6 84.7 76.8 129.7 50.5 129.7 50.5 33.3-10.7 61.4-18.5 85.2-24.2L565 743.1h84.6L603 928l205.3-271.9H700.8l22.3-38.7c.3.5.4.8.4.8S799.8 496.1 829 433.8l.6-1h-.1c5-10.8 8.6-19.7 10-25.8 17-71.3-114.5-99.4-265.8-154.5z'));
exports.DisconnectOutline = getIcon('disconnect', outline, getNode(newViewBox, 'M832.6 191.4c-84.6-84.6-221.5-84.6-306 0l-96.9 96.9 51 51 96.9-96.9c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204l-96.9 96.9 51.1 51.1 96.9-96.9c84.4-84.6 84.4-221.5-.1-306.1zM446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l96.9-96.9-51.1-51.1-96.9 96.9c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l96.9-96.9-51-51-96.8 97zM260.3 209.4a8.03 8.03 0 0 0-11.3 0L209.4 249a8.03 8.03 0 0 0 0 11.3l554.4 554.4c3.1 3.1 8.2 3.1 11.3 0l39.6-39.6c3.1-3.1 3.1-8.2 0-11.3L260.3 209.4z'));
exports.DollarOutline = getIcon('dollar', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm47.7-395.2l-25.4-5.9V348.6c38 5.2 61.5 29 65.5 58.2.5 4 3.9 6.9 7.9 6.9h44.9c4.7 0 8.4-4.1 8-8.8-6.1-62.3-57.4-102.3-125.9-109.2V263c0-4.4-3.6-8-8-8h-28.1c-4.4 0-8 3.6-8 8v33c-70.8 6.9-126.2 46-126.2 119 0 67.6 49.8 100.2 102.1 112.7l24.7 6.3v142.7c-44.2-5.9-69-29.5-74.1-61.3-.6-3.8-4-6.6-7.9-6.6H363c-4.7 0-8.4 4-8 8.7 4.5 55 46.2 105.6 135.2 112.1V761c0 4.4 3.6 8 8 8h28.4c4.4 0 8-3.6 8-8.1l-.2-31.7c78.3-6.9 134.3-48.8 134.3-124-.1-69.4-44.2-100.4-109-116.4zm-68.6-16.2c-5.6-1.6-10.3-3.1-15-5-33.8-12.2-49.5-31.9-49.5-57.3 0-36.3 27.5-57 64.5-61.7v124zM534.3 677V543.3c3.1.9 5.9 1.6 8.8 2.2 47.3 14.4 63.2 34.4 63.2 65.1 0 39.1-29.4 62.6-72 66.4z'));
exports.DoubleRightOutline = getIcon('double-right', outline, getNode(newViewBox, 'M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 0 0 188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 0 0 492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z'));
exports.DotChartOutline = getIcon('dot-chart', outline, getNode(newViewBox, 'M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 1 0 128 0 64 64 0 1 0-128 0zm118-224a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm158 228a96 96 0 1 0 192 0 96 96 0 1 0-192 0zm148-314a56 56 0 1 0 112 0 56 56 0 1 0-112 0z'));
exports.DoubleLeftOutline = getIcon('double-left', outline, getNode(newViewBox, 'M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 0 0 0 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 0 0 0 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z'));
exports.DownloadOutline = getIcon('download', outline, getNode(newViewBox, 'M505.7 661a8 8 0 0 0 12.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z'));
exports.DribbbleOutline = getIcon('dribbble', outline, getNode(newViewBox, 'M512 96C282.6 96 96 282.6 96 512s186.6 416 416 416 416-186.6 416-416S741.4 96 512 96zm275.1 191.8c49.5 60.5 79.5 137.5 80.2 221.4-11.7-2.5-129.2-26.3-247.4-11.4-2.5-6.1-5-12.2-7.6-18.3-7.4-17.3-15.3-34.6-23.6-51.5C720 374.3 779.6 298 787.1 287.8zM512 157.2c90.3 0 172.8 33.9 235.5 89.5-6.4 9.1-59.9 81-186.2 128.4-58.2-107-122.7-194.8-132.6-208 27.3-6.6 55.2-9.9 83.3-9.9zM360.9 191c9.4 12.8 72.9 100.9 131.7 205.5C326.4 440.6 180 440 164.1 439.8c23.1-110.3 97.4-201.9 196.8-248.8zM156.7 512.5c0-3.6.1-7.3.2-10.9 15.5.3 187.7 2.5 365.2-50.6 10.2 19.9 19.9 40.1 28.8 60.3-4.7 1.3-9.4 2.7-14 4.2C353.6 574.9 256.1 736.4 248 750.1c-56.7-63-91.3-146.3-91.3-237.6zM512 867.8c-82.2 0-157.9-28-218.1-75 6.4-13.1 78.3-152 278.7-221.9l2.3-.8c49.9 129.6 70.5 238.3 75.8 269.5A350.46 350.46 0 0 1 512 867.8zm198.5-60.7c-3.6-21.6-22.5-125.6-69-253.3C752.9 536 850.7 565.2 862.8 569c-15.8 98.8-72.5 184.2-152.3 238.1z'));
exports.DropboxOutline = getIcon('dropbox', outline, getNode(newViewBox, 'M64 556.9l264.2 173.5L512.5 577 246.8 412.7zm896-290.3zm0 0L696.8 95 512.5 248.5l265.2 164.2L512.5 577l184.3 153.4L960 558.8 777.7 412.7zM513 609.8L328.2 763.3l-79.4-51.5v57.8L513 928l263.7-158.4v-57.8l-78.9 51.5zM328.2 95L64 265.1l182.8 147.6 265.7-164.2zM64 556.9z'));
exports.EllipsisOutline = getIcon('ellipsis', outline, getNode(newViewBox, 'M176 511a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm280 0a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm280 0a56 56 0 1 0 112 0 56 56 0 1 0-112 0z'));
exports.EnterOutline = getIcon('enter', outline, getNode(newViewBox, 'M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 0 0 0 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z'));
exports.EuroOutline = getIcon('euro', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm117.7-588.6c-15.9-3.5-34.4-5.4-55.3-5.4-106.7 0-178.9 55.7-198.6 149.9H344c-4.4 0-8 3.6-8 8v27.2c0 4.4 3.6 8 8 8h26.4c-.3 4.1-.3 8.4-.3 12.8v36.9H344c-4.4 0-8 3.6-8 8V568c0 4.4 3.6 8 8 8h30.2c17.2 99.2 90.4 158 200.2 158 20.9 0 39.4-1.7 55.3-5.1 3.7-.8 6.4-4 6.4-7.8v-42.8c0-5-4.6-8.8-9.5-7.8-14.7 2.8-31.9 4.1-51.8 4.1-68.5 0-114.5-36.6-129.8-98.6h130.6c4.4 0 8-3.6 8-8v-27.2c0-4.4-3.6-8-8-8H439.2v-36c0-4.7 0-9.4.3-13.8h135.9c4.4 0 8-3.6 8-8v-27.2c0-4.4-3.6-8-8-8H447.1c17.2-56.9 62.3-90.4 127.6-90.4 19.9 0 37.1 1.5 51.7 4.4a8 8 0 0 0 9.6-7.8v-42.8c0-3.8-2.6-7-6.3-7.8z'));
exports.ExceptionOutline = getIcon('exception', outline, getNode(newViewBox, 'M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm376 116c-119.3 0-216 96.7-216 216s96.7 216 216 216 216-96.7 216-216-96.7-216-216-216zm107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5zM640 812a32 32 0 1 0 64 0 32 32 0 1 0-64 0zm12-64h40c4.4 0 8-3.6 8-8V628c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v112c0 4.4 3.6 8 8 8zM440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
exports.ExclamationOutline = getIcon('exclamation', outline, getNode(newViewBox, 'M448 804a64 64 0 1 0 128 0 64 64 0 1 0-128 0zm32-168h64c4.4 0 8-3.6 8-8V164c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z'));
exports.ExportOutline = getIcon('export', outline, getNode(newViewBox, 'M888.3 757.4h-53.8c-4.2 0-7.7 3.5-7.7 7.7v61.8H197.1V197.1h629.8v61.8c0 4.2 3.5 7.7 7.7 7.7h53.8c4.2 0 7.7-3.4 7.7-7.7V158.7c0-17-13.7-30.7-30.7-30.7H158.7c-17 0-30.7 13.7-30.7 30.7v706.6c0 17 13.7 30.7 30.7 30.7h706.6c17 0 30.7-13.7 30.7-30.7V765.1c0-4.3-3.5-7.7-7.7-7.7zm18.6-251.7L765 393.7c-5.3-4.2-13-.4-13 6.3v76H438c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 0 0 0-12.6z'));
exports.FallOutline = getIcon('fall', outline, getNode(newViewBox, 'M925.9 804l-24-199.2c-.8-6.6-8.9-9.4-13.6-4.7L829 659.5 557.7 388.3c-6.3-6.2-16.4-6.2-22.6 0L433.3 490 156.6 213.3a8.03 8.03 0 0 0-11.3 0l-45 45.2a8.03 8.03 0 0 0 0 11.3L422 591.7c6.2 6.3 16.4 6.3 22.6 0L546.4 490l226.1 226-59.3 59.3a8.01 8.01 0 0 0 4.7 13.6l199.2 24c5.1.7 9.5-3.7 8.8-8.9z'));
exports.FileDoneOutline = getIcon('file-done', outline, getNode(newViewBox, 'M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm376 116c-119.3 0-216 96.7-216 216s96.7 216 216 216 216-96.7 216-216-96.7-216-216-216zm107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5zM761 656h-44.3c-2.6 0-5 1.2-6.5 3.3l-63.5 87.8-23.1-31.9a7.92 7.92 0 0 0-6.5-3.3H573c-6.5 0-10.3 7.4-6.5 12.7l73.8 102.1c3.2 4.4 9.7 4.4 12.9 0l114.2-158c3.9-5.3.1-12.7-6.4-12.7zM440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
exports.FileSyncOutline = getIcon('file-sync', outline, getNode(newViewBox, 'M296 256c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm192 200v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8zm-48 396H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm104.1-115.6c1.8-34.5 16.2-66.8 40.8-91.4 26.2-26.2 62-41 99.1-41 37.4 0 72.6 14.6 99.1 41 3.2 3.2 6.3 6.6 9.2 10.1L769.2 673a8 8 0 0 0 3 14.1l93.3 22.5c5 1.2 9.8-2.6 9.9-7.7l.6-95.4a8 8 0 0 0-12.9-6.4l-20.3 15.8C805.4 569.6 748.1 540 684 540c-109.9 0-199.6 86.9-204 195.7-.2 4.5 3.5 8.3 8 8.3h48.1c4.3 0 7.8-3.3 8-7.6zM880 744h-48.1c-4.3 0-7.8 3.3-8 7.6-1.8 34.5-16.2 66.8-40.8 91.4-26.2 26.2-62 41-99.1 41-37.4 0-72.6-14.6-99.1-41-3.2-3.2-6.3-6.6-9.2-10.1l23.1-17.9a8 8 0 0 0-3-14.1l-93.3-22.5c-5-1.2-9.8 2.6-9.9 7.7l-.6 95.4a8 8 0 0 0 12.9 6.4l20.3-15.8C562.6 918.4 619.9 948 684 948c109.9 0 199.6-86.9 204-195.7.2-4.5-3.5-8.3-8-8.3z'));
exports.FileProtectOutline = getIcon('file-protect', outline, getNode(newViewBox, 'M644.7 669.2a7.92 7.92 0 0 0-6.5-3.3H594c-6.5 0-10.3 7.4-6.5 12.7l73.8 102.1c3.2 4.4 9.7 4.4 12.9 0l114.2-158c3.8-5.3 0-12.7-6.5-12.7h-44.3c-2.6 0-5 1.2-6.5 3.3l-63.5 87.8-22.9-31.9zM688 306v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm184 458H208V148h560v296c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h312c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm402.6-320.8l-192-66.7c-.9-.3-1.7-.4-2.6-.4s-1.8.1-2.6.4l-192 66.7a7.96 7.96 0 0 0-5.4 7.5v251.1c0 2.5 1.1 4.8 3.1 6.3l192 150.2c1.4 1.1 3.2 1.7 4.9 1.7s3.5-.6 4.9-1.7l192-150.2c1.9-1.5 3.1-3.8 3.1-6.3V538.7c0-3.4-2.2-6.4-5.4-7.5zM826 763.7L688 871.6 550 763.7V577l138-48 138 48v186.7z'));
exports.FileSearchOutline = getIcon('file-search', outline, getNode(newViewBox, 'M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm144 452H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm445.7 51.5l-93.3-93.3C814.7 780.7 828 743.9 828 704c0-97.2-78.8-176-176-176s-176 78.8-176 176 78.8 176 176 176c35.8 0 69-10.7 96.8-29l94.7 94.7c1.6 1.6 3.6 2.3 5.6 2.3s4.1-.8 5.6-2.3l31-31a7.9 7.9 0 0 0 0-11.2zM652 816c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z'));
exports.FileJpgOutline = getIcon('file-jpg', outline, getNode(normalViewBox, 'M874.6 301.8L596.8 21.3c-4.5-4.5-9.4-8.3-14.7-11.5-1.4-.8-2.8-1.6-4.3-2.3-.9-.5-1.9-.9-2.8-1.3-9-4-18.9-6.2-29-6.2H201c-39.8 0-73 32.2-73 72v880c0 39.8 33.2 72 73 72h623c39.8 0 71-32.2 71-72V352.5c0-19-7-37.2-20.4-50.7zM583 110.4L783.8 312H583V110.4zM823 952H200V72h311v240c0 39.8 33.2 72 73 72h239v568zM350 696.5c0 24.2-7.5 31.4-21.9 31.4-9 0-18.4-5.8-24.8-18.5L272.9 732c13.4 22.9 32.3 34.2 61.3 34.2 41.6 0 60.8-29.9 60.8-66.2V577h-45v119.5zM501.3 577H437v186h44v-62h21.6c39.1 0 73.1-19.6 73.1-63.6 0-45.8-33.5-60.4-74.4-60.4zm-.8 89H481v-53h18.2c21.5 0 33.4 6.2 33.4 24.9 0 18.1-10.5 28.1-32.1 28.1zm182.5-9v36h30v30.1c-4 2.9-11 4.7-17.7 4.7-34.3 0-50.7-21.4-50.7-58.2 0-36.1 19.7-57.4 47.1-57.4 15.3 0 25 6.2 34 14.4l23.7-28.3c-12.7-12.8-32.1-24.2-59.2-24.2-49.6 0-91.1 35.3-91.1 97 0 62.7 40 95.1 91.5 95.1 25.9 0 49.2-10.2 61.5-22.6V657H683z'));
exports.FontColorsOutline = getIcon('font-colors', outline, getNode(newViewBox, 'M904 816H120c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8zm-650.3-80h85c4.2 0 8-2.7 9.3-6.8l53.7-166h219.2l53.2 166c1.3 4 5 6.8 9.3 6.8h89.1c1.1 0 2.2-.2 3.2-.5a9.7 9.7 0 0 0 6-12.4L573.6 118.6a9.9 9.9 0 0 0-9.2-6.6H462.1c-4.2 0-7.9 2.6-9.2 6.6L244.5 723.1c-.4 1-.5 2.1-.5 3.2-.1 5.3 4.3 9.7 9.7 9.7zm255.9-516.1h4.1l83.8 263.8H424.9l84.7-263.8z'));
exports.FontSizeOutline = getIcon('font-size', outline, getNode(newViewBox, 'M920 416H616c-4.4 0-8 3.6-8 8v112c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-56h60v320h-46c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h164c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8h-46V480h60v56c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V424c0-4.4-3.6-8-8-8zM656 296V168c0-4.4-3.6-8-8-8H104c-4.4 0-8 3.6-8 8v128c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-64h168v560h-92c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-92V232h168v64c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8z'));
exports.ForkOutline = getIcon('fork', outline, getNode(newViewBox, 'M752 100c-61.8 0-112 50.2-112 112 0 47.7 29.9 88.5 72 104.6v27.6L512 601.4 312 344.2v-27.6c42.1-16.1 72-56.9 72-104.6 0-61.8-50.2-112-112-112s-112 50.2-112 112c0 50.6 33.8 93.5 80 107.3v34.4c0 9.7 3.3 19.3 9.3 27L476 672.3v33.6c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1v-33.6l226.7-291.6c6-7.7 9.3-17.3 9.3-27v-34.4c46.2-13.8 80-56.7 80-107.3 0-61.8-50.2-112-112-112zM224 212a48.01 48.01 0 0 1 96 0 48.01 48.01 0 0 1-96 0zm336 600a48.01 48.01 0 0 1-96 0 48.01 48.01 0 0 1 96 0zm192-552a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'));
exports.FormOutline = getIcon('form', outline, getNode(newViewBox, 'M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z', 'M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 0 0-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z'));
exports.FullscreenExitOutline = getIcon('fullscreen-exit', outline, getNode(newViewBox, 'M391 240.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L200 146.3a8.03 8.03 0 0 0-11.3 0l-42.4 42.3a8.03 8.03 0 0 0 0 11.3L280 333.6l-43.9 43.9a8.01 8.01 0 0 0 4.7 13.6L401 410c5.1.6 9.5-3.7 8.9-8.9L391 240.9zm10.1 373.2L240.8 633c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L146.3 824a8.03 8.03 0 0 0 0 11.3l42.4 42.3c3.1 3.1 8.2 3.1 11.3 0L333.7 744l43.7 43.7A8.01 8.01 0 0 0 391 783l18.9-160.1c.6-5.1-3.7-9.4-8.8-8.8zm221.8-204.2L783.2 391c6.6-.8 9.4-8.9 4.7-13.6L744 333.6 877.7 200c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.3a8.03 8.03 0 0 0-11.3 0L690.3 279.9l-43.7-43.7a8.01 8.01 0 0 0-13.6 4.7L614.1 401c-.6 5.2 3.7 9.5 8.8 8.9zM744 690.4l43.9-43.9a8.01 8.01 0 0 0-4.7-13.6L623 614c-5.1-.6-9.5 3.7-8.9 8.9L633 783.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L824 877.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L744 690.4z'));
exports.FullscreenOutline = getIcon('fullscreen', outline, getNode(newViewBox, 'M290 236.4l43.9-43.9a8.01 8.01 0 0 0-4.7-13.6L169 160c-5.1-.6-9.5 3.7-8.9 8.9L179 329.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L370 423.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L290 236.4zm352.7 187.3c3.1 3.1 8.2 3.1 11.3 0l133.7-133.6 43.7 43.7a8.01 8.01 0 0 0 13.6-4.7L863.9 169c.6-5.1-3.7-9.5-8.9-8.9L694.8 179c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L600.3 370a8.03 8.03 0 0 0 0 11.3l42.4 42.4zM845 694.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L654 600.3a8.03 8.03 0 0 0-11.3 0l-42.4 42.3a8.03 8.03 0 0 0 0 11.3L734 787.6l-43.9 43.9a8.01 8.01 0 0 0 4.7 13.6L855 864c5.1.6 9.5-3.7 8.9-8.9L845 694.9zm-463.7-94.6a8.03 8.03 0 0 0-11.3 0L236.3 733.9l-43.7-43.7a8.01 8.01 0 0 0-13.6 4.7L160.1 855c-.6 5.1 3.7 9.5 8.9 8.9L329.2 845c6.6-.8 9.4-8.9 4.7-13.6L290 787.6 423.7 654c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.4z'));
exports.GatewayOutline = getIcon('gateway', outline, getNode(newViewBox, 'M928 392c8.8 0 16-7.2 16-16V192c0-8.8-7.2-16-16-16H744c-8.8 0-16 7.2-16 16v56H296v-56c0-8.8-7.2-16-16-16H96c-8.8 0-16 7.2-16 16v184c0 8.8 7.2 16 16 16h56v240H96c-8.8 0-16 7.2-16 16v184c0 8.8 7.2 16 16 16h184c8.8 0 16-7.2 16-16v-56h432v56c0 8.8 7.2 16 16 16h184c8.8 0 16-7.2 16-16V648c0-8.8-7.2-16-16-16h-56V392h56zM792 240h88v88h-88v-88zm-648 88v-88h88v88h-88zm88 456h-88v-88h88v88zm648-88v88h-88v-88h88zm-80-64h-56c-8.8 0-16 7.2-16 16v56H296v-56c0-8.8-7.2-16-16-16h-56V392h56c8.8 0 16-7.2 16-16v-56h432v56c0 8.8 7.2 16 16 16h56v240z'));
exports.DownOutline = getIcon('down', outline, getNode(newViewBox, 'M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z'));
exports.DragOutline = getIcon('drag', outline, getNode(newViewBox, 'M909.3 506.3L781.7 405.6a7.23 7.23 0 0 0-11.7 5.7V476H548V254h64.8c6 0 9.4-7 5.7-11.7L517.7 114.7a7.14 7.14 0 0 0-11.3 0L405.6 242.3a7.23 7.23 0 0 0 5.7 11.7H476v222H254v-64.8c0-6-7-9.4-11.7-5.7L114.7 506.3a7.14 7.14 0 0 0 0 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V548h222v222h-64.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H548V548h222v64.8c0 6 7 9.4 11.7 5.7l127.5-100.8a7.3 7.3 0 0 0 .1-11.4z'));
exports.GlobalOutline = getIcon('global', outline, getNode(newViewBox, 'M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0 0 10-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 0 0 3.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 0 0-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 0 1 887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 0 1-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 0 1 115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 0 1 540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 0 0 540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 0 1-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 0 0-81.5 55.9A373.86 373.86 0 0 1 137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 0 1-107.6 69.2z'));
exports.GooglePlusOutline = getIcon('google-plus', outline, getNode(newViewBox, 'M879.5 470.4c-.3-27-.4-54.2-.5-81.3h-80.8c-.3 27-.5 54.1-.7 81.3-27.2.1-54.2.3-81.2.6v80.9c27 .3 54.2.5 81.2.8.3 27 .3 54.1.5 81.1h80.9c.1-27 .3-54.1.5-81.3 27.2-.3 54.2-.4 81.2-.7v-80.9c-26.9-.2-54.1-.2-81.1-.5zm-530 .4c-.1 32.3 0 64.7.1 97 54.2 1.8 108.5 1 162.7 1.8-23.9 120.3-187.4 159.3-273.9 80.7-89-68.9-84.8-220 7.7-284 64.7-51.6 156.6-38.9 221.3 5.8 25.4-23.5 49.2-48.7 72.1-74.7-53.8-42.9-119.8-73.5-190-70.3-146.6-4.9-281.3 123.5-283.7 270.2-9.4 119.9 69.4 237.4 180.6 279.8 110.8 42.7 252.9 13.6 323.7-86 46.7-62.9 56.8-143.9 51.3-220-90.7-.7-181.3-.6-271.9-.3z'));
exports.GoogleOutline = getIcon('google', outline, getNode(newViewBox, 'M881 442.4H519.7v148.5h206.4c-8.9 48-35.9 88.6-76.6 115.8-34.4 23-78.3 36.6-129.9 36.6-99.9 0-184.4-67.5-214.6-158.2-7.6-23-12-47.6-12-72.9s4.4-49.9 12-72.9c30.3-90.6 114.8-158.1 214.7-158.1 56.3 0 106.8 19.4 146.6 57.4l110-110.1c-66.5-62-153.2-100-256.6-100-149.9 0-279.6 86-342.7 211.4-26 51.8-40.8 110.4-40.8 172.4S151 632.8 177 684.6C240.1 810 369.8 896 519.7 896c103.6 0 190.4-34.4 253.8-93 72.5-66.8 114.4-165.2 114.4-282.1 0-27.2-2.4-53.3-6.9-78.5z'));
exports.HeatMapOutline = getIcon('heat-map', outline, getNode(newViewBox, 'M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-790.4-23.9L512 231.9 858.7 832H165.3zm319-474.1l-228 394c-12.3 21.3 3.1 48 27.7 48h455.8c24.7 0 40.1-26.7 27.7-48L539.7 358c-6.2-10.7-17-16-27.7-16-10.8 0-21.6 5.3-27.7 16zm214 386H325.7L512 422l186.3 322zm-214-194.1l-57 98.4C415 669.5 430.4 696 455 696h114c24.6 0 39.9-26.5 27.7-47.7l-57-98.4c-6.1-10.6-16.9-15.9-27.7-15.9s-21.5 5.3-27.7 15.9zm57.1 98.4h-58.7l29.4-50.7 29.3 50.7z'));
exports.GoldOutline = getIcon('gold', outline, getNode(newViewBox, 'M342 472h342c.4 0 .9 0 1.3-.1 4.4-.7 7.3-4.8 6.6-9.2l-40.2-248c-.6-3.9-4-6.7-7.9-6.7H382.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8zm91.2-196h159.5l20.7 128h-201l20.8-128zm2.5 282.7c-.6-3.9-4-6.7-7.9-6.7H166.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8h342c.4 0 .9 0 1.3-.1 4.4-.7 7.3-4.8 6.6-9.2l-40.2-248zM196.5 748l20.7-128h159.5l20.7 128H196.5zm709.4 58.7l-40.2-248c-.6-3.9-4-6.7-7.9-6.7H596.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8h342c.4 0 .9 0 1.3-.1 4.3-.7 7.3-4.8 6.6-9.2zM626.5 748l20.7-128h159.5l20.7 128H626.5z'));
exports.HistoryOutline = getIcon('history', outline, getNode(newViewBox, 'M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 0 0 3 14.1zm167.7 301.1l-56.7-19.5a8 8 0 0 0-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 0 1-112.5 75.9 352.18 352.18 0 0 1-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 0 1-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 0 1 171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 0 1 112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 0 1 775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z'));
exports.IeOutline = getIcon('ie', outline, getNode(newViewBox, 'M852.6 367.6c16.3-36.9 32.1-90.7 32.1-131.8 0-109.1-119.5-147.6-314.5-57.9-161.4-10.8-316.8 110.5-355.6 279.7 46.3-52.3 117.4-123.4 183-151.7C316.1 378.3 246.7 470 194 565.6c-31.1 56.9-66 148.8-66 217.5 0 147.9 139.3 129.8 270.4 63 47.1 23.1 99.8 23.4 152.5 23.4 145.7 0 276.4-81.4 325.2-219H694.9c-78.8 132.9-295.2 79.5-295.2-71.2h493.2c9.6-65.4-2.5-143.6-40.3-211.7zM224.8 648.3c26.6 76.7 80.6 143.8 150.4 185-133.1 73.4-259.9 43.6-150.4-185zm174-163.3c3-82.7 75.4-142.3 156-142.3 80.1 0 153 59.6 156 142.3h-312zm276.8-281.4c32.1-15.4 72.8-33 108.8-33 47.1 0 81.4 32.6 81.4 80.6 0 30-11.1 73.5-21.9 101.8-39.3-63.5-98.9-122.4-168.3-149.4z'));
exports.InboxOutline = getIcon('inbox', outline, getNode(normalViewBox, 'M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0 0 60.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z'));
exports.ImportOutline = getIcon('import', outline, getNode(newViewBox, 'M888.3 757.4h-53.8c-4.2 0-7.7 3.5-7.7 7.7v61.8H197.1V197.1h629.8v61.8c0 4.2 3.5 7.7 7.7 7.7h53.8c4.2 0 7.7-3.4 7.7-7.7V158.7c0-17-13.7-30.7-30.7-30.7H158.7c-17 0-30.7 13.7-30.7 30.7v706.6c0 17 13.7 30.7 30.7 30.7h706.6c17 0 30.7-13.7 30.7-30.7V765.1c0-4.3-3.5-7.7-7.7-7.7zM902 476H588v-76c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 0 0 0 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-76h314c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
exports.InfoOutline = getIcon('info', outline, getNode(newViewBox, 'M448 224a64 64 0 1 0 128 0 64 64 0 1 0-128 0zm96 168h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V400c0-4.4-3.6-8-8-8z'));
exports.ItalicOutline = getIcon('italic', outline, getNode(newViewBox, 'M798 160H366c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h181.2l-156 544H229c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8H474.4l156-544H798c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z'));
exports.IssuesCloseOutline = getIcon('issues-close', outline, getNode(newViewBox, 'M464 688a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm72-112c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48zm400-188h-59.3c-2.6 0-5 1.2-6.5 3.3L763.7 538.1l-49.9-68.8a7.92 7.92 0 0 0-6.5-3.3H648c-6.5 0-10.3 7.4-6.5 12.7l109.2 150.7a16.1 16.1 0 0 0 26 0l165.8-228.7c3.8-5.3 0-12.7-6.5-12.7zm-44 306h-64.2c-5.5 0-10.6 2.9-13.6 7.5a352.2 352.2 0 0 1-49.8 62.2A355.92 355.92 0 0 1 651.1 840a355 355 0 0 1-138.7 27.9c-48.1 0-94.8-9.4-138.7-27.9a355.92 355.92 0 0 1-113.3-76.3A353.06 353.06 0 0 1 184 650.5c-18.6-43.8-28-90.5-28-138.5s9.4-94.7 28-138.5c17.9-42.4 43.6-80.5 76.4-113.2 32.8-32.7 70.9-58.4 113.3-76.3a355 355 0 0 1 138.7-27.9c48.1 0 94.8 9.4 138.7 27.9 42.4 17.9 80.5 43.6 113.3 76.3 19 19 35.6 39.8 49.8 62.2 2.9 4.7 8.1 7.5 13.6 7.5H892c6 0 9.8-6.3 7.2-11.6C828.8 178.5 684.7 82 517.7 80 278.9 77.2 80.5 272.5 80 511.2 79.5 750.1 273.3 944 512.4 944c169.2 0 315.6-97 386.7-238.4A8 8 0 0 0 892 694z'));
exports.KeyOutline = getIcon('key', outline, getNode(newViewBox, 'M608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5l-41.1 41.1-62.3-62.3a8.15 8.15 0 0 0-11.4 0l-39.8 39.8a8.15 8.15 0 0 0 0 11.4l62.3 62.3-44.9 44.9-62.3-62.3a8.15 8.15 0 0 0-11.4 0l-39.8 39.8a8.15 8.15 0 0 0 0 11.4l62.3 62.3-65.3 65.3a8.03 8.03 0 0 0 0 11.3l42.3 42.3c3.1 3.1 8.2 3.1 11.3 0l253.6-253.6A304.06 304.06 0 0 0 608 720c167.9 0 304-136.1 304-304S775.9 112 608 112zm161.2 465.2C726.2 620.3 668.9 644 608 644c-60.9 0-118.2-23.7-161.2-66.8-43.1-43-66.8-100.3-66.8-161.2 0-60.9 23.7-118.2 66.8-161.2 43-43.1 100.3-66.8 161.2-66.8 60.9 0 118.2 23.7 161.2 66.8 43.1 43 66.8 100.3 66.8 161.2 0 60.9-23.7 118.2-66.8 161.2z'));
exports.LaptopOutline = getIcon('laptop', outline, getNode(newViewBox, 'M956.9 845.1L896.4 632V168c0-17.7-14.3-32-32-32h-704c-17.7 0-32 14.3-32 32v464L67.9 845.1C60.4 866 75.8 888 98 888h828.8c22.2 0 37.6-22 30.1-42.9zM200.4 208h624v395h-624V208zm228.3 608l8.1-37h150.3l8.1 37H428.7zm224 0l-19.1-86.7c-.8-3.7-4.1-6.3-7.8-6.3H398.2c-3.8 0-7 2.6-7.8 6.3L371.3 816H151l42.3-149h638.2l42.3 149H652.7z'));
exports.LeftOutline = getIcon('left', outline, getNode(newViewBox, 'M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 0 0 0 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z'));
exports.LinkOutline = getIcon('link', outline, getNode(newViewBox, 'M574 665.4a8.03 8.03 0 0 0-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 0 0-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 0 0 0 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 0 0 0 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 0 0-11.3 0L372.3 598.7a8.03 8.03 0 0 0 0 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z'));
exports.LineChartOutline = getIcon('line-chart', outline, getNode(newViewBox, 'M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM305.8 637.7c3.1 3.1 8.1 3.1 11.3 0l138.3-137.6L583 628.5c3.1 3.1 8.2 3.1 11.3 0l275.4-275.3c3.1-3.1 3.1-8.2 0-11.3l-39.6-39.6a8.03 8.03 0 0 0-11.3 0l-230 229.9L461.4 404a8.03 8.03 0 0 0-11.3 0L266.3 586.7a8.03 8.03 0 0 0 0 11.3l39.5 39.7z'));
exports.LineHeightOutline = getIcon('line-height', outline, getNode(newViewBox, 'M648 160H104c-4.4 0-8 3.6-8 8v128c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-64h168v560h-92c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-92V232h168v64c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V168c0-4.4-3.6-8-8-8zm272.8 546H856V318h64.8c6 0 9.4-7 5.7-11.7L825.7 178.7a7.14 7.14 0 0 0-11.3 0L713.6 306.3a7.23 7.23 0 0 0 5.7 11.7H784v388h-64.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5a7.2 7.2 0 0 0-5.6-11.7z'));
exports.LineOutline = getIcon('line', outline, getNode(newViewBox, 'M904 476H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
exports.Loading3QuartersOutline = getIcon('loading-3-quarters', outline, getNode(normalViewBox, 'M512 1024c-69.1 0-136.2-13.5-199.3-40.2C251.7 958 197 921 150 874c-47-47-84-101.7-109.8-162.7C13.5 648.2 0 581.1 0 512c0-19.9 16.1-36 36-36s36 16.1 36 36c0 59.4 11.6 117 34.6 171.3 22.2 52.4 53.9 99.5 94.3 139.9 40.4 40.4 87.5 72.2 139.9 94.3C395 940.4 452.6 952 512 952c59.4 0 117-11.6 171.3-34.6 52.4-22.2 99.5-53.9 139.9-94.3 40.4-40.4 72.2-87.5 94.3-139.9C940.4 629 952 571.4 952 512c0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 0 0-94.3-139.9 437.71 437.71 0 0 0-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.2C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3s-13.5 136.2-40.2 199.3C958 772.3 921 827 874 874c-47 47-101.8 83.9-162.7 109.7-63.1 26.8-130.2 40.3-199.3 40.3z'));
exports.LoadingOutline = getIcon('loading', outline, getNode(normalViewBox, 'M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 0 0-94.3-139.9 437.71 437.71 0 0 0-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z'));
exports.LoginOutline = getIcon('login', outline, getNode(newViewBox, 'M521.7 82c-152.5-.4-286.7 78.5-363.4 197.7-3.4 5.3.4 12.3 6.7 12.3h70.3c4.8 0 9.3-2.1 12.3-5.8 7-8.5 14.5-16.7 22.4-24.5 32.6-32.5 70.5-58.1 112.7-75.9 43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 32.6 32.5 58.1 70.4 76 112.5C865.7 417.8 875 464.1 875 512c0 47.9-9.4 94.2-27.8 137.8-17.8 42.1-43.4 80-76 112.5s-70.5 58.1-112.7 75.9A352.8 352.8 0 0 1 520.6 866c-47.9 0-94.3-9.4-137.9-27.8A353.84 353.84 0 0 1 270 762.3c-7.9-7.9-15.3-16.1-22.4-24.5-3-3.7-7.6-5.8-12.3-5.8H165c-6.3 0-10.2 7-6.7 12.3C234.9 863.2 368.5 942 520.6 942c236.2 0 428-190.1 430.4-425.6C953.4 277.1 761.3 82.6 521.7 82zM395.02 624v-76h-314c-4.4 0-8-3.6-8-8v-56c0-4.4 3.6-8 8-8h314v-76c0-6.7 7.8-10.5 13-6.3l141.9 112a8 8 0 0 1 0 12.6l-141.9 112c-5.2 4.1-13 .4-13-6.3z'));
exports.LogoutOutline = getIcon('logout', outline, getNode(newViewBox, 'M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 0 1-112.7 75.9A352.8 352.8 0 0 1 512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 0 1-112.7-75.9 353.28 353.28 0 0 1-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 0 0 0-12.6z'));
exports.ManOutline = getIcon('man', outline, getNode(newViewBox, 'M874 120H622c-3.3 0-6 2.7-6 6v56c0 3.3 2.7 6 6 6h160.4L583.1 387.3c-50-38.5-111-59.3-175.1-59.3-76.9 0-149.3 30-203.6 84.4S120 539.1 120 616s30 149.3 84.4 203.6C258.7 874 331.1 904 408 904s149.3-30 203.6-84.4C666 765.3 696 692.9 696 616c0-64.1-20.8-124.9-59.2-174.9L836 241.9V402c0 3.3 2.7 6 6 6h56c3.3 0 6-2.7 6-6V150c0-16.5-13.5-30-30-30zM408 828c-116.9 0-212-95.1-212-212s95.1-212 212-212 212 95.1 212 212-95.1 212-212 212z'));
exports.MediumOutline = getIcon('medium', outline, getNode(newViewBox, 'M834.7 279.8l61.3-58.9V208H683.7L532.4 586.4 360.3 208H137.7v12.9l71.6 86.6c7 6.4 10.6 15.8 9.7 25.2V673c2.2 12.3-1.7 24.8-10.3 33.7L128 805v12.7h228.6v-12.9l-80.6-98a39.99 39.99 0 0 1-11.1-33.7V378.7l200.7 439.2h23.3l172.6-439.2v349.9c0 9.2 0 11.1-6 17.2l-62.1 60.3V819h301.2v-12.9l-59.9-58.9c-5.2-4-7.9-10.7-6.8-17.2V297a18.1 18.1 0 0 1 6.8-17.2z'));
exports.MediumWorkmarkOutline = getIcon('medium-workmark', outline, getNode(normalViewBox, 'M517.2 590.55c0 3.55 0 4.36 2.4 6.55l13.43 13.25v.57h-59.57v-25.47a41.44 41.44 0 0 1-39.5 27.65c-30.61 0-52.84-24.25-52.84-68.87 0-41.8 23.99-69.69 57.65-69.69a35.15 35.15 0 0 1 34.61 21.67v-56.19a6.99 6.99 0 0 0-2.71-6.79l-12.8-12.45v-.56l59.33-7.04v177.37zm-43.74-8.09v-83.83a22.2 22.2 0 0 0-17.74-8.4c-14.48 0-28.47 13.25-28.47 52.62 0 36.86 12.07 49.88 27.1 49.88a23.91 23.91 0 0 0 19.11-10.27zm83.23 28.46V497.74a7.65 7.65 0 0 0-2.4-6.79l-13.19-13.74v-.57h59.56v114.8c0 3.55 0 4.36 2.4 6.54l13.12 12.45v.57l-59.49-.08zm-2.16-175.67c0-13.4 10.74-24.25 23.99-24.25 13.25 0 23.98 10.86 23.98 24.25 0 13.4-10.73 24.25-23.98 24.25s-23.99-10.85-23.99-24.25zm206.83 155.06c0 3.55 0 4.6 2.4 6.79l13.43 13.25v.57h-59.88V581.9a43.4 43.4 0 0 1-41.01 31.2c-26.55 0-40.78-19.56-40.78-56.59 0-17.86 0-37.43.56-59.41a6.91 6.91 0 0 0-2.4-6.55L620.5 477.2v-.57h59.09v73.81c0 24.25 3.51 40.42 18.54 40.42a23.96 23.96 0 0 0 19.35-12.2v-80.85a7.65 7.65 0 0 0-2.4-6.79l-13.27-13.82v-.57h59.56V590.3zm202.76 20.6c0-4.36.8-59.97.8-72.75 0-24.25-3.76-40.98-20.63-40.98a26.7 26.7 0 0 0-21.19 11.64 99.68 99.68 0 0 1 2.4 23.04c0 16.81-.56 38.23-.8 59.66a6.91 6.91 0 0 0 2.4 6.55l13.43 12.45v.56h-60.12c0-4.04.8-59.98.8-72.76 0-24.65-3.76-40.98-20.39-40.98-8.2.3-15.68 4.8-19.83 11.96v82.46c0 3.56 0 4.37 2.4 6.55l13.11 12.45v.56h-59.48V498.15a7.65 7.65 0 0 0-2.4-6.8l-13.19-14.14v-.57H841v28.78c5.53-19 23.13-31.76 42.7-30.96 19.82 0 33.26 11.16 38.93 32.34a46.41 46.41 0 0 1 44.77-32.34c26.55 0 41.58 19.8 41.58 57.23 0 17.87-.56 38.24-.8 59.66a6.5 6.5 0 0 0 2.72 6.55l13.11 12.45v.57h-59.88zM215.87 593.3l17.66 17.05v.57h-89.62v-.57l17.99-17.05a6.91 6.91 0 0 0 2.4-6.55V477.69c0-4.6 0-10.83.8-16.16L104.66 613.1h-.72l-62.6-139.45c-1.37-3.47-1.77-3.72-2.65-6.06v91.43a32.08 32.08 0 0 0 2.96 17.87l25.19 33.46v.57H0v-.57l25.18-33.55a32.16 32.16 0 0 0 2.96-17.78V457.97A19.71 19.71 0 0 0 24 444.15L6.16 420.78v-.56h63.96l53.56 118.1 47.17-118.1h62.6v.56l-17.58 19.8a6.99 6.99 0 0 0-2.72 6.8v139.37a6.5 6.5 0 0 0 2.72 6.55zm70.11-54.65v.56c0 34.6 17.67 48.5 38.38 48.5a43.5 43.5 0 0 0 40.77-24.97h.56c-7.2 34.2-28.14 50.36-59.48 50.36-33.82 0-65.72-20.61-65.72-68.39 0-50.2 31.98-70.25 67.32-70.25 28.46 0 58.76 13.58 58.76 57.24v6.95h-80.59zm0-6.95h39.42v-7.04c0-35.57-7.28-45.03-18.23-45.03-13.27 0-21.35 14.15-21.35 52.07h.16z'));
exports.MenuUnfoldOutline = getIcon('menu-unfold', outline, getNode(newViewBox, 'M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z'));
exports.MenuFoldOutline = getIcon('menu-fold', outline, getNode(newViewBox, 'M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 0 0 0 13.8z'));
exports.MenuOutline = getIcon('menu', outline, getNode(newViewBox, 'M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z'));
exports.MinusOutline = getIcon('minus', outline, getNode(newViewBox, 'M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z'));
exports.MonitorOutline = getIcon('monitor', outline, getNode(newViewBox, 'M692.8 412.7l.2-.2-34.6-44.3a7.97 7.97 0 0 0-11.2-1.4l-50.4 39.3-70.5-90.1a7.97 7.97 0 0 0-11.2-1.4l-37.9 29.7a7.97 7.97 0 0 0-1.4 11.2l70.5 90.2-.2.1 34.6 44.3c2.7 3.5 7.7 4.1 11.2 1.4l50.4-39.3 64.1 82c2.7 3.5 7.7 4.1 11.2 1.4l37.9-29.6c3.5-2.7 4.1-7.7 1.4-11.2l-64.1-82.1zM608 112c-167.9 0-304 136.1-304 304 0 70.3 23.9 135 63.9 186.5L114.3 856.1a8.03 8.03 0 0 0 0 11.3l42.3 42.3c3.1 3.1 8.2 3.1 11.3 0l253.6-253.6C473 696.1 537.7 720 608 720c167.9 0 304-136.1 304-304S775.9 112 608 112zm161.2 465.2C726.2 620.3 668.9 644 608 644s-118.2-23.7-161.2-66.8C403.7 534.2 380 476.9 380 416s23.7-118.2 66.8-161.2c43-43.1 100.3-66.8 161.2-66.8s118.2 23.7 161.2 66.8c43.1 43 66.8 100.3 66.8 161.2s-23.7 118.2-66.8 161.2z'));
exports.MoreOutline = getIcon('more', outline, getNode(newViewBox, 'M456 231a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm0 280a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm0 280a56 56 0 1 0 112 0 56 56 0 1 0-112 0z'));
exports.OrderedListOutline = getIcon('ordered-list', outline, getNode(newViewBox, 'M920 760H336c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-568H336c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H336c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM216 712H100c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h72.4v20.5h-35.7c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h35.7V838H100c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h116c2.2 0 4-1.8 4-4V716c0-2.2-1.8-4-4-4zM100 188h38v120c0 2.2 1.8 4 4 4h40c2.2 0 4-1.8 4-4V152c0-4.4-3.6-8-8-8h-78c-2.2 0-4 1.8-4 4v36c0 2.2 1.8 4 4 4zm116 240H100c-2.2 0-4 1.8-4 4v36c0 2.2 1.8 4 4 4h68.4l-70.3 77.7a8.3 8.3 0 0 0-2.1 5.4V592c0 2.2 1.8 4 4 4h116c2.2 0 4-1.8 4-4v-36c0-2.2-1.8-4-4-4h-68.4l70.3-77.7a8.3 8.3 0 0 0 2.1-5.4V432c0-2.2-1.8-4-4-4z'));
exports.NumberOutline = getIcon('number', outline, getNode(newViewBox, 'M872 394c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8H708V152c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v166H400V152c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v166H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h168v236H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h168v166c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V706h228v166c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V706h164c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8H708V394h164zM628 630H400V394h228v236z'));
exports.PauseOutline = getIcon('pause', outline, getNode(newViewBox, 'M304 176h80v672h-80zm408 0h-64c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8z'));
exports.PercentageOutline = getIcon('percentage', outline, getNode(newViewBox, 'M855.7 210.8l-42.4-42.4a8.03 8.03 0 0 0-11.3 0L168.3 801.9a8.03 8.03 0 0 0 0 11.3l42.4 42.4c3.1 3.1 8.2 3.1 11.3 0L855.6 222c3.2-3 3.2-8.1.1-11.2zM304 448c79.4 0 144-64.6 144-144s-64.6-144-144-144-144 64.6-144 144 64.6 144 144 144zm0-216c39.7 0 72 32.3 72 72s-32.3 72-72 72-72-32.3-72-72 32.3-72 72-72zm416 344c-79.4 0-144 64.6-144 144s64.6 144 144 144 144-64.6 144-144-64.6-144-144-144zm0 216c-39.7 0-72-32.3-72-72s32.3-72 72-72 72 32.3 72 72-32.3 72-72 72z'));
exports.PaperClipOutline = getIcon('paper-clip', outline, getNode(newViewBox, 'M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0 0 12.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0 0 12.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 0 0 174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z'));
exports.PicCenterOutline = getIcon('pic-center', outline, getNode(newViewBox, 'M952 792H72c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h880c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-632H72c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h880c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM848 660c8.8 0 16-7.2 16-16V380c0-8.8-7.2-16-16-16H176c-8.8 0-16 7.2-16 16v264c0 8.8 7.2 16 16 16h672zM232 436h560v152H232V436z'));
exports.PicLeftOutline = getIcon('pic-left', outline, getNode(newViewBox, 'M952 792H72c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h880c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-632H72c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h880c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM608 660c8.8 0 16-7.2 16-16V380c0-8.8-7.2-16-16-16H96c-8.8 0-16 7.2-16 16v264c0 8.8 7.2 16 16 16h512zM152 436h400v152H152V436zm552 210c0 4.4 3.6 8 8 8h224c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H712c-4.4 0-8 3.6-8 8v56zm8-204h224c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H712c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8z'));
exports.PlusOutline = getIcon('plus', outline, getNode(newViewBox, 'M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z', 'M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z'));
exports.PicRightOutline = getIcon('pic-right', outline, getNode(newViewBox, 'M952 792H72c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h880c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-632H72c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h880c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-24 500c8.8 0 16-7.2 16-16V380c0-8.8-7.2-16-16-16H416c-8.8 0-16 7.2-16 16v264c0 8.8 7.2 16 16 16h512zM472 436h400v152H472V436zM80 646c0 4.4 3.6 8 8 8h224c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H88c-4.4 0-8 3.6-8 8v56zm8-204h224c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H88c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8z'));
exports.PoundOutline = getIcon('pound', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm138-209.8H469.8v-4.7c27.4-17.2 43.9-50.4 43.9-91.1 0-14.1-2.2-27.9-5.3-41H607c4.4 0 8-3.6 8-8v-30c0-4.4-3.6-8-8-8H495c-7.2-22.6-13.4-45.7-13.4-70.5 0-43.5 34-70.2 87.3-70.2 21.5 0 42.5 4.1 60.4 10.5 5.2 1.9 10.6-2 10.6-7.6v-39.5c0-3.3-2.1-6.3-5.2-7.5-18.8-7.2-43.8-12.7-70.3-12.7-92.9 0-151.5 44.5-151.5 120.3 0 26.3 6.9 52 14.6 77.1H374c-4.4 0-8 3.6-8 8v30c0 4.4 3.6 8 8 8h67.1c3.4 14.7 5.9 29.4 5.9 44.2 0 45.2-28.8 83.3-72.8 94.2-3.6.9-6.1 4.1-6.1 7.8V722c0 4.4 3.6 8 8 8H650c4.4 0 8-3.6 8-8v-39.8c0-4.4-3.6-8-8-8z'));
exports.PoweroffOutline = getIcon('poweroff', outline, getNode(newViewBox, 'M705.6 124.9a8 8 0 0 0-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0 1 62.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0 1 27.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 0 1-76.3 113.3 353.06 353.06 0 0 1-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 0 1-113.2-76.4A355.92 355.92 0 0 1 184 650.4a355 355 0 0 1-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z'));
exports.PullRequestOutline = getIcon('pull-request', outline, getNode(newViewBox, 'M788 705.9V192c0-8.8-7.2-16-16-16H602v-68.8c0-6-7-9.4-11.7-5.7L462.7 202.3a7.14 7.14 0 0 0 0 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V240h114v465.9c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c.1-49.2-31.7-91-75.9-106.1zM752 860a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96zM384 212c0-61.8-50.2-112-112-112s-112 50.2-112 112c0 49.2 31.8 91 76 106.1V706c-44.2 15-76 56.9-76 106.1 0 61.8 50.2 112 112 112s112-50.2 112-112c0-49.2-31.8-91-76-106.1V318.1c44.2-15.1 76-56.9 76-106.1zm-160 0a48.01 48.01 0 0 1 96 0 48.01 48.01 0 0 1-96 0zm96 600a48.01 48.01 0 0 1-96 0 48.01 48.01 0 0 1 96 0z'));
exports.QqOutline = getIcon('qq', outline, getNode(newViewBox, 'M824.8 613.2c-16-51.4-34.4-94.6-62.7-165.3C766.5 262.2 689.3 112 511.5 112 331.7 112 256.2 265.2 261 447.9c-28.4 70.8-46.7 113.7-62.7 165.3-34 109.5-23 154.8-14.6 155.8 18 2.2 70.1-82.4 70.1-82.4 0 49 25.2 112.9 79.8 159-26.4 8.1-85.7 29.9-71.6 53.8 11.4 19.3 196.2 12.3 249.5 6.3 53.3 6 238.1 13 249.5-6.3 14.1-23.8-45.3-45.7-71.6-53.8 54.6-46.2 79.8-110.1 79.8-159 0 0 52.1 84.6 70.1 82.4 8.5-1.1 19.5-46.4-14.5-155.8z'));
exports.QuestionOutline = getIcon('question', outline, getNode(newViewBox, 'M764 280.9c-14-30.6-33.9-58.1-59.3-81.6C653.1 151.4 584.6 125 512 125s-141.1 26.4-192.7 74.2c-25.4 23.6-45.3 51-59.3 81.7-14.6 32-22 65.9-22 100.9v27c0 6.2 5 11.2 11.2 11.2h54c6.2 0 11.2-5 11.2-11.2v-27c0-99.5 88.6-180.4 197.6-180.4s197.6 80.9 197.6 180.4c0 40.8-14.5 79.2-42 111.2-27.2 31.7-65.6 54.4-108.1 64-24.3 5.5-46.2 19.2-61.7 38.8a110.85 110.85 0 0 0-23.9 68.6v31.4c0 6.2 5 11.2 11.2 11.2h54c6.2 0 11.2-5 11.2-11.2v-31.4c0-15.7 10.9-29.5 26-32.9 58.4-13.2 111.4-44.7 149.3-88.7 19.1-22.3 34-47.1 44.3-74 10.7-27.9 16.1-57.2 16.1-87 0-35-7.4-69-22-100.9zM512 787c-30.9 0-56 25.1-56 56s25.1 56 56 56 56-25.1 56-56-25.1-56-56-56z'));
exports.RadarChartOutline = getIcon('radar-chart', outline, getNode(newViewBox, 'M926.8 397.1l-396-288a31.81 31.81 0 0 0-37.6 0l-396 288a31.99 31.99 0 0 0-11.6 35.8l151.3 466a32 32 0 0 0 30.4 22.1h489.5c13.9 0 26.1-8.9 30.4-22.1l151.3-466c4.2-13.2-.5-27.6-11.7-35.8zM838.6 417l-98.5 32-200-144.7V199.9L838.6 417zM466 567.2l-89.1 122.3-55.2-169.2L466 567.2zm-116.3-96.8L484 373.3v140.8l-134.3-43.7zM512 599.2l93.9 128.9H418.1L512 599.2zm28.1-225.9l134.2 97.1L540.1 514V373.3zM558 567.2l144.3-46.9-55.2 169.2L558 567.2zm-74-367.3v104.4L283.9 449l-98.5-32L484 199.9zM169.3 470.8l86.5 28.1 80.4 246.4-53.8 73.9-113.1-348.4zM327.1 853l50.3-69h269.3l50.3 69H327.1zm414.5-33.8l-53.8-73.9 80.4-246.4 86.5-28.1-113.1 348.4z'));
exports.QrcodeOutline = getIcon('qrcode', outline, getNode(newViewBox, 'M468 128H160c-17.7 0-32 14.3-32 32v308c0 4.4 3.6 8 8 8h332c4.4 0 8-3.6 8-8V136c0-4.4-3.6-8-8-8zm-56 284H192V192h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm194 210H136c-4.4 0-8 3.6-8 8v308c0 17.7 14.3 32 32 32h308c4.4 0 8-3.6 8-8V556c0-4.4-3.6-8-8-8zm-56 284H192V612h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm590-630H556c-4.4 0-8 3.6-8 8v332c0 4.4 3.6 8 8 8h332c4.4 0 8-3.6 8-8V160c0-17.7-14.3-32-32-32zm-32 284H612V192h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm194 210h-48c-4.4 0-8 3.6-8 8v134h-78V556c0-4.4-3.6-8-8-8H556c-4.4 0-8 3.6-8 8v332c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V644h78v102c0 4.4 3.6 8 8 8h190c4.4 0 8-3.6 8-8V556c0-4.4-3.6-8-8-8zM746 832h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm142 0h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z'));
exports.RadiusBottomleftOutline = getIcon('radius-bottomleft', outline, getNode(newViewBox, 'M712 824h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm2-696h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM136 374h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0-174h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm752 624h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-348 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-230 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm230 624H358c-87.3 0-158-70.7-158-158V484c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v182c0 127 103 230 230 230h182c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
exports.RadiusBottomrightOutline = getIcon('radius-bottomright', outline, getNode(newViewBox, 'M368 824h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-58-624h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm578 102h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM192 824h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm292 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm174 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm230 276h-56c-4.4 0-8 3.6-8 8v182c0 87.3-70.7 158-158 158H484c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h182c127 0 230-103 230-230V484c0-4.4-3.6-8-8-8z'));
exports.RadiusUpleftOutline = getIcon('radius-upleft', outline, getNode(newViewBox, 'M656 200h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm58 624h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM192 650h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm696-696h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-348 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-174 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm174-696H358c-127 0-230 103-230 230v182c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V358c0-87.3 70.7-158 158-158h182c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
exports.RadiusUprightOutline = getIcon('radius-upright', outline, getNode(newViewBox, 'M368 128h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-2 696h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm522-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM192 128h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm348 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm174 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-48-696H484c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h182c87.3 0 158 70.7 158 158v182c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V358c0-127-103-230-230-230z'));
exports.RadiusSettingOutline = getIcon('radius-setting', outline, getNode(newViewBox, 'M396 140h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-44 684h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm524-204h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM192 344h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 160h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 160h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 160h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm320 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm160 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm140-284c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V370c0-127-103-230-230-230H484c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h170c87.3 0 158 70.7 158 158v170zM236 96H92c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8h144c4.4 0 8-3.6 8-8V104c0-4.4-3.6-8-8-8zm-48 101.6c0 1.3-1.1 2.4-2.4 2.4h-43.2c-1.3 0-2.4-1.1-2.4-2.4v-43.2c0-1.3 1.1-2.4 2.4-2.4h43.2c1.3 0 2.4 1.1 2.4 2.4v43.2zM920 780H776c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8h144c4.4 0 8-3.6 8-8V788c0-4.4-3.6-8-8-8zm-48 101.6c0 1.3-1.1 2.4-2.4 2.4h-43.2c-1.3 0-2.4-1.1-2.4-2.4v-43.2c0-1.3 1.1-2.4 2.4-2.4h43.2c1.3 0 2.4 1.1 2.4 2.4v43.2z'));
exports.RedditOutline = getIcon('reddit', outline, getNode(newViewBox, 'M288 568a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm338.7 119.7c-23.1 18.2-68.9 37.8-114.7 37.8s-91.6-19.6-114.7-37.8c-14.4-11.3-35.3-8.9-46.7 5.5s-8.9 35.3 5.5 46.7C396.3 771.6 457.5 792 512 792s115.7-20.4 155.9-52.1a33.25 33.25 0 1 0-41.2-52.2zM960 456c0-61.9-50.1-112-112-112-42.1 0-78.7 23.2-97.9 57.6-57.6-31.5-127.7-51.8-204.1-56.5L612.9 195l127.9 36.9c11.5 32.6 42.6 56.1 79.2 56.1 46.4 0 84-37.6 84-84s-37.6-84-84-84c-32 0-59.8 17.9-74 44.2L603.5 123a33.2 33.2 0 0 0-39.6 18.4l-90.8 203.9c-74.5 5.2-142.9 25.4-199.2 56.2A111.94 111.94 0 0 0 176 344c-61.9 0-112 50.1-112 112 0 45.8 27.5 85.1 66.8 102.5-7.1 21-10.8 43-10.8 65.5 0 154.6 175.5 280 392 280s392-125.4 392-280c0-22.6-3.8-44.5-10.8-65.5C932.5 541.1 960 501.8 960 456zM820 172.5a31.5 31.5 0 1 1 0 63 31.5 31.5 0 0 1 0-63zM120 456c0-30.9 25.1-56 56-56a56 56 0 0 1 50.6 32.1c-29.3 22.2-53.5 47.8-71.5 75.9a56.23 56.23 0 0 1-35.1-52zm392 381.5c-179.8 0-325.5-95.6-325.5-213.5S332.2 410.5 512 410.5 837.5 506.1 837.5 624 691.8 837.5 512 837.5zM868.8 508c-17.9-28.1-42.2-53.7-71.5-75.9 9-18.9 28.3-32.1 50.6-32.1 30.9 0 56 25.1 56 56 .1 23.5-14.5 43.7-35.1 52zM624 568a56 56 0 1 0 112 0 56 56 0 1 0-112 0z'));
exports.RedoOutline = getIcon('redo', outline, getNode(newViewBox, 'M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 0 1-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 0 1-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 0 0-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z'));
exports.ReloadOutline = getIcon('reload', outline, getNode(newViewBox, 'M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 0 0-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 0 1 655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 0 1 279 755.2a342.16 342.16 0 0 1-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 0 1 109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z'));
exports.RetweetOutline = getIcon('retweet', outline, getNode(normalViewBox, 'M136 552h63.6c4.4 0 8-3.6 8-8V288.7h528.6v72.6c0 1.9.6 3.7 1.8 5.2a8.3 8.3 0 0 0 11.7 1.4L893 255.4c4.3-5 3.6-10.3 0-13.2L749.7 129.8a8.22 8.22 0 0 0-5.2-1.8c-4.6 0-8.4 3.8-8.4 8.4V209H199.7c-39.5 0-71.7 32.2-71.7 71.8V544c0 4.4 3.6 8 8 8zm752-80h-63.6c-4.4 0-8 3.6-8 8v255.3H287.8v-72.6c0-1.9-.6-3.7-1.8-5.2a8.3 8.3 0 0 0-11.7-1.4L131 768.6c-4.3 5-3.6 10.3 0 13.2l143.3 112.4c1.5 1.2 3.3 1.8 5.2 1.8 4.6 0 8.4-3.8 8.4-8.4V815h536.6c39.5 0 71.7-32.2 71.7-71.8V480c-.2-4.4-3.8-8-8.2-8z'));
exports.RightOutline = getIcon('right', outline, getNode(newViewBox, 'M765.7 486.8L314.9 134.7A7.97 7.97 0 0 0 302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 0 0 0-50.4z'));
exports.RiseOutline = getIcon('rise', outline, getNode(newViewBox, 'M917 211.1l-199.2 24c-6.6.8-9.4 8.9-4.7 13.6l59.3 59.3-226 226-101.8-101.7c-6.3-6.3-16.4-6.2-22.6 0L100.3 754.1a8.03 8.03 0 0 0 0 11.3l45 45.2c3.1 3.1 8.2 3.1 11.3 0L433.3 534 535 635.7c6.3 6.2 16.4 6.2 22.6 0L829 364.5l59.3 59.3a8.01 8.01 0 0 0 13.6-4.7l24-199.2c.7-5.1-3.7-9.5-8.9-8.8z'));
exports.RollbackOutline = getIcon('rollback', outline, getNode(newViewBox, 'M793 242H366v-74c0-6.7-7.7-10.4-12.9-6.3l-142 112a8 8 0 0 0 0 12.6l142 112c5.2 4.1 12.9.4 12.9-6.3v-74h415v470H175c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h618c35.3 0 64-28.7 64-64V306c0-35.3-28.7-64-64-64z'));
exports.SafetyOutline = getIcon('safety', outline, getNode(normalViewBox, 'M512 64L128 192v384c0 212.1 171.9 384 384 384s384-171.9 384-384V192L512 64zm312 512c0 172.3-139.7 312-312 312S200 748.3 200 576V246l312-110 312 110v330z', 'M378.4 475.1a35.91 35.91 0 0 0-50.9 0 35.91 35.91 0 0 0 0 50.9l129.4 129.4 2.1 2.1a33.98 33.98 0 0 0 48.1 0L730.6 434a33.98 33.98 0 0 0 0-48.1l-2.8-2.8a33.98 33.98 0 0 0-48.1 0L483 579.7 378.4 475.1z'));
exports.RobotOutline = getIcon('robot', outline, getNode(newViewBox, 'M300 328a60 60 0 1 0 120 0 60 60 0 1 0-120 0zM852 64H172c-17.7 0-32 14.3-32 32v660c0 17.7 14.3 32 32 32h680c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-32 660H204V128h616v596zM604 328a60 60 0 1 0 120 0 60 60 0 1 0-120 0zm250.2 556H169.8c-16.5 0-29.8 14.3-29.8 32v36c0 4.4 3.3 8 7.4 8h729.1c4.1 0 7.4-3.6 7.4-8v-36c.1-17.7-13.2-32-29.7-32zM664 508H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z'));
exports.SearchOutline = getIcon('search', outline, getNode(newViewBox, 'M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0 0 11.6 0l43.6-43.5a8.2 8.2 0 0 0 0-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z'));
exports.ScanOutline = getIcon('scan', outline, getNode(newViewBox, 'M136 384h56c4.4 0 8-3.6 8-8V200h176c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H196c-37.6 0-68 30.4-68 68v180c0 4.4 3.6 8 8 8zm512-184h176v176c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V196c0-37.6-30.4-68-68-68H648c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zM376 824H200V648c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v180c0 37.6 30.4 68 68 68h180c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm512-184h-56c-4.4 0-8 3.6-8 8v176H648c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h180c37.6 0 68-30.4 68-68V648c0-4.4-3.6-8-8-8zm16-164H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
exports.ScissorOutline = getIcon('scissor', outline, getNode(newViewBox, 'M567.1 512l318.5-319.3c5-5 1.5-13.7-5.6-13.7h-90.5c-2.1 0-4.2.8-5.6 2.3l-273.3 274-90.2-90.5c12.5-22.1 19.7-47.6 19.7-74.8 0-83.9-68.1-152-152-152s-152 68.1-152 152 68.1 152 152 152c27.7 0 53.6-7.4 75.9-20.3l90 90.3-90.1 90.3A151.04 151.04 0 0 0 288 582c-83.9 0-152 68.1-152 152s68.1 152 152 152 152-68.1 152-152c0-27.2-7.2-52.7-19.7-74.8l90.2-90.5 273.3 274c1.5 1.5 3.5 2.3 5.6 2.3H880c7.1 0 10.7-8.6 5.6-13.7L567.1 512zM288 370c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80zm0 444c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z'));
exports.SelectOutline = getIcon('select', outline, getNode(newViewBox, 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h360c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H184V184h656v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V144c0-17.7-14.3-32-32-32zM653.3 599.4l52.2-52.2a8.01 8.01 0 0 0-4.7-13.6l-179.4-21c-5.1-.6-9.5 3.7-8.9 8.9l21 179.4c.8 6.6 8.9 9.4 13.6 4.7l52.4-52.4 256.2 256.2c3.1 3.1 8.2 3.1 11.3 0l42.4-42.4c3.1-3.1 3.1-8.2 0-11.3L653.3 599.4z'));
exports.ShakeOutline = getIcon('shake', outline, getNode(newViewBox, 'M324 666a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm616.7-309.6L667.6 83.2C655.2 70.9 638.7 64 621.1 64s-34.1 6.8-46.5 19.2L83.3 574.5a65.85 65.85 0 0 0 0 93.1l273.2 273.2c12.3 12.3 28.9 19.2 46.5 19.2s34.1-6.8 46.5-19.2l491.3-491.3c25.6-25.7 25.6-67.5-.1-93.1zM403 880.1L143.9 621l477.2-477.2 259 259.2L403 880.1zM152.8 373.7a7.9 7.9 0 0 0 11.2 0L373.7 164a7.9 7.9 0 0 0 0-11.2l-38.4-38.4a7.9 7.9 0 0 0-11.2 0L114.3 323.9a7.9 7.9 0 0 0 0 11.2l38.5 38.6zm718.6 276.6a7.9 7.9 0 0 0-11.2 0L650.3 860.1a7.9 7.9 0 0 0 0 11.2l38.4 38.4a7.9 7.9 0 0 0 11.2 0L909.7 700a7.9 7.9 0 0 0 0-11.2l-38.3-38.5z'));
exports.ShareAltOutline = getIcon('share-alt', outline, getNode(newViewBox, 'M752 664c-28.5 0-54.8 10-75.4 26.7L469.4 540.8a160.68 160.68 0 0 0 0-57.6l207.2-149.9C697.2 350 723.5 360 752 360c66.2 0 120-53.8 120-120s-53.8-120-120-120-120 53.8-120 120c0 11.6 1.6 22.7 4.7 33.3L439.9 415.8C410.7 377.1 364.3 352 312 352c-88.4 0-160 71.6-160 160s71.6 160 160 160c52.3 0 98.7-25.1 127.9-63.8l196.8 142.5c-3.1 10.6-4.7 21.8-4.7 33.3 0 66.2 53.8 120 120 120s120-53.8 120-120-53.8-120-120-120zm0-476c28.7 0 52 23.3 52 52s-23.3 52-52 52-52-23.3-52-52 23.3-52 52-52zM312 600c-48.5 0-88-39.5-88-88s39.5-88 88-88 88 39.5 88 88-39.5 88-88 88zm440 236c-28.7 0-52-23.3-52-52s23.3-52 52-52 52 23.3 52 52-23.3 52-52 52z'));
exports.ShoppingCartOutline = getIcon('shopping-cart', outline, getNode(normalViewBox, 'M922.9 701.9H327.4l29.9-60.9 496.8-.9c16.8 0 31.2-12 34.2-28.6l68.8-385.1c1.8-10.1-.9-20.5-7.5-28.4a34.99 34.99 0 0 0-26.6-12.5l-632-2.1-5.4-25.4c-3.4-16.2-18-28-34.6-28H96.5a35.3 35.3 0 1 0 0 70.6h125.9L246 312.8l58.1 281.3-74.8 122.1a34.96 34.96 0 0 0-3 36.8c6 11.9 18.1 19.4 31.5 19.4h62.8a102.43 102.43 0 0 0-20.6 61.7c0 56.6 46 102.6 102.6 102.6s102.6-46 102.6-102.6c0-22.3-7.4-44-20.6-61.7h161.1a102.43 102.43 0 0 0-20.6 61.7c0 56.6 46 102.6 102.6 102.6s102.6-46 102.6-102.6c0-22.3-7.4-44-20.6-61.7H923c19.4 0 35.3-15.8 35.3-35.3a35.42 35.42 0 0 0-35.4-35.2zM305.7 253l575.8 1.9-56.4 315.8-452.3.8L305.7 253zm96.9 612.7c-17.4 0-31.6-14.2-31.6-31.6 0-17.4 14.2-31.6 31.6-31.6s31.6 14.2 31.6 31.6a31.6 31.6 0 0 1-31.6 31.6zm325.1 0c-17.4 0-31.6-14.2-31.6-31.6 0-17.4 14.2-31.6 31.6-31.6s31.6 14.2 31.6 31.6a31.6 31.6 0 0 1-31.6 31.6z'));
exports.ShrinkOutline = getIcon('shrink', outline, getNode(newViewBox, 'M881.7 187.4l-45.1-45.1a8.03 8.03 0 0 0-11.3 0L667.8 299.9l-54.7-54.7a7.94 7.94 0 0 0-13.5 4.7L576.1 439c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 157.6-157.6c3-3 3-8.1-.1-11.2zM439 576.1l-189.2 23.5c-6.6.8-9.3 8.9-4.7 13.5l54.7 54.7-157.5 157.5a8.03 8.03 0 0 0 0 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l157.6-157.6 54.7 54.7a7.94 7.94 0 0 0 13.5-4.7L447.9 585a7.9 7.9 0 0 0-8.9-8.9z'));
exports.SlackOutline = getIcon('slack', outline, getNode(newViewBox, 'M409.4 128c-42.4 0-76.7 34.4-76.7 76.8 0 20.3 8.1 39.9 22.4 54.3a76.74 76.74 0 0 0 54.3 22.5h76.7v-76.8c0-42.3-34.3-76.7-76.7-76.8zm0 204.8H204.7c-42.4 0-76.7 34.4-76.7 76.8s34.4 76.8 76.7 76.8h204.6c42.4 0 76.7-34.4 76.7-76.8.1-42.4-34.3-76.8-76.6-76.8zM614 486.4c42.4 0 76.8-34.4 76.7-76.8V204.8c0-42.4-34.3-76.8-76.7-76.8-42.4 0-76.7 34.4-76.7 76.8v204.8c0 42.5 34.3 76.8 76.7 76.8zm281.4-76.8c0-42.4-34.4-76.8-76.7-76.8S742 367.2 742 409.6v76.8h76.7c42.3 0 76.7-34.4 76.7-76.8zm-76.8 128H614c-42.4 0-76.7 34.4-76.7 76.8 0 20.3 8.1 39.9 22.4 54.3a76.74 76.74 0 0 0 54.3 22.5h204.6c42.4 0 76.7-34.4 76.7-76.8.1-42.4-34.3-76.7-76.7-76.8zM614 742.4h-76.7v76.8c0 42.4 34.4 76.8 76.7 76.8 42.4 0 76.8-34.4 76.7-76.8.1-42.4-34.3-76.7-76.7-76.8zM409.4 537.6c-42.4 0-76.7 34.4-76.7 76.8v204.8c0 42.4 34.4 76.8 76.7 76.8 42.4 0 76.8-34.4 76.7-76.8V614.4c0-20.3-8.1-39.9-22.4-54.3a76.92 76.92 0 0 0-54.3-22.5zM128 614.4c0 20.3 8.1 39.9 22.4 54.3a76.74 76.74 0 0 0 54.3 22.5c42.4 0 76.8-34.4 76.7-76.8v-76.8h-76.7c-42.3 0-76.7 34.4-76.7 76.8z'));
exports.SmallDashOutline = getIcon('small-dash', outline, getNode(newViewBox, 'M112 476h72v72h-72zm182 0h72v72h-72zm364 0h72v72h-72zm182 0h72v72h-72zm-364 0h72v72h-72z'));
exports.SolutionOutline = getIcon('solution', outline, getNode(newViewBox, 'M688 264c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48zm-8 136H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM480 544H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 308H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm356.8-74.4c29-26.3 47.2-64.3 47.2-106.6 0-79.5-64.5-144-144-144s-144 64.5-144 144c0 42.3 18.2 80.3 47.2 106.6-57 32.5-96.2 92.7-99.2 162.1-.2 4.5 3.5 8.3 8 8.3h48.1c4.2 0 7.7-3.3 8-7.6C564 871.2 621.7 816 692 816s128 55.2 131.9 124.4c.2 4.2 3.7 7.6 8 7.6H880c4.6 0 8.2-3.8 8-8.3-2.9-69.5-42.2-129.6-99.2-162.1zM692 591c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z'));
exports.SketchOutline = getIcon('sketch', outline, getNode(newViewBox, 'M925.6 405.1l-203-253.7a6.5 6.5 0 0 0-5-2.4H306.4c-1.9 0-3.8.9-5 2.4l-203 253.7a6.5 6.5 0 0 0 .2 8.3l408.6 459.5c1.2 1.4 3 2.1 4.8 2.1 1.8 0 3.5-.8 4.8-2.1l408.6-459.5a6.5 6.5 0 0 0 .2-8.3zM645.2 206.4l34.4 133.9-132.5-133.9h98.1zm8.2 178.5H370.6L512 242l141.4 142.9zM378.8 206.4h98.1L344.3 340.3l34.5-133.9zm-53.4 7l-44.1 171.5h-93.1l137.2-171.5zM194.6 434.9H289l125.8 247.7-220.2-247.7zM512 763.4L345.1 434.9h333.7L512 763.4zm97.1-80.8L735 434.9h94.4L609.1 682.6zm133.6-297.7l-44.1-171.5 137.2 171.5h-93.1z'));
exports.SortDescendingOutline = getIcon('sort-descending', outline, getNode(newViewBox, 'M839.6 433.8L749 150.5a9.24 9.24 0 0 0-8.9-6.5h-77.4c-4.1 0-7.6 2.6-8.9 6.5l-91.3 283.3c-.3.9-.5 1.9-.5 2.9 0 5.1 4.2 9.3 9.3 9.3h56.4c4.2 0 7.8-2.8 9-6.8l17.5-61.6h89l17.3 61.5c1.1 4 4.8 6.8 9 6.8h61.2c1 0 1.9-.1 2.8-.4 2.4-.8 4.3-2.4 5.5-4.6 1.1-2.2 1.3-4.7.6-7.1zM663.3 325.5l32.8-116.9h6.3l32.1 116.9h-71.2zm143.5 492.9H677.2v-.4l132.6-188.9c1.1-1.6 1.7-3.4 1.7-5.4v-36.4c0-5.1-4.2-9.3-9.3-9.3h-204c-5.1 0-9.3 4.2-9.3 9.3v43c0 5.1 4.2 9.3 9.3 9.3h122.6v.4L587.7 828.9a9.35 9.35 0 0 0-1.7 5.4v36.4c0 5.1 4.2 9.3 9.3 9.3h211.4c5.1 0 9.3-4.2 9.3-9.3v-43a9.2 9.2 0 0 0-9.2-9.3zM310.3 167.1a8 8 0 0 0-12.6 0L185.7 309c-4.2 5.3-.4 13 6.3 13h76v530c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V322h76c6.7 0 10.5-7.8 6.3-13l-112-141.9z'));
exports.SortAscendingOutline = getIcon('sort-ascending', outline, getNode(newViewBox, 'M839.6 433.8L749 150.5a9.24 9.24 0 0 0-8.9-6.5h-77.4c-4.1 0-7.6 2.6-8.9 6.5l-91.3 283.3c-.3.9-.5 1.9-.5 2.9 0 5.1 4.2 9.3 9.3 9.3h56.4c4.2 0 7.8-2.8 9-6.8l17.5-61.6h89l17.3 61.5c1.1 4 4.8 6.8 9 6.8h61.2c1 0 1.9-.1 2.8-.4 2.4-.8 4.3-2.4 5.5-4.6 1.1-2.2 1.3-4.7.6-7.1zM663.3 325.5l32.8-116.9h6.3l32.1 116.9h-71.2zm143.5 492.9H677.2v-.4l132.6-188.9c1.1-1.6 1.7-3.4 1.7-5.4v-36.4c0-5.1-4.2-9.3-9.3-9.3h-204c-5.1 0-9.3 4.2-9.3 9.3v43c0 5.1 4.2 9.3 9.3 9.3h122.6v.4L587.7 828.9a9.35 9.35 0 0 0-1.7 5.4v36.4c0 5.1 4.2 9.3 9.3 9.3h211.4c5.1 0 9.3-4.2 9.3-9.3v-43a9.2 9.2 0 0 0-9.2-9.3zM416 702h-76V172c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v530h-76c-6.7 0-10.5 7.8-6.3 13l112 141.9a8 8 0 0 0 12.6 0l112-141.9c4.1-5.2.4-13-6.3-13z'));
exports.StockOutline = getIcon('stock', outline, getNode(newViewBox, 'M904 747H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM165.7 621.8l39.7 39.5c3.1 3.1 8.2 3.1 11.3 0l234.7-233.9 97.6 97.3a32.11 32.11 0 0 0 45.2 0l264.2-263.2c3.1-3.1 3.1-8.2 0-11.3l-39.7-39.6a8.03 8.03 0 0 0-11.3 0l-235.7 235-97.7-97.3a32.11 32.11 0 0 0-45.2 0L165.7 610.5a7.94 7.94 0 0 0 0 11.3z'));
exports.SwapLeftOutline = getIcon('swap-left', outline, getNode(normalViewBox, 'M872 572H266.8l144.3-183c4.1-5.2.4-13-6.3-13H340c-9.8 0-19.1 4.5-25.1 12.2l-164 208c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z'));
exports.SwapRightOutline = getIcon('swap-right', outline, getNode(normalViewBox, 'M873.1 596.2l-164-208A32 32 0 0 0 684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z'));
exports.StrikethroughOutline = getIcon('strikethrough', outline, getNode(newViewBox, 'M952 474H569.9c-10-2-20.5-4-31.6-6-15.9-2.9-22.2-4.1-30.8-5.8-51.3-10-82.2-20-106.8-34.2-35.1-20.5-52.2-48.3-52.2-85.1 0-37 15.2-67.7 44-89 28.4-21 68.8-32.1 116.8-32.1 54.8 0 97.1 14.4 125.8 42.8 14.6 14.4 25.3 32.1 31.8 52.6 1.3 4.1 2.8 10 4.3 17.8.9 4.8 5.2 8.2 9.9 8.2h72.8c5.6 0 10.1-4.6 10.1-10.1v-1c-.7-6.8-1.3-12.1-2-16-7.3-43.5-28-81.7-59.7-110.3-44.4-40.5-109.7-61.8-188.7-61.8-72.3 0-137.4 18.1-183.3 50.9-25.6 18.4-45.4 41.2-58.6 67.7-13.5 27.1-20.3 58.4-20.3 92.9 0 29.5 5.7 54.5 17.3 76.5 8.3 15.7 19.6 29.5 34.1 42H72c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h433.2c2.1.4 3.9.8 5.9 1.2 30.9 6.2 49.5 10.4 66.6 15.2 23 6.5 40.6 13.3 55.2 21.5 35.8 20.2 53.3 49.2 53.3 89 0 35.3-15.5 66.8-43.6 88.8-30.5 23.9-75.6 36.4-130.5 36.4-43.7 0-80.7-8.5-110.2-25-29.1-16.3-49.1-39.8-59.7-69.5-.8-2.2-1.7-5.2-2.7-9-1.2-4.4-5.3-7.5-9.7-7.5h-79.7c-5.6 0-10.1 4.6-10.1 10.1v1c.2 2.3.4 4.2.6 5.7 6.5 48.8 30.3 88.8 70.7 118.8 47.1 34.8 113.4 53.2 191.8 53.2 84.2 0 154.8-19.8 204.2-57.3 25-18.9 44.2-42.2 57.1-69 13-27.1 19.7-57.9 19.7-91.5 0-31.8-5.8-58.4-17.8-81.4-5.8-11.2-13.1-21.5-21.8-30.8H952c4.4 0 8-3.6 8-8v-60a8 8 0 0 0-8-7.9z'));
exports.SwapOutline = getIcon('swap', outline, getNode(newViewBox, 'M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z'));
exports.SyncOutline = getIcon('sync', outline, getNode(newViewBox, 'M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 0 1 755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 0 0 3 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 0 1 512.1 856a342.24 342.24 0 0 1-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 0 0-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 0 0-8-8.2z'));
exports.TableOutline = getIcon('table', outline, getNode(newViewBox, 'M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 208H676V232h212v136zm0 224H676V432h212v160zM412 432h200v160H412V432zm200-64H412V232h200v136zm-476 64h212v160H136V432zm0-200h212v136H136V232zm0 424h212v136H136V656zm276 0h200v136H412V656zm476 136H676V656h212v136z'));
exports.TeamOutline = getIcon('team', outline, getNode(newViewBox, 'M824.2 699.9a301.55 301.55 0 0 0-86.4-60.4C783.1 602.8 812 546.8 812 484c0-110.8-92.4-201.7-203.2-200-109.1 1.7-197 90.6-197 200 0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 0 0-86.4 60.4C345 754.6 314 826.8 312 903.8a8 8 0 0 0 8 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5A226.62 226.62 0 0 1 612 684c60.9 0 118.2 23.7 161.3 66.8C814.5 792 838 846.3 840 904.3c.1 4.3 3.7 7.7 8 7.7h56a8 8 0 0 0 8-8.2c-2-77-33-149.2-87.8-203.9zM612 612c-34.2 0-66.4-13.3-90.5-37.5a126.86 126.86 0 0 1-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4 0 34.2-13.3 66.3-37.5 90.5A127.3 127.3 0 0 1 612 612zM361.5 510.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 0 1-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.9-1.7-203.3 89.2-203.3 199.9 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 0 0 8 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.9-1 6.5-4.7 6-8.7z'));
exports.TaobaoOutline = getIcon('taobao', outline, getNode(newViewBox, 'M168.5 273.7a68.7 68.7 0 1 0 137.4 0 68.7 68.7 0 1 0-137.4 0zm730 79.2s-23.7-184.4-426.9-70.1c17.3-30 25.6-49.5 25.6-49.5L396.4 205s-40.6 132.6-113 194.4c0 0 70.1 40.6 69.4 39.4 20.1-20.1 38.2-40.6 53.7-60.4 16.1-7 31.5-13.6 46.7-19.8-18.6 33.5-48.7 83.8-78.8 115.6l42.4 37s28.8-27.7 60.4-61.2h36v61.8H372.9v49.5h140.3v118.5c-1.7 0-3.6 0-5.4-.2-15.4-.7-39.5-3.3-49-18.2-11.5-18.1-3-51.5-2.4-71.9h-97l-3.4 1.8s-35.5 159.1 102.3 155.5c129.1 3.6 203-36 238.6-63.1l14.2 52.6 79.6-33.2-53.9-131.9-64.6 20.1 12.1 45.2c-16.6 12.4-35.6 21.7-56.2 28.4V561.3h137.1v-49.5H628.1V450h137.6v-49.5H521.3c17.6-21.4 31.5-41.1 35-53.6l-42.5-11.6c182.8-65.5 284.5-54.2 283.6 53.2v282.8s10.8 97.1-100.4 90.1l-60.2-12.9-14.2 57.1S882.5 880 903.7 680.2c21.3-200-5.2-327.3-5.2-327.3zm-707.4 18.3l-45.4 69.7 83.6 52.1s56 28.5 29.4 81.9C233.8 625.5 112 736.3 112 736.3l109 68.1c75.4-163.7 70.5-142 89.5-200.7 19.5-60.1 23.7-105.9-9.4-139.1-42.4-42.6-47-46.6-110-93.4z'));
exports.ToTopOutline = getIcon('to-top', outline, getNode(newViewBox, 'M885 780H165c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM400 325.7h73.9V664c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V325.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 171a8 8 0 0 0-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13z'));
exports.TrademarkOutline = getIcon('trademark', outline, getNode(newViewBox, 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm87.5-334.7c34.8-12.8 78.4-49 78.4-119.2 0-71.2-45.5-131.1-144.2-131.1H378c-4.4 0-8 3.6-8 8v410c0 4.4 3.6 8 8 8h54.5c4.4 0 8-3.6 8-8V561.2h88.7l74.6 159.2c1.3 2.8 4.1 4.6 7.2 4.6h62a7.9 7.9 0 0 0 7.1-11.5l-80.6-164.2zM522 505h-81.5V357h83.4c48 0 80.9 25.3 80.9 75.5 0 46.9-29.8 72.5-82.8 72.5z'));
exports.TransactionOutline = getIcon('transaction', outline, getNode(newViewBox, 'M668.6 320c0-4.4-3.6-8-8-8h-54.5c-3 0-5.8 1.7-7.1 4.4l-84.7 168.8H511l-84.7-168.8a8 8 0 0 0-7.1-4.4h-55.7c-1.3 0-2.6.3-3.8 1-3.9 2.1-5.3 7-3.2 10.8l103.9 191.6h-57c-4.4 0-8 3.6-8 8v27.1c0 4.4 3.6 8 8 8h76v39h-76c-4.4 0-8 3.6-8 8v27.1c0 4.4 3.6 8 8 8h76V704c0 4.4 3.6 8 8 8h49.9c4.4 0 8-3.6 8-8v-63.5h76.3c4.4 0 8-3.6 8-8v-27.1c0-4.4-3.6-8-8-8h-76.3v-39h76.3c4.4 0 8-3.6 8-8v-27.1c0-4.4-3.6-8-8-8H564l103.7-191.6c.5-1.1.9-2.4.9-3.7zM157.9 504.2a352.7 352.7 0 0 1 103.5-242.4c32.5-32.5 70.3-58.1 112.4-75.9 43.6-18.4 89.9-27.8 137.6-27.8 47.8 0 94.1 9.3 137.6 27.8 42.1 17.8 79.9 43.4 112.4 75.9 10 10 19.3 20.5 27.9 31.4l-50 39.1a8 8 0 0 0 3 14.1l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3l-47.8 37.4C770.7 146.3 648.6 82 511.5 82 277 82 86.3 270.1 82 503.8a8 8 0 0 0 8 8.2h60c4.3 0 7.8-3.5 7.9-7.8zM934 512h-60c-4.3 0-7.9 3.5-8 7.8a352.7 352.7 0 0 1-103.5 242.4 352.57 352.57 0 0 1-112.4 75.9c-43.6 18.4-89.9 27.8-137.6 27.8s-94.1-9.3-137.6-27.8a352.57 352.57 0 0 1-112.4-75.9c-10-10-19.3-20.5-27.9-31.4l49.9-39.1a8 8 0 0 0-3-14.1l-156.8-38.3c-5-1.2-9.9 2.6-9.9 7.7l-.8 161.7c0 6.7 7.7 10.5 12.9 6.3l47.8-37.4C253.3 877.7 375.4 942 512.5 942 747 942 937.7 753.9 942 520.2a8 8 0 0 0-8-8.2z'));
exports.TwitterOutline = getIcon('twitter', outline, getNode(newViewBox, 'M928 254.3c-30.6 13.2-63.9 22.7-98.2 26.4a170.1 170.1 0 0 0 75-94 336.64 336.64 0 0 1-108.2 41.2A170.1 170.1 0 0 0 672 174c-94.5 0-170.5 76.6-170.5 170.6 0 13.2 1.6 26.4 4.2 39.1-141.5-7.4-267.7-75-351.6-178.5a169.32 169.32 0 0 0-23.2 86.1c0 59.2 30.1 111.4 76 142.1a172 172 0 0 1-77.1-21.7v2.1c0 82.9 58.6 151.6 136.7 167.4a180.6 180.6 0 0 1-44.9 5.8c-11.1 0-21.6-1.1-32.2-2.6C211 652 273.9 701.1 348.8 702.7c-58.6 45.9-132 72.9-211.7 72.9-14.3 0-27.5-.5-41.2-2.1C171.5 822 261.2 850 357.8 850 671.4 850 843 590.2 843 364.7c0-7.4 0-14.8-.5-22.2 33.2-24.3 62.3-54.4 85.5-88.2z'));
exports.UnderlineOutline = getIcon('underline', outline, getNode(newViewBox, 'M824 804H200c-4.4 0-8 3.4-8 7.6v60.8c0 4.2 3.6 7.6 8 7.6h624c4.4 0 8-3.4 8-7.6v-60.8c0-4.2-3.6-7.6-8-7.6zm-312-76c69.4 0 134.6-27.1 183.8-76.2C745 602.7 772 537.4 772 468V156c0-6.6-5.4-12-12-12h-60c-6.6 0-12 5.4-12 12v312c0 97-79 176-176 176s-176-79-176-176V156c0-6.6-5.4-12-12-12h-60c-6.6 0-12 5.4-12 12v312c0 69.4 27.1 134.6 76.2 183.8C377.3 701 442.6 728 512 728z'));
exports.UndoOutline = getIcon('undo', outline, getNode(newViewBox, 'M511.4 124C290.5 124.3 112 303 112 523.9c0 128 60.2 242 153.8 315.2l-37.5 48c-4.1 5.3-.3 13 6.3 12.9l167-.8c5.2 0 9-4.9 7.7-9.9L369.8 727a8 8 0 0 0-14.1-3L315 776.1c-10.2-8-20-16.7-29.3-26a318.64 318.64 0 0 1-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 0 1-68.6 101.7c-7.5 7.5-15.3 14.5-23.4 21.2a7.93 7.93 0 0 0-1.2 11.1l39.4 50.5c2.8 3.5 7.9 4.1 11.4 1.3C854.5 760.8 912 649.1 912 523.9c0-221.1-179.4-400.2-400.6-399.9z'));
exports.UnorderedListOutline = getIcon('unordered-list', outline, getNode(newViewBox, 'M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm0 284a56 56 0 1 0 112 0 56 56 0 1 0-112 0zm0 284a56 56 0 1 0 112 0 56 56 0 1 0-112 0z'));
exports.UpOutline = getIcon('up', outline, getNode(newViewBox, 'M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 0 0 140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z'));
exports.UploadOutline = getIcon('upload', outline, getNode(newViewBox, 'M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 0 0-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z'));
exports.UserAddOutline = getIcon('user-add', outline, getNode(newViewBox, 'M678.3 642.4c24.2-13 51.9-20.4 81.4-20.4h.1c3 0 4.4-3.6 2.2-5.6a371.67 371.67 0 0 0-103.7-65.8c-.4-.2-.8-.3-1.2-.5C719.2 505 759.6 431.7 759.6 349c0-137-110.8-248-247.5-248S264.7 212 264.7 349c0 82.7 40.4 156 102.6 201.1-.4.2-.8.3-1.2.5-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 0 0-80.4 119.5A373.6 373.6 0 0 0 137 888.8a8 8 0 0 0 8 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C357 628.2 432.2 597 512.2 597c56.7 0 111.1 15.7 158 45.1a8.1 8.1 0 0 0 8.1.3zM512.2 521c-45.8 0-88.9-17.9-121.4-50.4A171.2 171.2 0 0 1 340.5 349c0-45.9 17.9-89.1 50.3-121.6S466.3 177 512.2 177s88.9 17.9 121.4 50.4A171.2 171.2 0 0 1 683.9 349c0 45.9-17.9 89.1-50.3 121.6C601.1 503.1 558 521 512.2 521zM880 759h-84v-84c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v84h-84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h84v84c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-84h84c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
exports.UsergroupAddOutline = getIcon('usergroup-add', outline, getNode(newViewBox, 'M892 772h-80v-80c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v80h-80c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h80v80c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-80h80c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM373.5 498.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 0 1-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.8-1.7-203.2 89.2-203.2 200 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 0 0 8 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.8-1.1 6.4-4.8 5.9-8.8zM824 472c0-109.4-87.9-198.3-196.9-200C516.3 270.3 424 361.2 424 472c0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 0 0-86.4 60.4C357 742.6 326 814.8 324 891.8a8 8 0 0 0 8 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5C505.8 695.7 563 672 624 672c110.4 0 200-89.5 200-200zm-109.5 90.5C690.3 586.7 658.2 600 624 600s-66.3-13.3-90.5-37.5a127.26 127.26 0 0 1-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4-.1 34.2-13.4 66.3-37.6 90.5z'));
exports.UserOutline = getIcon('user', outline, getNode(newViewBox, 'M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z'));
exports.UserDeleteOutline = getIcon('user-delete', outline, getNode(newViewBox, 'M678.3 655.4c24.2-13 51.9-20.4 81.4-20.4h.1c3 0 4.4-3.6 2.2-5.6a371.67 371.67 0 0 0-103.7-65.8c-.4-.2-.8-.3-1.2-.5C719.2 518 759.6 444.7 759.6 362c0-137-110.8-248-247.5-248S264.7 225 264.7 362c0 82.7 40.4 156 102.6 201.1-.4.2-.8.3-1.2.5-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 0 0-80.4 119.5A373.6 373.6 0 0 0 137 901.8a8 8 0 0 0 8 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C357 641.2 432.2 610 512.2 610c56.7 0 111.1 15.7 158 45.1a8.1 8.1 0 0 0 8.1.3zM512.2 534c-45.8 0-88.9-17.9-121.4-50.4A171.2 171.2 0 0 1 340.5 362c0-45.9 17.9-89.1 50.3-121.6S466.3 190 512.2 190s88.9 17.9 121.4 50.4A171.2 171.2 0 0 1 683.9 362c0 45.9-17.9 89.1-50.3 121.6C601.1 516.1 558 534 512.2 534zM880 772H640c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h240c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z'));
exports.UsergroupDeleteOutline = getIcon('usergroup-delete', outline, getNode(newViewBox, 'M888 784H664c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h224c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM373.5 510.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 0 1-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.9-1.7-203.3 89.2-203.3 199.9 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 0 0 8 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.9-1 6.5-4.7 6-8.7zM824 484c0-109.4-87.9-198.3-196.9-200C516.3 282.3 424 373.2 424 484c0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 0 0-86.4 60.4C357 754.6 326 826.8 324 903.8a8 8 0 0 0 8 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5C505.8 707.7 563 684 624 684c110.4 0 200-89.5 200-200zm-109.5 90.5C690.3 598.7 658.2 612 624 612s-66.3-13.3-90.5-37.5a127.26 127.26 0 0 1-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4-.1 34.2-13.4 66.3-37.6 90.5z'));
exports.VerticalAlignBottomOutline = getIcon('vertical-align-bottom', outline, getNode(newViewBox, 'M859.9 780H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM505.7 669a8 8 0 0 0 12.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V176c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8z'));
exports.VerticalAlignMiddleOutline = getIcon('vertical-align-middle', outline, getNode(newViewBox, 'M859.9 474H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zm-353.6-74.7c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H550V104c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v156h-62.8c-6 0-9.4 7-5.7 11.7l100.8 127.6zm11.4 225.4a7.14 7.14 0 0 0-11.3 0L405.6 752.3a7.23 7.23 0 0 0 5.7 11.7H474v156c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V764h62.8c6 0 9.4-7 5.7-11.7L517.7 624.7z'));
exports.VerticalAlignTopOutline = getIcon('vertical-align-top', outline, getNode(newViewBox, 'M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 0 0-12.6 0l-112 141.7a7.98 7.98 0 0 0 6.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z'));
exports.VerticalRightOutline = getIcon('vertical-right', outline, getNode(newViewBox, 'M326 164h-64c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V172c0-4.4-3.6-8-8-8zm444 72.4V164c0-6.8-7.9-10.5-13.1-6.1L335 512l421.9 354.1c5.2 4.4 13.1.7 13.1-6.1v-72.4c0-9.4-4.2-18.4-11.4-24.5L459.4 512l299.2-251.1c7.2-6.1 11.4-15.1 11.4-24.5z'));
exports.VerticalLeftOutline = getIcon('vertical-left', outline, getNode(newViewBox, 'M762 164h-64c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V172c0-4.4-3.6-8-8-8zm-508 0v72.4c0 9.5 4.2 18.4 11.4 24.5L564.6 512 265.4 763.1c-7.2 6.1-11.4 15-11.4 24.5V860c0 6.8 7.9 10.5 13.1 6.1L689 512 267.1 157.9A7.95 7.95 0 0 0 254 164z'));
exports.WifiOutline = getIcon('wifi', outline, getNode(newViewBox, 'M723 620.5C666.8 571.6 593.4 542 513 542s-153.8 29.6-210.1 78.6a8.1 8.1 0 0 0-.8 11.2l36 42.9c2.9 3.4 8 3.8 11.4.9C393.1 637.2 450.3 614 513 614s119.9 23.2 163.5 61.5c3.4 2.9 8.5 2.5 11.4-.9l36-42.9c2.8-3.3 2.4-8.3-.9-11.2zm117.4-140.1C751.7 406.5 637.6 362 513 362s-238.7 44.5-327.5 118.4a8.05 8.05 0 0 0-1 11.3l36 42.9c2.8 3.4 7.9 3.8 11.2 1C308 472.2 406.1 434 513 434s205 38.2 281.2 101.6c3.4 2.8 8.4 2.4 11.2-1l36-42.9c2.8-3.4 2.4-8.5-1-11.3zm116.7-139C835.7 241.8 680.3 182 511 182c-168.2 0-322.6 59-443.7 157.4a8 8 0 0 0-1.1 11.4l36 42.9c2.8 3.3 7.8 3.8 11.1 1.1C222 306.7 360.3 254 511 254c151.8 0 291 53.5 400 142.7 3.4 2.8 8.4 2.3 11.2-1.1l36-42.9c2.9-3.4 2.4-8.5-1.1-11.3zM448 778a64 64 0 1 0 128 0 64 64 0 1 0-128 0z'));
exports.ZhihuOutline = getIcon('zhihu', outline, getNode(newViewBox, 'M564.7 230.1V803h60l25.2 71.4L756.3 803h131.5V230.1H564.7zm247.7 497h-59.9l-75.1 50.4-17.8-50.4h-18V308.3h170.7v418.8zM526.1 486.9H393.3c2.1-44.9 4.3-104.3 6.6-172.9h130.9l-.1-8.1c0-.6-.2-14.7-2.3-29.1-2.1-15-6.6-34.9-21-34.9H287.8c4.4-20.6 15.7-69.7 29.4-93.8l6.4-11.2-12.9-.7c-.8 0-19.6-.9-41.4 10.6-35.7 19-51.7 56.4-58.7 84.4-18.4 73.1-44.6 123.9-55.7 145.6-3.3 6.4-5.3 10.2-6.2 12.8-1.8 4.9-.8 9.8 2.8 13 10.5 9.5 38.2-2.9 38.5-3 .6-.3 1.3-.6 2.2-1 13.9-6.3 55.1-25 69.8-84.5h56.7c.7 32.2 3.1 138.4 2.9 172.9h-141l-2.1 1.5c-23.1 16.9-30.5 63.2-30.8 65.2l-1.4 9.2h167c-12.3 78.3-26.5 113.4-34 127.4-3.7 7-7.3 14-10.7 20.8-21.3 42.2-43.4 85.8-126.3 153.6-3.6 2.8-7 8-4.8 13.7 2.4 6.3 9.3 9.1 24.6 9.1 5.4 0 11.8-.3 19.4-1 49.9-4.4 100.8-18 135.1-87.6 17-35.1 31.7-71.7 43.9-108.9L497 850l5-12c.8-1.9 19-46.3 5.1-95.9l-.5-1.8-108.1-123-22 16.6c6.4-26.1 10.6-49.9 12.5-71.1h158.7v-8c0-40.1-18.5-63.9-19.2-64.9l-2.4-3z'));
exports.WeiboOutline = getIcon('weibo', outline, getNode(newViewBox, 'M457.3 543c-68.1-17.7-145 16.2-174.6 76.2-30.1 61.2-1 129.1 67.8 151.3 71.2 23 155.2-12.2 184.4-78.3 28.7-64.6-7.2-131-77.6-149.2zm-52 156.2c-13.8 22.1-43.5 31.7-65.8 21.6-22-10-28.5-35.7-14.6-57.2 13.7-21.4 42.3-31 64.4-21.7 22.4 9.5 29.6 35 16 57.3zm45.5-58.5c-5 8.6-16.1 12.7-24.7 9.1-8.5-3.5-11.2-13.1-6.4-21.5 5-8.4 15.6-12.4 24.1-9.1 8.7 3.2 11.8 12.9 7 21.5zm334.5-197.2c15 4.8 31-3.4 35.9-18.3 11.8-36.6 4.4-78.4-23.2-109a111.39 111.39 0 0 0-106-34.3 28.45 28.45 0 0 0-21.9 33.8 28.39 28.39 0 0 0 33.8 21.8c18.4-3.9 38.3 1.8 51.9 16.7a54.2 54.2 0 0 1 11.3 53.3 28.45 28.45 0 0 0 18.2 36zm99.8-206c-56.7-62.9-140.4-86.9-217.7-70.5a32.98 32.98 0 0 0-25.4 39.3 33.12 33.12 0 0 0 39.3 25.5c55-11.7 114.4 5.4 154.8 50.1 40.3 44.7 51.2 105.7 34 159.1-5.6 17.4 3.9 36 21.3 41.7 17.4 5.6 36-3.9 41.6-21.2v-.1c24.1-75.4 8.9-161.1-47.9-223.9zM729 499c-12.2-3.6-20.5-6.1-14.1-22.1 13.8-34.7 15.2-64.7.3-86-28-40.1-104.8-37.9-192.8-1.1 0 0-27.6 12.1-20.6-9.8 13.5-43.5 11.5-79.9-9.6-101-47.7-47.8-174.6 1.8-283.5 110.6C127.3 471.1 80 557.5 80 632.2 80 775.1 263.2 862 442.5 862c235 0 391.3-136.5 391.3-245 0-65.5-55.2-102.6-104.8-118zM443 810.8c-143 14.1-266.5-50.5-275.8-144.5-9.3-93.9 99.2-181.5 242.2-195.6 143-14.2 266.5 50.5 275.8 144.4C694.4 709 586 796.6 443 810.8z'));
exports.WomanOutline = getIcon('woman', outline, getNode(newViewBox, 'M712.8 548.8c53.6-53.6 83.2-125 83.2-200.8 0-75.9-29.5-147.2-83.2-200.8C659.2 93.6 587.8 64 512 64s-147.2 29.5-200.8 83.2C257.6 200.9 228 272.1 228 348c0 63.8 20.9 124.4 59.4 173.9 7.3 9.4 15.2 18.3 23.7 26.9 8.5 8.5 17.5 16.4 26.8 23.7 39.6 30.8 86.3 50.4 136.1 57V736H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h114v140c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V812h114c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8H550V629.5c61.5-8.2 118.2-36.1 162.8-80.7zM512 556c-55.6 0-107.7-21.6-147.1-60.9C325.6 455.8 304 403.6 304 348s21.6-107.7 60.9-147.1C404.2 161.5 456.4 140 512 140s107.7 21.6 147.1 60.9C698.4 240.2 720 292.4 720 348s-21.6 107.7-60.9 147.1C619.7 534.4 567.6 556 512 556z'));
exports.ZoomInOutline = getIcon('zoom-in', outline, getNode(newViewBox, 'M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z'));
exports.AccountBookTwoTone = getIcon('account-book', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M712 304c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H384v48c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H184v584h656V256H712v48zm-65.6 121.8l-89.3 164.1h49.1c4.4 0 8 3.6 8 8v21.3c0 4.4-3.6 8-8 8h-65.4v33.7h65.4c4.4 0 8 3.6 8 8v21.3c0 4.4-3.6 8-8 8h-65.4V752c0 4.4-3.6 8-8 8h-41.3c-4.4 0-8-3.6-8-8v-53.8h-65.1c-4.4 0-8-3.6-8-8v-21.3c0-4.4 3.6-8 8-8h65.1v-33.7h-65.1c-4.4 0-8-3.6-8-8v-21.3c0-4.4 3.6-8 8-8H467l-89.3-164c-2.1-3.9-.7-8.8 3.2-10.9 1.1-.7 2.5-1 3.8-1h46a8 8 0 0 1 7.1 4.4l73.4 145.4h2.8l73.4-145.4c1.3-2.7 4.1-4.4 7.1-4.4h45c4.5 0 8 3.6 7.9 8 0 1.3-.4 2.6-1 3.8z'
], [
primaryColor,
'M639.5 414h-45c-3 0-5.8 1.7-7.1 4.4L514 563.8h-2.8l-73.4-145.4a8 8 0 0 0-7.1-4.4h-46c-1.3 0-2.7.3-3.8 1-3.9 2.1-5.3 7-3.2 10.9l89.3 164h-48.6c-4.4 0-8 3.6-8 8v21.3c0 4.4 3.6 8 8 8h65.1v33.7h-65.1c-4.4 0-8 3.6-8 8v21.3c0 4.4 3.6 8 8 8h65.1V752c0 4.4 3.6 8 8 8h41.3c4.4 0 8-3.6 8-8v-53.8h65.4c4.4 0 8-3.6 8-8v-21.3c0-4.4-3.6-8-8-8h-65.4v-33.7h65.4c4.4 0 8-3.6 8-8v-21.3c0-4.4-3.6-8-8-8h-49.1l89.3-164.1c.6-1.2 1-2.5 1-3.8.1-4.4-3.4-8-7.9-8z'
], [
primaryColor,
'M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v584z'
]);
});
exports.ZoomOutOutline = getIcon('zoom-out', outline, getNode(newViewBox, 'M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z'));
exports.AlertTwoTone = getIcon('alert', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M340 585c0-5.5 4.5-10 10-10h44c5.5 0 10 4.5 10 10v171h355V563c0-136.4-110.6-247-247-247S265 426.6 265 563v193h75V585z'
], [
primaryColor,
'M216.9 310.5l39.6-39.6c3.1-3.1 3.1-8.2 0-11.3l-67.9-67.9a8.03 8.03 0 0 0-11.3 0l-39.6 39.6a8.03 8.03 0 0 0 0 11.3l67.9 67.9c3.1 3.1 8.1 3.1 11.3 0zm669.6-79.2l-39.6-39.6a8.03 8.03 0 0 0-11.3 0l-67.9 67.9a8.03 8.03 0 0 0 0 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l67.9-67.9c3.1-3.2 3.1-8.2 0-11.3zM484 180h56c4.4 0 8-3.6 8-8V76c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v96c0 4.4 3.6 8 8 8zm348 712H192c-17.7 0-32 14.3-32 32v24c0 4.4 3.6 8 8 8h688c4.4 0 8-3.6 8-8v-24c0-17.7-14.3-32-32-32zm-639-96c0 17.7 14.3 32 32 32h574c17.7 0 32-14.3 32-32V563c0-176.2-142.8-319-319-319S193 386.8 193 563v233zm72-233c0-136.4 110.6-247 247-247s247 110.6 247 247v193H404V585c0-5.5-4.5-10-10-10h-44c-5.5 0-10 4.5-10 10v171h-75V563z'
]);
});
exports.ApiTwoTone = getIcon('api', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M148.2 674.6zm106.7-92.3c-25 25-38.7 58.1-38.7 93.4s13.8 68.5 38.7 93.4c25 25 58.1 38.7 93.4 38.7 35.3 0 68.5-13.8 93.4-38.7l59.4-59.4-186.8-186.8-59.4 59.4zm420.8-366.1c-35.3 0-68.5 13.8-93.4 38.7l-59.4 59.4 186.8 186.8 59.4-59.4c24.9-25 38.7-58.1 38.7-93.4s-13.8-68.5-38.7-93.4c-25-25-58.1-38.7-93.4-38.7z'
], [
primaryColor,
'M578.9 546.7a8.03 8.03 0 0 0-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 0 0-11.3 0L363 475.3l-43-43a7.85 7.85 0 0 0-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2a199.45 199.45 0 0 0-58.6 140.4c-.2 39.5 11.2 79.1 34.3 113.1l-76.1 76.1a8.03 8.03 0 0 0 0 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 0 1-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7-24.9-24.9-38.7-58.1-38.7-93.4s13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4zm476-620.3l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 0 0-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 0 0 0 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7s68.4 13.7 93.4 38.7c24.9 24.9 38.7 58.1 38.7 93.4s-13.8 68.4-38.7 93.4z'
]);
});
exports.AppstoreTwoTone = getIcon('appstore', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M864 144H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm52-668H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452 132H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z'
], [
secondaryColor,
'M212 212h200v200H212zm400 0h200v200H612zM212 612h200v200H212zm400 0h200v200H612z'
]);
});
exports.BankTwoTone = getIcon('bank', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [secondaryColor, 'M240.9 393.9h542.2L512 196.7z'], [
primaryColor,
'M894 462c30.9 0 43.8-39.7 18.7-58L530.8 126.2a31.81 31.81 0 0 0-37.6 0L111.3 404c-25.1 18.2-12.2 58 18.8 58H192v374h-72c-4.4 0-8 3.6-8 8v52c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-52c0-4.4-3.6-8-8-8h-72V462h62zM381 836H264V462h117v374zm189 0H453V462h117v374zm190 0H642V462h118v374zM240.9 393.9L512 196.7l271.1 197.2H240.9z'
]);
});
exports.AudioTwoTone = getIcon('audio', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M512 552c54.3 0 98-43.2 98-96V232c0-52.8-43.7-96-98-96s-98 43.2-98 96v224c0 52.8 43.7 96 98 96z'
], [
primaryColor,
'M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1z'
], [
primaryColor,
'M512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-98-392c0-52.8 43.7-96 98-96s98 43.2 98 96v224c0 52.8-43.7 96-98 96s-98-43.2-98-96V232z'
]);
});
exports.BellTwoTone = getIcon('bell', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M512 220c-55.6 0-107.8 21.6-147.1 60.9S304 372.4 304 428v340h416V428c0-55.6-21.6-107.8-60.9-147.1S567.6 220 512 220zm280 208c0-141.1-104.3-257.8-240-277.2v.1c135.7 19.4 240 136 240 277.1zM472 150.9v-.1C336.3 170.2 232 286.9 232 428c0-141.1 104.3-257.7 240-277.1z'
], [
primaryColor,
'M816 768h-24V428c0-141.1-104.3-257.7-240-277.1V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.9c-135.7 19.4-240 136-240 277.1v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48zm208-120H304V428c0-55.6 21.6-107.8 60.9-147.1S456.4 220 512 220c55.6 0 107.8 21.6 147.1 60.9S720 372.4 720 428v340z'
]);
});
exports.BookTwoTone = getIcon('book', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zM232 888V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0 0 22.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752H232z'
], [secondaryColor, 'M668 345.9V136h-96v211.4l49.5-35.4z'], [
secondaryColor,
'M727.9 136v296.5c0 8.8-7.2 16-16 16-3.4 0-6.7-1.1-9.4-3.1L621.1 386l-83.8 59.9a15.9 15.9 0 0 1-22.3-3.7c-2-2.7-3-6-3-9.3V136H232v752h559.9V136h-64z'
]);
});
exports.BoxPlotTwoTone = getIcon('box-plot', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [secondaryColor, 'M296 368h88v288h-88zm152 0h280v288H448z'], [
primaryColor,
'M952 224h-52c-4.4 0-8 3.6-8 8v248h-92V304c0-4.4-3.6-8-8-8H232c-4.4 0-8 3.6-8 8v176h-92V232c0-4.4-3.6-8-8-8H72c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V548h92v172c0 4.4 3.6 8 8 8h560c4.4 0 8-3.6 8-8V548h92v244c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V232c0-4.4-3.6-8-8-8zM384 656h-88V368h88v288zm344 0H448V368h280v288z'
]);
});
exports.BugTwoTone = getIcon('bug', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M308 412v268c0 36.78 9.68 71.96 27.8 102.9a205.39 205.39 0 0 0 73.3 73.3A202.68 202.68 0 0 0 512 884c36.78 0 71.96-9.68 102.9-27.8a205.39 205.39 0 0 0 73.3-73.3A202.68 202.68 0 0 0 716 680V412H308zm484 172v96c0 6.5-.22 12.95-.66 19.35C859.94 728.64 908 796.7 908 876a8 8 0 0 1-8 8h-56a8 8 0 0 1-8-8c0-44.24-23.94-82.89-59.57-103.7a278.63 278.63 0 0 1-22.66 49.02 281.39 281.39 0 0 1-100.45 100.45C611.84 946.07 563.55 960 512 960s-99.84-13.93-141.32-38.23a281.39 281.39 0 0 1-100.45-100.45 278.63 278.63 0 0 1-22.66-49.02A119.95 119.95 0 0 0 188 876a8 8 0 0 1-8 8h-56a8 8 0 0 1-8-8c0-79.3 48.07-147.36 116.66-176.65A284.12 284.12 0 0 1 232 680v-96H84a8 8 0 0 1-8-8v-56a8 8 0 0 1 8-8h148V412c-76.77 0-139-62.23-139-139a8 8 0 0 1 8-8h60a8 8 0 0 1 8 8 63 63 0 0 0 63 63h560a63 63 0 0 0 63-63 8 8 0 0 1 8-8h60a8 8 0 0 1 8 8c0 76.77-62.23 139-139 139v100h148a8 8 0 0 1 8 8v56a8 8 0 0 1-8 8H792zM368 272a8 8 0 0 1-8 8h-56a8 8 0 0 1-8-8c0-40.04 8.78-76.75 25.9-108.07a184.57 184.57 0 0 1 74.03-74.03C427.25 72.78 463.96 64 504 64h16c40.04 0 76.75 8.78 108.07 25.9a184.57 184.57 0 0 1 74.03 74.03C719.22 195.25 728 231.96 728 272a8 8 0 0 1-8 8h-56a8 8 0 0 1-8-8c0-28.33-5.94-53.15-17.08-73.53a112.56 112.56 0 0 0-45.39-45.4C573.15 141.95 548.33 136 520 136h-16c-28.33 0-53.15 5.94-73.53 17.08a112.56 112.56 0 0 0-45.4 45.39C373.95 218.85 368 243.67 368 272z'
], [
secondaryColor,
'M308 412v268c0 36.78 9.68 71.96 27.8 102.9a205.39 205.39 0 0 0 73.3 73.3A202.68 202.68 0 0 0 512 884c36.78 0 71.96-9.68 102.9-27.8a205.39 205.39 0 0 0 73.3-73.3A202.68 202.68 0 0 0 716 680V412H308z'
]);
});
exports.BulbTwoTone = getIcon('bulb', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M512 136c-141.4 0-256 114.6-256 256 0 92.5 49.4 176.3 128.1 221.8l35.9 20.8V752h184V634.6l35.9-20.8C718.6 568.3 768 484.5 768 392c0-141.4-114.6-256-256-256z'
], [
primaryColor,
'M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z'
]);
});
exports.CalculatorTwoTone = getIcon('calculator', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
], [
secondaryColor,
'M184 840h656V184H184v656zm256.2-75h-50.8c-2.2 0-4.5-1.1-5.9-2.9L348 718.6l-35.5 43.5a7.38 7.38 0 0 1-5.9 2.9h-50.8c-6.6 0-10.2-7.9-5.8-13.1l62.7-76.8-61.2-74.9c-4.3-5.2-.7-13.1 5.9-13.1h50.9c2.2 0 4.5 1.1 5.9 2.9l34 41.6 34-41.6c1.5-1.9 3.6-2.9 5.9-2.9h50.8c6.6 0 10.2 7.9 5.9 13.1L383.5 675l62.7 76.8c4.2 5.3.6 13.2-6 13.2zM576 335c0-2.2 1.4-4 3.2-4h193.5c1.9 0 3.3 1.8 3.3 4v48c0 2.2-1.4 4-3.2 4H579.2c-1.8 0-3.2-1.8-3.2-4v-48zm0 265c0-2.2 1.4-4 3.2-4h193.5c1.9 0 3.3 1.8 3.3 4v48c0 2.2-1.4 4-3.2 4H579.2c-1.8 0-3.2-1.8-3.2-4v-48zm0 104c0-2.2 1.4-4 3.2-4h193.5c1.9 0 3.3 1.8 3.3 4v48c0 2.2-1.4 4-3.2 4H579.2c-1.8 0-3.2-1.8-3.2-4v-48zM248 335c0-2.2 1.4-4 3.2-4H320v-68.8c0-1.8 1.8-3.2 4-3.2h48c2.2 0 4 1.4 4 3.2V331h68.7c1.9 0 3.3 1.8 3.3 4v48c0 2.2-1.4 4-3.2 4H376v68.7c0 1.9-1.8 3.3-4 3.3h-48c-2.2 0-4-1.4-4-3.2V387h-68.8c-1.8 0-3.2-1.8-3.2-4v-48z'
], [
primaryColor,
'M383.5 675l61.3-74.8c4.3-5.2.7-13.1-5.9-13.1h-50.8c-2.3 0-4.4 1-5.9 2.9l-34 41.6-34-41.6a7.69 7.69 0 0 0-5.9-2.9h-50.9c-6.6 0-10.2 7.9-5.9 13.1l61.2 74.9-62.7 76.8c-4.4 5.2-.8 13.1 5.8 13.1h50.8c2.3 0 4.4-1 5.9-2.9l35.5-43.5 35.5 43.5c1.4 1.8 3.7 2.9 5.9 2.9h50.8c6.6 0 10.2-7.9 6-13.2L383.5 675zM251.2 387H320v68.8c0 1.8 1.8 3.2 4 3.2h48c2.2 0 4-1.4 4-3.3V387h68.8c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H376v-68.8c0-1.8-1.8-3.2-4-3.2h-48c-2.2 0-4 1.4-4 3.2V331h-68.8c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm328 369h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm0-104h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4zm0-265h193.6c1.8 0 3.2-1.8 3.2-4v-48c0-2.2-1.4-4-3.3-4H579.2c-1.8 0-3.2 1.8-3.2 4v48c0 2.2 1.4 4 3.2 4z'
]);
});
exports.BuildTwoTone = getIcon('build', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [secondaryColor, 'M144 546h200v200H144zm268-268h200v200H412z'], [
primaryColor,
'M916 210H376c-17.7 0-32 14.3-32 32v236H108c-17.7 0-32 14.3-32 32v272c0 17.7 14.3 32 32 32h540c17.7 0 32-14.3 32-32V546h236c17.7 0 32-14.3 32-32V242c0-17.7-14.3-32-32-32zM344 746H144V546h200v200zm268 0H412V546h200v200zm0-268H412V278h200v200zm268 0H680V278h200v200z'
]);
});
exports.CalendarTwoTone = getIcon('calendar', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M712 304c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H384v48c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H184v136h656V256H712v48z'
], [
primaryColor,
'M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zm0-448H184V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136z'
]);
});
exports.CameraTwoTone = getIcon('camera', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M864 320H677.2l-17.1-47.8-22.9-64.2H386.7l-22.9 64.2-17.1 47.8H160c-4.4 0-8 3.6-8 8v456c0 4.4 3.6 8 8 8h704c4.4 0 8-3.6 8-8V328c0-4.4-3.6-8-8-8zM512 704c-88.4 0-160-71.6-160-160s71.6-160 160-160 160 71.6 160 160-71.6 160-160 160z'
], [
primaryColor,
'M512 384c-88.4 0-160 71.6-160 160s71.6 160 160 160 160-71.6 160-160-71.6-160-160-160zm0 256c-53 0-96-43-96-96s43-96 96-96 96 43 96 96-43 96-96 96z'
], [
primaryColor,
'M864 248H728l-32.4-90.8a32.07 32.07 0 0 0-30.2-21.2H358.6c-13.5 0-25.6 8.5-30.1 21.2L296 248H160c-44.2 0-80 35.8-80 80v456c0 44.2 35.8 80 80 80h704c44.2 0 80-35.8 80-80V328c0-44.2-35.8-80-80-80zm8 536c0 4.4-3.6 8-8 8H160c-4.4 0-8-3.6-8-8V328c0-4.4 3.6-8 8-8h186.7l17.1-47.8 22.9-64.2h250.5l22.9 64.2 17.1 47.8H864c4.4 0 8 3.6 8 8v456z'
]);
});
exports.CarTwoTone = getIcon('car', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M199.6 474L184 517v237h656V517l-15.6-43H199.6zM264 621c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm388 75c0 4.4-3.6 8-8 8H380c-4.4 0-8-3.6-8-8v-84c0-4.4 3.6-8 8-8h40c4.4 0 8 3.6 8 8v36h168v-36c0-4.4 3.6-8 8-8h40c4.4 0 8 3.6 8 8v84zm108-75c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40z'
], [primaryColor, 'M720 581a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'], [
primaryColor,
'M959 413.4L935.3 372a8 8 0 0 0-10.9-2.9l-50.7 29.6-78.3-216.2a63.9 63.9 0 0 0-60.9-44.4H301.2c-34.7 0-65.5 22.4-76.2 55.5l-74.6 205.2-50.8-29.6a8 8 0 0 0-10.9 2.9L65 413.4c-2.2 3.8-.9 8.6 2.9 10.8l60.4 35.2-14.5 40c-1.2 3.2-1.8 6.6-1.8 10v348.2c0 15.7 11.8 28.4 26.3 28.4h67.6c12.3 0 23-9.3 25.6-22.3l7.7-37.7h545.6l7.7 37.7c2.7 13 13.3 22.3 25.6 22.3h67.6c14.5 0 26.3-12.7 26.3-28.4V509.4c0-3.4-.6-6.8-1.8-10l-14.5-40 60.3-35.2a8 8 0 0 0 3-10.8zM292.7 218.1l.5-1.3.4-1.3c1.1-3.3 4.1-5.5 7.6-5.5h427.6l75.4 208H220l72.7-199.9zM840 754H184V517l15.6-43h624.8l15.6 43v237z'
], [
primaryColor,
'M224 581a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm420 23h-40c-4.4 0-8 3.6-8 8v36H428v-36c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v84c0 4.4 3.6 8 8 8h264c4.4 0 8-3.6 8-8v-84c0-4.4-3.6-8-8-8z'
]);
});
exports.CarryOutTwoTone = getIcon('carry-out', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v584z'
], [
secondaryColor,
'M712 304c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H384v48c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H184v584h656V256H712v48zm-17.5 128.8L481.9 725.5a16.1 16.1 0 0 1-26 0l-126.4-174c-3.8-5.3 0-12.7 6.5-12.7h55.2c5.2 0 10 2.5 13 6.6l64.7 89 150.9-207.8c3-4.1 7.9-6.6 13-6.6H688c6.5 0 10.3 7.4 6.5 12.8z'
], [
primaryColor,
'M688 420h-55.2c-5.1 0-10 2.5-13 6.6L468.9 634.4l-64.7-89c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0 0 26 0l212.6-292.7c3.8-5.4 0-12.8-6.5-12.8z'
]);
});
exports.CheckCircleTwoTone = getIcon('check-circle', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
], [
secondaryColor,
'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm193.4 225.7l-210.6 292a31.8 31.8 0 0 1-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.3 0 19.9 5 25.9 13.3l71.2 98.8 157.2-218c6-8.4 15.7-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.4 12.7z'
], [
primaryColor,
'M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0 0 51.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z'
]);
});
exports.CheckSquareTwoTone = getIcon('check-square', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
], [
secondaryColor,
'M184 840h656V184H184v656zm130-367.8h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H688c6.5 0 10.3 7.4 6.5 12.7l-210.6 292a31.8 31.8 0 0 1-51.7 0L307.5 484.9c-3.8-5.3 0-12.7 6.5-12.7z'
], [
primaryColor,
'M432.2 657.7a31.8 31.8 0 0 0 51.7 0l210.6-292c3.8-5.3 0-12.7-6.5-12.7h-46.9c-10.3 0-19.9 5-25.9 13.3L458 584.3l-71.2-98.8c-6-8.4-15.7-13.3-25.9-13.3H314c-6.5 0-10.3 7.4-6.5 12.7l124.7 172.8z'
]);
});
exports.ClockCircleTwoTone = getIcon('clock-circle', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
], [
secondaryColor,
'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm176.5 509.7l-28.6 39a7.99 7.99 0 0 1-11.2 1.7L483.3 569.8a7.92 7.92 0 0 1-3.3-6.5V288c0-4.4 3.6-8 8-8h48.1c4.4 0 8 3.6 8 8v247.5l142.6 103.1c3.6 2.5 4.4 7.5 1.8 11.1z'
], [
primaryColor,
'M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.6-3.6 1.8-8.6-1.8-11.1z'
]);
});
exports.CloseCircleTwoTone = getIcon('close-circle', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
], [
secondaryColor,
'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm171.8 527.1c1.2 1.5 1.9 3.3 1.9 5.2 0 4.5-3.6 8-8 8l-66-.3-99.3-118.4-99.3 118.5-66.1.3c-4.4 0-8-3.6-8-8 0-1.9.7-3.7 1.9-5.2L471 512.3l-130.1-155a8.32 8.32 0 0 1-1.9-5.2c0-4.5 3.6-8 8-8l66.1.3 99.3 118.4 99.4-118.5 66-.3c4.4 0 8 3.6 8 8 0 1.9-.6 3.8-1.8 5.2l-130.1 155 129.9 154.9z'
], [
primaryColor,
'M685.8 352c0-4.4-3.6-8-8-8l-66 .3-99.4 118.5-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155-130.1 154.9a8.32 8.32 0 0 0-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3 99.3-118.5L611.7 680l66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.9 512.2l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z'
]);
});
exports.CloudTwoTone = getIcon('cloud', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M791.9 492l-37.8-10-13.8-36.5c-8.6-22.7-20.6-44.1-35.7-63.4a245.73 245.73 0 0 0-52.4-49.9c-41.1-28.9-89.5-44.2-140-44.2s-98.9 15.3-140 44.2a245.6 245.6 0 0 0-52.4 49.9 240.47 240.47 0 0 0-35.7 63.4l-13.9 36.6-37.9 9.9a125.7 125.7 0 0 0-66.1 43.7A123.1 123.1 0 0 0 140 612c0 33.1 12.9 64.3 36.3 87.7 23.4 23.4 54.5 36.3 87.6 36.3h496.2c33.1 0 64.2-12.9 87.6-36.3A123.3 123.3 0 0 0 884 612c0-56.2-37.8-105.5-92.1-120z'
], [
primaryColor,
'M811.4 418.7C765.6 297.9 648.9 212 512.2 212S258.8 297.8 213 418.6C127.3 441.1 64 519.1 64 612c0 110.5 89.5 200 199.9 200h496.2C870.5 812 960 722.5 960 612c0-92.7-63.1-170.7-148.6-193.3zm36.3 281a123.07 123.07 0 0 1-87.6 36.3H263.9c-33.1 0-64.2-12.9-87.6-36.3A123.3 123.3 0 0 1 140 612c0-28 9.1-54.3 26.2-76.3a125.7 125.7 0 0 1 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0 1 52.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10c54.3 14.5 92.1 63.8 92.1 120 0 33.1-12.9 64.3-36.3 87.7z'
]);
});
exports.CloseSquareTwoTone = getIcon('close-square', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
], [
secondaryColor,
'M184 840h656V184H184v656zm163.9-473.9A7.95 7.95 0 0 1 354 353h58.9c4.7 0 9.2 2.1 12.3 5.7L512 462.2l86.8-103.5c3-3.6 7.5-5.7 12.3-5.7H670c6.8 0 10.5 7.9 6.1 13.1L553.8 512l122.3 145.9c4.4 5.2.7 13.1-6.1 13.1h-58.9c-4.7 0-9.2-2.1-12.3-5.7L512 561.8l-86.8 103.5c-3 3.6-7.5 5.7-12.3 5.7H354c-6.8 0-10.5-7.9-6.1-13.1L470.2 512 347.9 366.1z'
], [
primaryColor,
'M354 671h58.9c4.8 0 9.3-2.1 12.3-5.7L512 561.8l86.8 103.5c3.1 3.6 7.6 5.7 12.3 5.7H670c6.8 0 10.5-7.9 6.1-13.1L553.8 512l122.3-145.9c4.4-5.2.7-13.1-6.1-13.1h-58.9c-4.8 0-9.3 2.1-12.3 5.7L512 462.2l-86.8-103.5c-3.1-3.6-7.6-5.7-12.3-5.7H354c-6.8 0-10.5 7.9-6.1 13.1L470.2 512 347.9 657.9A7.95 7.95 0 0 0 354 671z'
]);
});
exports.CodeTwoTone = getIcon('code', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
], [
secondaryColor,
'M184 840h656V184H184v656zm339.5-223h185c4.1 0 7.5 3.6 7.5 8v48c0 4.4-3.4 8-7.5 8h-185c-4.1 0-7.5-3.6-7.5-8v-48c0-4.4 3.4-8 7.5-8zM308 610.3c0-2.3 1.1-4.6 2.9-6.1L420.7 512l-109.8-92.2a7.63 7.63 0 0 1-2.9-6.1V351c0-6.8 7.9-10.5 13.1-6.1l192 160.9c3.9 3.2 3.9 9.1 0 12.3l-192 161c-5.2 4.4-13.1.7-13.1-6.1v-62.7z'
], [
primaryColor,
'M321.1 679.1l192-161c3.9-3.2 3.9-9.1 0-12.3l-192-160.9A7.95 7.95 0 0 0 308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 0 0-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48z'
]);
});
exports.CompassTwoTone = getIcon('compass', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zM327.6 701.7c-2 .9-4.4 0-5.3-2.1-.4-1-.4-2.2 0-3.2L421 470.9 553.1 603l-225.5 98.7zm375.1-375.1L604 552.1 471.9 420l225.5-98.7c2-.9 4.4 0 5.3 2.1.4 1 .4 2.1 0 3.2z'
], [
primaryColor,
'M322.3 696.4c-.4 1-.4 2.2 0 3.2.9 2.1 3.3 3 5.3 2.1L553.1 603 421 470.9l-98.7 225.5zm375.1-375.1L471.9 420 604 552.1l98.7-225.5c.4-1.1.4-2.2 0-3.2-.9-2.1-3.3-3-5.3-2.1z'
], [
primaryColor,
'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
]);
});
exports.ContactsTwoTone = getIcon('contacts', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M460.3 526a51.7 52 0 1 0 103.4 0 51.7 52 0 1 0-103.4 0z'
], [
secondaryColor,
'M768 352c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-56H548v56c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-56H328v56c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-56H136v496h752V296H768v56zM661 736h-43.8c-4.2 0-7.6-3.3-7.9-7.5-3.8-50.5-46-90.5-97.2-90.5s-93.4 39.9-97.2 90.5c-.3 4.2-3.7 7.5-7.9 7.5h-43.9a8 8 0 0 1-8-8.4c2.8-53.3 31.9-99.6 74.6-126.1-18.1-20-29.1-46.4-29.1-75.5 0-61.9 49.9-112 111.4-112s111.4 50.1 111.4 112c0 29.1-11 55.6-29.1 75.5 42.7 26.4 71.9 72.8 74.7 126.1a8 8 0 0 1-8 8.4z'
], [
primaryColor,
'M594.3 601.5a111.8 111.8 0 0 0 29.1-75.5c0-61.9-49.9-112-111.4-112s-111.4 50.1-111.4 112c0 29.1 11 55.5 29.1 75.5a158.09 158.09 0 0 0-74.6 126.1 8 8 0 0 0 8 8.4H407c4.2 0 7.6-3.3 7.9-7.5 3.8-50.6 46-90.5 97.2-90.5s93.4 40 97.2 90.5c.3 4.2 3.7 7.5 7.9 7.5H661a8 8 0 0 0 8-8.4c-2.8-53.3-32-99.7-74.7-126.1zM512 578c-28.5 0-51.7-23.3-51.7-52s23.2-52 51.7-52 51.7 23.3 51.7 52-23.2 52-51.7 52z'
], [
primaryColor,
'M928 224H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zm-40 568H136V296h120v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h120v496z'
]);
});
exports.ContainerTwoTone = getIcon('container', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M635 771.7c-34.5 28.6-78.2 44.3-123 44.3s-88.5-15.8-123-44.3a194.02 194.02 0 0 1-59.1-84.7H232v201h560V687h-97.9c-11.6 32.8-32 62.3-59.1 84.7z'
], [
primaryColor,
'M320 501h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z'
], [
primaryColor,
'M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V687h97.9c11.6 32.8 32 62.3 59.1 84.7 34.5 28.5 78.2 44.3 123 44.3s88.5-15.7 123-44.3c27.1-22.4 47.5-51.9 59.1-84.7H792v201zm0-264H643.6l-5.2 24.7C626.4 708.5 573.2 752 512 752s-114.4-43.5-126.5-103.3l-5.2-24.7H232V136h560v488z'
], [
primaryColor,
'M320 341h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z'
]);
});
exports.ControlTwoTone = getIcon('control', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
], [
secondaryColor,
'M616 440a36 36 0 1 0 72 0 36 36 0 1 0-72 0zM340.4 601.5l1.5 2.4c0 .1.1.1.1.2l.9 1.2c.1.1.2.2.2.3 1 1.3 2 2.5 3.2 3.6l.2.2c.4.4.8.8 1.2 1.1.8.8 1.7 1.5 2.6 2.1h.1l1.2.9c.1.1.3.2.4.3 1.2.8 2.5 1.6 3.9 2.2.2.1.5.2.7.4.4.2.7.3 1.1.5.3.1.7.3 1 .4.5.2 1 .4 1.5.5.4.1.9.3 1.3.4l.9.3 1.4.3c.2.1.5.1.7.2.7.1 1.4.3 2.1.4.2 0 .4 0 .6.1.6.1 1.1.1 1.7.2.2 0 .4 0 .7.1.8 0 1.5.1 2.3.1s1.5 0 2.3-.1c.2 0 .4 0 .7-.1.6 0 1.2-.1 1.7-.2.2 0 .4 0 .6-.1.7-.1 1.4-.2 2.1-.4.2-.1.5-.1.7-.2l1.4-.3.9-.3c.4-.1.9-.3 1.3-.4.5-.2 1-.4 1.5-.5.3-.1.7-.3 1-.4.4-.2.7-.3 1.1-.5.2-.1.5-.2.7-.4 1.3-.7 2.6-1.4 3.9-2.2.1-.1.3-.2.4-.3l1.2-.9h.1c.9-.7 1.8-1.4 2.6-2.1.4-.4.8-.7 1.2-1.1l.2-.2c1.1-1.1 2.2-2.4 3.2-3.6.1-.1.2-.2.2-.3l.9-1.2c0-.1.1-.1.1-.2l1.5-2.4c.1-.2.2-.3.3-.5 2.7-5.1 4.3-10.9 4.3-17s-1.6-12-4.3-17c-.1-.2-.2-.4-.3-.5l-1.5-2.4c0-.1-.1-.1-.1-.2l-.9-1.2c-.1-.1-.2-.2-.2-.3-1-1.3-2-2.5-3.2-3.6l-.2-.2c-.4-.4-.8-.8-1.2-1.1-.8-.8-1.7-1.5-2.6-2.1h-.1l-1.2-.9c-.1-.1-.3-.2-.4-.3-1.2-.8-2.5-1.6-3.9-2.2-.2-.1-.5-.2-.7-.4-.4-.2-.7-.3-1.1-.5-.3-.1-.7-.3-1-.4-.5-.2-1-.4-1.5-.5-.4-.1-.9-.3-1.3-.4l-.9-.3-1.4-.3c-.2-.1-.5-.1-.7-.2-.7-.1-1.4-.3-2.1-.4-.2 0-.4 0-.6-.1-.6-.1-1.1-.1-1.7-.2-.2 0-.4 0-.7-.1-.8 0-1.5-.1-2.3-.1s-1.5 0-2.3.1c-.2 0-.4 0-.7.1-.6 0-1.2.1-1.7.2-.2 0-.4 0-.6.1-.7.1-1.4.2-2.1.4-.2.1-.5.1-.7.2l-1.4.3-.9.3c-.4.1-.9.3-1.3.4-.5.2-1 .4-1.5.5-.3.1-.7.3-1 .4-.4.2-.7.3-1.1.5-.2.1-.5.2-.7.4-1.3.7-2.6 1.4-3.9 2.2-.1.1-.3.2-.4.3l-1.2.9h-.1c-.9.7-1.8 1.4-2.6 2.1-.4.4-.8.7-1.2 1.1l-.2.2a54.8 54.8 0 0 0-3.2 3.6c-.1.1-.2.2-.2.3l-.9 1.2c0 .1-.1.1-.1.2l-1.5 2.4c-.1.2-.2.3-.3.5-2.7 5.1-4.3 10.9-4.3 17s1.6 12 4.3 17c.1.2.2.3.3.5z'
], [
secondaryColor,
'M184 840h656V184H184v656zm436.4-499.1c-.2 0-.3.1-.4.1v-77c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v77c-.2 0-.3-.1-.4-.1 42 13.4 72.4 52.7 72.4 99.1 0 46.4-30.4 85.7-72.4 99.1.2 0 .3-.1.4-.1v221c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V539c.2 0 .3.1.4.1-42-13.4-72.4-52.7-72.4-99.1 0-46.4 30.4-85.7 72.4-99.1zM340 485V264c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v221c41.7 13.6 72 52.8 72 99s-30.3 85.5-72 99v77c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-77c-41.7-13.6-72-52.8-72-99s30.3-85.5 72-99z'
], [
primaryColor,
'M340 683v77c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-77c41.7-13.5 72-52.8 72-99s-30.3-85.4-72-99V264c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v221c-41.7 13.5-72 52.8-72 99s30.3 85.4 72 99zm.1-116c.1-.2.2-.3.3-.5l1.5-2.4c0-.1.1-.1.1-.2l.9-1.2c0-.1.1-.2.2-.3 1-1.2 2.1-2.5 3.2-3.6l.2-.2c.4-.4.8-.7 1.2-1.1.8-.7 1.7-1.4 2.6-2.1h.1l1.2-.9c.1-.1.3-.2.4-.3 1.3-.8 2.6-1.5 3.9-2.2.2-.2.5-.3.7-.4.4-.2.7-.3 1.1-.5.3-.1.7-.3 1-.4.5-.1 1-.3 1.5-.5.4-.1.9-.3 1.3-.4l.9-.3 1.4-.3c.2-.1.5-.1.7-.2.7-.2 1.4-.3 2.1-.4.2-.1.4-.1.6-.1.5-.1 1.1-.2 1.7-.2.3-.1.5-.1.7-.1.8-.1 1.5-.1 2.3-.1s1.5.1 2.3.1c.3.1.5.1.7.1.6.1 1.1.1 1.7.2.2.1.4.1.6.1.7.1 1.4.3 2.1.4.2.1.5.1.7.2l1.4.3.9.3c.4.1.9.3 1.3.4.5.1 1 .3 1.5.5.3.1.7.3 1 .4.4.2.7.3 1.1.5.2.2.5.3.7.4 1.4.6 2.7 1.4 3.9 2.2.1.1.3.2.4.3l1.2.9h.1c.9.6 1.8 1.3 2.6 2.1.4.3.8.7 1.2 1.1l.2.2c1.2 1.1 2.2 2.3 3.2 3.6 0 .1.1.2.2.3l.9 1.2c0 .1.1.1.1.2l1.5 2.4A36.03 36.03 0 0 1 408 584c0 6.1-1.6 11.9-4.3 17-.1.2-.2.3-.3.5l-1.5 2.4c0 .1-.1.1-.1.2l-.9 1.2c0 .1-.1.2-.2.3-1 1.2-2.1 2.5-3.2 3.6l-.2.2c-.4.4-.8.7-1.2 1.1-.8.7-1.7 1.4-2.6 2.1h-.1l-1.2.9c-.1.1-.3.2-.4.3-1.3.8-2.6 1.5-3.9 2.2-.2.2-.5.3-.7.4-.4.2-.7.3-1.1.5-.3.1-.7.3-1 .4-.5.1-1 .3-1.5.5-.4.1-.9.3-1.3.4l-.9.3-1.4.3c-.2.1-.5.1-.7.2-.7.2-1.4.3-2.1.4-.2.1-.4.1-.6.1-.5.1-1.1.2-1.7.2-.3.1-.5.1-.7.1-.8.1-1.5.1-2.3.1s-1.5-.1-2.3-.1c-.3-.1-.5-.1-.7-.1-.6-.1-1.1-.1-1.7-.2-.2-.1-.4-.1-.6-.1-.7-.1-1.4-.3-2.1-.4-.2-.1-.5-.1-.7-.2l-1.4-.3-.9-.3c-.4-.1-.9-.3-1.3-.4-.5-.1-1-.3-1.5-.5-.3-.1-.7-.3-1-.4-.4-.2-.7-.3-1.1-.5-.2-.2-.5-.3-.7-.4-1.4-.6-2.7-1.4-3.9-2.2-.1-.1-.3-.2-.4-.3l-1.2-.9h-.1c-.9-.6-1.8-1.3-2.6-2.1-.4-.3-.8-.7-1.2-1.1l-.2-.2c-1.2-1.1-2.2-2.3-3.2-3.6 0-.1-.1-.2-.2-.3l-.9-1.2c0-.1-.1-.1-.1-.2l-1.5-2.4c-.1-.2-.2-.3-.3-.5-2.7-5-4.3-10.9-4.3-17s1.6-11.9 4.3-17zm280.3-27.9c-.1 0-.2-.1-.4-.1v221c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V539c-.1 0-.2.1-.4.1 42-13.4 72.4-52.7 72.4-99.1 0-46.4-30.4-85.7-72.4-99.1.1 0 .2.1.4.1v-77c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v77c.1 0 .2-.1.4-.1-42 13.4-72.4 52.7-72.4 99.1 0 46.4 30.4 85.7 72.4 99.1zM652 404c19.9 0 36 16.1 36 36s-16.1 36-36 36-36-16.1-36-36 16.1-36 36-36z'
]);
});
exports.CopyTwoTone = getIcon('copy', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [secondaryColor, 'M232 706h142c22.1 0 40 17.9 40 40v142h250V264H232v442z'], [
primaryColor,
'M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32z'
], [
primaryColor,
'M704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z'
]);
});
exports.CreditCardTwoTone = getIcon('credit-card', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M136 792h752V440H136v352zm507-144c0-4.4 3.6-8 8-8h165c4.4 0 8 3.6 8 8v72c0 4.4-3.6 8-8 8H651c-4.4 0-8-3.6-8-8v-72zM136 232h752v120H136z'
], [
primaryColor,
'M651 728h165c4.4 0 8-3.6 8-8v-72c0-4.4-3.6-8-8-8H651c-4.4 0-8 3.6-8 8v72c0 4.4 3.6 8 8 8z'
], [
primaryColor,
'M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136V440h752v352zm0-440H136V232h752v120z'
]);
});
exports.CrownTwoTone = getIcon('crown', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M911.9 283.9v.5L835.5 865c-1 8-7.9 14-15.9 14H204.5c-8.1 0-14.9-6.1-16-14l-76.4-580.6v-.6 1.6L188.5 866c1.1 7.9 7.9 14 16 14h615.1c8 0 14.9-6 15.9-14l76.4-580.6c.1-.5.1-1 0-1.5z'
], [
secondaryColor,
'M773.6 810.6l53.9-409.4-139.8 86.1L512 252.9 336.3 487.3l-139.8-86.1 53.8 409.4h523.3zm-374.2-189c0-62.1 50.5-112.6 112.6-112.6s112.6 50.5 112.6 112.6v1c0 62.1-50.5 112.6-112.6 112.6s-112.6-50.5-112.6-112.6v-1z'
], [
primaryColor,
'M512 734.2c61.9 0 112.3-50.2 112.6-112.1v-.5c0-62.1-50.5-112.6-112.6-112.6s-112.6 50.5-112.6 112.6v.5c.3 61.9 50.7 112.1 112.6 112.1zm0-160.9c26.6 0 48.2 21.6 48.2 48.3 0 26.6-21.6 48.3-48.2 48.3s-48.2-21.6-48.2-48.3c0-26.6 21.6-48.3 48.2-48.3z'
], [
primaryColor,
'M188.5 865c1.1 7.9 7.9 14 16 14h615.1c8 0 14.9-6 15.9-14l76.4-580.6v-.5c.3-6.4-6.7-10.8-12.3-7.4L705 396.4 518.4 147.5a8.06 8.06 0 0 0-12.9 0L319 396.4 124.3 276.5c-5.5-3.4-12.6.9-12.2 7.3v.6L188.5 865zm147.8-377.7L512 252.9l175.7 234.4 139.8-86.1-53.9 409.4H250.3l-53.8-409.4 139.8 86.1z'
]);
});
exports.CustomerServiceTwoTone = getIcon('customer-service', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [secondaryColor, 'M696 632h128v192H696zm-496 0h128v192H200z'], [
primaryColor,
'M512 128c-212.1 0-384 171.9-384 384v360c0 13.3 10.7 24 24 24h184c35.3 0 64-28.7 64-64V624c0-35.3-28.7-64-64-64H200v-48c0-172.3 139.7-312 312-312s312 139.7 312 312v48H688c-35.3 0-64 28.7-64 64v208c0 35.3 28.7 64 64 64h184c13.3 0 24-10.7 24-24V512c0-212.1-171.9-384-384-384zM328 632v192H200V632h128zm496 192H696V632h128v192z'
]);
});
exports.DashboardTwoTone = getIcon('dashboard', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M512 188c-99.3 0-192.7 38.7-263 109-70.3 70.2-109 163.6-109 263 0 105.6 44.5 205.5 122.6 276h498.8A371.12 371.12 0 0 0 884 560c0-99.3-38.7-192.7-109-263-70.2-70.3-163.6-109-263-109zm-30 44c0-4.4 3.6-8 8-8h44c4.4 0 8 3.6 8 8v80c0 4.4-3.6 8-8 8h-44c-4.4 0-8-3.6-8-8v-80zM270 582c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8v-44c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v44zm90.7-204.4l-31.1 31.1a8.03 8.03 0 0 1-11.3 0l-56.6-56.6a8.03 8.03 0 0 1 0-11.3l31.1-31.1c3.1-3.1 8.2-3.1 11.3 0l56.6 56.6c3.1 3.1 3.1 8.2 0 11.3zm291.1 83.5l-84.5 84.5c5 18.7.2 39.4-14.5 54.1a55.95 55.95 0 0 1-79.2 0 55.95 55.95 0 0 1 0-79.2 55.87 55.87 0 0 1 54.1-14.5l84.5-84.5c3.1-3.1 8.2-3.1 11.3 0l28.3 28.3c3.1 3.1 3.1 8.2 0 11.3zm43-52.4l-31.1-31.1a8.03 8.03 0 0 1 0-11.3l56.6-56.6c3.1-3.1 8.2-3.1 11.3 0l31.1 31.1c3.1 3.1 3.1 8.2 0 11.3l-56.6 56.6a8.03 8.03 0 0 1-11.3 0zM846 538v44c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8v-44c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8z'
], [
primaryColor,
'M623.5 421.5a8.03 8.03 0 0 0-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5a55.95 55.95 0 0 0 0 79.2 55.95 55.95 0 0 0 79.2 0 55.87 55.87 0 0 0 14.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8z'
], [
primaryColor,
'M924.8 385.6a446.7 446.7 0 0 0-96-142.4 446.7 446.7 0 0 0-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 0 0-142.4 96 446.7 446.7 0 0 0-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6A371.12 371.12 0 0 1 140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276z'
], [
primaryColor,
'M762.7 340.8l-31.1-31.1a8.03 8.03 0 0 0-11.3 0l-56.6 56.6a8.03 8.03 0 0 0 0 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zM750 538v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zM304.1 309.7a8.03 8.03 0 0 0-11.3 0l-31.1 31.1a8.03 8.03 0 0 0 0 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z'
]);
});
exports.DeleteTwoTone = getIcon('delete', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [secondaryColor, 'M292.7 840h438.6l24.2-512h-487z'], [
primaryColor,
'M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-504-72h304v72H360v-72zm371.3 656H292.7l-24.2-512h487l-24.2 512z'
]);
});
exports.DiffTwoTone = getIcon('diff', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M232 264v624h432V413.8L514.2 264H232zm336 489c0 3.8-3.4 7-7.5 7h-225c-4.1 0-7.5-3.2-7.5-7v-42c0-3.8 3.4-7 7.5-7h225c4.1 0 7.5 3.2 7.5 7v42zm0-262v42c0 3.8-3.4 7-7.5 7H476v84.9c0 3.9-3.1 7.1-7 7.1h-42c-3.8 0-7-3.2-7-7.1V540h-84.5c-4.1 0-7.5-3.2-7.5-7v-42c0-3.9 3.4-7 7.5-7H420v-84.9c0-3.9 3.2-7.1 7-7.1h42c3.9 0 7 3.2 7 7.1V484h84.5c4.1 0 7.5 3.1 7.5 7z'
], [
primaryColor,
'M854.2 306.6L611.3 72.9c-6-5.7-13.9-8.9-22.2-8.9H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h277l219 210.6V824c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V329.6c0-8.7-3.5-17-9.8-23z'
], [
primaryColor,
'M553.4 201.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v704c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32V397.3c0-8.5-3.4-16.6-9.4-22.6L553.4 201.4zM664 888H232V264h282.2L664 413.8V888z'
], [
primaryColor,
'M476 399.1c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1V484h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H420v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V540h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H476v-84.9zM560.5 704h-225c-4.1 0-7.5 3.2-7.5 7v42c0 3.8 3.4 7 7.5 7h225c4.1 0 7.5-3.2 7.5-7v-42c0-3.8-3.4-7-7.5-7z'
]);
});
exports.DatabaseTwoTone = getIcon('database', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M232 616h560V408H232v208zm112-144c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zM232 888h560V680H232v208zm112-144c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zM232 344h560V136H232v208zm112-144c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40z'
], [
primaryColor,
'M304 512a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm0 272a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm0-544a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'
], [
primaryColor,
'M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V680h560v208zm0-272H232V408h560v208zm0-272H232V136h560v208z'
]);
});
exports.DislikeTwoTone = getIcon('dislike', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M273 100.1v428h.3l-.3-428zM820.4 525l-21.9-19 14-25.5a56.2 56.2 0 0 0 6.9-27.3c0-16.5-7.1-32.2-19.6-43l-21.9-19 13.9-25.4a56.2 56.2 0 0 0 6.9-27.3c0-16.5-7.1-32.2-19.6-43l-21.9-19 13.9-25.4a56.2 56.2 0 0 0 6.9-27.3c0-22.4-13.2-42.6-33.6-51.8H345v345.2c18.6 67.2 46.4 168 83.5 302.5a44.28 44.28 0 0 0 42.2 32.3c7.5.1 15-2.2 21.1-6.7 9.9-7.4 15.2-18.6 14.6-30.5l-9.6-198.4h314.4C829 605.5 840 587.1 840 568c0-16.5-7.1-32.2-19.6-43z'
], [
primaryColor,
'M112 132v364c0 17.7 14.3 32 32 32h65V100h-65c-17.7 0-32 14.3-32 32zm773.9 358.3c3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-28.3-9.3-55.5-26.1-77.7 3.6-12 5.4-24.4 5.4-37 0-51.6-30.7-98.1-78.3-118.4a66.1 66.1 0 0 0-26.5-5.4H273l.3 428 85.8 310.8C372.9 889 418.9 924 470.9 924c29.7 0 57.4-11.8 77.9-33.4 20.5-21.5 31-49.7 29.5-79.4l-6-122.9h239.9c12.1 0 23.9-3.2 34.3-9.3 40.4-23.5 65.5-66.1 65.5-111 0-28.3-9.3-55.5-26.1-77.7zm-74.7 126.1H496.8l9.6 198.4c.6 11.9-4.7 23.1-14.6 30.5-6.1 4.5-13.6 6.8-21.1 6.7a44.28 44.28 0 0 1-42.2-32.3c-37.1-134.4-64.9-235.2-83.5-302.5V172h399.4a56.85 56.85 0 0 1 33.6 51.8c0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19a56.76 56.76 0 0 1 19.6 43c0 9.7-2.3 18.9-6.9 27.3l-13.9 25.4 21.9 19a56.76 56.76 0 0 1 19.6 43c0 9.7-2.3 18.9-6.9 27.3l-14 25.5 21.9 19a56.76 56.76 0 0 1 19.6 43c0 19.1-11 37.5-28.8 48.4z'
]);
});
exports.DownCircleTwoTone = getIcon('down-circle', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm184.4 277.7l-178 246a7.95 7.95 0 0 1-12.9 0l-178-246c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.3 0 19.9 4.9 25.9 13.2L512 563.6l105.2-145.4c6-8.3 15.7-13.2 25.9-13.2H690c6.5 0 10.3 7.4 6.4 12.7z'
], [
primaryColor,
'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
], [
primaryColor,
'M690 405h-46.9c-10.2 0-19.9 4.9-25.9 13.2L512 563.6 406.8 418.2c-6-8.3-15.6-13.2-25.9-13.2H334c-6.5 0-10.3 7.4-6.5 12.7l178 246c3.2 4.4 9.7 4.4 12.9 0l178-246c3.9-5.3.1-12.7-6.4-12.7z'
]);
});
exports.DownSquareTwoTone = getIcon('down-square', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
], [
secondaryColor,
'M184 840h656V184H184v656zm150-440h46.9c10.3 0 19.9 4.9 25.9 13.2L512 558.6l105.2-145.4c6-8.3 15.7-13.2 25.9-13.2H690c6.5 0 10.3 7.4 6.4 12.7l-178 246a7.95 7.95 0 0 1-12.9 0l-178-246c-3.8-5.3 0-12.7 6.5-12.7z'
], [
primaryColor,
'M505.5 658.7c3.2 4.4 9.7 4.4 12.9 0l178-246c3.9-5.3.1-12.7-6.4-12.7h-46.9c-10.2 0-19.9 4.9-25.9 13.2L512 558.6 406.8 413.2c-6-8.3-15.6-13.2-25.9-13.2H334c-6.5 0-10.3 7.4-6.5 12.7l178 246z'
]);
});
exports.EnvironmentTwoTone = getIcon('environment', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M724.4 224.9C667.7 169.5 592.3 139 512 139s-155.7 30.5-212.4 85.8C243.1 280 212 353.2 212 431.1c0 241.3 234.1 407.2 300 449.1 65.9-41.9 300-207.8 300-449.1 0-77.9-31.1-151.1-87.6-206.2zM512 615c-97.2 0-176-78.8-176-176s78.8-176 176-176 176 78.8 176 176-78.8 176-176 176z'
], [
primaryColor,
'M512 263c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 0 1 512 551c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 0 1 400 439c0-29.9 11.7-58 32.8-79.2C454 338.6 482.1 327 512 327c29.9 0 58 11.6 79.2 32.8S624 409.1 624 439c0 29.9-11.6 58-32.8 79.2z'
], [
primaryColor,
'M854.6 289.1a362.49 362.49 0 0 0-79.9-115.7 370.83 370.83 0 0 0-118.2-77.8C610.7 76.6 562.1 67 512 67c-50.1 0-98.7 9.6-144.5 28.5-44.3 18.3-84 44.5-118.2 77.8A363.6 363.6 0 0 0 169.4 289c-19.5 45-29.4 92.8-29.4 142 0 70.6 16.9 140.9 50.1 208.7 26.7 54.5 64 107.6 111 158.1 80.3 86.2 164.5 138.9 188.4 153a43.9 43.9 0 0 0 22.4 6.1c7.8 0 15.5-2 22.4-6.1 23.9-14.1 108.1-66.8 188.4-153 47-50.4 84.3-103.6 111-158.1C867.1 572 884 501.8 884 431.1c0-49.2-9.9-97-29.4-142zM512 880.2c-65.9-41.9-300-207.8-300-449.1 0-77.9 31.1-151.1 87.6-206.3C356.3 169.5 431.7 139 512 139s155.7 30.5 212.4 85.9C780.9 280 812 353.2 812 431.1c0 241.3-234.1 407.2-300 449.1z'
]);
});
exports.EditTwoTone = getIcon('edit', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [secondaryColor, 'M761.1 288.3L687.8 215 325.1 577.6l-15.6 89 88.9-15.7z'], [
primaryColor,
'M880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32zm-622.3-84c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 0 0 0-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 0 0 9.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89z'
]);
});
exports.ExclamationCircleTwoTone = getIcon('exclamation-circle', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
], [
secondaryColor,
'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm-32 156c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'
], [
primaryColor,
'M488 576h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8zm-24 112a48 48 0 1 0 96 0 48 48 0 1 0-96 0z'
]);
});
exports.ExperimentTwoTone = getIcon('experiment', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M551.9 513c19.6 0 35.9-14.2 39.3-32.8A40.02 40.02 0 0 1 552 512a40 40 0 0 1-40-39.4v.5c0 22 17.9 39.9 39.9 39.9zM752 687.8l-.3-.3c-29-17.5-62.3-26.8-97-26.8-44.9 0-87.2 15.7-121 43.8a256.27 256.27 0 0 1-164.9 59.9c-41.2 0-81-9.8-116.7-28L210.5 844h603l-59.9-155.2-1.6-1z'
], [
primaryColor,
'M879 824.9L696.3 352V178H768v-68H256v68h71.7v174L145 824.9c-2.8 7.4-4.3 15.2-4.3 23.1 0 35.3 28.7 64 64 64h614.6c7.9 0 15.7-1.5 23.1-4.3 33-12.7 49.4-49.8 36.6-82.8zM395.7 364.7V180h232.6v184.7L719.2 600c-20.7-5.3-42.1-8-63.9-8-61.2 0-119.2 21.5-165.3 60a188.78 188.78 0 0 1-121.3 43.9c-32.7 0-64.1-8.3-91.8-23.7l118.8-307.5zM210.5 844l41.6-107.6.1-.2c35.7 18.1 75.4 27.8 116.6 27.8 61.2 0 119.2-21.5 165.3-60 33.9-28.2 76.3-43.9 121.3-43.9 35 0 68.4 9.5 97.6 27.1l.6 1.6L813.5 844h-603z'
], [
primaryColor,
'M552 512c19.3 0 35.4-13.6 39.2-31.8.6-2.7.8-5.4.8-8.2 0-22.1-17.9-40-40-40s-40 17.9-40 40v.6a40 40 0 0 0 40 39.4z'
]);
});
exports.EyeInvisibleTwoTone = getIcon('eye-invisible', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M254.89 758.85l125.57-125.57a176 176 0 0 1 248.82-248.82L757 256.72Q651.69 186.07 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 0 0 0 51.5q69.27 145.91 173.09 221.05zM942.2 486.2Q889.46 375.11 816.7 305L672.48 449.27a176.09 176.09 0 0 1-227.22 227.21L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 0 0 0-51.5z'
], [
primaryColor,
'M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 0 0 0-51.5zM878.63 165.56L836 122.88a8 8 0 0 0-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 0 0 0 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 0 0 0 11.31L155.17 889a8 8 0 0 0 11.31 0l712.15-712.12a8 8 0 0 0 0-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 0 0-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 0 1 146.2-106.69L401.31 546.2A112 112 0 0 1 396 512z'
], [
primaryColor,
'M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 0 0 227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 0 1-112 112z'
]);
});
exports.EyeTwoTone = getIcon('eye', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M81.8 537.8a60.3 60.3 0 0 1 0-51.5C176.6 286.5 319.8 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 0 0 0 51.5C176.6 737.5 319.9 838 512 838c-192.1 0-335.4-100.5-430.2-300.2z'
], [
secondaryColor,
'M512 258c-161.3 0-279.4 81.8-362.7 254C232.6 684.2 350.7 766 512 766c161.4 0 279.5-81.8 362.7-254C791.4 339.8 673.3 258 512 258zm-4 430c-97.2 0-176-78.8-176-176s78.8-176 176-176 176 78.8 176 176-78.8 176-176 176z'
], [
primaryColor,
'M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 0 0 0 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258s279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766z'
], [
primaryColor,
'M508 336c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z'
]);
});
exports.FileAddTwoTone = getIcon('file-add', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42zm126 236v48c0 4.4-3.6 8-8 8H544v108c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V644H372c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h108V472c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v108h108c4.4 0 8 3.6 8 8z'
], [
primaryColor,
'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z'
], [
primaryColor,
'M544 472c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v108H372c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h108v108c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V644h108c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V472z'
]);
});
exports.FileExclamationTwoTone = getIcon('file-exclamation', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42zm-54 96c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V448zm32 336c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40z'
], [
primaryColor,
'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z'
], [
primaryColor,
'M488 640h48c4.4 0 8-3.6 8-8V448c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v184c0 4.4 3.6 8 8 8zm-16 104a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'
]);
});
exports.FileImageTwoTone = getIcon('file-image', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42zm-134 50c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm296 294H328.1c-6.7 0-10.4-7.7-6.3-12.9l99.8-127.2a8 8 0 0 1 12.6 0l41.1 52.4 77.8-99.2a8.1 8.1 0 0 1 12.7 0l136.5 174c4.1 5.2.4 12.9-6.3 12.9z'
], [
primaryColor,
'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z'
], [
primaryColor,
'M553.1 509.1l-77.8 99.2-41.1-52.4a8 8 0 0 0-12.6 0l-99.8 127.2a7.98 7.98 0 0 0 6.3 12.9H696c6.7 0 10.4-7.7 6.3-12.9l-136.5-174a8.1 8.1 0 0 0-12.7 0zM360 442a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'
]);
});
exports.FileExcelTwoTone = getIcon('file-excel', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42zm51.6 120h35.7a12.04 12.04 0 0 1 10.1 18.5L546.1 623l84 130.4c3.6 5.6 2 13-3.6 16.6-2 1.2-4.2 1.9-6.5 1.9h-37.5c-4.1 0-8-2.1-10.2-5.7L510 664.8l-62.7 101.5c-2.2 3.5-6 5.7-10.2 5.7h-34.5a12.04 12.04 0 0 1-10.2-18.4l83.4-132.8-82.3-130.4c-3.6-5.7-1.9-13.1 3.7-16.6 1.9-1.3 4.1-1.9 6.4-1.9H442c4.2 0 8.1 2.2 10.3 5.8l61.8 102.4 61.2-102.3c2.2-3.6 6.1-5.8 10.3-5.8z'
], [
primaryColor,
'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z'
], [
primaryColor,
'M514.1 580.1l-61.8-102.4c-2.2-3.6-6.1-5.8-10.3-5.8h-38.4c-2.3 0-4.5.6-6.4 1.9-5.6 3.5-7.3 10.9-3.7 16.6l82.3 130.4-83.4 132.8a12.04 12.04 0 0 0 10.2 18.4h34.5c4.2 0 8-2.2 10.2-5.7L510 664.8l62.3 101.4c2.2 3.6 6.1 5.7 10.2 5.7H620c2.3 0 4.5-.7 6.5-1.9 5.6-3.6 7.2-11 3.6-16.6l-84-130.4 85.3-132.5a12.04 12.04 0 0 0-10.1-18.5h-35.7c-4.2 0-8.1 2.2-10.3 5.8l-61.2 102.3z'
]);
});
exports.FileMarkdownTwoTone = getIcon('file-markdown', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42zm72.3 122H641c6.6 0 12 5.4 12 12v272c0 6.6-5.4 12-12 12h-27.2c-6.6 0-12-5.4-12-12V581.7L535 732.3c-2 4.3-6.3 7.1-11 7.1h-24.1a12 12 0 0 1-11-7.1l-66.8-150.2V758c0 6.6-5.4 12-12 12H383c-6.6 0-12-5.4-12-12V486c0-6.6 5.4-12 12-12h35c4.8 0 9.1 2.8 11 7.2l83.2 191 83.1-191c1.9-4.4 6.2-7.2 11-7.2z'
], [
primaryColor,
'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z'
], [
primaryColor,
'M429 481.2c-1.9-4.4-6.2-7.2-11-7.2h-35c-6.6 0-12 5.4-12 12v272c0 6.6 5.4 12 12 12h27.1c6.6 0 12-5.4 12-12V582.1l66.8 150.2a12 12 0 0 0 11 7.1H524c4.7 0 9-2.8 11-7.1l66.8-150.6V758c0 6.6 5.4 12 12 12H641c6.6 0 12-5.4 12-12V486c0-6.6-5.4-12-12-12h-34.7c-4.8 0-9.1 2.8-11 7.2l-83.1 191-83.2-191z'
]);
});
exports.FilePdfTwoTone = getIcon('file-pdf', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M509.2 490.8c-.7-1.3-1.4-1.9-2.2-2-2.9 3.3-2.2 31.5 2.7 51.4 4-13.6 4.7-40.5-.5-49.4zm-1.6 120.5c-7.7 20-18.8 47.3-32.1 71.4 4-1.6 8.1-3.3 12.3-5 17.6-7.2 37.3-15.3 58.9-20.2-14.9-11.8-28.4-27.7-39.1-46.2z'
], [
secondaryColor,
'M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42zm55 287.6c16.1-1.9 30.6-2.8 44.3-2.3 12.8.4 23.6 2 32 5.1.2.1.3.1.5.2.4.2.8.3 1.2.5.5.2 1.1.4 1.6.7.1.1.3.1.4.2 4.1 1.8 7.5 4 10.1 6.6 9.1 9.1 11.8 26.1 6.2 39.6-3.2 7.7-11.7 20.5-33.3 20.5-21.8 0-53.9-9.7-82.1-24.8-25.5 4.3-53.7 13.9-80.9 23.1-5.8 2-11.8 4-17.6 5.9-38 65.2-66.5 79.4-84.1 79.4-4.2 0-7.8-.9-10.8-2-6.9-2.6-12.8-8-16.5-15-.9-1.7-1.6-3.4-2.2-5.2-1.6-4.8-2.1-9.6-1.3-13.6l.6-2.7c.1-.2.1-.4.2-.6.2-.7.4-1.4.7-2.1 0-.1.1-.2.1-.3 4.1-11.9 13.6-23.4 27.7-34.6 12.3-9.8 27.1-18.7 45.9-28.4 15.9-28 37.6-75.1 51.2-107.4-10.8-41.8-16.7-74.6-10.1-98.6.9-3.3 2.5-6.4 4.6-9.1.2-.2.3-.4.5-.6.1-.1.1-.2.2-.2 6.3-7.5 16.9-11.9 28.1-11.5 16.6.7 29.7 11.5 33 30.1 1.7 8 2.2 16.5 1.9 25.7v.7c0 .5 0 1-.1 1.5-.7 13.3-3 26.6-7.3 44.7-.4 1.6-.8 3.2-1.2 5.2l-1 4.1-.1.3c.1.2.1.3.2.5l1.8 4.5c.1.3.3.7.4 1 .7 1.6 1.4 3.3 2.1 4.8v.1c8.7 18.8 19.7 33.4 33.9 45.1 4.3 3.5 8.9 6.7 13.9 9.8 1.8-.5 3.5-.7 5.3-.9z'
], [
secondaryColor,
'M391.5 761c5.7-4.4 16.2-14.5 30.1-34.7-10.3 9.4-23.4 22.4-30.1 34.7zm270.9-83l.2-.3h.2c.6-.4.5-.7.4-.9-.1-.1-4.5-9.3-45.1-7.4 35.3 13.9 43.5 9.1 44.3 8.6z'
], [
primaryColor,
'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z'
], [
primaryColor,
'M535.9 585.3c-.8-1.7-1.5-3.3-2.2-4.9-.1-.3-.3-.7-.4-1l-1.8-4.5c-.1-.2-.1-.3-.2-.5l.1-.3.2-1.1c4-16.3 8.6-35.3 9.4-54.4v-.7c.3-8.6-.2-17.2-2-25.6-3.8-21.3-19.5-29.6-32.9-30.2-11.3-.5-21.8 4-28.1 11.4-.1.1-.1.2-.2.2-.2.2-.4.4-.5.6-2.1 2.7-3.7 5.8-4.6 9.1-6.6 24-.7 56.8 10.1 98.6-13.6 32.4-35.3 79.4-51.2 107.4v.1c-27.7 14.3-64.1 35.8-73.6 62.9 0 .1-.1.2-.1.3-.2.7-.5 1.4-.7 2.1-.1.2-.1.4-.2.6-.2.9-.5 1.8-.6 2.7-.9 4-.4 8.8 1.3 13.6.6 1.8 1.3 3.5 2.2 5.2 3.7 7 9.6 12.4 16.5 15 3 1.1 6.6 2 10.8 2 17.6 0 46.1-14.2 84.1-79.4 5.8-1.9 11.8-3.9 17.6-5.9 27.2-9.2 55.4-18.8 80.9-23.1 28.2 15.1 60.3 24.8 82.1 24.8 21.6 0 30.1-12.8 33.3-20.5 5.6-13.5 2.9-30.5-6.2-39.6-2.6-2.6-6-4.8-10.1-6.6-.1-.1-.3-.1-.4-.2-.5-.2-1.1-.4-1.6-.7-.4-.2-.8-.3-1.2-.5-.2-.1-.3-.1-.5-.2-16.2-5.8-41.7-6.7-76.3-2.8l-5.3.6c-5-3-9.6-6.3-13.9-9.8-14.2-11.3-25.1-25.8-33.8-44.7zM391.5 761c6.7-12.3 19.8-25.3 30.1-34.7-13.9 20.2-24.4 30.3-30.1 34.7zM507 488.8c.8.1 1.5.7 2.2 2 5.2 8.9 4.5 35.8.5 49.4-4.9-19.9-5.6-48.1-2.7-51.4zm-19.2 188.9c-4.2 1.7-8.3 3.4-12.3 5 13.3-24.1 24.4-51.4 32.1-71.4 10.7 18.5 24.2 34.4 39.1 46.2-21.6 4.9-41.3 13-58.9 20.2zm175.4-.9c.1.2.2.5-.4.9h-.2l-.2.3c-.8.5-9 5.3-44.3-8.6 40.6-1.9 45 7.3 45.1 7.4z'
]);
});
exports.FilePptTwoTone = getIcon('file-ppt', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M464.5 516.2v108.4h38.9c44.7 0 71.2-10.9 71.2-54.3 0-34.4-20.1-54.1-53.9-54.1h-56.2z'
], [
secondaryColor,
'M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42zm90 218.4c0 55.2-36.8 94.1-96.2 94.1h-63.3V760c0 4.4-3.6 8-8 8H424c-4.4 0-8-3.6-8-8V484c0-4.4 3.6-8 8-8v.1h104c59.7 0 96 39.8 96 94.3z'
], [
primaryColor,
'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z'
], [
primaryColor,
'M424 476.1c-4.4-.1-8 3.5-8 7.9v276c0 4.4 3.6 8 8 8h32.5c4.4 0 8-3.6 8-8v-95.5h63.3c59.4 0 96.2-38.9 96.2-94.1 0-54.5-36.3-94.3-96-94.3H424zm150.6 94.2c0 43.4-26.5 54.3-71.2 54.3h-38.9V516.2h56.2c33.8 0 53.9 19.7 53.9 54.1z'
]);
});
exports.FileTextTwoTone = getIcon('file-text', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42zm-22 322c0 4.4-3.6 8-8 8H320c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zm200-184v48c0 4.4-3.6 8-8 8H320c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h384c4.4 0 8 3.6 8 8z'
], [
primaryColor,
'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z'
], [
primaryColor,
'M312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8zm192 128H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z'
]);
});
exports.FileUnknownTwoTone = getIcon('file-unknown', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42zm-22 424c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm110-228.4c.7 44.9-29.7 84.5-74.3 98.9-5.7 1.8-9.7 7.3-9.7 13.3V672c0 5.5-4.5 10-10 10h-32c-5.5 0-10-4.5-10-10v-32c.2-19.8 15.4-37.3 34.7-40.1C549 596.2 570 574.3 570 549c0-28.1-25.8-51.5-58-51.5s-58 23.4-58 51.6c0 5.2-4.4 9.4-9.8 9.4h-32.4c-5.4 0-9.8-4.1-9.8-9.5 0-57.4 50.1-103.7 111.5-103 59.3.8 107.7 46.1 108.5 101.6z'
], [
primaryColor,
'M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.6-9.4-22.6zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z'
], [
primaryColor,
'M480 744a32 32 0 1 0 64 0 32 32 0 1 0-64 0zm-78-195c0 5.4 4.4 9.5 9.8 9.5h32.4c5.4 0 9.8-4.2 9.8-9.4 0-28.2 25.8-51.6 58-51.6s58 23.4 58 51.5c0 25.3-21 47.2-49.3 50.9-19.3 2.8-34.5 20.3-34.7 40.1v32c0 5.5 4.5 10 10 10h32c5.5 0 10-4.5 10-10v-12.2c0-6 4-11.5 9.7-13.3 44.6-14.4 75-54 74.3-98.9-.8-55.5-49.2-100.8-108.5-101.6-61.4-.7-111.5 45.6-111.5 103z'
]);
});
exports.FileZipTwoTone = getIcon('file-zip', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [secondaryColor, 'M344 630h32v2h-32z'], [
secondaryColor,
'M534 352V136H360v64h64v64h-64v64h64v64h-64v64h64v64h-64v62h64v160H296V520h64v-64h-64v-64h64v-64h-64v-64h64v-64h-64v-64h-64v752h560V394H576a42 42 0 0 1-42-42z'
], [
primaryColor,
'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h64v64h64v-64h174v216a42 42 0 0 0 42 42h216v494z'
], [
primaryColor,
'M296 392h64v64h-64zm0-128h64v64h-64zm0 318v160h128V582h-64v-62h-64v62zm48 50v-2h32v64h-32v-62zm16-432h64v64h-64zm0 256h64v64h-64zm0-128h64v64h-64z'
]);
});
exports.FileWordTwoTone = getIcon('file-word', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42zm101.3 129.3c1.3-5.4 6.1-9.3 11.7-9.3h35.6a12.04 12.04 0 0 1 11.6 15.1l-74.4 276c-1.4 5.3-6.2 8.9-11.6 8.9h-31.8c-5.4 0-10.2-3.7-11.6-8.9l-52.8-197-52.8 197c-1.4 5.3-6.2 8.9-11.6 8.9h-32c-5.4 0-10.2-3.7-11.6-8.9l-74.2-276a12.02 12.02 0 0 1 11.6-15.1h35.4c5.6 0 10.4 3.9 11.7 9.3L434.6 680l49.7-198.9c1.3-5.4 6.1-9.1 11.6-9.1h32.2c5.5 0 10.3 3.7 11.6 9.1l49.8 199.3 45.8-199.1z'
], [
primaryColor,
'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z'
], [
primaryColor,
'M528.1 472h-32.2c-5.5 0-10.3 3.7-11.6 9.1L434.6 680l-46.1-198.7c-1.3-5.4-6.1-9.3-11.7-9.3h-35.4a12.02 12.02 0 0 0-11.6 15.1l74.2 276c1.4 5.2 6.2 8.9 11.6 8.9h32c5.4 0 10.2-3.6 11.6-8.9l52.8-197 52.8 197c1.4 5.2 6.2 8.9 11.6 8.9h31.8c5.4 0 10.2-3.6 11.6-8.9l74.4-276a12.04 12.04 0 0 0-11.6-15.1H647c-5.6 0-10.4 3.9-11.7 9.3l-45.8 199.1-49.8-199.3c-1.3-5.4-6.1-9.1-11.6-9.1z'
]);
});
exports.FileTwoTone = getIcon('file', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [secondaryColor, 'M534 352V136H232v752h560V394H576a42 42 0 0 1-42-42z'], [
primaryColor,
'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0 0 42 42h216v494z'
]);
});
exports.FilterTwoTone = getIcon('filter', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M420.6 798h182.9V642H420.6zM411 561.4l9.5 16.6h183l9.5-16.6L811.3 226H212.7z'
], [
primaryColor,
'M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.5 798H420.6V642h182.9v156zm9.5-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z'
]);
});
exports.FireTwoTone = getIcon('fire', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M737 438.6c-9.6 15.5-21.1 30.7-34.4 45.6a73.1 73.1 0 0 1-51 24.4 73.36 73.36 0 0 1-53.4-18.8 74.01 74.01 0 0 1-24.4-59.8c3-47.4-12.4-103.1-45.8-165.7-16.9-31.4-37.1-58.2-61.2-80.4a240 240 0 0 1-12.1 46.5 354.26 354.26 0 0 1-58.2 101 349.6 349.6 0 0 1-58.6 56.8c-34 26.1-62 60-80.8 97.9a275.96 275.96 0 0 0-29.1 124c0 74.9 29.5 145.3 83 198.4 53.7 53.2 125 82.4 201 82.4s147.3-29.2 201-82.4c53.5-53 83-123.5 83-198.4 0-39.2-8.1-77.3-24-113.1-9.3-21-21-40.5-35-58.4z'
], [
primaryColor,
'M834.1 469.2A347.49 347.49 0 0 0 751.2 354l-29.1-26.7a8.09 8.09 0 0 0-13 3.3l-13 37.3c-8.1 23.4-23 47.3-44.1 70.8-1.4 1.5-3 1.9-4.1 2-1.1.1-2.8-.1-4.3-1.5-1.4-1.2-2.1-3-2-4.8 3.7-60.2-14.3-128.1-53.7-202C555.3 171 510 123.1 453.4 89.7l-41.3-24.3c-5.4-3.2-12.3 1-12 7.3l2.2 48c1.5 32.8-2.3 61.8-11.3 85.9-11 29.5-26.8 56.9-47 81.5a295.64 295.64 0 0 1-47.5 46.1 352.6 352.6 0 0 0-100.3 121.5A347.75 347.75 0 0 0 160 610c0 47.2 9.3 92.9 27.7 136a349.4 349.4 0 0 0 75.5 110.9c32.4 32 70 57.2 111.9 74.7C418.5 949.8 464.5 959 512 959s93.5-9.2 136.9-27.3A348.6 348.6 0 0 0 760.8 857c32.4-32 57.8-69.4 75.5-110.9a344.2 344.2 0 0 0 27.7-136c0-48.8-10-96.2-29.9-140.9zM713 808.5c-53.7 53.2-125 82.4-201 82.4s-147.3-29.2-201-82.4c-53.5-53.1-83-123.5-83-198.4 0-43.5 9.8-85.2 29.1-124 18.8-37.9 46.8-71.8 80.8-97.9a349.6 349.6 0 0 0 58.6-56.8c25-30.5 44.6-64.5 58.2-101a240 240 0 0 0 12.1-46.5c24.1 22.2 44.3 49 61.2 80.4 33.4 62.6 48.8 118.3 45.8 165.7a74.01 74.01 0 0 0 24.4 59.8 73.36 73.36 0 0 0 53.4 18.8c19.7-1 37.8-9.7 51-24.4 13.3-14.9 24.8-30.1 34.4-45.6 14 17.9 25.7 37.4 35 58.4 15.9 35.8 24 73.9 24 113.1 0 74.9-29.5 145.4-83 198.4z'
]);
});
exports.FolderAddTwoTone = getIcon('folder-add', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M372.5 256H184v512h656V370.4H492.1L372.5 256zM540 443.1V528h84.5c4.1 0 7.5 3.1 7.5 7v42c0 3.8-3.4 7-7.5 7H540v84.9c0 3.9-3.1 7.1-7 7.1h-42c-3.8 0-7-3.2-7-7.1V584h-84.5c-4.1 0-7.5-3.2-7.5-7v-42c0-3.9 3.4-7 7.5-7H484v-84.9c0-3.9 3.2-7.1 7-7.1h42c3.9 0 7 3.2 7 7.1z'
], [
primaryColor,
'M880 298.4H521L403.7 186.2a8.15 8.15 0 0 0-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z'
], [
primaryColor,
'M484 443.1V528h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H484v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V584h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H540v-84.9c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1z'
]);
});
exports.FlagTwoTone = getIcon('flag', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [secondaryColor, 'M184 232h368v336H184z'], [secondaryColor, 'M624 632c0 4.4-3.6 8-8 8H504v73h336V377H624v255z'], [
primaryColor,
'M880 305H624V192c0-17.7-14.3-32-32-32H184v-40c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v784c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V640h248v113c0 17.7 14.3 32 32 32h416c17.7 0 32-14.3 32-32V337c0-17.7-14.3-32-32-32zM184 568V232h368v336H184zm656 145H504v-73h112c4.4 0 8-3.6 8-8V377h216v336z'
]);
});
exports.FolderTwoTone = getIcon('folder', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M880 298.4H521L403.7 186.2a8.15 8.15 0 0 0-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z'
], [secondaryColor, 'M372.5 256H184v512h656V370.4H492.1z']);
});
exports.FolderOpenTwoTone = getIcon('folder-open', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [secondaryColor, 'M159 768h612.3l103.4-256H262.3z'], [
primaryColor,
'M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 0 0-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z'
]);
});
exports.FrownTwoTone = getIcon('frown', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
], [
secondaryColor,
'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zM288 421a48.01 48.01 0 0 1 96 0 48.01 48.01 0 0 1-96 0zm376 272h-48.1c-4.2 0-7.8-3.2-8.1-7.4C604 636.1 562.5 597 512 597s-92.1 39.1-95.8 88.6c-.3 4.2-3.9 7.4-8.1 7.4H360a8 8 0 0 1-8-8.4c4.4-84.3 74.5-151.6 160-151.6s155.6 67.3 160 151.6a8 8 0 0 1-8 8.4zm24-224a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'
], [
primaryColor,
'M288 421a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm224 112c-85.5 0-155.6 67.3-160 151.6a8 8 0 0 0 8 8.4h48.1c4.2 0 7.8-3.2 8.1-7.4 3.7-49.5 45.3-88.6 95.8-88.6s92 39.1 95.8 88.6c.3 4.2 3.9 7.4 8.1 7.4H664a8 8 0 0 0 8-8.4C667.6 600.3 597.5 533 512 533zm128-112a48 48 0 1 0 96 0 48 48 0 1 0-96 0z'
]);
});
exports.FundTwoTone = getIcon('fund', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136V232h752v560z'
], [
secondaryColor,
'M136 792h752V232H136v560zm56.4-130.5l214.9-215c3.1-3.1 8.2-3.1 11.3 0L533 561l254.5-254.6c3.1-3.1 8.2-3.1 11.3 0l36.8 36.8c3.1 3.1 3.1 8.2 0 11.3l-297 297.2a8.03 8.03 0 0 1-11.3 0L412.9 537.2 240.4 709.7a8.03 8.03 0 0 1-11.3 0l-36.7-36.9a8.03 8.03 0 0 1 0-11.3z'
], [
primaryColor,
'M229.1 709.7c3.1 3.1 8.2 3.1 11.3 0l172.5-172.5 114.4 114.5c3.1 3.1 8.2 3.1 11.3 0l297-297.2c3.1-3.1 3.1-8.2 0-11.3l-36.8-36.8a8.03 8.03 0 0 0-11.3 0L533 561 418.6 446.5a8.03 8.03 0 0 0-11.3 0l-214.9 215a8.03 8.03 0 0 0 0 11.3l36.7 36.9z'
]);
});
exports.FunnelPlotTwoTone = getIcon('funnel-plot', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M420.6 798h182.9V650H420.6zM297.7 374h428.6l85-148H212.7zm113.2 197.4l8.4 14.6h185.3l8.4-14.6L689.6 438H334.4z'
], [
primaryColor,
'M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 607.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V607.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.5 798H420.6V650h182.9v148zm9.5-226.6l-8.4 14.6H419.3l-8.4-14.6L334.4 438h355.2L613 571.4zM726.3 374H297.7l-85-148h598.6l-85 148z'
]);
});
exports.GiftTwoTone = getIcon('gift', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M546 378h298v104H546zM228 550h250v308H228zm-48-172h298v104H180zm366 172h250v308H546z'
], [
primaryColor,
'M880 310H732.4c13.6-21.4 21.6-46.8 21.6-74 0-76.1-61.9-138-138-138-41.4 0-78.7 18.4-104 47.4-25.3-29-62.6-47.4-104-47.4-76.1 0-138 61.9-138 138 0 27.2 7.9 52.6 21.6 74H144c-17.7 0-32 14.3-32 32v200c0 4.4 3.6 8 8 8h40v344c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V550h40c4.4 0 8-3.6 8-8V342c0-17.7-14.3-32-32-32zM478 858H228V550h250v308zm0-376H180V378h298v104zm0-176h-70c-38.6 0-70-31.4-70-70s31.4-70 70-70 70 31.4 70 70v70zm68-70c0-38.6 31.4-70 70-70s70 31.4 70 70-31.4 70-70 70h-70v-70zm250 622H546V550h250v308zm48-376H546V378h298v104z'
]);
});
exports.HddTwoTone = getIcon('hdd', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M232 888h560V680H232v208zm448-140c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zM232 616h560V408H232v208zm72-128c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H312c-4.4 0-8-3.6-8-8v-48zm-72-144h560V136H232v208zm72-128c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H312c-4.4 0-8-3.6-8-8v-48z'
], [
primaryColor,
'M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V680h560v208zm0-272H232V408h560v208zm0-272H232V136h560v208z'
], [
primaryColor,
'M312 544h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0-272h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H312c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm328 516a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'
]);
});
exports.HeartTwoTone = getIcon('heart', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M923 283.6a260.04 260.04 0 0 0-56.9-82.8 264.4 264.4 0 0 0-84-55.5A265.34 265.34 0 0 0 679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 0 0-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z'
], [
secondaryColor,
'M679.7 201c-73.1 0-136.5 40.8-167.7 100.4C480.8 241.8 417.4 201 344.3 201c-104 0-188.3 82.6-188.3 184.5 0 201.2 356 429.3 356 429.3s356-228.1 356-429.3C868 283.6 783.7 201 679.7 201z'
]);
});
exports.HighlightTwoTone = getIcon('highlight', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M229.6 796.3h160.2l54.3-54.1-80.1-78.9zm220.7-397.1l262.8 258.9 147.3-145-262.8-259zm-77.1 166.1l171.4 168.9 68.6-67.6-171.4-168.9z'
], [
primaryColor,
'M957.6 507.5L603.2 158.3a7.9 7.9 0 0 0-11.2 0L353.3 393.5a8.03 8.03 0 0 0-.1 11.3l.1.1 40 39.4-117.2 115.3a8.03 8.03 0 0 0-.1 11.3l.1.1 39.5 38.9-189.1 187H72.1c-4.4 0-8.1 3.6-8.1 8v55.2c0 4.4 3.6 8 8 8h344.9c2.1 0 4.1-.8 5.6-2.3l76.1-75.6L539 830a7.9 7.9 0 0 0 11.2 0l117.1-115.6 40.1 39.5a7.9 7.9 0 0 0 11.2 0l238.7-235.2c3.4-3 3.4-8 .3-11.2zM389.8 796.3H229.6l134.4-133 80.1 78.9-54.3 54.1zm154.8-62.1L373.2 565.3l68.6-67.6 171.4 168.9-68.6 67.6zm168.5-76.1L450.3 399.2l147.3-145.1 262.8 259-147.3 145z'
]);
});
exports.HomeTwoTone = getIcon('home', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M512.1 172.6l-370 369.7h96V868H392V640c0-22.1 17.9-40 40-40h160c22.1 0 40 17.9 40 40v228h153.9V542.3H882L535.2 195.7l-23.1-23.1zm434.5 422.9c-6 6-13.1 10.8-20.8 13.9 7.7-3.2 14.8-7.9 20.8-13.9zm-887-34.7c5 30.3 31.4 53.5 63.1 53.5h.9c-31.9 0-58.9-23-64-53.5zm-.9-10.5v-1.9 1.9zm.1-2.6c.1-3.1.5-6.1 1-9.1-.6 2.9-.9 6-1 9.1z'
], [
primaryColor,
'M951 510c0-.1-.1-.1-.1-.2l-1.8-2.1c-.1-.1-.2-.3-.4-.4-.7-.8-1.5-1.6-2.2-2.4L560.1 118.8l-25.9-25.9a31.5 31.5 0 0 0-44.4 0L77.5 505a63.6 63.6 0 0 0-16 26.6l-.6 2.1-.3 1.1-.3 1.2c-.2.7-.3 1.4-.4 2.1 0 .1 0 .3-.1.4-.6 3-.9 6-1 9.1v3.3c0 .5 0 1 .1 1.5 0 .5 0 .9.1 1.4 0 .5.1 1 .1 1.5 0 .6.1 1.2.2 1.8 0 .3.1.6.1.9l.3 2.5v.1c5.1 30.5 32.2 53.5 64 53.5h42.5V940h691.7V614.3h43.4c8.6 0 16.9-1.7 24.5-4.9s14.7-7.9 20.8-13.9a63.6 63.6 0 0 0 18.7-45.3c0-14.7-5-28.8-14.3-40.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z'
]);
});
exports.HourglassTwoTone = getIcon('hourglass', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M512 548c-42.2 0-81.9 16.4-111.7 46.3A156.63 156.63 0 0 0 354 706v134h316V706c0-42.2-16.4-81.9-46.3-111.7A156.63 156.63 0 0 0 512 548zM354 318c0 42.2 16.4 81.9 46.3 111.7C430.1 459.6 469.8 476 512 476s81.9-16.4 111.7-46.3C653.6 399.9 670 360.2 670 318V184H354v134z'
], [
primaryColor,
'M742 318V184h86c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H196c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h86v134c0 81.5 42.4 153.2 106.4 194-64 40.8-106.4 112.5-106.4 194v134h-86c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h632c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-86V706c0-81.5-42.4-153.2-106.4-194 64-40.8 106.4-112.5 106.4-194zm-72 388v134H354V706c0-42.2 16.4-81.9 46.3-111.7C430.1 564.4 469.8 548 512 548s81.9 16.4 111.7 46.3C653.6 624.1 670 663.8 670 706zm0-388c0 42.2-16.4 81.9-46.3 111.7C593.9 459.6 554.2 476 512 476s-81.9-16.4-111.7-46.3A156.63 156.63 0 0 1 354 318V184h316v134z'
]);
});
exports.Html5TwoTone = getIcon('html5', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M145 96l66 746.6L511.8 928l299.6-85.4L878.7 96H145zm610.9 700.6l-244.1 69.6-245.2-69.6-56.7-641.2h603.8l-57.8 641.2z'
], [
secondaryColor,
'M209.9 155.4l56.7 641.2 245.2 69.6 244.1-69.6 57.8-641.2H209.9zm530.4 117.9l-4.8 47.2-1.7 19.5H381.7l8.2 94.2H511v-.2h214.7l-3.2 24.3-21.2 242.2-1.7 16.3-187.7 51.7v.4h-1.7l-188.6-52-11.3-144.7h91l6.5 73.2 102.4 27.7h.8v-.2l102.4-27.7 11.4-118.5H511.9v.1H305.4l-22.7-253.5L281 249h461l-1.7 24.3z'
], [
primaryColor,
'M281 249l1.7 24.3 22.7 253.5h206.5v-.1h112.9l-11.4 118.5L511 672.9v.2h-.8l-102.4-27.7-6.5-73.2h-91l11.3 144.7 188.6 52h1.7v-.4l187.7-51.7 1.7-16.3 21.2-242.2 3.2-24.3H511v.2H389.9l-8.2-94.2h352.1l1.7-19.5 4.8-47.2L742 249H511z'
]);
});
exports.IdcardTwoTone = getIcon('idcard', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136V232h752v560z'
], [
secondaryColor,
'M136 792h752V232H136v560zm472-372c0-4.4 1-8 2.3-8h123.4c1.3 0 2.3 3.6 2.3 8v48c0 4.4-1 8-2.3 8H610.3c-1.3 0-2.3-3.6-2.3-8v-48zm0 144c0-4.4 3.2-8 7.1-8h185.7c3.9 0 7.1 3.6 7.1 8v48c0 4.4-3.2 8-7.1 8H615.1c-3.9 0-7.1-3.6-7.1-8v-48zM216.2 664.6c2.8-53.3 31.9-99.6 74.6-126.1-18.1-20-29.1-46.4-29.1-75.5 0-61.9 49.9-112 111.4-112s111.4 50.1 111.4 112c0 29.1-11 55.6-29.1 75.5 42.6 26.4 71.8 72.8 74.6 126.1a8 8 0 0 1-8 8.4h-43.9c-4.2 0-7.6-3.3-7.9-7.5-3.8-50.5-46-90.5-97.2-90.5s-93.4 40-97.2 90.5c-.3 4.2-3.7 7.5-7.9 7.5H224c-4.6 0-8.2-3.8-7.8-8.4z'
], [
secondaryColor,
'M321.3 463a51.7 52 0 1 0 103.4 0 51.7 52 0 1 0-103.4 0z'
], [
primaryColor,
'M610.3 476h123.4c1.3 0 2.3-3.6 2.3-8v-48c0-4.4-1-8-2.3-8H610.3c-1.3 0-2.3 3.6-2.3 8v48c0 4.4 1 8 2.3 8zm4.8 144h185.7c3.9 0 7.1-3.6 7.1-8v-48c0-4.4-3.2-8-7.1-8H615.1c-3.9 0-7.1 3.6-7.1 8v48c0 4.4 3.2 8 7.1 8zM224 673h43.9c4.2 0 7.6-3.3 7.9-7.5 3.8-50.5 46-90.5 97.2-90.5s93.4 40 97.2 90.5c.3 4.2 3.7 7.5 7.9 7.5H522a8 8 0 0 0 8-8.4c-2.8-53.3-32-99.7-74.6-126.1a111.8 111.8 0 0 0 29.1-75.5c0-61.9-49.9-112-111.4-112s-111.4 50.1-111.4 112c0 29.1 11 55.5 29.1 75.5a158.09 158.09 0 0 0-74.6 126.1c-.4 4.6 3.2 8.4 7.8 8.4zm149-262c28.5 0 51.7 23.3 51.7 52s-23.2 52-51.7 52-51.7-23.3-51.7-52 23.2-52 51.7-52z'
]);
});
exports.InfoCircleTwoTone = getIcon('info-circle', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
], [
secondaryColor,
'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm32 588c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'
], [
primaryColor,
'M464 336a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z'
]);
});
exports.InsuranceTwoTone = getIcon('insurance', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6z'
], [secondaryColor, 'M521.9 358.8h97.9v41.6h-97.9z'], [
secondaryColor,
'M214 226.7v427.6l298 232.2 298-232.2V226.7L512 125.1 214 226.7zM413.3 656h-.2c0 4.4-3.6 8-8 8h-37.3c-4.4 0-8-3.6-8-8V471.4c-7.7 9.2-15.4 17.9-23.1 26a6.04 6.04 0 0 1-10.2-2.4l-13.2-43.5c-.6-2-.2-4.1 1.2-5.6 37-43.4 64.7-95.1 82.2-153.6 1.1-3.5 5-5.3 8.4-3.7l38.6 18.3c2.7 1.3 4.1 4.4 3.2 7.2a429.2 429.2 0 0 1-33.6 79V656zm257.9-340v127.2c0 4.4-3.6 8-8 8h-66.7v18.6h98.8c4.4 0 8 3.6 8 8v35.6c0 4.4-3.6 8-8 8h-59c18.1 29.1 41.8 54.3 72.3 76.9 2.6 2.1 3.2 5.9 1.2 8.5l-26.3 35.3a5.92 5.92 0 0 1-8.9.7c-30.6-29.3-56.8-65.2-78.1-106.9V656c0 4.4-3.6 8-8 8h-36.2c-4.4 0-8-3.6-8-8V536c-22 44.7-49 80.8-80.6 107.6a6.38 6.38 0 0 1-4.8 1.4c-1.7-.3-3.2-1.3-4.1-2.8L432 605.7a6 6 0 0 1 1.6-8.1c28.6-20.3 51.9-45.2 71-76h-55.1c-4.4 0-8-3.6-8-8V478c0-4.4 3.6-8 8-8h94.9v-18.6h-65.9c-4.4 0-8-3.6-8-8V316c0-4.4 3.6-8 8-8h184.7c4.4 0 8 3.6 8 8z'
], [
primaryColor,
'M443.7 306.9l-38.6-18.3c-3.4-1.6-7.3.2-8.4 3.7-17.5 58.5-45.2 110.2-82.2 153.6a5.7 5.7 0 0 0-1.2 5.6l13.2 43.5c1.4 4.5 7 5.8 10.2 2.4 7.7-8.1 15.4-16.8 23.1-26V656c0 4.4 3.6 8 8 8h37.3c4.4 0 8-3.6 8-8h.2V393.1a429.2 429.2 0 0 0 33.6-79c.9-2.8-.5-5.9-3.2-7.2zm26.8 9.1v127.4c0 4.4 3.6 8 8 8h65.9V470h-94.9c-4.4 0-8 3.6-8 8v35.6c0 4.4 3.6 8 8 8h55.1c-19.1 30.8-42.4 55.7-71 76a6 6 0 0 0-1.6 8.1l22.8 36.5c.9 1.5 2.4 2.5 4.1 2.8 1.7.3 3.5-.2 4.8-1.4 31.6-26.8 58.6-62.9 80.6-107.6v120c0 4.4 3.6 8 8 8h36.2c4.4 0 8-3.6 8-8V535.9c21.3 41.7 47.5 77.6 78.1 106.9 2.6 2.5 6.7 2.2 8.9-.7l26.3-35.3c2-2.6 1.4-6.4-1.2-8.5-30.5-22.6-54.2-47.8-72.3-76.9h59c4.4 0 8-3.6 8-8v-35.6c0-4.4-3.6-8-8-8h-98.8v-18.6h66.7c4.4 0 8-3.6 8-8V316c0-4.4-3.6-8-8-8H478.5c-4.4 0-8 3.6-8 8zm51.4 42.8h97.9v41.6h-97.9v-41.6z'
]);
});
exports.InteractionTwoTone = getIcon('interaction', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
], [
secondaryColor,
'M184 840h656V184H184v656zm114-401.9c0-55.3 44.6-100.1 99.7-100.1h205.8v-53.4c0-5.6 6.5-8.8 10.9-5.3L723.5 365c3.5 2.7 3.5 8 0 10.7l-109.1 85.7c-4.4 3.5-10.9.4-10.9-5.3v-53.4H397.8c-19.6 0-35.5 15.9-35.5 35.6v78.9c0 3.8-3.1 6.8-6.8 6.8h-50.7c-3.8 0-6.8-3-6.8-7v-78.9zm2.6 210.3l109.1-85.7c4.4-3.5 10.9-.4 10.9 5.3v53.4h205.6c19.6 0 35.5-15.9 35.5-35.6v-78.9c0-3.8 3.1-6.8 6.8-6.8h50.7c3.8 0 6.8 3.1 6.8 6.8v78.9c0 55.3-44.6 100.1-99.7 100.1H420.6v53.4c0 5.6-6.5 8.8-10.9 5.3l-109.1-85.7c-3.5-2.7-3.5-8 0-10.5z'
], [
primaryColor,
'M304.8 524h50.7c3.7 0 6.8-3 6.8-6.8v-78.9c0-19.7 15.9-35.6 35.5-35.6h205.7v53.4c0 5.7 6.5 8.8 10.9 5.3l109.1-85.7c3.5-2.7 3.5-8 0-10.7l-109.1-85.7c-4.4-3.5-10.9-.3-10.9 5.3V338H397.7c-55.1 0-99.7 44.8-99.7 100.1V517c0 4 3 7 6.8 7zm-4.2 134.9l109.1 85.7c4.4 3.5 10.9.3 10.9-5.3v-53.4h205.7c55.1 0 99.7-44.8 99.7-100.1v-78.9c0-3.7-3-6.8-6.8-6.8h-50.7c-3.7 0-6.8 3-6.8 6.8v78.9c0 19.7-15.9 35.6-35.5 35.6H420.6V568c0-5.7-6.5-8.8-10.9-5.3l-109.1 85.7c-3.5 2.5-3.5 7.8 0 10.5z'
]);
});
exports.InterationTwoTone = getIcon('interation', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
], [
secondaryColor,
'M184 840h656V184H184v656zm114-401.9c0-55.3 44.6-100.1 99.7-100.1h205.8v-53.4c0-5.6 6.5-8.8 10.9-5.3L723.5 365c3.5 2.7 3.5 8 0 10.7l-109.1 85.7c-4.4 3.5-10.9.4-10.9-5.3v-53.4H397.8c-19.6 0-35.5 15.9-35.5 35.6v78.9c0 3.8-3.1 6.8-6.8 6.8h-50.7c-3.8 0-6.8-3-6.8-7v-78.9zm2.6 210.3l109.1-85.7c4.4-3.5 10.9-.4 10.9 5.3v53.4h205.6c19.6 0 35.5-15.9 35.5-35.6v-78.9c0-3.8 3.1-6.8 6.8-6.8h50.7c3.8 0 6.8 3.1 6.8 6.8v78.9c0 55.3-44.6 100.1-99.7 100.1H420.6v53.4c0 5.6-6.5 8.8-10.9 5.3l-109.1-85.7c-3.5-2.7-3.5-8 0-10.5z'
], [
primaryColor,
'M304.8 524h50.7c3.7 0 6.8-3 6.8-6.8v-78.9c0-19.7 15.9-35.6 35.5-35.6h205.7v53.4c0 5.7 6.5 8.8 10.9 5.3l109.1-85.7c3.5-2.7 3.5-8 0-10.7l-109.1-85.7c-4.4-3.5-10.9-.3-10.9 5.3V338H397.7c-55.1 0-99.7 44.8-99.7 100.1V517c0 4 3 7 6.8 7zm-4.2 134.9l109.1 85.7c4.4 3.5 10.9.3 10.9-5.3v-53.4h205.7c55.1 0 99.7-44.8 99.7-100.1v-78.9c0-3.7-3-6.8-6.8-6.8h-50.7c-3.7 0-6.8 3-6.8 6.8v78.9c0 19.7-15.9 35.6-35.5 35.6H420.6V568c0-5.7-6.5-8.8-10.9-5.3l-109.1 85.7c-3.5 2.5-3.5 7.8 0 10.5z'
]);
});
exports.LayoutTwoTone = getIcon('layout', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M384 185h456v136H384zm-200 0h136v656H184zm696-73H144c-17.7 0-32 14.3-32 32v1c0-17.7 14.3-32 32-32h736c17.7 0 32 14.3 32 32v-1c0-17.7-14.3-32-32-32zM384 385h456v456H384z'
], [
primaryColor,
'M880 113H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V145c0-17.7-14.3-32-32-32zM320 841H184V185h136v656zm520 0H384V385h456v456zm0-520H384V185h456v136z'
]);
});
exports.LeftCircleTwoTone = getIcon('left-circle', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm104 240.9c0 10.3-4.9 19.9-13.2 25.9L457.4 512l145.4 105.1c8.3 6 13.2 15.7 13.2 25.9v46.9c0 6.5-7.4 10.3-12.7 6.5l-246-178a7.95 7.95 0 0 1 0-12.9l246-178c5.3-3.8 12.7 0 12.7 6.5v46.9z'
], [
primaryColor,
'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
], [
primaryColor,
'M603.3 327.5l-246 178a7.95 7.95 0 0 0 0 12.9l246 178c5.3 3.8 12.7 0 12.7-6.5V643c0-10.2-4.9-19.9-13.2-25.9L457.4 512l145.4-105.2c8.3-6 13.2-15.6 13.2-25.9V334c0-6.5-7.4-10.3-12.7-6.5z'
]);
});
exports.LeftSquareTwoTone = getIcon('left-square', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
], [
secondaryColor,
'M184 840h656V184H184v656zm181.3-334.5l246-178c5.3-3.8 12.7 0 12.7 6.5v46.9c0 10.3-4.9 19.9-13.2 25.9L465.4 512l145.4 105.2c8.3 6 13.2 15.7 13.2 25.9V690c0 6.5-7.4 10.3-12.7 6.4l-246-178a7.95 7.95 0 0 1 0-12.9z'
], [
primaryColor,
'M365.3 518.4l246 178c5.3 3.9 12.7.1 12.7-6.4v-46.9c0-10.2-4.9-19.9-13.2-25.9L465.4 512l145.4-105.2c8.3-6 13.2-15.6 13.2-25.9V334c0-6.5-7.4-10.3-12.7-6.5l-246 178a7.95 7.95 0 0 0 0 12.9z'
]);
});
exports.LikeTwoTone = getIcon('like', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M273 495.9v428l.3-428zm538.2-88.3H496.8l9.6-198.4c.6-11.9-4.7-23.1-14.6-30.5-6.1-4.5-13.6-6.8-21.1-6.7-19.6.1-36.9 13.4-42.2 32.3-37.1 134.4-64.9 235.2-83.5 302.5V852h399.4a56.85 56.85 0 0 0 33.6-51.8c0-9.7-2.3-18.9-6.9-27.3l-13.9-25.4 21.9-19a56.76 56.76 0 0 0 19.6-43c0-9.7-2.3-18.9-6.9-27.3l-13.9-25.4 21.9-19a56.76 56.76 0 0 0 19.6-43c0-9.7-2.3-18.9-6.9-27.3l-14-25.5 21.9-19a56.76 56.76 0 0 0 19.6-43c0-19.1-11-37.5-28.8-48.4z'
], [
primaryColor,
'M112 528v364c0 17.7 14.3 32 32 32h65V496h-65c-17.7 0-32 14.3-32 32zm773.9 5.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.5-65.5-111a67.67 67.67 0 0 0-34.3-9.3H572.3l6-122.9c1.5-29.7-9-57.9-29.5-79.4a106.4 106.4 0 0 0-77.9-33.4c-52 0-98 35-111.8 85.1l-85.8 310.8-.3 428h472.1c9.3 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37zM820.4 499l-21.9 19 14 25.5a56.2 56.2 0 0 1 6.9 27.3c0 16.5-7.1 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 0 1 6.9 27.3c0 16.5-7.1 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 0 1 6.9 27.3c0 22.4-13.2 42.6-33.6 51.8H345V506.8c18.6-67.2 46.4-168 83.5-302.5a44.28 44.28 0 0 1 42.2-32.3c7.5-.1 15 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.1 32.2-19.6 43z'
]);
});
exports.LockTwoTone = getIcon('lock', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304z'
], [
secondaryColor,
'M232 840h560V536H232v304zm280-226a48.01 48.01 0 0 1 28 87v53c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-53a48.01 48.01 0 0 1 28-87z'
], [
primaryColor,
'M484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 1 0-56 0z'
]);
});
exports.MailTwoTone = getIcon('mail', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M477.5 536.3L135.9 270.7l-27.5-21.4 27.6 21.5V792h752V270.8L546.2 536.3a55.99 55.99 0 0 1-68.7 0z'
], [secondaryColor, 'M876.3 198.8l39.3 50.5-27.6 21.5 27.7-21.5-39.3-50.5z'], [
primaryColor,
'M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-94.5 72.1L512 482 190.5 232.1h643zm54.5 38.7V792H136V270.8l-27.6-21.5 27.5 21.4 341.6 265.6a55.99 55.99 0 0 0 68.7 0L888 270.8l27.6-21.5-39.3-50.5h.1l39.3 50.5-27.7 21.5z'
]);
});
exports.MedicineBoxTwoTone = getIcon('medicine-box', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M244.3 328L184 513.4V840h656V513.4L779.7 328H244.3zM660 628c0 4.4-3.6 8-8 8H544v108c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V636H372c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h108V464c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v108h108c4.4 0 8 3.6 8 8v48z'
], [
primaryColor,
'M652 572H544V464c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v108H372c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h108v108c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V636h108c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z'
], [
primaryColor,
'M839.2 278.1a32 32 0 0 0-30.4-22.1H736V144c0-17.7-14.3-32-32-32H320c-17.7 0-32 14.3-32 32v112h-72.8a31.9 31.9 0 0 0-30.4 22.1L112 502v378c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V502l-72.8-223.9zM360 184h304v72H360v-72zm480 656H184V513.4L244.3 328h535.4L840 513.4V840z'
]);
});
exports.MehTwoTone = getIcon('meh', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
], [
secondaryColor,
'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zM288 421a48.01 48.01 0 0 1 96 0 48.01 48.01 0 0 1-96 0zm384 200c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h304c4.4 0 8 3.6 8 8v48zm16-152a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'
], [
primaryColor,
'M288 421a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm376 144H360c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-24-144a48 48 0 1 0 96 0 48 48 0 1 0-96 0z'
]);
});
exports.MessageTwoTone = getIcon('message', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M775.3 248.9a369.62 369.62 0 0 0-119-80A370.2 370.2 0 0 0 512.1 140h-1.7c-99.7.4-193 39.4-262.8 109.9-69.9 70.5-108 164.1-107.6 263.8.3 60.3 15.3 120.2 43.5 173.1l4.5 8.4V836h140.8l8.4 4.5c52.9 28.2 112.8 43.2 173.1 43.5h1.7c99 0 192-38.2 262.1-107.6 70.4-69.8 109.5-163.1 110.1-262.7.2-50.6-9.5-99.6-28.9-145.8a370.15 370.15 0 0 0-80-119zM312 560a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96zm200 0a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96zm200 0a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'
], [
primaryColor,
'M664 512a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm-400 0a48 48 0 1 0 96 0 48 48 0 1 0-96 0z'
], [
primaryColor,
'M925.2 338.4c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 0 0-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 0 0-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 0 0 112 714v152a46 46 0 0 0 46 46h152.1A449.4 449.4 0 0 0 510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 0 0 142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z'
], [primaryColor, 'M464 512a48 48 0 1 0 96 0 48 48 0 1 0-96 0z']);
});
exports.MinusCircleTwoTone = getIcon('minus-circle', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
], [
secondaryColor,
'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm192 396c0 4.4-3.6 8-8 8H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h368c4.4 0 8 3.6 8 8v48z'
], [
primaryColor,
'M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z'
]);
});
exports.MinusSquareTwoTone = getIcon('minus-square', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
], [
secondaryColor,
'M184 840h656V184H184v656zm136-352c0-4.4 3.6-8 8-8h368c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H328c-4.4 0-8-3.6-8-8v-48z'
], [
primaryColor,
'M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z'
]);
});
exports.MobileTwoTone = getIcon('mobile', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M744 64H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64zm-8 824H288V136h448v752z'
], [
secondaryColor,
'M288 888h448V136H288v752zm224-142c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40z'
], [primaryColor, 'M472 786a40 40 0 1 0 80 0 40 40 0 1 0-80 0z']);
});
exports.PauseCircleTwoTone = getIcon('pause-circle', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
], [
secondaryColor,
'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm-80 524c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V360c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v304zm224 0c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V360c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v304z'
], [
primaryColor,
'M424 352h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zm224 0h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z'
]);
});
exports.MoneyCollectTwoTone = getIcon('money-collect', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M256 744.4l256 93.1 256-93.1V184H256v560.4zM359.7 313c1.2-.7 2.5-1 3.8-1h55.7a8 8 0 0 1 7.1 4.4L511 485.2h3.3L599 316.4c1.3-2.7 4.1-4.4 7.1-4.4h54.5c4.4 0 8 3.6 8.1 7.9 0 1.3-.4 2.6-1 3.8L564 515.3h57.6c4.4 0 8 3.6 8 8v27.1c0 4.4-3.6 8-8 8h-76.3v39h76.3c4.4 0 8 3.6 8 8v27.1c0 4.4-3.6 8-8 8h-76.3V704c0 4.4-3.6 8-8 8h-49.9c-4.4 0-8-3.6-8-8v-63.4h-76c-4.4 0-8-3.6-8-8v-27.1c0-4.4 3.6-8 8-8h76v-39h-76c-4.4 0-8-3.6-8-8v-27.1c0-4.4 3.6-8 8-8h57L356.5 323.8c-2.1-3.8-.7-8.7 3.2-10.8z'
], [
primaryColor,
'M911.5 700.7a8 8 0 0 0-10.3-4.8L840 718.2V180c0-37.6-30.4-68-68-68H252c-37.6 0-68 30.4-68 68v538.2l-61.3-22.3c-.9-.3-1.8-.5-2.7-.5-4.4 0-8 3.6-8 8V763c0 3.3 2.1 6.3 5.3 7.5L501 910.1c7.1 2.6 14.8 2.6 21.9 0l383.8-139.5c3.2-1.2 5.3-4.2 5.3-7.5v-59.6c0-1-.2-1.9-.5-2.8zM768 744.4l-256 93.1-256-93.1V184h512v560.4z'
], [
primaryColor,
'M460.4 515.4h-57c-4.4 0-8 3.6-8 8v27.1c0 4.4 3.6 8 8 8h76v39h-76c-4.4 0-8 3.6-8 8v27.1c0 4.4 3.6 8 8 8h76V704c0 4.4 3.6 8 8 8h49.9c4.4 0 8-3.6 8-8v-63.5h76.3c4.4 0 8-3.6 8-8v-27.1c0-4.4-3.6-8-8-8h-76.3v-39h76.3c4.4 0 8-3.6 8-8v-27.1c0-4.4-3.6-8-8-8H564l103.7-191.6c.6-1.2 1-2.5 1-3.8-.1-4.3-3.7-7.9-8.1-7.9h-54.5c-3 0-5.8 1.7-7.1 4.4l-84.7 168.8H511l-84.7-168.8a8 8 0 0 0-7.1-4.4h-55.7c-1.3 0-2.6.3-3.8 1-3.9 2.1-5.3 7-3.2 10.8l103.9 191.6z'
]);
});
exports.NotificationTwoTone = getIcon('notification', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M229.6 678.1c-3.7 11.6-5.6 23.9-5.6 36.4 0-12.5 2-24.8 5.7-36.4h-.1zm76.3-260.2H184v188.2h121.9l12.9 5.2L840 820.7V203.3L318.8 412.7z'
], [
primaryColor,
'M880 112c-3.8 0-7.7.7-11.6 2.3L292 345.9H128c-8.8 0-16 7.4-16 16.6v299c0 9.2 7.2 16.6 16 16.6h101.7c-3.7 11.6-5.7 23.9-5.7 36.4 0 65.9 53.8 119.5 120 119.5 55.4 0 102.1-37.6 115.9-88.4l408.6 164.2c3.9 1.5 7.8 2.3 11.6 2.3 16.9 0 32-14.2 32-33.2V145.2C912 126.2 897 112 880 112zM344 762.3c-26.5 0-48-21.4-48-47.8 0-11.2 3.9-21.9 11-30.4l84.9 34.1c-2 24.6-22.7 44.1-47.9 44.1zm496 58.4L318.8 611.3l-12.9-5.2H184V417.9h121.9l12.9-5.2L840 203.3v617.4z'
]);
});
exports.PhoneTwoTone = getIcon('phone', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M721.7 184.9L610.9 295.8l120.8 120.7-8 21.6A481.29 481.29 0 0 1 438 723.9l-21.6 8-.9-.9-119.8-120-110.8 110.9 104.5 104.5c10.8 10.7 26 15.7 40.8 13.2 117.9-19.5 235.4-82.9 330.9-178.4s158.9-213.1 178.4-331c2.5-14.8-2.5-30-13.3-40.8L721.7 184.9z'
], [
primaryColor,
'M877.1 238.7L770.6 132.3c-13-13-30.4-20.3-48.8-20.3s-35.8 7.2-48.8 20.3L558.3 246.8c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l89.6 89.7a405.46 405.46 0 0 1-86.4 127.3c-36.7 36.9-79.6 66-127.2 86.6l-89.6-89.7c-13-13-30.4-20.3-48.8-20.3a68.2 68.2 0 0 0-48.8 20.3L132.3 673c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l106.4 106.4c22.2 22.2 52.8 34.9 84.2 34.9 6.5 0 12.8-.5 19.2-1.6 132.4-21.8 263.8-92.3 369.9-198.3C818 606 888.4 474.6 910.4 342.1c6.3-37.6-6.3-76.3-33.3-103.4zm-37.6 91.5c-19.5 117.9-82.9 235.5-178.4 331s-213 158.9-330.9 178.4c-14.8 2.5-30-2.5-40.8-13.2L184.9 721.9 295.7 611l119.8 120 .9.9 21.6-8a481.29 481.29 0 0 0 285.7-285.8l8-21.6-120.8-120.7 110.8-110.9 104.5 104.5c10.8 10.8 15.8 26 13.3 40.8z'
]);
});
exports.PictureTwoTone = getIcon('picture', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z'
], [
secondaryColor,
'M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z'
], [
secondaryColor,
'M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 1 1 0 176 88 88 0 0 1 0-176z'
], [secondaryColor, 'M276 368a28 28 0 1 0 56 0 28 28 0 1 0-56 0z'], [
primaryColor,
'M304 456a88 88 0 1 0 0-176 88 88 0 0 0 0 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z'
]);
});
exports.PlayCircleTwoTone = getIcon('play-circle', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
], [
secondaryColor,
'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm164.1 378.2L457.7 677.1a8.02 8.02 0 0 1-12.7-6.5V353a8 8 0 0 1 12.7-6.5l218.4 158.8a7.9 7.9 0 0 1 0 12.9z'
], [
primaryColor,
'M676.1 505.3L457.7 346.5A8 8 0 0 0 445 353v317.6a8.02 8.02 0 0 0 12.7 6.5l218.4-158.9a7.9 7.9 0 0 0 0-12.9z'
]);
});
exports.PlaySquareTwoTone = getIcon('play-square', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
], [
secondaryColor,
'M184 840h656V184H184v656zm240-484.7c0-9.4 10.9-14.7 18.3-8.8l199.4 156.7a11.2 11.2 0 0 1 0 17.6L442.3 677.6c-7.4 5.8-18.3.6-18.3-8.8V355.3z'
], [
primaryColor,
'M442.3 677.6l199.4-156.8a11.2 11.2 0 0 0 0-17.6L442.3 346.5c-7.4-5.9-18.3-.6-18.3 8.8v313.5c0 9.4 10.9 14.6 18.3 8.8z'
]);
});
exports.PieChartTwoTone = getIcon('pie-chart', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M316.2 920.5c-47.6-20.1-90.4-49-127.1-85.7a398.19 398.19 0 0 1-85.7-127.1A397.12 397.12 0 0 1 72 552.2v.2a398.57 398.57 0 0 0 117 282.5c36.7 36.7 79.4 65.5 127 85.6A396.64 396.64 0 0 0 471.6 952c27 0 53.6-2.7 79.7-7.9-25.9 5.2-52.4 7.8-79.3 7.8-54 .1-106.4-10.5-155.8-31.4zM560 472c-4.4 0-8-3.6-8-8V79.9c0-1.3.3-2.5.9-3.6-.9 1.3-1.5 2.9-1.5 4.6v383.7c0 4.4 3.6 8 8 8l383.6-1c1.6 0 3.1-.5 4.4-1.3-1 .5-2.2.7-3.4.7l-384 1z'
], [
secondaryColor,
'M619.8 147.6v256.6l256.4-.7c-13-62.5-44.3-120.5-90-166.1a332.24 332.24 0 0 0-166.4-89.8z'
], [
secondaryColor,
'M438 221.7c-75.9 7.6-146.2 40.9-200.8 95.5C174.5 379.9 140 463.3 140 552s34.5 172.1 97.2 234.8c62.3 62.3 145.1 96.8 233.2 97.2 88.2.4 172.7-34.1 235.3-96.2C761 733 794.6 662.3 802.3 586H438V221.7z'
], [
primaryColor,
'M864 518H506V160c0-4.4-3.6-8-8-8h-26a398.46 398.46 0 0 0-282.8 117.1 398.19 398.19 0 0 0-85.7 127.1A397.61 397.61 0 0 0 72 552v.2c0 53.9 10.6 106.2 31.4 155.5 20.1 47.6 49 90.4 85.7 127.1 36.7 36.7 79.5 65.6 127.1 85.7A397.61 397.61 0 0 0 472 952c26.9 0 53.4-2.6 79.3-7.8 26.1-5.3 51.7-13.1 76.4-23.6 47.6-20.1 90.4-49 127.1-85.7 36.7-36.7 65.6-79.5 85.7-127.1A397.61 397.61 0 0 0 872 552v-26c0-4.4-3.6-8-8-8zM705.7 787.8A331.59 331.59 0 0 1 470.4 884c-88.1-.4-170.9-34.9-233.2-97.2C174.5 724.1 140 640.7 140 552s34.5-172.1 97.2-234.8c54.6-54.6 124.9-87.9 200.8-95.5V586h364.3c-7.7 76.3-41.3 147-96.6 201.8z'
], [
primaryColor,
'M952 462.4l-2.6-28.2c-8.5-92.1-49.4-179-115.2-244.6A399.4 399.4 0 0 0 589 74.6L560.7 72c-3.4-.3-6.4 1.5-7.8 4.3a8.7 8.7 0 0 0-.9 3.6V464c0 4.4 3.6 8 8 8l384-1c1.2 0 2.3-.3 3.4-.7a8.1 8.1 0 0 0 4.6-7.9zm-332.2-58.2V147.6a332.24 332.24 0 0 1 166.4 89.8c45.7 45.6 77 103.6 90 166.1l-256.4.7z'
]);
});
exports.PlusCircleTwoTone = getIcon('plus-circle', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
], [
secondaryColor,
'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm192 396c0 4.4-3.6 8-8 8H544v152c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V544H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h152V328c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v152h152c4.4 0 8 3.6 8 8v48z'
], [
primaryColor,
'M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z'
]);
});
exports.PlusSquareTwoTone = getIcon('plus-square', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
], [
secondaryColor,
'M184 840h656V184H184v656zm136-352c0-4.4 3.6-8 8-8h152V328c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v152h152c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H544v152c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V544H328c-4.4 0-8-3.6-8-8v-48z'
], [
primaryColor,
'M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z'
]);
});
exports.PoundCircleTwoTone = getIcon('pound-circle', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
], [
secondaryColor,
'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm146 582.1c0 4.4-3.6 8-8 8H376.2c-4.4 0-8-3.6-8-8v-38.5c0-3.7 2.5-6.9 6.1-7.8 44-10.9 72.8-49 72.8-94.2 0-14.7-2.5-29.4-5.9-44.2H374c-4.4 0-8-3.6-8-8v-30c0-4.4 3.6-8 8-8h53.7c-7.8-25.1-14.6-50.7-14.6-77.1 0-75.8 58.6-120.3 151.5-120.3 26.5 0 51.4 5.5 70.3 12.7 3.1 1.2 5.2 4.2 5.2 7.5v39.5a8 8 0 0 1-10.6 7.6c-17.9-6.4-39-10.5-60.4-10.5-53.3 0-87.3 26.6-87.3 70.2 0 24.7 6.2 47.9 13.4 70.5h112c4.4 0 8 3.6 8 8v30c0 4.4-3.6 8-8 8h-98.6c3.1 13.2 5.3 26.9 5.3 41 0 40.7-16.5 73.9-43.9 91.1v4.7h180c4.4 0 8 3.6 8 8v39.8z'
], [
primaryColor,
'M650 674.3H470v-4.7c27.4-17.2 43.9-50.4 43.9-91.1 0-14.1-2.2-27.8-5.3-41h98.6c4.4 0 8-3.6 8-8v-30c0-4.4-3.6-8-8-8h-112c-7.2-22.6-13.4-45.8-13.4-70.5 0-43.6 34-70.2 87.3-70.2 21.4 0 42.5 4.1 60.4 10.5a8 8 0 0 0 10.6-7.6v-39.5c0-3.3-2.1-6.3-5.2-7.5-18.9-7.2-43.8-12.7-70.3-12.7-92.9 0-151.5 44.5-151.5 120.3 0 26.4 6.8 52 14.6 77.1H374c-4.4 0-8 3.6-8 8v30c0 4.4 3.6 8 8 8h67.2c3.4 14.8 5.9 29.5 5.9 44.2 0 45.2-28.8 83.3-72.8 94.2-3.6.9-6.1 4.1-6.1 7.8v38.5c0 4.4 3.6 8 8 8H650c4.4 0 8-3.6 8-8v-39.8c0-4.4-3.6-8-8-8z'
]);
});
exports.PrinterTwoTone = getIcon('printer', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M360 180h304v152H360zm492 220H172c-6.6 0-12 5.4-12 12v292h132V500h440v204h132V412c0-6.6-5.4-12-12-12zm-24 84c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-40c0-4.4 3.6-8 8-8h40c4.4 0 8 3.6 8 8v40z'
], [
primaryColor,
'M852 332H732V120c0-4.4-3.6-8-8-8H300c-4.4 0-8 3.6-8 8v212H172c-44.2 0-80 35.8-80 80v328c0 17.7 14.3 32 32 32h168v132c0 4.4 3.6 8 8 8h424c4.4 0 8-3.6 8-8V772h168c17.7 0 32-14.3 32-32V412c0-44.2-35.8-80-80-80zM360 180h304v152H360V180zm304 664H360V568h304v276zm200-140H732V500H292v204H160V412c0-6.6 5.4-12 12-12h680c6.6 0 12 5.4 12 12v292z'
], [
primaryColor,
'M820 436h-40c-4.4 0-8 3.6-8 8v40c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-40c0-4.4-3.6-8-8-8z'
]);
});
exports.ProfileTwoTone = getIcon('profile', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
], [
secondaryColor,
'M184 840h656V184H184v656zm300-496c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H492c-4.4 0-8-3.6-8-8v-48zm0 144c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H492c-4.4 0-8-3.6-8-8v-48zm0 144c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H492c-4.4 0-8-3.6-8-8v-48zM380 328c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm0 144c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm0 144c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40z'
], [
primaryColor,
'M340 656a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm0-144a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm0-144a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm152 320h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0-144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm0-144h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H492c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z'
]);
});
exports.ProjectTwoTone = getIcon('project', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
], [
secondaryColor,
'M184 840h656V184H184v656zm472-560c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v256c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8V280zm-192 0c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8V280zm-192 0c0-4.4 3.6-8 8-8h80c4.4 0 8 3.6 8 8v464c0 4.4-3.6 8-8 8h-80c-4.4 0-8-3.6-8-8V280z'
], [
primaryColor,
'M280 752h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8zm192-280h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v184c0 4.4 3.6 8 8 8zm192 72h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v256c0 4.4 3.6 8 8 8z'
]);
});
exports.PushpinTwoTone = getIcon('pushpin', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M474.8 357.7l-24.5 24.5-34.4-3.8c-9.6-1.1-19.3-1.6-28.9-1.6-29 0-57.5 4.7-84.7 14.1-14 4.8-27.4 10.8-40.3 17.9l353.1 353.3a259.92 259.92 0 0 0 30.4-153.9l-3.8-34.4 24.5-24.5L800 415.5 608.5 224 474.8 357.7z'
], [
primaryColor,
'M878.3 392.1L631.9 145.7c-6.5-6.5-15-9.7-23.5-9.7s-17 3.2-23.5 9.7L423.8 306.9c-12.2-1.4-24.5-2-36.8-2-73.2 0-146.4 24.1-206.5 72.3a33.23 33.23 0 0 0-2.7 49.4l181.7 181.7-215.4 215.2a15.8 15.8 0 0 0-4.6 9.8l-3.4 37.2c-.9 9.4 6.6 17.4 15.9 17.4.5 0 1 0 1.5-.1l37.2-3.4c3.7-.3 7.2-2 9.8-4.6l215.4-215.4 181.7 181.7c6.5 6.5 15 9.7 23.5 9.7 9.7 0 19.3-4.2 25.9-12.4 56.3-70.3 79.7-158.3 70.2-243.4l161.1-161.1c12.9-12.8 12.9-33.8 0-46.8zM666.2 549.3l-24.5 24.5 3.8 34.4a259.92 259.92 0 0 1-30.4 153.9L262 408.8c12.9-7.1 26.3-13.1 40.3-17.9 27.2-9.4 55.7-14.1 84.7-14.1 9.6 0 19.3.5 28.9 1.6l34.4 3.8 24.5-24.5L608.5 224 800 415.5 666.2 549.3z'
]);
});
exports.PropertySafetyTwoTone = getIcon('property-safety', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6z'
], [
secondaryColor,
'M214 226.7v427.6l298 232.2 298-232.2V226.7L512 125.1 214 226.7zM593.9 318h45c5.5 0 10 4.5 10 10 .1 1.7-.3 3.3-1.1 4.8l-87.7 161.1h45.7c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4v29.7h63.4c5.5 0 10 4.5 10 10v21.3c0 5.5-4.5 10-10 10h-63.4V658c0 5.5-4.5 10-10 10h-41.3c-5.5 0-10-4.5-10-10v-51.8H418c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h63.1v-29.7H418c-5.5 0-10-4.5-10-10v-21.3c0-5.5 4.5-10 10-10h45.2l-88-161.1c-2.6-4.8-.9-10.9 4-13.6 1.5-.8 3.1-1.2 4.8-1.2h46c3.8 0 7.2 2.1 8.9 5.5l72.9 144.3L585 323.5a10 10 0 0 1 8.9-5.5z'
], [
primaryColor,
'M438.9 323.5a9.88 9.88 0 0 0-8.9-5.5h-46c-1.7 0-3.3.4-4.8 1.2-4.9 2.7-6.6 8.8-4 13.6l88 161.1H418c-5.5 0-10 4.5-10 10v21.3c0 5.5 4.5 10 10 10h63.1v29.7H418c-5.5 0-10 4.5-10 10v21.3c0 5.5 4.5 10 10 10h63.1V658c0 5.5 4.5 10 10 10h41.3c5.5 0 10-4.5 10-10v-51.8h63.4c5.5 0 10-4.5 10-10v-21.3c0-5.5-4.5-10-10-10h-63.4v-29.7h63.4c5.5 0 10-4.5 10-10v-21.3c0-5.5-4.5-10-10-10h-45.7l87.7-161.1c.8-1.5 1.2-3.1 1.1-4.8 0-5.5-4.5-10-10-10h-45a10 10 0 0 0-8.9 5.5l-73.2 144.3-72.9-144.3z'
]);
});
exports.QuestionCircleTwoTone = getIcon('question-circle', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
], [
secondaryColor,
'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm0 632c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm62.9-219.5a48.3 48.3 0 0 0-30.9 44.8V620c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-21.5c0-23.1 6.7-45.9 19.9-64.9 12.9-18.6 30.9-32.8 52.1-40.9 34-13.1 56-41.6 56-72.7 0-44.1-43.1-80-96-80s-96 35.9-96 80v7.6c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V420c0-39.3 17.2-76 48.4-103.3C430.4 290.4 470 276 512 276s81.6 14.5 111.6 40.7C654.8 344 672 380.7 672 420c0 57.8-38.1 109.8-97.1 132.5z'
], [
primaryColor,
'M472 732a40 40 0 1 0 80 0 40 40 0 1 0-80 0zm151.6-415.3C593.6 290.5 554 276 512 276s-81.6 14.4-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.2 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0 1 30.9-44.8c59-22.7 97.1-74.7 97.1-132.5 0-39.3-17.2-76-48.4-103.3z'
]);
});
exports.ReconciliationTwoTone = getIcon('reconciliation', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M740 344H404V240H304v160h176c17.7 0 32 14.3 32 32v360h328V240H740v104zM584 448c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56zm92 301c-50.8 0-92-41.2-92-92s41.2-92 92-92 92 41.2 92 92-41.2 92-92 92zm92-341v96c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-96c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8z'
], [secondaryColor, 'M642 657a34 34 0 1 0 68 0 34 34 0 1 0-68 0z'], [
primaryColor,
'M592 512h48c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm112-104v96c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-96c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8z'
], [
primaryColor,
'M880 168H668c0-30.9-25.1-56-56-56h-80c-30.9 0-56 25.1-56 56H264c-17.7 0-32 14.3-32 32v200h-88c-17.7 0-32 14.3-32 32v448c0 17.7 14.3 32 32 32h336c17.7 0 32-14.3 32-32v-16h368c17.7 0 32-14.3 32-32V200c0-17.7-14.3-32-32-32zm-412 64h72v-56h64v56h72v48H468v-48zm-20 616H176V616h272v232zm0-296H176v-88h272v88zm392 240H512V432c0-17.7-14.3-32-32-32H304V240h100v104h336V240h100v552z'
], [
primaryColor,
'M676 565c-50.8 0-92 41.2-92 92s41.2 92 92 92 92-41.2 92-92-41.2-92-92-92zm0 126c-18.8 0-34-15.2-34-34s15.2-34 34-34 34 15.2 34 34-15.2 34-34 34z'
]);
});
exports.RedEnvelopeTwoTone = getIcon('red-envelope', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-40 824H232V193.1l260.3 204.1c11.6 9.1 27.9 9.1 39.5 0L792 193.1V888zm0-751.3h-31.7L512 331.3 263.7 136.7H232v-.7h560v.7z'
], [
secondaryColor,
'M492.3 397.2L232 193.1V888h560V193.1L531.8 397.2a31.99 31.99 0 0 1-39.5 0zm99.4 60.9h47.8a8.45 8.45 0 0 1 7.4 12.4l-87.2 161h45.9c4.6 0 8.4 3.8 8.4 8.4V665c0 4.6-3.8 8.4-8.4 8.4h-63.3V702h63.3c4.6 0 8.4 3.8 8.4 8.4v25c.2 4.7-3.5 8.5-8.2 8.5h-63.3v49.9c0 4.6-3.8 8.4-8.4 8.4h-43.7c-4.6 0-8.4-3.8-8.4-8.4v-49.9h-63c-4.6 0-8.4-3.8-8.4-8.4v-25.1c0-4.6 3.8-8.4 8.4-8.4h63v-28.6h-63c-4.6 0-8.4-3.8-8.4-8.4v-25.1c0-4.6 3.8-8.4 8.4-8.4h45.4L377 470.4a8.4 8.4 0 0 1 3.4-11.4c1.3-.6 2.6-1 3.9-1h48.8c3.2 0 6.1 1.8 7.5 4.6l71.7 142 71.9-141.9a8.6 8.6 0 0 1 7.5-4.6z'
], [secondaryColor, 'M232 136.7h31.7L512 331.3l248.3-194.6H792v-.7H232z'], [
primaryColor,
'M440.6 462.6a8.38 8.38 0 0 0-7.5-4.6h-48.8c-1.3 0-2.6.4-3.9 1a8.4 8.4 0 0 0-3.4 11.4l87.4 161.1H419c-4.6 0-8.4 3.8-8.4 8.4V665c0 4.6 3.8 8.4 8.4 8.4h63V702h-63c-4.6 0-8.4 3.8-8.4 8.4v25.1c0 4.6 3.8 8.4 8.4 8.4h63v49.9c0 4.6 3.8 8.4 8.4 8.4h43.7c4.6 0 8.4-3.8 8.4-8.4v-49.9h63.3c4.7 0 8.4-3.8 8.2-8.5v-25c0-4.6-3.8-8.4-8.4-8.4h-63.3v-28.6h63.3c4.6 0 8.4-3.8 8.4-8.4v-25.1c0-4.6-3.8-8.4-8.4-8.4h-45.9l87.2-161a8.45 8.45 0 0 0-7.4-12.4h-47.8c-3.1 0-6 1.8-7.5 4.6l-71.9 141.9-71.7-142z'
]);
});
exports.RestTwoTone = getIcon('rest', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M326.4 844h363.2l44.3-520H282l44.4 520zM508 416c79.5 0 144 64.5 144 144s-64.5 144-144 144-144-64.5-144-144 64.5-144 144-144z'
], [
primaryColor,
'M508 704c79.5 0 144-64.5 144-144s-64.5-144-144-144-144 64.5-144 144 64.5 144 144 144zm0-224c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z'
], [
primaryColor,
'M832 256h-28.1l-35.7-120.9c-4-13.7-16.5-23.1-30.7-23.1h-451c-14.3 0-26.8 9.4-30.7 23.1L220.1 256H192c-17.7 0-32 14.3-32 32v28c0 4.4 3.6 8 8 8h45.8l47.7 558.7a32 32 0 0 0 31.9 29.3h429.2a32 32 0 0 0 31.9-29.3L802.2 324H856c4.4 0 8-3.6 8-8v-28c0-17.7-14.3-32-32-32zm-518.6-76h397.2l22.4 76H291l22.4-76zm376.2 664H326.4L282 324h451.9l-44.3 520z'
]);
});
exports.RightCircleTwoTone = getIcon('right-circle', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm154.7 378.4l-246 178c-5.3 3.8-12.7 0-12.7-6.5V643c0-10.2 4.9-19.9 13.2-25.9L566.6 512 421.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.7 0 12.9z'
], [
primaryColor,
'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
], [
primaryColor,
'M666.7 505.5l-246-178c-5.3-3.8-12.7 0-12.7 6.5v46.9c0 10.3 4.9 19.9 13.2 25.9L566.6 512 421.2 617.1c-8.3 6-13.2 15.7-13.2 25.9v46.9c0 6.5 7.4 10.3 12.7 6.5l246-178c4.4-3.2 4.4-9.7 0-12.9z'
]);
});
exports.RocketTwoTone = getIcon('rocket', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M261.7 621.4c-9.4 14.6-17 30.3-22.5 46.6H324V558.7c-24.8 16.2-46 37.5-62.3 62.7zM700 558.7V668h84.8c-5.5-16.3-13.1-32-22.5-46.6a211.6 211.6 0 0 0-62.3-62.7zm-64-239.9l-124-147-124 147V668h248V318.8zM512 448a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'
], [
primaryColor,
'M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 0 0-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0 0 43.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0 0 43.1-30.5 97.52 97.52 0 0 0 21.4-60.8c0-8.4-1.1-16.4-3.1-23.8L864 736zm-540-68h-84.8c5.5-16.3 13.1-32 22.5-46.6 16.3-25.2 37.5-46.5 62.3-62.7V668zm64-184.9V318.8l124-147 124 147V668H388V483.1zm240.1 301.1c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5s-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 0 1-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5zM700 668V558.7a211.6 211.6 0 0 1 62.3 62.7c9.4 14.6 17 30.3 22.5 46.6H700z'
], [primaryColor, 'M464 400a48 48 0 1 0 96 0 48 48 0 1 0-96 0z']);
});
exports.RightSquareTwoTone = getIcon('right-square', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
], [
secondaryColor,
'M184 840h656V184H184v656zm216-196.9c0-10.2 4.9-19.9 13.2-25.9L558.6 512 413.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.7 0 12.9l-246 178c-5.3 3.9-12.7.1-12.7-6.4v-46.9z'
], [
primaryColor,
'M412.7 696.4l246-178c4.4-3.2 4.4-9.7 0-12.9l-246-178c-5.3-3.8-12.7 0-12.7 6.5v46.9c0 10.3 4.9 19.9 13.2 25.9L558.6 512 413.2 617.2c-8.3 6-13.2 15.7-13.2 25.9V690c0 6.5 7.4 10.3 12.7 6.4z'
]);
});
exports.SafetyCertificateTwoTone = getIcon('safety-certificate', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6z'
], [
secondaryColor,
'M214 226.7v427.6l298 232.2 298-232.2V226.7L512 125.1 214 226.7zM632.8 328H688c6.5 0 10.3 7.4 6.5 12.7L481.9 633.4a16.1 16.1 0 0 1-26 0l-126.4-174c-3.8-5.3 0-12.7 6.5-12.7h55.2c5.2 0 10 2.5 13 6.6l64.7 89.1 150.9-207.8c3-4.1 7.9-6.6 13-6.6z'
], [
primaryColor,
'M404.2 453.3c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0 0 26 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z'
]);
});
exports.SaveTwoTone = getIcon('save', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M704 320c0 17.7-14.3 32-32 32H352c-17.7 0-32-14.3-32-32V184H184v656h656V341.8l-136-136V320zM512 730c-79.5 0-144-64.5-144-144s64.5-144 144-144 144 64.5 144 144-64.5 144-144 144z'
], [
primaryColor,
'M512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z'
], [
primaryColor,
'M893.3 293.3L730.7 130.7c-.7-.7-1.4-1.3-2.1-2-.1-.1-.3-.2-.4-.3-.7-.7-1.5-1.3-2.2-1.9a64 64 0 0 0-22-11.7V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840z'
]);
});
exports.ScheduleTwoTone = getIcon('schedule', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M768 352c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-56H548v56c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-56H328v56c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-56H136v496h752V296H768v56zM424 688c0 4.4-3.6 8-8 8H232c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zm0-136c0 4.4-3.6 8-8 8H232c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zm374.4-91.2l-165 228.7a15.9 15.9 0 0 1-25.8 0L493.5 531.3c-3.8-5.3 0-12.7 6.5-12.7h54.9c5.1 0 9.9 2.4 12.9 6.6l52.8 73.1 103.6-143.7c3-4.1 7.8-6.6 12.8-6.5h54.9c6.5 0 10.3 7.4 6.5 12.7z'
], [
primaryColor,
'M724.2 454.6L620.6 598.3l-52.8-73.1c-3-4.2-7.8-6.6-12.9-6.6H500c-6.5 0-10.3 7.4-6.5 12.7l114.1 158.2a15.9 15.9 0 0 0 25.8 0l165-228.7c3.8-5.3 0-12.7-6.5-12.7H737c-5-.1-9.8 2.4-12.8 6.5zM416 496H232c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z'
], [
primaryColor,
'M928 224H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zm-40 568H136V296h120v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h120v496z'
], [
primaryColor,
'M416 632H232c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z'
]);
});
exports.SecurityScanTwoTone = getIcon('security-scan', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6z'
], [
secondaryColor,
'M460.7 451.1a80.1 80.1 0 1 0 160.2 0 80.1 80.1 0 1 0-160.2 0z'
], [
secondaryColor,
'M214 226.7v427.6l298 232.2 298-232.2V226.7L512 125.1 214 226.7zm428.7 122.5c56.3 56.3 56.3 147.5 0 203.8-48.5 48.5-123 55.2-178.6 20.1l-77.5 77.5a8.03 8.03 0 0 1-11.3 0l-34-34a8.03 8.03 0 0 1 0-11.3l77.5-77.5c-35.1-55.7-28.4-130.1 20.1-178.6 56.3-56.3 147.5-56.3 203.8 0z'
], [
primaryColor,
'M418.8 527.8l-77.5 77.5a8.03 8.03 0 0 0 0 11.3l34 34c3.1 3.1 8.2 3.1 11.3 0l77.5-77.5c55.6 35.1 130.1 28.4 178.6-20.1 56.3-56.3 56.3-147.5 0-203.8-56.3-56.3-147.5-56.3-203.8 0-48.5 48.5-55.2 122.9-20.1 178.6zm65.4-133.3a80.1 80.1 0 0 1 113.3 0 80.1 80.1 0 0 1 0 113.3c-31.3 31.3-82 31.3-113.3 0s-31.3-82 0-113.3z'
]);
});
exports.SettingTwoTone = getIcon('setting', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M859.3 569.7l.2.1c3.1-18.9 4.6-38.2 4.6-57.3 0-17.1-1.3-34.3-3.7-51.1 2.4 16.7 3.6 33.6 3.6 50.5 0 19.4-1.6 38.8-4.7 57.8zM99 398.1c-.5-.4-.9-.8-1.4-1.3.7.7 1.4 1.4 2.2 2.1l65.5 55.9v-.1L99 398.1zm536.6-216h.1l-15.5-83.8c-.2-1-.4-1.9-.7-2.8.1.5.3 1.1.4 1.6l15.7 85zm54 546.5l31.4-25.8 92.8 32.9c17-22.9 31.3-47.5 42.6-73.6l-74.7-63.9 6.6-40.1c2.5-15.1 3.8-30.6 3.8-46.1s-1.3-31-3.8-46.1l-6.5-39.9 74.7-63.9c-11.4-26-25.6-50.7-42.6-73.6l-92.8 32.9-31.4-25.8c-23.9-19.6-50.6-35-79.3-45.8l-38.1-14.3-17.9-97a377.5 377.5 0 0 0-85 0l-17.9 97.2-37.9 14.3c-28.5 10.8-55 26.2-78.7 45.7l-31.4 25.9-93.4-33.2c-17 22.9-31.3 47.5-42.6 73.6l75.5 64.5-6.5 40c-2.5 14.9-3.7 30.2-3.7 45.5 0 15.2 1.3 30.6 3.7 45.5l6.5 40-75.5 64.5c11.4 26 25.6 50.7 42.6 73.6l93.4-33.2 31.4 25.9c23.7 19.5 50.2 34.9 78.7 45.7l37.8 14.5 17.9 97.2c28.2 3.2 56.9 3.2 85 0l17.9-97 38.1-14.3c28.8-10.8 55.4-26.2 79.3-45.8zm-177.1-50.3c-30.5 0-59.2-7.8-84.3-21.5C373.3 627 336 568.9 336 502c0-97.2 78.8-176 176-176 66.9 0 125 37.3 154.8 92.2 13.7 25 21.5 53.7 21.5 84.3 0 97.1-78.7 175.8-175.8 175.8zM207.2 812.8c-5.5 1.9-11.2 2.3-16.6 1.2 5.7 1.2 11.7 1 17.5-1l81.4-29c-.1-.1-.3-.2-.4-.3l-81.9 29.1zm717.6-414.7l-65.5 56c0 .2.1.5.1.7l65.4-55.9c7.1-6.1 11.1-14.9 11.2-24-.3 8.8-4.3 17.3-11.2 23.2z'
], [
secondaryColor,
'M935.8 646.6c.5 4.7 0 9.5-1.7 14.1l-.9 2.6a446.02 446.02 0 0 1-79.7 137.9l-1.8 2.1a32 32 0 0 1-35.1 9.5l-81.3-28.9a350 350 0 0 1-99.7 57.6l-15.7 85a32.05 32.05 0 0 1-25.8 25.7l-2.7.5a445.2 445.2 0 0 1-79.2 7.1h.3c26.7 0 53.4-2.4 79.4-7.1l2.7-.5a32.05 32.05 0 0 0 25.8-25.7l15.7-84.9c36.2-13.6 69.6-32.9 99.6-57.5l81.2 28.9a32 32 0 0 0 35.1-9.5l1.8-2.1c34.8-41.1 61.5-87.4 79.6-137.7l.9-2.6c1.6-4.7 2.1-9.7 1.5-14.5z'
], [
primaryColor,
'M688 502c0-30.3-7.7-58.9-21.2-83.8C637 363.3 578.9 326 512 326c-97.2 0-176 78.8-176 176 0 66.9 37.3 125 92.2 154.8 24.9 13.5 53.4 21.2 83.8 21.2 97.2 0 176-78.8 176-176zm-288 0c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 0 1 624 502c0 29.9-11.7 58-32.8 79.2A111.6 111.6 0 0 1 512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 0 1 400 502z'
], [
primaryColor,
'M594.1 952.2a32.05 32.05 0 0 0 25.8-25.7l15.7-85a350 350 0 0 0 99.7-57.6l81.3 28.9a32 32 0 0 0 35.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c1.7-4.6 2.2-9.4 1.7-14.1-.9-7.9-4.7-15.4-11-20.9l-65.3-55.9-.2-.1c3.1-19 4.7-38.4 4.7-57.8 0-16.9-1.2-33.9-3.6-50.5-.3-2.2-.7-4.4-1-6.6 0-.2-.1-.5-.1-.7l65.5-56c6.9-5.9 10.9-14.4 11.2-23.2.1-4-.5-8.1-1.9-12l-.9-2.6a443.74 443.74 0 0 0-79.7-137.9l-1.8-2.1a32.12 32.12 0 0 0-35.1-9.5l-81.3 28.9c-30-24.6-63.4-44-99.6-57.6h-.1l-15.7-85c-.1-.5-.2-1.1-.4-1.6a32.08 32.08 0 0 0-25.4-24.1l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 0 0-25.8 25.7l-15.8 85.4a351.86 351.86 0 0 0-99 57.4l-81.9-29.1a32 32 0 0 0-35.1 9.5l-1.8 2.1a446.02 446.02 0 0 0-79.7 137.9l-.9 2.6a32.09 32.09 0 0 0 7.9 33.9c.5.4.9.9 1.4 1.3l66.3 56.6v.1c-3.1 18.8-4.6 37.9-4.6 57 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 0 0-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1c4.9 5.7 11.4 9.4 18.5 10.7 5.4 1 11.1.7 16.6-1.2l81.9-29.1c.1.1.3.2.4.3 29.7 24.3 62.8 43.6 98.6 57.1l15.8 85.4a32.05 32.05 0 0 0 25.8 25.7l2.7.5c26.1 4.7 52.8 7.1 79.5 7.1h.3c26.6 0 53.3-2.4 79.2-7.1l2.7-.5zm-39.8-66.5a377.5 377.5 0 0 1-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 0 1-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97z'
]);
});
exports.ShopTwoTone = getIcon('shop', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M839.5 344h-655c-.3 0-.5.2-.5.5v91.2c0 59.8 49 108.3 109.3 108.3 40.7 0 76.2-22 95.1-54.7 2.9-5.1 8.4-8.3 14.3-8.3s11.3 3.2 14.3 8.3c18.8 32.7 54.3 54.7 95 54.7 40.8 0 76.4-22.1 95.1-54.9 2.9-5 8.2-8.1 13.9-8.1h.6c5.8 0 11 3.1 13.9 8.1 18.8 32.8 54.4 54.9 95.2 54.9C791 544 840 495.5 840 435.7v-91.2c0-.3-.2-.5-.5-.5z'
], [
primaryColor,
'M882 272.1V144c0-17.7-14.3-32-32-32H174c-17.7 0-32 14.3-32 32v128.1c-16.7 1-30 14.9-30 31.9v131.7a177 177 0 0 0 14.4 70.4c4.3 10.2 9.6 19.8 15.6 28.9v345c0 17.6 14.3 32 32 32h676c17.7 0 32-14.3 32-32V535a175 175 0 0 0 15.6-28.9c9.5-22.3 14.4-46 14.4-70.4V304c0-17-13.3-30.9-30-31.9zM214 184h596v88H214v-88zm362 656.1H448V736h128v104.1zm234.4 0H640V704c0-17.7-14.3-32-32-32H416c-17.7 0-32 14.3-32 32v136.1H214V597.9c2.9 1.4 5.9 2.8 9 4 22.3 9.4 46 14.1 70.4 14.1 24.4 0 48-4.7 70.4-14.1 13.8-5.8 26.8-13.2 38.7-22.1.2-.1.4-.1.6 0a180.4 180.4 0 0 0 38.7 22.1c22.3 9.4 46 14.1 70.4 14.1s48-4.7 70.4-14.1c13.8-5.8 26.8-13.2 38.7-22.1.2-.1.4-.1.6 0a180.4 180.4 0 0 0 38.7 22.1c22.3 9.4 46 14.1 70.4 14.1s48-4.7 70.4-14.1c3-1.3 6-2.6 9-4v242.2zM840 435.7c0 59.8-49 108.3-109.3 108.3-40.8 0-76.4-22.1-95.2-54.9-2.9-5-8.1-8.1-13.9-8.1h-.6c-5.7 0-11 3.1-13.9 8.1A109.24 109.24 0 0 1 512 544c-40.7 0-76.2-22-95-54.7-3-5.1-8.4-8.3-14.3-8.3s-11.4 3.2-14.3 8.3a109.63 109.63 0 0 1-95.1 54.7C233 544 184 495.5 184 435.7v-91.2c0-.3.2-.5.5-.5h655c.3 0 .5.2.5.5v91.2z'
]);
});
exports.ShoppingTwoTone = getIcon('shopping', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M696 472c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-88H400v88c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-88h-96v456h560V384h-96v88z'
], [
primaryColor,
'M832 312H696v-16c0-101.6-82.4-184-184-184s-184 82.4-184 184v16H192c-17.7 0-32 14.3-32 32v536c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V344c0-17.7-14.3-32-32-32zm-432-16c0-61.9 50.1-112 112-112s112 50.1 112 112v16H400v-16zm392 544H232V384h96v88c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-88h224v88c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-88h96v456z'
]);
});
exports.SkinTwoTone = getIcon('skin', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M512 318c-79.2 0-148.5-48.8-176.7-120H182v196h119v432h422V394h119V198H688.7c-28.2 71.2-97.5 120-176.7 120z'
], [
primaryColor,
'M870 126H663.8c-17.4 0-32.9 11.9-37 29.3C614.3 208.1 567 246 512 246s-102.3-37.9-114.8-90.7a37.93 37.93 0 0 0-37-29.3H154a44 44 0 0 0-44 44v252a44 44 0 0 0 44 44h75v388a44 44 0 0 0 44 44h478a44 44 0 0 0 44-44V466h75a44 44 0 0 0 44-44V170a44 44 0 0 0-44-44zm-28 268H723v432H301V394H182V198h153.3c28.2 71.2 97.5 120 176.7 120s148.5-48.8 176.7-120H842v196z'
]);
});
exports.SlidersTwoTone = getIcon('sliders', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M180 292h80v440h-80zm369 180h-74a3 3 0 0 0-3 3v74a3 3 0 0 0 3 3h74a3 3 0 0 0 3-3v-74a3 3 0 0 0-3-3zm215-108h80v296h-80z'
], [
primaryColor,
'M904 296h-66v-96c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v96h-66c-4.4 0-8 3.6-8 8v416c0 4.4 3.6 8 8 8h66v96c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-96h66c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8zm-60 364h-80V364h80v296zM612 404h-66V232c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v172h-66c-4.4 0-8 3.6-8 8v200c0 4.4 3.6 8 8 8h66v172c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8V620h66c4.4 0 8-3.6 8-8V412c0-4.4-3.6-8-8-8zm-60 145a3 3 0 0 1-3 3h-74a3 3 0 0 1-3-3v-74a3 3 0 0 1 3-3h74a3 3 0 0 1 3 3v74zM320 224h-66v-56c0-4.4-3.6-8-8-8h-52c-4.4 0-8 3.6-8 8v56h-66c-4.4 0-8 3.6-8 8v560c0 4.4 3.6 8 8 8h66v56c0 4.4 3.6 8 8 8h52c4.4 0 8-3.6 8-8v-56h66c4.4 0 8-3.6 8-8V232c0-4.4-3.6-8-8-8zm-60 508h-80V292h80v440z'
]);
});
exports.SmileTwoTone = getIcon('smile', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
], [
secondaryColor,
'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zM288 421a48.01 48.01 0 0 1 96 0 48.01 48.01 0 0 1-96 0zm224 272c-85.5 0-155.6-67.3-160-151.6a8 8 0 0 1 8-8.4h48.1c4.2 0 7.8 3.2 8.1 7.4C420 589.9 461.5 629 512 629s92.1-39.1 95.8-88.6c.3-4.2 3.9-7.4 8.1-7.4H664a8 8 0 0 1 8 8.4C667.6 625.7 597.5 693 512 693zm176-224a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z'
], [
primaryColor,
'M288 421a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm376 112h-48.1c-4.2 0-7.8 3.2-8.1 7.4-3.7 49.5-45.3 88.6-95.8 88.6s-92-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 0 0-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 0 0-8-8.4zm-24-112a48 48 0 1 0 96 0 48 48 0 1 0-96 0z'
]);
});
exports.SnippetsTwoTone = getIcon('snippets', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M450 510V336H232v552h432V550H490c-22.1 0-40-17.9-40-40z'
], [
primaryColor,
'M832 112H724V72c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v40H500V72c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v40H320c-17.7 0-32 14.3-32 32v120h-96c-17.7 0-32 14.3-32 32v632c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32v-96h96c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM664 888H232V336h218v174c0 22.1 17.9 40 40 40h174v338zm0-402H514V336h.2L664 485.8v.2zm128 274h-56V456L544 264H360v-80h68v32c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-32h152v32c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-32h68v576z'
]);
});
exports.SoundTwoTone = getIcon('sound', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M275.4 424H146v176h129.4l18 11.7L586 803V221L293.3 412.3z'
], [
primaryColor,
'M892.1 737.8l-110.3-63.7a15.9 15.9 0 0 0-21.7 5.9l-19.9 34.5c-4.4 7.6-1.8 17.4 5.8 21.8L856.3 800a15.9 15.9 0 0 0 21.7-5.9l19.9-34.5c4.4-7.6 1.7-17.4-5.8-21.8zM934 476H806c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16h128c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16zM760 344a15.9 15.9 0 0 0 21.7 5.9L892 286.2c7.6-4.4 10.2-14.2 5.8-21.8L878 230a15.9 15.9 0 0 0-21.7-5.9L746 287.8a15.99 15.99 0 0 0-5.8 21.8L760 344zM625.9 115c-5.9 0-11.9 1.6-17.4 5.3L254 352H90c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h164l354.5 231.7c5.5 3.6 11.6 5.3 17.4 5.3 16.7 0 32.1-13.3 32.1-32.1V147.1c0-18.8-15.4-32.1-32.1-32.1zM586 803L293.4 611.7l-18-11.7H146V424h129.4l17.9-11.7L586 221v582z'
]);
});
exports.StarTwoTone = getIcon('star', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M512.5 190.4l-94.4 191.3-211.2 30.7 152.8 149-36.1 210.3 188.9-99.3 188.9 99.2-36.1-210.3 152.8-148.9-211.2-30.7z'
], [
primaryColor,
'M908.6 352.8l-253.9-36.9L541.2 85.8c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L370.3 315.9l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 0 0 .6 45.3l183.7 179.1L239 839.4a31.95 31.95 0 0 0 46.4 33.7l227.1-119.4 227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM665.3 561.3l36.1 210.3-188.9-99.2-188.9 99.3 36.1-210.3-152.8-149 211.2-30.7 94.4-191.3 94.4 191.3 211.2 30.7-152.8 148.9z'
]);
});
exports.StopTwoTone = getIcon('stop', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm288.5 682.8L277.7 224C258 240 240 258 224 277.7l522.8 522.8C682.8 852.7 601 884 512 884c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372c0 89-31.3 170.8-83.5 234.8z'
], [
secondaryColor,
'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372c89 0 170.8-31.3 234.8-83.5L224 277.7c16-19.7 34-37.7 53.7-53.7l522.8 522.8C852.7 682.8 884 601 884 512c0-205.4-166.6-372-372-372z'
]);
});
exports.SwitcherTwoTone = getIcon('switcher', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [secondaryColor, 'M184 840h528V312H184v528zm116-290h296v64H300v-64z'], [
primaryColor,
'M880 112H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h576v576c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V144c0-17.7-14.3-32-32-32z'
], [
primaryColor,
'M752 240H144c-17.7 0-32 14.3-32 32v608c0 17.7 14.3 32 32 32h608c17.7 0 32-14.3 32-32V272c0-17.7-14.3-32-32-32zm-40 600H184V312h528v528z'
], [primaryColor, 'M300 550h296v64H300z']);
});
exports.TabletTwoTone = getIcon('tablet', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M800 64H224c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h576c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64zm-8 824H232V136h560v752z'
], [
secondaryColor,
'M232 888h560V136H232v752zm280-144c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40z'
], [primaryColor, 'M472 784a40 40 0 1 0 80 0 40 40 0 1 0-80 0z']);
});
exports.TagTwoTone = getIcon('tag', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M589 164.6L189.3 564.3l270.4 270.4L859.4 435 836 188l-247-23.4zM680 432c-48.5 0-88-39.5-88-88s39.5-88 88-88 88 39.5 88 88-39.5 88-88 88z'
], [
primaryColor,
'M680 256c-48.5 0-88 39.5-88 88s39.5 88 88 88 88-39.5 88-88-39.5-88-88-88zm0 120c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z'
], [
primaryColor,
'M938 458.8l-29.6-312.6c-1.5-16.2-14.4-29-30.6-30.6L565.2 86h-.4c-3.2 0-5.7 1-7.6 2.9L88.9 557.2a9.96 9.96 0 0 0 0 14.1l363.8 363.8a9.9 9.9 0 0 0 7.1 2.9c2.7 0 5.2-1 7.1-2.9l468.3-468.3c2-2.1 3-5 2.8-8zM459.7 834.7L189.3 564.3 589 164.6 836 188l23.4 247-399.7 399.7z'
]);
});
exports.TagsTwoTone = getIcon('tags', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M477.5 694l311.9-311.8-19-224.6-224.6-19-311.9 311.9L477.5 694zm116-415.5a47.81 47.81 0 0 1 33.9-33.9c16.6-4.4 34.2.3 46.4 12.4a47.93 47.93 0 0 1 12.4 46.4 47.81 47.81 0 0 1-33.9 33.9c-16.6 4.4-34.2-.3-46.4-12.4a48.3 48.3 0 0 1-12.4-46.4z'
], [
secondaryColor,
'M476.6 792.6c-1.7-.2-3.4-1-4.7-2.3L137.7 456.1a8.03 8.03 0 0 1 0-11.3L515.9 66.6c1.2-1.3 2.9-2.1 4.7-2.3h-.4c-2.3-.2-4.7.6-6.3 2.3L135.7 444.8a8.03 8.03 0 0 0 0 11.3l334.2 334.2c1.8 1.9 4.3 2.6 6.7 2.3z'
], [
primaryColor,
'M889.7 539.8l-39.6-39.5a8.03 8.03 0 0 0-11.3 0l-362 361.3-237.6-237a8.03 8.03 0 0 0-11.3 0l-39.6 39.5a8.03 8.03 0 0 0 0 11.3l243.2 242.8 39.6 39.5c3.1 3.1 8.2 3.1 11.3 0l407.3-406.6c3.1-3.1 3.1-8.2 0-11.3zM652.3 337.3a47.81 47.81 0 0 0 33.9-33.9c4.4-16.6-.3-34.2-12.4-46.4a47.93 47.93 0 0 0-46.4-12.4 47.81 47.81 0 0 0-33.9 33.9c-4.4 16.6.3 34.2 12.4 46.4a48.3 48.3 0 0 0 46.4 12.4z'
], [
primaryColor,
'M137.7 444.8a8.03 8.03 0 0 0 0 11.3l334.2 334.2c1.3 1.3 2.9 2.1 4.7 2.3 2.4.3 4.8-.5 6.6-2.3L861.4 412c1.7-1.7 2.5-4 2.3-6.3l-25.5-301.4c-.7-7.8-6.8-13.9-14.6-14.6L522.2 64.3h-1.6c-1.8.2-3.4 1-4.7 2.3L137.7 444.8zm408.1-306.2l224.6 19 19 224.6L477.5 694 233.9 450.5l311.9-311.9z'
]);
});
exports.ToolTwoTone = getIcon('tool', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M706.8 488.7a32.05 32.05 0 0 1-45.3 0L537 364.2a32.05 32.05 0 0 1 0-45.3l132.9-132.8a184.2 184.2 0 0 0-144 53.5c-58.1 58.1-69.3 145.3-33.6 214.6L439.5 507c-.1 0-.1-.1-.1-.1L209.3 737l79.2 79.2 274-274.1.1.1 8.8-8.8c69.3 35.7 156.5 24.5 214.6-33.6 39.2-39.1 57.3-92.1 53.6-143.9L706.8 488.7z'
], [
primaryColor,
'M876.6 239.5c-.5-.9-1.2-1.8-2-2.5-5-5-13.1-5-18.1 0L684.2 409.3l-67.9-67.9L788.7 169c.8-.8 1.4-1.6 2-2.5 3.6-6.1 1.6-13.9-4.5-17.5-98.2-58-226.8-44.7-311.3 39.7-67 67-89.2 162-66.5 247.4l-293 293c-3 3-2.8 7.9.3 11l169.7 169.7c3.1 3.1 8.1 3.3 11 .3l292.9-292.9c85.5 22.8 180.5.7 247.6-66.4 84.4-84.5 97.7-213.1 39.7-311.3zM786 499.8c-58.1 58.1-145.3 69.3-214.6 33.6l-8.8 8.8-.1-.1-274 274.1-79.2-79.2 230.1-230.1s0 .1.1.1l52.8-52.8c-35.7-69.3-24.5-156.5 33.6-214.6a184.2 184.2 0 0 1 144-53.5L537 318.9a32.05 32.05 0 0 0 0 45.3l124.5 124.5a32.05 32.05 0 0 0 45.3 0l132.8-132.8c3.7 51.8-14.4 104.8-53.6 143.9z'
]);
});
exports.TrademarkCircleTwoTone = getIcon('trademark-circle', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
], [
secondaryColor,
'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm170.7 584.2c-1.1.5-2.3.8-3.5.8h-62c-3.1 0-5.9-1.8-7.2-4.6l-74.6-159.2h-88.7V717c0 4.4-3.6 8-8 8H384c-4.4 0-8-3.6-8-8V307c0-4.4 3.6-8 8-8h155.6c98.8 0 144.2 59.9 144.2 131.1 0 70.2-43.6 106.4-78.4 119.2l80.8 164.2c2.1 3.9.4 8.7-3.5 10.7z'
], [
secondaryColor,
'M529.9 357h-83.4v148H528c53 0 82.8-25.6 82.8-72.4 0-50.3-32.9-75.6-80.9-75.6z'
], [
primaryColor,
'M605.4 549.3c34.8-12.8 78.4-49 78.4-119.2 0-71.2-45.4-131.1-144.2-131.1H384c-4.4 0-8 3.6-8 8v410c0 4.4 3.6 8 8 8h54.7c4.4 0 8-3.6 8-8V561.2h88.7L610 720.4c1.3 2.8 4.1 4.6 7.2 4.6h62c1.2 0 2.4-.3 3.5-.8 3.9-2 5.6-6.8 3.5-10.7l-80.8-164.2zM528 505h-81.5V357h83.4c48 0 80.9 25.3 80.9 75.6 0 46.8-29.8 72.4-82.8 72.4z'
]);
});
exports.UnlockTwoTone = getIcon('unlock', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M232 840h560V536H232v304zm280-226a48.01 48.01 0 0 1 28 87v53c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-53a48.01 48.01 0 0 1 28-87z'
], [
primaryColor,
'M484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 1 0-56 0z'
], [
primaryColor,
'M832 464H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v68c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-68c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zm-40 376H232V536h560v304z'
]);
});
exports.TrophyTwoTone = getIcon('trophy', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M320 480c0 49.1 19.1 95.3 53.9 130.1 34.7 34.8 81 53.9 130.1 53.9h16c49.1 0 95.3-19.1 130.1-53.9 34.8-34.7 53.9-81 53.9-130.1V184H320v296zM184 352c0 41 26.9 75.8 64 87.6-37.1-11.9-64-46.7-64-87.6zm364 382.5C665 721.8 758.4 630.2 773.8 514 758.3 630.2 665 721.7 548 734.5zM250.2 514C265.6 630.2 359 721.8 476 734.5 359 721.7 265.7 630.2 250.2 514z'
], [
primaryColor,
'M868 160h-92v-40c0-4.4-3.6-8-8-8H256c-4.4 0-8 3.6-8 8v40h-92a44 44 0 0 0-44 44v148c0 81.7 60 149.6 138.2 162C265.7 630.2 359 721.7 476 734.5v105.2H280c-17.7 0-32 14.3-32 32V904c0 4.4 3.6 8 8 8h512c4.4 0 8-3.6 8-8v-32.3c0-17.7-14.3-32-32-32H548V734.5C665 721.7 758.3 630.2 773.8 514 852 501.6 912 433.7 912 352V204a44 44 0 0 0-44-44zM248 439.6a91.99 91.99 0 0 1-64-87.6V232h64v207.6zM704 480c0 49.1-19.1 95.4-53.9 130.1-34.8 34.8-81 53.9-130.1 53.9h-16c-49.1 0-95.4-19.1-130.1-53.9-34.8-34.8-53.9-81-53.9-130.1V184h384v296zm136-128c0 41-26.9 75.8-64 87.6V232h64v120z'
]);
});
exports.UpCircleTwoTone = getIcon('up-circle', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm178 479h-46.9c-10.2 0-19.9-4.9-25.9-13.2L512 460.4 406.8 605.8c-6 8.3-15.6 13.2-25.9 13.2H334c-6.5 0-10.3-7.4-6.5-12.7l178-246c3.2-4.4 9.7-4.4 12.9 0l178 246c3.9 5.3.1 12.7-6.4 12.7z'
], [
primaryColor,
'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
], [
primaryColor,
'M518.4 360.3a7.95 7.95 0 0 0-12.9 0l-178 246c-3.8 5.3 0 12.7 6.5 12.7h46.9c10.3 0 19.9-4.9 25.9-13.2L512 460.4l105.2 145.4c6 8.3 15.7 13.2 25.9 13.2H690c6.5 0 10.3-7.4 6.4-12.7l-178-246z'
]);
});
exports.ThunderboltTwoTone = getIcon('thunderbolt', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M695.4 164.1H470.8L281.2 491.5h157.4l-60.3 241 319.8-305.1h-211z'
], [
primaryColor,
'M848.1 359.3H627.8L825.9 109c4.1-5.3.4-13-6.3-13H436.1c-2.8 0-5.5 1.5-6.9 4L170.1 547.5c-3.1 5.3.7 12 6.9 12h174.4L262 917.1c-1.9 7.8 7.5 13.3 13.3 7.7L853.6 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.3 732.5l60.3-241H281.2l189.6-327.4h224.6L487.1 427.4h211L378.3 732.5z'
]);
});
exports.UpSquareTwoTone = getIcon('up-square', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
], [
secondaryColor,
'M184 840h656V184H184v656zm143.5-228.7l178-246c3.2-4.4 9.7-4.4 12.9 0l178 246c3.9 5.3.1 12.7-6.4 12.7h-46.9c-10.2 0-19.9-4.9-25.9-13.2L512 465.4 406.8 610.8c-6 8.3-15.6 13.2-25.9 13.2H334c-6.5 0-10.3-7.4-6.5-12.7z'
], [
primaryColor,
'M334 624h46.9c10.3 0 19.9-4.9 25.9-13.2L512 465.4l105.2 145.4c6 8.3 15.7 13.2 25.9 13.2H690c6.5 0 10.3-7.4 6.4-12.7l-178-246a7.95 7.95 0 0 0-12.9 0l-178 246c-3.8 5.3 0 12.7 6.5 12.7z'
]);
});
exports.UsbTwoTone = getIcon('usb', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M759.9 504H264.1c-26.5 0-48.1 19.7-48.1 44v292h592V548c0-24.3-21.6-44-48.1-44z'
], [
primaryColor,
'M456 248h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm160 0h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z'
], [
primaryColor,
'M760 432V144c0-17.7-14.3-32-32-32H296c-17.7 0-32 14.3-32 32v288c-66.2 0-120 52.1-120 116v356c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8V548c0-63.9-53.8-116-120-116zM336 184h352v248H336V184zm472 656H216V548c0-24.3 21.6-44 48.1-44h495.8c26.5 0 48.1 19.7 48.1 44v292z'
]);
});
exports.VideoCameraTwoTone = getIcon('video-camera', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M136 792h576V232H136v560zm64-488c0-4.4 3.6-8 8-8h112c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8H208c-4.4 0-8-3.6-8-8v-48z'
], [
primaryColor,
'M912 302.3L784 376V224c0-35.3-28.7-64-64-64H128c-35.3 0-64 28.7-64 64v576c0 35.3 28.7 64 64 64h592c35.3 0 64-28.7 64-64V648l128 73.7c21.3 12.3 48-3.1 48-27.6V330c0-24.6-26.7-40-48-27.7zM712 792H136V232h576v560zm176-167l-104-59.8V458.9L888 399v226z'
], [
primaryColor,
'M208 360h112c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H208c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z'
]);
});
exports.WalletTwoTone = getIcon('wallet', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 464H528V448h312v128zm0-192H496c-17.7 0-32 14.3-32 32v192c0 17.7 14.3 32 32 32h344v200H184V184h656v200z'
], [
secondaryColor,
'M528 576h312V448H528v128zm92-104c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40z'
], [primaryColor, 'M580 512a40 40 0 1 0 80 0 40 40 0 1 0-80 0z'], [
secondaryColor,
'M184 840h656V640H496c-17.7 0-32-14.3-32-32V416c0-17.7 14.3-32 32-32h344V184H184v656z'
]);
});
exports.WarningTwoTone = getIcon('warning', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z'
], [
secondaryColor,
'M172.2 828.1h679.6L512 239.9 172.2 828.1zM560 720a48.01 48.01 0 0 1-96 0 48.01 48.01 0 0 1 96 0zm-16-304v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8z'
], [
primaryColor,
'M464 720a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8z'
]);
});
exports.CiTwoTone = getIcon('ci', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
], [
secondaryColor,
'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm-63.5 522.8c49.3 0 82.8-29.4 87-72.4.4-4.1 3.8-7.3 8-7.3h52.7c2.4 0 4.4 2 4.4 4.4 0 77.4-64.3 132.5-152.3 132.5C345.4 720 286 651.4 286 537.4v-49C286 373.5 345.4 304 448.3 304c88.3 0 152.3 56.9 152.3 138.1 0 2.4-2 4.4-4.4 4.4h-52.6c-4.2 0-7.6-3.2-8-7.4-3.9-46.1-37.5-77.6-87-77.6-61.1 0-95.6 45.4-95.7 126.8v49.3c0 80.3 34.5 125.2 95.6 125.2zM738 704.1c0 4.4-3.6 8-8 8h-50.4c-4.4 0-8-3.6-8-8V319.9c0-4.4 3.6-8 8-8H730c4.4 0 8 3.6 8 8v384.2z'
], [
primaryColor,
'M730 311.9h-50.4c-4.4 0-8 3.6-8 8v384.2c0 4.4 3.6 8 8 8H730c4.4 0 8-3.6 8-8V319.9c0-4.4-3.6-8-8-8zm-281.4 49.6c49.5 0 83.1 31.5 87 77.6.4 4.2 3.8 7.4 8 7.4h52.6c2.4 0 4.4-2 4.4-4.4 0-81.2-64-138.1-152.3-138.1C345.4 304 286 373.5 286 488.4v49c0 114 59.4 182.6 162.3 182.6 88 0 152.3-55.1 152.3-132.5 0-2.4-2-4.4-4.4-4.4h-52.7c-4.2 0-7.6 3.2-8 7.3-4.2 43-37.7 72.4-87 72.4-61.1 0-95.6-44.9-95.6-125.2v-49.3c.1-81.4 34.6-126.8 95.7-126.8z'
]);
});
exports.CopyrightTwoTone = getIcon('copyright', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
], [
secondaryColor,
'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm5.5 533c52.9 0 88.8-31.7 93-77.8.4-4.1 3.8-7.3 8-7.3h56.8c2.6 0 4.7 2.1 4.7 4.7 0 82.6-68.7 141.4-162.7 141.4C407.4 734 344 660.8 344 539.1v-52.3C344 364.2 407.4 290 517.3 290c94.3 0 162.7 60.7 162.7 147.4 0 2.6-2.1 4.7-4.7 4.7h-56.7c-4.2 0-7.7-3.2-8-7.4-4-49.6-40-83.4-93-83.4-65.2 0-102.1 48.5-102.2 135.5v52.6c0 85.7 36.8 133.6 102.1 133.6z'
], [
primaryColor,
'M517.6 351.3c53 0 89 33.8 93 83.4.3 4.2 3.8 7.4 8 7.4h56.7c2.6 0 4.7-2.1 4.7-4.7 0-86.7-68.4-147.4-162.7-147.4C407.4 290 344 364.2 344 486.8v52.3C344 660.8 407.4 734 517.3 734c94 0 162.7-58.8 162.7-141.4 0-2.6-2.1-4.7-4.7-4.7h-56.8c-4.2 0-7.6 3.2-8 7.3-4.2 46.1-40.1 77.8-93 77.8-65.3 0-102.1-47.9-102.1-133.6v-52.6c.1-87 37-135.5 102.2-135.5z'
]);
});
exports.DollarTwoTone = getIcon('dollar', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
], [
secondaryColor,
'M426.6 410.3c0 25.4 15.7 45.1 49.5 57.3 4.7 1.9 9.4 3.4 15 5v-124c-37 4.7-64.5 25.4-64.5 61.7zm116.5 135.2c-2.9-.6-5.7-1.3-8.8-2.2V677c42.6-3.8 72-27.3 72-66.4 0-30.7-15.9-50.7-63.2-65.1z'
], [
secondaryColor,
'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm22.4 589.2l.2 31.7c0 4.5-3.6 8.1-8 8.1h-28.4c-4.4 0-8-3.6-8-8v-31.4c-89-6.5-130.7-57.1-135.2-112.1-.4-4.7 3.3-8.7 8-8.7h46.2c3.9 0 7.3 2.8 7.9 6.6 5.1 31.8 29.9 55.4 74.1 61.3V534l-24.7-6.3c-52.3-12.5-102.1-45.1-102.1-112.7 0-73 55.4-112.1 126.2-119v-33c0-4.4 3.6-8 8-8h28.1c4.4 0 8 3.6 8 8v32.7c68.5 6.9 119.8 46.9 125.9 109.2a8.1 8.1 0 0 1-8 8.8h-44.9c-4 0-7.4-2.9-7.9-6.9-4-29.2-27.5-53-65.5-58.2v134.3l25.4 5.9c64.8 16 108.9 47 109 116.4 0 75.2-56 117.1-134.3 124z'
], [
primaryColor,
'M559.7 488.8l-25.4-5.9V348.6c38 5.2 61.5 29 65.5 58.2.5 4 3.9 6.9 7.9 6.9h44.9c4.7 0 8.4-4.1 8-8.8-6.1-62.3-57.4-102.3-125.9-109.2V263c0-4.4-3.6-8-8-8h-28.1c-4.4 0-8 3.6-8 8v33c-70.8 6.9-126.2 46-126.2 119 0 67.6 49.8 100.2 102.1 112.7l24.7 6.3v142.7c-44.2-5.9-69-29.5-74.1-61.3-.6-3.8-4-6.6-7.9-6.6H363c-4.7 0-8.4 4-8 8.7 4.5 55 46.2 105.6 135.2 112.1V761c0 4.4 3.6 8 8 8h28.4c4.4 0 8-3.6 8-8.1l-.2-31.7c78.3-6.9 134.3-48.8 134.3-124-.1-69.4-44.2-100.4-109-116.4zm-68.6-16.2c-5.6-1.6-10.3-3.1-15-5-33.8-12.2-49.5-31.9-49.5-57.3 0-36.3 27.5-57 64.5-61.7v124zM534.3 677V543.3c3.1.9 5.9 1.6 8.8 2.2 47.3 14.4 63.2 34.4 63.2 65.1 0 39.1-29.4 62.6-72 66.4z'
]);
});
exports.EuroTwoTone = getIcon('euro', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z'
], [
secondaryColor,
'M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm117.1 581.1c0 3.8-2.7 7-6.4 7.8-15.9 3.4-34.4 5.1-55.3 5.1-109.8 0-183-58.8-200.2-158H337c-4.4 0-8-3.6-8-8v-27.2c0-4.4 3.6-8 8-8h26.1v-36.9c0-4.4 0-8.7.3-12.8H337c-4.4 0-8-3.6-8-8v-27.2c0-4.4 3.6-8 8-8h31.8C388.5 345.7 460.7 290 567.4 290c20.9 0 39.4 1.9 55.3 5.4 3.7.8 6.3 4 6.3 7.8V346a8 8 0 0 1-9.6 7.8c-14.6-2.9-31.8-4.4-51.7-4.4-65.3 0-110.4 33.5-127.6 90.4h128.3c4.4 0 8 3.6 8 8V475c0 4.4-3.6 8-8 8H432.5c-.3 4.4-.3 9.1-.3 13.8v36h136.4c4.4 0 8 3.6 8 8V568c0 4.4-3.6 8-8 8H438c15.3 62 61.3 98.6 129.8 98.6 19.9 0 37.1-1.3 51.8-4.1 4.9-1 9.5 2.8 9.5 7.8v42.8z'
], [
primaryColor,
'M619.6 670.5c-14.7 2.8-31.9 4.1-51.8 4.1-68.5 0-114.5-36.6-129.8-98.6h130.6c4.4 0 8-3.6 8-8v-27.2c0-4.4-3.6-8-8-8H432.2v-36c0-4.7 0-9.4.3-13.8h135.9c4.4 0 8-3.6 8-8v-27.2c0-4.4-3.6-8-8-8H440.1c17.2-56.9 62.3-90.4 127.6-90.4 19.9 0 37.1 1.5 51.7 4.4a8 8 0 0 0 9.6-7.8v-42.8c0-3.8-2.6-7-6.3-7.8-15.9-3.5-34.4-5.4-55.3-5.4-106.7 0-178.9 55.7-198.6 149.9H337c-4.4 0-8 3.6-8 8v27.2c0 4.4 3.6 8 8 8h26.4c-.3 4.1-.3 8.4-.3 12.8v36.9H337c-4.4 0-8 3.6-8 8V568c0 4.4 3.6 8 8 8h30.2c17.2 99.2 90.4 158 200.2 158 20.9 0 39.4-1.7 55.3-5.1 3.7-.8 6.4-4 6.4-7.8v-42.8c0-5-4.6-8.8-9.5-7.8z'
]);
});
exports.GoldTwoTone = getIcon('gold', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
primaryColor,
'M435.7 558.7c-.6-3.9-4-6.7-7.9-6.7H166.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8h342c.4 0 .9 0 1.3-.1 4.4-.7 7.3-4.8 6.6-9.2l-40.2-248zM196.5 748l20.7-128h159.5l20.7 128H196.5zm709.4 58.7l-40.2-248c-.6-3.9-4-6.7-7.9-6.7H596.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8h342c.4 0 .9 0 1.3-.1 4.3-.7 7.3-4.8 6.6-9.2zM626.5 748l20.7-128h159.5l20.7 128H626.5zM342 472h342c.4 0 .9 0 1.3-.1 4.4-.7 7.3-4.8 6.6-9.2l-40.2-248c-.6-3.9-4-6.7-7.9-6.7H382.2c-3.9 0-7.3 2.8-7.9 6.7l-40.2 248c-.1.4-.1.9-.1 1.3 0 4.4 3.6 8 8 8zm91.2-196h159.5l20.7 128h-201l20.8-128z'
], [
secondaryColor,
'M592.7 276H433.2l-20.8 128h201zM217.2 620l-20.7 128h200.9l-20.7-128zm430 0l-20.7 128h200.9l-20.7-128z'
]);
});
exports.CanlendarTwoTone = getIcon('canlendar', twotone, function (primaryColor, secondaryColor) {
return getNode(newViewBox, [
secondaryColor,
'M712 304c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H384v48c0 4.4-3.6 8-8 8h-56c-4.4 0-8-3.6-8-8v-48H184v136h656V256H712v48z'
], [
primaryColor,
'M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zm0-448H184V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136z'
]);
});
/***/ }),
/***/ "./node_modules/add-dom-event-listener/lib/EventBaseObject.js":
/*!********************************************************************!*\
!*** ./node_modules/add-dom-event-listener/lib/EventBaseObject.js ***!
\********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/**
* @ignore
* base event object for custom and dom event.
* @author yiminghe@gmail.com
*/
Object.defineProperty(exports, "__esModule", {
value: true
});
function returnFalse() {
return false;
}
function returnTrue() {
return true;
}
function EventBaseObject() {
this.timeStamp = Date.now();
this.target = undefined;
this.currentTarget = undefined;
}
EventBaseObject.prototype = {
isEventObject: 1,
constructor: EventBaseObject,
isDefaultPrevented: returnFalse,
isPropagationStopped: returnFalse,
isImmediatePropagationStopped: returnFalse,
preventDefault: function preventDefault() {
this.isDefaultPrevented = returnTrue;
},
stopPropagation: function stopPropagation() {
this.isPropagationStopped = returnTrue;
},
stopImmediatePropagation: function stopImmediatePropagation() {
this.isImmediatePropagationStopped = returnTrue;
// fixed 1.2
// call stopPropagation implicitly
this.stopPropagation();
},
halt: function halt(immediate) {
if (immediate) {
this.stopImmediatePropagation();
} else {
this.stopPropagation();
}
this.preventDefault();
}
};
exports["default"] = EventBaseObject;
module.exports = exports["default"];
/***/ }),
/***/ "./node_modules/add-dom-event-listener/lib/EventObject.js":
/*!****************************************************************!*\
!*** ./node_modules/add-dom-event-listener/lib/EventObject.js ***!
\****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/**
* @ignore
* event object for dom
* @author yiminghe@gmail.com
*/
Object.defineProperty(exports, '__esModule', {
value: true
});
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var _EventBaseObject = __webpack_require__(/*! ./EventBaseObject */ "./node_modules/add-dom-event-listener/lib/EventBaseObject.js");
var _EventBaseObject2 = _interopRequireDefault(_EventBaseObject);
var _objectAssign = __webpack_require__(/*! object-assign */ "./node_modules/object-assign/index.js");
var _objectAssign2 = _interopRequireDefault(_objectAssign);
var TRUE = true;
var FALSE = false;
var commonProps = ['altKey', 'bubbles', 'cancelable', 'ctrlKey', 'currentTarget', 'eventPhase', 'metaKey', 'shiftKey', 'target', 'timeStamp', 'view', 'type'];
function isNullOrUndefined(w) {
return w === null || w === undefined;
}
var eventNormalizers = [{
reg: /^key/,
props: ['char', 'charCode', 'key', 'keyCode', 'which'],
fix: function fix(event, nativeEvent) {
if (isNullOrUndefined(event.which)) {
event.which = !isNullOrUndefined(nativeEvent.charCode) ? nativeEvent.charCode : nativeEvent.keyCode;
}
// add metaKey to non-Mac browsers (use ctrl for PC 's and Meta for Macs)
if (event.metaKey === undefined) {
event.metaKey = event.ctrlKey;
}
}
}, {
reg: /^touch/,
props: ['touches', 'changedTouches', 'targetTouches']
}, {
reg: /^hashchange$/,
props: ['newURL', 'oldURL']
}, {
reg: /^gesturechange$/i,
props: ['rotation', 'scale']
}, {
reg: /^(mousewheel|DOMMouseScroll)$/,
props: [],
fix: function fix(event, nativeEvent) {
var deltaX = undefined;
var deltaY = undefined;
var delta = undefined;
var wheelDelta = nativeEvent.wheelDelta;
var axis = nativeEvent.axis;
var wheelDeltaY = nativeEvent.wheelDeltaY;
var wheelDeltaX = nativeEvent.wheelDeltaX;
var detail = nativeEvent.detail;
// ie/webkit
if (wheelDelta) {
delta = wheelDelta / 120;
}
// gecko
if (detail) {
// press control e.detail == 1 else e.detail == 3
delta = 0 - (detail % 3 === 0 ? detail / 3 : detail);
}
// Gecko
if (axis !== undefined) {
if (axis === event.HORIZONTAL_AXIS) {
deltaY = 0;
deltaX = 0 - delta;
} else if (axis === event.VERTICAL_AXIS) {
deltaX = 0;
deltaY = delta;
}
}
// Webkit
if (wheelDeltaY !== undefined) {
deltaY = wheelDeltaY / 120;
}
if (wheelDeltaX !== undefined) {
deltaX = -1 * wheelDeltaX / 120;
}
// 默认 deltaY (ie)
if (!deltaX && !deltaY) {
deltaY = delta;
}
if (deltaX !== undefined) {
/**
* deltaX of mousewheel event
* @property deltaX
* @member Event.DomEvent.Object
*/
event.deltaX = deltaX;
}
if (deltaY !== undefined) {
/**
* deltaY of mousewheel event
* @property deltaY
* @member Event.DomEvent.Object
*/
event.deltaY = deltaY;
}
if (delta !== undefined) {
/**
* delta of mousewheel event
* @property delta
* @member Event.DomEvent.Object
*/
event.delta = delta;
}
}
}, {
reg: /^mouse|contextmenu|click|mspointer|(^DOMMouseScroll$)/i,
props: ['buttons', 'clientX', 'clientY', 'button', 'offsetX', 'relatedTarget', 'which', 'fromElement', 'toElement', 'offsetY', 'pageX', 'pageY', 'screenX', 'screenY'],
fix: function fix(event, nativeEvent) {
var eventDoc = undefined;
var doc = undefined;
var body = undefined;
var target = event.target;
var button = nativeEvent.button;
// Calculate pageX/Y if missing and clientX/Y available
if (target && isNullOrUndefined(event.pageX) && !isNullOrUndefined(nativeEvent.clientX)) {
eventDoc = target.ownerDocument || document;
doc = eventDoc.documentElement;
body = eventDoc.body;
event.pageX = nativeEvent.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc && doc.clientLeft || body && body.clientLeft || 0);
event.pageY = nativeEvent.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc && doc.clientTop || body && body.clientTop || 0);
}
// which for click: 1 === left; 2 === middle; 3 === right
// do not use button
if (!event.which && button !== undefined) {
if (button & 1) {
event.which = 1;
} else if (button & 2) {
event.which = 3;
} else if (button & 4) {
event.which = 2;
} else {
event.which = 0;
}
}
// add relatedTarget, if necessary
if (!event.relatedTarget && event.fromElement) {
event.relatedTarget = event.fromElement === target ? event.toElement : event.fromElement;
}
return event;
}
}];
function retTrue() {
return TRUE;
}
function retFalse() {
return FALSE;
}
function DomEventObject(nativeEvent) {
var type = nativeEvent.type;
var isNative = typeof nativeEvent.stopPropagation === 'function' || typeof nativeEvent.cancelBubble === 'boolean';
_EventBaseObject2['default'].call(this);
this.nativeEvent = nativeEvent;
// in case dom event has been mark as default prevented by lower dom node
var isDefaultPrevented = retFalse;
if ('defaultPrevented' in nativeEvent) {
isDefaultPrevented = nativeEvent.defaultPrevented ? retTrue : retFalse;
} else if ('getPreventDefault' in nativeEvent) {
// https://bugzilla.mozilla.org/show_bug.cgi?id=691151
isDefaultPrevented = nativeEvent.getPreventDefault() ? retTrue : retFalse;
} else if ('returnValue' in nativeEvent) {
isDefaultPrevented = nativeEvent.returnValue === FALSE ? retTrue : retFalse;
}
this.isDefaultPrevented = isDefaultPrevented;
var fixFns = [];
var fixFn = undefined;
var l = undefined;
var prop = undefined;
var props = commonProps.concat();
eventNormalizers.forEach(function (normalizer) {
if (type.match(normalizer.reg)) {
props = props.concat(normalizer.props);
if (normalizer.fix) {
fixFns.push(normalizer.fix);
}
}
});
l = props.length;
// clone properties of the original event object
while (l) {
prop = props[--l];
this[prop] = nativeEvent[prop];
}
// fix target property, if necessary
if (!this.target && isNative) {
this.target = nativeEvent.srcElement || document; // srcElement might not be defined either
}
// check if target is a text node (safari)
if (this.target && this.target.nodeType === 3) {
this.target = this.target.parentNode;
}
l = fixFns.length;
while (l) {
fixFn = fixFns[--l];
fixFn(this, nativeEvent);
}
this.timeStamp = nativeEvent.timeStamp || Date.now();
}
var EventBaseObjectProto = _EventBaseObject2['default'].prototype;
(0, _objectAssign2['default'])(DomEventObject.prototype, EventBaseObjectProto, {
constructor: DomEventObject,
preventDefault: function preventDefault() {
var e = this.nativeEvent;
// if preventDefault exists run it on the original event
if (e.preventDefault) {
e.preventDefault();
} else {
// otherwise set the returnValue property of the original event to FALSE (IE)
e.returnValue = FALSE;
}
EventBaseObjectProto.preventDefault.call(this);
},
stopPropagation: function stopPropagation() {
var e = this.nativeEvent;
// if stopPropagation exists run it on the original event
if (e.stopPropagation) {
e.stopPropagation();
} else {
// otherwise set the cancelBubble property of the original event to TRUE (IE)
e.cancelBubble = TRUE;
}
EventBaseObjectProto.stopPropagation.call(this);
}
});
exports['default'] = DomEventObject;
module.exports = exports['default'];
/***/ }),
/***/ "./node_modules/add-dom-event-listener/lib/index.js":
/*!**********************************************************!*\
!*** ./node_modules/add-dom-event-listener/lib/index.js ***!
\**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, '__esModule', {
value: true
});
exports['default'] = addEventListener;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var _EventObject = __webpack_require__(/*! ./EventObject */ "./node_modules/add-dom-event-listener/lib/EventObject.js");
var _EventObject2 = _interopRequireDefault(_EventObject);
function addEventListener(target, eventType, callback, option) {
function wrapCallback(e) {
var ne = new _EventObject2['default'](e);
callback.call(target, ne);
}
if (target.addEventListener) {
var _ret = (function () {
var useCapture = false;
if (typeof option === 'object') {
useCapture = option.capture || false;
} else if (typeof option === 'boolean') {
useCapture = option;
}
target.addEventListener(eventType, wrapCallback, option || false);
return {
v: {
remove: function remove() {
target.removeEventListener(eventType, wrapCallback, useCapture);
}
}
};
})();
if (typeof _ret === 'object') return _ret.v;
} else if (target.attachEvent) {
target.attachEvent('on' + eventType, wrapCallback);
return {
remove: function remove() {
target.detachEvent('on' + eventType, wrapCallback);
}
};
}
}
module.exports = exports['default'];
/***/ }),
/***/ "./node_modules/array-tree-filter/lib/index.js":
/*!*****************************************************!*\
!*** ./node_modules/array-tree-filter/lib/index.js ***!
\*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
(function (global, factory) {
true ? module.exports = factory() :
undefined;
}(this, (function () { 'use strict';
function arrayTreeFilter(data, filterFn, options) {
options = options || {};
options.childrenKeyName = options.childrenKeyName || "children";
var children = data || [];
var result = [];
var level = 0;
do {
var foundItem = children.filter(function (item) {
return filterFn(item, level);
})[0];
if (!foundItem) {
break;
}
result.push(foundItem);
children = foundItem[options.childrenKeyName] || [];
level += 1;
} while (children.length > 0);
return result;
}
return arrayTreeFilter;
})));
/***/ }),
/***/ "./node_modules/async-validator/dist-web/index.js":
/*!********************************************************!*\
!*** ./node_modules/async-validator/dist-web/index.js ***!
\********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* WEBPACK VAR INJECTION */(function(process) {function _extends() {
_extends = Object.assign || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
}
return target;
};
return _extends.apply(this, arguments);
}
function _inheritsLoose(subClass, superClass) {
subClass.prototype = Object.create(superClass.prototype);
subClass.prototype.constructor = subClass;
subClass.__proto__ = superClass;
}
function _getPrototypeOf(o) {
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
return o.__proto__ || Object.getPrototypeOf(o);
};
return _getPrototypeOf(o);
}
function _setPrototypeOf(o, p) {
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
o.__proto__ = p;
return o;
};
return _setPrototypeOf(o, p);
}
function _isNativeReflectConstruct() {
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
if (Reflect.construct.sham) return false;
if (typeof Proxy === "function") return true;
try {
Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
return true;
} catch (e) {
return false;
}
}
function _construct(Parent, args, Class) {
if (_isNativeReflectConstruct()) {
_construct = Reflect.construct;
} else {
_construct = function _construct(Parent, args, Class) {
var a = [null];
a.push.apply(a, args);
var Constructor = Function.bind.apply(Parent, a);
var instance = new Constructor();
if (Class) _setPrototypeOf(instance, Class.prototype);
return instance;
};
}
return _construct.apply(null, arguments);
}
function _isNativeFunction(fn) {
return Function.toString.call(fn).indexOf("[native code]") !== -1;
}
function _wrapNativeSuper(Class) {
var _cache = typeof Map === "function" ? new Map() : undefined;
_wrapNativeSuper = function _wrapNativeSuper(Class) {
if (Class === null || !_isNativeFunction(Class)) return Class;
if (typeof Class !== "function") {
throw new TypeError("Super expression must either be null or a function");
}
if (typeof _cache !== "undefined") {
if (_cache.has(Class)) return _cache.get(Class);
_cache.set(Class, Wrapper);
}
function Wrapper() {
return _construct(Class, arguments, _getPrototypeOf(this).constructor);
}
Wrapper.prototype = Object.create(Class.prototype, {
constructor: {
value: Wrapper,
enumerable: false,
writable: true,
configurable: true
}
});
return _setPrototypeOf(Wrapper, Class);
};
return _wrapNativeSuper(Class);
}
/* eslint no-console:0 */
var formatRegExp = /%[sdj%]/g;
var warning = function warning() {}; // don't print warning message when in production env or node runtime
if (typeof process !== 'undefined' && process.env && "development" !== 'production' && typeof window !== 'undefined' && typeof document !== 'undefined') {
warning = function warning(type, errors) {
if (typeof console !== 'undefined' && console.warn) {
if (errors.every(function (e) {
return typeof e === 'string';
})) {
console.warn(type, errors);
}
}
};
}
function convertFieldsError(errors) {
if (!errors || !errors.length) return null;
var fields = {};
errors.forEach(function (error) {
var field = error.field;
fields[field] = fields[field] || [];
fields[field].push(error);
});
return fields;
}
function format() {
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
var i = 1;
var f = args[0];
var len = args.length;
if (typeof f === 'function') {
return f.apply(null, args.slice(1));
}
if (typeof f === 'string') {
var str = String(f).replace(formatRegExp, function (x) {
if (x === '%%') {
return '%';
}
if (i >= len) {
return x;
}
switch (x) {
case '%s':
return String(args[i++]);
case '%d':
return Number(args[i++]);
case '%j':
try {
return JSON.stringify(args[i++]);
} catch (_) {
return '[Circular]';
}
break;
default:
return x;
}
});
return str;
}
return f;
}
function isNativeStringType(type) {
return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'date' || type === 'pattern';
}
function isEmptyValue(value, type) {
if (value === undefined || value === null) {
return true;
}
if (type === 'array' && Array.isArray(value) && !value.length) {
return true;
}
if (isNativeStringType(type) && typeof value === 'string' && !value) {
return true;
}
return false;
}
function asyncParallelArray(arr, func, callback) {
var results = [];
var total = 0;
var arrLength = arr.length;
function count(errors) {
results.push.apply(results, errors);
total++;
if (total === arrLength) {
callback(results);
}
}
arr.forEach(function (a) {
func(a, count);
});
}
function asyncSerialArray(arr, func, callback) {
var index = 0;
var arrLength = arr.length;
function next(errors) {
if (errors && errors.length) {
callback(errors);
return;
}
var original = index;
index = index + 1;
if (original < arrLength) {
func(arr[original], next);
} else {
callback([]);
}
}
next([]);
}
function flattenObjArr(objArr) {
var ret = [];
Object.keys(objArr).forEach(function (k) {
ret.push.apply(ret, objArr[k]);
});
return ret;
}
var AsyncValidationError = /*#__PURE__*/function (_Error) {
_inheritsLoose(AsyncValidationError, _Error);
function AsyncValidationError(errors, fields) {
var _this;
_this = _Error.call(this, 'Async Validation Error') || this;
_this.errors = errors;
_this.fields = fields;
return _this;
}
return AsyncValidationError;
}( /*#__PURE__*/_wrapNativeSuper(Error));
function asyncMap(objArr, option, func, callback) {
if (option.first) {
var _pending = new Promise(function (resolve, reject) {
var next = function next(errors) {
callback(errors);
return errors.length ? reject(new AsyncValidationError(errors, convertFieldsError(errors))) : resolve();
};
var flattenArr = flattenObjArr(objArr);
asyncSerialArray(flattenArr, func, next);
});
_pending["catch"](function (e) {
return e;
});
return _pending;
}
var firstFields = option.firstFields || [];
if (firstFields === true) {
firstFields = Object.keys(objArr);
}
var objArrKeys = Object.keys(objArr);
var objArrLength = objArrKeys.length;
var total = 0;
var results = [];
var pending = new Promise(function (resolve, reject) {
var next = function next(errors) {
results.push.apply(results, errors);
total++;
if (total === objArrLength) {
callback(results);
return results.length ? reject(new AsyncValidationError(results, convertFieldsError(results))) : resolve();
}
};
if (!objArrKeys.length) {
callback(results);
resolve();
}
objArrKeys.forEach(function (key) {
var arr = objArr[key];
if (firstFields.indexOf(key) !== -1) {
asyncSerialArray(arr, func, next);
} else {
asyncParallelArray(arr, func, next);
}
});
});
pending["catch"](function (e) {
return e;
});
return pending;
}
function complementError(rule) {
return function (oe) {
if (oe && oe.message) {
oe.field = oe.field || rule.fullField;
return oe;
}
return {
message: typeof oe === 'function' ? oe() : oe,
field: oe.field || rule.fullField
};
};
}
function deepMerge(target, source) {
if (source) {
for (var s in source) {
if (source.hasOwnProperty(s)) {
var value = source[s];
if (typeof value === 'object' && typeof target[s] === 'object') {
target[s] = _extends(_extends({}, target[s]), value);
} else {
target[s] = value;
}
}
}
}
return target;
}
/**
* Rule for validating required fields.
*
* @param rule The validation rule.
* @param value The value of the field on the source object.
* @param source The source object being validated.
* @param errors An array of errors that this rule may add
* validation errors to.
* @param options The validation options.
* @param options.messages The validation messages.
*/
function required(rule, value, source, errors, options, type) {
if (rule.required && (!source.hasOwnProperty(rule.field) || isEmptyValue(value, type || rule.type))) {
errors.push(format(options.messages.required, rule.fullField));
}
}
/**
* Rule for validating whitespace.
*
* @param rule The validation rule.
* @param value The value of the field on the source object.
* @param source The source object being validated.
* @param errors An array of errors that this rule may add
* validation errors to.
* @param options The validation options.
* @param options.messages The validation messages.
*/
function whitespace(rule, value, source, errors, options) {
if (/^\s+$/.test(value) || value === '') {
errors.push(format(options.messages.whitespace, rule.fullField));
}
}
/* eslint max-len:0 */
var pattern = {
// http://emailregex.com/
email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
url: new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$", 'i'),
hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
};
var types = {
integer: function integer(value) {
return types.number(value) && parseInt(value, 10) === value;
},
"float": function float(value) {
return types.number(value) && !types.integer(value);
},
array: function array(value) {
return Array.isArray(value);
},
regexp: function regexp(value) {
if (value instanceof RegExp) {
return true;
}
try {
return !!new RegExp(value);
} catch (e) {
return false;
}
},
date: function date(value) {
return typeof value.getTime === 'function' && typeof value.getMonth === 'function' && typeof value.getYear === 'function' && !isNaN(value.getTime());
},
number: function number(value) {
if (isNaN(value)) {
return false;
}
return typeof value === 'number';
},
object: function object(value) {
return typeof value === 'object' && !types.array(value);
},
method: function method(value) {
return typeof value === 'function';
},
email: function email(value) {
return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255;
},
url: function url(value) {
return typeof value === 'string' && !!value.match(pattern.url);
},
hex: function hex(value) {
return typeof value === 'string' && !!value.match(pattern.hex);
}
};
/**
* Rule for validating the type of a value.
*
* @param rule The validation rule.
* @param value The value of the field on the source object.
* @param source The source object being validated.
* @param errors An array of errors that this rule may add
* validation errors to.
* @param options The validation options.
* @param options.messages The validation messages.
*/
function type(rule, value, source, errors, options) {
if (rule.required && value === undefined) {
required(rule, value, source, errors, options);
return;
}
var custom = ['integer', 'float', 'array', 'regexp', 'object', 'method', 'email', 'number', 'date', 'url', 'hex'];
var ruleType = rule.type;
if (custom.indexOf(ruleType) > -1) {
if (!types[ruleType](value)) {
errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
} // straight typeof check
} else if (ruleType && typeof value !== rule.type) {
errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));
}
}
/**
* Rule for validating minimum and maximum allowed values.
*
* @param rule The validation rule.
* @param value The value of the field on the source object.
* @param source The source object being validated.
* @param errors An array of errors that this rule may add
* validation errors to.
* @param options The validation options.
* @param options.messages The validation messages.
*/
function range(rule, value, source, errors, options) {
var len = typeof rule.len === 'number';
var min = typeof rule.min === 'number';
var max = typeof rule.max === 'number'; // 正则匹配码点范围从U+010000一直到U+10FFFF的文字补充平面Supplementary Plane
var spRegexp = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
var val = value;
var key = null;
var num = typeof value === 'number';
var str = typeof value === 'string';
var arr = Array.isArray(value);
if (num) {
key = 'number';
} else if (str) {
key = 'string';
} else if (arr) {
key = 'array';
} // if the value is not of a supported type for range validation
// the validation rule rule should use the
// type property to also test for a particular type
if (!key) {
return false;
}
if (arr) {
val = value.length;
}
if (str) {
// 处理码点大于U+010000的文字length属性不准确的bug如"𠮷𠮷𠮷".lenght !== 3
val = value.replace(spRegexp, '_').length;
}
if (len) {
if (val !== rule.len) {
errors.push(format(options.messages[key].len, rule.fullField, rule.len));
}
} else if (min && !max && val < rule.min) {
errors.push(format(options.messages[key].min, rule.fullField, rule.min));
} else if (max && !min && val > rule.max) {
errors.push(format(options.messages[key].max, rule.fullField, rule.max));
} else if (min && max && (val < rule.min || val > rule.max)) {
errors.push(format(options.messages[key].range, rule.fullField, rule.min, rule.max));
}
}
var ENUM = 'enum';
/**
* Rule for validating a value exists in an enumerable list.
*
* @param rule The validation rule.
* @param value The value of the field on the source object.
* @param source The source object being validated.
* @param errors An array of errors that this rule may add
* validation errors to.
* @param options The validation options.
* @param options.messages The validation messages.
*/
function enumerable(rule, value, source, errors, options) {
rule[ENUM] = Array.isArray(rule[ENUM]) ? rule[ENUM] : [];
if (rule[ENUM].indexOf(value) === -1) {
errors.push(format(options.messages[ENUM], rule.fullField, rule[ENUM].join(', ')));
}
}
/**
* Rule for validating a regular expression pattern.
*
* @param rule The validation rule.
* @param value The value of the field on the source object.
* @param source The source object being validated.
* @param errors An array of errors that this rule may add
* validation errors to.
* @param options The validation options.
* @param options.messages The validation messages.
*/
function pattern$1(rule, value, source, errors, options) {
if (rule.pattern) {
if (rule.pattern instanceof RegExp) {
// if a RegExp instance is passed, reset `lastIndex` in case its `global`
// flag is accidentally set to `true`, which in a validation scenario
// is not necessary and the result might be misleading
rule.pattern.lastIndex = 0;
if (!rule.pattern.test(value)) {
errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
}
} else if (typeof rule.pattern === 'string') {
var _pattern = new RegExp(rule.pattern);
if (!_pattern.test(value)) {
errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));
}
}
}
}
var rules = {
required: required,
whitespace: whitespace,
type: type,
range: range,
"enum": enumerable,
pattern: pattern$1
};
/**
* Performs validation for string types.
*
* @param rule The validation rule.
* @param value The value of the field on the source object.
* @param callback The callback function.
* @param source The source object being validated.
* @param options The validation options.
* @param options.messages The validation messages.
*/
function string(rule, value, callback, source, options) {
var errors = [];
var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
if (validate) {
if (isEmptyValue(value, 'string') && !rule.required) {
return callback();
}
rules.required(rule, value, source, errors, options, 'string');
if (!isEmptyValue(value, 'string')) {
rules.type(rule, value, source, errors, options);
rules.range(rule, value, source, errors, options);
rules.pattern(rule, value, source, errors, options);
if (rule.whitespace === true) {
rules.whitespace(rule, value, source, errors, options);
}
}
}
callback(errors);
}
/**
* Validates a function.
*
* @param rule The validation rule.
* @param value The value of the field on the source object.
* @param callback The callback function.
* @param source The source object being validated.
* @param options The validation options.
* @param options.messages The validation messages.
*/
function method(rule, value, callback, source, options) {
var errors = [];
var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
if (validate) {
if (isEmptyValue(value) && !rule.required) {
return callback();
}
rules.required(rule, value, source, errors, options);
if (value !== undefined) {
rules.type(rule, value, source, errors, options);
}
}
callback(errors);
}
/**
* Validates a number.
*
* @param rule The validation rule.
* @param value The value of the field on the source object.
* @param callback The callback function.
* @param source The source object being validated.
* @param options The validation options.
* @param options.messages The validation messages.
*/
function number(rule, value, callback, source, options) {
var errors = [];
var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
if (validate) {
if (value === '') {
value = undefined;
}
if (isEmptyValue(value) && !rule.required) {
return callback();
}
rules.required(rule, value, source, errors, options);
if (value !== undefined) {
rules.type(rule, value, source, errors, options);
rules.range(rule, value, source, errors, options);
}
}
callback(errors);
}
/**
* Validates a boolean.
*
* @param rule The validation rule.
* @param value The value of the field on the source object.
* @param callback The callback function.
* @param source The source object being validated.
* @param options The validation options.
* @param options.messages The validation messages.
*/
function _boolean(rule, value, callback, source, options) {
var errors = [];
var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
if (validate) {
if (isEmptyValue(value) && !rule.required) {
return callback();
}
rules.required(rule, value, source, errors, options);
if (value !== undefined) {
rules.type(rule, value, source, errors, options);
}
}
callback(errors);
}
/**
* Validates the regular expression type.
*
* @param rule The validation rule.
* @param value The value of the field on the source object.
* @param callback The callback function.
* @param source The source object being validated.
* @param options The validation options.
* @param options.messages The validation messages.
*/
function regexp(rule, value, callback, source, options) {
var errors = [];
var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
if (validate) {
if (isEmptyValue(value) && !rule.required) {
return callback();
}
rules.required(rule, value, source, errors, options);
if (!isEmptyValue(value)) {
rules.type(rule, value, source, errors, options);
}
}
callback(errors);
}
/**
* Validates a number is an integer.
*
* @param rule The validation rule.
* @param value The value of the field on the source object.
* @param callback The callback function.
* @param source The source object being validated.
* @param options The validation options.
* @param options.messages The validation messages.
*/
function integer(rule, value, callback, source, options) {
var errors = [];
var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
if (validate) {
if (isEmptyValue(value) && !rule.required) {
return callback();
}
rules.required(rule, value, source, errors, options);
if (value !== undefined) {
rules.type(rule, value, source, errors, options);
rules.range(rule, value, source, errors, options);
}
}
callback(errors);
}
/**
* Validates a number is a floating point number.
*
* @param rule The validation rule.
* @param value The value of the field on the source object.
* @param callback The callback function.
* @param source The source object being validated.
* @param options The validation options.
* @param options.messages The validation messages.
*/
function floatFn(rule, value, callback, source, options) {
var errors = [];
var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
if (validate) {
if (isEmptyValue(value) && !rule.required) {
return callback();
}
rules.required(rule, value, source, errors, options);
if (value !== undefined) {
rules.type(rule, value, source, errors, options);
rules.range(rule, value, source, errors, options);
}
}
callback(errors);
}
/**
* Validates an array.
*
* @param rule The validation rule.
* @param value The value of the field on the source object.
* @param callback The callback function.
* @param source The source object being validated.
* @param options The validation options.
* @param options.messages The validation messages.
*/
function array(rule, value, callback, source, options) {
var errors = [];
var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
if (validate) {
if ((value === undefined || value === null) && !rule.required) {
return callback();
}
rules.required(rule, value, source, errors, options, 'array');
if (value !== undefined && value !== null) {
rules.type(rule, value, source, errors, options);
rules.range(rule, value, source, errors, options);
}
}
callback(errors);
}
/**
* Validates an object.
*
* @param rule The validation rule.
* @param value The value of the field on the source object.
* @param callback The callback function.
* @param source The source object being validated.
* @param options The validation options.
* @param options.messages The validation messages.
*/
function object(rule, value, callback, source, options) {
var errors = [];
var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
if (validate) {
if (isEmptyValue(value) && !rule.required) {
return callback();
}
rules.required(rule, value, source, errors, options);
if (value !== undefined) {
rules.type(rule, value, source, errors, options);
}
}
callback(errors);
}
var ENUM$1 = 'enum';
/**
* Validates an enumerable list.
*
* @param rule The validation rule.
* @param value The value of the field on the source object.
* @param callback The callback function.
* @param source The source object being validated.
* @param options The validation options.
* @param options.messages The validation messages.
*/
function enumerable$1(rule, value, callback, source, options) {
var errors = [];
var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
if (validate) {
if (isEmptyValue(value) && !rule.required) {
return callback();
}
rules.required(rule, value, source, errors, options);
if (value !== undefined) {
rules[ENUM$1](rule, value, source, errors, options);
}
}
callback(errors);
}
/**
* Validates a regular expression pattern.
*
* Performs validation when a rule only contains
* a pattern property but is not declared as a string type.
*
* @param rule The validation rule.
* @param value The value of the field on the source object.
* @param callback The callback function.
* @param source The source object being validated.
* @param options The validation options.
* @param options.messages The validation messages.
*/
function pattern$2(rule, value, callback, source, options) {
var errors = [];
var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
if (validate) {
if (isEmptyValue(value, 'string') && !rule.required) {
return callback();
}
rules.required(rule, value, source, errors, options);
if (!isEmptyValue(value, 'string')) {
rules.pattern(rule, value, source, errors, options);
}
}
callback(errors);
}
function date(rule, value, callback, source, options) {
// console.log('integer rule called %j', rule);
var errors = [];
var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); // console.log('validate on %s value', value);
if (validate) {
if (isEmptyValue(value, 'date') && !rule.required) {
return callback();
}
rules.required(rule, value, source, errors, options);
if (!isEmptyValue(value, 'date')) {
var dateObject;
if (value instanceof Date) {
dateObject = value;
} else {
dateObject = new Date(value);
}
rules.type(rule, dateObject, source, errors, options);
if (dateObject) {
rules.range(rule, dateObject.getTime(), source, errors, options);
}
}
}
callback(errors);
}
function required$1(rule, value, callback, source, options) {
var errors = [];
var type = Array.isArray(value) ? 'array' : typeof value;
rules.required(rule, value, source, errors, options, type);
callback(errors);
}
function type$1(rule, value, callback, source, options) {
var ruleType = rule.type;
var errors = [];
var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
if (validate) {
if (isEmptyValue(value, ruleType) && !rule.required) {
return callback();
}
rules.required(rule, value, source, errors, options, ruleType);
if (!isEmptyValue(value, ruleType)) {
rules.type(rule, value, source, errors, options);
}
}
callback(errors);
}
/**
* Performs validation for any type.
*
* @param rule The validation rule.
* @param value The value of the field on the source object.
* @param callback The callback function.
* @param source The source object being validated.
* @param options The validation options.
* @param options.messages The validation messages.
*/
function any(rule, value, callback, source, options) {
var errors = [];
var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
if (validate) {
if (isEmptyValue(value) && !rule.required) {
return callback();
}
rules.required(rule, value, source, errors, options);
}
callback(errors);
}
var validators = {
string: string,
method: method,
number: number,
"boolean": _boolean,
regexp: regexp,
integer: integer,
"float": floatFn,
array: array,
object: object,
"enum": enumerable$1,
pattern: pattern$2,
date: date,
url: type$1,
hex: type$1,
email: type$1,
required: required$1,
any: any
};
function newMessages() {
return {
"default": 'Validation error on field %s',
required: '%s is required',
"enum": '%s must be one of %s',
whitespace: '%s cannot be empty',
date: {
format: '%s date %s is invalid for format %s',
parse: '%s date could not be parsed, %s is invalid ',
invalid: '%s date %s is invalid'
},
types: {
string: '%s is not a %s',
method: '%s is not a %s (function)',
array: '%s is not an %s',
object: '%s is not an %s',
number: '%s is not a %s',
date: '%s is not a %s',
"boolean": '%s is not a %s',
integer: '%s is not an %s',
"float": '%s is not a %s',
regexp: '%s is not a valid %s',
email: '%s is not a valid %s',
url: '%s is not a valid %s',
hex: '%s is not a valid %s'
},
string: {
len: '%s must be exactly %s characters',
min: '%s must be at least %s characters',
max: '%s cannot be longer than %s characters',
range: '%s must be between %s and %s characters'
},
number: {
len: '%s must equal %s',
min: '%s cannot be less than %s',
max: '%s cannot be greater than %s',
range: '%s must be between %s and %s'
},
array: {
len: '%s must be exactly %s in length',
min: '%s cannot be less than %s in length',
max: '%s cannot be greater than %s in length',
range: '%s must be between %s and %s in length'
},
pattern: {
mismatch: '%s value %s does not match pattern %s'
},
clone: function clone() {
var cloned = JSON.parse(JSON.stringify(this));
cloned.clone = this.clone;
return cloned;
}
};
}
var messages = newMessages();
/**
* Encapsulates a validation schema.
*
* @param descriptor An object declaring validation rules
* for this schema.
*/
function Schema(descriptor) {
this.rules = null;
this._messages = messages;
this.define(descriptor);
}
Schema.prototype = {
messages: function messages(_messages) {
if (_messages) {
this._messages = deepMerge(newMessages(), _messages);
}
return this._messages;
},
define: function define(rules) {
if (!rules) {
throw new Error('Cannot configure a schema with no rules');
}
if (typeof rules !== 'object' || Array.isArray(rules)) {
throw new Error('Rules must be an object');
}
this.rules = {};
var z;
var item;
for (z in rules) {
if (rules.hasOwnProperty(z)) {
item = rules[z];
this.rules[z] = Array.isArray(item) ? item : [item];
}
}
},
validate: function validate(source_, o, oc) {
var _this = this;
if (o === void 0) {
o = {};
}
if (oc === void 0) {
oc = function oc() {};
}
var source = source_;
var options = o;
var callback = oc;
if (typeof options === 'function') {
callback = options;
options = {};
}
if (!this.rules || Object.keys(this.rules).length === 0) {
if (callback) {
callback();
}
return Promise.resolve();
}
function complete(results) {
var i;
var errors = [];
var fields = {};
function add(e) {
if (Array.isArray(e)) {
var _errors;
errors = (_errors = errors).concat.apply(_errors, e);
} else {
errors.push(e);
}
}
for (i = 0; i < results.length; i++) {
add(results[i]);
}
if (!errors.length) {
errors = null;
fields = null;
} else {
fields = convertFieldsError(errors);
}
callback(errors, fields);
}
if (options.messages) {
var messages$1 = this.messages();
if (messages$1 === messages) {
messages$1 = newMessages();
}
deepMerge(messages$1, options.messages);
options.messages = messages$1;
} else {
options.messages = this.messages();
}
var arr;
var value;
var series = {};
var keys = options.keys || Object.keys(this.rules);
keys.forEach(function (z) {
arr = _this.rules[z];
value = source[z];
arr.forEach(function (r) {
var rule = r;
if (typeof rule.transform === 'function') {
if (source === source_) {
source = _extends({}, source);
}
value = source[z] = rule.transform(value);
}
if (typeof rule === 'function') {
rule = {
validator: rule
};
} else {
rule = _extends({}, rule);
}
rule.validator = _this.getValidationMethod(rule);
rule.field = z;
rule.fullField = rule.fullField || z;
rule.type = _this.getType(rule);
if (!rule.validator) {
return;
}
series[z] = series[z] || [];
series[z].push({
rule: rule,
value: value,
source: source,
field: z
});
});
});
var errorFields = {};
return asyncMap(series, options, function (data, doIt) {
var rule = data.rule;
var deep = (rule.type === 'object' || rule.type === 'array') && (typeof rule.fields === 'object' || typeof rule.defaultField === 'object');
deep = deep && (rule.required || !rule.required && data.value);
rule.field = data.field;
function addFullfield(key, schema) {
return _extends(_extends({}, schema), {}, {
fullField: rule.fullField + "." + key
});
}
function cb(e) {
if (e === void 0) {
e = [];
}
var errors = e;
if (!Array.isArray(errors)) {
errors = [errors];
}
if (!options.suppressWarning && errors.length) {
Schema.warning('async-validator:', errors);
}
if (errors.length && rule.message !== undefined) {
errors = [].concat(rule.message);
}
errors = errors.map(complementError(rule));
if (options.first && errors.length) {
errorFields[rule.field] = 1;
return doIt(errors);
}
if (!deep) {
doIt(errors);
} else {
// if rule is required but the target object
// does not exist fail at the rule level and don't
// go deeper
if (rule.required && !data.value) {
if (rule.message !== undefined) {
errors = [].concat(rule.message).map(complementError(rule));
} else if (options.error) {
errors = [options.error(rule, format(options.messages.required, rule.field))];
}
return doIt(errors);
}
var fieldsSchema = {};
if (rule.defaultField) {
for (var k in data.value) {
if (data.value.hasOwnProperty(k)) {
fieldsSchema[k] = rule.defaultField;
}
}
}
fieldsSchema = _extends(_extends({}, fieldsSchema), data.rule.fields);
for (var f in fieldsSchema) {
if (fieldsSchema.hasOwnProperty(f)) {
var fieldSchema = Array.isArray(fieldsSchema[f]) ? fieldsSchema[f] : [fieldsSchema[f]];
fieldsSchema[f] = fieldSchema.map(addFullfield.bind(null, f));
}
}
var schema = new Schema(fieldsSchema);
schema.messages(options.messages);
if (data.rule.options) {
data.rule.options.messages = options.messages;
data.rule.options.error = options.error;
}
schema.validate(data.value, data.rule.options || options, function (errs) {
var finalErrors = [];
if (errors && errors.length) {
finalErrors.push.apply(finalErrors, errors);
}
if (errs && errs.length) {
finalErrors.push.apply(finalErrors, errs);
}
doIt(finalErrors.length ? finalErrors : null);
});
}
}
var res;
if (rule.asyncValidator) {
res = rule.asyncValidator(rule, data.value, cb, data.source, options);
} else if (rule.validator) {
res = rule.validator(rule, data.value, cb, data.source, options);
if (res === true) {
cb();
} else if (res === false) {
cb(rule.message || rule.field + " fails");
} else if (res instanceof Array) {
cb(res);
} else if (res instanceof Error) {
cb(res.message);
}
}
if (res && res.then) {
res.then(function () {
return cb();
}, function (e) {
return cb(e);
});
}
}, function (results) {
complete(results);
});
},
getType: function getType(rule) {
if (rule.type === undefined && rule.pattern instanceof RegExp) {
rule.type = 'pattern';
}
if (typeof rule.validator !== 'function' && rule.type && !validators.hasOwnProperty(rule.type)) {
throw new Error(format('Unknown rule type %s', rule.type));
}
return rule.type || 'string';
},
getValidationMethod: function getValidationMethod(rule) {
if (typeof rule.validator === 'function') {
return rule.validator;
}
var keys = Object.keys(rule);
var messageIndex = keys.indexOf('message');
if (messageIndex !== -1) {
keys.splice(messageIndex, 1);
}
if (keys.length === 1 && keys[0] === 'required') {
return validators.required;
}
return validators[this.getType(rule)] || false;
}
};
Schema.register = function register(type, validator) {
if (typeof validator !== 'function') {
throw new Error('Cannot register a validator by type, validator is not a function');
}
validators[type] = validator;
};
Schema.warning = warning;
Schema.messages = messages;
Schema.validators = validators;
/* harmony default export */ __webpack_exports__["default"] = (Schema);
//# sourceMappingURL=index.js.map
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../process/browser.js */ "./node_modules/process/browser.js")))
/***/ }),
/***/ "./node_modules/babel-helper-vue-jsx-merge-props/index.js":
/*!****************************************************************!*\
!*** ./node_modules/babel-helper-vue-jsx-merge-props/index.js ***!
\****************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
var nestRE = /^(attrs|props|on|nativeOn|class|style|hook)$/
module.exports = function mergeJSXProps (objs) {
return objs.reduce(function (a, b) {
var aa, bb, key, nestedKey, temp
for (key in b) {
aa = a[key]
bb = b[key]
if (aa && nestRE.test(key)) {
// normalize class
if (key === 'class') {
if (typeof aa === 'string') {
temp = aa
a[key] = aa = {}
aa[temp] = true
}
if (typeof bb === 'string') {
temp = bb
b[key] = bb = {}
bb[temp] = true
}
}
if (key === 'on' || key === 'nativeOn' || key === 'hook') {
// merge functions
for (nestedKey in bb) {
aa[nestedKey] = mergeFn(aa[nestedKey], bb[nestedKey])
}
} else if (Array.isArray(aa)) {
a[key] = aa.concat(bb)
} else if (Array.isArray(bb)) {
a[key] = [aa].concat(bb)
} else {
for (nestedKey in bb) {
aa[nestedKey] = bb[nestedKey]
}
}
} else {
a[key] = b[key]
}
}
return a
}, {})
}
function mergeFn (a, b) {
return function () {
a && a.apply(this, arguments)
b && b.apply(this, arguments)
}
}
/***/ }),
/***/ "./node_modules/babel-runtime/core-js/array/from.js":
/*!**********************************************************!*\
!*** ./node_modules/babel-runtime/core-js/array/from.js ***!
\**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
module.exports = { "default": __webpack_require__(/*! core-js/library/fn/array/from */ "./node_modules/core-js/library/fn/array/from.js"), __esModule: true };
/***/ }),
/***/ "./node_modules/babel-runtime/core-js/get-iterator.js":
/*!************************************************************!*\
!*** ./node_modules/babel-runtime/core-js/get-iterator.js ***!
\************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
module.exports = { "default": __webpack_require__(/*! core-js/library/fn/get-iterator */ "./node_modules/core-js/library/fn/get-iterator.js"), __esModule: true };
/***/ }),
/***/ "./node_modules/babel-runtime/core-js/is-iterable.js":
/*!***********************************************************!*\
!*** ./node_modules/babel-runtime/core-js/is-iterable.js ***!
\***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
module.exports = { "default": __webpack_require__(/*! core-js/library/fn/is-iterable */ "./node_modules/core-js/library/fn/is-iterable.js"), __esModule: true };
/***/ }),
/***/ "./node_modules/babel-runtime/core-js/object/assign.js":
/*!*************************************************************!*\
!*** ./node_modules/babel-runtime/core-js/object/assign.js ***!
\*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
module.exports = { "default": __webpack_require__(/*! core-js/library/fn/object/assign */ "./node_modules/core-js/library/fn/object/assign.js"), __esModule: true };
/***/ }),
/***/ "./node_modules/babel-runtime/core-js/object/define-property.js":
/*!**********************************************************************!*\
!*** ./node_modules/babel-runtime/core-js/object/define-property.js ***!
\**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
module.exports = { "default": __webpack_require__(/*! core-js/library/fn/object/define-property */ "./node_modules/core-js/library/fn/object/define-property.js"), __esModule: true };
/***/ }),
/***/ "./node_modules/babel-runtime/core-js/symbol.js":
/*!******************************************************!*\
!*** ./node_modules/babel-runtime/core-js/symbol.js ***!
\******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
module.exports = { "default": __webpack_require__(/*! core-js/library/fn/symbol */ "./node_modules/core-js/library/fn/symbol/index.js"), __esModule: true };
/***/ }),
/***/ "./node_modules/babel-runtime/core-js/symbol/iterator.js":
/*!***************************************************************!*\
!*** ./node_modules/babel-runtime/core-js/symbol/iterator.js ***!
\***************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
module.exports = { "default": __webpack_require__(/*! core-js/library/fn/symbol/iterator */ "./node_modules/core-js/library/fn/symbol/iterator.js"), __esModule: true };
/***/ }),
/***/ "./node_modules/babel-runtime/helpers/classCallCheck.js":
/*!**************************************************************!*\
!*** ./node_modules/babel-runtime/helpers/classCallCheck.js ***!
\**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.default = function (instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
};
/***/ }),
/***/ "./node_modules/babel-runtime/helpers/createClass.js":
/*!***********************************************************!*\
!*** ./node_modules/babel-runtime/helpers/createClass.js ***!
\***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
var _defineProperty = __webpack_require__(/*! ../core-js/object/define-property */ "./node_modules/babel-runtime/core-js/object/define-property.js");
var _defineProperty2 = _interopRequireDefault(_defineProperty);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.default = function () {
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;
(0, _defineProperty2.default)(target, descriptor.key, descriptor);
}
}
return function (Constructor, protoProps, staticProps) {
if (protoProps) defineProperties(Constructor.prototype, protoProps);
if (staticProps) defineProperties(Constructor, staticProps);
return Constructor;
};
}();
/***/ }),
/***/ "./node_modules/babel-runtime/helpers/defineProperty.js":
/*!**************************************************************!*\
!*** ./node_modules/babel-runtime/helpers/defineProperty.js ***!
\**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
var _defineProperty = __webpack_require__(/*! ../core-js/object/define-property */ "./node_modules/babel-runtime/core-js/object/define-property.js");
var _defineProperty2 = _interopRequireDefault(_defineProperty);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.default = function (obj, key, value) {
if (key in obj) {
(0, _defineProperty2.default)(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
return obj;
};
/***/ }),
/***/ "./node_modules/babel-runtime/helpers/extends.js":
/*!*******************************************************!*\
!*** ./node_modules/babel-runtime/helpers/extends.js ***!
\*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
var _assign = __webpack_require__(/*! ../core-js/object/assign */ "./node_modules/babel-runtime/core-js/object/assign.js");
var _assign2 = _interopRequireDefault(_assign);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.default = _assign2.default || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
}
return target;
};
/***/ }),
/***/ "./node_modules/babel-runtime/helpers/objectWithoutProperties.js":
/*!***********************************************************************!*\
!*** ./node_modules/babel-runtime/helpers/objectWithoutProperties.js ***!
\***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.default = function (obj, keys) {
var target = {};
for (var i in obj) {
if (keys.indexOf(i) >= 0) continue;
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
target[i] = obj[i];
}
return target;
};
/***/ }),
/***/ "./node_modules/babel-runtime/helpers/slicedToArray.js":
/*!*************************************************************!*\
!*** ./node_modules/babel-runtime/helpers/slicedToArray.js ***!
\*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
var _isIterable2 = __webpack_require__(/*! ../core-js/is-iterable */ "./node_modules/babel-runtime/core-js/is-iterable.js");
var _isIterable3 = _interopRequireDefault(_isIterable2);
var _getIterator2 = __webpack_require__(/*! ../core-js/get-iterator */ "./node_modules/babel-runtime/core-js/get-iterator.js");
var _getIterator3 = _interopRequireDefault(_getIterator2);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.default = function () {
function sliceIterator(arr, i) {
var _arr = [];
var _n = true;
var _d = false;
var _e = undefined;
try {
for (var _i = (0, _getIterator3.default)(arr), _s; !(_n = (_s = _i.next()).done); _n = true) {
_arr.push(_s.value);
if (i && _arr.length === i) break;
}
} catch (err) {
_d = true;
_e = err;
} finally {
try {
if (!_n && _i["return"]) _i["return"]();
} finally {
if (_d) throw _e;
}
}
return _arr;
}
return function (arr, i) {
if (Array.isArray(arr)) {
return arr;
} else if ((0, _isIterable3.default)(Object(arr))) {
return sliceIterator(arr, i);
} else {
throw new TypeError("Invalid attempt to destructure non-iterable instance");
}
};
}();
/***/ }),
/***/ "./node_modules/babel-runtime/helpers/toConsumableArray.js":
/*!*****************************************************************!*\
!*** ./node_modules/babel-runtime/helpers/toConsumableArray.js ***!
\*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
var _from = __webpack_require__(/*! ../core-js/array/from */ "./node_modules/babel-runtime/core-js/array/from.js");
var _from2 = _interopRequireDefault(_from);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.default = function (arr) {
if (Array.isArray(arr)) {
for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) {
arr2[i] = arr[i];
}
return arr2;
} else {
return (0, _from2.default)(arr);
}
};
/***/ }),
/***/ "./node_modules/babel-runtime/helpers/typeof.js":
/*!******************************************************!*\
!*** ./node_modules/babel-runtime/helpers/typeof.js ***!
\******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
var _iterator = __webpack_require__(/*! ../core-js/symbol/iterator */ "./node_modules/babel-runtime/core-js/symbol/iterator.js");
var _iterator2 = _interopRequireDefault(_iterator);
var _symbol = __webpack_require__(/*! ../core-js/symbol */ "./node_modules/babel-runtime/core-js/symbol.js");
var _symbol2 = _interopRequireDefault(_symbol);
var _typeof = typeof _symbol2.default === "function" && typeof _iterator2.default === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj; };
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) {
return typeof obj === "undefined" ? "undefined" : _typeof(obj);
} : function (obj) {
return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj);
};
/***/ }),
/***/ "./node_modules/classnames/index.js":
/*!******************************************!*\
!*** ./node_modules/classnames/index.js ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
/* global define */
(function () {
'use strict';
var hasOwn = {}.hasOwnProperty;
function classNames() {
var classes = [];
for (var i = 0; i < arguments.length; i++) {
var arg = arguments[i];
if (!arg) continue;
var argType = typeof arg;
if (argType === 'string' || argType === 'number') {
classes.push(arg);
} else if (Array.isArray(arg)) {
if (arg.length) {
var inner = classNames.apply(null, arg);
if (inner) {
classes.push(inner);
}
}
} else if (argType === 'object') {
if (arg.toString === Object.prototype.toString) {
for (var key in arg) {
if (hasOwn.call(arg, key) && arg[key]) {
classes.push(key);
}
}
} else {
classes.push(arg.toString());
}
}
}
return classes.join(' ');
}
if ( true && module.exports) {
classNames.default = classNames;
module.exports = classNames;
} else if (true) {
// register as 'classnames', consistent with npm package name
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
return classNames;
}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
} else {}
}());
/***/ }),
/***/ "./node_modules/component-classes/index.js":
/*!*************************************************!*\
!*** ./node_modules/component-classes/index.js ***!
\*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
/**
* Module dependencies.
*/
try {
var index = __webpack_require__(/*! indexof */ "./node_modules/component-indexof/index.js");
} catch (err) {
var index = __webpack_require__(/*! component-indexof */ "./node_modules/component-indexof/index.js");
}
/**
* Whitespace regexp.
*/
var re = /\s+/;
/**
* toString reference.
*/
var toString = Object.prototype.toString;
/**
* Wrap `el` in a `ClassList`.
*
* @param {Element} el
* @return {ClassList}
* @api public
*/
module.exports = function(el){
return new ClassList(el);
};
/**
* Initialize a new ClassList for `el`.
*
* @param {Element} el
* @api private
*/
function ClassList(el) {
if (!el || !el.nodeType) {
throw new Error('A DOM element reference is required');
}
this.el = el;
this.list = el.classList;
}
/**
* Add class `name` if not already present.
*
* @param {String} name
* @return {ClassList}
* @api public
*/
ClassList.prototype.add = function(name){
// classList
if (this.list) {
this.list.add(name);
return this;
}
// fallback
var arr = this.array();
var i = index(arr, name);
if (!~i) arr.push(name);
this.el.className = arr.join(' ');
return this;
};
/**
* Remove class `name` when present, or
* pass a regular expression to remove
* any which match.
*
* @param {String|RegExp} name
* @return {ClassList}
* @api public
*/
ClassList.prototype.remove = function(name){
if ('[object RegExp]' == toString.call(name)) {
return this.removeMatching(name);
}
// classList
if (this.list) {
this.list.remove(name);
return this;
}
// fallback
var arr = this.array();
var i = index(arr, name);
if (~i) arr.splice(i, 1);
this.el.className = arr.join(' ');
return this;
};
/**
* Remove all classes matching `re`.
*
* @param {RegExp} re
* @return {ClassList}
* @api private
*/
ClassList.prototype.removeMatching = function(re){
var arr = this.array();
for (var i = 0; i < arr.length; i++) {
if (re.test(arr[i])) {
this.remove(arr[i]);
}
}
return this;
};
/**
* Toggle class `name`, can force state via `force`.
*
* For browsers that support classList, but do not support `force` yet,
* the mistake will be detected and corrected.
*
* @param {String} name
* @param {Boolean} force
* @return {ClassList}
* @api public
*/
ClassList.prototype.toggle = function(name, force){
// classList
if (this.list) {
if ("undefined" !== typeof force) {
if (force !== this.list.toggle(name, force)) {
this.list.toggle(name); // toggle again to correct
}
} else {
this.list.toggle(name);
}
return this;
}
// fallback
if ("undefined" !== typeof force) {
if (!force) {
this.remove(name);
} else {
this.add(name);
}
} else {
if (this.has(name)) {
this.remove(name);
} else {
this.add(name);
}
}
return this;
};
/**
* Return an array of classes.
*
* @return {Array}
* @api public
*/
ClassList.prototype.array = function(){
var className = this.el.getAttribute('class') || '';
var str = className.replace(/^\s+|\s+$/g, '');
var arr = str.split(re);
if ('' === arr[0]) arr.shift();
return arr;
};
/**
* Check if class `name` is present.
*
* @param {String} name
* @return {ClassList}
* @api public
*/
ClassList.prototype.has =
ClassList.prototype.contains = function(name){
return this.list
? this.list.contains(name)
: !! ~index(this.array(), name);
};
/***/ }),
/***/ "./node_modules/component-indexof/index.js":
/*!*************************************************!*\
!*** ./node_modules/component-indexof/index.js ***!
\*************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = function(arr, obj){
if (arr.indexOf) return arr.indexOf(obj);
for (var i = 0; i < arr.length; ++i) {
if (arr[i] === obj) return i;
}
return -1;
};
/***/ }),
/***/ "./node_modules/core-js/library/fn/array/from.js":
/*!*******************************************************!*\
!*** ./node_modules/core-js/library/fn/array/from.js ***!
\*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(/*! ../../modules/es6.string.iterator */ "./node_modules/core-js/library/modules/es6.string.iterator.js");
__webpack_require__(/*! ../../modules/es6.array.from */ "./node_modules/core-js/library/modules/es6.array.from.js");
module.exports = __webpack_require__(/*! ../../modules/_core */ "./node_modules/core-js/library/modules/_core.js").Array.from;
/***/ }),
/***/ "./node_modules/core-js/library/fn/get-iterator.js":
/*!*********************************************************!*\
!*** ./node_modules/core-js/library/fn/get-iterator.js ***!
\*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(/*! ../modules/web.dom.iterable */ "./node_modules/core-js/library/modules/web.dom.iterable.js");
__webpack_require__(/*! ../modules/es6.string.iterator */ "./node_modules/core-js/library/modules/es6.string.iterator.js");
module.exports = __webpack_require__(/*! ../modules/core.get-iterator */ "./node_modules/core-js/library/modules/core.get-iterator.js");
/***/ }),
/***/ "./node_modules/core-js/library/fn/is-iterable.js":
/*!********************************************************!*\
!*** ./node_modules/core-js/library/fn/is-iterable.js ***!
\********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(/*! ../modules/web.dom.iterable */ "./node_modules/core-js/library/modules/web.dom.iterable.js");
__webpack_require__(/*! ../modules/es6.string.iterator */ "./node_modules/core-js/library/modules/es6.string.iterator.js");
module.exports = __webpack_require__(/*! ../modules/core.is-iterable */ "./node_modules/core-js/library/modules/core.is-iterable.js");
/***/ }),
/***/ "./node_modules/core-js/library/fn/object/assign.js":
/*!**********************************************************!*\
!*** ./node_modules/core-js/library/fn/object/assign.js ***!
\**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(/*! ../../modules/es6.object.assign */ "./node_modules/core-js/library/modules/es6.object.assign.js");
module.exports = __webpack_require__(/*! ../../modules/_core */ "./node_modules/core-js/library/modules/_core.js").Object.assign;
/***/ }),
/***/ "./node_modules/core-js/library/fn/object/define-property.js":
/*!*******************************************************************!*\
!*** ./node_modules/core-js/library/fn/object/define-property.js ***!
\*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(/*! ../../modules/es6.object.define-property */ "./node_modules/core-js/library/modules/es6.object.define-property.js");
var $Object = __webpack_require__(/*! ../../modules/_core */ "./node_modules/core-js/library/modules/_core.js").Object;
module.exports = function defineProperty(it, key, desc) {
return $Object.defineProperty(it, key, desc);
};
/***/ }),
/***/ "./node_modules/core-js/library/fn/symbol/index.js":
/*!*********************************************************!*\
!*** ./node_modules/core-js/library/fn/symbol/index.js ***!
\*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(/*! ../../modules/es6.symbol */ "./node_modules/core-js/library/modules/es6.symbol.js");
__webpack_require__(/*! ../../modules/es6.object.to-string */ "./node_modules/core-js/library/modules/es6.object.to-string.js");
__webpack_require__(/*! ../../modules/es7.symbol.async-iterator */ "./node_modules/core-js/library/modules/es7.symbol.async-iterator.js");
__webpack_require__(/*! ../../modules/es7.symbol.observable */ "./node_modules/core-js/library/modules/es7.symbol.observable.js");
module.exports = __webpack_require__(/*! ../../modules/_core */ "./node_modules/core-js/library/modules/_core.js").Symbol;
/***/ }),
/***/ "./node_modules/core-js/library/fn/symbol/iterator.js":
/*!************************************************************!*\
!*** ./node_modules/core-js/library/fn/symbol/iterator.js ***!
\************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(/*! ../../modules/es6.string.iterator */ "./node_modules/core-js/library/modules/es6.string.iterator.js");
__webpack_require__(/*! ../../modules/web.dom.iterable */ "./node_modules/core-js/library/modules/web.dom.iterable.js");
module.exports = __webpack_require__(/*! ../../modules/_wks-ext */ "./node_modules/core-js/library/modules/_wks-ext.js").f('iterator');
/***/ }),
/***/ "./node_modules/core-js/library/modules/_a-function.js":
/*!*************************************************************!*\
!*** ./node_modules/core-js/library/modules/_a-function.js ***!
\*************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = function (it) {
if (typeof it != 'function') throw TypeError(it + ' is not a function!');
return it;
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_add-to-unscopables.js":
/*!*********************************************************************!*\
!*** ./node_modules/core-js/library/modules/_add-to-unscopables.js ***!
\*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = function () { /* empty */ };
/***/ }),
/***/ "./node_modules/core-js/library/modules/_an-object.js":
/*!************************************************************!*\
!*** ./node_modules/core-js/library/modules/_an-object.js ***!
\************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/core-js/library/modules/_is-object.js");
module.exports = function (it) {
if (!isObject(it)) throw TypeError(it + ' is not an object!');
return it;
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_array-includes.js":
/*!*****************************************************************!*\
!*** ./node_modules/core-js/library/modules/_array-includes.js ***!
\*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// false -> Array#indexOf
// true -> Array#includes
var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/core-js/library/modules/_to-iobject.js");
var toLength = __webpack_require__(/*! ./_to-length */ "./node_modules/core-js/library/modules/_to-length.js");
var toAbsoluteIndex = __webpack_require__(/*! ./_to-absolute-index */ "./node_modules/core-js/library/modules/_to-absolute-index.js");
module.exports = function (IS_INCLUDES) {
return function ($this, el, fromIndex) {
var O = toIObject($this);
var length = toLength(O.length);
var index = toAbsoluteIndex(fromIndex, length);
var value;
// Array#includes uses SameValueZero equality algorithm
// eslint-disable-next-line no-self-compare
if (IS_INCLUDES && el != el) while (length > index) {
value = O[index++];
// eslint-disable-next-line no-self-compare
if (value != value) return true;
// Array#indexOf ignores holes, Array#includes - not
} else for (;length > index; index++) if (IS_INCLUDES || index in O) {
if (O[index] === el) return IS_INCLUDES || index || 0;
} return !IS_INCLUDES && -1;
};
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_classof.js":
/*!**********************************************************!*\
!*** ./node_modules/core-js/library/modules/_classof.js ***!
\**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// getting tag from 19.1.3.6 Object.prototype.toString()
var cof = __webpack_require__(/*! ./_cof */ "./node_modules/core-js/library/modules/_cof.js");
var TAG = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js")('toStringTag');
// ES3 wrong here
var ARG = cof(function () { return arguments; }()) == 'Arguments';
// fallback for IE11 Script Access Denied error
var tryGet = function (it, key) {
try {
return it[key];
} catch (e) { /* empty */ }
};
module.exports = function (it) {
var O, T, B;
return it === undefined ? 'Undefined' : it === null ? 'Null'
// @@toStringTag case
: typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
// builtinTag case
: ARG ? cof(O)
// ES3 arguments fallback
: (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_cof.js":
/*!******************************************************!*\
!*** ./node_modules/core-js/library/modules/_cof.js ***!
\******************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
var toString = {}.toString;
module.exports = function (it) {
return toString.call(it).slice(8, -1);
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_core.js":
/*!*******************************************************!*\
!*** ./node_modules/core-js/library/modules/_core.js ***!
\*******************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
var core = module.exports = { version: '2.6.12' };
if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
/***/ }),
/***/ "./node_modules/core-js/library/modules/_create-property.js":
/*!******************************************************************!*\
!*** ./node_modules/core-js/library/modules/_create-property.js ***!
\******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $defineProperty = __webpack_require__(/*! ./_object-dp */ "./node_modules/core-js/library/modules/_object-dp.js");
var createDesc = __webpack_require__(/*! ./_property-desc */ "./node_modules/core-js/library/modules/_property-desc.js");
module.exports = function (object, index, value) {
if (index in object) $defineProperty.f(object, index, createDesc(0, value));
else object[index] = value;
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_ctx.js":
/*!******************************************************!*\
!*** ./node_modules/core-js/library/modules/_ctx.js ***!
\******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// optional / simple context binding
var aFunction = __webpack_require__(/*! ./_a-function */ "./node_modules/core-js/library/modules/_a-function.js");
module.exports = function (fn, that, length) {
aFunction(fn);
if (that === undefined) return fn;
switch (length) {
case 1: return function (a) {
return fn.call(that, a);
};
case 2: return function (a, b) {
return fn.call(that, a, b);
};
case 3: return function (a, b, c) {
return fn.call(that, a, b, c);
};
}
return function (/* ...args */) {
return fn.apply(that, arguments);
};
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_defined.js":
/*!**********************************************************!*\
!*** ./node_modules/core-js/library/modules/_defined.js ***!
\**********************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
// 7.2.1 RequireObjectCoercible(argument)
module.exports = function (it) {
if (it == undefined) throw TypeError("Can't call method on " + it);
return it;
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_descriptors.js":
/*!**************************************************************!*\
!*** ./node_modules/core-js/library/modules/_descriptors.js ***!
\**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// Thank's IE8 for his funny defineProperty
module.exports = !__webpack_require__(/*! ./_fails */ "./node_modules/core-js/library/modules/_fails.js")(function () {
return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
});
/***/ }),
/***/ "./node_modules/core-js/library/modules/_dom-create.js":
/*!*************************************************************!*\
!*** ./node_modules/core-js/library/modules/_dom-create.js ***!
\*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/core-js/library/modules/_is-object.js");
var document = __webpack_require__(/*! ./_global */ "./node_modules/core-js/library/modules/_global.js").document;
// typeof document.createElement is 'object' in old IE
var is = isObject(document) && isObject(document.createElement);
module.exports = function (it) {
return is ? document.createElement(it) : {};
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_enum-bug-keys.js":
/*!****************************************************************!*\
!*** ./node_modules/core-js/library/modules/_enum-bug-keys.js ***!
\****************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
// IE 8- don't enum bug keys
module.exports = (
'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
).split(',');
/***/ }),
/***/ "./node_modules/core-js/library/modules/_enum-keys.js":
/*!************************************************************!*\
!*** ./node_modules/core-js/library/modules/_enum-keys.js ***!
\************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// all enumerable object keys, includes symbols
var getKeys = __webpack_require__(/*! ./_object-keys */ "./node_modules/core-js/library/modules/_object-keys.js");
var gOPS = __webpack_require__(/*! ./_object-gops */ "./node_modules/core-js/library/modules/_object-gops.js");
var pIE = __webpack_require__(/*! ./_object-pie */ "./node_modules/core-js/library/modules/_object-pie.js");
module.exports = function (it) {
var result = getKeys(it);
var getSymbols = gOPS.f;
if (getSymbols) {
var symbols = getSymbols(it);
var isEnum = pIE.f;
var i = 0;
var key;
while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);
} return result;
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_export.js":
/*!*********************************************************!*\
!*** ./node_modules/core-js/library/modules/_export.js ***!
\*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var global = __webpack_require__(/*! ./_global */ "./node_modules/core-js/library/modules/_global.js");
var core = __webpack_require__(/*! ./_core */ "./node_modules/core-js/library/modules/_core.js");
var ctx = __webpack_require__(/*! ./_ctx */ "./node_modules/core-js/library/modules/_ctx.js");
var hide = __webpack_require__(/*! ./_hide */ "./node_modules/core-js/library/modules/_hide.js");
var has = __webpack_require__(/*! ./_has */ "./node_modules/core-js/library/modules/_has.js");
var PROTOTYPE = 'prototype';
var $export = function (type, name, source) {
var IS_FORCED = type & $export.F;
var IS_GLOBAL = type & $export.G;
var IS_STATIC = type & $export.S;
var IS_PROTO = type & $export.P;
var IS_BIND = type & $export.B;
var IS_WRAP = type & $export.W;
var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
var expProto = exports[PROTOTYPE];
var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];
var key, own, out;
if (IS_GLOBAL) source = name;
for (key in source) {
// contains in native
own = !IS_FORCED && target && target[key] !== undefined;
if (own && has(exports, key)) continue;
// export native or passed
out = own ? target[key] : source[key];
// prevent global pollution for namespaces
exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
// bind timers to global for call from export context
: IS_BIND && own ? ctx(out, global)
// wrap global constructors for prevent change them in library
: IS_WRAP && target[key] == out ? (function (C) {
var F = function (a, b, c) {
if (this instanceof C) {
switch (arguments.length) {
case 0: return new C();
case 1: return new C(a);
case 2: return new C(a, b);
} return new C(a, b, c);
} return C.apply(this, arguments);
};
F[PROTOTYPE] = C[PROTOTYPE];
return F;
// make static versions for prototype methods
})(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
// export proto methods to core.%CONSTRUCTOR%.methods.%NAME%
if (IS_PROTO) {
(exports.virtual || (exports.virtual = {}))[key] = out;
// export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%
if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);
}
}
};
// type bitmap
$export.F = 1; // forced
$export.G = 2; // global
$export.S = 4; // static
$export.P = 8; // proto
$export.B = 16; // bind
$export.W = 32; // wrap
$export.U = 64; // safe
$export.R = 128; // real proto method for `library`
module.exports = $export;
/***/ }),
/***/ "./node_modules/core-js/library/modules/_fails.js":
/*!********************************************************!*\
!*** ./node_modules/core-js/library/modules/_fails.js ***!
\********************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = function (exec) {
try {
return !!exec();
} catch (e) {
return true;
}
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_global.js":
/*!*********************************************************!*\
!*** ./node_modules/core-js/library/modules/_global.js ***!
\*********************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
var global = module.exports = typeof window != 'undefined' && window.Math == Math
? window : typeof self != 'undefined' && self.Math == Math ? self
// eslint-disable-next-line no-new-func
: Function('return this')();
if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
/***/ }),
/***/ "./node_modules/core-js/library/modules/_has.js":
/*!******************************************************!*\
!*** ./node_modules/core-js/library/modules/_has.js ***!
\******************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
var hasOwnProperty = {}.hasOwnProperty;
module.exports = function (it, key) {
return hasOwnProperty.call(it, key);
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_hide.js":
/*!*******************************************************!*\
!*** ./node_modules/core-js/library/modules/_hide.js ***!
\*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var dP = __webpack_require__(/*! ./_object-dp */ "./node_modules/core-js/library/modules/_object-dp.js");
var createDesc = __webpack_require__(/*! ./_property-desc */ "./node_modules/core-js/library/modules/_property-desc.js");
module.exports = __webpack_require__(/*! ./_descriptors */ "./node_modules/core-js/library/modules/_descriptors.js") ? function (object, key, value) {
return dP.f(object, key, createDesc(1, value));
} : function (object, key, value) {
object[key] = value;
return object;
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_html.js":
/*!*******************************************************!*\
!*** ./node_modules/core-js/library/modules/_html.js ***!
\*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var document = __webpack_require__(/*! ./_global */ "./node_modules/core-js/library/modules/_global.js").document;
module.exports = document && document.documentElement;
/***/ }),
/***/ "./node_modules/core-js/library/modules/_ie8-dom-define.js":
/*!*****************************************************************!*\
!*** ./node_modules/core-js/library/modules/_ie8-dom-define.js ***!
\*****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
module.exports = !__webpack_require__(/*! ./_descriptors */ "./node_modules/core-js/library/modules/_descriptors.js") && !__webpack_require__(/*! ./_fails */ "./node_modules/core-js/library/modules/_fails.js")(function () {
return Object.defineProperty(__webpack_require__(/*! ./_dom-create */ "./node_modules/core-js/library/modules/_dom-create.js")('div'), 'a', { get: function () { return 7; } }).a != 7;
});
/***/ }),
/***/ "./node_modules/core-js/library/modules/_iobject.js":
/*!**********************************************************!*\
!*** ./node_modules/core-js/library/modules/_iobject.js ***!
\**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// fallback for non-array-like ES3 and non-enumerable old V8 strings
var cof = __webpack_require__(/*! ./_cof */ "./node_modules/core-js/library/modules/_cof.js");
// eslint-disable-next-line no-prototype-builtins
module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
return cof(it) == 'String' ? it.split('') : Object(it);
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_is-array-iter.js":
/*!****************************************************************!*\
!*** ./node_modules/core-js/library/modules/_is-array-iter.js ***!
\****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// check on default Array iterator
var Iterators = __webpack_require__(/*! ./_iterators */ "./node_modules/core-js/library/modules/_iterators.js");
var ITERATOR = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js")('iterator');
var ArrayProto = Array.prototype;
module.exports = function (it) {
return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_is-array.js":
/*!***********************************************************!*\
!*** ./node_modules/core-js/library/modules/_is-array.js ***!
\***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// 7.2.2 IsArray(argument)
var cof = __webpack_require__(/*! ./_cof */ "./node_modules/core-js/library/modules/_cof.js");
module.exports = Array.isArray || function isArray(arg) {
return cof(arg) == 'Array';
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_is-object.js":
/*!************************************************************!*\
!*** ./node_modules/core-js/library/modules/_is-object.js ***!
\************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = function (it) {
return typeof it === 'object' ? it !== null : typeof it === 'function';
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_iter-call.js":
/*!************************************************************!*\
!*** ./node_modules/core-js/library/modules/_iter-call.js ***!
\************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// call something on iterator step with safe closing on error
var anObject = __webpack_require__(/*! ./_an-object */ "./node_modules/core-js/library/modules/_an-object.js");
module.exports = function (iterator, fn, value, entries) {
try {
return entries ? fn(anObject(value)[0], value[1]) : fn(value);
// 7.4.6 IteratorClose(iterator, completion)
} catch (e) {
var ret = iterator['return'];
if (ret !== undefined) anObject(ret.call(iterator));
throw e;
}
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_iter-create.js":
/*!**************************************************************!*\
!*** ./node_modules/core-js/library/modules/_iter-create.js ***!
\**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var create = __webpack_require__(/*! ./_object-create */ "./node_modules/core-js/library/modules/_object-create.js");
var descriptor = __webpack_require__(/*! ./_property-desc */ "./node_modules/core-js/library/modules/_property-desc.js");
var setToStringTag = __webpack_require__(/*! ./_set-to-string-tag */ "./node_modules/core-js/library/modules/_set-to-string-tag.js");
var IteratorPrototype = {};
// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
__webpack_require__(/*! ./_hide */ "./node_modules/core-js/library/modules/_hide.js")(IteratorPrototype, __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js")('iterator'), function () { return this; });
module.exports = function (Constructor, NAME, next) {
Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
setToStringTag(Constructor, NAME + ' Iterator');
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_iter-define.js":
/*!**************************************************************!*\
!*** ./node_modules/core-js/library/modules/_iter-define.js ***!
\**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var LIBRARY = __webpack_require__(/*! ./_library */ "./node_modules/core-js/library/modules/_library.js");
var $export = __webpack_require__(/*! ./_export */ "./node_modules/core-js/library/modules/_export.js");
var redefine = __webpack_require__(/*! ./_redefine */ "./node_modules/core-js/library/modules/_redefine.js");
var hide = __webpack_require__(/*! ./_hide */ "./node_modules/core-js/library/modules/_hide.js");
var Iterators = __webpack_require__(/*! ./_iterators */ "./node_modules/core-js/library/modules/_iterators.js");
var $iterCreate = __webpack_require__(/*! ./_iter-create */ "./node_modules/core-js/library/modules/_iter-create.js");
var setToStringTag = __webpack_require__(/*! ./_set-to-string-tag */ "./node_modules/core-js/library/modules/_set-to-string-tag.js");
var getPrototypeOf = __webpack_require__(/*! ./_object-gpo */ "./node_modules/core-js/library/modules/_object-gpo.js");
var ITERATOR = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js")('iterator');
var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
var FF_ITERATOR = '@@iterator';
var KEYS = 'keys';
var VALUES = 'values';
var returnThis = function () { return this; };
module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
$iterCreate(Constructor, NAME, next);
var getMethod = function (kind) {
if (!BUGGY && kind in proto) return proto[kind];
switch (kind) {
case KEYS: return function keys() { return new Constructor(this, kind); };
case VALUES: return function values() { return new Constructor(this, kind); };
} return function entries() { return new Constructor(this, kind); };
};
var TAG = NAME + ' Iterator';
var DEF_VALUES = DEFAULT == VALUES;
var VALUES_BUG = false;
var proto = Base.prototype;
var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
var $default = $native || getMethod(DEFAULT);
var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
var methods, key, IteratorPrototype;
// Fix native
if ($anyNative) {
IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
// Set @@toStringTag to native iterators
setToStringTag(IteratorPrototype, TAG, true);
// fix for some old engines
if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
}
}
// fix Array#{values, @@iterator}.name in V8 / FF
if (DEF_VALUES && $native && $native.name !== VALUES) {
VALUES_BUG = true;
$default = function values() { return $native.call(this); };
}
// Define iterator
if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
hide(proto, ITERATOR, $default);
}
// Plug for library
Iterators[NAME] = $default;
Iterators[TAG] = returnThis;
if (DEFAULT) {
methods = {
values: DEF_VALUES ? $default : getMethod(VALUES),
keys: IS_SET ? $default : getMethod(KEYS),
entries: $entries
};
if (FORCED) for (key in methods) {
if (!(key in proto)) redefine(proto, key, methods[key]);
} else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
}
return methods;
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_iter-detect.js":
/*!**************************************************************!*\
!*** ./node_modules/core-js/library/modules/_iter-detect.js ***!
\**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var ITERATOR = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js")('iterator');
var SAFE_CLOSING = false;
try {
var riter = [7][ITERATOR]();
riter['return'] = function () { SAFE_CLOSING = true; };
// eslint-disable-next-line no-throw-literal
Array.from(riter, function () { throw 2; });
} catch (e) { /* empty */ }
module.exports = function (exec, skipClosing) {
if (!skipClosing && !SAFE_CLOSING) return false;
var safe = false;
try {
var arr = [7];
var iter = arr[ITERATOR]();
iter.next = function () { return { done: safe = true }; };
arr[ITERATOR] = function () { return iter; };
exec(arr);
} catch (e) { /* empty */ }
return safe;
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_iter-step.js":
/*!************************************************************!*\
!*** ./node_modules/core-js/library/modules/_iter-step.js ***!
\************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = function (done, value) {
return { value: value, done: !!done };
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_iterators.js":
/*!************************************************************!*\
!*** ./node_modules/core-js/library/modules/_iterators.js ***!
\************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = {};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_library.js":
/*!**********************************************************!*\
!*** ./node_modules/core-js/library/modules/_library.js ***!
\**********************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = true;
/***/ }),
/***/ "./node_modules/core-js/library/modules/_meta.js":
/*!*******************************************************!*\
!*** ./node_modules/core-js/library/modules/_meta.js ***!
\*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var META = __webpack_require__(/*! ./_uid */ "./node_modules/core-js/library/modules/_uid.js")('meta');
var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/core-js/library/modules/_is-object.js");
var has = __webpack_require__(/*! ./_has */ "./node_modules/core-js/library/modules/_has.js");
var setDesc = __webpack_require__(/*! ./_object-dp */ "./node_modules/core-js/library/modules/_object-dp.js").f;
var id = 0;
var isExtensible = Object.isExtensible || function () {
return true;
};
var FREEZE = !__webpack_require__(/*! ./_fails */ "./node_modules/core-js/library/modules/_fails.js")(function () {
return isExtensible(Object.preventExtensions({}));
});
var setMeta = function (it) {
setDesc(it, META, { value: {
i: 'O' + ++id, // object ID
w: {} // weak collections IDs
} });
};
var fastKey = function (it, create) {
// return primitive with prefix
if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
if (!has(it, META)) {
// can't set metadata to uncaught frozen object
if (!isExtensible(it)) return 'F';
// not necessary to add metadata
if (!create) return 'E';
// add missing metadata
setMeta(it);
// return object ID
} return it[META].i;
};
var getWeak = function (it, create) {
if (!has(it, META)) {
// can't set metadata to uncaught frozen object
if (!isExtensible(it)) return true;
// not necessary to add metadata
if (!create) return false;
// add missing metadata
setMeta(it);
// return hash weak collections IDs
} return it[META].w;
};
// add metadata on freeze-family methods calling
var onFreeze = function (it) {
if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);
return it;
};
var meta = module.exports = {
KEY: META,
NEED: false,
fastKey: fastKey,
getWeak: getWeak,
onFreeze: onFreeze
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_object-assign.js":
/*!****************************************************************!*\
!*** ./node_modules/core-js/library/modules/_object-assign.js ***!
\****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// 19.1.2.1 Object.assign(target, source, ...)
var DESCRIPTORS = __webpack_require__(/*! ./_descriptors */ "./node_modules/core-js/library/modules/_descriptors.js");
var getKeys = __webpack_require__(/*! ./_object-keys */ "./node_modules/core-js/library/modules/_object-keys.js");
var gOPS = __webpack_require__(/*! ./_object-gops */ "./node_modules/core-js/library/modules/_object-gops.js");
var pIE = __webpack_require__(/*! ./_object-pie */ "./node_modules/core-js/library/modules/_object-pie.js");
var toObject = __webpack_require__(/*! ./_to-object */ "./node_modules/core-js/library/modules/_to-object.js");
var IObject = __webpack_require__(/*! ./_iobject */ "./node_modules/core-js/library/modules/_iobject.js");
var $assign = Object.assign;
// should work with symbols and should have deterministic property order (V8 bug)
module.exports = !$assign || __webpack_require__(/*! ./_fails */ "./node_modules/core-js/library/modules/_fails.js")(function () {
var A = {};
var B = {};
// eslint-disable-next-line no-undef
var S = Symbol();
var K = 'abcdefghijklmnopqrst';
A[S] = 7;
K.split('').forEach(function (k) { B[k] = k; });
return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars
var T = toObject(target);
var aLen = arguments.length;
var index = 1;
var getSymbols = gOPS.f;
var isEnum = pIE.f;
while (aLen > index) {
var S = IObject(arguments[index++]);
var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);
var length = keys.length;
var j = 0;
var key;
while (length > j) {
key = keys[j++];
if (!DESCRIPTORS || isEnum.call(S, key)) T[key] = S[key];
}
} return T;
} : $assign;
/***/ }),
/***/ "./node_modules/core-js/library/modules/_object-create.js":
/*!****************************************************************!*\
!*** ./node_modules/core-js/library/modules/_object-create.js ***!
\****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
var anObject = __webpack_require__(/*! ./_an-object */ "./node_modules/core-js/library/modules/_an-object.js");
var dPs = __webpack_require__(/*! ./_object-dps */ "./node_modules/core-js/library/modules/_object-dps.js");
var enumBugKeys = __webpack_require__(/*! ./_enum-bug-keys */ "./node_modules/core-js/library/modules/_enum-bug-keys.js");
var IE_PROTO = __webpack_require__(/*! ./_shared-key */ "./node_modules/core-js/library/modules/_shared-key.js")('IE_PROTO');
var Empty = function () { /* empty */ };
var PROTOTYPE = 'prototype';
// Create object with fake `null` prototype: use iframe Object with cleared prototype
var createDict = function () {
// Thrash, waste and sodomy: IE GC bug
var iframe = __webpack_require__(/*! ./_dom-create */ "./node_modules/core-js/library/modules/_dom-create.js")('iframe');
var i = enumBugKeys.length;
var lt = '<';
var gt = '>';
var iframeDocument;
iframe.style.display = 'none';
__webpack_require__(/*! ./_html */ "./node_modules/core-js/library/modules/_html.js").appendChild(iframe);
iframe.src = 'javascript:'; // eslint-disable-line no-script-url
// createDict = iframe.contentWindow.Object;
// html.removeChild(iframe);
iframeDocument = iframe.contentWindow.document;
iframeDocument.open();
iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
iframeDocument.close();
createDict = iframeDocument.F;
while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
return createDict();
};
module.exports = Object.create || function create(O, Properties) {
var result;
if (O !== null) {
Empty[PROTOTYPE] = anObject(O);
result = new Empty();
Empty[PROTOTYPE] = null;
// add "__proto__" for Object.getPrototypeOf polyfill
result[IE_PROTO] = O;
} else result = createDict();
return Properties === undefined ? result : dPs(result, Properties);
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_object-dp.js":
/*!************************************************************!*\
!*** ./node_modules/core-js/library/modules/_object-dp.js ***!
\************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var anObject = __webpack_require__(/*! ./_an-object */ "./node_modules/core-js/library/modules/_an-object.js");
var IE8_DOM_DEFINE = __webpack_require__(/*! ./_ie8-dom-define */ "./node_modules/core-js/library/modules/_ie8-dom-define.js");
var toPrimitive = __webpack_require__(/*! ./_to-primitive */ "./node_modules/core-js/library/modules/_to-primitive.js");
var dP = Object.defineProperty;
exports.f = __webpack_require__(/*! ./_descriptors */ "./node_modules/core-js/library/modules/_descriptors.js") ? Object.defineProperty : function defineProperty(O, P, Attributes) {
anObject(O);
P = toPrimitive(P, true);
anObject(Attributes);
if (IE8_DOM_DEFINE) try {
return dP(O, P, Attributes);
} catch (e) { /* empty */ }
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
if ('value' in Attributes) O[P] = Attributes.value;
return O;
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_object-dps.js":
/*!*************************************************************!*\
!*** ./node_modules/core-js/library/modules/_object-dps.js ***!
\*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var dP = __webpack_require__(/*! ./_object-dp */ "./node_modules/core-js/library/modules/_object-dp.js");
var anObject = __webpack_require__(/*! ./_an-object */ "./node_modules/core-js/library/modules/_an-object.js");
var getKeys = __webpack_require__(/*! ./_object-keys */ "./node_modules/core-js/library/modules/_object-keys.js");
module.exports = __webpack_require__(/*! ./_descriptors */ "./node_modules/core-js/library/modules/_descriptors.js") ? Object.defineProperties : function defineProperties(O, Properties) {
anObject(O);
var keys = getKeys(Properties);
var length = keys.length;
var i = 0;
var P;
while (length > i) dP.f(O, P = keys[i++], Properties[P]);
return O;
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_object-gopd.js":
/*!**************************************************************!*\
!*** ./node_modules/core-js/library/modules/_object-gopd.js ***!
\**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var pIE = __webpack_require__(/*! ./_object-pie */ "./node_modules/core-js/library/modules/_object-pie.js");
var createDesc = __webpack_require__(/*! ./_property-desc */ "./node_modules/core-js/library/modules/_property-desc.js");
var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/core-js/library/modules/_to-iobject.js");
var toPrimitive = __webpack_require__(/*! ./_to-primitive */ "./node_modules/core-js/library/modules/_to-primitive.js");
var has = __webpack_require__(/*! ./_has */ "./node_modules/core-js/library/modules/_has.js");
var IE8_DOM_DEFINE = __webpack_require__(/*! ./_ie8-dom-define */ "./node_modules/core-js/library/modules/_ie8-dom-define.js");
var gOPD = Object.getOwnPropertyDescriptor;
exports.f = __webpack_require__(/*! ./_descriptors */ "./node_modules/core-js/library/modules/_descriptors.js") ? gOPD : function getOwnPropertyDescriptor(O, P) {
O = toIObject(O);
P = toPrimitive(P, true);
if (IE8_DOM_DEFINE) try {
return gOPD(O, P);
} catch (e) { /* empty */ }
if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_object-gopn-ext.js":
/*!******************************************************************!*\
!*** ./node_modules/core-js/library/modules/_object-gopn-ext.js ***!
\******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/core-js/library/modules/_to-iobject.js");
var gOPN = __webpack_require__(/*! ./_object-gopn */ "./node_modules/core-js/library/modules/_object-gopn.js").f;
var toString = {}.toString;
var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
? Object.getOwnPropertyNames(window) : [];
var getWindowNames = function (it) {
try {
return gOPN(it);
} catch (e) {
return windowNames.slice();
}
};
module.exports.f = function getOwnPropertyNames(it) {
return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_object-gopn.js":
/*!**************************************************************!*\
!*** ./node_modules/core-js/library/modules/_object-gopn.js ***!
\**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
var $keys = __webpack_require__(/*! ./_object-keys-internal */ "./node_modules/core-js/library/modules/_object-keys-internal.js");
var hiddenKeys = __webpack_require__(/*! ./_enum-bug-keys */ "./node_modules/core-js/library/modules/_enum-bug-keys.js").concat('length', 'prototype');
exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
return $keys(O, hiddenKeys);
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_object-gops.js":
/*!**************************************************************!*\
!*** ./node_modules/core-js/library/modules/_object-gops.js ***!
\**************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
exports.f = Object.getOwnPropertySymbols;
/***/ }),
/***/ "./node_modules/core-js/library/modules/_object-gpo.js":
/*!*************************************************************!*\
!*** ./node_modules/core-js/library/modules/_object-gpo.js ***!
\*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
var has = __webpack_require__(/*! ./_has */ "./node_modules/core-js/library/modules/_has.js");
var toObject = __webpack_require__(/*! ./_to-object */ "./node_modules/core-js/library/modules/_to-object.js");
var IE_PROTO = __webpack_require__(/*! ./_shared-key */ "./node_modules/core-js/library/modules/_shared-key.js")('IE_PROTO');
var ObjectProto = Object.prototype;
module.exports = Object.getPrototypeOf || function (O) {
O = toObject(O);
if (has(O, IE_PROTO)) return O[IE_PROTO];
if (typeof O.constructor == 'function' && O instanceof O.constructor) {
return O.constructor.prototype;
} return O instanceof Object ? ObjectProto : null;
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_object-keys-internal.js":
/*!***********************************************************************!*\
!*** ./node_modules/core-js/library/modules/_object-keys-internal.js ***!
\***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var has = __webpack_require__(/*! ./_has */ "./node_modules/core-js/library/modules/_has.js");
var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/core-js/library/modules/_to-iobject.js");
var arrayIndexOf = __webpack_require__(/*! ./_array-includes */ "./node_modules/core-js/library/modules/_array-includes.js")(false);
var IE_PROTO = __webpack_require__(/*! ./_shared-key */ "./node_modules/core-js/library/modules/_shared-key.js")('IE_PROTO');
module.exports = function (object, names) {
var O = toIObject(object);
var i = 0;
var result = [];
var key;
for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
// Don't enum bug & hidden keys
while (names.length > i) if (has(O, key = names[i++])) {
~arrayIndexOf(result, key) || result.push(key);
}
return result;
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_object-keys.js":
/*!**************************************************************!*\
!*** ./node_modules/core-js/library/modules/_object-keys.js ***!
\**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.14 / 15.2.3.14 Object.keys(O)
var $keys = __webpack_require__(/*! ./_object-keys-internal */ "./node_modules/core-js/library/modules/_object-keys-internal.js");
var enumBugKeys = __webpack_require__(/*! ./_enum-bug-keys */ "./node_modules/core-js/library/modules/_enum-bug-keys.js");
module.exports = Object.keys || function keys(O) {
return $keys(O, enumBugKeys);
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_object-pie.js":
/*!*************************************************************!*\
!*** ./node_modules/core-js/library/modules/_object-pie.js ***!
\*************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
exports.f = {}.propertyIsEnumerable;
/***/ }),
/***/ "./node_modules/core-js/library/modules/_property-desc.js":
/*!****************************************************************!*\
!*** ./node_modules/core-js/library/modules/_property-desc.js ***!
\****************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = function (bitmap, value) {
return {
enumerable: !(bitmap & 1),
configurable: !(bitmap & 2),
writable: !(bitmap & 4),
value: value
};
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_redefine.js":
/*!***********************************************************!*\
!*** ./node_modules/core-js/library/modules/_redefine.js ***!
\***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(/*! ./_hide */ "./node_modules/core-js/library/modules/_hide.js");
/***/ }),
/***/ "./node_modules/core-js/library/modules/_set-to-string-tag.js":
/*!********************************************************************!*\
!*** ./node_modules/core-js/library/modules/_set-to-string-tag.js ***!
\********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var def = __webpack_require__(/*! ./_object-dp */ "./node_modules/core-js/library/modules/_object-dp.js").f;
var has = __webpack_require__(/*! ./_has */ "./node_modules/core-js/library/modules/_has.js");
var TAG = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js")('toStringTag');
module.exports = function (it, tag, stat) {
if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_shared-key.js":
/*!*************************************************************!*\
!*** ./node_modules/core-js/library/modules/_shared-key.js ***!
\*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var shared = __webpack_require__(/*! ./_shared */ "./node_modules/core-js/library/modules/_shared.js")('keys');
var uid = __webpack_require__(/*! ./_uid */ "./node_modules/core-js/library/modules/_uid.js");
module.exports = function (key) {
return shared[key] || (shared[key] = uid(key));
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_shared.js":
/*!*********************************************************!*\
!*** ./node_modules/core-js/library/modules/_shared.js ***!
\*********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var core = __webpack_require__(/*! ./_core */ "./node_modules/core-js/library/modules/_core.js");
var global = __webpack_require__(/*! ./_global */ "./node_modules/core-js/library/modules/_global.js");
var SHARED = '__core-js_shared__';
var store = global[SHARED] || (global[SHARED] = {});
(module.exports = function (key, value) {
return store[key] || (store[key] = value !== undefined ? value : {});
})('versions', []).push({
version: core.version,
mode: __webpack_require__(/*! ./_library */ "./node_modules/core-js/library/modules/_library.js") ? 'pure' : 'global',
copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
});
/***/ }),
/***/ "./node_modules/core-js/library/modules/_string-at.js":
/*!************************************************************!*\
!*** ./node_modules/core-js/library/modules/_string-at.js ***!
\************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var toInteger = __webpack_require__(/*! ./_to-integer */ "./node_modules/core-js/library/modules/_to-integer.js");
var defined = __webpack_require__(/*! ./_defined */ "./node_modules/core-js/library/modules/_defined.js");
// true -> String#at
// false -> String#codePointAt
module.exports = function (TO_STRING) {
return function (that, pos) {
var s = String(defined(that));
var i = toInteger(pos);
var l = s.length;
var a, b;
if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
a = s.charCodeAt(i);
return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
? TO_STRING ? s.charAt(i) : a
: TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
};
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_to-absolute-index.js":
/*!********************************************************************!*\
!*** ./node_modules/core-js/library/modules/_to-absolute-index.js ***!
\********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var toInteger = __webpack_require__(/*! ./_to-integer */ "./node_modules/core-js/library/modules/_to-integer.js");
var max = Math.max;
var min = Math.min;
module.exports = function (index, length) {
index = toInteger(index);
return index < 0 ? max(index + length, 0) : min(index, length);
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_to-integer.js":
/*!*************************************************************!*\
!*** ./node_modules/core-js/library/modules/_to-integer.js ***!
\*************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
// 7.1.4 ToInteger
var ceil = Math.ceil;
var floor = Math.floor;
module.exports = function (it) {
return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_to-iobject.js":
/*!*************************************************************!*\
!*** ./node_modules/core-js/library/modules/_to-iobject.js ***!
\*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// to indexed object, toObject with fallback for non-array-like ES3 strings
var IObject = __webpack_require__(/*! ./_iobject */ "./node_modules/core-js/library/modules/_iobject.js");
var defined = __webpack_require__(/*! ./_defined */ "./node_modules/core-js/library/modules/_defined.js");
module.exports = function (it) {
return IObject(defined(it));
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_to-length.js":
/*!************************************************************!*\
!*** ./node_modules/core-js/library/modules/_to-length.js ***!
\************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// 7.1.15 ToLength
var toInteger = __webpack_require__(/*! ./_to-integer */ "./node_modules/core-js/library/modules/_to-integer.js");
var min = Math.min;
module.exports = function (it) {
return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_to-object.js":
/*!************************************************************!*\
!*** ./node_modules/core-js/library/modules/_to-object.js ***!
\************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// 7.1.13 ToObject(argument)
var defined = __webpack_require__(/*! ./_defined */ "./node_modules/core-js/library/modules/_defined.js");
module.exports = function (it) {
return Object(defined(it));
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_to-primitive.js":
/*!***************************************************************!*\
!*** ./node_modules/core-js/library/modules/_to-primitive.js ***!
\***************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// 7.1.1 ToPrimitive(input [, PreferredType])
var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/core-js/library/modules/_is-object.js");
// instead of the ES6 spec version, we didn't implement @@toPrimitive case
// and the second argument - flag - preferred type is a string
module.exports = function (it, S) {
if (!isObject(it)) return it;
var fn, val;
if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
throw TypeError("Can't convert object to primitive value");
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_uid.js":
/*!******************************************************!*\
!*** ./node_modules/core-js/library/modules/_uid.js ***!
\******************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
var id = 0;
var px = Math.random();
module.exports = function (key) {
return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_wks-define.js":
/*!*************************************************************!*\
!*** ./node_modules/core-js/library/modules/_wks-define.js ***!
\*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var global = __webpack_require__(/*! ./_global */ "./node_modules/core-js/library/modules/_global.js");
var core = __webpack_require__(/*! ./_core */ "./node_modules/core-js/library/modules/_core.js");
var LIBRARY = __webpack_require__(/*! ./_library */ "./node_modules/core-js/library/modules/_library.js");
var wksExt = __webpack_require__(/*! ./_wks-ext */ "./node_modules/core-js/library/modules/_wks-ext.js");
var defineProperty = __webpack_require__(/*! ./_object-dp */ "./node_modules/core-js/library/modules/_object-dp.js").f;
module.exports = function (name) {
var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});
if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/_wks-ext.js":
/*!**********************************************************!*\
!*** ./node_modules/core-js/library/modules/_wks-ext.js ***!
\**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
exports.f = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js");
/***/ }),
/***/ "./node_modules/core-js/library/modules/_wks.js":
/*!******************************************************!*\
!*** ./node_modules/core-js/library/modules/_wks.js ***!
\******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var store = __webpack_require__(/*! ./_shared */ "./node_modules/core-js/library/modules/_shared.js")('wks');
var uid = __webpack_require__(/*! ./_uid */ "./node_modules/core-js/library/modules/_uid.js");
var Symbol = __webpack_require__(/*! ./_global */ "./node_modules/core-js/library/modules/_global.js").Symbol;
var USE_SYMBOL = typeof Symbol == 'function';
var $exports = module.exports = function (name) {
return store[name] || (store[name] =
USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
};
$exports.store = store;
/***/ }),
/***/ "./node_modules/core-js/library/modules/core.get-iterator-method.js":
/*!**************************************************************************!*\
!*** ./node_modules/core-js/library/modules/core.get-iterator-method.js ***!
\**************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var classof = __webpack_require__(/*! ./_classof */ "./node_modules/core-js/library/modules/_classof.js");
var ITERATOR = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js")('iterator');
var Iterators = __webpack_require__(/*! ./_iterators */ "./node_modules/core-js/library/modules/_iterators.js");
module.exports = __webpack_require__(/*! ./_core */ "./node_modules/core-js/library/modules/_core.js").getIteratorMethod = function (it) {
if (it != undefined) return it[ITERATOR]
|| it['@@iterator']
|| Iterators[classof(it)];
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/core.get-iterator.js":
/*!*******************************************************************!*\
!*** ./node_modules/core-js/library/modules/core.get-iterator.js ***!
\*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var anObject = __webpack_require__(/*! ./_an-object */ "./node_modules/core-js/library/modules/_an-object.js");
var get = __webpack_require__(/*! ./core.get-iterator-method */ "./node_modules/core-js/library/modules/core.get-iterator-method.js");
module.exports = __webpack_require__(/*! ./_core */ "./node_modules/core-js/library/modules/_core.js").getIterator = function (it) {
var iterFn = get(it);
if (typeof iterFn != 'function') throw TypeError(it + ' is not iterable!');
return anObject(iterFn.call(it));
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/core.is-iterable.js":
/*!******************************************************************!*\
!*** ./node_modules/core-js/library/modules/core.is-iterable.js ***!
\******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var classof = __webpack_require__(/*! ./_classof */ "./node_modules/core-js/library/modules/_classof.js");
var ITERATOR = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js")('iterator');
var Iterators = __webpack_require__(/*! ./_iterators */ "./node_modules/core-js/library/modules/_iterators.js");
module.exports = __webpack_require__(/*! ./_core */ "./node_modules/core-js/library/modules/_core.js").isIterable = function (it) {
var O = Object(it);
return O[ITERATOR] !== undefined
|| '@@iterator' in O
// eslint-disable-next-line no-prototype-builtins
|| Iterators.hasOwnProperty(classof(O));
};
/***/ }),
/***/ "./node_modules/core-js/library/modules/es6.array.from.js":
/*!****************************************************************!*\
!*** ./node_modules/core-js/library/modules/es6.array.from.js ***!
\****************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var ctx = __webpack_require__(/*! ./_ctx */ "./node_modules/core-js/library/modules/_ctx.js");
var $export = __webpack_require__(/*! ./_export */ "./node_modules/core-js/library/modules/_export.js");
var toObject = __webpack_require__(/*! ./_to-object */ "./node_modules/core-js/library/modules/_to-object.js");
var call = __webpack_require__(/*! ./_iter-call */ "./node_modules/core-js/library/modules/_iter-call.js");
var isArrayIter = __webpack_require__(/*! ./_is-array-iter */ "./node_modules/core-js/library/modules/_is-array-iter.js");
var toLength = __webpack_require__(/*! ./_to-length */ "./node_modules/core-js/library/modules/_to-length.js");
var createProperty = __webpack_require__(/*! ./_create-property */ "./node_modules/core-js/library/modules/_create-property.js");
var getIterFn = __webpack_require__(/*! ./core.get-iterator-method */ "./node_modules/core-js/library/modules/core.get-iterator-method.js");
$export($export.S + $export.F * !__webpack_require__(/*! ./_iter-detect */ "./node_modules/core-js/library/modules/_iter-detect.js")(function (iter) { Array.from(iter); }), 'Array', {
// 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)
from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {
var O = toObject(arrayLike);
var C = typeof this == 'function' ? this : Array;
var aLen = arguments.length;
var mapfn = aLen > 1 ? arguments[1] : undefined;
var mapping = mapfn !== undefined;
var index = 0;
var iterFn = getIterFn(O);
var length, result, step, iterator;
if (mapping) mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2);
// if object isn't iterable or it's array with default iterator - use simple case
if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) {
for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) {
createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value);
}
} else {
length = toLength(O.length);
for (result = new C(length); length > index; index++) {
createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]);
}
}
result.length = index;
return result;
}
});
/***/ }),
/***/ "./node_modules/core-js/library/modules/es6.array.iterator.js":
/*!********************************************************************!*\
!*** ./node_modules/core-js/library/modules/es6.array.iterator.js ***!
\********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var addToUnscopables = __webpack_require__(/*! ./_add-to-unscopables */ "./node_modules/core-js/library/modules/_add-to-unscopables.js");
var step = __webpack_require__(/*! ./_iter-step */ "./node_modules/core-js/library/modules/_iter-step.js");
var Iterators = __webpack_require__(/*! ./_iterators */ "./node_modules/core-js/library/modules/_iterators.js");
var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/core-js/library/modules/_to-iobject.js");
// 22.1.3.4 Array.prototype.entries()
// 22.1.3.13 Array.prototype.keys()
// 22.1.3.29 Array.prototype.values()
// 22.1.3.30 Array.prototype[@@iterator]()
module.exports = __webpack_require__(/*! ./_iter-define */ "./node_modules/core-js/library/modules/_iter-define.js")(Array, 'Array', function (iterated, kind) {
this._t = toIObject(iterated); // target
this._i = 0; // next index
this._k = kind; // kind
// 22.1.5.2.1 %ArrayIteratorPrototype%.next()
}, function () {
var O = this._t;
var kind = this._k;
var index = this._i++;
if (!O || index >= O.length) {
this._t = undefined;
return step(1);
}
if (kind == 'keys') return step(0, index);
if (kind == 'values') return step(0, O[index]);
return step(0, [index, O[index]]);
}, 'values');
// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
Iterators.Arguments = Iterators.Array;
addToUnscopables('keys');
addToUnscopables('values');
addToUnscopables('entries');
/***/ }),
/***/ "./node_modules/core-js/library/modules/es6.object.assign.js":
/*!*******************************************************************!*\
!*** ./node_modules/core-js/library/modules/es6.object.assign.js ***!
\*******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// 19.1.3.1 Object.assign(target, source)
var $export = __webpack_require__(/*! ./_export */ "./node_modules/core-js/library/modules/_export.js");
$export($export.S + $export.F, 'Object', { assign: __webpack_require__(/*! ./_object-assign */ "./node_modules/core-js/library/modules/_object-assign.js") });
/***/ }),
/***/ "./node_modules/core-js/library/modules/es6.object.define-property.js":
/*!****************************************************************************!*\
!*** ./node_modules/core-js/library/modules/es6.object.define-property.js ***!
\****************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var $export = __webpack_require__(/*! ./_export */ "./node_modules/core-js/library/modules/_export.js");
// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
$export($export.S + $export.F * !__webpack_require__(/*! ./_descriptors */ "./node_modules/core-js/library/modules/_descriptors.js"), 'Object', { defineProperty: __webpack_require__(/*! ./_object-dp */ "./node_modules/core-js/library/modules/_object-dp.js").f });
/***/ }),
/***/ "./node_modules/core-js/library/modules/es6.object.to-string.js":
/*!**********************************************************************!*\
!*** ./node_modules/core-js/library/modules/es6.object.to-string.js ***!
\**********************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/***/ }),
/***/ "./node_modules/core-js/library/modules/es6.string.iterator.js":
/*!*********************************************************************!*\
!*** ./node_modules/core-js/library/modules/es6.string.iterator.js ***!
\*********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $at = __webpack_require__(/*! ./_string-at */ "./node_modules/core-js/library/modules/_string-at.js")(true);
// 21.1.3.27 String.prototype[@@iterator]()
__webpack_require__(/*! ./_iter-define */ "./node_modules/core-js/library/modules/_iter-define.js")(String, 'String', function (iterated) {
this._t = String(iterated); // target
this._i = 0; // next index
// 21.1.5.2.1 %StringIteratorPrototype%.next()
}, function () {
var O = this._t;
var index = this._i;
var point;
if (index >= O.length) return { value: undefined, done: true };
point = $at(O, index);
this._i += point.length;
return { value: point, done: false };
});
/***/ }),
/***/ "./node_modules/core-js/library/modules/es6.symbol.js":
/*!************************************************************!*\
!*** ./node_modules/core-js/library/modules/es6.symbol.js ***!
\************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
// ECMAScript 6 symbols shim
var global = __webpack_require__(/*! ./_global */ "./node_modules/core-js/library/modules/_global.js");
var has = __webpack_require__(/*! ./_has */ "./node_modules/core-js/library/modules/_has.js");
var DESCRIPTORS = __webpack_require__(/*! ./_descriptors */ "./node_modules/core-js/library/modules/_descriptors.js");
var $export = __webpack_require__(/*! ./_export */ "./node_modules/core-js/library/modules/_export.js");
var redefine = __webpack_require__(/*! ./_redefine */ "./node_modules/core-js/library/modules/_redefine.js");
var META = __webpack_require__(/*! ./_meta */ "./node_modules/core-js/library/modules/_meta.js").KEY;
var $fails = __webpack_require__(/*! ./_fails */ "./node_modules/core-js/library/modules/_fails.js");
var shared = __webpack_require__(/*! ./_shared */ "./node_modules/core-js/library/modules/_shared.js");
var setToStringTag = __webpack_require__(/*! ./_set-to-string-tag */ "./node_modules/core-js/library/modules/_set-to-string-tag.js");
var uid = __webpack_require__(/*! ./_uid */ "./node_modules/core-js/library/modules/_uid.js");
var wks = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js");
var wksExt = __webpack_require__(/*! ./_wks-ext */ "./node_modules/core-js/library/modules/_wks-ext.js");
var wksDefine = __webpack_require__(/*! ./_wks-define */ "./node_modules/core-js/library/modules/_wks-define.js");
var enumKeys = __webpack_require__(/*! ./_enum-keys */ "./node_modules/core-js/library/modules/_enum-keys.js");
var isArray = __webpack_require__(/*! ./_is-array */ "./node_modules/core-js/library/modules/_is-array.js");
var anObject = __webpack_require__(/*! ./_an-object */ "./node_modules/core-js/library/modules/_an-object.js");
var isObject = __webpack_require__(/*! ./_is-object */ "./node_modules/core-js/library/modules/_is-object.js");
var toObject = __webpack_require__(/*! ./_to-object */ "./node_modules/core-js/library/modules/_to-object.js");
var toIObject = __webpack_require__(/*! ./_to-iobject */ "./node_modules/core-js/library/modules/_to-iobject.js");
var toPrimitive = __webpack_require__(/*! ./_to-primitive */ "./node_modules/core-js/library/modules/_to-primitive.js");
var createDesc = __webpack_require__(/*! ./_property-desc */ "./node_modules/core-js/library/modules/_property-desc.js");
var _create = __webpack_require__(/*! ./_object-create */ "./node_modules/core-js/library/modules/_object-create.js");
var gOPNExt = __webpack_require__(/*! ./_object-gopn-ext */ "./node_modules/core-js/library/modules/_object-gopn-ext.js");
var $GOPD = __webpack_require__(/*! ./_object-gopd */ "./node_modules/core-js/library/modules/_object-gopd.js");
var $GOPS = __webpack_require__(/*! ./_object-gops */ "./node_modules/core-js/library/modules/_object-gops.js");
var $DP = __webpack_require__(/*! ./_object-dp */ "./node_modules/core-js/library/modules/_object-dp.js");
var $keys = __webpack_require__(/*! ./_object-keys */ "./node_modules/core-js/library/modules/_object-keys.js");
var gOPD = $GOPD.f;
var dP = $DP.f;
var gOPN = gOPNExt.f;
var $Symbol = global.Symbol;
var $JSON = global.JSON;
var _stringify = $JSON && $JSON.stringify;
var PROTOTYPE = 'prototype';
var HIDDEN = wks('_hidden');
var TO_PRIMITIVE = wks('toPrimitive');
var isEnum = {}.propertyIsEnumerable;
var SymbolRegistry = shared('symbol-registry');
var AllSymbols = shared('symbols');
var OPSymbols = shared('op-symbols');
var ObjectProto = Object[PROTOTYPE];
var USE_NATIVE = typeof $Symbol == 'function' && !!$GOPS.f;
var QObject = global.QObject;
// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
var setSymbolDesc = DESCRIPTORS && $fails(function () {
return _create(dP({}, 'a', {
get: function () { return dP(this, 'a', { value: 7 }).a; }
})).a != 7;
}) ? function (it, key, D) {
var protoDesc = gOPD(ObjectProto, key);
if (protoDesc) delete ObjectProto[key];
dP(it, key, D);
if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);
} : dP;
var wrap = function (tag) {
var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);
sym._k = tag;
return sym;
};
var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {
return typeof it == 'symbol';
} : function (it) {
return it instanceof $Symbol;
};
var $defineProperty = function defineProperty(it, key, D) {
if (it === ObjectProto) $defineProperty(OPSymbols, key, D);
anObject(it);
key = toPrimitive(key, true);
anObject(D);
if (has(AllSymbols, key)) {
if (!D.enumerable) {
if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));
it[HIDDEN][key] = true;
} else {
if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;
D = _create(D, { enumerable: createDesc(0, false) });
} return setSymbolDesc(it, key, D);
} return dP(it, key, D);
};
var $defineProperties = function defineProperties(it, P) {
anObject(it);
var keys = enumKeys(P = toIObject(P));
var i = 0;
var l = keys.length;
var key;
while (l > i) $defineProperty(it, key = keys[i++], P[key]);
return it;
};
var $create = function create(it, P) {
return P === undefined ? _create(it) : $defineProperties(_create(it), P);
};
var $propertyIsEnumerable = function propertyIsEnumerable(key) {
var E = isEnum.call(this, key = toPrimitive(key, true));
if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;
return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;
};
var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {
it = toIObject(it);
key = toPrimitive(key, true);
if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;
var D = gOPD(it, key);
if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;
return D;
};
var $getOwnPropertyNames = function getOwnPropertyNames(it) {
var names = gOPN(toIObject(it));
var result = [];
var i = 0;
var key;
while (names.length > i) {
if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);
} return result;
};
var $getOwnPropertySymbols = function getOwnPropertySymbols(it) {
var IS_OP = it === ObjectProto;
var names = gOPN(IS_OP ? OPSymbols : toIObject(it));
var result = [];
var i = 0;
var key;
while (names.length > i) {
if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);
} return result;
};
// 19.4.1.1 Symbol([description])
if (!USE_NATIVE) {
$Symbol = function Symbol() {
if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');
var tag = uid(arguments.length > 0 ? arguments[0] : undefined);
var $set = function (value) {
if (this === ObjectProto) $set.call(OPSymbols, value);
if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
setSymbolDesc(this, tag, createDesc(1, value));
};
if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });
return wrap(tag);
};
redefine($Symbol[PROTOTYPE], 'toString', function toString() {
return this._k;
});
$GOPD.f = $getOwnPropertyDescriptor;
$DP.f = $defineProperty;
__webpack_require__(/*! ./_object-gopn */ "./node_modules/core-js/library/modules/_object-gopn.js").f = gOPNExt.f = $getOwnPropertyNames;
__webpack_require__(/*! ./_object-pie */ "./node_modules/core-js/library/modules/_object-pie.js").f = $propertyIsEnumerable;
$GOPS.f = $getOwnPropertySymbols;
if (DESCRIPTORS && !__webpack_require__(/*! ./_library */ "./node_modules/core-js/library/modules/_library.js")) {
redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
}
wksExt.f = function (name) {
return wrap(wks(name));
};
}
$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });
for (var es6Symbols = (
// 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14
'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'
).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);
for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);
$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {
// 19.4.2.1 Symbol.for(key)
'for': function (key) {
return has(SymbolRegistry, key += '')
? SymbolRegistry[key]
: SymbolRegistry[key] = $Symbol(key);
},
// 19.4.2.5 Symbol.keyFor(sym)
keyFor: function keyFor(sym) {
if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');
for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;
},
useSetter: function () { setter = true; },
useSimple: function () { setter = false; }
});
$export($export.S + $export.F * !USE_NATIVE, 'Object', {
// 19.1.2.2 Object.create(O [, Properties])
create: $create,
// 19.1.2.4 Object.defineProperty(O, P, Attributes)
defineProperty: $defineProperty,
// 19.1.2.3 Object.defineProperties(O, Properties)
defineProperties: $defineProperties,
// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
// 19.1.2.7 Object.getOwnPropertyNames(O)
getOwnPropertyNames: $getOwnPropertyNames,
// 19.1.2.8 Object.getOwnPropertySymbols(O)
getOwnPropertySymbols: $getOwnPropertySymbols
});
// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
// https://bugs.chromium.org/p/v8/issues/detail?id=3443
var FAILS_ON_PRIMITIVES = $fails(function () { $GOPS.f(1); });
$export($export.S + $export.F * FAILS_ON_PRIMITIVES, 'Object', {
getOwnPropertySymbols: function getOwnPropertySymbols(it) {
return $GOPS.f(toObject(it));
}
});
// 24.3.2 JSON.stringify(value [, replacer [, space]])
$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {
var S = $Symbol();
// MS Edge converts symbol values to JSON as {}
// WebKit converts symbol values to JSON as null
// V8 throws on boxed symbols
return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';
})), 'JSON', {
stringify: function stringify(it) {
var args = [it];
var i = 1;
var replacer, $replacer;
while (arguments.length > i) args.push(arguments[i++]);
$replacer = replacer = args[1];
if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
if (!isArray(replacer)) replacer = function (key, value) {
if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
if (!isSymbol(value)) return value;
};
args[1] = replacer;
return _stringify.apply($JSON, args);
}
});
// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)
$Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(/*! ./_hide */ "./node_modules/core-js/library/modules/_hide.js")($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
// 19.4.3.5 Symbol.prototype[@@toStringTag]
setToStringTag($Symbol, 'Symbol');
// 20.2.1.9 Math[@@toStringTag]
setToStringTag(Math, 'Math', true);
// 24.3.3 JSON[@@toStringTag]
setToStringTag(global.JSON, 'JSON', true);
/***/ }),
/***/ "./node_modules/core-js/library/modules/es7.symbol.async-iterator.js":
/*!***************************************************************************!*\
!*** ./node_modules/core-js/library/modules/es7.symbol.async-iterator.js ***!
\***************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(/*! ./_wks-define */ "./node_modules/core-js/library/modules/_wks-define.js")('asyncIterator');
/***/ }),
/***/ "./node_modules/core-js/library/modules/es7.symbol.observable.js":
/*!***********************************************************************!*\
!*** ./node_modules/core-js/library/modules/es7.symbol.observable.js ***!
\***********************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(/*! ./_wks-define */ "./node_modules/core-js/library/modules/_wks-define.js")('observable');
/***/ }),
/***/ "./node_modules/core-js/library/modules/web.dom.iterable.js":
/*!******************************************************************!*\
!*** ./node_modules/core-js/library/modules/web.dom.iterable.js ***!
\******************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(/*! ./es6.array.iterator */ "./node_modules/core-js/library/modules/es6.array.iterator.js");
var global = __webpack_require__(/*! ./_global */ "./node_modules/core-js/library/modules/_global.js");
var hide = __webpack_require__(/*! ./_hide */ "./node_modules/core-js/library/modules/_hide.js");
var Iterators = __webpack_require__(/*! ./_iterators */ "./node_modules/core-js/library/modules/_iterators.js");
var TO_STRING_TAG = __webpack_require__(/*! ./_wks */ "./node_modules/core-js/library/modules/_wks.js")('toStringTag');
var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +
'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +
'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +
'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +
'TextTrackList,TouchList').split(',');
for (var i = 0; i < DOMIterables.length; i++) {
var NAME = DOMIterables[i];
var Collection = global[NAME];
var proto = Collection && Collection.prototype;
if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
Iterators[NAME] = Iterators.Array;
}
/***/ }),
/***/ "./node_modules/dom-align/dist-web/index.js":
/*!**************************************************!*\
!*** ./node_modules/dom-align/dist-web/index.js ***!
\**************************************************/
/*! exports provided: default, alignElement, alignPoint */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "alignElement", function() { return alignElement; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "alignPoint", function() { return alignPoint; });
function _typeof(obj) {
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
_typeof = function (obj) {
return typeof obj;
};
} else {
_typeof = function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
};
}
return _typeof(obj);
}
function _defineProperty(obj, key, value) {
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
return obj;
}
function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
if (enumerableOnly) symbols = symbols.filter(function (sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
});
keys.push.apply(keys, symbols);
}
return keys;
}
function _objectSpread2(target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i] != null ? arguments[i] : {};
if (i % 2) {
ownKeys(source, true).forEach(function (key) {
_defineProperty(target, key, source[key]);
});
} else if (Object.getOwnPropertyDescriptors) {
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
} else {
ownKeys(source).forEach(function (key) {
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
});
}
}
return target;
}
var vendorPrefix;
var jsCssMap = {
Webkit: '-webkit-',
Moz: '-moz-',
// IE did it wrong again ...
ms: '-ms-',
O: '-o-'
};
function getVendorPrefix() {
if (vendorPrefix !== undefined) {
return vendorPrefix;
}
vendorPrefix = '';
var style = document.createElement('p').style;
var testProp = 'Transform';
for (var key in jsCssMap) {
if (key + testProp in style) {
vendorPrefix = key;
}
}
return vendorPrefix;
}
function getTransitionName() {
return getVendorPrefix() ? "".concat(getVendorPrefix(), "TransitionProperty") : 'transitionProperty';
}
function getTransformName() {
return getVendorPrefix() ? "".concat(getVendorPrefix(), "Transform") : 'transform';
}
function setTransitionProperty(node, value) {
var name = getTransitionName();
if (name) {
node.style[name] = value;
if (name !== 'transitionProperty') {
node.style.transitionProperty = value;
}
}
}
function setTransform(node, value) {
var name = getTransformName();
if (name) {
node.style[name] = value;
if (name !== 'transform') {
node.style.transform = value;
}
}
}
function getTransitionProperty(node) {
return node.style.transitionProperty || node.style[getTransitionName()];
}
function getTransformXY(node) {
var style = window.getComputedStyle(node, null);
var transform = style.getPropertyValue('transform') || style.getPropertyValue(getTransformName());
if (transform && transform !== 'none') {
var matrix = transform.replace(/[^0-9\-.,]/g, '').split(',');
return {
x: parseFloat(matrix[12] || matrix[4], 0),
y: parseFloat(matrix[13] || matrix[5], 0)
};
}
return {
x: 0,
y: 0
};
}
var matrix2d = /matrix\((.*)\)/;
var matrix3d = /matrix3d\((.*)\)/;
function setTransformXY(node, xy) {
var style = window.getComputedStyle(node, null);
var transform = style.getPropertyValue('transform') || style.getPropertyValue(getTransformName());
if (transform && transform !== 'none') {
var arr;
var match2d = transform.match(matrix2d);
if (match2d) {
match2d = match2d[1];
arr = match2d.split(',').map(function (item) {
return parseFloat(item, 10);
});
arr[4] = xy.x;
arr[5] = xy.y;
setTransform(node, "matrix(".concat(arr.join(','), ")"));
} else {
var match3d = transform.match(matrix3d)[1];
arr = match3d.split(',').map(function (item) {
return parseFloat(item, 10);
});
arr[12] = xy.x;
arr[13] = xy.y;
setTransform(node, "matrix3d(".concat(arr.join(','), ")"));
}
} else {
setTransform(node, "translateX(".concat(xy.x, "px) translateY(").concat(xy.y, "px) translateZ(0)"));
}
}
var RE_NUM = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source;
var getComputedStyleX; // https://stackoverflow.com/a/3485654/3040605
function forceRelayout(elem) {
var originalStyle = elem.style.display;
elem.style.display = 'none';
elem.offsetHeight; // eslint-disable-line
elem.style.display = originalStyle;
}
function css(el, name, v) {
var value = v;
if (_typeof(name) === 'object') {
for (var i in name) {
if (name.hasOwnProperty(i)) {
css(el, i, name[i]);
}
}
return undefined;
}
if (typeof value !== 'undefined') {
if (typeof value === 'number') {
value = "".concat(value, "px");
}
el.style[name] = value;
return undefined;
}
return getComputedStyleX(el, name);
}
function getClientPosition(elem) {
var box;
var x;
var y;
var doc = elem.ownerDocument;
var body = doc.body;
var docElem = doc && doc.documentElement; // 根据 GBS 最新数据A-Grade Browsers 都已支持 getBoundingClientRect 方法,不用再考虑传统的实现方式
box = elem.getBoundingClientRect(); // 注jQuery 还考虑减去 docElem.clientLeft/clientTop
// 但测试发现,这样反而会导致当 html 和 body 有边距/边框样式时,获取的值不正确
// 此外ie6 会忽略 html 的 margin 值,幸运地是没有谁会去设置 html 的 margin
x = box.left;
y = box.top; // In IE, most of the time, 2 extra pixels are added to the top and left
// due to the implicit 2-pixel inset border. In IE6/7 quirks mode and
// IE6 standards mode, this border can be overridden by setting the
// document element's border to zero -- thus, we cannot rely on the
// offset always being 2 pixels.
// In quirks mode, the offset can be determined by querying the body's
// clientLeft/clientTop, but in standards mode, it is found by querying
// the document element's clientLeft/clientTop. Since we already called
// getClientBoundingRect we have already forced a reflow, so it is not
// too expensive just to query them all.
// ie 下应该减去窗口的边框吧,毕竟默认 absolute 都是相对窗口定位的
// 窗口边框标准是设 documentElement ,quirks 时设置 body
// 最好禁止在 body 和 html 上边框 ,但 ie < 9 html 默认有 2px ,减去
// 但是非 ie 不可能设置窗口边框body html 也不是窗口 ,ie 可以通过 html,body 设置
// 标准 ie 下 docElem.clientTop 就是 border-top
// ie7 html 即窗口边框改变不了。永远为 2
// 但标准 firefox/chrome/ie9 下 docElem.clientTop 是窗口边框,即使设了 border-top 也为 0
x -= docElem.clientLeft || body.clientLeft || 0;
y -= docElem.clientTop || body.clientTop || 0;
return {
left: x,
top: y
};
}
function getScroll(w, top) {
var ret = w["page".concat(top ? 'Y' : 'X', "Offset")];
var method = "scroll".concat(top ? 'Top' : 'Left');
if (typeof ret !== 'number') {
var d = w.document; // ie6,7,8 standard mode
ret = d.documentElement[method];
if (typeof ret !== 'number') {
// quirks mode
ret = d.body[method];
}
}
return ret;
}
function getScrollLeft(w) {
return getScroll(w);
}
function getScrollTop(w) {
return getScroll(w, true);
}
function getOffset(el) {
var pos = getClientPosition(el);
var doc = el.ownerDocument;
var w = doc.defaultView || doc.parentWindow;
pos.left += getScrollLeft(w);
pos.top += getScrollTop(w);
return pos;
}
/**
* A crude way of determining if an object is a window
* @member util
*/
function isWindow(obj) {
// must use == for ie8
/* eslint eqeqeq:0 */
return obj !== null && obj !== undefined && obj == obj.window;
}
function getDocument(node) {
if (isWindow(node)) {
return node.document;
}
if (node.nodeType === 9) {
return node;
}
return node.ownerDocument;
}
function _getComputedStyle(elem, name, cs) {
var computedStyle = cs;
var val = '';
var d = getDocument(elem);
computedStyle = computedStyle || d.defaultView.getComputedStyle(elem, null); // https://github.com/kissyteam/kissy/issues/61
if (computedStyle) {
val = computedStyle.getPropertyValue(name) || computedStyle[name];
}
return val;
}
var _RE_NUM_NO_PX = new RegExp("^(".concat(RE_NUM, ")(?!px)[a-z%]+$"), 'i');
var RE_POS = /^(top|right|bottom|left)$/;
var CURRENT_STYLE = 'currentStyle';
var RUNTIME_STYLE = 'runtimeStyle';
var LEFT = 'left';
var PX = 'px';
function _getComputedStyleIE(elem, name) {
// currentStyle maybe null
// http://msdn.microsoft.com/en-us/library/ms535231.aspx
var ret = elem[CURRENT_STYLE] && elem[CURRENT_STYLE][name]; // 当 width/height 设置为百分比时,通过 pixelLeft 方式转换的 width/height 值
// 一开始就处理了! CUSTOM_STYLE.height,CUSTOM_STYLE.width ,cssHook 解决@2011-08-19
// 在 ie 下不对,需要直接用 offset 方式
// borderWidth 等值也有问题,但考虑到 borderWidth 设为百分比的概率很小,这里就不考虑了
// From the awesome hack by Dean Edwards
// http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
// If we're not dealing with a regular pixel number
// but a number that has a weird ending, we need to convert it to pixels
// exclude left right for relativity
if (_RE_NUM_NO_PX.test(ret) && !RE_POS.test(name)) {
// Remember the original values
var style = elem.style;
var left = style[LEFT];
var rsLeft = elem[RUNTIME_STYLE][LEFT]; // prevent flashing of content
elem[RUNTIME_STYLE][LEFT] = elem[CURRENT_STYLE][LEFT]; // Put in the new values to get a computed value out
style[LEFT] = name === 'fontSize' ? '1em' : ret || 0;
ret = style.pixelLeft + PX; // Revert the changed values
style[LEFT] = left;
elem[RUNTIME_STYLE][LEFT] = rsLeft;
}
return ret === '' ? 'auto' : ret;
}
if (typeof window !== 'undefined') {
getComputedStyleX = window.getComputedStyle ? _getComputedStyle : _getComputedStyleIE;
}
function getOffsetDirection(dir, option) {
if (dir === 'left') {
return option.useCssRight ? 'right' : dir;
}
return option.useCssBottom ? 'bottom' : dir;
}
function oppositeOffsetDirection(dir) {
if (dir === 'left') {
return 'right';
} else if (dir === 'right') {
return 'left';
} else if (dir === 'top') {
return 'bottom';
} else if (dir === 'bottom') {
return 'top';
}
} // 设置 elem 相对 elem.ownerDocument 的坐标
function setLeftTop(elem, offset, option) {
// set position first, in-case top/left are set even on static elem
if (css(elem, 'position') === 'static') {
elem.style.position = 'relative';
}
var presetH = -999;
var presetV = -999;
var horizontalProperty = getOffsetDirection('left', option);
var verticalProperty = getOffsetDirection('top', option);
var oppositeHorizontalProperty = oppositeOffsetDirection(horizontalProperty);
var oppositeVerticalProperty = oppositeOffsetDirection(verticalProperty);
if (horizontalProperty !== 'left') {
presetH = 999;
}
if (verticalProperty !== 'top') {
presetV = 999;
}
var originalTransition = '';
var originalOffset = getOffset(elem);
if ('left' in offset || 'top' in offset) {
originalTransition = getTransitionProperty(elem) || '';
setTransitionProperty(elem, 'none');
}
if ('left' in offset) {
elem.style[oppositeHorizontalProperty] = '';
elem.style[horizontalProperty] = "".concat(presetH, "px");
}
if ('top' in offset) {
elem.style[oppositeVerticalProperty] = '';
elem.style[verticalProperty] = "".concat(presetV, "px");
} // force relayout
forceRelayout(elem);
var old = getOffset(elem);
var originalStyle = {};
for (var key in offset) {
if (offset.hasOwnProperty(key)) {
var dir = getOffsetDirection(key, option);
var preset = key === 'left' ? presetH : presetV;
var off = originalOffset[key] - old[key];
if (dir === key) {
originalStyle[dir] = preset + off;
} else {
originalStyle[dir] = preset - off;
}
}
}
css(elem, originalStyle); // force relayout
forceRelayout(elem);
if ('left' in offset || 'top' in offset) {
setTransitionProperty(elem, originalTransition);
}
var ret = {};
for (var _key in offset) {
if (offset.hasOwnProperty(_key)) {
var _dir = getOffsetDirection(_key, option);
var _off = offset[_key] - originalOffset[_key];
if (_key === _dir) {
ret[_dir] = originalStyle[_dir] + _off;
} else {
ret[_dir] = originalStyle[_dir] - _off;
}
}
}
css(elem, ret);
}
function setTransform$1(elem, offset) {
var originalOffset = getOffset(elem);
var originalXY = getTransformXY(elem);
var resultXY = {
x: originalXY.x,
y: originalXY.y
};
if ('left' in offset) {
resultXY.x = originalXY.x + offset.left - originalOffset.left;
}
if ('top' in offset) {
resultXY.y = originalXY.y + offset.top - originalOffset.top;
}
setTransformXY(elem, resultXY);
}
function setOffset(elem, offset, option) {
if (option.ignoreShake) {
var oriOffset = getOffset(elem);
var oLeft = oriOffset.left.toFixed(0);
var oTop = oriOffset.top.toFixed(0);
var tLeft = offset.left.toFixed(0);
var tTop = offset.top.toFixed(0);
if (oLeft === tLeft && oTop === tTop) {
return;
}
}
if (option.useCssRight || option.useCssBottom) {
setLeftTop(elem, offset, option);
} else if (option.useCssTransform && getTransformName() in document.body.style) {
setTransform$1(elem, offset);
} else {
setLeftTop(elem, offset, option);
}
}
function each(arr, fn) {
for (var i = 0; i < arr.length; i++) {
fn(arr[i]);
}
}
function isBorderBoxFn(elem) {
return getComputedStyleX(elem, 'boxSizing') === 'border-box';
}
var BOX_MODELS = ['margin', 'border', 'padding'];
var CONTENT_INDEX = -1;
var PADDING_INDEX = 2;
var BORDER_INDEX = 1;
var MARGIN_INDEX = 0;
function swap(elem, options, callback) {
var old = {};
var style = elem.style;
var name; // Remember the old values, and insert the new ones
for (name in options) {
if (options.hasOwnProperty(name)) {
old[name] = style[name];
style[name] = options[name];
}
}
callback.call(elem); // Revert the old values
for (name in options) {
if (options.hasOwnProperty(name)) {
style[name] = old[name];
}
}
}
function getPBMWidth(elem, props, which) {
var value = 0;
var prop;
var j;
var i;
for (j = 0; j < props.length; j++) {
prop = props[j];
if (prop) {
for (i = 0; i < which.length; i++) {
var cssProp = void 0;
if (prop === 'border') {
cssProp = "".concat(prop).concat(which[i], "Width");
} else {
cssProp = prop + which[i];
}
value += parseFloat(getComputedStyleX(elem, cssProp)) || 0;
}
}
}
return value;
}
var domUtils = {
getParent: function getParent(element) {
var parent = element;
do {
if (parent.nodeType === 11 && parent.host) {
parent = parent.host;
} else {
parent = parent.parentNode;
}
} while (parent && parent.nodeType !== 1 && parent.nodeType !== 9);
return parent;
}
};
each(['Width', 'Height'], function (name) {
domUtils["doc".concat(name)] = function (refWin) {
var d = refWin.document;
return Math.max( // firefox chrome documentElement.scrollHeight< body.scrollHeight
// ie standard mode : documentElement.scrollHeight> body.scrollHeight
d.documentElement["scroll".concat(name)], // quirks : documentElement.scrollHeight 最大等于可视窗口多一点?
d.body["scroll".concat(name)], domUtils["viewport".concat(name)](d));
};
domUtils["viewport".concat(name)] = function (win) {
// pc browser includes scrollbar in window.innerWidth
var prop = "client".concat(name);
var doc = win.document;
var body = doc.body;
var documentElement = doc.documentElement;
var documentElementProp = documentElement[prop]; // 标准模式取 documentElement
// backcompat 取 body
return doc.compatMode === 'CSS1Compat' && documentElementProp || body && body[prop] || documentElementProp;
};
});
/*
得到元素的大小信息
@param elem
@param name
@param {String} [extra] 'padding' : (css width) + padding
'border' : (css width) + padding + border
'margin' : (css width) + padding + border + margin
*/
function getWH(elem, name, ex) {
var extra = ex;
if (isWindow(elem)) {
return name === 'width' ? domUtils.viewportWidth(elem) : domUtils.viewportHeight(elem);
} else if (elem.nodeType === 9) {
return name === 'width' ? domUtils.docWidth(elem) : domUtils.docHeight(elem);
}
var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom'];
var borderBoxValue = name === 'width' ? elem.getBoundingClientRect().width : elem.getBoundingClientRect().height;
var computedStyle = getComputedStyleX(elem);
var isBorderBox = isBorderBoxFn(elem);
var cssBoxValue = 0;
if (borderBoxValue === null || borderBoxValue === undefined || borderBoxValue <= 0) {
borderBoxValue = undefined; // Fall back to computed then un computed css if necessary
cssBoxValue = getComputedStyleX(elem, name);
if (cssBoxValue === null || cssBoxValue === undefined || Number(cssBoxValue) < 0) {
cssBoxValue = elem.style[name] || 0;
} // Normalize '', auto, and prepare for extra
cssBoxValue = parseFloat(cssBoxValue) || 0;
}
if (extra === undefined) {
extra = isBorderBox ? BORDER_INDEX : CONTENT_INDEX;
}
var borderBoxValueOrIsBorderBox = borderBoxValue !== undefined || isBorderBox;
var val = borderBoxValue || cssBoxValue;
if (extra === CONTENT_INDEX) {
if (borderBoxValueOrIsBorderBox) {
return val - getPBMWidth(elem, ['border', 'padding'], which);
}
return cssBoxValue;
} else if (borderBoxValueOrIsBorderBox) {
if (extra === BORDER_INDEX) {
return val;
}
return val + (extra === PADDING_INDEX ? -getPBMWidth(elem, ['border'], which) : getPBMWidth(elem, ['margin'], which));
}
return cssBoxValue + getPBMWidth(elem, BOX_MODELS.slice(extra), which);
}
var cssShow = {
position: 'absolute',
visibility: 'hidden',
display: 'block'
}; // fix #119 : https://github.com/kissyteam/kissy/issues/119
function getWHIgnoreDisplay() {
for (var _len = arguments.length, args = new Array(_len), _key2 = 0; _key2 < _len; _key2++) {
args[_key2] = arguments[_key2];
}
var val;
var elem = args[0]; // in case elem is window
// elem.offsetWidth === undefined
if (elem.offsetWidth !== 0) {
val = getWH.apply(undefined, args);
} else {
swap(elem, cssShow, function () {
val = getWH.apply(undefined, args);
});
}
return val;
}
each(['width', 'height'], function (name) {
var first = name.charAt(0).toUpperCase() + name.slice(1);
domUtils["outer".concat(first)] = function (el, includeMargin) {
return el && getWHIgnoreDisplay(el, name, includeMargin ? MARGIN_INDEX : BORDER_INDEX);
};
var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom'];
domUtils[name] = function (elem, v) {
var val = v;
if (val !== undefined) {
if (elem) {
var computedStyle = getComputedStyleX(elem);
var isBorderBox = isBorderBoxFn(elem);
if (isBorderBox) {
val += getPBMWidth(elem, ['padding', 'border'], which);
}
return css(elem, name, val);
}
return undefined;
}
return elem && getWHIgnoreDisplay(elem, name, CONTENT_INDEX);
};
});
function mix(to, from) {
for (var i in from) {
if (from.hasOwnProperty(i)) {
to[i] = from[i];
}
}
return to;
}
var utils = {
getWindow: function getWindow(node) {
if (node && node.document && node.setTimeout) {
return node;
}
var doc = node.ownerDocument || node;
return doc.defaultView || doc.parentWindow;
},
getDocument: getDocument,
offset: function offset(el, value, option) {
if (typeof value !== 'undefined') {
setOffset(el, value, option || {});
} else {
return getOffset(el);
}
},
isWindow: isWindow,
each: each,
css: css,
clone: function clone(obj) {
var i;
var ret = {};
for (i in obj) {
if (obj.hasOwnProperty(i)) {
ret[i] = obj[i];
}
}
var overflow = obj.overflow;
if (overflow) {
for (i in obj) {
if (obj.hasOwnProperty(i)) {
ret.overflow[i] = obj.overflow[i];
}
}
}
return ret;
},
mix: mix,
getWindowScrollLeft: function getWindowScrollLeft(w) {
return getScrollLeft(w);
},
getWindowScrollTop: function getWindowScrollTop(w) {
return getScrollTop(w);
},
merge: function merge() {
var ret = {};
for (var i = 0; i < arguments.length; i++) {
utils.mix(ret, i < 0 || arguments.length <= i ? undefined : arguments[i]);
}
return ret;
},
viewportWidth: 0,
viewportHeight: 0
};
mix(utils, domUtils);
/**
* 得到会导致元素显示不全的祖先元素
*/
var getParent = utils.getParent;
function getOffsetParent(element) {
if (utils.isWindow(element) || element.nodeType === 9) {
return null;
} // ie 这个也不是完全可行
/*
<div style="width: 50px;height: 100px;overflow: hidden">
<div style="width: 50px;height: 100px;position: relative;" id="d6">
元素 6 高 100px 宽 50px<br/>
</div>
</div>
*/
// element.offsetParent does the right thing in ie7 and below. Return parent with layout!
// In other browsers it only includes elements with position absolute, relative or
// fixed, not elements with overflow set to auto or scroll.
// if (UA.ie && ieMode < 8) {
// return element.offsetParent;
// }
// 统一的 offsetParent 方法
var doc = utils.getDocument(element);
var body = doc.body;
var parent;
var positionStyle = utils.css(element, 'position');
var skipStatic = positionStyle === 'fixed' || positionStyle === 'absolute';
if (!skipStatic) {
return element.nodeName.toLowerCase() === 'html' ? null : getParent(element);
}
for (parent = getParent(element); parent && parent !== body && parent.nodeType !== 9; parent = getParent(parent)) {
positionStyle = utils.css(parent, 'position');
if (positionStyle !== 'static') {
return parent;
}
}
return null;
}
var getParent$1 = utils.getParent;
function isAncestorFixed(element) {
if (utils.isWindow(element) || element.nodeType === 9) {
return false;
}
var doc = utils.getDocument(element);
var body = doc.body;
var parent = null;
for (parent = getParent$1(element); parent && parent !== body; parent = getParent$1(parent)) {
var positionStyle = utils.css(parent, 'position');
if (positionStyle === 'fixed') {
return true;
}
}
return false;
}
/**
* 获得元素的显示部分的区域
*/
function getVisibleRectForElement(element, alwaysByViewport) {
var visibleRect = {
left: 0,
right: Infinity,
top: 0,
bottom: Infinity
};
var el = getOffsetParent(element);
var doc = utils.getDocument(element);
var win = doc.defaultView || doc.parentWindow;
var body = doc.body;
var documentElement = doc.documentElement; // Determine the size of the visible rect by climbing the dom accounting for
// all scrollable containers.
while (el) {
// clientWidth is zero for inline block elements in ie.
if ((navigator.userAgent.indexOf('MSIE') === -1 || el.clientWidth !== 0) && // body may have overflow set on it, yet we still get the entire
// viewport. In some browsers, el.offsetParent may be
// document.documentElement, so check for that too.
el !== body && el !== documentElement && utils.css(el, 'overflow') !== 'visible') {
var pos = utils.offset(el); // add border
pos.left += el.clientLeft;
pos.top += el.clientTop;
visibleRect.top = Math.max(visibleRect.top, pos.top);
visibleRect.right = Math.min(visibleRect.right, // consider area without scrollBar
pos.left + el.clientWidth);
visibleRect.bottom = Math.min(visibleRect.bottom, pos.top + el.clientHeight);
visibleRect.left = Math.max(visibleRect.left, pos.left);
} else if (el === body || el === documentElement) {
break;
}
el = getOffsetParent(el);
} // Set element position to fixed
// make sure absolute element itself don't affect it's visible area
// https://github.com/ant-design/ant-design/issues/7601
var originalPosition = null;
if (!utils.isWindow(element) && element.nodeType !== 9) {
originalPosition = element.style.position;
var position = utils.css(element, 'position');
if (position === 'absolute') {
element.style.position = 'fixed';
}
}
var scrollX = utils.getWindowScrollLeft(win);
var scrollY = utils.getWindowScrollTop(win);
var viewportWidth = utils.viewportWidth(win);
var viewportHeight = utils.viewportHeight(win);
var documentWidth = documentElement.scrollWidth;
var documentHeight = documentElement.scrollHeight; // scrollXXX on html is sync with body which means overflow: hidden on body gets wrong scrollXXX.
// We should cut this ourself.
var bodyStyle = window.getComputedStyle(body);
if (bodyStyle.overflowX === 'hidden') {
documentWidth = win.innerWidth;
}
if (bodyStyle.overflowY === 'hidden') {
documentHeight = win.innerHeight;
} // Reset element position after calculate the visible area
if (element.style) {
element.style.position = originalPosition;
}
if (alwaysByViewport || isAncestorFixed(element)) {
// Clip by viewport's size.
visibleRect.left = Math.max(visibleRect.left, scrollX);
visibleRect.top = Math.max(visibleRect.top, scrollY);
visibleRect.right = Math.min(visibleRect.right, scrollX + viewportWidth);
visibleRect.bottom = Math.min(visibleRect.bottom, scrollY + viewportHeight);
} else {
// Clip by document's size.
var maxVisibleWidth = Math.max(documentWidth, scrollX + viewportWidth);
visibleRect.right = Math.min(visibleRect.right, maxVisibleWidth);
var maxVisibleHeight = Math.max(documentHeight, scrollY + viewportHeight);
visibleRect.bottom = Math.min(visibleRect.bottom, maxVisibleHeight);
}
return visibleRect.top >= 0 && visibleRect.left >= 0 && visibleRect.bottom > visibleRect.top && visibleRect.right > visibleRect.left ? visibleRect : null;
}
function adjustForViewport(elFuturePos, elRegion, visibleRect, overflow) {
var pos = utils.clone(elFuturePos);
var size = {
width: elRegion.width,
height: elRegion.height
};
if (overflow.adjustX && pos.left < visibleRect.left) {
pos.left = visibleRect.left;
} // Left edge inside and right edge outside viewport, try to resize it.
if (overflow.resizeWidth && pos.left >= visibleRect.left && pos.left + size.width > visibleRect.right) {
size.width -= pos.left + size.width - visibleRect.right;
} // Right edge outside viewport, try to move it.
if (overflow.adjustX && pos.left + size.width > visibleRect.right) {
// 保证左边界和可视区域左边界对齐
pos.left = Math.max(visibleRect.right - size.width, visibleRect.left);
} // Top edge outside viewport, try to move it.
if (overflow.adjustY && pos.top < visibleRect.top) {
pos.top = visibleRect.top;
} // Top edge inside and bottom edge outside viewport, try to resize it.
if (overflow.resizeHeight && pos.top >= visibleRect.top && pos.top + size.height > visibleRect.bottom) {
size.height -= pos.top + size.height - visibleRect.bottom;
} // Bottom edge outside viewport, try to move it.
if (overflow.adjustY && pos.top + size.height > visibleRect.bottom) {
// 保证上边界和可视区域上边界对齐
pos.top = Math.max(visibleRect.bottom - size.height, visibleRect.top);
}
return utils.mix(pos, size);
}
function getRegion(node) {
var offset;
var w;
var h;
if (!utils.isWindow(node) && node.nodeType !== 9) {
offset = utils.offset(node);
w = utils.outerWidth(node);
h = utils.outerHeight(node);
} else {
var win = utils.getWindow(node);
offset = {
left: utils.getWindowScrollLeft(win),
top: utils.getWindowScrollTop(win)
};
w = utils.viewportWidth(win);
h = utils.viewportHeight(win);
}
offset.width = w;
offset.height = h;
return offset;
}
/**
* 获取 node 上的 align 对齐点 相对于页面的坐标
*/
function getAlignOffset(region, align) {
var V = align.charAt(0);
var H = align.charAt(1);
var w = region.width;
var h = region.height;
var x = region.left;
var y = region.top;
if (V === 'c') {
y += h / 2;
} else if (V === 'b') {
y += h;
}
if (H === 'c') {
x += w / 2;
} else if (H === 'r') {
x += w;
}
return {
left: x,
top: y
};
}
function getElFuturePos(elRegion, refNodeRegion, points, offset, targetOffset) {
var p1 = getAlignOffset(refNodeRegion, points[1]);
var p2 = getAlignOffset(elRegion, points[0]);
var diff = [p2.left - p1.left, p2.top - p1.top];
return {
left: Math.round(elRegion.left - diff[0] + offset[0] - targetOffset[0]),
top: Math.round(elRegion.top - diff[1] + offset[1] - targetOffset[1])
};
}
/**
* align dom node flexibly
* @author yiminghe@gmail.com
*/
function isFailX(elFuturePos, elRegion, visibleRect) {
return elFuturePos.left < visibleRect.left || elFuturePos.left + elRegion.width > visibleRect.right;
}
function isFailY(elFuturePos, elRegion, visibleRect) {
return elFuturePos.top < visibleRect.top || elFuturePos.top + elRegion.height > visibleRect.bottom;
}
function isCompleteFailX(elFuturePos, elRegion, visibleRect) {
return elFuturePos.left > visibleRect.right || elFuturePos.left + elRegion.width < visibleRect.left;
}
function isCompleteFailY(elFuturePos, elRegion, visibleRect) {
return elFuturePos.top > visibleRect.bottom || elFuturePos.top + elRegion.height < visibleRect.top;
}
function flip(points, reg, map) {
var ret = [];
utils.each(points, function (p) {
ret.push(p.replace(reg, function (m) {
return map[m];
}));
});
return ret;
}
function flipOffset(offset, index) {
offset[index] = -offset[index];
return offset;
}
function convertOffset(str, offsetLen) {
var n;
if (/%$/.test(str)) {
n = parseInt(str.substring(0, str.length - 1), 10) / 100 * offsetLen;
} else {
n = parseInt(str, 10);
}
return n || 0;
}
function normalizeOffset(offset, el) {
offset[0] = convertOffset(offset[0], el.width);
offset[1] = convertOffset(offset[1], el.height);
}
/**
* @param el
* @param tgtRegion 参照节点所占的区域: { left, top, width, height }
* @param align
*/
function doAlign(el, tgtRegion, align, isTgtRegionVisible) {
var points = align.points;
var offset = align.offset || [0, 0];
var targetOffset = align.targetOffset || [0, 0];
var overflow = align.overflow;
var source = align.source || el;
offset = [].concat(offset);
targetOffset = [].concat(targetOffset);
overflow = overflow || {};
var newOverflowCfg = {};
var fail = 0;
var alwaysByViewport = !!(overflow && overflow.alwaysByViewport); // 当前节点可以被放置的显示区域
var visibleRect = getVisibleRectForElement(source, alwaysByViewport); // 当前节点所占的区域, left/top/width/height
var elRegion = getRegion(source); // 将 offset 转换成数值,支持百分比
normalizeOffset(offset, elRegion);
normalizeOffset(targetOffset, tgtRegion); // 当前节点将要被放置的位置
var elFuturePos = getElFuturePos(elRegion, tgtRegion, points, offset, targetOffset); // 当前节点将要所处的区域
var newElRegion = utils.merge(elRegion, elFuturePos); // 如果可视区域不能完全放置当前节点时允许调整
if (visibleRect && (overflow.adjustX || overflow.adjustY) && isTgtRegionVisible) {
if (overflow.adjustX) {
// 如果横向不能放下
if (isFailX(elFuturePos, elRegion, visibleRect)) {
// 对齐位置反下
var newPoints = flip(points, /[lr]/gi, {
l: 'r',
r: 'l'
}); // 偏移量也反下
var newOffset = flipOffset(offset, 0);
var newTargetOffset = flipOffset(targetOffset, 0);
var newElFuturePos = getElFuturePos(elRegion, tgtRegion, newPoints, newOffset, newTargetOffset);
if (!isCompleteFailX(newElFuturePos, elRegion, visibleRect)) {
fail = 1;
points = newPoints;
offset = newOffset;
targetOffset = newTargetOffset;
}
}
}
if (overflow.adjustY) {
// 如果纵向不能放下
if (isFailY(elFuturePos, elRegion, visibleRect)) {
// 对齐位置反下
var _newPoints = flip(points, /[tb]/gi, {
t: 'b',
b: 't'
}); // 偏移量也反下
var _newOffset = flipOffset(offset, 1);
var _newTargetOffset = flipOffset(targetOffset, 1);
var _newElFuturePos = getElFuturePos(elRegion, tgtRegion, _newPoints, _newOffset, _newTargetOffset);
if (!isCompleteFailY(_newElFuturePos, elRegion, visibleRect)) {
fail = 1;
points = _newPoints;
offset = _newOffset;
targetOffset = _newTargetOffset;
}
}
} // 如果失败,重新计算当前节点将要被放置的位置
if (fail) {
elFuturePos = getElFuturePos(elRegion, tgtRegion, points, offset, targetOffset);
utils.mix(newElRegion, elFuturePos);
}
var isStillFailX = isFailX(elFuturePos, elRegion, visibleRect);
var isStillFailY = isFailY(elFuturePos, elRegion, visibleRect); // 检查反下后的位置是否可以放下了,如果仍然放不下:
// 1. 复原修改过的定位参数
if (isStillFailX || isStillFailY) {
var _newPoints2 = points; // 重置对应部分的翻转逻辑
if (isStillFailX) {
_newPoints2 = flip(points, /[lr]/gi, {
l: 'r',
r: 'l'
});
}
if (isStillFailY) {
_newPoints2 = flip(points, /[tb]/gi, {
t: 'b',
b: 't'
});
}
points = _newPoints2;
offset = align.offset || [0, 0];
targetOffset = align.targetOffset || [0, 0];
} // 2. 只有指定了可以调整当前方向才调整
newOverflowCfg.adjustX = overflow.adjustX && isStillFailX;
newOverflowCfg.adjustY = overflow.adjustY && isStillFailY; // 确实要调整,甚至可能会调整高度宽度
if (newOverflowCfg.adjustX || newOverflowCfg.adjustY) {
newElRegion = adjustForViewport(elFuturePos, elRegion, visibleRect, newOverflowCfg);
}
} // need judge to in case set fixed with in css on height auto element
if (newElRegion.width !== elRegion.width) {
utils.css(source, 'width', utils.width(source) + newElRegion.width - elRegion.width);
}
if (newElRegion.height !== elRegion.height) {
utils.css(source, 'height', utils.height(source) + newElRegion.height - elRegion.height);
} // https://github.com/kissyteam/kissy/issues/190
// 相对于屏幕位置没变,而 left/top 变了
// 例如 <div 'relative'><el absolute></div>
utils.offset(source, {
left: newElRegion.left,
top: newElRegion.top
}, {
useCssRight: align.useCssRight,
useCssBottom: align.useCssBottom,
useCssTransform: align.useCssTransform,
ignoreShake: align.ignoreShake
});
return {
points: points,
offset: offset,
targetOffset: targetOffset,
overflow: newOverflowCfg
};
}
/**
* 2012-04-26 yiminghe@gmail.com
* - 优化智能对齐算法
* - 慎用 resizeXX
*
* 2011-07-13 yiminghe@gmail.com note:
* - 增加智能对齐,以及大小调整选项
**/
function isOutOfVisibleRect(target, alwaysByViewport) {
var visibleRect = getVisibleRectForElement(target, alwaysByViewport);
var targetRegion = getRegion(target);
return !visibleRect || targetRegion.left + targetRegion.width <= visibleRect.left || targetRegion.top + targetRegion.height <= visibleRect.top || targetRegion.left >= visibleRect.right || targetRegion.top >= visibleRect.bottom;
}
function alignElement(el, refNode, align) {
var target = align.target || refNode;
var refNodeRegion = getRegion(target);
var isTargetNotOutOfVisible = !isOutOfVisibleRect(target, align.overflow && align.overflow.alwaysByViewport);
return doAlign(el, refNodeRegion, align, isTargetNotOutOfVisible);
}
alignElement.__getOffsetParent = getOffsetParent;
alignElement.__getVisibleRectForElement = getVisibleRectForElement;
/**
* `tgtPoint`: { pageX, pageY } or { clientX, clientY }.
* If client position provided, will internal convert to page position.
*/
function alignPoint(el, tgtPoint, align) {
var pageX;
var pageY;
var doc = utils.getDocument(el);
var win = doc.defaultView || doc.parentWindow;
var scrollX = utils.getWindowScrollLeft(win);
var scrollY = utils.getWindowScrollTop(win);
var viewportWidth = utils.viewportWidth(win);
var viewportHeight = utils.viewportHeight(win);
if ('pageX' in tgtPoint) {
pageX = tgtPoint.pageX;
} else {
pageX = scrollX + tgtPoint.clientX;
}
if ('pageY' in tgtPoint) {
pageY = tgtPoint.pageY;
} else {
pageY = scrollY + tgtPoint.clientY;
}
var tgtRegion = {
left: pageX,
top: pageY,
width: 0,
height: 0
};
var pointInView = pageX >= 0 && pageX <= scrollX + viewportWidth && pageY >= 0 && pageY <= scrollY + viewportHeight; // Provide default target point
var points = [align.points[0], 'cc'];
return doAlign(el, tgtRegion, _objectSpread2({}, align, {
points: points
}), pointInView);
}
/* harmony default export */ __webpack_exports__["default"] = (alignElement);
//# sourceMappingURL=index.js.map
/***/ }),
/***/ "./node_modules/dom-closest/index.js":
/*!*******************************************!*\
!*** ./node_modules/dom-closest/index.js ***!
\*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
/**
* Module dependencies
*/
var matches = __webpack_require__(/*! dom-matches */ "./node_modules/dom-matches/index.js");
/**
* @param element {Element}
* @param selector {String}
* @param context {Element}
* @return {Element}
*/
module.exports = function (element, selector, context) {
context = context || document;
// guard against orphans
element = { parentNode: element };
while ((element = element.parentNode) && element !== context) {
if (matches(element, selector)) {
return element;
}
}
};
/***/ }),
/***/ "./node_modules/dom-matches/index.js":
/*!*******************************************!*\
!*** ./node_modules/dom-matches/index.js ***!
\*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/**
* Determine if a DOM element matches a CSS selector
*
* @param {Element} elem
* @param {String} selector
* @return {Boolean}
* @api public
*/
function matches(elem, selector) {
// Vendor-specific implementations of `Element.prototype.matches()`.
var proto = window.Element.prototype;
var nativeMatches = proto.matches ||
proto.mozMatchesSelector ||
proto.msMatchesSelector ||
proto.oMatchesSelector ||
proto.webkitMatchesSelector;
if (!elem || elem.nodeType !== 1) {
return false;
}
var parentElem = elem.parentNode;
// use native 'matches'
if (nativeMatches) {
return nativeMatches.call(elem, selector);
}
// native support for `matches` is missing and a fallback is required
var nodes = parentElem.querySelectorAll(selector);
var len = nodes.length;
for (var i = 0; i < len; i++) {
if (nodes[i] === elem) {
return true;
}
}
return false;
}
/**
* Expose `matches`
*/
module.exports = matches;
/***/ }),
/***/ "./node_modules/dom-scroll-into-view/dist-web/index.js":
/*!*************************************************************!*\
!*** ./node_modules/dom-scroll-into-view/dist-web/index.js ***!
\*************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
function _typeof(obj) {
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
_typeof = function (obj) {
return typeof obj;
};
} else {
_typeof = function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
};
}
return _typeof(obj);
}
function _defineProperty(obj, key, value) {
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
return obj;
}
function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
if (enumerableOnly) symbols = symbols.filter(function (sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
});
keys.push.apply(keys, symbols);
}
return keys;
}
function _objectSpread2(target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i] != null ? arguments[i] : {};
if (i % 2) {
ownKeys(source, true).forEach(function (key) {
_defineProperty(target, key, source[key]);
});
} else if (Object.getOwnPropertyDescriptors) {
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
} else {
ownKeys(source).forEach(function (key) {
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
});
}
}
return target;
}
var RE_NUM = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source;
function getClientPosition(elem) {
var box;
var x;
var y;
var doc = elem.ownerDocument;
var body = doc.body;
var docElem = doc && doc.documentElement; // 根据 GBS 最新数据A-Grade Browsers 都已支持 getBoundingClientRect 方法,不用再考虑传统的实现方式
box = elem.getBoundingClientRect(); // 注jQuery 还考虑减去 docElem.clientLeft/clientTop
// 但测试发现,这样反而会导致当 html 和 body 有边距/边框样式时,获取的值不正确
// 此外ie6 会忽略 html 的 margin 值,幸运地是没有谁会去设置 html 的 margin
x = box.left;
y = box.top; // In IE, most of the time, 2 extra pixels are added to the top and left
// due to the implicit 2-pixel inset border. In IE6/7 quirks mode and
// IE6 standards mode, this border can be overridden by setting the
// document element's border to zero -- thus, we cannot rely on the
// offset always being 2 pixels.
// In quirks mode, the offset can be determined by querying the body's
// clientLeft/clientTop, but in standards mode, it is found by querying
// the document element's clientLeft/clientTop. Since we already called
// getClientBoundingRect we have already forced a reflow, so it is not
// too expensive just to query them all.
// ie 下应该减去窗口的边框吧,毕竟默认 absolute 都是相对窗口定位的
// 窗口边框标准是设 documentElement ,quirks 时设置 body
// 最好禁止在 body 和 html 上边框 ,但 ie < 9 html 默认有 2px ,减去
// 但是非 ie 不可能设置窗口边框body html 也不是窗口 ,ie 可以通过 html,body 设置
// 标准 ie 下 docElem.clientTop 就是 border-top
// ie7 html 即窗口边框改变不了。永远为 2
// 但标准 firefox/chrome/ie9 下 docElem.clientTop 是窗口边框,即使设了 border-top 也为 0
x -= docElem.clientLeft || body.clientLeft || 0;
y -= docElem.clientTop || body.clientTop || 0;
return {
left: x,
top: y
};
}
function getScroll(w, top) {
var ret = w["page".concat(top ? 'Y' : 'X', "Offset")];
var method = "scroll".concat(top ? 'Top' : 'Left');
if (typeof ret !== 'number') {
var d = w.document; // ie6,7,8 standard mode
ret = d.documentElement[method];
if (typeof ret !== 'number') {
// quirks mode
ret = d.body[method];
}
}
return ret;
}
function getScrollLeft(w) {
return getScroll(w);
}
function getScrollTop(w) {
return getScroll(w, true);
}
function getOffset(el) {
var pos = getClientPosition(el);
var doc = el.ownerDocument;
var w = doc.defaultView || doc.parentWindow;
pos.left += getScrollLeft(w);
pos.top += getScrollTop(w);
return pos;
}
function _getComputedStyle(elem, name, computedStyle_) {
var val = '';
var d = elem.ownerDocument;
var computedStyle = computedStyle_ || d.defaultView.getComputedStyle(elem, null); // https://github.com/kissyteam/kissy/issues/61
if (computedStyle) {
val = computedStyle.getPropertyValue(name) || computedStyle[name];
}
return val;
}
var _RE_NUM_NO_PX = new RegExp("^(".concat(RE_NUM, ")(?!px)[a-z%]+$"), 'i');
var RE_POS = /^(top|right|bottom|left)$/;
var CURRENT_STYLE = 'currentStyle';
var RUNTIME_STYLE = 'runtimeStyle';
var LEFT = 'left';
var PX = 'px';
function _getComputedStyleIE(elem, name) {
// currentStyle maybe null
// http://msdn.microsoft.com/en-us/library/ms535231.aspx
var ret = elem[CURRENT_STYLE] && elem[CURRENT_STYLE][name]; // 当 width/height 设置为百分比时,通过 pixelLeft 方式转换的 width/height 值
// 一开始就处理了! CUSTOM_STYLE.height,CUSTOM_STYLE.width ,cssHook 解决@2011-08-19
// 在 ie 下不对,需要直接用 offset 方式
// borderWidth 等值也有问题,但考虑到 borderWidth 设为百分比的概率很小,这里就不考虑了
// From the awesome hack by Dean Edwards
// http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
// If we're not dealing with a regular pixel number
// but a number that has a weird ending, we need to convert it to pixels
// exclude left right for relativity
if (_RE_NUM_NO_PX.test(ret) && !RE_POS.test(name)) {
// Remember the original values
var style = elem.style;
var left = style[LEFT];
var rsLeft = elem[RUNTIME_STYLE][LEFT]; // prevent flashing of content
elem[RUNTIME_STYLE][LEFT] = elem[CURRENT_STYLE][LEFT]; // Put in the new values to get a computed value out
style[LEFT] = name === 'fontSize' ? '1em' : ret || 0;
ret = style.pixelLeft + PX; // Revert the changed values
style[LEFT] = left;
elem[RUNTIME_STYLE][LEFT] = rsLeft;
}
return ret === '' ? 'auto' : ret;
}
var getComputedStyleX;
if (typeof window !== 'undefined') {
getComputedStyleX = window.getComputedStyle ? _getComputedStyle : _getComputedStyleIE;
}
function each(arr, fn) {
for (var i = 0; i < arr.length; i++) {
fn(arr[i]);
}
}
function isBorderBoxFn(elem) {
return getComputedStyleX(elem, 'boxSizing') === 'border-box';
}
var BOX_MODELS = ['margin', 'border', 'padding'];
var CONTENT_INDEX = -1;
var PADDING_INDEX = 2;
var BORDER_INDEX = 1;
var MARGIN_INDEX = 0;
function swap(elem, options, callback) {
var old = {};
var style = elem.style;
var name; // Remember the old values, and insert the new ones
for (name in options) {
if (options.hasOwnProperty(name)) {
old[name] = style[name];
style[name] = options[name];
}
}
callback.call(elem); // Revert the old values
for (name in options) {
if (options.hasOwnProperty(name)) {
style[name] = old[name];
}
}
}
function getPBMWidth(elem, props, which) {
var value = 0;
var prop;
var j;
var i;
for (j = 0; j < props.length; j++) {
prop = props[j];
if (prop) {
for (i = 0; i < which.length; i++) {
var cssProp = void 0;
if (prop === 'border') {
cssProp = "".concat(prop + which[i], "Width");
} else {
cssProp = prop + which[i];
}
value += parseFloat(getComputedStyleX(elem, cssProp)) || 0;
}
}
}
return value;
}
/**
* A crude way of determining if an object is a window
* @member util
*/
function isWindow(obj) {
// must use == for ie8
/* eslint eqeqeq:0 */
return obj != null && obj == obj.window;
}
var domUtils = {};
each(['Width', 'Height'], function (name) {
domUtils["doc".concat(name)] = function (refWin) {
var d = refWin.document;
return Math.max( // firefox chrome documentElement.scrollHeight< body.scrollHeight
// ie standard mode : documentElement.scrollHeight> body.scrollHeight
d.documentElement["scroll".concat(name)], // quirks : documentElement.scrollHeight 最大等于可视窗口多一点?
d.body["scroll".concat(name)], domUtils["viewport".concat(name)](d));
};
domUtils["viewport".concat(name)] = function (win) {
// pc browser includes scrollbar in window.innerWidth
var prop = "client".concat(name);
var doc = win.document;
var body = doc.body;
var documentElement = doc.documentElement;
var documentElementProp = documentElement[prop]; // 标准模式取 documentElement
// backcompat 取 body
return doc.compatMode === 'CSS1Compat' && documentElementProp || body && body[prop] || documentElementProp;
};
});
/*
得到元素的大小信息
@param elem
@param name
@param {String} [extra] 'padding' : (css width) + padding
'border' : (css width) + padding + border
'margin' : (css width) + padding + border + margin
*/
function getWH(elem, name, extra) {
if (isWindow(elem)) {
return name === 'width' ? domUtils.viewportWidth(elem) : domUtils.viewportHeight(elem);
} else if (elem.nodeType === 9) {
return name === 'width' ? domUtils.docWidth(elem) : domUtils.docHeight(elem);
}
var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom'];
var borderBoxValue = name === 'width' ? elem.offsetWidth : elem.offsetHeight;
var computedStyle = getComputedStyleX(elem);
var isBorderBox = isBorderBoxFn(elem);
var cssBoxValue = 0;
if (borderBoxValue == null || borderBoxValue <= 0) {
borderBoxValue = undefined; // Fall back to computed then un computed css if necessary
cssBoxValue = getComputedStyleX(elem, name);
if (cssBoxValue == null || Number(cssBoxValue) < 0) {
cssBoxValue = elem.style[name] || 0;
} // Normalize '', auto, and prepare for extra
cssBoxValue = parseFloat(cssBoxValue) || 0;
}
if (extra === undefined) {
extra = isBorderBox ? BORDER_INDEX : CONTENT_INDEX;
}
var borderBoxValueOrIsBorderBox = borderBoxValue !== undefined || isBorderBox;
var val = borderBoxValue || cssBoxValue;
if (extra === CONTENT_INDEX) {
if (borderBoxValueOrIsBorderBox) {
return val - getPBMWidth(elem, ['border', 'padding'], which);
}
return cssBoxValue;
}
if (borderBoxValueOrIsBorderBox) {
var padding = extra === PADDING_INDEX ? -getPBMWidth(elem, ['border'], which) : getPBMWidth(elem, ['margin'], which);
return val + (extra === BORDER_INDEX ? 0 : padding);
}
return cssBoxValue + getPBMWidth(elem, BOX_MODELS.slice(extra), which);
}
var cssShow = {
position: 'absolute',
visibility: 'hidden',
display: 'block'
}; // fix #119 : https://github.com/kissyteam/kissy/issues/119
function getWHIgnoreDisplay(elem) {
var val;
var args = arguments; // in case elem is window
// elem.offsetWidth === undefined
if (elem.offsetWidth !== 0) {
val = getWH.apply(undefined, args);
} else {
swap(elem, cssShow, function () {
val = getWH.apply(undefined, args);
});
}
return val;
}
function css(el, name, v) {
var value = v;
if (_typeof(name) === 'object') {
for (var i in name) {
if (name.hasOwnProperty(i)) {
css(el, i, name[i]);
}
}
return undefined;
}
if (typeof value !== 'undefined') {
if (typeof value === 'number') {
value += 'px';
}
el.style[name] = value;
return undefined;
}
return getComputedStyleX(el, name);
}
each(['width', 'height'], function (name) {
var first = name.charAt(0).toUpperCase() + name.slice(1);
domUtils["outer".concat(first)] = function (el, includeMargin) {
return el && getWHIgnoreDisplay(el, name, includeMargin ? MARGIN_INDEX : BORDER_INDEX);
};
var which = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom'];
domUtils[name] = function (elem, val) {
if (val !== undefined) {
if (elem) {
var computedStyle = getComputedStyleX(elem);
var isBorderBox = isBorderBoxFn(elem);
if (isBorderBox) {
val += getPBMWidth(elem, ['padding', 'border'], which);
}
return css(elem, name, val);
}
return undefined;
}
return elem && getWHIgnoreDisplay(elem, name, CONTENT_INDEX);
};
}); // 设置 elem 相对 elem.ownerDocument 的坐标
function setOffset(elem, offset) {
// set position first, in-case top/left are set even on static elem
if (css(elem, 'position') === 'static') {
elem.style.position = 'relative';
}
var old = getOffset(elem);
var ret = {};
var current;
var key;
for (key in offset) {
if (offset.hasOwnProperty(key)) {
current = parseFloat(css(elem, key)) || 0;
ret[key] = current + offset[key] - old[key];
}
}
css(elem, ret);
}
var util = _objectSpread2({
getWindow: function getWindow(node) {
var doc = node.ownerDocument || node;
return doc.defaultView || doc.parentWindow;
},
offset: function offset(el, value) {
if (typeof value !== 'undefined') {
setOffset(el, value);
} else {
return getOffset(el);
}
},
isWindow: isWindow,
each: each,
css: css,
clone: function clone(obj) {
var ret = {};
for (var i in obj) {
if (obj.hasOwnProperty(i)) {
ret[i] = obj[i];
}
}
var overflow = obj.overflow;
if (overflow) {
for (var _i in obj) {
if (obj.hasOwnProperty(_i)) {
ret.overflow[_i] = obj.overflow[_i];
}
}
}
return ret;
},
scrollLeft: function scrollLeft(w, v) {
if (isWindow(w)) {
if (v === undefined) {
return getScrollLeft(w);
}
window.scrollTo(v, getScrollTop(w));
} else {
if (v === undefined) {
return w.scrollLeft;
}
w.scrollLeft = v;
}
},
scrollTop: function scrollTop(w, v) {
if (isWindow(w)) {
if (v === undefined) {
return getScrollTop(w);
}
window.scrollTo(getScrollLeft(w), v);
} else {
if (v === undefined) {
return w.scrollTop;
}
w.scrollTop = v;
}
},
viewportWidth: 0,
viewportHeight: 0
}, domUtils);
function scrollIntoView(elem, container, config) {
config = config || {}; // document 归一化到 window
if (container.nodeType === 9) {
container = util.getWindow(container);
}
var allowHorizontalScroll = config.allowHorizontalScroll;
var onlyScrollIfNeeded = config.onlyScrollIfNeeded;
var alignWithTop = config.alignWithTop;
var alignWithLeft = config.alignWithLeft;
var offsetTop = config.offsetTop || 0;
var offsetLeft = config.offsetLeft || 0;
var offsetBottom = config.offsetBottom || 0;
var offsetRight = config.offsetRight || 0;
allowHorizontalScroll = allowHorizontalScroll === undefined ? true : allowHorizontalScroll;
var isWin = util.isWindow(container);
var elemOffset = util.offset(elem);
var eh = util.outerHeight(elem);
var ew = util.outerWidth(elem);
var containerOffset;
var ch;
var cw;
var containerScroll;
var diffTop;
var diffBottom;
var win;
var winScroll;
var ww;
var wh;
if (isWin) {
win = container;
wh = util.height(win);
ww = util.width(win);
winScroll = {
left: util.scrollLeft(win),
top: util.scrollTop(win)
}; // elem 相对 container 可视视窗的距离
diffTop = {
left: elemOffset.left - winScroll.left - offsetLeft,
top: elemOffset.top - winScroll.top - offsetTop
};
diffBottom = {
left: elemOffset.left + ew - (winScroll.left + ww) + offsetRight,
top: elemOffset.top + eh - (winScroll.top + wh) + offsetBottom
};
containerScroll = winScroll;
} else {
containerOffset = util.offset(container);
ch = container.clientHeight;
cw = container.clientWidth;
containerScroll = {
left: container.scrollLeft,
top: container.scrollTop
}; // elem 相对 container 可视视窗的距离
// 注意边框, offset 是边框到根节点
diffTop = {
left: elemOffset.left - (containerOffset.left + (parseFloat(util.css(container, 'borderLeftWidth')) || 0)) - offsetLeft,
top: elemOffset.top - (containerOffset.top + (parseFloat(util.css(container, 'borderTopWidth')) || 0)) - offsetTop
};
diffBottom = {
left: elemOffset.left + ew - (containerOffset.left + cw + (parseFloat(util.css(container, 'borderRightWidth')) || 0)) + offsetRight,
top: elemOffset.top + eh - (containerOffset.top + ch + (parseFloat(util.css(container, 'borderBottomWidth')) || 0)) + offsetBottom
};
}
if (diffTop.top < 0 || diffBottom.top > 0) {
// 强制向上
if (alignWithTop === true) {
util.scrollTop(container, containerScroll.top + diffTop.top);
} else if (alignWithTop === false) {
util.scrollTop(container, containerScroll.top + diffBottom.top);
} else {
// 自动调整
if (diffTop.top < 0) {
util.scrollTop(container, containerScroll.top + diffTop.top);
} else {
util.scrollTop(container, containerScroll.top + diffBottom.top);
}
}
} else {
if (!onlyScrollIfNeeded) {
alignWithTop = alignWithTop === undefined ? true : !!alignWithTop;
if (alignWithTop) {
util.scrollTop(container, containerScroll.top + diffTop.top);
} else {
util.scrollTop(container, containerScroll.top + diffBottom.top);
}
}
}
if (allowHorizontalScroll) {
if (diffTop.left < 0 || diffBottom.left > 0) {
// 强制向上
if (alignWithLeft === true) {
util.scrollLeft(container, containerScroll.left + diffTop.left);
} else if (alignWithLeft === false) {
util.scrollLeft(container, containerScroll.left + diffBottom.left);
} else {
// 自动调整
if (diffTop.left < 0) {
util.scrollLeft(container, containerScroll.left + diffTop.left);
} else {
util.scrollLeft(container, containerScroll.left + diffBottom.left);
}
}
} else {
if (!onlyScrollIfNeeded) {
alignWithLeft = alignWithLeft === undefined ? true : !!alignWithLeft;
if (alignWithLeft) {
util.scrollLeft(container, containerScroll.left + diffTop.left);
} else {
util.scrollLeft(container, containerScroll.left + diffBottom.left);
}
}
}
}
}
/* harmony default export */ __webpack_exports__["default"] = (scrollIntoView);
//# sourceMappingURL=index.js.map
/***/ }),
/***/ "./node_modules/enquire.js/src/MediaQuery.js":
/*!***************************************************!*\
!*** ./node_modules/enquire.js/src/MediaQuery.js ***!
\***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var QueryHandler = __webpack_require__(/*! ./QueryHandler */ "./node_modules/enquire.js/src/QueryHandler.js");
var each = __webpack_require__(/*! ./Util */ "./node_modules/enquire.js/src/Util.js").each;
/**
* Represents a single media query, manages it's state and registered handlers for this query
*
* @constructor
* @param {string} query the media query string
* @param {boolean} [isUnconditional=false] whether the media query should run regardless of whether the conditions are met. Primarily for helping older browsers deal with mobile-first design
*/
function MediaQuery(query, isUnconditional) {
this.query = query;
this.isUnconditional = isUnconditional;
this.handlers = [];
this.mql = window.matchMedia(query);
var self = this;
this.listener = function(mql) {
// Chrome passes an MediaQueryListEvent object, while other browsers pass MediaQueryList directly
self.mql = mql.currentTarget || mql;
self.assess();
};
this.mql.addListener(this.listener);
}
MediaQuery.prototype = {
constuctor : MediaQuery,
/**
* add a handler for this query, triggering if already active
*
* @param {object} handler
* @param {function} handler.match callback for when query is activated
* @param {function} [handler.unmatch] callback for when query is deactivated
* @param {function} [handler.setup] callback for immediate execution when a query handler is registered
* @param {boolean} [handler.deferSetup=false] should the setup callback be deferred until the first time the handler is matched?
*/
addHandler : function(handler) {
var qh = new QueryHandler(handler);
this.handlers.push(qh);
this.matches() && qh.on();
},
/**
* removes the given handler from the collection, and calls it's destroy methods
*
* @param {object || function} handler the handler to remove
*/
removeHandler : function(handler) {
var handlers = this.handlers;
each(handlers, function(h, i) {
if(h.equals(handler)) {
h.destroy();
return !handlers.splice(i,1); //remove from array and exit each early
}
});
},
/**
* Determine whether the media query should be considered a match
*
* @return {Boolean} true if media query can be considered a match, false otherwise
*/
matches : function() {
return this.mql.matches || this.isUnconditional;
},
/**
* Clears all handlers and unbinds events
*/
clear : function() {
each(this.handlers, function(handler) {
handler.destroy();
});
this.mql.removeListener(this.listener);
this.handlers.length = 0; //clear array
},
/*
* Assesses the query, turning on all handlers if it matches, turning them off if it doesn't match
*/
assess : function() {
var action = this.matches() ? 'on' : 'off';
each(this.handlers, function(handler) {
handler[action]();
});
}
};
module.exports = MediaQuery;
/***/ }),
/***/ "./node_modules/enquire.js/src/MediaQueryDispatch.js":
/*!***********************************************************!*\
!*** ./node_modules/enquire.js/src/MediaQueryDispatch.js ***!
\***********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var MediaQuery = __webpack_require__(/*! ./MediaQuery */ "./node_modules/enquire.js/src/MediaQuery.js");
var Util = __webpack_require__(/*! ./Util */ "./node_modules/enquire.js/src/Util.js");
var each = Util.each;
var isFunction = Util.isFunction;
var isArray = Util.isArray;
/**
* Allows for registration of query handlers.
* Manages the query handler's state and is responsible for wiring up browser events
*
* @constructor
*/
function MediaQueryDispatch () {
if(!window.matchMedia) {
throw new Error('matchMedia not present, legacy browsers require a polyfill');
}
this.queries = {};
this.browserIsIncapable = !window.matchMedia('only all').matches;
}
MediaQueryDispatch.prototype = {
constructor : MediaQueryDispatch,
/**
* Registers a handler for the given media query
*
* @param {string} q the media query
* @param {object || Array || Function} options either a single query handler object, a function, or an array of query handlers
* @param {function} options.match fired when query matched
* @param {function} [options.unmatch] fired when a query is no longer matched
* @param {function} [options.setup] fired when handler first triggered
* @param {boolean} [options.deferSetup=false] whether setup should be run immediately or deferred until query is first matched
* @param {boolean} [shouldDegrade=false] whether this particular media query should always run on incapable browsers
*/
register : function(q, options, shouldDegrade) {
var queries = this.queries,
isUnconditional = shouldDegrade && this.browserIsIncapable;
if(!queries[q]) {
queries[q] = new MediaQuery(q, isUnconditional);
}
//normalise to object in an array
if(isFunction(options)) {
options = { match : options };
}
if(!isArray(options)) {
options = [options];
}
each(options, function(handler) {
if (isFunction(handler)) {
handler = { match : handler };
}
queries[q].addHandler(handler);
});
return this;
},
/**
* unregisters a query and all it's handlers, or a specific handler for a query
*
* @param {string} q the media query to target
* @param {object || function} [handler] specific handler to unregister
*/
unregister : function(q, handler) {
var query = this.queries[q];
if(query) {
if(handler) {
query.removeHandler(handler);
}
else {
query.clear();
delete this.queries[q];
}
}
return this;
}
};
module.exports = MediaQueryDispatch;
/***/ }),
/***/ "./node_modules/enquire.js/src/QueryHandler.js":
/*!*****************************************************!*\
!*** ./node_modules/enquire.js/src/QueryHandler.js ***!
\*****************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* Delegate to handle a media query being matched and unmatched.
*
* @param {object} options
* @param {function} options.match callback for when the media query is matched
* @param {function} [options.unmatch] callback for when the media query is unmatched
* @param {function} [options.setup] one-time callback triggered the first time a query is matched
* @param {boolean} [options.deferSetup=false] should the setup callback be run immediately, rather than first time query is matched?
* @constructor
*/
function QueryHandler(options) {
this.options = options;
!options.deferSetup && this.setup();
}
QueryHandler.prototype = {
constructor : QueryHandler,
/**
* coordinates setup of the handler
*
* @function
*/
setup : function() {
if(this.options.setup) {
this.options.setup();
}
this.initialised = true;
},
/**
* coordinates setup and triggering of the handler
*
* @function
*/
on : function() {
!this.initialised && this.setup();
this.options.match && this.options.match();
},
/**
* coordinates the unmatch event for the handler
*
* @function
*/
off : function() {
this.options.unmatch && this.options.unmatch();
},
/**
* called when a handler is to be destroyed.
* delegates to the destroy or unmatch callbacks, depending on availability.
*
* @function
*/
destroy : function() {
this.options.destroy ? this.options.destroy() : this.off();
},
/**
* determines equality by reference.
* if object is supplied compare options, if function, compare match callback
*
* @function
* @param {object || function} [target] the target for comparison
*/
equals : function(target) {
return this.options === target || this.options.match === target;
}
};
module.exports = QueryHandler;
/***/ }),
/***/ "./node_modules/enquire.js/src/Util.js":
/*!*********************************************!*\
!*** ./node_modules/enquire.js/src/Util.js ***!
\*********************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* Helper function for iterating over a collection
*
* @param collection
* @param fn
*/
function each(collection, fn) {
var i = 0,
length = collection.length,
cont;
for(i; i < length; i++) {
cont = fn(collection[i], i);
if(cont === false) {
break; //allow early exit
}
}
}
/**
* Helper function for determining whether target object is an array
*
* @param target the object under test
* @return {Boolean} true if array, false otherwise
*/
function isArray(target) {
return Object.prototype.toString.apply(target) === '[object Array]';
}
/**
* Helper function for determining whether target object is a function
*
* @param target the object under test
* @return {Boolean} true if function, false otherwise
*/
function isFunction(target) {
return typeof target === 'function';
}
module.exports = {
isFunction : isFunction,
isArray : isArray,
each : each
};
/***/ }),
/***/ "./node_modules/enquire.js/src/index.js":
/*!**********************************************!*\
!*** ./node_modules/enquire.js/src/index.js ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var MediaQueryDispatch = __webpack_require__(/*! ./MediaQueryDispatch */ "./node_modules/enquire.js/src/MediaQueryDispatch.js");
module.exports = new MediaQueryDispatch();
/***/ }),
/***/ "./node_modules/is-mobile/index.js":
/*!*****************************************!*\
!*** ./node_modules/is-mobile/index.js ***!
\*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
module.exports = isMobile
module.exports.isMobile = isMobile
module.exports.default = isMobile
var mobileRE = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i
var tabletRE = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i
function isMobile (opts) {
if (!opts) opts = {}
var ua = opts.ua
if (!ua && typeof navigator !== 'undefined') ua = navigator.userAgent
if (ua && ua.headers && typeof ua.headers['user-agent'] === 'string') {
ua = ua.headers['user-agent']
}
if (typeof ua !== 'string') return false
var result = opts.tablet ? tabletRE.test(ua) : mobileRE.test(ua)
if (
!result &&
opts.tablet &&
opts.featureDetect &&
navigator &&
navigator.maxTouchPoints > 1 &&
ua.indexOf('Macintosh') !== -1 &&
ua.indexOf('Safari') !== -1
) {
result = true
}
return result
}
/***/ }),
/***/ "./node_modules/json2mq/index.js":
/*!***************************************!*\
!*** ./node_modules/json2mq/index.js ***!
\***************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var camel2hyphen = __webpack_require__(/*! string-convert/camel2hyphen */ "./node_modules/string-convert/camel2hyphen.js");
var isDimension = function (feature) {
var re = /[height|width]$/;
return re.test(feature);
};
var obj2mq = function (obj) {
var mq = '';
var features = Object.keys(obj);
features.forEach(function (feature, index) {
var value = obj[feature];
feature = camel2hyphen(feature);
// Add px to dimension features
if (isDimension(feature) && typeof value === 'number') {
value = value + 'px';
}
if (value === true) {
mq += feature;
} else if (value === false) {
mq += 'not ' + feature;
} else {
mq += '(' + feature + ': ' + value + ')';
}
if (index < features.length-1) {
mq += ' and '
}
});
return mq;
};
var json2mq = function (query) {
var mq = '';
if (typeof query === 'string') {
return query;
}
// Handling array of media queries
if (query instanceof Array) {
query.forEach(function (q, index) {
mq += obj2mq(q);
if (index < query.length-1) {
mq += ', '
}
});
return mq;
}
// Handling single media query
return obj2mq(query);
};
module.exports = json2mq;
/***/ }),
/***/ "./node_modules/lodash/_DataView.js":
/*!******************************************!*\
!*** ./node_modules/lodash/_DataView.js ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
/* Built-in method references that are verified to be native. */
var DataView = getNative(root, 'DataView');
module.exports = DataView;
/***/ }),
/***/ "./node_modules/lodash/_Hash.js":
/*!**************************************!*\
!*** ./node_modules/lodash/_Hash.js ***!
\**************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var hashClear = __webpack_require__(/*! ./_hashClear */ "./node_modules/lodash/_hashClear.js"),
hashDelete = __webpack_require__(/*! ./_hashDelete */ "./node_modules/lodash/_hashDelete.js"),
hashGet = __webpack_require__(/*! ./_hashGet */ "./node_modules/lodash/_hashGet.js"),
hashHas = __webpack_require__(/*! ./_hashHas */ "./node_modules/lodash/_hashHas.js"),
hashSet = __webpack_require__(/*! ./_hashSet */ "./node_modules/lodash/_hashSet.js");
/**
* Creates a hash object.
*
* @private
* @constructor
* @param {Array} [entries] The key-value pairs to cache.
*/
function Hash(entries) {
var index = -1,
length = entries == null ? 0 : entries.length;
this.clear();
while (++index < length) {
var entry = entries[index];
this.set(entry[0], entry[1]);
}
}
// Add methods to `Hash`.
Hash.prototype.clear = hashClear;
Hash.prototype['delete'] = hashDelete;
Hash.prototype.get = hashGet;
Hash.prototype.has = hashHas;
Hash.prototype.set = hashSet;
module.exports = Hash;
/***/ }),
/***/ "./node_modules/lodash/_ListCache.js":
/*!*******************************************!*\
!*** ./node_modules/lodash/_ListCache.js ***!
\*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var listCacheClear = __webpack_require__(/*! ./_listCacheClear */ "./node_modules/lodash/_listCacheClear.js"),
listCacheDelete = __webpack_require__(/*! ./_listCacheDelete */ "./node_modules/lodash/_listCacheDelete.js"),
listCacheGet = __webpack_require__(/*! ./_listCacheGet */ "./node_modules/lodash/_listCacheGet.js"),
listCacheHas = __webpack_require__(/*! ./_listCacheHas */ "./node_modules/lodash/_listCacheHas.js"),
listCacheSet = __webpack_require__(/*! ./_listCacheSet */ "./node_modules/lodash/_listCacheSet.js");
/**
* Creates an list cache object.
*
* @private
* @constructor
* @param {Array} [entries] The key-value pairs to cache.
*/
function ListCache(entries) {
var index = -1,
length = entries == null ? 0 : entries.length;
this.clear();
while (++index < length) {
var entry = entries[index];
this.set(entry[0], entry[1]);
}
}
// Add methods to `ListCache`.
ListCache.prototype.clear = listCacheClear;
ListCache.prototype['delete'] = listCacheDelete;
ListCache.prototype.get = listCacheGet;
ListCache.prototype.has = listCacheHas;
ListCache.prototype.set = listCacheSet;
module.exports = ListCache;
/***/ }),
/***/ "./node_modules/lodash/_Map.js":
/*!*************************************!*\
!*** ./node_modules/lodash/_Map.js ***!
\*************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
/* Built-in method references that are verified to be native. */
var Map = getNative(root, 'Map');
module.exports = Map;
/***/ }),
/***/ "./node_modules/lodash/_MapCache.js":
/*!******************************************!*\
!*** ./node_modules/lodash/_MapCache.js ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var mapCacheClear = __webpack_require__(/*! ./_mapCacheClear */ "./node_modules/lodash/_mapCacheClear.js"),
mapCacheDelete = __webpack_require__(/*! ./_mapCacheDelete */ "./node_modules/lodash/_mapCacheDelete.js"),
mapCacheGet = __webpack_require__(/*! ./_mapCacheGet */ "./node_modules/lodash/_mapCacheGet.js"),
mapCacheHas = __webpack_require__(/*! ./_mapCacheHas */ "./node_modules/lodash/_mapCacheHas.js"),
mapCacheSet = __webpack_require__(/*! ./_mapCacheSet */ "./node_modules/lodash/_mapCacheSet.js");
/**
* Creates a map cache object to store key-value pairs.
*
* @private
* @constructor
* @param {Array} [entries] The key-value pairs to cache.
*/
function MapCache(entries) {
var index = -1,
length = entries == null ? 0 : entries.length;
this.clear();
while (++index < length) {
var entry = entries[index];
this.set(entry[0], entry[1]);
}
}
// Add methods to `MapCache`.
MapCache.prototype.clear = mapCacheClear;
MapCache.prototype['delete'] = mapCacheDelete;
MapCache.prototype.get = mapCacheGet;
MapCache.prototype.has = mapCacheHas;
MapCache.prototype.set = mapCacheSet;
module.exports = MapCache;
/***/ }),
/***/ "./node_modules/lodash/_Promise.js":
/*!*****************************************!*\
!*** ./node_modules/lodash/_Promise.js ***!
\*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
/* Built-in method references that are verified to be native. */
var Promise = getNative(root, 'Promise');
module.exports = Promise;
/***/ }),
/***/ "./node_modules/lodash/_Set.js":
/*!*************************************!*\
!*** ./node_modules/lodash/_Set.js ***!
\*************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
/* Built-in method references that are verified to be native. */
var Set = getNative(root, 'Set');
module.exports = Set;
/***/ }),
/***/ "./node_modules/lodash/_SetCache.js":
/*!******************************************!*\
!*** ./node_modules/lodash/_SetCache.js ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var MapCache = __webpack_require__(/*! ./_MapCache */ "./node_modules/lodash/_MapCache.js"),
setCacheAdd = __webpack_require__(/*! ./_setCacheAdd */ "./node_modules/lodash/_setCacheAdd.js"),
setCacheHas = __webpack_require__(/*! ./_setCacheHas */ "./node_modules/lodash/_setCacheHas.js");
/**
*
* Creates an array cache object to store unique values.
*
* @private
* @constructor
* @param {Array} [values] The values to cache.
*/
function SetCache(values) {
var index = -1,
length = values == null ? 0 : values.length;
this.__data__ = new MapCache;
while (++index < length) {
this.add(values[index]);
}
}
// Add methods to `SetCache`.
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
SetCache.prototype.has = setCacheHas;
module.exports = SetCache;
/***/ }),
/***/ "./node_modules/lodash/_Stack.js":
/*!***************************************!*\
!*** ./node_modules/lodash/_Stack.js ***!
\***************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js"),
stackClear = __webpack_require__(/*! ./_stackClear */ "./node_modules/lodash/_stackClear.js"),
stackDelete = __webpack_require__(/*! ./_stackDelete */ "./node_modules/lodash/_stackDelete.js"),
stackGet = __webpack_require__(/*! ./_stackGet */ "./node_modules/lodash/_stackGet.js"),
stackHas = __webpack_require__(/*! ./_stackHas */ "./node_modules/lodash/_stackHas.js"),
stackSet = __webpack_require__(/*! ./_stackSet */ "./node_modules/lodash/_stackSet.js");
/**
* Creates a stack cache object to store key-value pairs.
*
* @private
* @constructor
* @param {Array} [entries] The key-value pairs to cache.
*/
function Stack(entries) {
var data = this.__data__ = new ListCache(entries);
this.size = data.size;
}
// Add methods to `Stack`.
Stack.prototype.clear = stackClear;
Stack.prototype['delete'] = stackDelete;
Stack.prototype.get = stackGet;
Stack.prototype.has = stackHas;
Stack.prototype.set = stackSet;
module.exports = Stack;
/***/ }),
/***/ "./node_modules/lodash/_Symbol.js":
/*!****************************************!*\
!*** ./node_modules/lodash/_Symbol.js ***!
\****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
/** Built-in value references. */
var Symbol = root.Symbol;
module.exports = Symbol;
/***/ }),
/***/ "./node_modules/lodash/_Uint8Array.js":
/*!********************************************!*\
!*** ./node_modules/lodash/_Uint8Array.js ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
/** Built-in value references. */
var Uint8Array = root.Uint8Array;
module.exports = Uint8Array;
/***/ }),
/***/ "./node_modules/lodash/_WeakMap.js":
/*!*****************************************!*\
!*** ./node_modules/lodash/_WeakMap.js ***!
\*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js"),
root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
/* Built-in method references that are verified to be native. */
var WeakMap = getNative(root, 'WeakMap');
module.exports = WeakMap;
/***/ }),
/***/ "./node_modules/lodash/_apply.js":
/*!***************************************!*\
!*** ./node_modules/lodash/_apply.js ***!
\***************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* A faster alternative to `Function#apply`, this function invokes `func`
* with the `this` binding of `thisArg` and the arguments of `args`.
*
* @private
* @param {Function} func The function to invoke.
* @param {*} thisArg The `this` binding of `func`.
* @param {Array} args The arguments to invoke `func` with.
* @returns {*} Returns the result of `func`.
*/
function apply(func, thisArg, args) {
switch (args.length) {
case 0: return func.call(thisArg);
case 1: return func.call(thisArg, args[0]);
case 2: return func.call(thisArg, args[0], args[1]);
case 3: return func.call(thisArg, args[0], args[1], args[2]);
}
return func.apply(thisArg, args);
}
module.exports = apply;
/***/ }),
/***/ "./node_modules/lodash/_arrayAggregator.js":
/*!*************************************************!*\
!*** ./node_modules/lodash/_arrayAggregator.js ***!
\*************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* A specialized version of `baseAggregator` for arrays.
*
* @private
* @param {Array} [array] The array to iterate over.
* @param {Function} setter The function to set `accumulator` values.
* @param {Function} iteratee The iteratee to transform keys.
* @param {Object} accumulator The initial aggregated object.
* @returns {Function} Returns `accumulator`.
*/
function arrayAggregator(array, setter, iteratee, accumulator) {
var index = -1,
length = array == null ? 0 : array.length;
while (++index < length) {
var value = array[index];
setter(accumulator, value, iteratee(value), array);
}
return accumulator;
}
module.exports = arrayAggregator;
/***/ }),
/***/ "./node_modules/lodash/_arrayEach.js":
/*!*******************************************!*\
!*** ./node_modules/lodash/_arrayEach.js ***!
\*******************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* A specialized version of `_.forEach` for arrays without support for
* iteratee shorthands.
*
* @private
* @param {Array} [array] The array to iterate over.
* @param {Function} iteratee The function invoked per iteration.
* @returns {Array} Returns `array`.
*/
function arrayEach(array, iteratee) {
var index = -1,
length = array == null ? 0 : array.length;
while (++index < length) {
if (iteratee(array[index], index, array) === false) {
break;
}
}
return array;
}
module.exports = arrayEach;
/***/ }),
/***/ "./node_modules/lodash/_arrayFilter.js":
/*!*********************************************!*\
!*** ./node_modules/lodash/_arrayFilter.js ***!
\*********************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* A specialized version of `_.filter` for arrays without support for
* iteratee shorthands.
*
* @private
* @param {Array} [array] The array to iterate over.
* @param {Function} predicate The function invoked per iteration.
* @returns {Array} Returns the new filtered array.
*/
function arrayFilter(array, predicate) {
var index = -1,
length = array == null ? 0 : array.length,
resIndex = 0,
result = [];
while (++index < length) {
var value = array[index];
if (predicate(value, index, array)) {
result[resIndex++] = value;
}
}
return result;
}
module.exports = arrayFilter;
/***/ }),
/***/ "./node_modules/lodash/_arrayIncludes.js":
/*!***********************************************!*\
!*** ./node_modules/lodash/_arrayIncludes.js ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseIndexOf = __webpack_require__(/*! ./_baseIndexOf */ "./node_modules/lodash/_baseIndexOf.js");
/**
* A specialized version of `_.includes` for arrays without support for
* specifying an index to search from.
*
* @private
* @param {Array} [array] The array to inspect.
* @param {*} target The value to search for.
* @returns {boolean} Returns `true` if `target` is found, else `false`.
*/
function arrayIncludes(array, value) {
var length = array == null ? 0 : array.length;
return !!length && baseIndexOf(array, value, 0) > -1;
}
module.exports = arrayIncludes;
/***/ }),
/***/ "./node_modules/lodash/_arrayIncludesWith.js":
/*!***************************************************!*\
!*** ./node_modules/lodash/_arrayIncludesWith.js ***!
\***************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* This function is like `arrayIncludes` except that it accepts a comparator.
*
* @private
* @param {Array} [array] The array to inspect.
* @param {*} target The value to search for.
* @param {Function} comparator The comparator invoked per element.
* @returns {boolean} Returns `true` if `target` is found, else `false`.
*/
function arrayIncludesWith(array, value, comparator) {
var index = -1,
length = array == null ? 0 : array.length;
while (++index < length) {
if (comparator(value, array[index])) {
return true;
}
}
return false;
}
module.exports = arrayIncludesWith;
/***/ }),
/***/ "./node_modules/lodash/_arrayLikeKeys.js":
/*!***********************************************!*\
!*** ./node_modules/lodash/_arrayLikeKeys.js ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseTimes = __webpack_require__(/*! ./_baseTimes */ "./node_modules/lodash/_baseTimes.js"),
isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"),
isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
isIndex = __webpack_require__(/*! ./_isIndex */ "./node_modules/lodash/_isIndex.js"),
isTypedArray = __webpack_require__(/*! ./isTypedArray */ "./node_modules/lodash/isTypedArray.js");
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/**
* Creates an array of the enumerable property names of the array-like `value`.
*
* @private
* @param {*} value The value to query.
* @param {boolean} inherited Specify returning inherited property names.
* @returns {Array} Returns the array of property names.
*/
function arrayLikeKeys(value, inherited) {
var isArr = isArray(value),
isArg = !isArr && isArguments(value),
isBuff = !isArr && !isArg && isBuffer(value),
isType = !isArr && !isArg && !isBuff && isTypedArray(value),
skipIndexes = isArr || isArg || isBuff || isType,
result = skipIndexes ? baseTimes(value.length, String) : [],
length = result.length;
for (var key in value) {
if ((inherited || hasOwnProperty.call(value, key)) &&
!(skipIndexes && (
// Safari 9 has enumerable `arguments.length` in strict mode.
key == 'length' ||
// Node.js 0.10 has enumerable non-index properties on buffers.
(isBuff && (key == 'offset' || key == 'parent')) ||
// PhantomJS 2 has enumerable non-index properties on typed arrays.
(isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
// Skip index properties.
isIndex(key, length)
))) {
result.push(key);
}
}
return result;
}
module.exports = arrayLikeKeys;
/***/ }),
/***/ "./node_modules/lodash/_arrayMap.js":
/*!******************************************!*\
!*** ./node_modules/lodash/_arrayMap.js ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* A specialized version of `_.map` for arrays without support for iteratee
* shorthands.
*
* @private
* @param {Array} [array] The array to iterate over.
* @param {Function} iteratee The function invoked per iteration.
* @returns {Array} Returns the new mapped array.
*/
function arrayMap(array, iteratee) {
var index = -1,
length = array == null ? 0 : array.length,
result = Array(length);
while (++index < length) {
result[index] = iteratee(array[index], index, array);
}
return result;
}
module.exports = arrayMap;
/***/ }),
/***/ "./node_modules/lodash/_arrayPush.js":
/*!*******************************************!*\
!*** ./node_modules/lodash/_arrayPush.js ***!
\*******************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* Appends the elements of `values` to `array`.
*
* @private
* @param {Array} array The array to modify.
* @param {Array} values The values to append.
* @returns {Array} Returns `array`.
*/
function arrayPush(array, values) {
var index = -1,
length = values.length,
offset = array.length;
while (++index < length) {
array[offset + index] = values[index];
}
return array;
}
module.exports = arrayPush;
/***/ }),
/***/ "./node_modules/lodash/_arraySome.js":
/*!*******************************************!*\
!*** ./node_modules/lodash/_arraySome.js ***!
\*******************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* A specialized version of `_.some` for arrays without support for iteratee
* shorthands.
*
* @private
* @param {Array} [array] The array to iterate over.
* @param {Function} predicate The function invoked per iteration.
* @returns {boolean} Returns `true` if any element passes the predicate check,
* else `false`.
*/
function arraySome(array, predicate) {
var index = -1,
length = array == null ? 0 : array.length;
while (++index < length) {
if (predicate(array[index], index, array)) {
return true;
}
}
return false;
}
module.exports = arraySome;
/***/ }),
/***/ "./node_modules/lodash/_asciiSize.js":
/*!*******************************************!*\
!*** ./node_modules/lodash/_asciiSize.js ***!
\*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseProperty = __webpack_require__(/*! ./_baseProperty */ "./node_modules/lodash/_baseProperty.js");
/**
* Gets the size of an ASCII `string`.
*
* @private
* @param {string} string The string inspect.
* @returns {number} Returns the string size.
*/
var asciiSize = baseProperty('length');
module.exports = asciiSize;
/***/ }),
/***/ "./node_modules/lodash/_asciiToArray.js":
/*!**********************************************!*\
!*** ./node_modules/lodash/_asciiToArray.js ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* Converts an ASCII `string` to an array.
*
* @private
* @param {string} string The string to convert.
* @returns {Array} Returns the converted array.
*/
function asciiToArray(string) {
return string.split('');
}
module.exports = asciiToArray;
/***/ }),
/***/ "./node_modules/lodash/_assignMergeValue.js":
/*!**************************************************!*\
!*** ./node_modules/lodash/_assignMergeValue.js ***!
\**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "./node_modules/lodash/_baseAssignValue.js"),
eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js");
/**
* This function is like `assignValue` except that it doesn't assign
* `undefined` values.
*
* @private
* @param {Object} object The object to modify.
* @param {string} key The key of the property to assign.
* @param {*} value The value to assign.
*/
function assignMergeValue(object, key, value) {
if ((value !== undefined && !eq(object[key], value)) ||
(value === undefined && !(key in object))) {
baseAssignValue(object, key, value);
}
}
module.exports = assignMergeValue;
/***/ }),
/***/ "./node_modules/lodash/_assignValue.js":
/*!*********************************************!*\
!*** ./node_modules/lodash/_assignValue.js ***!
\*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "./node_modules/lodash/_baseAssignValue.js"),
eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js");
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/**
* Assigns `value` to `key` of `object` if the existing value is not equivalent
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
* for equality comparisons.
*
* @private
* @param {Object} object The object to modify.
* @param {string} key The key of the property to assign.
* @param {*} value The value to assign.
*/
function assignValue(object, key, value) {
var objValue = object[key];
if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
(value === undefined && !(key in object))) {
baseAssignValue(object, key, value);
}
}
module.exports = assignValue;
/***/ }),
/***/ "./node_modules/lodash/_assocIndexOf.js":
/*!**********************************************!*\
!*** ./node_modules/lodash/_assocIndexOf.js ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js");
/**
* Gets the index at which the `key` is found in `array` of key-value pairs.
*
* @private
* @param {Array} array The array to inspect.
* @param {*} key The key to search for.
* @returns {number} Returns the index of the matched value, else `-1`.
*/
function assocIndexOf(array, key) {
var length = array.length;
while (length--) {
if (eq(array[length][0], key)) {
return length;
}
}
return -1;
}
module.exports = assocIndexOf;
/***/ }),
/***/ "./node_modules/lodash/_baseAggregator.js":
/*!************************************************!*\
!*** ./node_modules/lodash/_baseAggregator.js ***!
\************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseEach = __webpack_require__(/*! ./_baseEach */ "./node_modules/lodash/_baseEach.js");
/**
* Aggregates elements of `collection` on `accumulator` with keys transformed
* by `iteratee` and values set by `setter`.
*
* @private
* @param {Array|Object} collection The collection to iterate over.
* @param {Function} setter The function to set `accumulator` values.
* @param {Function} iteratee The iteratee to transform keys.
* @param {Object} accumulator The initial aggregated object.
* @returns {Function} Returns `accumulator`.
*/
function baseAggregator(collection, setter, iteratee, accumulator) {
baseEach(collection, function(value, key, collection) {
setter(accumulator, value, iteratee(value), collection);
});
return accumulator;
}
module.exports = baseAggregator;
/***/ }),
/***/ "./node_modules/lodash/_baseAssign.js":
/*!********************************************!*\
!*** ./node_modules/lodash/_baseAssign.js ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");
/**
* The base implementation of `_.assign` without support for multiple sources
* or `customizer` functions.
*
* @private
* @param {Object} object The destination object.
* @param {Object} source The source object.
* @returns {Object} Returns `object`.
*/
function baseAssign(object, source) {
return object && copyObject(source, keys(source), object);
}
module.exports = baseAssign;
/***/ }),
/***/ "./node_modules/lodash/_baseAssignIn.js":
/*!**********************************************!*\
!*** ./node_modules/lodash/_baseAssignIn.js ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js");
/**
* The base implementation of `_.assignIn` without support for multiple sources
* or `customizer` functions.
*
* @private
* @param {Object} object The destination object.
* @param {Object} source The source object.
* @returns {Object} Returns `object`.
*/
function baseAssignIn(object, source) {
return object && copyObject(source, keysIn(source), object);
}
module.exports = baseAssignIn;
/***/ }),
/***/ "./node_modules/lodash/_baseAssignValue.js":
/*!*************************************************!*\
!*** ./node_modules/lodash/_baseAssignValue.js ***!
\*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var defineProperty = __webpack_require__(/*! ./_defineProperty */ "./node_modules/lodash/_defineProperty.js");
/**
* The base implementation of `assignValue` and `assignMergeValue` without
* value checks.
*
* @private
* @param {Object} object The object to modify.
* @param {string} key The key of the property to assign.
* @param {*} value The value to assign.
*/
function baseAssignValue(object, key, value) {
if (key == '__proto__' && defineProperty) {
defineProperty(object, key, {
'configurable': true,
'enumerable': true,
'value': value,
'writable': true
});
} else {
object[key] = value;
}
}
module.exports = baseAssignValue;
/***/ }),
/***/ "./node_modules/lodash/_baseClone.js":
/*!*******************************************!*\
!*** ./node_modules/lodash/_baseClone.js ***!
\*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var Stack = __webpack_require__(/*! ./_Stack */ "./node_modules/lodash/_Stack.js"),
arrayEach = __webpack_require__(/*! ./_arrayEach */ "./node_modules/lodash/_arrayEach.js"),
assignValue = __webpack_require__(/*! ./_assignValue */ "./node_modules/lodash/_assignValue.js"),
baseAssign = __webpack_require__(/*! ./_baseAssign */ "./node_modules/lodash/_baseAssign.js"),
baseAssignIn = __webpack_require__(/*! ./_baseAssignIn */ "./node_modules/lodash/_baseAssignIn.js"),
cloneBuffer = __webpack_require__(/*! ./_cloneBuffer */ "./node_modules/lodash/_cloneBuffer.js"),
copyArray = __webpack_require__(/*! ./_copyArray */ "./node_modules/lodash/_copyArray.js"),
copySymbols = __webpack_require__(/*! ./_copySymbols */ "./node_modules/lodash/_copySymbols.js"),
copySymbolsIn = __webpack_require__(/*! ./_copySymbolsIn */ "./node_modules/lodash/_copySymbolsIn.js"),
getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "./node_modules/lodash/_getAllKeys.js"),
getAllKeysIn = __webpack_require__(/*! ./_getAllKeysIn */ "./node_modules/lodash/_getAllKeysIn.js"),
getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
initCloneArray = __webpack_require__(/*! ./_initCloneArray */ "./node_modules/lodash/_initCloneArray.js"),
initCloneByTag = __webpack_require__(/*! ./_initCloneByTag */ "./node_modules/lodash/_initCloneByTag.js"),
initCloneObject = __webpack_require__(/*! ./_initCloneObject */ "./node_modules/lodash/_initCloneObject.js"),
isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
isMap = __webpack_require__(/*! ./isMap */ "./node_modules/lodash/isMap.js"),
isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
isSet = __webpack_require__(/*! ./isSet */ "./node_modules/lodash/isSet.js"),
keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js"),
keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js");
/** Used to compose bitmasks for cloning. */
var CLONE_DEEP_FLAG = 1,
CLONE_FLAT_FLAG = 2,
CLONE_SYMBOLS_FLAG = 4;
/** `Object#toString` result references. */
var argsTag = '[object Arguments]',
arrayTag = '[object Array]',
boolTag = '[object Boolean]',
dateTag = '[object Date]',
errorTag = '[object Error]',
funcTag = '[object Function]',
genTag = '[object GeneratorFunction]',
mapTag = '[object Map]',
numberTag = '[object Number]',
objectTag = '[object Object]',
regexpTag = '[object RegExp]',
setTag = '[object Set]',
stringTag = '[object String]',
symbolTag = '[object Symbol]',
weakMapTag = '[object WeakMap]';
var arrayBufferTag = '[object ArrayBuffer]',
dataViewTag = '[object DataView]',
float32Tag = '[object Float32Array]',
float64Tag = '[object Float64Array]',
int8Tag = '[object Int8Array]',
int16Tag = '[object Int16Array]',
int32Tag = '[object Int32Array]',
uint8Tag = '[object Uint8Array]',
uint8ClampedTag = '[object Uint8ClampedArray]',
uint16Tag = '[object Uint16Array]',
uint32Tag = '[object Uint32Array]';
/** Used to identify `toStringTag` values supported by `_.clone`. */
var cloneableTags = {};
cloneableTags[argsTag] = cloneableTags[arrayTag] =
cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
cloneableTags[boolTag] = cloneableTags[dateTag] =
cloneableTags[float32Tag] = cloneableTags[float64Tag] =
cloneableTags[int8Tag] = cloneableTags[int16Tag] =
cloneableTags[int32Tag] = cloneableTags[mapTag] =
cloneableTags[numberTag] = cloneableTags[objectTag] =
cloneableTags[regexpTag] = cloneableTags[setTag] =
cloneableTags[stringTag] = cloneableTags[symbolTag] =
cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
cloneableTags[errorTag] = cloneableTags[funcTag] =
cloneableTags[weakMapTag] = false;
/**
* The base implementation of `_.clone` and `_.cloneDeep` which tracks
* traversed objects.
*
* @private
* @param {*} value The value to clone.
* @param {boolean} bitmask The bitmask flags.
* 1 - Deep clone
* 2 - Flatten inherited properties
* 4 - Clone symbols
* @param {Function} [customizer] The function to customize cloning.
* @param {string} [key] The key of `value`.
* @param {Object} [object] The parent object of `value`.
* @param {Object} [stack] Tracks traversed objects and their clone counterparts.
* @returns {*} Returns the cloned value.
*/
function baseClone(value, bitmask, customizer, key, object, stack) {
var result,
isDeep = bitmask & CLONE_DEEP_FLAG,
isFlat = bitmask & CLONE_FLAT_FLAG,
isFull = bitmask & CLONE_SYMBOLS_FLAG;
if (customizer) {
result = object ? customizer(value, key, object, stack) : customizer(value);
}
if (result !== undefined) {
return result;
}
if (!isObject(value)) {
return value;
}
var isArr = isArray(value);
if (isArr) {
result = initCloneArray(value);
if (!isDeep) {
return copyArray(value, result);
}
} else {
var tag = getTag(value),
isFunc = tag == funcTag || tag == genTag;
if (isBuffer(value)) {
return cloneBuffer(value, isDeep);
}
if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
result = (isFlat || isFunc) ? {} : initCloneObject(value);
if (!isDeep) {
return isFlat
? copySymbolsIn(value, baseAssignIn(result, value))
: copySymbols(value, baseAssign(result, value));
}
} else {
if (!cloneableTags[tag]) {
return object ? value : {};
}
result = initCloneByTag(value, tag, isDeep);
}
}
// Check for circular references and return its corresponding clone.
stack || (stack = new Stack);
var stacked = stack.get(value);
if (stacked) {
return stacked;
}
stack.set(value, result);
if (isSet(value)) {
value.forEach(function(subValue) {
result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
});
} else if (isMap(value)) {
value.forEach(function(subValue, key) {
result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
});
}
var keysFunc = isFull
? (isFlat ? getAllKeysIn : getAllKeys)
: (isFlat ? keysIn : keys);
var props = isArr ? undefined : keysFunc(value);
arrayEach(props || value, function(subValue, key) {
if (props) {
key = subValue;
subValue = value[key];
}
// Recursively populate clone (susceptible to call stack limits).
assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
});
return result;
}
module.exports = baseClone;
/***/ }),
/***/ "./node_modules/lodash/_baseCreate.js":
/*!********************************************!*\
!*** ./node_modules/lodash/_baseCreate.js ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");
/** Built-in value references. */
var objectCreate = Object.create;
/**
* The base implementation of `_.create` without support for assigning
* properties to the created object.
*
* @private
* @param {Object} proto The object to inherit from.
* @returns {Object} Returns the new object.
*/
var baseCreate = (function() {
function object() {}
return function(proto) {
if (!isObject(proto)) {
return {};
}
if (objectCreate) {
return objectCreate(proto);
}
object.prototype = proto;
var result = new object;
object.prototype = undefined;
return result;
};
}());
module.exports = baseCreate;
/***/ }),
/***/ "./node_modules/lodash/_baseEach.js":
/*!******************************************!*\
!*** ./node_modules/lodash/_baseEach.js ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "./node_modules/lodash/_baseForOwn.js"),
createBaseEach = __webpack_require__(/*! ./_createBaseEach */ "./node_modules/lodash/_createBaseEach.js");
/**
* The base implementation of `_.forEach` without support for iteratee shorthands.
*
* @private
* @param {Array|Object} collection The collection to iterate over.
* @param {Function} iteratee The function invoked per iteration.
* @returns {Array|Object} Returns `collection`.
*/
var baseEach = createBaseEach(baseForOwn);
module.exports = baseEach;
/***/ }),
/***/ "./node_modules/lodash/_baseFindIndex.js":
/*!***********************************************!*\
!*** ./node_modules/lodash/_baseFindIndex.js ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* The base implementation of `_.findIndex` and `_.findLastIndex` without
* support for iteratee shorthands.
*
* @private
* @param {Array} array The array to inspect.
* @param {Function} predicate The function invoked per iteration.
* @param {number} fromIndex The index to search from.
* @param {boolean} [fromRight] Specify iterating from right to left.
* @returns {number} Returns the index of the matched value, else `-1`.
*/
function baseFindIndex(array, predicate, fromIndex, fromRight) {
var length = array.length,
index = fromIndex + (fromRight ? 1 : -1);
while ((fromRight ? index-- : ++index < length)) {
if (predicate(array[index], index, array)) {
return index;
}
}
return -1;
}
module.exports = baseFindIndex;
/***/ }),
/***/ "./node_modules/lodash/_baseFlatten.js":
/*!*********************************************!*\
!*** ./node_modules/lodash/_baseFlatten.js ***!
\*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var arrayPush = __webpack_require__(/*! ./_arrayPush */ "./node_modules/lodash/_arrayPush.js"),
isFlattenable = __webpack_require__(/*! ./_isFlattenable */ "./node_modules/lodash/_isFlattenable.js");
/**
* The base implementation of `_.flatten` with support for restricting flattening.
*
* @private
* @param {Array} array The array to flatten.
* @param {number} depth The maximum recursion depth.
* @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
* @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
* @param {Array} [result=[]] The initial result value.
* @returns {Array} Returns the new flattened array.
*/
function baseFlatten(array, depth, predicate, isStrict, result) {
var index = -1,
length = array.length;
predicate || (predicate = isFlattenable);
result || (result = []);
while (++index < length) {
var value = array[index];
if (depth > 0 && predicate(value)) {
if (depth > 1) {
// Recursively flatten arrays (susceptible to call stack limits).
baseFlatten(value, depth - 1, predicate, isStrict, result);
} else {
arrayPush(result, value);
}
} else if (!isStrict) {
result[result.length] = value;
}
}
return result;
}
module.exports = baseFlatten;
/***/ }),
/***/ "./node_modules/lodash/_baseFor.js":
/*!*****************************************!*\
!*** ./node_modules/lodash/_baseFor.js ***!
\*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var createBaseFor = __webpack_require__(/*! ./_createBaseFor */ "./node_modules/lodash/_createBaseFor.js");
/**
* The base implementation of `baseForOwn` which iterates over `object`
* properties returned by `keysFunc` and invokes `iteratee` for each property.
* Iteratee functions may exit iteration early by explicitly returning `false`.
*
* @private
* @param {Object} object The object to iterate over.
* @param {Function} iteratee The function invoked per iteration.
* @param {Function} keysFunc The function to get the keys of `object`.
* @returns {Object} Returns `object`.
*/
var baseFor = createBaseFor();
module.exports = baseFor;
/***/ }),
/***/ "./node_modules/lodash/_baseForOwn.js":
/*!********************************************!*\
!*** ./node_modules/lodash/_baseForOwn.js ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseFor = __webpack_require__(/*! ./_baseFor */ "./node_modules/lodash/_baseFor.js"),
keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");
/**
* The base implementation of `_.forOwn` without support for iteratee shorthands.
*
* @private
* @param {Object} object The object to iterate over.
* @param {Function} iteratee The function invoked per iteration.
* @returns {Object} Returns `object`.
*/
function baseForOwn(object, iteratee) {
return object && baseFor(object, iteratee, keys);
}
module.exports = baseForOwn;
/***/ }),
/***/ "./node_modules/lodash/_baseGet.js":
/*!*****************************************!*\
!*** ./node_modules/lodash/_baseGet.js ***!
\*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");
/**
* The base implementation of `_.get` without support for default values.
*
* @private
* @param {Object} object The object to query.
* @param {Array|string} path The path of the property to get.
* @returns {*} Returns the resolved value.
*/
function baseGet(object, path) {
path = castPath(path, object);
var index = 0,
length = path.length;
while (object != null && index < length) {
object = object[toKey(path[index++])];
}
return (index && index == length) ? object : undefined;
}
module.exports = baseGet;
/***/ }),
/***/ "./node_modules/lodash/_baseGetAllKeys.js":
/*!************************************************!*\
!*** ./node_modules/lodash/_baseGetAllKeys.js ***!
\************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var arrayPush = __webpack_require__(/*! ./_arrayPush */ "./node_modules/lodash/_arrayPush.js"),
isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js");
/**
* The base implementation of `getAllKeys` and `getAllKeysIn` which uses
* `keysFunc` and `symbolsFunc` to get the enumerable property names and
* symbols of `object`.
*
* @private
* @param {Object} object The object to query.
* @param {Function} keysFunc The function to get the keys of `object`.
* @param {Function} symbolsFunc The function to get the symbols of `object`.
* @returns {Array} Returns the array of property names and symbols.
*/
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
var result = keysFunc(object);
return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
}
module.exports = baseGetAllKeys;
/***/ }),
/***/ "./node_modules/lodash/_baseGetTag.js":
/*!********************************************!*\
!*** ./node_modules/lodash/_baseGetTag.js ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
getRawTag = __webpack_require__(/*! ./_getRawTag */ "./node_modules/lodash/_getRawTag.js"),
objectToString = __webpack_require__(/*! ./_objectToString */ "./node_modules/lodash/_objectToString.js");
/** `Object#toString` result references. */
var nullTag = '[object Null]',
undefinedTag = '[object Undefined]';
/** Built-in value references. */
var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
/**
* The base implementation of `getTag` without fallbacks for buggy environments.
*
* @private
* @param {*} value The value to query.
* @returns {string} Returns the `toStringTag`.
*/
function baseGetTag(value) {
if (value == null) {
return value === undefined ? undefinedTag : nullTag;
}
return (symToStringTag && symToStringTag in Object(value))
? getRawTag(value)
: objectToString(value);
}
module.exports = baseGetTag;
/***/ }),
/***/ "./node_modules/lodash/_baseHas.js":
/*!*****************************************!*\
!*** ./node_modules/lodash/_baseHas.js ***!
\*****************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/**
* The base implementation of `_.has` without support for deep paths.
*
* @private
* @param {Object} [object] The object to query.
* @param {Array|string} key The key to check.
* @returns {boolean} Returns `true` if `key` exists, else `false`.
*/
function baseHas(object, key) {
return object != null && hasOwnProperty.call(object, key);
}
module.exports = baseHas;
/***/ }),
/***/ "./node_modules/lodash/_baseHasIn.js":
/*!*******************************************!*\
!*** ./node_modules/lodash/_baseHasIn.js ***!
\*******************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* The base implementation of `_.hasIn` without support for deep paths.
*
* @private
* @param {Object} [object] The object to query.
* @param {Array|string} key The key to check.
* @returns {boolean} Returns `true` if `key` exists, else `false`.
*/
function baseHasIn(object, key) {
return object != null && key in Object(object);
}
module.exports = baseHasIn;
/***/ }),
/***/ "./node_modules/lodash/_baseIndexOf.js":
/*!*********************************************!*\
!*** ./node_modules/lodash/_baseIndexOf.js ***!
\*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseFindIndex = __webpack_require__(/*! ./_baseFindIndex */ "./node_modules/lodash/_baseFindIndex.js"),
baseIsNaN = __webpack_require__(/*! ./_baseIsNaN */ "./node_modules/lodash/_baseIsNaN.js"),
strictIndexOf = __webpack_require__(/*! ./_strictIndexOf */ "./node_modules/lodash/_strictIndexOf.js");
/**
* The base implementation of `_.indexOf` without `fromIndex` bounds checks.
*
* @private
* @param {Array} array The array to inspect.
* @param {*} value The value to search for.
* @param {number} fromIndex The index to search from.
* @returns {number} Returns the index of the matched value, else `-1`.
*/
function baseIndexOf(array, value, fromIndex) {
return value === value
? strictIndexOf(array, value, fromIndex)
: baseFindIndex(array, baseIsNaN, fromIndex);
}
module.exports = baseIndexOf;
/***/ }),
/***/ "./node_modules/lodash/_baseIsArguments.js":
/*!*************************************************!*\
!*** ./node_modules/lodash/_baseIsArguments.js ***!
\*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
/** `Object#toString` result references. */
var argsTag = '[object Arguments]';
/**
* The base implementation of `_.isArguments`.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
*/
function baseIsArguments(value) {
return isObjectLike(value) && baseGetTag(value) == argsTag;
}
module.exports = baseIsArguments;
/***/ }),
/***/ "./node_modules/lodash/_baseIsEqual.js":
/*!*********************************************!*\
!*** ./node_modules/lodash/_baseIsEqual.js ***!
\*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseIsEqualDeep = __webpack_require__(/*! ./_baseIsEqualDeep */ "./node_modules/lodash/_baseIsEqualDeep.js"),
isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
/**
* The base implementation of `_.isEqual` which supports partial comparisons
* and tracks traversed objects.
*
* @private
* @param {*} value The value to compare.
* @param {*} other The other value to compare.
* @param {boolean} bitmask The bitmask flags.
* 1 - Unordered comparison
* 2 - Partial comparison
* @param {Function} [customizer] The function to customize comparisons.
* @param {Object} [stack] Tracks traversed `value` and `other` objects.
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
*/
function baseIsEqual(value, other, bitmask, customizer, stack) {
if (value === other) {
return true;
}
if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
return value !== value && other !== other;
}
return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
}
module.exports = baseIsEqual;
/***/ }),
/***/ "./node_modules/lodash/_baseIsEqualDeep.js":
/*!*************************************************!*\
!*** ./node_modules/lodash/_baseIsEqualDeep.js ***!
\*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var Stack = __webpack_require__(/*! ./_Stack */ "./node_modules/lodash/_Stack.js"),
equalArrays = __webpack_require__(/*! ./_equalArrays */ "./node_modules/lodash/_equalArrays.js"),
equalByTag = __webpack_require__(/*! ./_equalByTag */ "./node_modules/lodash/_equalByTag.js"),
equalObjects = __webpack_require__(/*! ./_equalObjects */ "./node_modules/lodash/_equalObjects.js"),
getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
isTypedArray = __webpack_require__(/*! ./isTypedArray */ "./node_modules/lodash/isTypedArray.js");
/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1;
/** `Object#toString` result references. */
var argsTag = '[object Arguments]',
arrayTag = '[object Array]',
objectTag = '[object Object]';
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/**
* A specialized version of `baseIsEqual` for arrays and objects which performs
* deep comparisons and tracks traversed objects enabling objects with circular
* references to be compared.
*
* @private
* @param {Object} object The object to compare.
* @param {Object} other The other object to compare.
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
* @param {Function} customizer The function to customize comparisons.
* @param {Function} equalFunc The function to determine equivalents of values.
* @param {Object} [stack] Tracks traversed `object` and `other` objects.
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
*/
function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
var objIsArr = isArray(object),
othIsArr = isArray(other),
objTag = objIsArr ? arrayTag : getTag(object),
othTag = othIsArr ? arrayTag : getTag(other);
objTag = objTag == argsTag ? objectTag : objTag;
othTag = othTag == argsTag ? objectTag : othTag;
var objIsObj = objTag == objectTag,
othIsObj = othTag == objectTag,
isSameTag = objTag == othTag;
if (isSameTag && isBuffer(object)) {
if (!isBuffer(other)) {
return false;
}
objIsArr = true;
objIsObj = false;
}
if (isSameTag && !objIsObj) {
stack || (stack = new Stack);
return (objIsArr || isTypedArray(object))
? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
: equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
}
if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
if (objIsWrapped || othIsWrapped) {
var objUnwrapped = objIsWrapped ? object.value() : object,
othUnwrapped = othIsWrapped ? other.value() : other;
stack || (stack = new Stack);
return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
}
}
if (!isSameTag) {
return false;
}
stack || (stack = new Stack);
return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
}
module.exports = baseIsEqualDeep;
/***/ }),
/***/ "./node_modules/lodash/_baseIsMap.js":
/*!*******************************************!*\
!*** ./node_modules/lodash/_baseIsMap.js ***!
\*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
/** `Object#toString` result references. */
var mapTag = '[object Map]';
/**
* The base implementation of `_.isMap` without Node.js optimizations.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a map, else `false`.
*/
function baseIsMap(value) {
return isObjectLike(value) && getTag(value) == mapTag;
}
module.exports = baseIsMap;
/***/ }),
/***/ "./node_modules/lodash/_baseIsMatch.js":
/*!*********************************************!*\
!*** ./node_modules/lodash/_baseIsMatch.js ***!
\*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var Stack = __webpack_require__(/*! ./_Stack */ "./node_modules/lodash/_Stack.js"),
baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "./node_modules/lodash/_baseIsEqual.js");
/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1,
COMPARE_UNORDERED_FLAG = 2;
/**
* The base implementation of `_.isMatch` without support for iteratee shorthands.
*
* @private
* @param {Object} object The object to inspect.
* @param {Object} source The object of property values to match.
* @param {Array} matchData The property names, values, and compare flags to match.
* @param {Function} [customizer] The function to customize comparisons.
* @returns {boolean} Returns `true` if `object` is a match, else `false`.
*/
function baseIsMatch(object, source, matchData, customizer) {
var index = matchData.length,
length = index,
noCustomizer = !customizer;
if (object == null) {
return !length;
}
object = Object(object);
while (index--) {
var data = matchData[index];
if ((noCustomizer && data[2])
? data[1] !== object[data[0]]
: !(data[0] in object)
) {
return false;
}
}
while (++index < length) {
data = matchData[index];
var key = data[0],
objValue = object[key],
srcValue = data[1];
if (noCustomizer && data[2]) {
if (objValue === undefined && !(key in object)) {
return false;
}
} else {
var stack = new Stack;
if (customizer) {
var result = customizer(objValue, srcValue, key, object, source, stack);
}
if (!(result === undefined
? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
: result
)) {
return false;
}
}
}
return true;
}
module.exports = baseIsMatch;
/***/ }),
/***/ "./node_modules/lodash/_baseIsNaN.js":
/*!*******************************************!*\
!*** ./node_modules/lodash/_baseIsNaN.js ***!
\*******************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* The base implementation of `_.isNaN` without support for number objects.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
*/
function baseIsNaN(value) {
return value !== value;
}
module.exports = baseIsNaN;
/***/ }),
/***/ "./node_modules/lodash/_baseIsNative.js":
/*!**********************************************!*\
!*** ./node_modules/lodash/_baseIsNative.js ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var isFunction = __webpack_require__(/*! ./isFunction */ "./node_modules/lodash/isFunction.js"),
isMasked = __webpack_require__(/*! ./_isMasked */ "./node_modules/lodash/_isMasked.js"),
isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
toSource = __webpack_require__(/*! ./_toSource */ "./node_modules/lodash/_toSource.js");
/**
* Used to match `RegExp`
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
*/
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
/** Used to detect host constructors (Safari). */
var reIsHostCtor = /^\[object .+?Constructor\]$/;
/** Used for built-in method references. */
var funcProto = Function.prototype,
objectProto = Object.prototype;
/** Used to resolve the decompiled source of functions. */
var funcToString = funcProto.toString;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/** Used to detect if a method is native. */
var reIsNative = RegExp('^' +
funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
);
/**
* The base implementation of `_.isNative` without bad shim checks.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a native function,
* else `false`.
*/
function baseIsNative(value) {
if (!isObject(value) || isMasked(value)) {
return false;
}
var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
return pattern.test(toSource(value));
}
module.exports = baseIsNative;
/***/ }),
/***/ "./node_modules/lodash/_baseIsRegExp.js":
/*!**********************************************!*\
!*** ./node_modules/lodash/_baseIsRegExp.js ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
/** `Object#toString` result references. */
var regexpTag = '[object RegExp]';
/**
* The base implementation of `_.isRegExp` without Node.js optimizations.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
*/
function baseIsRegExp(value) {
return isObjectLike(value) && baseGetTag(value) == regexpTag;
}
module.exports = baseIsRegExp;
/***/ }),
/***/ "./node_modules/lodash/_baseIsSet.js":
/*!*******************************************!*\
!*** ./node_modules/lodash/_baseIsSet.js ***!
\*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var getTag = __webpack_require__(/*! ./_getTag */ "./node_modules/lodash/_getTag.js"),
isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
/** `Object#toString` result references. */
var setTag = '[object Set]';
/**
* The base implementation of `_.isSet` without Node.js optimizations.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a set, else `false`.
*/
function baseIsSet(value) {
return isObjectLike(value) && getTag(value) == setTag;
}
module.exports = baseIsSet;
/***/ }),
/***/ "./node_modules/lodash/_baseIsTypedArray.js":
/*!**************************************************!*\
!*** ./node_modules/lodash/_baseIsTypedArray.js ***!
\**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
isLength = __webpack_require__(/*! ./isLength */ "./node_modules/lodash/isLength.js"),
isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
/** `Object#toString` result references. */
var argsTag = '[object Arguments]',
arrayTag = '[object Array]',
boolTag = '[object Boolean]',
dateTag = '[object Date]',
errorTag = '[object Error]',
funcTag = '[object Function]',
mapTag = '[object Map]',
numberTag = '[object Number]',
objectTag = '[object Object]',
regexpTag = '[object RegExp]',
setTag = '[object Set]',
stringTag = '[object String]',
weakMapTag = '[object WeakMap]';
var arrayBufferTag = '[object ArrayBuffer]',
dataViewTag = '[object DataView]',
float32Tag = '[object Float32Array]',
float64Tag = '[object Float64Array]',
int8Tag = '[object Int8Array]',
int16Tag = '[object Int16Array]',
int32Tag = '[object Int32Array]',
uint8Tag = '[object Uint8Array]',
uint8ClampedTag = '[object Uint8ClampedArray]',
uint16Tag = '[object Uint16Array]',
uint32Tag = '[object Uint32Array]';
/** Used to identify `toStringTag` values of typed arrays. */
var typedArrayTags = {};
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
typedArrayTags[uint32Tag] = true;
typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
typedArrayTags[errorTag] = typedArrayTags[funcTag] =
typedArrayTags[mapTag] = typedArrayTags[numberTag] =
typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
typedArrayTags[setTag] = typedArrayTags[stringTag] =
typedArrayTags[weakMapTag] = false;
/**
* The base implementation of `_.isTypedArray` without Node.js optimizations.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
*/
function baseIsTypedArray(value) {
return isObjectLike(value) &&
isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
}
module.exports = baseIsTypedArray;
/***/ }),
/***/ "./node_modules/lodash/_baseIteratee.js":
/*!**********************************************!*\
!*** ./node_modules/lodash/_baseIteratee.js ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseMatches = __webpack_require__(/*! ./_baseMatches */ "./node_modules/lodash/_baseMatches.js"),
baseMatchesProperty = __webpack_require__(/*! ./_baseMatchesProperty */ "./node_modules/lodash/_baseMatchesProperty.js"),
identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js"),
isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
property = __webpack_require__(/*! ./property */ "./node_modules/lodash/property.js");
/**
* The base implementation of `_.iteratee`.
*
* @private
* @param {*} [value=_.identity] The value to convert to an iteratee.
* @returns {Function} Returns the iteratee.
*/
function baseIteratee(value) {
// Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
// See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
if (typeof value == 'function') {
return value;
}
if (value == null) {
return identity;
}
if (typeof value == 'object') {
return isArray(value)
? baseMatchesProperty(value[0], value[1])
: baseMatches(value);
}
return property(value);
}
module.exports = baseIteratee;
/***/ }),
/***/ "./node_modules/lodash/_baseKeys.js":
/*!******************************************!*\
!*** ./node_modules/lodash/_baseKeys.js ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var isPrototype = __webpack_require__(/*! ./_isPrototype */ "./node_modules/lodash/_isPrototype.js"),
nativeKeys = __webpack_require__(/*! ./_nativeKeys */ "./node_modules/lodash/_nativeKeys.js");
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/**
* The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
*
* @private
* @param {Object} object The object to query.
* @returns {Array} Returns the array of property names.
*/
function baseKeys(object) {
if (!isPrototype(object)) {
return nativeKeys(object);
}
var result = [];
for (var key in Object(object)) {
if (hasOwnProperty.call(object, key) && key != 'constructor') {
result.push(key);
}
}
return result;
}
module.exports = baseKeys;
/***/ }),
/***/ "./node_modules/lodash/_baseKeysIn.js":
/*!********************************************!*\
!*** ./node_modules/lodash/_baseKeysIn.js ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
isPrototype = __webpack_require__(/*! ./_isPrototype */ "./node_modules/lodash/_isPrototype.js"),
nativeKeysIn = __webpack_require__(/*! ./_nativeKeysIn */ "./node_modules/lodash/_nativeKeysIn.js");
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/**
* The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
*
* @private
* @param {Object} object The object to query.
* @returns {Array} Returns the array of property names.
*/
function baseKeysIn(object) {
if (!isObject(object)) {
return nativeKeysIn(object);
}
var isProto = isPrototype(object),
result = [];
for (var key in object) {
if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
result.push(key);
}
}
return result;
}
module.exports = baseKeysIn;
/***/ }),
/***/ "./node_modules/lodash/_baseMatches.js":
/*!*********************************************!*\
!*** ./node_modules/lodash/_baseMatches.js ***!
\*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseIsMatch = __webpack_require__(/*! ./_baseIsMatch */ "./node_modules/lodash/_baseIsMatch.js"),
getMatchData = __webpack_require__(/*! ./_getMatchData */ "./node_modules/lodash/_getMatchData.js"),
matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ "./node_modules/lodash/_matchesStrictComparable.js");
/**
* The base implementation of `_.matches` which doesn't clone `source`.
*
* @private
* @param {Object} source The object of property values to match.
* @returns {Function} Returns the new spec function.
*/
function baseMatches(source) {
var matchData = getMatchData(source);
if (matchData.length == 1 && matchData[0][2]) {
return matchesStrictComparable(matchData[0][0], matchData[0][1]);
}
return function(object) {
return object === source || baseIsMatch(object, source, matchData);
};
}
module.exports = baseMatches;
/***/ }),
/***/ "./node_modules/lodash/_baseMatchesProperty.js":
/*!*****************************************************!*\
!*** ./node_modules/lodash/_baseMatchesProperty.js ***!
\*****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "./node_modules/lodash/_baseIsEqual.js"),
get = __webpack_require__(/*! ./get */ "./node_modules/lodash/get.js"),
hasIn = __webpack_require__(/*! ./hasIn */ "./node_modules/lodash/hasIn.js"),
isKey = __webpack_require__(/*! ./_isKey */ "./node_modules/lodash/_isKey.js"),
isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ "./node_modules/lodash/_isStrictComparable.js"),
matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ "./node_modules/lodash/_matchesStrictComparable.js"),
toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");
/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1,
COMPARE_UNORDERED_FLAG = 2;
/**
* The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
*
* @private
* @param {string} path The path of the property to get.
* @param {*} srcValue The value to match.
* @returns {Function} Returns the new spec function.
*/
function baseMatchesProperty(path, srcValue) {
if (isKey(path) && isStrictComparable(srcValue)) {
return matchesStrictComparable(toKey(path), srcValue);
}
return function(object) {
var objValue = get(object, path);
return (objValue === undefined && objValue === srcValue)
? hasIn(object, path)
: baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
};
}
module.exports = baseMatchesProperty;
/***/ }),
/***/ "./node_modules/lodash/_baseMerge.js":
/*!*******************************************!*\
!*** ./node_modules/lodash/_baseMerge.js ***!
\*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var Stack = __webpack_require__(/*! ./_Stack */ "./node_modules/lodash/_Stack.js"),
assignMergeValue = __webpack_require__(/*! ./_assignMergeValue */ "./node_modules/lodash/_assignMergeValue.js"),
baseFor = __webpack_require__(/*! ./_baseFor */ "./node_modules/lodash/_baseFor.js"),
baseMergeDeep = __webpack_require__(/*! ./_baseMergeDeep */ "./node_modules/lodash/_baseMergeDeep.js"),
isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js"),
safeGet = __webpack_require__(/*! ./_safeGet */ "./node_modules/lodash/_safeGet.js");
/**
* The base implementation of `_.merge` without support for multiple sources.
*
* @private
* @param {Object} object The destination object.
* @param {Object} source The source object.
* @param {number} srcIndex The index of `source`.
* @param {Function} [customizer] The function to customize merged values.
* @param {Object} [stack] Tracks traversed source values and their merged
* counterparts.
*/
function baseMerge(object, source, srcIndex, customizer, stack) {
if (object === source) {
return;
}
baseFor(source, function(srcValue, key) {
stack || (stack = new Stack);
if (isObject(srcValue)) {
baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
}
else {
var newValue = customizer
? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
: undefined;
if (newValue === undefined) {
newValue = srcValue;
}
assignMergeValue(object, key, newValue);
}
}, keysIn);
}
module.exports = baseMerge;
/***/ }),
/***/ "./node_modules/lodash/_baseMergeDeep.js":
/*!***********************************************!*\
!*** ./node_modules/lodash/_baseMergeDeep.js ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var assignMergeValue = __webpack_require__(/*! ./_assignMergeValue */ "./node_modules/lodash/_assignMergeValue.js"),
cloneBuffer = __webpack_require__(/*! ./_cloneBuffer */ "./node_modules/lodash/_cloneBuffer.js"),
cloneTypedArray = __webpack_require__(/*! ./_cloneTypedArray */ "./node_modules/lodash/_cloneTypedArray.js"),
copyArray = __webpack_require__(/*! ./_copyArray */ "./node_modules/lodash/_copyArray.js"),
initCloneObject = __webpack_require__(/*! ./_initCloneObject */ "./node_modules/lodash/_initCloneObject.js"),
isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"),
isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "./node_modules/lodash/isArrayLikeObject.js"),
isBuffer = __webpack_require__(/*! ./isBuffer */ "./node_modules/lodash/isBuffer.js"),
isFunction = __webpack_require__(/*! ./isFunction */ "./node_modules/lodash/isFunction.js"),
isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
isPlainObject = __webpack_require__(/*! ./isPlainObject */ "./node_modules/lodash/isPlainObject.js"),
isTypedArray = __webpack_require__(/*! ./isTypedArray */ "./node_modules/lodash/isTypedArray.js"),
safeGet = __webpack_require__(/*! ./_safeGet */ "./node_modules/lodash/_safeGet.js"),
toPlainObject = __webpack_require__(/*! ./toPlainObject */ "./node_modules/lodash/toPlainObject.js");
/**
* A specialized version of `baseMerge` for arrays and objects which performs
* deep merges and tracks traversed objects enabling objects with circular
* references to be merged.
*
* @private
* @param {Object} object The destination object.
* @param {Object} source The source object.
* @param {string} key The key of the value to merge.
* @param {number} srcIndex The index of `source`.
* @param {Function} mergeFunc The function to merge values.
* @param {Function} [customizer] The function to customize assigned values.
* @param {Object} [stack] Tracks traversed source values and their merged
* counterparts.
*/
function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
var objValue = safeGet(object, key),
srcValue = safeGet(source, key),
stacked = stack.get(srcValue);
if (stacked) {
assignMergeValue(object, key, stacked);
return;
}
var newValue = customizer
? customizer(objValue, srcValue, (key + ''), object, source, stack)
: undefined;
var isCommon = newValue === undefined;
if (isCommon) {
var isArr = isArray(srcValue),
isBuff = !isArr && isBuffer(srcValue),
isTyped = !isArr && !isBuff && isTypedArray(srcValue);
newValue = srcValue;
if (isArr || isBuff || isTyped) {
if (isArray(objValue)) {
newValue = objValue;
}
else if (isArrayLikeObject(objValue)) {
newValue = copyArray(objValue);
}
else if (isBuff) {
isCommon = false;
newValue = cloneBuffer(srcValue, true);
}
else if (isTyped) {
isCommon = false;
newValue = cloneTypedArray(srcValue, true);
}
else {
newValue = [];
}
}
else if (isPlainObject(srcValue) || isArguments(srcValue)) {
newValue = objValue;
if (isArguments(objValue)) {
newValue = toPlainObject(objValue);
}
else if (!isObject(objValue) || isFunction(objValue)) {
newValue = initCloneObject(srcValue);
}
}
else {
isCommon = false;
}
}
if (isCommon) {
// Recursively merge objects and arrays (susceptible to call stack limits).
stack.set(srcValue, newValue);
mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
stack['delete'](srcValue);
}
assignMergeValue(object, key, newValue);
}
module.exports = baseMergeDeep;
/***/ }),
/***/ "./node_modules/lodash/_basePick.js":
/*!******************************************!*\
!*** ./node_modules/lodash/_basePick.js ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var basePickBy = __webpack_require__(/*! ./_basePickBy */ "./node_modules/lodash/_basePickBy.js"),
hasIn = __webpack_require__(/*! ./hasIn */ "./node_modules/lodash/hasIn.js");
/**
* The base implementation of `_.pick` without support for individual
* property identifiers.
*
* @private
* @param {Object} object The source object.
* @param {string[]} paths The property paths to pick.
* @returns {Object} Returns the new object.
*/
function basePick(object, paths) {
return basePickBy(object, paths, function(value, path) {
return hasIn(object, path);
});
}
module.exports = basePick;
/***/ }),
/***/ "./node_modules/lodash/_basePickBy.js":
/*!********************************************!*\
!*** ./node_modules/lodash/_basePickBy.js ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseGet = __webpack_require__(/*! ./_baseGet */ "./node_modules/lodash/_baseGet.js"),
baseSet = __webpack_require__(/*! ./_baseSet */ "./node_modules/lodash/_baseSet.js"),
castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js");
/**
* The base implementation of `_.pickBy` without support for iteratee shorthands.
*
* @private
* @param {Object} object The source object.
* @param {string[]} paths The property paths to pick.
* @param {Function} predicate The function invoked per property.
* @returns {Object} Returns the new object.
*/
function basePickBy(object, paths, predicate) {
var index = -1,
length = paths.length,
result = {};
while (++index < length) {
var path = paths[index],
value = baseGet(object, path);
if (predicate(value, path)) {
baseSet(result, castPath(path, object), value);
}
}
return result;
}
module.exports = basePickBy;
/***/ }),
/***/ "./node_modules/lodash/_baseProperty.js":
/*!**********************************************!*\
!*** ./node_modules/lodash/_baseProperty.js ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* The base implementation of `_.property` without support for deep paths.
*
* @private
* @param {string} key The key of the property to get.
* @returns {Function} Returns the new accessor function.
*/
function baseProperty(key) {
return function(object) {
return object == null ? undefined : object[key];
};
}
module.exports = baseProperty;
/***/ }),
/***/ "./node_modules/lodash/_basePropertyDeep.js":
/*!**************************************************!*\
!*** ./node_modules/lodash/_basePropertyDeep.js ***!
\**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseGet = __webpack_require__(/*! ./_baseGet */ "./node_modules/lodash/_baseGet.js");
/**
* A specialized version of `baseProperty` which supports deep paths.
*
* @private
* @param {Array|string} path The path of the property to get.
* @returns {Function} Returns the new accessor function.
*/
function basePropertyDeep(path) {
return function(object) {
return baseGet(object, path);
};
}
module.exports = basePropertyDeep;
/***/ }),
/***/ "./node_modules/lodash/_baseRepeat.js":
/*!********************************************!*\
!*** ./node_modules/lodash/_baseRepeat.js ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/** Used as references for various `Number` constants. */
var MAX_SAFE_INTEGER = 9007199254740991;
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeFloor = Math.floor;
/**
* The base implementation of `_.repeat` which doesn't coerce arguments.
*
* @private
* @param {string} string The string to repeat.
* @param {number} n The number of times to repeat the string.
* @returns {string} Returns the repeated string.
*/
function baseRepeat(string, n) {
var result = '';
if (!string || n < 1 || n > MAX_SAFE_INTEGER) {
return result;
}
// Leverage the exponentiation by squaring algorithm for a faster repeat.
// See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.
do {
if (n % 2) {
result += string;
}
n = nativeFloor(n / 2);
if (n) {
string += string;
}
} while (n);
return result;
}
module.exports = baseRepeat;
/***/ }),
/***/ "./node_modules/lodash/_baseRest.js":
/*!******************************************!*\
!*** ./node_modules/lodash/_baseRest.js ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js"),
overRest = __webpack_require__(/*! ./_overRest */ "./node_modules/lodash/_overRest.js"),
setToString = __webpack_require__(/*! ./_setToString */ "./node_modules/lodash/_setToString.js");
/**
* The base implementation of `_.rest` which doesn't validate or coerce arguments.
*
* @private
* @param {Function} func The function to apply a rest parameter to.
* @param {number} [start=func.length-1] The start position of the rest parameter.
* @returns {Function} Returns the new function.
*/
function baseRest(func, start) {
return setToString(overRest(func, start, identity), func + '');
}
module.exports = baseRest;
/***/ }),
/***/ "./node_modules/lodash/_baseSet.js":
/*!*****************************************!*\
!*** ./node_modules/lodash/_baseSet.js ***!
\*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var assignValue = __webpack_require__(/*! ./_assignValue */ "./node_modules/lodash/_assignValue.js"),
castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
isIndex = __webpack_require__(/*! ./_isIndex */ "./node_modules/lodash/_isIndex.js"),
isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");
/**
* The base implementation of `_.set`.
*
* @private
* @param {Object} object The object to modify.
* @param {Array|string} path The path of the property to set.
* @param {*} value The value to set.
* @param {Function} [customizer] The function to customize path creation.
* @returns {Object} Returns `object`.
*/
function baseSet(object, path, value, customizer) {
if (!isObject(object)) {
return object;
}
path = castPath(path, object);
var index = -1,
length = path.length,
lastIndex = length - 1,
nested = object;
while (nested != null && ++index < length) {
var key = toKey(path[index]),
newValue = value;
if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
return object;
}
if (index != lastIndex) {
var objValue = nested[key];
newValue = customizer ? customizer(objValue, key, nested) : undefined;
if (newValue === undefined) {
newValue = isObject(objValue)
? objValue
: (isIndex(path[index + 1]) ? [] : {});
}
}
assignValue(nested, key, newValue);
nested = nested[key];
}
return object;
}
module.exports = baseSet;
/***/ }),
/***/ "./node_modules/lodash/_baseSetToString.js":
/*!*************************************************!*\
!*** ./node_modules/lodash/_baseSetToString.js ***!
\*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var constant = __webpack_require__(/*! ./constant */ "./node_modules/lodash/constant.js"),
defineProperty = __webpack_require__(/*! ./_defineProperty */ "./node_modules/lodash/_defineProperty.js"),
identity = __webpack_require__(/*! ./identity */ "./node_modules/lodash/identity.js");
/**
* The base implementation of `setToString` without support for hot loop shorting.
*
* @private
* @param {Function} func The function to modify.
* @param {Function} string The `toString` result.
* @returns {Function} Returns `func`.
*/
var baseSetToString = !defineProperty ? identity : function(func, string) {
return defineProperty(func, 'toString', {
'configurable': true,
'enumerable': false,
'value': constant(string),
'writable': true
});
};
module.exports = baseSetToString;
/***/ }),
/***/ "./node_modules/lodash/_baseSlice.js":
/*!*******************************************!*\
!*** ./node_modules/lodash/_baseSlice.js ***!
\*******************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* The base implementation of `_.slice` without an iteratee call guard.
*
* @private
* @param {Array} array The array to slice.
* @param {number} [start=0] The start position.
* @param {number} [end=array.length] The end position.
* @returns {Array} Returns the slice of `array`.
*/
function baseSlice(array, start, end) {
var index = -1,
length = array.length;
if (start < 0) {
start = -start > length ? 0 : (length + start);
}
end = end > length ? length : end;
if (end < 0) {
end += length;
}
length = start > end ? 0 : ((end - start) >>> 0);
start >>>= 0;
var result = Array(length);
while (++index < length) {
result[index] = array[index + start];
}
return result;
}
module.exports = baseSlice;
/***/ }),
/***/ "./node_modules/lodash/_baseTimes.js":
/*!*******************************************!*\
!*** ./node_modules/lodash/_baseTimes.js ***!
\*******************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* The base implementation of `_.times` without support for iteratee shorthands
* or max array length checks.
*
* @private
* @param {number} n The number of times to invoke `iteratee`.
* @param {Function} iteratee The function invoked per iteration.
* @returns {Array} Returns the array of results.
*/
function baseTimes(n, iteratee) {
var index = -1,
result = Array(n);
while (++index < n) {
result[index] = iteratee(index);
}
return result;
}
module.exports = baseTimes;
/***/ }),
/***/ "./node_modules/lodash/_baseToString.js":
/*!**********************************************!*\
!*** ./node_modules/lodash/_baseToString.js ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
arrayMap = __webpack_require__(/*! ./_arrayMap */ "./node_modules/lodash/_arrayMap.js"),
isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");
/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0;
/** Used to convert symbols to primitives and strings. */
var symbolProto = Symbol ? Symbol.prototype : undefined,
symbolToString = symbolProto ? symbolProto.toString : undefined;
/**
* The base implementation of `_.toString` which doesn't convert nullish
* values to empty strings.
*
* @private
* @param {*} value The value to process.
* @returns {string} Returns the string.
*/
function baseToString(value) {
// Exit early for strings to avoid a performance hit in some environments.
if (typeof value == 'string') {
return value;
}
if (isArray(value)) {
// Recursively convert values (susceptible to call stack limits).
return arrayMap(value, baseToString) + '';
}
if (isSymbol(value)) {
return symbolToString ? symbolToString.call(value) : '';
}
var result = (value + '');
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
}
module.exports = baseToString;
/***/ }),
/***/ "./node_modules/lodash/_baseTrim.js":
/*!******************************************!*\
!*** ./node_modules/lodash/_baseTrim.js ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var trimmedEndIndex = __webpack_require__(/*! ./_trimmedEndIndex */ "./node_modules/lodash/_trimmedEndIndex.js");
/** Used to match leading whitespace. */
var reTrimStart = /^\s+/;
/**
* The base implementation of `_.trim`.
*
* @private
* @param {string} string The string to trim.
* @returns {string} Returns the trimmed string.
*/
function baseTrim(string) {
return string
? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
: string;
}
module.exports = baseTrim;
/***/ }),
/***/ "./node_modules/lodash/_baseUnary.js":
/*!*******************************************!*\
!*** ./node_modules/lodash/_baseUnary.js ***!
\*******************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* The base implementation of `_.unary` without support for storing metadata.
*
* @private
* @param {Function} func The function to cap arguments for.
* @returns {Function} Returns the new capped function.
*/
function baseUnary(func) {
return function(value) {
return func(value);
};
}
module.exports = baseUnary;
/***/ }),
/***/ "./node_modules/lodash/_baseUniq.js":
/*!******************************************!*\
!*** ./node_modules/lodash/_baseUniq.js ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var SetCache = __webpack_require__(/*! ./_SetCache */ "./node_modules/lodash/_SetCache.js"),
arrayIncludes = __webpack_require__(/*! ./_arrayIncludes */ "./node_modules/lodash/_arrayIncludes.js"),
arrayIncludesWith = __webpack_require__(/*! ./_arrayIncludesWith */ "./node_modules/lodash/_arrayIncludesWith.js"),
cacheHas = __webpack_require__(/*! ./_cacheHas */ "./node_modules/lodash/_cacheHas.js"),
createSet = __webpack_require__(/*! ./_createSet */ "./node_modules/lodash/_createSet.js"),
setToArray = __webpack_require__(/*! ./_setToArray */ "./node_modules/lodash/_setToArray.js");
/** Used as the size to enable large array optimizations. */
var LARGE_ARRAY_SIZE = 200;
/**
* The base implementation of `_.uniqBy` without support for iteratee shorthands.
*
* @private
* @param {Array} array The array to inspect.
* @param {Function} [iteratee] The iteratee invoked per element.
* @param {Function} [comparator] The comparator invoked per element.
* @returns {Array} Returns the new duplicate free array.
*/
function baseUniq(array, iteratee, comparator) {
var index = -1,
includes = arrayIncludes,
length = array.length,
isCommon = true,
result = [],
seen = result;
if (comparator) {
isCommon = false;
includes = arrayIncludesWith;
}
else if (length >= LARGE_ARRAY_SIZE) {
var set = iteratee ? null : createSet(array);
if (set) {
return setToArray(set);
}
isCommon = false;
includes = cacheHas;
seen = new SetCache;
}
else {
seen = iteratee ? [] : result;
}
outer:
while (++index < length) {
var value = array[index],
computed = iteratee ? iteratee(value) : value;
value = (comparator || value !== 0) ? value : 0;
if (isCommon && computed === computed) {
var seenIndex = seen.length;
while (seenIndex--) {
if (seen[seenIndex] === computed) {
continue outer;
}
}
if (iteratee) {
seen.push(computed);
}
result.push(value);
}
else if (!includes(seen, computed, comparator)) {
if (seen !== result) {
seen.push(computed);
}
result.push(value);
}
}
return result;
}
module.exports = baseUniq;
/***/ }),
/***/ "./node_modules/lodash/_baseUnset.js":
/*!*******************************************!*\
!*** ./node_modules/lodash/_baseUnset.js ***!
\*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
last = __webpack_require__(/*! ./last */ "./node_modules/lodash/last.js"),
parent = __webpack_require__(/*! ./_parent */ "./node_modules/lodash/_parent.js"),
toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");
/**
* The base implementation of `_.unset`.
*
* @private
* @param {Object} object The object to modify.
* @param {Array|string} path The property path to unset.
* @returns {boolean} Returns `true` if the property is deleted, else `false`.
*/
function baseUnset(object, path) {
path = castPath(path, object);
object = parent(object, path);
return object == null || delete object[toKey(last(path))];
}
module.exports = baseUnset;
/***/ }),
/***/ "./node_modules/lodash/_cacheHas.js":
/*!******************************************!*\
!*** ./node_modules/lodash/_cacheHas.js ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* Checks if a `cache` value for `key` exists.
*
* @private
* @param {Object} cache The cache to query.
* @param {string} key The key of the entry to check.
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
*/
function cacheHas(cache, key) {
return cache.has(key);
}
module.exports = cacheHas;
/***/ }),
/***/ "./node_modules/lodash/_castPath.js":
/*!******************************************!*\
!*** ./node_modules/lodash/_castPath.js ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
isKey = __webpack_require__(/*! ./_isKey */ "./node_modules/lodash/_isKey.js"),
stringToPath = __webpack_require__(/*! ./_stringToPath */ "./node_modules/lodash/_stringToPath.js"),
toString = __webpack_require__(/*! ./toString */ "./node_modules/lodash/toString.js");
/**
* Casts `value` to a path array if it's not one.
*
* @private
* @param {*} value The value to inspect.
* @param {Object} [object] The object to query keys on.
* @returns {Array} Returns the cast property path array.
*/
function castPath(value, object) {
if (isArray(value)) {
return value;
}
return isKey(value, object) ? [value] : stringToPath(toString(value));
}
module.exports = castPath;
/***/ }),
/***/ "./node_modules/lodash/_castSlice.js":
/*!*******************************************!*\
!*** ./node_modules/lodash/_castSlice.js ***!
\*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseSlice = __webpack_require__(/*! ./_baseSlice */ "./node_modules/lodash/_baseSlice.js");
/**
* Casts `array` to a slice if it's needed.
*
* @private
* @param {Array} array The array to inspect.
* @param {number} start The start position.
* @param {number} [end=array.length] The end position.
* @returns {Array} Returns the cast slice.
*/
function castSlice(array, start, end) {
var length = array.length;
end = end === undefined ? length : end;
return (!start && end >= length) ? array : baseSlice(array, start, end);
}
module.exports = castSlice;
/***/ }),
/***/ "./node_modules/lodash/_cloneArrayBuffer.js":
/*!**************************************************!*\
!*** ./node_modules/lodash/_cloneArrayBuffer.js ***!
\**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var Uint8Array = __webpack_require__(/*! ./_Uint8Array */ "./node_modules/lodash/_Uint8Array.js");
/**
* Creates a clone of `arrayBuffer`.
*
* @private
* @param {ArrayBuffer} arrayBuffer The array buffer to clone.
* @returns {ArrayBuffer} Returns the cloned array buffer.
*/
function cloneArrayBuffer(arrayBuffer) {
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
new Uint8Array(result).set(new Uint8Array(arrayBuffer));
return result;
}
module.exports = cloneArrayBuffer;
/***/ }),
/***/ "./node_modules/lodash/_cloneBuffer.js":
/*!*********************************************!*\
!*** ./node_modules/lodash/_cloneBuffer.js ***!
\*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
/** Detect free variable `exports`. */
var freeExports = true && exports && !exports.nodeType && exports;
/** Detect free variable `module`. */
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
/** Detect the popular CommonJS extension `module.exports`. */
var moduleExports = freeModule && freeModule.exports === freeExports;
/** Built-in value references. */
var Buffer = moduleExports ? root.Buffer : undefined,
allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
/**
* Creates a clone of `buffer`.
*
* @private
* @param {Buffer} buffer The buffer to clone.
* @param {boolean} [isDeep] Specify a deep clone.
* @returns {Buffer} Returns the cloned buffer.
*/
function cloneBuffer(buffer, isDeep) {
if (isDeep) {
return buffer.slice();
}
var length = buffer.length,
result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
buffer.copy(result);
return result;
}
module.exports = cloneBuffer;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))
/***/ }),
/***/ "./node_modules/lodash/_cloneDataView.js":
/*!***********************************************!*\
!*** ./node_modules/lodash/_cloneDataView.js ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "./node_modules/lodash/_cloneArrayBuffer.js");
/**
* Creates a clone of `dataView`.
*
* @private
* @param {Object} dataView The data view to clone.
* @param {boolean} [isDeep] Specify a deep clone.
* @returns {Object} Returns the cloned data view.
*/
function cloneDataView(dataView, isDeep) {
var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
}
module.exports = cloneDataView;
/***/ }),
/***/ "./node_modules/lodash/_cloneRegExp.js":
/*!*********************************************!*\
!*** ./node_modules/lodash/_cloneRegExp.js ***!
\*********************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/** Used to match `RegExp` flags from their coerced string values. */
var reFlags = /\w*$/;
/**
* Creates a clone of `regexp`.
*
* @private
* @param {Object} regexp The regexp to clone.
* @returns {Object} Returns the cloned regexp.
*/
function cloneRegExp(regexp) {
var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
result.lastIndex = regexp.lastIndex;
return result;
}
module.exports = cloneRegExp;
/***/ }),
/***/ "./node_modules/lodash/_cloneSymbol.js":
/*!*********************************************!*\
!*** ./node_modules/lodash/_cloneSymbol.js ***!
\*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js");
/** Used to convert symbols to primitives and strings. */
var symbolProto = Symbol ? Symbol.prototype : undefined,
symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
/**
* Creates a clone of the `symbol` object.
*
* @private
* @param {Object} symbol The symbol object to clone.
* @returns {Object} Returns the cloned symbol object.
*/
function cloneSymbol(symbol) {
return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
}
module.exports = cloneSymbol;
/***/ }),
/***/ "./node_modules/lodash/_cloneTypedArray.js":
/*!*************************************************!*\
!*** ./node_modules/lodash/_cloneTypedArray.js ***!
\*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "./node_modules/lodash/_cloneArrayBuffer.js");
/**
* Creates a clone of `typedArray`.
*
* @private
* @param {Object} typedArray The typed array to clone.
* @param {boolean} [isDeep] Specify a deep clone.
* @returns {Object} Returns the cloned typed array.
*/
function cloneTypedArray(typedArray, isDeep) {
var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
}
module.exports = cloneTypedArray;
/***/ }),
/***/ "./node_modules/lodash/_copyArray.js":
/*!*******************************************!*\
!*** ./node_modules/lodash/_copyArray.js ***!
\*******************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* Copies the values of `source` to `array`.
*
* @private
* @param {Array} source The array to copy values from.
* @param {Array} [array=[]] The array to copy values to.
* @returns {Array} Returns `array`.
*/
function copyArray(source, array) {
var index = -1,
length = source.length;
array || (array = Array(length));
while (++index < length) {
array[index] = source[index];
}
return array;
}
module.exports = copyArray;
/***/ }),
/***/ "./node_modules/lodash/_copyObject.js":
/*!********************************************!*\
!*** ./node_modules/lodash/_copyObject.js ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var assignValue = __webpack_require__(/*! ./_assignValue */ "./node_modules/lodash/_assignValue.js"),
baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "./node_modules/lodash/_baseAssignValue.js");
/**
* Copies properties of `source` to `object`.
*
* @private
* @param {Object} source The object to copy properties from.
* @param {Array} props The property identifiers to copy.
* @param {Object} [object={}] The object to copy properties to.
* @param {Function} [customizer] The function to customize copied values.
* @returns {Object} Returns `object`.
*/
function copyObject(source, props, object, customizer) {
var isNew = !object;
object || (object = {});
var index = -1,
length = props.length;
while (++index < length) {
var key = props[index];
var newValue = customizer
? customizer(object[key], source[key], key, object, source)
: undefined;
if (newValue === undefined) {
newValue = source[key];
}
if (isNew) {
baseAssignValue(object, key, newValue);
} else {
assignValue(object, key, newValue);
}
}
return object;
}
module.exports = copyObject;
/***/ }),
/***/ "./node_modules/lodash/_copySymbols.js":
/*!*********************************************!*\
!*** ./node_modules/lodash/_copySymbols.js ***!
\*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
getSymbols = __webpack_require__(/*! ./_getSymbols */ "./node_modules/lodash/_getSymbols.js");
/**
* Copies own symbols of `source` to `object`.
*
* @private
* @param {Object} source The object to copy symbols from.
* @param {Object} [object={}] The object to copy symbols to.
* @returns {Object} Returns `object`.
*/
function copySymbols(source, object) {
return copyObject(source, getSymbols(source), object);
}
module.exports = copySymbols;
/***/ }),
/***/ "./node_modules/lodash/_copySymbolsIn.js":
/*!***********************************************!*\
!*** ./node_modules/lodash/_copySymbolsIn.js ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ "./node_modules/lodash/_getSymbolsIn.js");
/**
* Copies own and inherited symbols of `source` to `object`.
*
* @private
* @param {Object} source The object to copy symbols from.
* @param {Object} [object={}] The object to copy symbols to.
* @returns {Object} Returns `object`.
*/
function copySymbolsIn(source, object) {
return copyObject(source, getSymbolsIn(source), object);
}
module.exports = copySymbolsIn;
/***/ }),
/***/ "./node_modules/lodash/_coreJsData.js":
/*!********************************************!*\
!*** ./node_modules/lodash/_coreJsData.js ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
/** Used to detect overreaching core-js shims. */
var coreJsData = root['__core-js_shared__'];
module.exports = coreJsData;
/***/ }),
/***/ "./node_modules/lodash/_createAggregator.js":
/*!**************************************************!*\
!*** ./node_modules/lodash/_createAggregator.js ***!
\**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var arrayAggregator = __webpack_require__(/*! ./_arrayAggregator */ "./node_modules/lodash/_arrayAggregator.js"),
baseAggregator = __webpack_require__(/*! ./_baseAggregator */ "./node_modules/lodash/_baseAggregator.js"),
baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js");
/**
* Creates a function like `_.groupBy`.
*
* @private
* @param {Function} setter The function to set accumulator values.
* @param {Function} [initializer] The accumulator object initializer.
* @returns {Function} Returns the new aggregator function.
*/
function createAggregator(setter, initializer) {
return function(collection, iteratee) {
var func = isArray(collection) ? arrayAggregator : baseAggregator,
accumulator = initializer ? initializer() : {};
return func(collection, setter, baseIteratee(iteratee, 2), accumulator);
};
}
module.exports = createAggregator;
/***/ }),
/***/ "./node_modules/lodash/_createAssigner.js":
/*!************************************************!*\
!*** ./node_modules/lodash/_createAssigner.js ***!
\************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseRest = __webpack_require__(/*! ./_baseRest */ "./node_modules/lodash/_baseRest.js"),
isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "./node_modules/lodash/_isIterateeCall.js");
/**
* Creates a function like `_.assign`.
*
* @private
* @param {Function} assigner The function to assign values.
* @returns {Function} Returns the new assigner function.
*/
function createAssigner(assigner) {
return baseRest(function(object, sources) {
var index = -1,
length = sources.length,
customizer = length > 1 ? sources[length - 1] : undefined,
guard = length > 2 ? sources[2] : undefined;
customizer = (assigner.length > 3 && typeof customizer == 'function')
? (length--, customizer)
: undefined;
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
customizer = length < 3 ? undefined : customizer;
length = 1;
}
object = Object(object);
while (++index < length) {
var source = sources[index];
if (source) {
assigner(object, source, index, customizer);
}
}
return object;
});
}
module.exports = createAssigner;
/***/ }),
/***/ "./node_modules/lodash/_createBaseEach.js":
/*!************************************************!*\
!*** ./node_modules/lodash/_createBaseEach.js ***!
\************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js");
/**
* Creates a `baseEach` or `baseEachRight` function.
*
* @private
* @param {Function} eachFunc The function to iterate over a collection.
* @param {boolean} [fromRight] Specify iterating from right to left.
* @returns {Function} Returns the new base function.
*/
function createBaseEach(eachFunc, fromRight) {
return function(collection, iteratee) {
if (collection == null) {
return collection;
}
if (!isArrayLike(collection)) {
return eachFunc(collection, iteratee);
}
var length = collection.length,
index = fromRight ? length : -1,
iterable = Object(collection);
while ((fromRight ? index-- : ++index < length)) {
if (iteratee(iterable[index], index, iterable) === false) {
break;
}
}
return collection;
};
}
module.exports = createBaseEach;
/***/ }),
/***/ "./node_modules/lodash/_createBaseFor.js":
/*!***********************************************!*\
!*** ./node_modules/lodash/_createBaseFor.js ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* Creates a base function for methods like `_.forIn` and `_.forOwn`.
*
* @private
* @param {boolean} [fromRight] Specify iterating from right to left.
* @returns {Function} Returns the new base function.
*/
function createBaseFor(fromRight) {
return function(object, iteratee, keysFunc) {
var index = -1,
iterable = Object(object),
props = keysFunc(object),
length = props.length;
while (length--) {
var key = props[fromRight ? length : ++index];
if (iteratee(iterable[key], key, iterable) === false) {
break;
}
}
return object;
};
}
module.exports = createBaseFor;
/***/ }),
/***/ "./node_modules/lodash/_createFind.js":
/*!********************************************!*\
!*** ./node_modules/lodash/_createFind.js ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"),
keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");
/**
* Creates a `_.find` or `_.findLast` function.
*
* @private
* @param {Function} findIndexFunc The function to find the collection index.
* @returns {Function} Returns the new find function.
*/
function createFind(findIndexFunc) {
return function(collection, predicate, fromIndex) {
var iterable = Object(collection);
if (!isArrayLike(collection)) {
var iteratee = baseIteratee(predicate, 3);
collection = keys(collection);
predicate = function(key) { return iteratee(iterable[key], key, iterable); };
}
var index = findIndexFunc(collection, predicate, fromIndex);
return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
};
}
module.exports = createFind;
/***/ }),
/***/ "./node_modules/lodash/_createPadding.js":
/*!***********************************************!*\
!*** ./node_modules/lodash/_createPadding.js ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseRepeat = __webpack_require__(/*! ./_baseRepeat */ "./node_modules/lodash/_baseRepeat.js"),
baseToString = __webpack_require__(/*! ./_baseToString */ "./node_modules/lodash/_baseToString.js"),
castSlice = __webpack_require__(/*! ./_castSlice */ "./node_modules/lodash/_castSlice.js"),
hasUnicode = __webpack_require__(/*! ./_hasUnicode */ "./node_modules/lodash/_hasUnicode.js"),
stringSize = __webpack_require__(/*! ./_stringSize */ "./node_modules/lodash/_stringSize.js"),
stringToArray = __webpack_require__(/*! ./_stringToArray */ "./node_modules/lodash/_stringToArray.js");
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeCeil = Math.ceil;
/**
* Creates the padding for `string` based on `length`. The `chars` string
* is truncated if the number of characters exceeds `length`.
*
* @private
* @param {number} length The padding length.
* @param {string} [chars=' '] The string used as padding.
* @returns {string} Returns the padding for `string`.
*/
function createPadding(length, chars) {
chars = chars === undefined ? ' ' : baseToString(chars);
var charsLength = chars.length;
if (charsLength < 2) {
return charsLength ? baseRepeat(chars, length) : chars;
}
var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));
return hasUnicode(chars)
? castSlice(stringToArray(result), 0, length).join('')
: result.slice(0, length);
}
module.exports = createPadding;
/***/ }),
/***/ "./node_modules/lodash/_createSet.js":
/*!*******************************************!*\
!*** ./node_modules/lodash/_createSet.js ***!
\*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var Set = __webpack_require__(/*! ./_Set */ "./node_modules/lodash/_Set.js"),
noop = __webpack_require__(/*! ./noop */ "./node_modules/lodash/noop.js"),
setToArray = __webpack_require__(/*! ./_setToArray */ "./node_modules/lodash/_setToArray.js");
/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0;
/**
* Creates a set object of `values`.
*
* @private
* @param {Array} values The values to add to the set.
* @returns {Object} Returns the new set.
*/
var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {
return new Set(values);
};
module.exports = createSet;
/***/ }),
/***/ "./node_modules/lodash/_customOmitClone.js":
/*!*************************************************!*\
!*** ./node_modules/lodash/_customOmitClone.js ***!
\*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var isPlainObject = __webpack_require__(/*! ./isPlainObject */ "./node_modules/lodash/isPlainObject.js");
/**
* Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain
* objects.
*
* @private
* @param {*} value The value to inspect.
* @param {string} key The key of the property to inspect.
* @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
*/
function customOmitClone(value) {
return isPlainObject(value) ? undefined : value;
}
module.exports = customOmitClone;
/***/ }),
/***/ "./node_modules/lodash/_defineProperty.js":
/*!************************************************!*\
!*** ./node_modules/lodash/_defineProperty.js ***!
\************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js");
var defineProperty = (function() {
try {
var func = getNative(Object, 'defineProperty');
func({}, '', {});
return func;
} catch (e) {}
}());
module.exports = defineProperty;
/***/ }),
/***/ "./node_modules/lodash/_equalArrays.js":
/*!*********************************************!*\
!*** ./node_modules/lodash/_equalArrays.js ***!
\*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var SetCache = __webpack_require__(/*! ./_SetCache */ "./node_modules/lodash/_SetCache.js"),
arraySome = __webpack_require__(/*! ./_arraySome */ "./node_modules/lodash/_arraySome.js"),
cacheHas = __webpack_require__(/*! ./_cacheHas */ "./node_modules/lodash/_cacheHas.js");
/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1,
COMPARE_UNORDERED_FLAG = 2;
/**
* A specialized version of `baseIsEqualDeep` for arrays with support for
* partial deep comparisons.
*
* @private
* @param {Array} array The array to compare.
* @param {Array} other The other array to compare.
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
* @param {Function} customizer The function to customize comparisons.
* @param {Function} equalFunc The function to determine equivalents of values.
* @param {Object} stack Tracks traversed `array` and `other` objects.
* @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
*/
function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
arrLength = array.length,
othLength = other.length;
if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
return false;
}
// Check that cyclic values are equal.
var arrStacked = stack.get(array);
var othStacked = stack.get(other);
if (arrStacked && othStacked) {
return arrStacked == other && othStacked == array;
}
var index = -1,
result = true,
seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
stack.set(array, other);
stack.set(other, array);
// Ignore non-index properties.
while (++index < arrLength) {
var arrValue = array[index],
othValue = other[index];
if (customizer) {
var compared = isPartial
? customizer(othValue, arrValue, index, other, array, stack)
: customizer(arrValue, othValue, index, array, other, stack);
}
if (compared !== undefined) {
if (compared) {
continue;
}
result = false;
break;
}
// Recursively compare arrays (susceptible to call stack limits).
if (seen) {
if (!arraySome(other, function(othValue, othIndex) {
if (!cacheHas(seen, othIndex) &&
(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
return seen.push(othIndex);
}
})) {
result = false;
break;
}
} else if (!(
arrValue === othValue ||
equalFunc(arrValue, othValue, bitmask, customizer, stack)
)) {
result = false;
break;
}
}
stack['delete'](array);
stack['delete'](other);
return result;
}
module.exports = equalArrays;
/***/ }),
/***/ "./node_modules/lodash/_equalByTag.js":
/*!********************************************!*\
!*** ./node_modules/lodash/_equalByTag.js ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
Uint8Array = __webpack_require__(/*! ./_Uint8Array */ "./node_modules/lodash/_Uint8Array.js"),
eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js"),
equalArrays = __webpack_require__(/*! ./_equalArrays */ "./node_modules/lodash/_equalArrays.js"),
mapToArray = __webpack_require__(/*! ./_mapToArray */ "./node_modules/lodash/_mapToArray.js"),
setToArray = __webpack_require__(/*! ./_setToArray */ "./node_modules/lodash/_setToArray.js");
/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1,
COMPARE_UNORDERED_FLAG = 2;
/** `Object#toString` result references. */
var boolTag = '[object Boolean]',
dateTag = '[object Date]',
errorTag = '[object Error]',
mapTag = '[object Map]',
numberTag = '[object Number]',
regexpTag = '[object RegExp]',
setTag = '[object Set]',
stringTag = '[object String]',
symbolTag = '[object Symbol]';
var arrayBufferTag = '[object ArrayBuffer]',
dataViewTag = '[object DataView]';
/** Used to convert symbols to primitives and strings. */
var symbolProto = Symbol ? Symbol.prototype : undefined,
symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
/**
* A specialized version of `baseIsEqualDeep` for comparing objects of
* the same `toStringTag`.
*
* **Note:** This function only supports comparing values with tags of
* `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
*
* @private
* @param {Object} object The object to compare.
* @param {Object} other The other object to compare.
* @param {string} tag The `toStringTag` of the objects to compare.
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
* @param {Function} customizer The function to customize comparisons.
* @param {Function} equalFunc The function to determine equivalents of values.
* @param {Object} stack Tracks traversed `object` and `other` objects.
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
*/
function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
switch (tag) {
case dataViewTag:
if ((object.byteLength != other.byteLength) ||
(object.byteOffset != other.byteOffset)) {
return false;
}
object = object.buffer;
other = other.buffer;
case arrayBufferTag:
if ((object.byteLength != other.byteLength) ||
!equalFunc(new Uint8Array(object), new Uint8Array(other))) {
return false;
}
return true;
case boolTag:
case dateTag:
case numberTag:
// Coerce booleans to `1` or `0` and dates to milliseconds.
// Invalid dates are coerced to `NaN`.
return eq(+object, +other);
case errorTag:
return object.name == other.name && object.message == other.message;
case regexpTag:
case stringTag:
// Coerce regexes to strings and treat strings, primitives and objects,
// as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
// for more details.
return object == (other + '');
case mapTag:
var convert = mapToArray;
case setTag:
var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
convert || (convert = setToArray);
if (object.size != other.size && !isPartial) {
return false;
}
// Assume cyclic values are equal.
var stacked = stack.get(object);
if (stacked) {
return stacked == other;
}
bitmask |= COMPARE_UNORDERED_FLAG;
// Recursively compare objects (susceptible to call stack limits).
stack.set(object, other);
var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
stack['delete'](object);
return result;
case symbolTag:
if (symbolValueOf) {
return symbolValueOf.call(object) == symbolValueOf.call(other);
}
}
return false;
}
module.exports = equalByTag;
/***/ }),
/***/ "./node_modules/lodash/_equalObjects.js":
/*!**********************************************!*\
!*** ./node_modules/lodash/_equalObjects.js ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "./node_modules/lodash/_getAllKeys.js");
/** Used to compose bitmasks for value comparisons. */
var COMPARE_PARTIAL_FLAG = 1;
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/**
* A specialized version of `baseIsEqualDeep` for objects with support for
* partial deep comparisons.
*
* @private
* @param {Object} object The object to compare.
* @param {Object} other The other object to compare.
* @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
* @param {Function} customizer The function to customize comparisons.
* @param {Function} equalFunc The function to determine equivalents of values.
* @param {Object} stack Tracks traversed `object` and `other` objects.
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
*/
function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
objProps = getAllKeys(object),
objLength = objProps.length,
othProps = getAllKeys(other),
othLength = othProps.length;
if (objLength != othLength && !isPartial) {
return false;
}
var index = objLength;
while (index--) {
var key = objProps[index];
if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
return false;
}
}
// Check that cyclic values are equal.
var objStacked = stack.get(object);
var othStacked = stack.get(other);
if (objStacked && othStacked) {
return objStacked == other && othStacked == object;
}
var result = true;
stack.set(object, other);
stack.set(other, object);
var skipCtor = isPartial;
while (++index < objLength) {
key = objProps[index];
var objValue = object[key],
othValue = other[key];
if (customizer) {
var compared = isPartial
? customizer(othValue, objValue, key, other, object, stack)
: customizer(objValue, othValue, key, object, other, stack);
}
// Recursively compare objects (susceptible to call stack limits).
if (!(compared === undefined
? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
: compared
)) {
result = false;
break;
}
skipCtor || (skipCtor = key == 'constructor');
}
if (result && !skipCtor) {
var objCtor = object.constructor,
othCtor = other.constructor;
// Non `Object` object instances with different constructors are not equal.
if (objCtor != othCtor &&
('constructor' in object && 'constructor' in other) &&
!(typeof objCtor == 'function' && objCtor instanceof objCtor &&
typeof othCtor == 'function' && othCtor instanceof othCtor)) {
result = false;
}
}
stack['delete'](object);
stack['delete'](other);
return result;
}
module.exports = equalObjects;
/***/ }),
/***/ "./node_modules/lodash/_flatRest.js":
/*!******************************************!*\
!*** ./node_modules/lodash/_flatRest.js ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var flatten = __webpack_require__(/*! ./flatten */ "./node_modules/lodash/flatten.js"),
overRest = __webpack_require__(/*! ./_overRest */ "./node_modules/lodash/_overRest.js"),
setToString = __webpack_require__(/*! ./_setToString */ "./node_modules/lodash/_setToString.js");
/**
* A specialized version of `baseRest` which flattens the rest array.
*
* @private
* @param {Function} func The function to apply a rest parameter to.
* @returns {Function} Returns the new function.
*/
function flatRest(func) {
return setToString(overRest(func, undefined, flatten), func + '');
}
module.exports = flatRest;
/***/ }),
/***/ "./node_modules/lodash/_freeGlobal.js":
/*!********************************************!*\
!*** ./node_modules/lodash/_freeGlobal.js ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
module.exports = freeGlobal;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
/***/ }),
/***/ "./node_modules/lodash/_getAllKeys.js":
/*!********************************************!*\
!*** ./node_modules/lodash/_getAllKeys.js ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ "./node_modules/lodash/_baseGetAllKeys.js"),
getSymbols = __webpack_require__(/*! ./_getSymbols */ "./node_modules/lodash/_getSymbols.js"),
keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");
/**
* Creates an array of own enumerable property names and symbols of `object`.
*
* @private
* @param {Object} object The object to query.
* @returns {Array} Returns the array of property names and symbols.
*/
function getAllKeys(object) {
return baseGetAllKeys(object, keys, getSymbols);
}
module.exports = getAllKeys;
/***/ }),
/***/ "./node_modules/lodash/_getAllKeysIn.js":
/*!**********************************************!*\
!*** ./node_modules/lodash/_getAllKeysIn.js ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ "./node_modules/lodash/_baseGetAllKeys.js"),
getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ "./node_modules/lodash/_getSymbolsIn.js"),
keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js");
/**
* Creates an array of own and inherited enumerable property names and
* symbols of `object`.
*
* @private
* @param {Object} object The object to query.
* @returns {Array} Returns the array of property names and symbols.
*/
function getAllKeysIn(object) {
return baseGetAllKeys(object, keysIn, getSymbolsIn);
}
module.exports = getAllKeysIn;
/***/ }),
/***/ "./node_modules/lodash/_getMapData.js":
/*!********************************************!*\
!*** ./node_modules/lodash/_getMapData.js ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var isKeyable = __webpack_require__(/*! ./_isKeyable */ "./node_modules/lodash/_isKeyable.js");
/**
* Gets the data for `map`.
*
* @private
* @param {Object} map The map to query.
* @param {string} key The reference key.
* @returns {*} Returns the map data.
*/
function getMapData(map, key) {
var data = map.__data__;
return isKeyable(key)
? data[typeof key == 'string' ? 'string' : 'hash']
: data.map;
}
module.exports = getMapData;
/***/ }),
/***/ "./node_modules/lodash/_getMatchData.js":
/*!**********************************************!*\
!*** ./node_modules/lodash/_getMatchData.js ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ "./node_modules/lodash/_isStrictComparable.js"),
keys = __webpack_require__(/*! ./keys */ "./node_modules/lodash/keys.js");
/**
* Gets the property names, values, and compare flags of `object`.
*
* @private
* @param {Object} object The object to query.
* @returns {Array} Returns the match data of `object`.
*/
function getMatchData(object) {
var result = keys(object),
length = result.length;
while (length--) {
var key = result[length],
value = object[key];
result[length] = [key, value, isStrictComparable(value)];
}
return result;
}
module.exports = getMatchData;
/***/ }),
/***/ "./node_modules/lodash/_getNative.js":
/*!*******************************************!*\
!*** ./node_modules/lodash/_getNative.js ***!
\*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseIsNative = __webpack_require__(/*! ./_baseIsNative */ "./node_modules/lodash/_baseIsNative.js"),
getValue = __webpack_require__(/*! ./_getValue */ "./node_modules/lodash/_getValue.js");
/**
* Gets the native function at `key` of `object`.
*
* @private
* @param {Object} object The object to query.
* @param {string} key The key of the method to get.
* @returns {*} Returns the function if it's native, else `undefined`.
*/
function getNative(object, key) {
var value = getValue(object, key);
return baseIsNative(value) ? value : undefined;
}
module.exports = getNative;
/***/ }),
/***/ "./node_modules/lodash/_getPrototype.js":
/*!**********************************************!*\
!*** ./node_modules/lodash/_getPrototype.js ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var overArg = __webpack_require__(/*! ./_overArg */ "./node_modules/lodash/_overArg.js");
/** Built-in value references. */
var getPrototype = overArg(Object.getPrototypeOf, Object);
module.exports = getPrototype;
/***/ }),
/***/ "./node_modules/lodash/_getRawTag.js":
/*!*******************************************!*\
!*** ./node_modules/lodash/_getRawTag.js ***!
\*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js");
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/**
* Used to resolve the
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
* of values.
*/
var nativeObjectToString = objectProto.toString;
/** Built-in value references. */
var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
/**
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
*
* @private
* @param {*} value The value to query.
* @returns {string} Returns the raw `toStringTag`.
*/
function getRawTag(value) {
var isOwn = hasOwnProperty.call(value, symToStringTag),
tag = value[symToStringTag];
try {
value[symToStringTag] = undefined;
var unmasked = true;
} catch (e) {}
var result = nativeObjectToString.call(value);
if (unmasked) {
if (isOwn) {
value[symToStringTag] = tag;
} else {
delete value[symToStringTag];
}
}
return result;
}
module.exports = getRawTag;
/***/ }),
/***/ "./node_modules/lodash/_getSymbols.js":
/*!********************************************!*\
!*** ./node_modules/lodash/_getSymbols.js ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var arrayFilter = __webpack_require__(/*! ./_arrayFilter */ "./node_modules/lodash/_arrayFilter.js"),
stubArray = __webpack_require__(/*! ./stubArray */ "./node_modules/lodash/stubArray.js");
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Built-in value references. */
var propertyIsEnumerable = objectProto.propertyIsEnumerable;
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeGetSymbols = Object.getOwnPropertySymbols;
/**
* Creates an array of the own enumerable symbols of `object`.
*
* @private
* @param {Object} object The object to query.
* @returns {Array} Returns the array of symbols.
*/
var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
if (object == null) {
return [];
}
object = Object(object);
return arrayFilter(nativeGetSymbols(object), function(symbol) {
return propertyIsEnumerable.call(object, symbol);
});
};
module.exports = getSymbols;
/***/ }),
/***/ "./node_modules/lodash/_getSymbolsIn.js":
/*!**********************************************!*\
!*** ./node_modules/lodash/_getSymbolsIn.js ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var arrayPush = __webpack_require__(/*! ./_arrayPush */ "./node_modules/lodash/_arrayPush.js"),
getPrototype = __webpack_require__(/*! ./_getPrototype */ "./node_modules/lodash/_getPrototype.js"),
getSymbols = __webpack_require__(/*! ./_getSymbols */ "./node_modules/lodash/_getSymbols.js"),
stubArray = __webpack_require__(/*! ./stubArray */ "./node_modules/lodash/stubArray.js");
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeGetSymbols = Object.getOwnPropertySymbols;
/**
* Creates an array of the own and inherited enumerable symbols of `object`.
*
* @private
* @param {Object} object The object to query.
* @returns {Array} Returns the array of symbols.
*/
var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
var result = [];
while (object) {
arrayPush(result, getSymbols(object));
object = getPrototype(object);
}
return result;
};
module.exports = getSymbolsIn;
/***/ }),
/***/ "./node_modules/lodash/_getTag.js":
/*!****************************************!*\
!*** ./node_modules/lodash/_getTag.js ***!
\****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var DataView = __webpack_require__(/*! ./_DataView */ "./node_modules/lodash/_DataView.js"),
Map = __webpack_require__(/*! ./_Map */ "./node_modules/lodash/_Map.js"),
Promise = __webpack_require__(/*! ./_Promise */ "./node_modules/lodash/_Promise.js"),
Set = __webpack_require__(/*! ./_Set */ "./node_modules/lodash/_Set.js"),
WeakMap = __webpack_require__(/*! ./_WeakMap */ "./node_modules/lodash/_WeakMap.js"),
baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
toSource = __webpack_require__(/*! ./_toSource */ "./node_modules/lodash/_toSource.js");
/** `Object#toString` result references. */
var mapTag = '[object Map]',
objectTag = '[object Object]',
promiseTag = '[object Promise]',
setTag = '[object Set]',
weakMapTag = '[object WeakMap]';
var dataViewTag = '[object DataView]';
/** Used to detect maps, sets, and weakmaps. */
var dataViewCtorString = toSource(DataView),
mapCtorString = toSource(Map),
promiseCtorString = toSource(Promise),
setCtorString = toSource(Set),
weakMapCtorString = toSource(WeakMap);
/**
* Gets the `toStringTag` of `value`.
*
* @private
* @param {*} value The value to query.
* @returns {string} Returns the `toStringTag`.
*/
var getTag = baseGetTag;
// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
(Map && getTag(new Map) != mapTag) ||
(Promise && getTag(Promise.resolve()) != promiseTag) ||
(Set && getTag(new Set) != setTag) ||
(WeakMap && getTag(new WeakMap) != weakMapTag)) {
getTag = function(value) {
var result = baseGetTag(value),
Ctor = result == objectTag ? value.constructor : undefined,
ctorString = Ctor ? toSource(Ctor) : '';
if (ctorString) {
switch (ctorString) {
case dataViewCtorString: return dataViewTag;
case mapCtorString: return mapTag;
case promiseCtorString: return promiseTag;
case setCtorString: return setTag;
case weakMapCtorString: return weakMapTag;
}
}
return result;
};
}
module.exports = getTag;
/***/ }),
/***/ "./node_modules/lodash/_getValue.js":
/*!******************************************!*\
!*** ./node_modules/lodash/_getValue.js ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* Gets the value at `key` of `object`.
*
* @private
* @param {Object} [object] The object to query.
* @param {string} key The key of the property to get.
* @returns {*} Returns the property value.
*/
function getValue(object, key) {
return object == null ? undefined : object[key];
}
module.exports = getValue;
/***/ }),
/***/ "./node_modules/lodash/_hasPath.js":
/*!*****************************************!*\
!*** ./node_modules/lodash/_hasPath.js ***!
\*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"),
isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
isIndex = __webpack_require__(/*! ./_isIndex */ "./node_modules/lodash/_isIndex.js"),
isLength = __webpack_require__(/*! ./isLength */ "./node_modules/lodash/isLength.js"),
toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");
/**
* Checks if `path` exists on `object`.
*
* @private
* @param {Object} object The object to query.
* @param {Array|string} path The path to check.
* @param {Function} hasFunc The function to check properties.
* @returns {boolean} Returns `true` if `path` exists, else `false`.
*/
function hasPath(object, path, hasFunc) {
path = castPath(path, object);
var index = -1,
length = path.length,
result = false;
while (++index < length) {
var key = toKey(path[index]);
if (!(result = object != null && hasFunc(object, key))) {
break;
}
object = object[key];
}
if (result || ++index != length) {
return result;
}
length = object == null ? 0 : object.length;
return !!length && isLength(length) && isIndex(key, length) &&
(isArray(object) || isArguments(object));
}
module.exports = hasPath;
/***/ }),
/***/ "./node_modules/lodash/_hasUnicode.js":
/*!********************************************!*\
!*** ./node_modules/lodash/_hasUnicode.js ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/** Used to compose unicode character classes. */
var rsAstralRange = '\\ud800-\\udfff',
rsComboMarksRange = '\\u0300-\\u036f',
reComboHalfMarksRange = '\\ufe20-\\ufe2f',
rsComboSymbolsRange = '\\u20d0-\\u20ff',
rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
rsVarRange = '\\ufe0e\\ufe0f';
/** Used to compose unicode capture groups. */
var rsZWJ = '\\u200d';
/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');
/**
* Checks if `string` contains Unicode symbols.
*
* @private
* @param {string} string The string to inspect.
* @returns {boolean} Returns `true` if a symbol is found, else `false`.
*/
function hasUnicode(string) {
return reHasUnicode.test(string);
}
module.exports = hasUnicode;
/***/ }),
/***/ "./node_modules/lodash/_hashClear.js":
/*!*******************************************!*\
!*** ./node_modules/lodash/_hashClear.js ***!
\*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js");
/**
* Removes all key-value entries from the hash.
*
* @private
* @name clear
* @memberOf Hash
*/
function hashClear() {
this.__data__ = nativeCreate ? nativeCreate(null) : {};
this.size = 0;
}
module.exports = hashClear;
/***/ }),
/***/ "./node_modules/lodash/_hashDelete.js":
/*!********************************************!*\
!*** ./node_modules/lodash/_hashDelete.js ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* Removes `key` and its value from the hash.
*
* @private
* @name delete
* @memberOf Hash
* @param {Object} hash The hash to modify.
* @param {string} key The key of the value to remove.
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
*/
function hashDelete(key) {
var result = this.has(key) && delete this.__data__[key];
this.size -= result ? 1 : 0;
return result;
}
module.exports = hashDelete;
/***/ }),
/***/ "./node_modules/lodash/_hashGet.js":
/*!*****************************************!*\
!*** ./node_modules/lodash/_hashGet.js ***!
\*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js");
/** Used to stand-in for `undefined` hash values. */
var HASH_UNDEFINED = '__lodash_hash_undefined__';
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/**
* Gets the hash value for `key`.
*
* @private
* @name get
* @memberOf Hash
* @param {string} key The key of the value to get.
* @returns {*} Returns the entry value.
*/
function hashGet(key) {
var data = this.__data__;
if (nativeCreate) {
var result = data[key];
return result === HASH_UNDEFINED ? undefined : result;
}
return hasOwnProperty.call(data, key) ? data[key] : undefined;
}
module.exports = hashGet;
/***/ }),
/***/ "./node_modules/lodash/_hashHas.js":
/*!*****************************************!*\
!*** ./node_modules/lodash/_hashHas.js ***!
\*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js");
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/**
* Checks if a hash value for `key` exists.
*
* @private
* @name has
* @memberOf Hash
* @param {string} key The key of the entry to check.
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
*/
function hashHas(key) {
var data = this.__data__;
return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
}
module.exports = hashHas;
/***/ }),
/***/ "./node_modules/lodash/_hashSet.js":
/*!*****************************************!*\
!*** ./node_modules/lodash/_hashSet.js ***!
\*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "./node_modules/lodash/_nativeCreate.js");
/** Used to stand-in for `undefined` hash values. */
var HASH_UNDEFINED = '__lodash_hash_undefined__';
/**
* Sets the hash `key` to `value`.
*
* @private
* @name set
* @memberOf Hash
* @param {string} key The key of the value to set.
* @param {*} value The value to set.
* @returns {Object} Returns the hash instance.
*/
function hashSet(key, value) {
var data = this.__data__;
this.size += this.has(key) ? 0 : 1;
data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
return this;
}
module.exports = hashSet;
/***/ }),
/***/ "./node_modules/lodash/_initCloneArray.js":
/*!************************************************!*\
!*** ./node_modules/lodash/_initCloneArray.js ***!
\************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/**
* Initializes an array clone.
*
* @private
* @param {Array} array The array to clone.
* @returns {Array} Returns the initialized clone.
*/
function initCloneArray(array) {
var length = array.length,
result = new array.constructor(length);
// Add properties assigned by `RegExp#exec`.
if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
result.index = array.index;
result.input = array.input;
}
return result;
}
module.exports = initCloneArray;
/***/ }),
/***/ "./node_modules/lodash/_initCloneByTag.js":
/*!************************************************!*\
!*** ./node_modules/lodash/_initCloneByTag.js ***!
\************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "./node_modules/lodash/_cloneArrayBuffer.js"),
cloneDataView = __webpack_require__(/*! ./_cloneDataView */ "./node_modules/lodash/_cloneDataView.js"),
cloneRegExp = __webpack_require__(/*! ./_cloneRegExp */ "./node_modules/lodash/_cloneRegExp.js"),
cloneSymbol = __webpack_require__(/*! ./_cloneSymbol */ "./node_modules/lodash/_cloneSymbol.js"),
cloneTypedArray = __webpack_require__(/*! ./_cloneTypedArray */ "./node_modules/lodash/_cloneTypedArray.js");
/** `Object#toString` result references. */
var boolTag = '[object Boolean]',
dateTag = '[object Date]',
mapTag = '[object Map]',
numberTag = '[object Number]',
regexpTag = '[object RegExp]',
setTag = '[object Set]',
stringTag = '[object String]',
symbolTag = '[object Symbol]';
var arrayBufferTag = '[object ArrayBuffer]',
dataViewTag = '[object DataView]',
float32Tag = '[object Float32Array]',
float64Tag = '[object Float64Array]',
int8Tag = '[object Int8Array]',
int16Tag = '[object Int16Array]',
int32Tag = '[object Int32Array]',
uint8Tag = '[object Uint8Array]',
uint8ClampedTag = '[object Uint8ClampedArray]',
uint16Tag = '[object Uint16Array]',
uint32Tag = '[object Uint32Array]';
/**
* Initializes an object clone based on its `toStringTag`.
*
* **Note:** This function only supports cloning values with tags of
* `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
*
* @private
* @param {Object} object The object to clone.
* @param {string} tag The `toStringTag` of the object to clone.
* @param {boolean} [isDeep] Specify a deep clone.
* @returns {Object} Returns the initialized clone.
*/
function initCloneByTag(object, tag, isDeep) {
var Ctor = object.constructor;
switch (tag) {
case arrayBufferTag:
return cloneArrayBuffer(object);
case boolTag:
case dateTag:
return new Ctor(+object);
case dataViewTag:
return cloneDataView(object, isDeep);
case float32Tag: case float64Tag:
case int8Tag: case int16Tag: case int32Tag:
case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
return cloneTypedArray(object, isDeep);
case mapTag:
return new Ctor;
case numberTag:
case stringTag:
return new Ctor(object);
case regexpTag:
return cloneRegExp(object);
case setTag:
return new Ctor;
case symbolTag:
return cloneSymbol(object);
}
}
module.exports = initCloneByTag;
/***/ }),
/***/ "./node_modules/lodash/_initCloneObject.js":
/*!*************************************************!*\
!*** ./node_modules/lodash/_initCloneObject.js ***!
\*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseCreate = __webpack_require__(/*! ./_baseCreate */ "./node_modules/lodash/_baseCreate.js"),
getPrototype = __webpack_require__(/*! ./_getPrototype */ "./node_modules/lodash/_getPrototype.js"),
isPrototype = __webpack_require__(/*! ./_isPrototype */ "./node_modules/lodash/_isPrototype.js");
/**
* Initializes an object clone.
*
* @private
* @param {Object} object The object to clone.
* @returns {Object} Returns the initialized clone.
*/
function initCloneObject(object) {
return (typeof object.constructor == 'function' && !isPrototype(object))
? baseCreate(getPrototype(object))
: {};
}
module.exports = initCloneObject;
/***/ }),
/***/ "./node_modules/lodash/_isFlattenable.js":
/*!***********************************************!*\
!*** ./node_modules/lodash/_isFlattenable.js ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
isArguments = __webpack_require__(/*! ./isArguments */ "./node_modules/lodash/isArguments.js"),
isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js");
/** Built-in value references. */
var spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;
/**
* Checks if `value` is a flattenable `arguments` object or array.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
*/
function isFlattenable(value) {
return isArray(value) || isArguments(value) ||
!!(spreadableSymbol && value && value[spreadableSymbol]);
}
module.exports = isFlattenable;
/***/ }),
/***/ "./node_modules/lodash/_isIndex.js":
/*!*****************************************!*\
!*** ./node_modules/lodash/_isIndex.js ***!
\*****************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/** Used as references for various `Number` constants. */
var MAX_SAFE_INTEGER = 9007199254740991;
/** Used to detect unsigned integer values. */
var reIsUint = /^(?:0|[1-9]\d*)$/;
/**
* Checks if `value` is a valid array-like index.
*
* @private
* @param {*} value The value to check.
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
*/
function isIndex(value, length) {
var type = typeof value;
length = length == null ? MAX_SAFE_INTEGER : length;
return !!length &&
(type == 'number' ||
(type != 'symbol' && reIsUint.test(value))) &&
(value > -1 && value % 1 == 0 && value < length);
}
module.exports = isIndex;
/***/ }),
/***/ "./node_modules/lodash/_isIterateeCall.js":
/*!************************************************!*\
!*** ./node_modules/lodash/_isIterateeCall.js ***!
\************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var eq = __webpack_require__(/*! ./eq */ "./node_modules/lodash/eq.js"),
isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"),
isIndex = __webpack_require__(/*! ./_isIndex */ "./node_modules/lodash/_isIndex.js"),
isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");
/**
* Checks if the given arguments are from an iteratee call.
*
* @private
* @param {*} value The potential iteratee value argument.
* @param {*} index The potential iteratee index or key argument.
* @param {*} object The potential iteratee object argument.
* @returns {boolean} Returns `true` if the arguments are from an iteratee call,
* else `false`.
*/
function isIterateeCall(value, index, object) {
if (!isObject(object)) {
return false;
}
var type = typeof index;
if (type == 'number'
? (isArrayLike(object) && isIndex(index, object.length))
: (type == 'string' && index in object)
) {
return eq(object[index], value);
}
return false;
}
module.exports = isIterateeCall;
/***/ }),
/***/ "./node_modules/lodash/_isKey.js":
/*!***************************************!*\
!*** ./node_modules/lodash/_isKey.js ***!
\***************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");
/** Used to match property names within property paths. */
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
reIsPlainProp = /^\w*$/;
/**
* Checks if `value` is a property name and not a property path.
*
* @private
* @param {*} value The value to check.
* @param {Object} [object] The object to query keys on.
* @returns {boolean} Returns `true` if `value` is a property name, else `false`.
*/
function isKey(value, object) {
if (isArray(value)) {
return false;
}
var type = typeof value;
if (type == 'number' || type == 'symbol' || type == 'boolean' ||
value == null || isSymbol(value)) {
return true;
}
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
(object != null && value in Object(object));
}
module.exports = isKey;
/***/ }),
/***/ "./node_modules/lodash/_isKeyable.js":
/*!*******************************************!*\
!*** ./node_modules/lodash/_isKeyable.js ***!
\*******************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* Checks if `value` is suitable for use as unique object key.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
*/
function isKeyable(value) {
var type = typeof value;
return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
? (value !== '__proto__')
: (value === null);
}
module.exports = isKeyable;
/***/ }),
/***/ "./node_modules/lodash/_isMasked.js":
/*!******************************************!*\
!*** ./node_modules/lodash/_isMasked.js ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var coreJsData = __webpack_require__(/*! ./_coreJsData */ "./node_modules/lodash/_coreJsData.js");
/** Used to detect methods masquerading as native. */
var maskSrcKey = (function() {
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
return uid ? ('Symbol(src)_1.' + uid) : '';
}());
/**
* Checks if `func` has its source masked.
*
* @private
* @param {Function} func The function to check.
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
*/
function isMasked(func) {
return !!maskSrcKey && (maskSrcKey in func);
}
module.exports = isMasked;
/***/ }),
/***/ "./node_modules/lodash/_isPrototype.js":
/*!*********************************************!*\
!*** ./node_modules/lodash/_isPrototype.js ***!
\*********************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/** Used for built-in method references. */
var objectProto = Object.prototype;
/**
* Checks if `value` is likely a prototype object.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
*/
function isPrototype(value) {
var Ctor = value && value.constructor,
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
return value === proto;
}
module.exports = isPrototype;
/***/ }),
/***/ "./node_modules/lodash/_isStrictComparable.js":
/*!****************************************************!*\
!*** ./node_modules/lodash/_isStrictComparable.js ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");
/**
* Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` if suitable for strict
* equality comparisons, else `false`.
*/
function isStrictComparable(value) {
return value === value && !isObject(value);
}
module.exports = isStrictComparable;
/***/ }),
/***/ "./node_modules/lodash/_listCacheClear.js":
/*!************************************************!*\
!*** ./node_modules/lodash/_listCacheClear.js ***!
\************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* Removes all key-value entries from the list cache.
*
* @private
* @name clear
* @memberOf ListCache
*/
function listCacheClear() {
this.__data__ = [];
this.size = 0;
}
module.exports = listCacheClear;
/***/ }),
/***/ "./node_modules/lodash/_listCacheDelete.js":
/*!*************************************************!*\
!*** ./node_modules/lodash/_listCacheDelete.js ***!
\*************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js");
/** Used for built-in method references. */
var arrayProto = Array.prototype;
/** Built-in value references. */
var splice = arrayProto.splice;
/**
* Removes `key` and its value from the list cache.
*
* @private
* @name delete
* @memberOf ListCache
* @param {string} key The key of the value to remove.
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
*/
function listCacheDelete(key) {
var data = this.__data__,
index = assocIndexOf(data, key);
if (index < 0) {
return false;
}
var lastIndex = data.length - 1;
if (index == lastIndex) {
data.pop();
} else {
splice.call(data, index, 1);
}
--this.size;
return true;
}
module.exports = listCacheDelete;
/***/ }),
/***/ "./node_modules/lodash/_listCacheGet.js":
/*!**********************************************!*\
!*** ./node_modules/lodash/_listCacheGet.js ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js");
/**
* Gets the list cache value for `key`.
*
* @private
* @name get
* @memberOf ListCache
* @param {string} key The key of the value to get.
* @returns {*} Returns the entry value.
*/
function listCacheGet(key) {
var data = this.__data__,
index = assocIndexOf(data, key);
return index < 0 ? undefined : data[index][1];
}
module.exports = listCacheGet;
/***/ }),
/***/ "./node_modules/lodash/_listCacheHas.js":
/*!**********************************************!*\
!*** ./node_modules/lodash/_listCacheHas.js ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js");
/**
* Checks if a list cache value for `key` exists.
*
* @private
* @name has
* @memberOf ListCache
* @param {string} key The key of the entry to check.
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
*/
function listCacheHas(key) {
return assocIndexOf(this.__data__, key) > -1;
}
module.exports = listCacheHas;
/***/ }),
/***/ "./node_modules/lodash/_listCacheSet.js":
/*!**********************************************!*\
!*** ./node_modules/lodash/_listCacheSet.js ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "./node_modules/lodash/_assocIndexOf.js");
/**
* Sets the list cache `key` to `value`.
*
* @private
* @name set
* @memberOf ListCache
* @param {string} key The key of the value to set.
* @param {*} value The value to set.
* @returns {Object} Returns the list cache instance.
*/
function listCacheSet(key, value) {
var data = this.__data__,
index = assocIndexOf(data, key);
if (index < 0) {
++this.size;
data.push([key, value]);
} else {
data[index][1] = value;
}
return this;
}
module.exports = listCacheSet;
/***/ }),
/***/ "./node_modules/lodash/_mapCacheClear.js":
/*!***********************************************!*\
!*** ./node_modules/lodash/_mapCacheClear.js ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var Hash = __webpack_require__(/*! ./_Hash */ "./node_modules/lodash/_Hash.js"),
ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js"),
Map = __webpack_require__(/*! ./_Map */ "./node_modules/lodash/_Map.js");
/**
* Removes all key-value entries from the map.
*
* @private
* @name clear
* @memberOf MapCache
*/
function mapCacheClear() {
this.size = 0;
this.__data__ = {
'hash': new Hash,
'map': new (Map || ListCache),
'string': new Hash
};
}
module.exports = mapCacheClear;
/***/ }),
/***/ "./node_modules/lodash/_mapCacheDelete.js":
/*!************************************************!*\
!*** ./node_modules/lodash/_mapCacheDelete.js ***!
\************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js");
/**
* Removes `key` and its value from the map.
*
* @private
* @name delete
* @memberOf MapCache
* @param {string} key The key of the value to remove.
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
*/
function mapCacheDelete(key) {
var result = getMapData(this, key)['delete'](key);
this.size -= result ? 1 : 0;
return result;
}
module.exports = mapCacheDelete;
/***/ }),
/***/ "./node_modules/lodash/_mapCacheGet.js":
/*!*********************************************!*\
!*** ./node_modules/lodash/_mapCacheGet.js ***!
\*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js");
/**
* Gets the map value for `key`.
*
* @private
* @name get
* @memberOf MapCache
* @param {string} key The key of the value to get.
* @returns {*} Returns the entry value.
*/
function mapCacheGet(key) {
return getMapData(this, key).get(key);
}
module.exports = mapCacheGet;
/***/ }),
/***/ "./node_modules/lodash/_mapCacheHas.js":
/*!*********************************************!*\
!*** ./node_modules/lodash/_mapCacheHas.js ***!
\*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js");
/**
* Checks if a map value for `key` exists.
*
* @private
* @name has
* @memberOf MapCache
* @param {string} key The key of the entry to check.
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
*/
function mapCacheHas(key) {
return getMapData(this, key).has(key);
}
module.exports = mapCacheHas;
/***/ }),
/***/ "./node_modules/lodash/_mapCacheSet.js":
/*!*********************************************!*\
!*** ./node_modules/lodash/_mapCacheSet.js ***!
\*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var getMapData = __webpack_require__(/*! ./_getMapData */ "./node_modules/lodash/_getMapData.js");
/**
* Sets the map `key` to `value`.
*
* @private
* @name set
* @memberOf MapCache
* @param {string} key The key of the value to set.
* @param {*} value The value to set.
* @returns {Object} Returns the map cache instance.
*/
function mapCacheSet(key, value) {
var data = getMapData(this, key),
size = data.size;
data.set(key, value);
this.size += data.size == size ? 0 : 1;
return this;
}
module.exports = mapCacheSet;
/***/ }),
/***/ "./node_modules/lodash/_mapToArray.js":
/*!********************************************!*\
!*** ./node_modules/lodash/_mapToArray.js ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* Converts `map` to its key-value pairs.
*
* @private
* @param {Object} map The map to convert.
* @returns {Array} Returns the key-value pairs.
*/
function mapToArray(map) {
var index = -1,
result = Array(map.size);
map.forEach(function(value, key) {
result[++index] = [key, value];
});
return result;
}
module.exports = mapToArray;
/***/ }),
/***/ "./node_modules/lodash/_matchesStrictComparable.js":
/*!*********************************************************!*\
!*** ./node_modules/lodash/_matchesStrictComparable.js ***!
\*********************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* A specialized version of `matchesProperty` for source values suitable
* for strict equality comparisons, i.e. `===`.
*
* @private
* @param {string} key The key of the property to get.
* @param {*} srcValue The value to match.
* @returns {Function} Returns the new spec function.
*/
function matchesStrictComparable(key, srcValue) {
return function(object) {
if (object == null) {
return false;
}
return object[key] === srcValue &&
(srcValue !== undefined || (key in Object(object)));
};
}
module.exports = matchesStrictComparable;
/***/ }),
/***/ "./node_modules/lodash/_memoizeCapped.js":
/*!***********************************************!*\
!*** ./node_modules/lodash/_memoizeCapped.js ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var memoize = __webpack_require__(/*! ./memoize */ "./node_modules/lodash/memoize.js");
/** Used as the maximum memoize cache size. */
var MAX_MEMOIZE_SIZE = 500;
/**
* A specialized version of `_.memoize` which clears the memoized function's
* cache when it exceeds `MAX_MEMOIZE_SIZE`.
*
* @private
* @param {Function} func The function to have its output memoized.
* @returns {Function} Returns the new memoized function.
*/
function memoizeCapped(func) {
var result = memoize(func, function(key) {
if (cache.size === MAX_MEMOIZE_SIZE) {
cache.clear();
}
return key;
});
var cache = result.cache;
return result;
}
module.exports = memoizeCapped;
/***/ }),
/***/ "./node_modules/lodash/_nativeCreate.js":
/*!**********************************************!*\
!*** ./node_modules/lodash/_nativeCreate.js ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var getNative = __webpack_require__(/*! ./_getNative */ "./node_modules/lodash/_getNative.js");
/* Built-in method references that are verified to be native. */
var nativeCreate = getNative(Object, 'create');
module.exports = nativeCreate;
/***/ }),
/***/ "./node_modules/lodash/_nativeKeys.js":
/*!********************************************!*\
!*** ./node_modules/lodash/_nativeKeys.js ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var overArg = __webpack_require__(/*! ./_overArg */ "./node_modules/lodash/_overArg.js");
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeKeys = overArg(Object.keys, Object);
module.exports = nativeKeys;
/***/ }),
/***/ "./node_modules/lodash/_nativeKeysIn.js":
/*!**********************************************!*\
!*** ./node_modules/lodash/_nativeKeysIn.js ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* This function is like
* [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
* except that it includes inherited enumerable properties.
*
* @private
* @param {Object} object The object to query.
* @returns {Array} Returns the array of property names.
*/
function nativeKeysIn(object) {
var result = [];
if (object != null) {
for (var key in Object(object)) {
result.push(key);
}
}
return result;
}
module.exports = nativeKeysIn;
/***/ }),
/***/ "./node_modules/lodash/_nodeUtil.js":
/*!******************************************!*\
!*** ./node_modules/lodash/_nodeUtil.js ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "./node_modules/lodash/_freeGlobal.js");
/** Detect free variable `exports`. */
var freeExports = true && exports && !exports.nodeType && exports;
/** Detect free variable `module`. */
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
/** Detect the popular CommonJS extension `module.exports`. */
var moduleExports = freeModule && freeModule.exports === freeExports;
/** Detect free variable `process` from Node.js. */
var freeProcess = moduleExports && freeGlobal.process;
/** Used to access faster Node.js helpers. */
var nodeUtil = (function() {
try {
// Use `util.types` for Node.js 10+.
var types = freeModule && freeModule.require && freeModule.require('util').types;
if (types) {
return types;
}
// Legacy `process.binding('util')` for Node.js < 10.
return freeProcess && freeProcess.binding && freeProcess.binding('util');
} catch (e) {}
}());
module.exports = nodeUtil;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))
/***/ }),
/***/ "./node_modules/lodash/_objectToString.js":
/*!************************************************!*\
!*** ./node_modules/lodash/_objectToString.js ***!
\************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/** Used for built-in method references. */
var objectProto = Object.prototype;
/**
* Used to resolve the
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
* of values.
*/
var nativeObjectToString = objectProto.toString;
/**
* Converts `value` to a string using `Object.prototype.toString`.
*
* @private
* @param {*} value The value to convert.
* @returns {string} Returns the converted string.
*/
function objectToString(value) {
return nativeObjectToString.call(value);
}
module.exports = objectToString;
/***/ }),
/***/ "./node_modules/lodash/_overArg.js":
/*!*****************************************!*\
!*** ./node_modules/lodash/_overArg.js ***!
\*****************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* Creates a unary function that invokes `func` with its argument transformed.
*
* @private
* @param {Function} func The function to wrap.
* @param {Function} transform The argument transform.
* @returns {Function} Returns the new function.
*/
function overArg(func, transform) {
return function(arg) {
return func(transform(arg));
};
}
module.exports = overArg;
/***/ }),
/***/ "./node_modules/lodash/_overRest.js":
/*!******************************************!*\
!*** ./node_modules/lodash/_overRest.js ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var apply = __webpack_require__(/*! ./_apply */ "./node_modules/lodash/_apply.js");
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeMax = Math.max;
/**
* A specialized version of `baseRest` which transforms the rest array.
*
* @private
* @param {Function} func The function to apply a rest parameter to.
* @param {number} [start=func.length-1] The start position of the rest parameter.
* @param {Function} transform The rest array transform.
* @returns {Function} Returns the new function.
*/
function overRest(func, start, transform) {
start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
return function() {
var args = arguments,
index = -1,
length = nativeMax(args.length - start, 0),
array = Array(length);
while (++index < length) {
array[index] = args[start + index];
}
index = -1;
var otherArgs = Array(start + 1);
while (++index < start) {
otherArgs[index] = args[index];
}
otherArgs[start] = transform(array);
return apply(func, this, otherArgs);
};
}
module.exports = overRest;
/***/ }),
/***/ "./node_modules/lodash/_parent.js":
/*!****************************************!*\
!*** ./node_modules/lodash/_parent.js ***!
\****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseGet = __webpack_require__(/*! ./_baseGet */ "./node_modules/lodash/_baseGet.js"),
baseSlice = __webpack_require__(/*! ./_baseSlice */ "./node_modules/lodash/_baseSlice.js");
/**
* Gets the parent value at `path` of `object`.
*
* @private
* @param {Object} object The object to query.
* @param {Array} path The path to get the parent value of.
* @returns {*} Returns the parent value.
*/
function parent(object, path) {
return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
}
module.exports = parent;
/***/ }),
/***/ "./node_modules/lodash/_root.js":
/*!**************************************!*\
!*** ./node_modules/lodash/_root.js ***!
\**************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "./node_modules/lodash/_freeGlobal.js");
/** Detect free variable `self`. */
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
/** Used as a reference to the global object. */
var root = freeGlobal || freeSelf || Function('return this')();
module.exports = root;
/***/ }),
/***/ "./node_modules/lodash/_safeGet.js":
/*!*****************************************!*\
!*** ./node_modules/lodash/_safeGet.js ***!
\*****************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* Gets the value at `key`, unless `key` is "__proto__" or "constructor".
*
* @private
* @param {Object} object The object to query.
* @param {string} key The key of the property to get.
* @returns {*} Returns the property value.
*/
function safeGet(object, key) {
if (key === 'constructor' && typeof object[key] === 'function') {
return;
}
if (key == '__proto__') {
return;
}
return object[key];
}
module.exports = safeGet;
/***/ }),
/***/ "./node_modules/lodash/_setCacheAdd.js":
/*!*********************************************!*\
!*** ./node_modules/lodash/_setCacheAdd.js ***!
\*********************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/** Used to stand-in for `undefined` hash values. */
var HASH_UNDEFINED = '__lodash_hash_undefined__';
/**
* Adds `value` to the array cache.
*
* @private
* @name add
* @memberOf SetCache
* @alias push
* @param {*} value The value to cache.
* @returns {Object} Returns the cache instance.
*/
function setCacheAdd(value) {
this.__data__.set(value, HASH_UNDEFINED);
return this;
}
module.exports = setCacheAdd;
/***/ }),
/***/ "./node_modules/lodash/_setCacheHas.js":
/*!*********************************************!*\
!*** ./node_modules/lodash/_setCacheHas.js ***!
\*********************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* Checks if `value` is in the array cache.
*
* @private
* @name has
* @memberOf SetCache
* @param {*} value The value to search for.
* @returns {number} Returns `true` if `value` is found, else `false`.
*/
function setCacheHas(value) {
return this.__data__.has(value);
}
module.exports = setCacheHas;
/***/ }),
/***/ "./node_modules/lodash/_setToArray.js":
/*!********************************************!*\
!*** ./node_modules/lodash/_setToArray.js ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* Converts `set` to an array of its values.
*
* @private
* @param {Object} set The set to convert.
* @returns {Array} Returns the values.
*/
function setToArray(set) {
var index = -1,
result = Array(set.size);
set.forEach(function(value) {
result[++index] = value;
});
return result;
}
module.exports = setToArray;
/***/ }),
/***/ "./node_modules/lodash/_setToString.js":
/*!*********************************************!*\
!*** ./node_modules/lodash/_setToString.js ***!
\*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseSetToString = __webpack_require__(/*! ./_baseSetToString */ "./node_modules/lodash/_baseSetToString.js"),
shortOut = __webpack_require__(/*! ./_shortOut */ "./node_modules/lodash/_shortOut.js");
/**
* Sets the `toString` method of `func` to return `string`.
*
* @private
* @param {Function} func The function to modify.
* @param {Function} string The `toString` result.
* @returns {Function} Returns `func`.
*/
var setToString = shortOut(baseSetToString);
module.exports = setToString;
/***/ }),
/***/ "./node_modules/lodash/_shortOut.js":
/*!******************************************!*\
!*** ./node_modules/lodash/_shortOut.js ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/** Used to detect hot functions by number of calls within a span of milliseconds. */
var HOT_COUNT = 800,
HOT_SPAN = 16;
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeNow = Date.now;
/**
* Creates a function that'll short out and invoke `identity` instead
* of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
* milliseconds.
*
* @private
* @param {Function} func The function to restrict.
* @returns {Function} Returns the new shortable function.
*/
function shortOut(func) {
var count = 0,
lastCalled = 0;
return function() {
var stamp = nativeNow(),
remaining = HOT_SPAN - (stamp - lastCalled);
lastCalled = stamp;
if (remaining > 0) {
if (++count >= HOT_COUNT) {
return arguments[0];
}
} else {
count = 0;
}
return func.apply(undefined, arguments);
};
}
module.exports = shortOut;
/***/ }),
/***/ "./node_modules/lodash/_stackClear.js":
/*!********************************************!*\
!*** ./node_modules/lodash/_stackClear.js ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js");
/**
* Removes all key-value entries from the stack.
*
* @private
* @name clear
* @memberOf Stack
*/
function stackClear() {
this.__data__ = new ListCache;
this.size = 0;
}
module.exports = stackClear;
/***/ }),
/***/ "./node_modules/lodash/_stackDelete.js":
/*!*********************************************!*\
!*** ./node_modules/lodash/_stackDelete.js ***!
\*********************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* Removes `key` and its value from the stack.
*
* @private
* @name delete
* @memberOf Stack
* @param {string} key The key of the value to remove.
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
*/
function stackDelete(key) {
var data = this.__data__,
result = data['delete'](key);
this.size = data.size;
return result;
}
module.exports = stackDelete;
/***/ }),
/***/ "./node_modules/lodash/_stackGet.js":
/*!******************************************!*\
!*** ./node_modules/lodash/_stackGet.js ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* Gets the stack value for `key`.
*
* @private
* @name get
* @memberOf Stack
* @param {string} key The key of the value to get.
* @returns {*} Returns the entry value.
*/
function stackGet(key) {
return this.__data__.get(key);
}
module.exports = stackGet;
/***/ }),
/***/ "./node_modules/lodash/_stackHas.js":
/*!******************************************!*\
!*** ./node_modules/lodash/_stackHas.js ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* Checks if a stack value for `key` exists.
*
* @private
* @name has
* @memberOf Stack
* @param {string} key The key of the entry to check.
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
*/
function stackHas(key) {
return this.__data__.has(key);
}
module.exports = stackHas;
/***/ }),
/***/ "./node_modules/lodash/_stackSet.js":
/*!******************************************!*\
!*** ./node_modules/lodash/_stackSet.js ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var ListCache = __webpack_require__(/*! ./_ListCache */ "./node_modules/lodash/_ListCache.js"),
Map = __webpack_require__(/*! ./_Map */ "./node_modules/lodash/_Map.js"),
MapCache = __webpack_require__(/*! ./_MapCache */ "./node_modules/lodash/_MapCache.js");
/** Used as the size to enable large array optimizations. */
var LARGE_ARRAY_SIZE = 200;
/**
* Sets the stack `key` to `value`.
*
* @private
* @name set
* @memberOf Stack
* @param {string} key The key of the value to set.
* @param {*} value The value to set.
* @returns {Object} Returns the stack cache instance.
*/
function stackSet(key, value) {
var data = this.__data__;
if (data instanceof ListCache) {
var pairs = data.__data__;
if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
pairs.push([key, value]);
this.size = ++data.size;
return this;
}
data = this.__data__ = new MapCache(pairs);
}
data.set(key, value);
this.size = data.size;
return this;
}
module.exports = stackSet;
/***/ }),
/***/ "./node_modules/lodash/_strictIndexOf.js":
/*!***********************************************!*\
!*** ./node_modules/lodash/_strictIndexOf.js ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* A specialized version of `_.indexOf` which performs strict equality
* comparisons of values, i.e. `===`.
*
* @private
* @param {Array} array The array to inspect.
* @param {*} value The value to search for.
* @param {number} fromIndex The index to search from.
* @returns {number} Returns the index of the matched value, else `-1`.
*/
function strictIndexOf(array, value, fromIndex) {
var index = fromIndex - 1,
length = array.length;
while (++index < length) {
if (array[index] === value) {
return index;
}
}
return -1;
}
module.exports = strictIndexOf;
/***/ }),
/***/ "./node_modules/lodash/_stringSize.js":
/*!********************************************!*\
!*** ./node_modules/lodash/_stringSize.js ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var asciiSize = __webpack_require__(/*! ./_asciiSize */ "./node_modules/lodash/_asciiSize.js"),
hasUnicode = __webpack_require__(/*! ./_hasUnicode */ "./node_modules/lodash/_hasUnicode.js"),
unicodeSize = __webpack_require__(/*! ./_unicodeSize */ "./node_modules/lodash/_unicodeSize.js");
/**
* Gets the number of symbols in `string`.
*
* @private
* @param {string} string The string to inspect.
* @returns {number} Returns the string size.
*/
function stringSize(string) {
return hasUnicode(string)
? unicodeSize(string)
: asciiSize(string);
}
module.exports = stringSize;
/***/ }),
/***/ "./node_modules/lodash/_stringToArray.js":
/*!***********************************************!*\
!*** ./node_modules/lodash/_stringToArray.js ***!
\***********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var asciiToArray = __webpack_require__(/*! ./_asciiToArray */ "./node_modules/lodash/_asciiToArray.js"),
hasUnicode = __webpack_require__(/*! ./_hasUnicode */ "./node_modules/lodash/_hasUnicode.js"),
unicodeToArray = __webpack_require__(/*! ./_unicodeToArray */ "./node_modules/lodash/_unicodeToArray.js");
/**
* Converts `string` to an array.
*
* @private
* @param {string} string The string to convert.
* @returns {Array} Returns the converted array.
*/
function stringToArray(string) {
return hasUnicode(string)
? unicodeToArray(string)
: asciiToArray(string);
}
module.exports = stringToArray;
/***/ }),
/***/ "./node_modules/lodash/_stringToPath.js":
/*!**********************************************!*\
!*** ./node_modules/lodash/_stringToPath.js ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var memoizeCapped = __webpack_require__(/*! ./_memoizeCapped */ "./node_modules/lodash/_memoizeCapped.js");
/** Used to match property names within property paths. */
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
/** Used to match backslashes in property paths. */
var reEscapeChar = /\\(\\)?/g;
/**
* Converts `string` to a property path array.
*
* @private
* @param {string} string The string to convert.
* @returns {Array} Returns the property path array.
*/
var stringToPath = memoizeCapped(function(string) {
var result = [];
if (string.charCodeAt(0) === 46 /* . */) {
result.push('');
}
string.replace(rePropName, function(match, number, quote, subString) {
result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
});
return result;
});
module.exports = stringToPath;
/***/ }),
/***/ "./node_modules/lodash/_toKey.js":
/*!***************************************!*\
!*** ./node_modules/lodash/_toKey.js ***!
\***************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");
/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0;
/**
* Converts `value` to a string key if it's not a string or symbol.
*
* @private
* @param {*} value The value to inspect.
* @returns {string|symbol} Returns the key.
*/
function toKey(value) {
if (typeof value == 'string' || isSymbol(value)) {
return value;
}
var result = (value + '');
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
}
module.exports = toKey;
/***/ }),
/***/ "./node_modules/lodash/_toSource.js":
/*!******************************************!*\
!*** ./node_modules/lodash/_toSource.js ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/** Used for built-in method references. */
var funcProto = Function.prototype;
/** Used to resolve the decompiled source of functions. */
var funcToString = funcProto.toString;
/**
* Converts `func` to its source code.
*
* @private
* @param {Function} func The function to convert.
* @returns {string} Returns the source code.
*/
function toSource(func) {
if (func != null) {
try {
return funcToString.call(func);
} catch (e) {}
try {
return (func + '');
} catch (e) {}
}
return '';
}
module.exports = toSource;
/***/ }),
/***/ "./node_modules/lodash/_trimmedEndIndex.js":
/*!*************************************************!*\
!*** ./node_modules/lodash/_trimmedEndIndex.js ***!
\*************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/** Used to match a single whitespace character. */
var reWhitespace = /\s/;
/**
* Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
* character of `string`.
*
* @private
* @param {string} string The string to inspect.
* @returns {number} Returns the index of the last non-whitespace character.
*/
function trimmedEndIndex(string) {
var index = string.length;
while (index-- && reWhitespace.test(string.charAt(index))) {}
return index;
}
module.exports = trimmedEndIndex;
/***/ }),
/***/ "./node_modules/lodash/_unicodeSize.js":
/*!*********************************************!*\
!*** ./node_modules/lodash/_unicodeSize.js ***!
\*********************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/** Used to compose unicode character classes. */
var rsAstralRange = '\\ud800-\\udfff',
rsComboMarksRange = '\\u0300-\\u036f',
reComboHalfMarksRange = '\\ufe20-\\ufe2f',
rsComboSymbolsRange = '\\u20d0-\\u20ff',
rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
rsVarRange = '\\ufe0e\\ufe0f';
/** Used to compose unicode capture groups. */
var rsAstral = '[' + rsAstralRange + ']',
rsCombo = '[' + rsComboRange + ']',
rsFitz = '\\ud83c[\\udffb-\\udfff]',
rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
rsNonAstral = '[^' + rsAstralRange + ']',
rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
rsZWJ = '\\u200d';
/** Used to compose unicode regexes. */
var reOptMod = rsModifier + '?',
rsOptVar = '[' + rsVarRange + ']?',
rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
rsSeq = rsOptVar + reOptMod + rsOptJoin,
rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
/**
* Gets the size of a Unicode `string`.
*
* @private
* @param {string} string The string inspect.
* @returns {number} Returns the string size.
*/
function unicodeSize(string) {
var result = reUnicode.lastIndex = 0;
while (reUnicode.test(string)) {
++result;
}
return result;
}
module.exports = unicodeSize;
/***/ }),
/***/ "./node_modules/lodash/_unicodeToArray.js":
/*!************************************************!*\
!*** ./node_modules/lodash/_unicodeToArray.js ***!
\************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/** Used to compose unicode character classes. */
var rsAstralRange = '\\ud800-\\udfff',
rsComboMarksRange = '\\u0300-\\u036f',
reComboHalfMarksRange = '\\ufe20-\\ufe2f',
rsComboSymbolsRange = '\\u20d0-\\u20ff',
rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
rsVarRange = '\\ufe0e\\ufe0f';
/** Used to compose unicode capture groups. */
var rsAstral = '[' + rsAstralRange + ']',
rsCombo = '[' + rsComboRange + ']',
rsFitz = '\\ud83c[\\udffb-\\udfff]',
rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
rsNonAstral = '[^' + rsAstralRange + ']',
rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
rsZWJ = '\\u200d';
/** Used to compose unicode regexes. */
var reOptMod = rsModifier + '?',
rsOptVar = '[' + rsVarRange + ']?',
rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
rsSeq = rsOptVar + reOptMod + rsOptJoin,
rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
/**
* Converts a Unicode `string` to an array.
*
* @private
* @param {string} string The string to convert.
* @returns {Array} Returns the converted array.
*/
function unicodeToArray(string) {
return string.match(reUnicode) || [];
}
module.exports = unicodeToArray;
/***/ }),
/***/ "./node_modules/lodash/cloneDeep.js":
/*!******************************************!*\
!*** ./node_modules/lodash/cloneDeep.js ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseClone = __webpack_require__(/*! ./_baseClone */ "./node_modules/lodash/_baseClone.js");
/** Used to compose bitmasks for cloning. */
var CLONE_DEEP_FLAG = 1,
CLONE_SYMBOLS_FLAG = 4;
/**
* This method is like `_.clone` except that it recursively clones `value`.
*
* @static
* @memberOf _
* @since 1.0.0
* @category Lang
* @param {*} value The value to recursively clone.
* @returns {*} Returns the deep cloned value.
* @see _.clone
* @example
*
* var objects = [{ 'a': 1 }, { 'b': 2 }];
*
* var deep = _.cloneDeep(objects);
* console.log(deep[0] === objects[0]);
* // => false
*/
function cloneDeep(value) {
return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
}
module.exports = cloneDeep;
/***/ }),
/***/ "./node_modules/lodash/constant.js":
/*!*****************************************!*\
!*** ./node_modules/lodash/constant.js ***!
\*****************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* Creates a function that returns `value`.
*
* @static
* @memberOf _
* @since 2.4.0
* @category Util
* @param {*} value The value to return from the new function.
* @returns {Function} Returns the new constant function.
* @example
*
* var objects = _.times(2, _.constant({ 'a': 1 }));
*
* console.log(objects);
* // => [{ 'a': 1 }, { 'a': 1 }]
*
* console.log(objects[0] === objects[1]);
* // => true
*/
function constant(value) {
return function() {
return value;
};
}
module.exports = constant;
/***/ }),
/***/ "./node_modules/lodash/debounce.js":
/*!*****************************************!*\
!*** ./node_modules/lodash/debounce.js ***!
\*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
now = __webpack_require__(/*! ./now */ "./node_modules/lodash/now.js"),
toNumber = __webpack_require__(/*! ./toNumber */ "./node_modules/lodash/toNumber.js");
/** Error message constants. */
var FUNC_ERROR_TEXT = 'Expected a function';
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeMax = Math.max,
nativeMin = Math.min;
/**
* Creates a debounced function that delays invoking `func` until after `wait`
* milliseconds have elapsed since the last time the debounced function was
* invoked. The debounced function comes with a `cancel` method to cancel
* delayed `func` invocations and a `flush` method to immediately invoke them.
* Provide `options` to indicate whether `func` should be invoked on the
* leading and/or trailing edge of the `wait` timeout. The `func` is invoked
* with the last arguments provided to the debounced function. Subsequent
* calls to the debounced function return the result of the last `func`
* invocation.
*
* **Note:** If `leading` and `trailing` options are `true`, `func` is
* invoked on the trailing edge of the timeout only if the debounced function
* is invoked more than once during the `wait` timeout.
*
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
* until to the next tick, similar to `setTimeout` with a timeout of `0`.
*
* See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
* for details over the differences between `_.debounce` and `_.throttle`.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Function
* @param {Function} func The function to debounce.
* @param {number} [wait=0] The number of milliseconds to delay.
* @param {Object} [options={}] The options object.
* @param {boolean} [options.leading=false]
* Specify invoking on the leading edge of the timeout.
* @param {number} [options.maxWait]
* The maximum time `func` is allowed to be delayed before it's invoked.
* @param {boolean} [options.trailing=true]
* Specify invoking on the trailing edge of the timeout.
* @returns {Function} Returns the new debounced function.
* @example
*
* // Avoid costly calculations while the window size is in flux.
* jQuery(window).on('resize', _.debounce(calculateLayout, 150));
*
* // Invoke `sendMail` when clicked, debouncing subsequent calls.
* jQuery(element).on('click', _.debounce(sendMail, 300, {
* 'leading': true,
* 'trailing': false
* }));
*
* // Ensure `batchLog` is invoked once after 1 second of debounced calls.
* var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
* var source = new EventSource('/stream');
* jQuery(source).on('message', debounced);
*
* // Cancel the trailing debounced invocation.
* jQuery(window).on('popstate', debounced.cancel);
*/
function debounce(func, wait, options) {
var lastArgs,
lastThis,
maxWait,
result,
timerId,
lastCallTime,
lastInvokeTime = 0,
leading = false,
maxing = false,
trailing = true;
if (typeof func != 'function') {
throw new TypeError(FUNC_ERROR_TEXT);
}
wait = toNumber(wait) || 0;
if (isObject(options)) {
leading = !!options.leading;
maxing = 'maxWait' in options;
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
trailing = 'trailing' in options ? !!options.trailing : trailing;
}
function invokeFunc(time) {
var args = lastArgs,
thisArg = lastThis;
lastArgs = lastThis = undefined;
lastInvokeTime = time;
result = func.apply(thisArg, args);
return result;
}
function leadingEdge(time) {
// Reset any `maxWait` timer.
lastInvokeTime = time;
// Start the timer for the trailing edge.
timerId = setTimeout(timerExpired, wait);
// Invoke the leading edge.
return leading ? invokeFunc(time) : result;
}
function remainingWait(time) {
var timeSinceLastCall = time - lastCallTime,
timeSinceLastInvoke = time - lastInvokeTime,
timeWaiting = wait - timeSinceLastCall;
return maxing
? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
: timeWaiting;
}
function shouldInvoke(time) {
var timeSinceLastCall = time - lastCallTime,
timeSinceLastInvoke = time - lastInvokeTime;
// Either this is the first call, activity has stopped and we're at the
// trailing edge, the system time has gone backwards and we're treating
// it as the trailing edge, or we've hit the `maxWait` limit.
return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
(timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
}
function timerExpired() {
var time = now();
if (shouldInvoke(time)) {
return trailingEdge(time);
}
// Restart the timer.
timerId = setTimeout(timerExpired, remainingWait(time));
}
function trailingEdge(time) {
timerId = undefined;
// Only invoke if we have `lastArgs` which means `func` has been
// debounced at least once.
if (trailing && lastArgs) {
return invokeFunc(time);
}
lastArgs = lastThis = undefined;
return result;
}
function cancel() {
if (timerId !== undefined) {
clearTimeout(timerId);
}
lastInvokeTime = 0;
lastArgs = lastCallTime = lastThis = timerId = undefined;
}
function flush() {
return timerId === undefined ? result : trailingEdge(now());
}
function debounced() {
var time = now(),
isInvoking = shouldInvoke(time);
lastArgs = arguments;
lastThis = this;
lastCallTime = time;
if (isInvoking) {
if (timerId === undefined) {
return leadingEdge(lastCallTime);
}
if (maxing) {
// Handle invocations in a tight loop.
clearTimeout(timerId);
timerId = setTimeout(timerExpired, wait);
return invokeFunc(lastCallTime);
}
}
if (timerId === undefined) {
timerId = setTimeout(timerExpired, wait);
}
return result;
}
debounced.cancel = cancel;
debounced.flush = flush;
return debounced;
}
module.exports = debounce;
/***/ }),
/***/ "./node_modules/lodash/eq.js":
/*!***********************************!*\
!*** ./node_modules/lodash/eq.js ***!
\***********************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* Performs a
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
* comparison between two values to determine if they are equivalent.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to compare.
* @param {*} other The other value to compare.
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
* @example
*
* var object = { 'a': 1 };
* var other = { 'a': 1 };
*
* _.eq(object, object);
* // => true
*
* _.eq(object, other);
* // => false
*
* _.eq('a', 'a');
* // => true
*
* _.eq('a', Object('a'));
* // => false
*
* _.eq(NaN, NaN);
* // => true
*/
function eq(value, other) {
return value === other || (value !== value && other !== other);
}
module.exports = eq;
/***/ }),
/***/ "./node_modules/lodash/find.js":
/*!*************************************!*\
!*** ./node_modules/lodash/find.js ***!
\*************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var createFind = __webpack_require__(/*! ./_createFind */ "./node_modules/lodash/_createFind.js"),
findIndex = __webpack_require__(/*! ./findIndex */ "./node_modules/lodash/findIndex.js");
/**
* Iterates over elements of `collection`, returning the first element
* `predicate` returns truthy for. The predicate is invoked with three
* arguments: (value, index|key, collection).
*
* @static
* @memberOf _
* @since 0.1.0
* @category Collection
* @param {Array|Object} collection The collection to inspect.
* @param {Function} [predicate=_.identity] The function invoked per iteration.
* @param {number} [fromIndex=0] The index to search from.
* @returns {*} Returns the matched element, else `undefined`.
* @example
*
* var users = [
* { 'user': 'barney', 'age': 36, 'active': true },
* { 'user': 'fred', 'age': 40, 'active': false },
* { 'user': 'pebbles', 'age': 1, 'active': true }
* ];
*
* _.find(users, function(o) { return o.age < 40; });
* // => object for 'barney'
*
* // The `_.matches` iteratee shorthand.
* _.find(users, { 'age': 1, 'active': true });
* // => object for 'pebbles'
*
* // The `_.matchesProperty` iteratee shorthand.
* _.find(users, ['active', false]);
* // => object for 'fred'
*
* // The `_.property` iteratee shorthand.
* _.find(users, 'active');
* // => object for 'barney'
*/
var find = createFind(findIndex);
module.exports = find;
/***/ }),
/***/ "./node_modules/lodash/findIndex.js":
/*!******************************************!*\
!*** ./node_modules/lodash/findIndex.js ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseFindIndex = __webpack_require__(/*! ./_baseFindIndex */ "./node_modules/lodash/_baseFindIndex.js"),
baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
toInteger = __webpack_require__(/*! ./toInteger */ "./node_modules/lodash/toInteger.js");
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeMax = Math.max;
/**
* This method is like `_.find` except that it returns the index of the first
* element `predicate` returns truthy for instead of the element itself.
*
* @static
* @memberOf _
* @since 1.1.0
* @category Array
* @param {Array} array The array to inspect.
* @param {Function} [predicate=_.identity] The function invoked per iteration.
* @param {number} [fromIndex=0] The index to search from.
* @returns {number} Returns the index of the found element, else `-1`.
* @example
*
* var users = [
* { 'user': 'barney', 'active': false },
* { 'user': 'fred', 'active': false },
* { 'user': 'pebbles', 'active': true }
* ];
*
* _.findIndex(users, function(o) { return o.user == 'barney'; });
* // => 0
*
* // The `_.matches` iteratee shorthand.
* _.findIndex(users, { 'user': 'fred', 'active': false });
* // => 1
*
* // The `_.matchesProperty` iteratee shorthand.
* _.findIndex(users, ['active', false]);
* // => 0
*
* // The `_.property` iteratee shorthand.
* _.findIndex(users, 'active');
* // => 2
*/
function findIndex(array, predicate, fromIndex) {
var length = array == null ? 0 : array.length;
if (!length) {
return -1;
}
var index = fromIndex == null ? 0 : toInteger(fromIndex);
if (index < 0) {
index = nativeMax(length + index, 0);
}
return baseFindIndex(array, baseIteratee(predicate, 3), index);
}
module.exports = findIndex;
/***/ }),
/***/ "./node_modules/lodash/flatten.js":
/*!****************************************!*\
!*** ./node_modules/lodash/flatten.js ***!
\****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "./node_modules/lodash/_baseFlatten.js");
/**
* Flattens `array` a single level deep.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Array
* @param {Array} array The array to flatten.
* @returns {Array} Returns the new flattened array.
* @example
*
* _.flatten([1, [2, [3, [4]], 5]]);
* // => [1, 2, [3, [4]], 5]
*/
function flatten(array) {
var length = array == null ? 0 : array.length;
return length ? baseFlatten(array, 1) : [];
}
module.exports = flatten;
/***/ }),
/***/ "./node_modules/lodash/get.js":
/*!************************************!*\
!*** ./node_modules/lodash/get.js ***!
\************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseGet = __webpack_require__(/*! ./_baseGet */ "./node_modules/lodash/_baseGet.js");
/**
* Gets the value at `path` of `object`. If the resolved value is
* `undefined`, the `defaultValue` is returned in its place.
*
* @static
* @memberOf _
* @since 3.7.0
* @category Object
* @param {Object} object The object to query.
* @param {Array|string} path The path of the property to get.
* @param {*} [defaultValue] The value returned for `undefined` resolved values.
* @returns {*} Returns the resolved value.
* @example
*
* var object = { 'a': [{ 'b': { 'c': 3 } }] };
*
* _.get(object, 'a[0].b.c');
* // => 3
*
* _.get(object, ['a', '0', 'b', 'c']);
* // => 3
*
* _.get(object, 'a.b.c', 'default');
* // => 'default'
*/
function get(object, path, defaultValue) {
var result = object == null ? undefined : baseGet(object, path);
return result === undefined ? defaultValue : result;
}
module.exports = get;
/***/ }),
/***/ "./node_modules/lodash/has.js":
/*!************************************!*\
!*** ./node_modules/lodash/has.js ***!
\************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseHas = __webpack_require__(/*! ./_baseHas */ "./node_modules/lodash/_baseHas.js"),
hasPath = __webpack_require__(/*! ./_hasPath */ "./node_modules/lodash/_hasPath.js");
/**
* Checks if `path` is a direct property of `object`.
*
* @static
* @since 0.1.0
* @memberOf _
* @category Object
* @param {Object} object The object to query.
* @param {Array|string} path The path to check.
* @returns {boolean} Returns `true` if `path` exists, else `false`.
* @example
*
* var object = { 'a': { 'b': 2 } };
* var other = _.create({ 'a': _.create({ 'b': 2 }) });
*
* _.has(object, 'a');
* // => true
*
* _.has(object, 'a.b');
* // => true
*
* _.has(object, ['a', 'b']);
* // => true
*
* _.has(other, 'a');
* // => false
*/
function has(object, path) {
return object != null && hasPath(object, path, baseHas);
}
module.exports = has;
/***/ }),
/***/ "./node_modules/lodash/hasIn.js":
/*!**************************************!*\
!*** ./node_modules/lodash/hasIn.js ***!
\**************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseHasIn = __webpack_require__(/*! ./_baseHasIn */ "./node_modules/lodash/_baseHasIn.js"),
hasPath = __webpack_require__(/*! ./_hasPath */ "./node_modules/lodash/_hasPath.js");
/**
* Checks if `path` is a direct or inherited property of `object`.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Object
* @param {Object} object The object to query.
* @param {Array|string} path The path to check.
* @returns {boolean} Returns `true` if `path` exists, else `false`.
* @example
*
* var object = _.create({ 'a': _.create({ 'b': 2 }) });
*
* _.hasIn(object, 'a');
* // => true
*
* _.hasIn(object, 'a.b');
* // => true
*
* _.hasIn(object, ['a', 'b']);
* // => true
*
* _.hasIn(object, 'b');
* // => false
*/
function hasIn(object, path) {
return object != null && hasPath(object, path, baseHasIn);
}
module.exports = hasIn;
/***/ }),
/***/ "./node_modules/lodash/identity.js":
/*!*****************************************!*\
!*** ./node_modules/lodash/identity.js ***!
\*****************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* This method returns the first argument it receives.
*
* @static
* @since 0.1.0
* @memberOf _
* @category Util
* @param {*} value Any value.
* @returns {*} Returns `value`.
* @example
*
* var object = { 'a': 1 };
*
* console.log(_.identity(object) === object);
* // => true
*/
function identity(value) {
return value;
}
module.exports = identity;
/***/ }),
/***/ "./node_modules/lodash/isArguments.js":
/*!********************************************!*\
!*** ./node_modules/lodash/isArguments.js ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseIsArguments = __webpack_require__(/*! ./_baseIsArguments */ "./node_modules/lodash/_baseIsArguments.js"),
isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
/** Used for built-in method references. */
var objectProto = Object.prototype;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/** Built-in value references. */
var propertyIsEnumerable = objectProto.propertyIsEnumerable;
/**
* Checks if `value` is likely an `arguments` object.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
* else `false`.
* @example
*
* _.isArguments(function() { return arguments; }());
* // => true
*
* _.isArguments([1, 2, 3]);
* // => false
*/
var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
!propertyIsEnumerable.call(value, 'callee');
};
module.exports = isArguments;
/***/ }),
/***/ "./node_modules/lodash/isArray.js":
/*!****************************************!*\
!*** ./node_modules/lodash/isArray.js ***!
\****************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* Checks if `value` is classified as an `Array` object.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
* @example
*
* _.isArray([1, 2, 3]);
* // => true
*
* _.isArray(document.body.children);
* // => false
*
* _.isArray('abc');
* // => false
*
* _.isArray(_.noop);
* // => false
*/
var isArray = Array.isArray;
module.exports = isArray;
/***/ }),
/***/ "./node_modules/lodash/isArrayLike.js":
/*!********************************************!*\
!*** ./node_modules/lodash/isArrayLike.js ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var isFunction = __webpack_require__(/*! ./isFunction */ "./node_modules/lodash/isFunction.js"),
isLength = __webpack_require__(/*! ./isLength */ "./node_modules/lodash/isLength.js");
/**
* Checks if `value` is array-like. A value is considered array-like if it's
* not a function and has a `value.length` that's an integer greater than or
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
* @example
*
* _.isArrayLike([1, 2, 3]);
* // => true
*
* _.isArrayLike(document.body.children);
* // => true
*
* _.isArrayLike('abc');
* // => true
*
* _.isArrayLike(_.noop);
* // => false
*/
function isArrayLike(value) {
return value != null && isLength(value.length) && !isFunction(value);
}
module.exports = isArrayLike;
/***/ }),
/***/ "./node_modules/lodash/isArrayLikeObject.js":
/*!**************************************************!*\
!*** ./node_modules/lodash/isArrayLikeObject.js ***!
\**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js"),
isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
/**
* This method is like `_.isArrayLike` except that it also checks if `value`
* is an object.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is an array-like object,
* else `false`.
* @example
*
* _.isArrayLikeObject([1, 2, 3]);
* // => true
*
* _.isArrayLikeObject(document.body.children);
* // => true
*
* _.isArrayLikeObject('abc');
* // => false
*
* _.isArrayLikeObject(_.noop);
* // => false
*/
function isArrayLikeObject(value) {
return isObjectLike(value) && isArrayLike(value);
}
module.exports = isArrayLikeObject;
/***/ }),
/***/ "./node_modules/lodash/isBuffer.js":
/*!*****************************************!*\
!*** ./node_modules/lodash/isBuffer.js ***!
\*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js"),
stubFalse = __webpack_require__(/*! ./stubFalse */ "./node_modules/lodash/stubFalse.js");
/** Detect free variable `exports`. */
var freeExports = true && exports && !exports.nodeType && exports;
/** Detect free variable `module`. */
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
/** Detect the popular CommonJS extension `module.exports`. */
var moduleExports = freeModule && freeModule.exports === freeExports;
/** Built-in value references. */
var Buffer = moduleExports ? root.Buffer : undefined;
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
/**
* Checks if `value` is a buffer.
*
* @static
* @memberOf _
* @since 4.3.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
* @example
*
* _.isBuffer(new Buffer(2));
* // => true
*
* _.isBuffer(new Uint8Array(2));
* // => false
*/
var isBuffer = nativeIsBuffer || stubFalse;
module.exports = isBuffer;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))
/***/ }),
/***/ "./node_modules/lodash/isFunction.js":
/*!*******************************************!*\
!*** ./node_modules/lodash/isFunction.js ***!
\*******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");
/** `Object#toString` result references. */
var asyncTag = '[object AsyncFunction]',
funcTag = '[object Function]',
genTag = '[object GeneratorFunction]',
proxyTag = '[object Proxy]';
/**
* Checks if `value` is classified as a `Function` object.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
* @example
*
* _.isFunction(_);
* // => true
*
* _.isFunction(/abc/);
* // => false
*/
function isFunction(value) {
if (!isObject(value)) {
return false;
}
// The use of `Object#toString` avoids issues with the `typeof` operator
// in Safari 9 which returns 'object' for typed arrays and other constructors.
var tag = baseGetTag(value);
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
}
module.exports = isFunction;
/***/ }),
/***/ "./node_modules/lodash/isLength.js":
/*!*****************************************!*\
!*** ./node_modules/lodash/isLength.js ***!
\*****************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/** Used as references for various `Number` constants. */
var MAX_SAFE_INTEGER = 9007199254740991;
/**
* Checks if `value` is a valid array-like length.
*
* **Note:** This method is loosely based on
* [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
* @example
*
* _.isLength(3);
* // => true
*
* _.isLength(Number.MIN_VALUE);
* // => false
*
* _.isLength(Infinity);
* // => false
*
* _.isLength('3');
* // => false
*/
function isLength(value) {
return typeof value == 'number' &&
value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
}
module.exports = isLength;
/***/ }),
/***/ "./node_modules/lodash/isMap.js":
/*!**************************************!*\
!*** ./node_modules/lodash/isMap.js ***!
\**************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseIsMap = __webpack_require__(/*! ./_baseIsMap */ "./node_modules/lodash/_baseIsMap.js"),
baseUnary = __webpack_require__(/*! ./_baseUnary */ "./node_modules/lodash/_baseUnary.js"),
nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "./node_modules/lodash/_nodeUtil.js");
/* Node.js helper references. */
var nodeIsMap = nodeUtil && nodeUtil.isMap;
/**
* Checks if `value` is classified as a `Map` object.
*
* @static
* @memberOf _
* @since 4.3.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a map, else `false`.
* @example
*
* _.isMap(new Map);
* // => true
*
* _.isMap(new WeakMap);
* // => false
*/
var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
module.exports = isMap;
/***/ }),
/***/ "./node_modules/lodash/isNil.js":
/*!**************************************!*\
!*** ./node_modules/lodash/isNil.js ***!
\**************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* Checks if `value` is `null` or `undefined`.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is nullish, else `false`.
* @example
*
* _.isNil(null);
* // => true
*
* _.isNil(void 0);
* // => true
*
* _.isNil(NaN);
* // => false
*/
function isNil(value) {
return value == null;
}
module.exports = isNil;
/***/ }),
/***/ "./node_modules/lodash/isObject.js":
/*!*****************************************!*\
!*** ./node_modules/lodash/isObject.js ***!
\*****************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* Checks if `value` is the
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
*
* @static
* @memberOf _
* @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
* @example
*
* _.isObject({});
* // => true
*
* _.isObject([1, 2, 3]);
* // => true
*
* _.isObject(_.noop);
* // => true
*
* _.isObject(null);
* // => false
*/
function isObject(value) {
var type = typeof value;
return value != null && (type == 'object' || type == 'function');
}
module.exports = isObject;
/***/ }),
/***/ "./node_modules/lodash/isObjectLike.js":
/*!*********************************************!*\
!*** ./node_modules/lodash/isObjectLike.js ***!
\*********************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* Checks if `value` is object-like. A value is object-like if it's not `null`
* and has a `typeof` result of "object".
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
* @example
*
* _.isObjectLike({});
* // => true
*
* _.isObjectLike([1, 2, 3]);
* // => true
*
* _.isObjectLike(_.noop);
* // => false
*
* _.isObjectLike(null);
* // => false
*/
function isObjectLike(value) {
return value != null && typeof value == 'object';
}
module.exports = isObjectLike;
/***/ }),
/***/ "./node_modules/lodash/isPlainObject.js":
/*!**********************************************!*\
!*** ./node_modules/lodash/isPlainObject.js ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
getPrototype = __webpack_require__(/*! ./_getPrototype */ "./node_modules/lodash/_getPrototype.js"),
isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
/** `Object#toString` result references. */
var objectTag = '[object Object]';
/** Used for built-in method references. */
var funcProto = Function.prototype,
objectProto = Object.prototype;
/** Used to resolve the decompiled source of functions. */
var funcToString = funcProto.toString;
/** Used to check objects for own properties. */
var hasOwnProperty = objectProto.hasOwnProperty;
/** Used to infer the `Object` constructor. */
var objectCtorString = funcToString.call(Object);
/**
* Checks if `value` is a plain object, that is, an object created by the
* `Object` constructor or one with a `[[Prototype]]` of `null`.
*
* @static
* @memberOf _
* @since 0.8.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
* @example
*
* function Foo() {
* this.a = 1;
* }
*
* _.isPlainObject(new Foo);
* // => false
*
* _.isPlainObject([1, 2, 3]);
* // => false
*
* _.isPlainObject({ 'x': 0, 'y': 0 });
* // => true
*
* _.isPlainObject(Object.create(null));
* // => true
*/
function isPlainObject(value) {
if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
return false;
}
var proto = getPrototype(value);
if (proto === null) {
return true;
}
var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
return typeof Ctor == 'function' && Ctor instanceof Ctor &&
funcToString.call(Ctor) == objectCtorString;
}
module.exports = isPlainObject;
/***/ }),
/***/ "./node_modules/lodash/isRegExp.js":
/*!*****************************************!*\
!*** ./node_modules/lodash/isRegExp.js ***!
\*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseIsRegExp = __webpack_require__(/*! ./_baseIsRegExp */ "./node_modules/lodash/_baseIsRegExp.js"),
baseUnary = __webpack_require__(/*! ./_baseUnary */ "./node_modules/lodash/_baseUnary.js"),
nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "./node_modules/lodash/_nodeUtil.js");
/* Node.js helper references. */
var nodeIsRegExp = nodeUtil && nodeUtil.isRegExp;
/**
* Checks if `value` is classified as a `RegExp` object.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
* @example
*
* _.isRegExp(/abc/);
* // => true
*
* _.isRegExp('/abc/');
* // => false
*/
var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;
module.exports = isRegExp;
/***/ }),
/***/ "./node_modules/lodash/isSet.js":
/*!**************************************!*\
!*** ./node_modules/lodash/isSet.js ***!
\**************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseIsSet = __webpack_require__(/*! ./_baseIsSet */ "./node_modules/lodash/_baseIsSet.js"),
baseUnary = __webpack_require__(/*! ./_baseUnary */ "./node_modules/lodash/_baseUnary.js"),
nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "./node_modules/lodash/_nodeUtil.js");
/* Node.js helper references. */
var nodeIsSet = nodeUtil && nodeUtil.isSet;
/**
* Checks if `value` is classified as a `Set` object.
*
* @static
* @memberOf _
* @since 4.3.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a set, else `false`.
* @example
*
* _.isSet(new Set);
* // => true
*
* _.isSet(new WeakSet);
* // => false
*/
var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
module.exports = isSet;
/***/ }),
/***/ "./node_modules/lodash/isSymbol.js":
/*!*****************************************!*\
!*** ./node_modules/lodash/isSymbol.js ***!
\*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
/** `Object#toString` result references. */
var symbolTag = '[object Symbol]';
/**
* Checks if `value` is classified as a `Symbol` primitive or object.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
* @example
*
* _.isSymbol(Symbol.iterator);
* // => true
*
* _.isSymbol('abc');
* // => false
*/
function isSymbol(value) {
return typeof value == 'symbol' ||
(isObjectLike(value) && baseGetTag(value) == symbolTag);
}
module.exports = isSymbol;
/***/ }),
/***/ "./node_modules/lodash/isTypedArray.js":
/*!*********************************************!*\
!*** ./node_modules/lodash/isTypedArray.js ***!
\*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseIsTypedArray = __webpack_require__(/*! ./_baseIsTypedArray */ "./node_modules/lodash/_baseIsTypedArray.js"),
baseUnary = __webpack_require__(/*! ./_baseUnary */ "./node_modules/lodash/_baseUnary.js"),
nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "./node_modules/lodash/_nodeUtil.js");
/* Node.js helper references. */
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
/**
* Checks if `value` is classified as a typed array.
*
* @static
* @memberOf _
* @since 3.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
* @example
*
* _.isTypedArray(new Uint8Array);
* // => true
*
* _.isTypedArray([]);
* // => false
*/
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
module.exports = isTypedArray;
/***/ }),
/***/ "./node_modules/lodash/keys.js":
/*!*************************************!*\
!*** ./node_modules/lodash/keys.js ***!
\*************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ "./node_modules/lodash/_arrayLikeKeys.js"),
baseKeys = __webpack_require__(/*! ./_baseKeys */ "./node_modules/lodash/_baseKeys.js"),
isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js");
/**
* Creates an array of the own enumerable property names of `object`.
*
* **Note:** Non-object values are coerced to objects. See the
* [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
* for more details.
*
* @static
* @since 0.1.0
* @memberOf _
* @category Object
* @param {Object} object The object to query.
* @returns {Array} Returns the array of property names.
* @example
*
* function Foo() {
* this.a = 1;
* this.b = 2;
* }
*
* Foo.prototype.c = 3;
*
* _.keys(new Foo);
* // => ['a', 'b'] (iteration order is not guaranteed)
*
* _.keys('hi');
* // => ['0', '1']
*/
function keys(object) {
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
}
module.exports = keys;
/***/ }),
/***/ "./node_modules/lodash/keysIn.js":
/*!***************************************!*\
!*** ./node_modules/lodash/keysIn.js ***!
\***************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ "./node_modules/lodash/_arrayLikeKeys.js"),
baseKeysIn = __webpack_require__(/*! ./_baseKeysIn */ "./node_modules/lodash/_baseKeysIn.js"),
isArrayLike = __webpack_require__(/*! ./isArrayLike */ "./node_modules/lodash/isArrayLike.js");
/**
* Creates an array of the own and inherited enumerable property names of `object`.
*
* **Note:** Non-object values are coerced to objects.
*
* @static
* @memberOf _
* @since 3.0.0
* @category Object
* @param {Object} object The object to query.
* @returns {Array} Returns the array of property names.
* @example
*
* function Foo() {
* this.a = 1;
* this.b = 2;
* }
*
* Foo.prototype.c = 3;
*
* _.keysIn(new Foo);
* // => ['a', 'b', 'c'] (iteration order is not guaranteed)
*/
function keysIn(object) {
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
}
module.exports = keysIn;
/***/ }),
/***/ "./node_modules/lodash/last.js":
/*!*************************************!*\
!*** ./node_modules/lodash/last.js ***!
\*************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* Gets the last element of `array`.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Array
* @param {Array} array The array to query.
* @returns {*} Returns the last element of `array`.
* @example
*
* _.last([1, 2, 3]);
* // => 3
*/
function last(array) {
var length = array == null ? 0 : array.length;
return length ? array[length - 1] : undefined;
}
module.exports = last;
/***/ }),
/***/ "./node_modules/lodash/memoize.js":
/*!****************************************!*\
!*** ./node_modules/lodash/memoize.js ***!
\****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var MapCache = __webpack_require__(/*! ./_MapCache */ "./node_modules/lodash/_MapCache.js");
/** Error message constants. */
var FUNC_ERROR_TEXT = 'Expected a function';
/**
* Creates a function that memoizes the result of `func`. If `resolver` is
* provided, it determines the cache key for storing the result based on the
* arguments provided to the memoized function. By default, the first argument
* provided to the memoized function is used as the map cache key. The `func`
* is invoked with the `this` binding of the memoized function.
*
* **Note:** The cache is exposed as the `cache` property on the memoized
* function. Its creation may be customized by replacing the `_.memoize.Cache`
* constructor with one whose instances implement the
* [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
* method interface of `clear`, `delete`, `get`, `has`, and `set`.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Function
* @param {Function} func The function to have its output memoized.
* @param {Function} [resolver] The function to resolve the cache key.
* @returns {Function} Returns the new memoized function.
* @example
*
* var object = { 'a': 1, 'b': 2 };
* var other = { 'c': 3, 'd': 4 };
*
* var values = _.memoize(_.values);
* values(object);
* // => [1, 2]
*
* values(other);
* // => [3, 4]
*
* object.a = 2;
* values(object);
* // => [1, 2]
*
* // Modify the result cache.
* values.cache.set(object, ['a', 'b']);
* values(object);
* // => ['a', 'b']
*
* // Replace `_.memoize.Cache`.
* _.memoize.Cache = WeakMap;
*/
function memoize(func, resolver) {
if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
throw new TypeError(FUNC_ERROR_TEXT);
}
var memoized = function() {
var args = arguments,
key = resolver ? resolver.apply(this, args) : args[0],
cache = memoized.cache;
if (cache.has(key)) {
return cache.get(key);
}
var result = func.apply(this, args);
memoized.cache = cache.set(key, result) || cache;
return result;
};
memoized.cache = new (memoize.Cache || MapCache);
return memoized;
}
// Expose `MapCache`.
memoize.Cache = MapCache;
module.exports = memoize;
/***/ }),
/***/ "./node_modules/lodash/merge.js":
/*!**************************************!*\
!*** ./node_modules/lodash/merge.js ***!
\**************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseMerge = __webpack_require__(/*! ./_baseMerge */ "./node_modules/lodash/_baseMerge.js"),
createAssigner = __webpack_require__(/*! ./_createAssigner */ "./node_modules/lodash/_createAssigner.js");
/**
* This method is like `_.assign` except that it recursively merges own and
* inherited enumerable string keyed properties of source objects into the
* destination object. Source properties that resolve to `undefined` are
* skipped if a destination value exists. Array and plain object properties
* are merged recursively. Other objects and value types are overridden by
* assignment. Source objects are applied from left to right. Subsequent
* sources overwrite property assignments of previous sources.
*
* **Note:** This method mutates `object`.
*
* @static
* @memberOf _
* @since 0.5.0
* @category Object
* @param {Object} object The destination object.
* @param {...Object} [sources] The source objects.
* @returns {Object} Returns `object`.
* @example
*
* var object = {
* 'a': [{ 'b': 2 }, { 'd': 4 }]
* };
*
* var other = {
* 'a': [{ 'c': 3 }, { 'e': 5 }]
* };
*
* _.merge(object, other);
* // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
*/
var merge = createAssigner(function(object, source, srcIndex) {
baseMerge(object, source, srcIndex);
});
module.exports = merge;
/***/ }),
/***/ "./node_modules/lodash/noop.js":
/*!*************************************!*\
!*** ./node_modules/lodash/noop.js ***!
\*************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* This method returns `undefined`.
*
* @static
* @memberOf _
* @since 2.3.0
* @category Util
* @example
*
* _.times(2, _.noop);
* // => [undefined, undefined]
*/
function noop() {
// No operation performed.
}
module.exports = noop;
/***/ }),
/***/ "./node_modules/lodash/now.js":
/*!************************************!*\
!*** ./node_modules/lodash/now.js ***!
\************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
/**
* Gets the timestamp of the number of milliseconds that have elapsed since
* the Unix epoch (1 January 1970 00:00:00 UTC).
*
* @static
* @memberOf _
* @since 2.4.0
* @category Date
* @returns {number} Returns the timestamp.
* @example
*
* _.defer(function(stamp) {
* console.log(_.now() - stamp);
* }, _.now());
* // => Logs the number of milliseconds it took for the deferred invocation.
*/
var now = function() {
return root.Date.now();
};
module.exports = now;
/***/ }),
/***/ "./node_modules/lodash/omit.js":
/*!*************************************!*\
!*** ./node_modules/lodash/omit.js ***!
\*************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var arrayMap = __webpack_require__(/*! ./_arrayMap */ "./node_modules/lodash/_arrayMap.js"),
baseClone = __webpack_require__(/*! ./_baseClone */ "./node_modules/lodash/_baseClone.js"),
baseUnset = __webpack_require__(/*! ./_baseUnset */ "./node_modules/lodash/_baseUnset.js"),
castPath = __webpack_require__(/*! ./_castPath */ "./node_modules/lodash/_castPath.js"),
copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
customOmitClone = __webpack_require__(/*! ./_customOmitClone */ "./node_modules/lodash/_customOmitClone.js"),
flatRest = __webpack_require__(/*! ./_flatRest */ "./node_modules/lodash/_flatRest.js"),
getAllKeysIn = __webpack_require__(/*! ./_getAllKeysIn */ "./node_modules/lodash/_getAllKeysIn.js");
/** Used to compose bitmasks for cloning. */
var CLONE_DEEP_FLAG = 1,
CLONE_FLAT_FLAG = 2,
CLONE_SYMBOLS_FLAG = 4;
/**
* The opposite of `_.pick`; this method creates an object composed of the
* own and inherited enumerable property paths of `object` that are not omitted.
*
* **Note:** This method is considerably slower than `_.pick`.
*
* @static
* @since 0.1.0
* @memberOf _
* @category Object
* @param {Object} object The source object.
* @param {...(string|string[])} [paths] The property paths to omit.
* @returns {Object} Returns the new object.
* @example
*
* var object = { 'a': 1, 'b': '2', 'c': 3 };
*
* _.omit(object, ['a', 'c']);
* // => { 'b': '2' }
*/
var omit = flatRest(function(object, paths) {
var result = {};
if (object == null) {
return result;
}
var isDeep = false;
paths = arrayMap(paths, function(path) {
path = castPath(path, object);
isDeep || (isDeep = path.length > 1);
return path;
});
copyObject(object, getAllKeysIn(object), result);
if (isDeep) {
result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
}
var length = paths.length;
while (length--) {
baseUnset(result, paths[length]);
}
return result;
});
module.exports = omit;
/***/ }),
/***/ "./node_modules/lodash/padEnd.js":
/*!***************************************!*\
!*** ./node_modules/lodash/padEnd.js ***!
\***************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var createPadding = __webpack_require__(/*! ./_createPadding */ "./node_modules/lodash/_createPadding.js"),
stringSize = __webpack_require__(/*! ./_stringSize */ "./node_modules/lodash/_stringSize.js"),
toInteger = __webpack_require__(/*! ./toInteger */ "./node_modules/lodash/toInteger.js"),
toString = __webpack_require__(/*! ./toString */ "./node_modules/lodash/toString.js");
/**
* Pads `string` on the right side if it's shorter than `length`. Padding
* characters are truncated if they exceed `length`.
*
* @static
* @memberOf _
* @since 4.0.0
* @category String
* @param {string} [string=''] The string to pad.
* @param {number} [length=0] The padding length.
* @param {string} [chars=' '] The string used as padding.
* @returns {string} Returns the padded string.
* @example
*
* _.padEnd('abc', 6);
* // => 'abc '
*
* _.padEnd('abc', 6, '_-');
* // => 'abc_-_'
*
* _.padEnd('abc', 3);
* // => 'abc'
*/
function padEnd(string, length, chars) {
string = toString(string);
length = toInteger(length);
var strLength = length ? stringSize(string) : 0;
return (length && strLength < length)
? (string + createPadding(length - strLength, chars))
: string;
}
module.exports = padEnd;
/***/ }),
/***/ "./node_modules/lodash/padStart.js":
/*!*****************************************!*\
!*** ./node_modules/lodash/padStart.js ***!
\*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var createPadding = __webpack_require__(/*! ./_createPadding */ "./node_modules/lodash/_createPadding.js"),
stringSize = __webpack_require__(/*! ./_stringSize */ "./node_modules/lodash/_stringSize.js"),
toInteger = __webpack_require__(/*! ./toInteger */ "./node_modules/lodash/toInteger.js"),
toString = __webpack_require__(/*! ./toString */ "./node_modules/lodash/toString.js");
/**
* Pads `string` on the left side if it's shorter than `length`. Padding
* characters are truncated if they exceed `length`.
*
* @static
* @memberOf _
* @since 4.0.0
* @category String
* @param {string} [string=''] The string to pad.
* @param {number} [length=0] The padding length.
* @param {string} [chars=' '] The string used as padding.
* @returns {string} Returns the padded string.
* @example
*
* _.padStart('abc', 6);
* // => ' abc'
*
* _.padStart('abc', 6, '_-');
* // => '_-_abc'
*
* _.padStart('abc', 3);
* // => 'abc'
*/
function padStart(string, length, chars) {
string = toString(string);
length = toInteger(length);
var strLength = length ? stringSize(string) : 0;
return (length && strLength < length)
? (createPadding(length - strLength, chars) + string)
: string;
}
module.exports = padStart;
/***/ }),
/***/ "./node_modules/lodash/partition.js":
/*!******************************************!*\
!*** ./node_modules/lodash/partition.js ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var createAggregator = __webpack_require__(/*! ./_createAggregator */ "./node_modules/lodash/_createAggregator.js");
/**
* Creates an array of elements split into two groups, the first of which
* contains elements `predicate` returns truthy for, the second of which
* contains elements `predicate` returns falsey for. The predicate is
* invoked with one argument: (value).
*
* @static
* @memberOf _
* @since 3.0.0
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
* @param {Function} [predicate=_.identity] The function invoked per iteration.
* @returns {Array} Returns the array of grouped elements.
* @example
*
* var users = [
* { 'user': 'barney', 'age': 36, 'active': false },
* { 'user': 'fred', 'age': 40, 'active': true },
* { 'user': 'pebbles', 'age': 1, 'active': false }
* ];
*
* _.partition(users, function(o) { return o.active; });
* // => objects for [['fred'], ['barney', 'pebbles']]
*
* // The `_.matches` iteratee shorthand.
* _.partition(users, { 'age': 1, 'active': false });
* // => objects for [['pebbles'], ['barney', 'fred']]
*
* // The `_.matchesProperty` iteratee shorthand.
* _.partition(users, ['active', false]);
* // => objects for [['barney', 'pebbles'], ['fred']]
*
* // The `_.property` iteratee shorthand.
* _.partition(users, 'active');
* // => objects for [['fred'], ['barney', 'pebbles']]
*/
var partition = createAggregator(function(result, value, key) {
result[key ? 0 : 1].push(value);
}, function() { return [[], []]; });
module.exports = partition;
/***/ }),
/***/ "./node_modules/lodash/pick.js":
/*!*************************************!*\
!*** ./node_modules/lodash/pick.js ***!
\*************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var basePick = __webpack_require__(/*! ./_basePick */ "./node_modules/lodash/_basePick.js"),
flatRest = __webpack_require__(/*! ./_flatRest */ "./node_modules/lodash/_flatRest.js");
/**
* Creates an object composed of the picked `object` properties.
*
* @static
* @since 0.1.0
* @memberOf _
* @category Object
* @param {Object} object The source object.
* @param {...(string|string[])} [paths] The property paths to pick.
* @returns {Object} Returns the new object.
* @example
*
* var object = { 'a': 1, 'b': '2', 'c': 3 };
*
* _.pick(object, ['a', 'c']);
* // => { 'a': 1, 'c': 3 }
*/
var pick = flatRest(function(object, paths) {
return object == null ? {} : basePick(object, paths);
});
module.exports = pick;
/***/ }),
/***/ "./node_modules/lodash/property.js":
/*!*****************************************!*\
!*** ./node_modules/lodash/property.js ***!
\*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseProperty = __webpack_require__(/*! ./_baseProperty */ "./node_modules/lodash/_baseProperty.js"),
basePropertyDeep = __webpack_require__(/*! ./_basePropertyDeep */ "./node_modules/lodash/_basePropertyDeep.js"),
isKey = __webpack_require__(/*! ./_isKey */ "./node_modules/lodash/_isKey.js"),
toKey = __webpack_require__(/*! ./_toKey */ "./node_modules/lodash/_toKey.js");
/**
* Creates a function that returns the value at `path` of a given object.
*
* @static
* @memberOf _
* @since 2.4.0
* @category Util
* @param {Array|string} path The path of the property to get.
* @returns {Function} Returns the new accessor function.
* @example
*
* var objects = [
* { 'a': { 'b': 2 } },
* { 'a': { 'b': 1 } }
* ];
*
* _.map(objects, _.property('a.b'));
* // => [2, 1]
*
* _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
* // => [1, 2]
*/
function property(path) {
return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
}
module.exports = property;
/***/ }),
/***/ "./node_modules/lodash/set.js":
/*!************************************!*\
!*** ./node_modules/lodash/set.js ***!
\************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseSet = __webpack_require__(/*! ./_baseSet */ "./node_modules/lodash/_baseSet.js");
/**
* Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
* it's created. Arrays are created for missing index properties while objects
* are created for all other missing properties. Use `_.setWith` to customize
* `path` creation.
*
* **Note:** This method mutates `object`.
*
* @static
* @memberOf _
* @since 3.7.0
* @category Object
* @param {Object} object The object to modify.
* @param {Array|string} path The path of the property to set.
* @param {*} value The value to set.
* @returns {Object} Returns `object`.
* @example
*
* var object = { 'a': [{ 'b': { 'c': 3 } }] };
*
* _.set(object, 'a[0].b.c', 4);
* console.log(object.a[0].b.c);
* // => 4
*
* _.set(object, ['x', '0', 'y', 'z'], 5);
* console.log(object.x[0].y.z);
* // => 5
*/
function set(object, path, value) {
return object == null ? object : baseSet(object, path, value);
}
module.exports = set;
/***/ }),
/***/ "./node_modules/lodash/stubArray.js":
/*!******************************************!*\
!*** ./node_modules/lodash/stubArray.js ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* This method returns a new empty array.
*
* @static
* @memberOf _
* @since 4.13.0
* @category Util
* @returns {Array} Returns the new empty array.
* @example
*
* var arrays = _.times(2, _.stubArray);
*
* console.log(arrays);
* // => [[], []]
*
* console.log(arrays[0] === arrays[1]);
* // => false
*/
function stubArray() {
return [];
}
module.exports = stubArray;
/***/ }),
/***/ "./node_modules/lodash/stubFalse.js":
/*!******************************************!*\
!*** ./node_modules/lodash/stubFalse.js ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports) {
/**
* This method returns `false`.
*
* @static
* @memberOf _
* @since 4.13.0
* @category Util
* @returns {boolean} Returns `false`.
* @example
*
* _.times(2, _.stubFalse);
* // => [false, false]
*/
function stubFalse() {
return false;
}
module.exports = stubFalse;
/***/ }),
/***/ "./node_modules/lodash/throttle.js":
/*!*****************************************!*\
!*** ./node_modules/lodash/throttle.js ***!
\*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var debounce = __webpack_require__(/*! ./debounce */ "./node_modules/lodash/debounce.js"),
isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js");
/** Error message constants. */
var FUNC_ERROR_TEXT = 'Expected a function';
/**
* Creates a throttled function that only invokes `func` at most once per
* every `wait` milliseconds. The throttled function comes with a `cancel`
* method to cancel delayed `func` invocations and a `flush` method to
* immediately invoke them. Provide `options` to indicate whether `func`
* should be invoked on the leading and/or trailing edge of the `wait`
* timeout. The `func` is invoked with the last arguments provided to the
* throttled function. Subsequent calls to the throttled function return the
* result of the last `func` invocation.
*
* **Note:** If `leading` and `trailing` options are `true`, `func` is
* invoked on the trailing edge of the timeout only if the throttled function
* is invoked more than once during the `wait` timeout.
*
* If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
* until to the next tick, similar to `setTimeout` with a timeout of `0`.
*
* See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
* for details over the differences between `_.throttle` and `_.debounce`.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Function
* @param {Function} func The function to throttle.
* @param {number} [wait=0] The number of milliseconds to throttle invocations to.
* @param {Object} [options={}] The options object.
* @param {boolean} [options.leading=true]
* Specify invoking on the leading edge of the timeout.
* @param {boolean} [options.trailing=true]
* Specify invoking on the trailing edge of the timeout.
* @returns {Function} Returns the new throttled function.
* @example
*
* // Avoid excessively updating the position while scrolling.
* jQuery(window).on('scroll', _.throttle(updatePosition, 100));
*
* // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
* var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
* jQuery(element).on('click', throttled);
*
* // Cancel the trailing throttled invocation.
* jQuery(window).on('popstate', throttled.cancel);
*/
function throttle(func, wait, options) {
var leading = true,
trailing = true;
if (typeof func != 'function') {
throw new TypeError(FUNC_ERROR_TEXT);
}
if (isObject(options)) {
leading = 'leading' in options ? !!options.leading : leading;
trailing = 'trailing' in options ? !!options.trailing : trailing;
}
return debounce(func, wait, {
'leading': leading,
'maxWait': wait,
'trailing': trailing
});
}
module.exports = throttle;
/***/ }),
/***/ "./node_modules/lodash/toFinite.js":
/*!*****************************************!*\
!*** ./node_modules/lodash/toFinite.js ***!
\*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var toNumber = __webpack_require__(/*! ./toNumber */ "./node_modules/lodash/toNumber.js");
/** Used as references for various `Number` constants. */
var INFINITY = 1 / 0,
MAX_INTEGER = 1.7976931348623157e+308;
/**
* Converts `value` to a finite number.
*
* @static
* @memberOf _
* @since 4.12.0
* @category Lang
* @param {*} value The value to convert.
* @returns {number} Returns the converted number.
* @example
*
* _.toFinite(3.2);
* // => 3.2
*
* _.toFinite(Number.MIN_VALUE);
* // => 5e-324
*
* _.toFinite(Infinity);
* // => 1.7976931348623157e+308
*
* _.toFinite('3.2');
* // => 3.2
*/
function toFinite(value) {
if (!value) {
return value === 0 ? value : 0;
}
value = toNumber(value);
if (value === INFINITY || value === -INFINITY) {
var sign = (value < 0 ? -1 : 1);
return sign * MAX_INTEGER;
}
return value === value ? value : 0;
}
module.exports = toFinite;
/***/ }),
/***/ "./node_modules/lodash/toInteger.js":
/*!******************************************!*\
!*** ./node_modules/lodash/toInteger.js ***!
\******************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var toFinite = __webpack_require__(/*! ./toFinite */ "./node_modules/lodash/toFinite.js");
/**
* Converts `value` to an integer.
*
* **Note:** This method is loosely based on
* [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to convert.
* @returns {number} Returns the converted integer.
* @example
*
* _.toInteger(3.2);
* // => 3
*
* _.toInteger(Number.MIN_VALUE);
* // => 0
*
* _.toInteger(Infinity);
* // => 1.7976931348623157e+308
*
* _.toInteger('3.2');
* // => 3
*/
function toInteger(value) {
var result = toFinite(value),
remainder = result % 1;
return result === result ? (remainder ? result - remainder : result) : 0;
}
module.exports = toInteger;
/***/ }),
/***/ "./node_modules/lodash/toNumber.js":
/*!*****************************************!*\
!*** ./node_modules/lodash/toNumber.js ***!
\*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseTrim = __webpack_require__(/*! ./_baseTrim */ "./node_modules/lodash/_baseTrim.js"),
isObject = __webpack_require__(/*! ./isObject */ "./node_modules/lodash/isObject.js"),
isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");
/** Used as references for various `Number` constants. */
var NAN = 0 / 0;
/** Used to detect bad signed hexadecimal string values. */
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
/** Used to detect binary string values. */
var reIsBinary = /^0b[01]+$/i;
/** Used to detect octal string values. */
var reIsOctal = /^0o[0-7]+$/i;
/** Built-in method references without a dependency on `root`. */
var freeParseInt = parseInt;
/**
* Converts `value` to a number.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to process.
* @returns {number} Returns the number.
* @example
*
* _.toNumber(3.2);
* // => 3.2
*
* _.toNumber(Number.MIN_VALUE);
* // => 5e-324
*
* _.toNumber(Infinity);
* // => Infinity
*
* _.toNumber('3.2');
* // => 3.2
*/
function toNumber(value) {
if (typeof value == 'number') {
return value;
}
if (isSymbol(value)) {
return NAN;
}
if (isObject(value)) {
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
value = isObject(other) ? (other + '') : other;
}
if (typeof value != 'string') {
return value === 0 ? value : +value;
}
value = baseTrim(value);
var isBinary = reIsBinary.test(value);
return (isBinary || reIsOctal.test(value))
? freeParseInt(value.slice(2), isBinary ? 2 : 8)
: (reIsBadHex.test(value) ? NAN : +value);
}
module.exports = toNumber;
/***/ }),
/***/ "./node_modules/lodash/toPlainObject.js":
/*!**********************************************!*\
!*** ./node_modules/lodash/toPlainObject.js ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var copyObject = __webpack_require__(/*! ./_copyObject */ "./node_modules/lodash/_copyObject.js"),
keysIn = __webpack_require__(/*! ./keysIn */ "./node_modules/lodash/keysIn.js");
/**
* Converts `value` to a plain object flattening inherited enumerable string
* keyed properties of `value` to own properties of the plain object.
*
* @static
* @memberOf _
* @since 3.0.0
* @category Lang
* @param {*} value The value to convert.
* @returns {Object} Returns the converted plain object.
* @example
*
* function Foo() {
* this.b = 2;
* }
*
* Foo.prototype.c = 3;
*
* _.assign({ 'a': 1 }, new Foo);
* // => { 'a': 1, 'b': 2 }
*
* _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
* // => { 'a': 1, 'b': 2, 'c': 3 }
*/
function toPlainObject(value) {
return copyObject(value, keysIn(value));
}
module.exports = toPlainObject;
/***/ }),
/***/ "./node_modules/lodash/toString.js":
/*!*****************************************!*\
!*** ./node_modules/lodash/toString.js ***!
\*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseToString = __webpack_require__(/*! ./_baseToString */ "./node_modules/lodash/_baseToString.js");
/**
* Converts `value` to a string. An empty string is returned for `null`
* and `undefined` values. The sign of `-0` is preserved.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to convert.
* @returns {string} Returns the converted string.
* @example
*
* _.toString(null);
* // => ''
*
* _.toString(-0);
* // => '-0'
*
* _.toString([1, 2, 3]);
* // => '1,2,3'
*/
function toString(value) {
return value == null ? '' : baseToString(value);
}
module.exports = toString;
/***/ }),
/***/ "./node_modules/lodash/uniqBy.js":
/*!***************************************!*\
!*** ./node_modules/lodash/uniqBy.js ***!
\***************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "./node_modules/lodash/_baseIteratee.js"),
baseUniq = __webpack_require__(/*! ./_baseUniq */ "./node_modules/lodash/_baseUniq.js");
/**
* This method is like `_.uniq` except that it accepts `iteratee` which is
* invoked for each element in `array` to generate the criterion by which
* uniqueness is computed. The order of result values is determined by the
* order they occur in the array. The iteratee is invoked with one argument:
* (value).
*
* @static
* @memberOf _
* @since 4.0.0
* @category Array
* @param {Array} array The array to inspect.
* @param {Function} [iteratee=_.identity] The iteratee invoked per element.
* @returns {Array} Returns the new duplicate free array.
* @example
*
* _.uniqBy([2.1, 1.2, 2.3], Math.floor);
* // => [2.1, 1.2]
*
* // The `_.property` iteratee shorthand.
* _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
* // => [{ 'x': 1 }, { 'x': 2 }]
*/
function uniqBy(array, iteratee) {
return (array && array.length) ? baseUniq(array, baseIteratee(iteratee, 2)) : [];
}
module.exports = uniqBy;
/***/ }),
/***/ "./node_modules/mutationobserver-shim/dist/mutationobserver.min.js":
/*!*************************************************************************!*\
!*** ./node_modules/mutationobserver-shim/dist/mutationobserver.min.js ***!
\*************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
// mutationobserver-shim v0.3.3 (github.com/megawac/MutationObserver.js)
// Authors: Graeme Yeates (github.com/megawac)
/*
Shim for MutationObserver interface
Author: Graeme Yeates (github.com/megawac)
Repository: https://github.com/megawac/MutationObserver.js
License: WTFPL V2, 2004 (wtfpl.net).
Though credit and staring the repo will make me feel pretty, you can modify and redistribute as you please.
Attempts to follow spec (https://www.w3.org/TR/dom/#mutation-observers) as closely as possible for native javascript
See https://github.com/WebKit/webkit/blob/master/Source/WebCore/dom/MutationObserver.cpp for current webkit source c++ implementation
*/
window.MutationObserver||(window.MutationObserver=function(y){function z(a){this.i=[];this.m=a}function K(a){(function c(){var d=a.takeRecords();d.length&&a.m(d,a);a.h=setTimeout(c,z._period)})()}function r(a){var b={type:null,target:null,addedNodes:[],removedNodes:[],previousSibling:null,nextSibling:null,attributeName:null,attributeNamespace:null,oldValue:null},c;for(c in a)b[c]!==y&&a[c]!==y&&(b[c]=a[c]);return b}function L(a,b){var c=E(a,b);return function(d){var f=d.length;b.a&&3===a.nodeType&&
a.nodeValue!==c.a&&d.push(new r({type:"characterData",target:a,oldValue:c.a}));b.b&&c.b&&C(d,a,c.b,b.f);if(b.c||b.g)var m=M(d,a,c,b);if(m||d.length!==f)c=E(a,b)}}function N(a,b){return b.value}function O(a,b){return"style"!==b.name?b.value:a.style.cssText}function C(a,b,c,d){for(var f={},m=b.attributes,k,g,p=m.length;p--;)k=m[p],g=k.name,d&&d[g]===y||(F(b,k)!==c[g]&&a.push(r({type:"attributes",target:b,attributeName:g,oldValue:c[g],attributeNamespace:k.namespaceURI})),f[g]=!0);for(g in c)f[g]||a.push(r({target:b,
type:"attributes",attributeName:g,oldValue:c[g]}))}function M(a,b,c,d){function f(g,p,t,q,x){var A=g.length-1;x=-~((A-x)/2);for(var h,l,e;e=g.pop();)h=t[e.j],l=q[e.l],d.c&&x&&Math.abs(e.j-e.l)>=A&&(a.push(r({type:"childList",target:p,addedNodes:[h],removedNodes:[h],nextSibling:h.nextSibling,previousSibling:h.previousSibling})),x--),d.b&&l.b&&C(a,h,l.b,d.f),d.a&&3===h.nodeType&&h.nodeValue!==l.a&&a.push(r({type:"characterData",target:h,oldValue:l.a})),d.g&&m(h,l)}function m(g,p){for(var t=g.childNodes,
q=p.c,x=t.length,A=q?q.length:0,h,l,e,n,v,B=0,w=0,u=0;w<x||u<A;)n=t[w],v=(e=q[u])&&e.node,n===v?(d.b&&e.b&&C(a,n,e.b,d.f),d.a&&e.a!==y&&n.nodeValue!==e.a&&a.push(r({type:"characterData",target:n,oldValue:e.a})),l&&f(l,g,t,q,B),d.g&&(n.childNodes.length||e.c&&e.c.length)&&m(n,e),w++,u++):(k=!0,h||(h={},l=[]),n&&(h[e=G(n)]||(h[e]=!0,-1===(e=H(q,n,u,"node"))?d.c&&(a.push(r({type:"childList",target:g,addedNodes:[n],nextSibling:n.nextSibling,previousSibling:n.previousSibling})),B++):l.push({j:w,l:e})),
w++),v&&v!==t[w]&&(h[e=G(v)]||(h[e]=!0,-1===(e=H(t,v,w))?d.c&&(a.push(r({type:"childList",target:p.node,removedNodes:[v],nextSibling:q[u+1],previousSibling:q[u-1]})),B--):l.push({j:e,l:u})),u++));l&&f(l,g,t,q,B)}var k;m(b,c);return k}function E(a,b){var c=!0;return function m(f){var k={node:f};!b.a||3!==f.nodeType&&8!==f.nodeType?(b.b&&c&&1===f.nodeType&&(k.b=I(f.attributes,function(g,p){if(!b.f||b.f[p.name])g[p.name]=F(f,p);return g},{})),c&&(b.c||b.a||b.b&&b.g)&&(k.c=P(f.childNodes,m)),c=b.g):k.a=
f.nodeValue;return k}(a)}function G(a){try{return a.id||(a.mo_id=a.mo_id||J++)}catch(b){try{return a.nodeValue}catch(c){return J++}}}function P(a,b){for(var c=[],d=0;d<a.length;d++)c[d]=b(a[d],d,a);return c}function I(a,b,c){for(var d=0;d<a.length;d++)c=b(c,a[d],d,a);return c}function H(a,b,c,d){for(;c<a.length;c++)if((d?a[c][d]:a[c])===b)return c;return-1}z._period=30;z.prototype={observe:function(a,b){for(var c={b:!!(b.attributes||b.attributeFilter||b.attributeOldValue),c:!!b.childList,g:!!b.subtree,
a:!(!b.characterData&&!b.characterDataOldValue)},d=this.i,f=0;f<d.length;f++)d[f].s===a&&d.splice(f,1);b.attributeFilter&&(c.f=I(b.attributeFilter,function(m,k){m[k]=!0;return m},{}));d.push({s:a,o:L(a,c)});this.h||K(this)},takeRecords:function(){for(var a=[],b=this.i,c=0;c<b.length;c++)b[c].o(a);return a},disconnect:function(){this.i=[];clearTimeout(this.h);this.h=null}};var D=document.createElement("i");D.style.top=0;var F=(D="null"!=D.attributes.style.value)?N:O,J=1;return z}(void 0));
//# sourceMappingURL=mutationobserver.map
/***/ }),
/***/ "./node_modules/object-assign/index.js":
/*!*********************************************!*\
!*** ./node_modules/object-assign/index.js ***!
\*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
/* eslint-disable no-unused-vars */
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
var hasOwnProperty = Object.prototype.hasOwnProperty;
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
function toObject(val) {
if (val === null || val === undefined) {
throw new TypeError('Object.assign cannot be called with null or undefined');
}
return Object(val);
}
function shouldUseNative() {
try {
if (!Object.assign) {
return false;
}
// Detect buggy property enumeration order in older V8 versions.
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
test1[5] = 'de';
if (Object.getOwnPropertyNames(test1)[0] === '5') {
return false;
}
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
var test2 = {};
for (var i = 0; i < 10; i++) {
test2['_' + String.fromCharCode(i)] = i;
}
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
return test2[n];
});
if (order2.join('') !== '0123456789') {
return false;
}
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
var test3 = {};
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
test3[letter] = letter;
});
if (Object.keys(Object.assign({}, test3)).join('') !==
'abcdefghijklmnopqrst') {
return false;
}
return true;
} catch (err) {
// We don't expect any of the above to throw, but better to be safe.
return false;
}
}
module.exports = shouldUseNative() ? Object.assign : function (target, source) {
var from;
var to = toObject(target);
var symbols;
for (var s = 1; s < arguments.length; s++) {
from = Object(arguments[s]);
for (var key in from) {
if (hasOwnProperty.call(from, key)) {
to[key] = from[key];
}
}
if (getOwnPropertySymbols) {
symbols = getOwnPropertySymbols(from);
for (var i = 0; i < symbols.length; i++) {
if (propIsEnumerable.call(from, symbols[i])) {
to[symbols[i]] = from[symbols[i]];
}
}
}
}
return to;
};
/***/ }),
/***/ "./node_modules/omit.js/es/index.js":
/*!******************************************!*\
!*** ./node_modules/omit.js/es/index.js ***!
\******************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babel-runtime/helpers/extends */ "./node_modules/babel-runtime/helpers/extends.js");
/* harmony import */ var babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
function omit(obj, fields) {
var shallowCopy = babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, obj);
for (var i = 0; i < fields.length; i++) {
var key = fields[i];
delete shallowCopy[key];
}
return shallowCopy;
}
/* harmony default export */ __webpack_exports__["default"] = (omit);
/***/ }),
/***/ "./node_modules/performance-now/lib/performance-now.js":
/*!*************************************************************!*\
!*** ./node_modules/performance-now/lib/performance-now.js ***!
\*************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(process) {// Generated by CoffeeScript 1.12.2
(function() {
var getNanoSeconds, hrtime, loadTime, moduleLoadTime, nodeLoadTime, upTime;
if ((typeof performance !== "undefined" && performance !== null) && performance.now) {
module.exports = function() {
return performance.now();
};
} else if ((typeof process !== "undefined" && process !== null) && process.hrtime) {
module.exports = function() {
return (getNanoSeconds() - nodeLoadTime) / 1e6;
};
hrtime = process.hrtime;
getNanoSeconds = function() {
var hr;
hr = hrtime();
return hr[0] * 1e9 + hr[1];
};
moduleLoadTime = getNanoSeconds();
upTime = process.uptime() * 1e9;
nodeLoadTime = moduleLoadTime - upTime;
} else if (Date.now) {
module.exports = function() {
return Date.now() - loadTime;
};
loadTime = Date.now();
} else {
module.exports = function() {
return new Date().getTime() - loadTime;
};
loadTime = new Date().getTime();
}
}).call(this);
//# sourceMappingURL=performance-now.js.map
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../process/browser.js */ "./node_modules/process/browser.js")))
/***/ }),
/***/ "./node_modules/process/browser.js":
/*!*****************************************!*\
!*** ./node_modules/process/browser.js ***!
\*****************************************/
/*! no static exports found */
/***/ (function(module, exports) {
// shim for using process in browser
var process = module.exports = {};
// cached from whatever global is present so that test runners that stub it
// don't break things. But we need to wrap it in a try catch in case it is
// wrapped in strict mode code which doesn't define any globals. It's inside a
// function because try/catches deoptimize in certain engines.
var cachedSetTimeout;
var cachedClearTimeout;
function defaultSetTimout() {
throw new Error('setTimeout has not been defined');
}
function defaultClearTimeout () {
throw new Error('clearTimeout has not been defined');
}
(function () {
try {
if (typeof setTimeout === 'function') {
cachedSetTimeout = setTimeout;
} else {
cachedSetTimeout = defaultSetTimout;
}
} catch (e) {
cachedSetTimeout = defaultSetTimout;
}
try {
if (typeof clearTimeout === 'function') {
cachedClearTimeout = clearTimeout;
} else {
cachedClearTimeout = defaultClearTimeout;
}
} catch (e) {
cachedClearTimeout = defaultClearTimeout;
}
} ())
function runTimeout(fun) {
if (cachedSetTimeout === setTimeout) {
//normal enviroments in sane situations
return setTimeout(fun, 0);
}
// if setTimeout wasn't available but was latter defined
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
cachedSetTimeout = setTimeout;
return setTimeout(fun, 0);
}
try {
// when when somebody has screwed with setTimeout but no I.E. maddness
return cachedSetTimeout(fun, 0);
} catch(e){
try {
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
return cachedSetTimeout.call(null, fun, 0);
} catch(e){
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
return cachedSetTimeout.call(this, fun, 0);
}
}
}
function runClearTimeout(marker) {
if (cachedClearTimeout === clearTimeout) {
//normal enviroments in sane situations
return clearTimeout(marker);
}
// if clearTimeout wasn't available but was latter defined
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
cachedClearTimeout = clearTimeout;
return clearTimeout(marker);
}
try {
// when when somebody has screwed with setTimeout but no I.E. maddness
return cachedClearTimeout(marker);
} catch (e){
try {
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
return cachedClearTimeout.call(null, marker);
} catch (e){
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
return cachedClearTimeout.call(this, marker);
}
}
}
var queue = [];
var draining = false;
var currentQueue;
var queueIndex = -1;
function cleanUpNextTick() {
if (!draining || !currentQueue) {
return;
}
draining = false;
if (currentQueue.length) {
queue = currentQueue.concat(queue);
} else {
queueIndex = -1;
}
if (queue.length) {
drainQueue();
}
}
function drainQueue() {
if (draining) {
return;
}
var timeout = runTimeout(cleanUpNextTick);
draining = true;
var len = queue.length;
while(len) {
currentQueue = queue;
queue = [];
while (++queueIndex < len) {
if (currentQueue) {
currentQueue[queueIndex].run();
}
}
queueIndex = -1;
len = queue.length;
}
currentQueue = null;
draining = false;
runClearTimeout(timeout);
}
process.nextTick = function (fun) {
var args = new Array(arguments.length - 1);
if (arguments.length > 1) {
for (var i = 1; i < arguments.length; i++) {
args[i - 1] = arguments[i];
}
}
queue.push(new Item(fun, args));
if (queue.length === 1 && !draining) {
runTimeout(drainQueue);
}
};
// v8 likes predictible objects
function Item(fun, array) {
this.fun = fun;
this.array = array;
}
Item.prototype.run = function () {
this.fun.apply(null, this.array);
};
process.title = 'browser';
process.browser = true;
process.env = {};
process.argv = [];
process.version = ''; // empty string to avoid regexp issues
process.versions = {};
function noop() {}
process.on = noop;
process.addListener = noop;
process.once = noop;
process.off = noop;
process.removeListener = noop;
process.removeAllListeners = noop;
process.emit = noop;
process.prependListener = noop;
process.prependOnceListener = noop;
process.listeners = function (name) { return [] }
process.binding = function (name) {
throw new Error('process.binding is not supported');
};
process.cwd = function () { return '/' };
process.chdir = function (dir) {
throw new Error('process.chdir is not supported');
};
process.umask = function() { return 0; };
/***/ }),
/***/ "./node_modules/raf/index.js":
/*!***********************************!*\
!*** ./node_modules/raf/index.js ***!
\***********************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(global) {var now = __webpack_require__(/*! performance-now */ "./node_modules/performance-now/lib/performance-now.js")
, root = typeof window === 'undefined' ? global : window
, vendors = ['moz', 'webkit']
, suffix = 'AnimationFrame'
, raf = root['request' + suffix]
, caf = root['cancel' + suffix] || root['cancelRequest' + suffix]
for(var i = 0; !raf && i < vendors.length; i++) {
raf = root[vendors[i] + 'Request' + suffix]
caf = root[vendors[i] + 'Cancel' + suffix]
|| root[vendors[i] + 'CancelRequest' + suffix]
}
// Some versions of FF have rAF but not cAF
if(!raf || !caf) {
var last = 0
, id = 0
, queue = []
, frameDuration = 1000 / 60
raf = function(callback) {
if(queue.length === 0) {
var _now = now()
, next = Math.max(0, frameDuration - (_now - last))
last = next + _now
setTimeout(function() {
var cp = queue.slice(0)
// Clear queue here to prevent
// callbacks from appending listeners
// to the current frame's queue
queue.length = 0
for(var i = 0; i < cp.length; i++) {
if(!cp[i].cancelled) {
try{
cp[i].callback(last)
} catch(e) {
setTimeout(function() { throw e }, 0)
}
}
}
}, Math.round(next))
}
queue.push({
handle: ++id,
callback: callback,
cancelled: false
})
return id
}
caf = function(handle) {
for(var i = 0; i < queue.length; i++) {
if(queue[i].handle === handle) {
queue[i].cancelled = true
}
}
}
}
module.exports = function(fn) {
// Wrap in a new function to prevent
// `cancel` potentially being assigned
// to the native rAF function
return raf.call(root, fn)
}
module.exports.cancel = function() {
caf.apply(root, arguments)
}
module.exports.polyfill = function(object) {
if (!object) {
object = root;
}
object.requestAnimationFrame = raf
object.cancelAnimationFrame = caf
}
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
/***/ }),
/***/ "./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js":
/*!*************************************************************************!*\
!*** ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js ***!
\*************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* WEBPACK VAR INJECTION */(function(global) {/**
* A collection of shims that provide minimal functionality of the ES6 collections.
*
* These implementations are not meant to be used outside of the ResizeObserver
* modules as they cover only a limited range of use cases.
*/
/* eslint-disable require-jsdoc, valid-jsdoc */
var MapShim = (function () {
if (typeof Map !== 'undefined') {
return Map;
}
/**
* Returns index in provided array that matches the specified key.
*
* @param {Array<Array>} arr
* @param {*} key
* @returns {number}
*/
function getIndex(arr, key) {
var result = -1;
arr.some(function (entry, index) {
if (entry[0] === key) {
result = index;
return true;
}
return false;
});
return result;
}
return /** @class */ (function () {
function class_1() {
this.__entries__ = [];
}
Object.defineProperty(class_1.prototype, "size", {
/**
* @returns {boolean}
*/
get: function () {
return this.__entries__.length;
},
enumerable: true,
configurable: true
});
/**
* @param {*} key
* @returns {*}
*/
class_1.prototype.get = function (key) {
var index = getIndex(this.__entries__, key);
var entry = this.__entries__[index];
return entry && entry[1];
};
/**
* @param {*} key
* @param {*} value
* @returns {void}
*/
class_1.prototype.set = function (key, value) {
var index = getIndex(this.__entries__, key);
if (~index) {
this.__entries__[index][1] = value;
}
else {
this.__entries__.push([key, value]);
}
};
/**
* @param {*} key
* @returns {void}
*/
class_1.prototype.delete = function (key) {
var entries = this.__entries__;
var index = getIndex(entries, key);
if (~index) {
entries.splice(index, 1);
}
};
/**
* @param {*} key
* @returns {void}
*/
class_1.prototype.has = function (key) {
return !!~getIndex(this.__entries__, key);
};
/**
* @returns {void}
*/
class_1.prototype.clear = function () {
this.__entries__.splice(0);
};
/**
* @param {Function} callback
* @param {*} [ctx=null]
* @returns {void}
*/
class_1.prototype.forEach = function (callback, ctx) {
if (ctx === void 0) { ctx = null; }
for (var _i = 0, _a = this.__entries__; _i < _a.length; _i++) {
var entry = _a[_i];
callback.call(ctx, entry[1], entry[0]);
}
};
return class_1;
}());
})();
/**
* Detects whether window and document objects are available in current environment.
*/
var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && window.document === document;
// Returns global object of a current environment.
var global$1 = (function () {
if (typeof global !== 'undefined' && global.Math === Math) {
return global;
}
if (typeof self !== 'undefined' && self.Math === Math) {
return self;
}
if (typeof window !== 'undefined' && window.Math === Math) {
return window;
}
// eslint-disable-next-line no-new-func
return Function('return this')();
})();
/**
* A shim for the requestAnimationFrame which falls back to the setTimeout if
* first one is not supported.
*
* @returns {number} Requests' identifier.
*/
var requestAnimationFrame$1 = (function () {
if (typeof requestAnimationFrame === 'function') {
// It's required to use a bounded function because IE sometimes throws
// an "Invalid calling object" error if rAF is invoked without the global
// object on the left hand side.
return requestAnimationFrame.bind(global$1);
}
return function (callback) { return setTimeout(function () { return callback(Date.now()); }, 1000 / 60); };
})();
// Defines minimum timeout before adding a trailing call.
var trailingTimeout = 2;
/**
* Creates a wrapper function which ensures that provided callback will be
* invoked only once during the specified delay period.
*
* @param {Function} callback - Function to be invoked after the delay period.
* @param {number} delay - Delay after which to invoke callback.
* @returns {Function}
*/
function throttle (callback, delay) {
var leadingCall = false, trailingCall = false, lastCallTime = 0;
/**
* Invokes the original callback function and schedules new invocation if
* the "proxy" was called during current request.
*
* @returns {void}
*/
function resolvePending() {
if (leadingCall) {
leadingCall = false;
callback();
}
if (trailingCall) {
proxy();
}
}
/**
* Callback invoked after the specified delay. It will further postpone
* invocation of the original function delegating it to the
* requestAnimationFrame.
*
* @returns {void}
*/
function timeoutCallback() {
requestAnimationFrame$1(resolvePending);
}
/**
* Schedules invocation of the original function.
*
* @returns {void}
*/
function proxy() {
var timeStamp = Date.now();
if (leadingCall) {
// Reject immediately following calls.
if (timeStamp - lastCallTime < trailingTimeout) {
return;
}
// Schedule new call to be in invoked when the pending one is resolved.
// This is important for "transitions" which never actually start
// immediately so there is a chance that we might miss one if change
// happens amids the pending invocation.
trailingCall = true;
}
else {
leadingCall = true;
trailingCall = false;
setTimeout(timeoutCallback, delay);
}
lastCallTime = timeStamp;
}
return proxy;
}
// Minimum delay before invoking the update of observers.
var REFRESH_DELAY = 20;
// A list of substrings of CSS properties used to find transition events that
// might affect dimensions of observed elements.
var transitionKeys = ['top', 'right', 'bottom', 'left', 'width', 'height', 'size', 'weight'];
// Check if MutationObserver is available.
var mutationObserverSupported = typeof MutationObserver !== 'undefined';
/**
* Singleton controller class which handles updates of ResizeObserver instances.
*/
var ResizeObserverController = /** @class */ (function () {
/**
* Creates a new instance of ResizeObserverController.
*
* @private
*/
function ResizeObserverController() {
/**
* Indicates whether DOM listeners have been added.
*
* @private {boolean}
*/
this.connected_ = false;
/**
* Tells that controller has subscribed for Mutation Events.
*
* @private {boolean}
*/
this.mutationEventsAdded_ = false;
/**
* Keeps reference to the instance of MutationObserver.
*
* @private {MutationObserver}
*/
this.mutationsObserver_ = null;
/**
* A list of connected observers.
*
* @private {Array<ResizeObserverSPI>}
*/
this.observers_ = [];
this.onTransitionEnd_ = this.onTransitionEnd_.bind(this);
this.refresh = throttle(this.refresh.bind(this), REFRESH_DELAY);
}
/**
* Adds observer to observers list.
*
* @param {ResizeObserverSPI} observer - Observer to be added.
* @returns {void}
*/
ResizeObserverController.prototype.addObserver = function (observer) {
if (!~this.observers_.indexOf(observer)) {
this.observers_.push(observer);
}
// Add listeners if they haven't been added yet.
if (!this.connected_) {
this.connect_();
}
};
/**
* Removes observer from observers list.
*
* @param {ResizeObserverSPI} observer - Observer to be removed.
* @returns {void}
*/
ResizeObserverController.prototype.removeObserver = function (observer) {
var observers = this.observers_;
var index = observers.indexOf(observer);
// Remove observer if it's present in registry.
if (~index) {
observers.splice(index, 1);
}
// Remove listeners if controller has no connected observers.
if (!observers.length && this.connected_) {
this.disconnect_();
}
};
/**
* Invokes the update of observers. It will continue running updates insofar
* it detects changes.
*
* @returns {void}
*/
ResizeObserverController.prototype.refresh = function () {
var changesDetected = this.updateObservers_();
// Continue running updates if changes have been detected as there might
// be future ones caused by CSS transitions.
if (changesDetected) {
this.refresh();
}
};
/**
* Updates every observer from observers list and notifies them of queued
* entries.
*
* @private
* @returns {boolean} Returns "true" if any observer has detected changes in
* dimensions of it's elements.
*/
ResizeObserverController.prototype.updateObservers_ = function () {
// Collect observers that have active observations.
var activeObservers = this.observers_.filter(function (observer) {
return observer.gatherActive(), observer.hasActive();
});
// Deliver notifications in a separate cycle in order to avoid any
// collisions between observers, e.g. when multiple instances of
// ResizeObserver are tracking the same element and the callback of one
// of them changes content dimensions of the observed target. Sometimes
// this may result in notifications being blocked for the rest of observers.
activeObservers.forEach(function (observer) { return observer.broadcastActive(); });
return activeObservers.length > 0;
};
/**
* Initializes DOM listeners.
*
* @private
* @returns {void}
*/
ResizeObserverController.prototype.connect_ = function () {
// Do nothing if running in a non-browser environment or if listeners
// have been already added.
if (!isBrowser || this.connected_) {
return;
}
// Subscription to the "Transitionend" event is used as a workaround for
// delayed transitions. This way it's possible to capture at least the
// final state of an element.
document.addEventListener('transitionend', this.onTransitionEnd_);
window.addEventListener('resize', this.refresh);
if (mutationObserverSupported) {
this.mutationsObserver_ = new MutationObserver(this.refresh);
this.mutationsObserver_.observe(document, {
attributes: true,
childList: true,
characterData: true,
subtree: true
});
}
else {
document.addEventListener('DOMSubtreeModified', this.refresh);
this.mutationEventsAdded_ = true;
}
this.connected_ = true;
};
/**
* Removes DOM listeners.
*
* @private
* @returns {void}
*/
ResizeObserverController.prototype.disconnect_ = function () {
// Do nothing if running in a non-browser environment or if listeners
// have been already removed.
if (!isBrowser || !this.connected_) {
return;
}
document.removeEventListener('transitionend', this.onTransitionEnd_);
window.removeEventListener('resize', this.refresh);
if (this.mutationsObserver_) {
this.mutationsObserver_.disconnect();
}
if (this.mutationEventsAdded_) {
document.removeEventListener('DOMSubtreeModified', this.refresh);
}
this.mutationsObserver_ = null;
this.mutationEventsAdded_ = false;
this.connected_ = false;
};
/**
* "Transitionend" event handler.
*
* @private
* @param {TransitionEvent} event
* @returns {void}
*/
ResizeObserverController.prototype.onTransitionEnd_ = function (_a) {
var _b = _a.propertyName, propertyName = _b === void 0 ? '' : _b;
// Detect whether transition may affect dimensions of an element.
var isReflowProperty = transitionKeys.some(function (key) {
return !!~propertyName.indexOf(key);
});
if (isReflowProperty) {
this.refresh();
}
};
/**
* Returns instance of the ResizeObserverController.
*
* @returns {ResizeObserverController}
*/
ResizeObserverController.getInstance = function () {
if (!this.instance_) {
this.instance_ = new ResizeObserverController();
}
return this.instance_;
};
/**
* Holds reference to the controller's instance.
*
* @private {ResizeObserverController}
*/
ResizeObserverController.instance_ = null;
return ResizeObserverController;
}());
/**
* Defines non-writable/enumerable properties of the provided target object.
*
* @param {Object} target - Object for which to define properties.
* @param {Object} props - Properties to be defined.
* @returns {Object} Target object.
*/
var defineConfigurable = (function (target, props) {
for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {
var key = _a[_i];
Object.defineProperty(target, key, {
value: props[key],
enumerable: false,
writable: false,
configurable: true
});
}
return target;
});
/**
* Returns the global object associated with provided element.
*
* @param {Object} target
* @returns {Object}
*/
var getWindowOf = (function (target) {
// Assume that the element is an instance of Node, which means that it
// has the "ownerDocument" property from which we can retrieve a
// corresponding global object.
var ownerGlobal = target && target.ownerDocument && target.ownerDocument.defaultView;
// Return the local global object if it's not possible extract one from
// provided element.
return ownerGlobal || global$1;
});
// Placeholder of an empty content rectangle.
var emptyRect = createRectInit(0, 0, 0, 0);
/**
* Converts provided string to a number.
*
* @param {number|string} value
* @returns {number}
*/
function toFloat(value) {
return parseFloat(value) || 0;
}
/**
* Extracts borders size from provided styles.
*
* @param {CSSStyleDeclaration} styles
* @param {...string} positions - Borders positions (top, right, ...)
* @returns {number}
*/
function getBordersSize(styles) {
var positions = [];
for (var _i = 1; _i < arguments.length; _i++) {
positions[_i - 1] = arguments[_i];
}
return positions.reduce(function (size, position) {
var value = styles['border-' + position + '-width'];
return size + toFloat(value);
}, 0);
}
/**
* Extracts paddings sizes from provided styles.
*
* @param {CSSStyleDeclaration} styles
* @returns {Object} Paddings box.
*/
function getPaddings(styles) {
var positions = ['top', 'right', 'bottom', 'left'];
var paddings = {};
for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) {
var position = positions_1[_i];
var value = styles['padding-' + position];
paddings[position] = toFloat(value);
}
return paddings;
}
/**
* Calculates content rectangle of provided SVG element.
*
* @param {SVGGraphicsElement} target - Element content rectangle of which needs
* to be calculated.
* @returns {DOMRectInit}
*/
function getSVGContentRect(target) {
var bbox = target.getBBox();
return createRectInit(0, 0, bbox.width, bbox.height);
}
/**
* Calculates content rectangle of provided HTMLElement.
*
* @param {HTMLElement} target - Element for which to calculate the content rectangle.
* @returns {DOMRectInit}
*/
function getHTMLElementContentRect(target) {
// Client width & height properties can't be
// used exclusively as they provide rounded values.
var clientWidth = target.clientWidth, clientHeight = target.clientHeight;
// By this condition we can catch all non-replaced inline, hidden and
// detached elements. Though elements with width & height properties less
// than 0.5 will be discarded as well.
//
// Without it we would need to implement separate methods for each of
// those cases and it's not possible to perform a precise and performance
// effective test for hidden elements. E.g. even jQuery's ':visible' filter
// gives wrong results for elements with width & height less than 0.5.
if (!clientWidth && !clientHeight) {
return emptyRect;
}
var styles = getWindowOf(target).getComputedStyle(target);
var paddings = getPaddings(styles);
var horizPad = paddings.left + paddings.right;
var vertPad = paddings.top + paddings.bottom;
// Computed styles of width & height are being used because they are the
// only dimensions available to JS that contain non-rounded values. It could
// be possible to utilize the getBoundingClientRect if only it's data wasn't
// affected by CSS transformations let alone paddings, borders and scroll bars.
var width = toFloat(styles.width), height = toFloat(styles.height);
// Width & height include paddings and borders when the 'border-box' box
// model is applied (except for IE).
if (styles.boxSizing === 'border-box') {
// Following conditions are required to handle Internet Explorer which
// doesn't include paddings and borders to computed CSS dimensions.
//
// We can say that if CSS dimensions + paddings are equal to the "client"
// properties then it's either IE, and thus we don't need to subtract
// anything, or an element merely doesn't have paddings/borders styles.
if (Math.round(width + horizPad) !== clientWidth) {
width -= getBordersSize(styles, 'left', 'right') + horizPad;
}
if (Math.round(height + vertPad) !== clientHeight) {
height -= getBordersSize(styles, 'top', 'bottom') + vertPad;
}
}
// Following steps can't be applied to the document's root element as its
// client[Width/Height] properties represent viewport area of the window.
// Besides, it's as well not necessary as the <html> itself neither has
// rendered scroll bars nor it can be clipped.
if (!isDocumentElement(target)) {
// In some browsers (only in Firefox, actually) CSS width & height
// include scroll bars size which can be removed at this step as scroll
// bars are the only difference between rounded dimensions + paddings
// and "client" properties, though that is not always true in Chrome.
var vertScrollbar = Math.round(width + horizPad) - clientWidth;
var horizScrollbar = Math.round(height + vertPad) - clientHeight;
// Chrome has a rather weird rounding of "client" properties.
// E.g. for an element with content width of 314.2px it sometimes gives
// the client width of 315px and for the width of 314.7px it may give
// 314px. And it doesn't happen all the time. So just ignore this delta
// as a non-relevant.
if (Math.abs(vertScrollbar) !== 1) {
width -= vertScrollbar;
}
if (Math.abs(horizScrollbar) !== 1) {
height -= horizScrollbar;
}
}
return createRectInit(paddings.left, paddings.top, width, height);
}
/**
* Checks whether provided element is an instance of the SVGGraphicsElement.
*
* @param {Element} target - Element to be checked.
* @returns {boolean}
*/
var isSVGGraphicsElement = (function () {
// Some browsers, namely IE and Edge, don't have the SVGGraphicsElement
// interface.
if (typeof SVGGraphicsElement !== 'undefined') {
return function (target) { return target instanceof getWindowOf(target).SVGGraphicsElement; };
}
// If it's so, then check that element is at least an instance of the
// SVGElement and that it has the "getBBox" method.
// eslint-disable-next-line no-extra-parens
return function (target) { return (target instanceof getWindowOf(target).SVGElement &&
typeof target.getBBox === 'function'); };
})();
/**
* Checks whether provided element is a document element (<html>).
*
* @param {Element} target - Element to be checked.
* @returns {boolean}
*/
function isDocumentElement(target) {
return target === getWindowOf(target).document.documentElement;
}
/**
* Calculates an appropriate content rectangle for provided html or svg element.
*
* @param {Element} target - Element content rectangle of which needs to be calculated.
* @returns {DOMRectInit}
*/
function getContentRect(target) {
if (!isBrowser) {
return emptyRect;
}
if (isSVGGraphicsElement(target)) {
return getSVGContentRect(target);
}
return getHTMLElementContentRect(target);
}
/**
* Creates rectangle with an interface of the DOMRectReadOnly.
* Spec: https://drafts.fxtf.org/geometry/#domrectreadonly
*
* @param {DOMRectInit} rectInit - Object with rectangle's x/y coordinates and dimensions.
* @returns {DOMRectReadOnly}
*/
function createReadOnlyRect(_a) {
var x = _a.x, y = _a.y, width = _a.width, height = _a.height;
// If DOMRectReadOnly is available use it as a prototype for the rectangle.
var Constr = typeof DOMRectReadOnly !== 'undefined' ? DOMRectReadOnly : Object;
var rect = Object.create(Constr.prototype);
// Rectangle's properties are not writable and non-enumerable.
defineConfigurable(rect, {
x: x, y: y, width: width, height: height,
top: y,
right: x + width,
bottom: height + y,
left: x
});
return rect;
}
/**
* Creates DOMRectInit object based on the provided dimensions and the x/y coordinates.
* Spec: https://drafts.fxtf.org/geometry/#dictdef-domrectinit
*
* @param {number} x - X coordinate.
* @param {number} y - Y coordinate.
* @param {number} width - Rectangle's width.
* @param {number} height - Rectangle's height.
* @returns {DOMRectInit}
*/
function createRectInit(x, y, width, height) {
return { x: x, y: y, width: width, height: height };
}
/**
* Class that is responsible for computations of the content rectangle of
* provided DOM element and for keeping track of it's changes.
*/
var ResizeObservation = /** @class */ (function () {
/**
* Creates an instance of ResizeObservation.
*
* @param {Element} target - Element to be observed.
*/
function ResizeObservation(target) {
/**
* Broadcasted width of content rectangle.
*
* @type {number}
*/
this.broadcastWidth = 0;
/**
* Broadcasted height of content rectangle.
*
* @type {number}
*/
this.broadcastHeight = 0;
/**
* Reference to the last observed content rectangle.
*
* @private {DOMRectInit}
*/
this.contentRect_ = createRectInit(0, 0, 0, 0);
this.target = target;
}
/**
* Updates content rectangle and tells whether it's width or height properties
* have changed since the last broadcast.
*
* @returns {boolean}
*/
ResizeObservation.prototype.isActive = function () {
var rect = getContentRect(this.target);
this.contentRect_ = rect;
return (rect.width !== this.broadcastWidth ||
rect.height !== this.broadcastHeight);
};
/**
* Updates 'broadcastWidth' and 'broadcastHeight' properties with a data
* from the corresponding properties of the last observed content rectangle.
*
* @returns {DOMRectInit} Last observed content rectangle.
*/
ResizeObservation.prototype.broadcastRect = function () {
var rect = this.contentRect_;
this.broadcastWidth = rect.width;
this.broadcastHeight = rect.height;
return rect;
};
return ResizeObservation;
}());
var ResizeObserverEntry = /** @class */ (function () {
/**
* Creates an instance of ResizeObserverEntry.
*
* @param {Element} target - Element that is being observed.
* @param {DOMRectInit} rectInit - Data of the element's content rectangle.
*/
function ResizeObserverEntry(target, rectInit) {
var contentRect = createReadOnlyRect(rectInit);
// According to the specification following properties are not writable
// and are also not enumerable in the native implementation.
//
// Property accessors are not being used as they'd require to define a
// private WeakMap storage which may cause memory leaks in browsers that
// don't support this type of collections.
defineConfigurable(this, { target: target, contentRect: contentRect });
}
return ResizeObserverEntry;
}());
var ResizeObserverSPI = /** @class */ (function () {
/**
* Creates a new instance of ResizeObserver.
*
* @param {ResizeObserverCallback} callback - Callback function that is invoked
* when one of the observed elements changes it's content dimensions.
* @param {ResizeObserverController} controller - Controller instance which
* is responsible for the updates of observer.
* @param {ResizeObserver} callbackCtx - Reference to the public
* ResizeObserver instance which will be passed to callback function.
*/
function ResizeObserverSPI(callback, controller, callbackCtx) {
/**
* Collection of resize observations that have detected changes in dimensions
* of elements.
*
* @private {Array<ResizeObservation>}
*/
this.activeObservations_ = [];
/**
* Registry of the ResizeObservation instances.
*
* @private {Map<Element, ResizeObservation>}
*/
this.observations_ = new MapShim();
if (typeof callback !== 'function') {
throw new TypeError('The callback provided as parameter 1 is not a function.');
}
this.callback_ = callback;
this.controller_ = controller;
this.callbackCtx_ = callbackCtx;
}
/**
* Starts observing provided element.
*
* @param {Element} target - Element to be observed.
* @returns {void}
*/
ResizeObserverSPI.prototype.observe = function (target) {
if (!arguments.length) {
throw new TypeError('1 argument required, but only 0 present.');
}
// Do nothing if current environment doesn't have the Element interface.
if (typeof Element === 'undefined' || !(Element instanceof Object)) {
return;
}
if (!(target instanceof getWindowOf(target).Element)) {
throw new TypeError('parameter 1 is not of type "Element".');
}
var observations = this.observations_;
// Do nothing if element is already being observed.
if (observations.has(target)) {
return;
}
observations.set(target, new ResizeObservation(target));
this.controller_.addObserver(this);
// Force the update of observations.
this.controller_.refresh();
};
/**
* Stops observing provided element.
*
* @param {Element} target - Element to stop observing.
* @returns {void}
*/
ResizeObserverSPI.prototype.unobserve = function (target) {
if (!arguments.length) {
throw new TypeError('1 argument required, but only 0 present.');
}
// Do nothing if current environment doesn't have the Element interface.
if (typeof Element === 'undefined' || !(Element instanceof Object)) {
return;
}
if (!(target instanceof getWindowOf(target).Element)) {
throw new TypeError('parameter 1 is not of type "Element".');
}
var observations = this.observations_;
// Do nothing if element is not being observed.
if (!observations.has(target)) {
return;
}
observations.delete(target);
if (!observations.size) {
this.controller_.removeObserver(this);
}
};
/**
* Stops observing all elements.
*
* @returns {void}
*/
ResizeObserverSPI.prototype.disconnect = function () {
this.clearActive();
this.observations_.clear();
this.controller_.removeObserver(this);
};
/**
* Collects observation instances the associated element of which has changed
* it's content rectangle.
*
* @returns {void}
*/
ResizeObserverSPI.prototype.gatherActive = function () {
var _this = this;
this.clearActive();
this.observations_.forEach(function (observation) {
if (observation.isActive()) {
_this.activeObservations_.push(observation);
}
});
};
/**
* Invokes initial callback function with a list of ResizeObserverEntry
* instances collected from active resize observations.
*
* @returns {void}
*/
ResizeObserverSPI.prototype.broadcastActive = function () {
// Do nothing if observer doesn't have active observations.
if (!this.hasActive()) {
return;
}
var ctx = this.callbackCtx_;
// Create ResizeObserverEntry instance for every active observation.
var entries = this.activeObservations_.map(function (observation) {
return new ResizeObserverEntry(observation.target, observation.broadcastRect());
});
this.callback_.call(ctx, entries, ctx);
this.clearActive();
};
/**
* Clears the collection of active observations.
*
* @returns {void}
*/
ResizeObserverSPI.prototype.clearActive = function () {
this.activeObservations_.splice(0);
};
/**
* Tells whether observer has active observations.
*
* @returns {boolean}
*/
ResizeObserverSPI.prototype.hasActive = function () {
return this.activeObservations_.length > 0;
};
return ResizeObserverSPI;
}());
// Registry of internal observers. If WeakMap is not available use current shim
// for the Map collection as it has all required methods and because WeakMap
// can't be fully polyfilled anyway.
var observers = typeof WeakMap !== 'undefined' ? new WeakMap() : new MapShim();
/**
* ResizeObserver API. Encapsulates the ResizeObserver SPI implementation
* exposing only those methods and properties that are defined in the spec.
*/
var ResizeObserver = /** @class */ (function () {
/**
* Creates a new instance of ResizeObserver.
*
* @param {ResizeObserverCallback} callback - Callback that is invoked when
* dimensions of the observed elements change.
*/
function ResizeObserver(callback) {
if (!(this instanceof ResizeObserver)) {
throw new TypeError('Cannot call a class as a function.');
}
if (!arguments.length) {
throw new TypeError('1 argument required, but only 0 present.');
}
var controller = ResizeObserverController.getInstance();
var observer = new ResizeObserverSPI(callback, controller, this);
observers.set(this, observer);
}
return ResizeObserver;
}());
// Expose public methods of ResizeObserver.
[
'observe',
'unobserve',
'disconnect'
].forEach(function (method) {
ResizeObserver.prototype[method] = function () {
var _a;
return (_a = observers.get(this))[method].apply(_a, arguments);
};
});
var index = (function () {
// Export existing implementation if available.
if (typeof global$1.ResizeObserver !== 'undefined') {
return global$1.ResizeObserver;
}
return ResizeObserver;
})();
/* harmony default export */ __webpack_exports__["default"] = (index);
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
/***/ }),
/***/ "./node_modules/shallow-equal/arrays/index.js":
/*!****************************************************!*\
!*** ./node_modules/shallow-equal/arrays/index.js ***!
\****************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
function shallowEqualArrays(arrA, arrB) {
if (arrA === arrB) {
return true;
}
if (!arrA || !arrB) {
return false;
}
var len = arrA.length;
if (arrB.length !== len) {
return false;
}
for (var i = 0; i < len; i++) {
if (arrA[i] !== arrB[i]) {
return false;
}
}
return true;
}
module.exports = shallowEqualArrays;
/***/ }),
/***/ "./node_modules/shallowequal/index.js":
/*!********************************************!*\
!*** ./node_modules/shallowequal/index.js ***!
\********************************************/
/*! no static exports found */
/***/ (function(module, exports) {
//
module.exports = function shallowEqual(objA, objB, compare, compareContext) {
var ret = compare ? compare.call(compareContext, objA, objB) : void 0;
if (ret !== void 0) {
return !!ret;
}
if (objA === objB) {
return true;
}
if (typeof objA !== "object" || !objA || typeof objB !== "object" || !objB) {
return false;
}
var keysA = Object.keys(objA);
var keysB = Object.keys(objB);
if (keysA.length !== keysB.length) {
return false;
}
var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB);
// Test for A's keys different from B.
for (var idx = 0; idx < keysA.length; idx++) {
var key = keysA[idx];
if (!bHasOwnProperty(key)) {
return false;
}
var valueA = objA[key];
var valueB = objB[key];
ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0;
if (ret === false || (ret === void 0 && valueA !== valueB)) {
return false;
}
}
return true;
};
/***/ }),
/***/ "./node_modules/string-convert/camel2hyphen.js":
/*!*****************************************************!*\
!*** ./node_modules/string-convert/camel2hyphen.js ***!
\*****************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
var camel2hyphen = function (str) {
return str
.replace(/[A-Z]/g, function (match) {
return '-' + match.toLowerCase();
})
.toLowerCase();
};
module.exports = camel2hyphen;
/***/ }),
/***/ "./node_modules/tinycolor2/tinycolor.js":
/*!**********************************************!*\
!*** ./node_modules/tinycolor2/tinycolor.js ***!
\**********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var __WEBPACK_AMD_DEFINE_RESULT__;// TinyColor v1.4.2
// https://github.com/bgrins/TinyColor
// Brian Grinstead, MIT License
(function(Math) {
var trimLeft = /^\s+/,
trimRight = /\s+$/,
tinyCounter = 0,
mathRound = Math.round,
mathMin = Math.min,
mathMax = Math.max,
mathRandom = Math.random;
function tinycolor (color, opts) {
color = (color) ? color : '';
opts = opts || { };
// If input is already a tinycolor, return itself
if (color instanceof tinycolor) {
return color;
}
// If we are called as a function, call using new instead
if (!(this instanceof tinycolor)) {
return new tinycolor(color, opts);
}
var rgb = inputToRGB(color);
this._originalInput = color,
this._r = rgb.r,
this._g = rgb.g,
this._b = rgb.b,
this._a = rgb.a,
this._roundA = mathRound(100*this._a) / 100,
this._format = opts.format || rgb.format;
this._gradientType = opts.gradientType;
// Don't let the range of [0,255] come back in [0,1].
// Potentially lose a little bit of precision here, but will fix issues where
// .5 gets interpreted as half of the total, instead of half of 1
// If it was supposed to be 128, this was already taken care of by `inputToRgb`
if (this._r < 1) { this._r = mathRound(this._r); }
if (this._g < 1) { this._g = mathRound(this._g); }
if (this._b < 1) { this._b = mathRound(this._b); }
this._ok = rgb.ok;
this._tc_id = tinyCounter++;
}
tinycolor.prototype = {
isDark: function() {
return this.getBrightness() < 128;
},
isLight: function() {
return !this.isDark();
},
isValid: function() {
return this._ok;
},
getOriginalInput: function() {
return this._originalInput;
},
getFormat: function() {
return this._format;
},
getAlpha: function() {
return this._a;
},
getBrightness: function() {
//http://www.w3.org/TR/AERT#color-contrast
var rgb = this.toRgb();
return (rgb.r * 299 + rgb.g * 587 + rgb.b * 114) / 1000;
},
getLuminance: function() {
//http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef
var rgb = this.toRgb();
var RsRGB, GsRGB, BsRGB, R, G, B;
RsRGB = rgb.r/255;
GsRGB = rgb.g/255;
BsRGB = rgb.b/255;
if (RsRGB <= 0.03928) {R = RsRGB / 12.92;} else {R = Math.pow(((RsRGB + 0.055) / 1.055), 2.4);}
if (GsRGB <= 0.03928) {G = GsRGB / 12.92;} else {G = Math.pow(((GsRGB + 0.055) / 1.055), 2.4);}
if (BsRGB <= 0.03928) {B = BsRGB / 12.92;} else {B = Math.pow(((BsRGB + 0.055) / 1.055), 2.4);}
return (0.2126 * R) + (0.7152 * G) + (0.0722 * B);
},
setAlpha: function(value) {
this._a = boundAlpha(value);
this._roundA = mathRound(100*this._a) / 100;
return this;
},
toHsv: function() {
var hsv = rgbToHsv(this._r, this._g, this._b);
return { h: hsv.h * 360, s: hsv.s, v: hsv.v, a: this._a };
},
toHsvString: function() {
var hsv = rgbToHsv(this._r, this._g, this._b);
var h = mathRound(hsv.h * 360), s = mathRound(hsv.s * 100), v = mathRound(hsv.v * 100);
return (this._a == 1) ?
"hsv(" + h + ", " + s + "%, " + v + "%)" :
"hsva(" + h + ", " + s + "%, " + v + "%, "+ this._roundA + ")";
},
toHsl: function() {
var hsl = rgbToHsl(this._r, this._g, this._b);
return { h: hsl.h * 360, s: hsl.s, l: hsl.l, a: this._a };
},
toHslString: function() {
var hsl = rgbToHsl(this._r, this._g, this._b);
var h = mathRound(hsl.h * 360), s = mathRound(hsl.s * 100), l = mathRound(hsl.l * 100);
return (this._a == 1) ?
"hsl(" + h + ", " + s + "%, " + l + "%)" :
"hsla(" + h + ", " + s + "%, " + l + "%, "+ this._roundA + ")";
},
toHex: function(allow3Char) {
return rgbToHex(this._r, this._g, this._b, allow3Char);
},
toHexString: function(allow3Char) {
return '#' + this.toHex(allow3Char);
},
toHex8: function(allow4Char) {
return rgbaToHex(this._r, this._g, this._b, this._a, allow4Char);
},
toHex8String: function(allow4Char) {
return '#' + this.toHex8(allow4Char);
},
toRgb: function() {
return { r: mathRound(this._r), g: mathRound(this._g), b: mathRound(this._b), a: this._a };
},
toRgbString: function() {
return (this._a == 1) ?
"rgb(" + mathRound(this._r) + ", " + mathRound(this._g) + ", " + mathRound(this._b) + ")" :
"rgba(" + mathRound(this._r) + ", " + mathRound(this._g) + ", " + mathRound(this._b) + ", " + this._roundA + ")";
},
toPercentageRgb: function() {
return { r: mathRound(bound01(this._r, 255) * 100) + "%", g: mathRound(bound01(this._g, 255) * 100) + "%", b: mathRound(bound01(this._b, 255) * 100) + "%", a: this._a };
},
toPercentageRgbString: function() {
return (this._a == 1) ?
"rgb(" + mathRound(bound01(this._r, 255) * 100) + "%, " + mathRound(bound01(this._g, 255) * 100) + "%, " + mathRound(bound01(this._b, 255) * 100) + "%)" :
"rgba(" + mathRound(bound01(this._r, 255) * 100) + "%, " + mathRound(bound01(this._g, 255) * 100) + "%, " + mathRound(bound01(this._b, 255) * 100) + "%, " + this._roundA + ")";
},
toName: function() {
if (this._a === 0) {
return "transparent";
}
if (this._a < 1) {
return false;
}
return hexNames[rgbToHex(this._r, this._g, this._b, true)] || false;
},
toFilter: function(secondColor) {
var hex8String = '#' + rgbaToArgbHex(this._r, this._g, this._b, this._a);
var secondHex8String = hex8String;
var gradientType = this._gradientType ? "GradientType = 1, " : "";
if (secondColor) {
var s = tinycolor(secondColor);
secondHex8String = '#' + rgbaToArgbHex(s._r, s._g, s._b, s._a);
}
return "progid:DXImageTransform.Microsoft.gradient("+gradientType+"startColorstr="+hex8String+",endColorstr="+secondHex8String+")";
},
toString: function(format) {
var formatSet = !!format;
format = format || this._format;
var formattedString = false;
var hasAlpha = this._a < 1 && this._a >= 0;
var needsAlphaFormat = !formatSet && hasAlpha && (format === "hex" || format === "hex6" || format === "hex3" || format === "hex4" || format === "hex8" || format === "name");
if (needsAlphaFormat) {
// Special case for "transparent", all other non-alpha formats
// will return rgba when there is transparency.
if (format === "name" && this._a === 0) {
return this.toName();
}
return this.toRgbString();
}
if (format === "rgb") {
formattedString = this.toRgbString();
}
if (format === "prgb") {
formattedString = this.toPercentageRgbString();
}
if (format === "hex" || format === "hex6") {
formattedString = this.toHexString();
}
if (format === "hex3") {
formattedString = this.toHexString(true);
}
if (format === "hex4") {
formattedString = this.toHex8String(true);
}
if (format === "hex8") {
formattedString = this.toHex8String();
}
if (format === "name") {
formattedString = this.toName();
}
if (format === "hsl") {
formattedString = this.toHslString();
}
if (format === "hsv") {
formattedString = this.toHsvString();
}
return formattedString || this.toHexString();
},
clone: function() {
return tinycolor(this.toString());
},
_applyModification: function(fn, args) {
var color = fn.apply(null, [this].concat([].slice.call(args)));
this._r = color._r;
this._g = color._g;
this._b = color._b;
this.setAlpha(color._a);
return this;
},
lighten: function() {
return this._applyModification(lighten, arguments);
},
brighten: function() {
return this._applyModification(brighten, arguments);
},
darken: function() {
return this._applyModification(darken, arguments);
},
desaturate: function() {
return this._applyModification(desaturate, arguments);
},
saturate: function() {
return this._applyModification(saturate, arguments);
},
greyscale: function() {
return this._applyModification(greyscale, arguments);
},
spin: function() {
return this._applyModification(spin, arguments);
},
_applyCombination: function(fn, args) {
return fn.apply(null, [this].concat([].slice.call(args)));
},
analogous: function() {
return this._applyCombination(analogous, arguments);
},
complement: function() {
return this._applyCombination(complement, arguments);
},
monochromatic: function() {
return this._applyCombination(monochromatic, arguments);
},
splitcomplement: function() {
return this._applyCombination(splitcomplement, arguments);
},
triad: function() {
return this._applyCombination(triad, arguments);
},
tetrad: function() {
return this._applyCombination(tetrad, arguments);
}
};
// If input is an object, force 1 into "1.0" to handle ratios properly
// String input requires "1.0" as input, so 1 will be treated as 1
tinycolor.fromRatio = function(color, opts) {
if (typeof color == "object") {
var newColor = {};
for (var i in color) {
if (color.hasOwnProperty(i)) {
if (i === "a") {
newColor[i] = color[i];
}
else {
newColor[i] = convertToPercentage(color[i]);
}
}
}
color = newColor;
}
return tinycolor(color, opts);
};
// Given a string or object, convert that input to RGB
// Possible string inputs:
//
// "red"
// "#f00" or "f00"
// "#ff0000" or "ff0000"
// "#ff000000" or "ff000000"
// "rgb 255 0 0" or "rgb (255, 0, 0)"
// "rgb 1.0 0 0" or "rgb (1, 0, 0)"
// "rgba (255, 0, 0, 1)" or "rgba 255, 0, 0, 1"
// "rgba (1.0, 0, 0, 1)" or "rgba 1.0, 0, 0, 1"
// "hsl(0, 100%, 50%)" or "hsl 0 100% 50%"
// "hsla(0, 100%, 50%, 1)" or "hsla 0 100% 50%, 1"
// "hsv(0, 100%, 100%)" or "hsv 0 100% 100%"
//
function inputToRGB(color) {
var rgb = { r: 0, g: 0, b: 0 };
var a = 1;
var s = null;
var v = null;
var l = null;
var ok = false;
var format = false;
if (typeof color == "string") {
color = stringInputToObject(color);
}
if (typeof color == "object") {
if (isValidCSSUnit(color.r) && isValidCSSUnit(color.g) && isValidCSSUnit(color.b)) {
rgb = rgbToRgb(color.r, color.g, color.b);
ok = true;
format = String(color.r).substr(-1) === "%" ? "prgb" : "rgb";
}
else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.v)) {
s = convertToPercentage(color.s);
v = convertToPercentage(color.v);
rgb = hsvToRgb(color.h, s, v);
ok = true;
format = "hsv";
}
else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.l)) {
s = convertToPercentage(color.s);
l = convertToPercentage(color.l);
rgb = hslToRgb(color.h, s, l);
ok = true;
format = "hsl";
}
if (color.hasOwnProperty("a")) {
a = color.a;
}
}
a = boundAlpha(a);
return {
ok: ok,
format: color.format || format,
r: mathMin(255, mathMax(rgb.r, 0)),
g: mathMin(255, mathMax(rgb.g, 0)),
b: mathMin(255, mathMax(rgb.b, 0)),
a: a
};
}
// Conversion Functions
// --------------------
// `rgbToHsl`, `rgbToHsv`, `hslToRgb`, `hsvToRgb` modified from:
// <http://mjijackson.com/2008/02/rgb-to-hsl-and-rgb-to-hsv-color-model-conversion-algorithms-in-javascript>
// `rgbToRgb`
// Handle bounds / percentage checking to conform to CSS color spec
// <http://www.w3.org/TR/css3-color/>
// *Assumes:* r, g, b in [0, 255] or [0, 1]
// *Returns:* { r, g, b } in [0, 255]
function rgbToRgb(r, g, b){
return {
r: bound01(r, 255) * 255,
g: bound01(g, 255) * 255,
b: bound01(b, 255) * 255
};
}
// `rgbToHsl`
// Converts an RGB color value to HSL.
// *Assumes:* r, g, and b are contained in [0, 255] or [0, 1]
// *Returns:* { h, s, l } in [0,1]
function rgbToHsl(r, g, b) {
r = bound01(r, 255);
g = bound01(g, 255);
b = bound01(b, 255);
var max = mathMax(r, g, b), min = mathMin(r, g, b);
var h, s, l = (max + min) / 2;
if(max == min) {
h = s = 0; // achromatic
}
else {
var d = max - min;
s = l > 0.5 ? d / (2 - max - min) : d / (max + min);
switch(max) {
case r: h = (g - b) / d + (g < b ? 6 : 0); break;
case g: h = (b - r) / d + 2; break;
case b: h = (r - g) / d + 4; break;
}
h /= 6;
}
return { h: h, s: s, l: l };
}
// `hslToRgb`
// Converts an HSL color value to RGB.
// *Assumes:* h is contained in [0, 1] or [0, 360] and s and l are contained [0, 1] or [0, 100]
// *Returns:* { r, g, b } in the set [0, 255]
function hslToRgb(h, s, l) {
var r, g, b;
h = bound01(h, 360);
s = bound01(s, 100);
l = bound01(l, 100);
function hue2rgb(p, q, t) {
if(t < 0) t += 1;
if(t > 1) t -= 1;
if(t < 1/6) return p + (q - p) * 6 * t;
if(t < 1/2) return q;
if(t < 2/3) return p + (q - p) * (2/3 - t) * 6;
return p;
}
if(s === 0) {
r = g = b = l; // achromatic
}
else {
var q = l < 0.5 ? l * (1 + s) : l + s - l * s;
var p = 2 * l - q;
r = hue2rgb(p, q, h + 1/3);
g = hue2rgb(p, q, h);
b = hue2rgb(p, q, h - 1/3);
}
return { r: r * 255, g: g * 255, b: b * 255 };
}
// `rgbToHsv`
// Converts an RGB color value to HSV
// *Assumes:* r, g, and b are contained in the set [0, 255] or [0, 1]
// *Returns:* { h, s, v } in [0,1]
function rgbToHsv(r, g, b) {
r = bound01(r, 255);
g = bound01(g, 255);
b = bound01(b, 255);
var max = mathMax(r, g, b), min = mathMin(r, g, b);
var h, s, v = max;
var d = max - min;
s = max === 0 ? 0 : d / max;
if(max == min) {
h = 0; // achromatic
}
else {
switch(max) {
case r: h = (g - b) / d + (g < b ? 6 : 0); break;
case g: h = (b - r) / d + 2; break;
case b: h = (r - g) / d + 4; break;
}
h /= 6;
}
return { h: h, s: s, v: v };
}
// `hsvToRgb`
// Converts an HSV color value to RGB.
// *Assumes:* h is contained in [0, 1] or [0, 360] and s and v are contained in [0, 1] or [0, 100]
// *Returns:* { r, g, b } in the set [0, 255]
function hsvToRgb(h, s, v) {
h = bound01(h, 360) * 6;
s = bound01(s, 100);
v = bound01(v, 100);
var i = Math.floor(h),
f = h - i,
p = v * (1 - s),
q = v * (1 - f * s),
t = v * (1 - (1 - f) * s),
mod = i % 6,
r = [v, q, p, p, t, v][mod],
g = [t, v, v, q, p, p][mod],
b = [p, p, t, v, v, q][mod];
return { r: r * 255, g: g * 255, b: b * 255 };
}
// `rgbToHex`
// Converts an RGB color to hex
// Assumes r, g, and b are contained in the set [0, 255]
// Returns a 3 or 6 character hex
function rgbToHex(r, g, b, allow3Char) {
var hex = [
pad2(mathRound(r).toString(16)),
pad2(mathRound(g).toString(16)),
pad2(mathRound(b).toString(16))
];
// Return a 3 character hex if possible
if (allow3Char && hex[0].charAt(0) == hex[0].charAt(1) && hex[1].charAt(0) == hex[1].charAt(1) && hex[2].charAt(0) == hex[2].charAt(1)) {
return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0);
}
return hex.join("");
}
// `rgbaToHex`
// Converts an RGBA color plus alpha transparency to hex
// Assumes r, g, b are contained in the set [0, 255] and
// a in [0, 1]. Returns a 4 or 8 character rgba hex
function rgbaToHex(r, g, b, a, allow4Char) {
var hex = [
pad2(mathRound(r).toString(16)),
pad2(mathRound(g).toString(16)),
pad2(mathRound(b).toString(16)),
pad2(convertDecimalToHex(a))
];
// Return a 4 character hex if possible
if (allow4Char && hex[0].charAt(0) == hex[0].charAt(1) && hex[1].charAt(0) == hex[1].charAt(1) && hex[2].charAt(0) == hex[2].charAt(1) && hex[3].charAt(0) == hex[3].charAt(1)) {
return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0) + hex[3].charAt(0);
}
return hex.join("");
}
// `rgbaToArgbHex`
// Converts an RGBA color to an ARGB Hex8 string
// Rarely used, but required for "toFilter()"
function rgbaToArgbHex(r, g, b, a) {
var hex = [
pad2(convertDecimalToHex(a)),
pad2(mathRound(r).toString(16)),
pad2(mathRound(g).toString(16)),
pad2(mathRound(b).toString(16))
];
return hex.join("");
}
// `equals`
// Can be called with any tinycolor input
tinycolor.equals = function (color1, color2) {
if (!color1 || !color2) { return false; }
return tinycolor(color1).toRgbString() == tinycolor(color2).toRgbString();
};
tinycolor.random = function() {
return tinycolor.fromRatio({
r: mathRandom(),
g: mathRandom(),
b: mathRandom()
});
};
// Modification Functions
// ----------------------
// Thanks to less.js for some of the basics here
// <https://github.com/cloudhead/less.js/blob/master/lib/less/functions.js>
function desaturate(color, amount) {
amount = (amount === 0) ? 0 : (amount || 10);
var hsl = tinycolor(color).toHsl();
hsl.s -= amount / 100;
hsl.s = clamp01(hsl.s);
return tinycolor(hsl);
}
function saturate(color, amount) {
amount = (amount === 0) ? 0 : (amount || 10);
var hsl = tinycolor(color).toHsl();
hsl.s += amount / 100;
hsl.s = clamp01(hsl.s);
return tinycolor(hsl);
}
function greyscale(color) {
return tinycolor(color).desaturate(100);
}
function lighten (color, amount) {
amount = (amount === 0) ? 0 : (amount || 10);
var hsl = tinycolor(color).toHsl();
hsl.l += amount / 100;
hsl.l = clamp01(hsl.l);
return tinycolor(hsl);
}
function brighten(color, amount) {
amount = (amount === 0) ? 0 : (amount || 10);
var rgb = tinycolor(color).toRgb();
rgb.r = mathMax(0, mathMin(255, rgb.r - mathRound(255 * - (amount / 100))));
rgb.g = mathMax(0, mathMin(255, rgb.g - mathRound(255 * - (amount / 100))));
rgb.b = mathMax(0, mathMin(255, rgb.b - mathRound(255 * - (amount / 100))));
return tinycolor(rgb);
}
function darken (color, amount) {
amount = (amount === 0) ? 0 : (amount || 10);
var hsl = tinycolor(color).toHsl();
hsl.l -= amount / 100;
hsl.l = clamp01(hsl.l);
return tinycolor(hsl);
}
// Spin takes a positive or negative amount within [-360, 360] indicating the change of hue.
// Values outside of this range will be wrapped into this range.
function spin(color, amount) {
var hsl = tinycolor(color).toHsl();
var hue = (hsl.h + amount) % 360;
hsl.h = hue < 0 ? 360 + hue : hue;
return tinycolor(hsl);
}
// Combination Functions
// ---------------------
// Thanks to jQuery xColor for some of the ideas behind these
// <https://github.com/infusion/jQuery-xcolor/blob/master/jquery.xcolor.js>
function complement(color) {
var hsl = tinycolor(color).toHsl();
hsl.h = (hsl.h + 180) % 360;
return tinycolor(hsl);
}
function triad(color) {
var hsl = tinycolor(color).toHsl();
var h = hsl.h;
return [
tinycolor(color),
tinycolor({ h: (h + 120) % 360, s: hsl.s, l: hsl.l }),
tinycolor({ h: (h + 240) % 360, s: hsl.s, l: hsl.l })
];
}
function tetrad(color) {
var hsl = tinycolor(color).toHsl();
var h = hsl.h;
return [
tinycolor(color),
tinycolor({ h: (h + 90) % 360, s: hsl.s, l: hsl.l }),
tinycolor({ h: (h + 180) % 360, s: hsl.s, l: hsl.l }),
tinycolor({ h: (h + 270) % 360, s: hsl.s, l: hsl.l })
];
}
function splitcomplement(color) {
var hsl = tinycolor(color).toHsl();
var h = hsl.h;
return [
tinycolor(color),
tinycolor({ h: (h + 72) % 360, s: hsl.s, l: hsl.l}),
tinycolor({ h: (h + 216) % 360, s: hsl.s, l: hsl.l})
];
}
function analogous(color, results, slices) {
results = results || 6;
slices = slices || 30;
var hsl = tinycolor(color).toHsl();
var part = 360 / slices;
var ret = [tinycolor(color)];
for (hsl.h = ((hsl.h - (part * results >> 1)) + 720) % 360; --results; ) {
hsl.h = (hsl.h + part) % 360;
ret.push(tinycolor(hsl));
}
return ret;
}
function monochromatic(color, results) {
results = results || 6;
var hsv = tinycolor(color).toHsv();
var h = hsv.h, s = hsv.s, v = hsv.v;
var ret = [];
var modification = 1 / results;
while (results--) {
ret.push(tinycolor({ h: h, s: s, v: v}));
v = (v + modification) % 1;
}
return ret;
}
// Utility Functions
// ---------------------
tinycolor.mix = function(color1, color2, amount) {
amount = (amount === 0) ? 0 : (amount || 50);
var rgb1 = tinycolor(color1).toRgb();
var rgb2 = tinycolor(color2).toRgb();
var p = amount / 100;
var rgba = {
r: ((rgb2.r - rgb1.r) * p) + rgb1.r,
g: ((rgb2.g - rgb1.g) * p) + rgb1.g,
b: ((rgb2.b - rgb1.b) * p) + rgb1.b,
a: ((rgb2.a - rgb1.a) * p) + rgb1.a
};
return tinycolor(rgba);
};
// Readability Functions
// ---------------------
// <http://www.w3.org/TR/2008/REC-WCAG20-20081211/#contrast-ratiodef (WCAG Version 2)
// `contrast`
// Analyze the 2 colors and returns the color contrast defined by (WCAG Version 2)
tinycolor.readability = function(color1, color2) {
var c1 = tinycolor(color1);
var c2 = tinycolor(color2);
return (Math.max(c1.getLuminance(),c2.getLuminance())+0.05) / (Math.min(c1.getLuminance(),c2.getLuminance())+0.05);
};
// `isReadable`
// Ensure that foreground and background color combinations meet WCAG2 guidelines.
// The third argument is an optional Object.
// the 'level' property states 'AA' or 'AAA' - if missing or invalid, it defaults to 'AA';
// the 'size' property states 'large' or 'small' - if missing or invalid, it defaults to 'small'.
// If the entire object is absent, isReadable defaults to {level:"AA",size:"small"}.
// *Example*
// tinycolor.isReadable("#000", "#111") => false
// tinycolor.isReadable("#000", "#111",{level:"AA",size:"large"}) => false
tinycolor.isReadable = function(color1, color2, wcag2) {
var readability = tinycolor.readability(color1, color2);
var wcag2Parms, out;
out = false;
wcag2Parms = validateWCAG2Parms(wcag2);
switch (wcag2Parms.level + wcag2Parms.size) {
case "AAsmall":
case "AAAlarge":
out = readability >= 4.5;
break;
case "AAlarge":
out = readability >= 3;
break;
case "AAAsmall":
out = readability >= 7;
break;
}
return out;
};
// `mostReadable`
// Given a base color and a list of possible foreground or background
// colors for that base, returns the most readable color.
// Optionally returns Black or White if the most readable color is unreadable.
// *Example*
// tinycolor.mostReadable(tinycolor.mostReadable("#123", ["#124", "#125"],{includeFallbackColors:false}).toHexString(); // "#112255"
// tinycolor.mostReadable(tinycolor.mostReadable("#123", ["#124", "#125"],{includeFallbackColors:true}).toHexString(); // "#ffffff"
// tinycolor.mostReadable("#a8015a", ["#faf3f3"],{includeFallbackColors:true,level:"AAA",size:"large"}).toHexString(); // "#faf3f3"
// tinycolor.mostReadable("#a8015a", ["#faf3f3"],{includeFallbackColors:true,level:"AAA",size:"small"}).toHexString(); // "#ffffff"
tinycolor.mostReadable = function(baseColor, colorList, args) {
var bestColor = null;
var bestScore = 0;
var readability;
var includeFallbackColors, level, size ;
args = args || {};
includeFallbackColors = args.includeFallbackColors ;
level = args.level;
size = args.size;
for (var i= 0; i < colorList.length ; i++) {
readability = tinycolor.readability(baseColor, colorList[i]);
if (readability > bestScore) {
bestScore = readability;
bestColor = tinycolor(colorList[i]);
}
}
if (tinycolor.isReadable(baseColor, bestColor, {"level":level,"size":size}) || !includeFallbackColors) {
return bestColor;
}
else {
args.includeFallbackColors=false;
return tinycolor.mostReadable(baseColor,["#fff", "#000"],args);
}
};
// Big List of Colors
// ------------------
// <http://www.w3.org/TR/css3-color/#svg-color>
var names = tinycolor.names = {
aliceblue: "f0f8ff",
antiquewhite: "faebd7",
aqua: "0ff",
aquamarine: "7fffd4",
azure: "f0ffff",
beige: "f5f5dc",
bisque: "ffe4c4",
black: "000",
blanchedalmond: "ffebcd",
blue: "00f",
blueviolet: "8a2be2",
brown: "a52a2a",
burlywood: "deb887",
burntsienna: "ea7e5d",
cadetblue: "5f9ea0",
chartreuse: "7fff00",
chocolate: "d2691e",
coral: "ff7f50",
cornflowerblue: "6495ed",
cornsilk: "fff8dc",
crimson: "dc143c",
cyan: "0ff",
darkblue: "00008b",
darkcyan: "008b8b",
darkgoldenrod: "b8860b",
darkgray: "a9a9a9",
darkgreen: "006400",
darkgrey: "a9a9a9",
darkkhaki: "bdb76b",
darkmagenta: "8b008b",
darkolivegreen: "556b2f",
darkorange: "ff8c00",
darkorchid: "9932cc",
darkred: "8b0000",
darksalmon: "e9967a",
darkseagreen: "8fbc8f",
darkslateblue: "483d8b",
darkslategray: "2f4f4f",
darkslategrey: "2f4f4f",
darkturquoise: "00ced1",
darkviolet: "9400d3",
deeppink: "ff1493",
deepskyblue: "00bfff",
dimgray: "696969",
dimgrey: "696969",
dodgerblue: "1e90ff",
firebrick: "b22222",
floralwhite: "fffaf0",
forestgreen: "228b22",
fuchsia: "f0f",
gainsboro: "dcdcdc",
ghostwhite: "f8f8ff",
gold: "ffd700",
goldenrod: "daa520",
gray: "808080",
green: "008000",
greenyellow: "adff2f",
grey: "808080",
honeydew: "f0fff0",
hotpink: "ff69b4",
indianred: "cd5c5c",
indigo: "4b0082",
ivory: "fffff0",
khaki: "f0e68c",
lavender: "e6e6fa",
lavenderblush: "fff0f5",
lawngreen: "7cfc00",
lemonchiffon: "fffacd",
lightblue: "add8e6",
lightcoral: "f08080",
lightcyan: "e0ffff",
lightgoldenrodyellow: "fafad2",
lightgray: "d3d3d3",
lightgreen: "90ee90",
lightgrey: "d3d3d3",
lightpink: "ffb6c1",
lightsalmon: "ffa07a",
lightseagreen: "20b2aa",
lightskyblue: "87cefa",
lightslategray: "789",
lightslategrey: "789",
lightsteelblue: "b0c4de",
lightyellow: "ffffe0",
lime: "0f0",
limegreen: "32cd32",
linen: "faf0e6",
magenta: "f0f",
maroon: "800000",
mediumaquamarine: "66cdaa",
mediumblue: "0000cd",
mediumorchid: "ba55d3",
mediumpurple: "9370db",
mediumseagreen: "3cb371",
mediumslateblue: "7b68ee",
mediumspringgreen: "00fa9a",
mediumturquoise: "48d1cc",
mediumvioletred: "c71585",
midnightblue: "191970",
mintcream: "f5fffa",
mistyrose: "ffe4e1",
moccasin: "ffe4b5",
navajowhite: "ffdead",
navy: "000080",
oldlace: "fdf5e6",
olive: "808000",
olivedrab: "6b8e23",
orange: "ffa500",
orangered: "ff4500",
orchid: "da70d6",
palegoldenrod: "eee8aa",
palegreen: "98fb98",
paleturquoise: "afeeee",
palevioletred: "db7093",
papayawhip: "ffefd5",
peachpuff: "ffdab9",
peru: "cd853f",
pink: "ffc0cb",
plum: "dda0dd",
powderblue: "b0e0e6",
purple: "800080",
rebeccapurple: "663399",
red: "f00",
rosybrown: "bc8f8f",
royalblue: "4169e1",
saddlebrown: "8b4513",
salmon: "fa8072",
sandybrown: "f4a460",
seagreen: "2e8b57",
seashell: "fff5ee",
sienna: "a0522d",
silver: "c0c0c0",
skyblue: "87ceeb",
slateblue: "6a5acd",
slategray: "708090",
slategrey: "708090",
snow: "fffafa",
springgreen: "00ff7f",
steelblue: "4682b4",
tan: "d2b48c",
teal: "008080",
thistle: "d8bfd8",
tomato: "ff6347",
turquoise: "40e0d0",
violet: "ee82ee",
wheat: "f5deb3",
white: "fff",
whitesmoke: "f5f5f5",
yellow: "ff0",
yellowgreen: "9acd32"
};
// Make it easy to access colors via `hexNames[hex]`
var hexNames = tinycolor.hexNames = flip(names);
// Utilities
// ---------
// `{ 'name1': 'val1' }` becomes `{ 'val1': 'name1' }`
function flip(o) {
var flipped = { };
for (var i in o) {
if (o.hasOwnProperty(i)) {
flipped[o[i]] = i;
}
}
return flipped;
}
// Return a valid alpha value [0,1] with all invalid values being set to 1
function boundAlpha(a) {
a = parseFloat(a);
if (isNaN(a) || a < 0 || a > 1) {
a = 1;
}
return a;
}
// Take input from [0, n] and return it as [0, 1]
function bound01(n, max) {
if (isOnePointZero(n)) { n = "100%"; }
var processPercent = isPercentage(n);
n = mathMin(max, mathMax(0, parseFloat(n)));
// Automatically convert percentage into number
if (processPercent) {
n = parseInt(n * max, 10) / 100;
}
// Handle floating point rounding errors
if ((Math.abs(n - max) < 0.000001)) {
return 1;
}
// Convert into [0, 1] range if it isn't already
return (n % max) / parseFloat(max);
}
// Force a number between 0 and 1
function clamp01(val) {
return mathMin(1, mathMax(0, val));
}
// Parse a base-16 hex value into a base-10 integer
function parseIntFromHex(val) {
return parseInt(val, 16);
}
// Need to handle 1.0 as 100%, since once it is a number, there is no difference between it and 1
// <http://stackoverflow.com/questions/7422072/javascript-how-to-detect-number-as-a-decimal-including-1-0>
function isOnePointZero(n) {
return typeof n == "string" && n.indexOf('.') != -1 && parseFloat(n) === 1;
}
// Check to see if string passed in is a percentage
function isPercentage(n) {
return typeof n === "string" && n.indexOf('%') != -1;
}
// Force a hex value to have 2 characters
function pad2(c) {
return c.length == 1 ? '0' + c : '' + c;
}
// Replace a decimal with it's percentage value
function convertToPercentage(n) {
if (n <= 1) {
n = (n * 100) + "%";
}
return n;
}
// Converts a decimal to a hex value
function convertDecimalToHex(d) {
return Math.round(parseFloat(d) * 255).toString(16);
}
// Converts a hex value to a decimal
function convertHexToDecimal(h) {
return (parseIntFromHex(h) / 255);
}
var matchers = (function() {
// <http://www.w3.org/TR/css3-values/#integers>
var CSS_INTEGER = "[-\\+]?\\d+%?";
// <http://www.w3.org/TR/css3-values/#number-value>
var CSS_NUMBER = "[-\\+]?\\d*\\.\\d+%?";
// Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
// Actual matching.
// Parentheses and commas are optional, but not required.
// Whitespace can take the place of commas or opening paren
var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
return {
CSS_UNIT: new RegExp(CSS_UNIT),
rgb: new RegExp("rgb" + PERMISSIVE_MATCH3),
rgba: new RegExp("rgba" + PERMISSIVE_MATCH4),
hsl: new RegExp("hsl" + PERMISSIVE_MATCH3),
hsla: new RegExp("hsla" + PERMISSIVE_MATCH4),
hsv: new RegExp("hsv" + PERMISSIVE_MATCH3),
hsva: new RegExp("hsva" + PERMISSIVE_MATCH4),
hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
};
})();
// `isValidCSSUnit`
// Take in a single string / number and check to see if it looks like a CSS unit
// (see `matchers` above for definition).
function isValidCSSUnit(color) {
return !!matchers.CSS_UNIT.exec(color);
}
// `stringInputToObject`
// Permissive string parsing. Take in a number of formats, and output an object
// based on detected format. Returns `{ r, g, b }` or `{ h, s, l }` or `{ h, s, v}`
function stringInputToObject(color) {
color = color.replace(trimLeft,'').replace(trimRight, '').toLowerCase();
var named = false;
if (names[color]) {
color = names[color];
named = true;
}
else if (color == 'transparent') {
return { r: 0, g: 0, b: 0, a: 0, format: "name" };
}
// Try to match string input using regular expressions.
// Keep most of the number bounding out of this function - don't worry about [0,1] or [0,100] or [0,360]
// Just return an object and let the conversion functions handle that.
// This way the result will be the same whether the tinycolor is initialized with string or object.
var match;
if ((match = matchers.rgb.exec(color))) {
return { r: match[1], g: match[2], b: match[3] };
}
if ((match = matchers.rgba.exec(color))) {
return { r: match[1], g: match[2], b: match[3], a: match[4] };
}
if ((match = matchers.hsl.exec(color))) {
return { h: match[1], s: match[2], l: match[3] };
}
if ((match = matchers.hsla.exec(color))) {
return { h: match[1], s: match[2], l: match[3], a: match[4] };
}
if ((match = matchers.hsv.exec(color))) {
return { h: match[1], s: match[2], v: match[3] };
}
if ((match = matchers.hsva.exec(color))) {
return { h: match[1], s: match[2], v: match[3], a: match[4] };
}
if ((match = matchers.hex8.exec(color))) {
return {
r: parseIntFromHex(match[1]),
g: parseIntFromHex(match[2]),
b: parseIntFromHex(match[3]),
a: convertHexToDecimal(match[4]),
format: named ? "name" : "hex8"
};
}
if ((match = matchers.hex6.exec(color))) {
return {
r: parseIntFromHex(match[1]),
g: parseIntFromHex(match[2]),
b: parseIntFromHex(match[3]),
format: named ? "name" : "hex"
};
}
if ((match = matchers.hex4.exec(color))) {
return {
r: parseIntFromHex(match[1] + '' + match[1]),
g: parseIntFromHex(match[2] + '' + match[2]),
b: parseIntFromHex(match[3] + '' + match[3]),
a: convertHexToDecimal(match[4] + '' + match[4]),
format: named ? "name" : "hex8"
};
}
if ((match = matchers.hex3.exec(color))) {
return {
r: parseIntFromHex(match[1] + '' + match[1]),
g: parseIntFromHex(match[2] + '' + match[2]),
b: parseIntFromHex(match[3] + '' + match[3]),
format: named ? "name" : "hex"
};
}
return false;
}
function validateWCAG2Parms(parms) {
// return valid WCAG2 parms for isReadable.
// If input parms are invalid, return {"level":"AA", "size":"small"}
var level, size;
parms = parms || {"level":"AA", "size":"small"};
level = (parms.level || "AA").toUpperCase();
size = (parms.size || "small").toLowerCase();
if (level !== "AA" && level !== "AAA") {
level = "AA";
}
if (size !== "small" && size !== "large") {
size = "small";
}
return {"level":level, "size":size};
}
// Node: Export function
if ( true && module.exports) {
module.exports = tinycolor;
}
// AMD/requirejs: Define the module
else if (true) {
!(__WEBPACK_AMD_DEFINE_RESULT__ = (function () {return tinycolor;}).call(exports, __webpack_require__, exports, module),
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
}
// Browser: Expose to window
else {}
})(Math);
/***/ }),
/***/ "./node_modules/vue-ref/index.js":
/*!***************************************!*\
!*** ./node_modules/vue-ref/index.js ***!
\***************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = {
install: function install(Vue) {
var options =
arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var directiveName = options.name || "ref";
Vue.directive(directiveName, {
bind: function bind(el, binding, vnode) {
Vue.nextTick(function() {
binding.value(vnode.componentInstance || el, vnode.key);
});
binding.value(vnode.componentInstance || el, vnode.key);
},
update: function update(el, binding, vnode, oldVnode) {
if (oldVnode.data && oldVnode.data.directives) {
var oldBinding = oldVnode.data.directives.find(function(directive) {
var name = directive.name;
return name === directiveName;
});
if (oldBinding && oldBinding.value !== binding.value) {
oldBinding && oldBinding.value(null, oldVnode.key);
binding.value(vnode.componentInstance || el, vnode.key);
return;
}
}
// Should not have this situation
if (
vnode.componentInstance !== oldVnode.componentInstance ||
vnode.elm !== oldVnode.elm
) {
binding.value(vnode.componentInstance || el, vnode.key);
}
},
unbind: function unbind(el, binding, vnode) {
binding.value(null, vnode.key);
}
});
}
};
/***/ }),
/***/ "./node_modules/warning/warning.js":
/*!*****************************************!*\
!*** ./node_modules/warning/warning.js ***!
\*****************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/**
* Copyright (c) 2014-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* Similar to invariant but only logs a warning if the condition is not met.
* This can be used to log issues in development environments in critical
* paths. Removing the logging code for production environments will keep the
* same logic and follow the same code paths.
*/
var __DEV__ = "development" !== 'production';
var warning = function() {};
if (__DEV__) {
var printWarning = function printWarning(format, args) {
var len = arguments.length;
args = new Array(len > 1 ? len - 1 : 0);
for (var key = 1; key < len; key++) {
args[key - 1] = arguments[key];
}
var argIndex = 0;
var message = 'Warning: ' +
format.replace(/%s/g, function() {
return args[argIndex++];
});
if (typeof console !== 'undefined') {
console.error(message);
}
try {
// --- Welcome to debugging React ---
// This error was thrown as a convenience so that you can use this stack
// to find the callsite that caused this warning to fire.
throw new Error(message);
} catch (x) {}
}
warning = function(condition, format, args) {
var len = arguments.length;
args = new Array(len > 2 ? len - 2 : 0);
for (var key = 2; key < len; key++) {
args[key - 2] = arguments[key];
}
if (format === undefined) {
throw new Error(
'`warning(condition, format, ...args)` requires a warning ' +
'message argument'
);
}
if (!condition) {
printWarning.apply(null, [format].concat(args));
}
};
}
module.exports = warning;
/***/ }),
/***/ "./node_modules/webpack/buildin/global.js":
/*!***********************************!*\
!*** (webpack)/buildin/global.js ***!
\***********************************/
/*! no static exports found */
/***/ (function(module, exports) {
var g;
// This works in non-strict mode
g = (function() {
return this;
})();
try {
// This works if eval is allowed (see CSP)
g = g || new Function("return this")();
} catch (e) {
// This works if the window reference is available
if (typeof window === "object") g = window;
}
// g can still be undefined, but nothing to do about it...
// We return undefined, instead of nothing here, so it's
// easier to handle this case. if(!global) { ...}
module.exports = g;
/***/ }),
/***/ "./node_modules/webpack/buildin/module.js":
/*!***********************************!*\
!*** (webpack)/buildin/module.js ***!
\***********************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = function(module) {
if (!module.webpackPolyfill) {
module.deprecate = function() {};
module.paths = [];
// module.parent = undefined by default
if (!module.children) module.children = [];
Object.defineProperty(module, "loaded", {
enumerable: true,
get: function() {
return module.l;
}
});
Object.defineProperty(module, "id", {
enumerable: true,
get: function() {
return module.i;
}
});
module.webpackPolyfill = 1;
}
return module;
};
/***/ }),
/***/ "./package.json":
/*!**********************!*\
!*** ./package.json ***!
\**********************/
/*! exports provided: name, version, title, description, keywords, main, module, typings, files, scripts, repository, license, bugs, homepage, peerDependencies, devDependencies, dependencies, sideEffects, default */
/***/ (function(module) {
module.exports = JSON.parse("{\"name\":\"ant-design-vue\",\"version\":\"1.7.5\",\"title\":\"Ant Design Vue\",\"description\":\"An enterprise-class UI design language and Vue-based implementation\",\"keywords\":[\"ant\",\"design\",\"antd\",\"vue\",\"vueComponent\",\"component\",\"components\",\"ui\",\"framework\",\"frontend\"],\"main\":\"lib/index.js\",\"module\":\"es/index.js\",\"typings\":\"types/index.d.ts\",\"files\":[\"dist\",\"lib\",\"es\",\"types\",\"scripts\"],\"scripts\":{\"dev\":\"webpack-dev-server\",\"start\":\"cross-env NODE_ENV=development webpack-dev-server --config webpack.config.js\",\"test\":\"cross-env NODE_ENV=test jest --config .jest.js\",\"compile\":\"node antd-tools/cli/run.js compile\",\"pub\":\"node antd-tools/cli/run.js pub\",\"pub-with-ci\":\"node antd-tools/cli/run.js pub-with-ci\",\"prepublish\":\"node antd-tools/cli/run.js guard\",\"pre-publish\":\"node ./scripts/prepub\",\"prettier\":\"prettier -c --write '**/*'\",\"pretty-quick\":\"pretty-quick\",\"dist\":\"node antd-tools/cli/run.js dist\",\"lint\":\"eslint -c ./.eslintrc --fix --ext .jsx,.js,.vue ./components\",\"lint:site\":\"eslint -c ./.eslintrc --fix --ext .jsx,.js,.vue ./antdv-demo\",\"lint:docs\":\"eslint -c ./.eslintrc --fix --ext .jsx,.js,.vue,.md ./antdv-demo/docs/**/demo/**\",\"lint:style\":\"stylelint \\\"{site,components}/**/*.less\\\" --syntax less\",\"codecov\":\"codecov\",\"postinstall\":\"node scripts/postinstall || echo \\\"ignore\\\"\"},\"repository\":{\"type\":\"git\",\"url\":\"git+https://github.com/vueComponent/ant-design-vue.git\"},\"license\":\"MIT\",\"bugs\":{\"url\":\"https://github.com/vueComponent/ant-design-vue/issues\"},\"homepage\":\"https://www.antdv.com/\",\"peerDependencies\":{\"vue\":\"^2.6.0\",\"vue-template-compiler\":\"^2.6.0\"},\"devDependencies\":{\"@commitlint/cli\":\"^8.0.0\",\"@commitlint/config-conventional\":\"^8.0.0\",\"@octokit/rest\":\"^16.0.0\",\"@vue/cli-plugin-eslint\":\"^4.0.0\",\"@vue/server-test-utils\":\"1.0.0-beta.16\",\"@vue/test-utils\":\"1.0.0-beta.16\",\"acorn\":\"^7.0.0\",\"autoprefixer\":\"^9.6.0\",\"axios\":\"^0.19.0\",\"babel-cli\":\"^6.26.0\",\"babel-core\":\"^6.26.0\",\"babel-eslint\":\"^10.0.1\",\"babel-helper-vue-jsx-merge-props\":\"^2.0.3\",\"babel-jest\":\"^23.6.0\",\"babel-loader\":\"^7.1.2\",\"babel-plugin-import\":\"^1.1.1\",\"babel-plugin-inline-import-data-uri\":\"^1.0.1\",\"babel-plugin-istanbul\":\"^6.0.0\",\"babel-plugin-syntax-dynamic-import\":\"^6.18.0\",\"babel-plugin-syntax-jsx\":\"^6.18.0\",\"babel-plugin-transform-class-properties\":\"^6.24.1\",\"babel-plugin-transform-decorators\":\"^6.24.1\",\"babel-plugin-transform-decorators-legacy\":\"^1.3.4\",\"babel-plugin-transform-es3-member-expression-literals\":\"^6.22.0\",\"babel-plugin-transform-es3-property-literals\":\"^6.22.0\",\"babel-plugin-transform-object-assign\":\"^6.22.0\",\"babel-plugin-transform-object-rest-spread\":\"^6.26.0\",\"babel-plugin-transform-runtime\":\"~6.23.0\",\"babel-plugin-transform-vue-jsx\":\"^3.7.0\",\"babel-polyfill\":\"^6.26.0\",\"babel-preset-env\":\"^1.6.1\",\"case-sensitive-paths-webpack-plugin\":\"^2.1.2\",\"chalk\":\"^3.0.0\",\"cheerio\":\"^1.0.0-rc.2\",\"codecov\":\"^3.0.0\",\"colorful\":\"^2.1.0\",\"commander\":\"^4.0.0\",\"compare-versions\":\"^3.3.0\",\"cross-env\":\"^7.0.0\",\"css-loader\":\"^3.0.0\",\"deep-assign\":\"^2.0.0\",\"enquire-js\":\"^0.2.1\",\"eslint\":\"^6.8.0\",\"eslint-config-prettier\":\"^6.10.1\",\"eslint-plugin-html\":\"^6.0.0\",\"eslint-plugin-markdown\":\"^2.0.0-alpha.0\",\"eslint-plugin-vue\":\"^6.2.2\",\"fetch-jsonp\":\"^1.1.3\",\"fs-extra\":\"^8.0.0\",\"glob\":\"^7.1.2\",\"gulp\":\"^4.0.1\",\"gulp-babel\":\"^7.0.0\",\"gulp-strip-code\":\"^0.1.4\",\"html-webpack-plugin\":\"^3.2.0\",\"husky\":\"^4.0.0\",\"istanbul-instrumenter-loader\":\"^3.0.0\",\"jest\":\"^24.0.0\",\"jest-serializer-vue\":\"^2.0.0\",\"jest-transform-stub\":\"^2.0.0\",\"js-base64\":\"^3.0.0\",\"json-templater\":\"^1.2.0\",\"jsonp\":\"^0.2.1\",\"less\":\"^3.9.0\",\"less-loader\":\"^6.0.0\",\"less-plugin-npm-import\":\"^2.1.0\",\"lint-staged\":\"^10.0.0\",\"marked\":\"0.3.18\",\"merge2\":\"^1.2.1\",\"mini-css-extract-plugin\":\"^0.10.0\",\"minimist\":\"^1.2.0\",\"mkdirp\":\"^0.5.1\",\"mockdate\":\"^2.0.2\",\"nprogress\":\"^0.2.0\",\"optimize-css-assets-webpack-plugin\":\"^5.0.1\",\"postcss\":\"^7.0.6\",\"postcss-loader\":\"^3.0.0\",\"prettier\":\"^1.18.2\",\"pretty-quick\":\"^2.0.0\",\"querystring\":\"^0.2.0\",\"raw-loader\":\"^4.0.0\",\"reqwest\":\"^2.0.5\",\"rimraf\":\"^3.0.0\",\"rucksack-css\":\"^1.0.2\",\"selenium-server\":\"^3.0.1\",\"semver\":\"^7.0.0\",\"style-loader\":\"^1.0.0\",\"stylelint\":\"^13.0.0\",\"stylelint-config-prettier\":\"^8.0.0\",\"stylelint-config-standard\":\"^19.0.0\",\"terser-webpack-plugin\":\"^3.0.3\",\"through2\":\"^3.0.0\",\"url-loader\":\"^3.0.0\",\"vue\":\"^2.6.11\",\"vue-antd-md-loader\":\"^1.1.0\",\"vue-clipboard2\":\"0.3.1\",\"vue-draggable-resizable\":\"^2.1.0\",\"vue-eslint-parser\":\"^7.0.0\",\"vue-i18n\":\"^8.3.2\",\"vue-infinite-scroll\":\"^2.0.2\",\"vue-jest\":\"^2.5.0\",\"vue-loader\":\"^15.6.2\",\"vue-router\":\"^3.0.1\",\"vue-server-renderer\":\"^2.6.11\",\"vue-template-compiler\":\"^2.6.11\",\"vue-virtual-scroller\":\"^1.0.0\",\"vuex\":\"^3.1.0\",\"webpack\":\"^4.28.4\",\"webpack-cli\":\"^3.2.1\",\"webpack-dev-server\":\"^3.1.14\",\"webpack-merge\":\"^4.1.1\",\"webpackbar\":\"^4.0.0\",\"xhr-mock\":\"^2.5.1\"},\"dependencies\":{\"@ant-design/icons\":\"^2.1.1\",\"@ant-design/icons-vue\":\"^2.0.0\",\"@simonwep/pickr\":\"~1.7.0\",\"add-dom-event-listener\":\"^1.0.2\",\"array-tree-filter\":\"^2.1.0\",\"async-validator\":\"^3.0.3\",\"babel-helper-vue-jsx-merge-props\":\"^2.0.3\",\"babel-runtime\":\"6.x\",\"classnames\":\"^2.2.5\",\"component-classes\":\"^1.2.6\",\"dom-align\":\"^1.10.4\",\"dom-closest\":\"^0.2.0\",\"dom-scroll-into-view\":\"^2.0.0\",\"enquire.js\":\"^2.1.6\",\"intersperse\":\"^1.0.0\",\"is-mobile\":\"^2.2.1\",\"is-negative-zero\":\"^2.0.0\",\"ismobilejs\":\"^1.0.0\",\"json2mq\":\"^0.2.0\",\"lodash\":\"^4.17.5\",\"moment\":\"^2.21.0\",\"mutationobserver-shim\":\"^0.3.2\",\"node-emoji\":\"^1.10.0\",\"omit.js\":\"^1.0.0\",\"raf\":\"^3.4.0\",\"resize-observer-polyfill\":\"^1.5.1\",\"shallow-equal\":\"^1.0.0\",\"shallowequal\":\"^1.0.2\",\"vue-ref\":\"^2.0.0\",\"warning\":\"^4.0.0\"},\"sideEffects\":[\"site/*\",\"components/style.js\",\"components/**/style/*\",\"*.vue\",\"*.md\",\"dist/*\",\"es/**/style/*\",\"lib/**/style/*\",\"*.less\"]}");
/***/ }),
/***/ 0:
/*!*********************!*\
!*** multi ./index ***!
\*********************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(/*! ./index */"./index.js");
/***/ }),
/***/ "moment":
/*!******************************************************************************************!*\
!*** external {"root":"moment","commonjs2":"moment","commonjs":"moment","amd":"moment"} ***!
\******************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = __WEBPACK_EXTERNAL_MODULE_moment__;
/***/ }),
/***/ "vue":
/*!******************************************************************************!*\
!*** external {"root":"Vue","commonjs2":"vue","commonjs":"vue","amd":"vue"} ***!
\******************************************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
module.exports = __WEBPACK_EXTERNAL_MODULE_vue__;
/***/ })
/******/ });
});
//# sourceMappingURL=antd.js.map