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