Enqueues the script that handles postMessage
and adds variables to it using the wp_localize_script function.
The rest is handled via JS.

@access public
@since 3.0.28
@return void
348779
public function postmessage() {
		wp_enqueue_script( 'kirki_auto_css_vars', URL::get_from_path( __DIR__ . '/script.js' ), [ 'jquery', 'customize-preview' ], KIRKI_VERSION, true );
		$fields = array_merge( Kirki::$fields, $this->fields );
		$data   = [];
		foreach ( $fields as $field ) {
			if ( isset( $field['transport'] ) && 'postMessage' === $field['transport'] && isset( $field['css_vars'] ) && ! empty( $field['css_vars'] ) ) {
				$data[] = $field;
			}
		}
		wp_localize_script( 'kirki_auto_css_vars', 'kirkiCssVarFields', $data );
	}
877133
function admin_enqueue_scripts()
	{
		// validate page
		if( ! $this->validate_page() ){ return; }
		
		
		// settings
		$this->settings = apply_filters('acf/get_info', 'all');
		
		
		// no autosave
		wp_dequeue_script( 'autosave' );
		
		
		// custom scripts
		wp_enqueue_script(array(
			'acf-field-group',
		));
		
		
		// custom styles
		wp_enqueue_style(array(
			'acf-global',
			'acf-field-group',
		));
		
		
		// actions
		do_action('acf/field_group/admin_enqueue_scripts');
		add_action('admin_head', array($this,'admin_head'));
		
	}
537358
public function init() {

		$posts = array();

		if ( ! $posts = wp_cache_get( 'sidebars', 'custom_sidebars' ) ) {
			$args = array(
				'post_type' => Custom_Sidebars::get_post_types(),
				'meta_query' => array(
					array(
						'key'   => '_custom_sidebar',
						'value' => true,
					)
				)
			);

			$query = new WP_Query( $args );

			if ( $query->have_posts() ) {
				$posts = $query->posts;
			}

			wp_cache_set( 'sidebars', 'custom_sidebars' );
		}

		foreach ( $posts as $post ) {
			$args = apply_filters( 'custom_sidebar_args', array(
				'name'          => sprintf( __( 'Sidebar: %s', 'custom_sidebars' ), $post->post_title ),
				'id'            => $this->get_sidebar_id( $post->ID ),
				'description'   => sprintf( __( 'This sidebar will appear on the %s single page.', 'cd-sidebar' ), $post->post_title ),
				'class'         => '',
				'before_widget' => '<aside id="%1$s" class="widget %2$s">',
				'after_widget'  => '</aside>',
				'before_title'  => '<h2 class="widget-title">',
				'after_title'   => '</h2>',
			) );

			register_sidebar( $args );
		}

	}
850209
public function enqueue_css_js() {
		$pointer_name = 'custom-post-type-permalinks-settings';
		if ( ! is_network_admin() ) {
			$dismissed = explode( ',', get_user_meta( get_current_user_id(), 'dismissed_wp_pointers', true ) );
			if ( false === array_search( $pointer_name, $dismissed, true ) ) {
				$content = '';
				$content .= '<h3>' . __( 'Custom Post Type Permalinks', 'custom-post-type-permalinks' ) . '</h3>';
				$content .= '<p>' . __( 'You can setting permalink for post type in <a href="options-permalink.php">Permalinks</a>.', 'custom-post-type-permalinks' ) . '</p>';

				wp_enqueue_style( 'wp-pointer' );
				wp_enqueue_script( 'wp-pointer' );
				wp_enqueue_script( 'custom-post-type-permalinks-pointer', plugins_url( 'assets/settings-pointer.js', CPTP_PLUGIN_FILE ), array( 'wp-pointer' ), CPTP_VERSION );

				wp_localize_script( 'custom-post-type-permalinks-pointer', 'CPTP_Settings_Pointer', array(
					'content' => $content,
					'name'    => $pointer_name,
				) );
			}
		}
	}
132777
function init_ui()
    {
        if ($this->ui_initialized) {
            return;
        }

        // load localization
        $this->add_texts('localization/');

        $sieve_action = strpos($this->rc->action, 'plugin.managesieve') === 0;

        if ($this->rc->task == 'mail' || $sieve_action) {
            $this->include_script('managesieve.js');
        }

        // include styles
        $skin_path = $this->local_skin_path();
        if ($sieve_action || ($this->rc->task == 'settings' && empty($_REQUEST['_framed']))) {
            $this->include_stylesheet("$skin_path/managesieve.css");
        }
        else if ($this->rc->task == 'mail') {
            $this->include_stylesheet("$skin_path/managesieve_mail.css");
        }

        $this->ui_initialized = true;
    }
371372
public function _admin_enqueue_scripts() {
		$relative_path = '/vendor/inc2734/wp-customizer-framework/src/assets/js/wp-customizer-framework.js';
		$src  = get_template_directory_uri() . $relative_path;
		$path = get_template_directory() . $relative_path;

		wp_enqueue_script(
			'inc2734-wp-customizer-framework',
			$src,
			[ 'jquery' ],
			filemtime( $path ),
			true
		);
	}
988704
public function enqueue_scripts() {
		wp_enqueue_style( 'kirki-control-typography-style', URL::get_from_path( dirname( __DIR__ ) . '/assets/styles/style.css' ), [], '1.0' );

		wp_enqueue_script( 'kirki-typography', URL::get_from_path( dirname( __DIR__ ) . '/assets/scripts/script.js' ), [], '1.0', true );
		wp_localize_script( 'kirki-typography', 'kirkiTypographyControls', self::$typography_controls );

		if ( ! self::$gfonts_var_added ) {
			echo '<script>kirkiGoogleFonts=';
			$google = new GoogleFonts();
			$google->print_googlefonts_json( false );
			echo ';</script>';
			self::$gfonts_var_added = true;
		}
	}
58559
public function addFrontEndInlineScript()
    {
        $script = 'var jentilShortTags = '.\wp_json_encode(
            $this->app->utilities->shortTags->get()
        ).';';

        \wp_add_inline_script($this->id, $script, 'before');
    }
1269099
public function admin_enqueue_scripts($page){
		if( 'tools_page_wpametu-batch' == $page ){
			wp_enqueue_script('wpametu-batch-helper');
			wp_localize_script('wpametu-batch-helper', 'WpametuBatch', [
				'confirm' => $this->__('Are you sure to execute this?'),
				'alert' => $this->__('No Batch is selected.'),
				'done' => $this->__('[DONE] Batch process done.')
			]);
			wp_enqueue_style('wpametu-batch-screen');
		}
	}
535881
function enqueue_admin_scripts( $hook ) {

		if ( $this->options_screen != $hook )
	        return;

		// Enqueue custom option panel JS
		wp_enqueue_script( 'options-custom', plugin_dir_url( dirname(__FILE__) ) . 'js/options-custom.js', array( 'jquery','wp-color-picker' ), Options_Framework::VERSION );

		// Inline scripts from options-interface.php
		add_action( 'admin_head', array( $this, 'of_admin_head' ) );
	}
249451
private static function init() {
        $lang = isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])? substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2) : null;
        if (empty($lang))
            $lang = "es";
        self::$language = $lang;
        self::$messages = [];
        self::$messagesPath = get_property("app.messages_path", get_app()->resourcesPath() . DIRECTORY_SEPARATOR . "messages");
    }
850725
public function _wp_enqueue_scripts() {
		$relative_path = '/vendor/inc2734/wp-awesome-widgets/src/assets/css/wp-awesome-widgets.min.css';
		wp_enqueue_style(
			'wp-awesome-widgets',
			get_template_directory_uri() . $relative_path,
			[],
			filemtime( get_template_directory() . $relative_path )
		);

		$relative_path = '/vendor/inc2734/wp-awesome-widgets/src/assets/js/wp-awesome-widgets.min.js';
		wp_enqueue_script(
			'wp-awesome-widgets',
			get_template_directory_uri() . $relative_path,
			[ 'jquery' ],
			filemtime( get_template_directory() . $relative_path ),
			true
		);
	}
350402
function( locale, messages ) {
			if ( !this.messages[locale] ) {
				this.messages[locale] = messages;
			} else {
				this.messages[locale] = $.extend( this.messages[locale], messages );
			}
		}
1111061
public function enqueue() {
		wp_register_style(
			'bglib-ui-css',
			Library\Configs::get( 'libraryUrl' ) . 'src/assets/css/ui.css'
		);

		wp_register_script(
			'bglib-ui-js',
			Library\Configs::get( 'libraryUrl' ) . 'src/assets/js/ui.js',
			'jquery.sticky-kit'
		);

		wp_register_script(
			'bglib-sticky',
			Library\Configs::get( 'libraryUrl' ) . 'src/assets/js/sticky.js',
			'jquery'
		);

		wp_register_style(
			'bglib-attributes-css',
			Library\Configs::get( 'libraryUrl' ) . 'src/assets/css/attributes.css'
		);

		wp_register_script(
			'bglib-attributes-js',
			Library\Configs::get( 'libraryUrl' ) . 'src/assets/js/attributes.js',
			'jquery'
		);
	}
61386
public function _wp_enqueue_scripts() {
		if ( ! $this->_is_async_attachment_images() && ! $this->_is_async_content_images() ) {
			return;
		}

		$relative_path = '/vendor/inc2734/wp-page-speed-optimization/src/assets/js/app.min.js';
		wp_enqueue_script(
			'wp-page-speed-optimization',
			get_template_directory_uri() . $relative_path,
			[],
			filemtime( get_template_directory() . $relative_path ),
			true
		);
	}
41898
public function _wp_enqueue_scripts() {
		$relative_path = '/vendor/inc2734/wp-contents-outline/src/assets/packages/jquery.contents-outline/dist/jquery.contents-outline.min.js';
		$src  = get_template_directory_uri() . $relative_path;
		$path = get_template_directory() . $relative_path;

		wp_enqueue_script(
			'jquery.contents-outline',
			$src,
			[ 'jquery' ],
			filemtime( $path ),
			true
		);

		$relative_path = '/vendor/inc2734/wp-contents-outline/src/assets/js/app.min.js';
		$src  = get_template_directory_uri() . $relative_path;
		$path = get_template_directory() . $relative_path;

		wp_enqueue_script(
			'wp-contents-outline',
			$src,
			[ 'jquery.contents-outline' ],
			filemtime( $path ),
			true
		);
	}
1351860
public function _admin_enqueue_scripts() {
		do_action( 'inc2734_wp_awesome_widgets_before_admin_enqueue_scripts' );

		if ( ! did_action( 'wp_enqueue_media' ) ) {
			wp_enqueue_media();
		}

		$relative_path = '/vendor/inc2734/wp-awesome-widgets/src/assets/admin-css/wp-awesome-widgets-admin.min.css';
		wp_enqueue_style(
			'wp-awesome-widgets-admin',
			get_template_directory_uri() . $relative_path,
			[],
			filemtime( get_template_directory() . $relative_path )
		);

		$relative_path = '/vendor/inc2734/wp-awesome-widgets/src/assets/admin-js/wp-awesome-widgets-admin.min.js';
		wp_enqueue_script(
			'wp-awesome-widgets-admin',
			get_template_directory_uri() . $relative_path,
			[ 'jquery', 'jquery-ui-sortable', 'wp-color-picker' ],
			filemtime( get_template_directory() . $relative_path ),
			true
		);

		wp_localize_script(
			'wp-awesome-widgets-admin',
			'wp_awesome_widgets_item_selector_wp_api',
			[
				'root' => esc_url_raw( rest_url() ),
			]
		);

		wp_enqueue_style( 'wp-color-picker' );

		do_action( 'inc2734_wp_awesome_widgets_after_admin_enqueue_scripts' );
	}