GRAYBYTE WORDPRESS FILE MANAGER6668

Server IP : 149.255.58.128 / Your IP : 216.73.216.191
System : Linux cloud516.thundercloud.uk 5.14.0-427.26.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 17 15:51:13 EDT 2024 x86_64
PHP Version : 8.2.28
Disable Function : allow_url_include, apache_child_terminate, apache_setenv, exec, passthru, pcntl_exec, posix_kill, posix_mkfifo, posix_getpwuid, posix_setpgid, posix_setsid, posix_setuid, posix_setgid, posix_seteuid, posix_setegid, posix_uname, proc_close, proc_get_status, proc_open, proc_terminate, shell_exec, show_source, system
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/wheelch2/mobilityscooterkemer.com/wp-admin/js/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/wheelch2/mobilityscooterkemer.com/wp-admin/js//privacy-tools.js
/**
 * Interactions used by the User Privacy tools in WordPress.
 *
 * @output wp-admin/js/privacy-tools.js
 */

// Privacy request action handling.
jQuery( function( $ ) {
	var __ = wp.i18n.__,
		copiedNoticeTimeout;

	function setActionState( $action, state ) {
		$action.children().addClass( 'hidden' );
		$action.children( '.' + state ).removeClass( 'hidden' );
	}

	function clearResultsAfterRow( $requestRow ) {
		$requestRow.removeClass( 'has-request-results' );

		if ( $requestRow.next().hasClass( 'request-results' ) ) {
			$requestRow.next().remove();
		}
	}

	function appendResultsAfterRow( $requestRow, classes, summaryMessage, additionalMessages ) {
		var itemList = '',
			resultRowClasses = 'request-results';

		clearResultsAfterRow( $requestRow );

		if ( additionalMessages.length ) {
			$.each( additionalMessages, function( index, value ) {
				itemList = itemList + '<li>' + value + '</li>';
			});
			itemList = '<ul>' + itemList + '</ul>';
		}

		$requestRow.addClass( 'has-request-results' );

		if ( $requestRow.hasClass( 'status-request-confirmed' ) ) {
			resultRowClasses = resultRowClasses + ' status-request-confirmed';
		}

		if ( $requestRow.hasClass( 'status-request-failed' ) ) {
			resultRowClasses = resultRowClasses + ' status-request-failed';
		}

		$requestRow.after( function() {
			return '<tr class="' + resultRowClasses + '"><th colspan="5">' +
				'<div class="notice inline notice-alt ' + classes + '" role="alert">' +
				'<p>' + summaryMessage + '</p>' +
				itemList +
				'</div>' +
				'</td>' +
				'</tr>';
		});
	}

	$( '.export-personal-data-handle' ).on( 'click', function( event ) {
		var $this          = $( this ),
			$action        = $this.parents( '.export-personal-data' ),
			$requestRow    = $this.parents( 'tr' ),
			$progress      = $requestRow.find( '.export-progress' ),
			$rowActions    = $this.parents( '.row-actions' ),
			requestID      = $action.data( 'request-id' ),
			nonce          = $action.data( 'nonce' ),
			exportersCount = $action.data( 'exporters-count' ),
			sendAsEmail    = $action.data( 'send-as-email' ) ? true : false;

		event.preventDefault();
		event.stopPropagation();

		$rowActions.addClass( 'processing' );

		$action.trigger( 'blur' );
		clearResultsAfterRow( $requestRow );
		setExportProgress( 0 );

		function onExportDoneSuccess( zipUrl ) {
			var summaryMessage = __( 'This user&#8217;s personal data export link was sent.' );

			if ( 'undefined' !== typeof zipUrl ) {
				summaryMessage = __( 'This user&#8217;s personal data export file was downloaded.' );
			}

			setActionState( $action, 'export-personal-data-success' );

			appendResultsAfterRow( $requestRow, 'notice-success', summaryMessage, [] );

			if ( 'undefined' !== typeof zipUrl ) {
				window.location = zipUrl;
			} else if ( ! sendAsEmail ) {
				onExportFailure( __( 'No personal data export file was generated.' ) );
			}

			setTimeout( function() { $rowActions.removeClass( 'processing' ); }, 500 );
		}

		function onExportFailure( errorMessage ) {
			var summaryMessage = __( 'An error occurred while attempting to export personal data.' );

			setActionState( $action, 'export-personal-data-failed' );

			if ( errorMessage ) {
				appendResultsAfterRow( $requestRow, 'notice-error', summaryMessage, [ errorMessage ] );
			}

			setTimeout( function() { $rowActions.removeClass( 'processing' ); }, 500 );
		}

		function setExportProgress( exporterIndex ) {
			var progress       = ( exportersCount > 0 ? exporterIndex / exportersCount : 0 ),
				progressString = Math.round( progress * 100 ).toString() + '%';

			$progress.html( progressString );
		}

		function doNextExport( exporterIndex, pageIndex ) {
			$.ajax(
				{
					url: window.ajaxurl,
					data: {
						action: 'wp-privacy-export-personal-data',
						exporter: exporterIndex,
						id: requestID,
						page: pageIndex,
						security: nonce,
						sendAsEmail: sendAsEmail
					},
					method: 'post'
				}
			).done( function( response ) {
				var responseData = response.data;

				if ( ! response.success ) {
					// e.g. invalid request ID.
					setTimeout( function() { onExportFailure( response.data ); }, 500 );
					return;
				}

				if ( ! responseData.done ) {
					setTimeout( doNextExport( exporterIndex, pageIndex + 1 ) );
				} else {
					setExportProgress( exporterIndex );
					if ( exporterIndex < exportersCount ) {
						setTimeout( doNextExport( exporterIndex + 1, 1 ) );
					} else {
						setTimeout( function() { onExportDoneSuccess( responseData.url ); }, 500 );
					}
				}
			}).fail( function( jqxhr, textStatus, error ) {
				// e.g. Nonce failure.
				setTimeout( function() { onExportFailure( error ); }, 500 );
			});
		}

		// And now, let's begin.
		setActionState( $action, 'export-personal-data-processing' );
		doNextExport( 1, 1 );
	});

	$( '.remove-personal-data-handle' ).on( 'click', function( event ) {
		var $this         = $( this ),
			$action       = $this.parents( '.remove-personal-data' ),
			$requestRow   = $this.parents( 'tr' ),
			$progress     = $requestRow.find( '.erasure-progress' ),
			$rowActions   = $this.parents( '.row-actions' ),
			requestID     = $action.data( 'request-id' ),
			nonce         = $action.data( 'nonce' ),
			erasersCount  = $action.data( 'erasers-count' ),
			hasRemoved    = false,
			hasRetained   = false,
			messages      = [];

		event.preventDefault();
		event.stopPropagation();

		$rowActions.addClass( 'processing' );

		$action.trigger( 'blur' );
		clearResultsAfterRow( $requestRow );
		setErasureProgress( 0 );

		function onErasureDoneSuccess() {
			var summaryMessage = __( 'No personal data was found for this user.' ),
				classes = 'notice-success';

			setActionState( $action, 'remove-personal-data-success' );

			if ( false === hasRemoved ) {
				if ( false === hasRetained ) {
					summaryMessage = __( 'No personal data was found for this user.' );
				} else {
					summaryMessage = __( 'Personal data was found for this user but was not erased.' );
					classes = 'notice-warning';
				}
			} else {
				if ( false === hasRetained ) {
					summaryMessage = __( 'All of the personal data found for this user was erased.' );
				} else {
					summaryMessage = __( 'Personal data was found for this user but some of the personal data found was not erased.' );
					classes = 'notice-warning';
				}
			}
			appendResultsAfterRow( $requestRow, classes, summaryMessage, messages );

			setTimeout( function() { $rowActions.removeClass( 'processing' ); }, 500 );
		}

		function onErasureFailure() {
			var summaryMessage = __( 'An error occurred while attempting to find and erase personal data.' );

			setActionState( $action, 'remove-personal-data-failed' );

			appendResultsAfterRow( $requestRow, 'notice-error', summaryMessage, [] );

			setTimeout( function() { $rowActions.removeClass( 'processing' ); }, 500 );
		}

		function setErasureProgress( eraserIndex ) {
			var progress       = ( erasersCount > 0 ? eraserIndex / erasersCount : 0 ),
				progressString = Math.round( progress * 100 ).toString() + '%';

			$progress.html( progressString );
		}

		function doNextErasure( eraserIndex, pageIndex ) {
			$.ajax({
				url: window.ajaxurl,
				data: {
					action: 'wp-privacy-erase-personal-data',
					eraser: eraserIndex,
					id: requestID,
					page: pageIndex,
					security: nonce
				},
				method: 'post'
			}).done( function( response ) {
				var responseData = response.data;

				if ( ! response.success ) {
					setTimeout( function() { onErasureFailure(); }, 500 );
					return;
				}
				if ( responseData.items_removed ) {
					hasRemoved = hasRemoved || responseData.items_removed;
				}
				if ( responseData.items_retained ) {
					hasRetained = hasRetained || responseData.items_retained;
				}
				if ( responseData.messages ) {
					messages = messages.concat( responseData.messages );
				}
				if ( ! responseData.done ) {
					setTimeout( doNextErasure( eraserIndex, pageIndex + 1 ) );
				} else {
					setErasureProgress( eraserIndex );
					if ( eraserIndex < erasersCount ) {
						setTimeout( doNextErasure( eraserIndex + 1, 1 ) );
					} else {
						setTimeout( function() { onErasureDoneSuccess(); }, 500 );
					}
				}
			}).fail( function() {
				setTimeout( function() { onErasureFailure(); }, 500 );
			});
		}

		// And now, let's begin.
		setActionState( $action, 'remove-personal-data-processing' );

		doNextErasure( 1, 1 );
	});

	// Privacy Policy page, copy action.
	$( document ).on( 'click', function( event ) {
		var $parent,
			range,
			$target = $( event.target ),
			copiedNotice = $target.siblings( '.success' );

		clearTimeout( copiedNoticeTimeout );

		if ( $target.is( 'button.privacy-text-copy' ) ) {
			$parent = $target.closest( '.privacy-settings-accordion-panel' );

			if ( $parent.length ) {
				try {
					var documentPosition = document.documentElement.scrollTop,
						bodyPosition     = document.body.scrollTop;

					// Setup copy.
					window.getSelection().removeAllRanges();

					// Hide tutorial content to remove from copied content.
					range = document.createRange();
					$parent.addClass( 'hide-privacy-policy-tutorial' );

					// Copy action.
					range.selectNodeContents( $parent[0] );
					window.getSelection().addRange( range );
					document.execCommand( 'copy' );

					// Reset section.
					$parent.removeClass( 'hide-privacy-policy-tutorial' );
					window.getSelection().removeAllRanges();

					// Return scroll position - see #49540.
					if ( documentPosition > 0 && documentPosition !== document.documentElement.scrollTop ) {
						document.documentElement.scrollTop = documentPosition;
					} else if ( bodyPosition > 0 && bodyPosition !== document.body.scrollTop ) {
						document.body.scrollTop = bodyPosition;
					}

					// Display and speak notice to indicate action complete.
					copiedNotice.addClass( 'visible' );
					wp.a11y.speak( __( 'The suggested policy text has been copied to your clipboard.' ) );

					// Delay notice dismissal.
					copiedNoticeTimeout = setTimeout( function() {
						copiedNotice.removeClass( 'visible' );
					}, 3000 );
				} catch ( er ) {}
			}
		}
	});

	// Label handling to focus the create page button on Privacy settings page.
	$( 'body.options-privacy-php label[for=create-page]' ).on( 'click', function( e ) {
		e.preventDefault();
		$( 'input#create-page' ).trigger( 'focus' );
	} );

	// Accordion handling in various new Privacy settings pages.
	$( '.privacy-settings-accordion' ).on( 'click', '.privacy-settings-accordion-trigger', function() {
		var isExpanded = ( 'true' === $( this ).attr( 'aria-expanded' ) );

		if ( isExpanded ) {
			$( this ).attr( 'aria-expanded', 'false' );
			$( '#' + $( this ).attr( 'aria-controls' ) ).attr( 'hidden', true );
		} else {
			$( this ).attr( 'aria-expanded', 'true' );
			$( '#' + $( this ).attr( 'aria-controls' ) ).attr( 'hidden', false );
		}
	} );
});

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
May 20 2025 06:12:06
1032 / wheelch2
0755
widgets
--
May 20 2025 06:12:20
1032 / wheelch2
0755
.htaccess
0.124 KB
May 20 2025 06:12:20
1032 / wheelch2
0444
accordion.js
2.864 KB
November 13 2024 04:47:58
1032 / wheelch2
0644
accordion.min.js
0.74 KB
November 13 2024 04:47:58
1032 / wheelch2
0644
application-passwords.js
6.244 KB
November 08 2023 06:49:28
1032 / wheelch2
0644
application-passwords.min.js
2.953 KB
November 08 2023 06:49:28
1032 / wheelch2
0644
auth-app.js
5.66 KB
February 23 2021 19:45:04
1032 / wheelch2
0644
auth-app.min.js
2.035 KB
April 08 2022 20:07:18
1032 / wheelch2
0644
code-editor.js
11.316 KB
July 27 2020 23:35:02
1032 / wheelch2
0644
code-editor.min.js
3.011 KB
February 02 2023 16:36:32
1032 / wheelch2
0644
color-picker.js
9.539 KB
March 18 2021 19:01:03
1032 / wheelch2
0644
color-picker.min.js
3.404 KB
April 08 2022 20:07:18
1032 / wheelch2
0644
comment.js
2.851 KB
April 03 2024 05:41:59
1032 / wheelch2
0644
comment.min.js
1.284 KB
April 08 2022 20:07:18
1032 / wheelch2
0644
common.js
61.15 KB
May 01 2025 03:38:48
1032 / wheelch2
0644
common.min.js
23.121 KB
May 01 2025 03:38:48
1032 / wheelch2
0644
custom-background.js
3.354 KB
March 18 2021 19:01:03
1032 / wheelch2
0644
custom-background.min.js
1.178 KB
March 18 2021 19:01:03
1032 / wheelch2
0644
custom-header.js
1.976 KB
February 23 2021 19:45:04
1032 / wheelch2
0644
customize-controls.js
287.36 KB
February 12 2025 04:40:52
1032 / wheelch2
0644
customize-controls.min.js
109.14 KB
April 16 2025 03:40:38
1032 / wheelch2
0644
customize-nav-menus.js
110.925 KB
April 16 2025 03:40:38
1032 / wheelch2
0644
customize-nav-menus.min.js
46.89 KB
April 16 2025 03:40:38
1032 / wheelch2
0644
customize-widgets.js
70.046 KB
July 16 2024 17:34:04
1032 / wheelch2
0644
customize-widgets.min.js
27.407 KB
April 16 2025 03:40:38
1032 / wheelch2
0644
dashboard.js
27.018 KB
April 16 2025 03:40:38
1032 / wheelch2
0644
dashboard.min.js
8.654 KB
April 16 2025 03:40:38
1032 / wheelch2
0644
edit-comments.js
37.115 KB
April 16 2025 03:40:38
1032 / wheelch2
0644
edit-comments.min.js
15.125 KB
April 16 2025 03:40:38
1032 / wheelch2
0644
editor-expand.js
41.607 KB
July 16 2024 17:34:04
1032 / wheelch2
0644
editor-expand.min.js
13.136 KB
February 02 2023 16:36:32
1032 / wheelch2
0644
editor.js
43.98 KB
May 01 2025 03:38:48
1032 / wheelch2
0644
editor.min.js
12.76 KB
May 01 2025 03:38:48
1032 / wheelch2
0644
farbtastic.js
7.665 KB
July 17 2023 22:03:26
1032 / wheelch2
0644
gallery.js
5.413 KB
November 08 2023 06:49:28
1032 / wheelch2
0644
gallery.min.js
3.653 KB
November 08 2023 06:49:28
1032 / wheelch2
0644
image-edit.js
39.977 KB
November 13 2024 04:47:58
1032 / wheelch2
0644
image-edit.min.js
15.151 KB
November 13 2024 04:47:58
1032 / wheelch2
0644
inline-edit-post.js
20.166 KB
November 13 2024 04:47:58
1032 / wheelch2
0644
inline-edit-post.min.js
9.413 KB
November 13 2024 04:47:58
1032 / wheelch2
0644
inline-edit-tax.js
7.614 KB
March 18 2021 19:01:03
1032 / wheelch2
0644
inline-edit-tax.min.js
2.927 KB
March 18 2021 19:01:03
1032 / wheelch2
0644
iris.min.js
23.089 KB
November 03 2021 19:40:00
1032 / wheelch2
0644
language-chooser.js
0.869 KB
February 23 2021 19:45:04
1032 / wheelch2
0644
language-chooser.min.js
0.413 KB
February 23 2021 19:45:04
1032 / wheelch2
0644
link.js
3.894 KB
March 18 2021 19:01:03
1032 / wheelch2
0644
link.min.js
1.701 KB
March 18 2021 19:01:03
1032 / wheelch2
0644
media-gallery.js
1.272 KB
February 23 2021 19:45:04
1032 / wheelch2
0644
media-gallery.min.js
0.597 KB
April 08 2022 20:07:18
1032 / wheelch2
0644
media-upload.js
3.384 KB
January 22 2021 12:32:03
1032 / wheelch2
0644
media-upload.min.js
1.125 KB
February 02 2023 16:36:32
1032 / wheelch2
0644
media.js
6.606 KB
November 13 2024 04:47:58
1032 / wheelch2
0644
media.min.js
2.382 KB
November 13 2024 04:47:58
1032 / wheelch2
0644
nav-menu.js
60.443 KB
April 16 2025 03:40:38
1032 / wheelch2
0644
nav-menu.min.js
29.771 KB
April 16 2025 03:40:38
1032 / wheelch2
0644
password-strength-meter.js
4.137 KB
January 22 2021 12:32:03
1032 / wheelch2
0644
password-strength-meter.min.js
1.097 KB
January 22 2021 12:32:03
1032 / wheelch2
0644
password-toggle.js
1.308 KB
June 23 2023 23:09:29
1032 / wheelch2
0644
password-toggle.min.js
0.827 KB
June 23 2023 23:09:29
1032 / wheelch2
0644
plugin-install.js
6.92 KB
March 18 2021 19:01:03
1032 / wheelch2
0644
plugin-install.min.js
2.347 KB
February 02 2023 16:36:32
1032 / wheelch2
0644
post.js
38.679 KB
February 12 2025 04:40:52
1032 / wheelch2
0644
post.min.js
18.403 KB
February 12 2025 04:40:52
1032 / wheelch2
0644
postbox.js
18.493 KB
April 16 2025 03:40:38
1032 / wheelch2
0644
postbox.min.js
6.603 KB
April 16 2025 03:40:38
1032 / wheelch2
0644
privacy-tools.js
10.667 KB
July 16 2024 17:34:04
1032 / wheelch2
0644
privacy-tools.min.js
5.033 KB
July 16 2024 17:34:04
1032 / wheelch2
0644
revisions.js
33.915 KB
November 13 2024 04:47:58
1032 / wheelch2
0644
revisions.min.js
17.97 KB
November 13 2024 04:47:58
1032 / wheelch2
0644
set-post-thumbnail.js
0.855 KB
July 07 2020 18:55:04
1032 / wheelch2
0644
set-post-thumbnail.min.js
0.605 KB
July 07 2020 18:55:04
1032 / wheelch2
0644
site-health.js
13.149 KB
April 03 2024 05:41:59
1032 / wheelch2
0644
site-health.min.js
6.135 KB
April 03 2024 05:41:59
1032 / wheelch2
0644
site-icon.js
6.097 KB
November 13 2024 04:47:58
1032 / wheelch2
0644
site-icon.min.js
2.201 KB
November 13 2024 04:47:58
1032 / wheelch2
0644
svg-painter.js
3.203 KB
November 13 2024 04:47:58
1032 / wheelch2
0644
svg-painter.min.js
1.53 KB
November 13 2024 04:47:58
1032 / wheelch2
0644
tags-box.js
10.879 KB
March 18 2021 19:01:03
1032 / wheelch2
0644
tags-box.min.js
3.005 KB
February 02 2023 16:36:32
1032 / wheelch2
0644
tags-suggest.js
5.636 KB
April 03 2024 05:41:59
1032 / wheelch2
0644
tags-suggest.min.js
2.216 KB
April 03 2024 05:41:59
1032 / wheelch2
0644
tags.js
4.851 KB
April 16 2025 03:40:38
1032 / wheelch2
0644
tags.min.js
2.042 KB
April 16 2025 03:40:38
1032 / wheelch2
0644
theme-plugin-editor.js
24.766 KB
April 16 2025 03:40:38
1032 / wheelch2
0644
theme-plugin-editor.min.js
11.435 KB
April 16 2025 03:40:38
1032 / wheelch2
0644
theme.js
54.667 KB
April 16 2025 03:40:38
1032 / wheelch2
0644
theme.min.js
26.417 KB
April 16 2025 03:40:38
1032 / wheelch2
0644
themes.php
0 KB
March 02 2024 06:00:09
1032 / wheelch2
0644
updates.js
109.335 KB
April 16 2025 03:40:38
1032 / wheelch2
0644
updates.min.js
47.272 KB
April 16 2025 03:40:38
1032 / wheelch2
0644
user-profile.js
14.995 KB
November 13 2024 04:47:58
1032 / wheelch2
0644
user-profile.min.js
6.701 KB
November 13 2024 04:47:58
1032 / wheelch2
0644
user-suggest.js
2.247 KB
March 18 2021 19:01:03
1032 / wheelch2
0644
user-suggest.min.js
0.66 KB
March 18 2021 19:01:03
1032 / wheelch2
0644
widgets.js
22.557 KB
March 18 2021 19:01:03
1032 / wheelch2
0644
widgets.min.js
12.313 KB
February 02 2023 16:36:32
1032 / wheelch2
0644
word-count.js
7.516 KB
July 27 2020 23:35:02
1032 / wheelch2
0644
word-count.min.js
1.494 KB
February 02 2023 16:36:32
1032 / wheelch2
0644
xfn.js
0.723 KB
March 18 2021 19:01:03
1032 / wheelch2
0644
xfn.min.js
0.447 KB
March 18 2021 19:01:03
1032 / wheelch2
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF