From 5a893819fe73125d9170992a493fb79c5f068a1a Mon Sep 17 00:00:00 2001 From: sdobreff Date: Tue, 4 Jun 2024 07:18:35 +0000 Subject: [PATCH] switched versions of select2 --- .editorconfig | 0 .eslintignore | 0 .eslintrc.js | 0 .github/workflows/wpcs.yml | 0 .gitignore | 0 .gitpod/.init.sh | 2 + .vscode/launch.json | 0 README.md | 0 admin-notices-manager.php | 4 +- assets/dist/js/notices.js | 0 assets/dist/js/notices.min.js | 0 assets/dist/js/pointer.js | 0 assets/dist/js/pointer.min.js | 0 assets/dist/js/settings.js | 0 assets/dist/js/settings.min.js | 0 assets/index.php | 0 assets/js/admin/notices.js | 0 assets/js/admin/pointer.js | 35 -- assets/js/admin/settings.js | 0 composer.json | 3 +- config/webpack.config.common.js | 0 config/webpack.config.dev.js | 0 config/webpack.config.prod.js | 0 config/webpack.settings.js | 0 gulpfile.babel.js | 0 includes/classes/.gitkeep | 0 includes/classes/class-notices.php | 0 includes/classes/class-pointer-manager.php | 184 ------- includes/classes/class-pointer.php | 80 ---- includes/classes/class-pointers.php | 187 ++++++++ includes/classes/class-settings.php | 36 +- .../vendor/Select2/assets/css/select2.min.css | 1 + .../Select2/assets/css/wp-overrides.css | 47 ++ .../vendor/Select2/assets/js/i18n/af.js | 3 + .../vendor/Select2/assets/js/i18n/ar.js | 3 + .../vendor/Select2/assets/js/i18n/az.js | 3 + .../vendor/Select2/assets/js/i18n/bg.js | 3 + .../vendor/Select2/assets/js/i18n/bn.js | 3 + .../vendor/Select2/assets/js/i18n/bs.js | 3 + .../vendor/Select2/assets/js/i18n/build.txt | 236 +++++++++ .../vendor/Select2/assets/js/i18n/ca.js | 3 + .../vendor/Select2/assets/js/i18n/cs.js | 3 + .../vendor/Select2/assets/js/i18n/da.js | 3 + .../vendor/Select2/assets/js/i18n/de.js | 3 + .../vendor/Select2/assets/js/i18n/dsb.js | 3 + .../vendor/Select2/assets/js/i18n/el.js | 3 + .../vendor/Select2/assets/js/i18n/en.js | 3 + .../vendor/Select2/assets/js/i18n/es.js | 3 + .../vendor/Select2/assets/js/i18n/et.js | 3 + .../vendor/Select2/assets/js/i18n/eu.js | 3 + .../vendor/Select2/assets/js/i18n/fa.js | 3 + .../vendor/Select2/assets/js/i18n/fi.js | 3 + .../vendor/Select2/assets/js/i18n/fr.js | 3 + .../vendor/Select2/assets/js/i18n/gl.js | 3 + .../vendor/Select2/assets/js/i18n/he.js | 3 + .../vendor/Select2/assets/js/i18n/hi.js | 3 + .../vendor/Select2/assets/js/i18n/hr.js | 3 + .../vendor/Select2/assets/js/i18n/hsb.js | 3 + .../vendor/Select2/assets/js/i18n/hu.js | 3 + .../vendor/Select2/assets/js/i18n/hy.js | 3 + .../vendor/Select2/assets/js/i18n/id.js | 3 + .../vendor/Select2/assets/js/i18n/is.js | 3 + .../vendor/Select2/assets/js/i18n/it.js | 3 + .../vendor/Select2/assets/js/i18n/ja.js | 3 + .../vendor/Select2/assets/js/i18n/ka.js | 3 + .../vendor/Select2/assets/js/i18n/km.js | 3 + .../vendor/Select2/assets/js/i18n/ko.js | 3 + .../vendor/Select2/assets/js/i18n/lt.js | 3 + .../vendor/Select2/assets/js/i18n/lv.js | 3 + .../vendor/Select2/assets/js/i18n/mk.js | 3 + .../vendor/Select2/assets/js/i18n/ms.js | 3 + .../vendor/Select2/assets/js/i18n/nb.js | 3 + .../vendor/Select2/assets/js/i18n/ne.js | 3 + .../vendor/Select2/assets/js/i18n/nl.js | 3 + .../vendor/Select2/assets/js/i18n/pl.js | 3 + .../vendor/Select2/assets/js/i18n/ps.js | 3 + .../vendor/Select2/assets/js/i18n/pt-BR.js | 3 + .../vendor/Select2/assets/js/i18n/pt.js | 3 + .../vendor/Select2/assets/js/i18n/ro.js | 3 + .../vendor/Select2/assets/js/i18n/ru.js | 3 + .../vendor/Select2/assets/js/i18n/sk.js | 3 + .../vendor/Select2/assets/js/i18n/sl.js | 3 + .../vendor/Select2/assets/js/i18n/sq.js | 3 + .../vendor/Select2/assets/js/i18n/sr-Cyrl.js | 3 + .../vendor/Select2/assets/js/i18n/sr.js | 3 + .../vendor/Select2/assets/js/i18n/sv.js | 3 + .../vendor/Select2/assets/js/i18n/th.js | 3 + .../vendor/Select2/assets/js/i18n/tk.js | 3 + .../vendor/Select2/assets/js/i18n/tr.js | 3 + .../vendor/Select2/assets/js/i18n/uk.js | 3 + .../vendor/Select2/assets/js/i18n/vi.js | 3 + .../vendor/Select2/assets/js/i18n/zh-CN.js | 3 + .../vendor/Select2/assets/js/i18n/zh-TW.js | 3 + .../Select2/assets/js/select2.full.min.js | 2 + .../vendor/Select2/class-select2-wpws.php | 450 ++++++++++++++++++ .../vendor/class-rational-option-pages.php | 0 includes/functions/core.php | 23 +- includes/index.php | 0 index.php | 0 languages/admin-notices-manager-sk_SK.mo | Bin languages/admin-notices-manager-sk_SK.po | 0 languages/admin-notices-manager.pot | 0 languages/index.php | 0 package-lock.json | 0 package.json | 0 phpunit.xml | 0 readme.txt | 0 tests/bootstrap.php | 0 tests/js/.gitkeep | 0 tests/phpunit/test-tools/Core_Tests.php | 0 tests/phpunit/test-tools/TestCase.php | 0 uninstall.php | 0 wpgulp.config.js | 0 113 files changed, 1140 insertions(+), 327 deletions(-) mode change 100644 => 100755 .editorconfig mode change 100644 => 100755 .eslintignore mode change 100644 => 100755 .eslintrc.js mode change 100644 => 100755 .github/workflows/wpcs.yml mode change 100644 => 100755 .gitignore mode change 100644 => 100755 .vscode/launch.json mode change 100644 => 100755 README.md mode change 100644 => 100755 admin-notices-manager.php mode change 100644 => 100755 assets/dist/js/notices.js mode change 100644 => 100755 assets/dist/js/notices.min.js mode change 100644 => 100755 assets/dist/js/pointer.js mode change 100644 => 100755 assets/dist/js/pointer.min.js mode change 100644 => 100755 assets/dist/js/settings.js mode change 100644 => 100755 assets/dist/js/settings.min.js mode change 100644 => 100755 assets/index.php mode change 100644 => 100755 assets/js/admin/notices.js delete mode 100644 assets/js/admin/pointer.js mode change 100644 => 100755 assets/js/admin/settings.js mode change 100644 => 100755 composer.json mode change 100644 => 100755 config/webpack.config.common.js mode change 100644 => 100755 config/webpack.config.dev.js mode change 100644 => 100755 config/webpack.config.prod.js mode change 100644 => 100755 config/webpack.settings.js mode change 100644 => 100755 gulpfile.babel.js mode change 100644 => 100755 includes/classes/.gitkeep mode change 100644 => 100755 includes/classes/class-notices.php delete mode 100644 includes/classes/class-pointer-manager.php delete mode 100644 includes/classes/class-pointer.php create mode 100755 includes/classes/class-pointers.php mode change 100644 => 100755 includes/classes/class-settings.php create mode 100755 includes/classes/vendor/Select2/assets/css/select2.min.css create mode 100755 includes/classes/vendor/Select2/assets/css/wp-overrides.css create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/af.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/ar.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/az.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/bg.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/bn.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/bs.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/build.txt create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/ca.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/cs.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/da.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/de.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/dsb.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/el.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/en.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/es.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/et.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/eu.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/fa.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/fi.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/fr.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/gl.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/he.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/hi.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/hr.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/hsb.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/hu.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/hy.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/id.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/is.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/it.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/ja.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/ka.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/km.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/ko.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/lt.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/lv.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/mk.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/ms.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/nb.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/ne.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/nl.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/pl.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/ps.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/pt-BR.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/pt.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/ro.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/ru.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/sk.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/sl.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/sq.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/sr-Cyrl.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/sr.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/sv.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/th.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/tk.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/tr.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/uk.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/vi.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/zh-CN.js create mode 100755 includes/classes/vendor/Select2/assets/js/i18n/zh-TW.js create mode 100755 includes/classes/vendor/Select2/assets/js/select2.full.min.js create mode 100755 includes/classes/vendor/Select2/class-select2-wpws.php mode change 100644 => 100755 includes/classes/vendor/class-rational-option-pages.php mode change 100644 => 100755 includes/functions/core.php mode change 100644 => 100755 includes/index.php mode change 100644 => 100755 index.php mode change 100644 => 100755 languages/admin-notices-manager-sk_SK.mo mode change 100644 => 100755 languages/admin-notices-manager-sk_SK.po mode change 100644 => 100755 languages/admin-notices-manager.pot mode change 100644 => 100755 languages/index.php mode change 100644 => 100755 package-lock.json mode change 100644 => 100755 package.json mode change 100644 => 100755 phpunit.xml mode change 100644 => 100755 readme.txt mode change 100644 => 100755 tests/bootstrap.php mode change 100644 => 100755 tests/js/.gitkeep mode change 100644 => 100755 tests/phpunit/test-tools/Core_Tests.php mode change 100644 => 100755 tests/phpunit/test-tools/TestCase.php mode change 100644 => 100755 uninstall.php mode change 100644 => 100755 wpgulp.config.js diff --git a/.editorconfig b/.editorconfig old mode 100644 new mode 100755 diff --git a/.eslintignore b/.eslintignore old mode 100644 new mode 100755 diff --git a/.eslintrc.js b/.eslintrc.js old mode 100644 new mode 100755 diff --git a/.github/workflows/wpcs.yml b/.github/workflows/wpcs.yml old mode 100644 new mode 100755 diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/.gitpod/.init.sh b/.gitpod/.init.sh index 86b44ef..8e84ed3 100755 --- a/.gitpod/.init.sh +++ b/.gitpod/.init.sh @@ -39,6 +39,8 @@ FLAG="$GITPOD_REPO_ROOT/bin/install-dependencies.sh" # search the flag file if [ -f $FLAG ]; then /bin/bash $FLAG +else + composer update --no-dev fi FLAG="$GITPOD_REPO_ROOT/bin/set-assets.sh" diff --git a/.vscode/launch.json b/.vscode/launch.json old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/admin-notices-manager.php b/admin-notices-manager.php old mode 100644 new mode 100755 index 4f83965..779c96a --- a/admin-notices-manager.php +++ b/admin-notices-manager.php @@ -5,7 +5,7 @@ * Description: Better manage admin notices & never miss an important WordPress and developer message. * Author: WP White Security * Author URI: https://www.wpwhitesecurity.com/ - * Version: 1.4.0 + * Version: 1.6.0 * Text Domain: admin-notices-manager * Domain Path: /languages * Requires at least: 5.0 @@ -40,7 +40,7 @@ // Useful global constants. if ( ! defined( 'ADMIN_NOTICES_MANAGER_VERSION' ) ) { - define( 'ADMIN_NOTICES_MANAGER_VERSION', '1.4.0' ); + define( 'ADMIN_NOTICES_MANAGER_VERSION', '1.6.0' ); define( 'ADMIN_NOTICES_MANAGER_URL', \plugin_dir_url( __FILE__ ) ); define( 'ADMIN_NOTICES_MANAGER_PATH', \plugin_dir_path( __FILE__ ) ); define( 'ADMIN_NOTICES_MANAGER_INC', ADMIN_NOTICES_MANAGER_PATH . 'includes/' ); diff --git a/assets/dist/js/notices.js b/assets/dist/js/notices.js old mode 100644 new mode 100755 diff --git a/assets/dist/js/notices.min.js b/assets/dist/js/notices.min.js old mode 100644 new mode 100755 diff --git a/assets/dist/js/pointer.js b/assets/dist/js/pointer.js old mode 100644 new mode 100755 diff --git a/assets/dist/js/pointer.min.js b/assets/dist/js/pointer.min.js old mode 100644 new mode 100755 diff --git a/assets/dist/js/settings.js b/assets/dist/js/settings.js old mode 100644 new mode 100755 diff --git a/assets/dist/js/settings.min.js b/assets/dist/js/settings.min.js old mode 100644 new mode 100755 diff --git a/assets/index.php b/assets/index.php old mode 100644 new mode 100755 diff --git a/assets/js/admin/notices.js b/assets/js/admin/notices.js old mode 100644 new mode 100755 diff --git a/assets/js/admin/pointer.js b/assets/js/admin/pointer.js deleted file mode 100644 index c1f9e7b..0000000 --- a/assets/js/admin/pointer.js +++ /dev/null @@ -1,35 +0,0 @@ -/** - * Pointer helper. - * - * @since 1.0.0 - */ -jQuery(document).ready(function ($) { - function open_pointer (i) { - if (wpws_pointers[i]) { - const pointer = wpws_pointers[i] - let options = $.extend(pointer.options, { - close: function () { - $.post(ajaxurl, { - pointer: pointer.pointer_id, - action: 'wpws_dismiss_wp_pointer' - }) - - // open next pointer if available - open_pointer(i + 1) - } - }) - - // open the pointer - const pp = $(pointer.target).first().pointer(options) - $('html, body').animate({ // scroll page to pointer - scrollTop: pp.offset().top - 30 - }, 300, function () { // when scroll complete - let $widget = pp.pointer('widget') - pp.pointer('open') - }) - } - } - - // open the first pointer - open_pointer(0) -}) diff --git a/assets/js/admin/settings.js b/assets/js/admin/settings.js old mode 100644 new mode 100755 diff --git a/composer.json b/composer.json old mode 100644 new mode 100755 index 068a02c..4dedfb6 --- a/composer.json +++ b/composer.json @@ -14,8 +14,7 @@ } ], "require": { - "php": ">=7.0", - "wpwhitesecurity/select2-wpwhitesecurity": "v1.0.1" + "php": ">=7.0" }, "autoload": { "psr-4": { diff --git a/config/webpack.config.common.js b/config/webpack.config.common.js old mode 100644 new mode 100755 diff --git a/config/webpack.config.dev.js b/config/webpack.config.dev.js old mode 100644 new mode 100755 diff --git a/config/webpack.config.prod.js b/config/webpack.config.prod.js old mode 100644 new mode 100755 diff --git a/config/webpack.settings.js b/config/webpack.settings.js old mode 100644 new mode 100755 diff --git a/gulpfile.babel.js b/gulpfile.babel.js old mode 100644 new mode 100755 diff --git a/includes/classes/.gitkeep b/includes/classes/.gitkeep old mode 100644 new mode 100755 diff --git a/includes/classes/class-notices.php b/includes/classes/class-notices.php old mode 100644 new mode 100755 diff --git a/includes/classes/class-pointer-manager.php b/includes/classes/class-pointer-manager.php deleted file mode 100644 index 6872a3c..0000000 --- a/includes/classes/class-pointer-manager.php +++ /dev/null @@ -1,184 +0,0 @@ - $pointer ) { - - // Don't display if already dismissed. - if ( self::is_dismissed( $pointer_id ) ) { - return; - } - - $pointer['pointer_id'] = $pointer['id']; - unset( $pointer['id'] ); - - // Add the pointer to $valid_pointers array. - $valid_pointers[] = $pointer; - } - - // No valid pointers? Stop here. - if ( empty( $valid_pointers ) ) { - return; - } - - // Add pointers style to queue. - \wp_enqueue_style( 'wp-pointer' ); - - // Add pointers script to queue. Add custom script. - $script_handle = self::$plugin_prefix . '_pointer'; - \wp_enqueue_script( - $script_handle, - script_url( 'pointer', 'admin' ), - array( 'wp-pointer' ), - ADMIN_NOTICES_MANAGER_VERSION, - true - ); - - // Add pointer options to script. - \wp_localize_script( $script_handle, 'wpws_pointers', $valid_pointers ); - } - } -} diff --git a/includes/classes/class-pointer.php b/includes/classes/class-pointer.php deleted file mode 100644 index 4b339f3..0000000 --- a/includes/classes/class-pointer.php +++ /dev/null @@ -1,80 +0,0 @@ - $initial_prompt_pointer_id, - 'target' => '#wp-admin-bar-anm_notification_count', - 'options' => array( - 'content' => sprintf( - '

%s

%s

', - esc_html__( 'Admin Notices Manager', 'admin-notices-manager' ), - esc_html__( 'From now onward, all the admin notices will be displayed here.', 'admin-notices-manager' ) - ), - 'position' => array( - 'edge' => 'top', - 'align' => 'center', - ), - 'pointerClass' => 'wp-pointer anm-pointer', - ), - ) - ); - - Pointers_Manager::add_pointer( - array( - 'id' => 'anm_settings_prompt', - 'target' => '#menu-settings', - 'options' => array( - 'content' => sprintf( - '

%s

%s

', - esc_html__( 'Configure the Admin Notices Manager', 'admin-notices-manager' ), - esc_html__( 'Configure how the plugin handles different types of admin notices from the Settings > Admin Notices menu item.', 'admin-notices-manager' ) - ), - 'position' => array( - 'edge' => 'left', - 'align' => 'center', - ), - ), - ) - ); - } - } -} diff --git a/includes/classes/class-pointers.php b/includes/classes/class-pointers.php new file mode 100755 index 0000000..0c95ab7 --- /dev/null +++ b/includes/classes/class-pointers.php @@ -0,0 +1,187 @@ + + + esc_html__( 'Visibility', 'admin-notices-manager' ), 'type' => 'radio', 'custom' => true, - 'callback' => array( $this, 'render_user_visibility_field' ), + 'callback' => array( __CLASS__, 'render_user_visibility_field' ), 'value' => array_key_exists( 'user-visibility', $options ) ? $options['user-visibility'] : 'all', 'choices' => array( 'all' => esc_html__( 'Hide notifications from all users', 'admin-notices-manager' ), @@ -152,7 +162,7 @@ public function __construct() { 'type' => 'text', 'value' => '', 'custom' => true, - 'callback' => array( $this, 'render_purge_field' ), + 'callback' => array( __CLASS__, 'render_purge_field' ), 'text' => '', 'sanitize' => false, ), @@ -240,8 +250,8 @@ public static function notice_hiding_allowed_for_current_user() { * * phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped */ - public function render_user_visibility_field( $field, $page_key = '', $section_key = '', $field_key = '', $option_pages = '' ) { - if ( ! class_exists( '\S24WP' ) ) { + public static function render_user_visibility_field( $field, $page_key = '', $section_key = '', $field_key = '', $option_pages = '' ) { + if ( ! class_exists( Select2_WPWS::class, false ) ) { return; } @@ -253,8 +263,8 @@ public function render_user_visibility_field( $field, $page_key = '', $section_k $counter = 0; foreach ( $field['choices'] as $value => $label ) { $checked = 0 === strlen( $value ) || $value === $field['value']; - if ( isset( $this->options[ $field['id'] ] ) ) { - $checked = $value === $this->options[ $field['id'] ]; + if ( isset( self::$options[ $field['id'] ] ) ) { + $checked = $value === self::$options[ $field['id'] ]; } if ( is_null( $field['value'] ) && 'all' === $value ) { @@ -280,8 +290,8 @@ public function render_user_visibility_field( $field, $page_key = '', $section_k } if ( 'hide-for-selected' === $value ) { - \S24WP::insert( - $this->build_user_select_params( + Select2_WPWS::insert( + self::build_user_select_params( $options, $field_name, $field, @@ -290,8 +300,8 @@ public function render_user_visibility_field( $field, $page_key = '', $section_k ) ); } elseif ( 'show-for-selected' === $value ) { - \S24WP::insert( - $this->build_user_select_params( + Select2_WPWS::insert( + self::build_user_select_params( $options, $field_name, $field, @@ -320,7 +330,7 @@ public function render_user_visibility_field( $field, $page_key = '', $section_k * * phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped */ - public function render_purge_field( $field, $page_key, $section_key, $field_key, $option_pages ) { + public static function render_purge_field( $field, $page_key, $section_key, $field_key, $option_pages ) { $nonce = wp_create_nonce( 'anm_purgce_notices_nonce' ); echo '' . esc_html__( 'Reset', 'admin-notices-manager' ) . ' ' . esc_html__( 'Notices restored', 'admin-notices-manager' ) . ''; } @@ -338,7 +348,7 @@ public function render_purge_field( $field, $page_key, $section_key, $field_key, * * @since latest. */ - private function build_user_select_params( $options, $field_name, $field, $checked, $option_value ) { + private static function build_user_select_params( $options, $field_name, $field, $checked, $option_value ) { $result = array( 'placeholder' => esc_html__( 'select user(s)', 'admin-notices-manager' ), 'name' => $field_name . '[' . $option_value . '][]', diff --git a/includes/classes/vendor/Select2/assets/css/select2.min.css b/includes/classes/vendor/Select2/assets/css/select2.min.css new file mode 100755 index 0000000..7c18ad5 --- /dev/null +++ b/includes/classes/vendor/Select2/assets/css/select2.min.css @@ -0,0 +1 @@ +.select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:white;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff;filter:alpha(opacity=0)}.select2-hidden-accessible{border:0 !important;clip:rect(0 0 0 0) !important;-webkit-clip-path:inset(50%) !important;clip-path:inset(50%) !important;height:1px !important;overflow:hidden !important;padding:0 !important;position:absolute !important;width:1px !important;white-space:nowrap !important}.select2-container--default .select2-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--default .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-top:5px;margin-right:10px;padding:1px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline{float:right}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:solid black 1px;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--single,.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #aaa}.select2-container--default .select2-search--inline .select2-search__field{background:transparent;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{color:#999}.select2-container--default .select2-results__option[aria-selected=true]{background-color:#ddd}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#5897fb;color:white}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-linear-gradient(top, #fff 50%, #eee 100%);background-image:-o-linear-gradient(top, #fff 50%, #eee 100%);background-image:linear-gradient(to bottom, #fff 50%, #eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-linear-gradient(top, #eee 50%, #ccc 100%);background-image:-o-linear-gradient(top, #eee 50%, #ccc 100%);background-image:linear-gradient(to bottom, #eee 50%, #ccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0)}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #5897fb}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:transparent;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-linear-gradient(top, #fff 0%, #eee 50%);background-image:-o-linear-gradient(top, #fff 0%, #eee 50%);background-image:linear-gradient(to bottom, #fff 0%, #eee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-linear-gradient(top, #eee 50%, #fff 100%);background-image:-o-linear-gradient(top, #eee 50%, #fff 100%);background-image:linear-gradient(to bottom, #eee 50%, #fff 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0)}.select2-container--classic .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--multiple .select2-selection__rendered{list-style:none;margin:0;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice{float:right;margin-left:5px;margin-right:auto}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #5897fb}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--classic .select2-results__option[role=group]{padding:0}.select2-container--classic .select2-results__option[aria-disabled=true]{color:grey}.select2-container--classic .select2-results__option--highlighted[aria-selected]{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#5897fb} diff --git a/includes/classes/vendor/Select2/assets/css/wp-overrides.css b/includes/classes/vendor/Select2/assets/css/wp-overrides.css new file mode 100755 index 0000000..107b626 --- /dev/null +++ b/includes/classes/vendor/Select2/assets/css/wp-overrides.css @@ -0,0 +1,47 @@ +.select2-container--default .select2-selection.s24wp-wrapper .select2-selection__rendered { + padding: 5px 4px 0 5px !important; + display: block !important; +} + +.select2-container--default .select2-selection.s24wp-wrapper .select2-selection__choice { + margin-top: 0 !important; + margin-bottom: 4px !important; + padding: 5px 5px 5px 23px !important; + position: relative !important; +} + +.select2-container--default .select2-selection.s24wp-wrapper .select2-search--inline:not(:only-child) { + margin-bottom: 0px !important; + margin-top: -4px !important; +} + +.select2-container--default .select2-selection.s24wp-wrapper .select2-search--inline:only-child { + margin-top: 0 !important; + margin-bottom: 4px !important; +} + +.select2-container--default .select2-selection.s24wp-wrapper .select2-search--inline:only-child .select2-search__field { + margin-top: 0 !important; +} + +.select2-container--default .select2-selection.s24wp-wrapper .select2-selection__choice__remove { + background-color: transparent !important; + border: none !important; + border-right: 1px solid #aaa !important; + border-top-left-radius: 4px !important; + border-bottom-left-radius: 4px !important; + color: #999 !important; + cursor: pointer !important; + font-size: 1em !important; + font-weight: 700 !important; + padding: 5px 4px !important; + position: absolute !important; + left: 0 !important; + top: 0 !important; +} + +.select2-container--default .select2-selection.s24wp-wrapper .select2-selection__choice__remove:hover { + background-color: #f1f1f1 !important; + color: #333 !important; + outline: none !important; +} diff --git a/includes/classes/vendor/Select2/assets/js/i18n/af.js b/includes/classes/vendor/Select2/assets/js/i18n/af.js new file mode 100755 index 0000000..32e5ac7 --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/af.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/af",[],function(){return{errorLoading:function(){return"Die resultate kon nie gelaai word nie."},inputTooLong:function(e){var n=e.input.length-e.maximum,r="Verwyders asseblief "+n+" character";return 1!=n&&(r+="s"),r},inputTooShort:function(e){return"Voer asseblief "+(e.minimum-e.input.length)+" of meer karakters"},loadingMore:function(){return"Meer resultate word gelaai…"},maximumSelected:function(e){var n="Kies asseblief net "+e.maximum+" item";return 1!=e.maximum&&(n+="s"),n},noResults:function(){return"Geen resultate gevind"},searching:function(){return"Besig…"},removeAllItems:function(){return"Verwyder alle items"}}}),e.define,e.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/ar.js b/includes/classes/vendor/Select2/assets/js/i18n/ar.js new file mode 100755 index 0000000..64e1caa --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/ar.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ar",[],function(){return{errorLoading:function(){return"لا يمكن تحميل النتائج"},inputTooLong:function(n){return"الرجاء حذف "+(n.input.length-n.maximum)+" عناصر"},inputTooShort:function(n){return"الرجاء إضافة "+(n.minimum-n.input.length)+" عناصر"},loadingMore:function(){return"جاري تحميل نتائج إضافية..."},maximumSelected:function(n){return"تستطيع إختيار "+n.maximum+" بنود فقط"},noResults:function(){return"لم يتم العثور على أي نتائج"},searching:function(){return"جاري البحث…"},removeAllItems:function(){return"قم بإزالة كل العناصر"}}}),n.define,n.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/az.js b/includes/classes/vendor/Select2/assets/js/i18n/az.js new file mode 100755 index 0000000..1d52c26 --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/az.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/az",[],function(){return{inputTooLong:function(n){return n.input.length-n.maximum+" simvol silin"},inputTooShort:function(n){return n.minimum-n.input.length+" simvol daxil edin"},loadingMore:function(){return"Daha çox nəticə yüklənir…"},maximumSelected:function(n){return"Sadəcə "+n.maximum+" element seçə bilərsiniz"},noResults:function(){return"Nəticə tapılmadı"},searching:function(){return"Axtarılır…"},removeAllItems:function(){return"Bütün elementləri sil"}}}),n.define,n.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/bg.js b/includes/classes/vendor/Select2/assets/js/i18n/bg.js new file mode 100755 index 0000000..73b730a --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/bg.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/bg",[],function(){return{inputTooLong:function(n){var e=n.input.length-n.maximum,u="Моля въведете с "+e+" по-малко символ";return e>1&&(u+="a"),u},inputTooShort:function(n){var e=n.minimum-n.input.length,u="Моля въведете още "+e+" символ";return e>1&&(u+="a"),u},loadingMore:function(){return"Зареждат се още…"},maximumSelected:function(n){var e="Можете да направите до "+n.maximum+" ";return n.maximum>1?e+="избора":e+="избор",e},noResults:function(){return"Няма намерени съвпадения"},searching:function(){return"Търсене…"},removeAllItems:function(){return"Премахнете всички елементи"}}}),n.define,n.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/bn.js b/includes/classes/vendor/Select2/assets/js/i18n/bn.js new file mode 100755 index 0000000..2d17b9d --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/bn.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/bn",[],function(){return{errorLoading:function(){return"ফলাফলগুলি লোড করা যায়নি।"},inputTooLong:function(n){var e=n.input.length-n.maximum,u="অনুগ্রহ করে "+e+" টি অক্ষর মুছে দিন।";return 1!=e&&(u="অনুগ্রহ করে "+e+" টি অক্ষর মুছে দিন।"),u},inputTooShort:function(n){return n.minimum-n.input.length+" টি অক্ষর অথবা অধিক অক্ষর লিখুন।"},loadingMore:function(){return"আরো ফলাফল লোড হচ্ছে ..."},maximumSelected:function(n){var e=n.maximum+" টি আইটেম নির্বাচন করতে পারবেন।";return 1!=n.maximum&&(e=n.maximum+" টি আইটেম নির্বাচন করতে পারবেন।"),e},noResults:function(){return"কোন ফলাফল পাওয়া যায়নি।"},searching:function(){return"অনুসন্ধান করা হচ্ছে ..."}}}),n.define,n.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/bs.js b/includes/classes/vendor/Select2/assets/js/i18n/bs.js new file mode 100755 index 0000000..46b084d --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/bs.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/bs",[],function(){function e(e,n,r,t){return e%10==1&&e%100!=11?n:e%10>=2&&e%10<=4&&(e%100<12||e%100>14)?r:t}return{errorLoading:function(){return"Preuzimanje nije uspijelo."},inputTooLong:function(n){var r=n.input.length-n.maximum,t="Obrišite "+r+" simbol";return t+=e(r,"","a","a")},inputTooShort:function(n){var r=n.minimum-n.input.length,t="Ukucajte bar još "+r+" simbol";return t+=e(r,"","a","a")},loadingMore:function(){return"Preuzimanje još rezultata…"},maximumSelected:function(n){var r="Možete izabrati samo "+n.maximum+" stavk";return r+=e(n.maximum,"u","e","i")},noResults:function(){return"Ništa nije pronađeno"},searching:function(){return"Pretraga…"},removeAllItems:function(){return"Uklonite sve stavke"}}}),e.define,e.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/build.txt b/includes/classes/vendor/Select2/assets/js/i18n/build.txt new file mode 100755 index 0000000..8f319f2 --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/build.txt @@ -0,0 +1,236 @@ + +af.js +---------------- +af.js + +ar.js +---------------- +ar.js + +az.js +---------------- +az.js + +bg.js +---------------- +bg.js + +bn.js +---------------- +bn.js + +bs.js +---------------- +bs.js + +ca.js +---------------- +ca.js + +cs.js +---------------- +cs.js + +da.js +---------------- +da.js + +de.js +---------------- +de.js + +dsb.js +---------------- +dsb.js + +el.js +---------------- +el.js + +en.js +---------------- +en.js + +es.js +---------------- +es.js + +et.js +---------------- +et.js + +eu.js +---------------- +eu.js + +fa.js +---------------- +fa.js + +fi.js +---------------- +fi.js + +fr.js +---------------- +fr.js + +gl.js +---------------- +gl.js + +he.js +---------------- +he.js + +hi.js +---------------- +hi.js + +hr.js +---------------- +hr.js + +hsb.js +---------------- +hsb.js + +hu.js +---------------- +hu.js + +hy.js +---------------- +hy.js + +id.js +---------------- +id.js + +is.js +---------------- +is.js + +it.js +---------------- +it.js + +ja.js +---------------- +ja.js + +ka.js +---------------- +ka.js + +km.js +---------------- +km.js + +ko.js +---------------- +ko.js + +lt.js +---------------- +lt.js + +lv.js +---------------- +lv.js + +mk.js +---------------- +mk.js + +ms.js +---------------- +ms.js + +nb.js +---------------- +nb.js + +ne.js +---------------- +ne.js + +nl.js +---------------- +nl.js + +pl.js +---------------- +pl.js + +ps.js +---------------- +ps.js + +pt-BR.js +---------------- +pt-BR.js + +pt.js +---------------- +pt.js + +ro.js +---------------- +ro.js + +ru.js +---------------- +ru.js + +sk.js +---------------- +sk.js + +sl.js +---------------- +sl.js + +sq.js +---------------- +sq.js + +sr-Cyrl.js +---------------- +sr-Cyrl.js + +sr.js +---------------- +sr.js + +sv.js +---------------- +sv.js + +th.js +---------------- +th.js + +tk.js +---------------- +tk.js + +tr.js +---------------- +tr.js + +uk.js +---------------- +uk.js + +vi.js +---------------- +vi.js + +zh-CN.js +---------------- +zh-CN.js + +zh-TW.js +---------------- +zh-TW.js diff --git a/includes/classes/vendor/Select2/assets/js/i18n/ca.js b/includes/classes/vendor/Select2/assets/js/i18n/ca.js new file mode 100755 index 0000000..82dbbb7 --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/ca.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/ca",[],function(){return{errorLoading:function(){return"La càrrega ha fallat"},inputTooLong:function(e){var n=e.input.length-e.maximum,r="Si us plau, elimina "+n+" car";return r+=1==n?"àcter":"àcters"},inputTooShort:function(e){var n=e.minimum-e.input.length,r="Si us plau, introdueix "+n+" car";return r+=1==n?"àcter":"àcters"},loadingMore:function(){return"Carregant més resultats…"},maximumSelected:function(e){var n="Només es pot seleccionar "+e.maximum+" element";return 1!=e.maximum&&(n+="s"),n},noResults:function(){return"No s'han trobat resultats"},searching:function(){return"Cercant…"},removeAllItems:function(){return"Treu tots els elements"}}}),e.define,e.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/cs.js b/includes/classes/vendor/Select2/assets/js/i18n/cs.js new file mode 100755 index 0000000..7116d6c --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/cs.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/cs",[],function(){function e(e,n){switch(e){case 2:return n?"dva":"dvě";case 3:return"tři";case 4:return"čtyři"}return""}return{errorLoading:function(){return"Výsledky nemohly být načteny."},inputTooLong:function(n){var t=n.input.length-n.maximum;return 1==t?"Prosím, zadejte o jeden znak méně.":t<=4?"Prosím, zadejte o "+e(t,!0)+" znaky méně.":"Prosím, zadejte o "+t+" znaků méně."},inputTooShort:function(n){var t=n.minimum-n.input.length;return 1==t?"Prosím, zadejte ještě jeden znak.":t<=4?"Prosím, zadejte ještě další "+e(t,!0)+" znaky.":"Prosím, zadejte ještě dalších "+t+" znaků."},loadingMore:function(){return"Načítají se další výsledky…"},maximumSelected:function(n){var t=n.maximum;return 1==t?"Můžete zvolit jen jednu položku.":t<=4?"Můžete zvolit maximálně "+e(t,!1)+" položky.":"Můžete zvolit maximálně "+t+" položek."},noResults:function(){return"Nenalezeny žádné položky."},searching:function(){return"Vyhledávání…"},removeAllItems:function(){return"Odstraňte všechny položky"}}}),e.define,e.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/da.js b/includes/classes/vendor/Select2/assets/js/i18n/da.js new file mode 100755 index 0000000..cda32c3 --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/da.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/da",[],function(){return{errorLoading:function(){return"Resultaterne kunne ikke indlæses."},inputTooLong:function(e){return"Angiv venligst "+(e.input.length-e.maximum)+" tegn mindre"},inputTooShort:function(e){return"Angiv venligst "+(e.minimum-e.input.length)+" tegn mere"},loadingMore:function(){return"Indlæser flere resultater…"},maximumSelected:function(e){var n="Du kan kun vælge "+e.maximum+" emne";return 1!=e.maximum&&(n+="r"),n},noResults:function(){return"Ingen resultater fundet"},searching:function(){return"Søger…"},removeAllItems:function(){return"Fjern alle elementer"}}}),e.define,e.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/de.js b/includes/classes/vendor/Select2/assets/js/i18n/de.js new file mode 100755 index 0000000..c2e61e5 --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/de.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/de",[],function(){return{errorLoading:function(){return"Die Ergebnisse konnten nicht geladen werden."},inputTooLong:function(e){return"Bitte "+(e.input.length-e.maximum)+" Zeichen weniger eingeben"},inputTooShort:function(e){return"Bitte "+(e.minimum-e.input.length)+" Zeichen mehr eingeben"},loadingMore:function(){return"Lade mehr Ergebnisse…"},maximumSelected:function(e){var n="Sie können nur "+e.maximum+" Element";return 1!=e.maximum&&(n+="e"),n+=" auswählen"},noResults:function(){return"Keine Übereinstimmungen gefunden"},searching:function(){return"Suche…"},removeAllItems:function(){return"Entferne alle Elemente"}}}),e.define,e.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/dsb.js b/includes/classes/vendor/Select2/assets/js/i18n/dsb.js new file mode 100755 index 0000000..02f283a --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/dsb.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/dsb",[],function(){var n=["znamuško","znamušce","znamuška","znamuškow"],e=["zapisk","zapiska","zapiski","zapiskow"],u=function(n,e){return 1===n?e[0]:2===n?e[1]:n>2&&n<=4?e[2]:n>=5?e[3]:void 0};return{errorLoading:function(){return"Wuslědki njejsu se dali zacytaś."},inputTooLong:function(e){var a=e.input.length-e.maximum;return"Pšosym lašuj "+a+" "+u(a,n)},inputTooShort:function(e){var a=e.minimum-e.input.length;return"Pšosym zapódaj nanejmjenjej "+a+" "+u(a,n)},loadingMore:function(){return"Dalšne wuslědki se zacytaju…"},maximumSelected:function(n){return"Móžoš jano "+n.maximum+" "+u(n.maximum,e)+"wubraś."},noResults:function(){return"Žedne wuslědki namakane"},searching:function(){return"Pyta se…"},removeAllItems:function(){return"Remove all items"}}}),n.define,n.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/el.js b/includes/classes/vendor/Select2/assets/js/i18n/el.js new file mode 100755 index 0000000..d4922a1 --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/el.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/el",[],function(){return{errorLoading:function(){return"Τα αποτελέσματα δεν μπόρεσαν να φορτώσουν."},inputTooLong:function(n){var e=n.input.length-n.maximum,u="Παρακαλώ διαγράψτε "+e+" χαρακτήρ";return 1==e&&(u+="α"),1!=e&&(u+="ες"),u},inputTooShort:function(n){return"Παρακαλώ συμπληρώστε "+(n.minimum-n.input.length)+" ή περισσότερους χαρακτήρες"},loadingMore:function(){return"Φόρτωση περισσότερων αποτελεσμάτων…"},maximumSelected:function(n){var e="Μπορείτε να επιλέξετε μόνο "+n.maximum+" επιλογ";return 1==n.maximum&&(e+="ή"),1!=n.maximum&&(e+="ές"),e},noResults:function(){return"Δεν βρέθηκαν αποτελέσματα"},searching:function(){return"Αναζήτηση…"},removeAllItems:function(){return"Καταργήστε όλα τα στοιχεία"}}}),n.define,n.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/en.js b/includes/classes/vendor/Select2/assets/js/i18n/en.js new file mode 100755 index 0000000..3b19285 --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/en.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var n=e.input.length-e.maximum,r="Please delete "+n+" character";return 1!=n&&(r+="s"),r},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var n="You can only select "+e.maximum+" item";return 1!=e.maximum&&(n+="s"),n},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"}}}),e.define,e.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/es.js b/includes/classes/vendor/Select2/assets/js/i18n/es.js new file mode 100755 index 0000000..68afd6d --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/es.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/es",[],function(){return{errorLoading:function(){return"No se pudieron cargar los resultados"},inputTooLong:function(e){var n=e.input.length-e.maximum,r="Por favor, elimine "+n+" car";return r+=1==n?"ácter":"acteres"},inputTooShort:function(e){var n=e.minimum-e.input.length,r="Por favor, introduzca "+n+" car";return r+=1==n?"ácter":"acteres"},loadingMore:function(){return"Cargando más resultados…"},maximumSelected:function(e){var n="Sólo puede seleccionar "+e.maximum+" elemento";return 1!=e.maximum&&(n+="s"),n},noResults:function(){return"No se encontraron resultados"},searching:function(){return"Buscando…"},removeAllItems:function(){return"Eliminar todos los elementos"}}}),e.define,e.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/et.js b/includes/classes/vendor/Select2/assets/js/i18n/et.js new file mode 100755 index 0000000..070b61a --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/et.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/et",[],function(){return{inputTooLong:function(e){var n=e.input.length-e.maximum,t="Sisesta "+n+" täht";return 1!=n&&(t+="e"),t+=" vähem"},inputTooShort:function(e){var n=e.minimum-e.input.length,t="Sisesta "+n+" täht";return 1!=n&&(t+="e"),t+=" rohkem"},loadingMore:function(){return"Laen tulemusi…"},maximumSelected:function(e){var n="Saad vaid "+e.maximum+" tulemus";return 1==e.maximum?n+="e":n+="t",n+=" valida"},noResults:function(){return"Tulemused puuduvad"},searching:function(){return"Otsin…"},removeAllItems:function(){return"Eemalda kõik esemed"}}}),e.define,e.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/eu.js b/includes/classes/vendor/Select2/assets/js/i18n/eu.js new file mode 100755 index 0000000..90d5e73 --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/eu.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/eu",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Idatzi ";return n+=1==t?"karaktere bat":t+" karaktere",n+=" gutxiago"},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Idatzi ";return n+=1==t?"karaktere bat":t+" karaktere",n+=" gehiago"},loadingMore:function(){return"Emaitza gehiago kargatzen…"},maximumSelected:function(e){return 1===e.maximum?"Elementu bakarra hauta dezakezu":e.maximum+" elementu hauta ditzakezu soilik"},noResults:function(){return"Ez da bat datorrenik aurkitu"},searching:function(){return"Bilatzen…"},removeAllItems:function(){return"Kendu elementu guztiak"}}}),e.define,e.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/fa.js b/includes/classes/vendor/Select2/assets/js/i18n/fa.js new file mode 100755 index 0000000..e1ffdbe --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/fa.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/fa",[],function(){return{errorLoading:function(){return"امکان بارگذاری نتایج وجود ندارد."},inputTooLong:function(n){return"لطفاً "+(n.input.length-n.maximum)+" کاراکتر را حذف نمایید"},inputTooShort:function(n){return"لطفاً تعداد "+(n.minimum-n.input.length)+" کاراکتر یا بیشتر وارد نمایید"},loadingMore:function(){return"در حال بارگذاری نتایج بیشتر..."},maximumSelected:function(n){return"شما تنها می‌توانید "+n.maximum+" آیتم را انتخاب نمایید"},noResults:function(){return"هیچ نتیجه‌ای یافت نشد"},searching:function(){return"در حال جستجو..."},removeAllItems:function(){return"همه موارد را حذف کنید"}}}),n.define,n.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/fi.js b/includes/classes/vendor/Select2/assets/js/i18n/fi.js new file mode 100755 index 0000000..ffed124 --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/fi.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/fi",[],function(){return{errorLoading:function(){return"Tuloksia ei saatu ladattua."},inputTooLong:function(n){return"Ole hyvä ja anna "+(n.input.length-n.maximum)+" merkkiä vähemmän"},inputTooShort:function(n){return"Ole hyvä ja anna "+(n.minimum-n.input.length)+" merkkiä lisää"},loadingMore:function(){return"Ladataan lisää tuloksia…"},maximumSelected:function(n){return"Voit valita ainoastaan "+n.maximum+" kpl"},noResults:function(){return"Ei tuloksia"},searching:function(){return"Haetaan…"},removeAllItems:function(){return"Poista kaikki kohteet"}}}),n.define,n.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/fr.js b/includes/classes/vendor/Select2/assets/js/i18n/fr.js new file mode 100755 index 0000000..dd02f97 --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/fr.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/fr",[],function(){return{errorLoading:function(){return"Les résultats ne peuvent pas être chargés."},inputTooLong:function(e){var n=e.input.length-e.maximum;return"Supprimez "+n+" caractère"+(n>1?"s":"")},inputTooShort:function(e){var n=e.minimum-e.input.length;return"Saisissez au moins "+n+" caractère"+(n>1?"s":"")},loadingMore:function(){return"Chargement de résultats supplémentaires…"},maximumSelected:function(e){return"Vous pouvez seulement sélectionner "+e.maximum+" élément"+(e.maximum>1?"s":"")},noResults:function(){return"Aucun résultat trouvé"},searching:function(){return"Recherche en cours…"},removeAllItems:function(){return"Supprimer tous les éléments"}}}),e.define,e.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/gl.js b/includes/classes/vendor/Select2/assets/js/i18n/gl.js new file mode 100755 index 0000000..208a005 --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/gl.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/gl",[],function(){return{errorLoading:function(){return"Non foi posíbel cargar os resultados."},inputTooLong:function(e){var n=e.input.length-e.maximum;return 1===n?"Elimine un carácter":"Elimine "+n+" caracteres"},inputTooShort:function(e){var n=e.minimum-e.input.length;return 1===n?"Engada un carácter":"Engada "+n+" caracteres"},loadingMore:function(){return"Cargando máis resultados…"},maximumSelected:function(e){return 1===e.maximum?"Só pode seleccionar un elemento":"Só pode seleccionar "+e.maximum+" elementos"},noResults:function(){return"Non se atoparon resultados"},searching:function(){return"Buscando…"},removeAllItems:function(){return"Elimina todos os elementos"}}}),e.define,e.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/he.js b/includes/classes/vendor/Select2/assets/js/i18n/he.js new file mode 100755 index 0000000..25a8805 --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/he.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/he",[],function(){return{errorLoading:function(){return"שגיאה בטעינת התוצאות"},inputTooLong:function(n){var e=n.input.length-n.maximum,r="נא למחוק ";return r+=1===e?"תו אחד":e+" תווים"},inputTooShort:function(n){var e=n.minimum-n.input.length,r="נא להכניס ";return r+=1===e?"תו אחד":e+" תווים",r+=" או יותר"},loadingMore:function(){return"טוען תוצאות נוספות…"},maximumSelected:function(n){var e="באפשרותך לבחור עד ";return 1===n.maximum?e+="פריט אחד":e+=n.maximum+" פריטים",e},noResults:function(){return"לא נמצאו תוצאות"},searching:function(){return"מחפש…"},removeAllItems:function(){return"הסר את כל הפריטים"}}}),n.define,n.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/hi.js b/includes/classes/vendor/Select2/assets/js/i18n/hi.js new file mode 100755 index 0000000..f3ed798 --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/hi.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/hi",[],function(){return{errorLoading:function(){return"परिणामों को लोड नहीं किया जा सका।"},inputTooLong:function(n){var e=n.input.length-n.maximum,r=e+" अक्षर को हटा दें";return e>1&&(r=e+" अक्षरों को हटा दें "),r},inputTooShort:function(n){return"कृपया "+(n.minimum-n.input.length)+" या अधिक अक्षर दर्ज करें"},loadingMore:function(){return"अधिक परिणाम लोड हो रहे है..."},maximumSelected:function(n){return"आप केवल "+n.maximum+" आइटम का चयन कर सकते हैं"},noResults:function(){return"कोई परिणाम नहीं मिला"},searching:function(){return"खोज रहा है..."},removeAllItems:function(){return"सभी वस्तुओं को हटा दें"}}}),n.define,n.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/hr.js b/includes/classes/vendor/Select2/assets/js/i18n/hr.js new file mode 100755 index 0000000..cb3268d --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/hr.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/hr",[],function(){function n(n){var e=" "+n+" znak";return n%10<5&&n%10>0&&(n%100<5||n%100>19)?n%10>1&&(e+="a"):e+="ova",e}return{errorLoading:function(){return"Preuzimanje nije uspjelo."},inputTooLong:function(e){return"Unesite "+n(e.input.length-e.maximum)},inputTooShort:function(e){return"Unesite još "+n(e.minimum-e.input.length)},loadingMore:function(){return"Učitavanje rezultata…"},maximumSelected:function(n){return"Maksimalan broj odabranih stavki je "+n.maximum},noResults:function(){return"Nema rezultata"},searching:function(){return"Pretraga…"},removeAllItems:function(){return"Ukloni sve stavke"}}}),n.define,n.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/hsb.js b/includes/classes/vendor/Select2/assets/js/i18n/hsb.js new file mode 100755 index 0000000..3d5bf09 --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/hsb.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/hsb",[],function(){var n=["znamješko","znamješce","znamješka","znamješkow"],e=["zapisk","zapiskaj","zapiski","zapiskow"],u=function(n,e){return 1===n?e[0]:2===n?e[1]:n>2&&n<=4?e[2]:n>=5?e[3]:void 0};return{errorLoading:function(){return"Wuslědki njedachu so začitać."},inputTooLong:function(e){var a=e.input.length-e.maximum;return"Prošu zhašej "+a+" "+u(a,n)},inputTooShort:function(e){var a=e.minimum-e.input.length;return"Prošu zapodaj znajmjeńša "+a+" "+u(a,n)},loadingMore:function(){return"Dalše wuslědki so začitaja…"},maximumSelected:function(n){return"Móžeš jenož "+n.maximum+" "+u(n.maximum,e)+"wubrać"},noResults:function(){return"Žane wuslědki namakane"},searching:function(){return"Pyta so…"},removeAllItems:function(){return"Remove all items"}}}),n.define,n.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/hu.js b/includes/classes/vendor/Select2/assets/js/i18n/hu.js new file mode 100755 index 0000000..4893aa2 --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/hu.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/hu",[],function(){return{errorLoading:function(){return"Az eredmények betöltése nem sikerült."},inputTooLong:function(e){return"Túl hosszú. "+(e.input.length-e.maximum)+" karakterrel több, mint kellene."},inputTooShort:function(e){return"Túl rövid. Még "+(e.minimum-e.input.length)+" karakter hiányzik."},loadingMore:function(){return"Töltés…"},maximumSelected:function(e){return"Csak "+e.maximum+" elemet lehet kiválasztani."},noResults:function(){return"Nincs találat."},searching:function(){return"Keresés…"},removeAllItems:function(){return"Távolítson el minden elemet"}}}),e.define,e.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/hy.js b/includes/classes/vendor/Select2/assets/js/i18n/hy.js new file mode 100755 index 0000000..8230007 --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/hy.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/hy",[],function(){return{errorLoading:function(){return"Արդյունքները հնարավոր չէ բեռնել։"},inputTooLong:function(n){return"Խնդրում ենք հեռացնել "+(n.input.length-n.maximum)+" նշան"},inputTooShort:function(n){return"Խնդրում ենք մուտքագրել "+(n.minimum-n.input.length)+" կամ ավել նշաններ"},loadingMore:function(){return"Բեռնվում են նոր արդյունքներ․․․"},maximumSelected:function(n){return"Դուք կարող եք ընտրել առավելագույնը "+n.maximum+" կետ"},noResults:function(){return"Արդյունքներ չեն գտնվել"},searching:function(){return"Որոնում․․․"},removeAllItems:function(){return"Հեռացնել բոլոր տարրերը"}}}),n.define,n.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/id.js b/includes/classes/vendor/Select2/assets/js/i18n/id.js new file mode 100755 index 0000000..4a0b3bf --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/id.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/id",[],function(){return{errorLoading:function(){return"Data tidak boleh diambil."},inputTooLong:function(n){return"Hapuskan "+(n.input.length-n.maximum)+" huruf"},inputTooShort:function(n){return"Masukkan "+(n.minimum-n.input.length)+" huruf lagi"},loadingMore:function(){return"Mengambil data…"},maximumSelected:function(n){return"Anda hanya dapat memilih "+n.maximum+" pilihan"},noResults:function(){return"Tidak ada data yang sesuai"},searching:function(){return"Mencari…"},removeAllItems:function(){return"Hapus semua item"}}}),n.define,n.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/is.js b/includes/classes/vendor/Select2/assets/js/i18n/is.js new file mode 100755 index 0000000..cca5bbe --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/is.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/is",[],function(){return{inputTooLong:function(n){var t=n.input.length-n.maximum,e="Vinsamlegast styttið texta um "+t+" staf";return t<=1?e:e+"i"},inputTooShort:function(n){var t=n.minimum-n.input.length,e="Vinsamlegast skrifið "+t+" staf";return t>1&&(e+="i"),e+=" í viðbót"},loadingMore:function(){return"Sæki fleiri niðurstöður…"},maximumSelected:function(n){return"Þú getur aðeins valið "+n.maximum+" atriði"},noResults:function(){return"Ekkert fannst"},searching:function(){return"Leita…"},removeAllItems:function(){return"Fjarlægðu öll atriði"}}}),n.define,n.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/it.js b/includes/classes/vendor/Select2/assets/js/i18n/it.js new file mode 100755 index 0000000..507c7d9 --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/it.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/it",[],function(){return{errorLoading:function(){return"I risultati non possono essere caricati."},inputTooLong:function(e){var n=e.input.length-e.maximum,t="Per favore cancella "+n+" caratter";return t+=1!==n?"i":"e"},inputTooShort:function(e){return"Per favore inserisci "+(e.minimum-e.input.length)+" o più caratteri"},loadingMore:function(){return"Caricando più risultati…"},maximumSelected:function(e){var n="Puoi selezionare solo "+e.maximum+" element";return 1!==e.maximum?n+="i":n+="o",n},noResults:function(){return"Nessun risultato trovato"},searching:function(){return"Sto cercando…"},removeAllItems:function(){return"Rimuovi tutti gli oggetti"}}}),e.define,e.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/ja.js b/includes/classes/vendor/Select2/assets/js/i18n/ja.js new file mode 100755 index 0000000..451025e --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/ja.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ja",[],function(){return{errorLoading:function(){return"結果が読み込まれませんでした"},inputTooLong:function(n){return n.input.length-n.maximum+" 文字を削除してください"},inputTooShort:function(n){return"少なくとも "+(n.minimum-n.input.length)+" 文字を入力してください"},loadingMore:function(){return"読み込み中…"},maximumSelected:function(n){return n.maximum+" 件しか選択できません"},noResults:function(){return"対象が見つかりません"},searching:function(){return"検索しています…"},removeAllItems:function(){return"すべてのアイテムを削除"}}}),n.define,n.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/ka.js b/includes/classes/vendor/Select2/assets/js/i18n/ka.js new file mode 100755 index 0000000..60c593b --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/ka.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ka",[],function(){return{errorLoading:function(){return"მონაცემების ჩატვირთვა შეუძლებელია."},inputTooLong:function(n){return"გთხოვთ აკრიფეთ "+(n.input.length-n.maximum)+" სიმბოლოთი ნაკლები"},inputTooShort:function(n){return"გთხოვთ აკრიფეთ "+(n.minimum-n.input.length)+" სიმბოლო ან მეტი"},loadingMore:function(){return"მონაცემების ჩატვირთვა…"},maximumSelected:function(n){return"თქვენ შეგიძლიათ აირჩიოთ არაუმეტეს "+n.maximum+" ელემენტი"},noResults:function(){return"რეზულტატი არ მოიძებნა"},searching:function(){return"ძიება…"},removeAllItems:function(){return"ამოიღე ყველა ელემენტი"}}}),n.define,n.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/km.js b/includes/classes/vendor/Select2/assets/js/i18n/km.js new file mode 100755 index 0000000..4dca94f --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/km.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/km",[],function(){return{errorLoading:function(){return"មិនអាចទាញយកទិន្នន័យ"},inputTooLong:function(n){return"សូមលុបចេញ "+(n.input.length-n.maximum)+" អក្សរ"},inputTooShort:function(n){return"សូមបញ្ចូល"+(n.minimum-n.input.length)+" អក្សរ រឺ ច្រើនជាងនេះ"},loadingMore:function(){return"កំពុងទាញយកទិន្នន័យបន្ថែម..."},maximumSelected:function(n){return"អ្នកអាចជ្រើសរើសបានតែ "+n.maximum+" ជម្រើសប៉ុណ្ណោះ"},noResults:function(){return"មិនមានលទ្ធផល"},searching:function(){return"កំពុងស្វែងរក..."},removeAllItems:function(){return"លុបធាតុទាំងអស់"}}}),n.define,n.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/ko.js b/includes/classes/vendor/Select2/assets/js/i18n/ko.js new file mode 100755 index 0000000..f2880fb --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/ko.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ko",[],function(){return{errorLoading:function(){return"결과를 불러올 수 없습니다."},inputTooLong:function(n){return"너무 깁니다. "+(n.input.length-n.maximum)+" 글자 지워주세요."},inputTooShort:function(n){return"너무 짧습니다. "+(n.minimum-n.input.length)+" 글자 더 입력해주세요."},loadingMore:function(){return"불러오는 중…"},maximumSelected:function(n){return"최대 "+n.maximum+"개까지만 선택 가능합니다."},noResults:function(){return"결과가 없습니다."},searching:function(){return"검색 중…"},removeAllItems:function(){return"모든 항목 삭제"}}}),n.define,n.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/lt.js b/includes/classes/vendor/Select2/assets/js/i18n/lt.js new file mode 100755 index 0000000..f6a4215 --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/lt.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/lt",[],function(){function n(n,e,i,t){return n%10==1&&(n%100<11||n%100>19)?e:n%10>=2&&n%10<=9&&(n%100<11||n%100>19)?i:t}return{inputTooLong:function(e){var i=e.input.length-e.maximum,t="Pašalinkite "+i+" simbol";return t+=n(i,"į","ius","ių")},inputTooShort:function(e){var i=e.minimum-e.input.length,t="Įrašykite dar "+i+" simbol";return t+=n(i,"į","ius","ių")},loadingMore:function(){return"Kraunama daugiau rezultatų…"},maximumSelected:function(e){var i="Jūs galite pasirinkti tik "+e.maximum+" element";return i+=n(e.maximum,"ą","us","ų")},noResults:function(){return"Atitikmenų nerasta"},searching:function(){return"Ieškoma…"},removeAllItems:function(){return"Pašalinti visus elementus"}}}),n.define,n.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/lv.js b/includes/classes/vendor/Select2/assets/js/i18n/lv.js new file mode 100755 index 0000000..806dc5c --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/lv.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/lv",[],function(){function e(e,n,u,i){return 11===e?n:e%10==1?u:i}return{inputTooLong:function(n){var u=n.input.length-n.maximum,i="Lūdzu ievadiet par "+u;return(i+=" simbol"+e(u,"iem","u","iem"))+" mazāk"},inputTooShort:function(n){var u=n.minimum-n.input.length,i="Lūdzu ievadiet vēl "+u;return i+=" simbol"+e(u,"us","u","us")},loadingMore:function(){return"Datu ielāde…"},maximumSelected:function(n){var u="Jūs varat izvēlēties ne vairāk kā "+n.maximum;return u+=" element"+e(n.maximum,"us","u","us")},noResults:function(){return"Sakritību nav"},searching:function(){return"Meklēšana…"},removeAllItems:function(){return"Noņemt visus vienumus"}}}),e.define,e.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/mk.js b/includes/classes/vendor/Select2/assets/js/i18n/mk.js new file mode 100755 index 0000000..cb7b84a --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/mk.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/mk",[],function(){return{inputTooLong:function(n){var e=(n.input.length,n.maximum,"Ве молиме внесете "+n.maximum+" помалку карактер");return 1!==n.maximum&&(e+="и"),e},inputTooShort:function(n){var e=(n.minimum,n.input.length,"Ве молиме внесете уште "+n.maximum+" карактер");return 1!==n.maximum&&(e+="и"),e},loadingMore:function(){return"Вчитување резултати…"},maximumSelected:function(n){var e="Можете да изберете само "+n.maximum+" ставк";return 1===n.maximum?e+="а":e+="и",e},noResults:function(){return"Нема пронајдено совпаѓања"},searching:function(){return"Пребарување…"},removeAllItems:function(){return"Отстрани ги сите предмети"}}}),n.define,n.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/ms.js b/includes/classes/vendor/Select2/assets/js/i18n/ms.js new file mode 100755 index 0000000..6bd7eaa --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/ms.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ms",[],function(){return{errorLoading:function(){return"Keputusan tidak berjaya dimuatkan."},inputTooLong:function(n){return"Sila hapuskan "+(n.input.length-n.maximum)+" aksara"},inputTooShort:function(n){return"Sila masukkan "+(n.minimum-n.input.length)+" atau lebih aksara"},loadingMore:function(){return"Sedang memuatkan keputusan…"},maximumSelected:function(n){return"Anda hanya boleh memilih "+n.maximum+" pilihan"},noResults:function(){return"Tiada padanan yang ditemui"},searching:function(){return"Mencari…"},removeAllItems:function(){return"Keluarkan semua item"}}}),n.define,n.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/nb.js b/includes/classes/vendor/Select2/assets/js/i18n/nb.js new file mode 100755 index 0000000..25d89c6 --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/nb.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/nb",[],function(){return{errorLoading:function(){return"Kunne ikke hente resultater."},inputTooLong:function(e){return"Vennligst fjern "+(e.input.length-e.maximum)+" tegn"},inputTooShort:function(e){return"Vennligst skriv inn "+(e.minimum-e.input.length)+" tegn til"},loadingMore:function(){return"Laster flere resultater…"},maximumSelected:function(e){return"Du kan velge maks "+e.maximum+" elementer"},noResults:function(){return"Ingen treff"},searching:function(){return"Søker…"},removeAllItems:function(){return"Fjern alle elementer"}}}),e.define,e.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/ne.js b/includes/classes/vendor/Select2/assets/js/i18n/ne.js new file mode 100755 index 0000000..1c39f67 --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/ne.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ne",[],function(){return{errorLoading:function(){return"नतिजाहरु देखाउन सकिएन।"},inputTooLong:function(n){var e=n.input.length-n.maximum,u="कृपया "+e+" अक्षर मेटाउनुहोस्।";return 1!=e&&(u+="कृपया "+e+" अक्षरहरु मेटाउनुहोस्।"),u},inputTooShort:function(n){return"कृपया बाँकी रहेका "+(n.minimum-n.input.length)+" वा अरु धेरै अक्षरहरु भर्नुहोस्।"},loadingMore:function(){return"अरु नतिजाहरु भरिँदैछन् …"},maximumSelected:function(n){var e="तँपाई "+n.maximum+" वस्तु मात्र छान्न पाउँनुहुन्छ।";return 1!=n.maximum&&(e="तँपाई "+n.maximum+" वस्तुहरु मात्र छान्न पाउँनुहुन्छ।"),e},noResults:function(){return"कुनै पनि नतिजा भेटिएन।"},searching:function(){return"खोजि हुँदैछ…"}}}),n.define,n.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/nl.js b/includes/classes/vendor/Select2/assets/js/i18n/nl.js new file mode 100755 index 0000000..2b74058 --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/nl.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/nl",[],function(){return{errorLoading:function(){return"De resultaten konden niet worden geladen."},inputTooLong:function(e){return"Gelieve "+(e.input.length-e.maximum)+" karakters te verwijderen"},inputTooShort:function(e){return"Gelieve "+(e.minimum-e.input.length)+" of meer karakters in te voeren"},loadingMore:function(){return"Meer resultaten laden…"},maximumSelected:function(e){var n=1==e.maximum?"kan":"kunnen",r="Er "+n+" maar "+e.maximum+" item";return 1!=e.maximum&&(r+="s"),r+=" worden geselecteerd"},noResults:function(){return"Geen resultaten gevonden…"},searching:function(){return"Zoeken…"},removeAllItems:function(){return"Verwijder alle items"}}}),e.define,e.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/pl.js b/includes/classes/vendor/Select2/assets/js/i18n/pl.js new file mode 100755 index 0000000..4ca5748 --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/pl.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/pl",[],function(){var n=["znak","znaki","znaków"],e=["element","elementy","elementów"],r=function(n,e){return 1===n?e[0]:n>1&&n<=4?e[1]:n>=5?e[2]:void 0};return{errorLoading:function(){return"Nie można załadować wyników."},inputTooLong:function(e){var t=e.input.length-e.maximum;return"Usuń "+t+" "+r(t,n)},inputTooShort:function(e){var t=e.minimum-e.input.length;return"Podaj przynajmniej "+t+" "+r(t,n)},loadingMore:function(){return"Trwa ładowanie…"},maximumSelected:function(n){return"Możesz zaznaczyć tylko "+n.maximum+" "+r(n.maximum,e)},noResults:function(){return"Brak wyników"},searching:function(){return"Trwa wyszukiwanie…"},removeAllItems:function(){return"Usuń wszystkie przedmioty"}}}),n.define,n.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/ps.js b/includes/classes/vendor/Select2/assets/js/i18n/ps.js new file mode 100755 index 0000000..9b008e4 --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/ps.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ps",[],function(){return{errorLoading:function(){return"پايلي نه سي ترلاسه کېدای"},inputTooLong:function(n){var e=n.input.length-n.maximum,r="د مهربانۍ لمخي "+e+" توری ړنګ کړئ";return 1!=e&&(r=r.replace("توری","توري")),r},inputTooShort:function(n){return"لږ تر لږه "+(n.minimum-n.input.length)+" يا ډېر توري وليکئ"},loadingMore:function(){return"نوري پايلي ترلاسه کيږي..."},maximumSelected:function(n){var e="تاسو يوازي "+n.maximum+" قلم په نښه کولای سی";return 1!=n.maximum&&(e=e.replace("قلم","قلمونه")),e},noResults:function(){return"پايلي و نه موندل سوې"},searching:function(){return"لټول کيږي..."},removeAllItems:function(){return"ټول توکي لرې کړئ"}}}),n.define,n.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/pt-BR.js b/includes/classes/vendor/Select2/assets/js/i18n/pt-BR.js new file mode 100755 index 0000000..c991e25 --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/pt-BR.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/pt-BR",[],function(){return{errorLoading:function(){return"Os resultados não puderam ser carregados."},inputTooLong:function(e){var n=e.input.length-e.maximum,r="Apague "+n+" caracter";return 1!=n&&(r+="es"),r},inputTooShort:function(e){return"Digite "+(e.minimum-e.input.length)+" ou mais caracteres"},loadingMore:function(){return"Carregando mais resultados…"},maximumSelected:function(e){var n="Você só pode selecionar "+e.maximum+" ite";return 1==e.maximum?n+="m":n+="ns",n},noResults:function(){return"Nenhum resultado encontrado"},searching:function(){return"Buscando…"},removeAllItems:function(){return"Remover todos os itens"}}}),e.define,e.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/pt.js b/includes/classes/vendor/Select2/assets/js/i18n/pt.js new file mode 100755 index 0000000..b5da1a6 --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/pt.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/pt",[],function(){return{errorLoading:function(){return"Os resultados não puderam ser carregados."},inputTooLong:function(e){var r=e.input.length-e.maximum,n="Por favor apague "+r+" ";return n+=1!=r?"caracteres":"caractere"},inputTooShort:function(e){return"Introduza "+(e.minimum-e.input.length)+" ou mais caracteres"},loadingMore:function(){return"A carregar mais resultados…"},maximumSelected:function(e){var r="Apenas pode seleccionar "+e.maximum+" ";return r+=1!=e.maximum?"itens":"item"},noResults:function(){return"Sem resultados"},searching:function(){return"A procurar…"},removeAllItems:function(){return"Remover todos os itens"}}}),e.define,e.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/ro.js b/includes/classes/vendor/Select2/assets/js/i18n/ro.js new file mode 100755 index 0000000..1ba7b40 --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/ro.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/ro",[],function(){return{errorLoading:function(){return"Rezultatele nu au putut fi incărcate."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Vă rugăm să ștergeți"+t+" caracter";return 1!==t&&(n+="e"),n},inputTooShort:function(e){return"Vă rugăm să introduceți "+(e.minimum-e.input.length)+" sau mai multe caractere"},loadingMore:function(){return"Se încarcă mai multe rezultate…"},maximumSelected:function(e){var t="Aveți voie să selectați cel mult "+e.maximum;return t+=" element",1!==e.maximum&&(t+="e"),t},noResults:function(){return"Nu au fost găsite rezultate"},searching:function(){return"Căutare…"},removeAllItems:function(){return"Eliminați toate elementele"}}}),e.define,e.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/ru.js b/includes/classes/vendor/Select2/assets/js/i18n/ru.js new file mode 100755 index 0000000..63a7d66 --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/ru.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/ru",[],function(){function n(n,e,r,u){return n%10<5&&n%10>0&&n%100<5||n%100>20?n%10>1?r:e:u}return{errorLoading:function(){return"Невозможно загрузить результаты"},inputTooLong:function(e){var r=e.input.length-e.maximum,u="Пожалуйста, введите на "+r+" символ";return u+=n(r,"","a","ов"),u+=" меньше"},inputTooShort:function(e){var r=e.minimum-e.input.length,u="Пожалуйста, введите ещё хотя бы "+r+" символ";return u+=n(r,"","a","ов")},loadingMore:function(){return"Загрузка данных…"},maximumSelected:function(e){var r="Вы можете выбрать не более "+e.maximum+" элемент";return r+=n(e.maximum,"","a","ов")},noResults:function(){return"Совпадений не найдено"},searching:function(){return"Поиск…"},removeAllItems:function(){return"Удалить все элементы"}}}),n.define,n.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/sk.js b/includes/classes/vendor/Select2/assets/js/i18n/sk.js new file mode 100755 index 0000000..5049528 --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/sk.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/sk",[],function(){var e={2:function(e){return e?"dva":"dve"},3:function(){return"tri"},4:function(){return"štyri"}};return{errorLoading:function(){return"Výsledky sa nepodarilo načítať."},inputTooLong:function(n){var t=n.input.length-n.maximum;return 1==t?"Prosím, zadajte o jeden znak menej":t>=2&&t<=4?"Prosím, zadajte o "+e[t](!0)+" znaky menej":"Prosím, zadajte o "+t+" znakov menej"},inputTooShort:function(n){var t=n.minimum-n.input.length;return 1==t?"Prosím, zadajte ešte jeden znak":t<=4?"Prosím, zadajte ešte ďalšie "+e[t](!0)+" znaky":"Prosím, zadajte ešte ďalších "+t+" znakov"},loadingMore:function(){return"Načítanie ďalších výsledkov…"},maximumSelected:function(n){return 1==n.maximum?"Môžete zvoliť len jednu položku":n.maximum>=2&&n.maximum<=4?"Môžete zvoliť najviac "+e[n.maximum](!1)+" položky":"Môžete zvoliť najviac "+n.maximum+" položiek"},noResults:function(){return"Nenašli sa žiadne položky"},searching:function(){return"Vyhľadávanie…"},removeAllItems:function(){return"Odstráňte všetky položky"}}}),e.define,e.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/sl.js b/includes/classes/vendor/Select2/assets/js/i18n/sl.js new file mode 100755 index 0000000..4d0b7d3 --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/sl.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/sl",[],function(){return{errorLoading:function(){return"Zadetkov iskanja ni bilo mogoče naložiti."},inputTooLong:function(e){var n=e.input.length-e.maximum,t="Prosim zbrišite "+n+" znak";return 2==n?t+="a":1!=n&&(t+="e"),t},inputTooShort:function(e){var n=e.minimum-e.input.length,t="Prosim vpišite še "+n+" znak";return 2==n?t+="a":1!=n&&(t+="e"),t},loadingMore:function(){return"Nalagam več zadetkov…"},maximumSelected:function(e){var n="Označite lahko največ "+e.maximum+" predmet";return 2==e.maximum?n+="a":1!=e.maximum&&(n+="e"),n},noResults:function(){return"Ni zadetkov."},searching:function(){return"Iščem…"},removeAllItems:function(){return"Odstranite vse elemente"}}}),e.define,e.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/sq.js b/includes/classes/vendor/Select2/assets/js/i18n/sq.js new file mode 100755 index 0000000..5916202 --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/sq.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/sq",[],function(){return{errorLoading:function(){return"Rezultatet nuk mund të ngarkoheshin."},inputTooLong:function(e){var n=e.input.length-e.maximum,t="Të lutem fshi "+n+" karakter";return 1!=n&&(t+="e"),t},inputTooShort:function(e){return"Të lutem shkruaj "+(e.minimum-e.input.length)+" ose më shumë karaktere"},loadingMore:function(){return"Duke ngarkuar më shumë rezultate…"},maximumSelected:function(e){var n="Mund të zgjedhësh vetëm "+e.maximum+" element";return 1!=e.maximum&&(n+="e"),n},noResults:function(){return"Nuk u gjet asnjë rezultat"},searching:function(){return"Duke kërkuar…"},removeAllItems:function(){return"Hiq të gjitha sendet"}}}),e.define,e.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/sr-Cyrl.js b/includes/classes/vendor/Select2/assets/js/i18n/sr-Cyrl.js new file mode 100755 index 0000000..ce13ce8 --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/sr-Cyrl.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/sr-Cyrl",[],function(){function n(n,e,r,u){return n%10==1&&n%100!=11?e:n%10>=2&&n%10<=4&&(n%100<12||n%100>14)?r:u}return{errorLoading:function(){return"Преузимање није успело."},inputTooLong:function(e){var r=e.input.length-e.maximum,u="Обришите "+r+" симбол";return u+=n(r,"","а","а")},inputTooShort:function(e){var r=e.minimum-e.input.length,u="Укуцајте бар још "+r+" симбол";return u+=n(r,"","а","а")},loadingMore:function(){return"Преузимање још резултата…"},maximumSelected:function(e){var r="Можете изабрати само "+e.maximum+" ставк";return r+=n(e.maximum,"у","е","и")},noResults:function(){return"Ништа није пронађено"},searching:function(){return"Претрага…"},removeAllItems:function(){return"Уклоните све ставке"}}}),n.define,n.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/sr.js b/includes/classes/vendor/Select2/assets/js/i18n/sr.js new file mode 100755 index 0000000..dd407a0 --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/sr.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/sr",[],function(){function n(n,e,r,t){return n%10==1&&n%100!=11?e:n%10>=2&&n%10<=4&&(n%100<12||n%100>14)?r:t}return{errorLoading:function(){return"Preuzimanje nije uspelo."},inputTooLong:function(e){var r=e.input.length-e.maximum,t="Obrišite "+r+" simbol";return t+=n(r,"","a","a")},inputTooShort:function(e){var r=e.minimum-e.input.length,t="Ukucajte bar još "+r+" simbol";return t+=n(r,"","a","a")},loadingMore:function(){return"Preuzimanje još rezultata…"},maximumSelected:function(e){var r="Možete izabrati samo "+e.maximum+" stavk";return r+=n(e.maximum,"u","e","i")},noResults:function(){return"Ništa nije pronađeno"},searching:function(){return"Pretraga…"},removeAllItems:function(){return"Уклоните све ставке"}}}),n.define,n.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/sv.js b/includes/classes/vendor/Select2/assets/js/i18n/sv.js new file mode 100755 index 0000000..1bc8724 --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/sv.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/sv",[],function(){return{errorLoading:function(){return"Resultat kunde inte laddas."},inputTooLong:function(n){return"Vänligen sudda ut "+(n.input.length-n.maximum)+" tecken"},inputTooShort:function(n){return"Vänligen skriv in "+(n.minimum-n.input.length)+" eller fler tecken"},loadingMore:function(){return"Laddar fler resultat…"},maximumSelected:function(n){return"Du kan max välja "+n.maximum+" element"},noResults:function(){return"Inga träffar"},searching:function(){return"Söker…"},removeAllItems:function(){return"Ta bort alla objekt"}}}),n.define,n.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/th.js b/includes/classes/vendor/Select2/assets/js/i18n/th.js new file mode 100755 index 0000000..63eab71 --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/th.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/th",[],function(){return{errorLoading:function(){return"ไม่สามารถค้นข้อมูลได้"},inputTooLong:function(n){return"โปรดลบออก "+(n.input.length-n.maximum)+" ตัวอักษร"},inputTooShort:function(n){return"โปรดพิมพ์เพิ่มอีก "+(n.minimum-n.input.length)+" ตัวอักษร"},loadingMore:function(){return"กำลังค้นข้อมูลเพิ่ม…"},maximumSelected:function(n){return"คุณสามารถเลือกได้ไม่เกิน "+n.maximum+" รายการ"},noResults:function(){return"ไม่พบข้อมูล"},searching:function(){return"กำลังค้นข้อมูล…"},removeAllItems:function(){return"ลบรายการทั้งหมด"}}}),n.define,n.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/tk.js b/includes/classes/vendor/Select2/assets/js/i18n/tk.js new file mode 100755 index 0000000..30255ff --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/tk.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var e=jQuery.fn.select2.amd;e.define("select2/i18n/tk",[],function(){return{errorLoading:function(){return"Netije ýüklenmedi."},inputTooLong:function(e){return e.input.length-e.maximum+" harp bozuň."},inputTooShort:function(e){return"Ýene-de iň az "+(e.minimum-e.input.length)+" harp ýazyň."},loadingMore:function(){return"Köpräk netije görkezilýär…"},maximumSelected:function(e){return"Diňe "+e.maximum+" sanysyny saýlaň."},noResults:function(){return"Netije tapylmady."},searching:function(){return"Gözlenýär…"},removeAllItems:function(){return"Remove all items"}}}),e.define,e.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/tr.js b/includes/classes/vendor/Select2/assets/js/i18n/tr.js new file mode 100755 index 0000000..fc4c0bf --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/tr.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/tr",[],function(){return{errorLoading:function(){return"Sonuç yüklenemedi"},inputTooLong:function(n){return n.input.length-n.maximum+" karakter daha girmelisiniz"},inputTooShort:function(n){return"En az "+(n.minimum-n.input.length)+" karakter daha girmelisiniz"},loadingMore:function(){return"Daha fazla…"},maximumSelected:function(n){return"Sadece "+n.maximum+" seçim yapabilirsiniz"},noResults:function(){return"Sonuç bulunamadı"},searching:function(){return"Aranıyor…"},removeAllItems:function(){return"Tüm öğeleri kaldır"}}}),n.define,n.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/uk.js b/includes/classes/vendor/Select2/assets/js/i18n/uk.js new file mode 100755 index 0000000..63697e3 --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/uk.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/uk",[],function(){function n(n,e,u,r){return n%100>10&&n%100<15?r:n%10==1?e:n%10>1&&n%10<5?u:r}return{errorLoading:function(){return"Неможливо завантажити результати"},inputTooLong:function(e){return"Будь ласка, видаліть "+(e.input.length-e.maximum)+" "+n(e.maximum,"літеру","літери","літер")},inputTooShort:function(n){return"Будь ласка, введіть "+(n.minimum-n.input.length)+" або більше літер"},loadingMore:function(){return"Завантаження інших результатів…"},maximumSelected:function(e){return"Ви можете вибрати лише "+e.maximum+" "+n(e.maximum,"пункт","пункти","пунктів")},noResults:function(){return"Нічого не знайдено"},searching:function(){return"Пошук…"},removeAllItems:function(){return"Видалити всі елементи"}}}),n.define,n.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/vi.js b/includes/classes/vendor/Select2/assets/js/i18n/vi.js new file mode 100755 index 0000000..24f3bc2 --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/vi.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/vi",[],function(){return{inputTooLong:function(n){return"Vui lòng xóa bớt "+(n.input.length-n.maximum)+" ký tự"},inputTooShort:function(n){return"Vui lòng nhập thêm từ "+(n.minimum-n.input.length)+" ký tự trở lên"},loadingMore:function(){return"Đang lấy thêm kết quả…"},maximumSelected:function(n){return"Chỉ có thể chọn được "+n.maximum+" lựa chọn"},noResults:function(){return"Không tìm thấy kết quả"},searching:function(){return"Đang tìm…"},removeAllItems:function(){return"Xóa tất cả các mục"}}}),n.define,n.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/zh-CN.js b/includes/classes/vendor/Select2/assets/js/i18n/zh-CN.js new file mode 100755 index 0000000..2c5649d --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/zh-CN.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/zh-CN",[],function(){return{errorLoading:function(){return"无法载入结果。"},inputTooLong:function(n){return"请删除"+(n.input.length-n.maximum)+"个字符"},inputTooShort:function(n){return"请再输入至少"+(n.minimum-n.input.length)+"个字符"},loadingMore:function(){return"载入更多结果…"},maximumSelected:function(n){return"最多只能选择"+n.maximum+"个项目"},noResults:function(){return"未找到结果"},searching:function(){return"搜索中…"},removeAllItems:function(){return"删除所有项目"}}}),n.define,n.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/i18n/zh-TW.js b/includes/classes/vendor/Select2/assets/js/i18n/zh-TW.js new file mode 100755 index 0000000..570a566 --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/i18n/zh-TW.js @@ -0,0 +1,3 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ + +!function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var n=jQuery.fn.select2.amd;n.define("select2/i18n/zh-TW",[],function(){return{inputTooLong:function(n){return"請刪掉"+(n.input.length-n.maximum)+"個字元"},inputTooShort:function(n){return"請再輸入"+(n.minimum-n.input.length)+"個字元"},loadingMore:function(){return"載入中…"},maximumSelected:function(n){return"你只能選擇最多"+n.maximum+"項"},noResults:function(){return"沒有找到相符的項目"},searching:function(){return"搜尋中…"},removeAllItems:function(){return"刪除所有項目"}}}),n.define,n.require}(); \ No newline at end of file diff --git a/includes/classes/vendor/Select2/assets/js/select2.full.min.js b/includes/classes/vendor/Select2/assets/js/select2.full.min.js new file mode 100755 index 0000000..683301d --- /dev/null +++ b/includes/classes/vendor/Select2/assets/js/select2.full.min.js @@ -0,0 +1,2 @@ +/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ +!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t),t}:n(jQuery)}(function(d){var e=function(){if(d&&d.fn&&d.fn.select2&&d.fn.select2.amd)var e=d.fn.select2.amd;var t,n,i,h,o,s,f,g,m,v,y,_,r,a,w,l;function b(e,t){return r.call(e,t)}function c(e,t){var n,i,r,o,s,a,l,c,u,d,p,h=t&&t.split("/"),f=y.map,g=f&&f["*"]||{};if(e){for(s=(e=e.split("/")).length-1,y.nodeIdCompat&&w.test(e[s])&&(e[s]=e[s].replace(w,"")),"."===e[0].charAt(0)&&h&&(e=h.slice(0,h.length-1).concat(e)),u=0;u":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},r.appendMany=function(e,t){if("1.7"===o.fn.jquery.substr(0,3)){var n=o();o.map(t,function(e){n=n.add(e)}),t=n}e.append(t)},r.__cache={};var n=0;return r.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null==t&&(e.id?(t=e.id,e.setAttribute("data-select2-id",t)):(e.setAttribute("data-select2-id",++n),t=n.toString())),t},r.StoreData=function(e,t,n){var i=r.GetUniqueElementId(e);r.__cache[i]||(r.__cache[i]={}),r.__cache[i][t]=n},r.GetData=function(e,t){var n=r.GetUniqueElementId(e);return t?r.__cache[n]&&null!=r.__cache[n][t]?r.__cache[n][t]:o(e).data(t):r.__cache[n]},r.RemoveData=function(e){var t=r.GetUniqueElementId(e);null!=r.__cache[t]&&delete r.__cache[t],e.removeAttribute("data-select2-id")},r}),e.define("select2/results",["jquery","./utils"],function(h,f){function i(e,t,n){this.$element=e,this.data=n,this.options=t,i.__super__.constructor.call(this)}return f.Extend(i,f.Observable),i.prototype.render=function(){var e=h('');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=h(''),i=this.options.get("translations").get(e.message);n.append(t(i(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},i.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n",{class:"select2-results__options select2-results__options--nested"});p.append(l),s.append(a),s.append(p)}else this.template(e,t);return f.StoreData(t,"data",e),t},i.prototype.bind=function(t,e){var l=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",function(e){l.clear(),l.append(e.data),t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("results:append",function(e){l.append(e.data),t.isOpen()&&l.setClasses()}),t.on("query",function(e){l.hideMessages(),l.showLoading(e)}),t.on("select",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("open",function(){l.$results.attr("aria-expanded","true"),l.$results.attr("aria-hidden","false"),l.setClasses(),l.ensureHighlightVisible()}),t.on("close",function(){l.$results.attr("aria-expanded","false"),l.$results.attr("aria-hidden","true"),l.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=l.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=l.getHighlightedResults();if(0!==e.length){var t=f.GetData(e[0],"data");"true"==e.attr("aria-selected")?l.trigger("close",{}):l.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e);if(!(n<=0)){var i=n-1;0===e.length&&(i=0);var r=t.eq(i);r.trigger("mouseenter");var o=l.$results.offset().top,s=r.offset().top,a=l.$results.scrollTop()+(s-o);0===i?l.$results.scrollTop(0):s-o<0&&l.$results.scrollTop(a)}}),t.on("results:next",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var i=t.eq(n);i.trigger("mouseenter");var r=l.$results.offset().top+l.$results.outerHeight(!1),o=i.offset().top+i.outerHeight(!1),s=l.$results.scrollTop()+o-r;0===n?l.$results.scrollTop(0):rthis.$results.outerHeight()||o<0)&&this.$results.scrollTop(r)}},i.prototype.template=function(e,t){var n=this.options.get("templateResult"),i=this.options.get("escapeMarkup"),r=n(e,t);null==r?t.style.display="none":"string"==typeof r?t.innerHTML=i(r):h(t).append(r)},i}),e.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),e.define("select2/selection/base",["jquery","../utils","../keys"],function(n,i,r){function o(e,t){this.$element=e,this.options=t,o.__super__.constructor.call(this)}return i.Extend(o,i.Observable),o.prototype.render=function(){var e=n('');return this._tabindex=0,null!=i.GetData(this.$element[0],"old-tabindex")?this._tabindex=i.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),e.attr("aria-disabled","false"),this.$selection=e},o.prototype.bind=function(e,t){var n=this,i=e.id+"-results";this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===r.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",i),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.trigger("focus"),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex),n.$selection.attr("aria-disabled","false")}),e.on("disable",function(){n.$selection.attr("tabindex","-1"),n.$selection.attr("aria-disabled","true")})},o.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||n.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},o.prototype._attachCloseHandler=function(e){n(document.body).on("mousedown.select2."+e.id,function(e){var t=n(e.target).closest(".select2");n(".select2.select2-container--open").each(function(){this!=t[0]&&i.GetData(this,"element").select2("close")})})},o.prototype._detachCloseHandler=function(e){n(document.body).off("mousedown.select2."+e.id)},o.prototype.position=function(e,t){t.find(".selection").append(e)},o.prototype.destroy=function(){this._detachCloseHandler(this.container)},o.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},o.prototype.isEnabled=function(){return!this.isDisabled()},o.prototype.isDisabled=function(){return this.options.get("disabled")},o}),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,i){function r(){r.__super__.constructor.apply(this,arguments)}return n.Extend(r,t),r.prototype.render=function(){var e=r.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html(''),e},r.prototype.bind=function(t,e){var n=this;r.__super__.bind.apply(this,arguments);var i=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",i),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),t.on("focus",function(e){t.isOpen()||n.$selection.trigger("focus")})},r.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},r.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},r.prototype.selectionContainer=function(){return e("")},r.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),i=this.display(t,n);n.empty().append(i);var r=t.title||t.text;r?n.attr("title",r):n.removeAttr("title")}else this.clear()},r}),e.define("select2/selection/multiple",["jquery","./base","../utils"],function(r,e,l){function n(e,t){n.__super__.constructor.apply(this,arguments)}return l.Extend(n,e),n.prototype.render=function(){var e=n.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('
    '),e},n.prototype.bind=function(e,t){var i=this;n.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){i.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){if(!i.isDisabled()){var t=r(this).parent(),n=l.GetData(t[0],"data");i.trigger("unselect",{originalEvent:e,data:n})}})},n.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},n.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},n.prototype.selectionContainer=function(){return r('
  • ×
  • ')},n.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=0;n×');a.StoreData(i[0],"data",t),this.$selection.find(".select2-selection__rendered").prepend(i)}},e}),e.define("select2/selection/search",["jquery","../utils","../keys"],function(i,a,l){function e(e,t,n){e.call(this,t,n)}return e.prototype.render=function(e){var t=i('');this.$searchContainer=t,this.$search=t.find("input");var n=e.call(this);return this._transferTabIndex(),n},e.prototype.bind=function(e,t,n){var i=this,r=t.id+"-results";e.call(this,t,n),t.on("open",function(){i.$search.attr("aria-controls",r),i.$search.trigger("focus")}),t.on("close",function(){i.$search.val(""),i.$search.removeAttr("aria-controls"),i.$search.removeAttr("aria-activedescendant"),i.$search.trigger("focus")}),t.on("enable",function(){i.$search.prop("disabled",!1),i._transferTabIndex()}),t.on("disable",function(){i.$search.prop("disabled",!0)}),t.on("focus",function(e){i.$search.trigger("focus")}),t.on("results:focus",function(e){e.data._resultId?i.$search.attr("aria-activedescendant",e.data._resultId):i.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(e){i.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){i._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){if(e.stopPropagation(),i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented(),e.which===l.BACKSPACE&&""===i.$search.val()){var t=i.$searchContainer.prev(".select2-selection__choice");if(0this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(){i._checkIfMaximumSelected()})},e.prototype.query=function(e,t,n){var i=this;this._checkIfMaximumSelected(function(){e.call(i,t,n)})},e.prototype._checkIfMaximumSelected=function(e,n){var i=this;this.current(function(e){var t=null!=e?e.length:0;0=i.maximumSelectionLength?i.trigger("results:message",{message:"maximumSelected",args:{maximum:i.maximumSelectionLength}}):n&&n()})},e}),e.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),e.define("select2/dropdown/search",["jquery","../utils"],function(o,e){function t(){}return t.prototype.render=function(e){var t=e.call(this),n=o('');return this.$searchContainer=n,this.$search=n.find("input"),t.prepend(n),t},t.prototype.bind=function(e,t,n){var i=this,r=t.id+"-results";e.call(this,t,n),this.$search.on("keydown",function(e){i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){o(this).off("keyup")}),this.$search.on("keyup input",function(e){i.handleSearch(e)}),t.on("open",function(){i.$search.attr("tabindex",0),i.$search.attr("aria-controls",r),i.$search.trigger("focus"),window.setTimeout(function(){i.$search.trigger("focus")},0)}),t.on("close",function(){i.$search.attr("tabindex",-1),i.$search.removeAttr("aria-controls"),i.$search.removeAttr("aria-activedescendant"),i.$search.val(""),i.$search.trigger("blur")}),t.on("focus",function(){t.isOpen()||i.$search.trigger("focus")}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(i.showSearch(e)?i.$searchContainer.removeClass("select2-search--hide"):i.$searchContainer.addClass("select2-search--hide"))}),t.on("results:focus",function(e){e.data._resultId?i.$search.attr("aria-activedescendant",e.data._resultId):i.$search.removeAttr("aria-activedescendant")})},t.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t}),e.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,i)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;0<=i;i--){var r=t[i];this.placeholder.id===r.id&&n.splice(i,1)}return n},e}),e.define("select2/dropdown/infiniteScroll",["jquery"],function(n){function e(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("query",function(e){i.lastParams=e,i.loading=!0}),t.on("query:append",function(e){i.lastParams=e,i.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=n.contains(document.documentElement,this.$loadingMore[0]);if(!this.loading&&e){var t=this.$results.offset().top+this.$results.outerHeight(!1);this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=t+50&&this.loadMore()}},e.prototype.loadMore=function(){this.loading=!0;var e=n.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=n('
  • '),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),e.define("select2/dropdown/attachBody",["jquery","../utils"],function(f,a){function e(e,t,n){this.$dropdownParent=f(n.get("dropdownParent")||document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("open",function(){i._showDropdown(),i._attachPositioningHandler(t),i._bindContainerResultHandlers(t)}),t.on("close",function(){i._hideDropdown(),i._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=f(""),n=e.call(this);return t.append(n),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._bindContainerResultHandlers=function(e,t){if(!this._containerResultsHandlersBound){var n=this;t.on("results:all",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:append",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:message",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("select",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("unselect",function(){n._positionDropdown(),n._resizeDropdown()}),this._containerResultsHandlersBound=!0}},e.prototype._attachPositioningHandler=function(e,t){var n=this,i="scroll.select2."+t.id,r="resize.select2."+t.id,o="orientationchange.select2."+t.id,s=this.$container.parents().filter(a.hasScroll);s.each(function(){a.StoreData(this,"select2-scroll-position",{x:f(this).scrollLeft(),y:f(this).scrollTop()})}),s.on(i,function(e){var t=a.GetData(this,"select2-scroll-position");f(this).scrollTop(t.y)}),f(window).on(i+" "+r+" "+o,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2."+t.id,i="resize.select2."+t.id,r="orientationchange.select2."+t.id;this.$container.parents().filter(a.hasScroll).off(n),f(window).off(n+" "+i+" "+r)},e.prototype._positionDropdown=function(){var e=f(window),t=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),i=null,r=this.$container.offset();r.bottom=r.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=r.top,o.bottom=r.top+o.height;var s=this.$dropdown.outerHeight(!1),a=e.scrollTop(),l=e.scrollTop()+e.height(),c=ar.bottom+s,d={left:r.left,top:o.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var h={top:0,left:0};(f.contains(document.body,p[0])||p[0].isConnected)&&(h=p.offset()),d.top-=h.top,d.left-=h.left,t||n||(i="below"),u||!c||t?!c&&u&&t&&(i="below"):i="above",("above"==i||t&&"below"!==i)&&(d.top=o.top-h.top-s),null!=i&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+i),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+i)),this.$dropdownContainer.css(d)},e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),e.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,i)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,i=0;i');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),u.StoreData(e[0],"element",this.$element),e},d}),e.define("select2/compat/utils",["jquery"],function(s){return{syncCssClasses:function(e,t,n){var i,r,o=[];(i=s.trim(e.attr("class")))&&s((i=""+i).split(/\s+/)).each(function(){0===this.indexOf("select2-")&&o.push(this)}),(i=s.trim(t.attr("class")))&&s((i=""+i).split(/\s+/)).each(function(){0!==this.indexOf("select2-")&&null!=(r=n(this))&&o.push(r)}),e.attr("class",o.join(" "))}}}),e.define("select2/compat/containerCss",["jquery","./utils"],function(s,a){function l(e){return null}function e(){}return e.prototype.render=function(e){var t=e.call(this),n=this.options.get("containerCssClass")||"";s.isFunction(n)&&(n=n(this.$element));var i=this.options.get("adaptContainerCssClass");if(i=i||l,-1!==n.indexOf(":all:")){n=n.replace(":all:","");var r=i;i=function(e){var t=r(e);return null!=t?t+" "+e:e}}var o=this.options.get("containerCss")||{};return s.isFunction(o)&&(o=o(this.$element)),a.syncCssClasses(t,this.$element,i),t.css(o),t.addClass(n),t},e}),e.define("select2/compat/dropdownCss",["jquery","./utils"],function(s,a){function l(e){return null}function e(){}return e.prototype.render=function(e){var t=e.call(this),n=this.options.get("dropdownCssClass")||"";s.isFunction(n)&&(n=n(this.$element));var i=this.options.get("adaptDropdownCssClass");if(i=i||l,-1!==n.indexOf(":all:")){n=n.replace(":all:","");var r=i;i=function(e){var t=r(e);return null!=t?t+" "+e:e}}var o=this.options.get("dropdownCss")||{};return s.isFunction(o)&&(o=o(this.$element)),a.syncCssClasses(t,this.$element,i),t.css(o),t.addClass(n),t},e}),e.define("select2/compat/initSelection",["jquery"],function(i){function e(e,t,n){n.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `initSelection` option has been deprecated in favor of a custom data adapter that overrides the `current` method. This method is now called multiple times instead of a single time when the instance is initialized. Support will be removed for the `initSelection` option in future versions of Select2"),this.initSelection=n.get("initSelection"),this._isInitialized=!1,e.call(this,t,n)}return e.prototype.current=function(e,t){var n=this;this._isInitialized?e.call(this,t):this.initSelection.call(null,this.$element,function(e){n._isInitialized=!0,i.isArray(e)||(e=[e]),t(e)})},e}),e.define("select2/compat/inputData",["jquery","../utils"],function(s,i){function e(e,t,n){this._currentData=[],this._valueSeparator=n.get("valueSeparator")||",","hidden"===t.prop("type")&&n.get("debug")&&console&&console.warn&&console.warn("Select2: Using a hidden input with Select2 is no longer supported and may stop working in the future. It is recommended to use a `'; + echo ''; + } + + /** + * Enqueues necessary JS scripts and stylesheets. + * + * @since 4.5.1 + * @since 5.0.0 - this method is no longer private. + */ + public static function enqueue_scripts() { + if ( self::$scripts_queued ) { + return; + } + + wp_enqueue_style( + 'wpw-select2', + self::$base_url . '/assets/css/select2.min.css', + array(), + '4.0.13' + ); + + wp_enqueue_style( + 'wpw-select2-overrides', + self::$base_url . '/assets/css/wp-overrides.css', + array( 'wpw-select2' ), + '4.0.13' + ); + + wp_enqueue_script( + 'wpw-select2', + self::$base_url . '/assets/js/select2.full.min.js', + array( 'jquery' ), + '4.0.13', + true + ); + + self::$scripts_queued = true; + } + + /** + * Alters WordPress query to search only by post title. + * + * @param string $where SQL WHERE statement. + * @param WP_Query $wp_query WordPress query object. + * + * @return string + * + * @since 4.5.1 + */ + public static function search_post_title( $where, $wp_query ) { + $search_term = $wp_query->get( 'search_post_title' ); + if ( $search_term ) { + global $wpdb; + $where .= ' AND ' . $wpdb->posts . '.post_title LIKE \'%' . $wpdb->esc_like( $search_term ) . '%\''; + } + + return $where; + } + } +} diff --git a/includes/classes/vendor/class-rational-option-pages.php b/includes/classes/vendor/class-rational-option-pages.php old mode 100644 new mode 100755 diff --git a/includes/functions/core.php b/includes/functions/core.php old mode 100644 new mode 100755 index 0316ecd..47892c4 --- a/includes/functions/core.php +++ b/includes/functions/core.php @@ -9,8 +9,9 @@ namespace AdminNoticesManager\Core; use AdminNoticesManager\Notices; -use AdminNoticesManager\Pointer; +use AdminNoticesManager\Pointers; use AdminNoticesManager\Settings; +use AdminNoticesManager\Select2_WPWS; /** * Default setup routine @@ -22,14 +23,14 @@ function setup() { return __NAMESPACE__ . "\\$function"; }; - add_action( 'init', $n( 'i18n' ) ); - add_action( 'init', $n( 'init' ) ); - add_action( 'admin_enqueue_scripts', $n( 'admin_scripts' ) ); - add_action( 'admin_enqueue_scripts', $n( 'admin_styles' ) ); + \add_action( 'init', $n( 'i18n' ) ); + \add_action( 'init', $n( 'init' ) ); + \add_action( 'admin_enqueue_scripts', $n( 'admin_scripts' ) ); + \add_action( 'admin_enqueue_scripts', $n( 'admin_styles' ) ); - add_action( 'wp_ajax_anm_purge_notices', $n( 'purge_notices' ) ); + \add_action( 'wp_ajax_anm_purge_notices', $n( 'purge_notices' ) ); - do_action( 'admin_notices_manager_loaded' ); + \do_action( 'admin_notices_manager_loaded' ); } /** @@ -52,17 +53,17 @@ function init() { if ( is_admin() ) { - if ( class_exists( '\S24WP' ) ) { - \S24WP::init( ADMIN_NOTICES_MANAGER_URL . 'vendor/wpwhitesecurity/select2-wpwhitesecurity' ); + if ( class_exists( Select2_WPWS::class ) ) { + Select2_WPWS::init( ADMIN_NOTICES_MANAGER_URL . 'includes/classes/vendor/Select2' ); } // Check if the notices can be hidden for the currently logged-in user. $notice_hiding_allowed = Settings::notice_hiding_allowed_for_current_user(); Notices::init( $notice_hiding_allowed ); - Pointer::init(); + Pointers::init(); - new Settings(); + Settings::init(); } do_action( 'admin_notices_manager_init' ); diff --git a/includes/index.php b/includes/index.php old mode 100644 new mode 100755 diff --git a/index.php b/index.php old mode 100644 new mode 100755 diff --git a/languages/admin-notices-manager-sk_SK.mo b/languages/admin-notices-manager-sk_SK.mo old mode 100644 new mode 100755 diff --git a/languages/admin-notices-manager-sk_SK.po b/languages/admin-notices-manager-sk_SK.po old mode 100644 new mode 100755 diff --git a/languages/admin-notices-manager.pot b/languages/admin-notices-manager.pot old mode 100644 new mode 100755 diff --git a/languages/index.php b/languages/index.php old mode 100644 new mode 100755 diff --git a/package-lock.json b/package-lock.json old mode 100644 new mode 100755 diff --git a/package.json b/package.json old mode 100644 new mode 100755 diff --git a/phpunit.xml b/phpunit.xml old mode 100644 new mode 100755 diff --git a/readme.txt b/readme.txt old mode 100644 new mode 100755 diff --git a/tests/bootstrap.php b/tests/bootstrap.php old mode 100644 new mode 100755 diff --git a/tests/js/.gitkeep b/tests/js/.gitkeep old mode 100644 new mode 100755 diff --git a/tests/phpunit/test-tools/Core_Tests.php b/tests/phpunit/test-tools/Core_Tests.php old mode 100644 new mode 100755 diff --git a/tests/phpunit/test-tools/TestCase.php b/tests/phpunit/test-tools/TestCase.php old mode 100644 new mode 100755 diff --git a/uninstall.php b/uninstall.php old mode 100644 new mode 100755 diff --git a/wpgulp.config.js b/wpgulp.config.js old mode 100644 new mode 100755