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

1796 lines
48 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 = 487);
  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. /***/ 12:
  176. /***/ (function(module, exports) {
  177. /**
  178. * When source maps are enabled, `style-loader` uses a link element with a data-uri to
  179. * embed the css on the page. This breaks all relative urls because now they are relative to a
  180. * bundle instead of the current page.
  181. *
  182. * One solution is to only use full urls, but that may be impossible.
  183. *
  184. * Instead, this function "fixes" the relative urls to be absolute according to the current page location.
  185. *
  186. * A rudimentary test suite is located at `test/fixUrls.js` and can be run via the `npm test` command.
  187. *
  188. */
  189. module.exports = function (css) {
  190. // get current location
  191. var location = typeof window !== "undefined" && window.location;
  192. if (!location) {
  193. throw new Error("fixUrls requires window.location");
  194. }
  195. // blank or null?
  196. if (!css || typeof css !== "string") {
  197. return css;
  198. }
  199. var baseUrl = location.protocol + "//" + location.host;
  200. var currentDir = baseUrl + location.pathname.replace(/\/[^\/]*$/, "/");
  201. // convert each url(...)
  202. /*
  203. This regular expression is just a way to recursively match brackets within
  204. a string.
  205. /url\s*\( = Match on the word "url" with any whitespace after it and then a parens
  206. ( = Start a capturing group
  207. (?: = Start a non-capturing group
  208. [^)(] = Match anything that isn't a parentheses
  209. | = OR
  210. \( = Match a start parentheses
  211. (?: = Start another non-capturing groups
  212. [^)(]+ = Match anything that isn't a parentheses
  213. | = OR
  214. \( = Match a start parentheses
  215. [^)(]* = Match anything that isn't a parentheses
  216. \) = Match a end parentheses
  217. ) = End Group
  218. *\) = Match anything and then a close parens
  219. ) = Close non-capturing group
  220. * = Match anything
  221. ) = Close capturing group
  222. \) = Match a close parens
  223. /gi = Get all matches, not the first. Be case insensitive.
  224. */
  225. var fixedCss = css.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(fullMatch, origUrl) {
  226. // strip quotes (if they exist)
  227. var unquotedOrigUrl = origUrl
  228. .trim()
  229. .replace(/^"(.*)"$/, function(o, $1){ return $1; })
  230. .replace(/^'(.*)'$/, function(o, $1){ return $1; });
  231. // already a full url? no change
  232. if (/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(unquotedOrigUrl)) {
  233. return fullMatch;
  234. }
  235. // convert the url to a full url
  236. var newUrl;
  237. if (unquotedOrigUrl.indexOf("//") === 0) {
  238. //TODO: should we add protocol?
  239. newUrl = unquotedOrigUrl;
  240. } else if (unquotedOrigUrl.indexOf("/") === 0) {
  241. // path should be relative to the base url
  242. newUrl = baseUrl + unquotedOrigUrl; // already starts with '/'
  243. } else {
  244. // path should be relative to current directory
  245. newUrl = currentDir + unquotedOrigUrl.replace(/^\.\//, ""); // Strip leading './'
  246. }
  247. // send back the fixed url(...)
  248. return "url(" + JSON.stringify(newUrl) + ")";
  249. });
  250. // send back the fixed css
  251. return fixedCss;
  252. };
  253. /***/ }),
  254. /***/ 140:
  255. /***/ (function(module, exports, __webpack_require__) {
  256. "use strict";
  257. exports.__esModule = true;
  258. exports.default = void 0;
  259. var _style = __webpack_require__(94);
  260. var _unit = __webpack_require__(20);
  261. var _utils = __webpack_require__(0);
  262. var _scroll = __webpack_require__(53);
  263. var _bindEvent = __webpack_require__(60);
  264. var _createNamespace = (0, _utils.createNamespace)('sticky'),
  265. createComponent = _createNamespace[0],
  266. bem = _createNamespace[1];
  267. var _default = createComponent({
  268. mixins: [(0, _bindEvent.BindEventMixin)(function (bind, isBind) {
  269. if (!this.scroller) {
  270. this.scroller = (0, _scroll.getScroller)(this.$el);
  271. }
  272. if (this.observer) {
  273. var method = isBind ? 'observe' : 'unobserve';
  274. this.observer[method](this.$el);
  275. }
  276. bind(this.scroller, 'scroll', this.onScroll, true);
  277. this.onScroll();
  278. })],
  279. props: {
  280. zIndex: [Number, String],
  281. container: null,
  282. offsetTop: {
  283. type: [Number, String],
  284. default: 0
  285. }
  286. },
  287. data: function data() {
  288. return {
  289. fixed: false,
  290. height: 0,
  291. transform: 0
  292. };
  293. },
  294. computed: {
  295. offsetTopPx: function offsetTopPx() {
  296. return (0, _unit.unitToPx)(this.offsetTop);
  297. },
  298. style: function style() {
  299. if (!this.fixed) {
  300. return;
  301. }
  302. var style = {};
  303. if ((0, _utils.isDef)(this.zIndex)) {
  304. style.zIndex = this.zIndex;
  305. }
  306. if (this.offsetTopPx && this.fixed) {
  307. style.top = this.offsetTopPx + "px";
  308. }
  309. if (this.transform) {
  310. style.transform = "translate3d(0, " + this.transform + "px, 0)";
  311. }
  312. return style;
  313. }
  314. },
  315. created: function created() {
  316. var _this = this;
  317. // compatibility: https://caniuse.com/#feat=intersectionobserver
  318. if (!_utils.isServer && window.IntersectionObserver) {
  319. this.observer = new IntersectionObserver(function (entries) {
  320. // trigger scroll when visibility changed
  321. if (entries[0].intersectionRatio > 0) {
  322. _this.onScroll();
  323. }
  324. }, {
  325. root: document.body
  326. });
  327. }
  328. },
  329. methods: {
  330. onScroll: function onScroll() {
  331. var _this2 = this;
  332. if ((0, _style.isHidden)(this.$el)) {
  333. return;
  334. }
  335. this.height = this.$el.offsetHeight;
  336. var container = this.container,
  337. offsetTopPx = this.offsetTopPx;
  338. var scrollTop = (0, _scroll.getScrollTop)(window);
  339. var topToPageTop = (0, _scroll.getElementTop)(this.$el);
  340. var emitScrollEvent = function emitScrollEvent() {
  341. _this2.$emit('scroll', {
  342. scrollTop: scrollTop,
  343. isFixed: _this2.fixed
  344. });
  345. }; // The sticky component should be kept inside the container element
  346. if (container) {
  347. var bottomToPageTop = topToPageTop + container.offsetHeight;
  348. if (scrollTop + offsetTopPx + this.height > bottomToPageTop) {
  349. var distanceToBottom = this.height + scrollTop - bottomToPageTop;
  350. if (distanceToBottom < this.height) {
  351. this.fixed = true;
  352. this.transform = -(distanceToBottom + offsetTopPx);
  353. } else {
  354. this.fixed = false;
  355. }
  356. emitScrollEvent();
  357. return;
  358. }
  359. }
  360. if (scrollTop + offsetTopPx > topToPageTop) {
  361. this.fixed = true;
  362. this.transform = 0;
  363. } else {
  364. this.fixed = false;
  365. }
  366. emitScrollEvent();
  367. }
  368. },
  369. render: function render() {
  370. var h = arguments[0];
  371. var fixed = this.fixed;
  372. var style = {
  373. height: fixed ? this.height + "px" : null
  374. };
  375. return h("div", {
  376. "style": style
  377. }, [h("div", {
  378. "class": bem({
  379. fixed: fixed
  380. }),
  381. "style": this.style
  382. }, [this.slots()])]);
  383. }
  384. });
  385. exports.default = _default;
  386. /***/ }),
  387. /***/ 174:
  388. /***/ (function(module, exports, __webpack_require__) {
  389. var content = __webpack_require__(175);
  390. if(typeof content === 'string') content = [[module.i, content, '']];
  391. var transform;
  392. var insertInto;
  393. var options = {"hmr":true}
  394. options.transform = transform
  395. options.insertInto = undefined;
  396. var update = __webpack_require__(6)(content, options);
  397. if(content.locals) module.exports = content.locals;
  398. if(false) {}
  399. /***/ }),
  400. /***/ 175:
  401. /***/ (function(module, exports, __webpack_require__) {
  402. exports = module.exports = __webpack_require__(5)(false);
  403. // Module
  404. exports.push([module.i, ".van-sticky--fixed{position:fixed;top:0;right:0;left:0;z-index:99}", ""]);
  405. /***/ }),
  406. /***/ 19:
  407. /***/ (function(module, exports, __webpack_require__) {
  408. "use strict";
  409. exports.__esModule = true;
  410. exports.isNumeric = isNumeric;
  411. exports.isNaN = isNaN;
  412. function isNumeric(val) {
  413. return /^\d+(\.\d+)?$/.test(val);
  414. }
  415. function isNaN(val) {
  416. if (Number.isNaN) {
  417. return Number.isNaN(val);
  418. } // eslint-disable-next-line no-self-compare
  419. return val !== val;
  420. }
  421. /***/ }),
  422. /***/ 20:
  423. /***/ (function(module, exports, __webpack_require__) {
  424. "use strict";
  425. exports.__esModule = true;
  426. exports.addUnit = addUnit;
  427. exports.unitToPx = unitToPx;
  428. var _ = __webpack_require__(0);
  429. var _number = __webpack_require__(19);
  430. function addUnit(value) {
  431. if (!(0, _.isDef)(value)) {
  432. return undefined;
  433. }
  434. value = String(value);
  435. return (0, _number.isNumeric)(value) ? value + "px" : value;
  436. } // cache
  437. var rootFontSize;
  438. function getRootFontSize() {
  439. if (!rootFontSize) {
  440. var doc = document.documentElement;
  441. var fontSize = doc.style.fontSize || window.getComputedStyle(doc).fontSize;
  442. rootFontSize = parseFloat(fontSize);
  443. }
  444. return rootFontSize;
  445. }
  446. function convertRem(value) {
  447. value = value.replace(/rem/g, '');
  448. return +value * getRootFontSize();
  449. }
  450. function convertVw(value) {
  451. value = value.replace(/vw/g, '');
  452. return +value * window.innerWidth / 100;
  453. }
  454. function convertVh(value) {
  455. value = value.replace(/vh/g, '');
  456. return +value * window.innerHeight / 100;
  457. }
  458. function unitToPx(value) {
  459. if (typeof value === 'number') {
  460. return value;
  461. }
  462. if (_.inBrowser) {
  463. if (value.indexOf('rem') !== -1) {
  464. return convertRem(value);
  465. }
  466. if (value.indexOf('vw') !== -1) {
  467. return convertVw(value);
  468. }
  469. if (value.indexOf('vh') !== -1) {
  470. return convertVh(value);
  471. }
  472. }
  473. return parseFloat(value);
  474. }
  475. /***/ }),
  476. /***/ 21:
  477. /***/ (function(module, exports, __webpack_require__) {
  478. "use strict";
  479. exports.__esModule = true;
  480. exports.deepAssign = deepAssign;
  481. var _ = __webpack_require__(0);
  482. var hasOwnProperty = Object.prototype.hasOwnProperty;
  483. function assignKey(to, from, key) {
  484. var val = from[key];
  485. if (!(0, _.isDef)(val)) {
  486. return;
  487. }
  488. if (!hasOwnProperty.call(to, key) || !(0, _.isObject)(val)) {
  489. to[key] = val;
  490. } else {
  491. // eslint-disable-next-line @typescript-eslint/no-use-before-define
  492. to[key] = deepAssign(Object(to[key]), from[key]);
  493. }
  494. }
  495. function deepAssign(to, from) {
  496. Object.keys(from).forEach(function (key) {
  497. assignKey(to, from, key);
  498. });
  499. return to;
  500. }
  501. /***/ }),
  502. /***/ 22:
  503. /***/ (function(module, exports, __webpack_require__) {
  504. var content = __webpack_require__(23);
  505. if(typeof content === 'string') content = [[module.i, content, '']];
  506. var transform;
  507. var insertInto;
  508. var options = {"hmr":true}
  509. options.transform = transform
  510. options.insertInto = undefined;
  511. var update = __webpack_require__(6)(content, options);
  512. if(content.locals) module.exports = content.locals;
  513. if(false) {}
  514. /***/ }),
  515. /***/ 23:
  516. /***/ (function(module, exports, __webpack_require__) {
  517. exports = module.exports = __webpack_require__(5)(false);
  518. // Module
  519. 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
  520. /***/ }),
  521. /***/ 24:
  522. /***/ (function(module, exports, __webpack_require__) {
  523. "use strict";
  524. exports.__esModule = true;
  525. exports.createNamespace = createNamespace;
  526. var _bem = __webpack_require__(25);
  527. var _component = __webpack_require__(26);
  528. var _i18n = __webpack_require__(29);
  529. function createNamespace(name) {
  530. name = 'van-' + name;
  531. return [(0, _component.createComponent)(name), (0, _bem.createBEM)(name), (0, _i18n.createI18N)(name)];
  532. }
  533. /***/ }),
  534. /***/ 25:
  535. /***/ (function(module, exports, __webpack_require__) {
  536. "use strict";
  537. exports.__esModule = true;
  538. exports.createBEM = createBEM;
  539. /**
  540. * bem helper
  541. * b() // 'button'
  542. * b('text') // 'button__text'
  543. * b({ disabled }) // 'button button--disabled'
  544. * b('text', { disabled }) // 'button__text button__text--disabled'
  545. * b(['disabled', 'primary']) // 'button button--disabled button--primary'
  546. */
  547. function gen(name, mods) {
  548. if (!mods) {
  549. return '';
  550. }
  551. if (typeof mods === 'string') {
  552. return " " + name + "--" + mods;
  553. }
  554. if (Array.isArray(mods)) {
  555. return mods.reduce(function (ret, item) {
  556. return ret + gen(name, item);
  557. }, '');
  558. }
  559. return Object.keys(mods).reduce(function (ret, key) {
  560. return ret + (mods[key] ? gen(name, key) : '');
  561. }, '');
  562. }
  563. function createBEM(name) {
  564. return function (el, mods) {
  565. if (el && typeof el !== 'string') {
  566. mods = el;
  567. el = '';
  568. }
  569. el = el ? name + "__" + el : name;
  570. return "" + el + gen(el, mods);
  571. };
  572. }
  573. /***/ }),
  574. /***/ 26:
  575. /***/ (function(module, exports, __webpack_require__) {
  576. "use strict";
  577. var _interopRequireDefault = __webpack_require__(1);
  578. exports.__esModule = true;
  579. exports.unifySlots = unifySlots;
  580. exports.createComponent = createComponent;
  581. __webpack_require__(11);
  582. var _ = __webpack_require__(0);
  583. var _string = __webpack_require__(9);
  584. var _slots = __webpack_require__(28);
  585. var _vue = _interopRequireDefault(__webpack_require__(4));
  586. /**
  587. * Create a basic component with common options
  588. */
  589. function install(Vue) {
  590. var name = this.name;
  591. Vue.component(name, this);
  592. Vue.component((0, _string.camelize)("-" + name), this);
  593. } // unify slots & scopedSlots
  594. function unifySlots(context) {
  595. // use data.scopedSlots in lower Vue version
  596. var scopedSlots = context.scopedSlots || context.data.scopedSlots || {};
  597. var slots = context.slots();
  598. Object.keys(slots).forEach(function (key) {
  599. if (!scopedSlots[key]) {
  600. scopedSlots[key] = function () {
  601. return slots[key];
  602. };
  603. }
  604. });
  605. return scopedSlots;
  606. } // should be removed after Vue 3
  607. function transformFunctionComponent(pure) {
  608. return {
  609. functional: true,
  610. props: pure.props,
  611. model: pure.model,
  612. render: function render(h, context) {
  613. return pure(h, context.props, unifySlots(context), context);
  614. }
  615. };
  616. }
  617. function createComponent(name) {
  618. return function (sfc) {
  619. if ((0, _.isFunction)(sfc)) {
  620. sfc = transformFunctionComponent(sfc);
  621. }
  622. if (!sfc.functional) {
  623. sfc.mixins = sfc.mixins || [];
  624. sfc.mixins.push(_slots.SlotsMixin);
  625. }
  626. sfc.name = name;
  627. sfc.install = install;
  628. return sfc;
  629. };
  630. }
  631. /***/ }),
  632. /***/ 27:
  633. /***/ (function(module, exports, __webpack_require__) {
  634. "use strict";
  635. exports.__esModule = true;
  636. exports.default = void 0;
  637. var _default = {
  638. name: '姓名',
  639. tel: '电话',
  640. save: '保存',
  641. confirm: '确认',
  642. cancel: '取消',
  643. delete: '删除',
  644. complete: '完成',
  645. loading: '加载中...',
  646. telEmpty: '请填写电话',
  647. nameEmpty: '请填写姓名',
  648. nameInvalid: '请输入正确的姓名',
  649. confirmDelete: '确定要删除吗',
  650. telInvalid: '请输入正确的手机号',
  651. vanCalendar: {
  652. end: '结束',
  653. start: '开始',
  654. title: '日期选择',
  655. confirm: '确定',
  656. startEnd: '开始/结束',
  657. weekdays: ['日', '一', '二', '三', '四', '五', '六'],
  658. monthTitle: function monthTitle(year, month) {
  659. return year + "\u5E74" + month + "\u6708";
  660. },
  661. rangePrompt: function rangePrompt(maxRange) {
  662. return "\u9009\u62E9\u5929\u6570\u4E0D\u80FD\u8D85\u8FC7 " + maxRange + " \u5929";
  663. }
  664. },
  665. vanCascader: {
  666. select: '请选择'
  667. },
  668. vanContactCard: {
  669. addText: '添加联系人'
  670. },
  671. vanContactList: {
  672. addText: '新建联系人'
  673. },
  674. vanPagination: {
  675. prev: '上一页',
  676. next: '下一页'
  677. },
  678. vanPullRefresh: {
  679. pulling: '下拉即可刷新...',
  680. loosing: '释放即可刷新...'
  681. },
  682. vanSubmitBar: {
  683. label: '合计:'
  684. },
  685. vanCoupon: {
  686. unlimited: '无使用门槛',
  687. discount: function discount(_discount) {
  688. return _discount + "\u6298";
  689. },
  690. condition: function condition(_condition) {
  691. return "\u6EE1" + _condition + "\u5143\u53EF\u7528";
  692. }
  693. },
  694. vanCouponCell: {
  695. title: '优惠券',
  696. tips: '暂无可用',
  697. count: function count(_count) {
  698. return _count + "\u5F20\u53EF\u7528";
  699. }
  700. },
  701. vanCouponList: {
  702. empty: '暂无优惠券',
  703. exchange: '兑换',
  704. close: '不使用优惠券',
  705. enable: '可用',
  706. disabled: '不可用',
  707. placeholder: '请输入优惠码'
  708. },
  709. vanAddressEdit: {
  710. area: '地区',
  711. postal: '邮政编码',
  712. areaEmpty: '请选择地区',
  713. addressEmpty: '请填写详细地址',
  714. postalEmpty: '邮政编码格式不正确',
  715. defaultAddress: '设为默认收货地址',
  716. telPlaceholder: '收货人手机号',
  717. namePlaceholder: '收货人姓名',
  718. areaPlaceholder: '选择省 / 市 / 区'
  719. },
  720. vanAddressEditDetail: {
  721. label: '详细地址',
  722. placeholder: '街道门牌、楼层房间号等信息'
  723. },
  724. vanAddressList: {
  725. add: '新增地址'
  726. }
  727. };
  728. exports.default = _default;
  729. /***/ }),
  730. /***/ 28:
  731. /***/ (function(module, exports, __webpack_require__) {
  732. "use strict";
  733. exports.__esModule = true;
  734. exports.SlotsMixin = void 0;
  735. /**
  736. * Use scopedSlots in Vue 2.6+
  737. * downgrade to slots in lower version
  738. */
  739. var SlotsMixin = {
  740. methods: {
  741. slots: function slots(name, props) {
  742. if (name === void 0) {
  743. name = 'default';
  744. }
  745. var $slots = this.$slots,
  746. $scopedSlots = this.$scopedSlots;
  747. var scopedSlot = $scopedSlots[name];
  748. if (scopedSlot) {
  749. return scopedSlot(props);
  750. }
  751. return $slots[name];
  752. }
  753. }
  754. };
  755. exports.SlotsMixin = SlotsMixin;
  756. /***/ }),
  757. /***/ 29:
  758. /***/ (function(module, exports, __webpack_require__) {
  759. "use strict";
  760. var _interopRequireDefault = __webpack_require__(1);
  761. exports.__esModule = true;
  762. exports.createI18N = createI18N;
  763. var _ = __webpack_require__(0);
  764. var _string = __webpack_require__(9);
  765. var _locale = _interopRequireDefault(__webpack_require__(11));
  766. function createI18N(name) {
  767. var prefix = (0, _string.camelize)(name) + '.';
  768. return function (path) {
  769. var messages = _locale.default.messages();
  770. var message = (0, _.get)(messages, prefix + path) || (0, _.get)(messages, path);
  771. for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  772. args[_key - 1] = arguments[_key];
  773. }
  774. return (0, _.isFunction)(message) ? message.apply(void 0, args) : message;
  775. };
  776. }
  777. /***/ }),
  778. /***/ 30:
  779. /***/ (function(module, exports, __webpack_require__) {
  780. "use strict";
  781. exports.__esModule = true;
  782. exports.on = on;
  783. exports.off = off;
  784. exports.stopPropagation = stopPropagation;
  785. exports.preventDefault = preventDefault;
  786. exports.supportsPassive = void 0;
  787. var _ = __webpack_require__(0);
  788. // eslint-disable-next-line import/no-mutable-exports
  789. var supportsPassive = false;
  790. exports.supportsPassive = supportsPassive;
  791. if (!_.isServer) {
  792. try {
  793. var opts = {};
  794. Object.defineProperty(opts, 'passive', {
  795. // eslint-disable-next-line getter-return
  796. get: function get() {
  797. /* istanbul ignore next */
  798. exports.supportsPassive = supportsPassive = true;
  799. }
  800. });
  801. window.addEventListener('test-passive', null, opts); // eslint-disable-next-line no-empty
  802. } catch (e) {}
  803. }
  804. function on(target, event, handler, passive) {
  805. if (passive === void 0) {
  806. passive = false;
  807. }
  808. if (!_.isServer) {
  809. target.addEventListener(event, handler, supportsPassive ? {
  810. capture: false,
  811. passive: passive
  812. } : false);
  813. }
  814. }
  815. function off(target, event, handler) {
  816. if (!_.isServer) {
  817. target.removeEventListener(event, handler);
  818. }
  819. }
  820. function stopPropagation(event) {
  821. event.stopPropagation();
  822. }
  823. function preventDefault(event, isStopPropagation) {
  824. /* istanbul ignore else */
  825. if (typeof event.cancelable !== 'boolean' || event.cancelable) {
  826. event.preventDefault();
  827. }
  828. if (isStopPropagation) {
  829. stopPropagation(event);
  830. }
  831. }
  832. /***/ }),
  833. /***/ 4:
  834. /***/ (function(module, exports) {
  835. module.exports = require("vue");
  836. /***/ }),
  837. /***/ 487:
  838. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  839. "use strict";
  840. __webpack_require__.r(__webpack_exports__);
  841. /* harmony import */ var _tisdesign_m_lib_sticky__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(140);
  842. /* harmony import */ var _tisdesign_m_lib_sticky__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_tisdesign_m_lib_sticky__WEBPACK_IMPORTED_MODULE_0__);
  843. /* harmony import */ var _tisdesign_m_lib_sticky_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(488);
  844. /* harmony import */ var _tisdesign_m_lib_sticky_style__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_tisdesign_m_lib_sticky_style__WEBPACK_IMPORTED_MODULE_1__);
  845. _tisdesign_m_lib_sticky__WEBPACK_IMPORTED_MODULE_0___default.a.name = 'm-sticky';
  846. /* harmony default export */ __webpack_exports__["default"] = (_tisdesign_m_lib_sticky__WEBPACK_IMPORTED_MODULE_0___default.a);
  847. /***/ }),
  848. /***/ 488:
  849. /***/ (function(module, exports, __webpack_require__) {
  850. __webpack_require__(22);
  851. __webpack_require__(174);
  852. /***/ }),
  853. /***/ 5:
  854. /***/ (function(module, exports, __webpack_require__) {
  855. "use strict";
  856. /*
  857. MIT License http://www.opensource.org/licenses/mit-license.php
  858. Author Tobias Koppers @sokra
  859. */
  860. // css base code, injected by the css-loader
  861. module.exports = function (useSourceMap) {
  862. var list = []; // return the list of modules as css string
  863. list.toString = function toString() {
  864. return this.map(function (item) {
  865. var content = cssWithMappingToString(item, useSourceMap);
  866. if (item[2]) {
  867. return '@media ' + item[2] + '{' + content + '}';
  868. } else {
  869. return content;
  870. }
  871. }).join('');
  872. }; // import a list of modules into the list
  873. list.i = function (modules, mediaQuery) {
  874. if (typeof modules === 'string') {
  875. modules = [[null, modules, '']];
  876. }
  877. var alreadyImportedModules = {};
  878. for (var i = 0; i < this.length; i++) {
  879. var id = this[i][0];
  880. if (id != null) {
  881. alreadyImportedModules[id] = true;
  882. }
  883. }
  884. for (i = 0; i < modules.length; i++) {
  885. var item = modules[i]; // skip already imported module
  886. // this implementation is not 100% perfect for weird media query combinations
  887. // when a module is imported multiple times with different media queries.
  888. // I hope this will never occur (Hey this way we have smaller bundles)
  889. if (item[0] == null || !alreadyImportedModules[item[0]]) {
  890. if (mediaQuery && !item[2]) {
  891. item[2] = mediaQuery;
  892. } else if (mediaQuery) {
  893. item[2] = '(' + item[2] + ') and (' + mediaQuery + ')';
  894. }
  895. list.push(item);
  896. }
  897. }
  898. };
  899. return list;
  900. };
  901. function cssWithMappingToString(item, useSourceMap) {
  902. var content = item[1] || '';
  903. var cssMapping = item[3];
  904. if (!cssMapping) {
  905. return content;
  906. }
  907. if (useSourceMap && typeof btoa === 'function') {
  908. var sourceMapping = toComment(cssMapping);
  909. var sourceURLs = cssMapping.sources.map(function (source) {
  910. return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */';
  911. });
  912. return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
  913. }
  914. return [content].join('\n');
  915. } // Adapted from convert-source-map (MIT)
  916. function toComment(sourceMap) {
  917. // eslint-disable-next-line no-undef
  918. var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
  919. var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
  920. return '/*# ' + data + ' */';
  921. }
  922. /***/ }),
  923. /***/ 53:
  924. /***/ (function(module, exports, __webpack_require__) {
  925. "use strict";
  926. exports.__esModule = true;
  927. exports.getScroller = getScroller;
  928. exports.getScrollTop = getScrollTop;
  929. exports.setScrollTop = setScrollTop;
  930. exports.getRootScrollTop = getRootScrollTop;
  931. exports.setRootScrollTop = setRootScrollTop;
  932. exports.getElementTop = getElementTop;
  933. exports.getVisibleHeight = getVisibleHeight;
  934. exports.getVisibleTop = getVisibleTop;
  935. function isWindow(val) {
  936. return val === window;
  937. } // get nearest scroll element
  938. // https://github.com/youzan/vant/issues/3823
  939. var overflowScrollReg = /scroll|auto/i;
  940. function getScroller(el, root) {
  941. if (root === void 0) {
  942. root = window;
  943. }
  944. var node = el;
  945. while (node && node.tagName !== 'HTML' && node.tagName !== 'BODY' && node.nodeType === 1 && node !== root) {
  946. var _window$getComputedSt = window.getComputedStyle(node),
  947. overflowY = _window$getComputedSt.overflowY;
  948. if (overflowScrollReg.test(overflowY)) {
  949. return node;
  950. }
  951. node = node.parentNode;
  952. }
  953. return root;
  954. }
  955. function getScrollTop(el) {
  956. var top = 'scrollTop' in el ? el.scrollTop : el.pageYOffset; // iOS scroll bounce cause minus scrollTop
  957. return Math.max(top, 0);
  958. }
  959. function setScrollTop(el, value) {
  960. if ('scrollTop' in el) {
  961. el.scrollTop = value;
  962. } else {
  963. el.scrollTo(el.scrollX, value);
  964. }
  965. }
  966. function getRootScrollTop() {
  967. return window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
  968. }
  969. function setRootScrollTop(value) {
  970. setScrollTop(window, value);
  971. setScrollTop(document.body, value);
  972. } // get distance from element top to page top or scroller top
  973. function getElementTop(el, scroller) {
  974. if (isWindow(el)) {
  975. return 0;
  976. }
  977. var scrollTop = scroller ? getScrollTop(scroller) : getRootScrollTop();
  978. return el.getBoundingClientRect().top + scrollTop;
  979. }
  980. function getVisibleHeight(el) {
  981. if (isWindow(el)) {
  982. return el.innerHeight;
  983. }
  984. return el.getBoundingClientRect().height;
  985. }
  986. function getVisibleTop(el) {
  987. if (isWindow(el)) {
  988. return 0;
  989. }
  990. return el.getBoundingClientRect().top;
  991. }
  992. /***/ }),
  993. /***/ 6:
  994. /***/ (function(module, exports, __webpack_require__) {
  995. /*
  996. MIT License http://www.opensource.org/licenses/mit-license.php
  997. Author Tobias Koppers @sokra
  998. */
  999. var stylesInDom = {};
  1000. var memoize = function (fn) {
  1001. var memo;
  1002. return function () {
  1003. if (typeof memo === "undefined") memo = fn.apply(this, arguments);
  1004. return memo;
  1005. };
  1006. };
  1007. var isOldIE = memoize(function () {
  1008. // Test for IE <= 9 as proposed by Browserhacks
  1009. // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
  1010. // Tests for existence of standard globals is to allow style-loader
  1011. // to operate correctly into non-standard environments
  1012. // @see https://github.com/webpack-contrib/style-loader/issues/177
  1013. return window && document && document.all && !window.atob;
  1014. });
  1015. var getTarget = function (target, parent) {
  1016. if (parent){
  1017. return parent.querySelector(target);
  1018. }
  1019. return document.querySelector(target);
  1020. };
  1021. var getElement = (function (fn) {
  1022. var memo = {};
  1023. return function(target, parent) {
  1024. // If passing function in options, then use it for resolve "head" element.
  1025. // Useful for Shadow Root style i.e
  1026. // {
  1027. // insertInto: function () { return document.querySelector("#foo").shadowRoot }
  1028. // }
  1029. if (typeof target === 'function') {
  1030. return target();
  1031. }
  1032. if (typeof memo[target] === "undefined") {
  1033. var styleTarget = getTarget.call(this, target, parent);
  1034. // Special case to return head of iframe instead of iframe itself
  1035. if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
  1036. try {
  1037. // This will throw an exception if access to iframe is blocked
  1038. // due to cross-origin restrictions
  1039. styleTarget = styleTarget.contentDocument.head;
  1040. } catch(e) {
  1041. styleTarget = null;
  1042. }
  1043. }
  1044. memo[target] = styleTarget;
  1045. }
  1046. return memo[target]
  1047. };
  1048. })();
  1049. var singleton = null;
  1050. var singletonCounter = 0;
  1051. var stylesInsertedAtTop = [];
  1052. var fixUrls = __webpack_require__(12);
  1053. module.exports = function(list, options) {
  1054. if (typeof DEBUG !== "undefined" && DEBUG) {
  1055. if (typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment");
  1056. }
  1057. options = options || {};
  1058. options.attrs = typeof options.attrs === "object" ? options.attrs : {};
  1059. // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
  1060. // tags it will allow on a page
  1061. if (!options.singleton && typeof options.singleton !== "boolean") options.singleton = isOldIE();
  1062. // By default, add <style> tags to the <head> element
  1063. if (!options.insertInto) options.insertInto = "head";
  1064. // By default, add <style> tags to the bottom of the target
  1065. if (!options.insertAt) options.insertAt = "bottom";
  1066. var styles = listToStyles(list, options);
  1067. addStylesToDom(styles, options);
  1068. return function update (newList) {
  1069. var mayRemove = [];
  1070. for (var i = 0; i < styles.length; i++) {
  1071. var item = styles[i];
  1072. var domStyle = stylesInDom[item.id];
  1073. domStyle.refs--;
  1074. mayRemove.push(domStyle);
  1075. }
  1076. if(newList) {
  1077. var newStyles = listToStyles(newList, options);
  1078. addStylesToDom(newStyles, options);
  1079. }
  1080. for (var i = 0; i < mayRemove.length; i++) {
  1081. var domStyle = mayRemove[i];
  1082. if(domStyle.refs === 0) {
  1083. for (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j]();
  1084. delete stylesInDom[domStyle.id];
  1085. }
  1086. }
  1087. };
  1088. };
  1089. function addStylesToDom (styles, options) {
  1090. for (var i = 0; i < styles.length; i++) {
  1091. var item = styles[i];
  1092. var domStyle = stylesInDom[item.id];
  1093. if(domStyle) {
  1094. domStyle.refs++;
  1095. for(var j = 0; j < domStyle.parts.length; j++) {
  1096. domStyle.parts[j](item.parts[j]);
  1097. }
  1098. for(; j < item.parts.length; j++) {
  1099. domStyle.parts.push(addStyle(item.parts[j], options));
  1100. }
  1101. } else {
  1102. var parts = [];
  1103. for(var j = 0; j < item.parts.length; j++) {
  1104. parts.push(addStyle(item.parts[j], options));
  1105. }
  1106. stylesInDom[item.id] = {id: item.id, refs: 1, parts: parts};
  1107. }
  1108. }
  1109. }
  1110. function listToStyles (list, options) {
  1111. var styles = [];
  1112. var newStyles = {};
  1113. for (var i = 0; i < list.length; i++) {
  1114. var item = list[i];
  1115. var id = options.base ? item[0] + options.base : item[0];
  1116. var css = item[1];
  1117. var media = item[2];
  1118. var sourceMap = item[3];
  1119. var part = {css: css, media: media, sourceMap: sourceMap};
  1120. if(!newStyles[id]) styles.push(newStyles[id] = {id: id, parts: [part]});
  1121. else newStyles[id].parts.push(part);
  1122. }
  1123. return styles;
  1124. }
  1125. function insertStyleElement (options, style) {
  1126. var target = getElement(options.insertInto)
  1127. if (!target) {
  1128. throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");
  1129. }
  1130. var lastStyleElementInsertedAtTop = stylesInsertedAtTop[stylesInsertedAtTop.length - 1];
  1131. if (options.insertAt === "top") {
  1132. if (!lastStyleElementInsertedAtTop) {
  1133. target.insertBefore(style, target.firstChild);
  1134. } else if (lastStyleElementInsertedAtTop.nextSibling) {
  1135. target.insertBefore(style, lastStyleElementInsertedAtTop.nextSibling);
  1136. } else {
  1137. target.appendChild(style);
  1138. }
  1139. stylesInsertedAtTop.push(style);
  1140. } else if (options.insertAt === "bottom") {
  1141. target.appendChild(style);
  1142. } else if (typeof options.insertAt === "object" && options.insertAt.before) {
  1143. var nextSibling = getElement(options.insertAt.before, target);
  1144. target.insertBefore(style, nextSibling);
  1145. } else {
  1146. 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");
  1147. }
  1148. }
  1149. function removeStyleElement (style) {
  1150. if (style.parentNode === null) return false;
  1151. style.parentNode.removeChild(style);
  1152. var idx = stylesInsertedAtTop.indexOf(style);
  1153. if(idx >= 0) {
  1154. stylesInsertedAtTop.splice(idx, 1);
  1155. }
  1156. }
  1157. function createStyleElement (options) {
  1158. var style = document.createElement("style");
  1159. if(options.attrs.type === undefined) {
  1160. options.attrs.type = "text/css";
  1161. }
  1162. if(options.attrs.nonce === undefined) {
  1163. var nonce = getNonce();
  1164. if (nonce) {
  1165. options.attrs.nonce = nonce;
  1166. }
  1167. }
  1168. addAttrs(style, options.attrs);
  1169. insertStyleElement(options, style);
  1170. return style;
  1171. }
  1172. function createLinkElement (options) {
  1173. var link = document.createElement("link");
  1174. if(options.attrs.type === undefined) {
  1175. options.attrs.type = "text/css";
  1176. }
  1177. options.attrs.rel = "stylesheet";
  1178. addAttrs(link, options.attrs);
  1179. insertStyleElement(options, link);
  1180. return link;
  1181. }
  1182. function addAttrs (el, attrs) {
  1183. Object.keys(attrs).forEach(function (key) {
  1184. el.setAttribute(key, attrs[key]);
  1185. });
  1186. }
  1187. function getNonce() {
  1188. if (false) {}
  1189. return __webpack_require__.nc;
  1190. }
  1191. function addStyle (obj, options) {
  1192. var style, update, remove, result;
  1193. // If a transform function was defined, run it on the css
  1194. if (options.transform && obj.css) {
  1195. result = typeof options.transform === 'function'
  1196. ? options.transform(obj.css)
  1197. : options.transform.default(obj.css);
  1198. if (result) {
  1199. // If transform returns a value, use that instead of the original css.
  1200. // This allows running runtime transformations on the css.
  1201. obj.css = result;
  1202. } else {
  1203. // If the transform function returns a falsy value, don't add this css.
  1204. // This allows conditional loading of css
  1205. return function() {
  1206. // noop
  1207. };
  1208. }
  1209. }
  1210. if (options.singleton) {
  1211. var styleIndex = singletonCounter++;
  1212. style = singleton || (singleton = createStyleElement(options));
  1213. update = applyToSingletonTag.bind(null, style, styleIndex, false);
  1214. remove = applyToSingletonTag.bind(null, style, styleIndex, true);
  1215. } else if (
  1216. obj.sourceMap &&
  1217. typeof URL === "function" &&
  1218. typeof URL.createObjectURL === "function" &&
  1219. typeof URL.revokeObjectURL === "function" &&
  1220. typeof Blob === "function" &&
  1221. typeof btoa === "function"
  1222. ) {
  1223. style = createLinkElement(options);
  1224. update = updateLink.bind(null, style, options);
  1225. remove = function () {
  1226. removeStyleElement(style);
  1227. if(style.href) URL.revokeObjectURL(style.href);
  1228. };
  1229. } else {
  1230. style = createStyleElement(options);
  1231. update = applyToTag.bind(null, style);
  1232. remove = function () {
  1233. removeStyleElement(style);
  1234. };
  1235. }
  1236. update(obj);
  1237. return function updateStyle (newObj) {
  1238. if (newObj) {
  1239. if (
  1240. newObj.css === obj.css &&
  1241. newObj.media === obj.media &&
  1242. newObj.sourceMap === obj.sourceMap
  1243. ) {
  1244. return;
  1245. }
  1246. update(obj = newObj);
  1247. } else {
  1248. remove();
  1249. }
  1250. };
  1251. }
  1252. var replaceText = (function () {
  1253. var textStore = [];
  1254. return function (index, replacement) {
  1255. textStore[index] = replacement;
  1256. return textStore.filter(Boolean).join('\n');
  1257. };
  1258. })();
  1259. function applyToSingletonTag (style, index, remove, obj) {
  1260. var css = remove ? "" : obj.css;
  1261. if (style.styleSheet) {
  1262. style.styleSheet.cssText = replaceText(index, css);
  1263. } else {
  1264. var cssNode = document.createTextNode(css);
  1265. var childNodes = style.childNodes;
  1266. if (childNodes[index]) style.removeChild(childNodes[index]);
  1267. if (childNodes.length) {
  1268. style.insertBefore(cssNode, childNodes[index]);
  1269. } else {
  1270. style.appendChild(cssNode);
  1271. }
  1272. }
  1273. }
  1274. function applyToTag (style, obj) {
  1275. var css = obj.css;
  1276. var media = obj.media;
  1277. if(media) {
  1278. style.setAttribute("media", media)
  1279. }
  1280. if(style.styleSheet) {
  1281. style.styleSheet.cssText = css;
  1282. } else {
  1283. while(style.firstChild) {
  1284. style.removeChild(style.firstChild);
  1285. }
  1286. style.appendChild(document.createTextNode(css));
  1287. }
  1288. }
  1289. function updateLink (link, options, obj) {
  1290. var css = obj.css;
  1291. var sourceMap = obj.sourceMap;
  1292. /*
  1293. If convertToAbsoluteUrls isn't defined, but sourcemaps are enabled
  1294. and there is no publicPath defined then lets turn convertToAbsoluteUrls
  1295. on by default. Otherwise default to the convertToAbsoluteUrls option
  1296. directly
  1297. */
  1298. var autoFixUrls = options.convertToAbsoluteUrls === undefined && sourceMap;
  1299. if (options.convertToAbsoluteUrls || autoFixUrls) {
  1300. css = fixUrls(css);
  1301. }
  1302. if (sourceMap) {
  1303. // http://stackoverflow.com/a/26603875
  1304. css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */";
  1305. }
  1306. var blob = new Blob([css], { type: "text/css" });
  1307. var oldSrc = link.href;
  1308. link.href = URL.createObjectURL(blob);
  1309. if(oldSrc) URL.revokeObjectURL(oldSrc);
  1310. }
  1311. /***/ }),
  1312. /***/ 60:
  1313. /***/ (function(module, exports, __webpack_require__) {
  1314. "use strict";
  1315. exports.__esModule = true;
  1316. exports.BindEventMixin = BindEventMixin;
  1317. var _event = __webpack_require__(30);
  1318. /**
  1319. * Bind event when mounted or activated
  1320. */
  1321. var uid = 0;
  1322. function BindEventMixin(handler) {
  1323. var key = "binded_" + uid++;
  1324. function bind() {
  1325. if (!this[key]) {
  1326. handler.call(this, _event.on, true);
  1327. this[key] = true;
  1328. }
  1329. }
  1330. function unbind() {
  1331. if (this[key]) {
  1332. handler.call(this, _event.off, false);
  1333. this[key] = false;
  1334. }
  1335. }
  1336. return {
  1337. mounted: bind,
  1338. activated: bind,
  1339. deactivated: unbind,
  1340. beforeDestroy: unbind
  1341. };
  1342. }
  1343. /***/ }),
  1344. /***/ 9:
  1345. /***/ (function(module, exports, __webpack_require__) {
  1346. "use strict";
  1347. exports.__esModule = true;
  1348. exports.camelize = camelize;
  1349. exports.padZero = padZero;
  1350. var camelizeRE = /-(\w)/g;
  1351. function camelize(str) {
  1352. return str.replace(camelizeRE, function (_, c) {
  1353. return c.toUpperCase();
  1354. });
  1355. }
  1356. function padZero(num, targetLength) {
  1357. if (targetLength === void 0) {
  1358. targetLength = 2;
  1359. }
  1360. var str = num + '';
  1361. while (str.length < targetLength) {
  1362. str = '0' + str;
  1363. }
  1364. return str;
  1365. }
  1366. /***/ }),
  1367. /***/ 94:
  1368. /***/ (function(module, exports, __webpack_require__) {
  1369. "use strict";
  1370. exports.__esModule = true;
  1371. exports.isHidden = isHidden;
  1372. function isHidden(el) {
  1373. var style = window.getComputedStyle(el);
  1374. var hidden = style.display === 'none'; // offsetParent returns null in the following situations:
  1375. // 1. The element or its parent element has the display property set to none.
  1376. // 2. The element has the position property set to fixed
  1377. var parentHidden = el.offsetParent === null && style.position !== 'fixed';
  1378. return hidden || parentHidden;
  1379. }
  1380. /***/ })
  1381. /******/ });