# elementor/4.3.1/assets/js/admin-feedback.js

Elementor Website Builder – more than just a page builder, version 4.3.1. 92 lines.

- Page: https://pluginprobe.com/plugins/elementor/4.3.1/code/assets/js/admin-feedback.js
- Raw: https://pluginprobe.com/plugins/elementor/4.3.1/raw/assets/js/admin-feedback.js
- Modified: 2026-09-01T11:47:36+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/elementor/4.3.1/code/assets/js/admin-feedback.js#L10-L20`.

```javascript
(function(_wordpress_i18n) {

//#region \0rolldown/runtime.js
	var __defProp = Object.defineProperty;
	var __name = (target, value) => __defProp(target, "name", {
		value,
		configurable: true
	});

//#endregion

//#region assets/dev/js/admin/admin-feedback.js
	(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;
				var 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: (0, _wordpress_i18n.__)("Submit & Deactivate", "elementor"),
								callback: self.sendFeedback.bind(self)
							});
							this.addButton({
								name: "skip",
								text: (0, _wordpress_i18n.__)("Skip & Deactivate", "elementor"),
								callback: function callback() {
									self.deactivate();
								}
							});
						},
						onShow: function onShow() {
							var $dialogModal = $("#elementor-deactivate-feedback-modal");
							var 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;
				var 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);

//#endregion
})(wp.i18n);
//# sourceMappingURL=admin-feedback.js.map
```
