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