@lan-ui/lan-ui
Version:
A fantastic mobile ui lib implement by Vue
1,789 lines (1,449 loc) • 156 kB
JavaScript
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["slide"] = factory();
else
root["lan"] = root["lan"] || {}, root["lan"]["slide"] = factory();
})(typeof self !== 'undefined' ? self : this, function() {
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "./";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 450);
/******/ })
/************************************************************************/
/******/ ({
/***/ 0:
/***/ (function(module, exports) {
var core = module.exports = { version: '2.6.11' };
if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
/***/ }),
/***/ 1:
/***/ (function(module, exports) {
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
var global = module.exports = typeof window != 'undefined' && window.Math == Math
? window : typeof self != 'undefined' && self.Math == Math ? self
// eslint-disable-next-line no-new-func
: Function('return this')();
if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
/***/ }),
/***/ 10:
/***/ (function(module, exports, __webpack_require__) {
// to indexed object, toObject with fallback for non-array-like ES3 strings
var IObject = __webpack_require__(30);
var defined = __webpack_require__(15);
module.exports = function (it) {
return IObject(defined(it));
};
/***/ }),
/***/ 109:
/***/ (function(module, exports, __webpack_require__) {
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
if (true) {
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
} else if (typeof exports !== "undefined") {
factory(module, exports);
} else {
var mod = {
exports: {}
};
factory(mod, mod.exports);
global.scroll = mod.exports;
}
})(this, function (module, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = {
props: {
options: {
type: Object,
default: function _default() {
return {};
}
}
}
};
module.exports = exports["default"];
});
/***/ }),
/***/ 11:
/***/ (function(module, exports, __webpack_require__) {
var isObject = __webpack_require__(7);
module.exports = function (it) {
if (!isObject(it)) throw TypeError(it + ' is not an object!');
return it;
};
/***/ }),
/***/ 12:
/***/ (function(module, exports, __webpack_require__) {
var global = __webpack_require__(1);
var core = __webpack_require__(0);
var ctx = __webpack_require__(28);
var hide = __webpack_require__(8);
var has = __webpack_require__(5);
var PROTOTYPE = 'prototype';
var $export = function (type, name, source) {
var IS_FORCED = type & $export.F;
var IS_GLOBAL = type & $export.G;
var IS_STATIC = type & $export.S;
var IS_PROTO = type & $export.P;
var IS_BIND = type & $export.B;
var IS_WRAP = type & $export.W;
var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
var expProto = exports[PROTOTYPE];
var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];
var key, own, out;
if (IS_GLOBAL) source = name;
for (key in source) {
// contains in native
own = !IS_FORCED && target && target[key] !== undefined;
if (own && has(exports, key)) continue;
// export native or passed
out = own ? target[key] : source[key];
// prevent global pollution for namespaces
exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
// bind timers to global for call from export context
: IS_BIND && own ? ctx(out, global)
// wrap global constructors for prevent change them in library
: IS_WRAP && target[key] == out ? (function (C) {
var F = function (a, b, c) {
if (this instanceof C) {
switch (arguments.length) {
case 0: return new C();
case 1: return new C(a);
case 2: return new C(a, b);
} return new C(a, b, c);
} return C.apply(this, arguments);
};
F[PROTOTYPE] = C[PROTOTYPE];
return F;
// make static versions for prototype methods
})(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
// export proto methods to core.%CONSTRUCTOR%.methods.%NAME%
if (IS_PROTO) {
(exports.virtual || (exports.virtual = {}))[key] = out;
// export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%
if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);
}
}
};
// type bitmap
$export.F = 1; // forced
$export.G = 2; // global
$export.S = 4; // static
$export.P = 8; // proto
$export.B = 16; // bind
$export.W = 32; // wrap
$export.U = 64; // safe
$export.R = 128; // real proto method for `library`
module.exports = $export;
/***/ }),
/***/ 128:
/***/ (function(module, exports, __webpack_require__) {
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
if (true) {
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(134), __webpack_require__(141), __webpack_require__(38), __webpack_require__(50)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
} else if (typeof exports !== "undefined") {
factory(module, exports, require('babel-runtime/helpers/slicedToArray'), require('babel-runtime/core-js/object/entries'), require('../../common/helpers/debug'), require('../../common/lang/string'));
} else {
var mod = {
exports: {}
};
factory(mod, mod.exports, global.slicedToArray, global.entries, global.debug, global.string);
global.deprecated = mod.exports;
}
})(this, function (module, exports, _slicedToArray2, _entries, _debug, _string) {
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _slicedToArray3 = _interopRequireDefault(_slicedToArray2);
var _entries2 = _interopRequireDefault(_entries);
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
exports.default = {
methods: {
_checkDeprecated: function _checkDeprecated() {
var _this = this;
var props = this.$options.props;
var componentName = this.$options.name;
(0, _entries2.default)(props).forEach(function (_ref) {
var _ref2 = (0, _slicedToArray3.default)(_ref, 2),
key = _ref2[0],
prop = _ref2[1];
var deprecated = prop.deprecated;
if (deprecated && _this[key] !== undefined) {
(0, _debug.tip)('The property "' + (0, _string.kebab)(key) + '" is deprecated, please use the recommended property "' + deprecated.replacedBy + '" to replace it. Details could be found in https://didi.github.io/cube-ui/#/en-US/docs/' + componentName.substr(5) + '#cube-Propsconfiguration-anchor', componentName);
}
});
}
},
mounted: function mounted() {
this._checkDeprecated();
}
};
module.exports = exports['default'];
});
/***/ }),
/***/ 13:
/***/ (function(module, exports) {
module.exports = function (bitmap, value) {
return {
enumerable: !(bitmap & 1),
configurable: !(bitmap & 2),
writable: !(bitmap & 4),
value: value
};
};
/***/ }),
/***/ 134:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
var _isIterable2 = __webpack_require__(135);
var _isIterable3 = _interopRequireDefault(_isIterable2);
var _getIterator2 = __webpack_require__(138);
var _getIterator3 = _interopRequireDefault(_getIterator2);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.default = function () {
function sliceIterator(arr, i) {
var _arr = [];
var _n = true;
var _d = false;
var _e = undefined;
try {
for (var _i = (0, _getIterator3.default)(arr), _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"]) _i["return"]();
} finally {
if (_d) throw _e;
}
}
return _arr;
}
return function (arr, i) {
if (Array.isArray(arr)) {
return arr;
} else if ((0, _isIterable3.default)(Object(arr))) {
return sliceIterator(arr, i);
} else {
throw new TypeError("Invalid attempt to destructure non-iterable instance");
}
};
}();
/***/ }),
/***/ 135:
/***/ (function(module, exports, __webpack_require__) {
module.exports = { "default": __webpack_require__(136), __esModule: true };
/***/ }),
/***/ 136:
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(47);
__webpack_require__(40);
module.exports = __webpack_require__(137);
/***/ }),
/***/ 137:
/***/ (function(module, exports, __webpack_require__) {
var classof = __webpack_require__(66);
var ITERATOR = __webpack_require__(3)('iterator');
var Iterators = __webpack_require__(19);
module.exports = __webpack_require__(0).isIterable = function (it) {
var O = Object(it);
return O[ITERATOR] !== undefined
|| '@@iterator' in O
// eslint-disable-next-line no-prototype-builtins
|| Iterators.hasOwnProperty(classof(O));
};
/***/ }),
/***/ 138:
/***/ (function(module, exports, __webpack_require__) {
module.exports = { "default": __webpack_require__(139), __esModule: true };
/***/ }),
/***/ 139:
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(47);
__webpack_require__(40);
module.exports = __webpack_require__(140);
/***/ }),
/***/ 14:
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.14 / 15.2.3.14 Object.keys(O)
var $keys = __webpack_require__(33);
var enumBugKeys = __webpack_require__(24);
module.exports = Object.keys || function keys(O) {
return $keys(O, enumBugKeys);
};
/***/ }),
/***/ 140:
/***/ (function(module, exports, __webpack_require__) {
var anObject = __webpack_require__(11);
var get = __webpack_require__(74);
module.exports = __webpack_require__(0).getIterator = function (it) {
var iterFn = get(it);
if (typeof iterFn != 'function') throw TypeError(it + ' is not iterable!');
return anObject(iterFn.call(it));
};
/***/ }),
/***/ 141:
/***/ (function(module, exports, __webpack_require__) {
module.exports = { "default": __webpack_require__(142), __esModule: true };
/***/ }),
/***/ 142:
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(143);
module.exports = __webpack_require__(0).Object.entries;
/***/ }),
/***/ 143:
/***/ (function(module, exports, __webpack_require__) {
// https://github.com/tc39/proposal-object-values-entries
var $export = __webpack_require__(12);
var $entries = __webpack_require__(144)(true);
$export($export.S, 'Object', {
entries: function entries(it) {
return $entries(it);
}
});
/***/ }),
/***/ 144:
/***/ (function(module, exports, __webpack_require__) {
var DESCRIPTORS = __webpack_require__(2);
var getKeys = __webpack_require__(14);
var toIObject = __webpack_require__(10);
var isEnum = __webpack_require__(25).f;
module.exports = function (isEntries) {
return function (it) {
var O = toIObject(it);
var keys = getKeys(O);
var length = keys.length;
var i = 0;
var result = [];
var key;
while (length > i) {
key = keys[i++];
if (!DESCRIPTORS || isEnum.call(O, key)) {
result.push(isEntries ? [key, O[key]] : O[key]);
}
}
return result;
};
};
/***/ }),
/***/ 15:
/***/ (function(module, exports) {
// 7.2.1 RequireObjectCoercible(argument)
module.exports = function (it) {
if (it == undefined) throw TypeError("Can't call method on " + it);
return it;
};
/***/ }),
/***/ 16:
/***/ (function(module, exports) {
// 7.1.4 ToInteger
var ceil = Math.ceil;
var floor = Math.floor;
module.exports = function (it) {
return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
};
/***/ }),
/***/ 17:
/***/ (function(module, exports) {
module.exports = true;
/***/ }),
/***/ 18:
/***/ (function(module, exports) {
var id = 0;
var px = Math.random();
module.exports = function (key) {
return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
};
/***/ }),
/***/ 19:
/***/ (function(module, exports) {
module.exports = {};
/***/ }),
/***/ 2:
/***/ (function(module, exports, __webpack_require__) {
// Thank's IE8 for his funny defineProperty
module.exports = !__webpack_require__(9)(function () {
return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
});
/***/ }),
/***/ 20:
/***/ (function(module, exports, __webpack_require__) {
// 7.1.13 ToObject(argument)
var defined = __webpack_require__(15);
module.exports = function (it) {
return Object(defined(it));
};
/***/ }),
/***/ 201:
/***/ (function(module, exports, __webpack_require__) {
function injectStyle (ssrContext) {
__webpack_require__(258)
}
var Component = __webpack_require__(4)(
/* script */
__webpack_require__(259),
/* template */
__webpack_require__(260),
/* styles */
injectStyle,
/* scopeId */
null,
/* moduleIdentifier (server only) */
null
)
module.exports = Component.exports
/***/ }),
/***/ 21:
/***/ (function(module, exports, __webpack_require__) {
var shared = __webpack_require__(23)('keys');
var uid = __webpack_require__(18);
module.exports = function (key) {
return shared[key] || (shared[key] = uid(key));
};
/***/ }),
/***/ 22:
/***/ (function(module, exports) {
var toString = {}.toString;
module.exports = function (it) {
return toString.call(it).slice(8, -1);
};
/***/ }),
/***/ 23:
/***/ (function(module, exports, __webpack_require__) {
var core = __webpack_require__(0);
var global = __webpack_require__(1);
var SHARED = '__core-js_shared__';
var store = global[SHARED] || (global[SHARED] = {});
(module.exports = function (key, value) {
return store[key] || (store[key] = value !== undefined ? value : {});
})('versions', []).push({
version: core.version,
mode: __webpack_require__(17) ? 'pure' : 'global',
copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
});
/***/ }),
/***/ 24:
/***/ (function(module, exports) {
// IE 8- don't enum bug keys
module.exports = (
'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
).split(',');
/***/ }),
/***/ 25:
/***/ (function(module, exports) {
exports.f = {}.propertyIsEnumerable;
/***/ }),
/***/ 255:
/***/ (function(module, exports, __webpack_require__) {
function injectStyle (ssrContext) {
__webpack_require__(256)
}
var Component = __webpack_require__(4)(
/* script */
__webpack_require__(257),
/* template */
__webpack_require__(261),
/* styles */
injectStyle,
/* scopeId */
null,
/* moduleIdentifier (server only) */
null
)
module.exports = Component.exports
/***/ }),
/***/ 256:
/***/ (function(module, exports) {
// removed by extract-text-webpack-plugin
/***/ }),
/***/ 257:
/***/ (function(module, exports, __webpack_require__) {
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
if (true) {
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(41), __webpack_require__(201), __webpack_require__(81), __webpack_require__(109), __webpack_require__(128)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
} else if (typeof exports !== "undefined") {
factory(module, exports, require('babel-runtime/core-js/object/assign'), require('./slide-item.vue'), require('better-scroll'), require('../../common/mixins/scroll'), require('../../common/mixins/deprecated'));
} else {
var mod = {
exports: {}
};
factory(mod, mod.exports, global.assign, global.slideItem, global.betterScroll, global.scroll, global.deprecated);
global.slide = mod.exports;
}
})(this, function (module, exports, _assign, _slideItem, _betterScroll, _scroll, _deprecated) {
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _assign2 = _interopRequireDefault(_assign);
var _slideItem2 = _interopRequireDefault(_slideItem);
var _betterScroll2 = _interopRequireDefault(_betterScroll);
var _scroll2 = _interopRequireDefault(_scroll);
var _deprecated2 = _interopRequireDefault(_deprecated);
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
var COMPONENT_NAME = 'cube-slide';
var EVENT_CHANGE = 'change';
var EVENT_SELECT = 'click';
var EVENT_SCROLL_END = 'scroll-end';
var EVENT_SCROLL = 'scroll';
var DIRECTION_H = 'horizontal';
var DIRECTION_V = 'vertical';
var DEFAULT_OPTIONS = {
momentum: false,
click: true,
observeDOM: false,
bounce: false
};
exports.default = {
name: COMPONENT_NAME,
mixins: [_scroll2.default, _deprecated2.default],
props: {
data: {
type: Array,
default: function _default() {
return [];
}
},
initialIndex: {
type: Number,
default: 0
},
loop: {
type: Boolean,
default: true
},
threshold: {
type: Number,
default: 0.3
},
speed: {
type: Number,
default: 400
},
autoPlay: {
type: Boolean,
default: true
},
interval: {
type: Number,
default: 4000
},
showDots: {
type: Boolean,
default: true
},
direction: {
type: String,
default: DIRECTION_H
},
allowVertical: {
type: Boolean,
default: undefined,
deprecated: {
replacedBy: 'options'
}
},
stopPropagation: {
type: Boolean,
default: undefined,
deprecated: {
replacedBy: 'options'
}
},
refreshResetCurrent: {
type: Boolean,
default: true
}
},
data: function data() {
return {
dots: 0,
currentPageIndex: this.initialIndex || 0
};
},
created: function created() {
var _this = this;
this._dataWatchers = [];
var needRefreshProps = ['data', 'loop', 'autoPlay', 'options.eventPassthrough', 'threshold', 'speed', 'allowVertical'];
needRefreshProps.forEach(function (key) {
_this._dataWatchers.push(_this.$watch(key, function () {
if (key === 'data') {
_this._destroy();
}
_this.$nextTick(function () {
_this.refresh();
});
}));
});
},
watch: {
initialIndex: function initialIndex(newIndex) {
if (newIndex !== this.currentPageIndex) {
this._goToPage(newIndex);
}
}
},
methods: {
clickItem: function clickItem(item, index) {
this.$emit(EVENT_SELECT, item, index);
},
refresh: function refresh() {
if (this.slide === null) {
return;
}
this._destroy();
clearTimeout(this._timer);
if (this.slide && this.refreshResetCurrent) {
this.currentPageIndex = 0;
}
this._updateSlideDom();
if (this.showDots) {
this._initDots();
}
if (this.currentPageIndex >= this.dots.length) {
this.currentPageIndex = this.dots.length - 1;
}
this._initSlide();
if (this.autoPlay) {
this._play();
}
},
_destroy: function _destroy() {
this.slide && this.slide.destroy();
},
_refresh: function _refresh() {
this._updateSlideDom(true);
this.slide.refresh();
},
_updateSlideDom: function _updateSlideDom(isResize) {
this._setSlideStyle(isResize);
},
_setSlideStyle: function _setSlideStyle(isResize) {
this.children = this.$refs.slideGroup.children;
var target = this.direction === DIRECTION_H ? 'width' : 'height';
var allSize = 0;
var slideSize = this.$refs.slide['client' + (target[0].toUpperCase() + target.slice(1))];
var len = this.children.length;
for (var i = 0; i < len; i++) {
var child = this.children[i];
child.style[target] = slideSize + 'px';
allSize += slideSize;
}
if (this.loop && !isResize && len > 1) {
allSize += 2 * slideSize;
}
this.$refs.slideGroup.style[target] = allSize + 'px';
},
_initSlide: function _initSlide() {
var _this2 = this;
var eventPassthrough = this.direction === DIRECTION_H && this.allowVertical ? DIRECTION_V : '';
var options = (0, _assign2.default)({}, DEFAULT_OPTIONS, {
scrollX: this.direction === DIRECTION_H,
scrollY: this.direction === DIRECTION_V,
eventPassthrough: eventPassthrough,
snap: {
loop: this.loop,
threshold: this.threshold,
speed: this.speed
},
stopPropagation: this.stopPropagation
}, this.options);
this.slide = new _betterScroll2.default(this.$refs.slide, options);
this.slide.on('scrollEnd', this._onScrollEnd);
this._goToPage(this.currentPageIndex, 0);
if (this.options.listenScroll && this.options.probeType === 3) {
this.slide.on('scroll', this._onScroll);
}
var slideEl = this.$refs.slide;
slideEl.removeEventListener('touchend', this._touchEndEvent, false);
this._touchEndEvent = function () {
if (_this2.autoPlay) {
_this2._play();
}
};
slideEl.addEventListener('touchend', this._touchEndEvent, false);
this.slide.on('beforeScrollStart', function () {
if (_this2.autoPlay) {
clearTimeout(_this2._timer);
}
});
},
_onScrollEnd: function _onScrollEnd() {
var _slide$getCurrentPage = this.slide.getCurrentPage(),
pageX = _slide$getCurrentPage.pageX,
pageY = _slide$getCurrentPage.pageY;
var pageIndex = this.direction === DIRECTION_H ? pageX : pageY;
if (this.currentPageIndex !== pageIndex) {
this.currentPageIndex = pageIndex;
this.$emit(EVENT_CHANGE, pageIndex);
}
this.$emit(EVENT_SCROLL_END, pageIndex);
if (this.autoPlay) {
this._play();
}
},
_onScroll: function _onScroll(pos) {
this.$emit(EVENT_SCROLL, pos);
},
_initDots: function _initDots() {
this.dots = new Array(this.children.length);
},
_play: function _play() {
var _this3 = this;
clearTimeout(this._timer);
this._timer = setTimeout(function () {
_this3.slide.next();
}, this.interval);
},
_deactivated: function _deactivated() {
clearTimeout(this._timer);
clearTimeout(this._resizeTimer);
window.removeEventListener('resize', this._resizeHandler);
var slideEl = this.$refs.slide;
if (slideEl) {
slideEl.removeEventListener('touchend', this._touchEndEvent, false);
}
},
_resizeHandler: function _resizeHandler() {
var _this4 = this;
if (!this.slide) {
return;
}
clearTimeout(this._resizeTimer);
this._resizeTimer = setTimeout(function () {
if (_this4.slide.isInTransition) {
_this4._onScrollEnd();
} else {
if (_this4.autoPlay) {
_this4._play();
}
}
_this4._refresh();
}, 60);
},
_goToPage: function _goToPage(index, time) {
if (this.direction === DIRECTION_H) {
this.slide && this.slide.goToPage(index, 0, time);
} else if (this.direction === DIRECTION_V) {
this.slide && this.slide.goToPage(0, index, time);
}
}
},
mounted: function mounted() {
var _this5 = this;
this.$nextTick(function () {
_this5.refresh();
});
window.addEventListener('resize', this._resizeHandler);
},
activated: function activated() {
if (this.autoPlay) {
this._play();
}
window.addEventListener('resize', this._resizeHandler);
},
deactivated: function deactivated() {
this._deactivated();
},
destroyed: function destroyed() {
this._deactivated();
this._destroy();
this.slide = null;
this._dataWatchers.forEach(function (cancalWatcher) {
cancalWatcher();
});
this._dataWatchers = null;
},
components: {
CubeSlideItem: _slideItem2.default
}
};
module.exports = exports['default'];
});
/***/ }),
/***/ 258:
/***/ (function(module, exports) {
// removed by extract-text-webpack-plugin
/***/ }),
/***/ 259:
/***/ (function(module, exports, __webpack_require__) {
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
if (true) {
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
} else if (typeof exports !== "undefined") {
factory(module, exports);
} else {
var mod = {
exports: {}
};
factory(mod, mod.exports);
global.slideItem = mod.exports;
}
})(this, function (module, exports) {
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var COMPONENT_NAME = 'cube-slide-item';
exports.default = {
name: COMPONENT_NAME,
props: {
item: {
type: Object,
default: function _default() {
return {};
}
}
}
};
module.exports = exports['default'];
});
/***/ }),
/***/ 26:
/***/ (function(module, exports, __webpack_require__) {
// 7.1.1 ToPrimitive(input [, PreferredType])
var isObject = __webpack_require__(7);
// instead of the ES6 spec version, we didn't implement @@toPrimitive case
// and the second argument - flag - preferred type is a string
module.exports = function (it, S) {
if (!isObject(it)) return it;
var fn, val;
if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
throw TypeError("Can't convert object to primitive value");
};
/***/ }),
/***/ 260:
/***/ (function(module, exports) {
module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
return _c('div', {
staticClass: "cube-slide-item"
}, [_vm._t("default", [_c('a', {
attrs: {
"href": _vm.item.url
}
}, [_c('img', {
attrs: {
"src": _vm.item.image
}
})])])], 2)
},staticRenderFns: []}
/***/ }),
/***/ 261:
/***/ (function(module, exports) {
module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
return _c('div', {
ref: "slide",
staticClass: "cube-slide"
}, [_c('div', {
ref: "slideGroup",
staticClass: "cube-slide-group"
}, [_vm._t("default", _vm._l((_vm.data), function(item, index) {
return _c('cube-slide-item', {
key: index,
attrs: {
"item": item
},
nativeOn: {
"click": function($event) {
return _vm.clickItem(item, index)
}
}
})
}))], 2), _vm._v(" "), (_vm.showDots) ? _c('div', {
staticClass: "cube-slide-dots"
}, [_vm._t("dots", _vm._l((_vm.dots), function(item, index) {
return _c('span', {
key: index,
class: {
active: _vm.currentPageIndex === index
}
})
}), {
"current": _vm.currentPageIndex,
"dots": _vm.dots
})], 2) : _vm._e()])
},staticRenderFns: []}
/***/ }),
/***/ 27:
/***/ (function(module, exports, __webpack_require__) {
var isObject = __webpack_require__(7);
var document = __webpack_require__(1).document;
// typeof document.createElement is 'object' in old IE
var is = isObject(document) && isObject(document.createElement);
module.exports = function (it) {
return is ? document.createElement(it) : {};
};
/***/ }),
/***/ 28:
/***/ (function(module, exports, __webpack_require__) {
// optional / simple context binding
var aFunction = __webpack_require__(29);
module.exports = function (fn, that, length) {
aFunction(fn);
if (that === undefined) return fn;
switch (length) {
case 1: return function (a) {
return fn.call(that, a);
};
case 2: return function (a, b) {
return fn.call(that, a, b);
};
case 3: return function (a, b, c) {
return fn.call(that, a, b, c);
};
}
return function (/* ...args */) {
return fn.apply(that, arguments);
};
};
/***/ }),
/***/ 29:
/***/ (function(module, exports) {
module.exports = function (it) {
if (typeof it != 'function') throw TypeError(it + ' is not a function!');
return it;
};
/***/ }),
/***/ 3:
/***/ (function(module, exports, __webpack_require__) {
var store = __webpack_require__(23)('wks');
var uid = __webpack_require__(18);
var Symbol = __webpack_require__(1).Symbol;
var USE_SYMBOL = typeof Symbol == 'function';
var $exports = module.exports = function (name) {
return store[name] || (store[name] =
USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
};
$exports.store = store;
/***/ }),
/***/ 30:
/***/ (function(module, exports, __webpack_require__) {
// fallback for non-array-like ES3 and non-enumerable old V8 strings
var cof = __webpack_require__(22);
// eslint-disable-next-line no-prototype-builtins
module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
return cof(it) == 'String' ? it.split('') : Object(it);
};
/***/ }),
/***/ 31:
/***/ (function(module, exports, __webpack_require__) {
module.exports = !__webpack_require__(2) && !__webpack_require__(9)(function () {
return Object.defineProperty(__webpack_require__(27)('div'), 'a', { get: function () { return 7; } }).a != 7;
});
/***/ }),
/***/ 32:
/***/ (function(module, exports, __webpack_require__) {
var def = __webpack_require__(6).f;
var has = __webpack_require__(5);
var TAG = __webpack_require__(3)('toStringTag');
module.exports = function (it, tag, stat) {
if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
};
/***/ }),
/***/ 33:
/***/ (function(module, exports, __webpack_require__) {
var has = __webpack_require__(5);
var toIObject = __webpack_require__(10);
var arrayIndexOf = __webpack_require__(36)(false);
var IE_PROTO = __webpack_require__(21)('IE_PROTO');
module.exports = function (object, names) {
var O = toIObject(object);
var i = 0;
var result = [];
var key;
for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
// Don't enum bug & hidden keys
while (names.length > i) if (has(O, key = names[i++])) {
~arrayIndexOf(result, key) || result.push(key);
}
return result;
};
/***/ }),
/***/ 34:
/***/ (function(module, exports) {
exports.f = Object.getOwnPropertySymbols;
/***/ }),
/***/ 35:
/***/ (function(module, exports, __webpack_require__) {
// 7.1.15 ToLength
var toInteger = __webpack_require__(16);
var min = Math.min;
module.exports = function (it) {
return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
};
/***/ }),
/***/ 36:
/***/ (function(module, exports, __webpack_require__) {
// false -> Array#indexOf
// true -> Array#includes
var toIObject = __webpack_require__(10);
var toLength = __webpack_require__(35);
var toAbsoluteIndex = __webpack_require__(37);
module.exports = function (IS_INCLUDES) {
return function ($this, el, fromIndex) {
var O = toIObject($this);
var length = toLength(O.length);
var index = toAbsoluteIndex(fromIndex, length);
var value;
// Array#includes uses SameValueZero equality algorithm
// eslint-disable-next-line no-self-compare
if (IS_INCLUDES && el != el) while (length > index) {
value = O[index++];
// eslint-disable-next-line no-self-compare
if (value != value) return true;
// Array#indexOf ignores holes, Array#includes - not
} else for (;length > index; index++) if (IS_INCLUDES || index in O) {
if (O[index] === el) return IS_INCLUDES || index || 0;
} return !IS_INCLUDES && -1;
};
};
/***/ }),
/***/ 37:
/***/ (function(module, exports, __webpack_require__) {
var toInteger = __webpack_require__(16);
var max = Math.max;
var min = Math.min;
module.exports = function (index, length) {
index = toInteger(index);
return index < 0 ? max(index + length, 0) : min(index, length);
};
/***/ }),
/***/ 38:
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(process) {var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
if (true) {
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [exports], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
} else if (typeof exports !== "undefined") {
factory(exports);
} else {
var mod = {
exports: {}
};
factory(mod.exports);
global.debug = mod.exports;
}
})(this, function (exports) {
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var warn = exports.warn = function warn(msg, componentName) {
if (process.env.NODE_ENV !== 'production') {
var component = componentName ? '<' + componentName + '> ' : '';
console.error('[Cube warn]: ' + component + msg);
}
};
var tip = exports.tip = function tip(msg, componentName) {
if (process.env.NODE_ENV !== 'production') {
var component = componentName ? '<' + componentName + '> ' : '';
console.warn('[Cube tip]: ' + component + msg);
}
};
});
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(67)))
/***/ }),
/***/ 39:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var LIBRARY = __webpack_require__(17);
var $export = __webpack_require__(12);
var redefine = __webpack_require__(43);
var hide = __webpack_require__(8);
var Iterators = __webpack_require__(19);
var $iterCreate = __webpack_require__(56);
var setToStringTag = __webpack_require__(32);
var getPrototypeOf = __webpack_require__(58);
var ITERATOR = __webpack_require__(3)('iterator');
var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
var FF_ITERATOR = '@@iterator';
var KEYS = 'keys';
var VALUES = 'values';
var returnThis = function () { return this; };
module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
$iterCreate(Constructor, NAME, next);
var getMethod = function (kind) {
if (!BUGGY && kind in proto) return proto[kind];
switch (kind) {
case KEYS: return function keys() { return new Constructor(this, kind); };
case VALUES: return function values() { return new Constructor(this, kind); };
} return function entries() { return new Constructor(this, kind); };
};
var TAG = NAME + ' Iterator';
var DEF_VALUES = DEFAULT == VALUES;
var VALUES_BUG = false;
var proto = Base.prototype;
var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
var $default = $native || getMethod(DEFAULT);
var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
var methods, key, IteratorPrototype;
// Fix native
if ($anyNative) {
IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
// Set @@toStringTag to native iterators
setToStringTag(IteratorPrototype, TAG, true);
// fix for some old engines
if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
}
}
// fix Array#{values, @@iterator}.name in V8 / FF
if (DEF_VALUES && $native && $native.name !== VALUES) {
VALUES_BUG = true;
$default = function values() { return $native.call(this); };
}
// Define iterator
if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
hide(proto, ITERATOR, $default);
}
// Plug for library
Iterators[NAME] = $default;
Iterators[TAG] = returnThis;
if (DEFAULT) {
methods = {
values: DEF_VALUES ? $default : getMethod(VALUES),
keys: IS_SET ? $default : getMethod(KEYS),
entries: $entries
};
if (FORCED) for (key in methods) {
if (!(key in proto)) redefine(proto, key, methods[key]);
} else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
}
return methods;
};
/***/ }),
/***/ 4:
/***/ (function(module, exports) {
/* globals __VUE_SSR_CONTEXT__ */
// this module is a runtime utility for cleaner component module output and will
// be included in the final webpack user bundle
module.exports = function normalizeComponent (
rawScriptExports,
compiledTemplate,
injectStyles,
scopeId,
moduleIdentifier /* server only */
) {
var esModule
var scriptExports = rawScriptExports = rawScriptExports || {}
// ES6 modules interop
var type = typeof rawScriptExports.default
if (type === 'object' || type === 'function') {
esModule = rawScriptExports
scriptExports = rawScriptExports.default
}
// Vue.extend constructor export interop
var options = typeof scriptExports === 'function'
? scriptExports.options
: scriptExports
// render functions
if (compiledTemplate) {
options.render = compiledTemplate.render
options.staticRenderFns = compiledTemplate.staticRenderFns
}
// scopedId
if (scopeId) {
options._scopeId = scopeId
}
var hook
if (moduleIdentifier) { // server build
hook = function (context) {
// 2.3 injection
context =
context || // cached call
(this.$vnode && this.$vnode.ssrContext) || // stateful
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
// 2.2 with runInNewContext: true
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
context = __VUE_SSR_CONTEXT__
}
// inject component styles
if (injectStyles) {
injectStyles.call(this, context)
}
// register component module identifier for async chunk inferrence
if (context && context._registeredComponents) {
context._registeredComponents.add(moduleIdentifier)
}
}
// used by ssr in case component is cached and beforeCreate
// never gets called
options._ssrRegister = hook
} else if (injectStyles) {
hook = injectStyles
}
if (hook) {
var functional = options.functional
var existing = functional
? options.render
: options.beforeCreate
if (!functional) {
// inject component registration as beforeCreate hook
options.beforeCreate = existing
? [].concat(existing, hook)
: [hook]
} else {
// register for functioal component in vue file
options.render = function renderWithStyleInjection (h, context) {
hook.call(context)
return existing(h, context)
}
}
}
return {
esModule: esModule,
exports: scriptExports,
options: options
}
}
/***/ }),
/***/ 40:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
var $at = __webpack_require__(55)(true);
// 21.1.3.27 String.prototype[@@iterator]()
__webpack_require__(39)(String, 'String', function (iterated) {
this._t = String(iterated); // target
this._i = 0; // next index
// 21.1.5.2.1 %StringIteratorPrototype%.next()
}, function () {
var O = this._t;
var index = this._i;
var point;
if (index >= O.length) return { value: undefined, done: true };
point = $at(O, index);
this._i += point.length;
return { value: point, done: false };
});
/***/ }),
/***/ 41:
/***/ (function(module, exports, __webpack_require__) {
module.exports = { "default": __webpack_require__(51), __esModule: true };
/***/ }),
/***/ 43:
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(8);
/***/ }),
/***/ 44:
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
var anObject = __webpack_require__(11);
var dPs = __webpack_require__(57);
var enumBugKeys = __webpack_require__(24);
var IE_PROTO = __webpack_require__(21)('IE_PROTO');
var Empty = function () { /* empty */ };
var PROTOTYPE = 'prototype';
// Create object with fake `null` prototype: use iframe Object with cleared prototype
var createDict = function () {
// Thrash, waste and sodomy: IE GC bug
var iframe = __webpack_require__(27)('iframe');
var i = enumBugKeys.length;
var lt = '<';
var gt = '>';
var iframeDocument;
iframe.style.display = 'none';
__webpack_require__(49).appendChild(iframe);
iframe.src = 'javascript:'; // eslint-disable-line no-script-url
// createDict = iframe.contentWindow.Object;
// html.removeChild(iframe);
iframeDocument = iframe.contentWindow.document;
iframeDocument.open();
iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
iframeDocument.close();
createDict = iframeDocument.F;
while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
return createDict();
};
module.exports = Object.create || function create(O, Properties) {
var result;
if (O !== null) {
Empty[PROTOTYPE] = anObject(O);
result = new Empty();
Empty[PROTOTYPE] = null;
// add "__proto__" for Object.getPrototypeOf polyfill
result[IE_PROTO] = O;
} else result = createDict();
return Properties === undefined ? result : dPs(result, Properties);
};
/***/ }),
/***/ 450:
/***/ (function(module, exports, __webpack_require__) {
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
if (true) {
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [module, exports, __webpack_require__(255), __webpack_require__(201)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
} else if (typeof exports !== "undefined") {
factory(module, exports, require('../../components/slide/slide.vue'), require('../../components/slide/slide-item.vue'));
} else {
var mod = {
exports: {}
};
factory(mod, mod.exports, global.slide, global.slideItem);
global.index = mod.exports;
}
})(this, function (module, exports, _slide, _slideItem) {
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _slide2 = _interopRequireDefault(_slide);
var _slideItem2 = _interopRequireDefault(_slideItem);
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
_slide2.default.install = function (Vue) {
Vue.component(_slide2.default.name, _slide2.default);
Vue.component(_slideItem2.default.name, _slideItem2.default);
};
_slide2.default.Item = _slideItem2.default;
exports.default = _slide2.default;
module.exports = exports['default'];
});
/***/ }),
/***/ 47:
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(59);
var global = __webpack_require__(1);
var hide = __webpack_require__(8);
var Iterators = __webpack_require__(19);
var TO_STRING_TAG = __webpack_require__(3)('toStringTag');
var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +
'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +
'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +
'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +
'TextTrackList,TouchList').split(',');
for (var i = 0; i < DOMIterables.length; i++) {
var NAME = DOMIterables[i];
var Collection = global[NAME];
var proto = Collection && Collection.prototype;
if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
Iterators[NAME] = Iterators.Array;
}
/***/ }),
/***/ 49:
/***/ (function(module, exports, __webpack_require__) {
var document = __webpack_require__(1).document;
module.exports = document && document.documentElement;
/***/ }),
/***/ 5:
/***/ (function(module, exports) {
var hasOwnProperty = {}.hasOwnProperty;
module.exports = function (it, key) {
return hasOwnProperty.call(it, key);
};
/***/ }),
/***/ 50:
/***/ (function(module, exports, __webpack_require__) {
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
if (true) {
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [exports], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
} else if (typeof exports !== "undefined") {
factory(exports);
} else {
var mod = {
exports: {}
};
factory