SILENT KILLERPanel

Current Path: > home > codekrsu > > ameliagraphics.com > wp-content > plugins > woocommerce > assets > js > admin


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: /home/codekrsu//ameliagraphics.com/wp-content/plugins/woocommerce/assets/js/admin

NameTypeSizeLast ModifiedActions
api-keys.js File 3986 bytes May 18 2021 21:00:20.
api-keys.min.js File 2280 bytes July 18 2023 23:53:36.
backbone-modal.js File 4459 bytes December 27 2023 00:45:02.
backbone-modal.min.js File 2837 bytes December 27 2023 00:45:02.
marketplace-suggestions.js File 16612 bytes June 23 2025 19:46:28.
marketplace-suggestions.min.js File 6654 bytes June 23 2025 19:46:28.
meta-boxes-coupon.js File 3057 bytes April 01 2025 15:51:36.
meta-boxes-coupon.min.js File 1650 bytes April 01 2025 15:51:36.
meta-boxes-order.js File 55606 bytes May 12 2025 21:07:28.
meta-boxes-order.min.js File 33765 bytes May 12 2025 21:07:28.
meta-boxes-product-variation.js File 43279 bytes May 12 2025 21:07:28.
meta-boxes-product-variation.min.js File 23090 bytes May 12 2025 21:07:28.
meta-boxes-product.js File 35075 bytes May 12 2025 21:07:28.
meta-boxes-product.min.js File 18476 bytes May 12 2025 21:07:28.
meta-boxes.js File 4993 bytes August 01 2023 21:16:08.
meta-boxes.min.js File 3040 bytes August 01 2023 21:16:08.
network-orders.js File 2394 bytes May 23 2018 19:30:10.
network-orders.min.js File 1281 bytes July 18 2023 23:53:36.
order-attribution-admin.js File 1185 bytes December 27 2023 00:45:02.
order-attribution-admin.min.js File 730 bytes December 27 2023 00:45:02.
product-editor.js File 405 bytes November 23 2022 05:58:58.
product-editor.min.js File 240 bytes July 18 2023 23:53:36.
product-ordering.js File 2547 bytes July 19 2022 23:16:40.
product-ordering.min.js File 1653 bytes July 18 2023 23:53:36.
quick-edit.js File 7231 bytes March 03 2025 22:28:12.
quick-edit.min.js File 4691 bytes March 03 2025 22:28:12.
reports.js File 5518 bytes November 14 2024 01:17:00.
reports.min.js File 2765 bytes November 14 2024 01:17:00.
settings-views-html-settings-tax.js File 12324 bytes March 03 2025 22:28:12.
settings-views-html-settings-tax.min.js File 6231 bytes March 03 2025 22:28:12.
settings.js File 12233 bytes May 12 2025 21:07:28.
settings.min.js File 6402 bytes May 12 2025 21:07:28.
system-status.js File 5419 bytes June 18 2024 17:22:26.
system-status.min.js File 3138 bytes June 18 2024 17:22:26.
term-ordering.js File 4675 bytes June 22 2022 02:13:02.
term-ordering.min.js File 2532 bytes July 18 2023 23:53:36.
users.js File 3875 bytes May 18 2021 21:00:20.
users.min.js File 1915 bytes July 18 2023 23:53:36.
wc-brands-enhanced-select.js File 4160 bytes September 23 2024 20:44:04.
wc-brands-enhanced-select.min.js File 1630 bytes September 23 2024 20:44:04.
wc-clipboard.js File 869 bytes May 18 2021 21:00:20.
wc-clipboard.min.js File 336 bytes May 18 2021 21:00:20.
wc-enhanced-select.js File 13906 bytes August 16 2023 00:05:04.
wc-enhanced-select.min.js File 7892 bytes August 16 2023 00:05:04.
wc-orders.js File 2024 bytes October 19 2022 00:34:38.
wc-orders.min.js File 1195 bytes July 18 2023 23:53:36.
wc-product-export.js File 3880 bytes May 12 2025 21:07:28.
wc-product-export.min.js File 2141 bytes May 12 2025 21:07:28.
wc-product-import.js File 2995 bytes May 24 2023 03:17:54.
wc-product-import.min.js File 1742 bytes July 18 2023 23:53:36.
wc-setup.js File 10290 bytes May 18 2021 21:00:20.
wc-setup.min.js File 6502 bytes July 18 2023 23:53:36.
wc-shipping-classes.js File 6725 bytes March 03 2025 22:28:12.
wc-shipping-classes.min.js File 3651 bytes March 03 2025 22:28:12.
wc-shipping-zone-methods.js File 28999 bytes April 01 2025 15:51:36.
wc-shipping-zone-methods.min.js File 15146 bytes April 01 2025 15:51:36.
wc-shipping-zones.js File 9452 bytes March 03 2025 22:28:12.
wc-shipping-zones.min.js File 4970 bytes March 03 2025 22:28:12.
wc-status-widget-async.js File 1311 bytes May 12 2025 21:07:28.
wc-status-widget-async.min.js File 519 bytes May 12 2025 21:07:28.
wc-status-widget.js File 1824 bytes November 14 2024 01:17:00.
wc-status-widget.min.js File 1074 bytes November 14 2024 01:17:00.
woocommerce_admin.js File 22913 bytes May 12 2025 21:07:28.
woocommerce_admin.min.js File 12270 bytes May 12 2025 21:07:28.

Reading File: /home/codekrsu//ameliagraphics.com/wp-content/plugins/woocommerce/assets/js/admin/wc-setup.js

/*global wc_setup_params */
/*global wc_setup_currencies */
/*global wc_base_state */
/* @deprecated 4.6.0 */
jQuery( function( $ ) {
	function blockWizardUI() {
		$('.wc-setup-content').block({
			message: null,
			overlayCSS: {
				background: '#fff',
				opacity: 0.6
			}
		});
	}

	$( '.button-next' ).on( 'click', function() {
		var form = $( this ).parents( 'form' ).get( 0 );

		if ( ( 'function' !== typeof form.checkValidity ) || form.checkValidity() ) {
			blockWizardUI();
		}

		return true;
	} );

	$( 'form.address-step' ).on( 'submit', function( e ) {
		var form = $( this );
		if ( ( 'function' !== typeof form.checkValidity ) || form.checkValidity() ) {
			blockWizardUI();
		}

		e.preventDefault();
		$('.wc-setup-content').unblock();

		$( this ).WCBackboneModal( {
			template: 'wc-modal-tracking-setup'
		} );

		$( document.body ).on( 'wc_backbone_modal_response', function() {
			form.off( 'submit' ).trigger( 'submit' );
		} );

		$( '#wc_tracker_checkbox_dialog' ).on( 'change', function( e ) {
			var eventTarget = $( e.target );
			$( '#wc_tracker_checkbox' ).prop( 'checked', eventTarget.prop( 'checked' ) );
		} );

		$( '#wc_tracker_submit' ).on( 'click', function () {
			form.off( 'submit' ).trigger( 'submit' );
		} );

		return true;
	} );

	$( '#store_country' ).on( 'change', function() {
		// Prevent if we don't have the metabox data
		if ( wc_setup_params.states === null ){
			return;
		}

		var $this         = $( this ),
			country       = $this.val(),
			$state_select = $( '#store_state' );

		if ( ! $.isEmptyObject( wc_setup_params.states[ country ] ) ) {
			var states = wc_setup_params.states[ country ];

			$state_select.empty();

			$.each( states, function( index ) {
				$state_select.append( $( '<option value="' + index + '">' + states[ index ] + '</option>' ) );
			} );

			$( '.store-state-container' ).show();
			$state_select.selectWoo().val( wc_base_state ).trigger( 'change' ).prop( 'required', true );
		} else {
			$( '.store-state-container' ).hide();
			$state_select.empty().val( '' ).trigger( 'change' ).prop( 'required', false );
		}

		$( '#currency_code' ).val( wc_setup_currencies[ country ] ).trigger( 'change' );
	} );

	/* Setup postcode field and validations */
	$( '#store_country' ).on( 'change', function() {
		if ( ! wc_setup_params.postcodes ) {
			return;
		}

		var $this                 = $( this ),
			country               = $this.val(),
			$store_postcode_input = $( '#store_postcode' ),
			country_postcode_obj  = wc_setup_params.postcodes[ country ];

		// Default to required, if its unknown whether postcode is required or not.
		if ( $.isEmptyObject( country_postcode_obj ) || country_postcode_obj.required  ) {
			$store_postcode_input.attr( 'required', 'true' );
		} else {
			$store_postcode_input.prop( 'required', false );
		}
	} );

	$( '#store_country' ).trigger( 'change' );

	$( '.wc-wizard-services' ).on( 'change', '.wc-wizard-service-enable input', function() {
		if ( $( this ).is( ':checked' ) ) {
			$( this ).closest( '.wc-wizard-service-toggle' ).removeClass( 'disabled' );
			$( this ).closest( '.wc-wizard-service-item' ).addClass( 'checked' );
			$( this ).closest( '.wc-wizard-service-item' )
				.find( '.wc-wizard-service-settings' ).removeClass( 'hide' );
		} else {
			$( this ).closest( '.wc-wizard-service-toggle' ).addClass( 'disabled' );
			$( this ).closest( '.wc-wizard-service-item' ).removeClass( 'checked' );
			$( this ).closest( '.wc-wizard-service-item' )
				.find( '.wc-wizard-service-settings' ).addClass( 'hide' );
		}
	} );

	$( '.wc-wizard-services' ).on( 'keyup', function( e ) {
		var code = e.keyCode || e.which,
			$focused = $( document.activeElement );

		if ( $focused.is( '.wc-wizard-service-toggle, .wc-wizard-service-enable' ) && ( 13 === code || 32 === code ) ) {
			$focused.find( ':input' ).trigger( 'click' );
		}
	} );

	$( '.wc-wizard-services' ).on( 'click', '.wc-wizard-service-enable', function( e ) {
		var eventTarget = $( e.target );

		if ( eventTarget.is( 'input' ) ) {
			e.stopPropagation();
			return;
		}

		var $checkbox = $( this ).find( 'input[type="checkbox"]' );

		$checkbox.prop( 'checked', ! $checkbox.prop( 'checked' ) ).trigger( 'change' );
	} );

	$( '.wc-wizard-services-list-toggle' ).on( 'click', function() {
		var listToggle = $( this ).closest( '.wc-wizard-services-list-toggle' );

		if ( listToggle.hasClass( 'closed' ) ) {
			listToggle.removeClass( 'closed' );
		} else {
			listToggle.addClass( 'closed' );
		}

		$( this ).closest( '.wc-wizard-services' ).find( '.wc-wizard-service-item' )
			.slideToggle()
			.css( 'display', 'flex' );
	} );

	$( '.wc-wizard-services' ).on( 'change', '.wc-wizard-shipping-method-select .method', function( e ) {
		var zone = $( this ).closest( '.wc-wizard-service-description' );
		var selectedMethod = e.target.value;

		var description = zone.find( '.shipping-method-descriptions' );
		description.find( '.shipping-method-description' ).addClass( 'hide' );
		description.find( '.' + selectedMethod ).removeClass( 'hide' );

		var $checkbox = zone.parent().find( 'input[type="checkbox"]' );
		var settings = zone.find( '.shipping-method-settings' );
		settings
			.find( '.shipping-method-setting' )
			.addClass( 'hide' )
			.find( '.shipping-method-required-field' )
			.prop( 'required', false );
		settings
			.find( '.' + selectedMethod )
			.removeClass( 'hide' )
			.find( '.shipping-method-required-field' )
			.prop( 'required', $checkbox.prop( 'checked' ) );
	} ).find( '.wc-wizard-shipping-method-select .method' ).trigger( 'change' );

	$( '.wc-wizard-services' ).on( 'change', '.wc-wizard-shipping-method-enable', function() {
		var checked = $( this ).is( ':checked' );
		var selectedMethod = $( this )
			.closest( '.wc-wizard-service-item' )
			.find( '.wc-wizard-shipping-method-select .method' )
			.val();

		$( this )
			.closest( '.wc-wizard-service-item' )
			.find( '.' + selectedMethod )
			.find( '.shipping-method-required-field' )
			.prop( 'required', checked );
	} );

	function submitActivateForm() {
		$( 'form.activate-jetpack' ).trigger( 'submit' );
	}

	function waitForJetpackInstall() {
		wp.ajax.post( 'setup_wizard_check_jetpack' )
			.then( function( result ) {
				// If we receive success, or an unexpected result
				// let the form submit.
				if (
					! result ||
					! result.is_active ||
					'yes' === result.is_active
				) {
					return submitActivateForm();
				}

				// Wait until checking the status again
				setTimeout( waitForJetpackInstall, 3000 );
			} )
			.fail( function() {
				// Submit the form as normal if the request fails
				submitActivateForm();
			} );
	}

	// Wait for a pending Jetpack install to finish before triggering a "save"
	// on the activate step, which launches the Jetpack connection flow.
	$( '.activate-jetpack' ).on( 'click', '.button-primary', function( e ) {
		blockWizardUI();

		if ( 'no' === wc_setup_params.pending_jetpack_install ) {
			return true;
		}

		e.preventDefault();
		waitForJetpackInstall();
	} );

	$( '.activate-new-onboarding' ).on( 'click', '.button-primary', function() {
		// Show pending spinner while activate happens.
		blockWizardUI();
	} );

	$( '.wc-wizard-services' ).on( 'change', 'input#stripe_create_account, input#ppec_paypal_reroute_requests', function() {
		if ( $( this ).is( ':checked' ) ) {
			$( this ).closest( '.wc-wizard-service-settings' )
				.find( 'input.payment-email-input' )
				.attr( 'type', 'email' )
				.prop( 'disabled', false )
				.prop( 'required', true );
		} else {
			$( this ).closest( '.wc-wizard-service-settings' )
				.find( 'input.payment-email-input' )
				.attr( 'type', null )
				.prop( 'disabled', true )
				.prop( 'required', false );
		}
	} ).find( 'input#stripe_create_account, input#ppec_paypal_reroute_requests' ).trigger( 'change' );

	function addPlugins( bySlug, $el, hover ) {
		var plugins = $el.data( 'plugins' );
		for ( var i in Array.isArray( plugins ) ? plugins : [] ) {
			var slug = plugins[ i ].slug;
			bySlug[ slug ] = bySlug[ slug ] ||
				$( '<span class="plugin-install-info-list-item">' )
					.append( '<a href="https://wordpress.org/plugins/' + slug + '/" target="_blank">' + plugins[ i ].name + '</a>' );

			bySlug[ slug ].find( 'a' )
				.on( 'mouseenter mouseleave', ( function( $hover, event ) {
					$hover.toggleClass( 'plugin-install-source', 'mouseenter' === event.type );
				} ).bind( null, hover ? $el.closest( hover ) : $el ) );
		}
	}

	function updatePluginInfo() {
		var pluginLinkBySlug = {};
		var extraPlugins = [];

		$( '.wc-wizard-service-enable input:checked' ).each( function() {
			addPlugins( pluginLinkBySlug, $( this ), '.wc-wizard-service-item' );

			var $container = $( this ).closest( '.wc-wizard-service-item' );
			$container.find( 'input.payment-checkbox-input:checked' ).each( function() {
				extraPlugins.push( $( this ).attr( 'id' ) );
				addPlugins( pluginLinkBySlug, $( this ), '.wc-wizard-service-settings' );
			} );
			$container.find( '.wc-wizard-shipping-method-select .method' ).each( function() {
				var $this = $( this );
				if ( 'live_rates' === $this.val()  ) {
					addPlugins( pluginLinkBySlug, $this, '.wc-wizard-service-item' );
				}
			} );
		} );

		$( '.recommended-item input:checked' ).each( function() {
			addPlugins( pluginLinkBySlug, $( this ), '.recommended-item' );
		} );

		var $list = $( 'span.plugin-install-info-list' ).empty();

		for ( var slug in pluginLinkBySlug ) {
			$list.append( pluginLinkBySlug[ slug ] );
		}

		if (
			extraPlugins &&
			wc_setup_params.current_step &&
			wc_setup_params.i18n.extra_plugins[ wc_setup_params.current_step ] &&
			wc_setup_params.i18n.extra_plugins[ wc_setup_params.current_step ][ extraPlugins.join( ',' ) ]
		) {
			$list.append(
				wc_setup_params.i18n.extra_plugins[ wc_setup_params.current_step ][ extraPlugins.join( ',' ) ]
			);
		}

		$( 'span.plugin-install-info' ).toggle( $list.children().length > 0 );
	}

	updatePluginInfo();
	$( '.wc-setup-content' ).on( 'change', '[data-plugins]', updatePluginInfo );

	$( document.body ).on( 'init_tooltips', function() {
		$( '.help_tip' ).tipTip( {
			'attribute': 'data-tip',
			'fadeIn': 50,
			'fadeOut': 50,
			'delay': 200,
			'defaultPosition': 'top'
		} );
	} ).trigger( 'init_tooltips' );
} );

SILENT KILLER Tool