← All changes
|
assets/js/kit-elements-defaults-editor.js
+1298
-1728
4.2.0
→
4.3.0-beta3
View file →
| @@ -1,1780 +1,1350 @@ | ||
| 1 | -/******/ (() => { // webpackBootstrap | |
| 2 | -/******/ var __webpack_modules__ = ({ | |
| 1 | +(function(_wordpress_i18n) { | |
| 3 | 2 | |
| 4 | -/***/ "../modules/kit-elements-defaults/assets/js/editor/api.js": | |
| 5 | -/*!****************************************************************!*\ | |
| 6 | - !*** ../modules/kit-elements-defaults/assets/js/editor/api.js ***! | |
| 7 | - \****************************************************************/ | |
| 8 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 3 | +//#region \0rolldown/runtime.js | |
| 4 | + var __create = Object.create; | |
| 5 | + var __defProp = Object.defineProperty; | |
| 6 | + var __name = (target, value) => __defProp(target, "name", { | |
| 7 | + value, | |
| 8 | + configurable: true | |
| 9 | + }); | |
| 10 | + var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | |
| 11 | + var __getOwnPropNames = Object.getOwnPropertyNames; | |
| 12 | + var __getProtoOf = Object.getPrototypeOf; | |
| 13 | + var __hasOwnProp = Object.prototype.hasOwnProperty; | |
| 14 | + var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports); | |
| 15 | + var __exportAll = (all, no_symbols) => { | |
| 16 | + let target = {}; | |
| 17 | + for (var name in all) { | |
| 18 | + __defProp(target, name, { | |
| 19 | + get: all[name], | |
| 20 | + enumerable: true | |
| 21 | + }); | |
| 22 | + } | |
| 23 | + if (!no_symbols) { | |
| 24 | + __defProp(target, Symbol.toStringTag, { value: "Module" }); | |
| 25 | + } | |
| 26 | + return target; | |
| 27 | + }; | |
| 28 | + var __copyProps = (to, from, except, desc) => { | |
| 29 | + if (from && typeof from === "object" || typeof from === "function") { | |
| 30 | + for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) { | |
| 31 | + key = keys[i]; | |
| 32 | + if (!__hasOwnProp.call(to, key) && key !== except) { | |
| 33 | + __defProp(to, key, { | |
| 34 | + get: ((k) => from[k]).bind(null, key), | |
| 35 | + enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable | |
| 36 | + }); | |
| 37 | + } | |
| 38 | + } | |
| 39 | + } | |
| 40 | + return to; | |
| 41 | + }; | |
| 42 | + var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { | |
| 43 | + value: mod, | |
| 44 | + enumerable: true | |
| 45 | + }) : target, mod)); | |
| 9 | 46 | |
| 10 | -"use strict"; | |
| 47 | +//#endregion | |
| 11 | 48 | |
| 49 | +//#region node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js | |
| 50 | + function _arrayLikeToArray(r, a) { | |
| 51 | + (null == a || a > r.length) && (a = r.length); | |
| 52 | + for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; | |
| 53 | + return n; | |
| 54 | + } | |
| 12 | 55 | |
| 13 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 14 | -Object.defineProperty(exports, "__esModule", ({ | |
| 15 | - value: true | |
| 16 | -})); | |
| 17 | -exports.deleteElementDefaults = deleteElementDefaults; | |
| 18 | -exports.getElementDefaults = getElementDefaults; | |
| 19 | -exports.loadElementsDefaults = loadElementsDefaults; | |
| 20 | -exports.updateElementDefaults = updateElementDefaults; | |
| 21 | -var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ "../node_modules/@babel/runtime/regenerator/index.js")); | |
| 22 | -var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js")); | |
| 23 | -var NAMESPACE = 'kit-elements-defaults'; | |
| 24 | -function loadElementsDefaults() { | |
| 25 | - return _loadElementsDefaults.apply(this, arguments); | |
| 26 | -} | |
| 27 | -function _loadElementsDefaults() { | |
| 28 | - _loadElementsDefaults = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() { | |
| 29 | - return _regenerator.default.wrap(function (_context) { | |
| 30 | - while (1) switch (_context.prev = _context.next) { | |
| 31 | - case 0: | |
| 32 | - $e.data.cache.storage.removeItem(NAMESPACE); | |
| 33 | - return _context.abrupt("return", $e.data.get("".concat(NAMESPACE, "/index"))); | |
| 34 | - case 1: | |
| 35 | - case "end": | |
| 36 | - return _context.stop(); | |
| 37 | - } | |
| 38 | - }, _callee); | |
| 39 | - })); | |
| 40 | - return _loadElementsDefaults.apply(this, arguments); | |
| 41 | -} | |
| 42 | -function getElementDefaults(type) { | |
| 43 | - var defaults = $e.data.cache.storage.getItem(NAMESPACE) || {}; | |
| 44 | - return defaults[type] || {}; | |
| 45 | -} | |
| 46 | -function updateElementDefaults(_x, _x2) { | |
| 47 | - return _updateElementDefaults.apply(this, arguments); | |
| 48 | -} | |
| 49 | -function _updateElementDefaults() { | |
| 50 | - _updateElementDefaults = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2(type, settings) { | |
| 51 | - return _regenerator.default.wrap(function (_context2) { | |
| 52 | - while (1) switch (_context2.prev = _context2.next) { | |
| 53 | - case 0: | |
| 54 | - _context2.next = 1; | |
| 55 | - return $e.data.update("".concat(NAMESPACE, "/index"), { | |
| 56 | - settings: settings | |
| 57 | - }, { | |
| 58 | - type: type | |
| 59 | - }); | |
| 60 | - case 1: | |
| 61 | - _context2.next = 2; | |
| 62 | - return loadElementsDefaults(); | |
| 63 | - case 2: | |
| 64 | - case "end": | |
| 65 | - return _context2.stop(); | |
| 66 | - } | |
| 67 | - }, _callee2); | |
| 68 | - })); | |
| 69 | - return _updateElementDefaults.apply(this, arguments); | |
| 70 | -} | |
| 71 | -function deleteElementDefaults(_x3) { | |
| 72 | - return _deleteElementDefaults.apply(this, arguments); | |
| 73 | -} | |
| 74 | -function _deleteElementDefaults() { | |
| 75 | - _deleteElementDefaults = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3(type) { | |
| 76 | - return _regenerator.default.wrap(function (_context3) { | |
| 77 | - while (1) switch (_context3.prev = _context3.next) { | |
| 78 | - case 0: | |
| 79 | - _context3.next = 1; | |
| 80 | - return $e.data.delete("".concat(NAMESPACE, "/index"), { | |
| 81 | - type: type | |
| 82 | - }); | |
| 83 | - case 1: | |
| 84 | - _context3.next = 2; | |
| 85 | - return loadElementsDefaults(); | |
| 86 | - case 2: | |
| 87 | - case "end": | |
| 88 | - return _context3.stop(); | |
| 89 | - } | |
| 90 | - }, _callee3); | |
| 91 | - })); | |
| 92 | - return _deleteElementDefaults.apply(this, arguments); | |
| 93 | -} | |
| 56 | +//#endregion | |
| 57 | +//#region node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js | |
| 58 | + function _arrayWithoutHoles(r) { | |
| 59 | + if (Array.isArray(r)) return _arrayLikeToArray(r); | |
| 60 | + } | |
| 94 | 61 | |
| 95 | -/***/ }), | |
| 62 | +//#endregion | |
| 63 | +//#region node_modules/@babel/runtime/helpers/esm/iterableToArray.js | |
| 64 | + function _iterableToArray(r) { | |
| 65 | + if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); | |
| 66 | + } | |
| 96 | 67 | |
| 97 | -/***/ "../modules/kit-elements-defaults/assets/js/editor/commands/confirm-creation.js": | |
| 98 | -/*!**************************************************************************************!*\ | |
| 99 | - !*** ../modules/kit-elements-defaults/assets/js/editor/commands/confirm-creation.js ***! | |
| 100 | - \**************************************************************************************/ | |
| 101 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 68 | +//#endregion | |
| 69 | +//#region node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js | |
| 70 | + function _unsupportedIterableToArray(r, a) { | |
| 71 | + if (r) { | |
| 72 | + if ("string" == typeof r) return _arrayLikeToArray(r, a); | |
| 73 | + var t = {}.toString.call(r).slice(8, -1); | |
| 74 | + 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; | |
| 75 | + } | |
| 76 | + } | |
| 102 | 77 | |
| 103 | -"use strict"; | |
| 78 | +//#endregion | |
| 79 | +//#region node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js | |
| 80 | + function _nonIterableSpread() { | |
| 81 | + throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
| 82 | + } | |
| 104 | 83 | |
| 84 | +//#endregion | |
| 85 | +//#region node_modules/@babel/runtime/helpers/esm/toConsumableArray.js | |
| 86 | + function _toConsumableArray(r) { | |
| 87 | + return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); | |
| 88 | + } | |
| 105 | 89 | |
| 106 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 107 | -Object.defineProperty(exports, "__esModule", ({ | |
| 108 | - value: true | |
| 109 | -})); | |
| 110 | -exports["default"] = void 0; | |
| 111 | -var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ "../node_modules/@babel/runtime/regenerator/index.js")); | |
| 112 | -var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js")); | |
| 113 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 114 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 115 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 116 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 117 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 118 | -var _confirmCreationDialog = __webpack_require__(/*! ../confirm-creation-dialog */ "../modules/kit-elements-defaults/assets/js/editor/confirm-creation-dialog.js"); | |
| 119 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 120 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 121 | -var ConfirmCreation = exports["default"] = /*#__PURE__*/function (_$e$modules$editor$Co) { | |
| 122 | - function ConfirmCreation() { | |
| 123 | - (0, _classCallCheck2.default)(this, ConfirmCreation); | |
| 124 | - return _callSuper(this, ConfirmCreation, arguments); | |
| 125 | - } | |
| 126 | - (0, _inherits2.default)(ConfirmCreation, _$e$modules$editor$Co); | |
| 127 | - return (0, _createClass2.default)(ConfirmCreation, [{ | |
| 128 | - key: "validateArgs", | |
| 129 | - value: function validateArgs() { | |
| 130 | - this.requireContainer(); | |
| 131 | - } | |
| 132 | - }, { | |
| 133 | - key: "apply", | |
| 134 | - value: function () { | |
| 135 | - var _apply = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(_ref) { | |
| 136 | - var container, confirmCreationDialog; | |
| 137 | - return _regenerator.default.wrap(function (_context) { | |
| 138 | - while (1) switch (_context.prev = _context.next) { | |
| 139 | - case 0: | |
| 140 | - container = _ref.container; | |
| 141 | - confirmCreationDialog = (0, _confirmCreationDialog.getConfirmCreationDialog)({ | |
| 142 | - onConfirm: function onConfirm() { | |
| 143 | - return $e.run('kit-elements-defaults/create', { | |
| 144 | - container: container | |
| 145 | - }); | |
| 146 | - } | |
| 147 | - }); | |
| 148 | - if (!confirmCreationDialog.doNotShowAgain) { | |
| 149 | - _context.next = 1; | |
| 150 | - break; | |
| 151 | - } | |
| 152 | - $e.run('kit-elements-defaults/create', { | |
| 153 | - container: container | |
| 154 | - }); | |
| 155 | - return _context.abrupt("return"); | |
| 156 | - case 1: | |
| 157 | - confirmCreationDialog.show(); | |
| 158 | - case 2: | |
| 159 | - case "end": | |
| 160 | - return _context.stop(); | |
| 161 | - } | |
| 162 | - }, _callee); | |
| 163 | - })); | |
| 164 | - function apply(_x) { | |
| 165 | - return _apply.apply(this, arguments); | |
| 166 | - } | |
| 167 | - return apply; | |
| 168 | - }() | |
| 169 | - }]); | |
| 170 | -}($e.modules.editor.CommandContainerBase); | |
| 90 | +//#endregion | |
| 91 | +//#region node_modules/@babel/runtime/helpers/esm/classCallCheck.js | |
| 92 | + function _classCallCheck(a, n) { | |
| 93 | + if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); | |
| 94 | + } | |
| 171 | 95 | |
| 172 | -/***/ }), | |
| 96 | +//#endregion | |
| 97 | +//#region node_modules/@babel/runtime/helpers/esm/typeof.js | |
| 98 | + function _typeof(o) { | |
| 99 | + "@babel/helpers - typeof"; | |
| 100 | + return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) { | |
| 101 | + return typeof o; | |
| 102 | + } : function(o) { | |
| 103 | + return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; | |
| 104 | + }, _typeof(o); | |
| 105 | + } | |
| 173 | 106 | |
| 174 | -/***/ "../modules/kit-elements-defaults/assets/js/editor/commands/create.js": | |
| 175 | -/*!****************************************************************************!*\ | |
| 176 | - !*** ../modules/kit-elements-defaults/assets/js/editor/commands/create.js ***! | |
| 177 | - \****************************************************************************/ | |
| 178 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 107 | +//#endregion | |
| 108 | +//#region node_modules/@babel/runtime/helpers/esm/toPrimitive.js | |
| 109 | + function toPrimitive(t, r) { | |
| 110 | + if ("object" != _typeof(t) || !t) return t; | |
| 111 | + var e = t[Symbol.toPrimitive]; | |
| 112 | + if (void 0 !== e) { | |
| 113 | + var i = e.call(t, r || "default"); | |
| 114 | + if ("object" != _typeof(i)) return i; | |
| 115 | + throw new TypeError("@@toPrimitive must return a primitive value."); | |
| 116 | + } | |
| 117 | + return ("string" === r ? String : Number)(t); | |
| 118 | + } | |
| 179 | 119 | |
| 180 | -"use strict"; | |
| 181 | -/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 120 | +//#endregion | |
| 121 | +//#region node_modules/@babel/runtime/helpers/esm/toPropertyKey.js | |
| 122 | + function toPropertyKey(t) { | |
| 123 | + var i = toPrimitive(t, "string"); | |
| 124 | + return "symbol" == _typeof(i) ? i : i + ""; | |
| 125 | + } | |
| 182 | 126 | |
| 127 | +//#endregion | |
| 128 | +//#region node_modules/@babel/runtime/helpers/esm/createClass.js | |
| 129 | + function _defineProperties(e, r) { | |
| 130 | + for (var t = 0; t < r.length; t++) { | |
| 131 | + var o = r[t]; | |
| 132 | + o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o); | |
| 133 | + } | |
| 134 | + } | |
| 135 | + function _createClass(e, r, t) { | |
| 136 | + return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; | |
| 137 | + } | |
| 183 | 138 | |
| 184 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 185 | -Object.defineProperty(exports, "__esModule", ({ | |
| 186 | - value: true | |
| 187 | -})); | |
| 188 | -exports["default"] = void 0; | |
| 189 | -var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ "../node_modules/@babel/runtime/regenerator/index.js")); | |
| 190 | -var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js")); | |
| 191 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 192 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 193 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 194 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 195 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 196 | -var _api = __webpack_require__(/*! ../api */ "../modules/kit-elements-defaults/assets/js/editor/api.js"); | |
| 197 | -var _extractContainerSettings = _interopRequireDefault(__webpack_require__(/*! ../extract-container-settings */ "../modules/kit-elements-defaults/assets/js/editor/extract-container-settings.js")); | |
| 198 | -var _utils = __webpack_require__(/*! ../utils */ "../modules/kit-elements-defaults/assets/js/editor/utils.js"); | |
| 199 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 200 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 201 | -var Create = exports["default"] = /*#__PURE__*/function (_$e$modules$editor$Co) { | |
| 202 | - function Create() { | |
| 203 | - (0, _classCallCheck2.default)(this, Create); | |
| 204 | - return _callSuper(this, Create, arguments); | |
| 205 | - } | |
| 206 | - (0, _inherits2.default)(Create, _$e$modules$editor$Co); | |
| 207 | - return (0, _createClass2.default)(Create, [{ | |
| 208 | - key: "validateArgs", | |
| 209 | - value: function validateArgs() { | |
| 210 | - this.requireContainer(); | |
| 211 | - } | |
| 212 | - }, { | |
| 213 | - key: "apply", | |
| 214 | - value: function () { | |
| 215 | - var _apply = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(_ref) { | |
| 216 | - var container, type, previousDefaults, newDefaults, _t; | |
| 217 | - return _regenerator.default.wrap(function (_context) { | |
| 218 | - while (1) switch (_context.prev = _context.next) { | |
| 219 | - case 0: | |
| 220 | - container = _ref.container; | |
| 221 | - $e.internal('panel/state-loading'); | |
| 222 | - type = (0, _utils.extractElementType)(container.model), previousDefaults = (0, _api.getElementDefaults)(type), newDefaults = (0, _extractContainerSettings.default)(container); | |
| 223 | - _context.prev = 1; | |
| 224 | - _context.next = 2; | |
| 225 | - return (0, _api.updateElementDefaults)(type, newDefaults); | |
| 226 | - case 2: | |
| 227 | - elementor.notifications.showToast({ | |
| 228 | - message: __('Default settings changed.', 'elementor'), | |
| 229 | - buttons: [{ | |
| 230 | - name: 'undo', | |
| 231 | - text: __('Undo', 'elementor'), | |
| 232 | - callback: function callback() { | |
| 233 | - $e.run('kit-elements-defaults/restore', { | |
| 234 | - type: type, | |
| 235 | - settings: previousDefaults | |
| 236 | - }); | |
| 237 | - } | |
| 238 | - }] | |
| 239 | - }); | |
| 240 | - _context.next = 4; | |
| 241 | - break; | |
| 242 | - case 3: | |
| 243 | - _context.prev = 3; | |
| 244 | - _t = _context["catch"](1); | |
| 245 | - elementor.notifications.showToast({ | |
| 246 | - message: __('An error occurred.', 'elementor') | |
| 247 | - }); | |
| 248 | - throw _t; | |
| 249 | - case 4: | |
| 250 | - _context.prev = 4; | |
| 251 | - $e.internal('panel/state-ready'); | |
| 252 | - return _context.finish(4); | |
| 253 | - case 5: | |
| 254 | - case "end": | |
| 255 | - return _context.stop(); | |
| 256 | - } | |
| 257 | - }, _callee, null, [[1, 3, 4, 5]]); | |
| 258 | - })); | |
| 259 | - function apply(_x) { | |
| 260 | - return _apply.apply(this, arguments); | |
| 261 | - } | |
| 262 | - return apply; | |
| 263 | - }() | |
| 264 | - }]); | |
| 265 | -}($e.modules.editor.CommandContainerBase); | |
| 139 | +//#endregion | |
| 140 | +//#region node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js | |
| 141 | + function _assertThisInitialized(e) { | |
| 142 | + if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| 143 | + return e; | |
| 144 | + } | |
| 266 | 145 | |
| 267 | -/***/ }), | |
| 146 | +//#endregion | |
| 147 | +//#region node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js | |
| 148 | + function _possibleConstructorReturn(t, e) { | |
| 149 | + if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; | |
| 150 | + if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); | |
| 151 | + return _assertThisInitialized(t); | |
| 152 | + } | |
| 268 | 153 | |
| 269 | -/***/ "../modules/kit-elements-defaults/assets/js/editor/commands/delete.js": | |
| 270 | -/*!****************************************************************************!*\ | |
| 271 | - !*** ../modules/kit-elements-defaults/assets/js/editor/commands/delete.js ***! | |
| 272 | - \****************************************************************************/ | |
| 273 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 154 | +//#endregion | |
| 155 | +//#region node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js | |
| 156 | + function _getPrototypeOf(t) { | |
| 157 | + return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) { | |
| 158 | + return t.__proto__ || Object.getPrototypeOf(t); | |
| 159 | + }, _getPrototypeOf(t); | |
| 160 | + } | |
| 274 | 161 | |
| 275 | -"use strict"; | |
| 276 | -/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 162 | +//#endregion | |
| 163 | +//#region node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js | |
| 164 | + function _setPrototypeOf(t, e) { | |
| 165 | + return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) { | |
| 166 | + return t.__proto__ = e, t; | |
| 167 | + }, _setPrototypeOf(t, e); | |
| 168 | + } | |
| 277 | 169 | |
| 170 | +//#endregion | |
| 171 | +//#region node_modules/@babel/runtime/helpers/esm/inherits.js | |
| 172 | + function _inherits(t, e) { | |
| 173 | + if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); | |
| 174 | + t.prototype = Object.create(e && e.prototype, { constructor: { | |
| 175 | + value: t, | |
| 176 | + writable: !0, | |
| 177 | + configurable: !0 | |
| 178 | + } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); | |
| 179 | + } | |
| 278 | 180 | |
| 279 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 280 | -Object.defineProperty(exports, "__esModule", ({ | |
| 281 | - value: true | |
| 282 | -})); | |
| 283 | -exports["default"] = void 0; | |
| 284 | -var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ "../node_modules/@babel/runtime/regenerator/index.js")); | |
| 285 | -var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js")); | |
| 286 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 287 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 288 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 289 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 290 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 291 | -var _api = __webpack_require__(/*! ../api */ "../modules/kit-elements-defaults/assets/js/editor/api.js"); | |
| 292 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 293 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 294 | -var Delete = exports["default"] = /*#__PURE__*/function (_$e$modules$CommandBa) { | |
| 295 | - function Delete() { | |
| 296 | - (0, _classCallCheck2.default)(this, Delete); | |
| 297 | - return _callSuper(this, Delete, arguments); | |
| 298 | - } | |
| 299 | - (0, _inherits2.default)(Delete, _$e$modules$CommandBa); | |
| 300 | - return (0, _createClass2.default)(Delete, [{ | |
| 301 | - key: "apply", | |
| 302 | - value: function () { | |
| 303 | - var _apply = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(_ref) { | |
| 304 | - var type, _t; | |
| 305 | - return _regenerator.default.wrap(function (_context) { | |
| 306 | - while (1) switch (_context.prev = _context.next) { | |
| 307 | - case 0: | |
| 308 | - type = _ref.type; | |
| 309 | - $e.internal('panel/state-loading'); | |
| 310 | - _context.prev = 1; | |
| 311 | - _context.next = 2; | |
| 312 | - return (0, _api.deleteElementDefaults)(type); | |
| 313 | - case 2: | |
| 314 | - elementor.notifications.showToast({ | |
| 315 | - message: __('Default settings has been reset.', 'elementor') | |
| 316 | - }); | |
| 317 | - _context.next = 4; | |
| 318 | - break; | |
| 319 | - case 3: | |
| 320 | - _context.prev = 3; | |
| 321 | - _t = _context["catch"](1); | |
| 322 | - elementor.notifications.showToast({ | |
| 323 | - message: __('An error occurred.', 'elementor') | |
| 324 | - }); | |
| 325 | - throw _t; | |
| 326 | - case 4: | |
| 327 | - _context.prev = 4; | |
| 328 | - $e.internal('panel/state-ready'); | |
| 329 | - return _context.finish(4); | |
| 330 | - case 5: | |
| 331 | - case "end": | |
| 332 | - return _context.stop(); | |
| 333 | - } | |
| 334 | - }, _callee, null, [[1, 3, 4, 5]]); | |
| 335 | - })); | |
| 336 | - function apply(_x) { | |
| 337 | - return _apply.apply(this, arguments); | |
| 338 | - } | |
| 339 | - return apply; | |
| 340 | - }() | |
| 341 | - }]); | |
| 342 | -}($e.modules.CommandBase); | |
| 181 | +//#endregion | |
| 182 | +//#region node_modules/@babel/runtime/helpers/esm/defineProperty.js | |
| 183 | + function _defineProperty(e, r, t) { | |
| 184 | + return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, { | |
| 185 | + value: t, | |
| 186 | + enumerable: !0, | |
| 187 | + configurable: !0, | |
| 188 | + writable: !0 | |
| 189 | + }) : e[r] = t, e; | |
| 190 | + } | |
| 343 | 191 | |
| 344 | -/***/ }), | |
| 192 | +//#endregion | |
| 193 | +//#region node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js | |
| 194 | + function asyncGeneratorStep(n, t, e, r, o, a, c) { | |
| 195 | + try { | |
| 196 | + var i = n[a](c); | |
| 197 | + var u = i.value; | |
| 198 | + } catch (n) { | |
| 199 | + e(n); | |
| 200 | + return; | |
| 201 | + } | |
| 202 | + i.done ? t(u) : Promise.resolve(u).then(r, o); | |
| 203 | + } | |
| 204 | + function _asyncToGenerator(n) { | |
| 205 | + return function() { | |
| 206 | + var t = this; | |
| 207 | + var e = arguments; | |
| 208 | + return new Promise(function(r, o) { | |
| 209 | + var a = n.apply(t, e); | |
| 210 | + function _next(n) { | |
| 211 | + asyncGeneratorStep(a, r, o, _next, _throw, "next", n); | |
| 212 | + } | |
| 213 | + function _throw(n) { | |
| 214 | + asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); | |
| 215 | + } | |
| 216 | + _next(void 0); | |
| 217 | + }); | |
| 218 | + }; | |
| 219 | + } | |
| 345 | 220 | |
| 346 | -/***/ "../modules/kit-elements-defaults/assets/js/editor/commands/index.js": | |
| 347 | -/*!***************************************************************************!*\ | |
| 348 | - !*** ../modules/kit-elements-defaults/assets/js/editor/commands/index.js ***! | |
| 349 | - \***************************************************************************/ | |
| 350 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 221 | +//#endregion | |
| 222 | +//#region node_modules/@babel/runtime/helpers/OverloadYield.js | |
| 223 | + var require_OverloadYield = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 224 | + function _OverloadYield(e, d) { | |
| 225 | + this.v = e, this.k = d; | |
| 226 | + } | |
| 227 | + module.exports = _OverloadYield, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 228 | + })); | |
| 351 | 229 | |
| 352 | -"use strict"; | |
| 230 | +//#endregion | |
| 231 | +//#region node_modules/@babel/runtime/helpers/regeneratorDefine.js | |
| 232 | + var require_regeneratorDefine = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 233 | + function _regeneratorDefine(e, r, n, t) { | |
| 234 | + var i = Object.defineProperty; | |
| 235 | + try { | |
| 236 | + i({}, "", {}); | |
| 237 | + } catch (e) { | |
| 238 | + i = 0; | |
| 239 | + } | |
| 240 | + module.exports = _regeneratorDefine = function regeneratorDefine(e, r, n, t) { | |
| 241 | + function o(r, n) { | |
| 242 | + _regeneratorDefine(e, r, function(e) { | |
| 243 | + return this._invoke(r, n, e); | |
| 244 | + }); | |
| 245 | + } | |
| 246 | + r ? i ? i(e, r, { | |
| 247 | + value: n, | |
| 248 | + enumerable: !t, | |
| 249 | + configurable: !t, | |
| 250 | + writable: !t | |
| 251 | + }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); | |
| 252 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports, _regeneratorDefine(e, r, n, t); | |
| 253 | + } | |
| 254 | + module.exports = _regeneratorDefine, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 255 | + })); | |
| 353 | 256 | |
| 257 | +//#endregion | |
| 258 | +//#region node_modules/@babel/runtime/helpers/regenerator.js | |
| 259 | + var require_regenerator$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 260 | + var regeneratorDefine = require_regeneratorDefine(); | |
| 261 | + function _regenerator() { | |
| 262 | + /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ | |
| 263 | + var e; | |
| 264 | + var t; | |
| 265 | + var r = "function" == typeof Symbol ? Symbol : {}; | |
| 266 | + var n = r.iterator || "@@iterator"; | |
| 267 | + var o = r.toStringTag || "@@toStringTag"; | |
| 268 | + function i(r, n, o, i) { | |
| 269 | + var c = n && n.prototype instanceof Generator ? n : Generator; | |
| 270 | + var u = Object.create(c.prototype); | |
| 271 | + return regeneratorDefine(u, "_invoke", function(r, n, o) { | |
| 272 | + var i; | |
| 273 | + var c; | |
| 274 | + var u; | |
| 275 | + var f = 0; | |
| 276 | + var p = o || []; | |
| 277 | + var y = !1; | |
| 278 | + var G = { | |
| 279 | + p: 0, | |
| 280 | + n: 0, | |
| 281 | + v: e, | |
| 282 | + a: d, | |
| 283 | + f: d.bind(e, 4), | |
| 284 | + d: function d(t, r) { | |
| 285 | + return i = t, c = 0, u = e, G.n = r, a; | |
| 286 | + } | |
| 287 | + }; | |
| 288 | + function d(r, n) { | |
| 289 | + for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { | |
| 290 | + var o; | |
| 291 | + var i = p[t]; | |
| 292 | + var d = G.p; | |
| 293 | + var l = i[2]; | |
| 294 | + r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); | |
| 295 | + } | |
| 296 | + if (o || r > 1) return a; | |
| 297 | + throw y = !0, n; | |
| 298 | + } | |
| 299 | + return function(o, p, l) { | |
| 300 | + if (f > 1) throw TypeError("Generator is already running"); | |
| 301 | + for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { | |
| 302 | + i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); | |
| 303 | + try { | |
| 304 | + if (f = 2, i) { | |
| 305 | + if (c || (o = "next"), t = i[o]) { | |
| 306 | + if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); | |
| 307 | + if (!t.done) return t; | |
| 308 | + u = t.value, c < 2 && (c = 0); | |
| 309 | + } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); | |
| 310 | + i = e; | |
| 311 | + } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; | |
| 312 | + } catch (t) { | |
| 313 | + i = e, c = 1, u = t; | |
| 314 | + } finally { | |
| 315 | + f = 1; | |
| 316 | + } | |
| 317 | + } | |
| 318 | + return { | |
| 319 | + value: t, | |
| 320 | + done: y | |
| 321 | + }; | |
| 322 | + }; | |
| 323 | + }(r, o, i), !0), u; | |
| 324 | + } | |
| 325 | + var a = {}; | |
| 326 | + function Generator() {} | |
| 327 | + function GeneratorFunction() {} | |
| 328 | + function GeneratorFunctionPrototype() {} | |
| 329 | + t = Object.getPrototypeOf; | |
| 330 | + var c = [][n] ? t(t([][n]())) : (regeneratorDefine(t = {}, n, function() { | |
| 331 | + return this; | |
| 332 | + }), t); | |
| 333 | + var u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); | |
| 334 | + function f(e) { | |
| 335 | + return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; | |
| 336 | + } | |
| 337 | + return GeneratorFunction.prototype = GeneratorFunctionPrototype, regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), regeneratorDefine(u), regeneratorDefine(u, o, "Generator"), regeneratorDefine(u, n, function() { | |
| 338 | + return this; | |
| 339 | + }), regeneratorDefine(u, "toString", function() { | |
| 340 | + return "[object Generator]"; | |
| 341 | + }), (module.exports = _regenerator = function _regenerator() { | |
| 342 | + return { | |
| 343 | + w: i, | |
| 344 | + m: f | |
| 345 | + }; | |
| 346 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports)(); | |
| 347 | + } | |
| 348 | + module.exports = _regenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 349 | + })); | |
| 354 | 350 | |
| 355 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 356 | -Object.defineProperty(exports, "__esModule", ({ | |
| 357 | - value: true | |
| 358 | -})); | |
| 359 | -Object.defineProperty(exports, "ConfirmCreation", ({ | |
| 360 | - enumerable: true, | |
| 361 | - get: function get() { | |
| 362 | - return _confirmCreation.default; | |
| 363 | - } | |
| 364 | -})); | |
| 365 | -Object.defineProperty(exports, "Create", ({ | |
| 366 | - enumerable: true, | |
| 367 | - get: function get() { | |
| 368 | - return _create.default; | |
| 369 | - } | |
| 370 | -})); | |
| 371 | -Object.defineProperty(exports, "Delete", ({ | |
| 372 | - enumerable: true, | |
| 373 | - get: function get() { | |
| 374 | - return _delete.default; | |
| 375 | - } | |
| 376 | -})); | |
| 377 | -Object.defineProperty(exports, "Restore", ({ | |
| 378 | - enumerable: true, | |
| 379 | - get: function get() { | |
| 380 | - return _restore.default; | |
| 381 | - } | |
| 382 | -})); | |
| 383 | -var _confirmCreation = _interopRequireDefault(__webpack_require__(/*! ./confirm-creation */ "../modules/kit-elements-defaults/assets/js/editor/commands/confirm-creation.js")); | |
| 384 | -var _create = _interopRequireDefault(__webpack_require__(/*! ./create */ "../modules/kit-elements-defaults/assets/js/editor/commands/create.js")); | |
| 385 | -var _delete = _interopRequireDefault(__webpack_require__(/*! ./delete */ "../modules/kit-elements-defaults/assets/js/editor/commands/delete.js")); | |
| 386 | -var _restore = _interopRequireDefault(__webpack_require__(/*! ./restore */ "../modules/kit-elements-defaults/assets/js/editor/commands/restore.js")); | |
| 351 | +//#endregion | |
| 352 | +//#region node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js | |
| 353 | + var require_regeneratorAsyncIterator = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 354 | + var OverloadYield = require_OverloadYield(); | |
| 355 | + var regeneratorDefine = require_regeneratorDefine(); | |
| 356 | + function AsyncIterator(t, e) { | |
| 357 | + function n(r, o, i, f) { | |
| 358 | + try { | |
| 359 | + var c = t[r](o); | |
| 360 | + var u = c.value; | |
| 361 | + return u instanceof OverloadYield ? e.resolve(u.v).then(function(t) { | |
| 362 | + n("next", t, i, f); | |
| 363 | + }, function(t) { | |
| 364 | + n("throw", t, i, f); | |
| 365 | + }) : e.resolve(u).then(function(t) { | |
| 366 | + c.value = t, i(c); | |
| 367 | + }, function(t) { | |
| 368 | + return n("throw", t, i, f); | |
| 369 | + }); | |
| 370 | + } catch (t) { | |
| 371 | + f(t); | |
| 372 | + } | |
| 373 | + } | |
| 374 | + var r; | |
| 375 | + this.next || (regeneratorDefine(AsyncIterator.prototype), regeneratorDefine(AsyncIterator.prototype, "function" == typeof Symbol && Symbol.asyncIterator || "@asyncIterator", function() { | |
| 376 | + return this; | |
| 377 | + })), regeneratorDefine(this, "_invoke", function(t, o, i) { | |
| 378 | + function f() { | |
| 379 | + return new e(function(e, r) { | |
| 380 | + n(t, i, e, r); | |
| 381 | + }); | |
| 382 | + } | |
| 383 | + return r = r ? r.then(f, f) : f(); | |
| 384 | + }, !0); | |
| 385 | + } | |
| 386 | + module.exports = AsyncIterator, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 387 | + })); | |
| 387 | 388 | |
| 388 | -/***/ }), | |
| 389 | +//#endregion | |
| 390 | +//#region node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js | |
| 391 | + var require_regeneratorAsyncGen = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 392 | + var regenerator = require_regenerator$1(); | |
| 393 | + var regeneratorAsyncIterator = require_regeneratorAsyncIterator(); | |
| 394 | + function _regeneratorAsyncGen(r, e, t, o, n) { | |
| 395 | + return new regeneratorAsyncIterator(regenerator().w(r, e, t, o), n || Promise); | |
| 396 | + } | |
| 397 | + module.exports = _regeneratorAsyncGen, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 398 | + })); | |
| 389 | 399 | |
| 390 | -/***/ "../modules/kit-elements-defaults/assets/js/editor/commands/restore.js": | |
| 391 | -/*!*****************************************************************************!*\ | |
| 392 | - !*** ../modules/kit-elements-defaults/assets/js/editor/commands/restore.js ***! | |
| 393 | - \*****************************************************************************/ | |
| 394 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 400 | +//#endregion | |
| 401 | +//#region node_modules/@babel/runtime/helpers/regeneratorAsync.js | |
| 402 | + var require_regeneratorAsync = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 403 | + var regeneratorAsyncGen = require_regeneratorAsyncGen(); | |
| 404 | + function _regeneratorAsync(n, e, r, t, o) { | |
| 405 | + var a = regeneratorAsyncGen(n, e, r, t, o); | |
| 406 | + return a.next().then(function(n) { | |
| 407 | + return n.done ? n.value : a.next(); | |
| 408 | + }); | |
| 409 | + } | |
| 410 | + module.exports = _regeneratorAsync, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 411 | + })); | |
| 395 | 412 | |
| 396 | -"use strict"; | |
| 397 | -/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 413 | +//#endregion | |
| 414 | +//#region node_modules/@babel/runtime/helpers/regeneratorKeys.js | |
| 415 | + var require_regeneratorKeys = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 416 | + function _regeneratorKeys(e) { | |
| 417 | + var n = Object(e); | |
| 418 | + var r = []; | |
| 419 | + for (var t in n) r.unshift(t); | |
| 420 | + return function e() { | |
| 421 | + for (; r.length;) if ((t = r.pop()) in n) return e.value = t, e.done = !1, e; | |
| 422 | + return e.done = !0, e; | |
| 423 | + }; | |
| 424 | + } | |
| 425 | + module.exports = _regeneratorKeys, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 426 | + })); | |
| 398 | 427 | |
| 428 | +//#endregion | |
| 429 | +//#region node_modules/@babel/runtime/helpers/typeof.js | |
| 430 | + var require_typeof = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 431 | + function _typeof(o) { | |
| 432 | + "@babel/helpers - typeof"; | |
| 433 | + return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) { | |
| 434 | + return typeof o; | |
| 435 | + } : function(o) { | |
| 436 | + return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; | |
| 437 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o); | |
| 438 | + } | |
| 439 | + module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 440 | + })); | |
| 399 | 441 | |
| 400 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 401 | -Object.defineProperty(exports, "__esModule", ({ | |
| 402 | - value: true | |
| 403 | -})); | |
| 404 | -exports["default"] = void 0; | |
| 405 | -var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ "../node_modules/@babel/runtime/regenerator/index.js")); | |
| 406 | -var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js")); | |
| 407 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 408 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 409 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 410 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 411 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 412 | -var _api = __webpack_require__(/*! ../api */ "../modules/kit-elements-defaults/assets/js/editor/api.js"); | |
| 413 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 414 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 415 | -var Restore = exports["default"] = /*#__PURE__*/function (_$e$modules$CommandBa) { | |
| 416 | - function Restore() { | |
| 417 | - (0, _classCallCheck2.default)(this, Restore); | |
| 418 | - return _callSuper(this, Restore, arguments); | |
| 419 | - } | |
| 420 | - (0, _inherits2.default)(Restore, _$e$modules$CommandBa); | |
| 421 | - return (0, _createClass2.default)(Restore, [{ | |
| 422 | - key: "apply", | |
| 423 | - value: function () { | |
| 424 | - var _apply = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(_ref) { | |
| 425 | - var type, settings, _t; | |
| 426 | - return _regenerator.default.wrap(function (_context) { | |
| 427 | - while (1) switch (_context.prev = _context.next) { | |
| 428 | - case 0: | |
| 429 | - type = _ref.type, settings = _ref.settings; | |
| 430 | - $e.internal('panel/state-loading'); | |
| 431 | - _context.prev = 1; | |
| 432 | - _context.next = 2; | |
| 433 | - return (0, _api.updateElementDefaults)(type, settings); | |
| 434 | - case 2: | |
| 435 | - elementor.notifications.showToast({ | |
| 436 | - message: __('Previous settings restored.', 'elementor') | |
| 437 | - }); | |
| 438 | - _context.next = 4; | |
| 439 | - break; | |
| 440 | - case 3: | |
| 441 | - _context.prev = 3; | |
| 442 | - _t = _context["catch"](1); | |
| 443 | - elementor.notifications.showToast({ | |
| 444 | - message: __('An error occurred.', 'elementor') | |
| 445 | - }); | |
| 446 | - throw _t; | |
| 447 | - case 4: | |
| 448 | - _context.prev = 4; | |
| 449 | - $e.internal('panel/state-ready'); | |
| 450 | - return _context.finish(4); | |
| 451 | - case 5: | |
| 452 | - case "end": | |
| 453 | - return _context.stop(); | |
| 454 | - } | |
| 455 | - }, _callee, null, [[1, 3, 4, 5]]); | |
| 456 | - })); | |
| 457 | - function apply(_x) { | |
| 458 | - return _apply.apply(this, arguments); | |
| 459 | - } | |
| 460 | - return apply; | |
| 461 | - }() | |
| 462 | - }]); | |
| 463 | -}($e.modules.CommandBase); | |
| 442 | +//#endregion | |
| 443 | +//#region node_modules/@babel/runtime/helpers/regeneratorValues.js | |
| 444 | + var require_regeneratorValues = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 445 | + var _typeof = require_typeof()["default"]; | |
| 446 | + function _regeneratorValues(e) { | |
| 447 | + if (null != e) { | |
| 448 | + var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"]; | |
| 449 | + var r = 0; | |
| 450 | + if (t) return t.call(e); | |
| 451 | + if ("function" == typeof e.next) return e; | |
| 452 | + if (!isNaN(e.length)) return { next: function next() { | |
| 453 | + return e && r >= e.length && (e = void 0), { | |
| 454 | + value: e && e[r++], | |
| 455 | + done: !e | |
| 456 | + }; | |
| 457 | + } }; | |
| 458 | + } | |
| 459 | + throw new TypeError(_typeof(e) + " is not iterable"); | |
| 460 | + } | |
| 461 | + module.exports = _regeneratorValues, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 462 | + })); | |
| 464 | 463 | |
| 465 | -/***/ }), | |
| 464 | +//#endregion | |
| 465 | +//#region node_modules/@babel/runtime/helpers/regeneratorRuntime.js | |
| 466 | + var require_regeneratorRuntime = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 467 | + var OverloadYield = require_OverloadYield(); | |
| 468 | + var regenerator = require_regenerator$1(); | |
| 469 | + var regeneratorAsync = require_regeneratorAsync(); | |
| 470 | + var regeneratorAsyncGen = require_regeneratorAsyncGen(); | |
| 471 | + var regeneratorAsyncIterator = require_regeneratorAsyncIterator(); | |
| 472 | + var regeneratorKeys = require_regeneratorKeys(); | |
| 473 | + var regeneratorValues = require_regeneratorValues(); | |
| 474 | + function _regeneratorRuntime() { | |
| 475 | + "use strict"; | |
| 476 | + var r = regenerator(); | |
| 477 | + var e = r.m(_regeneratorRuntime); | |
| 478 | + var t = (Object.getPrototypeOf ? Object.getPrototypeOf(e) : e.__proto__).constructor; | |
| 479 | + function n(r) { | |
| 480 | + var e = "function" == typeof r && r.constructor; | |
| 481 | + return !!e && (e === t || "GeneratorFunction" === (e.displayName || e.name)); | |
| 482 | + } | |
| 483 | + var o = { | |
| 484 | + "throw": 1, | |
| 485 | + "return": 2, | |
| 486 | + "break": 3, | |
| 487 | + "continue": 3 | |
| 488 | + }; | |
| 489 | + function a(r) { | |
| 490 | + var e; | |
| 491 | + var t; | |
| 492 | + return function(n) { | |
| 493 | + e || (e = { | |
| 494 | + stop: function stop() { | |
| 495 | + return t(n.a, 2); | |
| 496 | + }, | |
| 497 | + "catch": function _catch() { | |
| 498 | + return n.v; | |
| 499 | + }, | |
| 500 | + abrupt: function abrupt(r, e) { | |
| 501 | + return t(n.a, o[r], e); | |
| 502 | + }, | |
| 503 | + delegateYield: function delegateYield(r, o, a) { | |
| 504 | + return e.resultName = o, t(n.d, regeneratorValues(r), a); | |
| 505 | + }, | |
| 506 | + finish: function finish(r) { | |
| 507 | + return t(n.f, r); | |
| 508 | + } | |
| 509 | + }, t = function t(r, _t, o) { | |
| 510 | + n.p = e.prev, n.n = e.next; | |
| 511 | + try { | |
| 512 | + return r(_t, o); | |
| 513 | + } finally { | |
| 514 | + e.next = n.n; | |
| 515 | + } | |
| 516 | + }), e.resultName && (e[e.resultName] = n.v, e.resultName = void 0), e.sent = n.v, e.next = n.n; | |
| 517 | + try { | |
| 518 | + return r.call(this, e); | |
| 519 | + } finally { | |
| 520 | + n.p = e.prev, n.n = e.next; | |
| 521 | + } | |
| 522 | + }; | |
| 523 | + } | |
| 524 | + return (module.exports = _regeneratorRuntime = function _regeneratorRuntime() { | |
| 525 | + return { | |
| 526 | + wrap: function wrap(e, t, n, o) { | |
| 527 | + return r.w(a(e), t, n, o && o.reverse()); | |
| 528 | + }, | |
| 529 | + isGeneratorFunction: n, | |
| 530 | + mark: r.m, | |
| 531 | + awrap: function awrap(r, e) { | |
| 532 | + return new OverloadYield(r, e); | |
| 533 | + }, | |
| 534 | + AsyncIterator: regeneratorAsyncIterator, | |
| 535 | + async: function async(r, e, t, o, u) { | |
| 536 | + return (n(e) ? regeneratorAsyncGen : regeneratorAsync)(a(r), e, t, o, u); | |
| 537 | + }, | |
| 538 | + keys: regeneratorKeys, | |
| 539 | + values: regeneratorValues | |
| 540 | + }; | |
| 541 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports)(); | |
| 542 | + } | |
| 543 | + module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 544 | + })); | |
| 466 | 545 | |
| 467 | -/***/ "../modules/kit-elements-defaults/assets/js/editor/component.js": | |
| 468 | -/*!**********************************************************************!*\ | |
| 469 | - !*** ../modules/kit-elements-defaults/assets/js/editor/component.js ***! | |
| 470 | - \**********************************************************************/ | |
| 471 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 546 | +//#endregion | |
| 547 | +//#region node_modules/@babel/runtime/regenerator/index.js | |
| 548 | + var require_regenerator = /* @__PURE__ */ __commonJSMin(((exports, module) => { | |
| 549 | + var runtime = require_regeneratorRuntime()(); | |
| 550 | + module.exports = runtime; | |
| 551 | + try { | |
| 552 | + regeneratorRuntime = runtime; | |
| 553 | + } catch (accidentalStrictMode) { | |
| 554 | + if (typeof globalThis === "object") globalThis.regeneratorRuntime = runtime; | |
| 555 | + else Function("r", "regeneratorRuntime = r")(runtime); | |
| 556 | + } | |
| 557 | + })); | |
| 472 | 558 | |
| 473 | -"use strict"; | |
| 559 | +//#endregion | |
| 560 | +//#region modules/kit-elements-defaults/assets/js/editor/api.js | |
| 561 | + var import_regenerator = /* @__PURE__ */ __toESM(require_regenerator()); | |
| 562 | + var NAMESPACE = "kit-elements-defaults"; | |
| 563 | + function loadElementsDefaults() { | |
| 564 | + return _loadElementsDefaults.apply(this, arguments); | |
| 565 | + } | |
| 566 | + function _loadElementsDefaults() { | |
| 567 | + _loadElementsDefaults = _asyncToGenerator(/*#__PURE__*/ import_regenerator.default.mark(function _callee() { | |
| 568 | + return import_regenerator.default.wrap(function(_context) { | |
| 569 | + while (1) switch (_context.prev = _context.next) { | |
| 570 | + case 0: | |
| 571 | + $e.data.cache.storage.removeItem(NAMESPACE); | |
| 572 | + return _context.abrupt("return", $e.data.get("".concat(NAMESPACE, "/index"))); | |
| 573 | + case 1: | |
| 574 | + case "end": return _context.stop(); | |
| 575 | + } | |
| 576 | + }, _callee); | |
| 577 | + })); | |
| 578 | + return _loadElementsDefaults.apply(this, arguments); | |
| 579 | + } | |
| 580 | + function getElementDefaults(type) { | |
| 581 | + return ($e.data.cache.storage.getItem(NAMESPACE) || {})[type] || {}; | |
| 582 | + } | |
| 583 | + function updateElementDefaults(_x, _x2) { | |
| 584 | + return _updateElementDefaults.apply(this, arguments); | |
| 585 | + } | |
| 586 | + function _updateElementDefaults() { | |
| 587 | + _updateElementDefaults = _asyncToGenerator(/*#__PURE__*/ import_regenerator.default.mark(function _callee2(type, settings) { | |
| 588 | + return import_regenerator.default.wrap(function(_context2) { | |
| 589 | + while (1) switch (_context2.prev = _context2.next) { | |
| 590 | + case 0: | |
| 591 | + _context2.next = 1; | |
| 592 | + return $e.data.update("".concat(NAMESPACE, "/index"), { settings }, { type }); | |
| 593 | + case 1: | |
| 594 | + _context2.next = 2; | |
| 595 | + return loadElementsDefaults(); | |
| 596 | + case 2: | |
| 597 | + case "end": return _context2.stop(); | |
| 598 | + } | |
| 599 | + }, _callee2); | |
| 600 | + })); | |
| 601 | + return _updateElementDefaults.apply(this, arguments); | |
| 602 | + } | |
| 603 | + function deleteElementDefaults(_x3) { | |
| 604 | + return _deleteElementDefaults.apply(this, arguments); | |
| 605 | + } | |
| 606 | + function _deleteElementDefaults() { | |
| 607 | + _deleteElementDefaults = _asyncToGenerator(/*#__PURE__*/ import_regenerator.default.mark(function _callee3(type) { | |
| 608 | + return import_regenerator.default.wrap(function(_context3) { | |
| 609 | + while (1) switch (_context3.prev = _context3.next) { | |
| 610 | + case 0: | |
| 611 | + _context3.next = 1; | |
| 612 | + return $e.data.delete("".concat(NAMESPACE, "/index"), { type }); | |
| 613 | + case 1: | |
| 614 | + _context3.next = 2; | |
| 615 | + return loadElementsDefaults(); | |
| 616 | + case 2: | |
| 617 | + case "end": return _context3.stop(); | |
| 618 | + } | |
| 619 | + }, _callee3); | |
| 620 | + })); | |
| 621 | + return _deleteElementDefaults.apply(this, arguments); | |
| 622 | + } | |
| 474 | 623 | |
| 624 | +//#endregion | |
| 625 | +//#region modules/kit-elements-defaults/assets/js/editor/utils.js | |
| 626 | + function isPopulatedObject(obj) { | |
| 627 | + return obj && "object" === _typeof(obj) && !Array.isArray(obj) && Object.keys(obj).length > 0; | |
| 628 | + } | |
| 629 | + function extractElementType(model) { | |
| 630 | + model = model.attributes || model; | |
| 631 | + var elementType = model.widgetType || model.elType; | |
| 632 | + if ("section" === elementType && model.isInner) elementType = "inner-section"; | |
| 633 | + return elementType; | |
| 634 | + } | |
| 475 | 635 | |
| 476 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 477 | -var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js"); | |
| 478 | -Object.defineProperty(exports, "__esModule", ({ | |
| 479 | - value: true | |
| 480 | -})); | |
| 481 | -exports["default"] = void 0; | |
| 482 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 483 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 484 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 485 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 486 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 487 | -var hooks = _interopRequireWildcard(__webpack_require__(/*! ./hooks */ "../modules/kit-elements-defaults/assets/js/editor/hooks/index.js")); | |
| 488 | -var dataCommands = _interopRequireWildcard(__webpack_require__(/*! ./data-commands/ */ "../modules/kit-elements-defaults/assets/js/editor/data-commands/index.js")); | |
| 489 | -var commands = _interopRequireWildcard(__webpack_require__(/*! ./commands/ */ "../modules/kit-elements-defaults/assets/js/editor/commands/index.js")); | |
| 490 | -function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); } | |
| 491 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 492 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 493 | -var Component = exports["default"] = /*#__PURE__*/function (_$e$modules$Component) { | |
| 494 | - function Component() { | |
| 495 | - (0, _classCallCheck2.default)(this, Component); | |
| 496 | - return _callSuper(this, Component, arguments); | |
| 497 | - } | |
| 498 | - (0, _inherits2.default)(Component, _$e$modules$Component); | |
| 499 | - return (0, _createClass2.default)(Component, [{ | |
| 500 | - key: "getNamespace", | |
| 501 | - value: function getNamespace() { | |
| 502 | - return 'kit-elements-defaults'; | |
| 503 | - } | |
| 504 | - }, { | |
| 505 | - key: "defaultHooks", | |
| 506 | - value: function defaultHooks() { | |
| 507 | - return this.importHooks(hooks); | |
| 508 | - } | |
| 509 | - }, { | |
| 510 | - key: "defaultData", | |
| 511 | - value: function defaultData() { | |
| 512 | - return this.importCommands(dataCommands); | |
| 513 | - } | |
| 514 | - }, { | |
| 515 | - key: "defaultCommands", | |
| 516 | - value: function defaultCommands() { | |
| 517 | - return this.importCommands(commands); | |
| 518 | - } | |
| 519 | - }]); | |
| 520 | -}($e.modules.ComponentBase); | |
| 636 | +//#endregion | |
| 637 | +//#region modules/kit-elements-defaults/assets/js/editor/hooks/data/fill-defaults-on-drop.js | |
| 638 | + function ownKeys$1(e, r) { | |
| 639 | + var t = Object.keys(e); | |
| 640 | + if (Object.getOwnPropertySymbols) { | |
| 641 | + var o = Object.getOwnPropertySymbols(e); | |
| 642 | + r && (o = o.filter(function(r) { | |
| 643 | + return Object.getOwnPropertyDescriptor(e, r).enumerable; | |
| 644 | + })), t.push.apply(t, o); | |
| 645 | + } | |
| 646 | + return t; | |
| 647 | + } | |
| 648 | + __name(ownKeys$1, "ownKeys"); | |
| 649 | + function _objectSpread$1(e) { | |
| 650 | + for (var r = 1; r < arguments.length; r++) { | |
| 651 | + var t = null != arguments[r] ? arguments[r] : {}; | |
| 652 | + r % 2 ? ownKeys$1(Object(t), !0).forEach(function(r) { | |
| 653 | + _defineProperty(e, r, t[r]); | |
| 654 | + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function(r) { | |
| 655 | + Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); | |
| 656 | + }); | |
| 657 | + } | |
| 658 | + return e; | |
| 659 | + } | |
| 660 | + __name(_objectSpread$1, "_objectSpread"); | |
| 661 | + function _callSuper$7(t, o, e) { | |
| 662 | + return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$7() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); | |
| 663 | + } | |
| 664 | + __name(_callSuper$7, "_callSuper"); | |
| 665 | + function _isNativeReflectConstruct$7() { | |
| 666 | + try { | |
| 667 | + var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})); | |
| 668 | + } catch (t) {} | |
| 669 | + return (_isNativeReflectConstruct$7 = function _isNativeReflectConstruct() { | |
| 670 | + return !!t; | |
| 671 | + })(); | |
| 672 | + } | |
| 673 | + __name(_isNativeReflectConstruct$7, "_isNativeReflectConstruct"); | |
| 674 | + var FillDefaultsOnDrop = /*#__PURE__*/ function(_$e$modules$hookData$) { | |
| 675 | + function FillDefaultsOnDrop() { | |
| 676 | + _classCallCheck(this, FillDefaultsOnDrop); | |
| 677 | + return _callSuper$7(this, FillDefaultsOnDrop, arguments); | |
| 678 | + } | |
| 679 | + _inherits(FillDefaultsOnDrop, _$e$modules$hookData$); | |
| 680 | + return _createClass(FillDefaultsOnDrop, [ | |
| 681 | + { | |
| 682 | + key: "getCommand", | |
| 683 | + value: function getCommand() { | |
| 684 | + return "preview/drop"; | |
| 685 | + } | |
| 686 | + }, | |
| 687 | + { | |
| 688 | + key: "getId", | |
| 689 | + value: function getId() { | |
| 690 | + return "fill-defaults-on-drop"; | |
| 691 | + } | |
| 692 | + }, | |
| 693 | + { | |
| 694 | + key: "getConditions", | |
| 695 | + value: function getConditions(args) { | |
| 696 | + var _args$model; | |
| 697 | + var _args$model2; | |
| 698 | + return ((_args$model = args.model) === null || _args$model === void 0 ? void 0 : _args$model.widgetType) || ((_args$model2 = args.model) === null || _args$model2 === void 0 ? void 0 : _args$model2.elType); | |
| 699 | + } | |
| 700 | + }, | |
| 701 | + { | |
| 702 | + key: "apply", | |
| 703 | + value: function apply(args) { | |
| 704 | + var model = args.model; | |
| 705 | + var elementDefaultSettings = getElementDefaults(extractElementType(model)); | |
| 706 | + if (!isPopulatedObject(elementDefaultSettings)) return true; | |
| 707 | + var settings = _objectSpread$1(_objectSpread$1({}, elementDefaultSettings), args.model.settings || {}); | |
| 708 | + ["__dynamic__", "__globals__"].forEach(function(type) { | |
| 709 | + var _args$model$settings; | |
| 710 | + if (!isPopulatedObject(elementDefaultSettings[type])) return; | |
| 711 | + settings[type] = _objectSpread$1(_objectSpread$1({}, elementDefaultSettings[type] || {}), ((_args$model$settings = args.model.settings) === null || _args$model$settings === void 0 ? void 0 : _args$model$settings[type]) || {}); | |
| 712 | + }); | |
| 713 | + args.model = _objectSpread$1(_objectSpread$1({}, args.model), {}, { settings }); | |
| 714 | + return true; | |
| 715 | + } | |
| 716 | + } | |
| 717 | + ]); | |
| 718 | + }($e.modules.hookData.Dependency); | |
| 521 | 719 | |
| 522 | -/***/ }), | |
| 720 | +//#endregion | |
| 721 | +//#region modules/kit-elements-defaults/assets/js/editor/hooks/index.js | |
| 722 | + var hooks_exports = /* @__PURE__ */ __exportAll({ FillDefaultsOnDrop: () => FillDefaultsOnDrop }); | |
| 523 | 723 | |
| 524 | -/***/ "../modules/kit-elements-defaults/assets/js/editor/confirm-creation-dialog.js": | |
| 525 | -/*!************************************************************************************!*\ | |
| 526 | - !*** ../modules/kit-elements-defaults/assets/js/editor/confirm-creation-dialog.js ***! | |
| 527 | - \************************************************************************************/ | |
| 528 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 724 | +//#endregion | |
| 725 | +//#region modules/kit-elements-defaults/assets/js/editor/data-commands/index.js | |
| 726 | + var data_commands_exports = /* @__PURE__ */ __exportAll({ Index: () => Index }); | |
| 727 | + function _callSuper$6(t, o, e) { | |
| 728 | + return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$6() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); | |
| 729 | + } | |
| 730 | + __name(_callSuper$6, "_callSuper"); | |
| 731 | + function _isNativeReflectConstruct$6() { | |
| 732 | + try { | |
| 733 | + var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})); | |
| 734 | + } catch (t) {} | |
| 735 | + return (_isNativeReflectConstruct$6 = function _isNativeReflectConstruct() { | |
| 736 | + return !!t; | |
| 737 | + })(); | |
| 738 | + } | |
| 739 | + __name(_isNativeReflectConstruct$6, "_isNativeReflectConstruct"); | |
| 740 | + var Index = /*#__PURE__*/ function(_$e$modules$CommandDa) { | |
| 741 | + function Index() { | |
| 742 | + _classCallCheck(this, Index); | |
| 743 | + return _callSuper$6(this, Index, arguments); | |
| 744 | + } | |
| 745 | + _inherits(Index, _$e$modules$CommandDa); | |
| 746 | + return _createClass(Index, null, [{ | |
| 747 | + key: "getEndpointFormat", | |
| 748 | + value: function getEndpointFormat() { | |
| 749 | + return "kit-elements-defaults/{type}"; | |
| 750 | + } | |
| 751 | + }]); | |
| 752 | + }($e.modules.CommandData); | |
| 529 | 753 | |
| 530 | -"use strict"; | |
| 531 | -/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 754 | +//#endregion | |
| 755 | +//#region modules/kit-elements-defaults/assets/js/editor/confirm-creation-dialog.js | |
| 756 | + var introductionKey = "kit_elements_defaults_create_dialog"; | |
| 757 | + var introductionManager = null; | |
| 758 | + /** | |
| 759 | + * A wrapper around Introduction class that allows to create a dialog only once, | |
| 760 | + * + has specific logic for the "Do not show this message again" checkbox, | |
| 761 | + * + the content for "save as default" feature. | |
| 762 | + * | |
| 763 | + * @param {Object} config | |
| 764 | + * @param {Function} config.onConfirm | |
| 765 | + * @return {{show: (function(): *), doNotShowAgain: (boolean)}} | |
| 766 | + */ | |
| 767 | + function getConfirmCreationDialog(_ref) { | |
| 768 | + var onConfirm = _ref.onConfirm; | |
| 769 | + if (!introductionManager) { | |
| 770 | + var _elementor$config$use; | |
| 771 | + introductionManager = createIntroductionManager(); | |
| 772 | + introductionManager.introductionViewed = !!((_elementor$config$use = elementor.config.user.introduction) !== null && _elementor$config$use !== void 0 && _elementor$config$use["kit_elements_defaults_create_dialog"]); | |
| 773 | + } | |
| 774 | + var dialog = introductionManager.getDialog(); | |
| 775 | + dialog.onConfirm = function() { | |
| 776 | + if (dialog.getElements("checkbox-dont-show-again").prop("checked")) introductionManager.setViewed(); | |
| 777 | + onConfirm(); | |
| 778 | + }; | |
| 779 | + return { | |
| 780 | + doNotShowAgain: !!introductionManager.introductionViewed, | |
| 781 | + show: function show() { | |
| 782 | + return introductionManager.show(); | |
| 783 | + } | |
| 784 | + }; | |
| 785 | + } | |
| 786 | + function createIntroductionManager() { | |
| 787 | + var _introduction$getDial; | |
| 788 | + var _introduction$getDial2; | |
| 789 | + var dialogId = "e-kit-elements-defaults-create-dialog"; | |
| 790 | + var introduction = new elementorModules.editor.utils.Introduction({ | |
| 791 | + introductionKey, | |
| 792 | + dialogType: "confirm", | |
| 793 | + dialogOptions: { | |
| 794 | + id: dialogId, | |
| 795 | + headerMessage: (0, _wordpress_i18n.__)("Sure you want to change default settings?", "elementor"), | |
| 796 | + message: (0, _wordpress_i18n.__)("Your changes will automatically be saved for future uses of this element. %1$sNote:%2$s This includes sensitive information like emails, API keys, etc.", "elementor").replace("%1$s", "<strong>").replace("%2$s", "</strong>"), | |
| 797 | + effects: { | |
| 798 | + show: "fadeIn", | |
| 799 | + hide: "fadeOut" | |
| 800 | + }, | |
| 801 | + hide: { onBackgroundClick: true }, | |
| 802 | + strings: { | |
| 803 | + confirm: (0, _wordpress_i18n.__)("Save", "elementor"), | |
| 804 | + cancel: (0, _wordpress_i18n.__)("Cancel", "elementor") | |
| 805 | + }, | |
| 806 | + onShow: function onShow() { | |
| 807 | + var _this$getElements; | |
| 808 | + (_this$getElements = this.getElements("checkbox-dont-show-again")) === null || _this$getElements === void 0 || _this$getElements.prop("checked", true); | |
| 809 | + } | |
| 810 | + } | |
| 811 | + }); | |
| 812 | + var _createCheckboxAndLab = createCheckboxAndLabel(dialogId); | |
| 813 | + var checkbox = _createCheckboxAndLab.checkbox; | |
| 814 | + var label = _createCheckboxAndLab.label; | |
| 815 | + introduction.getDialog().addElement("checkbox-dont-show-again", checkbox); | |
| 816 | + (_introduction$getDial = introduction.getDialog().getElements("message")) === null || _introduction$getDial === void 0 || (_introduction$getDial2 = _introduction$getDial.append) === null || _introduction$getDial2 === void 0 || _introduction$getDial2.call(_introduction$getDial, label); | |
| 817 | + return introduction; | |
| 818 | + } | |
| 819 | + function createCheckboxAndLabel(dialogId) { | |
| 820 | + var checkboxId = "".concat(dialogId, "-dont-show-again"); | |
| 821 | + var checkbox = document.createElement("input"); | |
| 822 | + checkbox.type = "checkbox"; | |
| 823 | + checkbox.name = checkboxId; | |
| 824 | + checkbox.id = checkboxId; | |
| 825 | + checkbox.checked = true; | |
| 826 | + var label = document.createElement("label"); | |
| 827 | + label.htmlFor = checkboxId; | |
| 828 | + label.textContent = (0, _wordpress_i18n.__)("Do not show this message again", "elementor"); | |
| 829 | + label.prepend(checkbox); | |
| 830 | + return { | |
| 831 | + checkbox, | |
| 832 | + label | |
| 833 | + }; | |
| 834 | + } | |
| 532 | 835 | |
| 836 | +//#endregion | |
| 837 | +//#region modules/kit-elements-defaults/assets/js/editor/commands/confirm-creation.js | |
| 838 | + function _callSuper$5(t, o, e) { | |
| 839 | + return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$5() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); | |
| 840 | + } | |
| 841 | + __name(_callSuper$5, "_callSuper"); | |
| 842 | + function _isNativeReflectConstruct$5() { | |
| 843 | + try { | |
| 844 | + var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})); | |
| 845 | + } catch (t) {} | |
| 846 | + return (_isNativeReflectConstruct$5 = function _isNativeReflectConstruct() { | |
| 847 | + return !!t; | |
| 848 | + })(); | |
| 849 | + } | |
| 850 | + __name(_isNativeReflectConstruct$5, "_isNativeReflectConstruct"); | |
| 851 | + var ConfirmCreation = /*#__PURE__*/ function(_$e$modules$editor$Co) { | |
| 852 | + function ConfirmCreation() { | |
| 853 | + _classCallCheck(this, ConfirmCreation); | |
| 854 | + return _callSuper$5(this, ConfirmCreation, arguments); | |
| 855 | + } | |
| 856 | + _inherits(ConfirmCreation, _$e$modules$editor$Co); | |
| 857 | + return _createClass(ConfirmCreation, [{ | |
| 858 | + key: "validateArgs", | |
| 859 | + value: function validateArgs() { | |
| 860 | + this.requireContainer(); | |
| 861 | + } | |
| 862 | + }, { | |
| 863 | + key: "apply", | |
| 864 | + value: function() { | |
| 865 | + var _apply = _asyncToGenerator(/*#__PURE__*/ import_regenerator.default.mark(function _callee(_ref) { | |
| 866 | + var container; | |
| 867 | + var confirmCreationDialog; | |
| 868 | + return import_regenerator.default.wrap(function(_context) { | |
| 869 | + while (1) switch (_context.prev = _context.next) { | |
| 870 | + case 0: | |
| 871 | + container = _ref.container; | |
| 872 | + confirmCreationDialog = getConfirmCreationDialog({ onConfirm: function onConfirm() { | |
| 873 | + return $e.run("kit-elements-defaults/create", { container }); | |
| 874 | + } }); | |
| 875 | + if (!confirmCreationDialog.doNotShowAgain) { | |
| 876 | + _context.next = 1; | |
| 877 | + break; | |
| 878 | + } | |
| 879 | + $e.run("kit-elements-defaults/create", { container }); | |
| 880 | + return _context.abrupt("return"); | |
| 881 | + case 1: confirmCreationDialog.show(); | |
| 882 | + case 2: | |
| 883 | + case "end": return _context.stop(); | |
| 884 | + } | |
| 885 | + }, _callee); | |
| 886 | + })); | |
| 887 | + function apply(_x) { | |
| 888 | + return _apply.apply(this, arguments); | |
| 889 | + } | |
| 890 | + return apply; | |
| 891 | + }() | |
| 892 | + }]); | |
| 893 | + }($e.modules.editor.CommandContainerBase); | |
| 533 | 894 | |
| 534 | -Object.defineProperty(exports, "__esModule", ({ | |
| 535 | - value: true | |
| 536 | -})); | |
| 537 | -exports.getConfirmCreationDialog = getConfirmCreationDialog; | |
| 538 | -exports.introductionManager = exports.introductionKey = void 0; | |
| 539 | -exports.removeConfirmCreationDialog = removeConfirmCreationDialog; | |
| 540 | -var introductionKey = exports.introductionKey = 'kit_elements_defaults_create_dialog'; | |
| 541 | -var introductionManager = exports.introductionManager = null; | |
| 895 | +//#endregion | |
| 896 | +//#region node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js | |
| 897 | + function _arrayWithHoles(r) { | |
| 898 | + if (Array.isArray(r)) return r; | |
| 899 | + } | |
| 542 | 900 | |
| 543 | -/** | |
| 544 | - * A wrapper around Introduction class that allows to create a dialog only once, | |
| 545 | - * + has specific logic for the "Do not show this message again" checkbox, | |
| 546 | - * + the content for "save as default" feature. | |
| 547 | - * | |
| 548 | - * @param {Object} config | |
| 549 | - * @param {Function} config.onConfirm | |
| 550 | - * @return {{show: (function(): *), doNotShowAgain: (boolean)}} | |
| 551 | - */ | |
| 552 | -function getConfirmCreationDialog(_ref) { | |
| 553 | - var onConfirm = _ref.onConfirm; | |
| 554 | - if (!introductionManager) { | |
| 555 | - var _elementor$config$use; | |
| 556 | - exports.introductionManager = introductionManager = createIntroductionManager(); | |
| 557 | - introductionManager.introductionViewed = !!((_elementor$config$use = elementor.config.user.introduction) !== null && _elementor$config$use !== void 0 && _elementor$config$use[introductionKey]); | |
| 558 | - } | |
| 559 | - var dialog = introductionManager.getDialog(); | |
| 560 | - dialog.onConfirm = function () { | |
| 561 | - // `getElements` return JQuery object. | |
| 562 | - if (dialog.getElements('checkbox-dont-show-again').prop('checked')) { | |
| 563 | - introductionManager.setViewed(); | |
| 564 | - } | |
| 565 | - onConfirm(); | |
| 566 | - }; | |
| 567 | - return { | |
| 568 | - doNotShowAgain: !!introductionManager.introductionViewed, | |
| 569 | - show: function show() { | |
| 570 | - return introductionManager.show(); | |
| 571 | - } | |
| 572 | - }; | |
| 573 | -} | |
| 574 | -function removeConfirmCreationDialog() { | |
| 575 | - exports.introductionManager = introductionManager = null; | |
| 576 | -} | |
| 577 | -function createIntroductionManager() { | |
| 578 | - var _introduction$getDial, _introduction$getDial2; | |
| 579 | - var dialogId = 'e-kit-elements-defaults-create-dialog'; | |
| 580 | - var introduction = new elementorModules.editor.utils.Introduction({ | |
| 581 | - introductionKey: introductionKey, | |
| 582 | - dialogType: 'confirm', | |
| 583 | - dialogOptions: { | |
| 584 | - id: dialogId, | |
| 585 | - headerMessage: __('Sure you want to change default settings?', 'elementor'), | |
| 586 | - // Translators: %1$s: Opening strong tag, %2$s: Closing strong tag. | |
| 587 | - message: __('Your changes will automatically be saved for future uses of this element. %1$sNote:%2$s This includes sensitive information like emails, API keys, etc.', 'elementor').replace('%1$s', '<strong>').replace('%2$s', '</strong>'), | |
| 588 | - effects: { | |
| 589 | - show: 'fadeIn', | |
| 590 | - hide: 'fadeOut' | |
| 591 | - }, | |
| 592 | - hide: { | |
| 593 | - onBackgroundClick: true | |
| 594 | - }, | |
| 595 | - strings: { | |
| 596 | - confirm: __('Save', 'elementor'), | |
| 597 | - cancel: __('Cancel', 'elementor') | |
| 598 | - }, | |
| 599 | - onShow: function onShow() { | |
| 600 | - var _this$getElements; | |
| 601 | - (_this$getElements = this.getElements('checkbox-dont-show-again')) === null || _this$getElements === void 0 || _this$getElements.prop('checked', true); | |
| 602 | - } | |
| 603 | - } | |
| 604 | - }); | |
| 605 | - var _createCheckboxAndLab = createCheckboxAndLabel(dialogId), | |
| 606 | - checkbox = _createCheckboxAndLab.checkbox, | |
| 607 | - label = _createCheckboxAndLab.label; | |
| 608 | - introduction.getDialog().addElement('checkbox-dont-show-again', checkbox); | |
| 609 | - (_introduction$getDial = introduction.getDialog().getElements('message')) === null || _introduction$getDial === void 0 || (_introduction$getDial2 = _introduction$getDial.append) === null || _introduction$getDial2 === void 0 || _introduction$getDial2.call(_introduction$getDial, label); // `getElements` return JQuery object. | |
| 901 | +//#endregion | |
| 902 | +//#region node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js | |
| 903 | + function _iterableToArrayLimit(r, l) { | |
| 904 | + var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; | |
| 905 | + if (null != t) { | |
| 906 | + var e; | |
| 907 | + var n; | |
| 908 | + var i; | |
| 909 | + var u; | |
| 910 | + var a = []; | |
| 911 | + var f = !0; | |
| 912 | + var o = !1; | |
| 913 | + try { | |
| 914 | + if (i = (t = t.call(r)).next, 0 === l) { | |
| 915 | + if (Object(t) !== t) return; | |
| 916 | + f = !1; | |
| 917 | + } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); | |
| 918 | + } catch (r) { | |
| 919 | + o = !0, n = r; | |
| 920 | + } finally { | |
| 921 | + try { | |
| 922 | + if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; | |
| 923 | + } finally { | |
| 924 | + if (o) throw n; | |
| 925 | + } | |
| 926 | + } | |
| 927 | + return a; | |
| 928 | + } | |
| 929 | + } | |
| 610 | 930 | |
| 611 | - return introduction; | |
| 612 | -} | |
| 613 | -function createCheckboxAndLabel(dialogId) { | |
| 614 | - var checkboxId = "".concat(dialogId, "-dont-show-again"); | |
| 615 | - var checkbox = document.createElement('input'); | |
| 616 | - checkbox.type = 'checkbox'; | |
| 617 | - checkbox.name = checkboxId; | |
| 618 | - checkbox.id = checkboxId; | |
| 619 | - checkbox.checked = true; | |
| 620 | - var label = document.createElement('label'); | |
| 621 | - label.htmlFor = checkboxId; | |
| 622 | - label.textContent = __('Do not show this message again', 'elementor'); | |
| 623 | - label.prepend(checkbox); | |
| 624 | - return { | |
| 625 | - checkbox: checkbox, | |
| 626 | - label: label | |
| 627 | - }; | |
| 628 | -} | |
| 931 | +//#endregion | |
| 932 | +//#region node_modules/@babel/runtime/helpers/esm/nonIterableRest.js | |
| 933 | + function _nonIterableRest() { | |
| 934 | + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
| 935 | + } | |
| 629 | 936 | |
| 630 | -/***/ }), | |
| 937 | +//#endregion | |
| 938 | +//#region node_modules/@babel/runtime/helpers/esm/slicedToArray.js | |
| 939 | + function _slicedToArray(r, e) { | |
| 940 | + return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); | |
| 941 | + } | |
| 631 | 942 | |
| 632 | -/***/ "../modules/kit-elements-defaults/assets/js/editor/data-commands/index.js": | |
| 633 | -/*!********************************************************************************!*\ | |
| 634 | - !*** ../modules/kit-elements-defaults/assets/js/editor/data-commands/index.js ***! | |
| 635 | - \********************************************************************************/ | |
| 636 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 943 | +//#endregion | |
| 944 | +//#region modules/kit-elements-defaults/assets/js/editor/extract-container-settings.js | |
| 945 | + function ownKeys(e, r) { | |
| 946 | + var t = Object.keys(e); | |
| 947 | + if (Object.getOwnPropertySymbols) { | |
| 948 | + var o = Object.getOwnPropertySymbols(e); | |
| 949 | + r && (o = o.filter(function(r) { | |
| 950 | + return Object.getOwnPropertyDescriptor(e, r).enumerable; | |
| 951 | + })), t.push.apply(t, o); | |
| 952 | + } | |
| 953 | + return t; | |
| 954 | + } | |
| 955 | + function _objectSpread(e) { | |
| 956 | + for (var r = 1; r < arguments.length; r++) { | |
| 957 | + var t = null != arguments[r] ? arguments[r] : {}; | |
| 958 | + r % 2 ? ownKeys(Object(t), !0).forEach(function(r) { | |
| 959 | + _defineProperty(e, r, t[r]); | |
| 960 | + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r) { | |
| 961 | + Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); | |
| 962 | + }); | |
| 963 | + } | |
| 964 | + return e; | |
| 965 | + } | |
| 966 | + var SPECIAL_SETTINGS = ["__dynamic__", "__globals__"]; | |
| 967 | + function extractContainerSettings(container) { | |
| 968 | + var settingsModel = container.settings; | |
| 969 | + var controls = settingsModel.controls; | |
| 970 | + var settings = settingsModel.toJSON({ remove: ["default"] }); | |
| 971 | + var localSettings = extractSettings(settings, controls); | |
| 972 | + return _objectSpread(_objectSpread({}, localSettings), extractSpecialSettings(settings, controls, localSettings)); | |
| 973 | + } | |
| 974 | + function extractSettings(settings, controls) { | |
| 975 | + var existingSettings = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}; | |
| 976 | + var entries = Object.entries(settings).filter(function(_ref) { | |
| 977 | + var settingName = _slicedToArray(_ref, 1)[0]; | |
| 978 | + return !!controls[settingName] && !Object.prototype.hasOwnProperty.call(existingSettings, settingName); | |
| 979 | + }); | |
| 980 | + return Object.fromEntries(entries); | |
| 981 | + } | |
| 982 | + function extractSpecialSettings(settings, controls, localSettings) { | |
| 983 | + return SPECIAL_SETTINGS.reduce(function(acc, type) { | |
| 984 | + var specialSettings = extractSettings((settings === null || settings === void 0 ? void 0 : settings[type]) || {}, controls, localSettings); | |
| 985 | + if (!isPopulatedObject(specialSettings)) return acc; | |
| 986 | + return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, type, specialSettings)); | |
| 987 | + }, {}); | |
| 988 | + } | |
| 637 | 989 | |
| 638 | -"use strict"; | |
| 990 | +//#endregion | |
| 991 | +//#region modules/kit-elements-defaults/assets/js/editor/commands/create.js | |
| 992 | + function _callSuper$4(t, o, e) { | |
| 993 | + return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$4() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); | |
| 994 | + } | |
| 995 | + __name(_callSuper$4, "_callSuper"); | |
| 996 | + function _isNativeReflectConstruct$4() { | |
| 997 | + try { | |
| 998 | + var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})); | |
| 999 | + } catch (t) {} | |
| 1000 | + return (_isNativeReflectConstruct$4 = function _isNativeReflectConstruct() { | |
| 1001 | + return !!t; | |
| 1002 | + })(); | |
| 1003 | + } | |
| 1004 | + __name(_isNativeReflectConstruct$4, "_isNativeReflectConstruct"); | |
| 1005 | + var Create = /*#__PURE__*/ function(_$e$modules$editor$Co) { | |
| 1006 | + function Create() { | |
| 1007 | + _classCallCheck(this, Create); | |
| 1008 | + return _callSuper$4(this, Create, arguments); | |
| 1009 | + } | |
| 1010 | + _inherits(Create, _$e$modules$editor$Co); | |
| 1011 | + return _createClass(Create, [{ | |
| 1012 | + key: "validateArgs", | |
| 1013 | + value: function validateArgs() { | |
| 1014 | + this.requireContainer(); | |
| 1015 | + } | |
| 1016 | + }, { | |
| 1017 | + key: "apply", | |
| 1018 | + value: function() { | |
| 1019 | + var _apply = _asyncToGenerator(/*#__PURE__*/ import_regenerator.default.mark(function _callee(_ref) { | |
| 1020 | + var container; | |
| 1021 | + var type; | |
| 1022 | + var previousDefaults; | |
| 1023 | + var newDefaults; | |
| 1024 | + var _t; | |
| 1025 | + return import_regenerator.default.wrap(function(_context) { | |
| 1026 | + while (1) switch (_context.prev = _context.next) { | |
| 1027 | + case 0: | |
| 1028 | + container = _ref.container; | |
| 1029 | + $e.internal("panel/state-loading"); | |
| 1030 | + type = extractElementType(container.model), previousDefaults = getElementDefaults(type), newDefaults = extractContainerSettings(container); | |
| 1031 | + _context.prev = 1; | |
| 1032 | + _context.next = 2; | |
| 1033 | + return updateElementDefaults(type, newDefaults); | |
| 1034 | + case 2: | |
| 1035 | + elementor.notifications.showToast({ | |
| 1036 | + message: (0, _wordpress_i18n.__)("Default settings changed.", "elementor"), | |
| 1037 | + buttons: [{ | |
| 1038 | + name: "undo", | |
| 1039 | + text: (0, _wordpress_i18n.__)("Undo", "elementor"), | |
| 1040 | + callback: function callback() { | |
| 1041 | + $e.run("kit-elements-defaults/restore", { | |
| 1042 | + type, | |
| 1043 | + settings: previousDefaults | |
| 1044 | + }); | |
| 1045 | + } | |
| 1046 | + }] | |
| 1047 | + }); | |
| 1048 | + _context.next = 4; | |
| 1049 | + break; | |
| 1050 | + case 3: | |
| 1051 | + _context.prev = 3; | |
| 1052 | + _t = _context["catch"](1); | |
| 1053 | + elementor.notifications.showToast({ message: (0, _wordpress_i18n.__)("An error occurred.", "elementor") }); | |
| 1054 | + throw _t; | |
| 1055 | + case 4: | |
| 1056 | + _context.prev = 4; | |
| 1057 | + $e.internal("panel/state-ready"); | |
| 1058 | + return _context.finish(4); | |
| 1059 | + case 5: | |
| 1060 | + case "end": return _context.stop(); | |
| 1061 | + } | |
| 1062 | + }, _callee, null, [[ | |
| 1063 | + 1, | |
| 1064 | + 3, | |
| 1065 | + 4, | |
| 1066 | + 5 | |
| 1067 | + ]]); | |
| 1068 | + })); | |
| 1069 | + function apply(_x) { | |
| 1070 | + return _apply.apply(this, arguments); | |
| 1071 | + } | |
| 1072 | + return apply; | |
| 1073 | + }() | |
| 1074 | + }]); | |
| 1075 | + }($e.modules.editor.CommandContainerBase); | |
| 639 | 1076 | |
| 1077 | +//#endregion | |
| 1078 | +//#region modules/kit-elements-defaults/assets/js/editor/commands/delete.js | |
| 1079 | + function _callSuper$3(t, o, e) { | |
| 1080 | + return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$3() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); | |
| 1081 | + } | |
| 1082 | + __name(_callSuper$3, "_callSuper"); | |
| 1083 | + function _isNativeReflectConstruct$3() { | |
| 1084 | + try { | |
| 1085 | + var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})); | |
| 1086 | + } catch (t) {} | |
| 1087 | + return (_isNativeReflectConstruct$3 = function _isNativeReflectConstruct() { | |
| 1088 | + return !!t; | |
| 1089 | + })(); | |
| 1090 | + } | |
| 1091 | + __name(_isNativeReflectConstruct$3, "_isNativeReflectConstruct"); | |
| 1092 | + var Delete = /*#__PURE__*/ function(_$e$modules$CommandBa) { | |
| 1093 | + function Delete() { | |
| 1094 | + _classCallCheck(this, Delete); | |
| 1095 | + return _callSuper$3(this, Delete, arguments); | |
| 1096 | + } | |
| 1097 | + _inherits(Delete, _$e$modules$CommandBa); | |
| 1098 | + return _createClass(Delete, [{ | |
| 1099 | + key: "apply", | |
| 1100 | + value: function() { | |
| 1101 | + var _apply = _asyncToGenerator(/*#__PURE__*/ import_regenerator.default.mark(function _callee(_ref) { | |
| 1102 | + var type; | |
| 1103 | + var _t; | |
| 1104 | + return import_regenerator.default.wrap(function(_context) { | |
| 1105 | + while (1) switch (_context.prev = _context.next) { | |
| 1106 | + case 0: | |
| 1107 | + type = _ref.type; | |
| 1108 | + $e.internal("panel/state-loading"); | |
| 1109 | + _context.prev = 1; | |
| 1110 | + _context.next = 2; | |
| 1111 | + return deleteElementDefaults(type); | |
| 1112 | + case 2: | |
| 1113 | + elementor.notifications.showToast({ message: (0, _wordpress_i18n.__)("Default settings has been reset.", "elementor") }); | |
| 1114 | + _context.next = 4; | |
| 1115 | + break; | |
| 1116 | + case 3: | |
| 1117 | + _context.prev = 3; | |
| 1118 | + _t = _context["catch"](1); | |
| 1119 | + elementor.notifications.showToast({ message: (0, _wordpress_i18n.__)("An error occurred.", "elementor") }); | |
| 1120 | + throw _t; | |
| 1121 | + case 4: | |
| 1122 | + _context.prev = 4; | |
| 1123 | + $e.internal("panel/state-ready"); | |
| 1124 | + return _context.finish(4); | |
| 1125 | + case 5: | |
| 1126 | + case "end": return _context.stop(); | |
| 1127 | + } | |
| 1128 | + }, _callee, null, [[ | |
| 1129 | + 1, | |
| 1130 | + 3, | |
| 1131 | + 4, | |
| 1132 | + 5 | |
| 1133 | + ]]); | |
| 1134 | + })); | |
| 1135 | + function apply(_x) { | |
| 1136 | + return _apply.apply(this, arguments); | |
| 1137 | + } | |
| 1138 | + return apply; | |
| 1139 | + }() | |
| 1140 | + }]); | |
| 1141 | + }($e.modules.CommandBase); | |
| 640 | 1142 | |
| 641 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 642 | -Object.defineProperty(exports, "__esModule", ({ | |
| 643 | - value: true | |
| 644 | -})); | |
| 645 | -exports.Index = void 0; | |
| 646 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 647 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 648 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 649 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 650 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 651 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 652 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 653 | -var Index = exports.Index = /*#__PURE__*/function (_$e$modules$CommandDa) { | |
| 654 | - function Index() { | |
| 655 | - (0, _classCallCheck2.default)(this, Index); | |
| 656 | - return _callSuper(this, Index, arguments); | |
| 657 | - } | |
| 658 | - (0, _inherits2.default)(Index, _$e$modules$CommandDa); | |
| 659 | - return (0, _createClass2.default)(Index, null, [{ | |
| 660 | - key: "getEndpointFormat", | |
| 661 | - value: function getEndpointFormat() { | |
| 662 | - return 'kit-elements-defaults/{type}'; | |
| 663 | - } | |
| 664 | - }]); | |
| 665 | -}($e.modules.CommandData); | |
| 1143 | +//#endregion | |
| 1144 | +//#region modules/kit-elements-defaults/assets/js/editor/commands/restore.js | |
| 1145 | + function _callSuper$2(t, o, e) { | |
| 1146 | + return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$2() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); | |
| 1147 | + } | |
| 1148 | + __name(_callSuper$2, "_callSuper"); | |
| 1149 | + function _isNativeReflectConstruct$2() { | |
| 1150 | + try { | |
| 1151 | + var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})); | |
| 1152 | + } catch (t) {} | |
| 1153 | + return (_isNativeReflectConstruct$2 = function _isNativeReflectConstruct() { | |
| 1154 | + return !!t; | |
| 1155 | + })(); | |
| 1156 | + } | |
| 1157 | + __name(_isNativeReflectConstruct$2, "_isNativeReflectConstruct"); | |
| 1158 | + var Restore = /*#__PURE__*/ function(_$e$modules$CommandBa) { | |
| 1159 | + function Restore() { | |
| 1160 | + _classCallCheck(this, Restore); | |
| 1161 | + return _callSuper$2(this, Restore, arguments); | |
| 1162 | + } | |
| 1163 | + _inherits(Restore, _$e$modules$CommandBa); | |
| 1164 | + return _createClass(Restore, [{ | |
| 1165 | + key: "apply", | |
| 1166 | + value: function() { | |
| 1167 | + var _apply = _asyncToGenerator(/*#__PURE__*/ import_regenerator.default.mark(function _callee(_ref) { | |
| 1168 | + var type; | |
| 1169 | + var settings; | |
| 1170 | + var _t; | |
| 1171 | + return import_regenerator.default.wrap(function(_context) { | |
| 1172 | + while (1) switch (_context.prev = _context.next) { | |
| 1173 | + case 0: | |
| 1174 | + type = _ref.type, settings = _ref.settings; | |
| 1175 | + $e.internal("panel/state-loading"); | |
| 1176 | + _context.prev = 1; | |
| 1177 | + _context.next = 2; | |
| 1178 | + return updateElementDefaults(type, settings); | |
| 1179 | + case 2: | |
| 1180 | + elementor.notifications.showToast({ message: (0, _wordpress_i18n.__)("Previous settings restored.", "elementor") }); | |
| 1181 | + _context.next = 4; | |
| 1182 | + break; | |
| 1183 | + case 3: | |
| 1184 | + _context.prev = 3; | |
| 1185 | + _t = _context["catch"](1); | |
| 1186 | + elementor.notifications.showToast({ message: (0, _wordpress_i18n.__)("An error occurred.", "elementor") }); | |
| 1187 | + throw _t; | |
| 1188 | + case 4: | |
| 1189 | + _context.prev = 4; | |
| 1190 | + $e.internal("panel/state-ready"); | |
| 1191 | + return _context.finish(4); | |
| 1192 | + case 5: | |
| 1193 | + case "end": return _context.stop(); | |
| 1194 | + } | |
| 1195 | + }, _callee, null, [[ | |
| 1196 | + 1, | |
| 1197 | + 3, | |
| 1198 | + 4, | |
| 1199 | + 5 | |
| 1200 | + ]]); | |
| 1201 | + })); | |
| 1202 | + function apply(_x) { | |
| 1203 | + return _apply.apply(this, arguments); | |
| 1204 | + } | |
| 1205 | + return apply; | |
| 1206 | + }() | |
| 1207 | + }]); | |
| 1208 | + }($e.modules.CommandBase); | |
| 666 | 1209 | |
| 667 | -/***/ }), | |
| 1210 | +//#endregion | |
| 1211 | +//#region modules/kit-elements-defaults/assets/js/editor/commands/index.js | |
| 1212 | + var commands_exports = /* @__PURE__ */ __exportAll({ | |
| 1213 | + ConfirmCreation: () => ConfirmCreation, | |
| 1214 | + Create: () => Create, | |
| 1215 | + Delete: () => Delete, | |
| 1216 | + Restore: () => Restore | |
| 1217 | + }); | |
| 668 | 1218 | |
| 669 | -/***/ "../modules/kit-elements-defaults/assets/js/editor/extract-container-settings.js": | |
| 670 | -/*!***************************************************************************************!*\ | |
| 671 | - !*** ../modules/kit-elements-defaults/assets/js/editor/extract-container-settings.js ***! | |
| 672 | - \***************************************************************************************/ | |
| 673 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 1219 | +//#endregion | |
| 1220 | +//#region modules/kit-elements-defaults/assets/js/editor/component.js | |
| 1221 | + function _callSuper$1(t, o, e) { | |
| 1222 | + return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$1() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); | |
| 1223 | + } | |
| 1224 | + __name(_callSuper$1, "_callSuper"); | |
| 1225 | + function _isNativeReflectConstruct$1() { | |
| 1226 | + try { | |
| 1227 | + var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})); | |
| 1228 | + } catch (t) {} | |
| 1229 | + return (_isNativeReflectConstruct$1 = function _isNativeReflectConstruct() { | |
| 1230 | + return !!t; | |
| 1231 | + })(); | |
| 1232 | + } | |
| 1233 | + __name(_isNativeReflectConstruct$1, "_isNativeReflectConstruct"); | |
| 1234 | + var Component = /*#__PURE__*/ function(_$e$modules$Component) { | |
| 1235 | + function Component() { | |
| 1236 | + _classCallCheck(this, Component); | |
| 1237 | + return _callSuper$1(this, Component, arguments); | |
| 1238 | + } | |
| 1239 | + _inherits(Component, _$e$modules$Component); | |
| 1240 | + return _createClass(Component, [ | |
| 1241 | + { | |
| 1242 | + key: "getNamespace", | |
| 1243 | + value: function getNamespace() { | |
| 1244 | + return "kit-elements-defaults"; | |
| 1245 | + } | |
| 1246 | + }, | |
| 1247 | + { | |
| 1248 | + key: "defaultHooks", | |
| 1249 | + value: function defaultHooks() { | |
| 1250 | + return this.importHooks(hooks_exports); | |
| 1251 | + } | |
| 1252 | + }, | |
| 1253 | + { | |
| 1254 | + key: "defaultData", | |
| 1255 | + value: function defaultData() { | |
| 1256 | + return this.importCommands(data_commands_exports); | |
| 1257 | + } | |
| 1258 | + }, | |
| 1259 | + { | |
| 1260 | + key: "defaultCommands", | |
| 1261 | + value: function defaultCommands() { | |
| 1262 | + return this.importCommands(commands_exports); | |
| 1263 | + } | |
| 1264 | + } | |
| 1265 | + ]); | |
| 1266 | + }($e.modules.ComponentBase); | |
| 674 | 1267 | |
| 675 | -"use strict"; | |
| 1268 | +//#endregion | |
| 1269 | +//#region modules/kit-elements-defaults/assets/js/editor/module.js | |
| 1270 | + function _callSuper(t, o, e) { | |
| 1271 | + return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); | |
| 1272 | + } | |
| 1273 | + function _isNativeReflectConstruct() { | |
| 1274 | + try { | |
| 1275 | + var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})); | |
| 1276 | + } catch (t) {} | |
| 1277 | + return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { | |
| 1278 | + return !!t; | |
| 1279 | + })(); | |
| 1280 | + } | |
| 1281 | + function _classPrivateMethodInitSpec(e, a) { | |
| 1282 | + _checkPrivateRedeclaration(e, a), a.add(e); | |
| 1283 | + } | |
| 1284 | + function _checkPrivateRedeclaration(e, t) { | |
| 1285 | + if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); | |
| 1286 | + } | |
| 1287 | + function _assertClassBrand(e, t, n) { | |
| 1288 | + if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; | |
| 1289 | + throw new TypeError("Private element is not present on this object"); | |
| 1290 | + } | |
| 1291 | + var _Module_brand = /*#__PURE__*/ new WeakSet(); | |
| 1292 | + var Module = /*#__PURE__*/ function(_elementorModules$edi) { | |
| 1293 | + function Module() { | |
| 1294 | + var _this; | |
| 1295 | + _classCallCheck(this, Module); | |
| 1296 | + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; | |
| 1297 | + _this = _callSuper(this, Module, [].concat(args)); | |
| 1298 | + _classPrivateMethodInitSpec(_this, _Module_brand); | |
| 1299 | + return _this; | |
| 1300 | + } | |
| 1301 | + _inherits(Module, _elementorModules$edi); | |
| 1302 | + return _createClass(Module, [{ | |
| 1303 | + key: "onElementorInit", | |
| 1304 | + value: function onElementorInit() { | |
| 1305 | + loadElementsDefaults(); | |
| 1306 | + _assertClassBrand(_Module_brand, this, _addContextMenuItem).call(this); | |
| 1307 | + } | |
| 1308 | + }, { | |
| 1309 | + key: "onElementorInitComponents", | |
| 1310 | + value: function onElementorInitComponents() { | |
| 1311 | + window.$e.components.register(new Component()); | |
| 1312 | + } | |
| 1313 | + }]); | |
| 1314 | + }(elementorModules.editor.utils.Module); | |
| 1315 | + function _addContextMenuItem() { | |
| 1316 | + var _elementor$config; | |
| 1317 | + if (!((_elementor$config = elementor.config) !== null && _elementor$config !== void 0 && (_elementor$config = _elementor$config.user) !== null && _elementor$config !== void 0 && _elementor$config.is_administrator)) return; | |
| 1318 | + [ | |
| 1319 | + "widget", | |
| 1320 | + "container", | |
| 1321 | + "section" | |
| 1322 | + ].forEach(function(elType) { | |
| 1323 | + elementor.hooks.addFilter("elements/".concat(elType, "/contextMenuGroups"), function(groups, view) { | |
| 1324 | + var _view$options; | |
| 1325 | + if ("section" === extractElementType(((_view$options = view.options) === null || _view$options === void 0 ? void 0 : _view$options.model) || {})) return groups; | |
| 1326 | + return groups.map(function(group) { | |
| 1327 | + if (group.name !== "save") return group; | |
| 1328 | + group.actions = [].concat(_toConsumableArray(group.actions), [{ | |
| 1329 | + name: "save-as-default", | |
| 1330 | + title: (0, _wordpress_i18n.__)("Save as default", "elementor"), | |
| 1331 | + isEnabled: function isEnabled() { | |
| 1332 | + return !view.getContainer().isLocked(); | |
| 1333 | + }, | |
| 1334 | + callback: function callback() { | |
| 1335 | + $e.run("kit-elements-defaults/confirm-creation", { container: view.getContainer() }); | |
| 1336 | + } | |
| 1337 | + }]); | |
| 1338 | + return group; | |
| 1339 | + }); | |
| 1340 | + }); | |
| 1341 | + }); | |
| 1342 | + } | |
| 676 | 1343 | |
| 1344 | +//#endregion | |
| 1345 | +//#region modules/kit-elements-defaults/assets/js/editor/index.js | |
| 1346 | + new Module(); | |
| 677 | 1347 | |
| 678 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 679 | -Object.defineProperty(exports, "__esModule", ({ | |
| 680 | - value: true | |
| 681 | -})); | |
| 682 | -exports["default"] = extractContainerSettings; | |
| 683 | -var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js")); | |
| 684 | -var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 685 | -var _utils = __webpack_require__(/*! ./utils */ "../modules/kit-elements-defaults/assets/js/editor/utils.js"); | |
| 686 | -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } | |
| 687 | -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } | |
| 688 | -var SPECIAL_SETTINGS = ['__dynamic__', '__globals__']; | |
| 689 | -function extractContainerSettings(container) { | |
| 690 | - var settingsModel = container.settings, | |
| 691 | - controls = settingsModel.controls, | |
| 692 | - settings = settingsModel.toJSON({ | |
| 693 | - remove: ['default'] | |
| 694 | - }); | |
| 695 | - var localSettings = extractSettings(settings, controls); | |
| 696 | - return _objectSpread(_objectSpread({}, localSettings), extractSpecialSettings(settings, controls, localSettings)); | |
| 697 | -} | |
| 698 | -function extractSettings(settings, controls) { | |
| 699 | - var existingSettings = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; | |
| 700 | - var entries = Object.entries(settings).filter(function (_ref) { | |
| 701 | - var _ref2 = (0, _slicedToArray2.default)(_ref, 1), | |
| 702 | - settingName = _ref2[0]; | |
| 703 | - return !!controls[settingName] && !Object.prototype.hasOwnProperty.call(existingSettings, settingName); | |
| 704 | - }); | |
| 705 | - return Object.fromEntries(entries); | |
| 706 | -} | |
| 707 | -function extractSpecialSettings(settings, controls, localSettings) { | |
| 708 | - return SPECIAL_SETTINGS.reduce(function (acc, type) { | |
| 709 | - var specialSettings = extractSettings((settings === null || settings === void 0 ? void 0 : settings[type]) || {}, controls, localSettings); | |
| 710 | - if (!(0, _utils.isPopulatedObject)(specialSettings)) { | |
| 711 | - return acc; | |
| 712 | - } | |
| 713 | - return _objectSpread(_objectSpread({}, acc), {}, (0, _defineProperty2.default)({}, type, specialSettings)); | |
| 714 | - }, {}); | |
| 715 | -} | |
| 716 | - | |
| 717 | -/***/ }), | |
| 718 | - | |
| 719 | -/***/ "../modules/kit-elements-defaults/assets/js/editor/hooks/data/fill-defaults-on-drop.js": | |
| 720 | -/*!*********************************************************************************************!*\ | |
| 721 | - !*** ../modules/kit-elements-defaults/assets/js/editor/hooks/data/fill-defaults-on-drop.js ***! | |
| 722 | - \*********************************************************************************************/ | |
| 723 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 724 | - | |
| 725 | -"use strict"; | |
| 726 | - | |
| 727 | - | |
| 728 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 729 | -Object.defineProperty(exports, "__esModule", ({ | |
| 730 | - value: true | |
| 731 | -})); | |
| 732 | -exports["default"] = void 0; | |
| 733 | -var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 734 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 735 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 736 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 737 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 738 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 739 | -var _api = __webpack_require__(/*! ../../api */ "../modules/kit-elements-defaults/assets/js/editor/api.js"); | |
| 740 | -var _utils = __webpack_require__(/*! ../../utils */ "../modules/kit-elements-defaults/assets/js/editor/utils.js"); | |
| 741 | -function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } | |
| 742 | -function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } | |
| 743 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 744 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 745 | -var FillDefaultsOnDrop = exports["default"] = /*#__PURE__*/function (_$e$modules$hookData$) { | |
| 746 | - function FillDefaultsOnDrop() { | |
| 747 | - (0, _classCallCheck2.default)(this, FillDefaultsOnDrop); | |
| 748 | - return _callSuper(this, FillDefaultsOnDrop, arguments); | |
| 749 | - } | |
| 750 | - (0, _inherits2.default)(FillDefaultsOnDrop, _$e$modules$hookData$); | |
| 751 | - return (0, _createClass2.default)(FillDefaultsOnDrop, [{ | |
| 752 | - key: "getCommand", | |
| 753 | - value: function getCommand() { | |
| 754 | - return 'preview/drop'; | |
| 755 | - } | |
| 756 | - }, { | |
| 757 | - key: "getId", | |
| 758 | - value: function getId() { | |
| 759 | - return 'fill-defaults-on-drop'; | |
| 760 | - } | |
| 761 | - }, { | |
| 762 | - key: "getConditions", | |
| 763 | - value: function getConditions(args) { | |
| 764 | - var _args$model, _args$model2; | |
| 765 | - return ((_args$model = args.model) === null || _args$model === void 0 ? void 0 : _args$model.widgetType) || ((_args$model2 = args.model) === null || _args$model2 === void 0 ? void 0 : _args$model2.elType); | |
| 766 | - } | |
| 767 | - }, { | |
| 768 | - key: "apply", | |
| 769 | - value: function apply(args) { | |
| 770 | - var model = args.model; | |
| 771 | - var elementDefaultSettings = (0, _api.getElementDefaults)((0, _utils.extractElementType)(model)); | |
| 772 | - if (!(0, _utils.isPopulatedObject)(elementDefaultSettings)) { | |
| 773 | - return true; | |
| 774 | - } | |
| 775 | - var settings = _objectSpread(_objectSpread({}, elementDefaultSettings), args.model.settings || {}); | |
| 776 | - ['__dynamic__', '__globals__'].forEach(function (type) { | |
| 777 | - var _args$model$settings; | |
| 778 | - if (!(0, _utils.isPopulatedObject)(elementDefaultSettings[type])) { | |
| 779 | - return; | |
| 780 | - } | |
| 781 | - settings[type] = _objectSpread(_objectSpread({}, elementDefaultSettings[type] || {}), ((_args$model$settings = args.model.settings) === null || _args$model$settings === void 0 ? void 0 : _args$model$settings[type]) || {}); | |
| 782 | - }); | |
| 783 | - args.model = _objectSpread(_objectSpread({}, args.model), {}, { | |
| 784 | - settings: settings | |
| 785 | - }); | |
| 786 | - return true; | |
| 787 | - } | |
| 788 | - }]); | |
| 789 | -}($e.modules.hookData.Dependency); | |
| 790 | - | |
| 791 | -/***/ }), | |
| 792 | - | |
| 793 | -/***/ "../modules/kit-elements-defaults/assets/js/editor/hooks/index.js": | |
| 794 | -/*!************************************************************************!*\ | |
| 795 | - !*** ../modules/kit-elements-defaults/assets/js/editor/hooks/index.js ***! | |
| 796 | - \************************************************************************/ | |
| 797 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 798 | - | |
| 799 | -"use strict"; | |
| 800 | - | |
| 801 | - | |
| 802 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 803 | -Object.defineProperty(exports, "__esModule", ({ | |
| 804 | - value: true | |
| 805 | -})); | |
| 806 | -Object.defineProperty(exports, "FillDefaultsOnDrop", ({ | |
| 807 | - enumerable: true, | |
| 808 | - get: function get() { | |
| 809 | - return _fillDefaultsOnDrop.default; | |
| 810 | - } | |
| 811 | -})); | |
| 812 | -var _fillDefaultsOnDrop = _interopRequireDefault(__webpack_require__(/*! ./data/fill-defaults-on-drop */ "../modules/kit-elements-defaults/assets/js/editor/hooks/data/fill-defaults-on-drop.js")); | |
| 813 | - | |
| 814 | -/***/ }), | |
| 815 | - | |
| 816 | -/***/ "../modules/kit-elements-defaults/assets/js/editor/module.js": | |
| 817 | -/*!*******************************************************************!*\ | |
| 818 | - !*** ../modules/kit-elements-defaults/assets/js/editor/module.js ***! | |
| 819 | - \*******************************************************************/ | |
| 820 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 821 | - | |
| 822 | -"use strict"; | |
| 823 | -/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 824 | - | |
| 825 | - | |
| 826 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 827 | -Object.defineProperty(exports, "__esModule", ({ | |
| 828 | - value: true | |
| 829 | -})); | |
| 830 | -exports["default"] = void 0; | |
| 831 | -var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "../node_modules/@babel/runtime/helpers/toConsumableArray.js")); | |
| 832 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 833 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 834 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 835 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 836 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 837 | -var _component = _interopRequireDefault(__webpack_require__(/*! ./component */ "../modules/kit-elements-defaults/assets/js/editor/component.js")); | |
| 838 | -var _api = __webpack_require__(/*! ./api */ "../modules/kit-elements-defaults/assets/js/editor/api.js"); | |
| 839 | -var _utils = __webpack_require__(/*! ./utils */ "../modules/kit-elements-defaults/assets/js/editor/utils.js"); | |
| 840 | -function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); } | |
| 841 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 842 | -function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); } | |
| 843 | -function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); } | |
| 844 | -function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); } | |
| 845 | -var _Module_brand = /*#__PURE__*/new WeakSet(); | |
| 846 | -var Module = exports["default"] = /*#__PURE__*/function (_elementorModules$edi) { | |
| 847 | - function Module() { | |
| 848 | - var _this; | |
| 849 | - (0, _classCallCheck2.default)(this, Module); | |
| 850 | - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { | |
| 851 | - args[_key] = arguments[_key]; | |
| 852 | - } | |
| 853 | - _this = _callSuper(this, Module, [].concat(args)); | |
| 854 | - _classPrivateMethodInitSpec(_this, _Module_brand); | |
| 855 | - return _this; | |
| 856 | - } | |
| 857 | - (0, _inherits2.default)(Module, _elementorModules$edi); | |
| 858 | - return (0, _createClass2.default)(Module, [{ | |
| 859 | - key: "onElementorInit", | |
| 860 | - value: function onElementorInit() { | |
| 861 | - (0, _api.loadElementsDefaults)(); | |
| 862 | - _assertClassBrand(_Module_brand, this, _addContextMenuItem).call(this); | |
| 863 | - } | |
| 864 | - }, { | |
| 865 | - key: "onElementorInitComponents", | |
| 866 | - value: function onElementorInitComponents() { | |
| 867 | - window.$e.components.register(new _component.default()); | |
| 868 | - } | |
| 869 | - }]); | |
| 870 | -}(elementorModules.editor.utils.Module); | |
| 871 | -function _addContextMenuItem() { | |
| 872 | - var _elementor$config; | |
| 873 | - if (!((_elementor$config = elementor.config) !== null && _elementor$config !== void 0 && (_elementor$config = _elementor$config.user) !== null && _elementor$config !== void 0 && _elementor$config.is_administrator)) { | |
| 874 | - return; | |
| 875 | - } | |
| 876 | - ['widget', 'container', 'section'].forEach(function (elType) { | |
| 877 | - elementor.hooks.addFilter("elements/".concat(elType, "/contextMenuGroups"), function (groups, view) { | |
| 878 | - var _view$options; | |
| 879 | - // Supporting only inner section and not sections, | |
| 880 | - // extractElementType() will return 'inner-section' for inner sections instead of 'section'. | |
| 881 | - if ('section' === (0, _utils.extractElementType)(((_view$options = view.options) === null || _view$options === void 0 ? void 0 : _view$options.model) || {})) { | |
| 882 | - return groups; | |
| 883 | - } | |
| 884 | - return groups.map(function (group) { | |
| 885 | - if (group.name !== 'save') { | |
| 886 | - return group; | |
| 887 | - } | |
| 888 | - group.actions = [].concat((0, _toConsumableArray2.default)(group.actions), [{ | |
| 889 | - name: 'save-as-default', | |
| 890 | - title: __('Save as default', 'elementor'), | |
| 891 | - isEnabled: function isEnabled() { | |
| 892 | - return !view.getContainer().isLocked(); | |
| 893 | - }, | |
| 894 | - callback: function callback() { | |
| 895 | - $e.run('kit-elements-defaults/confirm-creation', { | |
| 896 | - container: view.getContainer() | |
| 897 | - }); | |
| 898 | - } | |
| 899 | - }]); | |
| 900 | - return group; | |
| 901 | - }); | |
| 902 | - }); | |
| 903 | - }); | |
| 904 | -} | |
| 905 | - | |
| 906 | -/***/ }), | |
| 907 | - | |
| 908 | -/***/ "../modules/kit-elements-defaults/assets/js/editor/utils.js": | |
| 909 | -/*!******************************************************************!*\ | |
| 910 | - !*** ../modules/kit-elements-defaults/assets/js/editor/utils.js ***! | |
| 911 | - \******************************************************************/ | |
| 912 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 913 | - | |
| 914 | -"use strict"; | |
| 915 | - | |
| 916 | - | |
| 917 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 918 | -Object.defineProperty(exports, "__esModule", ({ | |
| 919 | - value: true | |
| 920 | -})); | |
| 921 | -exports.extractElementType = extractElementType; | |
| 922 | -exports.isPopulatedObject = isPopulatedObject; | |
| 923 | -var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js")); | |
| 924 | -function isPopulatedObject(obj) { | |
| 925 | - return obj && 'object' === (0, _typeof2.default)(obj) && !Array.isArray(obj) && Object.keys(obj).length > 0; | |
| 926 | -} | |
| 927 | -function extractElementType(model) { | |
| 928 | - model = model.attributes || model; | |
| 929 | - var elementType = model.widgetType || model.elType; | |
| 930 | - if ('section' === elementType && model.isInner) { | |
| 931 | - elementType = 'inner-section'; | |
| 932 | - } | |
| 933 | - return elementType; | |
| 934 | -} | |
| 935 | - | |
| 936 | -/***/ }), | |
| 937 | - | |
| 938 | -/***/ "../node_modules/@babel/runtime/helpers/OverloadYield.js": | |
| 939 | -/*!***************************************************************!*\ | |
| 940 | - !*** ../node_modules/@babel/runtime/helpers/OverloadYield.js ***! | |
| 941 | - \***************************************************************/ | |
| 942 | -/***/ ((module) => { | |
| 943 | - | |
| 944 | -function _OverloadYield(e, d) { | |
| 945 | - this.v = e, this.k = d; | |
| 946 | -} | |
| 947 | -module.exports = _OverloadYield, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 948 | - | |
| 949 | -/***/ }), | |
| 950 | - | |
| 951 | -/***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js": | |
| 952 | -/*!******************************************************************!*\ | |
| 953 | - !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***! | |
| 954 | - \******************************************************************/ | |
| 955 | -/***/ ((module) => { | |
| 956 | - | |
| 957 | -function _arrayLikeToArray(r, a) { | |
| 958 | - (null == a || a > r.length) && (a = r.length); | |
| 959 | - for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; | |
| 960 | - return n; | |
| 961 | -} | |
| 962 | -module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 963 | - | |
| 964 | -/***/ }), | |
| 965 | - | |
| 966 | -/***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js": | |
| 967 | -/*!****************************************************************!*\ | |
| 968 | - !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***! | |
| 969 | - \****************************************************************/ | |
| 970 | -/***/ ((module) => { | |
| 971 | - | |
| 972 | -function _arrayWithHoles(r) { | |
| 973 | - if (Array.isArray(r)) return r; | |
| 974 | -} | |
| 975 | -module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 976 | - | |
| 977 | -/***/ }), | |
| 978 | - | |
| 979 | -/***/ "../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js": | |
| 980 | -/*!*******************************************************************!*\ | |
| 981 | - !*** ../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***! | |
| 982 | - \*******************************************************************/ | |
| 983 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 984 | - | |
| 985 | -var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js"); | |
| 986 | -function _arrayWithoutHoles(r) { | |
| 987 | - if (Array.isArray(r)) return arrayLikeToArray(r); | |
| 988 | -} | |
| 989 | -module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 990 | - | |
| 991 | -/***/ }), | |
| 992 | - | |
| 993 | -/***/ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js": | |
| 994 | -/*!***********************************************************************!*\ | |
| 995 | - !*** ../node_modules/@babel/runtime/helpers/assertThisInitialized.js ***! | |
| 996 | - \***********************************************************************/ | |
| 997 | -/***/ ((module) => { | |
| 998 | - | |
| 999 | -function _assertThisInitialized(e) { | |
| 1000 | - if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| 1001 | - return e; | |
| 1002 | -} | |
| 1003 | -module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1004 | - | |
| 1005 | -/***/ }), | |
| 1006 | - | |
| 1007 | -/***/ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js": | |
| 1008 | -/*!******************************************************************!*\ | |
| 1009 | - !*** ../node_modules/@babel/runtime/helpers/asyncToGenerator.js ***! | |
| 1010 | - \******************************************************************/ | |
| 1011 | -/***/ ((module) => { | |
| 1012 | - | |
| 1013 | -function asyncGeneratorStep(n, t, e, r, o, a, c) { | |
| 1014 | - try { | |
| 1015 | - var i = n[a](c), | |
| 1016 | - u = i.value; | |
| 1017 | - } catch (n) { | |
| 1018 | - return void e(n); | |
| 1019 | - } | |
| 1020 | - i.done ? t(u) : Promise.resolve(u).then(r, o); | |
| 1021 | -} | |
| 1022 | -function _asyncToGenerator(n) { | |
| 1023 | - return function () { | |
| 1024 | - var t = this, | |
| 1025 | - e = arguments; | |
| 1026 | - return new Promise(function (r, o) { | |
| 1027 | - var a = n.apply(t, e); | |
| 1028 | - function _next(n) { | |
| 1029 | - asyncGeneratorStep(a, r, o, _next, _throw, "next", n); | |
| 1030 | - } | |
| 1031 | - function _throw(n) { | |
| 1032 | - asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); | |
| 1033 | - } | |
| 1034 | - _next(void 0); | |
| 1035 | - }); | |
| 1036 | - }; | |
| 1037 | -} | |
| 1038 | -module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1039 | - | |
| 1040 | -/***/ }), | |
| 1041 | - | |
| 1042 | -/***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js": | |
| 1043 | -/*!****************************************************************!*\ | |
| 1044 | - !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***! | |
| 1045 | - \****************************************************************/ | |
| 1046 | -/***/ ((module) => { | |
| 1047 | - | |
| 1048 | -function _classCallCheck(a, n) { | |
| 1049 | - if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); | |
| 1050 | -} | |
| 1051 | -module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1052 | - | |
| 1053 | -/***/ }), | |
| 1054 | - | |
| 1055 | -/***/ "../node_modules/@babel/runtime/helpers/createClass.js": | |
| 1056 | -/*!*************************************************************!*\ | |
| 1057 | - !*** ../node_modules/@babel/runtime/helpers/createClass.js ***! | |
| 1058 | - \*************************************************************/ | |
| 1059 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1060 | - | |
| 1061 | -var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); | |
| 1062 | -function _defineProperties(e, r) { | |
| 1063 | - for (var t = 0; t < r.length; t++) { | |
| 1064 | - var o = r[t]; | |
| 1065 | - o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o); | |
| 1066 | - } | |
| 1067 | -} | |
| 1068 | -function _createClass(e, r, t) { | |
| 1069 | - return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { | |
| 1070 | - writable: !1 | |
| 1071 | - }), e; | |
| 1072 | -} | |
| 1073 | -module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1074 | - | |
| 1075 | -/***/ }), | |
| 1076 | - | |
| 1077 | -/***/ "../node_modules/@babel/runtime/helpers/defineProperty.js": | |
| 1078 | -/*!****************************************************************!*\ | |
| 1079 | - !*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***! | |
| 1080 | - \****************************************************************/ | |
| 1081 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1082 | - | |
| 1083 | -var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); | |
| 1084 | -function _defineProperty(e, r, t) { | |
| 1085 | - return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, { | |
| 1086 | - value: t, | |
| 1087 | - enumerable: !0, | |
| 1088 | - configurable: !0, | |
| 1089 | - writable: !0 | |
| 1090 | - }) : e[r] = t, e; | |
| 1091 | -} | |
| 1092 | -module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1093 | - | |
| 1094 | -/***/ }), | |
| 1095 | - | |
| 1096 | -/***/ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js": | |
| 1097 | -/*!****************************************************************!*\ | |
| 1098 | - !*** ../node_modules/@babel/runtime/helpers/getPrototypeOf.js ***! | |
| 1099 | - \****************************************************************/ | |
| 1100 | -/***/ ((module) => { | |
| 1101 | - | |
| 1102 | -function _getPrototypeOf(t) { | |
| 1103 | - return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { | |
| 1104 | - return t.__proto__ || Object.getPrototypeOf(t); | |
| 1105 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _getPrototypeOf(t); | |
| 1106 | -} | |
| 1107 | -module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1108 | - | |
| 1109 | -/***/ }), | |
| 1110 | - | |
| 1111 | -/***/ "../node_modules/@babel/runtime/helpers/inherits.js": | |
| 1112 | -/*!**********************************************************!*\ | |
| 1113 | - !*** ../node_modules/@babel/runtime/helpers/inherits.js ***! | |
| 1114 | - \**********************************************************/ | |
| 1115 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1116 | - | |
| 1117 | -var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js"); | |
| 1118 | -function _inherits(t, e) { | |
| 1119 | - if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); | |
| 1120 | - t.prototype = Object.create(e && e.prototype, { | |
| 1121 | - constructor: { | |
| 1122 | - value: t, | |
| 1123 | - writable: !0, | |
| 1124 | - configurable: !0 | |
| 1125 | - } | |
| 1126 | - }), Object.defineProperty(t, "prototype", { | |
| 1127 | - writable: !1 | |
| 1128 | - }), e && setPrototypeOf(t, e); | |
| 1129 | -} | |
| 1130 | -module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1131 | - | |
| 1132 | -/***/ }), | |
| 1133 | - | |
| 1134 | -/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js": | |
| 1135 | -/*!***********************************************************************!*\ | |
| 1136 | - !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***! | |
| 1137 | - \***********************************************************************/ | |
| 1138 | -/***/ ((module) => { | |
| 1139 | - | |
| 1140 | -function _interopRequireDefault(e) { | |
| 1141 | - return e && e.__esModule ? e : { | |
| 1142 | - "default": e | |
| 1143 | - }; | |
| 1144 | -} | |
| 1145 | -module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1146 | - | |
| 1147 | -/***/ }), | |
| 1148 | - | |
| 1149 | -/***/ "../node_modules/@babel/runtime/helpers/iterableToArray.js": | |
| 1150 | -/*!*****************************************************************!*\ | |
| 1151 | - !*** ../node_modules/@babel/runtime/helpers/iterableToArray.js ***! | |
| 1152 | - \*****************************************************************/ | |
| 1153 | -/***/ ((module) => { | |
| 1154 | - | |
| 1155 | -function _iterableToArray(r) { | |
| 1156 | - if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); | |
| 1157 | -} | |
| 1158 | -module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1159 | - | |
| 1160 | -/***/ }), | |
| 1161 | - | |
| 1162 | -/***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js": | |
| 1163 | -/*!**********************************************************************!*\ | |
| 1164 | - !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***! | |
| 1165 | - \**********************************************************************/ | |
| 1166 | -/***/ ((module) => { | |
| 1167 | - | |
| 1168 | -function _iterableToArrayLimit(r, l) { | |
| 1169 | - var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; | |
| 1170 | - if (null != t) { | |
| 1171 | - var e, | |
| 1172 | - n, | |
| 1173 | - i, | |
| 1174 | - u, | |
| 1175 | - a = [], | |
| 1176 | - f = !0, | |
| 1177 | - o = !1; | |
| 1178 | - try { | |
| 1179 | - if (i = (t = t.call(r)).next, 0 === l) { | |
| 1180 | - if (Object(t) !== t) return; | |
| 1181 | - f = !1; | |
| 1182 | - } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); | |
| 1183 | - } catch (r) { | |
| 1184 | - o = !0, n = r; | |
| 1185 | - } finally { | |
| 1186 | - try { | |
| 1187 | - if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; | |
| 1188 | - } finally { | |
| 1189 | - if (o) throw n; | |
| 1190 | - } | |
| 1191 | - } | |
| 1192 | - return a; | |
| 1193 | - } | |
| 1194 | -} | |
| 1195 | -module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1196 | - | |
| 1197 | -/***/ }), | |
| 1198 | - | |
| 1199 | -/***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js": | |
| 1200 | -/*!*****************************************************************!*\ | |
| 1201 | - !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***! | |
| 1202 | - \*****************************************************************/ | |
| 1203 | -/***/ ((module) => { | |
| 1204 | - | |
| 1205 | -function _nonIterableRest() { | |
| 1206 | - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
| 1207 | -} | |
| 1208 | -module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1209 | - | |
| 1210 | -/***/ }), | |
| 1211 | - | |
| 1212 | -/***/ "../node_modules/@babel/runtime/helpers/nonIterableSpread.js": | |
| 1213 | -/*!*******************************************************************!*\ | |
| 1214 | - !*** ../node_modules/@babel/runtime/helpers/nonIterableSpread.js ***! | |
| 1215 | - \*******************************************************************/ | |
| 1216 | -/***/ ((module) => { | |
| 1217 | - | |
| 1218 | -function _nonIterableSpread() { | |
| 1219 | - throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
| 1220 | -} | |
| 1221 | -module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1222 | - | |
| 1223 | -/***/ }), | |
| 1224 | - | |
| 1225 | -/***/ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js": | |
| 1226 | -/*!***************************************************************************!*\ | |
| 1227 | - !*** ../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***! | |
| 1228 | - \***************************************************************************/ | |
| 1229 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1230 | - | |
| 1231 | -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 1232 | -var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js"); | |
| 1233 | -function _possibleConstructorReturn(t, e) { | |
| 1234 | - if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; | |
| 1235 | - if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); | |
| 1236 | - return assertThisInitialized(t); | |
| 1237 | -} | |
| 1238 | -module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1239 | - | |
| 1240 | -/***/ }), | |
| 1241 | - | |
| 1242 | -/***/ "../node_modules/@babel/runtime/helpers/regenerator.js": | |
| 1243 | -/*!*************************************************************!*\ | |
| 1244 | - !*** ../node_modules/@babel/runtime/helpers/regenerator.js ***! | |
| 1245 | - \*************************************************************/ | |
| 1246 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1247 | - | |
| 1248 | -var regeneratorDefine = __webpack_require__(/*! ./regeneratorDefine.js */ "../node_modules/@babel/runtime/helpers/regeneratorDefine.js"); | |
| 1249 | -function _regenerator() { | |
| 1250 | - /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ | |
| 1251 | - var e, | |
| 1252 | - t, | |
| 1253 | - r = "function" == typeof Symbol ? Symbol : {}, | |
| 1254 | - n = r.iterator || "@@iterator", | |
| 1255 | - o = r.toStringTag || "@@toStringTag"; | |
| 1256 | - function i(r, n, o, i) { | |
| 1257 | - var c = n && n.prototype instanceof Generator ? n : Generator, | |
| 1258 | - u = Object.create(c.prototype); | |
| 1259 | - return regeneratorDefine(u, "_invoke", function (r, n, o) { | |
| 1260 | - var i, | |
| 1261 | - c, | |
| 1262 | - u, | |
| 1263 | - f = 0, | |
| 1264 | - p = o || [], | |
| 1265 | - y = !1, | |
| 1266 | - G = { | |
| 1267 | - p: 0, | |
| 1268 | - n: 0, | |
| 1269 | - v: e, | |
| 1270 | - a: d, | |
| 1271 | - f: d.bind(e, 4), | |
| 1272 | - d: function d(t, r) { | |
| 1273 | - return i = t, c = 0, u = e, G.n = r, a; | |
| 1274 | - } | |
| 1275 | - }; | |
| 1276 | - function d(r, n) { | |
| 1277 | - for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { | |
| 1278 | - var o, | |
| 1279 | - i = p[t], | |
| 1280 | - d = G.p, | |
| 1281 | - l = i[2]; | |
| 1282 | - r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); | |
| 1283 | - } | |
| 1284 | - if (o || r > 1) return a; | |
| 1285 | - throw y = !0, n; | |
| 1286 | - } | |
| 1287 | - return function (o, p, l) { | |
| 1288 | - if (f > 1) throw TypeError("Generator is already running"); | |
| 1289 | - for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { | |
| 1290 | - i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); | |
| 1291 | - try { | |
| 1292 | - if (f = 2, i) { | |
| 1293 | - if (c || (o = "next"), t = i[o]) { | |
| 1294 | - if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); | |
| 1295 | - if (!t.done) return t; | |
| 1296 | - u = t.value, c < 2 && (c = 0); | |
| 1297 | - } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); | |
| 1298 | - i = e; | |
| 1299 | - } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; | |
| 1300 | - } catch (t) { | |
| 1301 | - i = e, c = 1, u = t; | |
| 1302 | - } finally { | |
| 1303 | - f = 1; | |
| 1304 | - } | |
| 1305 | - } | |
| 1306 | - return { | |
| 1307 | - value: t, | |
| 1308 | - done: y | |
| 1309 | - }; | |
| 1310 | - }; | |
| 1311 | - }(r, o, i), !0), u; | |
| 1312 | - } | |
| 1313 | - var a = {}; | |
| 1314 | - function Generator() {} | |
| 1315 | - function GeneratorFunction() {} | |
| 1316 | - function GeneratorFunctionPrototype() {} | |
| 1317 | - t = Object.getPrototypeOf; | |
| 1318 | - var c = [][n] ? t(t([][n]())) : (regeneratorDefine(t = {}, n, function () { | |
| 1319 | - return this; | |
| 1320 | - }), t), | |
| 1321 | - u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); | |
| 1322 | - function f(e) { | |
| 1323 | - return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; | |
| 1324 | - } | |
| 1325 | - return GeneratorFunction.prototype = GeneratorFunctionPrototype, regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), regeneratorDefine(u), regeneratorDefine(u, o, "Generator"), regeneratorDefine(u, n, function () { | |
| 1326 | - return this; | |
| 1327 | - }), regeneratorDefine(u, "toString", function () { | |
| 1328 | - return "[object Generator]"; | |
| 1329 | - }), (module.exports = _regenerator = function _regenerator() { | |
| 1330 | - return { | |
| 1331 | - w: i, | |
| 1332 | - m: f | |
| 1333 | - }; | |
| 1334 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports)(); | |
| 1335 | -} | |
| 1336 | -module.exports = _regenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1337 | - | |
| 1338 | -/***/ }), | |
| 1339 | - | |
| 1340 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorAsync.js": | |
| 1341 | -/*!******************************************************************!*\ | |
| 1342 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorAsync.js ***! | |
| 1343 | - \******************************************************************/ | |
| 1344 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1345 | - | |
| 1346 | -var regeneratorAsyncGen = __webpack_require__(/*! ./regeneratorAsyncGen.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js"); | |
| 1347 | -function _regeneratorAsync(n, e, r, t, o) { | |
| 1348 | - var a = regeneratorAsyncGen(n, e, r, t, o); | |
| 1349 | - return a.next().then(function (n) { | |
| 1350 | - return n.done ? n.value : a.next(); | |
| 1351 | - }); | |
| 1352 | -} | |
| 1353 | -module.exports = _regeneratorAsync, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1354 | - | |
| 1355 | -/***/ }), | |
| 1356 | - | |
| 1357 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js": | |
| 1358 | -/*!*********************************************************************!*\ | |
| 1359 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js ***! | |
| 1360 | - \*********************************************************************/ | |
| 1361 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1362 | - | |
| 1363 | -var regenerator = __webpack_require__(/*! ./regenerator.js */ "../node_modules/@babel/runtime/helpers/regenerator.js"); | |
| 1364 | -var regeneratorAsyncIterator = __webpack_require__(/*! ./regeneratorAsyncIterator.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js"); | |
| 1365 | -function _regeneratorAsyncGen(r, e, t, o, n) { | |
| 1366 | - return new regeneratorAsyncIterator(regenerator().w(r, e, t, o), n || Promise); | |
| 1367 | -} | |
| 1368 | -module.exports = _regeneratorAsyncGen, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1369 | - | |
| 1370 | -/***/ }), | |
| 1371 | - | |
| 1372 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js": | |
| 1373 | -/*!**************************************************************************!*\ | |
| 1374 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js ***! | |
| 1375 | - \**************************************************************************/ | |
| 1376 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1377 | - | |
| 1378 | -var OverloadYield = __webpack_require__(/*! ./OverloadYield.js */ "../node_modules/@babel/runtime/helpers/OverloadYield.js"); | |
| 1379 | -var regeneratorDefine = __webpack_require__(/*! ./regeneratorDefine.js */ "../node_modules/@babel/runtime/helpers/regeneratorDefine.js"); | |
| 1380 | -function AsyncIterator(t, e) { | |
| 1381 | - function n(r, o, i, f) { | |
| 1382 | - try { | |
| 1383 | - var c = t[r](o), | |
| 1384 | - u = c.value; | |
| 1385 | - return u instanceof OverloadYield ? e.resolve(u.v).then(function (t) { | |
| 1386 | - n("next", t, i, f); | |
| 1387 | - }, function (t) { | |
| 1388 | - n("throw", t, i, f); | |
| 1389 | - }) : e.resolve(u).then(function (t) { | |
| 1390 | - c.value = t, i(c); | |
| 1391 | - }, function (t) { | |
| 1392 | - return n("throw", t, i, f); | |
| 1393 | - }); | |
| 1394 | - } catch (t) { | |
| 1395 | - f(t); | |
| 1396 | - } | |
| 1397 | - } | |
| 1398 | - var r; | |
| 1399 | - this.next || (regeneratorDefine(AsyncIterator.prototype), regeneratorDefine(AsyncIterator.prototype, "function" == typeof Symbol && Symbol.asyncIterator || "@asyncIterator", function () { | |
| 1400 | - return this; | |
| 1401 | - })), regeneratorDefine(this, "_invoke", function (t, o, i) { | |
| 1402 | - function f() { | |
| 1403 | - return new e(function (e, r) { | |
| 1404 | - n(t, i, e, r); | |
| 1405 | - }); | |
| 1406 | - } | |
| 1407 | - return r = r ? r.then(f, f) : f(); | |
| 1408 | - }, !0); | |
| 1409 | -} | |
| 1410 | -module.exports = AsyncIterator, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1411 | - | |
| 1412 | -/***/ }), | |
| 1413 | - | |
| 1414 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorDefine.js": | |
| 1415 | -/*!*******************************************************************!*\ | |
| 1416 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorDefine.js ***! | |
| 1417 | - \*******************************************************************/ | |
| 1418 | -/***/ ((module) => { | |
| 1419 | - | |
| 1420 | -function _regeneratorDefine(e, r, n, t) { | |
| 1421 | - var i = Object.defineProperty; | |
| 1422 | - try { | |
| 1423 | - i({}, "", {}); | |
| 1424 | - } catch (e) { | |
| 1425 | - i = 0; | |
| 1426 | - } | |
| 1427 | - module.exports = _regeneratorDefine = function regeneratorDefine(e, r, n, t) { | |
| 1428 | - function o(r, n) { | |
| 1429 | - _regeneratorDefine(e, r, function (e) { | |
| 1430 | - return this._invoke(r, n, e); | |
| 1431 | - }); | |
| 1432 | - } | |
| 1433 | - r ? i ? i(e, r, { | |
| 1434 | - value: n, | |
| 1435 | - enumerable: !t, | |
| 1436 | - configurable: !t, | |
| 1437 | - writable: !t | |
| 1438 | - }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); | |
| 1439 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _regeneratorDefine(e, r, n, t); | |
| 1440 | -} | |
| 1441 | -module.exports = _regeneratorDefine, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1442 | - | |
| 1443 | -/***/ }), | |
| 1444 | - | |
| 1445 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorKeys.js": | |
| 1446 | -/*!*****************************************************************!*\ | |
| 1447 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorKeys.js ***! | |
| 1448 | - \*****************************************************************/ | |
| 1449 | -/***/ ((module) => { | |
| 1450 | - | |
| 1451 | -function _regeneratorKeys(e) { | |
| 1452 | - var n = Object(e), | |
| 1453 | - r = []; | |
| 1454 | - for (var t in n) r.unshift(t); | |
| 1455 | - return function e() { | |
| 1456 | - for (; r.length;) if ((t = r.pop()) in n) return e.value = t, e.done = !1, e; | |
| 1457 | - return e.done = !0, e; | |
| 1458 | - }; | |
| 1459 | -} | |
| 1460 | -module.exports = _regeneratorKeys, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1461 | - | |
| 1462 | -/***/ }), | |
| 1463 | - | |
| 1464 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorRuntime.js": | |
| 1465 | -/*!********************************************************************!*\ | |
| 1466 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***! | |
| 1467 | - \********************************************************************/ | |
| 1468 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1469 | - | |
| 1470 | -var OverloadYield = __webpack_require__(/*! ./OverloadYield.js */ "../node_modules/@babel/runtime/helpers/OverloadYield.js"); | |
| 1471 | -var regenerator = __webpack_require__(/*! ./regenerator.js */ "../node_modules/@babel/runtime/helpers/regenerator.js"); | |
| 1472 | -var regeneratorAsync = __webpack_require__(/*! ./regeneratorAsync.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsync.js"); | |
| 1473 | -var regeneratorAsyncGen = __webpack_require__(/*! ./regeneratorAsyncGen.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js"); | |
| 1474 | -var regeneratorAsyncIterator = __webpack_require__(/*! ./regeneratorAsyncIterator.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js"); | |
| 1475 | -var regeneratorKeys = __webpack_require__(/*! ./regeneratorKeys.js */ "../node_modules/@babel/runtime/helpers/regeneratorKeys.js"); | |
| 1476 | -var regeneratorValues = __webpack_require__(/*! ./regeneratorValues.js */ "../node_modules/@babel/runtime/helpers/regeneratorValues.js"); | |
| 1477 | -function _regeneratorRuntime() { | |
| 1478 | - "use strict"; | |
| 1479 | - | |
| 1480 | - var r = regenerator(), | |
| 1481 | - e = r.m(_regeneratorRuntime), | |
| 1482 | - t = (Object.getPrototypeOf ? Object.getPrototypeOf(e) : e.__proto__).constructor; | |
| 1483 | - function n(r) { | |
| 1484 | - var e = "function" == typeof r && r.constructor; | |
| 1485 | - return !!e && (e === t || "GeneratorFunction" === (e.displayName || e.name)); | |
| 1486 | - } | |
| 1487 | - var o = { | |
| 1488 | - "throw": 1, | |
| 1489 | - "return": 2, | |
| 1490 | - "break": 3, | |
| 1491 | - "continue": 3 | |
| 1492 | - }; | |
| 1493 | - function a(r) { | |
| 1494 | - var e, t; | |
| 1495 | - return function (n) { | |
| 1496 | - e || (e = { | |
| 1497 | - stop: function stop() { | |
| 1498 | - return t(n.a, 2); | |
| 1499 | - }, | |
| 1500 | - "catch": function _catch() { | |
| 1501 | - return n.v; | |
| 1502 | - }, | |
| 1503 | - abrupt: function abrupt(r, e) { | |
| 1504 | - return t(n.a, o[r], e); | |
| 1505 | - }, | |
| 1506 | - delegateYield: function delegateYield(r, o, a) { | |
| 1507 | - return e.resultName = o, t(n.d, regeneratorValues(r), a); | |
| 1508 | - }, | |
| 1509 | - finish: function finish(r) { | |
| 1510 | - return t(n.f, r); | |
| 1511 | - } | |
| 1512 | - }, t = function t(r, _t, o) { | |
| 1513 | - n.p = e.prev, n.n = e.next; | |
| 1514 | - try { | |
| 1515 | - return r(_t, o); | |
| 1516 | - } finally { | |
| 1517 | - e.next = n.n; | |
| 1518 | - } | |
| 1519 | - }), e.resultName && (e[e.resultName] = n.v, e.resultName = void 0), e.sent = n.v, e.next = n.n; | |
| 1520 | - try { | |
| 1521 | - return r.call(this, e); | |
| 1522 | - } finally { | |
| 1523 | - n.p = e.prev, n.n = e.next; | |
| 1524 | - } | |
| 1525 | - }; | |
| 1526 | - } | |
| 1527 | - return (module.exports = _regeneratorRuntime = function _regeneratorRuntime() { | |
| 1528 | - return { | |
| 1529 | - wrap: function wrap(e, t, n, o) { | |
| 1530 | - return r.w(a(e), t, n, o && o.reverse()); | |
| 1531 | - }, | |
| 1532 | - isGeneratorFunction: n, | |
| 1533 | - mark: r.m, | |
| 1534 | - awrap: function awrap(r, e) { | |
| 1535 | - return new OverloadYield(r, e); | |
| 1536 | - }, | |
| 1537 | - AsyncIterator: regeneratorAsyncIterator, | |
| 1538 | - async: function async(r, e, t, o, u) { | |
| 1539 | - return (n(e) ? regeneratorAsyncGen : regeneratorAsync)(a(r), e, t, o, u); | |
| 1540 | - }, | |
| 1541 | - keys: regeneratorKeys, | |
| 1542 | - values: regeneratorValues | |
| 1543 | - }; | |
| 1544 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports)(); | |
| 1545 | -} | |
| 1546 | -module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1547 | - | |
| 1548 | -/***/ }), | |
| 1549 | - | |
| 1550 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorValues.js": | |
| 1551 | -/*!*******************************************************************!*\ | |
| 1552 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorValues.js ***! | |
| 1553 | - \*******************************************************************/ | |
| 1554 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1555 | - | |
| 1556 | -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 1557 | -function _regeneratorValues(e) { | |
| 1558 | - if (null != e) { | |
| 1559 | - var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"], | |
| 1560 | - r = 0; | |
| 1561 | - if (t) return t.call(e); | |
| 1562 | - if ("function" == typeof e.next) return e; | |
| 1563 | - if (!isNaN(e.length)) return { | |
| 1564 | - next: function next() { | |
| 1565 | - return e && r >= e.length && (e = void 0), { | |
| 1566 | - value: e && e[r++], | |
| 1567 | - done: !e | |
| 1568 | - }; | |
| 1569 | - } | |
| 1570 | - }; | |
| 1571 | - } | |
| 1572 | - throw new TypeError(_typeof(e) + " is not iterable"); | |
| 1573 | -} | |
| 1574 | -module.exports = _regeneratorValues, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1575 | - | |
| 1576 | -/***/ }), | |
| 1577 | - | |
| 1578 | -/***/ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js": | |
| 1579 | -/*!****************************************************************!*\ | |
| 1580 | - !*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***! | |
| 1581 | - \****************************************************************/ | |
| 1582 | -/***/ ((module) => { | |
| 1583 | - | |
| 1584 | -function _setPrototypeOf(t, e) { | |
| 1585 | - return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { | |
| 1586 | - return t.__proto__ = e, t; | |
| 1587 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _setPrototypeOf(t, e); | |
| 1588 | -} | |
| 1589 | -module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1590 | - | |
| 1591 | -/***/ }), | |
| 1592 | - | |
| 1593 | -/***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js": | |
| 1594 | -/*!***************************************************************!*\ | |
| 1595 | - !*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***! | |
| 1596 | - \***************************************************************/ | |
| 1597 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1598 | - | |
| 1599 | -var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js"); | |
| 1600 | -var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"); | |
| 1601 | -var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"); | |
| 1602 | -var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js"); | |
| 1603 | -function _slicedToArray(r, e) { | |
| 1604 | - return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest(); | |
| 1605 | -} | |
| 1606 | -module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1607 | - | |
| 1608 | -/***/ }), | |
| 1609 | - | |
| 1610 | -/***/ "../node_modules/@babel/runtime/helpers/toConsumableArray.js": | |
| 1611 | -/*!*******************************************************************!*\ | |
| 1612 | - !*** ../node_modules/@babel/runtime/helpers/toConsumableArray.js ***! | |
| 1613 | - \*******************************************************************/ | |
| 1614 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1615 | - | |
| 1616 | -var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"); | |
| 1617 | -var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ "../node_modules/@babel/runtime/helpers/iterableToArray.js"); | |
| 1618 | -var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"); | |
| 1619 | -var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ "../node_modules/@babel/runtime/helpers/nonIterableSpread.js"); | |
| 1620 | -function _toConsumableArray(r) { | |
| 1621 | - return arrayWithoutHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableSpread(); | |
| 1622 | -} | |
| 1623 | -module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1624 | - | |
| 1625 | -/***/ }), | |
| 1626 | - | |
| 1627 | -/***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js": | |
| 1628 | -/*!*************************************************************!*\ | |
| 1629 | - !*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***! | |
| 1630 | - \*************************************************************/ | |
| 1631 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1632 | - | |
| 1633 | -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 1634 | -function toPrimitive(t, r) { | |
| 1635 | - if ("object" != _typeof(t) || !t) return t; | |
| 1636 | - var e = t[Symbol.toPrimitive]; | |
| 1637 | - if (void 0 !== e) { | |
| 1638 | - var i = e.call(t, r || "default"); | |
| 1639 | - if ("object" != _typeof(i)) return i; | |
| 1640 | - throw new TypeError("@@toPrimitive must return a primitive value."); | |
| 1641 | - } | |
| 1642 | - return ("string" === r ? String : Number)(t); | |
| 1643 | -} | |
| 1644 | -module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1645 | - | |
| 1646 | -/***/ }), | |
| 1647 | - | |
| 1648 | -/***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js": | |
| 1649 | -/*!***************************************************************!*\ | |
| 1650 | - !*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***! | |
| 1651 | - \***************************************************************/ | |
| 1652 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1653 | - | |
| 1654 | -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 1655 | -var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js"); | |
| 1656 | -function toPropertyKey(t) { | |
| 1657 | - var i = toPrimitive(t, "string"); | |
| 1658 | - return "symbol" == _typeof(i) ? i : i + ""; | |
| 1659 | -} | |
| 1660 | -module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1661 | - | |
| 1662 | -/***/ }), | |
| 1663 | - | |
| 1664 | -/***/ "../node_modules/@babel/runtime/helpers/typeof.js": | |
| 1665 | -/*!********************************************************!*\ | |
| 1666 | - !*** ../node_modules/@babel/runtime/helpers/typeof.js ***! | |
| 1667 | - \********************************************************/ | |
| 1668 | -/***/ ((module) => { | |
| 1669 | - | |
| 1670 | -function _typeof(o) { | |
| 1671 | - "@babel/helpers - typeof"; | |
| 1672 | - | |
| 1673 | - return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { | |
| 1674 | - return typeof o; | |
| 1675 | - } : function (o) { | |
| 1676 | - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; | |
| 1677 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o); | |
| 1678 | -} | |
| 1679 | -module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1680 | - | |
| 1681 | -/***/ }), | |
| 1682 | - | |
| 1683 | -/***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js": | |
| 1684 | -/*!****************************************************************************!*\ | |
| 1685 | - !*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***! | |
| 1686 | - \****************************************************************************/ | |
| 1687 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1688 | - | |
| 1689 | -var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js"); | |
| 1690 | -function _unsupportedIterableToArray(r, a) { | |
| 1691 | - if (r) { | |
| 1692 | - if ("string" == typeof r) return arrayLikeToArray(r, a); | |
| 1693 | - var t = {}.toString.call(r).slice(8, -1); | |
| 1694 | - 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; | |
| 1695 | - } | |
| 1696 | -} | |
| 1697 | -module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 1698 | - | |
| 1699 | -/***/ }), | |
| 1700 | - | |
| 1701 | -/***/ "../node_modules/@babel/runtime/regenerator/index.js": | |
| 1702 | -/*!***********************************************************!*\ | |
| 1703 | - !*** ../node_modules/@babel/runtime/regenerator/index.js ***! | |
| 1704 | - \***********************************************************/ | |
| 1705 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1706 | - | |
| 1707 | -// TODO(Babel 8): Remove this file. | |
| 1708 | - | |
| 1709 | -var runtime = __webpack_require__(/*! ../helpers/regeneratorRuntime */ "../node_modules/@babel/runtime/helpers/regeneratorRuntime.js")(); | |
| 1710 | -module.exports = runtime; | |
| 1711 | - | |
| 1712 | -// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736= | |
| 1713 | -try { | |
| 1714 | - regeneratorRuntime = runtime; | |
| 1715 | -} catch (accidentalStrictMode) { | |
| 1716 | - if (typeof globalThis === "object") { | |
| 1717 | - globalThis.regeneratorRuntime = runtime; | |
| 1718 | - } else { | |
| 1719 | - Function("r", "regeneratorRuntime = r")(runtime); | |
| 1720 | - } | |
| 1721 | -} | |
| 1722 | - | |
| 1723 | - | |
| 1724 | -/***/ }), | |
| 1725 | - | |
| 1726 | -/***/ "@wordpress/i18n": | |
| 1727 | -/*!**************************!*\ | |
| 1728 | - !*** external "wp.i18n" ***! | |
| 1729 | - \**************************/ | |
| 1730 | -/***/ ((module) => { | |
| 1731 | - | |
| 1732 | -"use strict"; | |
| 1733 | -module.exports = wp.i18n; | |
| 1734 | - | |
| 1735 | -/***/ }) | |
| 1736 | - | |
| 1737 | -/******/ }); | |
| 1738 | -/************************************************************************/ | |
| 1739 | -/******/ // The module cache | |
| 1740 | -/******/ var __webpack_module_cache__ = {}; | |
| 1741 | -/******/ | |
| 1742 | -/******/ // The require function | |
| 1743 | -/******/ function __webpack_require__(moduleId) { | |
| 1744 | -/******/ // Check if module is in cache | |
| 1745 | -/******/ var cachedModule = __webpack_module_cache__[moduleId]; | |
| 1746 | -/******/ if (cachedModule !== undefined) { | |
| 1747 | -/******/ return cachedModule.exports; | |
| 1748 | -/******/ } | |
| 1749 | -/******/ // Create a new module (and put it into the cache) | |
| 1750 | -/******/ var module = __webpack_module_cache__[moduleId] = { | |
| 1751 | -/******/ // no module.id needed | |
| 1752 | -/******/ // no module.loaded needed | |
| 1753 | -/******/ exports: {} | |
| 1754 | -/******/ }; | |
| 1755 | -/******/ | |
| 1756 | -/******/ // Execute the module function | |
| 1757 | -/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); | |
| 1758 | -/******/ | |
| 1759 | -/******/ // Return the exports of the module | |
| 1760 | -/******/ return module.exports; | |
| 1761 | -/******/ } | |
| 1762 | -/******/ | |
| 1763 | -/************************************************************************/ | |
| 1764 | -var __webpack_exports__ = {}; | |
| 1765 | -// This entry needs to be wrapped in an IIFE because it needs to be in strict mode. | |
| 1766 | -(() => { | |
| 1767 | -"use strict"; | |
| 1768 | -/*!******************************************************************!*\ | |
| 1769 | - !*** ../modules/kit-elements-defaults/assets/js/editor/index.js ***! | |
| 1770 | - \******************************************************************/ | |
| 1771 | - | |
| 1772 | - | |
| 1773 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1774 | -var _module = _interopRequireDefault(__webpack_require__(/*! ./module.js */ "../modules/kit-elements-defaults/assets/js/editor/module.js")); | |
| 1775 | -new _module.default(); | |
| 1776 | -})(); | |
| 1777 | - | |
| 1778 | -/******/ })() | |
| 1779 | -; | |
| 1348 | +//#endregion | |
| 1349 | +})(wp.i18n); | |
| 1780 | 1350 | //# sourceMappingURL=kit-elements-defaults-editor.js.map |