13005 lines
362 KiB
JavaScript
13005 lines
362 KiB
JavaScript
/*!
|
|
* Creative Elements - live Theme & Page Builder
|
|
* Copyright 2019-2023 WebshopWorks.com & Elementor.com
|
|
*/
|
|
|
|
/******/ (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, { enumerable: true, get: getter });
|
|
/******/ }
|
|
/******/ };
|
|
/******/
|
|
/******/ // define __esModule on exports
|
|
/******/ __webpack_require__.r = function(exports) {
|
|
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
/******/ }
|
|
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
/******/ };
|
|
/******/
|
|
/******/ // create a fake namespace object
|
|
/******/ // mode & 1: value is a module id, require it
|
|
/******/ // mode & 2: merge all properties of value into the ns
|
|
/******/ // mode & 4: return value when already ns object
|
|
/******/ // mode & 8|1: behave like require
|
|
/******/ __webpack_require__.t = function(value, mode) {
|
|
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
/******/ if(mode & 8) return value;
|
|
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
/******/ var ns = Object.create(null);
|
|
/******/ __webpack_require__.r(ns);
|
|
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
/******/ return ns;
|
|
/******/ };
|
|
/******/
|
|
/******/ // 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 = 636);
|
|
/******/ })
|
|
/************************************************************************/
|
|
/******/ ([
|
|
/* 0 */
|
|
/***/ (function(module, exports) {
|
|
|
|
function _interopRequireDefault(obj) {
|
|
return obj && obj.__esModule ? obj : {
|
|
"default": obj
|
|
};
|
|
}
|
|
|
|
module.exports = _interopRequireDefault;
|
|
|
|
/***/ }),
|
|
/* 1 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
module.exports = __webpack_require__(148);
|
|
|
|
/***/ }),
|
|
/* 2 */
|
|
/***/ (function(module, exports) {
|
|
|
|
function _classCallCheck(instance, Constructor) {
|
|
if (!(instance instanceof Constructor)) {
|
|
throw new TypeError("Cannot call a class as a function");
|
|
}
|
|
}
|
|
|
|
module.exports = _classCallCheck;
|
|
|
|
/***/ }),
|
|
/* 3 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var _Object$defineProperty = __webpack_require__(1);
|
|
|
|
function _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);
|
|
}
|
|
}
|
|
|
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
return Constructor;
|
|
}
|
|
|
|
module.exports = _createClass;
|
|
|
|
/***/ }),
|
|
/* 4 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var _Object$create = __webpack_require__(123);
|
|
|
|
var setPrototypeOf = __webpack_require__(118);
|
|
|
|
function _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);
|
|
}
|
|
|
|
module.exports = _inherits;
|
|
|
|
/***/ }),
|
|
/* 5 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var _Reflect$construct = __webpack_require__(93);
|
|
|
|
var getPrototypeOf = __webpack_require__(14);
|
|
|
|
var isNativeReflectConstruct = __webpack_require__(131);
|
|
|
|
var possibleConstructorReturn = __webpack_require__(163);
|
|
|
|
function _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);
|
|
};
|
|
}
|
|
|
|
module.exports = _createSuper;
|
|
|
|
/***/ }),
|
|
/* 6 */
|
|
/***/ (function(module, exports) {
|
|
|
|
var core = module.exports = { version: '2.6.11' };
|
|
if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
|
|
|
|
|
|
/***/ }),
|
|
/* 7 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var global = __webpack_require__(8);
|
|
var core = __webpack_require__(6);
|
|
var ctx = __webpack_require__(30);
|
|
var hide = __webpack_require__(24);
|
|
var has = __webpack_require__(19);
|
|
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;
|
|
|
|
|
|
/***/ }),
|
|
/* 8 */
|
|
/***/ (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
|
|
|
|
|
|
/***/ }),
|
|
/* 9 */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = function (it) {
|
|
return typeof it === 'object' ? it !== null : typeof it === 'function';
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 10 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var store = __webpack_require__(71)('wks');
|
|
var uid = __webpack_require__(51);
|
|
var Symbol = __webpack_require__(8).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;
|
|
|
|
|
|
/***/ }),
|
|
/* 11 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var store = __webpack_require__(63)('wks');
|
|
var uid = __webpack_require__(64);
|
|
var Symbol = __webpack_require__(15).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;
|
|
|
|
|
|
/***/ }),
|
|
/* 12 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var isObject = __webpack_require__(9);
|
|
module.exports = function (it) {
|
|
if (!isObject(it)) throw TypeError(it + ' is not an object!');
|
|
return it;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 13 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// Thank's IE8 for his funny defineProperty
|
|
module.exports = !__webpack_require__(20)(function () {
|
|
return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 14 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var _Object$getPrototypeOf = __webpack_require__(150);
|
|
|
|
var _Object$setPrototypeOf = __webpack_require__(112);
|
|
|
|
function _getPrototypeOf(o) {
|
|
module.exports = _getPrototypeOf = _Object$setPrototypeOf ? _Object$getPrototypeOf : function _getPrototypeOf(o) {
|
|
return o.__proto__ || _Object$getPrototypeOf(o);
|
|
};
|
|
return _getPrototypeOf(o);
|
|
}
|
|
|
|
module.exports = _getPrototypeOf;
|
|
|
|
/***/ }),
|
|
/* 15 */
|
|
/***/ (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
|
|
|
|
|
|
/***/ }),
|
|
/* 16 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var anObject = __webpack_require__(12);
|
|
var IE8_DOM_DEFINE = __webpack_require__(111);
|
|
var toPrimitive = __webpack_require__(69);
|
|
var dP = Object.defineProperty;
|
|
|
|
exports.f = __webpack_require__(13) ? Object.defineProperty : function defineProperty(O, P, Attributes) {
|
|
anObject(O);
|
|
P = toPrimitive(P, true);
|
|
anObject(Attributes);
|
|
if (IE8_DOM_DEFINE) try {
|
|
return dP(O, P, Attributes);
|
|
} catch (e) { /* empty */ }
|
|
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
|
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
return O;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 17 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
// 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined)
|
|
var $export = __webpack_require__(32);
|
|
var $find = __webpack_require__(119)(5);
|
|
var KEY = 'find';
|
|
var forced = true;
|
|
// Shouldn't skip holes
|
|
if (KEY in []) Array(1)[KEY](function () { forced = false; });
|
|
$export($export.P + $export.F * forced, 'Array', {
|
|
find: function find(callbackfn /* , that = undefined */) {
|
|
return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
}
|
|
});
|
|
__webpack_require__(78)(KEY);
|
|
|
|
|
|
/***/ }),
|
|
/* 18 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var isObject = __webpack_require__(26);
|
|
module.exports = function (it) {
|
|
if (!isObject(it)) throw TypeError(it + ' is not an object!');
|
|
return it;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 19 */
|
|
/***/ (function(module, exports) {
|
|
|
|
var hasOwnProperty = {}.hasOwnProperty;
|
|
module.exports = function (it, key) {
|
|
return hasOwnProperty.call(it, key);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 20 */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = function (exec) {
|
|
try {
|
|
return !!exec();
|
|
} catch (e) {
|
|
return true;
|
|
}
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 21 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// to indexed object, toObject with fallback for non-array-like ES3 strings
|
|
var IObject = __webpack_require__(104);
|
|
var defined = __webpack_require__(56);
|
|
module.exports = function (it) {
|
|
return IObject(defined(it));
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 22 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var _Object$getOwnPropertyDescriptor = __webpack_require__(137);
|
|
|
|
var _Reflect$get = __webpack_require__(195);
|
|
|
|
var superPropBase = __webpack_require__(198);
|
|
|
|
function _get(target, property, receiver) {
|
|
if (typeof Reflect !== "undefined" && _Reflect$get) {
|
|
module.exports = _get = _Reflect$get;
|
|
} else {
|
|
module.exports = _get = function _get(target, property, receiver) {
|
|
var base = superPropBase(target, property);
|
|
if (!base) return;
|
|
|
|
var desc = _Object$getOwnPropertyDescriptor(base, property);
|
|
|
|
if (desc.get) {
|
|
return desc.get.call(receiver);
|
|
}
|
|
|
|
return desc.value;
|
|
};
|
|
}
|
|
|
|
return _get(target, property, receiver || target);
|
|
}
|
|
|
|
module.exports = _get;
|
|
|
|
/***/ }),
|
|
/* 23 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
module.exports = __webpack_require__(199);
|
|
|
|
/***/ }),
|
|
/* 24 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var dP = __webpack_require__(16);
|
|
var createDesc = __webpack_require__(43);
|
|
module.exports = __webpack_require__(13) ? function (object, key, value) {
|
|
return dP.f(object, key, createDesc(1, value));
|
|
} : function (object, key, value) {
|
|
object[key] = value;
|
|
return object;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 25 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// Thank's IE8 for his funny defineProperty
|
|
module.exports = !__webpack_require__(28)(function () {
|
|
return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 26 */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = function (it) {
|
|
return typeof it === 'object' ? it !== null : typeof it === 'function';
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 27 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var dP = __webpack_require__(44);
|
|
var createDesc = __webpack_require__(91);
|
|
module.exports = __webpack_require__(25) ? function (object, key, value) {
|
|
return dP.f(object, key, createDesc(1, value));
|
|
} : function (object, key, value) {
|
|
object[key] = value;
|
|
return object;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 28 */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = function (exec) {
|
|
try {
|
|
return !!exec();
|
|
} catch (e) {
|
|
return true;
|
|
}
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 29 */
|
|
/***/ (function(module, exports) {
|
|
|
|
function _typeof(obj) {
|
|
"@babel/helpers - typeof";
|
|
|
|
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
module.exports = _typeof = function _typeof(obj) {
|
|
return typeof obj;
|
|
};
|
|
} else {
|
|
module.exports = _typeof = function _typeof(obj) {
|
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
};
|
|
}
|
|
|
|
return _typeof(obj);
|
|
}
|
|
|
|
module.exports = _typeof;
|
|
|
|
/***/ }),
|
|
/* 30 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// optional / simple context binding
|
|
var aFunction = __webpack_require__(42);
|
|
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);
|
|
};
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 31 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// 7.1.13 ToObject(argument)
|
|
var defined = __webpack_require__(56);
|
|
module.exports = function (it) {
|
|
return Object(defined(it));
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 32 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var global = __webpack_require__(15);
|
|
var core = __webpack_require__(45);
|
|
var hide = __webpack_require__(27);
|
|
var redefine = __webpack_require__(33);
|
|
var ctx = __webpack_require__(58);
|
|
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 target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];
|
|
var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
|
|
var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});
|
|
var key, own, out, exp;
|
|
if (IS_GLOBAL) source = name;
|
|
for (key in source) {
|
|
// contains in native
|
|
own = !IS_FORCED && target && target[key] !== undefined;
|
|
// export native or passed
|
|
out = (own ? target : source)[key];
|
|
// bind timers to global for call from export context
|
|
exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
|
|
// extend global
|
|
if (target) redefine(target, key, out, type & $export.U);
|
|
// export
|
|
if (exports[key] != out) hide(exports, key, exp);
|
|
if (IS_PROTO && expProto[key] != out) expProto[key] = out;
|
|
}
|
|
};
|
|
global.core = core;
|
|
// 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;
|
|
|
|
|
|
/***/ }),
|
|
/* 33 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var global = __webpack_require__(15);
|
|
var hide = __webpack_require__(27);
|
|
var has = __webpack_require__(54);
|
|
var SRC = __webpack_require__(64)('src');
|
|
var $toString = __webpack_require__(126);
|
|
var TO_STRING = 'toString';
|
|
var TPL = ('' + $toString).split(TO_STRING);
|
|
|
|
__webpack_require__(45).inspectSource = function (it) {
|
|
return $toString.call(it);
|
|
};
|
|
|
|
(module.exports = function (O, key, val, safe) {
|
|
var isFunction = typeof val == 'function';
|
|
if (isFunction) has(val, 'name') || hide(val, 'name', key);
|
|
if (O[key] === val) return;
|
|
if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));
|
|
if (O === global) {
|
|
O[key] = val;
|
|
} else if (!safe) {
|
|
delete O[key];
|
|
hide(O, key, val);
|
|
} else if (O[key]) {
|
|
O[key] = val;
|
|
} else {
|
|
hide(O, key, val);
|
|
}
|
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
})(Function.prototype, TO_STRING, function toString() {
|
|
return typeof this == 'function' && this[SRC] || $toString.call(this);
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 34 */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = {};
|
|
|
|
|
|
/***/ }),
|
|
/* 35 */
|
|
/***/ (function(module, exports) {
|
|
|
|
function _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;
|
|
}
|
|
|
|
module.exports = _defineProperty;
|
|
|
|
/***/ }),
|
|
/* 36 */
|
|
/***/ (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;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 37 */
|
|
/***/ (function(module, exports) {
|
|
|
|
var toString = {}.toString;
|
|
|
|
module.exports = function (it) {
|
|
return toString.call(it).slice(8, -1);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 38 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// 19.1.2.14 / 15.2.3.14 Object.keys(O)
|
|
var $keys = __webpack_require__(113);
|
|
var enumBugKeys = __webpack_require__(73);
|
|
|
|
module.exports = Object.keys || function keys(O) {
|
|
return $keys(O, enumBugKeys);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 39 */,
|
|
/* 40 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var _Symbol$iterator = __webpack_require__(138);
|
|
|
|
var _Symbol = __webpack_require__(105);
|
|
|
|
function _typeof(obj) {
|
|
"@babel/helpers - typeof";
|
|
|
|
if (typeof _Symbol === "function" && typeof _Symbol$iterator === "symbol") {
|
|
module.exports = _typeof = function _typeof(obj) {
|
|
return typeof obj;
|
|
};
|
|
} else {
|
|
module.exports = _typeof = function _typeof(obj) {
|
|
return obj && typeof _Symbol === "function" && obj.constructor === _Symbol && obj !== _Symbol.prototype ? "symbol" : typeof obj;
|
|
};
|
|
}
|
|
|
|
return _typeof(obj);
|
|
}
|
|
|
|
module.exports = _typeof;
|
|
|
|
/***/ }),
|
|
/* 41 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// 7.1.15 ToLength
|
|
var toInteger = __webpack_require__(50);
|
|
var min = Math.min;
|
|
module.exports = function (it) {
|
|
return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 42 */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = function (it) {
|
|
if (typeof it != 'function') throw TypeError(it + ' is not a function!');
|
|
return it;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 43 */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = function (bitmap, value) {
|
|
return {
|
|
enumerable: !(bitmap & 1),
|
|
configurable: !(bitmap & 2),
|
|
writable: !(bitmap & 4),
|
|
value: value
|
|
};
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 44 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var anObject = __webpack_require__(18);
|
|
var IE8_DOM_DEFINE = __webpack_require__(116);
|
|
var toPrimitive = __webpack_require__(108);
|
|
var dP = Object.defineProperty;
|
|
|
|
exports.f = __webpack_require__(25) ? Object.defineProperty : function defineProperty(O, P, Attributes) {
|
|
anObject(O);
|
|
P = toPrimitive(P, true);
|
|
anObject(Attributes);
|
|
if (IE8_DOM_DEFINE) try {
|
|
return dP(O, P, Attributes);
|
|
} catch (e) { /* empty */ }
|
|
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
|
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
return O;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 45 */
|
|
/***/ (function(module, exports) {
|
|
|
|
var core = module.exports = { version: '2.6.11' };
|
|
if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
|
|
|
|
|
|
/***/ }),
|
|
/* 46 */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = true;
|
|
|
|
|
|
/***/ }),
|
|
/* 47 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
|
|
var anObject = __webpack_require__(12);
|
|
var dPs = __webpack_require__(128);
|
|
var enumBugKeys = __webpack_require__(73);
|
|
var IE_PROTO = __webpack_require__(70)('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__(92)('iframe');
|
|
var i = enumBugKeys.length;
|
|
var lt = '<';
|
|
var gt = '>';
|
|
var iframeDocument;
|
|
iframe.style.display = 'none';
|
|
__webpack_require__(129).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);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 48 */
|
|
/***/ (function(module, exports) {
|
|
|
|
exports.f = {}.propertyIsEnumerable;
|
|
|
|
|
|
/***/ }),
|
|
/* 49 */
|
|
/***/ (function(module, exports) {
|
|
|
|
function _assertThisInitialized(self) {
|
|
if (self === void 0) {
|
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
}
|
|
|
|
return self;
|
|
}
|
|
|
|
module.exports = _assertThisInitialized;
|
|
|
|
/***/ }),
|
|
/* 50 */
|
|
/***/ (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);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 51 */
|
|
/***/ (function(module, exports) {
|
|
|
|
var id = 0;
|
|
var px = Math.random();
|
|
module.exports = function (key) {
|
|
return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 52 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var def = __webpack_require__(16).f;
|
|
var has = __webpack_require__(19);
|
|
var TAG = __webpack_require__(10)('toStringTag');
|
|
|
|
module.exports = function (it, tag, stat) {
|
|
if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 53 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var anObject = __webpack_require__(18);
|
|
var toObject = __webpack_require__(81);
|
|
var toLength = __webpack_require__(41);
|
|
var toInteger = __webpack_require__(50);
|
|
var advanceStringIndex = __webpack_require__(109);
|
|
var regExpExec = __webpack_require__(89);
|
|
var max = Math.max;
|
|
var min = Math.min;
|
|
var floor = Math.floor;
|
|
var SUBSTITUTION_SYMBOLS = /\$([$&`']|\d\d?|<[^>]*>)/g;
|
|
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&`']|\d\d?)/g;
|
|
|
|
var maybeToString = function (it) {
|
|
return it === undefined ? it : String(it);
|
|
};
|
|
|
|
// @@replace logic
|
|
__webpack_require__(90)('replace', 2, function (defined, REPLACE, $replace, maybeCallNative) {
|
|
return [
|
|
// `String.prototype.replace` method
|
|
// https://tc39.github.io/ecma262/#sec-string.prototype.replace
|
|
function replace(searchValue, replaceValue) {
|
|
var O = defined(this);
|
|
var fn = searchValue == undefined ? undefined : searchValue[REPLACE];
|
|
return fn !== undefined
|
|
? fn.call(searchValue, O, replaceValue)
|
|
: $replace.call(String(O), searchValue, replaceValue);
|
|
},
|
|
// `RegExp.prototype[@@replace]` method
|
|
// https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace
|
|
function (regexp, replaceValue) {
|
|
var res = maybeCallNative($replace, regexp, this, replaceValue);
|
|
if (res.done) return res.value;
|
|
|
|
var rx = anObject(regexp);
|
|
var S = String(this);
|
|
var functionalReplace = typeof replaceValue === 'function';
|
|
if (!functionalReplace) replaceValue = String(replaceValue);
|
|
var global = rx.global;
|
|
if (global) {
|
|
var fullUnicode = rx.unicode;
|
|
rx.lastIndex = 0;
|
|
}
|
|
var results = [];
|
|
while (true) {
|
|
var result = regExpExec(rx, S);
|
|
if (result === null) break;
|
|
results.push(result);
|
|
if (!global) break;
|
|
var matchStr = String(result[0]);
|
|
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
|
}
|
|
var accumulatedResult = '';
|
|
var nextSourcePosition = 0;
|
|
for (var i = 0; i < results.length; i++) {
|
|
result = results[i];
|
|
var matched = String(result[0]);
|
|
var position = max(min(toInteger(result.index), S.length), 0);
|
|
var captures = [];
|
|
// NOTE: This is equivalent to
|
|
// captures = result.slice(1).map(maybeToString)
|
|
// but for some reason `nativeSlice.call(result, 1, result.length)` (called in
|
|
// the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
|
|
// causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
|
|
for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
|
|
var namedCaptures = result.groups;
|
|
if (functionalReplace) {
|
|
var replacerArgs = [matched].concat(captures, position, S);
|
|
if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
|
|
var replacement = String(replaceValue.apply(undefined, replacerArgs));
|
|
} else {
|
|
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
|
}
|
|
if (position >= nextSourcePosition) {
|
|
accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
|
|
nextSourcePosition = position + matched.length;
|
|
}
|
|
}
|
|
return accumulatedResult + S.slice(nextSourcePosition);
|
|
}
|
|
];
|
|
|
|
// https://tc39.github.io/ecma262/#sec-getsubstitution
|
|
function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {
|
|
var tailPos = position + matched.length;
|
|
var m = captures.length;
|
|
var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
|
|
if (namedCaptures !== undefined) {
|
|
namedCaptures = toObject(namedCaptures);
|
|
symbols = SUBSTITUTION_SYMBOLS;
|
|
}
|
|
return $replace.call(replacement, symbols, function (match, ch) {
|
|
var capture;
|
|
switch (ch.charAt(0)) {
|
|
case '$': return '$';
|
|
case '&': return matched;
|
|
case '`': return str.slice(0, position);
|
|
case "'": return str.slice(tailPos);
|
|
case '<':
|
|
capture = namedCaptures[ch.slice(1, -1)];
|
|
break;
|
|
default: // \d\d?
|
|
var n = +ch;
|
|
if (n === 0) return match;
|
|
if (n > m) {
|
|
var f = floor(n / 10);
|
|
if (f === 0) return match;
|
|
if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
|
|
return match;
|
|
}
|
|
capture = captures[n - 1];
|
|
}
|
|
return capture === undefined ? '' : capture;
|
|
});
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 54 */
|
|
/***/ (function(module, exports) {
|
|
|
|
var hasOwnProperty = {}.hasOwnProperty;
|
|
module.exports = function (it, key) {
|
|
return hasOwnProperty.call(it, key);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 55 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var pIE = __webpack_require__(48);
|
|
var createDesc = __webpack_require__(43);
|
|
var toIObject = __webpack_require__(21);
|
|
var toPrimitive = __webpack_require__(69);
|
|
var has = __webpack_require__(19);
|
|
var IE8_DOM_DEFINE = __webpack_require__(111);
|
|
var gOPD = Object.getOwnPropertyDescriptor;
|
|
|
|
exports.f = __webpack_require__(13) ? gOPD : function getOwnPropertyDescriptor(O, P) {
|
|
O = toIObject(O);
|
|
P = toPrimitive(P, true);
|
|
if (IE8_DOM_DEFINE) try {
|
|
return gOPD(O, P);
|
|
} catch (e) { /* empty */ }
|
|
if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 56 */
|
|
/***/ (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;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 57 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var $at = __webpack_require__(165)(true);
|
|
|
|
// 21.1.3.27 String.prototype[@@iterator]()
|
|
__webpack_require__(94)(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 };
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 58 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// optional / simple context binding
|
|
var aFunction = __webpack_require__(79);
|
|
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);
|
|
};
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 59 */
|
|
/***/ (function(module, exports) {
|
|
|
|
var toString = {}.toString;
|
|
|
|
module.exports = function (it) {
|
|
return toString.call(it).slice(8, -1);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 60 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
__webpack_require__(167);
|
|
var global = __webpack_require__(8);
|
|
var hide = __webpack_require__(24);
|
|
var Iterators = __webpack_require__(34);
|
|
var TO_STRING_TAG = __webpack_require__(10)('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;
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
/* 61 */,
|
|
/* 62 */,
|
|
/* 63 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var core = __webpack_require__(45);
|
|
var global = __webpack_require__(15);
|
|
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__(100) ? 'pure' : 'global',
|
|
copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 64 */
|
|
/***/ (function(module, exports) {
|
|
|
|
var id = 0;
|
|
var px = Math.random();
|
|
module.exports = function (key) {
|
|
return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 65 */,
|
|
/* 66 */,
|
|
/* 67 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// 7.1.15 ToLength
|
|
var toInteger = __webpack_require__(72);
|
|
var min = Math.min;
|
|
module.exports = function (it) {
|
|
return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 68 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var isRegExp = __webpack_require__(120);
|
|
var anObject = __webpack_require__(18);
|
|
var speciesConstructor = __webpack_require__(143);
|
|
var advanceStringIndex = __webpack_require__(109);
|
|
var toLength = __webpack_require__(41);
|
|
var callRegExpExec = __webpack_require__(89);
|
|
var regexpExec = __webpack_require__(83);
|
|
var fails = __webpack_require__(28);
|
|
var $min = Math.min;
|
|
var $push = [].push;
|
|
var $SPLIT = 'split';
|
|
var LENGTH = 'length';
|
|
var LAST_INDEX = 'lastIndex';
|
|
var MAX_UINT32 = 0xffffffff;
|
|
|
|
// babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError
|
|
var SUPPORTS_Y = !fails(function () { RegExp(MAX_UINT32, 'y'); });
|
|
|
|
// @@split logic
|
|
__webpack_require__(90)('split', 2, function (defined, SPLIT, $split, maybeCallNative) {
|
|
var internalSplit;
|
|
if (
|
|
'abbc'[$SPLIT](/(b)*/)[1] == 'c' ||
|
|
'test'[$SPLIT](/(?:)/, -1)[LENGTH] != 4 ||
|
|
'ab'[$SPLIT](/(?:ab)*/)[LENGTH] != 2 ||
|
|
'.'[$SPLIT](/(.?)(.?)/)[LENGTH] != 4 ||
|
|
'.'[$SPLIT](/()()/)[LENGTH] > 1 ||
|
|
''[$SPLIT](/.?/)[LENGTH]
|
|
) {
|
|
// based on es5-shim implementation, need to rework it
|
|
internalSplit = function (separator, limit) {
|
|
var string = String(this);
|
|
if (separator === undefined && limit === 0) return [];
|
|
// If `separator` is not a regex, use native split
|
|
if (!isRegExp(separator)) return $split.call(string, separator, limit);
|
|
var output = [];
|
|
var flags = (separator.ignoreCase ? 'i' : '') +
|
|
(separator.multiline ? 'm' : '') +
|
|
(separator.unicode ? 'u' : '') +
|
|
(separator.sticky ? 'y' : '');
|
|
var lastLastIndex = 0;
|
|
var splitLimit = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
|
// Make `global` and avoid `lastIndex` issues by working with a copy
|
|
var separatorCopy = new RegExp(separator.source, flags + 'g');
|
|
var match, lastIndex, lastLength;
|
|
while (match = regexpExec.call(separatorCopy, string)) {
|
|
lastIndex = separatorCopy[LAST_INDEX];
|
|
if (lastIndex > lastLastIndex) {
|
|
output.push(string.slice(lastLastIndex, match.index));
|
|
if (match[LENGTH] > 1 && match.index < string[LENGTH]) $push.apply(output, match.slice(1));
|
|
lastLength = match[0][LENGTH];
|
|
lastLastIndex = lastIndex;
|
|
if (output[LENGTH] >= splitLimit) break;
|
|
}
|
|
if (separatorCopy[LAST_INDEX] === match.index) separatorCopy[LAST_INDEX]++; // Avoid an infinite loop
|
|
}
|
|
if (lastLastIndex === string[LENGTH]) {
|
|
if (lastLength || !separatorCopy.test('')) output.push('');
|
|
} else output.push(string.slice(lastLastIndex));
|
|
return output[LENGTH] > splitLimit ? output.slice(0, splitLimit) : output;
|
|
};
|
|
// Chakra, V8
|
|
} else if ('0'[$SPLIT](undefined, 0)[LENGTH]) {
|
|
internalSplit = function (separator, limit) {
|
|
return separator === undefined && limit === 0 ? [] : $split.call(this, separator, limit);
|
|
};
|
|
} else {
|
|
internalSplit = $split;
|
|
}
|
|
|
|
return [
|
|
// `String.prototype.split` method
|
|
// https://tc39.github.io/ecma262/#sec-string.prototype.split
|
|
function split(separator, limit) {
|
|
var O = defined(this);
|
|
var splitter = separator == undefined ? undefined : separator[SPLIT];
|
|
return splitter !== undefined
|
|
? splitter.call(separator, O, limit)
|
|
: internalSplit.call(String(O), separator, limit);
|
|
},
|
|
// `RegExp.prototype[@@split]` method
|
|
// https://tc39.github.io/ecma262/#sec-regexp.prototype-@@split
|
|
//
|
|
// NOTE: This cannot be properly polyfilled in engines that don't support
|
|
// the 'y' flag.
|
|
function (regexp, limit) {
|
|
var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== $split);
|
|
if (res.done) return res.value;
|
|
|
|
var rx = anObject(regexp);
|
|
var S = String(this);
|
|
var C = speciesConstructor(rx, RegExp);
|
|
|
|
var unicodeMatching = rx.unicode;
|
|
var flags = (rx.ignoreCase ? 'i' : '') +
|
|
(rx.multiline ? 'm' : '') +
|
|
(rx.unicode ? 'u' : '') +
|
|
(SUPPORTS_Y ? 'y' : 'g');
|
|
|
|
// ^(? + rx + ) is needed, in combination with some S slicing, to
|
|
// simulate the 'y' flag.
|
|
var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags);
|
|
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
|
if (lim === 0) return [];
|
|
if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];
|
|
var p = 0;
|
|
var q = 0;
|
|
var A = [];
|
|
while (q < S.length) {
|
|
splitter.lastIndex = SUPPORTS_Y ? q : 0;
|
|
var z = callRegExpExec(splitter, SUPPORTS_Y ? S : S.slice(q));
|
|
var e;
|
|
if (
|
|
z === null ||
|
|
(e = $min(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p
|
|
) {
|
|
q = advanceStringIndex(S, q, unicodeMatching);
|
|
} else {
|
|
A.push(S.slice(p, q));
|
|
if (A.length === lim) return A;
|
|
for (var i = 1; i <= z.length - 1; i++) {
|
|
A.push(z[i]);
|
|
if (A.length === lim) return A;
|
|
}
|
|
q = p = e;
|
|
}
|
|
}
|
|
A.push(S.slice(p));
|
|
return A;
|
|
}
|
|
];
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 69 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// 7.1.1 ToPrimitive(input [, PreferredType])
|
|
var isObject = __webpack_require__(9);
|
|
// 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");
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 70 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var shared = __webpack_require__(71)('keys');
|
|
var uid = __webpack_require__(51);
|
|
module.exports = function (key) {
|
|
return shared[key] || (shared[key] = uid(key));
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 71 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var core = __webpack_require__(6);
|
|
var global = __webpack_require__(8);
|
|
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__(46) ? 'pure' : 'global',
|
|
copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 72 */
|
|
/***/ (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);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 73 */
|
|
/***/ (function(module, exports) {
|
|
|
|
// IE 8- don't enum bug keys
|
|
module.exports = (
|
|
'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
|
|
).split(',');
|
|
|
|
|
|
/***/ }),
|
|
/* 74 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
exports.f = __webpack_require__(10);
|
|
|
|
|
|
/***/ }),
|
|
/* 75 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var global = __webpack_require__(8);
|
|
var core = __webpack_require__(6);
|
|
var LIBRARY = __webpack_require__(46);
|
|
var wksExt = __webpack_require__(74);
|
|
var defineProperty = __webpack_require__(16).f;
|
|
module.exports = function (name) {
|
|
var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});
|
|
if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 76 */,
|
|
/* 77 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var META = __webpack_require__(51)('meta');
|
|
var isObject = __webpack_require__(9);
|
|
var has = __webpack_require__(19);
|
|
var setDesc = __webpack_require__(16).f;
|
|
var id = 0;
|
|
var isExtensible = Object.isExtensible || function () {
|
|
return true;
|
|
};
|
|
var FREEZE = !__webpack_require__(20)(function () {
|
|
return isExtensible(Object.preventExtensions({}));
|
|
});
|
|
var setMeta = function (it) {
|
|
setDesc(it, META, { value: {
|
|
i: 'O' + ++id, // object ID
|
|
w: {} // weak collections IDs
|
|
} });
|
|
};
|
|
var fastKey = function (it, create) {
|
|
// return primitive with prefix
|
|
if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
|
|
if (!has(it, META)) {
|
|
// can't set metadata to uncaught frozen object
|
|
if (!isExtensible(it)) return 'F';
|
|
// not necessary to add metadata
|
|
if (!create) return 'E';
|
|
// add missing metadata
|
|
setMeta(it);
|
|
// return object ID
|
|
} return it[META].i;
|
|
};
|
|
var getWeak = function (it, create) {
|
|
if (!has(it, META)) {
|
|
// can't set metadata to uncaught frozen object
|
|
if (!isExtensible(it)) return true;
|
|
// not necessary to add metadata
|
|
if (!create) return false;
|
|
// add missing metadata
|
|
setMeta(it);
|
|
// return hash weak collections IDs
|
|
} return it[META].w;
|
|
};
|
|
// add metadata on freeze-family methods calling
|
|
var onFreeze = function (it) {
|
|
if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);
|
|
return it;
|
|
};
|
|
var meta = module.exports = {
|
|
KEY: META,
|
|
NEED: false,
|
|
fastKey: fastKey,
|
|
getWeak: getWeak,
|
|
onFreeze: onFreeze
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 78 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// 22.1.3.31 Array.prototype[@@unscopables]
|
|
var UNSCOPABLES = __webpack_require__(11)('unscopables');
|
|
var ArrayProto = Array.prototype;
|
|
if (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__(27)(ArrayProto, UNSCOPABLES, {});
|
|
module.exports = function (key) {
|
|
ArrayProto[UNSCOPABLES][key] = true;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 79 */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = function (it) {
|
|
if (typeof it != 'function') throw TypeError(it + ' is not a function!');
|
|
return it;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 80 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
|
|
var has = __webpack_require__(19);
|
|
var toObject = __webpack_require__(31);
|
|
var IE_PROTO = __webpack_require__(70)('IE_PROTO');
|
|
var ObjectProto = Object.prototype;
|
|
|
|
module.exports = Object.getPrototypeOf || function (O) {
|
|
O = toObject(O);
|
|
if (has(O, IE_PROTO)) return O[IE_PROTO];
|
|
if (typeof O.constructor == 'function' && O instanceof O.constructor) {
|
|
return O.constructor.prototype;
|
|
} return O instanceof Object ? ObjectProto : null;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 81 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// 7.1.13 ToObject(argument)
|
|
var defined = __webpack_require__(36);
|
|
module.exports = function (it) {
|
|
return Object(defined(it));
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 82 */
|
|
/***/ (function(module, exports) {
|
|
|
|
exports.f = Object.getOwnPropertySymbols;
|
|
|
|
|
|
/***/ }),
|
|
/* 83 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var regexpFlags = __webpack_require__(110);
|
|
|
|
var nativeExec = RegExp.prototype.exec;
|
|
// This always refers to the native implementation, because the
|
|
// String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
|
|
// which loads this file before patching the method.
|
|
var nativeReplace = String.prototype.replace;
|
|
|
|
var patchedExec = nativeExec;
|
|
|
|
var LAST_INDEX = 'lastIndex';
|
|
|
|
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
var re1 = /a/,
|
|
re2 = /b*/g;
|
|
nativeExec.call(re1, 'a');
|
|
nativeExec.call(re2, 'a');
|
|
return re1[LAST_INDEX] !== 0 || re2[LAST_INDEX] !== 0;
|
|
})();
|
|
|
|
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
|
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
|
|
|
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED;
|
|
|
|
if (PATCH) {
|
|
patchedExec = function exec(str) {
|
|
var re = this;
|
|
var lastIndex, reCopy, match, i;
|
|
|
|
if (NPCG_INCLUDED) {
|
|
reCopy = new RegExp('^' + re.source + '$(?!\\s)', regexpFlags.call(re));
|
|
}
|
|
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re[LAST_INDEX];
|
|
|
|
match = nativeExec.call(re, str);
|
|
|
|
if (UPDATES_LAST_INDEX_WRONG && match) {
|
|
re[LAST_INDEX] = re.global ? match.index + match[0].length : lastIndex;
|
|
}
|
|
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
// for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
|
|
// eslint-disable-next-line no-loop-func
|
|
nativeReplace.call(match[0], reCopy, function () {
|
|
for (i = 1; i < arguments.length - 2; i++) {
|
|
if (arguments[i] === undefined) match[i] = undefined;
|
|
}
|
|
});
|
|
}
|
|
|
|
return match;
|
|
};
|
|
}
|
|
|
|
module.exports = patchedExec;
|
|
|
|
|
|
/***/ }),
|
|
/* 84 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// most Object methods by ES6 should accept primitives
|
|
var $export = __webpack_require__(7);
|
|
var core = __webpack_require__(6);
|
|
var fails = __webpack_require__(20);
|
|
module.exports = function (KEY, exec) {
|
|
var fn = (core.Object || {})[KEY] || Object[KEY];
|
|
var exp = {};
|
|
exp[KEY] = exec(fn);
|
|
$export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 85 */,
|
|
/* 86 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var ctx = __webpack_require__(30);
|
|
var call = __webpack_require__(133);
|
|
var isArrayIter = __webpack_require__(134);
|
|
var anObject = __webpack_require__(12);
|
|
var toLength = __webpack_require__(67);
|
|
var getIterFn = __webpack_require__(114);
|
|
var BREAK = {};
|
|
var RETURN = {};
|
|
var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {
|
|
var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable);
|
|
var f = ctx(fn, that, entries ? 2 : 1);
|
|
var index = 0;
|
|
var length, step, iterator, result;
|
|
if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');
|
|
// fast case for arrays with default iterator
|
|
if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) {
|
|
result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);
|
|
if (result === BREAK || result === RETURN) return result;
|
|
} else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {
|
|
result = call(iterator, f, step.value, entries);
|
|
if (result === BREAK || result === RETURN) return result;
|
|
}
|
|
};
|
|
exports.BREAK = BREAK;
|
|
exports.RETURN = RETURN;
|
|
|
|
|
|
/***/ }),
|
|
/* 87 */,
|
|
/* 88 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
module.exports = __webpack_require__(24);
|
|
|
|
|
|
/***/ }),
|
|
/* 89 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var classof = __webpack_require__(103);
|
|
var builtinExec = RegExp.prototype.exec;
|
|
|
|
// `RegExpExec` abstract operation
|
|
// https://tc39.github.io/ecma262/#sec-regexpexec
|
|
module.exports = function (R, S) {
|
|
var exec = R.exec;
|
|
if (typeof exec === 'function') {
|
|
var result = exec.call(R, S);
|
|
if (typeof result !== 'object') {
|
|
throw new TypeError('RegExp exec method returned something other than an Object or null');
|
|
}
|
|
return result;
|
|
}
|
|
if (classof(R) !== 'RegExp') {
|
|
throw new TypeError('RegExp#exec called on incompatible receiver');
|
|
}
|
|
return builtinExec.call(R, S);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 90 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
__webpack_require__(182);
|
|
var redefine = __webpack_require__(33);
|
|
var hide = __webpack_require__(27);
|
|
var fails = __webpack_require__(28);
|
|
var defined = __webpack_require__(36);
|
|
var wks = __webpack_require__(11);
|
|
var regexpExec = __webpack_require__(83);
|
|
|
|
var SPECIES = wks('species');
|
|
|
|
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
|
|
// #replace needs built-in support for named groups.
|
|
// #match works fine because it just return the exec results, even if it has
|
|
// a "grops" property.
|
|
var re = /./;
|
|
re.exec = function () {
|
|
var result = [];
|
|
result.groups = { a: '7' };
|
|
return result;
|
|
};
|
|
return ''.replace(re, '$<a>') !== '7';
|
|
});
|
|
|
|
var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = (function () {
|
|
// Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
|
|
var re = /(?:)/;
|
|
var originalExec = re.exec;
|
|
re.exec = function () { return originalExec.apply(this, arguments); };
|
|
var result = 'ab'.split(re);
|
|
return result.length === 2 && result[0] === 'a' && result[1] === 'b';
|
|
})();
|
|
|
|
module.exports = function (KEY, length, exec) {
|
|
var SYMBOL = wks(KEY);
|
|
|
|
var DELEGATES_TO_SYMBOL = !fails(function () {
|
|
// String methods call symbol-named RegEp methods
|
|
var O = {};
|
|
O[SYMBOL] = function () { return 7; };
|
|
return ''[KEY](O) != 7;
|
|
});
|
|
|
|
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL ? !fails(function () {
|
|
// Symbol-named RegExp methods call .exec
|
|
var execCalled = false;
|
|
var re = /a/;
|
|
re.exec = function () { execCalled = true; return null; };
|
|
if (KEY === 'split') {
|
|
// RegExp[@@split] doesn't call the regex's exec method, but first creates
|
|
// a new one. We need to return the patched regex when creating the new one.
|
|
re.constructor = {};
|
|
re.constructor[SPECIES] = function () { return re; };
|
|
}
|
|
re[SYMBOL]('');
|
|
return !execCalled;
|
|
}) : undefined;
|
|
|
|
if (
|
|
!DELEGATES_TO_SYMBOL ||
|
|
!DELEGATES_TO_EXEC ||
|
|
(KEY === 'replace' && !REPLACE_SUPPORTS_NAMED_GROUPS) ||
|
|
(KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
|
|
) {
|
|
var nativeRegExpMethod = /./[SYMBOL];
|
|
var fns = exec(
|
|
defined,
|
|
SYMBOL,
|
|
''[KEY],
|
|
function maybeCallNative(nativeMethod, regexp, str, arg2, forceStringMethod) {
|
|
if (regexp.exec === regexpExec) {
|
|
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
|
// The native String method already delegates to @@method (this
|
|
// polyfilled function), leasing to infinite recursion.
|
|
// We avoid it by directly calling the native @@method method.
|
|
return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
|
|
}
|
|
return { done: true, value: nativeMethod.call(str, regexp, arg2) };
|
|
}
|
|
return { done: false };
|
|
}
|
|
);
|
|
var strfn = fns[0];
|
|
var rxfn = fns[1];
|
|
|
|
redefine(String.prototype, KEY, strfn);
|
|
hide(RegExp.prototype, SYMBOL, length == 2
|
|
// 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
|
|
// 21.2.5.11 RegExp.prototype[@@split](string, limit)
|
|
? function (string, arg) { return rxfn.call(string, this, arg); }
|
|
// 21.2.5.6 RegExp.prototype[@@match](string)
|
|
// 21.2.5.9 RegExp.prototype[@@search](string)
|
|
: function (string) { return rxfn.call(string, this); }
|
|
);
|
|
}
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 91 */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = function (bitmap, value) {
|
|
return {
|
|
enumerable: !(bitmap & 1),
|
|
configurable: !(bitmap & 2),
|
|
writable: !(bitmap & 4),
|
|
value: value
|
|
};
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 92 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var isObject = __webpack_require__(9);
|
|
var document = __webpack_require__(8).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) : {};
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 93 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
module.exports = __webpack_require__(160);
|
|
|
|
/***/ }),
|
|
/* 94 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var LIBRARY = __webpack_require__(46);
|
|
var $export = __webpack_require__(7);
|
|
var redefine = __webpack_require__(88);
|
|
var hide = __webpack_require__(24);
|
|
var Iterators = __webpack_require__(34);
|
|
var $iterCreate = __webpack_require__(166);
|
|
var setToStringTag = __webpack_require__(52);
|
|
var getPrototypeOf = __webpack_require__(80);
|
|
var ITERATOR = __webpack_require__(10)('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;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 95 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// 7.2.2 IsArray(argument)
|
|
var cof = __webpack_require__(59);
|
|
module.exports = Array.isArray || function isArray(arg) {
|
|
return cof(arg) == 'Array';
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 96 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// to indexed object, toObject with fallback for non-array-like ES3 strings
|
|
var IObject = __webpack_require__(102);
|
|
var defined = __webpack_require__(36);
|
|
module.exports = function (it) {
|
|
return IObject(defined(it));
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 97 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
// 19.1.3.6 Object.prototype.toString()
|
|
var classof = __webpack_require__(103);
|
|
var test = {};
|
|
test[__webpack_require__(11)('toStringTag')] = 'z';
|
|
if (test + '' != '[object z]') {
|
|
__webpack_require__(33)(Object.prototype, 'toString', function toString() {
|
|
return '[object ' + classof(this) + ']';
|
|
}, true);
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
/* 98 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var isObject = __webpack_require__(26);
|
|
var document = __webpack_require__(15).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) : {};
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 99 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var anObject = __webpack_require__(18);
|
|
var toLength = __webpack_require__(41);
|
|
var advanceStringIndex = __webpack_require__(109);
|
|
var regExpExec = __webpack_require__(89);
|
|
|
|
// @@match logic
|
|
__webpack_require__(90)('match', 1, function (defined, MATCH, $match, maybeCallNative) {
|
|
return [
|
|
// `String.prototype.match` method
|
|
// https://tc39.github.io/ecma262/#sec-string.prototype.match
|
|
function match(regexp) {
|
|
var O = defined(this);
|
|
var fn = regexp == undefined ? undefined : regexp[MATCH];
|
|
return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));
|
|
},
|
|
// `RegExp.prototype[@@match]` method
|
|
// https://tc39.github.io/ecma262/#sec-regexp.prototype-@@match
|
|
function (regexp) {
|
|
var res = maybeCallNative($match, regexp, this);
|
|
if (res.done) return res.value;
|
|
var rx = anObject(regexp);
|
|
var S = String(this);
|
|
if (!rx.global) return regExpExec(rx, S);
|
|
var fullUnicode = rx.unicode;
|
|
rx.lastIndex = 0;
|
|
var A = [];
|
|
var n = 0;
|
|
var result;
|
|
while ((result = regExpExec(rx, S)) !== null) {
|
|
var matchStr = String(result[0]);
|
|
A[n] = matchStr;
|
|
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
|
n++;
|
|
}
|
|
return n === 0 ? null : A;
|
|
}
|
|
];
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 100 */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = false;
|
|
|
|
|
|
/***/ }),
|
|
/* 101 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
|
|
var $keys = __webpack_require__(113);
|
|
var hiddenKeys = __webpack_require__(73).concat('length', 'prototype');
|
|
|
|
exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
return $keys(O, hiddenKeys);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 102 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
var cof = __webpack_require__(37);
|
|
// eslint-disable-next-line no-prototype-builtins
|
|
module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
|
|
return cof(it) == 'String' ? it.split('') : Object(it);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 103 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// getting tag from 19.1.3.6 Object.prototype.toString()
|
|
var cof = __webpack_require__(37);
|
|
var TAG = __webpack_require__(11)('toStringTag');
|
|
// ES3 wrong here
|
|
var ARG = cof(function () { return arguments; }()) == 'Arguments';
|
|
|
|
// fallback for IE11 Script Access Denied error
|
|
var tryGet = function (it, key) {
|
|
try {
|
|
return it[key];
|
|
} catch (e) { /* empty */ }
|
|
};
|
|
|
|
module.exports = function (it) {
|
|
var O, T, B;
|
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
// @@toStringTag case
|
|
: typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
|
|
// builtinTag case
|
|
: ARG ? cof(O)
|
|
// ES3 arguments fallback
|
|
: (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 104 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
var cof = __webpack_require__(59);
|
|
// eslint-disable-next-line no-prototype-builtins
|
|
module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
|
|
return cof(it) == 'String' ? it.split('') : Object(it);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 105 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
module.exports = __webpack_require__(169);
|
|
|
|
/***/ }),
|
|
/* 106 */
|
|
/***/ (function(module, exports) {
|
|
|
|
|
|
|
|
/***/ }),
|
|
/* 107 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// getting tag from 19.1.3.6 Object.prototype.toString()
|
|
var cof = __webpack_require__(59);
|
|
var TAG = __webpack_require__(10)('toStringTag');
|
|
// ES3 wrong here
|
|
var ARG = cof(function () { return arguments; }()) == 'Arguments';
|
|
|
|
// fallback for IE11 Script Access Denied error
|
|
var tryGet = function (it, key) {
|
|
try {
|
|
return it[key];
|
|
} catch (e) { /* empty */ }
|
|
};
|
|
|
|
module.exports = function (it) {
|
|
var O, T, B;
|
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
// @@toStringTag case
|
|
: typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
|
|
// builtinTag case
|
|
: ARG ? cof(O)
|
|
// ES3 arguments fallback
|
|
: (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 108 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// 7.1.1 ToPrimitive(input [, PreferredType])
|
|
var isObject = __webpack_require__(26);
|
|
// 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");
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 109 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var at = __webpack_require__(181)(true);
|
|
|
|
// `AdvanceStringIndex` abstract operation
|
|
// https://tc39.github.io/ecma262/#sec-advancestringindex
|
|
module.exports = function (S, index, unicode) {
|
|
return index + (unicode ? at(S, index).length : 1);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 110 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
// 21.2.5.3 get RegExp.prototype.flags
|
|
var anObject = __webpack_require__(18);
|
|
module.exports = function () {
|
|
var that = anObject(this);
|
|
var result = '';
|
|
if (that.global) result += 'g';
|
|
if (that.ignoreCase) result += 'i';
|
|
if (that.multiline) result += 'm';
|
|
if (that.unicode) result += 'u';
|
|
if (that.sticky) result += 'y';
|
|
return result;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 111 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
module.exports = !__webpack_require__(13) && !__webpack_require__(20)(function () {
|
|
return Object.defineProperty(__webpack_require__(92)('div'), 'a', { get: function () { return 7; } }).a != 7;
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 112 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
module.exports = __webpack_require__(153);
|
|
|
|
/***/ }),
|
|
/* 113 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var has = __webpack_require__(19);
|
|
var toIObject = __webpack_require__(21);
|
|
var arrayIndexOf = __webpack_require__(158)(false);
|
|
var IE_PROTO = __webpack_require__(70)('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;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 114 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var classof = __webpack_require__(107);
|
|
var ITERATOR = __webpack_require__(10)('iterator');
|
|
var Iterators = __webpack_require__(34);
|
|
module.exports = __webpack_require__(6).getIteratorMethod = function (it) {
|
|
if (it != undefined) return it[ITERATOR]
|
|
|| it['@@iterator']
|
|
|| Iterators[classof(it)];
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 115 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
module.exports = __webpack_require__(254);
|
|
|
|
/***/ }),
|
|
/* 116 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
module.exports = !__webpack_require__(25) && !__webpack_require__(28)(function () {
|
|
return Object.defineProperty(__webpack_require__(98)('div'), 'a', { get: function () { return 7; } }).a != 7;
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 117 */,
|
|
/* 118 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var _Object$setPrototypeOf = __webpack_require__(112);
|
|
|
|
function _setPrototypeOf(o, p) {
|
|
module.exports = _setPrototypeOf = _Object$setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
o.__proto__ = p;
|
|
return o;
|
|
};
|
|
|
|
return _setPrototypeOf(o, p);
|
|
}
|
|
|
|
module.exports = _setPrototypeOf;
|
|
|
|
/***/ }),
|
|
/* 119 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// 0 -> Array#forEach
|
|
// 1 -> Array#map
|
|
// 2 -> Array#filter
|
|
// 3 -> Array#some
|
|
// 4 -> Array#every
|
|
// 5 -> Array#find
|
|
// 6 -> Array#findIndex
|
|
var ctx = __webpack_require__(58);
|
|
var IObject = __webpack_require__(102);
|
|
var toObject = __webpack_require__(81);
|
|
var toLength = __webpack_require__(41);
|
|
var asc = __webpack_require__(140);
|
|
module.exports = function (TYPE, $create) {
|
|
var IS_MAP = TYPE == 1;
|
|
var IS_FILTER = TYPE == 2;
|
|
var IS_SOME = TYPE == 3;
|
|
var IS_EVERY = TYPE == 4;
|
|
var IS_FIND_INDEX = TYPE == 6;
|
|
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
|
|
var create = $create || asc;
|
|
return function ($this, callbackfn, that) {
|
|
var O = toObject($this);
|
|
var self = IObject(O);
|
|
var f = ctx(callbackfn, that, 3);
|
|
var length = toLength(self.length);
|
|
var index = 0;
|
|
var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
|
|
var val, res;
|
|
for (;length > index; index++) if (NO_HOLES || index in self) {
|
|
val = self[index];
|
|
res = f(val, index, O);
|
|
if (TYPE) {
|
|
if (IS_MAP) result[index] = res; // map
|
|
else if (res) switch (TYPE) {
|
|
case 3: return true; // some
|
|
case 5: return val; // find
|
|
case 6: return index; // findIndex
|
|
case 2: result.push(val); // filter
|
|
} else if (IS_EVERY) return false; // every
|
|
}
|
|
}
|
|
return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;
|
|
};
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 120 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// 7.2.8 IsRegExp(argument)
|
|
var isObject = __webpack_require__(26);
|
|
var cof = __webpack_require__(37);
|
|
var MATCH = __webpack_require__(11)('match');
|
|
module.exports = function (it) {
|
|
var isRegExp;
|
|
return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp');
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 121 */,
|
|
/* 122 */,
|
|
/* 123 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
module.exports = __webpack_require__(156);
|
|
|
|
/***/ }),
|
|
/* 124 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var hide = __webpack_require__(24);
|
|
module.exports = function (target, src, safe) {
|
|
for (var key in src) {
|
|
if (safe && target[key]) target[key] = src[key];
|
|
else hide(target, key, src[key]);
|
|
} return target;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 125 */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = function (it, Constructor, name, forbiddenField) {
|
|
if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
|
|
throw TypeError(name + ': incorrect invocation!');
|
|
} return it;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 126 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
module.exports = __webpack_require__(63)('native-function-to-string', Function.toString);
|
|
|
|
|
|
/***/ }),
|
|
/* 127 */,
|
|
/* 128 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var dP = __webpack_require__(16);
|
|
var anObject = __webpack_require__(12);
|
|
var getKeys = __webpack_require__(38);
|
|
|
|
module.exports = __webpack_require__(13) ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
anObject(O);
|
|
var keys = getKeys(Properties);
|
|
var length = keys.length;
|
|
var i = 0;
|
|
var P;
|
|
while (length > i) dP.f(O, P = keys[i++], Properties[P]);
|
|
return O;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 129 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var document = __webpack_require__(8).document;
|
|
module.exports = document && document.documentElement;
|
|
|
|
|
|
/***/ }),
|
|
/* 130 */
|
|
/***/ (function(module, exports) {
|
|
|
|
// fast apply, http://jsperf.lnkit.com/fast-apply/5
|
|
module.exports = function (fn, args, that) {
|
|
var un = that === undefined;
|
|
switch (args.length) {
|
|
case 0: return un ? fn()
|
|
: fn.call(that);
|
|
case 1: return un ? fn(args[0])
|
|
: fn.call(that, args[0]);
|
|
case 2: return un ? fn(args[0], args[1])
|
|
: fn.call(that, args[0], args[1]);
|
|
case 3: return un ? fn(args[0], args[1], args[2])
|
|
: fn.call(that, args[0], args[1], args[2]);
|
|
case 4: return un ? fn(args[0], args[1], args[2], args[3])
|
|
: fn.call(that, args[0], args[1], args[2], args[3]);
|
|
} return fn.apply(that, args);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 131 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var _Reflect$construct = __webpack_require__(93);
|
|
|
|
function _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;
|
|
}
|
|
}
|
|
|
|
module.exports = _isNativeReflectConstruct;
|
|
|
|
/***/ }),
|
|
/* 132 */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = function (done, value) {
|
|
return { value: value, done: !!done };
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 133 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// call something on iterator step with safe closing on error
|
|
var anObject = __webpack_require__(12);
|
|
module.exports = function (iterator, fn, value, entries) {
|
|
try {
|
|
return entries ? fn(anObject(value)[0], value[1]) : fn(value);
|
|
// 7.4.6 IteratorClose(iterator, completion)
|
|
} catch (e) {
|
|
var ret = iterator['return'];
|
|
if (ret !== undefined) anObject(ret.call(iterator));
|
|
throw e;
|
|
}
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 134 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// check on default Array iterator
|
|
var Iterators = __webpack_require__(34);
|
|
var ITERATOR = __webpack_require__(10)('iterator');
|
|
var ArrayProto = Array.prototype;
|
|
|
|
module.exports = function (it) {
|
|
return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 135 */,
|
|
/* 136 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
module.exports = __webpack_require__(243);
|
|
|
|
/***/ }),
|
|
/* 137 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
module.exports = __webpack_require__(193);
|
|
|
|
/***/ }),
|
|
/* 138 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
module.exports = __webpack_require__(164);
|
|
|
|
/***/ }),
|
|
/* 139 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
// ECMAScript 6 symbols shim
|
|
var global = __webpack_require__(8);
|
|
var has = __webpack_require__(19);
|
|
var DESCRIPTORS = __webpack_require__(13);
|
|
var $export = __webpack_require__(7);
|
|
var redefine = __webpack_require__(88);
|
|
var META = __webpack_require__(77).KEY;
|
|
var $fails = __webpack_require__(20);
|
|
var shared = __webpack_require__(71);
|
|
var setToStringTag = __webpack_require__(52);
|
|
var uid = __webpack_require__(51);
|
|
var wks = __webpack_require__(10);
|
|
var wksExt = __webpack_require__(74);
|
|
var wksDefine = __webpack_require__(75);
|
|
var enumKeys = __webpack_require__(170);
|
|
var isArray = __webpack_require__(95);
|
|
var anObject = __webpack_require__(12);
|
|
var isObject = __webpack_require__(9);
|
|
var toObject = __webpack_require__(31);
|
|
var toIObject = __webpack_require__(21);
|
|
var toPrimitive = __webpack_require__(69);
|
|
var createDesc = __webpack_require__(43);
|
|
var _create = __webpack_require__(47);
|
|
var gOPNExt = __webpack_require__(171);
|
|
var $GOPD = __webpack_require__(55);
|
|
var $GOPS = __webpack_require__(82);
|
|
var $DP = __webpack_require__(16);
|
|
var $keys = __webpack_require__(38);
|
|
var gOPD = $GOPD.f;
|
|
var dP = $DP.f;
|
|
var gOPN = gOPNExt.f;
|
|
var $Symbol = global.Symbol;
|
|
var $JSON = global.JSON;
|
|
var _stringify = $JSON && $JSON.stringify;
|
|
var PROTOTYPE = 'prototype';
|
|
var HIDDEN = wks('_hidden');
|
|
var TO_PRIMITIVE = wks('toPrimitive');
|
|
var isEnum = {}.propertyIsEnumerable;
|
|
var SymbolRegistry = shared('symbol-registry');
|
|
var AllSymbols = shared('symbols');
|
|
var OPSymbols = shared('op-symbols');
|
|
var ObjectProto = Object[PROTOTYPE];
|
|
var USE_NATIVE = typeof $Symbol == 'function' && !!$GOPS.f;
|
|
var QObject = global.QObject;
|
|
// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
|
|
var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
|
|
|
|
// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
|
|
var setSymbolDesc = DESCRIPTORS && $fails(function () {
|
|
return _create(dP({}, 'a', {
|
|
get: function () { return dP(this, 'a', { value: 7 }).a; }
|
|
})).a != 7;
|
|
}) ? function (it, key, D) {
|
|
var protoDesc = gOPD(ObjectProto, key);
|
|
if (protoDesc) delete ObjectProto[key];
|
|
dP(it, key, D);
|
|
if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);
|
|
} : dP;
|
|
|
|
var wrap = function (tag) {
|
|
var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);
|
|
sym._k = tag;
|
|
return sym;
|
|
};
|
|
|
|
var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {
|
|
return typeof it == 'symbol';
|
|
} : function (it) {
|
|
return it instanceof $Symbol;
|
|
};
|
|
|
|
var $defineProperty = function defineProperty(it, key, D) {
|
|
if (it === ObjectProto) $defineProperty(OPSymbols, key, D);
|
|
anObject(it);
|
|
key = toPrimitive(key, true);
|
|
anObject(D);
|
|
if (has(AllSymbols, key)) {
|
|
if (!D.enumerable) {
|
|
if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));
|
|
it[HIDDEN][key] = true;
|
|
} else {
|
|
if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;
|
|
D = _create(D, { enumerable: createDesc(0, false) });
|
|
} return setSymbolDesc(it, key, D);
|
|
} return dP(it, key, D);
|
|
};
|
|
var $defineProperties = function defineProperties(it, P) {
|
|
anObject(it);
|
|
var keys = enumKeys(P = toIObject(P));
|
|
var i = 0;
|
|
var l = keys.length;
|
|
var key;
|
|
while (l > i) $defineProperty(it, key = keys[i++], P[key]);
|
|
return it;
|
|
};
|
|
var $create = function create(it, P) {
|
|
return P === undefined ? _create(it) : $defineProperties(_create(it), P);
|
|
};
|
|
var $propertyIsEnumerable = function propertyIsEnumerable(key) {
|
|
var E = isEnum.call(this, key = toPrimitive(key, true));
|
|
if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;
|
|
return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;
|
|
};
|
|
var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {
|
|
it = toIObject(it);
|
|
key = toPrimitive(key, true);
|
|
if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;
|
|
var D = gOPD(it, key);
|
|
if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;
|
|
return D;
|
|
};
|
|
var $getOwnPropertyNames = function getOwnPropertyNames(it) {
|
|
var names = gOPN(toIObject(it));
|
|
var result = [];
|
|
var i = 0;
|
|
var key;
|
|
while (names.length > i) {
|
|
if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);
|
|
} return result;
|
|
};
|
|
var $getOwnPropertySymbols = function getOwnPropertySymbols(it) {
|
|
var IS_OP = it === ObjectProto;
|
|
var names = gOPN(IS_OP ? OPSymbols : toIObject(it));
|
|
var result = [];
|
|
var i = 0;
|
|
var key;
|
|
while (names.length > i) {
|
|
if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);
|
|
} return result;
|
|
};
|
|
|
|
// 19.4.1.1 Symbol([description])
|
|
if (!USE_NATIVE) {
|
|
$Symbol = function Symbol() {
|
|
if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');
|
|
var tag = uid(arguments.length > 0 ? arguments[0] : undefined);
|
|
var $set = function (value) {
|
|
if (this === ObjectProto) $set.call(OPSymbols, value);
|
|
if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
|
|
setSymbolDesc(this, tag, createDesc(1, value));
|
|
};
|
|
if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });
|
|
return wrap(tag);
|
|
};
|
|
redefine($Symbol[PROTOTYPE], 'toString', function toString() {
|
|
return this._k;
|
|
});
|
|
|
|
$GOPD.f = $getOwnPropertyDescriptor;
|
|
$DP.f = $defineProperty;
|
|
__webpack_require__(101).f = gOPNExt.f = $getOwnPropertyNames;
|
|
__webpack_require__(48).f = $propertyIsEnumerable;
|
|
$GOPS.f = $getOwnPropertySymbols;
|
|
|
|
if (DESCRIPTORS && !__webpack_require__(46)) {
|
|
redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
|
|
}
|
|
|
|
wksExt.f = function (name) {
|
|
return wrap(wks(name));
|
|
};
|
|
}
|
|
|
|
$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });
|
|
|
|
for (var es6Symbols = (
|
|
// 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14
|
|
'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'
|
|
).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);
|
|
|
|
for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);
|
|
|
|
$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {
|
|
// 19.4.2.1 Symbol.for(key)
|
|
'for': function (key) {
|
|
return has(SymbolRegistry, key += '')
|
|
? SymbolRegistry[key]
|
|
: SymbolRegistry[key] = $Symbol(key);
|
|
},
|
|
// 19.4.2.5 Symbol.keyFor(sym)
|
|
keyFor: function keyFor(sym) {
|
|
if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');
|
|
for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;
|
|
},
|
|
useSetter: function () { setter = true; },
|
|
useSimple: function () { setter = false; }
|
|
});
|
|
|
|
$export($export.S + $export.F * !USE_NATIVE, 'Object', {
|
|
// 19.1.2.2 Object.create(O [, Properties])
|
|
create: $create,
|
|
// 19.1.2.4 Object.defineProperty(O, P, Attributes)
|
|
defineProperty: $defineProperty,
|
|
// 19.1.2.3 Object.defineProperties(O, Properties)
|
|
defineProperties: $defineProperties,
|
|
// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
|
|
getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
|
|
// 19.1.2.7 Object.getOwnPropertyNames(O)
|
|
getOwnPropertyNames: $getOwnPropertyNames,
|
|
// 19.1.2.8 Object.getOwnPropertySymbols(O)
|
|
getOwnPropertySymbols: $getOwnPropertySymbols
|
|
});
|
|
|
|
// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
|
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3443
|
|
var FAILS_ON_PRIMITIVES = $fails(function () { $GOPS.f(1); });
|
|
|
|
$export($export.S + $export.F * FAILS_ON_PRIMITIVES, 'Object', {
|
|
getOwnPropertySymbols: function getOwnPropertySymbols(it) {
|
|
return $GOPS.f(toObject(it));
|
|
}
|
|
});
|
|
|
|
// 24.3.2 JSON.stringify(value [, replacer [, space]])
|
|
$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {
|
|
var S = $Symbol();
|
|
// MS Edge converts symbol values to JSON as {}
|
|
// WebKit converts symbol values to JSON as null
|
|
// V8 throws on boxed symbols
|
|
return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';
|
|
})), 'JSON', {
|
|
stringify: function stringify(it) {
|
|
var args = [it];
|
|
var i = 1;
|
|
var replacer, $replacer;
|
|
while (arguments.length > i) args.push(arguments[i++]);
|
|
$replacer = replacer = args[1];
|
|
if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
|
|
if (!isArray(replacer)) replacer = function (key, value) {
|
|
if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
|
|
if (!isSymbol(value)) return value;
|
|
};
|
|
args[1] = replacer;
|
|
return _stringify.apply($JSON, args);
|
|
}
|
|
});
|
|
|
|
// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)
|
|
$Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(24)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
|
|
// 19.4.3.5 Symbol.prototype[@@toStringTag]
|
|
setToStringTag($Symbol, 'Symbol');
|
|
// 20.2.1.9 Math[@@toStringTag]
|
|
setToStringTag(Math, 'Math', true);
|
|
// 24.3.3 JSON[@@toStringTag]
|
|
setToStringTag(global.JSON, 'JSON', true);
|
|
|
|
|
|
/***/ }),
|
|
/* 140 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// 9.4.2.3 ArraySpeciesCreate(originalArray, length)
|
|
var speciesConstructor = __webpack_require__(141);
|
|
|
|
module.exports = function (original, length) {
|
|
return new (speciesConstructor(original))(length);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 141 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var isObject = __webpack_require__(26);
|
|
var isArray = __webpack_require__(142);
|
|
var SPECIES = __webpack_require__(11)('species');
|
|
|
|
module.exports = function (original) {
|
|
var C;
|
|
if (isArray(original)) {
|
|
C = original.constructor;
|
|
// cross-realm fallback
|
|
if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
|
|
if (isObject(C)) {
|
|
C = C[SPECIES];
|
|
if (C === null) C = undefined;
|
|
}
|
|
} return C === undefined ? Array : C;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 142 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// 7.2.2 IsArray(argument)
|
|
var cof = __webpack_require__(37);
|
|
module.exports = Array.isArray || function isArray(arg) {
|
|
return cof(arg) == 'Array';
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 143 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// 7.3.20 SpeciesConstructor(O, defaultConstructor)
|
|
var anObject = __webpack_require__(18);
|
|
var aFunction = __webpack_require__(79);
|
|
var SPECIES = __webpack_require__(11)('species');
|
|
module.exports = function (O, D) {
|
|
var C = anObject(O).constructor;
|
|
var S;
|
|
return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 144 */,
|
|
/* 145 */,
|
|
/* 146 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// false -> Array#indexOf
|
|
// true -> Array#includes
|
|
var toIObject = __webpack_require__(96);
|
|
var toLength = __webpack_require__(41);
|
|
var toAbsoluteIndex = __webpack_require__(186);
|
|
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;
|
|
};
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 147 */,
|
|
/* 148 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
__webpack_require__(149);
|
|
var $Object = __webpack_require__(6).Object;
|
|
module.exports = function defineProperty(it, key, desc) {
|
|
return $Object.defineProperty(it, key, desc);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 149 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $export = __webpack_require__(7);
|
|
// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
|
|
$export($export.S + $export.F * !__webpack_require__(13), 'Object', { defineProperty: __webpack_require__(16).f });
|
|
|
|
|
|
/***/ }),
|
|
/* 150 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
module.exports = __webpack_require__(151);
|
|
|
|
/***/ }),
|
|
/* 151 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
__webpack_require__(152);
|
|
module.exports = __webpack_require__(6).Object.getPrototypeOf;
|
|
|
|
|
|
/***/ }),
|
|
/* 152 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// 19.1.2.9 Object.getPrototypeOf(O)
|
|
var toObject = __webpack_require__(31);
|
|
var $getPrototypeOf = __webpack_require__(80);
|
|
|
|
__webpack_require__(84)('getPrototypeOf', function () {
|
|
return function getPrototypeOf(it) {
|
|
return $getPrototypeOf(toObject(it));
|
|
};
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 153 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
__webpack_require__(154);
|
|
module.exports = __webpack_require__(6).Object.setPrototypeOf;
|
|
|
|
|
|
/***/ }),
|
|
/* 154 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// 19.1.3.19 Object.setPrototypeOf(O, proto)
|
|
var $export = __webpack_require__(7);
|
|
$export($export.S, 'Object', { setPrototypeOf: __webpack_require__(155).set });
|
|
|
|
|
|
/***/ }),
|
|
/* 155 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
/* eslint-disable no-proto */
|
|
var isObject = __webpack_require__(9);
|
|
var anObject = __webpack_require__(12);
|
|
var check = function (O, proto) {
|
|
anObject(O);
|
|
if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!");
|
|
};
|
|
module.exports = {
|
|
set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
|
|
function (test, buggy, set) {
|
|
try {
|
|
set = __webpack_require__(30)(Function.call, __webpack_require__(55).f(Object.prototype, '__proto__').set, 2);
|
|
set(test, []);
|
|
buggy = !(test instanceof Array);
|
|
} catch (e) { buggy = true; }
|
|
return function setPrototypeOf(O, proto) {
|
|
check(O, proto);
|
|
if (buggy) O.__proto__ = proto;
|
|
else set(O, proto);
|
|
return O;
|
|
};
|
|
}({}, false) : undefined),
|
|
check: check
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 156 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
__webpack_require__(157);
|
|
var $Object = __webpack_require__(6).Object;
|
|
module.exports = function create(P, D) {
|
|
return $Object.create(P, D);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 157 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $export = __webpack_require__(7);
|
|
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
|
|
$export($export.S, 'Object', { create: __webpack_require__(47) });
|
|
|
|
|
|
/***/ }),
|
|
/* 158 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// false -> Array#indexOf
|
|
// true -> Array#includes
|
|
var toIObject = __webpack_require__(21);
|
|
var toLength = __webpack_require__(67);
|
|
var toAbsoluteIndex = __webpack_require__(159);
|
|
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;
|
|
};
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 159 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var toInteger = __webpack_require__(72);
|
|
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);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 160 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
__webpack_require__(161);
|
|
module.exports = __webpack_require__(6).Reflect.construct;
|
|
|
|
|
|
/***/ }),
|
|
/* 161 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// 26.1.2 Reflect.construct(target, argumentsList [, newTarget])
|
|
var $export = __webpack_require__(7);
|
|
var create = __webpack_require__(47);
|
|
var aFunction = __webpack_require__(42);
|
|
var anObject = __webpack_require__(12);
|
|
var isObject = __webpack_require__(9);
|
|
var fails = __webpack_require__(20);
|
|
var bind = __webpack_require__(162);
|
|
var rConstruct = (__webpack_require__(8).Reflect || {}).construct;
|
|
|
|
// MS Edge supports only 2 arguments and argumentsList argument is optional
|
|
// FF Nightly sets third argument as `new.target`, but does not create `this` from it
|
|
var NEW_TARGET_BUG = fails(function () {
|
|
function F() { /* empty */ }
|
|
return !(rConstruct(function () { /* empty */ }, [], F) instanceof F);
|
|
});
|
|
var ARGS_BUG = !fails(function () {
|
|
rConstruct(function () { /* empty */ });
|
|
});
|
|
|
|
$export($export.S + $export.F * (NEW_TARGET_BUG || ARGS_BUG), 'Reflect', {
|
|
construct: function construct(Target, args /* , newTarget */) {
|
|
aFunction(Target);
|
|
anObject(args);
|
|
var newTarget = arguments.length < 3 ? Target : aFunction(arguments[2]);
|
|
if (ARGS_BUG && !NEW_TARGET_BUG) return rConstruct(Target, args, newTarget);
|
|
if (Target == newTarget) {
|
|
// w/o altered newTarget, optimization for 0-4 arguments
|
|
switch (args.length) {
|
|
case 0: return new Target();
|
|
case 1: return new Target(args[0]);
|
|
case 2: return new Target(args[0], args[1]);
|
|
case 3: return new Target(args[0], args[1], args[2]);
|
|
case 4: return new Target(args[0], args[1], args[2], args[3]);
|
|
}
|
|
// w/o altered newTarget, lot of arguments case
|
|
var $args = [null];
|
|
$args.push.apply($args, args);
|
|
return new (bind.apply(Target, $args))();
|
|
}
|
|
// with altered newTarget, not support built-in constructors
|
|
var proto = newTarget.prototype;
|
|
var instance = create(isObject(proto) ? proto : Object.prototype);
|
|
var result = Function.apply.call(Target, instance, args);
|
|
return isObject(result) ? result : instance;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 162 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var aFunction = __webpack_require__(42);
|
|
var isObject = __webpack_require__(9);
|
|
var invoke = __webpack_require__(130);
|
|
var arraySlice = [].slice;
|
|
var factories = {};
|
|
|
|
var construct = function (F, len, args) {
|
|
if (!(len in factories)) {
|
|
for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']';
|
|
// eslint-disable-next-line no-new-func
|
|
factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')');
|
|
} return factories[len](F, args);
|
|
};
|
|
|
|
module.exports = Function.bind || function bind(that /* , ...args */) {
|
|
var fn = aFunction(this);
|
|
var partArgs = arraySlice.call(arguments, 1);
|
|
var bound = function (/* args... */) {
|
|
var args = partArgs.concat(arraySlice.call(arguments));
|
|
return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that);
|
|
};
|
|
if (isObject(fn.prototype)) bound.prototype = fn.prototype;
|
|
return bound;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 163 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var _typeof = __webpack_require__(40);
|
|
|
|
var assertThisInitialized = __webpack_require__(49);
|
|
|
|
function _possibleConstructorReturn(self, call) {
|
|
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
return call;
|
|
}
|
|
|
|
return assertThisInitialized(self);
|
|
}
|
|
|
|
module.exports = _possibleConstructorReturn;
|
|
|
|
/***/ }),
|
|
/* 164 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
__webpack_require__(57);
|
|
__webpack_require__(60);
|
|
module.exports = __webpack_require__(74).f('iterator');
|
|
|
|
|
|
/***/ }),
|
|
/* 165 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var toInteger = __webpack_require__(72);
|
|
var defined = __webpack_require__(56);
|
|
// true -> String#at
|
|
// false -> String#codePointAt
|
|
module.exports = function (TO_STRING) {
|
|
return function (that, pos) {
|
|
var s = String(defined(that));
|
|
var i = toInteger(pos);
|
|
var l = s.length;
|
|
var a, b;
|
|
if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
|
|
a = s.charCodeAt(i);
|
|
return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
|
|
? TO_STRING ? s.charAt(i) : a
|
|
: TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
|
|
};
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 166 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var create = __webpack_require__(47);
|
|
var descriptor = __webpack_require__(43);
|
|
var setToStringTag = __webpack_require__(52);
|
|
var IteratorPrototype = {};
|
|
|
|
// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
|
|
__webpack_require__(24)(IteratorPrototype, __webpack_require__(10)('iterator'), function () { return this; });
|
|
|
|
module.exports = function (Constructor, NAME, next) {
|
|
Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
|
|
setToStringTag(Constructor, NAME + ' Iterator');
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 167 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var addToUnscopables = __webpack_require__(168);
|
|
var step = __webpack_require__(132);
|
|
var Iterators = __webpack_require__(34);
|
|
var toIObject = __webpack_require__(21);
|
|
|
|
// 22.1.3.4 Array.prototype.entries()
|
|
// 22.1.3.13 Array.prototype.keys()
|
|
// 22.1.3.29 Array.prototype.values()
|
|
// 22.1.3.30 Array.prototype[@@iterator]()
|
|
module.exports = __webpack_require__(94)(Array, 'Array', function (iterated, kind) {
|
|
this._t = toIObject(iterated); // target
|
|
this._i = 0; // next index
|
|
this._k = kind; // kind
|
|
// 22.1.5.2.1 %ArrayIteratorPrototype%.next()
|
|
}, function () {
|
|
var O = this._t;
|
|
var kind = this._k;
|
|
var index = this._i++;
|
|
if (!O || index >= O.length) {
|
|
this._t = undefined;
|
|
return step(1);
|
|
}
|
|
if (kind == 'keys') return step(0, index);
|
|
if (kind == 'values') return step(0, O[index]);
|
|
return step(0, [index, O[index]]);
|
|
}, 'values');
|
|
|
|
// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
|
|
Iterators.Arguments = Iterators.Array;
|
|
|
|
addToUnscopables('keys');
|
|
addToUnscopables('values');
|
|
addToUnscopables('entries');
|
|
|
|
|
|
/***/ }),
|
|
/* 168 */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = function () { /* empty */ };
|
|
|
|
|
|
/***/ }),
|
|
/* 169 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
__webpack_require__(139);
|
|
__webpack_require__(106);
|
|
__webpack_require__(172);
|
|
__webpack_require__(173);
|
|
module.exports = __webpack_require__(6).Symbol;
|
|
|
|
|
|
/***/ }),
|
|
/* 170 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// all enumerable object keys, includes symbols
|
|
var getKeys = __webpack_require__(38);
|
|
var gOPS = __webpack_require__(82);
|
|
var pIE = __webpack_require__(48);
|
|
module.exports = function (it) {
|
|
var result = getKeys(it);
|
|
var getSymbols = gOPS.f;
|
|
if (getSymbols) {
|
|
var symbols = getSymbols(it);
|
|
var isEnum = pIE.f;
|
|
var i = 0;
|
|
var key;
|
|
while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);
|
|
} return result;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 171 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
|
|
var toIObject = __webpack_require__(21);
|
|
var gOPN = __webpack_require__(101).f;
|
|
var toString = {}.toString;
|
|
|
|
var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
|
|
? Object.getOwnPropertyNames(window) : [];
|
|
|
|
var getWindowNames = function (it) {
|
|
try {
|
|
return gOPN(it);
|
|
} catch (e) {
|
|
return windowNames.slice();
|
|
}
|
|
};
|
|
|
|
module.exports.f = function getOwnPropertyNames(it) {
|
|
return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 172 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
__webpack_require__(75)('asyncIterator');
|
|
|
|
|
|
/***/ }),
|
|
/* 173 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
__webpack_require__(75)('observable');
|
|
|
|
|
|
/***/ }),
|
|
/* 174 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var DESCRIPTORS = __webpack_require__(13);
|
|
var getKeys = __webpack_require__(38);
|
|
var toIObject = __webpack_require__(21);
|
|
var isEnum = __webpack_require__(48).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;
|
|
};
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 175 */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' +
|
|
'\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
|
|
|
|
|
/***/ }),
|
|
/* 176 */,
|
|
/* 177 */,
|
|
/* 178 */,
|
|
/* 179 */,
|
|
/* 180 */,
|
|
/* 181 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var toInteger = __webpack_require__(50);
|
|
var defined = __webpack_require__(36);
|
|
// true -> String#at
|
|
// false -> String#codePointAt
|
|
module.exports = function (TO_STRING) {
|
|
return function (that, pos) {
|
|
var s = String(defined(that));
|
|
var i = toInteger(pos);
|
|
var l = s.length;
|
|
var a, b;
|
|
if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
|
|
a = s.charCodeAt(i);
|
|
return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
|
|
? TO_STRING ? s.charAt(i) : a
|
|
: TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
|
|
};
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 182 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var regexpExec = __webpack_require__(83);
|
|
__webpack_require__(32)({
|
|
target: 'RegExp',
|
|
proto: true,
|
|
forced: regexpExec !== /./.exec
|
|
}, {
|
|
exec: regexpExec
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 183 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
module.exports = __webpack_require__(273);
|
|
|
|
/***/ }),
|
|
/* 184 */,
|
|
/* 185 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var ITERATOR = __webpack_require__(10)('iterator');
|
|
var SAFE_CLOSING = false;
|
|
|
|
try {
|
|
var riter = [7][ITERATOR]();
|
|
riter['return'] = function () { SAFE_CLOSING = true; };
|
|
// eslint-disable-next-line no-throw-literal
|
|
Array.from(riter, function () { throw 2; });
|
|
} catch (e) { /* empty */ }
|
|
|
|
module.exports = function (exec, skipClosing) {
|
|
if (!skipClosing && !SAFE_CLOSING) return false;
|
|
var safe = false;
|
|
try {
|
|
var arr = [7];
|
|
var iter = arr[ITERATOR]();
|
|
iter.next = function () { return { done: safe = true }; };
|
|
arr[ITERATOR] = function () { return iter; };
|
|
exec(arr);
|
|
} catch (e) { /* empty */ }
|
|
return safe;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 186 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var toInteger = __webpack_require__(50);
|
|
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);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 187 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
__webpack_require__(282);
|
|
var anObject = __webpack_require__(18);
|
|
var $flags = __webpack_require__(110);
|
|
var DESCRIPTORS = __webpack_require__(25);
|
|
var TO_STRING = 'toString';
|
|
var $toString = /./[TO_STRING];
|
|
|
|
var define = function (fn) {
|
|
__webpack_require__(33)(RegExp.prototype, TO_STRING, fn, true);
|
|
};
|
|
|
|
// 21.2.5.14 RegExp.prototype.toString()
|
|
if (__webpack_require__(28)(function () { return $toString.call({ source: 'a', flags: 'b' }) != '/a/b'; })) {
|
|
define(function toString() {
|
|
var R = anObject(this);
|
|
return '/'.concat(R.source, '/',
|
|
'flags' in R ? R.flags : !DESCRIPTORS && R instanceof RegExp ? $flags.call(R) : undefined);
|
|
});
|
|
// FF44- RegExp#toString has a wrong name
|
|
} else if ($toString.name != TO_STRING) {
|
|
define(function toString() {
|
|
return $toString.call(this);
|
|
});
|
|
}
|
|
|
|
|
|
/***/ }),
|
|
/* 188 */,
|
|
/* 189 */,
|
|
/* 190 */,
|
|
/* 191 */,
|
|
/* 192 */,
|
|
/* 193 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
__webpack_require__(194);
|
|
var $Object = __webpack_require__(6).Object;
|
|
module.exports = function getOwnPropertyDescriptor(it, key) {
|
|
return $Object.getOwnPropertyDescriptor(it, key);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 194 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
|
|
var toIObject = __webpack_require__(21);
|
|
var $getOwnPropertyDescriptor = __webpack_require__(55).f;
|
|
|
|
__webpack_require__(84)('getOwnPropertyDescriptor', function () {
|
|
return function getOwnPropertyDescriptor(it, key) {
|
|
return $getOwnPropertyDescriptor(toIObject(it), key);
|
|
};
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 195 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
module.exports = __webpack_require__(196);
|
|
|
|
/***/ }),
|
|
/* 196 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
__webpack_require__(197);
|
|
module.exports = __webpack_require__(6).Reflect.get;
|
|
|
|
|
|
/***/ }),
|
|
/* 197 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// 26.1.6 Reflect.get(target, propertyKey [, receiver])
|
|
var gOPD = __webpack_require__(55);
|
|
var getPrototypeOf = __webpack_require__(80);
|
|
var has = __webpack_require__(19);
|
|
var $export = __webpack_require__(7);
|
|
var isObject = __webpack_require__(9);
|
|
var anObject = __webpack_require__(12);
|
|
|
|
function get(target, propertyKey /* , receiver */) {
|
|
var receiver = arguments.length < 3 ? target : arguments[2];
|
|
var desc, proto;
|
|
if (anObject(target) === receiver) return target[propertyKey];
|
|
if (desc = gOPD.f(target, propertyKey)) return has(desc, 'value')
|
|
? desc.value
|
|
: desc.get !== undefined
|
|
? desc.get.call(receiver)
|
|
: undefined;
|
|
if (isObject(proto = getPrototypeOf(target))) return get(proto, propertyKey, receiver);
|
|
}
|
|
|
|
$export($export.S, 'Reflect', { get: get });
|
|
|
|
|
|
/***/ }),
|
|
/* 198 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var getPrototypeOf = __webpack_require__(14);
|
|
|
|
function _superPropBase(object, property) {
|
|
while (!Object.prototype.hasOwnProperty.call(object, property)) {
|
|
object = getPrototypeOf(object);
|
|
if (object === null) break;
|
|
}
|
|
|
|
return object;
|
|
}
|
|
|
|
module.exports = _superPropBase;
|
|
|
|
/***/ }),
|
|
/* 199 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
__webpack_require__(200);
|
|
module.exports = __webpack_require__(6).Object.keys;
|
|
|
|
|
|
/***/ }),
|
|
/* 200 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// 19.1.2.14 Object.keys(O)
|
|
var toObject = __webpack_require__(31);
|
|
var $keys = __webpack_require__(38);
|
|
|
|
__webpack_require__(84)('keys', function () {
|
|
return function keys(it) {
|
|
return $keys(toObject(it));
|
|
};
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 201 */,
|
|
/* 202 */,
|
|
/* 203 */,
|
|
/* 204 */,
|
|
/* 205 */,
|
|
/* 206 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
// https://github.com/tc39/Array.prototype.includes
|
|
var $export = __webpack_require__(32);
|
|
var $includes = __webpack_require__(146)(true);
|
|
|
|
$export($export.P, 'Array', {
|
|
includes: function includes(el /* , fromIndex = 0 */) {
|
|
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
}
|
|
});
|
|
|
|
__webpack_require__(78)('includes');
|
|
|
|
|
|
/***/ }),
|
|
/* 207 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var _Object$defineProperty = __webpack_require__(1);
|
|
|
|
_Object$defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
|
|
exports.default = void 0;
|
|
var userAgent = navigator.userAgent;
|
|
var _default = {
|
|
webkit: -1 !== userAgent.indexOf('AppleWebKit'),
|
|
firefox: -1 !== userAgent.indexOf('Firefox'),
|
|
ie: /Trident|MSIE/.test(userAgent),
|
|
edge: -1 !== userAgent.indexOf('Edge'),
|
|
mac: -1 !== userAgent.indexOf('Macintosh')
|
|
};
|
|
exports.default = _default;
|
|
|
|
/***/ }),
|
|
/* 208 */,
|
|
/* 209 */,
|
|
/* 210 */,
|
|
/* 211 */,
|
|
/* 212 */,
|
|
/* 213 */,
|
|
/* 214 */,
|
|
/* 215 */,
|
|
/* 216 */,
|
|
/* 217 */,
|
|
/* 218 */,
|
|
/* 219 */,
|
|
/* 220 */,
|
|
/* 221 */,
|
|
/* 222 */,
|
|
/* 223 */,
|
|
/* 224 */,
|
|
/* 225 */,
|
|
/* 226 */,
|
|
/* 227 */,
|
|
/* 228 */,
|
|
/* 229 */,
|
|
/* 230 */,
|
|
/* 231 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
// 21.1.3.7 String.prototype.includes(searchString, position = 0)
|
|
|
|
var $export = __webpack_require__(32);
|
|
var context = __webpack_require__(232);
|
|
var INCLUDES = 'includes';
|
|
|
|
$export($export.P + $export.F * __webpack_require__(233)(INCLUDES), 'String', {
|
|
includes: function includes(searchString /* , position = 0 */) {
|
|
return !!~context(this, searchString, INCLUDES)
|
|
.indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined);
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 232 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// helper for String#{startsWith, endsWith, includes}
|
|
var isRegExp = __webpack_require__(120);
|
|
var defined = __webpack_require__(36);
|
|
|
|
module.exports = function (that, searchString, NAME) {
|
|
if (isRegExp(searchString)) throw TypeError('String#' + NAME + " doesn't accept regex!");
|
|
return String(defined(that));
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 233 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var MATCH = __webpack_require__(11)('match');
|
|
module.exports = function (KEY) {
|
|
var re = /./;
|
|
try {
|
|
'/./'[KEY](re);
|
|
} catch (e) {
|
|
try {
|
|
re[MATCH] = false;
|
|
return !'/./'[KEY](re);
|
|
} catch (f) { /* empty */ }
|
|
} return true;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 234 */,
|
|
/* 235 */,
|
|
/* 236 */,
|
|
/* 237 */,
|
|
/* 238 */,
|
|
/* 239 */,
|
|
/* 240 */,
|
|
/* 241 */,
|
|
/* 242 */,
|
|
/* 243 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
__webpack_require__(244);
|
|
module.exports = __webpack_require__(6).parseInt;
|
|
|
|
|
|
/***/ }),
|
|
/* 244 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $export = __webpack_require__(7);
|
|
var $parseInt = __webpack_require__(245);
|
|
// 18.2.5 parseInt(string, radix)
|
|
$export($export.G + $export.F * (parseInt != $parseInt), { parseInt: $parseInt });
|
|
|
|
|
|
/***/ }),
|
|
/* 245 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $parseInt = __webpack_require__(8).parseInt;
|
|
var $trim = __webpack_require__(246).trim;
|
|
var ws = __webpack_require__(175);
|
|
var hex = /^[-+]?0[xX]/;
|
|
|
|
module.exports = $parseInt(ws + '08') !== 8 || $parseInt(ws + '0x16') !== 22 ? function parseInt(str, radix) {
|
|
var string = $trim(String(str), 3);
|
|
return $parseInt(string, (radix >>> 0) || (hex.test(string) ? 16 : 10));
|
|
} : $parseInt;
|
|
|
|
|
|
/***/ }),
|
|
/* 246 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $export = __webpack_require__(7);
|
|
var defined = __webpack_require__(56);
|
|
var fails = __webpack_require__(20);
|
|
var spaces = __webpack_require__(175);
|
|
var space = '[' + spaces + ']';
|
|
var non = '\u200b\u0085';
|
|
var ltrim = RegExp('^' + space + space + '*');
|
|
var rtrim = RegExp(space + space + '*$');
|
|
|
|
var exporter = function (KEY, exec, ALIAS) {
|
|
var exp = {};
|
|
var FORCE = fails(function () {
|
|
return !!spaces[KEY]() || non[KEY]() != non;
|
|
});
|
|
var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY];
|
|
if (ALIAS) exp[ALIAS] = fn;
|
|
$export($export.P + $export.F * FORCE, 'String', exp);
|
|
};
|
|
|
|
// 1 -> String#trimLeft
|
|
// 2 -> String#trimRight
|
|
// 3 -> String#trim
|
|
var trim = exporter.trim = function (string, TYPE) {
|
|
string = String(defined(string));
|
|
if (TYPE & 1) string = string.replace(ltrim, '');
|
|
if (TYPE & 2) string = string.replace(rtrim, '');
|
|
return string;
|
|
};
|
|
|
|
module.exports = exporter;
|
|
|
|
|
|
/***/ }),
|
|
/* 247 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
module.exports = __webpack_require__(310);
|
|
|
|
/***/ }),
|
|
/* 248 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
// 25.4.1.5 NewPromiseCapability(C)
|
|
var aFunction = __webpack_require__(42);
|
|
|
|
function PromiseCapability(C) {
|
|
var resolve, reject;
|
|
this.promise = new C(function ($$resolve, $$reject) {
|
|
if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
|
|
resolve = $$resolve;
|
|
reject = $$reject;
|
|
});
|
|
this.resolve = aFunction(resolve);
|
|
this.reject = aFunction(reject);
|
|
}
|
|
|
|
module.exports.f = function (C) {
|
|
return new PromiseCapability(C);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 249 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var global = __webpack_require__(8);
|
|
var core = __webpack_require__(6);
|
|
var dP = __webpack_require__(16);
|
|
var DESCRIPTORS = __webpack_require__(13);
|
|
var SPECIES = __webpack_require__(10)('species');
|
|
|
|
module.exports = function (KEY) {
|
|
var C = typeof core[KEY] == 'function' ? core[KEY] : global[KEY];
|
|
if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, {
|
|
configurable: true,
|
|
get: function () { return this; }
|
|
});
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 250 */,
|
|
/* 251 */,
|
|
/* 252 */,
|
|
/* 253 */,
|
|
/* 254 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
__webpack_require__(255);
|
|
module.exports = __webpack_require__(6).Object.values;
|
|
|
|
|
|
/***/ }),
|
|
/* 255 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// https://github.com/tc39/proposal-object-values-entries
|
|
var $export = __webpack_require__(7);
|
|
var $values = __webpack_require__(174)(false);
|
|
|
|
$export($export.S, 'Object', {
|
|
values: function values(it) {
|
|
return $values(it);
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 256 */,
|
|
/* 257 */,
|
|
/* 258 */,
|
|
/* 259 */,
|
|
/* 260 */,
|
|
/* 261 */,
|
|
/* 262 */,
|
|
/* 263 */,
|
|
/* 264 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
// 22.1.3.9 Array.prototype.findIndex(predicate, thisArg = undefined)
|
|
var $export = __webpack_require__(32);
|
|
var $find = __webpack_require__(119)(6);
|
|
var KEY = 'findIndex';
|
|
var forced = true;
|
|
// Shouldn't skip holes
|
|
if (KEY in []) Array(1)[KEY](function () { forced = false; });
|
|
$export($export.P + $export.F * forced, 'Array', {
|
|
findIndex: function findIndex(callbackfn /* , that = undefined */) {
|
|
return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
}
|
|
});
|
|
__webpack_require__(78)(KEY);
|
|
|
|
|
|
/***/ }),
|
|
/* 265 */,
|
|
/* 266 */,
|
|
/* 267 */,
|
|
/* 268 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// 7.3.20 SpeciesConstructor(O, defaultConstructor)
|
|
var anObject = __webpack_require__(12);
|
|
var aFunction = __webpack_require__(42);
|
|
var SPECIES = __webpack_require__(10)('species');
|
|
module.exports = function (O, D) {
|
|
var C = anObject(O).constructor;
|
|
var S;
|
|
return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 269 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var ctx = __webpack_require__(30);
|
|
var invoke = __webpack_require__(130);
|
|
var html = __webpack_require__(129);
|
|
var cel = __webpack_require__(92);
|
|
var global = __webpack_require__(8);
|
|
var process = global.process;
|
|
var setTask = global.setImmediate;
|
|
var clearTask = global.clearImmediate;
|
|
var MessageChannel = global.MessageChannel;
|
|
var Dispatch = global.Dispatch;
|
|
var counter = 0;
|
|
var queue = {};
|
|
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
var defer, channel, port;
|
|
var run = function () {
|
|
var id = +this;
|
|
// eslint-disable-next-line no-prototype-builtins
|
|
if (queue.hasOwnProperty(id)) {
|
|
var fn = queue[id];
|
|
delete queue[id];
|
|
fn();
|
|
}
|
|
};
|
|
var listener = function (event) {
|
|
run.call(event.data);
|
|
};
|
|
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
|
if (!setTask || !clearTask) {
|
|
setTask = function setImmediate(fn) {
|
|
var args = [];
|
|
var i = 1;
|
|
while (arguments.length > i) args.push(arguments[i++]);
|
|
queue[++counter] = function () {
|
|
// eslint-disable-next-line no-new-func
|
|
invoke(typeof fn == 'function' ? fn : Function(fn), args);
|
|
};
|
|
defer(counter);
|
|
return counter;
|
|
};
|
|
clearTask = function clearImmediate(id) {
|
|
delete queue[id];
|
|
};
|
|
// Node.js 0.8-
|
|
if (__webpack_require__(59)(process) == 'process') {
|
|
defer = function (id) {
|
|
process.nextTick(ctx(run, id, 1));
|
|
};
|
|
// Sphere (JS game engine) Dispatch API
|
|
} else if (Dispatch && Dispatch.now) {
|
|
defer = function (id) {
|
|
Dispatch.now(ctx(run, id, 1));
|
|
};
|
|
// Browsers with MessageChannel, includes WebWorkers
|
|
} else if (MessageChannel) {
|
|
channel = new MessageChannel();
|
|
port = channel.port2;
|
|
channel.port1.onmessage = listener;
|
|
defer = ctx(port.postMessage, port, 1);
|
|
// Browsers with postMessage, skip WebWorkers
|
|
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
|
} else if (global.addEventListener && typeof postMessage == 'function' && !global.importScripts) {
|
|
defer = function (id) {
|
|
global.postMessage(id + '', '*');
|
|
};
|
|
global.addEventListener('message', listener, false);
|
|
// IE8-
|
|
} else if (ONREADYSTATECHANGE in cel('script')) {
|
|
defer = function (id) {
|
|
html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function () {
|
|
html.removeChild(this);
|
|
run.call(id);
|
|
};
|
|
};
|
|
// Rest old browsers
|
|
} else {
|
|
defer = function (id) {
|
|
setTimeout(ctx(run, id, 1), 0);
|
|
};
|
|
}
|
|
}
|
|
module.exports = {
|
|
set: setTask,
|
|
clear: clearTask
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 270 */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = function (exec) {
|
|
try {
|
|
return { e: false, v: exec() };
|
|
} catch (e) {
|
|
return { e: true, v: e };
|
|
}
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 271 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var anObject = __webpack_require__(12);
|
|
var isObject = __webpack_require__(9);
|
|
var newPromiseCapability = __webpack_require__(248);
|
|
|
|
module.exports = function (C, x) {
|
|
anObject(C);
|
|
if (isObject(x) && x.constructor === C) return x;
|
|
var promiseCapability = newPromiseCapability.f(C);
|
|
var resolve = promiseCapability.resolve;
|
|
resolve(x);
|
|
return promiseCapability.promise;
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 272 */,
|
|
/* 273 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var core = __webpack_require__(6);
|
|
var $JSON = core.JSON || (core.JSON = { stringify: JSON.stringify });
|
|
module.exports = function stringify(it) { // eslint-disable-line no-unused-vars
|
|
return $JSON.stringify.apply($JSON, arguments);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 274 */,
|
|
/* 275 */,
|
|
/* 276 */,
|
|
/* 277 */,
|
|
/* 278 */,
|
|
/* 279 */,
|
|
/* 280 */,
|
|
/* 281 */,
|
|
/* 282 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
// 21.2.5.3 get RegExp.prototype.flags()
|
|
if (__webpack_require__(25) && /./g.flags != 'g') __webpack_require__(44).f(RegExp.prototype, 'flags', {
|
|
configurable: true,
|
|
get: __webpack_require__(110)
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 283 */,
|
|
/* 284 */,
|
|
/* 285 */,
|
|
/* 286 */,
|
|
/* 287 */,
|
|
/* 288 */,
|
|
/* 289 */,
|
|
/* 290 */,
|
|
/* 291 */,
|
|
/* 292 */,
|
|
/* 293 */,
|
|
/* 294 */,
|
|
/* 295 */,
|
|
/* 296 */,
|
|
/* 297 */,
|
|
/* 298 */,
|
|
/* 299 */,
|
|
/* 300 */,
|
|
/* 301 */,
|
|
/* 302 */,
|
|
/* 303 */,
|
|
/* 304 */,
|
|
/* 305 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
module.exports = __webpack_require__(306);
|
|
|
|
/***/ }),
|
|
/* 306 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
__webpack_require__(307);
|
|
var $Object = __webpack_require__(6).Object;
|
|
module.exports = function defineProperties(T, D) {
|
|
return $Object.defineProperties(T, D);
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 307 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var $export = __webpack_require__(7);
|
|
// 19.1.2.3 / 15.2.3.7 Object.defineProperties(O, Properties)
|
|
$export($export.S + $export.F * !__webpack_require__(13), 'Object', { defineProperties: __webpack_require__(128) });
|
|
|
|
|
|
/***/ }),
|
|
/* 308 */,
|
|
/* 309 */,
|
|
/* 310 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
__webpack_require__(106);
|
|
__webpack_require__(57);
|
|
__webpack_require__(60);
|
|
__webpack_require__(311);
|
|
__webpack_require__(314);
|
|
__webpack_require__(315);
|
|
module.exports = __webpack_require__(6).Promise;
|
|
|
|
|
|
/***/ }),
|
|
/* 311 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
var LIBRARY = __webpack_require__(46);
|
|
var global = __webpack_require__(8);
|
|
var ctx = __webpack_require__(30);
|
|
var classof = __webpack_require__(107);
|
|
var $export = __webpack_require__(7);
|
|
var isObject = __webpack_require__(9);
|
|
var aFunction = __webpack_require__(42);
|
|
var anInstance = __webpack_require__(125);
|
|
var forOf = __webpack_require__(86);
|
|
var speciesConstructor = __webpack_require__(268);
|
|
var task = __webpack_require__(269).set;
|
|
var microtask = __webpack_require__(312)();
|
|
var newPromiseCapabilityModule = __webpack_require__(248);
|
|
var perform = __webpack_require__(270);
|
|
var userAgent = __webpack_require__(313);
|
|
var promiseResolve = __webpack_require__(271);
|
|
var PROMISE = 'Promise';
|
|
var TypeError = global.TypeError;
|
|
var process = global.process;
|
|
var versions = process && process.versions;
|
|
var v8 = versions && versions.v8 || '';
|
|
var $Promise = global[PROMISE];
|
|
var isNode = classof(process) == 'process';
|
|
var empty = function () { /* empty */ };
|
|
var Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper;
|
|
var newPromiseCapability = newGenericPromiseCapability = newPromiseCapabilityModule.f;
|
|
|
|
var USE_NATIVE = !!function () {
|
|
try {
|
|
// correct subclassing with @@species support
|
|
var promise = $Promise.resolve(1);
|
|
var FakePromise = (promise.constructor = {})[__webpack_require__(10)('species')] = function (exec) {
|
|
exec(empty, empty);
|
|
};
|
|
// unhandled rejections tracking support, NodeJS Promise without it fails @@species test
|
|
return (isNode || typeof PromiseRejectionEvent == 'function')
|
|
&& promise.then(empty) instanceof FakePromise
|
|
// v8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
|
|
// https://bugs.chromium.org/p/chromium/issues/detail?id=830565
|
|
// we can't detect it synchronously, so just check versions
|
|
&& v8.indexOf('6.6') !== 0
|
|
&& userAgent.indexOf('Chrome/66') === -1;
|
|
} catch (e) { /* empty */ }
|
|
}();
|
|
|
|
// helpers
|
|
var isThenable = function (it) {
|
|
var then;
|
|
return isObject(it) && typeof (then = it.then) == 'function' ? then : false;
|
|
};
|
|
var notify = function (promise, isReject) {
|
|
if (promise._n) return;
|
|
promise._n = true;
|
|
var chain = promise._c;
|
|
microtask(function () {
|
|
var value = promise._v;
|
|
var ok = promise._s == 1;
|
|
var i = 0;
|
|
var run = function (reaction) {
|
|
var handler = ok ? reaction.ok : reaction.fail;
|
|
var resolve = reaction.resolve;
|
|
var reject = reaction.reject;
|
|
var domain = reaction.domain;
|
|
var result, then, exited;
|
|
try {
|
|
if (handler) {
|
|
if (!ok) {
|
|
if (promise._h == 2) onHandleUnhandled(promise);
|
|
promise._h = 1;
|
|
}
|
|
if (handler === true) result = value;
|
|
else {
|
|
if (domain) domain.enter();
|
|
result = handler(value); // may throw
|
|
if (domain) {
|
|
domain.exit();
|
|
exited = true;
|
|
}
|
|
}
|
|
if (result === reaction.promise) {
|
|
reject(TypeError('Promise-chain cycle'));
|
|
} else if (then = isThenable(result)) {
|
|
then.call(result, resolve, reject);
|
|
} else resolve(result);
|
|
} else reject(value);
|
|
} catch (e) {
|
|
if (domain && !exited) domain.exit();
|
|
reject(e);
|
|
}
|
|
};
|
|
while (chain.length > i) run(chain[i++]); // variable length - can't use forEach
|
|
promise._c = [];
|
|
promise._n = false;
|
|
if (isReject && !promise._h) onUnhandled(promise);
|
|
});
|
|
};
|
|
var onUnhandled = function (promise) {
|
|
task.call(global, function () {
|
|
var value = promise._v;
|
|
var unhandled = isUnhandled(promise);
|
|
var result, handler, console;
|
|
if (unhandled) {
|
|
result = perform(function () {
|
|
if (isNode) {
|
|
process.emit('unhandledRejection', value, promise);
|
|
} else if (handler = global.onunhandledrejection) {
|
|
handler({ promise: promise, reason: value });
|
|
} else if ((console = global.console) && console.error) {
|
|
console.error('Unhandled promise rejection', value);
|
|
}
|
|
});
|
|
// Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
|
|
promise._h = isNode || isUnhandled(promise) ? 2 : 1;
|
|
} promise._a = undefined;
|
|
if (unhandled && result.e) throw result.v;
|
|
});
|
|
};
|
|
var isUnhandled = function (promise) {
|
|
return promise._h !== 1 && (promise._a || promise._c).length === 0;
|
|
};
|
|
var onHandleUnhandled = function (promise) {
|
|
task.call(global, function () {
|
|
var handler;
|
|
if (isNode) {
|
|
process.emit('rejectionHandled', promise);
|
|
} else if (handler = global.onrejectionhandled) {
|
|
handler({ promise: promise, reason: promise._v });
|
|
}
|
|
});
|
|
};
|
|
var $reject = function (value) {
|
|
var promise = this;
|
|
if (promise._d) return;
|
|
promise._d = true;
|
|
promise = promise._w || promise; // unwrap
|
|
promise._v = value;
|
|
promise._s = 2;
|
|
if (!promise._a) promise._a = promise._c.slice();
|
|
notify(promise, true);
|
|
};
|
|
var $resolve = function (value) {
|
|
var promise = this;
|
|
var then;
|
|
if (promise._d) return;
|
|
promise._d = true;
|
|
promise = promise._w || promise; // unwrap
|
|
try {
|
|
if (promise === value) throw TypeError("Promise can't be resolved itself");
|
|
if (then = isThenable(value)) {
|
|
microtask(function () {
|
|
var wrapper = { _w: promise, _d: false }; // wrap
|
|
try {
|
|
then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1));
|
|
} catch (e) {
|
|
$reject.call(wrapper, e);
|
|
}
|
|
});
|
|
} else {
|
|
promise._v = value;
|
|
promise._s = 1;
|
|
notify(promise, false);
|
|
}
|
|
} catch (e) {
|
|
$reject.call({ _w: promise, _d: false }, e); // wrap
|
|
}
|
|
};
|
|
|
|
// constructor polyfill
|
|
if (!USE_NATIVE) {
|
|
// 25.4.3.1 Promise(executor)
|
|
$Promise = function Promise(executor) {
|
|
anInstance(this, $Promise, PROMISE, '_h');
|
|
aFunction(executor);
|
|
Internal.call(this);
|
|
try {
|
|
executor(ctx($resolve, this, 1), ctx($reject, this, 1));
|
|
} catch (err) {
|
|
$reject.call(this, err);
|
|
}
|
|
};
|
|
// eslint-disable-next-line no-unused-vars
|
|
Internal = function Promise(executor) {
|
|
this._c = []; // <- awaiting reactions
|
|
this._a = undefined; // <- checked in isUnhandled reactions
|
|
this._s = 0; // <- state
|
|
this._d = false; // <- done
|
|
this._v = undefined; // <- value
|
|
this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled
|
|
this._n = false; // <- notify
|
|
};
|
|
Internal.prototype = __webpack_require__(124)($Promise.prototype, {
|
|
// 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected)
|
|
then: function then(onFulfilled, onRejected) {
|
|
var reaction = newPromiseCapability(speciesConstructor(this, $Promise));
|
|
reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;
|
|
reaction.fail = typeof onRejected == 'function' && onRejected;
|
|
reaction.domain = isNode ? process.domain : undefined;
|
|
this._c.push(reaction);
|
|
if (this._a) this._a.push(reaction);
|
|
if (this._s) notify(this, false);
|
|
return reaction.promise;
|
|
},
|
|
// 25.4.5.1 Promise.prototype.catch(onRejected)
|
|
'catch': function (onRejected) {
|
|
return this.then(undefined, onRejected);
|
|
}
|
|
});
|
|
OwnPromiseCapability = function () {
|
|
var promise = new Internal();
|
|
this.promise = promise;
|
|
this.resolve = ctx($resolve, promise, 1);
|
|
this.reject = ctx($reject, promise, 1);
|
|
};
|
|
newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
|
|
return C === $Promise || C === Wrapper
|
|
? new OwnPromiseCapability(C)
|
|
: newGenericPromiseCapability(C);
|
|
};
|
|
}
|
|
|
|
$export($export.G + $export.W + $export.F * !USE_NATIVE, { Promise: $Promise });
|
|
__webpack_require__(52)($Promise, PROMISE);
|
|
__webpack_require__(249)(PROMISE);
|
|
Wrapper = __webpack_require__(6)[PROMISE];
|
|
|
|
// statics
|
|
$export($export.S + $export.F * !USE_NATIVE, PROMISE, {
|
|
// 25.4.4.5 Promise.reject(r)
|
|
reject: function reject(r) {
|
|
var capability = newPromiseCapability(this);
|
|
var $$reject = capability.reject;
|
|
$$reject(r);
|
|
return capability.promise;
|
|
}
|
|
});
|
|
$export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, {
|
|
// 25.4.4.6 Promise.resolve(x)
|
|
resolve: function resolve(x) {
|
|
return promiseResolve(LIBRARY && this === Wrapper ? $Promise : this, x);
|
|
}
|
|
});
|
|
$export($export.S + $export.F * !(USE_NATIVE && __webpack_require__(185)(function (iter) {
|
|
$Promise.all(iter)['catch'](empty);
|
|
})), PROMISE, {
|
|
// 25.4.4.1 Promise.all(iterable)
|
|
all: function all(iterable) {
|
|
var C = this;
|
|
var capability = newPromiseCapability(C);
|
|
var resolve = capability.resolve;
|
|
var reject = capability.reject;
|
|
var result = perform(function () {
|
|
var values = [];
|
|
var index = 0;
|
|
var remaining = 1;
|
|
forOf(iterable, false, function (promise) {
|
|
var $index = index++;
|
|
var alreadyCalled = false;
|
|
values.push(undefined);
|
|
remaining++;
|
|
C.resolve(promise).then(function (value) {
|
|
if (alreadyCalled) return;
|
|
alreadyCalled = true;
|
|
values[$index] = value;
|
|
--remaining || resolve(values);
|
|
}, reject);
|
|
});
|
|
--remaining || resolve(values);
|
|
});
|
|
if (result.e) reject(result.v);
|
|
return capability.promise;
|
|
},
|
|
// 25.4.4.4 Promise.race(iterable)
|
|
race: function race(iterable) {
|
|
var C = this;
|
|
var capability = newPromiseCapability(C);
|
|
var reject = capability.reject;
|
|
var result = perform(function () {
|
|
forOf(iterable, false, function (promise) {
|
|
C.resolve(promise).then(capability.resolve, reject);
|
|
});
|
|
});
|
|
if (result.e) reject(result.v);
|
|
return capability.promise;
|
|
}
|
|
});
|
|
|
|
|
|
/***/ }),
|
|
/* 312 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var global = __webpack_require__(8);
|
|
var macrotask = __webpack_require__(269).set;
|
|
var Observer = global.MutationObserver || global.WebKitMutationObserver;
|
|
var process = global.process;
|
|
var Promise = global.Promise;
|
|
var isNode = __webpack_require__(59)(process) == 'process';
|
|
|
|
module.exports = function () {
|
|
var head, last, notify;
|
|
|
|
var flush = function () {
|
|
var parent, fn;
|
|
if (isNode && (parent = process.domain)) parent.exit();
|
|
while (head) {
|
|
fn = head.fn;
|
|
head = head.next;
|
|
try {
|
|
fn();
|
|
} catch (e) {
|
|
if (head) notify();
|
|
else last = undefined;
|
|
throw e;
|
|
}
|
|
} last = undefined;
|
|
if (parent) parent.enter();
|
|
};
|
|
|
|
// Node.js
|
|
if (isNode) {
|
|
notify = function () {
|
|
process.nextTick(flush);
|
|
};
|
|
// browsers with MutationObserver, except iOS Safari - https://github.com/zloirock/core-js/issues/339
|
|
} else if (Observer && !(global.navigator && global.navigator.standalone)) {
|
|
var toggle = true;
|
|
var node = document.createTextNode('');
|
|
new Observer(flush).observe(node, { characterData: true }); // eslint-disable-line no-new
|
|
notify = function () {
|
|
node.data = toggle = !toggle;
|
|
};
|
|
// environments with maybe non-completely correct, but existent Promise
|
|
} else if (Promise && Promise.resolve) {
|
|
// Promise.resolve without an argument throws an error in LG WebOS 2
|
|
var promise = Promise.resolve(undefined);
|
|
notify = function () {
|
|
promise.then(flush);
|
|
};
|
|
// for other environments - macrotask based on:
|
|
// - setImmediate
|
|
// - MessageChannel
|
|
// - window.postMessag
|
|
// - onreadystatechange
|
|
// - setTimeout
|
|
} else {
|
|
notify = function () {
|
|
// strange IE + webpack dev server bug - use .call(global)
|
|
macrotask.call(global, flush);
|
|
};
|
|
}
|
|
|
|
return function (fn) {
|
|
var task = { fn: fn, next: undefined };
|
|
if (last) last.next = task;
|
|
if (!head) {
|
|
head = task;
|
|
notify();
|
|
} last = task;
|
|
};
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
/* 313 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
var global = __webpack_require__(8);
|
|
var navigator = global.navigator;
|
|
|
|
module.exports = navigator && navigator.userAgent || '';
|
|
|
|
|
|
/***/ }),
|
|
/* 314 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
// https://github.com/tc39/proposal-promise-finally
|
|
|
|
var $export = __webpack_require__(7);
|
|
var core = __webpack_require__(6);
|
|
var global = __webpack_require__(8);
|
|
var speciesConstructor = __webpack_require__(268);
|
|
var promiseResolve = __webpack_require__(271);
|
|
|
|
$export($export.P + $export.R, 'Promise', { 'finally': function (onFinally) {
|
|
var C = speciesConstructor(this, core.Promise || global.Promise);
|
|
var isFunction = typeof onFinally == 'function';
|
|
return this.then(
|
|
isFunction ? function (x) {
|
|
return promiseResolve(C, onFinally()).then(function () { return x; });
|
|
} : onFinally,
|
|
isFunction ? function (e) {
|
|
return promiseResolve(C, onFinally()).then(function () { throw e; });
|
|
} : onFinally
|
|
);
|
|
} });
|
|
|
|
|
|
/***/ }),
|
|
/* 315 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
// https://github.com/tc39/proposal-promise-try
|
|
var $export = __webpack_require__(7);
|
|
var newPromiseCapability = __webpack_require__(248);
|
|
var perform = __webpack_require__(270);
|
|
|
|
$export($export.S, 'Promise', { 'try': function (callbackfn) {
|
|
var promiseCapability = newPromiseCapability.f(this);
|
|
var result = perform(callbackfn);
|
|
(result.e ? promiseCapability.reject : promiseCapability.resolve)(result.v);
|
|
return promiseCapability.promise;
|
|
} });
|
|
|
|
|
|
/***/ }),
|
|
/* 316 */,
|
|
/* 317 */,
|
|
/* 318 */,
|
|
/* 319 */,
|
|
/* 320 */,
|
|
/* 321 */,
|
|
/* 322 */,
|
|
/* 323 */,
|
|
/* 324 */,
|
|
/* 325 */,
|
|
/* 326 */,
|
|
/* 327 */,
|
|
/* 328 */,
|
|
/* 329 */,
|
|
/* 330 */,
|
|
/* 331 */,
|
|
/* 332 */,
|
|
/* 333 */,
|
|
/* 334 */,
|
|
/* 335 */,
|
|
/* 336 */,
|
|
/* 337 */,
|
|
/* 338 */,
|
|
/* 339 */,
|
|
/* 340 */,
|
|
/* 341 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
/**
|
|
* Handles managing all events for whatever you plug it into. Priorities for hooks are based on lowest to highest in
|
|
* that, lowest priority hooks are fired first.
|
|
*/
|
|
|
|
var _interopRequireDefault = __webpack_require__(0);
|
|
|
|
var _parseInt2 = _interopRequireDefault(__webpack_require__(136));
|
|
|
|
var EventManager = function EventManager() {
|
|
var slice = Array.prototype.slice,
|
|
MethodsAvailable;
|
|
/**
|
|
* Contains the hooks that get registered with this EventManager. The array for storage utilizes a "flat"
|
|
* object literal such that looking up the hook utilizes the native object literal hash.
|
|
*/
|
|
|
|
var STORAGE = {
|
|
actions: {},
|
|
filters: {}
|
|
};
|
|
/**
|
|
* Removes the specified hook by resetting the value of it.
|
|
*
|
|
* @param type Type of hook, either 'actions' or 'filters'
|
|
* @param hook The hook (namespace.identifier) to remove
|
|
*
|
|
* @private
|
|
*/
|
|
|
|
function _removeHook(type, hook, callback, context) {
|
|
var handlers, handler, i;
|
|
|
|
if (!STORAGE[type][hook]) {
|
|
return;
|
|
}
|
|
|
|
if (!callback) {
|
|
STORAGE[type][hook] = [];
|
|
} else {
|
|
handlers = STORAGE[type][hook];
|
|
|
|
if (!context) {
|
|
for (i = handlers.length; i--;) {
|
|
if (handlers[i].callback === callback) {
|
|
handlers.splice(i, 1);
|
|
}
|
|
}
|
|
} else {
|
|
for (i = handlers.length; i--;) {
|
|
handler = handlers[i];
|
|
|
|
if (handler.callback === callback && handler.context === context) {
|
|
handlers.splice(i, 1);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
/**
|
|
* Use an insert sort for keeping our hooks organized based on priority. This function is ridiculously faster
|
|
* than bubble sort, etc: http://jsperf.com/javascript-sort
|
|
*
|
|
* @param hooks The custom array containing all of the appropriate hooks to perform an insert sort on.
|
|
* @private
|
|
*/
|
|
|
|
|
|
function _hookInsertSort(hooks) {
|
|
var tmpHook, j, prevHook;
|
|
|
|
for (var i = 1, len = hooks.length; i < len; i++) {
|
|
tmpHook = hooks[i];
|
|
j = i;
|
|
|
|
while ((prevHook = hooks[j - 1]) && prevHook.priority > tmpHook.priority) {
|
|
hooks[j] = hooks[j - 1];
|
|
--j;
|
|
}
|
|
|
|
hooks[j] = tmpHook;
|
|
}
|
|
|
|
return hooks;
|
|
}
|
|
/**
|
|
* Adds the hook to the appropriate storage container
|
|
*
|
|
* @param type 'actions' or 'filters'
|
|
* @param hook The hook (namespace.identifier) to add to our event manager
|
|
* @param callback The function that will be called when the hook is executed.
|
|
* @param priority The priority of this hook. Must be an integer.
|
|
* @param [context] A value to be used for this
|
|
* @private
|
|
*/
|
|
|
|
|
|
function _addHook(type, hook, callback, priority, context) {
|
|
var hookObject = {
|
|
callback: callback,
|
|
priority: priority,
|
|
context: context
|
|
}; // Utilize 'prop itself' : http://jsperf.com/hasownproperty-vs-in-vs-undefined/19
|
|
|
|
var hooks = STORAGE[type][hook];
|
|
|
|
if (hooks) {
|
|
// TEMP FIX BUG
|
|
var hasSameCallback = false;
|
|
jQuery.each(hooks, function () {
|
|
if (this.callback === callback) {
|
|
hasSameCallback = true;
|
|
return false;
|
|
}
|
|
});
|
|
|
|
if (hasSameCallback) {
|
|
return;
|
|
} // END TEMP FIX BUG
|
|
|
|
|
|
hooks.push(hookObject);
|
|
hooks = _hookInsertSort(hooks);
|
|
} else {
|
|
hooks = [hookObject];
|
|
}
|
|
|
|
STORAGE[type][hook] = hooks;
|
|
}
|
|
/**
|
|
* Runs the specified hook. If it is an action, the value is not modified but if it is a filter, it is.
|
|
*
|
|
* @param type 'actions' or 'filters'
|
|
* @param hook The hook ( namespace.identifier ) to be ran.
|
|
* @param args Arguments to pass to the action/filter. If it's a filter, args is actually a single parameter.
|
|
* @private
|
|
*/
|
|
|
|
|
|
function _runHook(type, hook, args) {
|
|
var handlers = STORAGE[type][hook],
|
|
i,
|
|
len;
|
|
|
|
if (!handlers) {
|
|
return 'filters' === type ? args[0] : false;
|
|
}
|
|
|
|
len = handlers.length;
|
|
|
|
if ('filters' === type) {
|
|
for (i = 0; i < len; i++) {
|
|
args[0] = handlers[i].callback.apply(handlers[i].context, args);
|
|
}
|
|
} else {
|
|
for (i = 0; i < len; i++) {
|
|
handlers[i].callback.apply(handlers[i].context, args);
|
|
}
|
|
}
|
|
|
|
return 'filters' === type ? args[0] : true;
|
|
}
|
|
/**
|
|
* Adds an action to the event manager.
|
|
*
|
|
* @param action Must contain namespace.identifier
|
|
* @param callback Must be a valid callback function before this action is added
|
|
* @param [priority=10] Used to control when the function is executed in relation to other callbacks bound to the same hook
|
|
* @param [context] Supply a value to be used for this
|
|
*/
|
|
|
|
|
|
function addAction(action, callback, priority, context) {
|
|
if ('string' === typeof action && 'function' === typeof callback) {
|
|
priority = (0, _parseInt2.default)(priority || 10, 10);
|
|
|
|
_addHook('actions', action, callback, priority, context);
|
|
}
|
|
|
|
return MethodsAvailable;
|
|
}
|
|
/**
|
|
* Performs an action if it exists. You can pass as many arguments as you want to this function; the only rule is
|
|
* that the first argument must always be the action.
|
|
*/
|
|
|
|
|
|
function doAction()
|
|
/* action, arg1, arg2, ... */
|
|
{
|
|
var args = slice.call(arguments);
|
|
var action = args.shift();
|
|
|
|
if ('string' === typeof action) {
|
|
_runHook('actions', action, args);
|
|
}
|
|
|
|
return MethodsAvailable;
|
|
}
|
|
/**
|
|
* Removes the specified action if it contains a namespace.identifier & exists.
|
|
*
|
|
* @param action The action to remove
|
|
* @param [callback] Callback function to remove
|
|
*/
|
|
|
|
|
|
function removeAction(action, callback) {
|
|
if ('string' === typeof action) {
|
|
_removeHook('actions', action, callback);
|
|
}
|
|
|
|
return MethodsAvailable;
|
|
}
|
|
/**
|
|
* Adds a filter to the event manager.
|
|
*
|
|
* @param filter Must contain namespace.identifier
|
|
* @param callback Must be a valid callback function before this action is added
|
|
* @param [priority=10] Used to control when the function is executed in relation to other callbacks bound to the same hook
|
|
* @param [context] Supply a value to be used for this
|
|
*/
|
|
|
|
|
|
function addFilter(filter, callback, priority, context) {
|
|
if ('string' === typeof filter && 'function' === typeof callback) {
|
|
priority = (0, _parseInt2.default)(priority || 10, 10);
|
|
|
|
_addHook('filters', filter, callback, priority, context);
|
|
}
|
|
|
|
return MethodsAvailable;
|
|
}
|
|
/**
|
|
* Performs a filter if it exists. You should only ever pass 1 argument to be filtered. The only rule is that
|
|
* the first argument must always be the filter.
|
|
*/
|
|
|
|
|
|
function applyFilters()
|
|
/* filter, filtered arg, arg2, ... */
|
|
{
|
|
var args = slice.call(arguments);
|
|
var filter = args.shift();
|
|
|
|
if ('string' === typeof filter) {
|
|
return _runHook('filters', filter, args);
|
|
}
|
|
|
|
return MethodsAvailable;
|
|
}
|
|
/**
|
|
* Removes the specified filter if it contains a namespace.identifier & exists.
|
|
*
|
|
* @param filter The action to remove
|
|
* @param [callback] Callback function to remove
|
|
*/
|
|
|
|
|
|
function removeFilter(filter, callback) {
|
|
if ('string' === typeof filter) {
|
|
_removeHook('filters', filter, callback);
|
|
}
|
|
|
|
return MethodsAvailable;
|
|
}
|
|
/**
|
|
* Maintain a reference to the object scope so our public methods never get confusing.
|
|
*/
|
|
|
|
|
|
MethodsAvailable = {
|
|
removeFilter: removeFilter,
|
|
applyFilters: applyFilters,
|
|
addFilter: addFilter,
|
|
removeAction: removeAction,
|
|
doAction: doAction,
|
|
addAction: addAction
|
|
}; // return all of the publicly available methods
|
|
|
|
return MethodsAvailable;
|
|
};
|
|
|
|
module.exports = EventManager;
|
|
|
|
/***/ }),
|
|
/* 342 */,
|
|
/* 343 */,
|
|
/* 344 */,
|
|
/* 345 */,
|
|
/* 346 */,
|
|
/* 347 */,
|
|
/* 348 */,
|
|
/* 349 */,
|
|
/* 350 */,
|
|
/* 351 */,
|
|
/* 352 */,
|
|
/* 353 */,
|
|
/* 354 */,
|
|
/* 355 */,
|
|
/* 356 */,
|
|
/* 357 */,
|
|
/* 358 */,
|
|
/* 359 */,
|
|
/* 360 */,
|
|
/* 361 */,
|
|
/* 362 */,
|
|
/* 363 */,
|
|
/* 364 */,
|
|
/* 365 */,
|
|
/* 366 */,
|
|
/* 367 */,
|
|
/* 368 */,
|
|
/* 369 */,
|
|
/* 370 */,
|
|
/* 371 */,
|
|
/* 372 */,
|
|
/* 373 */,
|
|
/* 374 */,
|
|
/* 375 */,
|
|
/* 376 */,
|
|
/* 377 */,
|
|
/* 378 */,
|
|
/* 379 */,
|
|
/* 380 */,
|
|
/* 381 */,
|
|
/* 382 */,
|
|
/* 383 */,
|
|
/* 384 */,
|
|
/* 385 */,
|
|
/* 386 */,
|
|
/* 387 */,
|
|
/* 388 */,
|
|
/* 389 */,
|
|
/* 390 */,
|
|
/* 391 */,
|
|
/* 392 */,
|
|
/* 393 */,
|
|
/* 394 */,
|
|
/* 395 */,
|
|
/* 396 */,
|
|
/* 397 */,
|
|
/* 398 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(0);
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = void 0;
|
|
|
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
|
|
|
|
var _createClass2 = _interopRequireDefault(__webpack_require__(3));
|
|
|
|
var Scroll = /*#__PURE__*/function () {
|
|
function Scroll() {
|
|
(0, _classCallCheck2.default)(this, Scroll);
|
|
}
|
|
|
|
(0, _createClass2.default)(Scroll, null, [{
|
|
key: "scrollObserver",
|
|
|
|
/**
|
|
* @param {object} obj
|
|
* @param {number} obj.sensitivity - Value between 0-100 - Will determine the intersection trigger points on the element
|
|
* @param {function} obj.callback - Will be triggered on each intersection point between the element and the viewport top/bottom
|
|
* @param {string} obj.offset - Offset between the element intersection points and the viewport, written like in CSS: '-50% 0 -25%'
|
|
* @param {HTMLElement} obj.root - The element that the events will be relative to, if 'null' will be relative to the viewport
|
|
*/
|
|
value: function scrollObserver(obj) {
|
|
var lastScrollY = 0; // Generating threshholds points along the animation height
|
|
// More threshholds points = more trigger points of the callback
|
|
|
|
var buildThreshholds = function buildThreshholds() {
|
|
var sensitivityPercentage = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
var threshholds = [];
|
|
|
|
if (sensitivityPercentage > 0 && sensitivityPercentage <= 100) {
|
|
var increment = 100 / sensitivityPercentage;
|
|
|
|
for (var i = 0; i <= 100; i += increment) {
|
|
threshholds.push(i / 100);
|
|
}
|
|
} else {
|
|
threshholds.push(0);
|
|
}
|
|
|
|
return threshholds;
|
|
};
|
|
|
|
var options = {
|
|
root: obj.root || null,
|
|
rootMargin: obj.offset || '0px',
|
|
threshold: buildThreshholds(obj.sensitivity)
|
|
};
|
|
|
|
function handleIntersect(entries, observer) {
|
|
var currentScrollY = entries[0].boundingClientRect.y,
|
|
isInViewport = entries[0].isIntersecting,
|
|
intersectionScrollDirection = currentScrollY < lastScrollY ? 'down' : 'up',
|
|
scrollPercentage = Math.abs(parseFloat((entries[0].intersectionRatio * 100).toFixed(2)));
|
|
obj.callback({
|
|
sensitivity: obj.sensitivity,
|
|
isInViewport: isInViewport,
|
|
scrollPercentage: scrollPercentage,
|
|
intersectionScrollDirection: intersectionScrollDirection
|
|
});
|
|
lastScrollY = currentScrollY;
|
|
}
|
|
|
|
return new IntersectionObserver(handleIntersect, options);
|
|
}
|
|
/**
|
|
* @param {jQuery Element} $element
|
|
* @param {object} offsetObj
|
|
* @param {number} offsetObj.start - Offset start value in percentages
|
|
* @param {number} offsetObj.end - Offset end value in percentages
|
|
*/
|
|
|
|
}, {
|
|
key: "getElementViewportPercentage",
|
|
value: function getElementViewportPercentage($element) {
|
|
var offsetObj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
var elementOffset = $element[0].getBoundingClientRect(),
|
|
offsetStart = offsetObj.start || 0,
|
|
offsetEnd = offsetObj.end || 0,
|
|
windowStartOffset = window.innerHeight * offsetStart / 100,
|
|
windowEndOffset = window.innerHeight * offsetEnd / 100,
|
|
y1 = elementOffset.top - window.innerHeight,
|
|
y2 = elementOffset.top + windowStartOffset + $element.height(),
|
|
startPosition = 0 - y1 + windowStartOffset,
|
|
endPosition = y2 - y1 + windowEndOffset,
|
|
percent = Math.max(0, Math.min(startPosition / endPosition, 1));
|
|
return parseFloat((percent * 100).toFixed(2));
|
|
}
|
|
/**
|
|
* @param {object} offsetObj
|
|
* @param {number} offsetObj.start - Offset start value in percentages
|
|
* @param {number} offsetObj.end - Offset end value in percentages
|
|
* @param {number} limitPageHeight - Will limit the page height calculation
|
|
*/
|
|
|
|
}, {
|
|
key: "getPageScrollPercentage",
|
|
value: function getPageScrollPercentage() {
|
|
var offsetObj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
var limitPageHeight = arguments.length > 1 ? arguments[1] : undefined;
|
|
var offsetStart = offsetObj.start || 0,
|
|
offsetEnd = offsetObj.end || 0,
|
|
initialPageHeight = limitPageHeight || document.documentElement.scrollHeight - document.documentElement.clientHeight,
|
|
heightOffset = initialPageHeight * offsetStart / 100,
|
|
pageRange = initialPageHeight + heightOffset + initialPageHeight * offsetEnd / 100,
|
|
scrollPos = document.documentElement.scrollTop + document.body.scrollTop + heightOffset;
|
|
return scrollPos / pageRange * 100;
|
|
}
|
|
}]);
|
|
return Scroll;
|
|
}();
|
|
|
|
exports.default = Scroll;
|
|
|
|
/***/ }),
|
|
/* 399 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(0);
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = void 0;
|
|
|
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
|
|
|
|
var _createClass2 = _interopRequireDefault(__webpack_require__(3));
|
|
|
|
var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(163));
|
|
|
|
var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(49));
|
|
|
|
var _getPrototypeOf3 = _interopRequireDefault(__webpack_require__(14));
|
|
|
|
var _get2 = _interopRequireDefault(__webpack_require__(22));
|
|
|
|
var _inherits2 = _interopRequireDefault(__webpack_require__(4));
|
|
|
|
var _defineProperty2 = _interopRequireDefault(__webpack_require__(35));
|
|
|
|
var _scroll = _interopRequireDefault(__webpack_require__(398));
|
|
|
|
var _default = /*#__PURE__*/function (_elementorModules$Vie) {
|
|
(0, _inherits2.default)(_default, _elementorModules$Vie);
|
|
|
|
function _default() {
|
|
var _getPrototypeOf2;
|
|
|
|
var _this;
|
|
|
|
(0, _classCallCheck2.default)(this, _default);
|
|
|
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
args[_key] = arguments[_key];
|
|
}
|
|
|
|
_this = (0, _possibleConstructorReturn2.default)(this, (_getPrototypeOf2 = (0, _getPrototypeOf3.default)(_default)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onInsideViewport", function () {
|
|
_this.run();
|
|
|
|
_this.animationFrameRequest = requestAnimationFrame(_this.onInsideViewport);
|
|
});
|
|
return _this;
|
|
}
|
|
|
|
(0, _createClass2.default)(_default, [{
|
|
key: "__construct",
|
|
value: function __construct(options) {
|
|
this.motionFX = options.motionFX;
|
|
|
|
if (!this.intersectionObservers) {
|
|
this.setElementInViewportObserver();
|
|
}
|
|
}
|
|
}, {
|
|
key: "setElementInViewportObserver",
|
|
value: function setElementInViewportObserver() {
|
|
var _this2 = this;
|
|
|
|
this.intersectionObserver = _scroll.default.scrollObserver({
|
|
callback: function callback(event) {
|
|
if (event.isInViewport) {
|
|
_this2.onInsideViewport();
|
|
} else {
|
|
_this2.removeAnimationFrameRequest();
|
|
}
|
|
}
|
|
});
|
|
this.intersectionObserver.observe(this.motionFX.elements.$parent[0]);
|
|
}
|
|
}, {
|
|
key: "runCallback",
|
|
value: function runCallback() {
|
|
var callback = this.getSettings('callback');
|
|
callback.apply(void 0, arguments);
|
|
}
|
|
}, {
|
|
key: "removeIntersectionObserver",
|
|
value: function removeIntersectionObserver() {
|
|
if (this.intersectionObserver) {
|
|
this.intersectionObserver.unobserve(this.motionFX.elements.$parent[0]);
|
|
}
|
|
}
|
|
}, {
|
|
key: "removeAnimationFrameRequest",
|
|
value: function removeAnimationFrameRequest() {
|
|
if (this.animationFrameRequest) {
|
|
cancelAnimationFrame(this.animationFrameRequest);
|
|
}
|
|
}
|
|
}, {
|
|
key: "destroy",
|
|
value: function destroy() {
|
|
this.removeAnimationFrameRequest();
|
|
this.removeIntersectionObserver();
|
|
}
|
|
}, {
|
|
key: "onInit",
|
|
value: function onInit() {
|
|
(0, _get2.default)((0, _getPrototypeOf3.default)(_default.prototype), "onInit", this).call(this);
|
|
}
|
|
}]);
|
|
return _default;
|
|
}(elementorModules.ViewModule);
|
|
|
|
exports.default = _default;
|
|
|
|
/***/ }),
|
|
/* 400 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(0);
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = void 0;
|
|
|
|
var _typeof2 = _interopRequireDefault(__webpack_require__(29));
|
|
|
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
|
|
|
|
var _createClass2 = _interopRequireDefault(__webpack_require__(3));
|
|
|
|
var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(163));
|
|
|
|
var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(14));
|
|
|
|
var _get3 = _interopRequireDefault(__webpack_require__(22));
|
|
|
|
var _inherits2 = _interopRequireDefault(__webpack_require__(4));
|
|
|
|
var _motionFx = _interopRequireDefault(__webpack_require__(401));
|
|
|
|
var _default = /*#__PURE__*/function (_elementorModules$fro) {
|
|
(0, _inherits2.default)(_default, _elementorModules$fro);
|
|
|
|
function _default() {
|
|
(0, _classCallCheck2.default)(this, _default);
|
|
return (0, _possibleConstructorReturn2.default)(this, (0, _getPrototypeOf2.default)(_default).apply(this, arguments));
|
|
}
|
|
|
|
(0, _createClass2.default)(_default, [{
|
|
key: "__construct",
|
|
value: function __construct() {
|
|
var _get2;
|
|
|
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
args[_key] = arguments[_key];
|
|
}
|
|
|
|
(_get2 = (0, _get3.default)((0, _getPrototypeOf2.default)(_default.prototype), "__construct", this)).call.apply(_get2, [this].concat(args));
|
|
|
|
this.toggle = ceFrontend.debounce(this.toggle, 200);
|
|
}
|
|
}, {
|
|
key: "bindEvents",
|
|
value: function bindEvents() {
|
|
ceFrontend.elements.$window.on('resize', this.toggle);
|
|
}
|
|
}, {
|
|
key: "unbindEvents",
|
|
value: function unbindEvents() {
|
|
ceFrontend.elements.$window.off('resize', this.toggle);
|
|
}
|
|
}, {
|
|
key: "initEffects",
|
|
value: function initEffects() {
|
|
this.effects = {
|
|
translateY: {
|
|
interaction: 'scroll',
|
|
actions: ['translateY']
|
|
},
|
|
translateX: {
|
|
interaction: 'scroll',
|
|
actions: ['translateX']
|
|
},
|
|
rotateZ: {
|
|
interaction: 'scroll',
|
|
actions: ['rotateZ']
|
|
},
|
|
scale: {
|
|
interaction: 'scroll',
|
|
actions: ['scale']
|
|
},
|
|
opacity: {
|
|
interaction: 'scroll',
|
|
actions: ['opacity']
|
|
},
|
|
blur: {
|
|
interaction: 'scroll',
|
|
actions: ['blur']
|
|
},
|
|
mouseTrack: {
|
|
interaction: 'mouseMove',
|
|
actions: ['translateXY']
|
|
},
|
|
tilt: {
|
|
interaction: 'mouseMove',
|
|
actions: ['tilt']
|
|
}
|
|
};
|
|
}
|
|
}, {
|
|
key: "prepareOptions",
|
|
value: function prepareOptions(name) {
|
|
var _this = this;
|
|
|
|
var elementSettings = this.getElementSettings(),
|
|
type = 'motion_fx' === name ? 'element' : 'background',
|
|
interactions = {};
|
|
jQuery.each(elementSettings, function (key, value) {
|
|
var keyRegex = new RegExp('^' + name + '_(.+?)_effect'),
|
|
keyMatches = key.match(keyRegex);
|
|
|
|
if (!keyMatches || !value) {
|
|
return;
|
|
}
|
|
|
|
var options = {},
|
|
effectName = keyMatches[1];
|
|
jQuery.each(elementSettings, function (subKey, subValue) {
|
|
var subKeyRegex = new RegExp(name + '_' + effectName + '_(.+)'),
|
|
subKeyMatches = subKey.match(subKeyRegex);
|
|
|
|
if (!subKeyMatches) {
|
|
return;
|
|
}
|
|
|
|
var subFieldName = subKeyMatches[1];
|
|
|
|
if ('effect' === subFieldName) {
|
|
return;
|
|
}
|
|
|
|
if ('object' === (0, _typeof2.default)(subValue)) {
|
|
subValue = Object.keys(subValue.sizes).length ? subValue.sizes : subValue.size;
|
|
}
|
|
|
|
options[subKeyMatches[1]] = subValue;
|
|
});
|
|
var effect = _this.effects[effectName],
|
|
interactionName = effect.interaction;
|
|
|
|
if (!interactions[interactionName]) {
|
|
interactions[interactionName] = {};
|
|
}
|
|
|
|
effect.actions.forEach(function (action) {
|
|
return interactions[interactionName][action] = options;
|
|
});
|
|
});
|
|
var $element = this.$element,
|
|
$dimensionsElement;
|
|
var elementType = this.getElementType();
|
|
|
|
if ('element' === type && 'section' !== elementType) {
|
|
$dimensionsElement = $element;
|
|
var childElementSelector;
|
|
|
|
if ('column' === elementType) {
|
|
childElementSelector = '.elementor-column-wrap';
|
|
} else {
|
|
childElementSelector = '.elementor-widget-container';
|
|
}
|
|
|
|
$element = $element.find('> ' + childElementSelector);
|
|
}
|
|
|
|
var options = {
|
|
type: type,
|
|
interactions: interactions,
|
|
$element: $element,
|
|
$dimensionsElement: $dimensionsElement,
|
|
refreshDimensions: this.isEdit,
|
|
range: elementSettings[name + '_range'],
|
|
classes: {
|
|
element: 'elementor-motion-effects-element',
|
|
parent: 'elementor-motion-effects-parent',
|
|
backgroundType: 'elementor-motion-effects-element-type-background',
|
|
container: 'elementor-motion-effects-container',
|
|
layer: 'elementor-motion-effects-layer',
|
|
perspective: 'elementor-motion-effects-perspective'
|
|
}
|
|
};
|
|
|
|
if (!options.range && 'fixed' === this.getCurrentDeviceSetting('_position')) {
|
|
options.range = 'page';
|
|
}
|
|
|
|
if ('fixed' === this.getCurrentDeviceSetting('_position')) {
|
|
options.isFixedPosition = true;
|
|
}
|
|
|
|
if ('background' === type && 'column' === this.getElementType()) {
|
|
options.addBackgroundLayerTo = ' > .elementor-element-populated';
|
|
}
|
|
|
|
return options;
|
|
}
|
|
}, {
|
|
key: "activate",
|
|
value: function activate(name) {
|
|
var options = this.prepareOptions(name);
|
|
|
|
if (jQuery.isEmptyObject(options.interactions)) {
|
|
return;
|
|
}
|
|
|
|
this[name] = new _motionFx.default(options);
|
|
}
|
|
}, {
|
|
key: "deactivate",
|
|
value: function deactivate(name) {
|
|
if (this[name]) {
|
|
this[name].destroy();
|
|
delete this[name];
|
|
}
|
|
}
|
|
}, {
|
|
key: "toggle",
|
|
value: function toggle() {
|
|
var _this2 = this;
|
|
|
|
var currentDeviceMode = ceFrontend.getCurrentDeviceMode(),
|
|
elementSettings = this.getElementSettings();
|
|
['motion_fx', 'background_motion_fx'].forEach(function (name) {
|
|
var devices = elementSettings[name + '_devices'],
|
|
isCurrentModeActive = !devices || -1 !== devices.indexOf(currentDeviceMode);
|
|
|
|
if (isCurrentModeActive && (elementSettings[name + '_motion_fx_scrolling'] || elementSettings[name + '_motion_fx_mouse'])) {
|
|
if (_this2[name]) {
|
|
_this2.refreshInstance(name);
|
|
} else {
|
|
_this2.activate(name);
|
|
}
|
|
} else {
|
|
_this2.deactivate(name);
|
|
}
|
|
});
|
|
}
|
|
}, {
|
|
key: "refreshInstance",
|
|
value: function refreshInstance(instanceName) {
|
|
var instance = this[instanceName];
|
|
|
|
if (!instance) {
|
|
return;
|
|
}
|
|
|
|
var preparedOptions = this.prepareOptions(instanceName);
|
|
instance.setSettings(preparedOptions);
|
|
instance.refresh();
|
|
}
|
|
}, {
|
|
key: "onInit",
|
|
value: function onInit() {
|
|
(0, _get3.default)((0, _getPrototypeOf2.default)(_default.prototype), "onInit", this).call(this);
|
|
this.initEffects();
|
|
this.toggle();
|
|
}
|
|
}, {
|
|
key: "onElementChange",
|
|
value: function onElementChange(propertyName) {
|
|
var _this3 = this;
|
|
|
|
if (/motion_fx_((scrolling)|(mouse)|(devices))$/.test(propertyName)) {
|
|
this.toggle();
|
|
return;
|
|
}
|
|
|
|
var propertyMatches = propertyName.match('.*?motion_fx');
|
|
|
|
if (propertyMatches) {
|
|
var instanceName = propertyMatches[0];
|
|
this.refreshInstance(instanceName);
|
|
|
|
if (!this[instanceName]) {
|
|
this.activate(instanceName);
|
|
}
|
|
}
|
|
|
|
if (/^_position/.test(propertyName)) {
|
|
['motion_fx', 'background_motion_fx'].forEach(function (instanceName) {
|
|
_this3.refreshInstance(instanceName);
|
|
});
|
|
}
|
|
}
|
|
}, {
|
|
key: "onDestroy",
|
|
value: function onDestroy() {
|
|
var _this4 = this;
|
|
|
|
(0, _get3.default)((0, _getPrototypeOf2.default)(_default.prototype), "onDestroy", this).call(this);
|
|
['motion_fx', 'background_motion_fx'].forEach(function (name) {
|
|
_this4.deactivate(name);
|
|
});
|
|
}
|
|
}]);
|
|
return _default;
|
|
}(elementorModules.frontend.handlers.Base);
|
|
|
|
exports.default = function ($scope) {
|
|
ceFrontend.elementsHandler.addHandler(_default, {$element: $scope});
|
|
};
|
|
|
|
/***/ }),
|
|
/* 401 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(0);
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = void 0;
|
|
|
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
|
|
|
|
var _createClass2 = _interopRequireDefault(__webpack_require__(3));
|
|
|
|
var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(163));
|
|
|
|
var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(14));
|
|
|
|
var _get2 = _interopRequireDefault(__webpack_require__(22));
|
|
|
|
var _inherits2 = _interopRequireDefault(__webpack_require__(4));
|
|
|
|
var _scroll = _interopRequireDefault(__webpack_require__(402));
|
|
|
|
var _mouseMove = _interopRequireDefault(__webpack_require__(403));
|
|
|
|
var _actions = _interopRequireDefault(__webpack_require__(404));
|
|
|
|
var _default = /*#__PURE__*/function (_elementorModules$Vie) {
|
|
(0, _inherits2.default)(_default, _elementorModules$Vie);
|
|
|
|
function _default() {
|
|
(0, _classCallCheck2.default)(this, _default);
|
|
return (0, _possibleConstructorReturn2.default)(this, (0, _getPrototypeOf2.default)(_default).apply(this, arguments));
|
|
}
|
|
|
|
(0, _createClass2.default)(_default, [{
|
|
key: "getDefaultSettings",
|
|
value: function getDefaultSettings() {
|
|
return {
|
|
type: 'element',
|
|
$element: null,
|
|
$dimensionsElement: null,
|
|
addBackgroundLayerTo: null,
|
|
interactions: {},
|
|
refreshDimensions: false,
|
|
range: 'viewport',
|
|
classes: {
|
|
element: 'motion-fx-element',
|
|
parent: 'motion-fx-parent',
|
|
backgroundType: 'motion-fx-element-type-background',
|
|
container: 'motion-fx-container',
|
|
layer: 'motion-fx-layer',
|
|
perspective: 'motion-fx-perspective'
|
|
}
|
|
};
|
|
}
|
|
}, {
|
|
key: "bindEvents",
|
|
value: function bindEvents() {
|
|
this.onWindowResize = this.onWindowResize.bind(this);
|
|
ceFrontend.elements.$window.on('resize', this.onWindowResize);
|
|
}
|
|
}, {
|
|
key: "unbindEvents",
|
|
value: function unbindEvents() {
|
|
ceFrontend.elements.$window.off('resize', this.onWindowResize);
|
|
}
|
|
}, {
|
|
key: "addBackgroundLayer",
|
|
value: function addBackgroundLayer() {
|
|
var settings = this.getSettings();
|
|
this.elements.$motionFXContainer = jQuery('<div>', {
|
|
class: settings.classes.container
|
|
});
|
|
this.elements.$motionFXLayer = jQuery('<div>', {
|
|
class: settings.classes.layer
|
|
});
|
|
this.updateBackgroundLayerSize();
|
|
this.elements.$motionFXContainer.prepend(this.elements.$motionFXLayer);
|
|
var $addBackgroundLayerTo = settings.addBackgroundLayerTo ? this.$element.find(settings.addBackgroundLayerTo) : this.$element;
|
|
$addBackgroundLayerTo.prepend(this.elements.$motionFXContainer);
|
|
}
|
|
}, {
|
|
key: "removeBackgroundLayer",
|
|
value: function removeBackgroundLayer() {
|
|
this.elements.$motionFXContainer.remove();
|
|
}
|
|
}, {
|
|
key: "updateBackgroundLayerSize",
|
|
value: function updateBackgroundLayerSize() {
|
|
var settings = this.getSettings(),
|
|
speed = {
|
|
x: 0,
|
|
y: 0
|
|
},
|
|
mouseInteraction = settings.interactions.mouseMove,
|
|
scrollInteraction = settings.interactions.scroll;
|
|
|
|
if (mouseInteraction && mouseInteraction.translateXY) {
|
|
speed.x = mouseInteraction.translateXY.speed * 10;
|
|
speed.y = mouseInteraction.translateXY.speed * 10;
|
|
}
|
|
|
|
if (scrollInteraction) {
|
|
if (scrollInteraction.translateX) {
|
|
speed.x = scrollInteraction.translateX.speed * 10;
|
|
}
|
|
|
|
if (scrollInteraction.translateY) {
|
|
speed.y = scrollInteraction.translateY.speed * 10;
|
|
}
|
|
}
|
|
|
|
this.elements.$motionFXLayer.css({
|
|
width: 100 + speed.x + '%',
|
|
height: 100 + speed.y + '%'
|
|
});
|
|
}
|
|
}, {
|
|
key: "defineDimensions",
|
|
value: function defineDimensions() {
|
|
var $dimensionsElement = this.getSettings('$dimensionsElement') || this.$element,
|
|
elementOffset = $dimensionsElement.offset();
|
|
var dimensions = {
|
|
elementHeight: $dimensionsElement.outerHeight(),
|
|
elementWidth: $dimensionsElement.outerWidth(),
|
|
elementTop: elementOffset.top,
|
|
elementLeft: elementOffset.left
|
|
};
|
|
dimensions.elementRange = dimensions.elementHeight + innerHeight;
|
|
this.setSettings('dimensions', dimensions);
|
|
|
|
if ('background' === this.getSettings('type')) {
|
|
this.defineBackgroundLayerDimensions();
|
|
}
|
|
}
|
|
}, {
|
|
key: "defineBackgroundLayerDimensions",
|
|
value: function defineBackgroundLayerDimensions() {
|
|
var dimensions = this.getSettings('dimensions');
|
|
dimensions.layerHeight = this.elements.$motionFXLayer.height();
|
|
dimensions.layerWidth = this.elements.$motionFXLayer.width();
|
|
dimensions.movableX = dimensions.layerWidth - dimensions.elementWidth;
|
|
dimensions.movableY = dimensions.layerHeight - dimensions.elementHeight;
|
|
this.setSettings('dimensions', dimensions);
|
|
}
|
|
}, {
|
|
key: "initInteractionsTypes",
|
|
value: function initInteractionsTypes() {
|
|
this.interactionsTypes = {
|
|
scroll: _scroll.default,
|
|
mouseMove: _mouseMove.default
|
|
};
|
|
}
|
|
}, {
|
|
key: "prepareSpecialActions",
|
|
value: function prepareSpecialActions() {
|
|
var settings = this.getSettings(),
|
|
hasTiltEffect = !!(settings.interactions.mouseMove && settings.interactions.mouseMove.tilt);
|
|
this.elements.$parent.toggleClass(settings.classes.perspective, hasTiltEffect);
|
|
}
|
|
}, {
|
|
key: "cleanSpecialActions",
|
|
value: function cleanSpecialActions() {
|
|
var settings = this.getSettings();
|
|
this.elements.$parent.removeClass(settings.classes.perspective);
|
|
}
|
|
}, {
|
|
key: "runInteractions",
|
|
value: function runInteractions() {
|
|
var _this = this;
|
|
|
|
var settings = this.getSettings();
|
|
this.prepareSpecialActions();
|
|
jQuery.each(settings.interactions, function (interactionName, actions) {
|
|
_this.interactions[interactionName] = new _this.interactionsTypes[interactionName]({
|
|
motionFX: _this,
|
|
callback: function callback() {
|
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
args[_key] = arguments[_key];
|
|
}
|
|
|
|
jQuery.each(actions, function (actionName, actionData) {
|
|
var _this$actions;
|
|
|
|
return (_this$actions = _this.actions).runAction.apply(_this$actions, [actionName, actionData].concat(args));
|
|
});
|
|
}
|
|
});
|
|
|
|
_this.interactions[interactionName].run();
|
|
});
|
|
}
|
|
}, {
|
|
key: "destroyInteractions",
|
|
value: function destroyInteractions() {
|
|
this.cleanSpecialActions();
|
|
jQuery.each(this.interactions, function (interactionName, interaction) {
|
|
return interaction.destroy();
|
|
});
|
|
this.interactions = {};
|
|
}
|
|
}, {
|
|
key: "refresh",
|
|
value: function refresh() {
|
|
this.actions.setSettings(this.getSettings());
|
|
|
|
if ('background' === this.getSettings('type')) {
|
|
this.updateBackgroundLayerSize();
|
|
this.defineBackgroundLayerDimensions();
|
|
}
|
|
|
|
this.actions.refresh();
|
|
this.destroyInteractions();
|
|
this.runInteractions();
|
|
}
|
|
}, {
|
|
key: "destroy",
|
|
value: function destroy() {
|
|
this.destroyInteractions();
|
|
this.actions.refresh();
|
|
var settings = this.getSettings();
|
|
this.$element.removeClass(settings.classes.element);
|
|
this.elements.$parent.removeClass(settings.classes.parent);
|
|
|
|
if ('background' === settings.type) {
|
|
this.$element.removeClass(settings.classes.backgroundType);
|
|
this.removeBackgroundLayer();
|
|
}
|
|
}
|
|
}, {
|
|
key: "onInit",
|
|
value: function onInit() {
|
|
(0, _get2.default)((0, _getPrototypeOf2.default)(_default.prototype), "onInit", this).call(this);
|
|
var settings = this.getSettings();
|
|
this.$element = settings.$element;
|
|
this.elements.$parent = this.$element.parent();
|
|
this.$element.addClass(settings.classes.element);
|
|
this.elements.$parent = this.$element.parent();
|
|
this.elements.$parent.addClass(settings.classes.parent);
|
|
|
|
if ('background' === settings.type) {
|
|
this.$element.addClass(settings.classes.backgroundType);
|
|
this.addBackgroundLayer();
|
|
}
|
|
|
|
this.defineDimensions();
|
|
settings.$targetElement = 'element' === settings.type ? this.$element : this.elements.$motionFXLayer;
|
|
this.interactions = {};
|
|
this.actions = new _actions.default(settings);
|
|
this.initInteractionsTypes();
|
|
this.runInteractions();
|
|
}
|
|
}, {
|
|
key: "onWindowResize",
|
|
value: function onWindowResize() {
|
|
this.defineDimensions();
|
|
}
|
|
}]);
|
|
return _default;
|
|
}(elementorModules.ViewModule);
|
|
|
|
exports.default = _default;
|
|
|
|
/***/ }),
|
|
/* 402 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(0);
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = void 0;
|
|
|
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
|
|
|
|
var _createClass2 = _interopRequireDefault(__webpack_require__(3));
|
|
|
|
var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(163));
|
|
|
|
var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(14));
|
|
|
|
var _inherits2 = _interopRequireDefault(__webpack_require__(4));
|
|
|
|
var _base = _interopRequireDefault(__webpack_require__(399));
|
|
|
|
var _scroll = _interopRequireDefault(__webpack_require__(398));
|
|
|
|
var _default = /*#__PURE__*/function (_BaseInteraction) {
|
|
(0, _inherits2.default)(_default, _BaseInteraction);
|
|
|
|
function _default() {
|
|
(0, _classCallCheck2.default)(this, _default);
|
|
return (0, _possibleConstructorReturn2.default)(this, (0, _getPrototypeOf2.default)(_default).apply(this, arguments));
|
|
}
|
|
|
|
(0, _createClass2.default)(_default, [{
|
|
key: "run",
|
|
value: function run() {
|
|
if (pageYOffset === this.windowScrollTop) {
|
|
return false;
|
|
}
|
|
|
|
this.onScrollMovement();
|
|
this.windowScrollTop = pageYOffset;
|
|
}
|
|
}, {
|
|
key: "onScrollMovement",
|
|
value: function onScrollMovement() {
|
|
this.updateMotionFxDimensions();
|
|
this.updateAnimation();
|
|
}
|
|
}, {
|
|
key: "updateMotionFxDimensions",
|
|
value: function updateMotionFxDimensions() {
|
|
var motionFXSettings = this.motionFX.getSettings();
|
|
|
|
if (motionFXSettings.refreshDimensions) {
|
|
this.motionFX.defineDimensions();
|
|
}
|
|
}
|
|
}, {
|
|
key: "updateAnimation",
|
|
value: function updateAnimation() {
|
|
var passedRangePercents;
|
|
|
|
if ('page' === this.motionFX.getSettings('range')) {
|
|
passedRangePercents = _scroll.default.getPageScrollPercentage();
|
|
} else if (this.motionFX.getSettings('isFixedPosition')) {
|
|
passedRangePercents = _scroll.default.getPageScrollPercentage({}, window.innerHeight);
|
|
} else {
|
|
passedRangePercents = _scroll.default.getElementViewportPercentage(this.motionFX.elements.$parent);
|
|
}
|
|
|
|
this.runCallback(passedRangePercents);
|
|
}
|
|
}]);
|
|
return _default;
|
|
}(_base.default);
|
|
|
|
exports.default = _default;
|
|
|
|
/***/ }),
|
|
/* 403 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(0);
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = void 0;
|
|
|
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
|
|
|
|
var _createClass2 = _interopRequireDefault(__webpack_require__(3));
|
|
|
|
var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(163));
|
|
|
|
var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(14));
|
|
|
|
var _get2 = _interopRequireDefault(__webpack_require__(22));
|
|
|
|
var _inherits2 = _interopRequireDefault(__webpack_require__(4));
|
|
|
|
var _base = _interopRequireDefault(__webpack_require__(399));
|
|
|
|
var MouseMoveInteraction = /*#__PURE__*/function (_BaseInteraction) {
|
|
(0, _inherits2.default)(MouseMoveInteraction, _BaseInteraction);
|
|
|
|
function MouseMoveInteraction() {
|
|
(0, _classCallCheck2.default)(this, MouseMoveInteraction);
|
|
return (0, _possibleConstructorReturn2.default)(this, (0, _getPrototypeOf2.default)(MouseMoveInteraction).apply(this, arguments));
|
|
}
|
|
|
|
(0, _createClass2.default)(MouseMoveInteraction, [{
|
|
key: "bindEvents",
|
|
value: function bindEvents() {
|
|
if (!MouseMoveInteraction.mouseTracked) {
|
|
ceFrontend.elements.$window.on('mousemove', MouseMoveInteraction.updateMousePosition);
|
|
MouseMoveInteraction.mouseTracked = true;
|
|
}
|
|
}
|
|
}, {
|
|
key: "run",
|
|
value: function run() {
|
|
var mousePosition = MouseMoveInteraction.mousePosition,
|
|
oldMousePosition = this.oldMousePosition;
|
|
|
|
if (oldMousePosition.x === mousePosition.x && oldMousePosition.y === mousePosition.y) {
|
|
return;
|
|
}
|
|
|
|
this.oldMousePosition = {
|
|
x: mousePosition.x,
|
|
y: mousePosition.y
|
|
};
|
|
var passedPercentsX = 100 / innerWidth * mousePosition.x,
|
|
passedPercentsY = 100 / innerHeight * mousePosition.y;
|
|
this.runCallback(passedPercentsX, passedPercentsY);
|
|
}
|
|
}, {
|
|
key: "onInit",
|
|
value: function onInit() {
|
|
this.oldMousePosition = {};
|
|
(0, _get2.default)((0, _getPrototypeOf2.default)(MouseMoveInteraction.prototype), "onInit", this).call(this);
|
|
}
|
|
}]);
|
|
return MouseMoveInteraction;
|
|
}(_base.default);
|
|
|
|
exports.default = MouseMoveInteraction;
|
|
MouseMoveInteraction.mousePosition = {};
|
|
|
|
MouseMoveInteraction.updateMousePosition = function (event) {
|
|
MouseMoveInteraction.mousePosition = {
|
|
x: event.clientX,
|
|
y: event.clientY
|
|
};
|
|
};
|
|
|
|
/***/ }),
|
|
/* 404 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(0);
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = void 0;
|
|
|
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
|
|
|
|
var _createClass2 = _interopRequireDefault(__webpack_require__(3));
|
|
|
|
var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(163));
|
|
|
|
var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(14));
|
|
|
|
var _inherits2 = _interopRequireDefault(__webpack_require__(4));
|
|
|
|
var _default = /*#__PURE__*/function (_elementorModules$Mod) {
|
|
(0, _inherits2.default)(_default, _elementorModules$Mod);
|
|
|
|
function _default() {
|
|
(0, _classCallCheck2.default)(this, _default);
|
|
return (0, _possibleConstructorReturn2.default)(this, (0, _getPrototypeOf2.default)(_default).apply(this, arguments));
|
|
}
|
|
|
|
(0, _createClass2.default)(_default, [{
|
|
key: "getMovePointFromPassedPercents",
|
|
value: function getMovePointFromPassedPercents(movableRange, passedPercents) {
|
|
var movePoint = passedPercents / movableRange * 100;
|
|
return +movePoint.toFixed(2);
|
|
}
|
|
}, {
|
|
key: "getEffectValueFromMovePoint",
|
|
value: function getEffectValueFromMovePoint(range, movePoint) {
|
|
return range * movePoint / 100;
|
|
}
|
|
}, {
|
|
key: "getStep",
|
|
value: function getStep(passedPercents, options) {
|
|
if ('element' === this.getSettings('type')) {
|
|
return this.getElementStep(passedPercents, options);
|
|
}
|
|
|
|
return this.getBackgroundStep(passedPercents, options);
|
|
}
|
|
}, {
|
|
key: "getElementStep",
|
|
value: function getElementStep(passedPercents, options) {
|
|
return -(passedPercents - 50) * options.speed;
|
|
}
|
|
}, {
|
|
key: "getBackgroundStep",
|
|
value: function getBackgroundStep(passedPercents, options) {
|
|
var movableRange = this.getSettings('dimensions.movable' + options.axis.toUpperCase());
|
|
return -this.getEffectValueFromMovePoint(movableRange, passedPercents);
|
|
}
|
|
}, {
|
|
key: "getDirectionMovePoint",
|
|
value: function getDirectionMovePoint(passedPercents, direction, range) {
|
|
var movePoint;
|
|
|
|
if (passedPercents < range.start) {
|
|
if ('out-in' === direction) {
|
|
movePoint = 0;
|
|
} else if ('in-out' === direction) {
|
|
movePoint = 100;
|
|
} else {
|
|
movePoint = this.getMovePointFromPassedPercents(range.start, passedPercents);
|
|
|
|
if ('in-out-in' === direction) {
|
|
movePoint = 100 - movePoint;
|
|
}
|
|
}
|
|
} else if (passedPercents < range.end) {
|
|
if ('in-out-in' === direction) {
|
|
movePoint = 0;
|
|
} else if ('out-in-out' === direction) {
|
|
movePoint = 100;
|
|
} else {
|
|
movePoint = this.getMovePointFromPassedPercents(range.end - range.start, passedPercents - range.start);
|
|
|
|
if ('in-out' === direction) {
|
|
movePoint = 100 - movePoint;
|
|
}
|
|
}
|
|
} else if ('in-out' === direction) {
|
|
movePoint = 0;
|
|
} else if ('out-in' === direction) {
|
|
movePoint = 100;
|
|
} else {
|
|
movePoint = this.getMovePointFromPassedPercents(100 - range.end, 100 - passedPercents);
|
|
|
|
if ('in-out-in' === direction) {
|
|
movePoint = 100 - movePoint;
|
|
}
|
|
}
|
|
|
|
return movePoint;
|
|
}
|
|
}, {
|
|
key: "translateX",
|
|
value: function translateX(actionData, passedPercents) {
|
|
actionData.axis = 'x';
|
|
actionData.unit = 'px';
|
|
this.transform('translateX', passedPercents, actionData);
|
|
}
|
|
}, {
|
|
key: "translateY",
|
|
value: function translateY(actionData, passedPercents) {
|
|
actionData.axis = 'y';
|
|
actionData.unit = 'px';
|
|
this.transform('translateY', passedPercents, actionData);
|
|
}
|
|
}, {
|
|
key: "translateXY",
|
|
value: function translateXY(actionData, passedPercentsX, passedPercentsY) {
|
|
this.translateX(actionData, passedPercentsX);
|
|
this.translateY(actionData, passedPercentsY);
|
|
}
|
|
}, {
|
|
key: "tilt",
|
|
value: function tilt(actionData, passedPercentsX, passedPercentsY) {
|
|
var options = {
|
|
speed: actionData.speed / 10,
|
|
direction: actionData.direction
|
|
};
|
|
this.rotateX(options, passedPercentsY);
|
|
this.rotateY(options, 100 - passedPercentsX);
|
|
}
|
|
}, {
|
|
key: "rotateX",
|
|
value: function rotateX(actionData, passedPercents) {
|
|
actionData.axis = 'x';
|
|
actionData.unit = 'deg';
|
|
this.transform('rotateX', passedPercents, actionData);
|
|
}
|
|
}, {
|
|
key: "rotateY",
|
|
value: function rotateY(actionData, passedPercents) {
|
|
actionData.axis = 'y';
|
|
actionData.unit = 'deg';
|
|
this.transform('rotateY', passedPercents, actionData);
|
|
}
|
|
}, {
|
|
key: "rotateZ",
|
|
value: function rotateZ(actionData, passedPercents) {
|
|
actionData.unit = 'deg';
|
|
this.transform('rotateZ', passedPercents, actionData);
|
|
}
|
|
}, {
|
|
key: "scale",
|
|
value: function scale(actionData, passedPercents) {
|
|
var movePoint = this.getDirectionMovePoint(passedPercents, actionData.direction, actionData.range);
|
|
this.updateRulePart('transform', 'scale', 1 + actionData.speed * movePoint / 1000);
|
|
}
|
|
}, {
|
|
key: "transform",
|
|
value: function transform(action, passedPercents, actionData) {
|
|
if (actionData.direction) {
|
|
passedPercents = 100 - passedPercents;
|
|
}
|
|
|
|
this.updateRulePart('transform', action, this.getStep(passedPercents, actionData) + actionData.unit);
|
|
}
|
|
}, {
|
|
key: "opacity",
|
|
value: function opacity(actionData, passedPercents) {
|
|
var movePoint = this.getDirectionMovePoint(passedPercents, actionData.direction, actionData.range),
|
|
level = actionData.level / 10,
|
|
opacity = 1 - level + this.getEffectValueFromMovePoint(level, movePoint);
|
|
this.$element.css({
|
|
opacity: opacity,
|
|
'will-change': 'opacity'
|
|
});
|
|
}
|
|
}, {
|
|
key: "blur",
|
|
value: function blur(actionData, passedPercents) {
|
|
var movePoint = this.getDirectionMovePoint(passedPercents, actionData.direction, actionData.range),
|
|
blur = actionData.level - this.getEffectValueFromMovePoint(actionData.level, movePoint);
|
|
this.updateRulePart('filter', 'blur', blur + 'px');
|
|
}
|
|
}, {
|
|
key: "updateRulePart",
|
|
value: function updateRulePart(ruleName, key, value) {
|
|
if (!this.rulesVariables[ruleName]) {
|
|
this.rulesVariables[ruleName] = {};
|
|
}
|
|
|
|
if (!this.rulesVariables[ruleName][key]) {
|
|
this.rulesVariables[ruleName][key] = true;
|
|
this.updateRule(ruleName);
|
|
}
|
|
|
|
var cssVarKey = "--".concat(key);
|
|
this.$element[0].style.setProperty(cssVarKey, value);
|
|
}
|
|
}, {
|
|
key: "updateRule",
|
|
value: function updateRule(ruleName) {
|
|
var value = '';
|
|
jQuery.each(this.rulesVariables[ruleName], function (variableKey) {
|
|
value += "".concat(variableKey, "(var(--").concat(variableKey, "))");
|
|
});
|
|
this.$element.css(ruleName, value);
|
|
}
|
|
}, {
|
|
key: "runAction",
|
|
value: function runAction(actionName, actionData, passedPercents) {
|
|
if (actionData.affectedRange) {
|
|
if (actionData.affectedRange.start > passedPercents) {
|
|
passedPercents = actionData.affectedRange.start;
|
|
}
|
|
|
|
if (actionData.affectedRange.end < passedPercents) {
|
|
passedPercents = actionData.affectedRange.end;
|
|
}
|
|
}
|
|
|
|
for (var _len = arguments.length, args = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
|
|
args[_key - 3] = arguments[_key];
|
|
}
|
|
|
|
this[actionName].apply(this, [actionData, passedPercents].concat(args));
|
|
}
|
|
}, {
|
|
key: "refresh",
|
|
value: function refresh() {
|
|
this.rulesVariables = {};
|
|
this.$element.css({
|
|
transform: '',
|
|
filter: '',
|
|
opacity: '',
|
|
'will-change': ''
|
|
});
|
|
}
|
|
}, {
|
|
key: "onInit",
|
|
value: function onInit() {
|
|
this.$element = this.getSettings('$targetElement');
|
|
this.refresh();
|
|
}
|
|
}]);
|
|
return _default;
|
|
}(elementorModules.Module);
|
|
|
|
exports.default = _default;
|
|
|
|
/***/ }),
|
|
/* 405 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var StickyHandler = elementorModules.frontend.handlers.Base.extend({
|
|
bindEvents: function bindEvents() {
|
|
ceFrontend.addListenerOnce(this.getUniqueHandlerID() + 'sticky', 'resize', this.run);
|
|
},
|
|
unbindEvents: function unbindEvents() {
|
|
ceFrontend.removeListeners(this.getUniqueHandlerID() + 'sticky', 'resize', this.run);
|
|
},
|
|
isActive: function isActive() {
|
|
return undefined !== this.$element.data('sticky');
|
|
},
|
|
activate: function activate() {
|
|
var elementSettings = this.getElementSettings(),
|
|
stickyOptions = {
|
|
to: elementSettings.sticky,
|
|
offset: elementSettings.sticky_offset,
|
|
effectsOffset: elementSettings.sticky_effects_offset,
|
|
autoHide: elementSettings.sticky_auto_hide,
|
|
autoHideOffset: elementSettings.sticky_auto_hide_offset || {size: 0},
|
|
autoHideDuration: elementSettings.sticky_auto_hide_duration || {size: 0},
|
|
classes: {
|
|
sticky: 'elementor-sticky',
|
|
stickyActive: 'elementor-sticky--active elementor-section--handles-inside',
|
|
stickyEffects: 'elementor-sticky--effects',
|
|
stickyHide: 'ce-sticky--hide',
|
|
spacer: 'elementor-sticky__spacer'
|
|
}
|
|
};
|
|
|
|
if (elementSettings.sticky_parent) {
|
|
stickyOptions.parent = '.elementor-widget-wrap';
|
|
}
|
|
|
|
this.$element.sticky(stickyOptions);
|
|
},
|
|
deactivate: function deactivate() {
|
|
if (!this.isActive()) {
|
|
return;
|
|
}
|
|
|
|
this.$element.sticky('destroy');
|
|
},
|
|
run: function run(refresh) {
|
|
if (!this.getElementSettings('sticky')) {
|
|
this.deactivate();
|
|
return;
|
|
}
|
|
|
|
var currentDeviceMode = ceFrontend.getCurrentDeviceMode(),
|
|
activeDevices = this.getElementSettings('sticky_on');
|
|
|
|
if (-1 !== activeDevices.indexOf(currentDeviceMode)) {
|
|
if (true === refresh) {
|
|
this.reactivate();
|
|
} else if (!this.isActive()) {
|
|
this.activate();
|
|
}
|
|
} else {
|
|
this.deactivate();
|
|
}
|
|
},
|
|
reactivate: function reactivate() {
|
|
this.deactivate();
|
|
this.activate();
|
|
},
|
|
onElementChange: function onElementChange(settingKey) {
|
|
if (-1 !== ['sticky', 'sticky_on'].indexOf(settingKey)) {
|
|
this.run(true);
|
|
}
|
|
|
|
if (-1 !== ['sticky_offset', 'sticky_effects_offset', 'sticky_parent', 'sticky_auto_hide', 'sticky_auto_hide_offset', 'sticky_auto_hide_duration'].indexOf(settingKey)) {
|
|
this.reactivate();
|
|
}
|
|
},
|
|
onInit: function onInit() {
|
|
elementorModules.frontend.handlers.Base.prototype.onInit.apply(this, arguments);
|
|
this.run();
|
|
},
|
|
onDestroy: function onDestroy() {
|
|
elementorModules.frontend.handlers.Base.prototype.onDestroy.apply(this, arguments);
|
|
this.deactivate();
|
|
}
|
|
});
|
|
|
|
module.exports = function ($scope) {
|
|
new StickyHandler({$element: $scope});
|
|
};
|
|
|
|
/***/ }),
|
|
/* 406 */,
|
|
/* 407 */,
|
|
/* 408 */,
|
|
/* 409 */,
|
|
/* 410 */,
|
|
/* 411 */,
|
|
/* 412 */,
|
|
/* 413 */,
|
|
/* 414 */,
|
|
/* 415 */,
|
|
/* 416 */,
|
|
/* 417 */,
|
|
/* 418 */,
|
|
/* 419 */,
|
|
/* 420 */,
|
|
/* 421 */,
|
|
/* 422 */,
|
|
/* 423 */,
|
|
/* 424 */,
|
|
/* 425 */,
|
|
/* 426 */,
|
|
/* 427 */,
|
|
/* 428 */,
|
|
/* 429 */,
|
|
/* 430 */,
|
|
/* 431 */,
|
|
/* 432 */,
|
|
/* 433 */,
|
|
/* 434 */,
|
|
/* 435 */,
|
|
/* 436 */,
|
|
/* 437 */,
|
|
/* 438 */,
|
|
/* 439 */,
|
|
/* 440 */,
|
|
/* 441 */,
|
|
/* 442 */,
|
|
/* 443 */,
|
|
/* 444 */,
|
|
/* 445 */,
|
|
/* 446 */,
|
|
/* 447 */,
|
|
/* 448 */,
|
|
/* 449 */,
|
|
/* 450 */,
|
|
/* 451 */,
|
|
/* 452 */,
|
|
/* 453 */,
|
|
/* 454 */,
|
|
/* 455 */,
|
|
/* 456 */,
|
|
/* 457 */,
|
|
/* 458 */,
|
|
/* 459 */,
|
|
/* 460 */,
|
|
/* 461 */,
|
|
/* 462 */,
|
|
/* 463 */,
|
|
/* 464 */,
|
|
/* 465 */,
|
|
/* 466 */,
|
|
/* 467 */,
|
|
/* 468 */,
|
|
/* 469 */,
|
|
/* 470 */,
|
|
/* 471 */,
|
|
/* 472 */,
|
|
/* 473 */,
|
|
/* 474 */,
|
|
/* 475 */,
|
|
/* 476 */,
|
|
/* 477 */,
|
|
/* 478 */,
|
|
/* 479 */,
|
|
/* 480 */,
|
|
/* 481 */,
|
|
/* 482 */,
|
|
/* 483 */,
|
|
/* 484 */,
|
|
/* 485 */,
|
|
/* 486 */,
|
|
/* 487 */,
|
|
/* 488 */,
|
|
/* 489 */,
|
|
/* 490 */,
|
|
/* 491 */,
|
|
/* 492 */,
|
|
/* 493 */,
|
|
/* 494 */,
|
|
/* 495 */,
|
|
/* 496 */,
|
|
/* 497 */,
|
|
/* 498 */,
|
|
/* 499 */,
|
|
/* 500 */,
|
|
/* 501 */,
|
|
/* 502 */,
|
|
/* 503 */,
|
|
/* 504 */,
|
|
/* 505 */,
|
|
/* 506 */,
|
|
/* 507 */,
|
|
/* 508 */,
|
|
/* 509 */,
|
|
/* 510 */,
|
|
/* 511 */,
|
|
/* 512 */,
|
|
/* 513 */,
|
|
/* 514 */,
|
|
/* 515 */,
|
|
/* 516 */,
|
|
/* 517 */,
|
|
/* 518 */,
|
|
/* 519 */,
|
|
/* 520 */,
|
|
/* 521 */,
|
|
/* 522 */,
|
|
/* 523 */,
|
|
/* 524 */,
|
|
/* 525 */,
|
|
/* 526 */,
|
|
/* 527 */,
|
|
/* 528 */,
|
|
/* 529 */,
|
|
/* 530 */,
|
|
/* 531 */,
|
|
/* 532 */,
|
|
/* 533 */,
|
|
/* 534 */,
|
|
/* 535 */,
|
|
/* 536 */,
|
|
/* 537 */,
|
|
/* 538 */,
|
|
/* 539 */,
|
|
/* 540 */,
|
|
/* 541 */,
|
|
/* 542 */,
|
|
/* 543 */,
|
|
/* 544 */,
|
|
/* 545 */,
|
|
/* 546 */,
|
|
/* 547 */,
|
|
/* 548 */,
|
|
/* 549 */,
|
|
/* 550 */,
|
|
/* 551 */,
|
|
/* 552 */,
|
|
/* 553 */,
|
|
/* 554 */,
|
|
/* 555 */,
|
|
/* 556 */,
|
|
/* 557 */,
|
|
/* 558 */,
|
|
/* 559 */,
|
|
/* 560 */,
|
|
/* 561 */,
|
|
/* 562 */,
|
|
/* 563 */,
|
|
/* 564 */,
|
|
/* 565 */,
|
|
/* 566 */,
|
|
/* 567 */,
|
|
/* 568 */,
|
|
/* 569 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(0);
|
|
|
|
var _Object$defineProperty = __webpack_require__(1);
|
|
|
|
_Object$defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
|
|
exports.default = void 0;
|
|
|
|
var _stringify = _interopRequireDefault(__webpack_require__(183));
|
|
|
|
var _keys = _interopRequireDefault(__webpack_require__(23));
|
|
|
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
|
|
|
|
var _createClass2 = _interopRequireDefault(__webpack_require__(3));
|
|
|
|
var _inherits2 = _interopRequireDefault(__webpack_require__(4));
|
|
|
|
var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
|
|
|
|
var _default = /*#__PURE__*/function (_elementorModules$Mod) {
|
|
(0, _inherits2.default)(_default, _elementorModules$Mod);
|
|
|
|
var _super = (0, _createSuper2.default)(_default);
|
|
|
|
function _default() {
|
|
(0, _classCallCheck2.default)(this, _default);
|
|
return _super.apply(this, arguments);
|
|
}
|
|
|
|
(0, _createClass2.default)(_default, [{
|
|
key: "get",
|
|
value: function get(key, options) {
|
|
options = options || {};
|
|
var storage;
|
|
|
|
try {
|
|
storage = options.session ? sessionStorage : localStorage;
|
|
} catch (e) {
|
|
return key ? undefined : {};
|
|
}
|
|
|
|
var elementorStorage = storage.getItem('elementor');
|
|
|
|
if (elementorStorage) {
|
|
elementorStorage = JSON.parse(elementorStorage);
|
|
} else {
|
|
elementorStorage = {};
|
|
}
|
|
|
|
if (!elementorStorage.__expiration) {
|
|
elementorStorage.__expiration = {};
|
|
}
|
|
|
|
var expiration = elementorStorage.__expiration;
|
|
var expirationToCheck = [];
|
|
|
|
if (key) {
|
|
if (expiration[key]) {
|
|
expirationToCheck = [key];
|
|
}
|
|
} else {
|
|
expirationToCheck = (0, _keys.default)(expiration);
|
|
}
|
|
|
|
var entryExpired = false;
|
|
expirationToCheck.forEach(function (expirationKey) {
|
|
if (new Date(expiration[expirationKey]) < new Date()) {
|
|
delete elementorStorage[expirationKey];
|
|
delete expiration[expirationKey];
|
|
entryExpired = true;
|
|
}
|
|
});
|
|
|
|
if (entryExpired) {
|
|
this.save(elementorStorage, options.session);
|
|
}
|
|
|
|
if (key) {
|
|
return elementorStorage[key];
|
|
}
|
|
|
|
return elementorStorage;
|
|
}
|
|
}, {
|
|
key: "set",
|
|
value: function set(key, value, options) {
|
|
options = options || {};
|
|
var elementorStorage = this.get(null, options);
|
|
elementorStorage[key] = value;
|
|
|
|
if (options.lifetimeInSeconds) {
|
|
var date = new Date();
|
|
date.setTime(date.getTime() + options.lifetimeInSeconds * 1000);
|
|
elementorStorage.__expiration[key] = date.getTime();
|
|
}
|
|
|
|
this.save(elementorStorage, options.session);
|
|
}
|
|
}, {
|
|
key: "save",
|
|
value: function save(object, session) {
|
|
var storage;
|
|
|
|
try {
|
|
storage = session ? sessionStorage : localStorage;
|
|
} catch (e) {
|
|
return;
|
|
}
|
|
|
|
storage.setItem('elementor', (0, _stringify.default)(object));
|
|
}
|
|
}]);
|
|
return _default;
|
|
}(elementorModules.Module);
|
|
|
|
exports.default = _default;
|
|
|
|
/***/ }),
|
|
/* 570 */,
|
|
/* 571 */,
|
|
/* 572 */,
|
|
/* 573 */,
|
|
/* 574 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(0);
|
|
|
|
var _Object$defineProperty = __webpack_require__(1);
|
|
|
|
_Object$defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
|
|
exports.default = void 0;
|
|
|
|
__webpack_require__(17);
|
|
|
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
|
|
|
|
var _createClass2 = _interopRequireDefault(__webpack_require__(3));
|
|
|
|
var _get2 = _interopRequireDefault(__webpack_require__(22));
|
|
|
|
var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(14));
|
|
|
|
var _inherits2 = _interopRequireDefault(__webpack_require__(4));
|
|
|
|
var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
|
|
|
|
var _default = /*#__PURE__*/function (_elementorModules$Vie) {
|
|
(0, _inherits2.default)(_default, _elementorModules$Vie);
|
|
|
|
var _super = (0, _createSuper2.default)(_default);
|
|
|
|
function _default() {
|
|
(0, _classCallCheck2.default)(this, _default);
|
|
return _super.apply(this, arguments);
|
|
}
|
|
|
|
(0, _createClass2.default)(_default, [{
|
|
key: "getDefaultSettings",
|
|
value: function getDefaultSettings() {
|
|
return {
|
|
selectors: {
|
|
elements: '.elementor-element',
|
|
nestedDocumentElements: '.elementor .elementor-element'
|
|
},
|
|
classes: {
|
|
editMode: 'elementor-edit-mode'
|
|
}
|
|
};
|
|
}
|
|
}, {
|
|
key: "getDefaultElements",
|
|
value: function getDefaultElements() {
|
|
var selectors = this.getSettings('selectors');
|
|
return {
|
|
$elements: this.$element.find(selectors.elements).not(this.$element.find(selectors.nestedDocumentElements))
|
|
};
|
|
}
|
|
}, {
|
|
key: "getDocumentSettings",
|
|
value: function getDocumentSettings(setting) {
|
|
var elementSettings;
|
|
|
|
if (this.isEdit) {
|
|
elementSettings = {};
|
|
var settings = elementor.settings.page.model;
|
|
jQuery.each(settings.getActiveControls(), function (controlKey) {
|
|
elementSettings[controlKey] = settings.attributes[controlKey];
|
|
});
|
|
} else {
|
|
elementSettings = this.$element.data('elementor-settings') || {};
|
|
}
|
|
|
|
return this.getItems(elementSettings, setting);
|
|
}
|
|
}, {
|
|
key: "runElementsHandlers",
|
|
value: function runElementsHandlers() {
|
|
this.elements.$elements.each(function (index, element) {
|
|
return ceFrontend.elementsHandler.runReadyTrigger(element);
|
|
});
|
|
}
|
|
}, {
|
|
key: "onInit",
|
|
value: function onInit() {
|
|
var _this = this;
|
|
|
|
this.$element = this.getSettings('$element');
|
|
(0, _get2.default)((0, _getPrototypeOf2.default)(_default.prototype), "onInit", this).call(this);
|
|
this.isEdit = this.$element.hasClass(this.getSettings('classes.editMode'));
|
|
|
|
if (this.isEdit) {
|
|
elementor.on('document:loaded', function () {
|
|
elementor.settings.page.model.on('change', _this.onSettingsChange.bind(_this));
|
|
});
|
|
} else {
|
|
this.runElementsHandlers();
|
|
}
|
|
}
|
|
}, {
|
|
key: "onSettingsChange",
|
|
value: function onSettingsChange() {}
|
|
}]);
|
|
return _default;
|
|
}(elementorModules.ViewModule);
|
|
|
|
exports.default = _default;
|
|
|
|
/***/ }),
|
|
/* 575 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(0);
|
|
|
|
var _Object$defineProperty = __webpack_require__(1);
|
|
|
|
_Object$defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
|
|
exports.default = void 0;
|
|
|
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
|
|
|
|
var _createClass2 = _interopRequireDefault(__webpack_require__(3));
|
|
|
|
var _get3 = _interopRequireDefault(__webpack_require__(22));
|
|
|
|
var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(14));
|
|
|
|
var _inherits2 = _interopRequireDefault(__webpack_require__(4));
|
|
|
|
var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
|
|
|
|
var baseTabs = /*#__PURE__*/function (_elementorModules$fro) {
|
|
(0, _inherits2.default)(baseTabs, _elementorModules$fro);
|
|
|
|
var _super = (0, _createSuper2.default)(baseTabs);
|
|
|
|
function baseTabs() {
|
|
(0, _classCallCheck2.default)(this, baseTabs);
|
|
return _super.apply(this, arguments);
|
|
}
|
|
|
|
(0, _createClass2.default)(baseTabs, [{
|
|
key: "getDefaultSettings",
|
|
value: function getDefaultSettings() {
|
|
return {
|
|
selectors: {
|
|
tabTitle: '.elementor-tab-title',
|
|
tabContent: '.elementor-tab-content'
|
|
},
|
|
classes: {
|
|
active: 'elementor-active'
|
|
},
|
|
showTabFn: 'show',
|
|
hideTabFn: 'hide',
|
|
toggleSelf: true,
|
|
hidePrevious: true,
|
|
autoExpand: true
|
|
};
|
|
}
|
|
}, {
|
|
key: "getDefaultElements",
|
|
value: function getDefaultElements() {
|
|
var selectors = this.getSettings('selectors');
|
|
return {
|
|
$tabTitles: this.findElement(selectors.tabTitle),
|
|
$tabContents: this.findElement(selectors.tabContent)
|
|
};
|
|
}
|
|
}, {
|
|
key: "activateDefaultTab",
|
|
value: function activateDefaultTab() {
|
|
var settings = this.getSettings();
|
|
|
|
if (!settings.autoExpand || 'editor' === settings.autoExpand && !this.isEdit) {
|
|
return;
|
|
}
|
|
|
|
var defaultActiveTab = this.getEditSettings('activeItemIndex') || 1,
|
|
originalToggleMethods = {
|
|
showTabFn: settings.showTabFn,
|
|
hideTabFn: settings.hideTabFn
|
|
}; // Toggle tabs without animation to avoid jumping
|
|
|
|
this.setSettings({
|
|
showTabFn: 'show',
|
|
hideTabFn: 'hide'
|
|
});
|
|
this.changeActiveTab(defaultActiveTab); // Return back original toggle effects
|
|
|
|
this.setSettings(originalToggleMethods);
|
|
}
|
|
}, {
|
|
key: "deactivateActiveTab",
|
|
value: function deactivateActiveTab(tabIndex) {
|
|
var settings = this.getSettings(),
|
|
activeClass = settings.classes.active,
|
|
activeFilter = tabIndex ? '[data-tab="' + tabIndex + '"]' : '.' + activeClass,
|
|
$activeTitle = this.elements.$tabTitles.filter(activeFilter),
|
|
$activeContent = this.elements.$tabContents.filter(activeFilter);
|
|
$activeTitle.add($activeContent).removeClass(activeClass);
|
|
$activeContent[settings.hideTabFn]();
|
|
}
|
|
}, {
|
|
key: "activateTab",
|
|
value: function activateTab(tabIndex) {
|
|
var settings = this.getSettings(),
|
|
activeClass = settings.classes.active,
|
|
$requestedTitle = this.elements.$tabTitles.filter('[data-tab="' + tabIndex + '"]'),
|
|
$requestedContent = this.elements.$tabContents.filter('[data-tab="' + tabIndex + '"]');
|
|
$requestedTitle.add($requestedContent).addClass(activeClass);
|
|
$requestedContent[settings.showTabFn]();
|
|
}
|
|
}, {
|
|
key: "isActiveTab",
|
|
value: function isActiveTab(tabIndex) {
|
|
return this.elements.$tabTitles.filter('[data-tab="' + tabIndex + '"]').hasClass(this.getSettings('classes.active'));
|
|
}
|
|
}, {
|
|
key: "bindEvents",
|
|
value: function bindEvents() {
|
|
var _this = this;
|
|
|
|
this.elements.$tabTitles.on({
|
|
keydown: function keydown(event) {
|
|
if ('Enter' === event.key) {
|
|
event.preventDefault();
|
|
|
|
_this.changeActiveTab(event.currentTarget.getAttribute('data-tab'));
|
|
}
|
|
},
|
|
click: function click(event) {
|
|
event.preventDefault();
|
|
|
|
_this.changeActiveTab(event.currentTarget.getAttribute('data-tab'));
|
|
}
|
|
});
|
|
}
|
|
}, {
|
|
key: "onInit",
|
|
value: function onInit() {
|
|
var _get2;
|
|
|
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
args[_key] = arguments[_key];
|
|
}
|
|
|
|
(_get2 = (0, _get3.default)((0, _getPrototypeOf2.default)(baseTabs.prototype), "onInit", this)).call.apply(_get2, [this].concat(args));
|
|
|
|
this.activateDefaultTab();
|
|
}
|
|
}, {
|
|
key: "onEditSettingsChange",
|
|
value: function onEditSettingsChange(propertyName) {
|
|
if ('activeItemIndex' === propertyName) {
|
|
this.activateDefaultTab();
|
|
}
|
|
}
|
|
}, {
|
|
key: "changeActiveTab",
|
|
value: function changeActiveTab(tabIndex) {
|
|
var isActiveTab = this.isActiveTab(tabIndex),
|
|
settings = this.getSettings();
|
|
|
|
if ((settings.toggleSelf || !isActiveTab) && settings.hidePrevious) {
|
|
this.deactivateActiveTab();
|
|
}
|
|
|
|
if (!settings.hidePrevious && isActiveTab) {
|
|
this.deactivateActiveTab(tabIndex);
|
|
}
|
|
|
|
if (!isActiveTab) {
|
|
this.activateTab(tabIndex);
|
|
}
|
|
}
|
|
}]);
|
|
return baseTabs;
|
|
}(elementorModules.frontend.handlers.Base);
|
|
|
|
exports.default = baseTabs;
|
|
|
|
/***/ }),
|
|
/* 576 */,
|
|
/* 577 */,
|
|
/* 578 */,
|
|
/* 579 */,
|
|
/* 580 */,
|
|
/* 581 */,
|
|
/* 582 */,
|
|
/* 583 */,
|
|
/* 584 */,
|
|
/* 585 */,
|
|
/* 586 */,
|
|
/* 587 */,
|
|
/* 588 */,
|
|
/* 589 */,
|
|
/* 590 */,
|
|
/* 591 */,
|
|
/* 592 */,
|
|
/* 593 */,
|
|
/* 594 */,
|
|
/* 595 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(0);
|
|
|
|
var _Object$defineProperty = __webpack_require__(1);
|
|
|
|
_Object$defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
|
|
exports.default = void 0;
|
|
|
|
__webpack_require__(99);
|
|
|
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
|
|
|
|
var _createClass2 = _interopRequireDefault(__webpack_require__(3));
|
|
|
|
var _inherits2 = _interopRequireDefault(__webpack_require__(4));
|
|
|
|
var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
|
|
|
|
var BaseLoader = /*#__PURE__*/function (_elementorModules$Vie) {
|
|
(0, _inherits2.default)(BaseLoader, _elementorModules$Vie);
|
|
|
|
var _super = (0, _createSuper2.default)(BaseLoader);
|
|
|
|
function BaseLoader() {
|
|
(0, _classCallCheck2.default)(this, BaseLoader);
|
|
return _super.apply(this, arguments);
|
|
}
|
|
|
|
(0, _createClass2.default)(BaseLoader, [{
|
|
key: "getDefaultSettings",
|
|
value: function getDefaultSettings() {
|
|
return {
|
|
isInserted: false,
|
|
selectors: {
|
|
firstScript: 'script:first'
|
|
}
|
|
};
|
|
}
|
|
}, {
|
|
key: "getDefaultElements",
|
|
value: function getDefaultElements() {
|
|
return {
|
|
$firstScript: jQuery(this.getSettings('selectors.firstScript'))
|
|
};
|
|
}
|
|
}, {
|
|
key: "insertAPI",
|
|
value: function insertAPI() {
|
|
this.elements.$firstScript.before(jQuery('<script>', {
|
|
src: this.getApiURL()
|
|
}));
|
|
this.setSettings('isInserted', true);
|
|
}
|
|
}, {
|
|
key: "getVideoIDFromURL",
|
|
value: function getVideoIDFromURL(url) {
|
|
var videoIDParts = url.match(this.getURLRegex());
|
|
return videoIDParts && videoIDParts[1];
|
|
}
|
|
}, {
|
|
key: "onApiReady",
|
|
value: function onApiReady(callback) {
|
|
var _this = this;
|
|
|
|
if (!this.getSettings('isInserted')) {
|
|
this.insertAPI();
|
|
}
|
|
|
|
if (this.isApiLoaded()) {
|
|
callback(this.getApiObject());
|
|
} else {
|
|
// If not ready check again by timeout..
|
|
setTimeout(function () {
|
|
_this.onApiReady(callback);
|
|
}, 350);
|
|
}
|
|
}
|
|
}]);
|
|
return BaseLoader;
|
|
}(elementorModules.ViewModule);
|
|
|
|
exports.default = BaseLoader;
|
|
|
|
/***/ }),
|
|
/* 596 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(0);
|
|
|
|
var _Object$defineProperty = __webpack_require__(1);
|
|
|
|
_Object$defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
|
|
exports.default = void 0;
|
|
|
|
__webpack_require__(17);
|
|
|
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
|
|
|
|
var _createClass2 = _interopRequireDefault(__webpack_require__(3));
|
|
|
|
var _get2 = _interopRequireDefault(__webpack_require__(22));
|
|
|
|
var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(14));
|
|
|
|
var _inherits2 = _interopRequireDefault(__webpack_require__(4));
|
|
|
|
var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
|
|
|
|
var BackgroundSlideshow = /*#__PURE__*/function (_elementorModules$fro) {
|
|
(0, _inherits2.default)(BackgroundSlideshow, _elementorModules$fro);
|
|
|
|
var _super = (0, _createSuper2.default)(BackgroundSlideshow);
|
|
|
|
function BackgroundSlideshow() {
|
|
(0, _classCallCheck2.default)(this, BackgroundSlideshow);
|
|
return _super.apply(this, arguments);
|
|
}
|
|
|
|
(0, _createClass2.default)(BackgroundSlideshow, [{
|
|
key: "getDefaultSettings",
|
|
value: function getDefaultSettings() {
|
|
return {
|
|
classes: {
|
|
swiperContainer: 'elementor-background-slideshow swiper-container',
|
|
swiperWrapper: 'swiper-wrapper',
|
|
swiperSlide: 'elementor-background-slideshow__slide swiper-slide',
|
|
swiperSlideInner: 'elementor-background-slideshow__slide__image',
|
|
kenBurns: 'elementor-ken-burns',
|
|
kenBurnsActive: 'elementor-ken-burns--active',
|
|
kenBurnsIn: 'elementor-ken-burns--in',
|
|
kenBurnsOut: 'elementor-ken-burns--out'
|
|
}
|
|
};
|
|
}
|
|
}, {
|
|
key: "getDefaultElements",
|
|
value: function getDefaultElements() {
|
|
var classes = this.getSettings('classes');
|
|
var elements = {
|
|
$slider: this.$element.find('.' + classes.swiperContainer)
|
|
};
|
|
elements.$mainSwiperSlides = elements.$slider.find('.' + classes.swiperSlide);
|
|
return elements;
|
|
}
|
|
}, {
|
|
key: "getSwiperOptions",
|
|
value: function getSwiperOptions() {
|
|
var _this = this;
|
|
|
|
var elementSettings = this.getElementSettings();
|
|
|
|
var swiperOptions = {
|
|
grabCursor: false,
|
|
slidesPerView: 1,
|
|
slidesPerGroup: 1,
|
|
loop: 'yes' === elementSettings.background_slideshow_loop,
|
|
speed: elementSettings.background_slideshow_transition_duration,
|
|
autoplay: {
|
|
delay: elementSettings.background_slideshow_slide_duration,
|
|
stopOnLastSlide: !elementSettings.background_slideshow_loop
|
|
},
|
|
handleElementorBreakpoints: true,
|
|
on: {
|
|
slideChange: function slideChange() {
|
|
_this.handleKenBurns();
|
|
}
|
|
}
|
|
};
|
|
|
|
if ('yes' === elementSettings.background_slideshow_loop) {
|
|
swiperOptions.loopedSlides = this.getSlidesCount();
|
|
}
|
|
|
|
switch (elementSettings.background_slideshow_slide_transition) {
|
|
case 'fade':
|
|
swiperOptions.effect = 'fade';
|
|
swiperOptions.fadeEffect = {
|
|
crossFade: true
|
|
};
|
|
break;
|
|
|
|
case 'slide_down':
|
|
swiperOptions.autoplay.reverseDirection = true;
|
|
|
|
case 'slide_up':
|
|
swiperOptions.direction = 'vertical';
|
|
break;
|
|
}
|
|
|
|
return swiperOptions;
|
|
}
|
|
}, {
|
|
key: "getInitialSlide",
|
|
value: function getInitialSlide() {
|
|
var editSettings = this.getEditSettings();
|
|
return editSettings.activeItemIndex ? editSettings.activeItemIndex - 1 : 0;
|
|
}
|
|
}, {
|
|
key: "handleKenBurns",
|
|
value: function handleKenBurns() {
|
|
var elementSettings = this.getElementSettings();
|
|
|
|
if (!elementSettings.background_slideshow_ken_burns) {
|
|
return;
|
|
}
|
|
|
|
var settings = this.getSettings();
|
|
|
|
if (this.$activeImageBg) {
|
|
this.$activeImageBg.removeClass(settings.classes.kenBurnsActive);
|
|
}
|
|
|
|
this.activeItemIndex = this.swiper ? this.swiper.activeIndex : this.getInitialSlide();
|
|
|
|
if (this.swiper) {
|
|
this.$activeImageBg = jQuery(this.swiper.slides[this.activeItemIndex]).children('.' + settings.classes.swiperSlideInner);
|
|
} else {
|
|
this.$activeImageBg = jQuery(this.elements.$mainSwiperSlides[0]).children('.' + settings.classes.swiperSlideInner);
|
|
}
|
|
|
|
this.$activeImageBg.addClass(settings.classes.kenBurnsActive);
|
|
}
|
|
}, {
|
|
key: "getSlidesCount",
|
|
value: function getSlidesCount() {
|
|
return this.elements.$slides.length;
|
|
}
|
|
}, {
|
|
key: "buildSwiperElements",
|
|
value: function buildSwiperElements() {
|
|
var _this2 = this;
|
|
|
|
var classes = this.getSettings('classes'),
|
|
elementSettings = this.getElementSettings(),
|
|
direction = 'slide_left' === elementSettings.background_slideshow_slide_transition ? 'ltr' : 'rtl',
|
|
$container = jQuery('<div>', {
|
|
class: classes.swiperContainer,
|
|
dir: direction
|
|
}),
|
|
$wrapper = jQuery('<div>', {
|
|
class: classes.swiperWrapper
|
|
}),
|
|
kenBurnsActive = elementSettings.background_slideshow_ken_burns;
|
|
var slideInnerClass = classes.swiperSlideInner;
|
|
|
|
if (kenBurnsActive) {
|
|
slideInnerClass += ' ' + classes.kenBurns;
|
|
var kenBurnsDirection = 'in' === elementSettings.background_slideshow_ken_burns_zoom_direction ? 'kenBurnsIn' : 'kenBurnsOut';
|
|
slideInnerClass += ' ' + classes[kenBurnsDirection];
|
|
}
|
|
|
|
this.elements.$slides = jQuery();
|
|
elementSettings.background_slideshow_gallery.forEach(function (slide) {
|
|
var url = slide.image.url && slide.image.url.indexOf('://') < 0 ? prestashop.urls.base_url + slide.image.url : slide.image.url,
|
|
$slide = jQuery('<div>', {
|
|
class: classes.swiperSlide
|
|
}),
|
|
$slidebg = jQuery('<div>', {
|
|
class: slideInnerClass,
|
|
style: 'background-image: url("' + url + '");'
|
|
});
|
|
$slide.append($slidebg);
|
|
$wrapper.append($slide);
|
|
_this2.elements.$slides = _this2.elements.$slides.add($slide);
|
|
});
|
|
$container.append($wrapper);
|
|
this.$element.prepend($container);
|
|
this.elements.$backgroundSlideShowContainer = $container;
|
|
}
|
|
}, {
|
|
key: "initSlider",
|
|
value: function initSlider() {
|
|
if (1 >= this.getSlidesCount()) {
|
|
return;
|
|
}
|
|
|
|
this.swiper = new Swiper(this.elements.$backgroundSlideShowContainer, this.getSwiperOptions()); // Expose the swiper instance in the frontend
|
|
|
|
this.elements.$backgroundSlideShowContainer.data('swiper', this.swiper);
|
|
this.handleKenBurns();
|
|
}
|
|
}, {
|
|
key: "activate",
|
|
value: function activate() {
|
|
this.buildSwiperElements();
|
|
this.initSlider();
|
|
}
|
|
}, {
|
|
key: "deactivate",
|
|
value: function deactivate() {
|
|
if (this.swiper) {
|
|
this.swiper.destroy();
|
|
this.elements.$backgroundSlideShowContainer.remove();
|
|
}
|
|
}
|
|
}, {
|
|
key: "run",
|
|
value: function run() {
|
|
if ('slideshow' === this.getElementSettings('background_background')) {
|
|
this.activate();
|
|
} else {
|
|
this.deactivate();
|
|
}
|
|
}
|
|
}, {
|
|
key: "onInit",
|
|
value: function onInit() {
|
|
(0, _get2.default)((0, _getPrototypeOf2.default)(BackgroundSlideshow.prototype), "onInit", this).call(this);
|
|
|
|
if (this.getElementSettings('background_slideshow_gallery')) {
|
|
this.run();
|
|
}
|
|
}
|
|
}, {
|
|
key: "onDestroy",
|
|
value: function onDestroy() {
|
|
(0, _get2.default)((0, _getPrototypeOf2.default)(BackgroundSlideshow.prototype), "onDestroy", this).call(this);
|
|
this.deactivate();
|
|
}
|
|
}, {
|
|
key: "onElementChange",
|
|
value: function onElementChange(propertyName) {
|
|
if ('background_background' === propertyName) {
|
|
this.run();
|
|
}
|
|
}
|
|
}]);
|
|
return BackgroundSlideshow;
|
|
}(elementorModules.frontend.handlers.Base);
|
|
|
|
exports.default = BackgroundSlideshow;
|
|
|
|
/***/ }),
|
|
/* 597 */,
|
|
/* 598 */,
|
|
/* 599 */,
|
|
/* 600 */,
|
|
/* 601 */,
|
|
/* 602 */,
|
|
/* 603 */,
|
|
/* 604 */,
|
|
/* 605 */,
|
|
/* 606 */,
|
|
/* 607 */,
|
|
/* 608 */,
|
|
/* 609 */,
|
|
/* 610 */,
|
|
/* 611 */,
|
|
/* 612 */,
|
|
/* 613 */,
|
|
/* 614 */,
|
|
/* 615 */,
|
|
/* 616 */,
|
|
/* 617 */,
|
|
/* 618 */,
|
|
/* 619 */,
|
|
/* 620 */,
|
|
/* 621 */,
|
|
/* 622 */,
|
|
/* 623 */,
|
|
/* 624 */,
|
|
/* 625 */,
|
|
/* 626 */,
|
|
/* 627 */,
|
|
/* 628 */,
|
|
/* 629 */,
|
|
/* 630 */,
|
|
/* 631 */,
|
|
/* 632 */,
|
|
/* 633 */,
|
|
/* 634 */,
|
|
/* 635 */,
|
|
/* 636 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(0);
|
|
|
|
__webpack_require__(17);
|
|
|
|
__webpack_require__(53);
|
|
|
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
|
|
|
|
var _createClass2 = _interopRequireDefault(__webpack_require__(3));
|
|
|
|
var _inherits2 = _interopRequireDefault(__webpack_require__(4));
|
|
|
|
var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
|
|
|
|
var _documentsManager = _interopRequireDefault(__webpack_require__(637));
|
|
|
|
var _storage = _interopRequireDefault(__webpack_require__(569));
|
|
|
|
var _environment = _interopRequireDefault(__webpack_require__(207));
|
|
|
|
var _youtubeLoader = _interopRequireDefault(__webpack_require__(638));
|
|
|
|
var _vimeoLoader = _interopRequireDefault(__webpack_require__(639));
|
|
|
|
var _urlActions = _interopRequireDefault(__webpack_require__(640));
|
|
|
|
var _swiper = _interopRequireDefault(__webpack_require__(641));
|
|
|
|
/* global ceFrontendConfig */
|
|
var EventManager = __webpack_require__(341),
|
|
ElementsHandler = __webpack_require__(642),
|
|
AnchorsModule = __webpack_require__(659),
|
|
LightboxModule = __webpack_require__(660);
|
|
|
|
var Frontend = /*#__PURE__*/function (_elementorModules$Vie) {
|
|
(0, _inherits2.default)(Frontend, _elementorModules$Vie);
|
|
|
|
var _super = (0, _createSuper2.default)(Frontend);
|
|
|
|
function Frontend() {
|
|
var _this;
|
|
|
|
(0, _classCallCheck2.default)(this, Frontend);
|
|
|
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
args[_key] = arguments[_key];
|
|
}
|
|
|
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
_this.config = ceFrontendConfig;
|
|
return _this;
|
|
} // TODO: BC since 2.5.0
|
|
|
|
|
|
(0, _createClass2.default)(Frontend, [{
|
|
key: "getDefaultSettings",
|
|
value: function getDefaultSettings() {
|
|
return {
|
|
selectors: {
|
|
elementor: '.elementor',
|
|
adminBar: '#wpadminbar'
|
|
},
|
|
classes: {
|
|
ie: 'elementor-msie'
|
|
}
|
|
};
|
|
}
|
|
}, {
|
|
key: "getDefaultElements",
|
|
value: function getDefaultElements() {
|
|
var defaultElements = {
|
|
window: window,
|
|
$window: jQuery(window),
|
|
$document: jQuery(document),
|
|
$head: jQuery(document.head),
|
|
$body: jQuery(document.body),
|
|
$deviceMode: jQuery('<span>', {
|
|
id: 'elementor-device-mode',
|
|
class: 'elementor-screen-only'
|
|
})
|
|
};
|
|
defaultElements.$body.append(defaultElements.$deviceMode);
|
|
return defaultElements;
|
|
}
|
|
}, {
|
|
key: "bindEvents",
|
|
value: function bindEvents() {
|
|
var _this2 = this;
|
|
|
|
this.elements.$window.on('resize', function () {
|
|
return _this2.setDeviceModeData();
|
|
});
|
|
}
|
|
/**
|
|
* @deprecated 2.4.0 Use just `this.elements` instead
|
|
*/
|
|
|
|
}, {
|
|
key: "getElements",
|
|
value: function getElements(elementName) {
|
|
return this.getItems(this.elements, elementName);
|
|
}
|
|
/**
|
|
* @deprecated 2.4.0 This method was never in use
|
|
*/
|
|
|
|
}, {
|
|
key: "getPageSettings",
|
|
value: function getPageSettings(settingName) {
|
|
var settingsObject = this.isEditMode() ? elementor.settings.page.model.attributes : this.config.settings.page;
|
|
return this.getItems(settingsObject, settingName);
|
|
}
|
|
}, {
|
|
key: "getGeneralSettings",
|
|
value: function getGeneralSettings(settingName) {
|
|
var settingsObject = this.isEditMode() ? elementor.settings.general.model.attributes : this.config.settings.general;
|
|
return this.getItems(settingsObject, settingName);
|
|
}
|
|
}, {
|
|
key: "getCurrentDeviceMode",
|
|
value: function getCurrentDeviceMode() {
|
|
return getComputedStyle(this.elements.$deviceMode[0], ':after').content.replace(/"/g, '');
|
|
}
|
|
}, {
|
|
key: "getDeviceSetting",
|
|
value: function getDeviceSetting(deviceMode, settings, settingKey) {
|
|
var devices = ['desktop', 'tablet', 'mobile'];
|
|
var deviceIndex = devices.indexOf(deviceMode);
|
|
|
|
while (deviceIndex > 0) {
|
|
var currentDevice = devices[deviceIndex],
|
|
fullSettingKey = settingKey + '_' + currentDevice,
|
|
deviceValue = settings[fullSettingKey];
|
|
|
|
if (deviceValue) {
|
|
return deviceValue;
|
|
}
|
|
|
|
deviceIndex--;
|
|
}
|
|
|
|
return settings[settingKey];
|
|
}
|
|
}, {
|
|
key: "getCurrentDeviceSetting",
|
|
value: function getCurrentDeviceSetting(settings, settingKey) {
|
|
return this.getDeviceSetting(ceFrontend.getCurrentDeviceMode(), settings, settingKey);
|
|
}
|
|
}, {
|
|
key: "isEditMode",
|
|
value: function isEditMode() {
|
|
return this.config.environmentMode.edit;
|
|
}
|
|
}, {
|
|
key: "isWPPreviewMode",
|
|
value: function isWPPreviewMode() {
|
|
return this.config.environmentMode.wpPreview;
|
|
}
|
|
}, {
|
|
key: "initDialogsManager",
|
|
value: function initDialogsManager() {
|
|
var dialogsManager;
|
|
|
|
this.getDialogsManager = function () {
|
|
if (!dialogsManager) {
|
|
dialogsManager = new DialogsManager.Instance();
|
|
}
|
|
|
|
return dialogsManager;
|
|
};
|
|
}
|
|
}, {
|
|
key: "initOnReadyComponents",
|
|
value: function initOnReadyComponents() {
|
|
var _this3 = this;
|
|
|
|
this.utils = {
|
|
youtube: new _youtubeLoader.default(),
|
|
vimeo: new _vimeoLoader.default(),
|
|
anchors: new AnchorsModule(),
|
|
lightbox: new LightboxModule(),
|
|
urlActions: new _urlActions.default(),
|
|
swiper: _swiper.default
|
|
}; // TODO: BC since 2.4.0
|
|
|
|
// this.modules = {
|
|
// StretchElement: elementorModules.frontend.tools.StretchElement,
|
|
// Masonry: elementorModules.utils.Masonry
|
|
// };
|
|
this.elementsHandler = new ElementsHandler(jQuery);
|
|
|
|
if (this.isEditMode()) {
|
|
elementor.once('document:loaded', function () {
|
|
return _this3.onDocumentLoaded();
|
|
});
|
|
} else {
|
|
this.onDocumentLoaded();
|
|
}
|
|
}
|
|
}, {
|
|
key: "initOnReadyElements",
|
|
value: function initOnReadyElements() {
|
|
// this.elements.$wpAdminBar = this.elements.$document.find(this.getSettings('selectors.adminBar'));
|
|
}
|
|
}, {
|
|
key: "addIeCompatibility",
|
|
value: function addIeCompatibility() {
|
|
var el = document.createElement('div'),
|
|
supportsGrid = 'string' === typeof el.style.grid;
|
|
|
|
if (!_environment.default.ie && supportsGrid) {
|
|
return;
|
|
}
|
|
|
|
this.elements.$body.addClass(this.getSettings('classes.ie'));
|
|
var msieCss = '<link rel="stylesheet" id="elementor-frontend-css-msie" href="' + this.config.urls.assets + 'css/frontend-msie.min.css?' + this.config.version + '" type="text/css">';
|
|
this.elements.$body.append(msieCss);
|
|
}
|
|
}, {
|
|
key: "setDeviceModeData",
|
|
value: function setDeviceModeData() {
|
|
this.elements.$body.attr('data-elementor-device-mode', this.getCurrentDeviceMode());
|
|
}
|
|
}, {
|
|
key: "addListenerOnce",
|
|
value: function addListenerOnce(listenerID, event, callback, to) {
|
|
if (!to) {
|
|
to = this.elements.$window;
|
|
}
|
|
|
|
if (!this.isEditMode()) {
|
|
to.on(event, callback);
|
|
return;
|
|
}
|
|
|
|
this.removeListeners(listenerID, event, to);
|
|
|
|
if (to instanceof jQuery) {
|
|
var eventNS = event + '.' + listenerID;
|
|
to.on(eventNS, callback);
|
|
} else {
|
|
to.on(event, callback, listenerID);
|
|
}
|
|
}
|
|
}, {
|
|
key: "removeListeners",
|
|
value: function removeListeners(listenerID, event, callback, from) {
|
|
if (!from) {
|
|
from = this.elements.$window;
|
|
}
|
|
|
|
if (from instanceof jQuery) {
|
|
var eventNS = event + '.' + listenerID;
|
|
from.off(eventNS, callback);
|
|
} else {
|
|
from.off(event, callback, listenerID);
|
|
}
|
|
}
|
|
// Based on underscore function
|
|
}, {
|
|
key: "debounce",
|
|
value: function debounce(func, wait) {
|
|
var timeout;
|
|
return function () {
|
|
var context = this,
|
|
args = arguments;
|
|
|
|
var later = function later() {
|
|
timeout = null;
|
|
func.apply(context, args);
|
|
};
|
|
|
|
var callNow = !timeout;
|
|
clearTimeout(timeout);
|
|
timeout = setTimeout(later, wait);
|
|
|
|
if (callNow) {
|
|
func.apply(context, args);
|
|
}
|
|
};
|
|
}
|
|
}, {
|
|
key: "waypoint",
|
|
value: function waypoint($element, callback, options) {
|
|
var defaultOptions = {
|
|
offset: '100%',
|
|
triggerOnce: true
|
|
};
|
|
options = jQuery.extend(defaultOptions, options);
|
|
|
|
var correctCallback = function correctCallback() {
|
|
var element = this.element || this,
|
|
result = callback.apply(element, arguments); // If is Waypoint new API and is frontend
|
|
|
|
if (options.triggerOnce && this.destroy) {
|
|
this.destroy();
|
|
}
|
|
|
|
return result;
|
|
};
|
|
|
|
return $element.elementorWaypoint
|
|
? $element.elementorWaypoint(correctCallback, options)
|
|
: $element.waypoint(correctCallback, options)
|
|
;
|
|
}
|
|
}, {
|
|
key: "muteMigrationTraces",
|
|
value: function muteMigrationTraces() {
|
|
jQuery.migrateMute = true;
|
|
jQuery.migrateTrace = false;
|
|
}
|
|
}, {
|
|
key: "init",
|
|
value: function init() {
|
|
this.hooks = new EventManager();
|
|
this.storage = new _storage.default();
|
|
this.addIeCompatibility();
|
|
this.setDeviceModeData();
|
|
this.initDialogsManager();
|
|
|
|
if (this.isEditMode()) {
|
|
this.muteMigrationTraces();
|
|
}
|
|
|
|
this.modules = {
|
|
// TODO: BC Since 2.9.0
|
|
linkActions: {
|
|
addAction: function addAction() {
|
|
return ceFrontend.utils.urlActions.addAction.apply(ceFrontend.utils.urlActions, arguments);
|
|
}
|
|
}
|
|
};
|
|
|
|
// Keep this line before `initOnReadyComponents` call
|
|
this.elements.$window.trigger('elementor/frontend/init');
|
|
this.initOnReadyElements();
|
|
this.initOnReadyComponents();
|
|
}
|
|
}, {
|
|
key: "onDocumentLoaded",
|
|
value: function onDocumentLoaded() {
|
|
this.documentsManager = new _documentsManager.default();
|
|
this.trigger('components:init');
|
|
}
|
|
}, {
|
|
key: "Module",
|
|
get: function get() {
|
|
if (this.isEditMode()) {
|
|
parent.elementorCommon.helpers.hardDeprecated('ceFrontend.Module', '2.5.0', 'elementorModules.frontend.handlers.Base');
|
|
}
|
|
|
|
return elementorModules.frontend.handlers.Base;
|
|
}
|
|
}]);
|
|
return Frontend;
|
|
}(elementorModules.ViewModule);
|
|
|
|
window.ceFrontend = new Frontend();
|
|
|
|
if (!ceFrontend.isEditMode()) {
|
|
jQuery(function () {
|
|
return ceFrontend.init();
|
|
});
|
|
}
|
|
|
|
/***/ }),
|
|
/* 637 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(0);
|
|
|
|
var _Object$defineProperty = __webpack_require__(1);
|
|
|
|
_Object$defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
|
|
exports.default = void 0;
|
|
|
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
|
|
|
|
var _createClass2 = _interopRequireDefault(__webpack_require__(3));
|
|
|
|
var _inherits2 = _interopRequireDefault(__webpack_require__(4));
|
|
|
|
var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
|
|
|
|
var _document = _interopRequireDefault(__webpack_require__(574));
|
|
|
|
var _default = /*#__PURE__*/function (_elementorModules$Vie) {
|
|
(0, _inherits2.default)(_default, _elementorModules$Vie);
|
|
|
|
var _super = (0, _createSuper2.default)(_default);
|
|
|
|
function _default() {
|
|
var _this;
|
|
|
|
(0, _classCallCheck2.default)(this, _default);
|
|
|
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
args[_key] = arguments[_key];
|
|
}
|
|
|
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
_this.documents = {};
|
|
|
|
_this.initDocumentClasses();
|
|
|
|
_this.attachDocumentsClasses();
|
|
|
|
return _this;
|
|
}
|
|
|
|
(0, _createClass2.default)(_default, [{
|
|
key: "getDefaultSettings",
|
|
value: function getDefaultSettings() {
|
|
return {
|
|
selectors: {
|
|
document: '.elementor'
|
|
}
|
|
};
|
|
}
|
|
}, {
|
|
key: "getDefaultElements",
|
|
value: function getDefaultElements() {
|
|
var selectors = this.getSettings('selectors');
|
|
return {
|
|
$documents: jQuery(selectors.document)
|
|
};
|
|
}
|
|
}, {
|
|
key: "initDocumentClasses",
|
|
value: function initDocumentClasses() {
|
|
this.documentClasses = {
|
|
base: _document.default
|
|
};
|
|
ceFrontend.hooks.doAction('elementor/frontend/documents-manager/init-classes', this);
|
|
}
|
|
}, {
|
|
key: "addDocumentClass",
|
|
value: function addDocumentClass(documentType, documentClass) {
|
|
this.documentClasses[documentType] = documentClass;
|
|
}
|
|
}, {
|
|
key: "attachDocumentsClasses",
|
|
value: function attachDocumentsClasses() {
|
|
var _this2 = this;
|
|
|
|
this.elements.$documents.each(function (index, document) {
|
|
return _this2.attachDocumentClass(jQuery(document));
|
|
});
|
|
}
|
|
}, {
|
|
key: "attachDocumentClass",
|
|
value: function attachDocumentClass($document) {
|
|
var documentData = $document.data(),
|
|
documentID = documentData.elementorId,
|
|
documentType = documentData.elementorType,
|
|
DocumentClass = this.documentClasses[documentType] || this.documentClasses.base;
|
|
this.documents[documentID] = new DocumentClass({
|
|
$element: $document,
|
|
id: documentID
|
|
});
|
|
}
|
|
}]);
|
|
return _default;
|
|
}(elementorModules.ViewModule);
|
|
|
|
exports.default = _default;
|
|
|
|
/***/ }),
|
|
/* 638 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(0);
|
|
|
|
var _Object$defineProperty = __webpack_require__(1);
|
|
|
|
_Object$defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
|
|
exports.default = void 0;
|
|
|
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
|
|
|
|
var _createClass2 = _interopRequireDefault(__webpack_require__(3));
|
|
|
|
var _inherits2 = _interopRequireDefault(__webpack_require__(4));
|
|
|
|
var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
|
|
|
|
var _baseLoader = _interopRequireDefault(__webpack_require__(595));
|
|
|
|
var YoutubeLoader = /*#__PURE__*/function (_BaseLoader) {
|
|
(0, _inherits2.default)(YoutubeLoader, _BaseLoader);
|
|
|
|
var _super = (0, _createSuper2.default)(YoutubeLoader);
|
|
|
|
function YoutubeLoader() {
|
|
(0, _classCallCheck2.default)(this, YoutubeLoader);
|
|
return _super.apply(this, arguments);
|
|
}
|
|
|
|
(0, _createClass2.default)(YoutubeLoader, [{
|
|
key: "getApiURL",
|
|
value: function getApiURL() {
|
|
return 'https://www.youtube.com/iframe_api';
|
|
}
|
|
}, {
|
|
key: "getURLRegex",
|
|
value: function getURLRegex() {
|
|
return /^(?:https?:\/\/)?(?:www\.)?(?:m\.)?(?:youtu\.be\/|youtube\.com\/(?:(?:watch)?\?(?:.*&)?vi?=|(?:embed|v|vi|user)\/))([^?&"'>]+)/;
|
|
}
|
|
}, {
|
|
key: "isApiLoaded",
|
|
value: function isApiLoaded() {
|
|
return window.YT && YT.loaded;
|
|
}
|
|
}, {
|
|
key: "getApiObject",
|
|
value: function getApiObject() {
|
|
return YT;
|
|
}
|
|
}]);
|
|
return YoutubeLoader;
|
|
}(_baseLoader.default);
|
|
|
|
exports.default = YoutubeLoader;
|
|
|
|
/***/ }),
|
|
/* 639 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(0);
|
|
|
|
var _Object$defineProperty = __webpack_require__(1);
|
|
|
|
_Object$defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
|
|
exports.default = void 0;
|
|
|
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
|
|
|
|
var _createClass2 = _interopRequireDefault(__webpack_require__(3));
|
|
|
|
var _inherits2 = _interopRequireDefault(__webpack_require__(4));
|
|
|
|
var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
|
|
|
|
var _baseLoader = _interopRequireDefault(__webpack_require__(595));
|
|
|
|
var VimeoLoader = /*#__PURE__*/function (_BaseLoader) {
|
|
(0, _inherits2.default)(VimeoLoader, _BaseLoader);
|
|
|
|
var _super = (0, _createSuper2.default)(VimeoLoader);
|
|
|
|
function VimeoLoader() {
|
|
(0, _classCallCheck2.default)(this, VimeoLoader);
|
|
return _super.apply(this, arguments);
|
|
}
|
|
|
|
(0, _createClass2.default)(VimeoLoader, [{
|
|
key: "getApiURL",
|
|
value: function getApiURL() {
|
|
return 'https://player.vimeo.com/api/player.js';
|
|
}
|
|
}, {
|
|
key: "getURLRegex",
|
|
value: function getURLRegex() {
|
|
return /^(?:https?:\/\/)?(?:www|player\.)?(?:vimeo\.com\/)?(?:video\/)?(\d+)([^?&#"'>]?)/;
|
|
}
|
|
}, {
|
|
key: "isApiLoaded",
|
|
value: function isApiLoaded() {
|
|
return window.Vimeo;
|
|
}
|
|
}, {
|
|
key: "getApiObject",
|
|
value: function getApiObject() {
|
|
return Vimeo;
|
|
}
|
|
}]);
|
|
return VimeoLoader;
|
|
}(_baseLoader.default);
|
|
|
|
exports.default = VimeoLoader;
|
|
|
|
/***/ }),
|
|
/* 640 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(0);
|
|
|
|
var _Object$defineProperty = __webpack_require__(1);
|
|
|
|
_Object$defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
|
|
exports.default = void 0;
|
|
|
|
var _stringify = _interopRequireDefault(__webpack_require__(183));
|
|
|
|
__webpack_require__(99);
|
|
|
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
|
|
|
|
var _createClass2 = _interopRequireDefault(__webpack_require__(3));
|
|
|
|
var _get2 = _interopRequireDefault(__webpack_require__(22));
|
|
|
|
var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(14));
|
|
|
|
var _inherits2 = _interopRequireDefault(__webpack_require__(4));
|
|
|
|
var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
|
|
|
|
var _default = /*#__PURE__*/function (_elementorModules$Vie) {
|
|
(0, _inherits2.default)(_default, _elementorModules$Vie);
|
|
|
|
var _super = (0, _createSuper2.default)(_default);
|
|
|
|
function _default() {
|
|
(0, _classCallCheck2.default)(this, _default);
|
|
return _super.apply(this, arguments);
|
|
}
|
|
|
|
(0, _createClass2.default)(_default, [{
|
|
key: "getDefaultSettings",
|
|
value: function getDefaultSettings() {
|
|
return {
|
|
selectors: {
|
|
links: 'a[href^="#ce-action"]'
|
|
}
|
|
};
|
|
}
|
|
}, {
|
|
key: "bindEvents",
|
|
value: function bindEvents() {
|
|
ceFrontend.elements.$document.on('click', this.getSettings('selectors.links'), this.runLinkAction.bind(this));
|
|
}
|
|
}, {
|
|
key: "initActions",
|
|
value: function initActions() {
|
|
this.actions = {
|
|
lightbox: function lightbox(settings) {
|
|
if (settings.id) {
|
|
ceFrontend.utils.lightbox.openSlideshow(settings.id, settings.url);
|
|
} else {
|
|
ceFrontend.utils.lightbox.showModal(settings);
|
|
}
|
|
},
|
|
closeLightbox: function () {
|
|
var modal = ceFrontend.utils.lightbox.getModal();
|
|
if (modal.isVisible()) {
|
|
modal.hide();
|
|
}
|
|
},
|
|
carousel: function (settings, event) {
|
|
function getNearestCarousel(element, selector) {
|
|
var r = element.getBoundingClientRect(),
|
|
p = {
|
|
x: r.left + r.width / 2,
|
|
y: r.top + r.height / 2,
|
|
},
|
|
closest = {
|
|
d: Infinity,
|
|
elem: null,
|
|
};
|
|
$(selector || document.body).find('.swiper-container').each(function () {
|
|
var r = this.getBoundingClientRect(),
|
|
d = Math.hypot(Math.max(r.left - p.x, 0, p.x - r.right), Math.max(r.top - p.y, 0, p.y - r.bottom));
|
|
if (d < closest.d) {
|
|
closest.d = d;
|
|
closest.elem = this;
|
|
}
|
|
});
|
|
return closest.elem;
|
|
}
|
|
|
|
var carousel = getNearestCarousel(event && event.currentTarget || document.activeElement, settings.selector),
|
|
swiper = carousel && carousel.swiper;
|
|
|
|
if (!swiper) {
|
|
return;
|
|
}
|
|
|
|
switch (settings.action) {
|
|
case 'next':
|
|
swiper.slideNext();
|
|
break;
|
|
case 'prev':
|
|
swiper.slidePrev();
|
|
break;
|
|
case 'goto':
|
|
swiper.slideTo(settings.goto - 1);
|
|
break;
|
|
case 'play':
|
|
swiper.autoplay.running || swiper.autoplay.start();
|
|
swiper.autoplay.paused && swiper.run();
|
|
break;
|
|
case 'pause':
|
|
swiper.autoplay.pause();
|
|
break;
|
|
}
|
|
},
|
|
quickview: function (settings, event) {
|
|
var dataset = settings.id_product ? {
|
|
idProduct: settings.id_product,
|
|
idProductAttribute: settings.id_product_attribute || 0
|
|
} : $(event && event.currentTarget || document.activeElement).closest('[data-id-product]').data() || {
|
|
idProduct: $('#product input[id=product_page_product_id]:first').val()
|
|
};
|
|
if (dataset.idProduct) {
|
|
ceFrontend.utils.urlActions.actions.closeLightbox();
|
|
|
|
prestashop.emit('clickQuickView', {dataset: dataset});
|
|
}
|
|
},
|
|
addToCart: function (settings, event) {
|
|
var data = $(event && event.currentTarget || document.activeElement).closest('[data-id-product]').data(),
|
|
idProduct = settings.id_product || data && data.idProduct;
|
|
if (idProduct) {
|
|
$.post(prestashop.urls.pages.cart, {
|
|
add: 1,
|
|
action: 'update',
|
|
id_product: idProduct,
|
|
token: prestashop.static_token
|
|
}, null, 'json').then(function (resp) {
|
|
prestashop.emit('updateCart', {
|
|
reason: {
|
|
idProduct: resp.id_product || idProduct,
|
|
idProductAttribute: resp.id_product_attribute,
|
|
idCustomization: resp.id_customization,
|
|
linkAction: 'add-to-cart',
|
|
cart: resp.cart
|
|
},
|
|
resp: resp
|
|
});
|
|
}).fail(function (resp) {
|
|
prestashop.emit('handleError', {eventType: 'addProductToCart', resp: resp});
|
|
});
|
|
} else {
|
|
$('form[id="add-to-cart-or-refresh"] [data-button-action="add-to-cart"]:first').click();
|
|
}
|
|
ceFrontend.utils.urlActions.actions.closeLightbox();
|
|
},
|
|
buyNow: function (settings) {
|
|
var events = prestashop._events.updateCart;
|
|
delete prestashop._events.updateCart;
|
|
|
|
prestashop.once('updateCart', function (data) {
|
|
if (data.resp && data.resp.success) {
|
|
location.href = prestashop.urls.pages[settings.redirect || 'order'];
|
|
} else {
|
|
prestashop._events.updateCart = events;
|
|
prestashop.emit('updateCart', data);
|
|
}
|
|
});
|
|
ceFrontend.utils.urlActions.actions.addToCart(settings);
|
|
}
|
|
};
|
|
}
|
|
}, {
|
|
key: "addAction",
|
|
value: function addAction(name, callback) {
|
|
this.actions[name] = callback;
|
|
}
|
|
}, {
|
|
key: "runAction",
|
|
value: function runAction(url) {
|
|
var actionMatch = url.match(/#ce-action=(\w+)({.*)/);
|
|
|
|
if (!actionMatch) {
|
|
return;
|
|
}
|
|
|
|
var action = this.actions[actionMatch[1]];
|
|
|
|
if (!action) {
|
|
return;
|
|
}
|
|
|
|
var settings = JSON.parse(actionMatch[2]);
|
|
|
|
for (var _len = arguments.length, restArgs = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
restArgs[_key - 1] = arguments[_key];
|
|
}
|
|
|
|
action.apply(void 0, [settings].concat(restArgs));
|
|
}
|
|
}, {
|
|
key: "runLinkAction",
|
|
value: function runLinkAction(event) {
|
|
event.preventDefault();
|
|
this.runAction(jQuery(event.currentTarget).attr('href'), event);
|
|
}
|
|
}, {
|
|
key: "runHashAction",
|
|
value: function runHashAction() {
|
|
if (location.hash) {
|
|
this.runAction(location.hash);
|
|
}
|
|
}
|
|
}, {
|
|
key: "createActionHash",
|
|
value: function createActionHash(action, settings) {
|
|
// We need to encode the hash tag (#) here, in order to support share links for a variety of providers
|
|
return "#ce-action=" + action + JSON.stringify(settings);
|
|
}
|
|
}, {
|
|
key: "onInit",
|
|
value: function onInit() {
|
|
(0, _get2.default)((0, _getPrototypeOf2.default)(_default.prototype), "onInit", this).call(this);
|
|
this.initActions();
|
|
ceFrontend.on('components:init', this.runHashAction.bind(this));
|
|
}
|
|
}]);
|
|
return _default;
|
|
}(elementorModules.ViewModule);
|
|
|
|
exports.default = _default;
|
|
|
|
/***/ }),
|
|
/* 641 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(0);
|
|
|
|
var _Object$defineProperty = __webpack_require__(1);
|
|
|
|
_Object$defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
|
|
exports.default = void 0;
|
|
|
|
__webpack_require__(264);
|
|
|
|
var _parseInt2 = _interopRequireDefault(__webpack_require__(136));
|
|
|
|
var _keys = _interopRequireDefault(__webpack_require__(23));
|
|
|
|
var _values = _interopRequireDefault(__webpack_require__(115));
|
|
|
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
|
|
|
|
var _createClass2 = _interopRequireDefault(__webpack_require__(3));
|
|
|
|
var originalSwiper = window.Swiper;
|
|
|
|
var Swiper = /*#__PURE__*/function () {
|
|
function Swiper(container, config) {
|
|
(0, _classCallCheck2.default)(this, Swiper);
|
|
this.config = config;
|
|
|
|
if (this.config.breakpoints && this.config.handleElementorBreakpoints) {
|
|
this.adjustConfig();
|
|
}
|
|
|
|
return new originalSwiper(container, this.config);
|
|
} // Backwards compatibility for Elementor Pro <2.9.0 (old Swiper version - <5.0.0)
|
|
// In Swiper 5.0.0 and up, breakpoints changed from acting as max-width to acting as min-width
|
|
|
|
|
|
(0, _createClass2.default)(Swiper, [{
|
|
key: "adjustConfig",
|
|
value: function adjustConfig() {
|
|
var _this = this;
|
|
|
|
var elementorBreakpoints = ceFrontend.config.breakpoints,
|
|
elementorBreakpointValues = (0, _values.default)(elementorBreakpoints);
|
|
(0, _keys.default)(this.config.breakpoints).forEach(function (configBPKey) {
|
|
var configBPKeyInt = (0, _parseInt2.default)(configBPKey);
|
|
var breakpointToUpdate; // The `configBPKeyInt + 1` is a BC Fix for Elementor Pro Carousels from 2.8.0-2.8.3 used with Elementor >= 2.9.0
|
|
|
|
if (configBPKeyInt === elementorBreakpoints.md || configBPKeyInt + 1 === elementorBreakpoints.md) {
|
|
// This handles the mobile breakpoint. Elementor's default sm breakpoint is never actually used,
|
|
// so the mobile breakpoint (md) needs to be handled separately and set to the 0 breakpoint (xs)
|
|
breakpointToUpdate = elementorBreakpoints.xs;
|
|
} else {
|
|
// Find the index of the current config breakpoint in the Elementor Breakpoints array
|
|
var currentBPIndexInElementorBPs = elementorBreakpointValues.findIndex(function (elementorBP) {
|
|
// BC Fix for Elementor Pro Carousels from 2.8.0-2.8.3 used with Elementor >= 2.9.0
|
|
return configBPKeyInt === elementorBP || configBPKeyInt + 1 === elementorBP;
|
|
}); // For all other Swiper config breakpoints, move them one breakpoint down on the breakpoint list,
|
|
// according to the array of Elementor's global breakpoints
|
|
|
|
breakpointToUpdate = elementorBreakpointValues[currentBPIndexInElementorBPs - 1];
|
|
}
|
|
|
|
_this.config.breakpoints[breakpointToUpdate] = _this.config.breakpoints[configBPKey]; // Then reset the settings in the original breakpoint key to the default values
|
|
|
|
_this.config.breakpoints[configBPKey] = {
|
|
slidesPerView: _this.config.slidesPerView,
|
|
slidesPerGroup: _this.config.slidesPerGroup ? _this.config.slidesPerGroup : 1,
|
|
spaceBetween: _this.config.spaceBetween,
|
|
autoplay: _this.config.autoplay,
|
|
loop: _this.config.loop
|
|
};
|
|
});
|
|
}
|
|
}]);
|
|
return Swiper;
|
|
}();
|
|
|
|
exports.default = Swiper;
|
|
window.Swiper = Swiper;
|
|
|
|
/***/ }),
|
|
/* 642 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(0);
|
|
|
|
var _accordion = _interopRequireDefault(__webpack_require__(643));
|
|
|
|
var _alert = _interopRequireDefault(__webpack_require__(644));
|
|
|
|
var _counter = _interopRequireDefault(__webpack_require__(645));
|
|
|
|
var _progress = _interopRequireDefault(__webpack_require__(646));
|
|
|
|
var _tabs = _interopRequireDefault(__webpack_require__(647));
|
|
|
|
var _toggle = _interopRequireDefault(__webpack_require__(648));
|
|
|
|
var _video = _interopRequireDefault(__webpack_require__(649));
|
|
|
|
var _imageCarousel = _interopRequireDefault(__webpack_require__(650));
|
|
|
|
var _textEditor = _interopRequireDefault(__webpack_require__(651));
|
|
|
|
var _section = _interopRequireDefault(__webpack_require__(652));
|
|
|
|
var _column = _interopRequireDefault(__webpack_require__(657));
|
|
|
|
var _global = _interopRequireDefault(__webpack_require__(658));
|
|
|
|
var _motionEffects = _interopRequireDefault(__webpack_require__(400));
|
|
|
|
var _countDown = __webpack_require__(662);
|
|
|
|
var _navMenu = __webpack_require__(664);
|
|
|
|
var _ajaxForm = __webpack_require__(666);
|
|
|
|
module.exports = function ($) {
|
|
var self = this; // element-type.skin-type
|
|
|
|
var handlers = {
|
|
// Elements
|
|
section: _section.default,
|
|
column: _column.default,
|
|
// Widgets
|
|
'accordion.default': _accordion.default,
|
|
'alert.default': _alert.default,
|
|
'counter.default': _counter.default,
|
|
'progress.default': _progress.default,
|
|
'tabs.default': _tabs.default,
|
|
'toggle.default': _toggle.default,
|
|
'video.default': _video.default,
|
|
'image-carousel.default': _imageCarousel.default,
|
|
'product-carousel.default': _imageCarousel.default,
|
|
'testimonial-carousel.default': _imageCarousel.default,
|
|
'trustedshops-reviews.default': _imageCarousel.default,
|
|
'text-editor.default': _textEditor.default,
|
|
'ajax-search.default': __webpack_require__(665),
|
|
'animated-headline.default': __webpack_require__(663),
|
|
'countdown.default': _countDown,
|
|
'product-sale-countdown.default': _countDown,
|
|
'nav-menu.default': _navMenu,
|
|
'language-selector.default': _navMenu,
|
|
'currency-selector.default': _navMenu,
|
|
'sign-in.default': _navMenu,
|
|
'contact-form.default': _ajaxForm,
|
|
'email-subscription.default': _ajaxForm,
|
|
'shopping-cart.default': __webpack_require__(667),
|
|
'product-images.default': __webpack_require__(669),
|
|
};
|
|
var handlersInstances = {};
|
|
|
|
var addGlobalHandlers = function addGlobalHandlers() {
|
|
ceFrontend.hooks.addAction('frontend/element_ready/global', _global.default);
|
|
// Motion Effects
|
|
ceFrontend.hooks.addAction('frontend/element_ready/global', _motionEffects.default);
|
|
};
|
|
|
|
var addElementsHandlers = function addElementsHandlers() {
|
|
$.each(handlers, function (elementName, funcCallback) {
|
|
ceFrontend.hooks.addAction('frontend/element_ready/' + elementName, funcCallback);
|
|
});
|
|
// Sticky
|
|
ceFrontend.hooks.addAction('frontend/element_ready/section', __webpack_require__(405));
|
|
ceFrontend.hooks.addAction('frontend/element_ready/widget', __webpack_require__(405));
|
|
};
|
|
|
|
var init = function init() {
|
|
self.initHandlers();
|
|
};
|
|
|
|
this.initHandlers = function () {
|
|
addGlobalHandlers();
|
|
addElementsHandlers();
|
|
};
|
|
|
|
this.addHandler = function (HandlerClass, options) {
|
|
var elementID = options.$element.data('model-cid');
|
|
var handlerID; // If element is in edit mode
|
|
|
|
if (elementID) {
|
|
handlerID = HandlerClass.prototype.getConstructorID();
|
|
|
|
if (!handlersInstances[elementID]) {
|
|
handlersInstances[elementID] = {};
|
|
}
|
|
|
|
var oldHandler = handlersInstances[elementID][handlerID];
|
|
|
|
if (oldHandler) {
|
|
oldHandler.onDestroy();
|
|
}
|
|
}
|
|
|
|
var newHandler = new HandlerClass(options);
|
|
|
|
if (elementID) {
|
|
handlersInstances[elementID][handlerID] = newHandler;
|
|
}
|
|
};
|
|
|
|
this.getHandlers = function (handlerName) {
|
|
if (handlerName) {
|
|
return handlers[handlerName];
|
|
}
|
|
|
|
return handlers;
|
|
};
|
|
|
|
this.runReadyTrigger = function (scope) {
|
|
// Initializing the `$scope` as frontend jQuery instance
|
|
var $scope = jQuery(scope),
|
|
elementType = $scope.attr('data-element_type');
|
|
|
|
if (!elementType) {
|
|
return;
|
|
}
|
|
|
|
ceFrontend.hooks.doAction('frontend/element_ready/global', $scope, $);
|
|
ceFrontend.hooks.doAction('frontend/element_ready/' + elementType, $scope, $);
|
|
|
|
if ('widget' === elementType) {
|
|
ceFrontend.hooks.doAction('frontend/element_ready/' + $scope.attr('data-widget_type'), $scope, $);
|
|
}
|
|
};
|
|
|
|
init();
|
|
};
|
|
|
|
/***/ }),
|
|
/* 643 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(0);
|
|
|
|
var _Object$defineProperty = __webpack_require__(1);
|
|
|
|
_Object$defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
|
|
exports.default = void 0;
|
|
|
|
var _baseTabs = _interopRequireDefault(__webpack_require__(575));
|
|
|
|
var _default = function _default($scope) {
|
|
ceFrontend.elementsHandler.addHandler(_baseTabs.default, {
|
|
$element: $scope,
|
|
showTabFn: 'slideDown',
|
|
hideTabFn: 'slideUp'
|
|
});
|
|
};
|
|
|
|
exports.default = _default;
|
|
|
|
/***/ }),
|
|
/* 644 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(0);
|
|
|
|
var _Object$defineProperty = __webpack_require__(1);
|
|
|
|
_Object$defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
|
|
exports.default = void 0;
|
|
|
|
__webpack_require__(17);
|
|
|
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
|
|
|
|
var _createClass2 = _interopRequireDefault(__webpack_require__(3));
|
|
|
|
var _inherits2 = _interopRequireDefault(__webpack_require__(4));
|
|
|
|
var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
|
|
|
|
var Alert = /*#__PURE__*/function (_elementorModules$fro) {
|
|
(0, _inherits2.default)(Alert, _elementorModules$fro);
|
|
|
|
var _super = (0, _createSuper2.default)(Alert);
|
|
|
|
function Alert() {
|
|
(0, _classCallCheck2.default)(this, Alert);
|
|
return _super.apply(this, arguments);
|
|
}
|
|
|
|
(0, _createClass2.default)(Alert, [{
|
|
key: "getDefaultSettings",
|
|
value: function getDefaultSettings() {
|
|
return {
|
|
selectors: {
|
|
dismissButton: '.elementor-alert-dismiss'
|
|
}
|
|
};
|
|
}
|
|
}, {
|
|
key: "getDefaultElements",
|
|
value: function getDefaultElements() {
|
|
var selectors = this.getSettings('selectors');
|
|
return {
|
|
$dismissButton: this.$element.find(selectors.dismissButton)
|
|
};
|
|
}
|
|
}, {
|
|
key: "bindEvents",
|
|
value: function bindEvents() {
|
|
this.elements.$dismissButton.on('click', this.onDismissButtonClick.bind(this));
|
|
}
|
|
}, {
|
|
key: "onDismissButtonClick",
|
|
value: function onDismissButtonClick() {
|
|
this.$element.fadeOut();
|
|
}
|
|
}]);
|
|
return Alert;
|
|
}(elementorModules.frontend.handlers.Base);
|
|
|
|
var _default = function _default($scope) {
|
|
ceFrontend.elementsHandler.addHandler(Alert, {
|
|
$element: $scope
|
|
});
|
|
};
|
|
|
|
exports.default = _default;
|
|
|
|
/***/ }),
|
|
/* 645 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(0);
|
|
|
|
var _Object$defineProperty = __webpack_require__(1);
|
|
|
|
_Object$defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
|
|
exports.default = void 0;
|
|
|
|
__webpack_require__(187);
|
|
|
|
__webpack_require__(97);
|
|
|
|
__webpack_require__(99);
|
|
|
|
__webpack_require__(17);
|
|
|
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
|
|
|
|
var _createClass2 = _interopRequireDefault(__webpack_require__(3));
|
|
|
|
var _get2 = _interopRequireDefault(__webpack_require__(22));
|
|
|
|
var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(14));
|
|
|
|
var _inherits2 = _interopRequireDefault(__webpack_require__(4));
|
|
|
|
var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
|
|
|
|
var Counter = /*#__PURE__*/function (_elementorModules$fro) {
|
|
(0, _inherits2.default)(Counter, _elementorModules$fro);
|
|
|
|
var _super = (0, _createSuper2.default)(Counter);
|
|
|
|
function Counter() {
|
|
(0, _classCallCheck2.default)(this, Counter);
|
|
return _super.apply(this, arguments);
|
|
}
|
|
|
|
(0, _createClass2.default)(Counter, [{
|
|
key: "getDefaultSettings",
|
|
value: function getDefaultSettings() {
|
|
return {
|
|
selectors: {
|
|
counterNumber: '.elementor-counter-number'
|
|
}
|
|
};
|
|
}
|
|
}, {
|
|
key: "getDefaultElements",
|
|
value: function getDefaultElements() {
|
|
var selectors = this.getSettings('selectors');
|
|
return {
|
|
$counterNumber: this.$element.find(selectors.counterNumber)
|
|
};
|
|
}
|
|
}, {
|
|
key: "onInit",
|
|
value: function onInit() {
|
|
var _this = this;
|
|
|
|
(0, _get2.default)((0, _getPrototypeOf2.default)(Counter.prototype), "onInit", this).call(this);
|
|
ceFrontend.waypoint(this.elements.$counterNumber, function () {
|
|
var data = _this.elements.$counterNumber.data(),
|
|
decimalDigits = data.toValue.toString().match(/\.(.*)/);
|
|
|
|
if (decimalDigits) {
|
|
data.rounding = decimalDigits[1].length;
|
|
}
|
|
|
|
_this.elements.$counterNumber.numerator(data);
|
|
});
|
|
}
|
|
}]);
|
|
return Counter;
|
|
}(elementorModules.frontend.handlers.Base);
|
|
|
|
var _default = function _default($scope) {
|
|
ceFrontend.elementsHandler.addHandler(Counter, {
|
|
$element: $scope
|
|
});
|
|
};
|
|
|
|
exports.default = _default;
|
|
|
|
/***/ }),
|
|
/* 646 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(0);
|
|
|
|
var _Object$defineProperty = __webpack_require__(1);
|
|
|
|
_Object$defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
|
|
exports.default = void 0;
|
|
|
|
__webpack_require__(17);
|
|
|
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
|
|
|
|
var _createClass2 = _interopRequireDefault(__webpack_require__(3));
|
|
|
|
var _get2 = _interopRequireDefault(__webpack_require__(22));
|
|
|
|
var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(14));
|
|
|
|
var _inherits2 = _interopRequireDefault(__webpack_require__(4));
|
|
|
|
var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
|
|
|
|
var Progress = /*#__PURE__*/function (_elementorModules$fro) {
|
|
(0, _inherits2.default)(Progress, _elementorModules$fro);
|
|
|
|
var _super = (0, _createSuper2.default)(Progress);
|
|
|
|
function Progress() {
|
|
(0, _classCallCheck2.default)(this, Progress);
|
|
return _super.apply(this, arguments);
|
|
}
|
|
|
|
(0, _createClass2.default)(Progress, [{
|
|
key: "getDefaultSettings",
|
|
value: function getDefaultSettings() {
|
|
return {
|
|
selectors: {
|
|
progressNumber: '.elementor-progress-bar'
|
|
}
|
|
};
|
|
}
|
|
}, {
|
|
key: "getDefaultElements",
|
|
value: function getDefaultElements() {
|
|
var selectors = this.getSettings('selectors');
|
|
return {
|
|
$progressNumber: this.$element.find(selectors.progressNumber)
|
|
};
|
|
}
|
|
}, {
|
|
key: "onInit",
|
|
value: function onInit() {
|
|
var _this = this;
|
|
|
|
(0, _get2.default)((0, _getPrototypeOf2.default)(Progress.prototype), "onInit", this).call(this);
|
|
ceFrontend.waypoint(this.elements.$progressNumber, function () {
|
|
var $progressbar = _this.elements.$progressNumber;
|
|
$progressbar.css('width', $progressbar.data('max') + '%');
|
|
});
|
|
}
|
|
}]);
|
|
return Progress;
|
|
}(elementorModules.frontend.handlers.Base);
|
|
|
|
var _default = function _default($scope) {
|
|
ceFrontend.elementsHandler.addHandler(Progress, {
|
|
$element: $scope
|
|
});
|
|
};
|
|
|
|
exports.default = _default;
|
|
|
|
/***/ }),
|
|
/* 647 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(0);
|
|
|
|
var _Object$defineProperty = __webpack_require__(1);
|
|
|
|
_Object$defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
|
|
exports.default = void 0;
|
|
|
|
var _baseTabs = _interopRequireDefault(__webpack_require__(575));
|
|
|
|
var _default = function _default($scope) {
|
|
ceFrontend.elementsHandler.addHandler(_baseTabs.default, {
|
|
$element: $scope,
|
|
toggleSelf: false
|
|
});
|
|
};
|
|
|
|
exports.default = _default;
|
|
|
|
/***/ }),
|
|
/* 648 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(0);
|
|
|
|
var _Object$defineProperty = __webpack_require__(1);
|
|
|
|
_Object$defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
|
|
exports.default = void 0;
|
|
|
|
var _baseTabs = _interopRequireDefault(__webpack_require__(575));
|
|
|
|
var _default = function _default($scope) {
|
|
ceFrontend.elementsHandler.addHandler(_baseTabs.default, {
|
|
$element: $scope,
|
|
showTabFn: 'slideDown',
|
|
hideTabFn: 'slideUp',
|
|
hidePrevious: false,
|
|
autoExpand: 'editor'
|
|
});
|
|
};
|
|
|
|
exports.default = _default;
|
|
|
|
/***/ }),
|
|
/* 649 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(0);
|
|
|
|
var _Object$defineProperty = __webpack_require__(1);
|
|
|
|
_Object$defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
|
|
exports.default = void 0;
|
|
|
|
__webpack_require__(206);
|
|
|
|
__webpack_require__(231);
|
|
|
|
__webpack_require__(53);
|
|
|
|
__webpack_require__(17);
|
|
|
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
|
|
|
|
var _createClass2 = _interopRequireDefault(__webpack_require__(3));
|
|
|
|
var _inherits2 = _interopRequireDefault(__webpack_require__(4));
|
|
|
|
var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
|
|
|
|
var VideoModule = /*#__PURE__*/function (_elementorModules$fro) {
|
|
(0, _inherits2.default)(VideoModule, _elementorModules$fro);
|
|
|
|
var _super = (0, _createSuper2.default)(VideoModule);
|
|
|
|
function VideoModule() {
|
|
(0, _classCallCheck2.default)(this, VideoModule);
|
|
return _super.apply(this, arguments);
|
|
}
|
|
|
|
(0, _createClass2.default)(VideoModule, [{
|
|
key: "getDefaultSettings",
|
|
value: function getDefaultSettings() {
|
|
return {
|
|
selectors: {
|
|
imageOverlay: '.elementor-custom-embed-image-overlay',
|
|
video: '.elementor-video',
|
|
videoIframe: '.elementor-video-iframe'
|
|
}
|
|
};
|
|
}
|
|
}, {
|
|
key: "getDefaultElements",
|
|
value: function getDefaultElements() {
|
|
var selectors = this.getSettings('selectors');
|
|
return {
|
|
$imageOverlay: this.$element.find(selectors.imageOverlay),
|
|
$video: this.$element.find(selectors.video),
|
|
$videoIframe: this.$element.find(selectors.videoIframe)
|
|
};
|
|
}
|
|
}, {
|
|
key: "getLightBox",
|
|
value: function getLightBox() {
|
|
return ceFrontend.utils.lightbox;
|
|
}
|
|
}, {
|
|
key: "handleVideo",
|
|
value: function handleVideo() {
|
|
if (!this.getElementSettings('lightbox')) {
|
|
this.elements.$imageOverlay.remove();
|
|
this.playVideo();
|
|
}
|
|
}
|
|
}, {
|
|
key: "playVideo",
|
|
value: function playVideo() {
|
|
if (this.elements.$video.length) {
|
|
this.elements.$video[0].play();
|
|
return;
|
|
}
|
|
|
|
var $videoIframe = this.elements.$videoIframe,
|
|
lazyLoad = $videoIframe.data('lazy-load');
|
|
|
|
if (lazyLoad) {
|
|
$videoIframe.attr('src', lazyLoad);
|
|
}
|
|
|
|
var newSourceUrl = $videoIframe[0].src.replace('&autoplay=0', '');
|
|
$videoIframe[0].src = newSourceUrl + '&autoplay=1';
|
|
|
|
if ($videoIframe[0].src.includes('vimeo.com')) {
|
|
var videoSrc = $videoIframe[0].src,
|
|
timeMatch = /#t=[^&]*/.exec(videoSrc); // Param '#t=' must be last in the URL
|
|
|
|
$videoIframe[0].src = videoSrc.slice(0, timeMatch.index) + videoSrc.slice(timeMatch.index + timeMatch[0].length) + timeMatch[0];
|
|
}
|
|
}
|
|
}, {
|
|
key: "animateVideo",
|
|
value: function animateVideo() {
|
|
this.getLightBox().setEntranceAnimation(this.getCurrentDeviceSetting('lightbox_content_animation'));
|
|
}
|
|
}, {
|
|
key: "handleAspectRatio",
|
|
value: function handleAspectRatio() {
|
|
this.getLightBox().setVideoAspectRatio(this.getElementSettings('aspect_ratio'));
|
|
}
|
|
}, {
|
|
key: "bindEvents",
|
|
value: function bindEvents() {
|
|
this.elements.$imageOverlay.on('click', this.handleVideo.bind(this));
|
|
}
|
|
}, {
|
|
key: "onElementChange",
|
|
value: function onElementChange(propertyName) {
|
|
if (0 === propertyName.indexOf('lightbox_content_animation')) {
|
|
this.animateVideo();
|
|
return;
|
|
}
|
|
|
|
var isLightBoxEnabled = this.getElementSettings('lightbox');
|
|
|
|
if ('lightbox' === propertyName && !isLightBoxEnabled) {
|
|
this.getLightBox().getModal().hide();
|
|
return;
|
|
}
|
|
|
|
if ('aspect_ratio' === propertyName && isLightBoxEnabled) {
|
|
this.handleAspectRatio();
|
|
}
|
|
}
|
|
}]);
|
|
return VideoModule;
|
|
}(elementorModules.frontend.handlers.Base);
|
|
|
|
var _default = function _default($scope) {
|
|
ceFrontend.elementsHandler.addHandler(VideoModule, {
|
|
$element: $scope
|
|
});
|
|
};
|
|
|
|
exports.default = _default;
|
|
|
|
/***/ }),
|
|
/* 650 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(0);
|
|
|
|
var _Object$defineProperty = __webpack_require__(1);
|
|
|
|
_Object$defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
|
|
exports.default = void 0;
|
|
|
|
__webpack_require__(17);
|
|
|
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
|
|
|
|
var _createClass2 = _interopRequireDefault(__webpack_require__(3));
|
|
|
|
var _get3 = _interopRequireDefault(__webpack_require__(22));
|
|
|
|
var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(14));
|
|
|
|
var _inherits2 = _interopRequireDefault(__webpack_require__(4));
|
|
|
|
var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
|
|
|
|
var ImageCarouselHandler = /*#__PURE__*/function (_elementorModules$fro) {
|
|
(0, _inherits2.default)(ImageCarouselHandler, _elementorModules$fro);
|
|
|
|
var _super = (0, _createSuper2.default)(ImageCarouselHandler);
|
|
|
|
function ImageCarouselHandler() {
|
|
(0, _classCallCheck2.default)(this, ImageCarouselHandler);
|
|
return _super.apply(this, arguments);
|
|
}
|
|
|
|
(0, _createClass2.default)(ImageCarouselHandler, [{
|
|
key: "getDefaultSettings",
|
|
value: function getDefaultSettings() {
|
|
return {
|
|
selectors: {
|
|
carousel: '.elementor-carousel-wrapper',
|
|
slideContent: '.swiper-slide'
|
|
}
|
|
};
|
|
}
|
|
}, {
|
|
key: "getDefaultElements",
|
|
value: function getDefaultElements() {
|
|
var selectors = this.getSettings('selectors');
|
|
var elements = {
|
|
$carousel: this.$element.find(selectors.carousel)
|
|
};
|
|
elements.$swiperSlides = elements.$carousel.find(selectors.slideContent);
|
|
return elements;
|
|
}
|
|
}, {
|
|
key: "getSlidesCount",
|
|
value: function getSlidesCount() {
|
|
return this.elements.$swiperSlides.length;
|
|
}
|
|
}, {
|
|
key: "getSwiperSettings",
|
|
value: function getSwiperSettings() {
|
|
var elementSettings = this.getElementSettings(),
|
|
variableWidth = 'yes' === elementSettings.variable_width,
|
|
slidesToShow = +elementSettings.slides_to_show || elementSettings.default_slides_count,
|
|
isSingleSlide = 1 === slidesToShow,
|
|
defaultLGDevicesSlidesCount = isSingleSlide ? 1 : elementSettings.default_slides_count - 1 || 1,
|
|
elementorBreakpoints = ceFrontend.config.breakpoints,
|
|
spaceBetween = elementSettings[this.spaceBetweenKey] && elementSettings[this.spaceBetweenKey] || {},
|
|
em = parseInt(this.elements.$swiperSlides.css('fontSize'));
|
|
var autoplay = {
|
|
delay: elementSettings.autoplay_speed,
|
|
disableOnInteraction: 'yes' === elementSettings.pause_on_interaction
|
|
};
|
|
var swiperOptions = {
|
|
touchThreshold: 100,
|
|
slidesPerView: variableWidth ? 'auto' : slidesToShow,
|
|
spaceBetween: (spaceBetween.size || 0) * ('em' === spaceBetween.unit ? em : 1),
|
|
centeredSlides: 'yes' === elementSettings.center_mode,
|
|
autoplay: $.extend({enabled: !this.isEdit && 'yes' === elementSettings.autoplay}, autoplay),
|
|
loop: 'yes' === elementSettings.infinite && (variableWidth || this.slidesCount > slidesToShow),
|
|
speed: elementSettings.speed,
|
|
handleElementorBreakpoints: true,
|
|
breakpoints: {}
|
|
};
|
|
swiperOptions.breakpoints[elementorBreakpoints.lg] = {
|
|
slidesPerView: variableWidth ? 'auto' : +elementSettings.slides_to_show_tablet || defaultLGDevicesSlidesCount,
|
|
slidesPerGroup: +elementSettings.slides_to_scroll_tablet || 1,
|
|
centeredSlides: 'yes' === elementSettings.center_mode_tablet,
|
|
autoplay: $.extend({enabled: !this.isEdit && 'yes' === elementSettings.autoplay_tablet}, autoplay),
|
|
loop: 'yes' === elementSettings.infinite_tablet && (variableWidth || this.slidesCount > (+elementSettings.slides_to_show_tablet || defaultLGDevicesSlidesCount))
|
|
};
|
|
swiperOptions.breakpoints[elementorBreakpoints.md] = {
|
|
slidesPerView: variableWidth ? 'auto' : +elementSettings.slides_to_show_mobile || 1,
|
|
slidesPerGroup: +elementSettings.slides_to_scroll_mobile || 1,
|
|
centeredSlides: 'yes' === elementSettings.center_mode_mobile,
|
|
autoplay: $.extend({enabled: !this.isEdit && 'yes' === elementSettings.autoplay_mobile}, autoplay),
|
|
loop: 'yes' === elementSettings.infinite_mobile && (variableWidth || this.slidesCount > (+elementSettings.slides_to_show_mobile || 1))
|
|
};
|
|
|
|
if (isSingleSlide) {
|
|
swiperOptions.effect = elementSettings.effect;
|
|
|
|
if ('fade' === elementSettings.effect) {
|
|
swiperOptions.fadeEffect = {crossFade: true};
|
|
}
|
|
} else {
|
|
swiperOptions.slidesPerGroup = +elementSettings.slides_to_scroll || 1;
|
|
}
|
|
|
|
if (elementSettings[this.spaceBetweenKey + '_tablet'] && 'number' === typeof elementSettings[this.spaceBetweenKey + '_tablet'].size) {
|
|
var spaceBetweenTablet = elementSettings[this.spaceBetweenKey + '_tablet'];
|
|
swiperOptions.breakpoints[elementorBreakpoints.lg].spaceBetween = spaceBetweenTablet.size * ('em' === spaceBetweenTablet.unit ? em : 1);
|
|
}
|
|
if (elementSettings[this.spaceBetweenKey + '_mobile'] && 'number' === typeof elementSettings[this.spaceBetweenKey + '_mobile'].size) {
|
|
var spaceBetweenMobile = elementSettings[this.spaceBetweenKey + '_mobile'];
|
|
swiperOptions.breakpoints[elementorBreakpoints.md].spaceBetween = spaceBetweenMobile.size * ('em' === spaceBetweenMobile.unit ? em : 1);
|
|
}
|
|
|
|
var showArrows = 'arrows' === elementSettings.navigation || 'both' === elementSettings.navigation,
|
|
showDots = 'dots' === elementSettings.navigation || 'both' === elementSettings.navigation;
|
|
|
|
if (showArrows) {
|
|
swiperOptions.navigation = {
|
|
prevEl: '.elementor-swiper-button-prev',
|
|
nextEl: '.elementor-swiper-button-next'
|
|
};
|
|
}
|
|
|
|
if (showDots) {
|
|
swiperOptions.pagination = {
|
|
el: '.swiper-pagination',
|
|
type: 'bullets',
|
|
clickable: true
|
|
};
|
|
}
|
|
|
|
return swiperOptions;
|
|
}
|
|
}, {
|
|
key: "updateSpaceBetween",
|
|
value: function updateSpaceBetween() {
|
|
var params = this.swiper.params,
|
|
spaceBetween = ceFrontend.getCurrentDeviceSetting(this.getElementSettings(), this.spaceBetweenKey) || {};
|
|
|
|
params.spaceBetween = (spaceBetween.size || 0) * ('em' === spaceBetween.unit ? parseInt(this.elements.$swiperSlides.css('fontSize')) : 1);
|
|
|
|
this.swiper.update();
|
|
}
|
|
}, {
|
|
key: "onInit",
|
|
value: function onInit() {
|
|
var _get2,
|
|
_this = this;
|
|
|
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
args[_key] = arguments[_key];
|
|
}
|
|
|
|
(_get2 = (0, _get3.default)((0, _getPrototypeOf2.default)(ImageCarouselHandler.prototype), "onInit", this)).call.apply(_get2, [this].concat(args));
|
|
|
|
var elementSettings = this.getElementSettings();
|
|
|
|
if (!this.elements.$swiperSlides.length) {
|
|
return;
|
|
}
|
|
this.slidesCount = this.elements.$swiperSlides.length;
|
|
|
|
var widget = this.$element.data('widget_type').split('.')[0];
|
|
|
|
this.spaceBetweenKey = {
|
|
'image-carousel': 'image_spacing_custom',
|
|
'product-carousel': 'product_spacing_custom',
|
|
'trustedshops-reviews': 'reviews_spacing',
|
|
}[widget] || 'space_between';
|
|
|
|
this.swiper = new Swiper(this.elements.$carousel, this.getSwiperSettings()); // Expose the swiper instance in the frontend
|
|
|
|
this.elements.$carousel.data('swiper', this.swiper);
|
|
|
|
if ('yes' === elementSettings.pause_on_hover) {
|
|
this.elements.$carousel.on({
|
|
mouseenter: function mouseenter() {
|
|
_this.swiper.autoplay.stop();
|
|
},
|
|
mouseleave: function mouseleave() {
|
|
_this.swiper.autoplay.start();
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}, {
|
|
key: "onElementChange",
|
|
value: function onElementChange(propertyName) {
|
|
if (0 === propertyName.indexOf(this.spaceBetweenKey)) {
|
|
this.updateSpaceBetween();
|
|
} else if (~['arrows_position', 'image_height'].indexOf(propertyName)) {
|
|
this.swiper.update();
|
|
}
|
|
}
|
|
}, {
|
|
key: "onEditSettingsChange",
|
|
value: function onEditSettingsChange(propertyName) {
|
|
if ('activeItemIndex' === propertyName && this.swiper) {
|
|
this.swiper.slideToLoop(this.getEditSettings('activeItemIndex') - 1);
|
|
}
|
|
}
|
|
}]);
|
|
return ImageCarouselHandler;
|
|
}(elementorModules.frontend.handlers.Base);
|
|
|
|
var _default = function _default($scope) {
|
|
ceFrontend.elementsHandler.addHandler(ImageCarouselHandler, {
|
|
$element: $scope
|
|
});
|
|
};
|
|
|
|
exports.default = _default;
|
|
|
|
/***/ }),
|
|
/* 651 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(0);
|
|
|
|
var _Object$defineProperty = __webpack_require__(1);
|
|
|
|
_Object$defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
|
|
exports.default = void 0;
|
|
|
|
__webpack_require__(99);
|
|
|
|
__webpack_require__(53);
|
|
|
|
__webpack_require__(17);
|
|
|
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
|
|
|
|
var _createClass2 = _interopRequireDefault(__webpack_require__(3));
|
|
|
|
var _get3 = _interopRequireDefault(__webpack_require__(22));
|
|
|
|
var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(14));
|
|
|
|
var _inherits2 = _interopRequireDefault(__webpack_require__(4));
|
|
|
|
var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
|
|
|
|
var TextEditor = /*#__PURE__*/function (_elementorModules$fro) {
|
|
(0, _inherits2.default)(TextEditor, _elementorModules$fro);
|
|
|
|
var _super = (0, _createSuper2.default)(TextEditor);
|
|
|
|
function TextEditor() {
|
|
(0, _classCallCheck2.default)(this, TextEditor);
|
|
return _super.apply(this, arguments);
|
|
}
|
|
|
|
(0, _createClass2.default)(TextEditor, [{
|
|
key: "getDefaultSettings",
|
|
value: function getDefaultSettings() {
|
|
return {
|
|
selectors: {
|
|
paragraph: 'p:first'
|
|
},
|
|
classes: {
|
|
dropCap: 'elementor-drop-cap',
|
|
dropCapLetter: 'elementor-drop-cap-letter'
|
|
}
|
|
};
|
|
}
|
|
}, {
|
|
key: "getDefaultElements",
|
|
value: function getDefaultElements() {
|
|
var selectors = this.getSettings('selectors'),
|
|
classes = this.getSettings('classes'),
|
|
$dropCap = jQuery('<span>', {
|
|
class: classes.dropCap
|
|
}),
|
|
$dropCapLetter = jQuery('<span>', {
|
|
class: classes.dropCapLetter
|
|
});
|
|
$dropCap.append($dropCapLetter);
|
|
return {
|
|
$paragraph: this.$element.find(selectors.paragraph),
|
|
$dropCap: $dropCap,
|
|
$dropCapLetter: $dropCapLetter
|
|
};
|
|
}
|
|
}, {
|
|
key: "wrapDropCap",
|
|
value: function wrapDropCap() {
|
|
var isDropCapEnabled = this.getElementSettings('drop_cap');
|
|
|
|
if (!isDropCapEnabled) {
|
|
// If there is an old drop cap inside the paragraph
|
|
if (this.dropCapLetter) {
|
|
this.elements.$dropCap.remove();
|
|
this.elements.$paragraph.prepend(this.dropCapLetter);
|
|
this.dropCapLetter = '';
|
|
}
|
|
|
|
return;
|
|
}
|
|
|
|
var $paragraph = this.elements.$paragraph;
|
|
|
|
if (!$paragraph.length) {
|
|
return;
|
|
}
|
|
|
|
var paragraphContent = $paragraph.html().replace(/ /g, ' '),
|
|
firstLetterMatch = paragraphContent.match(/^ *([^ ] ?)/);
|
|
|
|
if (!firstLetterMatch) {
|
|
return;
|
|
}
|
|
|
|
var firstLetter = firstLetterMatch[1],
|
|
trimmedFirstLetter = firstLetter.trim(); // Don't apply drop cap when the content starting with an HTML tag
|
|
|
|
if ('<' === trimmedFirstLetter) {
|
|
return;
|
|
}
|
|
|
|
this.dropCapLetter = firstLetter;
|
|
this.elements.$dropCapLetter.text(trimmedFirstLetter);
|
|
var restoredParagraphContent = paragraphContent.slice(firstLetter.length).replace(/^ */, function (match) {
|
|
return new Array(match.length + 1).join(' ');
|
|
});
|
|
$paragraph.html(restoredParagraphContent).prepend(this.elements.$dropCap);
|
|
}
|
|
}, {
|
|
key: "onInit",
|
|
value: function onInit() {
|
|
var _get2;
|
|
|
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
args[_key] = arguments[_key];
|
|
}
|
|
|
|
(_get2 = (0, _get3.default)((0, _getPrototypeOf2.default)(TextEditor.prototype), "onInit", this)).call.apply(_get2, [this].concat(args));
|
|
|
|
this.wrapDropCap();
|
|
}
|
|
}, {
|
|
key: "onElementChange",
|
|
value: function onElementChange(propertyName) {
|
|
if ('drop_cap' === propertyName) {
|
|
this.wrapDropCap();
|
|
}
|
|
}
|
|
}]);
|
|
return TextEditor;
|
|
}(elementorModules.frontend.handlers.Base);
|
|
|
|
var _default = function _default($scope) {
|
|
ceFrontend.elementsHandler.addHandler(TextEditor, {
|
|
$element: $scope
|
|
});
|
|
};
|
|
|
|
exports.default = _default;
|
|
|
|
/***/ }),
|
|
/* 652 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(0);
|
|
|
|
var _Object$defineProperty = __webpack_require__(1);
|
|
|
|
_Object$defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
|
|
exports.default = void 0;
|
|
|
|
var _backgroundSlideshow = _interopRequireDefault(__webpack_require__(596));
|
|
|
|
var _backgroundVideo = _interopRequireDefault(__webpack_require__(653));
|
|
|
|
var _handlesPosition = _interopRequireDefault(__webpack_require__(654));
|
|
|
|
var _stretchedSection = _interopRequireDefault(__webpack_require__(655));
|
|
|
|
var _shapes = _interopRequireDefault(__webpack_require__(656));
|
|
|
|
var _default = function _default($scope) {
|
|
if (ceFrontend.isEditMode() || $scope.hasClass('elementor-section-stretched')) {
|
|
ceFrontend.elementsHandler.addHandler(_stretchedSection.default, {
|
|
$element: $scope
|
|
});
|
|
}
|
|
|
|
if (ceFrontend.isEditMode()) {
|
|
ceFrontend.elementsHandler.addHandler(_shapes.default, {
|
|
$element: $scope
|
|
});
|
|
ceFrontend.elementsHandler.addHandler(_handlesPosition.default, {
|
|
$element: $scope
|
|
});
|
|
}
|
|
|
|
ceFrontend.elementsHandler.addHandler(_backgroundVideo.default, {
|
|
$element: $scope
|
|
});
|
|
ceFrontend.elementsHandler.addHandler(_backgroundSlideshow.default, {
|
|
$element: $scope
|
|
});
|
|
};
|
|
|
|
exports.default = _default;
|
|
|
|
/***/ }),
|
|
/* 653 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(0);
|
|
|
|
var _Object$defineProperty = __webpack_require__(1);
|
|
|
|
_Object$defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
|
|
exports.default = void 0;
|
|
|
|
__webpack_require__(99);
|
|
|
|
__webpack_require__(68);
|
|
|
|
__webpack_require__(17);
|
|
|
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
|
|
|
|
var _createClass2 = _interopRequireDefault(__webpack_require__(3));
|
|
|
|
var _get3 = _interopRequireDefault(__webpack_require__(22));
|
|
|
|
var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(14));
|
|
|
|
var _inherits2 = _interopRequireDefault(__webpack_require__(4));
|
|
|
|
var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
|
|
|
|
var BackgroundVideo = /*#__PURE__*/function (_elementorModules$fro) {
|
|
(0, _inherits2.default)(BackgroundVideo, _elementorModules$fro);
|
|
|
|
var _super = (0, _createSuper2.default)(BackgroundVideo);
|
|
|
|
function BackgroundVideo() {
|
|
(0, _classCallCheck2.default)(this, BackgroundVideo);
|
|
return _super.apply(this, arguments);
|
|
}
|
|
|
|
(0, _createClass2.default)(BackgroundVideo, [{
|
|
key: "getDefaultSettings",
|
|
value: function getDefaultSettings() {
|
|
return {
|
|
selectors: {
|
|
backgroundVideoContainer: '.elementor-background-video-container',
|
|
backgroundVideoEmbed: '.elementor-background-video-embed',
|
|
backgroundVideoHosted: '.elementor-background-video-hosted'
|
|
}
|
|
};
|
|
}
|
|
}, {
|
|
key: "getDefaultElements",
|
|
value: function getDefaultElements() {
|
|
var selectors = this.getSettings('selectors'),
|
|
elements = {
|
|
$backgroundVideoContainer: this.$element.find(selectors.backgroundVideoContainer)
|
|
};
|
|
elements.$backgroundVideoEmbed = elements.$backgroundVideoContainer.children(selectors.backgroundVideoEmbed);
|
|
elements.$backgroundVideoHosted = elements.$backgroundVideoContainer.children(selectors.backgroundVideoHosted);
|
|
return elements;
|
|
}
|
|
}, {
|
|
key: "calcVideosSize",
|
|
value: function calcVideosSize($video) {
|
|
var aspectRatioSetting = '16:9';
|
|
|
|
if ('vimeo' === this.videoType) {
|
|
aspectRatioSetting = $video[0].width + ':' + $video[0].height;
|
|
}
|
|
|
|
var containerWidth = this.elements.$backgroundVideoContainer.outerWidth(),
|
|
containerHeight = this.elements.$backgroundVideoContainer.outerHeight(),
|
|
aspectRatioArray = aspectRatioSetting.split(':'),
|
|
aspectRatio = aspectRatioArray[0] / aspectRatioArray[1],
|
|
ratioWidth = containerWidth / aspectRatio,
|
|
ratioHeight = containerHeight * aspectRatio,
|
|
isWidthFixed = containerWidth / containerHeight > aspectRatio;
|
|
return {
|
|
width: isWidthFixed ? containerWidth : ratioHeight,
|
|
height: isWidthFixed ? ratioWidth : containerHeight
|
|
};
|
|
}
|
|
}, {
|
|
key: "changeVideoSize",
|
|
value: function changeVideoSize() {
|
|
if (!('hosted' === this.videoType) && !this.player) {
|
|
return;
|
|
}
|
|
|
|
var $video;
|
|
|
|
if ('youtube' === this.videoType) {
|
|
$video = jQuery(this.player.getIframe());
|
|
} else if ('vimeo' === this.videoType) {
|
|
$video = jQuery(this.player.element);
|
|
} else if ('hosted' === this.videoType) {
|
|
$video = this.elements.$backgroundVideoHosted;
|
|
}
|
|
|
|
if (!$video) {
|
|
return;
|
|
}
|
|
|
|
var size = this.calcVideosSize($video);
|
|
$video.width(size.width).height(size.height);
|
|
}
|
|
}, {
|
|
key: "startVideoLoop",
|
|
value: function startVideoLoop(firstTime) {
|
|
var _this = this;
|
|
|
|
// If the section has been removed
|
|
if (!this.player.getIframe().contentWindow) {
|
|
return;
|
|
}
|
|
|
|
var elementSettings = this.getElementSettings(),
|
|
startPoint = elementSettings.background_video_start || 0,
|
|
endPoint = elementSettings.background_video_end;
|
|
|
|
if (elementSettings.background_play_once && !firstTime) {
|
|
this.player.stopVideo();
|
|
return;
|
|
}
|
|
|
|
this.player.seekTo(startPoint);
|
|
|
|
if (endPoint) {
|
|
var durationToEnd = endPoint - startPoint + 1;
|
|
setTimeout(function () {
|
|
_this.startVideoLoop(false);
|
|
}, durationToEnd * 1000);
|
|
}
|
|
}
|
|
}, {
|
|
key: "prepareVimeoVideo",
|
|
value: function prepareVimeoVideo(Vimeo, videoId) {
|
|
var _this2 = this;
|
|
|
|
var elementSettings = this.getElementSettings(),
|
|
startTime = elementSettings.background_video_start ? elementSettings.background_video_start : 0,
|
|
videoSize = this.elements.$backgroundVideoContainer.outerWidth(),
|
|
vimeoOptions = {
|
|
id: videoId,
|
|
width: videoSize.width,
|
|
autoplay: true,
|
|
loop: !elementSettings.background_play_once,
|
|
transparent: false,
|
|
background: true,
|
|
muted: true
|
|
};
|
|
this.player = new Vimeo.Player(this.elements.$backgroundVideoContainer, vimeoOptions); // Handle user-defined start/end times
|
|
|
|
this.handleVimeoStartEndTimes(elementSettings);
|
|
this.player.ready().then(function () {
|
|
jQuery(_this2.player.element).addClass('elementor-background-video-embed');
|
|
|
|
_this2.changeVideoSize();
|
|
});
|
|
}
|
|
}, {
|
|
key: "handleVimeoStartEndTimes",
|
|
value: function handleVimeoStartEndTimes(elementSettings) {
|
|
var _this3 = this;
|
|
|
|
// If a start time is defined, set the start time
|
|
if (elementSettings.background_video_start) {
|
|
this.player.on('play', function (data) {
|
|
if (0 === data.seconds) {
|
|
_this3.player.setCurrentTime(elementSettings.background_video_start);
|
|
}
|
|
});
|
|
}
|
|
|
|
this.player.on('timeupdate', function (data) {
|
|
// If an end time is defined, handle ending the video
|
|
if (elementSettings.background_video_end && elementSettings.background_video_end < data.seconds) {
|
|
if (elementSettings.background_play_once) {
|
|
// Stop at user-defined end time if not loop
|
|
_this3.player.pause();
|
|
} else {
|
|
// Go to start time if loop
|
|
_this3.player.setCurrentTime(elementSettings.background_video_start);
|
|
}
|
|
} // If start time is defined but an end time is not, go to user-defined start time at video end.
|
|
// Vimeo JS API has an 'ended' event, but it never fires when infinite loop is defined, so we
|
|
// get the video duration (returns a promise) then use duration-0.5s as end time
|
|
|
|
|
|
_this3.player.getDuration().then(function (duration) {
|
|
if (elementSettings.background_video_start && !elementSettings.background_video_end && data.seconds > duration - 0.5) {
|
|
_this3.player.setCurrentTime(elementSettings.background_video_start);
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}, {
|
|
key: "prepareYTVideo",
|
|
value: function prepareYTVideo(YT, videoID) {
|
|
var _this4 = this;
|
|
|
|
var $backgroundVideoContainer = this.elements.$backgroundVideoContainer,
|
|
elementSettings = this.getElementSettings();
|
|
var startStateCode = YT.PlayerState.PLAYING; // Since version 67, Chrome doesn't fire the `PLAYING` state at start time
|
|
|
|
if (window.chrome) {
|
|
startStateCode = YT.PlayerState.UNSTARTED;
|
|
}
|
|
|
|
$backgroundVideoContainer.addClass('elementor-loading elementor-invisible');
|
|
this.player = new YT.Player(this.elements.$backgroundVideoEmbed[0], {
|
|
videoId: videoID,
|
|
events: {
|
|
onReady: function onReady() {
|
|
_this4.player.mute();
|
|
|
|
_this4.changeVideoSize();
|
|
|
|
_this4.startVideoLoop(true);
|
|
|
|
_this4.player.playVideo();
|
|
},
|
|
onStateChange: function onStateChange(event) {
|
|
switch (event.data) {
|
|
case startStateCode:
|
|
$backgroundVideoContainer.removeClass('elementor-invisible elementor-loading');
|
|
break;
|
|
|
|
case YT.PlayerState.ENDED:
|
|
_this4.player.seekTo(elementSettings.background_video_start || 0);
|
|
|
|
if (elementSettings.background_play_once) {
|
|
_this4.player.destroy();
|
|
}
|
|
|
|
}
|
|
}
|
|
},
|
|
playerVars: {
|
|
controls: 0,
|
|
rel: 0,
|
|
playsinline: 1
|
|
}
|
|
});
|
|
}
|
|
}, {
|
|
key: "activate",
|
|
value: function activate() {
|
|
var _this5 = this;
|
|
|
|
var videoLink = this.getElementSettings('background_video_link'),
|
|
videoID;
|
|
var playOnce = this.getElementSettings('background_play_once');
|
|
|
|
if (-1 !== videoLink.indexOf('vimeo.com')) {
|
|
this.videoType = 'vimeo';
|
|
this.apiProvider = ceFrontend.utils.vimeo;
|
|
} else if (videoLink.match(/^(?:https?:\/\/)?(?:www\.)?(?:m\.)?(?:youtu\.be\/|youtube\.com)/)) {
|
|
this.videoType = 'youtube';
|
|
this.apiProvider = ceFrontend.utils.youtube;
|
|
}
|
|
|
|
if (this.apiProvider) {
|
|
videoID = this.apiProvider.getVideoIDFromURL(videoLink);
|
|
this.apiProvider.onApiReady(function (apiObject) {
|
|
if ('youtube' === _this5.videoType) {
|
|
_this5.prepareYTVideo(apiObject, videoID);
|
|
}
|
|
|
|
if ('vimeo' === _this5.videoType) {
|
|
_this5.prepareVimeoVideo(apiObject, videoID);
|
|
}
|
|
});
|
|
} else {
|
|
this.videoType = 'hosted';
|
|
var startTime = this.getElementSettings('background_video_start'),
|
|
endTime = this.getElementSettings('background_video_end');
|
|
|
|
if (startTime || endTime) {
|
|
videoLink += '#t=' + (startTime || 0) + (endTime ? ',' + endTime : '');
|
|
}
|
|
|
|
this.elements.$backgroundVideoHosted.attr('src', videoLink).one('canplay', this.changeVideoSize.bind(this));
|
|
|
|
if (playOnce) {
|
|
this.elements.$backgroundVideoHosted.on('ended', function () {
|
|
_this5.elements.$backgroundVideoHosted.hide();
|
|
});
|
|
}
|
|
}
|
|
|
|
ceFrontend.elements.$window.on('resize', this.changeVideoSize);
|
|
}
|
|
}, {
|
|
key: "deactivate",
|
|
value: function deactivate() {
|
|
if ('youtube' === this.videoType && this.player.getIframe() || 'vimeo' === this.videoType) {
|
|
this.player.destroy();
|
|
} else {
|
|
this.elements.$backgroundVideoHosted.removeAttr('src').off('ended');
|
|
}
|
|
|
|
ceFrontend.elements.$window.off('resize', this.changeVideoSize);
|
|
}
|
|
}, {
|
|
key: "run",
|
|
value: function run() {
|
|
var elementSettings = this.getElementSettings();
|
|
|
|
if (!elementSettings.background_play_on_mobile && 'mobile' === ceFrontend.getCurrentDeviceMode()) {
|
|
return;
|
|
}
|
|
|
|
if ('video' === elementSettings.background_background && elementSettings.background_video_link) {
|
|
this.activate();
|
|
} else {
|
|
this.deactivate();
|
|
}
|
|
}
|
|
}, {
|
|
key: "onInit",
|
|
value: function onInit() {
|
|
var _get2;
|
|
|
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
args[_key] = arguments[_key];
|
|
}
|
|
|
|
(_get2 = (0, _get3.default)((0, _getPrototypeOf2.default)(BackgroundVideo.prototype), "onInit", this)).call.apply(_get2, [this].concat(args));
|
|
|
|
this.changeVideoSize = this.changeVideoSize.bind(this);
|
|
this.run();
|
|
}
|
|
}, {
|
|
key: "onElementChange",
|
|
value: function onElementChange(propertyName) {
|
|
if ('background_background' === propertyName) {
|
|
this.run();
|
|
}
|
|
}
|
|
}]);
|
|
return BackgroundVideo;
|
|
}(elementorModules.frontend.handlers.Base);
|
|
|
|
exports.default = BackgroundVideo;
|
|
|
|
/***/ }),
|
|
/* 654 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(0);
|
|
|
|
var _Object$defineProperty = __webpack_require__(1);
|
|
|
|
_Object$defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
|
|
exports.default = void 0;
|
|
|
|
__webpack_require__(17);
|
|
|
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
|
|
|
|
var _createClass2 = _interopRequireDefault(__webpack_require__(3));
|
|
|
|
var _inherits2 = _interopRequireDefault(__webpack_require__(4));
|
|
|
|
var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
|
|
|
|
var HandlesPosition = /*#__PURE__*/function (_elementorModules$fro) {
|
|
(0, _inherits2.default)(HandlesPosition, _elementorModules$fro);
|
|
|
|
var _super = (0, _createSuper2.default)(HandlesPosition);
|
|
|
|
function HandlesPosition() {
|
|
(0, _classCallCheck2.default)(this, HandlesPosition);
|
|
return _super.apply(this, arguments);
|
|
}
|
|
|
|
(0, _createClass2.default)(HandlesPosition, [{
|
|
key: "isFirstSection",
|
|
value: function isFirstSection() {
|
|
return this.$element.is('.elementor-edit-mode .elementor-top-section:first');
|
|
}
|
|
}, {
|
|
key: "isOverflowHidden",
|
|
value: function isOverflowHidden() {
|
|
return 'hidden' === this.$element.css('overflow');
|
|
}
|
|
}, {
|
|
key: "getOffset",
|
|
value: function getOffset() {
|
|
if ('body' === elementor.config.document.container) {
|
|
return this.$element.offset().top;
|
|
}
|
|
|
|
var $container = jQuery(elementor.config.document.container);
|
|
return this.$element.offset().top - $container.offset().top;
|
|
}
|
|
}, {
|
|
key: "setHandlesPosition",
|
|
value: function setHandlesPosition() {
|
|
var document = elementor.documents.getCurrent();
|
|
|
|
if (!document || !document.container.isEditable()) {
|
|
return;
|
|
}
|
|
|
|
var isOverflowHidden = this.isOverflowHidden();
|
|
|
|
if (!isOverflowHidden && !this.isFirstSection()) {
|
|
return;
|
|
}
|
|
|
|
var offset = isOverflowHidden ? 0 : this.getOffset(),
|
|
$handlesElement = this.$element.find('> .elementor-element-overlay > .elementor-editor-section-settings'),
|
|
insideHandleClass = 'elementor-section--handles-inside';
|
|
|
|
if (offset < 25 || this.$element.closest('[data-elementor-type^="product-"]').length) {
|
|
// offset < 25 or document type is miniature / quick view
|
|
this.$element.addClass(insideHandleClass);
|
|
|
|
if (offset < -5) {
|
|
$handlesElement.css('top', -offset);
|
|
} else {
|
|
$handlesElement.css('top', '');
|
|
}
|
|
} else {
|
|
this.$element.removeClass(insideHandleClass);
|
|
}
|
|
}
|
|
}, {
|
|
key: "onInit",
|
|
value: function onInit() {
|
|
this.setHandlesPosition();
|
|
this.$element.on('mouseenter', this.setHandlesPosition.bind(this));
|
|
}
|
|
}]);
|
|
return HandlesPosition;
|
|
}(elementorModules.frontend.handlers.Base);
|
|
|
|
exports.default = HandlesPosition;
|
|
|
|
/***/ }),
|
|
/* 655 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(0);
|
|
|
|
var _Object$defineProperty = __webpack_require__(1);
|
|
|
|
_Object$defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
|
|
exports.default = void 0;
|
|
|
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
|
|
|
|
var _createClass2 = _interopRequireDefault(__webpack_require__(3));
|
|
|
|
var _get3 = _interopRequireDefault(__webpack_require__(22));
|
|
|
|
var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(14));
|
|
|
|
var _inherits2 = _interopRequireDefault(__webpack_require__(4));
|
|
|
|
var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
|
|
|
|
var StretchedSection = /*#__PURE__*/function (_elementorModules$fro) {
|
|
(0, _inherits2.default)(StretchedSection, _elementorModules$fro);
|
|
|
|
var _super = (0, _createSuper2.default)(StretchedSection);
|
|
|
|
function StretchedSection() {
|
|
(0, _classCallCheck2.default)(this, StretchedSection);
|
|
return _super.apply(this, arguments);
|
|
}
|
|
|
|
(0, _createClass2.default)(StretchedSection, [{
|
|
key: "bindEvents",
|
|
value: function bindEvents() {
|
|
var handlerID = this.getUniqueHandlerID();
|
|
ceFrontend.addListenerOnce(handlerID, 'resize', this.stretch);
|
|
ceFrontend.addListenerOnce(handlerID, 'sticky:stick', this.stretch, this.$element);
|
|
ceFrontend.addListenerOnce(handlerID, 'sticky:unstick', this.stretch, this.$element);
|
|
}
|
|
}, {
|
|
key: "unbindEvents",
|
|
value: function unbindEvents() {
|
|
ceFrontend.removeListeners(this.getUniqueHandlerID(), 'resize', this.stretch);
|
|
}
|
|
}, {
|
|
key: "initStretch",
|
|
value: function initStretch() {
|
|
this.stretch = this.stretch.bind(this);
|
|
this.stretchElement = new elementorModules.frontend.tools.StretchElement({
|
|
element: this.$element,
|
|
selectors: {
|
|
container: this.getStretchContainer()
|
|
}
|
|
});
|
|
}
|
|
}, {
|
|
key: "getStretchContainer",
|
|
value: function getStretchContainer() {
|
|
return ceFrontend.getGeneralSettings('elementor_stretched_section_container') || document.body;
|
|
}
|
|
}, {
|
|
key: "stretch",
|
|
value: function stretch() {
|
|
if (!this.getElementSettings('stretch_section')) {
|
|
return;
|
|
}
|
|
|
|
this.stretchElement.stretch();
|
|
}
|
|
}, {
|
|
key: "onInit",
|
|
value: function onInit() {
|
|
var _get2;
|
|
|
|
this.initStretch();
|
|
|
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
args[_key] = arguments[_key];
|
|
}
|
|
|
|
(_get2 = (0, _get3.default)((0, _getPrototypeOf2.default)(StretchedSection.prototype), "onInit", this)).call.apply(_get2, [this].concat(args));
|
|
|
|
this.stretch();
|
|
}
|
|
}, {
|
|
key: "onElementChange",
|
|
value: function onElementChange(propertyName) {
|
|
if ('stretch_section' === propertyName) {
|
|
if (this.getElementSettings('stretch_section')) {
|
|
this.stretch();
|
|
} else {
|
|
this.stretchElement.reset();
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
key: "onGeneralSettingsChange",
|
|
value: function onGeneralSettingsChange(changed) {
|
|
if ('elementor_stretched_section_container' in changed) {
|
|
this.stretchElement.setSettings('selectors.container', this.getStretchContainer());
|
|
this.stretch();
|
|
}
|
|
}
|
|
}]);
|
|
return StretchedSection;
|
|
}(elementorModules.frontend.handlers.Base);
|
|
|
|
exports.default = StretchedSection;
|
|
|
|
/***/ }),
|
|
/* 656 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(0);
|
|
|
|
var _Object$defineProperty = __webpack_require__(1);
|
|
|
|
_Object$defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
|
|
exports.default = void 0;
|
|
|
|
__webpack_require__(99);
|
|
|
|
__webpack_require__(53);
|
|
|
|
__webpack_require__(17);
|
|
|
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
|
|
|
|
var _createClass2 = _interopRequireDefault(__webpack_require__(3));
|
|
|
|
var _get3 = _interopRequireDefault(__webpack_require__(22));
|
|
|
|
var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(14));
|
|
|
|
var _inherits2 = _interopRequireDefault(__webpack_require__(4));
|
|
|
|
var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
|
|
|
|
var Shapes = /*#__PURE__*/function (_elementorModules$fro) {
|
|
(0, _inherits2.default)(Shapes, _elementorModules$fro);
|
|
|
|
var _super = (0, _createSuper2.default)(Shapes);
|
|
|
|
function Shapes() {
|
|
(0, _classCallCheck2.default)(this, Shapes);
|
|
return _super.apply(this, arguments);
|
|
}
|
|
|
|
(0, _createClass2.default)(Shapes, [{
|
|
key: "getDefaultSettings",
|
|
value: function getDefaultSettings() {
|
|
return {
|
|
selectors: {
|
|
container: '> .elementor-shape-%s'
|
|
},
|
|
svgURL: ceFrontend.config.urls.assets + 'img/shapes/'
|
|
};
|
|
}
|
|
}, {
|
|
key: "getDefaultElements",
|
|
value: function getDefaultElements() {
|
|
var elements = {},
|
|
selectors = this.getSettings('selectors');
|
|
elements.$topContainer = this.$element.find(selectors.container.replace('%s', 'top'));
|
|
elements.$bottomContainer = this.$element.find(selectors.container.replace('%s', 'bottom'));
|
|
return elements;
|
|
}
|
|
}, {
|
|
key: "getSvgURL",
|
|
value: function getSvgURL(shapeType, fileName) {
|
|
var svgURL = this.getSettings('svgURL') + fileName + '.svg';
|
|
|
|
if (elementor.config.additional_shapes && shapeType in elementor.config.additional_shapes) {
|
|
svgURL = elementor.config.additional_shapes[shapeType];
|
|
|
|
if (-1 < fileName.indexOf('-negative')) {
|
|
svgURL = svgURL.replace('.svg', '-negative.svg');
|
|
}
|
|
}
|
|
|
|
return svgURL;
|
|
}
|
|
}, {
|
|
key: "buildSVG",
|
|
value: function buildSVG(side) {
|
|
var baseSettingKey = 'shape_divider_' + side,
|
|
shapeType = this.getElementSettings(baseSettingKey),
|
|
$svgContainer = this.elements['$' + side + 'Container'];
|
|
$svgContainer.attr('data-shape', shapeType);
|
|
|
|
if (!shapeType) {
|
|
$svgContainer.empty(); // Shape-divider set to 'none'
|
|
|
|
return;
|
|
}
|
|
|
|
var fileName = shapeType;
|
|
|
|
if (this.getElementSettings(baseSettingKey + '_negative')) {
|
|
fileName += '-negative';
|
|
}
|
|
|
|
var svgURL = this.getSvgURL(shapeType, fileName);
|
|
jQuery.get(svgURL, function (data) {
|
|
$svgContainer.empty().append(data.childNodes[0]);
|
|
});
|
|
this.setNegative(side);
|
|
}
|
|
}, {
|
|
key: "setNegative",
|
|
value: function setNegative(side) {
|
|
this.elements['$' + side + 'Container'].attr('data-negative', !!this.getElementSettings('shape_divider_' + side + '_negative'));
|
|
}
|
|
}, {
|
|
key: "onInit",
|
|
value: function onInit() {
|
|
var _get2,
|
|
_this = this;
|
|
|
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
args[_key] = arguments[_key];
|
|
}
|
|
|
|
(_get2 = (0, _get3.default)((0, _getPrototypeOf2.default)(Shapes.prototype), "onInit", this)).call.apply(_get2, [this].concat(args));
|
|
|
|
['top', 'bottom'].forEach(function (side) {
|
|
if (_this.getElementSettings('shape_divider_' + side)) {
|
|
_this.buildSVG(side);
|
|
}
|
|
});
|
|
}
|
|
}, {
|
|
key: "onElementChange",
|
|
value: function onElementChange(propertyName) {
|
|
var shapeChange = propertyName.match(/^shape_divider_(top|bottom)$/);
|
|
|
|
if (shapeChange) {
|
|
this.buildSVG(shapeChange[1]);
|
|
return;
|
|
}
|
|
|
|
var negativeChange = propertyName.match(/^shape_divider_(top|bottom)_negative$/);
|
|
|
|
if (negativeChange) {
|
|
this.buildSVG(negativeChange[1]);
|
|
this.setNegative(negativeChange[1]);
|
|
}
|
|
}
|
|
}]);
|
|
return Shapes;
|
|
}(elementorModules.frontend.handlers.Base);
|
|
|
|
exports.default = Shapes;
|
|
|
|
/***/ }),
|
|
/* 657 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(0);
|
|
|
|
var _Object$defineProperty = __webpack_require__(1);
|
|
|
|
_Object$defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
|
|
exports.default = void 0;
|
|
|
|
var _backgroundSlideshow = _interopRequireDefault(__webpack_require__(596));
|
|
|
|
var _default = function _default($scope) {
|
|
ceFrontend.elementsHandler.addHandler(_backgroundSlideshow.default, {
|
|
$element: $scope
|
|
});
|
|
};
|
|
|
|
exports.default = _default;
|
|
|
|
/***/ }),
|
|
/* 658 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(0);
|
|
|
|
var _Object$defineProperty = __webpack_require__(1);
|
|
|
|
_Object$defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
|
|
exports.default = void 0;
|
|
|
|
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2));
|
|
|
|
var _createClass2 = _interopRequireDefault(__webpack_require__(3));
|
|
|
|
var _get3 = _interopRequireDefault(__webpack_require__(22));
|
|
|
|
var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(14));
|
|
|
|
var _inherits2 = _interopRequireDefault(__webpack_require__(4));
|
|
|
|
var _createSuper2 = _interopRequireDefault(__webpack_require__(5));
|
|
|
|
var GlobalHandler = /*#__PURE__*/function (_elementorModules$fro) {
|
|
(0, _inherits2.default)(GlobalHandler, _elementorModules$fro);
|
|
|
|
var _super = (0, _createSuper2.default)(GlobalHandler);
|
|
|
|
function GlobalHandler() {
|
|
(0, _classCallCheck2.default)(this, GlobalHandler);
|
|
return _super.apply(this, arguments);
|
|
}
|
|
|
|
(0, _createClass2.default)(GlobalHandler, [{
|
|
key: "getWidgetType",
|
|
value: function getWidgetType() {
|
|
return 'global';
|
|
}
|
|
}, {
|
|
key: "animate",
|
|
value: function animate() {
|
|
var $element = this.$element,
|
|
animation = this.getAnimation();
|
|
|
|
if ('none' === animation) {
|
|
$element.removeClass('elementor-invisible');
|
|
return;
|
|
}
|
|
|
|
var elementSettings = this.getElementSettings(),
|
|
animationDelay = elementSettings._animation_delay || elementSettings.animation_delay || 0;
|
|
|
|
$element.addClass('elementor-invisible').removeClass(animation);
|
|
|
|
if (this.currentAnimation) {
|
|
$element.removeClass(this.currentAnimation);
|
|
}
|
|
|
|
this.currentAnimation = animation;
|
|
setTimeout(function () {
|
|
$element.removeClass('elementor-invisible').addClass('animated ' + animation);
|
|
}, animationDelay);
|
|
}
|
|
}, {
|
|
key: "getAnimation",
|
|
value: function getAnimation() {
|
|
return this.getCurrentDeviceSetting('animation') || this.getCurrentDeviceSetting('_animation');
|
|
}
|
|
}, {
|
|
key: "onInit",
|
|
value: function onInit() {
|
|
var _get2,
|
|
_this = this;
|
|
|
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
args[_key] = arguments[_key];
|
|
}
|
|
|
|
(_get2 = (0, _get3.default)((0, _getPrototypeOf2.default)(GlobalHandler.prototype), "onInit", this)).call.apply(_get2, [this].concat(args));
|
|
|
|
if (this.getAnimation()) {
|
|
ceFrontend.waypoint(this.$element, function () {
|
|
return _this.animate();
|
|
});
|
|
}
|
|
}
|
|
}, {
|
|
key: "onElementChange",
|
|
value: function onElementChange(propertyName) {
|
|
if (/^_?animation/.test(propertyName)) {
|
|
this.animate();
|
|
}
|
|
}
|
|
}]);
|
|
return GlobalHandler;
|
|
}(elementorModules.frontend.handlers.Base);
|
|
|
|
var _default = function _default($scope) {
|
|
ceFrontend.elementsHandler.addHandler(GlobalHandler, {
|
|
$element: $scope
|
|
});
|
|
};
|
|
|
|
exports.default = _default;
|
|
|
|
/***/ }),
|
|
/* 659 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
module.exports = elementorModules.ViewModule.extend({
|
|
getDefaultSettings: function getDefaultSettings() {
|
|
return {
|
|
scrollDuration: 500,
|
|
selectors: {
|
|
links: 'a[href*="#"]',
|
|
targets: '.elementor-element, .elementor-menu-anchor',
|
|
scrollable: 'html, body'
|
|
}
|
|
};
|
|
},
|
|
getDefaultElements: function getDefaultElements() {
|
|
var $ = jQuery,
|
|
selectors = this.getSettings('selectors');
|
|
return {
|
|
$scrollable: $(selectors.scrollable)
|
|
};
|
|
},
|
|
bindEvents: function bindEvents() {
|
|
ceFrontend.elements.$document.on('click', this.getSettings('selectors.links'), this.handleAnchorLinks);
|
|
},
|
|
handleAnchorLinks: function handleAnchorLinks(event) {
|
|
var clickedLink = event.currentTarget,
|
|
isSamePathname = location.pathname === clickedLink.pathname,
|
|
isSameHostname = location.hostname === clickedLink.hostname,
|
|
$anchor;
|
|
|
|
if (!isSameHostname || !isSamePathname || clickedLink.hash.length < 2) {
|
|
return;
|
|
}
|
|
|
|
try {
|
|
$anchor = jQuery(clickedLink.hash).filter(this.getSettings('selectors.targets'));
|
|
} catch (e) {
|
|
return;
|
|
}
|
|
|
|
if (!$anchor.length) {
|
|
return;
|
|
}
|
|
|
|
var scrollTop = $anchor.offset().top,
|
|
// $wpAdminBar = ceFrontend.elements.$wpAdminBar,
|
|
$activeStickies = jQuery('.elementor-section.elementor-sticky--active:visible'),
|
|
maxStickyHeight = 0;
|
|
|
|
// if ($wpAdminBar.length > 0) {
|
|
// scrollTop -= $wpAdminBar.height();
|
|
// }
|
|
|
|
if ($activeStickies.length > 0) {
|
|
maxStickyHeight = Math.max.apply(null, $activeStickies.map(function () {
|
|
return jQuery(this).outerHeight();
|
|
}).get());
|
|
scrollTop -= maxStickyHeight;
|
|
}
|
|
|
|
event.preventDefault();
|
|
scrollTop = ceFrontend.hooks.applyFilters('frontend/handlers/menu_anchor/scroll_top_distance', scrollTop);
|
|
this.elements.$scrollable.animate({
|
|
scrollTop: scrollTop
|
|
}, this.getSettings('scrollDuration'), 'linear');
|
|
},
|
|
onInit: function onInit() {
|
|
elementorModules.ViewModule.prototype.onInit.apply(this, arguments);
|
|
this.bindEvents();
|
|
}
|
|
});
|
|
|
|
/***/ }),
|
|
/* 660 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(0);
|
|
|
|
__webpack_require__(99);
|
|
|
|
__webpack_require__(17);
|
|
|
|
__webpack_require__(53);
|
|
|
|
var _screenfull = _interopRequireDefault(__webpack_require__(661));
|
|
|
|
module.exports = elementorModules.ViewModule.extend({
|
|
oldAspectRatio: null,
|
|
oldAnimation: null,
|
|
swiper: null,
|
|
player: null,
|
|
getDefaultSettings: function getDefaultSettings() {
|
|
return {
|
|
classes: {
|
|
aspectRatio: 'elementor-aspect-ratio-%s',
|
|
item: 'elementor-lightbox-item',
|
|
image: 'elementor-lightbox-image',
|
|
videoContainer: 'elementor-video-container',
|
|
videoWrapper: 'elementor-fit-aspect-ratio',
|
|
playButton: 'elementor-custom-embed-play',
|
|
playButtonIcon: 'fa',
|
|
playing: 'elementor-playing',
|
|
hidden: 'elementor-hidden',
|
|
invisible: 'elementor-invisible',
|
|
preventClose: 'elementor-lightbox-prevent-close',
|
|
slideshow: {
|
|
container: 'swiper-container',
|
|
slidesWrapper: 'swiper-wrapper',
|
|
prevButton: 'elementor-swiper-button elementor-swiper-button-prev',
|
|
nextButton: 'elementor-swiper-button elementor-swiper-button-next',
|
|
prevButtonIcon: 'ceicon-chevron-left',
|
|
nextButtonIcon: 'ceicon-chevron-right',
|
|
slide: 'swiper-slide',
|
|
header: 'elementor-slideshow__header',
|
|
footer: 'elementor-slideshow__footer',
|
|
title: 'elementor-slideshow__title',
|
|
description: 'elementor-slideshow__description',
|
|
counter: 'elementor-slideshow__counter',
|
|
iconExpand: 'ceicon-frame-expand',
|
|
iconShrink: 'ceicon-frame-minimize',
|
|
iconZoomIn: 'ceicon-zoom-in-bold',
|
|
iconZoomOut: 'ceicon-zoom-out-bold',
|
|
hideUiVisibility: 'elementor-slideshow--ui-hidden',
|
|
fullscreenMode: 'elementor-slideshow--fullscreen-mode',
|
|
zoomMode: 'elementor-slideshow--zoom-mode'
|
|
}
|
|
},
|
|
selectors: {
|
|
links: 'a, [data-elementor-lightbox]',
|
|
slideshow: {
|
|
activeSlide: '.swiper-slide-active',
|
|
prevSlide: '.swiper-slide-prev',
|
|
nextSlide: '.swiper-slide-next'
|
|
}
|
|
},
|
|
modalOptions: {
|
|
id: 'elementor-lightbox',
|
|
entranceAnimation: 'zoomIn',
|
|
videoAspectRatio: 169,
|
|
position: {
|
|
enable: false
|
|
}
|
|
}
|
|
};
|
|
},
|
|
getModal: function getModal() {
|
|
if (!module.exports.modal) {
|
|
this.initModal();
|
|
}
|
|
|
|
return module.exports.modal;
|
|
},
|
|
initModal: function initModal() {
|
|
var modal = module.exports.modal = ceFrontend.getDialogsManager().createWidget('lightbox', {
|
|
className: 'elementor-lightbox',
|
|
closeButton: true,
|
|
closeButtonClass: 'ceicon-close',
|
|
selectors: {
|
|
preventClose: '.' + this.getSettings('classes.preventClose')
|
|
},
|
|
hide: {
|
|
onClick: true
|
|
}
|
|
});
|
|
modal.on('hide', function () {
|
|
modal.setMessage('');
|
|
});
|
|
},
|
|
showModal: function showModal(options) {
|
|
var self = this,
|
|
defaultOptions = self.getDefaultSettings().modalOptions;
|
|
self.id = options.id;
|
|
self.setSettings('modalOptions', jQuery.extend(defaultOptions, options.modalOptions));
|
|
var modal = self.getModal();
|
|
modal.setID(self.getSettings('modalOptions.id'));
|
|
|
|
modal.onShow = function () {
|
|
DialogsManager.getWidgetType('lightbox').prototype.onShow.apply(modal, arguments);
|
|
self.setEntranceAnimation();
|
|
};
|
|
|
|
modal.onHide = function () {
|
|
DialogsManager.getWidgetType('lightbox').prototype.onHide.apply(modal, arguments);
|
|
modal.getElements('message').removeClass('animated');
|
|
|
|
if (_screenfull.default.isFullscreen) {
|
|
self.deactivateFullscreen();
|
|
}
|
|
};
|
|
|
|
switch (options.type) {
|
|
case 'video':
|
|
self.setVideoContent(options);
|
|
break;
|
|
|
|
case 'image':
|
|
var slides = [{
|
|
image: options.url,
|
|
index: 0,
|
|
title: options.title,
|
|
description: options.description
|
|
}];
|
|
options.slideshow = {
|
|
slides: slides,
|
|
swiper: {
|
|
loop: false,
|
|
pagination: false
|
|
}
|
|
};
|
|
|
|
case 'slideshow':
|
|
self.setSlideshowContent(options.slideshow);
|
|
break;
|
|
|
|
default:
|
|
self.setHTMLContent(options.html);
|
|
}
|
|
|
|
modal.show();
|
|
},
|
|
setHTMLContent: function setHTMLContent(html) {
|
|
this.getModal().setMessage(html);
|
|
},
|
|
setVideoContent: function setVideoContent(options) {
|
|
var $ = jQuery,
|
|
classes = this.getSettings('classes'),
|
|
$videoContainer = $('<div>', {
|
|
class: "".concat(classes.videoContainer, " ").concat(classes.preventClose)
|
|
}),
|
|
$videoWrapper = $('<div>', {
|
|
class: classes.videoWrapper
|
|
}),
|
|
modal = this.getModal();
|
|
var $videoElement;
|
|
|
|
if ('hosted' === options.videoType) {
|
|
var videoParams = $.extend({
|
|
src: options.url,
|
|
autoplay: ''
|
|
}, options.videoParams);
|
|
$videoElement = $('<video>', videoParams);
|
|
} else {
|
|
var videoURL = options.url.replace('&autoplay=0', '') + '&autoplay=1';
|
|
$videoElement = $('<iframe>', {
|
|
src: videoURL,
|
|
allowfullscreen: 1
|
|
});
|
|
}
|
|
|
|
$videoContainer.append($videoWrapper);
|
|
$videoWrapper.append($videoElement);
|
|
modal.setMessage($videoContainer);
|
|
this.setVideoAspectRatio();
|
|
var onHideMethod = modal.onHide;
|
|
|
|
modal.onHide = function () {
|
|
onHideMethod();
|
|
modal.getElements('message').removeClass('elementor-fit-aspect-ratio');
|
|
};
|
|
},
|
|
getSlideshowHeader: function getSlideshowHeader() {
|
|
var $ = jQuery,
|
|
showCounter = 'yes' === ceFrontend.getGeneralSettings('elementor_lightbox_enable_counter'),
|
|
showFullscreen = 'yes' === ceFrontend.getGeneralSettings('elementor_lightbox_enable_fullscreen'),
|
|
showZoom = 'yes' === ceFrontend.getGeneralSettings('elementor_lightbox_enable_zoom'),
|
|
classes = this.getSettings('classes'),
|
|
slideshowClasses = classes.slideshow,
|
|
elements = this.elements;
|
|
|
|
if (!(showCounter || showFullscreen || showZoom)) {
|
|
return;
|
|
}
|
|
|
|
elements.$header = $('<header>', {
|
|
class: slideshowClasses.header + ' ' + classes.preventClose
|
|
});
|
|
|
|
if (showCounter) {
|
|
elements.$counter = $('<span>', {
|
|
class: slideshowClasses.counter
|
|
});
|
|
elements.$header.append(elements.$counter);
|
|
}
|
|
|
|
if (showFullscreen) {
|
|
elements.$iconExpand = $('<i>', {
|
|
class: slideshowClasses.iconExpand
|
|
}).append($('<span>'), $('<span>'));
|
|
elements.$iconExpand.on('click', this.toggleFullscreen);
|
|
elements.$header.append(elements.$iconExpand);
|
|
}
|
|
|
|
if (showZoom) {
|
|
elements.$iconZoom = $('<i>', {
|
|
class: slideshowClasses.iconZoomIn
|
|
});
|
|
elements.$iconZoom.on('click', this.toggleZoomMode);
|
|
elements.$header.append(elements.$iconZoom);
|
|
}
|
|
|
|
return elements.$header;
|
|
},
|
|
toggleFullscreen: function toggleFullscreen() {
|
|
if (_screenfull.default.isFullscreen) {
|
|
this.deactivateFullscreen();
|
|
} else if (_screenfull.default.isEnabled) {
|
|
this.activateFullscreen();
|
|
}
|
|
},
|
|
toggleZoomMode: function toggleZoomMode() {
|
|
if (1 !== this.swiper.zoom.scale) {
|
|
this.deactivateZoom();
|
|
} else {
|
|
this.activateZoom();
|
|
}
|
|
},
|
|
activateFullscreen: function activateFullscreen() {
|
|
var classes = this.getSettings('classes');
|
|
|
|
_screenfull.default.request(this.elements.$container.parents('.dialog-widget')[0]);
|
|
|
|
this.elements.$iconExpand.removeClass(classes.slideshow.iconExpand).addClass(classes.slideshow.iconShrink);
|
|
this.elements.$container.addClass(classes.slideshow.fullscreenMode);
|
|
},
|
|
deactivateFullscreen: function deactivateFullscreen() {
|
|
var classes = this.getSettings('classes');
|
|
|
|
_screenfull.default.exit();
|
|
|
|
this.elements.$iconExpand.removeClass(classes.slideshow.iconShrink).addClass(classes.slideshow.iconExpand);
|
|
this.elements.$container.removeClass(classes.slideshow.fullscreenMode);
|
|
},
|
|
activateZoom: function activateZoom() {
|
|
var swiper = this.swiper,
|
|
elements = this.elements,
|
|
classes = this.getSettings('classes');
|
|
swiper.zoom.in();
|
|
swiper.allowSlideNext = false;
|
|
swiper.allowSlidePrev = false;
|
|
swiper.allowTouchMove = false;
|
|
elements.$container.addClass(classes.slideshow.zoomMode);
|
|
elements.$iconZoom.removeClass(classes.slideshow.iconZoomIn).addClass(classes.slideshow.iconZoomOut);
|
|
},
|
|
deactivateZoom: function deactivateZoom() {
|
|
var swiper = this.swiper,
|
|
elements = this.elements,
|
|
classes = this.getSettings('classes');
|
|
swiper.zoom.out();
|
|
swiper.allowSlideNext = true;
|
|
swiper.allowSlidePrev = true;
|
|
swiper.allowTouchMove = true;
|
|
elements.$container.removeClass(classes.slideshow.zoomMode);
|
|
elements.$iconZoom.removeClass(classes.slideshow.iconZoomOut).addClass(classes.slideshow.iconZoomIn);
|
|
},
|
|
getSlideshowFooter: function getSlideshowFooter() {
|
|
var $ = jQuery,
|
|
classes = this.getSettings('classes'),
|
|
$footer = $('<footer>', {
|
|
class: classes.slideshow.footer + ' ' + classes.preventClose
|
|
}),
|
|
$title = $('<div>', {
|
|
class: classes.slideshow.title
|
|
}),
|
|
$description = $('<div>', {
|
|
class: classes.slideshow.description
|
|
});
|
|
$footer.append($title, $description);
|
|
return $footer;
|
|
},
|
|
setSlideshowContent: function setSlideshowContent(options) {
|
|
var _this2 = this;
|
|
|
|
var $ = jQuery,
|
|
isSingleSlide = 1 === options.slides.length,
|
|
hasTitle = '' !== ceFrontend.getGeneralSettings('elementor_lightbox_title_src'),
|
|
hasDescription = '' !== ceFrontend.getGeneralSettings('elementor_lightbox_description_src'),
|
|
showFooter = hasTitle || hasDescription,
|
|
classes = this.getSettings('classes'),
|
|
slideshowClasses = classes.slideshow,
|
|
$container = $('<div>', {
|
|
class: slideshowClasses.container
|
|
}),
|
|
$slidesWrapper = $('<div>', {
|
|
class: slideshowClasses.slidesWrapper
|
|
});
|
|
var $prevButton, $nextButton;
|
|
options.slides.forEach(function (slide) {
|
|
var slideClass = slideshowClasses.slide + ' ' + classes.item;
|
|
|
|
if (slide.video) {
|
|
slideClass += ' ' + classes.video;
|
|
}
|
|
|
|
var $slide = $('<div>', {
|
|
class: slideClass
|
|
});
|
|
|
|
if (slide.video) {
|
|
$slide.attr('data-elementor-slideshow-video', slide.video);
|
|
var $playIcon = $('<div>', {
|
|
class: classes.playButton
|
|
}).html($('<i>', {
|
|
class: classes.playButtonIcon
|
|
}));
|
|
$slide.append($playIcon);
|
|
} else {
|
|
var $zoomContainer = $('<div>', {
|
|
class: 'swiper-zoom-container'
|
|
}),
|
|
$slideImage = $('<img>', {
|
|
class: classes.image + ' ' + classes.preventClose,
|
|
src: slide.image,
|
|
'data-title': slide.title,
|
|
'data-description': slide.description
|
|
});
|
|
$zoomContainer.append($slideImage);
|
|
$slide.append($zoomContainer);
|
|
}
|
|
|
|
$slidesWrapper.append($slide);
|
|
});
|
|
this.elements.$container = $container;
|
|
this.elements.$header = this.getSlideshowHeader();
|
|
$container.prepend(this.elements.$header).append($slidesWrapper);
|
|
|
|
if (!isSingleSlide) {
|
|
$prevButton = $('<div>', {
|
|
class: slideshowClasses.prevButton + ' ' + classes.preventClose
|
|
}).html($('<i>', {
|
|
class: slideshowClasses.prevButtonIcon
|
|
}));
|
|
$nextButton = $('<div>', {
|
|
class: slideshowClasses.nextButton + ' ' + classes.preventClose
|
|
}).html($('<i>', {
|
|
class: slideshowClasses.nextButtonIcon
|
|
}));
|
|
$container.append($prevButton, $nextButton);
|
|
}
|
|
|
|
if (showFooter) {
|
|
this.elements.$footer = this.getSlideshowFooter();
|
|
$container.append(this.elements.$footer);
|
|
}
|
|
|
|
this.setSettings('hideUiTimeout', '');
|
|
$container.on('click mousemove keypress', function () {
|
|
clearTimeout(_this2.getSettings('hideUiTimeout'));
|
|
$container.removeClass(slideshowClasses.hideUiVisibility);
|
|
|
|
_this2.setSettings('hideUiTimeout', setTimeout(function () {
|
|
$container.addClass(slideshowClasses.hideUiVisibility);
|
|
}, 3500));
|
|
});
|
|
var modal = this.getModal();
|
|
modal.setMessage($container);
|
|
var onShowMethod = modal.onShow;
|
|
|
|
modal.onShow = function () {
|
|
onShowMethod();
|
|
var swiperOptions = {
|
|
pagination: {
|
|
el: '.' + slideshowClasses.counter,
|
|
type: 'fraction'
|
|
},
|
|
on: {
|
|
slideChangeTransitionEnd: _this2.onSlideChange
|
|
},
|
|
zoom: true,
|
|
spaceBetween: 100,
|
|
grabCursor: true,
|
|
runCallbacksOnInit: false,
|
|
loop: true,
|
|
keyboard: true,
|
|
handleElementorBreakpoints: true
|
|
};
|
|
|
|
if (!isSingleSlide) {
|
|
swiperOptions.navigation = {
|
|
prevEl: $prevButton,
|
|
nextEl: $nextButton
|
|
};
|
|
}
|
|
|
|
if (options.swiper) {
|
|
$.extend(swiperOptions, options.swiper);
|
|
}
|
|
|
|
_this2.swiper = new Swiper($container, swiperOptions); // Expose the swiper instance in the frontend
|
|
|
|
$container.data('swiper', _this2.swiper);
|
|
|
|
_this2.setVideoAspectRatio();
|
|
|
|
_this2.playSlideVideo();
|
|
|
|
if (showFooter) {
|
|
_this2.updateFooterText();
|
|
}
|
|
};
|
|
},
|
|
setVideoAspectRatio: function setVideoAspectRatio(aspectRatio) {
|
|
aspectRatio = aspectRatio || this.getSettings('modalOptions.videoAspectRatio');
|
|
var $widgetContent = this.getModal().getElements('widgetContent'),
|
|
oldAspectRatio = this.oldAspectRatio,
|
|
aspectRatioClass = this.getSettings('classes.aspectRatio');
|
|
this.oldAspectRatio = aspectRatio;
|
|
|
|
if (oldAspectRatio) {
|
|
$widgetContent.removeClass(aspectRatioClass.replace('%s', oldAspectRatio));
|
|
}
|
|
|
|
if (aspectRatio) {
|
|
$widgetContent.addClass(aspectRatioClass.replace('%s', aspectRatio));
|
|
}
|
|
},
|
|
getSlide: function getSlide(slideState) {
|
|
return jQuery(this.swiper.slides).filter(this.getSettings('selectors.slideshow.' + slideState + 'Slide'));
|
|
},
|
|
updateFooterText: function updateFooterText() {
|
|
if (!this.elements.$footer) {
|
|
return;
|
|
}
|
|
|
|
var classes = this.getSettings('classes'),
|
|
$activeSlide = this.getSlide('active'),
|
|
$image = $activeSlide.find('.elementor-lightbox-image'),
|
|
titleText = $image.data('title'),
|
|
descriptionText = $image.data('description'),
|
|
$title = this.elements.$footer.find('.' + classes.slideshow.title),
|
|
$description = this.elements.$footer.find('.' + classes.slideshow.description);
|
|
$title.text(titleText || '');
|
|
$description.text(descriptionText || '');
|
|
},
|
|
playSlideVideo: function playSlideVideo() {
|
|
var _this3 = this;
|
|
|
|
var $activeSlide = this.getSlide('active'),
|
|
videoURL = $activeSlide.data('elementor-slideshow-video');
|
|
|
|
if (!videoURL) {
|
|
return;
|
|
}
|
|
|
|
var classes = this.getSettings('classes'),
|
|
$videoContainer = jQuery('<div>', {
|
|
class: classes.videoContainer + ' ' + classes.invisible
|
|
}),
|
|
$videoWrapper = jQuery('<div>', {
|
|
class: classes.videoWrapper
|
|
}),
|
|
$playIcon = $activeSlide.children('.' + classes.playButton);
|
|
var videoType, apiProvider;
|
|
$videoContainer.append($videoWrapper);
|
|
$activeSlide.append($videoContainer);
|
|
|
|
if (-1 !== videoURL.indexOf('vimeo.com')) {
|
|
videoType = 'vimeo';
|
|
apiProvider = ceFrontend.utils.vimeo;
|
|
} else if (videoURL.match(/^(?:https?:\/\/)?(?:www\.)?(?:m\.)?(?:youtu\.be\/|youtube\.com)/)) {
|
|
videoType = 'youtube';
|
|
apiProvider = ceFrontend.utils.youtube;
|
|
}
|
|
|
|
var videoID = apiProvider.getVideoIDFromURL(videoURL);
|
|
apiProvider.onApiReady(function (apiObject) {
|
|
if ('youtube' === videoType) {
|
|
_this3.prepareYTVideo(apiObject, videoID, $videoContainer, $videoWrapper, $playIcon);
|
|
} else if ('vimeo' === videoType) {
|
|
_this3.prepareVimeoVideo(apiObject, videoID, $videoContainer, $videoWrapper, $playIcon);
|
|
}
|
|
});
|
|
$playIcon.addClass(classes.playing).removeClass(classes.hidden);
|
|
},
|
|
prepareYTVideo: function prepareYTVideo(YT, videoID, $videoContainer, $videoWrapper, $playIcon) {
|
|
var _this4 = this;
|
|
|
|
var classes = this.getSettings('classes'),
|
|
$videoPlaceholderElement = jQuery('<div>');
|
|
var startStateCode = YT.PlayerState.PLAYING;
|
|
$videoWrapper.append($videoPlaceholderElement); // Since version 67, Chrome doesn't fire the `PLAYING` state at start time
|
|
|
|
if (window.chrome) {
|
|
startStateCode = YT.PlayerState.UNSTARTED;
|
|
}
|
|
|
|
$videoContainer.addClass('elementor-loading' + ' ' + classes.invisible);
|
|
this.player = new YT.Player($videoPlaceholderElement[0], {
|
|
videoId: videoID,
|
|
events: {
|
|
onReady: function onReady() {
|
|
$playIcon.addClass(classes.hidden);
|
|
$videoContainer.removeClass(classes.invisible);
|
|
|
|
_this4.player.playVideo();
|
|
},
|
|
onStateChange: function onStateChange(event) {
|
|
if (event.data === startStateCode) {
|
|
$videoContainer.removeClass('elementor-loading' + ' ' + classes.invisible);
|
|
}
|
|
}
|
|
},
|
|
playerVars: {
|
|
controls: 0,
|
|
rel: 0
|
|
}
|
|
});
|
|
},
|
|
prepareVimeoVideo: function prepareVimeoVideo(Vimeo, videoId, $videoContainer, $videoWrapper, $playIcon) {
|
|
var classes = this.getSettings('classes'),
|
|
vimeoOptions = {
|
|
id: videoId,
|
|
autoplay: true,
|
|
transparent: false,
|
|
playsinline: false
|
|
};
|
|
this.player = new Vimeo.Player($videoWrapper, vimeoOptions);
|
|
this.player.ready().then(function () {
|
|
$playIcon.addClass(classes.hidden);
|
|
$videoContainer.removeClass(classes.invisible);
|
|
});
|
|
},
|
|
setEntranceAnimation: function setEntranceAnimation(animation) {
|
|
animation = animation || ceFrontend.getCurrentDeviceSetting(this.getSettings('modalOptions'), 'entranceAnimation');
|
|
var $widgetMessage = this.getModal().getElements('message');
|
|
|
|
if (this.oldAnimation) {
|
|
$widgetMessage.removeClass(this.oldAnimation);
|
|
}
|
|
|
|
this.oldAnimation = animation;
|
|
|
|
if (animation) {
|
|
$widgetMessage.addClass('animated ' + animation);
|
|
}
|
|
},
|
|
isLightboxLink: function isLightboxLink(element) {
|
|
if ('A' === element.tagName && (element.hasAttribute('download') || !/^[^?]+\.(png|jpe?g|gif|svg|webp)(\?.*)?$/i.test(element.href))) {
|
|
return false;
|
|
}
|
|
|
|
var generalOpenInLightbox = ceFrontend.getGeneralSettings('elementor_global_image_lightbox'),
|
|
currentLinkOpenInLightbox = element.dataset.elementorOpenLightbox;
|
|
return 'yes' === currentLinkOpenInLightbox || generalOpenInLightbox && 'no' !== currentLinkOpenInLightbox;
|
|
},
|
|
getLightBoxImageAttribute: function getLightBoxImageAttribute(link, type) {
|
|
var src = ceFrontend.getGeneralSettings('elementor_lightbox_' + type + '_src');
|
|
|
|
switch (src) {
|
|
case 'title':
|
|
case 'alt':
|
|
return $(link).find('img').prop(src) || '';
|
|
case 'caption':
|
|
return $(link).closest('figure').find('figcaption').text() || (
|
|
$(link).closest('[class*="widget-product"]').length ? $(link).find('img').prop('alt') : ''
|
|
);
|
|
}
|
|
return '';
|
|
},
|
|
openSlideshow: function openSlideshow(slideshowID, initialSlideURL) {
|
|
var $allSlideshowLinks = jQuery(this.getSettings('selectors.links')).filter(function (index, element) {
|
|
var $element = jQuery(element);
|
|
return slideshowID === element.dataset.elementorLightboxSlideshow && !$element.parent('.swiper-slide-duplicate').length && !$element.parents('.slick-cloned').length;
|
|
});
|
|
var self = this,
|
|
slides = [],
|
|
initialSlideIndex = 0;
|
|
$allSlideshowLinks.each(function () {
|
|
var slideVideo = this.dataset.elementorLightboxVideo;
|
|
var slideIndex = this.dataset.elementorLightboxIndex;
|
|
|
|
if (undefined === slideIndex) {
|
|
slideIndex = $allSlideshowLinks.index(this);
|
|
}
|
|
|
|
if (initialSlideURL === this.href || slideVideo && initialSlideURL === slideVideo) {
|
|
initialSlideIndex = slideIndex;
|
|
}
|
|
|
|
var slideData = {
|
|
image: this.href,
|
|
index: slideIndex,
|
|
title: self.getLightBoxImageAttribute(this, 'title'),
|
|
description: self.getLightBoxImageAttribute(this, 'description')
|
|
};
|
|
|
|
if (slideVideo) {
|
|
slideData.video = slideVideo;
|
|
}
|
|
|
|
slides.push(slideData);
|
|
});
|
|
slides.sort(function (a, b) {
|
|
return a.index - b.index;
|
|
});
|
|
this.showModal({
|
|
type: 'slideshow',
|
|
id: slideshowID,
|
|
modalOptions: {
|
|
id: 'elementor-lightbox-slideshow-' + slideshowID
|
|
},
|
|
slideshow: {
|
|
slides: slides,
|
|
swiper: {
|
|
initialSlide: +initialSlideIndex
|
|
}
|
|
}
|
|
});
|
|
},
|
|
openLink: function openLink(event) {
|
|
var element = event.currentTarget,
|
|
$target = jQuery(event.target),
|
|
editMode = ceFrontend.isEditMode(),
|
|
isClickInsideElementor = !!$target.closest('.elementor-edit-area').length;
|
|
|
|
if (!this.isLightboxLink(element)) {
|
|
if (editMode && isClickInsideElementor) {
|
|
event.preventDefault();
|
|
}
|
|
|
|
return;
|
|
}
|
|
|
|
event.preventDefault();
|
|
|
|
if (editMode && !elementor.getPreferences('lightbox_in_editor')) {
|
|
return;
|
|
}
|
|
|
|
var lightboxData = {};
|
|
|
|
if (element.dataset.elementorLightbox) {
|
|
lightboxData = JSON.parse(element.dataset.elementorLightbox);
|
|
}
|
|
|
|
if (lightboxData.type && 'slideshow' !== lightboxData.type) {
|
|
this.showModal(lightboxData);
|
|
return;
|
|
}
|
|
|
|
if (!element.dataset.elementorLightboxSlideshow) {
|
|
var slideshowID = 'single-img';
|
|
this.showModal({
|
|
type: 'image',
|
|
id: slideshowID,
|
|
url: element.href,
|
|
title: element.dataset.elementorLightboxTitle,
|
|
description: element.dataset.elementorLightboxDescription,
|
|
modalOptions: {
|
|
id: 'elementor-lightbox-slideshow-' + slideshowID
|
|
}
|
|
});
|
|
return;
|
|
}
|
|
|
|
this.openSlideshow(element.dataset.elementorLightboxSlideshow, element.href);
|
|
},
|
|
bindEvents: function bindEvents() {
|
|
ceFrontend.elements.$document.on('click', this.getSettings('selectors.links'), this.openLink);
|
|
},
|
|
onSlideChange: function onSlideChange() {
|
|
this.getSlide('prev').add(this.getSlide('next')).add(this.getSlide('active')).find('.' + this.getSettings('classes.videoWrapper')).remove();
|
|
this.playSlideVideo();
|
|
this.updateFooterText();
|
|
}
|
|
});
|
|
|
|
/***/ }),
|
|
/* 661 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var _interopRequireDefault = __webpack_require__(0);
|
|
|
|
var _defineProperties = _interopRequireDefault(__webpack_require__(305));
|
|
|
|
var _promise = _interopRequireDefault(__webpack_require__(247));
|
|
|
|
(function () {
|
|
'use strict';
|
|
|
|
var document = typeof window !== 'undefined' && typeof window.document !== 'undefined' ? window.document : {};
|
|
var isCommonjs = true && module.exports;
|
|
|
|
var fn = function () {
|
|
var val;
|
|
var fnMap = [['requestFullscreen', 'exitFullscreen', 'fullscreenElement', 'fullscreenEnabled', 'fullscreenchange', 'fullscreenerror'], // New WebKit
|
|
['webkitRequestFullscreen', 'webkitExitFullscreen', 'webkitFullscreenElement', 'webkitFullscreenEnabled', 'webkitfullscreenchange', 'webkitfullscreenerror'], // Old WebKit
|
|
['webkitRequestFullScreen', 'webkitCancelFullScreen', 'webkitCurrentFullScreenElement', 'webkitCancelFullScreen', 'webkitfullscreenchange', 'webkitfullscreenerror'], ['mozRequestFullScreen', 'mozCancelFullScreen', 'mozFullScreenElement', 'mozFullScreenEnabled', 'mozfullscreenchange', 'mozfullscreenerror'], ['msRequestFullscreen', 'msExitFullscreen', 'msFullscreenElement', 'msFullscreenEnabled', 'MSFullscreenChange', 'MSFullscreenError']];
|
|
var i = 0;
|
|
var l = fnMap.length;
|
|
var ret = {};
|
|
|
|
for (; i < l; i++) {
|
|
val = fnMap[i];
|
|
|
|
if (val && val[1] in document) {
|
|
var valLength = val.length;
|
|
|
|
for (i = 0; i < valLength; i++) {
|
|
ret[fnMap[0][i]] = val[i];
|
|
}
|
|
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
return false;
|
|
}();
|
|
|
|
var eventNameMap = {
|
|
change: fn.fullscreenchange,
|
|
error: fn.fullscreenerror
|
|
};
|
|
var screenfull = {
|
|
request: function request(element) {
|
|
return new _promise.default(function (resolve, reject) {
|
|
var onFullScreenEntered = function () {
|
|
this.off('change', onFullScreenEntered);
|
|
resolve();
|
|
}.bind(this);
|
|
|
|
this.on('change', onFullScreenEntered);
|
|
element = element || document.documentElement;
|
|
|
|
_promise.default.resolve(element[fn.requestFullscreen]()).catch(reject);
|
|
}.bind(this));
|
|
},
|
|
exit: function exit() {
|
|
return new _promise.default(function (resolve, reject) {
|
|
if (!this.isFullscreen) {
|
|
resolve();
|
|
return;
|
|
}
|
|
|
|
var onFullScreenExit = function () {
|
|
this.off('change', onFullScreenExit);
|
|
resolve();
|
|
}.bind(this);
|
|
|
|
this.on('change', onFullScreenExit);
|
|
|
|
_promise.default.resolve(document[fn.exitFullscreen]()).catch(reject);
|
|
}.bind(this));
|
|
},
|
|
toggle: function toggle(element) {
|
|
return this.isFullscreen ? this.exit() : this.request(element);
|
|
},
|
|
onchange: function onchange(callback) {
|
|
this.on('change', callback);
|
|
},
|
|
onerror: function onerror(callback) {
|
|
this.on('error', callback);
|
|
},
|
|
on: function on(event, callback) {
|
|
var eventName = eventNameMap[event];
|
|
|
|
if (eventName) {
|
|
document.addEventListener(eventName, callback, false);
|
|
}
|
|
},
|
|
off: function off(event, callback) {
|
|
var eventName = eventNameMap[event];
|
|
|
|
if (eventName) {
|
|
document.removeEventListener(eventName, callback, false);
|
|
}
|
|
},
|
|
raw: fn
|
|
};
|
|
|
|
if (!fn) {
|
|
if (isCommonjs) {
|
|
module.exports = {
|
|
isEnabled: false
|
|
};
|
|
} else {
|
|
window.screenfull = {
|
|
isEnabled: false
|
|
};
|
|
}
|
|
|
|
return;
|
|
}
|
|
|
|
(0, _defineProperties.default)(screenfull, {
|
|
isFullscreen: {
|
|
get: function get() {
|
|
return Boolean(document[fn.fullscreenElement]);
|
|
}
|
|
},
|
|
element: {
|
|
enumerable: true,
|
|
get: function get() {
|
|
return document[fn.fullscreenElement];
|
|
}
|
|
},
|
|
isEnabled: {
|
|
enumerable: true,
|
|
get: function get() {
|
|
// Coerce to boolean in case of old WebKit
|
|
return Boolean(document[fn.fullscreenEnabled]);
|
|
}
|
|
}
|
|
});
|
|
|
|
if (isCommonjs) {
|
|
module.exports = screenfull;
|
|
} else {
|
|
window.screenfull = screenfull;
|
|
}
|
|
})();
|
|
|
|
/***/ }),
|
|
/* 662 */
|
|
/***/ (function(module, exports) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var CountDownHandler = elementorModules.frontend.handlers.Base.extend({
|
|
cache: null,
|
|
cacheElements: function cacheElements() {
|
|
var $countDown = this.$element.find('.elementor-countdown-wrapper');
|
|
this.cache = {
|
|
$countDown: $countDown,
|
|
timeInterval: null,
|
|
elements: {
|
|
$countdown: $countDown.find('.elementor-countdown-wrapper'),
|
|
$daysSpan: $countDown.find('.elementor-countdown-days'),
|
|
$hoursSpan: $countDown.find('.elementor-countdown-hours'),
|
|
$minutesSpan: $countDown.find('.elementor-countdown-minutes'),
|
|
$secondsSpan: $countDown.find('.elementor-countdown-seconds'),
|
|
$expireMessage: $countDown.parent().find('.elementor-countdown-expire--message')
|
|
},
|
|
data: {
|
|
id: this.$element.data('id'),
|
|
endTime: new Date($countDown.data('date') * 1000),
|
|
actions: $countDown.data('expire-actions'),
|
|
evergreenInterval: $countDown.data('evergreen-interval')
|
|
}
|
|
};
|
|
},
|
|
onInit: function onInit() {
|
|
elementorModules.frontend.handlers.Base.prototype.onInit.apply(this, arguments);
|
|
this.cacheElements();
|
|
|
|
if (0 < this.cache.data.evergreenInterval) {
|
|
this.cache.data.endTime = this.getEvergreenDate();
|
|
}
|
|
|
|
this.initializeClock();
|
|
},
|
|
updateClock: function updateClock() {
|
|
var self = this,
|
|
timeRemaining = this.getTimeRemaining(this.cache.data.endTime);
|
|
jQuery.each(timeRemaining.parts, function (timePart) {
|
|
var $element = self.cache.elements['$' + timePart + 'Span'];
|
|
var partValue = this.toString();
|
|
|
|
if (1 === partValue.length) {
|
|
partValue = 0 + partValue;
|
|
}
|
|
|
|
if ($element.length) {
|
|
$element.text(partValue);
|
|
}
|
|
});
|
|
|
|
if (timeRemaining.total <= 0) {
|
|
clearInterval(this.cache.timeInterval);
|
|
this.runActions();
|
|
}
|
|
},
|
|
initializeClock: function initializeClock() {
|
|
var self = this;
|
|
this.updateClock();
|
|
this.cache.timeInterval = setInterval(function () {
|
|
self.updateClock();
|
|
}, 1000);
|
|
},
|
|
runActions: function runActions() {
|
|
var self = this; // Trigger general event for 3rd patry actions
|
|
|
|
self.$element.trigger('countdown_expire', self.$element);
|
|
|
|
if (!this.cache.data.actions) {
|
|
return;
|
|
}
|
|
|
|
this.cache.data.actions.forEach(function (action) {
|
|
switch (action.type) {
|
|
case 'hide':
|
|
self.cache.$countDown.hide();
|
|
break;
|
|
|
|
case 'redirect':
|
|
if (action.redirect_url) {
|
|
window.location.href = action.redirect_url;
|
|
}
|
|
|
|
break;
|
|
|
|
case 'message':
|
|
self.cache.elements.$expireMessage.show();
|
|
break;
|
|
}
|
|
});
|
|
},
|
|
getTimeRemaining: function getTimeRemaining(endTime) {
|
|
var timeRemaining = endTime - new Date();
|
|
var seconds = Math.floor(timeRemaining / 1000 % 60),
|
|
minutes = Math.floor(timeRemaining / 1000 / 60 % 60),
|
|
hours = Math.floor(timeRemaining / (1000 * 60 * 60) % 24),
|
|
days = Math.floor(timeRemaining / (1000 * 60 * 60 * 24));
|
|
|
|
if (days < 0 || hours < 0 || minutes < 0) {
|
|
seconds = minutes = hours = days = 0;
|
|
}
|
|
|
|
return {
|
|
total: timeRemaining,
|
|
parts: {
|
|
days: days,
|
|
hours: hours,
|
|
minutes: minutes,
|
|
seconds: seconds
|
|
}
|
|
};
|
|
},
|
|
getEvergreenDate: function getEvergreenDate() {
|
|
var self = this,
|
|
id = this.cache.data.id,
|
|
interval = this.cache.data.evergreenInterval,
|
|
dueDateKey = id + '-evergreen_due_date',
|
|
intervalKey = id + '-evergreen_interval',
|
|
localData = {
|
|
dueDate: localStorage.getItem(dueDateKey),
|
|
interval: localStorage.getItem(intervalKey)
|
|
},
|
|
initEvergreen = function initEvergreen() {
|
|
var evergreenDueDate = new Date();
|
|
self.cache.data.endTime = evergreenDueDate.setSeconds(evergreenDueDate.getSeconds() + interval);
|
|
localStorage.setItem(dueDateKey, self.cache.data.endTime);
|
|
localStorage.setItem(intervalKey, interval);
|
|
return self.cache.data.endTime;
|
|
};
|
|
|
|
if (null === localData.dueDate && null === localData.interval) {
|
|
return initEvergreen();
|
|
}
|
|
|
|
if (null !== localData.dueDate && interval !== parseInt(localData.interval, 10)) {
|
|
return initEvergreen();
|
|
}
|
|
|
|
if (localData.dueDate > 0 && parseInt(localData.interval, 10) === interval) {
|
|
return localData.dueDate;
|
|
}
|
|
}
|
|
});
|
|
|
|
module.exports = function ($scope) {
|
|
new CountDownHandler({$element: $scope});
|
|
};
|
|
|
|
/***/ }),
|
|
/* 663 */
|
|
/***/ (function(module, exports) {
|
|
|
|
"use strict";
|
|
|
|
var AnimatedHeadlineHandler = elementorModules.frontend.handlers.Base.extend({
|
|
svgPaths: {
|
|
circle: ['M325,18C228.7-8.3,118.5,8.3,78,21C22.4,38.4,4.6,54.6,5.6,77.6c1.4,32.4,52.2,54,142.6,63.7 c66.2,7.1,212.2,7.5,273.5-8.3c64.4-16.6,104.3-57.6,33.8-98.2C386.7-4.9,179.4-1.4,126.3,20.7'],
|
|
underline_zigzag: ['M9.3,127.3c49.3-3,150.7-7.6,199.7-7.4c121.9,0.4,189.9,0.4,282.3,7.2C380.1,129.6,181.2,130.6,70,139 c82.6-2.9,254.2-1,335.9,1.3c-56,1.4-137.2-0.3-197.1,9'],
|
|
x: ['M497.4,23.9C301.6,40,155.9,80.6,4,144.4', 'M14.1,27.6c204.5,20.3,393.8,74,467.3,111.7'],
|
|
strikethrough: ['M3,75h493.5'],
|
|
curly: ['M3,146.1c17.1-8.8,33.5-17.8,51.4-17.8c15.6,0,17.1,18.1,30.2,18.1c22.9,0,36-18.6,53.9-18.6 c17.1,0,21.3,18.5,37.5,18.5c21.3,0,31.8-18.6,49-18.6c22.1,0,18.8,18.8,36.8,18.8c18.8,0,37.5-18.6,49-18.6c20.4,0,17.1,19,36.8,19 c22.9,0,36.8-20.6,54.7-18.6c17.7,1.4,7.1,19.5,33.5,18.8c17.1,0,47.2-6.5,61.1-15.6'],
|
|
diagonal: ['M13.5,15.5c131,13.7,289.3,55.5,475,125.5'],
|
|
double: ['M8.4,143.1c14.2-8,97.6-8.8,200.6-9.2c122.3-0.4,287.5,7.2,287.5,7.2', 'M8,19.4c72.3-5.3,162-7.8,216-7.8c54,0,136.2,0,267,7.8'],
|
|
double_underline: ['M5,125.4c30.5-3.8,137.9-7.6,177.3-7.6c117.2,0,252.2,4.7,312.7,7.6', 'M26.9,143.8c55.1-6.1,126-6.3,162.2-6.1c46.5,0.2,203.9,3.2,268.9,6.4'],
|
|
underline: ['M7.7,145.6C109,125,299.9,116.2,401,121.3c42.1,2.2,87.6,11.8,87.3,25.7']
|
|
},
|
|
getDefaultSettings: function getDefaultSettings() {
|
|
var settings = {
|
|
animationDelay: 2500,
|
|
//letters effect
|
|
lettersDelay: 50,
|
|
//typing effect
|
|
typeLettersDelay: 150,
|
|
selectionDuration: 500,
|
|
//clip effect
|
|
revealDuration: 600,
|
|
revealAnimationDelay: 1500
|
|
};
|
|
settings.typeAnimationDelay = settings.selectionDuration + 800;
|
|
settings.selectors = {
|
|
headline: '.elementor-headline',
|
|
dynamicWrapper: '.elementor-headline-dynamic-wrapper'
|
|
};
|
|
settings.classes = {
|
|
dynamicText: 'elementor-headline-dynamic-text',
|
|
dynamicLetter: 'elementor-headline-dynamic-letter',
|
|
textActive: 'elementor-headline-text-active',
|
|
textInactive: 'elementor-headline-text-inactive',
|
|
letters: 'elementor-headline-letters',
|
|
animationIn: 'elementor-headline-animation-in',
|
|
typeSelected: 'elementor-headline-typing-selected'
|
|
};
|
|
return settings;
|
|
},
|
|
getDefaultElements: function getDefaultElements() {
|
|
var selectors = this.getSettings('selectors');
|
|
return {
|
|
$headline: this.$element.find(selectors.headline),
|
|
$dynamicWrapper: this.$element.find(selectors.dynamicWrapper)
|
|
};
|
|
},
|
|
getNextWord: function getNextWord($word) {
|
|
return $word.is(':last-child') ? $word.parent().children().eq(0) : $word.next();
|
|
},
|
|
switchWord: function switchWord($oldWord, $newWord) {
|
|
$oldWord.removeClass('elementor-headline-text-active').addClass('elementor-headline-text-inactive');
|
|
$newWord.removeClass('elementor-headline-text-inactive').addClass('elementor-headline-text-active');
|
|
this.setDynamicWrapperWidth($newWord);
|
|
},
|
|
singleLetters: function singleLetters() {
|
|
var classes = this.getSettings('classes');
|
|
this.elements.$dynamicText.each(function () {
|
|
var $word = jQuery(this),
|
|
letters = $word.text().split(''),
|
|
isActive = $word.hasClass(classes.textActive);
|
|
$word.empty();
|
|
letters.forEach(function (letter) {
|
|
var $letter = jQuery('<span>', {
|
|
class: classes.dynamicLetter
|
|
}).text(letter);
|
|
|
|
if (isActive) {
|
|
$letter.addClass(classes.animationIn);
|
|
}
|
|
|
|
$word.append($letter);
|
|
});
|
|
$word.css('opacity', 1);
|
|
});
|
|
},
|
|
showLetter: function showLetter($letter, $word, bool, duration) {
|
|
var self = this,
|
|
classes = this.getSettings('classes');
|
|
$letter.addClass(classes.animationIn);
|
|
|
|
if (!$letter.is(':last-child')) {
|
|
setTimeout(function () {
|
|
self.showLetter($letter.next(), $word, bool, duration);
|
|
}, duration);
|
|
} else if (!bool) {
|
|
setTimeout(function () {
|
|
self.hideWord($word);
|
|
}, self.getSettings('animationDelay'));
|
|
}
|
|
},
|
|
hideLetter: function hideLetter($letter, $word, bool, duration) {
|
|
var self = this,
|
|
settings = this.getSettings();
|
|
$letter.removeClass(settings.classes.animationIn);
|
|
|
|
if (!$letter.is(':last-child')) {
|
|
setTimeout(function () {
|
|
self.hideLetter($letter.next(), $word, bool, duration);
|
|
}, duration);
|
|
} else if (bool) {
|
|
setTimeout(function () {
|
|
self.hideWord(self.getNextWord($word));
|
|
}, self.getSettings('animationDelay'));
|
|
}
|
|
},
|
|
showWord: function showWord($word, $duration) {
|
|
var self = this,
|
|
settings = self.getSettings(),
|
|
animationType = self.getElementSettings('animation_type');
|
|
|
|
if ('typing' === animationType) {
|
|
self.showLetter($word.find('.' + settings.classes.dynamicLetter).eq(0), $word, false, $duration);
|
|
$word.addClass(settings.classes.textActive).removeClass(settings.classes.textInactive);
|
|
} else if ('clip' === animationType) {
|
|
self.elements.$dynamicWrapper.animate({
|
|
width: $word.width() + 10
|
|
}, settings.revealDuration, function () {
|
|
setTimeout(function () {
|
|
self.hideWord($word);
|
|
}, settings.revealAnimationDelay);
|
|
});
|
|
}
|
|
},
|
|
hideWord: function hideWord($word) {
|
|
var self = this,
|
|
settings = self.getSettings(),
|
|
classes = settings.classes,
|
|
letterSelector = '.' + classes.dynamicLetter,
|
|
animationType = self.getElementSettings('animation_type'),
|
|
nextWord = self.getNextWord($word);
|
|
|
|
if ('typing' === animationType) {
|
|
self.elements.$dynamicWrapper.addClass(classes.typeSelected);
|
|
setTimeout(function () {
|
|
self.elements.$dynamicWrapper.removeClass(classes.typeSelected);
|
|
$word.addClass(settings.classes.textInactive).removeClass(classes.textActive).children(letterSelector).removeClass(classes.animationIn);
|
|
}, settings.selectionDuration);
|
|
setTimeout(function () {
|
|
self.showWord(nextWord, settings.typeLettersDelay);
|
|
}, settings.typeAnimationDelay);
|
|
} else if (self.elements.$headline.hasClass(classes.letters)) {
|
|
var bool = $word.children(letterSelector).length >= nextWord.children(letterSelector).length;
|
|
self.hideLetter($word.find(letterSelector).eq(0), $word, bool, settings.lettersDelay);
|
|
self.showLetter(nextWord.find(letterSelector).eq(0), nextWord, bool, settings.lettersDelay);
|
|
self.setDynamicWrapperWidth(nextWord);
|
|
} else if ('clip' === animationType) {
|
|
self.elements.$dynamicWrapper.animate({
|
|
width: '2px'
|
|
}, settings.revealDuration, function () {
|
|
self.switchWord($word, nextWord);
|
|
self.showWord(nextWord);
|
|
});
|
|
} else {
|
|
self.switchWord($word, nextWord);
|
|
setTimeout(function () {
|
|
self.hideWord(nextWord);
|
|
}, settings.animationDelay);
|
|
}
|
|
},
|
|
setDynamicWrapperWidth: function setDynamicWrapperWidth($newWord) {
|
|
var animationType = this.getElementSettings('animation_type');
|
|
|
|
if ('clip' !== animationType && 'typing' !== animationType) {
|
|
this.elements.$dynamicWrapper.css('width', $newWord.width());
|
|
}
|
|
},
|
|
animateHeadline: function animateHeadline() {
|
|
var self = this,
|
|
animationType = self.getElementSettings('animation_type'),
|
|
$dynamicWrapper = self.elements.$dynamicWrapper;
|
|
|
|
if ('clip' === animationType) {
|
|
$dynamicWrapper.width($dynamicWrapper.width() + 10);
|
|
} else if ('typing' !== animationType) {
|
|
//assign to .elementor-headline-dynamic-wrapper the width of its longest word
|
|
var width = 0;
|
|
self.elements.$dynamicText.each(function () {
|
|
var wordWidth = jQuery(this).width();
|
|
|
|
if (wordWidth > width) {
|
|
width = wordWidth;
|
|
}
|
|
});
|
|
$dynamicWrapper.css('width', width);
|
|
} //trigger animation
|
|
|
|
|
|
setTimeout(function () {
|
|
self.hideWord(self.elements.$dynamicText.eq(0));
|
|
}, self.getSettings('animationDelay'));
|
|
},
|
|
getSvgPaths: function getSvgPaths(pathName) {
|
|
var pathsInfo = this.svgPaths[pathName],
|
|
$paths = jQuery();
|
|
pathsInfo.forEach(function (pathInfo) {
|
|
$paths = $paths.add(jQuery('<path>', {
|
|
d: pathInfo
|
|
}));
|
|
});
|
|
return $paths;
|
|
},
|
|
fillWords: function fillWords() {
|
|
var elementSettings = this.getElementSettings(),
|
|
classes = this.getSettings('classes'),
|
|
$dynamicWrapper = this.elements.$dynamicWrapper;
|
|
|
|
if ('rotate' === elementSettings.headline_style) {
|
|
var rotatingText = (elementSettings.rotating_text || '').split('\n');
|
|
rotatingText.forEach(function (word, index) {
|
|
var $dynamicText = jQuery('<span>', {
|
|
class: classes.dynamicText
|
|
}).html(word.replace(/ /g, ' '));
|
|
|
|
if (!index) {
|
|
$dynamicText.addClass(classes.textActive);
|
|
}
|
|
|
|
$dynamicWrapper.append($dynamicText);
|
|
});
|
|
} else {
|
|
var $dynamicText = jQuery('<span>', {
|
|
class: classes.dynamicText + ' ' + classes.textActive
|
|
}).text(elementSettings.highlighted_text),
|
|
$svg = jQuery('<svg>', {
|
|
xmlns: 'http://www.w3.org/2000/svg',
|
|
viewBox: '0 0 500 150',
|
|
preserveAspectRatio: 'none'
|
|
}).html(this.getSvgPaths(elementSettings.marker));
|
|
$dynamicWrapper.append($dynamicText, $svg[0].outerHTML);
|
|
}
|
|
|
|
this.elements.$dynamicText = $dynamicWrapper.children('.' + classes.dynamicText);
|
|
},
|
|
rotateHeadline: function rotateHeadline() {
|
|
var settings = this.getSettings(); //insert <span> for each letter of a changing word
|
|
|
|
if (this.elements.$headline.hasClass(settings.classes.letters)) {
|
|
this.singleLetters();
|
|
} //initialise headline animation
|
|
|
|
|
|
this.animateHeadline();
|
|
},
|
|
initHeadline: function initHeadline() {
|
|
if ('rotate' === this.getElementSettings('headline_style')) {
|
|
this.rotateHeadline();
|
|
}
|
|
},
|
|
onInit: function onInit() {
|
|
elementorModules.frontend.handlers.Base.prototype.onInit.apply(this, arguments);
|
|
this.fillWords();
|
|
this.initHeadline();
|
|
}
|
|
});
|
|
|
|
module.exports = function ($scope) {
|
|
new AnimatedHeadlineHandler({$element: $scope});
|
|
};
|
|
|
|
/***/ }),
|
|
/* 664 */
|
|
/***/ (function(module, exports) {
|
|
|
|
"use strict";
|
|
|
|
|
|
if (jQuery.fn.smartmenus) {
|
|
// Override the default detection
|
|
jQuery.SmartMenus.prototype.isCSSOn = function () {
|
|
return true;
|
|
};
|
|
}
|
|
|
|
var MenuHandler = elementorModules.frontend.handlers.Base.extend({
|
|
stretchElement: null,
|
|
getDefaultSettings: function getDefaultSettings() {
|
|
return {
|
|
selectors: {
|
|
menu: '.elementor-nav',
|
|
anchorLink: '.elementor-nav--main .elementor-item-anchor',
|
|
mainMenu: '.elementor-nav__container.elementor-nav--main',
|
|
dropdownMenu: '.elementor-nav__container.elementor-nav--dropdown',
|
|
menuToggle: '.elementor-menu-toggle'
|
|
}
|
|
};
|
|
},
|
|
getDefaultElements: function getDefaultElements() {
|
|
var selectors = this.getSettings('selectors'),
|
|
elements = {};
|
|
elements.$menu = this.$element.find(selectors.menu);
|
|
elements.$anchorLink = this.$element.find(selectors.anchorLink);
|
|
elements.$mainMenu = this.$element.find(selectors.mainMenu);
|
|
elements.$dropdownMenu = this.$element.find(selectors.dropdownMenu);
|
|
elements.$dropdownMenuFinalItems = elements.$dropdownMenu.find('.menu-item:not(.menu-item-has-children) > a');
|
|
elements.$menuToggle = this.$element.find(selectors.menuToggle);
|
|
return elements;
|
|
},
|
|
bindEvents: function bindEvents() {
|
|
if (!this.elements.$menu.length) {
|
|
return;
|
|
}
|
|
|
|
this.elements.$menuToggle.on('click', this.toggleMenu.bind(this));
|
|
|
|
if (this.getElementSettings('full_width')) {
|
|
this.elements.$dropdownMenuFinalItems.on('click', this.toggleMenu.bind(this, false));
|
|
}
|
|
|
|
ceFrontend.addListenerOnce(this.$element.data('model-cid'), 'resize', this.stretchMenu);
|
|
},
|
|
initStretchElement: function initStretchElement() {
|
|
this.stretchElement = new elementorModules.frontend.tools.StretchElement({
|
|
element: this.elements.$dropdownMenu
|
|
});
|
|
},
|
|
toggleMenu: function toggleMenu(show) {
|
|
var isDropdownVisible = this.elements.$menuToggle.hasClass('elementor-active');
|
|
|
|
if ('boolean' !== typeof show) {
|
|
show = !isDropdownVisible;
|
|
}
|
|
|
|
this.elements.$menuToggle.attr('aria-expanded', show);
|
|
this.elements.$dropdownMenu.attr('aria-hidden', !show);
|
|
this.elements.$menuToggle.toggleClass('elementor-active', show);
|
|
|
|
if (show && this.getElementSettings('full_width')) {
|
|
this.stretchElement.stretch();
|
|
}
|
|
},
|
|
followMenuAnchors: function followMenuAnchors() {
|
|
var self = this;
|
|
self.elements.$anchorLink.each(function () {
|
|
if (location.pathname === this.pathname && '' !== this.hash) {
|
|
self.followMenuAnchor(jQuery(this));
|
|
}
|
|
});
|
|
},
|
|
followMenuAnchor: function followMenuAnchor($element) {
|
|
var anchorSelector = $element[0].hash;
|
|
var offset = -300,
|
|
$anchor;
|
|
|
|
try {
|
|
// `decodeURIComponent` for UTF8 characters in the hash.
|
|
$anchor = jQuery(decodeURIComponent(anchorSelector));
|
|
} catch (e) {
|
|
return;
|
|
}
|
|
|
|
if (!$anchor.length) {
|
|
return;
|
|
}
|
|
|
|
if (!$anchor.hasClass('elementor-menu-anchor')) {
|
|
var halfViewport = jQuery(window).height() / 2;
|
|
offset = -$anchor.outerHeight() + halfViewport;
|
|
}
|
|
|
|
ceFrontend.waypoint($anchor, function (direction) {
|
|
if ('down' === direction) {
|
|
$element.addClass('elementor-item-active');
|
|
} else {
|
|
$element.removeClass('elementor-item-active');
|
|
}
|
|
}, {
|
|
offset: '50%',
|
|
triggerOnce: false
|
|
});
|
|
ceFrontend.waypoint($anchor, function (direction) {
|
|
if ('down' === direction) {
|
|
$element.removeClass('elementor-item-active');
|
|
} else {
|
|
$element.addClass('elementor-item-active');
|
|
}
|
|
}, {
|
|
offset: offset,
|
|
triggerOnce: false
|
|
});
|
|
},
|
|
stretchMenu: function stretchMenu() {
|
|
if (this.getElementSettings('full_width')) {
|
|
this.stretchElement.stretch();
|
|
this.elements.$dropdownMenu.css('top', this.elements.$menuToggle.outerHeight());
|
|
} else {
|
|
this.stretchElement.reset();
|
|
}
|
|
},
|
|
onInit: function onInit() {
|
|
elementorModules.frontend.handlers.Base.prototype.onInit.apply(this, arguments);
|
|
|
|
if (!this.elements.$menu.length) {
|
|
return;
|
|
}
|
|
var align = this.getElementSettings('align_submenu'),
|
|
noMouseOver = 'click' === this.getElementSettings('show_submenu_on');
|
|
|
|
this.elements.$menu.smartmenus({
|
|
subIndicators: false,
|
|
subMenusMaxWidth: '1000px',
|
|
noMouseOver: noMouseOver,
|
|
rightToLeftSubMenus: align ? 'right' === align : ceFrontend.config.is_rtl
|
|
});
|
|
|
|
if (noMouseOver) {
|
|
this.elements.$mainMenu.filter('.elementor-langs, .elementor-currencies, .elementor-sign-in').children()
|
|
.on('click', 'a.elementor-item.has-submenu.highlighted', function (event) {
|
|
// Close submenu on 2nd click
|
|
this.elements.$menu.smartmenus('menuHide', jQuery(event.currentTarget).next());
|
|
event.currentTarget.blur();
|
|
event.preventDefault();
|
|
}.bind(this))
|
|
;
|
|
}
|
|
|
|
if ('accordion' === this.getElementSettings('animation_dropdown')) {
|
|
// Trick for accordion mobile menu
|
|
var $accordion = this.elements.$dropdownMenu.children().on('click.ce', 'a.has-submenu', function () {
|
|
var $ul = jQuery(this.parentNode).siblings().children('a.highlighted').next();
|
|
|
|
$ul.length && $accordion.smartmenus('menuHide', $ul);
|
|
});
|
|
}
|
|
|
|
this.initStretchElement();
|
|
this.stretchMenu();
|
|
|
|
if (!ceFrontend.isEditMode()) {
|
|
this.followMenuAnchors();
|
|
}
|
|
},
|
|
onElementChange: function onElementChange(propertyName) {
|
|
if ('full_width' === propertyName) {
|
|
this.stretchMenu();
|
|
}
|
|
}
|
|
});
|
|
|
|
module.exports = function ($scope) {
|
|
new MenuHandler({$element: $scope});
|
|
};
|
|
|
|
/***/ }),
|
|
/* 665 */
|
|
/***/ (function(module, exports) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var AjaxSearchHandler = elementorModules.frontend.handlers.Base.extend({
|
|
getDefaultSettings: function getDefaultSettings() {
|
|
return {
|
|
selectors: {
|
|
wrapper: '.elementor-search',
|
|
container: '.elementor-search__container',
|
|
icon: '.elementor-search__icon',
|
|
input: '.elementor-search__input',
|
|
clear: '.elementor-search__clear',
|
|
toggle: '.elementor-search__toggle',
|
|
submit: '.elementor-search__submit',
|
|
closeButton: '.dialog-close-button'
|
|
},
|
|
classes: {
|
|
isFocus: 'elementor-search--focus',
|
|
isTopbar: 'elementor-search--topbar',
|
|
lightbox: 'elementor-lightbox'
|
|
}
|
|
};
|
|
},
|
|
getDefaultElements: function getDefaultElements() {
|
|
var selectors = this.getSettings('selectors'),
|
|
elements = {};
|
|
|
|
elements.$wrapper = this.$element.find(selectors.wrapper);
|
|
elements.$container = this.$element.find(selectors.container);
|
|
elements.$input = this.$element.find(selectors.input);
|
|
elements.$clear = this.$element.find(selectors.clear);
|
|
elements.$icon = this.$element.find(selectors.icon);
|
|
elements.$toggle = this.$element.find(selectors.toggle);
|
|
elements.$submit = this.$element.find(selectors.submit);
|
|
elements.$closeButton = this.$element.find(selectors.closeButton);
|
|
|
|
return elements;
|
|
},
|
|
bindEvents: function bindEvents() {
|
|
var self = this,
|
|
$container = self.elements.$container,
|
|
$closeButton = self.elements.$closeButton,
|
|
$input = self.elements.$input,
|
|
$clear = self.elements.$clear,
|
|
$wrapper = self.elements.$wrapper,
|
|
$icon = self.elements.$icon,
|
|
skin = this.getElementSettings('skin'),
|
|
classes = this.getSettings('classes');
|
|
|
|
$input.one('focus', $.proxy(this, 'loadAutocomplete'));
|
|
|
|
$clear.on('click', function () {
|
|
$input.val('').triggerHandler('keydown');
|
|
$clear.css({
|
|
visibility: '',
|
|
pointerEvents: '',
|
|
});
|
|
});
|
|
|
|
$input.on('input', function () {
|
|
var empty = !$input.val();
|
|
|
|
$clear.css({
|
|
visibility: empty ? '' : 'visible',
|
|
pointerEvents: empty ? '' : 'all',
|
|
});
|
|
});
|
|
|
|
if ('topbar' === skin) {
|
|
// Activate topbar mode on click
|
|
self.elements.$toggle.on('click', function () {
|
|
$container.toggleClass(classes.isTopbar).toggleClass(classes.lightbox);
|
|
$input.focus();
|
|
});
|
|
|
|
$closeButton.on('click', function () {
|
|
$container.removeClass(classes.isTopbar).removeClass(classes.lightbox);
|
|
});
|
|
// Deactivate topbar mode on click or on esc.
|
|
ceFrontend.elements.$document.keyup(function (event) {
|
|
var ESC_KEY = 27;
|
|
|
|
if (ESC_KEY === event.keyCode) {
|
|
if ($container.hasClass(classes.isTopbar)) {
|
|
$container.click();
|
|
}
|
|
}
|
|
}).on('click', function (event) {
|
|
if ($container.hasClass(classes.isTopbar) && !$(event.target).closest($wrapper).length) {
|
|
$container.removeClass(classes.isTopbar).removeClass(classes.lightbox);
|
|
}
|
|
});
|
|
} else {
|
|
// Apply focus style on wrapper element when input is focused
|
|
$input.on({
|
|
focus: function focus() {
|
|
$wrapper.addClass(classes.isFocus);
|
|
},
|
|
blur: function blur() {
|
|
$wrapper.removeClass(classes.isFocus);
|
|
}
|
|
});
|
|
}
|
|
|
|
if ('minimal' === skin) {
|
|
// Apply focus style on wrapper element when icon is clicked in minimal skin
|
|
$icon.on('click', function () {
|
|
$wrapper.addClass(classes.isFocus);
|
|
$input.focus();
|
|
});
|
|
}
|
|
},
|
|
loadAutocomplete: function loadAutocomplete() {
|
|
var baseDir = window.baseDir || prestashop.urls.base_url,
|
|
include = $.ui ? ($.ui.autocomplete ? '' : 'jquery.ui.autocomplete') : 'jquery-ui';
|
|
|
|
if (include) {
|
|
$('<link rel="stylesheet">').attr({
|
|
href: baseDir + 'js/jquery/ui/themes/base/minified/' + include + '.min.css'
|
|
}).appendTo(document.head);
|
|
|
|
if ('jquery-ui' === include) {
|
|
$('<link rel="stylesheet">').attr({
|
|
href: baseDir + 'js/jquery/ui/themes/base/minified/jquery.ui.theme.min.css'
|
|
}).appendTo(document.head);
|
|
}
|
|
$.ajax({
|
|
url: baseDir + 'js/jquery/ui/' + include + '.min.js',
|
|
cache: true,
|
|
dataType: 'script',
|
|
success: $.proxy(this, 'initAutocomplete')
|
|
});
|
|
} else {
|
|
this.initAutocomplete();
|
|
}
|
|
},
|
|
initAutocomplete: function initAutocomplete() {
|
|
$.fn.ceAjaxSearch || $.widget('ww.ceAjaxSearch', $.ui.autocomplete, {
|
|
_create: function () {
|
|
this._super();
|
|
this.menu.element.addClass('elementor-search__products');
|
|
this.element.on('focus' + this.eventNamespace, $.proxy(this, '_openOnFocus'))
|
|
$(document).on('click' + this.eventNamespace, $.proxy(this, '_closeOnDocumentClick'));
|
|
|
|
// Don't close on blur
|
|
this._off(this.element, 'blur');
|
|
// Trick for disable auto-scrolling on hover
|
|
this.menu.element.outerHeight = function() {
|
|
if (window.event && 'mouseover' === event.type) {
|
|
return Infinity;
|
|
}
|
|
return $.fn.outerHeight.apply(this, arguments);
|
|
};
|
|
},
|
|
_openOnFocus: function (event) {
|
|
this.menu.element.show();
|
|
this._resizeMenu();
|
|
this.menu.element.position(
|
|
$.extend({of: this.element}, this.options.position)
|
|
);
|
|
},
|
|
_closeOnDocumentClick: function (event) {
|
|
$(event.target).closest(this.options.appendTo).length || this._close();
|
|
},
|
|
search: function (value, event) {
|
|
value = value != null ? value : this._value();
|
|
this._super(value, event);
|
|
|
|
if (value.length < this.options.minLength) {
|
|
// Clear previous results
|
|
this.menu.element.empty();
|
|
}
|
|
},
|
|
_renderItem: function (ul, prod) {
|
|
var es = this.options.elementSettings,
|
|
cover = prod.cover && prod.cover.small.url || prestashop.urls.img_prod_url + prestashop.language.iso_code + '-default-small_default.jpg';
|
|
|
|
return $('<li class="elementor-search__product">').html(
|
|
'<a class="elementor-search__product-link" href="' + encodeURI(prod.url) + '">' +
|
|
(es.show_image ? '<img class="elementor-search__product-image" src="' + encodeURI(cover) + '" alt="' + prod.name.replace(/"/g, '"') + '">' : '') +
|
|
'<div class="elementor-search__product-details">' +
|
|
'<div class="elementor-search__product-name">' + prod.name + '</div>' +
|
|
(es.show_category ? '<div class="elementor-search__product-category">' + prod.category_name + '</div>' : '') +
|
|
(es.show_description ? '<div class="elementor-search__product-description">' + (prod.description_short || '').replace(/<\/?\w+.*?>/g, '') + '</div>' : '') +
|
|
(es.show_price ? '<div class="elementor-search__product-price">' + (prod.has_discount ? '<del>' + prod.regular_price + '</del> ' : '') + prod.price + '</div>' : '') +
|
|
'</div>' +
|
|
'</a>'
|
|
).appendTo(ul);
|
|
},
|
|
_resizeMenu: function () {
|
|
this._super();
|
|
this.options.position.my = 'left top+' + this.menu.element.css('margin-top');
|
|
|
|
setTimeout(function () {
|
|
this.menu.element.css({
|
|
maxHeight: 'calc(100vh - ' + (this.menu.element.offset().top - $(window).scrollTop()) + 'px)',
|
|
overflowY: 'auto',
|
|
WebkitOverflowScrolling: 'touch',
|
|
});
|
|
}.bind(this), 1);
|
|
},
|
|
});
|
|
var action = this.elements.$wrapper.prop('action'),
|
|
searchName = this.elements.$input.prop('name');
|
|
|
|
this.elements.$input.ceAjaxSearch({
|
|
appendTo: 'topbar' === this.getElementSettings('skin')
|
|
? this.elements.$container
|
|
: this.elements.$wrapper,
|
|
minLength: 3,
|
|
elementSettings: this.getElementSettings(),
|
|
|
|
source: function (query, response) {
|
|
var data = {
|
|
ajax: true,
|
|
resultsPerPage: this.options.elementSettings.list_limit || 10,
|
|
};
|
|
data[searchName] = query.term;
|
|
|
|
$.post(action, data, null, 'json')
|
|
.then(function (resp) {
|
|
response(resp.products);
|
|
})
|
|
.fail(response)
|
|
;
|
|
},
|
|
|
|
select: function (event, ui) {
|
|
if (location.href !== ui.item.url && !ceFrontend.isEditMode()) {
|
|
location.href = ui.item.url;
|
|
};
|
|
},
|
|
});
|
|
}
|
|
});
|
|
|
|
module.exports = function ($scope) {
|
|
new AjaxSearchHandler({$element: $scope});
|
|
};
|
|
|
|
/***/ }),
|
|
/* 666 */
|
|
/***/ (function(module, exports) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var AjaxFormHandler = (function(c){return(c.constructor.prototype=c).constructor})({
|
|
constructor: function AjaxFormHandler( $element ) {
|
|
this.$element = $element;
|
|
|
|
this.settings = {
|
|
selectors: {
|
|
form: 'form',
|
|
submitButton: '[type="submit"]'
|
|
}
|
|
};
|
|
|
|
this.elements = {};
|
|
this.elements.$form = this.$element.find( this.settings.selectors.form );
|
|
this.elements.$submitButton = this.elements.$form.find( this.settings.selectors.submitButton );
|
|
|
|
this.bindEvents();
|
|
},
|
|
bindEvents: function() {
|
|
this.elements.$form.on( 'submit', $.proxy( this, 'handleSubmit' ) );
|
|
},
|
|
beforeSend: function() {
|
|
var $form = this.elements.$form;
|
|
|
|
$form
|
|
.animate( { opacity: '0.45' }, 500 )
|
|
.addClass( 'elementor-form-waiting' )
|
|
;
|
|
$form.find( '.elementor-message' ).remove();
|
|
$form.find( '.elementor-error' ).removeClass( 'elementor-error' );
|
|
|
|
$form
|
|
.find( 'div.elementor-field-group' )
|
|
.removeClass( 'error' )
|
|
.find( 'span.elementor-form-help-inline' )
|
|
.remove()
|
|
.end()
|
|
.find( ':input' ).attr( 'aria-invalid', 'false' )
|
|
;
|
|
this.elements.$submitButton
|
|
.attr( 'disabled', 'disabled' )
|
|
.find( '> span' )
|
|
.prepend( '<span class="elementor-button-text elementor-form-spinner"><i class="ceicon-loading ceicon-animation-spin"></i> </span>' )
|
|
;
|
|
},
|
|
getFormData: function() {
|
|
var formData = new FormData( this.elements.$form[0] );
|
|
formData.append(
|
|
this.elements.$submitButton[0].name,
|
|
this.elements.$submitButton[0].value
|
|
);
|
|
return formData;
|
|
},
|
|
onSuccess: function( response, status ) {
|
|
var $form = this.elements.$form,
|
|
insertMethod = $form.data( 'msg' ) === 'before' ? 'prepend' : 'append';
|
|
|
|
this.elements.$submitButton
|
|
.removeAttr( 'disabled' )
|
|
.find( '.elementor-form-spinner' )
|
|
.remove()
|
|
;
|
|
$form
|
|
.animate( { opacity: '1' }, 100 )
|
|
.removeClass( 'elementor-form-waiting' )
|
|
;
|
|
|
|
if ( response.success ) {
|
|
var message = $form.data( 'success' ) || response.success;
|
|
|
|
$form.trigger( 'submit_success', response );
|
|
$form.trigger( 'form_destruct', response );
|
|
$form.trigger( 'reset' );
|
|
|
|
$form[insertMethod]( '<div class="elementor-message elementor-message-success" role="alert">' + message + '</div>' );
|
|
} else {
|
|
var message = $form.data( 'error' ) || response.errors && response.errors.join( '<br>' ) || 'Unknown error';
|
|
|
|
$form[insertMethod]( '<div class="elementor-message elementor-message-danger" role="alert">' + message + '</div>' );
|
|
}
|
|
},
|
|
onError: function( xhr, desc ) {
|
|
var $form = this.elements.$form;
|
|
|
|
$form.append( '<div class="elementor-message elementor-message-danger" role="alert">' + desc + '</div>' );
|
|
|
|
this.elements.$submitButton
|
|
.html( this.elements.$submitButton.text() )
|
|
.removeAttr( 'disabled' )
|
|
;
|
|
$form
|
|
.animate( {
|
|
opacity: '1'
|
|
}, 100 )
|
|
.removeClass( 'elementor-form-waiting' )
|
|
;
|
|
$form.trigger( 'error' );
|
|
},
|
|
handleSubmit: function( event ) {
|
|
var $form = this.elements.$form;
|
|
|
|
event.preventDefault();
|
|
|
|
if ( $form.hasClass( 'elementor-form-waiting' ) ) {
|
|
return false;
|
|
}
|
|
|
|
this.beforeSend();
|
|
|
|
$.ajax( {
|
|
url: $form.attr('action'),
|
|
type: 'POST',
|
|
dataType: 'json',
|
|
data: this.getFormData(),
|
|
processData: false,
|
|
contentType: false,
|
|
success: $.proxy( this, 'onSuccess' ),
|
|
error: $.proxy( this, 'onError' )
|
|
} );
|
|
}
|
|
});
|
|
|
|
module.exports = function( $scope, $ ) {
|
|
new AjaxFormHandler( $scope );
|
|
};
|
|
|
|
/***/ }),
|
|
/* 667 */
|
|
/***/ (function(module, exports) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var ShoppingCartHandler = elementorModules.frontend.handlers.Base.extend({
|
|
|
|
getDefaultSettings: function getDefaultSettings() {
|
|
return {
|
|
selectors: {
|
|
container: '.elementor-cart__container',
|
|
toggle: '.elementor-cart__toggle .elementor-button',
|
|
closeButton: '.elementor-cart__close-button'
|
|
},
|
|
classes: {
|
|
isShown: 'elementor-cart--shown',
|
|
lightbox: 'elementor-lightbox',
|
|
isHidden: 'elementor-cart-hidden'
|
|
}
|
|
};
|
|
},
|
|
|
|
getDefaultElements: function getDefaultElements() {
|
|
var selectors = this.getSettings('selectors'),
|
|
elements = {};
|
|
|
|
elements.$container = this.$element.find(selectors.container);
|
|
elements.$toggle = this.$element.find(selectors.toggle);
|
|
elements.$closeButton = this.$element.find(selectors.closeButton);
|
|
|
|
return elements;
|
|
},
|
|
|
|
bindEvents: function bindEvents() {
|
|
var self = this,
|
|
$ = jQuery,
|
|
$container = self.elements.$container,
|
|
$closeButton = self.elements.$closeButton,
|
|
classes = this.getSettings('classes');
|
|
|
|
// Activate topbar mode on click
|
|
self.elements.$toggle.on('click', function (event) {
|
|
if (!self.elements.$toggle.hasClass(classes.isHidden)) {
|
|
event.preventDefault();
|
|
$container.toggleClass(classes.isShown);
|
|
}
|
|
});
|
|
|
|
// Deactivate topbar mode on click or on esc.
|
|
$container.on('click', function (event) {
|
|
if ($container.hasClass(classes.isShown) && $container[0] === event.target) {
|
|
$container.removeClass(classes.isShown);
|
|
}
|
|
});
|
|
|
|
$closeButton.on('click', function () {
|
|
$container.removeClass(classes.isShown);
|
|
});
|
|
|
|
ceFrontend.elements.$document.keyup(function (event) {
|
|
var ESC_KEY = 27;
|
|
|
|
if (ESC_KEY === event.keyCode) {
|
|
if ($container.hasClass(classes.isShown)) {
|
|
$container.click();
|
|
}
|
|
}
|
|
});
|
|
|
|
$container.on('click', '.elementor-cart__product-remove a', function (event) {
|
|
var dataset = $(this).data();
|
|
dataset.linkAction = 'delete-from-cart';
|
|
|
|
$(this).closest('.elementor-cart__product').addClass('ce-disabled');
|
|
|
|
event.preventDefault();
|
|
|
|
$.ajax({
|
|
url: this.href,
|
|
method: 'POST',
|
|
dataType: 'json',
|
|
data: {
|
|
ajax: 1,
|
|
action: 'update',
|
|
},
|
|
}).then(function (resp) {
|
|
prestashop.emit('updateCart', {
|
|
reason: dataset,
|
|
resp: resp,
|
|
});
|
|
}).fail(function (resp) {
|
|
prestashop.emit('handleError', {
|
|
eventType: 'updateProductInCart',
|
|
resp: resp,
|
|
cartAction: dataset.linkAction,
|
|
});
|
|
});
|
|
});
|
|
|
|
prestashop.on('updateCart', function(data) {
|
|
if (!data || !data.resp || !data.resp.cart) {
|
|
return;
|
|
}
|
|
var cart = data.resp.cart,
|
|
gift = $container.find('.elementor-cart__products').data('gift'),
|
|
$products = $();
|
|
|
|
// Show ps_shoppingcart modal on update
|
|
if (self.getElementSettings('action_show_modal') && 'add-to-cart' === data.reason.linkAction && !data.resp.hasError) {
|
|
ShoppingCartHandler.xhr && ShoppingCartHandler.xhr.abort();
|
|
ShoppingCartHandler.xhr = $.post(
|
|
self.getElementSettings('modal_url'),
|
|
{
|
|
ajax: true,
|
|
action: 'addToCartModal',
|
|
id_product: data.reason.idProduct,
|
|
id_product_attribute: data.reason.idProductAttribute,
|
|
id_customization: data.reason.idCustomization,
|
|
},
|
|
function (resp) {
|
|
$('#blockcart-modal').remove();
|
|
$(document.body).append(resp.modal).children('#blockcart-modal').modal();
|
|
},
|
|
'json'
|
|
);
|
|
}
|
|
|
|
// Update toggle
|
|
self.elements.$toggle.find('.elementor-button-text')
|
|
.html(cart['subtotals']['products']['value'])
|
|
;
|
|
self.elements.$toggle.find('.elementor-button-icon')
|
|
.attr('data-counter', cart['products_count'])
|
|
.data('counter', cart['products_count'])
|
|
;
|
|
|
|
var remove_item_icon = self.getElementSettings('remove_item_icon') || {};
|
|
|
|
// Update products
|
|
cart.products.forEach(function (product) {
|
|
var $prod = $(
|
|
'<div class="elementor-cart__product">' +
|
|
'<div class="elementor-cart__product-image"></div>' +
|
|
'<div class="elementor-cart__product-name">' +
|
|
'<div class="elementor-cart__product-attrs"></div>' +
|
|
'</div>' +
|
|
'<div class="elementor-cart__product-price"></div>' +
|
|
(remove_item_icon.value ? '<i class="elementor-cart__product-remove ' + remove_item_icon.value + '"></i>' : '') +
|
|
'</div>'
|
|
),
|
|
$attrs = $prod.find('.elementor-cart__product-attrs'),
|
|
cover = product.cover || prestashop.urls.no_picture_image;
|
|
|
|
if (product.embedded_attributes && product.embedded_attributes.id_image) {
|
|
// PS 1.7.8 fix - product.cover contains wrong image
|
|
var i, id_cover = product.embedded_attributes.id_image.split('-').pop();
|
|
for (i = 0; i < product.images.length; i++) {
|
|
if (id_cover == product.images[i].id_image) {
|
|
cover = product.images[i];
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
$('<img>').appendTo($prod.find('.elementor-cart__product-image')).attr({
|
|
src: cover.bySize.cart_default && cover.bySize.cart_default.url || cover.small.url,
|
|
alt: cover.legend,
|
|
});
|
|
$('<a>').prependTo($prod.find('.elementor-cart__product-name'))
|
|
.attr('href', product['url'])
|
|
.html(product['name'])
|
|
;
|
|
// Add product attributes
|
|
for (var label in product['attributes']) {
|
|
$('<div class="elementor-cart__product-attr">').html(
|
|
'<span class="elementor-cart__product-attr-label">' + label + ':</span> ' +
|
|
'<span class="elementor-cart__product-attr-value">' + product['attributes'][label] + '</span>'
|
|
).appendTo($attrs);
|
|
}
|
|
// Add product customizations
|
|
product.customizations && product.customizations.forEach(function (customization) {
|
|
customization.fields.forEach(function (field) {
|
|
$('<div class="elementor-cart__product-attr">').html(
|
|
'<span class="elementor-cart__product-attr-label">' + field['label'] + ':</span> ' +
|
|
'<span class="elementor-cart__product-attr-value">' +
|
|
('image' === field['type'] ? $('<img>').attr('src', field['image']['small']['url'])[0].outerHTML : field['text']) +
|
|
'</span>'
|
|
).appendTo($attrs);
|
|
});
|
|
});
|
|
$prod.find('.elementor-cart__product-price').html(
|
|
'<span class="elementor-cart__product-quantity">' + product['quantity'] + '</span> × ' + (product['is_gift'] ? gift : product['price']) + ' '
|
|
).append(product['has_discount'] ? $('<del>').html(product['regular_price']) : []);
|
|
|
|
$('<a>').appendTo($prod.find('.elementor-cart__product-remove')).attr({
|
|
href: product['remove_from_cart_url'],
|
|
rel: 'nofollow',
|
|
'data-id-product': product['id_product'],
|
|
'data-id-product-attribute': product['id_product_attribute'],
|
|
'data-id-customization': product['id_customization'],
|
|
}).data({
|
|
'idProduct': product['id_product'],
|
|
'idProductAttribute': product['id_product_attribute'],
|
|
'idCustomization': product['id_customization'],
|
|
});
|
|
$products.push($prod[0]);
|
|
});
|
|
// Update cart
|
|
$container.find('.elementor-cart__products')
|
|
.empty()
|
|
.append($products)
|
|
;
|
|
$container.find('.elementor-cart__empty-message')
|
|
.toggleClass('elementor-hidden', !!cart['products_count'])
|
|
;
|
|
$container.find('.elementor-cart__summary').html(
|
|
'<div class="elementor-cart__summary-label">' + cart['summary_string'] + '</div>' +
|
|
'<div class="elementor-cart__summary-value">' + cart['subtotals']['products']['value'] + '</div>' +
|
|
'<span class="elementor-cart__summary-label">' + cart['subtotals']['shipping']['label'] + '</span>' +
|
|
'<span class="elementor-cart__summary-value">' + cart['subtotals']['shipping']['value'] + '</span>' +
|
|
'<strong class="elementor-cart__summary-label">' + cart['totals']['total']['label'] + '</strong>' +
|
|
'<strong class="elementor-cart__summary-value">' + cart['totals']['total']['value'] + '</strong>'
|
|
);
|
|
$container.find('.elementor-alert-warning')
|
|
.toggleClass('elementor-hidden', !cart['minimalPurchaseRequired'])
|
|
.html('<span class="elementor-alert-description">' + cart['minimalPurchaseRequired'] + '</span>');
|
|
;
|
|
$container.find('.elementor-button--checkout')
|
|
.toggleClass('ce-disabled', cart['minimalPurchaseRequired'] || !cart['products_count'])
|
|
;
|
|
|
|
// Open shopping cart after updated
|
|
if (self.getElementSettings('action_open_cart') && 'add-to-cart' === data.reason.linkAction && !data.resp.hasError) {
|
|
self.elements.$container.hasClass(classes.isShown) || self.elements.$toggle.triggerHandler('click');
|
|
}
|
|
});
|
|
}
|
|
});
|
|
|
|
module.exports = function ($scope) {
|
|
new ShoppingCartHandler({$element: $scope});
|
|
};
|
|
|
|
/***/ }),
|
|
/* 668 */
|
|
/***/ (function(module, exports) {
|
|
|
|
"use strict";
|
|
|
|
|
|
module.exports = elementorModules.frontend.handlers.Base.extend({
|
|
getDefaultSettings: function getDefaultSettings() {
|
|
return {
|
|
selectors: {
|
|
mainSwiper: '.elementor-main-swiper',
|
|
swiperSlide: '.swiper-slide'
|
|
},
|
|
slidesPerView: {
|
|
desktop: 3,
|
|
tablet: 2,
|
|
mobile: 1
|
|
}
|
|
};
|
|
},
|
|
getDefaultElements: function getDefaultElements() {
|
|
var selectors = this.getSettings('selectors');
|
|
var elements = {
|
|
$mainSwiper: this.$element.find(selectors.mainSwiper)
|
|
};
|
|
elements.$mainSwiperSlides = elements.$mainSwiper.find(selectors.swiperSlide);
|
|
return elements;
|
|
},
|
|
getSlidesCount: function getSlidesCount() {
|
|
return this.elements.$mainSwiperSlides.length;
|
|
},
|
|
getInitialSlide: function getInitialSlide() {
|
|
var editSettings = this.getEditSettings();
|
|
return editSettings.activeItemIndex ? editSettings.activeItemIndex - 1 : 0;
|
|
},
|
|
getEffect: function getEffect() {
|
|
return this.getElementSettings('effect');
|
|
},
|
|
getDeviceSlidesPerView: function getDeviceSlidesPerView(device) {
|
|
var slidesPerViewKey = 'slides_per_view' + ('desktop' === device ? '' : '_' + device);
|
|
return Math.min(this.getSlidesCount(), +this.getElementSettings(slidesPerViewKey) || this.getSettings('slidesPerView')[device]);
|
|
},
|
|
getSlidesPerView: function getSlidesPerView(device) {
|
|
if ('slide' === this.getEffect()) {
|
|
return this.getDeviceSlidesPerView(device);
|
|
}
|
|
|
|
return 1;
|
|
},
|
|
getDesktopSlidesPerView: function getDesktopSlidesPerView() {
|
|
return this.getSlidesPerView('desktop');
|
|
},
|
|
getTabletSlidesPerView: function getTabletSlidesPerView() {
|
|
return this.getSlidesPerView('tablet');
|
|
},
|
|
getMobileSlidesPerView: function getMobileSlidesPerView() {
|
|
return this.getSlidesPerView('mobile');
|
|
},
|
|
getDeviceSlidesToScroll: function getDeviceSlidesToScroll(device) {
|
|
var slidesToScrollKey = 'slides_to_scroll' + ('desktop' === device ? '' : '_' + device);
|
|
return Math.min(this.getSlidesCount(), +this.getElementSettings(slidesToScrollKey) || 1);
|
|
},
|
|
getSlidesToScroll: function getSlidesToScroll(device) {
|
|
if ('slide' === this.getEffect()) {
|
|
return this.getDeviceSlidesToScroll(device);
|
|
}
|
|
|
|
return 1;
|
|
},
|
|
getDesktopSlidesToScroll: function getDesktopSlidesToScroll() {
|
|
return this.getSlidesToScroll('desktop');
|
|
},
|
|
getTabletSlidesToScroll: function getTabletSlidesToScroll() {
|
|
return this.getSlidesToScroll('tablet');
|
|
},
|
|
getMobileSlidesToScroll: function getMobileSlidesToScroll() {
|
|
return this.getSlidesToScroll('mobile');
|
|
},
|
|
getSpaceBetween: function getSpaceBetween(device) {
|
|
var propertyName = 'space_between';
|
|
|
|
if (device && 'desktop' !== device) {
|
|
propertyName += '_' + device;
|
|
}
|
|
|
|
return (this.getElementSettings(propertyName) || {size: 0}).size;
|
|
},
|
|
getSwiperOptions: function getSwiperOptions() {
|
|
var elementSettings = this.getElementSettings(); // TODO: Temp migration for old saved values since 2.2.0
|
|
|
|
if ('progress' === elementSettings.pagination) {
|
|
elementSettings.pagination = 'progressbar';
|
|
}
|
|
|
|
var swiperOptions = {
|
|
grabCursor: true,
|
|
initialSlide: this.getInitialSlide(),
|
|
centeredSlides: elementSettings.centered_slides,
|
|
slidesPerView: this.getDesktopSlidesPerView(),
|
|
slidesPerGroup: this.getDesktopSlidesToScroll(),
|
|
spaceBetween: this.getSpaceBetween(),
|
|
loop: 'yes' === elementSettings.loop,
|
|
speed: elementSettings.speed,
|
|
effect: this.getEffect(),
|
|
preventClicksPropagation: false,
|
|
slideToClickedSlide: true,
|
|
handleElementorBreakpoints: true
|
|
};
|
|
|
|
if (elementSettings.show_arrows) {
|
|
swiperOptions.navigation = {
|
|
prevEl: '.elementor-swiper-button-prev',
|
|
nextEl: '.elementor-swiper-button-next'
|
|
};
|
|
}
|
|
|
|
if (elementSettings.pagination) {
|
|
swiperOptions.pagination = {
|
|
el: '.swiper-pagination',
|
|
type: elementSettings.pagination,
|
|
clickable: true
|
|
};
|
|
}
|
|
|
|
if ('cube' !== this.getEffect()) {
|
|
var breakpointsSettings = {},
|
|
breakpoints = ceFrontend.config.breakpoints;
|
|
breakpointsSettings[breakpoints.lg - 1] = {
|
|
slidesPerView: this.getTabletSlidesPerView(),
|
|
slidesPerGroup: this.getTabletSlidesToScroll(),
|
|
spaceBetween: this.getSpaceBetween('tablet')
|
|
};
|
|
breakpointsSettings[breakpoints.md - 1] = {
|
|
slidesPerView: this.getMobileSlidesPerView(),
|
|
slidesPerGroup: this.getMobileSlidesToScroll(),
|
|
spaceBetween: this.getSpaceBetween('mobile')
|
|
};
|
|
swiperOptions.breakpoints = breakpointsSettings;
|
|
}
|
|
|
|
if (!this.isEdit && elementSettings.autoplay) {
|
|
swiperOptions.autoplay = {
|
|
delay: elementSettings.autoplay_speed,
|
|
disableOnInteraction: !!elementSettings.pause_on_interaction
|
|
};
|
|
}
|
|
|
|
return swiperOptions;
|
|
},
|
|
updateSpaceBetween: function updateSpaceBetween(swiper, propertyName) {
|
|
var deviceMatch = propertyName.match('space_between_(.*)'),
|
|
device = deviceMatch ? deviceMatch[1] : 'desktop',
|
|
newSpaceBetween = this.getSpaceBetween(device),
|
|
breakpoints = ceFrontend.config.breakpoints;
|
|
|
|
if ('desktop' !== device) {
|
|
var breakpointDictionary = {
|
|
tablet: breakpoints.lg - 1,
|
|
mobile: breakpoints.md - 1
|
|
};
|
|
swiper.params.breakpoints[breakpointDictionary[device]].spaceBetween = newSpaceBetween;
|
|
} else {
|
|
swiper.originalParams.spaceBetween = newSpaceBetween;
|
|
}
|
|
|
|
swiper.params.spaceBetween = newSpaceBetween;
|
|
swiper.update();
|
|
},
|
|
onInit: function onInit() {
|
|
var _this = this;
|
|
|
|
elementorModules.frontend.handlers.Base.prototype.onInit.apply(this, arguments);
|
|
var elementSettings = this.getElementSettings();
|
|
this.swipers = {};
|
|
|
|
if (1 >= this.getSlidesCount()) {
|
|
return;
|
|
}
|
|
|
|
this.swipers.main = new Swiper(this.elements.$mainSwiper, this.getSwiperOptions()); // Expose the swiper instance in the frontend
|
|
|
|
this.elements.$mainSwiper.data('swiper', this.swipers.main);
|
|
|
|
if (elementSettings.pause_on_hover) {
|
|
this.elements.$mainSwiper.on({
|
|
mouseenter: function mouseenter() {
|
|
_this.swipers.main.autoplay.stop();
|
|
},
|
|
mouseleave: function mouseleave() {
|
|
_this.swipers.main.autoplay.start();
|
|
}
|
|
});
|
|
}
|
|
},
|
|
onElementChange: function onElementChange(propertyName) {
|
|
if (1 >= this.getSlidesCount()) {
|
|
return;
|
|
}
|
|
|
|
if (0 === propertyName.indexOf('width')) {
|
|
this.swipers.main.update();
|
|
}
|
|
|
|
if (0 === propertyName.indexOf('space_between')) {
|
|
this.updateSpaceBetween(this.swipers.main, propertyName);
|
|
}
|
|
},
|
|
onEditSettingsChange: function onEditSettingsChange(propertyName) {
|
|
if (1 >= this.getSlidesCount()) {
|
|
return;
|
|
}
|
|
|
|
if ('activeItemIndex' === propertyName) {
|
|
this.swipers.main.slideToLoop(this.getEditSettings('activeItemIndex') - 1);
|
|
}
|
|
}
|
|
});
|
|
|
|
/***/ }),
|
|
/* 669 */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
"use strict";
|
|
|
|
|
|
var ProductImagesHandle, Base = __webpack_require__(668);
|
|
|
|
ProductImagesHandle = Base.extend({
|
|
slideshowSpecialElementSettings: [
|
|
'slides_per_view',
|
|
'slides_per_view_tablet',
|
|
'slides_per_view_mobile'
|
|
],
|
|
isSlideshow: function isSlideshow() {
|
|
return 'slideshow' === this.getElementSettings('skin');
|
|
},
|
|
getDefaultSettings: function getDefaultSettings() {
|
|
var defaultSettings = Base.prototype.getDefaultSettings.apply(this, arguments);
|
|
|
|
if (this.isSlideshow()) {
|
|
defaultSettings.selectors.thumbsSwiper = '.elementor-thumbnails-swiper';
|
|
|
|
defaultSettings.slidesPerView = {
|
|
desktop: 5,
|
|
tablet: 4,
|
|
mobile: 3
|
|
};
|
|
}
|
|
|
|
return defaultSettings;
|
|
},
|
|
getElementSettings: function getElementSettings(setting) {
|
|
if (-1 !== this.slideshowSpecialElementSettings.indexOf(setting) && this.isSlideshow()) {
|
|
setting = 'slideshow_' + setting;
|
|
}
|
|
|
|
return Base.prototype.getElementSettings.call(this, setting);
|
|
},
|
|
getDefaultElements: function getDefaultElements() {
|
|
var selectors = this.getSettings('selectors'),
|
|
defaultElements = Base.prototype.getDefaultElements.apply(this, arguments);
|
|
|
|
if (this.isSlideshow()) {
|
|
defaultElements.$thumbsSwiper = this.$element.find(selectors.thumbsSwiper);
|
|
}
|
|
|
|
return defaultElements;
|
|
},
|
|
getSlidesPerView: function getSlidesPerView(device) {
|
|
if (this.isSlideshow()) {
|
|
return 1;
|
|
}
|
|
|
|
if ('coverflow' === this.getEffect()) {
|
|
return this.getDeviceSlidesPerView(device);
|
|
}
|
|
|
|
return Base.prototype.getSlidesPerView.apply(this, arguments);
|
|
},
|
|
getThumbSpaceBetween: function getThumbSpaceBetween(device) {
|
|
var propertyName = 'thumb_space_between';
|
|
|
|
if (device && 'desktop' !== device) {
|
|
propertyName += '_' + device;
|
|
}
|
|
|
|
return this.getElementSettings(propertyName).size || 0;
|
|
},
|
|
getSwiperOptions: function getSwiperOptions() {
|
|
var options = Base.prototype.getSwiperOptions.apply(this, arguments);
|
|
|
|
if (this.isSlideshow()) {
|
|
options.loopedSlides = this.getSlidesCount();
|
|
|
|
delete options.pagination;
|
|
delete options.breakpoints;
|
|
}
|
|
|
|
return options;
|
|
},
|
|
onInit: function onInit() {
|
|
elementorModules.frontend.handlers.Base.prototype.onInit.apply(this, arguments);
|
|
|
|
this.swipers = {};
|
|
|
|
var slidesCount = this.getSlidesCount();
|
|
|
|
if (!slidesCount) {
|
|
return;
|
|
}
|
|
|
|
var mainSliderOptions = this.getSwiperOptions();
|
|
|
|
if (this.isSlideshow()) {
|
|
var elementSettings = this.getElementSettings(),
|
|
breakpointsSettings = {},
|
|
breakpoints = ceFrontend.config.breakpoints,
|
|
slidesPerView = this.getSettings('slidesPerView');
|
|
|
|
breakpointsSettings[breakpoints.lg - 1] = {
|
|
slidesPerView: +elementSettings.slides_per_view_tablet || slidesPerView.tablet,
|
|
spaceBetween: this.getThumbSpaceBetween('tablet')
|
|
};
|
|
|
|
breakpointsSettings[breakpoints.md - 1] = {
|
|
slidesPerView: +elementSettings.slides_per_view_mobile || slidesPerView.mobile,
|
|
spaceBetween: this.getThumbSpaceBetween('mobile')
|
|
};
|
|
|
|
var thumbsSliderOptions = {
|
|
slidesPerView: +elementSettings.slides_per_view || slidesPerView.desktop,
|
|
initialSlide: this.getInitialSlide(),
|
|
slideToClickedSlide: true,
|
|
spaceBetween: this.getThumbSpaceBetween(),
|
|
threshold: 2,
|
|
watchSlidesVisibility: true,
|
|
watchSlidesProgress: true,
|
|
breakpoints: breakpointsSettings,
|
|
direction: 'bottom' === elementSettings.position ? 'horizontal' : 'vertical'
|
|
};
|
|
|
|
var thumbs = this.swipers.thumbs = new Swiper(this.elements.$thumbsSwiper, thumbsSliderOptions);
|
|
|
|
mainSliderOptions.thumbs = {
|
|
swiper: this.swipers.thumbs,
|
|
slideThumbActiveClass: 'swiper-slide-active'
|
|
};
|
|
mainSliderOptions.on = {
|
|
slideChange: function () {
|
|
setTimeout(function () {
|
|
var $active = $(thumbs.slides).filter('.swiper-slide-active');
|
|
|
|
thumbs.slides.removeClass('swiper-slide-prev swiper-slide-next');
|
|
|
|
$active.prevAll().addClass('swiper-slide-prev');
|
|
$active.nextAll().addClass('swiper-slide-next');
|
|
});
|
|
},
|
|
sliderFirstMove: function () {
|
|
this.zoom.out();
|
|
|
|
this.$el.addClass('ce-swiper-dragging');
|
|
},
|
|
touchEnd: function () {
|
|
this.$el.removeClass('ce-swiper-dragging');
|
|
}
|
|
};
|
|
|
|
this.elements.$mainSwiper
|
|
.on('mouseenter.ceZoom', '.swiper-zoom-container', this.onZoomIn.bind(this))
|
|
.on('mouseleave.ceZoom', '.swiper-zoom-container', this.onZoomOut.bind(this))
|
|
;
|
|
}
|
|
|
|
this.swipers.main = new Swiper(this.elements.$mainSwiper, mainSliderOptions);
|
|
this.swipers.thumbs && (this.swipers.thumbs.main = this.swipers.main);
|
|
},
|
|
onZoomIn: function onZoomIn() {
|
|
var data = this.swipers.main.touchEventsData;
|
|
|
|
if (data.isMoved || Date.now() - data.touchStartTime < 200) {
|
|
return;
|
|
}
|
|
|
|
this.swipers.main.zoom.in();
|
|
|
|
this.elements.$mainSwiper.on('mousemove.ceZoom', '.swiper-zoom-container img', function (e) {
|
|
var r = this.parentNode.getBoundingClientRect(),
|
|
x = (100 * (e.clientX - r.left) / r.width).toFixed(3),
|
|
y = (100 * (e.clientY - r.top) / r.height).toFixed(3);
|
|
|
|
this.style.transformOrigin = x + '% ' + y + '%';
|
|
this.style.transitionDuration = '0s';
|
|
});
|
|
},
|
|
onZoomOut: function onZoomOut() {
|
|
this.swipers.main.zoom.out();
|
|
|
|
this.elements.$mainSwiper.off('mousemove.ceZoom')
|
|
},
|
|
onElementChange: function onElementChange(propertyName) {
|
|
if (1 >= this.getSlidesCount()) {
|
|
return;
|
|
}
|
|
|
|
if (!this.isSlideshow()) {
|
|
Base.prototype.onElementChange.apply(this, arguments);
|
|
|
|
return;
|
|
}
|
|
|
|
if (0 === propertyName.indexOf('width')) {
|
|
this.swipers.main.update();
|
|
this.swipers.thumbs.update();
|
|
}
|
|
|
|
if (0 === propertyName.indexOf('space_between')) {
|
|
this.updateSpaceBetween(this.swipers.thumbs, propertyName);
|
|
}
|
|
}
|
|
});
|
|
|
|
module.exports = function ($scope) {
|
|
new ProductImagesHandle({$element: $scope});
|
|
};
|
|
|
|
/***/ })
|
|
|
|
/******/ ]);
|
|
|
|
prestashop.on('updateCart', function onUpdateCart(data) {
|
|
if (data.resp && data.resp.hasError) {
|
|
return window.WishlistEventBus && WishlistEventBus.$emit('showToast', {
|
|
detail: {
|
|
type: 'error',
|
|
message: data.resp.errors.join(' '),
|
|
},
|
|
}) || alert(data.resp.errors.join("\n"));
|
|
}
|
|
if (data.resp && data.resp.success) {
|
|
var input = $('#add-to-cart-or-refresh > [name=id_product][value=' + data.resp.id_product + ']')[0];
|
|
|
|
input && ceFrontend.refreshProduct(input.form);
|
|
}
|
|
});
|
|
|
|
ceFrontend.refreshProduct = function (form, quickview) {
|
|
var productUrl = window.elementor && elementor.config.document.urls.permalink || prestashop.urls.pages.product,
|
|
formData = new FormData(form);
|
|
formData.set('refresh', 'product');
|
|
quickview && formData.set('quickview', quickview);
|
|
formData.set('quantity_wanted', formData.get('qty'));
|
|
formData.delete('qty');
|
|
|
|
this.refreshProduct.xhr && this.refreshProduct.xhr.readyState !== 4 && this.refreshProduct.xhr.abort();
|
|
|
|
this.refreshProduct.xhr = $.ajax(productUrl + '&action=refresh&id_product=' + formData.get('id_product'), {
|
|
type: 'POST',
|
|
data: formData,
|
|
processData: false,
|
|
contentType: false,
|
|
dataType: 'json',
|
|
success: function (data) {
|
|
var $content = $(data.product_content),
|
|
exclude = [
|
|
'.elementor-widget-product-quantity',
|
|
'.elementor-widget-product-description',
|
|
'.elementor-widget-product-description-short',
|
|
'.elementor-widget-product-carousel',
|
|
'.elementor-widget-product-grid',
|
|
'.elementor-widget-product-box',
|
|
].join();
|
|
|
|
// Refresh Widgets
|
|
$content.find('.elementor-widget:not(' + exclude + ') > .elementor-widget-container').each(function () {
|
|
var id = $(this.parentNode).data('id'),
|
|
widgetContainer = $('.elementor-element-' + id + ' > .elementor-widget-container')[0];
|
|
if (widgetContainer) {
|
|
$(widgetContainer).replaceWith(this);
|
|
ceFrontend.elementsHandler.runReadyTrigger(this.parentNode);
|
|
}
|
|
});
|
|
|
|
// Refresh Quantity
|
|
$(form.elements.qty).attr('min', data.product_minimal_quantity).each(function () {
|
|
if (this.value < data.product_minimal_quantity) {
|
|
this.value = data.product_minimal_quantity;
|
|
}
|
|
});
|
|
|
|
+data.is_quick_view || prestashop.emit('updatedProduct', data);
|
|
}
|
|
});
|
|
};
|
|
|
|
$('html').on('click.ce', '.elementor-nav-tabs a', function onClickNavTab(e) {
|
|
e.preventDefault();
|
|
|
|
if (~this.className.indexOf('elementor-item-active')) {
|
|
return;
|
|
}
|
|
var index = $(this.parentNode).index(),
|
|
$col = $(this).closest('.elementor-container').find('> .elementor-row > .elementor-column').eq(index),
|
|
editMode = ceFrontend.isEditMode();
|
|
|
|
$(this).closest('.elementor-nav').find('.elementor-item-active').removeClass('elementor-item-active');
|
|
$(this).addClass('elementor-item-active');
|
|
$col.addClass('elementor-active').siblings().removeClass('elementor-active');
|
|
|
|
$col.find('.animated').addBack('.animated').each(function () {
|
|
var $this = $(this),
|
|
settings = editMode ? elementor.helpers.getModelById($this.data('id')).get('settings').attributes : $this.data('settings') || {},
|
|
animation = $this.hasClass('elementor-widget') ? '_animation' : 'animation';
|
|
|
|
$this.addClass('elementor-invisible').removeClass(ceFrontend.getCurrentDeviceSetting(settings, animation));
|
|
|
|
setTimeout(function () {
|
|
$this.removeClass([
|
|
settings[animation + '_mobile'] || '',
|
|
settings[animation + '_tablet'] || '',
|
|
settings[animation] || ''
|
|
].join(' '));
|
|
});
|
|
setTimeout(function () {
|
|
$this.removeClass('elementor-invisible').addClass(ceFrontend.getCurrentDeviceSetting(settings, animation));
|
|
}, settings[animation + '_delay'] || 0)
|
|
});
|
|
}).on('keydown.ce', '.elementor-field[name=qty]', function onEnterDownQuantity(e) {
|
|
if (13 === e.keyCode) {
|
|
if (parseInt(this.value, 10) >= parseInt(this.min, 10)) {
|
|
return;
|
|
}
|
|
e.preventDefault();
|
|
}
|
|
}).on('keyup.ce', '.elementor-field[name=qty]', function onEnterUpQuantity(e) {
|
|
if (13 === e.keyCode) {
|
|
if (parseInt(this.value, 10) >= parseInt(this.min, 10)) {
|
|
this.blur();
|
|
|
|
ceFrontend.utils.urlActions.actions.closeLightbox();
|
|
}
|
|
}
|
|
}).on('click.ce', '.ce-add-to-wishlist', function onClickAddToWishlist(e) {
|
|
e.preventDefault();
|
|
|
|
if (!window.WishlistEventBus) {
|
|
return alert('Please install & enable the Wishlist module!');
|
|
}
|
|
if (!prestashop.customer.is_logged) {
|
|
return WishlistEventBus.$emit('showLogin');
|
|
}
|
|
var $this = $(this);
|
|
|
|
if (!$this.hasClass('elementor-active')) {
|
|
WishlistEventBus.$emit('showAddToWishList', {
|
|
detail: {
|
|
forceOpen: true,
|
|
productId: $this.data('productId'),
|
|
productAttributeId: $this.data('productAttributeId'),
|
|
},
|
|
});
|
|
} else {
|
|
var product = productsAlreadyTagged.find(function (tagged) {
|
|
return tagged.id_product == $this.data('productId')
|
|
&& tagged.id_product_attribute == $this.data('productAttributeId');
|
|
});
|
|
product && $.post(this.href, {
|
|
action: 'deleteProductFromWishlist',
|
|
params: {
|
|
idWishList: product.id_wishlist,
|
|
id_product: product.id_product,
|
|
id_product_attribute: product.id_product_attribute,
|
|
},
|
|
}, function onSuccessDeleteProductFromWishlist(response) {
|
|
$('.ce-add-to-wishlist' +
|
|
'[data-product-id=' + product.id_product + ']' +
|
|
'[data-product-attribute-id=' + product.id_product_attribute + ']'
|
|
).removeClass('elementor-active').find('i').attr('class', 'ceicon-heart-o');
|
|
|
|
productsAlreadyTagged = productsAlreadyTagged.filter(function (tagged) {
|
|
return tagged.id_product != product.id_product
|
|
&& tagged.id_product_attribute != product.id_product_attribute;
|
|
});
|
|
WishlistEventBus.$emit('showToast', {
|
|
detail: {
|
|
type: response.success ? 'success' : 'error',
|
|
message: response.message,
|
|
},
|
|
});
|
|
}, 'json');
|
|
}
|
|
}).on('click.ce', '[data-link-action=quickview]', function (e) {
|
|
// Quick View
|
|
e.preventDefault();
|
|
e.stopPropagation();
|
|
|
|
ceFrontend.utils.urlActions.actions.quickview({
|
|
id_product: $(this).closest('[data-id-product]').data('idProduct')
|
|
});
|
|
}).on('click.ce-comments', 'a[href="#product-comments-list-header"]', function (e) {
|
|
var $comments = $('#product-comments-list-header'),
|
|
$section = $comments.closest('.elementor-section-tabbed');
|
|
if ($section.length) {
|
|
var column = $section.find('> .elementor-container > .elementor-row > .elementor-column').toArray().find(function (el) {
|
|
return $(el).find($comments).length;
|
|
});
|
|
$section.find('> .elementor-container > .elementor-nav-tabs a').eq($(column).index()).click();
|
|
}
|
|
$('html, body').animate({
|
|
scrollTop: $($section[0] || $comments[0]).offset().top
|
|
}, 500, 'swing', $(this).hasClass('elementor-button--post-comment') ? function() {
|
|
$('.post-product-comment').click();
|
|
} : void 0);
|
|
e.preventDefault();
|
|
}).on('change.ce', '[form="add-to-cart-or-refresh"]', function (e) {
|
|
// Refresh Product on change
|
|
ceFrontend.refreshProduct(this.form, $(this).closest('#ce-product-quick-view').length);
|
|
}).on('input.ce', '[form="add-to-cart-or-refresh"][name=qty]', function () {
|
|
// Update Product on input
|
|
clearTimeout(ceFrontend.refreshProduct.timeout);
|
|
|
|
if ('' !== this.value) ceFrontend.refreshProduct.timeout = setTimeout(function () {
|
|
ceFrontend.refreshProduct(this.form, $(this).closest('#ce-product-quick-view').length);
|
|
}.bind(this), 200);
|
|
});
|
|
|
|
$(function ceReady() {
|
|
// Fix for category description
|
|
$('#js-product-list-header').attr('id', 'product-list-header');
|
|
|
|
// Init product quick view
|
|
if (ceFrontend.config.productQuickView) {
|
|
delete prestashop._events.clickQuickView;
|
|
|
|
prestashop.on('clickQuickView', function onClickQuickView(e) {
|
|
onClickQuickView.xhr && onClickQuickView.xhr.abort();
|
|
|
|
onClickQuickView.xhr = $.post(prestashop.urls.pages.product, {
|
|
ajax: 1,
|
|
action: 'quickview',
|
|
id_product: e.dataset.idProduct,
|
|
id_product_attribute: e.dataset.idProductAttribute,
|
|
id_ce_theme: ceFrontend.config.productQuickView
|
|
}, null, 'json');
|
|
|
|
onClickQuickView.xhr.then(function onSuccessQuickView(resp) {
|
|
var lightbox = ceFrontend.utils.lightbox,
|
|
$html = $(resp.quickview_html),
|
|
settings = $html.filter('.elementor').data('elementorSettings'),
|
|
modal = lightbox.getModal(),
|
|
elem = modal.getElements();
|
|
|
|
elem.message.removeClass([
|
|
'zoomIn',
|
|
settings.entrance_animation || '',
|
|
settings.entrance_animation_tablet || '',
|
|
settings.entrance_animation_mobile || ''
|
|
].join(' ')).addClass(
|
|
ceFrontend.getCurrentDeviceSetting(settings, 'entrance_animation')
|
|
);
|
|
|
|
$('[form="add-to-cart-or-refresh"]').attr('form', 'ce-add-to-cart-or-refresh');
|
|
$('#add-to-cart-or-refresh').attr('id', 'ce-add-to-cart-or-refresh');
|
|
|
|
lightbox.showModal({
|
|
modalOptions: {id: 'ce-product-quick-view'},
|
|
html: $html
|
|
});
|
|
|
|
modal.off('hide').on('hide', function onHideQuickView() {
|
|
$('[form="ce-add-to-cart-or-refresh"]').attr('form', 'add-to-cart-or-refresh');
|
|
$('#ce-add-to-cart-or-refresh').attr('id', 'add-to-cart-or-refresh');
|
|
|
|
setTimeout(function () {
|
|
elem.closeButton.prependTo(elem.widgetContent);
|
|
elem.message.removeClass([
|
|
settings.entrance_animation || '',
|
|
settings.entrance_animation_tablet || '',
|
|
settings.entrance_animation_mobile || ''
|
|
].join(' '));
|
|
|
|
modal.setMessage('');
|
|
}, 400);
|
|
});
|
|
|
|
elem.message.addClass('elementor-lightbox-prevent-close')
|
|
.prepend('outside' === settings.close_button_position ? null : elem.closeButton)
|
|
.find('.elementor-widget').each(function () {
|
|
ceFrontend.elementsHandler.runReadyTrigger(this);
|
|
})
|
|
;
|
|
}).fail(function (resp) {
|
|
prestashop.emit('handleError', {eventType: 'clickQuickView', resp: resp});
|
|
});
|
|
});
|
|
}
|
|
// handle Added to Wishlist
|
|
window.WishlistEventBus && WishlistEventBus.$on('addedToWishlist', function onAddedToWishlist(e) {
|
|
var product = productsAlreadyTagged[productsAlreadyTagged.length - 1];
|
|
$('.ce-add-to-wishlist' +
|
|
'[data-product-id=' + product.id_product + ']' +
|
|
'[data-product-attribute-id=' + product.id_product_attribute + ']'
|
|
).addClass('elementor-active').find('i').attr('class', 'ceicon-heart');
|
|
});
|
|
});
|