1662 lines
67 KiB
JavaScript
1662 lines
67 KiB
JavaScript
(wx["webpackJsonp"] = wx["webpackJsonp"] || []).push([["vendors"],{
|
|
|
|
/***/ "./node_modules/@antmjs/vantui/es/common/jumpLink.js":
|
|
/*!***********************************************************!*\
|
|
!*** ./node_modules/@antmjs/vantui/es/common/jumpLink.js ***!
|
|
\***********************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ "jumpLink": function() { return /* binding */ jumpLink; }
|
|
/* harmony export */ });
|
|
/* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tarojs/taro */ "webpack/container/remote/@tarojs/taro");
|
|
/* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_tarojs_taro__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
|
function jumpLink(url, linkType) {
|
|
var _linkType;
|
|
|
|
linkType = (_linkType = linkType) !== null && _linkType !== void 0 ? _linkType : 'navigateTo';
|
|
|
|
if (url) {
|
|
if (linkType === 'navigateTo' && (0,_tarojs_taro__WEBPACK_IMPORTED_MODULE_0__.getCurrentPages)().length > 9) {
|
|
(0,_tarojs_taro__WEBPACK_IMPORTED_MODULE_0__.redirectTo)({
|
|
url: url
|
|
});
|
|
} else {
|
|
switch (linkType) {
|
|
case 'navigateTo':
|
|
(0,_tarojs_taro__WEBPACK_IMPORTED_MODULE_0__.navigateTo)({
|
|
url: url
|
|
});
|
|
break;
|
|
|
|
case 'reLaunch':
|
|
(0,_tarojs_taro__WEBPACK_IMPORTED_MODULE_0__.reLaunch)({
|
|
url: url
|
|
});
|
|
break;
|
|
|
|
case 'redirectTo':
|
|
(0,_tarojs_taro__WEBPACK_IMPORTED_MODULE_0__.redirectTo)({
|
|
url: url
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./node_modules/@antmjs/vantui/es/common/utils.js":
|
|
/*!********************************************************!*\
|
|
!*** ./node_modules/@antmjs/vantui/es/common/utils.js ***!
|
|
\********************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ "requestAnimationFrame": function() { return /* binding */ requestAnimationFrame; },
|
|
/* harmony export */ "getRect": function() { return /* binding */ getRect; }
|
|
/* harmony export */ });
|
|
/* unused harmony exports range, nextTick, getSystemInfoSync, getMenuButtonBoundingClientRect, addUnit, pickExclude, getAllRect, toPromise, getCurrentPage */
|
|
/* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tarojs/taro */ "webpack/container/remote/@tarojs/taro");
|
|
/* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_tarojs_taro__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 _validator__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./validator */ "./node_modules/@antmjs/vantui/es/common/validator.js");
|
|
/* harmony import */ var _version__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./version */ "./node_modules/@antmjs/vantui/es/common/version.js");
|
|
/* provided dependency */ var window = __webpack_require__(/*! @tarojs/runtime */ "webpack/container/remote/@tarojs/runtime")["window"];
|
|
|
|
|
|
|
|
|
|
|
|
function range(num, min, max) {
|
|
return Math.min(Math.max(num, min), max);
|
|
}
|
|
function nextTick(cb) {
|
|
if ((0,_version__WEBPACK_IMPORTED_MODULE_2__.canIUseNextTick)()) {
|
|
_tarojs_taro__WEBPACK_IMPORTED_MODULE_0___default().nextTick(cb);
|
|
} else {
|
|
setTimeout(function () {
|
|
cb();
|
|
}, 33.333333333333336);
|
|
}
|
|
}
|
|
var systemInfo;
|
|
function getSystemInfoSync() {
|
|
if (systemInfo == null) {
|
|
systemInfo = (0,_tarojs_taro__WEBPACK_IMPORTED_MODULE_0__.getSystemInfoSync)();
|
|
}
|
|
|
|
return systemInfo;
|
|
}
|
|
var menuInfo;
|
|
function getMenuButtonBoundingClientRect() {
|
|
if (menuInfo == null) {
|
|
menuInfo = _tarojs_taro__WEBPACK_IMPORTED_MODULE_0___default().getMenuButtonBoundingClientRect();
|
|
}
|
|
|
|
return menuInfo;
|
|
}
|
|
function addUnit(value) {
|
|
if (!(0,_validator__WEBPACK_IMPORTED_MODULE_3__.isDef)(value)) {
|
|
return undefined;
|
|
}
|
|
|
|
return /^-?\d+(\.\d+)?$/.test('' + value) ? _tarojs_taro__WEBPACK_IMPORTED_MODULE_0___default().pxTransform(value) : value;
|
|
}
|
|
function requestAnimationFrame(cb) {
|
|
if (window.requestAnimationFrame) {
|
|
return window.requestAnimationFrame(cb);
|
|
}
|
|
|
|
return raf__WEBPACK_IMPORTED_MODULE_1___default()(cb);
|
|
}
|
|
function pickExclude(obj, keys) {
|
|
if (!(0,_validator__WEBPACK_IMPORTED_MODULE_3__.isPlainObject)(obj)) {
|
|
return {};
|
|
}
|
|
|
|
return Object.keys(obj).reduce(function (prev, key) {
|
|
if (!keys.includes(key)) {
|
|
prev[key] = obj[key];
|
|
}
|
|
|
|
return prev;
|
|
}, {});
|
|
}
|
|
function getRect(context, selector) {
|
|
return new Promise(function (resolve) {
|
|
var query = (0,_tarojs_taro__WEBPACK_IMPORTED_MODULE_0__.createSelectorQuery)();
|
|
|
|
if (context) {
|
|
query = query.in(context);
|
|
}
|
|
|
|
query.select(selector).boundingClientRect().exec(function () {
|
|
var rect = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
return resolve(rect[0]);
|
|
});
|
|
});
|
|
}
|
|
function getAllRect(context, selector) {
|
|
return new Promise(function (resolve) {
|
|
var query = (0,_tarojs_taro__WEBPACK_IMPORTED_MODULE_0__.createSelectorQuery)();
|
|
|
|
if (context) {
|
|
query = query.in(context);
|
|
}
|
|
|
|
query.selectAll(selector).boundingClientRect().exec(function () {
|
|
var rect = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
return resolve(rect[0]);
|
|
});
|
|
});
|
|
}
|
|
function toPromise(promiseLike) {
|
|
if ((0,_validator__WEBPACK_IMPORTED_MODULE_3__.isPromise)(promiseLike)) {
|
|
return promiseLike;
|
|
}
|
|
|
|
return Promise.resolve(promiseLike);
|
|
}
|
|
function getCurrentPage() {
|
|
var pages = _tarojs_taro__WEBPACK_IMPORTED_MODULE_0___default().getCurrentPages();
|
|
return pages[pages.length - 1];
|
|
}
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./node_modules/@antmjs/vantui/es/common/validator.js":
|
|
/*!************************************************************!*\
|
|
!*** ./node_modules/@antmjs/vantui/es/common/validator.js ***!
|
|
\************************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ "isPlainObject": function() { return /* binding */ isPlainObject; },
|
|
/* harmony export */ "isPromise": function() { return /* binding */ isPromise; },
|
|
/* harmony export */ "isDef": function() { return /* binding */ isDef; },
|
|
/* harmony export */ "isObj": function() { return /* binding */ isObj; }
|
|
/* harmony export */ });
|
|
/* unused harmony exports isFunction, isNumber, isBoolean, isImageUrl, isVideoUrl */
|
|
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
|
|
|
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
function isFunction(val) {
|
|
return typeof val === 'function';
|
|
}
|
|
function isPlainObject(val) {
|
|
return val !== null && (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__["default"])(val) === 'object' && !Array.isArray(val);
|
|
}
|
|
function isPromise(val) {
|
|
return isPlainObject(val) && isFunction(val.then) && isFunction(val.catch);
|
|
}
|
|
function isDef(value) {
|
|
return value !== undefined && value !== null;
|
|
}
|
|
function isObj(x) {
|
|
var type = (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__["default"])(x);
|
|
|
|
return x !== null && (type === 'object' || type === 'function');
|
|
}
|
|
function isNumber(value) {
|
|
return /^\d+(\.\d+)?$/.test(value);
|
|
}
|
|
function isBoolean(value) {
|
|
return typeof value === 'boolean';
|
|
}
|
|
var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
|
|
var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv)/i;
|
|
function isImageUrl(url) {
|
|
return IMAGE_REGEXP.test(url);
|
|
}
|
|
function isVideoUrl(url) {
|
|
return VIDEO_REGEXP.test(url);
|
|
}
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./node_modules/@antmjs/vantui/es/common/version.js":
|
|
/*!**********************************************************!*\
|
|
!*** ./node_modules/@antmjs/vantui/es/common/version.js ***!
|
|
\**********************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ "canIUseNextTick": function() { return /* binding */ canIUseNextTick; }
|
|
/* harmony export */ });
|
|
/* unused harmony exports canIUseModel, canIUseFormFieldButton, canIUseAnimate, canIUseGroupSetData, canIUseCanvas2d, canIUseGetUserProfile */
|
|
/* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tarojs/taro */ "webpack/container/remote/@tarojs/taro");
|
|
/* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_tarojs_taro__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
|
|
|
function compareVersion(v1, v2) {
|
|
v1 = v1.split('.');
|
|
v2 = v2.split('.');
|
|
var len = Math.max(v1.length, v2.length);
|
|
|
|
while (v1.length < len) {
|
|
v1.push('0');
|
|
}
|
|
|
|
while (v2.length < len) {
|
|
v2.push('0');
|
|
}
|
|
|
|
for (var i = 0; i < len; i++) {
|
|
var num1 = parseInt(v1[i], 10);
|
|
var num2 = parseInt(v2[i], 10);
|
|
|
|
if (num1 > num2) {
|
|
return 1;
|
|
}
|
|
|
|
if (num1 < num2) {
|
|
return -1;
|
|
}
|
|
}
|
|
|
|
return 0;
|
|
}
|
|
|
|
var systemInfo;
|
|
|
|
function getSystemInfoSync() {
|
|
if (systemInfo == null) {
|
|
systemInfo = (0,_tarojs_taro__WEBPACK_IMPORTED_MODULE_0__.getSystemInfoSync)();
|
|
}
|
|
|
|
return systemInfo;
|
|
}
|
|
|
|
function gte(version) {
|
|
var system = getSystemInfoSync();
|
|
return compareVersion(system.SDKVersion || system.version, version) >= 0;
|
|
}
|
|
|
|
function canIUseModel() {
|
|
return gte('2.9.3');
|
|
}
|
|
function canIUseFormFieldButton() {
|
|
return gte('2.10.3');
|
|
}
|
|
function canIUseAnimate() {
|
|
return gte('2.9.0');
|
|
}
|
|
function canIUseGroupSetData() {
|
|
return gte('2.4.0');
|
|
}
|
|
function canIUseNextTick() {
|
|
return (0,_tarojs_taro__WEBPACK_IMPORTED_MODULE_0__.canIUse)('nextTick');
|
|
}
|
|
function canIUseCanvas2d() {
|
|
return gte('2.9.0');
|
|
}
|
|
function canIUseGetUserProfile() {
|
|
return !!(_tarojs_taro__WEBPACK_IMPORTED_MODULE_0___default().getUserProfile);
|
|
}
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./node_modules/@antmjs/vantui/es/icon/index.js":
|
|
/*!******************************************************!*\
|
|
!*** ./node_modules/@antmjs/vantui/es/icon/index.js ***!
|
|
\******************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ "Icon": function() { return /* binding */ Icon; }
|
|
/* harmony export */ });
|
|
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
|
|
/* harmony import */ var _tarojs_components__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @tarojs/components */ "./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");
|
|
/* harmony import */ var _wxs_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../wxs/utils */ "./node_modules/@antmjs/vantui/es/wxs/utils.js");
|
|
/* harmony import */ var _info_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../info/index */ "./node_modules/@antmjs/vantui/es/info/index.js");
|
|
/* harmony import */ var _wxs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./wxs */ "./node_modules/@antmjs/vantui/es/icon/wxs.js");
|
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ "webpack/container/remote/react/jsx-runtime");
|
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__);
|
|
|
|
|
|
var _excluded = ["classPrefix", "name", "color", "size", "dot", "info", "style", "className"];
|
|
|
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
|
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function Icon(props) {
|
|
var _props$classPrefix = props.classPrefix,
|
|
classPrefix = _props$classPrefix === void 0 ? 'van-icon' : _props$classPrefix,
|
|
name = props.name,
|
|
color = props.color,
|
|
size = props.size,
|
|
dot = props.dot,
|
|
info = props.info,
|
|
style = props.style,
|
|
className = props.className,
|
|
others = (0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_5__["default"])(props, _excluded);
|
|
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_6__.View, _objectSpread(_objectSpread({
|
|
className: _wxs__WEBPACK_IMPORTED_MODULE_3__.rootClass({
|
|
classPrefix: classPrefix,
|
|
name: name
|
|
}) + " ".concat(className || ''),
|
|
style: _wxs_utils__WEBPACK_IMPORTED_MODULE_1__.style([_wxs__WEBPACK_IMPORTED_MODULE_3__.rootStyle({
|
|
color: color,
|
|
size: size
|
|
}), style])
|
|
}, others), {}, {
|
|
children: [(info || info === 0 || dot) && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_info_index__WEBPACK_IMPORTED_MODULE_2__.Info, {
|
|
dot: dot,
|
|
info: info,
|
|
className: "van-icon__info"
|
|
}), _wxs__WEBPACK_IMPORTED_MODULE_3__.isImage(name) && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_6__.Image, {
|
|
src: name,
|
|
mode: "aspectFit",
|
|
className: "van-icon__image"
|
|
})]
|
|
}));
|
|
}
|
|
/* harmony default export */ __webpack_exports__["default"] = (Icon);
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./node_modules/@antmjs/vantui/es/icon/wxs.js":
|
|
/*!****************************************************!*\
|
|
!*** ./node_modules/@antmjs/vantui/es/icon/wxs.js ***!
|
|
\****************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ "isImage": function() { return /* binding */ isImage; },
|
|
/* harmony export */ "rootClass": function() { return /* binding */ rootClass; },
|
|
/* harmony export */ "rootStyle": function() { return /* binding */ rootStyle; }
|
|
/* harmony export */ });
|
|
/* harmony import */ var _wxs_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../wxs/style */ "./node_modules/@antmjs/vantui/es/wxs/style.js");
|
|
/* harmony import */ var _wxs_add_unit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../wxs/add-unit */ "./node_modules/@antmjs/vantui/es/wxs/add-unit.js");
|
|
|
|
|
|
|
|
function isImage(name) {
|
|
return name.indexOf('/') !== -1;
|
|
}
|
|
|
|
function rootClass(data) {
|
|
var classes = [];
|
|
|
|
if (data.classPrefix != null) {
|
|
classes.push(data.classPrefix);
|
|
}
|
|
|
|
if (isImage(data.name)) {
|
|
classes.push('van-icon--image');
|
|
} else if (data.classPrefix != null) {
|
|
classes.push(data.classPrefix + '-' + data.name);
|
|
}
|
|
|
|
return classes.join(' ');
|
|
}
|
|
|
|
function rootStyle(data) {
|
|
return (0,_wxs_style__WEBPACK_IMPORTED_MODULE_1__.style)([{
|
|
color: data.color,
|
|
'font-size': (0,_wxs_add_unit__WEBPACK_IMPORTED_MODULE_0__.addUnit)(data.size)
|
|
}]);
|
|
}
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./node_modules/@antmjs/vantui/es/info/index.js":
|
|
/*!******************************************************!*\
|
|
!*** ./node_modules/@antmjs/vantui/es/info/index.js ***!
|
|
\******************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ "Info": function() { return /* binding */ Info; }
|
|
/* harmony export */ });
|
|
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
|
|
/* harmony import */ var _tarojs_components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @tarojs/components */ "./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");
|
|
/* harmony import */ var _wxs_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../wxs/utils */ "./node_modules/@antmjs/vantui/es/wxs/utils.js");
|
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react/jsx-runtime */ "webpack/container/remote/react/jsx-runtime");
|
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__);
|
|
|
|
|
|
var _excluded = ["dot", "info", "style", "className"];
|
|
|
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
|
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
|
|
|
|
|
|
|
|
|
|
function Info(props) {
|
|
var dot = props.dot,
|
|
_props$info = props.info,
|
|
info = _props$info === void 0 ? null : _props$info,
|
|
style = props.style,
|
|
className = props.className,
|
|
others = (0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_3__["default"])(props, _excluded);
|
|
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.Fragment, {
|
|
children: (info || info === 0 || dot) && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_4__.View, _objectSpread(_objectSpread({
|
|
className: 'van-info ' + _wxs_utils__WEBPACK_IMPORTED_MODULE_1__.bem('info', {
|
|
dot: dot
|
|
}) + ' ' + className,
|
|
style: _wxs_utils__WEBPACK_IMPORTED_MODULE_1__.style([style])
|
|
}, others), {}, {
|
|
children: dot ? '' : info
|
|
}))
|
|
});
|
|
}
|
|
/* harmony default export */ __webpack_exports__["default"] = (Info);
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./node_modules/@antmjs/vantui/es/tabbar-item/index.js":
|
|
/*!*************************************************************!*\
|
|
!*** ./node_modules/@antmjs/vantui/es/tabbar-item/index.js ***!
|
|
\*************************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* unused harmony export TabbarItem */
|
|
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
|
|
/* harmony import */ var _tarojs_components__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @tarojs/components */ "./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");
|
|
/* harmony import */ var _wxs_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../wxs/utils */ "./node_modules/@antmjs/vantui/es/wxs/utils.js");
|
|
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../icon */ "./node_modules/@antmjs/vantui/es/icon/index.js");
|
|
/* harmony import */ var _info__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../info */ "./node_modules/@antmjs/vantui/es/info/index.js");
|
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ "webpack/container/remote/react/jsx-runtime");
|
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__);
|
|
|
|
|
|
var _excluded = ["icon", "name", "iconPrefix", "dot", "info", "renderIconActive", "renderIcon", "index", "active", "activeColor", "inactiveColor", "onChange", "children", "style", "className", "onClick"];
|
|
|
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
|
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function TabbarItem(props) {
|
|
var icon = props.icon,
|
|
name = props.name,
|
|
_props$iconPrefix = props.iconPrefix,
|
|
iconPrefix = _props$iconPrefix === void 0 ? 'van-icon' : _props$iconPrefix,
|
|
dot = props.dot,
|
|
info = props.info,
|
|
renderIconActive = props.renderIconActive,
|
|
renderIcon = props.renderIcon,
|
|
index = props.index,
|
|
active = props.active,
|
|
activeColor = props.activeColor,
|
|
inactiveColor = props.inactiveColor,
|
|
onChange = props.onChange,
|
|
children = props.children,
|
|
style = props.style,
|
|
className = props.className,
|
|
onClick = props.onClick,
|
|
others = (0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_5__["default"])(props, _excluded);
|
|
|
|
var _click = function _click() {
|
|
if (onChange) {
|
|
var _active = name !== null && name !== void 0 ? name : index;
|
|
|
|
if (_active !== active) {
|
|
onChange(_active);
|
|
}
|
|
}
|
|
|
|
onClick === null || onClick === void 0 ? void 0 : onClick(name !== null && name !== void 0 ? name : index);
|
|
};
|
|
|
|
return onChange ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_6__.View, _objectSpread(_objectSpread({
|
|
className: _wxs_utils__WEBPACK_IMPORTED_MODULE_1__.bem('tabbar-item', {
|
|
active: active === (name !== null && name !== void 0 ? name : index)
|
|
}) + ' custom-class' + " ".concat(className || ''),
|
|
style: _wxs_utils__WEBPACK_IMPORTED_MODULE_1__.style([{
|
|
color: active === (name !== null && name !== void 0 ? name : index) ? activeColor : inactiveColor
|
|
}, style])
|
|
}, others), {}, {
|
|
onClick: _click,
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_6__.View, {
|
|
className: "van-tabbar-item__icon",
|
|
children: [icon ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_icon__WEBPACK_IMPORTED_MODULE_2__.Icon, {
|
|
size: 38,
|
|
name: icon,
|
|
classPrefix: iconPrefix,
|
|
className: "van-tabbar-item__icon__inner"
|
|
}) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.Fragment, {
|
|
children: active === (name !== null && name !== void 0 ? name : index) ? renderIconActive : renderIcon
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_info__WEBPACK_IMPORTED_MODULE_3__.Info, {
|
|
dot: dot,
|
|
info: info,
|
|
className: "van-tabbar-item__info"
|
|
})]
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_6__.View, {
|
|
className: "van-tabbar-item__text",
|
|
children: children
|
|
})]
|
|
})) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.Fragment, {});
|
|
}
|
|
/* harmony default export */ __webpack_exports__["default"] = (TabbarItem);
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./node_modules/@antmjs/vantui/es/tabbar/index.js":
|
|
/*!********************************************************!*\
|
|
!*** ./node_modules/@antmjs/vantui/es/tabbar/index.js ***!
|
|
\********************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* unused harmony export Tabbar */
|
|
/* harmony import */ var _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime/helpers/objectWithoutProperties */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js");
|
|
/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
|
|
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
/* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @tarojs/taro */ "webpack/container/remote/@tarojs/taro");
|
|
/* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_tarojs_taro__WEBPACK_IMPORTED_MODULE_1__);
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "webpack/container/remote/react");
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
|
/* harmony import */ var rc_util_lib_Children_toArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-util/lib/Children/toArray */ "./node_modules/rc-util/lib/Children/toArray.js");
|
|
/* harmony import */ var _tarojs_components__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @tarojs/components */ "./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");
|
|
/* harmony import */ var _wxs_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../wxs/utils */ "./node_modules/@antmjs/vantui/es/wxs/utils.js");
|
|
/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../common/utils */ "./node_modules/@antmjs/vantui/es/common/utils.js");
|
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react/jsx-runtime */ "webpack/container/remote/react/jsx-runtime");
|
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__);
|
|
|
|
|
|
|
|
var _excluded = ["active", "activeColor", "inactiveColor", "border", "fixed", "safeAreaInsetBottom", "zIndex", "placeholder", "onChange", "style", "className", "children"];
|
|
|
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
|
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function parseTabList(children) {
|
|
return (0,rc_util_lib_Children_toArray__WEBPACK_IMPORTED_MODULE_3__["default"])(children).map(function (node) {
|
|
if ( /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.isValidElement)(node)) {
|
|
var key = node.key !== undefined ? String(node.key) : undefined;
|
|
return _objectSpread(_objectSpread({
|
|
key: key
|
|
}, node.props), {}, {
|
|
node: node
|
|
});
|
|
}
|
|
|
|
return null;
|
|
}).filter(function (tab) {
|
|
return tab;
|
|
});
|
|
}
|
|
|
|
function Tabbar(props) {
|
|
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)({
|
|
height: 50,
|
|
current: 0
|
|
}),
|
|
_useState2 = (0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_7__["default"])(_useState, 2),
|
|
state = _useState2[0],
|
|
setState = _useState2[1];
|
|
|
|
var height = state.height,
|
|
current = state.current;
|
|
|
|
var active = props.active,
|
|
activeColor = props.activeColor,
|
|
inactiveColor = props.inactiveColor,
|
|
_props$border = props.border,
|
|
border = _props$border === void 0 ? true : _props$border,
|
|
_props$fixed = props.fixed,
|
|
fixed = _props$fixed === void 0 ? true : _props$fixed,
|
|
_props$safeAreaInsetB = props.safeAreaInsetBottom,
|
|
safeAreaInsetBottom = _props$safeAreaInsetB === void 0 ? true : _props$safeAreaInsetB,
|
|
zIndex = props.zIndex,
|
|
placeholder = props.placeholder,
|
|
onChange = props.onChange,
|
|
style = props.style,
|
|
className = props.className,
|
|
children = props.children,
|
|
others = (0,_babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_8__["default"])(props, _excluded);
|
|
|
|
var _change = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (data) {
|
|
setState(function (pre) {
|
|
return _objectSpread(_objectSpread({}, pre), {}, {
|
|
current: data
|
|
});
|
|
});
|
|
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
detail: data
|
|
});
|
|
}, [onChange]);
|
|
|
|
var newChildren = (0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)(function () {
|
|
var tabs = parseTabList(children);
|
|
return tabs.map(function (tab, index) {
|
|
return /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_2__.cloneElement)(tab.node, {
|
|
key: index,
|
|
index: index,
|
|
active: current,
|
|
activeColor: activeColor,
|
|
inactiveColor: inactiveColor,
|
|
onChange: _change
|
|
});
|
|
});
|
|
}, [children, current, activeColor, inactiveColor, _change]);
|
|
(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {
|
|
setState(function (pre) {
|
|
return _objectSpread(_objectSpread({}, pre), {}, {
|
|
current: active
|
|
});
|
|
});
|
|
}, [active]);
|
|
(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)(function () {
|
|
if (!fixed || !placeholder) {
|
|
return;
|
|
}
|
|
|
|
(0,_tarojs_taro__WEBPACK_IMPORTED_MODULE_1__.nextTick)(function () {
|
|
(0,_common_utils__WEBPACK_IMPORTED_MODULE_5__.getRect)(null, '.van-tabbar').then(function (res) {
|
|
setState(function (pre) {
|
|
return _objectSpread(_objectSpread({}, pre), {}, {
|
|
height: res.height
|
|
});
|
|
});
|
|
});
|
|
});
|
|
}, [fixed, placeholder]); // useEffect(
|
|
// function () {
|
|
// if (!Array.isArray(children) || !children.length) {
|
|
// return
|
|
// }
|
|
// children.forEach((child) => child.updateFromParent())
|
|
// },
|
|
// // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
// [active, activeColor, inactiveColor],
|
|
// )
|
|
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.Fragment, {
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_9__.View, _objectSpread(_objectSpread({
|
|
className: (border ? 'van-hairline--top-bottom' : '') + ' ' + _wxs_utils__WEBPACK_IMPORTED_MODULE_4__.bem('tabbar', {
|
|
fixed: fixed,
|
|
safe: safeAreaInsetBottom
|
|
}) + ' custom-class' + " ".concat(className || ''),
|
|
style: _wxs_utils__WEBPACK_IMPORTED_MODULE_4__.style([zIndex ? 'zIndex: ' + zIndex : '', style])
|
|
}, others), {}, {
|
|
children: newChildren
|
|
})), fixed && placeholder && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_9__.View, {
|
|
style: 'height: ' + height + 'px;'
|
|
})]
|
|
});
|
|
}
|
|
/* harmony default export */ __webpack_exports__["default"] = (Tabbar);
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./node_modules/@antmjs/vantui/es/wxs/add-unit.js":
|
|
/*!********************************************************!*\
|
|
!*** ./node_modules/@antmjs/vantui/es/wxs/add-unit.js ***!
|
|
\********************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ "addUnit": function() { return /* binding */ addUnit; }
|
|
/* harmony export */ });
|
|
/* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tarojs/taro */ "webpack/container/remote/@tarojs/taro");
|
|
/* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_tarojs_taro__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
|
|
|
function addUnit(value) {
|
|
if (value == null) {
|
|
return undefined;
|
|
}
|
|
|
|
return /^-?\d+(\.\d+)?$/.test('' + value) ? (0,_tarojs_taro__WEBPACK_IMPORTED_MODULE_0__.pxTransform)(value) : value;
|
|
}
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./node_modules/@antmjs/vantui/es/wxs/array.js":
|
|
/*!*****************************************************!*\
|
|
!*** ./node_modules/@antmjs/vantui/es/wxs/array.js ***!
|
|
\*****************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ "isArray": function() { return /* binding */ isArray; }
|
|
/* harmony export */ });
|
|
function isArray(array) {
|
|
return array && toString.call(array) === '[object Array]';
|
|
}
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./node_modules/@antmjs/vantui/es/wxs/bem.js":
|
|
/*!***************************************************!*\
|
|
!*** ./node_modules/@antmjs/vantui/es/wxs/bem.js ***!
|
|
\***************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ "_bem": function() { return /* binding */ _bem; }
|
|
/* harmony export */ });
|
|
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
|
|
/* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./array */ "./node_modules/@antmjs/vantui/es/wxs/array.js");
|
|
/* harmony import */ var _object__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./object */ "./node_modules/@antmjs/vantui/es/wxs/object.js");
|
|
|
|
|
|
|
|
var PREFIX = 'van-';
|
|
|
|
function join(name, mods) {
|
|
name = PREFIX + name;
|
|
mods = mods.map(function (mod) {
|
|
return name + '--' + mod;
|
|
});
|
|
mods.unshift(name);
|
|
return mods.join(' ');
|
|
}
|
|
|
|
function traversing(mods, conf) {
|
|
if (!conf) {
|
|
return;
|
|
} // 加前缀
|
|
|
|
|
|
if (typeof conf === 'string' || typeof conf === 'number') {
|
|
mods.push(conf);
|
|
} else if (_array__WEBPACK_IMPORTED_MODULE_0__.isArray(conf)) {
|
|
// 加前缀
|
|
conf.forEach(function (item) {
|
|
traversing(mods, item);
|
|
});
|
|
} else if ((0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__["default"])(conf) === 'object') {
|
|
// 加属性
|
|
_object__WEBPACK_IMPORTED_MODULE_2__.keys(conf).forEach(function (key) {
|
|
conf[key] && mods.push(key);
|
|
});
|
|
}
|
|
}
|
|
|
|
function _bem(name, conf) {
|
|
var mods = [];
|
|
traversing(mods, conf);
|
|
return join(name, mods);
|
|
}
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./node_modules/@antmjs/vantui/es/wxs/memoize.js":
|
|
/*!*******************************************************!*\
|
|
!*** ./node_modules/@antmjs/vantui/es/wxs/memoize.js ***!
|
|
\*******************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ "memoize": function() { return /* binding */ memoize; }
|
|
/* harmony export */ });
|
|
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");
|
|
|
|
|
|
/**
|
|
* Simple memoize
|
|
* wxs doesn't support fn.apply, so this memoize only support up to 2 args
|
|
*/
|
|
|
|
/* eslint-disable */
|
|
function isPrimitive(value) {
|
|
var type = (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__["default"])(value);
|
|
|
|
return type === 'boolean' || type === 'number' || type === 'string' || type === 'undefined' || value === null;
|
|
} // mock simple fn.call in wxs
|
|
|
|
|
|
function call(fn, args) {
|
|
if (args.length === 2) {
|
|
return fn(args[0], args[1]);
|
|
}
|
|
|
|
if (args.length === 1) {
|
|
return fn(args[0]);
|
|
}
|
|
|
|
return fn();
|
|
}
|
|
|
|
function serializer(args) {
|
|
if (args.length === 1 && isPrimitive(args[0])) {
|
|
return args[0];
|
|
}
|
|
|
|
var obj = {};
|
|
|
|
for (var i = 0; i < args.length; i++) {
|
|
obj['key' + i] = args[i];
|
|
}
|
|
|
|
return JSON.stringify(obj);
|
|
}
|
|
|
|
function memoize(fn) {
|
|
var cache = {};
|
|
return function () {
|
|
var key = serializer(arguments);
|
|
|
|
if (cache[key] === undefined) {
|
|
cache[key] = call(fn, arguments);
|
|
}
|
|
|
|
return cache[key];
|
|
};
|
|
}
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./node_modules/@antmjs/vantui/es/wxs/object.js":
|
|
/*!******************************************************!*\
|
|
!*** ./node_modules/@antmjs/vantui/es/wxs/object.js ***!
|
|
\******************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ "keys": function() { return /* binding */ keys; }
|
|
/* harmony export */ });
|
|
var REGEXP = new RegExp('{|}|"', 'g');
|
|
|
|
function keys(obj) {
|
|
return JSON.stringify(obj).replace(REGEXP, '').split(',').map(function (item) {
|
|
return item.split(':')[0];
|
|
});
|
|
}
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./node_modules/@antmjs/vantui/es/wxs/style.js":
|
|
/*!*****************************************************!*\
|
|
!*** ./node_modules/@antmjs/vantui/es/wxs/style.js ***!
|
|
\*****************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ "style": function() { return /* binding */ style; }
|
|
/* harmony export */ });
|
|
/* unused harmony export cssStyle */
|
|
/* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./array */ "./node_modules/@antmjs/vantui/es/wxs/array.js");
|
|
/* harmony import */ var _object__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./object */ "./node_modules/@antmjs/vantui/es/wxs/object.js");
|
|
|
|
|
|
|
|
function kebabCase(word) {
|
|
var _word$replace;
|
|
|
|
var newWord = (_word$replace = word.replace(new RegExp('[A-Z]', 'g'), function (i) {
|
|
return '-' + i;
|
|
})) === null || _word$replace === void 0 ? void 0 : _word$replace.toLowerCase();
|
|
return newWord;
|
|
}
|
|
|
|
function cssStyle(styles) {
|
|
if (_array__WEBPACK_IMPORTED_MODULE_0__.isArray(styles)) {
|
|
var obj = {};
|
|
styles.filter(function (item) {
|
|
return item != null && item !== '';
|
|
}).map(function (item) {
|
|
Object.assign(obj, cssStyle(item));
|
|
});
|
|
return obj;
|
|
}
|
|
|
|
if (toString.call(styles) === '[object String]') {
|
|
var _obj = {};
|
|
styles.split(';').map(function (item) {
|
|
var _property$, _property$2;
|
|
|
|
var property = item.split(':');
|
|
_obj[((_property$ = property[0]) === null || _property$ === void 0 ? void 0 : _property$.trim()) || ''] = (_property$2 = property[1]) === null || _property$2 === void 0 ? void 0 : _property$2.trim();
|
|
});
|
|
return _obj;
|
|
}
|
|
|
|
return styles;
|
|
}
|
|
|
|
function style(styles) {
|
|
if (_array__WEBPACK_IMPORTED_MODULE_0__.isArray(styles)) {
|
|
return styles.filter(function (item) {
|
|
return item != null && item !== '';
|
|
}).map(function (item) {
|
|
return style(item);
|
|
}).join(';') || '';
|
|
}
|
|
|
|
if (toString.call(styles) === '[object Object]') {
|
|
return _object__WEBPACK_IMPORTED_MODULE_1__.keys(styles).filter(function (key) {
|
|
return styles[key] != null && styles[key] !== '';
|
|
}).map(function (key) {
|
|
return [kebabCase(key), [styles[key]]].join(':');
|
|
}).join(';') || '';
|
|
}
|
|
|
|
return styles || '';
|
|
}
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./node_modules/@antmjs/vantui/es/wxs/utils.js":
|
|
/*!*****************************************************!*\
|
|
!*** ./node_modules/@antmjs/vantui/es/wxs/utils.js ***!
|
|
\*****************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ "bem": function() { return /* binding */ bem; },
|
|
/* harmony export */ "style": function() { return /* reexport safe */ _style__WEBPACK_IMPORTED_MODULE_3__.style; }
|
|
/* harmony export */ });
|
|
/* harmony import */ var _bem__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./bem */ "./node_modules/@antmjs/vantui/es/wxs/bem.js");
|
|
/* harmony import */ var _memoize__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./memoize */ "./node_modules/@antmjs/vantui/es/wxs/memoize.js");
|
|
/* harmony import */ var _add_unit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./add-unit */ "./node_modules/@antmjs/vantui/es/wxs/add-unit.js");
|
|
/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./style */ "./node_modules/@antmjs/vantui/es/wxs/style.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var bem = (0,_memoize__WEBPACK_IMPORTED_MODULE_1__.memoize)(_bem__WEBPACK_IMPORTED_MODULE_2__._bem);
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./node_modules/performance-now/lib/performance-now.js":
|
|
/*!*************************************************************!*\
|
|
!*** ./node_modules/performance-now/lib/performance-now.js ***!
|
|
\*************************************************************/
|
|
/***/ (function(module) {
|
|
|
|
// 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
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./node_modules/raf/index.js":
|
|
/*!***********************************!*\
|
|
!*** ./node_modules/raf/index.js ***!
|
|
\***********************************/
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
/* provided dependency */ var window = __webpack_require__(/*! @tarojs/runtime */ "webpack/container/remote/@tarojs/runtime")["window"];
|
|
var now = __webpack_require__(/*! performance-now */ "./node_modules/performance-now/lib/performance-now.js")
|
|
, root = typeof window === 'undefined' ? __webpack_require__.g : 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
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./node_modules/rc-util/lib/Children/toArray.js":
|
|
/*!******************************************************!*\
|
|
!*** ./node_modules/rc-util/lib/Children/toArray.js ***!
|
|
\******************************************************/
|
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
var __webpack_unused_export__;
|
|
|
|
|
|
var _interopRequireDefault = (__webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js")["default"]);
|
|
|
|
__webpack_unused_export__ = ({
|
|
value: true
|
|
});
|
|
exports["default"] = toArray;
|
|
|
|
var _react = _interopRequireDefault(__webpack_require__(/*! react */ "webpack/container/remote/react"));
|
|
|
|
var _reactIs = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js");
|
|
|
|
function toArray(children) {
|
|
var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
var ret = [];
|
|
|
|
_react.default.Children.forEach(children, function (child) {
|
|
if ((child === undefined || child === null) && !option.keepEmpty) {
|
|
return;
|
|
}
|
|
|
|
if (Array.isArray(child)) {
|
|
ret = ret.concat(toArray(child));
|
|
} else if ((0, _reactIs.isFragment)(child) && child.props) {
|
|
ret = ret.concat(toArray(child.props.children, option));
|
|
} else {
|
|
ret.push(child);
|
|
}
|
|
});
|
|
|
|
return ret;
|
|
}
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./node_modules/react-is/cjs/react-is.development.js":
|
|
/*!***********************************************************!*\
|
|
!*** ./node_modules/react-is/cjs/react-is.development.js ***!
|
|
\***********************************************************/
|
|
/***/ (function(__unused_webpack_module, exports) {
|
|
|
|
"use strict";
|
|
/** @license React v16.13.1
|
|
* react-is.development.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
if (true) {
|
|
(function() {
|
|
'use strict';
|
|
|
|
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
// nor polyfill, then a plain number is used for performance.
|
|
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
|
|
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
|
|
function isValidElementType(type) {
|
|
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
}
|
|
|
|
function typeOf(object) {
|
|
if (typeof object === 'object' && object !== null) {
|
|
var $$typeof = object.$$typeof;
|
|
|
|
switch ($$typeof) {
|
|
case REACT_ELEMENT_TYPE:
|
|
var type = object.type;
|
|
|
|
switch (type) {
|
|
case REACT_ASYNC_MODE_TYPE:
|
|
case REACT_CONCURRENT_MODE_TYPE:
|
|
case REACT_FRAGMENT_TYPE:
|
|
case REACT_PROFILER_TYPE:
|
|
case REACT_STRICT_MODE_TYPE:
|
|
case REACT_SUSPENSE_TYPE:
|
|
return type;
|
|
|
|
default:
|
|
var $$typeofType = type && type.$$typeof;
|
|
|
|
switch ($$typeofType) {
|
|
case REACT_CONTEXT_TYPE:
|
|
case REACT_FORWARD_REF_TYPE:
|
|
case REACT_LAZY_TYPE:
|
|
case REACT_MEMO_TYPE:
|
|
case REACT_PROVIDER_TYPE:
|
|
return $$typeofType;
|
|
|
|
default:
|
|
return $$typeof;
|
|
}
|
|
|
|
}
|
|
|
|
case REACT_PORTAL_TYPE:
|
|
return $$typeof;
|
|
}
|
|
}
|
|
|
|
return undefined;
|
|
} // AsyncMode is deprecated along with isAsyncMode
|
|
|
|
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
var Element = REACT_ELEMENT_TYPE;
|
|
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
var Fragment = REACT_FRAGMENT_TYPE;
|
|
var Lazy = REACT_LAZY_TYPE;
|
|
var Memo = REACT_MEMO_TYPE;
|
|
var Portal = REACT_PORTAL_TYPE;
|
|
var Profiler = REACT_PROFILER_TYPE;
|
|
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
var Suspense = REACT_SUSPENSE_TYPE;
|
|
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
|
|
function isAsyncMode(object) {
|
|
{
|
|
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
|
|
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
}
|
|
}
|
|
|
|
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
}
|
|
function isConcurrentMode(object) {
|
|
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
}
|
|
function isContextConsumer(object) {
|
|
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
}
|
|
function isContextProvider(object) {
|
|
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
}
|
|
function isElement(object) {
|
|
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
}
|
|
function isForwardRef(object) {
|
|
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
}
|
|
function isFragment(object) {
|
|
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
}
|
|
function isLazy(object) {
|
|
return typeOf(object) === REACT_LAZY_TYPE;
|
|
}
|
|
function isMemo(object) {
|
|
return typeOf(object) === REACT_MEMO_TYPE;
|
|
}
|
|
function isPortal(object) {
|
|
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
}
|
|
function isProfiler(object) {
|
|
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
}
|
|
function isStrictMode(object) {
|
|
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
}
|
|
function isSuspense(object) {
|
|
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
}
|
|
|
|
exports.AsyncMode = AsyncMode;
|
|
exports.ConcurrentMode = ConcurrentMode;
|
|
exports.ContextConsumer = ContextConsumer;
|
|
exports.ContextProvider = ContextProvider;
|
|
exports.Element = Element;
|
|
exports.ForwardRef = ForwardRef;
|
|
exports.Fragment = Fragment;
|
|
exports.Lazy = Lazy;
|
|
exports.Memo = Memo;
|
|
exports.Portal = Portal;
|
|
exports.Profiler = Profiler;
|
|
exports.StrictMode = StrictMode;
|
|
exports.Suspense = Suspense;
|
|
exports.isAsyncMode = isAsyncMode;
|
|
exports.isConcurrentMode = isConcurrentMode;
|
|
exports.isContextConsumer = isContextConsumer;
|
|
exports.isContextProvider = isContextProvider;
|
|
exports.isElement = isElement;
|
|
exports.isForwardRef = isForwardRef;
|
|
exports.isFragment = isFragment;
|
|
exports.isLazy = isLazy;
|
|
exports.isMemo = isMemo;
|
|
exports.isPortal = isPortal;
|
|
exports.isProfiler = isProfiler;
|
|
exports.isStrictMode = isStrictMode;
|
|
exports.isSuspense = isSuspense;
|
|
exports.isValidElementType = isValidElementType;
|
|
exports.typeOf = typeOf;
|
|
})();
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./node_modules/react-is/index.js":
|
|
/*!****************************************!*\
|
|
!*** ./node_modules/react-is/index.js ***!
|
|
\****************************************/
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
if (false) {} else {
|
|
module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "./node_modules/react-is/cjs/react-is.development.js");
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js":
|
|
/*!**********************************************************************!*\
|
|
!*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
|
|
\**********************************************************************/
|
|
/***/ (function(module) {
|
|
|
|
function _interopRequireDefault(obj) {
|
|
return obj && obj.__esModule ? obj : {
|
|
"default": obj
|
|
};
|
|
}
|
|
module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js":
|
|
/*!*********************************************************************!*\
|
|
!*** ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js ***!
|
|
\*********************************************************************/
|
|
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ "default": function() { return /* binding */ _arrayLikeToArray; }
|
|
/* harmony export */ });
|
|
function _arrayLikeToArray(arr, len) {
|
|
if (len == null || len > arr.length) len = arr.length;
|
|
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
arr2[i] = arr[i];
|
|
}
|
|
return arr2;
|
|
}
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js":
|
|
/*!*******************************************************************!*\
|
|
!*** ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js ***!
|
|
\*******************************************************************/
|
|
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ "default": function() { return /* binding */ _arrayWithHoles; }
|
|
/* harmony export */ });
|
|
function _arrayWithHoles(arr) {
|
|
if (Array.isArray(arr)) return arr;
|
|
}
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js":
|
|
/*!*******************************************************************!*\
|
|
!*** ./node_modules/@babel/runtime/helpers/esm/defineProperty.js ***!
|
|
\*******************************************************************/
|
|
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ "default": function() { return /* binding */ _defineProperty; }
|
|
/* harmony export */ });
|
|
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;
|
|
}
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js":
|
|
/*!*************************************************************************!*\
|
|
!*** ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js ***!
|
|
\*************************************************************************/
|
|
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ "default": function() { return /* binding */ _iterableToArrayLimit; }
|
|
/* harmony export */ });
|
|
function _iterableToArrayLimit(arr, i) {
|
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
if (_i == null) return;
|
|
var _arr = [];
|
|
var _n = true;
|
|
var _d = false;
|
|
var _s, _e;
|
|
try {
|
|
for (_i = _i.call(arr); !(_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"] != null) _i["return"]();
|
|
} finally {
|
|
if (_d) throw _e;
|
|
}
|
|
}
|
|
return _arr;
|
|
}
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js":
|
|
/*!********************************************************************!*\
|
|
!*** ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js ***!
|
|
\********************************************************************/
|
|
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ "default": function() { return /* binding */ _nonIterableRest; }
|
|
/* harmony export */ });
|
|
function _nonIterableRest() {
|
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
}
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js":
|
|
/*!****************************************************************************!*\
|
|
!*** ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js ***!
|
|
\****************************************************************************/
|
|
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ "default": function() { return /* binding */ _objectWithoutProperties; }
|
|
/* harmony export */ });
|
|
/* harmony import */ var _objectWithoutPropertiesLoose_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./objectWithoutPropertiesLoose.js */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
|
|
|
|
function _objectWithoutProperties(source, excluded) {
|
|
if (source == null) return {};
|
|
var target = (0,_objectWithoutPropertiesLoose_js__WEBPACK_IMPORTED_MODULE_0__["default"])(source, excluded);
|
|
var key, i;
|
|
if (Object.getOwnPropertySymbols) {
|
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
key = sourceSymbolKeys[i];
|
|
if (excluded.indexOf(key) >= 0) continue;
|
|
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
target[key] = source[key];
|
|
}
|
|
}
|
|
return target;
|
|
}
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js":
|
|
/*!*********************************************************************************!*\
|
|
!*** ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js ***!
|
|
\*********************************************************************************/
|
|
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ "default": function() { return /* binding */ _objectWithoutPropertiesLoose; }
|
|
/* harmony export */ });
|
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
if (source == null) return {};
|
|
var target = {};
|
|
var sourceKeys = Object.keys(source);
|
|
var key, i;
|
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
key = sourceKeys[i];
|
|
if (excluded.indexOf(key) >= 0) continue;
|
|
target[key] = source[key];
|
|
}
|
|
return target;
|
|
}
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js":
|
|
/*!******************************************************************!*\
|
|
!*** ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js ***!
|
|
\******************************************************************/
|
|
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ "default": function() { return /* binding */ _slicedToArray; }
|
|
/* harmony export */ });
|
|
/* harmony import */ var _arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayWithHoles.js */ "./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js");
|
|
/* harmony import */ var _iterableToArrayLimit_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./iterableToArrayLimit.js */ "./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js");
|
|
/* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js");
|
|
/* harmony import */ var _nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./nonIterableRest.js */ "./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js");
|
|
|
|
|
|
|
|
|
|
function _slicedToArray(arr, i) {
|
|
return (0,_arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__["default"])(arr) || (0,_iterableToArrayLimit_js__WEBPACK_IMPORTED_MODULE_1__["default"])(arr, i) || (0,_unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__["default"])(arr, i) || (0,_nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__["default"])();
|
|
}
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/esm/typeof.js":
|
|
/*!***********************************************************!*\
|
|
!*** ./node_modules/@babel/runtime/helpers/esm/typeof.js ***!
|
|
\***********************************************************/
|
|
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ "default": function() { return /* binding */ _typeof; }
|
|
/* harmony export */ });
|
|
function _typeof(obj) {
|
|
"@babel/helpers - typeof";
|
|
|
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
return typeof obj;
|
|
} : function (obj) {
|
|
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
}, _typeof(obj);
|
|
}
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js":
|
|
/*!*******************************************************************************!*\
|
|
!*** ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js ***!
|
|
\*******************************************************************************/
|
|
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ "default": function() { return /* binding */ _unsupportedIterableToArray; }
|
|
/* harmony export */ });
|
|
/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayLikeToArray.js */ "./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js");
|
|
|
|
function _unsupportedIterableToArray(o, minLen) {
|
|
if (!o) return;
|
|
if (typeof o === "string") return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(o, minLen);
|
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(o, minLen);
|
|
}
|
|
|
|
/***/ })
|
|
|
|
}]);
|
|
//# sourceMappingURL=vendors.js.map
|