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