GRAYBYTE WORDPRESS FILE MANAGER9232

Server IP : 162.213.255.40 / Your IP : 216.73.216.6
System : Linux server146.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
PHP Version : 8.0.30
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF

HOME

/home/hellrfbn/public_html/wp-content/plugins/optinmonster/assets/js/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/hellrfbn/public_html/wp-content/plugins/optinmonster/assets/js//elementor.js
/* ==========================================================
 * elementor.js
 * ==========================================================
 * Copyright 2021 Awesome Motive.
 * https://awesomemotive.com
 * ========================================================== */

// Lazy-loading to get around https://github.com/elementor/elementor/issues/19709
const getCampaignSelector = () => import('./Elementor/CampaignSelector');

window.OMAPI_Elementor = window.OMAPI_Elementor || {};
window.OMAPI_Elementor.instances = window.OMAPI_Elementor.instances || [];

(function (window, document, $, app) {
	/**
	 * Tells the campaign being initiated that it is in preview mode (form will not work).
	 *
	 * @since  2.2.0
	 *
	 * @param  {Object} evt Event
	 *
	 * @returns {void}
	 */
	app.setAsPreview = (evt) => {
		// Disable form fields if called from the Gutenberg editor.
		evt.detail.Campaign.preview = true;
	};

	/**
	 * Triggers a load event for backbone models to listen to.
	 *
	 * @since  2.2.0
	 *
	 * @param  {Object} evt Event
	 *
	 * @returns {void}
	 */
	app.triggerLoaded = (evt) => {
		const { id } = evt.detail.Campaign;

		app.instances.forEach((instance) => {
			instance.trigger(instance.campaignSlug() === id ? 'campaignLoaded' : 'otherCampaignLoaded');
		});
	};

	/**
	 * Handles outputting api.js render errors in the block when necessary.
	 *
	 * @since  2.2.0
	 *
	 * @param  {[type]} evt [description]
	 *
	 * @returns {[type]}     [description]
	 */
	app.triggerError = (evt) => {
		let { Campaign, Main, error } = evt.detail;

		const id = Main ? Main.defaults.campaign : Campaign ? Campaign.id : '';
		if (!id) {
			return;
		}

		const instance = app.instances.find((i) => i.campaignSlug() === id);
		if (!instance) {
			return;
		}

		if (error.response) {
			error = JSON.parse(error.response).message || JSON.parse(error.response).error;
		}

		instance.trigger('campaignError', error);
	};

	/**
	 * Triggers events for backbone models whenever a campaign is removed.
	 *
	 * @since  2.2.0
	 *
	 * @param  {Object} evt Event
	 *
	 * @returns {void}
	 */
	app.triggerRemove = (evt) => {
		const { id } = evt.detail;

		app.instances.forEach((instance) => {
			if (instance.campaignSlug() !== id) {
				instance.trigger('otherCampaignRemoved', id);
			}
		});
	};

	app.init = function () {
		// Disable form fields
		document.addEventListener('om.Campaign.init', app.setAsPreview);

		// Store the API utils.
		document.addEventListener('om.Main.init', ({ detail }) => (app.utils = detail._utils));

		// Disable all non-inline campaigns from Elementor preview.
		document.addEventListener('om.WebFonts.init', function (evt) {
			var campaign = evt.detail.Campaign;
			if (!campaign.Types.isInline()) {
				campaign.off();
			}
		});

		$(window).on('elementor/frontend/init', function () {
			// Widget buttons click.
			elementor.channels.editor.on('elementorOMAPIAddInlineBtnClick', () =>
				window.open(OMAPI.templatesUri + '&type=inline')
			);
			elementor.channels.editor.on('elementorOMAPICreateAccount', () => window.open(OMAPI.wizardUri));
			elementor.channels.editor.on('elementorOMAPIConnectAccount', () => window.open(OMAPI.settingsUri));

			document.addEventListener('om.Campaign.afterShow', app.triggerLoaded);
			document.addEventListener('om.Main.getCampaigns.error', app.triggerError);
			document.addEventListener('om.Campaign.show.error', app.triggerError);
			document.addEventListener('om.Campaign.load.error', app.triggerError);
			document.addEventListener('om.Plugin.Elementor.Instance.removed', app.triggerRemove);

			// Check for new style of handler attachment.
			// https://developers.elementor.com/a-new-method-for-attaching-a-js-handler-to-an-element/
			if (elementorFrontend.elementsHandler && elementorFrontend.elementsHandler.attachHandler) {
				getCampaignSelector().then((CampaignSelector) => {
					elementorFrontend.elementsHandler.attachHandler('optinmonster', CampaignSelector.default);
				});
			} else {
				// Fallback to previous method.
				elementorFrontend.hooks.addAction('frontend/element_ready/optinmonster.default', ($element) => {
					getCampaignSelector().then((CampaignSelector) => {
						elementorFrontend.elementsHandler.addHandler(CampaignSelector.default, { $element });
					});
				});
			}
		});
	};

	app.init();
})(window, document, jQuery, window.OMAPI_Elementor);

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 23 2025 07:38:29
hellrfbn / hellrfbn
0755
Elementor
--
July 23 2025 07:38:29
hellrfbn / hellrfbn
0755
Utils
--
July 23 2025 07:38:29
hellrfbn / hellrfbn
0755
.htaccess
0.41 KB
July 23 2025 07:38:29
hellrfbn / hellrfbn
0644
admin.js
1.085 KB
February 05 2025 15:45:15
hellrfbn / hellrfbn
0644
block.json
0.465 KB
February 05 2025 15:45:15
hellrfbn / hellrfbn
0644
editor.js
11.134 KB
February 05 2025 15:45:15
hellrfbn / hellrfbn
0644
elementor.js
4.265 KB
February 05 2025 15:45:15
hellrfbn / hellrfbn
0644
global.js
1.86 KB
February 05 2025 15:45:15
hellrfbn / hellrfbn
0644
helper.js
4.354 KB
February 05 2025 15:45:15
hellrfbn / hellrfbn
0644
mailpoet.js
1.128 KB
February 05 2025 15:45:15
hellrfbn / hellrfbn
0644
metabox.js
1.879 KB
February 05 2025 15:45:15
hellrfbn / hellrfbn
0644
om-format.js
0.603 KB
February 05 2025 15:45:15
hellrfbn / hellrfbn
0644
om-settings.js
0.617 KB
February 05 2025 15:45:15
hellrfbn / hellrfbn
0644
plugininstall.js
2.056 KB
February 05 2025 15:45:15
hellrfbn / hellrfbn
0644
wc-marketing.js
1.532 KB
February 05 2025 15:45:15
hellrfbn / hellrfbn
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF