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