框架源码
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.

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