$32 GRAYBYTE WORDPRESS FILE MANAGER $78

SERVER : premium134.web-hosting.com #1 SMP Thu Mar 13 14:29:12 UTC 2025
SERVER IP : 162.0.232.104 | ADMIN IP 216.73.216.80
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/home/raydofqv/ctdatabase.work/wp-content/plugins/woocommerce/assets/js/admin/

HOME
Current File : /home/raydofqv/ctdatabase.work/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' );
} );

Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
29 Apr 2026 5.43 AM
raydofqv / raydofqv
0755
.htaccess
1.994 KB
29 Apr 2026 5.43 AM
raydofqv / raydofqv
0444
api-keys.js
3.893 KB
18 May 2021 9.00 PM
raydofqv / raydofqv
0644
api-keys.min.js
2.227 KB
18 Jul 2023 11.53 PM
raydofqv / raydofqv
0644
backbone-modal.js
4.354 KB
27 Dec 2023 12.45 AM
raydofqv / raydofqv
0644
backbone-modal.min.js
2.771 KB
27 Dec 2023 12.45 AM
raydofqv / raydofqv
0644
marketplace-suggestions.js
16.839 KB
1 Sep 2025 11.44 PM
raydofqv / raydofqv
0644
marketplace-suggestions.min.js
6.659 KB
1 Sep 2025 11.44 PM
raydofqv / raydofqv
0644
meta-boxes-coupon.js
2.985 KB
1 Apr 2025 3.51 PM
raydofqv / raydofqv
0644
meta-boxes-coupon.min.js
1.611 KB
1 Apr 2025 3.51 PM
raydofqv / raydofqv
0644
meta-boxes-order.js
54.511 KB
23 Feb 2026 5.58 PM
raydofqv / raydofqv
0644
meta-boxes-order.min.js
33.121 KB
23 Feb 2026 5.58 PM
raydofqv / raydofqv
0644
meta-boxes-product-variation.js
42.265 KB
12 May 2025 9.07 PM
raydofqv / raydofqv
0644
meta-boxes-product-variation.min.js
22.549 KB
12 May 2025 9.07 PM
raydofqv / raydofqv
0644
meta-boxes-product.js
34.687 KB
19 Jan 2026 2.46 PM
raydofqv / raydofqv
0644
meta-boxes-product.min.js
18.241 KB
19 Jan 2026 2.46 PM
raydofqv / raydofqv
0644
meta-boxes.js
4.95 KB
23 Feb 2026 5.58 PM
raydofqv / raydofqv
0644
meta-boxes.min.js
3.02 KB
23 Feb 2026 5.58 PM
raydofqv / raydofqv
0644
network-orders.js
2.338 KB
23 May 2018 7.30 PM
raydofqv / raydofqv
0644
network-orders.min.js
1.251 KB
18 Jul 2023 11.53 PM
raydofqv / raydofqv
0644
order-attribution-admin.js
1.157 KB
27 Dec 2023 12.45 AM
raydofqv / raydofqv
0644
order-attribution-admin.min.js
0.713 KB
27 Dec 2023 12.45 AM
raydofqv / raydofqv
0644
product-editor.js
0.68 KB
29 Jul 2025 12.34 PM
raydofqv / raydofqv
0644
product-editor.min.js
0.291 KB
29 Jul 2025 12.34 PM
raydofqv / raydofqv
0644
product-ordering.js
2.604 KB
30 Mar 2026 5.12 PM
raydofqv / raydofqv
0644
product-ordering.min.js
1.664 KB
30 Mar 2026 5.12 PM
raydofqv / raydofqv
0644
quick-edit.js
7.062 KB
3 Mar 2025 10.28 PM
raydofqv / raydofqv
0644
quick-edit.min.js
4.581 KB
3 Mar 2025 10.28 PM
raydofqv / raydofqv
0644
reports.js
5.389 KB
14 Nov 2024 1.17 AM
raydofqv / raydofqv
0644
reports.min.js
2.7 KB
14 Nov 2024 1.17 AM
raydofqv / raydofqv
0644
settings-views-html-settings-tax.js
12.035 KB
3 Mar 2025 10.28 PM
raydofqv / raydofqv
0644
settings-views-html-settings-tax.min.js
6.085 KB
3 Mar 2025 10.28 PM
raydofqv / raydofqv
0644
settings.js
11.946 KB
12 May 2025 9.07 PM
raydofqv / raydofqv
0644
settings.min.js
6.252 KB
12 May 2025 9.07 PM
raydofqv / raydofqv
0644
system-status.js
5.382 KB
30 Mar 2026 5.12 PM
raydofqv / raydofqv
0644
system-status.min.js
3.077 KB
30 Mar 2026 5.12 PM
raydofqv / raydofqv
0644
term-ordering.js
4.619 KB
30 Mar 2026 5.12 PM
raydofqv / raydofqv
0644
term-ordering.min.js
2.52 KB
30 Mar 2026 5.12 PM
raydofqv / raydofqv
0644
users.js
3.784 KB
18 May 2021 9.00 PM
raydofqv / raydofqv
0644
users.min.js
1.87 KB
18 Jul 2023 11.53 PM
raydofqv / raydofqv
0644
wc-brands-enhanced-select.js
4.063 KB
23 Sep 2024 8.44 PM
raydofqv / raydofqv
0644
wc-brands-enhanced-select.min.js
1.592 KB
23 Sep 2024 8.44 PM
raydofqv / raydofqv
0644
wc-clipboard.js
0.849 KB
18 May 2021 9.00 PM
raydofqv / raydofqv
0644
wc-clipboard.min.js
0.328 KB
18 May 2021 9.00 PM
raydofqv / raydofqv
0644
wc-customer-stock-notifications.js
1.612 KB
1 Sep 2025 11.44 PM
raydofqv / raydofqv
0644
wc-customer-stock-notifications.min.js
1.127 KB
1 Sep 2025 11.44 PM
raydofqv / raydofqv
0644
wc-enhanced-select.js
13.58 KB
16 Aug 2023 12.05 AM
raydofqv / raydofqv
0644
wc-enhanced-select.min.js
7.707 KB
16 Aug 2023 12.05 AM
raydofqv / raydofqv
0644
wc-orders.js
1.977 KB
19 Oct 2022 12.34 AM
raydofqv / raydofqv
0644
wc-orders.min.js
1.167 KB
18 Jul 2023 11.53 PM
raydofqv / raydofqv
0644
wc-product-export.js
3.789 KB
12 May 2025 9.07 PM
raydofqv / raydofqv
0644
wc-product-export.min.js
2.091 KB
12 May 2025 9.07 PM
raydofqv / raydofqv
0644
wc-product-import.js
2.925 KB
24 May 2023 3.17 AM
raydofqv / raydofqv
0644
wc-product-import.min.js
1.701 KB
18 Jul 2023 11.53 PM
raydofqv / raydofqv
0644
wc-recent-reviews-widget-async.js
1.435 KB
23 Feb 2026 5.58 PM
raydofqv / raydofqv
0644
wc-recent-reviews-widget-async.min.js
0.623 KB
23 Feb 2026 5.58 PM
raydofqv / raydofqv
0644
wc-setup.js
10.049 KB
18 May 2021 9.00 PM
raydofqv / raydofqv
0644
wc-setup.min.js
6.35 KB
18 Jul 2023 11.53 PM
raydofqv / raydofqv
0644
wc-shipping-classes.js
6.567 KB
3 Mar 2025 10.28 PM
raydofqv / raydofqv
0644
wc-shipping-classes.min.js
3.565 KB
3 Mar 2025 10.28 PM
raydofqv / raydofqv
0644
wc-shipping-providers.js
7.042 KB
30 Mar 2026 5.12 PM
raydofqv / raydofqv
0644
wc-shipping-providers.min.js
3.902 KB
30 Mar 2026 5.12 PM
raydofqv / raydofqv
0644
wc-shipping-zone-methods.js
35.427 KB
19 Jan 2026 2.46 PM
raydofqv / raydofqv
0644
wc-shipping-zone-methods.min.js
17.098 KB
19 Jan 2026 2.46 PM
raydofqv / raydofqv
0644
wc-shipping-zones.js
9.23 KB
3 Mar 2025 10.28 PM
raydofqv / raydofqv
0644
wc-shipping-zones.min.js
4.854 KB
3 Mar 2025 10.28 PM
raydofqv / raydofqv
0644
wc-status-widget-async.js
1.332 KB
23 Feb 2026 5.58 PM
raydofqv / raydofqv
0644
wc-status-widget-async.min.js
0.561 KB
23 Feb 2026 5.58 PM
raydofqv / raydofqv
0644
wc-status-widget.js
1.781 KB
14 Nov 2024 1.17 AM
raydofqv / raydofqv
0644
wc-status-widget.min.js
1.049 KB
14 Nov 2024 1.17 AM
raydofqv / raydofqv
0644
woocommerce_admin.js
22.321 KB
23 Feb 2026 5.58 PM
raydofqv / raydofqv
0644
woocommerce_admin.min.js
11.928 KB
23 Feb 2026 5.58 PM
raydofqv / raydofqv
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF Static GIF