| @@ -1,580 +1,793 @@ | ||
| 1 | -(function(_wordpress_i18n) { | |
| 1 | +/*! elementor - v3.24.0 - 28-10-2024 */ | |
| 2 | +/******/ (() => { // webpackBootstrap | |
| 3 | +/******/ var __webpack_modules__ = ({ | |
| 2 | 4 | |
| 3 | -//#region \0rolldown/runtime.js | |
| 4 | - var __defProp = Object.defineProperty; | |
| 5 | - var __name = (target, value) => __defProp(target, "name", { | |
| 6 | - value, | |
| 7 | - configurable: true | |
| 8 | - }); | |
| 5 | +/***/ "../assets/dev/js/admin/floating-elements/layout.js": | |
| 6 | +/*!**********************************************************!*\ | |
| 7 | + !*** ../assets/dev/js/admin/floating-elements/layout.js ***! | |
| 8 | + \**********************************************************/ | |
| 9 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 9 | 10 | |
| 10 | -//#endregion | |
| 11 | +"use strict"; | |
| 12 | +/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 11 | 13 | |
| 12 | -//#region node_modules/@babel/runtime/helpers/esm/classCallCheck.js | |
| 13 | - function _classCallCheck(a, n) { | |
| 14 | - if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); | |
| 15 | - } | |
| 16 | 14 | |
| 17 | -//#endregion | |
| 18 | -//#region node_modules/@babel/runtime/helpers/esm/typeof.js | |
| 19 | - function _typeof(o) { | |
| 20 | - "@babel/helpers - typeof"; | |
| 21 | - return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) { | |
| 22 | - return typeof o; | |
| 23 | - } : function(o) { | |
| 24 | - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; | |
| 25 | - }, _typeof(o); | |
| 26 | - } | |
| 15 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 16 | +Object.defineProperty(exports, "__esModule", ({ | |
| 17 | + value: true | |
| 18 | +})); | |
| 19 | +exports["default"] = void 0; | |
| 20 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 21 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 22 | +var _get2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/get */ "../node_modules/@babel/runtime/helpers/get.js")); | |
| 23 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.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 _view = _interopRequireDefault(__webpack_require__(/*! elementor-admin/floating-elements/view */ "../assets/dev/js/admin/floating-elements/view.js")); | |
| 27 | +var _layout = _interopRequireDefault(__webpack_require__(/*! elementor-common/views/modal/layout */ "../core/common/assets/js/views/modal/layout.js")); | |
| 28 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 29 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 30 | +var _default = /*#__PURE__*/function (_ModalLayout) { | |
| 31 | + (0, _inherits2.default)(_default, _ModalLayout); | |
| 32 | + var _super = _createSuper(_default); | |
| 33 | + function _default() { | |
| 34 | + (0, _classCallCheck2.default)(this, _default); | |
| 35 | + return _super.apply(this, arguments); | |
| 36 | + } | |
| 37 | + (0, _createClass2.default)(_default, [{ | |
| 38 | + key: "getModalOptions", | |
| 39 | + value: function getModalOptions() { | |
| 40 | + return { | |
| 41 | + id: 'elementor-new-floating-elements-modal' | |
| 42 | + }; | |
| 43 | + } | |
| 44 | + }, { | |
| 45 | + key: "getLogoOptions", | |
| 46 | + value: function getLogoOptions() { | |
| 47 | + return { | |
| 48 | + title: __('New Floating Elements', 'elementor') | |
| 49 | + }; | |
| 50 | + } | |
| 51 | + }, { | |
| 52 | + key: "initialize", | |
| 53 | + value: function initialize() { | |
| 54 | + (0, _get2.default)((0, _getPrototypeOf2.default)(_default.prototype), "initialize", this).call(this); | |
| 55 | + this.showLogo(); | |
| 56 | + this.showContentView(); | |
| 57 | + } | |
| 58 | + }, { | |
| 59 | + key: "showContentView", | |
| 60 | + value: function showContentView() { | |
| 61 | + this.modalContent.show(new _view.default()); | |
| 62 | + } | |
| 63 | + }]); | |
| 64 | + return _default; | |
| 65 | +}(_layout.default); | |
| 66 | +exports["default"] = _default; | |
| 27 | 67 | |
| 28 | -//#endregion | |
| 29 | -//#region node_modules/@babel/runtime/helpers/esm/toPrimitive.js | |
| 30 | - function toPrimitive(t, r) { | |
| 31 | - if ("object" != _typeof(t) || !t) return t; | |
| 32 | - var e = t[Symbol.toPrimitive]; | |
| 33 | - if (void 0 !== e) { | |
| 34 | - var i = e.call(t, r || "default"); | |
| 35 | - if ("object" != _typeof(i)) return i; | |
| 36 | - throw new TypeError("@@toPrimitive must return a primitive value."); | |
| 37 | - } | |
| 38 | - return ("string" === r ? String : Number)(t); | |
| 39 | - } | |
| 68 | +/***/ }), | |
| 40 | 69 | |
| 41 | -//#endregion | |
| 42 | -//#region node_modules/@babel/runtime/helpers/esm/toPropertyKey.js | |
| 43 | - function toPropertyKey(t) { | |
| 44 | - var i = toPrimitive(t, "string"); | |
| 45 | - return "symbol" == _typeof(i) ? i : i + ""; | |
| 46 | - } | |
| 70 | +/***/ "../assets/dev/js/admin/floating-elements/view.js": | |
| 71 | +/*!********************************************************!*\ | |
| 72 | + !*** ../assets/dev/js/admin/floating-elements/view.js ***! | |
| 73 | + \********************************************************/ | |
| 74 | +/***/ ((__unused_webpack_module, exports) => { | |
| 47 | 75 | |
| 48 | -//#endregion | |
| 49 | -//#region node_modules/@babel/runtime/helpers/esm/createClass.js | |
| 50 | - function _defineProperties(e, r) { | |
| 51 | - for (var t = 0; t < r.length; t++) { | |
| 52 | - var o = r[t]; | |
| 53 | - o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o); | |
| 54 | - } | |
| 55 | - } | |
| 56 | - function _createClass(e, r, t) { | |
| 57 | - return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; | |
| 58 | - } | |
| 76 | +"use strict"; | |
| 59 | 77 | |
| 60 | -//#endregion | |
| 61 | -//#region node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js | |
| 62 | - function _assertThisInitialized(e) { | |
| 63 | - if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| 64 | - return e; | |
| 65 | - } | |
| 66 | 78 | |
| 67 | -//#endregion | |
| 68 | -//#region node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js | |
| 69 | - function _possibleConstructorReturn(t, e) { | |
| 70 | - if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; | |
| 71 | - if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); | |
| 72 | - return _assertThisInitialized(t); | |
| 73 | - } | |
| 79 | +Object.defineProperty(exports, "__esModule", ({ | |
| 80 | + value: true | |
| 81 | +})); | |
| 82 | +exports["default"] = void 0; | |
| 83 | +var _default = Marionette.ItemView.extend({ | |
| 84 | + id: 'elementor-new-floating-elements-dialog-content', | |
| 85 | + template: '#tmpl-elementor-new-floating-elements', | |
| 86 | + ui: {}, | |
| 87 | + events: {}, | |
| 88 | + onRender: function onRender() {} | |
| 89 | +}); | |
| 90 | +exports["default"] = _default; | |
| 74 | 91 | |
| 75 | -//#endregion | |
| 76 | -//#region node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js | |
| 77 | - function _getPrototypeOf(t) { | |
| 78 | - return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) { | |
| 79 | - return t.__proto__ || Object.getPrototypeOf(t); | |
| 80 | - }, _getPrototypeOf(t); | |
| 81 | - } | |
| 92 | +/***/ }), | |
| 82 | 93 | |
| 83 | -//#endregion | |
| 84 | -//#region node_modules/@babel/runtime/helpers/esm/superPropBase.js | |
| 85 | - function _superPropBase(t, o) { | |
| 86 | - for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); | |
| 87 | - return t; | |
| 88 | - } | |
| 94 | +/***/ "../core/common/assets/js/views/modal/header.js": | |
| 95 | +/*!******************************************************!*\ | |
| 96 | + !*** ../core/common/assets/js/views/modal/header.js ***! | |
| 97 | + \******************************************************/ | |
| 98 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 89 | 99 | |
| 90 | -//#endregion | |
| 91 | -//#region node_modules/@babel/runtime/helpers/esm/get.js | |
| 92 | - function _get() { | |
| 93 | - return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function(e, t, r) { | |
| 94 | - var p = _superPropBase(e, t); | |
| 95 | - if (p) { | |
| 96 | - var n = Object.getOwnPropertyDescriptor(p, t); | |
| 97 | - return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; | |
| 98 | - } | |
| 99 | - }, _get.apply(null, arguments); | |
| 100 | - } | |
| 100 | +"use strict"; | |
| 101 | 101 | |
| 102 | -//#endregion | |
| 103 | -//#region node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js | |
| 104 | - function _setPrototypeOf(t, e) { | |
| 105 | - return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) { | |
| 106 | - return t.__proto__ = e, t; | |
| 107 | - }, _setPrototypeOf(t, e); | |
| 108 | - } | |
| 109 | 102 | |
| 110 | -//#endregion | |
| 111 | -//#region node_modules/@babel/runtime/helpers/esm/inherits.js | |
| 112 | - function _inherits(t, e) { | |
| 113 | - if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); | |
| 114 | - t.prototype = Object.create(e && e.prototype, { constructor: { | |
| 115 | - value: t, | |
| 116 | - writable: !0, | |
| 117 | - configurable: !0 | |
| 118 | - } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); | |
| 119 | - } | |
| 103 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 104 | +Object.defineProperty(exports, "__esModule", ({ | |
| 105 | + value: true | |
| 106 | +})); | |
| 107 | +exports["default"] = void 0; | |
| 108 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 109 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 110 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 111 | +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 112 | +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 113 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 114 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 115 | +var _default = /*#__PURE__*/function (_Marionette$LayoutVie) { | |
| 116 | + (0, _inherits2.default)(_default, _Marionette$LayoutVie); | |
| 117 | + var _super = _createSuper(_default); | |
| 118 | + function _default() { | |
| 119 | + (0, _classCallCheck2.default)(this, _default); | |
| 120 | + return _super.apply(this, arguments); | |
| 121 | + } | |
| 122 | + (0, _createClass2.default)(_default, [{ | |
| 123 | + key: "className", | |
| 124 | + value: function className() { | |
| 125 | + return 'elementor-templates-modal__header'; | |
| 126 | + } | |
| 127 | + }, { | |
| 128 | + key: "getTemplate", | |
| 129 | + value: function getTemplate() { | |
| 130 | + return '#tmpl-elementor-templates-modal__header'; | |
| 131 | + } | |
| 132 | + }, { | |
| 133 | + key: "regions", | |
| 134 | + value: function regions() { | |
| 135 | + return { | |
| 136 | + logoArea: '.elementor-templates-modal__header__logo-area', | |
| 137 | + tools: '#elementor-template-library-header-tools', | |
| 138 | + menuArea: '.elementor-templates-modal__header__menu-area' | |
| 139 | + }; | |
| 140 | + } | |
| 141 | + }, { | |
| 142 | + key: "ui", | |
| 143 | + value: function ui() { | |
| 144 | + return { | |
| 145 | + closeModal: '.elementor-templates-modal__header__close' | |
| 146 | + }; | |
| 147 | + } | |
| 148 | + }, { | |
| 149 | + key: "events", | |
| 150 | + value: function events() { | |
| 151 | + return { | |
| 152 | + 'click @ui.closeModal': 'onCloseModalClick' | |
| 153 | + }; | |
| 154 | + } | |
| 155 | + }, { | |
| 156 | + key: "templateHelpers", | |
| 157 | + value: function templateHelpers() { | |
| 158 | + return { | |
| 159 | + closeType: this.getOption('closeType') | |
| 160 | + }; | |
| 161 | + } | |
| 162 | + }, { | |
| 163 | + key: "onCloseModalClick", | |
| 164 | + value: function onCloseModalClick() { | |
| 165 | + this._parent._parent._parent.hideModal(); | |
| 166 | + if (this.isFloatingButtonLibraryClose()) { | |
| 167 | + $e.internal('document/save/set-is-modified', { | |
| 168 | + status: false | |
| 169 | + }); | |
| 170 | + window.location.href = elementor.config.admin_floating_button_admin_url; | |
| 171 | + } | |
| 172 | + } | |
| 173 | + }, { | |
| 174 | + key: "isFloatingButtonLibraryClose", | |
| 175 | + value: function isFloatingButtonLibraryClose() { | |
| 176 | + var _elementor$config, _elementor$config2, _elementor$config2$do; | |
| 177 | + return window.elementor && ((_elementor$config = elementor.config) === null || _elementor$config === void 0 ? void 0 : _elementor$config.admin_floating_button_admin_url) && 'floating-buttons' === ((_elementor$config2 = elementor.config) === null || _elementor$config2 === void 0 ? void 0 : (_elementor$config2$do = _elementor$config2.document) === null || _elementor$config2$do === void 0 ? void 0 : _elementor$config2$do.type) && (this.$el.closest('.dialog-lightbox-widget-content').find('.elementor-template-library-template-floating_button').length || this.$el.closest('.dialog-lightbox-widget-content').find('#elementor-template-library-preview').length || this.$el.closest('.dialog-lightbox-widget-content').find('#elementor-template-library-templates-empty').length); | |
| 178 | + } | |
| 179 | + }]); | |
| 180 | + return _default; | |
| 181 | +}(Marionette.LayoutView); | |
| 182 | +exports["default"] = _default; | |
| 120 | 183 | |
| 121 | -//#endregion | |
| 122 | -//#region assets/dev/js/admin/floating-elements/view.js | |
| 123 | - var view_default = Marionette.ItemView.extend({ | |
| 124 | - id: "elementor-new-floating-elements-dialog-content", | |
| 125 | - template: "#tmpl-elementor-new-floating-elements", | |
| 126 | - ui: {}, | |
| 127 | - events: {}, | |
| 128 | - onRender: function onRender() {} | |
| 129 | - }); | |
| 184 | +/***/ }), | |
| 130 | 185 | |
| 131 | -//#endregion | |
| 132 | -//#region core/common/assets/js/views/modal/header.js | |
| 133 | - function _callSuper$4(t, o, e) { | |
| 134 | - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$4() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); | |
| 135 | - } | |
| 136 | - __name(_callSuper$4, "_callSuper"); | |
| 137 | - function _isNativeReflectConstruct$4() { | |
| 138 | - try { | |
| 139 | - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})); | |
| 140 | - } catch (t) {} | |
| 141 | - return (_isNativeReflectConstruct$4 = function _isNativeReflectConstruct() { | |
| 142 | - return !!t; | |
| 143 | - })(); | |
| 144 | - } | |
| 145 | - __name(_isNativeReflectConstruct$4, "_isNativeReflectConstruct"); | |
| 146 | - var _default$4 = /*#__PURE__*/ function(_Marionette$LayoutVie) { | |
| 147 | - function _default() { | |
| 148 | - _classCallCheck(this, _default); | |
| 149 | - return _callSuper$4(this, _default, arguments); | |
| 150 | - } | |
| 151 | - _inherits(_default, _Marionette$LayoutVie); | |
| 152 | - return _createClass(_default, [ | |
| 153 | - { | |
| 154 | - key: "tagName", | |
| 155 | - value: function tagName() { | |
| 156 | - return "header"; | |
| 157 | - } | |
| 158 | - }, | |
| 159 | - { | |
| 160 | - key: "className", | |
| 161 | - value: function className() { | |
| 162 | - return "elementor-templates-modal__header"; | |
| 163 | - } | |
| 164 | - }, | |
| 165 | - { | |
| 166 | - key: "getTemplate", | |
| 167 | - value: function getTemplate() { | |
| 168 | - return "#tmpl-elementor-templates-modal__header"; | |
| 169 | - } | |
| 170 | - }, | |
| 171 | - { | |
| 172 | - key: "regions", | |
| 173 | - value: function regions() { | |
| 174 | - return { | |
| 175 | - logoArea: ".elementor-templates-modal__header__logo-area", | |
| 176 | - tools: "#elementor-template-library-header-tools", | |
| 177 | - menuArea: ".elementor-templates-modal__header__menu-area" | |
| 178 | - }; | |
| 179 | - } | |
| 180 | - }, | |
| 181 | - { | |
| 182 | - key: "ui", | |
| 183 | - value: function ui() { | |
| 184 | - return { closeModal: ".elementor-templates-modal__header__close" }; | |
| 185 | - } | |
| 186 | - }, | |
| 187 | - { | |
| 188 | - key: "events", | |
| 189 | - value: function events() { | |
| 190 | - return { "click @ui.closeModal": "onCloseModalClick" }; | |
| 191 | - } | |
| 192 | - }, | |
| 193 | - { | |
| 194 | - key: "onRender", | |
| 195 | - value: function onRender() { | |
| 196 | - this.bindEscapeKey(); | |
| 197 | - } | |
| 198 | - }, | |
| 199 | - { | |
| 200 | - key: "bindEscapeKey", | |
| 201 | - value: function bindEscapeKey() { | |
| 202 | - var _this = this; | |
| 203 | - this.onDocumentKeyDown = function(event) { | |
| 204 | - if ("Escape" === event.key) _this.onCloseModalClick(); | |
| 205 | - }; | |
| 206 | - document.addEventListener("keydown", this.onDocumentKeyDown); | |
| 207 | - } | |
| 208 | - }, | |
| 209 | - { | |
| 210 | - key: "onDestroy", | |
| 211 | - value: function onDestroy() { | |
| 212 | - if (this.onDocumentKeyDown) document.removeEventListener("keydown", this.onDocumentKeyDown); | |
| 213 | - } | |
| 214 | - }, | |
| 215 | - { | |
| 216 | - key: "templateHelpers", | |
| 217 | - value: function templateHelpers() { | |
| 218 | - return { closeType: this.getOption("closeType") }; | |
| 219 | - } | |
| 220 | - }, | |
| 221 | - { | |
| 222 | - key: "onCloseModalClick", | |
| 223 | - value: function onCloseModalClick() { | |
| 224 | - this._parent._parent._parent.hideModal(); | |
| 225 | - var documentType = this.getDocumentType(); | |
| 226 | - var customEvent = new CustomEvent("core/modal/close/".concat(documentType)); | |
| 227 | - window.dispatchEvent(customEvent); | |
| 228 | - if (this.isFloatingButtonLibraryClose()) { | |
| 229 | - $e.internal("document/save/set-is-modified", { status: false }); | |
| 230 | - window.location.href = elementor.config.admin_floating_button_admin_url; | |
| 231 | - } | |
| 232 | - } | |
| 233 | - }, | |
| 234 | - { | |
| 235 | - key: "getDocumentType", | |
| 236 | - value: function getDocumentType() { | |
| 237 | - var _elementor$config$doc; | |
| 238 | - var _elementor; | |
| 239 | - var DEFAULT_TYPE = "default"; | |
| 240 | - if ("undefined" === typeof window.elementor) return DEFAULT_TYPE; | |
| 241 | - return (_elementor$config$doc = (_elementor = elementor) === null || _elementor === void 0 || (_elementor = _elementor.config) === null || _elementor === void 0 || (_elementor = _elementor.document) === null || _elementor === void 0 ? void 0 : _elementor.type) !== null && _elementor$config$doc !== void 0 ? _elementor$config$doc : DEFAULT_TYPE; | |
| 242 | - } | |
| 243 | - }, | |
| 244 | - { | |
| 245 | - key: "isFloatingButtonLibraryClose", | |
| 246 | - value: function isFloatingButtonLibraryClose() { | |
| 247 | - var _elementor$config; | |
| 248 | - var _elementor$config2; | |
| 249 | - return window.elementor && ((_elementor$config = elementor.config) === null || _elementor$config === void 0 ? void 0 : _elementor$config.admin_floating_button_admin_url) && "floating-buttons" === ((_elementor$config2 = elementor.config) === null || _elementor$config2 === void 0 || (_elementor$config2 = _elementor$config2.document) === null || _elementor$config2 === void 0 ? void 0 : _elementor$config2.type) && (this.$el.closest(".dialog-lightbox-widget-content").find(".elementor-template-library-template-floating_button").length || this.$el.closest(".dialog-lightbox-widget-content").find("#elementor-template-library-preview").length || this.$el.closest(".dialog-lightbox-widget-content").find("#elementor-template-library-templates-empty").length); | |
| 250 | - } | |
| 251 | - } | |
| 252 | - ]); | |
| 253 | - }(Marionette.LayoutView); | |
| 186 | +/***/ "../core/common/assets/js/views/modal/layout.js": | |
| 187 | +/*!******************************************************!*\ | |
| 188 | + !*** ../core/common/assets/js/views/modal/layout.js ***! | |
| 189 | + \******************************************************/ | |
| 190 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 254 | 191 | |
| 255 | -//#endregion | |
| 256 | -//#region core/common/assets/js/views/modal/logo.js | |
| 257 | - function _callSuper$3(t, o, e) { | |
| 258 | - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$3() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); | |
| 259 | - } | |
| 260 | - __name(_callSuper$3, "_callSuper"); | |
| 261 | - function _isNativeReflectConstruct$3() { | |
| 262 | - try { | |
| 263 | - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})); | |
| 264 | - } catch (t) {} | |
| 265 | - return (_isNativeReflectConstruct$3 = function _isNativeReflectConstruct() { | |
| 266 | - return !!t; | |
| 267 | - })(); | |
| 268 | - } | |
| 269 | - __name(_isNativeReflectConstruct$3, "_isNativeReflectConstruct"); | |
| 270 | - var _default$3 = /*#__PURE__*/ function(_Marionette$ItemView) { | |
| 271 | - function _default() { | |
| 272 | - _classCallCheck(this, _default); | |
| 273 | - return _callSuper$3(this, _default, arguments); | |
| 274 | - } | |
| 275 | - _inherits(_default, _Marionette$ItemView); | |
| 276 | - return _createClass(_default, [ | |
| 277 | - { | |
| 278 | - key: "getTemplate", | |
| 279 | - value: function getTemplate() { | |
| 280 | - return "#tmpl-elementor-templates-modal__header__logo"; | |
| 281 | - } | |
| 282 | - }, | |
| 283 | - { | |
| 284 | - key: "className", | |
| 285 | - value: function className() { | |
| 286 | - return "elementor-templates-modal__header__logo"; | |
| 287 | - } | |
| 288 | - }, | |
| 289 | - { | |
| 290 | - key: "events", | |
| 291 | - value: function events() { | |
| 292 | - return { click: "onClick" }; | |
| 293 | - } | |
| 294 | - }, | |
| 295 | - { | |
| 296 | - key: "templateHelpers", | |
| 297 | - value: function templateHelpers() { | |
| 298 | - return { title: this.getOption("title") }; | |
| 299 | - } | |
| 300 | - }, | |
| 301 | - { | |
| 302 | - key: "onClick", | |
| 303 | - value: function onClick() { | |
| 304 | - var clickCallback = this.getOption("click"); | |
| 305 | - if (clickCallback) clickCallback(); | |
| 306 | - } | |
| 307 | - } | |
| 308 | - ]); | |
| 309 | - }(Marionette.ItemView); | |
| 192 | +"use strict"; | |
| 310 | 193 | |
| 311 | -//#endregion | |
| 312 | -//#region core/common/assets/js/views/modal/loading.js | |
| 313 | - function _callSuper$2(t, o, e) { | |
| 314 | - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$2() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); | |
| 315 | - } | |
| 316 | - __name(_callSuper$2, "_callSuper"); | |
| 317 | - function _isNativeReflectConstruct$2() { | |
| 318 | - try { | |
| 319 | - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})); | |
| 320 | - } catch (t) {} | |
| 321 | - return (_isNativeReflectConstruct$2 = function _isNativeReflectConstruct() { | |
| 322 | - return !!t; | |
| 323 | - })(); | |
| 324 | - } | |
| 325 | - __name(_isNativeReflectConstruct$2, "_isNativeReflectConstruct"); | |
| 326 | - var _default$2 = /*#__PURE__*/ function(_Marionette$ItemView) { | |
| 327 | - function _default() { | |
| 328 | - _classCallCheck(this, _default); | |
| 329 | - return _callSuper$2(this, _default, arguments); | |
| 330 | - } | |
| 331 | - _inherits(_default, _Marionette$ItemView); | |
| 332 | - return _createClass(_default, [{ | |
| 333 | - key: "id", | |
| 334 | - value: function id() { | |
| 335 | - return "elementor-template-library-loading"; | |
| 336 | - } | |
| 337 | - }, { | |
| 338 | - key: "getTemplate", | |
| 339 | - value: function getTemplate() { | |
| 340 | - return "#tmpl-elementor-template-library-loading"; | |
| 341 | - } | |
| 342 | - }]); | |
| 343 | - }(Marionette.ItemView); | |
| 344 | 194 | |
| 345 | -//#endregion | |
| 346 | -//#region core/common/assets/js/views/modal/layout.js | |
| 347 | - function _callSuper$1(t, o, e) { | |
| 348 | - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$1() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); | |
| 349 | - } | |
| 350 | - __name(_callSuper$1, "_callSuper"); | |
| 351 | - function _isNativeReflectConstruct$1() { | |
| 352 | - try { | |
| 353 | - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})); | |
| 354 | - } catch (t) {} | |
| 355 | - return (_isNativeReflectConstruct$1 = function _isNativeReflectConstruct() { | |
| 356 | - return !!t; | |
| 357 | - })(); | |
| 358 | - } | |
| 359 | - __name(_isNativeReflectConstruct$1, "_isNativeReflectConstruct"); | |
| 360 | - var _default$1 = /*#__PURE__*/ function(_Marionette$LayoutVie) { | |
| 361 | - function _default() { | |
| 362 | - _classCallCheck(this, _default); | |
| 363 | - return _callSuper$1(this, _default, arguments); | |
| 364 | - } | |
| 365 | - _inherits(_default, _Marionette$LayoutVie); | |
| 366 | - return _createClass(_default, [ | |
| 367 | - { | |
| 368 | - key: "el", | |
| 369 | - value: function el() { | |
| 370 | - return this.getModal().getElements("widget"); | |
| 371 | - } | |
| 372 | - }, | |
| 373 | - { | |
| 374 | - key: "regions", | |
| 375 | - value: function regions() { | |
| 376 | - return { | |
| 377 | - modalHeader: ".dialog-header", | |
| 378 | - modalContent: ".dialog-lightbox-content", | |
| 379 | - modalLoading: ".dialog-lightbox-loading" | |
| 380 | - }; | |
| 381 | - } | |
| 382 | - }, | |
| 383 | - { | |
| 384 | - key: "initialize", | |
| 385 | - value: function initialize() { | |
| 386 | - this.modalHeader.show(new _default$4(this.getHeaderOptions())); | |
| 387 | - } | |
| 388 | - }, | |
| 389 | - { | |
| 390 | - key: "getModal", | |
| 391 | - value: function getModal() { | |
| 392 | - if (!this.modal) this.initModal(); | |
| 393 | - return this.modal; | |
| 394 | - } | |
| 395 | - }, | |
| 396 | - { | |
| 397 | - key: "initModal", | |
| 398 | - value: function initModal() { | |
| 399 | - var modalOptions = { | |
| 400 | - className: "elementor-templates-modal", | |
| 401 | - closeButton: false, | |
| 402 | - draggable: false, | |
| 403 | - hide: { | |
| 404 | - onOutsideClick: false, | |
| 405 | - onEscKeyPress: false | |
| 406 | - } | |
| 407 | - }; | |
| 408 | - jQuery.extend(true, modalOptions, this.getModalOptions()); | |
| 409 | - this.modal = elementorCommon.dialogsManager.createWidget("lightbox", modalOptions); | |
| 410 | - this.modal.getElements("message").append(this.modal.addElement("content"), this.modal.addElement("loading")); | |
| 411 | - if (modalOptions.draggable) this.draggableModal(); | |
| 412 | - } | |
| 413 | - }, | |
| 414 | - { | |
| 415 | - key: "showModal", | |
| 416 | - value: function showModal() { | |
| 417 | - this.getModal().show(); | |
| 418 | - } | |
| 419 | - }, | |
| 420 | - { | |
| 421 | - key: "hideModal", | |
| 422 | - value: function hideModal() { | |
| 423 | - this.getModal().hide(); | |
| 424 | - } | |
| 425 | - }, | |
| 426 | - { | |
| 427 | - key: "draggableModal", | |
| 428 | - value: function draggableModal() { | |
| 429 | - var $modalWidgetContent = this.getModal().getElements("widgetContent"); | |
| 430 | - $modalWidgetContent.draggable({ | |
| 431 | - containment: "parent", | |
| 432 | - stop: function stop() { | |
| 433 | - $modalWidgetContent.height(""); | |
| 434 | - } | |
| 435 | - }); | |
| 436 | - $modalWidgetContent.css("position", "absolute"); | |
| 437 | - } | |
| 438 | - }, | |
| 439 | - { | |
| 440 | - key: "getModalOptions", | |
| 441 | - value: function getModalOptions() { | |
| 442 | - return {}; | |
| 443 | - } | |
| 444 | - }, | |
| 445 | - { | |
| 446 | - key: "getLogoOptions", | |
| 447 | - value: function getLogoOptions() { | |
| 448 | - return {}; | |
| 449 | - } | |
| 450 | - }, | |
| 451 | - { | |
| 452 | - key: "getHeaderOptions", | |
| 453 | - value: function getHeaderOptions() { | |
| 454 | - return { closeType: "normal" }; | |
| 455 | - } | |
| 456 | - }, | |
| 457 | - { | |
| 458 | - key: "getHeaderView", | |
| 459 | - value: function getHeaderView() { | |
| 460 | - return this.modalHeader.currentView; | |
| 461 | - } | |
| 462 | - }, | |
| 463 | - { | |
| 464 | - key: "showLoadingView", | |
| 465 | - value: function showLoadingView() { | |
| 466 | - this.modalLoading.show(new _default$2()); | |
| 467 | - this.modalLoading.$el.show(); | |
| 468 | - this.modalContent.$el.hide(); | |
| 469 | - } | |
| 470 | - }, | |
| 471 | - { | |
| 472 | - key: "hideLoadingView", | |
| 473 | - value: function hideLoadingView() { | |
| 474 | - this.modalContent.$el.show(); | |
| 475 | - this.modalLoading.$el.hide(); | |
| 476 | - } | |
| 477 | - }, | |
| 478 | - { | |
| 479 | - key: "showLogo", | |
| 480 | - value: function showLogo() { | |
| 481 | - this.getHeaderView().logoArea.show(new _default$3(this.getLogoOptions())); | |
| 482 | - } | |
| 483 | - } | |
| 484 | - ]); | |
| 485 | - }(Marionette.LayoutView); | |
| 195 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 196 | +Object.defineProperty(exports, "__esModule", ({ | |
| 197 | + value: true | |
| 198 | +})); | |
| 199 | +exports["default"] = void 0; | |
| 200 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 201 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 202 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 203 | +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 204 | +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 205 | +var _header = _interopRequireDefault(__webpack_require__(/*! ./header */ "../core/common/assets/js/views/modal/header.js")); | |
| 206 | +var _logo = _interopRequireDefault(__webpack_require__(/*! ./logo */ "../core/common/assets/js/views/modal/logo.js")); | |
| 207 | +var _loading = _interopRequireDefault(__webpack_require__(/*! ./loading */ "../core/common/assets/js/views/modal/loading.js")); | |
| 208 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 209 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 210 | +var _default = /*#__PURE__*/function (_Marionette$LayoutVie) { | |
| 211 | + (0, _inherits2.default)(_default, _Marionette$LayoutVie); | |
| 212 | + var _super = _createSuper(_default); | |
| 213 | + function _default() { | |
| 214 | + (0, _classCallCheck2.default)(this, _default); | |
| 215 | + return _super.apply(this, arguments); | |
| 216 | + } | |
| 217 | + (0, _createClass2.default)(_default, [{ | |
| 218 | + key: "el", | |
| 219 | + value: function el() { | |
| 220 | + return this.getModal().getElements('widget'); | |
| 221 | + } | |
| 222 | + }, { | |
| 223 | + key: "regions", | |
| 224 | + value: function regions() { | |
| 225 | + return { | |
| 226 | + modalHeader: '.dialog-header', | |
| 227 | + modalContent: '.dialog-lightbox-content', | |
| 228 | + modalLoading: '.dialog-lightbox-loading' | |
| 229 | + }; | |
| 230 | + } | |
| 231 | + }, { | |
| 232 | + key: "initialize", | |
| 233 | + value: function initialize() { | |
| 234 | + this.modalHeader.show(new _header.default(this.getHeaderOptions())); | |
| 235 | + } | |
| 236 | + }, { | |
| 237 | + key: "getModal", | |
| 238 | + value: function getModal() { | |
| 239 | + if (!this.modal) { | |
| 240 | + this.initModal(); | |
| 241 | + } | |
| 242 | + return this.modal; | |
| 243 | + } | |
| 244 | + }, { | |
| 245 | + key: "initModal", | |
| 246 | + value: function initModal() { | |
| 247 | + var modalOptions = { | |
| 248 | + className: 'elementor-templates-modal', | |
| 249 | + closeButton: false, | |
| 250 | + draggable: false, | |
| 251 | + hide: { | |
| 252 | + onOutsideClick: false, | |
| 253 | + onEscKeyPress: false | |
| 254 | + } | |
| 255 | + }; | |
| 256 | + jQuery.extend(true, modalOptions, this.getModalOptions()); | |
| 257 | + this.modal = elementorCommon.dialogsManager.createWidget('lightbox', modalOptions); | |
| 258 | + this.modal.getElements('message').append(this.modal.addElement('content'), this.modal.addElement('loading')); | |
| 259 | + if (modalOptions.draggable) { | |
| 260 | + this.draggableModal(); | |
| 261 | + } | |
| 262 | + } | |
| 263 | + }, { | |
| 264 | + key: "showModal", | |
| 265 | + value: function showModal() { | |
| 266 | + this.getModal().show(); | |
| 267 | + } | |
| 268 | + }, { | |
| 269 | + key: "hideModal", | |
| 270 | + value: function hideModal() { | |
| 271 | + this.getModal().hide(); | |
| 272 | + } | |
| 273 | + }, { | |
| 274 | + key: "draggableModal", | |
| 275 | + value: function draggableModal() { | |
| 276 | + var $modalWidgetContent = this.getModal().getElements('widgetContent'); | |
| 277 | + $modalWidgetContent.draggable({ | |
| 278 | + containment: 'parent', | |
| 279 | + stop: function stop() { | |
| 280 | + $modalWidgetContent.height(''); | |
| 281 | + } | |
| 282 | + }); | |
| 283 | + $modalWidgetContent.css('position', 'absolute'); | |
| 284 | + } | |
| 285 | + }, { | |
| 286 | + key: "getModalOptions", | |
| 287 | + value: function getModalOptions() { | |
| 288 | + return {}; | |
| 289 | + } | |
| 290 | + }, { | |
| 291 | + key: "getLogoOptions", | |
| 292 | + value: function getLogoOptions() { | |
| 293 | + return {}; | |
| 294 | + } | |
| 295 | + }, { | |
| 296 | + key: "getHeaderOptions", | |
| 297 | + value: function getHeaderOptions() { | |
| 298 | + return { | |
| 299 | + closeType: 'normal' | |
| 300 | + }; | |
| 301 | + } | |
| 302 | + }, { | |
| 303 | + key: "getHeaderView", | |
| 304 | + value: function getHeaderView() { | |
| 305 | + return this.modalHeader.currentView; | |
| 306 | + } | |
| 307 | + }, { | |
| 308 | + key: "showLoadingView", | |
| 309 | + value: function showLoadingView() { | |
| 310 | + this.modalLoading.show(new _loading.default()); | |
| 311 | + this.modalLoading.$el.show(); | |
| 312 | + this.modalContent.$el.hide(); | |
| 313 | + } | |
| 314 | + }, { | |
| 315 | + key: "hideLoadingView", | |
| 316 | + value: function hideLoadingView() { | |
| 317 | + this.modalContent.$el.show(); | |
| 318 | + this.modalLoading.$el.hide(); | |
| 319 | + } | |
| 320 | + }, { | |
| 321 | + key: "showLogo", | |
| 322 | + value: function showLogo() { | |
| 323 | + this.getHeaderView().logoArea.show(new _logo.default(this.getLogoOptions())); | |
| 324 | + } | |
| 325 | + }]); | |
| 326 | + return _default; | |
| 327 | +}(Marionette.LayoutView); | |
| 328 | +exports["default"] = _default; | |
| 486 | 329 | |
| 487 | -//#endregion | |
| 488 | -//#region assets/dev/js/admin/floating-elements/layout.js | |
| 489 | - function _callSuper(t, o, e) { | |
| 490 | - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); | |
| 491 | - } | |
| 492 | - function _isNativeReflectConstruct() { | |
| 493 | - try { | |
| 494 | - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})); | |
| 495 | - } catch (t) {} | |
| 496 | - return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { | |
| 497 | - return !!t; | |
| 498 | - })(); | |
| 499 | - } | |
| 500 | - function _superPropGet(t, o, e, r) { | |
| 501 | - var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e); | |
| 502 | - return 2 & r && "function" == typeof p ? function(t) { | |
| 503 | - return p.apply(e, t); | |
| 504 | - } : p; | |
| 505 | - } | |
| 506 | - var _default = /*#__PURE__*/ function(_ModalLayout) { | |
| 507 | - function _default() { | |
| 508 | - _classCallCheck(this, _default); | |
| 509 | - return _callSuper(this, _default, arguments); | |
| 510 | - } | |
| 511 | - _inherits(_default, _ModalLayout); | |
| 512 | - return _createClass(_default, [ | |
| 513 | - { | |
| 514 | - key: "getModalOptions", | |
| 515 | - value: function getModalOptions() { | |
| 516 | - return { id: "elementor-new-floating-elements-modal" }; | |
| 517 | - } | |
| 518 | - }, | |
| 519 | - { | |
| 520 | - key: "getLogoOptions", | |
| 521 | - value: function getLogoOptions() { | |
| 522 | - return { title: (0, _wordpress_i18n.__)("New Floating Elements", "elementor") }; | |
| 523 | - } | |
| 524 | - }, | |
| 525 | - { | |
| 526 | - key: "initialize", | |
| 527 | - value: function initialize() { | |
| 528 | - _superPropGet(_default, "initialize", this, 3)([]); | |
| 529 | - this.showLogo(); | |
| 530 | - this.showContentView(); | |
| 531 | - } | |
| 532 | - }, | |
| 533 | - { | |
| 534 | - key: "showContentView", | |
| 535 | - value: function showContentView() { | |
| 536 | - this.modalContent.show(new view_default()); | |
| 537 | - } | |
| 538 | - } | |
| 539 | - ]); | |
| 540 | - }(_default$1); | |
| 330 | +/***/ }), | |
| 541 | 331 | |
| 542 | -//#endregion | |
| 543 | -//#region assets/dev/js/admin/floating-elements/new-floating-elements.js | |
| 544 | - var NewFloatingElementsModule = elementorModules.ViewModule.extend({ | |
| 545 | - getDefaultSettings: function getDefaultSettings() { | |
| 546 | - return { selectors: { | |
| 547 | - addButtonTopBar: "a.page-title-action[href*=\"e-floating-buttons\"]", | |
| 548 | - addButtonAdminBar: "#wp-admin-bar-new-e-floating-buttons a", | |
| 549 | - addButtonEmptyTemplate: "#elementor-template-library-add-new" | |
| 550 | - } }; | |
| 551 | - }, | |
| 552 | - getDefaultElements: function getDefaultElements() { | |
| 553 | - var selectors = this.getSettings("selectors"); | |
| 554 | - return { | |
| 555 | - addButtonTopBar: document.querySelector(selectors.addButtonTopBar), | |
| 556 | - addButtonAdminBar: document.querySelector(selectors.addButtonAdminBar), | |
| 557 | - addButtonEmptyTemplate: document.querySelector(selectors.addButtonEmptyTemplate) | |
| 558 | - }; | |
| 559 | - }, | |
| 560 | - bindEvents: function bindEvents() { | |
| 561 | - if (this.elements.addButtonTopBar !== null) this.elements.addButtonTopBar.addEventListener("click", this.onAddButtonClick); | |
| 562 | - if (this.elements.addButtonAdminBar !== null) this.elements.addButtonAdminBar.addEventListener("click", this.onAddButtonClick); | |
| 563 | - if (this.elements.addButtonEmptyTemplate !== null) this.elements.addButtonEmptyTemplate.addEventListener("click", this.onAddButtonClick); | |
| 564 | - }, | |
| 565 | - onInit: function onInit() { | |
| 566 | - elementorModules.ViewModule.prototype.onInit.apply(this, arguments); | |
| 567 | - this.layout = new _default(); | |
| 568 | - }, | |
| 569 | - onAddButtonClick: function onAddButtonClick(event) { | |
| 570 | - event.preventDefault(); | |
| 571 | - this.layout.showModal(); | |
| 572 | - } | |
| 573 | - }); | |
| 574 | - document.addEventListener("DOMContentLoaded", function() { | |
| 575 | - window.elementorNewFloatingElements = new NewFloatingElementsModule(); | |
| 576 | - }); | |
| 332 | +/***/ "../core/common/assets/js/views/modal/loading.js": | |
| 333 | +/*!*******************************************************!*\ | |
| 334 | + !*** ../core/common/assets/js/views/modal/loading.js ***! | |
| 335 | + \*******************************************************/ | |
| 336 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 577 | 337 | |
| 578 | -//#endregion | |
| 579 | -})(wp.i18n); | |
| 338 | +"use strict"; | |
| 339 | + | |
| 340 | + | |
| 341 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 342 | +Object.defineProperty(exports, "__esModule", ({ | |
| 343 | + value: true | |
| 344 | +})); | |
| 345 | +exports["default"] = void 0; | |
| 346 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 347 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 348 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 349 | +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 350 | +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 351 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 352 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 353 | +var _default = /*#__PURE__*/function (_Marionette$ItemView) { | |
| 354 | + (0, _inherits2.default)(_default, _Marionette$ItemView); | |
| 355 | + var _super = _createSuper(_default); | |
| 356 | + function _default() { | |
| 357 | + (0, _classCallCheck2.default)(this, _default); | |
| 358 | + return _super.apply(this, arguments); | |
| 359 | + } | |
| 360 | + (0, _createClass2.default)(_default, [{ | |
| 361 | + key: "id", | |
| 362 | + value: function id() { | |
| 363 | + return 'elementor-template-library-loading'; | |
| 364 | + } | |
| 365 | + }, { | |
| 366 | + key: "getTemplate", | |
| 367 | + value: function getTemplate() { | |
| 368 | + return '#tmpl-elementor-template-library-loading'; | |
| 369 | + } | |
| 370 | + }]); | |
| 371 | + return _default; | |
| 372 | +}(Marionette.ItemView); | |
| 373 | +exports["default"] = _default; | |
| 374 | + | |
| 375 | +/***/ }), | |
| 376 | + | |
| 377 | +/***/ "../core/common/assets/js/views/modal/logo.js": | |
| 378 | +/*!****************************************************!*\ | |
| 379 | + !*** ../core/common/assets/js/views/modal/logo.js ***! | |
| 380 | + \****************************************************/ | |
| 381 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 382 | + | |
| 383 | +"use strict"; | |
| 384 | + | |
| 385 | + | |
| 386 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 387 | +Object.defineProperty(exports, "__esModule", ({ | |
| 388 | + value: true | |
| 389 | +})); | |
| 390 | +exports["default"] = void 0; | |
| 391 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 392 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 393 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 394 | +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 395 | +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 396 | +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; } | |
| 397 | +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | |
| 398 | +var _default = /*#__PURE__*/function (_Marionette$ItemView) { | |
| 399 | + (0, _inherits2.default)(_default, _Marionette$ItemView); | |
| 400 | + var _super = _createSuper(_default); | |
| 401 | + function _default() { | |
| 402 | + (0, _classCallCheck2.default)(this, _default); | |
| 403 | + return _super.apply(this, arguments); | |
| 404 | + } | |
| 405 | + (0, _createClass2.default)(_default, [{ | |
| 406 | + key: "getTemplate", | |
| 407 | + value: function getTemplate() { | |
| 408 | + return '#tmpl-elementor-templates-modal__header__logo'; | |
| 409 | + } | |
| 410 | + }, { | |
| 411 | + key: "className", | |
| 412 | + value: function className() { | |
| 413 | + return 'elementor-templates-modal__header__logo'; | |
| 414 | + } | |
| 415 | + }, { | |
| 416 | + key: "events", | |
| 417 | + value: function events() { | |
| 418 | + return { | |
| 419 | + click: 'onClick' | |
| 420 | + }; | |
| 421 | + } | |
| 422 | + }, { | |
| 423 | + key: "templateHelpers", | |
| 424 | + value: function templateHelpers() { | |
| 425 | + return { | |
| 426 | + title: this.getOption('title') | |
| 427 | + }; | |
| 428 | + } | |
| 429 | + }, { | |
| 430 | + key: "onClick", | |
| 431 | + value: function onClick() { | |
| 432 | + var clickCallback = this.getOption('click'); | |
| 433 | + if (clickCallback) { | |
| 434 | + clickCallback(); | |
| 435 | + } | |
| 436 | + } | |
| 437 | + }]); | |
| 438 | + return _default; | |
| 439 | +}(Marionette.ItemView); | |
| 440 | +exports["default"] = _default; | |
| 441 | + | |
| 442 | +/***/ }), | |
| 443 | + | |
| 444 | +/***/ "@wordpress/i18n": | |
| 445 | +/*!**************************!*\ | |
| 446 | + !*** external "wp.i18n" ***! | |
| 447 | + \**************************/ | |
| 448 | +/***/ ((module) => { | |
| 449 | + | |
| 450 | +"use strict"; | |
| 451 | +module.exports = wp.i18n; | |
| 452 | + | |
| 453 | +/***/ }), | |
| 454 | + | |
| 455 | +/***/ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js": | |
| 456 | +/*!***********************************************************************!*\ | |
| 457 | + !*** ../node_modules/@babel/runtime/helpers/assertThisInitialized.js ***! | |
| 458 | + \***********************************************************************/ | |
| 459 | +/***/ ((module) => { | |
| 460 | + | |
| 461 | +function _assertThisInitialized(self) { | |
| 462 | + if (self === void 0) { | |
| 463 | + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| 464 | + } | |
| 465 | + return self; | |
| 466 | +} | |
| 467 | +module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 468 | + | |
| 469 | +/***/ }), | |
| 470 | + | |
| 471 | +/***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js": | |
| 472 | +/*!****************************************************************!*\ | |
| 473 | + !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***! | |
| 474 | + \****************************************************************/ | |
| 475 | +/***/ ((module) => { | |
| 476 | + | |
| 477 | +function _classCallCheck(instance, Constructor) { | |
| 478 | + if (!(instance instanceof Constructor)) { | |
| 479 | + throw new TypeError("Cannot call a class as a function"); | |
| 480 | + } | |
| 481 | +} | |
| 482 | +module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 483 | + | |
| 484 | +/***/ }), | |
| 485 | + | |
| 486 | +/***/ "../node_modules/@babel/runtime/helpers/createClass.js": | |
| 487 | +/*!*************************************************************!*\ | |
| 488 | + !*** ../node_modules/@babel/runtime/helpers/createClass.js ***! | |
| 489 | + \*************************************************************/ | |
| 490 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 491 | + | |
| 492 | +var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); | |
| 493 | +function _defineProperties(target, props) { | |
| 494 | + for (var i = 0; i < props.length; i++) { | |
| 495 | + var descriptor = props[i]; | |
| 496 | + descriptor.enumerable = descriptor.enumerable || false; | |
| 497 | + descriptor.configurable = true; | |
| 498 | + if ("value" in descriptor) descriptor.writable = true; | |
| 499 | + Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor); | |
| 500 | + } | |
| 501 | +} | |
| 502 | +function _createClass(Constructor, protoProps, staticProps) { | |
| 503 | + if (protoProps) _defineProperties(Constructor.prototype, protoProps); | |
| 504 | + if (staticProps) _defineProperties(Constructor, staticProps); | |
| 505 | + Object.defineProperty(Constructor, "prototype", { | |
| 506 | + writable: false | |
| 507 | + }); | |
| 508 | + return Constructor; | |
| 509 | +} | |
| 510 | +module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 511 | + | |
| 512 | +/***/ }), | |
| 513 | + | |
| 514 | +/***/ "../node_modules/@babel/runtime/helpers/get.js": | |
| 515 | +/*!*****************************************************!*\ | |
| 516 | + !*** ../node_modules/@babel/runtime/helpers/get.js ***! | |
| 517 | + \*****************************************************/ | |
| 518 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 519 | + | |
| 520 | +var superPropBase = __webpack_require__(/*! ./superPropBase.js */ "../node_modules/@babel/runtime/helpers/superPropBase.js"); | |
| 521 | +function _get() { | |
| 522 | + if (typeof Reflect !== "undefined" && Reflect.get) { | |
| 523 | + module.exports = _get = Reflect.get.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 524 | + } else { | |
| 525 | + module.exports = _get = function _get(target, property, receiver) { | |
| 526 | + var base = superPropBase(target, property); | |
| 527 | + if (!base) return; | |
| 528 | + var desc = Object.getOwnPropertyDescriptor(base, property); | |
| 529 | + if (desc.get) { | |
| 530 | + return desc.get.call(arguments.length < 3 ? target : receiver); | |
| 531 | + } | |
| 532 | + return desc.value; | |
| 533 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 534 | + } | |
| 535 | + return _get.apply(this, arguments); | |
| 536 | +} | |
| 537 | +module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 538 | + | |
| 539 | +/***/ }), | |
| 540 | + | |
| 541 | +/***/ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js": | |
| 542 | +/*!****************************************************************!*\ | |
| 543 | + !*** ../node_modules/@babel/runtime/helpers/getPrototypeOf.js ***! | |
| 544 | + \****************************************************************/ | |
| 545 | +/***/ ((module) => { | |
| 546 | + | |
| 547 | +function _getPrototypeOf(o) { | |
| 548 | + module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { | |
| 549 | + return o.__proto__ || Object.getPrototypeOf(o); | |
| 550 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 551 | + return _getPrototypeOf(o); | |
| 552 | +} | |
| 553 | +module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 554 | + | |
| 555 | +/***/ }), | |
| 556 | + | |
| 557 | +/***/ "../node_modules/@babel/runtime/helpers/inherits.js": | |
| 558 | +/*!**********************************************************!*\ | |
| 559 | + !*** ../node_modules/@babel/runtime/helpers/inherits.js ***! | |
| 560 | + \**********************************************************/ | |
| 561 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 562 | + | |
| 563 | +var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js"); | |
| 564 | +function _inherits(subClass, superClass) { | |
| 565 | + if (typeof superClass !== "function" && superClass !== null) { | |
| 566 | + throw new TypeError("Super expression must either be null or a function"); | |
| 567 | + } | |
| 568 | + subClass.prototype = Object.create(superClass && superClass.prototype, { | |
| 569 | + constructor: { | |
| 570 | + value: subClass, | |
| 571 | + writable: true, | |
| 572 | + configurable: true | |
| 573 | + } | |
| 574 | + }); | |
| 575 | + Object.defineProperty(subClass, "prototype", { | |
| 576 | + writable: false | |
| 577 | + }); | |
| 578 | + if (superClass) setPrototypeOf(subClass, superClass); | |
| 579 | +} | |
| 580 | +module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 581 | + | |
| 582 | +/***/ }), | |
| 583 | + | |
| 584 | +/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js": | |
| 585 | +/*!***********************************************************************!*\ | |
| 586 | + !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***! | |
| 587 | + \***********************************************************************/ | |
| 588 | +/***/ ((module) => { | |
| 589 | + | |
| 590 | +function _interopRequireDefault(obj) { | |
| 591 | + return obj && obj.__esModule ? obj : { | |
| 592 | + "default": obj | |
| 593 | + }; | |
| 594 | +} | |
| 595 | +module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 596 | + | |
| 597 | +/***/ }), | |
| 598 | + | |
| 599 | +/***/ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js": | |
| 600 | +/*!***************************************************************************!*\ | |
| 601 | + !*** ../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***! | |
| 602 | + \***************************************************************************/ | |
| 603 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 604 | + | |
| 605 | +var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 606 | +var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js"); | |
| 607 | +function _possibleConstructorReturn(self, call) { | |
| 608 | + if (call && (_typeof(call) === "object" || typeof call === "function")) { | |
| 609 | + return call; | |
| 610 | + } else if (call !== void 0) { | |
| 611 | + throw new TypeError("Derived constructors may only return object or undefined"); | |
| 612 | + } | |
| 613 | + return assertThisInitialized(self); | |
| 614 | +} | |
| 615 | +module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 616 | + | |
| 617 | +/***/ }), | |
| 618 | + | |
| 619 | +/***/ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js": | |
| 620 | +/*!****************************************************************!*\ | |
| 621 | + !*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***! | |
| 622 | + \****************************************************************/ | |
| 623 | +/***/ ((module) => { | |
| 624 | + | |
| 625 | +function _setPrototypeOf(o, p) { | |
| 626 | + module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { | |
| 627 | + o.__proto__ = p; | |
| 628 | + return o; | |
| 629 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 630 | + return _setPrototypeOf(o, p); | |
| 631 | +} | |
| 632 | +module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 633 | + | |
| 634 | +/***/ }), | |
| 635 | + | |
| 636 | +/***/ "../node_modules/@babel/runtime/helpers/superPropBase.js": | |
| 637 | +/*!***************************************************************!*\ | |
| 638 | + !*** ../node_modules/@babel/runtime/helpers/superPropBase.js ***! | |
| 639 | + \***************************************************************/ | |
| 640 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 641 | + | |
| 642 | +var getPrototypeOf = __webpack_require__(/*! ./getPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"); | |
| 643 | +function _superPropBase(object, property) { | |
| 644 | + while (!Object.prototype.hasOwnProperty.call(object, property)) { | |
| 645 | + object = getPrototypeOf(object); | |
| 646 | + if (object === null) break; | |
| 647 | + } | |
| 648 | + return object; | |
| 649 | +} | |
| 650 | +module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 651 | + | |
| 652 | +/***/ }), | |
| 653 | + | |
| 654 | +/***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js": | |
| 655 | +/*!*************************************************************!*\ | |
| 656 | + !*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***! | |
| 657 | + \*************************************************************/ | |
| 658 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 659 | + | |
| 660 | +var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 661 | +function toPrimitive(t, r) { | |
| 662 | + if ("object" != _typeof(t) || !t) return t; | |
| 663 | + var e = t[Symbol.toPrimitive]; | |
| 664 | + if (void 0 !== e) { | |
| 665 | + var i = e.call(t, r || "default"); | |
| 666 | + if ("object" != _typeof(i)) return i; | |
| 667 | + throw new TypeError("@@toPrimitive must return a primitive value."); | |
| 668 | + } | |
| 669 | + return ("string" === r ? String : Number)(t); | |
| 670 | +} | |
| 671 | +module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 672 | + | |
| 673 | +/***/ }), | |
| 674 | + | |
| 675 | +/***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js": | |
| 676 | +/*!***************************************************************!*\ | |
| 677 | + !*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***! | |
| 678 | + \***************************************************************/ | |
| 679 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 680 | + | |
| 681 | +var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 682 | +var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js"); | |
| 683 | +function toPropertyKey(t) { | |
| 684 | + var i = toPrimitive(t, "string"); | |
| 685 | + return "symbol" == _typeof(i) ? i : String(i); | |
| 686 | +} | |
| 687 | +module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 688 | + | |
| 689 | +/***/ }), | |
| 690 | + | |
| 691 | +/***/ "../node_modules/@babel/runtime/helpers/typeof.js": | |
| 692 | +/*!********************************************************!*\ | |
| 693 | + !*** ../node_modules/@babel/runtime/helpers/typeof.js ***! | |
| 694 | + \********************************************************/ | |
| 695 | +/***/ ((module) => { | |
| 696 | + | |
| 697 | +function _typeof(o) { | |
| 698 | + "@babel/helpers - typeof"; | |
| 699 | + | |
| 700 | + return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { | |
| 701 | + return typeof o; | |
| 702 | + } : function (o) { | |
| 703 | + return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; | |
| 704 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o); | |
| 705 | +} | |
| 706 | +module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 707 | + | |
| 708 | +/***/ }) | |
| 709 | + | |
| 710 | +/******/ }); | |
| 711 | +/************************************************************************/ | |
| 712 | +/******/ // The module cache | |
| 713 | +/******/ var __webpack_module_cache__ = {}; | |
| 714 | +/******/ | |
| 715 | +/******/ // The require function | |
| 716 | +/******/ function __webpack_require__(moduleId) { | |
| 717 | +/******/ // Check if module is in cache | |
| 718 | +/******/ var cachedModule = __webpack_module_cache__[moduleId]; | |
| 719 | +/******/ if (cachedModule !== undefined) { | |
| 720 | +/******/ return cachedModule.exports; | |
| 721 | +/******/ } | |
| 722 | +/******/ // Create a new module (and put it into the cache) | |
| 723 | +/******/ var module = __webpack_module_cache__[moduleId] = { | |
| 724 | +/******/ // no module.id needed | |
| 725 | +/******/ // no module.loaded needed | |
| 726 | +/******/ exports: {} | |
| 727 | +/******/ }; | |
| 728 | +/******/ | |
| 729 | +/******/ // Execute the module function | |
| 730 | +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); | |
| 731 | +/******/ | |
| 732 | +/******/ // Return the exports of the module | |
| 733 | +/******/ return module.exports; | |
| 734 | +/******/ } | |
| 735 | +/******/ | |
| 736 | +/************************************************************************/ | |
| 737 | +var __webpack_exports__ = {}; | |
| 738 | +// This entry need to be wrapped in an IIFE because it need to be in strict mode. | |
| 739 | +(() => { | |
| 740 | +"use strict"; | |
| 741 | +/*!*************************************************************************!*\ | |
| 742 | + !*** ../assets/dev/js/admin/floating-elements/new-floating-elements.js ***! | |
| 743 | + \*************************************************************************/ | |
| 744 | + | |
| 745 | + | |
| 746 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 747 | +var _layout = _interopRequireDefault(__webpack_require__(/*! elementor-admin/floating-elements/layout */ "../assets/dev/js/admin/floating-elements/layout.js")); | |
| 748 | +var NewFloatingElementsModule = elementorModules.ViewModule.extend({ | |
| 749 | + getDefaultSettings: function getDefaultSettings() { | |
| 750 | + return { | |
| 751 | + selectors: { | |
| 752 | + addButtonTopBar: '.page-title-action', | |
| 753 | + addButtonAdminBar: '#wp-admin-bar-new-e-floating-buttons a', | |
| 754 | + addButtonEmptyTemplate: '#elementor-template-library-add-new' | |
| 755 | + } | |
| 756 | + }; | |
| 757 | + }, | |
| 758 | + getDefaultElements: function getDefaultElements() { | |
| 759 | + var selectors = this.getSettings('selectors'); | |
| 760 | + return { | |
| 761 | + addButtonTopBar: document.querySelector(selectors.addButtonTopBar), | |
| 762 | + addButtonAdminBar: document.querySelector(selectors.addButtonAdminBar), | |
| 763 | + addButtonEmptyTemplate: document.querySelector(selectors.addButtonEmptyTemplate) | |
| 764 | + }; | |
| 765 | + }, | |
| 766 | + bindEvents: function bindEvents() { | |
| 767 | + if (this.elements.addButtonTopBar !== null) { | |
| 768 | + this.elements.addButtonTopBar.addEventListener('click', this.onAddButtonClick); | |
| 769 | + } | |
| 770 | + if (this.elements.addButtonAdminBar !== null) { | |
| 771 | + this.elements.addButtonAdminBar.addEventListener('click', this.onAddButtonClick); | |
| 772 | + } | |
| 773 | + if (this.elements.addButtonEmptyTemplate !== null) { | |
| 774 | + this.elements.addButtonEmptyTemplate.addEventListener('click', this.onAddButtonClick); | |
| 775 | + } | |
| 776 | + }, | |
| 777 | + onInit: function onInit() { | |
| 778 | + elementorModules.ViewModule.prototype.onInit.apply(this, arguments); | |
| 779 | + this.layout = new _layout.default(); | |
| 780 | + }, | |
| 781 | + onAddButtonClick: function onAddButtonClick(event) { | |
| 782 | + event.preventDefault(); | |
| 783 | + this.layout.showModal(); | |
| 784 | + } | |
| 785 | +}); | |
| 786 | +document.addEventListener('DOMContentLoaded', function () { | |
| 787 | + window.elementorNewFloatingElements = new NewFloatingElementsModule(); | |
| 788 | +}); | |
| 789 | +})(); | |
| 790 | + | |
| 791 | +/******/ })() | |
| 792 | +; | |
| 580 | 793 | //# sourceMappingURL=floating-elements-modal.js.map |