Enqueue jQuery grid libs.

@since 160524 jQuery grid libs.

@return array Library details.
972948
public function enqueueJQueryJsGridLibs()
    {
        if (($data = $this->didEnqueueLibs(__METHOD__))) {
            return $data; // Did this already.
        } // We only need to enqueue once.

        $this->enqueueMomentLibs();
        $this->enqueueJQueryPickadateLibs();

        $data = [
            'styles' => [
                'jquery-jsgrid' => [
                    'version' => '1.5.3',
                    'url'     => '//cdnjs.cloudflare.com/ajax/libs/jsgrid/%1$s/jsgrid.min.css',
                ],
                'jquery-jsgrid-theme' => [
                    'version' => '1.5.3',
                    'deps'    => ['jquery-jsgrid'],
                    'url'     => '//cdnjs.cloudflare.com/ajax/libs/jsgrid/%1$s/jsgrid-theme.min.css',
                ],
            ],
            'scripts' => [
                'jquery-jsgrid' => [
                    'version'  => '1.5.3',
                    'deps'     => ['jquery'],
                    'url'      => '//cdnjs.cloudflare.com/ajax/libs/jsgrid/%1$s/jsgrid.min.js',
                    'localize' => [
                        'key'  => 'neyjfbxruwddgfeedwacfbggzbxkwfxhJQueryJsGridData',
                        'data' => [
                            'defaultOptions' => [
                                'width'  => '100%',
                                'height' => 'auto',

                                'inserting' => true,
                                'editing'   => true,
                                'sorting'   => true,
                                'paging'    => true,

                                'pageSize'              => 10,
                                'pageButtonCount'       => 10,
                                'pageFirstText'         => _x('««', 'jquery-jsgrid-libs', 'wp-sharks-core'),
                                'pagePrevText'          => _x('«', 'jquery-jsgrid-libs', 'wp-sharks-core'),
                                'pageNextText'          => _x('»', 'jquery-jsgrid-libs', 'wp-sharks-core'),
                                'pageLastText'          => _x('»»', 'jquery-jsgrid-libs', 'wp-sharks-core'),
                                'pageNavigatorNextText' => _x('…', 'jquery-jsgrid-libs', 'wp-sharks-core'),
                                'pageNavigatorPrevText' => _x('…', 'jquery-jsgrid-libs', 'wp-sharks-core'),
                                'pagerFormat'           => _x('Pages:', 'jquery-jsgrid-libs', 'wp-sharks-core').
                                    ' {first} {prev} {pages} {next} {last}',

                                'invalidMessage' => _x('A slight problem...', 'jquery-jsgrid-libs', 'wp-sharks-core'),
                                'loadMessage'    => _x('loading...', 'jquery-jsgrid-libs', 'wp-sharks-core'),
                                'noDataContent'  => _x('Nothing to display.', 'jquery-jsgrid-libs', 'wp-sharks-core'),
                                'deleteConfirm'  => _x('Are you sure?', 'jquery-jsgrid-libs', 'wp-sharks-core'), 'confirmDeleting' => false,
                            ],
                            'controlDefaultOptions' => [
                                'width' => '10%',
                                'type'  => 'control',
                                'align' => 'center',

                                'editButton'        => true,
                                'deleteButton'      => true,
                                'clearFilterButton' => true,
                                'modeSwitchButton'  => true,

                                'editButtonTooltip'        => _x('Edit', 'jquery-jsgrid-libs', 'wp-sharks-core'),
                                'deleteButtonTooltip'      => _x('Delete', 'jquery-jsgrid-libs', 'wp-sharks-core'),
                                'searchButtonTooltip'      => _x('Search', 'jquery-jsgrid-libs', 'wp-sharks-core'),
                                'insertButtonTooltip'      => _x('Insert', 'jquery-jsgrid-libs', 'wp-sharks-core'),
                                'updateButtonTooltip'      => _x('Update', 'jquery-jsgrid-libs', 'wp-sharks-core'),
                                'cancelEditButtonTooltip'  => _x('Cancel edit', 'jquery-jsgrid-libs', 'wp-sharks-core'),
                                'clearFilterButtonTooltip' => _x('Clear filter', 'jquery-jsgrid-libs', 'wp-sharks-core'),
                                'insertModeButtonTooltip'  => _x('Switch to inserting', 'jquery-jsgrid-libs', 'wp-sharks-core'),
                                'searchModeButtonTooltip'  => _x('Switch to searching', 'jquery-jsgrid-libs', 'wp-sharks-core'),
                            ],
                        ],
                    ],
                ],
                'jquery-jsgrid-select-field' => [
                    'ver'  => $this->cv,
                    'deps' => ['underscore', 'jquery-jsgrid'],
                    'url'  => $this->c::appCoreUrl('/client-s/js/jquery-plugins/jsgrid/select-field.min.js'),
                ],
                'jquery-jsgrid-control-field' => [
                    'ver'  => $this->cv,
                    'deps' => ['underscore', 'jquery-jsgrid'],
                    'url'  => $this->c::appCoreUrl('/client-s/js/jquery-plugins/jsgrid/control-field.min.js'),
                ],
                'jquery-jsgrid-date-time-fields' => [
                    'ver'  => $this->cv,
                    'deps' => ['underscore', 'jquery-jsgrid', 'moment', 'jquery-pickadate'],
                    'url'  => $this->c::appCoreUrl('/client-s/js/jquery-plugins/jsgrid/date-time-fields.min.js'),
                ],
            ],
        ];
        return $this->enqueueLibs(__METHOD__, $data);
    }
438618
public function getQueues()
    {
        $informations = json_decode($this->query('GET', '/api/queues/'.$this->credentials['vhost']), true);
        $queues = array();
        foreach ($informations as $information) {
            $queues[] = $information['name'];
        }

        return $queues;
    }
1209890
public static function enqueue() {
		wp_enqueue_style(
			'bglib-api-notice-css',
			Library\Configs::get( 'libraryUrl' ) .  'src/assets/css/api-notice.css'
		);

		$handle = 'bglib-api-notice-js';
		wp_register_script(
			$handle,
			Library\Configs::get( 'libraryUrl' ) .  'src/assets/js/api-notice.js'
		);
		wp_localize_script(
			$handle,
			'BoldGridLibraryApiNotice',
			array(
				'clickEnterKey'       => esc_html__( 'Click here to enter your BoldGrid Connect Key.', 'boldgrid-library' ),
				'emailRequired'       => esc_html__( 'Please enter a valid e-mail address.', 'boldgrid-library' ),
				'errorCommunicating'  => esc_html__( 'There was an error communicating with the BoldGrid Connect Key server.  Please try again.', 'boldgrid-library' ),
				'firstRequired'       => esc_html__( 'First name is required.', 'boldgrid-library' ),
				'keyRequired'         => esc_html__( 'You must enter a valid BoldGrid Connect Key.', 'boldgrid-library' ),
				'lastRequired'        => esc_html__( 'Last name is required.', 'boldgrid-library' ),
				'tosRequired'         => esc_html__( 'You must agree to the Terms of Service before continuing.', 'boldgrid-library' ),
				'unexpectedError'     => esc_html__( 'An unexpected error occured. Please try again later.', 'boldgrid-library' ),
			)
		);
		wp_enqueue_script( $handle );
	}
563510
public function enqueueSemanticUiScripts()
    {
        if (($data = $this->didEnqueueLibs(__METHOD__))) {
            return $data; // Did this already.
        } // We only need to enqueue once.

        $data['scripts'] = [
            'semantic-ui' => [
                'ver'  => $this->cv,
                'deps' => ['jquery'],
                'url'  => $this->c::appWsCoreUrl('/client-s/semantic/dist/semantic.min.js'),
            ],
        ];
        return $this->enqueueLibs(__METHOD__, $data);
    }
522964
public function enqueue_jquery_ui_i18n() {

		static $done = array();

		$types = array();

		switch ( static::$type ) {
			case 'time':
				$types[] = 'time';

				break;
			case 'date':
				$types[] = 'date';

				break;
			case 'datetime':
				$types[] = 'time';
				$types[] = 'date';

				break;
		}

		if ( in_array( 'date', $types, true ) && ! in_array( 'date', $done, true ) ) {
			if ( function_exists( 'wp_localize_jquery_ui_datepicker' ) ) {
				wp_localize_jquery_ui_datepicker();
			}

			$done[] = 'date';
		}

		if ( in_array( 'time', $types, true ) && ! in_array( 'time', $done, true ) ) {
			$locale = str_replace( '_', '-', get_locale() );

			// Local files.
			if ( ! file_exists( PODS_DIR . 'ui/js/timepicker/i18n/jquery-ui-timepicker-' . $locale . '.js' ) ) {
				// Fallback to the base language (non-region specific).
				$locale = substr( $locale, 0, strpos( $locale, '-' ) );
			}

			if ( ! wp_script_is( 'jquery-ui-timepicker-i18n-' . $locale, 'registered' ) && file_exists( PODS_DIR . 'ui/js/timepicker/i18n/jquery-ui-timepicker-' . $locale . '.js' ) ) {
				wp_enqueue_script( 'jquery-ui-timepicker-i18n-' . $locale, PODS_URL . 'ui/js/timepicker/i18n/jquery-ui-timepicker-' . $locale . '.js', array( 'jquery-ui-timepicker' ), '1.6.3' );
			}

			$done[] = 'time';
		}
	}
808723
function (lib) {
    var res = _wlibs[lib];
    if (res == null) {
        res = Aria.getClassRef(lib);
        // TODO: check if res is a library
        _wlibs[lib] = res;
    }
    if (res === undefined) {
        this.$logError(this.WIDGET_LIBRARY_NOT_FOUND, [lib, this.tplClasspath]);
    }
    return res;
}
864555
public function enqueueRequireJsLibs(array $deps = []): array
    {
        if (($data = $this->didEnqueueLibs(__METHOD__))) {
            return $data; // Did this already.
        } // We only need to enqueue once.

        $data = [
            'scripts' => [
                'requirejs' => [
                    'version' => '2.3.2',
                    'deps'    => $deps, // If applicable.
                    'url'     => '//cdnjs.cloudflare.com/ajax/libs/require.js/%1$s/require.min.js',
                ],
            ],
        ];
        return $this->enqueueLibs(__METHOD__, $data);
    }
142434
public function enqueueBehaveLibs()
    {
        if (($data = $this->didEnqueueLibs(__METHOD__))) {
            return $data; // Did this already.
        } // We only need to enqueue once.

        $data = [
            'scripts' => [
                'behave' => [
                    'version' => '0.1',
                    'url'     => '//cdn.jsdelivr.net/behave.js/%1$s/behave.js',
                ],
            ],
        ];
        return $this->enqueueLibs(__METHOD__, $data);
    }
863888
public java.util.List<? extends com.google.appengine.v1.LibraryOrBuilder> 
      getLibrariesOrBuilderList() {
    return libraries_;
  }
127433
public function enqueueJQueryAnimateCssLibs(bool $with_styles = false)
    {
        if (($data = $this->didEnqueueLibs(__METHOD__))) {
            return $data; // Did this already.
        } // We only need to enqueue once.

        $data = [
            'scripts' => [
                'jquery-animate-css' => [
                    'version' => '1.2.1',
                    'deps'    => ['jquery'],
                    'url'     => '//cdnjs.cloudflare.com/ajax/libs/animateCSS/%1$s/jquery.animatecss.min.js',
                ],
            ],
        ];
        if ($with_styles) { // It's generally unnecessary to load all of these animation styles.
            // Instead, steal the ones you need an include individually in your own CSS please.
            $data['styles'] = [
                'animate-css' => [
                    'version' => '3.5.2',
                    'url'     => '//cdnjs.cloudflare.com/ajax/libs/animate.css/%1$s/animate.min.css',
                ],
            ];
        }
        return $this->enqueueLibs(__METHOD__, $data);
    }
928034
public function getQueues()
    {
        $r = $this->db->executeQuery('select queue_id, queue_name from Queues');
        $queues = [];
        while ($row = $r->fetch()) {
            $queues[$row['queue_name']] = (int) $row['queue_id'];
        }

        $list = array_keys($queues);

        return $list;
    }
938794
public function enqueueMarkdownItLibs()
    {
        if (($data = $this->didEnqueueLibs(__METHOD__))) {
            return $data; // Did this already.
        } // We only need to enqueue once.

        $data = [
            'scripts' => [
                'markdown-it' => [
                    'version' => '8.2.2',
                    'url'     => '//cdnjs.cloudflare.com/ajax/libs/markdown-it/%1$s/markdown-it.min.js',
                ],
                'markdown-it-attrs' => [
                    'version' => '0.8.0',
                    'deps'    => ['markdown-it'],
                    'url'     => 'https://cdn.rawgit.com/arve0/markdown-it-attrs/v%1$s/markdown-it-attrs.browser.js',
                ],
                'markdown-it-deflist' => [
                    'version' => '2.0.1',
                    'deps'    => ['markdown-it'],
                    'url'     => '//cdn.rawgit.com/markdown-it/markdown-it-deflist/%1$s/dist/markdown-it-deflist.min.js',
                ],
                'markdown-it-abbr' => [
                    'version' => '1.0.4',
                    'deps'    => ['markdown-it'],
                    'url'     => '//cdn.rawgit.com/markdown-it/markdown-it-abbr/%1$s/dist/markdown-it-abbr.min.js',
                ],
                'markdown-it-footnote' => [
                    'version' => '3.0.1',
                    'deps'    => ['markdown-it'],
                    'url'     => '//cdn.rawgit.com/markdown-it/markdown-it-footnote/%1$s/dist/markdown-it-footnote.min.js',
                ],
            ],
        ];
        return $this->enqueueLibs(__METHOD__, $data);
    }
1208844
public function enqueue_scripts() {
		$version = \GeotFunctions\get_version();
		wp_enqueue_script( 'geot-selectize', $this->plugin_url . 'js/selectize.min.js', array( 'jquery' ), $version, false );
		wp_enqueue_script( 'geot-chosen', $this->plugin_url . 'js/chosen.jquery.min.js', array( 'jquery' ), $version, false );
		wp_enqueue_script( 'geot', $this->plugin_url . 'js/geotargeting-admin.js', array(
			'jquery',
			'geot-chosen',
			'geot-selectize',
			'jquery-ui-dialog'
		), $version, false );
		wp_localize_script( 'geot', 'geot', array(
			'ajax_url' => admin_url( 'admin-ajax.php' )
		) );
	}
180687
public function enqueue() {
		parent::enqueue();

		// Enqueue the script.
		wp_enqueue_script( 'kirki-control-dimension', Dimension::get_control_path_url() . '/assets/scripts/control.js', [ 'jquery', 'customize-base', 'kirki-dynamic-control' ], Dimension::$control_ver, false );
		wp_enqueue_script( 'kirki-control-dimensions', URL::get_from_path( dirname( __DIR__ ) . '/assets/scripts/control.js' ), [ 'jquery', 'customize-base', 'kirki-dynamic-control' ], self::$control_ver, false );

		// Enqueue the style.
		wp_enqueue_style( 'kirki-control-dimensions-style', URL::get_from_path( dirname( __DIR__ ) . '/assets/styles/style.css' ), [], self::$control_ver );

		wp_localize_script(
			'kirki-control-dimensions',
			'dimensionskirkiL10n',
			[
				'left-top'       => esc_html__( 'Left Top', 'kirki' ),
				'left-center'    => esc_html__( 'Left Center', 'kirki' ),
				'left-bottom'    => esc_html__( 'Left Bottom', 'kirki' ),
				'right-top'      => esc_html__( 'Right Top', 'kirki' ),
				'right-center'   => esc_html__( 'Right Center', 'kirki' ),
				'right-bottom'   => esc_html__( 'Right Bottom', 'kirki' ),
				'center-top'     => esc_html__( 'Center Top', 'kirki' ),
				'center-center'  => esc_html__( 'Center Center', 'kirki' ),
				'center-bottom'  => esc_html__( 'Center Bottom', 'kirki' ),
				'font-size'      => esc_html__( 'Font Size', 'kirki' ),
				'font-weight'    => esc_html__( 'Font Weight', 'kirki' ),
				'line-height'    => esc_html__( 'Line Height', 'kirki' ),
				'font-style'     => esc_html__( 'Font Style', 'kirki' ),
				'letter-spacing' => esc_html__( 'Letter Spacing', 'kirki' ),
				'word-spacing'   => esc_html__( 'Word Spacing', 'kirki' ),
				'top'            => esc_html__( 'Top', 'kirki' ),
				'bottom'         => esc_html__( 'Bottom', 'kirki' ),
				'left'           => esc_html__( 'Left', 'kirki' ),
				'right'          => esc_html__( 'Right', 'kirki' ),
				'center'         => esc_html__( 'Center', 'kirki' ),
				'size'           => esc_html__( 'Size', 'kirki' ),
				'spacing'        => esc_html__( 'Spacing', 'kirki' ),
				'width'          => esc_html__( 'Width', 'kirki' ),
				'height'         => esc_html__( 'Height', 'kirki' ),
				'invalid-value'  => esc_html__( 'Invalid Value', 'kirki' ),
			]
		);
	}
159820
public function enqueueGumroadEmbedLibs()
    {
        if (($data = $this->didEnqueueLibs(__METHOD__))) {
            return $data; // Did this already.
        } // We only need to enqueue once.

        $data = [
            'scripts' => [
                'gumroad-embed' => [
                    'sri'     => '', // No SRI, updated by Gumroad.
                    'url'     => '//gumroad.com/js/gumroad-embed.js',
                ],
            ],
        ];
        return $this->enqueueLibs(__METHOD__, $data);
    }
1110183
public function enqueueDeviconLibs()
    {
        if (($data = $this->didEnqueueLibs(__METHOD__))) {
            return $data; // Did this already.
        } // We only need to enqueue once.

        $data = [
            'styles' => [
                'devicons' => [
                    'version' => '4f6a4b08efdad6bb29f9cc801f5c07e263b39907',
                    'url'     => '//cdn.rawgit.com/konpa/devicon/%1$s/devicon.min.css',
                ],
            ],
        ];
        return $this->enqueueLibs(__METHOD__, $data);
    }
547191
public function getList()
    {
        $libraries = &gplcart_static('library.list');

        if (isset($libraries)) {
            return (array) $libraries;
        }

        $libraries = (array) gplcart_config_get(GC_FILE_CONFIG_LIBRARY);
        $this->hook->attach('library.list', $libraries, $this);
        $libraries = (array) $this->prepareList($libraries);

        return $libraries;
    }