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