UNPKG

115 kBJavaScriptView Raw
1module.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 = "";
82/******/
83/******/
84/******/ // Load entry module and return exports
85/******/ return __webpack_require__(__webpack_require__.s = "fb15");
86/******/ })
87/************************************************************************/
88/******/ ({
89
90/***/ "2638":
91/***/ (function(module, exports, __webpack_require__) {
92
93"use strict";
94function _extends(){return _extends=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},_extends.apply(this,arguments)}var normalMerge=["attrs","props","domProps"],toArrayMerge=["class","style","directives"],functionalMerge=["on","nativeOn"],mergeJsxProps=function(a){return a.reduce(function(c,a){for(var b in a)if(!c[b])c[b]=a[b];else if(-1!==normalMerge.indexOf(b))c[b]=_extends({},c[b],a[b]);else if(-1!==toArrayMerge.indexOf(b)){var d=c[b]instanceof Array?c[b]:[c[b]],e=a[b]instanceof Array?a[b]:[a[b]];c[b]=d.concat(e)}else if(-1!==functionalMerge.indexOf(b)){for(var f in a[b])if(c[b][f]){var g=c[b][f]instanceof Array?c[b][f]:[c[b][f]],h=a[b][f]instanceof Array?a[b][f]:[a[b][f]];c[b][f]=g.concat(h)}else c[b][f]=a[b][f];}else if("hook"==b)for(var i in a[b])c[b][i]=c[b][i]?mergeFn(c[b][i],a[b][i]):a[b][i];else c[b]=a[b];return c},{})},mergeFn=function(a,b){return function(){a&&a.apply(this,arguments),b&&b.apply(this,arguments)}};module.exports=mergeJsxProps;
95
96
97/***/ }),
98
99/***/ "4abb":
100/***/ (function(module, exports, __webpack_require__) {
101
102// extracted by mini-css-extract-plugin
103
104/***/ }),
105
106/***/ "4ed8":
107/***/ (function(module, exports, __webpack_require__) {
108
109// extracted by mini-css-extract-plugin
110
111/***/ }),
112
113/***/ "556c":
114/***/ (function(module, exports, __webpack_require__) {
115
116// extracted by mini-css-extract-plugin
117
118/***/ }),
119
120/***/ "65d9":
121/***/ (function(module, exports, __webpack_require__) {
122
123"use strict";
124/**
125 * vue-class-component v7.0.1
126 * (c) 2015-present Evan You
127 * @license MIT
128 */
129
130
131Object.defineProperty(exports, '__esModule', { value: true });
132
133function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
134
135var Vue = _interopDefault(__webpack_require__("8bbf"));
136
137// The rational behind the verbose Reflect-feature check below is the fact that there are polyfills
138// which add an implementation for Reflect.defineMetadata but not for Reflect.getOwnMetadataKeys.
139// Without this check consumers will encounter hard to track down runtime errors.
140var reflectionIsSupported = typeof Reflect !== 'undefined' && Reflect.defineMetadata && Reflect.getOwnMetadataKeys;
141function copyReflectionMetadata(to, from) {
142 forwardMetadata(to, from);
143 Object.getOwnPropertyNames(from.prototype).forEach(function (key) {
144 forwardMetadata(to.prototype, from.prototype, key);
145 });
146 Object.getOwnPropertyNames(from).forEach(function (key) {
147 forwardMetadata(to, from, key);
148 });
149}
150function forwardMetadata(to, from, propertyKey) {
151 var metaKeys = propertyKey
152 ? Reflect.getOwnMetadataKeys(from, propertyKey)
153 : Reflect.getOwnMetadataKeys(from);
154 metaKeys.forEach(function (metaKey) {
155 var metadata = propertyKey
156 ? Reflect.getOwnMetadata(metaKey, from, propertyKey)
157 : Reflect.getOwnMetadata(metaKey, from);
158 if (propertyKey) {
159 Reflect.defineMetadata(metaKey, metadata, to, propertyKey);
160 }
161 else {
162 Reflect.defineMetadata(metaKey, metadata, to);
163 }
164 });
165}
166
167var fakeArray = { __proto__: [] };
168var hasProto = fakeArray instanceof Array;
169function createDecorator(factory) {
170 return function (target, key, index) {
171 var Ctor = typeof target === 'function'
172 ? target
173 : target.constructor;
174 if (!Ctor.__decorators__) {
175 Ctor.__decorators__ = [];
176 }
177 if (typeof index !== 'number') {
178 index = undefined;
179 }
180 Ctor.__decorators__.push(function (options) { return factory(options, key, index); });
181 };
182}
183function mixins() {
184 var Ctors = [];
185 for (var _i = 0; _i < arguments.length; _i++) {
186 Ctors[_i] = arguments[_i];
187 }
188 return Vue.extend({ mixins: Ctors });
189}
190function isPrimitive(value) {
191 var type = typeof value;
192 return value == null || (type !== 'object' && type !== 'function');
193}
194function warn(message) {
195 if (typeof console !== 'undefined') {
196 console.warn('[vue-class-component] ' + message);
197 }
198}
199
200function collectDataFromConstructor(vm, Component) {
201 // override _init to prevent to init as Vue instance
202 var originalInit = Component.prototype._init;
203 Component.prototype._init = function () {
204 var _this = this;
205 // proxy to actual vm
206 var keys = Object.getOwnPropertyNames(vm);
207 // 2.2.0 compat (props are no longer exposed as self properties)
208 if (vm.$options.props) {
209 for (var key in vm.$options.props) {
210 if (!vm.hasOwnProperty(key)) {
211 keys.push(key);
212 }
213 }
214 }
215 keys.forEach(function (key) {
216 if (key.charAt(0) !== '_') {
217 Object.defineProperty(_this, key, {
218 get: function () { return vm[key]; },
219 set: function (value) { vm[key] = value; },
220 configurable: true
221 });
222 }
223 });
224 };
225 // should be acquired class property values
226 var data = new Component();
227 // restore original _init to avoid memory leak (#209)
228 Component.prototype._init = originalInit;
229 // create plain data object
230 var plainData = {};
231 Object.keys(data).forEach(function (key) {
232 if (data[key] !== undefined) {
233 plainData[key] = data[key];
234 }
235 });
236 if (false) {}
237 return plainData;
238}
239
240var $internalHooks = [
241 'data',
242 'beforeCreate',
243 'created',
244 'beforeMount',
245 'mounted',
246 'beforeDestroy',
247 'destroyed',
248 'beforeUpdate',
249 'updated',
250 'activated',
251 'deactivated',
252 'render',
253 'errorCaptured',
254 'serverPrefetch' // 2.6
255];
256function componentFactory(Component, options) {
257 if (options === void 0) { options = {}; }
258 options.name = options.name || Component._componentTag || Component.name;
259 // prototype props.
260 var proto = Component.prototype;
261 Object.getOwnPropertyNames(proto).forEach(function (key) {
262 if (key === 'constructor') {
263 return;
264 }
265 // hooks
266 if ($internalHooks.indexOf(key) > -1) {
267 options[key] = proto[key];
268 return;
269 }
270 var descriptor = Object.getOwnPropertyDescriptor(proto, key);
271 if (descriptor.value !== void 0) {
272 // methods
273 if (typeof descriptor.value === 'function') {
274 (options.methods || (options.methods = {}))[key] = descriptor.value;
275 }
276 else {
277 // typescript decorated data
278 (options.mixins || (options.mixins = [])).push({
279 data: function () {
280 var _a;
281 return _a = {}, _a[key] = descriptor.value, _a;
282 }
283 });
284 }
285 }
286 else if (descriptor.get || descriptor.set) {
287 // computed properties
288 (options.computed || (options.computed = {}))[key] = {
289 get: descriptor.get,
290 set: descriptor.set
291 };
292 }
293 });
294 (options.mixins || (options.mixins = [])).push({
295 data: function () {
296 return collectDataFromConstructor(this, Component);
297 }
298 });
299 // decorate options
300 var decorators = Component.__decorators__;
301 if (decorators) {
302 decorators.forEach(function (fn) { return fn(options); });
303 delete Component.__decorators__;
304 }
305 // find super
306 var superProto = Object.getPrototypeOf(Component.prototype);
307 var Super = superProto instanceof Vue
308 ? superProto.constructor
309 : Vue;
310 var Extended = Super.extend(options);
311 forwardStaticMembers(Extended, Component, Super);
312 if (reflectionIsSupported) {
313 copyReflectionMetadata(Extended, Component);
314 }
315 return Extended;
316}
317var reservedPropertyNames = [
318 // Unique id
319 'cid',
320 // Super Vue constructor
321 'super',
322 // Component options that will be used by the component
323 'options',
324 'superOptions',
325 'extendOptions',
326 'sealedOptions',
327 // Private assets
328 'component',
329 'directive',
330 'filter'
331];
332function forwardStaticMembers(Extended, Original, Super) {
333 // We have to use getOwnPropertyNames since Babel registers methods as non-enumerable
334 Object.getOwnPropertyNames(Original).forEach(function (key) {
335 // `prototype` should not be overwritten
336 if (key === 'prototype') {
337 return;
338 }
339 // Some browsers does not allow reconfigure built-in properties
340 var extendedDescriptor = Object.getOwnPropertyDescriptor(Extended, key);
341 if (extendedDescriptor && !extendedDescriptor.configurable) {
342 return;
343 }
344 var descriptor = Object.getOwnPropertyDescriptor(Original, key);
345 // If the user agent does not support `__proto__` or its family (IE <= 10),
346 // the sub class properties may be inherited properties from the super class in TypeScript.
347 // We need to exclude such properties to prevent to overwrite
348 // the component options object which stored on the extended constructor (See #192).
349 // If the value is a referenced value (object or function),
350 // we can check equality of them and exclude it if they have the same reference.
351 // If it is a primitive value, it will be forwarded for safety.
352 if (!hasProto) {
353 // Only `cid` is explicitly exluded from property forwarding
354 // because we cannot detect whether it is a inherited property or not
355 // on the no `__proto__` environment even though the property is reserved.
356 if (key === 'cid') {
357 return;
358 }
359 var superDescriptor = Object.getOwnPropertyDescriptor(Super, key);
360 if (!isPrimitive(descriptor.value) &&
361 superDescriptor &&
362 superDescriptor.value === descriptor.value) {
363 return;
364 }
365 }
366 // Warn if the users manually declare reserved properties
367 if (false) {}
368 Object.defineProperty(Extended, key, descriptor);
369 });
370}
371
372function Component(options) {
373 if (typeof options === 'function') {
374 return componentFactory(options);
375 }
376 return function (Component) {
377 return componentFactory(Component, options);
378 };
379}
380Component.registerHooks = function registerHooks(keys) {
381 $internalHooks.push.apply($internalHooks, keys);
382};
383
384exports.default = Component;
385exports.createDecorator = createDecorator;
386exports.mixins = mixins;
387
388
389/***/ }),
390
391/***/ "8875":
392/***/ (function(module, exports, __webpack_require__) {
393
394var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// addapted from the document.currentScript polyfill by Adam Miller
395// MIT license
396// source: https://github.com/amiller-gh/currentScript-polyfill
397
398// added support for Firefox https://bugzilla.mozilla.org/show_bug.cgi?id=1620505
399
400(function (root, factory) {
401 if (true) {
402 !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
403 __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
404 (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
405 __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
406 } else {}
407}(typeof self !== 'undefined' ? self : this, function () {
408 function getCurrentScript () {
409 var descriptor = Object.getOwnPropertyDescriptor(document, 'currentScript')
410 // for chrome
411 if (!descriptor && 'currentScript' in document && document.currentScript) {
412 return document.currentScript
413 }
414
415 // for other browsers with native support for currentScript
416 if (descriptor && descriptor.get !== getCurrentScript && document.currentScript) {
417 return document.currentScript
418 }
419
420 // IE 8-10 support script readyState
421 // IE 11+ & Firefox support stack trace
422 try {
423 throw new Error();
424 }
425 catch (err) {
426 // Find the second match for the "at" string to get file src url from stack.
427 var ieStackRegExp = /.*at [^(]*\((.*):(.+):(.+)\)$/ig,
428 ffStackRegExp = /@([^@]*):(\d+):(\d+)\s*$/ig,
429 stackDetails = ieStackRegExp.exec(err.stack) || ffStackRegExp.exec(err.stack),
430 scriptLocation = (stackDetails && stackDetails[1]) || false,
431 line = (stackDetails && stackDetails[2]) || false,
432 currentLocation = document.location.href.replace(document.location.hash, ''),
433 pageSource,
434 inlineScriptSourceRegExp,
435 inlineScriptSource,
436 scripts = document.getElementsByTagName('script'); // Live NodeList collection
437
438 if (scriptLocation === currentLocation) {
439 pageSource = document.documentElement.outerHTML;
440 inlineScriptSourceRegExp = new RegExp('(?:[^\\n]+?\\n){0,' + (line - 2) + '}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*', 'i');
441 inlineScriptSource = pageSource.replace(inlineScriptSourceRegExp, '$1').trim();
442 }
443
444 for (var i = 0; i < scripts.length; i++) {
445 // If ready state is interactive, return the script tag
446 if (scripts[i].readyState === 'interactive') {
447 return scripts[i];
448 }
449
450 // If src matches, return the script tag
451 if (scripts[i].src === scriptLocation) {
452 return scripts[i];
453 }
454
455 // If inline source matches, return the script tag
456 if (
457 scriptLocation === currentLocation &&
458 scripts[i].innerHTML &&
459 scripts[i].innerHTML.trim() === inlineScriptSource
460 ) {
461 return scripts[i];
462 }
463 }
464
465 // If no match, return null
466 return null;
467 }
468 };
469
470 return getCurrentScript
471}));
472
473
474/***/ }),
475
476/***/ "8bbf":
477/***/ (function(module, exports) {
478
479module.exports = require("vue");
480
481/***/ }),
482
483/***/ "fb15":
484/***/ (function(module, __webpack_exports__, __webpack_require__) {
485
486"use strict";
487// ESM COMPAT FLAG
488__webpack_require__.r(__webpack_exports__);
489
490// EXPORTS
491__webpack_require__.d(__webpack_exports__, "ERROR_TYPE", function() { return /* reexport */ ERROR_TYPE; });
492__webpack_require__.d(__webpack_exports__, "VueSliderMark", function() { return /* reexport */ vue_slider_mark; });
493__webpack_require__.d(__webpack_exports__, "VueSliderDot", function() { return /* reexport */ vue_slider_dot; });
494
495// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
496// This file is imported into lib/wc client bundles.
497
498if (typeof window !== 'undefined') {
499 var currentScript = window.document.currentScript
500 if (true) {
501 var getCurrentScript = __webpack_require__("8875")
502 currentScript = getCurrentScript()
503
504 // for backward compatibility, because previously we directly included the polyfill
505 if (!('currentScript' in document)) {
506 Object.defineProperty(document, 'currentScript', { get: getCurrentScript })
507 }
508 }
509
510 var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
511 if (src) {
512 __webpack_require__.p = src[1] // eslint-disable-line
513 }
514}
515
516// Indicate to webpack that this file can be concatenated
517/* harmony default export */ var setPublicPath = (null);
518
519// EXTERNAL MODULE: ./node_modules/@vue/babel-helper-vue-jsx-merge-props/dist/helper.js
520var helper = __webpack_require__("2638");
521var helper_default = /*#__PURE__*/__webpack_require__.n(helper);
522
523// CONCATENATED MODULE: ./node_modules/tslib/tslib.es6.js
524/*! *****************************************************************************
525Copyright (c) Microsoft Corporation.
526
527Permission to use, copy, modify, and/or distribute this software for any
528purpose with or without fee is hereby granted.
529
530THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
531REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
532AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
533INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
534LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
535OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
536PERFORMANCE OF THIS SOFTWARE.
537***************************************************************************** */
538/* global Reflect, Promise */
539
540var extendStatics = function(d, b) {
541 extendStatics = Object.setPrototypeOf ||
542 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
543 function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
544 return extendStatics(d, b);
545};
546
547function __extends(d, b) {
548 extendStatics(d, b);
549 function __() { this.constructor = d; }
550 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
551}
552
553var __assign = function() {
554 __assign = Object.assign || function __assign(t) {
555 for (var s, i = 1, n = arguments.length; i < n; i++) {
556 s = arguments[i];
557 for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
558 }
559 return t;
560 }
561 return __assign.apply(this, arguments);
562}
563
564function __rest(s, e) {
565 var t = {};
566 for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
567 t[p] = s[p];
568 if (s != null && typeof Object.getOwnPropertySymbols === "function")
569 for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
570 if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
571 t[p[i]] = s[p[i]];
572 }
573 return t;
574}
575
576function __decorate(decorators, target, key, desc) {
577 var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
578 if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
579 else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
580 return c > 3 && r && Object.defineProperty(target, key, r), r;
581}
582
583function __param(paramIndex, decorator) {
584 return function (target, key) { decorator(target, key, paramIndex); }
585}
586
587function __metadata(metadataKey, metadataValue) {
588 if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
589}
590
591function __awaiter(thisArg, _arguments, P, generator) {
592 function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
593 return new (P || (P = Promise))(function (resolve, reject) {
594 function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
595 function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
596 function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
597 step((generator = generator.apply(thisArg, _arguments || [])).next());
598 });
599}
600
601function __generator(thisArg, body) {
602 var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
603 return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
604 function verb(n) { return function (v) { return step([n, v]); }; }
605 function step(op) {
606 if (f) throw new TypeError("Generator is already executing.");
607 while (_) try {
608 if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
609 if (y = 0, t) op = [op[0] & 2, t.value];
610 switch (op[0]) {
611 case 0: case 1: t = op; break;
612 case 4: _.label++; return { value: op[1], done: false };
613 case 5: _.label++; y = op[1]; op = [0]; continue;
614 case 7: op = _.ops.pop(); _.trys.pop(); continue;
615 default:
616 if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
617 if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
618 if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
619 if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
620 if (t[2]) _.ops.pop();
621 _.trys.pop(); continue;
622 }
623 op = body.call(thisArg, _);
624 } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
625 if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
626 }
627}
628
629function __createBinding(o, m, k, k2) {
630 if (k2 === undefined) k2 = k;
631 o[k2] = m[k];
632}
633
634function __exportStar(m, exports) {
635 for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p];
636}
637
638function __values(o) {
639 var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
640 if (m) return m.call(o);
641 if (o && typeof o.length === "number") return {
642 next: function () {
643 if (o && i >= o.length) o = void 0;
644 return { value: o && o[i++], done: !o };
645 }
646 };
647 throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
648}
649
650function __read(o, n) {
651 var m = typeof Symbol === "function" && o[Symbol.iterator];
652 if (!m) return o;
653 var i = m.call(o), r, ar = [], e;
654 try {
655 while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
656 }
657 catch (error) { e = { error: error }; }
658 finally {
659 try {
660 if (r && !r.done && (m = i["return"])) m.call(i);
661 }
662 finally { if (e) throw e.error; }
663 }
664 return ar;
665}
666
667function __spread() {
668 for (var ar = [], i = 0; i < arguments.length; i++)
669 ar = ar.concat(__read(arguments[i]));
670 return ar;
671}
672
673function __spreadArrays() {
674 for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
675 for (var r = Array(s), k = 0, i = 0; i < il; i++)
676 for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
677 r[k] = a[j];
678 return r;
679};
680
681function __await(v) {
682 return this instanceof __await ? (this.v = v, this) : new __await(v);
683}
684
685function __asyncGenerator(thisArg, _arguments, generator) {
686 if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
687 var g = generator.apply(thisArg, _arguments || []), i, q = [];
688 return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
689 function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
690 function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
691 function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
692 function fulfill(value) { resume("next", value); }
693 function reject(value) { resume("throw", value); }
694 function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
695}
696
697function __asyncDelegator(o) {
698 var i, p;
699 return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
700 function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
701}
702
703function __asyncValues(o) {
704 if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
705 var m = o[Symbol.asyncIterator], i;
706 return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
707 function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
708 function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
709}
710
711function __makeTemplateObject(cooked, raw) {
712 if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
713 return cooked;
714};
715
716function __importStar(mod) {
717 if (mod && mod.__esModule) return mod;
718 var result = {};
719 if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
720 result.default = mod;
721 return result;
722}
723
724function __importDefault(mod) {
725 return (mod && mod.__esModule) ? mod : { default: mod };
726}
727
728function __classPrivateFieldGet(receiver, privateMap) {
729 if (!privateMap.has(receiver)) {
730 throw new TypeError("attempted to get private field on non-instance");
731 }
732 return privateMap.get(receiver);
733}
734
735function __classPrivateFieldSet(receiver, privateMap, value) {
736 if (!privateMap.has(receiver)) {
737 throw new TypeError("attempted to set private field on non-instance");
738 }
739 privateMap.set(receiver, value);
740 return value;
741}
742
743// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue","amd":"vue"}
744var external_commonjs_vue_commonjs2_vue_root_Vue_amd_vue_ = __webpack_require__("8bbf");
745var external_commonjs_vue_commonjs2_vue_root_Vue_amd_vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_amd_vue_);
746
747// EXTERNAL MODULE: ./node_modules/vue-class-component/dist/vue-class-component.common.js
748var vue_class_component_common = __webpack_require__("65d9");
749var vue_class_component_common_default = /*#__PURE__*/__webpack_require__.n(vue_class_component_common);
750
751// CONCATENATED MODULE: ./node_modules/vue-property-decorator/lib/vue-property-decorator.js
752/** vue-property-decorator verson 8.0.0 MIT LICENSE copyright 2018 kaorun343 */
753
754
755
756
757/**
758 * decorator of an inject
759 * @param from key
760 * @return PropertyDecorator
761 */
762function Inject(options) {
763 return Object(vue_class_component_common["createDecorator"])(function (componentOptions, key) {
764 if (typeof componentOptions.inject === 'undefined') {
765 componentOptions.inject = {};
766 }
767 if (!Array.isArray(componentOptions.inject)) {
768 componentOptions.inject[key] = options || key;
769 }
770 });
771}
772/**
773 * decorator of a provide
774 * @param key key
775 * @return PropertyDecorator | void
776 */
777function Provide(key) {
778 return Object(vue_class_component_common["createDecorator"])(function (componentOptions, k) {
779 var provide = componentOptions.provide;
780 if (typeof provide !== 'function' || !provide.managed) {
781 var original_1 = componentOptions.provide;
782 provide = componentOptions.provide = function () {
783 var rv = Object.create((typeof original_1 === 'function' ? original_1.call(this) : original_1) || null);
784 for (var i in provide.managed)
785 rv[provide.managed[i]] = this[i];
786 return rv;
787 };
788 provide.managed = {};
789 }
790 provide.managed[k] = key || k;
791 });
792}
793/**
794 * decorator of model
795 * @param event event name
796 * @param options options
797 * @return PropertyDecorator
798 */
799function Model(event, options) {
800 if (options === void 0) { options = {}; }
801 return Object(vue_class_component_common["createDecorator"])(function (componentOptions, k) {
802 (componentOptions.props || (componentOptions.props = {}))[k] = options;
803 componentOptions.model = { prop: k, event: event || k };
804 });
805}
806/**
807 * decorator of a prop
808 * @param options the options for the prop
809 * @return PropertyDecorator | void
810 */
811function Prop(options) {
812 if (options === void 0) { options = {}; }
813 return Object(vue_class_component_common["createDecorator"])(function (componentOptions, k) {
814 (componentOptions.props || (componentOptions.props = {}))[k] = options;
815 });
816}
817/**
818 * decorator of a watch function
819 * @param path the path or the expression to observe
820 * @param WatchOption
821 * @return MethodDecorator
822 */
823function Watch(path, options) {
824 if (options === void 0) { options = {}; }
825 var _a = options.deep, deep = _a === void 0 ? false : _a, _b = options.immediate, immediate = _b === void 0 ? false : _b;
826 return Object(vue_class_component_common["createDecorator"])(function (componentOptions, handler) {
827 if (typeof componentOptions.watch !== 'object') {
828 componentOptions.watch = Object.create(null);
829 }
830 var watch = componentOptions.watch;
831 if (typeof watch[path] === 'object' && !Array.isArray(watch[path])) {
832 watch[path] = [watch[path]];
833 }
834 else if (typeof watch[path] === 'undefined') {
835 watch[path] = [];
836 }
837 watch[path].push({ handler: handler, deep: deep, immediate: immediate });
838 });
839}
840// Code copied from Vue/src/shared/util.js
841var hyphenateRE = /\B([A-Z])/g;
842var hyphenate = function (str) { return str.replace(hyphenateRE, '-$1').toLowerCase(); };
843/**
844 * decorator of an event-emitter function
845 * @param event The name of the event
846 * @return MethodDecorator
847 */
848function Emit(event) {
849 return function (_target, key, descriptor) {
850 key = hyphenate(key);
851 var original = descriptor.value;
852 descriptor.value = function emitter() {
853 var _this = this;
854 var args = [];
855 for (var _i = 0; _i < arguments.length; _i++) {
856 args[_i] = arguments[_i];
857 }
858 var emit = function (returnValue) {
859 if (returnValue !== undefined)
860 args.unshift(returnValue);
861 _this.$emit.apply(_this, [event || key].concat(args));
862 };
863 var returnValue = original.apply(this, args);
864 if (isPromise(returnValue)) {
865 returnValue.then(function (returnValue) {
866 emit(returnValue);
867 });
868 }
869 else {
870 emit(returnValue);
871 }
872 };
873 };
874}
875function isPromise(obj) {
876 return obj instanceof Promise || (obj && typeof obj.then === 'function');
877}
878
879// EXTERNAL MODULE: ./lib/styles/dot.scss
880var dot = __webpack_require__("4ed8");
881
882// CONCATENATED MODULE: ./lib/vue-slider-dot.tsx
883function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
884
885function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
886
887function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
888
889function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
890
891function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
892
893function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
894
895function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
896
897function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
898
899function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
900
901function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
902
903function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
904
905
906
907
908
909var vue_slider_dot_VueSliderDot =
910/** @class */
911function () {
912 var VueSliderDot = /*#__PURE__*/function (_Vue) {
913 _inherits(VueSliderDot, _Vue);
914
915 var _super = _createSuper(VueSliderDot);
916
917 function VueSliderDot() {
918 _classCallCheck(this, VueSliderDot);
919
920 return _super.apply(this, arguments);
921 }
922
923 _createClass(VueSliderDot, [{
924 key: "dragStart",
925 value: function dragStart(e) {
926 if (this.disabled) {
927 return false;
928 }
929
930 this.$emit('drag-start');
931 }
932 }, {
933 key: "render",
934 value: function render() {
935 var h = arguments[0];
936 return h("div", {
937 "ref": "dot",
938 "class": this.dotClasses,
939 "attrs": {
940 "aria-valuetext": typeof this.tooltipValue === 'number' ? this.tooltipValue.toString() : this.tooltipValue
941 },
942 "on": {
943 "mousedown": this.dragStart,
944 "touchstart": this.dragStart
945 }
946 }, [this.$slots.dot || h("div", {
947 "class": this.handleClasses,
948 "style": this.dotStyle
949 }), this.tooltip !== 'none' ? h("div", {
950 "class": this.tooltipClasses
951 }, [this.$slots.tooltip || h("div", {
952 "class": this.tooltipInnerClasses,
953 "style": this.tooltipStyle
954 }, [h("span", {
955 "class": 'vue-slider-dot-tooltip-text'
956 }, [this.tooltipValue])])]) : null]);
957 }
958 }, {
959 key: "dotClasses",
960 get: function get() {
961 return ['vue-slider-dot', {
962 'vue-slider-dot-hover': this.tooltip === 'hover' || this.tooltip === 'active',
963 'vue-slider-dot-disabled': this.disabled,
964 'vue-slider-dot-focus': this.focus
965 }];
966 }
967 }, {
968 key: "handleClasses",
969 get: function get() {
970 return ['vue-slider-dot-handle', {
971 'vue-slider-dot-handle-disabled': this.disabled,
972 'vue-slider-dot-handle-focus': this.focus
973 }];
974 }
975 }, {
976 key: "tooltipClasses",
977 get: function get() {
978 return ['vue-slider-dot-tooltip', ["vue-slider-dot-tooltip-".concat(this.tooltipPlacement)], {
979 'vue-slider-dot-tooltip-show': this.showTooltip
980 }];
981 }
982 }, {
983 key: "tooltipInnerClasses",
984 get: function get() {
985 return ['vue-slider-dot-tooltip-inner', ["vue-slider-dot-tooltip-inner-".concat(this.tooltipPlacement)], {
986 'vue-slider-dot-tooltip-inner-disabled': this.disabled,
987 'vue-slider-dot-tooltip-inner-focus': this.focus
988 }];
989 }
990 }, {
991 key: "showTooltip",
992 get: function get() {
993 switch (this.tooltip) {
994 case 'always':
995 return true;
996
997 case 'none':
998 return false;
999
1000 case 'focus':
1001 case 'active':
1002 return !!this.focus;
1003
1004 default:
1005 return false;
1006 }
1007 }
1008 }, {
1009 key: "tooltipValue",
1010 get: function get() {
1011 if (this.tooltipFormatter) {
1012 return typeof this.tooltipFormatter === 'string' ? this.tooltipFormatter.replace(/\{value\}/, String(this.value)) : this.tooltipFormatter(this.value);
1013 } else {
1014 return this.value;
1015 }
1016 }
1017 }]);
1018
1019 return VueSliderDot;
1020 }(external_commonjs_vue_commonjs2_vue_root_Vue_amd_vue_default.a);
1021
1022 __decorate([Prop({
1023 default: 0
1024 })], VueSliderDot.prototype, "value", void 0);
1025
1026 __decorate([Prop()], VueSliderDot.prototype, "tooltip", void 0);
1027
1028 __decorate([Prop()], VueSliderDot.prototype, "dotStyle", void 0);
1029
1030 __decorate([Prop()], VueSliderDot.prototype, "tooltipStyle", void 0);
1031
1032 __decorate([Prop({
1033 type: String,
1034 validator: function validator(val) {
1035 return ['top', 'right', 'bottom', 'left'].indexOf(val) > -1;
1036 },
1037 required: true
1038 })], VueSliderDot.prototype, "tooltipPlacement", void 0);
1039
1040 __decorate([Prop({
1041 type: [String, Function]
1042 })], VueSliderDot.prototype, "tooltipFormatter", void 0);
1043
1044 __decorate([Prop({
1045 type: Boolean,
1046 default: false
1047 })], VueSliderDot.prototype, "focus", void 0);
1048
1049 __decorate([Prop({
1050 default: false
1051 })], VueSliderDot.prototype, "disabled", void 0);
1052
1053 VueSliderDot = __decorate([vue_class_component_common_default()({
1054 name: 'VueSliderDot'
1055 })], VueSliderDot);
1056 return VueSliderDot;
1057}();
1058
1059/* harmony default export */ var vue_slider_dot = (vue_slider_dot_VueSliderDot);
1060// EXTERNAL MODULE: ./lib/styles/mark.scss
1061var mark = __webpack_require__("556c");
1062
1063// CONCATENATED MODULE: ./lib/vue-slider-mark.tsx
1064function vue_slider_mark_typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { vue_slider_mark_typeof = function _typeof(obj) { return typeof obj; }; } else { vue_slider_mark_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return vue_slider_mark_typeof(obj); }
1065
1066function vue_slider_mark_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1067
1068function vue_slider_mark_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
1069
1070function vue_slider_mark_createClass(Constructor, protoProps, staticProps) { if (protoProps) vue_slider_mark_defineProperties(Constructor.prototype, protoProps); if (staticProps) vue_slider_mark_defineProperties(Constructor, staticProps); return Constructor; }
1071
1072function vue_slider_mark_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) vue_slider_mark_setPrototypeOf(subClass, superClass); }
1073
1074function vue_slider_mark_setPrototypeOf(o, p) { vue_slider_mark_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return vue_slider_mark_setPrototypeOf(o, p); }
1075
1076function vue_slider_mark_createSuper(Derived) { var hasNativeReflectConstruct = vue_slider_mark_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = vue_slider_mark_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = vue_slider_mark_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return vue_slider_mark_possibleConstructorReturn(this, result); }; }
1077
1078function vue_slider_mark_possibleConstructorReturn(self, call) { if (call && (vue_slider_mark_typeof(call) === "object" || typeof call === "function")) { return call; } return vue_slider_mark_assertThisInitialized(self); }
1079
1080function vue_slider_mark_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
1081
1082function vue_slider_mark_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
1083
1084function vue_slider_mark_getPrototypeOf(o) { vue_slider_mark_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return vue_slider_mark_getPrototypeOf(o); }
1085
1086
1087
1088
1089
1090var vue_slider_mark_VueSlideMark =
1091/** @class */
1092function () {
1093 var VueSlideMark = /*#__PURE__*/function (_Vue) {
1094 vue_slider_mark_inherits(VueSlideMark, _Vue);
1095
1096 var _super = vue_slider_mark_createSuper(VueSlideMark);
1097
1098 function VueSlideMark() {
1099 vue_slider_mark_classCallCheck(this, VueSlideMark);
1100
1101 return _super.apply(this, arguments);
1102 }
1103
1104 vue_slider_mark_createClass(VueSlideMark, [{
1105 key: "labelClickHandle",
1106 value: function labelClickHandle(e) {
1107 e.stopPropagation();
1108 this.$emit('pressLabel', this.mark.pos);
1109 }
1110 }, {
1111 key: "render",
1112 value: function render() {
1113 var h = arguments[0];
1114 var mark = this.mark;
1115 return h("div", {
1116 "class": this.marksClasses
1117 }, [this.$slots.step || h("div", {
1118 "class": this.stepClasses,
1119 "style": [this.stepStyle || {}, mark.style || {}, mark.active ? this.stepActiveStyle || {} : {}, mark.active ? mark.activeStyle || {} : {}]
1120 }), !this.hideLabel ? this.$slots.label || h("div", {
1121 "class": this.labelClasses,
1122 "style": [this.labelStyle || {}, mark.labelStyle || {}, mark.active ? this.labelActiveStyle || {} : {}, mark.active ? mark.labelActiveStyle || {} : {}],
1123 "on": {
1124 "click": this.labelClickHandle
1125 }
1126 }, [mark.label]) : null]);
1127 }
1128 }, {
1129 key: "marksClasses",
1130 get: function get() {
1131 return ['vue-slider-mark', {
1132 'vue-slider-mark-active': this.mark.active
1133 }];
1134 }
1135 }, {
1136 key: "stepClasses",
1137 get: function get() {
1138 return ['vue-slider-mark-step', {
1139 'vue-slider-mark-step-active': this.mark.active
1140 }];
1141 }
1142 }, {
1143 key: "labelClasses",
1144 get: function get() {
1145 return ['vue-slider-mark-label', {
1146 'vue-slider-mark-label-active': this.mark.active
1147 }];
1148 }
1149 }]);
1150
1151 return VueSlideMark;
1152 }(external_commonjs_vue_commonjs2_vue_root_Vue_amd_vue_default.a);
1153
1154 __decorate([Prop({
1155 required: true
1156 })], VueSlideMark.prototype, "mark", void 0);
1157
1158 __decorate([Prop(Boolean)], VueSlideMark.prototype, "hideLabel", void 0);
1159
1160 __decorate([Prop()], VueSlideMark.prototype, "stepStyle", void 0);
1161
1162 __decorate([Prop()], VueSlideMark.prototype, "stepActiveStyle", void 0);
1163
1164 __decorate([Prop()], VueSlideMark.prototype, "labelStyle", void 0);
1165
1166 __decorate([Prop()], VueSlideMark.prototype, "labelActiveStyle", void 0);
1167
1168 VueSlideMark = __decorate([vue_class_component_common_default()({
1169 name: 'VueSlideMark'
1170 })], VueSlideMark);
1171 return VueSlideMark;
1172}();
1173
1174/* harmony default export */ var vue_slider_mark = (vue_slider_mark_VueSlideMark);
1175// CONCATENATED MODULE: ./lib/utils/index.ts
1176var getSize = function getSize(value) {
1177 return typeof value === 'number' ? "".concat(value, "px") : value;
1178};
1179/** Get the distance of the element from the top/left of the page */
1180
1181var getOffset = function getOffset(elem) {
1182 var doc = document.documentElement;
1183 var body = document.body;
1184 var rect = elem.getBoundingClientRect();
1185 var offset = {
1186 y: rect.top + (window.pageYOffset || doc.scrollTop) - (doc.clientTop || body.clientTop || 0),
1187 x: rect.left + (window.pageXOffset || doc.scrollLeft) - (doc.clientLeft || body.clientLeft || 0)
1188 };
1189 return offset;
1190};
1191/**
1192 * Get the position of the mouse/finger in the element
1193 * @param e Trigger event
1194 * @param elem Container element
1195 * @param isReverse From the right/bottom
1196 */
1197
1198var getPos = function getPos(e, elem, isReverse) {
1199 var zoom = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
1200 var event = 'targetTouches' in e ? e.targetTouches[0] : e;
1201 var offset = getOffset(elem);
1202 var posObj = {
1203 x: event.pageX - offset.x,
1204 y: event.pageY - offset.y
1205 };
1206 return {
1207 x: isReverse ? elem.offsetWidth * zoom - posObj.x : posObj.x,
1208 y: isReverse ? elem.offsetHeight * zoom - posObj.y : posObj.y
1209 };
1210};
1211var KEY_CODE;
1212
1213(function (KEY_CODE) {
1214 KEY_CODE[KEY_CODE["PAGE_UP"] = 33] = "PAGE_UP";
1215 KEY_CODE[KEY_CODE["PAGE_DOWN"] = 34] = "PAGE_DOWN";
1216 KEY_CODE[KEY_CODE["END"] = 35] = "END";
1217 KEY_CODE[KEY_CODE["HOME"] = 36] = "HOME";
1218 KEY_CODE[KEY_CODE["LEFT"] = 37] = "LEFT";
1219 KEY_CODE[KEY_CODE["UP"] = 38] = "UP";
1220 KEY_CODE[KEY_CODE["RIGHT"] = 39] = "RIGHT";
1221 KEY_CODE[KEY_CODE["DOWN"] = 40] = "DOWN";
1222})(KEY_CODE || (KEY_CODE = {}));
1223
1224var getKeyboardHandleFunc = function getKeyboardHandleFunc(e, params) {
1225 if (params.hook) {
1226 var result = params.hook(e);
1227 if (typeof result === 'function') return result;
1228 if (!result) return null;
1229 }
1230
1231 switch (e.keyCode) {
1232 case KEY_CODE.UP:
1233 return function (i) {
1234 return params.direction === 'ttb' ? i - 1 : i + 1;
1235 };
1236
1237 case KEY_CODE.RIGHT:
1238 return function (i) {
1239 return params.direction === 'rtl' ? i - 1 : i + 1;
1240 };
1241
1242 case KEY_CODE.DOWN:
1243 return function (i) {
1244 return params.direction === 'ttb' ? i + 1 : i - 1;
1245 };
1246
1247 case KEY_CODE.LEFT:
1248 return function (i) {
1249 return params.direction === 'rtl' ? i + 1 : i - 1;
1250 };
1251
1252 case KEY_CODE.END:
1253 return function () {
1254 return params.max;
1255 };
1256
1257 case KEY_CODE.HOME:
1258 return function () {
1259 return params.min;
1260 };
1261
1262 case KEY_CODE.PAGE_UP:
1263 return function (i) {
1264 return i + 10;
1265 };
1266
1267 case KEY_CODE.PAGE_DOWN:
1268 return function (i) {
1269 return i - 10;
1270 };
1271
1272 default:
1273 return null;
1274 }
1275};
1276// CONCATENATED MODULE: ./lib/utils/decimal.ts
1277function decimal_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1278
1279function decimal_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
1280
1281function decimal_createClass(Constructor, protoProps, staticProps) { if (protoProps) decimal_defineProperties(Constructor.prototype, protoProps); if (staticProps) decimal_defineProperties(Constructor, staticProps); return Constructor; }
1282
1283/**
1284 * For any precise floating point calculation
1285 *
1286 * @export
1287 * @class Decimal
1288 */
1289var Decimal = /*#__PURE__*/function () {
1290 function Decimal(num) {
1291 decimal_classCallCheck(this, Decimal);
1292
1293 this.num = num;
1294 }
1295
1296 decimal_createClass(Decimal, [{
1297 key: "decimal",
1298 value: function decimal(num2, operator) {
1299 var num1 = this.num;
1300 var len1 = this.getDecimalLen(num1);
1301 var len2 = this.getDecimalLen(num2);
1302 var base = 0;
1303
1304 switch (operator) {
1305 case '+':
1306 base = this.getExponent(len1, len2);
1307 this.num = (this.safeRoundUp(num1, base) + this.safeRoundUp(num2, base)) / base;
1308 break;
1309
1310 case '-':
1311 base = this.getExponent(len1, len2);
1312 this.num = (this.safeRoundUp(num1, base) - this.safeRoundUp(num2, base)) / base;
1313 break;
1314
1315 case '*':
1316 this.num = this.safeRoundUp(this.safeRoundUp(num1, this.getExponent(len1)), this.safeRoundUp(num2, this.getExponent(len2))) / this.getExponent(len1 + len2);
1317 break;
1318
1319 case '/':
1320 base = this.getExponent(len1, len2);
1321 this.num = this.safeRoundUp(num1, base) / this.safeRoundUp(num2, base);
1322 break;
1323
1324 case '%':
1325 base = this.getExponent(len1, len2);
1326 this.num = this.safeRoundUp(num1, base) % this.safeRoundUp(num2, base) / base;
1327 break;
1328 }
1329
1330 return this;
1331 }
1332 }, {
1333 key: "plus",
1334 value: function plus(num2) {
1335 return this.decimal(num2, '+');
1336 }
1337 }, {
1338 key: "minus",
1339 value: function minus(num2) {
1340 return this.decimal(num2, '-');
1341 }
1342 }, {
1343 key: "multiply",
1344 value: function multiply(num2) {
1345 return this.decimal(num2, '*');
1346 }
1347 }, {
1348 key: "divide",
1349 value: function divide(num2) {
1350 return this.decimal(num2, '/');
1351 }
1352 }, {
1353 key: "remainder",
1354 value: function remainder(num2) {
1355 return this.decimal(num2, '%');
1356 }
1357 }, {
1358 key: "toNumber",
1359 value: function toNumber() {
1360 return this.num;
1361 }
1362 }, {
1363 key: "getDecimalLen",
1364 value: function getDecimalLen(num) {
1365 var strArr = "".concat(num).split('e');
1366 return ("".concat(strArr[0]).split('.')[1] || '').length - (strArr[1] ? +strArr[1] : 0);
1367 }
1368 }, {
1369 key: "getExponent",
1370 value: function getExponent(num1, num2) {
1371 return Math.pow(10, num2 !== void 0 ? Math.max(num1, num2) : num1);
1372 } // fix: 9999999.99995 * 100000 = 999999999994.9999
1373
1374 }, {
1375 key: "safeRoundUp",
1376 value: function safeRoundUp(num, exponent) {
1377 return Math.round(num * exponent);
1378 }
1379 }]);
1380
1381 return Decimal;
1382}();
1383
1384
1385// CONCATENATED MODULE: ./lib/utils/control.ts
1386var _ERROR_MSG;
1387
1388function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
1389
1390function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
1391
1392function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
1393
1394function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
1395
1396function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
1397
1398function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
1399
1400function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
1401
1402function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
1403
1404function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
1405
1406function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
1407
1408function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
1409
1410function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
1411
1412function control_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1413
1414function control_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
1415
1416function control_createClass(Constructor, protoProps, staticProps) { if (protoProps) control_defineProperties(Constructor.prototype, protoProps); if (staticProps) control_defineProperties(Constructor, staticProps); return Constructor; }
1417
1418function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1419
1420
1421var ERROR_TYPE;
1422
1423(function (ERROR_TYPE) {
1424 ERROR_TYPE[ERROR_TYPE["VALUE"] = 1] = "VALUE";
1425 ERROR_TYPE[ERROR_TYPE["INTERVAL"] = 2] = "INTERVAL";
1426 ERROR_TYPE[ERROR_TYPE["MIN"] = 3] = "MIN";
1427 ERROR_TYPE[ERROR_TYPE["MAX"] = 4] = "MAX";
1428 ERROR_TYPE[ERROR_TYPE["ORDER"] = 5] = "ORDER";
1429})(ERROR_TYPE || (ERROR_TYPE = {}));
1430
1431var ERROR_MSG = (_ERROR_MSG = {}, _defineProperty(_ERROR_MSG, ERROR_TYPE.VALUE, 'The type of the "value" is illegal'), _defineProperty(_ERROR_MSG, ERROR_TYPE.INTERVAL, 'The prop "interval" is invalid, "(max - min)" must be divisible by "interval"'), _defineProperty(_ERROR_MSG, ERROR_TYPE.MIN, 'The "value" must be greater than or equal to the "min".'), _defineProperty(_ERROR_MSG, ERROR_TYPE.MAX, 'The "value" must be less than or equal to the "max".'), _defineProperty(_ERROR_MSG, ERROR_TYPE.ORDER, 'When "order" is false, the parameters "minRange", "maxRange", "fixed", "enabled" are invalid.'), _ERROR_MSG);
1432/**
1433 * Slider logic control center
1434 *
1435 * @export
1436 * @class Control
1437 */
1438
1439var control_Control = /*#__PURE__*/function () {
1440 function Control(options) {
1441 control_classCallCheck(this, Control);
1442
1443 this.dotsPos = []; // The position of each slider
1444
1445 this.dotsValue = []; // The value of each slider
1446
1447 this.cacheRangeDir = {};
1448 this.data = options.data;
1449 this.max = options.max;
1450 this.min = options.min;
1451 this.interval = options.interval;
1452 this.order = options.order;
1453 this.marks = options.marks;
1454 this.included = options.included;
1455 this.process = options.process;
1456 this.adsorb = options.adsorb;
1457 this.dotOptions = options.dotOptions;
1458 this.onError = options.onError;
1459
1460 if (this.order) {
1461 this.minRange = options.minRange || 0;
1462 this.maxRange = options.maxRange || 0;
1463 this.enableCross = options.enableCross;
1464 this.fixed = options.fixed;
1465 } else {
1466 if (options.minRange || options.maxRange || !options.enableCross || options.fixed) {
1467 this.emitError(ERROR_TYPE.ORDER);
1468 }
1469
1470 this.minRange = 0;
1471 this.maxRange = 0;
1472 this.enableCross = true;
1473 this.fixed = false;
1474 }
1475
1476 this.setValue(options.value);
1477 }
1478
1479 control_createClass(Control, [{
1480 key: "setValue",
1481 value: function setValue(value) {
1482 var _this = this;
1483
1484 this.setDotsValue(Array.isArray(value) ? this.order ? _toConsumableArray(value).sort(function (a, b) {
1485 return _this.getIndexByValue(a) - _this.getIndexByValue(b);
1486 }) : _toConsumableArray(value) : [value], true);
1487 }
1488 }, {
1489 key: "setDotsValue",
1490 value: function setDotsValue(value, syncPos) {
1491 this.dotsValue = value;
1492
1493 if (syncPos) {
1494 this.syncDotsPos();
1495 }
1496 } // Set the slider position
1497
1498 }, {
1499 key: "setDotsPos",
1500 value: function setDotsPos(dotsPos) {
1501 var _this2 = this;
1502
1503 var list = this.order ? _toConsumableArray(dotsPos).sort(function (a, b) {
1504 return a - b;
1505 }) : dotsPos;
1506 this.dotsPos = list;
1507 this.setDotsValue(list.map(function (dotPos) {
1508 return _this2.getValueByPos(dotPos);
1509 }), this.adsorb);
1510 } // Get value by position
1511
1512 }, {
1513 key: "getValueByPos",
1514 value: function getValueByPos(pos) {
1515 var value = this.parsePos(pos); // When included is true, the return value is the value of the nearest mark
1516
1517 if (this.included) {
1518 var dir = 100;
1519 this.markList.forEach(function (mark) {
1520 var curDir = Math.abs(mark.pos - pos);
1521
1522 if (curDir < dir) {
1523 dir = curDir;
1524 value = mark.value;
1525 }
1526 });
1527 }
1528
1529 return value;
1530 } // Sync slider position
1531
1532 }, {
1533 key: "syncDotsPos",
1534 value: function syncDotsPos() {
1535 var _this3 = this;
1536
1537 this.dotsPos = this.dotsValue.map(function (v) {
1538 return _this3.parseValue(v);
1539 });
1540 }
1541 /**
1542 * Get all the marks
1543 *
1544 * @readonly
1545 * @type {Mark[]}
1546 * @memberof Control
1547 */
1548
1549 }, {
1550 key: "getRecentDot",
1551
1552 /**
1553 * Get the most recent slider index by position
1554 *
1555 * @param {number} pos
1556 * @returns {number}
1557 * @memberof Control
1558 */
1559 value: function getRecentDot(pos) {
1560 var _this4 = this;
1561
1562 var arr = this.dotsPos.filter(function (dotPos, index) {
1563 return !(_this4.getDotOption(index) && _this4.getDotOption(index).disabled);
1564 }).map(function (dotPos) {
1565 return Math.abs(dotPos - pos);
1566 });
1567 return arr.indexOf(Math.min.apply(Math, _toConsumableArray(arr)));
1568 }
1569 /**
1570 * Get index by value
1571 *
1572 * @param {Value} value
1573 * @returns {number}
1574 * @memberof Control
1575 */
1576
1577 }, {
1578 key: "getIndexByValue",
1579 value: function getIndexByValue(value) {
1580 if (this.data) {
1581 return this.data.indexOf(value);
1582 }
1583
1584 return new Decimal(+value).minus(this.min).divide(this.interval).toNumber();
1585 }
1586 /**
1587 * Get value by index
1588 *
1589 * @param {index} number
1590 * @returns {Value}
1591 * @memberof Control
1592 */
1593
1594 }, {
1595 key: "getValueByIndex",
1596 value: function getValueByIndex(index) {
1597 if (index < 0) {
1598 index = 0;
1599 } else if (index > this.total) {
1600 index = this.total;
1601 }
1602
1603 return this.data ? this.data[index] : new Decimal(index).multiply(this.interval).plus(this.min).toNumber();
1604 }
1605 /**
1606 * Set the position of a single slider
1607 *
1608 * @param {number} pos
1609 * @param {number} index
1610 */
1611
1612 }, {
1613 key: "setDotPos",
1614 value: function setDotPos(pos, index) {
1615 pos = this.getValidPos(pos, index).pos;
1616 var changePos = pos - this.dotsPos[index];
1617
1618 if (!changePos) {
1619 return;
1620 }
1621
1622 var changePosArr = new Array(this.dotsPos.length);
1623
1624 if (this.fixed) {
1625 changePosArr = this.getFixedChangePosArr(changePos, index);
1626 } else if (this.minRange || this.maxRange) {
1627 changePosArr = this.getLimitRangeChangePosArr(pos, changePos, index);
1628 } else {
1629 changePosArr[index] = changePos;
1630 }
1631
1632 this.setDotsPos(this.dotsPos.map(function (curPos, i) {
1633 return curPos + (changePosArr[i] || 0);
1634 }));
1635 }
1636 /**
1637 * In fixed mode, get the position of all slider changes
1638 *
1639 * @param {number} changePos Change distance of a single slider
1640 * @param {number} index slider index
1641 * @returns {DotsPosChangeArray}
1642 * @memberof Control
1643 */
1644
1645 }, {
1646 key: "getFixedChangePosArr",
1647 value: function getFixedChangePosArr(changePos, index) {
1648 var _this5 = this;
1649
1650 this.dotsPos.forEach(function (originPos, i) {
1651 if (i !== index) {
1652 var _this5$getValidPos = _this5.getValidPos(originPos + changePos, i),
1653 lastPos = _this5$getValidPos.pos,
1654 inRange = _this5$getValidPos.inRange;
1655
1656 if (!inRange) {
1657 changePos = Math.min(Math.abs(lastPos - originPos), Math.abs(changePos)) * (changePos < 0 ? -1 : 1);
1658 }
1659 }
1660 });
1661 return this.dotsPos.map(function (_) {
1662 return changePos;
1663 });
1664 }
1665 /**
1666 * In minRange/maxRange mode, get the position of all slider changes
1667 *
1668 * @param {number} pos position of a single slider
1669 * @param {number} changePos Change distance of a single slider
1670 * @param {number} index slider index
1671 * @returns {DotsPosChangeArray}
1672 * @memberof Control
1673 */
1674
1675 }, {
1676 key: "getLimitRangeChangePosArr",
1677 value: function getLimitRangeChangePosArr(pos, changePos, index) {
1678 var _this6 = this;
1679
1680 var changeDots = [{
1681 index: index,
1682 changePos: changePos
1683 }];
1684 var newChangePos = changePos;
1685 [this.minRange, this.maxRange].forEach(function (isLimitRange, rangeIndex) {
1686 if (!isLimitRange) {
1687 return false;
1688 }
1689
1690 var isMinRange = rangeIndex === 0;
1691 var isForward = changePos > 0;
1692 var next = 0;
1693
1694 if (isMinRange) {
1695 next = isForward ? 1 : -1;
1696 } else {
1697 next = isForward ? -1 : 1;
1698 } // Determine if the two positions are within the legal interval
1699
1700
1701 var inLimitRange = function inLimitRange(pos2, pos1) {
1702 var diff = Math.abs(pos2 - pos1);
1703 return isMinRange ? diff < _this6.minRangeDir : diff > _this6.maxRangeDir;
1704 };
1705
1706 var i = index + next;
1707 var nextPos = _this6.dotsPos[i];
1708 var curPos = pos;
1709
1710 while (_this6.isPos(nextPos) && inLimitRange(nextPos, curPos)) {
1711 var _this6$getValidPos = _this6.getValidPos(nextPos + newChangePos, i),
1712 lastPos = _this6$getValidPos.pos;
1713
1714 changeDots.push({
1715 index: i,
1716 changePos: lastPos - nextPos
1717 });
1718 i = i + next;
1719 curPos = lastPos;
1720 nextPos = _this6.dotsPos[i];
1721 }
1722 });
1723 return this.dotsPos.map(function (_, i) {
1724 var changeDot = changeDots.filter(function (dot) {
1725 return dot.index === i;
1726 });
1727 return changeDot.length ? changeDot[0].changePos : 0;
1728 });
1729 }
1730 }, {
1731 key: "isPos",
1732 value: function isPos(pos) {
1733 return typeof pos === 'number';
1734 }
1735 /**
1736 * Get a valid position by pos
1737 *
1738 * @param {number} pos
1739 * @param {number} index
1740 * @returns {{ pos: number, inRange: boolean }}
1741 */
1742
1743 }, {
1744 key: "getValidPos",
1745 value: function getValidPos(pos, index) {
1746 var range = this.valuePosRange[index];
1747 var inRange = true;
1748
1749 if (pos < range[0]) {
1750 pos = range[0];
1751 inRange = false;
1752 } else if (pos > range[1]) {
1753 pos = range[1];
1754 inRange = false;
1755 }
1756
1757 return {
1758 pos: pos,
1759 inRange: inRange
1760 };
1761 }
1762 /**
1763 * Calculate the position of the slider by value
1764 *
1765 * @param {Value} val
1766 * @returns {number}
1767 */
1768
1769 }, {
1770 key: "parseValue",
1771 value: function parseValue(val) {
1772 if (this.data) {
1773 val = this.data.indexOf(val);
1774 } else if (typeof val === 'number' || typeof val === 'string') {
1775 val = +val;
1776
1777 if (val < this.min) {
1778 this.emitError(ERROR_TYPE.MIN);
1779 return 0;
1780 }
1781
1782 if (val > this.max) {
1783 this.emitError(ERROR_TYPE.MAX);
1784 return 0;
1785 }
1786
1787 if (typeof val !== 'number' || val !== val) {
1788 this.emitError(ERROR_TYPE.VALUE);
1789 return 0;
1790 }
1791
1792 val = new Decimal(val).minus(this.min).divide(this.interval).toNumber();
1793 }
1794
1795 var pos = new Decimal(val).multiply(this.gap).toNumber();
1796 return pos < 0 ? 0 : pos > 100 ? 100 : pos;
1797 }
1798 /**
1799 * Calculate the value by position
1800 *
1801 * @param {number} pos
1802 * @returns {Value}
1803 * @memberof Control
1804 */
1805
1806 }, {
1807 key: "parsePos",
1808 value: function parsePos(pos) {
1809 var index = Math.round(pos / this.gap);
1810 return this.getValueByIndex(index);
1811 }
1812 /**
1813 * Determine if the location is active
1814 *
1815 * @param {number} pos
1816 * @returns {boolean}
1817 * @memberof Control
1818 */
1819
1820 }, {
1821 key: "isActiveByPos",
1822 value: function isActiveByPos(pos) {
1823 return this.processArray.some(function (_ref) {
1824 var _ref2 = _slicedToArray(_ref, 2),
1825 start = _ref2[0],
1826 end = _ref2[1];
1827
1828 return pos >= start && pos <= end;
1829 });
1830 }
1831 /**
1832 * Get each value
1833 *
1834 * @returns {Value[]}
1835 * @memberof Control
1836 */
1837
1838 }, {
1839 key: "getValues",
1840 value: function getValues() {
1841 if (this.data) {
1842 return this.data;
1843 } else {
1844 var values = [];
1845
1846 for (var i = 0; i <= this.total; i++) {
1847 values.push(new Decimal(i).multiply(this.interval).plus(this.min).toNumber());
1848 }
1849
1850 return values;
1851 }
1852 }
1853 /**
1854 * Calculate the distance of the range
1855 * @param range number
1856 */
1857
1858 }, {
1859 key: "getRangeDir",
1860 value: function getRangeDir(range) {
1861 return range ? new Decimal(range).divide(new Decimal(this.data ? this.data.length - 1 : this.max).minus(this.data ? 0 : this.min).toNumber()).multiply(100).toNumber() : 100;
1862 }
1863 }, {
1864 key: "emitError",
1865 value: function emitError(type) {
1866 if (this.onError) {
1867 this.onError(type, ERROR_MSG[type]);
1868 }
1869 }
1870 }, {
1871 key: "getDotOption",
1872 value: function getDotOption(index) {
1873 return Array.isArray(this.dotOptions) ? this.dotOptions[index] : this.dotOptions;
1874 }
1875 }, {
1876 key: "getDotRange",
1877 value: function getDotRange(index, key, defaultValue) {
1878 if (!this.dotOptions) {
1879 return defaultValue;
1880 }
1881
1882 var option = this.getDotOption(index);
1883 return option && option[key] !== void 0 ? this.parseValue(option[key]) : defaultValue;
1884 }
1885 /**
1886 * Sliding range of each slider
1887 *
1888 * @type {Array<[number, number]>}
1889 * @memberof Control
1890 */
1891
1892 }, {
1893 key: "markList",
1894 get: function get() {
1895 var _this7 = this;
1896
1897 if (!this.marks) {
1898 return [];
1899 }
1900
1901 var getMarkByValue = function getMarkByValue(value, mark) {
1902 var pos = _this7.parseValue(value);
1903
1904 return _objectSpread({
1905 pos: pos,
1906 value: value,
1907 label: value,
1908 active: _this7.isActiveByPos(pos)
1909 }, mark);
1910 };
1911
1912 if (this.marks === true) {
1913 return this.getValues().map(function (value) {
1914 return getMarkByValue(value);
1915 });
1916 } else if (Object.prototype.toString.call(this.marks) === '[object Object]') {
1917 return Object.keys(this.marks).sort(function (a, b) {
1918 return +a - +b;
1919 }).map(function (value) {
1920 var item = _this7.marks[value];
1921 return getMarkByValue(value, typeof item !== 'string' ? item : {
1922 label: item
1923 });
1924 });
1925 } else if (Array.isArray(this.marks)) {
1926 return this.marks.map(function (value) {
1927 return getMarkByValue(value);
1928 });
1929 } else if (typeof this.marks === 'function') {
1930 return this.getValues().map(function (value) {
1931 return {
1932 value: value,
1933 result: _this7.marks(value)
1934 };
1935 }).filter(function (_ref3) {
1936 var result = _ref3.result;
1937 return !!result;
1938 }).map(function (_ref4) {
1939 var value = _ref4.value,
1940 result = _ref4.result;
1941 return getMarkByValue(value, result);
1942 });
1943 } else {
1944 return [];
1945 }
1946 }
1947 }, {
1948 key: "processArray",
1949 get: function get() {
1950 if (this.process) {
1951 if (typeof this.process === 'function') {
1952 return this.process(this.dotsPos);
1953 } else if (this.dotsPos.length === 1) {
1954 return [[0, this.dotsPos[0]]];
1955 } else if (this.dotsPos.length > 1) {
1956 return [[Math.min.apply(Math, _toConsumableArray(this.dotsPos)), Math.max.apply(Math, _toConsumableArray(this.dotsPos))]];
1957 }
1958 }
1959
1960 return [];
1961 }
1962 /**
1963 * The total number of values
1964 *
1965 * @type {number}
1966 * @memberof Control
1967 */
1968
1969 }, {
1970 key: "total",
1971 get: function get() {
1972 var total = 0;
1973
1974 if (this.data) {
1975 total = this.data.length - 1;
1976 } else {
1977 total = new Decimal(this.max).minus(this.min).divide(this.interval).toNumber();
1978 }
1979
1980 if (total - Math.floor(total) !== 0) {
1981 this.emitError(ERROR_TYPE.INTERVAL);
1982 return 0;
1983 }
1984
1985 return total;
1986 } // Distance between each value
1987
1988 }, {
1989 key: "gap",
1990 get: function get() {
1991 return 100 / this.total;
1992 } // The minimum distance between the two sliders
1993
1994 }, {
1995 key: "minRangeDir",
1996 get: function get() {
1997 if (this.cacheRangeDir[this.minRange]) {
1998 return this.cacheRangeDir[this.minRange];
1999 }
2000
2001 return this.cacheRangeDir[this.minRange] = this.getRangeDir(this.minRange);
2002 } // Maximum distance between the two sliders
2003
2004 }, {
2005 key: "maxRangeDir",
2006 get: function get() {
2007 if (this.cacheRangeDir[this.maxRange]) return this.cacheRangeDir[this.maxRange];
2008 return this.cacheRangeDir[this.maxRange] = this.getRangeDir(this.maxRange);
2009 }
2010 }, {
2011 key: "valuePosRange",
2012 get: function get() {
2013 var _this8 = this;
2014
2015 var dotsPos = this.dotsPos;
2016 var valuePosRange = [];
2017 dotsPos.forEach(function (pos, i) {
2018 valuePosRange.push([Math.max(_this8.minRange ? _this8.minRangeDir * i : 0, !_this8.enableCross ? dotsPos[i - 1] || 0 : 0, _this8.getDotRange(i, 'min', 0)), Math.min(_this8.minRange ? 100 - _this8.minRangeDir * (dotsPos.length - 1 - i) : 100, !_this8.enableCross ? dotsPos[i + 1] || 100 : 100, _this8.getDotRange(i, 'max', 100))]);
2019 });
2020 return valuePosRange;
2021 }
2022 }, {
2023 key: "dotsIndex",
2024 get: function get() {
2025 var _this9 = this;
2026
2027 return this.dotsValue.map(function (val) {
2028 return _this9.getIndexByValue(val);
2029 });
2030 }
2031 }]);
2032
2033 return Control;
2034}();
2035
2036
2037// CONCATENATED MODULE: ./lib/utils/state.ts
2038function state_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2039
2040function state_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
2041
2042function state_createClass(Constructor, protoProps, staticProps) { if (protoProps) state_defineProperties(Constructor.prototype, protoProps); if (staticProps) state_defineProperties(Constructor, staticProps); return Constructor; }
2043
2044var State = /*#__PURE__*/function () {
2045 function State(map) {
2046 state_classCallCheck(this, State);
2047
2048 this.states = 0;
2049 this.map = map;
2050 }
2051
2052 state_createClass(State, [{
2053 key: "add",
2054 value: function add(state) {
2055 this.states |= state;
2056 }
2057 }, {
2058 key: "delete",
2059 value: function _delete(state) {
2060 this.states &= ~state;
2061 }
2062 }, {
2063 key: "toggle",
2064 value: function toggle(state) {
2065 if (this.has(state)) {
2066 this.delete(state);
2067 } else {
2068 this.add(state);
2069 }
2070 }
2071 }, {
2072 key: "has",
2073 value: function has(state) {
2074 return !!(this.states & state);
2075 }
2076 }]);
2077
2078 return State;
2079}();
2080
2081
2082// EXTERNAL MODULE: ./lib/styles/slider.scss
2083var slider = __webpack_require__("4abb");
2084
2085// CONCATENATED MODULE: ./lib/vue-slider.tsx
2086
2087
2088function vue_slider_slicedToArray(arr, i) { return vue_slider_arrayWithHoles(arr) || vue_slider_iterableToArrayLimit(arr, i) || vue_slider_unsupportedIterableToArray(arr, i) || vue_slider_nonIterableRest(); }
2089
2090function vue_slider_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
2091
2092function vue_slider_iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
2093
2094function vue_slider_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
2095
2096function vue_slider_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
2097
2098function vue_slider_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { vue_slider_ownKeys(Object(source), true).forEach(function (key) { vue_slider_defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { vue_slider_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
2099
2100function vue_slider_defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2101
2102function vue_slider_toConsumableArray(arr) { return vue_slider_arrayWithoutHoles(arr) || vue_slider_iterableToArray(arr) || vue_slider_unsupportedIterableToArray(arr) || vue_slider_nonIterableSpread(); }
2103
2104function vue_slider_nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
2105
2106function vue_slider_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return vue_slider_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return vue_slider_arrayLikeToArray(o, minLen); }
2107
2108function vue_slider_iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
2109
2110function vue_slider_arrayWithoutHoles(arr) { if (Array.isArray(arr)) return vue_slider_arrayLikeToArray(arr); }
2111
2112function vue_slider_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
2113
2114function vue_slider_typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { vue_slider_typeof = function _typeof(obj) { return typeof obj; }; } else { vue_slider_typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return vue_slider_typeof(obj); }
2115
2116function vue_slider_classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2117
2118function vue_slider_defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
2119
2120function vue_slider_createClass(Constructor, protoProps, staticProps) { if (protoProps) vue_slider_defineProperties(Constructor.prototype, protoProps); if (staticProps) vue_slider_defineProperties(Constructor, staticProps); return Constructor; }
2121
2122function vue_slider_inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) vue_slider_setPrototypeOf(subClass, superClass); }
2123
2124function vue_slider_setPrototypeOf(o, p) { vue_slider_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return vue_slider_setPrototypeOf(o, p); }
2125
2126function vue_slider_createSuper(Derived) { var hasNativeReflectConstruct = vue_slider_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = vue_slider_getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = vue_slider_getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return vue_slider_possibleConstructorReturn(this, result); }; }
2127
2128function vue_slider_possibleConstructorReturn(self, call) { if (call && (vue_slider_typeof(call) === "object" || typeof call === "function")) { return call; } return vue_slider_assertThisInitialized(self); }
2129
2130function vue_slider_assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
2131
2132function vue_slider_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
2133
2134function vue_slider_getPrototypeOf(o) { vue_slider_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return vue_slider_getPrototypeOf(o); }
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145var SliderState = {
2146 None: 0,
2147 Drag: 1 << 1,
2148 Focus: 1 << 2
2149};
2150var DEFAULT_SLIDER_SIZE = 4;
2151
2152var vue_slider_VueSlider =
2153/** @class */
2154function () {
2155 var VueSlider = /*#__PURE__*/function (_Vue) {
2156 vue_slider_inherits(VueSlider, _Vue);
2157
2158 var _super = vue_slider_createSuper(VueSlider);
2159
2160 function VueSlider() {
2161 var _this;
2162
2163 vue_slider_classCallCheck(this, VueSlider);
2164
2165 _this = _super.apply(this, arguments);
2166 _this.states = new State(SliderState); // The width of the component is divided into one hundred, the width of each one.
2167
2168 _this.scale = 1; // Currently dragged slider index
2169
2170 _this.focusDotIndex = 0;
2171 return _this;
2172 }
2173
2174 vue_slider_createClass(VueSlider, [{
2175 key: "isObjectData",
2176 value: function isObjectData(data) {
2177 return !!data && Object.prototype.toString.call(data) === '[object Object]';
2178 }
2179 }, {
2180 key: "isObjectArrayData",
2181 value: function isObjectArrayData(data) {
2182 return !!data && Array.isArray(data) && data.length > 0 && vue_slider_typeof(data[0]) === 'object';
2183 }
2184 }, {
2185 key: "onValueChanged",
2186 value: function onValueChanged() {
2187 if (this.control && !this.states.has(SliderState.Drag) && this.isNotSync) {
2188 this.control.setValue(this.value);
2189 this.syncValueByPos();
2190 }
2191 }
2192 }, {
2193 key: "created",
2194 value: function created() {
2195 this.initControl();
2196 }
2197 }, {
2198 key: "mounted",
2199 value: function mounted() {
2200 this.bindEvent();
2201 }
2202 }, {
2203 key: "beforeDestroy",
2204 value: function beforeDestroy() {
2205 this.unbindEvent();
2206 }
2207 }, {
2208 key: "bindEvent",
2209 value: function bindEvent() {
2210 document.addEventListener('touchmove', this.dragMove, {
2211 passive: false
2212 });
2213 document.addEventListener('touchend', this.dragEnd, {
2214 passive: false
2215 });
2216 document.addEventListener('mousedown', this.blurHandle);
2217 document.addEventListener('mousemove', this.dragMove, {
2218 passive: false
2219 });
2220 document.addEventListener('mouseup', this.dragEnd);
2221 document.addEventListener('mouseleave', this.dragEnd);
2222 document.addEventListener('keydown', this.keydownHandle);
2223 }
2224 }, {
2225 key: "unbindEvent",
2226 value: function unbindEvent() {
2227 document.removeEventListener('touchmove', this.dragMove);
2228 document.removeEventListener('touchend', this.dragEnd);
2229 document.removeEventListener('mousedown', this.blurHandle);
2230 document.removeEventListener('mousemove', this.dragMove);
2231 document.removeEventListener('mouseup', this.dragEnd);
2232 document.removeEventListener('mouseleave', this.dragEnd);
2233 document.removeEventListener('keydown', this.keydownHandle);
2234 }
2235 }, {
2236 key: "setScale",
2237 value: function setScale() {
2238 var decimal = new Decimal(Math.floor(this.isHorizontal ? this.$refs.rail.offsetWidth : this.$refs.rail.offsetHeight));
2239
2240 if (this.zoom !== void 0) {
2241 decimal.multiply(this.zoom);
2242 }
2243
2244 decimal.divide(100);
2245 this.scale = decimal.toNumber();
2246 }
2247 }, {
2248 key: "initControl",
2249 value: function initControl() {
2250 var _this2 = this;
2251
2252 this.control = new control_Control({
2253 value: this.value,
2254 data: this.sliderData,
2255 enableCross: this.enableCross,
2256 fixed: this.fixed,
2257 max: this.max,
2258 min: this.min,
2259 interval: this.interval,
2260 minRange: this.minRange,
2261 maxRange: this.maxRange,
2262 order: this.order,
2263 marks: this.sliderMarks,
2264 included: this.included,
2265 process: this.process,
2266 adsorb: this.adsorb,
2267 dotOptions: this.dotOptions,
2268 onError: this.emitError
2269 });
2270 this.syncValueByPos();
2271 ['data', 'enableCross', 'fixed', 'max', 'min', 'interval', 'minRange', 'maxRange', 'order', 'marks', 'process', 'adsorb', 'included', 'dotOptions'].forEach(function (name) {
2272 _this2.$watch(name, function (val) {
2273 if (name === 'data' && Array.isArray(_this2.control.data) && Array.isArray(val) && _this2.control.data.length === val.length && val.every(function (item, index) {
2274 return item === _this2.control.data[index];
2275 })) {
2276 return false;
2277 }
2278
2279 switch (name) {
2280 case 'data':
2281 case 'dataLabel':
2282 case 'dataValue':
2283 _this2.control.data = _this2.sliderData;
2284 break;
2285
2286 case 'mark':
2287 _this2.control.marks = _this2.sliderMarks;
2288 break;
2289
2290 default:
2291 ;
2292 _this2.control[name] = val;
2293 }
2294
2295 if (['data', 'max', 'min', 'interval'].indexOf(name) > -1) {
2296 _this2.control.syncDotsPos();
2297 }
2298 });
2299 });
2300 }
2301 }, {
2302 key: "syncValueByPos",
2303 value: function syncValueByPos() {
2304 var values = this.control.dotsValue;
2305
2306 if (this.isDiff(values, Array.isArray(this.value) ? this.value : [this.value])) {
2307 this.$emit('change', values.length === 1 ? values[0] : vue_slider_toConsumableArray(values), this.focusDotIndex);
2308 }
2309 } // Slider value and component internal value are inconsistent
2310
2311 }, {
2312 key: "isDiff",
2313 value: function isDiff(value1, value2) {
2314 return value1.length !== value2.length || value1.some(function (val, index) {
2315 return val !== value2[index];
2316 });
2317 }
2318 }, {
2319 key: "emitError",
2320 value: function emitError(type, message) {
2321 if (!this.silent) {
2322 console.error("[VueSlider error]: ".concat(message));
2323 }
2324
2325 this.$emit('error', type, message);
2326 }
2327 /**
2328 * Get the drag range of the slider
2329 *
2330 * @private
2331 * @param {number} index slider index
2332 * @returns {[number, number]} range [start, end]
2333 * @memberof VueSlider
2334 */
2335
2336 }, {
2337 key: "dragStartOnProcess",
2338 value: function dragStartOnProcess(e) {
2339 if (this.dragOnClick) {
2340 this.setScale();
2341 var pos = this.getPosByEvent(e);
2342 var index = this.control.getRecentDot(pos);
2343
2344 if (this.dots[index].disabled) {
2345 return;
2346 }
2347
2348 this.dragStart(index);
2349 this.control.setDotPos(pos, this.focusDotIndex);
2350
2351 if (!this.lazy) {
2352 this.syncValueByPos();
2353 }
2354 }
2355 }
2356 }, {
2357 key: "dragStart",
2358 value: function dragStart(index) {
2359 this.focusDotIndex = index;
2360 this.setScale();
2361 this.states.add(SliderState.Drag);
2362 this.states.add(SliderState.Focus);
2363 this.$emit('drag-start', this.focusDotIndex);
2364 }
2365 }, {
2366 key: "dragMove",
2367 value: function dragMove(e) {
2368 if (!this.states.has(SliderState.Drag)) {
2369 return false;
2370 }
2371
2372 e.preventDefault();
2373 var pos = this.getPosByEvent(e);
2374 this.isCrossDot(pos);
2375 this.control.setDotPos(pos, this.focusDotIndex);
2376
2377 if (!this.lazy) {
2378 this.syncValueByPos();
2379 }
2380
2381 var value = this.control.dotsValue;
2382 this.$emit('dragging', value.length === 1 ? value[0] : vue_slider_toConsumableArray(value), this.focusDotIndex);
2383 } // If the component is sorted, then when the slider crosses, toggle the currently selected slider index
2384
2385 }, {
2386 key: "isCrossDot",
2387 value: function isCrossDot(pos) {
2388 if (this.canSort) {
2389 var curIndex = this.focusDotIndex;
2390 var curPos = pos;
2391
2392 if (curPos > this.dragRange[1]) {
2393 curPos = this.dragRange[1];
2394 this.focusDotIndex++;
2395 } else if (curPos < this.dragRange[0]) {
2396 curPos = this.dragRange[0];
2397 this.focusDotIndex--;
2398 }
2399
2400 if (curIndex !== this.focusDotIndex) {
2401 var dotVm = this.$refs["dot-".concat(this.focusDotIndex)];
2402
2403 if (dotVm && dotVm.$el) {
2404 dotVm.$el.focus();
2405 }
2406
2407 this.control.setDotPos(curPos, curIndex);
2408 }
2409 }
2410 }
2411 }, {
2412 key: "dragEnd",
2413 value: function dragEnd(e) {
2414 var _this3 = this;
2415
2416 if (!this.states.has(SliderState.Drag)) {
2417 return false;
2418 }
2419
2420 setTimeout(function () {
2421 if (_this3.lazy) {
2422 _this3.syncValueByPos();
2423 }
2424
2425 if (_this3.included && _this3.isNotSync) {
2426 _this3.control.setValue(_this3.value);
2427 } else {
2428 // Sync slider position
2429 _this3.control.syncDotsPos();
2430 }
2431
2432 _this3.states.delete(SliderState.Drag); // If useKeyboard is true, keep focus status after dragging
2433
2434
2435 if (!_this3.useKeyboard || 'targetTouches' in e) {
2436 _this3.states.delete(SliderState.Focus);
2437 }
2438
2439 _this3.$emit('drag-end', _this3.focusDotIndex);
2440 });
2441 }
2442 }, {
2443 key: "blurHandle",
2444 value: function blurHandle(e) {
2445 if (!this.states.has(SliderState.Focus) || !this.$refs.container || this.$refs.container.contains(e.target)) {
2446 return false;
2447 }
2448
2449 this.states.delete(SliderState.Focus);
2450 }
2451 }, {
2452 key: "clickHandle",
2453 value: function clickHandle(e) {
2454 if (!this.clickable || this.disabled) {
2455 return false;
2456 }
2457
2458 if (this.states.has(SliderState.Drag)) {
2459 return;
2460 }
2461
2462 this.setScale();
2463 var pos = this.getPosByEvent(e);
2464 this.setValueByPos(pos);
2465 }
2466 }, {
2467 key: "focus",
2468 value: function focus() {
2469 var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
2470 this.states.add(SliderState.Focus);
2471 this.focusDotIndex = index;
2472 }
2473 }, {
2474 key: "blur",
2475 value: function blur() {
2476 this.states.delete(SliderState.Focus);
2477 }
2478 }, {
2479 key: "getValue",
2480 value: function getValue() {
2481 var values = this.control.dotsValue;
2482 return values.length === 1 ? values[0] : values;
2483 }
2484 }, {
2485 key: "getIndex",
2486 value: function getIndex() {
2487 var indexes = this.control.dotsIndex;
2488 return indexes.length === 1 ? indexes[0] : indexes;
2489 }
2490 }, {
2491 key: "setValue",
2492 value: function setValue(value) {
2493 this.control.setValue(Array.isArray(value) ? vue_slider_toConsumableArray(value) : [value]);
2494 this.syncValueByPos();
2495 }
2496 }, {
2497 key: "setIndex",
2498 value: function setIndex(index) {
2499 var _this4 = this;
2500
2501 var value = Array.isArray(index) ? index.map(function (n) {
2502 return _this4.control.getValueByIndex(n);
2503 }) : this.control.getValueByIndex(index);
2504 this.setValue(value);
2505 }
2506 }, {
2507 key: "setValueByPos",
2508 value: function setValueByPos(pos) {
2509 var _this5 = this;
2510
2511 var index = this.control.getRecentDot(pos);
2512
2513 if (this.disabled || this.dots[index].disabled) {
2514 return false;
2515 }
2516
2517 this.focusDotIndex = index;
2518 this.control.setDotPos(pos, index);
2519 this.syncValueByPos();
2520
2521 if (this.useKeyboard) {
2522 this.states.add(SliderState.Focus);
2523 }
2524
2525 setTimeout(function () {
2526 if (_this5.included && _this5.isNotSync) {
2527 _this5.control.setValue(_this5.value);
2528 } else {
2529 _this5.control.syncDotsPos();
2530 }
2531 });
2532 }
2533 }, {
2534 key: "keydownHandle",
2535 value: function keydownHandle(e) {
2536 var _this6 = this;
2537
2538 if (!this.useKeyboard || !this.states.has(SliderState.Focus)) {
2539 return false;
2540 }
2541
2542 var isInclude = this.included && this.marks;
2543 var handleFunc = getKeyboardHandleFunc(e, {
2544 direction: this.direction,
2545 max: isInclude ? this.control.markList.length - 1 : this.control.total,
2546 min: 0,
2547 hook: this.keydownHook
2548 });
2549
2550 if (handleFunc) {
2551 e.preventDefault();
2552 var newIndex = -1;
2553 var pos = 0;
2554
2555 if (isInclude) {
2556 this.control.markList.some(function (mark, index) {
2557 if (mark.value === _this6.control.dotsValue[_this6.focusDotIndex]) {
2558 newIndex = handleFunc(index);
2559 return true;
2560 }
2561
2562 return false;
2563 });
2564
2565 if (newIndex < 0) {
2566 newIndex = 0;
2567 } else if (newIndex > this.control.markList.length - 1) {
2568 newIndex = this.control.markList.length - 1;
2569 }
2570
2571 pos = this.control.markList[newIndex].pos;
2572 } else {
2573 newIndex = handleFunc(this.control.getIndexByValue(this.control.dotsValue[this.focusDotIndex]));
2574 pos = this.control.parseValue(this.control.getValueByIndex(newIndex));
2575 }
2576
2577 this.isCrossDot(pos);
2578 this.control.setDotPos(pos, this.focusDotIndex);
2579 this.syncValueByPos();
2580 }
2581 }
2582 }, {
2583 key: "getPosByEvent",
2584 value: function getPosByEvent(e) {
2585 return getPos(e, this.$refs.rail, this.isReverse, this.zoom)[this.isHorizontal ? 'x' : 'y'] / this.scale;
2586 }
2587 }, {
2588 key: "renderSlot",
2589 value: function renderSlot(name, data, defaultSlot, isDefault) {
2590 var h = this.$createElement;
2591 var scopedSlot = this.$scopedSlots[name];
2592 return scopedSlot ? isDefault ? scopedSlot(data) : h("template", {
2593 "slot": name
2594 }, [scopedSlot(data)]) : defaultSlot;
2595 }
2596 }, {
2597 key: "render",
2598 value: function render() {
2599 var _this7 = this;
2600
2601 var h = arguments[0];
2602 return h("div", helper_default()([{
2603 "ref": "container",
2604 "class": this.containerClasses,
2605 "style": this.containerStyles,
2606 "on": {
2607 "click": this.clickHandle,
2608 "touchstart": this.dragStartOnProcess,
2609 "mousedown": this.dragStartOnProcess
2610 }
2611 }, this.$attrs]), [h("div", {
2612 "ref": "rail",
2613 "class": "vue-slider-rail",
2614 "style": this.railStyle
2615 }, [this.processArray.map(function (item, index) {
2616 return _this7.renderSlot('process', item, h("div", {
2617 "class": "vue-slider-process",
2618 "key": "process-".concat(index),
2619 "style": item.style
2620 }), true);
2621 }), this.sliderMarks ? h("div", {
2622 "class": "vue-slider-marks"
2623 }, [this.control.markList.map(function (mark, index) {
2624 var _style;
2625
2626 return _this7.renderSlot('mark', mark, h("vue-slider-mark", {
2627 "key": "mark-".concat(index),
2628 "attrs": {
2629 "mark": mark,
2630 "hideLabel": _this7.hideLabel,
2631 "stepStyle": _this7.stepStyle,
2632 "stepActiveStyle": _this7.stepActiveStyle,
2633 "labelStyle": _this7.labelStyle,
2634 "labelActiveStyle": _this7.labelActiveStyle
2635 },
2636 "style": (_style = {}, vue_slider_defineProperty(_style, _this7.isHorizontal ? 'height' : 'width', '100%'), vue_slider_defineProperty(_style, _this7.isHorizontal ? 'width' : 'height', _this7.tailSize), vue_slider_defineProperty(_style, _this7.mainDirection, "".concat(mark.pos, "%")), _style),
2637 "on": {
2638 "pressLabel": function pressLabel(pos) {
2639 return _this7.clickable && _this7.setValueByPos(pos);
2640 }
2641 }
2642 }, [_this7.renderSlot('step', mark, null), _this7.renderSlot('label', mark, null)]), true);
2643 })]) : null, this.dots.map(function (dot, index) {
2644 var _ref;
2645
2646 return h("vue-slider-dot", {
2647 "ref": "dot-".concat(index),
2648 "key": "dot-".concat(index),
2649 "attrs": vue_slider_objectSpread({
2650 "value": dot.value,
2651 "disabled": dot.disabled,
2652 "focus": dot.focus,
2653 "dot-style": [dot.style, dot.disabled ? dot.disabledStyle : null, dot.focus ? dot.focusStyle : null],
2654 "tooltip": dot.tooltip || _this7.tooltip,
2655 "tooltip-style": [_this7.tooltipStyle, dot.tooltipStyle, dot.disabled ? dot.tooltipDisabledStyle : null, dot.focus ? dot.tooltipFocusStyle : null],
2656 "tooltip-formatter": Array.isArray(_this7.sliderTooltipFormatter) ? _this7.sliderTooltipFormatter[index] : _this7.sliderTooltipFormatter,
2657 "tooltip-placement": _this7.tooltipDirections[index],
2658 "role": "slider",
2659 "aria-valuenow": dot.value,
2660 "aria-valuemin": _this7.min,
2661 "aria-valuemax": _this7.max,
2662 "aria-orientation": _this7.isHorizontal ? 'horizontal' : 'vertical',
2663 "tabindex": "0"
2664 }, _this7.dotAttrs),
2665 "style": [_this7.dotBaseStyle, (_ref = {}, vue_slider_defineProperty(_ref, _this7.mainDirection, "".concat(dot.pos, "%")), vue_slider_defineProperty(_ref, "transition", "".concat(_this7.mainDirection, " ").concat(_this7.animateTime, "s")), _ref)],
2666 "on": {
2667 "drag-start": function dragStart() {
2668 return _this7.dragStart(index);
2669 }
2670 },
2671 "nativeOn": {
2672 "focus": function focus() {
2673 return !dot.disabled && _this7.focus(index);
2674 },
2675 "blur": function blur() {
2676 return _this7.blur();
2677 }
2678 }
2679 }, [_this7.renderSlot('dot', dot, null), _this7.renderSlot('tooltip', dot, null)]);
2680 }), this.renderSlot('default', {
2681 value: this.getValue()
2682 }, null, true)])]);
2683 }
2684 }, {
2685 key: "tailSize",
2686 get: function get() {
2687 return getSize((this.isHorizontal ? this.height : this.width) || DEFAULT_SLIDER_SIZE);
2688 }
2689 }, {
2690 key: "containerClasses",
2691 get: function get() {
2692 return ['vue-slider', ["vue-slider-".concat(this.direction)], {
2693 'vue-slider-disabled': this.disabled
2694 }];
2695 }
2696 }, {
2697 key: "containerStyles",
2698 get: function get() {
2699 var _ref2 = Array.isArray(this.dotSize) ? this.dotSize : [this.dotSize, this.dotSize],
2700 _ref3 = vue_slider_slicedToArray(_ref2, 2),
2701 dotWidth = _ref3[0],
2702 dotHeight = _ref3[1];
2703
2704 var containerWidth = this.width ? getSize(this.width) : this.isHorizontal ? 'auto' : getSize(DEFAULT_SLIDER_SIZE);
2705 var containerHeight = this.height ? getSize(this.height) : this.isHorizontal ? getSize(DEFAULT_SLIDER_SIZE) : 'auto';
2706 return {
2707 padding: this.contained ? "".concat(dotHeight / 2, "px ").concat(dotWidth / 2, "px") : this.isHorizontal ? "".concat(dotHeight / 2, "px 0") : "0 ".concat(dotWidth / 2, "px"),
2708 width: containerWidth,
2709 height: containerHeight
2710 };
2711 }
2712 }, {
2713 key: "processArray",
2714 get: function get() {
2715 var _this8 = this;
2716
2717 return this.control.processArray.map(function (_ref4, index) {
2718 var _objectSpread2;
2719
2720 var _ref5 = vue_slider_slicedToArray(_ref4, 3),
2721 start = _ref5[0],
2722 end = _ref5[1],
2723 style = _ref5[2];
2724
2725 if (start > end) {
2726 /* tslint:disable:semicolon */
2727 ;
2728 var _ref6 = [end, start];
2729 start = _ref6[0];
2730 end = _ref6[1];
2731 }
2732
2733 var sizeStyleKey = _this8.isHorizontal ? 'width' : 'height';
2734 return {
2735 start: start,
2736 end: end,
2737 index: index,
2738 style: vue_slider_objectSpread(vue_slider_objectSpread((_objectSpread2 = {}, vue_slider_defineProperty(_objectSpread2, _this8.isHorizontal ? 'height' : 'width', '100%'), vue_slider_defineProperty(_objectSpread2, _this8.isHorizontal ? 'top' : 'left', 0), vue_slider_defineProperty(_objectSpread2, _this8.mainDirection, "".concat(start, "%")), vue_slider_defineProperty(_objectSpread2, sizeStyleKey, "".concat(end - start, "%")), vue_slider_defineProperty(_objectSpread2, "transitionProperty", "".concat(sizeStyleKey, ",").concat(_this8.mainDirection)), vue_slider_defineProperty(_objectSpread2, "transitionDuration", "".concat(_this8.animateTime, "s")), _objectSpread2), _this8.processStyle), style)
2739 };
2740 });
2741 }
2742 }, {
2743 key: "dotBaseStyle",
2744 get: function get() {
2745 var _ref7 = Array.isArray(this.dotSize) ? this.dotSize : [this.dotSize, this.dotSize],
2746 _ref8 = vue_slider_slicedToArray(_ref7, 2),
2747 dotWidth = _ref8[0],
2748 dotHeight = _ref8[1];
2749
2750 var dotPos;
2751
2752 if (this.isHorizontal) {
2753 dotPos = vue_slider_defineProperty({
2754 transform: "translate(".concat(this.isReverse ? '50%' : '-50%', ", -50%)"),
2755 '-WebkitTransform': "translate(".concat(this.isReverse ? '50%' : '-50%', ", -50%)"),
2756 top: '50%'
2757 }, this.direction === 'ltr' ? 'left' : 'right', '0');
2758 } else {
2759 dotPos = vue_slider_defineProperty({
2760 transform: "translate(-50%, ".concat(this.isReverse ? '50%' : '-50%', ")"),
2761 '-WebkitTransform': "translate(-50%, ".concat(this.isReverse ? '50%' : '-50%', ")"),
2762 left: '50%'
2763 }, this.direction === 'btt' ? 'bottom' : 'top', '0');
2764 }
2765
2766 return vue_slider_objectSpread({
2767 width: "".concat(dotWidth, "px"),
2768 height: "".concat(dotHeight, "px")
2769 }, dotPos);
2770 }
2771 }, {
2772 key: "mainDirection",
2773 get: function get() {
2774 switch (this.direction) {
2775 case 'ltr':
2776 return 'left';
2777
2778 case 'rtl':
2779 return 'right';
2780
2781 case 'btt':
2782 return 'bottom';
2783
2784 case 'ttb':
2785 return 'top';
2786 }
2787 }
2788 }, {
2789 key: "isHorizontal",
2790 get: function get() {
2791 return this.direction === 'ltr' || this.direction === 'rtl';
2792 }
2793 }, {
2794 key: "isReverse",
2795 get: function get() {
2796 return this.direction === 'rtl' || this.direction === 'btt';
2797 }
2798 }, {
2799 key: "tooltipDirections",
2800 get: function get() {
2801 var dir = this.tooltipPlacement || (this.isHorizontal ? 'top' : 'left');
2802
2803 if (Array.isArray(dir)) {
2804 return dir;
2805 } else {
2806 return this.dots.map(function () {
2807 return dir;
2808 });
2809 }
2810 }
2811 }, {
2812 key: "dots",
2813 get: function get() {
2814 var _this9 = this;
2815
2816 return this.control.dotsPos.map(function (pos, index) {
2817 return vue_slider_objectSpread({
2818 pos: pos,
2819 index: index,
2820 value: _this9.control.dotsValue[index],
2821 focus: _this9.states.has(SliderState.Focus) && _this9.focusDotIndex === index,
2822 disabled: _this9.disabled,
2823 style: _this9.dotStyle
2824 }, (Array.isArray(_this9.dotOptions) ? _this9.dotOptions[index] : _this9.dotOptions) || {});
2825 });
2826 }
2827 }, {
2828 key: "animateTime",
2829 get: function get() {
2830 if (this.states.has(SliderState.Drag)) {
2831 return 0;
2832 }
2833
2834 return this.duration;
2835 }
2836 }, {
2837 key: "canSort",
2838 get: function get() {
2839 return this.order && !this.minRange && !this.maxRange && !this.fixed && this.enableCross;
2840 }
2841 }, {
2842 key: "sliderData",
2843 get: function get() {
2844 var _this10 = this;
2845
2846 if (this.isObjectArrayData(this.data)) {
2847 return this.data.map(function (obj) {
2848 return obj[_this10.dataValue];
2849 });
2850 } else if (this.isObjectData(this.data)) {
2851 return Object.keys(this.data);
2852 } else {
2853 return this.data;
2854 }
2855 }
2856 }, {
2857 key: "sliderMarks",
2858 get: function get() {
2859 var _this11 = this;
2860
2861 if (this.marks) {
2862 return this.marks;
2863 } else if (this.isObjectArrayData(this.data)) {
2864 return function (val) {
2865 var mark = {
2866 label: val
2867 };
2868
2869 _this11.data.some(function (obj) {
2870 if (obj[_this11.dataValue] === val) {
2871 mark.label = obj[_this11.dataLabel];
2872 return true;
2873 }
2874
2875 return false;
2876 });
2877
2878 return mark;
2879 };
2880 } else if (this.isObjectData(this.data)) {
2881 return this.data;
2882 }
2883 }
2884 }, {
2885 key: "sliderTooltipFormatter",
2886 get: function get() {
2887 var _this12 = this;
2888
2889 if (this.tooltipFormatter) {
2890 return this.tooltipFormatter;
2891 } else if (this.isObjectArrayData(this.data)) {
2892 return function (val) {
2893 var tooltipText = '' + val;
2894
2895 _this12.data.some(function (obj) {
2896 if (obj[_this12.dataValue] === val) {
2897 tooltipText = obj[_this12.dataLabel];
2898 return true;
2899 }
2900
2901 return false;
2902 });
2903
2904 return tooltipText;
2905 };
2906 } else if (this.isObjectData(this.data)) {
2907 var data = this.data;
2908 return function (val) {
2909 return data[val];
2910 };
2911 }
2912 }
2913 }, {
2914 key: "isNotSync",
2915 get: function get() {
2916 var values = this.control.dotsValue;
2917 return Array.isArray(this.value) ? this.value.length !== values.length || this.value.some(function (val, index) {
2918 return val !== values[index];
2919 }) : this.value !== values[0];
2920 }
2921 }, {
2922 key: "dragRange",
2923 get: function get() {
2924 var prevDot = this.dots[this.focusDotIndex - 1];
2925 var nextDot = this.dots[this.focusDotIndex + 1];
2926 return [prevDot ? prevDot.pos : -Infinity, nextDot ? nextDot.pos : Infinity];
2927 }
2928 }]);
2929
2930 return VueSlider;
2931 }(external_commonjs_vue_commonjs2_vue_root_Vue_amd_vue_default.a);
2932
2933 __decorate([Model('change', {
2934 default: 0
2935 })], VueSlider.prototype, "value", void 0);
2936
2937 __decorate([Prop({
2938 type: Boolean,
2939 default: false
2940 })], VueSlider.prototype, "silent", void 0);
2941
2942 __decorate([Prop({
2943 default: 'ltr',
2944 validator: function validator(dir) {
2945 return ['ltr', 'rtl', 'ttb', 'btt'].indexOf(dir) > -1;
2946 }
2947 })], VueSlider.prototype, "direction", void 0);
2948
2949 __decorate([Prop({
2950 type: [Number, String]
2951 })], VueSlider.prototype, "width", void 0);
2952
2953 __decorate([Prop({
2954 type: [Number, String]
2955 })], VueSlider.prototype, "height", void 0);
2956
2957 __decorate([Prop({
2958 default: 14
2959 })], VueSlider.prototype, "dotSize", void 0);
2960
2961 __decorate([Prop({
2962 default: false
2963 })], VueSlider.prototype, "contained", void 0);
2964
2965 __decorate([Prop({
2966 type: Number,
2967 default: 0
2968 })], VueSlider.prototype, "min", void 0);
2969
2970 __decorate([Prop({
2971 type: Number,
2972 default: 100
2973 })], VueSlider.prototype, "max", void 0);
2974
2975 __decorate([Prop({
2976 type: Number,
2977 default: 1
2978 })], VueSlider.prototype, "interval", void 0);
2979
2980 __decorate([Prop({
2981 type: Boolean,
2982 default: false
2983 })], VueSlider.prototype, "disabled", void 0);
2984
2985 __decorate([Prop({
2986 type: Boolean,
2987 default: true
2988 })], VueSlider.prototype, "clickable", void 0);
2989
2990 __decorate([Prop({
2991 type: Boolean,
2992 default: false
2993 })], VueSlider.prototype, "dragOnClick", void 0);
2994
2995 __decorate([Prop({
2996 type: Number,
2997 default: 0.5
2998 })], VueSlider.prototype, "duration", void 0);
2999
3000 __decorate([Prop({
3001 type: [Object, Array]
3002 })], VueSlider.prototype, "data", void 0);
3003
3004 __decorate([Prop({
3005 type: String,
3006 default: 'value'
3007 })], VueSlider.prototype, "dataValue", void 0);
3008
3009 __decorate([Prop({
3010 type: String,
3011 default: 'label'
3012 })], VueSlider.prototype, "dataLabel", void 0);
3013
3014 __decorate([Prop({
3015 type: Boolean,
3016 default: false
3017 })], VueSlider.prototype, "lazy", void 0);
3018
3019 __decorate([Prop({
3020 type: String,
3021 validator: function validator(val) {
3022 return ['none', 'always', 'focus', 'hover', 'active'].indexOf(val) > -1;
3023 },
3024 default: 'active'
3025 })], VueSlider.prototype, "tooltip", void 0);
3026
3027 __decorate([Prop({
3028 type: [String, Array],
3029 validator: function validator(data) {
3030 return (Array.isArray(data) ? data : [data]).every(function (val) {
3031 return ['top', 'right', 'bottom', 'left'].indexOf(val) > -1;
3032 });
3033 }
3034 })], VueSlider.prototype, "tooltipPlacement", void 0);
3035
3036 __decorate([Prop({
3037 type: [String, Array, Function]
3038 })], VueSlider.prototype, "tooltipFormatter", void 0);
3039
3040 __decorate([Prop({
3041 type: Boolean,
3042 default: true
3043 })], VueSlider.prototype, "useKeyboard", void 0);
3044
3045 __decorate([Prop(Function)], VueSlider.prototype, "keydownHook", void 0);
3046
3047 __decorate([Prop({
3048 type: Boolean,
3049 default: true
3050 })], VueSlider.prototype, "enableCross", void 0);
3051
3052 __decorate([Prop({
3053 type: Boolean,
3054 default: false
3055 })], VueSlider.prototype, "fixed", void 0);
3056
3057 __decorate([Prop({
3058 type: Boolean,
3059 default: true
3060 })], VueSlider.prototype, "order", void 0);
3061
3062 __decorate([Prop(Number)], VueSlider.prototype, "minRange", void 0);
3063
3064 __decorate([Prop(Number)], VueSlider.prototype, "maxRange", void 0);
3065
3066 __decorate([Prop({
3067 type: [Boolean, Object, Array, Function],
3068 default: false
3069 })], VueSlider.prototype, "marks", void 0);
3070
3071 __decorate([Prop({
3072 type: [Boolean, Function],
3073 default: true
3074 })], VueSlider.prototype, "process", void 0);
3075
3076 __decorate([Prop({
3077 type: [Number]
3078 })], VueSlider.prototype, "zoom", void 0);
3079
3080 __decorate([Prop(Boolean)], VueSlider.prototype, "included", void 0);
3081
3082 __decorate([Prop(Boolean)], VueSlider.prototype, "adsorb", void 0);
3083
3084 __decorate([Prop(Boolean)], VueSlider.prototype, "hideLabel", void 0);
3085
3086 __decorate([Prop()], VueSlider.prototype, "dotOptions", void 0);
3087
3088 __decorate([Prop()], VueSlider.prototype, "dotAttrs", void 0);
3089
3090 __decorate([Prop()], VueSlider.prototype, "railStyle", void 0);
3091
3092 __decorate([Prop()], VueSlider.prototype, "processStyle", void 0);
3093
3094 __decorate([Prop()], VueSlider.prototype, "dotStyle", void 0);
3095
3096 __decorate([Prop()], VueSlider.prototype, "tooltipStyle", void 0);
3097
3098 __decorate([Prop()], VueSlider.prototype, "stepStyle", void 0);
3099
3100 __decorate([Prop()], VueSlider.prototype, "stepActiveStyle", void 0);
3101
3102 __decorate([Prop()], VueSlider.prototype, "labelStyle", void 0);
3103
3104 __decorate([Prop()], VueSlider.prototype, "labelActiveStyle", void 0);
3105
3106 __decorate([Watch('value')], VueSlider.prototype, "onValueChanged", null);
3107
3108 VueSlider = __decorate([vue_class_component_common_default()({
3109 name: 'VueSlider',
3110 data: function data() {
3111 return {
3112 control: null
3113 };
3114 },
3115 components: {
3116 VueSliderDot: vue_slider_dot,
3117 VueSliderMark: vue_slider_mark
3118 }
3119 })], VueSlider);
3120 return VueSlider;
3121}();
3122
3123/* harmony default export */ var vue_slider = (vue_slider_VueSlider);
3124// CONCATENATED MODULE: ./lib/index.ts
3125/* tslint:disable:import-spacing */
3126
3127
3128
3129
3130vue_slider.VueSliderMark = vue_slider_mark;
3131vue_slider.VueSliderDot = vue_slider_dot;
3132/* harmony default export */ var lib = (vue_slider);
3133
3134// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
3135
3136
3137/* harmony default export */ var entry_lib = __webpack_exports__["default"] = (lib);
3138
3139
3140
3141/***/ })
3142
3143/******/ })["default"];
3144//# sourceMappingURL=vue-slider-component.common.js.map
\No newline at end of file