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

1707 lines
47 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 = 453);
  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. /***/ 19:
  255. /***/ (function(module, exports, __webpack_require__) {
  256. "use strict";
  257. exports.__esModule = true;
  258. exports.isNumeric = isNumeric;
  259. exports.isNaN = isNaN;
  260. function isNumeric(val) {
  261. return /^\d+(\.\d+)?$/.test(val);
  262. }
  263. function isNaN(val) {
  264. if (Number.isNaN) {
  265. return Number.isNaN(val);
  266. } // eslint-disable-next-line no-self-compare
  267. return val !== val;
  268. }
  269. /***/ }),
  270. /***/ 20:
  271. /***/ (function(module, exports, __webpack_require__) {
  272. "use strict";
  273. exports.__esModule = true;
  274. exports.addUnit = addUnit;
  275. exports.unitToPx = unitToPx;
  276. var _ = __webpack_require__(0);
  277. var _number = __webpack_require__(19);
  278. function addUnit(value) {
  279. if (!(0, _.isDef)(value)) {
  280. return undefined;
  281. }
  282. value = String(value);
  283. return (0, _number.isNumeric)(value) ? value + "px" : value;
  284. } // cache
  285. var rootFontSize;
  286. function getRootFontSize() {
  287. if (!rootFontSize) {
  288. var doc = document.documentElement;
  289. var fontSize = doc.style.fontSize || window.getComputedStyle(doc).fontSize;
  290. rootFontSize = parseFloat(fontSize);
  291. }
  292. return rootFontSize;
  293. }
  294. function convertRem(value) {
  295. value = value.replace(/rem/g, '');
  296. return +value * getRootFontSize();
  297. }
  298. function convertVw(value) {
  299. value = value.replace(/vw/g, '');
  300. return +value * window.innerWidth / 100;
  301. }
  302. function convertVh(value) {
  303. value = value.replace(/vh/g, '');
  304. return +value * window.innerHeight / 100;
  305. }
  306. function unitToPx(value) {
  307. if (typeof value === 'number') {
  308. return value;
  309. }
  310. if (_.inBrowser) {
  311. if (value.indexOf('rem') !== -1) {
  312. return convertRem(value);
  313. }
  314. if (value.indexOf('vw') !== -1) {
  315. return convertVw(value);
  316. }
  317. if (value.indexOf('vh') !== -1) {
  318. return convertVh(value);
  319. }
  320. }
  321. return parseFloat(value);
  322. }
  323. /***/ }),
  324. /***/ 21:
  325. /***/ (function(module, exports, __webpack_require__) {
  326. "use strict";
  327. exports.__esModule = true;
  328. exports.deepAssign = deepAssign;
  329. var _ = __webpack_require__(0);
  330. var hasOwnProperty = Object.prototype.hasOwnProperty;
  331. function assignKey(to, from, key) {
  332. var val = from[key];
  333. if (!(0, _.isDef)(val)) {
  334. return;
  335. }
  336. if (!hasOwnProperty.call(to, key) || !(0, _.isObject)(val)) {
  337. to[key] = val;
  338. } else {
  339. // eslint-disable-next-line @typescript-eslint/no-use-before-define
  340. to[key] = deepAssign(Object(to[key]), from[key]);
  341. }
  342. }
  343. function deepAssign(to, from) {
  344. Object.keys(from).forEach(function (key) {
  345. assignKey(to, from, key);
  346. });
  347. return to;
  348. }
  349. /***/ }),
  350. /***/ 22:
  351. /***/ (function(module, exports, __webpack_require__) {
  352. var content = __webpack_require__(23);
  353. if(typeof content === 'string') content = [[module.i, content, '']];
  354. var transform;
  355. var insertInto;
  356. var options = {"hmr":true}
  357. options.transform = transform
  358. options.insertInto = undefined;
  359. var update = __webpack_require__(6)(content, options);
  360. if(content.locals) module.exports = content.locals;
  361. if(false) {}
  362. /***/ }),
  363. /***/ 23:
  364. /***/ (function(module, exports, __webpack_require__) {
  365. exports = module.exports = __webpack_require__(5)(false);
  366. // Module
  367. 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
  368. /***/ }),
  369. /***/ 232:
  370. /***/ (function(module, exports, __webpack_require__) {
  371. "use strict";
  372. var _interopRequireDefault = __webpack_require__(1);
  373. exports.__esModule = true;
  374. exports.default = void 0;
  375. var _utils = __webpack_require__(0);
  376. var _Network = _interopRequireDefault(__webpack_require__(457));
  377. var _createNamespace = (0, _utils.createNamespace)('empty'),
  378. createComponent = _createNamespace[0],
  379. bem = _createNamespace[1];
  380. var PRESETS = ['error', 'search', 'default'];
  381. var _default = createComponent({
  382. props: {
  383. imageSize: [Number, String],
  384. description: String,
  385. image: {
  386. type: String,
  387. default: 'default'
  388. }
  389. },
  390. methods: {
  391. genImageContent: function genImageContent() {
  392. var h = this.$createElement;
  393. var slots = this.slots('image');
  394. if (slots) {
  395. return slots;
  396. }
  397. if (this.image === 'network') {
  398. return h(_Network.default);
  399. }
  400. var image = this.image;
  401. if (PRESETS.indexOf(image) !== -1) {
  402. image = "https://img.yzcdn.cn/vant/empty-image-" + image + ".png";
  403. }
  404. return h("img", {
  405. "attrs": {
  406. "src": image
  407. }
  408. });
  409. },
  410. genImage: function genImage() {
  411. var h = this.$createElement;
  412. var imageStyle = {
  413. width: (0, _utils.addUnit)(this.imageSize),
  414. height: (0, _utils.addUnit)(this.imageSize)
  415. };
  416. return h("div", {
  417. "class": bem('image'),
  418. "style": imageStyle
  419. }, [this.genImageContent()]);
  420. },
  421. genDescription: function genDescription() {
  422. var h = this.$createElement;
  423. var description = this.slots('description') || this.description;
  424. if (description) {
  425. return h("p", {
  426. "class": bem('description')
  427. }, [description]);
  428. }
  429. },
  430. genBottom: function genBottom() {
  431. var h = this.$createElement;
  432. var slot = this.slots();
  433. if (slot) {
  434. return h("div", {
  435. "class": bem('bottom')
  436. }, [slot]);
  437. }
  438. }
  439. },
  440. render: function render() {
  441. var h = arguments[0];
  442. return h("div", {
  443. "class": bem()
  444. }, [this.genImage(), this.genDescription(), this.genBottom()]);
  445. }
  446. });
  447. exports.default = _default;
  448. /***/ }),
  449. /***/ 24:
  450. /***/ (function(module, exports, __webpack_require__) {
  451. "use strict";
  452. exports.__esModule = true;
  453. exports.createNamespace = createNamespace;
  454. var _bem = __webpack_require__(25);
  455. var _component = __webpack_require__(26);
  456. var _i18n = __webpack_require__(29);
  457. function createNamespace(name) {
  458. name = 'van-' + name;
  459. return [(0, _component.createComponent)(name), (0, _bem.createBEM)(name), (0, _i18n.createI18N)(name)];
  460. }
  461. /***/ }),
  462. /***/ 25:
  463. /***/ (function(module, exports, __webpack_require__) {
  464. "use strict";
  465. exports.__esModule = true;
  466. exports.createBEM = createBEM;
  467. /**
  468. * bem helper
  469. * b() // 'button'
  470. * b('text') // 'button__text'
  471. * b({ disabled }) // 'button button--disabled'
  472. * b('text', { disabled }) // 'button__text button__text--disabled'
  473. * b(['disabled', 'primary']) // 'button button--disabled button--primary'
  474. */
  475. function gen(name, mods) {
  476. if (!mods) {
  477. return '';
  478. }
  479. if (typeof mods === 'string') {
  480. return " " + name + "--" + mods;
  481. }
  482. if (Array.isArray(mods)) {
  483. return mods.reduce(function (ret, item) {
  484. return ret + gen(name, item);
  485. }, '');
  486. }
  487. return Object.keys(mods).reduce(function (ret, key) {
  488. return ret + (mods[key] ? gen(name, key) : '');
  489. }, '');
  490. }
  491. function createBEM(name) {
  492. return function (el, mods) {
  493. if (el && typeof el !== 'string') {
  494. mods = el;
  495. el = '';
  496. }
  497. el = el ? name + "__" + el : name;
  498. return "" + el + gen(el, mods);
  499. };
  500. }
  501. /***/ }),
  502. /***/ 26:
  503. /***/ (function(module, exports, __webpack_require__) {
  504. "use strict";
  505. var _interopRequireDefault = __webpack_require__(1);
  506. exports.__esModule = true;
  507. exports.unifySlots = unifySlots;
  508. exports.createComponent = createComponent;
  509. __webpack_require__(11);
  510. var _ = __webpack_require__(0);
  511. var _string = __webpack_require__(9);
  512. var _slots = __webpack_require__(28);
  513. var _vue = _interopRequireDefault(__webpack_require__(4));
  514. /**
  515. * Create a basic component with common options
  516. */
  517. function install(Vue) {
  518. var name = this.name;
  519. Vue.component(name, this);
  520. Vue.component((0, _string.camelize)("-" + name), this);
  521. } // unify slots & scopedSlots
  522. function unifySlots(context) {
  523. // use data.scopedSlots in lower Vue version
  524. var scopedSlots = context.scopedSlots || context.data.scopedSlots || {};
  525. var slots = context.slots();
  526. Object.keys(slots).forEach(function (key) {
  527. if (!scopedSlots[key]) {
  528. scopedSlots[key] = function () {
  529. return slots[key];
  530. };
  531. }
  532. });
  533. return scopedSlots;
  534. } // should be removed after Vue 3
  535. function transformFunctionComponent(pure) {
  536. return {
  537. functional: true,
  538. props: pure.props,
  539. model: pure.model,
  540. render: function render(h, context) {
  541. return pure(h, context.props, unifySlots(context), context);
  542. }
  543. };
  544. }
  545. function createComponent(name) {
  546. return function (sfc) {
  547. if ((0, _.isFunction)(sfc)) {
  548. sfc = transformFunctionComponent(sfc);
  549. }
  550. if (!sfc.functional) {
  551. sfc.mixins = sfc.mixins || [];
  552. sfc.mixins.push(_slots.SlotsMixin);
  553. }
  554. sfc.name = name;
  555. sfc.install = install;
  556. return sfc;
  557. };
  558. }
  559. /***/ }),
  560. /***/ 27:
  561. /***/ (function(module, exports, __webpack_require__) {
  562. "use strict";
  563. exports.__esModule = true;
  564. exports.default = void 0;
  565. var _default = {
  566. name: '姓名',
  567. tel: '电话',
  568. save: '保存',
  569. confirm: '确认',
  570. cancel: '取消',
  571. delete: '删除',
  572. complete: '完成',
  573. loading: '加载中...',
  574. telEmpty: '请填写电话',
  575. nameEmpty: '请填写姓名',
  576. nameInvalid: '请输入正确的姓名',
  577. confirmDelete: '确定要删除吗',
  578. telInvalid: '请输入正确的手机号',
  579. vanCalendar: {
  580. end: '结束',
  581. start: '开始',
  582. title: '日期选择',
  583. confirm: '确定',
  584. startEnd: '开始/结束',
  585. weekdays: ['日', '一', '二', '三', '四', '五', '六'],
  586. monthTitle: function monthTitle(year, month) {
  587. return year + "\u5E74" + month + "\u6708";
  588. },
  589. rangePrompt: function rangePrompt(maxRange) {
  590. return "\u9009\u62E9\u5929\u6570\u4E0D\u80FD\u8D85\u8FC7 " + maxRange + " \u5929";
  591. }
  592. },
  593. vanCascader: {
  594. select: '请选择'
  595. },
  596. vanContactCard: {
  597. addText: '添加联系人'
  598. },
  599. vanContactList: {
  600. addText: '新建联系人'
  601. },
  602. vanPagination: {
  603. prev: '上一页',
  604. next: '下一页'
  605. },
  606. vanPullRefresh: {
  607. pulling: '下拉即可刷新...',
  608. loosing: '释放即可刷新...'
  609. },
  610. vanSubmitBar: {
  611. label: '合计:'
  612. },
  613. vanCoupon: {
  614. unlimited: '无使用门槛',
  615. discount: function discount(_discount) {
  616. return _discount + "\u6298";
  617. },
  618. condition: function condition(_condition) {
  619. return "\u6EE1" + _condition + "\u5143\u53EF\u7528";
  620. }
  621. },
  622. vanCouponCell: {
  623. title: '优惠券',
  624. tips: '暂无可用',
  625. count: function count(_count) {
  626. return _count + "\u5F20\u53EF\u7528";
  627. }
  628. },
  629. vanCouponList: {
  630. empty: '暂无优惠券',
  631. exchange: '兑换',
  632. close: '不使用优惠券',
  633. enable: '可用',
  634. disabled: '不可用',
  635. placeholder: '请输入优惠码'
  636. },
  637. vanAddressEdit: {
  638. area: '地区',
  639. postal: '邮政编码',
  640. areaEmpty: '请选择地区',
  641. addressEmpty: '请填写详细地址',
  642. postalEmpty: '邮政编码格式不正确',
  643. defaultAddress: '设为默认收货地址',
  644. telPlaceholder: '收货人手机号',
  645. namePlaceholder: '收货人姓名',
  646. areaPlaceholder: '选择省 / 市 / 区'
  647. },
  648. vanAddressEditDetail: {
  649. label: '详细地址',
  650. placeholder: '街道门牌、楼层房间号等信息'
  651. },
  652. vanAddressList: {
  653. add: '新增地址'
  654. }
  655. };
  656. exports.default = _default;
  657. /***/ }),
  658. /***/ 28:
  659. /***/ (function(module, exports, __webpack_require__) {
  660. "use strict";
  661. exports.__esModule = true;
  662. exports.SlotsMixin = void 0;
  663. /**
  664. * Use scopedSlots in Vue 2.6+
  665. * downgrade to slots in lower version
  666. */
  667. var SlotsMixin = {
  668. methods: {
  669. slots: function slots(name, props) {
  670. if (name === void 0) {
  671. name = 'default';
  672. }
  673. var $slots = this.$slots,
  674. $scopedSlots = this.$scopedSlots;
  675. var scopedSlot = $scopedSlots[name];
  676. if (scopedSlot) {
  677. return scopedSlot(props);
  678. }
  679. return $slots[name];
  680. }
  681. }
  682. };
  683. exports.SlotsMixin = SlotsMixin;
  684. /***/ }),
  685. /***/ 29:
  686. /***/ (function(module, exports, __webpack_require__) {
  687. "use strict";
  688. var _interopRequireDefault = __webpack_require__(1);
  689. exports.__esModule = true;
  690. exports.createI18N = createI18N;
  691. var _ = __webpack_require__(0);
  692. var _string = __webpack_require__(9);
  693. var _locale = _interopRequireDefault(__webpack_require__(11));
  694. function createI18N(name) {
  695. var prefix = (0, _string.camelize)(name) + '.';
  696. return function (path) {
  697. var messages = _locale.default.messages();
  698. var message = (0, _.get)(messages, prefix + path) || (0, _.get)(messages, path);
  699. for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  700. args[_key - 1] = arguments[_key];
  701. }
  702. return (0, _.isFunction)(message) ? message.apply(void 0, args) : message;
  703. };
  704. }
  705. /***/ }),
  706. /***/ 4:
  707. /***/ (function(module, exports) {
  708. module.exports = require("vue");
  709. /***/ }),
  710. /***/ 453:
  711. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  712. "use strict";
  713. __webpack_require__.r(__webpack_exports__);
  714. /* harmony import */ var _tisdesign_m_lib_empty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(232);
  715. /* harmony import */ var _tisdesign_m_lib_empty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_tisdesign_m_lib_empty__WEBPACK_IMPORTED_MODULE_0__);
  716. /* harmony import */ var _tisdesign_m_lib_empty_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(454);
  717. /* harmony import */ var _tisdesign_m_lib_empty_style__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_tisdesign_m_lib_empty_style__WEBPACK_IMPORTED_MODULE_1__);
  718. _tisdesign_m_lib_empty__WEBPACK_IMPORTED_MODULE_0___default.a.name = 'm-empty';
  719. /* harmony default export */ __webpack_exports__["default"] = (_tisdesign_m_lib_empty__WEBPACK_IMPORTED_MODULE_0___default.a);
  720. /***/ }),
  721. /***/ 454:
  722. /***/ (function(module, exports, __webpack_require__) {
  723. __webpack_require__(22);
  724. __webpack_require__(455);
  725. /***/ }),
  726. /***/ 455:
  727. /***/ (function(module, exports, __webpack_require__) {
  728. var content = __webpack_require__(456);
  729. if(typeof content === 'string') content = [[module.i, content, '']];
  730. var transform;
  731. var insertInto;
  732. var options = {"hmr":true}
  733. options.transform = transform
  734. options.insertInto = undefined;
  735. var update = __webpack_require__(6)(content, options);
  736. if(content.locals) module.exports = content.locals;
  737. if(false) {}
  738. /***/ }),
  739. /***/ 456:
  740. /***/ (function(module, exports, __webpack_require__) {
  741. exports = module.exports = __webpack_require__(5)(false);
  742. // Module
  743. exports.push([module.i, ".van-empty{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;box-sizing:border-box;padding:32px 0}.van-empty__image{width:160px;height:160px}.van-empty__image img{width:100%;height:100%}.van-empty__description{margin-top:16px;padding:0 60px;color:#969799;font-size:14px;line-height:20px}.van-empty__bottom{margin-top:24px}", ""]);
  744. /***/ }),
  745. /***/ 457:
  746. /***/ (function(module, exports, __webpack_require__) {
  747. "use strict";
  748. exports.__esModule = true;
  749. exports.default = void 0;
  750. var _default = {
  751. render: function render() {
  752. var h = arguments[0];
  753. var genStop = function genStop(color, offset, opacity) {
  754. return h("stop", {
  755. "attrs": {
  756. "stop-color": color,
  757. "offset": offset + "%",
  758. "stop-opacity": opacity
  759. }
  760. });
  761. };
  762. return h("svg", {
  763. "attrs": {
  764. "viewBox": "0 0 160 160",
  765. "xmlns": "http://www.w3.org/2000/svg"
  766. }
  767. }, [h("defs", [h("linearGradient", {
  768. "attrs": {
  769. "id": "c",
  770. "x1": "64.022%",
  771. "y1": "100%",
  772. "x2": "64.022%",
  773. "y2": "0%"
  774. }
  775. }, [genStop('#FFF', 0, 0.5), genStop('#F2F3F5', 100)]), h("linearGradient", {
  776. "attrs": {
  777. "id": "d",
  778. "x1": "64.022%",
  779. "y1": "96.956%",
  780. "x2": "64.022%",
  781. "y2": "0%"
  782. }
  783. }, [genStop('#F2F3F5', 0, 0.3), genStop('#F2F3F5', 100)]), h("linearGradient", {
  784. "attrs": {
  785. "id": "h",
  786. "x1": "50%",
  787. "y1": "0%",
  788. "x2": "50%",
  789. "y2": "84.459%"
  790. }
  791. }, [genStop('#EBEDF0', 0), genStop('#DCDEE0', 100, 0)]), h("linearGradient", {
  792. "attrs": {
  793. "id": "i",
  794. "x1": "100%",
  795. "y1": "0%",
  796. "x2": "100%",
  797. "y2": "100%"
  798. }
  799. }, [genStop('#EAEDF0', 0), genStop('#DCDEE0', 100)]), h("linearGradient", {
  800. "attrs": {
  801. "id": "k",
  802. "x1": "100%",
  803. "y1": "100%",
  804. "x2": "100%",
  805. "y2": "0%"
  806. }
  807. }, [genStop('#EAEDF0', 0), genStop('#DCDEE0', 100)]), h("linearGradient", {
  808. "attrs": {
  809. "id": "m",
  810. "x1": "0%",
  811. "y1": "43.982%",
  812. "x2": "100%",
  813. "y2": "54.703%"
  814. }
  815. }, [genStop('#EAEDF0', 0), genStop('#DCDEE0', 100)]), h("linearGradient", {
  816. "attrs": {
  817. "id": "n",
  818. "x1": "94.535%",
  819. "y1": "43.837%",
  820. "x2": "5.465%",
  821. "y2": "54.948%"
  822. }
  823. }, [genStop('#EAEDF0', 0), genStop('#DCDEE0', 100)]), h("radialGradient", {
  824. "attrs": {
  825. "id": "g",
  826. "cx": "50%",
  827. "cy": "0%",
  828. "fx": "50%",
  829. "fy": "0%",
  830. "r": "100%",
  831. "gradientTransform": "matrix(0 1 -.54835 0 .5 -.5)"
  832. }
  833. }, [genStop('#EBEDF0', 0), genStop('#FFF', 100, 0)])]), h("g", {
  834. "attrs": {
  835. "fill": "none",
  836. "fill-rule": "evenodd"
  837. }
  838. }, [h("g", {
  839. "attrs": {
  840. "opacity": ".8"
  841. }
  842. }, [h("path", {
  843. "attrs": {
  844. "d": "M0 124V46h20v20h14v58H0z",
  845. "fill": "url(#c)",
  846. "transform": "matrix(-1 0 0 1 36 7)"
  847. }
  848. }), h("path", {
  849. "attrs": {
  850. "d": "M40.5 5a8.504 8.504 0 018.13 6.009l.12-.005L49 11a8 8 0 11-1 15.938V27H34v-.174a6.5 6.5 0 11-1.985-12.808A8.5 8.5 0 0140.5 5z",
  851. "fill": "url(#d)",
  852. "transform": "translate(2 7)"
  853. }
  854. }), h("path", {
  855. "attrs": {
  856. "d": "M96.016 0a4.108 4.108 0 013.934 2.868l.179-.004c2.138 0 3.871 1.71 3.871 3.818 0 2.109-1.733 3.818-3.871 3.818-.164 0-.325-.01-.484-.03v.03h-6.774v-.083a3.196 3.196 0 01-.726.083C90.408 10.5 89 9.111 89 7.398c0-1.636 1.284-2.976 2.911-3.094a3.555 3.555 0 01-.008-.247c0-2.24 1.842-4.057 4.113-4.057z",
  857. "fill": "url(#d)",
  858. "transform": "translate(2 7)"
  859. }
  860. }), h("path", {
  861. "attrs": {
  862. "d": "M121 8h22.231v14H152v77.37h-31V8z",
  863. "fill": "url(#c)",
  864. "transform": "translate(2 7)"
  865. }
  866. })]), h("path", {
  867. "attrs": {
  868. "fill": "url(#g)",
  869. "d": "M0 139h160v21H0z"
  870. }
  871. }), h("path", {
  872. "attrs": {
  873. "d": "M37 18a7 7 0 013 13.326v26.742c0 1.23-.997 2.227-2.227 2.227h-1.546A2.227 2.227 0 0134 58.068V31.326A7 7 0 0137 18z",
  874. "fill": "url(#h)",
  875. "fill-rule": "nonzero",
  876. "transform": "translate(43 36)"
  877. }
  878. }), h("g", {
  879. "attrs": {
  880. "opacity": ".6",
  881. "stroke-linecap": "round",
  882. "stroke-width": "7"
  883. }
  884. }, [h("path", {
  885. "attrs": {
  886. "d": "M20.875 11.136a18.868 18.868 0 00-5.284 13.121c0 5.094 2.012 9.718 5.284 13.12",
  887. "stroke": "url(#i)",
  888. "transform": "translate(43 36)"
  889. }
  890. }), h("path", {
  891. "attrs": {
  892. "d": "M9.849 0C3.756 6.225 0 14.747 0 24.146c0 9.398 3.756 17.92 9.849 24.145",
  893. "stroke": "url(#i)",
  894. "transform": "translate(43 36)"
  895. }
  896. }), h("path", {
  897. "attrs": {
  898. "d": "M57.625 11.136a18.868 18.868 0 00-5.284 13.121c0 5.094 2.012 9.718 5.284 13.12",
  899. "stroke": "url(#k)",
  900. "transform": "rotate(-180 76.483 42.257)"
  901. }
  902. }), h("path", {
  903. "attrs": {
  904. "d": "M73.216 0c-6.093 6.225-9.849 14.747-9.849 24.146 0 9.398 3.756 17.92 9.849 24.145",
  905. "stroke": "url(#k)",
  906. "transform": "rotate(-180 89.791 42.146)"
  907. }
  908. })]), h("g", {
  909. "attrs": {
  910. "transform": "translate(31 105)",
  911. "fill-rule": "nonzero"
  912. }
  913. }, [h("rect", {
  914. "attrs": {
  915. "fill": "url(#m)",
  916. "width": "98",
  917. "height": "34",
  918. "rx": "2"
  919. }
  920. }), h("rect", {
  921. "attrs": {
  922. "fill": "#FFF",
  923. "x": "9",
  924. "y": "8",
  925. "width": "80",
  926. "height": "18",
  927. "rx": "1.114"
  928. }
  929. }), h("rect", {
  930. "attrs": {
  931. "fill": "url(#n)",
  932. "x": "15",
  933. "y": "12",
  934. "width": "18",
  935. "height": "6",
  936. "rx": "1.114"
  937. }
  938. })])])]);
  939. }
  940. };
  941. exports.default = _default;
  942. /***/ }),
  943. /***/ 5:
  944. /***/ (function(module, exports, __webpack_require__) {
  945. "use strict";
  946. /*
  947. MIT License http://www.opensource.org/licenses/mit-license.php
  948. Author Tobias Koppers @sokra
  949. */
  950. // css base code, injected by the css-loader
  951. module.exports = function (useSourceMap) {
  952. var list = []; // return the list of modules as css string
  953. list.toString = function toString() {
  954. return this.map(function (item) {
  955. var content = cssWithMappingToString(item, useSourceMap);
  956. if (item[2]) {
  957. return '@media ' + item[2] + '{' + content + '}';
  958. } else {
  959. return content;
  960. }
  961. }).join('');
  962. }; // import a list of modules into the list
  963. list.i = function (modules, mediaQuery) {
  964. if (typeof modules === 'string') {
  965. modules = [[null, modules, '']];
  966. }
  967. var alreadyImportedModules = {};
  968. for (var i = 0; i < this.length; i++) {
  969. var id = this[i][0];
  970. if (id != null) {
  971. alreadyImportedModules[id] = true;
  972. }
  973. }
  974. for (i = 0; i < modules.length; i++) {
  975. var item = modules[i]; // skip already imported module
  976. // this implementation is not 100% perfect for weird media query combinations
  977. // when a module is imported multiple times with different media queries.
  978. // I hope this will never occur (Hey this way we have smaller bundles)
  979. if (item[0] == null || !alreadyImportedModules[item[0]]) {
  980. if (mediaQuery && !item[2]) {
  981. item[2] = mediaQuery;
  982. } else if (mediaQuery) {
  983. item[2] = '(' + item[2] + ') and (' + mediaQuery + ')';
  984. }
  985. list.push(item);
  986. }
  987. }
  988. };
  989. return list;
  990. };
  991. function cssWithMappingToString(item, useSourceMap) {
  992. var content = item[1] || '';
  993. var cssMapping = item[3];
  994. if (!cssMapping) {
  995. return content;
  996. }
  997. if (useSourceMap && typeof btoa === 'function') {
  998. var sourceMapping = toComment(cssMapping);
  999. var sourceURLs = cssMapping.sources.map(function (source) {
  1000. return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */';
  1001. });
  1002. return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
  1003. }
  1004. return [content].join('\n');
  1005. } // Adapted from convert-source-map (MIT)
  1006. function toComment(sourceMap) {
  1007. // eslint-disable-next-line no-undef
  1008. var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
  1009. var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
  1010. return '/*# ' + data + ' */';
  1011. }
  1012. /***/ }),
  1013. /***/ 6:
  1014. /***/ (function(module, exports, __webpack_require__) {
  1015. /*
  1016. MIT License http://www.opensource.org/licenses/mit-license.php
  1017. Author Tobias Koppers @sokra
  1018. */
  1019. var stylesInDom = {};
  1020. var memoize = function (fn) {
  1021. var memo;
  1022. return function () {
  1023. if (typeof memo === "undefined") memo = fn.apply(this, arguments);
  1024. return memo;
  1025. };
  1026. };
  1027. var isOldIE = memoize(function () {
  1028. // Test for IE <= 9 as proposed by Browserhacks
  1029. // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
  1030. // Tests for existence of standard globals is to allow style-loader
  1031. // to operate correctly into non-standard environments
  1032. // @see https://github.com/webpack-contrib/style-loader/issues/177
  1033. return window && document && document.all && !window.atob;
  1034. });
  1035. var getTarget = function (target, parent) {
  1036. if (parent){
  1037. return parent.querySelector(target);
  1038. }
  1039. return document.querySelector(target);
  1040. };
  1041. var getElement = (function (fn) {
  1042. var memo = {};
  1043. return function(target, parent) {
  1044. // If passing function in options, then use it for resolve "head" element.
  1045. // Useful for Shadow Root style i.e
  1046. // {
  1047. // insertInto: function () { return document.querySelector("#foo").shadowRoot }
  1048. // }
  1049. if (typeof target === 'function') {
  1050. return target();
  1051. }
  1052. if (typeof memo[target] === "undefined") {
  1053. var styleTarget = getTarget.call(this, target, parent);
  1054. // Special case to return head of iframe instead of iframe itself
  1055. if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
  1056. try {
  1057. // This will throw an exception if access to iframe is blocked
  1058. // due to cross-origin restrictions
  1059. styleTarget = styleTarget.contentDocument.head;
  1060. } catch(e) {
  1061. styleTarget = null;
  1062. }
  1063. }
  1064. memo[target] = styleTarget;
  1065. }
  1066. return memo[target]
  1067. };
  1068. })();
  1069. var singleton = null;
  1070. var singletonCounter = 0;
  1071. var stylesInsertedAtTop = [];
  1072. var fixUrls = __webpack_require__(12);
  1073. module.exports = function(list, options) {
  1074. if (typeof DEBUG !== "undefined" && DEBUG) {
  1075. if (typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment");
  1076. }
  1077. options = options || {};
  1078. options.attrs = typeof options.attrs === "object" ? options.attrs : {};
  1079. // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
  1080. // tags it will allow on a page
  1081. if (!options.singleton && typeof options.singleton !== "boolean") options.singleton = isOldIE();
  1082. // By default, add <style> tags to the <head> element
  1083. if (!options.insertInto) options.insertInto = "head";
  1084. // By default, add <style> tags to the bottom of the target
  1085. if (!options.insertAt) options.insertAt = "bottom";
  1086. var styles = listToStyles(list, options);
  1087. addStylesToDom(styles, options);
  1088. return function update (newList) {
  1089. var mayRemove = [];
  1090. for (var i = 0; i < styles.length; i++) {
  1091. var item = styles[i];
  1092. var domStyle = stylesInDom[item.id];
  1093. domStyle.refs--;
  1094. mayRemove.push(domStyle);
  1095. }
  1096. if(newList) {
  1097. var newStyles = listToStyles(newList, options);
  1098. addStylesToDom(newStyles, options);
  1099. }
  1100. for (var i = 0; i < mayRemove.length; i++) {
  1101. var domStyle = mayRemove[i];
  1102. if(domStyle.refs === 0) {
  1103. for (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j]();
  1104. delete stylesInDom[domStyle.id];
  1105. }
  1106. }
  1107. };
  1108. };
  1109. function addStylesToDom (styles, options) {
  1110. for (var i = 0; i < styles.length; i++) {
  1111. var item = styles[i];
  1112. var domStyle = stylesInDom[item.id];
  1113. if(domStyle) {
  1114. domStyle.refs++;
  1115. for(var j = 0; j < domStyle.parts.length; j++) {
  1116. domStyle.parts[j](item.parts[j]);
  1117. }
  1118. for(; j < item.parts.length; j++) {
  1119. domStyle.parts.push(addStyle(item.parts[j], options));
  1120. }
  1121. } else {
  1122. var parts = [];
  1123. for(var j = 0; j < item.parts.length; j++) {
  1124. parts.push(addStyle(item.parts[j], options));
  1125. }
  1126. stylesInDom[item.id] = {id: item.id, refs: 1, parts: parts};
  1127. }
  1128. }
  1129. }
  1130. function listToStyles (list, options) {
  1131. var styles = [];
  1132. var newStyles = {};
  1133. for (var i = 0; i < list.length; i++) {
  1134. var item = list[i];
  1135. var id = options.base ? item[0] + options.base : item[0];
  1136. var css = item[1];
  1137. var media = item[2];
  1138. var sourceMap = item[3];
  1139. var part = {css: css, media: media, sourceMap: sourceMap};
  1140. if(!newStyles[id]) styles.push(newStyles[id] = {id: id, parts: [part]});
  1141. else newStyles[id].parts.push(part);
  1142. }
  1143. return styles;
  1144. }
  1145. function insertStyleElement (options, style) {
  1146. var target = getElement(options.insertInto)
  1147. if (!target) {
  1148. throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");
  1149. }
  1150. var lastStyleElementInsertedAtTop = stylesInsertedAtTop[stylesInsertedAtTop.length - 1];
  1151. if (options.insertAt === "top") {
  1152. if (!lastStyleElementInsertedAtTop) {
  1153. target.insertBefore(style, target.firstChild);
  1154. } else if (lastStyleElementInsertedAtTop.nextSibling) {
  1155. target.insertBefore(style, lastStyleElementInsertedAtTop.nextSibling);
  1156. } else {
  1157. target.appendChild(style);
  1158. }
  1159. stylesInsertedAtTop.push(style);
  1160. } else if (options.insertAt === "bottom") {
  1161. target.appendChild(style);
  1162. } else if (typeof options.insertAt === "object" && options.insertAt.before) {
  1163. var nextSibling = getElement(options.insertAt.before, target);
  1164. target.insertBefore(style, nextSibling);
  1165. } else {
  1166. 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");
  1167. }
  1168. }
  1169. function removeStyleElement (style) {
  1170. if (style.parentNode === null) return false;
  1171. style.parentNode.removeChild(style);
  1172. var idx = stylesInsertedAtTop.indexOf(style);
  1173. if(idx >= 0) {
  1174. stylesInsertedAtTop.splice(idx, 1);
  1175. }
  1176. }
  1177. function createStyleElement (options) {
  1178. var style = document.createElement("style");
  1179. if(options.attrs.type === undefined) {
  1180. options.attrs.type = "text/css";
  1181. }
  1182. if(options.attrs.nonce === undefined) {
  1183. var nonce = getNonce();
  1184. if (nonce) {
  1185. options.attrs.nonce = nonce;
  1186. }
  1187. }
  1188. addAttrs(style, options.attrs);
  1189. insertStyleElement(options, style);
  1190. return style;
  1191. }
  1192. function createLinkElement (options) {
  1193. var link = document.createElement("link");
  1194. if(options.attrs.type === undefined) {
  1195. options.attrs.type = "text/css";
  1196. }
  1197. options.attrs.rel = "stylesheet";
  1198. addAttrs(link, options.attrs);
  1199. insertStyleElement(options, link);
  1200. return link;
  1201. }
  1202. function addAttrs (el, attrs) {
  1203. Object.keys(attrs).forEach(function (key) {
  1204. el.setAttribute(key, attrs[key]);
  1205. });
  1206. }
  1207. function getNonce() {
  1208. if (false) {}
  1209. return __webpack_require__.nc;
  1210. }
  1211. function addStyle (obj, options) {
  1212. var style, update, remove, result;
  1213. // If a transform function was defined, run it on the css
  1214. if (options.transform && obj.css) {
  1215. result = typeof options.transform === 'function'
  1216. ? options.transform(obj.css)
  1217. : options.transform.default(obj.css);
  1218. if (result) {
  1219. // If transform returns a value, use that instead of the original css.
  1220. // This allows running runtime transformations on the css.
  1221. obj.css = result;
  1222. } else {
  1223. // If the transform function returns a falsy value, don't add this css.
  1224. // This allows conditional loading of css
  1225. return function() {
  1226. // noop
  1227. };
  1228. }
  1229. }
  1230. if (options.singleton) {
  1231. var styleIndex = singletonCounter++;
  1232. style = singleton || (singleton = createStyleElement(options));
  1233. update = applyToSingletonTag.bind(null, style, styleIndex, false);
  1234. remove = applyToSingletonTag.bind(null, style, styleIndex, true);
  1235. } else if (
  1236. obj.sourceMap &&
  1237. typeof URL === "function" &&
  1238. typeof URL.createObjectURL === "function" &&
  1239. typeof URL.revokeObjectURL === "function" &&
  1240. typeof Blob === "function" &&
  1241. typeof btoa === "function"
  1242. ) {
  1243. style = createLinkElement(options);
  1244. update = updateLink.bind(null, style, options);
  1245. remove = function () {
  1246. removeStyleElement(style);
  1247. if(style.href) URL.revokeObjectURL(style.href);
  1248. };
  1249. } else {
  1250. style = createStyleElement(options);
  1251. update = applyToTag.bind(null, style);
  1252. remove = function () {
  1253. removeStyleElement(style);
  1254. };
  1255. }
  1256. update(obj);
  1257. return function updateStyle (newObj) {
  1258. if (newObj) {
  1259. if (
  1260. newObj.css === obj.css &&
  1261. newObj.media === obj.media &&
  1262. newObj.sourceMap === obj.sourceMap
  1263. ) {
  1264. return;
  1265. }
  1266. update(obj = newObj);
  1267. } else {
  1268. remove();
  1269. }
  1270. };
  1271. }
  1272. var replaceText = (function () {
  1273. var textStore = [];
  1274. return function (index, replacement) {
  1275. textStore[index] = replacement;
  1276. return textStore.filter(Boolean).join('\n');
  1277. };
  1278. })();
  1279. function applyToSingletonTag (style, index, remove, obj) {
  1280. var css = remove ? "" : obj.css;
  1281. if (style.styleSheet) {
  1282. style.styleSheet.cssText = replaceText(index, css);
  1283. } else {
  1284. var cssNode = document.createTextNode(css);
  1285. var childNodes = style.childNodes;
  1286. if (childNodes[index]) style.removeChild(childNodes[index]);
  1287. if (childNodes.length) {
  1288. style.insertBefore(cssNode, childNodes[index]);
  1289. } else {
  1290. style.appendChild(cssNode);
  1291. }
  1292. }
  1293. }
  1294. function applyToTag (style, obj) {
  1295. var css = obj.css;
  1296. var media = obj.media;
  1297. if(media) {
  1298. style.setAttribute("media", media)
  1299. }
  1300. if(style.styleSheet) {
  1301. style.styleSheet.cssText = css;
  1302. } else {
  1303. while(style.firstChild) {
  1304. style.removeChild(style.firstChild);
  1305. }
  1306. style.appendChild(document.createTextNode(css));
  1307. }
  1308. }
  1309. function updateLink (link, options, obj) {
  1310. var css = obj.css;
  1311. var sourceMap = obj.sourceMap;
  1312. /*
  1313. If convertToAbsoluteUrls isn't defined, but sourcemaps are enabled
  1314. and there is no publicPath defined then lets turn convertToAbsoluteUrls
  1315. on by default. Otherwise default to the convertToAbsoluteUrls option
  1316. directly
  1317. */
  1318. var autoFixUrls = options.convertToAbsoluteUrls === undefined && sourceMap;
  1319. if (options.convertToAbsoluteUrls || autoFixUrls) {
  1320. css = fixUrls(css);
  1321. }
  1322. if (sourceMap) {
  1323. // http://stackoverflow.com/a/26603875
  1324. css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */";
  1325. }
  1326. var blob = new Blob([css], { type: "text/css" });
  1327. var oldSrc = link.href;
  1328. link.href = URL.createObjectURL(blob);
  1329. if(oldSrc) URL.revokeObjectURL(oldSrc);
  1330. }
  1331. /***/ }),
  1332. /***/ 9:
  1333. /***/ (function(module, exports, __webpack_require__) {
  1334. "use strict";
  1335. exports.__esModule = true;
  1336. exports.camelize = camelize;
  1337. exports.padZero = padZero;
  1338. var camelizeRE = /-(\w)/g;
  1339. function camelize(str) {
  1340. return str.replace(camelizeRE, function (_, c) {
  1341. return c.toUpperCase();
  1342. });
  1343. }
  1344. function padZero(num, targetLength) {
  1345. if (targetLength === void 0) {
  1346. targetLength = 2;
  1347. }
  1348. var str = num + '';
  1349. while (str.length < targetLength) {
  1350. str = '0' + str;
  1351. }
  1352. return str;
  1353. }
  1354. /***/ })
  1355. /******/ });