| @@ -1,300 +1,587 @@ | ||
| 1 | -(function() { | |
| 1 | +/*! elementor - v3.7.5 - 14-09-2022 */ | |
| 2 | +/******/ (() => { // webpackBootstrap | |
| 3 | +/******/ var __webpack_modules__ = ({ | |
| 2 | 4 | |
| 3 | -//#region \0rolldown/runtime.js | |
| 4 | - var __defProp = Object.defineProperty; | |
| 5 | - var __name = (target, value) => __defProp(target, "name", { | |
| 6 | - value, | |
| 7 | - configurable: true | |
| 8 | - }); | |
| 5 | +/***/ "../modules/dev-tools/assets/js/deprecation.js": | |
| 6 | +/*!*****************************************************!*\ | |
| 7 | + !*** ../modules/dev-tools/assets/js/deprecation.js ***! | |
| 8 | + \*****************************************************/ | |
| 9 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 9 | 10 | |
| 10 | -//#endregion | |
| 11 | +"use strict"; | |
| 11 | 12 | |
| 12 | -//#region node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js | |
| 13 | - function _arrayWithHoles(r) { | |
| 14 | - if (Array.isArray(r)) return r; | |
| 15 | - } | |
| 16 | 13 | |
| 17 | -//#endregion | |
| 18 | -//#region node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js | |
| 19 | - function _iterableToArrayLimit(r, l) { | |
| 20 | - var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; | |
| 21 | - if (null != t) { | |
| 22 | - var e; | |
| 23 | - var n; | |
| 24 | - var i; | |
| 25 | - var u; | |
| 26 | - var a = []; | |
| 27 | - var f = !0; | |
| 28 | - var o = !1; | |
| 29 | - try { | |
| 30 | - if (i = (t = t.call(r)).next, 0 === l) { | |
| 31 | - if (Object(t) !== t) return; | |
| 32 | - f = !1; | |
| 33 | - } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); | |
| 34 | - } catch (r) { | |
| 35 | - o = !0, n = r; | |
| 36 | - } finally { | |
| 37 | - try { | |
| 38 | - if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; | |
| 39 | - } finally { | |
| 40 | - if (o) throw n; | |
| 41 | - } | |
| 42 | - } | |
| 43 | - return a; | |
| 44 | - } | |
| 45 | - } | |
| 14 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 46 | 15 | |
| 47 | -//#endregion | |
| 48 | -//#region node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js | |
| 49 | - function _arrayLikeToArray(r, a) { | |
| 50 | - (null == a || a > r.length) && (a = r.length); | |
| 51 | - for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; | |
| 52 | - return n; | |
| 53 | - } | |
| 16 | +Object.defineProperty(exports, "__esModule", ({ | |
| 17 | + value: true | |
| 18 | +})); | |
| 19 | +exports["default"] = void 0; | |
| 54 | 20 | |
| 55 | -//#endregion | |
| 56 | -//#region node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js | |
| 57 | - function _unsupportedIterableToArray(r, a) { | |
| 58 | - if (r) { | |
| 59 | - if ("string" == typeof r) return _arrayLikeToArray(r, a); | |
| 60 | - var t = {}.toString.call(r).slice(8, -1); | |
| 61 | - return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; | |
| 62 | - } | |
| 63 | - } | |
| 21 | +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js")); | |
| 64 | 22 | |
| 65 | -//#endregion | |
| 66 | -//#region node_modules/@babel/runtime/helpers/esm/nonIterableRest.js | |
| 67 | - function _nonIterableRest() { | |
| 68 | - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
| 69 | - } | |
| 23 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 70 | 24 | |
| 71 | -//#endregion | |
| 72 | -//#region node_modules/@babel/runtime/helpers/esm/slicedToArray.js | |
| 73 | - function _slicedToArray(r, e) { | |
| 74 | - return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); | |
| 75 | - } | |
| 25 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 76 | 26 | |
| 77 | -//#endregion | |
| 78 | -//#region node_modules/@babel/runtime/helpers/esm/classCallCheck.js | |
| 79 | - function _classCallCheck(a, n) { | |
| 80 | - if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); | |
| 81 | - } | |
| 27 | +/** | |
| 28 | + * @typedef {Object} Version | |
| 29 | + * @property {number} major1 The first number | |
| 30 | + * @property {number} major2 The second number | |
| 31 | + * @property {number} minor The third number | |
| 32 | + * @property {string} build The fourth number | |
| 33 | + */ | |
| 82 | 34 | |
| 83 | -//#endregion | |
| 84 | -//#region node_modules/@babel/runtime/helpers/esm/typeof.js | |
| 85 | - function _typeof(o) { | |
| 86 | - "@babel/helpers - typeof"; | |
| 87 | - return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) { | |
| 88 | - return typeof o; | |
| 89 | - } : function(o) { | |
| 90 | - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; | |
| 91 | - }, _typeof(o); | |
| 92 | - } | |
| 35 | +/** | |
| 36 | + * @param {string} name | |
| 37 | + * @param {string} version | |
| 38 | + * @param {string} replacement | |
| 39 | + */ | |
| 40 | +var softDeprecated = function softDeprecated(name, version, replacement) { | |
| 41 | + if (elementorDevToolsConfig.isDebug) { | |
| 42 | + deprecatedMessage('soft', name, version, replacement); | |
| 43 | + } | |
| 44 | +}; | |
| 93 | 45 | |
| 94 | -//#endregion | |
| 95 | -//#region node_modules/@babel/runtime/helpers/esm/toPrimitive.js | |
| 96 | - function toPrimitive(t, r) { | |
| 97 | - if ("object" != _typeof(t) || !t) return t; | |
| 98 | - var e = t[Symbol.toPrimitive]; | |
| 99 | - if (void 0 !== e) { | |
| 100 | - var i = e.call(t, r || "default"); | |
| 101 | - if ("object" != _typeof(i)) return i; | |
| 102 | - throw new TypeError("@@toPrimitive must return a primitive value."); | |
| 103 | - } | |
| 104 | - return ("string" === r ? String : Number)(t); | |
| 105 | - } | |
| 46 | +var hardDeprecated = function hardDeprecated(name, version, replacement) { | |
| 47 | + deprecatedMessage('hard', name, version, replacement); | |
| 48 | +}; | |
| 106 | 49 | |
| 107 | -//#endregion | |
| 108 | -//#region node_modules/@babel/runtime/helpers/esm/toPropertyKey.js | |
| 109 | - function toPropertyKey(t) { | |
| 110 | - var i = toPrimitive(t, "string"); | |
| 111 | - return "symbol" == _typeof(i) ? i : i + ""; | |
| 112 | - } | |
| 50 | +var deprecatedMessage = function deprecatedMessage(type, name, version, replacement) { | |
| 51 | + var message = "`".concat(name, "` is ").concat(type, " deprecated since ").concat(version); | |
| 113 | 52 | |
| 114 | -//#endregion | |
| 115 | -//#region node_modules/@babel/runtime/helpers/esm/createClass.js | |
| 116 | - function _defineProperties(e, r) { | |
| 117 | - for (var t = 0; t < r.length; t++) { | |
| 118 | - var o = r[t]; | |
| 119 | - o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o); | |
| 120 | - } | |
| 121 | - } | |
| 122 | - function _createClass(e, r, t) { | |
| 123 | - return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; | |
| 124 | - } | |
| 53 | + if (replacement) { | |
| 54 | + message += " - Use `".concat(replacement, "` instead"); | |
| 55 | + } | |
| 125 | 56 | |
| 126 | -//#endregion | |
| 127 | -//#region modules/dev-tools/assets/js/deprecation.js | |
| 128 | -/** | |
| 129 | - * @typedef {Object} Version | |
| 130 | - * @property {number} major1 The first number | |
| 131 | - * @property {number} major2 The second number | |
| 132 | - * @property {number} minor The third number | |
| 133 | - * @property {string} build The fourth number | |
| 134 | - */ | |
| 135 | - /** | |
| 136 | - * @param {string} name | |
| 137 | - * @param {string} version | |
| 138 | - * @param {string} replacement | |
| 139 | - */ | |
| 140 | - var softDeprecated = function softDeprecated(name, version, replacement) { | |
| 141 | - if (elementorDevToolsConfig.isDebug) deprecatedMessage("soft", name, version, replacement); | |
| 142 | - }; | |
| 143 | - var hardDeprecated = function hardDeprecated(name, version, replacement) { | |
| 144 | - deprecatedMessage("hard", name, version, replacement); | |
| 145 | - }; | |
| 146 | - var deprecatedMessage = function deprecatedMessage(type, name, version, replacement) { | |
| 147 | - var message = "`".concat(name, "` is ").concat(type, " deprecated since ").concat(version); | |
| 148 | - if (replacement) message += " - Use `".concat(replacement, "` instead"); | |
| 149 | - elementorDevTools.consoleWarn(message); | |
| 150 | - }; | |
| 151 | - var Deprecation = /*#__PURE__*/ function() { | |
| 152 | - function Deprecation() { | |
| 153 | - _classCallCheck(this, Deprecation); | |
| 154 | - } | |
| 155 | - return _createClass(Deprecation, [ | |
| 156 | - { | |
| 157 | - key: "deprecated", | |
| 158 | - value: function deprecated(name, version, replacement) { | |
| 159 | - if (this.isHardDeprecated(version)) hardDeprecated(name, version, replacement); | |
| 160 | - else softDeprecated(name, version, replacement); | |
| 161 | - } | |
| 162 | - }, | |
| 163 | - { | |
| 164 | - key: "parseVersion", | |
| 165 | - value: function parseVersion(version) { | |
| 166 | - var versionParts = version.split("."); | |
| 167 | - if (versionParts.length < 3 || versionParts.length > 4) throw new RangeError("Invalid Semantic Version string provided"); | |
| 168 | - var _versionParts = _slicedToArray(versionParts, 4); | |
| 169 | - var major1 = _versionParts[0]; | |
| 170 | - var major2 = _versionParts[1]; | |
| 171 | - var minor = _versionParts[2]; | |
| 172 | - var _versionParts$ = _versionParts[3]; | |
| 173 | - return { | |
| 174 | - major1: parseInt(major1), | |
| 175 | - major2: parseInt(major2), | |
| 176 | - minor: parseInt(minor), | |
| 177 | - build: _versionParts$ === void 0 ? "" : _versionParts$ | |
| 178 | - }; | |
| 179 | - } | |
| 180 | - }, | |
| 181 | - { | |
| 182 | - key: "getTotalMajor", | |
| 183 | - value: function getTotalMajor(versionObj) { | |
| 184 | - var total = parseInt("".concat(versionObj.major1).concat(versionObj.major2, "0")); | |
| 185 | - total = Number((total / 10).toFixed(0)); | |
| 186 | - if (versionObj.major2 > 9) total = versionObj.major2 - 9; | |
| 187 | - return total; | |
| 188 | - } | |
| 189 | - }, | |
| 190 | - { | |
| 191 | - key: "compareVersion", | |
| 192 | - value: function compareVersion(version1, version2) { | |
| 193 | - var _this = this; | |
| 194 | - return [this.parseVersion(version1), this.parseVersion(version2)].map(function(versionObj) { | |
| 195 | - return _this.getTotalMajor(versionObj); | |
| 196 | - }).reduce(function(acc, major) { | |
| 197 | - return acc - major; | |
| 198 | - }); | |
| 199 | - } | |
| 200 | - }, | |
| 201 | - { | |
| 202 | - key: "isSoftDeprecated", | |
| 203 | - value: function isSoftDeprecated(version) { | |
| 204 | - return this.compareVersion(version, elementorDevToolsConfig.deprecation.current_version) <= elementorDevToolsConfig.deprecation.soft_version_count; | |
| 205 | - } | |
| 206 | - }, | |
| 207 | - { | |
| 208 | - key: "isHardDeprecated", | |
| 209 | - value: function isHardDeprecated(version) { | |
| 210 | - var total = this.compareVersion(version, elementorDevToolsConfig.deprecation.current_version); | |
| 211 | - return total < 0 || total >= elementorDevToolsConfig.deprecation.hard_version_count; | |
| 212 | - } | |
| 213 | - } | |
| 214 | - ]); | |
| 215 | - }(); | |
| 57 | + elementorDevTools.consoleWarn(message); | |
| 58 | +}; | |
| 216 | 59 | |
| 217 | -//#endregion | |
| 218 | -//#region node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js | |
| 219 | - function _arrayWithoutHoles(r) { | |
| 220 | - if (Array.isArray(r)) return _arrayLikeToArray(r); | |
| 221 | - } | |
| 60 | +var Deprecation = /*#__PURE__*/function () { | |
| 61 | + function Deprecation() { | |
| 62 | + (0, _classCallCheck2.default)(this, Deprecation); | |
| 63 | + } | |
| 222 | 64 | |
| 223 | -//#endregion | |
| 224 | -//#region node_modules/@babel/runtime/helpers/esm/iterableToArray.js | |
| 225 | - function _iterableToArray(r) { | |
| 226 | - if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); | |
| 227 | - } | |
| 65 | + (0, _createClass2.default)(Deprecation, [{ | |
| 66 | + key: "deprecated", | |
| 67 | + value: function deprecated(name, version, replacement) { | |
| 68 | + if (this.isHardDeprecated(version)) { | |
| 69 | + hardDeprecated(name, version, replacement); | |
| 70 | + } else { | |
| 71 | + softDeprecated(name, version, replacement); | |
| 72 | + } | |
| 73 | + } | |
| 74 | + /** | |
| 75 | + * @param {string} version | |
| 76 | + * | |
| 77 | + * @return {Version} | |
| 78 | + */ | |
| 228 | 79 | |
| 229 | -//#endregion | |
| 230 | -//#region node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js | |
| 231 | - function _nonIterableSpread() { | |
| 232 | - throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
| 233 | - } | |
| 80 | + }, { | |
| 81 | + key: "parseVersion", | |
| 82 | + value: function parseVersion(version) { | |
| 83 | + var versionParts = version.split('.'); | |
| 234 | 84 | |
| 235 | -//#endregion | |
| 236 | -//#region node_modules/@babel/runtime/helpers/esm/toConsumableArray.js | |
| 237 | - function _toConsumableArray(r) { | |
| 238 | - return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); | |
| 239 | - } | |
| 85 | + if (versionParts.length < 3 || versionParts.length > 4) { | |
| 86 | + throw new RangeError('Invalid Semantic Version string provided'); | |
| 87 | + } | |
| 240 | 88 | |
| 241 | -//#endregion | |
| 242 | -//#region node_modules/@babel/runtime/helpers/esm/defineProperty.js | |
| 243 | - function _defineProperty(e, r, t) { | |
| 244 | - return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, { | |
| 245 | - value: t, | |
| 246 | - enumerable: !0, | |
| 247 | - configurable: !0, | |
| 248 | - writable: !0 | |
| 249 | - }) : e[r] = t, e; | |
| 250 | - } | |
| 89 | + var _versionParts = (0, _slicedToArray2.default)(versionParts, 4), | |
| 90 | + major1 = _versionParts[0], | |
| 91 | + major2 = _versionParts[1], | |
| 92 | + minor = _versionParts[2], | |
| 93 | + _versionParts$ = _versionParts[3], | |
| 94 | + build = _versionParts$ === void 0 ? '' : _versionParts$; | |
| 251 | 95 | |
| 252 | -//#endregion | |
| 253 | -//#region modules/dev-tools/assets/js/module.js | |
| 254 | -/** | |
| 255 | - * @typedef {import('./deprecation').default} Deprecation | |
| 256 | - */ | |
| 257 | - var Module = /*#__PURE__*/ function() { | |
| 258 | - function Module(deprecation) { | |
| 259 | - _classCallCheck(this, Module); | |
| 260 | - /** | |
| 261 | - * @type {Deprecation} | |
| 262 | - */ | |
| 263 | - _defineProperty(this, "deprecation", void 0); | |
| 264 | - this.deprecation = deprecation; | |
| 265 | - } | |
| 266 | - return _createClass(Module, [{ | |
| 267 | - key: "notifyBackendDeprecations", | |
| 268 | - value: function notifyBackendDeprecations() { | |
| 269 | - var _this = this; | |
| 270 | - var notices = elementorDevToolsConfig.deprecation.soft_notices; | |
| 271 | - Object.entries(notices).forEach(function(_ref) { | |
| 272 | - var _this$deprecation; | |
| 273 | - var _ref2 = _slicedToArray(_ref, 2); | |
| 274 | - var key = _ref2[0]; | |
| 275 | - var notice = _ref2[1]; | |
| 276 | - (_this$deprecation = _this.deprecation).deprecated.apply(_this$deprecation, [key].concat(_toConsumableArray(notice))); | |
| 277 | - }); | |
| 278 | - } | |
| 279 | - }, { | |
| 280 | - key: "consoleWarn", | |
| 281 | - value: function consoleWarn() { | |
| 282 | - var _console; | |
| 283 | - var style = "font-size: 12px; background-image: url(\"".concat(elementorDevToolsConfig.urls.assets, "images/logo-icon.png\"); background-repeat: no-repeat; background-size: contain;"); | |
| 284 | - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; | |
| 285 | - args.unshift("%c %c", style, ""); | |
| 286 | - (_console = console).warn.apply(_console, args); | |
| 287 | - } | |
| 288 | - }]); | |
| 289 | - }(); | |
| 96 | + return { | |
| 97 | + major1: parseInt(major1), | |
| 98 | + major2: parseInt(major2), | |
| 99 | + minor: parseInt(minor), | |
| 100 | + build: build | |
| 101 | + }; | |
| 102 | + } | |
| 103 | + /** | |
| 104 | + * Get total of major. | |
| 105 | + * | |
| 106 | + * Since `get_total_major` cannot determine how much really versions between 2.9.0 and 3.3.0 if there is 2.10.0 version for example, | |
| 107 | + * versions with major2 more then 9 will be added to total. | |
| 108 | + * | |
| 109 | + * @param {Version} versionObj | |
| 110 | + * | |
| 111 | + * @return {number} | |
| 112 | + */ | |
| 290 | 113 | |
| 291 | -//#endregion | |
| 292 | -//#region modules/dev-tools/assets/js/index.js | |
| 293 | - if (!window.elementorDevTools) { | |
| 294 | - window.elementorDevTools = new Module(new Deprecation()); | |
| 295 | - window.elementorDevTools.notifyBackendDeprecations(); | |
| 296 | - } | |
| 114 | + }, { | |
| 115 | + key: "getTotalMajor", | |
| 116 | + value: function getTotalMajor(versionObj) { | |
| 117 | + var total = parseInt("".concat(versionObj.major1).concat(versionObj.major2, "0")); | |
| 118 | + total = Number((total / 10).toFixed(0)); | |
| 297 | 119 | |
| 298 | -//#endregion | |
| 120 | + if (versionObj.major2 > 9) { | |
| 121 | + total = versionObj.major2 - 9; | |
| 122 | + } | |
| 123 | + | |
| 124 | + return total; | |
| 125 | + } | |
| 126 | + /** | |
| 127 | + * @param {string} version1 | |
| 128 | + * @param {string} version2 | |
| 129 | + * | |
| 130 | + * @return {number} | |
| 131 | + */ | |
| 132 | + | |
| 133 | + }, { | |
| 134 | + key: "compareVersion", | |
| 135 | + value: function compareVersion(version1, version2) { | |
| 136 | + var _this = this; | |
| 137 | + | |
| 138 | + return [this.parseVersion(version1), this.parseVersion(version2)].map(function (versionObj) { | |
| 139 | + return _this.getTotalMajor(versionObj); | |
| 140 | + }).reduce(function (acc, major) { | |
| 141 | + return acc - major; | |
| 142 | + }); | |
| 143 | + } | |
| 144 | + /** | |
| 145 | + * @param {string} version | |
| 146 | + * | |
| 147 | + * @return {boolean} | |
| 148 | + */ | |
| 149 | + | |
| 150 | + }, { | |
| 151 | + key: "isSoftDeprecated", | |
| 152 | + value: function isSoftDeprecated(version) { | |
| 153 | + var total = this.compareVersion(version, elementorDevToolsConfig.deprecation.current_version); | |
| 154 | + return total <= elementorDevToolsConfig.deprecation.soft_version_count; | |
| 155 | + } | |
| 156 | + /** | |
| 157 | + * @param {string} version | |
| 158 | + * @return {boolean} | |
| 159 | + */ | |
| 160 | + | |
| 161 | + }, { | |
| 162 | + key: "isHardDeprecated", | |
| 163 | + value: function isHardDeprecated(version) { | |
| 164 | + var total = this.compareVersion(version, elementorDevToolsConfig.deprecation.current_version); | |
| 165 | + return total < 0 || total >= elementorDevToolsConfig.deprecation.hard_version_count; | |
| 166 | + } | |
| 167 | + }]); | |
| 168 | + return Deprecation; | |
| 169 | +}(); | |
| 170 | + | |
| 171 | +exports["default"] = Deprecation; | |
| 172 | + | |
| 173 | +/***/ }), | |
| 174 | + | |
| 175 | +/***/ "../modules/dev-tools/assets/js/module.js": | |
| 176 | +/*!************************************************!*\ | |
| 177 | + !*** ../modules/dev-tools/assets/js/module.js ***! | |
| 178 | + \************************************************/ | |
| 179 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 180 | + | |
| 181 | +"use strict"; | |
| 182 | + | |
| 183 | + | |
| 184 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 185 | + | |
| 186 | +Object.defineProperty(exports, "__esModule", ({ | |
| 187 | + value: true | |
| 188 | +})); | |
| 189 | +exports["default"] = void 0; | |
| 190 | + | |
| 191 | +var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "../node_modules/@babel/runtime/helpers/toConsumableArray.js")); | |
| 192 | + | |
| 193 | +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js")); | |
| 194 | + | |
| 195 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 196 | + | |
| 197 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 198 | + | |
| 199 | +var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 200 | + | |
| 201 | +var _deprecation = _interopRequireDefault(__webpack_require__(/*! ./deprecation */ "../modules/dev-tools/assets/js/deprecation.js")); | |
| 202 | + | |
| 203 | +/* global elementorDevToolsConfig */ | |
| 204 | +var Module = /*#__PURE__*/function () { | |
| 205 | + /** | |
| 206 | + * @type {Deprecation} | |
| 207 | + */ | |
| 208 | + function Module(deprecation) { | |
| 209 | + (0, _classCallCheck2.default)(this, Module); | |
| 210 | + (0, _defineProperty2.default)(this, "deprecation", void 0); | |
| 211 | + this.deprecation = deprecation; | |
| 212 | + } | |
| 213 | + | |
| 214 | + (0, _createClass2.default)(Module, [{ | |
| 215 | + key: "notifyBackendDeprecations", | |
| 216 | + value: function notifyBackendDeprecations() { | |
| 217 | + var _this = this; | |
| 218 | + | |
| 219 | + var notices = elementorDevToolsConfig.deprecation.soft_notices; | |
| 220 | + Object.entries(notices).forEach(function (_ref) { | |
| 221 | + var _this$deprecation; | |
| 222 | + | |
| 223 | + var _ref2 = (0, _slicedToArray2.default)(_ref, 2), | |
| 224 | + key = _ref2[0], | |
| 225 | + notice = _ref2[1]; | |
| 226 | + | |
| 227 | + (_this$deprecation = _this.deprecation).deprecated.apply(_this$deprecation, [key].concat((0, _toConsumableArray2.default)(notice))); | |
| 228 | + }); | |
| 229 | + } | |
| 230 | + }, { | |
| 231 | + key: "consoleWarn", | |
| 232 | + value: function consoleWarn() { | |
| 233 | + var _console; | |
| 234 | + | |
| 235 | + var style = "font-size: 12px; background-image: url(\"".concat(elementorDevToolsConfig.urls.assets, "images/logo-icon.png\"); background-repeat: no-repeat; background-size: contain;"); | |
| 236 | + | |
| 237 | + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { | |
| 238 | + args[_key] = arguments[_key]; | |
| 239 | + } | |
| 240 | + | |
| 241 | + args.unshift('%c %c', style, ''); | |
| 242 | + | |
| 243 | + (_console = console).warn.apply(_console, args); // eslint-disable-line no-console | |
| 244 | + | |
| 245 | + } | |
| 246 | + }]); | |
| 247 | + return Module; | |
| 248 | +}(); | |
| 249 | + | |
| 250 | +exports["default"] = Module; | |
| 251 | + | |
| 252 | +/***/ }), | |
| 253 | + | |
| 254 | +/***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js": | |
| 255 | +/*!******************************************************************!*\ | |
| 256 | + !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***! | |
| 257 | + \******************************************************************/ | |
| 258 | +/***/ ((module) => { | |
| 259 | + | |
| 260 | +function _arrayLikeToArray(arr, len) { | |
| 261 | + if (len == null || len > arr.length) len = arr.length; | |
| 262 | + | |
| 263 | + for (var i = 0, arr2 = new Array(len); i < len; i++) { | |
| 264 | + arr2[i] = arr[i]; | |
| 265 | + } | |
| 266 | + | |
| 267 | + return arr2; | |
| 268 | +} | |
| 269 | + | |
| 270 | +module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 271 | + | |
| 272 | +/***/ }), | |
| 273 | + | |
| 274 | +/***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js": | |
| 275 | +/*!****************************************************************!*\ | |
| 276 | + !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***! | |
| 277 | + \****************************************************************/ | |
| 278 | +/***/ ((module) => { | |
| 279 | + | |
| 280 | +function _arrayWithHoles(arr) { | |
| 281 | + if (Array.isArray(arr)) return arr; | |
| 282 | +} | |
| 283 | + | |
| 284 | +module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 285 | + | |
| 286 | +/***/ }), | |
| 287 | + | |
| 288 | +/***/ "../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js": | |
| 289 | +/*!*******************************************************************!*\ | |
| 290 | + !*** ../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***! | |
| 291 | + \*******************************************************************/ | |
| 292 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 293 | + | |
| 294 | +var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js"); | |
| 295 | + | |
| 296 | +function _arrayWithoutHoles(arr) { | |
| 297 | + if (Array.isArray(arr)) return arrayLikeToArray(arr); | |
| 298 | +} | |
| 299 | + | |
| 300 | +module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 301 | + | |
| 302 | +/***/ }), | |
| 303 | + | |
| 304 | +/***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js": | |
| 305 | +/*!****************************************************************!*\ | |
| 306 | + !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***! | |
| 307 | + \****************************************************************/ | |
| 308 | +/***/ ((module) => { | |
| 309 | + | |
| 310 | +function _classCallCheck(instance, Constructor) { | |
| 311 | + if (!(instance instanceof Constructor)) { | |
| 312 | + throw new TypeError("Cannot call a class as a function"); | |
| 313 | + } | |
| 314 | +} | |
| 315 | + | |
| 316 | +module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 317 | + | |
| 318 | +/***/ }), | |
| 319 | + | |
| 320 | +/***/ "../node_modules/@babel/runtime/helpers/createClass.js": | |
| 321 | +/*!*************************************************************!*\ | |
| 322 | + !*** ../node_modules/@babel/runtime/helpers/createClass.js ***! | |
| 323 | + \*************************************************************/ | |
| 324 | +/***/ ((module) => { | |
| 325 | + | |
| 326 | +function _defineProperties(target, props) { | |
| 327 | + for (var i = 0; i < props.length; i++) { | |
| 328 | + var descriptor = props[i]; | |
| 329 | + descriptor.enumerable = descriptor.enumerable || false; | |
| 330 | + descriptor.configurable = true; | |
| 331 | + if ("value" in descriptor) descriptor.writable = true; | |
| 332 | + Object.defineProperty(target, descriptor.key, descriptor); | |
| 333 | + } | |
| 334 | +} | |
| 335 | + | |
| 336 | +function _createClass(Constructor, protoProps, staticProps) { | |
| 337 | + if (protoProps) _defineProperties(Constructor.prototype, protoProps); | |
| 338 | + if (staticProps) _defineProperties(Constructor, staticProps); | |
| 339 | + Object.defineProperty(Constructor, "prototype", { | |
| 340 | + writable: false | |
| 341 | + }); | |
| 342 | + return Constructor; | |
| 343 | +} | |
| 344 | + | |
| 345 | +module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 346 | + | |
| 347 | +/***/ }), | |
| 348 | + | |
| 349 | +/***/ "../node_modules/@babel/runtime/helpers/defineProperty.js": | |
| 350 | +/*!****************************************************************!*\ | |
| 351 | + !*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***! | |
| 352 | + \****************************************************************/ | |
| 353 | +/***/ ((module) => { | |
| 354 | + | |
| 355 | +function _defineProperty(obj, key, value) { | |
| 356 | + if (key in obj) { | |
| 357 | + Object.defineProperty(obj, key, { | |
| 358 | + value: value, | |
| 359 | + enumerable: true, | |
| 360 | + configurable: true, | |
| 361 | + writable: true | |
| 362 | + }); | |
| 363 | + } else { | |
| 364 | + obj[key] = value; | |
| 365 | + } | |
| 366 | + | |
| 367 | + return obj; | |
| 368 | +} | |
| 369 | + | |
| 370 | +module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 371 | + | |
| 372 | +/***/ }), | |
| 373 | + | |
| 374 | +/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js": | |
| 375 | +/*!***********************************************************************!*\ | |
| 376 | + !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***! | |
| 377 | + \***********************************************************************/ | |
| 378 | +/***/ ((module) => { | |
| 379 | + | |
| 380 | +function _interopRequireDefault(obj) { | |
| 381 | + return obj && obj.__esModule ? obj : { | |
| 382 | + "default": obj | |
| 383 | + }; | |
| 384 | +} | |
| 385 | + | |
| 386 | +module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 387 | + | |
| 388 | +/***/ }), | |
| 389 | + | |
| 390 | +/***/ "../node_modules/@babel/runtime/helpers/iterableToArray.js": | |
| 391 | +/*!*****************************************************************!*\ | |
| 392 | + !*** ../node_modules/@babel/runtime/helpers/iterableToArray.js ***! | |
| 393 | + \*****************************************************************/ | |
| 394 | +/***/ ((module) => { | |
| 395 | + | |
| 396 | +function _iterableToArray(iter) { | |
| 397 | + if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); | |
| 398 | +} | |
| 399 | + | |
| 400 | +module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 401 | + | |
| 402 | +/***/ }), | |
| 403 | + | |
| 404 | +/***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js": | |
| 405 | +/*!**********************************************************************!*\ | |
| 406 | + !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***! | |
| 407 | + \**********************************************************************/ | |
| 408 | +/***/ ((module) => { | |
| 409 | + | |
| 410 | +function _iterableToArrayLimit(arr, i) { | |
| 411 | + var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; | |
| 412 | + | |
| 413 | + if (_i == null) return; | |
| 414 | + var _arr = []; | |
| 415 | + var _n = true; | |
| 416 | + var _d = false; | |
| 417 | + | |
| 418 | + var _s, _e; | |
| 419 | + | |
| 420 | + try { | |
| 421 | + for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { | |
| 422 | + _arr.push(_s.value); | |
| 423 | + | |
| 424 | + if (i && _arr.length === i) break; | |
| 425 | + } | |
| 426 | + } catch (err) { | |
| 427 | + _d = true; | |
| 428 | + _e = err; | |
| 429 | + } finally { | |
| 430 | + try { | |
| 431 | + if (!_n && _i["return"] != null) _i["return"](); | |
| 432 | + } finally { | |
| 433 | + if (_d) throw _e; | |
| 434 | + } | |
| 435 | + } | |
| 436 | + | |
| 437 | + return _arr; | |
| 438 | +} | |
| 439 | + | |
| 440 | +module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 441 | + | |
| 442 | +/***/ }), | |
| 443 | + | |
| 444 | +/***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js": | |
| 445 | +/*!*****************************************************************!*\ | |
| 446 | + !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***! | |
| 447 | + \*****************************************************************/ | |
| 448 | +/***/ ((module) => { | |
| 449 | + | |
| 450 | +function _nonIterableRest() { | |
| 451 | + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
| 452 | +} | |
| 453 | + | |
| 454 | +module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 455 | + | |
| 456 | +/***/ }), | |
| 457 | + | |
| 458 | +/***/ "../node_modules/@babel/runtime/helpers/nonIterableSpread.js": | |
| 459 | +/*!*******************************************************************!*\ | |
| 460 | + !*** ../node_modules/@babel/runtime/helpers/nonIterableSpread.js ***! | |
| 461 | + \*******************************************************************/ | |
| 462 | +/***/ ((module) => { | |
| 463 | + | |
| 464 | +function _nonIterableSpread() { | |
| 465 | + throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
| 466 | +} | |
| 467 | + | |
| 468 | +module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 469 | + | |
| 470 | +/***/ }), | |
| 471 | + | |
| 472 | +/***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js": | |
| 473 | +/*!***************************************************************!*\ | |
| 474 | + !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***! | |
| 475 | + \***************************************************************/ | |
| 476 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 477 | + | |
| 478 | +var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js"); | |
| 479 | + | |
| 480 | +var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"); | |
| 481 | + | |
| 482 | +var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"); | |
| 483 | + | |
| 484 | +var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js"); | |
| 485 | + | |
| 486 | +function _slicedToArray(arr, i) { | |
| 487 | + return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest(); | |
| 488 | +} | |
| 489 | + | |
| 490 | +module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 491 | + | |
| 492 | +/***/ }), | |
| 493 | + | |
| 494 | +/***/ "../node_modules/@babel/runtime/helpers/toConsumableArray.js": | |
| 495 | +/*!*******************************************************************!*\ | |
| 496 | + !*** ../node_modules/@babel/runtime/helpers/toConsumableArray.js ***! | |
| 497 | + \*******************************************************************/ | |
| 498 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 499 | + | |
| 500 | +var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"); | |
| 501 | + | |
| 502 | +var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ "../node_modules/@babel/runtime/helpers/iterableToArray.js"); | |
| 503 | + | |
| 504 | +var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"); | |
| 505 | + | |
| 506 | +var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ "../node_modules/@babel/runtime/helpers/nonIterableSpread.js"); | |
| 507 | + | |
| 508 | +function _toConsumableArray(arr) { | |
| 509 | + return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread(); | |
| 510 | +} | |
| 511 | + | |
| 512 | +module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 513 | + | |
| 514 | +/***/ }), | |
| 515 | + | |
| 516 | +/***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js": | |
| 517 | +/*!****************************************************************************!*\ | |
| 518 | + !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***! | |
| 519 | + \****************************************************************************/ | |
| 520 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 521 | + | |
| 522 | +var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js"); | |
| 523 | + | |
| 524 | +function _unsupportedIterableToArray(o, minLen) { | |
| 525 | + if (!o) return; | |
| 526 | + if (typeof o === "string") return arrayLikeToArray(o, minLen); | |
| 527 | + var n = Object.prototype.toString.call(o).slice(8, -1); | |
| 528 | + if (n === "Object" && o.constructor) n = o.constructor.name; | |
| 529 | + if (n === "Map" || n === "Set") return Array.from(o); | |
| 530 | + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen); | |
| 531 | +} | |
| 532 | + | |
| 533 | +module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 534 | + | |
| 535 | +/***/ }) | |
| 536 | + | |
| 537 | +/******/ }); | |
| 538 | +/************************************************************************/ | |
| 539 | +/******/ // The module cache | |
| 540 | +/******/ var __webpack_module_cache__ = {}; | |
| 541 | +/******/ | |
| 542 | +/******/ // The require function | |
| 543 | +/******/ function __webpack_require__(moduleId) { | |
| 544 | +/******/ // Check if module is in cache | |
| 545 | +/******/ var cachedModule = __webpack_module_cache__[moduleId]; | |
| 546 | +/******/ if (cachedModule !== undefined) { | |
| 547 | +/******/ return cachedModule.exports; | |
| 548 | +/******/ } | |
| 549 | +/******/ // Create a new module (and put it into the cache) | |
| 550 | +/******/ var module = __webpack_module_cache__[moduleId] = { | |
| 551 | +/******/ // no module.id needed | |
| 552 | +/******/ // no module.loaded needed | |
| 553 | +/******/ exports: {} | |
| 554 | +/******/ }; | |
| 555 | +/******/ | |
| 556 | +/******/ // Execute the module function | |
| 557 | +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); | |
| 558 | +/******/ | |
| 559 | +/******/ // Return the exports of the module | |
| 560 | +/******/ return module.exports; | |
| 561 | +/******/ } | |
| 562 | +/******/ | |
| 563 | +/************************************************************************/ | |
| 564 | +var __webpack_exports__ = {}; | |
| 565 | +// This entry need to be wrapped in an IIFE because it need to be in strict mode. | |
| 566 | +(() => { | |
| 567 | +"use strict"; | |
| 568 | +/*!***********************************************!*\ | |
| 569 | + !*** ../modules/dev-tools/assets/js/index.js ***! | |
| 570 | + \***********************************************/ | |
| 571 | + | |
| 572 | + | |
| 573 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 574 | + | |
| 575 | +var _deprecation = _interopRequireDefault(__webpack_require__(/*! ./deprecation */ "../modules/dev-tools/assets/js/deprecation.js")); | |
| 576 | + | |
| 577 | +var _module = _interopRequireDefault(__webpack_require__(/*! ./module */ "../modules/dev-tools/assets/js/module.js")); | |
| 578 | + | |
| 579 | +if (!window.elementorDevTools) { | |
| 580 | + window.elementorDevTools = new _module.default(new _deprecation.default()); | |
| 581 | + window.elementorDevTools.notifyBackendDeprecations(); | |
| 582 | +} | |
| 299 | 583 | })(); |
| 584 | + | |
| 585 | +/******/ })() | |
| 586 | +; | |
| 300 | 587 | //# sourceMappingURL=dev-tools.js.map |