/** * Include classes * * * @package Auxin * @author averta (c) 2014-2019 * @link http://averta.net */ if( is_admin() ){ // Assigning capabilities and option on theme install new Auxin_Theme_Screen_Help(); // Register required assets (scripts & styles) new Auxin_Admin_Assets(); // Parse and load fonts Auxin_Fonts::get_instance(); /* Include update notifier /*------------------------------------------*/ if( AUXIN_UPDATE_NOTIFIER && class_exists( 'Auxin_Theme_Check_Update', true ) && ! class_exists( 'Envato_Market', true ) ){ // Init theme auto-update class $theme_update_check = new Auxin_Theme_Check_Update ( THEME_VERSION, // theme version 'http://api.averta.net/envato/items/', // API URL THEME_ID, // template slug name THEME_ID // item request name ); $theme_update_check->theme_id = '3909293'; $theme_update_check->auto_update_enabled = true; new Auxin_Theme_Updater( THEME_ID ); } } // Init Master Menu navigation Auxin_Master_Nav_Menu::get_instance(); /*! elementor - v3.28.0 - 22-04-2025 */ /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "@wordpress/i18n": /*!**************************!*\ !*** external "wp.i18n" ***! \**************************/ /***/ ((module) => { module.exports = wp.i18n; /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ // This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk. (() => { /*!************************************************!*\ !*** ../assets/dev/js/admin/admin-feedback.js ***! \************************************************/ /* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"]; (function ($) { 'use strict'; var ElementorAdminDialogApp = { cacheElements: function cacheElements() { this.cache = { $deactivateLink: $('#the-list').find('[data-slug="elementor"] span.deactivate a'), $dialogHeader: $('#elementor-deactivate-feedback-dialog-header'), $dialogForm: $('#elementor-deactivate-feedback-dialog-form') }; }, bindEvents: function bindEvents() { var self = this; self.cache.$deactivateLink.on('click', function (event) { event.preventDefault(); self.getModal().show(); }); }, deactivate: function deactivate() { location.href = this.cache.$deactivateLink.attr('href'); }, initModal: function initModal() { var self = this, modal; self.getModal = function () { if (!modal) { modal = elementorCommon.dialogsManager.createWidget('lightbox', { id: 'elementor-deactivate-feedback-modal', headerMessage: self.cache.$dialogHeader, message: self.cache.$dialogForm, hide: { onButtonClick: false }, position: { my: 'center', at: 'center' }, onReady: function onReady() { DialogsManager.getWidgetType('lightbox').prototype.onReady.apply(this, arguments); this.addButton({ name: 'submit', text: __('Submit & Deactivate', 'elementor'), callback: self.sendFeedback.bind(self) }); this.addButton({ name: 'skip', text: __('Skip & Deactivate', 'elementor'), callback: function callback() { self.deactivate(); } }); }, onShow: function onShow() { var $dialogModal = $('#elementor-deactivate-feedback-modal'), radioSelector = '.elementor-deactivate-feedback-dialog-input'; $dialogModal.find(radioSelector).on('change', function () { $dialogModal.attr('data-feedback-selected', $(this).val()); }); $dialogModal.find(radioSelector + ':checked').trigger('change'); } }); } return modal; }; }, sendFeedback: function sendFeedback() { var self = this, formData = self.cache.$dialogForm.serialize(); self.getModal().getElements('submit').text('').addClass('elementor-loading'); $.post(ajaxurl, formData, this.deactivate.bind(this)); }, init: function init() { this.initModal(); this.cacheElements(); this.bindEvents(); } }; $(function () { ElementorAdminDialogApp.init(); }); })(jQuery); })(); /******/ })() ; //# sourceMappingURL=admin-feedback.js.map