GRAYBYTE WORDPRESS FILE MANAGER7702

Server IP : 162.213.255.40 / Your IP : 216.73.216.149
System : Linux server146.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
PHP Version : 8.0.30
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF

HOME

/home/hellrfbn/public_html/wp-content/updraft/plugins-old/woocommerce/assets/js/admin/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/hellrfbn/public_html/wp-content/updraft/plugins-old/woocommerce/assets/js/admin//reports.js
jQuery(function( $ ) {

	function showTooltip( x, y, contents ) {
		$( '<div class="chart-tooltip">' + contents + '</div>' ).css( {
			top: y - 16,
			left: x + 20
		}).appendTo( 'body' ).fadeIn( 200 );
	}

	var prev_data_index = null;
	var prev_series_index = null;

	$( '.chart-placeholder' ).on( 'plothover', function ( event, pos, item ) {
		if ( item ) {
			if ( prev_data_index !== item.dataIndex || prev_series_index !== item.seriesIndex ) {
				prev_data_index   = item.dataIndex;
				prev_series_index = item.seriesIndex;

				$( '.chart-tooltip' ).remove();

				if ( item.series.points.show || item.series.enable_tooltip ) {

					var y = item.series.data[item.dataIndex][1],
						tooltip_content = '';

					if ( item.series.prepend_label ) {
						tooltip_content = tooltip_content + item.series.label + ': ';
					}

					if ( item.series.prepend_tooltip ) {
						tooltip_content = tooltip_content + item.series.prepend_tooltip;
					}

					tooltip_content = tooltip_content + y;

					if ( item.series.append_tooltip ) {
						tooltip_content = tooltip_content + item.series.append_tooltip;
					}

					if ( item.series.pie.show ) {
						showTooltip( pos.pageX, pos.pageY, tooltip_content );
					} else {
						showTooltip( item.pageX, item.pageY, tooltip_content );
					}
				}
			}
		} else {
			$( '.chart-tooltip' ).remove();
			prev_data_index = null;
		}
	});

	$( '.wc_sparkline.bars' ).each( function() {
		var chart_data = $( this ).data( 'sparkline' );

		var options = {
			grid: {
				show: false
			}
		};

		// main series
		var series = [{
			data: chart_data,
			color: $( this ).data( 'color' ),
			bars: {
				fillColor: $( this ).data( 'color' ),
				fill: true,
				show: true,
				lineWidth: 1,
				barWidth: $( this ).data( 'barwidth' ),
				align: 'center'
			},
			shadowSize: 0
		}];

		// draw the sparkline
		$.plot( $( this ), series, options );
	});

	$( '.wc_sparkline.lines' ).each( function() {
		var chart_data = $( this ).data( 'sparkline' );

		var options = {
			grid: {
				show: false
			}
		};

		// main series
		var series = [{
			data: chart_data,
			color: $( this ).data( 'color' ),
			lines: {
				fill: false,
				show: true,
				lineWidth: 1,
				align: 'center'
			},
			shadowSize: 0
		}];

		// draw the sparkline
		$.plot( $( this ), series, options );
	});

	var dates = $( '.range_datepicker' ).datepicker({
		changeMonth: true,
		changeYear: true,
		defaultDate: '',
		dateFormat: 'yy-mm-dd',
		numberOfMonths: 1,
		minDate: '-20Y',
		maxDate: '+1D',
		showButtonPanel: true,
		showOn: 'focus',
		buttonImageOnly: true,
		onSelect: function() {
			var option = $( this ).is( '.from' ) ? 'minDate' : 'maxDate',
				date   = $( this ).datepicker( 'getDate' );

			dates.not( this ).datepicker( 'option', option, date );
		}
	});

	var a = document.createElement( 'a' );

	if ( typeof a.download === 'undefined' ) {
		$( '.export_csv' ).hide();
	}

	// Export
	$( '.export_csv' ).on( 'click', function() {
		var exclude_series = $( this ).data( 'exclude_series' ) || '';
		exclude_series    = exclude_series.toString();
		exclude_series    = exclude_series.split( ',' );
		var xaxes_label   = $( this ).data( 'xaxes' );
		var groupby       = $( this ) .data( 'groupby' );
		var index_type    = $( this ).data( 'index_type' );
		var export_format = $( this ).data( 'export' );
		var csv_data      = '';
		var s, series_data, d;

		if ( 'table' === export_format ) {

			$( this ).offsetParent().find( 'thead tr,tbody tr' ).each( function() {
				$( this ).find( 'th, td' ).each( function() {
					var value = $( this ).text();
					value = value.replace( '[?]', '' ).replace( '#', '' );
					csv_data += '"' + value + '"' + ',';
				});
				csv_data = csv_data.substring( 0, csv_data.length - 1 );
				csv_data += '\n';
			});

			$( this ).offsetParent().find( 'tfoot tr' ).each( function() {
				$( this ).find( 'th, td' ).each( function() {
					var value = $( this ).text();
					value = value.replace( '[?]', '' ).replace( '#', '' );
					csv_data += '"' + value + '"' + ',';
					if ( $( this ).attr( 'colspan' ) > 0 ) {
						for ( i = 1; i < $(this).attr('colspan'); i++ ) {
							csv_data += '"",';
						}
					}
				});
				csv_data = csv_data.substring( 0, csv_data.length - 1 );
				csv_data += '\n';
			});

		} else {

			if ( ! window.main_chart ) {
				return false;
			}

			var the_series = window.main_chart.getData();
			var series     = [];
			csv_data      += '"' + xaxes_label + '",';

			$.each( the_series, function( index, value ) {
				if ( ! exclude_series || $.inArray( index.toString(), exclude_series ) === -1 ) {
					series.push( value );
				}
			});

			// CSV Headers
			for ( s = 0; s < series.length; ++s ) {
				csv_data += '"' + series[s].label + '",';
			}

			csv_data = csv_data.substring( 0, csv_data.length - 1 );
			csv_data += '\n';

			// Get x axis values
			var xaxis = {};

			for ( s = 0; s < series.length; ++s ) {
				series_data = series[s].data;
				for ( d = 0; d < series_data.length; ++d ) {
					xaxis[series_data[d][0]] = [];
					// Zero values to start
					for ( var i = 0; i < series.length; ++i ) {
						xaxis[series_data[d][0]].push(0);
					}
				}
			}

			// Add chart data
			for ( s = 0; s < series.length; ++s ) {
				series_data = series[s].data;
				for ( d = 0; d < series_data.length; ++d ) {
					xaxis[series_data[d][0]][s] = series_data[d][1];
				}
			}

			// Loop data and output to csv string
			$.each( xaxis, function( index, value ) {
				var date = new Date( parseInt( index, 10 ) );

				if ( 'none' === index_type ) {
					csv_data += '"' + index + '",';
				} else {
					if ( groupby === 'day' ) {
						csv_data += '"' +
							date.getUTCFullYear() +
							'-' +
							parseInt( date.getUTCMonth() + 1, 10 ) +
							'-' +
							date.getUTCDate() +
							'",';
					} else {
						csv_data += '"' + date.getUTCFullYear() + '-' + parseInt( date.getUTCMonth() + 1, 10 ) + '",';
					}
				}

				for ( var d = 0; d < value.length; ++d ) {
					var val = value[d];

					if ( Math.round( val ) !== val ) {
						val = parseFloat( val );
						val = val.toFixed( 2 );
					}

					csv_data += '"' + val + '",';
				}
				csv_data = csv_data.substring( 0, csv_data.length - 1 );
				csv_data += '\n';
			} );
		}

		csv_data = 'data:text/csv;charset=utf-8,\uFEFF' + encodeURIComponent( csv_data );
		// Set data as href and return
		$( this ).attr( 'href', csv_data );
		return true;
	});
});

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
.htaccess
0.41 KB
July 23 2025 07:38:28
hellrfbn / hellrfbn
0644
api-keys.js
3.893 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
api-keys.min.js
2.227 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
backbone-modal.js
4.354 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
backbone-modal.min.js
2.771 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
marketplace-suggestions.js
15.591 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
marketplace-suggestions.min.js
6.289 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
meta-boxes-coupon.js
2.026 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
meta-boxes-coupon.min.js
1.19 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
meta-boxes-order.js
49.688 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
meta-boxes-order.min.js
30.898 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
meta-boxes-product-variation.js
40.542 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
meta-boxes-product-variation.min.js
21.734 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
meta-boxes-product.js
33.749 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
meta-boxes-product.min.js
17.729 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
meta-boxes.js
4.876 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
meta-boxes.min.js
2.969 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
network-orders.js
2.338 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
network-orders.min.js
1.251 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
order-attribution-admin.js
1.157 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
order-attribution-admin.min.js
0.713 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
product-editor.js
0.396 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
product-editor.min.js
0.234 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
product-ordering.js
2.487 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
product-ordering.min.js
1.614 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
quick-edit.js
6.779 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
quick-edit.min.js
4.424 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
reports.js
6.31 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
reports.min.js
3.175 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
settings-views-html-settings-tax.js
12.082 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
settings-views-html-settings-tax.min.js
6.08 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
settings.js
6.891 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
settings.min.js
4.315 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
system-status.js
5.292 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
system-status.min.js
3.064 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
term-ordering.js
4.565 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
term-ordering.min.js
2.473 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
users.js
3.784 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
users.min.js
1.87 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
wc-clipboard.js
0.849 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
wc-clipboard.min.js
0.328 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
wc-enhanced-select.js
13.58 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
wc-enhanced-select.min.js
7.707 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
wc-orders.js
1.977 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
wc-orders.min.js
1.167 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
wc-product-export.js
3.632 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
wc-product-export.min.js
2.018 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
wc-product-import.js
2.925 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
wc-product-import.min.js
1.701 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
wc-setup.js
10.049 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
wc-setup.min.js
6.35 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
wc-shipping-classes.js
6.421 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
wc-shipping-classes.min.js
3.412 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
wc-shipping-zone-methods.js
27.039 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
wc-shipping-zone-methods.min.js
14.438 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
wc-shipping-zones.js
8.969 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
wc-shipping-zones.min.js
4.711 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
wc-status-widget.js
0.804 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
wc-status-widget.min.js
0.57 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
woocommerce_admin.js
19.732 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
woocommerce_admin.min.js
10.685 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF