| @@ -1,1231 +1,4191 @@ | ||
| 1 | -/******/ (() => { // webpackBootstrap | |
| 2 | -/******/ var __webpack_modules__ = ({ | |
| 1 | +/*! elementor - v3.0.6 - 06-09-2020 */ | |
| 2 | +/******/ (function(modules) { // webpackBootstrap | |
| 3 | +/******/ // The module cache | |
| 4 | +/******/ var installedModules = {}; | |
| 5 | +/******/ | |
| 6 | +/******/ // The require function | |
| 7 | +/******/ function __webpack_require__(moduleId) { | |
| 8 | +/******/ | |
| 9 | +/******/ // Check if module is in cache | |
| 10 | +/******/ if(installedModules[moduleId]) { | |
| 11 | +/******/ return installedModules[moduleId].exports; | |
| 12 | +/******/ } | |
| 13 | +/******/ // Create a new module (and put it into the cache) | |
| 14 | +/******/ var module = installedModules[moduleId] = { | |
| 15 | +/******/ i: moduleId, | |
| 16 | +/******/ l: false, | |
| 17 | +/******/ exports: {} | |
| 18 | +/******/ }; | |
| 19 | +/******/ | |
| 20 | +/******/ // Execute the module function | |
| 21 | +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); | |
| 22 | +/******/ | |
| 23 | +/******/ // Flag the module as loaded | |
| 24 | +/******/ module.l = true; | |
| 25 | +/******/ | |
| 26 | +/******/ // Return the exports of the module | |
| 27 | +/******/ return module.exports; | |
| 28 | +/******/ } | |
| 29 | +/******/ | |
| 30 | +/******/ | |
| 31 | +/******/ // expose the modules object (__webpack_modules__) | |
| 32 | +/******/ __webpack_require__.m = modules; | |
| 33 | +/******/ | |
| 34 | +/******/ // expose the module cache | |
| 35 | +/******/ __webpack_require__.c = installedModules; | |
| 36 | +/******/ | |
| 37 | +/******/ // define getter function for harmony exports | |
| 38 | +/******/ __webpack_require__.d = function(exports, name, getter) { | |
| 39 | +/******/ if(!__webpack_require__.o(exports, name)) { | |
| 40 | +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); | |
| 41 | +/******/ } | |
| 42 | +/******/ }; | |
| 43 | +/******/ | |
| 44 | +/******/ // define __esModule on exports | |
| 45 | +/******/ __webpack_require__.r = function(exports) { | |
| 46 | +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { | |
| 47 | +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); | |
| 48 | +/******/ } | |
| 49 | +/******/ Object.defineProperty(exports, '__esModule', { value: true }); | |
| 50 | +/******/ }; | |
| 51 | +/******/ | |
| 52 | +/******/ // create a fake namespace object | |
| 53 | +/******/ // mode & 1: value is a module id, require it | |
| 54 | +/******/ // mode & 2: merge all properties of value into the ns | |
| 55 | +/******/ // mode & 4: return value when already ns object | |
| 56 | +/******/ // mode & 8|1: behave like require | |
| 57 | +/******/ __webpack_require__.t = function(value, mode) { | |
| 58 | +/******/ if(mode & 1) value = __webpack_require__(value); | |
| 59 | +/******/ if(mode & 8) return value; | |
| 60 | +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; | |
| 61 | +/******/ var ns = Object.create(null); | |
| 62 | +/******/ __webpack_require__.r(ns); | |
| 63 | +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); | |
| 64 | +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); | |
| 65 | +/******/ return ns; | |
| 66 | +/******/ }; | |
| 67 | +/******/ | |
| 68 | +/******/ // getDefaultExport function for compatibility with non-harmony modules | |
| 69 | +/******/ __webpack_require__.n = function(module) { | |
| 70 | +/******/ var getter = module && module.__esModule ? | |
| 71 | +/******/ function getDefault() { return module['default']; } : | |
| 72 | +/******/ function getModuleExports() { return module; }; | |
| 73 | +/******/ __webpack_require__.d(getter, 'a', getter); | |
| 74 | +/******/ return getter; | |
| 75 | +/******/ }; | |
| 76 | +/******/ | |
| 77 | +/******/ // Object.prototype.hasOwnProperty.call | |
| 78 | +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; | |
| 79 | +/******/ | |
| 80 | +/******/ // __webpack_public_path__ | |
| 81 | +/******/ __webpack_require__.p = ""; | |
| 82 | +/******/ | |
| 83 | +/******/ | |
| 84 | +/******/ // Load entry module and return exports | |
| 85 | +/******/ return __webpack_require__(__webpack_require__.s = 812); | |
| 86 | +/******/ }) | |
| 87 | +/************************************************************************/ | |
| 88 | +/******/ ([ | |
| 89 | +/* 0 */ | |
| 90 | +/***/ (function(module, exports) { | |
| 3 | 91 | |
| 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__) => { | |
| 92 | +function _interopRequireDefault(obj) { | |
| 93 | + return obj && obj.__esModule ? obj : { | |
| 94 | + "default": obj | |
| 95 | + }; | |
| 96 | +} | |
| 9 | 97 | |
| 10 | -"use strict"; | |
| 11 | -/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 98 | +module.exports = _interopRequireDefault; | |
| 12 | 99 | |
| 100 | +/***/ }), | |
| 101 | +/* 1 */ | |
| 102 | +/***/ (function(module, exports, __webpack_require__) { | |
| 13 | 103 | |
| 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]); | |
| 104 | +module.exports = __webpack_require__(156); | |
| 60 | 105 | |
| 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); | |
| 106 | +/***/ }), | |
| 107 | +/* 2 */ | |
| 108 | +/***/ (function(module, exports) { | |
| 160 | 109 | |
| 161 | - // If empty. | |
| 162 | - if (0 === args.length) { | |
| 163 | - throw Error('Container cannot be empty.'); | |
| 110 | +function _classCallCheck(instance, Constructor) { | |
| 111 | + if (!(instance instanceof Constructor)) { | |
| 112 | + throw new TypeError("Cannot call a class as a function"); | |
| 113 | + } | |
| 114 | +} | |
| 115 | + | |
| 116 | +module.exports = _classCallCheck; | |
| 117 | + | |
| 118 | +/***/ }), | |
| 119 | +/* 3 */ | |
| 120 | +/***/ (function(module, exports, __webpack_require__) { | |
| 121 | + | |
| 122 | +var _Object$defineProperty = __webpack_require__(1); | |
| 123 | + | |
| 124 | +function _defineProperties(target, props) { | |
| 125 | + for (var i = 0; i < props.length; i++) { | |
| 126 | + var descriptor = props[i]; | |
| 127 | + descriptor.enumerable = descriptor.enumerable || false; | |
| 128 | + descriptor.configurable = true; | |
| 129 | + if ("value" in descriptor) descriptor.writable = true; | |
| 130 | + | |
| 131 | + _Object$defineProperty(target, descriptor.key, descriptor); | |
| 132 | + } | |
| 133 | +} | |
| 134 | + | |
| 135 | +function _createClass(Constructor, protoProps, staticProps) { | |
| 136 | + if (protoProps) _defineProperties(Constructor.prototype, protoProps); | |
| 137 | + if (staticProps) _defineProperties(Constructor, staticProps); | |
| 138 | + return Constructor; | |
| 139 | +} | |
| 140 | + | |
| 141 | +module.exports = _createClass; | |
| 142 | + | |
| 143 | +/***/ }), | |
| 144 | +/* 4 */ | |
| 145 | +/***/ (function(module, exports, __webpack_require__) { | |
| 146 | + | |
| 147 | +var _Object$create = __webpack_require__(138); | |
| 148 | + | |
| 149 | +var setPrototypeOf = __webpack_require__(136); | |
| 150 | + | |
| 151 | +function _inherits(subClass, superClass) { | |
| 152 | + if (typeof superClass !== "function" && superClass !== null) { | |
| 153 | + throw new TypeError("Super expression must either be null or a function"); | |
| 154 | + } | |
| 155 | + | |
| 156 | + subClass.prototype = _Object$create(superClass && superClass.prototype, { | |
| 157 | + constructor: { | |
| 158 | + value: subClass, | |
| 159 | + writable: true, | |
| 160 | + configurable: true | |
| 164 | 161 | } |
| 162 | + }); | |
| 163 | + if (superClass) setPrototypeOf(subClass, superClass); | |
| 164 | +} | |
| 165 | 165 | |
| 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; | |
| 166 | +module.exports = _inherits; | |
| 167 | + | |
| 168 | +/***/ }), | |
| 169 | +/* 5 */ | |
| 170 | +/***/ (function(module, exports, __webpack_require__) { | |
| 171 | + | |
| 172 | +var _Reflect$construct = __webpack_require__(107); | |
| 173 | + | |
| 174 | +var getPrototypeOf = __webpack_require__(16); | |
| 175 | + | |
| 176 | +var isNativeReflectConstruct = __webpack_require__(148); | |
| 177 | + | |
| 178 | +var possibleConstructorReturn = __webpack_require__(171); | |
| 179 | + | |
| 180 | +function _createSuper(Derived) { | |
| 181 | + var hasNativeReflectConstruct = isNativeReflectConstruct(); | |
| 182 | + return function _createSuperInternal() { | |
| 183 | + var Super = getPrototypeOf(Derived), | |
| 184 | + result; | |
| 185 | + | |
| 186 | + if (hasNativeReflectConstruct) { | |
| 187 | + var NewTarget = getPrototypeOf(this).constructor; | |
| 188 | + result = _Reflect$construct(Super, arguments, NewTarget); | |
| 189 | + } else { | |
| 190 | + result = Super.apply(this, arguments); | |
| 175 | 191 | } |
| 176 | - if (!_this.document) { | |
| 177 | - _this.document = elementor.documents.getCurrent(); | |
| 192 | + | |
| 193 | + return possibleConstructorReturn(this, result); | |
| 194 | + }; | |
| 195 | +} | |
| 196 | + | |
| 197 | +module.exports = _createSuper; | |
| 198 | + | |
| 199 | +/***/ }), | |
| 200 | +/* 6 */ | |
| 201 | +/***/ (function(module, exports) { | |
| 202 | + | |
| 203 | +var core = module.exports = { version: '2.6.11' }; | |
| 204 | +if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef | |
| 205 | + | |
| 206 | + | |
| 207 | +/***/ }), | |
| 208 | +/* 7 */ | |
| 209 | +/***/ (function(module, exports, __webpack_require__) { | |
| 210 | + | |
| 211 | +var global = __webpack_require__(8); | |
| 212 | +var core = __webpack_require__(6); | |
| 213 | +var ctx = __webpack_require__(31); | |
| 214 | +var hide = __webpack_require__(24); | |
| 215 | +var has = __webpack_require__(19); | |
| 216 | +var PROTOTYPE = 'prototype'; | |
| 217 | + | |
| 218 | +var $export = function (type, name, source) { | |
| 219 | + var IS_FORCED = type & $export.F; | |
| 220 | + var IS_GLOBAL = type & $export.G; | |
| 221 | + var IS_STATIC = type & $export.S; | |
| 222 | + var IS_PROTO = type & $export.P; | |
| 223 | + var IS_BIND = type & $export.B; | |
| 224 | + var IS_WRAP = type & $export.W; | |
| 225 | + var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); | |
| 226 | + var expProto = exports[PROTOTYPE]; | |
| 227 | + var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]; | |
| 228 | + var key, own, out; | |
| 229 | + if (IS_GLOBAL) source = name; | |
| 230 | + for (key in source) { | |
| 231 | + // contains in native | |
| 232 | + own = !IS_FORCED && target && target[key] !== undefined; | |
| 233 | + if (own && has(exports, key)) continue; | |
| 234 | + // export native or passed | |
| 235 | + out = own ? target[key] : source[key]; | |
| 236 | + // prevent global pollution for namespaces | |
| 237 | + exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key] | |
| 238 | + // bind timers to global for call from export context | |
| 239 | + : IS_BIND && own ? ctx(out, global) | |
| 240 | + // wrap global constructors for prevent change them in library | |
| 241 | + : IS_WRAP && target[key] == out ? (function (C) { | |
| 242 | + var F = function (a, b, c) { | |
| 243 | + if (this instanceof C) { | |
| 244 | + switch (arguments.length) { | |
| 245 | + case 0: return new C(); | |
| 246 | + case 1: return new C(a); | |
| 247 | + case 2: return new C(a, b); | |
| 248 | + } return new C(a, b, c); | |
| 249 | + } return C.apply(this, arguments); | |
| 250 | + }; | |
| 251 | + F[PROTOTYPE] = C[PROTOTYPE]; | |
| 252 | + return F; | |
| 253 | + // make static versions for prototype methods | |
| 254 | + })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; | |
| 255 | + // export proto methods to core.%CONSTRUCTOR%.methods.%NAME% | |
| 256 | + if (IS_PROTO) { | |
| 257 | + (exports.virtual || (exports.virtual = {}))[key] = out; | |
| 258 | + // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME% | |
| 259 | + if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out); | |
| 178 | 260 | } |
| 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 | 261 | } |
| 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)); | |
| 262 | +}; | |
| 263 | +// type bitmap | |
| 264 | +$export.F = 1; // forced | |
| 265 | +$export.G = 2; // global | |
| 266 | +$export.S = 4; // static | |
| 267 | +$export.P = 8; // proto | |
| 268 | +$export.B = 16; // bind | |
| 269 | +$export.W = 32; // wrap | |
| 270 | +$export.U = 64; // safe | |
| 271 | +$export.R = 128; // real proto method for `library` | |
| 272 | +module.exports = $export; | |
| 273 | + | |
| 274 | + | |
| 275 | +/***/ }), | |
| 276 | +/* 8 */ | |
| 277 | +/***/ (function(module, exports) { | |
| 278 | + | |
| 279 | +// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 | |
| 280 | +var global = module.exports = typeof window != 'undefined' && window.Math == Math | |
| 281 | + ? window : typeof self != 'undefined' && self.Math == Math ? self | |
| 282 | + // eslint-disable-next-line no-new-func | |
| 283 | + : Function('return this')(); | |
| 284 | +if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef | |
| 285 | + | |
| 286 | + | |
| 287 | +/***/ }), | |
| 288 | +/* 9 */ | |
| 289 | +/***/ (function(module, exports) { | |
| 290 | + | |
| 291 | +module.exports = function (it) { | |
| 292 | + return typeof it === 'object' ? it !== null : typeof it === 'function'; | |
| 293 | +}; | |
| 294 | + | |
| 295 | + | |
| 296 | +/***/ }), | |
| 297 | +/* 10 */ | |
| 298 | +/***/ (function(module, exports, __webpack_require__) { | |
| 299 | + | |
| 300 | +var store = __webpack_require__(76)('wks'); | |
| 301 | +var uid = __webpack_require__(59); | |
| 302 | +var Symbol = __webpack_require__(8).Symbol; | |
| 303 | +var USE_SYMBOL = typeof Symbol == 'function'; | |
| 304 | + | |
| 305 | +var $exports = module.exports = function (name) { | |
| 306 | + return store[name] || (store[name] = | |
| 307 | + USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); | |
| 308 | +}; | |
| 309 | + | |
| 310 | +$exports.store = store; | |
| 311 | + | |
| 312 | + | |
| 313 | +/***/ }), | |
| 314 | +/* 11 */, | |
| 315 | +/* 12 */ | |
| 316 | +/***/ (function(module, exports, __webpack_require__) { | |
| 317 | + | |
| 318 | +var store = __webpack_require__(66)('wks'); | |
| 319 | +var uid = __webpack_require__(67); | |
| 320 | +var Symbol = __webpack_require__(17).Symbol; | |
| 321 | +var USE_SYMBOL = typeof Symbol == 'function'; | |
| 322 | + | |
| 323 | +var $exports = module.exports = function (name) { | |
| 324 | + return store[name] || (store[name] = | |
| 325 | + USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); | |
| 326 | +}; | |
| 327 | + | |
| 328 | +$exports.store = store; | |
| 329 | + | |
| 330 | + | |
| 331 | +/***/ }), | |
| 332 | +/* 13 */ | |
| 333 | +/***/ (function(module, exports, __webpack_require__) { | |
| 334 | + | |
| 335 | +var isObject = __webpack_require__(9); | |
| 336 | +module.exports = function (it) { | |
| 337 | + if (!isObject(it)) throw TypeError(it + ' is not an object!'); | |
| 338 | + return it; | |
| 339 | +}; | |
| 340 | + | |
| 341 | + | |
| 342 | +/***/ }), | |
| 343 | +/* 14 */ | |
| 344 | +/***/ (function(module, exports, __webpack_require__) { | |
| 345 | + | |
| 346 | +// Thank's IE8 for his funny defineProperty | |
| 347 | +module.exports = !__webpack_require__(22)(function () { | |
| 348 | + return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; | |
| 349 | +}); | |
| 350 | + | |
| 351 | + | |
| 352 | +/***/ }), | |
| 353 | +/* 15 */ | |
| 354 | +/***/ (function(module, exports, __webpack_require__) { | |
| 355 | + | |
| 356 | +var anObject = __webpack_require__(13); | |
| 357 | +var IE8_DOM_DEFINE = __webpack_require__(114); | |
| 358 | +var toPrimitive = __webpack_require__(74); | |
| 359 | +var dP = Object.defineProperty; | |
| 360 | + | |
| 361 | +exports.f = __webpack_require__(14) ? Object.defineProperty : function defineProperty(O, P, Attributes) { | |
| 362 | + anObject(O); | |
| 363 | + P = toPrimitive(P, true); | |
| 364 | + anObject(Attributes); | |
| 365 | + if (IE8_DOM_DEFINE) try { | |
| 366 | + return dP(O, P, Attributes); | |
| 367 | + } catch (e) { /* empty */ } | |
| 368 | + if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); | |
| 369 | + if ('value' in Attributes) O[P] = Attributes.value; | |
| 370 | + return O; | |
| 371 | +}; | |
| 372 | + | |
| 373 | + | |
| 374 | +/***/ }), | |
| 375 | +/* 16 */ | |
| 376 | +/***/ (function(module, exports, __webpack_require__) { | |
| 377 | + | |
| 378 | +var _Object$getPrototypeOf = __webpack_require__(158); | |
| 379 | + | |
| 380 | +var _Object$setPrototypeOf = __webpack_require__(115); | |
| 381 | + | |
| 382 | +function _getPrototypeOf(o) { | |
| 383 | + module.exports = _getPrototypeOf = _Object$setPrototypeOf ? _Object$getPrototypeOf : function _getPrototypeOf(o) { | |
| 384 | + return o.__proto__ || _Object$getPrototypeOf(o); | |
| 385 | + }; | |
| 386 | + return _getPrototypeOf(o); | |
| 387 | +} | |
| 388 | + | |
| 389 | +module.exports = _getPrototypeOf; | |
| 390 | + | |
| 391 | +/***/ }), | |
| 392 | +/* 17 */ | |
| 393 | +/***/ (function(module, exports) { | |
| 394 | + | |
| 395 | +// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 | |
| 396 | +var global = module.exports = typeof window != 'undefined' && window.Math == Math | |
| 397 | + ? window : typeof self != 'undefined' && self.Math == Math ? self | |
| 398 | + // eslint-disable-next-line no-new-func | |
| 399 | + : Function('return this')(); | |
| 400 | +if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef | |
| 401 | + | |
| 402 | + | |
| 403 | +/***/ }), | |
| 404 | +/* 18 */ | |
| 405 | +/***/ (function(module, exports, __webpack_require__) { | |
| 406 | + | |
| 407 | +var isObject = __webpack_require__(30); | |
| 408 | +module.exports = function (it) { | |
| 409 | + if (!isObject(it)) throw TypeError(it + ' is not an object!'); | |
| 410 | + return it; | |
| 411 | +}; | |
| 412 | + | |
| 413 | + | |
| 414 | +/***/ }), | |
| 415 | +/* 19 */ | |
| 416 | +/***/ (function(module, exports) { | |
| 417 | + | |
| 418 | +var hasOwnProperty = {}.hasOwnProperty; | |
| 419 | +module.exports = function (it, key) { | |
| 420 | + return hasOwnProperty.call(it, key); | |
| 421 | +}; | |
| 422 | + | |
| 423 | + | |
| 424 | +/***/ }), | |
| 425 | +/* 20 */ | |
| 426 | +/***/ (function(module, exports, __webpack_require__) { | |
| 427 | + | |
| 428 | +// to indexed object, toObject with fallback for non-array-like ES3 strings | |
| 429 | +var IObject = __webpack_require__(103); | |
| 430 | +var defined = __webpack_require__(65); | |
| 431 | +module.exports = function (it) { | |
| 432 | + return IObject(defined(it)); | |
| 433 | +}; | |
| 434 | + | |
| 435 | + | |
| 436 | +/***/ }), | |
| 437 | +/* 21 */, | |
| 438 | +/* 22 */ | |
| 439 | +/***/ (function(module, exports) { | |
| 440 | + | |
| 441 | +module.exports = function (exec) { | |
| 442 | + try { | |
| 443 | + return !!exec(); | |
| 444 | + } catch (e) { | |
| 445 | + return true; | |
| 446 | + } | |
| 447 | +}; | |
| 448 | + | |
| 449 | + | |
| 450 | +/***/ }), | |
| 451 | +/* 23 */ | |
| 452 | +/***/ (function(module, exports, __webpack_require__) { | |
| 453 | + | |
| 454 | +module.exports = __webpack_require__(201); | |
| 455 | + | |
| 456 | +/***/ }), | |
| 457 | +/* 24 */ | |
| 458 | +/***/ (function(module, exports, __webpack_require__) { | |
| 459 | + | |
| 460 | +var dP = __webpack_require__(15); | |
| 461 | +var createDesc = __webpack_require__(44); | |
| 462 | +module.exports = __webpack_require__(14) ? function (object, key, value) { | |
| 463 | + return dP.f(object, key, createDesc(1, value)); | |
| 464 | +} : function (object, key, value) { | |
| 465 | + object[key] = value; | |
| 466 | + return object; | |
| 467 | +}; | |
| 468 | + | |
| 469 | + | |
| 470 | +/***/ }), | |
| 471 | +/* 25 */ | |
| 472 | +/***/ (function(module, exports, __webpack_require__) { | |
| 473 | + | |
| 474 | +var _Object$getOwnPropertyDescriptor = __webpack_require__(124); | |
| 475 | + | |
| 476 | +var _Reflect$get = __webpack_require__(193); | |
| 477 | + | |
| 478 | +var superPropBase = __webpack_require__(196); | |
| 479 | + | |
| 480 | +function _get(target, property, receiver) { | |
| 481 | + if (typeof Reflect !== "undefined" && _Reflect$get) { | |
| 482 | + module.exports = _get = _Reflect$get; | |
| 483 | + } else { | |
| 484 | + module.exports = _get = function _get(target, property, receiver) { | |
| 485 | + var base = superPropBase(target, property); | |
| 486 | + if (!base) return; | |
| 487 | + | |
| 488 | + var desc = _Object$getOwnPropertyDescriptor(base, property); | |
| 489 | + | |
| 490 | + if (desc.get) { | |
| 491 | + return desc.get.call(receiver); | |
| 193 | 492 | } |
| 194 | - this.handleRepeaterChildren(); | |
| 493 | + | |
| 494 | + return desc.value; | |
| 495 | + }; | |
| 496 | + } | |
| 497 | + | |
| 498 | + return _get(target, property, receiver || target); | |
| 499 | +} | |
| 500 | + | |
| 501 | +module.exports = _get; | |
| 502 | + | |
| 503 | +/***/ }), | |
| 504 | +/* 26 */ | |
| 505 | +/***/ (function(module, exports, __webpack_require__) { | |
| 506 | + | |
| 507 | +"use strict"; | |
| 508 | + | |
| 509 | +// 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined) | |
| 510 | +var $export = __webpack_require__(34); | |
| 511 | +var $find = __webpack_require__(182)(5); | |
| 512 | +var KEY = 'find'; | |
| 513 | +var forced = true; | |
| 514 | +// Shouldn't skip holes | |
| 515 | +if (KEY in []) Array(1)[KEY](function () { forced = false; }); | |
| 516 | +$export($export.P + $export.F * forced, 'Array', { | |
| 517 | + find: function find(callbackfn /* , that = undefined */) { | |
| 518 | + return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); | |
| 519 | + } | |
| 520 | +}); | |
| 521 | +__webpack_require__(84)(KEY); | |
| 522 | + | |
| 523 | + | |
| 524 | +/***/ }), | |
| 525 | +/* 27 */ | |
| 526 | +/***/ (function(module, exports, __webpack_require__) { | |
| 527 | + | |
| 528 | +// Thank's IE8 for his funny defineProperty | |
| 529 | +module.exports = !__webpack_require__(33)(function () { | |
| 530 | + return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; | |
| 531 | +}); | |
| 532 | + | |
| 533 | + | |
| 534 | +/***/ }), | |
| 535 | +/* 28 */ | |
| 536 | +/***/ (function(module, exports, __webpack_require__) { | |
| 537 | + | |
| 538 | +var _Object$defineProperty = __webpack_require__(1); | |
| 539 | + | |
| 540 | +function _defineProperty(obj, key, value) { | |
| 541 | + if (key in obj) { | |
| 542 | + _Object$defineProperty(obj, key, { | |
| 543 | + value: value, | |
| 544 | + enumerable: true, | |
| 545 | + configurable: true, | |
| 546 | + writable: true | |
| 547 | + }); | |
| 548 | + } else { | |
| 549 | + obj[key] = value; | |
| 550 | + } | |
| 551 | + | |
| 552 | + return obj; | |
| 553 | +} | |
| 554 | + | |
| 555 | +module.exports = _defineProperty; | |
| 556 | + | |
| 557 | +/***/ }), | |
| 558 | +/* 29 */ | |
| 559 | +/***/ (function(module, exports, __webpack_require__) { | |
| 560 | + | |
| 561 | +var dP = __webpack_require__(45); | |
| 562 | +var createDesc = __webpack_require__(102); | |
| 563 | +module.exports = __webpack_require__(27) ? function (object, key, value) { | |
| 564 | + return dP.f(object, key, createDesc(1, value)); | |
| 565 | +} : function (object, key, value) { | |
| 566 | + object[key] = value; | |
| 567 | + return object; | |
| 568 | +}; | |
| 569 | + | |
| 570 | + | |
| 571 | +/***/ }), | |
| 572 | +/* 30 */ | |
| 573 | +/***/ (function(module, exports) { | |
| 574 | + | |
| 575 | +module.exports = function (it) { | |
| 576 | + return typeof it === 'object' ? it !== null : typeof it === 'function'; | |
| 577 | +}; | |
| 578 | + | |
| 579 | + | |
| 580 | +/***/ }), | |
| 581 | +/* 31 */ | |
| 582 | +/***/ (function(module, exports, __webpack_require__) { | |
| 583 | + | |
| 584 | +// optional / simple context binding | |
| 585 | +var aFunction = __webpack_require__(38); | |
| 586 | +module.exports = function (fn, that, length) { | |
| 587 | + aFunction(fn); | |
| 588 | + if (that === undefined) return fn; | |
| 589 | + switch (length) { | |
| 590 | + case 1: return function (a) { | |
| 591 | + return fn.call(that, a); | |
| 592 | + }; | |
| 593 | + case 2: return function (a, b) { | |
| 594 | + return fn.call(that, a, b); | |
| 595 | + }; | |
| 596 | + case 3: return function (a, b, c) { | |
| 597 | + return fn.call(that, a, b, c); | |
| 598 | + }; | |
| 599 | + } | |
| 600 | + return function (/* ...args */) { | |
| 601 | + return fn.apply(that, arguments); | |
| 602 | + }; | |
| 603 | +}; | |
| 604 | + | |
| 605 | + | |
| 606 | +/***/ }), | |
| 607 | +/* 32 */ | |
| 608 | +/***/ (function(module, exports, __webpack_require__) { | |
| 609 | + | |
| 610 | +// 7.1.13 ToObject(argument) | |
| 611 | +var defined = __webpack_require__(65); | |
| 612 | +module.exports = function (it) { | |
| 613 | + return Object(defined(it)); | |
| 614 | +}; | |
| 615 | + | |
| 616 | + | |
| 617 | +/***/ }), | |
| 618 | +/* 33 */ | |
| 619 | +/***/ (function(module, exports) { | |
| 620 | + | |
| 621 | +module.exports = function (exec) { | |
| 622 | + try { | |
| 623 | + return !!exec(); | |
| 624 | + } catch (e) { | |
| 625 | + return true; | |
| 626 | + } | |
| 627 | +}; | |
| 628 | + | |
| 629 | + | |
| 630 | +/***/ }), | |
| 631 | +/* 34 */ | |
| 632 | +/***/ (function(module, exports, __webpack_require__) { | |
| 633 | + | |
| 634 | +var global = __webpack_require__(17); | |
| 635 | +var core = __webpack_require__(55); | |
| 636 | +var hide = __webpack_require__(29); | |
| 637 | +var redefine = __webpack_require__(36); | |
| 638 | +var ctx = __webpack_require__(73); | |
| 639 | +var PROTOTYPE = 'prototype'; | |
| 640 | + | |
| 641 | +var $export = function (type, name, source) { | |
| 642 | + var IS_FORCED = type & $export.F; | |
| 643 | + var IS_GLOBAL = type & $export.G; | |
| 644 | + var IS_STATIC = type & $export.S; | |
| 645 | + var IS_PROTO = type & $export.P; | |
| 646 | + var IS_BIND = type & $export.B; | |
| 647 | + var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE]; | |
| 648 | + var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); | |
| 649 | + var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {}); | |
| 650 | + var key, own, out, exp; | |
| 651 | + if (IS_GLOBAL) source = name; | |
| 652 | + for (key in source) { | |
| 653 | + // contains in native | |
| 654 | + own = !IS_FORCED && target && target[key] !== undefined; | |
| 655 | + // export native or passed | |
| 656 | + out = (own ? target : source)[key]; | |
| 657 | + // bind timers to global for call from export context | |
| 658 | + exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; | |
| 659 | + // extend global | |
| 660 | + if (target) redefine(target, key, out, type & $export.U); | |
| 661 | + // export | |
| 662 | + if (exports[key] != out) hide(exports, key, exp); | |
| 663 | + if (IS_PROTO && expProto[key] != out) expProto[key] = out; | |
| 664 | + } | |
| 665 | +}; | |
| 666 | +global.core = core; | |
| 667 | +// type bitmap | |
| 668 | +$export.F = 1; // forced | |
| 669 | +$export.G = 2; // global | |
| 670 | +$export.S = 4; // static | |
| 671 | +$export.P = 8; // proto | |
| 672 | +$export.B = 16; // bind | |
| 673 | +$export.W = 32; // wrap | |
| 674 | +$export.U = 64; // safe | |
| 675 | +$export.R = 128; // real proto method for `library` | |
| 676 | +module.exports = $export; | |
| 677 | + | |
| 678 | + | |
| 679 | +/***/ }), | |
| 680 | +/* 35 */ | |
| 681 | +/***/ (function(module, exports) { | |
| 682 | + | |
| 683 | +module.exports = {}; | |
| 684 | + | |
| 685 | + | |
| 686 | +/***/ }), | |
| 687 | +/* 36 */ | |
| 688 | +/***/ (function(module, exports, __webpack_require__) { | |
| 689 | + | |
| 690 | +var global = __webpack_require__(17); | |
| 691 | +var hide = __webpack_require__(29); | |
| 692 | +var has = __webpack_require__(61); | |
| 693 | +var SRC = __webpack_require__(67)('src'); | |
| 694 | +var $toString = __webpack_require__(144); | |
| 695 | +var TO_STRING = 'toString'; | |
| 696 | +var TPL = ('' + $toString).split(TO_STRING); | |
| 697 | + | |
| 698 | +__webpack_require__(55).inspectSource = function (it) { | |
| 699 | + return $toString.call(it); | |
| 700 | +}; | |
| 701 | + | |
| 702 | +(module.exports = function (O, key, val, safe) { | |
| 703 | + var isFunction = typeof val == 'function'; | |
| 704 | + if (isFunction) has(val, 'name') || hide(val, 'name', key); | |
| 705 | + if (O[key] === val) return; | |
| 706 | + if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key))); | |
| 707 | + if (O === global) { | |
| 708 | + O[key] = val; | |
| 709 | + } else if (!safe) { | |
| 710 | + delete O[key]; | |
| 711 | + hide(O, key, val); | |
| 712 | + } else if (O[key]) { | |
| 713 | + O[key] = val; | |
| 714 | + } else { | |
| 715 | + hide(O, key, val); | |
| 716 | + } | |
| 717 | +// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative | |
| 718 | +})(Function.prototype, TO_STRING, function toString() { | |
| 719 | + return typeof this == 'function' && this[SRC] || $toString.call(this); | |
| 720 | +}); | |
| 721 | + | |
| 722 | + | |
| 723 | +/***/ }), | |
| 724 | +/* 37 */, | |
| 725 | +/* 38 */ | |
| 726 | +/***/ (function(module, exports) { | |
| 727 | + | |
| 728 | +module.exports = function (it) { | |
| 729 | + if (typeof it != 'function') throw TypeError(it + ' is not a function!'); | |
| 730 | + return it; | |
| 731 | +}; | |
| 732 | + | |
| 733 | + | |
| 734 | +/***/ }), | |
| 735 | +/* 39 */ | |
| 736 | +/***/ (function(module, exports, __webpack_require__) { | |
| 737 | + | |
| 738 | +var dP = __webpack_require__(45).f; | |
| 739 | +var FProto = Function.prototype; | |
| 740 | +var nameRE = /^\s*function ([^ (]*)/; | |
| 741 | +var NAME = 'name'; | |
| 742 | + | |
| 743 | +// 19.2.4.2 name | |
| 744 | +NAME in FProto || __webpack_require__(27) && dP(FProto, NAME, { | |
| 745 | + configurable: true, | |
| 746 | + get: function () { | |
| 747 | + try { | |
| 748 | + return ('' + this).match(nameRE)[1]; | |
| 749 | + } catch (e) { | |
| 750 | + return ''; | |
| 195 | 751 | } |
| 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); | |
| 752 | + } | |
| 753 | +}); | |
| 203 | 754 | |
| 204 | - // Require it, unless it's forced to be `false`. | |
| 205 | - if (false !== args.parent) { | |
| 206 | - this.requireArgumentInstance('parent', elementorModules.editor.Container, args); | |
| 207 | - } | |
| 755 | + | |
| 756 | +/***/ }), | |
| 757 | +/* 40 */ | |
| 758 | +/***/ (function(module, exports, __webpack_require__) { | |
| 759 | + | |
| 760 | +// 19.1.2.14 / 15.2.3.14 Object.keys(O) | |
| 761 | +var $keys = __webpack_require__(116); | |
| 762 | +var enumBugKeys = __webpack_require__(78); | |
| 763 | + | |
| 764 | +module.exports = Object.keys || function keys(O) { | |
| 765 | + return $keys(O, enumBugKeys); | |
| 766 | +}; | |
| 767 | + | |
| 768 | + | |
| 769 | +/***/ }), | |
| 770 | +/* 41 */, | |
| 771 | +/* 42 */ | |
| 772 | +/***/ (function(module, exports) { | |
| 773 | + | |
| 774 | +// 7.2.1 RequireObjectCoercible(argument) | |
| 775 | +module.exports = function (it) { | |
| 776 | + if (it == undefined) throw TypeError("Can't call method on " + it); | |
| 777 | + return it; | |
| 778 | +}; | |
| 779 | + | |
| 780 | + | |
| 781 | +/***/ }), | |
| 782 | +/* 43 */ | |
| 783 | +/***/ (function(module, exports, __webpack_require__) { | |
| 784 | + | |
| 785 | +// 7.1.15 ToLength | |
| 786 | +var toInteger = __webpack_require__(57); | |
| 787 | +var min = Math.min; | |
| 788 | +module.exports = function (it) { | |
| 789 | + return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 | |
| 790 | +}; | |
| 791 | + | |
| 792 | + | |
| 793 | +/***/ }), | |
| 794 | +/* 44 */ | |
| 795 | +/***/ (function(module, exports) { | |
| 796 | + | |
| 797 | +module.exports = function (bitmap, value) { | |
| 798 | + return { | |
| 799 | + enumerable: !(bitmap & 1), | |
| 800 | + configurable: !(bitmap & 2), | |
| 801 | + writable: !(bitmap & 4), | |
| 802 | + value: value | |
| 803 | + }; | |
| 804 | +}; | |
| 805 | + | |
| 806 | + | |
| 807 | +/***/ }), | |
| 808 | +/* 45 */ | |
| 809 | +/***/ (function(module, exports, __webpack_require__) { | |
| 810 | + | |
| 811 | +var anObject = __webpack_require__(18); | |
| 812 | +var IE8_DOM_DEFINE = __webpack_require__(129); | |
| 813 | +var toPrimitive = __webpack_require__(123); | |
| 814 | +var dP = Object.defineProperty; | |
| 815 | + | |
| 816 | +exports.f = __webpack_require__(27) ? Object.defineProperty : function defineProperty(O, P, Attributes) { | |
| 817 | + anObject(O); | |
| 818 | + P = toPrimitive(P, true); | |
| 819 | + anObject(Attributes); | |
| 820 | + if (IE8_DOM_DEFINE) try { | |
| 821 | + return dP(O, P, Attributes); | |
| 822 | + } catch (e) { /* empty */ } | |
| 823 | + if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); | |
| 824 | + if ('value' in Attributes) O[P] = Attributes.value; | |
| 825 | + return O; | |
| 826 | +}; | |
| 827 | + | |
| 828 | + | |
| 829 | +/***/ }), | |
| 830 | +/* 46 */ | |
| 831 | +/***/ (function(module, exports) { | |
| 832 | + | |
| 833 | +var toString = {}.toString; | |
| 834 | + | |
| 835 | +module.exports = function (it) { | |
| 836 | + return toString.call(it).slice(8, -1); | |
| 837 | +}; | |
| 838 | + | |
| 839 | + | |
| 840 | +/***/ }), | |
| 841 | +/* 47 */ | |
| 842 | +/***/ (function(module, exports) { | |
| 843 | + | |
| 844 | +module.exports = true; | |
| 845 | + | |
| 846 | + | |
| 847 | +/***/ }), | |
| 848 | +/* 48 */ | |
| 849 | +/***/ (function(module, exports, __webpack_require__) { | |
| 850 | + | |
| 851 | +var _Symbol$iterator = __webpack_require__(151); | |
| 852 | + | |
| 853 | +var _Symbol = __webpack_require__(111); | |
| 854 | + | |
| 855 | +function _typeof(obj) { | |
| 856 | + "@babel/helpers - typeof"; | |
| 857 | + | |
| 858 | + if (typeof _Symbol === "function" && typeof _Symbol$iterator === "symbol") { | |
| 859 | + module.exports = _typeof = function _typeof(obj) { | |
| 860 | + return typeof obj; | |
| 861 | + }; | |
| 862 | + } else { | |
| 863 | + module.exports = _typeof = function _typeof(obj) { | |
| 864 | + return obj && typeof _Symbol === "function" && obj.constructor === _Symbol && obj !== _Symbol.prototype ? "symbol" : typeof obj; | |
| 865 | + }; | |
| 866 | + } | |
| 867 | + | |
| 868 | + return _typeof(obj); | |
| 869 | +} | |
| 870 | + | |
| 871 | +module.exports = _typeof; | |
| 872 | + | |
| 873 | +/***/ }), | |
| 874 | +/* 49 */ | |
| 875 | +/***/ (function(module, exports) { | |
| 876 | + | |
| 877 | +function _assertThisInitialized(self) { | |
| 878 | + if (self === void 0) { | |
| 879 | + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| 880 | + } | |
| 881 | + | |
| 882 | + return self; | |
| 883 | +} | |
| 884 | + | |
| 885 | +module.exports = _assertThisInitialized; | |
| 886 | + | |
| 887 | +/***/ }), | |
| 888 | +/* 50 */ | |
| 889 | +/***/ (function(module, exports) { | |
| 890 | + | |
| 891 | +exports.f = {}.propertyIsEnumerable; | |
| 892 | + | |
| 893 | + | |
| 894 | +/***/ }), | |
| 895 | +/* 51 */ | |
| 896 | +/***/ (function(module, exports, __webpack_require__) { | |
| 897 | + | |
| 898 | +var pIE = __webpack_require__(50); | |
| 899 | +var createDesc = __webpack_require__(44); | |
| 900 | +var toIObject = __webpack_require__(20); | |
| 901 | +var toPrimitive = __webpack_require__(74); | |
| 902 | +var has = __webpack_require__(19); | |
| 903 | +var IE8_DOM_DEFINE = __webpack_require__(114); | |
| 904 | +var gOPD = Object.getOwnPropertyDescriptor; | |
| 905 | + | |
| 906 | +exports.f = __webpack_require__(14) ? gOPD : function getOwnPropertyDescriptor(O, P) { | |
| 907 | + O = toIObject(O); | |
| 908 | + P = toPrimitive(P, true); | |
| 909 | + if (IE8_DOM_DEFINE) try { | |
| 910 | + return gOPD(O, P); | |
| 911 | + } catch (e) { /* empty */ } | |
| 912 | + if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); | |
| 913 | +}; | |
| 914 | + | |
| 915 | + | |
| 916 | +/***/ }), | |
| 917 | +/* 52 */ | |
| 918 | +/***/ (function(module, exports, __webpack_require__) { | |
| 919 | + | |
| 920 | +// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) | |
| 921 | +var anObject = __webpack_require__(13); | |
| 922 | +var dPs = __webpack_require__(135); | |
| 923 | +var enumBugKeys = __webpack_require__(78); | |
| 924 | +var IE_PROTO = __webpack_require__(75)('IE_PROTO'); | |
| 925 | +var Empty = function () { /* empty */ }; | |
| 926 | +var PROTOTYPE = 'prototype'; | |
| 927 | + | |
| 928 | +// Create object with fake `null` prototype: use iframe Object with cleared prototype | |
| 929 | +var createDict = function () { | |
| 930 | + // Thrash, waste and sodomy: IE GC bug | |
| 931 | + var iframe = __webpack_require__(92)('iframe'); | |
| 932 | + var i = enumBugKeys.length; | |
| 933 | + var lt = '<'; | |
| 934 | + var gt = '>'; | |
| 935 | + var iframeDocument; | |
| 936 | + iframe.style.display = 'none'; | |
| 937 | + __webpack_require__(131).appendChild(iframe); | |
| 938 | + iframe.src = 'javascript:'; // eslint-disable-line no-script-url | |
| 939 | + // createDict = iframe.contentWindow.Object; | |
| 940 | + // html.removeChild(iframe); | |
| 941 | + iframeDocument = iframe.contentWindow.document; | |
| 942 | + iframeDocument.open(); | |
| 943 | + iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); | |
| 944 | + iframeDocument.close(); | |
| 945 | + createDict = iframeDocument.F; | |
| 946 | + while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; | |
| 947 | + return createDict(); | |
| 948 | +}; | |
| 949 | + | |
| 950 | +module.exports = Object.create || function create(O, Properties) { | |
| 951 | + var result; | |
| 952 | + if (O !== null) { | |
| 953 | + Empty[PROTOTYPE] = anObject(O); | |
| 954 | + result = new Empty(); | |
| 955 | + Empty[PROTOTYPE] = null; | |
| 956 | + // add "__proto__" for Object.getPrototypeOf polyfill | |
| 957 | + result[IE_PROTO] = O; | |
| 958 | + } else result = createDict(); | |
| 959 | + return Properties === undefined ? result : dPs(result, Properties); | |
| 960 | +}; | |
| 961 | + | |
| 962 | + | |
| 963 | +/***/ }), | |
| 964 | +/* 53 */ | |
| 965 | +/***/ (function(module, exports, __webpack_require__) { | |
| 966 | + | |
| 967 | +var def = __webpack_require__(15).f; | |
| 968 | +var has = __webpack_require__(19); | |
| 969 | +var TAG = __webpack_require__(10)('toStringTag'); | |
| 970 | + | |
| 971 | +module.exports = function (it, tag, stat) { | |
| 972 | + if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag }); | |
| 973 | +}; | |
| 974 | + | |
| 975 | + | |
| 976 | +/***/ }), | |
| 977 | +/* 54 */ | |
| 978 | +/***/ (function(module, exports, __webpack_require__) { | |
| 979 | + | |
| 980 | +module.exports = __webpack_require__(239); | |
| 981 | + | |
| 982 | +/***/ }), | |
| 983 | +/* 55 */ | |
| 984 | +/***/ (function(module, exports) { | |
| 985 | + | |
| 986 | +var core = module.exports = { version: '2.6.11' }; | |
| 987 | +if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef | |
| 988 | + | |
| 989 | + | |
| 990 | +/***/ }), | |
| 991 | +/* 56 */ | |
| 992 | +/***/ (function(module, exports) { | |
| 993 | + | |
| 994 | +var toString = {}.toString; | |
| 995 | + | |
| 996 | +module.exports = function (it) { | |
| 997 | + return toString.call(it).slice(8, -1); | |
| 998 | +}; | |
| 999 | + | |
| 1000 | + | |
| 1001 | +/***/ }), | |
| 1002 | +/* 57 */ | |
| 1003 | +/***/ (function(module, exports) { | |
| 1004 | + | |
| 1005 | +// 7.1.4 ToInteger | |
| 1006 | +var ceil = Math.ceil; | |
| 1007 | +var floor = Math.floor; | |
| 1008 | +module.exports = function (it) { | |
| 1009 | + return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); | |
| 1010 | +}; | |
| 1011 | + | |
| 1012 | + | |
| 1013 | +/***/ }), | |
| 1014 | +/* 58 */, | |
| 1015 | +/* 59 */ | |
| 1016 | +/***/ (function(module, exports) { | |
| 1017 | + | |
| 1018 | +var id = 0; | |
| 1019 | +var px = Math.random(); | |
| 1020 | +module.exports = function (key) { | |
| 1021 | + return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); | |
| 1022 | +}; | |
| 1023 | + | |
| 1024 | + | |
| 1025 | +/***/ }), | |
| 1026 | +/* 60 */ | |
| 1027 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1028 | + | |
| 1029 | +"use strict"; | |
| 1030 | + | |
| 1031 | +var $at = __webpack_require__(173)(true); | |
| 1032 | + | |
| 1033 | +// 21.1.3.27 String.prototype[@@iterator]() | |
| 1034 | +__webpack_require__(108)(String, 'String', function (iterated) { | |
| 1035 | + this._t = String(iterated); // target | |
| 1036 | + this._i = 0; // next index | |
| 1037 | +// 21.1.5.2.1 %StringIteratorPrototype%.next() | |
| 1038 | +}, function () { | |
| 1039 | + var O = this._t; | |
| 1040 | + var index = this._i; | |
| 1041 | + var point; | |
| 1042 | + if (index >= O.length) return { value: undefined, done: true }; | |
| 1043 | + point = $at(O, index); | |
| 1044 | + this._i += point.length; | |
| 1045 | + return { value: point, done: false }; | |
| 1046 | +}); | |
| 1047 | + | |
| 1048 | + | |
| 1049 | +/***/ }), | |
| 1050 | +/* 61 */ | |
| 1051 | +/***/ (function(module, exports) { | |
| 1052 | + | |
| 1053 | +var hasOwnProperty = {}.hasOwnProperty; | |
| 1054 | +module.exports = function (it, key) { | |
| 1055 | + return hasOwnProperty.call(it, key); | |
| 1056 | +}; | |
| 1057 | + | |
| 1058 | + | |
| 1059 | +/***/ }), | |
| 1060 | +/* 62 */ | |
| 1061 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1062 | + | |
| 1063 | +__webpack_require__(175); | |
| 1064 | +var global = __webpack_require__(8); | |
| 1065 | +var hide = __webpack_require__(24); | |
| 1066 | +var Iterators = __webpack_require__(35); | |
| 1067 | +var TO_STRING_TAG = __webpack_require__(10)('toStringTag'); | |
| 1068 | + | |
| 1069 | +var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' + | |
| 1070 | + 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' + | |
| 1071 | + 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' + | |
| 1072 | + 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' + | |
| 1073 | + 'TextTrackList,TouchList').split(','); | |
| 1074 | + | |
| 1075 | +for (var i = 0; i < DOMIterables.length; i++) { | |
| 1076 | + var NAME = DOMIterables[i]; | |
| 1077 | + var Collection = global[NAME]; | |
| 1078 | + var proto = Collection && Collection.prototype; | |
| 1079 | + if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME); | |
| 1080 | + Iterators[NAME] = Iterators.Array; | |
| 1081 | +} | |
| 1082 | + | |
| 1083 | + | |
| 1084 | +/***/ }), | |
| 1085 | +/* 63 */ | |
| 1086 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1087 | + | |
| 1088 | +exports.f = __webpack_require__(10); | |
| 1089 | + | |
| 1090 | + | |
| 1091 | +/***/ }), | |
| 1092 | +/* 64 */ | |
| 1093 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1094 | + | |
| 1095 | +// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) | |
| 1096 | +var has = __webpack_require__(19); | |
| 1097 | +var toObject = __webpack_require__(32); | |
| 1098 | +var IE_PROTO = __webpack_require__(75)('IE_PROTO'); | |
| 1099 | +var ObjectProto = Object.prototype; | |
| 1100 | + | |
| 1101 | +module.exports = Object.getPrototypeOf || function (O) { | |
| 1102 | + O = toObject(O); | |
| 1103 | + if (has(O, IE_PROTO)) return O[IE_PROTO]; | |
| 1104 | + if (typeof O.constructor == 'function' && O instanceof O.constructor) { | |
| 1105 | + return O.constructor.prototype; | |
| 1106 | + } return O instanceof Object ? ObjectProto : null; | |
| 1107 | +}; | |
| 1108 | + | |
| 1109 | + | |
| 1110 | +/***/ }), | |
| 1111 | +/* 65 */ | |
| 1112 | +/***/ (function(module, exports) { | |
| 1113 | + | |
| 1114 | +// 7.2.1 RequireObjectCoercible(argument) | |
| 1115 | +module.exports = function (it) { | |
| 1116 | + if (it == undefined) throw TypeError("Can't call method on " + it); | |
| 1117 | + return it; | |
| 1118 | +}; | |
| 1119 | + | |
| 1120 | + | |
| 1121 | +/***/ }), | |
| 1122 | +/* 66 */ | |
| 1123 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1124 | + | |
| 1125 | +var core = __webpack_require__(55); | |
| 1126 | +var global = __webpack_require__(17); | |
| 1127 | +var SHARED = '__core-js_shared__'; | |
| 1128 | +var store = global[SHARED] || (global[SHARED] = {}); | |
| 1129 | + | |
| 1130 | +(module.exports = function (key, value) { | |
| 1131 | + return store[key] || (store[key] = value !== undefined ? value : {}); | |
| 1132 | +})('versions', []).push({ | |
| 1133 | + version: core.version, | |
| 1134 | + mode: __webpack_require__(110) ? 'pure' : 'global', | |
| 1135 | + copyright: '© 2019 Denis Pushkarev (zloirock.ru)' | |
| 1136 | +}); | |
| 1137 | + | |
| 1138 | + | |
| 1139 | +/***/ }), | |
| 1140 | +/* 67 */ | |
| 1141 | +/***/ (function(module, exports) { | |
| 1142 | + | |
| 1143 | +var id = 0; | |
| 1144 | +var px = Math.random(); | |
| 1145 | +module.exports = function (key) { | |
| 1146 | + return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); | |
| 1147 | +}; | |
| 1148 | + | |
| 1149 | + | |
| 1150 | +/***/ }), | |
| 1151 | +/* 68 */ | |
| 1152 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1153 | + | |
| 1154 | +// 7.1.15 ToLength | |
| 1155 | +var toInteger = __webpack_require__(77); | |
| 1156 | +var min = Math.min; | |
| 1157 | +module.exports = function (it) { | |
| 1158 | + return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 | |
| 1159 | +}; | |
| 1160 | + | |
| 1161 | + | |
| 1162 | +/***/ }), | |
| 1163 | +/* 69 */, | |
| 1164 | +/* 70 */ | |
| 1165 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1166 | + | |
| 1167 | +var META = __webpack_require__(59)('meta'); | |
| 1168 | +var isObject = __webpack_require__(9); | |
| 1169 | +var has = __webpack_require__(19); | |
| 1170 | +var setDesc = __webpack_require__(15).f; | |
| 1171 | +var id = 0; | |
| 1172 | +var isExtensible = Object.isExtensible || function () { | |
| 1173 | + return true; | |
| 1174 | +}; | |
| 1175 | +var FREEZE = !__webpack_require__(22)(function () { | |
| 1176 | + return isExtensible(Object.preventExtensions({})); | |
| 1177 | +}); | |
| 1178 | +var setMeta = function (it) { | |
| 1179 | + setDesc(it, META, { value: { | |
| 1180 | + i: 'O' + ++id, // object ID | |
| 1181 | + w: {} // weak collections IDs | |
| 1182 | + } }); | |
| 1183 | +}; | |
| 1184 | +var fastKey = function (it, create) { | |
| 1185 | + // return primitive with prefix | |
| 1186 | + if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; | |
| 1187 | + if (!has(it, META)) { | |
| 1188 | + // can't set metadata to uncaught frozen object | |
| 1189 | + if (!isExtensible(it)) return 'F'; | |
| 1190 | + // not necessary to add metadata | |
| 1191 | + if (!create) return 'E'; | |
| 1192 | + // add missing metadata | |
| 1193 | + setMeta(it); | |
| 1194 | + // return object ID | |
| 1195 | + } return it[META].i; | |
| 1196 | +}; | |
| 1197 | +var getWeak = function (it, create) { | |
| 1198 | + if (!has(it, META)) { | |
| 1199 | + // can't set metadata to uncaught frozen object | |
| 1200 | + if (!isExtensible(it)) return true; | |
| 1201 | + // not necessary to add metadata | |
| 1202 | + if (!create) return false; | |
| 1203 | + // add missing metadata | |
| 1204 | + setMeta(it); | |
| 1205 | + // return hash weak collections IDs | |
| 1206 | + } return it[META].w; | |
| 1207 | +}; | |
| 1208 | +// add metadata on freeze-family methods calling | |
| 1209 | +var onFreeze = function (it) { | |
| 1210 | + if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it); | |
| 1211 | + return it; | |
| 1212 | +}; | |
| 1213 | +var meta = module.exports = { | |
| 1214 | + KEY: META, | |
| 1215 | + NEED: false, | |
| 1216 | + fastKey: fastKey, | |
| 1217 | + getWeak: getWeak, | |
| 1218 | + onFreeze: onFreeze | |
| 1219 | +}; | |
| 1220 | + | |
| 1221 | + | |
| 1222 | +/***/ }), | |
| 1223 | +/* 71 */ | |
| 1224 | +/***/ (function(module, exports) { | |
| 1225 | + | |
| 1226 | +exports.f = Object.getOwnPropertySymbols; | |
| 1227 | + | |
| 1228 | + | |
| 1229 | +/***/ }), | |
| 1230 | +/* 72 */ | |
| 1231 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1232 | + | |
| 1233 | +"use strict"; | |
| 1234 | + | |
| 1235 | +// 19.1.3.6 Object.prototype.toString() | |
| 1236 | +var classof = __webpack_require__(113); | |
| 1237 | +var test = {}; | |
| 1238 | +test[__webpack_require__(12)('toStringTag')] = 'z'; | |
| 1239 | +if (test + '' != '[object z]') { | |
| 1240 | + __webpack_require__(36)(Object.prototype, 'toString', function toString() { | |
| 1241 | + return '[object ' + classof(this) + ']'; | |
| 1242 | + }, true); | |
| 1243 | +} | |
| 1244 | + | |
| 1245 | + | |
| 1246 | +/***/ }), | |
| 1247 | +/* 73 */ | |
| 1248 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1249 | + | |
| 1250 | +// optional / simple context binding | |
| 1251 | +var aFunction = __webpack_require__(91); | |
| 1252 | +module.exports = function (fn, that, length) { | |
| 1253 | + aFunction(fn); | |
| 1254 | + if (that === undefined) return fn; | |
| 1255 | + switch (length) { | |
| 1256 | + case 1: return function (a) { | |
| 1257 | + return fn.call(that, a); | |
| 1258 | + }; | |
| 1259 | + case 2: return function (a, b) { | |
| 1260 | + return fn.call(that, a, b); | |
| 1261 | + }; | |
| 1262 | + case 3: return function (a, b, c) { | |
| 1263 | + return fn.call(that, a, b, c); | |
| 1264 | + }; | |
| 1265 | + } | |
| 1266 | + return function (/* ...args */) { | |
| 1267 | + return fn.apply(that, arguments); | |
| 1268 | + }; | |
| 1269 | +}; | |
| 1270 | + | |
| 1271 | + | |
| 1272 | +/***/ }), | |
| 1273 | +/* 74 */ | |
| 1274 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1275 | + | |
| 1276 | +// 7.1.1 ToPrimitive(input [, PreferredType]) | |
| 1277 | +var isObject = __webpack_require__(9); | |
| 1278 | +// instead of the ES6 spec version, we didn't implement @@toPrimitive case | |
| 1279 | +// and the second argument - flag - preferred type is a string | |
| 1280 | +module.exports = function (it, S) { | |
| 1281 | + if (!isObject(it)) return it; | |
| 1282 | + var fn, val; | |
| 1283 | + if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; | |
| 1284 | + if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; | |
| 1285 | + if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; | |
| 1286 | + throw TypeError("Can't convert object to primitive value"); | |
| 1287 | +}; | |
| 1288 | + | |
| 1289 | + | |
| 1290 | +/***/ }), | |
| 1291 | +/* 75 */ | |
| 1292 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1293 | + | |
| 1294 | +var shared = __webpack_require__(76)('keys'); | |
| 1295 | +var uid = __webpack_require__(59); | |
| 1296 | +module.exports = function (key) { | |
| 1297 | + return shared[key] || (shared[key] = uid(key)); | |
| 1298 | +}; | |
| 1299 | + | |
| 1300 | + | |
| 1301 | +/***/ }), | |
| 1302 | +/* 76 */ | |
| 1303 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1304 | + | |
| 1305 | +var core = __webpack_require__(6); | |
| 1306 | +var global = __webpack_require__(8); | |
| 1307 | +var SHARED = '__core-js_shared__'; | |
| 1308 | +var store = global[SHARED] || (global[SHARED] = {}); | |
| 1309 | + | |
| 1310 | +(module.exports = function (key, value) { | |
| 1311 | + return store[key] || (store[key] = value !== undefined ? value : {}); | |
| 1312 | +})('versions', []).push({ | |
| 1313 | + version: core.version, | |
| 1314 | + mode: __webpack_require__(47) ? 'pure' : 'global', | |
| 1315 | + copyright: '© 2019 Denis Pushkarev (zloirock.ru)' | |
| 1316 | +}); | |
| 1317 | + | |
| 1318 | + | |
| 1319 | +/***/ }), | |
| 1320 | +/* 77 */ | |
| 1321 | +/***/ (function(module, exports) { | |
| 1322 | + | |
| 1323 | +// 7.1.4 ToInteger | |
| 1324 | +var ceil = Math.ceil; | |
| 1325 | +var floor = Math.floor; | |
| 1326 | +module.exports = function (it) { | |
| 1327 | + return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); | |
| 1328 | +}; | |
| 1329 | + | |
| 1330 | + | |
| 1331 | +/***/ }), | |
| 1332 | +/* 78 */ | |
| 1333 | +/***/ (function(module, exports) { | |
| 1334 | + | |
| 1335 | +// IE 8- don't enum bug keys | |
| 1336 | +module.exports = ( | |
| 1337 | + 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' | |
| 1338 | +).split(','); | |
| 1339 | + | |
| 1340 | + | |
| 1341 | +/***/ }), | |
| 1342 | +/* 79 */ | |
| 1343 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1344 | + | |
| 1345 | +var global = __webpack_require__(8); | |
| 1346 | +var core = __webpack_require__(6); | |
| 1347 | +var LIBRARY = __webpack_require__(47); | |
| 1348 | +var wksExt = __webpack_require__(63); | |
| 1349 | +var defineProperty = __webpack_require__(15).f; | |
| 1350 | +module.exports = function (name) { | |
| 1351 | + var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {}); | |
| 1352 | + if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) }); | |
| 1353 | +}; | |
| 1354 | + | |
| 1355 | + | |
| 1356 | +/***/ }), | |
| 1357 | +/* 80 */, | |
| 1358 | +/* 81 */ | |
| 1359 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1360 | + | |
| 1361 | +module.exports = __webpack_require__(220); | |
| 1362 | + | |
| 1363 | +/***/ }), | |
| 1364 | +/* 82 */, | |
| 1365 | +/* 83 */ | |
| 1366 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1367 | + | |
| 1368 | +// most Object methods by ES6 should accept primitives | |
| 1369 | +var $export = __webpack_require__(7); | |
| 1370 | +var core = __webpack_require__(6); | |
| 1371 | +var fails = __webpack_require__(22); | |
| 1372 | +module.exports = function (KEY, exec) { | |
| 1373 | + var fn = (core.Object || {})[KEY] || Object[KEY]; | |
| 1374 | + var exp = {}; | |
| 1375 | + exp[KEY] = exec(fn); | |
| 1376 | + $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp); | |
| 1377 | +}; | |
| 1378 | + | |
| 1379 | + | |
| 1380 | +/***/ }), | |
| 1381 | +/* 84 */ | |
| 1382 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1383 | + | |
| 1384 | +// 22.1.3.31 Array.prototype[@@unscopables] | |
| 1385 | +var UNSCOPABLES = __webpack_require__(12)('unscopables'); | |
| 1386 | +var ArrayProto = Array.prototype; | |
| 1387 | +if (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__(29)(ArrayProto, UNSCOPABLES, {}); | |
| 1388 | +module.exports = function (key) { | |
| 1389 | + ArrayProto[UNSCOPABLES][key] = true; | |
| 1390 | +}; | |
| 1391 | + | |
| 1392 | + | |
| 1393 | +/***/ }), | |
| 1394 | +/* 85 */, | |
| 1395 | +/* 86 */, | |
| 1396 | +/* 87 */ | |
| 1397 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1398 | + | |
| 1399 | +module.exports = __webpack_require__(269); | |
| 1400 | + | |
| 1401 | +/***/ }), | |
| 1402 | +/* 88 */, | |
| 1403 | +/* 89 */, | |
| 1404 | +/* 90 */, | |
| 1405 | +/* 91 */ | |
| 1406 | +/***/ (function(module, exports) { | |
| 1407 | + | |
| 1408 | +module.exports = function (it) { | |
| 1409 | + if (typeof it != 'function') throw TypeError(it + ' is not a function!'); | |
| 1410 | + return it; | |
| 1411 | +}; | |
| 1412 | + | |
| 1413 | + | |
| 1414 | +/***/ }), | |
| 1415 | +/* 92 */ | |
| 1416 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1417 | + | |
| 1418 | +var isObject = __webpack_require__(9); | |
| 1419 | +var document = __webpack_require__(8).document; | |
| 1420 | +// typeof document.createElement is 'object' in old IE | |
| 1421 | +var is = isObject(document) && isObject(document.createElement); | |
| 1422 | +module.exports = function (it) { | |
| 1423 | + return is ? document.createElement(it) : {}; | |
| 1424 | +}; | |
| 1425 | + | |
| 1426 | + | |
| 1427 | +/***/ }), | |
| 1428 | +/* 93 */ | |
| 1429 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1430 | + | |
| 1431 | +module.exports = __webpack_require__(24); | |
| 1432 | + | |
| 1433 | + | |
| 1434 | +/***/ }), | |
| 1435 | +/* 94 */, | |
| 1436 | +/* 95 */, | |
| 1437 | +/* 96 */ | |
| 1438 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1439 | + | |
| 1440 | +// 7.1.13 ToObject(argument) | |
| 1441 | +var defined = __webpack_require__(42); | |
| 1442 | +module.exports = function (it) { | |
| 1443 | + return Object(defined(it)); | |
| 1444 | +}; | |
| 1445 | + | |
| 1446 | + | |
| 1447 | +/***/ }), | |
| 1448 | +/* 97 */ | |
| 1449 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1450 | + | |
| 1451 | +// 7.2.2 IsArray(argument) | |
| 1452 | +var cof = __webpack_require__(56); | |
| 1453 | +module.exports = Array.isArray || function isArray(arg) { | |
| 1454 | + return cof(arg) == 'Array'; | |
| 1455 | +}; | |
| 1456 | + | |
| 1457 | + | |
| 1458 | +/***/ }), | |
| 1459 | +/* 98 */ | |
| 1460 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1461 | + | |
| 1462 | +// to indexed object, toObject with fallback for non-array-like ES3 strings | |
| 1463 | +var IObject = __webpack_require__(120); | |
| 1464 | +var defined = __webpack_require__(42); | |
| 1465 | +module.exports = function (it) { | |
| 1466 | + return IObject(defined(it)); | |
| 1467 | +}; | |
| 1468 | + | |
| 1469 | + | |
| 1470 | +/***/ }), | |
| 1471 | +/* 99 */ | |
| 1472 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1473 | + | |
| 1474 | +// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) | |
| 1475 | +var $keys = __webpack_require__(116); | |
| 1476 | +var hiddenKeys = __webpack_require__(78).concat('length', 'prototype'); | |
| 1477 | + | |
| 1478 | +exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { | |
| 1479 | + return $keys(O, hiddenKeys); | |
| 1480 | +}; | |
| 1481 | + | |
| 1482 | + | |
| 1483 | +/***/ }), | |
| 1484 | +/* 100 */ | |
| 1485 | +/***/ (function(module, exports) { | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | +/***/ }), | |
| 1490 | +/* 101 */ | |
| 1491 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1492 | + | |
| 1493 | +// getting tag from 19.1.3.6 Object.prototype.toString() | |
| 1494 | +var cof = __webpack_require__(56); | |
| 1495 | +var TAG = __webpack_require__(10)('toStringTag'); | |
| 1496 | +// ES3 wrong here | |
| 1497 | +var ARG = cof(function () { return arguments; }()) == 'Arguments'; | |
| 1498 | + | |
| 1499 | +// fallback for IE11 Script Access Denied error | |
| 1500 | +var tryGet = function (it, key) { | |
| 1501 | + try { | |
| 1502 | + return it[key]; | |
| 1503 | + } catch (e) { /* empty */ } | |
| 1504 | +}; | |
| 1505 | + | |
| 1506 | +module.exports = function (it) { | |
| 1507 | + var O, T, B; | |
| 1508 | + return it === undefined ? 'Undefined' : it === null ? 'Null' | |
| 1509 | + // @@toStringTag case | |
| 1510 | + : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T | |
| 1511 | + // builtinTag case | |
| 1512 | + : ARG ? cof(O) | |
| 1513 | + // ES3 arguments fallback | |
| 1514 | + : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B; | |
| 1515 | +}; | |
| 1516 | + | |
| 1517 | + | |
| 1518 | +/***/ }), | |
| 1519 | +/* 102 */ | |
| 1520 | +/***/ (function(module, exports) { | |
| 1521 | + | |
| 1522 | +module.exports = function (bitmap, value) { | |
| 1523 | + return { | |
| 1524 | + enumerable: !(bitmap & 1), | |
| 1525 | + configurable: !(bitmap & 2), | |
| 1526 | + writable: !(bitmap & 4), | |
| 1527 | + value: value | |
| 1528 | + }; | |
| 1529 | +}; | |
| 1530 | + | |
| 1531 | + | |
| 1532 | +/***/ }), | |
| 1533 | +/* 103 */ | |
| 1534 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1535 | + | |
| 1536 | +// fallback for non-array-like ES3 and non-enumerable old V8 strings | |
| 1537 | +var cof = __webpack_require__(56); | |
| 1538 | +// eslint-disable-next-line no-prototype-builtins | |
| 1539 | +module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { | |
| 1540 | + return cof(it) == 'String' ? it.split('') : Object(it); | |
| 1541 | +}; | |
| 1542 | + | |
| 1543 | + | |
| 1544 | +/***/ }), | |
| 1545 | +/* 104 */ | |
| 1546 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1547 | + | |
| 1548 | +var arrayWithHoles = __webpack_require__(247); | |
| 1549 | + | |
| 1550 | +var iterableToArrayLimit = __webpack_require__(248); | |
| 1551 | + | |
| 1552 | +var unsupportedIterableToArray = __webpack_require__(187); | |
| 1553 | + | |
| 1554 | +var nonIterableRest = __webpack_require__(251); | |
| 1555 | + | |
| 1556 | +function _slicedToArray(arr, i) { | |
| 1557 | + return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest(); | |
| 1558 | +} | |
| 1559 | + | |
| 1560 | +module.exports = _slicedToArray; | |
| 1561 | + | |
| 1562 | +/***/ }), | |
| 1563 | +/* 105 */, | |
| 1564 | +/* 106 */ | |
| 1565 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1566 | + | |
| 1567 | +"use strict"; | |
| 1568 | + | |
| 1569 | +// 21.2.5.3 get RegExp.prototype.flags | |
| 1570 | +var anObject = __webpack_require__(18); | |
| 1571 | +module.exports = function () { | |
| 1572 | + var that = anObject(this); | |
| 1573 | + var result = ''; | |
| 1574 | + if (that.global) result += 'g'; | |
| 1575 | + if (that.ignoreCase) result += 'i'; | |
| 1576 | + if (that.multiline) result += 'm'; | |
| 1577 | + if (that.unicode) result += 'u'; | |
| 1578 | + if (that.sticky) result += 'y'; | |
| 1579 | + return result; | |
| 1580 | +}; | |
| 1581 | + | |
| 1582 | + | |
| 1583 | +/***/ }), | |
| 1584 | +/* 107 */ | |
| 1585 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1586 | + | |
| 1587 | +module.exports = __webpack_require__(168); | |
| 1588 | + | |
| 1589 | +/***/ }), | |
| 1590 | +/* 108 */ | |
| 1591 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1592 | + | |
| 1593 | +"use strict"; | |
| 1594 | + | |
| 1595 | +var LIBRARY = __webpack_require__(47); | |
| 1596 | +var $export = __webpack_require__(7); | |
| 1597 | +var redefine = __webpack_require__(93); | |
| 1598 | +var hide = __webpack_require__(24); | |
| 1599 | +var Iterators = __webpack_require__(35); | |
| 1600 | +var $iterCreate = __webpack_require__(174); | |
| 1601 | +var setToStringTag = __webpack_require__(53); | |
| 1602 | +var getPrototypeOf = __webpack_require__(64); | |
| 1603 | +var ITERATOR = __webpack_require__(10)('iterator'); | |
| 1604 | +var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` | |
| 1605 | +var FF_ITERATOR = '@@iterator'; | |
| 1606 | +var KEYS = 'keys'; | |
| 1607 | +var VALUES = 'values'; | |
| 1608 | + | |
| 1609 | +var returnThis = function () { return this; }; | |
| 1610 | + | |
| 1611 | +module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { | |
| 1612 | + $iterCreate(Constructor, NAME, next); | |
| 1613 | + var getMethod = function (kind) { | |
| 1614 | + if (!BUGGY && kind in proto) return proto[kind]; | |
| 1615 | + switch (kind) { | |
| 1616 | + case KEYS: return function keys() { return new Constructor(this, kind); }; | |
| 1617 | + case VALUES: return function values() { return new Constructor(this, kind); }; | |
| 1618 | + } return function entries() { return new Constructor(this, kind); }; | |
| 1619 | + }; | |
| 1620 | + var TAG = NAME + ' Iterator'; | |
| 1621 | + var DEF_VALUES = DEFAULT == VALUES; | |
| 1622 | + var VALUES_BUG = false; | |
| 1623 | + var proto = Base.prototype; | |
| 1624 | + var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]; | |
| 1625 | + var $default = $native || getMethod(DEFAULT); | |
| 1626 | + var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined; | |
| 1627 | + var $anyNative = NAME == 'Array' ? proto.entries || $native : $native; | |
| 1628 | + var methods, key, IteratorPrototype; | |
| 1629 | + // Fix native | |
| 1630 | + if ($anyNative) { | |
| 1631 | + IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); | |
| 1632 | + if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) { | |
| 1633 | + // Set @@toStringTag to native iterators | |
| 1634 | + setToStringTag(IteratorPrototype, TAG, true); | |
| 1635 | + // fix for some old engines | |
| 1636 | + if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis); | |
| 208 | 1637 | } |
| 1638 | + } | |
| 1639 | + // fix Array#{values, @@iterator}.name in V8 / FF | |
| 1640 | + if (DEF_VALUES && $native && $native.name !== VALUES) { | |
| 1641 | + VALUES_BUG = true; | |
| 1642 | + $default = function values() { return $native.call(this); }; | |
| 1643 | + } | |
| 1644 | + // Define iterator | |
| 1645 | + if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) { | |
| 1646 | + hide(proto, ITERATOR, $default); | |
| 1647 | + } | |
| 1648 | + // Plug for library | |
| 1649 | + Iterators[NAME] = $default; | |
| 1650 | + Iterators[TAG] = returnThis; | |
| 1651 | + if (DEFAULT) { | |
| 1652 | + methods = { | |
| 1653 | + values: DEF_VALUES ? $default : getMethod(VALUES), | |
| 1654 | + keys: IS_SET ? $default : getMethod(KEYS), | |
| 1655 | + entries: $entries | |
| 1656 | + }; | |
| 1657 | + if (FORCED) for (key in methods) { | |
| 1658 | + if (!(key in proto)) redefine(proto, key, methods[key]); | |
| 1659 | + } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); | |
| 1660 | + } | |
| 1661 | + return methods; | |
| 1662 | +}; | |
| 209 | 1663 | |
| 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 | - } | |
| 242 | 1664 | |
| 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 | - } | |
| 1665 | +/***/ }), | |
| 1666 | +/* 109 */ | |
| 1667 | +/***/ (function(module, exports, __webpack_require__) { | |
| 287 | 1668 | |
| 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; | |
| 1669 | +var isObject = __webpack_require__(30); | |
| 1670 | +var document = __webpack_require__(17).document; | |
| 1671 | +// typeof document.createElement is 'object' in old IE | |
| 1672 | +var is = isObject(document) && isObject(document.createElement); | |
| 1673 | +module.exports = function (it) { | |
| 1674 | + return is ? document.createElement(it) : {}; | |
| 1675 | +}; | |
| 1676 | + | |
| 1677 | + | |
| 1678 | +/***/ }), | |
| 1679 | +/* 110 */ | |
| 1680 | +/***/ (function(module, exports) { | |
| 1681 | + | |
| 1682 | +module.exports = false; | |
| 1683 | + | |
| 1684 | + | |
| 1685 | +/***/ }), | |
| 1686 | +/* 111 */ | |
| 1687 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1688 | + | |
| 1689 | +module.exports = __webpack_require__(177); | |
| 1690 | + | |
| 1691 | +/***/ }), | |
| 1692 | +/* 112 */ | |
| 1693 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1694 | + | |
| 1695 | +var classof = __webpack_require__(101); | |
| 1696 | +var ITERATOR = __webpack_require__(10)('iterator'); | |
| 1697 | +var Iterators = __webpack_require__(35); | |
| 1698 | +module.exports = __webpack_require__(6).getIteratorMethod = function (it) { | |
| 1699 | + if (it != undefined) return it[ITERATOR] | |
| 1700 | + || it['@@iterator'] | |
| 1701 | + || Iterators[classof(it)]; | |
| 1702 | +}; | |
| 1703 | + | |
| 1704 | + | |
| 1705 | +/***/ }), | |
| 1706 | +/* 113 */ | |
| 1707 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1708 | + | |
| 1709 | +// getting tag from 19.1.3.6 Object.prototype.toString() | |
| 1710 | +var cof = __webpack_require__(46); | |
| 1711 | +var TAG = __webpack_require__(12)('toStringTag'); | |
| 1712 | +// ES3 wrong here | |
| 1713 | +var ARG = cof(function () { return arguments; }()) == 'Arguments'; | |
| 1714 | + | |
| 1715 | +// fallback for IE11 Script Access Denied error | |
| 1716 | +var tryGet = function (it, key) { | |
| 1717 | + try { | |
| 1718 | + return it[key]; | |
| 1719 | + } catch (e) { /* empty */ } | |
| 1720 | +}; | |
| 1721 | + | |
| 1722 | +module.exports = function (it) { | |
| 1723 | + var O, T, B; | |
| 1724 | + return it === undefined ? 'Undefined' : it === null ? 'Null' | |
| 1725 | + // @@toStringTag case | |
| 1726 | + : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T | |
| 1727 | + // builtinTag case | |
| 1728 | + : ARG ? cof(O) | |
| 1729 | + // ES3 arguments fallback | |
| 1730 | + : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B; | |
| 1731 | +}; | |
| 1732 | + | |
| 1733 | + | |
| 1734 | +/***/ }), | |
| 1735 | +/* 114 */ | |
| 1736 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1737 | + | |
| 1738 | +module.exports = !__webpack_require__(14) && !__webpack_require__(22)(function () { | |
| 1739 | + return Object.defineProperty(__webpack_require__(92)('div'), 'a', { get: function () { return 7; } }).a != 7; | |
| 1740 | +}); | |
| 1741 | + | |
| 1742 | + | |
| 1743 | +/***/ }), | |
| 1744 | +/* 115 */ | |
| 1745 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1746 | + | |
| 1747 | +module.exports = __webpack_require__(161); | |
| 1748 | + | |
| 1749 | +/***/ }), | |
| 1750 | +/* 116 */ | |
| 1751 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1752 | + | |
| 1753 | +var has = __webpack_require__(19); | |
| 1754 | +var toIObject = __webpack_require__(20); | |
| 1755 | +var arrayIndexOf = __webpack_require__(166)(false); | |
| 1756 | +var IE_PROTO = __webpack_require__(75)('IE_PROTO'); | |
| 1757 | + | |
| 1758 | +module.exports = function (object, names) { | |
| 1759 | + var O = toIObject(object); | |
| 1760 | + var i = 0; | |
| 1761 | + var result = []; | |
| 1762 | + var key; | |
| 1763 | + for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); | |
| 1764 | + // Don't enum bug & hidden keys | |
| 1765 | + while (names.length > i) if (has(O, key = names[i++])) { | |
| 1766 | + ~arrayIndexOf(result, key) || result.push(key); | |
| 1767 | + } | |
| 1768 | + return result; | |
| 1769 | +}; | |
| 1770 | + | |
| 1771 | + | |
| 1772 | +/***/ }), | |
| 1773 | +/* 117 */ | |
| 1774 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1775 | + | |
| 1776 | +"use strict"; | |
| 1777 | + | |
| 1778 | +var addToUnscopables = __webpack_require__(84); | |
| 1779 | +var step = __webpack_require__(241); | |
| 1780 | +var Iterators = __webpack_require__(118); | |
| 1781 | +var toIObject = __webpack_require__(98); | |
| 1782 | + | |
| 1783 | +// 22.1.3.4 Array.prototype.entries() | |
| 1784 | +// 22.1.3.13 Array.prototype.keys() | |
| 1785 | +// 22.1.3.29 Array.prototype.values() | |
| 1786 | +// 22.1.3.30 Array.prototype[@@iterator]() | |
| 1787 | +module.exports = __webpack_require__(197)(Array, 'Array', function (iterated, kind) { | |
| 1788 | + this._t = toIObject(iterated); // target | |
| 1789 | + this._i = 0; // next index | |
| 1790 | + this._k = kind; // kind | |
| 1791 | +// 22.1.5.2.1 %ArrayIteratorPrototype%.next() | |
| 1792 | +}, function () { | |
| 1793 | + var O = this._t; | |
| 1794 | + var kind = this._k; | |
| 1795 | + var index = this._i++; | |
| 1796 | + if (!O || index >= O.length) { | |
| 1797 | + this._t = undefined; | |
| 1798 | + return step(1); | |
| 1799 | + } | |
| 1800 | + if (kind == 'keys') return step(0, index); | |
| 1801 | + if (kind == 'values') return step(0, O[index]); | |
| 1802 | + return step(0, [index, O[index]]); | |
| 1803 | +}, 'values'); | |
| 1804 | + | |
| 1805 | +// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7) | |
| 1806 | +Iterators.Arguments = Iterators.Array; | |
| 1807 | + | |
| 1808 | +addToUnscopables('keys'); | |
| 1809 | +addToUnscopables('values'); | |
| 1810 | +addToUnscopables('entries'); | |
| 1811 | + | |
| 1812 | + | |
| 1813 | +/***/ }), | |
| 1814 | +/* 118 */ | |
| 1815 | +/***/ (function(module, exports) { | |
| 1816 | + | |
| 1817 | +module.exports = {}; | |
| 1818 | + | |
| 1819 | + | |
| 1820 | +/***/ }), | |
| 1821 | +/* 119 */, | |
| 1822 | +/* 120 */ | |
| 1823 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1824 | + | |
| 1825 | +// fallback for non-array-like ES3 and non-enumerable old V8 strings | |
| 1826 | +var cof = __webpack_require__(46); | |
| 1827 | +// eslint-disable-next-line no-prototype-builtins | |
| 1828 | +module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { | |
| 1829 | + return cof(it) == 'String' ? it.split('') : Object(it); | |
| 1830 | +}; | |
| 1831 | + | |
| 1832 | + | |
| 1833 | +/***/ }), | |
| 1834 | +/* 121 */, | |
| 1835 | +/* 122 */ | |
| 1836 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1837 | + | |
| 1838 | +// 7.2.8 IsRegExp(argument) | |
| 1839 | +var isObject = __webpack_require__(30); | |
| 1840 | +var cof = __webpack_require__(46); | |
| 1841 | +var MATCH = __webpack_require__(12)('match'); | |
| 1842 | +module.exports = function (it) { | |
| 1843 | + var isRegExp; | |
| 1844 | + return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp'); | |
| 1845 | +}; | |
| 1846 | + | |
| 1847 | + | |
| 1848 | +/***/ }), | |
| 1849 | +/* 123 */ | |
| 1850 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1851 | + | |
| 1852 | +// 7.1.1 ToPrimitive(input [, PreferredType]) | |
| 1853 | +var isObject = __webpack_require__(30); | |
| 1854 | +// instead of the ES6 spec version, we didn't implement @@toPrimitive case | |
| 1855 | +// and the second argument - flag - preferred type is a string | |
| 1856 | +module.exports = function (it, S) { | |
| 1857 | + if (!isObject(it)) return it; | |
| 1858 | + var fn, val; | |
| 1859 | + if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; | |
| 1860 | + if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; | |
| 1861 | + if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; | |
| 1862 | + throw TypeError("Can't convert object to primitive value"); | |
| 1863 | +}; | |
| 1864 | + | |
| 1865 | + | |
| 1866 | +/***/ }), | |
| 1867 | +/* 124 */ | |
| 1868 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1869 | + | |
| 1870 | +module.exports = __webpack_require__(191); | |
| 1871 | + | |
| 1872 | +/***/ }), | |
| 1873 | +/* 125 */, | |
| 1874 | +/* 126 */, | |
| 1875 | +/* 127 */, | |
| 1876 | +/* 128 */, | |
| 1877 | +/* 129 */ | |
| 1878 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1879 | + | |
| 1880 | +module.exports = !__webpack_require__(27) && !__webpack_require__(33)(function () { | |
| 1881 | + return Object.defineProperty(__webpack_require__(109)('div'), 'a', { get: function () { return 7; } }).a != 7; | |
| 1882 | +}); | |
| 1883 | + | |
| 1884 | + | |
| 1885 | +/***/ }), | |
| 1886 | +/* 130 */ | |
| 1887 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1888 | + | |
| 1889 | +var shared = __webpack_require__(66)('keys'); | |
| 1890 | +var uid = __webpack_require__(67); | |
| 1891 | +module.exports = function (key) { | |
| 1892 | + return shared[key] || (shared[key] = uid(key)); | |
| 1893 | +}; | |
| 1894 | + | |
| 1895 | + | |
| 1896 | +/***/ }), | |
| 1897 | +/* 131 */ | |
| 1898 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1899 | + | |
| 1900 | +var document = __webpack_require__(8).document; | |
| 1901 | +module.exports = document && document.documentElement; | |
| 1902 | + | |
| 1903 | + | |
| 1904 | +/***/ }), | |
| 1905 | +/* 132 */ | |
| 1906 | +/***/ (function(module, exports) { | |
| 1907 | + | |
| 1908 | +// fast apply, http://jsperf.lnkit.com/fast-apply/5 | |
| 1909 | +module.exports = function (fn, args, that) { | |
| 1910 | + var un = that === undefined; | |
| 1911 | + switch (args.length) { | |
| 1912 | + case 0: return un ? fn() | |
| 1913 | + : fn.call(that); | |
| 1914 | + case 1: return un ? fn(args[0]) | |
| 1915 | + : fn.call(that, args[0]); | |
| 1916 | + case 2: return un ? fn(args[0], args[1]) | |
| 1917 | + : fn.call(that, args[0], args[1]); | |
| 1918 | + case 3: return un ? fn(args[0], args[1], args[2]) | |
| 1919 | + : fn.call(that, args[0], args[1], args[2]); | |
| 1920 | + case 4: return un ? fn(args[0], args[1], args[2], args[3]) | |
| 1921 | + : fn.call(that, args[0], args[1], args[2], args[3]); | |
| 1922 | + } return fn.apply(that, args); | |
| 1923 | +}; | |
| 1924 | + | |
| 1925 | + | |
| 1926 | +/***/ }), | |
| 1927 | +/* 133 */, | |
| 1928 | +/* 134 */ | |
| 1929 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1930 | + | |
| 1931 | +"use strict"; | |
| 1932 | + | |
| 1933 | +// https://github.com/tc39/Array.prototype.includes | |
| 1934 | +var $export = __webpack_require__(34); | |
| 1935 | +var $includes = __webpack_require__(142)(true); | |
| 1936 | + | |
| 1937 | +$export($export.P, 'Array', { | |
| 1938 | + includes: function includes(el /* , fromIndex = 0 */) { | |
| 1939 | + return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined); | |
| 1940 | + } | |
| 1941 | +}); | |
| 1942 | + | |
| 1943 | +__webpack_require__(84)('includes'); | |
| 1944 | + | |
| 1945 | + | |
| 1946 | +/***/ }), | |
| 1947 | +/* 135 */ | |
| 1948 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1949 | + | |
| 1950 | +var dP = __webpack_require__(15); | |
| 1951 | +var anObject = __webpack_require__(13); | |
| 1952 | +var getKeys = __webpack_require__(40); | |
| 1953 | + | |
| 1954 | +module.exports = __webpack_require__(14) ? Object.defineProperties : function defineProperties(O, Properties) { | |
| 1955 | + anObject(O); | |
| 1956 | + var keys = getKeys(Properties); | |
| 1957 | + var length = keys.length; | |
| 1958 | + var i = 0; | |
| 1959 | + var P; | |
| 1960 | + while (length > i) dP.f(O, P = keys[i++], Properties[P]); | |
| 1961 | + return O; | |
| 1962 | +}; | |
| 1963 | + | |
| 1964 | + | |
| 1965 | +/***/ }), | |
| 1966 | +/* 136 */ | |
| 1967 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1968 | + | |
| 1969 | +var _Object$setPrototypeOf = __webpack_require__(115); | |
| 1970 | + | |
| 1971 | +function _setPrototypeOf(o, p) { | |
| 1972 | + module.exports = _setPrototypeOf = _Object$setPrototypeOf || function _setPrototypeOf(o, p) { | |
| 1973 | + o.__proto__ = p; | |
| 1974 | + return o; | |
| 1975 | + }; | |
| 1976 | + | |
| 1977 | + return _setPrototypeOf(o, p); | |
| 1978 | +} | |
| 1979 | + | |
| 1980 | +module.exports = _setPrototypeOf; | |
| 1981 | + | |
| 1982 | +/***/ }), | |
| 1983 | +/* 137 */, | |
| 1984 | +/* 138 */ | |
| 1985 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1986 | + | |
| 1987 | +module.exports = __webpack_require__(164); | |
| 1988 | + | |
| 1989 | +/***/ }), | |
| 1990 | +/* 139 */ | |
| 1991 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1992 | + | |
| 1993 | +"use strict"; | |
| 1994 | + | |
| 1995 | +// ECMAScript 6 symbols shim | |
| 1996 | +var global = __webpack_require__(8); | |
| 1997 | +var has = __webpack_require__(19); | |
| 1998 | +var DESCRIPTORS = __webpack_require__(14); | |
| 1999 | +var $export = __webpack_require__(7); | |
| 2000 | +var redefine = __webpack_require__(93); | |
| 2001 | +var META = __webpack_require__(70).KEY; | |
| 2002 | +var $fails = __webpack_require__(22); | |
| 2003 | +var shared = __webpack_require__(76); | |
| 2004 | +var setToStringTag = __webpack_require__(53); | |
| 2005 | +var uid = __webpack_require__(59); | |
| 2006 | +var wks = __webpack_require__(10); | |
| 2007 | +var wksExt = __webpack_require__(63); | |
| 2008 | +var wksDefine = __webpack_require__(79); | |
| 2009 | +var enumKeys = __webpack_require__(178); | |
| 2010 | +var isArray = __webpack_require__(97); | |
| 2011 | +var anObject = __webpack_require__(13); | |
| 2012 | +var isObject = __webpack_require__(9); | |
| 2013 | +var toObject = __webpack_require__(32); | |
| 2014 | +var toIObject = __webpack_require__(20); | |
| 2015 | +var toPrimitive = __webpack_require__(74); | |
| 2016 | +var createDesc = __webpack_require__(44); | |
| 2017 | +var _create = __webpack_require__(52); | |
| 2018 | +var gOPNExt = __webpack_require__(179); | |
| 2019 | +var $GOPD = __webpack_require__(51); | |
| 2020 | +var $GOPS = __webpack_require__(71); | |
| 2021 | +var $DP = __webpack_require__(15); | |
| 2022 | +var $keys = __webpack_require__(40); | |
| 2023 | +var gOPD = $GOPD.f; | |
| 2024 | +var dP = $DP.f; | |
| 2025 | +var gOPN = gOPNExt.f; | |
| 2026 | +var $Symbol = global.Symbol; | |
| 2027 | +var $JSON = global.JSON; | |
| 2028 | +var _stringify = $JSON && $JSON.stringify; | |
| 2029 | +var PROTOTYPE = 'prototype'; | |
| 2030 | +var HIDDEN = wks('_hidden'); | |
| 2031 | +var TO_PRIMITIVE = wks('toPrimitive'); | |
| 2032 | +var isEnum = {}.propertyIsEnumerable; | |
| 2033 | +var SymbolRegistry = shared('symbol-registry'); | |
| 2034 | +var AllSymbols = shared('symbols'); | |
| 2035 | +var OPSymbols = shared('op-symbols'); | |
| 2036 | +var ObjectProto = Object[PROTOTYPE]; | |
| 2037 | +var USE_NATIVE = typeof $Symbol == 'function' && !!$GOPS.f; | |
| 2038 | +var QObject = global.QObject; | |
| 2039 | +// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173 | |
| 2040 | +var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild; | |
| 2041 | + | |
| 2042 | +// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687 | |
| 2043 | +var setSymbolDesc = DESCRIPTORS && $fails(function () { | |
| 2044 | + return _create(dP({}, 'a', { | |
| 2045 | + get: function () { return dP(this, 'a', { value: 7 }).a; } | |
| 2046 | + })).a != 7; | |
| 2047 | +}) ? function (it, key, D) { | |
| 2048 | + var protoDesc = gOPD(ObjectProto, key); | |
| 2049 | + if (protoDesc) delete ObjectProto[key]; | |
| 2050 | + dP(it, key, D); | |
| 2051 | + if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc); | |
| 2052 | +} : dP; | |
| 2053 | + | |
| 2054 | +var wrap = function (tag) { | |
| 2055 | + var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]); | |
| 2056 | + sym._k = tag; | |
| 2057 | + return sym; | |
| 2058 | +}; | |
| 2059 | + | |
| 2060 | +var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) { | |
| 2061 | + return typeof it == 'symbol'; | |
| 2062 | +} : function (it) { | |
| 2063 | + return it instanceof $Symbol; | |
| 2064 | +}; | |
| 2065 | + | |
| 2066 | +var $defineProperty = function defineProperty(it, key, D) { | |
| 2067 | + if (it === ObjectProto) $defineProperty(OPSymbols, key, D); | |
| 2068 | + anObject(it); | |
| 2069 | + key = toPrimitive(key, true); | |
| 2070 | + anObject(D); | |
| 2071 | + if (has(AllSymbols, key)) { | |
| 2072 | + if (!D.enumerable) { | |
| 2073 | + if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {})); | |
| 2074 | + it[HIDDEN][key] = true; | |
| 2075 | + } else { | |
| 2076 | + if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false; | |
| 2077 | + D = _create(D, { enumerable: createDesc(0, false) }); | |
| 2078 | + } return setSymbolDesc(it, key, D); | |
| 2079 | + } return dP(it, key, D); | |
| 2080 | +}; | |
| 2081 | +var $defineProperties = function defineProperties(it, P) { | |
| 2082 | + anObject(it); | |
| 2083 | + var keys = enumKeys(P = toIObject(P)); | |
| 2084 | + var i = 0; | |
| 2085 | + var l = keys.length; | |
| 2086 | + var key; | |
| 2087 | + while (l > i) $defineProperty(it, key = keys[i++], P[key]); | |
| 2088 | + return it; | |
| 2089 | +}; | |
| 2090 | +var $create = function create(it, P) { | |
| 2091 | + return P === undefined ? _create(it) : $defineProperties(_create(it), P); | |
| 2092 | +}; | |
| 2093 | +var $propertyIsEnumerable = function propertyIsEnumerable(key) { | |
| 2094 | + var E = isEnum.call(this, key = toPrimitive(key, true)); | |
| 2095 | + if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false; | |
| 2096 | + return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true; | |
| 2097 | +}; | |
| 2098 | +var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) { | |
| 2099 | + it = toIObject(it); | |
| 2100 | + key = toPrimitive(key, true); | |
| 2101 | + if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return; | |
| 2102 | + var D = gOPD(it, key); | |
| 2103 | + if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true; | |
| 2104 | + return D; | |
| 2105 | +}; | |
| 2106 | +var $getOwnPropertyNames = function getOwnPropertyNames(it) { | |
| 2107 | + var names = gOPN(toIObject(it)); | |
| 2108 | + var result = []; | |
| 2109 | + var i = 0; | |
| 2110 | + var key; | |
| 2111 | + while (names.length > i) { | |
| 2112 | + if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key); | |
| 2113 | + } return result; | |
| 2114 | +}; | |
| 2115 | +var $getOwnPropertySymbols = function getOwnPropertySymbols(it) { | |
| 2116 | + var IS_OP = it === ObjectProto; | |
| 2117 | + var names = gOPN(IS_OP ? OPSymbols : toIObject(it)); | |
| 2118 | + var result = []; | |
| 2119 | + var i = 0; | |
| 2120 | + var key; | |
| 2121 | + while (names.length > i) { | |
| 2122 | + if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]); | |
| 2123 | + } return result; | |
| 2124 | +}; | |
| 2125 | + | |
| 2126 | +// 19.4.1.1 Symbol([description]) | |
| 2127 | +if (!USE_NATIVE) { | |
| 2128 | + $Symbol = function Symbol() { | |
| 2129 | + if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!'); | |
| 2130 | + var tag = uid(arguments.length > 0 ? arguments[0] : undefined); | |
| 2131 | + var $set = function (value) { | |
| 2132 | + if (this === ObjectProto) $set.call(OPSymbols, value); | |
| 2133 | + if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false; | |
| 2134 | + setSymbolDesc(this, tag, createDesc(1, value)); | |
| 2135 | + }; | |
| 2136 | + if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set }); | |
| 2137 | + return wrap(tag); | |
| 2138 | + }; | |
| 2139 | + redefine($Symbol[PROTOTYPE], 'toString', function toString() { | |
| 2140 | + return this._k; | |
| 2141 | + }); | |
| 2142 | + | |
| 2143 | + $GOPD.f = $getOwnPropertyDescriptor; | |
| 2144 | + $DP.f = $defineProperty; | |
| 2145 | + __webpack_require__(99).f = gOPNExt.f = $getOwnPropertyNames; | |
| 2146 | + __webpack_require__(50).f = $propertyIsEnumerable; | |
| 2147 | + $GOPS.f = $getOwnPropertySymbols; | |
| 2148 | + | |
| 2149 | + if (DESCRIPTORS && !__webpack_require__(47)) { | |
| 2150 | + redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true); | |
| 2151 | + } | |
| 2152 | + | |
| 2153 | + wksExt.f = function (name) { | |
| 2154 | + return wrap(wks(name)); | |
| 2155 | + }; | |
| 2156 | +} | |
| 2157 | + | |
| 2158 | +$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol }); | |
| 2159 | + | |
| 2160 | +for (var es6Symbols = ( | |
| 2161 | + // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14 | |
| 2162 | + 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables' | |
| 2163 | +).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]); | |
| 2164 | + | |
| 2165 | +for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]); | |
| 2166 | + | |
| 2167 | +$export($export.S + $export.F * !USE_NATIVE, 'Symbol', { | |
| 2168 | + // 19.4.2.1 Symbol.for(key) | |
| 2169 | + 'for': function (key) { | |
| 2170 | + return has(SymbolRegistry, key += '') | |
| 2171 | + ? SymbolRegistry[key] | |
| 2172 | + : SymbolRegistry[key] = $Symbol(key); | |
| 2173 | + }, | |
| 2174 | + // 19.4.2.5 Symbol.keyFor(sym) | |
| 2175 | + keyFor: function keyFor(sym) { | |
| 2176 | + if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!'); | |
| 2177 | + for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key; | |
| 2178 | + }, | |
| 2179 | + useSetter: function () { setter = true; }, | |
| 2180 | + useSimple: function () { setter = false; } | |
| 2181 | +}); | |
| 2182 | + | |
| 2183 | +$export($export.S + $export.F * !USE_NATIVE, 'Object', { | |
| 2184 | + // 19.1.2.2 Object.create(O [, Properties]) | |
| 2185 | + create: $create, | |
| 2186 | + // 19.1.2.4 Object.defineProperty(O, P, Attributes) | |
| 2187 | + defineProperty: $defineProperty, | |
| 2188 | + // 19.1.2.3 Object.defineProperties(O, Properties) | |
| 2189 | + defineProperties: $defineProperties, | |
| 2190 | + // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P) | |
| 2191 | + getOwnPropertyDescriptor: $getOwnPropertyDescriptor, | |
| 2192 | + // 19.1.2.7 Object.getOwnPropertyNames(O) | |
| 2193 | + getOwnPropertyNames: $getOwnPropertyNames, | |
| 2194 | + // 19.1.2.8 Object.getOwnPropertySymbols(O) | |
| 2195 | + getOwnPropertySymbols: $getOwnPropertySymbols | |
| 2196 | +}); | |
| 2197 | + | |
| 2198 | +// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives | |
| 2199 | +// https://bugs.chromium.org/p/v8/issues/detail?id=3443 | |
| 2200 | +var FAILS_ON_PRIMITIVES = $fails(function () { $GOPS.f(1); }); | |
| 2201 | + | |
| 2202 | +$export($export.S + $export.F * FAILS_ON_PRIMITIVES, 'Object', { | |
| 2203 | + getOwnPropertySymbols: function getOwnPropertySymbols(it) { | |
| 2204 | + return $GOPS.f(toObject(it)); | |
| 2205 | + } | |
| 2206 | +}); | |
| 2207 | + | |
| 2208 | +// 24.3.2 JSON.stringify(value [, replacer [, space]]) | |
| 2209 | +$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () { | |
| 2210 | + var S = $Symbol(); | |
| 2211 | + // MS Edge converts symbol values to JSON as {} | |
| 2212 | + // WebKit converts symbol values to JSON as null | |
| 2213 | + // V8 throws on boxed symbols | |
| 2214 | + return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}'; | |
| 2215 | +})), 'JSON', { | |
| 2216 | + stringify: function stringify(it) { | |
| 2217 | + var args = [it]; | |
| 2218 | + var i = 1; | |
| 2219 | + var replacer, $replacer; | |
| 2220 | + while (arguments.length > i) args.push(arguments[i++]); | |
| 2221 | + $replacer = replacer = args[1]; | |
| 2222 | + if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined | |
| 2223 | + if (!isArray(replacer)) replacer = function (key, value) { | |
| 2224 | + if (typeof $replacer == 'function') value = $replacer.call(this, key, value); | |
| 2225 | + if (!isSymbol(value)) return value; | |
| 2226 | + }; | |
| 2227 | + args[1] = replacer; | |
| 2228 | + return _stringify.apply($JSON, args); | |
| 2229 | + } | |
| 2230 | +}); | |
| 2231 | + | |
| 2232 | +// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint) | |
| 2233 | +$Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(24)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf); | |
| 2234 | +// 19.4.3.5 Symbol.prototype[@@toStringTag] | |
| 2235 | +setToStringTag($Symbol, 'Symbol'); | |
| 2236 | +// 20.2.1.9 Math[@@toStringTag] | |
| 2237 | +setToStringTag(Math, 'Math', true); | |
| 2238 | +// 24.3.3 JSON[@@toStringTag] | |
| 2239 | +setToStringTag(global.JSON, 'JSON', true); | |
| 2240 | + | |
| 2241 | + | |
| 2242 | +/***/ }), | |
| 2243 | +/* 140 */ | |
| 2244 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2245 | + | |
| 2246 | +// call something on iterator step with safe closing on error | |
| 2247 | +var anObject = __webpack_require__(13); | |
| 2248 | +module.exports = function (iterator, fn, value, entries) { | |
| 2249 | + try { | |
| 2250 | + return entries ? fn(anObject(value)[0], value[1]) : fn(value); | |
| 2251 | + // 7.4.6 IteratorClose(iterator, completion) | |
| 2252 | + } catch (e) { | |
| 2253 | + var ret = iterator['return']; | |
| 2254 | + if (ret !== undefined) anObject(ret.call(iterator)); | |
| 2255 | + throw e; | |
| 2256 | + } | |
| 2257 | +}; | |
| 2258 | + | |
| 2259 | + | |
| 2260 | +/***/ }), | |
| 2261 | +/* 141 */ | |
| 2262 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2263 | + | |
| 2264 | +// check on default Array iterator | |
| 2265 | +var Iterators = __webpack_require__(35); | |
| 2266 | +var ITERATOR = __webpack_require__(10)('iterator'); | |
| 2267 | +var ArrayProto = Array.prototype; | |
| 2268 | + | |
| 2269 | +module.exports = function (it) { | |
| 2270 | + return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it); | |
| 2271 | +}; | |
| 2272 | + | |
| 2273 | + | |
| 2274 | +/***/ }), | |
| 2275 | +/* 142 */ | |
| 2276 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2277 | + | |
| 2278 | +// false -> Array#indexOf | |
| 2279 | +// true -> Array#includes | |
| 2280 | +var toIObject = __webpack_require__(98); | |
| 2281 | +var toLength = __webpack_require__(43); | |
| 2282 | +var toAbsoluteIndex = __webpack_require__(198); | |
| 2283 | +module.exports = function (IS_INCLUDES) { | |
| 2284 | + return function ($this, el, fromIndex) { | |
| 2285 | + var O = toIObject($this); | |
| 2286 | + var length = toLength(O.length); | |
| 2287 | + var index = toAbsoluteIndex(fromIndex, length); | |
| 2288 | + var value; | |
| 2289 | + // Array#includes uses SameValueZero equality algorithm | |
| 2290 | + // eslint-disable-next-line no-self-compare | |
| 2291 | + if (IS_INCLUDES && el != el) while (length > index) { | |
| 2292 | + value = O[index++]; | |
| 2293 | + // eslint-disable-next-line no-self-compare | |
| 2294 | + if (value != value) return true; | |
| 2295 | + // Array#indexOf ignores holes, Array#includes - not | |
| 2296 | + } else for (;length > index; index++) if (IS_INCLUDES || index in O) { | |
| 2297 | + if (O[index] === el) return IS_INCLUDES || index || 0; | |
| 2298 | + } return !IS_INCLUDES && -1; | |
| 2299 | + }; | |
| 2300 | +}; | |
| 2301 | + | |
| 2302 | + | |
| 2303 | +/***/ }), | |
| 2304 | +/* 143 */, | |
| 2305 | +/* 144 */ | |
| 2306 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2307 | + | |
| 2308 | +module.exports = __webpack_require__(66)('native-function-to-string', Function.toString); | |
| 2309 | + | |
| 2310 | + | |
| 2311 | +/***/ }), | |
| 2312 | +/* 145 */, | |
| 2313 | +/* 146 */ | |
| 2314 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2315 | + | |
| 2316 | +var $iterators = __webpack_require__(117); | |
| 2317 | +var getKeys = __webpack_require__(184); | |
| 2318 | +var redefine = __webpack_require__(36); | |
| 2319 | +var global = __webpack_require__(17); | |
| 2320 | +var hide = __webpack_require__(29); | |
| 2321 | +var Iterators = __webpack_require__(118); | |
| 2322 | +var wks = __webpack_require__(12); | |
| 2323 | +var ITERATOR = wks('iterator'); | |
| 2324 | +var TO_STRING_TAG = wks('toStringTag'); | |
| 2325 | +var ArrayValues = Iterators.Array; | |
| 2326 | + | |
| 2327 | +var DOMIterables = { | |
| 2328 | + CSSRuleList: true, // TODO: Not spec compliant, should be false. | |
| 2329 | + CSSStyleDeclaration: false, | |
| 2330 | + CSSValueList: false, | |
| 2331 | + ClientRectList: false, | |
| 2332 | + DOMRectList: false, | |
| 2333 | + DOMStringList: false, | |
| 2334 | + DOMTokenList: true, | |
| 2335 | + DataTransferItemList: false, | |
| 2336 | + FileList: false, | |
| 2337 | + HTMLAllCollection: false, | |
| 2338 | + HTMLCollection: false, | |
| 2339 | + HTMLFormElement: false, | |
| 2340 | + HTMLSelectElement: false, | |
| 2341 | + MediaList: true, // TODO: Not spec compliant, should be false. | |
| 2342 | + MimeTypeArray: false, | |
| 2343 | + NamedNodeMap: false, | |
| 2344 | + NodeList: true, | |
| 2345 | + PaintRequestList: false, | |
| 2346 | + Plugin: false, | |
| 2347 | + PluginArray: false, | |
| 2348 | + SVGLengthList: false, | |
| 2349 | + SVGNumberList: false, | |
| 2350 | + SVGPathSegList: false, | |
| 2351 | + SVGPointList: false, | |
| 2352 | + SVGStringList: false, | |
| 2353 | + SVGTransformList: false, | |
| 2354 | + SourceBufferList: false, | |
| 2355 | + StyleSheetList: true, // TODO: Not spec compliant, should be false. | |
| 2356 | + TextTrackCueList: false, | |
| 2357 | + TextTrackList: false, | |
| 2358 | + TouchList: false | |
| 2359 | +}; | |
| 2360 | + | |
| 2361 | +for (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++) { | |
| 2362 | + var NAME = collections[i]; | |
| 2363 | + var explicit = DOMIterables[NAME]; | |
| 2364 | + var Collection = global[NAME]; | |
| 2365 | + var proto = Collection && Collection.prototype; | |
| 2366 | + var key; | |
| 2367 | + if (proto) { | |
| 2368 | + if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues); | |
| 2369 | + if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME); | |
| 2370 | + Iterators[NAME] = ArrayValues; | |
| 2371 | + if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true); | |
| 2372 | + } | |
| 2373 | +} | |
| 2374 | + | |
| 2375 | + | |
| 2376 | +/***/ }), | |
| 2377 | +/* 147 */ | |
| 2378 | +/***/ (function(module, exports) { | |
| 2379 | + | |
| 2380 | +// IE 8- don't enum bug keys | |
| 2381 | +module.exports = ( | |
| 2382 | + 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' | |
| 2383 | +).split(','); | |
| 2384 | + | |
| 2385 | + | |
| 2386 | +/***/ }), | |
| 2387 | +/* 148 */ | |
| 2388 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2389 | + | |
| 2390 | +var _Reflect$construct = __webpack_require__(107); | |
| 2391 | + | |
| 2392 | +function _isNativeReflectConstruct() { | |
| 2393 | + if (typeof Reflect === "undefined" || !_Reflect$construct) return false; | |
| 2394 | + if (_Reflect$construct.sham) return false; | |
| 2395 | + if (typeof Proxy === "function") return true; | |
| 2396 | + | |
| 2397 | + try { | |
| 2398 | + Date.prototype.toString.call(_Reflect$construct(Date, [], function () {})); | |
| 2399 | + return true; | |
| 2400 | + } catch (e) { | |
| 2401 | + return false; | |
| 2402 | + } | |
| 2403 | +} | |
| 2404 | + | |
| 2405 | +module.exports = _isNativeReflectConstruct; | |
| 2406 | + | |
| 2407 | +/***/ }), | |
| 2408 | +/* 149 */ | |
| 2409 | +/***/ (function(module, exports) { | |
| 2410 | + | |
| 2411 | +module.exports = function (done, value) { | |
| 2412 | + return { value: value, done: !!done }; | |
| 2413 | +}; | |
| 2414 | + | |
| 2415 | + | |
| 2416 | +/***/ }), | |
| 2417 | +/* 150 */, | |
| 2418 | +/* 151 */ | |
| 2419 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2420 | + | |
| 2421 | +module.exports = __webpack_require__(172); | |
| 2422 | + | |
| 2423 | +/***/ }), | |
| 2424 | +/* 152 */ | |
| 2425 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2426 | + | |
| 2427 | +var ITERATOR = __webpack_require__(10)('iterator'); | |
| 2428 | +var SAFE_CLOSING = false; | |
| 2429 | + | |
| 2430 | +try { | |
| 2431 | + var riter = [7][ITERATOR](); | |
| 2432 | + riter['return'] = function () { SAFE_CLOSING = true; }; | |
| 2433 | + // eslint-disable-next-line no-throw-literal | |
| 2434 | + Array.from(riter, function () { throw 2; }); | |
| 2435 | +} catch (e) { /* empty */ } | |
| 2436 | + | |
| 2437 | +module.exports = function (exec, skipClosing) { | |
| 2438 | + if (!skipClosing && !SAFE_CLOSING) return false; | |
| 2439 | + var safe = false; | |
| 2440 | + try { | |
| 2441 | + var arr = [7]; | |
| 2442 | + var iter = arr[ITERATOR](); | |
| 2443 | + iter.next = function () { return { done: safe = true }; }; | |
| 2444 | + arr[ITERATOR] = function () { return iter; }; | |
| 2445 | + exec(arr); | |
| 2446 | + } catch (e) { /* empty */ } | |
| 2447 | + return safe; | |
| 2448 | +}; | |
| 2449 | + | |
| 2450 | + | |
| 2451 | +/***/ }), | |
| 2452 | +/* 153 */ | |
| 2453 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2454 | + | |
| 2455 | +var def = __webpack_require__(45).f; | |
| 2456 | +var has = __webpack_require__(61); | |
| 2457 | +var TAG = __webpack_require__(12)('toStringTag'); | |
| 2458 | + | |
| 2459 | +module.exports = function (it, tag, stat) { | |
| 2460 | + if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag }); | |
| 2461 | +}; | |
| 2462 | + | |
| 2463 | + | |
| 2464 | +/***/ }), | |
| 2465 | +/* 154 */, | |
| 2466 | +/* 155 */ | |
| 2467 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2468 | + | |
| 2469 | +"use strict"; | |
| 2470 | +// 21.1.3.7 String.prototype.includes(searchString, position = 0) | |
| 2471 | + | |
| 2472 | +var $export = __webpack_require__(34); | |
| 2473 | +var context = __webpack_require__(204); | |
| 2474 | +var INCLUDES = 'includes'; | |
| 2475 | + | |
| 2476 | +$export($export.P + $export.F * __webpack_require__(205)(INCLUDES), 'String', { | |
| 2477 | + includes: function includes(searchString /* , position = 0 */) { | |
| 2478 | + return !!~context(this, searchString, INCLUDES) | |
| 2479 | + .indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined); | |
| 2480 | + } | |
| 2481 | +}); | |
| 2482 | + | |
| 2483 | + | |
| 2484 | +/***/ }), | |
| 2485 | +/* 156 */ | |
| 2486 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2487 | + | |
| 2488 | +__webpack_require__(157); | |
| 2489 | +var $Object = __webpack_require__(6).Object; | |
| 2490 | +module.exports = function defineProperty(it, key, desc) { | |
| 2491 | + return $Object.defineProperty(it, key, desc); | |
| 2492 | +}; | |
| 2493 | + | |
| 2494 | + | |
| 2495 | +/***/ }), | |
| 2496 | +/* 157 */ | |
| 2497 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2498 | + | |
| 2499 | +var $export = __webpack_require__(7); | |
| 2500 | +// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes) | |
| 2501 | +$export($export.S + $export.F * !__webpack_require__(14), 'Object', { defineProperty: __webpack_require__(15).f }); | |
| 2502 | + | |
| 2503 | + | |
| 2504 | +/***/ }), | |
| 2505 | +/* 158 */ | |
| 2506 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2507 | + | |
| 2508 | +module.exports = __webpack_require__(159); | |
| 2509 | + | |
| 2510 | +/***/ }), | |
| 2511 | +/* 159 */ | |
| 2512 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2513 | + | |
| 2514 | +__webpack_require__(160); | |
| 2515 | +module.exports = __webpack_require__(6).Object.getPrototypeOf; | |
| 2516 | + | |
| 2517 | + | |
| 2518 | +/***/ }), | |
| 2519 | +/* 160 */ | |
| 2520 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2521 | + | |
| 2522 | +// 19.1.2.9 Object.getPrototypeOf(O) | |
| 2523 | +var toObject = __webpack_require__(32); | |
| 2524 | +var $getPrototypeOf = __webpack_require__(64); | |
| 2525 | + | |
| 2526 | +__webpack_require__(83)('getPrototypeOf', function () { | |
| 2527 | + return function getPrototypeOf(it) { | |
| 2528 | + return $getPrototypeOf(toObject(it)); | |
| 2529 | + }; | |
| 2530 | +}); | |
| 2531 | + | |
| 2532 | + | |
| 2533 | +/***/ }), | |
| 2534 | +/* 161 */ | |
| 2535 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2536 | + | |
| 2537 | +__webpack_require__(162); | |
| 2538 | +module.exports = __webpack_require__(6).Object.setPrototypeOf; | |
| 2539 | + | |
| 2540 | + | |
| 2541 | +/***/ }), | |
| 2542 | +/* 162 */ | |
| 2543 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2544 | + | |
| 2545 | +// 19.1.3.19 Object.setPrototypeOf(O, proto) | |
| 2546 | +var $export = __webpack_require__(7); | |
| 2547 | +$export($export.S, 'Object', { setPrototypeOf: __webpack_require__(163).set }); | |
| 2548 | + | |
| 2549 | + | |
| 2550 | +/***/ }), | |
| 2551 | +/* 163 */ | |
| 2552 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2553 | + | |
| 2554 | +// Works with __proto__ only. Old v8 can't work with null proto objects. | |
| 2555 | +/* eslint-disable no-proto */ | |
| 2556 | +var isObject = __webpack_require__(9); | |
| 2557 | +var anObject = __webpack_require__(13); | |
| 2558 | +var check = function (O, proto) { | |
| 2559 | + anObject(O); | |
| 2560 | + if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!"); | |
| 2561 | +}; | |
| 2562 | +module.exports = { | |
| 2563 | + set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line | |
| 2564 | + function (test, buggy, set) { | |
| 2565 | + try { | |
| 2566 | + set = __webpack_require__(31)(Function.call, __webpack_require__(51).f(Object.prototype, '__proto__').set, 2); | |
| 2567 | + set(test, []); | |
| 2568 | + buggy = !(test instanceof Array); | |
| 2569 | + } catch (e) { buggy = true; } | |
| 2570 | + return function setPrototypeOf(O, proto) { | |
| 2571 | + check(O, proto); | |
| 2572 | + if (buggy) O.__proto__ = proto; | |
| 2573 | + else set(O, proto); | |
| 2574 | + return O; | |
| 2575 | + }; | |
| 2576 | + }({}, false) : undefined), | |
| 2577 | + check: check | |
| 2578 | +}; | |
| 2579 | + | |
| 2580 | + | |
| 2581 | +/***/ }), | |
| 2582 | +/* 164 */ | |
| 2583 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2584 | + | |
| 2585 | +__webpack_require__(165); | |
| 2586 | +var $Object = __webpack_require__(6).Object; | |
| 2587 | +module.exports = function create(P, D) { | |
| 2588 | + return $Object.create(P, D); | |
| 2589 | +}; | |
| 2590 | + | |
| 2591 | + | |
| 2592 | +/***/ }), | |
| 2593 | +/* 165 */ | |
| 2594 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2595 | + | |
| 2596 | +var $export = __webpack_require__(7); | |
| 2597 | +// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) | |
| 2598 | +$export($export.S, 'Object', { create: __webpack_require__(52) }); | |
| 2599 | + | |
| 2600 | + | |
| 2601 | +/***/ }), | |
| 2602 | +/* 166 */ | |
| 2603 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2604 | + | |
| 2605 | +// false -> Array#indexOf | |
| 2606 | +// true -> Array#includes | |
| 2607 | +var toIObject = __webpack_require__(20); | |
| 2608 | +var toLength = __webpack_require__(68); | |
| 2609 | +var toAbsoluteIndex = __webpack_require__(167); | |
| 2610 | +module.exports = function (IS_INCLUDES) { | |
| 2611 | + return function ($this, el, fromIndex) { | |
| 2612 | + var O = toIObject($this); | |
| 2613 | + var length = toLength(O.length); | |
| 2614 | + var index = toAbsoluteIndex(fromIndex, length); | |
| 2615 | + var value; | |
| 2616 | + // Array#includes uses SameValueZero equality algorithm | |
| 2617 | + // eslint-disable-next-line no-self-compare | |
| 2618 | + if (IS_INCLUDES && el != el) while (length > index) { | |
| 2619 | + value = O[index++]; | |
| 2620 | + // eslint-disable-next-line no-self-compare | |
| 2621 | + if (value != value) return true; | |
| 2622 | + // Array#indexOf ignores holes, Array#includes - not | |
| 2623 | + } else for (;length > index; index++) if (IS_INCLUDES || index in O) { | |
| 2624 | + if (O[index] === el) return IS_INCLUDES || index || 0; | |
| 2625 | + } return !IS_INCLUDES && -1; | |
| 2626 | + }; | |
| 2627 | +}; | |
| 2628 | + | |
| 2629 | + | |
| 2630 | +/***/ }), | |
| 2631 | +/* 167 */ | |
| 2632 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2633 | + | |
| 2634 | +var toInteger = __webpack_require__(77); | |
| 2635 | +var max = Math.max; | |
| 2636 | +var min = Math.min; | |
| 2637 | +module.exports = function (index, length) { | |
| 2638 | + index = toInteger(index); | |
| 2639 | + return index < 0 ? max(index + length, 0) : min(index, length); | |
| 2640 | +}; | |
| 2641 | + | |
| 2642 | + | |
| 2643 | +/***/ }), | |
| 2644 | +/* 168 */ | |
| 2645 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2646 | + | |
| 2647 | +__webpack_require__(169); | |
| 2648 | +module.exports = __webpack_require__(6).Reflect.construct; | |
| 2649 | + | |
| 2650 | + | |
| 2651 | +/***/ }), | |
| 2652 | +/* 169 */ | |
| 2653 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2654 | + | |
| 2655 | +// 26.1.2 Reflect.construct(target, argumentsList [, newTarget]) | |
| 2656 | +var $export = __webpack_require__(7); | |
| 2657 | +var create = __webpack_require__(52); | |
| 2658 | +var aFunction = __webpack_require__(38); | |
| 2659 | +var anObject = __webpack_require__(13); | |
| 2660 | +var isObject = __webpack_require__(9); | |
| 2661 | +var fails = __webpack_require__(22); | |
| 2662 | +var bind = __webpack_require__(170); | |
| 2663 | +var rConstruct = (__webpack_require__(8).Reflect || {}).construct; | |
| 2664 | + | |
| 2665 | +// MS Edge supports only 2 arguments and argumentsList argument is optional | |
| 2666 | +// FF Nightly sets third argument as `new.target`, but does not create `this` from it | |
| 2667 | +var NEW_TARGET_BUG = fails(function () { | |
| 2668 | + function F() { /* empty */ } | |
| 2669 | + return !(rConstruct(function () { /* empty */ }, [], F) instanceof F); | |
| 2670 | +}); | |
| 2671 | +var ARGS_BUG = !fails(function () { | |
| 2672 | + rConstruct(function () { /* empty */ }); | |
| 2673 | +}); | |
| 2674 | + | |
| 2675 | +$export($export.S + $export.F * (NEW_TARGET_BUG || ARGS_BUG), 'Reflect', { | |
| 2676 | + construct: function construct(Target, args /* , newTarget */) { | |
| 2677 | + aFunction(Target); | |
| 2678 | + anObject(args); | |
| 2679 | + var newTarget = arguments.length < 3 ? Target : aFunction(arguments[2]); | |
| 2680 | + if (ARGS_BUG && !NEW_TARGET_BUG) return rConstruct(Target, args, newTarget); | |
| 2681 | + if (Target == newTarget) { | |
| 2682 | + // w/o altered newTarget, optimization for 0-4 arguments | |
| 2683 | + switch (args.length) { | |
| 2684 | + case 0: return new Target(); | |
| 2685 | + case 1: return new Target(args[0]); | |
| 2686 | + case 2: return new Target(args[0], args[1]); | |
| 2687 | + case 3: return new Target(args[0], args[1], args[2]); | |
| 2688 | + case 4: return new Target(args[0], args[1], args[2], args[3]); | |
| 303 | 2689 | } |
| 304 | - return result; | |
| 2690 | + // w/o altered newTarget, lot of arguments case | |
| 2691 | + var $args = [null]; | |
| 2692 | + $args.push.apply($args, args); | |
| 2693 | + return new (bind.apply(Target, $args))(); | |
| 305 | 2694 | } |
| 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; | |
| 2695 | + // with altered newTarget, not support built-in constructors | |
| 2696 | + var proto = newTarget.prototype; | |
| 2697 | + var instance = create(isObject(proto) ? proto : Object.prototype); | |
| 2698 | + var result = Function.apply.call(Target, instance, args); | |
| 2699 | + return isObject(result) ? result : instance; | |
| 2700 | + } | |
| 2701 | +}); | |
| 316 | 2702 | |
| 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(); | |
| 2703 | + | |
| 2704 | +/***/ }), | |
| 2705 | +/* 170 */ | |
| 2706 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2707 | + | |
| 2708 | +"use strict"; | |
| 2709 | + | |
| 2710 | +var aFunction = __webpack_require__(38); | |
| 2711 | +var isObject = __webpack_require__(9); | |
| 2712 | +var invoke = __webpack_require__(132); | |
| 2713 | +var arraySlice = [].slice; | |
| 2714 | +var factories = {}; | |
| 2715 | + | |
| 2716 | +var construct = function (F, len, args) { | |
| 2717 | + if (!(len in factories)) { | |
| 2718 | + for (var n = [], i = 0; i < len; i++) n[i] = 'a[' + i + ']'; | |
| 2719 | + // eslint-disable-next-line no-new-func | |
| 2720 | + factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')'); | |
| 2721 | + } return factories[len](F, args); | |
| 2722 | +}; | |
| 2723 | + | |
| 2724 | +module.exports = Function.bind || function bind(that /* , ...args */) { | |
| 2725 | + var fn = aFunction(this); | |
| 2726 | + var partArgs = arraySlice.call(arguments, 1); | |
| 2727 | + var bound = function (/* args... */) { | |
| 2728 | + var args = partArgs.concat(arraySlice.call(arguments)); | |
| 2729 | + return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that); | |
| 2730 | + }; | |
| 2731 | + if (isObject(fn.prototype)) bound.prototype = fn.prototype; | |
| 2732 | + return bound; | |
| 2733 | +}; | |
| 2734 | + | |
| 2735 | + | |
| 2736 | +/***/ }), | |
| 2737 | +/* 171 */ | |
| 2738 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2739 | + | |
| 2740 | +var _typeof = __webpack_require__(48); | |
| 2741 | + | |
| 2742 | +var assertThisInitialized = __webpack_require__(49); | |
| 2743 | + | |
| 2744 | +function _possibleConstructorReturn(self, call) { | |
| 2745 | + if (call && (_typeof(call) === "object" || typeof call === "function")) { | |
| 2746 | + return call; | |
| 2747 | + } | |
| 2748 | + | |
| 2749 | + return assertThisInitialized(self); | |
| 2750 | +} | |
| 2751 | + | |
| 2752 | +module.exports = _possibleConstructorReturn; | |
| 2753 | + | |
| 2754 | +/***/ }), | |
| 2755 | +/* 172 */ | |
| 2756 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2757 | + | |
| 2758 | +__webpack_require__(60); | |
| 2759 | +__webpack_require__(62); | |
| 2760 | +module.exports = __webpack_require__(63).f('iterator'); | |
| 2761 | + | |
| 2762 | + | |
| 2763 | +/***/ }), | |
| 2764 | +/* 173 */ | |
| 2765 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2766 | + | |
| 2767 | +var toInteger = __webpack_require__(77); | |
| 2768 | +var defined = __webpack_require__(65); | |
| 2769 | +// true -> String#at | |
| 2770 | +// false -> String#codePointAt | |
| 2771 | +module.exports = function (TO_STRING) { | |
| 2772 | + return function (that, pos) { | |
| 2773 | + var s = String(defined(that)); | |
| 2774 | + var i = toInteger(pos); | |
| 2775 | + var l = s.length; | |
| 2776 | + var a, b; | |
| 2777 | + if (i < 0 || i >= l) return TO_STRING ? '' : undefined; | |
| 2778 | + a = s.charCodeAt(i); | |
| 2779 | + return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff | |
| 2780 | + ? TO_STRING ? s.charAt(i) : a | |
| 2781 | + : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000; | |
| 2782 | + }; | |
| 2783 | +}; | |
| 2784 | + | |
| 2785 | + | |
| 2786 | +/***/ }), | |
| 2787 | +/* 174 */ | |
| 2788 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2789 | + | |
| 2790 | +"use strict"; | |
| 2791 | + | |
| 2792 | +var create = __webpack_require__(52); | |
| 2793 | +var descriptor = __webpack_require__(44); | |
| 2794 | +var setToStringTag = __webpack_require__(53); | |
| 2795 | +var IteratorPrototype = {}; | |
| 2796 | + | |
| 2797 | +// 25.1.2.1.1 %IteratorPrototype%[@@iterator]() | |
| 2798 | +__webpack_require__(24)(IteratorPrototype, __webpack_require__(10)('iterator'), function () { return this; }); | |
| 2799 | + | |
| 2800 | +module.exports = function (Constructor, NAME, next) { | |
| 2801 | + Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) }); | |
| 2802 | + setToStringTag(Constructor, NAME + ' Iterator'); | |
| 2803 | +}; | |
| 2804 | + | |
| 2805 | + | |
| 2806 | +/***/ }), | |
| 2807 | +/* 175 */ | |
| 2808 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2809 | + | |
| 2810 | +"use strict"; | |
| 2811 | + | |
| 2812 | +var addToUnscopables = __webpack_require__(176); | |
| 2813 | +var step = __webpack_require__(149); | |
| 2814 | +var Iterators = __webpack_require__(35); | |
| 2815 | +var toIObject = __webpack_require__(20); | |
| 2816 | + | |
| 2817 | +// 22.1.3.4 Array.prototype.entries() | |
| 2818 | +// 22.1.3.13 Array.prototype.keys() | |
| 2819 | +// 22.1.3.29 Array.prototype.values() | |
| 2820 | +// 22.1.3.30 Array.prototype[@@iterator]() | |
| 2821 | +module.exports = __webpack_require__(108)(Array, 'Array', function (iterated, kind) { | |
| 2822 | + this._t = toIObject(iterated); // target | |
| 2823 | + this._i = 0; // next index | |
| 2824 | + this._k = kind; // kind | |
| 2825 | +// 22.1.5.2.1 %ArrayIteratorPrototype%.next() | |
| 2826 | +}, function () { | |
| 2827 | + var O = this._t; | |
| 2828 | + var kind = this._k; | |
| 2829 | + var index = this._i++; | |
| 2830 | + if (!O || index >= O.length) { | |
| 2831 | + this._t = undefined; | |
| 2832 | + return step(1); | |
| 2833 | + } | |
| 2834 | + if (kind == 'keys') return step(0, index); | |
| 2835 | + if (kind == 'values') return step(0, O[index]); | |
| 2836 | + return step(0, [index, O[index]]); | |
| 2837 | +}, 'values'); | |
| 2838 | + | |
| 2839 | +// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7) | |
| 2840 | +Iterators.Arguments = Iterators.Array; | |
| 2841 | + | |
| 2842 | +addToUnscopables('keys'); | |
| 2843 | +addToUnscopables('values'); | |
| 2844 | +addToUnscopables('entries'); | |
| 2845 | + | |
| 2846 | + | |
| 2847 | +/***/ }), | |
| 2848 | +/* 176 */ | |
| 2849 | +/***/ (function(module, exports) { | |
| 2850 | + | |
| 2851 | +module.exports = function () { /* empty */ }; | |
| 2852 | + | |
| 2853 | + | |
| 2854 | +/***/ }), | |
| 2855 | +/* 177 */ | |
| 2856 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2857 | + | |
| 2858 | +__webpack_require__(139); | |
| 2859 | +__webpack_require__(100); | |
| 2860 | +__webpack_require__(180); | |
| 2861 | +__webpack_require__(181); | |
| 2862 | +module.exports = __webpack_require__(6).Symbol; | |
| 2863 | + | |
| 2864 | + | |
| 2865 | +/***/ }), | |
| 2866 | +/* 178 */ | |
| 2867 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2868 | + | |
| 2869 | +// all enumerable object keys, includes symbols | |
| 2870 | +var getKeys = __webpack_require__(40); | |
| 2871 | +var gOPS = __webpack_require__(71); | |
| 2872 | +var pIE = __webpack_require__(50); | |
| 2873 | +module.exports = function (it) { | |
| 2874 | + var result = getKeys(it); | |
| 2875 | + var getSymbols = gOPS.f; | |
| 2876 | + if (getSymbols) { | |
| 2877 | + var symbols = getSymbols(it); | |
| 2878 | + var isEnum = pIE.f; | |
| 2879 | + var i = 0; | |
| 2880 | + var key; | |
| 2881 | + while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key); | |
| 2882 | + } return result; | |
| 2883 | +}; | |
| 2884 | + | |
| 2885 | + | |
| 2886 | +/***/ }), | |
| 2887 | +/* 179 */ | |
| 2888 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2889 | + | |
| 2890 | +// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window | |
| 2891 | +var toIObject = __webpack_require__(20); | |
| 2892 | +var gOPN = __webpack_require__(99).f; | |
| 2893 | +var toString = {}.toString; | |
| 2894 | + | |
| 2895 | +var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames | |
| 2896 | + ? Object.getOwnPropertyNames(window) : []; | |
| 2897 | + | |
| 2898 | +var getWindowNames = function (it) { | |
| 2899 | + try { | |
| 2900 | + return gOPN(it); | |
| 2901 | + } catch (e) { | |
| 2902 | + return windowNames.slice(); | |
| 2903 | + } | |
| 2904 | +}; | |
| 2905 | + | |
| 2906 | +module.exports.f = function getOwnPropertyNames(it) { | |
| 2907 | + return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it)); | |
| 2908 | +}; | |
| 2909 | + | |
| 2910 | + | |
| 2911 | +/***/ }), | |
| 2912 | +/* 180 */ | |
| 2913 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2914 | + | |
| 2915 | +__webpack_require__(79)('asyncIterator'); | |
| 2916 | + | |
| 2917 | + | |
| 2918 | +/***/ }), | |
| 2919 | +/* 181 */ | |
| 2920 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2921 | + | |
| 2922 | +__webpack_require__(79)('observable'); | |
| 2923 | + | |
| 2924 | + | |
| 2925 | +/***/ }), | |
| 2926 | +/* 182 */ | |
| 2927 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2928 | + | |
| 2929 | +// 0 -> Array#forEach | |
| 2930 | +// 1 -> Array#map | |
| 2931 | +// 2 -> Array#filter | |
| 2932 | +// 3 -> Array#some | |
| 2933 | +// 4 -> Array#every | |
| 2934 | +// 5 -> Array#find | |
| 2935 | +// 6 -> Array#findIndex | |
| 2936 | +var ctx = __webpack_require__(73); | |
| 2937 | +var IObject = __webpack_require__(120); | |
| 2938 | +var toObject = __webpack_require__(96); | |
| 2939 | +var toLength = __webpack_require__(43); | |
| 2940 | +var asc = __webpack_require__(216); | |
| 2941 | +module.exports = function (TYPE, $create) { | |
| 2942 | + var IS_MAP = TYPE == 1; | |
| 2943 | + var IS_FILTER = TYPE == 2; | |
| 2944 | + var IS_SOME = TYPE == 3; | |
| 2945 | + var IS_EVERY = TYPE == 4; | |
| 2946 | + var IS_FIND_INDEX = TYPE == 6; | |
| 2947 | + var NO_HOLES = TYPE == 5 || IS_FIND_INDEX; | |
| 2948 | + var create = $create || asc; | |
| 2949 | + return function ($this, callbackfn, that) { | |
| 2950 | + var O = toObject($this); | |
| 2951 | + var self = IObject(O); | |
| 2952 | + var f = ctx(callbackfn, that, 3); | |
| 2953 | + var length = toLength(self.length); | |
| 2954 | + var index = 0; | |
| 2955 | + var result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined; | |
| 2956 | + var val, res; | |
| 2957 | + for (;length > index; index++) if (NO_HOLES || index in self) { | |
| 2958 | + val = self[index]; | |
| 2959 | + res = f(val, index, O); | |
| 2960 | + if (TYPE) { | |
| 2961 | + if (IS_MAP) result[index] = res; // map | |
| 2962 | + else if (res) switch (TYPE) { | |
| 2963 | + case 3: return true; // some | |
| 2964 | + case 5: return val; // find | |
| 2965 | + case 6: return index; // findIndex | |
| 2966 | + case 2: result.push(val); // filter | |
| 2967 | + } else if (IS_EVERY) return false; // every | |
| 325 | 2968 | } |
| 326 | 2969 | } |
| 327 | - }, { | |
| 328 | - key: "addToParent", | |
| 329 | - value: function addToParent() { | |
| 330 | - if (!this.parent.children || this.isRepeaterItem()) { | |
| 331 | - return; | |
| 332 | - } | |
| 2970 | + return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result; | |
| 2971 | + }; | |
| 2972 | +}; | |
| 333 | 2973 | |
| 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 | - } | |
| 344 | 2974 | |
| 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 | - }); | |
| 2975 | +/***/ }), | |
| 2976 | +/* 183 */ | |
| 2977 | +/***/ (function(module, exports, __webpack_require__) { | |
| 376 | 2978 | |
| 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 | - } | |
| 2979 | +"use strict"; | |
| 2980 | + | |
| 2981 | +__webpack_require__(279); | |
| 2982 | +var anObject = __webpack_require__(18); | |
| 2983 | +var $flags = __webpack_require__(106); | |
| 2984 | +var DESCRIPTORS = __webpack_require__(27); | |
| 2985 | +var TO_STRING = 'toString'; | |
| 2986 | +var $toString = /./[TO_STRING]; | |
| 2987 | + | |
| 2988 | +var define = function (fn) { | |
| 2989 | + __webpack_require__(36)(RegExp.prototype, TO_STRING, fn, true); | |
| 2990 | +}; | |
| 2991 | + | |
| 2992 | +// 21.2.5.14 RegExp.prototype.toString() | |
| 2993 | +if (__webpack_require__(33)(function () { return $toString.call({ source: 'a', flags: 'b' }) != '/a/b'; })) { | |
| 2994 | + define(function toString() { | |
| 2995 | + var R = anObject(this); | |
| 2996 | + return '/'.concat(R.source, '/', | |
| 2997 | + 'flags' in R ? R.flags : !DESCRIPTORS && R instanceof RegExp ? $flags.call(R) : undefined); | |
| 2998 | + }); | |
| 2999 | +// FF44- RegExp#toString has a wrong name | |
| 3000 | +} else if ($toString.name != TO_STRING) { | |
| 3001 | + define(function toString() { | |
| 3002 | + return $toString.call(this); | |
| 3003 | + }); | |
| 3004 | +} | |
| 3005 | + | |
| 3006 | + | |
| 3007 | +/***/ }), | |
| 3008 | +/* 184 */ | |
| 3009 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3010 | + | |
| 3011 | +// 19.1.2.14 / 15.2.3.14 Object.keys(O) | |
| 3012 | +var $keys = __webpack_require__(219); | |
| 3013 | +var enumBugKeys = __webpack_require__(147); | |
| 3014 | + | |
| 3015 | +module.exports = Object.keys || function keys(O) { | |
| 3016 | + return $keys(O, enumBugKeys); | |
| 3017 | +}; | |
| 3018 | + | |
| 3019 | + | |
| 3020 | +/***/ }), | |
| 3021 | +/* 185 */ | |
| 3022 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3023 | + | |
| 3024 | +var DESCRIPTORS = __webpack_require__(14); | |
| 3025 | +var getKeys = __webpack_require__(40); | |
| 3026 | +var toIObject = __webpack_require__(20); | |
| 3027 | +var isEnum = __webpack_require__(50).f; | |
| 3028 | +module.exports = function (isEntries) { | |
| 3029 | + return function (it) { | |
| 3030 | + var O = toIObject(it); | |
| 3031 | + var keys = getKeys(O); | |
| 3032 | + var length = keys.length; | |
| 3033 | + var i = 0; | |
| 3034 | + var result = []; | |
| 3035 | + var key; | |
| 3036 | + while (length > i) { | |
| 3037 | + key = keys[i++]; | |
| 3038 | + if (!DESCRIPTORS || isEnum.call(O, key)) { | |
| 3039 | + result.push(isEntries ? [key, O[key]] : O[key]); | |
| 391 | 3040 | } |
| 392 | 3041 | } |
| 3042 | + return result; | |
| 3043 | + }; | |
| 3044 | +}; | |
| 393 | 3045 | |
| 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'); | |
| 409 | 3046 | |
| 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]; | |
| 3047 | +/***/ }), | |
| 3048 | +/* 186 */ | |
| 3049 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3050 | + | |
| 3051 | +"use strict"; | |
| 3052 | + | |
| 3053 | +var $defineProperty = __webpack_require__(15); | |
| 3054 | +var createDesc = __webpack_require__(44); | |
| 3055 | + | |
| 3056 | +module.exports = function (object, index, value) { | |
| 3057 | + if (index in object) $defineProperty.f(object, index, createDesc(0, value)); | |
| 3058 | + else object[index] = value; | |
| 3059 | +}; | |
| 3060 | + | |
| 3061 | + | |
| 3062 | +/***/ }), | |
| 3063 | +/* 187 */ | |
| 3064 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3065 | + | |
| 3066 | +var _Array$from = __webpack_require__(200); | |
| 3067 | + | |
| 3068 | +var arrayLikeToArray = __webpack_require__(199); | |
| 3069 | + | |
| 3070 | +function _unsupportedIterableToArray(o, minLen) { | |
| 3071 | + if (!o) return; | |
| 3072 | + if (typeof o === "string") return arrayLikeToArray(o, minLen); | |
| 3073 | + var n = Object.prototype.toString.call(o).slice(8, -1); | |
| 3074 | + if (n === "Object" && o.constructor) n = o.constructor.name; | |
| 3075 | + if (n === "Map" || n === "Set") return _Array$from(o); | |
| 3076 | + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen); | |
| 3077 | +} | |
| 3078 | + | |
| 3079 | +module.exports = _unsupportedIterableToArray; | |
| 3080 | + | |
| 3081 | +/***/ }), | |
| 3082 | +/* 188 */, | |
| 3083 | +/* 189 */, | |
| 3084 | +/* 190 */, | |
| 3085 | +/* 191 */ | |
| 3086 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3087 | + | |
| 3088 | +__webpack_require__(192); | |
| 3089 | +var $Object = __webpack_require__(6).Object; | |
| 3090 | +module.exports = function getOwnPropertyDescriptor(it, key) { | |
| 3091 | + return $Object.getOwnPropertyDescriptor(it, key); | |
| 3092 | +}; | |
| 3093 | + | |
| 3094 | + | |
| 3095 | +/***/ }), | |
| 3096 | +/* 192 */ | |
| 3097 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3098 | + | |
| 3099 | +// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P) | |
| 3100 | +var toIObject = __webpack_require__(20); | |
| 3101 | +var $getOwnPropertyDescriptor = __webpack_require__(51).f; | |
| 3102 | + | |
| 3103 | +__webpack_require__(83)('getOwnPropertyDescriptor', function () { | |
| 3104 | + return function getOwnPropertyDescriptor(it, key) { | |
| 3105 | + return $getOwnPropertyDescriptor(toIObject(it), key); | |
| 3106 | + }; | |
| 3107 | +}); | |
| 3108 | + | |
| 3109 | + | |
| 3110 | +/***/ }), | |
| 3111 | +/* 193 */ | |
| 3112 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3113 | + | |
| 3114 | +module.exports = __webpack_require__(194); | |
| 3115 | + | |
| 3116 | +/***/ }), | |
| 3117 | +/* 194 */ | |
| 3118 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3119 | + | |
| 3120 | +__webpack_require__(195); | |
| 3121 | +module.exports = __webpack_require__(6).Reflect.get; | |
| 3122 | + | |
| 3123 | + | |
| 3124 | +/***/ }), | |
| 3125 | +/* 195 */ | |
| 3126 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3127 | + | |
| 3128 | +// 26.1.6 Reflect.get(target, propertyKey [, receiver]) | |
| 3129 | +var gOPD = __webpack_require__(51); | |
| 3130 | +var getPrototypeOf = __webpack_require__(64); | |
| 3131 | +var has = __webpack_require__(19); | |
| 3132 | +var $export = __webpack_require__(7); | |
| 3133 | +var isObject = __webpack_require__(9); | |
| 3134 | +var anObject = __webpack_require__(13); | |
| 3135 | + | |
| 3136 | +function get(target, propertyKey /* , receiver */) { | |
| 3137 | + var receiver = arguments.length < 3 ? target : arguments[2]; | |
| 3138 | + var desc, proto; | |
| 3139 | + if (anObject(target) === receiver) return target[propertyKey]; | |
| 3140 | + if (desc = gOPD.f(target, propertyKey)) return has(desc, 'value') | |
| 3141 | + ? desc.value | |
| 3142 | + : desc.get !== undefined | |
| 3143 | + ? desc.get.call(receiver) | |
| 3144 | + : undefined; | |
| 3145 | + if (isObject(proto = getPrototypeOf(target))) return get(proto, propertyKey, receiver); | |
| 3146 | +} | |
| 3147 | + | |
| 3148 | +$export($export.S, 'Reflect', { get: get }); | |
| 3149 | + | |
| 3150 | + | |
| 3151 | +/***/ }), | |
| 3152 | +/* 196 */ | |
| 3153 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3154 | + | |
| 3155 | +var getPrototypeOf = __webpack_require__(16); | |
| 3156 | + | |
| 3157 | +function _superPropBase(object, property) { | |
| 3158 | + while (!Object.prototype.hasOwnProperty.call(object, property)) { | |
| 3159 | + object = getPrototypeOf(object); | |
| 3160 | + if (object === null) break; | |
| 3161 | + } | |
| 3162 | + | |
| 3163 | + return object; | |
| 3164 | +} | |
| 3165 | + | |
| 3166 | +module.exports = _superPropBase; | |
| 3167 | + | |
| 3168 | +/***/ }), | |
| 3169 | +/* 197 */ | |
| 3170 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3171 | + | |
| 3172 | +"use strict"; | |
| 3173 | + | |
| 3174 | +var LIBRARY = __webpack_require__(110); | |
| 3175 | +var $export = __webpack_require__(34); | |
| 3176 | +var redefine = __webpack_require__(36); | |
| 3177 | +var hide = __webpack_require__(29); | |
| 3178 | +var Iterators = __webpack_require__(118); | |
| 3179 | +var $iterCreate = __webpack_require__(242); | |
| 3180 | +var setToStringTag = __webpack_require__(153); | |
| 3181 | +var getPrototypeOf = __webpack_require__(244); | |
| 3182 | +var ITERATOR = __webpack_require__(12)('iterator'); | |
| 3183 | +var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` | |
| 3184 | +var FF_ITERATOR = '@@iterator'; | |
| 3185 | +var KEYS = 'keys'; | |
| 3186 | +var VALUES = 'values'; | |
| 3187 | + | |
| 3188 | +var returnThis = function () { return this; }; | |
| 3189 | + | |
| 3190 | +module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { | |
| 3191 | + $iterCreate(Constructor, NAME, next); | |
| 3192 | + var getMethod = function (kind) { | |
| 3193 | + if (!BUGGY && kind in proto) return proto[kind]; | |
| 3194 | + switch (kind) { | |
| 3195 | + case KEYS: return function keys() { return new Constructor(this, kind); }; | |
| 3196 | + case VALUES: return function values() { return new Constructor(this, kind); }; | |
| 3197 | + } return function entries() { return new Constructor(this, kind); }; | |
| 3198 | + }; | |
| 3199 | + var TAG = NAME + ' Iterator'; | |
| 3200 | + var DEF_VALUES = DEFAULT == VALUES; | |
| 3201 | + var VALUES_BUG = false; | |
| 3202 | + var proto = Base.prototype; | |
| 3203 | + var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]; | |
| 3204 | + var $default = $native || getMethod(DEFAULT); | |
| 3205 | + var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined; | |
| 3206 | + var $anyNative = NAME == 'Array' ? proto.entries || $native : $native; | |
| 3207 | + var methods, key, IteratorPrototype; | |
| 3208 | + // Fix native | |
| 3209 | + if ($anyNative) { | |
| 3210 | + IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); | |
| 3211 | + if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) { | |
| 3212 | + // Set @@toStringTag to native iterators | |
| 3213 | + setToStringTag(IteratorPrototype, TAG, true); | |
| 3214 | + // fix for some old engines | |
| 3215 | + if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis); | |
| 429 | 3216 | } |
| 3217 | + } | |
| 3218 | + // fix Array#{values, @@iterator}.name in V8 / FF | |
| 3219 | + if (DEF_VALUES && $native && $native.name !== VALUES) { | |
| 3220 | + VALUES_BUG = true; | |
| 3221 | + $default = function values() { return $native.call(this); }; | |
| 3222 | + } | |
| 3223 | + // Define iterator | |
| 3224 | + if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) { | |
| 3225 | + hide(proto, ITERATOR, $default); | |
| 3226 | + } | |
| 3227 | + // Plug for library | |
| 3228 | + Iterators[NAME] = $default; | |
| 3229 | + Iterators[TAG] = returnThis; | |
| 3230 | + if (DEFAULT) { | |
| 3231 | + methods = { | |
| 3232 | + values: DEF_VALUES ? $default : getMethod(VALUES), | |
| 3233 | + keys: IS_SET ? $default : getMethod(KEYS), | |
| 3234 | + entries: $entries | |
| 3235 | + }; | |
| 3236 | + if (FORCED) for (key in methods) { | |
| 3237 | + if (!(key in proto)) redefine(proto, key, methods[key]); | |
| 3238 | + } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); | |
| 3239 | + } | |
| 3240 | + return methods; | |
| 3241 | +}; | |
| 430 | 3242 | |
| 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(); | |
| 463 | 3243 | |
| 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 | - } | |
| 3244 | +/***/ }), | |
| 3245 | +/* 198 */ | |
| 3246 | +/***/ (function(module, exports, __webpack_require__) { | |
| 471 | 3247 | |
| 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; | |
| 3248 | +var toInteger = __webpack_require__(57); | |
| 3249 | +var max = Math.max; | |
| 3250 | +var min = Math.min; | |
| 3251 | +module.exports = function (index, length) { | |
| 3252 | + index = toInteger(index); | |
| 3253 | + return index < 0 ? max(index + length, 0) : min(index, length); | |
| 3254 | +}; | |
| 3255 | + | |
| 3256 | + | |
| 3257 | +/***/ }), | |
| 3258 | +/* 199 */ | |
| 3259 | +/***/ (function(module, exports) { | |
| 3260 | + | |
| 3261 | +function _arrayLikeToArray(arr, len) { | |
| 3262 | + if (len == null || len > arr.length) len = arr.length; | |
| 3263 | + | |
| 3264 | + for (var i = 0, arr2 = new Array(len); i < len; i++) { | |
| 3265 | + arr2[i] = arr[i]; | |
| 3266 | + } | |
| 3267 | + | |
| 3268 | + return arr2; | |
| 3269 | +} | |
| 3270 | + | |
| 3271 | +module.exports = _arrayLikeToArray; | |
| 3272 | + | |
| 3273 | +/***/ }), | |
| 3274 | +/* 200 */ | |
| 3275 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3276 | + | |
| 3277 | +module.exports = __webpack_require__(228); | |
| 3278 | + | |
| 3279 | +/***/ }), | |
| 3280 | +/* 201 */ | |
| 3281 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3282 | + | |
| 3283 | +__webpack_require__(202); | |
| 3284 | +module.exports = __webpack_require__(6).Object.keys; | |
| 3285 | + | |
| 3286 | + | |
| 3287 | +/***/ }), | |
| 3288 | +/* 202 */ | |
| 3289 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3290 | + | |
| 3291 | +// 19.1.2.14 Object.keys(O) | |
| 3292 | +var toObject = __webpack_require__(32); | |
| 3293 | +var $keys = __webpack_require__(40); | |
| 3294 | + | |
| 3295 | +__webpack_require__(83)('keys', function () { | |
| 3296 | + return function keys(it) { | |
| 3297 | + return $keys(toObject(it)); | |
| 3298 | + }; | |
| 3299 | +}); | |
| 3300 | + | |
| 3301 | + | |
| 3302 | +/***/ }), | |
| 3303 | +/* 203 */, | |
| 3304 | +/* 204 */ | |
| 3305 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3306 | + | |
| 3307 | +// helper for String#{startsWith, endsWith, includes} | |
| 3308 | +var isRegExp = __webpack_require__(122); | |
| 3309 | +var defined = __webpack_require__(42); | |
| 3310 | + | |
| 3311 | +module.exports = function (that, searchString, NAME) { | |
| 3312 | + if (isRegExp(searchString)) throw TypeError('String#' + NAME + " doesn't accept regex!"); | |
| 3313 | + return String(defined(that)); | |
| 3314 | +}; | |
| 3315 | + | |
| 3316 | + | |
| 3317 | +/***/ }), | |
| 3318 | +/* 205 */ | |
| 3319 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3320 | + | |
| 3321 | +var MATCH = __webpack_require__(12)('match'); | |
| 3322 | +module.exports = function (KEY) { | |
| 3323 | + var re = /./; | |
| 3324 | + try { | |
| 3325 | + '/./'[KEY](re); | |
| 3326 | + } catch (e) { | |
| 3327 | + try { | |
| 3328 | + re[MATCH] = false; | |
| 3329 | + return !'/./'[KEY](re); | |
| 3330 | + } catch (f) { /* empty */ } | |
| 3331 | + } return true; | |
| 3332 | +}; | |
| 3333 | + | |
| 3334 | + | |
| 3335 | +/***/ }), | |
| 3336 | +/* 206 */, | |
| 3337 | +/* 207 */, | |
| 3338 | +/* 208 */, | |
| 3339 | +/* 209 */, | |
| 3340 | +/* 210 */, | |
| 3341 | +/* 211 */ | |
| 3342 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3343 | + | |
| 3344 | +module.exports = __webpack_require__(230); | |
| 3345 | + | |
| 3346 | +/***/ }), | |
| 3347 | +/* 212 */, | |
| 3348 | +/* 213 */, | |
| 3349 | +/* 214 */, | |
| 3350 | +/* 215 */, | |
| 3351 | +/* 216 */ | |
| 3352 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3353 | + | |
| 3354 | +// 9.4.2.3 ArraySpeciesCreate(originalArray, length) | |
| 3355 | +var speciesConstructor = __webpack_require__(217); | |
| 3356 | + | |
| 3357 | +module.exports = function (original, length) { | |
| 3358 | + return new (speciesConstructor(original))(length); | |
| 3359 | +}; | |
| 3360 | + | |
| 3361 | + | |
| 3362 | +/***/ }), | |
| 3363 | +/* 217 */ | |
| 3364 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3365 | + | |
| 3366 | +var isObject = __webpack_require__(30); | |
| 3367 | +var isArray = __webpack_require__(218); | |
| 3368 | +var SPECIES = __webpack_require__(12)('species'); | |
| 3369 | + | |
| 3370 | +module.exports = function (original) { | |
| 3371 | + var C; | |
| 3372 | + if (isArray(original)) { | |
| 3373 | + C = original.constructor; | |
| 3374 | + // cross-realm fallback | |
| 3375 | + if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined; | |
| 3376 | + if (isObject(C)) { | |
| 3377 | + C = C[SPECIES]; | |
| 3378 | + if (C === null) C = undefined; | |
| 478 | 3379 | } |
| 3380 | + } return C === undefined ? Array : C; | |
| 3381 | +}; | |
| 479 | 3382 | |
| 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 | - } | |
| 490 | 3383 | |
| 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 | - } | |
| 3384 | +/***/ }), | |
| 3385 | +/* 218 */ | |
| 3386 | +/***/ (function(module, exports, __webpack_require__) { | |
| 501 | 3387 | |
| 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 | - } | |
| 3388 | +// 7.2.2 IsArray(argument) | |
| 3389 | +var cof = __webpack_require__(46); | |
| 3390 | +module.exports = Array.isArray || function isArray(arg) { | |
| 3391 | + return cof(arg) == 'Array'; | |
| 3392 | +}; | |
| 544 | 3393 | |
| 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 | - } | |
| 576 | 3394 | |
| 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; | |
| 3395 | +/***/ }), | |
| 3396 | +/* 219 */ | |
| 3397 | +/***/ (function(module, exports, __webpack_require__) { | |
| 601 | 3398 | |
| 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 | - } | |
| 3399 | +var has = __webpack_require__(61); | |
| 3400 | +var toIObject = __webpack_require__(98); | |
| 3401 | +var arrayIndexOf = __webpack_require__(142)(false); | |
| 3402 | +var IE_PROTO = __webpack_require__(130)('IE_PROTO'); | |
| 620 | 3403 | |
| 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 | |
| 3404 | +module.exports = function (object, names) { | |
| 3405 | + var O = toIObject(object); | |
| 3406 | + var i = 0; | |
| 3407 | + var result = []; | |
| 3408 | + var key; | |
| 3409 | + for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); | |
| 3410 | + // Don't enum bug & hidden keys | |
| 3411 | + while (names.length > i) if (has(O, key = names[i++])) { | |
| 3412 | + ~arrayIndexOf(result, key) || result.push(key); | |
| 3413 | + } | |
| 3414 | + return result; | |
| 3415 | +}; | |
| 645 | 3416 | |
| 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 | - } | |
| 656 | 3417 | |
| 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'); | |
| 3418 | +/***/ }), | |
| 3419 | +/* 220 */ | |
| 3420 | +/***/ (function(module, exports, __webpack_require__) { | |
| 665 | 3421 | |
| 3422 | +__webpack_require__(221); | |
| 3423 | +module.exports = __webpack_require__(6).Array.isArray; | |
| 3424 | + | |
| 3425 | + | |
| 666 | 3426 | /***/ }), |
| 3427 | +/* 221 */ | |
| 3428 | +/***/ (function(module, exports, __webpack_require__) { | |
| 667 | 3429 | |
| 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__) => { | |
| 3430 | +// 22.1.2.2 / 15.4.3.2 Array.isArray(arg) | |
| 3431 | +var $export = __webpack_require__(7); | |
| 673 | 3432 | |
| 3433 | +$export($export.S, 'Array', { isArray: __webpack_require__(97) }); | |
| 3434 | + | |
| 3435 | + | |
| 3436 | +/***/ }), | |
| 3437 | +/* 222 */, | |
| 3438 | +/* 223 */ | |
| 3439 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3440 | + | |
| 674 | 3441 | "use strict"; |
| 675 | 3442 | |
| 676 | 3443 | |
| 677 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 678 | -Object.defineProperty(exports, "__esModule", ({ | |
| 3444 | +var _interopRequireDefault = __webpack_require__(0); | |
| 3445 | + | |
| 3446 | +var _Object$defineProperty = __webpack_require__(1); | |
| 3447 | + | |
| 3448 | +_Object$defineProperty(exports, "__esModule", { | |
| 679 | 3449 | 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); | |
| 3450 | +}); | |
| 3451 | + | |
| 3452 | +exports.default = void 0; | |
| 3453 | + | |
| 3454 | +var _typeof2 = _interopRequireDefault(__webpack_require__(48)); | |
| 3455 | + | |
| 3456 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2)); | |
| 3457 | + | |
| 3458 | +var _createClass2 = _interopRequireDefault(__webpack_require__(3)); | |
| 3459 | + | |
| 3460 | +var _inherits2 = _interopRequireDefault(__webpack_require__(4)); | |
| 3461 | + | |
| 3462 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(5)); | |
| 3463 | + | |
| 3464 | +var _instanceType = _interopRequireDefault(__webpack_require__(252)); | |
| 3465 | + | |
| 3466 | +var ArgsObject = /*#__PURE__*/function (_InstanceType) { | |
| 3467 | + (0, _inherits2.default)(ArgsObject, _InstanceType); | |
| 3468 | + | |
| 3469 | + var _super = (0, _createSuper2.default)(ArgsObject); | |
| 3470 | + | |
| 3471 | + (0, _createClass2.default)(ArgsObject, null, [{ | |
| 3472 | + key: "getInstanceType", | |
| 3473 | + value: function getInstanceType() { | |
| 3474 | + return 'ArgsObject'; | |
| 3475 | + } | |
| 3476 | + /** | |
| 3477 | + * Function constructor(). | |
| 3478 | + * | |
| 3479 | + * Create ArgsObject. | |
| 3480 | + * | |
| 3481 | + * @param {{}} args | |
| 3482 | + */ | |
| 3483 | + | |
| 3484 | + }]); | |
| 3485 | + | |
| 3486 | + function ArgsObject(args) { | |
| 3487 | + var _this; | |
| 3488 | + | |
| 3489 | + (0, _classCallCheck2.default)(this, ArgsObject); | |
| 3490 | + _this = _super.call(this); | |
| 3491 | + _this.args = args; | |
| 3492 | + return _this; | |
| 700 | 3493 | } |
| 701 | - (0, _inherits2.default)(ChildrenArray, _Array); | |
| 702 | - return (0, _createClass2.default)(ChildrenArray, [{ | |
| 703 | - key: "clear", | |
| 704 | - value: function clear() { | |
| 705 | - this.length = 0; | |
| 3494 | + /** | |
| 3495 | + * Function requireArgument(). | |
| 3496 | + * | |
| 3497 | + * Validate property in args. | |
| 3498 | + * | |
| 3499 | + * @param {string} property | |
| 3500 | + * @param {{}} args | |
| 3501 | + * | |
| 3502 | + * @throws {Error} | |
| 3503 | + * | |
| 3504 | + */ | |
| 3505 | + | |
| 3506 | + | |
| 3507 | + (0, _createClass2.default)(ArgsObject, [{ | |
| 3508 | + key: "requireArgument", | |
| 3509 | + value: function requireArgument(property) { | |
| 3510 | + var args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.args; | |
| 3511 | + | |
| 3512 | + if (!args.hasOwnProperty(property)) { | |
| 3513 | + throw Error("".concat(property, " is required.")); | |
| 3514 | + } | |
| 706 | 3515 | } |
| 707 | - | |
| 708 | 3516 | /** |
| 709 | - * Function findRecursive(). | |
| 3517 | + * Function requireArgumentType(). | |
| 710 | 3518 | * |
| 711 | - * Will run over children recursively and pass the children to the callback till the callback returns positive value. | |
| 3519 | + * Validate property in args using `type === typeof(args.whatever)`. | |
| 712 | 3520 | * |
| 713 | - * @param {function(Container) : *} callback | |
| 3521 | + * @param {string} property | |
| 3522 | + * @param {string} type | |
| 3523 | + * @param {{}} args | |
| 714 | 3524 | * |
| 715 | - * @return {Container|false} child | |
| 3525 | + * @throws {Error} | |
| 3526 | + * | |
| 716 | 3527 | */ |
| 3528 | + | |
| 717 | 3529 | }, { |
| 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(); | |
| 3530 | + key: "requireArgumentType", | |
| 3531 | + value: function requireArgumentType(property, type) { | |
| 3532 | + var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args; | |
| 3533 | + this.requireArgument(property, args); | |
| 3534 | + | |
| 3535 | + if ((0, _typeof2.default)(args[property]) !== type) { | |
| 3536 | + throw Error("".concat(property, " invalid type: ").concat(type, ".")); | |
| 739 | 3537 | } |
| 740 | - return false; | |
| 741 | 3538 | } |
| 742 | - | |
| 743 | 3539 | /** |
| 744 | - * Function forEachRecursive(). | |
| 3540 | + * Function requireArgumentInstance(). | |
| 745 | 3541 | * |
| 746 | - * Will run over children recursively. | |
| 3542 | + * Validate property in args using `args.whatever instanceof instance`. | |
| 747 | 3543 | * |
| 748 | - * @param {function(Container) : *} callback | |
| 3544 | + * @param {string} property | |
| 3545 | + * @param {instanceof} instance | |
| 3546 | + * @param {{}} args | |
| 749 | 3547 | * |
| 750 | - * @return {void} | |
| 3548 | + * @throws {Error} | |
| 3549 | + * | |
| 751 | 3550 | */ |
| 3551 | + | |
| 752 | 3552 | }, { |
| 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(); | |
| 3553 | + key: "requireArgumentInstance", | |
| 3554 | + value: function requireArgumentInstance(property, instance) { | |
| 3555 | + var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args; | |
| 3556 | + this.requireArgument(property, args); | |
| 3557 | + | |
| 3558 | + if (!(args[property] instanceof instance)) { | |
| 3559 | + throw Error("".concat(property, " invalid instance.")); | |
| 769 | 3560 | } |
| 770 | 3561 | } |
| 771 | - | |
| 772 | 3562 | /** |
| 773 | - * Function someRecursive(). | |
| 3563 | + * Function requireArgumentConstructor(). | |
| 774 | 3564 | * |
| 775 | - * Will run over children recursively, breaks if the callback return true. | |
| 3565 | + * Validate property in args using `type === args.whatever.constructor`. | |
| 776 | 3566 | * |
| 777 | - * @param {function(Container) : *} callback | |
| 3567 | + * @param {string} property | |
| 3568 | + * @param {*} type | |
| 3569 | + * @param {{}} args | |
| 3570 | + * | |
| 3571 | + * @throws {Error} | |
| 3572 | + * | |
| 778 | 3573 | */ |
| 3574 | + | |
| 779 | 3575 | }, { |
| 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(); | |
| 3576 | + key: "requireArgumentConstructor", | |
| 3577 | + value: function requireArgumentConstructor(property, type) { | |
| 3578 | + var args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args; | |
| 3579 | + this.requireArgument(property, args); | |
| 3580 | + | |
| 3581 | + if (args[property].constructor !== type) { | |
| 3582 | + throw Error("".concat(property, " invalid constructor type.")); | |
| 801 | 3583 | } |
| 802 | - return false; | |
| 803 | 3584 | } |
| 804 | 3585 | }]); |
| 805 | -}(/*#__PURE__*/(0, _wrapNativeSuper2.default)(Array)); | |
| 3586 | + return ArgsObject; | |
| 3587 | +}(_instanceType.default); | |
| 806 | 3588 | |
| 3589 | +exports.default = ArgsObject; | |
| 3590 | + | |
| 807 | 3591 | /***/ }), |
| 3592 | +/* 224 */, | |
| 3593 | +/* 225 */, | |
| 3594 | +/* 226 */ | |
| 3595 | +/***/ (function(module, exports, __webpack_require__) { | |
| 808 | 3596 | |
| 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__) => { | |
| 3597 | +// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) | |
| 3598 | +var anObject = __webpack_require__(18); | |
| 3599 | +var dPs = __webpack_require__(243); | |
| 3600 | +var enumBugKeys = __webpack_require__(147); | |
| 3601 | +var IE_PROTO = __webpack_require__(130)('IE_PROTO'); | |
| 3602 | +var Empty = function () { /* empty */ }; | |
| 3603 | +var PROTOTYPE = 'prototype'; | |
| 814 | 3604 | |
| 3605 | +// Create object with fake `null` prototype: use iframe Object with cleared prototype | |
| 3606 | +var createDict = function () { | |
| 3607 | + // Thrash, waste and sodomy: IE GC bug | |
| 3608 | + var iframe = __webpack_require__(109)('iframe'); | |
| 3609 | + var i = enumBugKeys.length; | |
| 3610 | + var lt = '<'; | |
| 3611 | + var gt = '>'; | |
| 3612 | + var iframeDocument; | |
| 3613 | + iframe.style.display = 'none'; | |
| 3614 | + __webpack_require__(227).appendChild(iframe); | |
| 3615 | + iframe.src = 'javascript:'; // eslint-disable-line no-script-url | |
| 3616 | + // createDict = iframe.contentWindow.Object; | |
| 3617 | + // html.removeChild(iframe); | |
| 3618 | + iframeDocument = iframe.contentWindow.document; | |
| 3619 | + iframeDocument.open(); | |
| 3620 | + iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); | |
| 3621 | + iframeDocument.close(); | |
| 3622 | + createDict = iframeDocument.F; | |
| 3623 | + while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; | |
| 3624 | + return createDict(); | |
| 3625 | +}; | |
| 3626 | + | |
| 3627 | +module.exports = Object.create || function create(O, Properties) { | |
| 3628 | + var result; | |
| 3629 | + if (O !== null) { | |
| 3630 | + Empty[PROTOTYPE] = anObject(O); | |
| 3631 | + result = new Empty(); | |
| 3632 | + Empty[PROTOTYPE] = null; | |
| 3633 | + // add "__proto__" for Object.getPrototypeOf polyfill | |
| 3634 | + result[IE_PROTO] = O; | |
| 3635 | + } else result = createDict(); | |
| 3636 | + return Properties === undefined ? result : dPs(result, Properties); | |
| 3637 | +}; | |
| 3638 | + | |
| 3639 | + | |
| 3640 | +/***/ }), | |
| 3641 | +/* 227 */ | |
| 3642 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3643 | + | |
| 3644 | +var document = __webpack_require__(17).document; | |
| 3645 | +module.exports = document && document.documentElement; | |
| 3646 | + | |
| 3647 | + | |
| 3648 | +/***/ }), | |
| 3649 | +/* 228 */ | |
| 3650 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3651 | + | |
| 3652 | +__webpack_require__(60); | |
| 3653 | +__webpack_require__(229); | |
| 3654 | +module.exports = __webpack_require__(6).Array.from; | |
| 3655 | + | |
| 3656 | + | |
| 3657 | +/***/ }), | |
| 3658 | +/* 229 */ | |
| 3659 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3660 | + | |
| 815 | 3661 | "use strict"; |
| 816 | 3662 | |
| 3663 | +var ctx = __webpack_require__(31); | |
| 3664 | +var $export = __webpack_require__(7); | |
| 3665 | +var toObject = __webpack_require__(32); | |
| 3666 | +var call = __webpack_require__(140); | |
| 3667 | +var isArrayIter = __webpack_require__(141); | |
| 3668 | +var toLength = __webpack_require__(68); | |
| 3669 | +var createProperty = __webpack_require__(186); | |
| 3670 | +var getIterFn = __webpack_require__(112); | |
| 817 | 3671 | |
| 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; | |
| 3672 | +$export($export.S + $export.F * !__webpack_require__(152)(function (iter) { Array.from(iter); }), 'Array', { | |
| 3673 | + // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined) | |
| 3674 | + from: function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) { | |
| 3675 | + var O = toObject(arrayLike); | |
| 3676 | + var C = typeof this == 'function' ? this : Array; | |
| 3677 | + var aLen = arguments.length; | |
| 3678 | + var mapfn = aLen > 1 ? arguments[1] : undefined; | |
| 3679 | + var mapping = mapfn !== undefined; | |
| 3680 | + var index = 0; | |
| 3681 | + var iterFn = getIterFn(O); | |
| 3682 | + var length, result, step, iterator; | |
| 3683 | + if (mapping) mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2); | |
| 3684 | + // if object isn't iterable or it's array with default iterator - use simple case | |
| 3685 | + if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) { | |
| 3686 | + for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) { | |
| 3687 | + createProperty(result, index, mapping ? call(iterator, mapfn, [step.value, index], true) : step.value); | |
| 3688 | + } | |
| 3689 | + } else { | |
| 3690 | + length = toLength(O.length); | |
| 3691 | + for (result = new C(length); length > index; index++) { | |
| 3692 | + createProperty(result, index, mapping ? mapfn(O[index], index) : O[index]); | |
| 3693 | + } | |
| 3694 | + } | |
| 3695 | + result.length = index; | |
| 3696 | + return result; | |
| 839 | 3697 | } |
| 3698 | +}); | |
| 840 | 3699 | |
| 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 | 3700 | |
| 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'); | |
| 3701 | +/***/ }), | |
| 3702 | +/* 230 */ | |
| 3703 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3704 | + | |
| 3705 | +__webpack_require__(62); | |
| 3706 | +__webpack_require__(60); | |
| 3707 | +module.exports = __webpack_require__(231); | |
| 3708 | + | |
| 3709 | + | |
| 3710 | +/***/ }), | |
| 3711 | +/* 231 */ | |
| 3712 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3713 | + | |
| 3714 | +var classof = __webpack_require__(101); | |
| 3715 | +var ITERATOR = __webpack_require__(10)('iterator'); | |
| 3716 | +var Iterators = __webpack_require__(35); | |
| 3717 | +module.exports = __webpack_require__(6).isIterable = function (it) { | |
| 3718 | + var O = Object(it); | |
| 3719 | + return O[ITERATOR] !== undefined | |
| 3720 | + || '@@iterator' in O | |
| 3721 | + // eslint-disable-next-line no-prototype-builtins | |
| 3722 | + || Iterators.hasOwnProperty(classof(O)); | |
| 3723 | +}; | |
| 3724 | + | |
| 3725 | + | |
| 3726 | +/***/ }), | |
| 3727 | +/* 232 */, | |
| 3728 | +/* 233 */, | |
| 3729 | +/* 234 */, | |
| 3730 | +/* 235 */, | |
| 3731 | +/* 236 */ | |
| 3732 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3733 | + | |
| 3734 | +module.exports = __webpack_require__(249); | |
| 3735 | + | |
| 3736 | +/***/ }), | |
| 3737 | +/* 237 */, | |
| 3738 | +/* 238 */, | |
| 3739 | +/* 239 */ | |
| 3740 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3741 | + | |
| 3742 | +__webpack_require__(240); | |
| 3743 | +module.exports = __webpack_require__(6).Object.values; | |
| 3744 | + | |
| 3745 | + | |
| 3746 | +/***/ }), | |
| 3747 | +/* 240 */ | |
| 3748 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3749 | + | |
| 3750 | +// https://github.com/tc39/proposal-object-values-entries | |
| 3751 | +var $export = __webpack_require__(7); | |
| 3752 | +var $values = __webpack_require__(185)(false); | |
| 3753 | + | |
| 3754 | +$export($export.S, 'Object', { | |
| 3755 | + values: function values(it) { | |
| 3756 | + return $values(it); | |
| 3757 | + } | |
| 3758 | +}); | |
| 3759 | + | |
| 3760 | + | |
| 3761 | +/***/ }), | |
| 3762 | +/* 241 */ | |
| 3763 | +/***/ (function(module, exports) { | |
| 3764 | + | |
| 3765 | +module.exports = function (done, value) { | |
| 3766 | + return { value: value, done: !!done }; | |
| 3767 | +}; | |
| 3768 | + | |
| 3769 | + | |
| 3770 | +/***/ }), | |
| 3771 | +/* 242 */ | |
| 3772 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3773 | + | |
| 3774 | +"use strict"; | |
| 3775 | + | |
| 3776 | +var create = __webpack_require__(226); | |
| 3777 | +var descriptor = __webpack_require__(102); | |
| 3778 | +var setToStringTag = __webpack_require__(153); | |
| 3779 | +var IteratorPrototype = {}; | |
| 3780 | + | |
| 3781 | +// 25.1.2.1.1 %IteratorPrototype%[@@iterator]() | |
| 3782 | +__webpack_require__(29)(IteratorPrototype, __webpack_require__(12)('iterator'), function () { return this; }); | |
| 3783 | + | |
| 3784 | +module.exports = function (Constructor, NAME, next) { | |
| 3785 | + Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) }); | |
| 3786 | + setToStringTag(Constructor, NAME + ' Iterator'); | |
| 3787 | +}; | |
| 3788 | + | |
| 3789 | + | |
| 3790 | +/***/ }), | |
| 3791 | +/* 243 */ | |
| 3792 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3793 | + | |
| 3794 | +var dP = __webpack_require__(45); | |
| 3795 | +var anObject = __webpack_require__(18); | |
| 3796 | +var getKeys = __webpack_require__(184); | |
| 3797 | + | |
| 3798 | +module.exports = __webpack_require__(27) ? Object.defineProperties : function defineProperties(O, Properties) { | |
| 3799 | + anObject(O); | |
| 3800 | + var keys = getKeys(Properties); | |
| 3801 | + var length = keys.length; | |
| 3802 | + var i = 0; | |
| 3803 | + var P; | |
| 3804 | + while (length > i) dP.f(O, P = keys[i++], Properties[P]); | |
| 3805 | + return O; | |
| 3806 | +}; | |
| 3807 | + | |
| 3808 | + | |
| 3809 | +/***/ }), | |
| 3810 | +/* 244 */ | |
| 3811 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3812 | + | |
| 3813 | +// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) | |
| 3814 | +var has = __webpack_require__(61); | |
| 3815 | +var toObject = __webpack_require__(96); | |
| 3816 | +var IE_PROTO = __webpack_require__(130)('IE_PROTO'); | |
| 3817 | +var ObjectProto = Object.prototype; | |
| 3818 | + | |
| 3819 | +module.exports = Object.getPrototypeOf || function (O) { | |
| 3820 | + O = toObject(O); | |
| 3821 | + if (has(O, IE_PROTO)) return O[IE_PROTO]; | |
| 3822 | + if (typeof O.constructor == 'function' && O instanceof O.constructor) { | |
| 3823 | + return O.constructor.prototype; | |
| 3824 | + } return O instanceof Object ? ObjectProto : null; | |
| 3825 | +}; | |
| 3826 | + | |
| 3827 | + | |
| 3828 | +/***/ }), | |
| 3829 | +/* 245 */, | |
| 3830 | +/* 246 */, | |
| 3831 | +/* 247 */ | |
| 3832 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3833 | + | |
| 3834 | +var _Array$isArray = __webpack_require__(81); | |
| 3835 | + | |
| 3836 | +function _arrayWithHoles(arr) { | |
| 3837 | + if (_Array$isArray(arr)) return arr; | |
| 3838 | +} | |
| 3839 | + | |
| 3840 | +module.exports = _arrayWithHoles; | |
| 3841 | + | |
| 3842 | +/***/ }), | |
| 3843 | +/* 248 */ | |
| 3844 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3845 | + | |
| 3846 | +var _getIterator = __webpack_require__(236); | |
| 3847 | + | |
| 3848 | +var _isIterable = __webpack_require__(211); | |
| 3849 | + | |
| 3850 | +var _Symbol = __webpack_require__(111); | |
| 3851 | + | |
| 3852 | +function _iterableToArrayLimit(arr, i) { | |
| 3853 | + if (typeof _Symbol === "undefined" || !_isIterable(Object(arr))) return; | |
| 3854 | + var _arr = []; | |
| 3855 | + var _n = true; | |
| 3856 | + var _d = false; | |
| 3857 | + var _e = undefined; | |
| 3858 | + | |
| 3859 | + try { | |
| 3860 | + for (var _i = _getIterator(arr), _s; !(_n = (_s = _i.next()).done); _n = true) { | |
| 3861 | + _arr.push(_s.value); | |
| 3862 | + | |
| 3863 | + if (i && _arr.length === i) break; | |
| 863 | 3864 | } |
| 864 | - }, { | |
| 865 | - key: "getControlView", | |
| 866 | - value: function getControlView(name) { | |
| 867 | - var editor = elementor.getPanelView().getCurrentPageView(); | |
| 868 | - return editor.children.findByModelCid(this.getControlModel(name).cid); | |
| 3865 | + } catch (err) { | |
| 3866 | + _d = true; | |
| 3867 | + _e = err; | |
| 3868 | + } finally { | |
| 3869 | + try { | |
| 3870 | + if (!_n && _i["return"] != null) _i["return"](); | |
| 3871 | + } finally { | |
| 3872 | + if (_d) throw _e; | |
| 869 | 3873 | } |
| 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 | -}(); | |
| 3874 | + } | |
| 880 | 3875 | |
| 3876 | + return _arr; | |
| 3877 | +} | |
| 3878 | + | |
| 3879 | +module.exports = _iterableToArrayLimit; | |
| 3880 | + | |
| 881 | 3881 | /***/ }), |
| 3882 | +/* 249 */ | |
| 3883 | +/***/ (function(module, exports, __webpack_require__) { | |
| 882 | 3884 | |
| 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__) => { | |
| 3885 | +__webpack_require__(62); | |
| 3886 | +__webpack_require__(60); | |
| 3887 | +module.exports = __webpack_require__(250); | |
| 888 | 3888 | |
| 3889 | + | |
| 3890 | +/***/ }), | |
| 3891 | +/* 250 */ | |
| 3892 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3893 | + | |
| 3894 | +var anObject = __webpack_require__(13); | |
| 3895 | +var get = __webpack_require__(112); | |
| 3896 | +module.exports = __webpack_require__(6).getIterator = function (it) { | |
| 3897 | + var iterFn = get(it); | |
| 3898 | + if (typeof iterFn != 'function') throw TypeError(it + ' is not iterable!'); | |
| 3899 | + return anObject(iterFn.call(it)); | |
| 3900 | +}; | |
| 3901 | + | |
| 3902 | + | |
| 3903 | +/***/ }), | |
| 3904 | +/* 251 */ | |
| 3905 | +/***/ (function(module, exports) { | |
| 3906 | + | |
| 3907 | +function _nonIterableRest() { | |
| 3908 | + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | |
| 3909 | +} | |
| 3910 | + | |
| 3911 | +module.exports = _nonIterableRest; | |
| 3912 | + | |
| 3913 | +/***/ }), | |
| 3914 | +/* 252 */ | |
| 3915 | +/***/ (function(module, exports, __webpack_require__) { | |
| 3916 | + | |
| 889 | 3917 | "use strict"; |
| 890 | 3918 | |
| 891 | 3919 | |
| 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; | |
| 3920 | +var _interopRequireDefault = __webpack_require__(0); | |
| 895 | 3921 | |
| 896 | -/** | |
| 897 | - * @name BaseSettingsModel | |
| 898 | - */ | |
| 899 | -BaseSettingsModel = Backbone.Model.extend({ | |
| 900 | - options: {}, | |
| 901 | - initialize: function initialize(data, options) { | |
| 902 | - var self = this; | |
| 3922 | +var _Object$defineProperty = __webpack_require__(1); | |
| 903 | 3923 | |
| 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 | - } | |
| 3924 | +_Object$defineProperty(exports, "__esModule", { | |
| 3925 | + value: true | |
| 3926 | +}); | |
| 934 | 3927 | |
| 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]; | |
| 3928 | +exports.default = void 0; | |
| 3929 | + | |
| 3930 | +__webpack_require__(39); | |
| 3931 | + | |
| 3932 | +var _isArray = _interopRequireDefault(__webpack_require__(81)); | |
| 3933 | + | |
| 3934 | +var _hasInstance = _interopRequireDefault(__webpack_require__(253)); | |
| 3935 | + | |
| 3936 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2)); | |
| 3937 | + | |
| 3938 | +var _createClass2 = _interopRequireDefault(__webpack_require__(3)); | |
| 3939 | + | |
| 3940 | +var _get2 = _interopRequireDefault(__webpack_require__(25)); | |
| 3941 | + | |
| 3942 | +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(16)); | |
| 3943 | + | |
| 3944 | +var InstanceType = /*#__PURE__*/function () { | |
| 3945 | + (0, _createClass2.default)(InstanceType, null, [{ | |
| 3946 | + key: _hasInstance.default, | |
| 3947 | + value: function value(target) { | |
| 3948 | + /** | |
| 3949 | + * This is function extending being called each time JS uses instanceOf, since babel use it each time it create new class | |
| 3950 | + * its give's opportunity to mange capabilities of instanceOf operator. | |
| 3951 | + * saving current class each time will give option later to handle instanceOf manually. | |
| 3952 | + */ | |
| 3953 | + var result = (0, _get2.default)((0, _getPrototypeOf2.default)(InstanceType), _hasInstance.default, this).call(this, target); // Act normal when validate a class, which does not have instance type. | |
| 3954 | + | |
| 3955 | + if (target && !target.constructor.getInstanceType) { | |
| 3956 | + return result; | |
| 940 | 3957 | } |
| 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 | - }); | |
| 957 | 3958 | |
| 958 | - // TODO: Cannot be deleted, since it handle repeater items after repeater widget creation. | |
| 959 | - if (!attributes._id) { | |
| 960 | - attributes._id = elementorCommon.helpers.getUniqueId(); | |
| 3959 | + if (target) { | |
| 3960 | + if (!target.instanceTypes) { | |
| 3961 | + target.instanceTypes = []; | |
| 961 | 3962 | } |
| 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); | |
| 3963 | + | |
| 3964 | + if (!result) { | |
| 3965 | + if (this.getInstanceType() === target.constructor.getInstanceType()) { | |
| 3966 | + result = true; | |
| 3967 | + } | |
| 973 | 3968 | } |
| 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); | |
| 3969 | + | |
| 3970 | + if (result) { | |
| 3971 | + var name = this.getInstanceType === InstanceType.getInstanceType ? 'BaseInstanceType' : this.getInstanceType(); | |
| 3972 | + | |
| 3973 | + if (-1 === target.instanceTypes.indexOf(name)) { | |
| 3974 | + target.instanceTypes.push(name); | |
| 3975 | + } | |
| 1001 | 3976 | } |
| 1002 | - self.attributes[control.name].each(function (item) { | |
| 1003 | - styleFields.push(self.getStyleControls(control.fields, item.attributes)); | |
| 1004 | - }); | |
| 1005 | - control.styleFields = styleFields; | |
| 1006 | 3977 | } |
| 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); | |
| 3978 | + | |
| 3979 | + if (!result && target) { | |
| 3980 | + // Check if the given 'target', is instance of known types. | |
| 3981 | + result = target.instanceTypes && (0, _isArray.default)(target.instanceTypes) && -1 !== target.instanceTypes.indexOf(this.getInstanceType()); | |
| 1009 | 3982 | } |
| 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; | |
| 3983 | + | |
| 3984 | + return result; | |
| 1018 | 3985 | } |
| 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; | |
| 3986 | + }]); | |
| 3987 | + | |
| 3988 | + function InstanceType() { | |
| 3989 | + var _this = this; | |
| 3990 | + | |
| 3991 | + (0, _classCallCheck2.default)(this, InstanceType); | |
| 3992 | + // Since anonymous classes sometimes do not get validated by babel, do it manually. | |
| 3993 | + var target = this instanceof InstanceType ? this.constructor : void 0; | |
| 3994 | + var prototypes = []; | |
| 3995 | + | |
| 3996 | + while (target.__proto__ && target.__proto__.name) { | |
| 3997 | + prototypes.push(target.__proto__); | |
| 3998 | + target = target.__proto__; | |
| 1022 | 3999 | } |
| 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; | |
| 4000 | + | |
| 4001 | + prototypes.reverse().forEach(function (proto) { | |
| 4002 | + return _this instanceof proto; | |
| 1030 | 4003 | }); |
| 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; | |
| 4004 | + } | |
| 4005 | + | |
| 4006 | + (0, _createClass2.default)(InstanceType, null, [{ | |
| 4007 | + key: "getInstanceType", | |
| 4008 | + value: function getInstanceType() { | |
| 4009 | + elementorModules.ForceMethodImplementation(); | |
| 1054 | 4010 | } |
| 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 | - } | |
| 4011 | + }]); | |
| 4012 | + return InstanceType; | |
| 4013 | +}(); | |
| 1178 | 4014 | |
| 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); | |
| 4015 | +exports.default = InstanceType; | |
| 4016 | + | |
| 4017 | +/***/ }), | |
| 4018 | +/* 253 */ | |
| 4019 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4020 | + | |
| 4021 | +module.exports = __webpack_require__(254); | |
| 4022 | + | |
| 4023 | +/***/ }), | |
| 4024 | +/* 254 */ | |
| 4025 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4026 | + | |
| 4027 | +__webpack_require__(255); | |
| 4028 | +module.exports = __webpack_require__(63).f('hasInstance'); | |
| 4029 | + | |
| 4030 | + | |
| 4031 | +/***/ }), | |
| 4032 | +/* 255 */ | |
| 4033 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4034 | + | |
| 4035 | +"use strict"; | |
| 4036 | + | |
| 4037 | +var isObject = __webpack_require__(9); | |
| 4038 | +var getPrototypeOf = __webpack_require__(64); | |
| 4039 | +var HAS_INSTANCE = __webpack_require__(10)('hasInstance'); | |
| 4040 | +var FunctionProto = Function.prototype; | |
| 4041 | +// 19.2.3.6 Function.prototype[@@hasInstance](V) | |
| 4042 | +if (!(HAS_INSTANCE in FunctionProto)) __webpack_require__(15).f(FunctionProto, HAS_INSTANCE, { value: function (O) { | |
| 4043 | + if (typeof this != 'function' || !isObject(O)) return false; | |
| 4044 | + if (!isObject(this.prototype)) return O instanceof this; | |
| 4045 | + // for environment w/o native `@@hasInstance` logic enough `instanceof`, but add this: | |
| 4046 | + while (O = getPrototypeOf(O)) if (this.prototype === O) return true; | |
| 4047 | + return false; | |
| 4048 | +} }); | |
| 4049 | + | |
| 4050 | + | |
| 4051 | +/***/ }), | |
| 4052 | +/* 256 */, | |
| 4053 | +/* 257 */, | |
| 4054 | +/* 258 */, | |
| 4055 | +/* 259 */, | |
| 4056 | +/* 260 */, | |
| 4057 | +/* 261 */, | |
| 4058 | +/* 262 */, | |
| 4059 | +/* 263 */, | |
| 4060 | +/* 264 */, | |
| 4061 | +/* 265 */, | |
| 4062 | +/* 266 */, | |
| 4063 | +/* 267 */, | |
| 4064 | +/* 268 */, | |
| 4065 | +/* 269 */ | |
| 4066 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4067 | + | |
| 4068 | +__webpack_require__(270); | |
| 4069 | +module.exports = __webpack_require__(6).Object.entries; | |
| 4070 | + | |
| 4071 | + | |
| 4072 | +/***/ }), | |
| 4073 | +/* 270 */ | |
| 4074 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4075 | + | |
| 4076 | +// https://github.com/tc39/proposal-object-values-entries | |
| 4077 | +var $export = __webpack_require__(7); | |
| 4078 | +var $entries = __webpack_require__(185)(true); | |
| 4079 | + | |
| 4080 | +$export($export.S, 'Object', { | |
| 4081 | + entries: function entries(it) { | |
| 4082 | + return $entries(it); | |
| 1209 | 4083 | } |
| 1210 | 4084 | }); |
| 1211 | 4085 | |
| 1212 | -/** | |
| 1213 | - * @name BaseSettingsModel | |
| 1214 | - */ | |
| 1215 | -module.exports = BaseSettingsModel; | |
| 1216 | 4086 | |
| 1217 | 4087 | /***/ }), |
| 4088 | +/* 271 */, | |
| 4089 | +/* 272 */, | |
| 4090 | +/* 273 */, | |
| 4091 | +/* 274 */, | |
| 4092 | +/* 275 */, | |
| 4093 | +/* 276 */ | |
| 4094 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1218 | 4095 | |
| 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) => { | |
| 4096 | +"use strict"; | |
| 4097 | +// 21.1.3.18 String.prototype.startsWith(searchString [, position ]) | |
| 1224 | 4098 | |
| 4099 | +var $export = __webpack_require__(34); | |
| 4100 | +var toLength = __webpack_require__(43); | |
| 4101 | +var context = __webpack_require__(204); | |
| 4102 | +var STARTS_WITH = 'startsWith'; | |
| 4103 | +var $startsWith = ''[STARTS_WITH]; | |
| 4104 | + | |
| 4105 | +$export($export.P + $export.F * __webpack_require__(205)(STARTS_WITH), 'String', { | |
| 4106 | + startsWith: function startsWith(searchString /* , position = 0 */) { | |
| 4107 | + var that = context(this, searchString, STARTS_WITH); | |
| 4108 | + var index = toLength(Math.min(arguments.length > 1 ? arguments[1] : undefined, that.length)); | |
| 4109 | + var search = String(searchString); | |
| 4110 | + return $startsWith | |
| 4111 | + ? $startsWith.call(that, search, index) | |
| 4112 | + : that.slice(index, index + search.length) === search; | |
| 4113 | + } | |
| 4114 | +}); | |
| 4115 | + | |
| 4116 | + | |
| 4117 | +/***/ }), | |
| 4118 | +/* 277 */, | |
| 4119 | +/* 278 */, | |
| 4120 | +/* 279 */ | |
| 4121 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4122 | + | |
| 4123 | +// 21.2.5.3 get RegExp.prototype.flags() | |
| 4124 | +if (__webpack_require__(27) && /./g.flags != 'g') __webpack_require__(45).f(RegExp.prototype, 'flags', { | |
| 4125 | + configurable: true, | |
| 4126 | + get: __webpack_require__(106) | |
| 4127 | +}); | |
| 4128 | + | |
| 4129 | + | |
| 4130 | +/***/ }), | |
| 4131 | +/* 280 */, | |
| 4132 | +/* 281 */, | |
| 4133 | +/* 282 */, | |
| 4134 | +/* 283 */, | |
| 4135 | +/* 284 */, | |
| 4136 | +/* 285 */, | |
| 4137 | +/* 286 */, | |
| 4138 | +/* 287 */, | |
| 4139 | +/* 288 */, | |
| 4140 | +/* 289 */, | |
| 4141 | +/* 290 */, | |
| 4142 | +/* 291 */, | |
| 4143 | +/* 292 */, | |
| 4144 | +/* 293 */, | |
| 4145 | +/* 294 */, | |
| 4146 | +/* 295 */, | |
| 4147 | +/* 296 */, | |
| 4148 | +/* 297 */, | |
| 4149 | +/* 298 */, | |
| 4150 | +/* 299 */, | |
| 4151 | +/* 300 */, | |
| 4152 | +/* 301 */, | |
| 4153 | +/* 302 */, | |
| 4154 | +/* 303 */, | |
| 4155 | +/* 304 */, | |
| 4156 | +/* 305 */, | |
| 4157 | +/* 306 */, | |
| 4158 | +/* 307 */, | |
| 4159 | +/* 308 */, | |
| 4160 | +/* 309 */, | |
| 4161 | +/* 310 */, | |
| 4162 | +/* 311 */, | |
| 4163 | +/* 312 */, | |
| 4164 | +/* 313 */, | |
| 4165 | +/* 314 */, | |
| 4166 | +/* 315 */, | |
| 4167 | +/* 316 */, | |
| 4168 | +/* 317 */, | |
| 4169 | +/* 318 */, | |
| 4170 | +/* 319 */, | |
| 4171 | +/* 320 */, | |
| 4172 | +/* 321 */, | |
| 4173 | +/* 322 */, | |
| 4174 | +/* 323 */, | |
| 4175 | +/* 324 */, | |
| 4176 | +/* 325 */, | |
| 4177 | +/* 326 */, | |
| 4178 | +/* 327 */, | |
| 4179 | +/* 328 */, | |
| 4180 | +/* 329 */ | |
| 4181 | +/***/ (function(module, exports, __webpack_require__) { | |
| 4182 | + | |
| 1225 | 4183 | "use strict"; |
| 1226 | 4184 | |
| 1227 | 4185 | |
| 4186 | +__webpack_require__(26); | |
| 4187 | + | |
| 1228 | 4188 | var InnerTabsBehavior; |
| 1229 | 4189 | InnerTabsBehavior = Marionette.Behavior.extend({ |
| 1230 | 4190 | onRenderCollection: function onRenderCollection() { |
| 1231 | 4191 | this.handleInnerTabs(this.view); |
| @@ -1230,25 +4190,29 @@ | ||
| 1230 | 4190 | onRenderCollection: function onRenderCollection() { |
| 1231 | 4191 | this.handleInnerTabs(this.view); |
| 1232 | 4192 | }, |
| 1233 | 4193 | 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 | - }); | |
| 4194 | + var closedClass = 'elementor-tab-close', | |
| 4195 | + activeClass = 'elementor-tab-active', | |
| 4196 | + tabsWrappers = parent.children.filter(function (view) { | |
| 4197 | + return 'tabs' === view.model.get('type'); | |
| 4198 | + }); | |
| 4199 | + | |
| 1239 | 4200 | _.each(tabsWrappers, function (view) { |
| 1240 | 4201 | view.$el.find('.elementor-control-content').remove(); |
| 1241 | 4202 | 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 | - }); | |
| 4203 | + tabs = parent.children.filter(function (childView) { | |
| 4204 | + return 'tab' === childView.model.get('type') && childView.model.get('tabs_wrapper') === tabsId; | |
| 4205 | + }); | |
| 4206 | + | |
| 1245 | 4207 | _.each(tabs, function (childView, index) { |
| 1246 | 4208 | view._addChildView(childView); |
| 4209 | + | |
| 1247 | 4210 | var tabId = childView.model.get('name'), |
| 1248 | - controlsUnderTab = parent.children.filter(function (controlView) { | |
| 1249 | - return tabId === controlView.model.get('inner_tab'); | |
| 1250 | - }); | |
| 4211 | + controlsUnderTab = parent.children.filter(function (controlView) { | |
| 4212 | + return tabId === controlView.model.get('inner_tab'); | |
| 4213 | + }); | |
| 4214 | + | |
| 1251 | 4215 | if (0 === index) { |
| 1252 | 4216 | childView.$el.addClass(activeClass); |
| 1253 | 4217 | } else { |
| 1254 | 4218 | _.each(controlsUnderTab, function (controlView) { |
| @@ -1258,21 +4222,24 @@ | ||
| 1258 | 4222 | }); |
| 1259 | 4223 | }); |
| 1260 | 4224 | }, |
| 1261 | 4225 | 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 | - }); | |
| 4226 | + var closedClass = 'elementor-tab-close', | |
| 4227 | + activeClass = 'elementor-tab-active', | |
| 4228 | + tabClicked = childView.model.get('name'), | |
| 4229 | + childrenUnderTab = this.view.children.filter(function (view) { | |
| 4230 | + return 'tab' !== view.model.get('type') && childView.model.get('tabs_wrapper') === view.model.get('tabs_wrapper'); | |
| 4231 | + }), | |
| 4232 | + siblingTabs = this.view.children.filter(function (view) { | |
| 4233 | + return 'tab' === view.model.get('type') && childView.model.get('tabs_wrapper') === view.model.get('tabs_wrapper'); | |
| 4234 | + }); | |
| 4235 | + | |
| 1271 | 4236 | _.each(siblingTabs, function (view) { |
| 1272 | 4237 | view.$el.removeClass(activeClass); |
| 1273 | 4238 | }); |
| 4239 | + | |
| 1274 | 4240 | childView.$el.addClass(activeClass); |
| 4241 | + | |
| 1275 | 4242 | _.each(childrenUnderTab, function (view) { |
| 1276 | 4243 | if (view.model.get('inner_tab') === tabClicked) { |
| 1277 | 4244 | view.$el.removeClass(closedClass); |
| 1278 | 4245 | } else { |
| @@ -1278,8 +4245,9 @@ | ||
| 1278 | 4245 | } else { |
| 1279 | 4246 | view.$el.addClass(closedClass); |
| 1280 | 4247 | } |
| 1281 | 4248 | }); |
| 4249 | + | |
| 1282 | 4250 | elementor.getPanelView().updateScrollbar(); |
| 1283 | 4251 | } |
| 1284 | 4252 | }); |
| 1285 | 4253 | module.exports = InnerTabsBehavior; |
| @@ -1284,240 +4252,61 @@ | ||
| 1284 | 4252 | }); |
| 1285 | 4253 | module.exports = InnerTabsBehavior; |
| 1286 | 4254 | |
| 1287 | 4255 | /***/ }), |
| 4256 | +/* 330 */, | |
| 4257 | +/* 331 */, | |
| 4258 | +/* 332 */, | |
| 4259 | +/* 333 */, | |
| 4260 | +/* 334 */, | |
| 4261 | +/* 335 */, | |
| 4262 | +/* 336 */, | |
| 4263 | +/* 337 */, | |
| 4264 | +/* 338 */, | |
| 4265 | +/* 339 */, | |
| 4266 | +/* 340 */, | |
| 4267 | +/* 341 */, | |
| 4268 | +/* 342 */, | |
| 4269 | +/* 343 */, | |
| 4270 | +/* 344 */, | |
| 4271 | +/* 345 */, | |
| 4272 | +/* 346 */, | |
| 4273 | +/* 347 */, | |
| 4274 | +/* 348 */, | |
| 4275 | +/* 349 */, | |
| 4276 | +/* 350 */, | |
| 4277 | +/* 351 */, | |
| 4278 | +/* 352 */, | |
| 4279 | +/* 353 */, | |
| 4280 | +/* 354 */, | |
| 4281 | +/* 355 */, | |
| 4282 | +/* 356 */, | |
| 4283 | +/* 357 */, | |
| 4284 | +/* 358 */, | |
| 4285 | +/* 359 */, | |
| 4286 | +/* 360 */, | |
| 4287 | +/* 361 */, | |
| 4288 | +/* 362 */, | |
| 4289 | +/* 363 */, | |
| 4290 | +/* 364 */, | |
| 4291 | +/* 365 */, | |
| 4292 | +/* 366 */, | |
| 4293 | +/* 367 */ | |
| 4294 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1288 | 4295 | |
| 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 | 4296 | "use strict"; |
| 1296 | 4297 | |
| 1297 | 4298 | |
| 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 | -}; | |
| 4299 | +var _interopRequireDefault = __webpack_require__(0); | |
| 1332 | 4300 | |
| 1333 | -/***/ }), | |
| 4301 | +__webpack_require__(146); | |
| 1334 | 4302 | |
| 1335 | -/***/ "../assets/dev/js/editor/utils/module.js": | |
| 1336 | -/*!***********************************************!*\ | |
| 1337 | - !*** ../assets/dev/js/editor/utils/module.js ***! | |
| 1338 | - \***********************************************/ | |
| 1339 | -/***/ ((module) => { | |
| 4303 | +__webpack_require__(117); | |
| 1340 | 4304 | |
| 1341 | -"use strict"; | |
| 4305 | +__webpack_require__(72); | |
| 1342 | 4306 | |
| 4307 | +var _controlsPopover = _interopRequireDefault(__webpack_require__(368)); | |
| 1343 | 4308 | |
| 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 | 4309 | var ControlsStack; |
| 1521 | 4310 | ControlsStack = Marionette.CompositeView.extend({ |
| 1522 | 4311 | classes: { |
| 1523 | 4312 | popover: 'elementor-controls-popover' |
| @@ -1553,22 +4342,21 @@ | ||
| 1553 | 4342 | destroy: 'onModelDestroy' |
| 1554 | 4343 | }, |
| 1555 | 4344 | behaviors: { |
| 1556 | 4345 | HandleInnerTabs: { |
| 1557 | - behaviorClass: __webpack_require__(/*! elementor-behaviors/inner-tabs */ "../assets/dev/js/editor/elements/views/behaviors/inner-tabs.js") | |
| 4346 | + behaviorClass: __webpack_require__(329) | |
| 1558 | 4347 | } |
| 1559 | 4348 | }, |
| 1560 | 4349 | initialize: function initialize(options) { |
| 1561 | 4350 | this.initCollection(); |
| 4351 | + | |
| 1562 | 4352 | if (options.tab) { |
| 1563 | 4353 | this.activeTab = options.tab; |
| 1564 | 4354 | this.activateFirstSection(); |
| 1565 | 4355 | } |
| 4356 | + | |
| 1566 | 4357 | this.listenTo(elementor.channels.deviceMode, 'change', this.onDeviceModeChange); |
| 1567 | 4358 | }, |
| 1568 | - onDestroy: function onDestroy() { | |
| 1569 | - this.stopListening(elementor.channels.deviceMode, 'change', this.onDeviceModeChange); | |
| 1570 | - }, | |
| 1571 | 4359 | initCollection: function initCollection() { |
| 1572 | 4360 | this.collection = new Backbone.Collection(_.values(elementor.mergeControlsSettings(this.getOption('controls')))); |
| 1573 | 4361 | }, |
| 1574 | 4362 | filter: function filter(controlModel) { |
| @@ -1574,11 +4362,13 @@ | ||
| 1574 | 4362 | filter: function filter(controlModel) { |
| 1575 | 4363 | if (controlModel.get('tab') !== this.activeTab) { |
| 1576 | 4364 | return false; |
| 1577 | 4365 | } |
| 4366 | + | |
| 1578 | 4367 | if ('section' === controlModel.get('type')) { |
| 1579 | 4368 | return true; |
| 1580 | 4369 | } |
| 4370 | + | |
| 1581 | 4371 | var section = controlModel.get('section'); |
| 1582 | 4372 | return !section || section === this.activeSection; |
| 1583 | 4373 | }, |
| 1584 | 4374 | getControlViewByModel: function getControlViewByModel(model) { |
| @@ -1597,9 +4387,11 @@ | ||
| 1597 | 4387 | }, |
| 1598 | 4388 | activateTab: function activateTab(tab) { |
| 1599 | 4389 | this.activeTab = tab; |
| 1600 | 4390 | this.activateFirstSection(); |
| 4391 | + | |
| 1601 | 4392 | this._renderChildren(); |
| 4393 | + | |
| 1602 | 4394 | return this; |
| 1603 | 4395 | }, |
| 1604 | 4396 | activateSection: function activateSection(sectionName) { |
| 1605 | 4397 | this.activeSection = sectionName; |
| @@ -1609,22 +4401,22 @@ | ||
| 1609 | 4401 | var self = this; |
| 1610 | 4402 | var sectionControls = self.collection.filter(function (controlModel) { |
| 1611 | 4403 | return 'section' === controlModel.get('type') && self.isVisibleSectionControl(controlModel); |
| 1612 | 4404 | }); |
| 1613 | - var sectionToActivate; | |
| 4405 | + | |
| 1614 | 4406 | if (!sectionControls[0]) { |
| 1615 | - self.activeSection = null; | |
| 1616 | - sectionToActivate = null; | |
| 1617 | - } else { | |
| 1618 | - sectionToActivate = sectionControls[0].get('name'); | |
| 4407 | + return; | |
| 1619 | 4408 | } |
| 4409 | + | |
| 1620 | 4410 | var preActivatedSection = sectionControls.filter(function (controlModel) { |
| 1621 | 4411 | return self.activeSection === controlModel.get('name'); |
| 1622 | 4412 | }); |
| 4413 | + | |
| 1623 | 4414 | if (preActivatedSection[0]) { |
| 1624 | 4415 | return; |
| 1625 | 4416 | } |
| 1626 | - self.activateSection(sectionToActivate); | |
| 4417 | + | |
| 4418 | + self.activateSection(sectionControls[0].get('name')); | |
| 1627 | 4419 | return this; |
| 1628 | 4420 | }, |
| 1629 | 4421 | getChildView: function getChildView(item) { |
| 1630 | 4422 | var controlType = item.get('type'); |
| @@ -1634,13 +4426,14 @@ | ||
| 1634 | 4426 | return [elementor.getPanelView().getCurrentPageName()]; |
| 1635 | 4427 | }, |
| 1636 | 4428 | openActiveSection: function openActiveSection() { |
| 1637 | 4429 | var activeSection = this.activeSection, |
| 1638 | - activeSectionView = this.children.filter(function (view) { | |
| 1639 | - return activeSection === view.model.get('name'); | |
| 1640 | - }); | |
| 4430 | + activeSectionView = this.children.filter(function (view) { | |
| 4431 | + return activeSection === view.model.get('name'); | |
| 4432 | + }); | |
| 4433 | + | |
| 1641 | 4434 | if (activeSectionView[0]) { |
| 1642 | - activeSectionView[0].$el.addClass('e-open'); | |
| 4435 | + activeSectionView[0].$el.addClass('elementor-open'); | |
| 1643 | 4436 | var eventNamespace = this.getNamespaceArray(); |
| 1644 | 4437 | eventNamespace.push(activeSection, 'activated'); |
| 1645 | 4438 | elementor.channels.editor.trigger(eventNamespace.join(':'), this); |
| 1646 | 4439 | } |
| @@ -1660,10 +4453,11 @@ | ||
| 1660 | 4453 | this.$el.removeClass('elementor-responsive-switchers-open'); |
| 1661 | 4454 | } |
| 1662 | 4455 | }, |
| 1663 | 4456 | onChildviewControlSectionClicked: function onChildviewControlSectionClicked(childView) { |
| 1664 | - var isSectionOpen = childView.$el.hasClass('e-open'); | |
| 4457 | + var isSectionOpen = childView.$el.hasClass('elementor-open'); | |
| 1665 | 4458 | this.activateSection(isSectionOpen ? null : childView.model.get('name')); |
| 4459 | + | |
| 1666 | 4460 | this._renderChildren(); |
| 1667 | 4461 | }, |
| 1668 | 4462 | onChildviewResponsiveSwitcherClick: function onChildviewResponsiveSwitcherClick(childView, device) { |
| 1669 | 4463 | if ('desktop' === device) { |
| @@ -1672,22 +4466,26 @@ | ||
| 1672 | 4466 | } |
| 1673 | 4467 | }, { |
| 1674 | 4468 | handlePopovers: function handlePopovers(view) { |
| 1675 | 4469 | var popover; |
| 4470 | + view.popovers = []; | |
| 1676 | 4471 | this.removePopovers(view); |
| 1677 | - view.popovers = []; | |
| 1678 | 4472 | view.children.each(function (control) { |
| 1679 | 4473 | if (popover) { |
| 1680 | 4474 | popover.addChild(control); |
| 1681 | 4475 | } |
| 4476 | + | |
| 1682 | 4477 | var popoverData = control.model.get('popover'); |
| 4478 | + | |
| 1683 | 4479 | if (!popoverData) { |
| 1684 | 4480 | return; |
| 1685 | 4481 | } |
| 4482 | + | |
| 1686 | 4483 | if (popoverData.start) { |
| 1687 | 4484 | popover = new _controlsPopover.default(control); |
| 1688 | 4485 | view.popovers.push(popover); |
| 1689 | 4486 | } |
| 4487 | + | |
| 1690 | 4488 | if (popoverData.end) { |
| 1691 | 4489 | popover = null; |
| 1692 | 4490 | } |
| 1693 | 4491 | }); |
| @@ -1692,281 +4490,724 @@ | ||
| 1692 | 4490 | } |
| 1693 | 4491 | }); |
| 1694 | 4492 | }, |
| 1695 | 4493 | removePopovers: function removePopovers(view) { |
| 1696 | - var _view$popovers; | |
| 1697 | - (_view$popovers = view.popovers) === null || _view$popovers === void 0 || _view$popovers.forEach(function (popover) { | |
| 4494 | + view.popovers.forEach(function (popover) { | |
| 1698 | 4495 | return popover.destroy(); |
| 1699 | 4496 | }); |
| 1700 | 4497 | } |
| 1701 | 4498 | }); |
| 1702 | -var _default = exports["default"] = ControlsStack; | |
| 4499 | +module.exports = ControlsStack; | |
| 1703 | 4500 | |
| 1704 | 4501 | /***/ }), |
| 4502 | +/* 368 */ | |
| 4503 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1705 | 4504 | |
| 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__) => { | |
| 4505 | +"use strict"; | |
| 1711 | 4506 | |
| 1712 | -"use strict"; | |
| 1713 | 4507 | |
| 4508 | +var _interopRequireDefault = __webpack_require__(0); | |
| 1714 | 4509 | |
| 1715 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1716 | -Object.defineProperty(exports, "__esModule", ({ | |
| 4510 | +var _Object$defineProperty = __webpack_require__(1); | |
| 4511 | + | |
| 4512 | +_Object$defineProperty(exports, "__esModule", { | |
| 1717 | 4513 | 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; | |
| 4514 | +}); | |
| 4515 | + | |
| 4516 | +exports.default = void 0; | |
| 4517 | + | |
| 4518 | +var _defineProperty2 = _interopRequireDefault(__webpack_require__(28)); | |
| 4519 | + | |
| 4520 | +__webpack_require__(26); | |
| 4521 | + | |
| 4522 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2)); | |
| 4523 | + | |
| 4524 | +var _createClass2 = _interopRequireDefault(__webpack_require__(3)); | |
| 4525 | + | |
| 4526 | +var ControlsPopover = /*#__PURE__*/function () { | |
| 4527 | + function ControlsPopover(child) { | |
| 4528 | + (0, _classCallCheck2.default)(this, ControlsPopover); | |
| 4529 | + this.child = child; | |
| 4530 | + this.$popover = jQuery('<div>', { | |
| 4531 | + class: 'elementor-controls-popover' | |
| 4532 | + }); | |
| 4533 | + child.$el.before(this.$popover); | |
| 4534 | + this.$popover.append(child.$el); | |
| 4535 | + this.popoverToggleView = child._parent.children.findByIndex(child._index - 1); // Add the "Typography" header to the popover | |
| 4536 | + | |
| 4537 | + if ('typography' === this.child.model.attributes.groupType) { | |
| 4538 | + this.createPopoverHeader(); | |
| 4539 | + } | |
| 1744 | 4540 | } |
| 1745 | 4541 | |
| 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.")); | |
| 4542 | + (0, _createClass2.default)(ControlsPopover, [{ | |
| 4543 | + key: "addChild", | |
| 4544 | + value: function addChild(child) { | |
| 4545 | + this.$popover.append(child.$el); | |
| 4546 | + } | |
| 4547 | + }, { | |
| 4548 | + key: "createPopoverHeader", | |
| 4549 | + value: function createPopoverHeader() { | |
| 4550 | + var _this = this; | |
| 4551 | + | |
| 4552 | + var $popoverToggleControl = this.$popover.prev(), | |
| 4553 | + // Get the existing reset button. | |
| 4554 | + $resetLabel = $popoverToggleControl.find('.elementor-control-popover-toggle-reset-label'); | |
| 4555 | + this.$popoverHeader = jQuery('<div>', { | |
| 4556 | + class: 'e-group-control-header' | |
| 4557 | + }).html('<span>' + elementor.translate('typography') + '</span>'); | |
| 4558 | + this.$headerControlsWrapper = jQuery('<div>', { | |
| 4559 | + class: 'e-control-tools' | |
| 4560 | + }); // Give the reset button the control tool styling, and add a click event so clicking on it closes the popover. | |
| 4561 | + | |
| 4562 | + $resetLabel.addClass('e-control-tool').on('click', function () { | |
| 4563 | + return _this.onResetButtonClick(); | |
| 4564 | + }); // Move the popover toggle reset button into the popover header. | |
| 4565 | + | |
| 4566 | + this.$headerControlsWrapper.append($resetLabel); | |
| 4567 | + this.$popoverHeader.append(this.$headerControlsWrapper); | |
| 4568 | + var globalConfig = this.popoverToggleView.model.get('global'); | |
| 4569 | + | |
| 4570 | + if (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.active) { | |
| 4571 | + this.createAddButton(); | |
| 1763 | 4572 | } |
| 4573 | + | |
| 4574 | + this.$popover.prepend(this.$popoverHeader).addClass('e-controls-popover--typography'); | |
| 1764 | 4575 | } |
| 4576 | + }, { | |
| 4577 | + key: "onResetButtonClick", | |
| 4578 | + value: function onResetButtonClick() { | |
| 4579 | + this.$popover.hide(); | |
| 4580 | + var groupControlName = this.child.model.get('groupPrefix') + 'typography', | |
| 4581 | + args = { | |
| 4582 | + container: this.child.options.container, | |
| 4583 | + settings: (0, _defineProperty2.default)({}, groupControlName, '') | |
| 4584 | + }; | |
| 1765 | 4585 | |
| 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, ".")); | |
| 4586 | + if (this.child.options.container.globals.get(groupControlName)) { | |
| 4587 | + // The Disable Globals command applies global settings locally, | |
| 4588 | + // so disabling the global shouldn't actually change the appearance of the widget. | |
| 4589 | + $e.run('document/globals/disable', args); | |
| 4590 | + } else { | |
| 4591 | + $e.run('document/elements/settings', args); | |
| 1784 | 4592 | } |
| 1785 | 4593 | } |
| 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 | 4594 | }, { |
| 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 | - } | |
| 4595 | + key: "onAddButtonClick", | |
| 4596 | + value: function onAddButtonClick() { | |
| 4597 | + this.popoverToggleView.onAddGlobalButtonClick(); | |
| 1806 | 4598 | } |
| 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 | 4599 | }, { |
| 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); | |
| 4600 | + key: "createAddButton", | |
| 4601 | + value: function createAddButton() { | |
| 4602 | + var _this2 = this; | |
| 1824 | 4603 | |
| 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 | - } | |
| 4604 | + this.$addButton = jQuery('<button>', { | |
| 4605 | + class: 'e-control-tool' | |
| 4606 | + }).html(jQuery('<i>', { | |
| 4607 | + class: 'eicon-plus' | |
| 4608 | + })); | |
| 4609 | + this.$headerControlsWrapper.append(this.$addButton); | |
| 4610 | + this.$addButton.on('click', function () { | |
| 4611 | + return _this2.onAddButtonClick(); | |
| 4612 | + }); | |
| 4613 | + this.$addButton.tipsy({ | |
| 4614 | + title: function title() { | |
| 4615 | + return elementor.translate('create_global_font'); | |
| 4616 | + }, | |
| 4617 | + gravity: function gravity() { | |
| 4618 | + return 's'; | |
| 4619 | + } | |
| 4620 | + }); | |
| 1830 | 4621 | } |
| 1831 | - }], [{ | |
| 1832 | - key: "getInstanceType", | |
| 1833 | - value: function getInstanceType() { | |
| 1834 | - return 'ArgsObject'; | |
| 4622 | + }, { | |
| 4623 | + key: "destroy", | |
| 4624 | + value: function destroy() { | |
| 4625 | + this.$popover.remove(); | |
| 1835 | 4626 | } |
| 1836 | 4627 | }]); |
| 1837 | -}(_instanceType.default); | |
| 4628 | + return ControlsPopover; | |
| 4629 | +}(); | |
| 1838 | 4630 | |
| 4631 | +exports.default = ControlsPopover; | |
| 4632 | + | |
| 1839 | 4633 | /***/ }), |
| 4634 | +/* 369 */, | |
| 4635 | +/* 370 */, | |
| 4636 | +/* 371 */, | |
| 4637 | +/* 372 */, | |
| 4638 | +/* 373 */, | |
| 4639 | +/* 374 */, | |
| 4640 | +/* 375 */, | |
| 4641 | +/* 376 */, | |
| 4642 | +/* 377 */, | |
| 4643 | +/* 378 */, | |
| 4644 | +/* 379 */, | |
| 4645 | +/* 380 */, | |
| 4646 | +/* 381 */, | |
| 4647 | +/* 382 */, | |
| 4648 | +/* 383 */, | |
| 4649 | +/* 384 */, | |
| 4650 | +/* 385 */, | |
| 4651 | +/* 386 */, | |
| 4652 | +/* 387 */, | |
| 4653 | +/* 388 */, | |
| 4654 | +/* 389 */, | |
| 4655 | +/* 390 */, | |
| 4656 | +/* 391 */, | |
| 4657 | +/* 392 */, | |
| 4658 | +/* 393 */, | |
| 4659 | +/* 394 */, | |
| 4660 | +/* 395 */, | |
| 4661 | +/* 396 */, | |
| 4662 | +/* 397 */, | |
| 4663 | +/* 398 */, | |
| 4664 | +/* 399 */, | |
| 4665 | +/* 400 */, | |
| 4666 | +/* 401 */, | |
| 4667 | +/* 402 */, | |
| 4668 | +/* 403 */, | |
| 4669 | +/* 404 */, | |
| 4670 | +/* 405 */, | |
| 4671 | +/* 406 */, | |
| 4672 | +/* 407 */, | |
| 4673 | +/* 408 */, | |
| 4674 | +/* 409 */, | |
| 4675 | +/* 410 */, | |
| 4676 | +/* 411 */, | |
| 4677 | +/* 412 */, | |
| 4678 | +/* 413 */, | |
| 4679 | +/* 414 */, | |
| 4680 | +/* 415 */, | |
| 4681 | +/* 416 */, | |
| 4682 | +/* 417 */, | |
| 4683 | +/* 418 */, | |
| 4684 | +/* 419 */, | |
| 4685 | +/* 420 */, | |
| 4686 | +/* 421 */, | |
| 4687 | +/* 422 */, | |
| 4688 | +/* 423 */, | |
| 4689 | +/* 424 */, | |
| 4690 | +/* 425 */, | |
| 4691 | +/* 426 */, | |
| 4692 | +/* 427 */, | |
| 4693 | +/* 428 */, | |
| 4694 | +/* 429 */, | |
| 4695 | +/* 430 */, | |
| 4696 | +/* 431 */, | |
| 4697 | +/* 432 */, | |
| 4698 | +/* 433 */, | |
| 4699 | +/* 434 */, | |
| 4700 | +/* 435 */, | |
| 4701 | +/* 436 */, | |
| 4702 | +/* 437 */, | |
| 4703 | +/* 438 */, | |
| 4704 | +/* 439 */, | |
| 4705 | +/* 440 */, | |
| 4706 | +/* 441 */, | |
| 4707 | +/* 442 */, | |
| 4708 | +/* 443 */, | |
| 4709 | +/* 444 */, | |
| 4710 | +/* 445 */, | |
| 4711 | +/* 446 */, | |
| 4712 | +/* 447 */, | |
| 4713 | +/* 448 */, | |
| 4714 | +/* 449 */, | |
| 4715 | +/* 450 */, | |
| 4716 | +/* 451 */, | |
| 4717 | +/* 452 */, | |
| 4718 | +/* 453 */, | |
| 4719 | +/* 454 */, | |
| 4720 | +/* 455 */, | |
| 4721 | +/* 456 */, | |
| 4722 | +/* 457 */, | |
| 4723 | +/* 458 */, | |
| 4724 | +/* 459 */, | |
| 4725 | +/* 460 */, | |
| 4726 | +/* 461 */, | |
| 4727 | +/* 462 */, | |
| 4728 | +/* 463 */, | |
| 4729 | +/* 464 */, | |
| 4730 | +/* 465 */, | |
| 4731 | +/* 466 */, | |
| 4732 | +/* 467 */, | |
| 4733 | +/* 468 */, | |
| 4734 | +/* 469 */, | |
| 4735 | +/* 470 */, | |
| 4736 | +/* 471 */, | |
| 4737 | +/* 472 */, | |
| 4738 | +/* 473 */, | |
| 4739 | +/* 474 */, | |
| 4740 | +/* 475 */, | |
| 4741 | +/* 476 */, | |
| 4742 | +/* 477 */, | |
| 4743 | +/* 478 */, | |
| 4744 | +/* 479 */, | |
| 4745 | +/* 480 */, | |
| 4746 | +/* 481 */, | |
| 4747 | +/* 482 */, | |
| 4748 | +/* 483 */, | |
| 4749 | +/* 484 */, | |
| 4750 | +/* 485 */, | |
| 4751 | +/* 486 */, | |
| 4752 | +/* 487 */, | |
| 4753 | +/* 488 */, | |
| 4754 | +/* 489 */, | |
| 4755 | +/* 490 */, | |
| 4756 | +/* 491 */, | |
| 4757 | +/* 492 */, | |
| 4758 | +/* 493 */, | |
| 4759 | +/* 494 */, | |
| 4760 | +/* 495 */, | |
| 4761 | +/* 496 */, | |
| 4762 | +/* 497 */, | |
| 4763 | +/* 498 */, | |
| 4764 | +/* 499 */, | |
| 4765 | +/* 500 */, | |
| 4766 | +/* 501 */, | |
| 4767 | +/* 502 */, | |
| 4768 | +/* 503 */, | |
| 4769 | +/* 504 */, | |
| 4770 | +/* 505 */, | |
| 4771 | +/* 506 */, | |
| 4772 | +/* 507 */, | |
| 4773 | +/* 508 */, | |
| 4774 | +/* 509 */, | |
| 4775 | +/* 510 */, | |
| 4776 | +/* 511 */, | |
| 4777 | +/* 512 */, | |
| 4778 | +/* 513 */, | |
| 4779 | +/* 514 */, | |
| 4780 | +/* 515 */, | |
| 4781 | +/* 516 */, | |
| 4782 | +/* 517 */, | |
| 4783 | +/* 518 */, | |
| 4784 | +/* 519 */, | |
| 4785 | +/* 520 */, | |
| 4786 | +/* 521 */, | |
| 4787 | +/* 522 */, | |
| 4788 | +/* 523 */, | |
| 4789 | +/* 524 */, | |
| 4790 | +/* 525 */, | |
| 4791 | +/* 526 */, | |
| 4792 | +/* 527 */, | |
| 4793 | +/* 528 */, | |
| 4794 | +/* 529 */, | |
| 4795 | +/* 530 */, | |
| 4796 | +/* 531 */, | |
| 4797 | +/* 532 */, | |
| 4798 | +/* 533 */, | |
| 4799 | +/* 534 */, | |
| 4800 | +/* 535 */, | |
| 4801 | +/* 536 */, | |
| 4802 | +/* 537 */, | |
| 4803 | +/* 538 */, | |
| 4804 | +/* 539 */, | |
| 4805 | +/* 540 */, | |
| 4806 | +/* 541 */, | |
| 4807 | +/* 542 */, | |
| 4808 | +/* 543 */, | |
| 4809 | +/* 544 */, | |
| 4810 | +/* 545 */, | |
| 4811 | +/* 546 */, | |
| 4812 | +/* 547 */, | |
| 4813 | +/* 548 */, | |
| 4814 | +/* 549 */, | |
| 4815 | +/* 550 */, | |
| 4816 | +/* 551 */, | |
| 4817 | +/* 552 */, | |
| 4818 | +/* 553 */, | |
| 4819 | +/* 554 */, | |
| 4820 | +/* 555 */, | |
| 4821 | +/* 556 */, | |
| 4822 | +/* 557 */, | |
| 4823 | +/* 558 */, | |
| 4824 | +/* 559 */, | |
| 4825 | +/* 560 */, | |
| 4826 | +/* 561 */, | |
| 4827 | +/* 562 */, | |
| 4828 | +/* 563 */, | |
| 4829 | +/* 564 */, | |
| 4830 | +/* 565 */, | |
| 4831 | +/* 566 */, | |
| 4832 | +/* 567 */, | |
| 4833 | +/* 568 */, | |
| 4834 | +/* 569 */, | |
| 4835 | +/* 570 */, | |
| 4836 | +/* 571 */, | |
| 4837 | +/* 572 */, | |
| 4838 | +/* 573 */, | |
| 4839 | +/* 574 */, | |
| 4840 | +/* 575 */, | |
| 4841 | +/* 576 */, | |
| 4842 | +/* 577 */, | |
| 4843 | +/* 578 */, | |
| 4844 | +/* 579 */, | |
| 4845 | +/* 580 */, | |
| 4846 | +/* 581 */, | |
| 4847 | +/* 582 */, | |
| 4848 | +/* 583 */, | |
| 4849 | +/* 584 */, | |
| 4850 | +/* 585 */, | |
| 4851 | +/* 586 */, | |
| 4852 | +/* 587 */, | |
| 4853 | +/* 588 */, | |
| 4854 | +/* 589 */, | |
| 4855 | +/* 590 */, | |
| 4856 | +/* 591 */, | |
| 4857 | +/* 592 */, | |
| 4858 | +/* 593 */, | |
| 4859 | +/* 594 */, | |
| 4860 | +/* 595 */, | |
| 4861 | +/* 596 */, | |
| 4862 | +/* 597 */, | |
| 4863 | +/* 598 */, | |
| 4864 | +/* 599 */, | |
| 4865 | +/* 600 */, | |
| 4866 | +/* 601 */, | |
| 4867 | +/* 602 */, | |
| 4868 | +/* 603 */, | |
| 4869 | +/* 604 */, | |
| 4870 | +/* 605 */, | |
| 4871 | +/* 606 */, | |
| 4872 | +/* 607 */, | |
| 4873 | +/* 608 */, | |
| 4874 | +/* 609 */, | |
| 4875 | +/* 610 */, | |
| 4876 | +/* 611 */, | |
| 4877 | +/* 612 */, | |
| 4878 | +/* 613 */, | |
| 4879 | +/* 614 */, | |
| 4880 | +/* 615 */, | |
| 4881 | +/* 616 */, | |
| 4882 | +/* 617 */, | |
| 4883 | +/* 618 */, | |
| 4884 | +/* 619 */, | |
| 4885 | +/* 620 */, | |
| 4886 | +/* 621 */, | |
| 4887 | +/* 622 */, | |
| 4888 | +/* 623 */, | |
| 4889 | +/* 624 */, | |
| 4890 | +/* 625 */, | |
| 4891 | +/* 626 */, | |
| 4892 | +/* 627 */, | |
| 4893 | +/* 628 */, | |
| 4894 | +/* 629 */, | |
| 4895 | +/* 630 */, | |
| 4896 | +/* 631 */, | |
| 4897 | +/* 632 */, | |
| 4898 | +/* 633 */, | |
| 4899 | +/* 634 */, | |
| 4900 | +/* 635 */, | |
| 4901 | +/* 636 */, | |
| 4902 | +/* 637 */, | |
| 4903 | +/* 638 */, | |
| 4904 | +/* 639 */, | |
| 4905 | +/* 640 */, | |
| 4906 | +/* 641 */, | |
| 4907 | +/* 642 */, | |
| 4908 | +/* 643 */, | |
| 4909 | +/* 644 */, | |
| 4910 | +/* 645 */, | |
| 4911 | +/* 646 */, | |
| 4912 | +/* 647 */, | |
| 4913 | +/* 648 */, | |
| 4914 | +/* 649 */, | |
| 4915 | +/* 650 */, | |
| 4916 | +/* 651 */, | |
| 4917 | +/* 652 */, | |
| 4918 | +/* 653 */, | |
| 4919 | +/* 654 */, | |
| 4920 | +/* 655 */, | |
| 4921 | +/* 656 */, | |
| 4922 | +/* 657 */, | |
| 4923 | +/* 658 */, | |
| 4924 | +/* 659 */, | |
| 4925 | +/* 660 */, | |
| 4926 | +/* 661 */, | |
| 4927 | +/* 662 */, | |
| 4928 | +/* 663 */, | |
| 4929 | +/* 664 */, | |
| 4930 | +/* 665 */, | |
| 4931 | +/* 666 */, | |
| 4932 | +/* 667 */, | |
| 4933 | +/* 668 */, | |
| 4934 | +/* 669 */, | |
| 4935 | +/* 670 */, | |
| 4936 | +/* 671 */, | |
| 4937 | +/* 672 */, | |
| 4938 | +/* 673 */, | |
| 4939 | +/* 674 */, | |
| 4940 | +/* 675 */, | |
| 4941 | +/* 676 */, | |
| 4942 | +/* 677 */, | |
| 4943 | +/* 678 */, | |
| 4944 | +/* 679 */, | |
| 4945 | +/* 680 */, | |
| 4946 | +/* 681 */, | |
| 4947 | +/* 682 */, | |
| 4948 | +/* 683 */, | |
| 4949 | +/* 684 */, | |
| 4950 | +/* 685 */, | |
| 4951 | +/* 686 */, | |
| 4952 | +/* 687 */, | |
| 4953 | +/* 688 */, | |
| 4954 | +/* 689 */, | |
| 4955 | +/* 690 */, | |
| 4956 | +/* 691 */, | |
| 4957 | +/* 692 */, | |
| 4958 | +/* 693 */, | |
| 4959 | +/* 694 */, | |
| 4960 | +/* 695 */, | |
| 4961 | +/* 696 */, | |
| 4962 | +/* 697 */, | |
| 4963 | +/* 698 */, | |
| 4964 | +/* 699 */, | |
| 4965 | +/* 700 */, | |
| 4966 | +/* 701 */, | |
| 4967 | +/* 702 */, | |
| 4968 | +/* 703 */, | |
| 4969 | +/* 704 */, | |
| 4970 | +/* 705 */, | |
| 4971 | +/* 706 */, | |
| 4972 | +/* 707 */, | |
| 4973 | +/* 708 */, | |
| 4974 | +/* 709 */, | |
| 4975 | +/* 710 */, | |
| 4976 | +/* 711 */, | |
| 4977 | +/* 712 */, | |
| 4978 | +/* 713 */, | |
| 4979 | +/* 714 */, | |
| 4980 | +/* 715 */, | |
| 4981 | +/* 716 */, | |
| 4982 | +/* 717 */, | |
| 4983 | +/* 718 */, | |
| 4984 | +/* 719 */, | |
| 4985 | +/* 720 */, | |
| 4986 | +/* 721 */, | |
| 4987 | +/* 722 */, | |
| 4988 | +/* 723 */, | |
| 4989 | +/* 724 */, | |
| 4990 | +/* 725 */, | |
| 4991 | +/* 726 */, | |
| 4992 | +/* 727 */, | |
| 4993 | +/* 728 */, | |
| 4994 | +/* 729 */, | |
| 4995 | +/* 730 */, | |
| 4996 | +/* 731 */, | |
| 4997 | +/* 732 */, | |
| 4998 | +/* 733 */, | |
| 4999 | +/* 734 */, | |
| 5000 | +/* 735 */, | |
| 5001 | +/* 736 */, | |
| 5002 | +/* 737 */, | |
| 5003 | +/* 738 */, | |
| 5004 | +/* 739 */, | |
| 5005 | +/* 740 */, | |
| 5006 | +/* 741 */, | |
| 5007 | +/* 742 */, | |
| 5008 | +/* 743 */, | |
| 5009 | +/* 744 */, | |
| 5010 | +/* 745 */, | |
| 5011 | +/* 746 */, | |
| 5012 | +/* 747 */, | |
| 5013 | +/* 748 */, | |
| 5014 | +/* 749 */, | |
| 5015 | +/* 750 */, | |
| 5016 | +/* 751 */, | |
| 5017 | +/* 752 */, | |
| 5018 | +/* 753 */, | |
| 5019 | +/* 754 */, | |
| 5020 | +/* 755 */, | |
| 5021 | +/* 756 */, | |
| 5022 | +/* 757 */, | |
| 5023 | +/* 758 */, | |
| 5024 | +/* 759 */, | |
| 5025 | +/* 760 */, | |
| 5026 | +/* 761 */, | |
| 5027 | +/* 762 */, | |
| 5028 | +/* 763 */, | |
| 5029 | +/* 764 */, | |
| 5030 | +/* 765 */, | |
| 5031 | +/* 766 */, | |
| 5032 | +/* 767 */, | |
| 5033 | +/* 768 */, | |
| 5034 | +/* 769 */, | |
| 5035 | +/* 770 */, | |
| 5036 | +/* 771 */, | |
| 5037 | +/* 772 */, | |
| 5038 | +/* 773 */, | |
| 5039 | +/* 774 */, | |
| 5040 | +/* 775 */, | |
| 5041 | +/* 776 */, | |
| 5042 | +/* 777 */, | |
| 5043 | +/* 778 */, | |
| 5044 | +/* 779 */, | |
| 5045 | +/* 780 */, | |
| 5046 | +/* 781 */, | |
| 5047 | +/* 782 */, | |
| 5048 | +/* 783 */, | |
| 5049 | +/* 784 */, | |
| 5050 | +/* 785 */, | |
| 5051 | +/* 786 */, | |
| 5052 | +/* 787 */, | |
| 5053 | +/* 788 */, | |
| 5054 | +/* 789 */, | |
| 5055 | +/* 790 */, | |
| 5056 | +/* 791 */, | |
| 5057 | +/* 792 */, | |
| 5058 | +/* 793 */, | |
| 5059 | +/* 794 */, | |
| 5060 | +/* 795 */, | |
| 5061 | +/* 796 */, | |
| 5062 | +/* 797 */, | |
| 5063 | +/* 798 */, | |
| 5064 | +/* 799 */, | |
| 5065 | +/* 800 */, | |
| 5066 | +/* 801 */, | |
| 5067 | +/* 802 */, | |
| 5068 | +/* 803 */, | |
| 5069 | +/* 804 */, | |
| 5070 | +/* 805 */, | |
| 5071 | +/* 806 */, | |
| 5072 | +/* 807 */, | |
| 5073 | +/* 808 */, | |
| 5074 | +/* 809 */, | |
| 5075 | +/* 810 */, | |
| 5076 | +/* 811 */, | |
| 5077 | +/* 812 */ | |
| 5078 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1840 | 5079 | |
| 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__) => { | |
| 5080 | +"use strict"; | |
| 1846 | 5081 | |
| 5082 | + | |
| 5083 | +var _interopRequireDefault = __webpack_require__(0); | |
| 5084 | + | |
| 5085 | +var _module = _interopRequireDefault(__webpack_require__(813)); | |
| 5086 | + | |
| 5087 | +var _introduction = _interopRequireDefault(__webpack_require__(814)); | |
| 5088 | + | |
| 5089 | +var _controlsStack = _interopRequireDefault(__webpack_require__(367)); | |
| 5090 | + | |
| 5091 | +var _baseSettings = _interopRequireDefault(__webpack_require__(815)); | |
| 5092 | + | |
| 5093 | +var _container = _interopRequireDefault(__webpack_require__(816)); | |
| 5094 | + | |
| 5095 | +elementorModules.editor = { | |
| 5096 | + elements: { | |
| 5097 | + models: { | |
| 5098 | + BaseSettings: _baseSettings.default | |
| 5099 | + } | |
| 5100 | + }, | |
| 5101 | + utils: { | |
| 5102 | + Module: _module.default, | |
| 5103 | + Introduction: _introduction.default | |
| 5104 | + }, | |
| 5105 | + views: { | |
| 5106 | + ControlsStack: _controlsStack.default | |
| 5107 | + }, | |
| 5108 | + Container: _container.default | |
| 5109 | +}; | |
| 5110 | + | |
| 5111 | +/***/ }), | |
| 5112 | +/* 813 */ | |
| 5113 | +/***/ (function(module, exports, __webpack_require__) { | |
| 5114 | + | |
| 1847 | 5115 | "use strict"; |
| 1848 | 5116 | |
| 1849 | 5117 | |
| 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() { | |
| 5118 | +var EditorModule = elementorModules.Module.extend({ | |
| 5119 | + onInit: function onInit() { | |
| 1862 | 5120 | 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; | |
| 5121 | + | |
| 5122 | + var $window = jQuery(window); | |
| 5123 | + $window.on('elementor:init-components', this.onElementorInitComponents.bind(this)); | |
| 5124 | + $window.on('elementor:loaded', function () { | |
| 5125 | + _this.onElementorLoaded(); | |
| 5126 | + | |
| 5127 | + elementor.on('document:loaded', _this.onDocumentLoaded.bind(_this)); | |
| 1873 | 5128 | }); |
| 5129 | + $window.on('elementor:init', this.onElementorReady); | |
| 5130 | + }, | |
| 5131 | + // TODO: Delete as soon as possible. | |
| 5132 | + getEditorControlView: function getEditorControlView(name) { | |
| 5133 | + var editor = elementor.getPanelView().getCurrentPageView(); | |
| 5134 | + return editor.children.findByModelCid(this.getEditorControlModel(name).cid); | |
| 5135 | + }, | |
| 5136 | + // TODO: Delete as soon as possible. | |
| 5137 | + getEditorControlModel: function getEditorControlModel(name) { | |
| 5138 | + var editor = elementor.getPanelView().getCurrentPageView(); | |
| 5139 | + return editor.collection.findWhere({ | |
| 5140 | + name: name | |
| 5141 | + }); | |
| 5142 | + }, | |
| 5143 | + onElementorReady: function onElementorReady() { | |
| 5144 | + this.onElementorInit(); | |
| 5145 | + elementor.on('frontend:init', this.onElementorFrontendInit.bind(this)).on('preview:loaded', this.onElementorPreviewLoaded.bind(this)); | |
| 1874 | 5146 | } |
| 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]); | |
| 5147 | +}); | |
| 1884 | 5148 | |
| 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 | -}(); | |
| 5149 | +EditorModule.prototype.onElementorLoaded = function () {}; | |
| 1918 | 5150 | |
| 5151 | +EditorModule.prototype.onElementorInit = function () {}; | |
| 5152 | + | |
| 5153 | +EditorModule.prototype.onElementorPreviewLoaded = function () {}; | |
| 5154 | + | |
| 5155 | +EditorModule.prototype.onDocumentLoaded = function () {}; | |
| 5156 | + | |
| 5157 | +EditorModule.prototype.onElementorFrontendInit = function () {}; | |
| 5158 | + | |
| 5159 | +EditorModule.prototype.onElementorInitComponents = function () {}; | |
| 5160 | + | |
| 5161 | +module.exports = EditorModule; | |
| 5162 | + | |
| 1919 | 5163 | /***/ }), |
| 5164 | +/* 814 */ | |
| 5165 | +/***/ (function(module, exports, __webpack_require__) { | |
| 1920 | 5166 | |
| 1921 | -/***/ "../assets/dev/js/utils/introduction.js": | |
| 1922 | -/*!**********************************************!*\ | |
| 1923 | - !*** ../assets/dev/js/utils/introduction.js ***! | |
| 1924 | - \**********************************************/ | |
| 1925 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 5167 | +"use strict"; | |
| 1926 | 5168 | |
| 1927 | -"use strict"; | |
| 1928 | 5169 | |
| 5170 | +var _interopRequireDefault = __webpack_require__(0); | |
| 1929 | 5171 | |
| 1930 | -var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1931 | -Object.defineProperty(exports, "__esModule", ({ | |
| 5172 | +var _Object$defineProperty = __webpack_require__(1); | |
| 5173 | + | |
| 5174 | +_Object$defineProperty(exports, "__esModule", { | |
| 1932 | 5175 | 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) { | |
| 5176 | +}); | |
| 5177 | + | |
| 5178 | +exports.default = void 0; | |
| 5179 | + | |
| 5180 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2)); | |
| 5181 | + | |
| 5182 | +var _createClass2 = _interopRequireDefault(__webpack_require__(3)); | |
| 5183 | + | |
| 5184 | +var _inherits2 = _interopRequireDefault(__webpack_require__(4)); | |
| 5185 | + | |
| 5186 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(5)); | |
| 5187 | + | |
| 5188 | +var _default = /*#__PURE__*/function (_elementorModules$Mod) { | |
| 5189 | + (0, _inherits2.default)(_default, _elementorModules$Mod); | |
| 5190 | + | |
| 5191 | + var _super = (0, _createSuper2.default)(_default); | |
| 5192 | + | |
| 1946 | 5193 | function _default() { |
| 1947 | 5194 | var _this; |
| 5195 | + | |
| 1948 | 5196 | (0, _classCallCheck2.default)(this, _default); |
| 5197 | + | |
| 1949 | 5198 | for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { |
| 1950 | 5199 | args[_key] = arguments[_key]; |
| 1951 | 5200 | } |
| 1952 | - _this = _callSuper(this, _default, [].concat(args)); | |
| 1953 | - (0, _defineProperty2.default)(_this, "introductionMap", null); | |
| 5201 | + | |
| 5202 | + _this = _super.call.apply(_super, [this].concat(args)); | |
| 5203 | + | |
| 1954 | 5204 | _this.initDialog(); |
| 5205 | + | |
| 1955 | 5206 | return _this; |
| 1956 | 5207 | } |
| 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 | - }, { | |
| 5208 | + | |
| 5209 | + (0, _createClass2.default)(_default, [{ | |
| 1969 | 5210 | key: "getDefaultSettings", |
| 1970 | 5211 | value: function getDefaultSettings() { |
| 1971 | 5212 | return { |
| 1972 | 5213 | dialogType: 'buttons', |
| @@ -1984,17 +5225,22 @@ | ||
| 1984 | 5225 | }, { |
| 1985 | 5226 | key: "initDialog", |
| 1986 | 5227 | value: function initDialog() { |
| 1987 | 5228 | var _this2 = this; |
| 5229 | + | |
| 1988 | 5230 | var dialog; |
| 5231 | + | |
| 1989 | 5232 | this.getDialog = function () { |
| 1990 | 5233 | if (!dialog) { |
| 1991 | 5234 | var settings = _this2.getSettings(); |
| 5235 | + | |
| 1992 | 5236 | dialog = elementorCommon.dialogsManager.createWidget(settings.dialogType, settings.dialogOptions); |
| 5237 | + | |
| 1993 | 5238 | if (settings.onDialogInitCallback) { |
| 1994 | 5239 | settings.onDialogInitCallback.call(_this2, dialog); |
| 1995 | 5240 | } |
| 1996 | 5241 | } |
| 5242 | + | |
| 1997 | 5243 | return dialog; |
| 1998 | 5244 | }; |
| 1999 | 5245 | } |
| 2000 | 5246 | }, { |
| @@ -2002,998 +5248,922 @@ | ||
| 2002 | 5248 | value: function show(target) { |
| 2003 | 5249 | if (this.introductionViewed) { |
| 2004 | 5250 | return; |
| 2005 | 5251 | } |
| 5252 | + | |
| 2006 | 5253 | var dialog = this.getDialog(); |
| 5254 | + | |
| 2007 | 5255 | if (target) { |
| 2008 | 5256 | dialog.setSettings('position', { |
| 2009 | 5257 | of: target |
| 2010 | 5258 | }); |
| 2011 | 5259 | } |
| 5260 | + | |
| 2012 | 5261 | dialog.show(); |
| 2013 | 5262 | } |
| 2014 | 5263 | }, { |
| 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; | |
| 5264 | + key: "setViewed", | |
| 5265 | + value: function setViewed() { | |
| 5266 | + this.introductionViewed = true; | |
| 5267 | + elementorCommon.ajax.addRequest('introduction_viewed', { | |
| 5268 | + data: { | |
| 5269 | + introductionKey: this.getSettings('introductionKey') | |
| 5270 | + } | |
| 5271 | + }); | |
| 2023 | 5272 | } |
| 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 | 5273 | }]); |
| 5274 | + return _default; | |
| 2054 | 5275 | }(elementorModules.Module); |
| 2055 | 5276 | |
| 5277 | +exports.default = _default; | |
| 5278 | + | |
| 2056 | 5279 | /***/ }), |
| 5280 | +/* 815 */ | |
| 5281 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2057 | 5282 | |
| 2058 | -/***/ "../node_modules/@babel/runtime/helpers/OverloadYield.js": | |
| 2059 | -/*!***************************************************************!*\ | |
| 2060 | - !*** ../node_modules/@babel/runtime/helpers/OverloadYield.js ***! | |
| 2061 | - \***************************************************************/ | |
| 2062 | -/***/ ((module) => { | |
| 5283 | +"use strict"; | |
| 2063 | 5284 | |
| 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 | 5285 | |
| 2069 | -/***/ }), | |
| 5286 | +var _interopRequireDefault = __webpack_require__(0); | |
| 2070 | 5287 | |
| 2071 | -/***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js": | |
| 2072 | -/*!******************************************************************!*\ | |
| 2073 | - !*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***! | |
| 2074 | - \******************************************************************/ | |
| 2075 | -/***/ ((module) => { | |
| 5288 | +__webpack_require__(26); | |
| 2076 | 5289 | |
| 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; | |
| 5290 | +var _values = _interopRequireDefault(__webpack_require__(54)); | |
| 2083 | 5291 | |
| 2084 | -/***/ }), | |
| 5292 | +var _typeof2 = _interopRequireDefault(__webpack_require__(48)); | |
| 2085 | 5293 | |
| 2086 | -/***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js": | |
| 2087 | -/*!****************************************************************!*\ | |
| 2088 | - !*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***! | |
| 2089 | - \****************************************************************/ | |
| 2090 | -/***/ ((module) => { | |
| 5294 | +__webpack_require__(39); | |
| 2091 | 5295 | |
| 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; | |
| 5296 | +var BaseSettingsModel; | |
| 5297 | +BaseSettingsModel = Backbone.Model.extend({ | |
| 5298 | + options: {}, | |
| 5299 | + initialize: function initialize(data, options) { | |
| 5300 | + var self = this; // Keep the options for cloning | |
| 2096 | 5301 | |
| 2097 | -/***/ }), | |
| 5302 | + self.options = options; | |
| 5303 | + self.controls = elementor.mergeControlsSettings(options.controls); | |
| 5304 | + self.validators = {}; | |
| 2098 | 5305 | |
| 2099 | -/***/ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js": | |
| 2100 | -/*!***********************************************************************!*\ | |
| 2101 | - !*** ../node_modules/@babel/runtime/helpers/assertThisInitialized.js ***! | |
| 2102 | - \***********************************************************************/ | |
| 2103 | -/***/ ((module) => { | |
| 5306 | + if (!self.controls) { | |
| 5307 | + return; | |
| 5308 | + } | |
| 2104 | 5309 | |
| 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; | |
| 5310 | + var attrs = data || {}, | |
| 5311 | + defaults = {}; | |
| 2110 | 5312 | |
| 2111 | -/***/ }), | |
| 5313 | + _.each(self.controls, function (control) { | |
| 5314 | + // Check features since they does not exist in tests. | |
| 5315 | + var isUIControl = control.features && -1 !== control.features.indexOf('ui'); | |
| 2112 | 5316 | |
| 2113 | -/***/ "../node_modules/@babel/runtime/helpers/asyncToGenerator.js": | |
| 2114 | -/*!******************************************************************!*\ | |
| 2115 | - !*** ../node_modules/@babel/runtime/helpers/asyncToGenerator.js ***! | |
| 2116 | - \******************************************************************/ | |
| 2117 | -/***/ ((module) => { | |
| 5317 | + if (isUIControl) { | |
| 5318 | + return; | |
| 5319 | + } | |
| 2118 | 5320 | |
| 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); | |
| 5321 | + var controlName = control.name; | |
| 5322 | + | |
| 5323 | + if ('object' === (0, _typeof2.default)(control.default)) { | |
| 5324 | + defaults[controlName] = elementorCommon.helpers.cloneObject(control.default); | |
| 5325 | + } else { | |
| 5326 | + defaults[controlName] = control.default; | |
| 2136 | 5327 | } |
| 2137 | - function _throw(n) { | |
| 2138 | - asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); | |
| 5328 | + | |
| 5329 | + var isDynamicControl = control.dynamic && control.dynamic.active, | |
| 5330 | + hasDynamicSettings = isDynamicControl && attrs.__dynamic__ && attrs.__dynamic__[controlName]; | |
| 5331 | + | |
| 5332 | + if (isDynamicControl && !hasDynamicSettings && control.dynamic.default) { | |
| 5333 | + if (!attrs.__dynamic__) { | |
| 5334 | + attrs.__dynamic__ = {}; | |
| 5335 | + } | |
| 5336 | + | |
| 5337 | + attrs.__dynamic__[controlName] = control.dynamic.default; | |
| 5338 | + hasDynamicSettings = true; | |
| 5339 | + } // Check if the value is a plain object ( and not an array ) | |
| 5340 | + | |
| 5341 | + | |
| 5342 | + var isMultipleControl = jQuery.isPlainObject(control.default); | |
| 5343 | + | |
| 5344 | + if (undefined !== attrs[controlName] && isMultipleControl && !_.isObject(attrs[controlName]) && !hasDynamicSettings) { | |
| 5345 | + 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.'); | |
| 5346 | + delete attrs[controlName]; | |
| 2139 | 5347 | } |
| 2140 | - _next(void 0); | |
| 5348 | + | |
| 5349 | + if (undefined === attrs[controlName]) { | |
| 5350 | + attrs[controlName] = defaults[controlName]; | |
| 5351 | + } | |
| 2141 | 5352 | }); |
| 2142 | - }; | |
| 2143 | -} | |
| 2144 | -module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2145 | 5353 | |
| 2146 | -/***/ }), | |
| 5354 | + self.defaults = defaults; | |
| 5355 | + self.handleRepeaterData(attrs); | |
| 5356 | + self.set(attrs); | |
| 5357 | + }, | |
| 5358 | + handleRepeaterData: function handleRepeaterData(attrs) { | |
| 5359 | + _.each(this.controls, function (field) { | |
| 5360 | + if (field.is_repeater) { | |
| 5361 | + // TODO: Apply defaults on each field in repeater fields | |
| 5362 | + if (!(attrs[field.name] instanceof Backbone.Collection)) { | |
| 5363 | + attrs[field.name] = new Backbone.Collection(attrs[field.name], { | |
| 5364 | + model: function model(attributes, options) { | |
| 5365 | + options = options || {}; | |
| 5366 | + options.controls = {}; | |
| 5367 | + (0, _values.default)(field.fields).map(function (item) { | |
| 5368 | + options.controls[item.name] = item; | |
| 5369 | + }); // TODO: Cannot be deleted, since it handle repeater items after repeater widget creation. | |
| 2147 | 5370 | |
| 2148 | -/***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js": | |
| 2149 | -/*!****************************************************************!*\ | |
| 2150 | - !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***! | |
| 2151 | - \****************************************************************/ | |
| 2152 | -/***/ ((module) => { | |
| 5371 | + if (!attributes._id) { | |
| 5372 | + attributes._id = elementorCommon.helpers.getUniqueId(); | |
| 5373 | + } | |
| 2153 | 5374 | |
| 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; | |
| 5375 | + return new BaseSettingsModel(attributes, options); | |
| 5376 | + } | |
| 5377 | + }); | |
| 5378 | + } | |
| 5379 | + } | |
| 5380 | + }); | |
| 5381 | + }, | |
| 5382 | + getFontControls: function getFontControls() { | |
| 5383 | + return this.getControlsByType('font'); | |
| 5384 | + }, | |
| 5385 | + getIconsControls: function getIconsControls() { | |
| 5386 | + return this.getControlsByType('icons'); | |
| 5387 | + }, | |
| 5388 | + getControlsByType: function getControlsByType(type) { | |
| 5389 | + return _.filter(this.getActiveControls(), function (control) { | |
| 5390 | + return type === control.type; | |
| 5391 | + }); | |
| 5392 | + }, | |
| 5393 | + getStyleControls: function getStyleControls(controls, attributes) { | |
| 5394 | + var self = this; | |
| 5395 | + controls = elementorCommon.helpers.cloneObject(self.getActiveControls(controls, attributes)); | |
| 5396 | + var styleControls = []; | |
| 5397 | + jQuery.each(controls, function () { | |
| 5398 | + var _control$dynamic; | |
| 2158 | 5399 | |
| 2159 | -/***/ }), | |
| 5400 | + var control = this, | |
| 5401 | + controlDefaultSettings = elementor.config.controls[control.type]; | |
| 5402 | + control = jQuery.extend({}, controlDefaultSettings, control); | |
| 2160 | 5403 | |
| 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__) => { | |
| 5404 | + if (control.fields) { | |
| 5405 | + var styleFields = []; | |
| 5406 | + self.attributes[control.name].each(function (item) { | |
| 5407 | + styleFields.push(self.getStyleControls(control.fields, item.attributes)); | |
| 5408 | + }); | |
| 5409 | + control.styleFields = styleFields; | |
| 5410 | + } | |
| 2166 | 5411 | |
| 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; | |
| 5412 | + if (control.fields || ((_control$dynamic = control.dynamic) === null || _control$dynamic === void 0 ? void 0 : _control$dynamic.active) || self.isGlobalControl(control, controls) || self.isStyleControl(control.name, controls)) { | |
| 5413 | + styleControls.push(control); | |
| 5414 | + } | |
| 5415 | + }); | |
| 5416 | + return styleControls; | |
| 5417 | + }, | |
| 5418 | + isGlobalControl: function isGlobalControl(control, controls) { | |
| 5419 | + var _globalControl$global, _this$attributes$__gl; | |
| 2177 | 5420 | |
| 2178 | -/***/ }), | |
| 5421 | + var controlGlobalKey = control.name; | |
| 2179 | 5422 | |
| 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__) => { | |
| 5423 | + if (control.groupType) { | |
| 5424 | + controlGlobalKey = control.groupPrefix + control.groupType; | |
| 5425 | + } | |
| 2185 | 5426 | |
| 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; | |
| 5427 | + var globalControl = controls[controlGlobalKey]; // TODO: You shouldn't check if there is a `globalControl`. It's only a temporary patch. | |
| 2199 | 5428 | |
| 2200 | -/***/ }), | |
| 5429 | + if (!(globalControl === null || globalControl === void 0 ? void 0 : (_globalControl$global = globalControl.global) === null || _globalControl$global === void 0 ? void 0 : _globalControl$global.active)) { | |
| 5430 | + return false; | |
| 5431 | + } | |
| 2201 | 5432 | |
| 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__) => { | |
| 5433 | + var globalValue = (_this$attributes$__gl = this.attributes.__globals__) === null || _this$attributes$__gl === void 0 ? void 0 : _this$attributes$__gl[controlGlobalKey]; | |
| 5434 | + return !!globalValue; | |
| 5435 | + }, | |
| 5436 | + isStyleControl: function isStyleControl(attribute, controls) { | |
| 5437 | + controls = controls || this.controls; | |
| 2207 | 5438 | |
| 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; | |
| 5439 | + var currentControl = _.find(controls, function (control) { | |
| 5440 | + return attribute === control.name; | |
| 5441 | + }); | |
| 2218 | 5442 | |
| 2219 | -/***/ }), | |
| 5443 | + return currentControl && !_.isEmpty(currentControl.selectors); | |
| 5444 | + }, | |
| 5445 | + getClassControls: function getClassControls(controls) { | |
| 5446 | + controls = controls || this.controls; | |
| 5447 | + return _.filter(controls, function (control) { | |
| 5448 | + return !_.isUndefined(control.prefix_class); | |
| 5449 | + }); | |
| 5450 | + }, | |
| 5451 | + isClassControl: function isClassControl(attribute) { | |
| 5452 | + var currentControl = _.find(this.controls, function (control) { | |
| 5453 | + return attribute === control.name; | |
| 5454 | + }); | |
| 2220 | 5455 | |
| 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__) => { | |
| 5456 | + return currentControl && !_.isUndefined(currentControl.prefix_class); | |
| 5457 | + }, | |
| 5458 | + getControl: function getControl(id) { | |
| 5459 | + return _.find(this.controls, function (control) { | |
| 5460 | + return id === control.name; | |
| 5461 | + }); | |
| 5462 | + }, | |
| 5463 | + getActiveControls: function getActiveControls(controls, attributes) { | |
| 5464 | + var activeControls = {}; | |
| 2226 | 5465 | |
| 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; | |
| 5466 | + if (!controls) { | |
| 5467 | + controls = this.controls; | |
| 2234 | 5468 | } |
| 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 | 5469 | |
| 2239 | -/***/ }), | |
| 5470 | + if (!attributes) { | |
| 5471 | + attributes = this.attributes; | |
| 5472 | + } | |
| 2240 | 5473 | |
| 2241 | -/***/ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js": | |
| 2242 | -/*!****************************************************************!*\ | |
| 2243 | - !*** ../node_modules/@babel/runtime/helpers/getPrototypeOf.js ***! | |
| 2244 | - \****************************************************************/ | |
| 2245 | -/***/ ((module) => { | |
| 5474 | + attributes = this.parseGlobalSettings(attributes, controls); | |
| 5475 | + jQuery.each(controls, function (controlKey, control) { | |
| 5476 | + if (elementor.helpers.isActiveControl(control, attributes)) { | |
| 5477 | + activeControls[controlKey] = control; | |
| 5478 | + } | |
| 5479 | + }); | |
| 5480 | + return activeControls; | |
| 5481 | + }, | |
| 5482 | + clone: function clone() { | |
| 5483 | + return new BaseSettingsModel(elementorCommon.helpers.cloneObject(this.attributes), elementorCommon.helpers.cloneObject(this.options)); | |
| 5484 | + }, | |
| 5485 | + setExternalChange: function setExternalChange(key, value) { | |
| 5486 | + var self = this, | |
| 5487 | + settingsToChange; | |
| 2246 | 5488 | |
| 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; | |
| 5489 | + if ('object' === (0, _typeof2.default)(key)) { | |
| 5490 | + settingsToChange = key; | |
| 5491 | + } else { | |
| 5492 | + settingsToChange = {}; | |
| 5493 | + settingsToChange[key] = value; | |
| 5494 | + } | |
| 2253 | 5495 | |
| 2254 | -/***/ }), | |
| 5496 | + self.set(settingsToChange); | |
| 5497 | + jQuery.each(settingsToChange, function (changedKey, changedValue) { | |
| 5498 | + self.trigger('change:external:' + changedKey, changedValue); | |
| 5499 | + }); | |
| 5500 | + }, | |
| 5501 | + parseDynamicSettings: function parseDynamicSettings(settings, options, controls) { | |
| 5502 | + var self = this; | |
| 5503 | + settings = elementorCommon.helpers.cloneObject(settings || self.attributes); | |
| 5504 | + options = options || {}; | |
| 5505 | + controls = controls || this.controls; | |
| 5506 | + jQuery.each(controls, function () { | |
| 5507 | + var control = this, | |
| 5508 | + valueToParse; | |
| 2255 | 5509 | |
| 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__) => { | |
| 5510 | + if (control.is_repeater) { | |
| 5511 | + valueToParse = settings[control.name]; | |
| 5512 | + valueToParse.forEach(function (value, key) { | |
| 5513 | + valueToParse[key] = self.parseDynamicSettings(value, options, control.fields); | |
| 5514 | + }); | |
| 5515 | + return; | |
| 5516 | + } | |
| 2261 | 5517 | |
| 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; | |
| 5518 | + valueToParse = settings.__dynamic__ && settings.__dynamic__[control.name]; | |
| 2276 | 5519 | |
| 2277 | -/***/ }), | |
| 5520 | + if (!valueToParse) { | |
| 5521 | + return; | |
| 5522 | + } | |
| 2278 | 5523 | |
| 2279 | -/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js": | |
| 2280 | -/*!***********************************************************************!*\ | |
| 2281 | - !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***! | |
| 2282 | - \***********************************************************************/ | |
| 2283 | -/***/ ((module) => { | |
| 5524 | + var dynamicSettings = control.dynamic; | |
| 2284 | 5525 | |
| 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; | |
| 5526 | + if (undefined === dynamicSettings) { | |
| 5527 | + dynamicSettings = elementor.config.controls[control.type].dynamic; | |
| 5528 | + } | |
| 2291 | 5529 | |
| 2292 | -/***/ }), | |
| 5530 | + if (!dynamicSettings || !dynamicSettings.active) { | |
| 5531 | + return; | |
| 5532 | + } | |
| 2293 | 5533 | |
| 2294 | -/***/ "../node_modules/@babel/runtime/helpers/isNativeFunction.js": | |
| 2295 | -/*!******************************************************************!*\ | |
| 2296 | - !*** ../node_modules/@babel/runtime/helpers/isNativeFunction.js ***! | |
| 2297 | - \******************************************************************/ | |
| 2298 | -/***/ ((module) => { | |
| 5534 | + var dynamicValue; | |
| 2299 | 5535 | |
| 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; | |
| 5536 | + try { | |
| 5537 | + dynamicValue = elementor.dynamicTags.parseTagsText(valueToParse, dynamicSettings, elementor.dynamicTags.getTagDataContent); | |
| 5538 | + } catch (error) { | |
| 5539 | + if (elementor.dynamicTags.CACHE_KEY_NOT_FOUND_ERROR !== error.message) { | |
| 5540 | + throw error; | |
| 5541 | + } | |
| 2308 | 5542 | |
| 2309 | -/***/ }), | |
| 5543 | + dynamicValue = ''; | |
| 2310 | 5544 | |
| 2311 | -/***/ "../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js": | |
| 2312 | -/*!**************************************************************************!*\ | |
| 2313 | - !*** ../node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js ***! | |
| 2314 | - \**************************************************************************/ | |
| 2315 | -/***/ ((module) => { | |
| 5545 | + if (options.onServerRequestStart) { | |
| 5546 | + options.onServerRequestStart(); | |
| 5547 | + } | |
| 2316 | 5548 | |
| 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; | |
| 5549 | + elementor.dynamicTags.refreshCacheFromServer(function () { | |
| 5550 | + if (options.onServerRequestEnd) { | |
| 5551 | + options.onServerRequestEnd(); | |
| 5552 | + } | |
| 5553 | + }); | |
| 5554 | + } | |
| 2326 | 5555 | |
| 2327 | -/***/ }), | |
| 5556 | + if (dynamicSettings.property) { | |
| 5557 | + settings[control.name][dynamicSettings.property] = dynamicValue; | |
| 5558 | + } else { | |
| 5559 | + settings[control.name] = dynamicValue; | |
| 5560 | + } | |
| 5561 | + }); | |
| 5562 | + return settings; | |
| 5563 | + }, | |
| 5564 | + parseGlobalSettings: function parseGlobalSettings(settings, controls) { | |
| 5565 | + var _this = this; | |
| 2328 | 5566 | |
| 2329 | -/***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js": | |
| 2330 | -/*!**********************************************************************!*\ | |
| 2331 | - !*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***! | |
| 2332 | - \**********************************************************************/ | |
| 2333 | -/***/ ((module) => { | |
| 5567 | + settings = elementorCommon.helpers.cloneObject(settings); | |
| 5568 | + controls = controls || this.controls; | |
| 5569 | + jQuery.each(controls, function (index, control) { | |
| 5570 | + var _settings$__globals__, _globalSettings; | |
| 2334 | 5571 | |
| 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; | |
| 5572 | + var valueToParse; | |
| 5573 | + | |
| 5574 | + if (control.is_repeater) { | |
| 5575 | + valueToParse = settings[control.name]; | |
| 5576 | + valueToParse.forEach(function (value, key) { | |
| 5577 | + valueToParse[key] = _this.parseGlobalSettings(value, control.fields); | |
| 5578 | + }); | |
| 5579 | + return; | |
| 2357 | 5580 | } |
| 5581 | + | |
| 5582 | + valueToParse = (_settings$__globals__ = settings.__globals__) === null || _settings$__globals__ === void 0 ? void 0 : _settings$__globals__[control.name]; | |
| 5583 | + | |
| 5584 | + if (!valueToParse) { | |
| 5585 | + return; | |
| 5586 | + } | |
| 5587 | + | |
| 5588 | + var globalSettings = control.global; | |
| 5589 | + | |
| 5590 | + if (undefined === globalSettings) { | |
| 5591 | + globalSettings = elementor.config.controls[control.type].global; | |
| 5592 | + } | |
| 5593 | + | |
| 5594 | + if (!((_globalSettings = globalSettings) === null || _globalSettings === void 0 ? void 0 : _globalSettings.active)) { | |
| 5595 | + return; | |
| 5596 | + } | |
| 5597 | + | |
| 5598 | + var _$e$data$commandExtra = $e.data.commandExtractArgs(valueToParse), | |
| 5599 | + command = _$e$data$commandExtra.command, | |
| 5600 | + args = _$e$data$commandExtra.args, | |
| 5601 | + globalValue = $e.data.getCache($e.components.get('globals'), command, args.query); | |
| 5602 | + | |
| 5603 | + if (control.groupType) { | |
| 5604 | + settings[control.name] = 'custom'; | |
| 5605 | + } else { | |
| 5606 | + settings[control.name] = globalValue; | |
| 5607 | + } | |
| 5608 | + }); | |
| 5609 | + return settings; | |
| 5610 | + }, | |
| 5611 | + removeDataDefaults: function removeDataDefaults(data, controls) { | |
| 5612 | + var _this2 = this; | |
| 5613 | + | |
| 5614 | + jQuery.each(data, function (key) { | |
| 5615 | + var control = controls[key]; | |
| 5616 | + | |
| 5617 | + if (!control) { | |
| 5618 | + return; | |
| 5619 | + } // TODO: use `save_default` in text|textarea controls. | |
| 5620 | + | |
| 5621 | + | |
| 5622 | + if (control.save_default || ('text' === control.type || 'textarea' === control.type) && data[key]) { | |
| 5623 | + return; | |
| 5624 | + } | |
| 5625 | + | |
| 5626 | + if (control.is_repeater) { | |
| 5627 | + data[key].forEach(function (repeaterRow) { | |
| 5628 | + _this2.removeDataDefaults(repeaterRow, control.fields); | |
| 5629 | + }); | |
| 5630 | + return; | |
| 5631 | + } | |
| 5632 | + | |
| 5633 | + if (_.isEqual(data[key], control.default)) { | |
| 5634 | + delete data[key]; | |
| 5635 | + } | |
| 5636 | + }); | |
| 5637 | + }, | |
| 5638 | + toJSON: function toJSON(options) { | |
| 5639 | + var data = Backbone.Model.prototype.toJSON.call(this); | |
| 5640 | + options = options || {}; | |
| 5641 | + delete data.widgetType; | |
| 5642 | + delete data.elType; | |
| 5643 | + delete data.isInner; | |
| 5644 | + | |
| 5645 | + _.each(data, function (attribute, key) { | |
| 5646 | + if (attribute && attribute.toJSON) { | |
| 5647 | + data[key] = attribute.toJSON(); | |
| 5648 | + } | |
| 5649 | + }); | |
| 5650 | + | |
| 5651 | + if (options.remove && -1 !== options.remove.indexOf('default')) { | |
| 5652 | + this.removeDataDefaults(data, this.controls); | |
| 2358 | 5653 | } |
| 2359 | - return a; | |
| 5654 | + | |
| 5655 | + return elementorCommon.helpers.cloneObject(data); | |
| 2360 | 5656 | } |
| 2361 | -} | |
| 2362 | -module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 5657 | +}); | |
| 5658 | +module.exports = BaseSettingsModel; | |
| 2363 | 5659 | |
| 2364 | 5660 | /***/ }), |
| 5661 | +/* 816 */ | |
| 5662 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2365 | 5663 | |
| 2366 | -/***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js": | |
| 2367 | -/*!*****************************************************************!*\ | |
| 2368 | - !*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***! | |
| 2369 | - \*****************************************************************/ | |
| 2370 | -/***/ ((module) => { | |
| 5664 | +"use strict"; | |
| 2371 | 5665 | |
| 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 | 5666 | |
| 2377 | -/***/ }), | |
| 5667 | +var _interopRequireDefault = __webpack_require__(0); | |
| 2378 | 5668 | |
| 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__) => { | |
| 5669 | +var _Object$defineProperty2 = __webpack_require__(1); | |
| 2384 | 5670 | |
| 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; | |
| 5671 | +_Object$defineProperty2(exports, "__esModule", { | |
| 5672 | + value: true | |
| 5673 | +}); | |
| 2393 | 5674 | |
| 2394 | -/***/ }), | |
| 5675 | +exports.default = void 0; | |
| 2395 | 5676 | |
| 2396 | -/***/ "../node_modules/@babel/runtime/helpers/readOnlyError.js": | |
| 2397 | -/*!***************************************************************!*\ | |
| 2398 | - !*** ../node_modules/@babel/runtime/helpers/readOnlyError.js ***! | |
| 2399 | - \***************************************************************/ | |
| 2400 | -/***/ ((module) => { | |
| 5677 | +var _defineProperty2 = _interopRequireDefault(__webpack_require__(1)); | |
| 2401 | 5678 | |
| 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; | |
| 5679 | +__webpack_require__(134); | |
| 2406 | 5680 | |
| 2407 | -/***/ }), | |
| 5681 | +__webpack_require__(155); | |
| 2408 | 5682 | |
| 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__) => { | |
| 5683 | +__webpack_require__(183); | |
| 2414 | 5684 | |
| 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; | |
| 5685 | +__webpack_require__(72); | |
| 2504 | 5686 | |
| 2505 | -/***/ }), | |
| 5687 | +__webpack_require__(276); | |
| 2506 | 5688 | |
| 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__) => { | |
| 5689 | +__webpack_require__(39); | |
| 2512 | 5690 | |
| 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; | |
| 5691 | +var _values = _interopRequireDefault(__webpack_require__(54)); | |
| 2521 | 5692 | |
| 2522 | -/***/ }), | |
| 5693 | +var _keys = _interopRequireDefault(__webpack_require__(23)); | |
| 2523 | 5694 | |
| 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__) => { | |
| 5695 | +var _slicedToArray2 = _interopRequireDefault(__webpack_require__(104)); | |
| 2529 | 5696 | |
| 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; | |
| 5697 | +var _entries = _interopRequireDefault(__webpack_require__(87)); | |
| 2536 | 5698 | |
| 2537 | -/***/ }), | |
| 5699 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2)); | |
| 2538 | 5700 | |
| 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__) => { | |
| 5701 | +var _createClass2 = _interopRequireDefault(__webpack_require__(3)); | |
| 2544 | 5702 | |
| 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; | |
| 5703 | +var _assertThisInitialized2 = _interopRequireDefault(__webpack_require__(49)); | |
| 2578 | 5704 | |
| 2579 | -/***/ }), | |
| 5705 | +var _inherits2 = _interopRequireDefault(__webpack_require__(4)); | |
| 2580 | 5706 | |
| 2581 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorDefine.js": | |
| 2582 | -/*!*******************************************************************!*\ | |
| 2583 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorDefine.js ***! | |
| 2584 | - \*******************************************************************/ | |
| 2585 | -/***/ ((module) => { | |
| 5707 | +var _createSuper2 = _interopRequireDefault(__webpack_require__(5)); | |
| 2586 | 5708 | |
| 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; | |
| 5709 | +var _defineProperty3 = _interopRequireDefault(__webpack_require__(28)); | |
| 2609 | 5710 | |
| 2610 | -/***/ }), | |
| 5711 | +var _argsObject = _interopRequireDefault(__webpack_require__(223)); | |
| 2611 | 5712 | |
| 2612 | -/***/ "../node_modules/@babel/runtime/helpers/regeneratorKeys.js": | |
| 2613 | -/*!*****************************************************************!*\ | |
| 2614 | - !*** ../node_modules/@babel/runtime/helpers/regeneratorKeys.js ***! | |
| 2615 | - \*****************************************************************/ | |
| 2616 | -/***/ ((module) => { | |
| 5713 | +var _panel = _interopRequireDefault(__webpack_require__(817)); | |
| 2617 | 5714 | |
| 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; | |
| 5715 | +/** | |
| 5716 | + * TODO: ViewsOptions | |
| 5717 | + * @typedef {(Marionette.View|Marionette.CompositeView|BaseElementView|SectionView|BaseContainer)} ViewsOptions | |
| 5718 | + */ | |
| 5719 | +var Container = /*#__PURE__*/function (_ArgsObject) { | |
| 5720 | + (0, _inherits2.default)(Container, _ArgsObject); | |
| 2628 | 5721 | |
| 2629 | -/***/ }), | |
| 5722 | + var _super = (0, _createSuper2.default)(Container); | |
| 2630 | 5723 | |
| 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__) => { | |
| 5724 | + /** | |
| 5725 | + * Container type. | |
| 5726 | + * | |
| 5727 | + * @type {string} | |
| 5728 | + */ | |
| 2636 | 5729 | |
| 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"; | |
| 5730 | + /** | |
| 5731 | + * Container id. | |
| 5732 | + * | |
| 5733 | + * @type {string} | |
| 5734 | + */ | |
| 2646 | 5735 | |
| 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; | |
| 5736 | + /** | |
| 5737 | + * Document Object. | |
| 5738 | + * | |
| 5739 | + * @type {{}} | |
| 5740 | + */ | |
| 2714 | 5741 | |
| 2715 | -/***/ }), | |
| 5742 | + /** | |
| 5743 | + * Container model. | |
| 5744 | + * | |
| 5745 | + * @type {Backbone.Model} | |
| 5746 | + */ | |
| 2716 | 5747 | |
| 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__) => { | |
| 5748 | + /** | |
| 5749 | + * Container settings. | |
| 5750 | + * | |
| 5751 | + * @type {Backbone.Model} | |
| 5752 | + */ | |
| 2722 | 5753 | |
| 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; | |
| 5754 | + /** | |
| 5755 | + * Container view. | |
| 5756 | + * | |
| 5757 | + * @type {ViewsOptions} | |
| 5758 | + */ | |
| 2742 | 5759 | |
| 2743 | -/***/ }), | |
| 5760 | + /** | |
| 5761 | + * Container parent. | |
| 5762 | + * | |
| 5763 | + * @type {Container} | |
| 5764 | + */ | |
| 2744 | 5765 | |
| 2745 | -/***/ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js": | |
| 2746 | -/*!****************************************************************!*\ | |
| 2747 | - !*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***! | |
| 2748 | - \****************************************************************/ | |
| 2749 | -/***/ ((module) => { | |
| 5766 | + /** | |
| 5767 | + * Container children(s). | |
| 5768 | + * | |
| 5769 | + * @type {Array} | |
| 5770 | + */ | |
| 2750 | 5771 | |
| 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; | |
| 5772 | + /** | |
| 5773 | + * Container dynamic. | |
| 5774 | + * | |
| 5775 | + * @type {Backbone.Model} | |
| 5776 | + */ | |
| 2757 | 5777 | |
| 2758 | -/***/ }), | |
| 5778 | + /** | |
| 5779 | + * Container globals. | |
| 5780 | + * | |
| 5781 | + * @type {Backbone.Model} | |
| 5782 | + */ | |
| 2759 | 5783 | |
| 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__) => { | |
| 5784 | + /** | |
| 5785 | + * Container label. | |
| 5786 | + * | |
| 5787 | + * @type {string} | |
| 5788 | + */ | |
| 2765 | 5789 | |
| 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; | |
| 5790 | + /** | |
| 5791 | + * Container controls. | |
| 5792 | + * | |
| 5793 | + * @type {{}} | |
| 5794 | + */ | |
| 2774 | 5795 | |
| 2775 | -/***/ }), | |
| 5796 | + /** | |
| 5797 | + * Repeaters containers | |
| 5798 | + * | |
| 5799 | + * @type {{}} | |
| 5800 | + */ | |
| 2776 | 5801 | |
| 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__) => { | |
| 5802 | + /** | |
| 5803 | + * Container renderer (The one who render). | |
| 5804 | + * | |
| 5805 | + * @type {Container} | |
| 5806 | + */ | |
| 2782 | 5807 | |
| 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; | |
| 5808 | + /** | |
| 5809 | + * Container panel. | |
| 5810 | + * | |
| 5811 | + * @type {Panel} | |
| 5812 | + */ | |
| 2789 | 5813 | |
| 2790 | -/***/ }), | |
| 5814 | + /** | |
| 5815 | + * Function constructor(). | |
| 5816 | + * | |
| 5817 | + * Create container. | |
| 5818 | + * | |
| 5819 | + * @param {{}} args | |
| 5820 | + * | |
| 5821 | + * @throws {Error} | |
| 5822 | + */ | |
| 5823 | + function Container(args) { | |
| 5824 | + var _this; | |
| 2791 | 5825 | |
| 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__) => { | |
| 5826 | + (0, _classCallCheck2.default)(this, Container); | |
| 5827 | + _this = _super.call(this, args); // Validate args. | |
| 2797 | 5828 | |
| 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."); | |
| 5829 | + (0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "type", void 0); | |
| 5830 | + (0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "id", void 0); | |
| 5831 | + (0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "document", void 0); | |
| 5832 | + (0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "model", void 0); | |
| 5833 | + (0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "settings", void 0); | |
| 5834 | + (0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "view", void 0); | |
| 5835 | + (0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "parent", void 0); | |
| 5836 | + (0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "children", []); | |
| 5837 | + (0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "dynamic", void 0); | |
| 5838 | + (0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "globals", void 0); | |
| 5839 | + (0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "label", void 0); | |
| 5840 | + (0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "controls", {}); | |
| 5841 | + (0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "repeaters", {}); | |
| 5842 | + (0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "renderer", void 0); | |
| 5843 | + (0, _defineProperty3.default)((0, _assertThisInitialized2.default)(_this), "panel", void 0); | |
| 5844 | + | |
| 5845 | + _this.validateArgs(args); | |
| 5846 | + | |
| 5847 | + args = (0, _entries.default)(args); // If empty. | |
| 5848 | + | |
| 5849 | + if (0 === args.length) { | |
| 5850 | + throw Error('Container cannot be empty.'); | |
| 5851 | + } // Set properties, if not defined - keep the defaults. | |
| 5852 | + | |
| 5853 | + | |
| 5854 | + args.forEach(function (_ref) { | |
| 5855 | + var _ref2 = (0, _slicedToArray2.default)(_ref, 2), | |
| 5856 | + key = _ref2[0], | |
| 5857 | + value = _ref2[1]; | |
| 5858 | + | |
| 5859 | + _this[key] = 'undefined' === typeof value ? _this[key] : value; | |
| 5860 | + }); | |
| 5861 | + | |
| 5862 | + if ('undefined' === typeof _this.renderer) { | |
| 5863 | + _this.renderer = (0, _assertThisInitialized2.default)(_this); | |
| 5864 | + } | |
| 5865 | + | |
| 5866 | + if (!_this.document) { | |
| 5867 | + _this.document = elementor.documents.getCurrent(); | |
| 5868 | + } | |
| 5869 | + | |
| 5870 | + _this.dynamic = new Backbone.Model(_this.settings.get('__dynamic__')); | |
| 5871 | + _this.globals = new Backbone.Model(_this.settings.get('__globals__')); | |
| 5872 | + _this.panel = new _panel.default((0, _assertThisInitialized2.default)(_this)); | |
| 5873 | + | |
| 5874 | + _this.handleRepeaterChildren(); | |
| 5875 | + | |
| 5876 | + return _this; | |
| 2806 | 5877 | } |
| 2807 | - return ("string" === r ? String : Number)(t); | |
| 2808 | -} | |
| 2809 | -module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2810 | 5878 | |
| 2811 | -/***/ }), | |
| 5879 | + (0, _createClass2.default)(Container, [{ | |
| 5880 | + key: "validateArgs", | |
| 5881 | + value: function validateArgs(args) { | |
| 5882 | + this.requireArgumentType('type', 'string', args); | |
| 5883 | + this.requireArgumentType('id', 'string', args); | |
| 5884 | + this.requireArgumentInstance('settings', Backbone.Model, args); | |
| 5885 | + this.requireArgumentInstance('model', Backbone.Model, args); | |
| 5886 | + } | |
| 5887 | + /** | |
| 5888 | + * Function getGroupRelatedControls(). | |
| 5889 | + * | |
| 5890 | + * Example: | |
| 5891 | + * Settings = { typography_typography: 'whatever', button_text_color: 'whatever' }; | |
| 5892 | + * Result { control_name: controlValue, ... - and so on }; | |
| 5893 | + * `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' ]`. | |
| 5894 | + * | |
| 5895 | + * @param {{}} settings | |
| 5896 | + * | |
| 5897 | + * @return {{}} | |
| 5898 | + */ | |
| 2812 | 5899 | |
| 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__) => { | |
| 5900 | + }, { | |
| 5901 | + key: "getGroupRelatedControls", | |
| 5902 | + value: function getGroupRelatedControls(settings) { | |
| 5903 | + var _this2 = this; | |
| 2818 | 5904 | |
| 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; | |
| 5905 | + var result = {}; | |
| 5906 | + (0, _keys.default)(settings).forEach(function (settingKey) { | |
| 5907 | + (0, _values.default)(_this2.controls).forEach(function (control) { | |
| 5908 | + var _this2$controls$setti; | |
| 2826 | 5909 | |
| 2827 | -/***/ }), | |
| 5910 | + if (settingKey === control.name) { | |
| 5911 | + result[control.name] = control; | |
| 5912 | + } else if ((_this2$controls$setti = _this2.controls[settingKey]) === null || _this2$controls$setti === void 0 ? void 0 : _this2$controls$setti.groupPrefix) { | |
| 5913 | + var groupPrefix = _this2.controls[settingKey].groupPrefix; | |
| 2828 | 5914 | |
| 2829 | -/***/ "../node_modules/@babel/runtime/helpers/typeof.js": | |
| 2830 | -/*!********************************************************!*\ | |
| 2831 | - !*** ../node_modules/@babel/runtime/helpers/typeof.js ***! | |
| 2832 | - \********************************************************/ | |
| 2833 | -/***/ ((module) => { | |
| 5915 | + if (control.name.toString().startsWith(groupPrefix)) { | |
| 5916 | + result[control.name] = control; | |
| 5917 | + } | |
| 5918 | + } | |
| 5919 | + }); | |
| 5920 | + }); | |
| 5921 | + return result; | |
| 5922 | + } | |
| 5923 | + }, { | |
| 5924 | + key: "handleRepeaterChildren", | |
| 5925 | + value: function handleRepeaterChildren() { | |
| 5926 | + var _this3 = this; | |
| 2834 | 5927 | |
| 2835 | -function _typeof(o) { | |
| 2836 | - "@babel/helpers - typeof"; | |
| 5928 | + (0, _values.default)(this.controls).forEach(function (control) { | |
| 5929 | + if (!control.is_repeater) { | |
| 5930 | + return; | |
| 5931 | + } | |
| 2837 | 5932 | |
| 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; | |
| 5933 | + var model = new Backbone.Model({ | |
| 5934 | + name: control.name | |
| 5935 | + }); | |
| 5936 | + _this3.repeaters[control.name] = new elementorModules.editor.Container({ | |
| 5937 | + // TODO: replace to `repeater`, and the item should by `repeater-item`. | |
| 5938 | + type: 'repeater-control', | |
| 5939 | + id: control.name, | |
| 5940 | + model: model, | |
| 5941 | + settings: model, | |
| 5942 | + view: _this3.view, | |
| 5943 | + parent: _this3, | |
| 5944 | + label: control.label || control.name, | |
| 5945 | + controls: {}, | |
| 5946 | + renderer: _this3.renderer | |
| 5947 | + }); | |
| 2845 | 5948 | |
| 2846 | -/***/ }), | |
| 5949 | + _this3.settings.get(control.name).forEach(function (rowModel, index) { | |
| 5950 | + _this3.addRepeaterItem(control.name, rowModel, index); | |
| 5951 | + }); | |
| 5952 | + }); // Backwards Compatibility: if there is only one repeater (type=repeater), set it's children as current children. | |
| 5953 | + // Since 3.0.0. | |
| 2847 | 5954 | |
| 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__) => { | |
| 5955 | + if (['widget', 'document'].includes(this.type)) { | |
| 5956 | + var repeaters = (0, _values.default)(this.controls).filter(function (control) { | |
| 5957 | + return 'repeater' === control.type; | |
| 5958 | + }); | |
| 2853 | 5959 | |
| 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; | |
| 5960 | + if (1 === repeaters.length) { | |
| 5961 | + (0, _defineProperty2.default)(this, 'children', { | |
| 5962 | + get: function get() { | |
| 5963 | + elementorCommon.helpers.softDeprecated('children', '3.0.0', 'container.repeaters[ repeaterName ].children'); | |
| 5964 | + return this.repeaters[repeaters[0].name].children; | |
| 5965 | + } | |
| 5966 | + }); | |
| 5967 | + } | |
| 5968 | + } | |
| 5969 | + } | |
| 5970 | + }, { | |
| 5971 | + key: "addRepeaterItem", | |
| 5972 | + value: function addRepeaterItem(repeaterName, rowSettingsModel, index) { | |
| 5973 | + var rowId = rowSettingsModel.get('_id'); // TODO: Temp backwards compatibility. since 2.8.0. | |
| 2863 | 5974 | |
| 2864 | -/***/ }), | |
| 5975 | + if (!rowId) { | |
| 5976 | + rowId = 'bc-' + elementorCommon.helpers.getUniqueId(); | |
| 5977 | + rowSettingsModel.set('_id', rowId); | |
| 5978 | + } | |
| 2865 | 5979 | |
| 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__) => { | |
| 5980 | + this.repeaters[repeaterName].children.splice(index, 0, new elementorModules.editor.Container({ | |
| 5981 | + type: 'repeater', | |
| 5982 | + id: rowSettingsModel.get('_id'), | |
| 5983 | + model: new Backbone.Model({ | |
| 5984 | + name: repeaterName | |
| 5985 | + }), | |
| 5986 | + settings: rowSettingsModel, | |
| 5987 | + view: this.view, | |
| 5988 | + parent: this.repeaters[repeaterName], | |
| 5989 | + label: this.label + ' ' + elementor.translate('Item'), | |
| 5990 | + controls: rowSettingsModel.options.controls, | |
| 5991 | + renderer: this.renderer | |
| 5992 | + })); | |
| 5993 | + } | |
| 5994 | + /** | |
| 5995 | + * Function lookup(). | |
| 5996 | + * | |
| 5997 | + * If the view were destroyed, try to find it again if it exists. | |
| 5998 | + * | |
| 5999 | + * TODO: Refactor. | |
| 6000 | + * | |
| 6001 | + * @returns {Container} | |
| 6002 | + */ | |
| 2871 | 6003 | |
| 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); | |
| 6004 | + }, { | |
| 6005 | + key: "lookup", | |
| 6006 | + value: function lookup() { | |
| 6007 | + var _this$renderer$view; | |
| 6008 | + | |
| 6009 | + var result = this; | |
| 6010 | + | |
| 6011 | + if (!this.renderer) { | |
| 6012 | + return this; | |
| 6013 | + } | |
| 6014 | + | |
| 6015 | + if (this !== this.renderer && ((_this$renderer$view = this.renderer.view) === null || _this$renderer$view === void 0 ? void 0 : _this$renderer$view.isDisconnected) && this.renderer.view.isDisconnected()) { | |
| 6016 | + this.renderer = this.renderer.lookup(); | |
| 6017 | + } | |
| 6018 | + | |
| 6019 | + if (undefined === this.view || !this.view.lookup || !this.view.isDisconnected()) { | |
| 6020 | + // Hack For repeater item the result is the parent container. | |
| 6021 | + if ('repeater' === this.type) { | |
| 6022 | + this.settings = this.parent.parent.settings.get(this.model.get('name')).findWhere({ | |
| 6023 | + _id: this.id | |
| 6024 | + }); | |
| 6025 | + } | |
| 6026 | + | |
| 6027 | + return result; | |
| 6028 | + } | |
| 6029 | + | |
| 6030 | + var lookup = this.view.lookup(); | |
| 6031 | + | |
| 6032 | + if (lookup) { | |
| 6033 | + result = lookup.getContainer(); // Hack For repeater item the result is the parent container. | |
| 6034 | + | |
| 6035 | + if ('repeater' === this.type) { | |
| 6036 | + this.settings = result.settings.get(this.model.get('name')).findWhere({ | |
| 6037 | + _id: this.id | |
| 6038 | + }); | |
| 6039 | + return this; | |
| 6040 | + } | |
| 6041 | + } | |
| 6042 | + | |
| 6043 | + return result; | |
| 2884 | 6044 | } |
| 2885 | - function Wrapper() { | |
| 2886 | - return construct(t, arguments, getPrototypeOf(this).constructor); | |
| 6045 | + /** | |
| 6046 | + * Function render(). | |
| 6047 | + * | |
| 6048 | + * Call view render. | |
| 6049 | + * | |
| 6050 | + * Run's `this.renderer.view.renderOnChange( this.settings ) `. | |
| 6051 | + * When `this.renderer` exist. | |
| 6052 | + * | |
| 6053 | + */ | |
| 6054 | + | |
| 6055 | + }, { | |
| 6056 | + key: "render", | |
| 6057 | + value: function render() { | |
| 6058 | + if (!this.renderer) { | |
| 6059 | + return; | |
| 6060 | + } | |
| 6061 | + | |
| 6062 | + this.renderer.view.renderOnChange(this.settings); | |
| 2887 | 6063 | } |
| 2888 | - return Wrapper.prototype = Object.create(t.prototype, { | |
| 2889 | - constructor: { | |
| 2890 | - value: Wrapper, | |
| 2891 | - enumerable: !1, | |
| 2892 | - writable: !0, | |
| 2893 | - configurable: !0 | |
| 6064 | + }, { | |
| 6065 | + key: "renderUI", | |
| 6066 | + value: function renderUI() { | |
| 6067 | + if (!this.renderer) { | |
| 6068 | + return; | |
| 2894 | 6069 | } |
| 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 | 6070 | |
| 6071 | + this.renderer.view.renderUI(); | |
| 6072 | + } | |
| 6073 | + }, { | |
| 6074 | + key: "isEditable", | |
| 6075 | + value: function isEditable() { | |
| 6076 | + return 'edit' === elementor.channels.dataEditMode.request('activeMode') && 'open' === this.document.editor.status; | |
| 6077 | + } | |
| 6078 | + }, { | |
| 6079 | + key: "isDesignable", | |
| 6080 | + value: function isDesignable() { | |
| 6081 | + return elementor.userCan('design') && this.isEditable(); | |
| 6082 | + } | |
| 6083 | + }]); | |
| 6084 | + return Container; | |
| 6085 | +}(_argsObject.default); | |
| 6086 | + | |
| 6087 | +exports.default = Container; | |
| 6088 | + | |
| 2900 | 6089 | /***/ }), |
| 6090 | +/* 817 */ | |
| 6091 | +/***/ (function(module, exports, __webpack_require__) { | |
| 2901 | 6092 | |
| 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__) => { | |
| 6093 | +"use strict"; | |
| 2907 | 6094 | |
| 2908 | -// TODO(Babel 8): Remove this file. | |
| 2909 | 6095 | |
| 2910 | -var runtime = __webpack_require__(/*! ../helpers/regeneratorRuntime */ "../node_modules/@babel/runtime/helpers/regeneratorRuntime.js")(); | |
| 2911 | -module.exports = runtime; | |
| 6096 | +var _interopRequireDefault = __webpack_require__(0); | |
| 2912 | 6097 | |
| 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 | -} | |
| 6098 | +var _Object$defineProperty = __webpack_require__(1); | |
| 2923 | 6099 | |
| 6100 | +_Object$defineProperty(exports, "__esModule", { | |
| 6101 | + value: true | |
| 6102 | +}); | |
| 2924 | 6103 | |
| 2925 | -/***/ }), | |
| 6104 | +exports.default = void 0; | |
| 2926 | 6105 | |
| 2927 | -/***/ "@wordpress/i18n": | |
| 2928 | -/*!**************************!*\ | |
| 2929 | - !*** external "wp.i18n" ***! | |
| 2930 | - \**************************/ | |
| 2931 | -/***/ ((module) => { | |
| 6106 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(2)); | |
| 2932 | 6107 | |
| 2933 | -"use strict"; | |
| 2934 | -module.exports = wp.i18n; | |
| 6108 | +var _createClass2 = _interopRequireDefault(__webpack_require__(3)); | |
| 2935 | 6109 | |
| 2936 | -/***/ }) | |
| 6110 | +var Panel = /*#__PURE__*/function () { | |
| 6111 | + /** | |
| 6112 | + * Function constructor(). | |
| 6113 | + * | |
| 6114 | + * Create constructor panel. | |
| 6115 | + * | |
| 6116 | + * @param {Container} container | |
| 6117 | + */ | |
| 6118 | + function Panel(container) { | |
| 6119 | + (0, _classCallCheck2.default)(this, Panel); | |
| 6120 | + this.container = container; | |
| 6121 | + } | |
| 6122 | + /** | |
| 6123 | + * Function refresh(). | |
| 6124 | + * | |
| 6125 | + * Refresh the panel. | |
| 6126 | + */ | |
| 2937 | 6127 | |
| 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 | 6128 | |
| 6129 | + (0, _createClass2.default)(Panel, [{ | |
| 6130 | + key: "refresh", | |
| 6131 | + value: function refresh() { | |
| 6132 | + if ($e.routes.isPartOf('panel/editor')) { | |
| 6133 | + $e.routes.refreshContainer('panel'); | |
| 6134 | + } | |
| 6135 | + } | |
| 6136 | + /** | |
| 6137 | + * Function closeEditor(). | |
| 6138 | + * | |
| 6139 | + * Route to `panel/elements/categories` | |
| 6140 | + */ | |
| 2973 | 6141 | |
| 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 | |
| 6142 | + }, { | |
| 6143 | + key: "closeEditor", | |
| 6144 | + value: function closeEditor() { | |
| 6145 | + $e.route('panel/elements/categories'); | |
| 2984 | 6146 | } |
| 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 | -})(); | |
| 6147 | + }, { | |
| 6148 | + key: "getControlView", | |
| 6149 | + value: function getControlView(name) { | |
| 6150 | + var editor = elementor.getPanelView().getCurrentPageView(); | |
| 6151 | + return editor.children.findByModelCid(this.getControlModel(name).cid); | |
| 6152 | + } | |
| 6153 | + }, { | |
| 6154 | + key: "getControlModel", | |
| 6155 | + value: function getControlModel(name) { | |
| 6156 | + var editor = elementor.getPanelView().getCurrentPageView(); | |
| 6157 | + return editor.collection.findWhere({ | |
| 6158 | + name: name | |
| 6159 | + }); | |
| 6160 | + } | |
| 6161 | + }]); | |
| 6162 | + return Panel; | |
| 6163 | +}(); | |
| 2996 | 6164 | |
| 2997 | -/******/ })() | |
| 2998 | -; | |
| 6165 | +exports.default = Panel; | |
| 6166 | + | |
| 6167 | +/***/ }) | |
| 6168 | +/******/ ]); | |
| 2999 | 6169 | //# sourceMappingURL=editor-modules.js.map |