Version Description
- 19/09/2017 =
- Feature - Redirect URL
- Feature - Number and date field added
- Feature - logger added
- Feature - Formwise template
- Fix - Frontend form javascript validation issue fixed
- Fix - My account tab issue fixed
- Deprecated - Administrator from prevent dashboard access
- Added some filter and action hooks See changelog for all versions.
Download this release
Release Info
Developer | wpeverest |
Plugin | User Registration – Custom Registration Form, Login Form And User Profile For WordPress |
Version | 1.1.0 |
Comparing to | |
See all releases |
Code changes from version 1.0.4 to 1.1.0
- assets/css/_colors.scss +3 -0
- assets/css/activation-rtl.css +1 -1
- assets/css/activation.css +1 -1
- assets/css/activation.scss +13 -0
- assets/css/admin-rtl.css +2 -2
- assets/css/admin.css +2 -2
- assets/css/admin.scss +122 -0
- assets/css/menu-rtl.css +1 -0
- assets/css/menu.css +1 -0
- assets/css/menu.scss +68 -0
- assets/css/select2.css +1 -1
- assets/css/select2.scss +4 -8
- assets/css/user-registration-rtl.css +1 -1
- assets/css/user-registration.css +1 -1
- assets/css/user-registration.scss +168 -40
- assets/js/admin/enhanced-select.js +2 -2
- assets/js/admin/enhanced-select.min.js +1 -1
- assets/js/frontend/password-strength-meter.js +2 -1
- assets/js/frontend/password-strength-meter.min.js +1 -1
- assets/js/frontend/user-registration.js +29 -4
- assets/js/frontend/user-registration.min.js +1 -1
- assets/js/select2/select2.full.min.js +0 -3
- assets/js/select2/select2.min.js +0 -13
- assets/js/{select2/select2.full.js → selectWoo/selectWoo.full.js} +6543 -6436
- assets/js/selectWoo/selectWoo.full.min.js +1 -0
- assets/js/{select2/select2.js → selectWoo/selectWoo.js} +1999 -5725
assets/css/_colors.scss
CHANGED
@@ -17,4 +17,7 @@ $color_gray_five: lighten($black, 69.5%); // #b1b1b1
|
|
17 |
$color_sortable_background: #f7f7f7;
|
18 |
$color_danger: #d82223;
|
19 |
$border_color: #333333;
|
|
|
|
|
|
|
20 |
|
17 |
$color_sortable_background: #f7f7f7;
|
18 |
$color_danger: #d82223;
|
19 |
$border_color: #333333;
|
20 |
+
$label_color: #69717A;
|
21 |
+
$input_background_color: #f8f9fa;
|
22 |
+
$flat_background: #F6F7F9;
|
23 |
|
assets/css/activation-rtl.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.user-registration-message{overflow:hidden;position:relative;border-right-color:#2ea2cc!important}.user-registration-message a.button-primary,.user-registration-message a.button-secondary{text-decoration:none!important}.user-registration-message a.user-registration-message-close{position:absolute;top:0;left:0;padding:10px 21px 10px 15px;font-size:13px;line-height:1.23076923;text-decoration:none}.user-registration-message a.user-registration-message-close:before{position:absolute;top:8px;right:0;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}
|
1 |
+
.user-registration-message{overflow:hidden;position:relative;border-right-color:#2ea2cc!important}.user-registration-message.error{border-right-color:#a00!important}.user-registration-message.error p{max-width:1000px}.user-registration-message a.button-primary,.user-registration-message a.button-secondary{text-decoration:none!important}.user-registration-message a.user-registration-message-close{position:absolute;top:0;left:0;padding:10px 21px 10px 15px;font-size:13px;line-height:1.23076923;text-decoration:none}.user-registration-message a.user-registration-message-close:before{position:absolute;top:8px;right:0;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}
|
assets/css/activation.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.user-registration-message{overflow:hidden;position:relative;border-left-color:#2ea2cc!important}.user-registration-message a.button-primary,.user-registration-message a.button-secondary{text-decoration:none!important}.user-registration-message a.user-registration-message-close{position:absolute;top:0;right:0;padding:10px 15px 10px 21px;font-size:13px;line-height:1.23076923;text-decoration:none}.user-registration-message a.user-registration-message-close:before{position:absolute;top:8px;left:0;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}
|
1 |
+
.user-registration-message{overflow:hidden;position:relative;border-left-color:#2ea2cc!important}.user-registration-message.error{border-left-color:#a00!important}.user-registration-message.error p{max-width:1000px}.user-registration-message a.button-primary,.user-registration-message a.button-secondary{text-decoration:none!important}.user-registration-message a.user-registration-message-close{position:absolute;top:0;right:0;padding:10px 15px 10px 21px;font-size:13px;line-height:1.23076923;text-decoration:none}.user-registration-message a.user-registration-message-close:before{position:absolute;top:8px;left:0;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}
|
assets/css/activation.scss
CHANGED
@@ -3,6 +3,11 @@
|
|
3 |
* Styles applied to elements displayed on activation
|
4 |
*/
|
5 |
|
|
|
|
|
|
|
|
|
|
|
6 |
/**
|
7 |
* Styling begins
|
8 |
*/
|
@@ -11,6 +16,14 @@
|
|
11 |
position: relative;
|
12 |
border-left-color: #2ea2cc !important;
|
13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
a.button-primary,
|
15 |
a.button-secondary {
|
16 |
text-decoration: none !important;
|
3 |
* Styles applied to elements displayed on activation
|
4 |
*/
|
5 |
|
6 |
+
/**
|
7 |
+
* Imports
|
8 |
+
*/
|
9 |
+
@import "variables";
|
10 |
+
|
11 |
/**
|
12 |
* Styling begins
|
13 |
*/
|
16 |
position: relative;
|
17 |
border-left-color: #2ea2cc !important;
|
18 |
|
19 |
+
&.error {
|
20 |
+
border-left-color: $red !important;
|
21 |
+
|
22 |
+
p {
|
23 |
+
max-width: 1000px;
|
24 |
+
}
|
25 |
+
}
|
26 |
+
|
27 |
a.button-primary,
|
28 |
a.button-secondary {
|
29 |
text-decoration: none !important;
|
assets/css/admin-rtl.css
CHANGED
@@ -1,2 +1,2 @@
|
|
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;-moz-user-select:none;-ms-user-select:none;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;-moz-user-select:none;-ms-user-select:none;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:#fff;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;-moz-user-select:none;-ms-user-select:none;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}.select2-hidden-accessible{border:0!important;clip:rect(0 0 0 0)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;width:1px!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:700}.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:#fff;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__placeholder{color:#999;margin-top:5px;float:left}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-top:5px;margin-right:10px}.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:700;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-search--inline,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__placeholder{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 #000 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--multiple,.select2-container--default.select2-container--open.select2-container--above .select2-selection--single{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--below .select2-selection--single{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:0 0;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:#0073aa;color:#fff}.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:linear-gradient(to bottom,#fff 50%,#eee 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--single:focus{border:1px solid #0073aa}.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:700;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:linear-gradient(to bottom,#eee 50%,#ccc 100%);background-repeat:repeat-x}.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 #0073aa}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:0 0;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:linear-gradient(to bottom,#fff 0,#eee 50%);background-repeat:repeat-x}.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:linear-gradient(to bottom,#eee 50%,#fff 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #0073aa}.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:700;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}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{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 #0073aa}.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:#0073aa}
|
2 |
-
@charset "UTF-8";.ur-registered-item.ui-draggable-dragging{padding:10px 10px;line-height:20px;background:#3498db;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important}.ur-registered-item.ui-draggable-dragging span{font-size:14px;line-height:20px;width:auto;height:auto;margin-left:3px}.blockUI.blockOverlay::before{height:1em;width:1em;position:absolute;top:50%;right:50%;margin-right:-.5em;margin-top:-.5em;display:block;content:'';-webkit-animation:spin 1s ease-in-out infinite;animation:spin 1s ease-in-out infinite;background:url(../images/icons/loader.svg) center center;background-size:cover;line-height:1;text-align:center;font-size:2em;color:rgba(0,0,0,.75)}.user-registration_page_add-new-registration #post-body{background-color:#fff}.user-registration_page_add-new-registration #post-body .error,.user-registration_page_add-new-registration #post-body .updated{margin:0}.user-registration_page_add-new-registration #post-body-content{position:relative;float:none}.user-registration_page_add-new-registration .howto span{float:right;margin-top:6px}.user-registration_page_add-new-registration .list-wrap{display:none;clear:both;margin-bottom:10px}.user-registration_page_add-new-registration .list li{display:none;margin:0;margin-bottom:5px}.user-registration_page_add-new-registration .list li .menu-item-title{cursor:pointer;display:block}.user-registration_page_add-new-registration .list li .menu-item-title input{margin-left:3px;margin-top:-3px}.user-registration_page_add-new-registration #menu-management-liquid{margin-top:23px}.user-registration_page_add-new-registration .postbox p.submit{margin-bottom:0}.user-registration_page_add-new-registration .major-publishing-actions{clear:both;padding:10px 0;line-height:28px}.user-registration_page_add-new-registration .major-publishing-actions .publishing-action{text-align:left;float:left}.user-registration_page_add-new-registration .major-publishing-actions .form-invalid{padding-right:4px;margin-right:-4px}.user-registration_page_add-new-registration .major-publishing-actions .ur-form-name{width:25%}.user-registration_page_add-new-registration .blank-slate .menu-settings{display:none}.user-registration_page_add-new-registration .delete-action{float:right;line-height:28px}.ur-backbone-modal *{box-sizing:border-box}.ur-backbone-modal .ur-backbone-modal-content{position:fixed;background-color:#fff;z-index:100000;right:50%;top:50%;-webkit-transform:translate(50%,-50%);-ms-transform:translate(50%,-50%);transform:translate(50%,-50%);width:500px}.ur-backbone-modal .ur-backbone-modal-content article{overflow:auto}.ur-backbone-modal.ur-backbone-modal-content{width:75%;min-width:500px}.ur-backbone-modal .select2-container{width:100%!important}.ur-backbone-modal-backdrop{position:fixed;top:0;right:0;left:0;bottom:0;min-height:360px;background-color:#000;opacity:.7;z-index:99900}.ur-backbone-modal-main{padding-bottom:55px}.ur-backbone-modal-main article,.ur-backbone-modal-main header{display:block;position:relative}.ur-backbone-modal-main .ur-backbone-modal-header{height:auto;background-color:#fcfcfc;padding:1em 1.5em;border-bottom:1px solid #ddd}.ur-backbone-modal-main .ur-backbone-modal-header h1{margin:0;font-size:18px;font-weight:700;line-height:1.5em}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link{cursor:pointer;color:#777;height:54px;width:54px;padding:0;position:absolute;top:0;left:0;text-align:center;border:0;border-right:1px solid #ddd;background-color:transparent;-webkit-transition:color .1s ease-in-out,background .1s ease-in-out;transition:color .1s ease-in-out,background .1s ease-in-out}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link::before{font:normal 22px/50px dashicons!important;color:#666;display:block;content:'\f335';font-weight:300}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:focus,.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:hover{background-color:#ddd;border-color:#ccc;color:#000}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:focus{outline:0}.ur-backbone-modal-main article{padding:1.5em}.ur-backbone-modal-main article p{margin:1.5em 0}.ur-backbone-modal-main article p:first-child{margin-top:0}.ur-backbone-modal-main article p:last-child{margin-bottom:0}.ur-backbone-modal-main article .pagination{padding:10px 0 0;text-align:center}.ur-backbone-modal-main footer{position:absolute;right:0;left:0;bottom:0;z-index:100;padding:1em 1.5em;background-color:#fcfcfc;border-top:1px solid #dfdfdf;box-shadow:0 -4px 4px -4px rgba(0,0,0,.1)}.ur-backbone-modal-main footer .inner{float:left;line-height:23px}.ur-backbone-modal-main footer .inner .button{margin-bottom:0}.user-registration h2.ur-nav-tab-wrapper{margin-bottom:1em}.user-registration nav.ur-nav-tab-wrapper{margin:1.5em 0 1em;border-bottom:1px solid #ccc}.user-registration .subsubsub{margin:-8px 0 0}.user-registration textarea[disabled=disabled]{background:#dfdfdf!important}.user-registration table.form-table{margin:0;position:relative}.user-registration table.form-table .select2-container{display:block;max-width:350px}.user-registration table.form-table .forminp-radio ul{margin:0}.user-registration table.form-table .forminp-radio ul li{line-height:1.4em}.user-registration table.form-table textarea.input-text{height:100%;min-width:150px;display:block}.user-registration table.form-table input.regular-input{width:25em}.user-registration table.form-table textarea.wide-input{width:100%}.user-registration table.form-table .user-registration-help-tip,.user-registration table.form-table img.help_tip{padding:0;margin:-4px 5px 0 0;vertical-align:middle;cursor:help;line-height:1}.user-registration table.form-table span.help_tip{cursor:help;color:#2ea2cc}.user-registration table.form-table th{position:relative;padding-left:24px}.user-registration table.form-table .select2-container{vertical-align:top;margin-bottom:3px}.user-registration table.form-table table.widefat th{padding-left:inherit}.user-registration table.form-table th .user-registration-help-tip,.user-registration table.form-table th img.help_tip{margin:0 0 0 -24px;float:left}.user-registration table.form-table .wp-list-table .user-registration-help-tip{float:none}.user-registration table.form-table fieldset{margin-top:4px}.user-registration table.form-table fieldset .user-registration-help-tip,.user-registration table.form-table fieldset img.help_tip{margin:-3px 5px 0 0}.user-registration table.form-table fieldset p.description{margin-bottom:8px}.user-registration table.form-table fieldset:first-child{margin-top:0}.user-registration table.form-table .iris-picker{z-index:100;display:none;position:absolute;border:1px solid #ccc;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,.2)}.user-registration table.form-table .iris-picker .ui-slider{border:0!important;margin:0!important;width:auto!important;height:auto!important;background:none transparent!important}.user-registration table.form-table .iris-picker .ui-slider .ui-slider-handle{margin-bottom:0!important}.user-registration table.form-table .colorpickpreview{padding:3px;padding-right:20px;border:1px solid #ddd;border-left:0}.user-registration table.form-table .colorpick{border-right:0}.user-registration table.form-table .image_width_settings{vertical-align:middle}.user-registration table.form-table .image_width_settings label{margin-right:10px}@media only screen and (min-width:769px) and (max-width:1000px){.user-registration_page_add-new-registration #post-body-content{min-width:0}}@media screen and (max-width:782px){body.user-registration_page_add-new-registration{min-width:0!important}}.ur-admin-template-options{display:none}.ur-registered-from{display:-webkit-box;display:-ms-flexbox;display:flex;background-color:#f8f8f8;font-family:Roboto,sans-serif;border-bottom:1px solid #ddd}.ur-registered-from *{box-sizing:border-box}.ur-registered-from :focus{outline:0}.ur-registered-from .ur-registered-inputs{width:35%;background-color:#f9f9f9}.ur-registered-from .ur-registered-inputs .ur-tabs{border:0 none;background-color:transparent;padding:0;font-family:Roboto,sans-serif;font-size:14px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists{background-color:transparent;background-image:none;padding:0;border-radius:0;margin:0;display:-webkit-box;display:-ms-flexbox;display:flex;border-bottom:2px solid #217dbb;border-top:0 none;border-left:0 none;border-right:0 none}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li{background-color:transparent;background-image:none;border-radius:0;margin:0;margin-bottom:-1px;padding:0;float:none;display:inline-block;border:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li.active{margin-bottom:0;padding-bottom:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li.ui-state-disabled{opacity:1}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a{float:none;text-decoration:none;margin:0;border:none;display:block;color:#666;background-color:transparent;padding:5px 15px;font-weight:500;cursor:pointer}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a:focus{box-shadow:0 0 0 0 transparent,0 0 0 0 transparent}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a.active{background-color:#217dbb;color:#fff;line-height:24px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content{padding:10px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content#ur-tab-field-options,.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content#ur-tab-registered-fields{background-color:#f2f2f2}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content h2{margin:0;font-size:16px;font-weight:600;font-family:Roboto,sans-serif;color:#404040}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list{margin:15px 0;width:100%}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::after,.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::before{content:' ';display:table}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::after{clear:both}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list:last-child{margin-bottom:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:right;padding:10px 45px 10px 15px;height:auto;line-height:25px;width:48%;background-color:#3498db;color:#fff;margin-bottom:7px;word-break:break-word;white-space:normal;position:relative;cursor:move}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item .dashicons{position:absolute;top:0;bottom:0;background:rgba(0,0,0,.3);width:35px;right:0;line-height:2.9;font-size:16px;height:auto;margin-left:5px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:nth-child(2n){float:left}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:hover{background-color:#217dbb;color:#fff}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:nth-child(2n+1){clear:both;display:block}.ur-registered-from .ur-selected-inputs{width:70%;box-sizing:border-box;border-right:1px solid #ddd;padding:20px}.ur-registered-from .ur-selected-inputs .ur-single-row{background-color:#f2f2f2;margin-bottom:20px;border:1px solid #ddd}.ur-registered-from .ur-selected-inputs .ur-single-row:last-child{margin-bottom:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids{background-color:#f2f2f2;border-bottom:1px solid #ddd;clear:both;display:table;width:100%}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div{border-left:1px solid #ddd;display:inline-block;line-height:25px;color:#787878;float:right}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-size{padding:0 10px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-navigation{width:25px;height:25px;background-color:#e8e8e8;font-family:dashicons;font-size:16px;cursor:pointer}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-navigation:hover{background-color:#ddd}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row{float:left;border-radius:0;border:0;background-color:transparent;color:#787878;width:25px;height:25px;cursor:pointer;padding:0;line-height:25px;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row:before{font-family:dashicons}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row:hover{color:#d82223}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;text-align:center;padding:20px;box-sizing:border-box;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item{display:inline-block;text-align:right;border:0 none;padding:15px;background-color:#f7f7f7;-webkit-box-flex:1;-ms-flex:1;flex:1;border:2px dashed #d3d3d3}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item{margin-bottom:15px;position:relative;background-color:#f8f8f8;padding:20px;cursor:move;border:1px solid #e8e8e8;-webkit-transition:border-color .35s;transition:border-color .35s}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:last-child{margin-bottom:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:hover{border:1px solid #3498db}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active{box-shadow:0 0 20px rgba(0,0,0,.2);background-color:#f8f8f8}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ui-sortable-helper,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active.ui-sortable-helper{box-shadow:0 0 20px rgba(0,0,0,.2);background-color:#e8e8e8}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons{display:none;position:absolute;left:10px;width:50px;text-align:center;padding:0;font-size:10px;top:10px;color:#b1b1b1}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons span{cursor:pointer;font-size:14px;height:auto}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons span:hover{color:#3498db}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons:hover .ur-action-buttons{display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons .ur-trash:hover{color:#d82223}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_top_left{text-align:right}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_center{text-align:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_top_right{text-align:left}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_disabled{display:none}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:hover .ur-action-buttons{display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item>li.ur-item-dragged{list-style:none;width:100%;text-align:center;height:60px!important;box-sizing:border-box}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item>li.ur-item-dragged .spinner{float:none}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me{display:table;width:100%;height:100%}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text{display:table-cell;vertical-align:middle;text-align:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text p{display:inline-block;position:relative;color:#b1b1b1;padding-right:26px;padding-top:8px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text p::before{position:absolute;font-family:Dashicons;content:'\f545';font-size:22px;right:0;top:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2){border-right:2px solid #f7f7f7}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2).ur-sortable-active,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-sortable-active{border-left:2px dotted #217dbb;border-right:2px dotted #217dbb;border-top:2px dotted #217dbb;border-bottom:2px dotted #217dbb;background-color:#e1f0fa}.ur-registered-from .ur-selected-inputs .ur-add-new-row{color:#b1b1b1;display:block;margin:0 auto;font-size:30px;width:40px;cursor:pointer;text-align:center;margin-bottom:20px;background-color:transparent;border:0 none}.ur-registered-from .ur-selected-inputs .ur-add-new-row:hover{color:#3498db}.ur-registered-from .ur-selected-inputs li.ur-registered-item{list-style:none;padding:10px 10px;line-height:20px;background-color:#3498db;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important}.ur-registered-from .ur-selected-inputs li.ur-registered-item>span{font-size:14px;line-height:20px;width:auto;height:auto;margin-left:3px}.ur-registered-from .ur-advance-setting,.ur-registered-from .ur-general-setting{padding:20px 0 0}.ur-registered-from .ur-advance-setting-block{margin-top:25px}.ur-registered-from .ui-widget select,.ur-registered-from input[type=email],.ur-registered-from input[type=password],.ur-registered-from input[type=text],.ur-registered-from input[type=url],.ur-registered-from select,.ur-registered-from textarea{display:block;width:100%;color:#787878;box-shadow:0 0 0 transparent;font-size:12px;height:35px;padding:0 10px}.ur-registered-from .ui-widget select:focus,.ur-registered-from input[type=email]:focus,.ur-registered-from input[type=password]:focus,.ur-registered-from input[type=text]:focus,.ur-registered-from input[type=url]:focus,.ur-registered-from select:focus,.ur-registered-from textarea:focus{border-color:#ddd}.ur-registered-from label{display:block;width:100%;margin-bottom:10px;color:#666;font-size:12px;font-weight:500}.ur-registered-from textarea{padding:10px;height:100px}.ur-registered-from .ur-registered-item.dragging{border:0;box-shadow:0 0 0 transparent;border-radius:0;padding:5px 10px;height:auto;background-color:#3498db;color:#fff;text-align:center;width:200px}.ur-registered-from .ur-advance-setting-block,.ur-registered-from .ur-general-setting-block{display:none}.ur-registered-from .ur-advance-setting label,.ur-registered-from .ur-general-setting label{display:block}#sortable{min-height:400px}@media screen and (max-width:1400px){.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{font-size:12px}}@media screen and (max-width:960px){.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:none;width:100%}.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists,.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item,.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item{padding:10px}}@media screen and (max-width:782px){.ur-registered-from{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.ur-registered-from .ur-registered-inputs{width:100%;margin-bottom:10px}.ur-registered-from .ur-selected-inputs{width:100%}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:right;width:48%}}@media screen and (max-width:600px){.user-registration_page_add-new-registration .major-publishing-actions{clear:both;padding:10px 0 19px;line-height:28px}.user-registration_page_add-new-registration .major-publishing-actions .ur-form-name{width:100%}.user-registration_page_add-new-registration .major-publishing-actions .publishing-action{text-align:right;float:none;margin-top:15px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item{width:100%!important}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2){border-right:0 none;border-top:2px solid #f2f2f2}}.tips{cursor:help;text-decoration:none}img.tips{padding:5px 0 0}#tiptip_holder{display:none;z-index:8675309;position:absolute;top:0;left:0}#tiptip_holder.tip_top{padding-bottom:5px}#tiptip_holder.tip_top #tiptip_arrow_inner{margin-top:-7px;margin-right:-6px;border-top-color:#333}#tiptip_holder.tip_bottom{padding-top:5px}#tiptip_holder.tip_bottom #tiptip_arrow_inner{margin-top:-5px;margin-right:-6px;border-bottom-color:#333}#tiptip_holder.tip_right{padding-right:5px}#tiptip_holder.tip_right #tiptip_arrow_inner{margin-top:-6px;margin-right:-5px;border-left-color:#333}#tiptip_holder.tip_left{padding-left:5px}#tiptip_holder.tip_left #tiptip_arrow_inner{margin-top:-6px;margin-right:-7px;border-right-color:#333}#tiptip_content,.ur_error_tip{color:#fff;font-size:.8em;max-width:150px;background:#333;text-align:center;border-radius:3px;padding:.618em 1em;box-shadow:0 1px 3px rgba(0,0,0,.2)}#tiptip_content code,.ur_error_tip code{padding:1px;background:#888}#tiptip_arrow,#tiptip_arrow_inner{position:absolute;border-color:transparent;border-style:solid;border-width:6px;height:0;width:0}#tiptip_arrow{right:50%;margin-right:-6px}.ur_error_tip{max-width:20em;line-height:1.8em;position:absolute;white-space:normal;background:#d82223;margin:1.5em -1em 0 1px;z-index:9999999}.ur_error_tip::after{content:'';display:block;border:8px solid #d82223;border-left-color:transparent;border-right-color:transparent;border-top-color:transparent;position:absolute;top:-3px;right:50%;margin:-1em -3px 0 0}.user-registration-help-tip{color:#666;display:inline-block;font-size:1.1em;font-style:normal;height:16px;line-height:16px;position:relative;vertical-align:middle;width:16px}.user-registration-help-tip::after{font-family:Dashicons;speak:none;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;right:0;width:100%;height:100%;text-align:center;content:"";cursor:help}.select2-drop,.select2-dropdown{z-index:999999!important}.select2-results{line-height:1.5em}.select2-results .select2-results__group,.select2-results .select2-results__option{margin:0;padding:8px}.select2-dropdown{border-color:#ddd}.select2-dropdown--below{box-shadow:0 1px 1px rgba(0,0,0,.1)}.select2-dropdown--above{box-shadow:0 -1px 1px rgba(0,0,0,.1)}.select2-container .select2-selection__rendered.ui-sortable li{cursor:move}.select2-container .select2-selection{border-color:#ddd}.select2-container .select2-search__field{min-width:150px}.select2-container .select2-selection--single{height:32px}.select2-container .select2-selection--single .select2-selection__rendered{line-height:32px;padding-left:24px}.select2-container .select2-selection--single .select2-selection__arrow{left:3px;height:30px}.select2-container .select2-selection--multiple{min-height:28px;border-radius:0;line-height:1.5}.select2-container .select2-selection--multiple li{margin:0}.select2-container .select2-selection--multiple .select2-selection__choice{padding:2px 6px}.select2-container .select2-selection__clear{color:#999;margin-top:-1px}.select2-container .select2-search--inline .select2-search__field{font-family:inherit;font-size:inherit;font-weight:inherit;padding:3px 0}#ur-tab-registered-fields li.ur-registered-item.ui-draggable-disabled{background:#ccc}.ur-no-pointer{pointer-events:none}#ur-tab-field-settings{background:#f2f2f2}
|
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;-moz-user-select:none;-ms-user-select:none;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;-moz-user-select:none;-ms-user-select:none;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:#fff;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;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected],.select2-results__option[data-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}.select2-hidden-accessible{border:0!important;clip:rect(0 0 0 0)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;width:1px!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:700}.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:#fff;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__placeholder{color:#999;margin-top:5px;float:left}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-top:5px;margin-right:10px}.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:700;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-search--inline,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__placeholder{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 #000 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--multiple,.select2-container--default.select2-container--open.select2-container--above .select2-selection--single{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--below .select2-selection--single{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:0 0;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],.select2-container--default .select2-results__option[data-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],.select2-container--default .select2-results__option--highlighted[data-selected]{background-color:#0073aa;color:#fff}.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:linear-gradient(to bottom,#fff 50%,#eee 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--single:focus{border:1px solid #0073aa}.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:700;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:linear-gradient(to bottom,#eee 50%,#ccc 100%);background-repeat:repeat-x}.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 #0073aa}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:0 0;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:linear-gradient(to bottom,#fff 0,#eee 50%);background-repeat:repeat-x}.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:linear-gradient(to bottom,#eee 50%,#fff 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #0073aa}.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:700;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}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{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 #0073aa}.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],.select2-container--classic .select2-results__option--highlighted[data-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:#0073aa}
|
2 |
+
@charset "UTF-8";.ur-registered-item.ui-draggable-dragging{padding:10px 10px;line-height:20px;background:#3498db;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important}.ur-registered-item.ui-draggable-dragging span{font-size:14px;line-height:20px;width:auto;height:auto;margin-left:3px}.blockUI.blockOverlay::before{height:1em;width:1em;position:absolute;top:50%;right:50%;margin-right:-.5em;margin-top:-.5em;display:block;content:'';-webkit-animation:spin 1s ease-in-out infinite;animation:spin 1s ease-in-out infinite;background:url(../images/icons/loader.svg) center center;background-size:cover;line-height:1;text-align:center;font-size:2em;color:rgba(0,0,0,.75)}.ur_addons_wrap .products{overflow:hidden}.ur_addons_wrap .products li{margin:0 0 1% 1%!important;padding:0;vertical-align:top;width:19.2%;float:right}.ur_addons_wrap .products li:nth-child(5n){margin:0 0 1% 0!important}.ur_addons_wrap .products li a{text-decoration:none;color:inherit;border:1px solid #ddd;display:block;min-height:220px;overflow:hidden;background:#f5f5f5;box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1)}.ur_addons_wrap .products li a .product-image{display:block;background:#fff}.ur_addons_wrap .products li a .product-image img{max-width:100%;display:block;margin:0}.ur_addons_wrap .products li a img.extension-thumb+h3{display:none}.ur_addons_wrap .products li a .price{display:none}.ur_addons_wrap .products li a h2,.ur_addons_wrap .products li a h3{margin:0!important;padding:20px!important;background:#fff}.ur_addons_wrap .products li a p{padding:20px!important;margin:0!important;border-top:1px solid #f1f1f1}.ur_addons_wrap .products li a:focus,.ur_addons_wrap .products li a:hover{background-color:#fff}.clear{clear:both}.wrap.user-registration div.error,.wrap.user-registration div.updated{margin-top:10px}.user-registration_page_add-new-registration #post-body{background-color:#fff}.user-registration_page_add-new-registration #post-body .error,.user-registration_page_add-new-registration #post-body .updated{margin:0}.user-registration_page_add-new-registration #post-body-content{position:relative;float:none}.user-registration_page_add-new-registration .howto span{float:right;margin-top:6px}.user-registration_page_add-new-registration .list-wrap{display:none;clear:both;margin-bottom:10px}.user-registration_page_add-new-registration .list li{display:none;margin:0;margin-bottom:5px}.user-registration_page_add-new-registration .list li .menu-item-title{cursor:pointer;display:block}.user-registration_page_add-new-registration .list li .menu-item-title input{margin-left:3px;margin-top:-3px}.user-registration_page_add-new-registration #menu-management-liquid{margin-top:23px}.user-registration_page_add-new-registration .postbox p.submit{margin-bottom:0}.user-registration_page_add-new-registration .major-publishing-actions{clear:both;padding:10px 0;line-height:28px}.user-registration_page_add-new-registration .major-publishing-actions .publishing-action{text-align:left;float:left}.user-registration_page_add-new-registration .major-publishing-actions .form-invalid{padding-right:4px;margin-right:-4px}.user-registration_page_add-new-registration .major-publishing-actions .ur-form-name{width:25%}.user-registration_page_add-new-registration .blank-slate .menu-settings{display:none}.user-registration_page_add-new-registration .delete-action{float:right;line-height:28px}.ur-backbone-modal *{box-sizing:border-box}.ur-backbone-modal .ur-backbone-modal-content{position:fixed;background-color:#fff;z-index:100000;right:50%;top:50%;-webkit-transform:translate(50%,-50%);-ms-transform:translate(50%,-50%);transform:translate(50%,-50%);width:500px}.ur-backbone-modal .ur-backbone-modal-content article{overflow:auto}.ur-backbone-modal.ur-backbone-modal-content{width:75%;min-width:500px}.ur-backbone-modal .select2-container{width:100%!important}.ur-backbone-modal-backdrop{position:fixed;top:0;right:0;left:0;bottom:0;min-height:360px;background-color:#000;opacity:.7;z-index:99900}.ur-backbone-modal-main{padding-bottom:55px}.ur-backbone-modal-main article,.ur-backbone-modal-main header{display:block;position:relative}.ur-backbone-modal-main .ur-backbone-modal-header{height:auto;background-color:#fcfcfc;padding:1em 1.5em;border-bottom:1px solid #ddd}.ur-backbone-modal-main .ur-backbone-modal-header h1{margin:0;font-size:18px;font-weight:700;line-height:1.5em}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link{cursor:pointer;color:#777;height:54px;width:54px;padding:0;position:absolute;top:0;left:0;text-align:center;border:0;border-right:1px solid #ddd;background-color:transparent;-webkit-transition:color .1s ease-in-out,background .1s ease-in-out;transition:color .1s ease-in-out,background .1s ease-in-out}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link::before{font:normal 22px/50px dashicons!important;color:#666;display:block;content:'\f335';font-weight:300}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:focus,.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:hover{background-color:#ddd;border-color:#ccc;color:#000}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:focus{outline:0}.ur-backbone-modal-main article{padding:1.5em}.ur-backbone-modal-main article p{margin:1.5em 0}.ur-backbone-modal-main article p:first-child{margin-top:0}.ur-backbone-modal-main article p:last-child{margin-bottom:0}.ur-backbone-modal-main article .pagination{padding:10px 0 0;text-align:center}.ur-backbone-modal-main footer{position:absolute;right:0;left:0;bottom:0;z-index:100;padding:1em 1.5em;background-color:#fcfcfc;border-top:1px solid #dfdfdf;box-shadow:0 -4px 4px -4px rgba(0,0,0,.1)}.ur-backbone-modal-main footer .inner{float:left;line-height:23px}.ur-backbone-modal-main footer .inner .button{margin-bottom:0}.user-registration h2.ur-nav-tab-wrapper{margin-bottom:1em}.user-registration nav.ur-nav-tab-wrapper{margin:1.5em 0 1em;border-bottom:1px solid #ccc}.user-registration .subsubsub{margin:-8px 0 0}.user-registration textarea[disabled=disabled]{background:#dfdfdf!important}.user-registration table.form-table{margin:0;position:relative}.user-registration table.form-table .select2-container{display:block;max-width:350px}.user-registration table.form-table .forminp-radio ul{margin:0}.user-registration table.form-table .forminp-radio ul li{line-height:1.4em}.user-registration table.form-table textarea.input-text{height:100%;min-width:150px;display:block}.user-registration table.form-table input.regular-input{width:25em}.user-registration table.form-table textarea.wide-input{width:100%}.user-registration table.form-table .user-registration-help-tip,.user-registration table.form-table img.help_tip{padding:0;margin:-4px 5px 0 0;vertical-align:middle;cursor:help;line-height:1}.user-registration table.form-table span.help_tip{cursor:help;color:#2ea2cc}.user-registration table.form-table th{position:relative;padding-left:24px}.user-registration table.form-table .select2-container{vertical-align:top;margin-bottom:3px}.user-registration table.form-table table.widefat th{padding-left:inherit}.user-registration table.form-table th .user-registration-help-tip,.user-registration table.form-table th img.help_tip{margin:0 0 0 -24px;float:left}.user-registration table.form-table .wp-list-table .user-registration-help-tip{float:none}.user-registration table.form-table fieldset{margin-top:4px}.user-registration table.form-table fieldset .user-registration-help-tip,.user-registration table.form-table fieldset img.help_tip{margin:-3px 5px 0 0}.user-registration table.form-table fieldset p.description{margin-bottom:8px}.user-registration table.form-table fieldset:first-child{margin-top:0}.user-registration table.form-table .iris-picker{z-index:100;display:none;position:absolute;border:1px solid #ccc;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,.2)}.user-registration table.form-table .iris-picker .ui-slider{border:0!important;margin:0!important;width:auto!important;height:auto!important;background:none transparent!important}.user-registration table.form-table .iris-picker .ui-slider .ui-slider-handle{margin-bottom:0!important}.user-registration table.form-table .colorpickpreview{padding:3px;padding-right:20px;border:1px solid #ddd;border-left:0}.user-registration table.form-table .colorpick{border-right:0}.user-registration table.form-table .image_width_settings{vertical-align:middle}.user-registration table.form-table .image_width_settings label{margin-right:10px}@media only screen and (max-width:1599px){.ur_addons_wrap .products li{width:32.66%}.ur_addons_wrap .products li:nth-child(5n){margin:0 0 1% 1%!important}.ur_addons_wrap .products li:nth-child(3n){margin:0 0 1% 0!important}}@media only screen and (max-width:1120px){.ur_addons_wrap .products li{width:49%;margin:0 0 2% 2%!important}.ur_addons_wrap .products li:nth-child(3n),.ur_addons_wrap .products li:nth-child(5n){margin:0 0 2% 2%!important}.ur_addons_wrap .products li:nth-child(2n){margin:0 0 2% 0!important}}@media only screen and (max-width:900px){.ur_addons_wrap .products li{width:49%}}@media only screen and (max-width:480px){.ur_addons_wrap .products li,.ur_addons_wrap .products li:nth-child(2n),.ur_addons_wrap .products li:nth-child(3n),.ur_addons_wrap .products li:nth-child(5n){width:100%;margin:0 0 3% 0!important}}@media only screen and (min-width:769px) and (max-width:1000px){.user-registration_page_add-new-registration #post-body-content{min-width:0}}@media screen and (max-width:782px){body.user-registration_page_add-new-registration{min-width:0!important}}.ur-admin-template-options{display:none}.ur-registered-from{display:-webkit-box;display:-ms-flexbox;display:flex;background-color:#f8f8f8;font-family:Roboto,sans-serif;border-bottom:1px solid #ddd}.ur-registered-from *{box-sizing:border-box}.ur-registered-from :focus{outline:0}.ur-registered-from .ur-registered-inputs{width:35%;background-color:#f9f9f9}.ur-registered-from .ur-registered-inputs .ur-tabs{border:0 none;background-color:transparent;padding:0;font-family:Roboto,sans-serif;font-size:14px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists{background-color:transparent;background-image:none;padding:0;border-radius:0;margin:0;display:-webkit-box;display:-ms-flexbox;display:flex;border-bottom:2px solid #217dbb;border-top:0 none;border-left:0 none;border-right:0 none}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li{background-color:transparent;background-image:none;border-radius:0;margin:0;margin-bottom:-1px;padding:0;float:none;display:inline-block;border:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li.active{margin-bottom:0;padding-bottom:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li.ui-state-disabled{opacity:1}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a{float:none;text-decoration:none;margin:0;border:none;display:block;color:#666;background-color:transparent;padding:5px 15px;font-weight:500;cursor:pointer}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a:focus{box-shadow:0 0 0 0 transparent,0 0 0 0 transparent}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a.active{background-color:#217dbb;color:#fff;line-height:24px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content{padding:10px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content#ur-tab-field-options,.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content#ur-tab-registered-fields{background-color:#f2f2f2}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content h2{margin:0;font-size:16px;font-weight:600;font-family:Roboto,sans-serif;color:#404040}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list{margin:15px 0;width:100%}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::after,.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::before{content:' ';display:table}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::after{clear:both}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list:last-child{margin-bottom:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:right;padding:10px 45px 10px 15px;height:auto;line-height:25px;width:48%;background-color:#3498db;color:#fff;margin-bottom:7px;word-break:break-word;white-space:normal;position:relative;cursor:move}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item .dashicons{position:absolute;top:0;bottom:0;background:rgba(0,0,0,.3);width:35px;right:0;line-height:2.9;font-size:16px;height:auto;margin-left:5px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:nth-child(2n){float:left}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:hover{background-color:#217dbb;color:#fff}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:nth-child(2n+1){clear:both;display:block}.ur-registered-from .ur-selected-inputs{width:70%;box-sizing:border-box;border-right:1px solid #ddd;padding:20px}.ur-registered-from .ur-selected-inputs .ur-single-row{background-color:#f2f2f2;margin-bottom:20px;border:1px solid #ddd}.ur-registered-from .ur-selected-inputs .ur-single-row:last-child{margin-bottom:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids{background-color:#f2f2f2;border-bottom:1px solid #ddd;clear:both;display:table;width:100%}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div{border-left:1px solid #ddd;display:inline-block;line-height:25px;color:#787878;float:right}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-size{padding:0 10px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-navigation{width:25px;height:25px;background-color:#e8e8e8;font-family:dashicons;font-size:16px;cursor:pointer}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-navigation:hover{background-color:#ddd}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row{float:left;border-radius:0;border:0;background-color:transparent;color:#787878;width:25px;height:25px;cursor:pointer;padding:0;line-height:25px;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row:before{font-family:dashicons}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row:hover{color:#d82223}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;text-align:center;padding:20px;box-sizing:border-box;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item{display:inline-block;text-align:right;border:0 none;padding:15px;background-color:#f7f7f7;-webkit-box-flex:1;-ms-flex:1;flex:1;border:2px dashed #d3d3d3}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item{margin-bottom:15px;position:relative;background-color:#f8f8f8;padding:20px;cursor:move;border:1px solid #e8e8e8;-webkit-transition:border-color .35s;transition:border-color .35s}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:last-child{margin-bottom:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:hover{border:1px solid #3498db}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active{box-shadow:0 0 20px rgba(0,0,0,.2);background-color:#f8f8f8}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ui-sortable-helper,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active.ui-sortable-helper{box-shadow:0 0 20px rgba(0,0,0,.2);background-color:#e8e8e8}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons{display:none;position:absolute;left:10px;width:50px;text-align:center;padding:0;font-size:10px;top:10px;color:#b1b1b1}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons span{cursor:pointer;font-size:14px;height:auto}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons span:hover{color:#3498db}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons:hover .ur-action-buttons{display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons .ur-trash:hover{color:#d82223}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_top_left{text-align:right}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_center{text-align:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_top_right{text-align:left}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_disabled{display:none}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:hover .ur-action-buttons{display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item>li.ur-item-dragged{list-style:none;width:100%;text-align:center;height:60px!important;box-sizing:border-box}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item>li.ur-item-dragged .spinner{float:none}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me{display:table;width:100%;height:100%}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text{display:table-cell;vertical-align:middle;text-align:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text p{display:inline-block;position:relative;color:#b1b1b1;padding-right:26px;padding-top:8px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text p::before{position:absolute;font-family:Dashicons;content:'\f545';font-size:22px;right:0;top:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2){border-right:2px solid #f7f7f7}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2).ur-sortable-active,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-sortable-active{border-left:2px dotted #217dbb;border-right:2px dotted #217dbb;border-top:2px dotted #217dbb;border-bottom:2px dotted #217dbb;background-color:#e1f0fa}.ur-registered-from .ur-selected-inputs .ur-add-new-row{color:#b1b1b1;display:block;margin:0 auto;font-size:30px;width:40px;cursor:pointer;text-align:center;margin-bottom:20px;background-color:transparent;border:0 none}.ur-registered-from .ur-selected-inputs .ur-add-new-row:hover{color:#3498db}.ur-registered-from .ur-selected-inputs li.ur-registered-item{list-style:none;padding:10px 10px;line-height:20px;background-color:#3498db;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important}.ur-registered-from .ur-selected-inputs li.ur-registered-item>span{font-size:14px;line-height:20px;width:auto;height:auto;margin-left:3px}.ur-registered-from .ur-advance-setting,.ur-registered-from .ur-general-setting{padding:20px 0 0}.ur-registered-from .ur-advance-setting-block{margin-top:25px}.ur-registered-from .ui-widget select,.ur-registered-from input[type=date],.ur-registered-from input[type=email],.ur-registered-from input[type=number],.ur-registered-from input[type=password],.ur-registered-from input[type=text],.ur-registered-from input[type=url],.ur-registered-from select,.ur-registered-from textarea{display:block;width:100%;color:#787878;box-shadow:0 0 0 transparent;font-size:12px;height:35px;padding:0 10px}.ur-registered-from .ui-widget select:focus,.ur-registered-from input[type=date]:focus,.ur-registered-from input[type=email]:focus,.ur-registered-from input[type=number]:focus,.ur-registered-from input[type=password]:focus,.ur-registered-from input[type=text]:focus,.ur-registered-from input[type=url]:focus,.ur-registered-from select:focus,.ur-registered-from textarea:focus{border-color:#ddd}.ur-registered-from label{display:block;width:100%;margin-bottom:10px;color:#666;font-size:12px;font-weight:500}.ur-registered-from textarea{padding:10px;height:100px}.ur-registered-from .ur-registered-item.dragging{border:0;box-shadow:0 0 0 transparent;border-radius:0;padding:5px 10px;height:auto;background-color:#3498db;color:#fff;text-align:center;width:200px}.ur-registered-from .ur-advance-setting-block,.ur-registered-from .ur-general-setting-block{display:none}.ur-registered-from .ur-advance-setting label,.ur-registered-from .ur-general-setting label{display:block}#sortable{min-height:400px}@media screen and (max-width:1400px){.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{font-size:12px}}@media screen and (max-width:960px){.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:none;width:100%}.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists,.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item,.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item{padding:10px}}@media screen and (max-width:782px){.ur-registered-from{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.ur-registered-from .ur-registered-inputs{width:100%;margin-bottom:10px}.ur-registered-from .ur-selected-inputs{width:100%}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:right;width:48%}}@media screen and (max-width:600px){.user-registration_page_add-new-registration .major-publishing-actions{clear:both;padding:10px 0 19px;line-height:28px}.user-registration_page_add-new-registration .major-publishing-actions .ur-form-name{width:100%}.user-registration_page_add-new-registration .major-publishing-actions .publishing-action{text-align:right;float:none;margin-top:15px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item{width:100%!important}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2){border-right:0 none;border-top:2px solid #f2f2f2}}.tips{cursor:help;text-decoration:none}img.tips{padding:5px 0 0}#tiptip_holder{display:none;z-index:8675309;position:absolute;top:0;left:0}#tiptip_holder.tip_top{padding-bottom:5px}#tiptip_holder.tip_top #tiptip_arrow_inner{margin-top:-7px;margin-right:-6px;border-top-color:#333}#tiptip_holder.tip_bottom{padding-top:5px}#tiptip_holder.tip_bottom #tiptip_arrow_inner{margin-top:-5px;margin-right:-6px;border-bottom-color:#333}#tiptip_holder.tip_right{padding-right:5px}#tiptip_holder.tip_right #tiptip_arrow_inner{margin-top:-6px;margin-right:-5px;border-left-color:#333}#tiptip_holder.tip_left{padding-left:5px}#tiptip_holder.tip_left #tiptip_arrow_inner{margin-top:-6px;margin-right:-7px;border-right-color:#333}#tiptip_content,.ur_error_tip{color:#fff;font-size:.8em;max-width:150px;background:#333;text-align:center;border-radius:3px;padding:.618em 1em;box-shadow:0 1px 3px rgba(0,0,0,.2)}#tiptip_content code,.ur_error_tip code{padding:1px;background:#888}#tiptip_arrow,#tiptip_arrow_inner{position:absolute;border-color:transparent;border-style:solid;border-width:6px;height:0;width:0}#tiptip_arrow{right:50%;margin-right:-6px}.ur_error_tip{max-width:20em;line-height:1.8em;position:absolute;white-space:normal;background:#d82223;margin:1.5em -1em 0 1px;z-index:9999999}.ur_error_tip::after{content:'';display:block;border:8px solid #d82223;border-left-color:transparent;border-right-color:transparent;border-top-color:transparent;position:absolute;top:-3px;right:50%;margin:-1em -3px 0 0}.user-registration-help-tip{color:#666;display:inline-block;font-size:1.1em;font-style:normal;height:16px;line-height:16px;position:relative;vertical-align:middle;width:16px}.user-registration-help-tip::after{font-family:Dashicons;speak:none;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;right:0;width:100%;height:100%;text-align:center;content:"";cursor:help}.select2-drop,.select2-dropdown{z-index:999999!important}.select2-results{line-height:1.5em}.select2-results .select2-results__group,.select2-results .select2-results__option{margin:0;padding:8px}.select2-dropdown{border-color:#ddd}.select2-dropdown--below{box-shadow:0 1px 1px rgba(0,0,0,.1)}.select2-dropdown--above{box-shadow:0 -1px 1px rgba(0,0,0,.1)}.select2-container .select2-selection__rendered.ui-sortable li{cursor:move}.select2-container .select2-selection{border-color:#ddd}.select2-container .select2-search__field{min-width:150px}.select2-container .select2-selection--single{height:32px}.select2-container .select2-selection--single .select2-selection__rendered{line-height:32px;padding-left:24px}.select2-container .select2-selection--single .select2-selection__arrow{left:3px;height:30px}.select2-container .select2-selection--multiple{min-height:28px;border-radius:0;line-height:1.5}.select2-container .select2-selection--multiple li{margin:0}.select2-container .select2-selection--multiple .select2-selection__choice{padding:2px 6px}.select2-container .select2-selection__clear{color:#999;margin-top:-1px}.select2-container .select2-search--inline .select2-search__field{font-family:inherit;font-size:inherit;font-weight:inherit;padding:3px 0}#ur-tab-registered-fields li.ur-registered-item.ui-draggable-disabled{background:#ccc}.ur-no-pointer{pointer-events:none}#ur-tab-field-settings{background:#f2f2f2}
|
assets/css/admin.css
CHANGED
@@ -1,2 +1,2 @@
|
|
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;-moz-user-select:none;-ms-user-select:none;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;-moz-user-select:none;-ms-user-select:none;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:#fff;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;-moz-user-select:none;-ms-user-select:none;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}.select2-hidden-accessible{border:0!important;clip:rect(0 0 0 0)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;width:1px!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:700}.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:#fff;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__placeholder{color:#999;margin-top:5px;float:left}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-top:5px;margin-right:10px}.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:700;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-search--inline,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__placeholder{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 #000 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--multiple,.select2-container--default.select2-container--open.select2-container--above .select2-selection--single{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--below .select2-selection--single{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:0 0;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:#0073aa;color:#fff}.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:linear-gradient(to bottom,#fff 50%,#eee 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--single:focus{border:1px solid #0073aa}.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:700;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:linear-gradient(to bottom,#eee 50%,#ccc 100%);background-repeat:repeat-x}.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 #0073aa}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:0 0;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:linear-gradient(to bottom,#fff 0,#eee 50%);background-repeat:repeat-x}.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:linear-gradient(to bottom,#eee 50%,#fff 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #0073aa}.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:700;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}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{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 #0073aa}.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:#0073aa}
|
2 |
-
@charset "UTF-8";.ur-registered-item.ui-draggable-dragging{padding:10px 10px;line-height:20px;background:#3498db;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important}.ur-registered-item.ui-draggable-dragging span{font-size:14px;line-height:20px;width:auto;height:auto;margin-right:3px}.blockUI.blockOverlay::before{height:1em;width:1em;position:absolute;top:50%;left:50%;margin-left:-.5em;margin-top:-.5em;display:block;content:'';-webkit-animation:spin 1s ease-in-out infinite;animation:spin 1s ease-in-out infinite;background:url(../images/icons/loader.svg) center center;background-size:cover;line-height:1;text-align:center;font-size:2em;color:rgba(0,0,0,.75)}.user-registration_page_add-new-registration #post-body{background-color:#fff}.user-registration_page_add-new-registration #post-body .error,.user-registration_page_add-new-registration #post-body .updated{margin:0}.user-registration_page_add-new-registration #post-body-content{position:relative;float:none}.user-registration_page_add-new-registration .howto span{float:left;margin-top:6px}.user-registration_page_add-new-registration .list-wrap{display:none;clear:both;margin-bottom:10px}.user-registration_page_add-new-registration .list li{display:none;margin:0;margin-bottom:5px}.user-registration_page_add-new-registration .list li .menu-item-title{cursor:pointer;display:block}.user-registration_page_add-new-registration .list li .menu-item-title input{margin-right:3px;margin-top:-3px}.user-registration_page_add-new-registration #menu-management-liquid{margin-top:23px}.user-registration_page_add-new-registration .postbox p.submit{margin-bottom:0}.user-registration_page_add-new-registration .major-publishing-actions{clear:both;padding:10px 0;line-height:28px}.user-registration_page_add-new-registration .major-publishing-actions .publishing-action{text-align:right;float:right}.user-registration_page_add-new-registration .major-publishing-actions .form-invalid{padding-left:4px;margin-left:-4px}.user-registration_page_add-new-registration .major-publishing-actions .ur-form-name{width:25%}.user-registration_page_add-new-registration .blank-slate .menu-settings{display:none}.user-registration_page_add-new-registration .delete-action{float:left;line-height:28px}.ur-backbone-modal *{box-sizing:border-box}.ur-backbone-modal .ur-backbone-modal-content{position:fixed;background-color:#fff;z-index:100000;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:500px}.ur-backbone-modal .ur-backbone-modal-content article{overflow:auto}.ur-backbone-modal.ur-backbone-modal-content{width:75%;min-width:500px}.ur-backbone-modal .select2-container{width:100%!important}.ur-backbone-modal-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;min-height:360px;background-color:#000;opacity:.7;z-index:99900}.ur-backbone-modal-main{padding-bottom:55px}.ur-backbone-modal-main article,.ur-backbone-modal-main header{display:block;position:relative}.ur-backbone-modal-main .ur-backbone-modal-header{height:auto;background-color:#fcfcfc;padding:1em 1.5em;border-bottom:1px solid #ddd}.ur-backbone-modal-main .ur-backbone-modal-header h1{margin:0;font-size:18px;font-weight:700;line-height:1.5em}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link{cursor:pointer;color:#777;height:54px;width:54px;padding:0;position:absolute;top:0;right:0;text-align:center;border:0;border-left:1px solid #ddd;background-color:transparent;-webkit-transition:color .1s ease-in-out,background .1s ease-in-out;transition:color .1s ease-in-out,background .1s ease-in-out}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link::before{font:normal 22px/50px dashicons!important;color:#666;display:block;content:'\f335';font-weight:300}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:focus,.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:hover{background-color:#ddd;border-color:#ccc;color:#000}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:focus{outline:0}.ur-backbone-modal-main article{padding:1.5em}.ur-backbone-modal-main article p{margin:1.5em 0}.ur-backbone-modal-main article p:first-child{margin-top:0}.ur-backbone-modal-main article p:last-child{margin-bottom:0}.ur-backbone-modal-main article .pagination{padding:10px 0 0;text-align:center}.ur-backbone-modal-main footer{position:absolute;left:0;right:0;bottom:0;z-index:100;padding:1em 1.5em;background-color:#fcfcfc;border-top:1px solid #dfdfdf;box-shadow:0 -4px 4px -4px rgba(0,0,0,.1)}.ur-backbone-modal-main footer .inner{float:right;line-height:23px}.ur-backbone-modal-main footer .inner .button{margin-bottom:0}.user-registration h2.ur-nav-tab-wrapper{margin-bottom:1em}.user-registration nav.ur-nav-tab-wrapper{margin:1.5em 0 1em;border-bottom:1px solid #ccc}.user-registration .subsubsub{margin:-8px 0 0}.user-registration textarea[disabled=disabled]{background:#dfdfdf!important}.user-registration table.form-table{margin:0;position:relative}.user-registration table.form-table .select2-container{display:block;max-width:350px}.user-registration table.form-table .forminp-radio ul{margin:0}.user-registration table.form-table .forminp-radio ul li{line-height:1.4em}.user-registration table.form-table textarea.input-text{height:100%;min-width:150px;display:block}.user-registration table.form-table input.regular-input{width:25em}.user-registration table.form-table textarea.wide-input{width:100%}.user-registration table.form-table .user-registration-help-tip,.user-registration table.form-table img.help_tip{padding:0;margin:-4px 0 0 5px;vertical-align:middle;cursor:help;line-height:1}.user-registration table.form-table span.help_tip{cursor:help;color:#2ea2cc}.user-registration table.form-table th{position:relative;padding-right:24px}.user-registration table.form-table .select2-container{vertical-align:top;margin-bottom:3px}.user-registration table.form-table table.widefat th{padding-right:inherit}.user-registration table.form-table th .user-registration-help-tip,.user-registration table.form-table th img.help_tip{margin:0 -24px 0 0;float:right}.user-registration table.form-table .wp-list-table .user-registration-help-tip{float:none}.user-registration table.form-table fieldset{margin-top:4px}.user-registration table.form-table fieldset .user-registration-help-tip,.user-registration table.form-table fieldset img.help_tip{margin:-3px 0 0 5px}.user-registration table.form-table fieldset p.description{margin-bottom:8px}.user-registration table.form-table fieldset:first-child{margin-top:0}.user-registration table.form-table .iris-picker{z-index:100;display:none;position:absolute;border:1px solid #ccc;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,.2)}.user-registration table.form-table .iris-picker .ui-slider{border:0!important;margin:0!important;width:auto!important;height:auto!important;background:none transparent!important}.user-registration table.form-table .iris-picker .ui-slider .ui-slider-handle{margin-bottom:0!important}.user-registration table.form-table .colorpickpreview{padding:3px;padding-left:20px;border:1px solid #ddd;border-right:0}.user-registration table.form-table .colorpick{border-left:0}.user-registration table.form-table .image_width_settings{vertical-align:middle}.user-registration table.form-table .image_width_settings label{margin-left:10px}@media only screen and (min-width:769px) and (max-width:1000px){.user-registration_page_add-new-registration #post-body-content{min-width:0}}@media screen and (max-width:782px){body.user-registration_page_add-new-registration{min-width:0!important}}.ur-admin-template-options{display:none}.ur-registered-from{display:-webkit-box;display:-ms-flexbox;display:flex;background-color:#f8f8f8;font-family:Roboto,sans-serif;border-bottom:1px solid #ddd}.ur-registered-from *{box-sizing:border-box}.ur-registered-from :focus{outline:0}.ur-registered-from .ur-registered-inputs{width:35%;background-color:#f9f9f9}.ur-registered-from .ur-registered-inputs .ur-tabs{border:0 none;background-color:transparent;padding:0;font-family:Roboto,sans-serif;font-size:14px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists{background-color:transparent;background-image:none;padding:0;border-radius:0;margin:0;display:-webkit-box;display:-ms-flexbox;display:flex;border-bottom:2px solid #217dbb;border-top:0 none;border-right:0 none;border-left:0 none}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li{background-color:transparent;background-image:none;border-radius:0;margin:0;margin-bottom:-1px;padding:0;float:none;display:inline-block;border:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li.active{margin-bottom:0;padding-bottom:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li.ui-state-disabled{opacity:1}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a{float:none;text-decoration:none;margin:0;border:none;display:block;color:#666;background-color:transparent;padding:5px 15px;font-weight:500;cursor:pointer}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a:focus{box-shadow:0 0 0 0 transparent,0 0 0 0 transparent}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a.active{background-color:#217dbb;color:#fff;line-height:24px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content{padding:10px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content#ur-tab-field-options,.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content#ur-tab-registered-fields{background-color:#f2f2f2}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content h2{margin:0;font-size:16px;font-weight:600;font-family:Roboto,sans-serif;color:#404040}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list{margin:15px 0;width:100%}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::after,.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::before{content:' ';display:table}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::after{clear:both}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list:last-child{margin-bottom:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:left;padding:10px 15px 10px 45px;height:auto;line-height:25px;width:48%;background-color:#3498db;color:#fff;margin-bottom:7px;word-break:break-word;white-space:normal;position:relative;cursor:move}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item .dashicons{position:absolute;top:0;bottom:0;background:rgba(0,0,0,.3);width:35px;left:0;line-height:2.9;font-size:16px;height:auto;margin-right:5px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:nth-child(2n){float:right}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:hover{background-color:#217dbb;color:#fff}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:nth-child(2n+1){clear:both;display:block}.ur-registered-from .ur-selected-inputs{width:70%;box-sizing:border-box;border-left:1px solid #ddd;padding:20px}.ur-registered-from .ur-selected-inputs .ur-single-row{background-color:#f2f2f2;margin-bottom:20px;border:1px solid #ddd}.ur-registered-from .ur-selected-inputs .ur-single-row:last-child{margin-bottom:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids{background-color:#f2f2f2;border-bottom:1px solid #ddd;clear:both;display:table;width:100%}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div{border-right:1px solid #ddd;display:inline-block;line-height:25px;color:#787878;float:left}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-size{padding:0 10px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-navigation{width:25px;height:25px;background-color:#e8e8e8;font-family:dashicons;font-size:16px;cursor:pointer}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-navigation:hover{background-color:#ddd}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row{float:right;border-radius:0;border:0;background-color:transparent;color:#787878;width:25px;height:25px;cursor:pointer;padding:0;line-height:25px;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row:before{font-family:dashicons}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row:hover{color:#d82223}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;text-align:center;padding:20px;box-sizing:border-box;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item{display:inline-block;text-align:left;border:0 none;padding:15px;background-color:#f7f7f7;-webkit-box-flex:1;-ms-flex:1;flex:1;border:2px dashed #d3d3d3}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item{margin-bottom:15px;position:relative;background-color:#f8f8f8;padding:20px;cursor:move;border:1px solid #e8e8e8;-webkit-transition:border-color .35s;transition:border-color .35s}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:last-child{margin-bottom:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:hover{border:1px solid #3498db}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active{box-shadow:0 0 20px rgba(0,0,0,.2);background-color:#f8f8f8}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ui-sortable-helper,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active.ui-sortable-helper{box-shadow:0 0 20px rgba(0,0,0,.2);background-color:#e8e8e8}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons{display:none;position:absolute;right:10px;width:50px;text-align:center;padding:0;font-size:10px;top:10px;color:#b1b1b1}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons span{cursor:pointer;font-size:14px;height:auto}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons span:hover{color:#3498db}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons:hover .ur-action-buttons{display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons .ur-trash:hover{color:#d82223}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_top_left{text-align:left}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_center{text-align:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_top_right{text-align:right}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_disabled{display:none}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:hover .ur-action-buttons{display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item>li.ur-item-dragged{list-style:none;width:100%;text-align:center;height:60px!important;box-sizing:border-box}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item>li.ur-item-dragged .spinner{float:none}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me{display:table;width:100%;height:100%}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text{display:table-cell;vertical-align:middle;text-align:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text p{display:inline-block;position:relative;color:#b1b1b1;padding-left:26px;padding-top:8px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text p::before{position:absolute;font-family:Dashicons;content:'\f545';font-size:22px;left:0;top:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2){border-left:2px solid #f7f7f7}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2).ur-sortable-active,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-sortable-active{border-right:2px dotted #217dbb;border-left:2px dotted #217dbb;border-top:2px dotted #217dbb;border-bottom:2px dotted #217dbb;background-color:#e1f0fa}.ur-registered-from .ur-selected-inputs .ur-add-new-row{color:#b1b1b1;display:block;margin:0 auto;font-size:30px;width:40px;cursor:pointer;text-align:center;margin-bottom:20px;background-color:transparent;border:0 none}.ur-registered-from .ur-selected-inputs .ur-add-new-row:hover{color:#3498db}.ur-registered-from .ur-selected-inputs li.ur-registered-item{list-style:none;padding:10px 10px;line-height:20px;background-color:#3498db;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important}.ur-registered-from .ur-selected-inputs li.ur-registered-item>span{font-size:14px;line-height:20px;width:auto;height:auto;margin-right:3px}.ur-registered-from .ur-advance-setting,.ur-registered-from .ur-general-setting{padding:20px 0 0}.ur-registered-from .ur-advance-setting-block{margin-top:25px}.ur-registered-from .ui-widget select,.ur-registered-from input[type=email],.ur-registered-from input[type=password],.ur-registered-from input[type=text],.ur-registered-from input[type=url],.ur-registered-from select,.ur-registered-from textarea{display:block;width:100%;color:#787878;box-shadow:0 0 0 transparent;font-size:12px;height:35px;padding:0 10px}.ur-registered-from .ui-widget select:focus,.ur-registered-from input[type=email]:focus,.ur-registered-from input[type=password]:focus,.ur-registered-from input[type=text]:focus,.ur-registered-from input[type=url]:focus,.ur-registered-from select:focus,.ur-registered-from textarea:focus{border-color:#ddd}.ur-registered-from label{display:block;width:100%;margin-bottom:10px;color:#666;font-size:12px;font-weight:500}.ur-registered-from textarea{padding:10px;height:100px}.ur-registered-from .ur-registered-item.dragging{border:0;box-shadow:0 0 0 transparent;border-radius:0;padding:5px 10px;height:auto;background-color:#3498db;color:#fff;text-align:center;width:200px}.ur-registered-from .ur-advance-setting-block,.ur-registered-from .ur-general-setting-block{display:none}.ur-registered-from .ur-advance-setting label,.ur-registered-from .ur-general-setting label{display:block}#sortable{min-height:400px}@media screen and (max-width:1400px){.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{font-size:12px}}@media screen and (max-width:960px){.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:none;width:100%}.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists,.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item,.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item{padding:10px}}@media screen and (max-width:782px){.ur-registered-from{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.ur-registered-from .ur-registered-inputs{width:100%;margin-bottom:10px}.ur-registered-from .ur-selected-inputs{width:100%}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:left;width:48%}}@media screen and (max-width:600px){.user-registration_page_add-new-registration .major-publishing-actions{clear:both;padding:10px 0 19px;line-height:28px}.user-registration_page_add-new-registration .major-publishing-actions .ur-form-name{width:100%}.user-registration_page_add-new-registration .major-publishing-actions .publishing-action{text-align:left;float:none;margin-top:15px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item{width:100%!important}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2){border-left:0 none;border-top:2px solid #f2f2f2}}.tips{cursor:help;text-decoration:none}img.tips{padding:5px 0 0}#tiptip_holder{display:none;z-index:8675309;position:absolute;top:0;left:0}#tiptip_holder.tip_top{padding-bottom:5px}#tiptip_holder.tip_top #tiptip_arrow_inner{margin-top:-7px;margin-left:-6px;border-top-color:#333}#tiptip_holder.tip_bottom{padding-top:5px}#tiptip_holder.tip_bottom #tiptip_arrow_inner{margin-top:-5px;margin-left:-6px;border-bottom-color:#333}#tiptip_holder.tip_right{padding-left:5px}#tiptip_holder.tip_right #tiptip_arrow_inner{margin-top:-6px;margin-left:-5px;border-right-color:#333}#tiptip_holder.tip_left{padding-right:5px}#tiptip_holder.tip_left #tiptip_arrow_inner{margin-top:-6px;margin-left:-7px;border-left-color:#333}#tiptip_content,.ur_error_tip{color:#fff;font-size:.8em;max-width:150px;background:#333;text-align:center;border-radius:3px;padding:.618em 1em;box-shadow:0 1px 3px rgba(0,0,0,.2)}#tiptip_content code,.ur_error_tip code{padding:1px;background:#888}#tiptip_arrow,#tiptip_arrow_inner{position:absolute;border-color:transparent;border-style:solid;border-width:6px;height:0;width:0}.ur_error_tip{max-width:20em;line-height:1.8em;position:absolute;white-space:normal;background:#d82223;margin:1.5em 1px 0 -1em;z-index:9999999}.ur_error_tip::after{content:'';display:block;border:8px solid #d82223;border-right-color:transparent;border-left-color:transparent;border-top-color:transparent;position:absolute;top:-3px;left:50%;margin:-1em 0 0 -3px}.user-registration-help-tip{color:#666;display:inline-block;font-size:1.1em;font-style:normal;height:16px;line-height:16px;position:relative;vertical-align:middle;width:16px}.user-registration-help-tip::after{font-family:Dashicons;speak:none;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;content:"";cursor:help}.select2-drop,.select2-dropdown{z-index:999999!important}.select2-results{line-height:1.5em}.select2-results .select2-results__group,.select2-results .select2-results__option{margin:0;padding:8px}.select2-dropdown{border-color:#ddd}.select2-dropdown--below{box-shadow:0 1px 1px rgba(0,0,0,.1)}.select2-dropdown--above{box-shadow:0 -1px 1px rgba(0,0,0,.1)}.select2-container .select2-selection__rendered.ui-sortable li{cursor:move}.select2-container .select2-selection{border-color:#ddd}.select2-container .select2-search__field{min-width:150px}.select2-container .select2-selection--single{height:32px}.select2-container .select2-selection--single .select2-selection__rendered{line-height:32px;padding-right:24px}.select2-container .select2-selection--single .select2-selection__arrow{right:3px;height:30px}.select2-container .select2-selection--multiple{min-height:28px;border-radius:0;line-height:1.5}.select2-container .select2-selection--multiple li{margin:0}.select2-container .select2-selection--multiple .select2-selection__choice{padding:2px 6px}.select2-container .select2-selection__clear{color:#999;margin-top:-1px}.select2-container .select2-search--inline .select2-search__field{font-family:inherit;font-size:inherit;font-weight:inherit;padding:3px 0}#ur-tab-registered-fields li.ur-registered-item.ui-draggable-disabled{background:#ccc}.ur-no-pointer{pointer-events:none}#ur-tab-field-settings{background:#f2f2f2}
|
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;-moz-user-select:none;-ms-user-select:none;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;-moz-user-select:none;-ms-user-select:none;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:#fff;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;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected],.select2-results__option[data-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}.select2-hidden-accessible{border:0!important;clip:rect(0 0 0 0)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;width:1px!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:700}.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:#fff;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__placeholder{color:#999;margin-top:5px;float:left}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-top:5px;margin-right:10px}.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:700;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-search--inline,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__placeholder{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 #000 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--multiple,.select2-container--default.select2-container--open.select2-container--above .select2-selection--single{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--below .select2-selection--single{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:0 0;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],.select2-container--default .select2-results__option[data-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],.select2-container--default .select2-results__option--highlighted[data-selected]{background-color:#0073aa;color:#fff}.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:linear-gradient(to bottom,#fff 50%,#eee 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--single:focus{border:1px solid #0073aa}.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:700;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:linear-gradient(to bottom,#eee 50%,#ccc 100%);background-repeat:repeat-x}.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 #0073aa}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:0 0;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:linear-gradient(to bottom,#fff 0,#eee 50%);background-repeat:repeat-x}.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:linear-gradient(to bottom,#eee 50%,#fff 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #0073aa}.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:700;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}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{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 #0073aa}.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],.select2-container--classic .select2-results__option--highlighted[data-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:#0073aa}
|
2 |
+
@charset "UTF-8";.ur-registered-item.ui-draggable-dragging{padding:10px 10px;line-height:20px;background:#3498db;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important}.ur-registered-item.ui-draggable-dragging span{font-size:14px;line-height:20px;width:auto;height:auto;margin-right:3px}.blockUI.blockOverlay::before{height:1em;width:1em;position:absolute;top:50%;left:50%;margin-left:-.5em;margin-top:-.5em;display:block;content:'';-webkit-animation:spin 1s ease-in-out infinite;animation:spin 1s ease-in-out infinite;background:url(../images/icons/loader.svg) center center;background-size:cover;line-height:1;text-align:center;font-size:2em;color:rgba(0,0,0,.75)}.ur_addons_wrap .products{overflow:hidden}.ur_addons_wrap .products li{margin:0 1% 1% 0!important;padding:0;vertical-align:top;width:19.2%;float:left}.ur_addons_wrap .products li:nth-child(5n){margin:0 0 1% 0!important}.ur_addons_wrap .products li a{text-decoration:none;color:inherit;border:1px solid #ddd;display:block;min-height:220px;overflow:hidden;background:#f5f5f5;box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -1px 0 rgba(0,0,0,.1)}.ur_addons_wrap .products li a .product-image{display:block;background:#fff}.ur_addons_wrap .products li a .product-image img{max-width:100%;display:block;margin:0}.ur_addons_wrap .products li a img.extension-thumb+h3{display:none}.ur_addons_wrap .products li a .price{display:none}.ur_addons_wrap .products li a h2,.ur_addons_wrap .products li a h3{margin:0!important;padding:20px!important;background:#fff}.ur_addons_wrap .products li a p{padding:20px!important;margin:0!important;border-top:1px solid #f1f1f1}.ur_addons_wrap .products li a:focus,.ur_addons_wrap .products li a:hover{background-color:#fff}.clear{clear:both}.wrap.user-registration div.error,.wrap.user-registration div.updated{margin-top:10px}.user-registration_page_add-new-registration #post-body{background-color:#fff}.user-registration_page_add-new-registration #post-body .error,.user-registration_page_add-new-registration #post-body .updated{margin:0}.user-registration_page_add-new-registration #post-body-content{position:relative;float:none}.user-registration_page_add-new-registration .howto span{float:left;margin-top:6px}.user-registration_page_add-new-registration .list-wrap{display:none;clear:both;margin-bottom:10px}.user-registration_page_add-new-registration .list li{display:none;margin:0;margin-bottom:5px}.user-registration_page_add-new-registration .list li .menu-item-title{cursor:pointer;display:block}.user-registration_page_add-new-registration .list li .menu-item-title input{margin-right:3px;margin-top:-3px}.user-registration_page_add-new-registration #menu-management-liquid{margin-top:23px}.user-registration_page_add-new-registration .postbox p.submit{margin-bottom:0}.user-registration_page_add-new-registration .major-publishing-actions{clear:both;padding:10px 0;line-height:28px}.user-registration_page_add-new-registration .major-publishing-actions .publishing-action{text-align:right;float:right}.user-registration_page_add-new-registration .major-publishing-actions .form-invalid{padding-left:4px;margin-left:-4px}.user-registration_page_add-new-registration .major-publishing-actions .ur-form-name{width:25%}.user-registration_page_add-new-registration .blank-slate .menu-settings{display:none}.user-registration_page_add-new-registration .delete-action{float:left;line-height:28px}.ur-backbone-modal *{box-sizing:border-box}.ur-backbone-modal .ur-backbone-modal-content{position:fixed;background-color:#fff;z-index:100000;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:500px}.ur-backbone-modal .ur-backbone-modal-content article{overflow:auto}.ur-backbone-modal.ur-backbone-modal-content{width:75%;min-width:500px}.ur-backbone-modal .select2-container{width:100%!important}.ur-backbone-modal-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;min-height:360px;background-color:#000;opacity:.7;z-index:99900}.ur-backbone-modal-main{padding-bottom:55px}.ur-backbone-modal-main article,.ur-backbone-modal-main header{display:block;position:relative}.ur-backbone-modal-main .ur-backbone-modal-header{height:auto;background-color:#fcfcfc;padding:1em 1.5em;border-bottom:1px solid #ddd}.ur-backbone-modal-main .ur-backbone-modal-header h1{margin:0;font-size:18px;font-weight:700;line-height:1.5em}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link{cursor:pointer;color:#777;height:54px;width:54px;padding:0;position:absolute;top:0;right:0;text-align:center;border:0;border-left:1px solid #ddd;background-color:transparent;-webkit-transition:color .1s ease-in-out,background .1s ease-in-out;transition:color .1s ease-in-out,background .1s ease-in-out}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link::before{font:normal 22px/50px dashicons!important;color:#666;display:block;content:'\f335';font-weight:300}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:focus,.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:hover{background-color:#ddd;border-color:#ccc;color:#000}.ur-backbone-modal-main .ur-backbone-modal-header .modal-close-link:focus{outline:0}.ur-backbone-modal-main article{padding:1.5em}.ur-backbone-modal-main article p{margin:1.5em 0}.ur-backbone-modal-main article p:first-child{margin-top:0}.ur-backbone-modal-main article p:last-child{margin-bottom:0}.ur-backbone-modal-main article .pagination{padding:10px 0 0;text-align:center}.ur-backbone-modal-main footer{position:absolute;left:0;right:0;bottom:0;z-index:100;padding:1em 1.5em;background-color:#fcfcfc;border-top:1px solid #dfdfdf;box-shadow:0 -4px 4px -4px rgba(0,0,0,.1)}.ur-backbone-modal-main footer .inner{float:right;line-height:23px}.ur-backbone-modal-main footer .inner .button{margin-bottom:0}.user-registration h2.ur-nav-tab-wrapper{margin-bottom:1em}.user-registration nav.ur-nav-tab-wrapper{margin:1.5em 0 1em;border-bottom:1px solid #ccc}.user-registration .subsubsub{margin:-8px 0 0}.user-registration textarea[disabled=disabled]{background:#dfdfdf!important}.user-registration table.form-table{margin:0;position:relative}.user-registration table.form-table .select2-container{display:block;max-width:350px}.user-registration table.form-table .forminp-radio ul{margin:0}.user-registration table.form-table .forminp-radio ul li{line-height:1.4em}.user-registration table.form-table textarea.input-text{height:100%;min-width:150px;display:block}.user-registration table.form-table input.regular-input{width:25em}.user-registration table.form-table textarea.wide-input{width:100%}.user-registration table.form-table .user-registration-help-tip,.user-registration table.form-table img.help_tip{padding:0;margin:-4px 0 0 5px;vertical-align:middle;cursor:help;line-height:1}.user-registration table.form-table span.help_tip{cursor:help;color:#2ea2cc}.user-registration table.form-table th{position:relative;padding-right:24px}.user-registration table.form-table .select2-container{vertical-align:top;margin-bottom:3px}.user-registration table.form-table table.widefat th{padding-right:inherit}.user-registration table.form-table th .user-registration-help-tip,.user-registration table.form-table th img.help_tip{margin:0 -24px 0 0;float:right}.user-registration table.form-table .wp-list-table .user-registration-help-tip{float:none}.user-registration table.form-table fieldset{margin-top:4px}.user-registration table.form-table fieldset .user-registration-help-tip,.user-registration table.form-table fieldset img.help_tip{margin:-3px 0 0 5px}.user-registration table.form-table fieldset p.description{margin-bottom:8px}.user-registration table.form-table fieldset:first-child{margin-top:0}.user-registration table.form-table .iris-picker{z-index:100;display:none;position:absolute;border:1px solid #ccc;border-radius:3px;box-shadow:0 1px 3px rgba(0,0,0,.2)}.user-registration table.form-table .iris-picker .ui-slider{border:0!important;margin:0!important;width:auto!important;height:auto!important;background:none transparent!important}.user-registration table.form-table .iris-picker .ui-slider .ui-slider-handle{margin-bottom:0!important}.user-registration table.form-table .colorpickpreview{padding:3px;padding-left:20px;border:1px solid #ddd;border-right:0}.user-registration table.form-table .colorpick{border-left:0}.user-registration table.form-table .image_width_settings{vertical-align:middle}.user-registration table.form-table .image_width_settings label{margin-left:10px}@media only screen and (max-width:1599px){.ur_addons_wrap .products li{width:32.66%}.ur_addons_wrap .products li:nth-child(5n){margin:0 1% 1% 0!important}.ur_addons_wrap .products li:nth-child(3n){margin:0 0 1% 0!important}}@media only screen and (max-width:1120px){.ur_addons_wrap .products li{width:49%;margin:0 2% 2% 0!important}.ur_addons_wrap .products li:nth-child(3n),.ur_addons_wrap .products li:nth-child(5n){margin:0 2% 2% 0!important}.ur_addons_wrap .products li:nth-child(2n){margin:0 0 2% 0!important}}@media only screen and (max-width:900px){.ur_addons_wrap .products li{width:49%}}@media only screen and (max-width:480px){.ur_addons_wrap .products li,.ur_addons_wrap .products li:nth-child(2n),.ur_addons_wrap .products li:nth-child(3n),.ur_addons_wrap .products li:nth-child(5n){width:100%;margin:0 0 3% 0!important}}@media only screen and (min-width:769px) and (max-width:1000px){.user-registration_page_add-new-registration #post-body-content{min-width:0}}@media screen and (max-width:782px){body.user-registration_page_add-new-registration{min-width:0!important}}.ur-admin-template-options{display:none}.ur-registered-from{display:-webkit-box;display:-ms-flexbox;display:flex;background-color:#f8f8f8;font-family:Roboto,sans-serif;border-bottom:1px solid #ddd}.ur-registered-from *{box-sizing:border-box}.ur-registered-from :focus{outline:0}.ur-registered-from .ur-registered-inputs{width:35%;background-color:#f9f9f9}.ur-registered-from .ur-registered-inputs .ur-tabs{border:0 none;background-color:transparent;padding:0;font-family:Roboto,sans-serif;font-size:14px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists{background-color:transparent;background-image:none;padding:0;border-radius:0;margin:0;display:-webkit-box;display:-ms-flexbox;display:flex;border-bottom:2px solid #217dbb;border-top:0 none;border-right:0 none;border-left:0 none}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li{background-color:transparent;background-image:none;border-radius:0;margin:0;margin-bottom:-1px;padding:0;float:none;display:inline-block;border:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li.active{margin-bottom:0;padding-bottom:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li.ui-state-disabled{opacity:1}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a{float:none;text-decoration:none;margin:0;border:none;display:block;color:#666;background-color:transparent;padding:5px 15px;font-weight:500;cursor:pointer}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a:focus{box-shadow:0 0 0 0 transparent,0 0 0 0 transparent}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-lists li a.active{background-color:#217dbb;color:#fff;line-height:24px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content{padding:10px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content#ur-tab-field-options,.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content#ur-tab-registered-fields{background-color:#f2f2f2}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content h2{margin:0;font-size:16px;font-weight:600;font-family:Roboto,sans-serif;color:#404040}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list{margin:15px 0;width:100%}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::after,.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::before{content:' ';display:table}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list::after{clear:both}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list:last-child{margin-bottom:0}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:left;padding:10px 15px 10px 45px;height:auto;line-height:25px;width:48%;background-color:#3498db;color:#fff;margin-bottom:7px;word-break:break-word;white-space:normal;position:relative;cursor:move}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item .dashicons{position:absolute;top:0;bottom:0;background:rgba(0,0,0,.3);width:35px;left:0;line-height:2.9;font-size:16px;height:auto;margin-right:5px}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:nth-child(2n){float:right}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:hover{background-color:#217dbb;color:#fff}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item:nth-child(2n+1){clear:both;display:block}.ur-registered-from .ur-selected-inputs{width:70%;box-sizing:border-box;border-left:1px solid #ddd;padding:20px}.ur-registered-from .ur-selected-inputs .ur-single-row{background-color:#f2f2f2;margin-bottom:20px;border:1px solid #ddd}.ur-registered-from .ur-selected-inputs .ur-single-row:last-child{margin-bottom:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids{background-color:#f2f2f2;border-bottom:1px solid #ddd;clear:both;display:table;width:100%}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div{border-right:1px solid #ddd;display:inline-block;line-height:25px;color:#787878;float:left}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-size{padding:0 10px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-navigation{width:25px;height:25px;background-color:#e8e8e8;font-family:dashicons;font-size:16px;cursor:pointer}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids div.ur-grid-navigation:hover{background-color:#ddd}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row{float:right;border-radius:0;border:0;background-color:transparent;color:#787878;width:25px;height:25px;cursor:pointer;padding:0;line-height:25px;-webkit-transition:all .1s ease-in-out;transition:all .1s ease-in-out}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row:before{font-family:dashicons}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grids .ur-remove-row:hover{color:#d82223}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;text-align:center;padding:20px;box-sizing:border-box;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item{display:inline-block;text-align:left;border:0 none;padding:15px;background-color:#f7f7f7;-webkit-box-flex:1;-ms-flex:1;flex:1;border:2px dashed #d3d3d3}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item{margin-bottom:15px;position:relative;background-color:#f8f8f8;padding:20px;cursor:move;border:1px solid #e8e8e8;-webkit-transition:border-color .35s;transition:border-color .35s}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:last-child{margin-bottom:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:hover{border:1px solid #3498db}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active{box-shadow:0 0 20px rgba(0,0,0,.2);background-color:#f8f8f8}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ui-sortable-helper,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item.ur-item-active.ui-sortable-helper{box-shadow:0 0 20px rgba(0,0,0,.2);background-color:#e8e8e8}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons{display:none;position:absolute;right:10px;width:50px;text-align:center;padding:0;font-size:10px;top:10px;color:#b1b1b1}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons span{cursor:pointer;font-size:14px;height:auto}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons span:hover{color:#3498db}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons:hover .ur-action-buttons{display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur-action-buttons .ur-trash:hover{color:#d82223}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_top_left{text-align:left}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_center{text-align:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_top_right{text-align:right}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item .ur_label_disabled{display:none}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item:hover .ur-action-buttons{display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item>li.ur-item-dragged{list-style:none;width:100%;text-align:center;height:60px!important;box-sizing:border-box}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item>li.ur-item-dragged .spinner{float:none}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me{display:table;width:100%;height:100%}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text{display:table-cell;vertical-align:middle;text-align:center}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text p{display:inline-block;position:relative;color:#b1b1b1;padding-left:26px;padding-top:8px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .user-registration-dragged-me .user-registration-dragged-me-text p::before{position:absolute;font-family:Dashicons;content:'\f545';font-size:22px;left:0;top:0}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2){border-left:2px solid #f7f7f7}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2).ur-sortable-active,.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-sortable-active{border-right:2px dotted #217dbb;border-left:2px dotted #217dbb;border-top:2px dotted #217dbb;border-bottom:2px dotted #217dbb;background-color:#e1f0fa}.ur-registered-from .ur-selected-inputs .ur-add-new-row{color:#b1b1b1;display:block;margin:0 auto;font-size:30px;width:40px;cursor:pointer;text-align:center;margin-bottom:20px;background-color:transparent;border:0 none}.ur-registered-from .ur-selected-inputs .ur-add-new-row:hover{color:#3498db}.ur-registered-from .ur-selected-inputs li.ur-registered-item{list-style:none;padding:10px 10px;line-height:20px;background-color:#3498db;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important}.ur-registered-from .ur-selected-inputs li.ur-registered-item>span{font-size:14px;line-height:20px;width:auto;height:auto;margin-right:3px}.ur-registered-from .ur-advance-setting,.ur-registered-from .ur-general-setting{padding:20px 0 0}.ur-registered-from .ur-advance-setting-block{margin-top:25px}.ur-registered-from .ui-widget select,.ur-registered-from input[type=date],.ur-registered-from input[type=email],.ur-registered-from input[type=number],.ur-registered-from input[type=password],.ur-registered-from input[type=text],.ur-registered-from input[type=url],.ur-registered-from select,.ur-registered-from textarea{display:block;width:100%;color:#787878;box-shadow:0 0 0 transparent;font-size:12px;height:35px;padding:0 10px}.ur-registered-from .ui-widget select:focus,.ur-registered-from input[type=date]:focus,.ur-registered-from input[type=email]:focus,.ur-registered-from input[type=number]:focus,.ur-registered-from input[type=password]:focus,.ur-registered-from input[type=text]:focus,.ur-registered-from input[type=url]:focus,.ur-registered-from select:focus,.ur-registered-from textarea:focus{border-color:#ddd}.ur-registered-from label{display:block;width:100%;margin-bottom:10px;color:#666;font-size:12px;font-weight:500}.ur-registered-from textarea{padding:10px;height:100px}.ur-registered-from .ur-registered-item.dragging{border:0;box-shadow:0 0 0 transparent;border-radius:0;padding:5px 10px;height:auto;background-color:#3498db;color:#fff;text-align:center;width:200px}.ur-registered-from .ur-advance-setting-block,.ur-registered-from .ur-general-setting-block{display:none}.ur-registered-from .ur-advance-setting label,.ur-registered-from .ur-general-setting label{display:block}#sortable{min-height:400px}@media screen and (max-width:1400px){.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{font-size:12px}}@media screen and (max-width:960px){.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:none;width:100%}.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists,.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item,.ur-registered-from .ur-registered-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item .ur-selected-item{padding:10px}}@media screen and (max-width:782px){.ur-registered-from{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.ur-registered-from .ur-registered-inputs{width:100%;margin-bottom:10px}.ur-registered-from .ur-selected-inputs{width:100%}.ur-registered-from .ur-registered-inputs .ur-tabs .ur-tab-content .ur-registered-list .ur-registered-item{float:left;width:48%}}@media screen and (max-width:600px){.user-registration_page_add-new-registration .major-publishing-actions{clear:both;padding:10px 0 19px;line-height:28px}.user-registration_page_add-new-registration .major-publishing-actions .ur-form-name{width:100%}.user-registration_page_add-new-registration .major-publishing-actions .publishing-action{text-align:left;float:none;margin-top:15px}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;display:block}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item{width:100%!important}.ur-registered-from .ur-selected-inputs .ur-single-row .ur-grid-lists .ur-grid-list-item:nth-child(1n+2){border-left:0 none;border-top:2px solid #f2f2f2}}.tips{cursor:help;text-decoration:none}img.tips{padding:5px 0 0}#tiptip_holder{display:none;z-index:8675309;position:absolute;top:0;left:0}#tiptip_holder.tip_top{padding-bottom:5px}#tiptip_holder.tip_top #tiptip_arrow_inner{margin-top:-7px;margin-left:-6px;border-top-color:#333}#tiptip_holder.tip_bottom{padding-top:5px}#tiptip_holder.tip_bottom #tiptip_arrow_inner{margin-top:-5px;margin-left:-6px;border-bottom-color:#333}#tiptip_holder.tip_right{padding-left:5px}#tiptip_holder.tip_right #tiptip_arrow_inner{margin-top:-6px;margin-left:-5px;border-right-color:#333}#tiptip_holder.tip_left{padding-right:5px}#tiptip_holder.tip_left #tiptip_arrow_inner{margin-top:-6px;margin-left:-7px;border-left-color:#333}#tiptip_content,.ur_error_tip{color:#fff;font-size:.8em;max-width:150px;background:#333;text-align:center;border-radius:3px;padding:.618em 1em;box-shadow:0 1px 3px rgba(0,0,0,.2)}#tiptip_content code,.ur_error_tip code{padding:1px;background:#888}#tiptip_arrow,#tiptip_arrow_inner{position:absolute;border-color:transparent;border-style:solid;border-width:6px;height:0;width:0}.ur_error_tip{max-width:20em;line-height:1.8em;position:absolute;white-space:normal;background:#d82223;margin:1.5em 1px 0 -1em;z-index:9999999}.ur_error_tip::after{content:'';display:block;border:8px solid #d82223;border-right-color:transparent;border-left-color:transparent;border-top-color:transparent;position:absolute;top:-3px;left:50%;margin:-1em 0 0 -3px}.user-registration-help-tip{color:#666;display:inline-block;font-size:1.1em;font-style:normal;height:16px;line-height:16px;position:relative;vertical-align:middle;width:16px}.user-registration-help-tip::after{font-family:Dashicons;speak:none;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;margin:0;text-indent:0;position:absolute;top:0;left:0;width:100%;height:100%;text-align:center;content:"";cursor:help}.select2-drop,.select2-dropdown{z-index:999999!important}.select2-results{line-height:1.5em}.select2-results .select2-results__group,.select2-results .select2-results__option{margin:0;padding:8px}.select2-dropdown{border-color:#ddd}.select2-dropdown--below{box-shadow:0 1px 1px rgba(0,0,0,.1)}.select2-dropdown--above{box-shadow:0 -1px 1px rgba(0,0,0,.1)}.select2-container .select2-selection__rendered.ui-sortable li{cursor:move}.select2-container .select2-selection{border-color:#ddd}.select2-container .select2-search__field{min-width:150px}.select2-container .select2-selection--single{height:32px}.select2-container .select2-selection--single .select2-selection__rendered{line-height:32px;padding-right:24px}.select2-container .select2-selection--single .select2-selection__arrow{right:3px;height:30px}.select2-container .select2-selection--multiple{min-height:28px;border-radius:0;line-height:1.5}.select2-container .select2-selection--multiple li{margin:0}.select2-container .select2-selection--multiple .select2-selection__choice{padding:2px 6px}.select2-container .select2-selection__clear{color:#999;margin-top:-1px}.select2-container .select2-search--inline .select2-search__field{font-family:inherit;font-size:inherit;font-weight:inherit;padding:3px 0}#ur-tab-registered-fields li.ur-registered-item.ui-draggable-disabled{background:#ccc}.ur-no-pointer{pointer-events:none}#ur-tab-field-settings{background:#f2f2f2}
|
assets/css/admin.scss
CHANGED
@@ -17,6 +17,83 @@
|
|
17 |
@include loader();
|
18 |
}
|
19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
.user-registration_page_add-new-registration {
|
21 |
|
22 |
#post-body {
|
@@ -386,6 +463,49 @@
|
|
386 |
/* =Media Queries
|
387 |
-------------------------------------------------------------- */
|
388 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
389 |
@media only screen and (min-width: 769px) and (max-width: 1000px) {
|
390 |
|
391 |
.user-registration_page_add-new-registration #post-body-content {
|
@@ -784,6 +904,8 @@
|
|
784 |
input[type="url"],
|
785 |
input[type="text"],
|
786 |
input[type="password"],
|
|
|
|
|
787 |
textarea,
|
788 |
.ui-widget select,
|
789 |
select {
|
17 |
@include loader();
|
18 |
}
|
19 |
|
20 |
+
.ur_addons_wrap {
|
21 |
+
|
22 |
+
.products {
|
23 |
+
overflow: hidden;
|
24 |
+
|
25 |
+
li {
|
26 |
+
margin: 0 1% 1% 0 !important;
|
27 |
+
padding: 0;
|
28 |
+
vertical-align: top;
|
29 |
+
width: 19.2%;
|
30 |
+
float: left;
|
31 |
+
|
32 |
+
&:nth-child(5n) {
|
33 |
+
margin: 0 0 1% 0!important;
|
34 |
+
}
|
35 |
+
|
36 |
+
a {
|
37 |
+
text-decoration: none;
|
38 |
+
color: inherit;
|
39 |
+
border: 1px solid #ddd;
|
40 |
+
display: block;
|
41 |
+
min-height: 220px;
|
42 |
+
overflow: hidden;
|
43 |
+
background: #f5f5f5;
|
44 |
+
box-shadow:
|
45 |
+
inset 0 1px 0 rgba(255, 255, 255, 0.2),
|
46 |
+
inset 0 -1px 0 rgba(0, 0, 0, 0.1);
|
47 |
+
|
48 |
+
.product-image {
|
49 |
+
display: block;
|
50 |
+
background: #ffffff;
|
51 |
+
|
52 |
+
img {
|
53 |
+
max-width: 100%;
|
54 |
+
display: block;
|
55 |
+
margin: 0;
|
56 |
+
}
|
57 |
+
}
|
58 |
+
|
59 |
+
img.extension-thumb + h3 {
|
60 |
+
display: none;
|
61 |
+
}
|
62 |
+
|
63 |
+
.price {
|
64 |
+
display: none;
|
65 |
+
}
|
66 |
+
|
67 |
+
h2, h3 {
|
68 |
+
margin: 0 !important;
|
69 |
+
padding: 20px !important;
|
70 |
+
background: #fff;
|
71 |
+
}
|
72 |
+
|
73 |
+
p {
|
74 |
+
padding: 20px !important;
|
75 |
+
margin: 0 !important;
|
76 |
+
border-top: 1px solid #f1f1f1;
|
77 |
+
}
|
78 |
+
|
79 |
+
&:hover,
|
80 |
+
&:focus {
|
81 |
+
background-color: #fff;
|
82 |
+
}
|
83 |
+
}
|
84 |
+
}
|
85 |
+
}
|
86 |
+
}
|
87 |
+
|
88 |
+
.clear {
|
89 |
+
clear: both;
|
90 |
+
}
|
91 |
+
|
92 |
+
.wrap.user-registration div.updated,
|
93 |
+
.wrap.user-registration div.error {
|
94 |
+
margin-top: 10px;
|
95 |
+
}
|
96 |
+
|
97 |
.user-registration_page_add-new-registration {
|
98 |
|
99 |
#post-body {
|
463 |
/* =Media Queries
|
464 |
-------------------------------------------------------------- */
|
465 |
|
466 |
+
@media only screen and (max-width: 1599px) {
|
467 |
+
.ur_addons_wrap .products li {
|
468 |
+
width: 32.66%;
|
469 |
+
}
|
470 |
+
.ur_addons_wrap .products li:nth-child(5n) {
|
471 |
+
margin: 0 1% 1% 0 !important;
|
472 |
+
}
|
473 |
+
.ur_addons_wrap .products li:nth-child(3n) {
|
474 |
+
margin: 0 0 1% 0 !important;
|
475 |
+
}
|
476 |
+
}
|
477 |
+
|
478 |
+
@media only screen and (max-width: 1120px) {
|
479 |
+
.ur_addons_wrap .products li {
|
480 |
+
width: 49%;
|
481 |
+
margin: 0 2% 2% 0 !important;
|
482 |
+
}
|
483 |
+
.ur_addons_wrap .products li:nth-child(5n),
|
484 |
+
.ur_addons_wrap .products li:nth-child(3n) {
|
485 |
+
margin: 0 2% 2% 0 !important;
|
486 |
+
}
|
487 |
+
.ur_addons_wrap .products li:nth-child(2n) {
|
488 |
+
margin: 0 0 2% 0 !important;
|
489 |
+
}
|
490 |
+
}
|
491 |
+
|
492 |
+
@media only screen and (max-width: 900px) {
|
493 |
+
.ur_addons_wrap .products li {
|
494 |
+
width: 49%;
|
495 |
+
}
|
496 |
+
}
|
497 |
+
|
498 |
+
@media only screen and (max-width: 480px) {
|
499 |
+
.ur_addons_wrap .products li,
|
500 |
+
.ur_addons_wrap .products li:nth-child(5n),
|
501 |
+
.ur_addons_wrap .products li:nth-child(3n),
|
502 |
+
.ur_addons_wrap .products li:nth-child(2n) {
|
503 |
+
width: 100%;
|
504 |
+
margin: 0 0 3% 0 !important;
|
505 |
+
}
|
506 |
+
|
507 |
+
}
|
508 |
+
|
509 |
@media only screen and (min-width: 769px) and (max-width: 1000px) {
|
510 |
|
511 |
.user-registration_page_add-new-registration #post-body-content {
|
904 |
input[type="url"],
|
905 |
input[type="text"],
|
906 |
input[type="password"],
|
907 |
+
input[type="number"],
|
908 |
+
input[type="date"],
|
909 |
textarea,
|
910 |
.ui-widget select,
|
911 |
select {
|
assets/css/menu-rtl.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.ur_plugin_upgrade_notice{font-weight:400;color:#fff;background:#d54d21;padding:1em;margin:9px 0}.ur_plugin_upgrade_notice::before{content:'\f348';display:inline-block;font:400 18px/1 dashicons;speak:none;margin:0 -2px 0 8px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top}.user-registration-updater-licensed td,.user-registration-updater-licensed th{box-shadow:none!important}.user-registration-updater-license-key{border:0;font-size:13px;font-weight:400;padding:6px 12px;margin:5px 40px 15px 20px;background-color:rgba(0,0,0,.03);line-height:27px}.user-registration-updater-license-key input{margin:0 4px;vertical-align:middle}.user-registration-updater-license-key::before{color:#32373c;content:'\f160';margin:0 -2px 0 8px;display:inline-block;font:400 20px/27px dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:middle}
|
assets/css/menu.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.ur_plugin_upgrade_notice{font-weight:400;color:#fff;background:#d54d21;padding:1em;margin:9px 0}.ur_plugin_upgrade_notice::before{content:'\f348';display:inline-block;font:400 18px/1 dashicons;speak:none;margin:0 8px 0 -2px;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top}.user-registration-updater-licensed td,.user-registration-updater-licensed th{box-shadow:none!important}.user-registration-updater-license-key{border:0;font-size:13px;font-weight:400;padding:6px 12px;margin:5px 20px 15px 40px;background-color:rgba(0,0,0,.03);line-height:27px}.user-registration-updater-license-key input{margin:0 4px;vertical-align:middle}.user-registration-updater-license-key::before{color:#32373c;content:'\f160';margin:0 8px 0 -2px;display:inline-block;font:400 20px/27px dashicons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:middle}
|
assets/css/menu.scss
ADDED
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* menu.scss
|
3 |
+
* Styles applied to dashboard menu items added via UserRegistration.
|
4 |
+
* Adds icons to top level menu items, etc.
|
5 |
+
*/
|
6 |
+
|
7 |
+
/**
|
8 |
+
* Imports
|
9 |
+
*/
|
10 |
+
@import 'mixins';
|
11 |
+
@import 'variables';
|
12 |
+
|
13 |
+
/**
|
14 |
+
* Styling begins
|
15 |
+
*/
|
16 |
+
.ur_plugin_upgrade_notice {
|
17 |
+
font-weight: normal;
|
18 |
+
color: #fff;
|
19 |
+
background: #d54d21;
|
20 |
+
padding: 1em;
|
21 |
+
margin: 9px 0;
|
22 |
+
|
23 |
+
&::before {
|
24 |
+
content: '\f348';
|
25 |
+
display: inline-block;
|
26 |
+
font: 400 18px/1 dashicons;
|
27 |
+
speak: none;
|
28 |
+
margin: 0 8px 0 -2px;
|
29 |
+
-webkit-font-smoothing: antialiased;
|
30 |
+
-moz-osx-font-smoothing: grayscale;
|
31 |
+
vertical-align: top;
|
32 |
+
}
|
33 |
+
}
|
34 |
+
|
35 |
+
/**
|
36 |
+
* Plugin Updater.
|
37 |
+
*/
|
38 |
+
.user-registration-updater-licensed {
|
39 |
+
th, td {
|
40 |
+
box-shadow: none !important;
|
41 |
+
}
|
42 |
+
}
|
43 |
+
|
44 |
+
.user-registration-updater-license-key {
|
45 |
+
border: 0;
|
46 |
+
font-size: 13px;
|
47 |
+
font-weight: 400;
|
48 |
+
padding: 6px 12px;
|
49 |
+
margin: 5px 20px 15px 40px;
|
50 |
+
background-color: rgba(0, 0, 0, .03);
|
51 |
+
line-height: 27px;
|
52 |
+
|
53 |
+
input {
|
54 |
+
margin: 0 4px;
|
55 |
+
vertical-align: middle;
|
56 |
+
}
|
57 |
+
|
58 |
+
&::before {
|
59 |
+
color: #32373c;
|
60 |
+
content: '\f160';
|
61 |
+
margin: 0 8px 0 -2px;
|
62 |
+
display: inline-block;
|
63 |
+
font: 400 20px/27px dashicons;
|
64 |
+
-webkit-font-smoothing: antialiased;
|
65 |
+
-moz-osx-font-smoothing: grayscale;
|
66 |
+
vertical-align: middle;
|
67 |
+
}
|
68 |
+
}
|
assets/css/select2.css
CHANGED
@@ -1 +1 @@
|
|
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;-moz-user-select:none;-ms-user-select:none;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;-moz-user-select:none;-ms-user-select:none;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:#fff;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;-moz-user-select:none;-ms-user-select:none;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}.select2-hidden-accessible{border:0!important;clip:rect(0 0 0 0)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;width:1px!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:700}.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:#fff;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__placeholder{color:#999;margin-top:5px;float:left}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-top:5px;margin-right:10px}.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:700;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-search--inline,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__placeholder{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 #000 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--multiple,.select2-container--default.select2-container--open.select2-container--above .select2-selection--single{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--below .select2-selection--single{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:0 0;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:#0073aa;color:#fff}.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:linear-gradient(to bottom,#fff 50%,#eee 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--single:focus{border:1px solid #0073aa}.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:700;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:linear-gradient(to bottom,#eee 50%,#ccc 100%);background-repeat:repeat-x}.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 #0073aa}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:0 0;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:linear-gradient(to bottom,#fff 0,#eee 50%);background-repeat:repeat-x}.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:linear-gradient(to bottom,#eee 50%,#fff 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #0073aa}.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:700;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}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{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 #0073aa}.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:#0073aa}
|
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;-moz-user-select:none;-ms-user-select:none;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;-moz-user-select:none;-ms-user-select:none;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:#fff;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;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected],.select2-results__option[data-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}.select2-hidden-accessible{border:0!important;clip:rect(0 0 0 0)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;width:1px!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:700}.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:#fff;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__placeholder{color:#999;margin-top:5px;float:left}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-top:5px;margin-right:10px}.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:700;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-search--inline,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__placeholder{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 #000 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--multiple,.select2-container--default.select2-container--open.select2-container--above .select2-selection--single{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--below .select2-selection--single{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:0 0;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],.select2-container--default .select2-results__option[data-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],.select2-container--default .select2-results__option--highlighted[data-selected]{background-color:#0073aa;color:#fff}.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:linear-gradient(to bottom,#fff 50%,#eee 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--single:focus{border:1px solid #0073aa}.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:700;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:linear-gradient(to bottom,#eee 50%,#ccc 100%);background-repeat:repeat-x}.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 #0073aa}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:0 0;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:linear-gradient(to bottom,#fff 0,#eee 50%);background-repeat:repeat-x}.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:linear-gradient(to bottom,#eee 50%,#fff 100%);background-repeat:repeat-x}.select2-container--classic .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #0073aa}.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:700;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}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{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 #0073aa}.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],.select2-container--classic .select2-results__option--highlighted[data-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:#0073aa}
|
assets/css/select2.scss
CHANGED
@@ -70,6 +70,7 @@
|
|
70 |
padding: 6px;
|
71 |
user-select: none;
|
72 |
-webkit-user-select: none; }
|
|
|
73 |
.select2-results__option[aria-selected] {
|
74 |
cursor: pointer; }
|
75 |
|
@@ -264,6 +265,7 @@
|
|
264 |
.select2-container--default .select2-results__option[aria-disabled=true] {
|
265 |
color: #999; }
|
266 |
|
|
|
267 |
.select2-container--default .select2-results__option[aria-selected=true] {
|
268 |
background-color: #ddd; }
|
269 |
|
@@ -287,6 +289,7 @@
|
|
287 |
margin-left: -5em;
|
288 |
padding-left: 6em; }
|
289 |
|
|
|
290 |
.select2-container--default .select2-results__option--highlighted[aria-selected] {
|
291 |
background-color: #0073aa;
|
292 |
color: white; }
|
@@ -301,8 +304,6 @@
|
|
301 |
border: 1px solid #aaa;
|
302 |
border-radius: 4px;
|
303 |
outline: 0;
|
304 |
-
background-image: -webkit-linear-gradient(top, white 50%, #eeeeee 100%);
|
305 |
-
background-image: -o-linear-gradient(top, white 50%, #eeeeee 100%);
|
306 |
background-image: linear-gradient(to bottom, white 50%, #eeeeee 100%);
|
307 |
background-repeat: repeat-x;
|
308 |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0); }
|
@@ -329,8 +330,6 @@
|
|
329 |
top: 1px;
|
330 |
right: 1px;
|
331 |
width: 20px;
|
332 |
-
background-image: -webkit-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
|
333 |
-
background-image: -o-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
|
334 |
background-image: linear-gradient(to bottom, #eeeeee 50%, #cccccc 100%);
|
335 |
background-repeat: repeat-x;
|
336 |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0); }
|
@@ -371,8 +370,6 @@
|
|
371 |
border-top: none;
|
372 |
border-top-left-radius: 0;
|
373 |
border-top-right-radius: 0;
|
374 |
-
background-image: -webkit-linear-gradient(top, white 0%, #eeeeee 50%);
|
375 |
-
background-image: -o-linear-gradient(top, white 0%, #eeeeee 50%);
|
376 |
background-image: linear-gradient(to bottom, white 0%, #eeeeee 50%);
|
377 |
background-repeat: repeat-x;
|
378 |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0); }
|
@@ -381,8 +378,6 @@
|
|
381 |
border-bottom: none;
|
382 |
border-bottom-left-radius: 0;
|
383 |
border-bottom-right-radius: 0;
|
384 |
-
background-image: -webkit-linear-gradient(top, #eeeeee 50%, white 100%);
|
385 |
-
background-image: -o-linear-gradient(top, #eeeeee 50%, white 100%);
|
386 |
background-image: linear-gradient(to bottom, #eeeeee 50%, white 100%);
|
387 |
background-repeat: repeat-x;
|
388 |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0); }
|
@@ -471,6 +466,7 @@
|
|
471 |
.select2-container--classic .select2-results__option[aria-disabled=true] {
|
472 |
color: grey; }
|
473 |
|
|
|
474 |
.select2-container--classic .select2-results__option--highlighted[aria-selected] {
|
475 |
background-color: #3875d7;
|
476 |
color: white; }
|
70 |
padding: 6px;
|
71 |
user-select: none;
|
72 |
-webkit-user-select: none; }
|
73 |
+
.select2-results__option[data-selected],
|
74 |
.select2-results__option[aria-selected] {
|
75 |
cursor: pointer; }
|
76 |
|
265 |
.select2-container--default .select2-results__option[aria-disabled=true] {
|
266 |
color: #999; }
|
267 |
|
268 |
+
.select2-container--default .select2-results__option[data-selected=true],
|
269 |
.select2-container--default .select2-results__option[aria-selected=true] {
|
270 |
background-color: #ddd; }
|
271 |
|
289 |
margin-left: -5em;
|
290 |
padding-left: 6em; }
|
291 |
|
292 |
+
.select2-container--default .select2-results__option--highlighted[data-selected],
|
293 |
.select2-container--default .select2-results__option--highlighted[aria-selected] {
|
294 |
background-color: #0073aa;
|
295 |
color: white; }
|
304 |
border: 1px solid #aaa;
|
305 |
border-radius: 4px;
|
306 |
outline: 0;
|
|
|
|
|
307 |
background-image: linear-gradient(to bottom, white 50%, #eeeeee 100%);
|
308 |
background-repeat: repeat-x;
|
309 |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0); }
|
330 |
top: 1px;
|
331 |
right: 1px;
|
332 |
width: 20px;
|
|
|
|
|
333 |
background-image: linear-gradient(to bottom, #eeeeee 50%, #cccccc 100%);
|
334 |
background-repeat: repeat-x;
|
335 |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0); }
|
370 |
border-top: none;
|
371 |
border-top-left-radius: 0;
|
372 |
border-top-right-radius: 0;
|
|
|
|
|
373 |
background-image: linear-gradient(to bottom, white 0%, #eeeeee 50%);
|
374 |
background-repeat: repeat-x;
|
375 |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0); }
|
378 |
border-bottom: none;
|
379 |
border-bottom-left-radius: 0;
|
380 |
border-bottom-right-radius: 0;
|
|
|
|
|
381 |
background-image: linear-gradient(to bottom, #eeeeee 50%, white 100%);
|
382 |
background-repeat: repeat-x;
|
383 |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0); }
|
466 |
.select2-container--classic .select2-results__option[aria-disabled=true] {
|
467 |
color: grey; }
|
468 |
|
469 |
+
.select2-container--classic .select2-results__option--highlighted[data-selected],
|
470 |
.select2-container--classic .select2-results__option--highlighted[aria-selected] {
|
471 |
background-color: #3875d7;
|
472 |
color: white; }
|
assets/css/user-registration-rtl.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.ur-registered-item.ui-draggable-dragging{padding:10px 10px;line-height:20px;background:#3498db;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important}.ur-registered-item.ui-draggable-dragging span{font-size:14px;line-height:20px;width:auto;height:auto;margin-left:3px}.clear{clear:both}.user-registration-error,.user-registration-info,.user-registration-message{padding:1.5em 3.5em 1.5em 2em;margin:0 0 2em;position:relative;background-color:#f7f6f7;color:#515151;border-top:3px solid #a46497;list-style:none outside;width:auto;word-wrap:break-word;line-height:1.5;text-transform:none;font-size:14px}.user-registration-error::after,.user-registration-error::before,.user-registration-info::after,.user-registration-info::before,.user-registration-message::after,.user-registration-message::before{content:' ';display:table}.user-registration-error::after,.user-registration-info::after,.user-registration-message::after{clear:both}.user-registration-error::before,.user-registration-info::before,.user-registration-message::before{font-family:Dashicons;content:'\f348';display:inline-block;position:absolute;top:1em;right:.9em;font-size:18px;line-height:1.5}.user-registration-error ul,.user-registration-info ul,.user-registration-message ul{margin:0!important;padding:0!important;background-color:transparent!important}.user-registration-error .button,.user-registration-info .button,.user-registration-message .button{float:left}.user-registration-error li,.user-registration-info li,.user-registration-message li{list-style:none outside!important;padding-right:0!important;margin-right:0!important}.user-registration-error .message,.user-registration-info .message,.user-registration-message .message{margin:0;padding:0}.user-registration-message{border-top-color:#8fae1b;background:rgba(143,174,27,.1);color:#596c11}.user-registration-message::before{color:#8fae1b}.user-registration-info{border-top-color:#1e85be}.user-registration-info::before{color:#1e85be}.user-registration-error{border-top-color:#d82223;background:rgba(216,34,35,.1);color:#961818}.user-registration-error::before{content:'\f534';color:#d82223}.ur-frontend-form{margin-bottom:30px;border:1px solid #ddd;padding:20px;box-sizing:border-box}.ur-frontend-form:last-child{margin-bottom:0}.ur-frontend-form.login{margin:0;padding:0;box-shadow:none;background:0 0}.ur-frontend-form *{box-sizing:border-box}.ur-frontend-form form .ur-form-row{display:-webkit-box;display:-ms-flexbox;display:flex}.ur-frontend-form form .ur-form-row:last-child{margin-bottom:0}.ur-frontend-form form .ur-form-row .ur-form-grid{-webkit-box-flex:1;-ms-flex:1;flex:1;padding:0 10px}.ur-frontend-form form .ur-form-row .ur-form-grid:nth-child(1n+2){border-right:0 none}.ur-frontend-form form .ur-form-row .ur-form-grid .ur-field-item{margin-bottom:20px;font-size:13px}.ur-frontend-form form .ur-form-row .ur-form-grid .ur-field-item:last-child{margin-bottom:0}.ur-frontend-form form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form form .ur-form-row .ur-form-grid select,.ur-frontend-form form .ur-form-row .ur-form-grid textarea{display:block;width:100%}.ur-frontend-form form .ur-form-row .ur-form-grid input[type=checkbox],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=radio]{font-size:12px;vertical-align:top}.ur-frontend-form form .ur-form-row .ur-form-grid button:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=email]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=password]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=radio]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=text]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=url]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid select:focus,.ur-frontend-form form .ur-form-row .ur-form-grid textarea:focus{outline:0}.ur-frontend-form form .ur-form-row .ur-form-grid label,.ur-frontend-form form .ur-form-row .ur-form-grid legend{display:block;width:100%;margin-bottom:10px}.ur-frontend-form form .ur-form-row .ur-form-grid label .required,.ur-frontend-form form .ur-form-row .ur-form-grid legend .required{text-decoration:none;border:none;color:red}.ur-frontend-form form .ur-form-row .ur-form-grid textarea{padding:10px;height:100px;resize:none;padding:5px 20px}.ur-frontend-form form button[type=submit],.ur-frontend-form form input[type=submit]{float:left;padding:10px 20px;line-height:1em;text-align:center;word-break:break-word;white-space:normal;border:none;cursor:pointer;-webkit-transition:.9s all ease-out;transition:.9s all ease-out}.ur-frontend-form form button[type=submit]:hover,.ur-frontend-form form input[type=submit]:hover{background:#3498db}.ur-frontend-form form .ur-submit-button{margin-left:10px;margin-bottom:0}.ur-frontend-form label abbr.required{text-decoration:none;border:none;color:red}.ur-frontend-form #ur-submit-message-node{margin:20px 0 0 0!important}.ur-frontend-form #ur-submit-message-node.ur-error{background:rgba(206,0,0,.1)}.ur-frontend-form #ur-submit-message-node.ur-message.message{background:rgba(143,174,27,.2)}#user-registration .user-registration-MyAccount-navigation{overflow:visible}#user-registration .user-registration-MyAccount-navigation ul{margin:0;padding:0;display:-webkit-box;display:-ms-flexbox;display:flex}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link{list-style:none;padding:0;margin:0;display:inline-block;border-right:1px solid #fff;border-top:1px solid #fff;border-left:1px solid #fff;position:relative}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link a{color:#666;padding:10px 15px;display:block;font-weight:600;font-size:15px;font-family:sans-serif;text-decoration:none}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active{background-color:#fcfcfc;border-right:1px solid #ddd;border-top:1px solid #ddd;border-left:1px solid #ddd}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active a{color:#3498db}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active:before{position:absolute;bottom:-1px;right:0;content:" ";width:100%;height:1px;background-color:#fcfcfc}#user-registration .user-registration-MyAccount-content{background:#fcfcfc;padding:15px 20px;border:1px solid #ddd}#user-registration .user-registration-MyAccount-content .ur-form-grid{padding:0;border:0 none;background:0 0}#user-registration .user-registration-MyAccount-content .ur-frontend-form{border:none}.user-registration-password-strength{text-align:center;font-weight:600;padding:3px .5em;font-size:1em}.user-registration-password-strength.strong{background-color:#c1e1b9;border-color:#83c373}.user-registration-password-strength.short{background-color:#f1adad;border-color:#e35b5b}.user-registration-password-strength.bad{background-color:#fbc5a9;border-color:#f78b53}.user-registration-password-strength.good{background-color:#ffe399;border-color:#ffc733}.user-registration-password-hint{margin:.5em 0 0;display:block}.ur-front-spinner{background:url(../images/wpspin_light-2x.gif) no-repeat;background-size:16px 16px;display:block;opacity:.7;width:16px;height:16px;margin-right:-40px;float:right}
|
1 |
+
.ur-registered-item.ui-draggable-dragging{padding:10px 10px;line-height:20px;background:#3498db;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important}.ur-registered-item.ui-draggable-dragging span{font-size:14px;line-height:20px;width:auto;height:auto;margin-left:3px}.clear{clear:both}.user-registration-error,.user-registration-info,.user-registration-message{padding:1.5em 3.5em 1.5em 2em;margin:0 0 2em;position:relative;background-color:#f7f6f7;color:#515151;border-top:3px solid #a46497;list-style:none outside;width:auto;word-wrap:break-word;line-height:1.5;text-transform:none;font-size:14px}.user-registration-error::after,.user-registration-error::before,.user-registration-info::after,.user-registration-info::before,.user-registration-message::after,.user-registration-message::before{content:' ';display:table}.user-registration-error::after,.user-registration-info::after,.user-registration-message::after{clear:both}.user-registration-error::before,.user-registration-info::before,.user-registration-message::before{font-family:Dashicons;content:'\f348';display:inline-block;position:absolute;top:1em;right:.9em;font-size:18px;line-height:1.5}.user-registration-error ul,.user-registration-info ul,.user-registration-message ul{margin:0!important;padding:0!important;background-color:transparent!important}.user-registration-error .button,.user-registration-info .button,.user-registration-message .button{float:left}.user-registration-error li,.user-registration-info li,.user-registration-message li{list-style:none outside!important;padding-right:0!important;margin-right:0!important}.user-registration-error .message,.user-registration-info .message,.user-registration-message .message{margin:0;padding:0}.user-registration-message{border-top-color:#8fae1b;background:rgba(143,174,27,.1);color:#596c11}.user-registration-message::before{color:#8fae1b}.user-registration-info{border-top-color:#1e85be}.user-registration-info::before{color:#1e85be}.user-registration-error{border-top-color:#d82223;background:rgba(216,34,35,.1);color:#961818}.user-registration-error::before{content:'\f534';color:#d82223}.ur-frontend-form{margin-bottom:30px;border:1px solid #ddd;padding:20px;box-sizing:border-box}.ur-frontend-form:last-child{margin-bottom:0}.ur-frontend-form.login{margin:0;padding:0;box-shadow:none;background:0 0}.ur-frontend-form *{box-sizing:border-box}.ur-frontend-form form .ur-form-row{display:-webkit-box;display:-ms-flexbox;display:flex}.ur-frontend-form form .ur-form-row:last-child{margin-bottom:0}.ur-frontend-form form .ur-form-row .ur-form-grid{-webkit-box-flex:1;-ms-flex:1;flex:1;padding:0 10px}.ur-frontend-form form .ur-form-row .ur-form-grid:nth-child(1n+2){border-right:0 none}.ur-frontend-form form .ur-form-row .ur-form-grid .ur-field-item{margin-bottom:20px;font-size:13px}.ur-frontend-form form .ur-form-row .ur-form-grid .ur-field-item:last-child{margin-bottom:0}.ur-frontend-form form .ur-form-row .ur-form-grid input[type=date],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=number],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form form .ur-form-row .ur-form-grid select,.ur-frontend-form form .ur-form-row .ur-form-grid textarea{display:block;width:100%;border-radius:0}.ur-frontend-form form .ur-form-row .ur-form-grid input[type=checkbox],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=radio]{font-size:12px;vertical-align:top}.ur-frontend-form form .ur-form-row .ur-form-grid button:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=email]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=password]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=radio]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=text]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=url]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid select:focus,.ur-frontend-form form .ur-form-row .ur-form-grid textarea:focus{outline:0}.ur-frontend-form form .ur-form-row .ur-form-grid label,.ur-frontend-form form .ur-form-row .ur-form-grid legend{display:block;width:100%;margin-bottom:10px}.ur-frontend-form form .ur-form-row .ur-form-grid label .required,.ur-frontend-form form .ur-form-row .ur-form-grid legend .required{text-decoration:none;border:none;color:red}.ur-frontend-form form .ur-form-row .ur-form-grid textarea{padding:10px;height:100px;resize:none;padding:5px 20px}.ur-frontend-form form button[type=submit],.ur-frontend-form form input[type=submit]{float:left;padding:10px 20px;line-height:1em;text-align:center;word-break:break-word;white-space:normal;border:none;cursor:pointer;-webkit-transition:.9s all ease-out;transition:.9s all ease-out}.ur-frontend-form form button[type=submit]:hover,.ur-frontend-form form input[type=submit]:hover{background:#3498db}.ur-frontend-form form .ur-submit-button{margin-left:10px;margin-bottom:0}.ur-frontend-form label abbr.required{text-decoration:none;border:none;color:red}.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=date],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=number],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid select,.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid textarea{border:none;border-bottom:1px solid #69717a;outline:0;-webkit-transition:all .35s;transition:all .35s;padding:10px 15px;background:#f8f9fa;color:#69717a;height:45px}.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid label,.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid legend{font-weight:600;line-height:2.5;margin-right:5px;color:#69717a}.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid textarea{height:100px}.ur-frontend-form.ur-frontend-form--bordered form button[type=submit],.ur-frontend-form.ur-frontend-form--bordered form input[type=submit]{background:#f8f9fa;border:1px solid #69717a;color:#69717a;border-radius:0}.ur-frontend-form.ur-frontend-form--bordered form button[type=submit]:hover,.ur-frontend-form.ur-frontend-form--bordered form input[type=submit]:hover{background:#3498db;color:#fff;border-color:#3498db}.ur-frontend-form.ur-frontend-form--flat{background:#f7f7f7;border:none transparent}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid .form-row,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid .ur-field-item{margin-bottom:0}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=date],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=number],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid select,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid textarea{border:none;outline:0;padding:10px 15px;background:#fff;color:#69717a;margin-bottom:10px;height:45px}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=date]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=email]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=number]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=password]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=text]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=url]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid select:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid textarea:focus{box-shadow:0 0 10px 5px rgba(0,0,0,.05)}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid select{margin-bottom:10px}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid label,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid legend{font-weight:600;line-height:2.5;color:#69717a}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid textarea{height:100px}.ur-frontend-form #ur-submit-message-node{margin:20px 0 0 0!important}.ur-frontend-form #ur-submit-message-node.ur-error{background:rgba(206,0,0,.1)}.ur-frontend-form #ur-submit-message-node.ur-message.message{background:rgba(143,174,27,.2)}#user-registration *,#user-registration.user-registration{box-sizing:border-box}#user-registration .user-registration-MyAccount-navigation{overflow:visible;margin:0}#user-registration .user-registration-MyAccount-navigation ul{margin:0;padding:0;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link{list-style:none;padding:0;margin:0;display:inline-block;border-right:1px solid #fff;border-top:1px solid #fff;border-left:1px solid #fff;position:relative;box-shadow:0 0 0 transparent}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link a{color:#666;padding:10px 15px;display:block;font-weight:600;font-size:15px;font-family:sans-serif;text-decoration:none;box-shadow:0 0 0 transparent}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active{background-color:#fcfcfc;border-right:1px solid #ddd;border-top:1px solid #ddd;border-left:1px solid #ddd}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active a{color:#3498db}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active:before{position:absolute;bottom:-1px;right:0;content:" ";width:100%;height:1px;background-color:#fcfcfc}#user-registration .user-registration-MyAccount-content{background:#fcfcfc;padding:15px 20px;border:1px solid #ddd}#user-registration .user-registration-MyAccount-content .ur-form-grid{padding:0;border:0 none;background:0 0}#user-registration .user-registration-MyAccount-content .ur-frontend-form{border:none}.user-registration-password-strength{text-align:center;font-weight:600;padding:3px .5em;font-size:1em}.user-registration-password-strength.strong{background-color:#c1e1b9;border-color:#83c373}.user-registration-password-strength.short{background-color:#f1adad;border-color:#e35b5b}.user-registration-password-strength.bad{background-color:#fbc5a9;border-color:#f78b53}.user-registration-password-strength.good{background-color:#ffe399;border-color:#ffc733}.user-registration-password-hint{margin:.5em 0 0;display:block}.ur-front-spinner{background:url(../images/wpspin_light-2x.gif) no-repeat;background-size:16px 16px;display:block;opacity:.7;width:16px;height:16px;margin-right:-40px;float:right}
|
assets/css/user-registration.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.ur-registered-item.ui-draggable-dragging{padding:10px 10px;line-height:20px;background:#3498db;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important}.ur-registered-item.ui-draggable-dragging span{font-size:14px;line-height:20px;width:auto;height:auto;margin-right:3px}.clear{clear:both}.user-registration-error,.user-registration-info,.user-registration-message{padding:1.5em 2em 1.5em 3.5em;margin:0 0 2em;position:relative;background-color:#f7f6f7;color:#515151;border-top:3px solid #a46497;list-style:none outside;width:auto;word-wrap:break-word;line-height:1.5;text-transform:none;font-size:14px}.user-registration-error::after,.user-registration-error::before,.user-registration-info::after,.user-registration-info::before,.user-registration-message::after,.user-registration-message::before{content:' ';display:table}.user-registration-error::after,.user-registration-info::after,.user-registration-message::after{clear:both}.user-registration-error::before,.user-registration-info::before,.user-registration-message::before{font-family:Dashicons;content:'\f348';display:inline-block;position:absolute;top:1em;left:.9em;font-size:18px;line-height:1.5}.user-registration-error ul,.user-registration-info ul,.user-registration-message ul{margin:0!important;padding:0!important;background-color:transparent!important}.user-registration-error .button,.user-registration-info .button,.user-registration-message .button{float:right}.user-registration-error li,.user-registration-info li,.user-registration-message li{list-style:none outside!important;padding-left:0!important;margin-left:0!important}.user-registration-error .message,.user-registration-info .message,.user-registration-message .message{margin:0;padding:0}.user-registration-message{border-top-color:#8fae1b;background:rgba(143,174,27,.1);color:#596c11}.user-registration-message::before{color:#8fae1b}.user-registration-info{border-top-color:#1e85be}.user-registration-info::before{color:#1e85be}.user-registration-error{border-top-color:#d82223;background:rgba(216,34,35,.1);color:#961818}.user-registration-error::before{content:'\f534';color:#d82223}.ur-frontend-form{margin-bottom:30px;border:1px solid #ddd;padding:20px;box-sizing:border-box}.ur-frontend-form:last-child{margin-bottom:0}.ur-frontend-form.login{margin:0;padding:0;box-shadow:none;background:0 0}.ur-frontend-form *{box-sizing:border-box}.ur-frontend-form form .ur-form-row{display:-webkit-box;display:-ms-flexbox;display:flex}.ur-frontend-form form .ur-form-row:last-child{margin-bottom:0}.ur-frontend-form form .ur-form-row .ur-form-grid{-webkit-box-flex:1;-ms-flex:1;flex:1;padding:0 10px}.ur-frontend-form form .ur-form-row .ur-form-grid:nth-child(1n+2){border-left:0 none}.ur-frontend-form form .ur-form-row .ur-form-grid .ur-field-item{margin-bottom:20px;font-size:13px}.ur-frontend-form form .ur-form-row .ur-form-grid .ur-field-item:last-child{margin-bottom:0}.ur-frontend-form form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form form .ur-form-row .ur-form-grid select,.ur-frontend-form form .ur-form-row .ur-form-grid textarea{display:block;width:100%}.ur-frontend-form form .ur-form-row .ur-form-grid input[type=checkbox],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=radio]{font-size:12px;vertical-align:top}.ur-frontend-form form .ur-form-row .ur-form-grid button:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=email]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=password]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=radio]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=text]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=url]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid select:focus,.ur-frontend-form form .ur-form-row .ur-form-grid textarea:focus{outline:0}.ur-frontend-form form .ur-form-row .ur-form-grid label,.ur-frontend-form form .ur-form-row .ur-form-grid legend{display:block;width:100%;margin-bottom:10px}.ur-frontend-form form .ur-form-row .ur-form-grid label .required,.ur-frontend-form form .ur-form-row .ur-form-grid legend .required{text-decoration:none;border:none;color:red}.ur-frontend-form form .ur-form-row .ur-form-grid textarea{padding:10px;height:100px;resize:none;padding:5px 20px}.ur-frontend-form form button[type=submit],.ur-frontend-form form input[type=submit]{float:right;padding:10px 20px;line-height:1em;text-align:center;word-break:break-word;white-space:normal;border:none;cursor:pointer;-webkit-transition:.9s all ease-out;transition:.9s all ease-out}.ur-frontend-form form button[type=submit]:hover,.ur-frontend-form form input[type=submit]:hover{background:#3498db}.ur-frontend-form form .ur-submit-button{margin-right:10px;margin-bottom:0}.ur-frontend-form label abbr.required{text-decoration:none;border:none;color:red}.ur-frontend-form #ur-submit-message-node{margin:20px 0 0 0!important}.ur-frontend-form #ur-submit-message-node.ur-error{background:rgba(206,0,0,.1)}.ur-frontend-form #ur-submit-message-node.ur-message.message{background:rgba(143,174,27,.2)}#user-registration .user-registration-MyAccount-navigation{overflow:visible}#user-registration .user-registration-MyAccount-navigation ul{margin:0;padding:0;display:-webkit-box;display:-ms-flexbox;display:flex}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link{list-style:none;padding:0;margin:0;display:inline-block;border-left:1px solid #fff;border-top:1px solid #fff;border-right:1px solid #fff;position:relative}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link a{color:#666;padding:10px 15px;display:block;font-weight:600;font-size:15px;font-family:sans-serif;text-decoration:none}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active{background-color:#fcfcfc;border-left:1px solid #ddd;border-top:1px solid #ddd;border-right:1px solid #ddd}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active a{color:#3498db}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active:before{position:absolute;bottom:-1px;left:0;content:" ";width:100%;height:1px;background-color:#fcfcfc}#user-registration .user-registration-MyAccount-content{background:#fcfcfc;padding:15px 20px;border:1px solid #ddd}#user-registration .user-registration-MyAccount-content .ur-form-grid{padding:0;border:0 none;background:0 0}#user-registration .user-registration-MyAccount-content .ur-frontend-form{border:none}.user-registration-password-strength{text-align:center;font-weight:600;padding:3px .5em;font-size:1em}.user-registration-password-strength.strong{background-color:#c1e1b9;border-color:#83c373}.user-registration-password-strength.short{background-color:#f1adad;border-color:#e35b5b}.user-registration-password-strength.bad{background-color:#fbc5a9;border-color:#f78b53}.user-registration-password-strength.good{background-color:#ffe399;border-color:#ffc733}.user-registration-password-hint{margin:.5em 0 0;display:block}.ur-front-spinner{background:url(../images/wpspin_light-2x.gif) no-repeat;background-size:16px 16px;display:block;opacity:.7;width:16px;height:16px;margin-left:-40px;float:left}
|
1 |
+
.ur-registered-item.ui-draggable-dragging{padding:10px 10px;line-height:20px;background:#3498db;color:#fff;text-align:center;margin-bottom:7px;word-break:break-word;white-space:normal;width:200px!important}.ur-registered-item.ui-draggable-dragging span{font-size:14px;line-height:20px;width:auto;height:auto;margin-right:3px}.clear{clear:both}.user-registration-error,.user-registration-info,.user-registration-message{padding:1.5em 2em 1.5em 3.5em;margin:0 0 2em;position:relative;background-color:#f7f6f7;color:#515151;border-top:3px solid #a46497;list-style:none outside;width:auto;word-wrap:break-word;line-height:1.5;text-transform:none;font-size:14px}.user-registration-error::after,.user-registration-error::before,.user-registration-info::after,.user-registration-info::before,.user-registration-message::after,.user-registration-message::before{content:' ';display:table}.user-registration-error::after,.user-registration-info::after,.user-registration-message::after{clear:both}.user-registration-error::before,.user-registration-info::before,.user-registration-message::before{font-family:Dashicons;content:'\f348';display:inline-block;position:absolute;top:1em;left:.9em;font-size:18px;line-height:1.5}.user-registration-error ul,.user-registration-info ul,.user-registration-message ul{margin:0!important;padding:0!important;background-color:transparent!important}.user-registration-error .button,.user-registration-info .button,.user-registration-message .button{float:right}.user-registration-error li,.user-registration-info li,.user-registration-message li{list-style:none outside!important;padding-left:0!important;margin-left:0!important}.user-registration-error .message,.user-registration-info .message,.user-registration-message .message{margin:0;padding:0}.user-registration-message{border-top-color:#8fae1b;background:rgba(143,174,27,.1);color:#596c11}.user-registration-message::before{color:#8fae1b}.user-registration-info{border-top-color:#1e85be}.user-registration-info::before{color:#1e85be}.user-registration-error{border-top-color:#d82223;background:rgba(216,34,35,.1);color:#961818}.user-registration-error::before{content:'\f534';color:#d82223}.ur-frontend-form{margin-bottom:30px;border:1px solid #ddd;padding:20px;box-sizing:border-box}.ur-frontend-form:last-child{margin-bottom:0}.ur-frontend-form.login{margin:0;padding:0;box-shadow:none;background:0 0}.ur-frontend-form *{box-sizing:border-box}.ur-frontend-form form .ur-form-row{display:-webkit-box;display:-ms-flexbox;display:flex}.ur-frontend-form form .ur-form-row:last-child{margin-bottom:0}.ur-frontend-form form .ur-form-row .ur-form-grid{-webkit-box-flex:1;-ms-flex:1;flex:1;padding:0 10px}.ur-frontend-form form .ur-form-row .ur-form-grid:nth-child(1n+2){border-left:0 none}.ur-frontend-form form .ur-form-row .ur-form-grid .ur-field-item{margin-bottom:20px;font-size:13px}.ur-frontend-form form .ur-form-row .ur-form-grid .ur-field-item:last-child{margin-bottom:0}.ur-frontend-form form .ur-form-row .ur-form-grid input[type=date],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=number],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form form .ur-form-row .ur-form-grid select,.ur-frontend-form form .ur-form-row .ur-form-grid textarea{display:block;width:100%;border-radius:0}.ur-frontend-form form .ur-form-row .ur-form-grid input[type=checkbox],.ur-frontend-form form .ur-form-row .ur-form-grid input[type=radio]{font-size:12px;vertical-align:top}.ur-frontend-form form .ur-form-row .ur-form-grid button:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=email]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=password]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=radio]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=text]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid input[type=url]:focus,.ur-frontend-form form .ur-form-row .ur-form-grid select:focus,.ur-frontend-form form .ur-form-row .ur-form-grid textarea:focus{outline:0}.ur-frontend-form form .ur-form-row .ur-form-grid label,.ur-frontend-form form .ur-form-row .ur-form-grid legend{display:block;width:100%;margin-bottom:10px}.ur-frontend-form form .ur-form-row .ur-form-grid label .required,.ur-frontend-form form .ur-form-row .ur-form-grid legend .required{text-decoration:none;border:none;color:red}.ur-frontend-form form .ur-form-row .ur-form-grid textarea{padding:10px;height:100px;resize:none;padding:5px 20px}.ur-frontend-form form button[type=submit],.ur-frontend-form form input[type=submit]{float:right;padding:10px 20px;line-height:1em;text-align:center;word-break:break-word;white-space:normal;border:none;cursor:pointer;-webkit-transition:.9s all ease-out;transition:.9s all ease-out}.ur-frontend-form form button[type=submit]:hover,.ur-frontend-form form input[type=submit]:hover{background:#3498db}.ur-frontend-form form .ur-submit-button{margin-right:10px;margin-bottom:0}.ur-frontend-form label abbr.required{text-decoration:none;border:none;color:red}.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=date],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=number],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid select,.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid textarea{border:none;border-bottom:1px solid #69717a;outline:0;-webkit-transition:all .35s;transition:all .35s;padding:10px 15px;background:#f8f9fa;color:#69717a;height:45px}.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid label,.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid legend{font-weight:600;line-height:2.5;margin-left:5px;color:#69717a}.ur-frontend-form.ur-frontend-form--bordered form .ur-form-row .ur-form-grid textarea{height:100px}.ur-frontend-form.ur-frontend-form--bordered form button[type=submit],.ur-frontend-form.ur-frontend-form--bordered form input[type=submit]{background:#f8f9fa;border:1px solid #69717a;color:#69717a;border-radius:0}.ur-frontend-form.ur-frontend-form--bordered form button[type=submit]:hover,.ur-frontend-form.ur-frontend-form--bordered form input[type=submit]:hover{background:#3498db;color:#fff;border-color:#3498db}.ur-frontend-form.ur-frontend-form--flat{background:#f7f7f7;border:none transparent}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid .form-row,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid .ur-field-item{margin-bottom:0}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=date],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=email],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=number],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=password],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=text],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=url],.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid select,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid textarea{border:none;outline:0;padding:10px 15px;background:#fff;color:#69717a;margin-bottom:10px;height:45px}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=date]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=email]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=number]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=password]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=text]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid input[type=url]:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid select:focus,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid textarea:focus{box-shadow:0 0 10px 5px rgba(0,0,0,.05)}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid select{margin-bottom:10px}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid label,.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid legend{font-weight:600;line-height:2.5;color:#69717a}.ur-frontend-form.ur-frontend-form--flat form .ur-form-row .ur-form-grid textarea{height:100px}.ur-frontend-form #ur-submit-message-node{margin:20px 0 0 0!important}.ur-frontend-form #ur-submit-message-node.ur-error{background:rgba(206,0,0,.1)}.ur-frontend-form #ur-submit-message-node.ur-message.message{background:rgba(143,174,27,.2)}#user-registration *,#user-registration.user-registration{box-sizing:border-box}#user-registration .user-registration-MyAccount-navigation{overflow:visible;margin:0}#user-registration .user-registration-MyAccount-navigation ul{margin:0;padding:0;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link{list-style:none;padding:0;margin:0;display:inline-block;border-left:1px solid #fff;border-top:1px solid #fff;border-right:1px solid #fff;position:relative;box-shadow:0 0 0 transparent}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link a{color:#666;padding:10px 15px;display:block;font-weight:600;font-size:15px;font-family:sans-serif;text-decoration:none;box-shadow:0 0 0 transparent}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active{background-color:#fcfcfc;border-left:1px solid #ddd;border-top:1px solid #ddd;border-right:1px solid #ddd}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active a{color:#3498db}#user-registration .user-registration-MyAccount-navigation ul .user-registration-MyAccount-navigation-link.is-active:before{position:absolute;bottom:-1px;left:0;content:" ";width:100%;height:1px;background-color:#fcfcfc}#user-registration .user-registration-MyAccount-content{background:#fcfcfc;padding:15px 20px;border:1px solid #ddd}#user-registration .user-registration-MyAccount-content .ur-form-grid{padding:0;border:0 none;background:0 0}#user-registration .user-registration-MyAccount-content .ur-frontend-form{border:none}.user-registration-password-strength{text-align:center;font-weight:600;padding:3px .5em;font-size:1em}.user-registration-password-strength.strong{background-color:#c1e1b9;border-color:#83c373}.user-registration-password-strength.short{background-color:#f1adad;border-color:#e35b5b}.user-registration-password-strength.bad{background-color:#fbc5a9;border-color:#f78b53}.user-registration-password-strength.good{background-color:#ffe399;border-color:#ffc733}.user-registration-password-hint{margin:.5em 0 0;display:block}.ur-front-spinner{background:url(../images/wpspin_light-2x.gif) no-repeat;background-size:16px 16px;display:block;opacity:.7;width:16px;height:16px;margin-left:-40px;float:left}
|
assets/css/user-registration.scss
CHANGED
@@ -1,27 +1,27 @@
|
|
1 |
/**
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
|
7 |
/**
|
8 |
-
|
9 |
-
|
10 |
@import "colors";
|
11 |
@import "button";
|
12 |
@import "mixins";
|
13 |
@import "variables";
|
14 |
|
15 |
/**
|
16 |
-
|
17 |
-
|
18 |
.clear {
|
19 |
clear: both;
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
-
|
24 |
-
|
25 |
.user-registration-message,
|
26 |
.user-registration-error,
|
27 |
.user-registration-info {
|
@@ -38,7 +38,7 @@
|
|
38 |
line-height: 1.5;
|
39 |
text-transform: none;
|
40 |
font-size: 14px;
|
41 |
-
|
42 |
&::before {
|
43 |
font-family: 'Dashicons';
|
44 |
content: '\f348';
|
@@ -49,17 +49,17 @@
|
|
49 |
font-size: 18px;
|
50 |
line-height: 1.5;
|
51 |
}
|
52 |
-
|
53 |
ul {
|
54 |
margin: 0 !important;
|
55 |
padding: 0 !important;
|
56 |
background-color: transparent !important;
|
57 |
}
|
58 |
-
|
59 |
.button {
|
60 |
float: right;
|
61 |
}
|
62 |
-
|
63 |
li {
|
64 |
list-style: none outside !important; // Required for default theme compatibility
|
65 |
padding-left: 0 !important; // Required for default theme compatibility
|
@@ -74,7 +74,7 @@
|
|
74 |
border-top-color: #8fae1b;
|
75 |
background: rgba( #8fae1b, 0.1 );
|
76 |
color: darken( #8fae1b, 15%);
|
77 |
-
|
78 |
&::before {
|
79 |
color: #8fae1b;
|
80 |
}
|
@@ -82,7 +82,7 @@
|
|
82 |
|
83 |
.user-registration-info {
|
84 |
border-top-color: #1e85be;
|
85 |
-
|
86 |
&::before {
|
87 |
color: #1e85be;
|
88 |
}
|
@@ -92,7 +92,7 @@
|
|
92 |
border-top-color: $color_danger;
|
93 |
background: rgba( $color_danger, 0.1 );
|
94 |
color: darken( $color_danger, 15%);
|
95 |
-
|
96 |
&::before {
|
97 |
content: '\f534';
|
98 |
color: $color_danger;
|
@@ -104,36 +104,38 @@
|
|
104 |
border: 1px solid $color_gray_six;
|
105 |
padding: 20px;
|
106 |
box-sizing: border-box;
|
107 |
-
|
108 |
&:last-child {
|
109 |
margin-bottom: 0;
|
110 |
}
|
111 |
-
|
112 |
&.login {
|
113 |
margin: 0;
|
114 |
padding: 0;
|
115 |
box-shadow: none;
|
116 |
background: none;
|
117 |
}
|
118 |
-
|
119 |
* {
|
120 |
box-sizing: border-box;
|
121 |
}
|
122 |
-
|
123 |
form {
|
124 |
.ur-form-row {
|
125 |
display: flex;
|
126 |
-
|
127 |
&:last-child {
|
128 |
margin-bottom: 0;
|
129 |
}
|
|
|
130 |
.ur-form-grid {
|
131 |
flex: 1;
|
132 |
padding: 0 10px;
|
133 |
-
|
134 |
&:nth-child(1n+2) {
|
135 |
border-left: 0 none;
|
136 |
}
|
|
|
137 |
.ur-field-item {
|
138 |
margin-bottom: 20px;
|
139 |
font-size: 13px;
|
@@ -141,20 +143,26 @@
|
|
141 |
margin-bottom: 0;
|
142 |
}
|
143 |
}
|
|
|
144 |
input[type="text"],
|
145 |
input[type="email"],
|
146 |
input[type="url"],
|
147 |
input[type="password"],
|
|
|
|
|
148 |
textarea,
|
149 |
select {
|
150 |
display: block;
|
151 |
width: 100%;
|
|
|
152 |
}
|
|
|
153 |
input[type="checkbox"],
|
154 |
input[type="radio"]{
|
155 |
font-size: 12px;
|
156 |
vertical-align: top;
|
157 |
}
|
|
|
158 |
input[type="radio"]:focus,
|
159 |
input[type="text"]:focus,
|
160 |
input[type="email"]:focus,
|
@@ -165,19 +173,21 @@
|
|
165 |
button:focus {
|
166 |
outline: 0;
|
167 |
}
|
|
|
168 |
legend,
|
169 |
label {
|
170 |
display: block;
|
171 |
width: 100%;
|
172 |
margin-bottom: 10px;
|
173 |
-
|
174 |
.required {
|
175 |
-
|
176 |
text-decoration: none;
|
177 |
border: none;
|
178 |
color: #ff0000;
|
179 |
}
|
180 |
}
|
|
|
181 |
textarea {
|
182 |
padding: 10px;
|
183 |
height: 100px;
|
@@ -186,12 +196,13 @@
|
|
186 |
}
|
187 |
}
|
188 |
}
|
|
|
189 |
input[type="submit"],
|
190 |
button[type="submit"] {
|
191 |
float: right;
|
192 |
padding: 10px 20px;
|
193 |
line-height: 1em;
|
194 |
-
|
195 |
word-break: break-word;
|
196 |
white-space: normal;
|
197 |
border: none;
|
@@ -203,26 +214,131 @@
|
|
203 |
background: $primary_color;
|
204 |
}
|
205 |
}
|
206 |
-
|
207 |
.ur-submit-button {
|
208 |
margin-right: 10px;
|
209 |
margin-bottom: 0;
|
210 |
}
|
211 |
}
|
|
|
212 |
label {
|
213 |
abbr.required {
|
214 |
-
|
215 |
text-decoration: none;
|
216 |
border: none;
|
217 |
color: #ff0000;
|
218 |
}
|
219 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
220 |
#ur-submit-message-node{
|
221 |
-
|
222 |
margin : 20px 0 0 0!important;
|
223 |
-
|
224 |
background: rgba(206, 0, 0, 0.1);
|
225 |
}
|
|
|
226 |
&.ur-message.message{
|
227 |
background: rgba(143, 174, 27,0.2);
|
228 |
}
|
@@ -230,13 +346,21 @@
|
|
230 |
}
|
231 |
|
232 |
#user-registration {
|
|
|
|
|
|
|
|
|
233 |
.user-registration-MyAccount-navigation {
|
234 |
overflow: visible;
|
|
|
|
|
235 |
ul {
|
236 |
margin: 0;
|
237 |
padding: 0;
|
238 |
display: -webkit-flex;
|
239 |
display:flex;
|
|
|
|
|
240 |
.user-registration-MyAccount-navigation-link {
|
241 |
list-style: none;
|
242 |
padding: 0;
|
@@ -246,7 +370,8 @@
|
|
246 |
border-top: 1px solid $white;
|
247 |
border-right: 1px solid $white;
|
248 |
position:relative;
|
249 |
-
|
|
|
250 |
a {
|
251 |
color: $color_gray_two;
|
252 |
padding: 10px 15px;
|
@@ -255,8 +380,9 @@
|
|
255 |
font-size: 15px;
|
256 |
font-family: 'sans-serif';
|
257 |
text-decoration: none;
|
|
|
258 |
}
|
259 |
-
|
260 |
&.is-active {
|
261 |
background-color: $color_gray_eleven;
|
262 |
border-left: 1px solid $color_gray_six;
|
@@ -265,6 +391,7 @@
|
|
265 |
a {
|
266 |
color: $primary_color;
|
267 |
}
|
|
|
268 |
&:before {
|
269 |
position: absolute;
|
270 |
bottom: -1px;
|
@@ -278,17 +405,18 @@
|
|
278 |
}
|
279 |
}
|
280 |
}
|
|
|
281 |
.user-registration-MyAccount-content {
|
282 |
background: $color_gray_eleven;
|
283 |
padding: 15px 20px;
|
284 |
border: 1px solid $color_gray_six;
|
285 |
-
|
286 |
.ur-form-grid{
|
287 |
padding: 0;
|
288 |
border: 0 none;
|
289 |
background: transparent;
|
290 |
}
|
291 |
-
|
292 |
.ur-frontend-form {
|
293 |
border: none;
|
294 |
}
|
@@ -296,29 +424,29 @@
|
|
296 |
}
|
297 |
|
298 |
/**
|
299 |
-
|
300 |
-
|
301 |
.user-registration-password-strength {
|
302 |
text-align: center;
|
303 |
font-weight: 600;
|
304 |
padding: 3px 0.5em;
|
305 |
font-size: 1em;
|
306 |
-
|
307 |
&.strong {
|
308 |
background-color: #c1e1b9;
|
309 |
border-color: #83c373;
|
310 |
}
|
311 |
-
|
312 |
&.short {
|
313 |
background-color: #f1adad;
|
314 |
border-color: #e35b5b;
|
315 |
}
|
316 |
-
|
317 |
&.bad {
|
318 |
background-color: #fbc5a9;
|
319 |
border-color: #f78b53;
|
320 |
}
|
321 |
-
|
322 |
&.good {
|
323 |
background-color: #ffe399;
|
324 |
border-color: #ffc733;
|
1 |
/**
|
2 |
+
* user-registration.scss
|
3 |
+
* Governs the general look and feel of User Registration sections of stores using themes that do not
|
4 |
+
* integrate with User Registration specifically.
|
5 |
+
*/
|
6 |
|
7 |
/**
|
8 |
+
* Imports
|
9 |
+
*/
|
10 |
@import "colors";
|
11 |
@import "button";
|
12 |
@import "mixins";
|
13 |
@import "variables";
|
14 |
|
15 |
/**
|
16 |
+
* Utility classes
|
17 |
+
*/
|
18 |
.clear {
|
19 |
clear: both;
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
+
* Main User Registration styles
|
24 |
+
*/
|
25 |
.user-registration-message,
|
26 |
.user-registration-error,
|
27 |
.user-registration-info {
|
38 |
line-height: 1.5;
|
39 |
text-transform: none;
|
40 |
font-size: 14px;
|
41 |
+
|
42 |
&::before {
|
43 |
font-family: 'Dashicons';
|
44 |
content: '\f348';
|
49 |
font-size: 18px;
|
50 |
line-height: 1.5;
|
51 |
}
|
52 |
+
|
53 |
ul {
|
54 |
margin: 0 !important;
|
55 |
padding: 0 !important;
|
56 |
background-color: transparent !important;
|
57 |
}
|
58 |
+
|
59 |
.button {
|
60 |
float: right;
|
61 |
}
|
62 |
+
|
63 |
li {
|
64 |
list-style: none outside !important; // Required for default theme compatibility
|
65 |
padding-left: 0 !important; // Required for default theme compatibility
|
74 |
border-top-color: #8fae1b;
|
75 |
background: rgba( #8fae1b, 0.1 );
|
76 |
color: darken( #8fae1b, 15%);
|
77 |
+
|
78 |
&::before {
|
79 |
color: #8fae1b;
|
80 |
}
|
82 |
|
83 |
.user-registration-info {
|
84 |
border-top-color: #1e85be;
|
85 |
+
|
86 |
&::before {
|
87 |
color: #1e85be;
|
88 |
}
|
92 |
border-top-color: $color_danger;
|
93 |
background: rgba( $color_danger, 0.1 );
|
94 |
color: darken( $color_danger, 15%);
|
95 |
+
|
96 |
&::before {
|
97 |
content: '\f534';
|
98 |
color: $color_danger;
|
104 |
border: 1px solid $color_gray_six;
|
105 |
padding: 20px;
|
106 |
box-sizing: border-box;
|
107 |
+
|
108 |
&:last-child {
|
109 |
margin-bottom: 0;
|
110 |
}
|
111 |
+
|
112 |
&.login {
|
113 |
margin: 0;
|
114 |
padding: 0;
|
115 |
box-shadow: none;
|
116 |
background: none;
|
117 |
}
|
118 |
+
|
119 |
* {
|
120 |
box-sizing: border-box;
|
121 |
}
|
122 |
+
|
123 |
form {
|
124 |
.ur-form-row {
|
125 |
display: flex;
|
126 |
+
|
127 |
&:last-child {
|
128 |
margin-bottom: 0;
|
129 |
}
|
130 |
+
|
131 |
.ur-form-grid {
|
132 |
flex: 1;
|
133 |
padding: 0 10px;
|
134 |
+
|
135 |
&:nth-child(1n+2) {
|
136 |
border-left: 0 none;
|
137 |
}
|
138 |
+
|
139 |
.ur-field-item {
|
140 |
margin-bottom: 20px;
|
141 |
font-size: 13px;
|
143 |
margin-bottom: 0;
|
144 |
}
|
145 |
}
|
146 |
+
|
147 |
input[type="text"],
|
148 |
input[type="email"],
|
149 |
input[type="url"],
|
150 |
input[type="password"],
|
151 |
+
input[type="date"],
|
152 |
+
input[type="number"],
|
153 |
textarea,
|
154 |
select {
|
155 |
display: block;
|
156 |
width: 100%;
|
157 |
+
border-radius: 0;
|
158 |
}
|
159 |
+
|
160 |
input[type="checkbox"],
|
161 |
input[type="radio"]{
|
162 |
font-size: 12px;
|
163 |
vertical-align: top;
|
164 |
}
|
165 |
+
|
166 |
input[type="radio"]:focus,
|
167 |
input[type="text"]:focus,
|
168 |
input[type="email"]:focus,
|
173 |
button:focus {
|
174 |
outline: 0;
|
175 |
}
|
176 |
+
|
177 |
legend,
|
178 |
label {
|
179 |
display: block;
|
180 |
width: 100%;
|
181 |
margin-bottom: 10px;
|
182 |
+
|
183 |
.required {
|
184 |
+
|
185 |
text-decoration: none;
|
186 |
border: none;
|
187 |
color: #ff0000;
|
188 |
}
|
189 |
}
|
190 |
+
|
191 |
textarea {
|
192 |
padding: 10px;
|
193 |
height: 100px;
|
196 |
}
|
197 |
}
|
198 |
}
|
199 |
+
|
200 |
input[type="submit"],
|
201 |
button[type="submit"] {
|
202 |
float: right;
|
203 |
padding: 10px 20px;
|
204 |
line-height: 1em;
|
205 |
+
text-align: center;
|
206 |
word-break: break-word;
|
207 |
white-space: normal;
|
208 |
border: none;
|
214 |
background: $primary_color;
|
215 |
}
|
216 |
}
|
217 |
+
|
218 |
.ur-submit-button {
|
219 |
margin-right: 10px;
|
220 |
margin-bottom: 0;
|
221 |
}
|
222 |
}
|
223 |
+
|
224 |
label {
|
225 |
abbr.required {
|
226 |
+
|
227 |
text-decoration: none;
|
228 |
border: none;
|
229 |
color: #ff0000;
|
230 |
}
|
231 |
}
|
232 |
+
|
233 |
+
&.ur-frontend-form--bordered {
|
234 |
+
form {
|
235 |
+
.ur-form-row {
|
236 |
+
.ur-form-grid {
|
237 |
+
input[type="text"],
|
238 |
+
input[type="email"],
|
239 |
+
input[type="url"],
|
240 |
+
input[type="password"],
|
241 |
+
input[type="date"],
|
242 |
+
input[type="number"],
|
243 |
+
textarea,
|
244 |
+
select {
|
245 |
+
border: none;
|
246 |
+
border-bottom: 1px solid $label_color;
|
247 |
+
outline: none;
|
248 |
+
transition: all 0.35s;
|
249 |
+
padding: 10px 15px;
|
250 |
+
background: $input_background_color;
|
251 |
+
color: $label_color;
|
252 |
+
height: 45px;
|
253 |
+
}
|
254 |
+
|
255 |
+
legend,
|
256 |
+
label {
|
257 |
+
font-weight: 600;
|
258 |
+
line-height: 2.5;
|
259 |
+
margin-left: 5px;
|
260 |
+
color: $label_color;
|
261 |
+
}
|
262 |
+
|
263 |
+
textarea {
|
264 |
+
height: 100px;
|
265 |
+
}
|
266 |
+
}
|
267 |
+
}
|
268 |
+
input[type="submit"],
|
269 |
+
button[type="submit"] {
|
270 |
+
background: $input_background_color;
|
271 |
+
border: 1px solid $label_color;
|
272 |
+
color: $label_color;
|
273 |
+
border-radius: 0;
|
274 |
+
|
275 |
+
&:hover {
|
276 |
+
background: $primary_color;
|
277 |
+
color: $white;
|
278 |
+
border-color: $primary_color;
|
279 |
+
}
|
280 |
+
}
|
281 |
+
}
|
282 |
+
}
|
283 |
+
|
284 |
+
&.ur-frontend-form--flat {
|
285 |
+
background: $color_sortable_background;
|
286 |
+
border: none transparent;
|
287 |
+
|
288 |
+
form {
|
289 |
+
.ur-form-row {
|
290 |
+
.ur-form-grid {
|
291 |
+
.ur-field-item,
|
292 |
+
.form-row {
|
293 |
+
margin-bottom: 0;
|
294 |
+
}
|
295 |
+
|
296 |
+
input[type="text"],
|
297 |
+
input[type="email"],
|
298 |
+
input[type="url"],
|
299 |
+
input[type="password"],
|
300 |
+
input[type="date"],
|
301 |
+
input[type="number"],
|
302 |
+
textarea,
|
303 |
+
select {
|
304 |
+
border: none;
|
305 |
+
outline: none;
|
306 |
+
padding: 10px 15px;
|
307 |
+
background: $white;
|
308 |
+
color: $label_color;
|
309 |
+
margin-bottom: 10px;
|
310 |
+
height: 45px;
|
311 |
+
&:focus {
|
312 |
+
box-shadow: 0 0 10px 5px rgba(0,0,0,.05);
|
313 |
+
}
|
314 |
+
}
|
315 |
+
|
316 |
+
select {
|
317 |
+
margin-bottom: 10px;
|
318 |
+
}
|
319 |
+
|
320 |
+
legend,
|
321 |
+
label {
|
322 |
+
font-weight: 600;
|
323 |
+
line-height: 2.5;
|
324 |
+
color: $label_color;
|
325 |
+
}
|
326 |
+
|
327 |
+
textarea {
|
328 |
+
height: 100px;
|
329 |
+
}
|
330 |
+
}
|
331 |
+
}
|
332 |
+
}
|
333 |
+
}
|
334 |
+
|
335 |
#ur-submit-message-node{
|
336 |
+
|
337 |
margin : 20px 0 0 0!important;
|
338 |
+
&.ur-error{
|
339 |
background: rgba(206, 0, 0, 0.1);
|
340 |
}
|
341 |
+
|
342 |
&.ur-message.message{
|
343 |
background: rgba(143, 174, 27,0.2);
|
344 |
}
|
346 |
}
|
347 |
|
348 |
#user-registration {
|
349 |
+
&.user-registration,
|
350 |
+
*{
|
351 |
+
box-sizing: border-box;
|
352 |
+
}
|
353 |
.user-registration-MyAccount-navigation {
|
354 |
overflow: visible;
|
355 |
+
margin: 0;
|
356 |
+
|
357 |
ul {
|
358 |
margin: 0;
|
359 |
padding: 0;
|
360 |
display: -webkit-flex;
|
361 |
display:flex;
|
362 |
+
flex-wrap: wrap;
|
363 |
+
|
364 |
.user-registration-MyAccount-navigation-link {
|
365 |
list-style: none;
|
366 |
padding: 0;
|
370 |
border-top: 1px solid $white;
|
371 |
border-right: 1px solid $white;
|
372 |
position:relative;
|
373 |
+
box-shadow: 0 0 0 rgba(0,0,0,0);
|
374 |
+
|
375 |
a {
|
376 |
color: $color_gray_two;
|
377 |
padding: 10px 15px;
|
380 |
font-size: 15px;
|
381 |
font-family: 'sans-serif';
|
382 |
text-decoration: none;
|
383 |
+
box-shadow: 0 0 0 rgba(0,0,0,0);
|
384 |
}
|
385 |
+
|
386 |
&.is-active {
|
387 |
background-color: $color_gray_eleven;
|
388 |
border-left: 1px solid $color_gray_six;
|
391 |
a {
|
392 |
color: $primary_color;
|
393 |
}
|
394 |
+
|
395 |
&:before {
|
396 |
position: absolute;
|
397 |
bottom: -1px;
|
405 |
}
|
406 |
}
|
407 |
}
|
408 |
+
|
409 |
.user-registration-MyAccount-content {
|
410 |
background: $color_gray_eleven;
|
411 |
padding: 15px 20px;
|
412 |
border: 1px solid $color_gray_six;
|
413 |
+
|
414 |
.ur-form-grid{
|
415 |
padding: 0;
|
416 |
border: 0 none;
|
417 |
background: transparent;
|
418 |
}
|
419 |
+
|
420 |
.ur-frontend-form {
|
421 |
border: none;
|
422 |
}
|
424 |
}
|
425 |
|
426 |
/**
|
427 |
+
* Password strength meter
|
428 |
+
*/
|
429 |
.user-registration-password-strength {
|
430 |
text-align: center;
|
431 |
font-weight: 600;
|
432 |
padding: 3px 0.5em;
|
433 |
font-size: 1em;
|
434 |
+
|
435 |
&.strong {
|
436 |
background-color: #c1e1b9;
|
437 |
border-color: #83c373;
|
438 |
}
|
439 |
+
|
440 |
&.short {
|
441 |
background-color: #f1adad;
|
442 |
border-color: #e35b5b;
|
443 |
}
|
444 |
+
|
445 |
&.bad {
|
446 |
background-color: #fbc5a9;
|
447 |
border-color: #f78b53;
|
448 |
}
|
449 |
+
|
450 |
&.good {
|
451 |
background-color: #ffe399;
|
452 |
border-color: #ffc733;
|
assets/js/admin/enhanced-select.js
CHANGED
@@ -59,7 +59,7 @@ jQuery(function ( $ ) {
|
|
59 |
placeholder: $(this).data('placeholder')
|
60 |
}, getEnhancedSelectFormatString());
|
61 |
|
62 |
-
$(this).
|
63 |
});
|
64 |
|
65 |
$(':input.ur-enhanced-select-nostd').filter(':not(.enhanced)').each(function () {
|
@@ -69,7 +69,7 @@ jQuery(function ( $ ) {
|
|
69 |
placeholder: $(this).data('placeholder')
|
70 |
}, getEnhancedSelectFormatString());
|
71 |
|
72 |
-
$(this).
|
73 |
});
|
74 |
})
|
75 |
|
59 |
placeholder: $(this).data('placeholder')
|
60 |
}, getEnhancedSelectFormatString());
|
61 |
|
62 |
+
$( this ).selectWoo( select2_args ).addClass('enhanced');
|
63 |
});
|
64 |
|
65 |
$(':input.ur-enhanced-select-nostd').filter(':not(.enhanced)').each(function () {
|
69 |
placeholder: $(this).data('placeholder')
|
70 |
}, getEnhancedSelectFormatString());
|
71 |
|
72 |
+
$(this).selectWoo(select2_args).addClass('enhanced');
|
73 |
});
|
74 |
})
|
75 |
|
assets/js/admin/enhanced-select.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(function(e){function n(){return{language:{errorLoading:function(){return ur_enhanced_select_params.i18n_searching},inputTooLong:function(e){var n=e.input.length-e.maximum;return 1===n?ur_enhanced_select_params.i18n_input_too_long_1:ur_enhanced_select_params.i18n_input_too_long_n.replace("%qty%",n)},inputTooShort:function(e){var n=e.minimum-e.input.length;return 1===n?ur_enhanced_select_params.i18n_input_too_short_1:ur_enhanced_select_params.i18n_input_too_short_n.replace("%qty%",n)},loadingMore:function(){return ur_enhanced_select_params.i18n_load_more},maximumSelected:function(e){return 1===e.maximum?ur_enhanced_select_params.i18n_selection_too_long_1:ur_enhanced_select_params.i18n_selection_too_long_n.replace("%qty%",e.maximum)},noResults:function(){return ur_enhanced_select_params.i18n_no_matches},searching:function(){return ur_enhanced_select_params.i18n_searching}}}}try{e(document.body).on("ur-enhanced-select-init",function(){e(":input.ur-enhanced-select").filter(":not(.enhanced)").each(function(){var t=e.extend({minimumResultsForSearch:10,allowClear:!!e(this).data("allow_clear"),placeholder:e(this).data("placeholder")},n());e(this).
|
1 |
+
jQuery(function(e){function n(){return{language:{errorLoading:function(){return ur_enhanced_select_params.i18n_searching},inputTooLong:function(e){var n=e.input.length-e.maximum;return 1===n?ur_enhanced_select_params.i18n_input_too_long_1:ur_enhanced_select_params.i18n_input_too_long_n.replace("%qty%",n)},inputTooShort:function(e){var n=e.minimum-e.input.length;return 1===n?ur_enhanced_select_params.i18n_input_too_short_1:ur_enhanced_select_params.i18n_input_too_short_n.replace("%qty%",n)},loadingMore:function(){return ur_enhanced_select_params.i18n_load_more},maximumSelected:function(e){return 1===e.maximum?ur_enhanced_select_params.i18n_selection_too_long_1:ur_enhanced_select_params.i18n_selection_too_long_n.replace("%qty%",e.maximum)},noResults:function(){return ur_enhanced_select_params.i18n_no_matches},searching:function(){return ur_enhanced_select_params.i18n_searching}}}}try{e(document.body).on("ur-enhanced-select-init",function(){e(":input.ur-enhanced-select").filter(":not(.enhanced)").each(function(){var t=e.extend({minimumResultsForSearch:10,allowClear:!!e(this).data("allow_clear"),placeholder:e(this).data("placeholder")},n());e(this).selectWoo(t).addClass("enhanced")}),e(":input.ur-enhanced-select-nostd").filter(":not(.enhanced)").each(function(){var t=e.extend({minimumResultsForSearch:10,allowClear:!0,placeholder:e(this).data("placeholder")},n());e(this).selectWoo(t).addClass("enhanced")})}).trigger("ur-enhanced-select-init"),e("html").on("click",function(n){this===n.target&&e(".ur-enhanced-select, :input.ur-enhanced-select").filter(".select2-hidden-accessible").select2("close")})}catch(t){window.console.log(t)}});
|
assets/js/frontend/password-strength-meter.js
CHANGED
@@ -50,7 +50,7 @@ jQuery(function ( $ ) {
|
|
50 |
meter.remove();
|
51 |
$(document.body).trigger('ur-password-strength-removed');
|
52 |
} else if ( 0 === meter.length ) {
|
53 |
-
field.after('<div class="user-registration-password-strength" aria-live="polite"></div>');
|
54 |
$(document.body).trigger('ur-password-strength-added');
|
55 |
}
|
56 |
},
|
@@ -74,6 +74,7 @@ jQuery(function ( $ ) {
|
|
74 |
if ( strength < ur_password_strength_meter_params.min_password_strength ) {
|
75 |
error = ' - ' + ur_password_strength_meter_params.i18n_password_error;
|
76 |
}
|
|
|
77 |
|
78 |
switch ( strength ) {
|
79 |
case 0:
|
50 |
meter.remove();
|
51 |
$(document.body).trigger('ur-password-strength-removed');
|
52 |
} else if ( 0 === meter.length ) {
|
53 |
+
field.after('<div class="user-registration-password-strength" aria-live="polite" data-min-strength="' + ur_password_strength_meter_params.min_password_strength + '"></div>');
|
54 |
$(document.body).trigger('ur-password-strength-added');
|
55 |
}
|
56 |
},
|
74 |
if ( strength < ur_password_strength_meter_params.min_password_strength ) {
|
75 |
error = ' - ' + ur_password_strength_meter_params.i18n_password_error;
|
76 |
}
|
77 |
+
wrapper.find('.user-registration-password-strength').attr('data-current-strength', strength);
|
78 |
|
79 |
switch ( strength ) {
|
80 |
case 0:
|
assets/js/frontend/password-strength-meter.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(function(
|
1 |
+
jQuery(function(r){var s=ur_password_strength_meter_params.pwsL10n,t={init:function(){var s=this;r(document.body).on("keyup change",'input[name="user_confirm_password"], input[name="password_2"]',function(){"no"!==r(this).closest("form").attr("data-enable-strength-password")&&s.strengthMeter(r(this))})},strengthMeter:function(s){var e=s.closest("form"),a=r(s,e);t.includeMeter(e,a),t.checkPasswordStrength(e,a)},includeMeter:function(s,t){var e=s.find(".user-registration-password-strength");""===t.val()?(e.remove(),r(document.body).trigger("ur-password-strength-removed")):0===e.length&&(t.after('<div class="user-registration-password-strength" aria-live="polite" data-min-strength="'+ur_password_strength_meter_params.min_password_strength+'"></div>'),r(document.body).trigger("ur-password-strength-added"))},checkPasswordStrength:function(r,t){var e=r.find(".user-registration-password-strength"),a=r.find(".user-registration-password-hint"),n='<small class="user-registration-password-hint">'+ur_password_strength_meter_params.i18n_password_hint+"</small>",o=wp.passwordStrength.meter(t.val(),wp.passwordStrength.userInputBlacklist()),d="";switch(e.removeClass("short bad good strong"),a.remove(),o<ur_password_strength_meter_params.min_password_strength&&(d=" - "+ur_password_strength_meter_params.i18n_password_error),r.find(".user-registration-password-strength").attr("data-current-strength",o),o){case 0:e.addClass("short").html(s.shortpw+d),e.after(n);break;case 1:case 2:e.addClass("bad").html(s.bad+d),e.after(n);break;case 3:e.addClass("good").html(s.good+d);break;case 4:e.addClass("strong").html(s.strong+d);break;case 5:e.addClass("short").html(s.mismatch)}return o}};t.init()});
|
assets/js/frontend/user-registration.js
CHANGED
@@ -23,17 +23,24 @@
|
|
23 |
form_data.push(single_data);
|
24 |
});
|
25 |
$(document).trigger("user_registration_frontend_form_data_filter", [ form_data ]);
|
26 |
-
|
27 |
return form_data;
|
28 |
},
|
29 |
get_fieldwise_data: function ( field ) {
|
30 |
var formwise_data = {};
|
31 |
var node_type = field.get(0).tagName.toLowerCase();
|
|
|
32 |
formwise_data.value = '';
|
33 |
switch ( node_type ) {
|
34 |
case 'input':
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
|
36 |
-
|
37 |
break;
|
38 |
case 'select':
|
39 |
formwise_data.value = field.val();
|
@@ -78,6 +85,14 @@
|
|
78 |
},
|
79 |
form_submit_event: function () {
|
80 |
$this.on('submit', function ( event ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
event.preventDefault();
|
82 |
var form_data;
|
83 |
try {
|
@@ -145,12 +160,22 @@
|
|
145 |
});
|
146 |
}
|
147 |
if ( type === 'message' ) {
|
|
|
148 |
message.append('<li>' + ursL10n.user_successfully_saved + '</li>');
|
149 |
$this[ 0 ].reset();
|
|
|
150 |
$('.user-registration-password-hint').remove();
|
151 |
$('.user-registration-password-strength').remove();
|
152 |
-
|
153 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
154 |
}
|
155 |
|
156 |
}
|
23 |
form_data.push(single_data);
|
24 |
});
|
25 |
$(document).trigger("user_registration_frontend_form_data_filter", [ form_data ]);
|
|
|
26 |
return form_data;
|
27 |
},
|
28 |
get_fieldwise_data: function ( field ) {
|
29 |
var formwise_data = {};
|
30 |
var node_type = field.get(0).tagName.toLowerCase();
|
31 |
+
var field_type = 'undefined' !== field.attr('type') ? field.attr('type') : 'null';
|
32 |
formwise_data.value = '';
|
33 |
switch ( node_type ) {
|
34 |
case 'input':
|
35 |
+
switch ( field_type ) {
|
36 |
+
case 'checkbox':
|
37 |
+
case 'radio':
|
38 |
+
formwise_data.value = field.prop('checked') ? field.val() : 0;
|
39 |
+
break;
|
40 |
+
default:
|
41 |
+
formwise_data.value = field.val();
|
42 |
|
43 |
+
}
|
44 |
break;
|
45 |
case 'select':
|
46 |
formwise_data.value = field.val();
|
85 |
},
|
86 |
form_submit_event: function () {
|
87 |
$this.on('submit', function ( event ) {
|
88 |
+
if ( $this.find('.user-registration-password-strength').length > 0 ) {
|
89 |
+
|
90 |
+
var current_strength = $this.find('.user-registration-password-strength').attr('data-current-strength');
|
91 |
+
var min_strength = $this.find('.user-registration-password-strength').attr('data-min-strength');
|
92 |
+
if ( parseInt(current_strength, 0) < parseInt(min_strength, 0) ) {
|
93 |
+
return false;
|
94 |
+
}
|
95 |
+
}
|
96 |
event.preventDefault();
|
97 |
var form_data;
|
98 |
try {
|
160 |
});
|
161 |
}
|
162 |
if ( type === 'message' ) {
|
163 |
+
|
164 |
message.append('<li>' + ursL10n.user_successfully_saved + '</li>');
|
165 |
$this[ 0 ].reset();
|
166 |
+
|
167 |
$('.user-registration-password-hint').remove();
|
168 |
$('.user-registration-password-strength').remove();
|
169 |
+
|
170 |
+
if ( user_registration_params.redirect_url !== '' ) {
|
171 |
+
window.setTimeout(function () {
|
172 |
+
window.location = user_registration_params.redirect_url;
|
173 |
+
}, 1000);
|
174 |
+
} else {
|
175 |
+
|
176 |
+
if ( typeof response.data.auto_login !== 'undefined' && response.data.auto_login ) {
|
177 |
+
location.reload();
|
178 |
+
}
|
179 |
}
|
180 |
|
181 |
}
|
assets/js/frontend/user-registration.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){var r=user_registration_params.ursL10n;e.fn.ur_form_submission=function(){return this.each(function(){var t=e(this),a=[],n=user_registration_params.form_required_fields,s={init:function(){},get_form_data:function(){var r=this,a=[],n=t.closest(".ur-frontend-form").find(".ur-form-grid").find(".ur-frontend-field");return e.each(n,function(){var t=r.get_fieldwise_data(e(this));a.push(t)}),e(document).trigger("user_registration_frontend_form_data_filter",[a]),a},get_fieldwise_data:function(r){var t={},s=r.get(0).tagName.toLowerCase();switch(t.value="",s){case"input":case"select":case"textarea":t.value=r.val()}return e(document).trigger("user_registration_frontend_form_data_render",[r,t]),t.field_type=r.attr("id").replace("ur-input-type-",""),r.attr("data-label")!==undefined?t.label=r.attr("data-label"):"label"===r.prev().get(0).tagName.toLowerCase()?t.label=r.prev().text():t.label=t.field_type,r.attr("name")!==undefined&&""!==r.attr("name")?t.field_name=r.attr("name"):t.field_name="",e.inArray(t.field_name,e.trim(n))>=0&&a.push(t.field_name),t},show_message:function(r,t,a){a.find(".ur-message").remove();var n=e('<div class="ur-message user-registration-'+t+'" id="ur-submit-message-node"/>');n.append(r),a.append(n)}},i={init:function(){this.form_submit_event()},form_submit_event:function(){t.on("submit",function(a){a.preventDefault();var
|
1 |
+
!function(e){var r=user_registration_params.ursL10n;e.fn.ur_form_submission=function(){return this.each(function(){var t=e(this),a=[],n=user_registration_params.form_required_fields,s={init:function(){},get_form_data:function(){var r=this,a=[],n=t.closest(".ur-frontend-form").find(".ur-form-grid").find(".ur-frontend-field");return e.each(n,function(){var t=r.get_fieldwise_data(e(this));a.push(t)}),e(document).trigger("user_registration_frontend_form_data_filter",[a]),a},get_fieldwise_data:function(r){var t={},s=r.get(0).tagName.toLowerCase(),i="undefined"!==r.attr("type")?r.attr("type"):"null";switch(t.value="",s){case"input":switch(i){case"checkbox":case"radio":t.value=r.prop("checked")?r.val():0;break;default:t.value=r.val()}break;case"select":case"textarea":t.value=r.val()}return e(document).trigger("user_registration_frontend_form_data_render",[r,t]),t.field_type=r.attr("id").replace("ur-input-type-",""),r.attr("data-label")!==undefined?t.label=r.attr("data-label"):"label"===r.prev().get(0).tagName.toLowerCase()?t.label=r.prev().text():t.label=t.field_type,r.attr("name")!==undefined&&""!==r.attr("name")?t.field_name=r.attr("name"):t.field_name="",e.inArray(t.field_name,e.trim(n))>=0&&a.push(t.field_name),t},show_message:function(r,t,a){a.find(".ur-message").remove();var n=e('<div class="ur-message user-registration-'+t+'" id="ur-submit-message-node"/>');n.append(r),a.append(n)}},i={init:function(){this.form_submit_event()},form_submit_event:function(){t.on("submit",function(a){if(t.find(".user-registration-password-strength").length>0){var n=t.find(".user-registration-password-strength").attr("data-current-strength"),i=t.find(".user-registration-password-strength").attr("data-min-strength");if(parseInt(n,0)<parseInt(i,0))return!1}a.preventDefault();var o;try{o=JSON.stringify(s.get_form_data())}catch(_){o=""}var u=0;1===e(this).closest("form").find('input[name="ur-user-form-id"]').length&&(u=e(this).closest("form").find('input[name="ur-user-form-id"]').val());var f="0";1===e(this).closest("form").find('input[name="ur_frontend_form_nonce"]').length&&(f=e(this).closest("form").find('input[name="ur_frontend_form_nonce"]').val());var d={action:"user_registration_user_form_submit",security:user_registration_params.user_registration_form_data_save,form_data:o,form_id:u,ur_frontend_form_nonce:f};if(e(document).trigger("user_registration_frontend_before_form_submit",[d,t]),"undefined"!=typeof ur_google_recaptcha_code&&"1"===ur_google_recaptcha_code.is_captcha_enable){if(0===t.find("#g-recaptcha-response").val().length)return void s.show_message("<p>"+r.captcha_error+"</p>","error",t);grecaptcha.reset()}t.find(".ur-submit-button").find("span").addClass("ur-front-spinner"),e.ajax({url:user_registration_params.ajax_url,data:d,type:"POST",async:!0,beforeSend:function(){},complete:function(a){t.find(".ur-submit-button").find("span").removeClass("ur-front-spinner");var n=e('<ul class=""/>'),i="error";try{var o=e.parseJSON(a.responseText);"undefined"!=typeof o.success&&!0===o.success&&(i="message"),"object"==typeof o.data.message&&e.each(o.data.message,function(){e("<li/>").text(this).appendTo(n)}),"message"===i&&(n.append("<li>"+r.user_successfully_saved+"</li>"),t[0].reset(),e(".user-registration-password-hint").remove(),e(".user-registration-password-strength").remove(),""!==user_registration_params.redirect_url?window.setTimeout(function(){window.location=user_registration_params.redirect_url},1e3):"undefined"!=typeof o.data.auto_login&&o.data.auto_login&&location.reload())}catch(u){n.append("<li>"+u.message+"</li>")}s.show_message(n,i,t),e(document).trigger("user_registration_frontend_after_ajax_complete",[a.responseText,i,t])}})})}};s.init(),i.init()})},e(function(){e(".ur-frontend-form form.register").ur_form_submission()})}(jQuery);var google_recaptcha_user_registration,onloadURCallback=function(){google_recaptcha_user_registration=grecaptcha.render("node_recaptcha",{sitekey:ur_google_recaptcha_code.site_key,theme:"light",style:"transform:scale(0.77);-webkit-transform:scale(0.77);transform-origin:0 0;-webkit-transform-origin:0 0;"})};
|
assets/js/select2/select2.full.min.js
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
/*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a){var b=function(){if(a&&a.fn&&a.fn.select2&&a.fn.select2.amd)var b=a.fn.select2.amd;var b;return function(){if(!b||!b.requirejs){b?c=b:b={};var a,c,d;!function(b){function e(a,b){return u.call(a,b)}function f(a,b){var c,d,e,f,g,h,i,j,k,l,m,n=b&&b.split("/"),o=s.map,p=o&&o["*"]||{};if(a&&"."===a.charAt(0))if(b){for(a=a.split("/"),g=a.length-1,s.nodeIdCompat&&w.test(a[g])&&(a[g]=a[g].replace(w,"")),a=n.slice(0,n.length-1).concat(a),k=0;k<a.length;k+=1)if(m=a[k],"."===m)a.splice(k,1),k-=1;else if(".."===m){if(1===k&&(".."===a[2]||".."===a[0]))break;k>0&&(a.splice(k-1,2),k-=2)}a=a.join("/")}else 0===a.indexOf("./")&&(a=a.substring(2));if((n||p)&&o){for(c=a.split("/"),k=c.length;k>0;k-=1){if(d=c.slice(0,k).join("/"),n)for(l=n.length;l>0;l-=1)if(e=o[n.slice(0,l).join("/")],e&&(e=e[d])){f=e,h=k;break}if(f)break;!i&&p&&p[d]&&(i=p[d],j=k)}!f&&i&&(f=i,h=j),f&&(c.splice(0,h,f),a=c.join("/"))}return a}function g(a,c){return function(){var d=v.call(arguments,0);return"string"!=typeof d[0]&&1===d.length&&d.push(null),n.apply(b,d.concat([a,c]))}}function h(a){return function(b){return f(b,a)}}function i(a){return function(b){q[a]=b}}function j(a){if(e(r,a)){var c=r[a];delete r[a],t[a]=!0,m.apply(b,c)}if(!e(q,a)&&!e(t,a))throw new Error("No "+a);return q[a]}function k(a){var b,c=a?a.indexOf("!"):-1;return c>-1&&(b=a.substring(0,c),a=a.substring(c+1,a.length)),[b,a]}function l(a){return function(){return s&&s.config&&s.config[a]||{}}}var m,n,o,p,q={},r={},s={},t={},u=Object.prototype.hasOwnProperty,v=[].slice,w=/\.js$/;o=function(a,b){var c,d=k(a),e=d[0];return a=d[1],e&&(e=f(e,b),c=j(e)),e?a=c&&c.normalize?c.normalize(a,h(b)):f(a,b):(a=f(a,b),d=k(a),e=d[0],a=d[1],e&&(c=j(e))),{f:e?e+"!"+a:a,n:a,pr:e,p:c}},p={require:function(a){return g(a)},exports:function(a){var b=q[a];return"undefined"!=typeof b?b:q[a]={}},module:function(a){return{id:a,uri:"",exports:q[a],config:l(a)}}},m=function(a,c,d,f){var h,k,l,m,n,s,u=[],v=typeof d;if(f=f||a,"undefined"===v||"function"===v){for(c=!c.length&&d.length?["require","exports","module"]:c,n=0;n<c.length;n+=1)if(m=o(c[n],f),k=m.f,"require"===k)u[n]=p.require(a);else if("exports"===k)u[n]=p.exports(a),s=!0;else if("module"===k)h=u[n]=p.module(a);else if(e(q,k)||e(r,k)||e(t,k))u[n]=j(k);else{if(!m.p)throw new Error(a+" missing "+k);m.p.load(m.n,g(f,!0),i(k),{}),u[n]=q[k]}l=d?d.apply(q[a],u):void 0,a&&(h&&h.exports!==b&&h.exports!==q[a]?q[a]=h.exports:l===b&&s||(q[a]=l))}else a&&(q[a]=d)},a=c=n=function(a,c,d,e,f){if("string"==typeof a)return p[a]?p[a](c):j(o(a,c).f);if(!a.splice){if(s=a,s.deps&&n(s.deps,s.callback),!c)return;c.splice?(a=c,c=d,d=null):a=b}return c=c||function(){},"function"==typeof d&&(d=e,e=f),e?m(b,a,c,d):setTimeout(function(){m(b,a,c,d)},4),n},n.config=function(a){return n(a)},a._defined=q,d=function(a,b,c){if("string"!=typeof a)throw new Error("See almond README: incorrect module build, no module name");b.splice||(c=b,b=[]),e(q,a)||e(r,a)||(r[a]=[a,b,c])},d.amd={jQuery:!0}}(),b.requirejs=a,b.require=c,b.define=d}}(),b.define("almond",function(){}),b.define("jquery",[],function(){var b=a||$;return null==b&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),b}),b.define("select2/utils",["jquery"],function(a){function b(a){var b=a.prototype,c=[];for(var d in b){var e=b[d];"function"==typeof e&&"constructor"!==d&&c.push(d)}return c}var c={};c.Extend=function(a,b){function c(){this.constructor=a}var d={}.hasOwnProperty;for(var e in b)d.call(b,e)&&(a[e]=b[e]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},c.Decorate=function(a,c){function d(){var b=Array.prototype.unshift,d=c.prototype.constructor.length,e=a.prototype.constructor;d>0&&(b.call(arguments,a.prototype.constructor),e=c.prototype.constructor),e.apply(this,arguments)}function e(){this.constructor=d}var f=b(c),g=b(a);c.displayName=a.displayName,d.prototype=new e;for(var h=0;h<g.length;h++){var i=g[h];d.prototype[i]=a.prototype[i]}for(var j=(function(a){var b=function(){};a in d.prototype&&(b=d.prototype[a]);var e=c.prototype[a];return function(){var a=Array.prototype.unshift;return a.call(arguments,b),e.apply(this,arguments)}}),k=0;k<f.length;k++){var l=f[k];d.prototype[l]=j(l)}return d};var d=function(){this.listeners={}};return d.prototype.on=function(a,b){this.listeners=this.listeners||{},a in this.listeners?this.listeners[a].push(b):this.listeners[a]=[b]},d.prototype.trigger=function(a){var b=Array.prototype.slice,c=b.call(arguments,1);this.listeners=this.listeners||{},null==c&&(c=[]),0===c.length&&c.push({}),c[0]._type=a,a in this.listeners&&this.invoke(this.listeners[a],b.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},d.prototype.invoke=function(a,b){for(var c=0,d=a.length;d>c;c++)a[c].apply(this,b)},c.Observable=d,c.generateChars=function(a){for(var b="",c=0;a>c;c++){var d=Math.floor(36*Math.random());b+=d.toString(36)}return b},c.bind=function(a,b){return function(){a.apply(b,arguments)}},c._convertData=function(a){for(var b in a){var c=b.split("-"),d=a;if(1!==c.length){for(var e=0;e<c.length;e++){var f=c[e];f=f.substring(0,1).toLowerCase()+f.substring(1),f in d||(d[f]={}),e==c.length-1&&(d[f]=a[b]),d=d[f]}delete a[b]}}return a},c.hasScroll=function(b,c){var d=a(c),e=c.style.overflowX,f=c.style.overflowY;return e!==f||"hidden"!==f&&"visible"!==f?"scroll"===e||"scroll"===f?!0:d.innerHeight()<c.scrollHeight||d.innerWidth()<c.scrollWidth:!1},c.escapeMarkup=function(a){var b={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof a?a:String(a).replace(/[&<>"'\/\\]/g,function(a){return b[a]})},c.appendMany=function(b,c){if("1.7"===a.fn.jquery.substr(0,3)){var d=a();a.map(c,function(a){d=d.add(a)}),c=d}b.append(c)},c}),b.define("select2/results",["jquery","./utils"],function(a,b){function c(a,b,d){this.$element=a,this.data=d,this.options=b,c.__super__.constructor.call(this)}return b.Extend(c,b.Observable),c.prototype.render=function(){var b=a('<ul class="select2-results__options" role="tree"></ul>');return this.options.get("multiple")&&b.attr("aria-multiselectable","true"),this.$results=b,b},c.prototype.clear=function(){this.$results.empty()},c.prototype.displayMessage=function(b){var c=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var d=a('<li role="treeitem" aria-live="assertive" class="select2-results__option"></li>'),e=this.options.get("translations").get(b.message);d.append(c(e(b.args))),d[0].className+=" select2-results__message",this.$results.append(d)},c.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},c.prototype.append=function(a){this.hideLoading();var b=[];if(null==a.results||0===a.results.length)return void(0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"}));a.results=this.sort(a.results);for(var c=0;c<a.results.length;c++){var d=a.results[c],e=this.option(d);b.push(e)}this.$results.append(b)},c.prototype.position=function(a,b){var c=b.find(".select2-results");c.append(a)},c.prototype.sort=function(a){var b=this.options.get("sorter");return b(a)},c.prototype.highlightFirstItem=function(){var a=this.$results.find(".select2-results__option[aria-selected]"),b=a.filter("[aria-selected=true]");b.length>0?b.first().trigger("mouseenter"):a.first().trigger("mouseenter"),this.ensureHighlightVisible()},c.prototype.setClasses=function(){var b=this;this.data.current(function(c){var d=a.map(c,function(a){return a.id.toString()}),e=b.$results.find(".select2-results__option[aria-selected]");e.each(function(){var b=a(this),c=a.data(this,"data"),e=""+c.id;null!=c.element&&c.element.selected||null==c.element&&a.inArray(e,d)>-1?b.attr("aria-selected","true"):b.attr("aria-selected","false")})})},c.prototype.showLoading=function(a){this.hideLoading();var b=this.options.get("translations").get("searching"),c={disabled:!0,loading:!0,text:b(a)},d=this.option(c);d.className+=" loading-results",this.$results.prepend(d)},c.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},c.prototype.option=function(b){var c=document.createElement("li");c.className="select2-results__option";var d={role:"treeitem","aria-selected":"false"};b.disabled&&(delete d["aria-selected"],d["aria-disabled"]="true"),null==b.id&&delete d["aria-selected"],null!=b._resultId&&(c.id=b._resultId),b.title&&(c.title=b.title),b.children&&(d.role="group",d["aria-label"]=b.text,delete d["aria-selected"]);for(var e in d){var f=d[e];c.setAttribute(e,f)}if(b.children){var g=a(c),h=document.createElement("strong");h.className="select2-results__group";a(h);this.template(b,h);for(var i=[],j=0;j<b.children.length;j++){var k=b.children[j],l=this.option(k);i.push(l)}var m=a("<ul></ul>",{"class":"select2-results__options select2-results__options--nested"});m.append(i),g.append(h),g.append(m)}else this.template(b,c);return a.data(c,"data",b),c},c.prototype.bind=function(b,c){var d=this,e=b.id+"-results";this.$results.attr("id",e),b.on("results:all",function(a){d.clear(),d.append(a.data),b.isOpen()&&(d.setClasses(),d.highlightFirstItem())}),b.on("results:append",function(a){d.append(a.data),b.isOpen()&&d.setClasses()}),b.on("query",function(a){d.hideMessages(),d.showLoading(a)}),b.on("select",function(){b.isOpen()&&(d.setClasses(),d.highlightFirstItem())}),b.on("unselect",function(){b.isOpen()&&(d.setClasses(),d.highlightFirstItem())}),b.on("open",function(){d.$results.attr("aria-expanded","true"),d.$results.attr("aria-hidden","false"),d.setClasses(),d.ensureHighlightVisible()}),b.on("close",function(){d.$results.attr("aria-expanded","false"),d.$results.attr("aria-hidden","true"),d.$results.removeAttr("aria-activedescendant")}),b.on("results:toggle",function(){var a=d.getHighlightedResults();0!==a.length&&a.trigger("mouseup")}),b.on("results:select",function(){var a=d.getHighlightedResults();if(0!==a.length){var b=a.data("data");"true"==a.attr("aria-selected")?d.trigger("close",{}):d.trigger("select",{data:b})}}),b.on("results:previous",function(){var a=d.getHighlightedResults(),b=d.$results.find("[aria-selected]"),c=b.index(a);if(0!==c){var e=c-1;0===a.length&&(e=0);var f=b.eq(e);f.trigger("mouseenter");var g=d.$results.offset().top,h=f.offset().top,i=d.$results.scrollTop()+(h-g);0===e?d.$results.scrollTop(0):0>h-g&&d.$results.scrollTop(i)}}),b.on("results:next",function(){var a=d.getHighlightedResults(),b=d.$results.find("[aria-selected]"),c=b.index(a),e=c+1;if(!(e>=b.length)){var f=b.eq(e);f.trigger("mouseenter");var g=d.$results.offset().top+d.$results.outerHeight(!1),h=f.offset().top+f.outerHeight(!1),i=d.$results.scrollTop()+h-g;0===e?d.$results.scrollTop(0):h>g&&d.$results.scrollTop(i)}}),b.on("results:focus",function(a){a.element.addClass("select2-results__option--highlighted")}),b.on("results:message",function(a){d.displayMessage(a)}),a.fn.mousewheel&&this.$results.on("mousewheel",function(a){var b=d.$results.scrollTop(),c=d.$results.get(0).scrollHeight-b+a.deltaY,e=a.deltaY>0&&b-a.deltaY<=0,f=a.deltaY<0&&c<=d.$results.height();e?(d.$results.scrollTop(0),a.preventDefault(),a.stopPropagation()):f&&(d.$results.scrollTop(d.$results.get(0).scrollHeight-d.$results.height()),a.preventDefault(),a.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(b){var c=a(this),e=c.data("data");return"true"===c.attr("aria-selected")?void(d.options.get("multiple")?d.trigger("unselect",{originalEvent:b,data:e}):d.trigger("close",{})):void d.trigger("select",{originalEvent:b,data:e})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(b){var c=a(this).data("data");d.getHighlightedResults().removeClass("select2-results__option--highlighted"),d.trigger("results:focus",{data:c,element:a(this)})})},c.prototype.getHighlightedResults=function(){var a=this.$results.find(".select2-results__option--highlighted");return a},c.prototype.destroy=function(){this.$results.remove()},c.prototype.ensureHighlightVisible=function(){var a=this.getHighlightedResults();if(0!==a.length){var b=this.$results.find("[aria-selected]"),c=b.index(a),d=this.$results.offset().top,e=a.offset().top,f=this.$results.scrollTop()+(e-d),g=e-d;f-=2*a.outerHeight(!1),2>=c?this.$results.scrollTop(0):(g>this.$results.outerHeight()||0>g)&&this.$results.scrollTop(f)}},c.prototype.template=function(b,c){var d=this.options.get("templateResult"),e=this.options.get("escapeMarkup"),f=d(b,c);null==f?c.style.display="none":"string"==typeof f?c.innerHTML=e(f):a(c).append(f)},c}),b.define("select2/keys",[],function(){var a={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};return a}),b.define("select2/selection/base",["jquery","../utils","../keys"],function(a,b,c){function d(a,b){this.$element=a,this.options=b,d.__super__.constructor.call(this)}return b.Extend(d,b.Observable),d.prototype.render=function(){var b=a('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),b.attr("title",this.$element.attr("title")),b.attr("tabindex",this._tabindex),this.$selection=b,b},d.prototype.bind=function(a,b){var d=this,e=(a.id+"-container",a.id+"-results");this.container=a,this.$selection.on("focus",function(a){d.trigger("focus",a)}),this.$selection.on("blur",function(a){d._handleBlur(a)}),this.$selection.on("keydown",function(a){d.trigger("keypress",a),a.which===c.SPACE&&a.preventDefault()}),a.on("results:focus",function(a){d.$selection.attr("aria-activedescendant",a.data._resultId)}),a.on("selection:update",function(a){d.update(a.data)}),a.on("open",function(){d.$selection.attr("aria-expanded","true"),d.$selection.attr("aria-owns",e),d._attachCloseHandler(a)}),a.on("close",function(){d.$selection.attr("aria-expanded","false"),d.$selection.removeAttr("aria-activedescendant"),d.$selection.removeAttr("aria-owns"),d.$selection.focus(),d._detachCloseHandler(a)}),a.on("enable",function(){d.$selection.attr("tabindex",d._tabindex)}),a.on("disable",function(){d.$selection.attr("tabindex","-1")})},d.prototype._handleBlur=function(b){var c=this;window.setTimeout(function(){document.activeElement==c.$selection[0]||a.contains(c.$selection[0],document.activeElement)||c.trigger("blur",b)},1)},d.prototype._attachCloseHandler=function(b){a(document.body).on("mousedown.select2."+b.id,function(b){var c=a(b.target),d=c.closest(".select2"),e=a(".select2.select2-container--open");e.each(function(){var b=a(this);if(this!=d[0]){var c=b.data("element");c.select2("close")}})})},d.prototype._detachCloseHandler=function(b){a(document.body).off("mousedown.select2."+b.id)},d.prototype.position=function(a,b){var c=b.find(".selection");c.append(a)},d.prototype.destroy=function(){this._detachCloseHandler(this.container)},d.prototype.update=function(a){throw new Error("The `update` method must be defined in child classes.")},d}),b.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(a,b,c,d){function e(){e.__super__.constructor.apply(this,arguments)}return c.Extend(e,b),e.prototype.render=function(){var a=e.__super__.render.call(this);return a.addClass("select2-selection--single"),a.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),a},e.prototype.bind=function(a,b){var c=this;e.__super__.bind.apply(this,arguments);var d=a.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",d),this.$selection.attr("aria-labelledby",d),this.$selection.on("mousedown",function(a){1===a.which&&c.trigger("toggle",{originalEvent:a})}),this.$selection.on("focus",function(a){}),this.$selection.on("blur",function(a){}),a.on("focus",function(b){a.isOpen()||c.$selection.focus()}),a.on("selection:update",function(a){c.update(a.data)})},e.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},e.prototype.display=function(a,b){var c=this.options.get("templateSelection"),d=this.options.get("escapeMarkup");return d(c(a,b))},e.prototype.selectionContainer=function(){return a("<span></span>")},e.prototype.update=function(a){if(0===a.length)return void this.clear();var b=a[0],c=this.$selection.find(".select2-selection__rendered"),d=this.display(b,c);c.empty().append(d),c.prop("title",b.title||b.text)},e}),b.define("select2/selection/multiple",["jquery","./base","../utils"],function(a,b,c){function d(a,b){d.__super__.constructor.apply(this,arguments)}return c.Extend(d,b),d.prototype.render=function(){var a=d.__super__.render.call(this);return a.addClass("select2-selection--multiple"),a.html('<ul class="select2-selection__rendered"></ul>'),a},d.prototype.bind=function(b,c){var e=this;d.__super__.bind.apply(this,arguments),this.$selection.on("click",function(a){e.trigger("toggle",{originalEvent:a})}),this.$selection.on("click",".select2-selection__choice__remove",function(b){if(!e.options.get("disabled")){var c=a(this),d=c.parent(),f=d.data("data");e.trigger("unselect",{originalEvent:b,data:f})}})},d.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},d.prototype.display=function(a,b){var c=this.options.get("templateSelection"),d=this.options.get("escapeMarkup");return d(c(a,b))},d.prototype.selectionContainer=function(){var b=a('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">×</span></li>');return b},d.prototype.update=function(a){if(this.clear(),0!==a.length){for(var b=[],d=0;d<a.length;d++){var e=a[d],f=this.selectionContainer(),g=this.display(e,f);f.append(g),f.prop("title",e.title||e.text),f.data("data",e),b.push(f)}var h=this.$selection.find(".select2-selection__rendered");c.appendMany(h,b)}},d}),b.define("select2/selection/placeholder",["../utils"],function(a){function b(a,b,c){this.placeholder=this.normalizePlaceholder(c.get("placeholder")),a.call(this,b,c)}return b.prototype.normalizePlaceholder=function(a,b){return"string"==typeof b&&(b={id:"",text:b}),b},b.prototype.createPlaceholder=function(a,b){var c=this.selectionContainer();return c.html(this.display(b)),c.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),c},b.prototype.update=function(a,b){var c=1==b.length&&b[0].id!=this.placeholder.id,d=b.length>1;if(d||c)return a.call(this,b);this.clear();var e=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(e)},b}),b.define("select2/selection/allowClear",["jquery","../keys"],function(a,b){function c(){}return c.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(a){d._handleClear(a)}),b.on("keypress",function(a){d._handleKeyboardClear(a,b)})},c.prototype._handleClear=function(a,b){if(!this.options.get("disabled")){var c=this.$selection.find(".select2-selection__clear");if(0!==c.length){b.stopPropagation();for(var d=c.data("data"),e=0;e<d.length;e++){var f={data:d[e]};if(this.trigger("unselect",f),f.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},c.prototype._handleKeyboardClear=function(a,c,d){d.isOpen()||(c.which==b.DELETE||c.which==b.BACKSPACE)&&this._handleClear(c)},c.prototype.update=function(b,c){if(b.call(this,c),!(this.$selection.find(".select2-selection__placeholder").length>0||0===c.length)){var d=a('<span class="select2-selection__clear">×</span>');d.data("data",c),this.$selection.find(".select2-selection__rendered").prepend(d)}},c}),b.define("select2/selection/search",["jquery","../utils","../keys"],function(a,b,c){function d(a,b,c){a.call(this,b,c)}return d.prototype.render=function(b){var c=a('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=c,this.$search=c.find("input");var d=b.call(this);return this._transferTabIndex(),d},d.prototype.bind=function(a,b,d){var e=this;a.call(this,b,d),b.on("open",function(){e.$search.trigger("focus")}),b.on("close",function(){e.$search.val(""),e.$search.removeAttr("aria-activedescendant"),e.$search.trigger("focus")}),b.on("enable",function(){e.$search.prop("disabled",!1),e._transferTabIndex()}),b.on("disable",function(){e.$search.prop("disabled",!0)}),b.on("focus",function(a){e.$search.trigger("focus")}),b.on("results:focus",function(a){e.$search.attr("aria-activedescendant",a.id)}),this.$selection.on("focusin",".select2-search--inline",function(a){e.trigger("focus",a)}),this.$selection.on("focusout",".select2-search--inline",function(a){e._handleBlur(a)}),this.$selection.on("keydown",".select2-search--inline",function(a){a.stopPropagation(),e.trigger("keypress",a),e._keyUpPrevented=a.isDefaultPrevented();var b=a.which;if(b===c.BACKSPACE&&""===e.$search.val()){var d=e.$searchContainer.prev(".select2-selection__choice");if(d.length>0){var f=d.data("data");e.searchRemoveChoice(f),a.preventDefault()}}});var f=document.documentMode,g=f&&11>=f;this.$selection.on("input.searchcheck",".select2-search--inline",function(a){return g?void e.$selection.off("input.search input.searchcheck"):void e.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(a){if(g&&"input"===a.type)return void e.$selection.off("input.search input.searchcheck");var b=a.which;b!=c.SHIFT&&b!=c.CTRL&&b!=c.ALT&&b!=c.TAB&&e.handleSearch(a)})},d.prototype._transferTabIndex=function(a){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},d.prototype.createPlaceholder=function(a,b){this.$search.attr("placeholder",b.text)},d.prototype.update=function(a,b){var c=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),a.call(this,b),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),c&&this.$search.focus()},d.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var a=this.$search.val();this.trigger("query",{term:a})}this._keyUpPrevented=!1},d.prototype.searchRemoveChoice=function(a,b){this.trigger("unselect",{data:b}),this.$search.val(b.text),this.handleSearch()},d.prototype.resizeSearch=function(){this.$search.css("width","25px");var a="";if(""!==this.$search.attr("placeholder"))a=this.$selection.find(".select2-selection__rendered").innerWidth();else{var b=this.$search.val().length+1;a=.75*b+"em"}this.$search.css("width",a)},d}),b.define("select2/selection/eventRelay",["jquery"],function(a){function b(){}return b.prototype.bind=function(b,c,d){var e=this,f=["open","opening","close","closing","select","selecting","unselect","unselecting"],g=["opening","closing","selecting","unselecting"];b.call(this,c,d),c.on("*",function(b,c){if(-1!==a.inArray(b,f)){c=c||{};var d=a.Event("select2:"+b,{params:c});e.$element.trigger(d),-1!==a.inArray(b,g)&&(c.prevented=d.isDefaultPrevented())}})},b}),b.define("select2/translation",["jquery","require"],function(a,b){function c(a){this.dict=a||{}}return c.prototype.all=function(){return this.dict},c.prototype.get=function(a){return this.dict[a]},c.prototype.extend=function(b){this.dict=a.extend({},b.all(),this.dict)},c._cache={},c.loadPath=function(a){if(!(a in c._cache)){var d=b(a);c._cache[a]=d}return new c(c._cache[a])},c}),b.define("select2/diacritics",[],function(){var a={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"};return a}),b.define("select2/data/base",["../utils"],function(a){function b(a,c){b.__super__.constructor.call(this)}return a.Extend(b,a.Observable),b.prototype.current=function(a){throw new Error("The `current` method must be defined in child classes.")},b.prototype.query=function(a,b){throw new Error("The `query` method must be defined in child classes.")},b.prototype.bind=function(a,b){},b.prototype.destroy=function(){},b.prototype.generateResultId=function(b,c){var d=b.id+"-result-";return d+=a.generateChars(4),d+=null!=c.id?"-"+c.id.toString():"-"+a.generateChars(4)},b}),b.define("select2/data/select",["./base","../utils","jquery"],function(a,b,c){function d(a,b){this.$element=a,this.options=b,d.__super__.constructor.call(this)}return b.Extend(d,a),d.prototype.current=function(a){var b=[],d=this;this.$element.find(":selected").each(function(){var a=c(this),e=d.item(a);b.push(e)}),a(b)},d.prototype.select=function(a){var b=this;if(a.selected=!0,c(a.element).is("option"))return a.element.selected=!0,void this.$element.trigger("change");
|
2 |
-
if(this.$element.prop("multiple"))this.current(function(d){var e=[];a=[a],a.push.apply(a,d);for(var f=0;f<a.length;f++){var g=a[f].id;-1===c.inArray(g,e)&&e.push(g)}b.$element.val(e),b.$element.trigger("change")});else{var d=a.id;this.$element.val(d),this.$element.trigger("change")}},d.prototype.unselect=function(a){var b=this;if(this.$element.prop("multiple"))return a.selected=!1,c(a.element).is("option")?(a.element.selected=!1,void this.$element.trigger("change")):void this.current(function(d){for(var e=[],f=0;f<d.length;f++){var g=d[f].id;g!==a.id&&-1===c.inArray(g,e)&&e.push(g)}b.$element.val(e),b.$element.trigger("change")})},d.prototype.bind=function(a,b){var c=this;this.container=a,a.on("select",function(a){c.select(a.data)}),a.on("unselect",function(a){c.unselect(a.data)})},d.prototype.destroy=function(){this.$element.find("*").each(function(){c.removeData(this,"data")})},d.prototype.query=function(a,b){var d=[],e=this,f=this.$element.children();f.each(function(){var b=c(this);if(b.is("option")||b.is("optgroup")){var f=e.item(b),g=e.matches(a,f);null!==g&&d.push(g)}}),b({results:d})},d.prototype.addOptions=function(a){b.appendMany(this.$element,a)},d.prototype.option=function(a){var b;a.children?(b=document.createElement("optgroup"),b.label=a.text):(b=document.createElement("option"),void 0!==b.textContent?b.textContent=a.text:b.innerText=a.text),a.id&&(b.value=a.id),a.disabled&&(b.disabled=!0),a.selected&&(b.selected=!0),a.title&&(b.title=a.title);var d=c(b),e=this._normalizeItem(a);return e.element=b,c.data(b,"data",e),d},d.prototype.item=function(a){var b={};if(b=c.data(a[0],"data"),null!=b)return b;if(a.is("option"))b={id:a.val(),text:a.text(),disabled:a.prop("disabled"),selected:a.prop("selected"),title:a.prop("title")};else if(a.is("optgroup")){b={text:a.prop("label"),children:[],title:a.prop("title")};for(var d=a.children("option"),e=[],f=0;f<d.length;f++){var g=c(d[f]),h=this.item(g);e.push(h)}b.children=e}return b=this._normalizeItem(b),b.element=a[0],c.data(a[0],"data",b),b},d.prototype._normalizeItem=function(a){c.isPlainObject(a)||(a={id:a,text:a}),a=c.extend({},{text:""},a);var b={selected:!1,disabled:!1};return null!=a.id&&(a.id=a.id.toString()),null!=a.text&&(a.text=a.text.toString()),null==a._resultId&&a.id&&null!=this.container&&(a._resultId=this.generateResultId(this.container,a)),c.extend({},b,a)},d.prototype.matches=function(a,b){var c=this.options.get("matcher");return c(a,b)},d}),b.define("select2/data/array",["./select","../utils","jquery"],function(a,b,c){function d(a,b){var c=b.get("data")||[];d.__super__.constructor.call(this,a,b),this.addOptions(this.convertToOptions(c))}return b.Extend(d,a),d.prototype.select=function(a){var b=this.$element.find("option").filter(function(b,c){return c.value==a.id.toString()});0===b.length&&(b=this.option(a),this.addOptions(b)),d.__super__.select.call(this,a)},d.prototype.convertToOptions=function(a){function d(a){return function(){return c(this).val()==a.id}}for(var e=this,f=this.$element.find("option"),g=f.map(function(){return e.item(c(this)).id}).get(),h=[],i=0;i<a.length;i++){var j=this._normalizeItem(a[i]);if(c.inArray(j.id,g)>=0){var k=f.filter(d(j)),l=this.item(k),m=c.extend(!0,{},j,l),n=this.option(m);k.replaceWith(n)}else{var o=this.option(j);if(j.children){var p=this.convertToOptions(j.children);b.appendMany(o,p)}h.push(o)}}return h},d}),b.define("select2/data/ajax",["./array","../utils","jquery"],function(a,b,c){function d(a,b){this.ajaxOptions=this._applyDefaults(b.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),d.__super__.constructor.call(this,a,b)}return b.Extend(d,a),d.prototype._applyDefaults=function(a){var b={data:function(a){return c.extend({},a,{q:a.term})},transport:function(a,b,d){var e=c.ajax(a);return e.then(b),e.fail(d),e}};return c.extend({},b,a,!0)},d.prototype.processResults=function(a){return a},d.prototype.query=function(a,b){function d(){var d=f.transport(f,function(d){var f=e.processResults(d,a);e.options.get("debug")&&window.console&&console.error&&(f&&f.results&&c.isArray(f.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),b(f)},function(){d.status&&"0"===d.status||e.trigger("results:message",{message:"errorLoading"})});e._request=d}var e=this;null!=this._request&&(c.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var f=c.extend({type:"GET"},this.ajaxOptions);"function"==typeof f.url&&(f.url=f.url.call(this.$element,a)),"function"==typeof f.data&&(f.data=f.data.call(this.$element,a)),this.ajaxOptions.delay&&null!=a.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(d,this.ajaxOptions.delay)):d()},d}),b.define("select2/data/tags",["jquery"],function(a){function b(b,c,d){var e=d.get("tags"),f=d.get("createTag");void 0!==f&&(this.createTag=f);var g=d.get("insertTag");if(void 0!==g&&(this.insertTag=g),b.call(this,c,d),a.isArray(e))for(var h=0;h<e.length;h++){var i=e[h],j=this._normalizeItem(i),k=this.option(j);this.$element.append(k)}}return b.prototype.query=function(a,b,c){function d(a,f){for(var g=a.results,h=0;h<g.length;h++){var i=g[h],j=null!=i.children&&!d({results:i.children},!0),k=i.text===b.term;if(k||j)return f?!1:(a.data=g,void c(a))}if(f)return!0;var l=e.createTag(b);if(null!=l){var m=e.option(l);m.attr("data-select2-tag",!0),e.addOptions([m]),e.insertTag(g,l)}a.results=g,c(a)}var e=this;return this._removeOldTags(),null==b.term||null!=b.page?void a.call(this,b,c):void a.call(this,b,d)},b.prototype.createTag=function(b,c){var d=a.trim(c.term);return""===d?null:{id:d,text:d}},b.prototype.insertTag=function(a,b,c){b.unshift(c)},b.prototype._removeOldTags=function(b){var c=(this._lastTag,this.$element.find("option[data-select2-tag]"));c.each(function(){this.selected||a(this).remove()})},b}),b.define("select2/data/tokenizer",["jquery"],function(a){function b(a,b,c){var d=c.get("tokenizer");void 0!==d&&(this.tokenizer=d),a.call(this,b,c)}return b.prototype.bind=function(a,b,c){a.call(this,b,c),this.$search=b.dropdown.$search||b.selection.$search||c.find(".select2-search__field")},b.prototype.query=function(b,c,d){function e(b){var c=g._normalizeItem(b),d=g.$element.find("option").filter(function(){return a(this).val()===c.id});if(!d.length){var e=g.option(c);e.attr("data-select2-tag",!0),g._removeOldTags(),g.addOptions([e])}f(c)}function f(a){g.trigger("select",{data:a})}var g=this;c.term=c.term||"";var h=this.tokenizer(c,this.options,e);h.term!==c.term&&(this.$search.length&&(this.$search.val(h.term),this.$search.focus()),c.term=h.term),b.call(this,c,d)},b.prototype.tokenizer=function(b,c,d,e){for(var f=d.get("tokenSeparators")||[],g=c.term,h=0,i=this.createTag||function(a){return{id:a.term,text:a.term}};h<g.length;){var j=g[h];if(-1!==a.inArray(j,f)){var k=g.substr(0,h),l=a.extend({},c,{term:k}),m=i(l);null!=m?(e(m),g=g.substr(h+1)||"",h=0):h++}else h++}return{term:g}},b}),b.define("select2/data/minimumInputLength",[],function(){function a(a,b,c){this.minimumInputLength=c.get("minimumInputLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){return b.term=b.term||"",b.term.length<this.minimumInputLength?void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:b.term,params:b}}):void a.call(this,b,c)},a}),b.define("select2/data/maximumInputLength",[],function(){function a(a,b,c){this.maximumInputLength=c.get("maximumInputLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){return b.term=b.term||"",this.maximumInputLength>0&&b.term.length>this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:b.term,params:b}}):void a.call(this,b,c)},a}),b.define("select2/data/maximumSelectionLength",[],function(){function a(a,b,c){this.maximumSelectionLength=c.get("maximumSelectionLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){var d=this;this.current(function(e){var f=null!=e?e.length:0;return d.maximumSelectionLength>0&&f>=d.maximumSelectionLength?void d.trigger("results:message",{message:"maximumSelected",args:{maximum:d.maximumSelectionLength}}):void a.call(d,b,c)})},a}),b.define("select2/dropdown",["jquery","./utils"],function(a,b){function c(a,b){this.$element=a,this.options=b,c.__super__.constructor.call(this)}return b.Extend(c,b.Observable),c.prototype.render=function(){var b=a('<span class="select2-dropdown"><span class="select2-results"></span></span>');return b.attr("dir",this.options.get("dir")),this.$dropdown=b,b},c.prototype.bind=function(){},c.prototype.position=function(a,b){},c.prototype.destroy=function(){this.$dropdown.remove()},c}),b.define("select2/dropdown/search",["jquery","../utils"],function(a,b){function c(){}return c.prototype.render=function(b){var c=b.call(this),d=a('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=d,this.$search=d.find("input"),c.prepend(d),c},c.prototype.bind=function(b,c,d){var e=this;b.call(this,c,d),this.$search.on("keydown",function(a){e.trigger("keypress",a),e._keyUpPrevented=a.isDefaultPrevented()}),this.$search.on("input",function(b){a(this).off("keyup")}),this.$search.on("keyup input",function(a){e.handleSearch(a)}),c.on("open",function(){e.$search.attr("tabindex",0),e.$search.focus(),window.setTimeout(function(){e.$search.focus()},0)}),c.on("close",function(){e.$search.attr("tabindex",-1),e.$search.val("")}),c.on("focus",function(){c.isOpen()&&e.$search.focus()}),c.on("results:all",function(a){if(null==a.query.term||""===a.query.term){var b=e.showSearch(a);b?e.$searchContainer.removeClass("select2-search--hide"):e.$searchContainer.addClass("select2-search--hide")}})},c.prototype.handleSearch=function(a){if(!this._keyUpPrevented){var b=this.$search.val();this.trigger("query",{term:b})}this._keyUpPrevented=!1},c.prototype.showSearch=function(a,b){return!0},c}),b.define("select2/dropdown/hidePlaceholder",[],function(){function a(a,b,c,d){this.placeholder=this.normalizePlaceholder(c.get("placeholder")),a.call(this,b,c,d)}return a.prototype.append=function(a,b){b.results=this.removePlaceholder(b.results),a.call(this,b)},a.prototype.normalizePlaceholder=function(a,b){return"string"==typeof b&&(b={id:"",text:b}),b},a.prototype.removePlaceholder=function(a,b){for(var c=b.slice(0),d=b.length-1;d>=0;d--){var e=b[d];this.placeholder.id===e.id&&c.splice(d,1)}return c},a}),b.define("select2/dropdown/infiniteScroll",["jquery"],function(a){function b(a,b,c,d){this.lastParams={},a.call(this,b,c,d),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return b.prototype.append=function(a,b){this.$loadingMore.remove(),this.loading=!1,a.call(this,b),this.showLoadingMore(b)&&this.$results.append(this.$loadingMore)},b.prototype.bind=function(b,c,d){var e=this;b.call(this,c,d),c.on("query",function(a){e.lastParams=a,e.loading=!0}),c.on("query:append",function(a){e.lastParams=a,e.loading=!0}),this.$results.on("scroll",function(){var b=a.contains(document.documentElement,e.$loadingMore[0]);if(!e.loading&&b){var c=e.$results.offset().top+e.$results.outerHeight(!1),d=e.$loadingMore.offset().top+e.$loadingMore.outerHeight(!1);c+50>=d&&e.loadMore()}})},b.prototype.loadMore=function(){this.loading=!0;var b=a.extend({},{page:1},this.lastParams);b.page++,this.trigger("query:append",b)},b.prototype.showLoadingMore=function(a,b){return b.pagination&&b.pagination.more},b.prototype.createLoadingMore=function(){var b=a('<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),c=this.options.get("translations").get("loadingMore");return b.html(c(this.lastParams)),b},b}),b.define("select2/dropdown/attachBody",["jquery","../utils"],function(a,b){function c(b,c,d){this.$dropdownParent=d.get("dropdownParent")||a(document.body),b.call(this,c,d)}return c.prototype.bind=function(a,b,c){var d=this,e=!1;a.call(this,b,c),b.on("open",function(){d._showDropdown(),d._attachPositioningHandler(b),e||(e=!0,b.on("results:all",function(){d._positionDropdown(),d._resizeDropdown()}),b.on("results:append",function(){d._positionDropdown(),d._resizeDropdown()}))}),b.on("close",function(){d._hideDropdown(),d._detachPositioningHandler(b)}),this.$dropdownContainer.on("mousedown",function(a){a.stopPropagation()})},c.prototype.destroy=function(a){a.call(this),this.$dropdownContainer.remove()},c.prototype.position=function(a,b,c){b.attr("class",c.attr("class")),b.removeClass("select2"),b.addClass("select2-container--open"),b.css({position:"absolute",top:-999999}),this.$container=c},c.prototype.render=function(b){var c=a("<span></span>"),d=b.call(this);return c.append(d),this.$dropdownContainer=c,c},c.prototype._hideDropdown=function(a){this.$dropdownContainer.detach()},c.prototype._attachPositioningHandler=function(c,d){var e=this,f="scroll.select2."+d.id,g="resize.select2."+d.id,h="orientationchange.select2."+d.id,i=this.$container.parents().filter(b.hasScroll);i.each(function(){a(this).data("select2-scroll-position",{x:a(this).scrollLeft(),y:a(this).scrollTop()})}),i.on(f,function(b){var c=a(this).data("select2-scroll-position");a(this).scrollTop(c.y)}),a(window).on(f+" "+g+" "+h,function(a){e._positionDropdown(),e._resizeDropdown()})},c.prototype._detachPositioningHandler=function(c,d){var e="scroll.select2."+d.id,f="resize.select2."+d.id,g="orientationchange.select2."+d.id,h=this.$container.parents().filter(b.hasScroll);h.off(e),a(window).off(e+" "+f+" "+g)},c.prototype._positionDropdown=function(){var b=a(window),c=this.$dropdown.hasClass("select2-dropdown--above"),d=this.$dropdown.hasClass("select2-dropdown--below"),e=null,f=this.$container.offset();f.bottom=f.top+this.$container.outerHeight(!1);var g={height:this.$container.outerHeight(!1)};g.top=f.top,g.bottom=f.top+g.height;var h={height:this.$dropdown.outerHeight(!1)},i={top:b.scrollTop(),bottom:b.scrollTop()+b.height()},j=i.top<f.top-h.height,k=i.bottom>f.bottom+h.height,l={left:f.left,top:g.bottom},m=this.$dropdownParent;"static"===m.css("position")&&(m=m.offsetParent());var n=m.offset();l.top-=n.top,l.left-=n.left,c||d||(e="below"),k||!j||c?!j&&k&&c&&(e="below"):e="above",("above"==e||c&&"below"!==e)&&(l.top=g.top-n.top-h.height),null!=e&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+e),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+e)),this.$dropdownContainer.css(l)},c.prototype._resizeDropdown=function(){var a={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(a.minWidth=a.width,a.position="relative",a.width="auto"),this.$dropdown.css(a)},c.prototype._showDropdown=function(a){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},c}),b.define("select2/dropdown/minimumResultsForSearch",[],function(){function a(b){for(var c=0,d=0;d<b.length;d++){var e=b[d];e.children?c+=a(e.children):c++}return c}function b(a,b,c,d){this.minimumResultsForSearch=c.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),a.call(this,b,c,d)}return b.prototype.showSearch=function(b,c){return a(c.data.results)<this.minimumResultsForSearch?!1:b.call(this,c)},b}),b.define("select2/dropdown/selectOnClose",[],function(){function a(){}return a.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),b.on("close",function(a){d._handleSelectOnClose(a)})},a.prototype._handleSelectOnClose=function(a,b){if(b&&null!=b.originalSelect2Event){var c=b.originalSelect2Event;if("select"===c._type||"unselect"===c._type)return}var d=this.getHighlightedResults();if(!(d.length<1)){var e=d.data("data");null!=e.element&&e.element.selected||null==e.element&&e.selected||this.trigger("select",{data:e})}},a}),b.define("select2/dropdown/closeOnSelect",[],function(){function a(){}return a.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),b.on("select",function(a){d._selectTriggered(a)}),b.on("unselect",function(a){d._selectTriggered(a)})},a.prototype._selectTriggered=function(a,b){var c=b.originalEvent;c&&c.ctrlKey||this.trigger("close",{originalEvent:c,originalSelect2Event:b})},a}),b.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(a){var b=a.input.length-a.maximum,c="Please delete "+b+" character";return 1!=b&&(c+="s"),c},inputTooShort:function(a){var b=a.minimum-a.input.length,c="Please enter "+b+" or more characters";return c},loadingMore:function(){return"Loading more results…"},maximumSelected:function(a){var b="You can only select "+a.maximum+" item";return 1!=a.maximum&&(b+="s"),b},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),b.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C){function D(){this.reset()}D.prototype.apply=function(l){if(l=a.extend(!0,{},this.defaults,l),null==l.dataAdapter){if(null!=l.ajax?l.dataAdapter=o:null!=l.data?l.dataAdapter=n:l.dataAdapter=m,l.minimumInputLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,r)),l.maximumInputLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,s)),l.maximumSelectionLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,t)),l.tags&&(l.dataAdapter=j.Decorate(l.dataAdapter,p)),(null!=l.tokenSeparators||null!=l.tokenizer)&&(l.dataAdapter=j.Decorate(l.dataAdapter,q)),null!=l.query){var C=b(l.amdBase+"compat/query");l.dataAdapter=j.Decorate(l.dataAdapter,C)}if(null!=l.initSelection){var D=b(l.amdBase+"compat/initSelection");l.dataAdapter=j.Decorate(l.dataAdapter,D)}}if(null==l.resultsAdapter&&(l.resultsAdapter=c,null!=l.ajax&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,x)),null!=l.placeholder&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,w)),l.selectOnClose&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,A))),null==l.dropdownAdapter){if(l.multiple)l.dropdownAdapter=u;else{var E=j.Decorate(u,v);l.dropdownAdapter=E}if(0!==l.minimumResultsForSearch&&(l.dropdownAdapter=j.Decorate(l.dropdownAdapter,z)),l.closeOnSelect&&(l.dropdownAdapter=j.Decorate(l.dropdownAdapter,B)),null!=l.dropdownCssClass||null!=l.dropdownCss||null!=l.adaptDropdownCssClass){var F=b(l.amdBase+"compat/dropdownCss");l.dropdownAdapter=j.Decorate(l.dropdownAdapter,F)}l.dropdownAdapter=j.Decorate(l.dropdownAdapter,y)}if(null==l.selectionAdapter){if(l.multiple?l.selectionAdapter=e:l.selectionAdapter=d,null!=l.placeholder&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,f)),l.allowClear&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,g)),l.multiple&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,h)),null!=l.containerCssClass||null!=l.containerCss||null!=l.adaptContainerCssClass){var G=b(l.amdBase+"compat/containerCss");l.selectionAdapter=j.Decorate(l.selectionAdapter,G)}l.selectionAdapter=j.Decorate(l.selectionAdapter,i)}if("string"==typeof l.language)if(l.language.indexOf("-")>0){var H=l.language.split("-"),I=H[0];l.language=[l.language,I]}else l.language=[l.language];if(a.isArray(l.language)){var J=new k;l.language.push("en");for(var K=l.language,L=0;L<K.length;L++){var M=K[L],N={};try{N=k.loadPath(M)}catch(O){try{M=this.defaults.amdLanguageBase+M,N=k.loadPath(M)}catch(P){l.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+M+'" could not be automatically loaded. A fallback will be used instead.');continue}}J.extend(N)}l.translations=J}else{var Q=k.loadPath(this.defaults.amdLanguageBase+"en"),R=new k(l.language);R.extend(Q),l.translations=R}return l},D.prototype.reset=function(){function b(a){function b(a){return l[a]||a}return a.replace(/[^\u0000-\u007E]/g,b)}function c(d,e){if(""===a.trim(d.term))return e;if(e.children&&e.children.length>0){for(var f=a.extend(!0,{},e),g=e.children.length-1;g>=0;g--){var h=e.children[g],i=c(d,h);null==i&&f.children.splice(g,1)}return f.children.length>0?f:c(d,f)}var j=b(e.text).toUpperCase(),k=b(d.term).toUpperCase();return j.indexOf(k)>-1?e:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:j.escapeMarkup,language:C,matcher:c,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(a){return a},templateResult:function(a){return a.text},templateSelection:function(a){return a.text},theme:"default",width:"resolve"}},D.prototype.set=function(b,c){var d=a.camelCase(b),e={};e[d]=c;var f=j._convertData(e);a.extend(this.defaults,f)};var E=new D;return E}),b.define("select2/options",["require","jquery","./defaults","./utils"],function(a,b,c,d){function e(b,e){if(this.options=b,null!=e&&this.fromElement(e),this.options=c.apply(this.options),e&&e.is("input")){var f=a(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=d.Decorate(this.options.dataAdapter,f)}}return e.prototype.fromElement=function(a){var c=["select2"];null==this.options.multiple&&(this.options.multiple=a.prop("multiple")),null==this.options.disabled&&(this.options.disabled=a.prop("disabled")),null==this.options.language&&(a.prop("lang")?this.options.language=a.prop("lang").toLowerCase():a.closest("[lang]").prop("lang")&&(this.options.language=a.closest("[lang]").prop("lang"))),null==this.options.dir&&(a.prop("dir")?this.options.dir=a.prop("dir"):a.closest("[dir]").prop("dir")?this.options.dir=a.closest("[dir]").prop("dir"):this.options.dir="ltr"),a.prop("disabled",this.options.disabled),a.prop("multiple",this.options.multiple),a.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),a.data("data",a.data("select2Tags")),a.data("tags",!0)),a.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),a.attr("ajax--url",a.data("ajaxUrl")),a.data("ajax--url",a.data("ajaxUrl")));var e={};e=b.fn.jquery&&"1."==b.fn.jquery.substr(0,2)&&a[0].dataset?b.extend(!0,{},a[0].dataset,a.data()):a.data();var f=b.extend(!0,{},e);f=d._convertData(f);for(var g in f)b.inArray(g,c)>-1||(b.isPlainObject(this.options[g])?b.extend(this.options[g],f[g]):this.options[g]=f[g]);return this},e.prototype.get=function(a){return this.options[a]},e.prototype.set=function(a,b){this.options[a]=b},e}),b.define("select2/core",["jquery","./options","./utils","./keys"],function(a,b,c,d){var e=function(a,c){null!=a.data("select2")&&a.data("select2").destroy(),this.$element=a,this.id=this._generateId(a),c=c||{},this.options=new b(c,a),e.__super__.constructor.call(this);var d=a.attr("tabindex")||0;a.data("old-tabindex",d),a.attr("tabindex","-1");var f=this.options.get("dataAdapter");this.dataAdapter=new f(a,this.options);var g=this.render();this._placeContainer(g);var h=this.options.get("selectionAdapter");this.selection=new h(a,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,g);var i=this.options.get("dropdownAdapter");this.dropdown=new i(a,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,g);var j=this.options.get("resultsAdapter");this.results=new j(a,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var k=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(a){k.trigger("selection:update",{data:a})}),a.addClass("select2-hidden-accessible"),a.attr("aria-hidden","true"),this._syncAttributes(),a.data("select2",this)};return c.Extend(e,c.Observable),e.prototype._generateId=function(a){var b="";return b=null!=a.attr("id")?a.attr("id"):null!=a.attr("name")?a.attr("name")+"-"+c.generateChars(2):c.generateChars(4),b=b.replace(/(:|\.|\[|\]|,)/g,""),b="select2-"+b},e.prototype._placeContainer=function(a){a.insertAfter(this.$element);var b=this._resolveWidth(this.$element,this.options.get("width"));null!=b&&a.css("width",b)},e.prototype._resolveWidth=function(a,b){var c=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==b){var d=this._resolveWidth(a,"style");return null!=d?d:this._resolveWidth(a,"element")}if("element"==b){var e=a.outerWidth(!1);return 0>=e?"auto":e+"px"}if("style"==b){var f=a.attr("style");if("string"!=typeof f)return null;for(var g=f.split(";"),h=0,i=g.length;i>h;h+=1){var j=g[h].replace(/\s/g,""),k=j.match(c);if(null!==k&&k.length>=1)return k[1]}return null}return b},e.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},e.prototype._registerDomEvents=function(){var b=this;this.$element.on("change.select2",function(){b.dataAdapter.current(function(a){b.trigger("selection:update",{data:a})})}),this.$element.on("focus.select2",function(a){b.trigger("focus",a)}),this._syncA=c.bind(this._syncAttributes,this),this._syncS=c.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var d=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=d?(this._observer=new d(function(c){a.each(c,b._syncA),a.each(c,b._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",b._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",b._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",b._syncS,!1))},e.prototype._registerDataEvents=function(){var a=this;this.dataAdapter.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerSelectionEvents=function(){var b=this,c=["toggle","focus"];this.selection.on("toggle",function(){b.toggleDropdown()}),this.selection.on("focus",function(a){b.focus(a)}),this.selection.on("*",function(d,e){-1===a.inArray(d,c)&&b.trigger(d,e)})},e.prototype._registerDropdownEvents=function(){var a=this;this.dropdown.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerResultsEvents=function(){var a=this;this.results.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerEvents=function(){var a=this;this.on("open",function(){a.$container.addClass("select2-container--open")}),this.on("close",function(){a.$container.removeClass("select2-container--open")}),this.on("enable",function(){a.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){a.$container.addClass("select2-container--disabled")}),this.on("blur",function(){a.$container.removeClass("select2-container--focus")}),this.on("query",function(b){a.isOpen()||a.trigger("open",{}),this.dataAdapter.query(b,function(c){a.trigger("results:all",{data:c,query:b})})}),this.on("query:append",function(b){this.dataAdapter.query(b,function(c){a.trigger("results:append",{data:c,query:b})})}),this.on("keypress",function(b){var c=b.which;a.isOpen()?c===d.ESC||c===d.TAB||c===d.UP&&b.altKey?(a.close(),b.preventDefault()):c===d.ENTER?(a.trigger("results:select",{}),b.preventDefault()):c===d.SPACE&&b.ctrlKey?(a.trigger("results:toggle",{}),b.preventDefault()):c===d.UP?(a.trigger("results:previous",{}),b.preventDefault()):c===d.DOWN&&(a.trigger("results:next",{}),b.preventDefault()):(c===d.ENTER||c===d.SPACE||c===d.DOWN&&b.altKey)&&(a.open(),b.preventDefault())})},e.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},e.prototype._syncSubtree=function(a,b){var c=!1,d=this;if(!a||!a.target||"OPTION"===a.target.nodeName||"OPTGROUP"===a.target.nodeName){if(b)if(b.addedNodes&&b.addedNodes.length>0)for(var e=0;e<b.addedNodes.length;e++){var f=b.addedNodes[e];f.selected&&(c=!0)}else b.removedNodes&&b.removedNodes.length>0&&(c=!0);else c=!0;c&&this.dataAdapter.current(function(a){d.trigger("selection:update",{data:a})})}},e.prototype.trigger=function(a,b){var c=e.__super__.trigger,d={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===b&&(b={}),a in d){var f=d[a],g={prevented:!1,name:a,args:b};if(c.call(this,f,g),g.prevented)return void(b.prevented=!0)}c.call(this,a,b)},e.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},e.prototype.open=function(){this.isOpen()||this.trigger("query",{})},e.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},e.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},e.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},e.prototype.focus=function(a){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},e.prototype.enable=function(a){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),(null==a||0===a.length)&&(a=[!0]);var b=!a[0];this.$element.prop("disabled",b)},e.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var a=[];return this.dataAdapter.current(function(b){a=b}),a},e.prototype.val=function(b){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==b||0===b.length)return this.$element.val();var c=b[0];a.isArray(c)&&(c=a.map(c,function(a){return a.toString()})),this.$element.val(c).trigger("change")},e.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null;
|
3 |
-
},e.prototype.render=function(){var b=a('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return b.attr("dir",this.options.get("dir")),this.$container=b,this.$container.addClass("select2-container--"+this.options.get("theme")),b.data("element",this.$element),b},e}),b.define("select2/compat/utils",["jquery"],function(a){function b(b,c,d){var e,f,g=[];e=a.trim(b.attr("class")),e&&(e=""+e,a(e.split(/\s+/)).each(function(){0===this.indexOf("select2-")&&g.push(this)})),e=a.trim(c.attr("class")),e&&(e=""+e,a(e.split(/\s+/)).each(function(){0!==this.indexOf("select2-")&&(f=d(this),null!=f&&g.push(f))})),b.attr("class",g.join(" "))}return{syncCssClasses:b}}),b.define("select2/compat/containerCss",["jquery","./utils"],function(a,b){function c(a){return null}function d(){}return d.prototype.render=function(d){var e=d.call(this),f=this.options.get("containerCssClass")||"";a.isFunction(f)&&(f=f(this.$element));var g=this.options.get("adaptContainerCssClass");if(g=g||c,-1!==f.indexOf(":all:")){f=f.replace(":all:","");var h=g;g=function(a){var b=h(a);return null!=b?b+" "+a:a}}var i=this.options.get("containerCss")||{};return a.isFunction(i)&&(i=i(this.$element)),b.syncCssClasses(e,this.$element,g),e.css(i),e.addClass(f),e},d}),b.define("select2/compat/dropdownCss",["jquery","./utils"],function(a,b){function c(a){return null}function d(){}return d.prototype.render=function(d){var e=d.call(this),f=this.options.get("dropdownCssClass")||"";a.isFunction(f)&&(f=f(this.$element));var g=this.options.get("adaptDropdownCssClass");if(g=g||c,-1!==f.indexOf(":all:")){f=f.replace(":all:","");var h=g;g=function(a){var b=h(a);return null!=b?b+" "+a:a}}var i=this.options.get("dropdownCss")||{};return a.isFunction(i)&&(i=i(this.$element)),b.syncCssClasses(e,this.$element,g),e.css(i),e.addClass(f),e},d}),b.define("select2/compat/initSelection",["jquery"],function(a){function b(a,b,c){c.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=c.get("initSelection"),this._isInitialized=!1,a.call(this,b,c)}return b.prototype.current=function(b,c){var d=this;return this._isInitialized?void b.call(this,c):void this.initSelection.call(null,this.$element,function(b){d._isInitialized=!0,a.isArray(b)||(b=[b]),c(b)})},b}),b.define("select2/compat/inputData",["jquery"],function(a){function b(a,b,c){this._currentData=[],this._valueSeparator=c.get("valueSeparator")||",","hidden"===b.prop("type")&&c.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 `<select>` element instead."),a.call(this,b,c)}return b.prototype.current=function(b,c){function d(b,c){var e=[];return b.selected||-1!==a.inArray(b.id,c)?(b.selected=!0,e.push(b)):b.selected=!1,b.children&&e.push.apply(e,d(b.children,c)),e}for(var e=[],f=0;f<this._currentData.length;f++){var g=this._currentData[f];e.push.apply(e,d(g,this.$element.val().split(this._valueSeparator)))}c(e)},b.prototype.select=function(b,c){if(this.options.get("multiple")){var d=this.$element.val();d+=this._valueSeparator+c.id,this.$element.val(d),this.$element.trigger("change")}else this.current(function(b){a.map(b,function(a){a.selected=!1})}),this.$element.val(c.id),this.$element.trigger("change")},b.prototype.unselect=function(a,b){var c=this;b.selected=!1,this.current(function(a){for(var d=[],e=0;e<a.length;e++){var f=a[e];b.id!=f.id&&d.push(f.id)}c.$element.val(d.join(c._valueSeparator)),c.$element.trigger("change")})},b.prototype.query=function(a,b,c){for(var d=[],e=0;e<this._currentData.length;e++){var f=this._currentData[e],g=this.matches(b,f);null!==g&&d.push(g)}c({results:d})},b.prototype.addOptions=function(b,c){var d=a.map(c,function(b){return a.data(b[0],"data")});this._currentData.push.apply(this._currentData,d)},b}),b.define("select2/compat/matcher",["jquery"],function(a){function b(b){function c(c,d){var e=a.extend(!0,{},d);if(null==c.term||""===a.trim(c.term))return e;if(d.children){for(var f=d.children.length-1;f>=0;f--){var g=d.children[f],h=b(c.term,g.text,g);h||e.children.splice(f,1)}if(e.children.length>0)return e}return b(c.term,d.text,d)?e:null}return c}return b}),b.define("select2/compat/query",[],function(){function a(a,b,c){c.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `query` option has been deprecated in favor of a custom data adapter that overrides the `query` method. Support will be removed for the `query` option in future versions of Select2."),a.call(this,b,c)}return a.prototype.query=function(a,b,c){b.callback=c;var d=this.options.get("query");d.call(null,b)},a}),b.define("select2/dropdown/attachContainer",[],function(){function a(a,b,c){a.call(this,b,c)}return a.prototype.position=function(a,b,c){var d=c.find(".dropdown-wrapper");d.append(b),b.addClass("select2-dropdown--below"),c.addClass("select2-container--below")},a}),b.define("select2/dropdown/stopPropagation",[],function(){function a(){}return a.prototype.bind=function(a,b,c){a.call(this,b,c);var d=["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"];this.$dropdown.on(d.join(" "),function(a){a.stopPropagation()})},a}),b.define("select2/selection/stopPropagation",[],function(){function a(){}return a.prototype.bind=function(a,b,c){a.call(this,b,c);var d=["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"];this.$selection.on(d.join(" "),function(a){a.stopPropagation()})},a}),function(c){"function"==typeof b.define&&b.define.amd?b.define("jquery-mousewheel",["jquery"],c):"object"==typeof exports?module.exports=c:c(a)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})}),b.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(a,b,c,d){if(null==a.fn.select2){var e=["open","close","destroy"];a.fn.select2=function(b){if(b=b||{},"object"==typeof b)return this.each(function(){var d=a.extend(!0,{},b);new c(a(this),d)}),this;if("string"==typeof b){var d,f=Array.prototype.slice.call(arguments,1);return this.each(function(){var c=a(this).data("select2");null==c&&window.console&&console.error&&console.error("The select2('"+b+"') method was called on an element that is not using Select2."),d=c[b].apply(c,f)}),a.inArray(b,e)>-1?this:d}throw new Error("Invalid arguments for Select2: "+b)}}return null==a.fn.select2.defaults&&(a.fn.select2.defaults=d),c}),{define:b.define,require:b.require}}(),c=b.require("jquery.select2");return a.fn.select2.amd=b,c});
|
|
|
|
|
|
assets/js/select2/select2.min.js
DELETED
@@ -1,13 +0,0 @@
|
|
1 |
-
/*!
|
2 |
-
* Select2 4.0.3
|
3 |
-
* https://select2.github.io
|
4 |
-
*
|
5 |
-
* Released under the MIT license
|
6 |
-
* https://github.com/select2/select2/blob/master/LICENSE.md
|
7 |
-
*/
|
8 |
-
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(e){var t=function(){if(e&&e.fn&&e.fn.select2&&e.fn.select2.amd)t=e.fn.select2.amd;var t;return function(){if(!t||!t.requirejs){t?n=t:t={};/**
|
9 |
-
* @license almond 0.3.1 Copyright (c) 2011-2014, The Dojo Foundation All Rights Reserved.
|
10 |
-
* Available via the MIT or new BSD license.
|
11 |
-
* see: http://github.com/jrburke/almond for details
|
12 |
-
*/
|
13 |
-
var e,n,i;!function(t){function r(e,t){return $.call(e,t)}function s(e,t){var n,i,r,s,o,a,l,c,u,d,p,h=t&&t.split("/"),f=y.map,g=f&&f["*"]||{};if(e&&"."===e.charAt(0))if(t){for(o=(e=e.split("/")).length-1,y.nodeIdCompat&&b.test(e[o])&&(e[o]=e[o].replace(b,"")),e=h.slice(0,h.length-1).concat(e),u=0;u<e.length;u+=1)if("."===(p=e[u]))e.splice(u,1),u-=1;else if(".."===p){if(1===u&&(".."===e[2]||".."===e[0]))break;u>0&&(e.splice(u-1,2),u-=2)}e=e.join("/")}else 0===e.indexOf("./")&&(e=e.substring(2));if((h||g)&&f){for(u=(n=e.split("/")).length;u>0;u-=1){if(i=n.slice(0,u).join("/"),h)for(d=h.length;d>0;d-=1)if((r=f[h.slice(0,d).join("/")])&&(r=r[i])){s=r,a=u;break}if(s)break;!l&&g&&g[i]&&(l=g[i],c=u)}!s&&l&&(s=l,a=c),s&&(n.splice(0,a,s),e=n.join("/"))}return e}function o(e,n){return function(){var i=w.call(arguments,0);return"string"!=typeof i[0]&&1===i.length&&i.push(null),h.apply(t,i.concat([e,n]))}}function a(e){return function(t){return s(t,e)}}function l(e){return function(t){m[e]=t}}function c(e){if(r(v,e)){var n=v[e];delete v[e],_[e]=!0,p.apply(t,n)}if(!r(m,e)&&!r(_,e))throw new Error("No "+e);return m[e]}function u(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function d(e){return function(){return y&&y.config&&y.config[e]||{}}}var p,h,f,g,m={},v={},y={},_={},$=Object.prototype.hasOwnProperty,w=[].slice,b=/\.js$/;f=function(e,t){var n,i=u(e),r=i[0];return e=i[1],r&&(n=c(r=s(r,t))),r?e=n&&n.normalize?n.normalize(e,a(t)):s(e,t):(r=(i=u(e=s(e,t)))[0],e=i[1],r&&(n=c(r))),{f:r?r+"!"+e:e,n:e,pr:r,p:n}},g={require:function(e){return o(e)},exports:function(e){var t=m[e];return void 0!==t?t:m[e]={}},module:function(e){return{id:e,uri:"",exports:m[e],config:d(e)}}},p=function(e,n,i,s){var a,u,d,p,h,y,$=[],w=typeof i;if(s=s||e,"undefined"===w||"function"===w){for(n=!n.length&&i.length?["require","exports","module"]:n,h=0;h<n.length;h+=1)if(p=f(n[h],s),"require"===(u=p.f))$[h]=g.require(e);else if("exports"===u)$[h]=g.exports(e),y=!0;else if("module"===u)a=$[h]=g.module(e);else if(r(m,u)||r(v,u)||r(_,u))$[h]=c(u);else{if(!p.p)throw new Error(e+" missing "+u);p.p.load(p.n,o(s,!0),l(u),{}),$[h]=m[u]}d=i?i.apply(m[e],$):undefined,e&&(a&&a.exports!==t&&a.exports!==m[e]?m[e]=a.exports:d===t&&y||(m[e]=d))}else e&&(m[e]=i)},e=n=h=function(e,n,i,r,s){if("string"==typeof e)return g[e]?g[e](n):c(f(e,n).f);if(!e.splice){if((y=e).deps&&h(y.deps,y.callback),!n)return;n.splice?(e=n,n=i,i=null):e=t}return n=n||function(){},"function"==typeof i&&(i=r,r=s),r?p(t,e,n,i):setTimeout(function(){p(t,e,n,i)},4),h},h.config=function(e){return h(e)},e._defined=m,(i=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),r(m,e)||r(v,e)||(v[e]=[e,t,n])}).amd={jQuery:!0}}(),t.requirejs=e,t.require=n,t.define=i}}(),t.define("almond",function(){}),t.define("jquery",[],function(){var t=e||$;return null==t&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),t}),t.define("select2/utils",["jquery"],function(e){function t(e){var t=e.prototype,n=[];for(var i in t)"function"==typeof t[i]&&"constructor"!==i&&n.push(i);return n}var n={};n.Extend=function(e,t){function n(){this.constructor=e}var i={}.hasOwnProperty;for(var r in t)i.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},n.Decorate=function(e,n){function i(){var t=Array.prototype.unshift,i=n.prototype.constructor.length,r=e.prototype.constructor;i>0&&(t.call(arguments,e.prototype.constructor),r=n.prototype.constructor),r.apply(this,arguments)}var r=t(n),s=t(e);n.displayName=e.displayName,i.prototype=new function(){this.constructor=i};for(var o=0;o<s.length;o++){var a=s[o];i.prototype[a]=e.prototype[a]}for(var l=0;l<r.length;l++){var c=r[l];i.prototype[c]=function(e){var t=function(){};e in i.prototype&&(t=i.prototype[e]);var r=n.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),r.apply(this,arguments)}}(c)}return i};var i=function(){this.listeners={}};return i.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},i.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),n[0]._type=e,e in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},i.prototype.invoke=function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].apply(this,t)},n.Observable=i,n.generateChars=function(e){for(var t="",n=0;n<e;n++)t+=Math.floor(36*Math.random()).toString(36);return t},n.bind=function(e,t){return function(){e.apply(t,arguments)}},n._convertData=function(e){for(var t in e){var n=t.split("-"),i=e;if(1!==n.length){for(var r=0;r<n.length;r++){var s=n[r];(s=s.substring(0,1).toLowerCase()+s.substring(1))in i||(i[s]={}),r==n.length-1&&(i[s]=e[t]),i=i[s]}delete e[t]}}return e},n.hasScroll=function(t,n){var i=e(n),r=n.style.overflowX,s=n.style.overflowY;return(r!==s||"hidden"!==s&&"visible"!==s)&&("scroll"===r||"scroll"===s||(i.innerHeight()<n.scrollHeight||i.innerWidth()<n.scrollWidth))},n.escapeMarkup=function(e){var t={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},n.appendMany=function(t,n){if("1.7"===e.fn.jquery.substr(0,3)){var i=e();e.map(n,function(e){i=i.add(e)}),n=i}t.append(n)},n}),t.define("select2/results",["jquery","./utils"],function(e,t){function n(e,t,i){this.$element=e,this.data=i,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<ul class="select2-results__options" role="tree"></ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t,t},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(t){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var i=e('<li role="treeitem" aria-live="assertive" class="select2-results__option"></li>'),r=this.options.get("translations").get(t.message);i.append(n(r(t.args))),i[0].className+=" select2-results__message",this.$results.append(i)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.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<e.results.length;n++){var i=e.results[n],r=this.option(i);t.push(r)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},n.prototype.position=function(e,t){t.find(".select2-results").append(e)},n.prototype.sort=function(e){return this.options.get("sorter")(e)},n.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");t.length>0?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},n.prototype.setClasses=function(){var t=this;this.data.current(function(n){var i=e.map(n,function(e){return e.id.toString()});t.$results.find(".select2-results__option[aria-selected]").each(function(){var t=e(this),n=e.data(this,"data"),r=""+n.id;null!=n.element&&n.element.selected||null==n.element&&e.inArray(r,i)>-1?t.attr("aria-selected","true"):t.attr("aria-selected","false")})})},n.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},n.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},n.prototype.option=function(t){var n=document.createElement("li");n.className="select2-results__option";var i={role:"treeitem","aria-selected":"false"};t.disabled&&(delete i["aria-selected"],i["aria-disabled"]="true"),null==t.id&&delete i["aria-selected"],null!=t._resultId&&(n.id=t._resultId),t.title&&(n.title=t.title),t.children&&(i.role="group",i["aria-label"]=t.text,delete i["aria-selected"]);for(var r in i){var s=i[r];n.setAttribute(r,s)}if(t.children){var o=e(n),a=document.createElement("strong");a.className="select2-results__group";e(a);this.template(t,a);for(var l=[],c=0;c<t.children.length;c++){var u=t.children[c],d=this.option(u);l.push(d)}var p=e("<ul></ul>",{"class":"select2-results__options select2-results__options--nested"});p.append(l),o.append(a),o.append(p)}else this.template(t,n);return e.data(n,"data",t),n},n.prototype.bind=function(t,n){var i=this,r=t.id+"-results";this.$results.attr("id",r),t.on("results:all",function(e){i.clear(),i.append(e.data),t.isOpen()&&(i.setClasses(),i.highlightFirstItem())}),t.on("results:append",function(e){i.append(e.data),t.isOpen()&&i.setClasses()}),t.on("query",function(e){i.hideMessages(),i.showLoading(e)}),t.on("select",function(){t.isOpen()&&(i.setClasses(),i.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(i.setClasses(),i.highlightFirstItem())}),t.on("open",function(){i.$results.attr("aria-expanded","true"),i.$results.attr("aria-hidden","false"),i.setClasses(),i.ensureHighlightVisible()}),t.on("close",function(){i.$results.attr("aria-expanded","false"),i.$results.attr("aria-hidden","true"),i.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=i.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=i.getHighlightedResults();if(0!==e.length){var t=e.data("data");"true"==e.attr("aria-selected")?i.trigger("close",{}):i.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=i.getHighlightedResults(),t=i.$results.find("[aria-selected]"),n=t.index(e);if(0!==n){var r=n-1;0===e.length&&(r=0);var s=t.eq(r);s.trigger("mouseenter");var o=i.$results.offset().top,a=s.offset().top,l=i.$results.scrollTop()+(a-o);0===r?i.$results.scrollTop(0):a-o<0&&i.$results.scrollTop(l)}}),t.on("results:next",function(){var e=i.getHighlightedResults(),t=i.$results.find("[aria-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var r=t.eq(n);r.trigger("mouseenter");var s=i.$results.offset().top+i.$results.outerHeight(!1),o=r.offset().top+r.outerHeight(!1),a=i.$results.scrollTop()+o-s;0===n?i.$results.scrollTop(0):o>s&&i.$results.scrollTop(a)}}),t.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted")}),t.on("results:message",function(e){i.displayMessage(e)}),e.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=i.$results.scrollTop(),n=i.$results.get(0).scrollHeight-t+e.deltaY,r=e.deltaY>0&&t-e.deltaY<=0,s=e.deltaY<0&&n<=i.$results.height();r?(i.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):s&&(i.$results.scrollTop(i.$results.get(0).scrollHeight-i.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(t){var n=e(this),r=n.data("data");"true"!==n.attr("aria-selected")?i.trigger("select",{originalEvent:t,data:r}):i.options.get("multiple")?i.trigger("unselect",{originalEvent:t,data:r}):i.trigger("close",{})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(t){var n=e(this).data("data");i.getHighlightedResults().removeClass("select2-results__option--highlighted"),i.trigger("results:focus",{data:n,element:e(this)})})},n.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},n.prototype.destroy=function(){this.$results.remove()},n.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]").index(e),n=this.$results.offset().top,i=e.offset().top,r=this.$results.scrollTop()+(i-n),s=i-n;r-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(s>this.$results.outerHeight()||s<0)&&this.$results.scrollTop(r)}},n.prototype.template=function(t,n){var i=this.options.get("templateResult"),r=this.options.get("escapeMarkup"),s=i(t,n);null==s?n.style.display="none":"string"==typeof s?n.innerHTML=r(s):e(n).append(s)},n}),t.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}}),t.define("select2/selection/base",["jquery","../utils","../keys"],function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=e('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),t.attr("title",this.$element.attr("title")),t.attr("tabindex",this._tabindex),this.$selection=t,t},i.prototype.bind=function(e,t){var i=this,r=(e.id,e.id+"-results");this.container=e,this.$selection.on("focus",function(e){i.trigger("focus",e)}),this.$selection.on("blur",function(e){i._handleBlur(e)}),this.$selection.on("keydown",function(e){i.trigger("keypress",e),e.which===n.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){i.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){i.update(e.data)}),e.on("open",function(){i.$selection.attr("aria-expanded","true"),i.$selection.attr("aria-owns",r),i._attachCloseHandler(e)}),e.on("close",function(){i.$selection.attr("aria-expanded","false"),i.$selection.removeAttr("aria-activedescendant"),i.$selection.removeAttr("aria-owns"),i.$selection.focus(),i._detachCloseHandler(e)}),e.on("enable",function(){i.$selection.attr("tabindex",i._tabindex)}),e.on("disable",function(){i.$selection.attr("tabindex","-1")})},i.prototype._handleBlur=function(t){var n=this;window.setTimeout(function(){document.activeElement==n.$selection[0]||e.contains(n.$selection[0],document.activeElement)||n.trigger("blur",t)},1)},i.prototype._attachCloseHandler=function(t){e(document.body).on("mousedown.select2."+t.id,function(t){var n=e(t.target).closest(".select2");e(".select2.select2-container--open").each(function(){var t=e(this);this!=n[0]&&t.data("element").select2("close")})})},i.prototype._detachCloseHandler=function(t){e(document.body).off("mousedown.select2."+t.id)},i.prototype.position=function(e,t){t.find(".selection").append(e)},i.prototype.destroy=function(){this._detachCloseHandler(this.container)},i.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},i}),t.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('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},r.prototype.bind=function(e,t){var n=this;r.__super__.bind.apply(this,arguments);var i=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i),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){}),e.on("focus",function(t){e.isOpen()||n.$selection.focus()}),e.on("selection:update",function(e){n.update(e.data)})},r.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},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("<span></span>")},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),n.prop("title",t.title||t.text)}else this.clear()},r}),t.define("select2/selection/multiple",["jquery","./base","../utils"],function(e,t,n){function i(e,t){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},i.prototype.bind=function(t,n){var r=this;i.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){r.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(t){if(!r.options.get("disabled")){var n=e(this).parent().data("data");r.trigger("unselect",{originalEvent:t,data:n})}})},i.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">×</span></li>')},i.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],i=0;i<e.length;i++){var r=e[i],s=this.selectionContainer(),o=this.display(r,s);s.append(o),s.prop("title",r.title||r.text),s.data("data",r),t.push(s)}var a=this.$selection.find(".select2-selection__rendered");n.appendMany(a,t)}},i}),t.define("select2/selection/placeholder",["../utils"],function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},t.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(t.length>1||n)return e.call(this,t);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},t}),t.define("select2/selection/allowClear",["jquery","../keys"],function(e,t){function n(){}return n.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){i._handleClear(e)}),t.on("keypress",function(e){i._handleKeyboardClear(e,t)})},n.prototype._handleClear=function(e,t){if(!this.options.get("disabled")){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();for(var i=n.data("data"),r=0;r<i.length;r++){var s={data:i[r]};if(this.trigger("unselect",s),s.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},n.prototype._handleKeyboardClear=function(e,n,i){i.isOpen()||n.which!=t.DELETE&&n.which!=t.BACKSPACE||this._handleClear(n)},n.prototype.update=function(t,n){if(t.call(this,n),!(this.$selection.find(".select2-selection__placeholder").length>0||0===n.length)){var i=e('<span class="select2-selection__clear">×</span>');i.data("data",n),this.$selection.find(".select2-selection__rendered").prepend(i)}},n}),t.define("select2/selection/search",["jquery","../utils","../keys"],function(e,t,n){function i(e,t,n){e.call(this,t,n)}return i.prototype.render=function(t){var n=e('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=n,this.$search=n.find("input");var i=t.call(this);return this._transferTabIndex(),i},i.prototype.bind=function(e,t,i){var r=this;e.call(this,t,i),t.on("open",function(){r.$search.trigger("focus")}),t.on("close",function(){r.$search.val(""),r.$search.removeAttr("aria-activedescendant"),r.$search.trigger("focus")}),t.on("enable",function(){r.$search.prop("disabled",!1),r._transferTabIndex()}),t.on("disable",function(){r.$search.prop("disabled",!0)}),t.on("focus",function(e){r.$search.trigger("focus")}),t.on("results:focus",function(e){r.$search.attr("aria-activedescendant",e.id)}),this.$selection.on("focusin",".select2-search--inline",function(e){r.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){r._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){if(e.stopPropagation(),r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented(),e.which===n.BACKSPACE&&""===r.$search.val()){var t=r.$searchContainer.prev(".select2-selection__choice");if(t.length>0){var i=t.data("data");r.searchRemoveChoice(i),e.preventDefault()}}});var s=document.documentMode,o=s&&s<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){o?r.$selection.off("input.search input.searchcheck"):r.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(o&&"input"===e.type)r.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=n.SHIFT&&t!=n.CTRL&&t!=n.ALT&&t!=n.TAB&&r.handleSearch(e)}})},i.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},i.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},i.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.focus()},i.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},i.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},i.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";e=""!==this.$search.attr("placeholder")?this.$selection.find(".select2-selection__rendered").innerWidth():.75*(this.$search.val().length+1)+"em",this.$search.css("width",e)},i}),t.define("select2/selection/eventRelay",["jquery"],function(e){function t(){}return t.prototype.bind=function(t,n,i){var r=this,s=["open","opening","close","closing","select","selecting","unselect","unselecting"],o=["opening","closing","selecting","unselecting"];t.call(this,n,i),n.on("*",function(t,n){if(-1!==e.inArray(t,s)){n=n||{};var i=e.Event("select2:"+t,{params:n});r.$element.trigger(i),-1!==e.inArray(t,o)&&(n.prevented=i.isDefaultPrevented())}})},t}),t.define("select2/translation",["jquery","require"],function(e,t){function n(e){this.dict=e||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(e){return this.dict[e]},n.prototype.extend=function(t){this.dict=e.extend({},t.all(),this.dict)},n._cache={},n.loadPath=function(e){if(!(e in n._cache)){var i=t(e);n._cache[e]=i}return new n(n._cache[e])},n}),t.define("select2/diacritics",[],function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"}}),t.define("select2/data/base",["../utils"],function(e){function t(e,n){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},t.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},t.prototype.bind=function(e,t){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,n){var i=t.id+"-result-";return i+=e.generateChars(4),null!=n.id?i+="-"+n.id.toString():i+="-"+e.generateChars(4),i},t}),t.define("select2/data/select",["./base","../utils","jquery"],function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,e),i.prototype.current=function(e){var t=[],i=this;this.$element.find(":selected").each(function(){var e=n(this),r=i.item(e);t.push(r)}),e(t)},i.prototype.select=function(e){var t=this;if(e.selected=!0,n(e.element).is("option"))return e.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(i){var r=[];(e=[e]).push.apply(e,i);for(var s=0;s<e.length;s++){var o=e[s].id;-1===n.inArray(o,r)&&r.push(o)}t.$element.val(r),t.$element.trigger("change")});else{var i=e.id;this.$element.val(i),this.$element.trigger("change")}},i.prototype.unselect=function(e){var t=this;if(this.$element.prop("multiple")){if(e.selected=!1,n(e.element).is("option"))return e.element.selected=!1,void this.$element.trigger("change");this.current(function(i){for(var r=[],s=0;s<i.length;s++){var o=i[s].id;o!==e.id&&-1===n.inArray(o,r)&&r.push(o)}t.$element.val(r),t.$element.trigger("change")})}},i.prototype.bind=function(e,t){var n=this;this.container=e,e.on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},i.prototype.destroy=function(){this.$element.find("*").each(function(){n.removeData(this,"data")})},i.prototype.query=function(e,t){var i=[],r=this;this.$element.children().each(function(){var t=n(this);if(t.is("option")||t.is("optgroup")){var s=r.item(t),o=r.matches(e,s);null!==o&&i.push(o)}}),t({results:i})},i.prototype.addOptions=function(e){t.appendMany(this.$element,e)},i.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup")).label=e.text:(t=document.createElement("option")).textContent!==undefined?t.textContent=e.text:t.innerText=e.text,e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var i=n(t),r=this._normalizeItem(e);return r.element=t,n.data(t,"data",r),i},i.prototype.item=function(e){var t={};if(null!=(t=n.data(e[0],"data")))return t;if(e.is("option"))t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var i=e.children("option"),r=[],s=0;s<i.length;s++){var o=n(i[s]),a=this.item(o);r.push(a)}t.children=r}return t=this._normalizeItem(t),t.element=e[0],n.data(e[0],"data",t),t},i.prototype._normalizeItem=function(e){n.isPlainObject(e)||(e={id:e,text:e});var t={selected:!1,disabled:!1};return null!=(e=n.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),n.extend({},t,e)},i.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},i}),t.define("select2/data/array",["./select","../utils","jquery"],function(e,t,n){function i(e,t){var n=t.get("data")||[];i.__super__.constructor.call(this,e,t),this.addOptions(this.convertToOptions(n))}return t.Extend(i,e),i.prototype.select=function(e){var t=this.$element.find("option").filter(function(t,n){return n.value==e.id.toString()});0===t.length&&(t=this.option(e),this.addOptions(t)),i.__super__.select.call(this,e)},i.prototype.convertToOptions=function(e){for(var i=this,r=this.$element.find("option"),s=r.map(function(){return i.item(n(this)).id}).get(),o=[],a=0;a<e.length;a++){var l=this._normalizeItem(e[a]);if(n.inArray(l.id,s)>=0){var c=r.filter(function(e){return function(){return n(this).val()==e.id}}(l)),u=this.item(c),d=n.extend(!0,{},l,u),p=this.option(d);c.replaceWith(p)}else{var h=this.option(l);if(l.children){var f=this.convertToOptions(l.children);t.appendMany(h,f)}o.push(h)}}return o},i}),t.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,n){function i(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),i.__super__.constructor.call(this,e,t)}return t.Extend(i,e),i.prototype._applyDefaults=function(e){var t={data:function(e){return n.extend({},e,{q:e.term})},transport:function(e,t,i){var r=n.ajax(e);return r.then(t),r.fail(i),r}};return n.extend({},t,e,!0)},i.prototype.processResults=function(e){return e},i.prototype.query=function(e,t){function i(){var i=s.transport(s,function(i){var s=r.processResults(i,e);r.options.get("debug")&&window.console&&console.error&&(s&&s.results&&n.isArray(s.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),t(s)},function(){i.status&&"0"===i.status||r.trigger("results:message",{message:"errorLoading"})});r._request=i}var r=this;null!=this._request&&(n.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var s=n.extend({type:"GET"},this.ajaxOptions);"function"==typeof s.url&&(s.url=s.url.call(this.$element,e)),"function"==typeof s.data&&(s.data=s.data.call(this.$element,e)),this.ajaxOptions.delay&&null!=e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(i,this.ajaxOptions.delay)):i()},i}),t.define("select2/data/tags",["jquery"],function(e){function t(t,n,i){var r=i.get("tags"),s=i.get("createTag");s!==undefined&&(this.createTag=s);var o=i.get("insertTag");if(o!==undefined&&(this.insertTag=o),t.call(this,n,i),e.isArray(r))for(var a=0;a<r.length;a++){var l=r[a],c=this._normalizeItem(l),u=this.option(c);this.$element.append(u)}}return t.prototype.query=function(e,t,n){function i(e,s){for(var o=e.results,a=0;a<o.length;a++){var l=o[a],c=null!=l.children&&!i({results:l.children},!0);if(l.text===t.term||c)return!s&&(e.data=o,void n(e))}if(s)return!0;var u=r.createTag(t);if(null!=u){var d=r.option(u);d.attr("data-select2-tag",!0),r.addOptions([d]),r.insertTag(o,u)}e.results=o,n(e)}var r=this;this._removeOldTags(),null!=t.term&&null==t.page?e.call(this,t,i):e.call(this,t,n)},t.prototype.createTag=function(t,n){var i=e.trim(n.term);return""===i?null:{id:i,text:i}},t.prototype.insertTag=function(e,t,n){t.unshift(n)},t.prototype._removeOldTags=function(t){this._lastTag;this.$element.find("option[data-select2-tag]").each(function(){this.selected||e(this).remove()})},t}),t.define("select2/data/tokenizer",["jquery"],function(e){function t(e,t,n){var i=n.get("tokenizer");i!==undefined&&(this.tokenizer=i),e.call(this,t,n)}return t.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},t.prototype.query=function(t,n,i){function r(e){s.trigger("select",{data:e})}var s=this;n.term=n.term||"";var o=this.tokenizer(n,this.options,function(t){var n=s._normalizeItem(t);if(!s.$element.find("option").filter(function(){return e(this).val()===n.id}).length){var i=s.option(n);i.attr("data-select2-tag",!0),s._removeOldTags(),s.addOptions([i])}r(n)});o.term!==n.term&&(this.$search.length&&(this.$search.val(o.term),this.$search.focus()),n.term=o.term),t.call(this,n,i)},t.prototype.tokenizer=function(t,n,i,r){for(var s=i.get("tokenSeparators")||[],o=n.term,a=0,l=this.createTag||function(e){return{id:e.term,text:e.term}};a<o.length;){var c=o[a];if(-1!==e.inArray(c,s)){var u=o.substr(0,a),d=l(e.extend({},n,{term:u}));null!=d?(r(d),o=o.substr(a+1)||"",a=0):a++}else a++}return{term:o}},t}),t.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),t.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",this.maximumInputLength>0&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),t.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){var i=this;this.current(function(r){var s=null!=r?r.length:0;i.maximumSelectionLength>0&&s>=i.maximumSelectionLength?i.trigger("results:message",{message:"maximumSelected",args:{maximum:i.maximumSelectionLength}}):e.call(i,t,n)})},e}),t.define("select2/dropdown",["jquery","./utils"],function(e,t){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<span class="select2-dropdown"><span class="select2-results"></span></span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t,t},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),t.define("select2/dropdown/search",["jquery","../utils"],function(e,t){function n(){}return n.prototype.render=function(t){var n=t.call(this),i=e('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=i,this.$search=i.find("input"),n.prepend(i),n},n.prototype.bind=function(t,n,i){var r=this;t.call(this,n,i),this.$search.on("keydown",function(e){r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(t){e(this).off("keyup")}),this.$search.on("keyup input",function(e){r.handleSearch(e)}),n.on("open",function(){r.$search.attr("tabindex",0),r.$search.focus(),window.setTimeout(function(){r.$search.focus()},0)}),n.on("close",function(){r.$search.attr("tabindex",-1),r.$search.val("")}),n.on("focus",function(){n.isOpen()&&r.$search.focus()}),n.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(r.showSearch(e)?r.$searchContainer.removeClass("select2-search--hide"):r.$searchContainer.addClass("select2-search--hide"))})},n.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},n.prototype.showSearch=function(e,t){return!0},n}),t.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;i>=0;i--){var r=t[i];this.placeholder.id===r.id&&n.splice(i,1)}return n},e}),t.define("select2/dropdown/infiniteScroll",["jquery"],function(e){function t(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&this.$results.append(this.$loadingMore)},t.prototype.bind=function(t,n,i){var r=this;t.call(this,n,i),n.on("query",function(e){r.lastParams=e,r.loading=!0}),n.on("query:append",function(e){r.lastParams=e,r.loading=!0}),this.$results.on("scroll",function(){var t=e.contains(document.documentElement,r.$loadingMore[0]);!r.loading&&t&&r.$results.offset().top+r.$results.outerHeight(!1)+50>=r.$loadingMore.offset().top+r.$loadingMore.outerHeight(!1)&&r.loadMore()})},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e('<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),n=this.options.get("translations").get("loadingMore");return t.html(n(this.lastParams)),t},t}),t.define("select2/dropdown/attachBody",["jquery","../utils"],function(e,t){function n(t,n,i){this.$dropdownParent=i.get("dropdownParent")||e(document.body),t.call(this,n,i)}return n.prototype.bind=function(e,t,n){var i=this,r=!1;e.call(this,t,n),t.on("open",function(){i._showDropdown(),i._attachPositioningHandler(t),r||(r=!0,t.on("results:all",function(){i._positionDropdown(),i._resizeDropdown()}),t.on("results:append",function(){i._positionDropdown(),i._resizeDropdown()}))}),t.on("close",function(){i._hideDropdown(),i._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},n.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},n.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},n.prototype.render=function(t){var n=e("<span></span>"),i=t.call(this);return n.append(i),this.$dropdownContainer=n,n},n.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},n.prototype._attachPositioningHandler=function(n,i){var r=this,s="scroll.select2."+i.id,o="resize.select2."+i.id,a="orientationchange.select2."+i.id,l=this.$container.parents().filter(t.hasScroll);l.each(function(){e(this).data("select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})}),l.on(s,function(t){var n=e(this).data("select2-scroll-position");e(this).scrollTop(n.y)}),e(window).on(s+" "+o+" "+a,function(e){r._positionDropdown(),r._resizeDropdown()})},n.prototype._detachPositioningHandler=function(n,i){var r="scroll.select2."+i.id,s="resize.select2."+i.id,o="orientationchange.select2."+i.id;this.$container.parents().filter(t.hasScroll).off(r),e(window).off(r+" "+s+" "+o)},n.prototype._positionDropdown=function(){var t=e(window),n=this.$dropdown.hasClass("select2-dropdown--above"),i=this.$dropdown.hasClass("select2-dropdown--below"),r=null,s=this.$container.offset();s.bottom=s.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=s.top,o.bottom=s.top+o.height;var a={height:this.$dropdown.outerHeight(!1)},l={top:t.scrollTop(),bottom:t.scrollTop()+t.height()},c=l.top<s.top-a.height,u=l.bottom>s.bottom+a.height,d={left:s.left,top:o.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var h=p.offset();d.top-=h.top,d.left-=h.left,n||i||(r="below"),u||!c||n?!c&&u&&n&&(r="below"):r="above",("above"==r||n&&"below"!==r)&&(d.top=o.top-h.top-a.height),null!=r&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+r),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+r)),this.$dropdownContainer.css(d)},n.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)},n.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n}),t.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(t){for(var n=0,i=0;i<t.length;i++){var r=t[i];r.children?n+=e(r.children):n++}return n}function t(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=Infinity),e.call(this,t,n,i)}return t.prototype.showSearch=function(t,n){return!(e(n.data.results)<this.minimumResultsForSearch)&&t.call(this,n)},t}),t.define("select2/dropdown/selectOnClose",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("close",function(e){i._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){var n=t.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var i=this.getHighlightedResults();if(!(i.length<1)){var r=i.data("data");null!=r.element&&r.element.selected||null==r.element&&r.selected||this.trigger("select",{data:r})}},e}),t.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(e){i._selectTriggered(e)}),t.on("unselect",function(e){i._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&n.ctrlKey||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),t.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),t.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(e,t,n,i,r,s,o,a,l,c,u,d,p,h,f,g,m,v,y,_,$,w,b,A,x,E,C,O,S){function T(){this.reset()}return T.prototype.apply=function(d){if(null==(d=e.extend(!0,{},this.defaults,d)).dataAdapter){if(null!=d.ajax?d.dataAdapter=f:null!=d.data?d.dataAdapter=h:d.dataAdapter=p,d.minimumInputLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,v)),d.maximumInputLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,y)),d.maximumSelectionLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,_)),d.tags&&(d.dataAdapter=c.Decorate(d.dataAdapter,g)),null==d.tokenSeparators&&null==d.tokenizer||(d.dataAdapter=c.Decorate(d.dataAdapter,m)),null!=d.query){var S=t(d.amdBase+"compat/query");d.dataAdapter=c.Decorate(d.dataAdapter,S)}if(null!=d.initSelection){var T=t(d.amdBase+"compat/initSelection");d.dataAdapter=c.Decorate(d.dataAdapter,T)}}if(null==d.resultsAdapter&&(d.resultsAdapter=n,null!=d.ajax&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,A)),null!=d.placeholder&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,b)),d.selectOnClose&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,C))),null==d.dropdownAdapter){if(d.multiple)d.dropdownAdapter=$;else{var D=c.Decorate($,w);d.dropdownAdapter=D}if(0!==d.minimumResultsForSearch&&(d.dropdownAdapter=c.Decorate(d.dropdownAdapter,E)),d.closeOnSelect&&(d.dropdownAdapter=c.Decorate(d.dropdownAdapter,O)),null!=d.dropdownCssClass||null!=d.dropdownCss||null!=d.adaptDropdownCssClass){var q=t(d.amdBase+"compat/dropdownCss");d.dropdownAdapter=c.Decorate(d.dropdownAdapter,q)}d.dropdownAdapter=c.Decorate(d.dropdownAdapter,x)}if(null==d.selectionAdapter){if(d.multiple?d.selectionAdapter=r:d.selectionAdapter=i,null!=d.placeholder&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,s)),d.allowClear&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,o)),d.multiple&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,a)),null!=d.containerCssClass||null!=d.containerCss||null!=d.adaptContainerCssClass){var L=t(d.amdBase+"compat/containerCss");d.selectionAdapter=c.Decorate(d.selectionAdapter,L)}d.selectionAdapter=c.Decorate(d.selectionAdapter,l)}if("string"==typeof d.language)if(d.language.indexOf("-")>0){var j=d.language.split("-")[0];d.language=[d.language,j]}else d.language=[d.language];if(e.isArray(d.language)){var P=new u;d.language.push("en");for(var k=d.language,I=0;I<k.length;I++){var R=k[I],M={};try{M=u.loadPath(R)}catch(z){try{R=this.defaults.amdLanguageBase+R,M=u.loadPath(R)}catch(N){d.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+R+'" could not be automatically loaded. A fallback will be used instead.');continue}}P.extend(M)}d.translations=P}else{var U=u.loadPath(this.defaults.amdLanguageBase+"en"),H=new u(d.language);H.extend(U),d.translations=H}return d},T.prototype.reset=function(){function t(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return d[e]||e})}function n(i,r){if(""===e.trim(i.term))return r;if(r.children&&r.children.length>0){for(var s=e.extend(!0,{},r),o=r.children.length-1;o>=0;o--)null==n(i,r.children[o])&&s.children.splice(o,1);return s.children.length>0?s:n(i,s)}var a=t(r.text).toUpperCase(),l=t(i.term).toUpperCase();return a.indexOf(l)>-1?r:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:c.escapeMarkup,language:S,matcher:n,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},T.prototype.set=function(t,n){var i={};i[e.camelCase(t)]=n;var r=c._convertData(i);e.extend(this.defaults,r)},new T}),t.define("select2/options",["require","jquery","./defaults","./utils"],function(e,t,n,i){function r(t,r){if(this.options=t,null!=r&&this.fromElement(r),this.options=n.apply(this.options),r&&r.is("input")){var s=e(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=i.Decorate(this.options.dataAdapter,s)}}return r.prototype.fromElement=function(e){var n=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.language&&(e.prop("lang")?this.options.language=e.prop("lang").toLowerCase():e.closest("[lang]").prop("lang")&&(this.options.language=e.closest("[lang]").prop("lang"))),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),e.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),e.data("data",e.data("select2Tags")),e.data("tags",!0)),e.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",e.data("ajaxUrl")),e.data("ajax--url",e.data("ajaxUrl")));var r={};r=t.fn.jquery&&"1."==t.fn.jquery.substr(0,2)&&e[0].dataset?t.extend(!0,{},e[0].dataset,e.data()):e.data();var s=t.extend(!0,{},r);s=i._convertData(s);for(var o in s)t.inArray(o,n)>-1||(t.isPlainObject(this.options[o])?t.extend(this.options[o],s[o]):this.options[o]=s[o]);return this},r.prototype.get=function(e){return this.options[e]},r.prototype.set=function(e,t){this.options[e]=t},r}),t.define("select2/core",["jquery","./options","./utils","./keys"],function(e,t,n,i){var r=function(e,n){null!=e.data("select2")&&e.data("select2").destroy(),this.$element=e,this.id=this._generateId(e),n=n||{},this.options=new t(n,e),r.__super__.constructor.call(this);var i=e.attr("tabindex")||0;e.data("old-tabindex",i),e.attr("tabindex","-1");var s=this.options.get("dataAdapter");this.dataAdapter=new s(e,this.options);var o=this.render();this._placeContainer(o);var a=this.options.get("selectionAdapter");this.selection=new a(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,o);var l=this.options.get("dropdownAdapter");this.dropdown=new l(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,o);var c=this.options.get("resultsAdapter");this.results=new c(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var u=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){u.trigger("selection:update",{data:e})}),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),e.data("select2",this)};return n.Extend(r,n.Observable),r.prototype._generateId=function(e){var t="";return t=null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+n.generateChars(2):n.generateChars(4),t=t.replace(/(:|\.|\[|\]|,)/g,""),t="select2-"+t},r.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},r.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var i=this._resolveWidth(e,"style");return null!=i?i:this._resolveWidth(e,"element")}if("element"==t){var r=e.outerWidth(!1);return r<=0?"auto":r+"px"}if("style"==t){var s=e.attr("style");if("string"!=typeof s)return null;for(var o=s.split(";"),a=0,l=o.length;a<l;a+=1){var c=o[a].replace(/\s/g,"").match(n);if(null!==c&&c.length>=1)return c[1]}return null}return t},r.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},r.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2",function(e){t.trigger("focus",e)}),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var i=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=i?(this._observer=new i(function(n){e.each(n,t._syncA),e.each(n,t._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},r.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on("*",function(t,n){e.trigger(t,n)})},r.prototype._registerSelectionEvents=function(){var t=this,n=["toggle","focus"];this.selection.on("toggle",function(){t.toggleDropdown()}),this.selection.on("focus",function(e){t.focus(e)}),this.selection.on("*",function(i,r){-1===e.inArray(i,n)&&t.trigger(i,r)})},r.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on("*",function(t,n){e.trigger(t,n)})},r.prototype._registerResultsEvents=function(){var e=this;this.results.on("*",function(t,n){e.trigger(t,n)})},r.prototype._registerEvents=function(){var e=this;this.on("open",function(){e.$container.addClass("select2-container--open")}),this.on("close",function(){e.$container.removeClass("select2-container--open")}),this.on("enable",function(){e.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){e.$container.addClass("select2-container--disabled")}),this.on("blur",function(){e.$container.removeClass("select2-container--focus")}),this.on("query",function(t){e.isOpen()||e.trigger("open",{}),this.dataAdapter.query(t,function(n){e.trigger("results:all",{data:n,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(n){e.trigger("results:append",{data:n,query:t})})}),this.on("keypress",function(t){var n=t.which;e.isOpen()?n===i.ESC||n===i.TAB||n===i.UP&&t.altKey?(e.close(),t.preventDefault()):n===i.ENTER?(e.trigger("results:select",{}),t.preventDefault()):n===i.SPACE&&t.ctrlKey?(e.trigger("results:toggle",{}),t.preventDefault()):n===i.UP?(e.trigger("results:previous",{}),t.preventDefault()):n===i.DOWN&&(e.trigger("results:next",{}),t.preventDefault()):(n===i.ENTER||n===i.SPACE||n===i.DOWN&&t.altKey)&&(e.open(),t.preventDefault())})},r.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},r.prototype._syncSubtree=function(e,t){var n=!1,i=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(t)if(t.addedNodes&&t.addedNodes.length>0)for(var r=0;r<t.addedNodes.length;r++)t.addedNodes[r].selected&&(n=!0);else t.removedNodes&&t.removedNodes.length>0&&(n=!0);else n=!0;n&&this.dataAdapter.current(function(e){i.trigger("selection:update",{data:e})})}},r.prototype.trigger=function(e,t){var n=r.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(t===undefined&&(t={}),e in i){var s=i[e],o={prevented:!1,name:e,args:t};if(n.call(this,s,o),o.prevented)return void(t.prevented=!0)}n.call(this,e,t)},r.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},r.prototype.open=function(){this.isOpen()||this.trigger("query",{})},r.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},r.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},r.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},r.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},r.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},r.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var e=[];return this.dataAdapter.current(function(t){e=t}),e},r.prototype.val=function(t){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==t||0===t.length)return this.$element.val();var n=t[0];e.isArray(n)&&(n=e.map(n,function(e){return e.toString()})),this.$element.val(n).trigger("change")},r.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},r.prototype.render=function(){var t=e('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container.addClass("select2-container--"+this.options.get("theme")),t.data("element",this.$element),t},r}),t.define("jquery-mousewheel",["jquery"],function(e){return e}),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(e,t,n,i){if(null==e.fn.select2){var r=["open","close","destroy"];e.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var i=e.extend(!0,{},t);new n(e(this),i)}),this;if("string"==typeof t){var i,s=Array.prototype.slice.call(arguments,1);return this.each(function(){var n=e(this).data("select2");null==n&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),i=n[t].apply(n,s)}),e.inArray(t,r)>-1?this:i}throw new Error("Invalid arguments for Select2: "+t)}}return null==e.fn.select2.defaults&&(e.fn.select2.defaults=i),n}),{define:t.define,require:t.require}}(),n=t.require("jquery.select2");return e.fn.select2.amd=t,n});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/js/{select2/select2.full.js → selectWoo/selectWoo.full.js}
RENAMED
@@ -1,6436 +1,6543 @@
|
|
1 |
-
/*!
|
2 |
-
*
|
3 |
-
* https://
|
4 |
-
*
|
5 |
-
* Released under the MIT license
|
6 |
-
* https://github.com/
|
7 |
-
*/
|
8 |
-
(function (factory) {
|
9 |
-
if (typeof define === 'function' && define.amd) {
|
10 |
-
// AMD. Register as an anonymous module.
|
11 |
-
define(['jquery'], factory);
|
12 |
-
} else if (typeof
|
13 |
-
// Node/CommonJS
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
//
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
var
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
function
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
}
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
}
|
266 |
-
|
267 |
-
//
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
return {
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
if (
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
} else if (
|
378 |
-
//
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
for (var
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
var
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
function
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
var
|
586 |
-
|
587 |
-
DecoratedClass.prototype
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
}
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
|
646 |
-
|
647 |
-
|
648 |
-
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
-
|
653 |
-
|
654 |
-
|
655 |
-
|
656 |
-
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
|
665 |
-
|
666 |
-
|
667 |
-
|
668 |
-
|
669 |
-
|
670 |
-
|
671 |
-
|
672 |
-
|
673 |
-
|
674 |
-
|
675 |
-
|
676 |
-
|
677 |
-
|
678 |
-
|
679 |
-
|
680 |
-
|
681 |
-
|
682 |
-
|
683 |
-
|
684 |
-
|
685 |
-
|
686 |
-
}
|
687 |
-
|
688 |
-
|
689 |
-
|
690 |
-
|
691 |
-
|
692 |
-
|
693 |
-
|
694 |
-
|
695 |
-
|
696 |
-
|
697 |
-
|
698 |
-
|
699 |
-
|
700 |
-
|
701 |
-
|
702 |
-
|
703 |
-
|
704 |
-
|
705 |
-
|
706 |
-
|
707 |
-
|
708 |
-
|
709 |
-
|
710 |
-
|
711 |
-
|
712 |
-
|
713 |
-
|
714 |
-
|
715 |
-
|
716 |
-
|
717 |
-
|
718 |
-
|
719 |
-
|
720 |
-
var
|
721 |
-
|
722 |
-
|
723 |
-
|
724 |
-
|
725 |
-
|
726 |
-
|
727 |
-
|
728 |
-
|
729 |
-
|
730 |
-
|
731 |
-
|
732 |
-
|
733 |
-
|
734 |
-
|
735 |
-
|
736 |
-
|
737 |
-
|
738 |
-
|
739 |
-
|
740 |
-
|
741 |
-
|
742 |
-
|
743 |
-
|
744 |
-
|
745 |
-
|
746 |
-
|
747 |
-
|
748 |
-
|
749 |
-
|
750 |
-
|
751 |
-
|
752 |
-
|
753 |
-
|
754 |
-
|
755 |
-
|
756 |
-
|
757 |
-
|
758 |
-
|
759 |
-
|
760 |
-
|
761 |
-
|
762 |
-
|
763 |
-
|
764 |
-
|
765 |
-
|
766 |
-
|
767 |
-
|
768 |
-
|
769 |
-
|
770 |
-
|
771 |
-
|
772 |
-
|
773 |
-
|
774 |
-
|
775 |
-
|
776 |
-
|
777 |
-
)
|
778 |
-
|
779 |
-
|
780 |
-
|
781 |
-
|
782 |
-
|
783 |
-
|
784 |
-
|
785 |
-
|
786 |
-
|
787 |
-
|
788 |
-
|
789 |
-
|
790 |
-
|
791 |
-
|
792 |
-
|
793 |
-
|
794 |
-
|
795 |
-
|
796 |
-
|
797 |
-
|
798 |
-
|
799 |
-
|
800 |
-
|
801 |
-
|
802 |
-
|
803 |
-
|
804 |
-
|
805 |
-
|
806 |
-
|
807 |
-
|
808 |
-
|
809 |
-
|
810 |
-
|
811 |
-
$
|
812 |
-
|
813 |
-
|
814 |
-
|
815 |
-
|
816 |
-
|
817 |
-
|
818 |
-
|
819 |
-
|
820 |
-
|
821 |
-
this.
|
822 |
-
|
823 |
-
|
824 |
-
|
825 |
-
|
826 |
-
|
827 |
-
|
828 |
-
|
829 |
-
|
830 |
-
|
831 |
-
|
832 |
-
|
833 |
-
|
834 |
-
|
835 |
-
|
836 |
-
|
837 |
-
|
838 |
-
|
839 |
-
|
840 |
-
|
841 |
-
|
842 |
-
|
843 |
-
|
844 |
-
|
845 |
-
|
846 |
-
|
847 |
-
|
848 |
-
|
849 |
-
var $
|
850 |
-
|
851 |
-
|
852 |
-
|
853 |
-
|
854 |
-
|
855 |
-
|
856 |
-
|
857 |
-
|
858 |
-
|
859 |
-
|
860 |
-
|
861 |
-
|
862 |
-
|
863 |
-
var
|
864 |
-
|
865 |
-
|
866 |
-
|
867 |
-
|
868 |
-
$
|
869 |
-
}
|
870 |
-
|
871 |
-
|
872 |
-
|
873 |
-
|
874 |
-
|
875 |
-
|
876 |
-
|
877 |
-
|
878 |
-
|
879 |
-
|
880 |
-
|
881 |
-
|
882 |
-
|
883 |
-
|
884 |
-
|
885 |
-
|
886 |
-
|
887 |
-
|
888 |
-
|
889 |
-
|
890 |
-
|
891 |
-
|
892 |
-
|
893 |
-
|
894 |
-
|
895 |
-
|
896 |
-
|
897 |
-
|
898 |
-
|
899 |
-
|
900 |
-
|
901 |
-
|
902 |
-
|
903 |
-
|
904 |
-
|
905 |
-
|
906 |
-
|
907 |
-
|
908 |
-
|
909 |
-
|
910 |
-
|
911 |
-
|
912 |
-
|
913 |
-
|
914 |
-
|
915 |
-
|
916 |
-
|
917 |
-
|
918 |
-
|
919 |
-
|
920 |
-
|
921 |
-
|
922 |
-
|
923 |
-
|
924 |
-
|
925 |
-
|
926 |
-
|
927 |
-
|
928 |
-
|
929 |
-
|
930 |
-
|
931 |
-
|
932 |
-
|
933 |
-
|
934 |
-
|
935 |
-
|
936 |
-
|
937 |
-
|
938 |
-
|
939 |
-
|
940 |
-
|
941 |
-
|
942 |
-
|
943 |
-
|
944 |
-
|
945 |
-
|
946 |
-
|
947 |
-
|
948 |
-
|
949 |
-
|
950 |
-
|
951 |
-
|
952 |
-
|
953 |
-
|
954 |
-
|
955 |
-
|
956 |
-
|
957 |
-
|
958 |
-
|
959 |
-
|
960 |
-
|
961 |
-
|
962 |
-
|
963 |
-
|
964 |
-
|
965 |
-
|
966 |
-
|
967 |
-
|
968 |
-
|
969 |
-
|
970 |
-
|
971 |
-
|
972 |
-
|
973 |
-
|
974 |
-
|
975 |
-
|
976 |
-
|
977 |
-
|
978 |
-
|
979 |
-
|
980 |
-
|
981 |
-
|
982 |
-
|
983 |
-
|
984 |
-
|
985 |
-
|
986 |
-
|
987 |
-
|
988 |
-
|
989 |
-
|
990 |
-
|
991 |
-
|
992 |
-
|
993 |
-
|
994 |
-
|
995 |
-
|
996 |
-
|
997 |
-
|
998 |
-
|
999 |
-
|
1000 |
-
|
1001 |
-
|
1002 |
-
|
1003 |
-
|
1004 |
-
|
1005 |
-
|
1006 |
-
|
1007 |
-
|
1008 |
-
|
1009 |
-
|
1010 |
-
|
1011 |
-
|
1012 |
-
|
1013 |
-
|
1014 |
-
|
1015 |
-
|
1016 |
-
|
1017 |
-
|
1018 |
-
|
1019 |
-
|
1020 |
-
|
1021 |
-
|
1022 |
-
|
1023 |
-
|
1024 |
-
|
1025 |
-
|
1026 |
-
|
1027 |
-
|
1028 |
-
|
1029 |
-
|
1030 |
-
|
1031 |
-
|
1032 |
-
|
1033 |
-
|
1034 |
-
|
1035 |
-
|
1036 |
-
|
1037 |
-
|
1038 |
-
self.
|
1039 |
-
|
1040 |
-
|
1041 |
-
|
1042 |
-
|
1043 |
-
|
1044 |
-
}
|
1045 |
-
|
1046 |
-
|
1047 |
-
|
1048 |
-
|
1049 |
-
|
1050 |
-
|
1051 |
-
|
1052 |
-
|
1053 |
-
|
1054 |
-
|
1055 |
-
|
1056 |
-
self.
|
1057 |
-
|
1058 |
-
|
1059 |
-
|
1060 |
-
|
1061 |
-
|
1062 |
-
|
1063 |
-
|
1064 |
-
|
1065 |
-
|
1066 |
-
|
1067 |
-
|
1068 |
-
|
1069 |
-
|
1070 |
-
|
1071 |
-
|
1072 |
-
|
1073 |
-
|
1074 |
-
|
1075 |
-
|
1076 |
-
|
1077 |
-
|
1078 |
-
|
1079 |
-
|
1080 |
-
|
1081 |
-
|
1082 |
-
|
1083 |
-
|
1084 |
-
|
1085 |
-
|
1086 |
-
|
1087 |
-
|
1088 |
-
|
1089 |
-
|
1090 |
-
|
1091 |
-
|
1092 |
-
});
|
1093 |
-
|
1094 |
-
container.on('results:
|
1095 |
-
var $highlighted = self.getHighlightedResults();
|
1096 |
-
|
1097 |
-
|
1098 |
-
|
1099 |
-
|
1100 |
-
|
1101 |
-
|
1102 |
-
|
1103 |
-
|
1104 |
-
|
1105 |
-
|
1106 |
-
|
1107 |
-
|
1108 |
-
|
1109 |
-
|
1110 |
-
|
1111 |
-
|
1112 |
-
|
1113 |
-
|
1114 |
-
|
1115 |
-
|
1116 |
-
|
1117 |
-
|
1118 |
-
|
1119 |
-
|
1120 |
-
|
1121 |
-
|
1122 |
-
|
1123 |
-
|
1124 |
-
|
1125 |
-
|
1126 |
-
|
1127 |
-
|
1128 |
-
|
1129 |
-
|
1130 |
-
|
1131 |
-
|
1132 |
-
|
1133 |
-
|
1134 |
-
|
1135 |
-
|
1136 |
-
|
1137 |
-
|
1138 |
-
|
1139 |
-
|
1140 |
-
|
1141 |
-
|
1142 |
-
|
1143 |
-
|
1144 |
-
|
1145 |
-
|
1146 |
-
var
|
1147 |
-
|
1148 |
-
|
1149 |
-
|
1150 |
-
|
1151 |
-
if (
|
1152 |
-
self.$results.scrollTop(
|
1153 |
-
}
|
1154 |
-
|
1155 |
-
|
1156 |
-
|
1157 |
-
|
1158 |
-
|
1159 |
-
|
1160 |
-
|
1161 |
-
|
1162 |
-
|
1163 |
-
|
1164 |
-
|
1165 |
-
|
1166 |
-
|
1167 |
-
|
1168 |
-
|
1169 |
-
|
1170 |
-
|
1171 |
-
|
1172 |
-
|
1173 |
-
|
1174 |
-
|
1175 |
-
|
1176 |
-
|
1177 |
-
|
1178 |
-
|
1179 |
-
|
1180 |
-
|
1181 |
-
|
1182 |
-
|
1183 |
-
|
1184 |
-
|
1185 |
-
|
1186 |
-
|
1187 |
-
|
1188 |
-
|
1189 |
-
}
|
1190 |
-
|
1191 |
-
|
1192 |
-
|
1193 |
-
|
1194 |
-
|
1195 |
-
|
1196 |
-
|
1197 |
-
|
1198 |
-
|
1199 |
-
|
1200 |
-
|
1201 |
-
|
1202 |
-
|
1203 |
-
|
1204 |
-
|
1205 |
-
|
1206 |
-
|
1207 |
-
|
1208 |
-
|
1209 |
-
|
1210 |
-
|
1211 |
-
|
1212 |
-
|
1213 |
-
|
1214 |
-
|
1215 |
-
|
1216 |
-
|
1217 |
-
|
1218 |
-
|
1219 |
-
|
1220 |
-
|
1221 |
-
|
1222 |
-
|
1223 |
-
|
1224 |
-
|
1225 |
-
|
1226 |
-
|
1227 |
-
|
1228 |
-
|
1229 |
-
|
1230 |
-
|
1231 |
-
|
1232 |
-
|
1233 |
-
|
1234 |
-
|
1235 |
-
|
1236 |
-
|
1237 |
-
|
1238 |
-
|
1239 |
-
|
1240 |
-
|
1241 |
-
|
1242 |
-
|
1243 |
-
|
1244 |
-
|
1245 |
-
|
1246 |
-
|
1247 |
-
|
1248 |
-
|
1249 |
-
|
1250 |
-
|
1251 |
-
|
1252 |
-
|
1253 |
-
|
1254 |
-
|
1255 |
-
|
1256 |
-
|
1257 |
-
|
1258 |
-
|
1259 |
-
|
1260 |
-
|
1261 |
-
|
1262 |
-
|
1263 |
-
|
1264 |
-
|
1265 |
-
|
1266 |
-
|
1267 |
-
|
1268 |
-
|
1269 |
-
|
1270 |
-
|
1271 |
-
|
1272 |
-
|
1273 |
-
|
1274 |
-
|
1275 |
-
|
1276 |
-
}
|
1277 |
-
|
1278 |
-
|
1279 |
-
|
1280 |
-
|
1281 |
-
|
1282 |
-
|
1283 |
-
|
1284 |
-
|
1285 |
-
|
1286 |
-
|
1287 |
-
|
1288 |
-
|
1289 |
-
|
1290 |
-
|
1291 |
-
|
1292 |
-
|
1293 |
-
|
1294 |
-
|
1295 |
-
|
1296 |
-
|
1297 |
-
|
1298 |
-
|
1299 |
-
|
1300 |
-
|
1301 |
-
|
1302 |
-
|
1303 |
-
|
1304 |
-
|
1305 |
-
|
1306 |
-
|
1307 |
-
|
1308 |
-
}
|
1309 |
-
|
1310 |
-
|
1311 |
-
|
1312 |
-
|
1313 |
-
|
1314 |
-
|
1315 |
-
|
1316 |
-
|
1317 |
-
|
1318 |
-
|
1319 |
-
|
1320 |
-
|
1321 |
-
|
1322 |
-
|
1323 |
-
|
1324 |
-
|
1325 |
-
|
1326 |
-
|
1327 |
-
|
1328 |
-
|
1329 |
-
|
1330 |
-
|
1331 |
-
|
1332 |
-
|
1333 |
-
|
1334 |
-
|
1335 |
-
|
1336 |
-
|
1337 |
-
|
1338 |
-
|
1339 |
-
|
1340 |
-
|
1341 |
-
|
1342 |
-
|
1343 |
-
|
1344 |
-
|
1345 |
-
|
1346 |
-
|
1347 |
-
|
1348 |
-
|
1349 |
-
|
1350 |
-
|
1351 |
-
|
1352 |
-
|
1353 |
-
|
1354 |
-
|
1355 |
-
|
1356 |
-
|
1357 |
-
|
1358 |
-
|
1359 |
-
|
1360 |
-
|
1361 |
-
|
1362 |
-
|
1363 |
-
this.$
|
1364 |
-
|
1365 |
-
|
1366 |
-
|
1367 |
-
|
1368 |
-
|
1369 |
-
|
1370 |
-
|
1371 |
-
|
1372 |
-
|
1373 |
-
|
1374 |
-
|
1375 |
-
|
1376 |
-
|
1377 |
-
|
1378 |
-
|
1379 |
-
|
1380 |
-
|
1381 |
-
|
1382 |
-
|
1383 |
-
|
1384 |
-
|
1385 |
-
|
1386 |
-
|
1387 |
-
|
1388 |
-
|
1389 |
-
|
1390 |
-
|
1391 |
-
self
|
1392 |
-
|
1393 |
-
|
1394 |
-
|
1395 |
-
self.
|
1396 |
-
|
1397 |
-
|
1398 |
-
|
1399 |
-
|
1400 |
-
});
|
1401 |
-
|
1402 |
-
container.on('
|
1403 |
-
self.$selection.attr('
|
1404 |
-
});
|
1405 |
-
|
1406 |
-
|
1407 |
-
|
1408 |
-
|
1409 |
-
|
1410 |
-
|
1411 |
-
|
1412 |
-
|
1413 |
-
|
1414 |
-
|
1415 |
-
|
1416 |
-
|
1417 |
-
|
1418 |
-
|
1419 |
-
|
1420 |
-
|
1421 |
-
self.
|
1422 |
-
|
1423 |
-
|
1424 |
-
|
1425 |
-
|
1426 |
-
|
1427 |
-
|
1428 |
-
|
1429 |
-
|
1430 |
-
|
1431 |
-
|
1432 |
-
|
1433 |
-
|
1434 |
-
|
1435 |
-
|
1436 |
-
|
1437 |
-
|
1438 |
-
|
1439 |
-
|
1440 |
-
|
1441 |
-
|
1442 |
-
|
1443 |
-
|
1444 |
-
|
1445 |
-
|
1446 |
-
|
1447 |
-
|
1448 |
-
|
1449 |
-
|
1450 |
-
|
1451 |
-
|
1452 |
-
|
1453 |
-
|
1454 |
-
|
1455 |
-
|
1456 |
-
|
1457 |
-
|
1458 |
-
|
1459 |
-
|
1460 |
-
|
1461 |
-
|
1462 |
-
|
1463 |
-
|
1464 |
-
|
1465 |
-
|
1466 |
-
|
1467 |
-
|
1468 |
-
|
1469 |
-
|
1470 |
-
|
1471 |
-
|
1472 |
-
|
1473 |
-
|
1474 |
-
|
1475 |
-
|
1476 |
-
|
1477 |
-
|
1478 |
-
|
1479 |
-
|
1480 |
-
|
1481 |
-
|
1482 |
-
|
1483 |
-
|
1484 |
-
|
1485 |
-
|
1486 |
-
|
1487 |
-
|
1488 |
-
|
1489 |
-
|
1490 |
-
|
1491 |
-
|
1492 |
-
|
1493 |
-
|
1494 |
-
|
1495 |
-
|
1496 |
-
|
1497 |
-
|
1498 |
-
|
1499 |
-
|
1500 |
-
|
1501 |
-
|
1502 |
-
|
1503 |
-
|
1504 |
-
|
1505 |
-
|
1506 |
-
|
1507 |
-
|
1508 |
-
|
1509 |
-
|
1510 |
-
|
1511 |
-
|
1512 |
-
|
1513 |
-
|
1514 |
-
|
1515 |
-
|
1516 |
-
|
1517 |
-
|
1518 |
-
|
1519 |
-
|
1520 |
-
|
1521 |
-
|
1522 |
-
|
1523 |
-
|
1524 |
-
|
1525 |
-
|
1526 |
-
|
1527 |
-
|
1528 |
-
|
1529 |
-
|
1530 |
-
|
1531 |
-
|
1532 |
-
|
1533 |
-
|
1534 |
-
|
1535 |
-
|
1536 |
-
|
1537 |
-
|
1538 |
-
|
1539 |
-
|
1540 |
-
|
1541 |
-
|
1542 |
-
|
1543 |
-
|
1544 |
-
|
1545 |
-
|
1546 |
-
|
1547 |
-
|
1548 |
-
|
1549 |
-
|
1550 |
-
|
1551 |
-
|
1552 |
-
|
1553 |
-
|
1554 |
-
|
1555 |
-
|
1556 |
-
|
1557 |
-
|
1558 |
-
|
1559 |
-
|
1560 |
-
|
1561 |
-
|
1562 |
-
|
1563 |
-
|
1564 |
-
|
1565 |
-
|
1566 |
-
|
1567 |
-
});
|
1568 |
-
|
1569 |
-
|
1570 |
-
|
1571 |
-
|
1572 |
-
|
1573 |
-
|
1574 |
-
|
1575 |
-
|
1576 |
-
|
1577 |
-
|
1578 |
-
|
1579 |
-
|
1580 |
-
|
1581 |
-
|
1582 |
-
|
1583 |
-
|
1584 |
-
|
1585 |
-
|
1586 |
-
|
1587 |
-
|
1588 |
-
|
1589 |
-
|
1590 |
-
|
1591 |
-
|
1592 |
-
|
1593 |
-
|
1594 |
-
|
1595 |
-
|
1596 |
-
|
1597 |
-
|
1598 |
-
|
1599 |
-
|
1600 |
-
|
1601 |
-
|
1602 |
-
|
1603 |
-
|
1604 |
-
|
1605 |
-
|
1606 |
-
|
1607 |
-
|
1608 |
-
|
1609 |
-
|
1610 |
-
|
1611 |
-
|
1612 |
-
|
1613 |
-
|
1614 |
-
|
1615 |
-
|
1616 |
-
|
1617 |
-
|
1618 |
-
|
1619 |
-
|
1620 |
-
|
1621 |
-
|
1622 |
-
|
1623 |
-
|
1624 |
-
|
1625 |
-
|
1626 |
-
|
1627 |
-
|
1628 |
-
|
1629 |
-
|
1630 |
-
|
1631 |
-
|
1632 |
-
|
1633 |
-
|
1634 |
-
|
1635 |
-
|
1636 |
-
|
1637 |
-
|
1638 |
-
|
1639 |
-
|
1640 |
-
|
1641 |
-
|
1642 |
-
|
1643 |
-
);
|
1644 |
-
|
1645 |
-
|
1646 |
-
|
1647 |
-
|
1648 |
-
|
1649 |
-
|
1650 |
-
|
1651 |
-
|
1652 |
-
|
1653 |
-
|
1654 |
-
|
1655 |
-
|
1656 |
-
|
1657 |
-
|
1658 |
-
|
1659 |
-
|
1660 |
-
|
1661 |
-
|
1662 |
-
|
1663 |
-
|
1664 |
-
|
1665 |
-
|
1666 |
-
|
1667 |
-
|
1668 |
-
|
1669 |
-
|
1670 |
-
|
1671 |
-
|
1672 |
-
|
1673 |
-
|
1674 |
-
|
1675 |
-
|
1676 |
-
|
1677 |
-
|
1678 |
-
|
1679 |
-
|
1680 |
-
|
1681 |
-
|
1682 |
-
|
1683 |
-
|
1684 |
-
|
1685 |
-
|
1686 |
-
|
1687 |
-
|
1688 |
-
|
1689 |
-
|
1690 |
-
|
1691 |
-
|
1692 |
-
|
1693 |
-
|
1694 |
-
|
1695 |
-
|
1696 |
-
|
1697 |
-
|
1698 |
-
|
1699 |
-
|
1700 |
-
|
1701 |
-
|
1702 |
-
|
1703 |
-
$
|
1704 |
-
|
1705 |
-
|
1706 |
-
|
1707 |
-
|
1708 |
-
|
1709 |
-
|
1710 |
-
|
1711 |
-
|
1712 |
-
|
1713 |
-
|
1714 |
-
|
1715 |
-
|
1716 |
-
|
1717 |
-
}
|
1718 |
-
|
1719 |
-
this.
|
1720 |
-
|
1721 |
-
|
1722 |
-
|
1723 |
-
|
1724 |
-
|
1725 |
-
|
1726 |
-
|
1727 |
-
|
1728 |
-
|
1729 |
-
|
1730 |
-
|
1731 |
-
|
1732 |
-
|
1733 |
-
|
1734 |
-
|
1735 |
-
|
1736 |
-
|
1737 |
-
|
1738 |
-
|
1739 |
-
|
1740 |
-
|
1741 |
-
|
1742 |
-
|
1743 |
-
|
1744 |
-
|
1745 |
-
|
1746 |
-
|
1747 |
-
|
1748 |
-
|
1749 |
-
|
1750 |
-
|
1751 |
-
|
1752 |
-
|
1753 |
-
|
1754 |
-
|
1755 |
-
|
1756 |
-
|
1757 |
-
|
1758 |
-
|
1759 |
-
|
1760 |
-
|
1761 |
-
|
1762 |
-
|
1763 |
-
|
1764 |
-
|
1765 |
-
|
1766 |
-
|
1767 |
-
|
1768 |
-
|
1769 |
-
|
1770 |
-
|
1771 |
-
|
1772 |
-
|
1773 |
-
|
1774 |
-
|
1775 |
-
|
1776 |
-
|
1777 |
-
|
1778 |
-
|
1779 |
-
|
1780 |
-
|
1781 |
-
|
1782 |
-
|
1783 |
-
|
1784 |
-
|
1785 |
-
|
1786 |
-
|
1787 |
-
|
1788 |
-
|
1789 |
-
|
1790 |
-
|
1791 |
-
|
1792 |
-
|
1793 |
-
|
1794 |
-
|
1795 |
-
|
1796 |
-
|
1797 |
-
|
1798 |
-
|
1799 |
-
|
1800 |
-
|
1801 |
-
|
1802 |
-
|
1803 |
-
|
1804 |
-
|
1805 |
-
|
1806 |
-
|
1807 |
-
|
1808 |
-
|
1809 |
-
if (this
|
1810 |
-
|
1811 |
-
|
1812 |
-
|
1813 |
-
|
1814 |
-
|
1815 |
-
|
1816 |
-
|
1817 |
-
|
1818 |
-
|
1819 |
-
|
1820 |
-
|
1821 |
-
|
1822 |
-
|
1823 |
-
|
1824 |
-
|
1825 |
-
|
1826 |
-
|
1827 |
-
|
1828 |
-
|
1829 |
-
|
1830 |
-
|
1831 |
-
|
1832 |
-
|
1833 |
-
|
1834 |
-
|
1835 |
-
|
1836 |
-
|
1837 |
-
|
1838 |
-
|
1839 |
-
|
1840 |
-
|
1841 |
-
|
1842 |
-
|
1843 |
-
|
1844 |
-
|
1845 |
-
|
1846 |
-
|
1847 |
-
|
1848 |
-
|
1849 |
-
|
1850 |
-
|
1851 |
-
|
1852 |
-
|
1853 |
-
|
1854 |
-
|
1855 |
-
|
1856 |
-
|
1857 |
-
|
1858 |
-
|
1859 |
-
|
1860 |
-
|
1861 |
-
|
1862 |
-
|
1863 |
-
|
1864 |
-
|
1865 |
-
|
1866 |
-
|
1867 |
-
|
1868 |
-
|
1869 |
-
|
1870 |
-
|
1871 |
-
|
1872 |
-
|
1873 |
-
|
1874 |
-
|
1875 |
-
|
1876 |
-
|
1877 |
-
|
1878 |
-
|
1879 |
-
|
1880 |
-
|
1881 |
-
|
1882 |
-
|
1883 |
-
|
1884 |
-
|
1885 |
-
|
1886 |
-
|
1887 |
-
|
1888 |
-
|
1889 |
-
|
1890 |
-
|
1891 |
-
|
1892 |
-
|
1893 |
-
|
1894 |
-
|
1895 |
-
|
1896 |
-
|
1897 |
-
|
1898 |
-
|
1899 |
-
|
1900 |
-
|
1901 |
-
|
1902 |
-
|
1903 |
-
|
1904 |
-
|
1905 |
-
|
1906 |
-
|
1907 |
-
|
1908 |
-
|
1909 |
-
|
1910 |
-
|
1911 |
-
|
1912 |
-
|
1913 |
-
|
1914 |
-
|
1915 |
-
|
1916 |
-
|
1917 |
-
|
1918 |
-
|
1919 |
-
|
1920 |
-
|
1921 |
-
|
1922 |
-
|
1923 |
-
|
1924 |
-
|
1925 |
-
|
1926 |
-
|
1927 |
-
|
1928 |
-
|
1929 |
-
|
1930 |
-
|
1931 |
-
|
1932 |
-
|
1933 |
-
|
1934 |
-
|
1935 |
-
|
1936 |
-
|
1937 |
-
|
1938 |
-
|
1939 |
-
|
1940 |
-
|
1941 |
-
|
1942 |
-
|
1943 |
-
|
1944 |
-
|
1945 |
-
);
|
1946 |
-
|
1947 |
-
this.$selection.on(
|
1948 |
-
|
1949 |
-
|
1950 |
-
|
1951 |
-
|
1952 |
-
|
1953 |
-
|
1954 |
-
|
1955 |
-
|
1956 |
-
|
1957 |
-
|
1958 |
-
|
1959 |
-
|
1960 |
-
|
1961 |
-
|
1962 |
-
|
1963 |
-
|
1964 |
-
|
1965 |
-
|
1966 |
-
|
1967 |
-
|
1968 |
-
|
1969 |
-
|
1970 |
-
|
1971 |
-
|
1972 |
-
|
1973 |
-
|
1974 |
-
|
1975 |
-
|
1976 |
-
|
1977 |
-
|
1978 |
-
|
1979 |
-
|
1980 |
-
|
1981 |
-
|
1982 |
-
|
1983 |
-
|
1984 |
-
|
1985 |
-
|
1986 |
-
|
1987 |
-
|
1988 |
-
|
1989 |
-
|
1990 |
-
|
1991 |
-
|
1992 |
-
|
1993 |
-
|
1994 |
-
|
1995 |
-
|
1996 |
-
|
1997 |
-
|
1998 |
-
|
1999 |
-
|
2000 |
-
|
2001 |
-
|
2002 |
-
|
2003 |
-
|
2004 |
-
|
2005 |
-
|
2006 |
-
|
2007 |
-
|
2008 |
-
|
2009 |
-
|
2010 |
-
|
2011 |
-
|
2012 |
-
|
2013 |
-
|
2014 |
-
|
2015 |
-
|
2016 |
-
|
2017 |
-
|
2018 |
-
|
2019 |
-
|
2020 |
-
|
2021 |
-
|
2022 |
-
|
2023 |
-
|
2024 |
-
|
2025 |
-
|
2026 |
-
|
2027 |
-
|
2028 |
-
|
2029 |
-
|
2030 |
-
|
2031 |
-
|
2032 |
-
|
2033 |
-
|
2034 |
-
|
2035 |
-
|
2036 |
-
|
2037 |
-
|
2038 |
-
|
2039 |
-
|
2040 |
-
|
2041 |
-
|
2042 |
-
|
2043 |
-
|
2044 |
-
this.$search.
|
2045 |
-
|
2046 |
-
|
2047 |
-
|
2048 |
-
|
2049 |
-
|
2050 |
-
|
2051 |
-
|
2052 |
-
|
2053 |
-
|
2054 |
-
|
2055 |
-
|
2056 |
-
|
2057 |
-
|
2058 |
-
|
2059 |
-
|
2060 |
-
|
2061 |
-
|
2062 |
-
|
2063 |
-
|
2064 |
-
|
2065 |
-
|
2066 |
-
|
2067 |
-
|
2068 |
-
|
2069 |
-
|
2070 |
-
|
2071 |
-
|
2072 |
-
|
2073 |
-
|
2074 |
-
|
2075 |
-
|
2076 |
-
|
2077 |
-
|
2078 |
-
|
2079 |
-
|
2080 |
-
|
2081 |
-
|
2082 |
-
|
2083 |
-
|
2084 |
-
|
2085 |
-
|
2086 |
-
|
2087 |
-
|
2088 |
-
|
2089 |
-
|
2090 |
-
|
2091 |
-
|
2092 |
-
|
2093 |
-
|
2094 |
-
|
2095 |
-
|
2096 |
-
|
2097 |
-
|
2098 |
-
|
2099 |
-
|
2100 |
-
|
2101 |
-
|
2102 |
-
|
2103 |
-
|
2104 |
-
|
2105 |
-
|
2106 |
-
|
2107 |
-
|
2108 |
-
|
2109 |
-
|
2110 |
-
|
2111 |
-
|
2112 |
-
|
2113 |
-
|
2114 |
-
|
2115 |
-
|
2116 |
-
|
2117 |
-
|
2118 |
-
|
2119 |
-
|
2120 |
-
|
2121 |
-
|
2122 |
-
|
2123 |
-
|
2124 |
-
|
2125 |
-
|
2126 |
-
|
2127 |
-
|
2128 |
-
|
2129 |
-
|
2130 |
-
|
2131 |
-
});
|
2132 |
-
|
2133 |
-
|
2134 |
-
|
2135 |
-
|
2136 |
-
|
2137 |
-
|
2138 |
-
|
2139 |
-
|
2140 |
-
|
2141 |
-
|
2142 |
-
|
2143 |
-
|
2144 |
-
|
2145 |
-
|
2146 |
-
|
2147 |
-
|
2148 |
-
|
2149 |
-
|
2150 |
-
|
2151 |
-
|
2152 |
-
|
2153 |
-
|
2154 |
-
|
2155 |
-
|
2156 |
-
|
2157 |
-
|
2158 |
-
|
2159 |
-
|
2160 |
-
|
2161 |
-
|
2162 |
-
|
2163 |
-
|
2164 |
-
|
2165 |
-
|
2166 |
-
|
2167 |
-
|
2168 |
-
|
2169 |
-
|
2170 |
-
|
2171 |
-
|
2172 |
-
|
2173 |
-
|
2174 |
-
|
2175 |
-
|
2176 |
-
|
2177 |
-
|
2178 |
-
|
2179 |
-
|
2180 |
-
|
2181 |
-
|
2182 |
-
|
2183 |
-
|
2184 |
-
|
2185 |
-
|
2186 |
-
|
2187 |
-
|
2188 |
-
'\
|
2189 |
-
'\
|
2190 |
-
'\
|
2191 |
-
'\
|
2192 |
-
'\
|
2193 |
-
'\
|
2194 |
-
'\
|
2195 |
-
'\
|
2196 |
-
'\
|
2197 |
-
'\
|
2198 |
-
'\
|
2199 |
-
'\
|
2200 |
-
'\
|
2201 |
-
'\
|
2202 |
-
'\
|
2203 |
-
'\
|
2204 |
-
'\
|
2205 |
-
'\
|
2206 |
-
'\
|
2207 |
-
'\
|
2208 |
-
'\
|
2209 |
-
'\
|
2210 |
-
'\
|
2211 |
-
'\
|
2212 |
-
'\
|
2213 |
-
'\
|
2214 |
-
'\
|
2215 |
-
'\
|
2216 |
-
'\
|
2217 |
-
'\
|
2218 |
-
'\
|
2219 |
-
'\
|
2220 |
-
'\
|
2221 |
-
'\
|
2222 |
-
'\
|
2223 |
-
'\
|
2224 |
-
'\
|
2225 |
-
'\
|
2226 |
-
'\
|
2227 |
-
'\
|
2228 |
-
'\
|
2229 |
-
'\
|
2230 |
-
'\
|
2231 |
-
'\
|
2232 |
-
'\
|
2233 |
-
'\
|
2234 |
-
'\
|
2235 |
-
'\
|
2236 |
-
'\
|
2237 |
-
'\
|
2238 |
-
'\
|
2239 |
-
'\
|
2240 |
-
'\
|
2241 |
-
'\
|
2242 |
-
'\
|
2243 |
-
'\
|
2244 |
-
'\
|
2245 |
-
'\
|
2246 |
-
'\
|
2247 |
-
'\
|
2248 |
-
'\
|
2249 |
-
'\
|
2250 |
-
'\
|
2251 |
-
'\
|
2252 |
-
'\
|
2253 |
-
'\
|
2254 |
-
'\
|
2255 |
-
'\
|
2256 |
-
'\
|
2257 |
-
'\
|
2258 |
-
'\
|
2259 |
-
'\
|
2260 |
-
'\
|
2261 |
-
'\
|
2262 |
-
'\
|
2263 |
-
'\
|
2264 |
-
'\
|
2265 |
-
'\
|
2266 |
-
'\
|
2267 |
-
'\
|
2268 |
-
'\
|
2269 |
-
'\
|
2270 |
-
'\
|
2271 |
-
'\
|
2272 |
-
'\
|
2273 |
-
'\
|
2274 |
-
'\
|
2275 |
-
'\
|
2276 |
-
'\
|
2277 |
-
'\
|
2278 |
-
'\
|
2279 |
-
'\
|
2280 |
-
'\
|
2281 |
-
'\
|
2282 |
-
'\
|
2283 |
-
'\
|
2284 |
-
'\
|
2285 |
-
'\
|
2286 |
-
'\
|
2287 |
-
'\
|
2288 |
-
'\
|
2289 |
-
'\
|
2290 |
-
'\
|
2291 |
-
'\
|
2292 |
-
'\
|
2293 |
-
'\
|
2294 |
-
'\
|
2295 |
-
'\
|
2296 |
-
'\
|
2297 |
-
'\
|
2298 |
-
'\
|
2299 |
-
'\
|
2300 |
-
'\
|
2301 |
-
'\
|
2302 |
-
'\
|
2303 |
-
'\
|
2304 |
-
'\
|
2305 |
-
'\
|
2306 |
-
'\
|
2307 |
-
'\
|
2308 |
-
'\
|
2309 |
-
'\
|
2310 |
-
'\
|
2311 |
-
'\
|
2312 |
-
'\
|
2313 |
-
'\
|
2314 |
-
'\
|
2315 |
-
'\
|
2316 |
-
'\
|
2317 |
-
'\
|
2318 |
-
'\
|
2319 |
-
'\
|
2320 |
-
'\
|
2321 |
-
'\
|
2322 |
-
'\
|
2323 |
-
'\
|
2324 |
-
'\
|
2325 |
-
'\
|
2326 |
-
'\
|
2327 |
-
'\
|
2328 |
-
'\
|
2329 |
-
'\
|
2330 |
-
'\
|
2331 |
-
'\
|
2332 |
-
'\
|
2333 |
-
'\
|
2334 |
-
'\
|
2335 |
-
'\
|
2336 |
-
'\
|
2337 |
-
'\
|
2338 |
-
'\
|
2339 |
-
'\
|
2340 |
-
'\
|
2341 |
-
'\
|
2342 |
-
'\
|
2343 |
-
'\
|
2344 |
-
'\
|
2345 |
-
'\
|
2346 |
-
'\
|
2347 |
-
'\
|
2348 |
-
'\
|
2349 |
-
'\
|
2350 |
-
'\
|
2351 |
-
'\
|
2352 |
-
'\
|
2353 |
-
'\
|
2354 |
-
'\
|
2355 |
-
'\
|
2356 |
-
'\
|
2357 |
-
'\
|
2358 |
-
'\
|
2359 |
-
'\
|
2360 |
-
'\
|
2361 |
-
'\
|
2362 |
-
'\
|
2363 |
-
'\
|
2364 |
-
'\
|
2365 |
-
'\
|
2366 |
-
'\
|
2367 |
-
'\
|
2368 |
-
'\
|
2369 |
-
'\
|
2370 |
-
'\
|
2371 |
-
'\
|
2372 |
-
'\
|
2373 |
-
'\
|
2374 |
-
'\
|
2375 |
-
'\
|
2376 |
-
'\
|
2377 |
-
'\
|
2378 |
-
'\
|
2379 |
-
'\
|
2380 |
-
'\
|
2381 |
-
'\
|
2382 |
-
'\
|
2383 |
-
'\
|
2384 |
-
'\
|
2385 |
-
'\
|
2386 |
-
'\
|
2387 |
-
'\
|
2388 |
-
'\
|
2389 |
-
'\
|
2390 |
-
'\
|
2391 |
-
'\
|
2392 |
-
'\
|
2393 |
-
'\
|
2394 |
-
'\
|
2395 |
-
'\
|
2396 |
-
'\
|
2397 |
-
'\
|
2398 |
-
'\
|
2399 |
-
'\
|
2400 |
-
'\
|
2401 |
-
'\
|
2402 |
-
'\
|
2403 |
-
'\
|
2404 |
-
'\
|
2405 |
-
'\
|
2406 |
-
'\
|
2407 |
-
'\
|
2408 |
-
'\
|
2409 |
-
'\
|
2410 |
-
'\
|
2411 |
-
'\
|
2412 |
-
'\
|
2413 |
-
'\
|
2414 |
-
'\
|
2415 |
-
'\
|
2416 |
-
'\
|
2417 |
-
'\
|
2418 |
-
'\
|
2419 |
-
'\
|
2420 |
-
'\
|
2421 |
-
'\
|
2422 |
-
'\
|
2423 |
-
'\
|
2424 |
-
'\
|
2425 |
-
'\
|
2426 |
-
'\
|
2427 |
-
'\
|
2428 |
-
'\
|
2429 |
-
'\
|
2430 |
-
'\
|
2431 |
-
'\
|
2432 |
-
'\
|
2433 |
-
'\
|
2434 |
-
'\
|
2435 |
-
'\
|
2436 |
-
'\
|
2437 |
-
'\
|
2438 |
-
'\
|
2439 |
-
'\
|
2440 |
-
'\
|
2441 |
-
'\
|
2442 |
-
'\
|
2443 |
-
'\
|
2444 |
-
'\
|
2445 |
-
'\
|
2446 |
-
'\
|
2447 |
-
'\
|
2448 |
-
'\
|
2449 |
-
'\
|
2450 |
-
'\
|
2451 |
-
'\
|
2452 |
-
'\
|
2453 |
-
'\
|
2454 |
-
'\
|
2455 |
-
'\
|
2456 |
-
'\
|
2457 |
-
'\
|
2458 |
-
'\
|
2459 |
-
'\
|
2460 |
-
'\
|
2461 |
-
'\
|
2462 |
-
'\
|
2463 |
-
'\
|
2464 |
-
'\
|
2465 |
-
'\
|
2466 |
-
'\
|
2467 |
-
'\
|
2468 |
-
'\
|
2469 |
-
'\
|
2470 |
-
'\
|
2471 |
-
'\
|
2472 |
-
'\
|
2473 |
-
'\
|
2474 |
-
'\
|
2475 |
-
'\
|
2476 |
-
'\
|
2477 |
-
'\
|
2478 |
-
'\
|
2479 |
-
'\
|
2480 |
-
'\
|
2481 |
-
'\
|
2482 |
-
'\
|
2483 |
-
'\
|
2484 |
-
'\
|
2485 |
-
'\
|
2486 |
-
'\
|
2487 |
-
'\
|
2488 |
-
'\
|
2489 |
-
'\
|
2490 |
-
'\
|
2491 |
-
'\
|
2492 |
-
'\
|
2493 |
-
'\
|
2494 |
-
'\
|
2495 |
-
'\
|
2496 |
-
'\
|
2497 |
-
'\
|
2498 |
-
'\
|
2499 |
-
'\
|
2500 |
-
'\
|
2501 |
-
'\
|
2502 |
-
'\
|
2503 |
-
'\
|
2504 |
-
'\
|
2505 |
-
'\
|
2506 |
-
'\
|
2507 |
-
'\
|
2508 |
-
'\
|
2509 |
-
'\
|
2510 |
-
'\
|
2511 |
-
'\
|
2512 |
-
'\
|
2513 |
-
'\
|
2514 |
-
'\
|
2515 |
-
'\
|
2516 |
-
'\
|
2517 |
-
'\
|
2518 |
-
'\
|
2519 |
-
'\
|
2520 |
-
'\
|
2521 |
-
'\
|
2522 |
-
'\
|
2523 |
-
'\
|
2524 |
-
'\
|
2525 |
-
'\
|
2526 |
-
'\
|
2527 |
-
'\
|
2528 |
-
'\
|
2529 |
-
'\
|
2530 |
-
'\
|
2531 |
-
'\
|
2532 |
-
'\
|
2533 |
-
'\
|
2534 |
-
'\
|
2535 |
-
'\
|
2536 |
-
'\
|
2537 |
-
'\
|
2538 |
-
'\
|
2539 |
-
'\
|
2540 |
-
'\
|
2541 |
-
'\
|
2542 |
-
'\
|
2543 |
-
'\
|
2544 |
-
'\
|
2545 |
-
'\
|
2546 |
-
'\
|
2547 |
-
'\
|
2548 |
-
'\
|
2549 |
-
'\
|
2550 |
-
'\
|
2551 |
-
'\
|
2552 |
-
'\
|
2553 |
-
'\
|
2554 |
-
'\
|
2555 |
-
'\
|
2556 |
-
'\
|
2557 |
-
'\
|
2558 |
-
'\
|
2559 |
-
'\
|
2560 |
-
'\
|
2561 |
-
'\
|
2562 |
-
'\
|
2563 |
-
'\
|
2564 |
-
'\
|
2565 |
-
'\
|
2566 |
-
'\
|
2567 |
-
'\
|
2568 |
-
'\
|
2569 |
-
'\
|
2570 |
-
'\
|
2571 |
-
'\
|
2572 |
-
'\
|
2573 |
-
'\
|
2574 |
-
'\
|
2575 |
-
'\
|
2576 |
-
'\
|
2577 |
-
'\
|
2578 |
-
'\
|
2579 |
-
'\
|
2580 |
-
'\
|
2581 |
-
'\
|
2582 |
-
'\
|
2583 |
-
'\
|
2584 |
-
'\
|
2585 |
-
'\
|
2586 |
-
'\
|
2587 |
-
'\
|
2588 |
-
'\
|
2589 |
-
'\
|
2590 |
-
'\
|
2591 |
-
'\
|
2592 |
-
'\
|
2593 |
-
'\
|
2594 |
-
'\
|
2595 |
-
'\
|
2596 |
-
'\
|
2597 |
-
'\
|
2598 |
-
'\
|
2599 |
-
'\
|
2600 |
-
'\
|
2601 |
-
'\
|
2602 |
-
'\
|
2603 |
-
'\
|
2604 |
-
'\
|
2605 |
-
'\
|
2606 |
-
'\
|
2607 |
-
'\
|
2608 |
-
'\
|
2609 |
-
'\
|
2610 |
-
'\
|
2611 |
-
'\
|
2612 |
-
'\
|
2613 |
-
'\
|
2614 |
-
'\
|
2615 |
-
'\
|
2616 |
-
'\
|
2617 |
-
'\
|
2618 |
-
'\
|
2619 |
-
'\
|
2620 |
-
'\
|
2621 |
-
'\
|
2622 |
-
'\
|
2623 |
-
'\
|
2624 |
-
'\
|
2625 |
-
'\
|
2626 |
-
'\
|
2627 |
-
'\
|
2628 |
-
'\
|
2629 |
-
'\
|
2630 |
-
'\
|
2631 |
-
'\
|
2632 |
-
'\
|
2633 |
-
'\
|
2634 |
-
'\
|
2635 |
-
'\
|
2636 |
-
'\
|
2637 |
-
'\
|
2638 |
-
'\
|
2639 |
-
'\
|
2640 |
-
'\
|
2641 |
-
'\
|
2642 |
-
'\
|
2643 |
-
'\
|
2644 |
-
'\
|
2645 |
-
'\
|
2646 |
-
'\
|
2647 |
-
'\
|
2648 |
-
'\
|
2649 |
-
'\
|
2650 |
-
'\
|
2651 |
-
'\
|
2652 |
-
'\
|
2653 |
-
'\
|
2654 |
-
'\
|
2655 |
-
'\
|
2656 |
-
'\
|
2657 |
-
'\
|
2658 |
-
'\
|
2659 |
-
'\
|
2660 |
-
'\
|
2661 |
-
'\
|
2662 |
-
'\
|
2663 |
-
'\
|
2664 |
-
'\
|
2665 |
-
'\
|
2666 |
-
'\
|
2667 |
-
'\
|
2668 |
-
'\
|
2669 |
-
'\
|
2670 |
-
'\
|
2671 |
-
'\
|
2672 |
-
'\
|
2673 |
-
'\
|
2674 |
-
'\
|
2675 |
-
'\
|
2676 |
-
'\
|
2677 |
-
'\
|
2678 |
-
'\
|
2679 |
-
'\
|
2680 |
-
'\
|
2681 |
-
'\
|
2682 |
-
'\
|
2683 |
-
'\
|
2684 |
-
'\
|
2685 |
-
'\
|
2686 |
-
'\
|
2687 |
-
'\
|
2688 |
-
'\
|
2689 |
-
'\
|
2690 |
-
'\
|
2691 |
-
'\
|
2692 |
-
'\
|
2693 |
-
'\
|
2694 |
-
'\
|
2695 |
-
'\
|
2696 |
-
'\
|
2697 |
-
'\
|
2698 |
-
'\
|
2699 |
-
'\
|
2700 |
-
'\
|
2701 |
-
'\
|
2702 |
-
'\
|
2703 |
-
'\
|
2704 |
-
'\
|
2705 |
-
'\
|
2706 |
-
'\
|
2707 |
-
'\
|
2708 |
-
'\
|
2709 |
-
'\
|
2710 |
-
'\
|
2711 |
-
'\
|
2712 |
-
'\
|
2713 |
-
'\
|
2714 |
-
'\
|
2715 |
-
'\
|
2716 |
-
'\
|
2717 |
-
'\
|
2718 |
-
'\
|
2719 |
-
'\
|
2720 |
-
'\
|
2721 |
-
'\
|
2722 |
-
'\
|
2723 |
-
'\
|
2724 |
-
'\
|
2725 |
-
'\
|
2726 |
-
'\
|
2727 |
-
'\
|
2728 |
-
'\
|
2729 |
-
'\
|
2730 |
-
'\
|
2731 |
-
'\
|
2732 |
-
'\
|
2733 |
-
'\
|
2734 |
-
'\
|
2735 |
-
'\
|
2736 |
-
'\
|
2737 |
-
'\
|
2738 |
-
'\
|
2739 |
-
'\
|
2740 |
-
'\
|
2741 |
-
'\
|
2742 |
-
'\
|
2743 |
-
'\
|
2744 |
-
'\
|
2745 |
-
'\
|
2746 |
-
'\
|
2747 |
-
'\
|
2748 |
-
'\
|
2749 |
-
'\
|
2750 |
-
'\
|
2751 |
-
'\
|
2752 |
-
'\
|
2753 |
-
'\
|
2754 |
-
'\
|
2755 |
-
'\
|
2756 |
-
'\
|
2757 |
-
'\
|
2758 |
-
'\
|
2759 |
-
'\
|
2760 |
-
'\
|
2761 |
-
'\
|
2762 |
-
'\
|
2763 |
-
'\
|
2764 |
-
'\
|
2765 |
-
'\
|
2766 |
-
'\
|
2767 |
-
'\
|
2768 |
-
'\
|
2769 |
-
'\
|
2770 |
-
'\
|
2771 |
-
'\
|
2772 |
-
'\
|
2773 |
-
'\
|
2774 |
-
'\
|
2775 |
-
'\
|
2776 |
-
'\
|
2777 |
-
'\
|
2778 |
-
'\
|
2779 |
-
'\
|
2780 |
-
'\
|
2781 |
-
'\
|
2782 |
-
'\
|
2783 |
-
'\
|
2784 |
-
'\
|
2785 |
-
'\
|
2786 |
-
'\
|
2787 |
-
'\
|
2788 |
-
'\
|
2789 |
-
'\
|
2790 |
-
'\
|
2791 |
-
'\
|
2792 |
-
'\
|
2793 |
-
'\
|
2794 |
-
'\
|
2795 |
-
'\
|
2796 |
-
'\
|
2797 |
-
'\
|
2798 |
-
'\
|
2799 |
-
'\
|
2800 |
-
'\
|
2801 |
-
'\
|
2802 |
-
'\
|
2803 |
-
'\
|
2804 |
-
'\
|
2805 |
-
'\
|
2806 |
-
'\
|
2807 |
-
'\
|
2808 |
-
'\
|
2809 |
-
'\
|
2810 |
-
'\
|
2811 |
-
'\
|
2812 |
-
'\
|
2813 |
-
'\
|
2814 |
-
'\
|
2815 |
-
'\
|
2816 |
-
'\
|
2817 |
-
'\
|
2818 |
-
'\
|
2819 |
-
'\
|
2820 |
-
'\
|
2821 |
-
'\
|
2822 |
-
'\
|
2823 |
-
'\
|
2824 |
-
'\
|
2825 |
-
'\
|
2826 |
-
'\
|
2827 |
-
'\
|
2828 |
-
'\
|
2829 |
-
'\
|
2830 |
-
'\
|
2831 |
-
'\
|
2832 |
-
'\
|
2833 |
-
'\
|
2834 |
-
'\
|
2835 |
-
'\
|
2836 |
-
'\
|
2837 |
-
'\
|
2838 |
-
'\
|
2839 |
-
'\
|
2840 |
-
'\
|
2841 |
-
'\
|
2842 |
-
'\
|
2843 |
-
'\
|
2844 |
-
'\
|
2845 |
-
'\
|
2846 |
-
'\
|
2847 |
-
'\
|
2848 |
-
'\
|
2849 |
-
'\
|
2850 |
-
'\
|
2851 |
-
'\
|
2852 |
-
'\
|
2853 |
-
'\
|
2854 |
-
'\
|
2855 |
-
'\
|
2856 |
-
'\
|
2857 |
-
'\
|
2858 |
-
'\
|
2859 |
-
'\
|
2860 |
-
'\
|
2861 |
-
'\
|
2862 |
-
'\
|
2863 |
-
'\
|
2864 |
-
'\
|
2865 |
-
'\
|
2866 |
-
'\
|
2867 |
-
'\
|
2868 |
-
'\
|
2869 |
-
'\
|
2870 |
-
'\
|
2871 |
-
'\
|
2872 |
-
'\
|
2873 |
-
'\
|
2874 |
-
'\
|
2875 |
-
'\
|
2876 |
-
'\
|
2877 |
-
'\
|
2878 |
-
'\
|
2879 |
-
'\
|
2880 |
-
'\
|
2881 |
-
'\
|
2882 |
-
'\
|
2883 |
-
'\
|
2884 |
-
'\
|
2885 |
-
'\
|
2886 |
-
'\
|
2887 |
-
'\
|
2888 |
-
'\
|
2889 |
-
'\
|
2890 |
-
'\
|
2891 |
-
'\
|
2892 |
-
'\
|
2893 |
-
'\
|
2894 |
-
'\
|
2895 |
-
'\
|
2896 |
-
'\
|
2897 |
-
'\
|
2898 |
-
'\
|
2899 |
-
'\
|
2900 |
-
'\
|
2901 |
-
'\
|
2902 |
-
'\
|
2903 |
-
'\
|
2904 |
-
'\
|
2905 |
-
'\
|
2906 |
-
'\
|
2907 |
-
'\
|
2908 |
-
'\
|
2909 |
-
'\
|
2910 |
-
'\
|
2911 |
-
'\
|
2912 |
-
'\
|
2913 |
-
'\
|
2914 |
-
'\
|
2915 |
-
'\
|
2916 |
-
'\
|
2917 |
-
'\
|
2918 |
-
'\
|
2919 |
-
'\
|
2920 |
-
'\
|
2921 |
-
'\
|
2922 |
-
'\
|
2923 |
-
'\
|
2924 |
-
'\
|
2925 |
-
'\
|
2926 |
-
'\
|
2927 |
-
'\
|
2928 |
-
'\
|
2929 |
-
'\
|
2930 |
-
'\
|
2931 |
-
'\
|
2932 |
-
'\
|
2933 |
-
'\
|
2934 |
-
'\
|
2935 |
-
'\
|
2936 |
-
'\
|
2937 |
-
'\
|
2938 |
-
'\
|
2939 |
-
'\
|
2940 |
-
'\
|
2941 |
-
'\
|
2942 |
-
'\
|
2943 |
-
'\
|
2944 |
-
'\
|
2945 |
-
'\
|
2946 |
-
'\
|
2947 |
-
'\
|
2948 |
-
'\
|
2949 |
-
'\
|
2950 |
-
'\
|
2951 |
-
'\
|
2952 |
-
'\
|
2953 |
-
'\
|
2954 |
-
'\
|
2955 |
-
'\
|
2956 |
-
'\
|
2957 |
-
'\
|
2958 |
-
'\
|
2959 |
-
'\
|
2960 |
-
'\
|
2961 |
-
'\
|
2962 |
-
'\
|
2963 |
-
'\
|
2964 |
-
'\
|
2965 |
-
'\
|
2966 |
-
'\
|
2967 |
-
'\
|
2968 |
-
'\
|
2969 |
-
'\
|
2970 |
-
'\
|
2971 |
-
'\
|
2972 |
-
'\
|
2973 |
-
'\
|
2974 |
-
'\
|
2975 |
-
'\
|
2976 |
-
|
2977 |
-
|
2978 |
-
|
2979 |
-
|
2980 |
-
|
2981 |
-
|
2982 |
-
|
2983 |
-
|
2984 |
-
|
2985 |
-
|
2986 |
-
|
2987 |
-
|
2988 |
-
|
2989 |
-
|
2990 |
-
|
2991 |
-
|
2992 |
-
|
2993 |
-
|
2994 |
-
|
2995 |
-
|
2996 |
-
|
2997 |
-
|
2998 |
-
|
2999 |
-
|
3000 |
-
|
3001 |
-
|
3002 |
-
|
3003 |
-
|
3004 |
-
|
3005 |
-
|
3006 |
-
|
3007 |
-
|
3008 |
-
|
3009 |
-
|
3010 |
-
|
3011 |
-
|
3012 |
-
|
3013 |
-
|
3014 |
-
|
3015 |
-
|
3016 |
-
|
3017 |
-
|
3018 |
-
|
3019 |
-
|
3020 |
-
|
3021 |
-
|
3022 |
-
|
3023 |
-
|
3024 |
-
|
3025 |
-
|
3026 |
-
|
3027 |
-
|
3028 |
-
|
3029 |
-
|
3030 |
-
|
3031 |
-
|
3032 |
-
|
3033 |
-
|
3034 |
-
|
3035 |
-
|
3036 |
-
|
3037 |
-
|
3038 |
-
|
3039 |
-
|
3040 |
-
|
3041 |
-
|
3042 |
-
|
3043 |
-
|
3044 |
-
|
3045 |
-
|
3046 |
-
|
3047 |
-
|
3048 |
-
|
3049 |
-
|
3050 |
-
|
3051 |
-
|
3052 |
-
|
3053 |
-
|
3054 |
-
|
3055 |
-
|
3056 |
-
|
3057 |
-
|
3058 |
-
|
3059 |
-
|
3060 |
-
|
3061 |
-
|
3062 |
-
|
3063 |
-
|
3064 |
-
|
3065 |
-
|
3066 |
-
|
3067 |
-
|
3068 |
-
|
3069 |
-
|
3070 |
-
|
3071 |
-
|
3072 |
-
|
3073 |
-
|
3074 |
-
|
3075 |
-
|
3076 |
-
|
3077 |
-
|
3078 |
-
|
3079 |
-
|
3080 |
-
|
3081 |
-
|
3082 |
-
|
3083 |
-
|
3084 |
-
|
3085 |
-
|
3086 |
-
|
3087 |
-
|
3088 |
-
|
3089 |
-
|
3090 |
-
|
3091 |
-
|
3092 |
-
|
3093 |
-
|
3094 |
-
|
3095 |
-
|
3096 |
-
|
3097 |
-
|
3098 |
-
|
3099 |
-
|
3100 |
-
|
3101 |
-
|
3102 |
-
|
3103 |
-
|
3104 |
-
|
3105 |
-
|
3106 |
-
|
3107 |
-
|
3108 |
-
|
3109 |
-
|
3110 |
-
|
3111 |
-
|
3112 |
-
|
3113 |
-
|
3114 |
-
|
3115 |
-
|
3116 |
-
|
3117 |
-
|
3118 |
-
|
3119 |
-
|
3120 |
-
|
3121 |
-
|
3122 |
-
|
3123 |
-
|
3124 |
-
|
3125 |
-
|
3126 |
-
|
3127 |
-
|
3128 |
-
|
3129 |
-
|
3130 |
-
|
3131 |
-
|
3132 |
-
|
3133 |
-
|
3134 |
-
|
3135 |
-
|
3136 |
-
|
3137 |
-
|
3138 |
-
|
3139 |
-
|
3140 |
-
|
3141 |
-
|
3142 |
-
|
3143 |
-
|
3144 |
-
|
3145 |
-
|
3146 |
-
|
3147 |
-
|
3148 |
-
|
3149 |
-
|
3150 |
-
|
3151 |
-
|
3152 |
-
|
3153 |
-
|
3154 |
-
|
3155 |
-
|
3156 |
-
|
3157 |
-
|
3158 |
-
|
3159 |
-
|
3160 |
-
|
3161 |
-
|
3162 |
-
|
3163 |
-
|
3164 |
-
|
3165 |
-
|
3166 |
-
|
3167 |
-
|
3168 |
-
|
3169 |
-
|
3170 |
-
|
3171 |
-
|
3172 |
-
|
3173 |
-
|
3174 |
-
|
3175 |
-
|
3176 |
-
|
3177 |
-
|
3178 |
-
|
3179 |
-
|
3180 |
-
|
3181 |
-
|
3182 |
-
|
3183 |
-
|
3184 |
-
|
3185 |
-
|
3186 |
-
|
3187 |
-
|
3188 |
-
|
3189 |
-
|
3190 |
-
|
3191 |
-
|
3192 |
-
|
3193 |
-
|
3194 |
-
|
3195 |
-
|
3196 |
-
|
3197 |
-
|
3198 |
-
|
3199 |
-
|
3200 |
-
|
3201 |
-
|
3202 |
-
|
3203 |
-
|
3204 |
-
|
3205 |
-
|
3206 |
-
|
3207 |
-
|
3208 |
-
|
3209 |
-
|
3210 |
-
|
3211 |
-
|
3212 |
-
|
3213 |
-
|
3214 |
-
|
3215 |
-
|
3216 |
-
|
3217 |
-
|
3218 |
-
|
3219 |
-
|
3220 |
-
|
3221 |
-
|
3222 |
-
|
3223 |
-
|
3224 |
-
|
3225 |
-
|
3226 |
-
|
3227 |
-
|
3228 |
-
|
3229 |
-
|
3230 |
-
|
3231 |
-
|
3232 |
-
|
3233 |
-
|
3234 |
-
|
3235 |
-
|
3236 |
-
|
3237 |
-
|
3238 |
-
|
3239 |
-
|
3240 |
-
|
3241 |
-
|
3242 |
-
|
3243 |
-
|
3244 |
-
|
3245 |
-
|
3246 |
-
|
3247 |
-
|
3248 |
-
|
3249 |
-
|
3250 |
-
|
3251 |
-
|
3252 |
-
|
3253 |
-
|
3254 |
-
|
3255 |
-
|
3256 |
-
|
3257 |
-
|
3258 |
-
|
3259 |
-
|
3260 |
-
data.
|
3261 |
-
|
3262 |
-
|
3263 |
-
|
3264 |
-
|
3265 |
-
|
3266 |
-
|
3267 |
-
|
3268 |
-
|
3269 |
-
|
3270 |
-
|
3271 |
-
|
3272 |
-
|
3273 |
-
|
3274 |
-
|
3275 |
-
|
3276 |
-
|
3277 |
-
|
3278 |
-
|
3279 |
-
|
3280 |
-
|
3281 |
-
|
3282 |
-
|
3283 |
-
|
3284 |
-
if (
|
3285 |
-
|
3286 |
-
}
|
3287 |
-
|
3288 |
-
if (
|
3289 |
-
|
3290 |
-
|
3291 |
-
|
3292 |
-
|
3293 |
-
|
3294 |
-
|
3295 |
-
|
3296 |
-
|
3297 |
-
|
3298 |
-
|
3299 |
-
|
3300 |
-
|
3301 |
-
|
3302 |
-
|
3303 |
-
|
3304 |
-
|
3305 |
-
|
3306 |
-
|
3307 |
-
|
3308 |
-
|
3309 |
-
|
3310 |
-
|
3311 |
-
|
3312 |
-
|
3313 |
-
|
3314 |
-
|
3315 |
-
|
3316 |
-
|
3317 |
-
|
3318 |
-
|
3319 |
-
|
3320 |
-
|
3321 |
-
|
3322 |
-
|
3323 |
-
|
3324 |
-
|
3325 |
-
|
3326 |
-
|
3327 |
-
|
3328 |
-
|
3329 |
-
|
3330 |
-
|
3331 |
-
|
3332 |
-
|
3333 |
-
|
3334 |
-
|
3335 |
-
|
3336 |
-
|
3337 |
-
|
3338 |
-
|
3339 |
-
|
3340 |
-
|
3341 |
-
|
3342 |
-
|
3343 |
-
|
3344 |
-
|
3345 |
-
|
3346 |
-
|
3347 |
-
|
3348 |
-
|
3349 |
-
|
3350 |
-
|
3351 |
-
|
3352 |
-
}
|
3353 |
-
|
3354 |
-
|
3355 |
-
|
3356 |
-
|
3357 |
-
|
3358 |
-
|
3359 |
-
|
3360 |
-
|
3361 |
-
|
3362 |
-
|
3363 |
-
|
3364 |
-
|
3365 |
-
|
3366 |
-
|
3367 |
-
|
3368 |
-
|
3369 |
-
|
3370 |
-
|
3371 |
-
|
3372 |
-
|
3373 |
-
|
3374 |
-
|
3375 |
-
|
3376 |
-
|
3377 |
-
|
3378 |
-
|
3379 |
-
|
3380 |
-
|
3381 |
-
|
3382 |
-
|
3383 |
-
|
3384 |
-
|
3385 |
-
|
3386 |
-
|
3387 |
-
|
3388 |
-
|
3389 |
-
|
3390 |
-
|
3391 |
-
|
3392 |
-
|
3393 |
-
|
3394 |
-
|
3395 |
-
|
3396 |
-
|
3397 |
-
|
3398 |
-
|
3399 |
-
|
3400 |
-
|
3401 |
-
|
3402 |
-
|
3403 |
-
|
3404 |
-
|
3405 |
-
|
3406 |
-
|
3407 |
-
|
3408 |
-
return
|
3409 |
-
|
3410 |
-
|
3411 |
-
|
3412 |
-
|
3413 |
-
|
3414 |
-
|
3415 |
-
|
3416 |
-
|
3417 |
-
|
3418 |
-
|
3419 |
-
|
3420 |
-
|
3421 |
-
|
3422 |
-
|
3423 |
-
|
3424 |
-
|
3425 |
-
|
3426 |
-
|
3427 |
-
|
3428 |
-
|
3429 |
-
|
3430 |
-
|
3431 |
-
|
3432 |
-
|
3433 |
-
|
3434 |
-
|
3435 |
-
|
3436 |
-
|
3437 |
-
|
3438 |
-
|
3439 |
-
|
3440 |
-
|
3441 |
-
|
3442 |
-
|
3443 |
-
|
3444 |
-
|
3445 |
-
|
3446 |
-
|
3447 |
-
|
3448 |
-
|
3449 |
-
|
3450 |
-
|
3451 |
-
|
3452 |
-
|
3453 |
-
|
3454 |
-
|
3455 |
-
|
3456 |
-
|
3457 |
-
|
3458 |
-
|
3459 |
-
|
3460 |
-
|
3461 |
-
|
3462 |
-
|
3463 |
-
|
3464 |
-
|
3465 |
-
|
3466 |
-
}
|
3467 |
-
|
3468 |
-
|
3469 |
-
},
|
3470 |
-
|
3471 |
-
|
3472 |
-
|
3473 |
-
|
3474 |
-
|
3475 |
-
|
3476 |
-
|
3477 |
-
|
3478 |
-
|
3479 |
-
|
3480 |
-
|
3481 |
-
|
3482 |
-
|
3483 |
-
|
3484 |
-
|
3485 |
-
|
3486 |
-
|
3487 |
-
|
3488 |
-
|
3489 |
-
|
3490 |
-
|
3491 |
-
|
3492 |
-
|
3493 |
-
|
3494 |
-
|
3495 |
-
|
3496 |
-
|
3497 |
-
|
3498 |
-
|
3499 |
-
|
3500 |
-
|
3501 |
-
|
3502 |
-
|
3503 |
-
|
3504 |
-
|
3505 |
-
|
3506 |
-
|
3507 |
-
|
3508 |
-
|
3509 |
-
|
3510 |
-
|
3511 |
-
|
3512 |
-
|
3513 |
-
|
3514 |
-
|
3515 |
-
|
3516 |
-
|
3517 |
-
|
3518 |
-
|
3519 |
-
|
3520 |
-
|
3521 |
-
|
3522 |
-
|
3523 |
-
|
3524 |
-
|
3525 |
-
|
3526 |
-
|
3527 |
-
|
3528 |
-
|
3529 |
-
|
3530 |
-
|
3531 |
-
|
3532 |
-
|
3533 |
-
|
3534 |
-
|
3535 |
-
|
3536 |
-
|
3537 |
-
|
3538 |
-
|
3539 |
-
|
3540 |
-
|
3541 |
-
|
3542 |
-
|
3543 |
-
|
3544 |
-
|
3545 |
-
|
3546 |
-
|
3547 |
-
|
3548 |
-
|
3549 |
-
|
3550 |
-
|
3551 |
-
|
3552 |
-
|
3553 |
-
|
3554 |
-
|
3555 |
-
|
3556 |
-
|
3557 |
-
|
3558 |
-
|
3559 |
-
|
3560 |
-
|
3561 |
-
|
3562 |
-
|
3563 |
-
|
3564 |
-
|
3565 |
-
|
3566 |
-
|
3567 |
-
|
3568 |
-
|
3569 |
-
|
3570 |
-
|
3571 |
-
|
3572 |
-
|
3573 |
-
|
3574 |
-
|
3575 |
-
|
3576 |
-
|
3577 |
-
|
3578 |
-
|
3579 |
-
|
3580 |
-
|
3581 |
-
|
3582 |
-
|
3583 |
-
|
3584 |
-
|
3585 |
-
}
|
3586 |
-
|
3587 |
-
|
3588 |
-
|
3589 |
-
|
3590 |
-
|
3591 |
-
|
3592 |
-
|
3593 |
-
if (term
|
3594 |
-
|
3595 |
-
|
3596 |
-
|
3597 |
-
|
3598 |
-
|
3599 |
-
|
3600 |
-
|
3601 |
-
|
3602 |
-
|
3603 |
-
|
3604 |
-
|
3605 |
-
|
3606 |
-
|
3607 |
-
|
3608 |
-
|
3609 |
-
|
3610 |
-
|
3611 |
-
|
3612 |
-
|
3613 |
-
|
3614 |
-
|
3615 |
-
|
3616 |
-
|
3617 |
-
|
3618 |
-
|
3619 |
-
|
3620 |
-
|
3621 |
-
|
3622 |
-
|
3623 |
-
|
3624 |
-
|
3625 |
-
|
3626 |
-
|
3627 |
-
|
3628 |
-
|
3629 |
-
|
3630 |
-
|
3631 |
-
|
3632 |
-
|
3633 |
-
|
3634 |
-
|
3635 |
-
|
3636 |
-
|
3637 |
-
|
3638 |
-
|
3639 |
-
|
3640 |
-
|
3641 |
-
|
3642 |
-
|
3643 |
-
|
3644 |
-
|
3645 |
-
|
3646 |
-
|
3647 |
-
|
3648 |
-
|
3649 |
-
|
3650 |
-
|
3651 |
-
|
3652 |
-
|
3653 |
-
|
3654 |
-
|
3655 |
-
|
3656 |
-
|
3657 |
-
|
3658 |
-
|
3659 |
-
|
3660 |
-
|
3661 |
-
|
3662 |
-
|
3663 |
-
|
3664 |
-
|
3665 |
-
|
3666 |
-
|
3667 |
-
|
3668 |
-
|
3669 |
-
|
3670 |
-
|
3671 |
-
|
3672 |
-
|
3673 |
-
|
3674 |
-
|
3675 |
-
|
3676 |
-
|
3677 |
-
|
3678 |
-
|
3679 |
-
|
3680 |
-
|
3681 |
-
|
3682 |
-
|
3683 |
-
|
3684 |
-
|
3685 |
-
|
3686 |
-
|
3687 |
-
|
3688 |
-
|
3689 |
-
|
3690 |
-
|
3691 |
-
|
3692 |
-
|
3693 |
-
|
3694 |
-
|
3695 |
-
|
3696 |
-
|
3697 |
-
|
3698 |
-
|
3699 |
-
|
3700 |
-
|
3701 |
-
|
3702 |
-
|
3703 |
-
|
3704 |
-
|
3705 |
-
|
3706 |
-
|
3707 |
-
|
3708 |
-
|
3709 |
-
|
3710 |
-
|
3711 |
-
|
3712 |
-
|
3713 |
-
|
3714 |
-
var
|
3715 |
-
|
3716 |
-
|
3717 |
-
|
3718 |
-
|
3719 |
-
|
3720 |
-
|
3721 |
-
|
3722 |
-
|
3723 |
-
|
3724 |
-
|
3725 |
-
|
3726 |
-
|
3727 |
-
|
3728 |
-
|
3729 |
-
|
3730 |
-
|
3731 |
-
|
3732 |
-
|
3733 |
-
|
3734 |
-
|
3735 |
-
}
|
3736 |
-
|
3737 |
-
|
3738 |
-
|
3739 |
-
|
3740 |
-
|
3741 |
-
|
3742 |
-
|
3743 |
-
|
3744 |
-
|
3745 |
-
|
3746 |
-
|
3747 |
-
|
3748 |
-
|
3749 |
-
|
3750 |
-
|
3751 |
-
|
3752 |
-
|
3753 |
-
|
3754 |
-
|
3755 |
-
|
3756 |
-
|
3757 |
-
|
3758 |
-
|
3759 |
-
|
3760 |
-
|
3761 |
-
|
3762 |
-
|
3763 |
-
|
3764 |
-
}
|
3765 |
-
|
3766 |
-
|
3767 |
-
|
3768 |
-
|
3769 |
-
|
3770 |
-
|
3771 |
-
|
3772 |
-
|
3773 |
-
|
3774 |
-
|
3775 |
-
|
3776 |
-
|
3777 |
-
|
3778 |
-
|
3779 |
-
|
3780 |
-
|
3781 |
-
|
3782 |
-
|
3783 |
-
|
3784 |
-
|
3785 |
-
|
3786 |
-
|
3787 |
-
|
3788 |
-
|
3789 |
-
|
3790 |
-
|
3791 |
-
|
3792 |
-
|
3793 |
-
|
3794 |
-
|
3795 |
-
|
3796 |
-
}
|
3797 |
-
|
3798 |
-
|
3799 |
-
|
3800 |
-
|
3801 |
-
|
3802 |
-
|
3803 |
-
|
3804 |
-
|
3805 |
-
|
3806 |
-
|
3807 |
-
|
3808 |
-
this
|
3809 |
-
|
3810 |
-
|
3811 |
-
|
3812 |
-
|
3813 |
-
|
3814 |
-
|
3815 |
-
|
3816 |
-
|
3817 |
-
|
3818 |
-
|
3819 |
-
|
3820 |
-
|
3821 |
-
|
3822 |
-
|
3823 |
-
|
3824 |
-
|
3825 |
-
|
3826 |
-
|
3827 |
-
|
3828 |
-
|
3829 |
-
|
3830 |
-
|
3831 |
-
|
3832 |
-
|
3833 |
-
|
3834 |
-
|
3835 |
-
|
3836 |
-
|
3837 |
-
|
3838 |
-
|
3839 |
-
|
3840 |
-
|
3841 |
-
|
3842 |
-
|
3843 |
-
|
3844 |
-
|
3845 |
-
|
3846 |
-
|
3847 |
-
|
3848 |
-
|
3849 |
-
|
3850 |
-
|
3851 |
-
|
3852 |
-
|
3853 |
-
|
3854 |
-
|
3855 |
-
|
3856 |
-
|
3857 |
-
|
3858 |
-
|
3859 |
-
|
3860 |
-
|
3861 |
-
|
3862 |
-
|
3863 |
-
|
3864 |
-
|
3865 |
-
|
3866 |
-
|
3867 |
-
|
3868 |
-
|
3869 |
-
|
3870 |
-
|
3871 |
-
|
3872 |
-
|
3873 |
-
|
3874 |
-
|
3875 |
-
|
3876 |
-
|
3877 |
-
|
3878 |
-
|
3879 |
-
|
3880 |
-
|
3881 |
-
|
3882 |
-
|
3883 |
-
|
3884 |
-
|
3885 |
-
|
3886 |
-
|
3887 |
-
|
3888 |
-
|
3889 |
-
|
3890 |
-
|
3891 |
-
|
3892 |
-
|
3893 |
-
|
3894 |
-
|
3895 |
-
|
3896 |
-
|
3897 |
-
|
3898 |
-
|
3899 |
-
|
3900 |
-
|
3901 |
-
|
3902 |
-
|
3903 |
-
|
3904 |
-
|
3905 |
-
|
3906 |
-
|
3907 |
-
|
3908 |
-
|
3909 |
-
|
3910 |
-
|
3911 |
-
|
3912 |
-
|
3913 |
-
|
3914 |
-
|
3915 |
-
|
3916 |
-
|
3917 |
-
|
3918 |
-
|
3919 |
-
|
3920 |
-
|
3921 |
-
|
3922 |
-
|
3923 |
-
|
3924 |
-
|
3925 |
-
|
3926 |
-
|
3927 |
-
|
3928 |
-
|
3929 |
-
|
3930 |
-
|
3931 |
-
|
3932 |
-
|
3933 |
-
|
3934 |
-
|
3935 |
-
|
3936 |
-
|
3937 |
-
|
3938 |
-
|
3939 |
-
|
3940 |
-
|
3941 |
-
|
3942 |
-
|
3943 |
-
|
3944 |
-
|
3945 |
-
|
3946 |
-
|
3947 |
-
|
3948 |
-
|
3949 |
-
|
3950 |
-
|
3951 |
-
|
3952 |
-
|
3953 |
-
|
3954 |
-
|
3955 |
-
|
3956 |
-
|
3957 |
-
|
3958 |
-
|
3959 |
-
|
3960 |
-
|
3961 |
-
|
3962 |
-
|
3963 |
-
|
3964 |
-
|
3965 |
-
|
3966 |
-
|
3967 |
-
|
3968 |
-
|
3969 |
-
|
3970 |
-
|
3971 |
-
this.
|
3972 |
-
|
3973 |
-
|
3974 |
-
|
3975 |
-
|
3976 |
-
|
3977 |
-
|
3978 |
-
|
3979 |
-
|
3980 |
-
|
3981 |
-
|
3982 |
-
|
3983 |
-
|
3984 |
-
|
3985 |
-
this.
|
3986 |
-
|
3987 |
-
|
3988 |
-
|
3989 |
-
|
3990 |
-
|
3991 |
-
|
3992 |
-
|
3993 |
-
|
3994 |
-
|
3995 |
-
|
3996 |
-
|
3997 |
-
|
3998 |
-
|
3999 |
-
|
4000 |
-
|
4001 |
-
|
4002 |
-
|
4003 |
-
|
4004 |
-
|
4005 |
-
|
4006 |
-
|
4007 |
-
|
4008 |
-
|
4009 |
-
|
4010 |
-
|
4011 |
-
|
4012 |
-
|
4013 |
-
if (
|
4014 |
-
|
4015 |
-
|
4016 |
-
|
4017 |
-
|
4018 |
-
|
4019 |
-
|
4020 |
-
|
4021 |
-
|
4022 |
-
});
|
4023 |
-
|
4024 |
-
|
4025 |
-
|
4026 |
-
|
4027 |
-
|
4028 |
-
|
4029 |
-
|
4030 |
-
|
4031 |
-
|
4032 |
-
|
4033 |
-
|
4034 |
-
|
4035 |
-
|
4036 |
-
|
4037 |
-
|
4038 |
-
this.
|
4039 |
-
|
4040 |
-
|
4041 |
-
|
4042 |
-
|
4043 |
-
|
4044 |
-
|
4045 |
-
|
4046 |
-
|
4047 |
-
|
4048 |
-
|
4049 |
-
|
4050 |
-
|
4051 |
-
|
4052 |
-
|
4053 |
-
|
4054 |
-
|
4055 |
-
|
4056 |
-
|
4057 |
-
|
4058 |
-
|
4059 |
-
|
4060 |
-
|
4061 |
-
|
4062 |
-
|
4063 |
-
|
4064 |
-
|
4065 |
-
|
4066 |
-
|
4067 |
-
|
4068 |
-
|
4069 |
-
|
4070 |
-
|
4071 |
-
|
4072 |
-
|
4073 |
-
|
4074 |
-
|
4075 |
-
|
4076 |
-
|
4077 |
-
|
4078 |
-
|
4079 |
-
|
4080 |
-
|
4081 |
-
|
4082 |
-
|
4083 |
-
|
4084 |
-
|
4085 |
-
|
4086 |
-
|
4087 |
-
|
4088 |
-
|
4089 |
-
|
4090 |
-
|
4091 |
-
|
4092 |
-
|
4093 |
-
|
4094 |
-
|
4095 |
-
|
4096 |
-
|
4097 |
-
|
4098 |
-
|
4099 |
-
|
4100 |
-
|
4101 |
-
|
4102 |
-
|
4103 |
-
|
4104 |
-
|
4105 |
-
|
4106 |
-
|
4107 |
-
|
4108 |
-
|
4109 |
-
|
4110 |
-
|
4111 |
-
|
4112 |
-
}
|
4113 |
-
|
4114 |
-
|
4115 |
-
|
4116 |
-
|
4117 |
-
|
4118 |
-
|
4119 |
-
|
4120 |
-
|
4121 |
-
|
4122 |
-
|
4123 |
-
|
4124 |
-
|
4125 |
-
|
4126 |
-
|
4127 |
-
|
4128 |
-
|
4129 |
-
|
4130 |
-
|
4131 |
-
|
4132 |
-
|
4133 |
-
|
4134 |
-
|
4135 |
-
if (!
|
4136 |
-
|
4137 |
-
|
4138 |
-
|
4139 |
-
|
4140 |
-
|
4141 |
-
|
4142 |
-
|
4143 |
-
|
4144 |
-
|
4145 |
-
|
4146 |
-
|
4147 |
-
|
4148 |
-
|
4149 |
-
|
4150 |
-
|
4151 |
-
|
4152 |
-
|
4153 |
-
});
|
4154 |
-
|
4155 |
-
|
4156 |
-
|
4157 |
-
|
4158 |
-
};
|
4159 |
-
|
4160 |
-
|
4161 |
-
|
4162 |
-
|
4163 |
-
|
4164 |
-
|
4165 |
-
|
4166 |
-
|
4167 |
-
|
4168 |
-
|
4169 |
-
|
4170 |
-
|
4171 |
-
|
4172 |
-
|
4173 |
-
$
|
4174 |
-
|
4175 |
-
|
4176 |
-
|
4177 |
-
|
4178 |
-
|
4179 |
-
|
4180 |
-
|
4181 |
-
|
4182 |
-
|
4183 |
-
|
4184 |
-
|
4185 |
-
|
4186 |
-
|
4187 |
-
|
4188 |
-
|
4189 |
-
|
4190 |
-
|
4191 |
-
|
4192 |
-
|
4193 |
-
|
4194 |
-
|
4195 |
-
|
4196 |
-
|
4197 |
-
|
4198 |
-
|
4199 |
-
|
4200 |
-
|
4201 |
-
|
4202 |
-
|
4203 |
-
|
4204 |
-
|
4205 |
-
|
4206 |
-
|
4207 |
-
|
4208 |
-
|
4209 |
-
|
4210 |
-
|
4211 |
-
|
4212 |
-
|
4213 |
-
|
4214 |
-
|
4215 |
-
});
|
4216 |
-
|
4217 |
-
|
4218 |
-
|
4219 |
-
self.
|
4220 |
-
|
4221 |
-
|
4222 |
-
|
4223 |
-
|
4224 |
-
|
4225 |
-
|
4226 |
-
|
4227 |
-
|
4228 |
-
|
4229 |
-
|
4230 |
-
|
4231 |
-
|
4232 |
-
|
4233 |
-
|
4234 |
-
|
4235 |
-
|
4236 |
-
|
4237 |
-
|
4238 |
-
|
4239 |
-
|
4240 |
-
|
4241 |
-
|
4242 |
-
|
4243 |
-
|
4244 |
-
|
4245 |
-
|
4246 |
-
|
4247 |
-
|
4248 |
-
|
4249 |
-
|
4250 |
-
|
4251 |
-
|
4252 |
-
container.
|
4253 |
-
|
4254 |
-
|
4255 |
-
|
4256 |
-
|
4257 |
-
|
4258 |
-
|
4259 |
-
|
4260 |
-
|
4261 |
-
|
4262 |
-
|
4263 |
-
|
4264 |
-
|
4265 |
-
var
|
4266 |
-
|
4267 |
-
var
|
4268 |
-
|
4269 |
-
|
4270 |
-
|
4271 |
-
|
4272 |
-
|
4273 |
-
|
4274 |
-
|
4275 |
-
|
4276 |
-
|
4277 |
-
|
4278 |
-
|
4279 |
-
|
4280 |
-
|
4281 |
-
|
4282 |
-
|
4283 |
-
|
4284 |
-
|
4285 |
-
|
4286 |
-
|
4287 |
-
|
4288 |
-
}
|
4289 |
-
|
4290 |
-
|
4291 |
-
|
4292 |
-
|
4293 |
-
|
4294 |
-
|
4295 |
-
|
4296 |
-
|
4297 |
-
|
4298 |
-
|
4299 |
-
|
4300 |
-
|
4301 |
-
|
4302 |
-
|
4303 |
-
|
4304 |
-
|
4305 |
-
|
4306 |
-
|
4307 |
-
|
4308 |
-
|
4309 |
-
|
4310 |
-
|
4311 |
-
|
4312 |
-
|
4313 |
-
|
4314 |
-
|
4315 |
-
|
4316 |
-
|
4317 |
-
|
4318 |
-
|
4319 |
-
|
4320 |
-
|
4321 |
-
|
4322 |
-
|
4323 |
-
|
4324 |
-
|
4325 |
-
|
4326 |
-
|
4327 |
-
|
4328 |
-
|
4329 |
-
|
4330 |
-
|
4331 |
-
|
4332 |
-
|
4333 |
-
|
4334 |
-
|
4335 |
-
|
4336 |
-
|
4337 |
-
|
4338 |
-
|
4339 |
-
|
4340 |
-
|
4341 |
-
|
4342 |
-
|
4343 |
-
|
4344 |
-
|
4345 |
-
|
4346 |
-
|
4347 |
-
|
4348 |
-
|
4349 |
-
|
4350 |
-
|
4351 |
-
|
4352 |
-
|
4353 |
-
|
4354 |
-
|
4355 |
-
|
4356 |
-
|
4357 |
-
|
4358 |
-
|
4359 |
-
if (
|
4360 |
-
|
4361 |
-
}
|
4362 |
-
|
4363 |
-
|
4364 |
-
|
4365 |
-
|
4366 |
-
|
4367 |
-
|
4368 |
-
|
4369 |
-
|
4370 |
-
|
4371 |
-
|
4372 |
-
|
4373 |
-
|
4374 |
-
|
4375 |
-
}
|
4376 |
-
|
4377 |
-
|
4378 |
-
|
4379 |
-
|
4380 |
-
function
|
4381 |
-
|
4382 |
-
|
4383 |
-
|
4384 |
-
|
4385 |
-
|
4386 |
-
|
4387 |
-
|
4388 |
-
|
4389 |
-
}
|
4390 |
-
|
4391 |
-
|
4392 |
-
|
4393 |
-
|
4394 |
-
|
4395 |
-
|
4396 |
-
|
4397 |
-
|
4398 |
-
|
4399 |
-
|
4400 |
-
|
4401 |
-
|
4402 |
-
|
4403 |
-
|
4404 |
-
|
4405 |
-
|
4406 |
-
|
4407 |
-
|
4408 |
-
|
4409 |
-
|
4410 |
-
var
|
4411 |
-
|
4412 |
-
|
4413 |
-
|
4414 |
-
|
4415 |
-
|
4416 |
-
|
4417 |
-
|
4418 |
-
}
|
4419 |
-
|
4420 |
-
|
4421 |
-
|
4422 |
-
|
4423 |
-
|
4424 |
-
|
4425 |
-
|
4426 |
-
|
4427 |
-
|
4428 |
-
|
4429 |
-
|
4430 |
-
|
4431 |
-
|
4432 |
-
|
4433 |
-
|
4434 |
-
|
4435 |
-
|
4436 |
-
|
4437 |
-
|
4438 |
-
|
4439 |
-
|
4440 |
-
|
4441 |
-
|
4442 |
-
|
4443 |
-
|
4444 |
-
|
4445 |
-
|
4446 |
-
|
4447 |
-
|
4448 |
-
|
4449 |
-
|
4450 |
-
|
4451 |
-
|
4452 |
-
|
4453 |
-
|
4454 |
-
|
4455 |
-
|
4456 |
-
|
4457 |
-
|
4458 |
-
|
4459 |
-
|
4460 |
-
|
4461 |
-
|
4462 |
-
|
4463 |
-
|
4464 |
-
|
4465 |
-
|
4466 |
-
|
4467 |
-
|
4468 |
-
|
4469 |
-
|
4470 |
-
|
4471 |
-
|
4472 |
-
|
4473 |
-
|
4474 |
-
|
4475 |
-
|
4476 |
-
|
4477 |
-
|
4478 |
-
|
4479 |
-
|
4480 |
-
|
4481 |
-
|
4482 |
-
|
4483 |
-
|
4484 |
-
|
4485 |
-
|
4486 |
-
|
4487 |
-
|
4488 |
-
|
4489 |
-
|
4490 |
-
|
4491 |
-
|
4492 |
-
|
4493 |
-
|
4494 |
-
|
4495 |
-
|
4496 |
-
|
4497 |
-
|
4498 |
-
|
4499 |
-
|
4500 |
-
|
4501 |
-
|
4502 |
-
|
4503 |
-
|
4504 |
-
|
4505 |
-
|
4506 |
-
|
4507 |
-
});
|
4508 |
-
|
4509 |
-
|
4510 |
-
|
4511 |
-
|
4512 |
-
|
4513 |
-
|
4514 |
-
|
4515 |
-
|
4516 |
-
|
4517 |
-
|
4518 |
-
|
4519 |
-
|
4520 |
-
|
4521 |
-
|
4522 |
-
|
4523 |
-
|
4524 |
-
|
4525 |
-
|
4526 |
-
|
4527 |
-
|
4528 |
-
|
4529 |
-
|
4530 |
-
|
4531 |
-
|
4532 |
-
|
4533 |
-
|
4534 |
-
|
4535 |
-
|
4536 |
-
|
4537 |
-
|
4538 |
-
|
4539 |
-
|
4540 |
-
|
4541 |
-
|
4542 |
-
|
4543 |
-
|
4544 |
-
|
4545 |
-
|
4546 |
-
|
4547 |
-
|
4548 |
-
|
4549 |
-
|
4550 |
-
|
4551 |
-
|
4552 |
-
|
4553 |
-
|
4554 |
-
|
4555 |
-
|
4556 |
-
|
4557 |
-
|
4558 |
-
|
4559 |
-
|
4560 |
-
|
4561 |
-
|
4562 |
-
|
4563 |
-
|
4564 |
-
|
4565 |
-
|
4566 |
-
|
4567 |
-
|
4568 |
-
|
4569 |
-
|
4570 |
-
|
4571 |
-
|
4572 |
-
|
4573 |
-
|
4574 |
-
|
4575 |
-
|
4576 |
-
|
4577 |
-
|
4578 |
-
|
4579 |
-
|
4580 |
-
|
4581 |
-
|
4582 |
-
|
4583 |
-
|
4584 |
-
|
4585 |
-
|
4586 |
-
|
4587 |
-
|
4588 |
-
|
4589 |
-
|
4590 |
-
|
4591 |
-
|
4592 |
-
|
4593 |
-
|
4594 |
-
|
4595 |
-
|
4596 |
-
|
4597 |
-
|
4598 |
-
|
4599 |
-
|
4600 |
-
|
4601 |
-
|
4602 |
-
|
4603 |
-
|
4604 |
-
|
4605 |
-
|
4606 |
-
|
4607 |
-
|
4608 |
-
|
4609 |
-
|
4610 |
-
|
4611 |
-
|
4612 |
-
|
4613 |
-
|
4614 |
-
|
4615 |
-
|
4616 |
-
|
4617 |
-
|
4618 |
-
|
4619 |
-
|
4620 |
-
|
4621 |
-
|
4622 |
-
|
4623 |
-
|
4624 |
-
|
4625 |
-
|
4626 |
-
|
4627 |
-
|
4628 |
-
|
4629 |
-
|
4630 |
-
|
4631 |
-
|
4632 |
-
|
4633 |
-
|
4634 |
-
|
4635 |
-
|
4636 |
-
|
4637 |
-
|
4638 |
-
if (options.
|
4639 |
-
options.
|
4640 |
-
|
4641 |
-
|
4642 |
-
|
4643 |
-
|
4644 |
-
|
4645 |
-
|
4646 |
-
|
4647 |
-
|
4648 |
-
|
4649 |
-
|
4650 |
-
|
4651 |
-
|
4652 |
-
|
4653 |
-
|
4654 |
-
|
4655 |
-
|
4656 |
-
}
|
4657 |
-
|
4658 |
-
|
4659 |
-
options.
|
4660 |
-
|
4661 |
-
|
4662 |
-
|
4663 |
-
|
4664 |
-
|
4665 |
-
|
4666 |
-
);
|
4667 |
-
}
|
4668 |
-
|
4669 |
-
if (options.
|
4670 |
-
options.
|
4671 |
-
options.
|
4672 |
-
|
4673 |
-
);
|
4674 |
-
}
|
4675 |
-
|
4676 |
-
if (
|
4677 |
-
options.
|
4678 |
-
|
4679 |
-
options.
|
4680 |
-
|
4681 |
-
|
4682 |
-
|
4683 |
-
|
4684 |
-
|
4685 |
-
|
4686 |
-
);
|
4687 |
-
|
4688 |
-
|
4689 |
-
|
4690 |
-
|
4691 |
-
|
4692 |
-
|
4693 |
-
}
|
4694 |
-
|
4695 |
-
if (options.
|
4696 |
-
|
4697 |
-
|
4698 |
-
|
4699 |
-
options.
|
4700 |
-
|
4701 |
-
|
4702 |
-
|
4703 |
-
|
4704 |
-
|
4705 |
-
|
4706 |
-
|
4707 |
-
|
4708 |
-
|
4709 |
-
|
4710 |
-
|
4711 |
-
|
4712 |
-
|
4713 |
-
|
4714 |
-
|
4715 |
-
|
4716 |
-
|
4717 |
-
|
4718 |
-
|
4719 |
-
|
4720 |
-
|
4721 |
-
|
4722 |
-
|
4723 |
-
|
4724 |
-
|
4725 |
-
|
4726 |
-
options.
|
4727 |
-
|
4728 |
-
|
4729 |
-
|
4730 |
-
|
4731 |
-
|
4732 |
-
|
4733 |
-
|
4734 |
-
|
4735 |
-
|
4736 |
-
|
4737 |
-
|
4738 |
-
|
4739 |
-
|
4740 |
-
|
4741 |
-
|
4742 |
-
|
4743 |
-
|
4744 |
-
|
4745 |
-
|
4746 |
-
|
4747 |
-
|
4748 |
-
var
|
4749 |
-
|
4750 |
-
options.
|
4751 |
-
|
4752 |
-
|
4753 |
-
|
4754 |
-
|
4755 |
-
|
4756 |
-
|
4757 |
-
|
4758 |
-
|
4759 |
-
|
4760 |
-
|
4761 |
-
|
4762 |
-
|
4763 |
-
|
4764 |
-
|
4765 |
-
|
4766 |
-
|
4767 |
-
|
4768 |
-
|
4769 |
-
|
4770 |
-
|
4771 |
-
|
4772 |
-
|
4773 |
-
|
4774 |
-
|
4775 |
-
|
4776 |
-
|
4777 |
-
|
4778 |
-
|
4779 |
-
|
4780 |
-
|
4781 |
-
|
4782 |
-
|
4783 |
-
|
4784 |
-
|
4785 |
-
|
4786 |
-
|
4787 |
-
|
4788 |
-
|
4789 |
-
|
4790 |
-
|
4791 |
-
|
4792 |
-
|
4793 |
-
|
4794 |
-
|
4795 |
-
|
4796 |
-
|
4797 |
-
|
4798 |
-
|
4799 |
-
|
4800 |
-
|
4801 |
-
|
4802 |
-
|
4803 |
-
|
4804 |
-
|
4805 |
-
|
4806 |
-
|
4807 |
-
|
4808 |
-
|
4809 |
-
|
4810 |
-
|
4811 |
-
|
4812 |
-
|
4813 |
-
|
4814 |
-
|
4815 |
-
|
4816 |
-
|
4817 |
-
|
4818 |
-
|
4819 |
-
|
4820 |
-
|
4821 |
-
|
4822 |
-
|
4823 |
-
|
4824 |
-
|
4825 |
-
|
4826 |
-
|
4827 |
-
|
4828 |
-
|
4829 |
-
|
4830 |
-
|
4831 |
-
|
4832 |
-
|
4833 |
-
|
4834 |
-
|
4835 |
-
|
4836 |
-
|
4837 |
-
|
4838 |
-
|
4839 |
-
|
4840 |
-
|
4841 |
-
|
4842 |
-
|
4843 |
-
|
4844 |
-
|
4845 |
-
|
4846 |
-
|
4847 |
-
|
4848 |
-
|
4849 |
-
|
4850 |
-
|
4851 |
-
|
4852 |
-
|
4853 |
-
|
4854 |
-
|
4855 |
-
|
4856 |
-
|
4857 |
-
|
4858 |
-
|
4859 |
-
|
4860 |
-
}
|
4861 |
-
|
4862 |
-
|
4863 |
-
|
4864 |
-
|
4865 |
-
|
4866 |
-
|
4867 |
-
|
4868 |
-
|
4869 |
-
|
4870 |
-
|
4871 |
-
|
4872 |
-
|
4873 |
-
|
4874 |
-
|
4875 |
-
|
4876 |
-
|
4877 |
-
|
4878 |
-
|
4879 |
-
|
4880 |
-
|
4881 |
-
|
4882 |
-
|
4883 |
-
|
4884 |
-
|
4885 |
-
|
4886 |
-
|
4887 |
-
|
4888 |
-
|
4889 |
-
|
4890 |
-
|
4891 |
-
|
4892 |
-
|
4893 |
-
|
4894 |
-
|
4895 |
-
|
4896 |
-
|
4897 |
-
|
4898 |
-
|
4899 |
-
|
4900 |
-
|
4901 |
-
|
4902 |
-
|
4903 |
-
|
4904 |
-
|
4905 |
-
|
4906 |
-
|
4907 |
-
|
4908 |
-
|
4909 |
-
|
4910 |
-
|
4911 |
-
|
4912 |
-
|
4913 |
-
|
4914 |
-
|
4915 |
-
|
4916 |
-
|
4917 |
-
|
4918 |
-
|
4919 |
-
|
4920 |
-
|
4921 |
-
|
4922 |
-
|
4923 |
-
|
4924 |
-
|
4925 |
-
|
4926 |
-
|
4927 |
-
|
4928 |
-
|
4929 |
-
|
4930 |
-
|
4931 |
-
|
4932 |
-
|
4933 |
-
|
4934 |
-
|
4935 |
-
|
4936 |
-
|
4937 |
-
|
4938 |
-
|
4939 |
-
|
4940 |
-
|
4941 |
-
|
4942 |
-
|
4943 |
-
|
4944 |
-
|
4945 |
-
}
|
4946 |
-
|
4947 |
-
|
4948 |
-
|
4949 |
-
|
4950 |
-
|
4951 |
-
|
4952 |
-
|
4953 |
-
|
4954 |
-
|
4955 |
-
|
4956 |
-
|
4957 |
-
|
4958 |
-
|
4959 |
-
|
4960 |
-
|
4961 |
-
|
4962 |
-
|
4963 |
-
|
4964 |
-
|
4965 |
-
|
4966 |
-
|
4967 |
-
|
4968 |
-
|
4969 |
-
|
4970 |
-
|
4971 |
-
|
4972 |
-
|
4973 |
-
|
4974 |
-
|
4975 |
-
|
4976 |
-
|
4977 |
-
|
4978 |
-
|
4979 |
-
|
4980 |
-
|
4981 |
-
|
4982 |
-
|
4983 |
-
|
4984 |
-
|
4985 |
-
|
4986 |
-
|
4987 |
-
|
4988 |
-
|
4989 |
-
|
4990 |
-
|
4991 |
-
|
4992 |
-
|
4993 |
-
|
4994 |
-
|
4995 |
-
}
|
4996 |
-
|
4997 |
-
|
4998 |
-
|
4999 |
-
var
|
5000 |
-
|
5001 |
-
|
5002 |
-
|
5003 |
-
|
5004 |
-
|
5005 |
-
|
5006 |
-
|
5007 |
-
|
5008 |
-
|
5009 |
-
|
5010 |
-
|
5011 |
-
this.options
|
5012 |
-
}
|
5013 |
-
|
5014 |
-
|
5015 |
-
|
5016 |
-
|
5017 |
-
|
5018 |
-
|
5019 |
-
|
5020 |
-
|
5021 |
-
|
5022 |
-
|
5023 |
-
|
5024 |
-
|
5025 |
-
|
5026 |
-
|
5027 |
-
|
5028 |
-
|
5029 |
-
|
5030 |
-
|
5031 |
-
|
5032 |
-
|
5033 |
-
|
5034 |
-
|
5035 |
-
|
5036 |
-
|
5037 |
-
|
5038 |
-
|
5039 |
-
|
5040 |
-
|
5041 |
-
|
5042 |
-
|
5043 |
-
|
5044 |
-
|
5045 |
-
|
5046 |
-
|
5047 |
-
|
5048 |
-
|
5049 |
-
|
5050 |
-
|
5051 |
-
|
5052 |
-
|
5053 |
-
|
5054 |
-
|
5055 |
-
|
5056 |
-
|
5057 |
-
|
5058 |
-
|
5059 |
-
|
5060 |
-
|
5061 |
-
|
5062 |
-
|
5063 |
-
|
5064 |
-
|
5065 |
-
|
5066 |
-
|
5067 |
-
|
5068 |
-
|
5069 |
-
|
5070 |
-
|
5071 |
-
|
5072 |
-
|
5073 |
-
|
5074 |
-
|
5075 |
-
|
5076 |
-
|
5077 |
-
|
5078 |
-
|
5079 |
-
|
5080 |
-
|
5081 |
-
|
5082 |
-
|
5083 |
-
|
5084 |
-
|
5085 |
-
|
5086 |
-
|
5087 |
-
|
5088 |
-
|
5089 |
-
|
5090 |
-
|
5091 |
-
|
5092 |
-
|
5093 |
-
|
5094 |
-
|
5095 |
-
|
5096 |
-
|
5097 |
-
|
5098 |
-
|
5099 |
-
|
5100 |
-
|
5101 |
-
|
5102 |
-
|
5103 |
-
|
5104 |
-
|
5105 |
-
}
|
5106 |
-
|
5107 |
-
|
5108 |
-
|
5109 |
-
$element
|
5110 |
-
|
5111 |
-
|
5112 |
-
|
5113 |
-
|
5114 |
-
|
5115 |
-
|
5116 |
-
|
5117 |
-
|
5118 |
-
|
5119 |
-
|
5120 |
-
|
5121 |
-
|
5122 |
-
|
5123 |
-
|
5124 |
-
|
5125 |
-
|
5126 |
-
|
5127 |
-
|
5128 |
-
|
5129 |
-
|
5130 |
-
|
5131 |
-
|
5132 |
-
|
5133 |
-
|
5134 |
-
|
5135 |
-
|
5136 |
-
|
5137 |
-
|
5138 |
-
|
5139 |
-
|
5140 |
-
|
5141 |
-
|
5142 |
-
|
5143 |
-
|
5144 |
-
|
5145 |
-
|
5146 |
-
|
5147 |
-
|
5148 |
-
|
5149 |
-
|
5150 |
-
|
5151 |
-
|
5152 |
-
|
5153 |
-
|
5154 |
-
|
5155 |
-
|
5156 |
-
|
5157 |
-
|
5158 |
-
|
5159 |
-
|
5160 |
-
|
5161 |
-
|
5162 |
-
|
5163 |
-
|
5164 |
-
|
5165 |
-
|
5166 |
-
|
5167 |
-
|
5168 |
-
|
5169 |
-
|
5170 |
-
|
5171 |
-
|
5172 |
-
|
5173 |
-
|
5174 |
-
|
5175 |
-
|
5176 |
-
|
5177 |
-
|
5178 |
-
|
5179 |
-
|
5180 |
-
|
5181 |
-
|
5182 |
-
|
5183 |
-
|
5184 |
-
|
5185 |
-
|
5186 |
-
|
5187 |
-
|
5188 |
-
|
5189 |
-
|
5190 |
-
|
5191 |
-
|
5192 |
-
|
5193 |
-
|
5194 |
-
|
5195 |
-
|
5196 |
-
|
5197 |
-
|
5198 |
-
|
5199 |
-
|
5200 |
-
|
5201 |
-
|
5202 |
-
|
5203 |
-
|
5204 |
-
this.$element
|
5205 |
-
|
5206 |
-
|
5207 |
-
|
5208 |
-
|
5209 |
-
|
5210 |
-
}
|
5211 |
-
|
5212 |
-
|
5213 |
-
|
5214 |
-
|
5215 |
-
|
5216 |
-
|
5217 |
-
|
5218 |
-
|
5219 |
-
|
5220 |
-
|
5221 |
-
|
5222 |
-
|
5223 |
-
|
5224 |
-
|
5225 |
-
|
5226 |
-
|
5227 |
-
|
5228 |
-
|
5229 |
-
|
5230 |
-
|
5231 |
-
|
5232 |
-
|
5233 |
-
|
5234 |
-
|
5235 |
-
|
5236 |
-
|
5237 |
-
|
5238 |
-
|
5239 |
-
|
5240 |
-
|
5241 |
-
|
5242 |
-
|
5243 |
-
);
|
5244 |
-
|
5245 |
-
|
5246 |
-
|
5247 |
-
|
5248 |
-
|
5249 |
-
|
5250 |
-
|
5251 |
-
|
5252 |
-
|
5253 |
-
|
5254 |
-
|
5255 |
-
|
5256 |
-
|
5257 |
-
|
5258 |
-
|
5259 |
-
|
5260 |
-
|
5261 |
-
|
5262 |
-
|
5263 |
-
|
5264 |
-
|
5265 |
-
|
5266 |
-
|
5267 |
-
|
5268 |
-
|
5269 |
-
|
5270 |
-
|
5271 |
-
|
5272 |
-
|
5273 |
-
|
5274 |
-
|
5275 |
-
|
5276 |
-
|
5277 |
-
|
5278 |
-
|
5279 |
-
|
5280 |
-
|
5281 |
-
|
5282 |
-
|
5283 |
-
|
5284 |
-
|
5285 |
-
|
5286 |
-
|
5287 |
-
|
5288 |
-
|
5289 |
-
|
5290 |
-
|
5291 |
-
|
5292 |
-
|
5293 |
-
|
5294 |
-
|
5295 |
-
|
5296 |
-
|
5297 |
-
|
5298 |
-
|
5299 |
-
|
5300 |
-
|
5301 |
-
|
5302 |
-
|
5303 |
-
|
5304 |
-
|
5305 |
-
|
5306 |
-
|
5307 |
-
|
5308 |
-
|
5309 |
-
|
5310 |
-
|
5311 |
-
|
5312 |
-
|
5313 |
-
|
5314 |
-
|
5315 |
-
|
5316 |
-
|
5317 |
-
|
5318 |
-
|
5319 |
-
|
5320 |
-
|
5321 |
-
|
5322 |
-
|
5323 |
-
|
5324 |
-
|
5325 |
-
|
5326 |
-
|
5327 |
-
|
5328 |
-
|
5329 |
-
|
5330 |
-
|
5331 |
-
|
5332 |
-
|
5333 |
-
|
5334 |
-
|
5335 |
-
|
5336 |
-
|
5337 |
-
|
5338 |
-
|
5339 |
-
|
5340 |
-
|
5341 |
-
|
5342 |
-
|
5343 |
-
|
5344 |
-
|
5345 |
-
|
5346 |
-
|
5347 |
-
|
5348 |
-
|
5349 |
-
|
5350 |
-
|
5351 |
-
|
5352 |
-
|
5353 |
-
|
5354 |
-
|
5355 |
-
|
5356 |
-
|
5357 |
-
|
5358 |
-
|
5359 |
-
|
5360 |
-
|
5361 |
-
|
5362 |
-
|
5363 |
-
|
5364 |
-
|
5365 |
-
|
5366 |
-
|
5367 |
-
|
5368 |
-
|
5369 |
-
|
5370 |
-
|
5371 |
-
|
5372 |
-
|
5373 |
-
|
5374 |
-
|
5375 |
-
|
5376 |
-
|
5377 |
-
|
5378 |
-
|
5379 |
-
|
5380 |
-
|
5381 |
-
|
5382 |
-
|
5383 |
-
|
5384 |
-
|
5385 |
-
|
5386 |
-
|
5387 |
-
|
5388 |
-
|
5389 |
-
|
5390 |
-
|
5391 |
-
|
5392 |
-
|
5393 |
-
|
5394 |
-
|
5395 |
-
|
5396 |
-
|
5397 |
-
|
5398 |
-
|
5399 |
-
|
5400 |
-
|
5401 |
-
|
5402 |
-
|
5403 |
-
|
5404 |
-
|
5405 |
-
|
5406 |
-
|
5407 |
-
|
5408 |
-
|
5409 |
-
|
5410 |
-
|
5411 |
-
|
5412 |
-
|
5413 |
-
|
5414 |
-
|
5415 |
-
|
5416 |
-
|
5417 |
-
|
5418 |
-
|
5419 |
-
|
5420 |
-
|
5421 |
-
|
5422 |
-
|
5423 |
-
|
5424 |
-
|
5425 |
-
|
5426 |
-
|
5427 |
-
|
5428 |
-
|
5429 |
-
|
5430 |
-
|
5431 |
-
|
5432 |
-
|
5433 |
-
|
5434 |
-
|
5435 |
-
|
5436 |
-
|
5437 |
-
|
5438 |
-
|
5439 |
-
|
5440 |
-
|
5441 |
-
|
5442 |
-
|
5443 |
-
|
5444 |
-
|
5445 |
-
|
5446 |
-
|
5447 |
-
|
5448 |
-
|
5449 |
-
|
5450 |
-
|
5451 |
-
|
5452 |
-
|
5453 |
-
|
5454 |
-
|
5455 |
-
|
5456 |
-
|
5457 |
-
|
5458 |
-
|
5459 |
-
|
5460 |
-
|
5461 |
-
|
5462 |
-
|
5463 |
-
|
5464 |
-
|
5465 |
-
|
5466 |
-
|
5467 |
-
|
5468 |
-
|
5469 |
-
|
5470 |
-
|
5471 |
-
|
5472 |
-
|
5473 |
-
|
5474 |
-
|
5475 |
-
|
5476 |
-
|
5477 |
-
|
5478 |
-
|
5479 |
-
|
5480 |
-
|
5481 |
-
|
5482 |
-
|
5483 |
-
|
5484 |
-
|
5485 |
-
|
5486 |
-
|
5487 |
-
|
5488 |
-
|
5489 |
-
|
5490 |
-
|
5491 |
-
|
5492 |
-
|
5493 |
-
|
5494 |
-
|
5495 |
-
|
5496 |
-
|
5497 |
-
|
5498 |
-
|
5499 |
-
|
5500 |
-
|
5501 |
-
|
5502 |
-
|
5503 |
-
|
5504 |
-
|
5505 |
-
|
5506 |
-
|
5507 |
-
|
5508 |
-
|
5509 |
-
|
5510 |
-
|
5511 |
-
|
5512 |
-
|
5513 |
-
|
5514 |
-
|
5515 |
-
}
|
5516 |
-
|
5517 |
-
|
5518 |
-
|
5519 |
-
|
5520 |
-
|
5521 |
-
|
5522 |
-
|
5523 |
-
|
5524 |
-
|
5525 |
-
|
5526 |
-
|
5527 |
-
|
5528 |
-
|
5529 |
-
|
5530 |
-
|
5531 |
-
|
5532 |
-
|
5533 |
-
|
5534 |
-
|
5535 |
-
|
5536 |
-
|
5537 |
-
|
5538 |
-
|
5539 |
-
|
5540 |
-
|
5541 |
-
|
5542 |
-
|
5543 |
-
|
5544 |
-
|
5545 |
-
|
5546 |
-
|
5547 |
-
|
5548 |
-
|
5549 |
-
|
5550 |
-
|
5551 |
-
|
5552 |
-
}
|
5553 |
-
|
5554 |
-
|
5555 |
-
|
5556 |
-
|
5557 |
-
|
5558 |
-
|
5559 |
-
|
5560 |
-
|
5561 |
-
|
5562 |
-
);
|
5563 |
-
|
5564 |
-
|
5565 |
-
|
5566 |
-
|
5567 |
-
|
5568 |
-
|
5569 |
-
|
5570 |
-
|
5571 |
-
|
5572 |
-
|
5573 |
-
|
5574 |
-
|
5575 |
-
|
5576 |
-
|
5577 |
-
|
5578 |
-
|
5579 |
-
|
5580 |
-
|
5581 |
-
|
5582 |
-
|
5583 |
-
|
5584 |
-
|
5585 |
-
|
5586 |
-
|
5587 |
-
if (this.
|
5588 |
-
|
5589 |
-
|
5590 |
-
|
5591 |
-
|
5592 |
-
|
5593 |
-
|
5594 |
-
|
5595 |
-
|
5596 |
-
|
5597 |
-
}
|
5598 |
-
|
5599 |
-
this.
|
5600 |
-
|
5601 |
-
|
5602 |
-
|
5603 |
-
|
5604 |
-
|
5605 |
-
|
5606 |
-
|
5607 |
-
this.$
|
5608 |
-
|
5609 |
-
|
5610 |
-
|
5611 |
-
|
5612 |
-
this.
|
5613 |
-
|
5614 |
-
|
5615 |
-
|
5616 |
-
this.
|
5617 |
-
this.
|
5618 |
-
};
|
5619 |
-
|
5620 |
-
Select2.prototype.
|
5621 |
-
|
5622 |
-
|
5623 |
-
'
|
5624 |
-
'
|
5625 |
-
|
5626 |
-
|
5627 |
-
|
5628 |
-
|
5629 |
-
|
5630 |
-
|
5631 |
-
|
5632 |
-
|
5633 |
-
|
5634 |
-
|
5635 |
-
|
5636 |
-
|
5637 |
-
|
5638 |
-
|
5639 |
-
|
5640 |
-
|
5641 |
-
|
5642 |
-
|
5643 |
-
|
5644 |
-
|
5645 |
-
|
5646 |
-
|
5647 |
-
|
5648 |
-
|
5649 |
-
|
5650 |
-
|
5651 |
-
|
5652 |
-
|
5653 |
-
|
5654 |
-
|
5655 |
-
|
5656 |
-
|
5657 |
-
|
5658 |
-
|
5659 |
-
|
5660 |
-
|
5661 |
-
|
5662 |
-
|
5663 |
-
|
5664 |
-
|
5665 |
-
|
5666 |
-
|
5667 |
-
|
5668 |
-
|
5669 |
-
|
5670 |
-
|
5671 |
-
|
5672 |
-
|
5673 |
-
|
5674 |
-
|
5675 |
-
|
5676 |
-
|
5677 |
-
|
5678 |
-
|
5679 |
-
|
5680 |
-
|
5681 |
-
|
5682 |
-
|
5683 |
-
|
5684 |
-
}
|
5685 |
-
|
5686 |
-
|
5687 |
-
|
5688 |
-
|
5689 |
-
|
5690 |
-
|
5691 |
-
|
5692 |
-
|
5693 |
-
|
5694 |
-
|
5695 |
-
|
5696 |
-
|
5697 |
-
|
5698 |
-
|
5699 |
-
|
5700 |
-
|
5701 |
-
|
5702 |
-
|
5703 |
-
|
5704 |
-
|
5705 |
-
|
5706 |
-
|
5707 |
-
|
5708 |
-
|
5709 |
-
|
5710 |
-
|
5711 |
-
|
5712 |
-
|
5713 |
-
|
5714 |
-
|
5715 |
-
|
5716 |
-
|
5717 |
-
|
5718 |
-
|
5719 |
-
|
5720 |
-
|
5721 |
-
|
5722 |
-
|
5723 |
-
|
5724 |
-
|
5725 |
-
|
5726 |
-
|
5727 |
-
|
5728 |
-
|
5729 |
-
|
5730 |
-
|
5731 |
-
|
5732 |
-
|
5733 |
-
|
5734 |
-
|
5735 |
-
$container
|
5736 |
-
|
5737 |
-
|
5738 |
-
|
5739 |
-
|
5740 |
-
|
5741 |
-
|
5742 |
-
|
5743 |
-
|
5744 |
-
|
5745 |
-
|
5746 |
-
|
5747 |
-
|
5748 |
-
|
5749 |
-
|
5750 |
-
|
5751 |
-
|
5752 |
-
|
5753 |
-
|
5754 |
-
|
5755 |
-
|
5756 |
-
|
5757 |
-
|
5758 |
-
|
5759 |
-
|
5760 |
-
|
5761 |
-
|
5762 |
-
|
5763 |
-
|
5764 |
-
|
5765 |
-
|
5766 |
-
|
5767 |
-
|
5768 |
-
|
5769 |
-
|
5770 |
-
|
5771 |
-
|
5772 |
-
|
5773 |
-
|
5774 |
-
|
5775 |
-
|
5776 |
-
|
5777 |
-
|
5778 |
-
|
5779 |
-
|
5780 |
-
|
5781 |
-
|
5782 |
-
|
5783 |
-
|
5784 |
-
|
5785 |
-
|
5786 |
-
|
5787 |
-
|
5788 |
-
|
5789 |
-
|
5790 |
-
|
5791 |
-
|
5792 |
-
|
5793 |
-
|
5794 |
-
|
5795 |
-
|
5796 |
-
|
5797 |
-
|
5798 |
-
|
5799 |
-
|
5800 |
-
|
5801 |
-
|
5802 |
-
|
5803 |
-
|
5804 |
-
|
5805 |
-
|
5806 |
-
|
5807 |
-
|
5808 |
-
|
5809 |
-
|
5810 |
-
|
5811 |
-
|
5812 |
-
|
5813 |
-
|
5814 |
-
|
5815 |
-
|
5816 |
-
|
5817 |
-
|
5818 |
-
|
5819 |
-
|
5820 |
-
|
5821 |
-
|
5822 |
-
|
5823 |
-
|
5824 |
-
|
5825 |
-
|
5826 |
-
|
5827 |
-
|
5828 |
-
|
5829 |
-
|
5830 |
-
|
5831 |
-
|
5832 |
-
|
5833 |
-
|
5834 |
-
|
5835 |
-
|
5836 |
-
|
5837 |
-
|
5838 |
-
|
5839 |
-
|
5840 |
-
|
5841 |
-
|
5842 |
-
|
5843 |
-
|
5844 |
-
'
|
5845 |
-
], function (
|
5846 |
-
|
5847 |
-
|
5848 |
-
|
5849 |
-
|
5850 |
-
|
5851 |
-
|
5852 |
-
|
5853 |
-
|
5854 |
-
|
5855 |
-
|
5856 |
-
|
5857 |
-
|
5858 |
-
|
5859 |
-
|
5860 |
-
|
5861 |
-
|
5862 |
-
|
5863 |
-
|
5864 |
-
|
5865 |
-
|
5866 |
-
|
5867 |
-
|
5868 |
-
|
5869 |
-
|
5870 |
-
|
5871 |
-
|
5872 |
-
|
5873 |
-
|
5874 |
-
|
5875 |
-
|
5876 |
-
|
5877 |
-
|
5878 |
-
|
5879 |
-
|
5880 |
-
|
5881 |
-
|
5882 |
-
|
5883 |
-
|
5884 |
-
|
5885 |
-
|
5886 |
-
|
5887 |
-
|
5888 |
-
|
5889 |
-
|
5890 |
-
|
5891 |
-
|
5892 |
-
|
5893 |
-
|
5894 |
-
|
5895 |
-
|
5896 |
-
|
5897 |
-
|
5898 |
-
|
5899 |
-
|
5900 |
-
|
5901 |
-
|
5902 |
-
|
5903 |
-
|
5904 |
-
|
5905 |
-
|
5906 |
-
|
5907 |
-
|
5908 |
-
|
5909 |
-
|
5910 |
-
|
5911 |
-
|
5912 |
-
|
5913 |
-
|
5914 |
-
|
5915 |
-
|
5916 |
-
|
5917 |
-
}
|
5918 |
-
|
5919 |
-
|
5920 |
-
var self = this;
|
5921 |
-
|
5922 |
-
|
5923 |
-
|
5924 |
-
|
5925 |
-
|
5926 |
-
|
5927 |
-
|
5928 |
-
|
5929 |
-
|
5930 |
-
|
5931 |
-
|
5932 |
-
|
5933 |
-
|
5934 |
-
|
5935 |
-
|
5936 |
-
|
5937 |
-
|
5938 |
-
|
5939 |
-
|
5940 |
-
|
5941 |
-
|
5942 |
-
|
5943 |
-
|
5944 |
-
|
5945 |
-
|
5946 |
-
|
5947 |
-
|
5948 |
-
|
5949 |
-
|
5950 |
-
if (
|
5951 |
-
|
5952 |
-
|
5953 |
-
|
5954 |
-
|
5955 |
-
|
5956 |
-
|
5957 |
-
}
|
5958 |
-
|
5959 |
-
|
5960 |
-
|
5961 |
-
|
5962 |
-
|
5963 |
-
|
5964 |
-
|
5965 |
-
|
5966 |
-
|
5967 |
-
|
5968 |
-
|
5969 |
-
}
|
5970 |
-
|
5971 |
-
|
5972 |
-
|
5973 |
-
|
5974 |
-
|
5975 |
-
|
5976 |
-
|
5977 |
-
|
5978 |
-
|
5979 |
-
|
5980 |
-
|
5981 |
-
|
5982 |
-
|
5983 |
-
|
5984 |
-
|
5985 |
-
|
5986 |
-
|
5987 |
-
|
5988 |
-
|
5989 |
-
|
5990 |
-
|
5991 |
-
|
5992 |
-
|
5993 |
-
|
5994 |
-
|
5995 |
-
|
5996 |
-
|
5997 |
-
|
5998 |
-
|
5999 |
-
|
6000 |
-
|
6001 |
-
|
6002 |
-
|
6003 |
-
|
6004 |
-
|
6005 |
-
|
6006 |
-
|
6007 |
-
|
6008 |
-
|
6009 |
-
|
6010 |
-
|
6011 |
-
|
6012 |
-
|
6013 |
-
|
6014 |
-
|
6015 |
-
|
6016 |
-
|
6017 |
-
|
6018 |
-
|
6019 |
-
|
6020 |
-
|
6021 |
-
|
6022 |
-
|
6023 |
-
|
6024 |
-
|
6025 |
-
|
6026 |
-
|
6027 |
-
|
6028 |
-
|
6029 |
-
|
6030 |
-
|
6031 |
-
|
6032 |
-
|
6033 |
-
|
6034 |
-
|
6035 |
-
|
6036 |
-
|
6037 |
-
|
6038 |
-
|
6039 |
-
}
|
6040 |
-
|
6041 |
-
|
6042 |
-
|
6043 |
-
|
6044 |
-
|
6045 |
-
|
6046 |
-
|
6047 |
-
|
6048 |
-
|
6049 |
-
|
6050 |
-
|
6051 |
-
|
6052 |
-
|
6053 |
-
|
6054 |
-
|
6055 |
-
|
6056 |
-
|
6057 |
-
|
6058 |
-
|
6059 |
-
|
6060 |
-
|
6061 |
-
|
6062 |
-
|
6063 |
-
|
6064 |
-
|
6065 |
-
|
6066 |
-
|
6067 |
-
|
6068 |
-
|
6069 |
-
|
6070 |
-
|
6071 |
-
|
6072 |
-
|
6073 |
-
|
6074 |
-
|
6075 |
-
|
6076 |
-
|
6077 |
-
|
6078 |
-
|
6079 |
-
|
6080 |
-
|
6081 |
-
|
6082 |
-
|
6083 |
-
|
6084 |
-
|
6085 |
-
|
6086 |
-
|
6087 |
-
|
6088 |
-
|
6089 |
-
|
6090 |
-
|
6091 |
-
|
6092 |
-
|
6093 |
-
|
6094 |
-
|
6095 |
-
|
6096 |
-
|
6097 |
-
}
|
6098 |
-
|
6099 |
-
|
6100 |
-
|
6101 |
-
|
6102 |
-
|
6103 |
-
|
6104 |
-
|
6105 |
-
|
6106 |
-
|
6107 |
-
|
6108 |
-
|
6109 |
-
|
6110 |
-
|
6111 |
-
|
6112 |
-
|
6113 |
-
|
6114 |
-
|
6115 |
-
|
6116 |
-
|
6117 |
-
|
6118 |
-
|
6119 |
-
|
6120 |
-
|
6121 |
-
|
6122 |
-
|
6123 |
-
|
6124 |
-
|
6125 |
-
|
6126 |
-
|
6127 |
-
|
6128 |
-
|
6129 |
-
|
6130 |
-
|
6131 |
-
|
6132 |
-
|
6133 |
-
|
6134 |
-
|
6135 |
-
|
6136 |
-
|
6137 |
-
|
6138 |
-
|
6139 |
-
|
6140 |
-
|
6141 |
-
|
6142 |
-
|
6143 |
-
|
6144 |
-
|
6145 |
-
|
6146 |
-
|
6147 |
-
|
6148 |
-
|
6149 |
-
|
6150 |
-
|
6151 |
-
|
6152 |
-
|
6153 |
-
|
6154 |
-
|
6155 |
-
|
6156 |
-
|
6157 |
-
}
|
6158 |
-
|
6159 |
-
|
6160 |
-
|
6161 |
-
|
6162 |
-
|
6163 |
-
|
6164 |
-
|
6165 |
-
|
6166 |
-
|
6167 |
-
|
6168 |
-
|
6169 |
-
|
6170 |
-
|
6171 |
-
|
6172 |
-
|
6173 |
-
|
6174 |
-
|
6175 |
-
|
6176 |
-
|
6177 |
-
|
6178 |
-
|
6179 |
-
|
6180 |
-
|
6181 |
-
|
6182 |
-
|
6183 |
-
|
6184 |
-
|
6185 |
-
|
6186 |
-
|
6187 |
-
|
6188 |
-
|
6189 |
-
|
6190 |
-
|
6191 |
-
|
6192 |
-
|
6193 |
-
|
6194 |
-
|
6195 |
-
|
6196 |
-
|
6197 |
-
|
6198 |
-
|
6199 |
-
|
6200 |
-
|
6201 |
-
|
6202 |
-
|
6203 |
-
|
6204 |
-
|
6205 |
-
|
6206 |
-
|
6207 |
-
|
6208 |
-
|
6209 |
-
|
6210 |
-
|
6211 |
-
|
6212 |
-
|
6213 |
-
|
6214 |
-
|
6215 |
-
|
6216 |
-
|
6217 |
-
|
6218 |
-
|
6219 |
-
|
6220 |
-
|
6221 |
-
|
6222 |
-
|
6223 |
-
|
6224 |
-
|
6225 |
-
|
6226 |
-
|
6227 |
-
|
6228 |
-
|
6229 |
-
|
6230 |
-
|
6231 |
-
|
6232 |
-
|
6233 |
-
|
6234 |
-
|
6235 |
-
|
6236 |
-
|
6237 |
-
|
6238 |
-
|
6239 |
-
|
6240 |
-
|
6241 |
-
|
6242 |
-
|
6243 |
-
|
6244 |
-
|
6245 |
-
|
6246 |
-
|
6247 |
-
|
6248 |
-
|
6249 |
-
|
6250 |
-
|
6251 |
-
|
6252 |
-
|
6253 |
-
|
6254 |
-
|
6255 |
-
|
6256 |
-
|
6257 |
-
|
6258 |
-
|
6259 |
-
|
6260 |
-
|
6261 |
-
|
6262 |
-
|
6263 |
-
|
6264 |
-
|
6265 |
-
|
6266 |
-
|
6267 |
-
|
6268 |
-
|
6269 |
-
|
6270 |
-
|
6271 |
-
|
6272 |
-
|
6273 |
-
|
6274 |
-
|
6275 |
-
|
6276 |
-
|
6277 |
-
|
6278 |
-
|
6279 |
-
|
6280 |
-
|
6281 |
-
|
6282 |
-
|
6283 |
-
|
6284 |
-
|
6285 |
-
|
6286 |
-
|
6287 |
-
|
6288 |
-
|
6289 |
-
|
6290 |
-
|
6291 |
-
|
6292 |
-
|
6293 |
-
|
6294 |
-
|
6295 |
-
|
6296 |
-
|
6297 |
-
}
|
6298 |
-
|
6299 |
-
|
6300 |
-
|
6301 |
-
|
6302 |
-
|
6303 |
-
|
6304 |
-
|
6305 |
-
|
6306 |
-
|
6307 |
-
|
6308 |
-
|
6309 |
-
|
6310 |
-
|
6311 |
-
|
6312 |
-
|
6313 |
-
|
6314 |
-
|
6315 |
-
|
6316 |
-
|
6317 |
-
|
6318 |
-
|
6319 |
-
|
6320 |
-
|
6321 |
-
|
6322 |
-
|
6323 |
-
|
6324 |
-
|
6325 |
-
|
6326 |
-
|
6327 |
-
|
6328 |
-
|
6329 |
-
|
6330 |
-
|
6331 |
-
|
6332 |
-
|
6333 |
-
|
6334 |
-
|
6335 |
-
|
6336 |
-
|
6337 |
-
|
6338 |
-
|
6339 |
-
|
6340 |
-
|
6341 |
-
|
6342 |
-
|
6343 |
-
|
6344 |
-
|
6345 |
-
|
6346 |
-
|
6347 |
-
|
6348 |
-
|
6349 |
-
|
6350 |
-
|
6351 |
-
|
6352 |
-
|
6353 |
-
//
|
6354 |
-
|
6355 |
-
|
6356 |
-
|
6357 |
-
|
6358 |
-
|
6359 |
-
|
6360 |
-
|
6361 |
-
|
6362 |
-
|
6363 |
-
|
6364 |
-
|
6365 |
-
|
6366 |
-
|
6367 |
-
|
6368 |
-
|
6369 |
-
|
6370 |
-
|
6371 |
-
|
6372 |
-
|
6373 |
-
|
6374 |
-
|
6375 |
-
|
6376 |
-
|
6377 |
-
|
6378 |
-
|
6379 |
-
})
|
6380 |
-
|
6381 |
-
|
6382 |
-
|
6383 |
-
|
6384 |
-
|
6385 |
-
|
6386 |
-
|
6387 |
-
|
6388 |
-
|
6389 |
-
|
6390 |
-
|
6391 |
-
|
6392 |
-
|
6393 |
-
)
|
6394 |
-
|
6395 |
-
|
6396 |
-
|
6397 |
-
|
6398 |
-
|
6399 |
-
|
6400 |
-
|
6401 |
-
|
6402 |
-
|
6403 |
-
|
6404 |
-
|
6405 |
-
|
6406 |
-
|
6407 |
-
|
6408 |
-
|
6409 |
-
|
6410 |
-
|
6411 |
-
|
6412 |
-
|
6413 |
-
|
6414 |
-
|
6415 |
-
|
6416 |
-
}
|
6417 |
-
|
6418 |
-
|
6419 |
-
|
6420 |
-
|
6421 |
-
|
6422 |
-
|
6423 |
-
|
6424 |
-
|
6425 |
-
|
6426 |
-
|
6427 |
-
|
6428 |
-
|
6429 |
-
|
6430 |
-
|
6431 |
-
|
6432 |
-
|
6433 |
-
|
6434 |
-
|
6435 |
-
|
6436 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* SelectWoo 5.0.0
|
3 |
+
* https://github.com/woocommerce/selectWoo
|
4 |
+
*
|
5 |
+
* Released under the MIT license
|
6 |
+
* https://github.com/woocommerce/selectWoo/blob/master/LICENSE.md
|
7 |
+
*/
|
8 |
+
(function (factory) {
|
9 |
+
if (typeof define === 'function' && define.amd) {
|
10 |
+
// AMD. Register as an anonymous module.
|
11 |
+
define(['jquery'], factory);
|
12 |
+
} else if (typeof module === 'object' && module.exports) {
|
13 |
+
// Node/CommonJS
|
14 |
+
module.exports = function (root, jQuery) {
|
15 |
+
if (jQuery === undefined) {
|
16 |
+
// require('jQuery') returns a factory that requires window to
|
17 |
+
// build a jQuery instance, we normalize how we use modules
|
18 |
+
// that require this pattern but the window provided is a noop
|
19 |
+
// if it's defined (how jquery works)
|
20 |
+
if (typeof window !== 'undefined') {
|
21 |
+
jQuery = require('jquery');
|
22 |
+
}
|
23 |
+
else {
|
24 |
+
jQuery = require('jquery')(root);
|
25 |
+
}
|
26 |
+
}
|
27 |
+
factory(jQuery);
|
28 |
+
return jQuery;
|
29 |
+
};
|
30 |
+
} else {
|
31 |
+
// Browser globals
|
32 |
+
factory(jQuery);
|
33 |
+
}
|
34 |
+
} (function (jQuery) {
|
35 |
+
// This is needed so we can catch the AMD loader configuration and use it
|
36 |
+
// The inner file should be wrapped (by `banner.start.js`) in a function that
|
37 |
+
// returns the AMD loader references.
|
38 |
+
var S2 =(function () {
|
39 |
+
// Restore the Select2 AMD loader so it can be used
|
40 |
+
// Needed mostly in the language files, where the loader is not inserted
|
41 |
+
if (jQuery && jQuery.fn && jQuery.fn.select2 && jQuery.fn.select2.amd) {
|
42 |
+
var S2 = jQuery.fn.select2.amd;
|
43 |
+
}
|
44 |
+
var S2;(function () { if (!S2 || !S2.requirejs) {
|
45 |
+
if (!S2) { S2 = {}; } else { require = S2; }
|
46 |
+
/**
|
47 |
+
* @license almond 0.3.3 Copyright jQuery Foundation and other contributors.
|
48 |
+
* Released under MIT license, http://github.com/requirejs/almond/LICENSE
|
49 |
+
*/
|
50 |
+
//Going sloppy to avoid 'use strict' string cost, but strict practices should
|
51 |
+
//be followed.
|
52 |
+
/*global setTimeout: false */
|
53 |
+
|
54 |
+
var requirejs, require, define;
|
55 |
+
(function (undef) {
|
56 |
+
var main, req, makeMap, handlers,
|
57 |
+
defined = {},
|
58 |
+
waiting = {},
|
59 |
+
config = {},
|
60 |
+
defining = {},
|
61 |
+
hasOwn = Object.prototype.hasOwnProperty,
|
62 |
+
aps = [].slice,
|
63 |
+
jsSuffixRegExp = /\.js$/;
|
64 |
+
|
65 |
+
function hasProp(obj, prop) {
|
66 |
+
return hasOwn.call(obj, prop);
|
67 |
+
}
|
68 |
+
|
69 |
+
/**
|
70 |
+
* Given a relative module name, like ./something, normalize it to
|
71 |
+
* a real name that can be mapped to a path.
|
72 |
+
* @param {String} name the relative name
|
73 |
+
* @param {String} baseName a real name that the name arg is relative
|
74 |
+
* to.
|
75 |
+
* @returns {String} normalized name
|
76 |
+
*/
|
77 |
+
function normalize(name, baseName) {
|
78 |
+
var nameParts, nameSegment, mapValue, foundMap, lastIndex,
|
79 |
+
foundI, foundStarMap, starI, i, j, part, normalizedBaseParts,
|
80 |
+
baseParts = baseName && baseName.split("/"),
|
81 |
+
map = config.map,
|
82 |
+
starMap = (map && map['*']) || {};
|
83 |
+
|
84 |
+
//Adjust any relative paths.
|
85 |
+
if (name) {
|
86 |
+
name = name.split('/');
|
87 |
+
lastIndex = name.length - 1;
|
88 |
+
|
89 |
+
// If wanting node ID compatibility, strip .js from end
|
90 |
+
// of IDs. Have to do this here, and not in nameToUrl
|
91 |
+
// because node allows either .js or non .js to map
|
92 |
+
// to same file.
|
93 |
+
if (config.nodeIdCompat && jsSuffixRegExp.test(name[lastIndex])) {
|
94 |
+
name[lastIndex] = name[lastIndex].replace(jsSuffixRegExp, '');
|
95 |
+
}
|
96 |
+
|
97 |
+
// Starts with a '.' so need the baseName
|
98 |
+
if (name[0].charAt(0) === '.' && baseParts) {
|
99 |
+
//Convert baseName to array, and lop off the last part,
|
100 |
+
//so that . matches that 'directory' and not name of the baseName's
|
101 |
+
//module. For instance, baseName of 'one/two/three', maps to
|
102 |
+
//'one/two/three.js', but we want the directory, 'one/two' for
|
103 |
+
//this normalization.
|
104 |
+
normalizedBaseParts = baseParts.slice(0, baseParts.length - 1);
|
105 |
+
name = normalizedBaseParts.concat(name);
|
106 |
+
}
|
107 |
+
|
108 |
+
//start trimDots
|
109 |
+
for (i = 0; i < name.length; i++) {
|
110 |
+
part = name[i];
|
111 |
+
if (part === '.') {
|
112 |
+
name.splice(i, 1);
|
113 |
+
i -= 1;
|
114 |
+
} else if (part === '..') {
|
115 |
+
// If at the start, or previous value is still ..,
|
116 |
+
// keep them so that when converted to a path it may
|
117 |
+
// still work when converted to a path, even though
|
118 |
+
// as an ID it is less than ideal. In larger point
|
119 |
+
// releases, may be better to just kick out an error.
|
120 |
+
if (i === 0 || (i === 1 && name[2] === '..') || name[i - 1] === '..') {
|
121 |
+
continue;
|
122 |
+
} else if (i > 0) {
|
123 |
+
name.splice(i - 1, 2);
|
124 |
+
i -= 2;
|
125 |
+
}
|
126 |
+
}
|
127 |
+
}
|
128 |
+
//end trimDots
|
129 |
+
|
130 |
+
name = name.join('/');
|
131 |
+
}
|
132 |
+
|
133 |
+
//Apply map config if available.
|
134 |
+
if ((baseParts || starMap) && map) {
|
135 |
+
nameParts = name.split('/');
|
136 |
+
|
137 |
+
for (i = nameParts.length; i > 0; i -= 1) {
|
138 |
+
nameSegment = nameParts.slice(0, i).join("/");
|
139 |
+
|
140 |
+
if (baseParts) {
|
141 |
+
//Find the longest baseName segment match in the config.
|
142 |
+
//So, do joins on the biggest to smallest lengths of baseParts.
|
143 |
+
for (j = baseParts.length; j > 0; j -= 1) {
|
144 |
+
mapValue = map[baseParts.slice(0, j).join('/')];
|
145 |
+
|
146 |
+
//baseName segment has config, find if it has one for
|
147 |
+
//this name.
|
148 |
+
if (mapValue) {
|
149 |
+
mapValue = mapValue[nameSegment];
|
150 |
+
if (mapValue) {
|
151 |
+
//Match, update name to the new value.
|
152 |
+
foundMap = mapValue;
|
153 |
+
foundI = i;
|
154 |
+
break;
|
155 |
+
}
|
156 |
+
}
|
157 |
+
}
|
158 |
+
}
|
159 |
+
|
160 |
+
if (foundMap) {
|
161 |
+
break;
|
162 |
+
}
|
163 |
+
|
164 |
+
//Check for a star map match, but just hold on to it,
|
165 |
+
//if there is a shorter segment match later in a matching
|
166 |
+
//config, then favor over this star map.
|
167 |
+
if (!foundStarMap && starMap && starMap[nameSegment]) {
|
168 |
+
foundStarMap = starMap[nameSegment];
|
169 |
+
starI = i;
|
170 |
+
}
|
171 |
+
}
|
172 |
+
|
173 |
+
if (!foundMap && foundStarMap) {
|
174 |
+
foundMap = foundStarMap;
|
175 |
+
foundI = starI;
|
176 |
+
}
|
177 |
+
|
178 |
+
if (foundMap) {
|
179 |
+
nameParts.splice(0, foundI, foundMap);
|
180 |
+
name = nameParts.join('/');
|
181 |
+
}
|
182 |
+
}
|
183 |
+
|
184 |
+
return name;
|
185 |
+
}
|
186 |
+
|
187 |
+
function makeRequire(relName, forceSync) {
|
188 |
+
return function () {
|
189 |
+
//A version of a require function that passes a moduleName
|
190 |
+
//value for items that may need to
|
191 |
+
//look up paths relative to the moduleName
|
192 |
+
var args = aps.call(arguments, 0);
|
193 |
+
|
194 |
+
//If first arg is not require('string'), and there is only
|
195 |
+
//one arg, it is the array form without a callback. Insert
|
196 |
+
//a null so that the following concat is correct.
|
197 |
+
if (typeof args[0] !== 'string' && args.length === 1) {
|
198 |
+
args.push(null);
|
199 |
+
}
|
200 |
+
return req.apply(undef, args.concat([relName, forceSync]));
|
201 |
+
};
|
202 |
+
}
|
203 |
+
|
204 |
+
function makeNormalize(relName) {
|
205 |
+
return function (name) {
|
206 |
+
return normalize(name, relName);
|
207 |
+
};
|
208 |
+
}
|
209 |
+
|
210 |
+
function makeLoad(depName) {
|
211 |
+
return function (value) {
|
212 |
+
defined[depName] = value;
|
213 |
+
};
|
214 |
+
}
|
215 |
+
|
216 |
+
function callDep(name) {
|
217 |
+
if (hasProp(waiting, name)) {
|
218 |
+
var args = waiting[name];
|
219 |
+
delete waiting[name];
|
220 |
+
defining[name] = true;
|
221 |
+
main.apply(undef, args);
|
222 |
+
}
|
223 |
+
|
224 |
+
if (!hasProp(defined, name) && !hasProp(defining, name)) {
|
225 |
+
throw new Error('No ' + name);
|
226 |
+
}
|
227 |
+
return defined[name];
|
228 |
+
}
|
229 |
+
|
230 |
+
//Turns a plugin!resource to [plugin, resource]
|
231 |
+
//with the plugin being undefined if the name
|
232 |
+
//did not have a plugin prefix.
|
233 |
+
function splitPrefix(name) {
|
234 |
+
var prefix,
|
235 |
+
index = name ? name.indexOf('!') : -1;
|
236 |
+
if (index > -1) {
|
237 |
+
prefix = name.substring(0, index);
|
238 |
+
name = name.substring(index + 1, name.length);
|
239 |
+
}
|
240 |
+
return [prefix, name];
|
241 |
+
}
|
242 |
+
|
243 |
+
//Creates a parts array for a relName where first part is plugin ID,
|
244 |
+
//second part is resource ID. Assumes relName has already been normalized.
|
245 |
+
function makeRelParts(relName) {
|
246 |
+
return relName ? splitPrefix(relName) : [];
|
247 |
+
}
|
248 |
+
|
249 |
+
/**
|
250 |
+
* Makes a name map, normalizing the name, and using a plugin
|
251 |
+
* for normalization if necessary. Grabs a ref to plugin
|
252 |
+
* too, as an optimization.
|
253 |
+
*/
|
254 |
+
makeMap = function (name, relParts) {
|
255 |
+
var plugin,
|
256 |
+
parts = splitPrefix(name),
|
257 |
+
prefix = parts[0],
|
258 |
+
relResourceName = relParts[1];
|
259 |
+
|
260 |
+
name = parts[1];
|
261 |
+
|
262 |
+
if (prefix) {
|
263 |
+
prefix = normalize(prefix, relResourceName);
|
264 |
+
plugin = callDep(prefix);
|
265 |
+
}
|
266 |
+
|
267 |
+
//Normalize according
|
268 |
+
if (prefix) {
|
269 |
+
if (plugin && plugin.normalize) {
|
270 |
+
name = plugin.normalize(name, makeNormalize(relResourceName));
|
271 |
+
} else {
|
272 |
+
name = normalize(name, relResourceName);
|
273 |
+
}
|
274 |
+
} else {
|
275 |
+
name = normalize(name, relResourceName);
|
276 |
+
parts = splitPrefix(name);
|
277 |
+
prefix = parts[0];
|
278 |
+
name = parts[1];
|
279 |
+
if (prefix) {
|
280 |
+
plugin = callDep(prefix);
|
281 |
+
}
|
282 |
+
}
|
283 |
+
|
284 |
+
//Using ridiculous property names for space reasons
|
285 |
+
return {
|
286 |
+
f: prefix ? prefix + '!' + name : name, //fullName
|
287 |
+
n: name,
|
288 |
+
pr: prefix,
|
289 |
+
p: plugin
|
290 |
+
};
|
291 |
+
};
|
292 |
+
|
293 |
+
function makeConfig(name) {
|
294 |
+
return function () {
|
295 |
+
return (config && config.config && config.config[name]) || {};
|
296 |
+
};
|
297 |
+
}
|
298 |
+
|
299 |
+
handlers = {
|
300 |
+
require: function (name) {
|
301 |
+
return makeRequire(name);
|
302 |
+
},
|
303 |
+
exports: function (name) {
|
304 |
+
var e = defined[name];
|
305 |
+
if (typeof e !== 'undefined') {
|
306 |
+
return e;
|
307 |
+
} else {
|
308 |
+
return (defined[name] = {});
|
309 |
+
}
|
310 |
+
},
|
311 |
+
module: function (name) {
|
312 |
+
return {
|
313 |
+
id: name,
|
314 |
+
uri: '',
|
315 |
+
exports: defined[name],
|
316 |
+
config: makeConfig(name)
|
317 |
+
};
|
318 |
+
}
|
319 |
+
};
|
320 |
+
|
321 |
+
main = function (name, deps, callback, relName) {
|
322 |
+
var cjsModule, depName, ret, map, i, relParts,
|
323 |
+
args = [],
|
324 |
+
callbackType = typeof callback,
|
325 |
+
usingExports;
|
326 |
+
|
327 |
+
//Use name if no relName
|
328 |
+
relName = relName || name;
|
329 |
+
relParts = makeRelParts(relName);
|
330 |
+
|
331 |
+
//Call the callback to define the module, if necessary.
|
332 |
+
if (callbackType === 'undefined' || callbackType === 'function') {
|
333 |
+
//Pull out the defined dependencies and pass the ordered
|
334 |
+
//values to the callback.
|
335 |
+
//Default to [require, exports, module] if no deps
|
336 |
+
deps = !deps.length && callback.length ? ['require', 'exports', 'module'] : deps;
|
337 |
+
for (i = 0; i < deps.length; i += 1) {
|
338 |
+
map = makeMap(deps[i], relParts);
|
339 |
+
depName = map.f;
|
340 |
+
|
341 |
+
//Fast path CommonJS standard dependencies.
|
342 |
+
if (depName === "require") {
|
343 |
+
args[i] = handlers.require(name);
|
344 |
+
} else if (depName === "exports") {
|
345 |
+
//CommonJS module spec 1.1
|
346 |
+
args[i] = handlers.exports(name);
|
347 |
+
usingExports = true;
|
348 |
+
} else if (depName === "module") {
|
349 |
+
//CommonJS module spec 1.1
|
350 |
+
cjsModule = args[i] = handlers.module(name);
|
351 |
+
} else if (hasProp(defined, depName) ||
|
352 |
+
hasProp(waiting, depName) ||
|
353 |
+
hasProp(defining, depName)) {
|
354 |
+
args[i] = callDep(depName);
|
355 |
+
} else if (map.p) {
|
356 |
+
map.p.load(map.n, makeRequire(relName, true), makeLoad(depName), {});
|
357 |
+
args[i] = defined[depName];
|
358 |
+
} else {
|
359 |
+
throw new Error(name + ' missing ' + depName);
|
360 |
+
}
|
361 |
+
}
|
362 |
+
|
363 |
+
ret = callback ? callback.apply(defined[name], args) : undefined;
|
364 |
+
|
365 |
+
if (name) {
|
366 |
+
//If setting exports via "module" is in play,
|
367 |
+
//favor that over return value and exports. After that,
|
368 |
+
//favor a non-undefined return value over exports use.
|
369 |
+
if (cjsModule && cjsModule.exports !== undef &&
|
370 |
+
cjsModule.exports !== defined[name]) {
|
371 |
+
defined[name] = cjsModule.exports;
|
372 |
+
} else if (ret !== undef || !usingExports) {
|
373 |
+
//Use the return value from the function.
|
374 |
+
defined[name] = ret;
|
375 |
+
}
|
376 |
+
}
|
377 |
+
} else if (name) {
|
378 |
+
//May just be an object definition for the module. Only
|
379 |
+
//worry about defining if have a module name.
|
380 |
+
defined[name] = callback;
|
381 |
+
}
|
382 |
+
};
|
383 |
+
|
384 |
+
requirejs = require = req = function (deps, callback, relName, forceSync, alt) {
|
385 |
+
if (typeof deps === "string") {
|
386 |
+
if (handlers[deps]) {
|
387 |
+
//callback in this case is really relName
|
388 |
+
return handlers[deps](callback);
|
389 |
+
}
|
390 |
+
//Just return the module wanted. In this scenario, the
|
391 |
+
//deps arg is the module name, and second arg (if passed)
|
392 |
+
//is just the relName.
|
393 |
+
//Normalize module name, if it contains . or ..
|
394 |
+
return callDep(makeMap(deps, makeRelParts(callback)).f);
|
395 |
+
} else if (!deps.splice) {
|
396 |
+
//deps is a config object, not an array.
|
397 |
+
config = deps;
|
398 |
+
if (config.deps) {
|
399 |
+
req(config.deps, config.callback);
|
400 |
+
}
|
401 |
+
if (!callback) {
|
402 |
+
return;
|
403 |
+
}
|
404 |
+
|
405 |
+
if (callback.splice) {
|
406 |
+
//callback is an array, which means it is a dependency list.
|
407 |
+
//Adjust args if there are dependencies
|
408 |
+
deps = callback;
|
409 |
+
callback = relName;
|
410 |
+
relName = null;
|
411 |
+
} else {
|
412 |
+
deps = undef;
|
413 |
+
}
|
414 |
+
}
|
415 |
+
|
416 |
+
//Support require(['a'])
|
417 |
+
callback = callback || function () {};
|
418 |
+
|
419 |
+
//If relName is a function, it is an errback handler,
|
420 |
+
//so remove it.
|
421 |
+
if (typeof relName === 'function') {
|
422 |
+
relName = forceSync;
|
423 |
+
forceSync = alt;
|
424 |
+
}
|
425 |
+
|
426 |
+
//Simulate async callback;
|
427 |
+
if (forceSync) {
|
428 |
+
main(undef, deps, callback, relName);
|
429 |
+
} else {
|
430 |
+
//Using a non-zero value because of concern for what old browsers
|
431 |
+
//do, and latest browsers "upgrade" to 4 if lower value is used:
|
432 |
+
//http://www.whatwg.org/specs/web-apps/current-work/multipage/timers.html#dom-windowtimers-settimeout:
|
433 |
+
//If want a value immediately, use require('id') instead -- something
|
434 |
+
//that works in almond on the global level, but not guaranteed and
|
435 |
+
//unlikely to work in other AMD implementations.
|
436 |
+
setTimeout(function () {
|
437 |
+
main(undef, deps, callback, relName);
|
438 |
+
}, 4);
|
439 |
+
}
|
440 |
+
|
441 |
+
return req;
|
442 |
+
};
|
443 |
+
|
444 |
+
/**
|
445 |
+
* Just drops the config on the floor, but returns req in case
|
446 |
+
* the config return value is used.
|
447 |
+
*/
|
448 |
+
req.config = function (cfg) {
|
449 |
+
return req(cfg);
|
450 |
+
};
|
451 |
+
|
452 |
+
/**
|
453 |
+
* Expose module registry for debugging and tooling
|
454 |
+
*/
|
455 |
+
requirejs._defined = defined;
|
456 |
+
|
457 |
+
define = function (name, deps, callback) {
|
458 |
+
if (typeof name !== 'string') {
|
459 |
+
throw new Error('See almond README: incorrect module build, no module name');
|
460 |
+
}
|
461 |
+
|
462 |
+
//This module may not have dependencies
|
463 |
+
if (!deps.splice) {
|
464 |
+
//deps is not an array, so probably means
|
465 |
+
//an object literal or factory function for
|
466 |
+
//the value. Adjust args.
|
467 |
+
callback = deps;
|
468 |
+
deps = [];
|
469 |
+
}
|
470 |
+
|
471 |
+
if (!hasProp(defined, name) && !hasProp(waiting, name)) {
|
472 |
+
waiting[name] = [name, deps, callback];
|
473 |
+
}
|
474 |
+
};
|
475 |
+
|
476 |
+
define.amd = {
|
477 |
+
jQuery: true
|
478 |
+
};
|
479 |
+
}());
|
480 |
+
|
481 |
+
S2.requirejs = requirejs;S2.require = require;S2.define = define;
|
482 |
+
}
|
483 |
+
}());
|
484 |
+
S2.define("almond", function(){});
|
485 |
+
|
486 |
+
/* global jQuery:false, $:false */
|
487 |
+
S2.define('jquery',[],function () {
|
488 |
+
var _$ = jQuery || $;
|
489 |
+
|
490 |
+
if (_$ == null && console && console.error) {
|
491 |
+
console.error(
|
492 |
+
'Select2: An instance of jQuery or a jQuery-compatible library was not ' +
|
493 |
+
'found. Make sure that you are including jQuery before Select2 on your ' +
|
494 |
+
'web page.'
|
495 |
+
);
|
496 |
+
}
|
497 |
+
|
498 |
+
return _$;
|
499 |
+
});
|
500 |
+
|
501 |
+
S2.define('select2/utils',[
|
502 |
+
'jquery'
|
503 |
+
], function ($) {
|
504 |
+
var Utils = {};
|
505 |
+
|
506 |
+
Utils.Extend = function (ChildClass, SuperClass) {
|
507 |
+
var __hasProp = {}.hasOwnProperty;
|
508 |
+
|
509 |
+
function BaseConstructor () {
|
510 |
+
this.constructor = ChildClass;
|
511 |
+
}
|
512 |
+
|
513 |
+
for (var key in SuperClass) {
|
514 |
+
if (__hasProp.call(SuperClass, key)) {
|
515 |
+
ChildClass[key] = SuperClass[key];
|
516 |
+
}
|
517 |
+
}
|
518 |
+
|
519 |
+
BaseConstructor.prototype = SuperClass.prototype;
|
520 |
+
ChildClass.prototype = new BaseConstructor();
|
521 |
+
ChildClass.__super__ = SuperClass.prototype;
|
522 |
+
|
523 |
+
return ChildClass;
|
524 |
+
};
|
525 |
+
|
526 |
+
function getMethods (theClass) {
|
527 |
+
var proto = theClass.prototype;
|
528 |
+
|
529 |
+
var methods = [];
|
530 |
+
|
531 |
+
for (var methodName in proto) {
|
532 |
+
var m = proto[methodName];
|
533 |
+
|
534 |
+
if (typeof m !== 'function') {
|
535 |
+
continue;
|
536 |
+
}
|
537 |
+
|
538 |
+
if (methodName === 'constructor') {
|
539 |
+
continue;
|
540 |
+
}
|
541 |
+
|
542 |
+
methods.push(methodName);
|
543 |
+
}
|
544 |
+
|
545 |
+
return methods;
|
546 |
+
}
|
547 |
+
|
548 |
+
Utils.Decorate = function (SuperClass, DecoratorClass) {
|
549 |
+
var decoratedMethods = getMethods(DecoratorClass);
|
550 |
+
var superMethods = getMethods(SuperClass);
|
551 |
+
|
552 |
+
function DecoratedClass () {
|
553 |
+
var unshift = Array.prototype.unshift;
|
554 |
+
|
555 |
+
var argCount = DecoratorClass.prototype.constructor.length;
|
556 |
+
|
557 |
+
var calledConstructor = SuperClass.prototype.constructor;
|
558 |
+
|
559 |
+
if (argCount > 0) {
|
560 |
+
unshift.call(arguments, SuperClass.prototype.constructor);
|
561 |
+
|
562 |
+
calledConstructor = DecoratorClass.prototype.constructor;
|
563 |
+
}
|
564 |
+
|
565 |
+
calledConstructor.apply(this, arguments);
|
566 |
+
}
|
567 |
+
|
568 |
+
DecoratorClass.displayName = SuperClass.displayName;
|
569 |
+
|
570 |
+
function ctr () {
|
571 |
+
this.constructor = DecoratedClass;
|
572 |
+
}
|
573 |
+
|
574 |
+
DecoratedClass.prototype = new ctr();
|
575 |
+
|
576 |
+
for (var m = 0; m < superMethods.length; m++) {
|
577 |
+
var superMethod = superMethods[m];
|
578 |
+
|
579 |
+
DecoratedClass.prototype[superMethod] =
|
580 |
+
SuperClass.prototype[superMethod];
|
581 |
+
}
|
582 |
+
|
583 |
+
var calledMethod = function (methodName) {
|
584 |
+
// Stub out the original method if it's not decorating an actual method
|
585 |
+
var originalMethod = function () {};
|
586 |
+
|
587 |
+
if (methodName in DecoratedClass.prototype) {
|
588 |
+
originalMethod = DecoratedClass.prototype[methodName];
|
589 |
+
}
|
590 |
+
|
591 |
+
var decoratedMethod = DecoratorClass.prototype[methodName];
|
592 |
+
|
593 |
+
return function () {
|
594 |
+
var unshift = Array.prototype.unshift;
|
595 |
+
|
596 |
+
unshift.call(arguments, originalMethod);
|
597 |
+
|
598 |
+
return decoratedMethod.apply(this, arguments);
|
599 |
+
};
|
600 |
+
};
|
601 |
+
|
602 |
+
for (var d = 0; d < decoratedMethods.length; d++) {
|
603 |
+
var decoratedMethod = decoratedMethods[d];
|
604 |
+
|
605 |
+
DecoratedClass.prototype[decoratedMethod] = calledMethod(decoratedMethod);
|
606 |
+
}
|
607 |
+
|
608 |
+
return DecoratedClass;
|
609 |
+
};
|
610 |
+
|
611 |
+
var Observable = function () {
|
612 |
+
this.listeners = {};
|
613 |
+
};
|
614 |
+
|
615 |
+
Observable.prototype.on = function (event, callback) {
|
616 |
+
this.listeners = this.listeners || {};
|
617 |
+
|
618 |
+
if (event in this.listeners) {
|
619 |
+
this.listeners[event].push(callback);
|
620 |
+
} else {
|
621 |
+
this.listeners[event] = [callback];
|
622 |
+
}
|
623 |
+
};
|
624 |
+
|
625 |
+
Observable.prototype.trigger = function (event) {
|
626 |
+
var slice = Array.prototype.slice;
|
627 |
+
var params = slice.call(arguments, 1);
|
628 |
+
|
629 |
+
this.listeners = this.listeners || {};
|
630 |
+
|
631 |
+
// Params should always come in as an array
|
632 |
+
if (params == null) {
|
633 |
+
params = [];
|
634 |
+
}
|
635 |
+
|
636 |
+
// If there are no arguments to the event, use a temporary object
|
637 |
+
if (params.length === 0) {
|
638 |
+
params.push({});
|
639 |
+
}
|
640 |
+
|
641 |
+
// Set the `_type` of the first object to the event
|
642 |
+
params[0]._type = event;
|
643 |
+
|
644 |
+
if (event in this.listeners) {
|
645 |
+
this.invoke(this.listeners[event], slice.call(arguments, 1));
|
646 |
+
}
|
647 |
+
|
648 |
+
if ('*' in this.listeners) {
|
649 |
+
this.invoke(this.listeners['*'], arguments);
|
650 |
+
}
|
651 |
+
};
|
652 |
+
|
653 |
+
Observable.prototype.invoke = function (listeners, params) {
|
654 |
+
for (var i = 0, len = listeners.length; i < len; i++) {
|
655 |
+
listeners[i].apply(this, params);
|
656 |
+
}
|
657 |
+
};
|
658 |
+
|
659 |
+
Utils.Observable = Observable;
|
660 |
+
|
661 |
+
Utils.generateChars = function (length) {
|
662 |
+
var chars = '';
|
663 |
+
|
664 |
+
for (var i = 0; i < length; i++) {
|
665 |
+
var randomChar = Math.floor(Math.random() * 36);
|
666 |
+
chars += randomChar.toString(36);
|
667 |
+
}
|
668 |
+
|
669 |
+
return chars;
|
670 |
+
};
|
671 |
+
|
672 |
+
Utils.bind = function (func, context) {
|
673 |
+
return function () {
|
674 |
+
func.apply(context, arguments);
|
675 |
+
};
|
676 |
+
};
|
677 |
+
|
678 |
+
Utils._convertData = function (data) {
|
679 |
+
for (var originalKey in data) {
|
680 |
+
var keys = originalKey.split('-');
|
681 |
+
|
682 |
+
var dataLevel = data;
|
683 |
+
|
684 |
+
if (keys.length === 1) {
|
685 |
+
continue;
|
686 |
+
}
|
687 |
+
|
688 |
+
for (var k = 0; k < keys.length; k++) {
|
689 |
+
var key = keys[k];
|
690 |
+
|
691 |
+
// Lowercase the first letter
|
692 |
+
// By default, dash-separated becomes camelCase
|
693 |
+
key = key.substring(0, 1).toLowerCase() + key.substring(1);
|
694 |
+
|
695 |
+
if (!(key in dataLevel)) {
|
696 |
+
dataLevel[key] = {};
|
697 |
+
}
|
698 |
+
|
699 |
+
if (k == keys.length - 1) {
|
700 |
+
dataLevel[key] = data[originalKey];
|
701 |
+
}
|
702 |
+
|
703 |
+
dataLevel = dataLevel[key];
|
704 |
+
}
|
705 |
+
|
706 |
+
delete data[originalKey];
|
707 |
+
}
|
708 |
+
|
709 |
+
return data;
|
710 |
+
};
|
711 |
+
|
712 |
+
Utils.hasScroll = function (index, el) {
|
713 |
+
// Adapted from the function created by @ShadowScripter
|
714 |
+
// and adapted by @BillBarry on the Stack Exchange Code Review website.
|
715 |
+
// The original code can be found at
|
716 |
+
// http://codereview.stackexchange.com/q/13338
|
717 |
+
// and was designed to be used with the Sizzle selector engine.
|
718 |
+
|
719 |
+
var $el = $(el);
|
720 |
+
var overflowX = el.style.overflowX;
|
721 |
+
var overflowY = el.style.overflowY;
|
722 |
+
|
723 |
+
//Check both x and y declarations
|
724 |
+
if (overflowX === overflowY &&
|
725 |
+
(overflowY === 'hidden' || overflowY === 'visible')) {
|
726 |
+
return false;
|
727 |
+
}
|
728 |
+
|
729 |
+
if (overflowX === 'scroll' || overflowY === 'scroll') {
|
730 |
+
return true;
|
731 |
+
}
|
732 |
+
|
733 |
+
return ($el.innerHeight() < el.scrollHeight ||
|
734 |
+
$el.innerWidth() < el.scrollWidth);
|
735 |
+
};
|
736 |
+
|
737 |
+
Utils.escapeMarkup = function (markup) {
|
738 |
+
var replaceMap = {
|
739 |
+
'\\': '\',
|
740 |
+
'&': '&',
|
741 |
+
'<': '<',
|
742 |
+
'>': '>',
|
743 |
+
'"': '"',
|
744 |
+
'\'': ''',
|
745 |
+
'/': '/'
|
746 |
+
};
|
747 |
+
|
748 |
+
// Do not try to escape the markup if it's not a string
|
749 |
+
if (typeof markup !== 'string') {
|
750 |
+
return markup;
|
751 |
+
}
|
752 |
+
|
753 |
+
return String(markup).replace(/[&<>"'\/\\]/g, function (match) {
|
754 |
+
return replaceMap[match];
|
755 |
+
});
|
756 |
+
};
|
757 |
+
|
758 |
+
// Append an array of jQuery nodes to a given element.
|
759 |
+
Utils.appendMany = function ($element, $nodes) {
|
760 |
+
// jQuery 1.7.x does not support $.fn.append() with an array
|
761 |
+
// Fall back to a jQuery object collection using $.fn.add()
|
762 |
+
if ($.fn.jquery.substr(0, 3) === '1.7') {
|
763 |
+
var $jqNodes = $();
|
764 |
+
|
765 |
+
$.map($nodes, function (node) {
|
766 |
+
$jqNodes = $jqNodes.add(node);
|
767 |
+
});
|
768 |
+
|
769 |
+
$nodes = $jqNodes;
|
770 |
+
}
|
771 |
+
|
772 |
+
$element.append($nodes);
|
773 |
+
};
|
774 |
+
|
775 |
+
// Determine whether the browser is on a touchscreen device.
|
776 |
+
Utils.isTouchscreen = function() {
|
777 |
+
if ('undefined' === typeof Utils._isTouchscreenCache) {
|
778 |
+
Utils._isTouchscreenCache = 'ontouchstart' in document.documentElement;
|
779 |
+
}
|
780 |
+
return Utils._isTouchscreenCache;
|
781 |
+
}
|
782 |
+
|
783 |
+
return Utils;
|
784 |
+
});
|
785 |
+
|
786 |
+
S2.define('select2/results',[
|
787 |
+
'jquery',
|
788 |
+
'./utils'
|
789 |
+
], function ($, Utils) {
|
790 |
+
function Results ($element, options, dataAdapter) {
|
791 |
+
this.$element = $element;
|
792 |
+
this.data = dataAdapter;
|
793 |
+
this.options = options;
|
794 |
+
|
795 |
+
Results.__super__.constructor.call(this);
|
796 |
+
}
|
797 |
+
|
798 |
+
Utils.Extend(Results, Utils.Observable);
|
799 |
+
|
800 |
+
Results.prototype.render = function () {
|
801 |
+
var $results = $(
|
802 |
+
'<ul class="select2-results__options" role="listbox" tabindex="-1"></ul>'
|
803 |
+
);
|
804 |
+
|
805 |
+
if (this.options.get('multiple')) {
|
806 |
+
$results.attr('aria-multiselectable', 'true');
|
807 |
+
}
|
808 |
+
|
809 |
+
this.$results = $results;
|
810 |
+
|
811 |
+
return $results;
|
812 |
+
};
|
813 |
+
|
814 |
+
Results.prototype.clear = function () {
|
815 |
+
this.$results.empty();
|
816 |
+
};
|
817 |
+
|
818 |
+
Results.prototype.displayMessage = function (params) {
|
819 |
+
var escapeMarkup = this.options.get('escapeMarkup');
|
820 |
+
|
821 |
+
this.clear();
|
822 |
+
this.hideLoading();
|
823 |
+
|
824 |
+
var $message = $(
|
825 |
+
'<li role="alert" aria-live="assertive"' +
|
826 |
+
' class="select2-results__option"></li>'
|
827 |
+
);
|
828 |
+
|
829 |
+
var message = this.options.get('translations').get(params.message);
|
830 |
+
|
831 |
+
$message.append(
|
832 |
+
escapeMarkup(
|
833 |
+
message(params.args)
|
834 |
+
)
|
835 |
+
);
|
836 |
+
|
837 |
+
$message[0].className += ' select2-results__message';
|
838 |
+
|
839 |
+
this.$results.append($message);
|
840 |
+
};
|
841 |
+
|
842 |
+
Results.prototype.hideMessages = function () {
|
843 |
+
this.$results.find('.select2-results__message').remove();
|
844 |
+
};
|
845 |
+
|
846 |
+
Results.prototype.append = function (data) {
|
847 |
+
this.hideLoading();
|
848 |
+
|
849 |
+
var $options = [];
|
850 |
+
|
851 |
+
if (data.results == null || data.results.length === 0) {
|
852 |
+
if (this.$results.children().length === 0) {
|
853 |
+
this.trigger('results:message', {
|
854 |
+
message: 'noResults'
|
855 |
+
});
|
856 |
+
}
|
857 |
+
|
858 |
+
return;
|
859 |
+
}
|
860 |
+
|
861 |
+
data.results = this.sort(data.results);
|
862 |
+
|
863 |
+
for (var d = 0; d < data.results.length; d++) {
|
864 |
+
var item = data.results[d];
|
865 |
+
|
866 |
+
var $option = this.option(item);
|
867 |
+
|
868 |
+
$options.push($option);
|
869 |
+
}
|
870 |
+
|
871 |
+
this.$results.append($options);
|
872 |
+
};
|
873 |
+
|
874 |
+
Results.prototype.position = function ($results, $dropdown) {
|
875 |
+
var $resultsContainer = $dropdown.find('.select2-results');
|
876 |
+
$resultsContainer.append($results);
|
877 |
+
};
|
878 |
+
|
879 |
+
Results.prototype.sort = function (data) {
|
880 |
+
var sorter = this.options.get('sorter');
|
881 |
+
|
882 |
+
return sorter(data);
|
883 |
+
};
|
884 |
+
|
885 |
+
Results.prototype.highlightFirstItem = function () {
|
886 |
+
var $options = this.$results
|
887 |
+
.find('.select2-results__option[data-selected]');
|
888 |
+
|
889 |
+
var $selected = $options.filter('[data-selected=true]');
|
890 |
+
|
891 |
+
// Check if there are any selected options
|
892 |
+
if ($selected.length > 0) {
|
893 |
+
// If there are selected options, highlight the first
|
894 |
+
$selected.first().trigger('mouseenter');
|
895 |
+
} else {
|
896 |
+
// If there are no selected options, highlight the first option
|
897 |
+
// in the dropdown
|
898 |
+
$options.first().trigger('mouseenter');
|
899 |
+
}
|
900 |
+
|
901 |
+
this.ensureHighlightVisible();
|
902 |
+
};
|
903 |
+
|
904 |
+
Results.prototype.setClasses = function () {
|
905 |
+
var self = this;
|
906 |
+
|
907 |
+
this.data.current(function (selected) {
|
908 |
+
var selectedIds = $.map(selected, function (s) {
|
909 |
+
return s.id.toString();
|
910 |
+
});
|
911 |
+
|
912 |
+
var $options = self.$results
|
913 |
+
.find('.select2-results__option[data-selected]');
|
914 |
+
|
915 |
+
$options.each(function () {
|
916 |
+
var $option = $(this);
|
917 |
+
|
918 |
+
var item = $.data(this, 'data');
|
919 |
+
|
920 |
+
// id needs to be converted to a string when comparing
|
921 |
+
var id = '' + item.id;
|
922 |
+
|
923 |
+
if ((item.element != null && item.element.selected) ||
|
924 |
+
(item.element == null && $.inArray(id, selectedIds) > -1)) {
|
925 |
+
$option.attr('data-selected', 'true');
|
926 |
+
} else {
|
927 |
+
$option.attr('data-selected', 'false');
|
928 |
+
}
|
929 |
+
});
|
930 |
+
|
931 |
+
});
|
932 |
+
};
|
933 |
+
|
934 |
+
Results.prototype.showLoading = function (params) {
|
935 |
+
this.hideLoading();
|
936 |
+
|
937 |
+
var loadingMore = this.options.get('translations').get('searching');
|
938 |
+
|
939 |
+
var loading = {
|
940 |
+
disabled: true,
|
941 |
+
loading: true,
|
942 |
+
text: loadingMore(params)
|
943 |
+
};
|
944 |
+
var $loading = this.option(loading);
|
945 |
+
$loading.className += ' loading-results';
|
946 |
+
|
947 |
+
this.$results.prepend($loading);
|
948 |
+
};
|
949 |
+
|
950 |
+
Results.prototype.hideLoading = function () {
|
951 |
+
this.$results.find('.loading-results').remove();
|
952 |
+
};
|
953 |
+
|
954 |
+
Results.prototype.option = function (data) {
|
955 |
+
var option = document.createElement('li');
|
956 |
+
option.className = 'select2-results__option';
|
957 |
+
|
958 |
+
var attrs = {
|
959 |
+
'role': 'option',
|
960 |
+
'data-selected': 'false',
|
961 |
+
'tabindex': -1
|
962 |
+
};
|
963 |
+
|
964 |
+
if (data.disabled) {
|
965 |
+
delete attrs['data-selected'];
|
966 |
+
attrs['aria-disabled'] = 'true';
|
967 |
+
}
|
968 |
+
|
969 |
+
if (data.id == null) {
|
970 |
+
delete attrs['data-selected'];
|
971 |
+
}
|
972 |
+
|
973 |
+
if (data._resultId != null) {
|
974 |
+
option.id = data._resultId;
|
975 |
+
}
|
976 |
+
|
977 |
+
if (data.title) {
|
978 |
+
option.title = data.title;
|
979 |
+
}
|
980 |
+
|
981 |
+
if (data.children) {
|
982 |
+
attrs['aria-label'] = data.text;
|
983 |
+
delete attrs['data-selected'];
|
984 |
+
}
|
985 |
+
|
986 |
+
for (var attr in attrs) {
|
987 |
+
var val = attrs[attr];
|
988 |
+
|
989 |
+
option.setAttribute(attr, val);
|
990 |
+
}
|
991 |
+
|
992 |
+
if (data.children) {
|
993 |
+
var $option = $(option);
|
994 |
+
|
995 |
+
var label = document.createElement('strong');
|
996 |
+
label.className = 'select2-results__group';
|
997 |
+
|
998 |
+
var $label = $(label);
|
999 |
+
this.template(data, label);
|
1000 |
+
$label.attr('role', 'presentation');
|
1001 |
+
|
1002 |
+
var $children = [];
|
1003 |
+
|
1004 |
+
for (var c = 0; c < data.children.length; c++) {
|
1005 |
+
var child = data.children[c];
|
1006 |
+
|
1007 |
+
var $child = this.option(child);
|
1008 |
+
|
1009 |
+
$children.push($child);
|
1010 |
+
}
|
1011 |
+
|
1012 |
+
var $childrenContainer = $('<ul></ul>', {
|
1013 |
+
'class': 'select2-results__options select2-results__options--nested',
|
1014 |
+
'role': 'listbox'
|
1015 |
+
});
|
1016 |
+
$childrenContainer.append($children);
|
1017 |
+
$option.attr('role', 'list');
|
1018 |
+
|
1019 |
+
$option.append(label);
|
1020 |
+
$option.append($childrenContainer);
|
1021 |
+
} else {
|
1022 |
+
this.template(data, option);
|
1023 |
+
}
|
1024 |
+
|
1025 |
+
$.data(option, 'data', data);
|
1026 |
+
|
1027 |
+
return option;
|
1028 |
+
};
|
1029 |
+
|
1030 |
+
Results.prototype.bind = function (container, $container) {
|
1031 |
+
var self = this;
|
1032 |
+
|
1033 |
+
var id = container.id + '-results';
|
1034 |
+
|
1035 |
+
this.$results.attr('id', id);
|
1036 |
+
|
1037 |
+
container.on('results:all', function (params) {
|
1038 |
+
self.clear();
|
1039 |
+
self.append(params.data);
|
1040 |
+
|
1041 |
+
if (container.isOpen()) {
|
1042 |
+
self.setClasses();
|
1043 |
+
self.highlightFirstItem();
|
1044 |
+
}
|
1045 |
+
});
|
1046 |
+
|
1047 |
+
container.on('results:append', function (params) {
|
1048 |
+
self.append(params.data);
|
1049 |
+
|
1050 |
+
if (container.isOpen()) {
|
1051 |
+
self.setClasses();
|
1052 |
+
}
|
1053 |
+
});
|
1054 |
+
|
1055 |
+
container.on('query', function (params) {
|
1056 |
+
self.hideMessages();
|
1057 |
+
self.showLoading(params);
|
1058 |
+
});
|
1059 |
+
|
1060 |
+
container.on('select', function () {
|
1061 |
+
if (!container.isOpen()) {
|
1062 |
+
return;
|
1063 |
+
}
|
1064 |
+
|
1065 |
+
self.setClasses();
|
1066 |
+
self.highlightFirstItem();
|
1067 |
+
});
|
1068 |
+
|
1069 |
+
container.on('unselect', function () {
|
1070 |
+
if (!container.isOpen()) {
|
1071 |
+
return;
|
1072 |
+
}
|
1073 |
+
|
1074 |
+
self.setClasses();
|
1075 |
+
self.highlightFirstItem();
|
1076 |
+
});
|
1077 |
+
|
1078 |
+
container.on('open', function () {
|
1079 |
+
// When the dropdown is open, aria-expended="true"
|
1080 |
+
self.$results.attr('aria-expanded', 'true');
|
1081 |
+
self.$results.attr('aria-hidden', 'false');
|
1082 |
+
|
1083 |
+
self.setClasses();
|
1084 |
+
self.ensureHighlightVisible();
|
1085 |
+
});
|
1086 |
+
|
1087 |
+
container.on('close', function () {
|
1088 |
+
// When the dropdown is closed, aria-expended="false"
|
1089 |
+
self.$results.attr('aria-expanded', 'false');
|
1090 |
+
self.$results.attr('aria-hidden', 'true');
|
1091 |
+
self.$results.removeAttr('aria-activedescendant');
|
1092 |
+
});
|
1093 |
+
|
1094 |
+
container.on('results:toggle', function () {
|
1095 |
+
var $highlighted = self.getHighlightedResults();
|
1096 |
+
|
1097 |
+
if ($highlighted.length === 0) {
|
1098 |
+
return;
|
1099 |
+
}
|
1100 |
+
|
1101 |
+
$highlighted.trigger('mouseup');
|
1102 |
+
});
|
1103 |
+
|
1104 |
+
container.on('results:select', function () {
|
1105 |
+
var $highlighted = self.getHighlightedResults();
|
1106 |
+
|
1107 |
+
if ($highlighted.length === 0) {
|
1108 |
+
return;
|
1109 |
+
}
|
1110 |
+
|
1111 |
+
var data = $highlighted.data('data');
|
1112 |
+
|
1113 |
+
if ($highlighted.attr('data-selected') == 'true') {
|
1114 |
+
self.trigger('close', {});
|
1115 |
+
} else {
|
1116 |
+
self.trigger('select', {
|
1117 |
+
data: data
|
1118 |
+
});
|
1119 |
+
}
|
1120 |
+
});
|
1121 |
+
|
1122 |
+
container.on('results:previous', function () {
|
1123 |
+
var $highlighted = self.getHighlightedResults();
|
1124 |
+
|
1125 |
+
var $options = self.$results.find('[data-selected]');
|
1126 |
+
|
1127 |
+
var currentIndex = $options.index($highlighted);
|
1128 |
+
|
1129 |
+
// If we are already at te top, don't move further
|
1130 |
+
if (currentIndex === 0) {
|
1131 |
+
return;
|
1132 |
+
}
|
1133 |
+
|
1134 |
+
var nextIndex = currentIndex - 1;
|
1135 |
+
|
1136 |
+
// If none are highlighted, highlight the first
|
1137 |
+
if ($highlighted.length === 0) {
|
1138 |
+
nextIndex = 0;
|
1139 |
+
}
|
1140 |
+
|
1141 |
+
var $next = $options.eq(nextIndex);
|
1142 |
+
|
1143 |
+
$next.trigger('mouseenter');
|
1144 |
+
|
1145 |
+
var currentOffset = self.$results.offset().top;
|
1146 |
+
var nextTop = $next.offset().top;
|
1147 |
+
var nextOffset = self.$results.scrollTop() + (nextTop - currentOffset);
|
1148 |
+
|
1149 |
+
if (nextIndex === 0) {
|
1150 |
+
self.$results.scrollTop(0);
|
1151 |
+
} else if (nextTop - currentOffset < 0) {
|
1152 |
+
self.$results.scrollTop(nextOffset);
|
1153 |
+
}
|
1154 |
+
});
|
1155 |
+
|
1156 |
+
container.on('results:next', function () {
|
1157 |
+
var $highlighted = self.getHighlightedResults();
|
1158 |
+
|
1159 |
+
var $options = self.$results.find('[data-selected]');
|
1160 |
+
|
1161 |
+
var currentIndex = $options.index($highlighted);
|
1162 |
+
|
1163 |
+
var nextIndex = currentIndex + 1;
|
1164 |
+
|
1165 |
+
// If we are at the last option, stay there
|
1166 |
+
if (nextIndex >= $options.length) {
|
1167 |
+
return;
|
1168 |
+
}
|
1169 |
+
|
1170 |
+
var $next = $options.eq(nextIndex);
|
1171 |
+
|
1172 |
+
$next.trigger('mouseenter');
|
1173 |
+
|
1174 |
+
var currentOffset = self.$results.offset().top +
|
1175 |
+
self.$results.outerHeight(false);
|
1176 |
+
var nextBottom = $next.offset().top + $next.outerHeight(false);
|
1177 |
+
var nextOffset = self.$results.scrollTop() + nextBottom - currentOffset;
|
1178 |
+
|
1179 |
+
if (nextIndex === 0) {
|
1180 |
+
self.$results.scrollTop(0);
|
1181 |
+
} else if (nextBottom > currentOffset) {
|
1182 |
+
self.$results.scrollTop(nextOffset);
|
1183 |
+
}
|
1184 |
+
});
|
1185 |
+
|
1186 |
+
container.on('results:focus', function (params) {
|
1187 |
+
params.element.addClass('select2-results__option--highlighted').attr('aria-selected', 'true');
|
1188 |
+
self.$results.attr('aria-activedescendant', params.element.attr('id'));
|
1189 |
+
});
|
1190 |
+
|
1191 |
+
container.on('results:message', function (params) {
|
1192 |
+
self.displayMessage(params);
|
1193 |
+
});
|
1194 |
+
|
1195 |
+
if ($.fn.mousewheel) {
|
1196 |
+
this.$results.on('mousewheel', function (e) {
|
1197 |
+
var top = self.$results.scrollTop();
|
1198 |
+
|
1199 |
+
var bottom = self.$results.get(0).scrollHeight - top + e.deltaY;
|
1200 |
+
|
1201 |
+
var isAtTop = e.deltaY > 0 && top - e.deltaY <= 0;
|
1202 |
+
var isAtBottom = e.deltaY < 0 && bottom <= self.$results.height();
|
1203 |
+
|
1204 |
+
if (isAtTop) {
|
1205 |
+
self.$results.scrollTop(0);
|
1206 |
+
|
1207 |
+
e.preventDefault();
|
1208 |
+
e.stopPropagation();
|
1209 |
+
} else if (isAtBottom) {
|
1210 |
+
self.$results.scrollTop(
|
1211 |
+
self.$results.get(0).scrollHeight - self.$results.height()
|
1212 |
+
);
|
1213 |
+
|
1214 |
+
e.preventDefault();
|
1215 |
+
e.stopPropagation();
|
1216 |
+
}
|
1217 |
+
});
|
1218 |
+
}
|
1219 |
+
|
1220 |
+
this.$results.on('mouseup', '.select2-results__option[data-selected]',
|
1221 |
+
function (evt) {
|
1222 |
+
var $this = $(this);
|
1223 |
+
|
1224 |
+
var data = $this.data('data');
|
1225 |
+
|
1226 |
+
if ($this.attr('data-selected') === 'true') {
|
1227 |
+
if (self.options.get('multiple')) {
|
1228 |
+
self.trigger('unselect', {
|
1229 |
+
originalEvent: evt,
|
1230 |
+
data: data
|
1231 |
+
});
|
1232 |
+
} else {
|
1233 |
+
self.trigger('close', {});
|
1234 |
+
}
|
1235 |
+
|
1236 |
+
return;
|
1237 |
+
}
|
1238 |
+
|
1239 |
+
self.trigger('select', {
|
1240 |
+
originalEvent: evt,
|
1241 |
+
data: data
|
1242 |
+
});
|
1243 |
+
});
|
1244 |
+
|
1245 |
+
this.$results.on('mouseenter', '.select2-results__option[data-selected]',
|
1246 |
+
function (evt) {
|
1247 |
+
var data = $(this).data('data');
|
1248 |
+
|
1249 |
+
self.getHighlightedResults()
|
1250 |
+
.removeClass('select2-results__option--highlighted')
|
1251 |
+
.attr('aria-selected', 'false');
|
1252 |
+
|
1253 |
+
self.trigger('results:focus', {
|
1254 |
+
data: data,
|
1255 |
+
element: $(this)
|
1256 |
+
});
|
1257 |
+
});
|
1258 |
+
};
|
1259 |
+
|
1260 |
+
Results.prototype.getHighlightedResults = function () {
|
1261 |
+
var $highlighted = this.$results
|
1262 |
+
.find('.select2-results__option--highlighted');
|
1263 |
+
|
1264 |
+
return $highlighted;
|
1265 |
+
};
|
1266 |
+
|
1267 |
+
Results.prototype.destroy = function () {
|
1268 |
+
this.$results.remove();
|
1269 |
+
};
|
1270 |
+
|
1271 |
+
Results.prototype.ensureHighlightVisible = function () {
|
1272 |
+
var $highlighted = this.getHighlightedResults();
|
1273 |
+
|
1274 |
+
if ($highlighted.length === 0) {
|
1275 |
+
return;
|
1276 |
+
}
|
1277 |
+
|
1278 |
+
var $options = this.$results.find('[data-selected]');
|
1279 |
+
|
1280 |
+
var currentIndex = $options.index($highlighted);
|
1281 |
+
|
1282 |
+
var currentOffset = this.$results.offset().top;
|
1283 |
+
var nextTop = $highlighted.offset().top;
|
1284 |
+
var nextOffset = this.$results.scrollTop() + (nextTop - currentOffset);
|
1285 |
+
|
1286 |
+
var offsetDelta = nextTop - currentOffset;
|
1287 |
+
nextOffset -= $highlighted.outerHeight(false) * 2;
|
1288 |
+
|
1289 |
+
if (currentIndex <= 2) {
|
1290 |
+
this.$results.scrollTop(0);
|
1291 |
+
} else if (offsetDelta > this.$results.outerHeight() || offsetDelta < 0) {
|
1292 |
+
this.$results.scrollTop(nextOffset);
|
1293 |
+
}
|
1294 |
+
};
|
1295 |
+
|
1296 |
+
Results.prototype.template = function (result, container) {
|
1297 |
+
var template = this.options.get('templateResult');
|
1298 |
+
var escapeMarkup = this.options.get('escapeMarkup');
|
1299 |
+
|
1300 |
+
var content = template(result, container);
|
1301 |
+
|
1302 |
+
if (content == null) {
|
1303 |
+
container.style.display = 'none';
|
1304 |
+
} else if (typeof content === 'string') {
|
1305 |
+
container.innerHTML = escapeMarkup(content);
|
1306 |
+
} else {
|
1307 |
+
$(container).append(content);
|
1308 |
+
}
|
1309 |
+
};
|
1310 |
+
|
1311 |
+
return Results;
|
1312 |
+
});
|
1313 |
+
|
1314 |
+
S2.define('select2/keys',[
|
1315 |
+
|
1316 |
+
], function () {
|
1317 |
+
var KEYS = {
|
1318 |
+
BACKSPACE: 8,
|
1319 |
+
TAB: 9,
|
1320 |
+
ENTER: 13,
|
1321 |
+
SHIFT: 16,
|
1322 |
+
CTRL: 17,
|
1323 |
+
ALT: 18,
|
1324 |
+
ESC: 27,
|
1325 |
+
SPACE: 32,
|
1326 |
+
PAGE_UP: 33,
|
1327 |
+
PAGE_DOWN: 34,
|
1328 |
+
END: 35,
|
1329 |
+
HOME: 36,
|
1330 |
+
LEFT: 37,
|
1331 |
+
UP: 38,
|
1332 |
+
RIGHT: 39,
|
1333 |
+
DOWN: 40,
|
1334 |
+
DELETE: 46
|
1335 |
+
};
|
1336 |
+
|
1337 |
+
return KEYS;
|
1338 |
+
});
|
1339 |
+
|
1340 |
+
S2.define('select2/selection/base',[
|
1341 |
+
'jquery',
|
1342 |
+
'../utils',
|
1343 |
+
'../keys'
|
1344 |
+
], function ($, Utils, KEYS) {
|
1345 |
+
function BaseSelection ($element, options) {
|
1346 |
+
this.$element = $element;
|
1347 |
+
this.options = options;
|
1348 |
+
|
1349 |
+
BaseSelection.__super__.constructor.call(this);
|
1350 |
+
}
|
1351 |
+
|
1352 |
+
Utils.Extend(BaseSelection, Utils.Observable);
|
1353 |
+
|
1354 |
+
BaseSelection.prototype.render = function () {
|
1355 |
+
var $selection = $(
|
1356 |
+
'<span class="select2-selection" ' +
|
1357 |
+
' aria-haspopup="true" aria-expanded="false">' +
|
1358 |
+
'</span>'
|
1359 |
+
);
|
1360 |
+
|
1361 |
+
this._tabindex = 0;
|
1362 |
+
|
1363 |
+
if (this.$element.data('old-tabindex') != null) {
|
1364 |
+
this._tabindex = this.$element.data('old-tabindex');
|
1365 |
+
} else if (this.$element.attr('tabindex') != null) {
|
1366 |
+
this._tabindex = this.$element.attr('tabindex');
|
1367 |
+
}
|
1368 |
+
|
1369 |
+
$selection.attr('title', this.$element.attr('title'));
|
1370 |
+
$selection.attr('tabindex', this._tabindex);
|
1371 |
+
|
1372 |
+
this.$selection = $selection;
|
1373 |
+
|
1374 |
+
return $selection;
|
1375 |
+
};
|
1376 |
+
|
1377 |
+
BaseSelection.prototype.bind = function (container, $container) {
|
1378 |
+
var self = this;
|
1379 |
+
|
1380 |
+
var id = container.id + '-container';
|
1381 |
+
var resultsId = container.id + '-results';
|
1382 |
+
var searchHidden = this.options.get('minimumResultsForSearch') === Infinity;
|
1383 |
+
|
1384 |
+
this.container = container;
|
1385 |
+
|
1386 |
+
this.$selection.on('focus', function (evt) {
|
1387 |
+
self.trigger('focus', evt);
|
1388 |
+
});
|
1389 |
+
|
1390 |
+
this.$selection.on('blur', function (evt) {
|
1391 |
+
self._handleBlur(evt);
|
1392 |
+
});
|
1393 |
+
|
1394 |
+
this.$selection.on('keydown', function (evt) {
|
1395 |
+
self.trigger('keypress', evt);
|
1396 |
+
|
1397 |
+
if (evt.which === KEYS.SPACE) {
|
1398 |
+
evt.preventDefault();
|
1399 |
+
}
|
1400 |
+
});
|
1401 |
+
|
1402 |
+
container.on('results:focus', function (params) {
|
1403 |
+
self.$selection.attr('aria-activedescendant', params.data._resultId);
|
1404 |
+
});
|
1405 |
+
|
1406 |
+
container.on('selection:update', function (params) {
|
1407 |
+
self.update(params.data);
|
1408 |
+
});
|
1409 |
+
|
1410 |
+
container.on('open', function () {
|
1411 |
+
// When the dropdown is open, aria-expanded="true"
|
1412 |
+
self.$selection.attr('aria-expanded', 'true');
|
1413 |
+
self.$selection.attr('aria-owns', resultsId);
|
1414 |
+
|
1415 |
+
self._attachCloseHandler(container);
|
1416 |
+
});
|
1417 |
+
|
1418 |
+
container.on('close', function () {
|
1419 |
+
// When the dropdown is closed, aria-expanded="false"
|
1420 |
+
self.$selection.attr('aria-expanded', 'false');
|
1421 |
+
self.$selection.removeAttr('aria-activedescendant');
|
1422 |
+
self.$selection.removeAttr('aria-owns');
|
1423 |
+
|
1424 |
+
// This needs to be delayed as the active element is the body when the
|
1425 |
+
// key is pressed.
|
1426 |
+
window.setTimeout(function () {
|
1427 |
+
self.$selection.focus();
|
1428 |
+
}, 1);
|
1429 |
+
|
1430 |
+
self._detachCloseHandler(container);
|
1431 |
+
});
|
1432 |
+
|
1433 |
+
container.on('enable', function () {
|
1434 |
+
self.$selection.attr('tabindex', self._tabindex);
|
1435 |
+
});
|
1436 |
+
|
1437 |
+
container.on('disable', function () {
|
1438 |
+
self.$selection.attr('tabindex', '-1');
|
1439 |
+
});
|
1440 |
+
};
|
1441 |
+
|
1442 |
+
BaseSelection.prototype._handleBlur = function (evt) {
|
1443 |
+
var self = this;
|
1444 |
+
|
1445 |
+
// This needs to be delayed as the active element is the body when the tab
|
1446 |
+
// key is pressed, possibly along with others.
|
1447 |
+
window.setTimeout(function () {
|
1448 |
+
// Don't trigger `blur` if the focus is still in the selection
|
1449 |
+
if (
|
1450 |
+
(document.activeElement == self.$selection[0]) ||
|
1451 |
+
($.contains(self.$selection[0], document.activeElement))
|
1452 |
+
) {
|
1453 |
+
return;
|
1454 |
+
}
|
1455 |
+
|
1456 |
+
self.trigger('blur', evt);
|
1457 |
+
}, 1);
|
1458 |
+
};
|
1459 |
+
|
1460 |
+
BaseSelection.prototype._attachCloseHandler = function (container) {
|
1461 |
+
var self = this;
|
1462 |
+
|
1463 |
+
$(document.body).on('mousedown.select2.' + container.id, function (e) {
|
1464 |
+
var $target = $(e.target);
|
1465 |
+
|
1466 |
+
var $select = $target.closest('.select2');
|
1467 |
+
|
1468 |
+
var $all = $('.select2.select2-container--open');
|
1469 |
+
|
1470 |
+
$all.each(function () {
|
1471 |
+
var $this = $(this);
|
1472 |
+
|
1473 |
+
if (this == $select[0]) {
|
1474 |
+
return;
|
1475 |
+
}
|
1476 |
+
|
1477 |
+
var $element = $this.data('element');
|
1478 |
+
|
1479 |
+
$element.select2('close');
|
1480 |
+
});
|
1481 |
+
});
|
1482 |
+
};
|
1483 |
+
|
1484 |
+
BaseSelection.prototype._detachCloseHandler = function (container) {
|
1485 |
+
$(document.body).off('mousedown.select2.' + container.id);
|
1486 |
+
};
|
1487 |
+
|
1488 |
+
BaseSelection.prototype.position = function ($selection, $container) {
|
1489 |
+
var $selectionContainer = $container.find('.selection');
|
1490 |
+
$selectionContainer.append($selection);
|
1491 |
+
};
|
1492 |
+
|
1493 |
+
BaseSelection.prototype.destroy = function () {
|
1494 |
+
this._detachCloseHandler(this.container);
|
1495 |
+
};
|
1496 |
+
|
1497 |
+
BaseSelection.prototype.update = function (data) {
|
1498 |
+
throw new Error('The `update` method must be defined in child classes.');
|
1499 |
+
};
|
1500 |
+
|
1501 |
+
return BaseSelection;
|
1502 |
+
});
|
1503 |
+
|
1504 |
+
S2.define('select2/selection/single',[
|
1505 |
+
'jquery',
|
1506 |
+
'./base',
|
1507 |
+
'../utils',
|
1508 |
+
'../keys'
|
1509 |
+
], function ($, BaseSelection, Utils, KEYS) {
|
1510 |
+
function SingleSelection () {
|
1511 |
+
SingleSelection.__super__.constructor.apply(this, arguments);
|
1512 |
+
}
|
1513 |
+
|
1514 |
+
Utils.Extend(SingleSelection, BaseSelection);
|
1515 |
+
|
1516 |
+
SingleSelection.prototype.render = function () {
|
1517 |
+
var $selection = SingleSelection.__super__.render.call(this);
|
1518 |
+
|
1519 |
+
$selection.addClass('select2-selection--single');
|
1520 |
+
|
1521 |
+
$selection.html(
|
1522 |
+
'<span class="select2-selection__rendered"></span>' +
|
1523 |
+
'<span class="select2-selection__arrow" role="presentation">' +
|
1524 |
+
'<b role="presentation"></b>' +
|
1525 |
+
'</span>'
|
1526 |
+
);
|
1527 |
+
|
1528 |
+
return $selection;
|
1529 |
+
};
|
1530 |
+
|
1531 |
+
SingleSelection.prototype.bind = function (container, $container) {
|
1532 |
+
var self = this;
|
1533 |
+
|
1534 |
+
SingleSelection.__super__.bind.apply(this, arguments);
|
1535 |
+
|
1536 |
+
var id = container.id + '-container';
|
1537 |
+
|
1538 |
+
this.$selection.find('.select2-selection__rendered')
|
1539 |
+
.attr('id', id)
|
1540 |
+
.attr('role', 'textbox')
|
1541 |
+
.attr('aria-readonly', 'true');
|
1542 |
+
this.$selection.attr('aria-labelledby', id);
|
1543 |
+
|
1544 |
+
// This makes single non-search selects work in screen readers. If it causes problems elsewhere, remove.
|
1545 |
+
this.$selection.attr('role', 'combobox');
|
1546 |
+
|
1547 |
+
this.$selection.on('mousedown', function (evt) {
|
1548 |
+
// Only respond to left clicks
|
1549 |
+
if (evt.which !== 1) {
|
1550 |
+
return;
|
1551 |
+
}
|
1552 |
+
|
1553 |
+
self.trigger('toggle', {
|
1554 |
+
originalEvent: evt
|
1555 |
+
});
|
1556 |
+
});
|
1557 |
+
|
1558 |
+
this.$selection.on('focus', function (evt) {
|
1559 |
+
// User focuses on the container
|
1560 |
+
});
|
1561 |
+
|
1562 |
+
this.$selection.on('keydown', function (evt) {
|
1563 |
+
// If user starts typing an alphanumeric key on the keyboard, open if not opened.
|
1564 |
+
if (!container.isOpen() && evt.which >= 48 && evt.which <= 90) {
|
1565 |
+
container.open();
|
1566 |
+
}
|
1567 |
+
});
|
1568 |
+
|
1569 |
+
this.$selection.on('blur', function (evt) {
|
1570 |
+
// User exits the container
|
1571 |
+
});
|
1572 |
+
|
1573 |
+
container.on('focus', function (evt) {
|
1574 |
+
if (!container.isOpen()) {
|
1575 |
+
self.$selection.focus();
|
1576 |
+
}
|
1577 |
+
});
|
1578 |
+
|
1579 |
+
container.on('selection:update', function (params) {
|
1580 |
+
self.update(params.data);
|
1581 |
+
});
|
1582 |
+
};
|
1583 |
+
|
1584 |
+
SingleSelection.prototype.clear = function () {
|
1585 |
+
this.$selection.find('.select2-selection__rendered').empty();
|
1586 |
+
};
|
1587 |
+
|
1588 |
+
SingleSelection.prototype.display = function (data, container) {
|
1589 |
+
var template = this.options.get('templateSelection');
|
1590 |
+
var escapeMarkup = this.options.get('escapeMarkup');
|
1591 |
+
|
1592 |
+
return escapeMarkup(template(data, container));
|
1593 |
+
};
|
1594 |
+
|
1595 |
+
SingleSelection.prototype.selectionContainer = function () {
|
1596 |
+
return $('<span></span>');
|
1597 |
+
};
|
1598 |
+
|
1599 |
+
SingleSelection.prototype.update = function (data) {
|
1600 |
+
if (data.length === 0) {
|
1601 |
+
this.clear();
|
1602 |
+
return;
|
1603 |
+
}
|
1604 |
+
|
1605 |
+
var selection = data[0];
|
1606 |
+
|
1607 |
+
var $rendered = this.$selection.find('.select2-selection__rendered');
|
1608 |
+
var formatted = this.display(selection, $rendered);
|
1609 |
+
|
1610 |
+
$rendered.empty().append(formatted);
|
1611 |
+
$rendered.prop('title', selection.title || selection.text);
|
1612 |
+
};
|
1613 |
+
|
1614 |
+
return SingleSelection;
|
1615 |
+
});
|
1616 |
+
|
1617 |
+
S2.define('select2/selection/multiple',[
|
1618 |
+
'jquery',
|
1619 |
+
'./base',
|
1620 |
+
'../utils'
|
1621 |
+
], function ($, BaseSelection, Utils) {
|
1622 |
+
function MultipleSelection ($element, options) {
|
1623 |
+
MultipleSelection.__super__.constructor.apply(this, arguments);
|
1624 |
+
}
|
1625 |
+
|
1626 |
+
Utils.Extend(MultipleSelection, BaseSelection);
|
1627 |
+
|
1628 |
+
MultipleSelection.prototype.render = function () {
|
1629 |
+
var $selection = MultipleSelection.__super__.render.call(this);
|
1630 |
+
|
1631 |
+
$selection.addClass('select2-selection--multiple');
|
1632 |
+
|
1633 |
+
$selection.html(
|
1634 |
+
'<ul class="select2-selection__rendered" aria-live="polite" aria-relevant="additions removals" aria-atomic="true"></ul>'
|
1635 |
+
);
|
1636 |
+
|
1637 |
+
return $selection;
|
1638 |
+
};
|
1639 |
+
|
1640 |
+
MultipleSelection.prototype.bind = function (container, $container) {
|
1641 |
+
var self = this;
|
1642 |
+
|
1643 |
+
MultipleSelection.__super__.bind.apply(this, arguments);
|
1644 |
+
|
1645 |
+
this.$selection.on('click', function (evt) {
|
1646 |
+
self.trigger('toggle', {
|
1647 |
+
originalEvent: evt
|
1648 |
+
});
|
1649 |
+
});
|
1650 |
+
|
1651 |
+
this.$selection.on(
|
1652 |
+
'click',
|
1653 |
+
'.select2-selection__choice__remove',
|
1654 |
+
function (evt) {
|
1655 |
+
// Ignore the event if it is disabled
|
1656 |
+
if (self.options.get('disabled')) {
|
1657 |
+
return;
|
1658 |
+
}
|
1659 |
+
|
1660 |
+
var $remove = $(this);
|
1661 |
+
var $selection = $remove.parent();
|
1662 |
+
|
1663 |
+
var data = $selection.data('data');
|
1664 |
+
|
1665 |
+
self.trigger('unselect', {
|
1666 |
+
originalEvent: evt,
|
1667 |
+
data: data
|
1668 |
+
});
|
1669 |
+
}
|
1670 |
+
);
|
1671 |
+
};
|
1672 |
+
|
1673 |
+
MultipleSelection.prototype.clear = function () {
|
1674 |
+
this.$selection.find('.select2-selection__rendered').empty();
|
1675 |
+
};
|
1676 |
+
|
1677 |
+
MultipleSelection.prototype.display = function (data, container) {
|
1678 |
+
var template = this.options.get('templateSelection');
|
1679 |
+
var escapeMarkup = this.options.get('escapeMarkup');
|
1680 |
+
|
1681 |
+
return escapeMarkup(template(data, container));
|
1682 |
+
};
|
1683 |
+
|
1684 |
+
MultipleSelection.prototype.selectionContainer = function () {
|
1685 |
+
var $container = $(
|
1686 |
+
'<li class="select2-selection__choice">' +
|
1687 |
+
'<span class="select2-selection__choice__remove" role="presentation" aria-hidden="true">' +
|
1688 |
+
'×' +
|
1689 |
+
'</span>' +
|
1690 |
+
'</li>'
|
1691 |
+
);
|
1692 |
+
|
1693 |
+
return $container;
|
1694 |
+
};
|
1695 |
+
|
1696 |
+
MultipleSelection.prototype.update = function (data) {
|
1697 |
+
this.clear();
|
1698 |
+
|
1699 |
+
if (data.length === 0) {
|
1700 |
+
return;
|
1701 |
+
}
|
1702 |
+
|
1703 |
+
var $selections = [];
|
1704 |
+
|
1705 |
+
for (var d = 0; d < data.length; d++) {
|
1706 |
+
var selection = data[d];
|
1707 |
+
|
1708 |
+
var $selection = this.selectionContainer();
|
1709 |
+
var formatted = this.display(selection, $selection);
|
1710 |
+
|
1711 |
+
$selection.append(formatted);
|
1712 |
+
$selection.prop('title', selection.title || selection.text);
|
1713 |
+
|
1714 |
+
$selection.data('data', selection);
|
1715 |
+
|
1716 |
+
$selections.push($selection);
|
1717 |
+
}
|
1718 |
+
|
1719 |
+
var $rendered = this.$selection.find('.select2-selection__rendered');
|
1720 |
+
|
1721 |
+
Utils.appendMany($rendered, $selections);
|
1722 |
+
};
|
1723 |
+
|
1724 |
+
return MultipleSelection;
|
1725 |
+
});
|
1726 |
+
|
1727 |
+
S2.define('select2/selection/placeholder',[
|
1728 |
+
'../utils'
|
1729 |
+
], function (Utils) {
|
1730 |
+
function Placeholder (decorated, $element, options) {
|
1731 |
+
this.placeholder = this.normalizePlaceholder(options.get('placeholder'));
|
1732 |
+
|
1733 |
+
decorated.call(this, $element, options);
|
1734 |
+
}
|
1735 |
+
|
1736 |
+
Placeholder.prototype.normalizePlaceholder = function (_, placeholder) {
|
1737 |
+
if (typeof placeholder === 'string') {
|
1738 |
+
placeholder = {
|
1739 |
+
id: '',
|
1740 |
+
text: placeholder
|
1741 |
+
};
|
1742 |
+
}
|
1743 |
+
|
1744 |
+
return placeholder;
|
1745 |
+
};
|
1746 |
+
|
1747 |
+
Placeholder.prototype.createPlaceholder = function (decorated, placeholder) {
|
1748 |
+
var $placeholder = this.selectionContainer();
|
1749 |
+
|
1750 |
+
$placeholder.html(this.display(placeholder));
|
1751 |
+
$placeholder.addClass('select2-selection__placeholder')
|
1752 |
+
.removeClass('select2-selection__choice');
|
1753 |
+
|
1754 |
+
return $placeholder;
|
1755 |
+
};
|
1756 |
+
|
1757 |
+
Placeholder.prototype.update = function (decorated, data) {
|
1758 |
+
var singlePlaceholder = (
|
1759 |
+
data.length == 1 && data[0].id != this.placeholder.id
|
1760 |
+
);
|
1761 |
+
var multipleSelections = data.length > 1;
|
1762 |
+
|
1763 |
+
if (multipleSelections || singlePlaceholder) {
|
1764 |
+
return decorated.call(this, data);
|
1765 |
+
}
|
1766 |
+
|
1767 |
+
this.clear();
|
1768 |
+
|
1769 |
+
var $placeholder = this.createPlaceholder(this.placeholder);
|
1770 |
+
|
1771 |
+
this.$selection.find('.select2-selection__rendered').append($placeholder);
|
1772 |
+
};
|
1773 |
+
|
1774 |
+
return Placeholder;
|
1775 |
+
});
|
1776 |
+
|
1777 |
+
S2.define('select2/selection/allowClear',[
|
1778 |
+
'jquery',
|
1779 |
+
'../keys'
|
1780 |
+
], function ($, KEYS) {
|
1781 |
+
function AllowClear () { }
|
1782 |
+
|
1783 |
+
AllowClear.prototype.bind = function (decorated, container, $container) {
|
1784 |
+
var self = this;
|
1785 |
+
|
1786 |
+
decorated.call(this, container, $container);
|
1787 |
+
|
1788 |
+
if (this.placeholder == null) {
|
1789 |
+
if (this.options.get('debug') && window.console && console.error) {
|
1790 |
+
console.error(
|
1791 |
+
'Select2: The `allowClear` option should be used in combination ' +
|
1792 |
+
'with the `placeholder` option.'
|
1793 |
+
);
|
1794 |
+
}
|
1795 |
+
}
|
1796 |
+
|
1797 |
+
this.$selection.on('mousedown', '.select2-selection__clear',
|
1798 |
+
function (evt) {
|
1799 |
+
self._handleClear(evt);
|
1800 |
+
});
|
1801 |
+
|
1802 |
+
container.on('keypress', function (evt) {
|
1803 |
+
self._handleKeyboardClear(evt, container);
|
1804 |
+
});
|
1805 |
+
};
|
1806 |
+
|
1807 |
+
AllowClear.prototype._handleClear = function (_, evt) {
|
1808 |
+
// Ignore the event if it is disabled
|
1809 |
+
if (this.options.get('disabled')) {
|
1810 |
+
return;
|
1811 |
+
}
|
1812 |
+
|
1813 |
+
var $clear = this.$selection.find('.select2-selection__clear');
|
1814 |
+
|
1815 |
+
// Ignore the event if nothing has been selected
|
1816 |
+
if ($clear.length === 0) {
|
1817 |
+
return;
|
1818 |
+
}
|
1819 |
+
|
1820 |
+
evt.stopPropagation();
|
1821 |
+
|
1822 |
+
var data = $clear.data('data');
|
1823 |
+
|
1824 |
+
for (var d = 0; d < data.length; d++) {
|
1825 |
+
var unselectData = {
|
1826 |
+
data: data[d]
|
1827 |
+
};
|
1828 |
+
|
1829 |
+
// Trigger the `unselect` event, so people can prevent it from being
|
1830 |
+
// cleared.
|
1831 |
+
this.trigger('unselect', unselectData);
|
1832 |
+
|
1833 |
+
// If the event was prevented, don't clear it out.
|
1834 |
+
if (unselectData.prevented) {
|
1835 |
+
return;
|
1836 |
+
}
|
1837 |
+
}
|
1838 |
+
|
1839 |
+
this.$element.val(this.placeholder.id).trigger('change');
|
1840 |
+
|
1841 |
+
this.trigger('toggle', {});
|
1842 |
+
};
|
1843 |
+
|
1844 |
+
AllowClear.prototype._handleKeyboardClear = function (_, evt, container) {
|
1845 |
+
if (container.isOpen()) {
|
1846 |
+
return;
|
1847 |
+
}
|
1848 |
+
|
1849 |
+
if (evt.which == KEYS.DELETE || evt.which == KEYS.BACKSPACE) {
|
1850 |
+
this._handleClear(evt);
|
1851 |
+
}
|
1852 |
+
};
|
1853 |
+
|
1854 |
+
AllowClear.prototype.update = function (decorated, data) {
|
1855 |
+
decorated.call(this, data);
|
1856 |
+
|
1857 |
+
if (this.$selection.find('.select2-selection__placeholder').length > 0 ||
|
1858 |
+
data.length === 0) {
|
1859 |
+
return;
|
1860 |
+
}
|
1861 |
+
|
1862 |
+
var $remove = $(
|
1863 |
+
'<span class="select2-selection__clear">' +
|
1864 |
+
'×' +
|
1865 |
+
'</span>'
|
1866 |
+
);
|
1867 |
+
$remove.data('data', data);
|
1868 |
+
|
1869 |
+
this.$selection.find('.select2-selection__rendered').prepend($remove);
|
1870 |
+
};
|
1871 |
+
|
1872 |
+
return AllowClear;
|
1873 |
+
});
|
1874 |
+
|
1875 |
+
S2.define('select2/selection/search',[
|
1876 |
+
'jquery',
|
1877 |
+
'../utils',
|
1878 |
+
'../keys'
|
1879 |
+
], function ($, Utils, KEYS) {
|
1880 |
+
function Search (decorated, $element, options) {
|
1881 |
+
decorated.call(this, $element, options);
|
1882 |
+
}
|
1883 |
+
|
1884 |
+
Search.prototype.render = function (decorated) {
|
1885 |
+
var $search = $(
|
1886 |
+
'<li class="select2-search select2-search--inline">' +
|
1887 |
+
'<input class="select2-search__field" type="text" tabindex="-1"' +
|
1888 |
+
' autocomplete="off" autocorrect="off" autocapitalize="off"' +
|
1889 |
+
' spellcheck="false" role="textbox" aria-autocomplete="list" />' +
|
1890 |
+
'</li>'
|
1891 |
+
);
|
1892 |
+
|
1893 |
+
this.$searchContainer = $search;
|
1894 |
+
this.$search = $search.find('input');
|
1895 |
+
|
1896 |
+
var $rendered = decorated.call(this);
|
1897 |
+
|
1898 |
+
this._transferTabIndex();
|
1899 |
+
|
1900 |
+
return $rendered;
|
1901 |
+
};
|
1902 |
+
|
1903 |
+
Search.prototype.bind = function (decorated, container, $container) {
|
1904 |
+
var self = this;
|
1905 |
+
var resultsId = container.id + '-results';
|
1906 |
+
|
1907 |
+
decorated.call(this, container, $container);
|
1908 |
+
|
1909 |
+
container.on('open', function () {
|
1910 |
+
self.$search.attr('aria-owns', resultsId);
|
1911 |
+
self.$search.trigger('focus');
|
1912 |
+
});
|
1913 |
+
|
1914 |
+
container.on('close', function () {
|
1915 |
+
self.$search.val('');
|
1916 |
+
self.$search.removeAttr('aria-activedescendant');
|
1917 |
+
self.$search.removeAttr('aria-owns');
|
1918 |
+
self.$search.trigger('focus');
|
1919 |
+
});
|
1920 |
+
|
1921 |
+
container.on('enable', function () {
|
1922 |
+
self.$search.prop('disabled', false);
|
1923 |
+
|
1924 |
+
self._transferTabIndex();
|
1925 |
+
});
|
1926 |
+
|
1927 |
+
container.on('disable', function () {
|
1928 |
+
self.$search.prop('disabled', true);
|
1929 |
+
});
|
1930 |
+
|
1931 |
+
container.on('focus', function (evt) {
|
1932 |
+
self.$search.trigger('focus');
|
1933 |
+
});
|
1934 |
+
|
1935 |
+
container.on('results:focus', function (params) {
|
1936 |
+
self.$search.attr('aria-activedescendant', params.data._resultId);
|
1937 |
+
});
|
1938 |
+
|
1939 |
+
this.$selection.on('focusin', '.select2-search--inline', function (evt) {
|
1940 |
+
self.trigger('focus', evt);
|
1941 |
+
});
|
1942 |
+
|
1943 |
+
this.$selection.on('focusout', '.select2-search--inline', function (evt) {
|
1944 |
+
self._handleBlur(evt);
|
1945 |
+
});
|
1946 |
+
|
1947 |
+
this.$selection.on('keydown', '.select2-search--inline', function (evt) {
|
1948 |
+
evt.stopPropagation();
|
1949 |
+
|
1950 |
+
self.trigger('keypress', evt);
|
1951 |
+
|
1952 |
+
self._keyUpPrevented = evt.isDefaultPrevented();
|
1953 |
+
|
1954 |
+
var key = evt.which;
|
1955 |
+
|
1956 |
+
if (key === KEYS.BACKSPACE && self.$search.val() === '') {
|
1957 |
+
var $previousChoice = self.$searchContainer
|
1958 |
+
.prev('.select2-selection__choice');
|
1959 |
+
|
1960 |
+
if ($previousChoice.length > 0) {
|
1961 |
+
var item = $previousChoice.data('data');
|
1962 |
+
|
1963 |
+
self.searchRemoveChoice(item);
|
1964 |
+
|
1965 |
+
evt.preventDefault();
|
1966 |
+
}
|
1967 |
+
}
|
1968 |
+
});
|
1969 |
+
|
1970 |
+
// Try to detect the IE version should the `documentMode` property that
|
1971 |
+
// is stored on the document. This is only implemented in IE and is
|
1972 |
+
// slightly cleaner than doing a user agent check.
|
1973 |
+
// This property is not available in Edge, but Edge also doesn't have
|
1974 |
+
// this bug.
|
1975 |
+
var msie = document.documentMode;
|
1976 |
+
var disableInputEvents = msie && msie <= 11;
|
1977 |
+
|
1978 |
+
// Workaround for browsers which do not support the `input` event
|
1979 |
+
// This will prevent double-triggering of events for browsers which support
|
1980 |
+
// both the `keyup` and `input` events.
|
1981 |
+
this.$selection.on(
|
1982 |
+
'input.searchcheck',
|
1983 |
+
'.select2-search--inline',
|
1984 |
+
function (evt) {
|
1985 |
+
// IE will trigger the `input` event when a placeholder is used on a
|
1986 |
+
// search box. To get around this issue, we are forced to ignore all
|
1987 |
+
// `input` events in IE and keep using `keyup`.
|
1988 |
+
if (disableInputEvents) {
|
1989 |
+
self.$selection.off('input.search input.searchcheck');
|
1990 |
+
return;
|
1991 |
+
}
|
1992 |
+
|
1993 |
+
// Unbind the duplicated `keyup` event
|
1994 |
+
self.$selection.off('keyup.search');
|
1995 |
+
}
|
1996 |
+
);
|
1997 |
+
|
1998 |
+
this.$selection.on(
|
1999 |
+
'keyup.search input.search',
|
2000 |
+
'.select2-search--inline',
|
2001 |
+
function (evt) {
|
2002 |
+
// IE will trigger the `input` event when a placeholder is used on a
|
2003 |
+
// search box. To get around this issue, we are forced to ignore all
|
2004 |
+
// `input` events in IE and keep using `keyup`.
|
2005 |
+
if (disableInputEvents && evt.type === 'input') {
|
2006 |
+
self.$selection.off('input.search input.searchcheck');
|
2007 |
+
return;
|
2008 |
+
}
|
2009 |
+
|
2010 |
+
var key = evt.which;
|
2011 |
+
|
2012 |
+
// We can freely ignore events from modifier keys
|
2013 |
+
if (key == KEYS.SHIFT || key == KEYS.CTRL || key == KEYS.ALT) {
|
2014 |
+
return;
|
2015 |
+
}
|
2016 |
+
|
2017 |
+
// Tabbing will be handled during the `keydown` phase
|
2018 |
+
if (key == KEYS.TAB) {
|
2019 |
+
return;
|
2020 |
+
}
|
2021 |
+
|
2022 |
+
self.handleSearch(evt);
|
2023 |
+
}
|
2024 |
+
);
|
2025 |
+
};
|
2026 |
+
|
2027 |
+
/**
|
2028 |
+
* This method will transfer the tabindex attribute from the rendered
|
2029 |
+
* selection to the search box. This allows for the search box to be used as
|
2030 |
+
* the primary focus instead of the selection container.
|
2031 |
+
*
|
2032 |
+
* @private
|
2033 |
+
*/
|
2034 |
+
Search.prototype._transferTabIndex = function (decorated) {
|
2035 |
+
this.$search.attr('tabindex', this.$selection.attr('tabindex'));
|
2036 |
+
this.$selection.attr('tabindex', '-1');
|
2037 |
+
};
|
2038 |
+
|
2039 |
+
Search.prototype.createPlaceholder = function (decorated, placeholder) {
|
2040 |
+
this.$search.attr('placeholder', placeholder.text);
|
2041 |
+
};
|
2042 |
+
|
2043 |
+
Search.prototype.update = function (decorated, data) {
|
2044 |
+
var searchHadFocus = this.$search[0] == document.activeElement;
|
2045 |
+
|
2046 |
+
this.$search.attr('placeholder', '');
|
2047 |
+
|
2048 |
+
decorated.call(this, data);
|
2049 |
+
|
2050 |
+
this.$selection.find('.select2-selection__rendered')
|
2051 |
+
.append(this.$searchContainer);
|
2052 |
+
|
2053 |
+
this.resizeSearch();
|
2054 |
+
if (searchHadFocus) {
|
2055 |
+
this.$search.focus();
|
2056 |
+
}
|
2057 |
+
};
|
2058 |
+
|
2059 |
+
Search.prototype.handleSearch = function () {
|
2060 |
+
this.resizeSearch();
|
2061 |
+
|
2062 |
+
if (!this._keyUpPrevented) {
|
2063 |
+
var input = this.$search.val();
|
2064 |
+
|
2065 |
+
this.trigger('query', {
|
2066 |
+
term: input
|
2067 |
+
});
|
2068 |
+
}
|
2069 |
+
|
2070 |
+
this._keyUpPrevented = false;
|
2071 |
+
};
|
2072 |
+
|
2073 |
+
Search.prototype.searchRemoveChoice = function (decorated, item) {
|
2074 |
+
this.trigger('unselect', {
|
2075 |
+
data: item
|
2076 |
+
});
|
2077 |
+
|
2078 |
+
this.$search.val(item.text);
|
2079 |
+
this.handleSearch();
|
2080 |
+
};
|
2081 |
+
|
2082 |
+
Search.prototype.resizeSearch = function () {
|
2083 |
+
this.$search.css('width', '25px');
|
2084 |
+
|
2085 |
+
var width = '';
|
2086 |
+
|
2087 |
+
if (this.$search.attr('placeholder') !== '') {
|
2088 |
+
width = this.$selection.find('.select2-selection__rendered').innerWidth();
|
2089 |
+
} else {
|
2090 |
+
var minimumWidth = this.$search.val().length + 1;
|
2091 |
+
|
2092 |
+
width = (minimumWidth * 0.75) + 'em';
|
2093 |
+
}
|
2094 |
+
|
2095 |
+
this.$search.css('width', width);
|
2096 |
+
};
|
2097 |
+
|
2098 |
+
return Search;
|
2099 |
+
});
|
2100 |
+
|
2101 |
+
S2.define('select2/selection/eventRelay',[
|
2102 |
+
'jquery'
|
2103 |
+
], function ($) {
|
2104 |
+
function EventRelay () { }
|
2105 |
+
|
2106 |
+
EventRelay.prototype.bind = function (decorated, container, $container) {
|
2107 |
+
var self = this;
|
2108 |
+
var relayEvents = [
|
2109 |
+
'open', 'opening',
|
2110 |
+
'close', 'closing',
|
2111 |
+
'select', 'selecting',
|
2112 |
+
'unselect', 'unselecting'
|
2113 |
+
];
|
2114 |
+
|
2115 |
+
var preventableEvents = ['opening', 'closing', 'selecting', 'unselecting'];
|
2116 |
+
|
2117 |
+
decorated.call(this, container, $container);
|
2118 |
+
|
2119 |
+
container.on('*', function (name, params) {
|
2120 |
+
// Ignore events that should not be relayed
|
2121 |
+
if ($.inArray(name, relayEvents) === -1) {
|
2122 |
+
return;
|
2123 |
+
}
|
2124 |
+
|
2125 |
+
// The parameters should always be an object
|
2126 |
+
params = params || {};
|
2127 |
+
|
2128 |
+
// Generate the jQuery event for the Select2 event
|
2129 |
+
var evt = $.Event('select2:' + name, {
|
2130 |
+
params: params
|
2131 |
+
});
|
2132 |
+
|
2133 |
+
self.$element.trigger(evt);
|
2134 |
+
|
2135 |
+
// Only handle preventable events if it was one
|
2136 |
+
if ($.inArray(name, preventableEvents) === -1) {
|
2137 |
+
return;
|
2138 |
+
}
|
2139 |
+
|
2140 |
+
params.prevented = evt.isDefaultPrevented();
|
2141 |
+
});
|
2142 |
+
};
|
2143 |
+
|
2144 |
+
return EventRelay;
|
2145 |
+
});
|
2146 |
+
|
2147 |
+
S2.define('select2/translation',[
|
2148 |
+
'jquery',
|
2149 |
+
'require'
|
2150 |
+
], function ($, require) {
|
2151 |
+
function Translation (dict) {
|
2152 |
+
this.dict = dict || {};
|
2153 |
+
}
|
2154 |
+
|
2155 |
+
Translation.prototype.all = function () {
|
2156 |
+
return this.dict;
|
2157 |
+
};
|
2158 |
+
|
2159 |
+
Translation.prototype.get = function (key) {
|
2160 |
+
return this.dict[key];
|
2161 |
+
};
|
2162 |
+
|
2163 |
+
Translation.prototype.extend = function (translation) {
|
2164 |
+
this.dict = $.extend({}, translation.all(), this.dict);
|
2165 |
+
};
|
2166 |
+
|
2167 |
+
// Static functions
|
2168 |
+
|
2169 |
+
Translation._cache = {};
|
2170 |
+
|
2171 |
+
Translation.loadPath = function (path) {
|
2172 |
+
if (!(path in Translation._cache)) {
|
2173 |
+
var translations = require(path);
|
2174 |
+
|
2175 |
+
Translation._cache[path] = translations;
|
2176 |
+
}
|
2177 |
+
|
2178 |
+
return new Translation(Translation._cache[path]);
|
2179 |
+
};
|
2180 |
+
|
2181 |
+
return Translation;
|
2182 |
+
});
|
2183 |
+
|
2184 |
+
S2.define('select2/diacritics',[
|
2185 |
+
|
2186 |
+
], function () {
|
2187 |
+
var diacritics = {
|
2188 |
+
'\u24B6': 'A',
|
2189 |
+
'\uFF21': 'A',
|
2190 |
+
'\u00C0': 'A',
|
2191 |
+
'\u00C1': 'A',
|
2192 |
+
'\u00C2': 'A',
|
2193 |
+
'\u1EA6': 'A',
|
2194 |
+
'\u1EA4': 'A',
|
2195 |
+
'\u1EAA': 'A',
|
2196 |
+
'\u1EA8': 'A',
|
2197 |
+
'\u00C3': 'A',
|
2198 |
+
'\u0100': 'A',
|
2199 |
+
'\u0102': 'A',
|
2200 |
+
'\u1EB0': 'A',
|
2201 |
+
'\u1EAE': 'A',
|
2202 |
+
'\u1EB4': 'A',
|
2203 |
+
'\u1EB2': 'A',
|
2204 |
+
'\u0226': 'A',
|
2205 |
+
'\u01E0': 'A',
|
2206 |
+
'\u00C4': 'A',
|
2207 |
+
'\u01DE': 'A',
|
2208 |
+
'\u1EA2': 'A',
|
2209 |
+
'\u00C5': 'A',
|
2210 |
+
'\u01FA': 'A',
|
2211 |
+
'\u01CD': 'A',
|
2212 |
+
'\u0200': 'A',
|
2213 |
+
'\u0202': 'A',
|
2214 |
+
'\u1EA0': 'A',
|
2215 |
+
'\u1EAC': 'A',
|
2216 |
+
'\u1EB6': 'A',
|
2217 |
+
'\u1E00': 'A',
|
2218 |
+
'\u0104': 'A',
|
2219 |
+
'\u023A': 'A',
|
2220 |
+
'\u2C6F': 'A',
|
2221 |
+
'\uA732': 'AA',
|
2222 |
+
'\u00C6': 'AE',
|
2223 |
+
'\u01FC': 'AE',
|
2224 |
+
'\u01E2': 'AE',
|
2225 |
+
'\uA734': 'AO',
|
2226 |
+
'\uA736': 'AU',
|
2227 |
+
'\uA738': 'AV',
|
2228 |
+
'\uA73A': 'AV',
|
2229 |
+
'\uA73C': 'AY',
|
2230 |
+
'\u24B7': 'B',
|
2231 |
+
'\uFF22': 'B',
|
2232 |
+
'\u1E02': 'B',
|
2233 |
+
'\u1E04': 'B',
|
2234 |
+
'\u1E06': 'B',
|
2235 |
+
'\u0243': 'B',
|
2236 |
+
'\u0182': 'B',
|
2237 |
+
'\u0181': 'B',
|
2238 |
+
'\u24B8': 'C',
|
2239 |
+
'\uFF23': 'C',
|
2240 |
+
'\u0106': 'C',
|
2241 |
+
'\u0108': 'C',
|
2242 |
+
'\u010A': 'C',
|
2243 |
+
'\u010C': 'C',
|
2244 |
+
'\u00C7': 'C',
|
2245 |
+
'\u1E08': 'C',
|
2246 |
+
'\u0187': 'C',
|
2247 |
+
'\u023B': 'C',
|
2248 |
+
'\uA73E': 'C',
|
2249 |
+
'\u24B9': 'D',
|
2250 |
+
'\uFF24': 'D',
|
2251 |
+
'\u1E0A': 'D',
|
2252 |
+
'\u010E': 'D',
|
2253 |
+
'\u1E0C': 'D',
|
2254 |
+
'\u1E10': 'D',
|
2255 |
+
'\u1E12': 'D',
|
2256 |
+
'\u1E0E': 'D',
|
2257 |
+
'\u0110': 'D',
|
2258 |
+
'\u018B': 'D',
|
2259 |
+
'\u018A': 'D',
|
2260 |
+
'\u0189': 'D',
|
2261 |
+
'\uA779': 'D',
|
2262 |
+
'\u01F1': 'DZ',
|
2263 |
+
'\u01C4': 'DZ',
|
2264 |
+
'\u01F2': 'Dz',
|
2265 |
+
'\u01C5': 'Dz',
|
2266 |
+
'\u24BA': 'E',
|
2267 |
+
'\uFF25': 'E',
|
2268 |
+
'\u00C8': 'E',
|
2269 |
+
'\u00C9': 'E',
|
2270 |
+
'\u00CA': 'E',
|
2271 |
+
'\u1EC0': 'E',
|
2272 |
+
'\u1EBE': 'E',
|
2273 |
+
'\u1EC4': 'E',
|
2274 |
+
'\u1EC2': 'E',
|
2275 |
+
'\u1EBC': 'E',
|
2276 |
+
'\u0112': 'E',
|
2277 |
+
'\u1E14': 'E',
|
2278 |
+
'\u1E16': 'E',
|
2279 |
+
'\u0114': 'E',
|
2280 |
+
'\u0116': 'E',
|
2281 |
+
'\u00CB': 'E',
|
2282 |
+
'\u1EBA': 'E',
|
2283 |
+
'\u011A': 'E',
|
2284 |
+
'\u0204': 'E',
|
2285 |
+
'\u0206': 'E',
|
2286 |
+
'\u1EB8': 'E',
|
2287 |
+
'\u1EC6': 'E',
|
2288 |
+
'\u0228': 'E',
|
2289 |
+
'\u1E1C': 'E',
|
2290 |
+
'\u0118': 'E',
|
2291 |
+
'\u1E18': 'E',
|
2292 |
+
'\u1E1A': 'E',
|
2293 |
+
'\u0190': 'E',
|
2294 |
+
'\u018E': 'E',
|
2295 |
+
'\u24BB': 'F',
|
2296 |
+
'\uFF26': 'F',
|
2297 |
+
'\u1E1E': 'F',
|
2298 |
+
'\u0191': 'F',
|
2299 |
+
'\uA77B': 'F',
|
2300 |
+
'\u24BC': 'G',
|
2301 |
+
'\uFF27': 'G',
|
2302 |
+
'\u01F4': 'G',
|
2303 |
+
'\u011C': 'G',
|
2304 |
+
'\u1E20': 'G',
|
2305 |
+
'\u011E': 'G',
|
2306 |
+
'\u0120': 'G',
|
2307 |
+
'\u01E6': 'G',
|
2308 |
+
'\u0122': 'G',
|
2309 |
+
'\u01E4': 'G',
|
2310 |
+
'\u0193': 'G',
|
2311 |
+
'\uA7A0': 'G',
|
2312 |
+
'\uA77D': 'G',
|
2313 |
+
'\uA77E': 'G',
|
2314 |
+
'\u24BD': 'H',
|
2315 |
+
'\uFF28': 'H',
|
2316 |
+
'\u0124': 'H',
|
2317 |
+
'\u1E22': 'H',
|
2318 |
+
'\u1E26': 'H',
|
2319 |
+
'\u021E': 'H',
|
2320 |
+
'\u1E24': 'H',
|
2321 |
+
'\u1E28': 'H',
|
2322 |
+
'\u1E2A': 'H',
|
2323 |
+
'\u0126': 'H',
|
2324 |
+
'\u2C67': 'H',
|
2325 |
+
'\u2C75': 'H',
|
2326 |
+
'\uA78D': 'H',
|
2327 |
+
'\u24BE': 'I',
|
2328 |
+
'\uFF29': 'I',
|
2329 |
+
'\u00CC': 'I',
|
2330 |
+
'\u00CD': 'I',
|
2331 |
+
'\u00CE': 'I',
|
2332 |
+
'\u0128': 'I',
|
2333 |
+
'\u012A': 'I',
|
2334 |
+
'\u012C': 'I',
|
2335 |
+
'\u0130': 'I',
|
2336 |
+
'\u00CF': 'I',
|
2337 |
+
'\u1E2E': 'I',
|
2338 |
+
'\u1EC8': 'I',
|
2339 |
+
'\u01CF': 'I',
|
2340 |
+
'\u0208': 'I',
|
2341 |
+
'\u020A': 'I',
|
2342 |
+
'\u1ECA': 'I',
|
2343 |
+
'\u012E': 'I',
|
2344 |
+
'\u1E2C': 'I',
|
2345 |
+
'\u0197': 'I',
|
2346 |
+
'\u24BF': 'J',
|
2347 |
+
'\uFF2A': 'J',
|
2348 |
+
'\u0134': 'J',
|
2349 |
+
'\u0248': 'J',
|
2350 |
+
'\u24C0': 'K',
|
2351 |
+
'\uFF2B': 'K',
|
2352 |
+
'\u1E30': 'K',
|
2353 |
+
'\u01E8': 'K',
|
2354 |
+
'\u1E32': 'K',
|
2355 |
+
'\u0136': 'K',
|
2356 |
+
'\u1E34': 'K',
|
2357 |
+
'\u0198': 'K',
|
2358 |
+
'\u2C69': 'K',
|
2359 |
+
'\uA740': 'K',
|
2360 |
+
'\uA742': 'K',
|
2361 |
+
'\uA744': 'K',
|
2362 |
+
'\uA7A2': 'K',
|
2363 |
+
'\u24C1': 'L',
|
2364 |
+
'\uFF2C': 'L',
|
2365 |
+
'\u013F': 'L',
|
2366 |
+
'\u0139': 'L',
|
2367 |
+
'\u013D': 'L',
|
2368 |
+
'\u1E36': 'L',
|
2369 |
+
'\u1E38': 'L',
|
2370 |
+
'\u013B': 'L',
|
2371 |
+
'\u1E3C': 'L',
|
2372 |
+
'\u1E3A': 'L',
|
2373 |
+
'\u0141': 'L',
|
2374 |
+
'\u023D': 'L',
|
2375 |
+
'\u2C62': 'L',
|
2376 |
+
'\u2C60': 'L',
|
2377 |
+
'\uA748': 'L',
|
2378 |
+
'\uA746': 'L',
|
2379 |
+
'\uA780': 'L',
|
2380 |
+
'\u01C7': 'LJ',
|
2381 |
+
'\u01C8': 'Lj',
|
2382 |
+
'\u24C2': 'M',
|
2383 |
+
'\uFF2D': 'M',
|
2384 |
+
'\u1E3E': 'M',
|
2385 |
+
'\u1E40': 'M',
|
2386 |
+
'\u1E42': 'M',
|
2387 |
+
'\u2C6E': 'M',
|
2388 |
+
'\u019C': 'M',
|
2389 |
+
'\u24C3': 'N',
|
2390 |
+
'\uFF2E': 'N',
|
2391 |
+
'\u01F8': 'N',
|
2392 |
+
'\u0143': 'N',
|
2393 |
+
'\u00D1': 'N',
|
2394 |
+
'\u1E44': 'N',
|
2395 |
+
'\u0147': 'N',
|
2396 |
+
'\u1E46': 'N',
|
2397 |
+
'\u0145': 'N',
|
2398 |
+
'\u1E4A': 'N',
|
2399 |
+
'\u1E48': 'N',
|
2400 |
+
'\u0220': 'N',
|
2401 |
+
'\u019D': 'N',
|
2402 |
+
'\uA790': 'N',
|
2403 |
+
'\uA7A4': 'N',
|
2404 |
+
'\u01CA': 'NJ',
|
2405 |
+
'\u01CB': 'Nj',
|
2406 |
+
'\u24C4': 'O',
|
2407 |
+
'\uFF2F': 'O',
|
2408 |
+
'\u00D2': 'O',
|
2409 |
+
'\u00D3': 'O',
|
2410 |
+
'\u00D4': 'O',
|
2411 |
+
'\u1ED2': 'O',
|
2412 |
+
'\u1ED0': 'O',
|
2413 |
+
'\u1ED6': 'O',
|
2414 |
+
'\u1ED4': 'O',
|
2415 |
+
'\u00D5': 'O',
|
2416 |
+
'\u1E4C': 'O',
|
2417 |
+
'\u022C': 'O',
|
2418 |
+
'\u1E4E': 'O',
|
2419 |
+
'\u014C': 'O',
|
2420 |
+
'\u1E50': 'O',
|
2421 |
+
'\u1E52': 'O',
|
2422 |
+
'\u014E': 'O',
|
2423 |
+
'\u022E': 'O',
|
2424 |
+
'\u0230': 'O',
|
2425 |
+
'\u00D6': 'O',
|
2426 |
+
'\u022A': 'O',
|
2427 |
+
'\u1ECE': 'O',
|
2428 |
+
'\u0150': 'O',
|
2429 |
+
'\u01D1': 'O',
|
2430 |
+
'\u020C': 'O',
|
2431 |
+
'\u020E': 'O',
|
2432 |
+
'\u01A0': 'O',
|
2433 |
+
'\u1EDC': 'O',
|
2434 |
+
'\u1EDA': 'O',
|
2435 |
+
'\u1EE0': 'O',
|
2436 |
+
'\u1EDE': 'O',
|
2437 |
+
'\u1EE2': 'O',
|
2438 |
+
'\u1ECC': 'O',
|
2439 |
+
'\u1ED8': 'O',
|
2440 |
+
'\u01EA': 'O',
|
2441 |
+
'\u01EC': 'O',
|
2442 |
+
'\u00D8': 'O',
|
2443 |
+
'\u01FE': 'O',
|
2444 |
+
'\u0186': 'O',
|
2445 |
+
'\u019F': 'O',
|
2446 |
+
'\uA74A': 'O',
|
2447 |
+
'\uA74C': 'O',
|
2448 |
+
'\u01A2': 'OI',
|
2449 |
+
'\uA74E': 'OO',
|
2450 |
+
'\u0222': 'OU',
|
2451 |
+
'\u24C5': 'P',
|
2452 |
+
'\uFF30': 'P',
|
2453 |
+
'\u1E54': 'P',
|
2454 |
+
'\u1E56': 'P',
|
2455 |
+
'\u01A4': 'P',
|
2456 |
+
'\u2C63': 'P',
|
2457 |
+
'\uA750': 'P',
|
2458 |
+
'\uA752': 'P',
|
2459 |
+
'\uA754': 'P',
|
2460 |
+
'\u24C6': 'Q',
|
2461 |
+
'\uFF31': 'Q',
|
2462 |
+
'\uA756': 'Q',
|
2463 |
+
'\uA758': 'Q',
|
2464 |
+
'\u024A': 'Q',
|
2465 |
+
'\u24C7': 'R',
|
2466 |
+
'\uFF32': 'R',
|
2467 |
+
'\u0154': 'R',
|
2468 |
+
'\u1E58': 'R',
|
2469 |
+
'\u0158': 'R',
|
2470 |
+
'\u0210': 'R',
|
2471 |
+
'\u0212': 'R',
|
2472 |
+
'\u1E5A': 'R',
|
2473 |
+
'\u1E5C': 'R',
|
2474 |
+
'\u0156': 'R',
|
2475 |
+
'\u1E5E': 'R',
|
2476 |
+
'\u024C': 'R',
|
2477 |
+
'\u2C64': 'R',
|
2478 |
+
'\uA75A': 'R',
|
2479 |
+
'\uA7A6': 'R',
|
2480 |
+
'\uA782': 'R',
|
2481 |
+
'\u24C8': 'S',
|
2482 |
+
'\uFF33': 'S',
|
2483 |
+
'\u1E9E': 'S',
|
2484 |
+
'\u015A': 'S',
|
2485 |
+
'\u1E64': 'S',
|
2486 |
+
'\u015C': 'S',
|
2487 |
+
'\u1E60': 'S',
|
2488 |
+
'\u0160': 'S',
|
2489 |
+
'\u1E66': 'S',
|
2490 |
+
'\u1E62': 'S',
|
2491 |
+
'\u1E68': 'S',
|
2492 |
+
'\u0218': 'S',
|
2493 |
+
'\u015E': 'S',
|
2494 |
+
'\u2C7E': 'S',
|
2495 |
+
'\uA7A8': 'S',
|
2496 |
+
'\uA784': 'S',
|
2497 |
+
'\u24C9': 'T',
|
2498 |
+
'\uFF34': 'T',
|
2499 |
+
'\u1E6A': 'T',
|
2500 |
+
'\u0164': 'T',
|
2501 |
+
'\u1E6C': 'T',
|
2502 |
+
'\u021A': 'T',
|
2503 |
+
'\u0162': 'T',
|
2504 |
+
'\u1E70': 'T',
|
2505 |
+
'\u1E6E': 'T',
|
2506 |
+
'\u0166': 'T',
|
2507 |
+
'\u01AC': 'T',
|
2508 |
+
'\u01AE': 'T',
|
2509 |
+
'\u023E': 'T',
|
2510 |
+
'\uA786': 'T',
|
2511 |
+
'\uA728': 'TZ',
|
2512 |
+
'\u24CA': 'U',
|
2513 |
+
'\uFF35': 'U',
|
2514 |
+
'\u00D9': 'U',
|
2515 |
+
'\u00DA': 'U',
|
2516 |
+
'\u00DB': 'U',
|
2517 |
+
'\u0168': 'U',
|
2518 |
+
'\u1E78': 'U',
|
2519 |
+
'\u016A': 'U',
|
2520 |
+
'\u1E7A': 'U',
|
2521 |
+
'\u016C': 'U',
|
2522 |
+
'\u00DC': 'U',
|
2523 |
+
'\u01DB': 'U',
|
2524 |
+
'\u01D7': 'U',
|
2525 |
+
'\u01D5': 'U',
|
2526 |
+
'\u01D9': 'U',
|
2527 |
+
'\u1EE6': 'U',
|
2528 |
+
'\u016E': 'U',
|
2529 |
+
'\u0170': 'U',
|
2530 |
+
'\u01D3': 'U',
|
2531 |
+
'\u0214': 'U',
|
2532 |
+
'\u0216': 'U',
|
2533 |
+
'\u01AF': 'U',
|
2534 |
+
'\u1EEA': 'U',
|
2535 |
+
'\u1EE8': 'U',
|
2536 |
+
'\u1EEE': 'U',
|
2537 |
+
'\u1EEC': 'U',
|
2538 |
+
'\u1EF0': 'U',
|
2539 |
+
'\u1EE4': 'U',
|
2540 |
+
'\u1E72': 'U',
|
2541 |
+
'\u0172': 'U',
|
2542 |
+
'\u1E76': 'U',
|
2543 |
+
'\u1E74': 'U',
|
2544 |
+
'\u0244': 'U',
|
2545 |
+
'\u24CB': 'V',
|
2546 |
+
'\uFF36': 'V',
|
2547 |
+
'\u1E7C': 'V',
|
2548 |
+
'\u1E7E': 'V',
|
2549 |
+
'\u01B2': 'V',
|
2550 |
+
'\uA75E': 'V',
|
2551 |
+
'\u0245': 'V',
|
2552 |
+
'\uA760': 'VY',
|
2553 |
+
'\u24CC': 'W',
|
2554 |
+
'\uFF37': 'W',
|
2555 |
+
'\u1E80': 'W',
|
2556 |
+
'\u1E82': 'W',
|
2557 |
+
'\u0174': 'W',
|
2558 |
+
'\u1E86': 'W',
|
2559 |
+
'\u1E84': 'W',
|
2560 |
+
'\u1E88': 'W',
|
2561 |
+
'\u2C72': 'W',
|
2562 |
+
'\u24CD': 'X',
|
2563 |
+
'\uFF38': 'X',
|
2564 |
+
'\u1E8A': 'X',
|
2565 |
+
'\u1E8C': 'X',
|
2566 |
+
'\u24CE': 'Y',
|
2567 |
+
'\uFF39': 'Y',
|
2568 |
+
'\u1EF2': 'Y',
|
2569 |
+
'\u00DD': 'Y',
|
2570 |
+
'\u0176': 'Y',
|
2571 |
+
'\u1EF8': 'Y',
|
2572 |
+
'\u0232': 'Y',
|
2573 |
+
'\u1E8E': 'Y',
|
2574 |
+
'\u0178': 'Y',
|
2575 |
+
'\u1EF6': 'Y',
|
2576 |
+
'\u1EF4': 'Y',
|
2577 |
+
'\u01B3': 'Y',
|
2578 |
+
'\u024E': 'Y',
|
2579 |
+
'\u1EFE': 'Y',
|
2580 |
+
'\u24CF': 'Z',
|
2581 |
+
'\uFF3A': 'Z',
|
2582 |
+
'\u0179': 'Z',
|
2583 |
+
'\u1E90': 'Z',
|
2584 |
+
'\u017B': 'Z',
|
2585 |
+
'\u017D': 'Z',
|
2586 |
+
'\u1E92': 'Z',
|
2587 |
+
'\u1E94': 'Z',
|
2588 |
+
'\u01B5': 'Z',
|
2589 |
+
'\u0224': 'Z',
|
2590 |
+
'\u2C7F': 'Z',
|
2591 |
+
'\u2C6B': 'Z',
|
2592 |
+
'\uA762': 'Z',
|
2593 |
+
'\u24D0': 'a',
|
2594 |
+
'\uFF41': 'a',
|
2595 |
+
'\u1E9A': 'a',
|
2596 |
+
'\u00E0': 'a',
|
2597 |
+
'\u00E1': 'a',
|
2598 |
+
'\u00E2': 'a',
|
2599 |
+
'\u1EA7': 'a',
|
2600 |
+
'\u1EA5': 'a',
|
2601 |
+
'\u1EAB': 'a',
|
2602 |
+
'\u1EA9': 'a',
|
2603 |
+
'\u00E3': 'a',
|
2604 |
+
'\u0101': 'a',
|
2605 |
+
'\u0103': 'a',
|
2606 |
+
'\u1EB1': 'a',
|
2607 |
+
'\u1EAF': 'a',
|
2608 |
+
'\u1EB5': 'a',
|
2609 |
+
'\u1EB3': 'a',
|
2610 |
+
'\u0227': 'a',
|
2611 |
+
'\u01E1': 'a',
|
2612 |
+
'\u00E4': 'a',
|
2613 |
+
'\u01DF': 'a',
|
2614 |
+
'\u1EA3': 'a',
|
2615 |
+
'\u00E5': 'a',
|
2616 |
+
'\u01FB': 'a',
|
2617 |
+
'\u01CE': 'a',
|
2618 |
+
'\u0201': 'a',
|
2619 |
+
'\u0203': 'a',
|
2620 |
+
'\u1EA1': 'a',
|
2621 |
+
'\u1EAD': 'a',
|
2622 |
+
'\u1EB7': 'a',
|
2623 |
+
'\u1E01': 'a',
|
2624 |
+
'\u0105': 'a',
|
2625 |
+
'\u2C65': 'a',
|
2626 |
+
'\u0250': 'a',
|
2627 |
+
'\uA733': 'aa',
|
2628 |
+
'\u00E6': 'ae',
|
2629 |
+
'\u01FD': 'ae',
|
2630 |
+
'\u01E3': 'ae',
|
2631 |
+
'\uA735': 'ao',
|
2632 |
+
'\uA737': 'au',
|
2633 |
+
'\uA739': 'av',
|
2634 |
+
'\uA73B': 'av',
|
2635 |
+
'\uA73D': 'ay',
|
2636 |
+
'\u24D1': 'b',
|
2637 |
+
'\uFF42': 'b',
|
2638 |
+
'\u1E03': 'b',
|
2639 |
+
'\u1E05': 'b',
|
2640 |
+
'\u1E07': 'b',
|
2641 |
+
'\u0180': 'b',
|
2642 |
+
'\u0183': 'b',
|
2643 |
+
'\u0253': 'b',
|
2644 |
+
'\u24D2': 'c',
|
2645 |
+
'\uFF43': 'c',
|
2646 |
+
'\u0107': 'c',
|
2647 |
+
'\u0109': 'c',
|
2648 |
+
'\u010B': 'c',
|
2649 |
+
'\u010D': 'c',
|
2650 |
+
'\u00E7': 'c',
|
2651 |
+
'\u1E09': 'c',
|
2652 |
+
'\u0188': 'c',
|
2653 |
+
'\u023C': 'c',
|
2654 |
+
'\uA73F': 'c',
|
2655 |
+
'\u2184': 'c',
|
2656 |
+
'\u24D3': 'd',
|
2657 |
+
'\uFF44': 'd',
|
2658 |
+
'\u1E0B': 'd',
|
2659 |
+
'\u010F': 'd',
|
2660 |
+
'\u1E0D': 'd',
|
2661 |
+
'\u1E11': 'd',
|
2662 |
+
'\u1E13': 'd',
|
2663 |
+
'\u1E0F': 'd',
|
2664 |
+
'\u0111': 'd',
|
2665 |
+
'\u018C': 'd',
|
2666 |
+
'\u0256': 'd',
|
2667 |
+
'\u0257': 'd',
|
2668 |
+
'\uA77A': 'd',
|
2669 |
+
'\u01F3': 'dz',
|
2670 |
+
'\u01C6': 'dz',
|
2671 |
+
'\u24D4': 'e',
|
2672 |
+
'\uFF45': 'e',
|
2673 |
+
'\u00E8': 'e',
|
2674 |
+
'\u00E9': 'e',
|
2675 |
+
'\u00EA': 'e',
|
2676 |
+
'\u1EC1': 'e',
|
2677 |
+
'\u1EBF': 'e',
|
2678 |
+
'\u1EC5': 'e',
|
2679 |
+
'\u1EC3': 'e',
|
2680 |
+
'\u1EBD': 'e',
|
2681 |
+
'\u0113': 'e',
|
2682 |
+
'\u1E15': 'e',
|
2683 |
+
'\u1E17': 'e',
|
2684 |
+
'\u0115': 'e',
|
2685 |
+
'\u0117': 'e',
|
2686 |
+
'\u00EB': 'e',
|
2687 |
+
'\u1EBB': 'e',
|
2688 |
+
'\u011B': 'e',
|
2689 |
+
'\u0205': 'e',
|
2690 |
+
'\u0207': 'e',
|
2691 |
+
'\u1EB9': 'e',
|
2692 |
+
'\u1EC7': 'e',
|
2693 |
+
'\u0229': 'e',
|
2694 |
+
'\u1E1D': 'e',
|
2695 |
+
'\u0119': 'e',
|
2696 |
+
'\u1E19': 'e',
|
2697 |
+
'\u1E1B': 'e',
|
2698 |
+
'\u0247': 'e',
|
2699 |
+
'\u025B': 'e',
|
2700 |
+
'\u01DD': 'e',
|
2701 |
+
'\u24D5': 'f',
|
2702 |
+
'\uFF46': 'f',
|
2703 |
+
'\u1E1F': 'f',
|
2704 |
+
'\u0192': 'f',
|
2705 |
+
'\uA77C': 'f',
|
2706 |
+
'\u24D6': 'g',
|
2707 |
+
'\uFF47': 'g',
|
2708 |
+
'\u01F5': 'g',
|
2709 |
+
'\u011D': 'g',
|
2710 |
+
'\u1E21': 'g',
|
2711 |
+
'\u011F': 'g',
|
2712 |
+
'\u0121': 'g',
|
2713 |
+
'\u01E7': 'g',
|
2714 |
+
'\u0123': 'g',
|
2715 |
+
'\u01E5': 'g',
|
2716 |
+
'\u0260': 'g',
|
2717 |
+
'\uA7A1': 'g',
|
2718 |
+
'\u1D79': 'g',
|
2719 |
+
'\uA77F': 'g',
|
2720 |
+
'\u24D7': 'h',
|
2721 |
+
'\uFF48': 'h',
|
2722 |
+
'\u0125': 'h',
|
2723 |
+
'\u1E23': 'h',
|
2724 |
+
'\u1E27': 'h',
|
2725 |
+
'\u021F': 'h',
|
2726 |
+
'\u1E25': 'h',
|
2727 |
+
'\u1E29': 'h',
|
2728 |
+
'\u1E2B': 'h',
|
2729 |
+
'\u1E96': 'h',
|
2730 |
+
'\u0127': 'h',
|
2731 |
+
'\u2C68': 'h',
|
2732 |
+
'\u2C76': 'h',
|
2733 |
+
'\u0265': 'h',
|
2734 |
+
'\u0195': 'hv',
|
2735 |
+
'\u24D8': 'i',
|
2736 |
+
'\uFF49': 'i',
|
2737 |
+
'\u00EC': 'i',
|
2738 |
+
'\u00ED': 'i',
|
2739 |
+
'\u00EE': 'i',
|
2740 |
+
'\u0129': 'i',
|
2741 |
+
'\u012B': 'i',
|
2742 |
+
'\u012D': 'i',
|
2743 |
+
'\u00EF': 'i',
|
2744 |
+
'\u1E2F': 'i',
|
2745 |
+
'\u1EC9': 'i',
|
2746 |
+
'\u01D0': 'i',
|
2747 |
+
'\u0209': 'i',
|
2748 |
+
'\u020B': 'i',
|
2749 |
+
'\u1ECB': 'i',
|
2750 |
+
'\u012F': 'i',
|
2751 |
+
'\u1E2D': 'i',
|
2752 |
+
'\u0268': 'i',
|
2753 |
+
'\u0131': 'i',
|
2754 |
+
'\u24D9': 'j',
|
2755 |
+
'\uFF4A': 'j',
|
2756 |
+
'\u0135': 'j',
|
2757 |
+
'\u01F0': 'j',
|
2758 |
+
'\u0249': 'j',
|
2759 |
+
'\u24DA': 'k',
|
2760 |
+
'\uFF4B': 'k',
|
2761 |
+
'\u1E31': 'k',
|
2762 |
+
'\u01E9': 'k',
|
2763 |
+
'\u1E33': 'k',
|
2764 |
+
'\u0137': 'k',
|
2765 |
+
'\u1E35': 'k',
|
2766 |
+
'\u0199': 'k',
|
2767 |
+
'\u2C6A': 'k',
|
2768 |
+
'\uA741': 'k',
|
2769 |
+
'\uA743': 'k',
|
2770 |
+
'\uA745': 'k',
|
2771 |
+
'\uA7A3': 'k',
|
2772 |
+
'\u24DB': 'l',
|
2773 |
+
'\uFF4C': 'l',
|
2774 |
+
'\u0140': 'l',
|
2775 |
+
'\u013A': 'l',
|
2776 |
+
'\u013E': 'l',
|
2777 |
+
'\u1E37': 'l',
|
2778 |
+
'\u1E39': 'l',
|
2779 |
+
'\u013C': 'l',
|
2780 |
+
'\u1E3D': 'l',
|
2781 |
+
'\u1E3B': 'l',
|
2782 |
+
'\u017F': 'l',
|
2783 |
+
'\u0142': 'l',
|
2784 |
+
'\u019A': 'l',
|
2785 |
+
'\u026B': 'l',
|
2786 |
+
'\u2C61': 'l',
|
2787 |
+
'\uA749': 'l',
|
2788 |
+
'\uA781': 'l',
|
2789 |
+
'\uA747': 'l',
|
2790 |
+
'\u01C9': 'lj',
|
2791 |
+
'\u24DC': 'm',
|
2792 |
+
'\uFF4D': 'm',
|
2793 |
+
'\u1E3F': 'm',
|
2794 |
+
'\u1E41': 'm',
|
2795 |
+
'\u1E43': 'm',
|
2796 |
+
'\u0271': 'm',
|
2797 |
+
'\u026F': 'm',
|
2798 |
+
'\u24DD': 'n',
|
2799 |
+
'\uFF4E': 'n',
|
2800 |
+
'\u01F9': 'n',
|
2801 |
+
'\u0144': 'n',
|
2802 |
+
'\u00F1': 'n',
|
2803 |
+
'\u1E45': 'n',
|
2804 |
+
'\u0148': 'n',
|
2805 |
+
'\u1E47': 'n',
|
2806 |
+
'\u0146': 'n',
|
2807 |
+
'\u1E4B': 'n',
|
2808 |
+
'\u1E49': 'n',
|
2809 |
+
'\u019E': 'n',
|
2810 |
+
'\u0272': 'n',
|
2811 |
+
'\u0149': 'n',
|
2812 |
+
'\uA791': 'n',
|
2813 |
+
'\uA7A5': 'n',
|
2814 |
+
'\u01CC': 'nj',
|
2815 |
+
'\u24DE': 'o',
|
2816 |
+
'\uFF4F': 'o',
|
2817 |
+
'\u00F2': 'o',
|
2818 |
+
'\u00F3': 'o',
|
2819 |
+
'\u00F4': 'o',
|
2820 |
+
'\u1ED3': 'o',
|
2821 |
+
'\u1ED1': 'o',
|
2822 |
+
'\u1ED7': 'o',
|
2823 |
+
'\u1ED5': 'o',
|
2824 |
+
'\u00F5': 'o',
|
2825 |
+
'\u1E4D': 'o',
|
2826 |
+
'\u022D': 'o',
|
2827 |
+
'\u1E4F': 'o',
|
2828 |
+
'\u014D': 'o',
|
2829 |
+
'\u1E51': 'o',
|
2830 |
+
'\u1E53': 'o',
|
2831 |
+
'\u014F': 'o',
|
2832 |
+
'\u022F': 'o',
|
2833 |
+
'\u0231': 'o',
|
2834 |
+
'\u00F6': 'o',
|
2835 |
+
'\u022B': 'o',
|
2836 |
+
'\u1ECF': 'o',
|
2837 |
+
'\u0151': 'o',
|
2838 |
+
'\u01D2': 'o',
|
2839 |
+
'\u020D': 'o',
|
2840 |
+
'\u020F': 'o',
|
2841 |
+
'\u01A1': 'o',
|
2842 |
+
'\u1EDD': 'o',
|
2843 |
+
'\u1EDB': 'o',
|
2844 |
+
'\u1EE1': 'o',
|
2845 |
+
'\u1EDF': 'o',
|
2846 |
+
'\u1EE3': 'o',
|
2847 |
+
'\u1ECD': 'o',
|
2848 |
+
'\u1ED9': 'o',
|
2849 |
+
'\u01EB': 'o',
|
2850 |
+
'\u01ED': 'o',
|
2851 |
+
'\u00F8': 'o',
|
2852 |
+
'\u01FF': 'o',
|
2853 |
+
'\u0254': 'o',
|
2854 |
+
'\uA74B': 'o',
|
2855 |
+
'\uA74D': 'o',
|
2856 |
+
'\u0275': 'o',
|
2857 |
+
'\u01A3': 'oi',
|
2858 |
+
'\u0223': 'ou',
|
2859 |
+
'\uA74F': 'oo',
|
2860 |
+
'\u24DF': 'p',
|
2861 |
+
'\uFF50': 'p',
|
2862 |
+
'\u1E55': 'p',
|
2863 |
+
'\u1E57': 'p',
|
2864 |
+
'\u01A5': 'p',
|
2865 |
+
'\u1D7D': 'p',
|
2866 |
+
'\uA751': 'p',
|
2867 |
+
'\uA753': 'p',
|
2868 |
+
'\uA755': 'p',
|
2869 |
+
'\u24E0': 'q',
|
2870 |
+
'\uFF51': 'q',
|
2871 |
+
'\u024B': 'q',
|
2872 |
+
'\uA757': 'q',
|
2873 |
+
'\uA759': 'q',
|
2874 |
+
'\u24E1': 'r',
|
2875 |
+
'\uFF52': 'r',
|
2876 |
+
'\u0155': 'r',
|
2877 |
+
'\u1E59': 'r',
|
2878 |
+
'\u0159': 'r',
|
2879 |
+
'\u0211': 'r',
|
2880 |
+
'\u0213': 'r',
|
2881 |
+
'\u1E5B': 'r',
|
2882 |
+
'\u1E5D': 'r',
|
2883 |
+
'\u0157': 'r',
|
2884 |
+
'\u1E5F': 'r',
|
2885 |
+
'\u024D': 'r',
|
2886 |
+
'\u027D': 'r',
|
2887 |
+
'\uA75B': 'r',
|
2888 |
+
'\uA7A7': 'r',
|
2889 |
+
'\uA783': 'r',
|
2890 |
+
'\u24E2': 's',
|
2891 |
+
'\uFF53': 's',
|
2892 |
+
'\u00DF': 's',
|
2893 |
+
'\u015B': 's',
|
2894 |
+
'\u1E65': 's',
|
2895 |
+
'\u015D': 's',
|
2896 |
+
'\u1E61': 's',
|
2897 |
+
'\u0161': 's',
|
2898 |
+
'\u1E67': 's',
|
2899 |
+
'\u1E63': 's',
|
2900 |
+
'\u1E69': 's',
|
2901 |
+
'\u0219': 's',
|
2902 |
+
'\u015F': 's',
|
2903 |
+
'\u023F': 's',
|
2904 |
+
'\uA7A9': 's',
|
2905 |
+
'\uA785': 's',
|
2906 |
+
'\u1E9B': 's',
|
2907 |
+
'\u24E3': 't',
|
2908 |
+
'\uFF54': 't',
|
2909 |
+
'\u1E6B': 't',
|
2910 |
+
'\u1E97': 't',
|
2911 |
+
'\u0165': 't',
|
2912 |
+
'\u1E6D': 't',
|
2913 |
+
'\u021B': 't',
|
2914 |
+
'\u0163': 't',
|
2915 |
+
'\u1E71': 't',
|
2916 |
+
'\u1E6F': 't',
|
2917 |
+
'\u0167': 't',
|
2918 |
+
'\u01AD': 't',
|
2919 |
+
'\u0288': 't',
|
2920 |
+
'\u2C66': 't',
|
2921 |
+
'\uA787': 't',
|
2922 |
+
'\uA729': 'tz',
|
2923 |
+
'\u24E4': 'u',
|
2924 |
+
'\uFF55': 'u',
|
2925 |
+
'\u00F9': 'u',
|
2926 |
+
'\u00FA': 'u',
|
2927 |
+
'\u00FB': 'u',
|
2928 |
+
'\u0169': 'u',
|
2929 |
+
'\u1E79': 'u',
|
2930 |
+
'\u016B': 'u',
|
2931 |
+
'\u1E7B': 'u',
|
2932 |
+
'\u016D': 'u',
|
2933 |
+
'\u00FC': 'u',
|
2934 |
+
'\u01DC': 'u',
|
2935 |
+
'\u01D8': 'u',
|
2936 |
+
'\u01D6': 'u',
|
2937 |
+
'\u01DA': 'u',
|
2938 |
+
'\u1EE7': 'u',
|
2939 |
+
'\u016F': 'u',
|
2940 |
+
'\u0171': 'u',
|
2941 |
+
'\u01D4': 'u',
|
2942 |
+
'\u0215': 'u',
|
2943 |
+
'\u0217': 'u',
|
2944 |
+
'\u01B0': 'u',
|
2945 |
+
'\u1EEB': 'u',
|
2946 |
+
'\u1EE9': 'u',
|
2947 |
+
'\u1EEF': 'u',
|
2948 |
+
'\u1EED': 'u',
|
2949 |
+
'\u1EF1': 'u',
|
2950 |
+
'\u1EE5': 'u',
|
2951 |
+
'\u1E73': 'u',
|
2952 |
+
'\u0173': 'u',
|
2953 |
+
'\u1E77': 'u',
|
2954 |
+
'\u1E75': 'u',
|
2955 |
+
'\u0289': 'u',
|
2956 |
+
'\u24E5': 'v',
|
2957 |
+
'\uFF56': 'v',
|
2958 |
+
'\u1E7D': 'v',
|
2959 |
+
'\u1E7F': 'v',
|
2960 |
+
'\u028B': 'v',
|
2961 |
+
'\uA75F': 'v',
|
2962 |
+
'\u028C': 'v',
|
2963 |
+
'\uA761': 'vy',
|
2964 |
+
'\u24E6': 'w',
|
2965 |
+
'\uFF57': 'w',
|
2966 |
+
'\u1E81': 'w',
|
2967 |
+
'\u1E83': 'w',
|
2968 |
+
'\u0175': 'w',
|
2969 |
+
'\u1E87': 'w',
|
2970 |
+
'\u1E85': 'w',
|
2971 |
+
'\u1E98': 'w',
|
2972 |
+
'\u1E89': 'w',
|
2973 |
+
'\u2C73': 'w',
|
2974 |
+
'\u24E7': 'x',
|
2975 |
+
'\uFF58': 'x',
|
2976 |
+
'\u1E8B': 'x',
|
2977 |
+
'\u1E8D': 'x',
|
2978 |
+
'\u24E8': 'y',
|
2979 |
+
'\uFF59': 'y',
|
2980 |
+
'\u1EF3': 'y',
|
2981 |
+
'\u00FD': 'y',
|
2982 |
+
'\u0177': 'y',
|
2983 |
+
'\u1EF9': 'y',
|
2984 |
+
'\u0233': 'y',
|
2985 |
+
'\u1E8F': 'y',
|
2986 |
+
'\u00FF': 'y',
|
2987 |
+
'\u1EF7': 'y',
|
2988 |
+
'\u1E99': 'y',
|
2989 |
+
'\u1EF5': 'y',
|
2990 |
+
'\u01B4': 'y',
|
2991 |
+
'\u024F': 'y',
|
2992 |
+
'\u1EFF': 'y',
|
2993 |
+
'\u24E9': 'z',
|
2994 |
+
'\uFF5A': 'z',
|
2995 |
+
'\u017A': 'z',
|
2996 |
+
'\u1E91': 'z',
|
2997 |
+
'\u017C': 'z',
|
2998 |
+
'\u017E': 'z',
|
2999 |
+
'\u1E93': 'z',
|
3000 |
+
'\u1E95': 'z',
|
3001 |
+
'\u01B6': 'z',
|
3002 |
+
'\u0225': 'z',
|
3003 |
+
'\u0240': 'z',
|
3004 |
+
'\u2C6C': 'z',
|
3005 |
+
'\uA763': 'z',
|
3006 |
+
'\u0386': '\u0391',
|
3007 |
+
'\u0388': '\u0395',
|
3008 |
+
'\u0389': '\u0397',
|
3009 |
+
'\u038A': '\u0399',
|
3010 |
+
'\u03AA': '\u0399',
|
3011 |
+
'\u038C': '\u039F',
|
3012 |
+
'\u038E': '\u03A5',
|
3013 |
+
'\u03AB': '\u03A5',
|
3014 |
+
'\u038F': '\u03A9',
|
3015 |
+
'\u03AC': '\u03B1',
|
3016 |
+
'\u03AD': '\u03B5',
|
3017 |
+
'\u03AE': '\u03B7',
|
3018 |
+
'\u03AF': '\u03B9',
|
3019 |
+
'\u03CA': '\u03B9',
|
3020 |
+
'\u0390': '\u03B9',
|
3021 |
+
'\u03CC': '\u03BF',
|
3022 |
+
'\u03CD': '\u03C5',
|
3023 |
+
'\u03CB': '\u03C5',
|
3024 |
+
'\u03B0': '\u03C5',
|
3025 |
+
'\u03C9': '\u03C9',
|
3026 |
+
'\u03C2': '\u03C3'
|
3027 |
+
};
|
3028 |
+
|
3029 |
+
return diacritics;
|
3030 |
+
});
|
3031 |
+
|
3032 |
+
S2.define('select2/data/base',[
|
3033 |
+
'../utils'
|
3034 |
+
], function (Utils) {
|
3035 |
+
function BaseAdapter ($element, options) {
|
3036 |
+
BaseAdapter.__super__.constructor.call(this);
|
3037 |
+
}
|
3038 |
+
|
3039 |
+
Utils.Extend(BaseAdapter, Utils.Observable);
|
3040 |
+
|
3041 |
+
BaseAdapter.prototype.current = function (callback) {
|
3042 |
+
throw new Error('The `current` method must be defined in child classes.');
|
3043 |
+
};
|
3044 |
+
|
3045 |
+
BaseAdapter.prototype.query = function (params, callback) {
|
3046 |
+
throw new Error('The `query` method must be defined in child classes.');
|
3047 |
+
};
|
3048 |
+
|
3049 |
+
BaseAdapter.prototype.bind = function (container, $container) {
|
3050 |
+
// Can be implemented in subclasses
|
3051 |
+
};
|
3052 |
+
|
3053 |
+
BaseAdapter.prototype.destroy = function () {
|
3054 |
+
// Can be implemented in subclasses
|
3055 |
+
};
|
3056 |
+
|
3057 |
+
BaseAdapter.prototype.generateResultId = function (container, data) {
|
3058 |
+
var id = '';
|
3059 |
+
|
3060 |
+
if (container != null) {
|
3061 |
+
id += container.id
|
3062 |
+
} else {
|
3063 |
+
id += Utils.generateChars(4);
|
3064 |
+
}
|
3065 |
+
|
3066 |
+
id += '-result-';
|
3067 |
+
id += Utils.generateChars(4);
|
3068 |
+
|
3069 |
+
if (data.id != null) {
|
3070 |
+
id += '-' + data.id.toString();
|
3071 |
+
} else {
|
3072 |
+
id += '-' + Utils.generateChars(4);
|
3073 |
+
}
|
3074 |
+
return id;
|
3075 |
+
};
|
3076 |
+
|
3077 |
+
return BaseAdapter;
|
3078 |
+
});
|
3079 |
+
|
3080 |
+
S2.define('select2/data/select',[
|
3081 |
+
'./base',
|
3082 |
+
'../utils',
|
3083 |
+
'jquery'
|
3084 |
+
], function (BaseAdapter, Utils, $) {
|
3085 |
+
function SelectAdapter ($element, options) {
|
3086 |
+
this.$element = $element;
|
3087 |
+
this.options = options;
|
3088 |
+
|
3089 |
+
SelectAdapter.__super__.constructor.call(this);
|
3090 |
+
}
|
3091 |
+
|
3092 |
+
Utils.Extend(SelectAdapter, BaseAdapter);
|
3093 |
+
|
3094 |
+
SelectAdapter.prototype.current = function (callback) {
|
3095 |
+
var data = [];
|
3096 |
+
var self = this;
|
3097 |
+
|
3098 |
+
this.$element.find(':selected').each(function () {
|
3099 |
+
var $option = $(this);
|
3100 |
+
|
3101 |
+
var option = self.item($option);
|
3102 |
+
|
3103 |
+
data.push(option);
|
3104 |
+
});
|
3105 |
+
|
3106 |
+
callback(data);
|
3107 |
+
};
|
3108 |
+
|
3109 |
+
SelectAdapter.prototype.select = function (data) {
|
3110 |
+
var self = this;
|
3111 |
+
|
3112 |
+
data.selected = true;
|
3113 |
+
|
3114 |
+
// If data.element is a DOM node, use it instead
|
3115 |
+
if ($(data.element).is('option')) {
|
3116 |
+
data.element.selected = true;
|
3117 |
+
|
3118 |
+
this.$element.trigger('change');
|
3119 |
+
|
3120 |
+
return;
|
3121 |
+
}
|
3122 |
+
|
3123 |
+
if (this.$element.prop('multiple')) {
|
3124 |
+
this.current(function (currentData) {
|
3125 |
+
var val = [];
|
3126 |
+
|
3127 |
+
data = [data];
|
3128 |
+
data.push.apply(data, currentData);
|
3129 |
+
|
3130 |
+
for (var d = 0; d < data.length; d++) {
|
3131 |
+
var id = data[d].id;
|
3132 |
+
|
3133 |
+
if ($.inArray(id, val) === -1) {
|
3134 |
+
val.push(id);
|
3135 |
+
}
|
3136 |
+
}
|
3137 |
+
|
3138 |
+
self.$element.val(val);
|
3139 |
+
self.$element.trigger('change');
|
3140 |
+
});
|
3141 |
+
} else {
|
3142 |
+
var val = data.id;
|
3143 |
+
|
3144 |
+
this.$element.val(val);
|
3145 |
+
this.$element.trigger('change');
|
3146 |
+
}
|
3147 |
+
};
|
3148 |
+
|
3149 |
+
SelectAdapter.prototype.unselect = function (data) {
|
3150 |
+
var self = this;
|
3151 |
+
|
3152 |
+
if (!this.$element.prop('multiple')) {
|
3153 |
+
return;
|
3154 |
+
}
|
3155 |
+
|
3156 |
+
data.selected = false;
|
3157 |
+
|
3158 |
+
if ($(data.element).is('option')) {
|
3159 |
+
data.element.selected = false;
|
3160 |
+
|
3161 |
+
this.$element.trigger('change');
|
3162 |
+
|
3163 |
+
return;
|
3164 |
+
}
|
3165 |
+
|
3166 |
+
this.current(function (currentData) {
|
3167 |
+
var val = [];
|
3168 |
+
|
3169 |
+
for (var d = 0; d < currentData.length; d++) {
|
3170 |
+
var id = currentData[d].id;
|
3171 |
+
|
3172 |
+
if (id !== data.id && $.inArray(id, val) === -1) {
|
3173 |
+
val.push(id);
|
3174 |
+
}
|
3175 |
+
}
|
3176 |
+
|
3177 |
+
self.$element.val(val);
|
3178 |
+
|
3179 |
+
self.$element.trigger('change');
|
3180 |
+
});
|
3181 |
+
};
|
3182 |
+
|
3183 |
+
SelectAdapter.prototype.bind = function (container, $container) {
|
3184 |
+
var self = this;
|
3185 |
+
|
3186 |
+
this.container = container;
|
3187 |
+
|
3188 |
+
container.on('select', function (params) {
|
3189 |
+
self.select(params.data);
|
3190 |
+
});
|
3191 |
+
|
3192 |
+
container.on('unselect', function (params) {
|
3193 |
+
self.unselect(params.data);
|
3194 |
+
});
|
3195 |
+
};
|
3196 |
+
|
3197 |
+
SelectAdapter.prototype.destroy = function () {
|
3198 |
+
// Remove anything added to child elements
|
3199 |
+
this.$element.find('*').each(function () {
|
3200 |
+
// Remove any custom data set by Select2
|
3201 |
+
$.removeData(this, 'data');
|
3202 |
+
});
|
3203 |
+
};
|
3204 |
+
|
3205 |
+
SelectAdapter.prototype.query = function (params, callback) {
|
3206 |
+
var data = [];
|
3207 |
+
var self = this;
|
3208 |
+
|
3209 |
+
var $options = this.$element.children();
|
3210 |
+
|
3211 |
+
$options.each(function () {
|
3212 |
+
var $option = $(this);
|
3213 |
+
|
3214 |
+
if (!$option.is('option') && !$option.is('optgroup')) {
|
3215 |
+
return;
|
3216 |
+
}
|
3217 |
+
|
3218 |
+
var option = self.item($option);
|
3219 |
+
|
3220 |
+
var matches = self.matches(params, option);
|
3221 |
+
|
3222 |
+
if (matches !== null) {
|
3223 |
+
data.push(matches);
|
3224 |
+
}
|
3225 |
+
});
|
3226 |
+
|
3227 |
+
callback({
|
3228 |
+
results: data
|
3229 |
+
});
|
3230 |
+
};
|
3231 |
+
|
3232 |
+
SelectAdapter.prototype.addOptions = function ($options) {
|
3233 |
+
Utils.appendMany(this.$element, $options);
|
3234 |
+
};
|
3235 |
+
|
3236 |
+
SelectAdapter.prototype.option = function (data) {
|
3237 |
+
var option;
|
3238 |
+
|
3239 |
+
if (data.children) {
|
3240 |
+
option = document.createElement('optgroup');
|
3241 |
+
option.label = data.text;
|
3242 |
+
} else {
|
3243 |
+
option = document.createElement('option');
|
3244 |
+
|
3245 |
+
if (option.textContent !== undefined) {
|
3246 |
+
option.textContent = data.text;
|
3247 |
+
} else {
|
3248 |
+
option.innerText = data.text;
|
3249 |
+
}
|
3250 |
+
}
|
3251 |
+
|
3252 |
+
if (data.id !== undefined) {
|
3253 |
+
option.value = data.id;
|
3254 |
+
}
|
3255 |
+
|
3256 |
+
if (data.disabled) {
|
3257 |
+
option.disabled = true;
|
3258 |
+
}
|
3259 |
+
|
3260 |
+
if (data.selected) {
|
3261 |
+
option.selected = true;
|
3262 |
+
}
|
3263 |
+
|
3264 |
+
if (data.title) {
|
3265 |
+
option.title = data.title;
|
3266 |
+
}
|
3267 |
+
|
3268 |
+
var $option = $(option);
|
3269 |
+
|
3270 |
+
var normalizedData = this._normalizeItem(data);
|
3271 |
+
normalizedData.element = option;
|
3272 |
+
|
3273 |
+
// Override the option's data with the combined data
|
3274 |
+
$.data(option, 'data', normalizedData);
|
3275 |
+
|
3276 |
+
return $option;
|
3277 |
+
};
|
3278 |
+
|
3279 |
+
SelectAdapter.prototype.item = function ($option) {
|
3280 |
+
var data = {};
|
3281 |
+
|
3282 |
+
data = $.data($option[0], 'data');
|
3283 |
+
|
3284 |
+
if (data != null) {
|
3285 |
+
return data;
|
3286 |
+
}
|
3287 |
+
|
3288 |
+
if ($option.is('option')) {
|
3289 |
+
data = {
|
3290 |
+
id: $option.val(),
|
3291 |
+
text: $option.text(),
|
3292 |
+
disabled: $option.prop('disabled'),
|
3293 |
+
selected: $option.prop('selected'),
|
3294 |
+
title: $option.prop('title')
|
3295 |
+
};
|
3296 |
+
} else if ($option.is('optgroup')) {
|
3297 |
+
data = {
|
3298 |
+
text: $option.prop('label'),
|
3299 |
+
children: [],
|
3300 |
+
title: $option.prop('title')
|
3301 |
+
};
|
3302 |
+
|
3303 |
+
var $children = $option.children('option');
|
3304 |
+
var children = [];
|
3305 |
+
|
3306 |
+
for (var c = 0; c < $children.length; c++) {
|
3307 |
+
var $child = $($children[c]);
|
3308 |
+
|
3309 |
+
var child = this.item($child);
|
3310 |
+
|
3311 |
+
children.push(child);
|
3312 |
+
}
|
3313 |
+
|
3314 |
+
data.children = children;
|
3315 |
+
}
|
3316 |
+
|
3317 |
+
data = this._normalizeItem(data);
|
3318 |
+
data.element = $option[0];
|
3319 |
+
|
3320 |
+
$.data($option[0], 'data', data);
|
3321 |
+
|
3322 |
+
return data;
|
3323 |
+
};
|
3324 |
+
|
3325 |
+
SelectAdapter.prototype._normalizeItem = function (item) {
|
3326 |
+
if (!$.isPlainObject(item)) {
|
3327 |
+
item = {
|
3328 |
+
id: item,
|
3329 |
+
text: item
|
3330 |
+
};
|
3331 |
+
}
|
3332 |
+
|
3333 |
+
item = $.extend({}, {
|
3334 |
+
text: ''
|
3335 |
+
}, item);
|
3336 |
+
|
3337 |
+
var defaults = {
|
3338 |
+
selected: false,
|
3339 |
+
disabled: false
|
3340 |
+
};
|
3341 |
+
|
3342 |
+
if (item.id != null) {
|
3343 |
+
item.id = item.id.toString();
|
3344 |
+
}
|
3345 |
+
|
3346 |
+
if (item.text != null) {
|
3347 |
+
item.text = item.text.toString();
|
3348 |
+
}
|
3349 |
+
|
3350 |
+
if (item._resultId == null && item.id) {
|
3351 |
+
item._resultId = this.generateResultId(this.container, item);
|
3352 |
+
}
|
3353 |
+
|
3354 |
+
return $.extend({}, defaults, item);
|
3355 |
+
};
|
3356 |
+
|
3357 |
+
SelectAdapter.prototype.matches = function (params, data) {
|
3358 |
+
var matcher = this.options.get('matcher');
|
3359 |
+
|
3360 |
+
return matcher(params, data);
|
3361 |
+
};
|
3362 |
+
|
3363 |
+
return SelectAdapter;
|
3364 |
+
});
|
3365 |
+
|
3366 |
+
S2.define('select2/data/array',[
|
3367 |
+
'./select',
|
3368 |
+
'../utils',
|
3369 |
+
'jquery'
|
3370 |
+
], function (SelectAdapter, Utils, $) {
|
3371 |
+
function ArrayAdapter ($element, options) {
|
3372 |
+
var data = options.get('data') || [];
|
3373 |
+
|
3374 |
+
ArrayAdapter.__super__.constructor.call(this, $element, options);
|
3375 |
+
|
3376 |
+
this.addOptions(this.convertToOptions(data));
|
3377 |
+
}
|
3378 |
+
|
3379 |
+
Utils.Extend(ArrayAdapter, SelectAdapter);
|
3380 |
+
|
3381 |
+
ArrayAdapter.prototype.select = function (data) {
|
3382 |
+
var $option = this.$element.find('option').filter(function (i, elm) {
|
3383 |
+
return elm.value == data.id.toString();
|
3384 |
+
});
|
3385 |
+
|
3386 |
+
if ($option.length === 0) {
|
3387 |
+
$option = this.option(data);
|
3388 |
+
|
3389 |
+
this.addOptions($option);
|
3390 |
+
}
|
3391 |
+
|
3392 |
+
ArrayAdapter.__super__.select.call(this, data);
|
3393 |
+
};
|
3394 |
+
|
3395 |
+
ArrayAdapter.prototype.convertToOptions = function (data) {
|
3396 |
+
var self = this;
|
3397 |
+
|
3398 |
+
var $existing = this.$element.find('option');
|
3399 |
+
var existingIds = $existing.map(function () {
|
3400 |
+
return self.item($(this)).id;
|
3401 |
+
}).get();
|
3402 |
+
|
3403 |
+
var $options = [];
|
3404 |
+
|
3405 |
+
// Filter out all items except for the one passed in the argument
|
3406 |
+
function onlyItem (item) {
|
3407 |
+
return function () {
|
3408 |
+
return $(this).val() == item.id;
|
3409 |
+
};
|
3410 |
+
}
|
3411 |
+
|
3412 |
+
for (var d = 0; d < data.length; d++) {
|
3413 |
+
var item = this._normalizeItem(data[d]);
|
3414 |
+
|
3415 |
+
// Skip items which were pre-loaded, only merge the data
|
3416 |
+
if ($.inArray(item.id, existingIds) >= 0) {
|
3417 |
+
var $existingOption = $existing.filter(onlyItem(item));
|
3418 |
+
|
3419 |
+
var existingData = this.item($existingOption);
|
3420 |
+
var newData = $.extend(true, {}, item, existingData);
|
3421 |
+
|
3422 |
+
var $newOption = this.option(newData);
|
3423 |
+
|
3424 |
+
$existingOption.replaceWith($newOption);
|
3425 |
+
|
3426 |
+
continue;
|
3427 |
+
}
|
3428 |
+
|
3429 |
+
var $option = this.option(item);
|
3430 |
+
|
3431 |
+
if (item.children) {
|
3432 |
+
var $children = this.convertToOptions(item.children);
|
3433 |
+
|
3434 |
+
Utils.appendMany($option, $children);
|
3435 |
+
}
|
3436 |
+
|
3437 |
+
$options.push($option);
|
3438 |
+
}
|
3439 |
+
|
3440 |
+
return $options;
|
3441 |
+
};
|
3442 |
+
|
3443 |
+
return ArrayAdapter;
|
3444 |
+
});
|
3445 |
+
|
3446 |
+
S2.define('select2/data/ajax',[
|
3447 |
+
'./array',
|
3448 |
+
'../utils',
|
3449 |
+
'jquery'
|
3450 |
+
], function (ArrayAdapter, Utils, $) {
|
3451 |
+
function AjaxAdapter ($element, options) {
|
3452 |
+
this.ajaxOptions = this._applyDefaults(options.get('ajax'));
|
3453 |
+
|
3454 |
+
if (this.ajaxOptions.processResults != null) {
|
3455 |
+
this.processResults = this.ajaxOptions.processResults;
|
3456 |
+
}
|
3457 |
+
|
3458 |
+
AjaxAdapter.__super__.constructor.call(this, $element, options);
|
3459 |
+
}
|
3460 |
+
|
3461 |
+
Utils.Extend(AjaxAdapter, ArrayAdapter);
|
3462 |
+
|
3463 |
+
AjaxAdapter.prototype._applyDefaults = function (options) {
|
3464 |
+
var defaults = {
|
3465 |
+
data: function (params) {
|
3466 |
+
return $.extend({}, params, {
|
3467 |
+
q: params.term
|
3468 |
+
});
|
3469 |
+
},
|
3470 |
+
transport: function (params, success, failure) {
|
3471 |
+
var $request = $.ajax(params);
|
3472 |
+
|
3473 |
+
$request.then(success);
|
3474 |
+
$request.fail(failure);
|
3475 |
+
|
3476 |
+
return $request;
|
3477 |
+
}
|
3478 |
+
};
|
3479 |
+
|
3480 |
+
return $.extend({}, defaults, options, true);
|
3481 |
+
};
|
3482 |
+
|
3483 |
+
AjaxAdapter.prototype.processResults = function (results) {
|
3484 |
+
return results;
|
3485 |
+
};
|
3486 |
+
|
3487 |
+
AjaxAdapter.prototype.query = function (params, callback) {
|
3488 |
+
var matches = [];
|
3489 |
+
var self = this;
|
3490 |
+
|
3491 |
+
if (this._request != null) {
|
3492 |
+
// JSONP requests cannot always be aborted
|
3493 |
+
if ($.isFunction(this._request.abort)) {
|
3494 |
+
this._request.abort();
|
3495 |
+
}
|
3496 |
+
|
3497 |
+
this._request = null;
|
3498 |
+
}
|
3499 |
+
|
3500 |
+
var options = $.extend({
|
3501 |
+
type: 'GET'
|
3502 |
+
}, this.ajaxOptions);
|
3503 |
+
|
3504 |
+
if (typeof options.url === 'function') {
|
3505 |
+
options.url = options.url.call(this.$element, params);
|
3506 |
+
}
|
3507 |
+
|
3508 |
+
if (typeof options.data === 'function') {
|
3509 |
+
options.data = options.data.call(this.$element, params);
|
3510 |
+
}
|
3511 |
+
|
3512 |
+
function request () {
|
3513 |
+
var $request = options.transport(options, function (data) {
|
3514 |
+
var results = self.processResults(data, params);
|
3515 |
+
|
3516 |
+
if (self.options.get('debug') && window.console && console.error) {
|
3517 |
+
// Check to make sure that the response included a `results` key.
|
3518 |
+
if (!results || !results.results || !$.isArray(results.results)) {
|
3519 |
+
console.error(
|
3520 |
+
'Select2: The AJAX results did not return an array in the ' +
|
3521 |
+
'`results` key of the response.'
|
3522 |
+
);
|
3523 |
+
}
|
3524 |
+
}
|
3525 |
+
|
3526 |
+
callback(results);
|
3527 |
+
}, function () {
|
3528 |
+
// Attempt to detect if a request was aborted
|
3529 |
+
// Only works if the transport exposes a status property
|
3530 |
+
if ($request.status && $request.status === '0') {
|
3531 |
+
return;
|
3532 |
+
}
|
3533 |
+
|
3534 |
+
self.trigger('results:message', {
|
3535 |
+
message: 'errorLoading'
|
3536 |
+
});
|
3537 |
+
});
|
3538 |
+
|
3539 |
+
self._request = $request;
|
3540 |
+
}
|
3541 |
+
|
3542 |
+
if (this.ajaxOptions.delay && params.term != null) {
|
3543 |
+
if (this._queryTimeout) {
|
3544 |
+
window.clearTimeout(this._queryTimeout);
|
3545 |
+
}
|
3546 |
+
|
3547 |
+
this._queryTimeout = window.setTimeout(request, this.ajaxOptions.delay);
|
3548 |
+
} else {
|
3549 |
+
request();
|
3550 |
+
}
|
3551 |
+
};
|
3552 |
+
|
3553 |
+
return AjaxAdapter;
|
3554 |
+
});
|
3555 |
+
|
3556 |
+
S2.define('select2/data/tags',[
|
3557 |
+
'jquery'
|
3558 |
+
], function ($) {
|
3559 |
+
function Tags (decorated, $element, options) {
|
3560 |
+
var tags = options.get('tags');
|
3561 |
+
|
3562 |
+
var createTag = options.get('createTag');
|
3563 |
+
|
3564 |
+
if (createTag !== undefined) {
|
3565 |
+
this.createTag = createTag;
|
3566 |
+
}
|
3567 |
+
|
3568 |
+
var insertTag = options.get('insertTag');
|
3569 |
+
|
3570 |
+
if (insertTag !== undefined) {
|
3571 |
+
this.insertTag = insertTag;
|
3572 |
+
}
|
3573 |
+
|
3574 |
+
decorated.call(this, $element, options);
|
3575 |
+
|
3576 |
+
if ($.isArray(tags)) {
|
3577 |
+
for (var t = 0; t < tags.length; t++) {
|
3578 |
+
var tag = tags[t];
|
3579 |
+
var item = this._normalizeItem(tag);
|
3580 |
+
|
3581 |
+
var $option = this.option(item);
|
3582 |
+
|
3583 |
+
this.$element.append($option);
|
3584 |
+
}
|
3585 |
+
}
|
3586 |
+
}
|
3587 |
+
|
3588 |
+
Tags.prototype.query = function (decorated, params, callback) {
|
3589 |
+
var self = this;
|
3590 |
+
|
3591 |
+
this._removeOldTags();
|
3592 |
+
|
3593 |
+
if (params.term == null || params.page != null) {
|
3594 |
+
decorated.call(this, params, callback);
|
3595 |
+
return;
|
3596 |
+
}
|
3597 |
+
|
3598 |
+
function wrapper (obj, child) {
|
3599 |
+
var data = obj.results;
|
3600 |
+
|
3601 |
+
for (var i = 0; i < data.length; i++) {
|
3602 |
+
var option = data[i];
|
3603 |
+
|
3604 |
+
var checkChildren = (
|
3605 |
+
option.children != null &&
|
3606 |
+
!wrapper({
|
3607 |
+
results: option.children
|
3608 |
+
}, true)
|
3609 |
+
);
|
3610 |
+
|
3611 |
+
var optionText = (option.text || '').toUpperCase();
|
3612 |
+
var paramsTerm = (params.term || '').toUpperCase();
|
3613 |
+
|
3614 |
+
var checkText = optionText === paramsTerm;
|
3615 |
+
|
3616 |
+
if (checkText || checkChildren) {
|
3617 |
+
if (child) {
|
3618 |
+
return false;
|
3619 |
+
}
|
3620 |
+
|
3621 |
+
obj.data = data;
|
3622 |
+
callback(obj);
|
3623 |
+
|
3624 |
+
return;
|
3625 |
+
}
|
3626 |
+
}
|
3627 |
+
|
3628 |
+
if (child) {
|
3629 |
+
return true;
|
3630 |
+
}
|
3631 |
+
|
3632 |
+
var tag = self.createTag(params);
|
3633 |
+
|
3634 |
+
if (tag != null) {
|
3635 |
+
var $option = self.option(tag);
|
3636 |
+
$option.attr('data-select2-tag', true);
|
3637 |
+
|
3638 |
+
self.addOptions([$option]);
|
3639 |
+
|
3640 |
+
self.insertTag(data, tag);
|
3641 |
+
}
|
3642 |
+
|
3643 |
+
obj.results = data;
|
3644 |
+
|
3645 |
+
callback(obj);
|
3646 |
+
}
|
3647 |
+
|
3648 |
+
decorated.call(this, params, wrapper);
|
3649 |
+
};
|
3650 |
+
|
3651 |
+
Tags.prototype.createTag = function (decorated, params) {
|
3652 |
+
var term = $.trim(params.term);
|
3653 |
+
|
3654 |
+
if (term === '') {
|
3655 |
+
return null;
|
3656 |
+
}
|
3657 |
+
|
3658 |
+
return {
|
3659 |
+
id: term,
|
3660 |
+
text: term
|
3661 |
+
};
|
3662 |
+
};
|
3663 |
+
|
3664 |
+
Tags.prototype.insertTag = function (_, data, tag) {
|
3665 |
+
data.unshift(tag);
|
3666 |
+
};
|
3667 |
+
|
3668 |
+
Tags.prototype._removeOldTags = function (_) {
|
3669 |
+
var tag = this._lastTag;
|
3670 |
+
|
3671 |
+
var $options = this.$element.find('option[data-select2-tag]');
|
3672 |
+
|
3673 |
+
$options.each(function () {
|
3674 |
+
if (this.selected) {
|
3675 |
+
return;
|
3676 |
+
}
|
3677 |
+
|
3678 |
+
$(this).remove();
|
3679 |
+
});
|
3680 |
+
};
|
3681 |
+
|
3682 |
+
return Tags;
|
3683 |
+
});
|
3684 |
+
|
3685 |
+
S2.define('select2/data/tokenizer',[
|
3686 |
+
'jquery'
|
3687 |
+
], function ($) {
|
3688 |
+
function Tokenizer (decorated, $element, options) {
|
3689 |
+
var tokenizer = options.get('tokenizer');
|
3690 |
+
|
3691 |
+
if (tokenizer !== undefined) {
|
3692 |
+
this.tokenizer = tokenizer;
|
3693 |
+
}
|
3694 |
+
|
3695 |
+
decorated.call(this, $element, options);
|
3696 |
+
}
|
3697 |
+
|
3698 |
+
Tokenizer.prototype.bind = function (decorated, container, $container) {
|
3699 |
+
decorated.call(this, container, $container);
|
3700 |
+
|
3701 |
+
this.$search = container.dropdown.$search || container.selection.$search ||
|
3702 |
+
$container.find('.select2-search__field');
|
3703 |
+
};
|
3704 |
+
|
3705 |
+
Tokenizer.prototype.query = function (decorated, params, callback) {
|
3706 |
+
var self = this;
|
3707 |
+
|
3708 |
+
function createAndSelect (data) {
|
3709 |
+
// Normalize the data object so we can use it for checks
|
3710 |
+
var item = self._normalizeItem(data);
|
3711 |
+
|
3712 |
+
// Check if the data object already exists as a tag
|
3713 |
+
// Select it if it doesn't
|
3714 |
+
var $existingOptions = self.$element.find('option').filter(function () {
|
3715 |
+
return $(this).val() === item.id;
|
3716 |
+
});
|
3717 |
+
|
3718 |
+
// If an existing option wasn't found for it, create the option
|
3719 |
+
if (!$existingOptions.length) {
|
3720 |
+
var $option = self.option(item);
|
3721 |
+
$option.attr('data-select2-tag', true);
|
3722 |
+
|
3723 |
+
self._removeOldTags();
|
3724 |
+
self.addOptions([$option]);
|
3725 |
+
}
|
3726 |
+
|
3727 |
+
// Select the item, now that we know there is an option for it
|
3728 |
+
select(item);
|
3729 |
+
}
|
3730 |
+
|
3731 |
+
function select (data) {
|
3732 |
+
self.trigger('select', {
|
3733 |
+
data: data
|
3734 |
+
});
|
3735 |
+
}
|
3736 |
+
|
3737 |
+
params.term = params.term || '';
|
3738 |
+
|
3739 |
+
var tokenData = this.tokenizer(params, this.options, createAndSelect);
|
3740 |
+
|
3741 |
+
if (tokenData.term !== params.term) {
|
3742 |
+
// Replace the search term if we have the search box
|
3743 |
+
if (this.$search.length) {
|
3744 |
+
this.$search.val(tokenData.term);
|
3745 |
+
this.$search.focus();
|
3746 |
+
}
|
3747 |
+
|
3748 |
+
params.term = tokenData.term;
|
3749 |
+
}
|
3750 |
+
|
3751 |
+
decorated.call(this, params, callback);
|
3752 |
+
};
|
3753 |
+
|
3754 |
+
Tokenizer.prototype.tokenizer = function (_, params, options, callback) {
|
3755 |
+
var separators = options.get('tokenSeparators') || [];
|
3756 |
+
var term = params.term;
|
3757 |
+
var i = 0;
|
3758 |
+
|
3759 |
+
var createTag = this.createTag || function (params) {
|
3760 |
+
return {
|
3761 |
+
id: params.term,
|
3762 |
+
text: params.term
|
3763 |
+
};
|
3764 |
+
};
|
3765 |
+
|
3766 |
+
while (i < term.length) {
|
3767 |
+
var termChar = term[i];
|
3768 |
+
|
3769 |
+
if ($.inArray(termChar, separators) === -1) {
|
3770 |
+
i++;
|
3771 |
+
|
3772 |
+
continue;
|
3773 |
+
}
|
3774 |
+
|
3775 |
+
var part = term.substr(0, i);
|
3776 |
+
var partParams = $.extend({}, params, {
|
3777 |
+
term: part
|
3778 |
+
});
|
3779 |
+
|
3780 |
+
var data = createTag(partParams);
|
3781 |
+
|
3782 |
+
if (data == null) {
|
3783 |
+
i++;
|
3784 |
+
continue;
|
3785 |
+
}
|
3786 |
+
|
3787 |
+
callback(data);
|
3788 |
+
|
3789 |
+
// Reset the term to not include the tokenized portion
|
3790 |
+
term = term.substr(i + 1) || '';
|
3791 |
+
i = 0;
|
3792 |
+
}
|
3793 |
+
|
3794 |
+
return {
|
3795 |
+
term: term
|
3796 |
+
};
|
3797 |
+
};
|
3798 |
+
|
3799 |
+
return Tokenizer;
|
3800 |
+
});
|
3801 |
+
|
3802 |
+
S2.define('select2/data/minimumInputLength',[
|
3803 |
+
|
3804 |
+
], function () {
|
3805 |
+
function MinimumInputLength (decorated, $e, options) {
|
3806 |
+
this.minimumInputLength = options.get('minimumInputLength');
|
3807 |
+
|
3808 |
+
decorated.call(this, $e, options);
|
3809 |
+
}
|
3810 |
+
|
3811 |
+
MinimumInputLength.prototype.query = function (decorated, params, callback) {
|
3812 |
+
params.term = params.term || '';
|
3813 |
+
|
3814 |
+
if (params.term.length < this.minimumInputLength) {
|
3815 |
+
this.trigger('results:message', {
|
3816 |
+
message: 'inputTooShort',
|
3817 |
+
args: {
|
3818 |
+
minimum: this.minimumInputLength,
|
3819 |
+
input: params.term,
|
3820 |
+
params: params
|
3821 |
+
}
|
3822 |
+
});
|
3823 |
+
|
3824 |
+
return;
|
3825 |
+
}
|
3826 |
+
|
3827 |
+
decorated.call(this, params, callback);
|
3828 |
+
};
|
3829 |
+
|
3830 |
+
return MinimumInputLength;
|
3831 |
+
});
|
3832 |
+
|
3833 |
+
S2.define('select2/data/maximumInputLength',[
|
3834 |
+
|
3835 |
+
], function () {
|
3836 |
+
function MaximumInputLength (decorated, $e, options) {
|
3837 |
+
this.maximumInputLength = options.get('maximumInputLength');
|
3838 |
+
|
3839 |
+
decorated.call(this, $e, options);
|
3840 |
+
}
|
3841 |
+
|
3842 |
+
MaximumInputLength.prototype.query = function (decorated, params, callback) {
|
3843 |
+
params.term = params.term || '';
|
3844 |
+
|
3845 |
+
if (this.maximumInputLength > 0 &&
|
3846 |
+
params.term.length > this.maximumInputLength) {
|
3847 |
+
this.trigger('results:message', {
|
3848 |
+
message: 'inputTooLong',
|
3849 |
+
args: {
|
3850 |
+
maximum: this.maximumInputLength,
|
3851 |
+
input: params.term,
|
3852 |
+
params: params
|
3853 |
+
}
|
3854 |
+
});
|
3855 |
+
|
3856 |
+
return;
|
3857 |
+
}
|
3858 |
+
|
3859 |
+
decorated.call(this, params, callback);
|
3860 |
+
};
|
3861 |
+
|
3862 |
+
return MaximumInputLength;
|
3863 |
+
});
|
3864 |
+
|
3865 |
+
S2.define('select2/data/maximumSelectionLength',[
|
3866 |
+
|
3867 |
+
], function (){
|
3868 |
+
function MaximumSelectionLength (decorated, $e, options) {
|
3869 |
+
this.maximumSelectionLength = options.get('maximumSelectionLength');
|
3870 |
+
|
3871 |
+
decorated.call(this, $e, options);
|
3872 |
+
}
|
3873 |
+
|
3874 |
+
MaximumSelectionLength.prototype.query =
|
3875 |
+
function (decorated, params, callback) {
|
3876 |
+
var self = this;
|
3877 |
+
|
3878 |
+
this.current(function (currentData) {
|
3879 |
+
var count = currentData != null ? currentData.length : 0;
|
3880 |
+
if (self.maximumSelectionLength > 0 &&
|
3881 |
+
count >= self.maximumSelectionLength) {
|
3882 |
+
self.trigger('results:message', {
|
3883 |
+
message: 'maximumSelected',
|
3884 |
+
args: {
|
3885 |
+
maximum: self.maximumSelectionLength
|
3886 |
+
}
|
3887 |
+
});
|
3888 |
+
return;
|
3889 |
+
}
|
3890 |
+
decorated.call(self, params, callback);
|
3891 |
+
});
|
3892 |
+
};
|
3893 |
+
|
3894 |
+
return MaximumSelectionLength;
|
3895 |
+
});
|
3896 |
+
|
3897 |
+
S2.define('select2/dropdown',[
|
3898 |
+
'jquery',
|
3899 |
+
'./utils'
|
3900 |
+
], function ($, Utils) {
|
3901 |
+
function Dropdown ($element, options) {
|
3902 |
+
this.$element = $element;
|
3903 |
+
this.options = options;
|
3904 |
+
|
3905 |
+
Dropdown.__super__.constructor.call(this);
|
3906 |
+
}
|
3907 |
+
|
3908 |
+
Utils.Extend(Dropdown, Utils.Observable);
|
3909 |
+
|
3910 |
+
Dropdown.prototype.render = function () {
|
3911 |
+
var $dropdown = $(
|
3912 |
+
'<span class="select2-dropdown">' +
|
3913 |
+
'<span class="select2-results"></span>' +
|
3914 |
+
'</span>'
|
3915 |
+
);
|
3916 |
+
|
3917 |
+
$dropdown.attr('dir', this.options.get('dir'));
|
3918 |
+
|
3919 |
+
this.$dropdown = $dropdown;
|
3920 |
+
|
3921 |
+
return $dropdown;
|
3922 |
+
};
|
3923 |
+
|
3924 |
+
Dropdown.prototype.bind = function () {
|
3925 |
+
// Should be implemented in subclasses
|
3926 |
+
};
|
3927 |
+
|
3928 |
+
Dropdown.prototype.position = function ($dropdown, $container) {
|
3929 |
+
// Should be implmented in subclasses
|
3930 |
+
};
|
3931 |
+
|
3932 |
+
Dropdown.prototype.destroy = function () {
|
3933 |
+
// Remove the dropdown from the DOM
|
3934 |
+
this.$dropdown.remove();
|
3935 |
+
};
|
3936 |
+
|
3937 |
+
return Dropdown;
|
3938 |
+
});
|
3939 |
+
|
3940 |
+
S2.define('select2/dropdown/search',[
|
3941 |
+
'jquery',
|
3942 |
+
'../utils'
|
3943 |
+
], function ($, Utils) {
|
3944 |
+
function Search () { }
|
3945 |
+
|
3946 |
+
Search.prototype.render = function (decorated) {
|
3947 |
+
var $rendered = decorated.call(this);
|
3948 |
+
|
3949 |
+
var $search = $(
|
3950 |
+
'<span class="select2-search select2-search--dropdown">' +
|
3951 |
+
'<input class="select2-search__field" type="text" tabindex="-1"' +
|
3952 |
+
' autocomplete="off" autocorrect="off" autocapitalize="off"' +
|
3953 |
+
' spellcheck="false" role="combobox" aria-autocomplete="list" aria-expanded="true" />' +
|
3954 |
+
'</span>'
|
3955 |
+
);
|
3956 |
+
|
3957 |
+
this.$searchContainer = $search;
|
3958 |
+
this.$search = $search.find('input');
|
3959 |
+
|
3960 |
+
$rendered.prepend($search);
|
3961 |
+
|
3962 |
+
return $rendered;
|
3963 |
+
};
|
3964 |
+
|
3965 |
+
Search.prototype.bind = function (decorated, container, $container) {
|
3966 |
+
var self = this;
|
3967 |
+
var resultsId = container.id + '-results';
|
3968 |
+
|
3969 |
+
decorated.call(this, container, $container);
|
3970 |
+
|
3971 |
+
this.$search.on('keydown', function (evt) {
|
3972 |
+
self.trigger('keypress', evt);
|
3973 |
+
|
3974 |
+
self._keyUpPrevented = evt.isDefaultPrevented();
|
3975 |
+
});
|
3976 |
+
|
3977 |
+
// Workaround for browsers which do not support the `input` event
|
3978 |
+
// This will prevent double-triggering of events for browsers which support
|
3979 |
+
// both the `keyup` and `input` events.
|
3980 |
+
this.$search.on('input', function (evt) {
|
3981 |
+
// Unbind the duplicated `keyup` event
|
3982 |
+
$(this).off('keyup');
|
3983 |
+
});
|
3984 |
+
|
3985 |
+
this.$search.on('keyup input', function (evt) {
|
3986 |
+
self.handleSearch(evt);
|
3987 |
+
});
|
3988 |
+
|
3989 |
+
container.on('open', function () {
|
3990 |
+
self.$search.attr('tabindex', 0);
|
3991 |
+
self.$search.attr('aria-owns', resultsId);
|
3992 |
+
self.$search.focus();
|
3993 |
+
|
3994 |
+
window.setTimeout(function () {
|
3995 |
+
self.$search.focus();
|
3996 |
+
}, 0);
|
3997 |
+
});
|
3998 |
+
|
3999 |
+
container.on('close', function () {
|
4000 |
+
self.$search.attr('tabindex', -1);
|
4001 |
+
self.$search.removeAttr('aria-activedescendant');
|
4002 |
+
self.$search.removeAttr('aria-owns');
|
4003 |
+
self.$search.val('');
|
4004 |
+
});
|
4005 |
+
|
4006 |
+
container.on('focus', function () {
|
4007 |
+
if (container.isOpen()) {
|
4008 |
+
self.$search.focus();
|
4009 |
+
}
|
4010 |
+
});
|
4011 |
+
|
4012 |
+
container.on('results:all', function (params) {
|
4013 |
+
if (params.query.term == null || params.query.term === '') {
|
4014 |
+
var showSearch = self.showSearch(params);
|
4015 |
+
|
4016 |
+
if (showSearch) {
|
4017 |
+
self.$searchContainer.removeClass('select2-search--hide');
|
4018 |
+
} else {
|
4019 |
+
self.$searchContainer.addClass('select2-search--hide');
|
4020 |
+
}
|
4021 |
+
}
|
4022 |
+
});
|
4023 |
+
|
4024 |
+
container.on('results:focus', function (params) {
|
4025 |
+
self.$search.attr('aria-activedescendant', params.data._resultId);
|
4026 |
+
});
|
4027 |
+
};
|
4028 |
+
|
4029 |
+
Search.prototype.handleSearch = function (evt) {
|
4030 |
+
if (!this._keyUpPrevented) {
|
4031 |
+
var input = this.$search.val();
|
4032 |
+
|
4033 |
+
this.trigger('query', {
|
4034 |
+
term: input
|
4035 |
+
});
|
4036 |
+
}
|
4037 |
+
|
4038 |
+
this._keyUpPrevented = false;
|
4039 |
+
};
|
4040 |
+
|
4041 |
+
Search.prototype.showSearch = function (_, params) {
|
4042 |
+
return true;
|
4043 |
+
};
|
4044 |
+
|
4045 |
+
return Search;
|
4046 |
+
});
|
4047 |
+
|
4048 |
+
S2.define('select2/dropdown/hidePlaceholder',[
|
4049 |
+
|
4050 |
+
], function () {
|
4051 |
+
function HidePlaceholder (decorated, $element, options, dataAdapter) {
|
4052 |
+
this.placeholder = this.normalizePlaceholder(options.get('placeholder'));
|
4053 |
+
|
4054 |
+
decorated.call(this, $element, options, dataAdapter);
|
4055 |
+
}
|
4056 |
+
|
4057 |
+
HidePlaceholder.prototype.append = function (decorated, data) {
|
4058 |
+
data.results = this.removePlaceholder(data.results);
|
4059 |
+
|
4060 |
+
decorated.call(this, data);
|
4061 |
+
};
|
4062 |
+
|
4063 |
+
HidePlaceholder.prototype.normalizePlaceholder = function (_, placeholder) {
|
4064 |
+
if (typeof placeholder === 'string') {
|
4065 |
+
placeholder = {
|
4066 |
+
id: '',
|
4067 |
+
text: placeholder
|
4068 |
+
};
|
4069 |
+
}
|
4070 |
+
|
4071 |
+
return placeholder;
|
4072 |
+
};
|
4073 |
+
|
4074 |
+
HidePlaceholder.prototype.removePlaceholder = function (_, data) {
|
4075 |
+
var modifiedData = data.slice(0);
|
4076 |
+
|
4077 |
+
for (var d = data.length - 1; d >= 0; d--) {
|
4078 |
+
var item = data[d];
|
4079 |
+
|
4080 |
+
if (this.placeholder.id === item.id) {
|
4081 |
+
modifiedData.splice(d, 1);
|
4082 |
+
}
|
4083 |
+
}
|
4084 |
+
|
4085 |
+
return modifiedData;
|
4086 |
+
};
|
4087 |
+
|
4088 |
+
return HidePlaceholder;
|
4089 |
+
});
|
4090 |
+
|
4091 |
+
S2.define('select2/dropdown/infiniteScroll',[
|
4092 |
+
'jquery'
|
4093 |
+
], function ($) {
|
4094 |
+
function InfiniteScroll (decorated, $element, options, dataAdapter) {
|
4095 |
+
this.lastParams = {};
|
4096 |
+
|
4097 |
+
decorated.call(this, $element, options, dataAdapter);
|
4098 |
+
|
4099 |
+
this.$loadingMore = this.createLoadingMore();
|
4100 |
+
this.loading = false;
|
4101 |
+
}
|
4102 |
+
|
4103 |
+
InfiniteScroll.prototype.append = function (decorated, data) {
|
4104 |
+
this.$loadingMore.remove();
|
4105 |
+
this.loading = false;
|
4106 |
+
|
4107 |
+
decorated.call(this, data);
|
4108 |
+
|
4109 |
+
if (this.showLoadingMore(data)) {
|
4110 |
+
this.$results.append(this.$loadingMore);
|
4111 |
+
}
|
4112 |
+
};
|
4113 |
+
|
4114 |
+
InfiniteScroll.prototype.bind = function (decorated, container, $container) {
|
4115 |
+
var self = this;
|
4116 |
+
|
4117 |
+
decorated.call(this, container, $container);
|
4118 |
+
|
4119 |
+
container.on('query', function (params) {
|
4120 |
+
self.lastParams = params;
|
4121 |
+
self.loading = true;
|
4122 |
+
});
|
4123 |
+
|
4124 |
+
container.on('query:append', function (params) {
|
4125 |
+
self.lastParams = params;
|
4126 |
+
self.loading = true;
|
4127 |
+
});
|
4128 |
+
|
4129 |
+
this.$results.on('scroll', function () {
|
4130 |
+
var isLoadMoreVisible = $.contains(
|
4131 |
+
document.documentElement,
|
4132 |
+
self.$loadingMore[0]
|
4133 |
+
);
|
4134 |
+
|
4135 |
+
if (self.loading || !isLoadMoreVisible) {
|
4136 |
+
return;
|
4137 |
+
}
|
4138 |
+
|
4139 |
+
var currentOffset = self.$results.offset().top +
|
4140 |
+
self.$results.outerHeight(false);
|
4141 |
+
var loadingMoreOffset = self.$loadingMore.offset().top +
|
4142 |
+
self.$loadingMore.outerHeight(false);
|
4143 |
+
|
4144 |
+
if (currentOffset + 50 >= loadingMoreOffset) {
|
4145 |
+
self.loadMore();
|
4146 |
+
}
|
4147 |
+
});
|
4148 |
+
};
|
4149 |
+
|
4150 |
+
InfiniteScroll.prototype.loadMore = function () {
|
4151 |
+
this.loading = true;
|
4152 |
+
|
4153 |
+
var params = $.extend({}, {page: 1}, this.lastParams);
|
4154 |
+
|
4155 |
+
params.page++;
|
4156 |
+
|
4157 |
+
this.trigger('query:append', params);
|
4158 |
+
};
|
4159 |
+
|
4160 |
+
InfiniteScroll.prototype.showLoadingMore = function (_, data) {
|
4161 |
+
return data.pagination && data.pagination.more;
|
4162 |
+
};
|
4163 |
+
|
4164 |
+
InfiniteScroll.prototype.createLoadingMore = function () {
|
4165 |
+
var $option = $(
|
4166 |
+
'<li ' +
|
4167 |
+
'class="select2-results__option select2-results__option--load-more"' +
|
4168 |
+
'role="option" aria-disabled="true"></li>'
|
4169 |
+
);
|
4170 |
+
|
4171 |
+
var message = this.options.get('translations').get('loadingMore');
|
4172 |
+
|
4173 |
+
$option.html(message(this.lastParams));
|
4174 |
+
|
4175 |
+
return $option;
|
4176 |
+
};
|
4177 |
+
|
4178 |
+
return InfiniteScroll;
|
4179 |
+
});
|
4180 |
+
|
4181 |
+
S2.define('select2/dropdown/attachBody',[
|
4182 |
+
'jquery',
|
4183 |
+
'../utils'
|
4184 |
+
], function ($, Utils) {
|
4185 |
+
function AttachBody (decorated, $element, options) {
|
4186 |
+
this.$dropdownParent = options.get('dropdownParent') || $(document.body);
|
4187 |
+
|
4188 |
+
decorated.call(this, $element, options);
|
4189 |
+
}
|
4190 |
+
|
4191 |
+
AttachBody.prototype.bind = function (decorated, container, $container) {
|
4192 |
+
var self = this;
|
4193 |
+
|
4194 |
+
var setupResultsEvents = false;
|
4195 |
+
|
4196 |
+
decorated.call(this, container, $container);
|
4197 |
+
|
4198 |
+
container.on('open', function () {
|
4199 |
+
self._showDropdown();
|
4200 |
+
self._attachPositioningHandler(container);
|
4201 |
+
|
4202 |
+
if (!setupResultsEvents) {
|
4203 |
+
setupResultsEvents = true;
|
4204 |
+
|
4205 |
+
container.on('results:all', function () {
|
4206 |
+
self._positionDropdown();
|
4207 |
+
self._resizeDropdown();
|
4208 |
+
});
|
4209 |
+
|
4210 |
+
container.on('results:append', function () {
|
4211 |
+
self._positionDropdown();
|
4212 |
+
self._resizeDropdown();
|
4213 |
+
});
|
4214 |
+
}
|
4215 |
+
});
|
4216 |
+
|
4217 |
+
container.on('close', function () {
|
4218 |
+
self._hideDropdown();
|
4219 |
+
self._detachPositioningHandler(container);
|
4220 |
+
});
|
4221 |
+
|
4222 |
+
this.$dropdownContainer.on('mousedown', function (evt) {
|
4223 |
+
evt.stopPropagation();
|
4224 |
+
});
|
4225 |
+
};
|
4226 |
+
|
4227 |
+
AttachBody.prototype.destroy = function (decorated) {
|
4228 |
+
decorated.call(this);
|
4229 |
+
|
4230 |
+
this.$dropdownContainer.remove();
|
4231 |
+
};
|
4232 |
+
|
4233 |
+
AttachBody.prototype.position = function (decorated, $dropdown, $container) {
|
4234 |
+
// Clone all of the container classes
|
4235 |
+
$dropdown.attr('class', $container.attr('class'));
|
4236 |
+
|
4237 |
+
$dropdown.removeClass('select2');
|
4238 |
+
$dropdown.addClass('select2-container--open');
|
4239 |
+
|
4240 |
+
$dropdown.css({
|
4241 |
+
position: 'absolute',
|
4242 |
+
top: -999999
|
4243 |
+
});
|
4244 |
+
|
4245 |
+
this.$container = $container;
|
4246 |
+
};
|
4247 |
+
|
4248 |
+
AttachBody.prototype.render = function (decorated) {
|
4249 |
+
var $container = $('<span></span>');
|
4250 |
+
|
4251 |
+
var $dropdown = decorated.call(this);
|
4252 |
+
$container.append($dropdown);
|
4253 |
+
|
4254 |
+
this.$dropdownContainer = $container;
|
4255 |
+
|
4256 |
+
return $container;
|
4257 |
+
};
|
4258 |
+
|
4259 |
+
AttachBody.prototype._hideDropdown = function (decorated) {
|
4260 |
+
this.$dropdownContainer.detach();
|
4261 |
+
};
|
4262 |
+
|
4263 |
+
AttachBody.prototype._attachPositioningHandler =
|
4264 |
+
function (decorated, container) {
|
4265 |
+
var self = this;
|
4266 |
+
|
4267 |
+
var scrollEvent = 'scroll.select2.' + container.id;
|
4268 |
+
var resizeEvent = 'resize.select2.' + container.id;
|
4269 |
+
var orientationEvent = 'orientationchange.select2.' + container.id;
|
4270 |
+
|
4271 |
+
var $watchers = this.$container.parents().filter(Utils.hasScroll);
|
4272 |
+
$watchers.each(function () {
|
4273 |
+
$(this).data('select2-scroll-position', {
|
4274 |
+
x: $(this).scrollLeft(),
|
4275 |
+
y: $(this).scrollTop()
|
4276 |
+
});
|
4277 |
+
});
|
4278 |
+
|
4279 |
+
$watchers.on(scrollEvent, function (ev) {
|
4280 |
+
var position = $(this).data('select2-scroll-position');
|
4281 |
+
$(this).scrollTop(position.y);
|
4282 |
+
});
|
4283 |
+
|
4284 |
+
$(window).on(scrollEvent + ' ' + resizeEvent + ' ' + orientationEvent,
|
4285 |
+
function (e) {
|
4286 |
+
self._positionDropdown();
|
4287 |
+
self._resizeDropdown();
|
4288 |
+
});
|
4289 |
+
};
|
4290 |
+
|
4291 |
+
AttachBody.prototype._detachPositioningHandler =
|
4292 |
+
function (decorated, container) {
|
4293 |
+
var scrollEvent = 'scroll.select2.' + container.id;
|
4294 |
+
var resizeEvent = 'resize.select2.' + container.id;
|
4295 |
+
var orientationEvent = 'orientationchange.select2.' + container.id;
|
4296 |
+
|
4297 |
+
var $watchers = this.$container.parents().filter(Utils.hasScroll);
|
4298 |
+
$watchers.off(scrollEvent);
|
4299 |
+
|
4300 |
+
$(window).off(scrollEvent + ' ' + resizeEvent + ' ' + orientationEvent);
|
4301 |
+
};
|
4302 |
+
|
4303 |
+
AttachBody.prototype._positionDropdown = function () {
|
4304 |
+
var $window = $(window);
|
4305 |
+
|
4306 |
+
var isCurrentlyAbove = this.$dropdown.hasClass('select2-dropdown--above');
|
4307 |
+
var isCurrentlyBelow = this.$dropdown.hasClass('select2-dropdown--below');
|
4308 |
+
|
4309 |
+
var newDirection = null;
|
4310 |
+
|
4311 |
+
var offset = this.$container.offset();
|
4312 |
+
|
4313 |
+
offset.bottom = offset.top + this.$container.outerHeight(false);
|
4314 |
+
|
4315 |
+
var container = {
|
4316 |
+
height: this.$container.outerHeight(false)
|
4317 |
+
};
|
4318 |
+
|
4319 |
+
container.top = offset.top;
|
4320 |
+
container.bottom = offset.top + container.height;
|
4321 |
+
|
4322 |
+
var dropdown = {
|
4323 |
+
height: this.$dropdown.outerHeight(false)
|
4324 |
+
};
|
4325 |
+
|
4326 |
+
var viewport = {
|
4327 |
+
top: $window.scrollTop(),
|
4328 |
+
bottom: $window.scrollTop() + $window.height()
|
4329 |
+
};
|
4330 |
+
|
4331 |
+
var enoughRoomAbove = viewport.top < (offset.top - dropdown.height);
|
4332 |
+
var enoughRoomBelow = viewport.bottom > (offset.bottom + dropdown.height);
|
4333 |
+
|
4334 |
+
var css = {
|
4335 |
+
left: offset.left,
|
4336 |
+
top: container.bottom
|
4337 |
+
};
|
4338 |
+
|
4339 |
+
// Determine what the parent element is to use for calciulating the offset
|
4340 |
+
var $offsetParent = this.$dropdownParent;
|
4341 |
+
|
4342 |
+
// For statically positoned elements, we need to get the element
|
4343 |
+
// that is determining the offset
|
4344 |
+
if ($offsetParent.css('position') === 'static') {
|
4345 |
+
$offsetParent = $offsetParent.offsetParent();
|
4346 |
+
}
|
4347 |
+
|
4348 |
+
var parentOffset = $offsetParent.offset();
|
4349 |
+
|
4350 |
+
css.top -= parentOffset.top;
|
4351 |
+
css.left -= parentOffset.left;
|
4352 |
+
|
4353 |
+
if (!isCurrentlyAbove && !isCurrentlyBelow) {
|
4354 |
+
newDirection = 'below';
|
4355 |
+
}
|
4356 |
+
|
4357 |
+
if (!enoughRoomBelow && enoughRoomAbove && !isCurrentlyAbove) {
|
4358 |
+
newDirection = 'above';
|
4359 |
+
} else if (!enoughRoomAbove && enoughRoomBelow && isCurrentlyAbove) {
|
4360 |
+
newDirection = 'below';
|
4361 |
+
}
|
4362 |
+
|
4363 |
+
if (newDirection == 'above' ||
|
4364 |
+
(isCurrentlyAbove && newDirection !== 'below')) {
|
4365 |
+
css.top = container.top - parentOffset.top - dropdown.height;
|
4366 |
+
}
|
4367 |
+
|
4368 |
+
if (newDirection != null) {
|
4369 |
+
this.$dropdown
|
4370 |
+
.removeClass('select2-dropdown--below select2-dropdown--above')
|
4371 |
+
.addClass('select2-dropdown--' + newDirection);
|
4372 |
+
this.$container
|
4373 |
+
.removeClass('select2-container--below select2-container--above')
|
4374 |
+
.addClass('select2-container--' + newDirection);
|
4375 |
+
}
|
4376 |
+
|
4377 |
+
this.$dropdownContainer.css(css);
|
4378 |
+
};
|
4379 |
+
|
4380 |
+
AttachBody.prototype._resizeDropdown = function () {
|
4381 |
+
var css = {
|
4382 |
+
width: this.$container.outerWidth(false) + 'px'
|
4383 |
+
};
|
4384 |
+
|
4385 |
+
if (this.options.get('dropdownAutoWidth')) {
|
4386 |
+
css.minWidth = css.width;
|
4387 |
+
css.position = 'relative';
|
4388 |
+
css.width = 'auto';
|
4389 |
+
}
|
4390 |
+
|
4391 |
+
this.$dropdown.css(css);
|
4392 |
+
};
|
4393 |
+
|
4394 |
+
AttachBody.prototype._showDropdown = function (decorated) {
|
4395 |
+
this.$dropdownContainer.appendTo(this.$dropdownParent);
|
4396 |
+
|
4397 |
+
this._positionDropdown();
|
4398 |
+
this._resizeDropdown();
|
4399 |
+
};
|
4400 |
+
|
4401 |
+
return AttachBody;
|
4402 |
+
});
|
4403 |
+
|
4404 |
+
S2.define('select2/dropdown/minimumResultsForSearch',[
|
4405 |
+
|
4406 |
+
], function () {
|
4407 |
+
function countResults (data) {
|
4408 |
+
var count = 0;
|
4409 |
+
|
4410 |
+
for (var d = 0; d < data.length; d++) {
|
4411 |
+
var item = data[d];
|
4412 |
+
|
4413 |
+
if (item.children) {
|
4414 |
+
count += countResults(item.children);
|
4415 |
+
} else {
|
4416 |
+
count++;
|
4417 |
+
}
|
4418 |
+
}
|
4419 |
+
|
4420 |
+
return count;
|
4421 |
+
}
|
4422 |
+
|
4423 |
+
function MinimumResultsForSearch (decorated, $element, options, dataAdapter) {
|
4424 |
+
this.minimumResultsForSearch = options.get('minimumResultsForSearch');
|
4425 |
+
|
4426 |
+
if (this.minimumResultsForSearch < 0) {
|
4427 |
+
this.minimumResultsForSearch = Infinity;
|
4428 |
+
}
|
4429 |
+
|
4430 |
+
decorated.call(this, $element, options, dataAdapter);
|
4431 |
+
}
|
4432 |
+
|
4433 |
+
MinimumResultsForSearch.prototype.showSearch = function (decorated, params) {
|
4434 |
+
if (countResults(params.data.results) < this.minimumResultsForSearch) {
|
4435 |
+
return false;
|
4436 |
+
}
|
4437 |
+
|
4438 |
+
return decorated.call(this, params);
|
4439 |
+
};
|
4440 |
+
|
4441 |
+
return MinimumResultsForSearch;
|
4442 |
+
});
|
4443 |
+
|
4444 |
+
S2.define('select2/dropdown/selectOnClose',[
|
4445 |
+
|
4446 |
+
], function () {
|
4447 |
+
function SelectOnClose () { }
|
4448 |
+
|
4449 |
+
SelectOnClose.prototype.bind = function (decorated, container, $container) {
|
4450 |
+
var self = this;
|
4451 |
+
|
4452 |
+
decorated.call(this, container, $container);
|
4453 |
+
|
4454 |
+
container.on('close', function (params) {
|
4455 |
+
self._handleSelectOnClose(params);
|
4456 |
+
});
|
4457 |
+
};
|
4458 |
+
|
4459 |
+
SelectOnClose.prototype._handleSelectOnClose = function (_, params) {
|
4460 |
+
if (params && params.originalSelect2Event != null) {
|
4461 |
+
var event = params.originalSelect2Event;
|
4462 |
+
|
4463 |
+
// Don't select an item if the close event was triggered from a select or
|
4464 |
+
// unselect event
|
4465 |
+
if (event._type === 'select' || event._type === 'unselect') {
|
4466 |
+
return;
|
4467 |
+
}
|
4468 |
+
}
|
4469 |
+
|
4470 |
+
var $highlightedResults = this.getHighlightedResults();
|
4471 |
+
|
4472 |
+
// Only select highlighted results
|
4473 |
+
if ($highlightedResults.length < 1) {
|
4474 |
+
return;
|
4475 |
+
}
|
4476 |
+
|
4477 |
+
var data = $highlightedResults.data('data');
|
4478 |
+
|
4479 |
+
// Don't re-select already selected resulte
|
4480 |
+
if (
|
4481 |
+
(data.element != null && data.element.selected) ||
|
4482 |
+
(data.element == null && data.selected)
|
4483 |
+
) {
|
4484 |
+
return;
|
4485 |
+
}
|
4486 |
+
|
4487 |
+
this.trigger('select', {
|
4488 |
+
data: data
|
4489 |
+
});
|
4490 |
+
};
|
4491 |
+
|
4492 |
+
return SelectOnClose;
|
4493 |
+
});
|
4494 |
+
|
4495 |
+
S2.define('select2/dropdown/closeOnSelect',[
|
4496 |
+
|
4497 |
+
], function () {
|
4498 |
+
function CloseOnSelect () { }
|
4499 |
+
|
4500 |
+
CloseOnSelect.prototype.bind = function (decorated, container, $container) {
|
4501 |
+
var self = this;
|
4502 |
+
|
4503 |
+
decorated.call(this, container, $container);
|
4504 |
+
|
4505 |
+
container.on('select', function (evt) {
|
4506 |
+
self._selectTriggered(evt);
|
4507 |
+
});
|
4508 |
+
|
4509 |
+
container.on('unselect', function (evt) {
|
4510 |
+
self._selectTriggered(evt);
|
4511 |
+
});
|
4512 |
+
};
|
4513 |
+
|
4514 |
+
CloseOnSelect.prototype._selectTriggered = function (_, evt) {
|
4515 |
+
var originalEvent = evt.originalEvent;
|
4516 |
+
|
4517 |
+
// Don't close if the control key is being held
|
4518 |
+
if (originalEvent && originalEvent.ctrlKey) {
|
4519 |
+
return;
|
4520 |
+
}
|
4521 |
+
|
4522 |
+
this.trigger('close', {
|
4523 |
+
originalEvent: originalEvent,
|
4524 |
+
originalSelect2Event: evt
|
4525 |
+
});
|
4526 |
+
};
|
4527 |
+
|
4528 |
+
return CloseOnSelect;
|
4529 |
+
});
|
4530 |
+
|
4531 |
+
S2.define('select2/i18n/en',[],function () {
|
4532 |
+
// English
|
4533 |
+
return {
|
4534 |
+
errorLoading: function () {
|
4535 |
+
return 'The results could not be loaded.';
|
4536 |
+
},
|
4537 |
+
inputTooLong: function (args) {
|
4538 |
+
var overChars = args.input.length - args.maximum;
|
4539 |
+
|
4540 |
+
var message = 'Please delete ' + overChars + ' character';
|
4541 |
+
|
4542 |
+
if (overChars != 1) {
|
4543 |
+
message += 's';
|
4544 |
+
}
|
4545 |
+
|
4546 |
+
return message;
|
4547 |
+
},
|
4548 |
+
inputTooShort: function (args) {
|
4549 |
+
var remainingChars = args.minimum - args.input.length;
|
4550 |
+
|
4551 |
+
var message = 'Please enter ' + remainingChars + ' or more characters';
|
4552 |
+
|
4553 |
+
return message;
|
4554 |
+
},
|
4555 |
+
loadingMore: function () {
|
4556 |
+
return 'Loading more results…';
|
4557 |
+
},
|
4558 |
+
maximumSelected: function (args) {
|
4559 |
+
var message = 'You can only select ' + args.maximum + ' item';
|
4560 |
+
|
4561 |
+
if (args.maximum != 1) {
|
4562 |
+
message += 's';
|
4563 |
+
}
|
4564 |
+
|
4565 |
+
return message;
|
4566 |
+
},
|
4567 |
+
noResults: function () {
|
4568 |
+
return 'No results found';
|
4569 |
+
},
|
4570 |
+
searching: function () {
|
4571 |
+
return 'Searching…';
|
4572 |
+
}
|
4573 |
+
};
|
4574 |
+
});
|
4575 |
+
|
4576 |
+
S2.define('select2/defaults',[
|
4577 |
+
'jquery',
|
4578 |
+
'require',
|
4579 |
+
|
4580 |
+
'./results',
|
4581 |
+
|
4582 |
+
'./selection/single',
|
4583 |
+
'./selection/multiple',
|
4584 |
+
'./selection/placeholder',
|
4585 |
+
'./selection/allowClear',
|
4586 |
+
'./selection/search',
|
4587 |
+
'./selection/eventRelay',
|
4588 |
+
|
4589 |
+
'./utils',
|
4590 |
+
'./translation',
|
4591 |
+
'./diacritics',
|
4592 |
+
|
4593 |
+
'./data/select',
|
4594 |
+
'./data/array',
|
4595 |
+
'./data/ajax',
|
4596 |
+
'./data/tags',
|
4597 |
+
'./data/tokenizer',
|
4598 |
+
'./data/minimumInputLength',
|
4599 |
+
'./data/maximumInputLength',
|
4600 |
+
'./data/maximumSelectionLength',
|
4601 |
+
|
4602 |
+
'./dropdown',
|
4603 |
+
'./dropdown/search',
|
4604 |
+
'./dropdown/hidePlaceholder',
|
4605 |
+
'./dropdown/infiniteScroll',
|
4606 |
+
'./dropdown/attachBody',
|
4607 |
+
'./dropdown/minimumResultsForSearch',
|
4608 |
+
'./dropdown/selectOnClose',
|
4609 |
+
'./dropdown/closeOnSelect',
|
4610 |
+
|
4611 |
+
'./i18n/en'
|
4612 |
+
], function ($, require,
|
4613 |
+
|
4614 |
+
ResultsList,
|
4615 |
+
|
4616 |
+
SingleSelection, MultipleSelection, Placeholder, AllowClear,
|
4617 |
+
SelectionSearch, EventRelay,
|
4618 |
+
|
4619 |
+
Utils, Translation, DIACRITICS,
|
4620 |
+
|
4621 |
+
SelectData, ArrayData, AjaxData, Tags, Tokenizer,
|
4622 |
+
MinimumInputLength, MaximumInputLength, MaximumSelectionLength,
|
4623 |
+
|
4624 |
+
Dropdown, DropdownSearch, HidePlaceholder, InfiniteScroll,
|
4625 |
+
AttachBody, MinimumResultsForSearch, SelectOnClose, CloseOnSelect,
|
4626 |
+
|
4627 |
+
EnglishTranslation) {
|
4628 |
+
function Defaults () {
|
4629 |
+
this.reset();
|
4630 |
+
}
|
4631 |
+
|
4632 |
+
Defaults.prototype.apply = function (options) {
|
4633 |
+
options = $.extend(true, {}, this.defaults, options);
|
4634 |
+
|
4635 |
+
if (options.dataAdapter == null) {
|
4636 |
+
if (options.ajax != null) {
|
4637 |
+
options.dataAdapter = AjaxData;
|
4638 |
+
} else if (options.data != null) {
|
4639 |
+
options.dataAdapter = ArrayData;
|
4640 |
+
} else {
|
4641 |
+
options.dataAdapter = SelectData;
|
4642 |
+
}
|
4643 |
+
|
4644 |
+
if (options.minimumInputLength > 0) {
|
4645 |
+
options.dataAdapter = Utils.Decorate(
|
4646 |
+
options.dataAdapter,
|
4647 |
+
MinimumInputLength
|
4648 |
+
);
|
4649 |
+
}
|
4650 |
+
|
4651 |
+
if (options.maximumInputLength > 0) {
|
4652 |
+
options.dataAdapter = Utils.Decorate(
|
4653 |
+
options.dataAdapter,
|
4654 |
+
MaximumInputLength
|
4655 |
+
);
|
4656 |
+
}
|
4657 |
+
|
4658 |
+
if (options.maximumSelectionLength > 0) {
|
4659 |
+
options.dataAdapter = Utils.Decorate(
|
4660 |
+
options.dataAdapter,
|
4661 |
+
MaximumSelectionLength
|
4662 |
+
);
|
4663 |
+
}
|
4664 |
+
|
4665 |
+
if (options.tags) {
|
4666 |
+
options.dataAdapter = Utils.Decorate(options.dataAdapter, Tags);
|
4667 |
+
}
|
4668 |
+
|
4669 |
+
if (options.tokenSeparators != null || options.tokenizer != null) {
|
4670 |
+
options.dataAdapter = Utils.Decorate(
|
4671 |
+
options.dataAdapter,
|
4672 |
+
Tokenizer
|
4673 |
+
);
|
4674 |
+
}
|
4675 |
+
|
4676 |
+
if (options.query != null) {
|
4677 |
+
var Query = require(options.amdBase + 'compat/query');
|
4678 |
+
|
4679 |
+
options.dataAdapter = Utils.Decorate(
|
4680 |
+
options.dataAdapter,
|
4681 |
+
Query
|
4682 |
+
);
|
4683 |
+
}
|
4684 |
+
|
4685 |
+
if (options.initSelection != null) {
|
4686 |
+
var InitSelection = require(options.amdBase + 'compat/initSelection');
|
4687 |
+
|
4688 |
+
options.dataAdapter = Utils.Decorate(
|
4689 |
+
options.dataAdapter,
|
4690 |
+
InitSelection
|
4691 |
+
);
|
4692 |
+
}
|
4693 |
+
}
|
4694 |
+
|
4695 |
+
if (options.resultsAdapter == null) {
|
4696 |
+
options.resultsAdapter = ResultsList;
|
4697 |
+
|
4698 |
+
if (options.ajax != null) {
|
4699 |
+
options.resultsAdapter = Utils.Decorate(
|
4700 |
+
options.resultsAdapter,
|
4701 |
+
InfiniteScroll
|
4702 |
+
);
|
4703 |
+
}
|
4704 |
+
|
4705 |
+
if (options.placeholder != null) {
|
4706 |
+
options.resultsAdapter = Utils.Decorate(
|
4707 |
+
options.resultsAdapter,
|
4708 |
+
HidePlaceholder
|
4709 |
+
);
|
4710 |
+
}
|
4711 |
+
|
4712 |
+
if (options.selectOnClose) {
|
4713 |
+
options.resultsAdapter = Utils.Decorate(
|
4714 |
+
options.resultsAdapter,
|
4715 |
+
SelectOnClose
|
4716 |
+
);
|
4717 |
+
}
|
4718 |
+
}
|
4719 |
+
|
4720 |
+
if (options.dropdownAdapter == null) {
|
4721 |
+
if (options.multiple) {
|
4722 |
+
options.dropdownAdapter = Dropdown;
|
4723 |
+
} else {
|
4724 |
+
var SearchableDropdown = Utils.Decorate(Dropdown, DropdownSearch);
|
4725 |
+
|
4726 |
+
options.dropdownAdapter = SearchableDropdown;
|
4727 |
+
}
|
4728 |
+
|
4729 |
+
if (options.minimumResultsForSearch !== 0) {
|
4730 |
+
options.dropdownAdapter = Utils.Decorate(
|
4731 |
+
options.dropdownAdapter,
|
4732 |
+
MinimumResultsForSearch
|
4733 |
+
);
|
4734 |
+
}
|
4735 |
+
|
4736 |
+
if (options.closeOnSelect) {
|
4737 |
+
options.dropdownAdapter = Utils.Decorate(
|
4738 |
+
options.dropdownAdapter,
|
4739 |
+
CloseOnSelect
|
4740 |
+
);
|
4741 |
+
}
|
4742 |
+
|
4743 |
+
if (
|
4744 |
+
options.dropdownCssClass != null ||
|
4745 |
+
options.dropdownCss != null ||
|
4746 |
+
options.adaptDropdownCssClass != null
|
4747 |
+
) {
|
4748 |
+
var DropdownCSS = require(options.amdBase + 'compat/dropdownCss');
|
4749 |
+
|
4750 |
+
options.dropdownAdapter = Utils.Decorate(
|
4751 |
+
options.dropdownAdapter,
|
4752 |
+
DropdownCSS
|
4753 |
+
);
|
4754 |
+
}
|
4755 |
+
|
4756 |
+
options.dropdownAdapter = Utils.Decorate(
|
4757 |
+
options.dropdownAdapter,
|
4758 |
+
AttachBody
|
4759 |
+
);
|
4760 |
+
}
|
4761 |
+
|
4762 |
+
if (options.selectionAdapter == null) {
|
4763 |
+
if (options.multiple) {
|
4764 |
+
options.selectionAdapter = MultipleSelection;
|
4765 |
+
} else {
|
4766 |
+
options.selectionAdapter = SingleSelection;
|
4767 |
+
}
|
4768 |
+
|
4769 |
+
// Add the placeholder mixin if a placeholder was specified
|
4770 |
+
if (options.placeholder != null) {
|
4771 |
+
options.selectionAdapter = Utils.Decorate(
|
4772 |
+
options.selectionAdapter,
|
4773 |
+
Placeholder
|
4774 |
+
);
|
4775 |
+
}
|
4776 |
+
|
4777 |
+
if (options.allowClear) {
|
4778 |
+
options.selectionAdapter = Utils.Decorate(
|
4779 |
+
options.selectionAdapter,
|
4780 |
+
AllowClear
|
4781 |
+
);
|
4782 |
+
}
|
4783 |
+
|
4784 |
+
if (options.multiple) {
|
4785 |
+
options.selectionAdapter = Utils.Decorate(
|
4786 |
+
options.selectionAdapter,
|
4787 |
+
SelectionSearch
|
4788 |
+
);
|
4789 |
+
}
|
4790 |
+
|
4791 |
+
if (
|
4792 |
+
options.containerCssClass != null ||
|
4793 |
+
options.containerCss != null ||
|
4794 |
+
options.adaptContainerCssClass != null
|
4795 |
+
) {
|
4796 |
+
var ContainerCSS = require(options.amdBase + 'compat/containerCss');
|
4797 |
+
|
4798 |
+
options.selectionAdapter = Utils.Decorate(
|
4799 |
+
options.selectionAdapter,
|
4800 |
+
ContainerCSS
|
4801 |
+
);
|
4802 |
+
}
|
4803 |
+
|
4804 |
+
options.selectionAdapter = Utils.Decorate(
|
4805 |
+
options.selectionAdapter,
|
4806 |
+
EventRelay
|
4807 |
+
);
|
4808 |
+
}
|
4809 |
+
|
4810 |
+
if (typeof options.language === 'string') {
|
4811 |
+
// Check if the language is specified with a region
|
4812 |
+
if (options.language.indexOf('-') > 0) {
|
4813 |
+
// Extract the region information if it is included
|
4814 |
+
var languageParts = options.language.split('-');
|
4815 |
+
var baseLanguage = languageParts[0];
|
4816 |
+
|
4817 |
+
options.language = [options.language, baseLanguage];
|
4818 |
+
} else {
|
4819 |
+
options.language = [options.language];
|
4820 |
+
}
|
4821 |
+
}
|
4822 |
+
|
4823 |
+
if ($.isArray(options.language)) {
|
4824 |
+
var languages = new Translation();
|
4825 |
+
options.language.push('en');
|
4826 |
+
|
4827 |
+
var languageNames = options.language;
|
4828 |
+
|
4829 |
+
for (var l = 0; l < languageNames.length; l++) {
|
4830 |
+
var name = languageNames[l];
|
4831 |
+
var language = {};
|
4832 |
+
|
4833 |
+
try {
|
4834 |
+
// Try to load it with the original name
|
4835 |
+
language = Translation.loadPath(name);
|
4836 |
+
} catch (e) {
|
4837 |
+
try {
|
4838 |
+
// If we couldn't load it, check if it wasn't the full path
|
4839 |
+
name = this.defaults.amdLanguageBase + name;
|
4840 |
+
language = Translation.loadPath(name);
|
4841 |
+
} catch (ex) {
|
4842 |
+
// The translation could not be loaded at all. Sometimes this is
|
4843 |
+
// because of a configuration problem, other times this can be
|
4844 |
+
// because of how Select2 helps load all possible translation files.
|
4845 |
+
if (options.debug && window.console && console.warn) {
|
4846 |
+
console.warn(
|
4847 |
+
'Select2: The language file for "' + name + '" could not be ' +
|
4848 |
+
'automatically loaded. A fallback will be used instead.'
|
4849 |
+
);
|
4850 |
+
}
|
4851 |
+
|
4852 |
+
continue;
|
4853 |
+
}
|
4854 |
+
}
|
4855 |
+
|
4856 |
+
languages.extend(language);
|
4857 |
+
}
|
4858 |
+
|
4859 |
+
options.translations = languages;
|
4860 |
+
} else {
|
4861 |
+
var baseTranslation = Translation.loadPath(
|
4862 |
+
this.defaults.amdLanguageBase + 'en'
|
4863 |
+
);
|
4864 |
+
var customTranslation = new Translation(options.language);
|
4865 |
+
|
4866 |
+
customTranslation.extend(baseTranslation);
|
4867 |
+
|
4868 |
+
options.translations = customTranslation;
|
4869 |
+
}
|
4870 |
+
|
4871 |
+
return options;
|
4872 |
+
};
|
4873 |
+
|
4874 |
+
Defaults.prototype.reset = function () {
|
4875 |
+
function stripDiacritics (text) {
|
4876 |
+
// Used 'uni range + named function' from http://jsperf.com/diacritics/18
|
4877 |
+
function match(a) {
|
4878 |
+
return DIACRITICS[a] || a;
|
4879 |
+
}
|
4880 |
+
|
4881 |
+
return text.replace(/[^\u0000-\u007E]/g, match);
|
4882 |
+
}
|
4883 |
+
|
4884 |
+
function matcher (params, data) {
|
4885 |
+
// Always return the object if there is nothing to compare
|
4886 |
+
if ($.trim(params.term) === '') {
|
4887 |
+
return data;
|
4888 |
+
}
|
4889 |
+
|
4890 |
+
// Do a recursive check for options with children
|
4891 |
+
if (data.children && data.children.length > 0) {
|
4892 |
+
// Clone the data object if there are children
|
4893 |
+
// This is required as we modify the object to remove any non-matches
|
4894 |
+
var match = $.extend(true, {}, data);
|
4895 |
+
|
4896 |
+
// Check each child of the option
|
4897 |
+
for (var c = data.children.length - 1; c >= 0; c--) {
|
4898 |
+
var child = data.children[c];
|
4899 |
+
|
4900 |
+
var matches = matcher(params, child);
|
4901 |
+
|
4902 |
+
// If there wasn't a match, remove the object in the array
|
4903 |
+
if (matches == null) {
|
4904 |
+
match.children.splice(c, 1);
|
4905 |
+
}
|
4906 |
+
}
|
4907 |
+
|
4908 |
+
// If any children matched, return the new object
|
4909 |
+
if (match.children.length > 0) {
|
4910 |
+
return match;
|
4911 |
+
}
|
4912 |
+
|
4913 |
+
// If there were no matching children, check just the plain object
|
4914 |
+
return matcher(params, match);
|
4915 |
+
}
|
4916 |
+
|
4917 |
+
var original = stripDiacritics(data.text).toUpperCase();
|
4918 |
+
var term = stripDiacritics(params.term).toUpperCase();
|
4919 |
+
|
4920 |
+
// Check if the text contains the term
|
4921 |
+
if (original.indexOf(term) > -1) {
|
4922 |
+
return data;
|
4923 |
+
}
|
4924 |
+
|
4925 |
+
// If it doesn't contain the term, don't return anything
|
4926 |
+
return null;
|
4927 |
+
}
|
4928 |
+
|
4929 |
+
this.defaults = {
|
4930 |
+
amdBase: './',
|
4931 |
+
amdLanguageBase: './i18n/',
|
4932 |
+
closeOnSelect: true,
|
4933 |
+
debug: false,
|
4934 |
+
dropdownAutoWidth: false,
|
4935 |
+
escapeMarkup: Utils.escapeMarkup,
|
4936 |
+
language: EnglishTranslation,
|
4937 |
+
matcher: matcher,
|
4938 |
+
minimumInputLength: 0,
|
4939 |
+
maximumInputLength: 0,
|
4940 |
+
maximumSelectionLength: 0,
|
4941 |
+
minimumResultsForSearch: 0,
|
4942 |
+
selectOnClose: false,
|
4943 |
+
sorter: function (data) {
|
4944 |
+
return data;
|
4945 |
+
},
|
4946 |
+
templateResult: function (result) {
|
4947 |
+
return result.text;
|
4948 |
+
},
|
4949 |
+
templateSelection: function (selection) {
|
4950 |
+
return selection.text;
|
4951 |
+
},
|
4952 |
+
theme: 'default',
|
4953 |
+
width: 'resolve'
|
4954 |
+
};
|
4955 |
+
};
|
4956 |
+
|
4957 |
+
Defaults.prototype.set = function (key, value) {
|
4958 |
+
var camelKey = $.camelCase(key);
|
4959 |
+
|
4960 |
+
var data = {};
|
4961 |
+
data[camelKey] = value;
|
4962 |
+
|
4963 |
+
var convertedData = Utils._convertData(data);
|
4964 |
+
|
4965 |
+
$.extend(this.defaults, convertedData);
|
4966 |
+
};
|
4967 |
+
|
4968 |
+
var defaults = new Defaults();
|
4969 |
+
|
4970 |
+
return defaults;
|
4971 |
+
});
|
4972 |
+
|
4973 |
+
S2.define('select2/options',[
|
4974 |
+
'require',
|
4975 |
+
'jquery',
|
4976 |
+
'./defaults',
|
4977 |
+
'./utils'
|
4978 |
+
], function (require, $, Defaults, Utils) {
|
4979 |
+
function Options (options, $element) {
|
4980 |
+
this.options = options;
|
4981 |
+
|
4982 |
+
if ($element != null) {
|
4983 |
+
this.fromElement($element);
|
4984 |
+
}
|
4985 |
+
|
4986 |
+
this.options = Defaults.apply(this.options);
|
4987 |
+
|
4988 |
+
if ($element && $element.is('input')) {
|
4989 |
+
var InputCompat = require(this.get('amdBase') + 'compat/inputData');
|
4990 |
+
|
4991 |
+
this.options.dataAdapter = Utils.Decorate(
|
4992 |
+
this.options.dataAdapter,
|
4993 |
+
InputCompat
|
4994 |
+
);
|
4995 |
+
}
|
4996 |
+
}
|
4997 |
+
|
4998 |
+
Options.prototype.fromElement = function ($e) {
|
4999 |
+
var excludedData = ['select2'];
|
5000 |
+
|
5001 |
+
if (this.options.multiple == null) {
|
5002 |
+
this.options.multiple = $e.prop('multiple');
|
5003 |
+
}
|
5004 |
+
|
5005 |
+
if (this.options.disabled == null) {
|
5006 |
+
this.options.disabled = $e.prop('disabled');
|
5007 |
+
}
|
5008 |
+
|
5009 |
+
if (this.options.language == null) {
|
5010 |
+
if ($e.prop('lang')) {
|
5011 |
+
this.options.language = $e.prop('lang').toLowerCase();
|
5012 |
+
} else if ($e.closest('[lang]').prop('lang')) {
|
5013 |
+
this.options.language = $e.closest('[lang]').prop('lang');
|
5014 |
+
}
|
5015 |
+
}
|
5016 |
+
|
5017 |
+
if (this.options.dir == null) {
|
5018 |
+
if ($e.prop('dir')) {
|
5019 |
+
this.options.dir = $e.prop('dir');
|
5020 |
+
} else if ($e.closest('[dir]').prop('dir')) {
|
5021 |
+
this.options.dir = $e.closest('[dir]').prop('dir');
|
5022 |
+
} else {
|
5023 |
+
this.options.dir = 'ltr';
|
5024 |
+
}
|
5025 |
+
}
|
5026 |
+
|
5027 |
+
$e.prop('disabled', this.options.disabled);
|
5028 |
+
$e.prop('multiple', this.options.multiple);
|
5029 |
+
|
5030 |
+
if ($e.data('select2Tags')) {
|
5031 |
+
if (this.options.debug && window.console && console.warn) {
|
5032 |
+
console.warn(
|
5033 |
+
'Select2: The `data-select2-tags` attribute has been changed to ' +
|
5034 |
+
'use the `data-data` and `data-tags="true"` attributes and will be ' +
|
5035 |
+
'removed in future versions of Select2.'
|
5036 |
+
);
|
5037 |
+
}
|
5038 |
+
|
5039 |
+
$e.data('data', $e.data('select2Tags'));
|
5040 |
+
$e.data('tags', true);
|
5041 |
+
}
|
5042 |
+
|
5043 |
+
if ($e.data('ajaxUrl')) {
|
5044 |
+
if (this.options.debug && window.console && console.warn) {
|
5045 |
+
console.warn(
|
5046 |
+
'Select2: The `data-ajax-url` attribute has been changed to ' +
|
5047 |
+
'`data-ajax--url` and support for the old attribute will be removed' +
|
5048 |
+
' in future versions of Select2.'
|
5049 |
+
);
|
5050 |
+
}
|
5051 |
+
|
5052 |
+
$e.attr('ajax--url', $e.data('ajaxUrl'));
|
5053 |
+
$e.data('ajax--url', $e.data('ajaxUrl'));
|
5054 |
+
}
|
5055 |
+
|
5056 |
+
var dataset = {};
|
5057 |
+
|
5058 |
+
// Prefer the element's `dataset` attribute if it exists
|
5059 |
+
// jQuery 1.x does not correctly handle data attributes with multiple dashes
|
5060 |
+
if ($.fn.jquery && $.fn.jquery.substr(0, 2) == '1.' && $e[0].dataset) {
|
5061 |
+
dataset = $.extend(true, {}, $e[0].dataset, $e.data());
|
5062 |
+
} else {
|
5063 |
+
dataset = $e.data();
|
5064 |
+
}
|
5065 |
+
|
5066 |
+
var data = $.extend(true, {}, dataset);
|
5067 |
+
|
5068 |
+
data = Utils._convertData(data);
|
5069 |
+
|
5070 |
+
for (var key in data) {
|
5071 |
+
if ($.inArray(key, excludedData) > -1) {
|
5072 |
+
continue;
|
5073 |
+
}
|
5074 |
+
|
5075 |
+
if ($.isPlainObject(this.options[key])) {
|
5076 |
+
$.extend(this.options[key], data[key]);
|
5077 |
+
} else {
|
5078 |
+
this.options[key] = data[key];
|
5079 |
+
}
|
5080 |
+
}
|
5081 |
+
|
5082 |
+
return this;
|
5083 |
+
};
|
5084 |
+
|
5085 |
+
Options.prototype.get = function (key) {
|
5086 |
+
return this.options[key];
|
5087 |
+
};
|
5088 |
+
|
5089 |
+
Options.prototype.set = function (key, val) {
|
5090 |
+
this.options[key] = val;
|
5091 |
+
};
|
5092 |
+
|
5093 |
+
return Options;
|
5094 |
+
});
|
5095 |
+
|
5096 |
+
S2.define('select2/core',[
|
5097 |
+
'jquery',
|
5098 |
+
'./options',
|
5099 |
+
'./utils',
|
5100 |
+
'./keys'
|
5101 |
+
], function ($, Options, Utils, KEYS) {
|
5102 |
+
var Select2 = function ($element, options) {
|
5103 |
+
if ($element.data('select2') != null) {
|
5104 |
+
$element.data('select2').destroy();
|
5105 |
+
}
|
5106 |
+
|
5107 |
+
this.$element = $element;
|
5108 |
+
|
5109 |
+
this.id = this._generateId($element);
|
5110 |
+
|
5111 |
+
options = options || {};
|
5112 |
+
|
5113 |
+
this.options = new Options(options, $element);
|
5114 |
+
|
5115 |
+
Select2.__super__.constructor.call(this);
|
5116 |
+
|
5117 |
+
// Set up the tabindex
|
5118 |
+
|
5119 |
+
var tabindex = $element.attr('tabindex') || 0;
|
5120 |
+
$element.data('old-tabindex', tabindex);
|
5121 |
+
$element.attr('tabindex', '-1');
|
5122 |
+
|
5123 |
+
// Set up containers and adapters
|
5124 |
+
|
5125 |
+
var DataAdapter = this.options.get('dataAdapter');
|
5126 |
+
this.dataAdapter = new DataAdapter($element, this.options);
|
5127 |
+
|
5128 |
+
var $container = this.render();
|
5129 |
+
|
5130 |
+
this._placeContainer($container);
|
5131 |
+
|
5132 |
+
var SelectionAdapter = this.options.get('selectionAdapter');
|
5133 |
+
this.selection = new SelectionAdapter($element, this.options);
|
5134 |
+
this.$selection = this.selection.render();
|
5135 |
+
|
5136 |
+
this.selection.position(this.$selection, $container);
|
5137 |
+
|
5138 |
+
var DropdownAdapter = this.options.get('dropdownAdapter');
|
5139 |
+
this.dropdown = new DropdownAdapter($element, this.options);
|
5140 |
+
this.$dropdown = this.dropdown.render();
|
5141 |
+
|
5142 |
+
this.dropdown.position(this.$dropdown, $container);
|
5143 |
+
|
5144 |
+
var ResultsAdapter = this.options.get('resultsAdapter');
|
5145 |
+
this.results = new ResultsAdapter($element, this.options, this.dataAdapter);
|
5146 |
+
this.$results = this.results.render();
|
5147 |
+
|
5148 |
+
this.results.position(this.$results, this.$dropdown);
|
5149 |
+
|
5150 |
+
// Bind events
|
5151 |
+
|
5152 |
+
var self = this;
|
5153 |
+
|
5154 |
+
// Bind the container to all of the adapters
|
5155 |
+
this._bindAdapters();
|
5156 |
+
|
5157 |
+
// Register any DOM event handlers
|
5158 |
+
this._registerDomEvents();
|
5159 |
+
|
5160 |
+
// Register any internal event handlers
|
5161 |
+
this._registerDataEvents();
|
5162 |
+
this._registerSelectionEvents();
|
5163 |
+
this._registerDropdownEvents();
|
5164 |
+
this._registerResultsEvents();
|
5165 |
+
this._registerEvents();
|
5166 |
+
|
5167 |
+
// Set the initial state
|
5168 |
+
this.dataAdapter.current(function (initialData) {
|
5169 |
+
self.trigger('selection:update', {
|
5170 |
+
data: initialData
|
5171 |
+
});
|
5172 |
+
});
|
5173 |
+
|
5174 |
+
// Hide the original select
|
5175 |
+
$element.addClass('select2-hidden-accessible');
|
5176 |
+
$element.attr('aria-hidden', 'true');
|
5177 |
+
|
5178 |
+
// Synchronize any monitored attributes
|
5179 |
+
this._syncAttributes();
|
5180 |
+
|
5181 |
+
$element.data('select2', this);
|
5182 |
+
};
|
5183 |
+
|
5184 |
+
Utils.Extend(Select2, Utils.Observable);
|
5185 |
+
|
5186 |
+
Select2.prototype._generateId = function ($element) {
|
5187 |
+
var id = '';
|
5188 |
+
|
5189 |
+
if ($element.attr('id') != null) {
|
5190 |
+
id = $element.attr('id');
|
5191 |
+
} else if ($element.attr('name') != null) {
|
5192 |
+
id = $element.attr('name') + '-' + Utils.generateChars(2);
|
5193 |
+
} else {
|
5194 |
+
id = Utils.generateChars(4);
|
5195 |
+
}
|
5196 |
+
|
5197 |
+
id = id.replace(/(:|\.|\[|\]|,)/g, '');
|
5198 |
+
id = 'select2-' + id;
|
5199 |
+
|
5200 |
+
return id;
|
5201 |
+
};
|
5202 |
+
|
5203 |
+
Select2.prototype._placeContainer = function ($container) {
|
5204 |
+
$container.insertAfter(this.$element);
|
5205 |
+
|
5206 |
+
var width = this._resolveWidth(this.$element, this.options.get('width'));
|
5207 |
+
|
5208 |
+
if (width != null) {
|
5209 |
+
$container.css('width', width);
|
5210 |
+
}
|
5211 |
+
};
|
5212 |
+
|
5213 |
+
Select2.prototype._resolveWidth = function ($element, method) {
|
5214 |
+
var WIDTH = /^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;
|
5215 |
+
|
5216 |
+
if (method == 'resolve') {
|
5217 |
+
var styleWidth = this._resolveWidth($element, 'style');
|
5218 |
+
|
5219 |
+
if (styleWidth != null) {
|
5220 |
+
return styleWidth;
|
5221 |
+
}
|
5222 |
+
|
5223 |
+
return this._resolveWidth($element, 'element');
|
5224 |
+
}
|
5225 |
+
|
5226 |
+
if (method == 'element') {
|
5227 |
+
var elementWidth = $element.outerWidth(false);
|
5228 |
+
|
5229 |
+
if (elementWidth <= 0) {
|
5230 |
+
return 'auto';
|
5231 |
+
}
|
5232 |
+
|
5233 |
+
return elementWidth + 'px';
|
5234 |
+
}
|
5235 |
+
|
5236 |
+
if (method == 'style') {
|
5237 |
+
var style = $element.attr('style');
|
5238 |
+
|
5239 |
+
if (typeof(style) !== 'string') {
|
5240 |
+
return null;
|
5241 |
+
}
|
5242 |
+
|
5243 |
+
var attrs = style.split(';');
|
5244 |
+
|
5245 |
+
for (var i = 0, l = attrs.length; i < l; i = i + 1) {
|
5246 |
+
var attr = attrs[i].replace(/\s/g, '');
|
5247 |
+
var matches = attr.match(WIDTH);
|
5248 |
+
|
5249 |
+
if (matches !== null && matches.length >= 1) {
|
5250 |
+
return matches[1];
|
5251 |
+
}
|
5252 |
+
}
|
5253 |
+
|
5254 |
+
return null;
|
5255 |
+
}
|
5256 |
+
|
5257 |
+
return method;
|
5258 |
+
};
|
5259 |
+
|
5260 |
+
Select2.prototype._bindAdapters = function () {
|
5261 |
+
this.dataAdapter.bind(this, this.$container);
|
5262 |
+
this.selection.bind(this, this.$container);
|
5263 |
+
|
5264 |
+
this.dropdown.bind(this, this.$container);
|
5265 |
+
this.results.bind(this, this.$container);
|
5266 |
+
};
|
5267 |
+
|
5268 |
+
Select2.prototype._registerDomEvents = function () {
|
5269 |
+
var self = this;
|
5270 |
+
|
5271 |
+
this.$element.on('change.select2', function () {
|
5272 |
+
self.dataAdapter.current(function (data) {
|
5273 |
+
self.trigger('selection:update', {
|
5274 |
+
data: data
|
5275 |
+
});
|
5276 |
+
});
|
5277 |
+
});
|
5278 |
+
|
5279 |
+
this.$element.on('focus.select2', function (evt) {
|
5280 |
+
self.trigger('focus', evt);
|
5281 |
+
});
|
5282 |
+
|
5283 |
+
this._syncA = Utils.bind(this._syncAttributes, this);
|
5284 |
+
this._syncS = Utils.bind(this._syncSubtree, this);
|
5285 |
+
|
5286 |
+
if (this.$element[0].attachEvent) {
|
5287 |
+
this.$element[0].attachEvent('onpropertychange', this._syncA);
|
5288 |
+
}
|
5289 |
+
|
5290 |
+
var observer = window.MutationObserver ||
|
5291 |
+
window.WebKitMutationObserver ||
|
5292 |
+
window.MozMutationObserver
|
5293 |
+
;
|
5294 |
+
|
5295 |
+
if (observer != null) {
|
5296 |
+
this._observer = new observer(function (mutations) {
|
5297 |
+
$.each(mutations, self._syncA);
|
5298 |
+
$.each(mutations, self._syncS);
|
5299 |
+
});
|
5300 |
+
this._observer.observe(this.$element[0], {
|
5301 |
+
attributes: true,
|
5302 |
+
childList: true,
|
5303 |
+
subtree: false
|
5304 |
+
});
|
5305 |
+
} else if (this.$element[0].addEventListener) {
|
5306 |
+
this.$element[0].addEventListener(
|
5307 |
+
'DOMAttrModified',
|
5308 |
+
self._syncA,
|
5309 |
+
false
|
5310 |
+
);
|
5311 |
+
this.$element[0].addEventListener(
|
5312 |
+
'DOMNodeInserted',
|
5313 |
+
self._syncS,
|
5314 |
+
false
|
5315 |
+
);
|
5316 |
+
this.$element[0].addEventListener(
|
5317 |
+
'DOMNodeRemoved',
|
5318 |
+
self._syncS,
|
5319 |
+
false
|
5320 |
+
);
|
5321 |
+
}
|
5322 |
+
};
|
5323 |
+
|
5324 |
+
Select2.prototype._registerDataEvents = function () {
|
5325 |
+
var self = this;
|
5326 |
+
|
5327 |
+
this.dataAdapter.on('*', function (name, params) {
|
5328 |
+
self.trigger(name, params);
|
5329 |
+
});
|
5330 |
+
};
|
5331 |
+
|
5332 |
+
Select2.prototype._registerSelectionEvents = function () {
|
5333 |
+
var self = this;
|
5334 |
+
var nonRelayEvents = ['toggle', 'focus'];
|
5335 |
+
|
5336 |
+
this.selection.on('toggle', function () {
|
5337 |
+
self.toggleDropdown();
|
5338 |
+
});
|
5339 |
+
|
5340 |
+
this.selection.on('focus', function (params) {
|
5341 |
+
self.focus(params);
|
5342 |
+
});
|
5343 |
+
|
5344 |
+
this.selection.on('*', function (name, params) {
|
5345 |
+
if ($.inArray(name, nonRelayEvents) !== -1) {
|
5346 |
+
return;
|
5347 |
+
}
|
5348 |
+
|
5349 |
+
self.trigger(name, params);
|
5350 |
+
});
|
5351 |
+
};
|
5352 |
+
|
5353 |
+
Select2.prototype._registerDropdownEvents = function () {
|
5354 |
+
var self = this;
|
5355 |
+
|
5356 |
+
this.dropdown.on('*', function (name, params) {
|
5357 |
+
self.trigger(name, params);
|
5358 |
+
});
|
5359 |
+
};
|
5360 |
+
|
5361 |
+
Select2.prototype._registerResultsEvents = function () {
|
5362 |
+
var self = this;
|
5363 |
+
|
5364 |
+
this.results.on('*', function (name, params) {
|
5365 |
+
self.trigger(name, params);
|
5366 |
+
});
|
5367 |
+
};
|
5368 |
+
|
5369 |
+
Select2.prototype._registerEvents = function () {
|
5370 |
+
var self = this;
|
5371 |
+
|
5372 |
+
this.on('open', function () {
|
5373 |
+
self.$container.addClass('select2-container--open');
|
5374 |
+
});
|
5375 |
+
|
5376 |
+
this.on('close', function () {
|
5377 |
+
self.$container.removeClass('select2-container--open');
|
5378 |
+
});
|
5379 |
+
|
5380 |
+
this.on('enable', function () {
|
5381 |
+
self.$container.removeClass('select2-container--disabled');
|
5382 |
+
});
|
5383 |
+
|
5384 |
+
this.on('disable', function () {
|
5385 |
+
self.$container.addClass('select2-container--disabled');
|
5386 |
+
});
|
5387 |
+
|
5388 |
+
this.on('blur', function () {
|
5389 |
+
self.$container.removeClass('select2-container--focus');
|
5390 |
+
});
|
5391 |
+
|
5392 |
+
this.on('query', function (params) {
|
5393 |
+
if (!self.isOpen()) {
|
5394 |
+
self.trigger('open', {});
|
5395 |
+
}
|
5396 |
+
|
5397 |
+
this.dataAdapter.query(params, function (data) {
|
5398 |
+
self.trigger('results:all', {
|
5399 |
+
data: data,
|
5400 |
+
query: params
|
5401 |
+
});
|
5402 |
+
});
|
5403 |
+
});
|
5404 |
+
|
5405 |
+
this.on('query:append', function (params) {
|
5406 |
+
this.dataAdapter.query(params, function (data) {
|
5407 |
+
self.trigger('results:append', {
|
5408 |
+
data: data,
|
5409 |
+
query: params
|
5410 |
+
});
|
5411 |
+
});
|
5412 |
+
});
|
5413 |
+
|
5414 |
+
this.on('open', function(){
|
5415 |
+
// Focus on the active element when opening dropdown.
|
5416 |
+
// Needs 1 ms delay because of other 1 ms setTimeouts when rendering.
|
5417 |
+
setTimeout(function(){
|
5418 |
+
self.focusOnActiveElement();
|
5419 |
+
},1);
|
5420 |
+
});
|
5421 |
+
|
5422 |
+
$(document).on('keydown', function (evt) {
|
5423 |
+
var key = evt.which;
|
5424 |
+
if (self.isOpen()) {
|
5425 |
+
if (key === KEYS.ESC || key === KEYS.TAB ||
|
5426 |
+
(key === KEYS.UP && evt.altKey)) {
|
5427 |
+
self.close();
|
5428 |
+
|
5429 |
+
evt.preventDefault();
|
5430 |
+
} else if (key === KEYS.ENTER) {
|
5431 |
+
self.trigger('results:select', {});
|
5432 |
+
|
5433 |
+
evt.preventDefault();
|
5434 |
+
} else if ((key === KEYS.SPACE && evt.ctrlKey)) {
|
5435 |
+
self.trigger('results:toggle', {});
|
5436 |
+
|
5437 |
+
evt.preventDefault();
|
5438 |
+
} else if (key === KEYS.UP) {
|
5439 |
+
self.trigger('results:previous', {});
|
5440 |
+
|
5441 |
+
evt.preventDefault();
|
5442 |
+
} else if (key === KEYS.DOWN) {
|
5443 |
+
self.trigger('results:next', {});
|
5444 |
+
|
5445 |
+
evt.preventDefault();
|
5446 |
+
}
|
5447 |
+
|
5448 |
+
// Move the focus to the selected element on keyboard navigation.
|
5449 |
+
// Required for screen readers to work properly.
|
5450 |
+
if (key === KEYS.DOWN || key === KEYS.UP) {
|
5451 |
+
self.focusOnActiveElement();
|
5452 |
+
} else {
|
5453 |
+
// Focus on the search if user starts typing.
|
5454 |
+
var $searchField = self.$dropdown.find('.select2-search__field');
|
5455 |
+
if (! $searchField.length) {
|
5456 |
+
$searchField = self.$container.find('.select2-search__field');
|
5457 |
+
}
|
5458 |
+
$searchField.focus();
|
5459 |
+
// Focus back to active selection when finished typing.
|
5460 |
+
// Small delay so typed character can be read by screen reader.
|
5461 |
+
setTimeout(function(){
|
5462 |
+
self.focusOnActiveElement();
|
5463 |
+
}, 1000);
|
5464 |
+
}
|
5465 |
+
|
5466 |
+
} else if (self.hasFocus()) {
|
5467 |
+
if (key === KEYS.ENTER || key === KEYS.SPACE ||
|
5468 |
+
(key === KEYS.DOWN && evt.altKey)) {
|
5469 |
+
self.open();
|
5470 |
+
evt.preventDefault();
|
5471 |
+
}
|
5472 |
+
}
|
5473 |
+
});
|
5474 |
+
};
|
5475 |
+
|
5476 |
+
Select2.prototype.focusOnActiveElement = function () {
|
5477 |
+
// Don't mess with the focus on touchscreens because it causes havoc with on-screen keyboards.
|
5478 |
+
if (! Utils.isTouchscreen()) {
|
5479 |
+
this.$results.find('li.select2-results__option--highlighted').focus();
|
5480 |
+
}
|
5481 |
+
};
|
5482 |
+
|
5483 |
+
Select2.prototype._syncAttributes = function () {
|
5484 |
+
this.options.set('disabled', this.$element.prop('disabled'));
|
5485 |
+
|
5486 |
+
if (this.options.get('disabled')) {
|
5487 |
+
if (this.isOpen()) {
|
5488 |
+
this.close();
|
5489 |
+
}
|
5490 |
+
|
5491 |
+
this.trigger('disable', {});
|
5492 |
+
} else {
|
5493 |
+
this.trigger('enable', {});
|
5494 |
+
}
|
5495 |
+
};
|
5496 |
+
|
5497 |
+
Select2.prototype._syncSubtree = function (evt, mutations) {
|
5498 |
+
var changed = false;
|
5499 |
+
var self = this;
|
5500 |
+
|
5501 |
+
// Ignore any mutation events raised for elements that aren't options or
|
5502 |
+
// optgroups. This handles the case when the select element is destroyed
|
5503 |
+
if (
|
5504 |
+
evt && evt.target && (
|
5505 |
+
evt.target.nodeName !== 'OPTION' && evt.target.nodeName !== 'OPTGROUP'
|
5506 |
+
)
|
5507 |
+
) {
|
5508 |
+
return;
|
5509 |
+
}
|
5510 |
+
|
5511 |
+
if (!mutations) {
|
5512 |
+
// If mutation events aren't supported, then we can only assume that the
|
5513 |
+
// change affected the selections
|
5514 |
+
changed = true;
|
5515 |
+
} else if (mutations.addedNodes && mutations.addedNodes.length > 0) {
|
5516 |
+
for (var n = 0; n < mutations.addedNodes.length; n++) {
|
5517 |
+
var node = mutations.addedNodes[n];
|
5518 |
+
|
5519 |
+
if (node.selected) {
|
5520 |
+
changed = true;
|
5521 |
+
}
|
5522 |
+
}
|
5523 |
+
} else if (mutations.removedNodes && mutations.removedNodes.length > 0) {
|
5524 |
+
changed = true;
|
5525 |
+
}
|
5526 |
+
|
5527 |
+
// Only re-pull the data if we think there is a change
|
5528 |
+
if (changed) {
|
5529 |
+
this.dataAdapter.current(function (currentData) {
|
5530 |
+
self.trigger('selection:update', {
|
5531 |
+
data: currentData
|
5532 |
+
});
|
5533 |
+
});
|
5534 |
+
}
|
5535 |
+
};
|
5536 |
+
|
5537 |
+
/**
|
5538 |
+
* Override the trigger method to automatically trigger pre-events when
|
5539 |
+
* there are events that can be prevented.
|
5540 |
+
*/
|
5541 |
+
Select2.prototype.trigger = function (name, args) {
|
5542 |
+
var actualTrigger = Select2.__super__.trigger;
|
5543 |
+
var preTriggerMap = {
|
5544 |
+
'open': 'opening',
|
5545 |
+
'close': 'closing',
|
5546 |
+
'select': 'selecting',
|
5547 |
+
'unselect': 'unselecting'
|
5548 |
+
};
|
5549 |
+
|
5550 |
+
if (args === undefined) {
|
5551 |
+
args = {};
|
5552 |
+
}
|
5553 |
+
|
5554 |
+
if (name in preTriggerMap) {
|
5555 |
+
var preTriggerName = preTriggerMap[name];
|
5556 |
+
var preTriggerArgs = {
|
5557 |
+
prevented: false,
|
5558 |
+
name: name,
|
5559 |
+
args: args
|
5560 |
+
};
|
5561 |
+
|
5562 |
+
actualTrigger.call(this, preTriggerName, preTriggerArgs);
|
5563 |
+
|
5564 |
+
if (preTriggerArgs.prevented) {
|
5565 |
+
args.prevented = true;
|
5566 |
+
|
5567 |
+
return;
|
5568 |
+
}
|
5569 |
+
}
|
5570 |
+
|
5571 |
+
actualTrigger.call(this, name, args);
|
5572 |
+
};
|
5573 |
+
|
5574 |
+
Select2.prototype.toggleDropdown = function () {
|
5575 |
+
if (this.options.get('disabled')) {
|
5576 |
+
return;
|
5577 |
+
}
|
5578 |
+
|
5579 |
+
if (this.isOpen()) {
|
5580 |
+
this.close();
|
5581 |
+
} else {
|
5582 |
+
this.open();
|
5583 |
+
}
|
5584 |
+
};
|
5585 |
+
|
5586 |
+
Select2.prototype.open = function () {
|
5587 |
+
if (this.isOpen()) {
|
5588 |
+
return;
|
5589 |
+
}
|
5590 |
+
|
5591 |
+
this.trigger('query', {});
|
5592 |
+
};
|
5593 |
+
|
5594 |
+
Select2.prototype.close = function () {
|
5595 |
+
if (!this.isOpen()) {
|
5596 |
+
return;
|
5597 |
+
}
|
5598 |
+
|
5599 |
+
this.trigger('close', {});
|
5600 |
+
};
|
5601 |
+
|
5602 |
+
Select2.prototype.isOpen = function () {
|
5603 |
+
return this.$container.hasClass('select2-container--open');
|
5604 |
+
};
|
5605 |
+
|
5606 |
+
Select2.prototype.hasFocus = function () {
|
5607 |
+
return this.$container.hasClass('select2-container--focus');
|
5608 |
+
};
|
5609 |
+
|
5610 |
+
Select2.prototype.focus = function (data) {
|
5611 |
+
// No need to re-trigger focus events if we are already focused
|
5612 |
+
if (this.hasFocus()) {
|
5613 |
+
return;
|
5614 |
+
}
|
5615 |
+
|
5616 |
+
this.$container.addClass('select2-container--focus');
|
5617 |
+
this.trigger('focus', {});
|
5618 |
+
};
|
5619 |
+
|
5620 |
+
Select2.prototype.enable = function (args) {
|
5621 |
+
if (this.options.get('debug') && window.console && console.warn) {
|
5622 |
+
console.warn(
|
5623 |
+
'Select2: The `select2("enable")` method has been deprecated and will' +
|
5624 |
+
' be removed in later Select2 versions. Use $element.prop("disabled")' +
|
5625 |
+
' instead.'
|
5626 |
+
);
|
5627 |
+
}
|
5628 |
+
|
5629 |
+
if (args == null || args.length === 0) {
|
5630 |
+
args = [true];
|
5631 |
+
}
|
5632 |
+
|
5633 |
+
var disabled = !args[0];
|
5634 |
+
|
5635 |
+
this.$element.prop('disabled', disabled);
|
5636 |
+
};
|
5637 |
+
|
5638 |
+
Select2.prototype.data = function () {
|
5639 |
+
if (this.options.get('debug') &&
|
5640 |
+
arguments.length > 0 && window.console && console.warn) {
|
5641 |
+
console.warn(
|
5642 |
+
'Select2: Data can no longer be set using `select2("data")`. You ' +
|
5643 |
+
'should consider setting the value instead using `$element.val()`.'
|
5644 |
+
);
|
5645 |
+
}
|
5646 |
+
|
5647 |
+
var data = [];
|
5648 |
+
|
5649 |
+
this.dataAdapter.current(function (currentData) {
|
5650 |
+
data = currentData;
|
5651 |
+
});
|
5652 |
+
|
5653 |
+
return data;
|
5654 |
+
};
|
5655 |
+
|
5656 |
+
Select2.prototype.val = function (args) {
|
5657 |
+
if (this.options.get('debug') && window.console && console.warn) {
|
5658 |
+
console.warn(
|
5659 |
+
'Select2: The `select2("val")` method has been deprecated and will be' +
|
5660 |
+
' removed in later Select2 versions. Use $element.val() instead.'
|
5661 |
+
);
|
5662 |
+
}
|
5663 |
+
|
5664 |
+
if (args == null || args.length === 0) {
|
5665 |
+
return this.$element.val();
|
5666 |
+
}
|
5667 |
+
|
5668 |
+
var newVal = args[0];
|
5669 |
+
|
5670 |
+
if ($.isArray(newVal)) {
|
5671 |
+
newVal = $.map(newVal, function (obj) {
|
5672 |
+
return obj.toString();
|
5673 |
+
});
|
5674 |
+
}
|
5675 |
+
|
5676 |
+
this.$element.val(newVal).trigger('change');
|
5677 |
+
};
|
5678 |
+
|
5679 |
+
Select2.prototype.destroy = function () {
|
5680 |
+
this.$container.remove();
|
5681 |
+
|
5682 |
+
if (this.$element[0].detachEvent) {
|
5683 |
+
this.$element[0].detachEvent('onpropertychange', this._syncA);
|
5684 |
+
}
|
5685 |
+
|
5686 |
+
if (this._observer != null) {
|
5687 |
+
this._observer.disconnect();
|
5688 |
+
this._observer = null;
|
5689 |
+
} else if (this.$element[0].removeEventListener) {
|
5690 |
+
this.$element[0]
|
5691 |
+
.removeEventListener('DOMAttrModified', this._syncA, false);
|
5692 |
+
this.$element[0]
|
5693 |
+
.removeEventListener('DOMNodeInserted', this._syncS, false);
|
5694 |
+
this.$element[0]
|
5695 |
+
.removeEventListener('DOMNodeRemoved', this._syncS, false);
|
5696 |
+
}
|
5697 |
+
|
5698 |
+
this._syncA = null;
|
5699 |
+
this._syncS = null;
|
5700 |
+
|
5701 |
+
this.$element.off('.select2');
|
5702 |
+
this.$element.attr('tabindex', this.$element.data('old-tabindex'));
|
5703 |
+
|
5704 |
+
this.$element.removeClass('select2-hidden-accessible');
|
5705 |
+
this.$element.attr('aria-hidden', 'false');
|
5706 |
+
this.$element.removeData('select2');
|
5707 |
+
|
5708 |
+
this.dataAdapter.destroy();
|
5709 |
+
this.selection.destroy();
|
5710 |
+
this.dropdown.destroy();
|
5711 |
+
this.results.destroy();
|
5712 |
+
|
5713 |
+
this.dataAdapter = null;
|
5714 |
+
this.selection = null;
|
5715 |
+
this.dropdown = null;
|
5716 |
+
this.results = null;
|
5717 |
+
};
|
5718 |
+
|
5719 |
+
Select2.prototype.render = function () {
|
5720 |
+
var $container = $(
|
5721 |
+
'<span class="select2 select2-container">' +
|
5722 |
+
'<span class="selection"></span>' +
|
5723 |
+
'<span class="dropdown-wrapper" aria-hidden="true"></span>' +
|
5724 |
+
'</span>'
|
5725 |
+
);
|
5726 |
+
|
5727 |
+
$container.attr('dir', this.options.get('dir'));
|
5728 |
+
|
5729 |
+
this.$container = $container;
|
5730 |
+
|
5731 |
+
this.$container.addClass('select2-container--' + this.options.get('theme'));
|
5732 |
+
|
5733 |
+
$container.data('element', this.$element);
|
5734 |
+
|
5735 |
+
return $container;
|
5736 |
+
};
|
5737 |
+
|
5738 |
+
return Select2;
|
5739 |
+
});
|
5740 |
+
|
5741 |
+
S2.define('select2/compat/utils',[
|
5742 |
+
'jquery'
|
5743 |
+
], function ($) {
|
5744 |
+
function syncCssClasses ($dest, $src, adapter) {
|
5745 |
+
var classes, replacements = [], adapted;
|
5746 |
+
|
5747 |
+
classes = $.trim($dest.attr('class'));
|
5748 |
+
|
5749 |
+
if (classes) {
|
5750 |
+
classes = '' + classes; // for IE which returns object
|
5751 |
+
|
5752 |
+
$(classes.split(/\s+/)).each(function () {
|
5753 |
+
// Save all Select2 classes
|
5754 |
+
if (this.indexOf('select2-') === 0) {
|
5755 |
+
replacements.push(this);
|
5756 |
+
}
|
5757 |
+
});
|
5758 |
+
}
|
5759 |
+
|
5760 |
+
classes = $.trim($src.attr('class'));
|
5761 |
+
|
5762 |
+
if (classes) {
|
5763 |
+
classes = '' + classes; // for IE which returns object
|
5764 |
+
|
5765 |
+
$(classes.split(/\s+/)).each(function () {
|
5766 |
+
// Only adapt non-Select2 classes
|
5767 |
+
if (this.indexOf('select2-') !== 0) {
|
5768 |
+
adapted = adapter(this);
|
5769 |
+
|
5770 |
+
if (adapted != null) {
|
5771 |
+
replacements.push(adapted);
|
5772 |
+
}
|
5773 |
+
}
|
5774 |
+
});
|
5775 |
+
}
|
5776 |
+
|
5777 |
+
$dest.attr('class', replacements.join(' '));
|
5778 |
+
}
|
5779 |
+
|
5780 |
+
return {
|
5781 |
+
syncCssClasses: syncCssClasses
|
5782 |
+
};
|
5783 |
+
});
|
5784 |
+
|
5785 |
+
S2.define('select2/compat/containerCss',[
|
5786 |
+
'jquery',
|
5787 |
+
'./utils'
|
5788 |
+
], function ($, CompatUtils) {
|
5789 |
+
// No-op CSS adapter that discards all classes by default
|
5790 |
+
function _containerAdapter (clazz) {
|
5791 |
+
return null;
|
5792 |
+
}
|
5793 |
+
|
5794 |
+
function ContainerCSS () { }
|
5795 |
+
|
5796 |
+
ContainerCSS.prototype.render = function (decorated) {
|
5797 |
+
var $container = decorated.call(this);
|
5798 |
+
|
5799 |
+
var containerCssClass = this.options.get('containerCssClass') || '';
|
5800 |
+
|
5801 |
+
if ($.isFunction(containerCssClass)) {
|
5802 |
+
containerCssClass = containerCssClass(this.$element);
|
5803 |
+
}
|
5804 |
+
|
5805 |
+
var containerCssAdapter = this.options.get('adaptContainerCssClass');
|
5806 |
+
containerCssAdapter = containerCssAdapter || _containerAdapter;
|
5807 |
+
|
5808 |
+
if (containerCssClass.indexOf(':all:') !== -1) {
|
5809 |
+
containerCssClass = containerCssClass.replace(':all:', '');
|
5810 |
+
|
5811 |
+
var _cssAdapter = containerCssAdapter;
|
5812 |
+
|
5813 |
+
containerCssAdapter = function (clazz) {
|
5814 |
+
var adapted = _cssAdapter(clazz);
|
5815 |
+
|
5816 |
+
if (adapted != null) {
|
5817 |
+
// Append the old one along with the adapted one
|
5818 |
+
return adapted + ' ' + clazz;
|
5819 |
+
}
|
5820 |
+
|
5821 |
+
return clazz;
|
5822 |
+
};
|
5823 |
+
}
|
5824 |
+
|
5825 |
+
var containerCss = this.options.get('containerCss') || {};
|
5826 |
+
|
5827 |
+
if ($.isFunction(containerCss)) {
|
5828 |
+
containerCss = containerCss(this.$element);
|
5829 |
+
}
|
5830 |
+
|
5831 |
+
CompatUtils.syncCssClasses($container, this.$element, containerCssAdapter);
|
5832 |
+
|
5833 |
+
$container.css(containerCss);
|
5834 |
+
$container.addClass(containerCssClass);
|
5835 |
+
|
5836 |
+
return $container;
|
5837 |
+
};
|
5838 |
+
|
5839 |
+
return ContainerCSS;
|
5840 |
+
});
|
5841 |
+
|
5842 |
+
S2.define('select2/compat/dropdownCss',[
|
5843 |
+
'jquery',
|
5844 |
+
'./utils'
|
5845 |
+
], function ($, CompatUtils) {
|
5846 |
+
// No-op CSS adapter that discards all classes by default
|
5847 |
+
function _dropdownAdapter (clazz) {
|
5848 |
+
return null;
|
5849 |
+
}
|
5850 |
+
|
5851 |
+
function DropdownCSS () { }
|
5852 |
+
|
5853 |
+
DropdownCSS.prototype.render = function (decorated) {
|
5854 |
+
var $dropdown = decorated.call(this);
|
5855 |
+
|
5856 |
+
var dropdownCssClass = this.options.get('dropdownCssClass') || '';
|
5857 |
+
|
5858 |
+
if ($.isFunction(dropdownCssClass)) {
|
5859 |
+
dropdownCssClass = dropdownCssClass(this.$element);
|
5860 |
+
}
|
5861 |
+
|
5862 |
+
var dropdownCssAdapter = this.options.get('adaptDropdownCssClass');
|
5863 |
+
dropdownCssAdapter = dropdownCssAdapter || _dropdownAdapter;
|
5864 |
+
|
5865 |
+
if (dropdownCssClass.indexOf(':all:') !== -1) {
|
5866 |
+
dropdownCssClass = dropdownCssClass.replace(':all:', '');
|
5867 |
+
|
5868 |
+
var _cssAdapter = dropdownCssAdapter;
|
5869 |
+
|
5870 |
+
dropdownCssAdapter = function (clazz) {
|
5871 |
+
var adapted = _cssAdapter(clazz);
|
5872 |
+
|
5873 |
+
if (adapted != null) {
|
5874 |
+
// Append the old one along with the adapted one
|
5875 |
+
return adapted + ' ' + clazz;
|
5876 |
+
}
|
5877 |
+
|
5878 |
+
return clazz;
|
5879 |
+
};
|
5880 |
+
}
|
5881 |
+
|
5882 |
+
var dropdownCss = this.options.get('dropdownCss') || {};
|
5883 |
+
|
5884 |
+
if ($.isFunction(dropdownCss)) {
|
5885 |
+
dropdownCss = dropdownCss(this.$element);
|
5886 |
+
}
|
5887 |
+
|
5888 |
+
CompatUtils.syncCssClasses($dropdown, this.$element, dropdownCssAdapter);
|
5889 |
+
|
5890 |
+
$dropdown.css(dropdownCss);
|
5891 |
+
$dropdown.addClass(dropdownCssClass);
|
5892 |
+
|
5893 |
+
return $dropdown;
|
5894 |
+
};
|
5895 |
+
|
5896 |
+
return DropdownCSS;
|
5897 |
+
});
|
5898 |
+
|
5899 |
+
S2.define('select2/compat/initSelection',[
|
5900 |
+
'jquery'
|
5901 |
+
], function ($) {
|
5902 |
+
function InitSelection (decorated, $element, options) {
|
5903 |
+
if (options.get('debug') && window.console && console.warn) {
|
5904 |
+
console.warn(
|
5905 |
+
'Select2: The `initSelection` option has been deprecated in favor' +
|
5906 |
+
' of a custom data adapter that overrides the `current` method. ' +
|
5907 |
+
'This method is now called multiple times instead of a single ' +
|
5908 |
+
'time when the instance is initialized. Support will be removed ' +
|
5909 |
+
'for the `initSelection` option in future versions of Select2'
|
5910 |
+
);
|
5911 |
+
}
|
5912 |
+
|
5913 |
+
this.initSelection = options.get('initSelection');
|
5914 |
+
this._isInitialized = false;
|
5915 |
+
|
5916 |
+
decorated.call(this, $element, options);
|
5917 |
+
}
|
5918 |
+
|
5919 |
+
InitSelection.prototype.current = function (decorated, callback) {
|
5920 |
+
var self = this;
|
5921 |
+
|
5922 |
+
if (this._isInitialized) {
|
5923 |
+
decorated.call(this, callback);
|
5924 |
+
|
5925 |
+
return;
|
5926 |
+
}
|
5927 |
+
|
5928 |
+
this.initSelection.call(null, this.$element, function (data) {
|
5929 |
+
self._isInitialized = true;
|
5930 |
+
|
5931 |
+
if (!$.isArray(data)) {
|
5932 |
+
data = [data];
|
5933 |
+
}
|
5934 |
+
|
5935 |
+
callback(data);
|
5936 |
+
});
|
5937 |
+
};
|
5938 |
+
|
5939 |
+
return InitSelection;
|
5940 |
+
});
|
5941 |
+
|
5942 |
+
S2.define('select2/compat/inputData',[
|
5943 |
+
'jquery'
|
5944 |
+
], function ($) {
|
5945 |
+
function InputData (decorated, $element, options) {
|
5946 |
+
this._currentData = [];
|
5947 |
+
this._valueSeparator = options.get('valueSeparator') || ',';
|
5948 |
+
|
5949 |
+
if ($element.prop('type') === 'hidden') {
|
5950 |
+
if (options.get('debug') && console && console.warn) {
|
5951 |
+
console.warn(
|
5952 |
+
'Select2: Using a hidden input with Select2 is no longer ' +
|
5953 |
+
'supported and may stop working in the future. It is recommended ' +
|
5954 |
+
'to use a `<select>` element instead.'
|
5955 |
+
);
|
5956 |
+
}
|
5957 |
+
}
|
5958 |
+
|
5959 |
+
decorated.call(this, $element, options);
|
5960 |
+
}
|
5961 |
+
|
5962 |
+
InputData.prototype.current = function (_, callback) {
|
5963 |
+
function getSelected (data, selectedIds) {
|
5964 |
+
var selected = [];
|
5965 |
+
|
5966 |
+
if (data.selected || $.inArray(data.id, selectedIds) !== -1) {
|
5967 |
+
data.selected = true;
|
5968 |
+
selected.push(data);
|
5969 |
+
} else {
|
5970 |
+
data.selected = false;
|
5971 |
+
}
|
5972 |
+
|
5973 |
+
if (data.children) {
|
5974 |
+
selected.push.apply(selected, getSelected(data.children, selectedIds));
|
5975 |
+
}
|
5976 |
+
|
5977 |
+
return selected;
|
5978 |
+
}
|
5979 |
+
|
5980 |
+
var selected = [];
|
5981 |
+
|
5982 |
+
for (var d = 0; d < this._currentData.length; d++) {
|
5983 |
+
var data = this._currentData[d];
|
5984 |
+
|
5985 |
+
selected.push.apply(
|
5986 |
+
selected,
|
5987 |
+
getSelected(
|
5988 |
+
data,
|
5989 |
+
this.$element.val().split(
|
5990 |
+
this._valueSeparator
|
5991 |
+
)
|
5992 |
+
)
|
5993 |
+
);
|
5994 |
+
}
|
5995 |
+
|
5996 |
+
callback(selected);
|
5997 |
+
};
|
5998 |
+
|
5999 |
+
InputData.prototype.select = function (_, data) {
|
6000 |
+
if (!this.options.get('multiple')) {
|
6001 |
+
this.current(function (allData) {
|
6002 |
+
$.map(allData, function (data) {
|
6003 |
+
data.selected = false;
|
6004 |
+
});
|
6005 |
+
});
|
6006 |
+
|
6007 |
+
this.$element.val(data.id);
|
6008 |
+
this.$element.trigger('change');
|
6009 |
+
} else {
|
6010 |
+
var value = this.$element.val();
|
6011 |
+
value += this._valueSeparator + data.id;
|
6012 |
+
|
6013 |
+
this.$element.val(value);
|
6014 |
+
this.$element.trigger('change');
|
6015 |
+
}
|
6016 |
+
};
|
6017 |
+
|
6018 |
+
InputData.prototype.unselect = function (_, data) {
|
6019 |
+
var self = this;
|
6020 |
+
|
6021 |
+
data.selected = false;
|
6022 |
+
|
6023 |
+
this.current(function (allData) {
|
6024 |
+
var values = [];
|
6025 |
+
|
6026 |
+
for (var d = 0; d < allData.length; d++) {
|
6027 |
+
var item = allData[d];
|
6028 |
+
|
6029 |
+
if (data.id == item.id) {
|
6030 |
+
continue;
|
6031 |
+
}
|
6032 |
+
|
6033 |
+
values.push(item.id);
|
6034 |
+
}
|
6035 |
+
|
6036 |
+
self.$element.val(values.join(self._valueSeparator));
|
6037 |
+
self.$element.trigger('change');
|
6038 |
+
});
|
6039 |
+
};
|
6040 |
+
|
6041 |
+
InputData.prototype.query = function (_, params, callback) {
|
6042 |
+
var results = [];
|
6043 |
+
|
6044 |
+
for (var d = 0; d < this._currentData.length; d++) {
|
6045 |
+
var data = this._currentData[d];
|
6046 |
+
|
6047 |
+
var matches = this.matches(params, data);
|
6048 |
+
|
6049 |
+
if (matches !== null) {
|
6050 |
+
results.push(matches);
|
6051 |
+
}
|
6052 |
+
}
|
6053 |
+
|
6054 |
+
callback({
|
6055 |
+
results: results
|
6056 |
+
});
|
6057 |
+
};
|
6058 |
+
|
6059 |
+
InputData.prototype.addOptions = function (_, $options) {
|
6060 |
+
var options = $.map($options, function ($option) {
|
6061 |
+
return $.data($option[0], 'data');
|
6062 |
+
});
|
6063 |
+
|
6064 |
+
this._currentData.push.apply(this._currentData, options);
|
6065 |
+
};
|
6066 |
+
|
6067 |
+
return InputData;
|
6068 |
+
});
|
6069 |
+
|
6070 |
+
S2.define('select2/compat/matcher',[
|
6071 |
+
'jquery'
|
6072 |
+
], function ($) {
|
6073 |
+
function oldMatcher (matcher) {
|
6074 |
+
function wrappedMatcher (params, data) {
|
6075 |
+
var match = $.extend(true, {}, data);
|
6076 |
+
|
6077 |
+
if (params.term == null || $.trim(params.term) === '') {
|
6078 |
+
return match;
|
6079 |
+
}
|
6080 |
+
|
6081 |
+
if (data.children) {
|
6082 |
+
for (var c = data.children.length - 1; c >= 0; c--) {
|
6083 |
+
var child = data.children[c];
|
6084 |
+
|
6085 |
+
// Check if the child object matches
|
6086 |
+
// The old matcher returned a boolean true or false
|
6087 |
+
var doesMatch = matcher(params.term, child.text, child);
|
6088 |
+
|
6089 |
+
// If the child didn't match, pop it off
|
6090 |
+
if (!doesMatch) {
|
6091 |
+
match.children.splice(c, 1);
|
6092 |
+
}
|
6093 |
+
}
|
6094 |
+
|
6095 |
+
if (match.children.length > 0) {
|
6096 |
+
return match;
|
6097 |
+
}
|
6098 |
+
}
|
6099 |
+
|
6100 |
+
if (matcher(params.term, data.text, data)) {
|
6101 |
+
return match;
|
6102 |
+
}
|
6103 |
+
|
6104 |
+
return null;
|
6105 |
+
}
|
6106 |
+
|
6107 |
+
return wrappedMatcher;
|
6108 |
+
}
|
6109 |
+
|
6110 |
+
return oldMatcher;
|
6111 |
+
});
|
6112 |
+
|
6113 |
+
S2.define('select2/compat/query',[
|
6114 |
+
|
6115 |
+
], function () {
|
6116 |
+
function Query (decorated, $element, options) {
|
6117 |
+
if (options.get('debug') && window.console && console.warn) {
|
6118 |
+
console.warn(
|
6119 |
+
'Select2: The `query` option has been deprecated in favor of a ' +
|
6120 |
+
'custom data adapter that overrides the `query` method. Support ' +
|
6121 |
+
'will be removed for the `query` option in future versions of ' +
|
6122 |
+
'Select2.'
|
6123 |
+
);
|
6124 |
+
}
|
6125 |
+
|
6126 |
+
decorated.call(this, $element, options);
|
6127 |
+
}
|
6128 |
+
|
6129 |
+
Query.prototype.query = function (_, params, callback) {
|
6130 |
+
params.callback = callback;
|
6131 |
+
|
6132 |
+
var query = this.options.get('query');
|
6133 |
+
|
6134 |
+
query.call(null, params);
|
6135 |
+
};
|
6136 |
+
|
6137 |
+
return Query;
|
6138 |
+
});
|
6139 |
+
|
6140 |
+
S2.define('select2/dropdown/attachContainer',[
|
6141 |
+
|
6142 |
+
], function () {
|
6143 |
+
function AttachContainer (decorated, $element, options) {
|
6144 |
+
decorated.call(this, $element, options);
|
6145 |
+
}
|
6146 |
+
|
6147 |
+
AttachContainer.prototype.position =
|
6148 |
+
function (decorated, $dropdown, $container) {
|
6149 |
+
var $dropdownContainer = $container.find('.dropdown-wrapper');
|
6150 |
+
$dropdownContainer.append($dropdown);
|
6151 |
+
|
6152 |
+
$dropdown.addClass('select2-dropdown--below');
|
6153 |
+
$container.addClass('select2-container--below');
|
6154 |
+
};
|
6155 |
+
|
6156 |
+
return AttachContainer;
|
6157 |
+
});
|
6158 |
+
|
6159 |
+
S2.define('select2/dropdown/stopPropagation',[
|
6160 |
+
|
6161 |
+
], function () {
|
6162 |
+
function StopPropagation () { }
|
6163 |
+
|
6164 |
+
StopPropagation.prototype.bind = function (decorated, container, $container) {
|
6165 |
+
decorated.call(this, container, $container);
|
6166 |
+
|
6167 |
+
var stoppedEvents = [
|
6168 |
+
'blur',
|
6169 |
+
'change',
|
6170 |
+
'click',
|
6171 |
+
'dblclick',
|
6172 |
+
'focus',
|
6173 |
+
'focusin',
|
6174 |
+
'focusout',
|
6175 |
+
'input',
|
6176 |
+
'keydown',
|
6177 |
+
'keyup',
|
6178 |
+
'keypress',
|
6179 |
+
'mousedown',
|
6180 |
+
'mouseenter',
|
6181 |
+
'mouseleave',
|
6182 |
+
'mousemove',
|
6183 |
+
'mouseover',
|
6184 |
+
'mouseup',
|
6185 |
+
'search',
|
6186 |
+
'touchend',
|
6187 |
+
'touchstart'
|
6188 |
+
];
|
6189 |
+
|
6190 |
+
this.$dropdown.on(stoppedEvents.join(' '), function (evt) {
|
6191 |
+
evt.stopPropagation();
|
6192 |
+
});
|
6193 |
+
};
|
6194 |
+
|
6195 |
+
return StopPropagation;
|
6196 |
+
});
|
6197 |
+
|
6198 |
+
S2.define('select2/selection/stopPropagation',[
|
6199 |
+
|
6200 |
+
], function () {
|
6201 |
+
function StopPropagation () { }
|
6202 |
+
|
6203 |
+
StopPropagation.prototype.bind = function (decorated, container, $container) {
|
6204 |
+
decorated.call(this, container, $container);
|
6205 |
+
|
6206 |
+
var stoppedEvents = [
|
6207 |
+
'blur',
|
6208 |
+
'change',
|
6209 |
+
'click',
|
6210 |
+
'dblclick',
|
6211 |
+
'focus',
|
6212 |
+
'focusin',
|
6213 |
+
'focusout',
|
6214 |
+
'input',
|
6215 |
+
'keydown',
|
6216 |
+
'keyup',
|
6217 |
+
'keypress',
|
6218 |
+
'mousedown',
|
6219 |
+
'mouseenter',
|
6220 |
+
'mouseleave',
|
6221 |
+
'mousemove',
|
6222 |
+
'mouseover',
|
6223 |
+
'mouseup',
|
6224 |
+
'search',
|
6225 |
+
'touchend',
|
6226 |
+
'touchstart'
|
6227 |
+
];
|
6228 |
+
|
6229 |
+
this.$selection.on(stoppedEvents.join(' '), function (evt) {
|
6230 |
+
evt.stopPropagation();
|
6231 |
+
});
|
6232 |
+
};
|
6233 |
+
|
6234 |
+
return StopPropagation;
|
6235 |
+
});
|
6236 |
+
|
6237 |
+
/*!
|
6238 |
+
* jQuery Mousewheel 3.1.13
|
6239 |
+
*
|
6240 |
+
* Copyright jQuery Foundation and other contributors
|
6241 |
+
* Released under the MIT license
|
6242 |
+
* http://jquery.org/license
|
6243 |
+
*/
|
6244 |
+
|
6245 |
+
(function (factory) {
|
6246 |
+
if ( typeof S2.define === 'function' && S2.define.amd ) {
|
6247 |
+
// AMD. Register as an anonymous module.
|
6248 |
+
S2.define('jquery-mousewheel',['jquery'], factory);
|
6249 |
+
} else if (typeof exports === 'object') {
|
6250 |
+
// Node/CommonJS style for Browserify
|
6251 |
+
module.exports = factory;
|
6252 |
+
} else {
|
6253 |
+
// Browser globals
|
6254 |
+
factory(jQuery);
|
6255 |
+
}
|
6256 |
+
}(function ($) {
|
6257 |
+
|
6258 |
+
var toFix = ['wheel', 'mousewheel', 'DOMMouseScroll', 'MozMousePixelScroll'],
|
6259 |
+
toBind = ( 'onwheel' in document || document.documentMode >= 9 ) ?
|
6260 |
+
['wheel'] : ['mousewheel', 'DomMouseScroll', 'MozMousePixelScroll'],
|
6261 |
+
slice = Array.prototype.slice,
|
6262 |
+
nullLowestDeltaTimeout, lowestDelta;
|
6263 |
+
|
6264 |
+
if ( $.event.fixHooks ) {
|
6265 |
+
for ( var i = toFix.length; i; ) {
|
6266 |
+
$.event.fixHooks[ toFix[--i] ] = $.event.mouseHooks;
|
6267 |
+
}
|
6268 |
+
}
|
6269 |
+
|
6270 |
+
var special = $.event.special.mousewheel = {
|
6271 |
+
version: '3.1.12',
|
6272 |
+
|
6273 |
+
setup: function() {
|
6274 |
+
if ( this.addEventListener ) {
|
6275 |
+
for ( var i = toBind.length; i; ) {
|
6276 |
+
this.addEventListener( toBind[--i], handler, false );
|
6277 |
+
}
|
6278 |
+
} else {
|
6279 |
+
this.onmousewheel = handler;
|
6280 |
+
}
|
6281 |
+
// Store the line height and page height for this particular element
|
6282 |
+
$.data(this, 'mousewheel-line-height', special.getLineHeight(this));
|
6283 |
+
$.data(this, 'mousewheel-page-height', special.getPageHeight(this));
|
6284 |
+
},
|
6285 |
+
|
6286 |
+
teardown: function() {
|
6287 |
+
if ( this.removeEventListener ) {
|
6288 |
+
for ( var i = toBind.length; i; ) {
|
6289 |
+
this.removeEventListener( toBind[--i], handler, false );
|
6290 |
+
}
|
6291 |
+
} else {
|
6292 |
+
this.onmousewheel = null;
|
6293 |
+
}
|
6294 |
+
// Clean up the data we added to the element
|
6295 |
+
$.removeData(this, 'mousewheel-line-height');
|
6296 |
+
$.removeData(this, 'mousewheel-page-height');
|
6297 |
+
},
|
6298 |
+
|
6299 |
+
getLineHeight: function(elem) {
|
6300 |
+
var $elem = $(elem),
|
6301 |
+
$parent = $elem['offsetParent' in $.fn ? 'offsetParent' : 'parent']();
|
6302 |
+
if (!$parent.length) {
|
6303 |
+
$parent = $('body');
|
6304 |
+
}
|
6305 |
+
return parseInt($parent.css('fontSize'), 10) || parseInt($elem.css('fontSize'), 10) || 16;
|
6306 |
+
},
|
6307 |
+
|
6308 |
+
getPageHeight: function(elem) {
|
6309 |
+
return $(elem).height();
|
6310 |
+
},
|
6311 |
+
|
6312 |
+
settings: {
|
6313 |
+
adjustOldDeltas: true, // see shouldAdjustOldDeltas() below
|
6314 |
+
normalizeOffset: true // calls getBoundingClientRect for each event
|
6315 |
+
}
|
6316 |
+
};
|
6317 |
+
|
6318 |
+
$.fn.extend({
|
6319 |
+
mousewheel: function(fn) {
|
6320 |
+
return fn ? this.bind('mousewheel', fn) : this.trigger('mousewheel');
|
6321 |
+
},
|
6322 |
+
|
6323 |
+
unmousewheel: function(fn) {
|
6324 |
+
return this.unbind('mousewheel', fn);
|
6325 |
+
}
|
6326 |
+
});
|
6327 |
+
|
6328 |
+
|
6329 |
+
function handler(event) {
|
6330 |
+
var orgEvent = event || window.event,
|
6331 |
+
args = slice.call(arguments, 1),
|
6332 |
+
delta = 0,
|
6333 |
+
deltaX = 0,
|
6334 |
+
deltaY = 0,
|
6335 |
+
absDelta = 0,
|
6336 |
+
offsetX = 0,
|
6337 |
+
offsetY = 0;
|
6338 |
+
event = $.event.fix(orgEvent);
|
6339 |
+
event.type = 'mousewheel';
|
6340 |
+
|
6341 |
+
// Old school scrollwheel delta
|
6342 |
+
if ( 'detail' in orgEvent ) { deltaY = orgEvent.detail * -1; }
|
6343 |
+
if ( 'wheelDelta' in orgEvent ) { deltaY = orgEvent.wheelDelta; }
|
6344 |
+
if ( 'wheelDeltaY' in orgEvent ) { deltaY = orgEvent.wheelDeltaY; }
|
6345 |
+
if ( 'wheelDeltaX' in orgEvent ) { deltaX = orgEvent.wheelDeltaX * -1; }
|
6346 |
+
|
6347 |
+
// Firefox < 17 horizontal scrolling related to DOMMouseScroll event
|
6348 |
+
if ( 'axis' in orgEvent && orgEvent.axis === orgEvent.HORIZONTAL_AXIS ) {
|
6349 |
+
deltaX = deltaY * -1;
|
6350 |
+
deltaY = 0;
|
6351 |
+
}
|
6352 |
+
|
6353 |
+
// Set delta to be deltaY or deltaX if deltaY is 0 for backwards compatabilitiy
|
6354 |
+
delta = deltaY === 0 ? deltaX : deltaY;
|
6355 |
+
|
6356 |
+
// New school wheel delta (wheel event)
|
6357 |
+
if ( 'deltaY' in orgEvent ) {
|
6358 |
+
deltaY = orgEvent.deltaY * -1;
|
6359 |
+
delta = deltaY;
|
6360 |
+
}
|
6361 |
+
if ( 'deltaX' in orgEvent ) {
|
6362 |
+
deltaX = orgEvent.deltaX;
|
6363 |
+
if ( deltaY === 0 ) { delta = deltaX * -1; }
|
6364 |
+
}
|
6365 |
+
|
6366 |
+
// No change actually happened, no reason to go any further
|
6367 |
+
if ( deltaY === 0 && deltaX === 0 ) { return; }
|
6368 |
+
|
6369 |
+
// Need to convert lines and pages to pixels if we aren't already in pixels
|
6370 |
+
// There are three delta modes:
|
6371 |
+
// * deltaMode 0 is by pixels, nothing to do
|
6372 |
+
// * deltaMode 1 is by lines
|
6373 |
+
// * deltaMode 2 is by pages
|
6374 |
+
if ( orgEvent.deltaMode === 1 ) {
|
6375 |
+
var lineHeight = $.data(this, 'mousewheel-line-height');
|
6376 |
+
delta *= lineHeight;
|
6377 |
+
deltaY *= lineHeight;
|
6378 |
+
deltaX *= lineHeight;
|
6379 |
+
} else if ( orgEvent.deltaMode === 2 ) {
|
6380 |
+
var pageHeight = $.data(this, 'mousewheel-page-height');
|
6381 |
+
delta *= pageHeight;
|
6382 |
+
deltaY *= pageHeight;
|
6383 |
+
deltaX *= pageHeight;
|
6384 |
+
}
|
6385 |
+
|
6386 |
+
// Store lowest absolute delta to normalize the delta values
|
6387 |
+
absDelta = Math.max( Math.abs(deltaY), Math.abs(deltaX) );
|
6388 |
+
|
6389 |
+
if ( !lowestDelta || absDelta < lowestDelta ) {
|
6390 |
+
lowestDelta = absDelta;
|
6391 |
+
|
6392 |
+
// Adjust older deltas if necessary
|
6393 |
+
if ( shouldAdjustOldDeltas(orgEvent, absDelta) ) {
|
6394 |
+
lowestDelta /= 40;
|
6395 |
+
}
|
6396 |
+
}
|
6397 |
+
|
6398 |
+
// Adjust older deltas if necessary
|
6399 |
+
if ( shouldAdjustOldDeltas(orgEvent, absDelta) ) {
|
6400 |
+
// Divide all the things by 40!
|
6401 |
+
delta /= 40;
|
6402 |
+
deltaX /= 40;
|
6403 |
+
deltaY /= 40;
|
6404 |
+
}
|
6405 |
+
|
6406 |
+
// Get a whole, normalized value for the deltas
|
6407 |
+
delta = Math[ delta >= 1 ? 'floor' : 'ceil' ](delta / lowestDelta);
|
6408 |
+
deltaX = Math[ deltaX >= 1 ? 'floor' : 'ceil' ](deltaX / lowestDelta);
|
6409 |
+
deltaY = Math[ deltaY >= 1 ? 'floor' : 'ceil' ](deltaY / lowestDelta);
|
6410 |
+
|
6411 |
+
// Normalise offsetX and offsetY properties
|
6412 |
+
if ( special.settings.normalizeOffset && this.getBoundingClientRect ) {
|
6413 |
+
var boundingRect = this.getBoundingClientRect();
|
6414 |
+
offsetX = event.clientX - boundingRect.left;
|
6415 |
+
offsetY = event.clientY - boundingRect.top;
|
6416 |
+
}
|
6417 |
+
|
6418 |
+
// Add information to the event object
|
6419 |
+
event.deltaX = deltaX;
|
6420 |
+
event.deltaY = deltaY;
|
6421 |
+
event.deltaFactor = lowestDelta;
|
6422 |
+
event.offsetX = offsetX;
|
6423 |
+
event.offsetY = offsetY;
|
6424 |
+
// Go ahead and set deltaMode to 0 since we converted to pixels
|
6425 |
+
// Although this is a little odd since we overwrite the deltaX/Y
|
6426 |
+
// properties with normalized deltas.
|
6427 |
+
event.deltaMode = 0;
|
6428 |
+
|
6429 |
+
// Add event and delta to the front of the arguments
|
6430 |
+
args.unshift(event, delta, deltaX, deltaY);
|
6431 |
+
|
6432 |
+
// Clearout lowestDelta after sometime to better
|
6433 |
+
// handle multiple device types that give different
|
6434 |
+
// a different lowestDelta
|
6435 |
+
// Ex: trackpad = 3 and mouse wheel = 120
|
6436 |
+
if (nullLowestDeltaTimeout) { clearTimeout(nullLowestDeltaTimeout); }
|
6437 |
+
nullLowestDeltaTimeout = setTimeout(nullLowestDelta, 200);
|
6438 |
+
|
6439 |
+
return ($.event.dispatch || $.event.handle).apply(this, args);
|
6440 |
+
}
|
6441 |
+
|
6442 |
+
function nullLowestDelta() {
|
6443 |
+
lowestDelta = null;
|
6444 |
+
}
|
6445 |
+
|
6446 |
+
function shouldAdjustOldDeltas(orgEvent, absDelta) {
|
6447 |
+
// If this is an older event and the delta is divisable by 120,
|
6448 |
+
// then we are assuming that the browser is treating this as an
|
6449 |
+
// older mouse wheel event and that we should divide the deltas
|
6450 |
+
// by 40 to try and get a more usable deltaFactor.
|
6451 |
+
// Side note, this actually impacts the reported scroll distance
|
6452 |
+
// in older browsers and can cause scrolling to be slower than native.
|
6453 |
+
// Turn this off by setting $.event.special.mousewheel.settings.adjustOldDeltas to false.
|
6454 |
+
return special.settings.adjustOldDeltas && orgEvent.type === 'mousewheel' && absDelta % 120 === 0;
|
6455 |
+
}
|
6456 |
+
|
6457 |
+
}));
|
6458 |
+
|
6459 |
+
S2.define('jquery.select2',[
|
6460 |
+
'jquery',
|
6461 |
+
'jquery-mousewheel',
|
6462 |
+
|
6463 |
+
'./select2/core',
|
6464 |
+
'./select2/defaults'
|
6465 |
+
], function ($, _, Select2, Defaults) {
|
6466 |
+
if ($.fn.selectWoo == null) {
|
6467 |
+
// All methods that should return the element
|
6468 |
+
var thisMethods = ['open', 'close', 'destroy'];
|
6469 |
+
|
6470 |
+
$.fn.selectWoo = function (options) {
|
6471 |
+
options = options || {};
|
6472 |
+
|
6473 |
+
if (typeof options === 'object') {
|
6474 |
+
this.each(function () {
|
6475 |
+
var instanceOptions = $.extend(true, {}, options);
|
6476 |
+
|
6477 |
+
var instance = new Select2($(this), instanceOptions);
|
6478 |
+
});
|
6479 |
+
|
6480 |
+
return this;
|
6481 |
+
} else if (typeof options === 'string') {
|
6482 |
+
var ret;
|
6483 |
+
var args = Array.prototype.slice.call(arguments, 1);
|
6484 |
+
|
6485 |
+
this.each(function () {
|
6486 |
+
var instance = $(this).data('select2');
|
6487 |
+
|
6488 |
+
if (instance == null && window.console && console.error) {
|
6489 |
+
console.error(
|
6490 |
+
'The select2(\'' + options + '\') method was called on an ' +
|
6491 |
+
'element that is not using Select2.'
|
6492 |
+
);
|
6493 |
+
}
|
6494 |
+
|
6495 |
+
ret = instance[options].apply(instance, args);
|
6496 |
+
});
|
6497 |
+
|
6498 |
+
// Check if we should be returning `this`
|
6499 |
+
if ($.inArray(options, thisMethods) > -1) {
|
6500 |
+
return this;
|
6501 |
+
}
|
6502 |
+
|
6503 |
+
return ret;
|
6504 |
+
} else {
|
6505 |
+
throw new Error('Invalid arguments for Select2: ' + options);
|
6506 |
+
}
|
6507 |
+
};
|
6508 |
+
}
|
6509 |
+
|
6510 |
+
if ($.fn.select2 != null && $.fn.select2.defaults != null) {
|
6511 |
+
$.fn.selectWoo.defaults = $.fn.select2.defaults;
|
6512 |
+
}
|
6513 |
+
|
6514 |
+
if ($.fn.selectWoo.defaults == null) {
|
6515 |
+
$.fn.selectWoo.defaults = Defaults;
|
6516 |
+
}
|
6517 |
+
|
6518 |
+
// Also register selectWoo under select2 if select2 is not already present.
|
6519 |
+
$.fn.select2 = $.fn.select2 || $.fn.selectWoo;
|
6520 |
+
|
6521 |
+
return Select2;
|
6522 |
+
});
|
6523 |
+
|
6524 |
+
// Return the AMD loader configuration so it can be used outside of this file
|
6525 |
+
return {
|
6526 |
+
define: S2.define,
|
6527 |
+
require: S2.require
|
6528 |
+
};
|
6529 |
+
}());
|
6530 |
+
|
6531 |
+
// Autoload the jQuery bindings
|
6532 |
+
// We know that all of the modules exist above this, so we're safe
|
6533 |
+
var select2 = S2.require('jquery.select2');
|
6534 |
+
|
6535 |
+
// Hold the AMD module references on the jQuery function that was just loaded
|
6536 |
+
// This allows Select2 to use the internal loader outside of this file, such
|
6537 |
+
// as in the language files.
|
6538 |
+
jQuery.fn.select2.amd = S2;
|
6539 |
+
jQuery.fn.selectWoo.amd = S2;
|
6540 |
+
|
6541 |
+
// Return the Select2 instance for anyone who is importing it.
|
6542 |
+
return select2;
|
6543 |
+
}));
|
assets/js/selectWoo/selectWoo.full.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
/*! Select2 5.0.0 | https://github.com/select2/select2/blob/master/LICENSE.md */!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c),c}:a(jQuery)}(function(a){var b=function(){if(a&&a.fn&&a.fn.select2&&a.fn.select2.amd)var b=a.fn.select2.amd;var b;return function(){if(!b||!b.requirejs){b?c=b:b={};var a,c,d;!function(b){function e(a,b){return v.call(a,b)}function f(a,b){var c,d,e,f,g,h,i,j,k,l,m,n,o=b&&b.split("/"),p=t.map,q=p&&p["*"]||{};if(a){for(a=a.split("/"),g=a.length-1,t.nodeIdCompat&&x.test(a[g])&&(a[g]=a[g].replace(x,"")),"."===a[0].charAt(0)&&o&&(n=o.slice(0,o.length-1),a=n.concat(a)),k=0;k<a.length;k++)if("."===(m=a[k]))a.splice(k,1),k-=1;else if(".."===m){if(0===k||1===k&&".."===a[2]||".."===a[k-1])continue;k>0&&(a.splice(k-1,2),k-=2)}a=a.join("/")}if((o||q)&&p){for(c=a.split("/"),k=c.length;k>0;k-=1){if(d=c.slice(0,k).join("/"),o)for(l=o.length;l>0;l-=1)if((e=p[o.slice(0,l).join("/")])&&(e=e[d])){f=e,h=k;break}if(f)break;!i&&q&&q[d]&&(i=q[d],j=k)}!f&&i&&(f=i,h=j),f&&(c.splice(0,h,f),a=c.join("/"))}return a}function g(a,c){return function(){var d=w.call(arguments,0);return"string"!=typeof d[0]&&1===d.length&&d.push(null),o.apply(b,d.concat([a,c]))}}function h(a){return function(b){return f(b,a)}}function i(a){return function(b){r[a]=b}}function j(a){if(e(s,a)){var c=s[a];delete s[a],u[a]=!0,n.apply(b,c)}if(!e(r,a)&&!e(u,a))throw new Error("No "+a);return r[a]}function k(a){var b,c=a?a.indexOf("!"):-1;return c>-1&&(b=a.substring(0,c),a=a.substring(c+1,a.length)),[b,a]}function l(a){return a?k(a):[]}function m(a){return function(){return t&&t.config&&t.config[a]||{}}}var n,o,p,q,r={},s={},t={},u={},v=Object.prototype.hasOwnProperty,w=[].slice,x=/\.js$/;p=function(a,b){var c,d=k(a),e=d[0],g=b[1];return a=d[1],e&&(e=f(e,g),c=j(e)),e?a=c&&c.normalize?c.normalize(a,h(g)):f(a,g):(a=f(a,g),d=k(a),e=d[0],a=d[1],e&&(c=j(e))),{f:e?e+"!"+a:a,n:a,pr:e,p:c}},q={require:function(a){return g(a)},exports:function(a){var b=r[a];return void 0!==b?b:r[a]={}},module:function(a){return{id:a,uri:"",exports:r[a],config:m(a)}}},n=function(a,c,d,f){var h,k,m,n,o,t,v,w=[],x=typeof d;if(f=f||a,t=l(f),"undefined"===x||"function"===x){for(c=!c.length&&d.length?["require","exports","module"]:c,o=0;o<c.length;o+=1)if(n=p(c[o],t),"require"===(k=n.f))w[o]=q.require(a);else if("exports"===k)w[o]=q.exports(a),v=!0;else if("module"===k)h=w[o]=q.module(a);else if(e(r,k)||e(s,k)||e(u,k))w[o]=j(k);else{if(!n.p)throw new Error(a+" missing "+k);n.p.load(n.n,g(f,!0),i(k),{}),w[o]=r[k]}m=d?d.apply(r[a],w):void 0,a&&(h&&h.exports!==b&&h.exports!==r[a]?r[a]=h.exports:m===b&&v||(r[a]=m))}else a&&(r[a]=d)},a=c=o=function(a,c,d,e,f){if("string"==typeof a)return q[a]?q[a](c):j(p(a,l(c)).f);if(!a.splice){if(t=a,t.deps&&o(t.deps,t.callback),!c)return;c.splice?(a=c,c=d,d=null):a=b}return c=c||function(){},"function"==typeof d&&(d=e,e=f),e?n(b,a,c,d):setTimeout(function(){n(b,a,c,d)},4),o},o.config=function(a){return o(a)},a._defined=r,d=function(a,b,c){if("string"!=typeof a)throw new Error("See almond README: incorrect module build, no module name");b.splice||(c=b,b=[]),e(r,a)||e(s,a)||(s[a]=[a,b,c])},d.amd={jQuery:!0}}(),b.requirejs=a,b.require=c,b.define=d}}(),b.define("almond",function(){}),b.define("jquery",[],function(){var b=a||$;return null==b&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),b}),b.define("select2/utils",["jquery"],function(a){function b(a){var b=a.prototype,c=[];for(var d in b){"function"==typeof b[d]&&("constructor"!==d&&c.push(d))}return c}var c={};c.Extend=function(a,b){function c(){this.constructor=a}var d={}.hasOwnProperty;for(var e in b)d.call(b,e)&&(a[e]=b[e]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},c.Decorate=function(a,c){function d(){var b=Array.prototype.unshift,d=c.prototype.constructor.length,e=a.prototype.constructor;d>0&&(b.call(arguments,a.prototype.constructor),e=c.prototype.constructor),e.apply(this,arguments)}function e(){this.constructor=d}var f=b(c),g=b(a);c.displayName=a.displayName,d.prototype=new e;for(var h=0;h<g.length;h++){var i=g[h];d.prototype[i]=a.prototype[i]}for(var j=(function(a){var b=function(){};a in d.prototype&&(b=d.prototype[a]);var e=c.prototype[a];return function(){return Array.prototype.unshift.call(arguments,b),e.apply(this,arguments)}}),k=0;k<f.length;k++){var l=f[k];d.prototype[l]=j(l)}return d};var d=function(){this.listeners={}};return d.prototype.on=function(a,b){this.listeners=this.listeners||{},a in this.listeners?this.listeners[a].push(b):this.listeners[a]=[b]},d.prototype.trigger=function(a){var b=Array.prototype.slice,c=b.call(arguments,1);this.listeners=this.listeners||{},null==c&&(c=[]),0===c.length&&c.push({}),c[0]._type=a,a in this.listeners&&this.invoke(this.listeners[a],b.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},d.prototype.invoke=function(a,b){for(var c=0,d=a.length;c<d;c++)a[c].apply(this,b)},c.Observable=d,c.generateChars=function(a){for(var b="",c=0;c<a;c++){b+=Math.floor(36*Math.random()).toString(36)}return b},c.bind=function(a,b){return function(){a.apply(b,arguments)}},c._convertData=function(a){for(var b in a){var c=b.split("-"),d=a;if(1!==c.length){for(var e=0;e<c.length;e++){var f=c[e];f=f.substring(0,1).toLowerCase()+f.substring(1),f in d||(d[f]={}),e==c.length-1&&(d[f]=a[b]),d=d[f]}delete a[b]}}return a},c.hasScroll=function(b,c){var d=a(c),e=c.style.overflowX,f=c.style.overflowY;return(e!==f||"hidden"!==f&&"visible"!==f)&&("scroll"===e||"scroll"===f||(d.innerHeight()<c.scrollHeight||d.innerWidth()<c.scrollWidth))},c.escapeMarkup=function(a){var b={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof a?a:String(a).replace(/[&<>"'\/\\]/g,function(a){return b[a]})},c.appendMany=function(b,c){if("1.7"===a.fn.jquery.substr(0,3)){var d=a();a.map(c,function(a){d=d.add(a)}),c=d}b.append(c)},c.isTouchscreen=function(){return void 0===c._isTouchscreenCache&&(c._isTouchscreenCache="ontouchstart"in document.documentElement),c._isTouchscreenCache},c}),b.define("select2/results",["jquery","./utils"],function(a,b){function c(a,b,d){this.$element=a,this.data=d,this.options=b,c.__super__.constructor.call(this)}return b.Extend(c,b.Observable),c.prototype.render=function(){var b=a('<ul class="select2-results__options" role="listbox" tabindex="-1"></ul>');return this.options.get("multiple")&&b.attr("aria-multiselectable","true"),this.$results=b,b},c.prototype.clear=function(){this.$results.empty()},c.prototype.displayMessage=function(b){var c=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var d=a('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),e=this.options.get("translations").get(b.message);d.append(c(e(b.args))),d[0].className+=" select2-results__message",this.$results.append(d)},c.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},c.prototype.append=function(a){this.hideLoading();var b=[];if(null==a.results||0===a.results.length)return void(0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"}));a.results=this.sort(a.results);for(var c=0;c<a.results.length;c++){var d=a.results[c],e=this.option(d);b.push(e)}this.$results.append(b)},c.prototype.position=function(a,b){b.find(".select2-results").append(a)},c.prototype.sort=function(a){return this.options.get("sorter")(a)},c.prototype.highlightFirstItem=function(){var a=this.$results.find(".select2-results__option[data-selected]"),b=a.filter("[data-selected=true]");b.length>0?b.first().trigger("mouseenter"):a.first().trigger("mouseenter"),this.ensureHighlightVisible()},c.prototype.setClasses=function(){var b=this;this.data.current(function(c){var d=a.map(c,function(a){return a.id.toString()});b.$results.find(".select2-results__option[data-selected]").each(function(){var b=a(this),c=a.data(this,"data"),e=""+c.id;null!=c.element&&c.element.selected||null==c.element&&a.inArray(e,d)>-1?b.attr("data-selected","true"):b.attr("data-selected","false")})})},c.prototype.showLoading=function(a){this.hideLoading();var b=this.options.get("translations").get("searching"),c={disabled:!0,loading:!0,text:b(a)},d=this.option(c);d.className+=" loading-results",this.$results.prepend(d)},c.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},c.prototype.option=function(b){var c=document.createElement("li");c.className="select2-results__option";var d={role:"option","data-selected":"false",tabindex:-1};b.disabled&&(delete d["data-selected"],d["aria-disabled"]="true"),null==b.id&&delete d["data-selected"],null!=b._resultId&&(c.id=b._resultId),b.title&&(c.title=b.title),b.children&&(d["aria-label"]=b.text,delete d["data-selected"]);for(var e in d){var f=d[e];c.setAttribute(e,f)}if(b.children){var g=a(c),h=document.createElement("strong");h.className="select2-results__group";var i=a(h);this.template(b,h),i.attr("role","presentation");for(var j=[],k=0;k<b.children.length;k++){var l=b.children[k],m=this.option(l);j.push(m)}var n=a("<ul></ul>",{class:"select2-results__options select2-results__options--nested",role:"listbox"});n.append(j),g.attr("role","list"),g.append(h),g.append(n)}else this.template(b,c);return a.data(c,"data",b),c},c.prototype.bind=function(b,c){var d=this,e=b.id+"-results";this.$results.attr("id",e),b.on("results:all",function(a){d.clear(),d.append(a.data),b.isOpen()&&(d.setClasses(),d.highlightFirstItem())}),b.on("results:append",function(a){d.append(a.data),b.isOpen()&&d.setClasses()}),b.on("query",function(a){d.hideMessages(),d.showLoading(a)}),b.on("select",function(){b.isOpen()&&(d.setClasses(),d.highlightFirstItem())}),b.on("unselect",function(){b.isOpen()&&(d.setClasses(),d.highlightFirstItem())}),b.on("open",function(){d.$results.attr("aria-expanded","true"),d.$results.attr("aria-hidden","false"),d.setClasses(),d.ensureHighlightVisible()}),b.on("close",function(){d.$results.attr("aria-expanded","false"),d.$results.attr("aria-hidden","true"),d.$results.removeAttr("aria-activedescendant")}),b.on("results:toggle",function(){var a=d.getHighlightedResults();0!==a.length&&a.trigger("mouseup")}),b.on("results:select",function(){var a=d.getHighlightedResults();if(0!==a.length){var b=a.data("data");"true"==a.attr("data-selected")?d.trigger("close",{}):d.trigger("select",{data:b})}}),b.on("results:previous",function(){var a=d.getHighlightedResults(),b=d.$results.find("[data-selected]"),c=b.index(a);if(0!==c){var e=c-1;0===a.length&&(e=0);var f=b.eq(e);f.trigger("mouseenter");var g=d.$results.offset().top,h=f.offset().top,i=d.$results.scrollTop()+(h-g);0===e?d.$results.scrollTop(0):h-g<0&&d.$results.scrollTop(i)}}),b.on("results:next",function(){var a=d.getHighlightedResults(),b=d.$results.find("[data-selected]"),c=b.index(a),e=c+1;if(!(e>=b.length)){var f=b.eq(e);f.trigger("mouseenter");var g=d.$results.offset().top+d.$results.outerHeight(!1),h=f.offset().top+f.outerHeight(!1),i=d.$results.scrollTop()+h-g;0===e?d.$results.scrollTop(0):h>g&&d.$results.scrollTop(i)}}),b.on("results:focus",function(a){a.element.addClass("select2-results__option--highlighted").attr("aria-selected","true"),d.$results.attr("aria-activedescendant",a.element.attr("id"))}),b.on("results:message",function(a){d.displayMessage(a)}),a.fn.mousewheel&&this.$results.on("mousewheel",function(a){var b=d.$results.scrollTop(),c=d.$results.get(0).scrollHeight-b+a.deltaY,e=a.deltaY>0&&b-a.deltaY<=0,f=a.deltaY<0&&c<=d.$results.height();e?(d.$results.scrollTop(0),a.preventDefault(),a.stopPropagation()):f&&(d.$results.scrollTop(d.$results.get(0).scrollHeight-d.$results.height()),a.preventDefault(),a.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[data-selected]",function(b){var c=a(this),e=c.data("data");if("true"===c.attr("data-selected"))return void(d.options.get("multiple")?d.trigger("unselect",{originalEvent:b,data:e}):d.trigger("close",{}));d.trigger("select",{originalEvent:b,data:e})}),this.$results.on("mouseenter",".select2-results__option[data-selected]",function(b){var c=a(this).data("data");d.getHighlightedResults().removeClass("select2-results__option--highlighted").attr("aria-selected","false"),d.trigger("results:focus",{data:c,element:a(this)})})},c.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},c.prototype.destroy=function(){this.$results.remove()},c.prototype.ensureHighlightVisible=function(){var a=this.getHighlightedResults();if(0!==a.length){var b=this.$results.find("[data-selected]"),c=b.index(a),d=this.$results.offset().top,e=a.offset().top,f=this.$results.scrollTop()+(e-d),g=e-d;f-=2*a.outerHeight(!1),c<=2?this.$results.scrollTop(0):(g>this.$results.outerHeight()||g<0)&&this.$results.scrollTop(f)}},c.prototype.template=function(b,c){var d=this.options.get("templateResult"),e=this.options.get("escapeMarkup"),f=d(b,c);null==f?c.style.display="none":"string"==typeof f?c.innerHTML=e(f):a(c).append(f)},c}),b.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}}),b.define("select2/selection/base",["jquery","../utils","../keys"],function(a,b,c){function d(a,b){this.$element=a,this.options=b,d.__super__.constructor.call(this)}return b.Extend(d,b.Observable),d.prototype.render=function(){var b=a('<span class="select2-selection" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),b.attr("title",this.$element.attr("title")),b.attr("tabindex",this._tabindex),this.$selection=b,b},d.prototype.bind=function(a,b){var d=this,e=(a.id,a.id+"-results");this.options.get("minimumResultsForSearch");this.container=a,this.$selection.on("focus",function(a){d.trigger("focus",a)}),this.$selection.on("blur",function(a){d._handleBlur(a)}),this.$selection.on("keydown",function(a){d.trigger("keypress",a),a.which===c.SPACE&&a.preventDefault()}),a.on("results:focus",function(a){d.$selection.attr("aria-activedescendant",a.data._resultId)}),a.on("selection:update",function(a){d.update(a.data)}),a.on("open",function(){d.$selection.attr("aria-expanded","true"),d.$selection.attr("aria-owns",e),d._attachCloseHandler(a)}),a.on("close",function(){d.$selection.attr("aria-expanded","false"),d.$selection.removeAttr("aria-activedescendant"),d.$selection.removeAttr("aria-owns"),window.setTimeout(function(){d.$selection.focus()},1),d._detachCloseHandler(a)}),a.on("enable",function(){d.$selection.attr("tabindex",d._tabindex)}),a.on("disable",function(){d.$selection.attr("tabindex","-1")})},d.prototype._handleBlur=function(b){var c=this;window.setTimeout(function(){document.activeElement==c.$selection[0]||a.contains(c.$selection[0],document.activeElement)||c.trigger("blur",b)},1)},d.prototype._attachCloseHandler=function(b){a(document.body).on("mousedown.select2."+b.id,function(b){var c=a(b.target),d=c.closest(".select2");a(".select2.select2-container--open").each(function(){var b=a(this);this!=d[0]&&b.data("element").select2("close")})})},d.prototype._detachCloseHandler=function(b){a(document.body).off("mousedown.select2."+b.id)},d.prototype.position=function(a,b){b.find(".selection").append(a)},d.prototype.destroy=function(){this._detachCloseHandler(this.container)},d.prototype.update=function(a){throw new Error("The `update` method must be defined in child classes.")},d}),b.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(a,b,c,d){function e(){e.__super__.constructor.apply(this,arguments)}return c.Extend(e,b),e.prototype.render=function(){var a=e.__super__.render.call(this);return a.addClass("select2-selection--single"),a.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),a},e.prototype.bind=function(a,b){var c=this;e.__super__.bind.apply(this,arguments);var d=a.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",d).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",d),this.$selection.attr("role","combobox"),this.$selection.on("mousedown",function(a){1===a.which&&c.trigger("toggle",{originalEvent:a})}),this.$selection.on("focus",function(a){}),this.$selection.on("keydown",function(b){!a.isOpen()&&b.which>=48&&b.which<=90&&a.open()}),this.$selection.on("blur",function(a){}),a.on("focus",function(b){a.isOpen()||c.$selection.focus()}),a.on("selection:update",function(a){c.update(a.data)})},e.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},e.prototype.display=function(a,b){var c=this.options.get("templateSelection");return this.options.get("escapeMarkup")(c(a,b))},e.prototype.selectionContainer=function(){return a("<span></span>")},e.prototype.update=function(a){if(0===a.length)return void this.clear();var b=a[0],c=this.$selection.find(".select2-selection__rendered"),d=this.display(b,c);c.empty().append(d),c.prop("title",b.title||b.text)},e}),b.define("select2/selection/multiple",["jquery","./base","../utils"],function(a,b,c){function d(a,b){d.__super__.constructor.apply(this,arguments)}return c.Extend(d,b),d.prototype.render=function(){var a=d.__super__.render.call(this);return a.addClass("select2-selection--multiple"),a.html('<ul class="select2-selection__rendered" aria-live="polite" aria-relevant="additions removals" aria-atomic="true"></ul>'),a},d.prototype.bind=function(b,c){var e=this;d.__super__.bind.apply(this,arguments),this.$selection.on("click",function(a){e.trigger("toggle",{originalEvent:a})}),this.$selection.on("click",".select2-selection__choice__remove",function(b){if(!e.options.get("disabled")){var c=a(this),d=c.parent(),f=d.data("data");e.trigger("unselect",{originalEvent:b,data:f})}})},d.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},d.prototype.display=function(a,b){var c=this.options.get("templateSelection");return this.options.get("escapeMarkup")(c(a,b))},d.prototype.selectionContainer=function(){return a('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation" aria-hidden="true">×</span></li>')},d.prototype.update=function(a){if(this.clear(),0!==a.length){for(var b=[],d=0;d<a.length;d++){var e=a[d],f=this.selectionContainer(),g=this.display(e,f);f.append(g),f.prop("title",e.title||e.text),f.data("data",e),b.push(f)}var h=this.$selection.find(".select2-selection__rendered");c.appendMany(h,b)}},d}),b.define("select2/selection/placeholder",["../utils"],function(a){function b(a,b,c){this.placeholder=this.normalizePlaceholder(c.get("placeholder")),a.call(this,b,c)}return b.prototype.normalizePlaceholder=function(a,b){return"string"==typeof b&&(b={id:"",text:b}),b},b.prototype.createPlaceholder=function(a,b){var c=this.selectionContainer();return c.html(this.display(b)),c.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),c},b.prototype.update=function(a,b){var c=1==b.length&&b[0].id!=this.placeholder.id;if(b.length>1||c)return a.call(this,b);this.clear();var d=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(d)},b}),b.define("select2/selection/allowClear",["jquery","../keys"],function(a,b){function c(){}return c.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(a){d._handleClear(a)}),b.on("keypress",function(a){d._handleKeyboardClear(a,b)})},c.prototype._handleClear=function(a,b){if(!this.options.get("disabled")){var c=this.$selection.find(".select2-selection__clear");if(0!==c.length){b.stopPropagation();for(var d=c.data("data"),e=0;e<d.length;e++){var f={data:d[e]};if(this.trigger("unselect",f),f.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},c.prototype._handleKeyboardClear=function(a,c,d){d.isOpen()||c.which!=b.DELETE&&c.which!=b.BACKSPACE||this._handleClear(c)},c.prototype.update=function(b,c){if(b.call(this,c),!(this.$selection.find(".select2-selection__placeholder").length>0||0===c.length)){var d=a('<span class="select2-selection__clear">×</span>');d.data("data",c),this.$selection.find(".select2-selection__rendered").prepend(d)}},c}),b.define("select2/selection/search",["jquery","../utils","../keys"],function(a,b,c){function d(a,b,c){a.call(this,b,c)}return d.prototype.render=function(b){var c=a('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="text" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=c,this.$search=c.find("input");var d=b.call(this);return this._transferTabIndex(),d},d.prototype.bind=function(a,b,d){var e=this,f=b.id+"-results";a.call(this,b,d),b.on("open",function(){e.$search.attr("aria-owns",f),e.$search.trigger("focus")}),b.on("close",function(){e.$search.val(""),e.$search.removeAttr("aria-activedescendant"),e.$search.removeAttr("aria-owns"),e.$search.trigger("focus")}),b.on("enable",function(){e.$search.prop("disabled",!1),e._transferTabIndex()}),b.on("disable",function(){e.$search.prop("disabled",!0)}),b.on("focus",function(a){e.$search.trigger("focus")}),b.on("results:focus",function(a){e.$search.attr("aria-activedescendant",a.data._resultId)}),this.$selection.on("focusin",".select2-search--inline",function(a){e.trigger("focus",a)}),this.$selection.on("focusout",".select2-search--inline",function(a){e._handleBlur(a)}),this.$selection.on("keydown",".select2-search--inline",function(a){if(a.stopPropagation(),e.trigger("keypress",a),e._keyUpPrevented=a.isDefaultPrevented(),a.which===c.BACKSPACE&&""===e.$search.val()){var b=e.$searchContainer.prev(".select2-selection__choice");if(b.length>0){var d=b.data("data");e.searchRemoveChoice(d),a.preventDefault()}}});var g=document.documentMode,h=g&&g<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(a){if(h)return void e.$selection.off("input.search input.searchcheck");e.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(a){if(h&&"input"===a.type)return void e.$selection.off("input.search input.searchcheck");var b=a.which;b!=c.SHIFT&&b!=c.CTRL&&b!=c.ALT&&b!=c.TAB&&e.handleSearch(a)})},d.prototype._transferTabIndex=function(a){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},d.prototype.createPlaceholder=function(a,b){this.$search.attr("placeholder",b.text)},d.prototype.update=function(a,b){var c=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),a.call(this,b),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),c&&this.$search.focus()},d.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var a=this.$search.val();this.trigger("query",{term:a})}this._keyUpPrevented=!1},d.prototype.searchRemoveChoice=function(a,b){this.trigger("unselect",{data:b}),this.$search.val(b.text),this.handleSearch()},d.prototype.resizeSearch=function(){this.$search.css("width","25px");var a="";if(""!==this.$search.attr("placeholder"))a=this.$selection.find(".select2-selection__rendered").innerWidth();else{a=.75*(this.$search.val().length+1)+"em"}this.$search.css("width",a)},d}),b.define("select2/selection/eventRelay",["jquery"],function(a){function b(){}return b.prototype.bind=function(b,c,d){var e=this,f=["open","opening","close","closing","select","selecting","unselect","unselecting"],g=["opening","closing","selecting","unselecting"];b.call(this,c,d),c.on("*",function(b,c){if(-1!==a.inArray(b,f)){c=c||{};var d=a.Event("select2:"+b,{params:c});e.$element.trigger(d),-1!==a.inArray(b,g)&&(c.prevented=d.isDefaultPrevented())}})},b}),b.define("select2/translation",["jquery","require"],function(a,b){function c(a){this.dict=a||{}}return c.prototype.all=function(){return this.dict},c.prototype.get=function(a){return this.dict[a]},c.prototype.extend=function(b){this.dict=a.extend({},b.all(),this.dict)},c._cache={},c.loadPath=function(a){if(!(a in c._cache)){var d=b(a);c._cache[a]=d}return new c(c._cache[a])},c}),b.define("select2/diacritics",[],function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"}}),b.define("select2/data/base",["../utils"],function(a){function b(a,c){b.__super__.constructor.call(this)}return a.Extend(b,a.Observable),b.prototype.current=function(a){throw new Error("The `current` method must be defined in child classes.")},b.prototype.query=function(a,b){throw new Error("The `query` method must be defined in child classes.")},b.prototype.bind=function(a,b){},b.prototype.destroy=function(){},b.prototype.generateResultId=function(b,c){var d="";return d+=null!=b?b.id:a.generateChars(4),d+="-result-",d+=a.generateChars(4),null!=c.id?d+="-"+c.id.toString():d+="-"+a.generateChars(4),d},b}),b.define("select2/data/select",["./base","../utils","jquery"],function(a,b,c){function d(a,b){this.$element=a,this.options=b,d.__super__.constructor.call(this)}return b.Extend(d,a),d.prototype.current=function(a){var b=[],d=this;this.$element.find(":selected").each(function(){var a=c(this),e=d.item(a);b.push(e)}),a(b)},d.prototype.select=function(a){var b=this;if(a.selected=!0,c(a.element).is("option"))return a.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(d){var e=[];a=[a],a.push.apply(a,d);for(var f=0;f<a.length;f++){var g=a[f].id;-1===c.inArray(g,e)&&e.push(g)}b.$element.val(e),b.$element.trigger("change")});else{var d=a.id;this.$element.val(d),this.$element.trigger("change")}},d.prototype.unselect=function(a){var b=this;if(this.$element.prop("multiple")){if(a.selected=!1,c(a.element).is("option"))return a.element.selected=!1,void this.$element.trigger("change");this.current(function(d){for(var e=[],f=0;f<d.length;f++){var g=d[f].id;g!==a.id&&-1===c.inArray(g,e)&&e.push(g)}b.$element.val(e),b.$element.trigger("change")})}},d.prototype.bind=function(a,b){var c=this;this.container=a,a.on("select",function(a){c.select(a.data)}),a.on("unselect",function(a){c.unselect(a.data)})},d.prototype.destroy=function(){this.$element.find("*").each(function(){c.removeData(this,"data")})},d.prototype.query=function(a,b){var d=[],e=this;this.$element.children().each(function(){var b=c(this);if(b.is("option")||b.is("optgroup")){var f=e.item(b),g=e.matches(a,f);null!==g&&d.push(g)}}),b({results:d})},d.prototype.addOptions=function(a){b.appendMany(this.$element,a)},d.prototype.option=function(a){var b;a.children?(b=document.createElement("optgroup"),b.label=a.text):(b=document.createElement("option"),void 0!==b.textContent?b.textContent=a.text:b.innerText=a.text),void 0!==a.id&&(b.value=a.id),a.disabled&&(b.disabled=!0),a.selected&&(b.selected=!0),a.title&&(b.title=a.title);var d=c(b),e=this._normalizeItem(a);return e.element=b,c.data(b,"data",e),d},d.prototype.item=function(a){var b={};if(null!=(b=c.data(a[0],"data")))return b;if(a.is("option"))b={id:a.val(),text:a.text(),disabled:a.prop("disabled"),selected:a.prop("selected"),title:a.prop("title")};else if(a.is("optgroup")){b={text:a.prop("label"),children:[],title:a.prop("title")};for(var d=a.children("option"),e=[],f=0;f<d.length;f++){var g=c(d[f]),h=this.item(g);e.push(h)}b.children=e}return b=this._normalizeItem(b),b.element=a[0],c.data(a[0],"data",b),b},d.prototype._normalizeItem=function(a){c.isPlainObject(a)||(a={id:a,text:a}),a=c.extend({},{text:""},a);var b={selected:!1,disabled:!1};return null!=a.id&&(a.id=a.id.toString()),null!=a.text&&(a.text=a.text.toString()),null==a._resultId&&a.id&&(a._resultId=this.generateResultId(this.container,a)),c.extend({},b,a)},d.prototype.matches=function(a,b){return this.options.get("matcher")(a,b)},d}),b.define("select2/data/array",["./select","../utils","jquery"],function(a,b,c){function d(a,b){var c=b.get("data")||[];d.__super__.constructor.call(this,a,b),this.addOptions(this.convertToOptions(c))}return b.Extend(d,a),d.prototype.select=function(a){var b=this.$element.find("option").filter(function(b,c){return c.value==a.id.toString()});0===b.length&&(b=this.option(a),this.addOptions(b)),d.__super__.select.call(this,a)},d.prototype.convertToOptions=function(a){function d(a){return function(){return c(this).val()==a.id}}for(var e=this,f=this.$element.find("option"),g=f.map(function(){return e.item(c(this)).id}).get(),h=[],i=0;i<a.length;i++){var j=this._normalizeItem(a[i]);if(c.inArray(j.id,g)>=0){var k=f.filter(d(j)),l=this.item(k),m=c.extend(!0,{},j,l),n=this.option(m);k.replaceWith(n)}else{var o=this.option(j);if(j.children){var p=this.convertToOptions(j.children);b.appendMany(o,p)}h.push(o)}}return h},d}),b.define("select2/data/ajax",["./array","../utils","jquery"],function(a,b,c){function d(a,b){this.ajaxOptions=this._applyDefaults(b.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),d.__super__.constructor.call(this,a,b)}return b.Extend(d,a),d.prototype._applyDefaults=function(a){var b={data:function(a){return c.extend({},a,{q:a.term})},transport:function(a,b,d){var e=c.ajax(a);return e.then(b),e.fail(d),e}};return c.extend({},b,a,!0)},d.prototype.processResults=function(a){return a},d.prototype.query=function(a,b){function d(){var d=f.transport(f,function(d){var f=e.processResults(d,a);e.options.get("debug")&&window.console&&console.error&&(f&&f.results&&c.isArray(f.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),b(f)},function(){d.status&&"0"===d.status||e.trigger("results:message",{message:"errorLoading"})});e._request=d}var e=this;null!=this._request&&(c.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var f=c.extend({type:"GET"},this.ajaxOptions);"function"==typeof f.url&&(f.url=f.url.call(this.$element,a)),"function"==typeof f.data&&(f.data=f.data.call(this.$element,a)),this.ajaxOptions.delay&&null!=a.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(d,this.ajaxOptions.delay)):d()},d}),b.define("select2/data/tags",["jquery"],function(a){function b(b,c,d){var e=d.get("tags"),f=d.get("createTag");void 0!==f&&(this.createTag=f);var g=d.get("insertTag");if(void 0!==g&&(this.insertTag=g),b.call(this,c,d),a.isArray(e))for(var h=0;h<e.length;h++){var i=e[h],j=this._normalizeItem(i),k=this.option(j);this.$element.append(k)}}return b.prototype.query=function(a,b,c){function d(a,f){for(var g=a.results,h=0;h<g.length;h++){var i=g[h],j=null!=i.children&&!d({results:i.children},!0);if((i.text||"").toUpperCase()===(b.term||"").toUpperCase()||j)return!f&&(a.data=g,void c(a))}if(f)return!0;var k=e.createTag(b);if(null!=k){var l=e.option(k);l.attr("data-select2-tag",!0),e.addOptions([l]),e.insertTag(g,k)}a.results=g,c(a)}var e=this;if(this._removeOldTags(),null==b.term||null!=b.page)return void a.call(this,b,c);a.call(this,b,d)},b.prototype.createTag=function(b,c){var d=a.trim(c.term);return""===d?null:{id:d,text:d}},b.prototype.insertTag=function(a,b,c){b.unshift(c)},b.prototype._removeOldTags=function(b){this._lastTag;this.$element.find("option[data-select2-tag]").each(function(){this.selected||a(this).remove()})},b}),b.define("select2/data/tokenizer",["jquery"],function(a){function b(a,b,c){var d=c.get("tokenizer");void 0!==d&&(this.tokenizer=d),a.call(this,b,c)}return b.prototype.bind=function(a,b,c){a.call(this,b,c),this.$search=b.dropdown.$search||b.selection.$search||c.find(".select2-search__field")},b.prototype.query=function(b,c,d){function e(b){var c=g._normalizeItem(b);if(!g.$element.find("option").filter(function(){return a(this).val()===c.id}).length){var d=g.option(c);d.attr("data-select2-tag",!0),g._removeOldTags(),g.addOptions([d])}f(c)}function f(a){g.trigger("select",{data:a})}var g=this;c.term=c.term||"";var h=this.tokenizer(c,this.options,e);h.term!==c.term&&(this.$search.length&&(this.$search.val(h.term),this.$search.focus()),c.term=h.term),b.call(this,c,d)},b.prototype.tokenizer=function(b,c,d,e){for(var f=d.get("tokenSeparators")||[],g=c.term,h=0,i=this.createTag||function(a){return{id:a.term,text:a.term}};h<g.length;){var j=g[h];if(-1!==a.inArray(j,f)){var k=g.substr(0,h),l=a.extend({},c,{term:k}),m=i(l);null!=m?(e(m),g=g.substr(h+1)||"",h=0):h++}else h++}return{term:g}},b}),b.define("select2/data/minimumInputLength",[],function(){function a(a,b,c){this.minimumInputLength=c.get("minimumInputLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){if(b.term=b.term||"",b.term.length<this.minimumInputLength)return void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:b.term,params:b}});a.call(this,b,c)},a}),b.define("select2/data/maximumInputLength",[],function(){function a(a,b,c){this.maximumInputLength=c.get("maximumInputLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){if(b.term=b.term||"",this.maximumInputLength>0&&b.term.length>this.maximumInputLength)return void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:b.term,params:b}});a.call(this,b,c)},a}),b.define("select2/data/maximumSelectionLength",[],function(){function a(a,b,c){this.maximumSelectionLength=c.get("maximumSelectionLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){var d=this;this.current(function(e){var f=null!=e?e.length:0;if(d.maximumSelectionLength>0&&f>=d.maximumSelectionLength)return void d.trigger("results:message",{message:"maximumSelected",args:{maximum:d.maximumSelectionLength}});a.call(d,b,c)})},a}),b.define("select2/dropdown",["jquery","./utils"],function(a,b){function c(a,b){this.$element=a,this.options=b,c.__super__.constructor.call(this)}return b.Extend(c,b.Observable),c.prototype.render=function(){var b=a('<span class="select2-dropdown"><span class="select2-results"></span></span>');return b.attr("dir",this.options.get("dir")),this.$dropdown=b,b},c.prototype.bind=function(){},c.prototype.position=function(a,b){},c.prototype.destroy=function(){this.$dropdown.remove()},c}),b.define("select2/dropdown/search",["jquery","../utils"],function(a,b){function c(){}return c.prototype.render=function(b){var c=b.call(this),d=a('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="text" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="combobox" aria-autocomplete="list" aria-expanded="true" /></span>');return this.$searchContainer=d,this.$search=d.find("input"),c.prepend(d),c},c.prototype.bind=function(b,c,d){var e=this,f=c.id+"-results";b.call(this,c,d),this.$search.on("keydown",function(a){e.trigger("keypress",a),e._keyUpPrevented=a.isDefaultPrevented()}),this.$search.on("input",function(b){a(this).off("keyup")}),this.$search.on("keyup input",function(a){e.handleSearch(a)}),c.on("open",function(){e.$search.attr("tabindex",0),e.$search.attr("aria-owns",f),e.$search.focus(),window.setTimeout(function(){e.$search.focus()},0)}),c.on("close",function(){e.$search.attr("tabindex",-1),e.$search.removeAttr("aria-activedescendant"),e.$search.removeAttr("aria-owns"),e.$search.val("")}),c.on("focus",function(){c.isOpen()&&e.$search.focus()}),c.on("results:all",function(a){if(null==a.query.term||""===a.query.term){e.showSearch(a)?e.$searchContainer.removeClass("select2-search--hide"):e.$searchContainer.addClass("select2-search--hide")}}),c.on("results:focus",function(a){e.$search.attr("aria-activedescendant",a.data._resultId)})},c.prototype.handleSearch=function(a){if(!this._keyUpPrevented){var b=this.$search.val();this.trigger("query",{term:b})}this._keyUpPrevented=!1},c.prototype.showSearch=function(a,b){return!0},c}),b.define("select2/dropdown/hidePlaceholder",[],function(){function a(a,b,c,d){this.placeholder=this.normalizePlaceholder(c.get("placeholder")),a.call(this,b,c,d)}return a.prototype.append=function(a,b){b.results=this.removePlaceholder(b.results),a.call(this,b)},a.prototype.normalizePlaceholder=function(a,b){return"string"==typeof b&&(b={id:"",text:b}),b},a.prototype.removePlaceholder=function(a,b){for(var c=b.slice(0),d=b.length-1;d>=0;d--){var e=b[d];this.placeholder.id===e.id&&c.splice(d,1)}return c},a}),b.define("select2/dropdown/infiniteScroll",["jquery"],function(a){function b(a,b,c,d){this.lastParams={},a.call(this,b,c,d),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return b.prototype.append=function(a,b){this.$loadingMore.remove(),this.loading=!1,a.call(this,b),this.showLoadingMore(b)&&this.$results.append(this.$loadingMore)},b.prototype.bind=function(b,c,d){var e=this;b.call(this,c,d),c.on("query",function(a){e.lastParams=a,e.loading=!0}),c.on("query:append",function(a){e.lastParams=a,e.loading=!0}),this.$results.on("scroll",function(){var b=a.contains(document.documentElement,e.$loadingMore[0]);if(!e.loading&&b){e.$results.offset().top+e.$results.outerHeight(!1)+50>=e.$loadingMore.offset().top+e.$loadingMore.outerHeight(!1)&&e.loadMore()}})},b.prototype.loadMore=function(){this.loading=!0;var b=a.extend({},{page:1},this.lastParams);b.page++,this.trigger("query:append",b)},b.prototype.showLoadingMore=function(a,b){return b.pagination&&b.pagination.more},b.prototype.createLoadingMore=function(){var b=a('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),c=this.options.get("translations").get("loadingMore");return b.html(c(this.lastParams)),b},b}),b.define("select2/dropdown/attachBody",["jquery","../utils"],function(a,b){function c(b,c,d){this.$dropdownParent=d.get("dropdownParent")||a(document.body),b.call(this,c,d)}return c.prototype.bind=function(a,b,c){var d=this,e=!1;a.call(this,b,c),b.on("open",function(){d._showDropdown(),d._attachPositioningHandler(b),e||(e=!0,b.on("results:all",function(){d._positionDropdown(),d._resizeDropdown()}),b.on("results:append",function(){d._positionDropdown(),d._resizeDropdown()}))}),b.on("close",function(){d._hideDropdown(),d._detachPositioningHandler(b)}),this.$dropdownContainer.on("mousedown",function(a){a.stopPropagation()})},c.prototype.destroy=function(a){a.call(this),this.$dropdownContainer.remove()},c.prototype.position=function(a,b,c){b.attr("class",c.attr("class")),b.removeClass("select2"),b.addClass("select2-container--open"),b.css({position:"absolute",top:-999999}),this.$container=c},c.prototype.render=function(b){var c=a("<span></span>"),d=b.call(this);return c.append(d),this.$dropdownContainer=c,c},c.prototype._hideDropdown=function(a){this.$dropdownContainer.detach()},c.prototype._attachPositioningHandler=function(c,d){var e=this,f="scroll.select2."+d.id,g="resize.select2."+d.id,h="orientationchange.select2."+d.id,i=this.$container.parents().filter(b.hasScroll);i.each(function(){a(this).data("select2-scroll-position",{x:a(this).scrollLeft(),y:a(this).scrollTop()})}),i.on(f,function(b){var c=a(this).data("select2-scroll-position");a(this).scrollTop(c.y)}),a(window).on(f+" "+g+" "+h,function(a){e._positionDropdown(),e._resizeDropdown()})},c.prototype._detachPositioningHandler=function(c,d){var e="scroll.select2."+d.id,f="resize.select2."+d.id,g="orientationchange.select2."+d.id;this.$container.parents().filter(b.hasScroll).off(e),a(window).off(e+" "+f+" "+g)},c.prototype._positionDropdown=function(){var b=a(window),c=this.$dropdown.hasClass("select2-dropdown--above"),d=this.$dropdown.hasClass("select2-dropdown--below"),e=null,f=this.$container.offset();f.bottom=f.top+this.$container.outerHeight(!1);var g={height:this.$container.outerHeight(!1)};g.top=f.top,g.bottom=f.top+g.height;var h={height:this.$dropdown.outerHeight(!1)},i={top:b.scrollTop(),bottom:b.scrollTop()+b.height()},j=i.top<f.top-h.height,k=i.bottom>f.bottom+h.height,l={left:f.left,top:g.bottom},m=this.$dropdownParent;"static"===m.css("position")&&(m=m.offsetParent());var n=m.offset();l.top-=n.top,l.left-=n.left,c||d||(e="below"),k||!j||c?!j&&k&&c&&(e="below"):e="above",("above"==e||c&&"below"!==e)&&(l.top=g.top-n.top-h.height),null!=e&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+e),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+e)),this.$dropdownContainer.css(l)},c.prototype._resizeDropdown=function(){var a={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(a.minWidth=a.width,a.position="relative",a.width="auto"),this.$dropdown.css(a)},c.prototype._showDropdown=function(a){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},c}),b.define("select2/dropdown/minimumResultsForSearch",[],function(){function a(b){for(var c=0,d=0;d<b.length;d++){var e=b[d];e.children?c+=a(e.children):c++}return c}function b(a,b,c,d){this.minimumResultsForSearch=c.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),a.call(this,b,c,d)}return b.prototype.showSearch=function(b,c){return!(a(c.data.results)<this.minimumResultsForSearch)&&b.call(this,c)},b}),b.define("select2/dropdown/selectOnClose",[],function(){function a(){}return a.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),b.on("close",function(a){d._handleSelectOnClose(a)})},a.prototype._handleSelectOnClose=function(a,b){if(b&&null!=b.originalSelect2Event){var c=b.originalSelect2Event;if("select"===c._type||"unselect"===c._type)return}var d=this.getHighlightedResults();if(!(d.length<1)){var e=d.data("data");null!=e.element&&e.element.selected||null==e.element&&e.selected||this.trigger("select",{data:e})}},a}),b.define("select2/dropdown/closeOnSelect",[],function(){function a(){}return a.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),b.on("select",function(a){d._selectTriggered(a)}),b.on("unselect",function(a){d._selectTriggered(a)})},a.prototype._selectTriggered=function(a,b){var c=b.originalEvent;c&&c.ctrlKey||this.trigger("close",{originalEvent:c,originalSelect2Event:b})},a}),b.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(a){var b=a.input.length-a.maximum,c="Please delete "+b+" character";return 1!=b&&(c+="s"),c},inputTooShort:function(a){return"Please enter "+(a.minimum-a.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(a){var b="You can only select "+a.maximum+" item";return 1!=a.maximum&&(b+="s"),b},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),b.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C){function D(){this.reset()}return D.prototype.apply=function(l){if(l=a.extend(!0,{},this.defaults,l),null==l.dataAdapter){if(null!=l.ajax?l.dataAdapter=o:null!=l.data?l.dataAdapter=n:l.dataAdapter=m,l.minimumInputLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,r)),l.maximumInputLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,s)),l.maximumSelectionLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,t)),l.tags&&(l.dataAdapter=j.Decorate(l.dataAdapter,p)),null==l.tokenSeparators&&null==l.tokenizer||(l.dataAdapter=j.Decorate(l.dataAdapter,q)),null!=l.query){var C=b(l.amdBase+"compat/query");l.dataAdapter=j.Decorate(l.dataAdapter,C)}if(null!=l.initSelection){var D=b(l.amdBase+"compat/initSelection");l.dataAdapter=j.Decorate(l.dataAdapter,D)}}if(null==l.resultsAdapter&&(l.resultsAdapter=c,null!=l.ajax&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,x)),null!=l.placeholder&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,w)),l.selectOnClose&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,A))),null==l.dropdownAdapter){if(l.multiple)l.dropdownAdapter=u;else{var E=j.Decorate(u,v);l.dropdownAdapter=E}if(0!==l.minimumResultsForSearch&&(l.dropdownAdapter=j.Decorate(l.dropdownAdapter,z)),l.closeOnSelect&&(l.dropdownAdapter=j.Decorate(l.dropdownAdapter,B)),null!=l.dropdownCssClass||null!=l.dropdownCss||null!=l.adaptDropdownCssClass){var F=b(l.amdBase+"compat/dropdownCss");l.dropdownAdapter=j.Decorate(l.dropdownAdapter,F)}l.dropdownAdapter=j.Decorate(l.dropdownAdapter,y)}if(null==l.selectionAdapter){if(l.multiple?l.selectionAdapter=e:l.selectionAdapter=d,null!=l.placeholder&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,f)),l.allowClear&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,g)),l.multiple&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,h)),null!=l.containerCssClass||null!=l.containerCss||null!=l.adaptContainerCssClass){var G=b(l.amdBase+"compat/containerCss");l.selectionAdapter=j.Decorate(l.selectionAdapter,G)}l.selectionAdapter=j.Decorate(l.selectionAdapter,i)}if("string"==typeof l.language)if(l.language.indexOf("-")>0){var H=l.language.split("-"),I=H[0];l.language=[l.language,I]}else l.language=[l.language];if(a.isArray(l.language)){var J=new k;l.language.push("en");for(var K=l.language,L=0;L<K.length;L++){var M=K[L],N={};try{N=k.loadPath(M)}catch(a){try{M=this.defaults.amdLanguageBase+M,N=k.loadPath(M)}catch(a){l.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+M+'" could not be automatically loaded. A fallback will be used instead.');continue}}J.extend(N)}l.translations=J}else{var O=k.loadPath(this.defaults.amdLanguageBase+"en"),P=new k(l.language);P.extend(O),l.translations=P}return l},D.prototype.reset=function(){function b(a){function b(a){return l[a]||a}return a.replace(/[^\u0000-\u007E]/g,b)}function c(d,e){if(""===a.trim(d.term))return e;if(e.children&&e.children.length>0){for(var f=a.extend(!0,{},e),g=e.children.length-1;g>=0;g--){null==c(d,e.children[g])&&f.children.splice(g,1)}return f.children.length>0?f:c(d,f)}var h=b(e.text).toUpperCase(),i=b(d.term).toUpperCase();return h.indexOf(i)>-1?e:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:j.escapeMarkup,language:C,matcher:c,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(a){return a},templateResult:function(a){return a.text},templateSelection:function(a){return a.text},theme:"default",width:"resolve"}},D.prototype.set=function(b,c){var d=a.camelCase(b),e={};e[d]=c;var f=j._convertData(e);a.extend(this.defaults,f)},new D}),b.define("select2/options",["require","jquery","./defaults","./utils"],function(a,b,c,d){function e(b,e){if(this.options=b,null!=e&&this.fromElement(e),this.options=c.apply(this.options),e&&e.is("input")){var f=a(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=d.Decorate(this.options.dataAdapter,f)}}return e.prototype.fromElement=function(a){var c=["select2"];null==this.options.multiple&&(this.options.multiple=a.prop("multiple")),null==this.options.disabled&&(this.options.disabled=a.prop("disabled")),null==this.options.language&&(a.prop("lang")?this.options.language=a.prop("lang").toLowerCase():a.closest("[lang]").prop("lang")&&(this.options.language=a.closest("[lang]").prop("lang"))),null==this.options.dir&&(a.prop("dir")?this.options.dir=a.prop("dir"):a.closest("[dir]").prop("dir")?this.options.dir=a.closest("[dir]").prop("dir"):this.options.dir="ltr"),a.prop("disabled",this.options.disabled),a.prop("multiple",this.options.multiple),a.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),a.data("data",a.data("select2Tags")),a.data("tags",!0)),a.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),a.attr("ajax--url",a.data("ajaxUrl")),a.data("ajax--url",a.data("ajaxUrl")));var e={};e=b.fn.jquery&&"1."==b.fn.jquery.substr(0,2)&&a[0].dataset?b.extend(!0,{},a[0].dataset,a.data()):a.data();var f=b.extend(!0,{},e);f=d._convertData(f);for(var g in f)b.inArray(g,c)>-1||(b.isPlainObject(this.options[g])?b.extend(this.options[g],f[g]):this.options[g]=f[g]);return this},e.prototype.get=function(a){return this.options[a]},e.prototype.set=function(a,b){this.options[a]=b},e}),b.define("select2/core",["jquery","./options","./utils","./keys"],function(a,b,c,d){var e=function(a,c){null!=a.data("select2")&&a.data("select2").destroy(),this.$element=a,this.id=this._generateId(a),c=c||{},this.options=new b(c,a),e.__super__.constructor.call(this);var d=a.attr("tabindex")||0;a.data("old-tabindex",d),a.attr("tabindex","-1");var f=this.options.get("dataAdapter");this.dataAdapter=new f(a,this.options);var g=this.render();this._placeContainer(g);var h=this.options.get("selectionAdapter");this.selection=new h(a,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,g);var i=this.options.get("dropdownAdapter");this.dropdown=new i(a,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,g);var j=this.options.get("resultsAdapter");this.results=new j(a,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var k=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(a){k.trigger("selection:update",{data:a})}),a.addClass("select2-hidden-accessible"),a.attr("aria-hidden","true"),this._syncAttributes(),a.data("select2",this)};return c.Extend(e,c.Observable),e.prototype._generateId=function(a){var b="";return b=null!=a.attr("id")?a.attr("id"):null!=a.attr("name")?a.attr("name")+"-"+c.generateChars(2):c.generateChars(4),b=b.replace(/(:|\.|\[|\]|,)/g,""),b="select2-"+b},e.prototype._placeContainer=function(a){a.insertAfter(this.$element);var b=this._resolveWidth(this.$element,this.options.get("width"));null!=b&&a.css("width",b)},e.prototype._resolveWidth=function(a,b){var c=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==b){var d=this._resolveWidth(a,"style");return null!=d?d:this._resolveWidth(a,"element")}if("element"==b){var e=a.outerWidth(!1);return e<=0?"auto":e+"px"}if("style"==b){var f=a.attr("style");if("string"!=typeof f)return null;for(var g=f.split(";"),h=0,i=g.length;h<i;h+=1){var j=g[h].replace(/\s/g,""),k=j.match(c);if(null!==k&&k.length>=1)return k[1]}return null}return b},e.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},e.prototype._registerDomEvents=function(){var b=this;this.$element.on("change.select2",function(){b.dataAdapter.current(function(a){b.trigger("selection:update",{data:a})})}),this.$element.on("focus.select2",function(a){b.trigger("focus",a)}),this._syncA=c.bind(this._syncAttributes,this),this._syncS=c.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var d=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=d?(this._observer=new d(function(c){a.each(c,b._syncA),a.each(c,b._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",b._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",b._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",b._syncS,!1))},e.prototype._registerDataEvents=function(){var a=this;this.dataAdapter.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerSelectionEvents=function(){var b=this,c=["toggle","focus"];this.selection.on("toggle",function(){b.toggleDropdown()}),this.selection.on("focus",function(a){b.focus(a)}),this.selection.on("*",function(d,e){-1===a.inArray(d,c)&&b.trigger(d,e)})},e.prototype._registerDropdownEvents=function(){var a=this;this.dropdown.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerResultsEvents=function(){var a=this;this.results.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerEvents=function(){var b=this;this.on("open",function(){b.$container.addClass("select2-container--open")}),this.on("close",function(){b.$container.removeClass("select2-container--open")}),this.on("enable",function(){b.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){b.$container.addClass("select2-container--disabled")}),this.on("blur",function(){b.$container.removeClass("select2-container--focus")}),this.on("query",function(a){b.isOpen()||b.trigger("open",{}),this.dataAdapter.query(a,function(c){b.trigger("results:all",{data:c,query:a})})}),this.on("query:append",function(a){this.dataAdapter.query(a,function(c){b.trigger("results:append",{data:c,query:a})})}),this.on("open",function(){setTimeout(function(){b.focusOnActiveElement()},1)}),a(document).on("keydown",function(a){var c=a.which;if(b.isOpen())if(c===d.ESC||c===d.TAB||c===d.UP&&a.altKey?(b.close(),a.preventDefault()):c===d.ENTER?(b.trigger("results:select",{}),a.preventDefault()):c===d.SPACE&&a.ctrlKey?(b.trigger("results:toggle",{}),a.preventDefault()):c===d.UP?(b.trigger("results:previous",{}),a.preventDefault()):c===d.DOWN&&(b.trigger("results:next",{}),a.preventDefault()),c===d.DOWN||c===d.UP)b.focusOnActiveElement();else{var e=b.$dropdown.find(".select2-search__field");e.length||(e=b.$container.find(".select2-search__field")),e.focus(),setTimeout(function(){b.focusOnActiveElement()},1e3)}else b.hasFocus()&&(c===d.ENTER||c===d.SPACE||c===d.DOWN&&a.altKey)&&(b.open(),a.preventDefault())})},e.prototype.focusOnActiveElement=function(){c.isTouchscreen()||this.$results.find("li.select2-results__option--highlighted").focus()},e.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},e.prototype._syncSubtree=function(a,b){var c=!1,d=this;if(!a||!a.target||"OPTION"===a.target.nodeName||"OPTGROUP"===a.target.nodeName){if(b)if(b.addedNodes&&b.addedNodes.length>0)for(var e=0;e<b.addedNodes.length;e++){var f=b.addedNodes[e];f.selected&&(c=!0)}else b.removedNodes&&b.removedNodes.length>0&&(c=!0);else c=!0;c&&this.dataAdapter.current(function(a){d.trigger("selection:update",{data:a})})}},e.prototype.trigger=function(a,b){var c=e.__super__.trigger,d={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===b&&(b={}),a in d){var f=d[a],g={prevented:!1,name:a,args:b};if(c.call(this,f,g),g.prevented)return void(b.prevented=!0)}c.call(this,a,b)},e.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},e.prototype.open=function(){this.isOpen()||this.trigger("query",{})},e.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},e.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},e.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},e.prototype.focus=function(a){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},e.prototype.enable=function(a){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=a&&0!==a.length||(a=[!0]);var b=!a[0];this.$element.prop("disabled",b)},e.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var a=[];return this.dataAdapter.current(function(b){a=b}),a},e.prototype.val=function(b){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==b||0===b.length)return this.$element.val();var c=b[0];a.isArray(c)&&(c=a.map(c,function(a){return a.toString()})),this.$element.val(c).trigger("change")},e.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},e.prototype.render=function(){var b=a('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return b.attr("dir",this.options.get("dir")),this.$container=b,this.$container.addClass("select2-container--"+this.options.get("theme")),b.data("element",this.$element),b},e}),b.define("select2/compat/utils",["jquery"],function(a){function b(b,c,d){var e,f,g=[];e=a.trim(b.attr("class")),e&&(e=""+e,a(e.split(/\s+/)).each(function(){0===this.indexOf("select2-")&&g.push(this)})),e=a.trim(c.attr("class")),e&&(e=""+e,a(e.split(/\s+/)).each(function(){0!==this.indexOf("select2-")&&null!=(f=d(this))&&g.push(f)})),b.attr("class",g.join(" "))}return{syncCssClasses:b}}),b.define("select2/compat/containerCss",["jquery","./utils"],function(a,b){function c(a){return null}function d(){}return d.prototype.render=function(d){var e=d.call(this),f=this.options.get("containerCssClass")||"";a.isFunction(f)&&(f=f(this.$element));var g=this.options.get("adaptContainerCssClass");if(g=g||c,-1!==f.indexOf(":all:")){f=f.replace(":all:","");var h=g;g=function(a){var b=h(a);return null!=b?b+" "+a:a}}var i=this.options.get("containerCss")||{};return a.isFunction(i)&&(i=i(this.$element)),b.syncCssClasses(e,this.$element,g),e.css(i),e.addClass(f),e},d}),b.define("select2/compat/dropdownCss",["jquery","./utils"],function(a,b){function c(a){return null}function d(){}return d.prototype.render=function(d){var e=d.call(this),f=this.options.get("dropdownCssClass")||"";a.isFunction(f)&&(f=f(this.$element));var g=this.options.get("adaptDropdownCssClass");if(g=g||c,-1!==f.indexOf(":all:")){f=f.replace(":all:","");var h=g;g=function(a){var b=h(a);return null!=b?b+" "+a:a}}var i=this.options.get("dropdownCss")||{};return a.isFunction(i)&&(i=i(this.$element)),b.syncCssClasses(e,this.$element,g),e.css(i),e.addClass(f),e},d}),b.define("select2/compat/initSelection",["jquery"],function(a){function b(a,b,c){c.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=c.get("initSelection"),this._isInitialized=!1,a.call(this,b,c)}return b.prototype.current=function(b,c){var d=this;if(this._isInitialized)return void b.call(this,c);this.initSelection.call(null,this.$element,function(b){d._isInitialized=!0,a.isArray(b)||(b=[b]),c(b)})},b}),b.define("select2/compat/inputData",["jquery"],function(a){function b(a,b,c){this._currentData=[],this._valueSeparator=c.get("valueSeparator")||",","hidden"===b.prop("type")&&c.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 `<select>` element instead."),a.call(this,b,c)}return b.prototype.current=function(b,c){function d(b,c){var e=[];return b.selected||-1!==a.inArray(b.id,c)?(b.selected=!0,e.push(b)):b.selected=!1,b.children&&e.push.apply(e,d(b.children,c)),e}for(var e=[],f=0;f<this._currentData.length;f++){var g=this._currentData[f];e.push.apply(e,d(g,this.$element.val().split(this._valueSeparator)))}c(e)},b.prototype.select=function(b,c){if(this.options.get("multiple")){var d=this.$element.val();d+=this._valueSeparator+c.id,this.$element.val(d),this.$element.trigger("change")}else this.current(function(b){a.map(b,function(a){a.selected=!1})}),this.$element.val(c.id),this.$element.trigger("change")},b.prototype.unselect=function(a,b){var c=this;b.selected=!1,this.current(function(a){for(var d=[],e=0;e<a.length;e++){var f=a[e];b.id!=f.id&&d.push(f.id)}c.$element.val(d.join(c._valueSeparator)),c.$element.trigger("change")})},b.prototype.query=function(a,b,c){for(var d=[],e=0;e<this._currentData.length;e++){var f=this._currentData[e],g=this.matches(b,f);null!==g&&d.push(g)}c({results:d})},b.prototype.addOptions=function(b,c){var d=a.map(c,function(b){return a.data(b[0],"data")});this._currentData.push.apply(this._currentData,d)},b}),b.define("select2/compat/matcher",["jquery"],function(a){function b(b){function c(c,d){var e=a.extend(!0,{},d);if(null==c.term||""===a.trim(c.term))return e;if(d.children){for(var f=d.children.length-1;f>=0;f--){var g=d.children[f];b(c.term,g.text,g)||e.children.splice(f,1)}if(e.children.length>0)return e}return b(c.term,d.text,d)?e:null}return c}return b}),b.define("select2/compat/query",[],function(){function a(a,b,c){c.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `query` option has been deprecated in favor of a custom data adapter that overrides the `query` method. Support will be removed for the `query` option in future versions of Select2."),a.call(this,b,c)}return a.prototype.query=function(a,b,c){b.callback=c,this.options.get("query").call(null,b)},a}),b.define("select2/dropdown/attachContainer",[],function(){function a(a,b,c){a.call(this,b,c)}return a.prototype.position=function(a,b,c){c.find(".dropdown-wrapper").append(b),b.addClass("select2-dropdown--below"),c.addClass("select2-container--below")},a}),b.define("select2/dropdown/stopPropagation",[],function(){function a(){}return a.prototype.bind=function(a,b,c){a.call(this,b,c);var d=["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"];this.$dropdown.on(d.join(" "),function(a){a.stopPropagation()})},a}),b.define("select2/selection/stopPropagation",[],function(){function a(){}return a.prototype.bind=function(a,b,c){a.call(this,b,c);var d=["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"];this.$selection.on(d.join(" "),function(a){a.stopPropagation()})},a}),function(c){"function"==typeof b.define&&b.define.amd?b.define("jquery-mousewheel",["jquery"],c):"object"==typeof exports?module.exports=c:c(a)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||n<f)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120==0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})}),b.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(a,b,c,d){if(null==a.fn.selectWoo){var e=["open","close","destroy"];a.fn.selectWoo=function(b){if("object"==typeof(b=b||{}))return this.each(function(){var d=a.extend(!0,{},b);new c(a(this),d)}),this;if("string"==typeof b){var d,f=Array.prototype.slice.call(arguments,1);return this.each(function(){var c=a(this).data("select2");null==c&&window.console&&console.error&&console.error("The select2('"+b+"') method was called on an element that is not using Select2."),d=c[b].apply(c,f)}),a.inArray(b,e)>-1?this:d}throw new Error("Invalid arguments for Select2: "+b)}}return null!=a.fn.select2&&null!=a.fn.select2.defaults&&(a.fn.selectWoo.defaults=a.fn.select2.defaults),null==a.fn.selectWoo.defaults&&(a.fn.selectWoo.defaults=d),a.fn.select2=a.fn.select2||a.fn.selectWoo,c}),{define:b.define,require:b.require}}(),c=b.require("jquery.select2");return a.fn.select2.amd=b,a.fn.selectWoo.amd=b,c});
|
assets/js/{select2/select2.js → selectWoo/selectWoo.js}
RENAMED
@@ -1,5725 +1,5832 @@
|
|
1 |
-
/*!
|
2 |
-
*
|
3 |
-
* https://
|
4 |
-
*
|
5 |
-
* Released under the MIT license
|
6 |
-
* https://github.com/
|
7 |
-
*/
|
8 |
-
(function (factory) {
|
9 |
-
if (typeof define === 'function' && define.amd) {
|
10 |
-
// AMD. Register as an anonymous module.
|
11 |
-
define(['jquery'], factory);
|
12 |
-
} else if (typeof
|
13 |
-
// Node/CommonJS
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
//
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
var
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
function
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
}
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
}
|
266 |
-
|
267 |
-
//
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
return {
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
if (
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
} else if (
|
378 |
-
//
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
for (var
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
var
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
function
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
var
|
586 |
-
|
587 |
-
DecoratedClass.prototype
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
}
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
|
646 |
-
|
647 |
-
|
648 |
-
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
-
|
653 |
-
|
654 |
-
|
655 |
-
|
656 |
-
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
|
665 |
-
|
666 |
-
|
667 |
-
|
668 |
-
|
669 |
-
|
670 |
-
|
671 |
-
|
672 |
-
|
673 |
-
|
674 |
-
|
675 |
-
|
676 |
-
|
677 |
-
|
678 |
-
|
679 |
-
|
680 |
-
|
681 |
-
|
682 |
-
|
683 |
-
|
684 |
-
|
685 |
-
|
686 |
-
}
|
687 |
-
|
688 |
-
|
689 |
-
|
690 |
-
|
691 |
-
|
692 |
-
|
693 |
-
|
694 |
-
|
695 |
-
|
696 |
-
|
697 |
-
|
698 |
-
|
699 |
-
|
700 |
-
|
701 |
-
|
702 |
-
|
703 |
-
|
704 |
-
|
705 |
-
|
706 |
-
|
707 |
-
|
708 |
-
|
709 |
-
|
710 |
-
|
711 |
-
|
712 |
-
|
713 |
-
|
714 |
-
|
715 |
-
|
716 |
-
|
717 |
-
|
718 |
-
|
719 |
-
|
720 |
-
var
|
721 |
-
|
722 |
-
|
723 |
-
|
724 |
-
|
725 |
-
|
726 |
-
|
727 |
-
|
728 |
-
|
729 |
-
|
730 |
-
|
731 |
-
|
732 |
-
|
733 |
-
|
734 |
-
|
735 |
-
|
736 |
-
|
737 |
-
|
738 |
-
|
739 |
-
|
740 |
-
|
741 |
-
|
742 |
-
|
743 |
-
|
744 |
-
|
745 |
-
|
746 |
-
|
747 |
-
|
748 |
-
|
749 |
-
|
750 |
-
|
751 |
-
|
752 |
-
|
753 |
-
|
754 |
-
|
755 |
-
|
756 |
-
|
757 |
-
|
758 |
-
|
759 |
-
|
760 |
-
|
761 |
-
|
762 |
-
|
763 |
-
|
764 |
-
|
765 |
-
|
766 |
-
|
767 |
-
|
768 |
-
|
769 |
-
|
770 |
-
|
771 |
-
|
772 |
-
|
773 |
-
|
774 |
-
|
775 |
-
|
776 |
-
|
777 |
-
)
|
778 |
-
|
779 |
-
|
780 |
-
|
781 |
-
|
782 |
-
|
783 |
-
|
784 |
-
|
785 |
-
|
786 |
-
|
787 |
-
|
788 |
-
|
789 |
-
|
790 |
-
|
791 |
-
|
792 |
-
|
793 |
-
|
794 |
-
|
795 |
-
|
796 |
-
|
797 |
-
|
798 |
-
|
799 |
-
|
800 |
-
|
801 |
-
|
802 |
-
|
803 |
-
|
804 |
-
|
805 |
-
|
806 |
-
|
807 |
-
|
808 |
-
|
809 |
-
|
810 |
-
|
811 |
-
$
|
812 |
-
|
813 |
-
|
814 |
-
|
815 |
-
|
816 |
-
|
817 |
-
|
818 |
-
|
819 |
-
|
820 |
-
|
821 |
-
this.
|
822 |
-
|
823 |
-
|
824 |
-
|
825 |
-
|
826 |
-
|
827 |
-
|
828 |
-
|
829 |
-
|
830 |
-
|
831 |
-
|
832 |
-
|
833 |
-
|
834 |
-
|
835 |
-
|
836 |
-
|
837 |
-
|
838 |
-
|
839 |
-
|
840 |
-
|
841 |
-
|
842 |
-
|
843 |
-
|
844 |
-
|
845 |
-
|
846 |
-
|
847 |
-
|
848 |
-
|
849 |
-
var $
|
850 |
-
|
851 |
-
|
852 |
-
|
853 |
-
|
854 |
-
|
855 |
-
|
856 |
-
|
857 |
-
|
858 |
-
|
859 |
-
|
860 |
-
|
861 |
-
|
862 |
-
|
863 |
-
var
|
864 |
-
|
865 |
-
|
866 |
-
|
867 |
-
|
868 |
-
$
|
869 |
-
}
|
870 |
-
|
871 |
-
|
872 |
-
|
873 |
-
|
874 |
-
|
875 |
-
|
876 |
-
|
877 |
-
|
878 |
-
|
879 |
-
|
880 |
-
|
881 |
-
|
882 |
-
|
883 |
-
|
884 |
-
|
885 |
-
|
886 |
-
|
887 |
-
|
888 |
-
|
889 |
-
|
890 |
-
|
891 |
-
|
892 |
-
|
893 |
-
|
894 |
-
|
895 |
-
|
896 |
-
|
897 |
-
|
898 |
-
|
899 |
-
|
900 |
-
|
901 |
-
|
902 |
-
|
903 |
-
|
904 |
-
|
905 |
-
|
906 |
-
|
907 |
-
|
908 |
-
|
909 |
-
|
910 |
-
|
911 |
-
|
912 |
-
|
913 |
-
|
914 |
-
|
915 |
-
|
916 |
-
|
917 |
-
|
918 |
-
|
919 |
-
|
920 |
-
|
921 |
-
|
922 |
-
|
923 |
-
|
924 |
-
|
925 |
-
|
926 |
-
|
927 |
-
|
928 |
-
|
929 |
-
|
930 |
-
|
931 |
-
|
932 |
-
|
933 |
-
|
934 |
-
|
935 |
-
|
936 |
-
|
937 |
-
|
938 |
-
|
939 |
-
|
940 |
-
|
941 |
-
|
942 |
-
|
943 |
-
|
944 |
-
|
945 |
-
|
946 |
-
|
947 |
-
|
948 |
-
|
949 |
-
|
950 |
-
|
951 |
-
|
952 |
-
|
953 |
-
|
954 |
-
|
955 |
-
|
956 |
-
|
957 |
-
|
958 |
-
|
959 |
-
|
960 |
-
|
961 |
-
|
962 |
-
|
963 |
-
|
964 |
-
|
965 |
-
|
966 |
-
|
967 |
-
|
968 |
-
|
969 |
-
|
970 |
-
|
971 |
-
|
972 |
-
|
973 |
-
|
974 |
-
|
975 |
-
|
976 |
-
|
977 |
-
|
978 |
-
|
979 |
-
|
980 |
-
|
981 |
-
|
982 |
-
|
983 |
-
|
984 |
-
|
985 |
-
|
986 |
-
|
987 |
-
|
988 |
-
|
989 |
-
|
990 |
-
|
991 |
-
|
992 |
-
|
993 |
-
|
994 |
-
|
995 |
-
|
996 |
-
|
997 |
-
|
998 |
-
|
999 |
-
|
1000 |
-
|
1001 |
-
|
1002 |
-
|
1003 |
-
|
1004 |
-
|
1005 |
-
|
1006 |
-
|
1007 |
-
|
1008 |
-
|
1009 |
-
|
1010 |
-
|
1011 |
-
|
1012 |
-
|
1013 |
-
|
1014 |
-
|
1015 |
-
|
1016 |
-
|
1017 |
-
|
1018 |
-
|
1019 |
-
|
1020 |
-
|
1021 |
-
|
1022 |
-
|
1023 |
-
|
1024 |
-
|
1025 |
-
|
1026 |
-
|
1027 |
-
|
1028 |
-
|
1029 |
-
|
1030 |
-
|
1031 |
-
|
1032 |
-
|
1033 |
-
|
1034 |
-
|
1035 |
-
|
1036 |
-
|
1037 |
-
|
1038 |
-
self.
|
1039 |
-
|
1040 |
-
|
1041 |
-
|
1042 |
-
|
1043 |
-
|
1044 |
-
}
|
1045 |
-
|
1046 |
-
|
1047 |
-
|
1048 |
-
|
1049 |
-
|
1050 |
-
|
1051 |
-
|
1052 |
-
|
1053 |
-
|
1054 |
-
|
1055 |
-
|
1056 |
-
self.
|
1057 |
-
|
1058 |
-
|
1059 |
-
|
1060 |
-
|
1061 |
-
|
1062 |
-
|
1063 |
-
|
1064 |
-
|
1065 |
-
|
1066 |
-
|
1067 |
-
|
1068 |
-
|
1069 |
-
|
1070 |
-
|
1071 |
-
|
1072 |
-
|
1073 |
-
|
1074 |
-
|
1075 |
-
|
1076 |
-
|
1077 |
-
|
1078 |
-
|
1079 |
-
|
1080 |
-
|
1081 |
-
|
1082 |
-
|
1083 |
-
|
1084 |
-
|
1085 |
-
|
1086 |
-
|
1087 |
-
|
1088 |
-
|
1089 |
-
|
1090 |
-
|
1091 |
-
|
1092 |
-
});
|
1093 |
-
|
1094 |
-
container.on('results:
|
1095 |
-
var $highlighted = self.getHighlightedResults();
|
1096 |
-
|
1097 |
-
|
1098 |
-
|
1099 |
-
|
1100 |
-
|
1101 |
-
|
1102 |
-
|
1103 |
-
|
1104 |
-
|
1105 |
-
|
1106 |
-
|
1107 |
-
|
1108 |
-
|
1109 |
-
|
1110 |
-
|
1111 |
-
|
1112 |
-
|
1113 |
-
|
1114 |
-
|
1115 |
-
|
1116 |
-
|
1117 |
-
|
1118 |
-
|
1119 |
-
|
1120 |
-
|
1121 |
-
|
1122 |
-
|
1123 |
-
|
1124 |
-
|
1125 |
-
|
1126 |
-
|
1127 |
-
|
1128 |
-
|
1129 |
-
|
1130 |
-
|
1131 |
-
|
1132 |
-
|
1133 |
-
|
1134 |
-
|
1135 |
-
|
1136 |
-
|
1137 |
-
|
1138 |
-
|
1139 |
-
|
1140 |
-
|
1141 |
-
|
1142 |
-
|
1143 |
-
|
1144 |
-
|
1145 |
-
|
1146 |
-
var
|
1147 |
-
|
1148 |
-
|
1149 |
-
|
1150 |
-
|
1151 |
-
if (
|
1152 |
-
self.$results.scrollTop(
|
1153 |
-
}
|
1154 |
-
|
1155 |
-
|
1156 |
-
|
1157 |
-
|
1158 |
-
|
1159 |
-
|
1160 |
-
|
1161 |
-
|
1162 |
-
|
1163 |
-
|
1164 |
-
|
1165 |
-
|
1166 |
-
|
1167 |
-
|
1168 |
-
|
1169 |
-
|
1170 |
-
|
1171 |
-
|
1172 |
-
|
1173 |
-
|
1174 |
-
|
1175 |
-
|
1176 |
-
|
1177 |
-
|
1178 |
-
|
1179 |
-
|
1180 |
-
|
1181 |
-
|
1182 |
-
|
1183 |
-
|
1184 |
-
|
1185 |
-
|
1186 |
-
|
1187 |
-
|
1188 |
-
|
1189 |
-
}
|
1190 |
-
|
1191 |
-
|
1192 |
-
|
1193 |
-
|
1194 |
-
|
1195 |
-
|
1196 |
-
|
1197 |
-
|
1198 |
-
|
1199 |
-
|
1200 |
-
|
1201 |
-
|
1202 |
-
|
1203 |
-
|
1204 |
-
|
1205 |
-
|
1206 |
-
|
1207 |
-
|
1208 |
-
|
1209 |
-
|
1210 |
-
|
1211 |
-
|
1212 |
-
|
1213 |
-
|
1214 |
-
|
1215 |
-
|
1216 |
-
|
1217 |
-
|
1218 |
-
|
1219 |
-
|
1220 |
-
|
1221 |
-
|
1222 |
-
|
1223 |
-
|
1224 |
-
|
1225 |
-
|
1226 |
-
|
1227 |
-
|
1228 |
-
|
1229 |
-
|
1230 |
-
|
1231 |
-
|
1232 |
-
|
1233 |
-
|
1234 |
-
|
1235 |
-
|
1236 |
-
|
1237 |
-
|
1238 |
-
|
1239 |
-
|
1240 |
-
|
1241 |
-
|
1242 |
-
|
1243 |
-
|
1244 |
-
|
1245 |
-
|
1246 |
-
|
1247 |
-
|
1248 |
-
|
1249 |
-
|
1250 |
-
|
1251 |
-
|
1252 |
-
|
1253 |
-
|
1254 |
-
|
1255 |
-
|
1256 |
-
|
1257 |
-
|
1258 |
-
|
1259 |
-
|
1260 |
-
|
1261 |
-
|
1262 |
-
|
1263 |
-
|
1264 |
-
|
1265 |
-
|
1266 |
-
|
1267 |
-
|
1268 |
-
|
1269 |
-
|
1270 |
-
|
1271 |
-
|
1272 |
-
|
1273 |
-
|
1274 |
-
|
1275 |
-
|
1276 |
-
}
|
1277 |
-
|
1278 |
-
|
1279 |
-
|
1280 |
-
|
1281 |
-
|
1282 |
-
|
1283 |
-
|
1284 |
-
|
1285 |
-
|
1286 |
-
|
1287 |
-
|
1288 |
-
|
1289 |
-
|
1290 |
-
|
1291 |
-
|
1292 |
-
|
1293 |
-
|
1294 |
-
|
1295 |
-
|
1296 |
-
|
1297 |
-
|
1298 |
-
|
1299 |
-
|
1300 |
-
|
1301 |
-
|
1302 |
-
|
1303 |
-
|
1304 |
-
|
1305 |
-
|
1306 |
-
|
1307 |
-
|
1308 |
-
}
|
1309 |
-
|
1310 |
-
|
1311 |
-
|
1312 |
-
|
1313 |
-
|
1314 |
-
|
1315 |
-
|
1316 |
-
|
1317 |
-
|
1318 |
-
|
1319 |
-
|
1320 |
-
|
1321 |
-
|
1322 |
-
|
1323 |
-
|
1324 |
-
|
1325 |
-
|
1326 |
-
|
1327 |
-
|
1328 |
-
|
1329 |
-
|
1330 |
-
|
1331 |
-
|
1332 |
-
|
1333 |
-
|
1334 |
-
|
1335 |
-
|
1336 |
-
|
1337 |
-
|
1338 |
-
|
1339 |
-
|
1340 |
-
|
1341 |
-
|
1342 |
-
|
1343 |
-
|
1344 |
-
|
1345 |
-
|
1346 |
-
|
1347 |
-
|
1348 |
-
|
1349 |
-
|
1350 |
-
|
1351 |
-
|
1352 |
-
|
1353 |
-
|
1354 |
-
|
1355 |
-
|
1356 |
-
|
1357 |
-
|
1358 |
-
|
1359 |
-
|
1360 |
-
|
1361 |
-
|
1362 |
-
|
1363 |
-
this.$
|
1364 |
-
|
1365 |
-
|
1366 |
-
|
1367 |
-
|
1368 |
-
|
1369 |
-
|
1370 |
-
|
1371 |
-
|
1372 |
-
|
1373 |
-
|
1374 |
-
|
1375 |
-
|
1376 |
-
|
1377 |
-
|
1378 |
-
|
1379 |
-
|
1380 |
-
|
1381 |
-
|
1382 |
-
|
1383 |
-
|
1384 |
-
|
1385 |
-
|
1386 |
-
|
1387 |
-
|
1388 |
-
|
1389 |
-
|
1390 |
-
|
1391 |
-
self
|
1392 |
-
|
1393 |
-
|
1394 |
-
|
1395 |
-
self.
|
1396 |
-
|
1397 |
-
|
1398 |
-
|
1399 |
-
|
1400 |
-
});
|
1401 |
-
|
1402 |
-
container.on('
|
1403 |
-
self.$selection.attr('
|
1404 |
-
});
|
1405 |
-
|
1406 |
-
|
1407 |
-
|
1408 |
-
|
1409 |
-
|
1410 |
-
|
1411 |
-
|
1412 |
-
|
1413 |
-
|
1414 |
-
|
1415 |
-
|
1416 |
-
|
1417 |
-
|
1418 |
-
|
1419 |
-
|
1420 |
-
|
1421 |
-
self.
|
1422 |
-
|
1423 |
-
|
1424 |
-
|
1425 |
-
|
1426 |
-
|
1427 |
-
|
1428 |
-
|
1429 |
-
|
1430 |
-
|
1431 |
-
|
1432 |
-
|
1433 |
-
|
1434 |
-
|
1435 |
-
|
1436 |
-
|
1437 |
-
|
1438 |
-
|
1439 |
-
|
1440 |
-
|
1441 |
-
|
1442 |
-
|
1443 |
-
|
1444 |
-
|
1445 |
-
|
1446 |
-
|
1447 |
-
|
1448 |
-
|
1449 |
-
|
1450 |
-
|
1451 |
-
|
1452 |
-
|
1453 |
-
|
1454 |
-
|
1455 |
-
|
1456 |
-
|
1457 |
-
|
1458 |
-
|
1459 |
-
|
1460 |
-
|
1461 |
-
|
1462 |
-
|
1463 |
-
|
1464 |
-
|
1465 |
-
|
1466 |
-
|
1467 |
-
|
1468 |
-
|
1469 |
-
|
1470 |
-
|
1471 |
-
|
1472 |
-
|
1473 |
-
|
1474 |
-
|
1475 |
-
|
1476 |
-
|
1477 |
-
|
1478 |
-
|
1479 |
-
|
1480 |
-
|
1481 |
-
|
1482 |
-
|
1483 |
-
|
1484 |
-
|
1485 |
-
|
1486 |
-
|
1487 |
-
|
1488 |
-
|
1489 |
-
|
1490 |
-
|
1491 |
-
|
1492 |
-
|
1493 |
-
|
1494 |
-
|
1495 |
-
|
1496 |
-
|
1497 |
-
|
1498 |
-
|
1499 |
-
|
1500 |
-
|
1501 |
-
|
1502 |
-
|
1503 |
-
|
1504 |
-
|
1505 |
-
|
1506 |
-
|
1507 |
-
|
1508 |
-
|
1509 |
-
|
1510 |
-
|
1511 |
-
|
1512 |
-
|
1513 |
-
|
1514 |
-
|
1515 |
-
|
1516 |
-
|
1517 |
-
|
1518 |
-
|
1519 |
-
|
1520 |
-
|
1521 |
-
|
1522 |
-
|
1523 |
-
|
1524 |
-
|
1525 |
-
|
1526 |
-
|
1527 |
-
|
1528 |
-
|
1529 |
-
|
1530 |
-
|
1531 |
-
|
1532 |
-
|
1533 |
-
|
1534 |
-
|
1535 |
-
|
1536 |
-
|
1537 |
-
|
1538 |
-
|
1539 |
-
|
1540 |
-
|
1541 |
-
|
1542 |
-
|
1543 |
-
|
1544 |
-
|
1545 |
-
|
1546 |
-
|
1547 |
-
|
1548 |
-
|
1549 |
-
|
1550 |
-
|
1551 |
-
|
1552 |
-
|
1553 |
-
|
1554 |
-
|
1555 |
-
|
1556 |
-
|
1557 |
-
|
1558 |
-
|
1559 |
-
|
1560 |
-
|
1561 |
-
|
1562 |
-
|
1563 |
-
|
1564 |
-
|
1565 |
-
|
1566 |
-
|
1567 |
-
});
|
1568 |
-
|
1569 |
-
|
1570 |
-
|
1571 |
-
|
1572 |
-
|
1573 |
-
|
1574 |
-
|
1575 |
-
|
1576 |
-
|
1577 |
-
|
1578 |
-
|
1579 |
-
|
1580 |
-
|
1581 |
-
|
1582 |
-
|
1583 |
-
|
1584 |
-
|
1585 |
-
|
1586 |
-
|
1587 |
-
|
1588 |
-
|
1589 |
-
|
1590 |
-
|
1591 |
-
|
1592 |
-
|
1593 |
-
|
1594 |
-
|
1595 |
-
|
1596 |
-
|
1597 |
-
|
1598 |
-
|
1599 |
-
|
1600 |
-
|
1601 |
-
|
1602 |
-
|
1603 |
-
|
1604 |
-
|
1605 |
-
|
1606 |
-
|
1607 |
-
|
1608 |
-
|
1609 |
-
|
1610 |
-
|
1611 |
-
|
1612 |
-
|
1613 |
-
|
1614 |
-
|
1615 |
-
|
1616 |
-
|
1617 |
-
|
1618 |
-
|
1619 |
-
|
1620 |
-
|
1621 |
-
|
1622 |
-
|
1623 |
-
|
1624 |
-
|
1625 |
-
|
1626 |
-
|
1627 |
-
|
1628 |
-
|
1629 |
-
|
1630 |
-
|
1631 |
-
|
1632 |
-
|
1633 |
-
|
1634 |
-
|
1635 |
-
|
1636 |
-
|
1637 |
-
|
1638 |
-
|
1639 |
-
|
1640 |
-
|
1641 |
-
|
1642 |
-
|
1643 |
-
);
|
1644 |
-
|
1645 |
-
|
1646 |
-
|
1647 |
-
|
1648 |
-
|
1649 |
-
|
1650 |
-
|
1651 |
-
|
1652 |
-
|
1653 |
-
|
1654 |
-
|
1655 |
-
|
1656 |
-
|
1657 |
-
|
1658 |
-
|
1659 |
-
|
1660 |
-
|
1661 |
-
|
1662 |
-
|
1663 |
-
|
1664 |
-
|
1665 |
-
|
1666 |
-
|
1667 |
-
|
1668 |
-
|
1669 |
-
|
1670 |
-
|
1671 |
-
|
1672 |
-
|
1673 |
-
|
1674 |
-
|
1675 |
-
|
1676 |
-
|
1677 |
-
|
1678 |
-
|
1679 |
-
|
1680 |
-
|
1681 |
-
|
1682 |
-
|
1683 |
-
|
1684 |
-
|
1685 |
-
|
1686 |
-
|
1687 |
-
|
1688 |
-
|
1689 |
-
|
1690 |
-
|
1691 |
-
|
1692 |
-
|
1693 |
-
|
1694 |
-
|
1695 |
-
|
1696 |
-
|
1697 |
-
|
1698 |
-
|
1699 |
-
|
1700 |
-
|
1701 |
-
|
1702 |
-
|
1703 |
-
$
|
1704 |
-
|
1705 |
-
|
1706 |
-
|
1707 |
-
|
1708 |
-
|
1709 |
-
|
1710 |
-
|
1711 |
-
|
1712 |
-
|
1713 |
-
|
1714 |
-
|
1715 |
-
|
1716 |
-
|
1717 |
-
}
|
1718 |
-
|
1719 |
-
this.
|
1720 |
-
|
1721 |
-
|
1722 |
-
|
1723 |
-
|
1724 |
-
|
1725 |
-
|
1726 |
-
|
1727 |
-
|
1728 |
-
|
1729 |
-
|
1730 |
-
|
1731 |
-
|
1732 |
-
|
1733 |
-
|
1734 |
-
|
1735 |
-
|
1736 |
-
|
1737 |
-
|
1738 |
-
|
1739 |
-
|
1740 |
-
|
1741 |
-
|
1742 |
-
|
1743 |
-
|
1744 |
-
|
1745 |
-
|
1746 |
-
|
1747 |
-
|
1748 |
-
|
1749 |
-
|
1750 |
-
|
1751 |
-
|
1752 |
-
|
1753 |
-
|
1754 |
-
|
1755 |
-
|
1756 |
-
|
1757 |
-
|
1758 |
-
|
1759 |
-
|
1760 |
-
|
1761 |
-
|
1762 |
-
|
1763 |
-
|
1764 |
-
|
1765 |
-
|
1766 |
-
|
1767 |
-
|
1768 |
-
|
1769 |
-
|
1770 |
-
|
1771 |
-
|
1772 |
-
|
1773 |
-
|
1774 |
-
|
1775 |
-
|
1776 |
-
|
1777 |
-
|
1778 |
-
|
1779 |
-
|
1780 |
-
|
1781 |
-
|
1782 |
-
|
1783 |
-
|
1784 |
-
|
1785 |
-
|
1786 |
-
|
1787 |
-
|
1788 |
-
|
1789 |
-
|
1790 |
-
|
1791 |
-
|
1792 |
-
|
1793 |
-
|
1794 |
-
|
1795 |
-
|
1796 |
-
|
1797 |
-
|
1798 |
-
|
1799 |
-
|
1800 |
-
|
1801 |
-
|
1802 |
-
|
1803 |
-
|
1804 |
-
|
1805 |
-
|
1806 |
-
|
1807 |
-
|
1808 |
-
|
1809 |
-
if (this
|
1810 |
-
|
1811 |
-
|
1812 |
-
|
1813 |
-
|
1814 |
-
|
1815 |
-
|
1816 |
-
|
1817 |
-
|
1818 |
-
|
1819 |
-
|
1820 |
-
|
1821 |
-
|
1822 |
-
|
1823 |
-
|
1824 |
-
|
1825 |
-
|
1826 |
-
|
1827 |
-
|
1828 |
-
|
1829 |
-
|
1830 |
-
|
1831 |
-
|
1832 |
-
|
1833 |
-
|
1834 |
-
|
1835 |
-
|
1836 |
-
|
1837 |
-
|
1838 |
-
|
1839 |
-
|
1840 |
-
|
1841 |
-
|
1842 |
-
|
1843 |
-
|
1844 |
-
|
1845 |
-
|
1846 |
-
|
1847 |
-
|
1848 |
-
|
1849 |
-
|
1850 |
-
|
1851 |
-
|
1852 |
-
|
1853 |
-
|
1854 |
-
|
1855 |
-
|
1856 |
-
|
1857 |
-
|
1858 |
-
|
1859 |
-
|
1860 |
-
|
1861 |
-
|
1862 |
-
|
1863 |
-
|
1864 |
-
|
1865 |
-
|
1866 |
-
|
1867 |
-
|
1868 |
-
|
1869 |
-
|
1870 |
-
|
1871 |
-
|
1872 |
-
|
1873 |
-
|
1874 |
-
|
1875 |
-
|
1876 |
-
|
1877 |
-
|
1878 |
-
|
1879 |
-
|
1880 |
-
|
1881 |
-
|
1882 |
-
|
1883 |
-
|
1884 |
-
|
1885 |
-
|
1886 |
-
|
1887 |
-
|
1888 |
-
|
1889 |
-
|
1890 |
-
|
1891 |
-
|
1892 |
-
|
1893 |
-
|
1894 |
-
|
1895 |
-
|
1896 |
-
|
1897 |
-
|
1898 |
-
|
1899 |
-
|
1900 |
-
|
1901 |
-
|
1902 |
-
|
1903 |
-
|
1904 |
-
|
1905 |
-
|
1906 |
-
|
1907 |
-
|
1908 |
-
|
1909 |
-
|
1910 |
-
|
1911 |
-
|
1912 |
-
|
1913 |
-
|
1914 |
-
|
1915 |
-
|
1916 |
-
|
1917 |
-
|
1918 |
-
|
1919 |
-
|
1920 |
-
|
1921 |
-
|
1922 |
-
|
1923 |
-
|
1924 |
-
|
1925 |
-
|
1926 |
-
|
1927 |
-
|
1928 |
-
|
1929 |
-
|
1930 |
-
|
1931 |
-
|
1932 |
-
|
1933 |
-
|
1934 |
-
|
1935 |
-
|
1936 |
-
|
1937 |
-
|
1938 |
-
|
1939 |
-
|
1940 |
-
|
1941 |
-
|
1942 |
-
|
1943 |
-
|
1944 |
-
|
1945 |
-
);
|
1946 |
-
|
1947 |
-
this.$selection.on(
|
1948 |
-
|
1949 |
-
|
1950 |
-
|
1951 |
-
|
1952 |
-
|
1953 |
-
|
1954 |
-
|
1955 |
-
|
1956 |
-
|
1957 |
-
|
1958 |
-
|
1959 |
-
|
1960 |
-
|
1961 |
-
|
1962 |
-
|
1963 |
-
|
1964 |
-
|
1965 |
-
|
1966 |
-
|
1967 |
-
|
1968 |
-
|
1969 |
-
|
1970 |
-
|
1971 |
-
|
1972 |
-
|
1973 |
-
|
1974 |
-
|
1975 |
-
|
1976 |
-
|
1977 |
-
|
1978 |
-
|
1979 |
-
|
1980 |
-
|
1981 |
-
|
1982 |
-
|
1983 |
-
|
1984 |
-
|
1985 |
-
|
1986 |
-
|
1987 |
-
|
1988 |
-
|
1989 |
-
|
1990 |
-
|
1991 |
-
|
1992 |
-
|
1993 |
-
|
1994 |
-
|
1995 |
-
|
1996 |
-
|
1997 |
-
|
1998 |
-
|
1999 |
-
|
2000 |
-
.append(this.$searchContainer);
|
2001 |
-
|
2002 |
-
this.resizeSearch();
|
2003 |
-
if (searchHadFocus) {
|
2004 |
-
this.$search.focus();
|
2005 |
-
}
|
2006 |
-
};
|
2007 |
-
|
2008 |
-
Search.prototype.handleSearch = function () {
|
2009 |
-
this.resizeSearch();
|
2010 |
-
|
2011 |
-
if (!this._keyUpPrevented) {
|
2012 |
-
var input = this.$search.val();
|
2013 |
-
|
2014 |
-
this.trigger('query', {
|
2015 |
-
term: input
|
2016 |
-
});
|
2017 |
-
}
|
2018 |
-
|
2019 |
-
this._keyUpPrevented = false;
|
2020 |
-
};
|
2021 |
-
|
2022 |
-
Search.prototype.searchRemoveChoice = function (decorated, item) {
|
2023 |
-
this.trigger('unselect', {
|
2024 |
-
data: item
|
2025 |
-
});
|
2026 |
-
|
2027 |
-
this.$search.val(item.text);
|
2028 |
-
this.handleSearch();
|
2029 |
-
};
|
2030 |
-
|
2031 |
-
Search.prototype.resizeSearch = function () {
|
2032 |
-
this.$search.css('width', '25px');
|
2033 |
-
|
2034 |
-
var width = '';
|
2035 |
-
|
2036 |
-
if (this.$search.attr('placeholder') !== '') {
|
2037 |
-
width = this.$selection.find('.select2-selection__rendered').innerWidth();
|
2038 |
-
} else {
|
2039 |
-
var minimumWidth = this.$search.val().length + 1;
|
2040 |
-
|
2041 |
-
width = (minimumWidth * 0.75) + 'em';
|
2042 |
-
}
|
2043 |
-
|
2044 |
-
this.$search.css('width', width);
|
2045 |
-
};
|
2046 |
-
|
2047 |
-
return Search;
|
2048 |
-
});
|
2049 |
-
|
2050 |
-
S2.define('select2/selection/eventRelay',[
|
2051 |
-
'jquery'
|
2052 |
-
], function ($) {
|
2053 |
-
function EventRelay () { }
|
2054 |
-
|
2055 |
-
EventRelay.prototype.bind = function (decorated, container, $container) {
|
2056 |
-
var self = this;
|
2057 |
-
var relayEvents = [
|
2058 |
-
'open', 'opening',
|
2059 |
-
'close', 'closing',
|
2060 |
-
'select', 'selecting',
|
2061 |
-
'unselect', 'unselecting'
|
2062 |
-
];
|
2063 |
-
|
2064 |
-
var preventableEvents = ['opening', 'closing', 'selecting', 'unselecting'];
|
2065 |
-
|
2066 |
-
decorated.call(this, container, $container);
|
2067 |
-
|
2068 |
-
container.on('*', function (name, params) {
|
2069 |
-
// Ignore events that should not be relayed
|
2070 |
-
if ($.inArray(name, relayEvents) === -1) {
|
2071 |
-
return;
|
2072 |
-
}
|
2073 |
-
|
2074 |
-
// The parameters should always be an object
|
2075 |
-
params = params || {};
|
2076 |
-
|
2077 |
-
// Generate the jQuery event for the Select2 event
|
2078 |
-
var evt = $.Event('select2:' + name, {
|
2079 |
-
params: params
|
2080 |
-
});
|
2081 |
-
|
2082 |
-
self.$element.trigger(evt);
|
2083 |
-
|
2084 |
-
// Only handle preventable events if it was one
|
2085 |
-
if ($.inArray(name, preventableEvents) === -1) {
|
2086 |
-
return;
|
2087 |
-
}
|
2088 |
-
|
2089 |
-
params.prevented = evt.isDefaultPrevented();
|
2090 |
-
});
|
2091 |
-
};
|
2092 |
-
|
2093 |
-
return EventRelay;
|
2094 |
-
});
|
2095 |
-
|
2096 |
-
S2.define('select2/translation',[
|
2097 |
-
'jquery',
|
2098 |
-
'require'
|
2099 |
-
], function ($, require) {
|
2100 |
-
function Translation (dict) {
|
2101 |
-
this.dict = dict || {};
|
2102 |
-
}
|
2103 |
-
|
2104 |
-
Translation.prototype.all = function () {
|
2105 |
-
return this.dict;
|
2106 |
-
};
|
2107 |
-
|
2108 |
-
Translation.prototype.get = function (key) {
|
2109 |
-
return this.dict[key];
|
2110 |
-
};
|
2111 |
-
|
2112 |
-
Translation.prototype.extend = function (translation) {
|
2113 |
-
this.dict = $.extend({}, translation.all(), this.dict);
|
2114 |
-
};
|
2115 |
-
|
2116 |
-
// Static functions
|
2117 |
-
|
2118 |
-
Translation._cache = {};
|
2119 |
-
|
2120 |
-
Translation.loadPath = function (path) {
|
2121 |
-
if (!(path in Translation._cache)) {
|
2122 |
-
var translations = require(path);
|
2123 |
-
|
2124 |
-
Translation._cache[path] = translations;
|
2125 |
-
}
|
2126 |
-
|
2127 |
-
return new Translation(Translation._cache[path]);
|
2128 |
-
};
|
2129 |
-
|
2130 |
-
return Translation;
|
2131 |
-
});
|
2132 |
-
|
2133 |
-
S2.define('select2/diacritics',[
|
2134 |
-
|
2135 |
-
], function () {
|
2136 |
-
var diacritics = {
|
2137 |
-
'\u24B6': 'A',
|
2138 |
-
'\uFF21': 'A',
|
2139 |
-
'\u00C0': 'A',
|
2140 |
-
'\u00C1': 'A',
|
2141 |
-
'\u00C2': 'A',
|
2142 |
-
'\u1EA6': 'A',
|
2143 |
-
'\u1EA4': 'A',
|
2144 |
-
'\u1EAA': 'A',
|
2145 |
-
'\u1EA8': 'A',
|
2146 |
-
'\u00C3': 'A',
|
2147 |
-
'\u0100': 'A',
|
2148 |
-
'\u0102': 'A',
|
2149 |
-
'\u1EB0': 'A',
|
2150 |
-
'\u1EAE': 'A',
|
2151 |
-
'\u1EB4': 'A',
|
2152 |
-
'\u1EB2': 'A',
|
2153 |
-
'\u0226': 'A',
|
2154 |
-
'\u01E0': 'A',
|
2155 |
-
'\u00C4': 'A',
|
2156 |
-
'\u01DE': 'A',
|
2157 |
-
'\u1EA2': 'A',
|
2158 |
-
'\u00C5': 'A',
|
2159 |
-
'\u01FA': 'A',
|
2160 |
-
'\u01CD': 'A',
|
2161 |
-
'\u0200': 'A',
|
2162 |
-
'\u0202': 'A',
|
2163 |
-
'\u1EA0': 'A',
|
2164 |
-
'\u1EAC': 'A',
|
2165 |
-
'\u1EB6': 'A',
|
2166 |
-
'\u1E00': 'A',
|
2167 |
-
'\u0104': 'A',
|
2168 |
-
'\u023A': 'A',
|
2169 |
-
'\u2C6F': 'A',
|
2170 |
-
'\uA732': 'AA',
|
2171 |
-
'\u00C6': 'AE',
|
2172 |
-
'\u01FC': 'AE',
|
2173 |
-
'\u01E2': 'AE',
|
2174 |
-
'\uA734': 'AO',
|
2175 |
-
'\uA736': 'AU',
|
2176 |
-
'\uA738': 'AV',
|
2177 |
-
'\uA73A': 'AV',
|
2178 |
-
'\uA73C': 'AY',
|
2179 |
-
'\u24B7': 'B',
|
2180 |
-
'\uFF22': 'B',
|
2181 |
-
'\u1E02': 'B',
|
2182 |
-
'\u1E04': 'B',
|
2183 |
-
'\u1E06': 'B',
|
2184 |
-
'\u0243': 'B',
|
2185 |
-
'\u0182': 'B',
|
2186 |
-
'\u0181': 'B',
|
2187 |
-
'\u24B8': 'C',
|
2188 |
-
'\uFF23': 'C',
|
2189 |
-
'\u0106': 'C',
|
2190 |
-
'\u0108': 'C',
|
2191 |
-
'\u010A': 'C',
|
2192 |
-
'\u010C': 'C',
|
2193 |
-
'\u00C7': 'C',
|
2194 |
-
'\u1E08': 'C',
|
2195 |
-
'\u0187': 'C',
|
2196 |
-
'\u023B': 'C',
|
2197 |
-
'\uA73E': 'C',
|
2198 |
-
'\u24B9': 'D',
|
2199 |
-
'\uFF24': 'D',
|
2200 |
-
'\u1E0A': 'D',
|
2201 |
-
'\u010E': 'D',
|
2202 |
-
'\u1E0C': 'D',
|
2203 |
-
'\u1E10': 'D',
|
2204 |
-
'\u1E12': 'D',
|
2205 |
-
'\u1E0E': 'D',
|
2206 |
-
'\u0110': 'D',
|
2207 |
-
'\u018B': 'D',
|
2208 |
-
'\u018A': 'D',
|
2209 |
-
'\u0189': 'D',
|
2210 |
-
'\uA779': 'D',
|
2211 |
-
'\u01F1': 'DZ',
|
2212 |
-
'\u01C4': 'DZ',
|
2213 |
-
'\u01F2': 'Dz',
|
2214 |
-
'\u01C5': 'Dz',
|
2215 |
-
'\u24BA': 'E',
|
2216 |
-
'\uFF25': 'E',
|
2217 |
-
'\u00C8': 'E',
|
2218 |
-
'\u00C9': 'E',
|
2219 |
-
'\u00CA': 'E',
|
2220 |
-
'\u1EC0': 'E',
|
2221 |
-
'\u1EBE': 'E',
|
2222 |
-
'\u1EC4': 'E',
|
2223 |
-
'\u1EC2': 'E',
|
2224 |
-
'\u1EBC': 'E',
|
2225 |
-
'\u0112': 'E',
|
2226 |
-
'\u1E14': 'E',
|
2227 |
-
'\u1E16': 'E',
|
2228 |
-
'\u0114': 'E',
|
2229 |
-
'\u0116': 'E',
|
2230 |
-
'\u00CB': 'E',
|
2231 |
-
'\u1EBA': 'E',
|
2232 |
-
'\u011A': 'E',
|
2233 |
-
'\u0204': 'E',
|
2234 |
-
'\u0206': 'E',
|
2235 |
-
'\u1EB8': 'E',
|
2236 |
-
'\u1EC6': 'E',
|
2237 |
-
'\u0228': 'E',
|
2238 |
-
'\u1E1C': 'E',
|
2239 |
-
'\u0118': 'E',
|
2240 |
-
'\u1E18': 'E',
|
2241 |
-
'\u1E1A': 'E',
|
2242 |
-
'\u0190': 'E',
|
2243 |
-
'\u018E': 'E',
|
2244 |
-
'\u24BB': 'F',
|
2245 |
-
'\uFF26': 'F',
|
2246 |
-
'\u1E1E': 'F',
|
2247 |
-
'\u0191': 'F',
|
2248 |
-
'\uA77B': 'F',
|
2249 |
-
'\u24BC': 'G',
|
2250 |
-
'\uFF27': 'G',
|
2251 |
-
'\u01F4': 'G',
|
2252 |
-
'\u011C': 'G',
|
2253 |
-
'\u1E20': 'G',
|
2254 |
-
'\u011E': 'G',
|
2255 |
-
'\u0120': 'G',
|
2256 |
-
'\u01E6': 'G',
|
2257 |
-
'\u0122': 'G',
|
2258 |
-
'\u01E4': 'G',
|
2259 |
-
'\u0193': 'G',
|
2260 |
-
'\uA7A0': 'G',
|
2261 |
-
'\uA77D': 'G',
|
2262 |
-
'\uA77E': 'G',
|
2263 |
-
'\u24BD': 'H',
|
2264 |
-
'\uFF28': 'H',
|
2265 |
-
'\u0124': 'H',
|
2266 |
-
'\u1E22': 'H',
|
2267 |
-
'\u1E26': 'H',
|
2268 |
-
'\u021E': 'H',
|
2269 |
-
'\u1E24': 'H',
|
2270 |
-
'\u1E28': 'H',
|
2271 |
-
'\u1E2A': 'H',
|
2272 |
-
'\u0126': 'H',
|
2273 |
-
'\u2C67': 'H',
|
2274 |
-
'\u2C75': 'H',
|
2275 |
-
'\uA78D': 'H',
|
2276 |
-
'\u24BE': 'I',
|
2277 |
-
'\uFF29': 'I',
|
2278 |
-
'\u00CC': 'I',
|
2279 |
-
'\u00CD': 'I',
|
2280 |
-
'\u00CE': 'I',
|
2281 |
-
'\u0128': 'I',
|
2282 |
-
'\u012A': 'I',
|
2283 |
-
'\u012C': 'I',
|
2284 |
-
'\u0130': 'I',
|
2285 |
-
'\u00CF': 'I',
|
2286 |
-
'\u1E2E': 'I',
|
2287 |
-
'\u1EC8': 'I',
|
2288 |
-
'\u01CF': 'I',
|
2289 |
-
'\u0208': 'I',
|
2290 |
-
'\u020A': 'I',
|
2291 |
-
'\u1ECA': 'I',
|
2292 |
-
'\u012E': 'I',
|
2293 |
-
'\u1E2C': 'I',
|
2294 |
-
'\u0197': 'I',
|
2295 |
-
'\u24BF': 'J',
|
2296 |
-
'\uFF2A': 'J',
|
2297 |
-
'\u0134': 'J',
|
2298 |
-
'\u0248': 'J',
|
2299 |
-
'\u24C0': 'K',
|
2300 |
-
'\uFF2B': 'K',
|
2301 |
-
'\u1E30': 'K',
|
2302 |
-
'\u01E8': 'K',
|
2303 |
-
'\u1E32': 'K',
|
2304 |
-
'\u0136': 'K',
|
2305 |
-
'\u1E34': 'K',
|
2306 |
-
'\u0198': 'K',
|
2307 |
-
'\u2C69': 'K',
|
2308 |
-
'\uA740': 'K',
|
2309 |
-
'\uA742': 'K',
|
2310 |
-
'\uA744': 'K',
|
2311 |
-
'\uA7A2': 'K',
|
2312 |
-
'\u24C1': 'L',
|
2313 |
-
'\uFF2C': 'L',
|
2314 |
-
'\u013F': 'L',
|
2315 |
-
'\u0139': 'L',
|
2316 |
-
'\u013D': 'L',
|
2317 |
-
'\u1E36': 'L',
|
2318 |
-
'\u1E38': 'L',
|
2319 |
-
'\u013B': 'L',
|
2320 |
-
'\u1E3C': 'L',
|
2321 |
-
'\u1E3A': 'L',
|
2322 |
-
'\u0141': 'L',
|
2323 |
-
'\u023D': 'L',
|
2324 |
-
'\u2C62': 'L',
|
2325 |
-
'\u2C60': 'L',
|
2326 |
-
'\uA748': 'L',
|
2327 |
-
'\uA746': 'L',
|
2328 |
-
'\uA780': 'L',
|
2329 |
-
'\u01C7': 'LJ',
|
2330 |
-
'\u01C8': 'Lj',
|
2331 |
-
'\u24C2': 'M',
|
2332 |
-
'\uFF2D': 'M',
|
2333 |
-
'\u1E3E': 'M',
|
2334 |
-
'\u1E40': 'M',
|
2335 |
-
'\u1E42': 'M',
|
2336 |
-
'\u2C6E': 'M',
|
2337 |
-
'\u019C': 'M',
|
2338 |
-
'\u24C3': 'N',
|
2339 |
-
'\uFF2E': 'N',
|
2340 |
-
'\u01F8': 'N',
|
2341 |
-
'\u0143': 'N',
|
2342 |
-
'\u00D1': 'N',
|
2343 |
-
'\u1E44': 'N',
|
2344 |
-
'\u0147': 'N',
|
2345 |
-
'\u1E46': 'N',
|
2346 |
-
'\u0145': 'N',
|
2347 |
-
'\u1E4A': 'N',
|
2348 |
-
'\u1E48': 'N',
|
2349 |
-
'\u0220': 'N',
|
2350 |
-
'\u019D': 'N',
|
2351 |
-
'\uA790': 'N',
|
2352 |
-
'\uA7A4': 'N',
|
2353 |
-
'\u01CA': 'NJ',
|
2354 |
-
'\u01CB': 'Nj',
|
2355 |
-
'\u24C4': 'O',
|
2356 |
-
'\uFF2F': 'O',
|
2357 |
-
'\u00D2': 'O',
|
2358 |
-
'\u00D3': 'O',
|
2359 |
-
'\u00D4': 'O',
|
2360 |
-
'\u1ED2': 'O',
|
2361 |
-
'\u1ED0': 'O',
|
2362 |
-
'\u1ED6': 'O',
|
2363 |
-
'\u1ED4': 'O',
|
2364 |
-
'\u00D5': 'O',
|
2365 |
-
'\u1E4C': 'O',
|
2366 |
-
'\u022C': 'O',
|
2367 |
-
'\u1E4E': 'O',
|
2368 |
-
'\u014C': 'O',
|
2369 |
-
'\u1E50': 'O',
|
2370 |
-
'\u1E52': 'O',
|
2371 |
-
'\u014E': 'O',
|
2372 |
-
'\u022E': 'O',
|
2373 |
-
'\u0230': 'O',
|
2374 |
-
'\u00D6': 'O',
|
2375 |
-
'\u022A': 'O',
|
2376 |
-
'\u1ECE': 'O',
|
2377 |
-
'\u0150': 'O',
|
2378 |
-
'\u01D1': 'O',
|
2379 |
-
'\u020C': 'O',
|
2380 |
-
'\u020E': 'O',
|
2381 |
-
'\u01A0': 'O',
|
2382 |
-
'\u1EDC': 'O',
|
2383 |
-
'\u1EDA': 'O',
|
2384 |
-
'\u1EE0': 'O',
|
2385 |
-
'\u1EDE': 'O',
|
2386 |
-
'\u1EE2': 'O',
|
2387 |
-
'\u1ECC': 'O',
|
2388 |
-
'\u1ED8': 'O',
|
2389 |
-
'\u01EA': 'O',
|
2390 |
-
'\u01EC': 'O',
|
2391 |
-
'\u00D8': 'O',
|
2392 |
-
'\u01FE': 'O',
|
2393 |
-
'\u0186': 'O',
|
2394 |
-
'\u019F': 'O',
|
2395 |
-
'\uA74A': 'O',
|
2396 |
-
'\uA74C': 'O',
|
2397 |
-
'\u01A2': 'OI',
|
2398 |
-
'\uA74E': 'OO',
|
2399 |
-
'\u0222': 'OU',
|
2400 |
-
'\u24C5': 'P',
|
2401 |
-
'\uFF30': 'P',
|
2402 |
-
'\u1E54': 'P',
|
2403 |
-
'\u1E56': 'P',
|
2404 |
-
'\u01A4': 'P',
|
2405 |
-
'\u2C63': 'P',
|
2406 |
-
'\uA750': 'P',
|
2407 |
-
'\uA752': 'P',
|
2408 |
-
'\uA754': 'P',
|
2409 |
-
'\u24C6': 'Q',
|
2410 |
-
'\uFF31': 'Q',
|
2411 |
-
'\uA756': 'Q',
|
2412 |
-
'\uA758': 'Q',
|
2413 |
-
'\u024A': 'Q',
|
2414 |
-
'\u24C7': 'R',
|
2415 |
-
'\uFF32': 'R',
|
2416 |
-
'\u0154': 'R',
|
2417 |
-
'\u1E58': 'R',
|
2418 |
-
'\u0158': 'R',
|
2419 |
-
'\u0210': 'R',
|
2420 |
-
'\u0212': 'R',
|
2421 |
-
'\u1E5A': 'R',
|
2422 |
-
'\u1E5C': 'R',
|
2423 |
-
'\u0156': 'R',
|
2424 |
-
'\u1E5E': 'R',
|
2425 |
-
'\u024C': 'R',
|
2426 |
-
'\u2C64': 'R',
|
2427 |
-
'\uA75A': 'R',
|
2428 |
-
'\uA7A6': 'R',
|
2429 |
-
'\uA782': 'R',
|
2430 |
-
'\u24C8': 'S',
|
2431 |
-
'\uFF33': 'S',
|
2432 |
-
'\u1E9E': 'S',
|
2433 |
-
'\u015A': 'S',
|
2434 |
-
'\u1E64': 'S',
|
2435 |
-
'\u015C': 'S',
|
2436 |
-
'\u1E60': 'S',
|
2437 |
-
'\u0160': 'S',
|
2438 |
-
'\u1E66': 'S',
|
2439 |
-
'\u1E62': 'S',
|
2440 |
-
'\u1E68': 'S',
|
2441 |
-
'\u0218': 'S',
|
2442 |
-
'\u015E': 'S',
|
2443 |
-
'\u2C7E': 'S',
|
2444 |
-
'\uA7A8': 'S',
|
2445 |
-
'\uA784': 'S',
|
2446 |
-
'\u24C9': 'T',
|
2447 |
-
'\uFF34': 'T',
|
2448 |
-
'\u1E6A': 'T',
|
2449 |
-
'\u0164': 'T',
|
2450 |
-
'\u1E6C': 'T',
|
2451 |
-
'\u021A': 'T',
|
2452 |
-
'\u0162': 'T',
|
2453 |
-
'\u1E70': 'T',
|
2454 |
-
'\u1E6E': 'T',
|
2455 |
-
'\u0166': 'T',
|
2456 |
-
'\u01AC': 'T',
|
2457 |
-
'\u01AE': 'T',
|
2458 |
-
'\u023E': 'T',
|
2459 |
-
'\uA786': 'T',
|
2460 |
-
'\uA728': 'TZ',
|
2461 |
-
'\u24CA': 'U',
|
2462 |
-
'\uFF35': 'U',
|
2463 |
-
'\u00D9': 'U',
|
2464 |
-
'\u00DA': 'U',
|
2465 |
-
'\u00DB': 'U',
|
2466 |
-
'\u0168': 'U',
|
2467 |
-
'\u1E78': 'U',
|
2468 |
-
'\u016A': 'U',
|
2469 |
-
'\u1E7A': 'U',
|
2470 |
-
'\u016C': 'U',
|
2471 |
-
'\u00DC': 'U',
|
2472 |
-
'\u01DB': 'U',
|
2473 |
-
'\u01D7': 'U',
|
2474 |
-
'\u01D5': 'U',
|
2475 |
-
'\u01D9': 'U',
|
2476 |
-
'\u1EE6': 'U',
|
2477 |
-
'\u016E': 'U',
|
2478 |
-
'\u0170': 'U',
|
2479 |
-
'\u01D3': 'U',
|
2480 |
-
'\u0214': 'U',
|
2481 |
-
'\u0216': 'U',
|
2482 |
-
'\u01AF': 'U',
|
2483 |
-
'\u1EEA': 'U',
|
2484 |
-
'\u1EE8': 'U',
|
2485 |
-
'\u1EEE': 'U',
|
2486 |
-
'\u1EEC': 'U',
|
2487 |
-
'\u1EF0': 'U',
|
2488 |
-
'\u1EE4': 'U',
|
2489 |
-
'\u1E72': 'U',
|
2490 |
-
'\u0172': 'U',
|
2491 |
-
'\u1E76': 'U',
|
2492 |
-
'\u1E74': 'U',
|
2493 |
-
'\u0244': 'U',
|
2494 |
-
'\u24CB': 'V',
|
2495 |
-
'\uFF36': 'V',
|
2496 |
-
'\u1E7C': 'V',
|
2497 |
-
'\u1E7E': 'V',
|
2498 |
-
'\u01B2': 'V',
|
2499 |
-
'\uA75E': 'V',
|
2500 |
-
'\u0245': 'V',
|
2501 |
-
'\uA760': 'VY',
|
2502 |
-
'\u24CC': 'W',
|
2503 |
-
'\uFF37': 'W',
|
2504 |
-
'\u1E80': 'W',
|
2505 |
-
'\u1E82': 'W',
|
2506 |
-
'\u0174': 'W',
|
2507 |
-
'\u1E86': 'W',
|
2508 |
-
'\u1E84': 'W',
|
2509 |
-
'\u1E88': 'W',
|
2510 |
-
'\u2C72': 'W',
|
2511 |
-
'\u24CD': 'X',
|
2512 |
-
'\uFF38': 'X',
|
2513 |
-
'\u1E8A': 'X',
|
2514 |
-
'\u1E8C': 'X',
|
2515 |
-
'\u24CE': 'Y',
|
2516 |
-
'\uFF39': 'Y',
|
2517 |
-
'\u1EF2': 'Y',
|
2518 |
-
'\u00DD': 'Y',
|
2519 |
-
'\u0176': 'Y',
|
2520 |
-
'\u1EF8': 'Y',
|
2521 |
-
'\u0232': 'Y',
|
2522 |
-
'\u1E8E': 'Y',
|
2523 |
-
'\u0178': 'Y',
|
2524 |
-
'\u1EF6': 'Y',
|
2525 |
-
'\u1EF4': 'Y',
|
2526 |
-
'\u01B3': 'Y',
|
2527 |
-
'\u024E': 'Y',
|
2528 |
-
'\u1EFE': 'Y',
|
2529 |
-
'\u24CF': 'Z',
|
2530 |
-
'\uFF3A': 'Z',
|
2531 |
-
'\u0179': 'Z',
|
2532 |
-
'\u1E90': 'Z',
|
2533 |
-
'\u017B': 'Z',
|
2534 |
-
'\u017D': 'Z',
|
2535 |
-
'\u1E92': 'Z',
|
2536 |
-
'\u1E94': 'Z',
|
2537 |
-
'\u01B5': 'Z',
|
2538 |
-
'\u0224': 'Z',
|
2539 |
-
'\u2C7F': 'Z',
|
2540 |
-
'\u2C6B': 'Z',
|
2541 |
-
'\uA762': 'Z',
|
2542 |
-
'\u24D0': 'a',
|
2543 |
-
'\uFF41': 'a',
|
2544 |
-
'\u1E9A': 'a',
|
2545 |
-
'\u00E0': 'a',
|
2546 |
-
'\u00E1': 'a',
|
2547 |
-
'\u00E2': 'a',
|
2548 |
-
'\u1EA7': 'a',
|
2549 |
-
'\u1EA5': 'a',
|
2550 |
-
'\u1EAB': 'a',
|
2551 |
-
'\u1EA9': 'a',
|
2552 |
-
'\u00E3': 'a',
|
2553 |
-
'\u0101': 'a',
|
2554 |
-
'\u0103': 'a',
|
2555 |
-
'\u1EB1': 'a',
|
2556 |
-
'\u1EAF': 'a',
|
2557 |
-
'\u1EB5': 'a',
|
2558 |
-
'\u1EB3': 'a',
|
2559 |
-
'\u0227': 'a',
|
2560 |
-
'\u01E1': 'a',
|
2561 |
-
'\u00E4': 'a',
|
2562 |
-
'\u01DF': 'a',
|
2563 |
-
'\u1EA3': 'a',
|
2564 |
-
'\u00E5': 'a',
|
2565 |
-
'\u01FB': 'a',
|
2566 |
-
'\u01CE': 'a',
|
2567 |
-
'\u0201': 'a',
|
2568 |
-
'\u0203': 'a',
|
2569 |
-
'\u1EA1': 'a',
|
2570 |
-
'\u1EAD': 'a',
|
2571 |
-
'\u1EB7': 'a',
|
2572 |
-
'\u1E01': 'a',
|
2573 |
-
'\u0105': 'a',
|
2574 |
-
'\u2C65': 'a',
|
2575 |
-
'\u0250': 'a',
|
2576 |
-
'\uA733': 'aa',
|
2577 |
-
'\u00E6': 'ae',
|
2578 |
-
'\u01FD': 'ae',
|
2579 |
-
'\u01E3': 'ae',
|
2580 |
-
'\uA735': 'ao',
|
2581 |
-
'\uA737': 'au',
|
2582 |
-
'\uA739': 'av',
|
2583 |
-
'\uA73B': 'av',
|
2584 |
-
'\uA73D': 'ay',
|
2585 |
-
'\u24D1': 'b',
|
2586 |
-
'\uFF42': 'b',
|
2587 |
-
'\u1E03': 'b',
|
2588 |
-
'\u1E05': 'b',
|
2589 |
-
'\u1E07': 'b',
|
2590 |
-
'\u0180': 'b',
|
2591 |
-
'\u0183': 'b',
|
2592 |
-
'\u0253': 'b',
|
2593 |
-
'\u24D2': 'c',
|
2594 |
-
'\uFF43': 'c',
|
2595 |
-
'\u0107': 'c',
|
2596 |
-
'\u0109': 'c',
|
2597 |
-
'\u010B': 'c',
|
2598 |
-
'\u010D': 'c',
|
2599 |
-
'\u00E7': 'c',
|
2600 |
-
'\u1E09': 'c',
|
2601 |
-
'\u0188': 'c',
|
2602 |
-
'\u023C': 'c',
|
2603 |
-
'\uA73F': 'c',
|
2604 |
-
'\u2184': 'c',
|
2605 |
-
'\u24D3': 'd',
|
2606 |
-
'\uFF44': 'd',
|
2607 |
-
'\u1E0B': 'd',
|
2608 |
-
'\u010F': 'd',
|
2609 |
-
'\u1E0D': 'd',
|
2610 |
-
'\u1E11': 'd',
|
2611 |
-
'\u1E13': 'd',
|
2612 |
-
'\u1E0F': 'd',
|
2613 |
-
'\u0111': 'd',
|
2614 |
-
'\u018C': 'd',
|
2615 |
-
'\u0256': 'd',
|
2616 |
-
'\u0257': 'd',
|
2617 |
-
'\uA77A': 'd',
|
2618 |
-
'\u01F3': 'dz',
|
2619 |
-
'\u01C6': 'dz',
|
2620 |
-
'\u24D4': 'e',
|
2621 |
-
'\uFF45': 'e',
|
2622 |
-
'\u00E8': 'e',
|
2623 |
-
'\u00E9': 'e',
|
2624 |
-
'\u00EA': 'e',
|
2625 |
-
'\u1EC1': 'e',
|
2626 |
-
'\u1EBF': 'e',
|
2627 |
-
'\u1EC5': 'e',
|
2628 |
-
'\u1EC3': 'e',
|
2629 |
-
'\u1EBD': 'e',
|
2630 |
-
'\u0113': 'e',
|
2631 |
-
'\u1E15': 'e',
|
2632 |
-
'\u1E17': 'e',
|
2633 |
-
'\u0115': 'e',
|
2634 |
-
'\u0117': 'e',
|
2635 |
-
'\u00EB': 'e',
|
2636 |
-
'\u1EBB': 'e',
|
2637 |
-
'\u011B': 'e',
|
2638 |
-
'\u0205': 'e',
|
2639 |
-
'\u0207': 'e',
|
2640 |
-
'\u1EB9': 'e',
|
2641 |
-
'\u1EC7': 'e',
|
2642 |
-
'\u0229': 'e',
|
2643 |
-
'\u1E1D': 'e',
|
2644 |
-
'\u0119': 'e',
|
2645 |
-
'\u1E19': 'e',
|
2646 |
-
'\u1E1B': 'e',
|
2647 |
-
'\u0247': 'e',
|
2648 |
-
'\u025B': 'e',
|
2649 |
-
'\u01DD': 'e',
|
2650 |
-
'\u24D5': 'f',
|
2651 |
-
'\uFF46': 'f',
|
2652 |
-
'\u1E1F': 'f',
|
2653 |
-
'\u0192': 'f',
|
2654 |
-
'\uA77C': 'f',
|
2655 |
-
'\u24D6': 'g',
|
2656 |
-
'\uFF47': 'g',
|
2657 |
-
'\u01F5': 'g',
|
2658 |
-
'\u011D': 'g',
|
2659 |
-
'\u1E21': 'g',
|
2660 |
-
'\u011F': 'g',
|
2661 |
-
'\u0121': 'g',
|
2662 |
-
'\u01E7': 'g',
|
2663 |
-
'\u0123': 'g',
|
2664 |
-
'\u01E5': 'g',
|
2665 |
-
'\u0260': 'g',
|
2666 |
-
'\uA7A1': 'g',
|
2667 |
-
'\u1D79': 'g',
|
2668 |
-
'\uA77F': 'g',
|
2669 |
-
'\u24D7': 'h',
|
2670 |
-
'\uFF48': 'h',
|
2671 |
-
'\u0125': 'h',
|
2672 |
-
'\u1E23': 'h',
|
2673 |
-
'\u1E27': 'h',
|
2674 |
-
'\u021F': 'h',
|
2675 |
-
'\u1E25': 'h',
|
2676 |
-
'\u1E29': 'h',
|
2677 |
-
'\u1E2B': 'h',
|
2678 |
-
'\u1E96': 'h',
|
2679 |
-
'\u0127': 'h',
|
2680 |
-
'\u2C68': 'h',
|
2681 |
-
'\u2C76': 'h',
|
2682 |
-
'\u0265': 'h',
|
2683 |
-
'\u0195': 'hv',
|
2684 |
-
'\u24D8': 'i',
|
2685 |
-
'\uFF49': 'i',
|
2686 |
-
'\u00EC': 'i',
|
2687 |
-
'\u00ED': 'i',
|
2688 |
-
'\u00EE': 'i',
|
2689 |
-
'\u0129': 'i',
|
2690 |
-
'\u012B': 'i',
|
2691 |
-
'\u012D': 'i',
|
2692 |
-
'\u00EF': 'i',
|
2693 |
-
'\u1E2F': 'i',
|
2694 |
-
'\u1EC9': 'i',
|
2695 |
-
'\u01D0': 'i',
|
2696 |
-
'\u0209': 'i',
|
2697 |
-
'\u020B': 'i',
|
2698 |
-
'\u1ECB': 'i',
|
2699 |
-
'\u012F': 'i',
|
2700 |
-
'\u1E2D': 'i',
|
2701 |
-
'\u0268': 'i',
|
2702 |
-
'\u0131': 'i',
|
2703 |
-
'\u24D9': 'j',
|
2704 |
-
'\uFF4A': 'j',
|
2705 |
-
'\u0135': 'j',
|
2706 |
-
'\u01F0': 'j',
|
2707 |
-
'\u0249': 'j',
|
2708 |
-
'\u24DA': 'k',
|
2709 |
-
'\uFF4B': 'k',
|
2710 |
-
'\u1E31': 'k',
|
2711 |
-
'\u01E9': 'k',
|
2712 |
-
'\u1E33': 'k',
|
2713 |
-
'\u0137': 'k',
|
2714 |
-
'\u1E35': 'k',
|
2715 |
-
'\u0199': 'k',
|
2716 |
-
'\u2C6A': 'k',
|
2717 |
-
'\uA741': 'k',
|
2718 |
-
'\uA743': 'k',
|
2719 |
-
'\uA745': 'k',
|
2720 |
-
'\uA7A3': 'k',
|
2721 |
-
'\u24DB': 'l',
|
2722 |
-
'\uFF4C': 'l',
|
2723 |
-
'\u0140': 'l',
|
2724 |
-
'\u013A': 'l',
|
2725 |
-
'\u013E': 'l',
|
2726 |
-
'\u1E37': 'l',
|
2727 |
-
'\u1E39': 'l',
|
2728 |
-
'\u013C': 'l',
|
2729 |
-
'\u1E3D': 'l',
|
2730 |
-
'\u1E3B': 'l',
|
2731 |
-
'\u017F': 'l',
|
2732 |
-
'\u0142': 'l',
|
2733 |
-
'\u019A': 'l',
|
2734 |
-
'\u026B': 'l',
|
2735 |
-
'\u2C61': 'l',
|
2736 |
-
'\uA749': 'l',
|
2737 |
-
'\uA781': 'l',
|
2738 |
-
'\uA747': 'l',
|
2739 |
-
'\u01C9': 'lj',
|
2740 |
-
'\u24DC': 'm',
|
2741 |
-
'\uFF4D': 'm',
|
2742 |
-
'\u1E3F': 'm',
|
2743 |
-
'\u1E41': 'm',
|
2744 |
-
'\u1E43': 'm',
|
2745 |
-
'\u0271': 'm',
|
2746 |
-
'\u026F': 'm',
|
2747 |
-
'\u24DD': 'n',
|
2748 |
-
'\uFF4E': 'n',
|
2749 |
-
'\u01F9': 'n',
|
2750 |
-
'\u0144': 'n',
|
2751 |
-
'\u00F1': 'n',
|
2752 |
-
'\u1E45': 'n',
|
2753 |
-
'\u0148': 'n',
|
2754 |
-
'\u1E47': 'n',
|
2755 |
-
'\u0146': 'n',
|
2756 |
-
'\u1E4B': 'n',
|
2757 |
-
'\u1E49': 'n',
|
2758 |
-
'\u019E': 'n',
|
2759 |
-
'\u0272': 'n',
|
2760 |
-
'\u0149': 'n',
|
2761 |
-
'\uA791': 'n',
|
2762 |
-
'\uA7A5': 'n',
|
2763 |
-
'\u01CC': 'nj',
|
2764 |
-
'\u24DE': 'o',
|
2765 |
-
'\uFF4F': 'o',
|
2766 |
-
'\u00F2': 'o',
|
2767 |
-
'\u00F3': 'o',
|
2768 |
-
'\u00F4': 'o',
|
2769 |
-
'\u1ED3': 'o',
|
2770 |
-
'\u1ED1': 'o',
|
2771 |
-
'\u1ED7': 'o',
|
2772 |
-
'\u1ED5': 'o',
|
2773 |
-
'\u00F5': 'o',
|
2774 |
-
'\u1E4D': 'o',
|
2775 |
-
'\u022D': 'o',
|
2776 |
-
'\u1E4F': 'o',
|
2777 |
-
'\u014D': 'o',
|
2778 |
-
'\u1E51': 'o',
|
2779 |
-
'\u1E53': 'o',
|
2780 |
-
'\u014F': 'o',
|
2781 |
-
'\u022F': 'o',
|
2782 |
-
'\u0231': 'o',
|
2783 |
-
'\u00F6': 'o',
|
2784 |
-
'\u022B': 'o',
|
2785 |
-
'\u1ECF': 'o',
|
2786 |
-
'\u0151': 'o',
|
2787 |
-
'\u01D2': 'o',
|
2788 |
-
'\u020D': 'o',
|
2789 |
-
'\u020F': 'o',
|
2790 |
-
'\u01A1': 'o',
|
2791 |
-
'\u1EDD': 'o',
|
2792 |
-
'\u1EDB': 'o',
|
2793 |
-
'\u1EE1': 'o',
|
2794 |
-
'\u1EDF': 'o',
|
2795 |
-
'\u1EE3': 'o',
|
2796 |
-
'\u1ECD': 'o',
|
2797 |
-
'\u1ED9': 'o',
|
2798 |
-
'\u01EB': 'o',
|
2799 |
-
'\u01ED': 'o',
|
2800 |
-
'\u00F8': 'o',
|
2801 |
-
'\u01FF': 'o',
|
2802 |
-
'\u0254': 'o',
|
2803 |
-
'\uA74B': 'o',
|
2804 |
-
'\uA74D': 'o',
|
2805 |
-
'\u0275': 'o',
|
2806 |
-
'\u01A3': 'oi',
|
2807 |
-
'\u0223': 'ou',
|
2808 |
-
'\uA74F': 'oo',
|
2809 |
-
'\u24DF': 'p',
|
2810 |
-
'\uFF50': 'p',
|
2811 |
-
'\u1E55': 'p',
|
2812 |
-
'\u1E57': 'p',
|
2813 |
-
'\u01A5': 'p',
|
2814 |
-
'\u1D7D': 'p',
|
2815 |
-
'\uA751': 'p',
|
2816 |
-
'\uA753': 'p',
|
2817 |
-
'\uA755': 'p',
|
2818 |
-
'\u24E0': 'q',
|
2819 |
-
'\uFF51': 'q',
|
2820 |
-
'\u024B': 'q',
|
2821 |
-
'\uA757': 'q',
|
2822 |
-
'\uA759': 'q',
|
2823 |
-
'\u24E1': 'r',
|
2824 |
-
'\uFF52': 'r',
|
2825 |
-
'\u0155': 'r',
|
2826 |
-
'\u1E59': 'r',
|
2827 |
-
'\u0159': 'r',
|
2828 |
-
'\u0211': 'r',
|
2829 |
-
'\u0213': 'r',
|
2830 |
-
'\u1E5B': 'r',
|
2831 |
-
'\u1E5D': 'r',
|
2832 |
-
'\u0157': 'r',
|
2833 |
-
'\u1E5F': 'r',
|
2834 |
-
'\u024D': 'r',
|
2835 |
-
'\u027D': 'r',
|
2836 |
-
'\uA75B': 'r',
|
2837 |
-
'\uA7A7': 'r',
|
2838 |
-
'\uA783': 'r',
|
2839 |
-
'\u24E2': 's',
|
2840 |
-
'\uFF53': 's',
|
2841 |
-
'\u00DF': 's',
|
2842 |
-
'\u015B': 's',
|
2843 |
-
'\u1E65': 's',
|
2844 |
-
'\u015D': 's',
|
2845 |
-
'\u1E61': 's',
|
2846 |
-
'\u0161': 's',
|
2847 |
-
'\u1E67': 's',
|
2848 |
-
'\u1E63': 's',
|
2849 |
-
'\u1E69': 's',
|
2850 |
-
'\u0219': 's',
|
2851 |
-
'\u015F': 's',
|
2852 |
-
'\u023F': 's',
|
2853 |
-
'\uA7A9': 's',
|
2854 |
-
'\uA785': 's',
|
2855 |
-
'\u1E9B': 's',
|
2856 |
-
'\u24E3': 't',
|
2857 |
-
'\uFF54': 't',
|
2858 |
-
'\u1E6B': 't',
|
2859 |
-
'\u1E97': 't',
|
2860 |
-
'\u0165': 't',
|
2861 |
-
'\u1E6D': 't',
|
2862 |
-
'\u021B': 't',
|
2863 |
-
'\u0163': 't',
|
2864 |
-
'\u1E71': 't',
|
2865 |
-
'\u1E6F': 't',
|
2866 |
-
'\u0167': 't',
|
2867 |
-
'\u01AD': 't',
|
2868 |
-
'\u0288': 't',
|
2869 |
-
'\u2C66': 't',
|
2870 |
-
'\uA787': 't',
|
2871 |
-
'\uA729': 'tz',
|
2872 |
-
'\u24E4': 'u',
|
2873 |
-
'\uFF55': 'u',
|
2874 |
-
'\u00F9': 'u',
|
2875 |
-
'\u00FA': 'u',
|
2876 |
-
'\u00FB': 'u',
|
2877 |
-
'\u0169': 'u',
|
2878 |
-
'\u1E79': 'u',
|
2879 |
-
'\u016B': 'u',
|
2880 |
-
'\u1E7B': 'u',
|
2881 |
-
'\u016D': 'u',
|
2882 |
-
'\u00FC': 'u',
|
2883 |
-
'\u01DC': 'u',
|
2884 |
-
'\u01D8': 'u',
|
2885 |
-
'\u01D6': 'u',
|
2886 |
-
'\u01DA': 'u',
|
2887 |
-
'\u1EE7': 'u',
|
2888 |
-
'\u016F': 'u',
|
2889 |
-
'\u0171': 'u',
|
2890 |
-
'\u01D4': 'u',
|
2891 |
-
'\u0215': 'u',
|
2892 |
-
'\u0217': 'u',
|
2893 |
-
'\u01B0': 'u',
|
2894 |
-
'\u1EEB': 'u',
|
2895 |
-
'\u1EE9': 'u',
|
2896 |
-
'\u1EEF': 'u',
|
2897 |
-
'\u1EED': 'u',
|
2898 |
-
'\u1EF1': 'u',
|
2899 |
-
'\u1EE5': 'u',
|
2900 |
-
'\u1E73': 'u',
|
2901 |
-
'\u0173': 'u',
|
2902 |
-
'\u1E77': 'u',
|
2903 |
-
'\u1E75': 'u',
|
2904 |
-
'\u0289': 'u',
|
2905 |
-
'\u24E5': 'v',
|
2906 |
-
'\uFF56': 'v',
|
2907 |
-
'\u1E7D': 'v',
|
2908 |
-
'\u1E7F': 'v',
|
2909 |
-
'\u028B': 'v',
|
2910 |
-
'\uA75F': 'v',
|
2911 |
-
'\u028C': 'v',
|
2912 |
-
'\uA761': 'vy',
|
2913 |
-
'\u24E6': 'w',
|
2914 |
-
'\uFF57': 'w',
|
2915 |
-
'\u1E81': 'w',
|
2916 |
-
'\u1E83': 'w',
|
2917 |
-
'\u0175': 'w',
|
2918 |
-
'\u1E87': 'w',
|
2919 |
-
'\u1E85': 'w',
|
2920 |
-
'\u1E98': 'w',
|
2921 |
-
'\u1E89': 'w',
|
2922 |
-
'\u2C73': 'w',
|
2923 |
-
'\u24E7': 'x',
|
2924 |
-
'\uFF58': 'x',
|
2925 |
-
'\u1E8B': 'x',
|
2926 |
-
'\u1E8D': 'x',
|
2927 |
-
'\u24E8': 'y',
|
2928 |
-
'\uFF59': 'y',
|
2929 |
-
'\u1EF3': 'y',
|
2930 |
-
'\u00FD': 'y',
|
2931 |
-
'\u0177': 'y',
|
2932 |
-
'\u1EF9': 'y',
|
2933 |
-
'\u0233': 'y',
|
2934 |
-
'\u1E8F': 'y',
|
2935 |
-
'\u00FF': 'y',
|
2936 |
-
'\u1EF7': 'y',
|
2937 |
-
'\u1E99': 'y',
|
2938 |
-
'\u1EF5': 'y',
|
2939 |
-
'\u01B4': 'y',
|
2940 |
-
'\u024F': 'y',
|
2941 |
-
'\u1EFF': 'y',
|
2942 |
-
'\u24E9': 'z',
|
2943 |
-
'\uFF5A': 'z',
|
2944 |
-
'\u017A': 'z',
|
2945 |
-
'\u1E91': 'z',
|
2946 |
-
'\u017C': 'z',
|
2947 |
-
'\u017E': 'z',
|
2948 |
-
'\u1E93': 'z',
|
2949 |
-
'\u1E95': 'z',
|
2950 |
-
'\u01B6': 'z',
|
2951 |
-
'\u0225': 'z',
|
2952 |
-
'\u0240': 'z',
|
2953 |
-
'\u2C6C': 'z',
|
2954 |
-
'\uA763': 'z',
|
2955 |
-
'\u0386': '\u0391',
|
2956 |
-
'\u0388': '\u0395',
|
2957 |
-
'\u0389': '\u0397',
|
2958 |
-
'\u038A': '\u0399',
|
2959 |
-
'\u03AA': '\u0399',
|
2960 |
-
'\u038C': '\u039F',
|
2961 |
-
'\u038E': '\u03A5',
|
2962 |
-
'\u03AB': '\u03A5',
|
2963 |
-
'\u038F': '\u03A9',
|
2964 |
-
'\u03AC': '\u03B1',
|
2965 |
-
'\u03AD': '\u03B5',
|
2966 |
-
'\u03AE': '\u03B7',
|
2967 |
-
'\u03AF': '\u03B9',
|
2968 |
-
'\u03CA': '\u03B9',
|
2969 |
-
'\u0390': '\u03B9',
|
2970 |
-
'\u03CC': '\u03BF',
|
2971 |
-
'\u03CD': '\u03C5',
|
2972 |
-
'\u03CB': '\u03C5',
|
2973 |
-
'\u03B0': '\u03C5',
|
2974 |
-
'\u03C9': '\u03C9',
|
2975 |
-
'\u03C2': '\u03C3'
|
2976 |
-
};
|
2977 |
-
|
2978 |
-
return diacritics;
|
2979 |
-
});
|
2980 |
-
|
2981 |
-
S2.define('select2/data/base',[
|
2982 |
-
'../utils'
|
2983 |
-
], function (Utils) {
|
2984 |
-
function BaseAdapter ($element, options) {
|
2985 |
-
BaseAdapter.__super__.constructor.call(this);
|
2986 |
-
}
|
2987 |
-
|
2988 |
-
Utils.Extend(BaseAdapter, Utils.Observable);
|
2989 |
-
|
2990 |
-
BaseAdapter.prototype.current = function (callback) {
|
2991 |
-
throw new Error('The `current` method must be defined in child classes.');
|
2992 |
-
};
|
2993 |
-
|
2994 |
-
BaseAdapter.prototype.query = function (params, callback) {
|
2995 |
-
throw new Error('The `query` method must be defined in child classes.');
|
2996 |
-
};
|
2997 |
-
|
2998 |
-
BaseAdapter.prototype.bind = function (container, $container) {
|
2999 |
-
// Can be implemented in subclasses
|
3000 |
-
};
|
3001 |
-
|
3002 |
-
BaseAdapter.prototype.destroy = function () {
|
3003 |
-
// Can be implemented in subclasses
|
3004 |
-
};
|
3005 |
-
|
3006 |
-
BaseAdapter.prototype.generateResultId = function (container, data) {
|
3007 |
-
var id = container.id + '-result-';
|
3008 |
-
|
3009 |
-
id += Utils.generateChars(4);
|
3010 |
-
|
3011 |
-
if (data.id != null) {
|
3012 |
-
id += '-' + data.id.toString();
|
3013 |
-
} else {
|
3014 |
-
id += '-' + Utils.generateChars(4);
|
3015 |
-
}
|
3016 |
-
return id;
|
3017 |
-
};
|
3018 |
-
|
3019 |
-
return BaseAdapter;
|
3020 |
-
});
|
3021 |
-
|
3022 |
-
S2.define('select2/data/select',[
|
3023 |
-
'./base',
|
3024 |
-
'../utils',
|
3025 |
-
'jquery'
|
3026 |
-
], function (BaseAdapter, Utils, $) {
|
3027 |
-
function SelectAdapter ($element, options) {
|
3028 |
-
this.$element = $element;
|
3029 |
-
this.options = options;
|
3030 |
-
|
3031 |
-
SelectAdapter.__super__.constructor.call(this);
|
3032 |
-
}
|
3033 |
-
|
3034 |
-
Utils.Extend(SelectAdapter, BaseAdapter);
|
3035 |
-
|
3036 |
-
SelectAdapter.prototype.current = function (callback) {
|
3037 |
-
var data = [];
|
3038 |
-
var self = this;
|
3039 |
-
|
3040 |
-
this.$element.find(':selected').each(function () {
|
3041 |
-
var $option = $(this);
|
3042 |
-
|
3043 |
-
var option = self.item($option);
|
3044 |
-
|
3045 |
-
data.push(option);
|
3046 |
-
});
|
3047 |
-
|
3048 |
-
callback(data);
|
3049 |
-
};
|
3050 |
-
|
3051 |
-
SelectAdapter.prototype.select = function (data) {
|
3052 |
-
var self = this;
|
3053 |
-
|
3054 |
-
data.selected = true;
|
3055 |
-
|
3056 |
-
// If data.element is a DOM node, use it instead
|
3057 |
-
if ($(data.element).is('option')) {
|
3058 |
-
data.element.selected = true;
|
3059 |
-
|
3060 |
-
this.$element.trigger('change');
|
3061 |
-
|
3062 |
-
return;
|
3063 |
-
}
|
3064 |
-
|
3065 |
-
if (this.$element.prop('multiple')) {
|
3066 |
-
this.current(function (currentData) {
|
3067 |
-
var val = [];
|
3068 |
-
|
3069 |
-
data = [data];
|
3070 |
-
data.push.apply(data, currentData);
|
3071 |
-
|
3072 |
-
for (var d = 0; d < data.length; d++) {
|
3073 |
-
var id = data[d].id;
|
3074 |
-
|
3075 |
-
if ($.inArray(id, val) === -1) {
|
3076 |
-
val.push(id);
|
3077 |
-
}
|
3078 |
-
}
|
3079 |
-
|
3080 |
-
self.$element.val(val);
|
3081 |
-
self.$element.trigger('change');
|
3082 |
-
});
|
3083 |
-
} else {
|
3084 |
-
var val = data.id;
|
3085 |
-
|
3086 |
-
this.$element.val(val);
|
3087 |
-
this.$element.trigger('change');
|
3088 |
-
}
|
3089 |
-
};
|
3090 |
-
|
3091 |
-
SelectAdapter.prototype.unselect = function (data) {
|
3092 |
-
var self = this;
|
3093 |
-
|
3094 |
-
if (!this.$element.prop('multiple')) {
|
3095 |
-
return;
|
3096 |
-
}
|
3097 |
-
|
3098 |
-
data.selected = false;
|
3099 |
-
|
3100 |
-
if ($(data.element).is('option')) {
|
3101 |
-
data.element.selected = false;
|
3102 |
-
|
3103 |
-
this.$element.trigger('change');
|
3104 |
-
|
3105 |
-
return;
|
3106 |
-
}
|
3107 |
-
|
3108 |
-
this.current(function (currentData) {
|
3109 |
-
var val = [];
|
3110 |
-
|
3111 |
-
for (var d = 0; d < currentData.length; d++) {
|
3112 |
-
var id = currentData[d].id;
|
3113 |
-
|
3114 |
-
if (id !== data.id && $.inArray(id, val) === -1) {
|
3115 |
-
val.push(id);
|
3116 |
-
}
|
3117 |
-
}
|
3118 |
-
|
3119 |
-
self.$element.val(val);
|
3120 |
-
|
3121 |
-
self.$element.trigger('change');
|
3122 |
-
});
|
3123 |
-
};
|
3124 |
-
|
3125 |
-
SelectAdapter.prototype.bind = function (container, $container) {
|
3126 |
-
var self = this;
|
3127 |
-
|
3128 |
-
this.container = container;
|
3129 |
-
|
3130 |
-
container.on('select', function (params) {
|
3131 |
-
self.select(params.data);
|
3132 |
-
});
|
3133 |
-
|
3134 |
-
container.on('unselect', function (params) {
|
3135 |
-
self.unselect(params.data);
|
3136 |
-
});
|
3137 |
-
};
|
3138 |
-
|
3139 |
-
SelectAdapter.prototype.destroy = function () {
|
3140 |
-
// Remove anything added to child elements
|
3141 |
-
this.$element.find('*').each(function () {
|
3142 |
-
// Remove any custom data set by Select2
|
3143 |
-
$.removeData(this, 'data');
|
3144 |
-
});
|
3145 |
-
};
|
3146 |
-
|
3147 |
-
SelectAdapter.prototype.query = function (params, callback) {
|
3148 |
-
var data = [];
|
3149 |
-
var self = this;
|
3150 |
-
|
3151 |
-
var $options = this.$element.children();
|
3152 |
-
|
3153 |
-
$options.each(function () {
|
3154 |
-
var $option = $(this);
|
3155 |
-
|
3156 |
-
if (!$option.is('option') && !$option.is('optgroup')) {
|
3157 |
-
return;
|
3158 |
-
}
|
3159 |
-
|
3160 |
-
var option = self.item($option);
|
3161 |
-
|
3162 |
-
var matches = self.matches(params, option);
|
3163 |
-
|
3164 |
-
if (matches !== null) {
|
3165 |
-
data.push(matches);
|
3166 |
-
}
|
3167 |
-
});
|
3168 |
-
|
3169 |
-
callback({
|
3170 |
-
results: data
|
3171 |
-
});
|
3172 |
-
};
|
3173 |
-
|
3174 |
-
SelectAdapter.prototype.addOptions = function ($options) {
|
3175 |
-
Utils.appendMany(this.$element, $options);
|
3176 |
-
};
|
3177 |
-
|
3178 |
-
SelectAdapter.prototype.option = function (data) {
|
3179 |
-
var option;
|
3180 |
-
|
3181 |
-
if (data.children) {
|
3182 |
-
option = document.createElement('optgroup');
|
3183 |
-
option.label = data.text;
|
3184 |
-
} else {
|
3185 |
-
option = document.createElement('option');
|
3186 |
-
|
3187 |
-
if (option.textContent !== undefined) {
|
3188 |
-
option.textContent = data.text;
|
3189 |
-
} else {
|
3190 |
-
option.innerText = data.text;
|
3191 |
-
}
|
3192 |
-
}
|
3193 |
-
|
3194 |
-
if (data.id) {
|
3195 |
-
option.value = data.id;
|
3196 |
-
}
|
3197 |
-
|
3198 |
-
if (data.disabled) {
|
3199 |
-
option.disabled = true;
|
3200 |
-
}
|
3201 |
-
|
3202 |
-
if (data.selected) {
|
3203 |
-
option.selected = true;
|
3204 |
-
}
|
3205 |
-
|
3206 |
-
if (data.title) {
|
3207 |
-
option.title = data.title;
|
3208 |
-
}
|
3209 |
-
|
3210 |
-
var $option = $(option);
|
3211 |
-
|
3212 |
-
var normalizedData = this._normalizeItem(data);
|
3213 |
-
normalizedData.element = option;
|
3214 |
-
|
3215 |
-
// Override the option's data with the combined data
|
3216 |
-
$.data(option, 'data', normalizedData);
|
3217 |
-
|
3218 |
-
return $option;
|
3219 |
-
};
|
3220 |
-
|
3221 |
-
SelectAdapter.prototype.item = function ($option) {
|
3222 |
-
var data = {};
|
3223 |
-
|
3224 |
-
data = $.data($option[0], 'data');
|
3225 |
-
|
3226 |
-
if (data != null) {
|
3227 |
-
return data;
|
3228 |
-
}
|
3229 |
-
|
3230 |
-
if ($option.is('option')) {
|
3231 |
-
data = {
|
3232 |
-
id: $option.val(),
|
3233 |
-
text: $option.text(),
|
3234 |
-
disabled: $option.prop('disabled'),
|
3235 |
-
selected: $option.prop('selected'),
|
3236 |
-
title: $option.prop('title')
|
3237 |
-
};
|
3238 |
-
} else if ($option.is('optgroup')) {
|
3239 |
-
data = {
|
3240 |
-
text: $option.prop('label'),
|
3241 |
-
children: [],
|
3242 |
-
title: $option.prop('title')
|
3243 |
-
};
|
3244 |
-
|
3245 |
-
var $children = $option.children('option');
|
3246 |
-
var children = [];
|
3247 |
-
|
3248 |
-
for (var c = 0; c < $children.length; c++) {
|
3249 |
-
var $child = $($children[c]);
|
3250 |
-
|
3251 |
-
var child = this.item($child);
|
3252 |
-
|
3253 |
-
children.push(child);
|
3254 |
-
}
|
3255 |
-
|
3256 |
-
data.children = children;
|
3257 |
-
}
|
3258 |
-
|
3259 |
-
data = this._normalizeItem(data);
|
3260 |
-
data.element = $option[0];
|
3261 |
-
|
3262 |
-
$.data($option[0], 'data', data);
|
3263 |
-
|
3264 |
-
return data;
|
3265 |
-
};
|
3266 |
-
|
3267 |
-
SelectAdapter.prototype._normalizeItem = function (item) {
|
3268 |
-
if (!$.isPlainObject(item)) {
|
3269 |
-
item = {
|
3270 |
-
id: item,
|
3271 |
-
text: item
|
3272 |
-
};
|
3273 |
-
}
|
3274 |
-
|
3275 |
-
item = $.extend({}, {
|
3276 |
-
text: ''
|
3277 |
-
}, item);
|
3278 |
-
|
3279 |
-
var defaults = {
|
3280 |
-
selected: false,
|
3281 |
-
disabled: false
|
3282 |
-
};
|
3283 |
-
|
3284 |
-
if (item.id != null) {
|
3285 |
-
item.id = item.id.toString();
|
3286 |
-
}
|
3287 |
-
|
3288 |
-
if (item.text != null) {
|
3289 |
-
item.text = item.text.toString();
|
3290 |
-
}
|
3291 |
-
|
3292 |
-
if (item._resultId == null && item.id && this.container != null) {
|
3293 |
-
item._resultId = this.generateResultId(this.container, item);
|
3294 |
-
}
|
3295 |
-
|
3296 |
-
return $.extend({}, defaults, item);
|
3297 |
-
};
|
3298 |
-
|
3299 |
-
SelectAdapter.prototype.matches = function (params, data) {
|
3300 |
-
var matcher = this.options.get('matcher');
|
3301 |
-
|
3302 |
-
return matcher(params, data);
|
3303 |
-
};
|
3304 |
-
|
3305 |
-
return SelectAdapter;
|
3306 |
-
});
|
3307 |
-
|
3308 |
-
S2.define('select2/data/array',[
|
3309 |
-
'./select',
|
3310 |
-
'../utils',
|
3311 |
-
'jquery'
|
3312 |
-
], function (SelectAdapter, Utils, $) {
|
3313 |
-
function ArrayAdapter ($element, options) {
|
3314 |
-
var data = options.get('data') || [];
|
3315 |
-
|
3316 |
-
ArrayAdapter.__super__.constructor.call(this, $element, options);
|
3317 |
-
|
3318 |
-
this.addOptions(this.convertToOptions(data));
|
3319 |
-
}
|
3320 |
-
|
3321 |
-
Utils.Extend(ArrayAdapter, SelectAdapter);
|
3322 |
-
|
3323 |
-
ArrayAdapter.prototype.select = function (data) {
|
3324 |
-
var $option = this.$element.find('option').filter(function (i, elm) {
|
3325 |
-
return elm.value == data.id.toString();
|
3326 |
-
});
|
3327 |
-
|
3328 |
-
if ($option.length === 0) {
|
3329 |
-
$option = this.option(data);
|
3330 |
-
|
3331 |
-
this.addOptions($option);
|
3332 |
-
}
|
3333 |
-
|
3334 |
-
ArrayAdapter.__super__.select.call(this, data);
|
3335 |
-
};
|
3336 |
-
|
3337 |
-
ArrayAdapter.prototype.convertToOptions = function (data) {
|
3338 |
-
var self = this;
|
3339 |
-
|
3340 |
-
var $existing = this.$element.find('option');
|
3341 |
-
var existingIds = $existing.map(function () {
|
3342 |
-
return self.item($(this)).id;
|
3343 |
-
}).get();
|
3344 |
-
|
3345 |
-
var $options = [];
|
3346 |
-
|
3347 |
-
// Filter out all items except for the one passed in the argument
|
3348 |
-
function onlyItem (item) {
|
3349 |
-
return function () {
|
3350 |
-
return $(this).val() == item.id;
|
3351 |
-
};
|
3352 |
-
}
|
3353 |
-
|
3354 |
-
for (var d = 0; d < data.length; d++) {
|
3355 |
-
var item = this._normalizeItem(data[d]);
|
3356 |
-
|
3357 |
-
// Skip items which were pre-loaded, only merge the data
|
3358 |
-
if ($.inArray(item.id, existingIds) >= 0) {
|
3359 |
-
var $existingOption = $existing.filter(onlyItem(item));
|
3360 |
-
|
3361 |
-
var existingData = this.item($existingOption);
|
3362 |
-
var newData = $.extend(true, {}, item, existingData);
|
3363 |
-
|
3364 |
-
var $newOption = this.option(newData);
|
3365 |
-
|
3366 |
-
$existingOption.replaceWith($newOption);
|
3367 |
-
|
3368 |
-
continue;
|
3369 |
-
}
|
3370 |
-
|
3371 |
-
var $option = this.option(item);
|
3372 |
-
|
3373 |
-
if (item.children) {
|
3374 |
-
var $children = this.convertToOptions(item.children);
|
3375 |
-
|
3376 |
-
Utils.appendMany($option, $children);
|
3377 |
-
}
|
3378 |
-
|
3379 |
-
$options.push($option);
|
3380 |
-
}
|
3381 |
-
|
3382 |
-
return $options;
|
3383 |
-
};
|
3384 |
-
|
3385 |
-
return ArrayAdapter;
|
3386 |
-
});
|
3387 |
-
|
3388 |
-
S2.define('select2/data/ajax',[
|
3389 |
-
'./array',
|
3390 |
-
'../utils',
|
3391 |
-
'jquery'
|
3392 |
-
], function (ArrayAdapter, Utils, $) {
|
3393 |
-
function AjaxAdapter ($element, options) {
|
3394 |
-
this.ajaxOptions = this._applyDefaults(options.get('ajax'));
|
3395 |
-
|
3396 |
-
if (this.ajaxOptions.processResults != null) {
|
3397 |
-
this.processResults = this.ajaxOptions.processResults;
|
3398 |
-
}
|
3399 |
-
|
3400 |
-
AjaxAdapter.__super__.constructor.call(this, $element, options);
|
3401 |
-
}
|
3402 |
-
|
3403 |
-
Utils.Extend(AjaxAdapter, ArrayAdapter);
|
3404 |
-
|
3405 |
-
AjaxAdapter.prototype._applyDefaults = function (options) {
|
3406 |
-
var defaults = {
|
3407 |
-
data: function (params) {
|
3408 |
-
return $.extend({}, params, {
|
3409 |
-
q: params.term
|
3410 |
-
});
|
3411 |
-
},
|
3412 |
-
transport: function (params, success, failure) {
|
3413 |
-
var $request = $.ajax(params);
|
3414 |
-
|
3415 |
-
$request.then(success);
|
3416 |
-
$request.fail(failure);
|
3417 |
-
|
3418 |
-
return $request;
|
3419 |
-
}
|
3420 |
-
};
|
3421 |
-
|
3422 |
-
return $.extend({}, defaults, options, true);
|
3423 |
-
};
|
3424 |
-
|
3425 |
-
AjaxAdapter.prototype.processResults = function (results) {
|
3426 |
-
return results;
|
3427 |
-
};
|
3428 |
-
|
3429 |
-
AjaxAdapter.prototype.query = function (params, callback) {
|
3430 |
-
var matches = [];
|
3431 |
-
var self = this;
|
3432 |
-
|
3433 |
-
if (this._request != null) {
|
3434 |
-
// JSONP requests cannot always be aborted
|
3435 |
-
if ($.isFunction(this._request.abort)) {
|
3436 |
-
this._request.abort();
|
3437 |
-
}
|
3438 |
-
|
3439 |
-
this._request = null;
|
3440 |
-
}
|
3441 |
-
|
3442 |
-
var options = $.extend({
|
3443 |
-
type: 'GET'
|
3444 |
-
}, this.ajaxOptions);
|
3445 |
-
|
3446 |
-
if (typeof options.url === 'function') {
|
3447 |
-
options.url = options.url.call(this.$element, params);
|
3448 |
-
}
|
3449 |
-
|
3450 |
-
if (typeof options.data === 'function') {
|
3451 |
-
options.data = options.data.call(this.$element, params);
|
3452 |
-
}
|
3453 |
-
|
3454 |
-
function request () {
|
3455 |
-
var $request = options.transport(options, function (data) {
|
3456 |
-
var results = self.processResults(data, params);
|
3457 |
-
|
3458 |
-
if (self.options.get('debug') && window.console && console.error) {
|
3459 |
-
// Check to make sure that the response included a `results` key.
|
3460 |
-
if (!results || !results.results || !$.isArray(results.results)) {
|
3461 |
-
console.error(
|
3462 |
-
'Select2: The AJAX results did not return an array in the ' +
|
3463 |
-
'`results` key of the response.'
|
3464 |
-
);
|
3465 |
-
}
|
3466 |
-
}
|
3467 |
-
|
3468 |
-
callback(results);
|
3469 |
-
}, function () {
|
3470 |
-
// Attempt to detect if a request was aborted
|
3471 |
-
// Only works if the transport exposes a status property
|
3472 |
-
if ($request.status && $request.status === '0') {
|
3473 |
-
return;
|
3474 |
-
}
|
3475 |
-
|
3476 |
-
self.trigger('results:message', {
|
3477 |
-
message: 'errorLoading'
|
3478 |
-
});
|
3479 |
-
});
|
3480 |
-
|
3481 |
-
self._request = $request;
|
3482 |
-
}
|
3483 |
-
|
3484 |
-
if (this.ajaxOptions.delay && params.term != null) {
|
3485 |
-
if (this._queryTimeout) {
|
3486 |
-
window.clearTimeout(this._queryTimeout);
|
3487 |
-
}
|
3488 |
-
|
3489 |
-
this._queryTimeout = window.setTimeout(request, this.ajaxOptions.delay);
|
3490 |
-
} else {
|
3491 |
-
request();
|
3492 |
-
}
|
3493 |
-
};
|
3494 |
-
|
3495 |
-
return AjaxAdapter;
|
3496 |
-
});
|
3497 |
-
|
3498 |
-
S2.define('select2/data/tags',[
|
3499 |
-
'jquery'
|
3500 |
-
], function ($) {
|
3501 |
-
function Tags (decorated, $element, options) {
|
3502 |
-
var tags = options.get('tags');
|
3503 |
-
|
3504 |
-
var createTag = options.get('createTag');
|
3505 |
-
|
3506 |
-
if (createTag !== undefined) {
|
3507 |
-
this.createTag = createTag;
|
3508 |
-
}
|
3509 |
-
|
3510 |
-
var insertTag = options.get('insertTag');
|
3511 |
-
|
3512 |
-
if (insertTag !== undefined) {
|
3513 |
-
this.insertTag = insertTag;
|
3514 |
-
}
|
3515 |
-
|
3516 |
-
decorated.call(this, $element, options);
|
3517 |
-
|
3518 |
-
if ($.isArray(tags)) {
|
3519 |
-
for (var t = 0; t < tags.length; t++) {
|
3520 |
-
var tag = tags[t];
|
3521 |
-
var item = this._normalizeItem(tag);
|
3522 |
-
|
3523 |
-
var $option = this.option(item);
|
3524 |
-
|
3525 |
-
this.$element.append($option);
|
3526 |
-
}
|
3527 |
-
}
|
3528 |
-
}
|
3529 |
-
|
3530 |
-
Tags.prototype.query = function (decorated, params, callback) {
|
3531 |
-
var self = this;
|
3532 |
-
|
3533 |
-
this._removeOldTags();
|
3534 |
-
|
3535 |
-
if (params.term == null || params.page != null) {
|
3536 |
-
decorated.call(this, params, callback);
|
3537 |
-
return;
|
3538 |
-
}
|
3539 |
-
|
3540 |
-
function wrapper (obj, child) {
|
3541 |
-
var data = obj.results;
|
3542 |
-
|
3543 |
-
for (var i = 0; i < data.length; i++) {
|
3544 |
-
var option = data[i];
|
3545 |
-
|
3546 |
-
var checkChildren = (
|
3547 |
-
option.children != null &&
|
3548 |
-
!wrapper({
|
3549 |
-
results: option.children
|
3550 |
-
}, true)
|
3551 |
-
);
|
3552 |
-
|
3553 |
-
var checkText = option.text === params.term;
|
3554 |
-
|
3555 |
-
if (checkText || checkChildren) {
|
3556 |
-
if (child) {
|
3557 |
-
return false;
|
3558 |
-
}
|
3559 |
-
|
3560 |
-
obj.data = data;
|
3561 |
-
callback(obj);
|
3562 |
-
|
3563 |
-
return;
|
3564 |
-
}
|
3565 |
-
}
|
3566 |
-
|
3567 |
-
if (child) {
|
3568 |
-
return true;
|
3569 |
-
}
|
3570 |
-
|
3571 |
-
var tag = self.createTag(params);
|
3572 |
-
|
3573 |
-
if (tag != null) {
|
3574 |
-
var $option = self.option(tag);
|
3575 |
-
$option.attr('data-select2-tag', true);
|
3576 |
-
|
3577 |
-
self.addOptions([$option]);
|
3578 |
-
|
3579 |
-
self.insertTag(data, tag);
|
3580 |
-
}
|
3581 |
-
|
3582 |
-
obj.results = data;
|
3583 |
-
|
3584 |
-
callback(obj);
|
3585 |
-
}
|
3586 |
-
|
3587 |
-
decorated.call(this, params, wrapper);
|
3588 |
-
};
|
3589 |
-
|
3590 |
-
Tags.prototype.createTag = function (decorated, params) {
|
3591 |
-
var term = $.trim(params.term);
|
3592 |
-
|
3593 |
-
if (term === '') {
|
3594 |
-
return null;
|
3595 |
-
}
|
3596 |
-
|
3597 |
-
return {
|
3598 |
-
id: term,
|
3599 |
-
text: term
|
3600 |
-
};
|
3601 |
-
};
|
3602 |
-
|
3603 |
-
Tags.prototype.insertTag = function (_, data, tag) {
|
3604 |
-
data.unshift(tag);
|
3605 |
-
};
|
3606 |
-
|
3607 |
-
Tags.prototype._removeOldTags = function (_) {
|
3608 |
-
var tag = this._lastTag;
|
3609 |
-
|
3610 |
-
var $options = this.$element.find('option[data-select2-tag]');
|
3611 |
-
|
3612 |
-
$options.each(function () {
|
3613 |
-
if (this.selected) {
|
3614 |
-
return;
|
3615 |
-
}
|
3616 |
-
|
3617 |
-
$(this).remove();
|
3618 |
-
});
|
3619 |
-
};
|
3620 |
-
|
3621 |
-
return Tags;
|
3622 |
-
});
|
3623 |
-
|
3624 |
-
S2.define('select2/data/tokenizer',[
|
3625 |
-
'jquery'
|
3626 |
-
], function ($) {
|
3627 |
-
function Tokenizer (decorated, $element, options) {
|
3628 |
-
var tokenizer = options.get('tokenizer');
|
3629 |
-
|
3630 |
-
if (tokenizer !== undefined) {
|
3631 |
-
this.tokenizer = tokenizer;
|
3632 |
-
}
|
3633 |
-
|
3634 |
-
decorated.call(this, $element, options);
|
3635 |
-
}
|
3636 |
-
|
3637 |
-
Tokenizer.prototype.bind = function (decorated, container, $container) {
|
3638 |
-
decorated.call(this, container, $container);
|
3639 |
-
|
3640 |
-
this.$search = container.dropdown.$search || container.selection.$search ||
|
3641 |
-
$container.find('.select2-search__field');
|
3642 |
-
};
|
3643 |
-
|
3644 |
-
Tokenizer.prototype.query = function (decorated, params, callback) {
|
3645 |
-
var self = this;
|
3646 |
-
|
3647 |
-
function createAndSelect (data) {
|
3648 |
-
// Normalize the data object so we can use it for checks
|
3649 |
-
var item = self._normalizeItem(data);
|
3650 |
-
|
3651 |
-
// Check if the data object already exists as a tag
|
3652 |
-
// Select it if it doesn't
|
3653 |
-
var $existingOptions = self.$element.find('option').filter(function () {
|
3654 |
-
return $(this).val() === item.id;
|
3655 |
-
});
|
3656 |
-
|
3657 |
-
// If an existing option wasn't found for it, create the option
|
3658 |
-
if (!$existingOptions.length) {
|
3659 |
-
var $option = self.option(item);
|
3660 |
-
$option.attr('data-select2-tag', true);
|
3661 |
-
|
3662 |
-
self._removeOldTags();
|
3663 |
-
self.addOptions([$option]);
|
3664 |
-
}
|
3665 |
-
|
3666 |
-
// Select the item, now that we know there is an option for it
|
3667 |
-
select(item);
|
3668 |
-
}
|
3669 |
-
|
3670 |
-
function select (data) {
|
3671 |
-
self.trigger('select', {
|
3672 |
-
data: data
|
3673 |
-
});
|
3674 |
-
}
|
3675 |
-
|
3676 |
-
params.term = params.term || '';
|
3677 |
-
|
3678 |
-
var tokenData = this.tokenizer(params, this.options, createAndSelect);
|
3679 |
-
|
3680 |
-
if (tokenData.term !== params.term) {
|
3681 |
-
// Replace the search term if we have the search box
|
3682 |
-
if (this.$search.length) {
|
3683 |
-
this.$search.val(tokenData.term);
|
3684 |
-
this.$search.focus();
|
3685 |
-
}
|
3686 |
-
|
3687 |
-
params.term = tokenData.term;
|
3688 |
-
}
|
3689 |
-
|
3690 |
-
decorated.call(this, params, callback);
|
3691 |
-
};
|
3692 |
-
|
3693 |
-
Tokenizer.prototype.tokenizer = function (_, params, options, callback) {
|
3694 |
-
var separators = options.get('tokenSeparators') || [];
|
3695 |
-
var term = params.term;
|
3696 |
-
var i = 0;
|
3697 |
-
|
3698 |
-
var createTag = this.createTag || function (params) {
|
3699 |
-
return {
|
3700 |
-
id: params.term,
|
3701 |
-
text: params.term
|
3702 |
-
};
|
3703 |
-
};
|
3704 |
-
|
3705 |
-
while (i < term.length) {
|
3706 |
-
var termChar = term[i];
|
3707 |
-
|
3708 |
-
if ($.inArray(termChar, separators) === -1) {
|
3709 |
-
i++;
|
3710 |
-
|
3711 |
-
continue;
|
3712 |
-
}
|
3713 |
-
|
3714 |
-
var part = term.substr(0, i);
|
3715 |
-
var partParams = $.extend({}, params, {
|
3716 |
-
term: part
|
3717 |
-
});
|
3718 |
-
|
3719 |
-
var data = createTag(partParams);
|
3720 |
-
|
3721 |
-
if (data == null) {
|
3722 |
-
i++;
|
3723 |
-
continue;
|
3724 |
-
}
|
3725 |
-
|
3726 |
-
callback(data);
|
3727 |
-
|
3728 |
-
// Reset the term to not include the tokenized portion
|
3729 |
-
term = term.substr(i + 1) || '';
|
3730 |
-
i = 0;
|
3731 |
-
}
|
3732 |
-
|
3733 |
-
return {
|
3734 |
-
term: term
|
3735 |
-
};
|
3736 |
-
};
|
3737 |
-
|
3738 |
-
return Tokenizer;
|
3739 |
-
});
|
3740 |
-
|
3741 |
-
S2.define('select2/data/minimumInputLength',[
|
3742 |
-
|
3743 |
-
], function () {
|
3744 |
-
function MinimumInputLength (decorated, $e, options) {
|
3745 |
-
this.minimumInputLength = options.get('minimumInputLength');
|
3746 |
-
|
3747 |
-
decorated.call(this, $e, options);
|
3748 |
-
}
|
3749 |
-
|
3750 |
-
MinimumInputLength.prototype.query = function (decorated, params, callback) {
|
3751 |
-
params.term = params.term || '';
|
3752 |
-
|
3753 |
-
if (params.term.length < this.minimumInputLength) {
|
3754 |
-
this.trigger('results:message', {
|
3755 |
-
message: 'inputTooShort',
|
3756 |
-
args: {
|
3757 |
-
minimum: this.minimumInputLength,
|
3758 |
-
input: params.term,
|
3759 |
-
params: params
|
3760 |
-
}
|
3761 |
-
});
|
3762 |
-
|
3763 |
-
return;
|
3764 |
-
}
|
3765 |
-
|
3766 |
-
decorated.call(this, params, callback);
|
3767 |
-
};
|
3768 |
-
|
3769 |
-
return MinimumInputLength;
|
3770 |
-
});
|
3771 |
-
|
3772 |
-
S2.define('select2/data/maximumInputLength',[
|
3773 |
-
|
3774 |
-
], function () {
|
3775 |
-
function MaximumInputLength (decorated, $e, options) {
|
3776 |
-
this.maximumInputLength = options.get('maximumInputLength');
|
3777 |
-
|
3778 |
-
decorated.call(this, $e, options);
|
3779 |
-
}
|
3780 |
-
|
3781 |
-
MaximumInputLength.prototype.query = function (decorated, params, callback) {
|
3782 |
-
params.term = params.term || '';
|
3783 |
-
|
3784 |
-
if (this.maximumInputLength > 0 &&
|
3785 |
-
params.term.length > this.maximumInputLength) {
|
3786 |
-
this.trigger('results:message', {
|
3787 |
-
message: 'inputTooLong',
|
3788 |
-
args: {
|
3789 |
-
maximum: this.maximumInputLength,
|
3790 |
-
input: params.term,
|
3791 |
-
params: params
|
3792 |
-
}
|
3793 |
-
});
|
3794 |
-
|
3795 |
-
return;
|
3796 |
-
}
|
3797 |
-
|
3798 |
-
decorated.call(this, params, callback);
|
3799 |
-
};
|
3800 |
-
|
3801 |
-
return MaximumInputLength;
|
3802 |
-
});
|
3803 |
-
|
3804 |
-
S2.define('select2/data/maximumSelectionLength',[
|
3805 |
-
|
3806 |
-
], function (){
|
3807 |
-
function MaximumSelectionLength (decorated, $e, options) {
|
3808 |
-
this.maximumSelectionLength = options.get('maximumSelectionLength');
|
3809 |
-
|
3810 |
-
decorated.call(this, $e, options);
|
3811 |
-
}
|
3812 |
-
|
3813 |
-
MaximumSelectionLength.prototype.query =
|
3814 |
-
function (decorated, params, callback) {
|
3815 |
-
var self = this;
|
3816 |
-
|
3817 |
-
this.current(function (currentData) {
|
3818 |
-
var count = currentData != null ? currentData.length : 0;
|
3819 |
-
if (self.maximumSelectionLength > 0 &&
|
3820 |
-
count >= self.maximumSelectionLength) {
|
3821 |
-
self.trigger('results:message', {
|
3822 |
-
message: 'maximumSelected',
|
3823 |
-
args: {
|
3824 |
-
maximum: self.maximumSelectionLength
|
3825 |
-
}
|
3826 |
-
});
|
3827 |
-
return;
|
3828 |
-
}
|
3829 |
-
decorated.call(self, params, callback);
|
3830 |
-
});
|
3831 |
-
};
|
3832 |
-
|
3833 |
-
return MaximumSelectionLength;
|
3834 |
-
});
|
3835 |
-
|
3836 |
-
S2.define('select2/dropdown',[
|
3837 |
-
'jquery',
|
3838 |
-
'./utils'
|
3839 |
-
], function ($, Utils) {
|
3840 |
-
function Dropdown ($element, options) {
|
3841 |
-
this.$element = $element;
|
3842 |
-
this.options = options;
|
3843 |
-
|
3844 |
-
Dropdown.__super__.constructor.call(this);
|
3845 |
-
}
|
3846 |
-
|
3847 |
-
Utils.Extend(Dropdown, Utils.Observable);
|
3848 |
-
|
3849 |
-
Dropdown.prototype.render = function () {
|
3850 |
-
var $dropdown = $(
|
3851 |
-
'<span class="select2-dropdown">' +
|
3852 |
-
'<span class="select2-results"></span>' +
|
3853 |
-
'</span>'
|
3854 |
-
);
|
3855 |
-
|
3856 |
-
$dropdown.attr('dir', this.options.get('dir'));
|
3857 |
-
|
3858 |
-
this.$dropdown = $dropdown;
|
3859 |
-
|
3860 |
-
return $dropdown;
|
3861 |
-
};
|
3862 |
-
|
3863 |
-
Dropdown.prototype.bind = function () {
|
3864 |
-
// Should be implemented in subclasses
|
3865 |
-
};
|
3866 |
-
|
3867 |
-
Dropdown.prototype.position = function ($dropdown, $container) {
|
3868 |
-
// Should be implmented in subclasses
|
3869 |
-
};
|
3870 |
-
|
3871 |
-
Dropdown.prototype.destroy = function () {
|
3872 |
-
// Remove the dropdown from the DOM
|
3873 |
-
this.$dropdown.remove();
|
3874 |
-
};
|
3875 |
-
|
3876 |
-
return Dropdown;
|
3877 |
-
});
|
3878 |
-
|
3879 |
-
S2.define('select2/dropdown/search',[
|
3880 |
-
'jquery',
|
3881 |
-
'../utils'
|
3882 |
-
], function ($, Utils) {
|
3883 |
-
function Search () { }
|
3884 |
-
|
3885 |
-
Search.prototype.render = function (decorated) {
|
3886 |
-
var $rendered = decorated.call(this);
|
3887 |
-
|
3888 |
-
var $search = $(
|
3889 |
-
'<span class="select2-search select2-search--dropdown">' +
|
3890 |
-
'<input class="select2-search__field" type="search" tabindex="-1"' +
|
3891 |
-
' autocomplete="off" autocorrect="off" autocapitalize="off"' +
|
3892 |
-
' spellcheck="false" role="textbox" />' +
|
3893 |
-
'</span>'
|
3894 |
-
);
|
3895 |
-
|
3896 |
-
this.$searchContainer = $search;
|
3897 |
-
this.$search = $search.find('input');
|
3898 |
-
|
3899 |
-
$rendered.prepend($search);
|
3900 |
-
|
3901 |
-
return $rendered;
|
3902 |
-
};
|
3903 |
-
|
3904 |
-
Search.prototype.bind = function (decorated, container, $container) {
|
3905 |
-
var self = this;
|
3906 |
-
|
3907 |
-
decorated.call(this, container, $container);
|
3908 |
-
|
3909 |
-
this.$search.on('keydown', function (evt) {
|
3910 |
-
self.trigger('keypress', evt);
|
3911 |
-
|
3912 |
-
self._keyUpPrevented = evt.isDefaultPrevented();
|
3913 |
-
});
|
3914 |
-
|
3915 |
-
// Workaround for browsers which do not support the `input` event
|
3916 |
-
// This will prevent double-triggering of events for browsers which support
|
3917 |
-
// both the `keyup` and `input` events.
|
3918 |
-
this.$search.on('input', function (evt) {
|
3919 |
-
// Unbind the duplicated `keyup` event
|
3920 |
-
$(this).off('keyup');
|
3921 |
-
});
|
3922 |
-
|
3923 |
-
this.$search.on('keyup input', function (evt) {
|
3924 |
-
self.handleSearch(evt);
|
3925 |
-
});
|
3926 |
-
|
3927 |
-
container.on('open', function () {
|
3928 |
-
self.$search.attr('tabindex', 0);
|
3929 |
-
|
3930 |
-
self.$search.focus();
|
3931 |
-
|
3932 |
-
window.setTimeout(function () {
|
3933 |
-
self.$search.focus();
|
3934 |
-
}, 0);
|
3935 |
-
});
|
3936 |
-
|
3937 |
-
container.on('close', function () {
|
3938 |
-
self.$search.attr('tabindex', -1);
|
3939 |
-
|
3940 |
-
self.$search.val('');
|
3941 |
-
});
|
3942 |
-
|
3943 |
-
container.on('focus', function () {
|
3944 |
-
if (container.isOpen()) {
|
3945 |
-
self.$search.focus();
|
3946 |
-
}
|
3947 |
-
});
|
3948 |
-
|
3949 |
-
container.on('results:all', function (params) {
|
3950 |
-
if (params.query.term == null || params.query.term === '') {
|
3951 |
-
var showSearch = self.showSearch(params);
|
3952 |
-
|
3953 |
-
if (showSearch) {
|
3954 |
-
self.$searchContainer.removeClass('select2-search--hide');
|
3955 |
-
} else {
|
3956 |
-
self.$searchContainer.addClass('select2-search--hide');
|
3957 |
-
}
|
3958 |
-
}
|
3959 |
-
});
|
3960 |
-
};
|
3961 |
-
|
3962 |
-
Search.prototype.handleSearch = function (evt) {
|
3963 |
-
if (!this._keyUpPrevented) {
|
3964 |
-
var input = this.$search.val();
|
3965 |
-
|
3966 |
-
this.trigger('query', {
|
3967 |
-
term: input
|
3968 |
-
});
|
3969 |
-
}
|
3970 |
-
|
3971 |
-
this._keyUpPrevented = false;
|
3972 |
-
};
|
3973 |
-
|
3974 |
-
Search.prototype.showSearch = function (_, params) {
|
3975 |
-
return true;
|
3976 |
-
};
|
3977 |
-
|
3978 |
-
return Search;
|
3979 |
-
});
|
3980 |
-
|
3981 |
-
S2.define('select2/dropdown/hidePlaceholder',[
|
3982 |
-
|
3983 |
-
], function () {
|
3984 |
-
function HidePlaceholder (decorated, $element, options, dataAdapter) {
|
3985 |
-
this.placeholder = this.normalizePlaceholder(options.get('placeholder'));
|
3986 |
-
|
3987 |
-
decorated.call(this, $element, options, dataAdapter);
|
3988 |
-
}
|
3989 |
-
|
3990 |
-
HidePlaceholder.prototype.append = function (decorated, data) {
|
3991 |
-
data.results = this.removePlaceholder(data.results);
|
3992 |
-
|
3993 |
-
decorated.call(this, data);
|
3994 |
-
};
|
3995 |
-
|
3996 |
-
HidePlaceholder.prototype.normalizePlaceholder = function (_, placeholder) {
|
3997 |
-
if (typeof placeholder === 'string') {
|
3998 |
-
placeholder = {
|
3999 |
-
id: '',
|
4000 |
-
text: placeholder
|
4001 |
-
};
|
4002 |
-
}
|
4003 |
-
|
4004 |
-
return placeholder;
|
4005 |
-
};
|
4006 |
-
|
4007 |
-
HidePlaceholder.prototype.removePlaceholder = function (_, data) {
|
4008 |
-
var modifiedData = data.slice(0);
|
4009 |
-
|
4010 |
-
for (var d = data.length - 1; d >= 0; d--) {
|
4011 |
-
var item = data[d];
|
4012 |
-
|
4013 |
-
if (this.placeholder.id === item.id) {
|
4014 |
-
modifiedData.splice(d, 1);
|
4015 |
-
}
|
4016 |
-
}
|
4017 |
-
|
4018 |
-
return modifiedData;
|
4019 |
-
};
|
4020 |
-
|
4021 |
-
return HidePlaceholder;
|
4022 |
-
});
|
4023 |
-
|
4024 |
-
S2.define('select2/dropdown/infiniteScroll',[
|
4025 |
-
'jquery'
|
4026 |
-
], function ($) {
|
4027 |
-
function InfiniteScroll (decorated, $element, options, dataAdapter) {
|
4028 |
-
this.lastParams = {};
|
4029 |
-
|
4030 |
-
decorated.call(this, $element, options, dataAdapter);
|
4031 |
-
|
4032 |
-
this.$loadingMore = this.createLoadingMore();
|
4033 |
-
this.loading = false;
|
4034 |
-
}
|
4035 |
-
|
4036 |
-
InfiniteScroll.prototype.append = function (decorated, data) {
|
4037 |
-
this.$loadingMore.remove();
|
4038 |
-
this.loading = false;
|
4039 |
-
|
4040 |
-
decorated.call(this, data);
|
4041 |
-
|
4042 |
-
if (this.showLoadingMore(data)) {
|
4043 |
-
this.$results.append(this.$loadingMore);
|
4044 |
-
}
|
4045 |
-
};
|
4046 |
-
|
4047 |
-
InfiniteScroll.prototype.bind = function (decorated, container, $container) {
|
4048 |
-
var self = this;
|
4049 |
-
|
4050 |
-
decorated.call(this, container, $container);
|
4051 |
-
|
4052 |
-
container.on('query', function (params) {
|
4053 |
-
self.lastParams = params;
|
4054 |
-
self.loading = true;
|
4055 |
-
});
|
4056 |
-
|
4057 |
-
container.on('query:append', function (params) {
|
4058 |
-
self.lastParams = params;
|
4059 |
-
self.loading = true;
|
4060 |
-
});
|
4061 |
-
|
4062 |
-
this.$results.on('scroll', function () {
|
4063 |
-
var isLoadMoreVisible = $.contains(
|
4064 |
-
document.documentElement,
|
4065 |
-
self.$loadingMore[0]
|
4066 |
-
);
|
4067 |
-
|
4068 |
-
if (self.loading || !isLoadMoreVisible) {
|
4069 |
-
return;
|
4070 |
-
}
|
4071 |
-
|
4072 |
-
var currentOffset = self.$results.offset().top +
|
4073 |
-
self.$results.outerHeight(false);
|
4074 |
-
var loadingMoreOffset = self.$loadingMore.offset().top +
|
4075 |
-
self.$loadingMore.outerHeight(false);
|
4076 |
-
|
4077 |
-
if (currentOffset + 50 >= loadingMoreOffset) {
|
4078 |
-
self.loadMore();
|
4079 |
-
}
|
4080 |
-
});
|
4081 |
-
};
|
4082 |
-
|
4083 |
-
InfiniteScroll.prototype.loadMore = function () {
|
4084 |
-
this.loading = true;
|
4085 |
-
|
4086 |
-
var params = $.extend({}, {page: 1}, this.lastParams);
|
4087 |
-
|
4088 |
-
params.page++;
|
4089 |
-
|
4090 |
-
this.trigger('query:append', params);
|
4091 |
-
};
|
4092 |
-
|
4093 |
-
InfiniteScroll.prototype.showLoadingMore = function (_, data) {
|
4094 |
-
return data.pagination && data.pagination.more;
|
4095 |
-
};
|
4096 |
-
|
4097 |
-
InfiniteScroll.prototype.createLoadingMore = function () {
|
4098 |
-
var $option = $(
|
4099 |
-
'<li ' +
|
4100 |
-
'class="select2-results__option select2-results__option--load-more"' +
|
4101 |
-
'role="treeitem" aria-disabled="true"></li>'
|
4102 |
-
);
|
4103 |
-
|
4104 |
-
var message = this.options.get('translations').get('loadingMore');
|
4105 |
-
|
4106 |
-
$option.html(message(this.lastParams));
|
4107 |
-
|
4108 |
-
return $option;
|
4109 |
-
};
|
4110 |
-
|
4111 |
-
return InfiniteScroll;
|
4112 |
-
});
|
4113 |
-
|
4114 |
-
S2.define('select2/dropdown/attachBody',[
|
4115 |
-
'jquery',
|
4116 |
-
'../utils'
|
4117 |
-
], function ($, Utils) {
|
4118 |
-
function AttachBody (decorated, $element, options) {
|
4119 |
-
this.$dropdownParent = options.get('dropdownParent') || $(document.body);
|
4120 |
-
|
4121 |
-
decorated.call(this, $element, options);
|
4122 |
-
}
|
4123 |
-
|
4124 |
-
AttachBody.prototype.bind = function (decorated, container, $container) {
|
4125 |
-
var self = this;
|
4126 |
-
|
4127 |
-
var setupResultsEvents = false;
|
4128 |
-
|
4129 |
-
decorated.call(this, container, $container);
|
4130 |
-
|
4131 |
-
container.on('open', function () {
|
4132 |
-
self._showDropdown();
|
4133 |
-
self._attachPositioningHandler(container);
|
4134 |
-
|
4135 |
-
if (!setupResultsEvents) {
|
4136 |
-
setupResultsEvents = true;
|
4137 |
-
|
4138 |
-
container.on('results:all', function () {
|
4139 |
-
self._positionDropdown();
|
4140 |
-
self._resizeDropdown();
|
4141 |
-
});
|
4142 |
-
|
4143 |
-
container.on('results:append', function () {
|
4144 |
-
self._positionDropdown();
|
4145 |
-
self._resizeDropdown();
|
4146 |
-
});
|
4147 |
-
}
|
4148 |
-
});
|
4149 |
-
|
4150 |
-
container.on('close', function () {
|
4151 |
-
self._hideDropdown();
|
4152 |
-
self._detachPositioningHandler(container);
|
4153 |
-
});
|
4154 |
-
|
4155 |
-
this.$dropdownContainer.on('mousedown', function (evt) {
|
4156 |
-
evt.stopPropagation();
|
4157 |
-
});
|
4158 |
-
};
|
4159 |
-
|
4160 |
-
AttachBody.prototype.destroy = function (decorated) {
|
4161 |
-
decorated.call(this);
|
4162 |
-
|
4163 |
-
this.$dropdownContainer.remove();
|
4164 |
-
};
|
4165 |
-
|
4166 |
-
AttachBody.prototype.position = function (decorated, $dropdown, $container) {
|
4167 |
-
// Clone all of the container classes
|
4168 |
-
$dropdown.attr('class', $container.attr('class'));
|
4169 |
-
|
4170 |
-
$dropdown.removeClass('select2');
|
4171 |
-
$dropdown.addClass('select2-container--open');
|
4172 |
-
|
4173 |
-
$dropdown.css({
|
4174 |
-
position: 'absolute',
|
4175 |
-
top: -999999
|
4176 |
-
});
|
4177 |
-
|
4178 |
-
this.$container = $container;
|
4179 |
-
};
|
4180 |
-
|
4181 |
-
AttachBody.prototype.render = function (decorated) {
|
4182 |
-
var $container = $('<span></span>');
|
4183 |
-
|
4184 |
-
var $dropdown = decorated.call(this);
|
4185 |
-
$container.append($dropdown);
|
4186 |
-
|
4187 |
-
this.$dropdownContainer = $container;
|
4188 |
-
|
4189 |
-
return $container;
|
4190 |
-
};
|
4191 |
-
|
4192 |
-
AttachBody.prototype._hideDropdown = function (decorated) {
|
4193 |
-
this.$dropdownContainer.detach();
|
4194 |
-
};
|
4195 |
-
|
4196 |
-
AttachBody.prototype._attachPositioningHandler =
|
4197 |
-
function (decorated, container) {
|
4198 |
-
var self = this;
|
4199 |
-
|
4200 |
-
var scrollEvent = 'scroll.select2.' + container.id;
|
4201 |
-
var resizeEvent = 'resize.select2.' + container.id;
|
4202 |
-
var orientationEvent = 'orientationchange.select2.' + container.id;
|
4203 |
-
|
4204 |
-
var $watchers = this.$container.parents().filter(Utils.hasScroll);
|
4205 |
-
$watchers.each(function () {
|
4206 |
-
$(this).data('select2-scroll-position', {
|
4207 |
-
x: $(this).scrollLeft(),
|
4208 |
-
y: $(this).scrollTop()
|
4209 |
-
});
|
4210 |
-
});
|
4211 |
-
|
4212 |
-
$watchers.on(scrollEvent, function (ev) {
|
4213 |
-
var position = $(this).data('select2-scroll-position');
|
4214 |
-
$(this).scrollTop(position.y);
|
4215 |
-
});
|
4216 |
-
|
4217 |
-
$(window).on(scrollEvent + ' ' + resizeEvent + ' ' + orientationEvent,
|
4218 |
-
function (e) {
|
4219 |
-
self._positionDropdown();
|
4220 |
-
self._resizeDropdown();
|
4221 |
-
});
|
4222 |
-
};
|
4223 |
-
|
4224 |
-
AttachBody.prototype._detachPositioningHandler =
|
4225 |
-
function (decorated, container) {
|
4226 |
-
var scrollEvent = 'scroll.select2.' + container.id;
|
4227 |
-
var resizeEvent = 'resize.select2.' + container.id;
|
4228 |
-
var orientationEvent = 'orientationchange.select2.' + container.id;
|
4229 |
-
|
4230 |
-
var $watchers = this.$container.parents().filter(Utils.hasScroll);
|
4231 |
-
$watchers.off(scrollEvent);
|
4232 |
-
|
4233 |
-
$(window).off(scrollEvent + ' ' + resizeEvent + ' ' + orientationEvent);
|
4234 |
-
};
|
4235 |
-
|
4236 |
-
AttachBody.prototype._positionDropdown = function () {
|
4237 |
-
var $window = $(window);
|
4238 |
-
|
4239 |
-
var isCurrentlyAbove = this.$dropdown.hasClass('select2-dropdown--above');
|
4240 |
-
var isCurrentlyBelow = this.$dropdown.hasClass('select2-dropdown--below');
|
4241 |
-
|
4242 |
-
var newDirection = null;
|
4243 |
-
|
4244 |
-
var offset = this.$container.offset();
|
4245 |
-
|
4246 |
-
offset.bottom = offset.top + this.$container.outerHeight(false);
|
4247 |
-
|
4248 |
-
var container = {
|
4249 |
-
height: this.$container.outerHeight(false)
|
4250 |
-
};
|
4251 |
-
|
4252 |
-
container.top = offset.top;
|
4253 |
-
container.bottom = offset.top + container.height;
|
4254 |
-
|
4255 |
-
var dropdown = {
|
4256 |
-
height: this.$dropdown.outerHeight(false)
|
4257 |
-
};
|
4258 |
-
|
4259 |
-
var viewport = {
|
4260 |
-
top: $window.scrollTop(),
|
4261 |
-
bottom: $window.scrollTop() + $window.height()
|
4262 |
-
};
|
4263 |
-
|
4264 |
-
var enoughRoomAbove = viewport.top < (offset.top - dropdown.height);
|
4265 |
-
var enoughRoomBelow = viewport.bottom > (offset.bottom + dropdown.height);
|
4266 |
-
|
4267 |
-
var css = {
|
4268 |
-
left: offset.left,
|
4269 |
-
top: container.bottom
|
4270 |
-
};
|
4271 |
-
|
4272 |
-
// Determine what the parent element is to use for calciulating the offset
|
4273 |
-
var $offsetParent = this.$dropdownParent;
|
4274 |
-
|
4275 |
-
// For statically positoned elements, we need to get the element
|
4276 |
-
// that is determining the offset
|
4277 |
-
if ($offsetParent.css('position') === 'static') {
|
4278 |
-
$offsetParent = $offsetParent.offsetParent();
|
4279 |
-
}
|
4280 |
-
|
4281 |
-
var parentOffset = $offsetParent.offset();
|
4282 |
-
|
4283 |
-
css.top -= parentOffset.top;
|
4284 |
-
css.left -= parentOffset.left;
|
4285 |
-
|
4286 |
-
if (!isCurrentlyAbove && !isCurrentlyBelow) {
|
4287 |
-
newDirection = 'below';
|
4288 |
-
}
|
4289 |
-
|
4290 |
-
if (!enoughRoomBelow && enoughRoomAbove && !isCurrentlyAbove) {
|
4291 |
-
newDirection = 'above';
|
4292 |
-
} else if (!enoughRoomAbove && enoughRoomBelow && isCurrentlyAbove) {
|
4293 |
-
newDirection = 'below';
|
4294 |
-
}
|
4295 |
-
|
4296 |
-
if (newDirection == 'above' ||
|
4297 |
-
(isCurrentlyAbove && newDirection !== 'below')) {
|
4298 |
-
css.top = container.top - parentOffset.top - dropdown.height;
|
4299 |
-
}
|
4300 |
-
|
4301 |
-
if (newDirection != null) {
|
4302 |
-
this.$dropdown
|
4303 |
-
.removeClass('select2-dropdown--below select2-dropdown--above')
|
4304 |
-
.addClass('select2-dropdown--' + newDirection);
|
4305 |
-
this.$container
|
4306 |
-
.removeClass('select2-container--below select2-container--above')
|
4307 |
-
.addClass('select2-container--' + newDirection);
|
4308 |
-
}
|
4309 |
-
|
4310 |
-
this.$dropdownContainer.css(css);
|
4311 |
-
};
|
4312 |
-
|
4313 |
-
AttachBody.prototype._resizeDropdown = function () {
|
4314 |
-
var css = {
|
4315 |
-
width: this.$container.outerWidth(false) + 'px'
|
4316 |
-
};
|
4317 |
-
|
4318 |
-
if (this.options.get('dropdownAutoWidth')) {
|
4319 |
-
css.minWidth = css.width;
|
4320 |
-
css.position = 'relative';
|
4321 |
-
css.width = 'auto';
|
4322 |
-
}
|
4323 |
-
|
4324 |
-
this.$dropdown.css(css);
|
4325 |
-
};
|
4326 |
-
|
4327 |
-
AttachBody.prototype._showDropdown = function (decorated) {
|
4328 |
-
this.$dropdownContainer.appendTo(this.$dropdownParent);
|
4329 |
-
|
4330 |
-
this._positionDropdown();
|
4331 |
-
this._resizeDropdown();
|
4332 |
-
};
|
4333 |
-
|
4334 |
-
return AttachBody;
|
4335 |
-
});
|
4336 |
-
|
4337 |
-
S2.define('select2/dropdown/minimumResultsForSearch',[
|
4338 |
-
|
4339 |
-
], function () {
|
4340 |
-
function countResults (data) {
|
4341 |
-
var count = 0;
|
4342 |
-
|
4343 |
-
for (var d = 0; d < data.length; d++) {
|
4344 |
-
var item = data[d];
|
4345 |
-
|
4346 |
-
if (item.children) {
|
4347 |
-
count += countResults(item.children);
|
4348 |
-
} else {
|
4349 |
-
count++;
|
4350 |
-
}
|
4351 |
-
}
|
4352 |
-
|
4353 |
-
return count;
|
4354 |
-
}
|
4355 |
-
|
4356 |
-
function MinimumResultsForSearch (decorated, $element, options, dataAdapter) {
|
4357 |
-
this.minimumResultsForSearch = options.get('minimumResultsForSearch');
|
4358 |
-
|
4359 |
-
if (this.minimumResultsForSearch < 0) {
|
4360 |
-
this.minimumResultsForSearch = Infinity;
|
4361 |
-
}
|
4362 |
-
|
4363 |
-
decorated.call(this, $element, options, dataAdapter);
|
4364 |
-
}
|
4365 |
-
|
4366 |
-
MinimumResultsForSearch.prototype.showSearch = function (decorated, params) {
|
4367 |
-
if (countResults(params.data.results) < this.minimumResultsForSearch) {
|
4368 |
-
return false;
|
4369 |
-
}
|
4370 |
-
|
4371 |
-
return decorated.call(this, params);
|
4372 |
-
};
|
4373 |
-
|
4374 |
-
return MinimumResultsForSearch;
|
4375 |
-
});
|
4376 |
-
|
4377 |
-
S2.define('select2/dropdown/selectOnClose',[
|
4378 |
-
|
4379 |
-
], function () {
|
4380 |
-
function SelectOnClose () { }
|
4381 |
-
|
4382 |
-
SelectOnClose.prototype.bind = function (decorated, container, $container) {
|
4383 |
-
var self = this;
|
4384 |
-
|
4385 |
-
decorated.call(this, container, $container);
|
4386 |
-
|
4387 |
-
container.on('close', function (params) {
|
4388 |
-
self._handleSelectOnClose(params);
|
4389 |
-
});
|
4390 |
-
};
|
4391 |
-
|
4392 |
-
SelectOnClose.prototype._handleSelectOnClose = function (_, params) {
|
4393 |
-
if (params && params.originalSelect2Event != null) {
|
4394 |
-
var event = params.originalSelect2Event;
|
4395 |
-
|
4396 |
-
// Don't select an item if the close event was triggered from a select or
|
4397 |
-
// unselect event
|
4398 |
-
if (event._type === 'select' || event._type === 'unselect') {
|
4399 |
-
return;
|
4400 |
-
}
|
4401 |
-
}
|
4402 |
-
|
4403 |
-
var $highlightedResults = this.getHighlightedResults();
|
4404 |
-
|
4405 |
-
// Only select highlighted results
|
4406 |
-
if ($highlightedResults.length < 1) {
|
4407 |
-
return;
|
4408 |
-
}
|
4409 |
-
|
4410 |
-
var data = $highlightedResults.data('data');
|
4411 |
-
|
4412 |
-
// Don't re-select already selected resulte
|
4413 |
-
if (
|
4414 |
-
(data.element != null && data.element.selected) ||
|
4415 |
-
(data.element == null && data.selected)
|
4416 |
-
) {
|
4417 |
-
return;
|
4418 |
-
}
|
4419 |
-
|
4420 |
-
this.trigger('select', {
|
4421 |
-
data: data
|
4422 |
-
});
|
4423 |
-
};
|
4424 |
-
|
4425 |
-
return SelectOnClose;
|
4426 |
-
});
|
4427 |
-
|
4428 |
-
S2.define('select2/dropdown/closeOnSelect',[
|
4429 |
-
|
4430 |
-
], function () {
|
4431 |
-
function CloseOnSelect () { }
|
4432 |
-
|
4433 |
-
CloseOnSelect.prototype.bind = function (decorated, container, $container) {
|
4434 |
-
var self = this;
|
4435 |
-
|
4436 |
-
decorated.call(this, container, $container);
|
4437 |
-
|
4438 |
-
container.on('select', function (evt) {
|
4439 |
-
self._selectTriggered(evt);
|
4440 |
-
});
|
4441 |
-
|
4442 |
-
container.on('unselect', function (evt) {
|
4443 |
-
self._selectTriggered(evt);
|
4444 |
-
});
|
4445 |
-
};
|
4446 |
-
|
4447 |
-
CloseOnSelect.prototype._selectTriggered = function (_, evt) {
|
4448 |
-
var originalEvent = evt.originalEvent;
|
4449 |
-
|
4450 |
-
// Don't close if the control key is being held
|
4451 |
-
if (originalEvent && originalEvent.ctrlKey) {
|
4452 |
-
return;
|
4453 |
-
}
|
4454 |
-
|
4455 |
-
this.trigger('close', {
|
4456 |
-
originalEvent: originalEvent,
|
4457 |
-
originalSelect2Event: evt
|
4458 |
-
});
|
4459 |
-
};
|
4460 |
-
|
4461 |
-
return CloseOnSelect;
|
4462 |
-
});
|
4463 |
-
|
4464 |
-
S2.define('select2/i18n/en',[],function () {
|
4465 |
-
// English
|
4466 |
-
return {
|
4467 |
-
errorLoading: function () {
|
4468 |
-
return 'The results could not be loaded.';
|
4469 |
-
},
|
4470 |
-
inputTooLong: function (args) {
|
4471 |
-
var overChars = args.input.length - args.maximum;
|
4472 |
-
|
4473 |
-
var message = 'Please delete ' + overChars + ' character';
|
4474 |
-
|
4475 |
-
if (overChars != 1) {
|
4476 |
-
message += 's';
|
4477 |
-
}
|
4478 |
-
|
4479 |
-
return message;
|
4480 |
-
},
|
4481 |
-
inputTooShort: function (args) {
|
4482 |
-
var remainingChars = args.minimum - args.input.length;
|
4483 |
-
|
4484 |
-
var message = 'Please enter ' + remainingChars + ' or more characters';
|
4485 |
-
|
4486 |
-
return message;
|
4487 |
-
},
|
4488 |
-
loadingMore: function () {
|
4489 |
-
return 'Loading more results…';
|
4490 |
-
},
|
4491 |
-
maximumSelected: function (args) {
|
4492 |
-
var message = 'You can only select ' + args.maximum + ' item';
|
4493 |
-
|
4494 |
-
if (args.maximum != 1) {
|
4495 |
-
message += 's';
|
4496 |
-
}
|
4497 |
-
|
4498 |
-
return message;
|
4499 |
-
},
|
4500 |
-
noResults: function () {
|
4501 |
-
return 'No results found';
|
4502 |
-
},
|
4503 |
-
searching: function () {
|
4504 |
-
return 'Searching…';
|
4505 |
-
}
|
4506 |
-
};
|
4507 |
-
});
|
4508 |
-
|
4509 |
-
S2.define('select2/defaults',[
|
4510 |
-
'jquery',
|
4511 |
-
'require',
|
4512 |
-
|
4513 |
-
'./results',
|
4514 |
-
|
4515 |
-
'./selection/single',
|
4516 |
-
'./selection/multiple',
|
4517 |
-
'./selection/placeholder',
|
4518 |
-
'./selection/allowClear',
|
4519 |
-
'./selection/search',
|
4520 |
-
'./selection/eventRelay',
|
4521 |
-
|
4522 |
-
'./utils',
|
4523 |
-
'./translation',
|
4524 |
-
'./diacritics',
|
4525 |
-
|
4526 |
-
'./data/select',
|
4527 |
-
'./data/array',
|
4528 |
-
'./data/ajax',
|
4529 |
-
'./data/tags',
|
4530 |
-
'./data/tokenizer',
|
4531 |
-
'./data/minimumInputLength',
|
4532 |
-
'./data/maximumInputLength',
|
4533 |
-
'./data/maximumSelectionLength',
|
4534 |
-
|
4535 |
-
'./dropdown',
|
4536 |
-
'./dropdown/search',
|
4537 |
-
'./dropdown/hidePlaceholder',
|
4538 |
-
'./dropdown/infiniteScroll',
|
4539 |
-
'./dropdown/attachBody',
|
4540 |
-
'./dropdown/minimumResultsForSearch',
|
4541 |
-
'./dropdown/selectOnClose',
|
4542 |
-
'./dropdown/closeOnSelect',
|
4543 |
-
|
4544 |
-
'./i18n/en'
|
4545 |
-
], function ($, require,
|
4546 |
-
|
4547 |
-
ResultsList,
|
4548 |
-
|
4549 |
-
SingleSelection, MultipleSelection, Placeholder, AllowClear,
|
4550 |
-
SelectionSearch, EventRelay,
|
4551 |
-
|
4552 |
-
Utils, Translation, DIACRITICS,
|
4553 |
-
|
4554 |
-
SelectData, ArrayData, AjaxData, Tags, Tokenizer,
|
4555 |
-
MinimumInputLength, MaximumInputLength, MaximumSelectionLength,
|
4556 |
-
|
4557 |
-
Dropdown, DropdownSearch, HidePlaceholder, InfiniteScroll,
|
4558 |
-
AttachBody, MinimumResultsForSearch, SelectOnClose, CloseOnSelect,
|
4559 |
-
|
4560 |
-
EnglishTranslation) {
|
4561 |
-
function Defaults () {
|
4562 |
-
this.reset();
|
4563 |
-
}
|
4564 |
-
|
4565 |
-
Defaults.prototype.apply = function (options) {
|
4566 |
-
options = $.extend(true, {}, this.defaults, options);
|
4567 |
-
|
4568 |
-
if (options.dataAdapter == null) {
|
4569 |
-
if (options.ajax != null) {
|
4570 |
-
options.dataAdapter = AjaxData;
|
4571 |
-
} else if (options.data != null) {
|
4572 |
-
options.dataAdapter = ArrayData;
|
4573 |
-
} else {
|
4574 |
-
options.dataAdapter = SelectData;
|
4575 |
-
}
|
4576 |
-
|
4577 |
-
if (options.minimumInputLength > 0) {
|
4578 |
-
options.dataAdapter = Utils.Decorate(
|
4579 |
-
options.dataAdapter,
|
4580 |
-
MinimumInputLength
|
4581 |
-
);
|
4582 |
-
}
|
4583 |
-
|
4584 |
-
if (options.maximumInputLength > 0) {
|
4585 |
-
options.dataAdapter = Utils.Decorate(
|
4586 |
-
options.dataAdapter,
|
4587 |
-
MaximumInputLength
|
4588 |
-
);
|
4589 |
-
}
|
4590 |
-
|
4591 |
-
if (options.maximumSelectionLength > 0) {
|
4592 |
-
options.dataAdapter = Utils.Decorate(
|
4593 |
-
options.dataAdapter,
|
4594 |
-
MaximumSelectionLength
|
4595 |
-
);
|
4596 |
-
}
|
4597 |
-
|
4598 |
-
if (options.tags) {
|
4599 |
-
options.dataAdapter = Utils.Decorate(options.dataAdapter, Tags);
|
4600 |
-
}
|
4601 |
-
|
4602 |
-
if (options.tokenSeparators != null || options.tokenizer != null) {
|
4603 |
-
options.dataAdapter = Utils.Decorate(
|
4604 |
-
options.dataAdapter,
|
4605 |
-
Tokenizer
|
4606 |
-
);
|
4607 |
-
}
|
4608 |
-
|
4609 |
-
if (options.query != null) {
|
4610 |
-
var Query = require(options.amdBase + 'compat/query');
|
4611 |
-
|
4612 |
-
options.dataAdapter = Utils.Decorate(
|
4613 |
-
options.dataAdapter,
|
4614 |
-
Query
|
4615 |
-
);
|
4616 |
-
}
|
4617 |
-
|
4618 |
-
if (options.initSelection != null) {
|
4619 |
-
var InitSelection = require(options.amdBase + 'compat/initSelection');
|
4620 |
-
|
4621 |
-
options.dataAdapter = Utils.Decorate(
|
4622 |
-
options.dataAdapter,
|
4623 |
-
InitSelection
|
4624 |
-
);
|
4625 |
-
}
|
4626 |
-
}
|
4627 |
-
|
4628 |
-
if (options.resultsAdapter == null) {
|
4629 |
-
options.resultsAdapter = ResultsList;
|
4630 |
-
|
4631 |
-
if (options.ajax != null) {
|
4632 |
-
options.resultsAdapter = Utils.Decorate(
|
4633 |
-
options.resultsAdapter,
|
4634 |
-
InfiniteScroll
|
4635 |
-
);
|
4636 |
-
}
|
4637 |
-
|
4638 |
-
if (options.placeholder != null) {
|
4639 |
-
options.resultsAdapter = Utils.Decorate(
|
4640 |
-
options.resultsAdapter,
|
4641 |
-
HidePlaceholder
|
4642 |
-
);
|
4643 |
-
}
|
4644 |
-
|
4645 |
-
if (options.selectOnClose) {
|
4646 |
-
options.resultsAdapter = Utils.Decorate(
|
4647 |
-
options.resultsAdapter,
|
4648 |
-
SelectOnClose
|
4649 |
-
);
|
4650 |
-
}
|
4651 |
-
}
|
4652 |
-
|
4653 |
-
if (options.dropdownAdapter == null) {
|
4654 |
-
if (options.multiple) {
|
4655 |
-
options.dropdownAdapter = Dropdown;
|
4656 |
-
} else {
|
4657 |
-
var SearchableDropdown = Utils.Decorate(Dropdown, DropdownSearch);
|
4658 |
-
|
4659 |
-
options.dropdownAdapter = SearchableDropdown;
|
4660 |
-
}
|
4661 |
-
|
4662 |
-
if (options.minimumResultsForSearch !== 0) {
|
4663 |
-
options.dropdownAdapter = Utils.Decorate(
|
4664 |
-
options.dropdownAdapter,
|
4665 |
-
MinimumResultsForSearch
|
4666 |
-
);
|
4667 |
-
}
|
4668 |
-
|
4669 |
-
if (options.closeOnSelect) {
|
4670 |
-
options.dropdownAdapter = Utils.Decorate(
|
4671 |
-
options.dropdownAdapter,
|
4672 |
-
CloseOnSelect
|
4673 |
-
);
|
4674 |
-
}
|
4675 |
-
|
4676 |
-
if (
|
4677 |
-
options.dropdownCssClass != null ||
|
4678 |
-
options.dropdownCss != null ||
|
4679 |
-
options.adaptDropdownCssClass != null
|
4680 |
-
) {
|
4681 |
-
var DropdownCSS = require(options.amdBase + 'compat/dropdownCss');
|
4682 |
-
|
4683 |
-
options.dropdownAdapter = Utils.Decorate(
|
4684 |
-
options.dropdownAdapter,
|
4685 |
-
DropdownCSS
|
4686 |
-
);
|
4687 |
-
}
|
4688 |
-
|
4689 |
-
options.dropdownAdapter = Utils.Decorate(
|
4690 |
-
options.dropdownAdapter,
|
4691 |
-
AttachBody
|
4692 |
-
);
|
4693 |
-
}
|
4694 |
-
|
4695 |
-
if (options.selectionAdapter == null) {
|
4696 |
-
if (options.multiple) {
|
4697 |
-
options.selectionAdapter = MultipleSelection;
|
4698 |
-
} else {
|
4699 |
-
options.selectionAdapter = SingleSelection;
|
4700 |
-
}
|
4701 |
-
|
4702 |
-
// Add the placeholder mixin if a placeholder was specified
|
4703 |
-
if (options.placeholder != null) {
|
4704 |
-
options.selectionAdapter = Utils.Decorate(
|
4705 |
-
options.selectionAdapter,
|
4706 |
-
Placeholder
|
4707 |
-
);
|
4708 |
-
}
|
4709 |
-
|
4710 |
-
if (options.allowClear) {
|
4711 |
-
options.selectionAdapter = Utils.Decorate(
|
4712 |
-
options.selectionAdapter,
|
4713 |
-
AllowClear
|
4714 |
-
);
|
4715 |
-
}
|
4716 |
-
|
4717 |
-
if (options.multiple) {
|
4718 |
-
options.selectionAdapter = Utils.Decorate(
|
4719 |
-
options.selectionAdapter,
|
4720 |
-
SelectionSearch
|
4721 |
-
);
|
4722 |
-
}
|
4723 |
-
|
4724 |
-
if (
|
4725 |
-
options.containerCssClass != null ||
|
4726 |
-
options.containerCss != null ||
|
4727 |
-
options.adaptContainerCssClass != null
|
4728 |
-
) {
|
4729 |
-
var ContainerCSS = require(options.amdBase + 'compat/containerCss');
|
4730 |
-
|
4731 |
-
options.selectionAdapter = Utils.Decorate(
|
4732 |
-
options.selectionAdapter,
|
4733 |
-
ContainerCSS
|
4734 |
-
);
|
4735 |
-
}
|
4736 |
-
|
4737 |
-
options.selectionAdapter = Utils.Decorate(
|
4738 |
-
options.selectionAdapter,
|
4739 |
-
EventRelay
|
4740 |
-
);
|
4741 |
-
}
|
4742 |
-
|
4743 |
-
if (typeof options.language === 'string') {
|
4744 |
-
// Check if the language is specified with a region
|
4745 |
-
if (options.language.indexOf('-') > 0) {
|
4746 |
-
// Extract the region information if it is included
|
4747 |
-
var languageParts = options.language.split('-');
|
4748 |
-
var baseLanguage = languageParts[0];
|
4749 |
-
|
4750 |
-
options.language = [options.language, baseLanguage];
|
4751 |
-
} else {
|
4752 |
-
options.language = [options.language];
|
4753 |
-
}
|
4754 |
-
}
|
4755 |
-
|
4756 |
-
if ($.isArray(options.language)) {
|
4757 |
-
var languages = new Translation();
|
4758 |
-
options.language.push('en');
|
4759 |
-
|
4760 |
-
var languageNames = options.language;
|
4761 |
-
|
4762 |
-
for (var l = 0; l < languageNames.length; l++) {
|
4763 |
-
var name = languageNames[l];
|
4764 |
-
var language = {};
|
4765 |
-
|
4766 |
-
try {
|
4767 |
-
// Try to load it with the original name
|
4768 |
-
language = Translation.loadPath(name);
|
4769 |
-
} catch (e) {
|
4770 |
-
try {
|
4771 |
-
// If we couldn't load it, check if it wasn't the full path
|
4772 |
-
name = this.defaults.amdLanguageBase + name;
|
4773 |
-
language = Translation.loadPath(name);
|
4774 |
-
} catch (ex) {
|
4775 |
-
// The translation could not be loaded at all. Sometimes this is
|
4776 |
-
// because of a configuration problem, other times this can be
|
4777 |
-
// because of how Select2 helps load all possible translation files.
|
4778 |
-
if (options.debug && window.console && console.warn) {
|
4779 |
-
console.warn(
|
4780 |
-
'Select2: The language file for "' + name + '" could not be ' +
|
4781 |
-
'automatically loaded. A fallback will be used instead.'
|
4782 |
-
);
|
4783 |
-
}
|
4784 |
-
|
4785 |
-
continue;
|
4786 |
-
}
|
4787 |
-
}
|
4788 |
-
|
4789 |
-
languages.extend(language);
|
4790 |
-
}
|
4791 |
-
|
4792 |
-
options.translations = languages;
|
4793 |
-
} else {
|
4794 |
-
var baseTranslation = Translation.loadPath(
|
4795 |
-
this.defaults.amdLanguageBase + 'en'
|
4796 |
-
);
|
4797 |
-
var customTranslation = new Translation(options.language);
|
4798 |
-
|
4799 |
-
customTranslation.extend(baseTranslation);
|
4800 |
-
|
4801 |
-
options.translations = customTranslation;
|
4802 |
-
}
|
4803 |
-
|
4804 |
-
return options;
|
4805 |
-
};
|
4806 |
-
|
4807 |
-
Defaults.prototype.reset = function () {
|
4808 |
-
function stripDiacritics (text) {
|
4809 |
-
// Used 'uni range + named function' from http://jsperf.com/diacritics/18
|
4810 |
-
function match(a) {
|
4811 |
-
return DIACRITICS[a] || a;
|
4812 |
-
}
|
4813 |
-
|
4814 |
-
return text.replace(/[^\u0000-\u007E]/g, match);
|
4815 |
-
}
|
4816 |
-
|
4817 |
-
function matcher (params, data) {
|
4818 |
-
// Always return the object if there is nothing to compare
|
4819 |
-
if ($.trim(params.term) === '') {
|
4820 |
-
return data;
|
4821 |
-
}
|
4822 |
-
|
4823 |
-
// Do a recursive check for options with children
|
4824 |
-
if (data.children && data.children.length > 0) {
|
4825 |
-
// Clone the data object if there are children
|
4826 |
-
// This is required as we modify the object to remove any non-matches
|
4827 |
-
var match = $.extend(true, {}, data);
|
4828 |
-
|
4829 |
-
// Check each child of the option
|
4830 |
-
for (var c = data.children.length - 1; c >= 0; c--) {
|
4831 |
-
var child = data.children[c];
|
4832 |
-
|
4833 |
-
var matches = matcher(params, child);
|
4834 |
-
|
4835 |
-
// If there wasn't a match, remove the object in the array
|
4836 |
-
if (matches == null) {
|
4837 |
-
match.children.splice(c, 1);
|
4838 |
-
}
|
4839 |
-
}
|
4840 |
-
|
4841 |
-
// If any children matched, return the new object
|
4842 |
-
if (match.children.length > 0) {
|
4843 |
-
return match;
|
4844 |
-
}
|
4845 |
-
|
4846 |
-
// If there were no matching children, check just the plain object
|
4847 |
-
return matcher(params, match);
|
4848 |
-
}
|
4849 |
-
|
4850 |
-
var original = stripDiacritics(data.text).toUpperCase();
|
4851 |
-
var term = stripDiacritics(params.term).toUpperCase();
|
4852 |
-
|
4853 |
-
// Check if the text contains the term
|
4854 |
-
if (original.indexOf(term) > -1) {
|
4855 |
-
return data;
|
4856 |
-
}
|
4857 |
-
|
4858 |
-
// If it doesn't contain the term, don't return anything
|
4859 |
-
return null;
|
4860 |
-
}
|
4861 |
-
|
4862 |
-
this.defaults = {
|
4863 |
-
amdBase: './',
|
4864 |
-
amdLanguageBase: './i18n/',
|
4865 |
-
closeOnSelect: true,
|
4866 |
-
debug: false,
|
4867 |
-
dropdownAutoWidth: false,
|
4868 |
-
escapeMarkup: Utils.escapeMarkup,
|
4869 |
-
language: EnglishTranslation,
|
4870 |
-
matcher: matcher,
|
4871 |
-
minimumInputLength: 0,
|
4872 |
-
maximumInputLength: 0,
|
4873 |
-
maximumSelectionLength: 0,
|
4874 |
-
minimumResultsForSearch: 0,
|
4875 |
-
selectOnClose: false,
|
4876 |
-
sorter: function (data) {
|
4877 |
-
return data;
|
4878 |
-
},
|
4879 |
-
templateResult: function (result) {
|
4880 |
-
return result.text;
|
4881 |
-
},
|
4882 |
-
templateSelection: function (selection) {
|
4883 |
-
return selection.text;
|
4884 |
-
},
|
4885 |
-
theme: 'default',
|
4886 |
-
width: 'resolve'
|
4887 |
-
};
|
4888 |
-
};
|
4889 |
-
|
4890 |
-
Defaults.prototype.set = function (key, value) {
|
4891 |
-
var camelKey = $.camelCase(key);
|
4892 |
-
|
4893 |
-
var data = {};
|
4894 |
-
data[camelKey] = value;
|
4895 |
-
|
4896 |
-
var convertedData = Utils._convertData(data);
|
4897 |
-
|
4898 |
-
$.extend(this.defaults, convertedData);
|
4899 |
-
};
|
4900 |
-
|
4901 |
-
var defaults = new Defaults();
|
4902 |
-
|
4903 |
-
return defaults;
|
4904 |
-
});
|
4905 |
-
|
4906 |
-
S2.define('select2/options',[
|
4907 |
-
'require',
|
4908 |
-
'jquery',
|
4909 |
-
'./defaults',
|
4910 |
-
'./utils'
|
4911 |
-
], function (require, $, Defaults, Utils) {
|
4912 |
-
function Options (options, $element) {
|
4913 |
-
this.options = options;
|
4914 |
-
|
4915 |
-
if ($element != null) {
|
4916 |
-
this.fromElement($element);
|
4917 |
-
}
|
4918 |
-
|
4919 |
-
this.options = Defaults.apply(this.options);
|
4920 |
-
|
4921 |
-
if ($element && $element.is('input')) {
|
4922 |
-
var InputCompat = require(this.get('amdBase') + 'compat/inputData');
|
4923 |
-
|
4924 |
-
this.options.dataAdapter = Utils.Decorate(
|
4925 |
-
this.options.dataAdapter,
|
4926 |
-
InputCompat
|
4927 |
-
);
|
4928 |
-
}
|
4929 |
-
}
|
4930 |
-
|
4931 |
-
Options.prototype.fromElement = function ($e) {
|
4932 |
-
var excludedData = ['select2'];
|
4933 |
-
|
4934 |
-
if (this.options.multiple == null) {
|
4935 |
-
this.options.multiple = $e.prop('multiple');
|
4936 |
-
}
|
4937 |
-
|
4938 |
-
if (this.options.disabled == null) {
|
4939 |
-
this.options.disabled = $e.prop('disabled');
|
4940 |
-
}
|
4941 |
-
|
4942 |
-
if (this.options.language == null) {
|
4943 |
-
if ($e.prop('lang')) {
|
4944 |
-
this.options.language = $e.prop('lang').toLowerCase();
|
4945 |
-
} else if ($e.closest('[lang]').prop('lang')) {
|
4946 |
-
this.options.language = $e.closest('[lang]').prop('lang');
|
4947 |
-
}
|
4948 |
-
}
|
4949 |
-
|
4950 |
-
if (this.options.dir == null) {
|
4951 |
-
if ($e.prop('dir')) {
|
4952 |
-
this.options.dir = $e.prop('dir');
|
4953 |
-
} else if ($e.closest('[dir]').prop('dir')) {
|
4954 |
-
this.options.dir = $e.closest('[dir]').prop('dir');
|
4955 |
-
} else {
|
4956 |
-
this.options.dir = 'ltr';
|
4957 |
-
}
|
4958 |
-
}
|
4959 |
-
|
4960 |
-
$e.prop('disabled', this.options.disabled);
|
4961 |
-
$e.prop('multiple', this.options.multiple);
|
4962 |
-
|
4963 |
-
if ($e.data('select2Tags')) {
|
4964 |
-
if (this.options.debug && window.console && console.warn) {
|
4965 |
-
console.warn(
|
4966 |
-
'Select2: The `data-select2-tags` attribute has been changed to ' +
|
4967 |
-
'use the `data-data` and `data-tags="true"` attributes and will be ' +
|
4968 |
-
'removed in future versions of Select2.'
|
4969 |
-
);
|
4970 |
-
}
|
4971 |
-
|
4972 |
-
$e.data('data', $e.data('select2Tags'));
|
4973 |
-
$e.data('tags', true);
|
4974 |
-
}
|
4975 |
-
|
4976 |
-
if ($e.data('ajaxUrl')) {
|
4977 |
-
if (this.options.debug && window.console && console.warn) {
|
4978 |
-
console.warn(
|
4979 |
-
'Select2: The `data-ajax-url` attribute has been changed to ' +
|
4980 |
-
'`data-ajax--url` and support for the old attribute will be removed' +
|
4981 |
-
' in future versions of Select2.'
|
4982 |
-
);
|
4983 |
-
}
|
4984 |
-
|
4985 |
-
$e.attr('ajax--url', $e.data('ajaxUrl'));
|
4986 |
-
$e.data('ajax--url', $e.data('ajaxUrl'));
|
4987 |
-
}
|
4988 |
-
|
4989 |
-
var dataset = {};
|
4990 |
-
|
4991 |
-
// Prefer the element's `dataset` attribute if it exists
|
4992 |
-
// jQuery 1.x does not correctly handle data attributes with multiple dashes
|
4993 |
-
if ($.fn.jquery && $.fn.jquery.substr(0, 2) == '1.' && $e[0].dataset) {
|
4994 |
-
dataset = $.extend(true, {}, $e[0].dataset, $e.data());
|
4995 |
-
} else {
|
4996 |
-
dataset = $e.data();
|
4997 |
-
}
|
4998 |
-
|
4999 |
-
var data = $.extend(true, {}, dataset);
|
5000 |
-
|
5001 |
-
data = Utils._convertData(data);
|
5002 |
-
|
5003 |
-
for (var key in data) {
|
5004 |
-
if ($.inArray(key, excludedData) > -1) {
|
5005 |
-
continue;
|
5006 |
-
}
|
5007 |
-
|
5008 |
-
if ($.isPlainObject(this.options[key])) {
|
5009 |
-
$.extend(this.options[key], data[key]);
|
5010 |
-
} else {
|
5011 |
-
this.options[key] = data[key];
|
5012 |
-
}
|
5013 |
-
}
|
5014 |
-
|
5015 |
-
return this;
|
5016 |
-
};
|
5017 |
-
|
5018 |
-
Options.prototype.get = function (key) {
|
5019 |
-
return this.options[key];
|
5020 |
-
};
|
5021 |
-
|
5022 |
-
Options.prototype.set = function (key, val) {
|
5023 |
-
this.options[key] = val;
|
5024 |
-
};
|
5025 |
-
|
5026 |
-
return Options;
|
5027 |
-
});
|
5028 |
-
|
5029 |
-
S2.define('select2/core',[
|
5030 |
-
'jquery',
|
5031 |
-
'./options',
|
5032 |
-
'./utils',
|
5033 |
-
'./keys'
|
5034 |
-
], function ($, Options, Utils, KEYS) {
|
5035 |
-
var Select2 = function ($element, options) {
|
5036 |
-
if ($element.data('select2') != null) {
|
5037 |
-
$element.data('select2').destroy();
|
5038 |
-
}
|
5039 |
-
|
5040 |
-
this.$element = $element;
|
5041 |
-
|
5042 |
-
this.id = this._generateId($element);
|
5043 |
-
|
5044 |
-
options = options || {};
|
5045 |
-
|
5046 |
-
this.options = new Options(options, $element);
|
5047 |
-
|
5048 |
-
Select2.__super__.constructor.call(this);
|
5049 |
-
|
5050 |
-
// Set up the tabindex
|
5051 |
-
|
5052 |
-
var tabindex = $element.attr('tabindex') || 0;
|
5053 |
-
$element.data('old-tabindex', tabindex);
|
5054 |
-
$element.attr('tabindex', '-1');
|
5055 |
-
|
5056 |
-
// Set up containers and adapters
|
5057 |
-
|
5058 |
-
var DataAdapter = this.options.get('dataAdapter');
|
5059 |
-
this.dataAdapter = new DataAdapter($element, this.options);
|
5060 |
-
|
5061 |
-
var $container = this.render();
|
5062 |
-
|
5063 |
-
this._placeContainer($container);
|
5064 |
-
|
5065 |
-
var SelectionAdapter = this.options.get('selectionAdapter');
|
5066 |
-
this.selection = new SelectionAdapter($element, this.options);
|
5067 |
-
this.$selection = this.selection.render();
|
5068 |
-
|
5069 |
-
this.selection.position(this.$selection, $container);
|
5070 |
-
|
5071 |
-
var DropdownAdapter = this.options.get('dropdownAdapter');
|
5072 |
-
this.dropdown = new DropdownAdapter($element, this.options);
|
5073 |
-
this.$dropdown = this.dropdown.render();
|
5074 |
-
|
5075 |
-
this.dropdown.position(this.$dropdown, $container);
|
5076 |
-
|
5077 |
-
var ResultsAdapter = this.options.get('resultsAdapter');
|
5078 |
-
this.results = new ResultsAdapter($element, this.options, this.dataAdapter);
|
5079 |
-
this.$results = this.results.render();
|
5080 |
-
|
5081 |
-
this.results.position(this.$results, this.$dropdown);
|
5082 |
-
|
5083 |
-
// Bind events
|
5084 |
-
|
5085 |
-
var self = this;
|
5086 |
-
|
5087 |
-
// Bind the container to all of the adapters
|
5088 |
-
this._bindAdapters();
|
5089 |
-
|
5090 |
-
// Register any DOM event handlers
|
5091 |
-
this._registerDomEvents();
|
5092 |
-
|
5093 |
-
// Register any internal event handlers
|
5094 |
-
this._registerDataEvents();
|
5095 |
-
this._registerSelectionEvents();
|
5096 |
-
this._registerDropdownEvents();
|
5097 |
-
this._registerResultsEvents();
|
5098 |
-
this._registerEvents();
|
5099 |
-
|
5100 |
-
// Set the initial state
|
5101 |
-
this.dataAdapter.current(function (initialData) {
|
5102 |
-
self.trigger('selection:update', {
|
5103 |
-
data: initialData
|
5104 |
-
});
|
5105 |
-
});
|
5106 |
-
|
5107 |
-
// Hide the original select
|
5108 |
-
$element.addClass('select2-hidden-accessible');
|
5109 |
-
$element.attr('aria-hidden', 'true');
|
5110 |
-
|
5111 |
-
// Synchronize any monitored attributes
|
5112 |
-
this._syncAttributes();
|
5113 |
-
|
5114 |
-
$element.data('select2', this);
|
5115 |
-
};
|
5116 |
-
|
5117 |
-
Utils.Extend(Select2, Utils.Observable);
|
5118 |
-
|
5119 |
-
Select2.prototype._generateId = function ($element) {
|
5120 |
-
var id = '';
|
5121 |
-
|
5122 |
-
if ($element.attr('id') != null) {
|
5123 |
-
id = $element.attr('id');
|
5124 |
-
} else if ($element.attr('name') != null) {
|
5125 |
-
id = $element.attr('name') + '-' + Utils.generateChars(2);
|
5126 |
-
} else {
|
5127 |
-
id = Utils.generateChars(4);
|
5128 |
-
}
|
5129 |
-
|
5130 |
-
id = id.replace(/(:|\.|\[|\]|,)/g, '');
|
5131 |
-
id = 'select2-' + id;
|
5132 |
-
|
5133 |
-
return id;
|
5134 |
-
};
|
5135 |
-
|
5136 |
-
Select2.prototype._placeContainer = function ($container) {
|
5137 |
-
$container.insertAfter(this.$element);
|
5138 |
-
|
5139 |
-
var width = this._resolveWidth(this.$element, this.options.get('width'));
|
5140 |
-
|
5141 |
-
if (width != null) {
|
5142 |
-
$container.css('width', width);
|
5143 |
-
}
|
5144 |
-
};
|
5145 |
-
|
5146 |
-
Select2.prototype._resolveWidth = function ($element, method) {
|
5147 |
-
var WIDTH = /^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;
|
5148 |
-
|
5149 |
-
if (method == 'resolve') {
|
5150 |
-
var styleWidth = this._resolveWidth($element, 'style');
|
5151 |
-
|
5152 |
-
if (styleWidth != null) {
|
5153 |
-
return styleWidth;
|
5154 |
-
}
|
5155 |
-
|
5156 |
-
return this._resolveWidth($element, 'element');
|
5157 |
-
}
|
5158 |
-
|
5159 |
-
if (method == 'element') {
|
5160 |
-
var elementWidth = $element.outerWidth(false);
|
5161 |
-
|
5162 |
-
if (elementWidth <= 0) {
|
5163 |
-
return 'auto';
|
5164 |
-
}
|
5165 |
-
|
5166 |
-
return elementWidth + 'px';
|
5167 |
-
}
|
5168 |
-
|
5169 |
-
if (method == 'style') {
|
5170 |
-
var style = $element.attr('style');
|
5171 |
-
|
5172 |
-
if (typeof(style) !== 'string') {
|
5173 |
-
return null;
|
5174 |
-
}
|
5175 |
-
|
5176 |
-
var attrs = style.split(';');
|
5177 |
-
|
5178 |
-
for (var i = 0, l = attrs.length; i < l; i = i + 1) {
|
5179 |
-
var attr = attrs[i].replace(/\s/g, '');
|
5180 |
-
var matches = attr.match(WIDTH);
|
5181 |
-
|
5182 |
-
if (matches !== null && matches.length >= 1) {
|
5183 |
-
return matches[1];
|
5184 |
-
}
|
5185 |
-
}
|
5186 |
-
|
5187 |
-
return null;
|
5188 |
-
}
|
5189 |
-
|
5190 |
-
return method;
|
5191 |
-
};
|
5192 |
-
|
5193 |
-
Select2.prototype._bindAdapters = function () {
|
5194 |
-
this.dataAdapter.bind(this, this.$container);
|
5195 |
-
this.selection.bind(this, this.$container);
|
5196 |
-
|
5197 |
-
this.dropdown.bind(this, this.$container);
|
5198 |
-
this.results.bind(this, this.$container);
|
5199 |
-
};
|
5200 |
-
|
5201 |
-
Select2.prototype._registerDomEvents = function () {
|
5202 |
-
var self = this;
|
5203 |
-
|
5204 |
-
this.$element.on('change.select2', function () {
|
5205 |
-
self.dataAdapter.current(function (data) {
|
5206 |
-
self.trigger('selection:update', {
|
5207 |
-
data: data
|
5208 |
-
});
|
5209 |
-
});
|
5210 |
-
});
|
5211 |
-
|
5212 |
-
this.$element.on('focus.select2', function (evt) {
|
5213 |
-
self.trigger('focus', evt);
|
5214 |
-
});
|
5215 |
-
|
5216 |
-
this._syncA = Utils.bind(this._syncAttributes, this);
|
5217 |
-
this._syncS = Utils.bind(this._syncSubtree, this);
|
5218 |
-
|
5219 |
-
if (this.$element[0].attachEvent) {
|
5220 |
-
this.$element[0].attachEvent('onpropertychange', this._syncA);
|
5221 |
-
}
|
5222 |
-
|
5223 |
-
var observer = window.MutationObserver ||
|
5224 |
-
window.WebKitMutationObserver ||
|
5225 |
-
window.MozMutationObserver
|
5226 |
-
;
|
5227 |
-
|
5228 |
-
if (observer != null) {
|
5229 |
-
this._observer = new observer(function (mutations) {
|
5230 |
-
$.each(mutations, self._syncA);
|
5231 |
-
$.each(mutations, self._syncS);
|
5232 |
-
});
|
5233 |
-
this._observer.observe(this.$element[0], {
|
5234 |
-
attributes: true,
|
5235 |
-
childList: true,
|
5236 |
-
subtree: false
|
5237 |
-
});
|
5238 |
-
} else if (this.$element[0].addEventListener) {
|
5239 |
-
this.$element[0].addEventListener(
|
5240 |
-
'DOMAttrModified',
|
5241 |
-
self._syncA,
|
5242 |
-
false
|
5243 |
-
);
|
5244 |
-
this.$element[0].addEventListener(
|
5245 |
-
'DOMNodeInserted',
|
5246 |
-
self._syncS,
|
5247 |
-
false
|
5248 |
-
);
|
5249 |
-
this.$element[0].addEventListener(
|
5250 |
-
'DOMNodeRemoved',
|
5251 |
-
self._syncS,
|
5252 |
-
false
|
5253 |
-
);
|
5254 |
-
}
|
5255 |
-
};
|
5256 |
-
|
5257 |
-
Select2.prototype._registerDataEvents = function () {
|
5258 |
-
var self = this;
|
5259 |
-
|
5260 |
-
this.dataAdapter.on('*', function (name, params) {
|
5261 |
-
self.trigger(name, params);
|
5262 |
-
});
|
5263 |
-
};
|
5264 |
-
|
5265 |
-
Select2.prototype._registerSelectionEvents = function () {
|
5266 |
-
var self = this;
|
5267 |
-
var nonRelayEvents = ['toggle', 'focus'];
|
5268 |
-
|
5269 |
-
this.selection.on('toggle', function () {
|
5270 |
-
self.toggleDropdown();
|
5271 |
-
});
|
5272 |
-
|
5273 |
-
this.selection.on('focus', function (params) {
|
5274 |
-
self.focus(params);
|
5275 |
-
});
|
5276 |
-
|
5277 |
-
this.selection.on('*', function (name, params) {
|
5278 |
-
if ($.inArray(name, nonRelayEvents) !== -1) {
|
5279 |
-
return;
|
5280 |
-
}
|
5281 |
-
|
5282 |
-
self.trigger(name, params);
|
5283 |
-
});
|
5284 |
-
};
|
5285 |
-
|
5286 |
-
Select2.prototype._registerDropdownEvents = function () {
|
5287 |
-
var self = this;
|
5288 |
-
|
5289 |
-
this.dropdown.on('*', function (name, params) {
|
5290 |
-
self.trigger(name, params);
|
5291 |
-
});
|
5292 |
-
};
|
5293 |
-
|
5294 |
-
Select2.prototype._registerResultsEvents = function () {
|
5295 |
-
var self = this;
|
5296 |
-
|
5297 |
-
this.results.on('*', function (name, params) {
|
5298 |
-
self.trigger(name, params);
|
5299 |
-
});
|
5300 |
-
};
|
5301 |
-
|
5302 |
-
Select2.prototype._registerEvents = function () {
|
5303 |
-
var self = this;
|
5304 |
-
|
5305 |
-
this.on('open', function () {
|
5306 |
-
self.$container.addClass('select2-container--open');
|
5307 |
-
});
|
5308 |
-
|
5309 |
-
this.on('close', function () {
|
5310 |
-
self.$container.removeClass('select2-container--open');
|
5311 |
-
});
|
5312 |
-
|
5313 |
-
this.on('enable', function () {
|
5314 |
-
self.$container.removeClass('select2-container--disabled');
|
5315 |
-
});
|
5316 |
-
|
5317 |
-
this.on('disable', function () {
|
5318 |
-
self.$container.addClass('select2-container--disabled');
|
5319 |
-
});
|
5320 |
-
|
5321 |
-
this.on('blur', function () {
|
5322 |
-
self.$container.removeClass('select2-container--focus');
|
5323 |
-
});
|
5324 |
-
|
5325 |
-
this.on('query', function (params) {
|
5326 |
-
if (!self.isOpen()) {
|
5327 |
-
self.trigger('open', {});
|
5328 |
-
}
|
5329 |
-
|
5330 |
-
this.dataAdapter.query(params, function (data) {
|
5331 |
-
self.trigger('results:all', {
|
5332 |
-
data: data,
|
5333 |
-
query: params
|
5334 |
-
});
|
5335 |
-
});
|
5336 |
-
});
|
5337 |
-
|
5338 |
-
this.on('query:append', function (params) {
|
5339 |
-
this.dataAdapter.query(params, function (data) {
|
5340 |
-
self.trigger('results:append', {
|
5341 |
-
data: data,
|
5342 |
-
query: params
|
5343 |
-
});
|
5344 |
-
});
|
5345 |
-
});
|
5346 |
-
|
5347 |
-
this.on('keypress', function (evt) {
|
5348 |
-
var key = evt.which;
|
5349 |
-
|
5350 |
-
if (self.isOpen()) {
|
5351 |
-
if (key === KEYS.ESC || key === KEYS.TAB ||
|
5352 |
-
(key === KEYS.UP && evt.altKey)) {
|
5353 |
-
self.close();
|
5354 |
-
|
5355 |
-
evt.preventDefault();
|
5356 |
-
} else if (key === KEYS.ENTER) {
|
5357 |
-
self.trigger('results:select', {});
|
5358 |
-
|
5359 |
-
evt.preventDefault();
|
5360 |
-
} else if ((key === KEYS.SPACE && evt.ctrlKey)) {
|
5361 |
-
self.trigger('results:toggle', {});
|
5362 |
-
|
5363 |
-
evt.preventDefault();
|
5364 |
-
} else if (key === KEYS.UP) {
|
5365 |
-
self.trigger('results:previous', {});
|
5366 |
-
|
5367 |
-
evt.preventDefault();
|
5368 |
-
} else if (key === KEYS.DOWN) {
|
5369 |
-
self.trigger('results:next', {});
|
5370 |
-
|
5371 |
-
evt.preventDefault();
|
5372 |
-
}
|
5373 |
-
} else {
|
5374 |
-
if (key === KEYS.ENTER || key === KEYS.SPACE ||
|
5375 |
-
(key === KEYS.DOWN && evt.altKey)) {
|
5376 |
-
self.open();
|
5377 |
-
|
5378 |
-
evt.preventDefault();
|
5379 |
-
}
|
5380 |
-
}
|
5381 |
-
});
|
5382 |
-
};
|
5383 |
-
|
5384 |
-
Select2.prototype._syncAttributes = function () {
|
5385 |
-
this.options.set('disabled', this.$element.prop('disabled'));
|
5386 |
-
|
5387 |
-
if (this.options.get('disabled')) {
|
5388 |
-
if (this.isOpen()) {
|
5389 |
-
this.close();
|
5390 |
-
}
|
5391 |
-
|
5392 |
-
this.trigger('disable', {});
|
5393 |
-
} else {
|
5394 |
-
this.trigger('enable', {});
|
5395 |
-
}
|
5396 |
-
};
|
5397 |
-
|
5398 |
-
Select2.prototype._syncSubtree = function (evt, mutations) {
|
5399 |
-
var changed = false;
|
5400 |
-
var self = this;
|
5401 |
-
|
5402 |
-
// Ignore any mutation events raised for elements that aren't options or
|
5403 |
-
// optgroups. This handles the case when the select element is destroyed
|
5404 |
-
if (
|
5405 |
-
evt && evt.target && (
|
5406 |
-
evt.target.nodeName !== 'OPTION' && evt.target.nodeName !== 'OPTGROUP'
|
5407 |
-
)
|
5408 |
-
) {
|
5409 |
-
return;
|
5410 |
-
}
|
5411 |
-
|
5412 |
-
if (!mutations) {
|
5413 |
-
// If mutation events aren't supported, then we can only assume that the
|
5414 |
-
// change affected the selections
|
5415 |
-
changed = true;
|
5416 |
-
} else if (mutations.addedNodes && mutations.addedNodes.length > 0) {
|
5417 |
-
for (var n = 0; n < mutations.addedNodes.length; n++) {
|
5418 |
-
var node = mutations.addedNodes[n];
|
5419 |
-
|
5420 |
-
if (node.selected) {
|
5421 |
-
changed = true;
|
5422 |
-
}
|
5423 |
-
}
|
5424 |
-
} else if (mutations.removedNodes && mutations.removedNodes.length > 0) {
|
5425 |
-
changed = true;
|
5426 |
-
}
|
5427 |
-
|
5428 |
-
// Only re-pull the data if we think there is a change
|
5429 |
-
if (changed) {
|
5430 |
-
this.dataAdapter.current(function (currentData) {
|
5431 |
-
self.trigger('selection:update', {
|
5432 |
-
data: currentData
|
5433 |
-
});
|
5434 |
-
});
|
5435 |
-
}
|
5436 |
-
};
|
5437 |
-
|
5438 |
-
/**
|
5439 |
-
* Override the trigger method to automatically trigger pre-events when
|
5440 |
-
* there are events that can be prevented.
|
5441 |
-
*/
|
5442 |
-
Select2.prototype.trigger = function (name, args) {
|
5443 |
-
var actualTrigger = Select2.__super__.trigger;
|
5444 |
-
var preTriggerMap = {
|
5445 |
-
'open': 'opening',
|
5446 |
-
'close': 'closing',
|
5447 |
-
'select': 'selecting',
|
5448 |
-
'unselect': 'unselecting'
|
5449 |
-
};
|
5450 |
-
|
5451 |
-
if (args === undefined) {
|
5452 |
-
args = {};
|
5453 |
-
}
|
5454 |
-
|
5455 |
-
if (name in preTriggerMap) {
|
5456 |
-
var preTriggerName = preTriggerMap[name];
|
5457 |
-
var preTriggerArgs = {
|
5458 |
-
prevented: false,
|
5459 |
-
name: name,
|
5460 |
-
args: args
|
5461 |
-
};
|
5462 |
-
|
5463 |
-
actualTrigger.call(this, preTriggerName, preTriggerArgs);
|
5464 |
-
|
5465 |
-
if (preTriggerArgs.prevented) {
|
5466 |
-
args.prevented = true;
|
5467 |
-
|
5468 |
-
return;
|
5469 |
-
}
|
5470 |
-
}
|
5471 |
-
|
5472 |
-
actualTrigger.call(this, name, args);
|
5473 |
-
};
|
5474 |
-
|
5475 |
-
Select2.prototype.toggleDropdown = function () {
|
5476 |
-
if (this.options.get('disabled')) {
|
5477 |
-
return;
|
5478 |
-
}
|
5479 |
-
|
5480 |
-
if (this.isOpen()) {
|
5481 |
-
this.close();
|
5482 |
-
} else {
|
5483 |
-
this.open();
|
5484 |
-
}
|
5485 |
-
};
|
5486 |
-
|
5487 |
-
Select2.prototype.open = function () {
|
5488 |
-
if (this.isOpen()) {
|
5489 |
-
return;
|
5490 |
-
}
|
5491 |
-
|
5492 |
-
this.trigger('query', {});
|
5493 |
-
};
|
5494 |
-
|
5495 |
-
Select2.prototype.close = function () {
|
5496 |
-
if (!this.isOpen()) {
|
5497 |
-
return;
|
5498 |
-
}
|
5499 |
-
|
5500 |
-
this.trigger('close', {});
|
5501 |
-
};
|
5502 |
-
|
5503 |
-
Select2.prototype.isOpen = function () {
|
5504 |
-
return this.$container.hasClass('select2-container--open');
|
5505 |
-
};
|
5506 |
-
|
5507 |
-
Select2.prototype.hasFocus = function () {
|
5508 |
-
return this.$container.hasClass('select2-container--focus');
|
5509 |
-
};
|
5510 |
-
|
5511 |
-
Select2.prototype.focus = function (data) {
|
5512 |
-
// No need to re-trigger focus events if we are already focused
|
5513 |
-
if (this.hasFocus()) {
|
5514 |
-
return;
|
5515 |
-
}
|
5516 |
-
|
5517 |
-
this.$container.addClass('select2-container--focus');
|
5518 |
-
this.trigger('focus', {});
|
5519 |
-
};
|
5520 |
-
|
5521 |
-
Select2.prototype.enable = function (args) {
|
5522 |
-
if (this.options.get('debug') && window.console && console.warn) {
|
5523 |
-
console.warn(
|
5524 |
-
'Select2: The `select2("enable")` method has been deprecated and will' +
|
5525 |
-
' be removed in later Select2 versions. Use $element.prop("disabled")' +
|
5526 |
-
' instead.'
|
5527 |
-
);
|
5528 |
-
}
|
5529 |
-
|
5530 |
-
if (args == null || args.length === 0) {
|
5531 |
-
args = [true];
|
5532 |
-
}
|
5533 |
-
|
5534 |
-
var disabled = !args[0];
|
5535 |
-
|
5536 |
-
this.$element.prop('disabled', disabled);
|
5537 |
-
};
|
5538 |
-
|
5539 |
-
Select2.prototype.data = function () {
|
5540 |
-
if (this.options.get('debug') &&
|
5541 |
-
arguments.length > 0 && window.console && console.warn) {
|
5542 |
-
console.warn(
|
5543 |
-
'Select2: Data can no longer be set using `select2("data")`. You ' +
|
5544 |
-
'should consider setting the value instead using `$element.val()`.'
|
5545 |
-
);
|
5546 |
-
}
|
5547 |
-
|
5548 |
-
var data = [];
|
5549 |
-
|
5550 |
-
this.dataAdapter.current(function (currentData) {
|
5551 |
-
data = currentData;
|
5552 |
-
});
|
5553 |
-
|
5554 |
-
return data;
|
5555 |
-
};
|
5556 |
-
|
5557 |
-
Select2.prototype.val = function (args) {
|
5558 |
-
if (this.options.get('debug') && window.console && console.warn) {
|
5559 |
-
console.warn(
|
5560 |
-
'Select2: The `select2("val")` method has been deprecated and will be' +
|
5561 |
-
' removed in later Select2 versions. Use $element.val() instead.'
|
5562 |
-
);
|
5563 |
-
}
|
5564 |
-
|
5565 |
-
if (args == null || args.length === 0) {
|
5566 |
-
return this.$element.val();
|
5567 |
-
}
|
5568 |
-
|
5569 |
-
var newVal = args[0];
|
5570 |
-
|
5571 |
-
if ($.isArray(newVal)) {
|
5572 |
-
newVal = $.map(newVal, function (obj) {
|
5573 |
-
return obj.toString();
|
5574 |
-
});
|
5575 |
-
}
|
5576 |
-
|
5577 |
-
this.$element.val(newVal).trigger('change');
|
5578 |
-
};
|
5579 |
-
|
5580 |
-
Select2.prototype.destroy = function () {
|
5581 |
-
this.$container.remove();
|
5582 |
-
|
5583 |
-
if (this.$element[0].detachEvent) {
|
5584 |
-
this.$element[0].detachEvent('onpropertychange', this._syncA);
|
5585 |
-
}
|
5586 |
-
|
5587 |
-
if (this._observer != null) {
|
5588 |
-
this._observer.disconnect();
|
5589 |
-
this._observer = null;
|
5590 |
-
} else if (this.$element[0].removeEventListener) {
|
5591 |
-
this.$element[0]
|
5592 |
-
.removeEventListener('DOMAttrModified', this._syncA, false);
|
5593 |
-
this.$element[0]
|
5594 |
-
.removeEventListener('DOMNodeInserted', this._syncS, false);
|
5595 |
-
this.$element[0]
|
5596 |
-
.removeEventListener('DOMNodeRemoved', this._syncS, false);
|
5597 |
-
}
|
5598 |
-
|
5599 |
-
this._syncA = null;
|
5600 |
-
this._syncS = null;
|
5601 |
-
|
5602 |
-
this.$element.off('.select2');
|
5603 |
-
this.$element.attr('tabindex', this.$element.data('old-tabindex'));
|
5604 |
-
|
5605 |
-
this.$element.removeClass('select2-hidden-accessible');
|
5606 |
-
this.$element.attr('aria-hidden', 'false');
|
5607 |
-
this.$element.removeData('select2');
|
5608 |
-
|
5609 |
-
this.dataAdapter.destroy();
|
5610 |
-
this.selection.destroy();
|
5611 |
-
this.dropdown.destroy();
|
5612 |
-
this.results.destroy();
|
5613 |
-
|
5614 |
-
this.dataAdapter = null;
|
5615 |
-
this.selection = null;
|
5616 |
-
this.dropdown = null;
|
5617 |
-
this.results = null;
|
5618 |
-
};
|
5619 |
-
|
5620 |
-
Select2.prototype.render = function () {
|
5621 |
-
var $container = $(
|
5622 |
-
'<span class="select2 select2-container">' +
|
5623 |
-
'<span class="selection"></span>' +
|
5624 |
-
'<span class="dropdown-wrapper" aria-hidden="true"></span>' +
|
5625 |
-
'</span>'
|
5626 |
-
);
|
5627 |
-
|
5628 |
-
$container.attr('dir', this.options.get('dir'));
|
5629 |
-
|
5630 |
-
this.$container = $container;
|
5631 |
-
|
5632 |
-
this.$container.addClass('select2-container--' + this.options.get('theme'));
|
5633 |
-
|
5634 |
-
$container.data('element', this.$element);
|
5635 |
-
|
5636 |
-
return $container;
|
5637 |
-
};
|
5638 |
-
|
5639 |
-
return Select2;
|
5640 |
-
});
|
5641 |
-
|
5642 |
-
S2.define('jquery-mousewheel',[
|
5643 |
-
'jquery'
|
5644 |
-
], function ($) {
|
5645 |
-
// Used to shim jQuery.mousewheel for non-full builds.
|
5646 |
-
return $;
|
5647 |
-
});
|
5648 |
-
|
5649 |
-
S2.define('jquery.select2',[
|
5650 |
-
'jquery',
|
5651 |
-
'jquery-mousewheel',
|
5652 |
-
|
5653 |
-
'./select2/core',
|
5654 |
-
'./select2/defaults'
|
5655 |
-
], function ($, _, Select2, Defaults) {
|
5656 |
-
if ($.fn.select2 == null) {
|
5657 |
-
// All methods that should return the element
|
5658 |
-
var thisMethods = ['open', 'close', 'destroy'];
|
5659 |
-
|
5660 |
-
$.fn.select2 = function (options) {
|
5661 |
-
options = options || {};
|
5662 |
-
|
5663 |
-
if (typeof options === 'object') {
|
5664 |
-
this.each(function () {
|
5665 |
-
var instanceOptions = $.extend(true, {}, options);
|
5666 |
-
|
5667 |
-
var instance = new Select2($(this), instanceOptions);
|
5668 |
-
});
|
5669 |
-
|
5670 |
-
return this;
|
5671 |
-
} else if (typeof options === 'string') {
|
5672 |
-
var ret;
|
5673 |
-
var args = Array.prototype.slice.call(arguments, 1);
|
5674 |
-
|
5675 |
-
this.each(function () {
|
5676 |
-
var instance = $(this).data('select2');
|
5677 |
-
|
5678 |
-
if (instance == null && window.console && console.error) {
|
5679 |
-
console.error(
|
5680 |
-
'The select2(\'' + options + '\') method was called on an ' +
|
5681 |
-
'element that is not using Select2.'
|
5682 |
-
);
|
5683 |
-
}
|
5684 |
-
|
5685 |
-
ret = instance[options].apply(instance, args);
|
5686 |
-
});
|
5687 |
-
|
5688 |
-
// Check if we should be returning `this`
|
5689 |
-
if ($.inArray(options, thisMethods) > -1) {
|
5690 |
-
return this;
|
5691 |
-
}
|
5692 |
-
|
5693 |
-
return ret;
|
5694 |
-
} else {
|
5695 |
-
throw new Error('Invalid arguments for Select2: ' + options);
|
5696 |
-
}
|
5697 |
-
};
|
5698 |
-
}
|
5699 |
-
|
5700 |
-
if ($.fn.select2.defaults == null) {
|
5701 |
-
$.fn.select2.defaults = Defaults;
|
5702 |
-
}
|
5703 |
-
|
5704 |
-
return Select2;
|
5705 |
-
});
|
5706 |
-
|
5707 |
-
// Return the AMD loader configuration so it can be used outside of this file
|
5708 |
-
return {
|
5709 |
-
define: S2.define,
|
5710 |
-
require: S2.require
|
5711 |
-
};
|
5712 |
-
}());
|
5713 |
-
|
5714 |
-
// Autoload the jQuery bindings
|
5715 |
-
// We know that all of the modules exist above this, so we're safe
|
5716 |
-
var select2 = S2.require('jquery.select2');
|
5717 |
-
|
5718 |
-
// Hold the AMD module references on the jQuery function that was just loaded
|
5719 |
-
// This allows Select2 to use the internal loader outside of this file, such
|
5720 |
-
// as in the language files.
|
5721 |
-
jQuery.fn.select2.amd = S2;
|
5722 |
-
|
5723 |
-
// Return the Select2 instance for anyone who is importing it.
|
5724 |
-
return select2;
|
5725 |
-
}));
|
1 |
+
/*!
|
2 |
+
* SelectWoo 5.0.0
|
3 |
+
* https://github.com/woocommerce/selectWoo
|
4 |
+
*
|
5 |
+
* Released under the MIT license
|
6 |
+
* https://github.com/woocommerce/selectWoo/blob/master/LICENSE.md
|
7 |
+
*/
|
8 |
+
(function (factory) {
|
9 |
+
if (typeof define === 'function' && define.amd) {
|
10 |
+
// AMD. Register as an anonymous module.
|
11 |
+
define(['jquery'], factory);
|
12 |
+
} else if (typeof module === 'object' && module.exports) {
|
13 |
+
// Node/CommonJS
|
14 |
+
module.exports = function (root, jQuery) {
|
15 |
+
if (jQuery === undefined) {
|
16 |
+
// require('jQuery') returns a factory that requires window to
|
17 |
+
// build a jQuery instance, we normalize how we use modules
|
18 |
+
// that require this pattern but the window provided is a noop
|
19 |
+
// if it's defined (how jquery works)
|
20 |
+
if (typeof window !== 'undefined') {
|
21 |
+
jQuery = require('jquery');
|
22 |
+
}
|
23 |
+
else {
|
24 |
+
jQuery = require('jquery')(root);
|
25 |
+
}
|
26 |
+
}
|
27 |
+
factory(jQuery);
|
28 |
+
return jQuery;
|
29 |
+
};
|
30 |
+
} else {
|
31 |
+
// Browser globals
|
32 |
+
factory(jQuery);
|
33 |
+
}
|
34 |
+
} (function (jQuery) {
|
35 |
+
// This is needed so we can catch the AMD loader configuration and use it
|
36 |
+
// The inner file should be wrapped (by `banner.start.js`) in a function that
|
37 |
+
// returns the AMD loader references.
|
38 |
+
var S2 =(function () {
|
39 |
+
// Restore the Select2 AMD loader so it can be used
|
40 |
+
// Needed mostly in the language files, where the loader is not inserted
|
41 |
+
if (jQuery && jQuery.fn && jQuery.fn.select2 && jQuery.fn.select2.amd) {
|
42 |
+
var S2 = jQuery.fn.select2.amd;
|
43 |
+
}
|
44 |
+
var S2;(function () { if (!S2 || !S2.requirejs) {
|
45 |
+
if (!S2) { S2 = {}; } else { require = S2; }
|
46 |
+
/**
|
47 |
+
* @license almond 0.3.3 Copyright jQuery Foundation and other contributors.
|
48 |
+
* Released under MIT license, http://github.com/requirejs/almond/LICENSE
|
49 |
+
*/
|
50 |
+
//Going sloppy to avoid 'use strict' string cost, but strict practices should
|
51 |
+
//be followed.
|
52 |
+
/*global setTimeout: false */
|
53 |
+
|
54 |
+
var requirejs, require, define;
|
55 |
+
(function (undef) {
|
56 |
+
var main, req, makeMap, handlers,
|
57 |
+
defined = {},
|
58 |
+
waiting = {},
|
59 |
+
config = {},
|
60 |
+
defining = {},
|
61 |
+
hasOwn = Object.prototype.hasOwnProperty,
|
62 |
+
aps = [].slice,
|
63 |
+
jsSuffixRegExp = /\.js$/;
|
64 |
+
|
65 |
+
function hasProp(obj, prop) {
|
66 |
+
return hasOwn.call(obj, prop);
|
67 |
+
}
|
68 |
+
|
69 |
+
/**
|
70 |
+
* Given a relative module name, like ./something, normalize it to
|
71 |
+
* a real name that can be mapped to a path.
|
72 |
+
* @param {String} name the relative name
|
73 |
+
* @param {String} baseName a real name that the name arg is relative
|
74 |
+
* to.
|
75 |
+
* @returns {String} normalized name
|
76 |
+
*/
|
77 |
+
function normalize(name, baseName) {
|
78 |
+
var nameParts, nameSegment, mapValue, foundMap, lastIndex,
|
79 |
+
foundI, foundStarMap, starI, i, j, part, normalizedBaseParts,
|
80 |
+
baseParts = baseName && baseName.split("/"),
|
81 |
+
map = config.map,
|
82 |
+
starMap = (map && map['*']) || {};
|
83 |
+
|
84 |
+
//Adjust any relative paths.
|
85 |
+
if (name) {
|
86 |
+
name = name.split('/');
|
87 |
+
lastIndex = name.length - 1;
|
88 |
+
|
89 |
+
// If wanting node ID compatibility, strip .js from end
|
90 |
+
// of IDs. Have to do this here, and not in nameToUrl
|
91 |
+
// because node allows either .js or non .js to map
|
92 |
+
// to same file.
|
93 |
+
if (config.nodeIdCompat && jsSuffixRegExp.test(name[lastIndex])) {
|
94 |
+
name[lastIndex] = name[lastIndex].replace(jsSuffixRegExp, '');
|
95 |
+
}
|
96 |
+
|
97 |
+
// Starts with a '.' so need the baseName
|
98 |
+
if (name[0].charAt(0) === '.' && baseParts) {
|
99 |
+
//Convert baseName to array, and lop off the last part,
|
100 |
+
//so that . matches that 'directory' and not name of the baseName's
|
101 |
+
//module. For instance, baseName of 'one/two/three', maps to
|
102 |
+
//'one/two/three.js', but we want the directory, 'one/two' for
|
103 |
+
//this normalization.
|
104 |
+
normalizedBaseParts = baseParts.slice(0, baseParts.length - 1);
|
105 |
+
name = normalizedBaseParts.concat(name);
|
106 |
+
}
|
107 |
+
|
108 |
+
//start trimDots
|
109 |
+
for (i = 0; i < name.length; i++) {
|
110 |
+
part = name[i];
|
111 |
+
if (part === '.') {
|
112 |
+
name.splice(i, 1);
|
113 |
+
i -= 1;
|
114 |
+
} else if (part === '..') {
|
115 |
+
// If at the start, or previous value is still ..,
|
116 |
+
// keep them so that when converted to a path it may
|
117 |
+
// still work when converted to a path, even though
|
118 |
+
// as an ID it is less than ideal. In larger point
|
119 |
+
// releases, may be better to just kick out an error.
|
120 |
+
if (i === 0 || (i === 1 && name[2] === '..') || name[i - 1] === '..') {
|
121 |
+
continue;
|
122 |
+
} else if (i > 0) {
|
123 |
+
name.splice(i - 1, 2);
|
124 |
+
i -= 2;
|
125 |
+
}
|
126 |
+
}
|
127 |
+
}
|
128 |
+
//end trimDots
|
129 |
+
|
130 |
+
name = name.join('/');
|
131 |
+
}
|
132 |
+
|
133 |
+
//Apply map config if available.
|
134 |
+
if ((baseParts || starMap) && map) {
|
135 |
+
nameParts = name.split('/');
|
136 |
+
|
137 |
+
for (i = nameParts.length; i > 0; i -= 1) {
|
138 |
+
nameSegment = nameParts.slice(0, i).join("/");
|
139 |
+
|
140 |
+
if (baseParts) {
|
141 |
+
//Find the longest baseName segment match in the config.
|
142 |
+
//So, do joins on the biggest to smallest lengths of baseParts.
|
143 |
+
for (j = baseParts.length; j > 0; j -= 1) {
|
144 |
+
mapValue = map[baseParts.slice(0, j).join('/')];
|
145 |
+
|
146 |
+
//baseName segment has config, find if it has one for
|
147 |
+
//this name.
|
148 |
+
if (mapValue) {
|
149 |
+
mapValue = mapValue[nameSegment];
|
150 |
+
if (mapValue) {
|
151 |
+
//Match, update name to the new value.
|
152 |
+
foundMap = mapValue;
|
153 |
+
foundI = i;
|
154 |
+
break;
|
155 |
+
}
|
156 |
+
}
|
157 |
+
}
|
158 |
+
}
|
159 |
+
|
160 |
+
if (foundMap) {
|
161 |
+
break;
|
162 |
+
}
|
163 |
+
|
164 |
+
//Check for a star map match, but just hold on to it,
|
165 |
+
//if there is a shorter segment match later in a matching
|
166 |
+
//config, then favor over this star map.
|
167 |
+
if (!foundStarMap && starMap && starMap[nameSegment]) {
|
168 |
+
foundStarMap = starMap[nameSegment];
|
169 |
+
starI = i;
|
170 |
+
}
|
171 |
+
}
|
172 |
+
|
173 |
+
if (!foundMap && foundStarMap) {
|
174 |
+
foundMap = foundStarMap;
|
175 |
+
foundI = starI;
|
176 |
+
}
|
177 |
+
|
178 |
+
if (foundMap) {
|
179 |
+
nameParts.splice(0, foundI, foundMap);
|
180 |
+
name = nameParts.join('/');
|
181 |
+
}
|
182 |
+
}
|
183 |
+
|
184 |
+
return name;
|
185 |
+
}
|
186 |
+
|
187 |
+
function makeRequire(relName, forceSync) {
|
188 |
+
return function () {
|
189 |
+
//A version of a require function that passes a moduleName
|
190 |
+
//value for items that may need to
|
191 |
+
//look up paths relative to the moduleName
|
192 |
+
var args = aps.call(arguments, 0);
|
193 |
+
|
194 |
+
//If first arg is not require('string'), and there is only
|
195 |
+
//one arg, it is the array form without a callback. Insert
|
196 |
+
//a null so that the following concat is correct.
|
197 |
+
if (typeof args[0] !== 'string' && args.length === 1) {
|
198 |
+
args.push(null);
|
199 |
+
}
|
200 |
+
return req.apply(undef, args.concat([relName, forceSync]));
|
201 |
+
};
|
202 |
+
}
|
203 |
+
|
204 |
+
function makeNormalize(relName) {
|
205 |
+
return function (name) {
|
206 |
+
return normalize(name, relName);
|
207 |
+
};
|
208 |
+
}
|
209 |
+
|
210 |
+
function makeLoad(depName) {
|
211 |
+
return function (value) {
|
212 |
+
defined[depName] = value;
|
213 |
+
};
|
214 |
+
}
|
215 |
+
|
216 |
+
function callDep(name) {
|
217 |
+
if (hasProp(waiting, name)) {
|
218 |
+
var args = waiting[name];
|
219 |
+
delete waiting[name];
|
220 |
+
defining[name] = true;
|
221 |
+
main.apply(undef, args);
|
222 |
+
}
|
223 |
+
|
224 |
+
if (!hasProp(defined, name) && !hasProp(defining, name)) {
|
225 |
+
throw new Error('No ' + name);
|
226 |
+
}
|
227 |
+
return defined[name];
|
228 |
+
}
|
229 |
+
|
230 |
+
//Turns a plugin!resource to [plugin, resource]
|
231 |
+
//with the plugin being undefined if the name
|
232 |
+
//did not have a plugin prefix.
|
233 |
+
function splitPrefix(name) {
|
234 |
+
var prefix,
|
235 |
+
index = name ? name.indexOf('!') : -1;
|
236 |
+
if (index > -1) {
|
237 |
+
prefix = name.substring(0, index);
|
238 |
+
name = name.substring(index + 1, name.length);
|
239 |
+
}
|
240 |
+
return [prefix, name];
|
241 |
+
}
|
242 |
+
|
243 |
+
//Creates a parts array for a relName where first part is plugin ID,
|
244 |
+
//second part is resource ID. Assumes relName has already been normalized.
|
245 |
+
function makeRelParts(relName) {
|
246 |
+
return relName ? splitPrefix(relName) : [];
|
247 |
+
}
|
248 |
+
|
249 |
+
/**
|
250 |
+
* Makes a name map, normalizing the name, and using a plugin
|
251 |
+
* for normalization if necessary. Grabs a ref to plugin
|
252 |
+
* too, as an optimization.
|
253 |
+
*/
|
254 |
+
makeMap = function (name, relParts) {
|
255 |
+
var plugin,
|
256 |
+
parts = splitPrefix(name),
|
257 |
+
prefix = parts[0],
|
258 |
+
relResourceName = relParts[1];
|
259 |
+
|
260 |
+
name = parts[1];
|
261 |
+
|
262 |
+
if (prefix) {
|
263 |
+
prefix = normalize(prefix, relResourceName);
|
264 |
+
plugin = callDep(prefix);
|
265 |
+
}
|
266 |
+
|
267 |
+
//Normalize according
|
268 |
+
if (prefix) {
|
269 |
+
if (plugin && plugin.normalize) {
|
270 |
+
name = plugin.normalize(name, makeNormalize(relResourceName));
|
271 |
+
} else {
|
272 |
+
name = normalize(name, relResourceName);
|
273 |
+
}
|
274 |
+
} else {
|
275 |
+
name = normalize(name, relResourceName);
|
276 |
+
parts = splitPrefix(name);
|
277 |
+
prefix = parts[0];
|
278 |
+
name = parts[1];
|
279 |
+
if (prefix) {
|
280 |
+
plugin = callDep(prefix);
|
281 |
+
}
|
282 |
+
}
|
283 |
+
|
284 |
+
//Using ridiculous property names for space reasons
|
285 |
+
return {
|
286 |
+
f: prefix ? prefix + '!' + name : name, //fullName
|
287 |
+
n: name,
|
288 |
+
pr: prefix,
|
289 |
+
p: plugin
|
290 |
+
};
|
291 |
+
};
|
292 |
+
|
293 |
+
function makeConfig(name) {
|
294 |
+
return function () {
|
295 |
+
return (config && config.config && config.config[name]) || {};
|
296 |
+
};
|
297 |
+
}
|
298 |
+
|
299 |
+
handlers = {
|
300 |
+
require: function (name) {
|
301 |
+
return makeRequire(name);
|
302 |
+
},
|
303 |
+
exports: function (name) {
|
304 |
+
var e = defined[name];
|
305 |
+
if (typeof e !== 'undefined') {
|
306 |
+
return e;
|
307 |
+
} else {
|
308 |
+
return (defined[name] = {});
|
309 |
+
}
|
310 |
+
},
|
311 |
+
module: function (name) {
|
312 |
+
return {
|
313 |
+
id: name,
|
314 |
+
uri: '',
|
315 |
+
exports: defined[name],
|
316 |
+
config: makeConfig(name)
|
317 |
+
};
|
318 |
+
}
|
319 |
+
};
|
320 |
+
|
321 |
+
main = function (name, deps, callback, relName) {
|
322 |
+
var cjsModule, depName, ret, map, i, relParts,
|
323 |
+
args = [],
|
324 |
+
callbackType = typeof callback,
|
325 |
+
usingExports;
|
326 |
+
|
327 |
+
//Use name if no relName
|
328 |
+
relName = relName || name;
|
329 |
+
relParts = makeRelParts(relName);
|
330 |
+
|
331 |
+
//Call the callback to define the module, if necessary.
|
332 |
+
if (callbackType === 'undefined' || callbackType === 'function') {
|
333 |
+
//Pull out the defined dependencies and pass the ordered
|
334 |
+
//values to the callback.
|
335 |
+
//Default to [require, exports, module] if no deps
|
336 |
+
deps = !deps.length && callback.length ? ['require', 'exports', 'module'] : deps;
|
337 |
+
for (i = 0; i < deps.length; i += 1) {
|
338 |
+
map = makeMap(deps[i], relParts);
|
339 |
+
depName = map.f;
|
340 |
+
|
341 |
+
//Fast path CommonJS standard dependencies.
|
342 |
+
if (depName === "require") {
|
343 |
+
args[i] = handlers.require(name);
|
344 |
+
} else if (depName === "exports") {
|
345 |
+
//CommonJS module spec 1.1
|
346 |
+
args[i] = handlers.exports(name);
|
347 |
+
usingExports = true;
|
348 |
+
} else if (depName === "module") {
|
349 |
+
//CommonJS module spec 1.1
|
350 |
+
cjsModule = args[i] = handlers.module(name);
|
351 |
+
} else if (hasProp(defined, depName) ||
|
352 |
+
hasProp(waiting, depName) ||
|
353 |
+
hasProp(defining, depName)) {
|
354 |
+
args[i] = callDep(depName);
|
355 |
+
} else if (map.p) {
|
356 |
+
map.p.load(map.n, makeRequire(relName, true), makeLoad(depName), {});
|
357 |
+
args[i] = defined[depName];
|
358 |
+
} else {
|
359 |
+
throw new Error(name + ' missing ' + depName);
|
360 |
+
}
|
361 |
+
}
|
362 |
+
|
363 |
+
ret = callback ? callback.apply(defined[name], args) : undefined;
|
364 |
+
|
365 |
+
if (name) {
|
366 |
+
//If setting exports via "module" is in play,
|
367 |
+
//favor that over return value and exports. After that,
|
368 |
+
//favor a non-undefined return value over exports use.
|
369 |
+
if (cjsModule && cjsModule.exports !== undef &&
|
370 |
+
cjsModule.exports !== defined[name]) {
|
371 |
+
defined[name] = cjsModule.exports;
|
372 |
+
} else if (ret !== undef || !usingExports) {
|
373 |
+
//Use the return value from the function.
|
374 |
+
defined[name] = ret;
|
375 |
+
}
|
376 |
+
}
|
377 |
+
} else if (name) {
|
378 |
+
//May just be an object definition for the module. Only
|
379 |
+
//worry about defining if have a module name.
|
380 |
+
defined[name] = callback;
|
381 |
+
}
|
382 |
+
};
|
383 |
+
|
384 |
+
requirejs = require = req = function (deps, callback, relName, forceSync, alt) {
|
385 |
+
if (typeof deps === "string") {
|
386 |
+
if (handlers[deps]) {
|
387 |
+
//callback in this case is really relName
|
388 |
+
return handlers[deps](callback);
|
389 |
+
}
|
390 |
+
//Just return the module wanted. In this scenario, the
|
391 |
+
//deps arg is the module name, and second arg (if passed)
|
392 |
+
//is just the relName.
|
393 |
+
//Normalize module name, if it contains . or ..
|
394 |
+
return callDep(makeMap(deps, makeRelParts(callback)).f);
|
395 |
+
} else if (!deps.splice) {
|
396 |
+
//deps is a config object, not an array.
|
397 |
+
config = deps;
|
398 |
+
if (config.deps) {
|
399 |
+
req(config.deps, config.callback);
|
400 |
+
}
|
401 |
+
if (!callback) {
|
402 |
+
return;
|
403 |
+
}
|
404 |
+
|
405 |
+
if (callback.splice) {
|
406 |
+
//callback is an array, which means it is a dependency list.
|
407 |
+
//Adjust args if there are dependencies
|
408 |
+
deps = callback;
|
409 |
+
callback = relName;
|
410 |
+
relName = null;
|
411 |
+
} else {
|
412 |
+
deps = undef;
|
413 |
+
}
|
414 |
+
}
|
415 |
+
|
416 |
+
//Support require(['a'])
|
417 |
+
callback = callback || function () {};
|
418 |
+
|
419 |
+
//If relName is a function, it is an errback handler,
|
420 |
+
//so remove it.
|
421 |
+
if (typeof relName === 'function') {
|
422 |
+
relName = forceSync;
|
423 |
+
forceSync = alt;
|
424 |
+
}
|
425 |
+
|
426 |
+
//Simulate async callback;
|
427 |
+
if (forceSync) {
|
428 |
+
main(undef, deps, callback, relName);
|
429 |
+
} else {
|
430 |
+
//Using a non-zero value because of concern for what old browsers
|
431 |
+
//do, and latest browsers "upgrade" to 4 if lower value is used:
|
432 |
+
//http://www.whatwg.org/specs/web-apps/current-work/multipage/timers.html#dom-windowtimers-settimeout:
|
433 |
+
//If want a value immediately, use require('id') instead -- something
|
434 |
+
//that works in almond on the global level, but not guaranteed and
|
435 |
+
//unlikely to work in other AMD implementations.
|
436 |
+
setTimeout(function () {
|
437 |
+
main(undef, deps, callback, relName);
|
438 |
+
}, 4);
|
439 |
+
}
|
440 |
+
|
441 |
+
return req;
|
442 |
+
};
|
443 |
+
|
444 |
+
/**
|
445 |
+
* Just drops the config on the floor, but returns req in case
|
446 |
+
* the config return value is used.
|
447 |
+
*/
|
448 |
+
req.config = function (cfg) {
|
449 |
+
return req(cfg);
|
450 |
+
};
|
451 |
+
|
452 |
+
/**
|
453 |
+
* Expose module registry for debugging and tooling
|
454 |
+
*/
|
455 |
+
requirejs._defined = defined;
|
456 |
+
|
457 |
+
define = function (name, deps, callback) {
|
458 |
+
if (typeof name !== 'string') {
|
459 |
+
throw new Error('See almond README: incorrect module build, no module name');
|
460 |
+
}
|
461 |
+
|
462 |
+
//This module may not have dependencies
|
463 |
+
if (!deps.splice) {
|
464 |
+
//deps is not an array, so probably means
|
465 |
+
//an object literal or factory function for
|
466 |
+
//the value. Adjust args.
|
467 |
+
callback = deps;
|
468 |
+
deps = [];
|
469 |
+
}
|
470 |
+
|
471 |
+
if (!hasProp(defined, name) && !hasProp(waiting, name)) {
|
472 |
+
waiting[name] = [name, deps, callback];
|
473 |
+
}
|
474 |
+
};
|
475 |
+
|
476 |
+
define.amd = {
|
477 |
+
jQuery: true
|
478 |
+
};
|
479 |
+
}());
|
480 |
+
|
481 |
+
S2.requirejs = requirejs;S2.require = require;S2.define = define;
|
482 |
+
}
|
483 |
+
}());
|
484 |
+
S2.define("almond", function(){});
|
485 |
+
|
486 |
+
/* global jQuery:false, $:false */
|
487 |
+
S2.define('jquery',[],function () {
|
488 |
+
var _$ = jQuery || $;
|
489 |
+
|
490 |
+
if (_$ == null && console && console.error) {
|
491 |
+
console.error(
|
492 |
+
'Select2: An instance of jQuery or a jQuery-compatible library was not ' +
|
493 |
+
'found. Make sure that you are including jQuery before Select2 on your ' +
|
494 |
+
'web page.'
|
495 |
+
);
|
496 |
+
}
|
497 |
+
|
498 |
+
return _$;
|
499 |
+
});
|
500 |
+
|
501 |
+
S2.define('select2/utils',[
|
502 |
+
'jquery'
|
503 |
+
], function ($) {
|
504 |
+
var Utils = {};
|
505 |
+
|
506 |
+
Utils.Extend = function (ChildClass, SuperClass) {
|
507 |
+
var __hasProp = {}.hasOwnProperty;
|
508 |
+
|
509 |
+
function BaseConstructor () {
|
510 |
+
this.constructor = ChildClass;
|
511 |
+
}
|
512 |
+
|
513 |
+
for (var key in SuperClass) {
|
514 |
+
if (__hasProp.call(SuperClass, key)) {
|
515 |
+
ChildClass[key] = SuperClass[key];
|
516 |
+
}
|
517 |
+
}
|
518 |
+
|
519 |
+
BaseConstructor.prototype = SuperClass.prototype;
|
520 |
+
ChildClass.prototype = new BaseConstructor();
|
521 |
+
ChildClass.__super__ = SuperClass.prototype;
|
522 |
+
|
523 |
+
return ChildClass;
|
524 |
+
};
|
525 |
+
|
526 |
+
function getMethods (theClass) {
|
527 |
+
var proto = theClass.prototype;
|
528 |
+
|
529 |
+
var methods = [];
|
530 |
+
|
531 |
+
for (var methodName in proto) {
|
532 |
+
var m = proto[methodName];
|
533 |
+
|
534 |
+
if (typeof m !== 'function') {
|
535 |
+
continue;
|
536 |
+
}
|
537 |
+
|
538 |
+
if (methodName === 'constructor') {
|
539 |
+
continue;
|
540 |
+
}
|
541 |
+
|
542 |
+
methods.push(methodName);
|
543 |
+
}
|
544 |
+
|
545 |
+
return methods;
|
546 |
+
}
|
547 |
+
|
548 |
+
Utils.Decorate = function (SuperClass, DecoratorClass) {
|
549 |
+
var decoratedMethods = getMethods(DecoratorClass);
|
550 |
+
var superMethods = getMethods(SuperClass);
|
551 |
+
|
552 |
+
function DecoratedClass () {
|
553 |
+
var unshift = Array.prototype.unshift;
|
554 |
+
|
555 |
+
var argCount = DecoratorClass.prototype.constructor.length;
|
556 |
+
|
557 |
+
var calledConstructor = SuperClass.prototype.constructor;
|
558 |
+
|
559 |
+
if (argCount > 0) {
|
560 |
+
unshift.call(arguments, SuperClass.prototype.constructor);
|
561 |
+
|
562 |
+
calledConstructor = DecoratorClass.prototype.constructor;
|
563 |
+
}
|
564 |
+
|
565 |
+
calledConstructor.apply(this, arguments);
|
566 |
+
}
|
567 |
+
|
568 |
+
DecoratorClass.displayName = SuperClass.displayName;
|
569 |
+
|
570 |
+
function ctr () {
|
571 |
+
this.constructor = DecoratedClass;
|
572 |
+
}
|
573 |
+
|
574 |
+
DecoratedClass.prototype = new ctr();
|
575 |
+
|
576 |
+
for (var m = 0; m < superMethods.length; m++) {
|
577 |
+
var superMethod = superMethods[m];
|
578 |
+
|
579 |
+
DecoratedClass.prototype[superMethod] =
|
580 |
+
SuperClass.prototype[superMethod];
|
581 |
+
}
|
582 |
+
|
583 |
+
var calledMethod = function (methodName) {
|
584 |
+
// Stub out the original method if it's not decorating an actual method
|
585 |
+
var originalMethod = function () {};
|
586 |
+
|
587 |
+
if (methodName in DecoratedClass.prototype) {
|
588 |
+
originalMethod = DecoratedClass.prototype[methodName];
|
589 |
+
}
|
590 |
+
|
591 |
+
var decoratedMethod = DecoratorClass.prototype[methodName];
|
592 |
+
|
593 |
+
return function () {
|
594 |
+
var unshift = Array.prototype.unshift;
|
595 |
+
|
596 |
+
unshift.call(arguments, originalMethod);
|
597 |
+
|
598 |
+
return decoratedMethod.apply(this, arguments);
|
599 |
+
};
|
600 |
+
};
|
601 |
+
|
602 |
+
for (var d = 0; d < decoratedMethods.length; d++) {
|
603 |
+
var decoratedMethod = decoratedMethods[d];
|
604 |
+
|
605 |
+
DecoratedClass.prototype[decoratedMethod] = calledMethod(decoratedMethod);
|
606 |
+
}
|
607 |
+
|
608 |
+
return DecoratedClass;
|
609 |
+
};
|
610 |
+
|
611 |
+
var Observable = function () {
|
612 |
+
this.listeners = {};
|
613 |
+
};
|
614 |
+
|
615 |
+
Observable.prototype.on = function (event, callback) {
|
616 |
+
this.listeners = this.listeners || {};
|
617 |
+
|
618 |
+
if (event in this.listeners) {
|
619 |
+
this.listeners[event].push(callback);
|
620 |
+
} else {
|
621 |
+
this.listeners[event] = [callback];
|
622 |
+
}
|
623 |
+
};
|
624 |
+
|
625 |
+
Observable.prototype.trigger = function (event) {
|
626 |
+
var slice = Array.prototype.slice;
|
627 |
+
var params = slice.call(arguments, 1);
|
628 |
+
|
629 |
+
this.listeners = this.listeners || {};
|
630 |
+
|
631 |
+
// Params should always come in as an array
|
632 |
+
if (params == null) {
|
633 |
+
params = [];
|
634 |
+
}
|
635 |
+
|
636 |
+
// If there are no arguments to the event, use a temporary object
|
637 |
+
if (params.length === 0) {
|
638 |
+
params.push({});
|
639 |
+
}
|
640 |
+
|
641 |
+
// Set the `_type` of the first object to the event
|
642 |
+
params[0]._type = event;
|
643 |
+
|
644 |
+
if (event in this.listeners) {
|
645 |
+
this.invoke(this.listeners[event], slice.call(arguments, 1));
|
646 |
+
}
|
647 |
+
|
648 |
+
if ('*' in this.listeners) {
|
649 |
+
this.invoke(this.listeners['*'], arguments);
|
650 |
+
}
|
651 |
+
};
|
652 |
+
|
653 |
+
Observable.prototype.invoke = function (listeners, params) {
|
654 |
+
for (var i = 0, len = listeners.length; i < len; i++) {
|
655 |
+
listeners[i].apply(this, params);
|
656 |
+
}
|
657 |
+
};
|
658 |
+
|
659 |
+
Utils.Observable = Observable;
|
660 |
+
|
661 |
+
Utils.generateChars = function (length) {
|
662 |
+
var chars = '';
|
663 |
+
|
664 |
+
for (var i = 0; i < length; i++) {
|
665 |
+
var randomChar = Math.floor(Math.random() * 36);
|
666 |
+
chars += randomChar.toString(36);
|
667 |
+
}
|
668 |
+
|
669 |
+
return chars;
|
670 |
+
};
|
671 |
+
|
672 |
+
Utils.bind = function (func, context) {
|
673 |
+
return function () {
|
674 |
+
func.apply(context, arguments);
|
675 |
+
};
|
676 |
+
};
|
677 |
+
|
678 |
+
Utils._convertData = function (data) {
|
679 |
+
for (var originalKey in data) {
|
680 |
+
var keys = originalKey.split('-');
|
681 |
+
|
682 |
+
var dataLevel = data;
|
683 |
+
|
684 |
+
if (keys.length === 1) {
|
685 |
+
continue;
|
686 |
+
}
|
687 |
+
|
688 |
+
for (var k = 0; k < keys.length; k++) {
|
689 |
+
var key = keys[k];
|
690 |
+
|
691 |
+
// Lowercase the first letter
|
692 |
+
// By default, dash-separated becomes camelCase
|
693 |
+
key = key.substring(0, 1).toLowerCase() + key.substring(1);
|
694 |
+
|
695 |
+
if (!(key in dataLevel)) {
|
696 |
+
dataLevel[key] = {};
|
697 |
+
}
|
698 |
+
|
699 |
+
if (k == keys.length - 1) {
|
700 |
+
dataLevel[key] = data[originalKey];
|
701 |
+
}
|
702 |
+
|
703 |
+
dataLevel = dataLevel[key];
|
704 |
+
}
|
705 |
+
|
706 |
+
delete data[originalKey];
|
707 |
+
}
|
708 |
+
|
709 |
+
return data;
|
710 |
+
};
|
711 |
+
|
712 |
+
Utils.hasScroll = function (index, el) {
|
713 |
+
// Adapted from the function created by @ShadowScripter
|
714 |
+
// and adapted by @BillBarry on the Stack Exchange Code Review website.
|
715 |
+
// The original code can be found at
|
716 |
+
// http://codereview.stackexchange.com/q/13338
|
717 |
+
// and was designed to be used with the Sizzle selector engine.
|
718 |
+
|
719 |
+
var $el = $(el);
|
720 |
+
var overflowX = el.style.overflowX;
|
721 |
+
var overflowY = el.style.overflowY;
|
722 |
+
|
723 |
+
//Check both x and y declarations
|
724 |
+
if (overflowX === overflowY &&
|
725 |
+
(overflowY === 'hidden' || overflowY === 'visible')) {
|
726 |
+
return false;
|
727 |
+
}
|
728 |
+
|
729 |
+
if (overflowX === 'scroll' || overflowY === 'scroll') {
|
730 |
+
return true;
|
731 |
+
}
|
732 |
+
|
733 |
+
return ($el.innerHeight() < el.scrollHeight ||
|
734 |
+
$el.innerWidth() < el.scrollWidth);
|
735 |
+
};
|
736 |
+
|
737 |
+
Utils.escapeMarkup = function (markup) {
|
738 |
+
var replaceMap = {
|
739 |
+
'\\': '\',
|
740 |
+
'&': '&',
|
741 |
+
'<': '<',
|
742 |
+
'>': '>',
|
743 |
+
'"': '"',
|
744 |
+
'\'': ''',
|
745 |
+
'/': '/'
|
746 |
+
};
|
747 |
+
|
748 |
+
// Do not try to escape the markup if it's not a string
|
749 |
+
if (typeof markup !== 'string') {
|
750 |
+
return markup;
|
751 |
+
}
|
752 |
+
|
753 |
+
return String(markup).replace(/[&<>"'\/\\]/g, function (match) {
|
754 |
+
return replaceMap[match];
|
755 |
+
});
|
756 |
+
};
|
757 |
+
|
758 |
+
// Append an array of jQuery nodes to a given element.
|
759 |
+
Utils.appendMany = function ($element, $nodes) {
|
760 |
+
// jQuery 1.7.x does not support $.fn.append() with an array
|
761 |
+
// Fall back to a jQuery object collection using $.fn.add()
|
762 |
+
if ($.fn.jquery.substr(0, 3) === '1.7') {
|
763 |
+
var $jqNodes = $();
|
764 |
+
|
765 |
+
$.map($nodes, function (node) {
|
766 |
+
$jqNodes = $jqNodes.add(node);
|
767 |
+
});
|
768 |
+
|
769 |
+
$nodes = $jqNodes;
|
770 |
+
}
|
771 |
+
|
772 |
+
$element.append($nodes);
|
773 |
+
};
|
774 |
+
|
775 |
+
// Determine whether the browser is on a touchscreen device.
|
776 |
+
Utils.isTouchscreen = function() {
|
777 |
+
if ('undefined' === typeof Utils._isTouchscreenCache) {
|
778 |
+
Utils._isTouchscreenCache = 'ontouchstart' in document.documentElement;
|
779 |
+
}
|
780 |
+
return Utils._isTouchscreenCache;
|
781 |
+
}
|
782 |
+
|
783 |
+
return Utils;
|
784 |
+
});
|
785 |
+
|
786 |
+
S2.define('select2/results',[
|
787 |
+
'jquery',
|
788 |
+
'./utils'
|
789 |
+
], function ($, Utils) {
|
790 |
+
function Results ($element, options, dataAdapter) {
|
791 |
+
this.$element = $element;
|
792 |
+
this.data = dataAdapter;
|
793 |
+
this.options = options;
|
794 |
+
|
795 |
+
Results.__super__.constructor.call(this);
|
796 |
+
}
|
797 |
+
|
798 |
+
Utils.Extend(Results, Utils.Observable);
|
799 |
+
|
800 |
+
Results.prototype.render = function () {
|
801 |
+
var $results = $(
|
802 |
+
'<ul class="select2-results__options" role="listbox" tabindex="-1"></ul>'
|
803 |
+
);
|
804 |
+
|
805 |
+
if (this.options.get('multiple')) {
|
806 |
+
$results.attr('aria-multiselectable', 'true');
|
807 |
+
}
|
808 |
+
|
809 |
+
this.$results = $results;
|
810 |
+
|
811 |
+
return $results;
|
812 |
+
};
|
813 |
+
|
814 |
+
Results.prototype.clear = function () {
|
815 |
+
this.$results.empty();
|
816 |
+
};
|
817 |
+
|
818 |
+
Results.prototype.displayMessage = function (params) {
|
819 |
+
var escapeMarkup = this.options.get('escapeMarkup');
|
820 |
+
|
821 |
+
this.clear();
|
822 |
+
this.hideLoading();
|
823 |
+
|
824 |
+
var $message = $(
|
825 |
+
'<li role="alert" aria-live="assertive"' +
|
826 |
+
' class="select2-results__option"></li>'
|
827 |
+
);
|
828 |
+
|
829 |
+
var message = this.options.get('translations').get(params.message);
|
830 |
+
|
831 |
+
$message.append(
|
832 |
+
escapeMarkup(
|
833 |
+
message(params.args)
|
834 |
+
)
|
835 |
+
);
|
836 |
+
|
837 |
+
$message[0].className += ' select2-results__message';
|
838 |
+
|
839 |
+
this.$results.append($message);
|
840 |
+
};
|
841 |
+
|
842 |
+
Results.prototype.hideMessages = function () {
|
843 |
+
this.$results.find('.select2-results__message').remove();
|
844 |
+
};
|
845 |
+
|
846 |
+
Results.prototype.append = function (data) {
|
847 |
+
this.hideLoading();
|
848 |
+
|
849 |
+
var $options = [];
|
850 |
+
|
851 |
+
if (data.results == null || data.results.length === 0) {
|
852 |
+
if (this.$results.children().length === 0) {
|
853 |
+
this.trigger('results:message', {
|
854 |
+
message: 'noResults'
|
855 |
+
});
|
856 |
+
}
|
857 |
+
|
858 |
+
return;
|
859 |
+
}
|
860 |
+
|
861 |
+
data.results = this.sort(data.results);
|
862 |
+
|
863 |
+
for (var d = 0; d < data.results.length; d++) {
|
864 |
+
var item = data.results[d];
|
865 |
+
|
866 |
+
var $option = this.option(item);
|
867 |
+
|
868 |
+
$options.push($option);
|
869 |
+
}
|
870 |
+
|
871 |
+
this.$results.append($options);
|
872 |
+
};
|
873 |
+
|
874 |
+
Results.prototype.position = function ($results, $dropdown) {
|
875 |
+
var $resultsContainer = $dropdown.find('.select2-results');
|
876 |
+
$resultsContainer.append($results);
|
877 |
+
};
|
878 |
+
|
879 |
+
Results.prototype.sort = function (data) {
|
880 |
+
var sorter = this.options.get('sorter');
|
881 |
+
|
882 |
+
return sorter(data);
|
883 |
+
};
|
884 |
+
|
885 |
+
Results.prototype.highlightFirstItem = function () {
|
886 |
+
var $options = this.$results
|
887 |
+
.find('.select2-results__option[data-selected]');
|
888 |
+
|
889 |
+
var $selected = $options.filter('[data-selected=true]');
|
890 |
+
|
891 |
+
// Check if there are any selected options
|
892 |
+
if ($selected.length > 0) {
|
893 |
+
// If there are selected options, highlight the first
|
894 |
+
$selected.first().trigger('mouseenter');
|
895 |
+
} else {
|
896 |
+
// If there are no selected options, highlight the first option
|
897 |
+
// in the dropdown
|
898 |
+
$options.first().trigger('mouseenter');
|
899 |
+
}
|
900 |
+
|
901 |
+
this.ensureHighlightVisible();
|
902 |
+
};
|
903 |
+
|
904 |
+
Results.prototype.setClasses = function () {
|
905 |
+
var self = this;
|
906 |
+
|
907 |
+
this.data.current(function (selected) {
|
908 |
+
var selectedIds = $.map(selected, function (s) {
|
909 |
+
return s.id.toString();
|
910 |
+
});
|
911 |
+
|
912 |
+
var $options = self.$results
|
913 |
+
.find('.select2-results__option[data-selected]');
|
914 |
+
|
915 |
+
$options.each(function () {
|
916 |
+
var $option = $(this);
|
917 |
+
|
918 |
+
var item = $.data(this, 'data');
|
919 |
+
|
920 |
+
// id needs to be converted to a string when comparing
|
921 |
+
var id = '' + item.id;
|
922 |
+
|
923 |
+
if ((item.element != null && item.element.selected) ||
|
924 |
+
(item.element == null && $.inArray(id, selectedIds) > -1)) {
|
925 |
+
$option.attr('data-selected', 'true');
|
926 |
+
} else {
|
927 |
+
$option.attr('data-selected', 'false');
|
928 |
+
}
|
929 |
+
});
|
930 |
+
|
931 |
+
});
|
932 |
+
};
|
933 |
+
|
934 |
+
Results.prototype.showLoading = function (params) {
|
935 |
+
this.hideLoading();
|
936 |
+
|
937 |
+
var loadingMore = this.options.get('translations').get('searching');
|
938 |
+
|
939 |
+
var loading = {
|
940 |
+
disabled: true,
|
941 |
+
loading: true,
|
942 |
+
text: loadingMore(params)
|
943 |
+
};
|
944 |
+
var $loading = this.option(loading);
|
945 |
+
$loading.className += ' loading-results';
|
946 |
+
|
947 |
+
this.$results.prepend($loading);
|
948 |
+
};
|
949 |
+
|
950 |
+
Results.prototype.hideLoading = function () {
|
951 |
+
this.$results.find('.loading-results').remove();
|
952 |
+
};
|
953 |
+
|
954 |
+
Results.prototype.option = function (data) {
|
955 |
+
var option = document.createElement('li');
|
956 |
+
option.className = 'select2-results__option';
|
957 |
+
|
958 |
+
var attrs = {
|
959 |
+
'role': 'option',
|
960 |
+
'data-selected': 'false',
|
961 |
+
'tabindex': -1
|
962 |
+
};
|
963 |
+
|
964 |
+
if (data.disabled) {
|
965 |
+
delete attrs['data-selected'];
|
966 |
+
attrs['aria-disabled'] = 'true';
|
967 |
+
}
|
968 |
+
|
969 |
+
if (data.id == null) {
|
970 |
+
delete attrs['data-selected'];
|
971 |
+
}
|
972 |
+
|
973 |
+
if (data._resultId != null) {
|
974 |
+
option.id = data._resultId;
|
975 |
+
}
|
976 |
+
|
977 |
+
if (data.title) {
|
978 |
+
option.title = data.title;
|
979 |
+
}
|
980 |
+
|
981 |
+
if (data.children) {
|
982 |
+
attrs['aria-label'] = data.text;
|
983 |
+
delete attrs['data-selected'];
|
984 |
+
}
|
985 |
+
|
986 |
+
for (var attr in attrs) {
|
987 |
+
var val = attrs[attr];
|
988 |
+
|
989 |
+
option.setAttribute(attr, val);
|
990 |
+
}
|
991 |
+
|
992 |
+
if (data.children) {
|
993 |
+
var $option = $(option);
|
994 |
+
|
995 |
+
var label = document.createElement('strong');
|
996 |
+
label.className = 'select2-results__group';
|
997 |
+
|
998 |
+
var $label = $(label);
|
999 |
+
this.template(data, label);
|
1000 |
+
$label.attr('role', 'presentation');
|
1001 |
+
|
1002 |
+
var $children = [];
|
1003 |
+
|
1004 |
+
for (var c = 0; c < data.children.length; c++) {
|
1005 |
+
var child = data.children[c];
|
1006 |
+
|
1007 |
+
var $child = this.option(child);
|
1008 |
+
|
1009 |
+
$children.push($child);
|
1010 |
+
}
|
1011 |
+
|
1012 |
+
var $childrenContainer = $('<ul></ul>', {
|
1013 |
+
'class': 'select2-results__options select2-results__options--nested',
|
1014 |
+
'role': 'listbox'
|
1015 |
+
});
|
1016 |
+
$childrenContainer.append($children);
|
1017 |
+
$option.attr('role', 'list');
|
1018 |
+
|
1019 |
+
$option.append(label);
|
1020 |
+
$option.append($childrenContainer);
|
1021 |
+
} else {
|
1022 |
+
this.template(data, option);
|
1023 |
+
}
|
1024 |
+
|
1025 |
+
$.data(option, 'data', data);
|
1026 |
+
|
1027 |
+
return option;
|
1028 |
+
};
|
1029 |
+
|
1030 |
+
Results.prototype.bind = function (container, $container) {
|
1031 |
+
var self = this;
|
1032 |
+
|
1033 |
+
var id = container.id + '-results';
|
1034 |
+
|
1035 |
+
this.$results.attr('id', id);
|
1036 |
+
|
1037 |
+
container.on('results:all', function (params) {
|
1038 |
+
self.clear();
|
1039 |
+
self.append(params.data);
|
1040 |
+
|
1041 |
+
if (container.isOpen()) {
|
1042 |
+
self.setClasses();
|
1043 |
+
self.highlightFirstItem();
|
1044 |
+
}
|
1045 |
+
});
|
1046 |
+
|
1047 |
+
container.on('results:append', function (params) {
|
1048 |
+
self.append(params.data);
|
1049 |
+
|
1050 |
+
if (container.isOpen()) {
|
1051 |
+
self.setClasses();
|
1052 |
+
}
|
1053 |
+
});
|
1054 |
+
|
1055 |
+
container.on('query', function (params) {
|
1056 |
+
self.hideMessages();
|
1057 |
+
self.showLoading(params);
|
1058 |
+
});
|
1059 |
+
|
1060 |
+
container.on('select', function () {
|
1061 |
+
if (!container.isOpen()) {
|
1062 |
+
return;
|
1063 |
+
}
|
1064 |
+
|
1065 |
+
self.setClasses();
|
1066 |
+
self.highlightFirstItem();
|
1067 |
+
});
|
1068 |
+
|
1069 |
+
container.on('unselect', function () {
|
1070 |
+
if (!container.isOpen()) {
|
1071 |
+
return;
|
1072 |
+
}
|
1073 |
+
|
1074 |
+
self.setClasses();
|
1075 |
+
self.highlightFirstItem();
|
1076 |
+
});
|
1077 |
+
|
1078 |
+
container.on('open', function () {
|
1079 |
+
// When the dropdown is open, aria-expended="true"
|
1080 |
+
self.$results.attr('aria-expanded', 'true');
|
1081 |
+
self.$results.attr('aria-hidden', 'false');
|
1082 |
+
|
1083 |
+
self.setClasses();
|
1084 |
+
self.ensureHighlightVisible();
|
1085 |
+
});
|
1086 |
+
|
1087 |
+
container.on('close', function () {
|
1088 |
+
// When the dropdown is closed, aria-expended="false"
|
1089 |
+
self.$results.attr('aria-expanded', 'false');
|
1090 |
+
self.$results.attr('aria-hidden', 'true');
|
1091 |
+
self.$results.removeAttr('aria-activedescendant');
|
1092 |
+
});
|
1093 |
+
|
1094 |
+
container.on('results:toggle', function () {
|
1095 |
+
var $highlighted = self.getHighlightedResults();
|
1096 |
+
|
1097 |
+
if ($highlighted.length === 0) {
|
1098 |
+
return;
|
1099 |
+
}
|
1100 |
+
|
1101 |
+
$highlighted.trigger('mouseup');
|
1102 |
+
});
|
1103 |
+
|
1104 |
+
container.on('results:select', function () {
|
1105 |
+
var $highlighted = self.getHighlightedResults();
|
1106 |
+
|
1107 |
+
if ($highlighted.length === 0) {
|
1108 |
+
return;
|
1109 |
+
}
|
1110 |
+
|
1111 |
+
var data = $highlighted.data('data');
|
1112 |
+
|
1113 |
+
if ($highlighted.attr('data-selected') == 'true') {
|
1114 |
+
self.trigger('close', {});
|
1115 |
+
} else {
|
1116 |
+
self.trigger('select', {
|
1117 |
+
data: data
|
1118 |
+
});
|
1119 |
+
}
|
1120 |
+
});
|
1121 |
+
|
1122 |
+
container.on('results:previous', function () {
|
1123 |
+
var $highlighted = self.getHighlightedResults();
|
1124 |
+
|
1125 |
+
var $options = self.$results.find('[data-selected]');
|
1126 |
+
|
1127 |
+
var currentIndex = $options.index($highlighted);
|
1128 |
+
|
1129 |
+
// If we are already at te top, don't move further
|
1130 |
+
if (currentIndex === 0) {
|
1131 |
+
return;
|
1132 |
+
}
|
1133 |
+
|
1134 |
+
var nextIndex = currentIndex - 1;
|
1135 |
+
|
1136 |
+
// If none are highlighted, highlight the first
|
1137 |
+
if ($highlighted.length === 0) {
|
1138 |
+
nextIndex = 0;
|
1139 |
+
}
|
1140 |
+
|
1141 |
+
var $next = $options.eq(nextIndex);
|
1142 |
+
|
1143 |
+
$next.trigger('mouseenter');
|
1144 |
+
|
1145 |
+
var currentOffset = self.$results.offset().top;
|
1146 |
+
var nextTop = $next.offset().top;
|
1147 |
+
var nextOffset = self.$results.scrollTop() + (nextTop - currentOffset);
|
1148 |
+
|
1149 |
+
if (nextIndex === 0) {
|
1150 |
+
self.$results.scrollTop(0);
|
1151 |
+
} else if (nextTop - currentOffset < 0) {
|
1152 |
+
self.$results.scrollTop(nextOffset);
|
1153 |
+
}
|
1154 |
+
});
|
1155 |
+
|
1156 |
+
container.on('results:next', function () {
|
1157 |
+
var $highlighted = self.getHighlightedResults();
|
1158 |
+
|
1159 |
+
var $options = self.$results.find('[data-selected]');
|
1160 |
+
|
1161 |
+
var currentIndex = $options.index($highlighted);
|
1162 |
+
|
1163 |
+
var nextIndex = currentIndex + 1;
|
1164 |
+
|
1165 |
+
// If we are at the last option, stay there
|
1166 |
+
if (nextIndex >= $options.length) {
|
1167 |
+
return;
|
1168 |
+
}
|
1169 |
+
|
1170 |
+
var $next = $options.eq(nextIndex);
|
1171 |
+
|
1172 |
+
$next.trigger('mouseenter');
|
1173 |
+
|
1174 |
+
var currentOffset = self.$results.offset().top +
|
1175 |
+
self.$results.outerHeight(false);
|
1176 |
+
var nextBottom = $next.offset().top + $next.outerHeight(false);
|
1177 |
+
var nextOffset = self.$results.scrollTop() + nextBottom - currentOffset;
|
1178 |
+
|
1179 |
+
if (nextIndex === 0) {
|
1180 |
+
self.$results.scrollTop(0);
|
1181 |
+
} else if (nextBottom > currentOffset) {
|
1182 |
+
self.$results.scrollTop(nextOffset);
|
1183 |
+
}
|
1184 |
+
});
|
1185 |
+
|
1186 |
+
container.on('results:focus', function (params) {
|
1187 |
+
params.element.addClass('select2-results__option--highlighted').attr('aria-selected', 'true');
|
1188 |
+
self.$results.attr('aria-activedescendant', params.element.attr('id'));
|
1189 |
+
});
|
1190 |
+
|
1191 |
+
container.on('results:message', function (params) {
|
1192 |
+
self.displayMessage(params);
|
1193 |
+
});
|
1194 |
+
|
1195 |
+
if ($.fn.mousewheel) {
|
1196 |
+
this.$results.on('mousewheel', function (e) {
|
1197 |
+
var top = self.$results.scrollTop();
|
1198 |
+
|
1199 |
+
var bottom = self.$results.get(0).scrollHeight - top + e.deltaY;
|
1200 |
+
|
1201 |
+
var isAtTop = e.deltaY > 0 && top - e.deltaY <= 0;
|
1202 |
+
var isAtBottom = e.deltaY < 0 && bottom <= self.$results.height();
|
1203 |
+
|
1204 |
+
if (isAtTop) {
|
1205 |
+
self.$results.scrollTop(0);
|
1206 |
+
|
1207 |
+
e.preventDefault();
|
1208 |
+
e.stopPropagation();
|
1209 |
+
} else if (isAtBottom) {
|
1210 |
+
self.$results.scrollTop(
|
1211 |
+
self.$results.get(0).scrollHeight - self.$results.height()
|
1212 |
+
);
|
1213 |
+
|
1214 |
+
e.preventDefault();
|
1215 |
+
e.stopPropagation();
|
1216 |
+
}
|
1217 |
+
});
|
1218 |
+
}
|
1219 |
+
|
1220 |
+
this.$results.on('mouseup', '.select2-results__option[data-selected]',
|
1221 |
+
function (evt) {
|
1222 |
+
var $this = $(this);
|
1223 |
+
|
1224 |
+
var data = $this.data('data');
|
1225 |
+
|
1226 |
+
if ($this.attr('data-selected') === 'true') {
|
1227 |
+
if (self.options.get('multiple')) {
|
1228 |
+
self.trigger('unselect', {
|
1229 |
+
originalEvent: evt,
|
1230 |
+
data: data
|
1231 |
+
});
|
1232 |
+
} else {
|
1233 |
+
self.trigger('close', {});
|
1234 |
+
}
|
1235 |
+
|
1236 |
+
return;
|
1237 |
+
}
|
1238 |
+
|
1239 |
+
self.trigger('select', {
|
1240 |
+
originalEvent: evt,
|
1241 |
+
data: data
|
1242 |
+
});
|
1243 |
+
});
|
1244 |
+
|
1245 |
+
this.$results.on('mouseenter', '.select2-results__option[data-selected]',
|
1246 |
+
function (evt) {
|
1247 |
+
var data = $(this).data('data');
|
1248 |
+
|
1249 |
+
self.getHighlightedResults()
|
1250 |
+
.removeClass('select2-results__option--highlighted')
|
1251 |
+
.attr('aria-selected', 'false');
|
1252 |
+
|
1253 |
+
self.trigger('results:focus', {
|
1254 |
+
data: data,
|
1255 |
+
element: $(this)
|
1256 |
+
});
|
1257 |
+
});
|
1258 |
+
};
|
1259 |
+
|
1260 |
+
Results.prototype.getHighlightedResults = function () {
|
1261 |
+
var $highlighted = this.$results
|
1262 |
+
.find('.select2-results__option--highlighted');
|
1263 |
+
|
1264 |
+
return $highlighted;
|
1265 |
+
};
|
1266 |
+
|
1267 |
+
Results.prototype.destroy = function () {
|
1268 |
+
this.$results.remove();
|
1269 |
+
};
|
1270 |
+
|
1271 |
+
Results.prototype.ensureHighlightVisible = function () {
|
1272 |
+
var $highlighted = this.getHighlightedResults();
|
1273 |
+
|
1274 |
+
if ($highlighted.length === 0) {
|
1275 |
+
return;
|
1276 |
+
}
|
1277 |
+
|
1278 |
+
var $options = this.$results.find('[data-selected]');
|
1279 |
+
|
1280 |
+
var currentIndex = $options.index($highlighted);
|
1281 |
+
|
1282 |
+
var currentOffset = this.$results.offset().top;
|
1283 |
+
var nextTop = $highlighted.offset().top;
|
1284 |
+
var nextOffset = this.$results.scrollTop() + (nextTop - currentOffset);
|
1285 |
+
|
1286 |
+
var offsetDelta = nextTop - currentOffset;
|
1287 |
+
nextOffset -= $highlighted.outerHeight(false) * 2;
|
1288 |
+
|
1289 |
+
if (currentIndex <= 2) {
|
1290 |
+
this.$results.scrollTop(0);
|
1291 |
+
} else if (offsetDelta > this.$results.outerHeight() || offsetDelta < 0) {
|
1292 |
+
this.$results.scrollTop(nextOffset);
|
1293 |
+
}
|
1294 |
+
};
|
1295 |
+
|
1296 |
+
Results.prototype.template = function (result, container) {
|
1297 |
+
var template = this.options.get('templateResult');
|
1298 |
+
var escapeMarkup = this.options.get('escapeMarkup');
|
1299 |
+
|
1300 |
+
var content = template(result, container);
|
1301 |
+
|
1302 |
+
if (content == null) {
|
1303 |
+
container.style.display = 'none';
|
1304 |
+
} else if (typeof content === 'string') {
|
1305 |
+
container.innerHTML = escapeMarkup(content);
|
1306 |
+
} else {
|
1307 |
+
$(container).append(content);
|
1308 |
+
}
|
1309 |
+
};
|
1310 |
+
|
1311 |
+
return Results;
|
1312 |
+
});
|
1313 |
+
|
1314 |
+
S2.define('select2/keys',[
|
1315 |
+
|
1316 |
+
], function () {
|
1317 |
+
var KEYS = {
|
1318 |
+
BACKSPACE: 8,
|
1319 |
+
TAB: 9,
|
1320 |
+
ENTER: 13,
|
1321 |
+
SHIFT: 16,
|
1322 |
+
CTRL: 17,
|
1323 |
+
ALT: 18,
|
1324 |
+
ESC: 27,
|
1325 |
+
SPACE: 32,
|
1326 |
+
PAGE_UP: 33,
|
1327 |
+
PAGE_DOWN: 34,
|
1328 |
+
END: 35,
|
1329 |
+
HOME: 36,
|
1330 |
+
LEFT: 37,
|
1331 |
+
UP: 38,
|
1332 |
+
RIGHT: 39,
|
1333 |
+
DOWN: 40,
|
1334 |
+
DELETE: 46
|
1335 |
+
};
|
1336 |
+
|
1337 |
+
return KEYS;
|
1338 |
+
});
|
1339 |
+
|
1340 |
+
S2.define('select2/selection/base',[
|
1341 |
+
'jquery',
|
1342 |
+
'../utils',
|
1343 |
+
'../keys'
|
1344 |
+
], function ($, Utils, KEYS) {
|
1345 |
+
function BaseSelection ($element, options) {
|
1346 |
+
this.$element = $element;
|
1347 |
+
this.options = options;
|
1348 |
+
|
1349 |
+
BaseSelection.__super__.constructor.call(this);
|
1350 |
+
}
|
1351 |
+
|
1352 |
+
Utils.Extend(BaseSelection, Utils.Observable);
|
1353 |
+
|
1354 |
+
BaseSelection.prototype.render = function () {
|
1355 |
+
var $selection = $(
|
1356 |
+
'<span class="select2-selection" ' +
|
1357 |
+
' aria-haspopup="true" aria-expanded="false">' +
|
1358 |
+
'</span>'
|
1359 |
+
);
|
1360 |
+
|
1361 |
+
this._tabindex = 0;
|
1362 |
+
|
1363 |
+
if (this.$element.data('old-tabindex') != null) {
|
1364 |
+
this._tabindex = this.$element.data('old-tabindex');
|
1365 |
+
} else if (this.$element.attr('tabindex') != null) {
|
1366 |
+
this._tabindex = this.$element.attr('tabindex');
|
1367 |
+
}
|
1368 |
+
|
1369 |
+
$selection.attr('title', this.$element.attr('title'));
|
1370 |
+
$selection.attr('tabindex', this._tabindex);
|
1371 |
+
|
1372 |
+
this.$selection = $selection;
|
1373 |
+
|
1374 |
+
return $selection;
|
1375 |
+
};
|
1376 |
+
|
1377 |
+
BaseSelection.prototype.bind = function (container, $container) {
|
1378 |
+
var self = this;
|
1379 |
+
|
1380 |
+
var id = container.id + '-container';
|
1381 |
+
var resultsId = container.id + '-results';
|
1382 |
+
var searchHidden = this.options.get('minimumResultsForSearch') === Infinity;
|
1383 |
+
|
1384 |
+
this.container = container;
|
1385 |
+
|
1386 |
+
this.$selection.on('focus', function (evt) {
|
1387 |
+
self.trigger('focus', evt);
|
1388 |
+
});
|
1389 |
+
|
1390 |
+
this.$selection.on('blur', function (evt) {
|
1391 |
+
self._handleBlur(evt);
|
1392 |
+
});
|
1393 |
+
|
1394 |
+
this.$selection.on('keydown', function (evt) {
|
1395 |
+
self.trigger('keypress', evt);
|
1396 |
+
|
1397 |
+
if (evt.which === KEYS.SPACE) {
|
1398 |
+
evt.preventDefault();
|
1399 |
+
}
|
1400 |
+
});
|
1401 |
+
|
1402 |
+
container.on('results:focus', function (params) {
|
1403 |
+
self.$selection.attr('aria-activedescendant', params.data._resultId);
|
1404 |
+
});
|
1405 |
+
|
1406 |
+
container.on('selection:update', function (params) {
|
1407 |
+
self.update(params.data);
|
1408 |
+
});
|
1409 |
+
|
1410 |
+
container.on('open', function () {
|
1411 |
+
// When the dropdown is open, aria-expanded="true"
|
1412 |
+
self.$selection.attr('aria-expanded', 'true');
|
1413 |
+
self.$selection.attr('aria-owns', resultsId);
|
1414 |
+
|
1415 |
+
self._attachCloseHandler(container);
|
1416 |
+
});
|
1417 |
+
|
1418 |
+
container.on('close', function () {
|
1419 |
+
// When the dropdown is closed, aria-expanded="false"
|
1420 |
+
self.$selection.attr('aria-expanded', 'false');
|
1421 |
+
self.$selection.removeAttr('aria-activedescendant');
|
1422 |
+
self.$selection.removeAttr('aria-owns');
|
1423 |
+
|
1424 |
+
// This needs to be delayed as the active element is the body when the
|
1425 |
+
// key is pressed.
|
1426 |
+
window.setTimeout(function () {
|
1427 |
+
self.$selection.focus();
|
1428 |
+
}, 1);
|
1429 |
+
|
1430 |
+
self._detachCloseHandler(container);
|
1431 |
+
});
|
1432 |
+
|
1433 |
+
container.on('enable', function () {
|
1434 |
+
self.$selection.attr('tabindex', self._tabindex);
|
1435 |
+
});
|
1436 |
+
|
1437 |
+
container.on('disable', function () {
|
1438 |
+
self.$selection.attr('tabindex', '-1');
|
1439 |
+
});
|
1440 |
+
};
|
1441 |
+
|
1442 |
+
BaseSelection.prototype._handleBlur = function (evt) {
|
1443 |
+
var self = this;
|
1444 |
+
|
1445 |
+
// This needs to be delayed as the active element is the body when the tab
|
1446 |
+
// key is pressed, possibly along with others.
|
1447 |
+
window.setTimeout(function () {
|
1448 |
+
// Don't trigger `blur` if the focus is still in the selection
|
1449 |
+
if (
|
1450 |
+
(document.activeElement == self.$selection[0]) ||
|
1451 |
+
($.contains(self.$selection[0], document.activeElement))
|
1452 |
+
) {
|
1453 |
+
return;
|
1454 |
+
}
|
1455 |
+
|
1456 |
+
self.trigger('blur', evt);
|
1457 |
+
}, 1);
|
1458 |
+
};
|
1459 |
+
|
1460 |
+
BaseSelection.prototype._attachCloseHandler = function (container) {
|
1461 |
+
var self = this;
|
1462 |
+
|
1463 |
+
$(document.body).on('mousedown.select2.' + container.id, function (e) {
|
1464 |
+
var $target = $(e.target);
|
1465 |
+
|
1466 |
+
var $select = $target.closest('.select2');
|
1467 |
+
|
1468 |
+
var $all = $('.select2.select2-container--open');
|
1469 |
+
|
1470 |
+
$all.each(function () {
|
1471 |
+
var $this = $(this);
|
1472 |
+
|
1473 |
+
if (this == $select[0]) {
|
1474 |
+
return;
|
1475 |
+
}
|
1476 |
+
|
1477 |
+
var $element = $this.data('element');
|
1478 |
+
|
1479 |
+
$element.select2('close');
|
1480 |
+
});
|
1481 |
+
});
|
1482 |
+
};
|
1483 |
+
|
1484 |
+
BaseSelection.prototype._detachCloseHandler = function (container) {
|
1485 |
+
$(document.body).off('mousedown.select2.' + container.id);
|
1486 |
+
};
|
1487 |
+
|
1488 |
+
BaseSelection.prototype.position = function ($selection, $container) {
|
1489 |
+
var $selectionContainer = $container.find('.selection');
|
1490 |
+
$selectionContainer.append($selection);
|
1491 |
+
};
|
1492 |
+
|
1493 |
+
BaseSelection.prototype.destroy = function () {
|
1494 |
+
this._detachCloseHandler(this.container);
|
1495 |
+
};
|
1496 |
+
|
1497 |
+
BaseSelection.prototype.update = function (data) {
|
1498 |
+
throw new Error('The `update` method must be defined in child classes.');
|
1499 |
+
};
|
1500 |
+
|
1501 |
+
return BaseSelection;
|
1502 |
+
});
|
1503 |
+
|
1504 |
+
S2.define('select2/selection/single',[
|
1505 |
+
'jquery',
|
1506 |
+
'./base',
|
1507 |
+
'../utils',
|
1508 |
+
'../keys'
|
1509 |
+
], function ($, BaseSelection, Utils, KEYS) {
|
1510 |
+
function SingleSelection () {
|
1511 |
+
SingleSelection.__super__.constructor.apply(this, arguments);
|
1512 |
+
}
|
1513 |
+
|
1514 |
+
Utils.Extend(SingleSelection, BaseSelection);
|
1515 |
+
|
1516 |
+
SingleSelection.prototype.render = function () {
|
1517 |
+
var $selection = SingleSelection.__super__.render.call(this);
|
1518 |
+
|
1519 |
+
$selection.addClass('select2-selection--single');
|
1520 |
+
|
1521 |
+
$selection.html(
|
1522 |
+
'<span class="select2-selection__rendered"></span>' +
|
1523 |
+
'<span class="select2-selection__arrow" role="presentation">' +
|
1524 |
+
'<b role="presentation"></b>' +
|
1525 |
+
'</span>'
|
1526 |
+
);
|
1527 |
+
|
1528 |
+
return $selection;
|
1529 |
+
};
|
1530 |
+
|
1531 |
+
SingleSelection.prototype.bind = function (container, $container) {
|
1532 |
+
var self = this;
|
1533 |
+
|
1534 |
+
SingleSelection.__super__.bind.apply(this, arguments);
|
1535 |
+
|
1536 |
+
var id = container.id + '-container';
|
1537 |
+
|
1538 |
+
this.$selection.find('.select2-selection__rendered')
|
1539 |
+
.attr('id', id)
|
1540 |
+
.attr('role', 'textbox')
|
1541 |
+
.attr('aria-readonly', 'true');
|
1542 |
+
this.$selection.attr('aria-labelledby', id);
|
1543 |
+
|
1544 |
+
// This makes single non-search selects work in screen readers. If it causes problems elsewhere, remove.
|
1545 |
+
this.$selection.attr('role', 'combobox');
|
1546 |
+
|
1547 |
+
this.$selection.on('mousedown', function (evt) {
|
1548 |
+
// Only respond to left clicks
|
1549 |
+
if (evt.which !== 1) {
|
1550 |
+
return;
|
1551 |
+
}
|
1552 |
+
|
1553 |
+
self.trigger('toggle', {
|
1554 |
+
originalEvent: evt
|
1555 |
+
});
|
1556 |
+
});
|
1557 |
+
|
1558 |
+
this.$selection.on('focus', function (evt) {
|
1559 |
+
// User focuses on the container
|
1560 |
+
});
|
1561 |
+
|
1562 |
+
this.$selection.on('keydown', function (evt) {
|
1563 |
+
// If user starts typing an alphanumeric key on the keyboard, open if not opened.
|
1564 |
+
if (!container.isOpen() && evt.which >= 48 && evt.which <= 90) {
|
1565 |
+
container.open();
|
1566 |
+
}
|
1567 |
+
});
|
1568 |
+
|
1569 |
+
this.$selection.on('blur', function (evt) {
|
1570 |
+
// User exits the container
|
1571 |
+
});
|
1572 |
+
|
1573 |
+
container.on('focus', function (evt) {
|
1574 |
+
if (!container.isOpen()) {
|
1575 |
+
self.$selection.focus();
|
1576 |
+
}
|
1577 |
+
});
|
1578 |
+
|
1579 |
+
container.on('selection:update', function (params) {
|
1580 |
+
self.update(params.data);
|
1581 |
+
});
|
1582 |
+
};
|
1583 |
+
|
1584 |
+
SingleSelection.prototype.clear = function () {
|
1585 |
+
this.$selection.find('.select2-selection__rendered').empty();
|
1586 |
+
};
|
1587 |
+
|
1588 |
+
SingleSelection.prototype.display = function (data, container) {
|
1589 |
+
var template = this.options.get('templateSelection');
|
1590 |
+
var escapeMarkup = this.options.get('escapeMarkup');
|
1591 |
+
|
1592 |
+
return escapeMarkup(template(data, container));
|
1593 |
+
};
|
1594 |
+
|
1595 |
+
SingleSelection.prototype.selectionContainer = function () {
|
1596 |
+
return $('<span></span>');
|
1597 |
+
};
|
1598 |
+
|
1599 |
+
SingleSelection.prototype.update = function (data) {
|
1600 |
+
if (data.length === 0) {
|
1601 |
+
this.clear();
|
1602 |
+
return;
|
1603 |
+
}
|
1604 |
+
|
1605 |
+
var selection = data[0];
|
1606 |
+
|
1607 |
+
var $rendered = this.$selection.find('.select2-selection__rendered');
|
1608 |
+
var formatted = this.display(selection, $rendered);
|
1609 |
+
|
1610 |
+
$rendered.empty().append(formatted);
|
1611 |
+
$rendered.prop('title', selection.title || selection.text);
|
1612 |
+
};
|
1613 |
+
|
1614 |
+
return SingleSelection;
|
1615 |
+
});
|
1616 |
+
|
1617 |
+
S2.define('select2/selection/multiple',[
|
1618 |
+
'jquery',
|
1619 |
+
'./base',
|
1620 |
+
'../utils'
|
1621 |
+
], function ($, BaseSelection, Utils) {
|
1622 |
+
function MultipleSelection ($element, options) {
|
1623 |
+
MultipleSelection.__super__.constructor.apply(this, arguments);
|
1624 |
+
}
|
1625 |
+
|
1626 |
+
Utils.Extend(MultipleSelection, BaseSelection);
|
1627 |
+
|
1628 |
+
MultipleSelection.prototype.render = function () {
|
1629 |
+
var $selection = MultipleSelection.__super__.render.call(this);
|
1630 |
+
|
1631 |
+
$selection.addClass('select2-selection--multiple');
|
1632 |
+
|
1633 |
+
$selection.html(
|
1634 |
+
'<ul class="select2-selection__rendered" aria-live="polite" aria-relevant="additions removals" aria-atomic="true"></ul>'
|
1635 |
+
);
|
1636 |
+
|
1637 |
+
return $selection;
|
1638 |
+
};
|
1639 |
+
|
1640 |
+
MultipleSelection.prototype.bind = function (container, $container) {
|
1641 |
+
var self = this;
|
1642 |
+
|
1643 |
+
MultipleSelection.__super__.bind.apply(this, arguments);
|
1644 |
+
|
1645 |
+
this.$selection.on('click', function (evt) {
|
1646 |
+
self.trigger('toggle', {
|
1647 |
+
originalEvent: evt
|
1648 |
+
});
|
1649 |
+
});
|
1650 |
+
|
1651 |
+
this.$selection.on(
|
1652 |
+
'click',
|
1653 |
+
'.select2-selection__choice__remove',
|
1654 |
+
function (evt) {
|
1655 |
+
// Ignore the event if it is disabled
|
1656 |
+
if (self.options.get('disabled')) {
|
1657 |
+
return;
|
1658 |
+
}
|
1659 |
+
|
1660 |
+
var $remove = $(this);
|
1661 |
+
var $selection = $remove.parent();
|
1662 |
+
|
1663 |
+
var data = $selection.data('data');
|
1664 |
+
|
1665 |
+
self.trigger('unselect', {
|
1666 |
+
originalEvent: evt,
|
1667 |
+
data: data
|
1668 |
+
});
|
1669 |
+
}
|
1670 |
+
);
|
1671 |
+
};
|
1672 |
+
|
1673 |
+
MultipleSelection.prototype.clear = function () {
|
1674 |
+
this.$selection.find('.select2-selection__rendered').empty();
|
1675 |
+
};
|
1676 |
+
|
1677 |
+
MultipleSelection.prototype.display = function (data, container) {
|
1678 |
+
var template = this.options.get('templateSelection');
|
1679 |
+
var escapeMarkup = this.options.get('escapeMarkup');
|
1680 |
+
|
1681 |
+
return escapeMarkup(template(data, container));
|
1682 |
+
};
|
1683 |
+
|
1684 |
+
MultipleSelection.prototype.selectionContainer = function () {
|
1685 |
+
var $container = $(
|
1686 |
+
'<li class="select2-selection__choice">' +
|
1687 |
+
'<span class="select2-selection__choice__remove" role="presentation" aria-hidden="true">' +
|
1688 |
+
'×' +
|
1689 |
+
'</span>' +
|
1690 |
+
'</li>'
|
1691 |
+
);
|
1692 |
+
|
1693 |
+
return $container;
|
1694 |
+
};
|
1695 |
+
|
1696 |
+
MultipleSelection.prototype.update = function (data) {
|
1697 |
+
this.clear();
|
1698 |
+
|
1699 |
+
if (data.length === 0) {
|
1700 |
+
return;
|
1701 |
+
}
|
1702 |
+
|
1703 |
+
var $selections = [];
|
1704 |
+
|
1705 |
+
for (var d = 0; d < data.length; d++) {
|
1706 |
+
var selection = data[d];
|
1707 |
+
|
1708 |
+
var $selection = this.selectionContainer();
|
1709 |
+
var formatted = this.display(selection, $selection);
|
1710 |
+
|
1711 |
+
$selection.append(formatted);
|
1712 |
+
$selection.prop('title', selection.title || selection.text);
|
1713 |
+
|
1714 |
+
$selection.data('data', selection);
|
1715 |
+
|
1716 |
+
$selections.push($selection);
|
1717 |
+
}
|
1718 |
+
|
1719 |
+
var $rendered = this.$selection.find('.select2-selection__rendered');
|
1720 |
+
|
1721 |
+
Utils.appendMany($rendered, $selections);
|
1722 |
+
};
|
1723 |
+
|
1724 |
+
return MultipleSelection;
|
1725 |
+
});
|
1726 |
+
|
1727 |
+
S2.define('select2/selection/placeholder',[
|
1728 |
+
'../utils'
|
1729 |
+
], function (Utils) {
|
1730 |
+
function Placeholder (decorated, $element, options) {
|
1731 |
+
this.placeholder = this.normalizePlaceholder(options.get('placeholder'));
|
1732 |
+
|
1733 |
+
decorated.call(this, $element, options);
|
1734 |
+
}
|
1735 |
+
|
1736 |
+
Placeholder.prototype.normalizePlaceholder = function (_, placeholder) {
|
1737 |
+
if (typeof placeholder === 'string') {
|
1738 |
+
placeholder = {
|
1739 |
+
id: '',
|
1740 |
+
text: placeholder
|
1741 |
+
};
|
1742 |
+
}
|
1743 |
+
|
1744 |
+
return placeholder;
|
1745 |
+
};
|
1746 |
+
|
1747 |
+
Placeholder.prototype.createPlaceholder = function (decorated, placeholder) {
|
1748 |
+
var $placeholder = this.selectionContainer();
|
1749 |
+
|
1750 |
+
$placeholder.html(this.display(placeholder));
|
1751 |
+
$placeholder.addClass('select2-selection__placeholder')
|
1752 |
+
.removeClass('select2-selection__choice');
|
1753 |
+
|
1754 |
+
return $placeholder;
|
1755 |
+
};
|
1756 |
+
|
1757 |
+
Placeholder.prototype.update = function (decorated, data) {
|
1758 |
+
var singlePlaceholder = (
|
1759 |
+
data.length == 1 && data[0].id != this.placeholder.id
|
1760 |
+
);
|
1761 |
+
var multipleSelections = data.length > 1;
|
1762 |
+
|
1763 |
+
if (multipleSelections || singlePlaceholder) {
|
1764 |
+
return decorated.call(this, data);
|
1765 |
+
}
|
1766 |
+
|
1767 |
+
this.clear();
|
1768 |
+
|
1769 |
+
var $placeholder = this.createPlaceholder(this.placeholder);
|
1770 |
+
|
1771 |
+
this.$selection.find('.select2-selection__rendered').append($placeholder);
|
1772 |
+
};
|
1773 |
+
|
1774 |
+
return Placeholder;
|
1775 |
+
});
|
1776 |
+
|
1777 |
+
S2.define('select2/selection/allowClear',[
|
1778 |
+
'jquery',
|
1779 |
+
'../keys'
|
1780 |
+
], function ($, KEYS) {
|
1781 |
+
function AllowClear () { }
|
1782 |
+
|
1783 |
+
AllowClear.prototype.bind = function (decorated, container, $container) {
|
1784 |
+
var self = this;
|
1785 |
+
|
1786 |
+
decorated.call(this, container, $container);
|
1787 |
+
|
1788 |
+
if (this.placeholder == null) {
|
1789 |
+
if (this.options.get('debug') && window.console && console.error) {
|
1790 |
+
console.error(
|
1791 |
+
'Select2: The `allowClear` option should be used in combination ' +
|
1792 |
+
'with the `placeholder` option.'
|
1793 |
+
);
|
1794 |
+
}
|
1795 |
+
}
|
1796 |
+
|
1797 |
+
this.$selection.on('mousedown', '.select2-selection__clear',
|
1798 |
+
function (evt) {
|
1799 |
+
self._handleClear(evt);
|
1800 |
+
});
|
1801 |
+
|
1802 |
+
container.on('keypress', function (evt) {
|
1803 |
+
self._handleKeyboardClear(evt, container);
|
1804 |
+
});
|
1805 |
+
};
|
1806 |
+
|
1807 |
+
AllowClear.prototype._handleClear = function (_, evt) {
|
1808 |
+
// Ignore the event if it is disabled
|
1809 |
+
if (this.options.get('disabled')) {
|
1810 |
+
return;
|
1811 |
+
}
|
1812 |
+
|
1813 |
+
var $clear = this.$selection.find('.select2-selection__clear');
|
1814 |
+
|
1815 |
+
// Ignore the event if nothing has been selected
|
1816 |
+
if ($clear.length === 0) {
|
1817 |
+
return;
|
1818 |
+
}
|
1819 |
+
|
1820 |
+
evt.stopPropagation();
|
1821 |
+
|
1822 |
+
var data = $clear.data('data');
|
1823 |
+
|
1824 |
+
for (var d = 0; d < data.length; d++) {
|
1825 |
+
var unselectData = {
|
1826 |
+
data: data[d]
|
1827 |
+
};
|
1828 |
+
|
1829 |
+
// Trigger the `unselect` event, so people can prevent it from being
|
1830 |
+
// cleared.
|
1831 |
+
this.trigger('unselect', unselectData);
|
1832 |
+
|
1833 |
+
// If the event was prevented, don't clear it out.
|
1834 |
+
if (unselectData.prevented) {
|
1835 |
+
return;
|
1836 |
+
}
|
1837 |
+
}
|
1838 |
+
|
1839 |
+
this.$element.val(this.placeholder.id).trigger('change');
|
1840 |
+
|
1841 |
+
this.trigger('toggle', {});
|
1842 |
+
};
|
1843 |
+
|
1844 |
+
AllowClear.prototype._handleKeyboardClear = function (_, evt, container) {
|
1845 |
+
if (container.isOpen()) {
|
1846 |
+
return;
|
1847 |
+
}
|
1848 |
+
|
1849 |
+
if (evt.which == KEYS.DELETE || evt.which == KEYS.BACKSPACE) {
|
1850 |
+
this._handleClear(evt);
|
1851 |
+
}
|
1852 |
+
};
|
1853 |
+
|
1854 |
+
AllowClear.prototype.update = function (decorated, data) {
|
1855 |
+
decorated.call(this, data);
|
1856 |
+
|
1857 |
+
if (this.$selection.find('.select2-selection__placeholder').length > 0 ||
|
1858 |
+
data.length === 0) {
|
1859 |
+
return;
|
1860 |
+
}
|
1861 |
+
|
1862 |
+
var $remove = $(
|
1863 |
+
'<span class="select2-selection__clear">' +
|
1864 |
+
'×' +
|
1865 |
+
'</span>'
|
1866 |
+
);
|
1867 |
+
$remove.data('data', data);
|
1868 |
+
|
1869 |
+
this.$selection.find('.select2-selection__rendered').prepend($remove);
|
1870 |
+
};
|
1871 |
+
|
1872 |
+
return AllowClear;
|
1873 |
+
});
|
1874 |
+
|
1875 |
+
S2.define('select2/selection/search',[
|
1876 |
+
'jquery',
|
1877 |
+
'../utils',
|
1878 |
+
'../keys'
|
1879 |
+
], function ($, Utils, KEYS) {
|
1880 |
+
function Search (decorated, $element, options) {
|
1881 |
+
decorated.call(this, $element, options);
|
1882 |
+
}
|
1883 |
+
|
1884 |
+
Search.prototype.render = function (decorated) {
|
1885 |
+
var $search = $(
|
1886 |
+
'<li class="select2-search select2-search--inline">' +
|
1887 |
+
'<input class="select2-search__field" type="text" tabindex="-1"' +
|
1888 |
+
' autocomplete="off" autocorrect="off" autocapitalize="off"' +
|
1889 |
+
' spellcheck="false" role="textbox" aria-autocomplete="list" />' +
|
1890 |
+
'</li>'
|
1891 |
+
);
|
1892 |
+
|
1893 |
+
this.$searchContainer = $search;
|
1894 |
+
this.$search = $search.find('input');
|
1895 |
+
|
1896 |
+
var $rendered = decorated.call(this);
|
1897 |
+
|
1898 |
+
this._transferTabIndex();
|
1899 |
+
|
1900 |
+
return $rendered;
|
1901 |
+
};
|
1902 |
+
|
1903 |
+
Search.prototype.bind = function (decorated, container, $container) {
|
1904 |
+
var self = this;
|
1905 |
+
var resultsId = container.id + '-results';
|
1906 |
+
|
1907 |
+
decorated.call(this, container, $container);
|
1908 |
+
|
1909 |
+
container.on('open', function () {
|
1910 |
+
self.$search.attr('aria-owns', resultsId);
|
1911 |
+
self.$search.trigger('focus');
|
1912 |
+
});
|
1913 |
+
|
1914 |
+
container.on('close', function () {
|
1915 |
+
self.$search.val('');
|
1916 |
+
self.$search.removeAttr('aria-activedescendant');
|
1917 |
+
self.$search.removeAttr('aria-owns');
|
1918 |
+
self.$search.trigger('focus');
|
1919 |
+
});
|
1920 |
+
|
1921 |
+
container.on('enable', function () {
|
1922 |
+
self.$search.prop('disabled', false);
|
1923 |
+
|
1924 |
+
self._transferTabIndex();
|
1925 |
+
});
|
1926 |
+
|
1927 |
+
container.on('disable', function () {
|
1928 |
+
self.$search.prop('disabled', true);
|
1929 |
+
});
|
1930 |
+
|
1931 |
+
container.on('focus', function (evt) {
|
1932 |
+
self.$search.trigger('focus');
|
1933 |
+
});
|
1934 |
+
|
1935 |
+
container.on('results:focus', function (params) {
|
1936 |
+
self.$search.attr('aria-activedescendant', params.data._resultId);
|
1937 |
+
});
|
1938 |
+
|
1939 |
+
this.$selection.on('focusin', '.select2-search--inline', function (evt) {
|
1940 |
+
self.trigger('focus', evt);
|
1941 |
+
});
|
1942 |
+
|
1943 |
+
this.$selection.on('focusout', '.select2-search--inline', function (evt) {
|
1944 |
+
self._handleBlur(evt);
|
1945 |
+
});
|
1946 |
+
|
1947 |
+
this.$selection.on('keydown', '.select2-search--inline', function (evt) {
|
1948 |
+
evt.stopPropagation();
|
1949 |
+
|
1950 |
+
self.trigger('keypress', evt);
|
1951 |
+
|
1952 |
+
self._keyUpPrevented = evt.isDefaultPrevented();
|
1953 |
+
|
1954 |
+
var key = evt.which;
|
1955 |
+
|
1956 |
+
if (key === KEYS.BACKSPACE && self.$search.val() === '') {
|
1957 |
+
var $previousChoice = self.$searchContainer
|
1958 |
+
.prev('.select2-selection__choice');
|
1959 |
+
|
1960 |
+
if ($previousChoice.length > 0) {
|
1961 |
+
var item = $previousChoice.data('data');
|
1962 |
+
|
1963 |
+
self.searchRemoveChoice(item);
|
1964 |
+
|
1965 |
+
evt.preventDefault();
|
1966 |
+
}
|
1967 |
+
}
|
1968 |
+
});
|
1969 |
+
|
1970 |
+
// Try to detect the IE version should the `documentMode` property that
|
1971 |
+
// is stored on the document. This is only implemented in IE and is
|
1972 |
+
// slightly cleaner than doing a user agent check.
|
1973 |
+
// This property is not available in Edge, but Edge also doesn't have
|
1974 |
+
// this bug.
|
1975 |
+
var msie = document.documentMode;
|
1976 |
+
var disableInputEvents = msie && msie <= 11;
|
1977 |
+
|
1978 |
+
// Workaround for browsers which do not support the `input` event
|
1979 |
+
// This will prevent double-triggering of events for browsers which support
|
1980 |
+
// both the `keyup` and `input` events.
|
1981 |
+
this.$selection.on(
|
1982 |
+
'input.searchcheck',
|
1983 |
+
'.select2-search--inline',
|
1984 |
+
function (evt) {
|
1985 |
+
// IE will trigger the `input` event when a placeholder is used on a
|
1986 |
+
// search box. To get around this issue, we are forced to ignore all
|
1987 |
+
// `input` events in IE and keep using `keyup`.
|
1988 |
+
if (disableInputEvents) {
|
1989 |
+
self.$selection.off('input.search input.searchcheck');
|
1990 |
+
return;
|
1991 |
+
}
|
1992 |
+
|
1993 |
+
// Unbind the duplicated `keyup` event
|
1994 |
+
self.$selection.off('keyup.search');
|
1995 |
+
}
|
1996 |
+
);
|
1997 |
+
|
1998 |
+
this.$selection.on(
|
1999 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|