| @@ -1,4 +1,5 @@ | ||
| 1 | +/*! elementor - v3.7.5 - 14-09-2022 */ | |
| 1 | 2 | /******/ (() => { // webpackBootstrap |
| 2 | 3 | /******/ var __webpack_modules__ = ({ |
| 3 | 4 | |
| 4 | 5 | /***/ "../assets/dev/js/editor/container/container.js": |
| @@ -11,26 +12,42 @@ | ||
| 11 | 12 | /* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; |
| 12 | 13 | |
| 13 | 14 | |
| 14 | 15 | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 16 | + | |
| 15 | 17 | Object.defineProperty(exports, "__esModule", ({ |
| 16 | 18 | value: true |
| 17 | 19 | })); |
| 18 | 20 | exports["default"] = void 0; |
| 19 | -var _readOnlyError2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/readOnlyError */ "../node_modules/@babel/runtime/helpers/readOnlyError.js")); | |
| 21 | + | |
| 20 | 22 | var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js")); |
| 23 | + | |
| 21 | 24 | var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js")); |
| 25 | + | |
| 22 | 26 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 27 | + | |
| 23 | 28 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 29 | + | |
| 30 | +var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js")); | |
| 31 | + | |
| 32 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 33 | + | |
| 24 | 34 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 35 | + | |
| 25 | 36 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 26 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 37 | + | |
| 27 | 38 | var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 39 | + | |
| 28 | 40 | var _argsObject = _interopRequireDefault(__webpack_require__(/*! ../../modules/imports/args-object */ "../assets/dev/js/modules/imports/args-object.js")); |
| 41 | + | |
| 29 | 42 | var _panel = _interopRequireDefault(__webpack_require__(/*! ./panel */ "../assets/dev/js/editor/container/panel.js")); |
| 43 | + | |
| 30 | 44 | var _childrenArray = _interopRequireDefault(__webpack_require__(/*! ./model/children-array */ "../assets/dev/js/editor/container/model/children-array.js")); |
| 31 | -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)); } | |
| 32 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 45 | + | |
| 46 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 47 | + | |
| 48 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 49 | + | |
| 33 | 50 | /** |
| 34 | 51 | * @typedef {import('../../../../lib/backbone/backbone.marionette')} Backbone |
| 35 | 52 | * @typedef {import('../../../../lib/backbone/backbone.marionette')} Marionette |
| 36 | 53 | * @typedef {import('../elements/views/base')} BaseElementView |
| @@ -37,15 +54,118 @@ | ||
| 37 | 54 | * @typedef {import('../elements/views/section')} SectionView |
| 38 | 55 | * @typedef {import('../views/base-container')} BaseContainer |
| 39 | 56 | * @typedef {import('../elements/models/base-element-model')} BaseElementModel |
| 40 | 57 | */ |
| 58 | + | |
| 41 | 59 | /** |
| 42 | 60 | * TODO: ViewsOptions |
| 43 | 61 | * |
| 44 | 62 | * @typedef {(Marionette.View|Marionette.CompositeView|BaseElementView|SectionView|BaseContainer)} ViewsOptions |
| 45 | 63 | */ |
| 46 | -var Container = exports["default"] = /*#__PURE__*/function (_ArgsObject) { | |
| 64 | +var Container = /*#__PURE__*/function (_ArgsObject) { | |
| 65 | + (0, _inherits2.default)(Container, _ArgsObject); | |
| 66 | + | |
| 67 | + var _super = _createSuper(Container); | |
| 68 | + | |
| 69 | + // TODO: Swap those backwards compatibility is required. | |
| 70 | + | |
| 47 | 71 | /** |
| 72 | + * Container type. | |
| 73 | + * | |
| 74 | + * @type {string} | |
| 75 | + */ | |
| 76 | + | |
| 77 | + /** | |
| 78 | + * Container id. | |
| 79 | + * | |
| 80 | + * @type {string} | |
| 81 | + */ | |
| 82 | + | |
| 83 | + /** | |
| 84 | + * Document Object. | |
| 85 | + * | |
| 86 | + * @type {{}} | |
| 87 | + */ | |
| 88 | + | |
| 89 | + /** | |
| 90 | + * Container model. | |
| 91 | + * | |
| 92 | + * @type {(Backbone.Model|BaseElementModel)} | |
| 93 | + */ | |
| 94 | + | |
| 95 | + /** | |
| 96 | + * Container settings. | |
| 97 | + * | |
| 98 | + * @type {Backbone.Model} | |
| 99 | + */ | |
| 100 | + | |
| 101 | + /** | |
| 102 | + * Container view. | |
| 103 | + * | |
| 104 | + * @type {ViewsOptions} | |
| 105 | + */ | |
| 106 | + | |
| 107 | + /** | |
| 108 | + * Container parent. | |
| 109 | + * | |
| 110 | + * @type {Container} | |
| 111 | + */ | |
| 112 | + | |
| 113 | + /** | |
| 114 | + * Container children(s). | |
| 115 | + * | |
| 116 | + * @type {ChildrenArray} | |
| 117 | + */ | |
| 118 | + | |
| 119 | + /** | |
| 120 | + * Container dynamic. | |
| 121 | + * | |
| 122 | + * @type {Backbone.Model} | |
| 123 | + */ | |
| 124 | + | |
| 125 | + /** | |
| 126 | + * Container globals. | |
| 127 | + * | |
| 128 | + * @type {Backbone.Model} | |
| 129 | + */ | |
| 130 | + | |
| 131 | + /** | |
| 132 | + * Container label. | |
| 133 | + * | |
| 134 | + * @type {string} | |
| 135 | + */ | |
| 136 | + | |
| 137 | + /** | |
| 138 | + * Container controls. | |
| 139 | + * | |
| 140 | + * @type {{}} | |
| 141 | + */ | |
| 142 | + | |
| 143 | + /** | |
| 144 | + * Repeaters containers | |
| 145 | + * | |
| 146 | + * @type {{}} | |
| 147 | + */ | |
| 148 | + | |
| 149 | + /** | |
| 150 | + * Container renderer (The one who render). | |
| 151 | + * | |
| 152 | + * @type {Container} | |
| 153 | + */ | |
| 154 | + | |
| 155 | + /** | |
| 156 | + * Container panel. | |
| 157 | + * | |
| 158 | + * @type {Panel} | |
| 159 | + */ | |
| 160 | + | |
| 161 | + /** | |
| 162 | + * Controls placeholders. | |
| 163 | + * | |
| 164 | + * @type {{}} | |
| 165 | + */ | |
| 166 | + | |
| 167 | + /** | |
| 48 | 168 | * Function constructor(). |
| 49 | 169 | * |
| 50 | 170 | * Create container. |
| 51 | 171 | * |
| @@ -54,137 +174,64 @@ | ||
| 54 | 174 | * @throws {Error} |
| 55 | 175 | */ |
| 56 | 176 | function Container(args) { |
| 57 | 177 | var _this; |
| 178 | + | |
| 58 | 179 | (0, _classCallCheck2.default)(this, Container); |
| 59 | - _this = _callSuper(this, Container, [args]); | |
| 180 | + _this = _super.call(this, args); // Validate args. | |
| 60 | 181 | |
| 61 | - // Validate args. | |
| 62 | - /** | |
| 63 | - * Container type. | |
| 64 | - * | |
| 65 | - * @type {string} | |
| 66 | - */ | |
| 67 | - (0, _defineProperty2.default)(_this, "type", void 0); | |
| 68 | - /** | |
| 69 | - * Container id. | |
| 70 | - * | |
| 71 | - * @type {string} | |
| 72 | - */ | |
| 73 | - (0, _defineProperty2.default)(_this, "id", void 0); | |
| 74 | - /** | |
| 75 | - * Document Object. | |
| 76 | - * | |
| 77 | - * @type {{}} | |
| 78 | - */ | |
| 79 | - (0, _defineProperty2.default)(_this, "document", void 0); | |
| 80 | - /** | |
| 81 | - * Container model. | |
| 82 | - * | |
| 83 | - * @type {(Backbone.Model|BaseElementModel)} | |
| 84 | - */ | |
| 85 | - (0, _defineProperty2.default)(_this, "model", void 0); | |
| 86 | - /** | |
| 87 | - * Container settings. | |
| 88 | - * | |
| 89 | - * @type {Backbone.Model} | |
| 90 | - */ | |
| 91 | - (0, _defineProperty2.default)(_this, "settings", void 0); | |
| 92 | - /** | |
| 93 | - * Container view. | |
| 94 | - * | |
| 95 | - * @type {ViewsOptions} | |
| 96 | - */ | |
| 97 | - (0, _defineProperty2.default)(_this, "view", void 0); | |
| 98 | - /** | |
| 99 | - * Container parent. | |
| 100 | - * | |
| 101 | - * @type {Container} | |
| 102 | - */ | |
| 103 | - (0, _defineProperty2.default)(_this, "parent", void 0); | |
| 104 | - /** | |
| 105 | - * Container children(s). | |
| 106 | - * | |
| 107 | - * @type {ChildrenArray} | |
| 108 | - */ | |
| 109 | - (0, _defineProperty2.default)(_this, "children", new _childrenArray.default()); | |
| 110 | - /** | |
| 111 | - * Container dynamic. | |
| 112 | - * | |
| 113 | - * @type {Backbone.Model} | |
| 114 | - */ | |
| 115 | - (0, _defineProperty2.default)(_this, "dynamic", void 0); | |
| 116 | - /** | |
| 117 | - * Container globals. | |
| 118 | - * | |
| 119 | - * @type {Backbone.Model} | |
| 120 | - */ | |
| 121 | - (0, _defineProperty2.default)(_this, "globals", void 0); | |
| 122 | - /** | |
| 123 | - * Container label. | |
| 124 | - * | |
| 125 | - * @type {string} | |
| 126 | - */ | |
| 127 | - (0, _defineProperty2.default)(_this, "label", void 0); | |
| 128 | - /** | |
| 129 | - * Container controls. | |
| 130 | - * | |
| 131 | - * @type {{}} | |
| 132 | - */ | |
| 133 | - (0, _defineProperty2.default)(_this, "controls", {}); | |
| 134 | - /** | |
| 135 | - * Repeaters containers | |
| 136 | - * | |
| 137 | - * @type {{}} | |
| 138 | - */ | |
| 139 | - (0, _defineProperty2.default)(_this, "repeaters", {}); | |
| 140 | - /** | |
| 141 | - * Container renderer (The one who render). | |
| 142 | - * | |
| 143 | - * @type {Container} | |
| 144 | - */ | |
| 145 | - (0, _defineProperty2.default)(_this, "renderer", void 0); | |
| 146 | - /** | |
| 147 | - * Container panel. | |
| 148 | - * | |
| 149 | - * @type {Panel} | |
| 150 | - */ | |
| 151 | - (0, _defineProperty2.default)(_this, "panel", void 0); | |
| 152 | - /** | |
| 153 | - * Controls placeholders. | |
| 154 | - * | |
| 155 | - * @type {{}} | |
| 156 | - */ | |
| 157 | - (0, _defineProperty2.default)(_this, "placeholders", {}); | |
| 182 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "type", void 0); | |
| 183 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "id", void 0); | |
| 184 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "document", void 0); | |
| 185 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "model", void 0); | |
| 186 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "settings", void 0); | |
| 187 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "view", void 0); | |
| 188 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "parent", void 0); | |
| 189 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "children", new _childrenArray.default()); | |
| 190 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "dynamic", void 0); | |
| 191 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "globals", void 0); | |
| 192 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "label", void 0); | |
| 193 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "controls", {}); | |
| 194 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "repeaters", {}); | |
| 195 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "renderer", void 0); | |
| 196 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "panel", void 0); | |
| 197 | + (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "placeholders", {}); | |
| 198 | + | |
| 158 | 199 | _this.validateArgs(args); |
| 159 | - args = Object.entries(args); | |
| 160 | 200 | |
| 161 | - // If empty. | |
| 201 | + args = Object.entries(args); // If empty. | |
| 202 | + | |
| 162 | 203 | if (0 === args.length) { |
| 163 | 204 | throw Error('Container cannot be empty.'); |
| 164 | - } | |
| 205 | + } // Set properties, if not defined - keep the defaults. | |
| 165 | 206 | |
| 166 | - // Set properties, if not defined - keep the defaults. | |
| 207 | + | |
| 167 | 208 | args.forEach(function (_ref) { |
| 168 | 209 | var _ref2 = (0, _slicedToArray2.default)(_ref, 2), |
| 169 | - key = _ref2[0], | |
| 170 | - value = _ref2[1]; | |
| 210 | + key = _ref2[0], | |
| 211 | + value = _ref2[1]; | |
| 212 | + | |
| 171 | 213 | _this[key] = 'undefined' === typeof value ? _this[key] : value; |
| 172 | 214 | }); |
| 215 | + | |
| 173 | 216 | if ('undefined' === typeof _this.renderer) { |
| 174 | - _this.renderer = _this; | |
| 217 | + _this.renderer = (0, _assertThisInitialized2.default)(_this); | |
| 175 | 218 | } |
| 219 | + | |
| 176 | 220 | if (!_this.document) { |
| 177 | 221 | _this.document = elementor.documents.getCurrent(); |
| 178 | 222 | } |
| 223 | + | |
| 179 | 224 | _this.dynamic = new Backbone.Model(_this.settings.get('__dynamic__')); |
| 180 | 225 | _this.globals = new Backbone.Model(_this.settings.get('__globals__')); |
| 181 | - _this.panel = new _panel.default(_this); | |
| 226 | + _this.panel = new _panel.default((0, _assertThisInitialized2.default)(_this)); | |
| 227 | + | |
| 182 | 228 | _this.initialize(); |
| 229 | + | |
| 183 | 230 | return _this; |
| 184 | 231 | } |
| 185 | - (0, _inherits2.default)(Container, _ArgsObject); | |
| 186 | - return (0, _createClass2.default)(Container, [{ | |
| 232 | + | |
| 233 | + (0, _createClass2.default)(Container, [{ | |
| 187 | 234 | key: "initialize", |
| 188 | 235 | value: function initialize() { |
| 189 | 236 | if (this.isViewElement()) { |
| 190 | 237 | this.addToParent(); |
| @@ -190,8 +237,9 @@ | ||
| 190 | 237 | this.addToParent(); |
| 191 | 238 | this.handleChildrenRecursive(); |
| 192 | 239 | this.view.on('destroy', this.removeFromParent.bind(this)); |
| 193 | 240 | } |
| 241 | + | |
| 194 | 242 | this.handleRepeaterChildren(); |
| 195 | 243 | } |
| 196 | 244 | }, { |
| 197 | 245 | key: "validateArgs", |
| @@ -198,16 +246,14 @@ | ||
| 198 | 246 | value: function validateArgs(args) { |
| 199 | 247 | this.requireArgumentType('type', 'string', args); |
| 200 | 248 | this.requireArgumentType('id', 'string', args); |
| 201 | 249 | this.requireArgumentInstance('settings', Backbone.Model, args); |
| 202 | - this.requireArgumentInstance('model', Backbone.Model, args); | |
| 250 | + this.requireArgumentInstance('model', Backbone.Model, args); // Require it, unless it's forced to be `false`. | |
| 203 | 251 | |
| 204 | - // Require it, unless it's forced to be `false`. | |
| 205 | 252 | if (false !== args.parent) { |
| 206 | 253 | this.requireArgumentInstance('parent', elementorModules.editor.Container, args); |
| 207 | 254 | } |
| 208 | 255 | } |
| 209 | - | |
| 210 | 256 | /** |
| 211 | 257 | * Function getGroupRelatedControls(). |
| 212 | 258 | * |
| 213 | 259 | * Example: |
| @@ -218,20 +264,24 @@ | ||
| 218 | 264 | * @param {{}} settings |
| 219 | 265 | * |
| 220 | 266 | * @return {{}} result |
| 221 | 267 | */ |
| 268 | + | |
| 222 | 269 | }, { |
| 223 | 270 | key: "getGroupRelatedControls", |
| 224 | 271 | value: function getGroupRelatedControls(settings) { |
| 225 | 272 | var _this2 = this; |
| 273 | + | |
| 226 | 274 | var result = {}; |
| 227 | 275 | Object.keys(settings).forEach(function (settingKey) { |
| 228 | 276 | Object.values(_this2.controls).forEach(function (control) { |
| 229 | 277 | var _this2$controls$setti; |
| 278 | + | |
| 230 | 279 | if (settingKey === control.name) { |
| 231 | 280 | result[control.name] = control; |
| 232 | 281 | } else if ((_this2$controls$setti = _this2.controls[settingKey]) !== null && _this2$controls$setti !== void 0 && _this2$controls$setti.groupPrefix) { |
| 233 | 282 | var groupPrefix = _this2.controls[settingKey].groupPrefix; |
| 283 | + | |
| 234 | 284 | if (control.name.toString().startsWith(groupPrefix)) { |
| 235 | 285 | result[control.name] = control; |
| 236 | 286 | } |
| 237 | 287 | } |
| @@ -238,27 +288,31 @@ | ||
| 238 | 288 | }); |
| 239 | 289 | }); |
| 240 | 290 | return result; |
| 241 | 291 | } |
| 242 | - | |
| 243 | 292 | /** |
| 244 | 293 | * Function getAffectingControls(). |
| 245 | 294 | * |
| 246 | 295 | * @return {{}} All controls that effecting the container. |
| 247 | 296 | */ |
| 297 | + | |
| 248 | 298 | }, { |
| 249 | 299 | key: "getAffectingControls", |
| 250 | 300 | value: function getAffectingControls() { |
| 251 | 301 | var _this3 = this; |
| 302 | + | |
| 252 | 303 | var result = {}, |
| 253 | - activeControls = this.settings.getActiveControls(); | |
| 304 | + activeControls = this.settings.getActiveControls(); | |
| 254 | 305 | Object.entries(activeControls).forEach(function (_ref3) { |
| 255 | 306 | var _ref4 = (0, _slicedToArray2.default)(_ref3, 2), |
| 256 | - controlName = _ref4[0], | |
| 257 | - control = _ref4[1]; | |
| 307 | + controlName = _ref4[0], | |
| 308 | + control = _ref4[1]; | |
| 309 | + | |
| 258 | 310 | var controlValue = _this3.settings.get(control.name); |
| 311 | + | |
| 259 | 312 | if (control.global && !(controlValue !== null && controlValue !== void 0 && controlValue.length)) { |
| 260 | 313 | var _this3$globals$get; |
| 314 | + | |
| 261 | 315 | if ((_this3$globals$get = _this3.globals.get(control.name)) !== null && _this3$globals$get !== void 0 && _this3$globals$get.length || _this3.getGlobalDefault(controlName).length) { |
| 262 | 316 | control.global.utilized = true; |
| 263 | 317 | result[controlName] = control; |
| 264 | 318 | return; |
| @@ -263,8 +317,9 @@ | ||
| 263 | 317 | result[controlName] = control; |
| 264 | 318 | return; |
| 265 | 319 | } |
| 266 | 320 | } |
| 321 | + | |
| 267 | 322 | if (control.dynamic) { |
| 268 | 323 | if (_this3.dynamic.get(controlName)) { |
| 269 | 324 | control.dynamic.utilized = true; |
| 270 | 325 | result[controlName] = control; |
| @@ -270,22 +325,25 @@ | ||
| 270 | 325 | result[controlName] = control; |
| 271 | 326 | return; |
| 272 | 327 | } |
| 273 | 328 | } |
| 329 | + | |
| 274 | 330 | if (controlValue === control.default) { |
| 275 | 331 | return; |
| 276 | 332 | } |
| 333 | + | |
| 277 | 334 | if (!controlValue) { |
| 278 | 335 | return; |
| 279 | 336 | } |
| 337 | + | |
| 280 | 338 | if ('object' === (0, _typeof2.default)(controlValue) && Object.values(controlValue).join() === Object.values(control.default).join()) { |
| 281 | 339 | return; |
| 282 | 340 | } |
| 341 | + | |
| 283 | 342 | result[controlName] = control; |
| 284 | 343 | }); |
| 285 | 344 | return result; |
| 286 | 345 | } |
| 287 | - | |
| 288 | 346 | /** |
| 289 | 347 | * Function getParentAncestry(). |
| 290 | 348 | * |
| 291 | 349 | * Recursively run over all parents from current container till the top |
| @@ -291,17 +349,20 @@ | ||
| 291 | 349 | * Recursively run over all parents from current container till the top |
| 292 | 350 | * |
| 293 | 351 | * @return {Array.<Container>} All parent as flat array. |
| 294 | 352 | */ |
| 353 | + | |
| 295 | 354 | }, { |
| 296 | 355 | key: "getParentAncestry", |
| 297 | 356 | value: function getParentAncestry() { |
| 298 | 357 | var result = []; |
| 299 | 358 | var parent = this; |
| 359 | + | |
| 300 | 360 | while (parent) { |
| 301 | 361 | result.push(parent); |
| 302 | 362 | parent = parent.parent; |
| 303 | 363 | } |
| 364 | + | |
| 304 | 365 | return result; |
| 305 | 366 | } |
| 306 | 367 | }, { |
| 307 | 368 | key: "handleChildrenRecursive", |
| @@ -306,19 +367,21 @@ | ||
| 306 | 367 | }, { |
| 307 | 368 | key: "handleChildrenRecursive", |
| 308 | 369 | value: function handleChildrenRecursive() { |
| 309 | 370 | var _this$view$children; |
| 371 | + | |
| 310 | 372 | if ((_this$view$children = this.view.children) !== null && _this$view$children !== void 0 && _this$view$children.length) { |
| 311 | 373 | Object.values(this.view.children._views).forEach(function (view) { |
| 312 | 374 | if (!view.container) { |
| 313 | 375 | return; |
| 314 | 376 | } |
| 315 | - var container = view.container; | |
| 316 | 377 | |
| 317 | - // Since the way 'global-widget' rendered, it does not have parent sometimes. | |
| 378 | + var container = view.container; // Since the way 'global-widget' rendered, it does not have parent sometimes. | |
| 379 | + | |
| 318 | 380 | if (container.parent.children) { |
| 319 | 381 | container.parent.children[view._index] = container; |
| 320 | 382 | } |
| 383 | + | |
| 321 | 384 | container.handleChildrenRecursive(); |
| 322 | 385 | }); |
| 323 | 386 | } else { |
| 324 | 387 | this.children.clear(); |
| @@ -328,11 +391,11 @@ | ||
| 328 | 391 | key: "addToParent", |
| 329 | 392 | value: function addToParent() { |
| 330 | 393 | if (!this.parent.children || this.isRepeaterItem()) { |
| 331 | 394 | return; |
| 332 | - } | |
| 395 | + } // On create container tell the parent where it was created. | |
| 333 | 396 | |
| 334 | - // On create container tell the parent where it was created. | |
| 397 | + | |
| 335 | 398 | this.parent.children.splice(this.view._index, 0, this); |
| 336 | 399 | } |
| 337 | 400 | }, { |
| 338 | 401 | key: "removeFromParent", |
| @@ -337,13 +400,14 @@ | ||
| 337 | 400 | }, { |
| 338 | 401 | key: "removeFromParent", |
| 339 | 402 | value: function removeFromParent() { |
| 340 | 403 | var _this4 = this; |
| 404 | + | |
| 341 | 405 | if (!this.parent.children || this.isRepeater()) { |
| 342 | 406 | return; |
| 343 | - } | |
| 407 | + } // When delete container its should notify its parent, that his children is dead. | |
| 344 | 408 | |
| 345 | - // When delete container its should notify its parent, that his children is dead. | |
| 409 | + | |
| 346 | 410 | this.parent.children = this.parent.children.filter(function (filtered) { |
| 347 | 411 | return filtered.id !== _this4.id; |
| 348 | 412 | }); |
| 349 | 413 | } |
| @@ -350,12 +414,14 @@ | ||
| 350 | 414 | }, { |
| 351 | 415 | key: "handleRepeaterChildren", |
| 352 | 416 | value: function handleRepeaterChildren() { |
| 353 | 417 | var _this5 = this; |
| 418 | + | |
| 354 | 419 | Object.values(this.controls).forEach(function (control) { |
| 355 | 420 | if (!control.is_repeater) { |
| 356 | 421 | return; |
| 357 | 422 | } |
| 423 | + | |
| 358 | 424 | var model = new Backbone.Model({ |
| 359 | 425 | name: control.name |
| 360 | 426 | }); |
| 361 | 427 | _this5.repeaters[control.name] = new elementorModules.editor.Container({ |
| @@ -368,20 +434,21 @@ | ||
| 368 | 434 | label: control.label || control.name, |
| 369 | 435 | controls: {}, |
| 370 | 436 | renderer: _this5.renderer |
| 371 | 437 | }); |
| 438 | + | |
| 372 | 439 | _this5.settings.get(control.name).forEach(function (rowModel, index) { |
| 373 | 440 | _this5.addRepeaterItem(control.name, rowModel, index); |
| 374 | 441 | }); |
| 375 | - }); | |
| 442 | + }); // Backwards Compatibility: if there is only one repeater (type=repeater), set it's children as current children. | |
| 443 | + // Since 3.0.0. | |
| 376 | 444 | |
| 377 | - // Backwards Compatibility: if there is only one repeater (type=repeater), set it's children as current children. | |
| 378 | - // Since 3.0.0. | |
| 379 | 445 | if (['widget', 'document'].includes(this.type)) { |
| 380 | 446 | var repeaters = Object.values(this.controls).filter(function (control) { |
| 381 | 447 | return 'repeater' === control.type; |
| 382 | 448 | }); |
| 383 | - if (!this.model.get('supportRepeaterChildren') && 1 === repeaters.length) { | |
| 449 | + | |
| 450 | + if (1 === repeaters.length) { | |
| 384 | 451 | Object.defineProperty(this, 'children', { |
| 385 | 452 | get: function get() { |
| 386 | 453 | elementorDevTools.deprecation.deprecated('children', '3.0.0', 'container.repeaters[ repeaterName ].children'); |
| 387 | 454 | return this.repeaters[repeaters[0].name].children; |
| @@ -389,9 +456,8 @@ | ||
| 389 | 456 | }); |
| 390 | 457 | } |
| 391 | 458 | } |
| 392 | 459 | } |
| 393 | - | |
| 394 | 460 | /** |
| 395 | 461 | * Function addRepeaterItem(). |
| 396 | 462 | * |
| 397 | 463 | * The method add repeater item, find the repeater control by it name, and create new container for the item. |
| @@ -401,18 +467,19 @@ | ||
| 401 | 467 | * @param {number} index |
| 402 | 468 | * |
| 403 | 469 | * @return {Container} container |
| 404 | 470 | */ |
| 471 | + | |
| 405 | 472 | }, { |
| 406 | 473 | key: "addRepeaterItem", |
| 407 | 474 | value: function addRepeaterItem(repeaterName, rowSettingsModel, index) { |
| 408 | - var rowId = rowSettingsModel.get('_id'); | |
| 475 | + var rowId = rowSettingsModel.get('_id'); // TODO: Temp backwards compatibility. since 2.8.0. | |
| 409 | 476 | |
| 410 | - // TODO: Temp backwards compatibility. since 2.8.0. | |
| 411 | 477 | if (!rowId) { |
| 412 | 478 | rowId = 'bc-' + elementorCommon.helpers.getUniqueId(); |
| 413 | 479 | rowSettingsModel.set('_id', rowId); |
| 414 | 480 | } |
| 481 | + | |
| 415 | 482 | this.repeaters[repeaterName].children.splice(index, 0, new elementorModules.editor.Container({ |
| 416 | 483 | type: Container.TYPE_REPEATER_ITEM, |
| 417 | 484 | id: rowSettingsModel.get('_id'), |
| 418 | 485 | model: new Backbone.Model({ |
| @@ -426,9 +493,8 @@ | ||
| 426 | 493 | renderer: this.renderer |
| 427 | 494 | })); |
| 428 | 495 | return this.repeaters[repeaterName]; |
| 429 | 496 | } |
| 430 | - | |
| 431 | 497 | /** |
| 432 | 498 | * Function lookup(). |
| 433 | 499 | * |
| 434 | 500 | * If the view were destroyed, try to find it again if it exists. |
| @@ -436,19 +502,24 @@ | ||
| 436 | 502 | * TODO: Refactor. |
| 437 | 503 | * |
| 438 | 504 | * @return {Container} container |
| 439 | 505 | */ |
| 506 | + | |
| 440 | 507 | }, { |
| 441 | 508 | key: "lookup", |
| 442 | 509 | value: function lookup() { |
| 443 | 510 | var _this$renderer$view; |
| 511 | + | |
| 444 | 512 | var result = this; |
| 513 | + | |
| 445 | 514 | if (!this.renderer) { |
| 446 | 515 | return this; |
| 447 | 516 | } |
| 517 | + | |
| 448 | 518 | if (this !== this.renderer && (_this$renderer$view = this.renderer.view) !== null && _this$renderer$view !== void 0 && _this$renderer$view.isDisconnected && this.renderer.view.isDisconnected()) { |
| 449 | 519 | this.renderer = this.renderer.lookup(); |
| 450 | 520 | } |
| 521 | + | |
| 451 | 522 | if (undefined === this.view || !this.view.lookup || !this.view.isDisconnected()) { |
| 452 | 523 | // Hack For repeater item the result is the parent container. |
| 453 | 524 | if (Container.TYPE_REPEATER_ITEM === this.type) { |
| 454 | 525 | this.settings = this.parent.parent.settings.get(this.model.get('name')).findWhere({ |
| @@ -454,34 +525,32 @@ | ||
| 454 | 525 | this.settings = this.parent.parent.settings.get(this.model.get('name')).findWhere({ |
| 455 | 526 | _id: this.id |
| 456 | 527 | }); |
| 457 | 528 | } |
| 529 | + | |
| 458 | 530 | return result; |
| 459 | 531 | } |
| 532 | + | |
| 460 | 533 | var lookup = this.view.lookup(); |
| 534 | + | |
| 461 | 535 | if (lookup) { |
| 462 | - result = lookup.getContainer(); | |
| 536 | + result = lookup.getContainer(); // Hack For repeater item the result is the parent container. | |
| 463 | 537 | |
| 464 | - // Hack For repeater item the result is the parent container. | |
| 465 | 538 | if (Container.REPEATER === this.type) { |
| 466 | 539 | this.settings = result.settings.get(this.model.get('name')).findWhere({ |
| 467 | 540 | _id: this.id |
| 468 | 541 | }); |
| 469 | 542 | return this; |
| 470 | - } | |
| 543 | + } // If lookup were done, new container were created and parent does not know about it. | |
| 471 | 544 | |
| 472 | - // If lookup were done, new container were created and parent does not know about it. | |
| 545 | + | |
| 473 | 546 | if (result.parent.children) { |
| 474 | 547 | result.parent.children[result.view._index] = result; |
| 475 | 548 | } |
| 476 | 549 | } |
| 550 | + | |
| 477 | 551 | return result; |
| 478 | 552 | } |
| 479 | - | |
| 480 | - /** | |
| 481 | - * @param {Function} callback - A callback function. | |
| 482 | - * @deprecated since 3.5.0, use `container.children.findRecursive( callback )` instead. | |
| 483 | - */ | |
| 484 | 553 | }, { |
| 485 | 554 | key: "findChildrenRecursive", |
| 486 | 555 | value: function findChildrenRecursive(callback) { |
| 487 | 556 | elementorDevTools.deprecation.deprecated('container.findChildrenRecursive( callback )', '3.5.0', 'container.children.findRecursive( callback )'); |
| @@ -486,13 +555,8 @@ | ||
| 486 | 555 | value: function findChildrenRecursive(callback) { |
| 487 | 556 | elementorDevTools.deprecation.deprecated('container.findChildrenRecursive( callback )', '3.5.0', 'container.children.findRecursive( callback )'); |
| 488 | 557 | return this.children.findRecursive(callback); |
| 489 | 558 | } |
| 490 | - | |
| 491 | - /** | |
| 492 | - * @param {Function} callback - A callback function. | |
| 493 | - * @deprecated since 3.5.0, use `container.children.forEachRecursive( callback )` instead. | |
| 494 | - */ | |
| 495 | 559 | }, { |
| 496 | 560 | key: "forEachChildrenRecursive", |
| 497 | 561 | value: function forEachChildrenRecursive(callback) { |
| 498 | 562 | elementorDevTools.deprecation.deprecated('container.forEachChildrenRecursive( callback )', '3.5.0', 'container.children.forEachRecursive( callback )'); |
| @@ -497,9 +561,8 @@ | ||
| 497 | 561 | value: function forEachChildrenRecursive(callback) { |
| 498 | 562 | elementorDevTools.deprecation.deprecated('container.forEachChildrenRecursive( callback )', '3.5.0', 'container.children.forEachRecursive( callback )'); |
| 499 | 563 | return this.children.forEachRecursive(callback); |
| 500 | 564 | } |
| 501 | - | |
| 502 | 565 | /** |
| 503 | 566 | * Function render(). |
| 504 | 567 | * |
| 505 | 568 | * Call view render. |
| @@ -507,16 +570,17 @@ | ||
| 507 | 570 | * Run's `this.renderer.view.renderOnChange( this.settings ) `. |
| 508 | 571 | * When `this.renderer` exist. |
| 509 | 572 | * |
| 510 | 573 | */ |
| 574 | + | |
| 511 | 575 | }, { |
| 512 | 576 | key: "render", |
| 513 | 577 | value: function render() { |
| 514 | - var _this$view; | |
| 515 | 578 | if (!this.renderer) { |
| 516 | 579 | return; |
| 517 | 580 | } |
| 518 | - this.renderer.view.renderOnChange(this.settings, (_this$view = this.view) === null || _this$view === void 0 ? void 0 : _this$view.$el); | |
| 581 | + | |
| 582 | + this.renderer.view.renderOnChange(this.settings); | |
| 519 | 583 | } |
| 520 | 584 | }, { |
| 521 | 585 | key: "renderUI", |
| 522 | 586 | value: function renderUI() { |
| @@ -522,15 +586,15 @@ | ||
| 522 | 586 | value: function renderUI() { |
| 523 | 587 | if (!this.renderer) { |
| 524 | 588 | return; |
| 525 | 589 | } |
| 590 | + | |
| 526 | 591 | this.renderer.view.renderUI(); |
| 527 | 592 | } |
| 528 | 593 | }, { |
| 529 | 594 | key: "isEditable", |
| 530 | 595 | value: function isEditable() { |
| 531 | - var _this$model, _this$model$get, _this$model$get$get; | |
| 532 | - return 'edit' === elementor.channels.dataEditMode.request('activeMode') && 'open' === this.document.editor.status && !((_this$model = this.model) !== null && _this$model !== void 0 && (_this$model$get = _this$model.get) !== null && _this$model$get !== void 0 && (_this$model$get = _this$model$get.call(_this$model, 'editSettings')) !== null && _this$model$get !== void 0 && (_this$model$get$get = _this$model$get.get) !== null && _this$model$get$get !== void 0 && _this$model$get$get.call(_this$model$get, 'inactive')); | |
| 596 | + return 'edit' === elementor.channels.dataEditMode.request('activeMode') && 'open' === this.document.editor.status; | |
| 533 | 597 | } |
| 534 | 598 | }, { |
| 535 | 599 | key: "isDesignable", |
| 536 | 600 | value: function isDesignable() { |
| @@ -536,22 +600,8 @@ | ||
| 536 | 600 | value: function isDesignable() { |
| 537 | 601 | return elementor.userCan('design') && this.isEditable(); |
| 538 | 602 | } |
| 539 | 603 | }, { |
| 540 | - key: "isGridContainer", | |
| 541 | - value: function isGridContainer() { | |
| 542 | - return 'grid' === this.parent.settings.get('container_type'); | |
| 543 | - } | |
| 544 | - | |
| 545 | - /** | |
| 546 | - * @return {boolean} | |
| 547 | - */ | |
| 548 | - }, { | |
| 549 | - key: "isLocked", | |
| 550 | - value: function isLocked() { | |
| 551 | - return this.model.get('isLocked'); | |
| 552 | - } | |
| 553 | - }, { | |
| 554 | 604 | key: "isRepeater", |
| 555 | 605 | value: function isRepeater() { |
| 556 | 606 | return Container.TYPE_REPEATER === this.type; |
| 557 | 607 | } |
| @@ -569,17 +619,20 @@ | ||
| 569 | 619 | key: "getSetting", |
| 570 | 620 | value: function getSetting(name) { |
| 571 | 621 | var localOnly = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; |
| 572 | 622 | var localValue = this.settings.get(name); |
| 623 | + | |
| 573 | 624 | if (localOnly) { |
| 574 | 625 | return localValue; |
| 575 | - } | |
| 626 | + } // Try to get the value in the order: Global, Local, Global default. | |
| 576 | 627 | |
| 577 | - // Try to get the value in the order: Global, Local, Global default. | |
| 628 | + | |
| 578 | 629 | var globalValue; |
| 630 | + | |
| 579 | 631 | if (this.getGlobalKey(name)) { |
| 580 | 632 | globalValue = this.getGlobalValue(name); |
| 581 | 633 | } |
| 634 | + | |
| 582 | 635 | return globalValue || localValue || this.getGlobalDefault(name); |
| 583 | 636 | } |
| 584 | 637 | }, { |
| 585 | 638 | key: "getGlobalKey", |
| @@ -589,27 +642,31 @@ | ||
| 589 | 642 | }, { |
| 590 | 643 | key: "getGlobalValue", |
| 591 | 644 | value: function getGlobalValue(name) { |
| 592 | 645 | var control = this.controls[name], |
| 593 | - globalKey = this.getGlobalKey(name), | |
| 594 | - globalArgs = $e.data.commandExtractArgs(globalKey), | |
| 595 | - data = $e.data.getCache($e.components.get('globals'), globalArgs.command, globalArgs.args.query); | |
| 646 | + globalKey = this.getGlobalKey(name), | |
| 647 | + globalArgs = $e.data.commandExtractArgs(globalKey), | |
| 648 | + data = $e.data.getCache($e.components.get('globals'), globalArgs.command, globalArgs.args.query); | |
| 649 | + | |
| 596 | 650 | if (!(data !== null && data !== void 0 && data.value)) { |
| 597 | 651 | return; |
| 598 | 652 | } |
| 653 | + | |
| 599 | 654 | var id = data.id; |
| 600 | - var value; | |
| 655 | + var value; // It's a global settings with additional controls in group. | |
| 601 | 656 | |
| 602 | - // It's a global settings with additional controls in group. | |
| 603 | 657 | if (control.groupType) { |
| 604 | 658 | // A regex containing all of the active breakpoints' prefixes ('_mobile', '_tablet' etc.). |
| 605 | 659 | var responsivePrefixRegex = elementor.breakpoints.getActiveMatchRegex(); |
| 606 | 660 | var propertyName = control.name.replace(control.groupPrefix, '').replace(responsivePrefixRegex, ''); |
| 661 | + | |
| 607 | 662 | if (!data.value[elementor.config.kit_config.typography_prefix + propertyName]) { |
| 608 | 663 | return; |
| 609 | 664 | } |
| 665 | + | |
| 610 | 666 | propertyName = propertyName.replace('_', '-'); |
| 611 | 667 | value = "var( --e-global-".concat(control.groupType, "-").concat(id, "-").concat(propertyName, " )"); |
| 668 | + | |
| 612 | 669 | if (elementor.config.ui.defaultGenericFonts && control.groupPrefix + 'font_family' === control.name) { |
| 613 | 670 | value += ", ".concat(elementor.config.ui.defaultGenericFonts); |
| 614 | 671 | } |
| 615 | 672 | } else { |
| @@ -614,11 +671,11 @@ | ||
| 614 | 671 | } |
| 615 | 672 | } else { |
| 616 | 673 | value = "var( --e-global-".concat(control.type, "-").concat(id, " )"); |
| 617 | 674 | } |
| 675 | + | |
| 618 | 676 | return value; |
| 619 | 677 | } |
| 620 | - | |
| 621 | 678 | /** |
| 622 | 679 | * Determine if a control's global value is applied. |
| 623 | 680 | * It actually checks if the local value is different than the global value. |
| 624 | 681 | * |
| @@ -624,8 +681,9 @@ | ||
| 624 | 681 | * |
| 625 | 682 | * @param {string} controlName - Control name |
| 626 | 683 | * @return {boolean} true if a control's global value is applied |
| 627 | 684 | */ |
| 685 | + | |
| 628 | 686 | }, { |
| 629 | 687 | key: "isGlobalApplied", |
| 630 | 688 | value: function isGlobalApplied(controlName) { |
| 631 | 689 | return this.getSetting(controlName) !== this.settings.get(controlName); |
| @@ -633,34 +691,41 @@ | ||
| 633 | 691 | }, { |
| 634 | 692 | key: "getGlobalDefault", |
| 635 | 693 | value: function getGlobalDefault(controlName) { |
| 636 | 694 | var _this$controls$contro; |
| 695 | + | |
| 637 | 696 | var controlGlobalArgs = (_this$controls$contro = this.controls[controlName]) === null || _this$controls$contro === void 0 ? void 0 : _this$controls$contro.global; |
| 697 | + | |
| 638 | 698 | if (controlGlobalArgs !== null && controlGlobalArgs !== void 0 && controlGlobalArgs.default) { |
| 639 | 699 | // Temp fix. |
| 640 | 700 | var controlType = this.controls[controlName].type; |
| 701 | + | |
| 641 | 702 | if ('color' === controlType) { |
| 642 | 703 | controlType = 'colors'; |
| 643 | - } | |
| 644 | - // End temp fix | |
| 704 | + } // End temp fix | |
| 705 | + // If the control is a color/typography control and default colors/typography are disabled, don't return the global value. | |
| 645 | 706 | |
| 646 | - // If the control is a color/typography control and default colors/typography are disabled, don't return the global value. | |
| 707 | + | |
| 647 | 708 | if (!elementor.config.globals.defaults_enabled[controlType]) { |
| 648 | 709 | return ''; |
| 649 | 710 | } |
| 711 | + | |
| 650 | 712 | var _$e$data$commandExtra = $e.data.commandExtractArgs(controlGlobalArgs.default), |
| 651 | - command = _$e$data$commandExtra.command, | |
| 652 | - args = _$e$data$commandExtra.args, | |
| 653 | - result = $e.data.getCache($e.components.get('globals'), command, args.query); | |
| 713 | + command = _$e$data$commandExtra.command, | |
| 714 | + args = _$e$data$commandExtra.args, | |
| 715 | + result = $e.data.getCache($e.components.get('globals'), command, args.query); | |
| 716 | + | |
| 654 | 717 | return result === null || result === void 0 ? void 0 : result.value; |
| 655 | - } | |
| 718 | + } // No global default. | |
| 656 | 719 | |
| 657 | - // No global default. | |
| 720 | + | |
| 658 | 721 | return ''; |
| 659 | 722 | } |
| 660 | 723 | }]); |
| 724 | + return Container; | |
| 661 | 725 | }(_argsObject.default); |
| 662 | -// TODO: Swap those backwards compatibility is required. | |
| 726 | + | |
| 727 | +exports["default"] = Container; | |
| 663 | 728 | (0, _defineProperty2.default)(Container, "TYPE_REPEATER", 'repeater-control'); |
| 664 | 729 | (0, _defineProperty2.default)(Container, "TYPE_REPEATER_ITEM", 'repeater'); |
| 665 | 730 | |
| 666 | 731 | /***/ }), |
| @@ -674,38 +739,54 @@ | ||
| 674 | 739 | "use strict"; |
| 675 | 740 | |
| 676 | 741 | |
| 677 | 742 | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 743 | + | |
| 678 | 744 | Object.defineProperty(exports, "__esModule", ({ |
| 679 | 745 | value: true |
| 680 | 746 | })); |
| 681 | 747 | exports["default"] = void 0; |
| 748 | + | |
| 682 | 749 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 750 | + | |
| 683 | 751 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 752 | + | |
| 753 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 754 | + | |
| 684 | 755 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 756 | + | |
| 685 | 757 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 686 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 758 | + | |
| 687 | 759 | var _wrapNativeSuper2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/wrapNativeSuper */ "../node_modules/@babel/runtime/helpers/wrapNativeSuper.js")); |
| 688 | -function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; } | |
| 689 | -function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); 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; } } | |
| 690 | -function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } | |
| 691 | -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)); } | |
| 692 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 760 | + | |
| 761 | +function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } | |
| 762 | + | |
| 763 | +function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } | |
| 764 | + | |
| 765 | +function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } | |
| 766 | + | |
| 767 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 768 | + | |
| 769 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 770 | + | |
| 693 | 771 | /** |
| 694 | 772 | * @typedef {import('../container')} Container |
| 695 | 773 | */ |
| 696 | -var ChildrenArray = exports["default"] = /*#__PURE__*/function (_Array) { | |
| 774 | +var ChildrenArray = /*#__PURE__*/function (_Array) { | |
| 775 | + (0, _inherits2.default)(ChildrenArray, _Array); | |
| 776 | + | |
| 777 | + var _super = _createSuper(ChildrenArray); | |
| 778 | + | |
| 697 | 779 | function ChildrenArray() { |
| 698 | 780 | (0, _classCallCheck2.default)(this, ChildrenArray); |
| 699 | - return _callSuper(this, ChildrenArray, arguments); | |
| 781 | + return _super.apply(this, arguments); | |
| 700 | 782 | } |
| 701 | - (0, _inherits2.default)(ChildrenArray, _Array); | |
| 702 | - return (0, _createClass2.default)(ChildrenArray, [{ | |
| 783 | + | |
| 784 | + (0, _createClass2.default)(ChildrenArray, [{ | |
| 703 | 785 | key: "clear", |
| 704 | 786 | value: function clear() { |
| 705 | 787 | this.length = 0; |
| 706 | 788 | } |
| 707 | - | |
| 708 | 789 | /** |
| 709 | 790 | * Function findRecursive(). |
| 710 | 791 | * |
| 711 | 792 | * Will run over children recursively and pass the children to the callback till the callback returns positive value. |
| @@ -713,21 +794,26 @@ | ||
| 713 | 794 | * @param {function(Container) : *} callback |
| 714 | 795 | * |
| 715 | 796 | * @return {Container|false} child |
| 716 | 797 | */ |
| 798 | + | |
| 717 | 799 | }, { |
| 718 | 800 | key: "findRecursive", |
| 719 | 801 | value: function findRecursive(callback) { |
| 720 | 802 | var _iterator = _createForOfIteratorHelper(this), |
| 721 | - _step; | |
| 803 | + _step; | |
| 804 | + | |
| 722 | 805 | try { |
| 723 | 806 | for (_iterator.s(); !(_step = _iterator.n()).done;) { |
| 724 | 807 | var container = _step.value; |
| 808 | + | |
| 725 | 809 | if (callback(container)) { |
| 726 | 810 | return container; |
| 727 | 811 | } |
| 812 | + | |
| 728 | 813 | if (container.children.length) { |
| 729 | 814 | var foundChildren = container.children.findRecursive(callback); |
| 815 | + | |
| 730 | 816 | if (foundChildren) { |
| 731 | 817 | return foundChildren; |
| 732 | 818 | } |
| 733 | 819 | } |
| @@ -736,11 +822,11 @@ | ||
| 736 | 822 | _iterator.e(err); |
| 737 | 823 | } finally { |
| 738 | 824 | _iterator.f(); |
| 739 | 825 | } |
| 826 | + | |
| 740 | 827 | return false; |
| 741 | 828 | } |
| 742 | - | |
| 743 | 829 | /** |
| 744 | 830 | * Function forEachRecursive(). |
| 745 | 831 | * |
| 746 | 832 | * Will run over children recursively. |
| @@ -748,17 +834,20 @@ | ||
| 748 | 834 | * @param {function(Container) : *} callback |
| 749 | 835 | * |
| 750 | 836 | * @return {void} |
| 751 | 837 | */ |
| 838 | + | |
| 752 | 839 | }, { |
| 753 | 840 | key: "forEachRecursive", |
| 754 | 841 | value: function forEachRecursive(callback) { |
| 755 | 842 | var _iterator2 = _createForOfIteratorHelper(this), |
| 756 | - _step2; | |
| 843 | + _step2; | |
| 844 | + | |
| 757 | 845 | try { |
| 758 | 846 | for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) { |
| 759 | 847 | var container = _step2.value; |
| 760 | 848 | callback(container); |
| 849 | + | |
| 761 | 850 | if (container.children.length) { |
| 762 | 851 | container.children.forEachRecursive(callback); |
| 763 | 852 | } |
| 764 | 853 | } |
| @@ -767,9 +856,8 @@ | ||
| 767 | 856 | } finally { |
| 768 | 857 | _iterator2.f(); |
| 769 | 858 | } |
| 770 | 859 | } |
| 771 | - | |
| 772 | 860 | /** |
| 773 | 861 | * Function someRecursive(). |
| 774 | 862 | * |
| 775 | 863 | * Will run over children recursively, breaks if the callback return true. |
| @@ -774,21 +862,27 @@ | ||
| 774 | 862 | * |
| 775 | 863 | * Will run over children recursively, breaks if the callback return true. |
| 776 | 864 | * |
| 777 | 865 | * @param {function(Container) : *} callback |
| 866 | + * | |
| 778 | 867 | */ |
| 868 | + | |
| 779 | 869 | }, { |
| 780 | 870 | key: "someRecursive", |
| 781 | 871 | value: function someRecursive(callback) { |
| 782 | 872 | var _iterator3 = _createForOfIteratorHelper(this), |
| 783 | - _step3; | |
| 873 | + _step3; | |
| 874 | + | |
| 784 | 875 | try { |
| 785 | 876 | for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) { |
| 786 | 877 | var _container$children; |
| 878 | + | |
| 787 | 879 | var container = _step3.value; |
| 880 | + | |
| 788 | 881 | if (callback(container)) { |
| 789 | 882 | return true; |
| 790 | 883 | } |
| 884 | + | |
| 791 | 885 | if ((_container$children = container.children) !== null && _container$children !== void 0 && _container$children.length) { |
| 792 | 886 | if (container.children.someRecursive(callback)) { |
| 793 | 887 | return true; |
| 794 | 888 | } |
| @@ -798,13 +892,17 @@ | ||
| 798 | 892 | _iterator3.e(err); |
| 799 | 893 | } finally { |
| 800 | 894 | _iterator3.f(); |
| 801 | 895 | } |
| 896 | + | |
| 802 | 897 | return false; |
| 803 | 898 | } |
| 804 | 899 | }]); |
| 805 | -}(/*#__PURE__*/(0, _wrapNativeSuper2.default)(Array)); | |
| 900 | + return ChildrenArray; | |
| 901 | +}( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Array)); | |
| 806 | 902 | |
| 903 | +exports["default"] = ChildrenArray; | |
| 904 | + | |
| 807 | 905 | /***/ }), |
| 808 | 906 | |
| 809 | 907 | /***/ "../assets/dev/js/editor/container/panel.js": |
| 810 | 908 | /*!**************************************************!*\ |
| @@ -815,18 +913,22 @@ | ||
| 815 | 913 | "use strict"; |
| 816 | 914 | |
| 817 | 915 | |
| 818 | 916 | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 917 | + | |
| 819 | 918 | Object.defineProperty(exports, "__esModule", ({ |
| 820 | 919 | value: true |
| 821 | 920 | })); |
| 822 | 921 | exports["default"] = void 0; |
| 922 | + | |
| 823 | 923 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 924 | + | |
| 824 | 925 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 926 | + | |
| 825 | 927 | /** |
| 826 | 928 | * @typedef {import('./container')} Container |
| 827 | 929 | */ |
| 828 | -var Panel = exports["default"] = /*#__PURE__*/function () { | |
| 930 | +var Panel = /*#__PURE__*/function () { | |
| 829 | 931 | /** |
| 830 | 932 | * Function constructor(). |
| 831 | 933 | * |
| 832 | 934 | * Create constructor panel. |
| @@ -836,15 +938,16 @@ | ||
| 836 | 938 | function Panel(container) { |
| 837 | 939 | (0, _classCallCheck2.default)(this, Panel); |
| 838 | 940 | this.container = container; |
| 839 | 941 | } |
| 840 | - | |
| 841 | 942 | /** |
| 842 | 943 | * Function refresh(). |
| 843 | 944 | * |
| 844 | 945 | * Refresh the panel. |
| 845 | 946 | */ |
| 846 | - return (0, _createClass2.default)(Panel, [{ | |
| 947 | + | |
| 948 | + | |
| 949 | + (0, _createClass2.default)(Panel, [{ | |
| 847 | 950 | key: "refresh", |
| 848 | 951 | value: function refresh() { |
| 849 | 952 | if ($e.routes.isPartOf('panel/editor')) { |
| 850 | 953 | $e.routes.refreshContainer('panel'); |
| @@ -849,14 +952,14 @@ | ||
| 849 | 952 | if ($e.routes.isPartOf('panel/editor')) { |
| 850 | 953 | $e.routes.refreshContainer('panel'); |
| 851 | 954 | } |
| 852 | 955 | } |
| 853 | - | |
| 854 | 956 | /** |
| 855 | 957 | * Function closeEditor(). |
| 856 | 958 | * |
| 857 | 959 | * Route to `panel/elements/categories` |
| 858 | 960 | */ |
| 961 | + | |
| 859 | 962 | }, { |
| 860 | 963 | key: "closeEditor", |
| 861 | 964 | value: function closeEditor() { |
| 862 | 965 | $e.route('panel/elements/categories'); |
| @@ -875,10 +978,13 @@ | ||
| 875 | 978 | name: name |
| 876 | 979 | }); |
| 877 | 980 | } |
| 878 | 981 | }]); |
| 982 | + return Panel; | |
| 879 | 983 | }(); |
| 880 | 984 | |
| 985 | +exports["default"] = Panel; | |
| 986 | + | |
| 881 | 987 | /***/ }), |
| 882 | 988 | |
| 883 | 989 | /***/ "../assets/dev/js/editor/elements/models/base-settings.js": |
| 884 | 990 | /*!****************************************************************!*\ |
| @@ -889,88 +995,97 @@ | ||
| 889 | 995 | "use strict"; |
| 890 | 996 | |
| 891 | 997 | |
| 892 | 998 | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 999 | + | |
| 893 | 1000 | var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js")); |
| 1001 | + | |
| 894 | 1002 | var BaseSettingsModel; |
| 895 | - | |
| 896 | 1003 | /** |
| 897 | 1004 | * @name BaseSettingsModel |
| 898 | 1005 | */ |
| 1006 | + | |
| 899 | 1007 | BaseSettingsModel = Backbone.Model.extend({ |
| 900 | 1008 | options: {}, |
| 901 | 1009 | initialize: function initialize(data, options) { |
| 902 | - var self = this; | |
| 1010 | + var self = this; // Keep the options for cloning | |
| 903 | 1011 | |
| 904 | - // Keep the options for cloning | |
| 905 | 1012 | self.options = options; |
| 906 | 1013 | self.controls = elementor.mergeControlsSettings(options.controls); |
| 907 | 1014 | self.validators = {}; |
| 1015 | + | |
| 908 | 1016 | if (!self.controls) { |
| 909 | 1017 | return; |
| 910 | 1018 | } |
| 1019 | + | |
| 911 | 1020 | var attrs = data || {}, |
| 912 | - defaults = {}; | |
| 1021 | + defaults = {}; | |
| 1022 | + | |
| 913 | 1023 | _.each(self.controls, function (control) { |
| 914 | 1024 | // Check features since they does not exist in tests. |
| 915 | 1025 | var isUIControl = control.features && -1 !== control.features.indexOf('ui'); |
| 1026 | + | |
| 916 | 1027 | if (isUIControl) { |
| 917 | 1028 | return; |
| 918 | 1029 | } |
| 1030 | + | |
| 919 | 1031 | var controlName = control.name; |
| 1032 | + | |
| 920 | 1033 | if ('object' === (0, _typeof2.default)(control.default)) { |
| 921 | - defaults[controlName] = structuredClone(control.default); | |
| 1034 | + defaults[controlName] = elementorCommon.helpers.cloneObject(control.default); | |
| 922 | 1035 | } else { |
| 923 | 1036 | defaults[controlName] = control.default; |
| 924 | 1037 | } |
| 1038 | + | |
| 925 | 1039 | var isDynamicControl = control.dynamic && control.dynamic.active, |
| 926 | - hasDynamicSettings = isDynamicControl && attrs.__dynamic__ && attrs.__dynamic__[controlName]; | |
| 1040 | + hasDynamicSettings = isDynamicControl && attrs.__dynamic__ && attrs.__dynamic__[controlName]; | |
| 1041 | + | |
| 927 | 1042 | if (isDynamicControl && !hasDynamicSettings && control.dynamic.default) { |
| 928 | 1043 | if (!attrs.__dynamic__) { |
| 929 | 1044 | attrs.__dynamic__ = {}; |
| 930 | 1045 | } |
| 1046 | + | |
| 931 | 1047 | attrs.__dynamic__[controlName] = control.dynamic.default; |
| 932 | 1048 | hasDynamicSettings = true; |
| 933 | - } | |
| 1049 | + } // Check if the value is a plain object ( and not an array ) | |
| 934 | 1050 | |
| 935 | - // Check if the value is a plain object ( and not an array ) | |
| 1051 | + | |
| 936 | 1052 | var isMultipleControl = jQuery.isPlainObject(control.default); |
| 1053 | + | |
| 937 | 1054 | if (undefined !== attrs[controlName] && isMultipleControl && !_.isObject(attrs[controlName]) && !hasDynamicSettings) { |
| 938 | 1055 | elementorCommon.debug.addCustomError(new TypeError('An invalid argument supplied as multiple control value'), 'InvalidElementData', 'Element `' + (self.get('widgetType') || self.get('elType')) + '` got <' + attrs[controlName] + '> as `' + controlName + '` value. Expected array or object.'); |
| 939 | 1056 | delete attrs[controlName]; |
| 940 | 1057 | } |
| 1058 | + | |
| 941 | 1059 | if (undefined === attrs[controlName]) { |
| 942 | 1060 | attrs[controlName] = defaults[controlName]; |
| 943 | 1061 | } |
| 944 | 1062 | }); |
| 1063 | + | |
| 945 | 1064 | self.defaults = defaults; |
| 946 | 1065 | self.handleRepeaterData(attrs); |
| 947 | 1066 | self.set(attrs); |
| 948 | 1067 | }, |
| 949 | - convertRepeaterValueToCollection: function convertRepeaterValueToCollection(attrs, repeaterControl) { | |
| 950 | - return new Backbone.Collection(attrs[repeaterControl.name], { | |
| 951 | - model: function model(attributes, options) { | |
| 952 | - options = options || {}; | |
| 953 | - options.controls = {}; | |
| 954 | - Object.values(repeaterControl.fields).forEach(function (item) { | |
| 955 | - options.controls[item.name] = item; | |
| 956 | - }); | |
| 957 | - | |
| 958 | - // TODO: Cannot be deleted, since it handle repeater items after repeater widget creation. | |
| 959 | - if (!attributes._id) { | |
| 960 | - attributes._id = elementorCommon.helpers.getUniqueId(); | |
| 961 | - } | |
| 962 | - return new BaseSettingsModel(attributes, options); | |
| 963 | - } | |
| 964 | - }); | |
| 965 | - }, | |
| 966 | 1068 | handleRepeaterData: function handleRepeaterData(attrs) { |
| 967 | - var self = this; | |
| 968 | 1069 | _.each(this.controls, function (field) { |
| 969 | 1070 | if (field.is_repeater) { |
| 970 | 1071 | // TODO: Apply defaults on each field in repeater fields |
| 971 | 1072 | if (!(attrs[field.name] instanceof Backbone.Collection)) { |
| 972 | - attrs[field.name] = self.convertRepeaterValueToCollection(attrs, field); | |
| 1073 | + attrs[field.name] = new Backbone.Collection(attrs[field.name], { | |
| 1074 | + model: function model(attributes, options) { | |
| 1075 | + options = options || {}; | |
| 1076 | + options.controls = {}; | |
| 1077 | + Object.values(field.fields).forEach(function (item) { | |
| 1078 | + options.controls[item.name] = item; | |
| 1079 | + }); // TODO: Cannot be deleted, since it handle repeater items after repeater widget creation. | |
| 1080 | + | |
| 1081 | + if (!attributes._id) { | |
| 1082 | + attributes._id = elementorCommon.helpers.getUniqueId(); | |
| 1083 | + } | |
| 1084 | + | |
| 1085 | + return new BaseSettingsModel(attributes, options); | |
| 1086 | + } | |
| 1087 | + }); | |
| 973 | 1088 | } |
| 974 | 1089 | } |
| 975 | 1090 | }); |
| 976 | 1091 | }, |
| @@ -986,25 +1101,25 @@ | ||
| 986 | 1101 | }); |
| 987 | 1102 | }, |
| 988 | 1103 | getStyleControls: function getStyleControls(controls, attributes) { |
| 989 | 1104 | var self = this; |
| 990 | - controls = structuredClone(self.getActiveControls(controls, attributes)); | |
| 1105 | + controls = elementorCommon.helpers.cloneObject(self.getActiveControls(controls, attributes)); | |
| 991 | 1106 | var styleControls = []; |
| 992 | 1107 | jQuery.each(controls, function () { |
| 993 | 1108 | var _control$dynamic; |
| 1109 | + | |
| 994 | 1110 | var control = this, |
| 995 | - controlDefaultSettings = elementor.config.controls[control.type]; | |
| 1111 | + controlDefaultSettings = elementor.config.controls[control.type]; | |
| 996 | 1112 | control = jQuery.extend({}, controlDefaultSettings, control); |
| 1113 | + | |
| 997 | 1114 | if (control.fields) { |
| 998 | 1115 | var styleFields = []; |
| 999 | - if (!(self.attributes[control.name] instanceof Backbone.Collection)) { | |
| 1000 | - self.attributes[control.name] = self.convertRepeaterValueToCollection(self.attributes, control); | |
| 1001 | - } | |
| 1002 | 1116 | self.attributes[control.name].each(function (item) { |
| 1003 | 1117 | styleFields.push(self.getStyleControls(control.fields, item.attributes)); |
| 1004 | 1118 | }); |
| 1005 | 1119 | control.styleFields = styleFields; |
| 1006 | 1120 | } |
| 1121 | + | |
| 1007 | 1122 | if (control.fields || (_control$dynamic = control.dynamic) !== null && _control$dynamic !== void 0 && _control$dynamic.active || self.isGlobalControl(control, controls) || self.isStyleControl(control.name, controls)) { |
| 1008 | 1123 | styleControls.push(control); |
| 1009 | 1124 | } |
| 1010 | 1125 | }); |
| @@ -1011,24 +1126,31 @@ | ||
| 1011 | 1126 | return styleControls; |
| 1012 | 1127 | }, |
| 1013 | 1128 | isGlobalControl: function isGlobalControl(control, controls) { |
| 1014 | 1129 | var _globalControl$global, _this$attributes$__gl; |
| 1130 | + | |
| 1015 | 1131 | var controlGlobalKey = control.name; |
| 1132 | + | |
| 1016 | 1133 | if (control.groupType) { |
| 1017 | 1134 | controlGlobalKey = control.groupPrefix + control.groupType; |
| 1018 | 1135 | } |
| 1136 | + | |
| 1019 | 1137 | var globalControl = controls[controlGlobalKey]; |
| 1020 | - if (!(globalControl !== null && globalControl !== void 0 && (_globalControl$global = globalControl.global) !== null && _globalControl$global !== void 0 && _globalControl$global.active)) { | |
| 1138 | + | |
| 1139 | + if (!((_globalControl$global = globalControl.global) !== null && _globalControl$global !== void 0 && _globalControl$global.active)) { | |
| 1021 | 1140 | return false; |
| 1022 | 1141 | } |
| 1142 | + | |
| 1023 | 1143 | var globalValue = (_this$attributes$__gl = this.attributes.__globals__) === null || _this$attributes$__gl === void 0 ? void 0 : _this$attributes$__gl[controlGlobalKey]; |
| 1024 | 1144 | return !!globalValue; |
| 1025 | 1145 | }, |
| 1026 | 1146 | isStyleControl: function isStyleControl(attribute, controls) { |
| 1027 | 1147 | controls = controls || this.controls; |
| 1148 | + | |
| 1028 | 1149 | var currentControl = _.find(controls, function (control) { |
| 1029 | 1150 | return attribute === control.name; |
| 1030 | 1151 | }); |
| 1152 | + | |
| 1031 | 1153 | return currentControl && !_.isEmpty(currentControl.selectors); |
| 1032 | 1154 | }, |
| 1033 | 1155 | getClassControls: function getClassControls(controls) { |
| 1034 | 1156 | controls = controls || this.controls; |
| @@ -1039,8 +1161,9 @@ | ||
| 1039 | 1161 | isClassControl: function isClassControl(attribute) { |
| 1040 | 1162 | var currentControl = _.find(this.controls, function (control) { |
| 1041 | 1163 | return attribute === control.name; |
| 1042 | 1164 | }); |
| 1165 | + | |
| 1043 | 1166 | return currentControl && !_.isUndefined(currentControl.prefix_class); |
| 1044 | 1167 | }, |
| 1045 | 1168 | getControl: function getControl(id) { |
| 1046 | 1169 | return _.find(this.controls, function (control) { |
| @@ -1048,14 +1171,17 @@ | ||
| 1048 | 1171 | }); |
| 1049 | 1172 | }, |
| 1050 | 1173 | getActiveControls: function getActiveControls(controls, attributes) { |
| 1051 | 1174 | var activeControls = {}; |
| 1175 | + | |
| 1052 | 1176 | if (!controls) { |
| 1053 | 1177 | controls = this.controls; |
| 1054 | 1178 | } |
| 1179 | + | |
| 1055 | 1180 | if (!attributes) { |
| 1056 | 1181 | attributes = this.attributes; |
| 1057 | 1182 | } |
| 1183 | + | |
| 1058 | 1184 | attributes = this.parseGlobalSettings(attributes, controls); |
| 1059 | 1185 | jQuery.each(controls, function (controlKey, control) { |
| 1060 | 1186 | if (elementor.helpers.isActiveControl(control, attributes, controls)) { |
| 1061 | 1187 | activeControls[controlKey] = control; |
| @@ -1067,9 +1193,10 @@ | ||
| 1067 | 1193 | return new BaseSettingsModel(elementorCommon.helpers.cloneObject(this.attributes), elementorCommon.helpers.cloneObject(this.options)); |
| 1068 | 1194 | }, |
| 1069 | 1195 | setExternalChange: function setExternalChange(key, value) { |
| 1070 | 1196 | var self = this, |
| 1071 | - settingsToChange; | |
| 1197 | + settingsToChange; | |
| 1198 | + | |
| 1072 | 1199 | if ('object' === (0, _typeof2.default)(key)) { |
| 1073 | 1200 | settingsToChange = key; |
| 1074 | 1201 | } else { |
| 1075 | 1202 | settingsToChange = {}; |
| @@ -1074,8 +1201,9 @@ | ||
| 1074 | 1201 | } else { |
| 1075 | 1202 | settingsToChange = {}; |
| 1076 | 1203 | settingsToChange[key] = value; |
| 1077 | 1204 | } |
| 1205 | + | |
| 1078 | 1206 | self.set(settingsToChange); |
| 1079 | 1207 | jQuery.each(settingsToChange, function (changedKey, changedValue) { |
| 1080 | 1208 | self.trigger('change:external:' + changedKey, changedValue); |
| 1081 | 1209 | }); |
| @@ -1086,9 +1214,10 @@ | ||
| 1086 | 1214 | options = options || {}; |
| 1087 | 1215 | controls = controls || this.controls; |
| 1088 | 1216 | jQuery.each(controls, function () { |
| 1089 | 1217 | var control = this, |
| 1090 | - valueToParse; | |
| 1218 | + valueToParse; | |
| 1219 | + | |
| 1091 | 1220 | if (control.is_repeater) { |
| 1092 | 1221 | valueToParse = settings[control.name]; |
| 1093 | 1222 | valueToParse.forEach(function (value, key) { |
| 1094 | 1223 | valueToParse[key] = self.parseDynamicSettings(value, options, control.fields); |
| @@ -1094,20 +1223,27 @@ | ||
| 1094 | 1223 | valueToParse[key] = self.parseDynamicSettings(value, options, control.fields); |
| 1095 | 1224 | }); |
| 1096 | 1225 | return; |
| 1097 | 1226 | } |
| 1227 | + | |
| 1098 | 1228 | valueToParse = settings.__dynamic__ && settings.__dynamic__[control.name]; |
| 1229 | + | |
| 1099 | 1230 | if (!valueToParse) { |
| 1100 | 1231 | return; |
| 1101 | 1232 | } |
| 1233 | + | |
| 1102 | 1234 | var dynamicSettings = control.dynamic; |
| 1235 | + | |
| 1103 | 1236 | if (undefined === dynamicSettings) { |
| 1104 | 1237 | dynamicSettings = elementor.config.controls[control.type].dynamic; |
| 1105 | 1238 | } |
| 1239 | + | |
| 1106 | 1240 | if (!dynamicSettings || !dynamicSettings.active) { |
| 1107 | 1241 | return; |
| 1108 | 1242 | } |
| 1243 | + | |
| 1109 | 1244 | var dynamicValue; |
| 1245 | + | |
| 1110 | 1246 | try { |
| 1111 | 1247 | dynamicValue = elementor.dynamicTags.parseTagsText(valueToParse, dynamicSettings, elementor.dynamicTags.getTagDataContent); |
| 1112 | 1248 | } catch (error) { |
| 1113 | 1249 | if (elementor.dynamicTags.CACHE_KEY_NOT_FOUND_ERROR !== error.message) { |
| @@ -1112,12 +1248,15 @@ | ||
| 1112 | 1248 | } catch (error) { |
| 1113 | 1249 | if (elementor.dynamicTags.CACHE_KEY_NOT_FOUND_ERROR !== error.message) { |
| 1114 | 1250 | throw error; |
| 1115 | 1251 | } |
| 1252 | + | |
| 1116 | 1253 | dynamicValue = ''; |
| 1254 | + | |
| 1117 | 1255 | if (options.onServerRequestStart) { |
| 1118 | 1256 | options.onServerRequestStart(); |
| 1119 | 1257 | } |
| 1258 | + | |
| 1120 | 1259 | elementor.dynamicTags.refreshCacheFromServer(function () { |
| 1121 | 1260 | if (options.onServerRequestEnd) { |
| 1122 | 1261 | options.onServerRequestEnd(); |
| 1123 | 1262 | } |
| @@ -1122,8 +1261,9 @@ | ||
| 1122 | 1261 | options.onServerRequestEnd(); |
| 1123 | 1262 | } |
| 1124 | 1263 | }); |
| 1125 | 1264 | } |
| 1265 | + | |
| 1126 | 1266 | if (dynamicSettings.property) { |
| 1127 | 1267 | settings[control.name][dynamicSettings.property] = dynamicValue; |
| 1128 | 1268 | } else { |
| 1129 | 1269 | settings[control.name] = dynamicValue; |
| @@ -1132,13 +1272,16 @@ | ||
| 1132 | 1272 | return settings; |
| 1133 | 1273 | }, |
| 1134 | 1274 | parseGlobalSettings: function parseGlobalSettings(settings, controls) { |
| 1135 | 1275 | var _this = this; |
| 1276 | + | |
| 1136 | 1277 | settings = elementorCommon.helpers.cloneObject(settings); |
| 1137 | 1278 | controls = controls || this.controls; |
| 1138 | 1279 | jQuery.each(controls, function (index, control) { |
| 1139 | 1280 | var _settings$__globals__, _globalSettings; |
| 1281 | + | |
| 1140 | 1282 | var valueToParse; |
| 1283 | + | |
| 1141 | 1284 | if (control.is_repeater) { |
| 1142 | 1285 | valueToParse = settings[control.name]; |
| 1143 | 1286 | valueToParse.forEach(function (value, key) { |
| 1144 | 1287 | valueToParse[key] = _this.parseGlobalSettings(value, control.fields); |
| @@ -1144,23 +1287,30 @@ | ||
| 1144 | 1287 | valueToParse[key] = _this.parseGlobalSettings(value, control.fields); |
| 1145 | 1288 | }); |
| 1146 | 1289 | return; |
| 1147 | 1290 | } |
| 1291 | + | |
| 1148 | 1292 | valueToParse = (_settings$__globals__ = settings.__globals__) === null || _settings$__globals__ === void 0 ? void 0 : _settings$__globals__[control.name]; |
| 1293 | + | |
| 1149 | 1294 | if (!valueToParse) { |
| 1150 | 1295 | return; |
| 1151 | 1296 | } |
| 1297 | + | |
| 1152 | 1298 | var globalSettings = control.global; |
| 1299 | + | |
| 1153 | 1300 | if (undefined === globalSettings) { |
| 1154 | 1301 | globalSettings = elementor.config.controls[control.type].global; |
| 1155 | 1302 | } |
| 1303 | + | |
| 1156 | 1304 | if (!((_globalSettings = globalSettings) !== null && _globalSettings !== void 0 && _globalSettings.active)) { |
| 1157 | 1305 | return; |
| 1158 | 1306 | } |
| 1307 | + | |
| 1159 | 1308 | var _$e$data$commandExtra = $e.data.commandExtractArgs(valueToParse), |
| 1160 | - command = _$e$data$commandExtra.command, | |
| 1161 | - args = _$e$data$commandExtra.args, | |
| 1162 | - globalValue = $e.data.getCache($e.components.get('globals'), command, args.query); | |
| 1309 | + command = _$e$data$commandExtra.command, | |
| 1310 | + args = _$e$data$commandExtra.args, | |
| 1311 | + globalValue = $e.data.getCache($e.components.get('globals'), command, args.query); | |
| 1312 | + | |
| 1163 | 1313 | if (control.groupType) { |
| 1164 | 1314 | settings[control.name] = 'custom'; |
| 1165 | 1315 | } else { |
| 1166 | 1316 | settings[control.name] = globalValue; |
| @@ -1169,18 +1319,21 @@ | ||
| 1169 | 1319 | return settings; |
| 1170 | 1320 | }, |
| 1171 | 1321 | removeDataDefaults: function removeDataDefaults(data, controls) { |
| 1172 | 1322 | var _this2 = this; |
| 1323 | + | |
| 1173 | 1324 | jQuery.each(data, function (key) { |
| 1174 | 1325 | var control = controls[key]; |
| 1326 | + | |
| 1175 | 1327 | if (!control) { |
| 1176 | 1328 | return; |
| 1177 | - } | |
| 1329 | + } // TODO: use `save_default` in text|textarea controls. | |
| 1178 | 1330 | |
| 1179 | - // TODO: use `save_default` in text|textarea controls. | |
| 1331 | + | |
| 1180 | 1332 | if (control.save_default || ('text' === control.type || 'textarea' === control.type) && data[key]) { |
| 1181 | 1333 | return; |
| 1182 | 1334 | } |
| 1335 | + | |
| 1183 | 1336 | if (control.is_repeater) { |
| 1184 | 1337 | data[key].forEach(function (repeaterRow) { |
| 1185 | 1338 | _this2.removeDataDefaults(repeaterRow, control.fields); |
| 1186 | 1339 | }); |
| @@ -1185,8 +1338,9 @@ | ||
| 1185 | 1338 | _this2.removeDataDefaults(repeaterRow, control.fields); |
| 1186 | 1339 | }); |
| 1187 | 1340 | return; |
| 1188 | 1341 | } |
| 1342 | + | |
| 1189 | 1343 | if (_.isEqual(data[key], control.default)) { |
| 1190 | 1344 | delete data[key]; |
| 1191 | 1345 | } |
| 1192 | 1346 | }); |
| @@ -1196,23 +1350,26 @@ | ||
| 1196 | 1350 | options = options || {}; |
| 1197 | 1351 | delete data.widgetType; |
| 1198 | 1352 | delete data.elType; |
| 1199 | 1353 | delete data.isInner; |
| 1354 | + | |
| 1200 | 1355 | _.each(data, function (attribute, key) { |
| 1201 | 1356 | if (attribute && attribute.toJSON) { |
| 1202 | 1357 | data[key] = attribute.toJSON(); |
| 1203 | 1358 | } |
| 1204 | 1359 | }); |
| 1360 | + | |
| 1205 | 1361 | if (options.remove && -1 !== options.remove.indexOf('default')) { |
| 1206 | 1362 | this.removeDataDefaults(data, this.controls); |
| 1207 | 1363 | } |
| 1208 | - return structuredClone(data); | |
| 1364 | + | |
| 1365 | + return elementorCommon.helpers.cloneObject(data); | |
| 1209 | 1366 | } |
| 1210 | 1367 | }); |
| 1211 | - | |
| 1212 | 1368 | /** |
| 1213 | 1369 | * @name BaseSettingsModel |
| 1214 | 1370 | */ |
| 1371 | + | |
| 1215 | 1372 | module.exports = BaseSettingsModel; |
| 1216 | 1373 | |
| 1217 | 1374 | /***/ }), |
| 1218 | 1375 | |
| @@ -1230,25 +1387,29 @@ | ||
| 1230 | 1387 | onRenderCollection: function onRenderCollection() { |
| 1231 | 1388 | this.handleInnerTabs(this.view); |
| 1232 | 1389 | }, |
| 1233 | 1390 | handleInnerTabs: function handleInnerTabs(parent) { |
| 1234 | - var closedClass = 'e-tab-close', | |
| 1235 | - activeClass = 'e-tab-active', | |
| 1236 | - tabsWrappers = parent.children.filter(function (view) { | |
| 1237 | - return 'tabs' === view.model.get('type'); | |
| 1238 | - }); | |
| 1391 | + var closedClass = 'elementor-tab-close', | |
| 1392 | + activeClass = 'elementor-tab-active', | |
| 1393 | + tabsWrappers = parent.children.filter(function (view) { | |
| 1394 | + return 'tabs' === view.model.get('type'); | |
| 1395 | + }); | |
| 1396 | + | |
| 1239 | 1397 | _.each(tabsWrappers, function (view) { |
| 1240 | 1398 | view.$el.find('.elementor-control-content').remove(); |
| 1241 | 1399 | var tabsId = view.model.get('name'), |
| 1242 | - tabs = parent.children.filter(function (childView) { | |
| 1243 | - return 'tab' === childView.model.get('type') && childView.model.get('tabs_wrapper') === tabsId; | |
| 1244 | - }); | |
| 1400 | + tabs = parent.children.filter(function (childView) { | |
| 1401 | + return 'tab' === childView.model.get('type') && childView.model.get('tabs_wrapper') === tabsId; | |
| 1402 | + }); | |
| 1403 | + | |
| 1245 | 1404 | _.each(tabs, function (childView, index) { |
| 1246 | 1405 | view._addChildView(childView); |
| 1406 | + | |
| 1247 | 1407 | var tabId = childView.model.get('name'), |
| 1248 | - controlsUnderTab = parent.children.filter(function (controlView) { | |
| 1249 | - return tabId === controlView.model.get('inner_tab'); | |
| 1250 | - }); | |
| 1408 | + controlsUnderTab = parent.children.filter(function (controlView) { | |
| 1409 | + return tabId === controlView.model.get('inner_tab'); | |
| 1410 | + }); | |
| 1411 | + | |
| 1251 | 1412 | if (0 === index) { |
| 1252 | 1413 | childView.$el.addClass(activeClass); |
| 1253 | 1414 | } else { |
| 1254 | 1415 | _.each(controlsUnderTab, function (controlView) { |
| @@ -1258,21 +1419,24 @@ | ||
| 1258 | 1419 | }); |
| 1259 | 1420 | }); |
| 1260 | 1421 | }, |
| 1261 | 1422 | onChildviewControlTabClicked: function onChildviewControlTabClicked(childView) { |
| 1262 | - var closedClass = 'e-tab-close', | |
| 1263 | - activeClass = 'e-tab-active', | |
| 1264 | - tabClicked = childView.model.get('name'), | |
| 1265 | - childrenUnderTab = this.view.children.filter(function (view) { | |
| 1266 | - return 'tab' !== view.model.get('type') && childView.model.get('tabs_wrapper') === view.model.get('tabs_wrapper'); | |
| 1267 | - }), | |
| 1268 | - siblingTabs = this.view.children.filter(function (view) { | |
| 1269 | - return 'tab' === view.model.get('type') && childView.model.get('tabs_wrapper') === view.model.get('tabs_wrapper'); | |
| 1270 | - }); | |
| 1423 | + var closedClass = 'elementor-tab-close', | |
| 1424 | + activeClass = 'elementor-tab-active', | |
| 1425 | + tabClicked = childView.model.get('name'), | |
| 1426 | + childrenUnderTab = this.view.children.filter(function (view) { | |
| 1427 | + return 'tab' !== view.model.get('type') && childView.model.get('tabs_wrapper') === view.model.get('tabs_wrapper'); | |
| 1428 | + }), | |
| 1429 | + siblingTabs = this.view.children.filter(function (view) { | |
| 1430 | + return 'tab' === view.model.get('type') && childView.model.get('tabs_wrapper') === view.model.get('tabs_wrapper'); | |
| 1431 | + }); | |
| 1432 | + | |
| 1271 | 1433 | _.each(siblingTabs, function (view) { |
| 1272 | 1434 | view.$el.removeClass(activeClass); |
| 1273 | 1435 | }); |
| 1436 | + | |
| 1274 | 1437 | childView.$el.addClass(activeClass); |
| 1438 | + | |
| 1275 | 1439 | _.each(childrenUnderTab, function (view) { |
| 1276 | 1440 | if (view.model.get('inner_tab') === tabClicked) { |
| 1277 | 1441 | view.$el.removeClass(closedClass); |
| 1278 | 1442 | } else { |
| @@ -1278,8 +1442,9 @@ | ||
| 1278 | 1442 | } else { |
| 1279 | 1443 | view.$el.addClass(closedClass); |
| 1280 | 1444 | } |
| 1281 | 1445 | }); |
| 1446 | + | |
| 1282 | 1447 | elementor.getPanelView().updateScrollbar(); |
| 1283 | 1448 | } |
| 1284 | 1449 | }); |
| 1285 | 1450 | module.exports = InnerTabsBehavior; |
| @@ -1285,8 +1450,131 @@ | ||
| 1285 | 1450 | module.exports = InnerTabsBehavior; |
| 1286 | 1451 | |
| 1287 | 1452 | /***/ }), |
| 1288 | 1453 | |
| 1454 | +/***/ "../assets/dev/js/editor/utils/introduction.js": | |
| 1455 | +/*!*****************************************************!*\ | |
| 1456 | + !*** ../assets/dev/js/editor/utils/introduction.js ***! | |
| 1457 | + \*****************************************************/ | |
| 1458 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 1459 | + | |
| 1460 | +"use strict"; | |
| 1461 | + | |
| 1462 | + | |
| 1463 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1464 | + | |
| 1465 | +Object.defineProperty(exports, "__esModule", ({ | |
| 1466 | + value: true | |
| 1467 | +})); | |
| 1468 | +exports["default"] = void 0; | |
| 1469 | + | |
| 1470 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 1471 | + | |
| 1472 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 1473 | + | |
| 1474 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1475 | + | |
| 1476 | +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 1477 | + | |
| 1478 | +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 1479 | + | |
| 1480 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 1481 | + | |
| 1482 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 1483 | + | |
| 1484 | +var _default = /*#__PURE__*/function (_elementorModules$Mod) { | |
| 1485 | + (0, _inherits2.default)(_default, _elementorModules$Mod); | |
| 1486 | + | |
| 1487 | + var _super = _createSuper(_default); | |
| 1488 | + | |
| 1489 | + function _default() { | |
| 1490 | + var _this; | |
| 1491 | + | |
| 1492 | + (0, _classCallCheck2.default)(this, _default); | |
| 1493 | + | |
| 1494 | + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { | |
| 1495 | + args[_key] = arguments[_key]; | |
| 1496 | + } | |
| 1497 | + | |
| 1498 | + _this = _super.call.apply(_super, [this].concat(args)); | |
| 1499 | + | |
| 1500 | + _this.initDialog(); | |
| 1501 | + | |
| 1502 | + return _this; | |
| 1503 | + } | |
| 1504 | + | |
| 1505 | + (0, _createClass2.default)(_default, [{ | |
| 1506 | + key: "getDefaultSettings", | |
| 1507 | + value: function getDefaultSettings() { | |
| 1508 | + return { | |
| 1509 | + dialogType: 'buttons', | |
| 1510 | + dialogOptions: { | |
| 1511 | + effects: { | |
| 1512 | + hide: 'hide', | |
| 1513 | + show: 'show' | |
| 1514 | + }, | |
| 1515 | + hide: { | |
| 1516 | + onBackgroundClick: false | |
| 1517 | + } | |
| 1518 | + } | |
| 1519 | + }; | |
| 1520 | + } | |
| 1521 | + }, { | |
| 1522 | + key: "initDialog", | |
| 1523 | + value: function initDialog() { | |
| 1524 | + var _this2 = this; | |
| 1525 | + | |
| 1526 | + var dialog; | |
| 1527 | + | |
| 1528 | + this.getDialog = function () { | |
| 1529 | + if (!dialog) { | |
| 1530 | + var settings = _this2.getSettings(); | |
| 1531 | + | |
| 1532 | + dialog = elementorCommon.dialogsManager.createWidget(settings.dialogType, settings.dialogOptions); | |
| 1533 | + | |
| 1534 | + if (settings.onDialogInitCallback) { | |
| 1535 | + settings.onDialogInitCallback.call(_this2, dialog); | |
| 1536 | + } | |
| 1537 | + } | |
| 1538 | + | |
| 1539 | + return dialog; | |
| 1540 | + }; | |
| 1541 | + } | |
| 1542 | + }, { | |
| 1543 | + key: "show", | |
| 1544 | + value: function show(target) { | |
| 1545 | + if (this.introductionViewed) { | |
| 1546 | + return; | |
| 1547 | + } | |
| 1548 | + | |
| 1549 | + var dialog = this.getDialog(); | |
| 1550 | + | |
| 1551 | + if (target) { | |
| 1552 | + dialog.setSettings('position', { | |
| 1553 | + of: target | |
| 1554 | + }); | |
| 1555 | + } | |
| 1556 | + | |
| 1557 | + dialog.show(); | |
| 1558 | + } | |
| 1559 | + }, { | |
| 1560 | + key: "setViewed", | |
| 1561 | + value: function setViewed() { | |
| 1562 | + this.introductionViewed = true; | |
| 1563 | + elementorCommon.ajax.addRequest('introduction_viewed', { | |
| 1564 | + data: { | |
| 1565 | + introductionKey: this.getSettings('introductionKey') | |
| 1566 | + } | |
| 1567 | + }); | |
| 1568 | + } | |
| 1569 | + }]); | |
| 1570 | + return _default; | |
| 1571 | +}(elementorModules.Module); | |
| 1572 | + | |
| 1573 | +exports["default"] = _default; | |
| 1574 | + | |
| 1575 | +/***/ }), | |
| 1576 | + | |
| 1289 | 1577 | /***/ "../assets/dev/js/editor/utils/is-instanceof.js": |
| 1290 | 1578 | /*!******************************************************!*\ |
| 1291 | 1579 | !*** ../assets/dev/js/editor/utils/is-instanceof.js ***! |
| 1292 | 1580 | \******************************************************/ |
| @@ -1298,11 +1586,15 @@ | ||
| 1298 | 1586 | Object.defineProperty(exports, "__esModule", ({ |
| 1299 | 1587 | value: true |
| 1300 | 1588 | })); |
| 1301 | 1589 | exports["default"] = void 0; |
| 1302 | -function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; } | |
| 1303 | -function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); 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; } } | |
| 1304 | -function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } | |
| 1590 | + | |
| 1591 | +function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } | |
| 1592 | + | |
| 1593 | +function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } | |
| 1594 | + | |
| 1595 | +function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } | |
| 1596 | + | |
| 1305 | 1597 | /** |
| 1306 | 1598 | * Some FileAPI objects such as FileList, DataTransferItem and DataTransferItemList has inconsistency with the retrieved |
| 1307 | 1599 | * object (from events, etc.) and the actual JavaScript object so a regular instanceof doesn't work. This function can |
| 1308 | 1600 | * check whether it's instanceof by using the objects constructor and prototype names. |
| @@ -1310,16 +1602,19 @@ | ||
| 1310 | 1602 | * @param object |
| 1311 | 1603 | * @param constructors |
| 1312 | 1604 | * @return {boolean} |
| 1313 | 1605 | */ |
| 1314 | -var _default = exports["default"] = function _default(object, constructors) { | |
| 1606 | +var _default = function _default(object, constructors) { | |
| 1315 | 1607 | constructors = Array.isArray(constructors) ? constructors : [constructors]; |
| 1608 | + | |
| 1316 | 1609 | var _iterator = _createForOfIteratorHelper(constructors), |
| 1317 | - _step; | |
| 1610 | + _step; | |
| 1611 | + | |
| 1318 | 1612 | try { |
| 1319 | 1613 | for (_iterator.s(); !(_step = _iterator.n()).done;) { |
| 1320 | - var constructor = _step.value; | |
| 1321 | - if (object.constructor.name === constructor.prototype[Symbol.toStringTag]) { | |
| 1614 | + var _constructor = _step.value; | |
| 1615 | + | |
| 1616 | + if (object.constructor.name === _constructor.prototype[Symbol.toStringTag]) { | |
| 1322 | 1617 | return true; |
| 1323 | 1618 | } |
| 1324 | 1619 | } |
| 1325 | 1620 | } catch (err) { |
| @@ -1326,11 +1621,14 @@ | ||
| 1326 | 1621 | _iterator.e(err); |
| 1327 | 1622 | } finally { |
| 1328 | 1623 | _iterator.f(); |
| 1329 | 1624 | } |
| 1625 | + | |
| 1330 | 1626 | return false; |
| 1331 | 1627 | }; |
| 1332 | 1628 | |
| 1629 | +exports["default"] = _default; | |
| 1630 | + | |
| 1333 | 1631 | /***/ }), |
| 1334 | 1632 | |
| 1335 | 1633 | /***/ "../assets/dev/js/editor/utils/module.js": |
| 1336 | 1634 | /*!***********************************************!*\ |
| @@ -1343,12 +1641,14 @@ | ||
| 1343 | 1641 | |
| 1344 | 1642 | var EditorModule = elementorModules.Module.extend({ |
| 1345 | 1643 | onInit: function onInit() { |
| 1346 | 1644 | var _this = this; |
| 1645 | + | |
| 1347 | 1646 | var $window = jQuery(window); |
| 1348 | 1647 | $window.on('elementor:init-components', this.onElementorInitComponents.bind(this)); |
| 1349 | 1648 | $window.on('elementor:loaded', function () { |
| 1350 | 1649 | _this.onElementorLoaded(); |
| 1650 | + | |
| 1351 | 1651 | elementor.on('document:loaded', _this.onDocumentLoaded.bind(_this)); |
| 1352 | 1652 | }); |
| 1353 | 1653 | $window.on('elementor:init', this.onElementorReady); |
| 1354 | 1654 | }, |
| @@ -1353,11 +1653,10 @@ | ||
| 1353 | 1653 | $window.on('elementor:init', this.onElementorReady); |
| 1354 | 1654 | }, |
| 1355 | 1655 | // TODO: Delete as soon as possible. |
| 1356 | 1656 | getEditorControlView: function getEditorControlView(name) { |
| 1357 | - var _this$getEditorContro; | |
| 1358 | 1657 | var editor = elementor.getPanelView().getCurrentPageView(); |
| 1359 | - return editor.children.findByModelCid((_this$getEditorContro = this.getEditorControlModel(name)) === null || _this$getEditorContro === void 0 ? void 0 : _this$getEditorContro.cid); | |
| 1658 | + return editor.children.findByModelCid(this.getEditorControlModel(name).cid); | |
| 1360 | 1659 | }, |
| 1361 | 1660 | // TODO: Delete as soon as possible. |
| 1362 | 1661 | getEditorControlModel: function getEditorControlModel(name) { |
| 1363 | 1662 | var editor = elementor.getPanelView().getCurrentPageView(); |
| @@ -1369,14 +1668,21 @@ | ||
| 1369 | 1668 | this.onElementorInit(); |
| 1370 | 1669 | elementor.on('frontend:init', this.onElementorFrontendInit.bind(this)).on('preview:loaded', this.onElementorPreviewLoaded.bind(this)); |
| 1371 | 1670 | } |
| 1372 | 1671 | }); |
| 1672 | + | |
| 1373 | 1673 | EditorModule.prototype.onElementorLoaded = function () {}; |
| 1674 | + | |
| 1374 | 1675 | EditorModule.prototype.onElementorInit = function () {}; |
| 1676 | + | |
| 1375 | 1677 | EditorModule.prototype.onElementorPreviewLoaded = function () {}; |
| 1678 | + | |
| 1376 | 1679 | EditorModule.prototype.onDocumentLoaded = function () {}; |
| 1680 | + | |
| 1377 | 1681 | EditorModule.prototype.onElementorFrontendInit = function () {}; |
| 1682 | + | |
| 1378 | 1683 | EditorModule.prototype.onElementorInitComponents = function () {}; |
| 1684 | + | |
| 1379 | 1685 | module.exports = EditorModule; |
| 1380 | 1686 | |
| 1381 | 1687 | /***/ }), |
| 1382 | 1688 | |
| @@ -1390,16 +1696,21 @@ | ||
| 1390 | 1696 | /* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; |
| 1391 | 1697 | |
| 1392 | 1698 | |
| 1393 | 1699 | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 1700 | + | |
| 1394 | 1701 | Object.defineProperty(exports, "__esModule", ({ |
| 1395 | 1702 | value: true |
| 1396 | 1703 | })); |
| 1397 | 1704 | exports["default"] = void 0; |
| 1705 | + | |
| 1398 | 1706 | var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); |
| 1707 | + | |
| 1399 | 1708 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 1709 | + | |
| 1400 | 1710 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 1401 | -var ControlsPopover = exports["default"] = /*#__PURE__*/function () { | |
| 1711 | + | |
| 1712 | +var ControlsPopover = /*#__PURE__*/function () { | |
| 1402 | 1713 | function ControlsPopover(child) { |
| 1403 | 1714 | (0, _classCallCheck2.default)(this, ControlsPopover); |
| 1404 | 1715 | this.child = child; |
| 1405 | 1716 | this.$popover = jQuery('<div>', { |
| @@ -1406,16 +1717,16 @@ | ||
| 1406 | 1717 | class: 'elementor-controls-popover' |
| 1407 | 1718 | }); |
| 1408 | 1719 | child.$el.before(this.$popover); |
| 1409 | 1720 | this.$popover.append(child.$el); |
| 1410 | - this.popoverToggleView = child._parent.children.findByIndex(child._index - 1); | |
| 1721 | + this.popoverToggleView = child._parent.children.findByIndex(child._index - 1); // Add the "Typography" header to the popover | |
| 1411 | 1722 | |
| 1412 | - // Add the "Typography" header to the popover | |
| 1413 | 1723 | if ('typography' === this.child.model.attributes.groupType) { |
| 1414 | 1724 | this.createPopoverHeader(); |
| 1415 | 1725 | } |
| 1416 | 1726 | } |
| 1417 | - return (0, _createClass2.default)(ControlsPopover, [{ | |
| 1727 | + | |
| 1728 | + (0, _createClass2.default)(ControlsPopover, [{ | |
| 1418 | 1729 | key: "addChild", |
| 1419 | 1730 | value: function addChild(child) { |
| 1420 | 1731 | this.$popover.append(child.$el); |
| 1421 | 1732 | } |
| @@ -1422,30 +1733,31 @@ | ||
| 1422 | 1733 | }, { |
| 1423 | 1734 | key: "createPopoverHeader", |
| 1424 | 1735 | value: function createPopoverHeader() { |
| 1425 | 1736 | var _this = this; |
| 1737 | + | |
| 1426 | 1738 | var $popoverToggleControl = this.$popover.prev(), |
| 1427 | - // Get the existing reset button. | |
| 1428 | - $resetLabel = $popoverToggleControl.find('.elementor-control-popover-toggle-reset-label'); | |
| 1739 | + // Get the existing reset button. | |
| 1740 | + $resetLabel = $popoverToggleControl.find('.elementor-control-popover-toggle-reset-label'); | |
| 1429 | 1741 | this.$popoverHeader = jQuery('<div>', { |
| 1430 | 1742 | class: 'e-group-control-header' |
| 1431 | 1743 | }).html('<span>' + __('Typography', 'elementor') + '</span>'); |
| 1432 | 1744 | this.$headerControlsWrapper = jQuery('<div>', { |
| 1433 | 1745 | class: 'e-control-tools' |
| 1434 | - }); | |
| 1746 | + }); // Give the reset button the control tool styling, and add a click event so clicking on it closes the popover. | |
| 1435 | 1747 | |
| 1436 | - // Give the reset button the control tool styling, and add a click event so clicking on it closes the popover. | |
| 1437 | 1748 | $resetLabel.addClass('e-control-tool').on('click', function () { |
| 1438 | 1749 | return _this.onResetButtonClick(); |
| 1439 | - }); | |
| 1750 | + }); // Move the popover toggle reset button into the popover header. | |
| 1440 | 1751 | |
| 1441 | - // Move the popover toggle reset button into the popover header. | |
| 1442 | 1752 | this.$headerControlsWrapper.append($resetLabel); |
| 1443 | 1753 | this.$popoverHeader.append(this.$headerControlsWrapper); |
| 1444 | 1754 | var globalConfig = this.popoverToggleView.model.get('global'); |
| 1755 | + | |
| 1445 | 1756 | if (globalConfig !== null && globalConfig !== void 0 && globalConfig.active) { |
| 1446 | 1757 | this.createAddButton(); |
| 1447 | 1758 | } |
| 1759 | + | |
| 1448 | 1760 | this.$popover.prepend(this.$popoverHeader).addClass('e-controls-popover--typography'); |
| 1449 | 1761 | } |
| 1450 | 1762 | }, { |
| 1451 | 1763 | key: "onResetButtonClick", |
| @@ -1450,14 +1762,14 @@ | ||
| 1450 | 1762 | }, { |
| 1451 | 1763 | key: "onResetButtonClick", |
| 1452 | 1764 | value: function onResetButtonClick() { |
| 1453 | 1765 | this.$popover.hide(); |
| 1454 | - this.$popover.trigger('hide'); | |
| 1455 | 1766 | var groupControlName = this.child.model.get('groupPrefix') + 'typography', |
| 1456 | - args = { | |
| 1457 | - container: this.child.options.container, | |
| 1458 | - settings: (0, _defineProperty2.default)({}, groupControlName, '') | |
| 1459 | - }; | |
| 1767 | + args = { | |
| 1768 | + container: this.child.options.container, | |
| 1769 | + settings: (0, _defineProperty2.default)({}, groupControlName, '') | |
| 1770 | + }; | |
| 1771 | + | |
| 1460 | 1772 | if (this.child.options.container.globals.get(groupControlName)) { |
| 1461 | 1773 | // The Disable Globals command applies global settings locally, |
| 1462 | 1774 | // so disabling the global shouldn't actually change the appearance of the widget. |
| 1463 | 1775 | $e.run('document/globals/disable', args); |
| @@ -1473,8 +1785,9 @@ | ||
| 1473 | 1785 | }, { |
| 1474 | 1786 | key: "createAddButton", |
| 1475 | 1787 | value: function createAddButton() { |
| 1476 | 1788 | var _this2 = this; |
| 1789 | + | |
| 1477 | 1790 | this.$addButton = jQuery('<button>', { |
| 1478 | 1791 | class: 'e-control-tool' |
| 1479 | 1792 | }).html(jQuery('<i>', { |
| 1480 | 1793 | class: 'eicon-plus' |
| @@ -1497,10 +1810,13 @@ | ||
| 1497 | 1810 | value: function destroy() { |
| 1498 | 1811 | this.$popover.remove(); |
| 1499 | 1812 | } |
| 1500 | 1813 | }]); |
| 1814 | + return ControlsPopover; | |
| 1501 | 1815 | }(); |
| 1502 | 1816 | |
| 1817 | +exports["default"] = ControlsPopover; | |
| 1818 | + | |
| 1503 | 1819 | /***/ }), |
| 1504 | 1820 | |
| 1505 | 1821 | /***/ "../assets/dev/js/editor/views/controls-stack.js": |
| 1506 | 1822 | /*!*******************************************************!*\ |
| @@ -1511,13 +1827,16 @@ | ||
| 1511 | 1827 | "use strict"; |
| 1512 | 1828 | |
| 1513 | 1829 | |
| 1514 | 1830 | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 1831 | + | |
| 1515 | 1832 | Object.defineProperty(exports, "__esModule", ({ |
| 1516 | 1833 | value: true |
| 1517 | 1834 | })); |
| 1518 | 1835 | exports["default"] = void 0; |
| 1836 | + | |
| 1519 | 1837 | var _controlsPopover = _interopRequireDefault(__webpack_require__(/*! ./controls-popover */ "../assets/dev/js/editor/views/controls-popover.js")); |
| 1838 | + | |
| 1520 | 1839 | var ControlsStack; |
| 1521 | 1840 | ControlsStack = Marionette.CompositeView.extend({ |
| 1522 | 1841 | classes: { |
| 1523 | 1842 | popover: 'elementor-controls-popover' |
| @@ -1558,17 +1877,16 @@ | ||
| 1558 | 1877 | } |
| 1559 | 1878 | }, |
| 1560 | 1879 | initialize: function initialize(options) { |
| 1561 | 1880 | this.initCollection(); |
| 1881 | + | |
| 1562 | 1882 | if (options.tab) { |
| 1563 | 1883 | this.activeTab = options.tab; |
| 1564 | 1884 | this.activateFirstSection(); |
| 1565 | 1885 | } |
| 1886 | + | |
| 1566 | 1887 | this.listenTo(elementor.channels.deviceMode, 'change', this.onDeviceModeChange); |
| 1567 | 1888 | }, |
| 1568 | - onDestroy: function onDestroy() { | |
| 1569 | - this.stopListening(elementor.channels.deviceMode, 'change', this.onDeviceModeChange); | |
| 1570 | - }, | |
| 1571 | 1889 | initCollection: function initCollection() { |
| 1572 | 1890 | this.collection = new Backbone.Collection(_.values(elementor.mergeControlsSettings(this.getOption('controls')))); |
| 1573 | 1891 | }, |
| 1574 | 1892 | filter: function filter(controlModel) { |
| @@ -1574,11 +1892,13 @@ | ||
| 1574 | 1892 | filter: function filter(controlModel) { |
| 1575 | 1893 | if (controlModel.get('tab') !== this.activeTab) { |
| 1576 | 1894 | return false; |
| 1577 | 1895 | } |
| 1896 | + | |
| 1578 | 1897 | if ('section' === controlModel.get('type')) { |
| 1579 | 1898 | return true; |
| 1580 | 1899 | } |
| 1900 | + | |
| 1581 | 1901 | var section = controlModel.get('section'); |
| 1582 | 1902 | return !section || section === this.activeSection; |
| 1583 | 1903 | }, |
| 1584 | 1904 | getControlViewByModel: function getControlViewByModel(model) { |
| @@ -1597,9 +1917,11 @@ | ||
| 1597 | 1917 | }, |
| 1598 | 1918 | activateTab: function activateTab(tab) { |
| 1599 | 1919 | this.activeTab = tab; |
| 1600 | 1920 | this.activateFirstSection(); |
| 1921 | + | |
| 1601 | 1922 | this._renderChildren(); |
| 1923 | + | |
| 1602 | 1924 | return this; |
| 1603 | 1925 | }, |
| 1604 | 1926 | activateSection: function activateSection(sectionName) { |
| 1605 | 1927 | this.activeSection = sectionName; |
| @@ -1610,8 +1932,9 @@ | ||
| 1610 | 1932 | var sectionControls = self.collection.filter(function (controlModel) { |
| 1611 | 1933 | return 'section' === controlModel.get('type') && self.isVisibleSectionControl(controlModel); |
| 1612 | 1934 | }); |
| 1613 | 1935 | var sectionToActivate; |
| 1936 | + | |
| 1614 | 1937 | if (!sectionControls[0]) { |
| 1615 | 1938 | self.activeSection = null; |
| 1616 | 1939 | sectionToActivate = null; |
| 1617 | 1940 | } else { |
| @@ -1616,14 +1939,17 @@ | ||
| 1616 | 1939 | sectionToActivate = null; |
| 1617 | 1940 | } else { |
| 1618 | 1941 | sectionToActivate = sectionControls[0].get('name'); |
| 1619 | 1942 | } |
| 1943 | + | |
| 1620 | 1944 | var preActivatedSection = sectionControls.filter(function (controlModel) { |
| 1621 | 1945 | return self.activeSection === controlModel.get('name'); |
| 1622 | 1946 | }); |
| 1947 | + | |
| 1623 | 1948 | if (preActivatedSection[0]) { |
| 1624 | 1949 | return; |
| 1625 | 1950 | } |
| 1951 | + | |
| 1626 | 1952 | self.activateSection(sectionToActivate); |
| 1627 | 1953 | return this; |
| 1628 | 1954 | }, |
| 1629 | 1955 | getChildView: function getChildView(item) { |
| @@ -1634,13 +1960,14 @@ | ||
| 1634 | 1960 | return [elementor.getPanelView().getCurrentPageName()]; |
| 1635 | 1961 | }, |
| 1636 | 1962 | openActiveSection: function openActiveSection() { |
| 1637 | 1963 | var activeSection = this.activeSection, |
| 1638 | - activeSectionView = this.children.filter(function (view) { | |
| 1639 | - return activeSection === view.model.get('name'); | |
| 1640 | - }); | |
| 1964 | + activeSectionView = this.children.filter(function (view) { | |
| 1965 | + return activeSection === view.model.get('name'); | |
| 1966 | + }); | |
| 1967 | + | |
| 1641 | 1968 | if (activeSectionView[0]) { |
| 1642 | - activeSectionView[0].$el.addClass('e-open'); | |
| 1969 | + activeSectionView[0].$el.addClass('elementor-open'); | |
| 1643 | 1970 | var eventNamespace = this.getNamespaceArray(); |
| 1644 | 1971 | eventNamespace.push(activeSection, 'activated'); |
| 1645 | 1972 | elementor.channels.editor.trigger(eventNamespace.join(':'), this); |
| 1646 | 1973 | } |
| @@ -1660,10 +1987,11 @@ | ||
| 1660 | 1987 | this.$el.removeClass('elementor-responsive-switchers-open'); |
| 1661 | 1988 | } |
| 1662 | 1989 | }, |
| 1663 | 1990 | onChildviewControlSectionClicked: function onChildviewControlSectionClicked(childView) { |
| 1664 | - var isSectionOpen = childView.$el.hasClass('e-open'); | |
| 1991 | + var isSectionOpen = childView.$el.hasClass('elementor-open'); | |
| 1665 | 1992 | this.activateSection(isSectionOpen ? null : childView.model.get('name')); |
| 1993 | + | |
| 1666 | 1994 | this._renderChildren(); |
| 1667 | 1995 | }, |
| 1668 | 1996 | onChildviewResponsiveSwitcherClick: function onChildviewResponsiveSwitcherClick(childView, device) { |
| 1669 | 1997 | if ('desktop' === device) { |
| @@ -1672,22 +2000,26 @@ | ||
| 1672 | 2000 | } |
| 1673 | 2001 | }, { |
| 1674 | 2002 | handlePopovers: function handlePopovers(view) { |
| 1675 | 2003 | var popover; |
| 2004 | + view.popovers = []; | |
| 1676 | 2005 | this.removePopovers(view); |
| 1677 | - view.popovers = []; | |
| 1678 | 2006 | view.children.each(function (control) { |
| 1679 | 2007 | if (popover) { |
| 1680 | 2008 | popover.addChild(control); |
| 1681 | 2009 | } |
| 2010 | + | |
| 1682 | 2011 | var popoverData = control.model.get('popover'); |
| 2012 | + | |
| 1683 | 2013 | if (!popoverData) { |
| 1684 | 2014 | return; |
| 1685 | 2015 | } |
| 2016 | + | |
| 1686 | 2017 | if (popoverData.start) { |
| 1687 | 2018 | popover = new _controlsPopover.default(control); |
| 1688 | 2019 | view.popovers.push(popover); |
| 1689 | 2020 | } |
| 2021 | + | |
| 1690 | 2022 | if (popoverData.end) { |
| 1691 | 2023 | popover = null; |
| 1692 | 2024 | } |
| 1693 | 2025 | }); |
| @@ -1692,15 +2024,15 @@ | ||
| 1692 | 2024 | } |
| 1693 | 2025 | }); |
| 1694 | 2026 | }, |
| 1695 | 2027 | removePopovers: function removePopovers(view) { |
| 1696 | - var _view$popovers; | |
| 1697 | - (_view$popovers = view.popovers) === null || _view$popovers === void 0 || _view$popovers.forEach(function (popover) { | |
| 2028 | + view.popovers.forEach(function (popover) { | |
| 1698 | 2029 | return popover.destroy(); |
| 1699 | 2030 | }); |
| 1700 | 2031 | } |
| 1701 | 2032 | }); |
| 1702 | -var _default = exports["default"] = ControlsStack; | |
| 2033 | +var _default = ControlsStack; | |
| 2034 | +exports["default"] = _default; | |
| 1703 | 2035 | |
| 1704 | 2036 | /***/ }), |
| 1705 | 2037 | |
| 1706 | 2038 | /***/ "../assets/dev/js/modules/imports/args-object.js": |
| @@ -1712,23 +2044,39 @@ | ||
| 1712 | 2044 | "use strict"; |
| 1713 | 2045 | |
| 1714 | 2046 | |
| 1715 | 2047 | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 2048 | + | |
| 1716 | 2049 | Object.defineProperty(exports, "__esModule", ({ |
| 1717 | 2050 | value: true |
| 1718 | 2051 | })); |
| 1719 | 2052 | exports["default"] = void 0; |
| 2053 | + | |
| 1720 | 2054 | var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js")); |
| 2055 | + | |
| 1721 | 2056 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 2057 | + | |
| 1722 | 2058 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 2059 | + | |
| 2060 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 2061 | + | |
| 1723 | 2062 | var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); |
| 2063 | + | |
| 1724 | 2064 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 1725 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 2065 | + | |
| 1726 | 2066 | var _instanceType = _interopRequireDefault(__webpack_require__(/*! ./instance-type */ "../assets/dev/js/modules/imports/instance-type.js")); |
| 2067 | + | |
| 1727 | 2068 | var _isInstanceof = _interopRequireDefault(__webpack_require__(/*! ../../editor/utils/is-instanceof */ "../assets/dev/js/editor/utils/is-instanceof.js")); |
| 1728 | -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)); } | |
| 1729 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 1730 | -var ArgsObject = exports["default"] = /*#__PURE__*/function (_InstanceType) { | |
| 2069 | + | |
| 2070 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 2071 | + | |
| 2072 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 2073 | + | |
| 2074 | +var ArgsObject = /*#__PURE__*/function (_InstanceType) { | |
| 2075 | + (0, _inherits2.default)(ArgsObject, _InstanceType); | |
| 2076 | + | |
| 2077 | + var _super = _createSuper(ArgsObject); | |
| 2078 | + | |
| 1731 | 2079 | /** |
| 1732 | 2080 | * Function constructor(). |
| 1733 | 2081 | * |
| 1734 | 2082 | * Create ArgsObject. |
| @@ -1736,14 +2084,14 @@ | ||
| 1736 | 2084 | * @param {{}} args |
| 1737 | 2085 | */ |
| 1738 | 2086 | function ArgsObject(args) { |
| 1739 | 2087 | var _this; |
| 2088 | + | |
| 1740 | 2089 | (0, _classCallCheck2.default)(this, ArgsObject); |
| 1741 | - _this = _callSuper(this, ArgsObject); | |
| 2090 | + _this = _super.call(this); | |
| 1742 | 2091 | _this.args = args; |
| 1743 | 2092 | return _this; |
| 1744 | 2093 | } |
| 1745 | - | |
| 1746 | 2094 | /** |
| 1747 | 2095 | * Function requireArgument(). |
| 1748 | 2096 | * |
| 1749 | 2097 | * Validate property in args. |
| @@ -1751,19 +2099,21 @@ | ||
| 1751 | 2099 | * @param {string} property |
| 1752 | 2100 | * @param {{}} args |
| 1753 | 2101 | * |
| 1754 | 2102 | * @throws {Error} |
| 2103 | + * | |
| 1755 | 2104 | */ |
| 1756 | - (0, _inherits2.default)(ArgsObject, _InstanceType); | |
| 1757 | - return (0, _createClass2.default)(ArgsObject, [{ | |
| 2105 | + | |
| 2106 | + | |
| 2107 | + (0, _createClass2.default)(ArgsObject, [{ | |
| 1758 | 2108 | key: "requireArgument", |
| 1759 | 2109 | value: function requireArgument(property) { |
| 1760 | 2110 | var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.args; |
| 2111 | + | |
| 1761 | 2112 | if (!Object.prototype.hasOwnProperty.call(args, property)) { |
| 1762 | 2113 | throw Error("".concat(property, " is required.")); |
| 1763 | 2114 | } |
| 1764 | 2115 | } |
| 1765 | - | |
| 1766 | 2116 | /** |
| 1767 | 2117 | * Function requireArgumentType(). |
| 1768 | 2118 | * |
| 1769 | 2119 | * Validate property in args using `type === typeof(args.whatever)`. |
| @@ -1772,19 +2122,21 @@ | ||
| 1772 | 2122 | * @param {string} type |
| 1773 | 2123 | * @param {{}} args |
| 1774 | 2124 | * |
| 1775 | 2125 | * @throws {Error} |
| 2126 | + * | |
| 1776 | 2127 | */ |
| 2128 | + | |
| 1777 | 2129 | }, { |
| 1778 | 2130 | key: "requireArgumentType", |
| 1779 | 2131 | value: function requireArgumentType(property, type) { |
| 1780 | 2132 | var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args; |
| 1781 | 2133 | this.requireArgument(property, args); |
| 2134 | + | |
| 1782 | 2135 | if ((0, _typeof2.default)(args[property]) !== type) { |
| 1783 | 2136 | throw Error("".concat(property, " invalid type: ").concat(type, ".")); |
| 1784 | 2137 | } |
| 1785 | 2138 | } |
| 1786 | - | |
| 1787 | 2139 | /** |
| 1788 | 2140 | * Function requireArgumentInstance(). |
| 1789 | 2141 | * |
| 1790 | 2142 | * Validate property in args using `args.whatever instanceof instance`. |
| @@ -1793,19 +2145,21 @@ | ||
| 1793 | 2145 | * @param {*} instance |
| 1794 | 2146 | * @param {{}} args |
| 1795 | 2147 | * |
| 1796 | 2148 | * @throws {Error} |
| 2149 | + * | |
| 1797 | 2150 | */ |
| 2151 | + | |
| 1798 | 2152 | }, { |
| 1799 | 2153 | key: "requireArgumentInstance", |
| 1800 | 2154 | value: function requireArgumentInstance(property, instance) { |
| 1801 | 2155 | var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args; |
| 1802 | 2156 | this.requireArgument(property, args); |
| 2157 | + | |
| 1803 | 2158 | if (!(args[property] instanceof instance) && !(0, _isInstanceof.default)(args[property], instance)) { |
| 1804 | 2159 | throw Error("".concat(property, " invalid instance.")); |
| 1805 | 2160 | } |
| 1806 | 2161 | } |
| 1807 | - | |
| 1808 | 2162 | /** |
| 1809 | 2163 | * Function requireArgumentConstructor(). |
| 1810 | 2164 | * |
| 1811 | 2165 | * Validate property in args using `type === args.whatever.constructor`. |
| @@ -1814,17 +2168,18 @@ | ||
| 1814 | 2168 | * @param {*} type |
| 1815 | 2169 | * @param {{}} args |
| 1816 | 2170 | * |
| 1817 | 2171 | * @throws {Error} |
| 2172 | + * | |
| 1818 | 2173 | */ |
| 2174 | + | |
| 1819 | 2175 | }, { |
| 1820 | 2176 | key: "requireArgumentConstructor", |
| 1821 | 2177 | value: function requireArgumentConstructor(property, type) { |
| 1822 | 2178 | var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args; |
| 1823 | - this.requireArgument(property, args); | |
| 2179 | + this.requireArgument(property, args); // Note: Converting the constructor to string in order to avoid equation issues | |
| 2180 | + // due to different memory addresses between iframes (window.Object !== window.top.Object). | |
| 1824 | 2181 | |
| 1825 | - // Note: Converting the constructor to string in order to avoid equation issues | |
| 1826 | - // due to different memory addresses between iframes (window.Object !== window.top.Object). | |
| 1827 | 2182 | if (args[property].constructor.toString() !== type.prototype.constructor.toString()) { |
| 1828 | 2183 | throw Error("".concat(property, " invalid constructor type.")); |
| 1829 | 2184 | } |
| 1830 | 2185 | } |
| @@ -1833,10 +2188,13 @@ | ||
| 1833 | 2188 | value: function getInstanceType() { |
| 1834 | 2189 | return 'ArgsObject'; |
| 1835 | 2190 | } |
| 1836 | 2191 | }]); |
| 2192 | + return ArgsObject; | |
| 1837 | 2193 | }(_instanceType.default); |
| 1838 | 2194 | |
| 2195 | +exports["default"] = ArgsObject; | |
| 2196 | + | |
| 1839 | 2197 | /***/ }), |
| 1840 | 2198 | |
| 1841 | 2199 | /***/ "../assets/dev/js/modules/imports/instance-type.js": |
| 1842 | 2200 | /*!*********************************************************!*\ |
| @@ -1847,34 +2205,43 @@ | ||
| 1847 | 2205 | "use strict"; |
| 1848 | 2206 | |
| 1849 | 2207 | |
| 1850 | 2208 | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 2209 | + | |
| 1851 | 2210 | Object.defineProperty(exports, "__esModule", ({ |
| 1852 | 2211 | value: true |
| 1853 | 2212 | })); |
| 1854 | 2213 | exports["default"] = void 0; |
| 2214 | + | |
| 1855 | 2215 | var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); |
| 2216 | + | |
| 1856 | 2217 | var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); |
| 2218 | + | |
| 2219 | +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 2220 | + | |
| 1857 | 2221 | var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); |
| 1858 | -var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 1859 | -function _superPropGet(t, o, e, r) { var p = (0, _get2.default)((0, _getPrototypeOf2.default)(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; } | |
| 1860 | -var InstanceType = exports["default"] = /*#__PURE__*/function () { | |
| 2222 | + | |
| 2223 | +var InstanceType = /*#__PURE__*/function (_Symbol$hasInstance) { | |
| 1861 | 2224 | function InstanceType() { |
| 1862 | 2225 | var _this = this; |
| 2226 | + | |
| 1863 | 2227 | (0, _classCallCheck2.default)(this, InstanceType); |
| 1864 | 2228 | // Since anonymous classes sometimes do not get validated by babel, do it manually. |
| 1865 | 2229 | var target = this instanceof InstanceType ? this.constructor : void 0; |
| 1866 | 2230 | var prototypes = []; |
| 2231 | + | |
| 1867 | 2232 | while (target.__proto__ && target.__proto__.name) { |
| 1868 | 2233 | prototypes.push(target.__proto__); |
| 1869 | 2234 | target = target.__proto__; |
| 1870 | 2235 | } |
| 2236 | + | |
| 1871 | 2237 | prototypes.reverse().forEach(function (proto) { |
| 1872 | 2238 | return _this instanceof proto; |
| 1873 | 2239 | }); |
| 1874 | 2240 | } |
| 1875 | - return (0, _createClass2.default)(InstanceType, null, [{ | |
| 1876 | - key: Symbol.hasInstance, | |
| 2241 | + | |
| 2242 | + (0, _createClass2.default)(InstanceType, null, [{ | |
| 2243 | + key: _Symbol$hasInstance, | |
| 1877 | 2244 | value: function value(target) { |
| 1878 | 2245 | /** |
| 1879 | 2246 | * This is function extending being called each time JS uses instanceOf, since babel use it each time it create new class |
| 1880 | 2247 | * its give's opportunity to mange capabilities of instanceOf operator. |
| @@ -1879,34 +2246,39 @@ | ||
| 1879 | 2246 | * This is function extending being called each time JS uses instanceOf, since babel use it each time it create new class |
| 1880 | 2247 | * its give's opportunity to mange capabilities of instanceOf operator. |
| 1881 | 2248 | * saving current class each time will give option later to handle instanceOf manually. |
| 1882 | 2249 | */ |
| 1883 | - var result = _superPropGet(InstanceType, Symbol.hasInstance, this, 2)([target]); | |
| 2250 | + var result = (0, _get2.default)((0, _getPrototypeOf2.default)(InstanceType), Symbol.hasInstance, this).call(this, target); // Act normal when validate a class, which does not have instance type. | |
| 1884 | 2251 | |
| 1885 | - // Act normal when validate a class, which does not have instance type. | |
| 1886 | 2252 | if (target && !target.constructor.getInstanceType) { |
| 1887 | 2253 | return result; |
| 1888 | 2254 | } |
| 2255 | + | |
| 1889 | 2256 | if (target) { |
| 1890 | 2257 | if (!target.instanceTypes) { |
| 1891 | 2258 | target.instanceTypes = []; |
| 1892 | 2259 | } |
| 2260 | + | |
| 1893 | 2261 | if (!result) { |
| 1894 | 2262 | if (this.getInstanceType() === target.constructor.getInstanceType()) { |
| 1895 | 2263 | result = true; |
| 1896 | 2264 | } |
| 1897 | 2265 | } |
| 2266 | + | |
| 1898 | 2267 | if (result) { |
| 1899 | 2268 | var name = this.getInstanceType === InstanceType.getInstanceType ? 'BaseInstanceType' : this.getInstanceType(); |
| 2269 | + | |
| 1900 | 2270 | if (-1 === target.instanceTypes.indexOf(name)) { |
| 1901 | 2271 | target.instanceTypes.push(name); |
| 1902 | 2272 | } |
| 1903 | 2273 | } |
| 1904 | 2274 | } |
| 2275 | + | |
| 1905 | 2276 | if (!result && target) { |
| 1906 | 2277 | // Check if the given 'target', is instance of known types. |
| 1907 | 2278 | result = target.instanceTypes && Array.isArray(target.instanceTypes) && -1 !== target.instanceTypes.indexOf(this.getInstanceType()); |
| 1908 | 2279 | } |
| 2280 | + | |
| 1909 | 2281 | return result; |
| 1910 | 2282 | } |
| 1911 | 2283 | }, { |
| 1912 | 2284 | key: "getInstanceType", |
| @@ -1913,159 +2285,23 @@ | ||
| 1913 | 2285 | value: function getInstanceType() { |
| 1914 | 2286 | elementorModules.ForceMethodImplementation(); |
| 1915 | 2287 | } |
| 1916 | 2288 | }]); |
| 1917 | -}(); | |
| 2289 | + return InstanceType; | |
| 2290 | +}(Symbol.hasInstance); | |
| 1918 | 2291 | |
| 1919 | -/***/ }), | |
| 2292 | +exports["default"] = InstanceType; | |
| 1920 | 2293 | |
| 1921 | -/***/ "../assets/dev/js/utils/introduction.js": | |
| 1922 | -/*!**********************************************!*\ | |
| 1923 | - !*** ../assets/dev/js/utils/introduction.js ***! | |
| 1924 | - \**********************************************/ | |
| 1925 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 1926 | - | |
| 1927 | -"use strict"; | |
| 1928 | - | |
| 1929 | - | |
| 1930 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1931 | -Object.defineProperty(exports, "__esModule", ({ | |
| 1932 | - value: true | |
| 1933 | -})); | |
| 1934 | -exports["default"] = void 0; | |
| 1935 | -var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ "../node_modules/@babel/runtime/regenerator/index.js")); | |
| 1936 | -var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js")); | |
| 1937 | -var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 1938 | -var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 1939 | -var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 1940 | -var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 1941 | -var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 1942 | -var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 1943 | -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)); } | |
| 1944 | -function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 1945 | -var _default = exports["default"] = /*#__PURE__*/function (_elementorModules$Mod) { | |
| 1946 | - function _default() { | |
| 1947 | - var _this; | |
| 1948 | - (0, _classCallCheck2.default)(this, _default); | |
| 1949 | - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { | |
| 1950 | - args[_key] = arguments[_key]; | |
| 1951 | - } | |
| 1952 | - _this = _callSuper(this, _default, [].concat(args)); | |
| 1953 | - (0, _defineProperty2.default)(_this, "introductionMap", null); | |
| 1954 | - _this.initDialog(); | |
| 1955 | - return _this; | |
| 1956 | - } | |
| 1957 | - (0, _inherits2.default)(_default, _elementorModules$Mod); | |
| 1958 | - return (0, _createClass2.default)(_default, [{ | |
| 1959 | - key: "setIntroductionMap", | |
| 1960 | - value: function setIntroductionMap(map) { | |
| 1961 | - this.introductionMap = map; | |
| 1962 | - } | |
| 1963 | - }, { | |
| 1964 | - key: "getIntroductionMap", | |
| 1965 | - value: function getIntroductionMap() { | |
| 1966 | - return this.introductionMap || elementor.config.user.introduction; | |
| 1967 | - } | |
| 1968 | - }, { | |
| 1969 | - key: "getDefaultSettings", | |
| 1970 | - value: function getDefaultSettings() { | |
| 1971 | - return { | |
| 1972 | - dialogType: 'buttons', | |
| 1973 | - dialogOptions: { | |
| 1974 | - effects: { | |
| 1975 | - hide: 'hide', | |
| 1976 | - show: 'show' | |
| 1977 | - }, | |
| 1978 | - hide: { | |
| 1979 | - onBackgroundClick: false | |
| 1980 | - } | |
| 1981 | - } | |
| 1982 | - }; | |
| 1983 | - } | |
| 1984 | - }, { | |
| 1985 | - key: "initDialog", | |
| 1986 | - value: function initDialog() { | |
| 1987 | - var _this2 = this; | |
| 1988 | - var dialog; | |
| 1989 | - this.getDialog = function () { | |
| 1990 | - if (!dialog) { | |
| 1991 | - var settings = _this2.getSettings(); | |
| 1992 | - dialog = elementorCommon.dialogsManager.createWidget(settings.dialogType, settings.dialogOptions); | |
| 1993 | - if (settings.onDialogInitCallback) { | |
| 1994 | - settings.onDialogInitCallback.call(_this2, dialog); | |
| 1995 | - } | |
| 1996 | - } | |
| 1997 | - return dialog; | |
| 1998 | - }; | |
| 1999 | - } | |
| 2000 | - }, { | |
| 2001 | - key: "show", | |
| 2002 | - value: function show(target) { | |
| 2003 | - if (this.introductionViewed) { | |
| 2004 | - return; | |
| 2005 | - } | |
| 2006 | - var dialog = this.getDialog(); | |
| 2007 | - if (target) { | |
| 2008 | - dialog.setSettings('position', { | |
| 2009 | - of: target | |
| 2010 | - }); | |
| 2011 | - } | |
| 2012 | - dialog.show(); | |
| 2013 | - } | |
| 2014 | - }, { | |
| 2015 | - key: "introductionViewed", | |
| 2016 | - get: function get() { | |
| 2017 | - var introductionKey = this.getSettings('introductionKey'); | |
| 2018 | - return this.getIntroductionMap()[introductionKey]; | |
| 2019 | - }, | |
| 2020 | - set: function set(isViewed) { | |
| 2021 | - var introductionKey = this.getSettings('introductionKey'); | |
| 2022 | - this.getIntroductionMap()[introductionKey] = isViewed; | |
| 2023 | - } | |
| 2024 | - }, { | |
| 2025 | - key: "setViewed", | |
| 2026 | - value: function () { | |
| 2027 | - var _setViewed = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() { | |
| 2028 | - var _this3 = this; | |
| 2029 | - return _regenerator.default.wrap(function (_context) { | |
| 2030 | - while (1) switch (_context.prev = _context.next) { | |
| 2031 | - case 0: | |
| 2032 | - this.introductionViewed = true; | |
| 2033 | - return _context.abrupt("return", new Promise(function (resolve, reject) { | |
| 2034 | - elementorCommon.ajax.addRequest('introduction_viewed', { | |
| 2035 | - data: { | |
| 2036 | - introductionKey: _this3.getSettings('introductionKey') | |
| 2037 | - }, | |
| 2038 | - success: resolve, | |
| 2039 | - error: reject | |
| 2040 | - }); | |
| 2041 | - })); | |
| 2042 | - case 1: | |
| 2043 | - case "end": | |
| 2044 | - return _context.stop(); | |
| 2045 | - } | |
| 2046 | - }, _callee, this); | |
| 2047 | - })); | |
| 2048 | - function setViewed() { | |
| 2049 | - return _setViewed.apply(this, arguments); | |
| 2050 | - } | |
| 2051 | - return setViewed; | |
| 2052 | - }() | |
| 2053 | - }]); | |
| 2054 | -}(elementorModules.Module); | |
| 2055 | - | |
| 2056 | 2294 | /***/ }), |
| 2057 | 2295 | |
| 2058 | -/***/ "../node_modules/@babel/runtime/helpers/OverloadYield.js": | |
| 2059 | -/*!***************************************************************!*\ | |
| 2060 | - !*** ../node_modules/@babel/runtime/helpers/OverloadYield.js ***! | |
| 2061 | - \***************************************************************/ | |
| 2296 | +/***/ "@wordpress/i18n": | |
| 2297 | +/*!**************************!*\ | |
| 2298 | + !*** external "wp.i18n" ***! | |
| 2299 | + \**************************/ | |
| 2062 | 2300 | /***/ ((module) => { |
| 2063 | 2301 | |
| 2064 | -function _OverloadYield(e, d) { | |
| 2065 | - this.v = e, this.k = d; | |
| 2066 | -} | |
| 2067 | -module.exports = _OverloadYield, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2302 | +"use strict"; | |
| 2303 | +module.exports = wp.i18n; | |
| 2068 | 2304 | |
| 2069 | 2305 | /***/ }), |
| 2070 | 2306 | |
| 2071 | 2307 | /***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js": |
| @@ -2073,13 +2309,18 @@ | ||
| 2073 | 2309 | !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***! |
| 2074 | 2310 | \******************************************************************/ |
| 2075 | 2311 | /***/ ((module) => { |
| 2076 | 2312 | |
| 2077 | -function _arrayLikeToArray(r, a) { | |
| 2078 | - (null == a || a > r.length) && (a = r.length); | |
| 2079 | - for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; | |
| 2080 | - return n; | |
| 2313 | +function _arrayLikeToArray(arr, len) { | |
| 2314 | + if (len == null || len > arr.length) len = arr.length; | |
| 2315 | + | |
| 2316 | + for (var i = 0, arr2 = new Array(len); i < len; i++) { | |
| 2317 | + arr2[i] = arr[i]; | |
| 2318 | + } | |
| 2319 | + | |
| 2320 | + return arr2; | |
| 2081 | 2321 | } |
| 2322 | + | |
| 2082 | 2323 | module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2083 | 2324 | |
| 2084 | 2325 | /***/ }), |
| 2085 | 2326 | |
| @@ -2088,11 +2329,12 @@ | ||
| 2088 | 2329 | !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***! |
| 2089 | 2330 | \****************************************************************/ |
| 2090 | 2331 | /***/ ((module) => { |
| 2091 | 2332 | |
| 2092 | -function _arrayWithHoles(r) { | |
| 2093 | - if (Array.isArray(r)) return r; | |
| 2333 | +function _arrayWithHoles(arr) { | |
| 2334 | + if (Array.isArray(arr)) return arr; | |
| 2094 | 2335 | } |
| 2336 | + | |
| 2095 | 2337 | module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2096 | 2338 | |
| 2097 | 2339 | /***/ }), |
| 2098 | 2340 | |
| @@ -2101,51 +2343,20 @@ | ||
| 2101 | 2343 | !*** ../node_modules/@babel/runtime/helpers/assertThisInitialized.js ***! |
| 2102 | 2344 | \***********************************************************************/ |
| 2103 | 2345 | /***/ ((module) => { |
| 2104 | 2346 | |
| 2105 | -function _assertThisInitialized(e) { | |
| 2106 | - if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| 2107 | - return e; | |
| 2347 | +function _assertThisInitialized(self) { | |
| 2348 | + if (self === void 0) { | |
| 2349 | + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| 2350 | + } | |
| 2351 | + | |
| 2352 | + return self; | |
| 2108 | 2353 | } |
| 2354 | + | |
| 2109 | 2355 | module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2110 | 2356 | |
| 2111 | 2357 | /***/ }), |
| 2112 | 2358 | |
| 2113 | -/***/ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js": | |
| 2114 | -/*!******************************************************************!*\ | |
| 2115 | - !*** ../node_modules/@babel/runtime/helpers/asyncToGenerator.js ***! | |
| 2116 | - \******************************************************************/ | |
| 2117 | -/***/ ((module) => { | |
| 2118 | - | |
| 2119 | -function asyncGeneratorStep(n, t, e, r, o, a, c) { | |
| 2120 | - try { | |
| 2121 | - var i = n[a](c), | |
| 2122 | - u = i.value; | |
| 2123 | - } catch (n) { | |
| 2124 | - return void e(n); | |
| 2125 | - } | |
| 2126 | - i.done ? t(u) : Promise.resolve(u).then(r, o); | |
| 2127 | -} | |
| 2128 | -function _asyncToGenerator(n) { | |
| 2129 | - return function () { | |
| 2130 | - var t = this, | |
| 2131 | - e = arguments; | |
| 2132 | - return new Promise(function (r, o) { | |
| 2133 | - var a = n.apply(t, e); | |
| 2134 | - function _next(n) { | |
| 2135 | - asyncGeneratorStep(a, r, o, _next, _throw, "next", n); | |
| 2136 | - } | |
| 2137 | - function _throw(n) { | |
| 2138 | - asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); | |
| 2139 | - } | |
| 2140 | - _next(void 0); | |
| 2141 | - }); | |
| 2142 | - }; | |
| 2143 | -} | |
| 2144 | -module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2145 | - | |
| 2146 | -/***/ }), | |
| 2147 | - | |
| 2148 | 2359 | /***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js": |
| 2149 | 2360 | /*!****************************************************************!*\ |
| 2150 | 2361 | !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***! |
| 2151 | 2362 | \****************************************************************/ |
| @@ -2150,11 +2361,14 @@ | ||
| 2150 | 2361 | !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***! |
| 2151 | 2362 | \****************************************************************/ |
| 2152 | 2363 | /***/ ((module) => { |
| 2153 | 2364 | |
| 2154 | -function _classCallCheck(a, n) { | |
| 2155 | - if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); | |
| 2365 | +function _classCallCheck(instance, Constructor) { | |
| 2366 | + if (!(instance instanceof Constructor)) { | |
| 2367 | + throw new TypeError("Cannot call a class as a function"); | |
| 2368 | + } | |
| 2156 | 2369 | } |
| 2370 | + | |
| 2157 | 2371 | module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2158 | 2372 | |
| 2159 | 2373 | /***/ }), |
| 2160 | 2374 | |
| @@ -2163,17 +2377,29 @@ | ||
| 2163 | 2377 | !*** ../node_modules/@babel/runtime/helpers/construct.js ***! |
| 2164 | 2378 | \***********************************************************/ |
| 2165 | 2379 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 2166 | 2380 | |
| 2381 | +var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js"); | |
| 2382 | + | |
| 2167 | 2383 | var isNativeReflectConstruct = __webpack_require__(/*! ./isNativeReflectConstruct.js */ "../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js"); |
| 2168 | -var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js"); | |
| 2169 | -function _construct(t, e, r) { | |
| 2170 | - if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments); | |
| 2171 | - var o = [null]; | |
| 2172 | - o.push.apply(o, e); | |
| 2173 | - var p = new (t.bind.apply(t, o))(); | |
| 2174 | - return r && setPrototypeOf(p, r.prototype), p; | |
| 2384 | + | |
| 2385 | +function _construct(Parent, args, Class) { | |
| 2386 | + if (isNativeReflectConstruct()) { | |
| 2387 | + module.exports = _construct = Reflect.construct.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2388 | + } else { | |
| 2389 | + module.exports = _construct = function _construct(Parent, args, Class) { | |
| 2390 | + var a = [null]; | |
| 2391 | + a.push.apply(a, args); | |
| 2392 | + var Constructor = Function.bind.apply(Parent, a); | |
| 2393 | + var instance = new Constructor(); | |
| 2394 | + if (Class) setPrototypeOf(instance, Class.prototype); | |
| 2395 | + return instance; | |
| 2396 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2397 | + } | |
| 2398 | + | |
| 2399 | + return _construct.apply(null, arguments); | |
| 2175 | 2400 | } |
| 2401 | + | |
| 2176 | 2402 | module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2177 | 2403 | |
| 2178 | 2404 | /***/ }), |
| 2179 | 2405 | |
| @@ -2180,22 +2406,29 @@ | ||
| 2180 | 2406 | /***/ "../node_modules/@babel/runtime/helpers/createClass.js": |
| 2181 | 2407 | /*!*************************************************************!*\ |
| 2182 | 2408 | !*** ../node_modules/@babel/runtime/helpers/createClass.js ***! |
| 2183 | 2409 | \*************************************************************/ |
| 2184 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2410 | +/***/ ((module) => { | |
| 2185 | 2411 | |
| 2186 | -var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); | |
| 2187 | -function _defineProperties(e, r) { | |
| 2188 | - for (var t = 0; t < r.length; t++) { | |
| 2189 | - var o = r[t]; | |
| 2190 | - o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o); | |
| 2412 | +function _defineProperties(target, props) { | |
| 2413 | + for (var i = 0; i < props.length; i++) { | |
| 2414 | + var descriptor = props[i]; | |
| 2415 | + descriptor.enumerable = descriptor.enumerable || false; | |
| 2416 | + descriptor.configurable = true; | |
| 2417 | + if ("value" in descriptor) descriptor.writable = true; | |
| 2418 | + Object.defineProperty(target, descriptor.key, descriptor); | |
| 2191 | 2419 | } |
| 2192 | 2420 | } |
| 2193 | -function _createClass(e, r, t) { | |
| 2194 | - return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { | |
| 2195 | - writable: !1 | |
| 2196 | - }), e; | |
| 2421 | + | |
| 2422 | +function _createClass(Constructor, protoProps, staticProps) { | |
| 2423 | + if (protoProps) _defineProperties(Constructor.prototype, protoProps); | |
| 2424 | + if (staticProps) _defineProperties(Constructor, staticProps); | |
| 2425 | + Object.defineProperty(Constructor, "prototype", { | |
| 2426 | + writable: false | |
| 2427 | + }); | |
| 2428 | + return Constructor; | |
| 2197 | 2429 | } |
| 2430 | + | |
| 2198 | 2431 | module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2199 | 2432 | |
| 2200 | 2433 | /***/ }), |
| 2201 | 2434 | |
| @@ -2202,19 +2435,25 @@ | ||
| 2202 | 2435 | /***/ "../node_modules/@babel/runtime/helpers/defineProperty.js": |
| 2203 | 2436 | /*!****************************************************************!*\ |
| 2204 | 2437 | !*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***! |
| 2205 | 2438 | \****************************************************************/ |
| 2206 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2439 | +/***/ ((module) => { | |
| 2207 | 2440 | |
| 2208 | -var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); | |
| 2209 | -function _defineProperty(e, r, t) { | |
| 2210 | - return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, { | |
| 2211 | - value: t, | |
| 2212 | - enumerable: !0, | |
| 2213 | - configurable: !0, | |
| 2214 | - writable: !0 | |
| 2215 | - }) : e[r] = t, e; | |
| 2441 | +function _defineProperty(obj, key, value) { | |
| 2442 | + if (key in obj) { | |
| 2443 | + Object.defineProperty(obj, key, { | |
| 2444 | + value: value, | |
| 2445 | + enumerable: true, | |
| 2446 | + configurable: true, | |
| 2447 | + writable: true | |
| 2448 | + }); | |
| 2449 | + } else { | |
| 2450 | + obj[key] = value; | |
| 2451 | + } | |
| 2452 | + | |
| 2453 | + return obj; | |
| 2216 | 2454 | } |
| 2455 | + | |
| 2217 | 2456 | module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2218 | 2457 | |
| 2219 | 2458 | /***/ }), |
| 2220 | 2459 | |
| @@ -2224,17 +2463,29 @@ | ||
| 2224 | 2463 | \*****************************************************/ |
| 2225 | 2464 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 2226 | 2465 | |
| 2227 | 2466 | var superPropBase = __webpack_require__(/*! ./superPropBase.js */ "../node_modules/@babel/runtime/helpers/superPropBase.js"); |
| 2467 | + | |
| 2228 | 2468 | function _get() { |
| 2229 | - return module.exports = _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { | |
| 2230 | - var p = superPropBase(e, t); | |
| 2231 | - if (p) { | |
| 2232 | - var n = Object.getOwnPropertyDescriptor(p, t); | |
| 2233 | - return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; | |
| 2234 | - } | |
| 2235 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _get.apply(null, arguments); | |
| 2469 | + if (typeof Reflect !== "undefined" && Reflect.get) { | |
| 2470 | + module.exports = _get = Reflect.get.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2471 | + } else { | |
| 2472 | + module.exports = _get = function _get(target, property, receiver) { | |
| 2473 | + var base = superPropBase(target, property); | |
| 2474 | + if (!base) return; | |
| 2475 | + var desc = Object.getOwnPropertyDescriptor(base, property); | |
| 2476 | + | |
| 2477 | + if (desc.get) { | |
| 2478 | + return desc.get.call(arguments.length < 3 ? target : receiver); | |
| 2479 | + } | |
| 2480 | + | |
| 2481 | + return desc.value; | |
| 2482 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2483 | + } | |
| 2484 | + | |
| 2485 | + return _get.apply(this, arguments); | |
| 2236 | 2486 | } |
| 2487 | + | |
| 2237 | 2488 | module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2238 | 2489 | |
| 2239 | 2490 | /***/ }), |
| 2240 | 2491 | |
| @@ -2243,13 +2494,15 @@ | ||
| 2243 | 2494 | !*** ../node_modules/@babel/runtime/helpers/getPrototypeOf.js ***! |
| 2244 | 2495 | \****************************************************************/ |
| 2245 | 2496 | /***/ ((module) => { |
| 2246 | 2497 | |
| 2247 | -function _getPrototypeOf(t) { | |
| 2248 | - return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { | |
| 2249 | - return t.__proto__ || Object.getPrototypeOf(t); | |
| 2250 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _getPrototypeOf(t); | |
| 2498 | +function _getPrototypeOf(o) { | |
| 2499 | + module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { | |
| 2500 | + return o.__proto__ || Object.getPrototypeOf(o); | |
| 2501 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2502 | + return _getPrototypeOf(o); | |
| 2251 | 2503 | } |
| 2504 | + | |
| 2252 | 2505 | module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2253 | 2506 | |
| 2254 | 2507 | /***/ }), |
| 2255 | 2508 | |
| @@ -2259,20 +2512,27 @@ | ||
| 2259 | 2512 | \**********************************************************/ |
| 2260 | 2513 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 2261 | 2514 | |
| 2262 | 2515 | var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js"); |
| 2263 | -function _inherits(t, e) { | |
| 2264 | - if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); | |
| 2265 | - t.prototype = Object.create(e && e.prototype, { | |
| 2516 | + | |
| 2517 | +function _inherits(subClass, superClass) { | |
| 2518 | + if (typeof superClass !== "function" && superClass !== null) { | |
| 2519 | + throw new TypeError("Super expression must either be null or a function"); | |
| 2520 | + } | |
| 2521 | + | |
| 2522 | + subClass.prototype = Object.create(superClass && superClass.prototype, { | |
| 2266 | 2523 | constructor: { |
| 2267 | - value: t, | |
| 2268 | - writable: !0, | |
| 2269 | - configurable: !0 | |
| 2524 | + value: subClass, | |
| 2525 | + writable: true, | |
| 2526 | + configurable: true | |
| 2270 | 2527 | } |
| 2271 | - }), Object.defineProperty(t, "prototype", { | |
| 2272 | - writable: !1 | |
| 2273 | - }), e && setPrototypeOf(t, e); | |
| 2528 | + }); | |
| 2529 | + Object.defineProperty(subClass, "prototype", { | |
| 2530 | + writable: false | |
| 2531 | + }); | |
| 2532 | + if (superClass) setPrototypeOf(subClass, superClass); | |
| 2274 | 2533 | } |
| 2534 | + | |
| 2275 | 2535 | module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2276 | 2536 | |
| 2277 | 2537 | /***/ }), |
| 2278 | 2538 | |
| @@ -2281,13 +2541,14 @@ | ||
| 2281 | 2541 | !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***! |
| 2282 | 2542 | \***********************************************************************/ |
| 2283 | 2543 | /***/ ((module) => { |
| 2284 | 2544 | |
| 2285 | -function _interopRequireDefault(e) { | |
| 2286 | - return e && e.__esModule ? e : { | |
| 2287 | - "default": e | |
| 2545 | +function _interopRequireDefault(obj) { | |
| 2546 | + return obj && obj.__esModule ? obj : { | |
| 2547 | + "default": obj | |
| 2288 | 2548 | }; |
| 2289 | 2549 | } |
| 2550 | + | |
| 2290 | 2551 | module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2291 | 2552 | |
| 2292 | 2553 | /***/ }), |
| 2293 | 2554 | |
| @@ -2296,15 +2557,12 @@ | ||
| 2296 | 2557 | !*** ../node_modules/@babel/runtime/helpers/isNativeFunction.js ***! |
| 2297 | 2558 | \******************************************************************/ |
| 2298 | 2559 | /***/ ((module) => { |
| 2299 | 2560 | |
| 2300 | -function _isNativeFunction(t) { | |
| 2301 | - try { | |
| 2302 | - return -1 !== Function.toString.call(t).indexOf("[native code]"); | |
| 2303 | - } catch (n) { | |
| 2304 | - return "function" == typeof t; | |
| 2305 | - } | |
| 2561 | +function _isNativeFunction(fn) { | |
| 2562 | + return Function.toString.call(fn).indexOf("[native code]") !== -1; | |
| 2306 | 2563 | } |
| 2564 | + | |
| 2307 | 2565 | module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2308 | 2566 | |
| 2309 | 2567 | /***/ }), |
| 2310 | 2568 | |
| @@ -2314,15 +2572,20 @@ | ||
| 2314 | 2572 | \**************************************************************************/ |
| 2315 | 2573 | /***/ ((module) => { |
| 2316 | 2574 | |
| 2317 | 2575 | function _isNativeReflectConstruct() { |
| 2576 | + if (typeof Reflect === "undefined" || !Reflect.construct) return false; | |
| 2577 | + if (Reflect.construct.sham) return false; | |
| 2578 | + if (typeof Proxy === "function") return true; | |
| 2579 | + | |
| 2318 | 2580 | try { |
| 2319 | - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); | |
| 2320 | - } catch (t) {} | |
| 2321 | - return (module.exports = _isNativeReflectConstruct = function _isNativeReflectConstruct() { | |
| 2322 | - return !!t; | |
| 2323 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports)(); | |
| 2581 | + Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); | |
| 2582 | + return true; | |
| 2583 | + } catch (e) { | |
| 2584 | + return false; | |
| 2585 | + } | |
| 2324 | 2586 | } |
| 2587 | + | |
| 2325 | 2588 | module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2326 | 2589 | |
| 2327 | 2590 | /***/ }), |
| 2328 | 2591 | |
| @@ -2331,35 +2594,38 @@ | ||
| 2331 | 2594 | !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***! |
| 2332 | 2595 | \**********************************************************************/ |
| 2333 | 2596 | /***/ ((module) => { |
| 2334 | 2597 | |
| 2335 | -function _iterableToArrayLimit(r, l) { | |
| 2336 | - var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; | |
| 2337 | - if (null != t) { | |
| 2338 | - var e, | |
| 2339 | - n, | |
| 2340 | - i, | |
| 2341 | - u, | |
| 2342 | - a = [], | |
| 2343 | - f = !0, | |
| 2344 | - o = !1; | |
| 2598 | +function _iterableToArrayLimit(arr, i) { | |
| 2599 | + var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; | |
| 2600 | + | |
| 2601 | + if (_i == null) return; | |
| 2602 | + var _arr = []; | |
| 2603 | + var _n = true; | |
| 2604 | + var _d = false; | |
| 2605 | + | |
| 2606 | + var _s, _e; | |
| 2607 | + | |
| 2608 | + try { | |
| 2609 | + for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { | |
| 2610 | + _arr.push(_s.value); | |
| 2611 | + | |
| 2612 | + if (i && _arr.length === i) break; | |
| 2613 | + } | |
| 2614 | + } catch (err) { | |
| 2615 | + _d = true; | |
| 2616 | + _e = err; | |
| 2617 | + } finally { | |
| 2345 | 2618 | try { |
| 2346 | - if (i = (t = t.call(r)).next, 0 === l) { | |
| 2347 | - if (Object(t) !== t) return; | |
| 2348 | - f = !1; | |
| 2349 | - } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); | |
| 2350 | - } catch (r) { | |
| 2351 | - o = !0, n = r; | |
| 2619 | + if (!_n && _i["return"] != null) _i["return"](); | |
| 2352 | 2620 | } finally { |
| 2353 | - try { | |
| 2354 | - if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; | |
| 2355 | - } finally { | |
| 2356 | - if (o) throw n; | |
| 2357 | - } | |
| 2621 | + if (_d) throw _e; | |
| 2358 | 2622 | } |
| 2359 | - return a; | |
| 2360 | 2623 | } |
| 2624 | + | |
| 2625 | + return _arr; | |
| 2361 | 2626 | } |
| 2627 | + | |
| 2362 | 2628 | module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2363 | 2629 | |
| 2364 | 2630 | /***/ }), |
| 2365 | 2631 | |
| @@ -2371,8 +2637,9 @@ | ||
| 2371 | 2637 | |
| 2372 | 2638 | function _nonIterableRest() { |
| 2373 | 2639 | throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); |
| 2374 | 2640 | } |
| 2641 | + | |
| 2375 | 2642 | module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2376 | 2643 | |
| 2377 | 2644 | /***/ }), |
| 2378 | 2645 | |
| @@ -2382,367 +2649,25 @@ | ||
| 2382 | 2649 | \***************************************************************************/ |
| 2383 | 2650 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 2384 | 2651 | |
| 2385 | 2652 | var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); |
| 2653 | + | |
| 2386 | 2654 | var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js"); |
| 2387 | -function _possibleConstructorReturn(t, e) { | |
| 2388 | - if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; | |
| 2389 | - if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); | |
| 2390 | - return assertThisInitialized(t); | |
| 2391 | -} | |
| 2392 | -module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2393 | 2655 | |
| 2394 | -/***/ }), | |
| 2395 | - | |
| 2396 | -/***/ "../node_modules/@babel/runtime/helpers/readOnlyError.js": | |
| 2397 | -/*!***************************************************************!*\ | |
| 2398 | - !*** ../node_modules/@babel/runtime/helpers/readOnlyError.js ***! | |
| 2399 | - \***************************************************************/ | |
| 2400 | -/***/ ((module) => { | |
| 2401 | - | |
| 2402 | -function _readOnlyError(r) { | |
| 2403 | - throw new TypeError('"' + r + '" is read-only'); | |
| 2404 | -} | |
| 2405 | -module.exports = _readOnlyError, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2406 | - | |
| 2407 | -/***/ }), | |
| 2408 | - | |
| 2409 | -/***/ "../node_modules/@babel/runtime/helpers/regenerator.js": | |
| 2410 | -/*!*************************************************************!*\ | |
| 2411 | - !*** ../node_modules/@babel/runtime/helpers/regenerator.js ***! | |
| 2412 | - \*************************************************************/ | |
| 2413 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2414 | - | |
| 2415 | -var regeneratorDefine = __webpack_require__(/*! ./regeneratorDefine.js */ "../node_modules/@babel/runtime/helpers/regeneratorDefine.js"); | |
| 2416 | -function _regenerator() { | |
| 2417 | - /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ | |
| 2418 | - var e, | |
| 2419 | - t, | |
| 2420 | - r = "function" == typeof Symbol ? Symbol : {}, | |
| 2421 | - n = r.iterator || "@@iterator", | |
| 2422 | - o = r.toStringTag || "@@toStringTag"; | |
| 2423 | - function i(r, n, o, i) { | |
| 2424 | - var c = n && n.prototype instanceof Generator ? n : Generator, | |
| 2425 | - u = Object.create(c.prototype); | |
| 2426 | - return regeneratorDefine(u, "_invoke", function (r, n, o) { | |
| 2427 | - var i, | |
| 2428 | - c, | |
| 2429 | - u, | |
| 2430 | - f = 0, | |
| 2431 | - p = o || [], | |
| 2432 | - y = !1, | |
| 2433 | - G = { | |
| 2434 | - p: 0, | |
| 2435 | - n: 0, | |
| 2436 | - v: e, | |
| 2437 | - a: d, | |
| 2438 | - f: d.bind(e, 4), | |
| 2439 | - d: function d(t, r) { | |
| 2440 | - return i = t, c = 0, u = e, G.n = r, a; | |
| 2441 | - } | |
| 2442 | - }; | |
| 2443 | - function d(r, n) { | |
| 2444 | - for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { | |
| 2445 | - var o, | |
| 2446 | - i = p[t], | |
| 2447 | - d = G.p, | |
| 2448 | - l = i[2]; | |
| 2449 | - 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)); | |
| 2450 | - } | |
| 2451 | - if (o || r > 1) return a; | |
| 2452 | - throw y = !0, n; | |
| 2453 | - } | |
| 2454 | - return function (o, p, l) { | |
| 2455 | - if (f > 1) throw TypeError("Generator is already running"); | |
| 2456 | - for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { | |
| 2457 | - i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); | |
| 2458 | - try { | |
| 2459 | - if (f = 2, i) { | |
| 2460 | - if (c || (o = "next"), t = i[o]) { | |
| 2461 | - if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); | |
| 2462 | - if (!t.done) return t; | |
| 2463 | - u = t.value, c < 2 && (c = 0); | |
| 2464 | - } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); | |
| 2465 | - i = e; | |
| 2466 | - } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; | |
| 2467 | - } catch (t) { | |
| 2468 | - i = e, c = 1, u = t; | |
| 2469 | - } finally { | |
| 2470 | - f = 1; | |
| 2471 | - } | |
| 2472 | - } | |
| 2473 | - return { | |
| 2474 | - value: t, | |
| 2475 | - done: y | |
| 2476 | - }; | |
| 2477 | - }; | |
| 2478 | - }(r, o, i), !0), u; | |
| 2656 | +function _possibleConstructorReturn(self, call) { | |
| 2657 | + if (call && (_typeof(call) === "object" || typeof call === "function")) { | |
| 2658 | + return call; | |
| 2659 | + } else if (call !== void 0) { | |
| 2660 | + throw new TypeError("Derived constructors may only return object or undefined"); | |
| 2479 | 2661 | } |
| 2480 | - var a = {}; | |
| 2481 | - function Generator() {} | |
| 2482 | - function GeneratorFunction() {} | |
| 2483 | - function GeneratorFunctionPrototype() {} | |
| 2484 | - t = Object.getPrototypeOf; | |
| 2485 | - var c = [][n] ? t(t([][n]())) : (regeneratorDefine(t = {}, n, function () { | |
| 2486 | - return this; | |
| 2487 | - }), t), | |
| 2488 | - u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); | |
| 2489 | - function f(e) { | |
| 2490 | - return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; | |
| 2491 | - } | |
| 2492 | - 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 () { | |
| 2493 | - return this; | |
| 2494 | - }), regeneratorDefine(u, "toString", function () { | |
| 2495 | - return "[object Generator]"; | |
| 2496 | - }), (module.exports = _regenerator = function _regenerator() { | |
| 2497 | - return { | |
| 2498 | - w: i, | |
| 2499 | - m: f | |
| 2500 | - }; | |
| 2501 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports)(); | |
| 2502 | -} | |
| 2503 | -module.exports = _regenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2504 | 2662 | |
| 2505 | -/***/ }), | |
| 2506 | - | |
| 2507 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorAsync.js": | |
| 2508 | -/*!******************************************************************!*\ | |
| 2509 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorAsync.js ***! | |
| 2510 | - \******************************************************************/ | |
| 2511 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2512 | - | |
| 2513 | -var regeneratorAsyncGen = __webpack_require__(/*! ./regeneratorAsyncGen.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js"); | |
| 2514 | -function _regeneratorAsync(n, e, r, t, o) { | |
| 2515 | - var a = regeneratorAsyncGen(n, e, r, t, o); | |
| 2516 | - return a.next().then(function (n) { | |
| 2517 | - return n.done ? n.value : a.next(); | |
| 2518 | - }); | |
| 2663 | + return assertThisInitialized(self); | |
| 2519 | 2664 | } |
| 2520 | -module.exports = _regeneratorAsync, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2521 | 2665 | |
| 2522 | -/***/ }), | |
| 2666 | +module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2523 | 2667 | |
| 2524 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js": | |
| 2525 | -/*!*********************************************************************!*\ | |
| 2526 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js ***! | |
| 2527 | - \*********************************************************************/ | |
| 2528 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2529 | - | |
| 2530 | -var regenerator = __webpack_require__(/*! ./regenerator.js */ "../node_modules/@babel/runtime/helpers/regenerator.js"); | |
| 2531 | -var regeneratorAsyncIterator = __webpack_require__(/*! ./regeneratorAsyncIterator.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js"); | |
| 2532 | -function _regeneratorAsyncGen(r, e, t, o, n) { | |
| 2533 | - return new regeneratorAsyncIterator(regenerator().w(r, e, t, o), n || Promise); | |
| 2534 | -} | |
| 2535 | -module.exports = _regeneratorAsyncGen, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2536 | - | |
| 2537 | 2668 | /***/ }), |
| 2538 | 2669 | |
| 2539 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js": | |
| 2540 | -/*!**************************************************************************!*\ | |
| 2541 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js ***! | |
| 2542 | - \**************************************************************************/ | |
| 2543 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2544 | - | |
| 2545 | -var OverloadYield = __webpack_require__(/*! ./OverloadYield.js */ "../node_modules/@babel/runtime/helpers/OverloadYield.js"); | |
| 2546 | -var regeneratorDefine = __webpack_require__(/*! ./regeneratorDefine.js */ "../node_modules/@babel/runtime/helpers/regeneratorDefine.js"); | |
| 2547 | -function AsyncIterator(t, e) { | |
| 2548 | - function n(r, o, i, f) { | |
| 2549 | - try { | |
| 2550 | - var c = t[r](o), | |
| 2551 | - u = c.value; | |
| 2552 | - return u instanceof OverloadYield ? e.resolve(u.v).then(function (t) { | |
| 2553 | - n("next", t, i, f); | |
| 2554 | - }, function (t) { | |
| 2555 | - n("throw", t, i, f); | |
| 2556 | - }) : e.resolve(u).then(function (t) { | |
| 2557 | - c.value = t, i(c); | |
| 2558 | - }, function (t) { | |
| 2559 | - return n("throw", t, i, f); | |
| 2560 | - }); | |
| 2561 | - } catch (t) { | |
| 2562 | - f(t); | |
| 2563 | - } | |
| 2564 | - } | |
| 2565 | - var r; | |
| 2566 | - this.next || (regeneratorDefine(AsyncIterator.prototype), regeneratorDefine(AsyncIterator.prototype, "function" == typeof Symbol && Symbol.asyncIterator || "@asyncIterator", function () { | |
| 2567 | - return this; | |
| 2568 | - })), regeneratorDefine(this, "_invoke", function (t, o, i) { | |
| 2569 | - function f() { | |
| 2570 | - return new e(function (e, r) { | |
| 2571 | - n(t, i, e, r); | |
| 2572 | - }); | |
| 2573 | - } | |
| 2574 | - return r = r ? r.then(f, f) : f(); | |
| 2575 | - }, !0); | |
| 2576 | -} | |
| 2577 | -module.exports = AsyncIterator, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2578 | - | |
| 2579 | -/***/ }), | |
| 2580 | - | |
| 2581 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorDefine.js": | |
| 2582 | -/*!*******************************************************************!*\ | |
| 2583 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorDefine.js ***! | |
| 2584 | - \*******************************************************************/ | |
| 2585 | -/***/ ((module) => { | |
| 2586 | - | |
| 2587 | -function _regeneratorDefine(e, r, n, t) { | |
| 2588 | - var i = Object.defineProperty; | |
| 2589 | - try { | |
| 2590 | - i({}, "", {}); | |
| 2591 | - } catch (e) { | |
| 2592 | - i = 0; | |
| 2593 | - } | |
| 2594 | - module.exports = _regeneratorDefine = function regeneratorDefine(e, r, n, t) { | |
| 2595 | - function o(r, n) { | |
| 2596 | - _regeneratorDefine(e, r, function (e) { | |
| 2597 | - return this._invoke(r, n, e); | |
| 2598 | - }); | |
| 2599 | - } | |
| 2600 | - r ? i ? i(e, r, { | |
| 2601 | - value: n, | |
| 2602 | - enumerable: !t, | |
| 2603 | - configurable: !t, | |
| 2604 | - writable: !t | |
| 2605 | - }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); | |
| 2606 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _regeneratorDefine(e, r, n, t); | |
| 2607 | -} | |
| 2608 | -module.exports = _regeneratorDefine, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2609 | - | |
| 2610 | -/***/ }), | |
| 2611 | - | |
| 2612 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorKeys.js": | |
| 2613 | -/*!*****************************************************************!*\ | |
| 2614 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorKeys.js ***! | |
| 2615 | - \*****************************************************************/ | |
| 2616 | -/***/ ((module) => { | |
| 2617 | - | |
| 2618 | -function _regeneratorKeys(e) { | |
| 2619 | - var n = Object(e), | |
| 2620 | - r = []; | |
| 2621 | - for (var t in n) r.unshift(t); | |
| 2622 | - return function e() { | |
| 2623 | - for (; r.length;) if ((t = r.pop()) in n) return e.value = t, e.done = !1, e; | |
| 2624 | - return e.done = !0, e; | |
| 2625 | - }; | |
| 2626 | -} | |
| 2627 | -module.exports = _regeneratorKeys, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2628 | - | |
| 2629 | -/***/ }), | |
| 2630 | - | |
| 2631 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorRuntime.js": | |
| 2632 | -/*!********************************************************************!*\ | |
| 2633 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorRuntime.js ***! | |
| 2634 | - \********************************************************************/ | |
| 2635 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2636 | - | |
| 2637 | -var OverloadYield = __webpack_require__(/*! ./OverloadYield.js */ "../node_modules/@babel/runtime/helpers/OverloadYield.js"); | |
| 2638 | -var regenerator = __webpack_require__(/*! ./regenerator.js */ "../node_modules/@babel/runtime/helpers/regenerator.js"); | |
| 2639 | -var regeneratorAsync = __webpack_require__(/*! ./regeneratorAsync.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsync.js"); | |
| 2640 | -var regeneratorAsyncGen = __webpack_require__(/*! ./regeneratorAsyncGen.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js"); | |
| 2641 | -var regeneratorAsyncIterator = __webpack_require__(/*! ./regeneratorAsyncIterator.js */ "../node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js"); | |
| 2642 | -var regeneratorKeys = __webpack_require__(/*! ./regeneratorKeys.js */ "../node_modules/@babel/runtime/helpers/regeneratorKeys.js"); | |
| 2643 | -var regeneratorValues = __webpack_require__(/*! ./regeneratorValues.js */ "../node_modules/@babel/runtime/helpers/regeneratorValues.js"); | |
| 2644 | -function _regeneratorRuntime() { | |
| 2645 | - "use strict"; | |
| 2646 | - | |
| 2647 | - var r = regenerator(), | |
| 2648 | - e = r.m(_regeneratorRuntime), | |
| 2649 | - t = (Object.getPrototypeOf ? Object.getPrototypeOf(e) : e.__proto__).constructor; | |
| 2650 | - function n(r) { | |
| 2651 | - var e = "function" == typeof r && r.constructor; | |
| 2652 | - return !!e && (e === t || "GeneratorFunction" === (e.displayName || e.name)); | |
| 2653 | - } | |
| 2654 | - var o = { | |
| 2655 | - "throw": 1, | |
| 2656 | - "return": 2, | |
| 2657 | - "break": 3, | |
| 2658 | - "continue": 3 | |
| 2659 | - }; | |
| 2660 | - function a(r) { | |
| 2661 | - var e, t; | |
| 2662 | - return function (n) { | |
| 2663 | - e || (e = { | |
| 2664 | - stop: function stop() { | |
| 2665 | - return t(n.a, 2); | |
| 2666 | - }, | |
| 2667 | - "catch": function _catch() { | |
| 2668 | - return n.v; | |
| 2669 | - }, | |
| 2670 | - abrupt: function abrupt(r, e) { | |
| 2671 | - return t(n.a, o[r], e); | |
| 2672 | - }, | |
| 2673 | - delegateYield: function delegateYield(r, o, a) { | |
| 2674 | - return e.resultName = o, t(n.d, regeneratorValues(r), a); | |
| 2675 | - }, | |
| 2676 | - finish: function finish(r) { | |
| 2677 | - return t(n.f, r); | |
| 2678 | - } | |
| 2679 | - }, t = function t(r, _t, o) { | |
| 2680 | - n.p = e.prev, n.n = e.next; | |
| 2681 | - try { | |
| 2682 | - return r(_t, o); | |
| 2683 | - } finally { | |
| 2684 | - e.next = n.n; | |
| 2685 | - } | |
| 2686 | - }), e.resultName && (e[e.resultName] = n.v, e.resultName = void 0), e.sent = n.v, e.next = n.n; | |
| 2687 | - try { | |
| 2688 | - return r.call(this, e); | |
| 2689 | - } finally { | |
| 2690 | - n.p = e.prev, n.n = e.next; | |
| 2691 | - } | |
| 2692 | - }; | |
| 2693 | - } | |
| 2694 | - return (module.exports = _regeneratorRuntime = function _regeneratorRuntime() { | |
| 2695 | - return { | |
| 2696 | - wrap: function wrap(e, t, n, o) { | |
| 2697 | - return r.w(a(e), t, n, o && o.reverse()); | |
| 2698 | - }, | |
| 2699 | - isGeneratorFunction: n, | |
| 2700 | - mark: r.m, | |
| 2701 | - awrap: function awrap(r, e) { | |
| 2702 | - return new OverloadYield(r, e); | |
| 2703 | - }, | |
| 2704 | - AsyncIterator: regeneratorAsyncIterator, | |
| 2705 | - async: function async(r, e, t, o, u) { | |
| 2706 | - return (n(e) ? regeneratorAsyncGen : regeneratorAsync)(a(r), e, t, o, u); | |
| 2707 | - }, | |
| 2708 | - keys: regeneratorKeys, | |
| 2709 | - values: regeneratorValues | |
| 2710 | - }; | |
| 2711 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports)(); | |
| 2712 | -} | |
| 2713 | -module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2714 | - | |
| 2715 | -/***/ }), | |
| 2716 | - | |
| 2717 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorValues.js": | |
| 2718 | -/*!*******************************************************************!*\ | |
| 2719 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorValues.js ***! | |
| 2720 | - \*******************************************************************/ | |
| 2721 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2722 | - | |
| 2723 | -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 2724 | -function _regeneratorValues(e) { | |
| 2725 | - if (null != e) { | |
| 2726 | - var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"], | |
| 2727 | - r = 0; | |
| 2728 | - if (t) return t.call(e); | |
| 2729 | - if ("function" == typeof e.next) return e; | |
| 2730 | - if (!isNaN(e.length)) return { | |
| 2731 | - next: function next() { | |
| 2732 | - return e && r >= e.length && (e = void 0), { | |
| 2733 | - value: e && e[r++], | |
| 2734 | - done: !e | |
| 2735 | - }; | |
| 2736 | - } | |
| 2737 | - }; | |
| 2738 | - } | |
| 2739 | - throw new TypeError(_typeof(e) + " is not iterable"); | |
| 2740 | -} | |
| 2741 | -module.exports = _regeneratorValues, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2742 | - | |
| 2743 | -/***/ }), | |
| 2744 | - | |
| 2745 | 2670 | /***/ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js": |
| 2746 | 2671 | /*!****************************************************************!*\ |
| 2747 | 2672 | !*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***! |
| 2748 | 2673 | \****************************************************************/ |
| @@ -2747,13 +2672,16 @@ | ||
| 2747 | 2672 | !*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***! |
| 2748 | 2673 | \****************************************************************/ |
| 2749 | 2674 | /***/ ((module) => { |
| 2750 | 2675 | |
| 2751 | -function _setPrototypeOf(t, e) { | |
| 2752 | - return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { | |
| 2753 | - return t.__proto__ = e, t; | |
| 2754 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _setPrototypeOf(t, e); | |
| 2676 | +function _setPrototypeOf(o, p) { | |
| 2677 | + module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { | |
| 2678 | + o.__proto__ = p; | |
| 2679 | + return o; | |
| 2680 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2681 | + return _setPrototypeOf(o, p); | |
| 2755 | 2682 | } |
| 2683 | + | |
| 2756 | 2684 | module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2757 | 2685 | |
| 2758 | 2686 | /***/ }), |
| 2759 | 2687 | |
| @@ -2763,14 +2691,19 @@ | ||
| 2763 | 2691 | \***************************************************************/ |
| 2764 | 2692 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 2765 | 2693 | |
| 2766 | 2694 | var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js"); |
| 2695 | + | |
| 2767 | 2696 | var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js"); |
| 2697 | + | |
| 2768 | 2698 | var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"); |
| 2699 | + | |
| 2769 | 2700 | var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js"); |
| 2770 | -function _slicedToArray(r, e) { | |
| 2771 | - return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest(); | |
| 2701 | + | |
| 2702 | +function _slicedToArray(arr, i) { | |
| 2703 | + return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest(); | |
| 2772 | 2704 | } |
| 2705 | + | |
| 2773 | 2706 | module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2774 | 2707 | |
| 2775 | 2708 | /***/ }), |
| 2776 | 2709 | |
| @@ -2780,51 +2713,20 @@ | ||
| 2780 | 2713 | \***************************************************************/ |
| 2781 | 2714 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 2782 | 2715 | |
| 2783 | 2716 | var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"); |
| 2784 | -function _superPropBase(t, o) { | |
| 2785 | - for (; !{}.hasOwnProperty.call(t, o) && null !== (t = getPrototypeOf(t));); | |
| 2786 | - return t; | |
| 2787 | -} | |
| 2788 | -module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2789 | 2717 | |
| 2790 | -/***/ }), | |
| 2718 | +function _superPropBase(object, property) { | |
| 2719 | + while (!Object.prototype.hasOwnProperty.call(object, property)) { | |
| 2720 | + object = getPrototypeOf(object); | |
| 2721 | + if (object === null) break; | |
| 2722 | + } | |
| 2791 | 2723 | |
| 2792 | -/***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js": | |
| 2793 | -/*!*************************************************************!*\ | |
| 2794 | - !*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***! | |
| 2795 | - \*************************************************************/ | |
| 2796 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2797 | - | |
| 2798 | -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 2799 | -function toPrimitive(t, r) { | |
| 2800 | - if ("object" != _typeof(t) || !t) return t; | |
| 2801 | - var e = t[Symbol.toPrimitive]; | |
| 2802 | - if (void 0 !== e) { | |
| 2803 | - var i = e.call(t, r || "default"); | |
| 2804 | - if ("object" != _typeof(i)) return i; | |
| 2805 | - throw new TypeError("@@toPrimitive must return a primitive value."); | |
| 2806 | - } | |
| 2807 | - return ("string" === r ? String : Number)(t); | |
| 2724 | + return object; | |
| 2808 | 2725 | } |
| 2809 | -module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2810 | 2726 | |
| 2811 | -/***/ }), | |
| 2727 | +module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2812 | 2728 | |
| 2813 | -/***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js": | |
| 2814 | -/*!***************************************************************!*\ | |
| 2815 | - !*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***! | |
| 2816 | - \***************************************************************/ | |
| 2817 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2818 | - | |
| 2819 | -var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 2820 | -var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js"); | |
| 2821 | -function toPropertyKey(t) { | |
| 2822 | - var i = toPrimitive(t, "string"); | |
| 2823 | - return "symbol" == _typeof(i) ? i : i + ""; | |
| 2824 | -} | |
| 2825 | -module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2826 | - | |
| 2827 | 2729 | /***/ }), |
| 2828 | 2730 | |
| 2829 | 2731 | /***/ "../node_modules/@babel/runtime/helpers/typeof.js": |
| 2830 | 2732 | /*!********************************************************!*\ |
| @@ -2831,17 +2733,18 @@ | ||
| 2831 | 2733 | !*** ../node_modules/@babel/runtime/helpers/typeof.js ***! |
| 2832 | 2734 | \********************************************************/ |
| 2833 | 2735 | /***/ ((module) => { |
| 2834 | 2736 | |
| 2835 | -function _typeof(o) { | |
| 2737 | +function _typeof(obj) { | |
| 2836 | 2738 | "@babel/helpers - typeof"; |
| 2837 | 2739 | |
| 2838 | - return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { | |
| 2839 | - return typeof o; | |
| 2840 | - } : function (o) { | |
| 2841 | - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; | |
| 2842 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o); | |
| 2740 | + return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { | |
| 2741 | + return typeof obj; | |
| 2742 | + } : function (obj) { | |
| 2743 | + return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; | |
| 2744 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj); | |
| 2843 | 2745 | } |
| 2746 | + | |
| 2844 | 2747 | module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2845 | 2748 | |
| 2846 | 2749 | /***/ }), |
| 2847 | 2750 | |
| @@ -2851,15 +2754,18 @@ | ||
| 2851 | 2754 | \****************************************************************************/ |
| 2852 | 2755 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 2853 | 2756 | |
| 2854 | 2757 | var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js"); |
| 2855 | -function _unsupportedIterableToArray(r, a) { | |
| 2856 | - if (r) { | |
| 2857 | - if ("string" == typeof r) return arrayLikeToArray(r, a); | |
| 2858 | - var t = {}.toString.call(r).slice(8, -1); | |
| 2859 | - 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; | |
| 2860 | - } | |
| 2758 | + | |
| 2759 | +function _unsupportedIterableToArray(o, minLen) { | |
| 2760 | + if (!o) return; | |
| 2761 | + if (typeof o === "string") return arrayLikeToArray(o, minLen); | |
| 2762 | + var n = Object.prototype.toString.call(o).slice(8, -1); | |
| 2763 | + if (n === "Object" && o.constructor) n = o.constructor.name; | |
| 2764 | + if (n === "Map" || n === "Set") return Array.from(o); | |
| 2765 | + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen); | |
| 2861 | 2766 | } |
| 2767 | + | |
| 2862 | 2768 | module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2863 | 2769 | |
| 2864 | 2770 | /***/ }), |
| 2865 | 2771 | |
| @@ -2869,71 +2775,50 @@ | ||
| 2869 | 2775 | \*****************************************************************/ |
| 2870 | 2776 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 2871 | 2777 | |
| 2872 | 2778 | var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"); |
| 2779 | + | |
| 2873 | 2780 | var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js"); |
| 2781 | + | |
| 2874 | 2782 | var isNativeFunction = __webpack_require__(/*! ./isNativeFunction.js */ "../node_modules/@babel/runtime/helpers/isNativeFunction.js"); |
| 2783 | + | |
| 2875 | 2784 | var construct = __webpack_require__(/*! ./construct.js */ "../node_modules/@babel/runtime/helpers/construct.js"); |
| 2876 | -function _wrapNativeSuper(t) { | |
| 2877 | - var r = "function" == typeof Map ? new Map() : void 0; | |
| 2878 | - return module.exports = _wrapNativeSuper = function _wrapNativeSuper(t) { | |
| 2879 | - if (null === t || !isNativeFunction(t)) return t; | |
| 2880 | - if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function"); | |
| 2881 | - if (void 0 !== r) { | |
| 2882 | - if (r.has(t)) return r.get(t); | |
| 2883 | - r.set(t, Wrapper); | |
| 2785 | + | |
| 2786 | +function _wrapNativeSuper(Class) { | |
| 2787 | + var _cache = typeof Map === "function" ? new Map() : undefined; | |
| 2788 | + | |
| 2789 | + module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) { | |
| 2790 | + if (Class === null || !isNativeFunction(Class)) return Class; | |
| 2791 | + | |
| 2792 | + if (typeof Class !== "function") { | |
| 2793 | + throw new TypeError("Super expression must either be null or a function"); | |
| 2884 | 2794 | } |
| 2795 | + | |
| 2796 | + if (typeof _cache !== "undefined") { | |
| 2797 | + if (_cache.has(Class)) return _cache.get(Class); | |
| 2798 | + | |
| 2799 | + _cache.set(Class, Wrapper); | |
| 2800 | + } | |
| 2801 | + | |
| 2885 | 2802 | function Wrapper() { |
| 2886 | - return construct(t, arguments, getPrototypeOf(this).constructor); | |
| 2803 | + return construct(Class, arguments, getPrototypeOf(this).constructor); | |
| 2887 | 2804 | } |
| 2888 | - return Wrapper.prototype = Object.create(t.prototype, { | |
| 2805 | + | |
| 2806 | + Wrapper.prototype = Object.create(Class.prototype, { | |
| 2889 | 2807 | constructor: { |
| 2890 | 2808 | value: Wrapper, |
| 2891 | - enumerable: !1, | |
| 2892 | - writable: !0, | |
| 2893 | - configurable: !0 | |
| 2809 | + enumerable: false, | |
| 2810 | + writable: true, | |
| 2811 | + configurable: true | |
| 2894 | 2812 | } |
| 2895 | - }), setPrototypeOf(Wrapper, t); | |
| 2896 | - }, module.exports.__esModule = true, module.exports["default"] = module.exports, _wrapNativeSuper(t); | |
| 2813 | + }); | |
| 2814 | + return setPrototypeOf(Wrapper, Class); | |
| 2815 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2816 | + return _wrapNativeSuper(Class); | |
| 2897 | 2817 | } |
| 2818 | + | |
| 2898 | 2819 | module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports; |
| 2899 | 2820 | |
| 2900 | -/***/ }), | |
| 2901 | - | |
| 2902 | -/***/ "../node_modules/@babel/runtime/regenerator/index.js": | |
| 2903 | -/*!***********************************************************!*\ | |
| 2904 | - !*** ../node_modules/@babel/runtime/regenerator/index.js ***! | |
| 2905 | - \***********************************************************/ | |
| 2906 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2907 | - | |
| 2908 | -// TODO(Babel 8): Remove this file. | |
| 2909 | - | |
| 2910 | -var runtime = __webpack_require__(/*! ../helpers/regeneratorRuntime */ "../node_modules/@babel/runtime/helpers/regeneratorRuntime.js")(); | |
| 2911 | -module.exports = runtime; | |
| 2912 | - | |
| 2913 | -// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736= | |
| 2914 | -try { | |
| 2915 | - regeneratorRuntime = runtime; | |
| 2916 | -} catch (accidentalStrictMode) { | |
| 2917 | - if (typeof globalThis === "object") { | |
| 2918 | - globalThis.regeneratorRuntime = runtime; | |
| 2919 | - } else { | |
| 2920 | - Function("r", "regeneratorRuntime = r")(runtime); | |
| 2921 | - } | |
| 2922 | -} | |
| 2923 | - | |
| 2924 | - | |
| 2925 | -/***/ }), | |
| 2926 | - | |
| 2927 | -/***/ "@wordpress/i18n": | |
| 2928 | -/*!**************************!*\ | |
| 2929 | - !*** external "wp.i18n" ***! | |
| 2930 | - \**************************/ | |
| 2931 | -/***/ ((module) => { | |
| 2932 | - | |
| 2933 | -"use strict"; | |
| 2934 | -module.exports = wp.i18n; | |
| 2935 | - | |
| 2936 | 2821 | /***/ }) |
| 2937 | 2822 | |
| 2938 | 2823 | /******/ }); |
| 2939 | 2824 | /************************************************************************/ |
| @@ -2962,9 +2847,9 @@ | ||
| 2962 | 2847 | /******/ } |
| 2963 | 2848 | /******/ |
| 2964 | 2849 | /************************************************************************/ |
| 2965 | 2850 | var __webpack_exports__ = {}; |
| 2966 | -// This entry needs to be wrapped in an IIFE because it needs to be in strict mode. | |
| 2851 | +// This entry need to be wrapped in an IIFE because it need to be in strict mode. | |
| 2967 | 2852 | (() => { |
| 2968 | 2853 | "use strict"; |
| 2969 | 2854 | /*!******************************************!*\ |
| 2970 | 2855 | !*** ../assets/dev/js/editor/modules.js ***! |
| @@ -2971,13 +2856,19 @@ | ||
| 2971 | 2856 | \******************************************/ |
| 2972 | 2857 | |
| 2973 | 2858 | |
| 2974 | 2859 | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); |
| 2860 | + | |
| 2975 | 2861 | var _module = _interopRequireDefault(__webpack_require__(/*! ./utils/module */ "../assets/dev/js/editor/utils/module.js")); |
| 2976 | -var _introduction = _interopRequireDefault(__webpack_require__(/*! ../utils/introduction */ "../assets/dev/js/utils/introduction.js")); | |
| 2862 | + | |
| 2863 | +var _introduction = _interopRequireDefault(__webpack_require__(/*! ./utils/introduction */ "../assets/dev/js/editor/utils/introduction.js")); | |
| 2864 | + | |
| 2977 | 2865 | var _controlsStack = _interopRequireDefault(__webpack_require__(/*! ./views/controls-stack */ "../assets/dev/js/editor/views/controls-stack.js")); |
| 2866 | + | |
| 2978 | 2867 | var _baseSettings = _interopRequireDefault(__webpack_require__(/*! ./elements/models/base-settings */ "../assets/dev/js/editor/elements/models/base-settings.js")); |
| 2868 | + | |
| 2979 | 2869 | var _container = _interopRequireDefault(__webpack_require__(/*! ./container/container */ "../assets/dev/js/editor/container/container.js")); |
| 2870 | + | |
| 2980 | 2871 | elementorModules.editor = { |
| 2981 | 2872 | elements: { |
| 2982 | 2873 | models: { |
| 2983 | 2874 | BaseSettings: _baseSettings.default |