app模板、应用模板、组件模板、widget模板
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2334 lines
61 KiB

4 years ago
  1. module.exports =
  2. /******/ (function(modules) { // webpackBootstrap
  3. /******/ // The module cache
  4. /******/ var installedModules = {};
  5. /******/
  6. /******/ // The require function
  7. /******/ function __webpack_require__(moduleId) {
  8. /******/
  9. /******/ // Check if module is in cache
  10. /******/ if(installedModules[moduleId]) {
  11. /******/ return installedModules[moduleId].exports;
  12. /******/ }
  13. /******/ // Create a new module (and put it into the cache)
  14. /******/ var module = installedModules[moduleId] = {
  15. /******/ i: moduleId,
  16. /******/ l: false,
  17. /******/ exports: {}
  18. /******/ };
  19. /******/
  20. /******/ // Execute the module function
  21. /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  22. /******/
  23. /******/ // Flag the module as loaded
  24. /******/ module.l = true;
  25. /******/
  26. /******/ // Return the exports of the module
  27. /******/ return module.exports;
  28. /******/ }
  29. /******/
  30. /******/
  31. /******/ // expose the modules object (__webpack_modules__)
  32. /******/ __webpack_require__.m = modules;
  33. /******/
  34. /******/ // expose the module cache
  35. /******/ __webpack_require__.c = installedModules;
  36. /******/
  37. /******/ // define getter function for harmony exports
  38. /******/ __webpack_require__.d = function(exports, name, getter) {
  39. /******/ if(!__webpack_require__.o(exports, name)) {
  40. /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
  41. /******/ }
  42. /******/ };
  43. /******/
  44. /******/ // define __esModule on exports
  45. /******/ __webpack_require__.r = function(exports) {
  46. /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  47. /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  48. /******/ }
  49. /******/ Object.defineProperty(exports, '__esModule', { value: true });
  50. /******/ };
  51. /******/
  52. /******/ // create a fake namespace object
  53. /******/ // mode & 1: value is a module id, require it
  54. /******/ // mode & 2: merge all properties of value into the ns
  55. /******/ // mode & 4: return value when already ns object
  56. /******/ // mode & 8|1: behave like require
  57. /******/ __webpack_require__.t = function(value, mode) {
  58. /******/ if(mode & 1) value = __webpack_require__(value);
  59. /******/ if(mode & 8) return value;
  60. /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
  61. /******/ var ns = Object.create(null);
  62. /******/ __webpack_require__.r(ns);
  63. /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
  64. /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
  65. /******/ return ns;
  66. /******/ };
  67. /******/
  68. /******/ // getDefaultExport function for compatibility with non-harmony modules
  69. /******/ __webpack_require__.n = function(module) {
  70. /******/ var getter = module && module.__esModule ?
  71. /******/ function getDefault() { return module['default']; } :
  72. /******/ function getModuleExports() { return module; };
  73. /******/ __webpack_require__.d(getter, 'a', getter);
  74. /******/ return getter;
  75. /******/ };
  76. /******/
  77. /******/ // Object.prototype.hasOwnProperty.call
  78. /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  79. /******/
  80. /******/ // __webpack_public_path__
  81. /******/ __webpack_require__.p = "/dist/";
  82. /******/
  83. /******/
  84. /******/ // Load entry module and return exports
  85. /******/ return __webpack_require__(__webpack_require__.s = 336);
  86. /******/ })
  87. /************************************************************************/
  88. /******/ ({
  89. /***/ 0:
  90. /***/ (function(module, exports, __webpack_require__) {
  91. "use strict";
  92. var _interopRequireDefault = __webpack_require__(1);
  93. exports.__esModule = true;
  94. exports.noop = noop;
  95. exports.isDef = isDef;
  96. exports.isFunction = isFunction;
  97. exports.isObject = isObject;
  98. exports.isPromise = isPromise;
  99. exports.get = get;
  100. exports.isServer = exports.inBrowser = exports.addUnit = exports.createNamespace = void 0;
  101. var _vue = _interopRequireDefault(__webpack_require__(4));
  102. var _create = __webpack_require__(24);
  103. exports.createNamespace = _create.createNamespace;
  104. var _unit = __webpack_require__(20);
  105. exports.addUnit = _unit.addUnit;
  106. var inBrowser = typeof window !== 'undefined';
  107. exports.inBrowser = inBrowser;
  108. var isServer = _vue.default.prototype.$isServer; // eslint-disable-next-line @typescript-eslint/no-empty-function
  109. exports.isServer = isServer;
  110. function noop() {}
  111. function isDef(val) {
  112. return val !== undefined && val !== null;
  113. }
  114. function isFunction(val) {
  115. return typeof val === 'function';
  116. }
  117. function isObject(val) {
  118. return val !== null && typeof val === 'object';
  119. }
  120. function isPromise(val) {
  121. return isObject(val) && isFunction(val.then) && isFunction(val.catch);
  122. }
  123. function get(object, path) {
  124. var keys = path.split('.');
  125. var result = object;
  126. keys.forEach(function (key) {
  127. var _result$key;
  128. result = (_result$key = result[key]) != null ? _result$key : '';
  129. });
  130. return result;
  131. }
  132. /***/ }),
  133. /***/ 1:
  134. /***/ (function(module, exports) {
  135. function _interopRequireDefault(obj) {
  136. return obj && obj.__esModule ? obj : {
  137. "default": obj
  138. };
  139. }
  140. module.exports = _interopRequireDefault;
  141. /***/ }),
  142. /***/ 11:
  143. /***/ (function(module, exports, __webpack_require__) {
  144. "use strict";
  145. var _interopRequireDefault = __webpack_require__(1);
  146. exports.__esModule = true;
  147. exports.default = void 0;
  148. var _vue = _interopRequireDefault(__webpack_require__(4));
  149. var _deepAssign = __webpack_require__(21);
  150. var _zhCN = _interopRequireDefault(__webpack_require__(27));
  151. var proto = _vue.default.prototype;
  152. var defineReactive = _vue.default.util.defineReactive;
  153. defineReactive(proto, '$vantLang', 'zh-CN');
  154. defineReactive(proto, '$vantMessages', {
  155. 'zh-CN': _zhCN.default
  156. });
  157. var _default = {
  158. messages: function messages() {
  159. return proto.$vantMessages[proto.$vantLang];
  160. },
  161. use: function use(lang, messages) {
  162. var _this$add;
  163. proto.$vantLang = lang;
  164. this.add((_this$add = {}, _this$add[lang] = messages, _this$add));
  165. },
  166. add: function add(messages) {
  167. if (messages === void 0) {
  168. messages = {};
  169. }
  170. (0, _deepAssign.deepAssign)(proto.$vantMessages, messages);
  171. }
  172. };
  173. exports.default = _default;
  174. /***/ }),
  175. /***/ 119:
  176. /***/ (function(module, exports, __webpack_require__) {
  177. "use strict";
  178. exports.__esModule = true;
  179. exports.default = void 0;
  180. var _utils = __webpack_require__(0);
  181. var _style = __webpack_require__(94);
  182. var _event = __webpack_require__(30);
  183. var _raf = __webpack_require__(86);
  184. var _number = __webpack_require__(81);
  185. var _touch = __webpack_require__(51);
  186. var _relation = __webpack_require__(47);
  187. var _bindEvent = __webpack_require__(60);
  188. // Utils
  189. // Mixins
  190. var _createNamespace = (0, _utils.createNamespace)('swipe'),
  191. createComponent = _createNamespace[0],
  192. bem = _createNamespace[1];
  193. var _default = createComponent({
  194. mixins: [_touch.TouchMixin, (0, _relation.ParentMixin)('vanSwipe'), (0, _bindEvent.BindEventMixin)(function (bind, isBind) {
  195. bind(window, 'resize', this.resize, true);
  196. bind(window, 'orientationchange', this.resize, true);
  197. bind(window, 'visibilitychange', this.onVisibilityChange);
  198. if (isBind) {
  199. this.initialize();
  200. } else {
  201. this.clear();
  202. }
  203. })],
  204. props: {
  205. width: [Number, String],
  206. height: [Number, String],
  207. autoplay: [Number, String],
  208. vertical: Boolean,
  209. lazyRender: Boolean,
  210. indicatorColor: String,
  211. loop: {
  212. type: Boolean,
  213. default: true
  214. },
  215. duration: {
  216. type: [Number, String],
  217. default: 500
  218. },
  219. touchable: {
  220. type: Boolean,
  221. default: true
  222. },
  223. initialSwipe: {
  224. type: [Number, String],
  225. default: 0
  226. },
  227. showIndicators: {
  228. type: Boolean,
  229. default: true
  230. },
  231. stopPropagation: {
  232. type: Boolean,
  233. default: true
  234. }
  235. },
  236. data: function data() {
  237. return {
  238. rect: null,
  239. offset: 0,
  240. active: 0,
  241. deltaX: 0,
  242. deltaY: 0,
  243. swiping: false,
  244. computedWidth: 0,
  245. computedHeight: 0
  246. };
  247. },
  248. watch: {
  249. children: function children() {
  250. this.initialize();
  251. },
  252. initialSwipe: function initialSwipe() {
  253. this.initialize();
  254. },
  255. autoplay: function autoplay(_autoplay) {
  256. if (_autoplay > 0) {
  257. this.autoPlay();
  258. } else {
  259. this.clear();
  260. }
  261. }
  262. },
  263. computed: {
  264. count: function count() {
  265. return this.children.length;
  266. },
  267. maxCount: function maxCount() {
  268. return Math.ceil(Math.abs(this.minOffset) / this.size);
  269. },
  270. delta: function delta() {
  271. return this.vertical ? this.deltaY : this.deltaX;
  272. },
  273. size: function size() {
  274. return this[this.vertical ? 'computedHeight' : 'computedWidth'];
  275. },
  276. trackSize: function trackSize() {
  277. return this.count * this.size;
  278. },
  279. activeIndicator: function activeIndicator() {
  280. return (this.active + this.count) % this.count;
  281. },
  282. isCorrectDirection: function isCorrectDirection() {
  283. var expect = this.vertical ? 'vertical' : 'horizontal';
  284. return this.direction === expect;
  285. },
  286. trackStyle: function trackStyle() {
  287. var style = {
  288. transitionDuration: (this.swiping ? 0 : this.duration) + "ms",
  289. transform: "translate" + (this.vertical ? 'Y' : 'X') + "(" + this.offset + "px)"
  290. };
  291. if (this.size) {
  292. var mainAxis = this.vertical ? 'height' : 'width';
  293. var crossAxis = this.vertical ? 'width' : 'height';
  294. style[mainAxis] = this.trackSize + "px";
  295. style[crossAxis] = this[crossAxis] ? this[crossAxis] + "px" : '';
  296. }
  297. return style;
  298. },
  299. indicatorStyle: function indicatorStyle() {
  300. return {
  301. backgroundColor: this.indicatorColor
  302. };
  303. },
  304. minOffset: function minOffset() {
  305. return (this.vertical ? this.rect.height : this.rect.width) - this.size * this.count;
  306. }
  307. },
  308. mounted: function mounted() {
  309. this.bindTouchEvent(this.$refs.track);
  310. },
  311. methods: {
  312. // initialize swipe position
  313. initialize: function initialize(active) {
  314. if (active === void 0) {
  315. active = +this.initialSwipe;
  316. }
  317. if (!this.$el || (0, _style.isHidden)(this.$el)) {
  318. return;
  319. }
  320. clearTimeout(this.timer);
  321. var rect = this.$el.getBoundingClientRect();
  322. this.rect = rect;
  323. this.swiping = true;
  324. this.active = active;
  325. this.computedWidth = +this.width || rect.width;
  326. this.computedHeight = +this.height || rect.height;
  327. this.offset = this.getTargetOffset(active);
  328. this.children.forEach(function (swipe) {
  329. swipe.offset = 0;
  330. });
  331. this.autoPlay();
  332. },
  333. // @exposed-api
  334. resize: function resize() {
  335. this.initialize(this.activeIndicator);
  336. },
  337. onVisibilityChange: function onVisibilityChange() {
  338. if (document.hidden) {
  339. this.clear();
  340. } else {
  341. this.autoPlay();
  342. }
  343. },
  344. onTouchStart: function onTouchStart(event) {
  345. if (!this.touchable) return;
  346. this.clear();
  347. this.touchStartTime = Date.now();
  348. this.touchStart(event);
  349. this.correctPosition();
  350. },
  351. onTouchMove: function onTouchMove(event) {
  352. if (!this.touchable || !this.swiping) return;
  353. this.touchMove(event);
  354. if (this.isCorrectDirection) {
  355. (0, _event.preventDefault)(event, this.stopPropagation);
  356. this.move({
  357. offset: this.delta
  358. });
  359. }
  360. },
  361. onTouchEnd: function onTouchEnd() {
  362. if (!this.touchable || !this.swiping) return;
  363. var size = this.size,
  364. delta = this.delta;
  365. var duration = Date.now() - this.touchStartTime;
  366. var speed = delta / duration;
  367. var shouldSwipe = Math.abs(speed) > 0.25 || Math.abs(delta) > size / 2;
  368. if (shouldSwipe && this.isCorrectDirection) {
  369. var offset = this.vertical ? this.offsetY : this.offsetX;
  370. var pace = 0;
  371. if (this.loop) {
  372. pace = offset > 0 ? delta > 0 ? -1 : 1 : 0;
  373. } else {
  374. pace = -Math[delta > 0 ? 'ceil' : 'floor'](delta / size);
  375. }
  376. this.move({
  377. pace: pace,
  378. emitChange: true
  379. });
  380. } else if (delta) {
  381. this.move({
  382. pace: 0
  383. });
  384. }
  385. this.swiping = false;
  386. this.autoPlay();
  387. },
  388. getTargetActive: function getTargetActive(pace) {
  389. var active = this.active,
  390. count = this.count,
  391. maxCount = this.maxCount;
  392. if (pace) {
  393. if (this.loop) {
  394. return (0, _number.range)(active + pace, -1, count);
  395. }
  396. return (0, _number.range)(active + pace, 0, maxCount);
  397. }
  398. return active;
  399. },
  400. getTargetOffset: function getTargetOffset(targetActive, offset) {
  401. if (offset === void 0) {
  402. offset = 0;
  403. }
  404. var currentPosition = targetActive * this.size;
  405. if (!this.loop) {
  406. currentPosition = Math.min(currentPosition, -this.minOffset);
  407. }
  408. var targetOffset = offset - currentPosition;
  409. if (!this.loop) {
  410. targetOffset = (0, _number.range)(targetOffset, this.minOffset, 0);
  411. }
  412. return targetOffset;
  413. },
  414. move: function move(_ref) {
  415. var _ref$pace = _ref.pace,
  416. pace = _ref$pace === void 0 ? 0 : _ref$pace,
  417. _ref$offset = _ref.offset,
  418. offset = _ref$offset === void 0 ? 0 : _ref$offset,
  419. emitChange = _ref.emitChange;
  420. var loop = this.loop,
  421. count = this.count,
  422. active = this.active,
  423. children = this.children,
  424. trackSize = this.trackSize,
  425. minOffset = this.minOffset;
  426. if (count <= 1) {
  427. return;
  428. }
  429. var targetActive = this.getTargetActive(pace);
  430. var targetOffset = this.getTargetOffset(targetActive, offset); // auto move first and last swipe in loop mode
  431. if (loop) {
  432. if (children[0] && targetOffset !== minOffset) {
  433. var outRightBound = targetOffset < minOffset;
  434. children[0].offset = outRightBound ? trackSize : 0;
  435. }
  436. if (children[count - 1] && targetOffset !== 0) {
  437. var outLeftBound = targetOffset > 0;
  438. children[count - 1].offset = outLeftBound ? -trackSize : 0;
  439. }
  440. }
  441. this.active = targetActive;
  442. this.offset = targetOffset;
  443. if (emitChange && targetActive !== active) {
  444. this.$emit('change', this.activeIndicator);
  445. }
  446. },
  447. // @exposed-api
  448. prev: function prev() {
  449. var _this = this;
  450. this.correctPosition();
  451. this.resetTouchStatus();
  452. (0, _raf.doubleRaf)(function () {
  453. _this.swiping = false;
  454. _this.move({
  455. pace: -1,
  456. emitChange: true
  457. });
  458. });
  459. },
  460. // @exposed-api
  461. next: function next() {
  462. var _this2 = this;
  463. this.correctPosition();
  464. this.resetTouchStatus();
  465. (0, _raf.doubleRaf)(function () {
  466. _this2.swiping = false;
  467. _this2.move({
  468. pace: 1,
  469. emitChange: true
  470. });
  471. });
  472. },
  473. // @exposed-api
  474. swipeTo: function swipeTo(index, options) {
  475. var _this3 = this;
  476. if (options === void 0) {
  477. options = {};
  478. }
  479. this.correctPosition();
  480. this.resetTouchStatus();
  481. (0, _raf.doubleRaf)(function () {
  482. var targetIndex;
  483. if (_this3.loop && index === _this3.count) {
  484. targetIndex = _this3.active === 0 ? 0 : index;
  485. } else {
  486. targetIndex = index % _this3.count;
  487. }
  488. if (options.immediate) {
  489. (0, _raf.doubleRaf)(function () {
  490. _this3.swiping = false;
  491. });
  492. } else {
  493. _this3.swiping = false;
  494. }
  495. _this3.move({
  496. pace: targetIndex - _this3.active,
  497. emitChange: true
  498. });
  499. });
  500. },
  501. correctPosition: function correctPosition() {
  502. this.swiping = true;
  503. if (this.active <= -1) {
  504. this.move({
  505. pace: this.count
  506. });
  507. }
  508. if (this.active >= this.count) {
  509. this.move({
  510. pace: -this.count
  511. });
  512. }
  513. },
  514. clear: function clear() {
  515. clearTimeout(this.timer);
  516. },
  517. autoPlay: function autoPlay() {
  518. var _this4 = this;
  519. var autoplay = this.autoplay;
  520. if (autoplay > 0 && this.count > 1) {
  521. this.clear();
  522. this.timer = setTimeout(function () {
  523. _this4.next();
  524. _this4.autoPlay();
  525. }, autoplay);
  526. }
  527. },
  528. genIndicator: function genIndicator() {
  529. var _this5 = this;
  530. var h = this.$createElement;
  531. var count = this.count,
  532. activeIndicator = this.activeIndicator;
  533. var slot = this.slots('indicator');
  534. if (slot) {
  535. return slot;
  536. }
  537. if (this.showIndicators && count > 1) {
  538. return h("div", {
  539. "class": bem('indicators', {
  540. vertical: this.vertical
  541. })
  542. }, [Array.apply(void 0, Array(count)).map(function (empty, index) {
  543. return h("i", {
  544. "class": bem('indicator', {
  545. active: index === activeIndicator
  546. }),
  547. "style": index === activeIndicator ? _this5.indicatorStyle : null
  548. });
  549. })]);
  550. }
  551. }
  552. },
  553. render: function render() {
  554. var h = arguments[0];
  555. return h("div", {
  556. "class": bem()
  557. }, [h("div", {
  558. "ref": "track",
  559. "style": this.trackStyle,
  560. "class": bem('track', {
  561. vertical: this.vertical
  562. })
  563. }, [this.slots()]), this.genIndicator()]);
  564. }
  565. });
  566. exports.default = _default;
  567. /***/ }),
  568. /***/ 12:
  569. /***/ (function(module, exports) {
  570. /**
  571. * When source maps are enabled, `style-loader` uses a link element with a data-uri to
  572. * embed the css on the page. This breaks all relative urls because now they are relative to a
  573. * bundle instead of the current page.
  574. *
  575. * One solution is to only use full urls, but that may be impossible.
  576. *
  577. * Instead, this function "fixes" the relative urls to be absolute according to the current page location.
  578. *
  579. * A rudimentary test suite is located at `test/fixUrls.js` and can be run via the `npm test` command.
  580. *
  581. */
  582. module.exports = function (css) {
  583. // get current location
  584. var location = typeof window !== "undefined" && window.location;
  585. if (!location) {
  586. throw new Error("fixUrls requires window.location");
  587. }
  588. // blank or null?
  589. if (!css || typeof css !== "string") {
  590. return css;
  591. }
  592. var baseUrl = location.protocol + "//" + location.host;
  593. var currentDir = baseUrl + location.pathname.replace(/\/[^\/]*$/, "/");
  594. // convert each url(...)
  595. /*
  596. This regular expression is just a way to recursively match brackets within
  597. a string.
  598. /url\s*\( = Match on the word "url" with any whitespace after it and then a parens
  599. ( = Start a capturing group
  600. (?: = Start a non-capturing group
  601. [^)(] = Match anything that isn't a parentheses
  602. | = OR
  603. \( = Match a start parentheses
  604. (?: = Start another non-capturing groups
  605. [^)(]+ = Match anything that isn't a parentheses
  606. | = OR
  607. \( = Match a start parentheses
  608. [^)(]* = Match anything that isn't a parentheses
  609. \) = Match a end parentheses
  610. ) = End Group
  611. *\) = Match anything and then a close parens
  612. ) = Close non-capturing group
  613. * = Match anything
  614. ) = Close capturing group
  615. \) = Match a close parens
  616. /gi = Get all matches, not the first. Be case insensitive.
  617. */
  618. var fixedCss = css.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(fullMatch, origUrl) {
  619. // strip quotes (if they exist)
  620. var unquotedOrigUrl = origUrl
  621. .trim()
  622. .replace(/^"(.*)"$/, function(o, $1){ return $1; })
  623. .replace(/^'(.*)'$/, function(o, $1){ return $1; });
  624. // already a full url? no change
  625. if (/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(unquotedOrigUrl)) {
  626. return fullMatch;
  627. }
  628. // convert the url to a full url
  629. var newUrl;
  630. if (unquotedOrigUrl.indexOf("//") === 0) {
  631. //TODO: should we add protocol?
  632. newUrl = unquotedOrigUrl;
  633. } else if (unquotedOrigUrl.indexOf("/") === 0) {
  634. // path should be relative to the base url
  635. newUrl = baseUrl + unquotedOrigUrl; // already starts with '/'
  636. } else {
  637. // path should be relative to current directory
  638. newUrl = currentDir + unquotedOrigUrl.replace(/^\.\//, ""); // Strip leading './'
  639. }
  640. // send back the fixed url(...)
  641. return "url(" + JSON.stringify(newUrl) + ")";
  642. });
  643. // send back the fixed css
  644. return fixedCss;
  645. };
  646. /***/ }),
  647. /***/ 131:
  648. /***/ (function(module, exports, __webpack_require__) {
  649. var content = __webpack_require__(132);
  650. if(typeof content === 'string') content = [[module.i, content, '']];
  651. var transform;
  652. var insertInto;
  653. var options = {"hmr":true}
  654. options.transform = transform
  655. options.insertInto = undefined;
  656. var update = __webpack_require__(6)(content, options);
  657. if(content.locals) module.exports = content.locals;
  658. if(false) {}
  659. /***/ }),
  660. /***/ 132:
  661. /***/ (function(module, exports, __webpack_require__) {
  662. exports = module.exports = __webpack_require__(5)(false);
  663. // Module
  664. exports.push([module.i, ".van-swipe{position:relative;overflow:hidden;cursor:grab;-webkit-user-select:none;user-select:none}.van-swipe__track{display:-webkit-box;display:-webkit-flex;display:flex;height:100%}.van-swipe__track--vertical{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.van-swipe__indicators{position:absolute;bottom:12px;left:50%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.van-swipe__indicators--vertical{top:50%;bottom:auto;left:12px;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.van-swipe__indicators--vertical .van-swipe__indicator:not(:last-child){margin-bottom:6px}.van-swipe__indicator{width:6px;height:6px;background-color:#ebedf0;border-radius:100%;opacity:.3;-webkit-transition:opacity .2s,background-color .2s;transition:opacity .2s,background-color .2s}.van-swipe__indicator:not(:last-child){margin-right:6px}.van-swipe__indicator--active{background-color:#2cb8b8;opacity:1}", ""]);
  665. /***/ }),
  666. /***/ 19:
  667. /***/ (function(module, exports, __webpack_require__) {
  668. "use strict";
  669. exports.__esModule = true;
  670. exports.isNumeric = isNumeric;
  671. exports.isNaN = isNaN;
  672. function isNumeric(val) {
  673. return /^\d+(\.\d+)?$/.test(val);
  674. }
  675. function isNaN(val) {
  676. if (Number.isNaN) {
  677. return Number.isNaN(val);
  678. } // eslint-disable-next-line no-self-compare
  679. return val !== val;
  680. }
  681. /***/ }),
  682. /***/ 20:
  683. /***/ (function(module, exports, __webpack_require__) {
  684. "use strict";
  685. exports.__esModule = true;
  686. exports.addUnit = addUnit;
  687. exports.unitToPx = unitToPx;
  688. var _ = __webpack_require__(0);
  689. var _number = __webpack_require__(19);
  690. function addUnit(value) {
  691. if (!(0, _.isDef)(value)) {
  692. return undefined;
  693. }
  694. value = String(value);
  695. return (0, _number.isNumeric)(value) ? value + "px" : value;
  696. } // cache
  697. var rootFontSize;
  698. function getRootFontSize() {
  699. if (!rootFontSize) {
  700. var doc = document.documentElement;
  701. var fontSize = doc.style.fontSize || window.getComputedStyle(doc).fontSize;
  702. rootFontSize = parseFloat(fontSize);
  703. }
  704. return rootFontSize;
  705. }
  706. function convertRem(value) {
  707. value = value.replace(/rem/g, '');
  708. return +value * getRootFontSize();
  709. }
  710. function convertVw(value) {
  711. value = value.replace(/vw/g, '');
  712. return +value * window.innerWidth / 100;
  713. }
  714. function convertVh(value) {
  715. value = value.replace(/vh/g, '');
  716. return +value * window.innerHeight / 100;
  717. }
  718. function unitToPx(value) {
  719. if (typeof value === 'number') {
  720. return value;
  721. }
  722. if (_.inBrowser) {
  723. if (value.indexOf('rem') !== -1) {
  724. return convertRem(value);
  725. }
  726. if (value.indexOf('vw') !== -1) {
  727. return convertVw(value);
  728. }
  729. if (value.indexOf('vh') !== -1) {
  730. return convertVh(value);
  731. }
  732. }
  733. return parseFloat(value);
  734. }
  735. /***/ }),
  736. /***/ 21:
  737. /***/ (function(module, exports, __webpack_require__) {
  738. "use strict";
  739. exports.__esModule = true;
  740. exports.deepAssign = deepAssign;
  741. var _ = __webpack_require__(0);
  742. var hasOwnProperty = Object.prototype.hasOwnProperty;
  743. function assignKey(to, from, key) {
  744. var val = from[key];
  745. if (!(0, _.isDef)(val)) {
  746. return;
  747. }
  748. if (!hasOwnProperty.call(to, key) || !(0, _.isObject)(val)) {
  749. to[key] = val;
  750. } else {
  751. // eslint-disable-next-line @typescript-eslint/no-use-before-define
  752. to[key] = deepAssign(Object(to[key]), from[key]);
  753. }
  754. }
  755. function deepAssign(to, from) {
  756. Object.keys(from).forEach(function (key) {
  757. assignKey(to, from, key);
  758. });
  759. return to;
  760. }
  761. /***/ }),
  762. /***/ 22:
  763. /***/ (function(module, exports, __webpack_require__) {
  764. var content = __webpack_require__(23);
  765. if(typeof content === 'string') content = [[module.i, content, '']];
  766. var transform;
  767. var insertInto;
  768. var options = {"hmr":true}
  769. options.transform = transform
  770. options.insertInto = undefined;
  771. var update = __webpack_require__(6)(content, options);
  772. if(content.locals) module.exports = content.locals;
  773. if(false) {}
  774. /***/ }),
  775. /***/ 23:
  776. /***/ (function(module, exports, __webpack_require__) {
  777. exports = module.exports = __webpack_require__(5)(false);
  778. // Module
  779. exports.push([module.i, "html{-webkit-tap-highlight-color:transparent}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,'Helvetica Neue',Helvetica,Segoe UI,Arial,Roboto,'PingFang SC',miui,'Hiragino Sans GB','Microsoft Yahei',sans-serif}a{text-decoration:none}button,input,textarea{color:inherit;font:inherit}[class*=van-]:focus,a:focus,button:focus,input:focus,textarea:focus{outline:0}ol,ul{margin:0;padding:0;list-style:none}.van-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.van-multi-ellipsis--l2{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical}.van-multi-ellipsis--l3{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:3;-webkit-box-orient:vertical}.van-clearfix::after{display:table;clear:both;content:''}[class*=van-hairline]::after{position:absolute;box-sizing:border-box;content:' ';pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid #ebedf0;-webkit-transform:scale(.5);transform:scale(.5)}.van-hairline,.van-hairline--bottom,.van-hairline--left,.van-hairline--right,.van-hairline--surround,.van-hairline--top,.van-hairline--top-bottom{position:relative}.van-hairline--top::after{border-top-width:1px}.van-hairline--left::after{border-left-width:1px}.van-hairline--right::after{border-right-width:1px}.van-hairline--bottom::after{border-bottom-width:1px}.van-hairline--top-bottom::after,.van-hairline-unset--top-bottom::after{border-width:1px 0}.van-hairline--surround::after{border-width:1px}@-webkit-keyframes van-slide-up-enter{from{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes van-slide-up-enter{from{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@-webkit-keyframes van-slide-up-leave{to{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes van-slide-up-leave{to{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@-webkit-keyframes van-slide-down-enter{from{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes van-slide-down-enter{from{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@-webkit-keyframes van-slide-down-leave{to{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes van-slide-down-leave{to{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@-webkit-keyframes van-slide-left-enter{from{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes van-slide-left-enter{from{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@-webkit-keyframes van-slide-left-leave{to{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes van-slide-left-leave{to{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@-webkit-keyframes van-slide-right-enter{from{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes van-slide-right-enter{from{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@-webkit-keyframes van-slide-right-leave{to{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@keyframes van-slide-right-leave{to{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}}@-webkit-keyframes van-fade-in{from{opacity:0}to{opacity:1}}@keyframes van-fade-in{from{opacity:0}to{opacity:1}}@-webkit-keyframes van-fade-out{from{opacity:1}to{opacity:0}}@keyframes van-fade-out{from{opacity:1}to{opacity:0}}@-webkit-keyframes van-rotate{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes van-rotate{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.van-fade-enter-active{-webkit-animation:.3s van-fade-in both ease-out;animation:.3s van-fade-in both ease-out}.van-fade-leave-active{-webkit-animation:.3s van-fade-out both ease-in;animation:.3s van-fade-out both ease-in
  780. /***/ }),
  781. /***/ 24:
  782. /***/ (function(module, exports, __webpack_require__) {
  783. "use strict";
  784. exports.__esModule = true;
  785. exports.createNamespace = createNamespace;
  786. var _bem = __webpack_require__(25);
  787. var _component = __webpack_require__(26);
  788. var _i18n = __webpack_require__(29);
  789. function createNamespace(name) {
  790. name = 'van-' + name;
  791. return [(0, _component.createComponent)(name), (0, _bem.createBEM)(name), (0, _i18n.createI18N)(name)];
  792. }
  793. /***/ }),
  794. /***/ 25:
  795. /***/ (function(module, exports, __webpack_require__) {
  796. "use strict";
  797. exports.__esModule = true;
  798. exports.createBEM = createBEM;
  799. /**
  800. * bem helper
  801. * b() // 'button'
  802. * b('text') // 'button__text'
  803. * b({ disabled }) // 'button button--disabled'
  804. * b('text', { disabled }) // 'button__text button__text--disabled'
  805. * b(['disabled', 'primary']) // 'button button--disabled button--primary'
  806. */
  807. function gen(name, mods) {
  808. if (!mods) {
  809. return '';
  810. }
  811. if (typeof mods === 'string') {
  812. return " " + name + "--" + mods;
  813. }
  814. if (Array.isArray(mods)) {
  815. return mods.reduce(function (ret, item) {
  816. return ret + gen(name, item);
  817. }, '');
  818. }
  819. return Object.keys(mods).reduce(function (ret, key) {
  820. return ret + (mods[key] ? gen(name, key) : '');
  821. }, '');
  822. }
  823. function createBEM(name) {
  824. return function (el, mods) {
  825. if (el && typeof el !== 'string') {
  826. mods = el;
  827. el = '';
  828. }
  829. el = el ? name + "__" + el : name;
  830. return "" + el + gen(el, mods);
  831. };
  832. }
  833. /***/ }),
  834. /***/ 26:
  835. /***/ (function(module, exports, __webpack_require__) {
  836. "use strict";
  837. var _interopRequireDefault = __webpack_require__(1);
  838. exports.__esModule = true;
  839. exports.unifySlots = unifySlots;
  840. exports.createComponent = createComponent;
  841. __webpack_require__(11);
  842. var _ = __webpack_require__(0);
  843. var _string = __webpack_require__(9);
  844. var _slots = __webpack_require__(28);
  845. var _vue = _interopRequireDefault(__webpack_require__(4));
  846. /**
  847. * Create a basic component with common options
  848. */
  849. function install(Vue) {
  850. var name = this.name;
  851. Vue.component(name, this);
  852. Vue.component((0, _string.camelize)("-" + name), this);
  853. } // unify slots & scopedSlots
  854. function unifySlots(context) {
  855. // use data.scopedSlots in lower Vue version
  856. var scopedSlots = context.scopedSlots || context.data.scopedSlots || {};
  857. var slots = context.slots();
  858. Object.keys(slots).forEach(function (key) {
  859. if (!scopedSlots[key]) {
  860. scopedSlots[key] = function () {
  861. return slots[key];
  862. };
  863. }
  864. });
  865. return scopedSlots;
  866. } // should be removed after Vue 3
  867. function transformFunctionComponent(pure) {
  868. return {
  869. functional: true,
  870. props: pure.props,
  871. model: pure.model,
  872. render: function render(h, context) {
  873. return pure(h, context.props, unifySlots(context), context);
  874. }
  875. };
  876. }
  877. function createComponent(name) {
  878. return function (sfc) {
  879. if ((0, _.isFunction)(sfc)) {
  880. sfc = transformFunctionComponent(sfc);
  881. }
  882. if (!sfc.functional) {
  883. sfc.mixins = sfc.mixins || [];
  884. sfc.mixins.push(_slots.SlotsMixin);
  885. }
  886. sfc.name = name;
  887. sfc.install = install;
  888. return sfc;
  889. };
  890. }
  891. /***/ }),
  892. /***/ 27:
  893. /***/ (function(module, exports, __webpack_require__) {
  894. "use strict";
  895. exports.__esModule = true;
  896. exports.default = void 0;
  897. var _default = {
  898. name: '姓名',
  899. tel: '电话',
  900. save: '保存',
  901. confirm: '确认',
  902. cancel: '取消',
  903. delete: '删除',
  904. complete: '完成',
  905. loading: '加载中...',
  906. telEmpty: '请填写电话',
  907. nameEmpty: '请填写姓名',
  908. nameInvalid: '请输入正确的姓名',
  909. confirmDelete: '确定要删除吗',
  910. telInvalid: '请输入正确的手机号',
  911. vanCalendar: {
  912. end: '结束',
  913. start: '开始',
  914. title: '日期选择',
  915. confirm: '确定',
  916. startEnd: '开始/结束',
  917. weekdays: ['日', '一', '二', '三', '四', '五', '六'],
  918. monthTitle: function monthTitle(year, month) {
  919. return year + "\u5E74" + month + "\u6708";
  920. },
  921. rangePrompt: function rangePrompt(maxRange) {
  922. return "\u9009\u62E9\u5929\u6570\u4E0D\u80FD\u8D85\u8FC7 " + maxRange + " \u5929";
  923. }
  924. },
  925. vanCascader: {
  926. select: '请选择'
  927. },
  928. vanContactCard: {
  929. addText: '添加联系人'
  930. },
  931. vanContactList: {
  932. addText: '新建联系人'
  933. },
  934. vanPagination: {
  935. prev: '上一页',
  936. next: '下一页'
  937. },
  938. vanPullRefresh: {
  939. pulling: '下拉即可刷新...',
  940. loosing: '释放即可刷新...'
  941. },
  942. vanSubmitBar: {
  943. label: '合计:'
  944. },
  945. vanCoupon: {
  946. unlimited: '无使用门槛',
  947. discount: function discount(_discount) {
  948. return _discount + "\u6298";
  949. },
  950. condition: function condition(_condition) {
  951. return "\u6EE1" + _condition + "\u5143\u53EF\u7528";
  952. }
  953. },
  954. vanCouponCell: {
  955. title: '优惠券',
  956. tips: '暂无可用',
  957. count: function count(_count) {
  958. return _count + "\u5F20\u53EF\u7528";
  959. }
  960. },
  961. vanCouponList: {
  962. empty: '暂无优惠券',
  963. exchange: '兑换',
  964. close: '不使用优惠券',
  965. enable: '可用',
  966. disabled: '不可用',
  967. placeholder: '请输入优惠码'
  968. },
  969. vanAddressEdit: {
  970. area: '地区',
  971. postal: '邮政编码',
  972. areaEmpty: '请选择地区',
  973. addressEmpty: '请填写详细地址',
  974. postalEmpty: '邮政编码格式不正确',
  975. defaultAddress: '设为默认收货地址',
  976. telPlaceholder: '收货人手机号',
  977. namePlaceholder: '收货人姓名',
  978. areaPlaceholder: '选择省 / 市 / 区'
  979. },
  980. vanAddressEditDetail: {
  981. label: '详细地址',
  982. placeholder: '街道门牌、楼层房间号等信息'
  983. },
  984. vanAddressList: {
  985. add: '新增地址'
  986. }
  987. };
  988. exports.default = _default;
  989. /***/ }),
  990. /***/ 28:
  991. /***/ (function(module, exports, __webpack_require__) {
  992. "use strict";
  993. exports.__esModule = true;
  994. exports.SlotsMixin = void 0;
  995. /**
  996. * Use scopedSlots in Vue 2.6+
  997. * downgrade to slots in lower version
  998. */
  999. var SlotsMixin = {
  1000. methods: {
  1001. slots: function slots(name, props) {
  1002. if (name === void 0) {
  1003. name = 'default';
  1004. }
  1005. var $slots = this.$slots,
  1006. $scopedSlots = this.$scopedSlots;
  1007. var scopedSlot = $scopedSlots[name];
  1008. if (scopedSlot) {
  1009. return scopedSlot(props);
  1010. }
  1011. return $slots[name];
  1012. }
  1013. }
  1014. };
  1015. exports.SlotsMixin = SlotsMixin;
  1016. /***/ }),
  1017. /***/ 29:
  1018. /***/ (function(module, exports, __webpack_require__) {
  1019. "use strict";
  1020. var _interopRequireDefault = __webpack_require__(1);
  1021. exports.__esModule = true;
  1022. exports.createI18N = createI18N;
  1023. var _ = __webpack_require__(0);
  1024. var _string = __webpack_require__(9);
  1025. var _locale = _interopRequireDefault(__webpack_require__(11));
  1026. function createI18N(name) {
  1027. var prefix = (0, _string.camelize)(name) + '.';
  1028. return function (path) {
  1029. var messages = _locale.default.messages();
  1030. var message = (0, _.get)(messages, prefix + path) || (0, _.get)(messages, path);
  1031. for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  1032. args[_key - 1] = arguments[_key];
  1033. }
  1034. return (0, _.isFunction)(message) ? message.apply(void 0, args) : message;
  1035. };
  1036. }
  1037. /***/ }),
  1038. /***/ 30:
  1039. /***/ (function(module, exports, __webpack_require__) {
  1040. "use strict";
  1041. exports.__esModule = true;
  1042. exports.on = on;
  1043. exports.off = off;
  1044. exports.stopPropagation = stopPropagation;
  1045. exports.preventDefault = preventDefault;
  1046. exports.supportsPassive = void 0;
  1047. var _ = __webpack_require__(0);
  1048. // eslint-disable-next-line import/no-mutable-exports
  1049. var supportsPassive = false;
  1050. exports.supportsPassive = supportsPassive;
  1051. if (!_.isServer) {
  1052. try {
  1053. var opts = {};
  1054. Object.defineProperty(opts, 'passive', {
  1055. // eslint-disable-next-line getter-return
  1056. get: function get() {
  1057. /* istanbul ignore next */
  1058. exports.supportsPassive = supportsPassive = true;
  1059. }
  1060. });
  1061. window.addEventListener('test-passive', null, opts); // eslint-disable-next-line no-empty
  1062. } catch (e) {}
  1063. }
  1064. function on(target, event, handler, passive) {
  1065. if (passive === void 0) {
  1066. passive = false;
  1067. }
  1068. if (!_.isServer) {
  1069. target.addEventListener(event, handler, supportsPassive ? {
  1070. capture: false,
  1071. passive: passive
  1072. } : false);
  1073. }
  1074. }
  1075. function off(target, event, handler) {
  1076. if (!_.isServer) {
  1077. target.removeEventListener(event, handler);
  1078. }
  1079. }
  1080. function stopPropagation(event) {
  1081. event.stopPropagation();
  1082. }
  1083. function preventDefault(event, isStopPropagation) {
  1084. /* istanbul ignore else */
  1085. if (typeof event.cancelable !== 'boolean' || event.cancelable) {
  1086. event.preventDefault();
  1087. }
  1088. if (isStopPropagation) {
  1089. stopPropagation(event);
  1090. }
  1091. }
  1092. /***/ }),
  1093. /***/ 336:
  1094. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1095. "use strict";
  1096. __webpack_require__.r(__webpack_exports__);
  1097. /* harmony import */ var _tisdesign_m_lib_swipe__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(119);
  1098. /* harmony import */ var _tisdesign_m_lib_swipe__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_tisdesign_m_lib_swipe__WEBPACK_IMPORTED_MODULE_0__);
  1099. /* harmony import */ var _tisdesign_m_lib_swipe_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(337);
  1100. /* harmony import */ var _tisdesign_m_lib_swipe_style__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_tisdesign_m_lib_swipe_style__WEBPACK_IMPORTED_MODULE_1__);
  1101. _tisdesign_m_lib_swipe__WEBPACK_IMPORTED_MODULE_0___default.a.name = 'm-swipe';
  1102. /* harmony default export */ __webpack_exports__["default"] = (_tisdesign_m_lib_swipe__WEBPACK_IMPORTED_MODULE_0___default.a);
  1103. /***/ }),
  1104. /***/ 337:
  1105. /***/ (function(module, exports, __webpack_require__) {
  1106. __webpack_require__(22);
  1107. __webpack_require__(131);
  1108. /***/ }),
  1109. /***/ 4:
  1110. /***/ (function(module, exports) {
  1111. module.exports = require("vue");
  1112. /***/ }),
  1113. /***/ 47:
  1114. /***/ (function(module, exports, __webpack_require__) {
  1115. "use strict";
  1116. exports.__esModule = true;
  1117. exports.ChildrenMixin = ChildrenMixin;
  1118. exports.ParentMixin = ParentMixin;
  1119. var _vnodes = __webpack_require__(48);
  1120. function ChildrenMixin(_parent, options) {
  1121. var _inject, _computed;
  1122. if (options === void 0) {
  1123. options = {};
  1124. }
  1125. var indexKey = options.indexKey || 'index';
  1126. return {
  1127. inject: (_inject = {}, _inject[_parent] = {
  1128. default: null
  1129. }, _inject),
  1130. computed: (_computed = {
  1131. parent: function parent() {
  1132. if (this.disableBindRelation) {
  1133. return null;
  1134. }
  1135. return this[_parent];
  1136. }
  1137. }, _computed[indexKey] = function () {
  1138. this.bindRelation();
  1139. if (this.parent) {
  1140. return this.parent.children.indexOf(this);
  1141. }
  1142. return null;
  1143. }, _computed),
  1144. watch: {
  1145. disableBindRelation: function disableBindRelation(val) {
  1146. if (!val) {
  1147. this.bindRelation();
  1148. }
  1149. }
  1150. },
  1151. mounted: function mounted() {
  1152. this.bindRelation();
  1153. },
  1154. beforeDestroy: function beforeDestroy() {
  1155. var _this = this;
  1156. if (this.parent) {
  1157. this.parent.children = this.parent.children.filter(function (item) {
  1158. return item !== _this;
  1159. });
  1160. }
  1161. },
  1162. methods: {
  1163. bindRelation: function bindRelation() {
  1164. if (!this.parent || this.parent.children.indexOf(this) !== -1) {
  1165. return;
  1166. }
  1167. var children = [].concat(this.parent.children, [this]);
  1168. (0, _vnodes.sortChildren)(children, this.parent);
  1169. this.parent.children = children;
  1170. }
  1171. }
  1172. };
  1173. }
  1174. function ParentMixin(parent) {
  1175. return {
  1176. provide: function provide() {
  1177. var _ref;
  1178. return _ref = {}, _ref[parent] = this, _ref;
  1179. },
  1180. data: function data() {
  1181. return {
  1182. children: []
  1183. };
  1184. }
  1185. };
  1186. }
  1187. /***/ }),
  1188. /***/ 48:
  1189. /***/ (function(module, exports, __webpack_require__) {
  1190. "use strict";
  1191. exports.__esModule = true;
  1192. exports.sortChildren = sortChildren;
  1193. function flattenVNodes(vnodes) {
  1194. var result = [];
  1195. function traverse(vnodes) {
  1196. vnodes.forEach(function (vnode) {
  1197. result.push(vnode);
  1198. if (vnode.componentInstance) {
  1199. traverse(vnode.componentInstance.$children.map(function (item) {
  1200. return item.$vnode;
  1201. }));
  1202. }
  1203. if (vnode.children) {
  1204. traverse(vnode.children);
  1205. }
  1206. });
  1207. }
  1208. traverse(vnodes);
  1209. return result;
  1210. } // sort children instances by vnodes order
  1211. function sortChildren(children, parent) {
  1212. var componentOptions = parent.$vnode.componentOptions;
  1213. if (!componentOptions || !componentOptions.children) {
  1214. return;
  1215. }
  1216. var vnodes = flattenVNodes(componentOptions.children);
  1217. children.sort(function (a, b) {
  1218. return vnodes.indexOf(a.$vnode) - vnodes.indexOf(b.$vnode);
  1219. });
  1220. }
  1221. /***/ }),
  1222. /***/ 5:
  1223. /***/ (function(module, exports, __webpack_require__) {
  1224. "use strict";
  1225. /*
  1226. MIT License http://www.opensource.org/licenses/mit-license.php
  1227. Author Tobias Koppers @sokra
  1228. */
  1229. // css base code, injected by the css-loader
  1230. module.exports = function (useSourceMap) {
  1231. var list = []; // return the list of modules as css string
  1232. list.toString = function toString() {
  1233. return this.map(function (item) {
  1234. var content = cssWithMappingToString(item, useSourceMap);
  1235. if (item[2]) {
  1236. return '@media ' + item[2] + '{' + content + '}';
  1237. } else {
  1238. return content;
  1239. }
  1240. }).join('');
  1241. }; // import a list of modules into the list
  1242. list.i = function (modules, mediaQuery) {
  1243. if (typeof modules === 'string') {
  1244. modules = [[null, modules, '']];
  1245. }
  1246. var alreadyImportedModules = {};
  1247. for (var i = 0; i < this.length; i++) {
  1248. var id = this[i][0];
  1249. if (id != null) {
  1250. alreadyImportedModules[id] = true;
  1251. }
  1252. }
  1253. for (i = 0; i < modules.length; i++) {
  1254. var item = modules[i]; // skip already imported module
  1255. // this implementation is not 100% perfect for weird media query combinations
  1256. // when a module is imported multiple times with different media queries.
  1257. // I hope this will never occur (Hey this way we have smaller bundles)
  1258. if (item[0] == null || !alreadyImportedModules[item[0]]) {
  1259. if (mediaQuery && !item[2]) {
  1260. item[2] = mediaQuery;
  1261. } else if (mediaQuery) {
  1262. item[2] = '(' + item[2] + ') and (' + mediaQuery + ')';
  1263. }
  1264. list.push(item);
  1265. }
  1266. }
  1267. };
  1268. return list;
  1269. };
  1270. function cssWithMappingToString(item, useSourceMap) {
  1271. var content = item[1] || '';
  1272. var cssMapping = item[3];
  1273. if (!cssMapping) {
  1274. return content;
  1275. }
  1276. if (useSourceMap && typeof btoa === 'function') {
  1277. var sourceMapping = toComment(cssMapping);
  1278. var sourceURLs = cssMapping.sources.map(function (source) {
  1279. return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */';
  1280. });
  1281. return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
  1282. }
  1283. return [content].join('\n');
  1284. } // Adapted from convert-source-map (MIT)
  1285. function toComment(sourceMap) {
  1286. // eslint-disable-next-line no-undef
  1287. var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
  1288. var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
  1289. return '/*# ' + data + ' */';
  1290. }
  1291. /***/ }),
  1292. /***/ 51:
  1293. /***/ (function(module, exports, __webpack_require__) {
  1294. "use strict";
  1295. exports.__esModule = true;
  1296. exports.TouchMixin = void 0;
  1297. var _event = __webpack_require__(30);
  1298. var MIN_DISTANCE = 10;
  1299. function getDirection(x, y) {
  1300. if (x > y && x > MIN_DISTANCE) {
  1301. return 'horizontal';
  1302. }
  1303. if (y > x && y > MIN_DISTANCE) {
  1304. return 'vertical';
  1305. }
  1306. return '';
  1307. }
  1308. var TouchMixin = {
  1309. data: function data() {
  1310. return {
  1311. direction: ''
  1312. };
  1313. },
  1314. methods: {
  1315. touchStart: function touchStart(event) {
  1316. this.resetTouchStatus();
  1317. this.startX = event.touches[0].clientX;
  1318. this.startY = event.touches[0].clientY;
  1319. },
  1320. touchMove: function touchMove(event) {
  1321. var touch = event.touches[0];
  1322. this.deltaX = touch.clientX - this.startX;
  1323. this.deltaY = touch.clientY - this.startY;
  1324. this.offsetX = Math.abs(this.deltaX);
  1325. this.offsetY = Math.abs(this.deltaY);
  1326. this.direction = this.direction || getDirection(this.offsetX, this.offsetY);
  1327. },
  1328. resetTouchStatus: function resetTouchStatus() {
  1329. this.direction = '';
  1330. this.deltaX = 0;
  1331. this.deltaY = 0;
  1332. this.offsetX = 0;
  1333. this.offsetY = 0;
  1334. },
  1335. // avoid Vue 2.6 event bubble issues by manually binding events
  1336. // https://github.com/youzan/vant/issues/3015
  1337. bindTouchEvent: function bindTouchEvent(el) {
  1338. var onTouchStart = this.onTouchStart,
  1339. onTouchMove = this.onTouchMove,
  1340. onTouchEnd = this.onTouchEnd;
  1341. (0, _event.on)(el, 'touchstart', onTouchStart);
  1342. (0, _event.on)(el, 'touchmove', onTouchMove);
  1343. if (onTouchEnd) {
  1344. (0, _event.on)(el, 'touchend', onTouchEnd);
  1345. (0, _event.on)(el, 'touchcancel', onTouchEnd);
  1346. }
  1347. }
  1348. }
  1349. };
  1350. exports.TouchMixin = TouchMixin;
  1351. /***/ }),
  1352. /***/ 6:
  1353. /***/ (function(module, exports, __webpack_require__) {
  1354. /*
  1355. MIT License http://www.opensource.org/licenses/mit-license.php
  1356. Author Tobias Koppers @sokra
  1357. */
  1358. var stylesInDom = {};
  1359. var memoize = function (fn) {
  1360. var memo;
  1361. return function () {
  1362. if (typeof memo === "undefined") memo = fn.apply(this, arguments);
  1363. return memo;
  1364. };
  1365. };
  1366. var isOldIE = memoize(function () {
  1367. // Test for IE <= 9 as proposed by Browserhacks
  1368. // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
  1369. // Tests for existence of standard globals is to allow style-loader
  1370. // to operate correctly into non-standard environments
  1371. // @see https://github.com/webpack-contrib/style-loader/issues/177
  1372. return window && document && document.all && !window.atob;
  1373. });
  1374. var getTarget = function (target, parent) {
  1375. if (parent){
  1376. return parent.querySelector(target);
  1377. }
  1378. return document.querySelector(target);
  1379. };
  1380. var getElement = (function (fn) {
  1381. var memo = {};
  1382. return function(target, parent) {
  1383. // If passing function in options, then use it for resolve "head" element.
  1384. // Useful for Shadow Root style i.e
  1385. // {
  1386. // insertInto: function () { return document.querySelector("#foo").shadowRoot }
  1387. // }
  1388. if (typeof target === 'function') {
  1389. return target();
  1390. }
  1391. if (typeof memo[target] === "undefined") {
  1392. var styleTarget = getTarget.call(this, target, parent);
  1393. // Special case to return head of iframe instead of iframe itself
  1394. if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
  1395. try {
  1396. // This will throw an exception if access to iframe is blocked
  1397. // due to cross-origin restrictions
  1398. styleTarget = styleTarget.contentDocument.head;
  1399. } catch(e) {
  1400. styleTarget = null;
  1401. }
  1402. }
  1403. memo[target] = styleTarget;
  1404. }
  1405. return memo[target]
  1406. };
  1407. })();
  1408. var singleton = null;
  1409. var singletonCounter = 0;
  1410. var stylesInsertedAtTop = [];
  1411. var fixUrls = __webpack_require__(12);
  1412. module.exports = function(list, options) {
  1413. if (typeof DEBUG !== "undefined" && DEBUG) {
  1414. if (typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment");
  1415. }
  1416. options = options || {};
  1417. options.attrs = typeof options.attrs === "object" ? options.attrs : {};
  1418. // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
  1419. // tags it will allow on a page
  1420. if (!options.singleton && typeof options.singleton !== "boolean") options.singleton = isOldIE();
  1421. // By default, add <style> tags to the <head> element
  1422. if (!options.insertInto) options.insertInto = "head";
  1423. // By default, add <style> tags to the bottom of the target
  1424. if (!options.insertAt) options.insertAt = "bottom";
  1425. var styles = listToStyles(list, options);
  1426. addStylesToDom(styles, options);
  1427. return function update (newList) {
  1428. var mayRemove = [];
  1429. for (var i = 0; i < styles.length; i++) {
  1430. var item = styles[i];
  1431. var domStyle = stylesInDom[item.id];
  1432. domStyle.refs--;
  1433. mayRemove.push(domStyle);
  1434. }
  1435. if(newList) {
  1436. var newStyles = listToStyles(newList, options);
  1437. addStylesToDom(newStyles, options);
  1438. }
  1439. for (var i = 0; i < mayRemove.length; i++) {
  1440. var domStyle = mayRemove[i];
  1441. if(domStyle.refs === 0) {
  1442. for (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j]();
  1443. delete stylesInDom[domStyle.id];
  1444. }
  1445. }
  1446. };
  1447. };
  1448. function addStylesToDom (styles, options) {
  1449. for (var i = 0; i < styles.length; i++) {
  1450. var item = styles[i];
  1451. var domStyle = stylesInDom[item.id];
  1452. if(domStyle) {
  1453. domStyle.refs++;
  1454. for(var j = 0; j < domStyle.parts.length; j++) {
  1455. domStyle.parts[j](item.parts[j]);
  1456. }
  1457. for(; j < item.parts.length; j++) {
  1458. domStyle.parts.push(addStyle(item.parts[j], options));
  1459. }
  1460. } else {
  1461. var parts = [];
  1462. for(var j = 0; j < item.parts.length; j++) {
  1463. parts.push(addStyle(item.parts[j], options));
  1464. }
  1465. stylesInDom[item.id] = {id: item.id, refs: 1, parts: parts};
  1466. }
  1467. }
  1468. }
  1469. function listToStyles (list, options) {
  1470. var styles = [];
  1471. var newStyles = {};
  1472. for (var i = 0; i < list.length; i++) {
  1473. var item = list[i];
  1474. var id = options.base ? item[0] + options.base : item[0];
  1475. var css = item[1];
  1476. var media = item[2];
  1477. var sourceMap = item[3];
  1478. var part = {css: css, media: media, sourceMap: sourceMap};
  1479. if(!newStyles[id]) styles.push(newStyles[id] = {id: id, parts: [part]});
  1480. else newStyles[id].parts.push(part);
  1481. }
  1482. return styles;
  1483. }
  1484. function insertStyleElement (options, style) {
  1485. var target = getElement(options.insertInto)
  1486. if (!target) {
  1487. throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");
  1488. }
  1489. var lastStyleElementInsertedAtTop = stylesInsertedAtTop[stylesInsertedAtTop.length - 1];
  1490. if (options.insertAt === "top") {
  1491. if (!lastStyleElementInsertedAtTop) {
  1492. target.insertBefore(style, target.firstChild);
  1493. } else if (lastStyleElementInsertedAtTop.nextSibling) {
  1494. target.insertBefore(style, lastStyleElementInsertedAtTop.nextSibling);
  1495. } else {
  1496. target.appendChild(style);
  1497. }
  1498. stylesInsertedAtTop.push(style);
  1499. } else if (options.insertAt === "bottom") {
  1500. target.appendChild(style);
  1501. } else if (typeof options.insertAt === "object" && options.insertAt.before) {
  1502. var nextSibling = getElement(options.insertAt.before, target);
  1503. target.insertBefore(style, nextSibling);
  1504. } else {
  1505. throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");
  1506. }
  1507. }
  1508. function removeStyleElement (style) {
  1509. if (style.parentNode === null) return false;
  1510. style.parentNode.removeChild(style);
  1511. var idx = stylesInsertedAtTop.indexOf(style);
  1512. if(idx >= 0) {
  1513. stylesInsertedAtTop.splice(idx, 1);
  1514. }
  1515. }
  1516. function createStyleElement (options) {
  1517. var style = document.createElement("style");
  1518. if(options.attrs.type === undefined) {
  1519. options.attrs.type = "text/css";
  1520. }
  1521. if(options.attrs.nonce === undefined) {
  1522. var nonce = getNonce();
  1523. if (nonce) {
  1524. options.attrs.nonce = nonce;
  1525. }
  1526. }
  1527. addAttrs(style, options.attrs);
  1528. insertStyleElement(options, style);
  1529. return style;
  1530. }
  1531. function createLinkElement (options) {
  1532. var link = document.createElement("link");
  1533. if(options.attrs.type === undefined) {
  1534. options.attrs.type = "text/css";
  1535. }
  1536. options.attrs.rel = "stylesheet";
  1537. addAttrs(link, options.attrs);
  1538. insertStyleElement(options, link);
  1539. return link;
  1540. }
  1541. function addAttrs (el, attrs) {
  1542. Object.keys(attrs).forEach(function (key) {
  1543. el.setAttribute(key, attrs[key]);
  1544. });
  1545. }
  1546. function getNonce() {
  1547. if (false) {}
  1548. return __webpack_require__.nc;
  1549. }
  1550. function addStyle (obj, options) {
  1551. var style, update, remove, result;
  1552. // If a transform function was defined, run it on the css
  1553. if (options.transform && obj.css) {
  1554. result = typeof options.transform === 'function'
  1555. ? options.transform(obj.css)
  1556. : options.transform.default(obj.css);
  1557. if (result) {
  1558. // If transform returns a value, use that instead of the original css.
  1559. // This allows running runtime transformations on the css.
  1560. obj.css = result;
  1561. } else {
  1562. // If the transform function returns a falsy value, don't add this css.
  1563. // This allows conditional loading of css
  1564. return function() {
  1565. // noop
  1566. };
  1567. }
  1568. }
  1569. if (options.singleton) {
  1570. var styleIndex = singletonCounter++;
  1571. style = singleton || (singleton = createStyleElement(options));
  1572. update = applyToSingletonTag.bind(null, style, styleIndex, false);
  1573. remove = applyToSingletonTag.bind(null, style, styleIndex, true);
  1574. } else if (
  1575. obj.sourceMap &&
  1576. typeof URL === "function" &&
  1577. typeof URL.createObjectURL === "function" &&
  1578. typeof URL.revokeObjectURL === "function" &&
  1579. typeof Blob === "function" &&
  1580. typeof btoa === "function"
  1581. ) {
  1582. style = createLinkElement(options);
  1583. update = updateLink.bind(null, style, options);
  1584. remove = function () {
  1585. removeStyleElement(style);
  1586. if(style.href) URL.revokeObjectURL(style.href);
  1587. };
  1588. } else {
  1589. style = createStyleElement(options);
  1590. update = applyToTag.bind(null, style);
  1591. remove = function () {
  1592. removeStyleElement(style);
  1593. };
  1594. }
  1595. update(obj);
  1596. return function updateStyle (newObj) {
  1597. if (newObj) {
  1598. if (
  1599. newObj.css === obj.css &&
  1600. newObj.media === obj.media &&
  1601. newObj.sourceMap === obj.sourceMap
  1602. ) {
  1603. return;
  1604. }
  1605. update(obj = newObj);
  1606. } else {
  1607. remove();
  1608. }
  1609. };
  1610. }
  1611. var replaceText = (function () {
  1612. var textStore = [];
  1613. return function (index, replacement) {
  1614. textStore[index] = replacement;
  1615. return textStore.filter(Boolean).join('\n');
  1616. };
  1617. })();
  1618. function applyToSingletonTag (style, index, remove, obj) {
  1619. var css = remove ? "" : obj.css;
  1620. if (style.styleSheet) {
  1621. style.styleSheet.cssText = replaceText(index, css);
  1622. } else {
  1623. var cssNode = document.createTextNode(css);
  1624. var childNodes = style.childNodes;
  1625. if (childNodes[index]) style.removeChild(childNodes[index]);
  1626. if (childNodes.length) {
  1627. style.insertBefore(cssNode, childNodes[index]);
  1628. } else {
  1629. style.appendChild(cssNode);
  1630. }
  1631. }
  1632. }
  1633. function applyToTag (style, obj) {
  1634. var css = obj.css;
  1635. var media = obj.media;
  1636. if(media) {
  1637. style.setAttribute("media", media)
  1638. }
  1639. if(style.styleSheet) {
  1640. style.styleSheet.cssText = css;
  1641. } else {
  1642. while(style.firstChild) {
  1643. style.removeChild(style.firstChild);
  1644. }
  1645. style.appendChild(document.createTextNode(css));
  1646. }
  1647. }
  1648. function updateLink (link, options, obj) {
  1649. var css = obj.css;
  1650. var sourceMap = obj.sourceMap;
  1651. /*
  1652. If convertToAbsoluteUrls isn't defined, but sourcemaps are enabled
  1653. and there is no publicPath defined then lets turn convertToAbsoluteUrls
  1654. on by default. Otherwise default to the convertToAbsoluteUrls option
  1655. directly
  1656. */
  1657. var autoFixUrls = options.convertToAbsoluteUrls === undefined && sourceMap;
  1658. if (options.convertToAbsoluteUrls || autoFixUrls) {
  1659. css = fixUrls(css);
  1660. }
  1661. if (sourceMap) {
  1662. // http://stackoverflow.com/a/26603875
  1663. css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */";
  1664. }
  1665. var blob = new Blob([css], { type: "text/css" });
  1666. var oldSrc = link.href;
  1667. link.href = URL.createObjectURL(blob);
  1668. if(oldSrc) URL.revokeObjectURL(oldSrc);
  1669. }
  1670. /***/ }),
  1671. /***/ 60:
  1672. /***/ (function(module, exports, __webpack_require__) {
  1673. "use strict";
  1674. exports.__esModule = true;
  1675. exports.BindEventMixin = BindEventMixin;
  1676. var _event = __webpack_require__(30);
  1677. /**
  1678. * Bind event when mounted or activated
  1679. */
  1680. var uid = 0;
  1681. function BindEventMixin(handler) {
  1682. var key = "binded_" + uid++;
  1683. function bind() {
  1684. if (!this[key]) {
  1685. handler.call(this, _event.on, true);
  1686. this[key] = true;
  1687. }
  1688. }
  1689. function unbind() {
  1690. if (this[key]) {
  1691. handler.call(this, _event.off, false);
  1692. this[key] = false;
  1693. }
  1694. }
  1695. return {
  1696. mounted: bind,
  1697. activated: bind,
  1698. deactivated: unbind,
  1699. beforeDestroy: unbind
  1700. };
  1701. }
  1702. /***/ }),
  1703. /***/ 81:
  1704. /***/ (function(module, exports, __webpack_require__) {
  1705. "use strict";
  1706. exports.__esModule = true;
  1707. exports.range = range;
  1708. exports.formatNumber = formatNumber;
  1709. function range(num, min, max) {
  1710. return Math.min(Math.max(num, min), max);
  1711. }
  1712. function trimExtraChar(value, _char, regExp) {
  1713. var index = value.indexOf(_char);
  1714. if (index === -1) {
  1715. return value;
  1716. }
  1717. if (_char === '-' && index !== 0) {
  1718. return value.slice(0, index);
  1719. }
  1720. return value.slice(0, index + 1) + value.slice(index).replace(regExp, '');
  1721. }
  1722. function formatNumber(value, allowDot, allowMinus) {
  1723. if (allowDot === void 0) {
  1724. allowDot = true;
  1725. }
  1726. if (allowMinus === void 0) {
  1727. allowMinus = true;
  1728. }
  1729. if (allowDot) {
  1730. value = trimExtraChar(value, '.', /\./g);
  1731. } else {
  1732. value = value.split('.')[0];
  1733. }
  1734. if (allowMinus) {
  1735. value = trimExtraChar(value, '-', /-/g);
  1736. } else {
  1737. value = value.replace(/-/, '');
  1738. }
  1739. var regExp = allowDot ? /[^-0-9.]/g : /[^-0-9]/g;
  1740. return value.replace(regExp, '');
  1741. }
  1742. /***/ }),
  1743. /***/ 86:
  1744. /***/ (function(module, exports, __webpack_require__) {
  1745. "use strict";
  1746. /* WEBPACK VAR INJECTION */(function(global) {
  1747. exports.__esModule = true;
  1748. exports.raf = raf;
  1749. exports.doubleRaf = doubleRaf;
  1750. exports.cancelRaf = cancelRaf;
  1751. var _ = __webpack_require__(0);
  1752. /**
  1753. * requestAnimationFrame polyfill
  1754. */
  1755. var prev = Date.now();
  1756. /* istanbul ignore next */
  1757. function fallback(fn) {
  1758. var curr = Date.now();
  1759. var ms = Math.max(0, 16 - (curr - prev));
  1760. var id = setTimeout(fn, ms);
  1761. prev = curr + ms;
  1762. return id;
  1763. }
  1764. /* istanbul ignore next */
  1765. var root = _.isServer ? global : window;
  1766. /* istanbul ignore next */
  1767. var iRaf = root.requestAnimationFrame || fallback;
  1768. /* istanbul ignore next */
  1769. var iCancel = root.cancelAnimationFrame || root.clearTimeout;
  1770. function raf(fn) {
  1771. return iRaf.call(root, fn);
  1772. } // double raf for animation
  1773. function doubleRaf(fn) {
  1774. raf(function () {
  1775. raf(fn);
  1776. });
  1777. }
  1778. function cancelRaf(id) {
  1779. iCancel.call(root, id);
  1780. }
  1781. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(87)))
  1782. /***/ }),
  1783. /***/ 87:
  1784. /***/ (function(module, exports) {
  1785. var g;
  1786. // This works in non-strict mode
  1787. g = (function() {
  1788. return this;
  1789. })();
  1790. try {
  1791. // This works if eval is allowed (see CSP)
  1792. g = g || new Function("return this")();
  1793. } catch (e) {
  1794. // This works if the window reference is available
  1795. if (typeof window === "object") g = window;
  1796. }
  1797. // g can still be undefined, but nothing to do about it...
  1798. // We return undefined, instead of nothing here, so it's
  1799. // easier to handle this case. if(!global) { ...}
  1800. module.exports = g;
  1801. /***/ }),
  1802. /***/ 9:
  1803. /***/ (function(module, exports, __webpack_require__) {
  1804. "use strict";
  1805. exports.__esModule = true;
  1806. exports.camelize = camelize;
  1807. exports.padZero = padZero;
  1808. var camelizeRE = /-(\w)/g;
  1809. function camelize(str) {
  1810. return str.replace(camelizeRE, function (_, c) {
  1811. return c.toUpperCase();
  1812. });
  1813. }
  1814. function padZero(num, targetLength) {
  1815. if (targetLength === void 0) {
  1816. targetLength = 2;
  1817. }
  1818. var str = num + '';
  1819. while (str.length < targetLength) {
  1820. str = '0' + str;
  1821. }
  1822. return str;
  1823. }
  1824. /***/ }),
  1825. /***/ 94:
  1826. /***/ (function(module, exports, __webpack_require__) {
  1827. "use strict";
  1828. exports.__esModule = true;
  1829. exports.isHidden = isHidden;
  1830. function isHidden(el) {
  1831. var style = window.getComputedStyle(el);
  1832. var hidden = style.display === 'none'; // offsetParent returns null in the following situations:
  1833. // 1. The element or its parent element has the display property set to none.
  1834. // 2. The element has the position property set to fixed
  1835. var parentHidden = el.offsetParent === null && style.position !== 'fixed';
  1836. return hidden || parentHidden;
  1837. }
  1838. /***/ })
  1839. /******/ });