| @@ -1,312 +1,472 @@ | ||
| 1 | -(function(_wordpress_i18n) { | |
| 1 | +/*! elementor - v3.26.0 - 19-12-2024 */ | |
| 2 | +/******/ (() => { // webpackBootstrap | |
| 3 | +/******/ var __webpack_modules__ = ({ | |
| 2 | 4 | |
| 3 | -//#region \0rolldown/runtime.js | |
| 4 | - var __defProp = Object.defineProperty; | |
| 5 | - var __name = (target, value) => __defProp(target, "name", { | |
| 6 | - value, | |
| 7 | - configurable: true | |
| 8 | - }); | |
| 5 | +/***/ "../assets/dev/js/admin/beta-tester/layout.js": | |
| 6 | +/*!****************************************************!*\ | |
| 7 | + !*** ../assets/dev/js/admin/beta-tester/layout.js ***! | |
| 8 | + \****************************************************/ | |
| 9 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 9 | 10 | |
| 10 | -//#endregion | |
| 11 | +"use strict"; | |
| 12 | +/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; | |
| 11 | 13 | |
| 12 | -//#region node_modules/@babel/runtime/helpers/esm/classCallCheck.js | |
| 13 | - function _classCallCheck(a, n) { | |
| 14 | - if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); | |
| 15 | - } | |
| 16 | 14 | |
| 17 | -//#endregion | |
| 18 | -//#region node_modules/@babel/runtime/helpers/esm/typeof.js | |
| 19 | - function _typeof(o) { | |
| 20 | - "@babel/helpers - typeof"; | |
| 21 | - return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) { | |
| 22 | - return typeof o; | |
| 23 | - } : function(o) { | |
| 24 | - return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; | |
| 25 | - }, _typeof(o); | |
| 26 | - } | |
| 15 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 16 | +Object.defineProperty(exports, "__esModule", ({ | |
| 17 | + value: true | |
| 18 | +})); | |
| 19 | +exports["default"] = void 0; | |
| 20 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 21 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 22 | +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 23 | +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 24 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 25 | +var _view = _interopRequireDefault(__webpack_require__(/*! ./view */ "../assets/dev/js/admin/beta-tester/view.js")); | |
| 26 | +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)); } | |
| 27 | +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 28 | +var BetaTesterLayout = exports["default"] = /*#__PURE__*/function (_elementorModules$com) { | |
| 29 | + function BetaTesterLayout() { | |
| 30 | + (0, _classCallCheck2.default)(this, BetaTesterLayout); | |
| 31 | + return _callSuper(this, BetaTesterLayout, arguments); | |
| 32 | + } | |
| 33 | + (0, _inherits2.default)(BetaTesterLayout, _elementorModules$com); | |
| 34 | + return (0, _createClass2.default)(BetaTesterLayout, [{ | |
| 35 | + key: "ui", | |
| 36 | + value: function ui() { | |
| 37 | + return { | |
| 38 | + closeModal: '.elementor-templates-modal__header__close', | |
| 39 | + dontShowAgain: '.elementor-beta-tester-do-not-show-again' | |
| 40 | + }; | |
| 41 | + } | |
| 42 | + }, { | |
| 43 | + key: "events", | |
| 44 | + value: function events() { | |
| 45 | + return { | |
| 46 | + 'click @ui.closeModal': this.onCloseModalClick, | |
| 47 | + 'click @ui.dontShowAgain': this.onDontShowAgainClick | |
| 48 | + }; | |
| 49 | + } | |
| 50 | + }, { | |
| 51 | + key: "getModalOptions", | |
| 52 | + value: function getModalOptions() { | |
| 53 | + return { | |
| 54 | + id: 'elementor-beta-tester-modal', | |
| 55 | + hide: { | |
| 56 | + onBackgroundClick: false | |
| 57 | + } | |
| 58 | + }; | |
| 59 | + } | |
| 60 | + }, { | |
| 61 | + key: "getLogoOptions", | |
| 62 | + value: function getLogoOptions() { | |
| 63 | + return { | |
| 64 | + title: __('Sign Up', 'elementor') | |
| 65 | + }; | |
| 66 | + } | |
| 67 | + }, { | |
| 68 | + key: "initialize", | |
| 69 | + value: function initialize() { | |
| 70 | + elementorModules.common.views.modal.Layout.prototype.initialize.apply(this, arguments); | |
| 71 | + this.showLogo(); | |
| 72 | + this.showContentView(); | |
| 73 | + var doNotShowAgain = __('Don\'t Show Again', 'elementor'); | |
| 74 | + this.modalHeader.currentView.ui.closeModal.after(jQuery('<div>', { | |
| 75 | + class: 'elementor-beta-tester-do-not-show-again' | |
| 76 | + }).text(doNotShowAgain)); | |
| 77 | + } | |
| 78 | + }, { | |
| 79 | + key: "showContentView", | |
| 80 | + value: function showContentView() { | |
| 81 | + this.modalContent.show(new _view.default()); | |
| 82 | + } | |
| 83 | + }, { | |
| 84 | + key: "onDontShowAgainClick", | |
| 85 | + value: function onDontShowAgainClick() { | |
| 86 | + this.hideModal(); | |
| 87 | + this.onCloseModalClick(); | |
| 88 | + } | |
| 89 | + }, { | |
| 90 | + key: "onCloseModalClick", | |
| 91 | + value: function onCloseModalClick() { | |
| 92 | + elementorCommon.ajax.addRequest('introduction_viewed', { | |
| 93 | + data: { | |
| 94 | + introductionKey: elementorAdmin.config.beta_tester.beta_tester_signup | |
| 95 | + } | |
| 96 | + }); | |
| 97 | + } | |
| 98 | + }]); | |
| 99 | +}(elementorModules.common.views.modal.Layout); | |
| 27 | 100 | |
| 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 | - } | |
| 101 | +/***/ }), | |
| 40 | 102 | |
| 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 | - } | |
| 103 | +/***/ "../assets/dev/js/admin/beta-tester/view.js": | |
| 104 | +/*!**************************************************!*\ | |
| 105 | + !*** ../assets/dev/js/admin/beta-tester/view.js ***! | |
| 106 | + \**************************************************/ | |
| 107 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 47 | 108 | |
| 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 | - } | |
| 109 | +"use strict"; | |
| 59 | 110 | |
| 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 | 111 | |
| 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 | - } | |
| 112 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 113 | +Object.defineProperty(exports, "__esModule", ({ | |
| 114 | + value: true | |
| 115 | +})); | |
| 116 | +exports["default"] = void 0; | |
| 117 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 118 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 119 | +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 120 | +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 121 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 122 | +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)); } | |
| 123 | +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 124 | +var BetaTesterView = exports["default"] = /*#__PURE__*/function (_Marionette$ItemView) { | |
| 125 | + function BetaTesterView() { | |
| 126 | + var _this; | |
| 127 | + (0, _classCallCheck2.default)(this, BetaTesterView); | |
| 128 | + _this = _callSuper(this, BetaTesterView); | |
| 129 | + _this.id = 'elementor-beta-tester-dialog-content'; | |
| 130 | + _this.template = '#tmpl-elementor-beta-tester'; | |
| 131 | + return _this; | |
| 132 | + } | |
| 133 | + (0, _inherits2.default)(BetaTesterView, _Marionette$ItemView); | |
| 134 | + return (0, _createClass2.default)(BetaTesterView, [{ | |
| 135 | + key: "ui", | |
| 136 | + value: function ui() { | |
| 137 | + return { | |
| 138 | + betaForm: '#elementor-beta-tester-form', | |
| 139 | + betaEmail: '#elementor-beta-tester-form__email', | |
| 140 | + betaButton: '#elementor-beta-tester-form__submit' | |
| 141 | + }; | |
| 142 | + } | |
| 143 | + }, { | |
| 144 | + key: "events", | |
| 145 | + value: function events() { | |
| 146 | + return { | |
| 147 | + 'submit @ui.betaForm': 'onBetaFormSubmit' | |
| 148 | + }; | |
| 149 | + } | |
| 150 | + }, { | |
| 151 | + key: "onBetaFormSubmit", | |
| 152 | + value: function onBetaFormSubmit(event) { | |
| 153 | + event.preventDefault(); | |
| 154 | + var email = this.ui.betaEmail.val(); | |
| 155 | + this.ui.betaButton.addClass('elementor-button-state'); | |
| 156 | + elementorCommon.ajax.addRequest('beta_tester_signup', { | |
| 157 | + data: { | |
| 158 | + betaTesterEmail: email | |
| 159 | + } | |
| 160 | + // Do not wait for response. | |
| 161 | + }); | |
| 162 | + elementorBetaTester.layout.hideModal(); | |
| 163 | + } | |
| 164 | + }, { | |
| 165 | + key: "onRender", | |
| 166 | + value: function onRender() {} | |
| 167 | + }]); | |
| 168 | +}(Marionette.ItemView); | |
| 74 | 169 | |
| 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 | - } | |
| 170 | +/***/ }), | |
| 82 | 171 | |
| 83 | -//#endregion | |
| 84 | -//#region node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js | |
| 85 | - function _setPrototypeOf(t, e) { | |
| 86 | - return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) { | |
| 87 | - return t.__proto__ = e, t; | |
| 88 | - }, _setPrototypeOf(t, e); | |
| 89 | - } | |
| 172 | +/***/ "@wordpress/i18n": | |
| 173 | +/*!**************************!*\ | |
| 174 | + !*** external "wp.i18n" ***! | |
| 175 | + \**************************/ | |
| 176 | +/***/ ((module) => { | |
| 90 | 177 | |
| 91 | -//#endregion | |
| 92 | -//#region node_modules/@babel/runtime/helpers/esm/inherits.js | |
| 93 | - function _inherits(t, e) { | |
| 94 | - if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); | |
| 95 | - t.prototype = Object.create(e && e.prototype, { constructor: { | |
| 96 | - value: t, | |
| 97 | - writable: !0, | |
| 98 | - configurable: !0 | |
| 99 | - } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); | |
| 100 | - } | |
| 178 | +"use strict"; | |
| 179 | +module.exports = wp.i18n; | |
| 101 | 180 | |
| 102 | -//#endregion | |
| 103 | -//#region assets/dev/js/admin/beta-tester/view.js | |
| 104 | - function _callSuper$2(t, o, e) { | |
| 105 | - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$2() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); | |
| 106 | - } | |
| 107 | - __name(_callSuper$2, "_callSuper"); | |
| 108 | - function _isNativeReflectConstruct$2() { | |
| 109 | - try { | |
| 110 | - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})); | |
| 111 | - } catch (t) {} | |
| 112 | - return (_isNativeReflectConstruct$2 = function _isNativeReflectConstruct() { | |
| 113 | - return !!t; | |
| 114 | - })(); | |
| 115 | - } | |
| 116 | - __name(_isNativeReflectConstruct$2, "_isNativeReflectConstruct"); | |
| 117 | - var BetaTesterView = /*#__PURE__*/ function(_Marionette$ItemView) { | |
| 118 | - function BetaTesterView() { | |
| 119 | - var _this; | |
| 120 | - _classCallCheck(this, BetaTesterView); | |
| 121 | - _this = _callSuper$2(this, BetaTesterView); | |
| 122 | - _this.id = "elementor-beta-tester-dialog-content"; | |
| 123 | - _this.template = "#tmpl-elementor-beta-tester"; | |
| 124 | - return _this; | |
| 125 | - } | |
| 126 | - _inherits(BetaTesterView, _Marionette$ItemView); | |
| 127 | - return _createClass(BetaTesterView, [ | |
| 128 | - { | |
| 129 | - key: "ui", | |
| 130 | - value: function ui() { | |
| 131 | - return { | |
| 132 | - betaForm: "#elementor-beta-tester-form", | |
| 133 | - betaEmail: "#elementor-beta-tester-form__email", | |
| 134 | - betaButton: "#elementor-beta-tester-form__submit" | |
| 135 | - }; | |
| 136 | - } | |
| 137 | - }, | |
| 138 | - { | |
| 139 | - key: "events", | |
| 140 | - value: function events() { | |
| 141 | - return { "submit @ui.betaForm": "onBetaFormSubmit" }; | |
| 142 | - } | |
| 143 | - }, | |
| 144 | - { | |
| 145 | - key: "onBetaFormSubmit", | |
| 146 | - value: function onBetaFormSubmit(event) { | |
| 147 | - event.preventDefault(); | |
| 148 | - var email = this.ui.betaEmail.val(); | |
| 149 | - this.ui.betaButton.addClass("elementor-button-state"); | |
| 150 | - elementorCommon.ajax.addRequest("beta_tester_signup", { data: { betaTesterEmail: email } }); | |
| 151 | - elementorBetaTester.layout.hideModal(); | |
| 152 | - } | |
| 153 | - }, | |
| 154 | - { | |
| 155 | - key: "onRender", | |
| 156 | - value: function onRender() {} | |
| 157 | - } | |
| 158 | - ]); | |
| 159 | - }(Marionette.ItemView); | |
| 181 | +/***/ }), | |
| 160 | 182 | |
| 161 | -//#endregion | |
| 162 | -//#region assets/dev/js/admin/beta-tester/layout.js | |
| 163 | - function _callSuper$1(t, o, e) { | |
| 164 | - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$1() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); | |
| 165 | - } | |
| 166 | - __name(_callSuper$1, "_callSuper"); | |
| 167 | - function _isNativeReflectConstruct$1() { | |
| 168 | - try { | |
| 169 | - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})); | |
| 170 | - } catch (t) {} | |
| 171 | - return (_isNativeReflectConstruct$1 = function _isNativeReflectConstruct() { | |
| 172 | - return !!t; | |
| 173 | - })(); | |
| 174 | - } | |
| 175 | - __name(_isNativeReflectConstruct$1, "_isNativeReflectConstruct"); | |
| 176 | - var BetaTesterLayout = /*#__PURE__*/ function(_elementorModules$com) { | |
| 177 | - function BetaTesterLayout() { | |
| 178 | - _classCallCheck(this, BetaTesterLayout); | |
| 179 | - return _callSuper$1(this, BetaTesterLayout, arguments); | |
| 180 | - } | |
| 181 | - _inherits(BetaTesterLayout, _elementorModules$com); | |
| 182 | - return _createClass(BetaTesterLayout, [ | |
| 183 | - { | |
| 184 | - key: "ui", | |
| 185 | - value: function ui() { | |
| 186 | - return { | |
| 187 | - closeModal: ".elementor-templates-modal__header__close", | |
| 188 | - dontShowAgain: ".elementor-beta-tester-do-not-show-again" | |
| 189 | - }; | |
| 190 | - } | |
| 191 | - }, | |
| 192 | - { | |
| 193 | - key: "events", | |
| 194 | - value: function events() { | |
| 195 | - return { | |
| 196 | - "click @ui.closeModal": this.onCloseModalClick, | |
| 197 | - "click @ui.dontShowAgain": this.onDontShowAgainClick | |
| 198 | - }; | |
| 199 | - } | |
| 200 | - }, | |
| 201 | - { | |
| 202 | - key: "getModalOptions", | |
| 203 | - value: function getModalOptions() { | |
| 204 | - return { | |
| 205 | - id: "elementor-beta-tester-modal", | |
| 206 | - hide: { onBackgroundClick: false } | |
| 207 | - }; | |
| 208 | - } | |
| 209 | - }, | |
| 210 | - { | |
| 211 | - key: "getLogoOptions", | |
| 212 | - value: function getLogoOptions() { | |
| 213 | - return { title: (0, _wordpress_i18n.__)("Sign Up", "elementor") }; | |
| 214 | - } | |
| 215 | - }, | |
| 216 | - { | |
| 217 | - key: "initialize", | |
| 218 | - value: function initialize() { | |
| 219 | - elementorModules.common.views.modal.Layout.prototype.initialize.apply(this, arguments); | |
| 220 | - this.showLogo(); | |
| 221 | - this.showContentView(); | |
| 222 | - var doNotShowAgain = (0, _wordpress_i18n.__)("Don't Show Again", "elementor"); | |
| 223 | - this.modalHeader.currentView.ui.closeModal.after(jQuery("<div>", { class: "elementor-beta-tester-do-not-show-again" }).text(doNotShowAgain)); | |
| 224 | - } | |
| 225 | - }, | |
| 226 | - { | |
| 227 | - key: "showContentView", | |
| 228 | - value: function showContentView() { | |
| 229 | - this.modalContent.show(new BetaTesterView()); | |
| 230 | - } | |
| 231 | - }, | |
| 232 | - { | |
| 233 | - key: "onDontShowAgainClick", | |
| 234 | - value: function onDontShowAgainClick() { | |
| 235 | - this.hideModal(); | |
| 236 | - this.onCloseModalClick(); | |
| 237 | - } | |
| 238 | - }, | |
| 239 | - { | |
| 240 | - key: "onCloseModalClick", | |
| 241 | - value: function onCloseModalClick() { | |
| 242 | - elementorCommon.ajax.addRequest("introduction_viewed", { data: { introductionKey: elementorAdmin.config.beta_tester.beta_tester_signup } }); | |
| 243 | - } | |
| 244 | - } | |
| 245 | - ]); | |
| 246 | - }(elementorModules.common.views.modal.Layout); | |
| 183 | +/***/ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js": | |
| 184 | +/*!***********************************************************************!*\ | |
| 185 | + !*** ../node_modules/@babel/runtime/helpers/assertThisInitialized.js ***! | |
| 186 | + \***********************************************************************/ | |
| 187 | +/***/ ((module) => { | |
| 247 | 188 | |
| 248 | -//#endregion | |
| 249 | -//#region assets/dev/js/admin/beta-tester/beta-tester.js | |
| 250 | - function _callSuper(t, o, e) { | |
| 251 | - return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); | |
| 252 | - } | |
| 253 | - function _isNativeReflectConstruct() { | |
| 254 | - try { | |
| 255 | - var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})); | |
| 256 | - } catch (t) {} | |
| 257 | - return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { | |
| 258 | - return !!t; | |
| 259 | - })(); | |
| 260 | - } | |
| 261 | - var BetaTesterModule = /*#__PURE__*/ function(_elementorModules$Vie) { | |
| 262 | - function BetaTesterModule() { | |
| 263 | - _classCallCheck(this, BetaTesterModule); | |
| 264 | - return _callSuper(this, BetaTesterModule, arguments); | |
| 265 | - } | |
| 266 | - _inherits(BetaTesterModule, _elementorModules$Vie); | |
| 267 | - return _createClass(BetaTesterModule, [ | |
| 268 | - { | |
| 269 | - key: "onInit", | |
| 270 | - value: function onInit() { | |
| 271 | - elementorModules.ViewModule.prototype.onInit.apply(this, arguments); | |
| 272 | - this.showLayout(false); | |
| 273 | - } | |
| 274 | - }, | |
| 275 | - { | |
| 276 | - key: "showLayout", | |
| 277 | - value: function showLayout() { | |
| 278 | - if (!(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : true) && (!elementorAdmin.config.beta_tester.option_enabled || elementorAdmin.config.beta_tester.signup_dismissed || "#tab-fontawesome4_migration" === location.hash)) return; | |
| 279 | - this.layout = new BetaTesterLayout(); | |
| 280 | - this.layout.showModal(); | |
| 281 | - } | |
| 282 | - }, | |
| 283 | - { | |
| 284 | - key: "getDefaultSettings", | |
| 285 | - value: function getDefaultSettings() { | |
| 286 | - return { selectors: { betaTesterFirstToKnow: "#beta-tester-first-to-know" } }; | |
| 287 | - } | |
| 288 | - }, | |
| 289 | - { | |
| 290 | - key: "getDefaultElements", | |
| 291 | - value: function getDefaultElements() { | |
| 292 | - var elements = {}; | |
| 293 | - var selectors = this.getSettings("selectors"); | |
| 294 | - elements.$betaTesterFirstToKnow = jQuery(selectors.betaTesterFirstToKnow); | |
| 295 | - return elements; | |
| 296 | - } | |
| 297 | - }, | |
| 298 | - { | |
| 299 | - key: "bindEvents", | |
| 300 | - value: function bindEvents() { | |
| 301 | - this.elements.$betaTesterFirstToKnow.on("click", this.showLayout.bind(this)); | |
| 302 | - } | |
| 303 | - } | |
| 304 | - ]); | |
| 305 | - }(elementorModules.ViewModule); | |
| 306 | - jQuery(function() { | |
| 307 | - window.elementorBetaTester = new BetaTesterModule(); | |
| 308 | - }); | |
| 189 | +function _assertThisInitialized(e) { | |
| 190 | + if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
| 191 | + return e; | |
| 192 | +} | |
| 193 | +module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 309 | 194 | |
| 310 | -//#endregion | |
| 311 | -})(wp.i18n); | |
| 195 | +/***/ }), | |
| 196 | + | |
| 197 | +/***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js": | |
| 198 | +/*!****************************************************************!*\ | |
| 199 | + !*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***! | |
| 200 | + \****************************************************************/ | |
| 201 | +/***/ ((module) => { | |
| 202 | + | |
| 203 | +function _classCallCheck(a, n) { | |
| 204 | + if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); | |
| 205 | +} | |
| 206 | +module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 207 | + | |
| 208 | +/***/ }), | |
| 209 | + | |
| 210 | +/***/ "../node_modules/@babel/runtime/helpers/createClass.js": | |
| 211 | +/*!*************************************************************!*\ | |
| 212 | + !*** ../node_modules/@babel/runtime/helpers/createClass.js ***! | |
| 213 | + \*************************************************************/ | |
| 214 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 215 | + | |
| 216 | +var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); | |
| 217 | +function _defineProperties(e, r) { | |
| 218 | + for (var t = 0; t < r.length; t++) { | |
| 219 | + var o = r[t]; | |
| 220 | + o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o); | |
| 221 | + } | |
| 222 | +} | |
| 223 | +function _createClass(e, r, t) { | |
| 224 | + return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { | |
| 225 | + writable: !1 | |
| 226 | + }), e; | |
| 227 | +} | |
| 228 | +module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 229 | + | |
| 230 | +/***/ }), | |
| 231 | + | |
| 232 | +/***/ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js": | |
| 233 | +/*!****************************************************************!*\ | |
| 234 | + !*** ../node_modules/@babel/runtime/helpers/getPrototypeOf.js ***! | |
| 235 | + \****************************************************************/ | |
| 236 | +/***/ ((module) => { | |
| 237 | + | |
| 238 | +function _getPrototypeOf(t) { | |
| 239 | + return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { | |
| 240 | + return t.__proto__ || Object.getPrototypeOf(t); | |
| 241 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports, _getPrototypeOf(t); | |
| 242 | +} | |
| 243 | +module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 244 | + | |
| 245 | +/***/ }), | |
| 246 | + | |
| 247 | +/***/ "../node_modules/@babel/runtime/helpers/inherits.js": | |
| 248 | +/*!**********************************************************!*\ | |
| 249 | + !*** ../node_modules/@babel/runtime/helpers/inherits.js ***! | |
| 250 | + \**********************************************************/ | |
| 251 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 252 | + | |
| 253 | +var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js"); | |
| 254 | +function _inherits(t, e) { | |
| 255 | + if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); | |
| 256 | + t.prototype = Object.create(e && e.prototype, { | |
| 257 | + constructor: { | |
| 258 | + value: t, | |
| 259 | + writable: !0, | |
| 260 | + configurable: !0 | |
| 261 | + } | |
| 262 | + }), Object.defineProperty(t, "prototype", { | |
| 263 | + writable: !1 | |
| 264 | + }), e && setPrototypeOf(t, e); | |
| 265 | +} | |
| 266 | +module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 267 | + | |
| 268 | +/***/ }), | |
| 269 | + | |
| 270 | +/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js": | |
| 271 | +/*!***********************************************************************!*\ | |
| 272 | + !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***! | |
| 273 | + \***********************************************************************/ | |
| 274 | +/***/ ((module) => { | |
| 275 | + | |
| 276 | +function _interopRequireDefault(e) { | |
| 277 | + return e && e.__esModule ? e : { | |
| 278 | + "default": e | |
| 279 | + }; | |
| 280 | +} | |
| 281 | +module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 282 | + | |
| 283 | +/***/ }), | |
| 284 | + | |
| 285 | +/***/ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js": | |
| 286 | +/*!***************************************************************************!*\ | |
| 287 | + !*** ../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***! | |
| 288 | + \***************************************************************************/ | |
| 289 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 290 | + | |
| 291 | +var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 292 | +var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js"); | |
| 293 | +function _possibleConstructorReturn(t, e) { | |
| 294 | + if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; | |
| 295 | + if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); | |
| 296 | + return assertThisInitialized(t); | |
| 297 | +} | |
| 298 | +module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 299 | + | |
| 300 | +/***/ }), | |
| 301 | + | |
| 302 | +/***/ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js": | |
| 303 | +/*!****************************************************************!*\ | |
| 304 | + !*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***! | |
| 305 | + \****************************************************************/ | |
| 306 | +/***/ ((module) => { | |
| 307 | + | |
| 308 | +function _setPrototypeOf(t, e) { | |
| 309 | + return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { | |
| 310 | + return t.__proto__ = e, t; | |
| 311 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports, _setPrototypeOf(t, e); | |
| 312 | +} | |
| 313 | +module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 314 | + | |
| 315 | +/***/ }), | |
| 316 | + | |
| 317 | +/***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js": | |
| 318 | +/*!*************************************************************!*\ | |
| 319 | + !*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***! | |
| 320 | + \*************************************************************/ | |
| 321 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 322 | + | |
| 323 | +var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 324 | +function toPrimitive(t, r) { | |
| 325 | + if ("object" != _typeof(t) || !t) return t; | |
| 326 | + var e = t[Symbol.toPrimitive]; | |
| 327 | + if (void 0 !== e) { | |
| 328 | + var i = e.call(t, r || "default"); | |
| 329 | + if ("object" != _typeof(i)) return i; | |
| 330 | + throw new TypeError("@@toPrimitive must return a primitive value."); | |
| 331 | + } | |
| 332 | + return ("string" === r ? String : Number)(t); | |
| 333 | +} | |
| 334 | +module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 335 | + | |
| 336 | +/***/ }), | |
| 337 | + | |
| 338 | +/***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js": | |
| 339 | +/*!***************************************************************!*\ | |
| 340 | + !*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***! | |
| 341 | + \***************************************************************/ | |
| 342 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 343 | + | |
| 344 | +var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 345 | +var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js"); | |
| 346 | +function toPropertyKey(t) { | |
| 347 | + var i = toPrimitive(t, "string"); | |
| 348 | + return "symbol" == _typeof(i) ? i : i + ""; | |
| 349 | +} | |
| 350 | +module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 351 | + | |
| 352 | +/***/ }), | |
| 353 | + | |
| 354 | +/***/ "../node_modules/@babel/runtime/helpers/typeof.js": | |
| 355 | +/*!********************************************************!*\ | |
| 356 | + !*** ../node_modules/@babel/runtime/helpers/typeof.js ***! | |
| 357 | + \********************************************************/ | |
| 358 | +/***/ ((module) => { | |
| 359 | + | |
| 360 | +function _typeof(o) { | |
| 361 | + "@babel/helpers - typeof"; | |
| 362 | + | |
| 363 | + return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { | |
| 364 | + return typeof o; | |
| 365 | + } : function (o) { | |
| 366 | + return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; | |
| 367 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o); | |
| 368 | +} | |
| 369 | +module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 370 | + | |
| 371 | +/***/ }) | |
| 372 | + | |
| 373 | +/******/ }); | |
| 374 | +/************************************************************************/ | |
| 375 | +/******/ // The module cache | |
| 376 | +/******/ var __webpack_module_cache__ = {}; | |
| 377 | +/******/ | |
| 378 | +/******/ // The require function | |
| 379 | +/******/ function __webpack_require__(moduleId) { | |
| 380 | +/******/ // Check if module is in cache | |
| 381 | +/******/ var cachedModule = __webpack_module_cache__[moduleId]; | |
| 382 | +/******/ if (cachedModule !== undefined) { | |
| 383 | +/******/ return cachedModule.exports; | |
| 384 | +/******/ } | |
| 385 | +/******/ // Create a new module (and put it into the cache) | |
| 386 | +/******/ var module = __webpack_module_cache__[moduleId] = { | |
| 387 | +/******/ // no module.id needed | |
| 388 | +/******/ // no module.loaded needed | |
| 389 | +/******/ exports: {} | |
| 390 | +/******/ }; | |
| 391 | +/******/ | |
| 392 | +/******/ // Execute the module function | |
| 393 | +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); | |
| 394 | +/******/ | |
| 395 | +/******/ // Return the exports of the module | |
| 396 | +/******/ return module.exports; | |
| 397 | +/******/ } | |
| 398 | +/******/ | |
| 399 | +/************************************************************************/ | |
| 400 | +var __webpack_exports__ = {}; | |
| 401 | +// This entry need to be wrapped in an IIFE because it need to be in strict mode. | |
| 402 | +(() => { | |
| 403 | +"use strict"; | |
| 404 | +/*!*********************************************************!*\ | |
| 405 | + !*** ../assets/dev/js/admin/beta-tester/beta-tester.js ***! | |
| 406 | + \*********************************************************/ | |
| 407 | + | |
| 408 | + | |
| 409 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 410 | +var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js")); | |
| 411 | +var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js")); | |
| 412 | +var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js")); | |
| 413 | +var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js")); | |
| 414 | +var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js")); | |
| 415 | +var _layout = _interopRequireDefault(__webpack_require__(/*! ./layout */ "../assets/dev/js/admin/beta-tester/layout.js")); | |
| 416 | +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)); } | |
| 417 | +function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | |
| 418 | +var BetaTesterModule = /*#__PURE__*/function (_elementorModules$Vie) { | |
| 419 | + function BetaTesterModule() { | |
| 420 | + (0, _classCallCheck2.default)(this, BetaTesterModule); | |
| 421 | + return _callSuper(this, BetaTesterModule, arguments); | |
| 422 | + } | |
| 423 | + (0, _inherits2.default)(BetaTesterModule, _elementorModules$Vie); | |
| 424 | + return (0, _createClass2.default)(BetaTesterModule, [{ | |
| 425 | + key: "onInit", | |
| 426 | + value: function onInit() { | |
| 427 | + elementorModules.ViewModule.prototype.onInit.apply(this, arguments); | |
| 428 | + this.showLayout(false); | |
| 429 | + } | |
| 430 | + }, { | |
| 431 | + key: "showLayout", | |
| 432 | + value: function showLayout() { | |
| 433 | + var always = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; | |
| 434 | + if (!always && (!elementorAdmin.config.beta_tester.option_enabled || elementorAdmin.config.beta_tester.signup_dismissed || '#tab-fontawesome4_migration' === location.hash)) { | |
| 435 | + return; | |
| 436 | + } | |
| 437 | + this.layout = new _layout.default(); | |
| 438 | + this.layout.showModal(); | |
| 439 | + } | |
| 440 | + }, { | |
| 441 | + key: "getDefaultSettings", | |
| 442 | + value: function getDefaultSettings() { | |
| 443 | + return { | |
| 444 | + selectors: { | |
| 445 | + betaTesterFirstToKnow: '#beta-tester-first-to-know' | |
| 446 | + } | |
| 447 | + }; | |
| 448 | + } | |
| 449 | + }, { | |
| 450 | + key: "getDefaultElements", | |
| 451 | + value: function getDefaultElements() { | |
| 452 | + var elements = {}; | |
| 453 | + var selectors = this.getSettings('selectors'); | |
| 454 | + elements.$betaTesterFirstToKnow = jQuery(selectors.betaTesterFirstToKnow); | |
| 455 | + return elements; | |
| 456 | + } | |
| 457 | + }, { | |
| 458 | + key: "bindEvents", | |
| 459 | + value: function bindEvents() { | |
| 460 | + var elements = this.elements; | |
| 461 | + elements.$betaTesterFirstToKnow.on('click', this.showLayout.bind(this)); | |
| 462 | + } | |
| 463 | + }]); | |
| 464 | +}(elementorModules.ViewModule); | |
| 465 | +jQuery(function () { | |
| 466 | + window.elementorBetaTester = new BetaTesterModule(); | |
| 467 | +}); | |
| 468 | +})(); | |
| 469 | + | |
| 470 | +/******/ })() | |
| 471 | +; | |
| 312 | 472 | //# sourceMappingURL=beta-tester.js.map |