NOXSHELL
Server: Apache
System: Linux p3plzcpnl504199.prod.phx3.secureserver.net 4.18.0-553.53.1.lve.el8.x86_64 #1 SMP Wed May 28 17:01:02 UTC 2025 x86_64
User: zew5vtsbg2ra (9542639)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /home/zew5vtsbg2ra/public_html/wp-content/plugins/cartflows/admin/assets/js/ui-notice.js
( function ( $ ) {
	const ignore_gb_notice = function () {
		$( '.wcf_notice_gutenberg_plugin button.notice-dismiss' ).on(
			'click',
			function ( e ) {
				e.preventDefault();

				const data = {
					action: 'cartflows_ignore_gutenberg_notice',
					security: cartflows_notices.ignore_gb_notice,
				};

				$.ajax( {
					type: 'POST',
					url: ajaxurl,
					data,

					success( response ) {
						if ( response.success ) {
							console.log( 'Gutenberg Notice Ignored.' );
						}
					},
				} );
			}
		);
	};

	const dismiss_weekly_report_email_notice = function () {
		$(
			'.weekly-report-email-notice.wcf-dismissible-notice button.notice-dismiss'
		).on( 'click', function ( e ) {
			e.preventDefault();

			const data = {
				action: 'cartflows_disable_weekly_report_email_notice',
				security: cartflows_notices.dismiss_weekly_report_email_notice,
			};

			$.ajax( {
				type: 'POST',
				url: ajaxurl,
				data,

				success( response ) {
					if ( response.success ) {
						console.log( 'Weekly Report Email Notice Ignored.' );
					}
				},
			} );
		} );
	};

	$( function () {
		ignore_gb_notice();
		dismiss_weekly_report_email_notice();
	} );
} )( jQuery );