Advanced AJAX Product Filters - Version 1.5.0.6

Version Description

  • Enhancement - Sub-attribute for Nested filters add-on
  • Fix - Replacement for user custom CSS
  • Fix - Text style with image/color
  • Fix - Slash for canonical URL
Download this release

Release Info

Developer RazyRx
Plugin Icon wp plugin Advanced AJAX Product Filters
Version 1.5.0.6
Comparing to
See all releases

Code changes from version 1.5.0.5 to 1.5.0.6

addons/deprecated_filters/deprecated_filters.php CHANGED
@@ -34,6 +34,7 @@ class BeRocket_aapf_deprecated_compat_addon extends BeRocket_framework_addon_lib
34
  add_filter( 'berocket_aapf_group_before_all', array($this, 'search_box_before_group_start'), 11, 2 );
35
  add_filter( 'berocket_aapf_group_after_all', array($this, 'search_box_after_group_end'), 9, 2 );
36
  add_filter( 'BeRocket_AAPF_getall_Template_Styles', array($this, 'remove_new_templates'), 9000000 );
 
37
  update_option('braapf_new_filters_converted', false);
38
  }
39
  function wp() {
@@ -480,22 +481,39 @@ class BeRocket_aapf_deprecated_compat_addon extends BeRocket_framework_addon_lib
480
  $sb_style .= 'width:'.$search_box_width.'%;display:inline-block;padding: 4px;';
481
  }
482
  $search_box_button_class = 'search_box_button_class_'.rand();
483
- if ( $search_box_style['search_position'] == 'before' || $search_box_style['search_position'] == 'before_after' ) {
484
  echo '<div style="'.$sb_style.'"><a data-url="'.$search_box_url.'" class="'.$search_box_button_class.' berocket_search_box_button">'.$search_box_style['search_text'].'</a></div>';
485
  }
486
  $custom_vars['search_box_button_class'] = $search_box_button_class;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
487
  }
488
  return $custom_vars;
489
  }
490
  function search_box_after_group_end($custom_vars, $filters) {
491
  extract($custom_vars);
492
  if( ! empty($filters['search_box']) ) {
493
- if ( $search_box_style['search_position'] == 'after' || $search_box_style['search_position'] == 'before_after' ) {
494
  echo '<div style="'.$sb_style.'">
495
  <a data-url="'.$search_box_url.'"
496
  class="'.$search_box_button_class.' berocket_search_box_button">
497
  '.$search_box_style['search_text'].'</a></div>';
498
  }
 
499
  }
500
  return $custom_vars;
501
  }
@@ -538,5 +556,10 @@ class BeRocket_aapf_deprecated_compat_addon extends BeRocket_framework_addon_lib
538
  function remove_new_templates() {
539
  return array();
540
  }
 
 
 
 
 
541
  }
542
  new BeRocket_aapf_deprecated_compat_addon();
34
  add_filter( 'berocket_aapf_group_before_all', array($this, 'search_box_before_group_start'), 11, 2 );
35
  add_filter( 'berocket_aapf_group_after_all', array($this, 'search_box_after_group_end'), 9, 2 );
36
  add_filter( 'BeRocket_AAPF_getall_Template_Styles', array($this, 'remove_new_templates'), 9000000 );
37
+ add_filter( 'braapf_custom_user_css_replacement', array($this, 'custom_user_css_replacement') );
38
  update_option('braapf_new_filters_converted', false);
39
  }
40
  function wp() {
481
  $sb_style .= 'width:'.$search_box_width.'%;display:inline-block;padding: 4px;';
482
  }
483
  $search_box_button_class = 'search_box_button_class_'.rand();
484
+ if ( $search_box_style['search_position'] != 'after' ) {
485
  echo '<div style="'.$sb_style.'"><a data-url="'.$search_box_url.'" class="'.$search_box_button_class.' berocket_search_box_button">'.$search_box_style['search_text'].'</a></div>';
486
  }
487
  $custom_vars['search_box_button_class'] = $search_box_button_class;
488
+ $sbb_style = '';
489
+ if( ! empty($search_box_style['button_background']) ) {
490
+ $sbb_style .= 'background-color:'.($search_box_style['button_background'][0] == '#' ? $search_box_style['button_background'] : '#'.$search_box_style['button_background']).';';
491
+ }
492
+ if( ! empty($search_box_style['text_color']) ) {
493
+ $sbb_style .= 'color:'.($search_box_style['text_color'][0] == '#' ? $search_box_style['text_color'] : '#'.$search_box_style['text_color']).';';
494
+ }
495
+ $sbb_style_hover = '';
496
+ if( ! empty($search_box_style['button_background_over']) ) {
497
+ $sbb_style_hover .= 'background-color:'.($search_box_style['button_background_over'][0] == '#' ? $search_box_style['button_background_over'] : '#'.$search_box_style['button_background_over']).';';
498
+ }
499
+ if( ! empty($search_box_style['text_color_over']) ) {
500
+ $sbb_style_hover .= 'color:'.($search_box_style['text_color_over'][0] == '#' ? $search_box_style['text_color_over'] : '#'.$search_box_style['text_color_over']).';';
501
+ }
502
+ $custom_vars['sbb_style'] = $sbb_style;
503
+ $custom_vars['sbb_style_hover'] = $sbb_style_hover;
504
  }
505
  return $custom_vars;
506
  }
507
  function search_box_after_group_end($custom_vars, $filters) {
508
  extract($custom_vars);
509
  if( ! empty($filters['search_box']) ) {
510
+ if ( $search_box_style['search_position'] != 'before' ) {
511
  echo '<div style="'.$sb_style.'">
512
  <a data-url="'.$search_box_url.'"
513
  class="'.$search_box_button_class.' berocket_search_box_button">
514
  '.$search_box_style['search_text'].'</a></div>';
515
  }
516
+ echo '<style>.'.$search_box_button_class.'{'.$sbb_style.'}.'.$search_box_button_class.':hover{'.$sbb_style_hover.'}</style>';
517
  }
518
  return $custom_vars;
519
  }
556
  function remove_new_templates() {
557
  return array();
558
  }
559
+ function custom_user_css_replacement($replace = array()) {
560
+ $replace['#widget#'] = '.berocket_aapf_widget';
561
+ $replace['#widget-title#'] = '.berocket_aapf_widget-title';
562
+ return $replace;
563
+ }
564
  }
565
  new BeRocket_aapf_deprecated_compat_addon();
addons/deprecated_filters/filter_post.php CHANGED
@@ -107,6 +107,7 @@ if( ! empty($instance['version']) ) {
107
  break;
108
  }
109
  }
 
110
  foreach($filter_type_array as $filter_type_key => $filter_type_val) {
111
  echo '<option';
112
  foreach($filter_type_val as $data_key => $data_val) {
107
  break;
108
  }
109
  }
110
+ if( isset($filter_type_array['price']) ) unset($filter_type_array['price']);
111
  foreach($filter_type_array as $filter_type_key => $filter_type_val) {
112
  echo '<option';
113
  foreach($filter_type_val as $data_key => $data_val) {
addons/filtering_conditions/add_conditions.php CHANGED
@@ -10,16 +10,27 @@ class BeRocket_filtering_conditions_AAPF extends BeRocket_conditions {
10
  return $conditions;
11
  }
12
  public static function condition_attribute_filtering($html, $name, $options) {
13
- return self::condition_product_attribute($html, $name, $options);
 
 
14
  }
15
 
16
  public static function check_condition_attribute_filtering($show, $condition, $additional) {
17
  $selected_terms = br_get_selected_term($condition['attribute']);
18
- $show = ( count($selected_terms) && (
19
- $condition['values'][$condition['attribute']] === ''
20
- ||
21
- in_array($condition['values'][$condition['attribute']], $selected_terms)
22
- ) );
 
 
 
 
 
 
 
 
 
23
  if( $condition['equal'] == 'not_equal' ) {
24
  $show = ! $show;
25
  }
10
  return $conditions;
11
  }
12
  public static function condition_attribute_filtering($html, $name, $options) {
13
+ $html = self::condition_product_attribute($html, $name, $options);
14
+ $html .= '<label><input type="checkbox" '.(empty($options['is_example']) ? '' : 'data-').'name="' . $name . '[include_sub_attr]"'.(empty($options['include_sub_attr']) ? '' : ' checked').' value="1">'.__('Include sub-attributes', 'BeRocket_AJAX_domain').'</label>';
15
+ return $html;
16
  }
17
 
18
  public static function check_condition_attribute_filtering($show, $condition, $additional) {
19
  $selected_terms = br_get_selected_term($condition['attribute']);
20
+ $show = count($selected_terms) > 0;
21
+ if( $show && $condition['values'][$condition['attribute']] !== '' ) {
22
+ $show = in_array($condition['values'][$condition['attribute']], $selected_terms);
23
+ if( ! $show && ! empty($condition['include_sub_attr']) ) {
24
+ $terms = get_term_children($condition['values'][$condition['attribute']], $condition['attribute']);
25
+ $show = false;
26
+ foreach($terms as $term) {
27
+ if ( in_array($term, $selected_terms) ) {
28
+ $show = true;
29
+ break;
30
+ }
31
+ }
32
+ }
33
+ }
34
  if( $condition['equal'] == 'not_equal' ) {
35
  $show = ! $show;
36
  }
assets/frontend/css/fullmain.min.css CHANGED
@@ -1,4 +1,4 @@
1
- .bapf_sfilter .bapf_button,.bapf_sfilter label{cursor:pointer;display:inline-block!important}.bapf_sfilter ul li{list-style:none!important;margin:0!important;padding:0!important;max-width:100%}.bapf_sfilter .bapf_body ul li ul{margin-left:15px}.bapf_slidr_main.ui-widget-content,.berocket_filter_price_slider.ui-widget-content{background:#b0b5b9;border:0;border-radius:0;height:4px;padding:0}.bapf_slidr_main.ui-widget-content .ui-slider-range,.berocket_filter_price_slider.ui-widget-content .ui-slider-range{background:#000}.slide.default .bapf_slidr_main.ui-widget-content .ui-slider-range,.slide.default .berocket_filter_price_slider.ui-widget-content .ui-slider-range{background:#222}.slide.default .bapf_slidr_main.ui-widget-content,.slide.default .berocket_filter_price_slider.ui-widget-content{height:4px;border:1px solid #555;font-size:10px}.bapf_slidr_main.ui-widget-content .ui-slider-handle,.berocket_filter_price_slider.ui-widget-content .ui-slider-handle,.slide.default .bapf_slidr_main .ui-state-default,.slide.default .bapf_slidr_main .ui-widget-header .ui-state-default,.slide.default .bapf_slidr_main.ui-widget-content .ui-state-default,.slide.default .berocket_filter_price_slider .ui-state-default,.slide.default .berocket_filter_price_slider .ui-widget-header .ui-state-default,.slide.default .berocket_filter_price_slider.ui-widget-content .ui-state-default{background:#ddd;font-size:14px;width:1em;height:1em;border:1px solid #555;top:-6px;border-radius:2em}.berocket_aapf_widget li.slider div.slide{clear:both;height:auto;text-align:right;line-height:0}.bapf_slidr_jqrui .bapf_from,.ui-slider{text-align:left}.ui-slider{position:relative}.ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1.2em;height:1.2em;cursor:pointer;-ms-touch-action:none;touch-action:none}.ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background-position:0 0}.ui-slider.ui-state-disabled .ui-slider-handle,.ui-slider.ui-state-disabled .ui-slider-range{filter:inherit}.ui-slider-horizontal{height:.8em}.ui-slider-horizontal .ui-slider-handle{top:-.3em;margin-left:-.6em}.bapf_slidr_main>a:last-child{margin-left:-12px}.ui-slider-horizontal .ui-slider-range{top:0;height:100%}.ui-slider-horizontal .ui-slider-range-min{left:0}.ui-slider-horizontal .ui-slider-range-max{right:0}.ui-slider-vertical{width:.8em;height:100px}.ui-slider-vertical .ui-slider-handle{left:-.3em;margin-left:0;margin-bottom:-.6em}.ui-slider-vertical .ui-slider-range{left:0;width:100%}.berocket_single_filter_widget.berocket_hidden_clickable.berocket_hidden_clickable_left .bapf_sfilter.bapf_ccolaps .bapf_body,.berocket_single_filter_widget.berocket_hidden_clickable.berocket_hidden_clickable_left .berocket_aapf_widget{left:0!important}.ui-slider-vertical .ui-slider-range-min{bottom:0}.ui-slider-vertical .ui-slider-range-max{top:0}.slide .ui-corner-all,.slide .ui-corner-bottom,.slide .ui-corner-br,.slide .ui-corner-right{border-bottom-right-radius:4px}.slide .ui-corner-all,.slide .ui-corner-bl,.slide .ui-corner-bottom,.slide .ui-corner-left{border-bottom-left-radius:4px}.slide .ui-corner-all,.slide .ui-corner-right,.slide .ui-corner-top,.slide .ui-corner-tr{border-top-right-radius:4px}.slide .ui-corner-all,.slide .ui-corner-left,.slide .ui-corner-tl,.slide .ui-corner-top{border-top-left-radius:4px}ul.berocket_aapf_widget li.slider>span{cursor:initial}ul.berocket_aapf_widget li.slider .bapf_slidr_main{cursor:pointer}.slide .ui-widget-content{background:#fff;border:1px solid #aaa;color:#222}.slide .ui-state-default,.slide .ui-widget-content .ui-state-default,.slide .ui-widget-header .ui-state-default{background:#e6e6e6;border:1px solid #d3d3d3;color:#555;font-weight:400}.ui-widget.ui-datepicker{font-size:14px;z-index:9000!important}.bapf_sfilter .ui-button,.bapf_sfilter .ui-state-default,.bapf_sfilter .ui-widget-content .ui-state-default,.bapf_sfilter .ui-widget-header .ui-state-default,.bapf_sfilter .ui-widget.ui-widget-content,html .bapf_sfilter .ui-button.ui-state-disabled:active,html .bapf_sfilter .ui-button.ui-state-disabled:hover{border:0}.bapf_slidr_jqrui .bapf_slidr_all:after{content:"";display:block;clear:both}.bapf_slidr_jqrui .bapf_slidr_main{margin-bottom:10px}.bapf_slidr_jqrui .bapf_from,.bapf_slidr_jqrui .bapf_to{width:49%;display:inline-block;margin-bottom:10px;vertical-align:middle}.bapf_slidr_jqrui .bapf_from input,.bapf_slidr_jqrui .bapf_to input{width:50%;vertical-align:middle;font-size:1em;padding:0;margin:0;line-height:1em}.bapf_slidr_jqrui .bapf_to{text-align:right}.bapf_sfilter{margin-bottom:20px}.berocket_single_filter_widget.berocket_inline_clickable,.berocket_single_filter_widget.berocket_inline_filters{float:left!important;padding-right:15px!important}.berocket_single_filter_widget.berocket_inline_filters{width:12.5%!important}#berocket-ajax-filters-sidebar .berocket_single_filter_widget.berocket_hidden_clickable .berocket_aapf_widget-title_div,.berocket_single_filter_widget.berocket_hidden_clickable .berocket_aapf_widget-title_div{border:2px solid #333!important;background-color:#333!important;color:#ccc!important;padding:5px 35px 5px 5px!important;border-radius:5px!important}.berocket_single_filter_widget.berocket_hidden_clickable .berocket_aapf_widget-title_div h3{margin:0!important;padding:0!important;font-size:inherit!important;color:inherit!important}.berocket_single_filter_widget.berocket_hidden_clickable.berocket_single_filter_visible .berocket_aapf_widget-title_div{border:2px solid #ccc!important;color:#000!important;background-color:#ccc!important;border-radius:5px 5px 0 0!important;padding-bottom:10px!important}.berocket_single_filter_widget.berocket_hidden_clickable.berocket_single_filter_visible .berocket_aapf_widget-wrapper{padding-bottom:0!important}.berocket_single_filter_widget.berocket_hidden_clickable .berocket_aapf_widget{position:absolute!important;top:100%!important;width:100%!important;background-color:#fff!important;z-index:800!important;margin:0!important;border:2px solid #ccc!important;padding:5px!important;display:none}.berocket_single_filter_widget.berocket_hidden_clickable.berocket_single_filter_visible .berocket_aapf_widget{z-index:900!important}.berocket_single_filter_widget.berocket_hidden_clickable.berocket_hidden_clickable_right .berocket_aapf_widget{right:0!important}.berocket_element_above_products{clear:both!important;overflow:visible!important}.berocket_single_filter_widget.bapf_mt_none{display:none!important}div.berocket_single_filter_widget div.berocket_aapf_widget-wrapper *{opacity:1}@media screen and (max-width:767px){.bapf_sngl_hd_mobile{display:none!important}}@media screen and (min-width:768px) and (max-width:1024px){.bapf_sngl_hd_tablet{display:none!important}}@media screen and (min-width:1025px){.bapf_sngl_hd_desktop{display:none!important}}.berocket_aapf_widget select{overflow:auto!important}.berocket_element_above_products_after{clear:both}ul.berocket_aapf_widget li>span>input+.berocket_label_widgets::before{margin-right:6px}.berocket_element_above_products_is_hide{overflow:visible!important}.berocket_element_above_products_is_hide:after{content:"";display:block;clear:both}.berocket_ajax_filters_sidebar_toggle,.berocket_element_above_products_is_hide_toggle{width:200px!important;display:inline-block;padding-left:25px;position:relative;font-size:16px;font-weight:600;outline:0!important}.berocket_element_above_products_is_hide.br_is_hidden{opacity:0;max-height:1px;position:relative}.berocket_element_above_products_is_hide_toggle{height:20px;margin:40px 0;color:#2a2a2a}body{transition:margin-left .2s}body.berocket_ajax_filters_sidebar_active{margin-left:200px}.berocket_ajax_filters_sidebar_toggle{height:26px;margin:40px 0;text-decoration:none!important;box-sizing:border-box!important}#berocket-ajax-filters-sidebar{display:block;position:fixed;top:0;left:-350px;bottom:0;width:350px;max-width:100%;background:#fff;transition:all .2s;z-index:100000;box-sizing:border-box;overflow:auto!important}#berocket-ajax-filters-sidebar-shadow{content:"";display:none;position:fixed;top:0;left:0;bottom:0;right:0;z-index:99999;background:#000;opacity:.7}.admin-bar #berocket-ajax-filters-sidebar{top:32px}#berocket-ajax-filters-sidebar.active,#berocket-ajax-filters-sidebar.active+#berocket-ajax-filters-sidebar-shadow{left:0;display:block}#berocket-ajax-filters-sidebar .berocket_ajax_group_filter_title{padding:15px 88px 15px 15px!important;font-weight:500!important;font-size:24px!important;color:#333!important;border-bottom:1px solid #ccc!important}#berocket-ajax-filters-sidebar>div{padding:15px!important}#berocket-ajax-filters-sidebar .berocket_aapf_widget-title_div{color:#333!important;font-size:19px!important;font-weight:600!important}#berocket-ajax-filters-sidebar .berocket_aapf_widget,#berocket-ajax-filters-sidebar .berocket_aapf_widget li{margin:0!important}#berocket-ajax-filters-sidebar .berocket_aapf_widget .berocket_checkbox_color .berocket_label_widgets{margin:0 .6em .6em 0!important}#berocket-ajax-filters-sidebar-close{position:absolute!important;right:0!important;line-height:39px;padding:17px 15px 13px!important;font-family:Arial,serif!important;color:#a2a2a2}#berocket-ajax-filters-sidebar-close+*{margin-top:70px!important}#berocket-ajax-filters-sidebar-close+.berocket_ajax_group_filter_title{margin-top:0!important}@media screen and (max-width:782px){.admin-bar #berocket-ajax-filters-sidebar{top:46px}}@media screen and (max-width:600px){.admin-bar #berocket-ajax-filters-sidebar{top:0}}.berocket_aapf_widget-wrapper .slider:not(.flickity-enabled){overflow:initial;white-space:initial}.select2-container{z-index:999}.bapf_sfilter .bapf_body .mCSB_container>ul,.bapf_sfilter .bapf_body>ul{margin-left:0;margin-top:0!important;margin-bottom:0!important}.bapf_sfilter.bapf_vpr_1 .bapf_body ul,.bapf_sfilter.bapf_vpr_2 .bapf_body ul,.bapf_sfilter.bapf_vpr_3 .bapf_body ul,.bapf_sfilter.bapf_vpr_4 .bapf_body ul{display:flex;flex-wrap:wrap}.bapf_sfilter.bapf_vpr_1 .bapf_body ul>li,.bapf_sfilter.bapf_vpr_2 .bapf_body ul>li,.bapf_sfilter.bapf_vpr_3 .bapf_body ul>li,.bapf_sfilter.bapf_vpr_4 .bapf_body ul>li{white-space:nowrap}.bapf_sfilter.bapf_vpr_1 .bapf_body ul>li{flex-basis:100%}.bapf_sfilter.bapf_vpr_2 .bapf_body ul>li{flex-basis:50%}.bapf_sfilter.bapf_vpr_3 .bapf_body ul>li{flex-basis:33%}.bapf_sfilter.bapf_vpr_4 .bapf_body ul>li{flex-basis:25%}.bapf_sfilter.bapf_vpr_1 .bapf_body ul>li label,.bapf_sfilter.bapf_vpr_2 .bapf_body ul>li label,.bapf_sfilter.bapf_vpr_3 .bapf_body ul>li label,.bapf_sfilter.bapf_vpr_4 .bapf_body ul>li label{white-space:initial}.bapf_sfilter.bapf_fhide .bapf_body ul li.bapf_hide,.bapf_sfilter.bapf_fhide.bapf_filter_hide{display:none!important}.bapf_sfilter .bapf_hascolarr,.bapf_sfilter .bapf_hasdesc{position:relative;padding-right:25px;display:flex;align-items:center}.bapf_sfilter .bapf_hascolarr.bapf_hasdesc{padding-right:45px}.bapf_sfilter .bapf_colaps_smb,.bapf_sfilter .bapf_desci{position:absolute;right:0;line-height:inherit;font-size:16px;cursor:pointer}.bapf_sfilter .bapf_desci{padding:4px 8px}.bapf_sfilter .bapf_hasdesc .bapf_colaps_smb{right:25px}.bapf_sfilter .bapf_cchild,.bapf_sfilter .bapf_ochild{cursor:pointer}#berocket-ajax-filters-sidebar .berocket_single_filter_widget.berocket_hidden_clickable .bapf_sfilter .bapf_head,.berocket_single_filter_widget.berocket_hidden_clickable .bapf_sfilter .bapf_head{border:2px solid #333!important;background-color:#333!important;color:#ccc!important;padding:5px!important;border-radius:5px!important}.berocket_single_filter_widget.berocket_hidden_clickable .berocket_widget_has_description .berocket_aapf_widget-title_div{padding-right:55px!important}.berocket_single_filter_widget.berocket_hidden_clickable .berocket_aapf_widget-wrapper{padding-bottom:5px!important}.berocket_single_filter_widget.berocket_hidden_clickable .bapf_sfilter .bapf_head{cursor:pointer}.berocket_single_filter_widget.berocket_hidden_clickable .bapf_sfilter .bapf_head h3{margin:0;font-size:inherit!important;color:inherit!important}.berocket_single_filter_widget.berocket_hidden_clickable .bapf_sfilter{position:relative!important}.berocket_single_filter_widget.berocket_hidden_clickable .bapf_sfilter.bapf_ccolaps .bapf_head{border:2px solid #ccc!important;color:#000!important;background-color:#ccc!important;border-radius:5px 5px 0 0!important;padding-bottom:5px!important}.berocket_single_filter_widget.berocket_hidden_clickable .bapf_sfilter .bapf_body{position:absolute!important;top:100%!important;width:100%!important;background-color:#fff!important;z-index:800!important;margin:0!important;border:2px solid #ccc!important;padding:5px!important}.berocket_single_filter_widget.berocket_hidden_clickable.berocket_hidden_clickable_right .bapf_sfilter.bapf_ccolaps .bapf_body{right:0!important}@media screen and (max-width:767px){.berocket_single_filter_widget.berocket_hidden_clickable.berocket_single_filter_visible{position:fixed!important;top:0!important;left:0!important;bottom:0!important;right:0!important;z-index:9000000000!important;background-color:#fff!important;overflow:auto!important}.berocket_single_filter_widget.berocket_hidden_clickable.berocket_single_filter_visible .berocket_aapf_widget{border:0!important;width:100%!important;max-width:100%!important}.berocket_single_filter_widget.berocket_hidden_clickable.berocket_single_filter_visible .berocket_aapf_widget_show.mobile_hide{display:block!important}.berocket_single_filter_widget.berocket_hidden_clickable.berocket_single_filter_visible .berocket_aapf_widget_show.mobile_hide .fa-angle-left:before,.berocket_single_filter_widget.berocket_hidden_clickable.berocket_single_filter_visible .berocket_aapf_widget_show.mobile_hide .fa-angle-right:before{content:"\f00d"!important}.berocket_single_filter_widget.berocket_hidden_clickable.berocket_single_filter_visible .berocket_aapf_description{display:none!important}body .select2-container,body .ui-widget.ui-datepicker{z-index:9000000009!important}}@keyframes bapf_loader{from{transform:rotate(0)}to{transform:rotate(360deg)}}.bapf_loader_page{position:fixed;top:0;left:0;bottom:0;right:0;background-color:rgba(255,255,255,.5);z-index:9999}.bapf_loader_page .bapf_lcontainer{position:absolute;top:50%;margin:-20px 0 0 -20px;left:50%;width:30px;height:30px;padding:0}.bapf_lcontainer .bapf_loader{width:100%;height:100%;display:block;transform:rotate(0);animation:1s linear 0s infinite bapf_loader;position:relative}.bapf_lcontainer .bapf_loader .bapf_lfirst,.bapf_lcontainer .bapf_loader .bapf_lsecond{position:absolute;width:10px;height:10px;background:#000;background:linear-gradient(45deg,#000,transparent);display:block;border-radius:6px}.bapf_lcontainer .bapf_loader .bapf_lfirst{bottom:0;right:0}.bapf_lcontainer .bapf_loader .bapf_lsecond{top:0;left:0;transform:rotate(180deg)}.bapf_lcontainer .bapf_labove,.bapf_lcontainer .bapf_lbelow{position:absolute;display:block;text-align:center;width:80vw;left:calc(15px - 40vw)}.bapf_lcontainer .bapf_labove{bottom:120%}.bapf_lcontainer .bapf_lbelow{top:120%}.bapf_lcontainer .bapf_lafter,.bapf_lcontainer .bapf_lbefore{position:absolute;top:50%;margin-top:-15px;height:30px;line-height:30px;vertical-align:middle;white-space:nowrap}.bapf_lcontainer .bapf_lbefore{right:120%}.bapf_lcontainer .bapf_lafter{left:120%}.bapf_lcontainer .bapf_limg{width:100%;height:100%}.berocket_single_filter_widget .tippy-tooltip,.berocket_single_filter_widget .tippy-tooltip .tippy-content{font-size:1em}@media only screen and (max-device-width:767px){.bapf_hide_mobile{display:none!important}}.bapf_sfilter .bapf_button{font-size:1em}.bapf_sfilter .rightpcs{float:right}.bapf_sfilter .right2empcs{padding-left:10px}#bapf_footer_clrimg>div,#bapf_footer_count_before>div,#bapf_footer_description>div{z-index:999999999999!important}.bapf_sfilter.bapf_ckbox input[type=checkbox]{margin-right:5px}.bapf_sfilter.bapf_ckbox input[type=checkbox],.bapf_sfilter.bapf_ckbox label{vertical-align:middle}.select2-container--classic input[type=search],.select2-container--classic input[type=search]:focus{background-color:initial}.berocket_search_box_block{position:relative;padding:.5em}.berocket_search_box_block .berocket_search_box_background_all{position:relative;z-index:200}.berocket_search_box_block .berocket_search_box_background{z-index:100;position:absolute;top:0;bottom:0;left:0;right:0}.berocket_search_box_block select{min-width:100%}.berocket_search_box_button{cursor:pointer;display:block;text-align:center;padding:5px 0}.berocket_search_box_block .berocket_aapf_widget-wrapper ul{margin:0}.berocket_search_box_block .berocket_aapf_widget-wrapper{margin:1em 0}.bapf_show_hide{cursor:pointer}.bapf_hideckbox li input[type=checkbox],.bapf_hideckbox li input[type=checkbox]:after,.bapf_hideckbox li input[type=checkbox]:before{display:none!important}.bapf_hideckbox li label,.bapf_hideckbox li label a{color:#428bca}.bapf_hideckbox li input:checked+label:hover,.bapf_hideckbox li input:checked+label:hover a,.bapf_hideckbox li label:hover,.bapf_hideckbox li label:hover a{color:#2a6496}.bapf_hideckbox li input:checked+label,.bapf_hideckbox li input:checked+label a{color:#222}.bapf_sfilter.bapf_button_berocket .bapf_button{font-size:20px;padding:8px 30px;border:0;line-height:28px;font-weight:600;display:inline-block;color:#fff;text-transform:uppercase;text-align:center;text-decoration:none;background-color:#f16543}.bapf_sfilter.bapf_button_berocket .bapf_button:hover{background-color:#d94825}.bapf_sfilter.bapf_colorinline li{display:inline-block!important}.bapf_sfilter .bapf_clr_span,.bapf_sfilter .bapf_img_span{display:inline-block!important;position:relative;overflow:hidden;margin:5px;height:2em;width:2em;line-height:2em;border:2px solid #000;text-align:center;vertical-align:middle;color:#222!important;text-shadow:0 0 3px #FFF,1px 0 2px #FFF,0 1px 2px #FFF,-1px 0 2px #FFF,0 -1px 2px #FFF,1px 1px 2px #FFF,1px -1px 2px #FFF,-1px 1px 2px #FFF,-1px -1px 2px #FFF;-webkit-transition:all .2s ease-out .1s;-moz-transition:all .2s ease-out .1s;-o-transition:all .2s ease-out .1s;transition:all .2s ease-out .1s}.bapf_sfilter .bapf_clr_span.h1em,.bapf_sfilter .bapf_img_span.h1em{height:1em;line-height:1em}.bapf_sfilter .bapf_clr_span.h2em,.bapf_sfilter .bapf_img_span.h2em{height:2em;line-height:2em}.bapf_sfilter .bapf_clr_span.h3em,.bapf_sfilter .bapf_img_span.h3em{height:3em;line-height:3em}.bapf_sfilter .bapf_clr_span.h4em,.bapf_sfilter .bapf_img_span.h4em{height:4em;line-height:4em}.bapf_sfilter .bapf_clr_span.h5em,.bapf_sfilter .bapf_img_span.h5em{height:5em;line-height:5em}.bapf_sfilter .bapf_clr_span.w1em,.bapf_sfilter .bapf_img_span.w1em{width:1em}.bapf_sfilter .bapf_clr_span.w2em,.bapf_sfilter .bapf_img_span.w2em{width:2em}.bapf_sfilter .bapf_clr_span.w3em,.bapf_sfilter .bapf_img_span.w3em{width:3em}.bapf_sfilter .bapf_clr_span.w4em,.bapf_sfilter .bapf_img_span.w4em{width:4em}.bapf_sfilter .bapf_clr_span.w5em,.bapf_sfilter .bapf_img_span.w5em{width:5em}.bapf_sfilter .bapf_img_span.w1em.h1em .fa,.bapf_sfilter .bapf_img_span.w1em.h2em .fa,.bapf_sfilter .bapf_img_span.w1em.h3em .fa,.bapf_sfilter .bapf_img_span.w1em.h4em .fa,.bapf_sfilter .bapf_img_span.w1em.h5em .fa,.bapf_sfilter .bapf_img_span.w2em.h1em .fa,.bapf_sfilter .bapf_img_span.w3em.h1em .fa,.bapf_sfilter .bapf_img_span.w4em.h1em .fa,.bapf_sfilter .bapf_img_span.w5em.h1em .fa{font-size:.8em}.bapf_sfilter .bapf_img_span.w2em.h2em .fa,.bapf_sfilter .bapf_img_span.w2em.h3em .fa,.bapf_sfilter .bapf_img_span.w2em.h4em .fa,.bapf_sfilter .bapf_img_span.w2em.h5em .fa,.bapf_sfilter .bapf_img_span.w3em.h2em .fa,.bapf_sfilter .bapf_img_span.w4em.h2em .fa,.bapf_sfilter .bapf_img_span.w5em.h2em .fa{font-size:1.6em}.bapf_sfilter .bapf_img_span.w3em.h3em .fa,.bapf_sfilter .bapf_img_span.w3em.h4em .fa,.bapf_sfilter .bapf_img_span.w3em.h5em .fa,.bapf_sfilter .bapf_img_span.w4em.h3em .fa,.bapf_sfilter .bapf_img_span.w5em.h3em .fa{font-size:2.4em}.bapf_sfilter .bapf_img_span.w4em.h4em .fa,.bapf_sfilter .bapf_img_span.w4em.h5em .fa,.bapf_sfilter .bapf_img_span.w5em.h4em .fa{font-size:3.2em}.bapf_sfilter .bapf_img_span.w5em.h5em .fa{font-size:4em}.bapf_sfilter .bapf_clr_span .bapf_clr_span_abslt{position:relative;z-index:100}.bapf_sfilter.brchecked_default input:checked+label .bapf_clr_span,.bapf_sfilter.brchecked_default input:checked+label .bapf_img_span,.bapf_sfilter.brchecked_rotate input:checked+label .bapf_clr_span,.bapf_sfilter.brchecked_rotate input:checked+label .bapf_img_span{-webkit-transform:rotate(15deg);-moz-transform:rotate(15deg);-ms-transform:rotate(15deg);-o-transform:rotate(15deg);transform:rotate(15deg)}.bapf_sfilter.brchecked_scale input:checked+label .bapf_clr_span,.bapf_sfilter.brchecked_scale input:checked+label .bapf_img_span{transform:scale(1.1)}.bapf_sfilter.brchecked_image_shadow input:checked+label .bapf_clr_span,.bapf_sfilter.brchecked_shadow input:checked+label .bapf_clr_span,.bapf_sfilter.brchecked_shadow input:checked+label .bapf_img_span{box-shadow:0 0 1px 3px #88F}.bapf_sfilter.brchecked_image_shadow input:checked+label .bapf_img_span{-webkit-filter:drop-shadow(0 0 2px);-moz-filter:drop-shadow(0 0 2px);-o-filter:drop-shadow(0 0 2px);filter:drop-shadow(0 0 2px)}.bapf_sfilter.brchecked_hue_rotate input:checked+label .bapf_clr_span,.bapf_sfilter.brchecked_hue_rotate input:checked+label .bapf_img_span{-webkit-filter:hue-rotate(90deg);-moz-filter:hue-rotate(90deg);-o-filter:hue-rotate(90deg);filter:hue-rotate(90deg)}.bapf_sfilter .bapf_clr_multi{position:absolute;top:0;bottom:0;left:0;right:0;z-index:2;transform:rotateZ(45deg);padding:0;margin:-2em 0;box-sizing:border-box}.bapf_sfilter .bapf_clr_multi .bapf_clr_multi_singl{position:absolute;top:-50%;bottom:-50%;padding:0;margin:0;box-shadow:none;box-sizing:border-box;border:0}.bapf_sfilter .bapf_clr_multi_2 .bapf_clr_multi_singl,.bapf_sfilter .bapf_clr_multi_3 .bapf_clr_multi_singl{width:100%}.bapf_sfilter .bapf_clr_multi_3 .bapf_clr_multi_singl_1{width:34%}.bapf_sfilter .bapf_clr_multi_3 .bapf_clr_multi_singl_0,.bapf_sfilter .bapf_clr_multi_3 .bapf_clr_multi_singl_2{width:83%}.bapf_sfilter .bapf_clr_multi_4 .bapf_clr_multi_singl{width:25%}.bapf_sfilter .bapf_clr_multi_4 .bapf_clr_multi_singl_0,.bapf_sfilter .bapf_clr_multi_4 .bapf_clr_multi_singl_3{width:75%}.bapf_sfilter .bapf_clr_multi .bapf_clr_multi_singl_0{left:-50%}.bapf_sfilter .bapf_clr_multi_2 .bapf_clr_multi_singl_1{left:50%}.bapf_sfilter .bapf_clr_multi_3 .bapf_clr_multi_singl_1{left:33%}.bapf_sfilter .bapf_clr_multi_4 .bapf_clr_multi_singl_1{left:25%}.bapf_sfilter .bapf_clr_multi_3 .bapf_clr_multi_singl_2{left:67%}.bapf_sfilter .bapf_clr_multi_4 .bapf_clr_multi_singl_2{left:50%}.bapf_sfilter .bapf_clr_multi_4 .bapf_clr_multi_singl_3{left:75%}.bapf_sfilter.bapf_clr_txt_left .bapf_img_span{margin:5px 0 5px 10px}.bapf_sfilter.bapf_clr_txt_right .bapf_img_span{margin:5px 10px 5px 0}.bapf_sfilter.bapf_clr_txt_bottom .bapf_img_span,.bapf_sfilter.bapf_clr_txt_top .bapf_img_span{margin:5px 10px}.bapf_sfilter.bapf_colorinline.bapf_clr_txt_bottom li label,.bapf_sfilter.bapf_colorinline.bapf_clr_txt_top li label{display:inline-block!important;text-align:center}.bapf_sfilter.bapf_clr_txt_bottom .bapf_clr_text,.bapf_sfilter.bapf_clr_txt_top .bapf_clr_text{display:block;margin-right:10px;margin-left:10px}.bapf_colorinline .bapf_body li{text-align:center}.bapf_img_woborder.bapf_sfilter .bapf_img_span{border:none;overflow:visible}.bapf_clr_woborder.bapf_sfilter .bapf_clr_span{border:none}.bapf_asradio2 ul li input[type=checkbox]{-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none;appearance:none;display:inline-block;vertical-align:middle;border:2px solid #555;width:15px;height:15px;outline:0;border-radius:10px;padding:2px;margin-right:5px}.bapf_asradio2 ul li input[type=checkbox]:checked{background:#555;background-clip:content-box}.bapf_slct select{width:100%;font-size:1em}.bapf_slct .select2 .select2-search__field{width:auto!important}#bapf-select2-high-zindex .select2-container{z-index:999999999!important}.bapf_sfa_inline .berocket_aapf_widget_selected_area ul li{display:inline-block;margin-left:3px!important;margin-right:3px!important}.bapf_ckbox_square input[type=checkbox]{-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none;appearance:none;display:inline-block;vertical-align:middle;border:2px solid #555;width:20px;height:20px;outline:0;padding:4px;margin-right:5px}.bapf_ckbox_square input[type=checkbox]:checked{background:#555;background-clip:content-box}.ui-datepicker .ui-icon,.ui-icon{text-indent:-99999px;background-repeat:no-repeat}/*! jQuery UI - v1.12.0 - 2016-07-28
2
  * http://jqueryui.com
3
  * Includes: core.css, datepicker.css, theme.css
4
  * To view and modify this theme, visit http://jqueryui.com/themeroller/?scope=&folderName=flick&cornerRadiusShadow=0px&offsetLeftShadow=-4px&offsetTopShadow=-4px&thicknessShadow=4px&opacityShadow=60&bgImgOpacityShadow=0&bgTextureShadow=flat&bgColorShadow=aaaaaa&opacityOverlay=80&bgImgOpacityOverlay=0&bgTextureOverlay=flat&bgColorOverlay=eeeeee&iconColorError=ff0084&fcError=222222&borderColorError=ff0084&bgImgOpacityError=55&bgTextureError=flat&bgColorError=ffffff&iconColorHighlight=0073ea&fcHighlight=444444&borderColorHighlight=cccccc&bgImgOpacityHighlight=55&bgTextureHighlight=flat&bgColorHighlight=ffffff&iconColorActive=454545&fcActive=ff0084&borderColorActive=dddddd&bgImgOpacityActive=65&bgTextureActive=glass&bgColorActive=ffffff&iconColorHover=ffffff&fcHover=ffffff&borderColorHover=0073ea&bgImgOpacityHover=25&bgTextureHover=highlight_soft&bgColorHover=0073ea&iconColorDefault=666666&fcDefault=0073ea&borderColorDefault=dddddd&bgImgOpacityDefault=100&bgTextureDefault=highlight_soft&bgColorDefault=f6f6f6&iconColorContent=ff0084&fcContent=444444&borderColorContent=dddddd&bgImgOpacityContent=75&bgTextureContent=flat&bgColorContent=ffffff&iconColorHeader=0073ea&fcHeader=444444&borderColorHeader=dddddd&bgImgOpacityHeader=50&bgTextureHeader=highlight_soft&bgColorHeader=dddddd&cornerRadius=2px&fsDefault=1.1em&fwDefault=bold&ffDefault=Helvetica%2CArial%2Csans-serif
1
+ .bapf_sfilter .bapf_button,.bapf_sfilter label{cursor:pointer;display:inline-block!important}.bapf_sfilter ul li{list-style:none!important;margin:0!important;padding:0!important;max-width:100%}.bapf_sfilter .bapf_body ul li ul{margin-left:15px}.bapf_slidr_main.ui-widget-content,.berocket_filter_price_slider.ui-widget-content{background:#b0b5b9;border:0;border-radius:0;height:4px;padding:0}.bapf_slidr_main.ui-widget-content .ui-slider-range,.berocket_filter_price_slider.ui-widget-content .ui-slider-range{background:#000}.slide.default .bapf_slidr_main.ui-widget-content .ui-slider-range,.slide.default .berocket_filter_price_slider.ui-widget-content .ui-slider-range{background:#222}.slide.default .bapf_slidr_main.ui-widget-content,.slide.default .berocket_filter_price_slider.ui-widget-content{height:4px;border:1px solid #555;font-size:10px}.bapf_slidr_main.ui-widget-content .ui-slider-handle,.berocket_filter_price_slider.ui-widget-content .ui-slider-handle,.slide.default .bapf_slidr_main .ui-state-default,.slide.default .bapf_slidr_main .ui-widget-header .ui-state-default,.slide.default .bapf_slidr_main.ui-widget-content .ui-state-default,.slide.default .berocket_filter_price_slider .ui-state-default,.slide.default .berocket_filter_price_slider .ui-widget-header .ui-state-default,.slide.default .berocket_filter_price_slider.ui-widget-content .ui-state-default{background:#ddd;font-size:14px;width:1em;height:1em;border:1px solid #555;top:-6px;border-radius:2em}.berocket_aapf_widget li.slider div.slide{clear:both;height:auto;text-align:right;line-height:0}.bapf_slidr_jqrui .bapf_from,.ui-slider{text-align:left}.ui-slider{position:relative}.ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1.2em;height:1.2em;cursor:pointer;-ms-touch-action:none;touch-action:none}.ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background-position:0 0}.ui-slider.ui-state-disabled .ui-slider-handle,.ui-slider.ui-state-disabled .ui-slider-range{filter:inherit}.ui-slider-horizontal{height:.8em}.ui-slider-horizontal .ui-slider-handle{top:-.3em;margin-left:-.6em}.bapf_slidr_main>a:last-child{margin-left:-12px}.ui-slider-horizontal .ui-slider-range{top:0;height:100%}.ui-slider-horizontal .ui-slider-range-min{left:0}.ui-slider-horizontal .ui-slider-range-max{right:0}.ui-slider-vertical{width:.8em;height:100px}.ui-slider-vertical .ui-slider-handle{left:-.3em;margin-left:0;margin-bottom:-.6em}.ui-slider-vertical .ui-slider-range{left:0;width:100%}.berocket_single_filter_widget.berocket_hidden_clickable.berocket_hidden_clickable_left .bapf_sfilter.bapf_ccolaps .bapf_body,.berocket_single_filter_widget.berocket_hidden_clickable.berocket_hidden_clickable_left .berocket_aapf_widget{left:0!important}.ui-slider-vertical .ui-slider-range-min{bottom:0}.ui-slider-vertical .ui-slider-range-max{top:0}.slide .ui-corner-all,.slide .ui-corner-bottom,.slide .ui-corner-br,.slide .ui-corner-right{border-bottom-right-radius:4px}.slide .ui-corner-all,.slide .ui-corner-bl,.slide .ui-corner-bottom,.slide .ui-corner-left{border-bottom-left-radius:4px}.slide .ui-corner-all,.slide .ui-corner-right,.slide .ui-corner-top,.slide .ui-corner-tr{border-top-right-radius:4px}.slide .ui-corner-all,.slide .ui-corner-left,.slide .ui-corner-tl,.slide .ui-corner-top{border-top-left-radius:4px}ul.berocket_aapf_widget li.slider>span{cursor:initial}ul.berocket_aapf_widget li.slider .bapf_slidr_main{cursor:pointer}.slide .ui-widget-content{background:#fff;border:1px solid #aaa;color:#222}.slide .ui-state-default,.slide .ui-widget-content .ui-state-default,.slide .ui-widget-header .ui-state-default{background:#e6e6e6;border:1px solid #d3d3d3;color:#555;font-weight:400}.ui-widget.ui-datepicker{font-size:14px;z-index:9000!important}.bapf_sfilter .ui-button,.bapf_sfilter .ui-state-default,.bapf_sfilter .ui-widget-content .ui-state-default,.bapf_sfilter .ui-widget-header .ui-state-default,.bapf_sfilter .ui-widget.ui-widget-content,html .bapf_sfilter .ui-button.ui-state-disabled:active,html .bapf_sfilter .ui-button.ui-state-disabled:hover{border:0}.bapf_slidr_jqrui .bapf_slidr_all:after{content:"";display:block;clear:both}.bapf_slidr_jqrui .bapf_slidr_main{margin-bottom:10px}.bapf_slidr_jqrui .bapf_from,.bapf_slidr_jqrui .bapf_to{width:49%;display:inline-block;margin-bottom:10px;vertical-align:middle}.bapf_slidr_jqrui .bapf_from input,.bapf_slidr_jqrui .bapf_to input{width:50%;vertical-align:middle;font-size:1em;padding:0;margin:0;line-height:1em}.bapf_slidr_jqrui .bapf_to{text-align:right}.bapf_sfilter{margin-bottom:20px}.berocket_single_filter_widget.berocket_inline_clickable,.berocket_single_filter_widget.berocket_inline_filters{float:left!important;padding-right:15px!important}.berocket_single_filter_widget.berocket_inline_filters{width:12.5%!important}#berocket-ajax-filters-sidebar .berocket_single_filter_widget.berocket_hidden_clickable .berocket_aapf_widget-title_div,.berocket_single_filter_widget.berocket_hidden_clickable .berocket_aapf_widget-title_div{border:2px solid #333!important;background-color:#333!important;color:#ccc!important;padding:5px 35px 5px 5px!important;border-radius:5px!important}.berocket_single_filter_widget.berocket_hidden_clickable .berocket_aapf_widget-title_div h3{margin:0!important;padding:0!important;font-size:inherit!important;color:inherit!important}.berocket_single_filter_widget.berocket_hidden_clickable.berocket_single_filter_visible .berocket_aapf_widget-title_div{border:2px solid #ccc!important;color:#000!important;background-color:#ccc!important;border-radius:5px 5px 0 0!important;padding-bottom:10px!important}.berocket_single_filter_widget.berocket_hidden_clickable.berocket_single_filter_visible .berocket_aapf_widget-wrapper{padding-bottom:0!important}.berocket_single_filter_widget.berocket_hidden_clickable .berocket_aapf_widget{position:absolute!important;top:100%!important;width:100%!important;background-color:#fff!important;z-index:800!important;margin:0!important;border:2px solid #ccc!important;padding:5px!important;display:none}.berocket_single_filter_widget.berocket_hidden_clickable.berocket_single_filter_visible .berocket_aapf_widget{z-index:900!important}.berocket_single_filter_widget.berocket_hidden_clickable.berocket_hidden_clickable_right .berocket_aapf_widget{right:0!important}.bapf_sfilter.bapf_fhide .bapf_body ul li.bapf_hide,.bapf_sfilter.bapf_fhide.bapf_filter_hide,.berocket_single_filter_widget.bapf_mt_none{display:none!important}.berocket_element_above_products{clear:both!important;overflow:visible!important}div.berocket_single_filter_widget div.berocket_aapf_widget-wrapper *{opacity:1}@media screen and (max-width:767px){.bapf_sngl_hd_mobile{display:none!important}}@media screen and (min-width:768px) and (max-width:1024px){.bapf_sngl_hd_tablet{display:none!important}}@media screen and (min-width:1025px){.bapf_sngl_hd_desktop{display:none!important}}.berocket_aapf_widget select{overflow:auto!important}.berocket_element_above_products_after{clear:both}ul.berocket_aapf_widget li>span>input+.berocket_label_widgets::before{margin-right:6px}.berocket_element_above_products_is_hide{overflow:visible!important}.berocket_element_above_products_is_hide:after{content:"";display:block;clear:both}.berocket_ajax_filters_sidebar_toggle,.berocket_element_above_products_is_hide_toggle{width:200px!important;display:inline-block;position:relative;padding-left:25px;font-size:16px;font-weight:600;outline:0!important}.berocket_element_above_products_is_hide.br_is_hidden{opacity:0;max-height:1px;position:relative}.berocket_element_above_products_is_hide_toggle{height:20px;margin:40px 0;color:#2a2a2a}body{transition:margin-left .2s}body.berocket_ajax_filters_sidebar_active{margin-left:200px}.berocket_ajax_filters_sidebar_toggle{height:26px;margin:40px 0;text-decoration:none!important;box-sizing:border-box!important}#berocket-ajax-filters-sidebar{display:block;position:fixed;top:0;left:-350px;bottom:0;width:350px;max-width:100%;background:#fff;transition:all .2s;z-index:100000;box-sizing:border-box;overflow:auto!important}#berocket-ajax-filters-sidebar-shadow{content:"";display:none;position:fixed;top:0;left:0;bottom:0;right:0;z-index:99999;background:#000;opacity:.7}.admin-bar #berocket-ajax-filters-sidebar{top:32px}#berocket-ajax-filters-sidebar.active,#berocket-ajax-filters-sidebar.active+#berocket-ajax-filters-sidebar-shadow{left:0;display:block}#berocket-ajax-filters-sidebar .berocket_ajax_group_filter_title{padding:15px 88px 15px 15px!important;font-weight:500!important;font-size:24px!important;color:#333!important;border-bottom:1px solid #ccc!important}#berocket-ajax-filters-sidebar>div{padding:15px!important}#berocket-ajax-filters-sidebar .berocket_aapf_widget-title_div{color:#333!important;font-size:19px!important;font-weight:600!important}#berocket-ajax-filters-sidebar .berocket_aapf_widget,#berocket-ajax-filters-sidebar .berocket_aapf_widget li{margin:0!important}#berocket-ajax-filters-sidebar .berocket_aapf_widget .berocket_checkbox_color .berocket_label_widgets{margin:0 .6em .6em 0!important}#berocket-ajax-filters-sidebar-close{position:absolute!important;right:0!important;line-height:39px;padding:17px 15px 13px!important;font-family:Arial,serif!important;color:#a2a2a2}#berocket-ajax-filters-sidebar-close+*{margin-top:70px!important}#berocket-ajax-filters-sidebar-close+.berocket_ajax_group_filter_title{margin-top:0!important}@media screen and (max-width:782px){.admin-bar #berocket-ajax-filters-sidebar{top:46px}}@media screen and (max-width:600px){.admin-bar #berocket-ajax-filters-sidebar{top:0}}.berocket_aapf_widget-wrapper .slider:not(.flickity-enabled){overflow:initial;white-space:initial}.select2-container{z-index:999}.bapf_sfilter .bapf_body .mCSB_container>ul,.bapf_sfilter .bapf_body>ul{margin-left:0;margin-top:0!important;margin-bottom:0!important}.bapf_sfilter.bapf_vpr_1 .bapf_body ul,.bapf_sfilter.bapf_vpr_2 .bapf_body ul,.bapf_sfilter.bapf_vpr_3 .bapf_body ul,.bapf_sfilter.bapf_vpr_4 .bapf_body ul{display:flex;flex-wrap:wrap}.bapf_sfilter.bapf_vpr_1 .bapf_body ul>li,.bapf_sfilter.bapf_vpr_2 .bapf_body ul>li,.bapf_sfilter.bapf_vpr_3 .bapf_body ul>li,.bapf_sfilter.bapf_vpr_4 .bapf_body ul>li{white-space:nowrap;flex-grow:1}.bapf_sfilter.bapf_vpr_1 .bapf_body ul>li{flex-basis:100%}.bapf_sfilter.bapf_vpr_2 .bapf_body ul>li{flex-basis:50%}.bapf_sfilter.bapf_vpr_3 .bapf_body ul>li{flex-basis:33%}.bapf_sfilter.bapf_vpr_4 .bapf_body ul>li{flex-basis:25%}.bapf_sfilter.bapf_vpr_1 .bapf_body ul>li label,.bapf_sfilter.bapf_vpr_2 .bapf_body ul>li label,.bapf_sfilter.bapf_vpr_3 .bapf_body ul>li label,.bapf_sfilter.bapf_vpr_4 .bapf_body ul>li label{white-space:initial}.bapf_sfilter .bapf_hascolarr,.bapf_sfilter .bapf_hasdesc{position:relative;padding-right:25px;display:flex;align-items:center}.bapf_sfilter .bapf_hascolarr.bapf_hasdesc{padding-right:45px}.bapf_sfilter .bapf_colaps_smb,.bapf_sfilter .bapf_desci{position:absolute;right:0;line-height:inherit;font-size:16px;cursor:pointer}.bapf_sfilter .bapf_desci{padding:4px 8px}.bapf_sfilter .bapf_hasdesc .bapf_colaps_smb{right:25px}.bapf_sfilter .bapf_cchild,.bapf_sfilter .bapf_ochild{cursor:pointer;padding:0 5px}#berocket-ajax-filters-sidebar .berocket_single_filter_widget.berocket_hidden_clickable .bapf_sfilter .bapf_head,.berocket_single_filter_widget.berocket_hidden_clickable .bapf_sfilter .bapf_head{border:2px solid #333!important;background-color:#333!important;color:#ccc!important;padding:5px!important;border-radius:5px!important}.berocket_single_filter_widget.berocket_hidden_clickable .berocket_widget_has_description .berocket_aapf_widget-title_div{padding-right:55px!important}.berocket_single_filter_widget.berocket_hidden_clickable .berocket_aapf_widget-wrapper{padding-bottom:5px!important}.berocket_single_filter_widget.berocket_hidden_clickable .bapf_sfilter .bapf_head{cursor:pointer}.berocket_single_filter_widget.berocket_hidden_clickable .bapf_sfilter .bapf_head h3{margin:0;font-size:inherit!important;color:inherit!important}.berocket_single_filter_widget.berocket_hidden_clickable .bapf_sfilter{position:relative!important}.berocket_single_filter_widget.berocket_hidden_clickable .bapf_sfilter.bapf_ccolaps .bapf_head{border:2px solid #ccc!important;color:#000!important;background-color:#ccc!important;border-radius:5px 5px 0 0!important;padding-bottom:5px!important}.berocket_single_filter_widget.berocket_hidden_clickable .bapf_sfilter .bapf_body{position:absolute!important;top:100%!important;width:100%!important;background-color:#fff!important;z-index:800!important;margin:0!important;border:2px solid #ccc!important;padding:5px!important}.berocket_single_filter_widget.berocket_hidden_clickable.berocket_hidden_clickable_right .bapf_sfilter.bapf_ccolaps .bapf_body{right:0!important}@media screen and (max-width:767px){.berocket_single_filter_widget.berocket_hidden_clickable.berocket_single_filter_visible{position:fixed!important;top:0!important;left:0!important;bottom:0!important;right:0!important;z-index:9000000000!important;background-color:#fff!important;overflow:auto!important}.berocket_single_filter_widget.berocket_hidden_clickable.berocket_single_filter_visible .berocket_aapf_widget{border:0!important;width:100%!important;max-width:100%!important}.berocket_single_filter_widget.berocket_hidden_clickable.berocket_single_filter_visible .berocket_aapf_widget_show.mobile_hide{display:block!important}.berocket_single_filter_widget.berocket_hidden_clickable.berocket_single_filter_visible .berocket_aapf_widget_show.mobile_hide .fa-angle-left:before,.berocket_single_filter_widget.berocket_hidden_clickable.berocket_single_filter_visible .berocket_aapf_widget_show.mobile_hide .fa-angle-right:before{content:"\f00d"!important}.berocket_single_filter_widget.berocket_hidden_clickable.berocket_single_filter_visible .berocket_aapf_description{display:none!important}body .select2-container,body .ui-widget.ui-datepicker{z-index:9000000009!important}}@keyframes bapf_loader{from{transform:rotate(0)}to{transform:rotate(360deg)}}.bapf_loader_page{position:fixed;top:0;left:0;bottom:0;right:0;background-color:rgba(255,255,255,.5);z-index:9999}.bapf_loader_page .bapf_lcontainer{position:absolute;top:50%;margin:-20px 0 0 -20px;left:50%;width:30px;height:30px;padding:0}.bapf_lcontainer .bapf_loader{width:100%;height:100%;display:block;transform:rotate(0);animation:1s linear 0s infinite bapf_loader;position:relative}.bapf_lcontainer .bapf_loader .bapf_lfirst,.bapf_lcontainer .bapf_loader .bapf_lsecond{position:absolute;width:10px;height:10px;background:#000;background:linear-gradient(45deg,#000,transparent);display:block;border-radius:6px}.bapf_lcontainer .bapf_loader .bapf_lfirst{bottom:0;right:0}.bapf_lcontainer .bapf_loader .bapf_lsecond{top:0;left:0;transform:rotate(180deg)}.bapf_lcontainer .bapf_labove,.bapf_lcontainer .bapf_lbelow{position:absolute;display:block;text-align:center;width:80vw;left:calc(15px - 40vw)}.bapf_lcontainer .bapf_labove{bottom:120%}.bapf_lcontainer .bapf_lbelow{top:120%}.bapf_lcontainer .bapf_lafter,.bapf_lcontainer .bapf_lbefore{position:absolute;top:50%;margin-top:-15px;height:30px;line-height:30px;vertical-align:middle;white-space:nowrap}.bapf_lcontainer .bapf_lbefore{right:120%}.bapf_lcontainer .bapf_lafter{left:120%}.bapf_lcontainer .bapf_limg{width:100%;height:100%}.berocket_single_filter_widget .tippy-tooltip,.berocket_single_filter_widget .tippy-tooltip .tippy-content{font-size:1em}@media only screen and (max-device-width:767px){.bapf_hide_mobile{display:none!important}}.bapf_sfilter .bapf_button{font-size:1em}.bapf_sfilter .rightpcs{float:right}.bapf_sfilter .right2empcs{padding-left:10px}#bapf_footer_clrimg>div,#bapf_footer_count_before>div,#bapf_footer_description>div{z-index:999999999999!important}.bapf_sfilter.bapf_ckbox input[type=checkbox]{margin-right:5px}.bapf_sfilter.bapf_ckbox input[type=checkbox],.bapf_sfilter.bapf_ckbox label{vertical-align:middle}.select2-container--classic input[type=search],.select2-container--classic input[type=search]:focus{background-color:initial}.berocket_search_box_block{position:relative;padding:.5em}.berocket_search_box_block .berocket_search_box_background_all{position:relative;z-index:200}.berocket_search_box_block .berocket_search_box_background{z-index:100;position:absolute;top:0;bottom:0;left:0;right:0}.berocket_search_box_block select{min-width:100%}.berocket_search_box_button{cursor:pointer;display:block;text-align:center;padding:5px 0}.berocket_search_box_block .berocket_aapf_widget-wrapper ul{margin:0}.berocket_search_box_block .berocket_aapf_widget-wrapper{margin:1em 0}.bapf_show_hide{cursor:pointer}.bapf_hideckbox li input[type=checkbox],.bapf_hideckbox li input[type=checkbox]:after,.bapf_hideckbox li input[type=checkbox]:before{display:none!important}.bapf_hideckbox li label,.bapf_hideckbox li label a{color:#428bca}.bapf_hideckbox li input:checked+label:hover,.bapf_hideckbox li input:checked+label:hover a,.bapf_hideckbox li label:hover,.bapf_hideckbox li label:hover a{color:#2a6496}.bapf_hideckbox li input:checked+label,.bapf_hideckbox li input:checked+label a{color:#222}.bapf_sfilter.bapf_clr_txt_left .bapf_body ul,.bapf_sfilter.bapf_clr_txt_right .bapf_body ul{width:100%;flex-basis:100%}.bapf_sfilter.bapf_clr_txt_left .bapf_body ul li,.bapf_sfilter.bapf_clr_txt_right .bapf_body ul li{display:flex;align-items:center;flex-wrap:wrap}.bapf_sfilter.bapf_clr_txt_left .bapf_body ul li label,.bapf_sfilter.bapf_clr_txt_right .bapf_body ul li label{display:flex!important;flex-direction:row!important;align-items:center!important}.bapf_sfilter.bapf_clr_txt_left .bapf_body ul li label .bapf_clr_span,.bapf_sfilter.bapf_clr_txt_left .bapf_body ul li label .bapf_img_span,.bapf_sfilter.bapf_clr_txt_right .bapf_body ul li label .bapf_clr_span,.bapf_sfilter.bapf_clr_txt_right .bapf_body ul li label .bapf_img_span{flex-shrink:0}.bapf_sfilter.bapf_button_berocket .bapf_button{font-size:20px;padding:8px 30px;border:0;line-height:28px;font-weight:600;display:inline-block;color:#fff;text-transform:uppercase;text-align:center;text-decoration:none;background-color:#f16543}.bapf_sfilter.bapf_button_berocket .bapf_button:hover{background-color:#d94825}.bapf_sfilter.bapf_colorinline li{display:inline-block!important}.bapf_sfilter .bapf_clr_span,.bapf_sfilter .bapf_img_span{display:inline-block!important;position:relative;overflow:hidden;margin:5px;height:2em;width:2em;line-height:2em;border:2px solid #000;text-align:center;vertical-align:middle;color:#222!important;text-shadow:0 0 3px #FFF,1px 0 2px #FFF,0 1px 2px #FFF,-1px 0 2px #FFF,0 -1px 2px #FFF,1px 1px 2px #FFF,1px -1px 2px #FFF,-1px 1px 2px #FFF,-1px -1px 2px #FFF;-webkit-transition:all .2s ease-out .1s;-moz-transition:all .2s ease-out .1s;-o-transition:all .2s ease-out .1s;transition:all .2s ease-out .1s}.bapf_sfilter .bapf_clr_span.h1em,.bapf_sfilter .bapf_img_span.h1em{height:1em;line-height:1em}.bapf_sfilter .bapf_clr_span.h2em,.bapf_sfilter .bapf_img_span.h2em{height:2em;line-height:2em}.bapf_sfilter .bapf_clr_span.h3em,.bapf_sfilter .bapf_img_span.h3em{height:3em;line-height:3em}.bapf_sfilter .bapf_clr_span.h4em,.bapf_sfilter .bapf_img_span.h4em{height:4em;line-height:4em}.bapf_sfilter .bapf_clr_span.h5em,.bapf_sfilter .bapf_img_span.h5em{height:5em;line-height:5em}.bapf_sfilter .bapf_clr_span.w1em,.bapf_sfilter .bapf_img_span.w1em{width:1em}.bapf_sfilter .bapf_clr_span.w2em,.bapf_sfilter .bapf_img_span.w2em{width:2em}.bapf_sfilter .bapf_clr_span.w3em,.bapf_sfilter .bapf_img_span.w3em{width:3em}.bapf_sfilter .bapf_clr_span.w4em,.bapf_sfilter .bapf_img_span.w4em{width:4em}.bapf_sfilter .bapf_clr_span.w5em,.bapf_sfilter .bapf_img_span.w5em{width:5em}.bapf_sfilter .bapf_img_span.w1em.h1em .fa,.bapf_sfilter .bapf_img_span.w1em.h2em .fa,.bapf_sfilter .bapf_img_span.w1em.h3em .fa,.bapf_sfilter .bapf_img_span.w1em.h4em .fa,.bapf_sfilter .bapf_img_span.w1em.h5em .fa,.bapf_sfilter .bapf_img_span.w2em.h1em .fa,.bapf_sfilter .bapf_img_span.w3em.h1em .fa,.bapf_sfilter .bapf_img_span.w4em.h1em .fa,.bapf_sfilter .bapf_img_span.w5em.h1em .fa{font-size:.8em}.bapf_sfilter .bapf_img_span.w2em.h2em .fa,.bapf_sfilter .bapf_img_span.w2em.h3em .fa,.bapf_sfilter .bapf_img_span.w2em.h4em .fa,.bapf_sfilter .bapf_img_span.w2em.h5em .fa,.bapf_sfilter .bapf_img_span.w3em.h2em .fa,.bapf_sfilter .bapf_img_span.w4em.h2em .fa,.bapf_sfilter .bapf_img_span.w5em.h2em .fa{font-size:1.6em}.bapf_sfilter .bapf_img_span.w3em.h3em .fa,.bapf_sfilter .bapf_img_span.w3em.h4em .fa,.bapf_sfilter .bapf_img_span.w3em.h5em .fa,.bapf_sfilter .bapf_img_span.w4em.h3em .fa,.bapf_sfilter .bapf_img_span.w5em.h3em .fa{font-size:2.4em}.bapf_sfilter .bapf_img_span.w4em.h4em .fa,.bapf_sfilter .bapf_img_span.w4em.h5em .fa,.bapf_sfilter .bapf_img_span.w5em.h4em .fa{font-size:3.2em}.bapf_sfilter .bapf_img_span.w5em.h5em .fa{font-size:4em}.bapf_sfilter .bapf_clr_span .bapf_clr_span_abslt{position:relative;z-index:100}.bapf_sfilter.brchecked_default input:checked+label .bapf_clr_span,.bapf_sfilter.brchecked_default input:checked+label .bapf_img_span,.bapf_sfilter.brchecked_rotate input:checked+label .bapf_clr_span,.bapf_sfilter.brchecked_rotate input:checked+label .bapf_img_span{-webkit-transform:rotate(15deg);-moz-transform:rotate(15deg);-ms-transform:rotate(15deg);-o-transform:rotate(15deg);transform:rotate(15deg)}.bapf_sfilter.brchecked_scale input:checked+label .bapf_clr_span,.bapf_sfilter.brchecked_scale input:checked+label .bapf_img_span{transform:scale(1.1)}.bapf_sfilter.brchecked_image_shadow input:checked+label .bapf_clr_span,.bapf_sfilter.brchecked_shadow input:checked+label .bapf_clr_span,.bapf_sfilter.brchecked_shadow input:checked+label .bapf_img_span{box-shadow:0 0 1px 3px #88F}.bapf_sfilter.brchecked_image_shadow input:checked+label .bapf_img_span{-webkit-filter:drop-shadow(0 0 2px);-moz-filter:drop-shadow(0 0 2px);-o-filter:drop-shadow(0 0 2px);filter:drop-shadow(0 0 2px)}.bapf_sfilter.brchecked_hue_rotate input:checked+label .bapf_clr_span,.bapf_sfilter.brchecked_hue_rotate input:checked+label .bapf_img_span{-webkit-filter:hue-rotate(90deg);-moz-filter:hue-rotate(90deg);-o-filter:hue-rotate(90deg);filter:hue-rotate(90deg)}.bapf_sfilter .bapf_clr_multi{position:absolute;top:0;bottom:0;left:0;right:0;z-index:2;transform:rotateZ(45deg);padding:0;margin:-2em 0;box-sizing:border-box}.bapf_sfilter .bapf_clr_multi .bapf_clr_multi_singl{position:absolute;top:-50%;bottom:-50%;padding:0;margin:0;box-shadow:none;box-sizing:border-box;border:0}.bapf_sfilter .bapf_clr_multi_2 .bapf_clr_multi_singl,.bapf_sfilter .bapf_clr_multi_3 .bapf_clr_multi_singl{width:100%}.bapf_sfilter .bapf_clr_multi_3 .bapf_clr_multi_singl_1{width:34%}.bapf_sfilter .bapf_clr_multi_3 .bapf_clr_multi_singl_0,.bapf_sfilter .bapf_clr_multi_3 .bapf_clr_multi_singl_2{width:83%}.bapf_sfilter .bapf_clr_multi_4 .bapf_clr_multi_singl{width:25%}.bapf_sfilter .bapf_clr_multi_4 .bapf_clr_multi_singl_0,.bapf_sfilter .bapf_clr_multi_4 .bapf_clr_multi_singl_3{width:75%}.bapf_sfilter .bapf_clr_multi .bapf_clr_multi_singl_0{left:-50%}.bapf_sfilter .bapf_clr_multi_2 .bapf_clr_multi_singl_1{left:50%}.bapf_sfilter .bapf_clr_multi_3 .bapf_clr_multi_singl_1{left:33%}.bapf_sfilter .bapf_clr_multi_4 .bapf_clr_multi_singl_1{left:25%}.bapf_sfilter .bapf_clr_multi_3 .bapf_clr_multi_singl_2{left:67%}.bapf_sfilter .bapf_clr_multi_4 .bapf_clr_multi_singl_2{left:50%}.bapf_sfilter .bapf_clr_multi_4 .bapf_clr_multi_singl_3{left:75%}.bapf_sfilter.bapf_clr_txt_left .bapf_img_span{margin:5px 0 5px 10px}.bapf_sfilter.bapf_clr_txt_right .bapf_img_span{margin:5px 10px 5px 0}.bapf_sfilter.bapf_clr_txt_bottom .bapf_img_span,.bapf_sfilter.bapf_clr_txt_top .bapf_img_span{margin:5px 10px}.bapf_sfilter.bapf_colorinline.bapf_clr_txt_bottom li label,.bapf_sfilter.bapf_colorinline.bapf_clr_txt_top li label{display:inline-block!important;text-align:center}.bapf_sfilter.bapf_clr_txt_bottom .bapf_clr_text,.bapf_sfilter.bapf_clr_txt_top .bapf_clr_text{display:block;margin-right:10px;margin-left:10px}.bapf_colorinline .bapf_body li{text-align:center}.bapf_img_woborder.bapf_sfilter .bapf_img_span{border:none;overflow:visible}.bapf_clr_woborder.bapf_sfilter .bapf_clr_span{border:none}.bapf_asradio2 ul li input[type=checkbox]{-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none;appearance:none;display:inline-block;vertical-align:middle;border:2px solid #555;width:15px;height:15px;outline:0;border-radius:10px;padding:2px;margin-right:5px}.bapf_asradio2 ul li input[type=checkbox]:checked{background:#555;background-clip:content-box}.bapf_slct select{width:100%;font-size:1em}.bapf_slct .select2 .select2-search__field{width:auto!important}#bapf-select2-high-zindex .select2-container{z-index:999999999!important}.bapf_sfa_inline .berocket_aapf_widget_selected_area ul li{display:inline-block;margin-left:3px!important;margin-right:3px!important}.bapf_ckbox_square input[type=checkbox]{-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none;appearance:none;display:inline-block;vertical-align:middle;border:2px solid #555;width:20px;height:20px;outline:0;padding:4px;margin-right:5px}.bapf_ckbox_square input[type=checkbox]:checked{background:#555;background-clip:content-box}.ui-datepicker .ui-icon,.ui-icon{text-indent:-99999px;background-repeat:no-repeat}/*! jQuery UI - v1.12.0 - 2016-07-28
2
  * http://jqueryui.com
3
  * Includes: core.css, datepicker.css, theme.css
4
  * To view and modify this theme, visit http://jqueryui.com/themeroller/?scope=&folderName=flick&cornerRadiusShadow=0px&offsetLeftShadow=-4px&offsetTopShadow=-4px&thicknessShadow=4px&opacityShadow=60&bgImgOpacityShadow=0&bgTextureShadow=flat&bgColorShadow=aaaaaa&opacityOverlay=80&bgImgOpacityOverlay=0&bgTextureOverlay=flat&bgColorOverlay=eeeeee&iconColorError=ff0084&fcError=222222&borderColorError=ff0084&bgImgOpacityError=55&bgTextureError=flat&bgColorError=ffffff&iconColorHighlight=0073ea&fcHighlight=444444&borderColorHighlight=cccccc&bgImgOpacityHighlight=55&bgTextureHighlight=flat&bgColorHighlight=ffffff&iconColorActive=454545&fcActive=ff0084&borderColorActive=dddddd&bgImgOpacityActive=65&bgTextureActive=glass&bgColorActive=ffffff&iconColorHover=ffffff&fcHover=ffffff&borderColorHover=0073ea&bgImgOpacityHover=25&bgTextureHover=highlight_soft&bgColorHover=0073ea&iconColorDefault=666666&fcDefault=0073ea&borderColorDefault=dddddd&bgImgOpacityDefault=100&bgTextureDefault=highlight_soft&bgColorDefault=f6f6f6&iconColorContent=ff0084&fcContent=444444&borderColorContent=dddddd&bgImgOpacityContent=75&bgTextureContent=flat&bgColorContent=ffffff&iconColorHeader=0073ea&fcHeader=444444&borderColorHeader=dddddd&bgImgOpacityHeader=50&bgTextureHeader=highlight_soft&bgColorHeader=dddddd&cornerRadius=2px&fsDefault=1.1em&fwDefault=bold&ffDefault=Helvetica%2CArial%2Csans-serif
assets/frontend/css/main.css CHANGED
@@ -497,10 +497,10 @@ body.berocket_ajax_filters_sidebar_active {
497
  margin-top: 0!important;
498
  margin-bottom:0!important;
499
  }
500
- .bapf_sfilter.bapf_vpr_1 .bapf_body ul,
501
- .bapf_sfilter.bapf_vpr_2 .bapf_body ul,
502
- .bapf_sfilter.bapf_vpr_3 .bapf_body ul,
503
- .bapf_sfilter.bapf_vpr_4 .bapf_body ul {
504
  display: flex;
505
  flex-wrap: wrap;
506
  }
@@ -509,6 +509,7 @@ body.berocket_ajax_filters_sidebar_active {
509
  .bapf_sfilter.bapf_vpr_3 .bapf_body ul > li,
510
  .bapf_sfilter.bapf_vpr_4 .bapf_body ul > li {
511
  white-space: nowrap;
 
512
  }
513
  .bapf_sfilter.bapf_vpr_1 .bapf_body ul > li {
514
  flex-basis:100%;
@@ -561,6 +562,7 @@ body.berocket_ajax_filters_sidebar_active {
561
  .bapf_sfilter .bapf_ochild,
562
  .bapf_sfilter .bapf_cchild {
563
  cursor: pointer;
 
564
  }
565
 
566
  #berocket-ajax-filters-sidebar .berocket_single_filter_widget.berocket_hidden_clickable .bapf_sfilter .bapf_head,
@@ -819,6 +821,29 @@ body.berocket_ajax_filters_sidebar_active {
819
  .bapf_hideckbox li input:checked + label {
820
  color: #222;
821
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
822
  .bapf_sfilter.bapf_button_berocket .bapf_button {
823
  font-size: 20px;
824
  padding: 8px 30px;
497
  margin-top: 0!important;
498
  margin-bottom:0!important;
499
  }
500
+ .bapf_sfilter.bapf_vpr_1 .bapf_body ul,
501
+ .bapf_sfilter.bapf_vpr_2 .bapf_body ul,
502
+ .bapf_sfilter.bapf_vpr_3 .bapf_body ul,
503
+ .bapf_sfilter.bapf_vpr_4 .bapf_body ul {
504
  display: flex;
505
  flex-wrap: wrap;
506
  }
509
  .bapf_sfilter.bapf_vpr_3 .bapf_body ul > li,
510
  .bapf_sfilter.bapf_vpr_4 .bapf_body ul > li {
511
  white-space: nowrap;
512
+ flex-grow: 1;
513
  }
514
  .bapf_sfilter.bapf_vpr_1 .bapf_body ul > li {
515
  flex-basis:100%;
562
  .bapf_sfilter .bapf_ochild,
563
  .bapf_sfilter .bapf_cchild {
564
  cursor: pointer;
565
+ padding: 0 5px;
566
  }
567
 
568
  #berocket-ajax-filters-sidebar .berocket_single_filter_widget.berocket_hidden_clickable .bapf_sfilter .bapf_head,
821
  .bapf_hideckbox li input:checked + label {
822
  color: #222;
823
  }
824
+ .bapf_sfilter.bapf_clr_txt_left .bapf_body ul,
825
+ .bapf_sfilter.bapf_clr_txt_right .bapf_body ul {
826
+ width: 100%;
827
+ flex-basis: 100%;
828
+ }
829
+ .bapf_sfilter.bapf_clr_txt_left .bapf_body ul li,
830
+ .bapf_sfilter.bapf_clr_txt_right .bapf_body ul li {
831
+ display: flex;
832
+ align-items: center;
833
+ flex-wrap: wrap;
834
+ }
835
+ .bapf_sfilter.bapf_clr_txt_right .bapf_body ul li label,
836
+ .bapf_sfilter.bapf_clr_txt_left .bapf_body ul li label {
837
+ display: flex!important;
838
+ flex-direction: row!important;
839
+ align-items: center!important;
840
+ }
841
+ .bapf_sfilter.bapf_clr_txt_right .bapf_body ul li label .bapf_img_span,
842
+ .bapf_sfilter.bapf_clr_txt_right .bapf_body ul li label .bapf_clr_span,
843
+ .bapf_sfilter.bapf_clr_txt_left .bapf_body ul li label .bapf_img_span,
844
+ .bapf_sfilter.bapf_clr_txt_left .bapf_body ul li label .bapf_clr_span {
845
+ flex-shrink: 0;
846
+ }
847
  .bapf_sfilter.bapf_button_berocket .bapf_button {
848
  font-size: 20px;
849
  padding: 8px 30px;
assets/frontend/css/main.min.css CHANGED
@@ -1 +1 @@
1
- .bapf_sfilter .bapf_button,.bapf_sfilter label{cursor:pointer;display:inline-block!important}.bapf_sfilter ul li{list-style:none!important;margin:0!important;padding:0!important;max-width:100%}.bapf_sfilter .bapf_body ul li ul{margin-left:15px}.bapf_slidr_main.ui-widget-content,.berocket_filter_price_slider.ui-widget-content{background:#b0b5b9;border:0;border-radius:0;height:4px;padding:0}.bapf_slidr_main.ui-widget-content .ui-slider-range,.berocket_filter_price_slider.ui-widget-content .ui-slider-range{background:#000}.slide.default .bapf_slidr_main.ui-widget-content .ui-slider-range,.slide.default .berocket_filter_price_slider.ui-widget-content .ui-slider-range{background:#222}.slide.default .bapf_slidr_main.ui-widget-content,.slide.default .berocket_filter_price_slider.ui-widget-content{height:4px;border:1px solid #555;font-size:10px}.bapf_slidr_main.ui-widget-content .ui-slider-handle,.berocket_filter_price_slider.ui-widget-content .ui-slider-handle,.slide.default .bapf_slidr_main .ui-state-default,.slide.default .bapf_slidr_main .ui-widget-header .ui-state-default,.slide.default .bapf_slidr_main.ui-widget-content .ui-state-default,.slide.default .berocket_filter_price_slider .ui-state-default,.slide.default .berocket_filter_price_slider .ui-widget-header .ui-state-default,.slide.default .berocket_filter_price_slider.ui-widget-content .ui-state-default{background:#ddd;font-size:14px;width:1em;height:1em;border:1px solid #555;top:-6px;border-radius:2em}.berocket_aapf_widget li.slider div.slide{clear:both;height:auto;text-align:right;line-height:0}.bapf_slidr_jqrui .bapf_from,.ui-slider{text-align:left}.ui-slider{position:relative}.ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1.2em;height:1.2em;cursor:pointer;-ms-touch-action:none;touch-action:none}.ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background-position:0 0}.ui-slider.ui-state-disabled .ui-slider-handle,.ui-slider.ui-state-disabled .ui-slider-range{filter:inherit}.ui-slider-horizontal{height:.8em}.ui-slider-horizontal .ui-slider-handle{top:-.3em;margin-left:-.6em}.bapf_slidr_main>a:last-child{margin-left:-12px}.ui-slider-horizontal .ui-slider-range{top:0;height:100%}.ui-slider-horizontal .ui-slider-range-min{left:0}.ui-slider-horizontal .ui-slider-range-max{right:0}.ui-slider-vertical{width:.8em;height:100px}.ui-slider-vertical .ui-slider-handle{left:-.3em;margin-left:0;margin-bottom:-.6em}.ui-slider-vertical .ui-slider-range{left:0;width:100%}.berocket_single_filter_widget.berocket_hidden_clickable.berocket_hidden_clickable_left .bapf_sfilter.bapf_ccolaps .bapf_body,.berocket_single_filter_widget.berocket_hidden_clickable.berocket_hidden_clickable_left .berocket_aapf_widget{left:0!important}.ui-slider-vertical .ui-slider-range-min{bottom:0}.ui-slider-vertical .ui-slider-range-max{top:0}.slide .ui-corner-all,.slide .ui-corner-bottom,.slide .ui-corner-br,.slide .ui-corner-right{border-bottom-right-radius:4px}.slide .ui-corner-all,.slide .ui-corner-bl,.slide .ui-corner-bottom,.slide .ui-corner-left{border-bottom-left-radius:4px}.slide .ui-corner-all,.slide .ui-corner-right,.slide .ui-corner-top,.slide .ui-corner-tr{border-top-right-radius:4px}.slide .ui-corner-all,.slide .ui-corner-left,.slide .ui-corner-tl,.slide .ui-corner-top{border-top-left-radius:4px}ul.berocket_aapf_widget li.slider>span{cursor:initial}ul.berocket_aapf_widget li.slider .bapf_slidr_main{cursor:pointer}.slide .ui-widget-content{background:#fff;border:1px solid #aaa;color:#222}.slide .ui-state-default,.slide .ui-widget-content .ui-state-default,.slide .ui-widget-header .ui-state-default{background:#e6e6e6;border:1px solid #d3d3d3;color:#555;font-weight:400}.ui-widget.ui-datepicker{font-size:14px;z-index:9000!important}.bapf_sfilter .ui-button,.bapf_sfilter .ui-state-default,.bapf_sfilter .ui-widget-content .ui-state-default,.bapf_sfilter .ui-widget-header .ui-state-default,.bapf_sfilter .ui-widget.ui-widget-content,html .bapf_sfilter .ui-button.ui-state-disabled:active,html .bapf_sfilter .ui-button.ui-state-disabled:hover{border:0}.bapf_slidr_jqrui .bapf_slidr_all:after{content:"";display:block;clear:both}.bapf_slidr_jqrui .bapf_slidr_main{margin-bottom:10px}.bapf_slidr_jqrui .bapf_from,.bapf_slidr_jqrui .bapf_to{width:49%;display:inline-block;margin-bottom:10px;vertical-align:middle}.bapf_slidr_jqrui .bapf_from input,.bapf_slidr_jqrui .bapf_to input{width:50%;vertical-align:middle;font-size:1em;padding:0;margin:0;line-height:1em}.bapf_slidr_jqrui .bapf_to{text-align:right}.bapf_sfilter{margin-bottom:20px}.berocket_single_filter_widget.berocket_inline_clickable,.berocket_single_filter_widget.berocket_inline_filters{float:left!important;padding-right:15px!important}.berocket_single_filter_widget.berocket_inline_filters{width:12.5%!important}#berocket-ajax-filters-sidebar .berocket_single_filter_widget.berocket_hidden_clickable .berocket_aapf_widget-title_div,.berocket_single_filter_widget.berocket_hidden_clickable .berocket_aapf_widget-title_div{border:2px solid #333!important;background-color:#333!important;color:#ccc!important;padding:5px 35px 5px 5px!important;border-radius:5px!important}.berocket_single_filter_widget.berocket_hidden_clickable .berocket_aapf_widget-title_div h3{margin:0!important;padding:0!important;font-size:inherit!important;color:inherit!important}.berocket_single_filter_widget.berocket_hidden_clickable.berocket_single_filter_visible .berocket_aapf_widget-title_div{border:2px solid #ccc!important;color:#000!important;background-color:#ccc!important;border-radius:5px 5px 0 0!important;padding-bottom:10px!important}.berocket_single_filter_widget.berocket_hidden_clickable.berocket_single_filter_visible .berocket_aapf_widget-wrapper{padding-bottom:0!important}.berocket_single_filter_widget.berocket_hidden_clickable .berocket_aapf_widget{position:absolute!important;top:100%!important;width:100%!important;background-color:#fff!important;z-index:800!important;margin:0!important;border:2px solid #ccc!important;padding:5px!important;display:none}.berocket_single_filter_widget.berocket_hidden_clickable.berocket_single_filter_visible .berocket_aapf_widget{z-index:900!important}.berocket_single_filter_widget.berocket_hidden_clickable.berocket_hidden_clickable_right .berocket_aapf_widget{right:0!important}.berocket_ajax_filters_sidebar_toggle,.berocket_element_above_products_is_hide_toggle{width:200px!important;padding-left:25px;outline:0!important;position:relative;font-size:16px;font-weight:600}.berocket_element_above_products{clear:both!important;overflow:visible!important}.berocket_single_filter_widget.bapf_mt_none{display:none!important}div.berocket_single_filter_widget div.berocket_aapf_widget-wrapper *{opacity:1}@media screen and (max-width:767px){.bapf_sngl_hd_mobile{display:none!important}}@media screen and (min-width:768px) and (max-width:1024px){.bapf_sngl_hd_tablet{display:none!important}}@media screen and (min-width:1025px){.bapf_sngl_hd_desktop{display:none!important}}.berocket_aapf_widget select{overflow:auto!important}.berocket_element_above_products_after{clear:both}ul.berocket_aapf_widget li>span>input+.berocket_label_widgets::before{margin-right:6px}.berocket_element_above_products_is_hide{overflow:visible!important}.berocket_element_above_products_is_hide:after{content:"";display:block;clear:both}.berocket_element_above_products_is_hide.br_is_hidden{opacity:0;max-height:1px;position:relative}.berocket_element_above_products_is_hide_toggle{height:20px;margin:40px 0;display:inline-block;color:#2a2a2a}body{transition:margin-left .2s}body.berocket_ajax_filters_sidebar_active{margin-left:200px}.berocket_ajax_filters_sidebar_toggle{height:26px;margin:40px 0;display:inline-block;text-decoration:none!important;box-sizing:border-box!important}#berocket-ajax-filters-sidebar{display:block;position:fixed;top:0;left:-350px;bottom:0;width:350px;max-width:100%;background:#fff;transition:all .2s;z-index:100000;box-sizing:border-box;overflow:auto!important}#berocket-ajax-filters-sidebar-shadow{content:"";display:none;position:fixed;top:0;left:0;bottom:0;right:0;z-index:99999;background:#000;opacity:.7}.admin-bar #berocket-ajax-filters-sidebar{top:32px}#berocket-ajax-filters-sidebar.active,#berocket-ajax-filters-sidebar.active+#berocket-ajax-filters-sidebar-shadow{left:0;display:block}#berocket-ajax-filters-sidebar .berocket_ajax_group_filter_title{padding:15px 88px 15px 15px!important;font-weight:500!important;font-size:24px!important;color:#333!important;border-bottom:1px solid #ccc!important}#berocket-ajax-filters-sidebar>div{padding:15px!important}#berocket-ajax-filters-sidebar .berocket_aapf_widget-title_div{color:#333!important;font-size:19px!important;font-weight:600!important}#berocket-ajax-filters-sidebar .berocket_aapf_widget,#berocket-ajax-filters-sidebar .berocket_aapf_widget li{margin:0!important}#berocket-ajax-filters-sidebar .berocket_aapf_widget .berocket_checkbox_color .berocket_label_widgets{margin:0 .6em .6em 0!important}#berocket-ajax-filters-sidebar-close{position:absolute!important;right:0!important;line-height:39px;padding:17px 15px 13px!important;font-family:Arial,serif!important;color:#a2a2a2}#berocket-ajax-filters-sidebar-close+*{margin-top:70px!important}#berocket-ajax-filters-sidebar-close+.berocket_ajax_group_filter_title{margin-top:0!important}@media screen and (max-width:782px){.admin-bar #berocket-ajax-filters-sidebar{top:46px}}@media screen and (max-width:600px){.admin-bar #berocket-ajax-filters-sidebar{top:0}}.berocket_aapf_widget-wrapper .slider:not(.flickity-enabled){overflow:initial;white-space:initial}.select2-container{z-index:999}.bapf_sfilter .bapf_body .mCSB_container>ul,.bapf_sfilter .bapf_body>ul{margin-left:0;margin-top:0!important;margin-bottom:0!important}.bapf_sfilter.bapf_vpr_1 .bapf_body ul,.bapf_sfilter.bapf_vpr_2 .bapf_body ul,.bapf_sfilter.bapf_vpr_3 .bapf_body ul,.bapf_sfilter.bapf_vpr_4 .bapf_body ul{display:flex;flex-wrap:wrap}.bapf_sfilter.bapf_vpr_1 .bapf_body ul>li,.bapf_sfilter.bapf_vpr_2 .bapf_body ul>li,.bapf_sfilter.bapf_vpr_3 .bapf_body ul>li,.bapf_sfilter.bapf_vpr_4 .bapf_body ul>li{white-space:nowrap}.bapf_sfilter.bapf_vpr_1 .bapf_body ul>li{flex-basis:100%}.bapf_sfilter.bapf_vpr_2 .bapf_body ul>li{flex-basis:50%}.bapf_sfilter.bapf_vpr_3 .bapf_body ul>li{flex-basis:33%}.bapf_sfilter.bapf_vpr_4 .bapf_body ul>li{flex-basis:25%}.bapf_sfilter.bapf_vpr_1 .bapf_body ul>li label,.bapf_sfilter.bapf_vpr_2 .bapf_body ul>li label,.bapf_sfilter.bapf_vpr_3 .bapf_body ul>li label,.bapf_sfilter.bapf_vpr_4 .bapf_body ul>li label{white-space:initial}.bapf_sfilter.bapf_fhide .bapf_body ul li.bapf_hide,.bapf_sfilter.bapf_fhide.bapf_filter_hide{display:none!important}.bapf_sfilter .bapf_hascolarr,.bapf_sfilter .bapf_hasdesc{position:relative;padding-right:25px;display:flex;align-items:center}.bapf_sfilter .bapf_hascolarr.bapf_hasdesc{padding-right:45px}.bapf_sfilter .bapf_colaps_smb,.bapf_sfilter .bapf_desci{position:absolute;right:0;line-height:inherit;font-size:16px;cursor:pointer}.bapf_sfilter .bapf_desci{padding:4px 8px}.bapf_sfilter .bapf_hasdesc .bapf_colaps_smb{right:25px}.bapf_sfilter .bapf_cchild,.bapf_sfilter .bapf_ochild{cursor:pointer}#berocket-ajax-filters-sidebar .berocket_single_filter_widget.berocket_hidden_clickable .bapf_sfilter .bapf_head,.berocket_single_filter_widget.berocket_hidden_clickable .bapf_sfilter .bapf_head{border:2px solid #333!important;background-color:#333!important;color:#ccc!important;padding:5px!important;border-radius:5px!important}.berocket_single_filter_widget.berocket_hidden_clickable .berocket_widget_has_description .berocket_aapf_widget-title_div{padding-right:55px!important}.berocket_single_filter_widget.berocket_hidden_clickable .berocket_aapf_widget-wrapper{padding-bottom:5px!important}.berocket_single_filter_widget.berocket_hidden_clickable .bapf_sfilter .bapf_head{cursor:pointer}.berocket_single_filter_widget.berocket_hidden_clickable .bapf_sfilter .bapf_head h3{margin:0;font-size:inherit!important;color:inherit!important}.berocket_single_filter_widget.berocket_hidden_clickable .bapf_sfilter{position:relative!important}.berocket_single_filter_widget.berocket_hidden_clickable .bapf_sfilter.bapf_ccolaps .bapf_head{border:2px solid #ccc!important;color:#000!important;background-color:#ccc!important;border-radius:5px 5px 0 0!important;padding-bottom:5px!important}.berocket_single_filter_widget.berocket_hidden_clickable .bapf_sfilter .bapf_body{position:absolute!important;top:100%!important;width:100%!important;background-color:#fff!important;z-index:800!important;margin:0!important;border:2px solid #ccc!important;padding:5px!important}.berocket_single_filter_widget.berocket_hidden_clickable.berocket_hidden_clickable_right .bapf_sfilter.bapf_ccolaps .bapf_body{right:0!important}@media screen and (max-width:767px){.berocket_single_filter_widget.berocket_hidden_clickable.berocket_single_filter_visible{position:fixed!important;top:0!important;left:0!important;bottom:0!important;right:0!important;z-index:9000000000!important;background-color:#fff!important;overflow:auto!important}.berocket_single_filter_widget.berocket_hidden_clickable.berocket_single_filter_visible .berocket_aapf_widget{border:0!important;width:100%!important;max-width:100%!important}.berocket_single_filter_widget.berocket_hidden_clickable.berocket_single_filter_visible .berocket_aapf_widget_show.mobile_hide{display:block!important}.berocket_single_filter_widget.berocket_hidden_clickable.berocket_single_filter_visible .berocket_aapf_widget_show.mobile_hide .fa-angle-left:before,.berocket_single_filter_widget.berocket_hidden_clickable.berocket_single_filter_visible .berocket_aapf_widget_show.mobile_hide .fa-angle-right:before{content:"\f00d"!important}.berocket_single_filter_widget.berocket_hidden_clickable.berocket_single_filter_visible .berocket_aapf_description{display:none!important}body .select2-container,body .ui-widget.ui-datepicker{z-index:9000000009!important}}@keyframes bapf_loader{from{transform:rotate(0)}to{transform:rotate(360deg)}}.bapf_loader_page{position:fixed;top:0;left:0;bottom:0;right:0;background-color:rgba(255,255,255,.5);z-index:9999}.bapf_loader_page .bapf_lcontainer{position:absolute;top:50%;margin:-20px 0 0 -20px;left:50%;width:30px;height:30px;padding:0}.bapf_lcontainer .bapf_loader{width:100%;height:100%;display:block;transform:rotate(0);animation:1s linear 0s infinite bapf_loader;position:relative}.bapf_lcontainer .bapf_loader .bapf_lfirst,.bapf_lcontainer .bapf_loader .bapf_lsecond{position:absolute;width:10px;height:10px;background:#000;background:linear-gradient(45deg,#000,transparent);display:block;border-radius:6px}.bapf_lcontainer .bapf_loader .bapf_lfirst{bottom:0;right:0}.bapf_lcontainer .bapf_loader .bapf_lsecond{top:0;left:0;transform:rotate(180deg)}.bapf_lcontainer .bapf_labove,.bapf_lcontainer .bapf_lbelow{position:absolute;display:block;text-align:center;width:80vw;left:calc(15px - 40vw)}.bapf_lcontainer .bapf_labove{bottom:120%}.bapf_lcontainer .bapf_lbelow{top:120%}.bapf_lcontainer .bapf_lafter,.bapf_lcontainer .bapf_lbefore{position:absolute;top:50%;margin-top:-15px;height:30px;line-height:30px;vertical-align:middle;white-space:nowrap}.bapf_lcontainer .bapf_lbefore{right:120%}.bapf_lcontainer .bapf_lafter{left:120%}.bapf_lcontainer .bapf_limg{width:100%;height:100%}.berocket_single_filter_widget .tippy-tooltip,.berocket_single_filter_widget .tippy-tooltip .tippy-content{font-size:1em}@media only screen and (max-device-width:767px){.bapf_hide_mobile{display:none!important}}.bapf_sfilter .bapf_button{font-size:1em}.bapf_sfilter .rightpcs{float:right}.bapf_sfilter .right2empcs{padding-left:10px}#bapf_footer_clrimg>div,#bapf_footer_count_before>div,#bapf_footer_description>div{z-index:999999999999!important}.bapf_sfilter.bapf_ckbox input[type=checkbox]{margin-right:5px}.bapf_sfilter.bapf_ckbox input[type=checkbox],.bapf_sfilter.bapf_ckbox label{vertical-align:middle}.select2-container--classic input[type=search],.select2-container--classic input[type=search]:focus{background-color:initial}.berocket_search_box_block{position:relative;padding:.5em}.berocket_search_box_block .berocket_search_box_background_all{position:relative;z-index:200}.berocket_search_box_block .berocket_search_box_background{z-index:100;position:absolute;top:0;bottom:0;left:0;right:0}.berocket_search_box_block select{min-width:100%}.berocket_search_box_button{cursor:pointer;display:block;text-align:center;padding:5px 0}.berocket_search_box_block .berocket_aapf_widget-wrapper ul{margin:0}.berocket_search_box_block .berocket_aapf_widget-wrapper{margin:1em 0}.bapf_show_hide{cursor:pointer}.bapf_hideckbox li input[type=checkbox],.bapf_hideckbox li input[type=checkbox]:after,.bapf_hideckbox li input[type=checkbox]:before{display:none!important}.bapf_hideckbox li label,.bapf_hideckbox li label a{color:#428bca}.bapf_hideckbox li input:checked+label:hover,.bapf_hideckbox li input:checked+label:hover a,.bapf_hideckbox li label:hover,.bapf_hideckbox li label:hover a{color:#2a6496}.bapf_hideckbox li input:checked+label,.bapf_hideckbox li input:checked+label a{color:#222}.bapf_sfilter.bapf_button_berocket .bapf_button{font-size:20px;padding:8px 30px;border:0;line-height:28px;font-weight:600;display:inline-block;color:#fff;text-transform:uppercase;text-align:center;text-decoration:none;background-color:#f16543}.bapf_sfilter.bapf_button_berocket .bapf_button:hover{background-color:#d94825}.bapf_sfilter.bapf_colorinline li{display:inline-block!important}.bapf_sfilter .bapf_clr_span,.bapf_sfilter .bapf_img_span{display:inline-block!important;position:relative;overflow:hidden;margin:5px;height:2em;width:2em;line-height:2em;border:2px solid #000;text-align:center;vertical-align:middle;color:#222!important;text-shadow:0 0 3px #FFF,1px 0 2px #FFF,0 1px 2px #FFF,-1px 0 2px #FFF,0 -1px 2px #FFF,1px 1px 2px #FFF,1px -1px 2px #FFF,-1px 1px 2px #FFF,-1px -1px 2px #FFF;-webkit-transition:all .2s ease-out .1s;-moz-transition:all .2s ease-out .1s;-o-transition:all .2s ease-out .1s;transition:all .2s ease-out .1s}.bapf_sfilter .bapf_clr_span.h1em,.bapf_sfilter .bapf_img_span.h1em{height:1em;line-height:1em}.bapf_sfilter .bapf_clr_span.h2em,.bapf_sfilter .bapf_img_span.h2em{height:2em;line-height:2em}.bapf_sfilter .bapf_clr_span.h3em,.bapf_sfilter .bapf_img_span.h3em{height:3em;line-height:3em}.bapf_sfilter .bapf_clr_span.h4em,.bapf_sfilter .bapf_img_span.h4em{height:4em;line-height:4em}.bapf_sfilter .bapf_clr_span.h5em,.bapf_sfilter .bapf_img_span.h5em{height:5em;line-height:5em}.bapf_sfilter .bapf_clr_span.w1em,.bapf_sfilter .bapf_img_span.w1em{width:1em}.bapf_sfilter .bapf_clr_span.w2em,.bapf_sfilter .bapf_img_span.w2em{width:2em}.bapf_sfilter .bapf_clr_span.w3em,.bapf_sfilter .bapf_img_span.w3em{width:3em}.bapf_sfilter .bapf_clr_span.w4em,.bapf_sfilter .bapf_img_span.w4em{width:4em}.bapf_sfilter .bapf_clr_span.w5em,.bapf_sfilter .bapf_img_span.w5em{width:5em}.bapf_sfilter .bapf_img_span.w1em.h1em .fa,.bapf_sfilter .bapf_img_span.w1em.h2em .fa,.bapf_sfilter .bapf_img_span.w1em.h3em .fa,.bapf_sfilter .bapf_img_span.w1em.h4em .fa,.bapf_sfilter .bapf_img_span.w1em.h5em .fa,.bapf_sfilter .bapf_img_span.w2em.h1em .fa,.bapf_sfilter .bapf_img_span.w3em.h1em .fa,.bapf_sfilter .bapf_img_span.w4em.h1em .fa,.bapf_sfilter .bapf_img_span.w5em.h1em .fa{font-size:.8em}.bapf_sfilter .bapf_img_span.w2em.h2em .fa,.bapf_sfilter .bapf_img_span.w2em.h3em .fa,.bapf_sfilter .bapf_img_span.w2em.h4em .fa,.bapf_sfilter .bapf_img_span.w2em.h5em .fa,.bapf_sfilter .bapf_img_span.w3em.h2em .fa,.bapf_sfilter .bapf_img_span.w4em.h2em .fa,.bapf_sfilter .bapf_img_span.w5em.h2em .fa{font-size:1.6em}.bapf_sfilter .bapf_img_span.w3em.h3em .fa,.bapf_sfilter .bapf_img_span.w3em.h4em .fa,.bapf_sfilter .bapf_img_span.w3em.h5em .fa,.bapf_sfilter .bapf_img_span.w4em.h3em .fa,.bapf_sfilter .bapf_img_span.w5em.h3em .fa{font-size:2.4em}.bapf_sfilter .bapf_img_span.w4em.h4em .fa,.bapf_sfilter .bapf_img_span.w4em.h5em .fa,.bapf_sfilter .bapf_img_span.w5em.h4em .fa{font-size:3.2em}.bapf_sfilter .bapf_img_span.w5em.h5em .fa{font-size:4em}.bapf_sfilter .bapf_clr_span .bapf_clr_span_abslt{position:relative;z-index:100}.bapf_sfilter.brchecked_default input:checked+label .bapf_clr_span,.bapf_sfilter.brchecked_default input:checked+label .bapf_img_span,.bapf_sfilter.brchecked_rotate input:checked+label .bapf_clr_span,.bapf_sfilter.brchecked_rotate input:checked+label .bapf_img_span{-webkit-transform:rotate(15deg);-moz-transform:rotate(15deg);-ms-transform:rotate(15deg);-o-transform:rotate(15deg);transform:rotate(15deg)}.bapf_sfilter.brchecked_scale input:checked+label .bapf_clr_span,.bapf_sfilter.brchecked_scale input:checked+label .bapf_img_span{transform:scale(1.1)}.bapf_sfilter.brchecked_image_shadow input:checked+label .bapf_clr_span,.bapf_sfilter.brchecked_shadow input:checked+label .bapf_clr_span,.bapf_sfilter.brchecked_shadow input:checked+label .bapf_img_span{box-shadow:0 0 1px 3px #88F}.bapf_sfilter.brchecked_image_shadow input:checked+label .bapf_img_span{-webkit-filter:drop-shadow(0 0 2px);-moz-filter:drop-shadow(0 0 2px);-o-filter:drop-shadow(0 0 2px);filter:drop-shadow(0 0 2px)}.bapf_sfilter.brchecked_hue_rotate input:checked+label .bapf_clr_span,.bapf_sfilter.brchecked_hue_rotate input:checked+label .bapf_img_span{-webkit-filter:hue-rotate(90deg);-moz-filter:hue-rotate(90deg);-o-filter:hue-rotate(90deg);filter:hue-rotate(90deg)}.bapf_sfilter .bapf_clr_multi{position:absolute;top:0;bottom:0;left:0;right:0;z-index:2;transform:rotateZ(45deg);padding:0;margin:-2em 0;box-sizing:border-box}.bapf_sfilter .bapf_clr_multi .bapf_clr_multi_singl{position:absolute;top:-50%;bottom:-50%;padding:0;margin:0;box-shadow:none;box-sizing:border-box;border:0}.bapf_sfilter .bapf_clr_multi_2 .bapf_clr_multi_singl,.bapf_sfilter .bapf_clr_multi_3 .bapf_clr_multi_singl{width:100%}.bapf_sfilter .bapf_clr_multi_3 .bapf_clr_multi_singl_1{width:34%}.bapf_sfilter .bapf_clr_multi_3 .bapf_clr_multi_singl_0,.bapf_sfilter .bapf_clr_multi_3 .bapf_clr_multi_singl_2{width:83%}.bapf_sfilter .bapf_clr_multi_4 .bapf_clr_multi_singl{width:25%}.bapf_sfilter .bapf_clr_multi_4 .bapf_clr_multi_singl_0,.bapf_sfilter .bapf_clr_multi_4 .bapf_clr_multi_singl_3{width:75%}.bapf_sfilter .bapf_clr_multi .bapf_clr_multi_singl_0{left:-50%}.bapf_sfilter .bapf_clr_multi_2 .bapf_clr_multi_singl_1{left:50%}.bapf_sfilter .bapf_clr_multi_3 .bapf_clr_multi_singl_1{left:33%}.bapf_sfilter .bapf_clr_multi_4 .bapf_clr_multi_singl_1{left:25%}.bapf_sfilter .bapf_clr_multi_3 .bapf_clr_multi_singl_2{left:67%}.bapf_sfilter .bapf_clr_multi_4 .bapf_clr_multi_singl_2{left:50%}.bapf_sfilter .bapf_clr_multi_4 .bapf_clr_multi_singl_3{left:75%}.bapf_sfilter.bapf_clr_txt_left .bapf_img_span{margin:5px 0 5px 10px}.bapf_sfilter.bapf_clr_txt_right .bapf_img_span{margin:5px 10px 5px 0}.bapf_sfilter.bapf_clr_txt_bottom .bapf_img_span,.bapf_sfilter.bapf_clr_txt_top .bapf_img_span{margin:5px 10px}.bapf_sfilter.bapf_colorinline.bapf_clr_txt_bottom li label,.bapf_sfilter.bapf_colorinline.bapf_clr_txt_top li label{display:inline-block!important;text-align:center}.bapf_sfilter.bapf_clr_txt_bottom .bapf_clr_text,.bapf_sfilter.bapf_clr_txt_top .bapf_clr_text{display:block;margin-right:10px;margin-left:10px}.bapf_colorinline .bapf_body li{text-align:center}.bapf_img_woborder.bapf_sfilter .bapf_img_span{border:none;overflow:visible}.bapf_clr_woborder.bapf_sfilter .bapf_clr_span{border:none}.bapf_asradio2 ul li input[type=checkbox]{-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none;appearance:none;display:inline-block;vertical-align:middle;border:2px solid #555;width:15px;height:15px;outline:0;border-radius:10px;padding:2px;margin-right:5px}.bapf_asradio2 ul li input[type=checkbox]:checked{background:#555;background-clip:content-box}.bapf_slct select{width:100%;font-size:1em}.bapf_slct .select2 .select2-search__field{width:auto!important}#bapf-select2-high-zindex .select2-container{z-index:999999999!important}.bapf_sfa_inline .berocket_aapf_widget_selected_area ul li{display:inline-block;margin-left:3px!important;margin-right:3px!important}.bapf_ckbox_square input[type=checkbox]{-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none;appearance:none;display:inline-block;vertical-align:middle;border:2px solid #555;width:20px;height:20px;outline:0;padding:4px;margin-right:5px}.bapf_ckbox_square input[type=checkbox]:checked{background:#555;background-clip:content-box}
1
+ .bapf_sfilter .bapf_button,.bapf_sfilter label{cursor:pointer;display:inline-block!important}.bapf_sfilter ul li{list-style:none!important;margin:0!important;padding:0!important;max-width:100%}.bapf_sfilter .bapf_body ul li ul{margin-left:15px}.bapf_slidr_main.ui-widget-content,.berocket_filter_price_slider.ui-widget-content{background:#b0b5b9;border:0;border-radius:0;height:4px;padding:0}.bapf_slidr_main.ui-widget-content .ui-slider-range,.berocket_filter_price_slider.ui-widget-content .ui-slider-range{background:#000}.slide.default .bapf_slidr_main.ui-widget-content .ui-slider-range,.slide.default .berocket_filter_price_slider.ui-widget-content .ui-slider-range{background:#222}.slide.default .bapf_slidr_main.ui-widget-content,.slide.default .berocket_filter_price_slider.ui-widget-content{height:4px;border:1px solid #555;font-size:10px}.bapf_slidr_main.ui-widget-content .ui-slider-handle,.berocket_filter_price_slider.ui-widget-content .ui-slider-handle,.slide.default .bapf_slidr_main .ui-state-default,.slide.default .bapf_slidr_main .ui-widget-header .ui-state-default,.slide.default .bapf_slidr_main.ui-widget-content .ui-state-default,.slide.default .berocket_filter_price_slider .ui-state-default,.slide.default .berocket_filter_price_slider .ui-widget-header .ui-state-default,.slide.default .berocket_filter_price_slider.ui-widget-content .ui-state-default{background:#ddd;font-size:14px;width:1em;height:1em;border:1px solid #555;top:-6px;border-radius:2em}.berocket_aapf_widget li.slider div.slide{clear:both;height:auto;text-align:right;line-height:0}.bapf_slidr_jqrui .bapf_from,.ui-slider{text-align:left}.ui-slider{position:relative}.ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1.2em;height:1.2em;cursor:pointer;-ms-touch-action:none;touch-action:none}.ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background-position:0 0}.ui-slider.ui-state-disabled .ui-slider-handle,.ui-slider.ui-state-disabled .ui-slider-range{filter:inherit}.ui-slider-horizontal{height:.8em}.ui-slider-horizontal .ui-slider-handle{top:-.3em;margin-left:-.6em}.bapf_slidr_main>a:last-child{margin-left:-12px}.ui-slider-horizontal .ui-slider-range{top:0;height:100%}.ui-slider-horizontal .ui-slider-range-min{left:0}.ui-slider-horizontal .ui-slider-range-max{right:0}.ui-slider-vertical{width:.8em;height:100px}.ui-slider-vertical .ui-slider-handle{left:-.3em;margin-left:0;margin-bottom:-.6em}.ui-slider-vertical .ui-slider-range{left:0;width:100%}.berocket_single_filter_widget.berocket_hidden_clickable.berocket_hidden_clickable_left .bapf_sfilter.bapf_ccolaps .bapf_body,.berocket_single_filter_widget.berocket_hidden_clickable.berocket_hidden_clickable_left .berocket_aapf_widget{left:0!important}.ui-slider-vertical .ui-slider-range-min{bottom:0}.ui-slider-vertical .ui-slider-range-max{top:0}.slide .ui-corner-all,.slide .ui-corner-bottom,.slide .ui-corner-br,.slide .ui-corner-right{border-bottom-right-radius:4px}.slide .ui-corner-all,.slide .ui-corner-bl,.slide .ui-corner-bottom,.slide .ui-corner-left{border-bottom-left-radius:4px}.slide .ui-corner-all,.slide .ui-corner-right,.slide .ui-corner-top,.slide .ui-corner-tr{border-top-right-radius:4px}.slide .ui-corner-all,.slide .ui-corner-left,.slide .ui-corner-tl,.slide .ui-corner-top{border-top-left-radius:4px}ul.berocket_aapf_widget li.slider>span{cursor:initial}ul.berocket_aapf_widget li.slider .bapf_slidr_main{cursor:pointer}.slide .ui-widget-content{background:#fff;border:1px solid #aaa;color:#222}.slide .ui-state-default,.slide .ui-widget-content .ui-state-default,.slide .ui-widget-header .ui-state-default{background:#e6e6e6;border:1px solid #d3d3d3;color:#555;font-weight:400}.ui-widget.ui-datepicker{font-size:14px;z-index:9000!important}.bapf_sfilter .ui-button,.bapf_sfilter .ui-state-default,.bapf_sfilter .ui-widget-content .ui-state-default,.bapf_sfilter .ui-widget-header .ui-state-default,.bapf_sfilter .ui-widget.ui-widget-content,html .bapf_sfilter .ui-button.ui-state-disabled:active,html .bapf_sfilter .ui-button.ui-state-disabled:hover{border:0}.bapf_slidr_jqrui .bapf_slidr_all:after{content:"";display:block;clear:both}.bapf_slidr_jqrui .bapf_slidr_main{margin-bottom:10px}.bapf_slidr_jqrui .bapf_from,.bapf_slidr_jqrui .bapf_to{width:49%;display:inline-block;margin-bottom:10px;vertical-align:middle}.bapf_slidr_jqrui .bapf_from input,.bapf_slidr_jqrui .bapf_to input{width:50%;vertical-align:middle;font-size:1em;padding:0;margin:0;line-height:1em}.bapf_slidr_jqrui .bapf_to{text-align:right}.bapf_sfilter{margin-bottom:20px}.berocket_single_filter_widget.berocket_inline_clickable,.berocket_single_filter_widget.berocket_inline_filters{float:left!important;padding-right:15px!important}.berocket_single_filter_widget.berocket_inline_filters{width:12.5%!important}#berocket-ajax-filters-sidebar .berocket_single_filter_widget.berocket_hidden_clickable .berocket_aapf_widget-title_div,.berocket_single_filter_widget.berocket_hidden_clickable .berocket_aapf_widget-title_div{border:2px solid #333!important;background-color:#333!important;color:#ccc!important;padding:5px 35px 5px 5px!important;border-radius:5px!important}.berocket_single_filter_widget.berocket_hidden_clickable .berocket_aapf_widget-title_div h3{margin:0!important;padding:0!important;font-size:inherit!important;color:inherit!important}.berocket_single_filter_widget.berocket_hidden_clickable.berocket_single_filter_visible .berocket_aapf_widget-title_div{border:2px solid #ccc!important;color:#000!important;background-color:#ccc!important;border-radius:5px 5px 0 0!important;padding-bottom:10px!important}.berocket_single_filter_widget.berocket_hidden_clickable.berocket_single_filter_visible .berocket_aapf_widget-wrapper{padding-bottom:0!important}.berocket_single_filter_widget.berocket_hidden_clickable .berocket_aapf_widget{position:absolute!important;top:100%!important;width:100%!important;background-color:#fff!important;z-index:800!important;margin:0!important;border:2px solid #ccc!important;padding:5px!important;display:none}.berocket_single_filter_widget.berocket_hidden_clickable.berocket_single_filter_visible .berocket_aapf_widget{z-index:900!important}.berocket_single_filter_widget.berocket_hidden_clickable.berocket_hidden_clickable_right .berocket_aapf_widget{right:0!important}.bapf_sfilter.bapf_fhide .bapf_body ul li.bapf_hide,.bapf_sfilter.bapf_fhide.bapf_filter_hide,.berocket_single_filter_widget.bapf_mt_none{display:none!important}.berocket_element_above_products{clear:both!important;overflow:visible!important}div.berocket_single_filter_widget div.berocket_aapf_widget-wrapper *{opacity:1}@media screen and (max-width:767px){.bapf_sngl_hd_mobile{display:none!important}}@media screen and (min-width:768px) and (max-width:1024px){.bapf_sngl_hd_tablet{display:none!important}}@media screen and (min-width:1025px){.bapf_sngl_hd_desktop{display:none!important}}.berocket_aapf_widget select{overflow:auto!important}.berocket_element_above_products_after{clear:both}ul.berocket_aapf_widget li>span>input+.berocket_label_widgets::before{margin-right:6px}.berocket_element_above_products_is_hide{overflow:visible!important}.berocket_element_above_products_is_hide:after{content:"";display:block;clear:both}.berocket_ajax_filters_sidebar_toggle,.berocket_element_above_products_is_hide_toggle{width:200px!important;display:inline-block;position:relative;padding-left:25px;outline:0!important;font-size:16px;font-weight:600}.berocket_element_above_products_is_hide.br_is_hidden{opacity:0;max-height:1px;position:relative}.berocket_element_above_products_is_hide_toggle{height:20px;margin:40px 0;color:#2a2a2a}body{transition:margin-left .2s}body.berocket_ajax_filters_sidebar_active{margin-left:200px}.berocket_ajax_filters_sidebar_toggle{height:26px;margin:40px 0;text-decoration:none!important;box-sizing:border-box!important}#berocket-ajax-filters-sidebar{display:block;position:fixed;top:0;left:-350px;bottom:0;width:350px;max-width:100%;background:#fff;transition:all .2s;z-index:100000;box-sizing:border-box;overflow:auto!important}#berocket-ajax-filters-sidebar-shadow{content:"";display:none;position:fixed;top:0;left:0;bottom:0;right:0;z-index:99999;background:#000;opacity:.7}.admin-bar #berocket-ajax-filters-sidebar{top:32px}#berocket-ajax-filters-sidebar.active,#berocket-ajax-filters-sidebar.active+#berocket-ajax-filters-sidebar-shadow{left:0;display:block}#berocket-ajax-filters-sidebar .berocket_ajax_group_filter_title{padding:15px 88px 15px 15px!important;font-weight:500!important;font-size:24px!important;color:#333!important;border-bottom:1px solid #ccc!important}#berocket-ajax-filters-sidebar>div{padding:15px!important}#berocket-ajax-filters-sidebar .berocket_aapf_widget-title_div{color:#333!important;font-size:19px!important;font-weight:600!important}#berocket-ajax-filters-sidebar .berocket_aapf_widget,#berocket-ajax-filters-sidebar .berocket_aapf_widget li{margin:0!important}#berocket-ajax-filters-sidebar .berocket_aapf_widget .berocket_checkbox_color .berocket_label_widgets{margin:0 .6em .6em 0!important}#berocket-ajax-filters-sidebar-close{position:absolute!important;right:0!important;line-height:39px;padding:17px 15px 13px!important;font-family:Arial,serif!important;color:#a2a2a2}#berocket-ajax-filters-sidebar-close+*{margin-top:70px!important}#berocket-ajax-filters-sidebar-close+.berocket_ajax_group_filter_title{margin-top:0!important}@media screen and (max-width:782px){.admin-bar #berocket-ajax-filters-sidebar{top:46px}}@media screen and (max-width:600px){.admin-bar #berocket-ajax-filters-sidebar{top:0}}.berocket_aapf_widget-wrapper .slider:not(.flickity-enabled){overflow:initial;white-space:initial}.select2-container{z-index:999}.bapf_sfilter .bapf_body .mCSB_container>ul,.bapf_sfilter .bapf_body>ul{margin-left:0;margin-top:0!important;margin-bottom:0!important}.bapf_sfilter.bapf_vpr_1 .bapf_body ul,.bapf_sfilter.bapf_vpr_2 .bapf_body ul,.bapf_sfilter.bapf_vpr_3 .bapf_body ul,.bapf_sfilter.bapf_vpr_4 .bapf_body ul{display:flex;flex-wrap:wrap}.bapf_sfilter.bapf_vpr_1 .bapf_body ul>li,.bapf_sfilter.bapf_vpr_2 .bapf_body ul>li,.bapf_sfilter.bapf_vpr_3 .bapf_body ul>li,.bapf_sfilter.bapf_vpr_4 .bapf_body ul>li{white-space:nowrap;flex-grow:1}.bapf_sfilter.bapf_vpr_1 .bapf_body ul>li{flex-basis:100%}.bapf_sfilter.bapf_vpr_2 .bapf_body ul>li{flex-basis:50%}.bapf_sfilter.bapf_vpr_3 .bapf_body ul>li{flex-basis:33%}.bapf_sfilter.bapf_vpr_4 .bapf_body ul>li{flex-basis:25%}.bapf_sfilter.bapf_vpr_1 .bapf_body ul>li label,.bapf_sfilter.bapf_vpr_2 .bapf_body ul>li label,.bapf_sfilter.bapf_vpr_3 .bapf_body ul>li label,.bapf_sfilter.bapf_vpr_4 .bapf_body ul>li label{white-space:initial}.bapf_sfilter .bapf_hascolarr,.bapf_sfilter .bapf_hasdesc{position:relative;padding-right:25px;display:flex;align-items:center}.bapf_sfilter .bapf_hascolarr.bapf_hasdesc{padding-right:45px}.bapf_sfilter .bapf_colaps_smb,.bapf_sfilter .bapf_desci{position:absolute;right:0;line-height:inherit;font-size:16px;cursor:pointer}.bapf_sfilter .bapf_desci{padding:4px 8px}.bapf_sfilter .bapf_hasdesc .bapf_colaps_smb{right:25px}.bapf_sfilter .bapf_cchild,.bapf_sfilter .bapf_ochild{cursor:pointer;padding:0 5px}#berocket-ajax-filters-sidebar .berocket_single_filter_widget.berocket_hidden_clickable .bapf_sfilter .bapf_head,.berocket_single_filter_widget.berocket_hidden_clickable .bapf_sfilter .bapf_head{border:2px solid #333!important;background-color:#333!important;color:#ccc!important;padding:5px!important;border-radius:5px!important}.berocket_single_filter_widget.berocket_hidden_clickable .berocket_widget_has_description .berocket_aapf_widget-title_div{padding-right:55px!important}.berocket_single_filter_widget.berocket_hidden_clickable .berocket_aapf_widget-wrapper{padding-bottom:5px!important}.berocket_single_filter_widget.berocket_hidden_clickable .bapf_sfilter .bapf_head{cursor:pointer}.berocket_single_filter_widget.berocket_hidden_clickable .bapf_sfilter .bapf_head h3{margin:0;font-size:inherit!important;color:inherit!important}.berocket_single_filter_widget.berocket_hidden_clickable .bapf_sfilter{position:relative!important}.berocket_single_filter_widget.berocket_hidden_clickable .bapf_sfilter.bapf_ccolaps .bapf_head{border:2px solid #ccc!important;color:#000!important;background-color:#ccc!important;border-radius:5px 5px 0 0!important;padding-bottom:5px!important}.berocket_single_filter_widget.berocket_hidden_clickable .bapf_sfilter .bapf_body{position:absolute!important;top:100%!important;width:100%!important;background-color:#fff!important;z-index:800!important;margin:0!important;border:2px solid #ccc!important;padding:5px!important}.berocket_single_filter_widget.berocket_hidden_clickable.berocket_hidden_clickable_right .bapf_sfilter.bapf_ccolaps .bapf_body{right:0!important}@media screen and (max-width:767px){.berocket_single_filter_widget.berocket_hidden_clickable.berocket_single_filter_visible{position:fixed!important;top:0!important;left:0!important;bottom:0!important;right:0!important;z-index:9000000000!important;background-color:#fff!important;overflow:auto!important}.berocket_single_filter_widget.berocket_hidden_clickable.berocket_single_filter_visible .berocket_aapf_widget{border:0!important;width:100%!important;max-width:100%!important}.berocket_single_filter_widget.berocket_hidden_clickable.berocket_single_filter_visible .berocket_aapf_widget_show.mobile_hide{display:block!important}.berocket_single_filter_widget.berocket_hidden_clickable.berocket_single_filter_visible .berocket_aapf_widget_show.mobile_hide .fa-angle-left:before,.berocket_single_filter_widget.berocket_hidden_clickable.berocket_single_filter_visible .berocket_aapf_widget_show.mobile_hide .fa-angle-right:before{content:"\f00d"!important}.berocket_single_filter_widget.berocket_hidden_clickable.berocket_single_filter_visible .berocket_aapf_description{display:none!important}body .select2-container,body .ui-widget.ui-datepicker{z-index:9000000009!important}}@keyframes bapf_loader{from{transform:rotate(0)}to{transform:rotate(360deg)}}.bapf_loader_page{position:fixed;top:0;left:0;bottom:0;right:0;background-color:rgba(255,255,255,.5);z-index:9999}.bapf_loader_page .bapf_lcontainer{position:absolute;top:50%;margin:-20px 0 0 -20px;left:50%;width:30px;height:30px;padding:0}.bapf_lcontainer .bapf_loader{width:100%;height:100%;display:block;transform:rotate(0);animation:1s linear 0s infinite bapf_loader;position:relative}.bapf_lcontainer .bapf_loader .bapf_lfirst,.bapf_lcontainer .bapf_loader .bapf_lsecond{position:absolute;width:10px;height:10px;background:#000;background:linear-gradient(45deg,#000,transparent);display:block;border-radius:6px}.bapf_lcontainer .bapf_loader .bapf_lfirst{bottom:0;right:0}.bapf_lcontainer .bapf_loader .bapf_lsecond{top:0;left:0;transform:rotate(180deg)}.bapf_lcontainer .bapf_labove,.bapf_lcontainer .bapf_lbelow{position:absolute;display:block;text-align:center;width:80vw;left:calc(15px - 40vw)}.bapf_lcontainer .bapf_labove{bottom:120%}.bapf_lcontainer .bapf_lbelow{top:120%}.bapf_lcontainer .bapf_lafter,.bapf_lcontainer .bapf_lbefore{position:absolute;top:50%;margin-top:-15px;height:30px;line-height:30px;vertical-align:middle;white-space:nowrap}.bapf_lcontainer .bapf_lbefore{right:120%}.bapf_lcontainer .bapf_lafter{left:120%}.bapf_lcontainer .bapf_limg{width:100%;height:100%}.berocket_single_filter_widget .tippy-tooltip,.berocket_single_filter_widget .tippy-tooltip .tippy-content{font-size:1em}@media only screen and (max-device-width:767px){.bapf_hide_mobile{display:none!important}}.bapf_sfilter .bapf_button{font-size:1em}.bapf_sfilter .rightpcs{float:right}.bapf_sfilter .right2empcs{padding-left:10px}#bapf_footer_clrimg>div,#bapf_footer_count_before>div,#bapf_footer_description>div{z-index:999999999999!important}.bapf_sfilter.bapf_ckbox input[type=checkbox]{margin-right:5px}.bapf_sfilter.bapf_ckbox input[type=checkbox],.bapf_sfilter.bapf_ckbox label{vertical-align:middle}.select2-container--classic input[type=search],.select2-container--classic input[type=search]:focus{background-color:initial}.berocket_search_box_block{position:relative;padding:.5em}.berocket_search_box_block .berocket_search_box_background_all{position:relative;z-index:200}.berocket_search_box_block .berocket_search_box_background{z-index:100;position:absolute;top:0;bottom:0;left:0;right:0}.berocket_search_box_block select{min-width:100%}.berocket_search_box_button{cursor:pointer;display:block;text-align:center;padding:5px 0}.berocket_search_box_block .berocket_aapf_widget-wrapper ul{margin:0}.berocket_search_box_block .berocket_aapf_widget-wrapper{margin:1em 0}.bapf_show_hide{cursor:pointer}.bapf_hideckbox li input[type=checkbox],.bapf_hideckbox li input[type=checkbox]:after,.bapf_hideckbox li input[type=checkbox]:before{display:none!important}.bapf_hideckbox li label,.bapf_hideckbox li label a{color:#428bca}.bapf_hideckbox li input:checked+label:hover,.bapf_hideckbox li input:checked+label:hover a,.bapf_hideckbox li label:hover,.bapf_hideckbox li label:hover a{color:#2a6496}.bapf_hideckbox li input:checked+label,.bapf_hideckbox li input:checked+label a{color:#222}.bapf_sfilter.bapf_clr_txt_left .bapf_body ul,.bapf_sfilter.bapf_clr_txt_right .bapf_body ul{width:100%;flex-basis:100%}.bapf_sfilter.bapf_clr_txt_left .bapf_body ul li,.bapf_sfilter.bapf_clr_txt_right .bapf_body ul li{display:flex;align-items:center;flex-wrap:wrap}.bapf_sfilter.bapf_clr_txt_left .bapf_body ul li label,.bapf_sfilter.bapf_clr_txt_right .bapf_body ul li label{display:flex!important;flex-direction:row!important;align-items:center!important}.bapf_sfilter.bapf_clr_txt_left .bapf_body ul li label .bapf_clr_span,.bapf_sfilter.bapf_clr_txt_left .bapf_body ul li label .bapf_img_span,.bapf_sfilter.bapf_clr_txt_right .bapf_body ul li label .bapf_clr_span,.bapf_sfilter.bapf_clr_txt_right .bapf_body ul li label .bapf_img_span{flex-shrink:0}.bapf_sfilter.bapf_button_berocket .bapf_button{font-size:20px;padding:8px 30px;border:0;line-height:28px;font-weight:600;display:inline-block;color:#fff;text-transform:uppercase;text-align:center;text-decoration:none;background-color:#f16543}.bapf_sfilter.bapf_button_berocket .bapf_button:hover{background-color:#d94825}.bapf_sfilter.bapf_colorinline li{display:inline-block!important}.bapf_sfilter .bapf_clr_span,.bapf_sfilter .bapf_img_span{display:inline-block!important;position:relative;overflow:hidden;margin:5px;height:2em;width:2em;line-height:2em;border:2px solid #000;text-align:center;vertical-align:middle;color:#222!important;text-shadow:0 0 3px #FFF,1px 0 2px #FFF,0 1px 2px #FFF,-1px 0 2px #FFF,0 -1px 2px #FFF,1px 1px 2px #FFF,1px -1px 2px #FFF,-1px 1px 2px #FFF,-1px -1px 2px #FFF;-webkit-transition:all .2s ease-out .1s;-moz-transition:all .2s ease-out .1s;-o-transition:all .2s ease-out .1s;transition:all .2s ease-out .1s}.bapf_sfilter .bapf_clr_span.h1em,.bapf_sfilter .bapf_img_span.h1em{height:1em;line-height:1em}.bapf_sfilter .bapf_clr_span.h2em,.bapf_sfilter .bapf_img_span.h2em{height:2em;line-height:2em}.bapf_sfilter .bapf_clr_span.h3em,.bapf_sfilter .bapf_img_span.h3em{height:3em;line-height:3em}.bapf_sfilter .bapf_clr_span.h4em,.bapf_sfilter .bapf_img_span.h4em{height:4em;line-height:4em}.bapf_sfilter .bapf_clr_span.h5em,.bapf_sfilter .bapf_img_span.h5em{height:5em;line-height:5em}.bapf_sfilter .bapf_clr_span.w1em,.bapf_sfilter .bapf_img_span.w1em{width:1em}.bapf_sfilter .bapf_clr_span.w2em,.bapf_sfilter .bapf_img_span.w2em{width:2em}.bapf_sfilter .bapf_clr_span.w3em,.bapf_sfilter .bapf_img_span.w3em{width:3em}.bapf_sfilter .bapf_clr_span.w4em,.bapf_sfilter .bapf_img_span.w4em{width:4em}.bapf_sfilter .bapf_clr_span.w5em,.bapf_sfilter .bapf_img_span.w5em{width:5em}.bapf_sfilter .bapf_img_span.w1em.h1em .fa,.bapf_sfilter .bapf_img_span.w1em.h2em .fa,.bapf_sfilter .bapf_img_span.w1em.h3em .fa,.bapf_sfilter .bapf_img_span.w1em.h4em .fa,.bapf_sfilter .bapf_img_span.w1em.h5em .fa,.bapf_sfilter .bapf_img_span.w2em.h1em .fa,.bapf_sfilter .bapf_img_span.w3em.h1em .fa,.bapf_sfilter .bapf_img_span.w4em.h1em .fa,.bapf_sfilter .bapf_img_span.w5em.h1em .fa{font-size:.8em}.bapf_sfilter .bapf_img_span.w2em.h2em .fa,.bapf_sfilter .bapf_img_span.w2em.h3em .fa,.bapf_sfilter .bapf_img_span.w2em.h4em .fa,.bapf_sfilter .bapf_img_span.w2em.h5em .fa,.bapf_sfilter .bapf_img_span.w3em.h2em .fa,.bapf_sfilter .bapf_img_span.w4em.h2em .fa,.bapf_sfilter .bapf_img_span.w5em.h2em .fa{font-size:1.6em}.bapf_sfilter .bapf_img_span.w3em.h3em .fa,.bapf_sfilter .bapf_img_span.w3em.h4em .fa,.bapf_sfilter .bapf_img_span.w3em.h5em .fa,.bapf_sfilter .bapf_img_span.w4em.h3em .fa,.bapf_sfilter .bapf_img_span.w5em.h3em .fa{font-size:2.4em}.bapf_sfilter .bapf_img_span.w4em.h4em .fa,.bapf_sfilter .bapf_img_span.w4em.h5em .fa,.bapf_sfilter .bapf_img_span.w5em.h4em .fa{font-size:3.2em}.bapf_sfilter .bapf_img_span.w5em.h5em .fa{font-size:4em}.bapf_sfilter .bapf_clr_span .bapf_clr_span_abslt{position:relative;z-index:100}.bapf_sfilter.brchecked_default input:checked+label .bapf_clr_span,.bapf_sfilter.brchecked_default input:checked+label .bapf_img_span,.bapf_sfilter.brchecked_rotate input:checked+label .bapf_clr_span,.bapf_sfilter.brchecked_rotate input:checked+label .bapf_img_span{-webkit-transform:rotate(15deg);-moz-transform:rotate(15deg);-ms-transform:rotate(15deg);-o-transform:rotate(15deg);transform:rotate(15deg)}.bapf_sfilter.brchecked_scale input:checked+label .bapf_clr_span,.bapf_sfilter.brchecked_scale input:checked+label .bapf_img_span{transform:scale(1.1)}.bapf_sfilter.brchecked_image_shadow input:checked+label .bapf_clr_span,.bapf_sfilter.brchecked_shadow input:checked+label .bapf_clr_span,.bapf_sfilter.brchecked_shadow input:checked+label .bapf_img_span{box-shadow:0 0 1px 3px #88F}.bapf_sfilter.brchecked_image_shadow input:checked+label .bapf_img_span{-webkit-filter:drop-shadow(0 0 2px);-moz-filter:drop-shadow(0 0 2px);-o-filter:drop-shadow(0 0 2px);filter:drop-shadow(0 0 2px)}.bapf_sfilter.brchecked_hue_rotate input:checked+label .bapf_clr_span,.bapf_sfilter.brchecked_hue_rotate input:checked+label .bapf_img_span{-webkit-filter:hue-rotate(90deg);-moz-filter:hue-rotate(90deg);-o-filter:hue-rotate(90deg);filter:hue-rotate(90deg)}.bapf_sfilter .bapf_clr_multi{position:absolute;top:0;bottom:0;left:0;right:0;z-index:2;transform:rotateZ(45deg);padding:0;margin:-2em 0;box-sizing:border-box}.bapf_sfilter .bapf_clr_multi .bapf_clr_multi_singl{position:absolute;top:-50%;bottom:-50%;padding:0;margin:0;box-shadow:none;box-sizing:border-box;border:0}.bapf_sfilter .bapf_clr_multi_2 .bapf_clr_multi_singl,.bapf_sfilter .bapf_clr_multi_3 .bapf_clr_multi_singl{width:100%}.bapf_sfilter .bapf_clr_multi_3 .bapf_clr_multi_singl_1{width:34%}.bapf_sfilter .bapf_clr_multi_3 .bapf_clr_multi_singl_0,.bapf_sfilter .bapf_clr_multi_3 .bapf_clr_multi_singl_2{width:83%}.bapf_sfilter .bapf_clr_multi_4 .bapf_clr_multi_singl{width:25%}.bapf_sfilter .bapf_clr_multi_4 .bapf_clr_multi_singl_0,.bapf_sfilter .bapf_clr_multi_4 .bapf_clr_multi_singl_3{width:75%}.bapf_sfilter .bapf_clr_multi .bapf_clr_multi_singl_0{left:-50%}.bapf_sfilter .bapf_clr_multi_2 .bapf_clr_multi_singl_1{left:50%}.bapf_sfilter .bapf_clr_multi_3 .bapf_clr_multi_singl_1{left:33%}.bapf_sfilter .bapf_clr_multi_4 .bapf_clr_multi_singl_1{left:25%}.bapf_sfilter .bapf_clr_multi_3 .bapf_clr_multi_singl_2{left:67%}.bapf_sfilter .bapf_clr_multi_4 .bapf_clr_multi_singl_2{left:50%}.bapf_sfilter .bapf_clr_multi_4 .bapf_clr_multi_singl_3{left:75%}.bapf_sfilter.bapf_clr_txt_left .bapf_img_span{margin:5px 0 5px 10px}.bapf_sfilter.bapf_clr_txt_right .bapf_img_span{margin:5px 10px 5px 0}.bapf_sfilter.bapf_clr_txt_bottom .bapf_img_span,.bapf_sfilter.bapf_clr_txt_top .bapf_img_span{margin:5px 10px}.bapf_sfilter.bapf_colorinline.bapf_clr_txt_bottom li label,.bapf_sfilter.bapf_colorinline.bapf_clr_txt_top li label{display:inline-block!important;text-align:center}.bapf_sfilter.bapf_clr_txt_bottom .bapf_clr_text,.bapf_sfilter.bapf_clr_txt_top .bapf_clr_text{display:block;margin-right:10px;margin-left:10px}.bapf_colorinline .bapf_body li{text-align:center}.bapf_img_woborder.bapf_sfilter .bapf_img_span{border:none;overflow:visible}.bapf_clr_woborder.bapf_sfilter .bapf_clr_span{border:none}.bapf_asradio2 ul li input[type=checkbox]{-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none;appearance:none;display:inline-block;vertical-align:middle;border:2px solid #555;width:15px;height:15px;outline:0;border-radius:10px;padding:2px;margin-right:5px}.bapf_asradio2 ul li input[type=checkbox]:checked{background:#555;background-clip:content-box}.bapf_slct select{width:100%;font-size:1em}.bapf_slct .select2 .select2-search__field{width:auto!important}#bapf-select2-high-zindex .select2-container{z-index:999999999!important}.bapf_sfa_inline .berocket_aapf_widget_selected_area ul li{display:inline-block;margin-left:3px!important;margin-right:3px!important}.bapf_ckbox_square input[type=checkbox]{-webkit-appearance:none;-moz-appearance:none;-ms-appearance:none;appearance:none;display:inline-block;vertical-align:middle;border:2px solid #555;width:20px;height:20px;outline:0;padding:4px;margin-right:5px}.bapf_ckbox_square input[type=checkbox]:checked{background:#555;background-clip:content-box}
assets/frontend/js/fullmain.min.js CHANGED
@@ -6,5 +6,5 @@ f.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}})}),!function(a){f
6
  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){var b=a[0],c=this.$selection.find(".select2-selection__rendered"),d=this.display(b,c);c.empty().append(d);var e=b.title||b.text;e?c.attr("title",e):c.removeAttr("title")}else this.clear()},e}),i.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,e){var f=this;d.__super__.bind.apply(this,arguments),this.$selection.on("click",function(a){f.trigger("toggle",{originalEvent:a})}),this.$selection.on("click",".select2-selection__choice__remove",function(b){if(!f.isDisabled()){var d=a(this).parent(),e=c.GetData(d[0],"data");f.trigger("unselect",{originalEvent:b,data:e})}})},d.prototype.clear=function(){var a=this.$selection.find(".select2-selection__rendered");a.empty(),a.removeAttr("title")},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">&times;</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);var h=e.title||e.text;h&&f.attr("title",h),c.StoreData(f[0],"data",e),b.push(f)}var i=this.$selection.find(".select2-selection__rendered");c.appendMany(i,b)}},d}),i.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(1<b.length||c)return a.call(this,b);this.clear();var d=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(d)},b}),i.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(a,b,c){function d(){}return d.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)})},d.prototype._handleClear=function(a,b){if(!this.isDisabled()){var d=this.$selection.find(".select2-selection__clear");if(0!==d.length){b.stopPropagation();var e=c.GetData(d[0],"data"),f=this.$element.val();this.$element.val(this.placeholder.id);var g={data:e};if(this.trigger("clear",g),g.prevented)this.$element.val(f);else{for(var h=0;h<e.length;h++)if(g={data:e[h]},this.trigger("unselect",g),g.prevented)return void this.$element.val(f);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},d.prototype._handleKeyboardClear=function(a,c,d){d.isOpen()||c.which!=b.DELETE&&c.which!=b.BACKSPACE||this._handleClear(c)},d.prototype.update=function(b,d){if(b.call(this,d),!(0<this.$selection.find(".select2-selection__placeholder").length||0===d.length)){var e=this.options.get("translations").get("removeAllItems"),f=a('<span class="select2-selection__clear" title="'+e()+'">&times;</span>');c.StoreData(f[0],"data",d),this.$selection.find(".select2-selection__rendered").prepend(f)}},d}),i.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="none" spellcheck="false" role="searchbox" 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,d,e){var f=this,g=d.id+"-results";a.call(this,d,e),d.on("open",function(){f.$search.attr("aria-controls",g),f.$search.trigger("focus")}),d.on("close",function(){f.$search.val(""),f.$search.removeAttr("aria-controls"),f.$search.removeAttr("aria-activedescendant"),f.$search.trigger("focus")}),d.on("enable",function(){f.$search.prop("disabled",!1),f._transferTabIndex()}),d.on("disable",function(){f.$search.prop("disabled",!0)}),d.on("focus",function(a){f.$search.trigger("focus")}),d.on("results:focus",function(a){a.data._resultId?f.$search.attr("aria-activedescendant",a.data._resultId):f.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(a){f.trigger("focus",a)}),this.$selection.on("focusout",".select2-search--inline",function(a){f._handleBlur(a)}),this.$selection.on("keydown",".select2-search--inline",function(a){if(a.stopPropagation(),f.trigger("keypress",a),f._keyUpPrevented=a.isDefaultPrevented(),a.which===c.BACKSPACE&&""===f.$search.val()){var d=f.$searchContainer.prev(".select2-selection__choice");if(0<d.length){var e=b.GetData(d[0],"data");f.searchRemoveChoice(e),a.preventDefault()}}}),this.$selection.on("click",".select2-search--inline",function(a){f.$search.val()&&a.stopPropagation()});var h=document.documentMode,i=h&&h<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(a){i?f.$selection.off("input.search input.searchcheck"):f.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(a){if(i&&"input"===a.type)f.$selection.off("input.search input.searchcheck");else{var b=a.which;b!=c.SHIFT&&b!=c.CTRL&&b!=c.ALT&&b!=c.TAB&&f.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.trigger("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="";a=""!==this.$search.attr("placeholder")?this.$selection.find(".select2-selection__rendered").width():.75*(this.$search.val().length+1)+"em",this.$search.css("width",a)},d}),i.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","clear","clearing"],g=["opening","closing","selecting","unselecting","clearing"];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}),i.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}),i.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","Œ":"OE","Ƣ":"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","œ":"oe","ƣ":"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","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}}),i.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}),i.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("input").trigger("change");if(this.$element.prop("multiple"))this.current(function(d){var e=[];(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("input").trigger("change")});else{var d=a.id;this.$element.val(d),this.$element.trigger("input").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("input").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("input").trigger("change")})}},d.prototype.bind=function(a,b){var c=this;(this.container=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(){b.RemoveData(this)})},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 d;a.children?(d=document.createElement("optgroup")).label=a.text:void 0!==(d=document.createElement("option")).textContent?d.textContent=a.text:d.innerText=a.text,void 0!==a.id&&(d.value=a.id),a.disabled&&(d.disabled=!0),a.selected&&(d.selected=!0),a.title&&(d.title=a.title);var e=c(d),f=this._normalizeItem(a);return f.element=d,b.StoreData(d,"data",f),e},d.prototype.item=function(a){var d={};if(null!=(d=b.GetData(a[0],"data")))return d;if(a.is("option"))d={id:a.val(),text:a.text(),disabled:a.prop("disabled"),selected:a.prop("selected"),title:a.prop("title")};else if(a.is("optgroup")){d={text:a.prop("label"),children:[],title:a.prop("title")};for(var e=a.children("option"),f=[],g=0;g<e.length;g++){var h=c(e[g]),i=this.item(h);f.push(i)}d.children=f}return(d=this._normalizeItem(d)).element=a[0],b.StoreData(a[0],"data",d),d},d.prototype._normalizeItem=function(a){return a!==Object(a)&&(a={id:a,text:a}),null!=(a=c.extend({},{text:""},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({},{selected:!1,disabled:!1},a)},d.prototype.matches=function(a,b){return this.options.get("matcher")(a,b)},d}),i.define("select2/data/array",["./select","../utils","jquery"],function(a,b,c){function d(a,b){this._dataToConvert=b.get("data")||[],d.__super__.constructor.call(this,a,b)}return b.Extend(d,a),d.prototype.bind=function(a,b){d.__super__.bind.call(this,a,b),this.addOptions(this.convertToOptions(this._dataToConvert))},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(0<=c.inArray(j.id,g)){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}),i.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(){"status"in d&&(0===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}),i.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){var d=this;this._removeOldTags(),null!=b.term&&null==b.page?a.call(this,b,function a(e,f){for(var g=e.results,h=0;h<g.length;h++){var i=g[h],j=null!=i.children&&!a({results:i.children},!0);if((i.text||"").toUpperCase()===(b.term||"").toUpperCase()||j)return!f&&(e.data=g,void c(e))}if(f)return!0;var k=d.createTag(b);if(null!=k){var l=d.option(k);l.attr("data-select2-tag",!0),d.addOptions([l]),d.insertTag(g,k)}e.results=g,c(e)}):a.call(this,b,c)},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.$element.find("option[data-select2-tag]").each(function(){this.selected||a(this).remove()})},b}),i.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){var e=this;c.term=c.term||"";var f=this.tokenizer(c,this.options,function(b){var c,d=e._normalizeItem(b);if(!e.$element.find("option").filter(function(){return a(this).val()===d.id}).length){var f=e.option(d);f.attr("data-select2-tag",!0),e._removeOldTags(),e.addOptions([f])}c=d,e.trigger("select",{data:c})});f.term!==c.term&&(this.$search.length&&(this.$search.val(f.term),this.$search.trigger("focus")),c.term=f.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=i(a.extend({},c,{term:k}));null!=l?(e(l),g=g.substr(h+1)||"",h=0):h++}else h++}return{term:g}},b}),i.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){b.term=b.term||"",b.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:b.term,params:b}}):a.call(this,b,c)},a}),i.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){b.term=b.term||"",0<this.maximumInputLength&&b.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:b.term,params:b}}):a.call(this,b,c)},a}),i.define("select2/data/maximumSelectionLength",[],function(){function a(a,b,c){this.maximumSelectionLength=c.get("maximumSelectionLength"),a.call(this,b,c)}return a.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),b.on("select",function(){d._checkIfMaximumSelected()})},a.prototype.query=function(a,b,c){var d=this;this._checkIfMaximumSelected(function(){a.call(d,b,c)})},a.prototype._checkIfMaximumSelected=function(a,b){var c=this;this.current(function(a){var d=null!=a?a.length:0;0<c.maximumSelectionLength&&d>=c.maximumSelectionLength?c.trigger("results:message",{message:"maximumSelected",args:{maximum:c.maximumSelectionLength}}):b&&b()})},a}),i.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},c.prototype.bind=function(){},c.prototype.position=function(a,b){},c.prototype.destroy=function(){this.$dropdown.remove()},c}),i.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="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></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-controls",f),e.$search.trigger("focus"),window.setTimeout(function(){e.$search.trigger("focus")},0)}),c.on("close",function(){e.$search.attr("tabindex",-1),e.$search.removeAttr("aria-controls"),e.$search.removeAttr("aria-activedescendant"),e.$search.val(""),e.$search.trigger("blur")}),c.on("focus",function(){c.isOpen()||e.$search.trigger("focus")}),c.on("results:all",function(a){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){a.data._resultId?e.$search.attr("aria-activedescendant",a.data._resultId):e.$search.removeAttr("aria-activedescendant")})},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}),i.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;0<=d;d--){var e=b[d];this.placeholder.id===e.id&&c.splice(d,1)}return c},a}),i.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),this.loadMoreIfNeeded())},b.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),b.on("query",function(a){d.lastParams=a,d.loading=!0}),b.on("query:append",function(a){d.lastParams=a,d.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},b.prototype.loadMoreIfNeeded=function(){var b=a.contains(document.documentElement,this.$loadingMore[0]);if(!this.loading&&b){var c=this.$results.offset().top+this.$results.outerHeight(!1);this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=c+50&&this.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}),i.define("select2/dropdown/attachBody",["jquery","../utils"],function(a,b){function c(b,c,d){this.$dropdownParent=a(d.get("dropdownParent")||document.body),b.call(this,c,d)}return c.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),b.on("open",function(){d._showDropdown(),d._attachPositioningHandler(b),d._bindContainerResultHandlers(b)}),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.prototype._hideDropdown=function(a){this.$dropdownContainer.detach()},c.prototype._bindContainerResultHandlers=function(a,b){if(!this._containerResultsHandlersBound){var c=this;b.on("results:all",function(){c._positionDropdown(),c._resizeDropdown()}),b.on("results:append",function(){c._positionDropdown(),c._resizeDropdown()}),b.on("results:message",function(){c._positionDropdown(),c._resizeDropdown()}),b.on("select",function(){c._positionDropdown(),c._resizeDropdown()}),b.on("unselect",function(){c._positionDropdown(),c._resizeDropdown()}),this._containerResultsHandlersBound=!0}},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(){b.StoreData(this,"select2-scroll-position",{x:a(this).scrollLeft(),y:a(this).scrollTop()})}),i.on(f,function(c){var d=b.GetData(this,"select2-scroll-position");a(this).scrollTop(d.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=this.$dropdown.outerHeight(!1),i=b.scrollTop(),j=b.scrollTop()+b.height(),k=i<f.top-h,l=j>f.bottom+h,m={left:f.left,top:g.bottom},n=this.$dropdownParent;"static"===n.css("position")&&(n=n.offsetParent());var o={top:0,left:0};(a.contains(document.body,n[0])||n[0].isConnected)&&(o=n.offset()),m.top-=o.top,m.left-=o.left,c||d||(e="below"),l||!k||c?!k&&l&&c&&(e="below"):e="above",("above"==e||c&&"below"!==e)&&(m.top=g.top-o.top-h),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)),
7
  this.$dropdownContainer.css(m)},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}),i.define("select2/dropdown/minimumResultsForSearch",[],function(){function a(a,b,c,d){this.minimumResultsForSearch=c.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),a.call(this,b,c,d)}return a.prototype.showSearch=function(a,b){return!(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}(b.data.results)<this.minimumResultsForSearch)&&a.call(this,b)},a}),i.define("select2/dropdown/selectOnClose",["../utils"],function(a){function b(){}return b.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),b.on("close",function(a){d._handleSelectOnClose(a)})},b.prototype._handleSelectOnClose=function(b,c){if(c&&null!=c.originalSelect2Event){var d=c.originalSelect2Event;if("select"===d._type||"unselect"===d._type)return}var e=this.getHighlightedResults();if(!(e.length<1)){var f=a.GetData(e[0],"data");null!=f.element&&f.element.selected||null==f.element&&f.selected||this.trigger("select",{data:f})}},b}),i.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||c.metaKey)||this.trigger("close",{originalEvent:c,originalSelect2Event:b})},a}),i.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…"},removeAllItems:function(){return"Remove all items"}}}),i.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(k){if(null==(k=a.extend(!0,{},this.defaults,k)).dataAdapter){if(null!=k.ajax?k.dataAdapter=o:null!=k.data?k.dataAdapter=n:k.dataAdapter=m,0<k.minimumInputLength&&(k.dataAdapter=j.Decorate(k.dataAdapter,r)),0<k.maximumInputLength&&(k.dataAdapter=j.Decorate(k.dataAdapter,s)),0<k.maximumSelectionLength&&(k.dataAdapter=j.Decorate(k.dataAdapter,t)),k.tags&&(k.dataAdapter=j.Decorate(k.dataAdapter,p)),null==k.tokenSeparators&&null==k.tokenizer||(k.dataAdapter=j.Decorate(k.dataAdapter,q)),null!=k.query){var l=b(k.amdBase+"compat/query");k.dataAdapter=j.Decorate(k.dataAdapter,l)}if(null!=k.initSelection){var C=b(k.amdBase+"compat/initSelection");k.dataAdapter=j.Decorate(k.dataAdapter,C)}}if(null==k.resultsAdapter&&(k.resultsAdapter=c,null!=k.ajax&&(k.resultsAdapter=j.Decorate(k.resultsAdapter,x)),null!=k.placeholder&&(k.resultsAdapter=j.Decorate(k.resultsAdapter,w)),k.selectOnClose&&(k.resultsAdapter=j.Decorate(k.resultsAdapter,A))),null==k.dropdownAdapter){if(k.multiple)k.dropdownAdapter=u;else{var D=j.Decorate(u,v);k.dropdownAdapter=D}if(0!==k.minimumResultsForSearch&&(k.dropdownAdapter=j.Decorate(k.dropdownAdapter,z)),k.closeOnSelect&&(k.dropdownAdapter=j.Decorate(k.dropdownAdapter,B)),null!=k.dropdownCssClass||null!=k.dropdownCss||null!=k.adaptDropdownCssClass){var E=b(k.amdBase+"compat/dropdownCss");k.dropdownAdapter=j.Decorate(k.dropdownAdapter,E)}k.dropdownAdapter=j.Decorate(k.dropdownAdapter,y)}if(null==k.selectionAdapter){if(k.multiple?k.selectionAdapter=e:k.selectionAdapter=d,null!=k.placeholder&&(k.selectionAdapter=j.Decorate(k.selectionAdapter,f)),k.allowClear&&(k.selectionAdapter=j.Decorate(k.selectionAdapter,g)),k.multiple&&(k.selectionAdapter=j.Decorate(k.selectionAdapter,h)),null!=k.containerCssClass||null!=k.containerCss||null!=k.adaptContainerCssClass){var F=b(k.amdBase+"compat/containerCss");k.selectionAdapter=j.Decorate(k.selectionAdapter,F)}k.selectionAdapter=j.Decorate(k.selectionAdapter,i)}k.language=this._resolveLanguage(k.language),k.language.push("en");for(var G=[],H=0;H<k.language.length;H++){var I=k.language[H];-1===G.indexOf(I)&&G.push(I)}return k.language=G,k.translations=this._processTranslations(k.language,k.debug),k},D.prototype.reset=function(){function b(a){return a.replace(/[^\u0000-\u007E]/g,function(a){return l[a]||a})}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:j.escapeMarkup,language:{},matcher:function c(d,e){if(""===a.trim(d.term))return e;if(e.children&&0<e.children.length){for(var f=a.extend(!0,{},e),g=e.children.length-1;0<=g;g--)null==c(d,e.children[g])&&f.children.splice(g,1);return 0<f.children.length?f:c(d,f)}var h=b(e.text).toUpperCase(),i=b(d.term).toUpperCase();return-1<h.indexOf(i)?e:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(a){return a},templateResult:function(a){return a.text},templateSelection:function(a){return a.text},theme:"default",width:"resolve"}},D.prototype.applyFromElement=function(a,b){var c=a.language,d=this.defaults.language,e=b.prop("lang"),f=b.closest("[lang]").prop("lang"),g=Array.prototype.concat.call(this._resolveLanguage(e),this._resolveLanguage(c),this._resolveLanguage(d),this._resolveLanguage(f));return a.language=g,a},D.prototype._resolveLanguage=function(b){if(!b)return[];if(a.isEmptyObject(b))return[];if(a.isPlainObject(b))return[b];var c;c=a.isArray(b)?b:[b];for(var d=[],e=0;e<c.length;e++)if(d.push(c[e]),"string"==typeof c[e]&&0<c[e].indexOf("-")){var f=c[e].split("-")[0];d.push(f)}return d},D.prototype._processTranslations=function(b,c){for(var d=new k,e=0;e<b.length;e++){var f=new k,g=b[e];if("string"==typeof g)try{f=k.loadPath(g)}catch(a){try{g=this.defaults.amdLanguageBase+g,f=k.loadPath(g)}catch(a){c&&window.console&&console.warn&&console.warn('Select2: The language file for "'+g+'" could not be automatically loaded. A fallback will be used instead.')}}else f=a.isPlainObject(g)?new k(g):g;d.extend(f)}return d},D.prototype.set=function(b,c){var d={};d[a.camelCase(b)]=c;var e=j._convertData(d);a.extend(!0,this.defaults,e)},new D}),i.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),null!=e&&(this.options=c.applyFromElement(this.options,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){function c(a,b){return b.toUpperCase()}var e=["select2"];null==this.options.multiple&&(this.options.multiple=a.prop("multiple")),null==this.options.disabled&&(this.options.disabled=a.prop("disabled")),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),d.GetData(a[0],"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.'),d.StoreData(a[0],"data",d.GetData(a[0],"select2Tags")),d.StoreData(a[0],"tags",!0)),d.GetData(a[0],"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",d.GetData(a[0],"ajaxUrl")),d.StoreData(a[0],"ajax-Url",d.GetData(a[0],"ajaxUrl")));for(var f={},g=0;g<a[0].attributes.length;g++){var h=a[0].attributes[g].name,i="data-";if(h.substr(0,i.length)==i){var j=h.substring(i.length),k=d.GetData(a[0],j);f[j.replace(/-([a-z])/g,c)]=k}}b.fn.jquery&&"1."==b.fn.jquery.substr(0,2)&&a[0].dataset&&(f=b.extend(!0,{},a[0].dataset,f));var l=b.extend(!0,{},d.GetData(a[0]),f);for(var m in l=d._convertData(l))-1<b.inArray(m,e)||(b.isPlainObject(this.options[m])?b.extend(this.options[m],l[m]):this.options[m]=l[m]);return this},e.prototype.get=function(a){return this.options[a]},e.prototype.set=function(a,b){this.options[a]=b},e}),i.define("select2/core",["jquery","./options","./utils","./keys"],function(a,b,c,d){var e=function(a,d){null!=c.GetData(a[0],"select2")&&c.GetData(a[0],"select2").destroy(),this.$element=a,this.id=this._generateId(a),d=d||{},this.options=new b(d,a),e.__super__.constructor.call(this);var f=a.attr("tabindex")||0;c.StoreData(a[0],"old-tabindex",f),a.attr("tabindex","-1");var g=this.options.get("dataAdapter");this.dataAdapter=new g(a,this.options);var h=this.render();this._placeContainer(h);var i=this.options.get("selectionAdapter");this.selection=new i(a,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,h);var j=this.options.get("dropdownAdapter");this.dropdown=new j(a,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,h);var k=this.options.get("resultsAdapter");this.results=new k(a,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var l=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(a){l.trigger("selection:update",{data:a})}),a.addClass("select2-hidden-accessible"),a.attr("aria-hidden","true"),this._syncAttributes(),c.StoreData(a[0],"select2",this),a.data("select2",this)};return c.Extend(e,c.Observable),e.prototype._generateId=function(a){return"select2-"+(null!=a.attr("id")?a.attr("id"):null!=a.attr("name")?a.attr("name")+"-"+c.generateChars(2):c.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},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)return"computedstyle"!=b?b:window.getComputedStyle(a[0]).width;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,"").match(c);if(null!==j&&1<=j.length)return j[1]}return null},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 a=this;this.$element.on("change.select2",function(){a.dataAdapter.current(function(b){a.trigger("selection:update",{data:b})})}),this.$element.on("focus.select2",function(b){a.trigger("focus",b)}),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 b=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=b?(this._observer=new b(function(b){a._syncA(),a._syncS(null,b)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",a._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",a._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",a._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),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.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},e.prototype._isChangeMutation=function(b,c){var d=!1,e=this;if(!b||!b.target||"OPTION"===b.target.nodeName||"OPTGROUP"===b.target.nodeName){if(c)if(c.addedNodes&&0<c.addedNodes.length)for(var f=0;f<c.addedNodes.length;f++)c.addedNodes[f].selected&&(d=!0);else c.removedNodes&&0<c.removedNodes.length?d=!0:a.isArray(c)&&a.each(c,function(a,b){if(e._isChangeMutation(a,b))return!(d=!0)});else d=!0;return d}},e.prototype._syncSubtree=function(a,b){var c=this._isChangeMutation(a,b),d=this;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",clear:"clearing"};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.isDisabled()||(this.isOpen()?this.close():this.open())},e.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},e.prototype.close=function(a){this.isOpen()&&this.trigger("close",{originalEvent:a})},e.prototype.isEnabled=function(){return!this.isDisabled()},e.prototype.isDisabled=function(){return this.options.get("disabled")},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")&&0<arguments.length&&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("input").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",c.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),c.RemoveData(this.$element[0]),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")),c.StoreData(b[0],"element",this.$element),b},e}),i.define("select2/compat/utils",["jquery"],function(a){return{syncCssClasses:function(b,c,d){var e,f,g=[];(e=a.trim(b.attr("class")))&&a((e=""+e).split(/\s+/)).each(function(){0===this.indexOf("select2-")&&g.push(this)}),(e=a.trim(c.attr("class")))&&a((e=""+e).split(/\s+/)).each(function(){0!==this.indexOf("select2-")&&null!=(f=d(this))&&g.push(f)}),b.attr("class",g.join(" "))}}}),i.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}),i.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}),i.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;this._isInitialized?b.call(this,c):this.initSelection.call(null,this.$element,function(b){d._isInitialized=!0,a.isArray(b)||(b=[b]),c(b)})},b}),i.define("select2/compat/inputData",["jquery","../utils"],function(a,b){function c(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 c.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)},c.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("input").trigger("change")}else this.current(function(b){a.map(b,function(a){a.selected=!1})}),this.$element.val(c.id),this.$element.trigger("input").trigger("change")},c.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("input").trigger("change")})},c.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})},c.prototype.addOptions=function(c,d){var e=a.map(d,function(a){return b.GetData(a[0],"data")});this._currentData.push.apply(this._currentData,e)},c}),i.define("select2/compat/matcher",["jquery"],function(a){return function(b){return function(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;0<=f;f--){var g=d.children[f];b(c.term,g.text,g)||e.children.splice(f,1)}if(0<e.children.length)return e}return b(c.term,d.text,d)?e:null}}}),i.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}),i.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}),i.define("select2/dropdown/stopPropagation",[],function(){function a(){}return a.prototype.bind=function(a,b,c){a.call(this,b,c),this.$dropdown.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),function(a){a.stopPropagation()})},a}),i.define("select2/selection/stopPropagation",[],function(){function a(){}return a.prototype.bind=function(a,b,c){a.call(this,b,c),this.$selection.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),function(a){a.stopPropagation()})},a}),y=function(a){function b(b){var g,h=b||window.event,j=i.call(arguments,1),l=0,m=0,n=0,o=0,p=0;if((b=a.event.fix(h)).type="mousewheel","detail"in h&&(n=-1*h.detail),"wheelDelta"in h&&(n=h.wheelDelta),"wheelDeltaY"in h&&(n=h.wheelDeltaY),"wheelDeltaX"in h&&(m=-1*h.wheelDeltaX),"axis"in h&&h.axis===h.HORIZONTAL_AXIS&&(m=-1*n,n=0),l=0===n?m:n,"deltaY"in h&&(l=n=-1*h.deltaY),"deltaX"in h&&(m=h.deltaX,0===n&&(l=-1*m)),0!==n||0!==m){if(1===h.deltaMode){var q=a.data(this,"mousewheel-line-height");l*=q,n*=q,m*=q}else if(2===h.deltaMode){var r=a.data(this,"mousewheel-page-height");l*=r,n*=r,m*=r}if(g=Math.max(Math.abs(n),Math.abs(m)),(!f||g<f)&&d(h,f=g)&&(f/=40),d(h,g)&&(l/=40,m/=40,n/=40),l=Math[1<=l?"floor":"ceil"](l/f),m=Math[1<=m?"floor":"ceil"](m/f),n=Math[1<=n?"floor":"ceil"](n/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=m,b.deltaY=n,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,j.unshift(b,l,m,n),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,j)}}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||9<=document.documentMode?["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)}})},"function"==typeof i.define&&i.define.amd?i.define("jquery-mousewheel",["jquery"],y):"object"==typeof exports?module.exports=y:y(a),i.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(a,b,c,d,e){if(null==a.fn.select2){var f=["open","close","destroy"];a.fn.select2=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)throw new Error("Invalid arguments for Select2: "+b);var d,g=Array.prototype.slice.call(arguments,1);return this.each(function(){var a=e.GetData(this,"select2");null==a&&window.console&&console.error&&console.error("The select2('"+b+"') method was called on an element that is not using Select2."),d=a[b].apply(a,g)}),-1<a.inArray(b,f)?this:d}}return null==a.fn.select2.defaults&&(a.fn.select2.defaults=d),c}),{define:i.define,require:i.require}}(),c=b.require("jquery.select2");return a.fn.select2.amd=b,c}),!function(a){"undefined"!=typeof jQuery&&jQuery||"function"!=typeof define||!define.amd?"undefined"!=typeof jQuery&&jQuery||"object"!=typeof exports?a(jQuery,document,window,navigator):a(require("jquery"),document,window,navigator):define(["jquery"],function(b){return a(b,document,window,navigator)})}(function(a,b,c,d,e){"use strict";function f(d,f,g){this.VERSION="2.3.1",this.input=d,this.plugin_count=g,this.current_plugin=0,this.calc_count=0,this.update_tm=0,this.old_from=0,this.old_to=0,this.old_min_interval=null,this.raf_id=null,this.dragging=!1,this.force_redraw=!1,this.no_diapason=!1,this.has_tab_index=!0,this.is_key=!1,this.is_update=!1,this.is_start=!0,this.is_finish=!1,this.is_active=!1,this.is_resize=!1,this.is_click=!1,f=f||{},this.$cache={win:a(c),body:a(b.body),input:a(d),cont:null,rs:null,min:null,max:null,from:null,to:null,single:null,bar:null,line:null,s_single:null,s_from:null,s_to:null,shad_single:null,shad_from:null,shad_to:null,edge:null,grid:null,grid_labels:[]},this.coords={x_gap:0,x_pointer:0,w_rs:0,w_rs_old:0,w_handle:0,p_gap:0,p_gap_left:0,p_gap_right:0,p_step:0,p_pointer:0,p_handle:0,p_single_fake:0,p_single_real:0,p_from_fake:0,p_from_real:0,p_to_fake:0,p_to_real:0,p_bar_x:0,p_bar_w:0,grid_gap:0,big_num:0,big:[],big_w:[],big_p:[],big_x:[]},this.labels={w_min:0,w_max:0,w_from:0,w_to:0,w_single:0,p_min:0,p_max:0,p_from_fake:0,p_from_left:0,p_to_fake:0,p_to_left:0,p_single_fake:0,p_single_left:0};var h,i,j,k=this.$cache.input,l=k.prop("value");for(j in h={skin:"flat",type:"single",min:10,max:100,from:null,to:null,step:1,min_interval:0,max_interval:0,drag_interval:!1,values:[],p_values:[],from_fixed:!1,from_min:null,from_max:null,from_shadow:!1,to_fixed:!1,to_min:null,to_max:null,to_shadow:!1,prettify_enabled:!0,prettify_separator:" ",prettify:null,force_edges:!1,keyboard:!0,grid:!1,grid_margin:!0,grid_num:4,grid_snap:!1,hide_min_max:!1,hide_from_to:!1,prefix:"",postfix:"",max_postfix:"",decorate_both:!0,values_separator:" — ",input_values_separator:";",disable:!1,block:!1,extra_classes:"",scope:null,onStart:null,onChange:null,onFinish:null,onUpdate:null},"INPUT"!==k[0].nodeName&&console&&console.warn&&console.warn("Base element should be <input>!",k[0]),(i={skin:k.data("skin"),type:k.data("type"),min:k.data("min"),max:k.data("max"),from:k.data("from"),to:k.data("to"),step:k.data("step"),min_interval:k.data("minInterval"),max_interval:k.data("maxInterval"),drag_interval:k.data("dragInterval"),values:k.data("values"),from_fixed:k.data("fromFixed"),from_min:k.data("fromMin"),from_max:k.data("fromMax"),from_shadow:k.data("fromShadow"),to_fixed:k.data("toFixed"),to_min:k.data("toMin"),to_max:k.data("toMax"),to_shadow:k.data("toShadow"),prettify_enabled:k.data("prettifyEnabled"),prettify_separator:k.data("prettifySeparator"),force_edges:k.data("forceEdges"),keyboard:k.data("keyboard"),grid:k.data("grid"),grid_margin:k.data("gridMargin"),grid_num:k.data("gridNum"),grid_snap:k.data("gridSnap"),hide_min_max:k.data("hideMinMax"),hide_from_to:k.data("hideFromTo"),prefix:k.data("prefix"),postfix:k.data("postfix"),max_postfix:k.data("maxPostfix"),decorate_both:k.data("decorateBoth"),values_separator:k.data("valuesSeparator"),input_values_separator:k.data("inputValuesSeparator"),disable:k.data("disable"),block:k.data("block"),extra_classes:k.data("extraClasses")}).values=i.values&&i.values.split(","),i)i.hasOwnProperty(j)&&(i[j]!==e&&""!==i[j]||delete i[j]);l!==e&&""!==l&&((l=l.split(i.input_values_separator||f.input_values_separator||";"))[0]&&l[0]==+l[0]&&(l[0]=+l[0]),l[1]&&l[1]==+l[1]&&(l[1]=+l[1]),f&&f.values&&f.values.length?(h.from=l[0]&&f.values.indexOf(l[0]),h.to=l[1]&&f.values.indexOf(l[1])):(h.from=l[0]&&+l[0],h.to=l[1]&&+l[1])),a.extend(h,f),a.extend(h,i),this.options=h,this.update_check={},this.validate(),this.result={input:this.$cache.input,slider:null,min:this.options.min,
8
  max:this.options.max,from:this.options.from,from_percent:0,from_value:null,to:this.options.to,to_percent:0,to_value:null},this.init()}var g,h,i=0,j=(g=d.userAgent,h=/msie\s\d+/i,0<g.search(h)&&h.exec(g).toString().split(" ")[1]<9&&(a("html").addClass("lt-ie9"),!0));Function.prototype.bind||(Function.prototype.bind=function(a){var b=this,c=[].slice;if("function"!=typeof b)throw new TypeError;var d=c.call(arguments,1),e=function(){if(this instanceof e){var f=function(){};f.prototype=b.prototype;var g=new f,h=b.apply(g,d.concat(c.call(arguments)));return Object(h)===h?h:g}return b.apply(a,d.concat(c.call(arguments)))};return e}),Array.prototype.indexOf||(Array.prototype.indexOf=function(a,b){var c;if(null==this)throw new TypeError('"this" is null or not defined');var d=Object(this),e=d.length>>>0;if(0==e)return-1;var f=+b||0;if(Math.abs(f)===1/0&&(f=0),e<=f)return-1;for(c=Math.max(0<=f?f:e-Math.abs(f),0);c<e;){if(c in d&&d[c]===a)return c;c++}return-1}),f.prototype={init:function(a){this.no_diapason=!1,this.coords.p_step=this.convertToPercent(this.options.step,!0),this.target="base",this.toggleInput(),this.append(),this.setMinMax(),a?(this.force_redraw=!0,this.calc(!0),this.callOnUpdate()):(this.force_redraw=!0,this.calc(!0),this.callOnStart()),this.updateScene()},append:function(){var a='<span class="irs irs--'+this.options.skin+" js-irs-"+this.plugin_count+" "+this.options.extra_classes+'"></span>';this.$cache.input.before(a),this.$cache.input.prop("readonly",!0),this.$cache.cont=this.$cache.input.prev(),this.result.slider=this.$cache.cont,this.$cache.cont.html('<span class="irs"><span class="irs-line" tabindex="0"></span><span class="irs-min">0</span><span class="irs-max">1</span><span class="irs-from">0</span><span class="irs-to">0</span><span class="irs-single">0</span></span><span class="irs-grid"></span>'),this.$cache.rs=this.$cache.cont.find(".irs"),this.$cache.min=this.$cache.cont.find(".irs-min"),this.$cache.max=this.$cache.cont.find(".irs-max"),this.$cache.from=this.$cache.cont.find(".irs-from"),this.$cache.to=this.$cache.cont.find(".irs-to"),this.$cache.single=this.$cache.cont.find(".irs-single"),this.$cache.line=this.$cache.cont.find(".irs-line"),this.$cache.grid=this.$cache.cont.find(".irs-grid"),"single"===this.options.type?(this.$cache.cont.append('<span class="irs-bar irs-bar--single"></span><span class="irs-shadow shadow-single"></span><span class="irs-handle single"><i></i><i></i><i></i></span>'),this.$cache.bar=this.$cache.cont.find(".irs-bar"),this.$cache.edge=this.$cache.cont.find(".irs-bar-edge"),this.$cache.s_single=this.$cache.cont.find(".single"),this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.shad_single=this.$cache.cont.find(".shadow-single")):(this.$cache.cont.append('<span class="irs-bar"></span><span class="irs-shadow shadow-from"></span><span class="irs-shadow shadow-to"></span><span class="irs-handle from"><i></i><i></i><i></i></span><span class="irs-handle to"><i></i><i></i><i></i></span>'),this.$cache.bar=this.$cache.cont.find(".irs-bar"),this.$cache.s_from=this.$cache.cont.find(".from"),this.$cache.s_to=this.$cache.cont.find(".to"),this.$cache.shad_from=this.$cache.cont.find(".shadow-from"),this.$cache.shad_to=this.$cache.cont.find(".shadow-to"),this.setTopHandler()),this.options.hide_from_to&&(this.$cache.from[0].style.display="none",this.$cache.to[0].style.display="none",this.$cache.single[0].style.display="none"),this.appendGrid(),this.options.disable?(this.appendDisableMask(),this.$cache.input[0].disabled=!0):(this.$cache.input[0].disabled=!1,this.removeDisableMask(),this.bindEvents()),this.options.disable||(this.options.block?this.appendDisableMask():this.removeDisableMask()),this.options.drag_interval&&(this.$cache.bar[0].style.cursor="ew-resize")},setTopHandler:function(){var a=this.options.min,b=this.options.max,c=this.options.from,d=this.options.to;a<c&&d===b?this.$cache.s_from.addClass("type_last"):d<b&&this.$cache.s_to.addClass("type_last")},changeLevel:function(a){switch(a){case"single":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_single_fake),this.$cache.s_single.addClass("state_hover");break;case"from":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_from_fake),this.$cache.s_from.addClass("state_hover"),this.$cache.s_from.addClass("type_last"),this.$cache.s_to.removeClass("type_last");break;case"to":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_to_fake),this.$cache.s_to.addClass("state_hover"),this.$cache.s_to.addClass("type_last"),this.$cache.s_from.removeClass("type_last");break;case"both":this.coords.p_gap_left=this.toFixed(this.coords.p_pointer-this.coords.p_from_fake),this.coords.p_gap_right=this.toFixed(this.coords.p_to_fake-this.coords.p_pointer),this.$cache.s_to.removeClass("type_last"),this.$cache.s_from.removeClass("type_last")}},appendDisableMask:function(){this.$cache.cont.append('<span class="irs-disable-mask"></span>'),this.$cache.cont.addClass("irs-disabled")},removeDisableMask:function(){this.$cache.cont.remove(".irs-disable-mask"),this.$cache.cont.removeClass("irs-disabled")},remove:function(){this.$cache.cont.remove(),this.$cache.cont=null,this.$cache.line.off("keydown.irs_"+this.plugin_count),this.$cache.body.off("touchmove.irs_"+this.plugin_count),this.$cache.body.off("mousemove.irs_"+this.plugin_count),this.$cache.win.off("touchend.irs_"+this.plugin_count),this.$cache.win.off("mouseup.irs_"+this.plugin_count),j&&(this.$cache.body.off("mouseup.irs_"+this.plugin_count),this.$cache.body.off("mouseleave.irs_"+this.plugin_count)),this.$cache.grid_labels=[],this.coords.big=[],this.coords.big_w=[],this.coords.big_p=[],this.coords.big_x=[],cancelAnimationFrame(this.raf_id)},bindEvents:function(){this.no_diapason||(this.$cache.body.on("touchmove.irs_"+this.plugin_count,this.pointerMove.bind(this)),this.$cache.body.on("mousemove.irs_"+this.plugin_count,this.pointerMove.bind(this)),this.$cache.win.on("touchend.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.win.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.line.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.line.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.line.on("focus.irs_"+this.plugin_count,this.pointerFocus.bind(this)),this.options.drag_interval&&"double"===this.options.type?(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"both")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"both"))):(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))),"single"===this.options.type?(this.$cache.single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.s_single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.shad_single.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.s_single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.edge.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_single.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))):(this.$cache.single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,null)),this.$cache.single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,null)),this.$cache.from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.s_to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.s_to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))),this.options.keyboard&&this.$cache.line.on("keydown.irs_"+this.plugin_count,this.key.bind(this,"keyboard")),j&&(this.$cache.body.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.body.on("mouseleave.irs_"+this.plugin_count,this.pointerUp.bind(this))))},pointerFocus:function(a){var b,c;this.target||(b=(c="single"===this.options.type?this.$cache.single:this.$cache.from).offset().left,b+=c.width()/2-1,this.pointerClick("single",{preventDefault:function(){},pageX:b}))},pointerMove:function(a){if(this.dragging){var b=a.pageX||a.originalEvent.touches&&a.originalEvent.touches[0].pageX;this.coords.x_pointer=b-this.coords.x_gap,this.calc()}},pointerUp:function(b){this.current_plugin===this.plugin_count&&this.is_active&&(this.is_active=!1,this.$cache.cont.find(".state_hover").removeClass("state_hover"),this.force_redraw=!0,j&&a("*").prop("unselectable",!1),this.updateScene(),this.restoreOriginalMinInterval(),(a.contains(this.$cache.cont[0],b.target)||this.dragging)&&this.callOnFinish(),this.dragging=!1)},pointerDown:function(b,c){c.preventDefault();var d=c.pageX||c.originalEvent.touches&&c.originalEvent.touches[0].pageX;2!==c.button&&("both"===b&&this.setTempMinInterval(),b=b||this.target||"from",this.current_plugin=this.plugin_count,this.target=b,this.is_active=!0,this.dragging=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=d-this.coords.x_gap,this.calcPointerPercent(),this.changeLevel(b),j&&a("*").prop("unselectable",!0),this.$cache.line.trigger("focus"),this.updateScene())},pointerClick:function(a,b){b.preventDefault();var c=b.pageX||b.originalEvent.touches&&b.originalEvent.touches[0].pageX;2!==b.button&&(this.current_plugin=this.plugin_count,this.target=a,this.is_click=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=+(c-this.coords.x_gap).toFixed(),this.force_redraw=!0,this.calc(),this.$cache.line.trigger("focus"))},key:function(a,b){if(!(this.current_plugin!==this.plugin_count||b.altKey||b.ctrlKey||b.shiftKey||b.metaKey)){switch(b.which){case 83:case 65:case 40:case 37:b.preventDefault(),this.moveByKey(!1);break;case 87:case 68:case 38:case 39:b.preventDefault(),this.moveByKey(!0)}return!0}},moveByKey:function(a){var b=this.coords.p_pointer,c=(this.options.max-this.options.min)/100;c=this.options.step/c,a?b+=c:b-=c,this.coords.x_pointer=this.toFixed(this.coords.w_rs/100*b),this.is_key=!0,this.calc()},setMinMax:function(){if(this.options){if(this.options.hide_min_max)return this.$cache.min[0].style.display="none",void(this.$cache.max[0].style.display="none");if(this.options.values.length)this.$cache.min.html(this.decorate(this.options.p_values[this.options.min])),this.$cache.max.html(this.decorate(this.options.p_values[this.options.max]));else{var a=this._prettify(this.options.min),b=this._prettify(this.options.max);this.result.min_pretty=a,this.result.max_pretty=b,this.$cache.min.html(this.decorate(a,this.options.min)),this.$cache.max.html(this.decorate(b,this.options.max))}this.labels.w_min=this.$cache.min.outerWidth(!1),this.labels.w_max=this.$cache.max.outerWidth(!1)}},setTempMinInterval:function(){var a=this.result.to-this.result.from;null===this.old_min_interval&&(this.old_min_interval=this.options.min_interval),this.options.min_interval=a},restoreOriginalMinInterval:function(){null!==this.old_min_interval&&(this.options.min_interval=this.old_min_interval,this.old_min_interval=null)},calc:function(a){if(this.options&&(this.calc_count++,10!==this.calc_count&&!a||(this.calc_count=0,this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.calcHandlePercent()),this.coords.w_rs)){this.calcPointerPercent();var b=this.getHandleX();switch("both"===this.target&&(this.coords.p_gap=0,b=this.getHandleX()),"click"===this.target&&(this.coords.p_gap=this.coords.p_handle/2,b=this.getHandleX(),this.options.drag_interval?this.target="both_one":this.target=this.chooseHandle(b)),this.target){case"base":var c=(this.options.max-this.options.min)/100,d=(this.result.from-this.options.min)/c,e=(this.result.to-this.options.min)/c;this.coords.p_single_real=this.toFixed(d),this.coords.p_from_real=this.toFixed(d),this.coords.p_to_real=this.toFixed(e),this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real),this.target=null;break;case"single":if(this.options.from_fixed)break;this.coords.p_single_real=this.convertToRealPercent(b),this.coords.p_single_real=this.calcWithStep(this.coords.p_single_real),this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max),this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real);break;case"from":if(this.options.from_fixed)break;this.coords.p_from_real=this.convertToRealPercent(b),this.coords.p_from_real=this.calcWithStep(this.coords.p_from_real),this.coords.p_from_real>this.coords.p_to_real&&(this.coords.p_from_real=this.coords.p_to_real),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_real=this.checkMaxInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real);break;case"to":if(this.options.to_fixed)break;this.coords.p_to_real=this.convertToRealPercent(b),this.coords.p_to_real=this.calcWithStep(this.coords.p_to_real),this.coords.p_to_real<this.coords.p_from_real&&(this.coords.p_to_real=this.coords.p_from_real),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_real=this.checkMinInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to_real=this.checkMaxInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real);break;case"both":if(this.options.from_fixed||this.options.to_fixed)break;b=this.toFixed(b+.001*this.coords.p_handle),this.coords.p_from_real=this.convertToRealPercent(b)-this.coords.p_gap_left,this.coords.p_from_real=this.calcWithStep(this.coords.p_from_real),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_real=this.convertToRealPercent(b)+this.coords.p_gap_right,this.coords.p_to_real=this.calcWithStep(this.coords.p_to_real),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_real=this.checkMinInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real);break;case"both_one":if(this.options.from_fixed||this.options.to_fixed)break;var f=this.convertToRealPercent(b),g=this.result.from_percent,h=this.result.to_percent-g,i=h/2,j=f-i,k=f+i;j<0&&(k=(j=0)+h),100<k&&(j=(k=100)-h),this.coords.p_from_real=this.calcWithStep(j),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_real=this.calcWithStep(k),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real)}"single"===this.options.type?(this.coords.p_bar_x=this.coords.p_handle/2,this.coords.p_bar_w=this.coords.p_single_fake,this.result.from_percent=this.coords.p_single_real,this.result.from=this.convertToValue(this.coords.p_single_real),this.result.from_pretty=this._prettify(this.result.from),this.options.values.length&&(this.result.from_value=this.options.values[this.result.from])):(this.coords.p_bar_x=this.toFixed(this.coords.p_from_fake+this.coords.p_handle/2),this.coords.p_bar_w=this.toFixed(this.coords.p_to_fake-this.coords.p_from_fake),this.result.from_percent=this.coords.p_from_real,this.result.from=this.convertToValue(this.coords.p_from_real),this.result.from_pretty=this._prettify(this.result.from),this.result.to_percent=this.coords.p_to_real,this.result.to=this.convertToValue(this.coords.p_to_real),this.result.to_pretty=this._prettify(this.result.to),this.options.values.length&&(this.result.from_value=this.options.values[this.result.from],this.result.to_value=this.options.values[this.result.to])),this.calcMinMax(),this.calcLabels()}},calcPointerPercent:function(){this.coords.w_rs?(this.coords.x_pointer<0||isNaN(this.coords.x_pointer)?this.coords.x_pointer=0:this.coords.x_pointer>this.coords.w_rs&&(this.coords.x_pointer=this.coords.w_rs),this.coords.p_pointer=this.toFixed(this.coords.x_pointer/this.coords.w_rs*100)):this.coords.p_pointer=0},convertToRealPercent:function(a){return a/(100-this.coords.p_handle)*100},convertToFakePercent:function(a){return a/100*(100-this.coords.p_handle)},getHandleX:function(){var a=100-this.coords.p_handle,b=this.toFixed(this.coords.p_pointer-this.coords.p_gap);return b<0?b=0:a<b&&(b=a),b},calcHandlePercent:function(){"single"===this.options.type?this.coords.w_handle=this.$cache.s_single.outerWidth(!1):this.coords.w_handle=this.$cache.s_from.outerWidth(!1),this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100)},chooseHandle:function(a){return"single"===this.options.type?"single":this.coords.p_from_real+(this.coords.p_to_real-this.coords.p_from_real)/2<=a?this.options.to_fixed?"from":"to":this.options.from_fixed?"to":"from"},calcMinMax:function(){this.coords.w_rs&&(this.labels.p_min=this.labels.w_min/this.coords.w_rs*100,this.labels.p_max=this.labels.w_max/this.coords.w_rs*100)},calcLabels:function(){this.coords.w_rs&&!this.options.hide_from_to&&("single"===this.options.type?(this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single_fake=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=this.coords.p_single_fake+this.coords.p_handle/2-this.labels.p_single_fake/2):(this.labels.w_from=this.$cache.from.outerWidth(!1),this.labels.p_from_fake=this.labels.w_from/this.coords.w_rs*100,this.labels.p_from_left=this.coords.p_from_fake+this.coords.p_handle/2-this.labels.p_from_fake/2,this.labels.p_from_left=this.toFixed(this.labels.p_from_left),this.labels.p_from_left=this.checkEdges(this.labels.p_from_left,this.labels.p_from_fake),this.labels.w_to=this.$cache.to.outerWidth(!1),this.labels.p_to_fake=this.labels.w_to/this.coords.w_rs*100,this.labels.p_to_left=this.coords.p_to_fake+this.coords.p_handle/2-this.labels.p_to_fake/2,this.labels.p_to_left=this.toFixed(this.labels.p_to_left),this.labels.p_to_left=this.checkEdges(this.labels.p_to_left,this.labels.p_to_fake),this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single_fake=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=(this.labels.p_from_left+this.labels.p_to_left+this.labels.p_to_fake)/2-this.labels.p_single_fake/2,this.labels.p_single_left=this.toFixed(this.labels.p_single_left)),this.labels.p_single_left=this.checkEdges(this.labels.p_single_left,this.labels.p_single_fake))},updateScene:function(){this.raf_id&&(cancelAnimationFrame(this.raf_id),this.raf_id=null),clearTimeout(this.update_tm),this.update_tm=null,this.options&&(this.drawHandles(),this.is_active?this.raf_id=requestAnimationFrame(this.updateScene.bind(this)):this.update_tm=setTimeout(this.updateScene.bind(this),300))},drawHandles:function(){this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_rs&&(this.coords.w_rs!==this.coords.w_rs_old&&(this.target="base",this.is_resize=!0),this.coords.w_rs===this.coords.w_rs_old&&!this.force_redraw||(this.setMinMax(),this.calc(!0),this.drawLabels(),this.options.grid&&(this.calcGridMargin(),this.calcGridLabels()),this.force_redraw=!0,this.coords.w_rs_old=this.coords.w_rs,this.drawShadow()),this.coords.w_rs&&(this.dragging||this.force_redraw||this.is_key)&&((this.old_from!==this.result.from||this.old_to!==this.result.to||this.force_redraw||this.is_key)&&(this.drawLabels(),this.$cache.bar[0].style.left=this.coords.p_bar_x+"%",this.$cache.bar[0].style.width=this.coords.p_bar_w+"%","single"===this.options.type?(this.$cache.bar[0].style.left=0,this.$cache.bar[0].style.width=this.coords.p_bar_w+this.coords.p_bar_x+"%",this.$cache.s_single[0].style.left=this.coords.p_single_fake+"%"):(this.$cache.s_from[0].style.left=this.coords.p_from_fake+"%",this.$cache.s_to[0].style.left=this.coords.p_to_fake+"%",this.old_from===this.result.from&&!this.force_redraw||(this.$cache.from[0].style.left=this.labels.p_from_left+"%"),this.old_to===this.result.to&&!this.force_redraw||(this.$cache.to[0].style.left=this.labels.p_to_left+"%")),this.$cache.single[0].style.left=this.labels.p_single_left+"%",this.writeToInput(),this.old_from===this.result.from&&this.old_to===this.result.to||this.is_start||(this.$cache.input.trigger("change"),this.$cache.input.trigger("input")),this.old_from=this.result.from,this.old_to=this.result.to,this.is_resize||this.is_update||this.is_start||this.is_finish||this.callOnChange(),(this.is_key||this.is_click)&&(this.is_key=!1,this.is_click=!1,this.callOnFinish()),this.is_update=!1,this.is_resize=!1,this.is_finish=!1),this.is_start=!1,this.is_key=!1,this.is_click=!1,this.force_redraw=!1))},drawLabels:function(){if(this.options){var a,b,c,d,e,f=this.options.values.length,g=this.options.p_values;if(!this.options.hide_from_to)if("single"===this.options.type)a=f?this.decorate(g[this.result.from]):(d=this._prettify(this.result.from),this.decorate(d,this.result.from)),this.$cache.single.html(a),this.calcLabels(),this.labels.p_single_left<this.labels.p_min+1?this.$cache.min[0].style.visibility="hidden":this.$cache.min[0].style.visibility="visible",this.labels.p_single_left+this.labels.p_single_fake>100-this.labels.p_max-1?this.$cache.max[0].style.visibility="hidden":this.$cache.max[0].style.visibility="visible";else{c=f?(this.options.decorate_both?(a=this.decorate(g[this.result.from]),a+=this.options.values_separator,a+=this.decorate(g[this.result.to])):a=this.decorate(g[this.result.from]+this.options.values_separator+g[this.result.to]),b=this.decorate(g[this.result.from]),this.decorate(g[this.result.to])):(d=this._prettify(this.result.from),e=this._prettify(this.result.to),this.options.decorate_both?(a=this.decorate(d,this.result.from),a+=this.options.values_separator,a+=this.decorate(e,this.result.to)):a=this.decorate(d+this.options.values_separator+e,this.result.to),b=this.decorate(d,this.result.from),this.decorate(e,this.result.to)),this.$cache.single.html(a),this.$cache.from.html(b),this.$cache.to.html(c),this.calcLabels();var h=Math.min(this.labels.p_single_left,this.labels.p_from_left),i=this.labels.p_single_left+this.labels.p_single_fake,j=this.labels.p_to_left+this.labels.p_to_fake,k=Math.max(i,j);this.labels.p_from_left+this.labels.p_from_fake>=this.labels.p_to_left?(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",k=this.result.from===this.result.to?("from"===this.target?this.$cache.from[0].style.visibility="visible":"to"===this.target?this.$cache.to[0].style.visibility="visible":this.target||(this.$cache.from[0].style.visibility="visible"),this.$cache.single[0].style.visibility="hidden",j):(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",Math.max(i,j))):(this.$cache.from[0].style.visibility="visible",this.$cache.to[0].style.visibility="visible",this.$cache.single[0].style.visibility="hidden"),h<this.labels.p_min+1?this.$cache.min[0].style.visibility="hidden":this.$cache.min[0].style.visibility="visible",k>100-this.labels.p_max-1?this.$cache.max[0].style.visibility="hidden":this.$cache.max[0].style.visibility="visible"}}},drawShadow:function(){var a,b,c,d,e=this.options,f=this.$cache,g="number"==typeof e.from_min&&!isNaN(e.from_min),h="number"==typeof e.from_max&&!isNaN(e.from_max),i="number"==typeof e.to_min&&!isNaN(e.to_min),j="number"==typeof e.to_max&&!isNaN(e.to_max);"single"===e.type?e.from_shadow&&(g||h)?(a=this.convertToPercent(g?e.from_min:e.min),b=this.convertToPercent(h?e.from_max:e.max)-a,a=this.toFixed(a-this.coords.p_handle/100*a),b=this.toFixed(b-this.coords.p_handle/100*b),a+=this.coords.p_handle/2,f.shad_single[0].style.display="block",f.shad_single[0].style.left=a+"%",f.shad_single[0].style.width=b+"%"):f.shad_single[0].style.display="none":(e.from_shadow&&(g||h)?(a=this.convertToPercent(g?e.from_min:e.min),b=this.convertToPercent(h?e.from_max:e.max)-a,a=this.toFixed(a-this.coords.p_handle/100*a),b=this.toFixed(b-this.coords.p_handle/100*b),a+=this.coords.p_handle/2,f.shad_from[0].style.display="block",f.shad_from[0].style.left=a+"%",f.shad_from[0].style.width=b+"%"):f.shad_from[0].style.display="none",e.to_shadow&&(i||j)?(c=this.convertToPercent(i?e.to_min:e.min),d=this.convertToPercent(j?e.to_max:e.max)-c,c=this.toFixed(c-this.coords.p_handle/100*c),d=this.toFixed(d-this.coords.p_handle/100*d),c+=this.coords.p_handle/2,f.shad_to[0].style.display="block",f.shad_to[0].style.left=c+"%",f.shad_to[0].style.width=d+"%"):f.shad_to[0].style.display="none")},writeToInput:function(){"single"===this.options.type?(this.options.values.length?this.$cache.input.prop("value",this.result.from_value):this.$cache.input.prop("value",this.result.from),this.$cache.input.data("from",this.result.from)):(this.options.values.length?this.$cache.input.prop("value",this.result.from_value+this.options.input_values_separator+this.result.to_value):this.$cache.input.prop("value",this.result.from+this.options.input_values_separator+this.result.to),this.$cache.input.data("from",this.result.from),this.$cache.input.data("to",this.result.to))},callOnStart:function(){this.writeToInput(),this.options.onStart&&"function"==typeof this.options.onStart&&(this.options.scope?this.options.onStart.call(this.options.scope,this.result):this.options.onStart(this.result))},callOnChange:function(){this.writeToInput(),this.options.onChange&&"function"==typeof this.options.onChange&&(this.options.scope?this.options.onChange.call(this.options.scope,this.result):this.options.onChange(this.result))},callOnFinish:function(){this.writeToInput(),this.options.onFinish&&"function"==typeof this.options.onFinish&&(this.options.scope?this.options.onFinish.call(this.options.scope,this.result):this.options.onFinish(this.result))},callOnUpdate:function(){this.writeToInput(),this.options.onUpdate&&"function"==typeof this.options.onUpdate&&(this.options.scope?this.options.onUpdate.call(this.options.scope,this.result):this.options.onUpdate(this.result))},toggleInput:function(){this.$cache.input.toggleClass("irs-hidden-input"),this.has_tab_index?this.$cache.input.prop("tabindex",-1):this.$cache.input.removeProp("tabindex"),this.has_tab_index=!this.has_tab_index},convertToPercent:function(a,b){var c,d=this.options.max-this.options.min,e=d/100;return d?(c=(b?a:a-this.options.min)/e,this.toFixed(c)):(this.no_diapason=!0,0)},convertToValue:function(a){var b,c,d=this.options.min,e=this.options.max,f=d.toString().split(".")[1],g=e.toString().split(".")[1],h=0,i=0;if(0===a)return this.options.min;if(100===a)return this.options.max;f&&(h=b=f.length),g&&(h=c=g.length),b&&c&&(h=c<=b?b:c),d<0&&(d=+(d+(i=Math.abs(d))).toFixed(h),e=+(e+i).toFixed(h));var j,k=(e-d)/100*a+d,l=this.options.step.toString().split(".")[1];return k=l?+k.toFixed(l.length):(k/=this.options.step,+(k*=this.options.step).toFixed(0)),i&&(k-=i),(j=l?+k.toFixed(l.length):this.toFixed(k))<this.options.min?j=this.options.min:j>this.options.max&&(j=this.options.max),j},calcWithStep:function(a){var b=Math.round(a/this.coords.p_step)*this.coords.p_step;return 100<b&&(b=100),100===a&&(b=100),this.toFixed(b)},checkMinInterval:function(a,b,c){var d,e,f=this.options;return f.min_interval?(d=this.convertToValue(a),e=this.convertToValue(b),"from"===c?e-d<f.min_interval&&(d=e-f.min_interval):d-e<f.min_interval&&(d=e+f.min_interval),this.convertToPercent(d)):a},checkMaxInterval:function(a,b,c){var d,e,f=this.options;return f.max_interval?(d=this.convertToValue(a),e=this.convertToValue(b),"from"===c?e-d>f.max_interval&&(d=e-f.max_interval):d-e>f.max_interval&&(d=e+f.max_interval),this.convertToPercent(d)):a},checkDiapason:function(a,b,c){var d=this.convertToValue(a),e=this.options;return"number"!=typeof b&&(b=e.min),"number"!=typeof c&&(c=e.max),d<b&&(d=b),c<d&&(d=c),this.convertToPercent(d)},toFixed:function(a){return+(a=a.toFixed(20))},_prettify:function(a){return this.options.prettify_enabled?this.options.prettify&&"function"==typeof this.options.prettify?this.options.prettify(a):this.prettify(a):a},prettify:function(a){return a.toString().replace(/(\d{1,3}(?=(?:\d\d\d)+(?!\d)))/g,"$1"+this.options.prettify_separator)},checkEdges:function(a,b){return this.options.force_edges&&(a<0?a=0:100-b<a&&(a=100-b)),this.toFixed(a)},validate:function(){var a,b,c=this.options,d=this.result,e=c.values,f=e.length;if("string"==typeof c.min&&(c.min=+c.min),"string"==typeof c.max&&(c.max=+c.max),"string"==typeof c.from&&(c.from=+c.from),"string"==typeof c.to&&(c.to=+c.to),"string"==typeof c.step&&(c.step=+c.step),"string"==typeof c.from_min&&(c.from_min=+c.from_min),"string"==typeof c.from_max&&(c.from_max=+c.from_max),"string"==typeof c.to_min&&(c.to_min=+c.to_min),"string"==typeof c.to_max&&(c.to_max=+c.to_max),"string"==typeof c.grid_num&&(c.grid_num=+c.grid_num),c.max<c.min&&(c.max=c.min),f)for(c.p_values=[],c.min=0,c.max=f-1,c.step=1,c.grid_num=c.max,c.grid_snap=!0,b=0;b<f;b++)a=+e[b],a=isNaN(a)?e[b]:(e[b]=a,this._prettify(a)),c.p_values.push(a);"number"==typeof c.from&&!isNaN(c.from)||(c.from=c.min),"number"==typeof c.to&&!isNaN(c.to)||(c.to=c.max),"single"===c.type?(c.from<c.min&&(c.from=c.min),c.from>c.max&&(c.from=c.max)):(c.from<c.min&&(c.from=c.min),c.from>c.max&&(c.from=c.max),c.to<c.min&&(c.to=c.min),c.to>c.max&&(c.to=c.max),this.update_check.from&&(this.update_check.from!==c.from&&c.from>c.to&&(c.from=c.to),this.update_check.to!==c.to&&c.to<c.from&&(c.to=c.from)),c.from>c.to&&(c.from=c.to),c.to<c.from&&(c.to=c.from)),("number"!=typeof c.step||isNaN(c.step)||!c.step||c.step<0)&&(c.step=1),"number"==typeof c.from_min&&c.from<c.from_min&&(c.from=c.from_min),"number"==typeof c.from_max&&c.from>c.from_max&&(c.from=c.from_max),"number"==typeof c.to_min&&c.to<c.to_min&&(c.to=c.to_min),"number"==typeof c.to_max&&c.from>c.to_max&&(c.to=c.to_max),d&&(d.min!==c.min&&(d.min=c.min),d.max!==c.max&&(d.max=c.max),(d.from<d.min||d.from>d.max)&&(d.from=c.from),
9
- (d.to<d.min||d.to>d.max)&&(d.to=c.to)),("number"!=typeof c.min_interval||isNaN(c.min_interval)||!c.min_interval||c.min_interval<0)&&(c.min_interval=0),("number"!=typeof c.max_interval||isNaN(c.max_interval)||!c.max_interval||c.max_interval<0)&&(c.max_interval=0),c.min_interval&&c.min_interval>c.max-c.min&&(c.min_interval=c.max-c.min),c.max_interval&&c.max_interval>c.max-c.min&&(c.max_interval=c.max-c.min)},decorate:function(a,b){var c="",d=this.options;return d.prefix&&(c+=d.prefix),c+=a,d.max_postfix&&(d.values.length&&a===d.p_values[d.max]?(c+=d.max_postfix,d.postfix&&(c+=" ")):b===d.max&&(c+=d.max_postfix,d.postfix&&(c+=" "))),d.postfix&&(c+=d.postfix),c},updateFrom:function(){this.result.from=this.options.from,this.result.from_percent=this.convertToPercent(this.result.from),this.result.from_pretty=this._prettify(this.result.from),this.options.values&&(this.result.from_value=this.options.values[this.result.from])},updateTo:function(){this.result.to=this.options.to,this.result.to_percent=this.convertToPercent(this.result.to),this.result.to_pretty=this._prettify(this.result.to),this.options.values&&(this.result.to_value=this.options.values[this.result.to])},updateResult:function(){this.result.min=this.options.min,this.result.max=this.options.max,this.updateFrom(),this.updateTo()},appendGrid:function(){if(this.options.grid){var a,b,c,d,e,f,g=this.options,h=g.max-g.min,i=g.grid_num,j=0,k=4,l="";for(this.calcGridMargin(),g.grid_snap&&(i=h/g.step),50<i&&(i=50),c=this.toFixed(100/i),4<i&&(k=3),7<i&&(k=2),14<i&&(k=1),28<i&&(k=0),a=0;a<i+1;a++){for(d=k,100<(j=this.toFixed(c*a))&&(j=100),e=((this.coords.big[a]=j)-c*(a-1))/(d+1),b=1;b<=d&&0!==j;b++)l+='<span class="irs-grid-pol small" style="left: '+this.toFixed(j-e*b)+'%"></span>';l+='<span class="irs-grid-pol" style="left: '+j+'%"></span>',f=this.convertToValue(j),l+='<span class="irs-grid-text js-grid-text-'+a+'" style="left: '+j+'%">'+(f=g.values.length?g.p_values[f]:this._prettify(f))+"</span>"}this.coords.big_num=Math.ceil(i+1),this.$cache.cont.addClass("irs-with-grid"),this.$cache.grid.html(l),this.cacheGridLabels()}},cacheGridLabels:function(){var a,b,c=this.coords.big_num;for(b=0;b<c;b++)a=this.$cache.grid.find(".js-grid-text-"+b),this.$cache.grid_labels.push(a);this.calcGridLabels()},calcGridLabels:function(){var a,b,c=[],d=[],e=this.coords.big_num;for(a=0;a<e;a++)this.coords.big_w[a]=this.$cache.grid_labels[a].outerWidth(!1),this.coords.big_p[a]=this.toFixed(this.coords.big_w[a]/this.coords.w_rs*100),this.coords.big_x[a]=this.toFixed(this.coords.big_p[a]/2),c[a]=this.toFixed(this.coords.big[a]-this.coords.big_x[a]),d[a]=this.toFixed(c[a]+this.coords.big_p[a]);for(this.options.force_edges&&(c[0]<-this.coords.grid_gap&&(c[0]=-this.coords.grid_gap,d[0]=this.toFixed(c[0]+this.coords.big_p[0]),this.coords.big_x[0]=this.coords.grid_gap),d[e-1]>100+this.coords.grid_gap&&(d[e-1]=100+this.coords.grid_gap,c[e-1]=this.toFixed(d[e-1]-this.coords.big_p[e-1]),this.coords.big_x[e-1]=this.toFixed(this.coords.big_p[e-1]-this.coords.grid_gap))),this.calcGridCollision(2,c,d),this.calcGridCollision(4,c,d),a=0;a<e;a++)b=this.$cache.grid_labels[a][0],this.coords.big_x[a]!==Number.POSITIVE_INFINITY&&(b.style.marginLeft=-this.coords.big_x[a]+"%")},calcGridCollision:function(a,b,c){var d,e,f,g=this.coords.big_num;for(d=0;d<g&&!(g<=(e=d+a/2));d+=a)f=this.$cache.grid_labels[e][0],c[d]<=b[e]?f.style.visibility="visible":f.style.visibility="hidden"},calcGridMargin:function(){this.options.grid_margin&&(this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_rs&&("single"===this.options.type?this.coords.w_handle=this.$cache.s_single.outerWidth(!1):this.coords.w_handle=this.$cache.s_from.outerWidth(!1),this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100),this.coords.grid_gap=this.toFixed(this.coords.p_handle/2-.1),this.$cache.grid[0].style.width=this.toFixed(100-this.coords.p_handle)+"%",this.$cache.grid[0].style.left=this.coords.grid_gap+"%"))},update:function(b){this.input&&(this.is_update=!0,this.options.from=this.result.from,this.options.to=this.result.to,this.update_check.from=this.result.from,this.update_check.to=this.result.to,this.options=a.extend(this.options,b),this.validate(),this.updateResult(b),this.toggleInput(),this.remove(),this.init(!0))},reset:function(){this.input&&(this.updateResult(),this.update())},destroy:function(){this.input&&(this.toggleInput(),this.$cache.input.prop("readonly",!1),a.data(this.input,"ionRangeSlider",null),this.remove(),this.input=null,this.options=null)}},a.fn.ionRangeSlider=function(b){return this.each(function(){a.data(this,"ionRangeSlider")||a.data(this,"ionRangeSlider",new f(this,b,i++))})},function(){for(var a=0,b=["ms","moz","webkit","o"],d=0;d<b.length&&!c.requestAnimationFrame;++d)c.requestAnimationFrame=c[b[d]+"RequestAnimationFrame"],c.cancelAnimationFrame=c[b[d]+"CancelAnimationFrame"]||c[b[d]+"CancelRequestAnimationFrame"];c.requestAnimationFrame||(c.requestAnimationFrame=function(b,d){var e=(new Date).getTime(),f=Math.max(0,16-(e-a)),g=c.setTimeout(function(){b(e+f)},f);return a=e+f,g}),c.cancelAnimationFrame||(c.cancelAnimationFrame=function(a){clearTimeout(a)})}()});var berocket_filters={};berocket_add_filter("compat_filters_result_single",function(a){return"object"==typeof a&&"string"==typeof a.taxonomy&&"pa_"==a.taxonomy.substr(0,3)&&(a.taxonomy=a.taxonomy.substr(3)),a});var braapf_filter_blocked=!1,braapf_selected_filters=[],braapf_filtered_filters=[],braapf_filters_var,braapf_ajax_request,braapf_checkbox_same,braapf_update_products,braapf_grab_all,braapf_grab_single,braapf_compact_filters,braapf_compat_filters_to_string,braapf_build_url_from_urldata,braapf_glue_by_operator,braapf_ajax_load_from_url,braapf_ajax_load_from_url_request,braapf_init_load,braapf_remove_pages_from_url_data,braapf_filter_products_by_url,braapf_get_current_url_data,braapf_reset_buttons_hide,bapf_universal_theme_compatibility,braapf_disable_ajax_loading,braapf_close_tippy;!function(a){function b(a){return berocket_remove_filter("ajax_load_from_url_beforeSend",b),a.setRequestHeader("X-Braapfdisable","1"),a}function c(a){return a.setRequestHeader("X-Braapf","1"),a}a(document).on("change",".bapf_sfilter.bapf_ckbox input[type=checkbox]",function(){var b=a(this).val(),c=a(this).parents(".bapf_sfilter").data("taxonomy"),d=a(this).prop("checked");braapf_checkbox_same(c,b,d),berocket_apply_filters("input_ckbox_changed",this,c,b,d);var e={element:"#"+a(this).attr("id"),parent:1,find:!1};berocket_apply_filters("filter_changed_element",e,a(this)),berocket_do_action("update_products","filter",a(this))}),braapf_checkbox_same=function(b,c,d){a('.bapf_sfilter[data-taxonomy="'+b+'"] input[value="'+c+'"]').prop("checked",d),a('.bapf_sfilter[data-taxonomy="'+b+'"]').length<a('.bapf_sfilter.bapf_ckbox[data-taxonomy="'+b+'"]').length&&berocket_throw_error("multiple_filters_for_same_taxonomy",b)},a(document).on("braapf_unselect",".bapf_ckbox",function(b,c){if("undefined"==typeof c&&(c=!1),0==c)var d=a(this).find("input[type=checkbox]");else var d=a(this).find('input[value="'+c.value+'"]');if(d.length>0){var e=d.val(),f=a(this).data("taxonomy");d.prop("checked",!1),braapf_checkbox_same(f,e,!1)}}),a(document).on("braapf_unselect_all",".bapf_ckbox",function(b,c){a(this).trigger("braapf_unselect",!1)}),a(document).on("click",".berocket_aapf_widget_update_button, .bapf_update",function(b){b.preventDefault(),berocket_do_action("update_products","update",a(this))}),a(document).on("click",".berocket_aapf_reset_button, .bapf_reset",function(b){b.preventDefault(),braapf_unselect_all(),berocket_do_action("update_products","reset_all",a(this))}),braapf_reset_buttons_hide=function(){berocket_apply_filters("bapf_rst_nofltr_hide","undefined"==typeof braapf_filtered_filters||braapf_filtered_filters.length<=0)?a(".bapf_rst_nofltr").hide():a(".bapf_rst_nofltr").show();var b=!1;"undefined"!=typeof braapf_filtered_filters&&braapf_filtered_filters.length>0&&a.each(braapf_filtered_filters,function(a,c){if(c.values.length>0)return b=!0,!1}),berocket_apply_filters("bapf_rst_sel_show",b)?a(".bapf_rst_sel").show():a(".bapf_rst_sel").hide()},berocket_add_filter("braapf_init",braapf_reset_buttons_hide,1500),berocket_add_filter("braapf_init_filtered_set",braapf_reset_buttons_hide,1500);var d=the_ajax_script.pagination_class;d=d.replace(","," a,"),d=berocket_apply_filters("pagination_links_a_tags",d+" a",the_ajax_script.pagination_class),!the_ajax_script.disable_ajax_loading&&the_ajax_script.woocommerce_removes.pagination_ajax&&a(document).on("click",d,function(c){c.preventDefault();var d=a(this).attr("href");d=berocket_apply_filters("pagination_href_from_clicked_a",decodeURI(d),a(this)),braapf_change_url_history_api(d,{replace:the_ajax_script.seo_friendly_urls}),berocket_add_filter("ajax_load_from_url_beforeSend",b),braapf_ajax_load_from_url(d,{},berocket_apply_filters("ajax_load_from_pagination",{done:[braapf_replace_products,braapf_replace_pagination,braapf_replace_result_count,braapf_init_load]},d))}),!the_ajax_script.disable_ajax_loading&&the_ajax_script.control_sorting&&a(document).on("submit",the_ajax_script.ordering_class,function(b){b.preventDefault();var c=braapf_get_current_url_data();if(c=braapf_remove_pages_from_url_data(c),Array.isArray(c.queryargs)){var d=[];a.each(c.queryargs,function(a,b){"orderby"!=b.name&&d.push(b)}),c.queryargs=d}else c.queryargs=[];var e=a(this).serializeArray();Array.isArray(e)&&a.each(e,function(a,b){"paged"==b.name?c.page=parseInt(b.value):"orderby"==b.name?the_ajax_script.default_sorting!=b.value&&c.queryargs.push(b):c.queryargs.push(b)});var f=braapf_build_url_from_urldata(c);braapf_filter_products_by_url(f)}),braapf_get_url_with_filters_selected=function(){braapf_grab_all();var a=braapf_compact_filters(),b=berocket_apply_filters("braapf_filters_mask",the_ajax_script.url_mask),c=braapf_compat_filters_to_string(a,b,the_ajax_script.url_split),d=braapf_get_current_url_data();d.filter=c,d=braapf_remove_pages_from_url_data(d);var e=braapf_build_url_from_urldata(d);return e},braapf_update_products=function(b,c){"undefined"==typeof b&&(b="filter"),"undefined"==typeof c&&(c=!1),b=berocket_apply_filters("before_update_products_context",b,c);var d=braapf_get_url_with_filters_selected();berocket_apply_filters("apply_filters_to_page",0==a(".berocket_aapf_widget_update_button:visible, .bapf_update:visible").length||"filter"!=b,b,c,d)?(braapf_selected_filters_area_set(),braapf_filter_products_by_url(d)):berocket_apply_filters("apply_filters_to_page_partial",!1,b,c,d)&&braapf_ajax_load_from_url(d,{},berocket_apply_filters("ajax_load_from_filters_partial",{done:[braapf_replace_each_filter,braapf_init_load]},d,"partial"),"partial")},braapf_filter_products_by_url=function(b){berocket_apply_filters("page_has_products_holder",!a(the_ajax_script.products_holder_id).length,b)?location.href=b:(braapf_change_url_history_api(b,{replace:the_ajax_script.seo_friendly_urls}),braapf_ajax_load_from_url(b,{},berocket_apply_filters("ajax_load_from_filters",{done:[braapf_replace_products,braapf_replace_pagination,braapf_replace_result_count,braapf_replace_orderby,braapf_replace_each_filter,braapf_init_load,braapf_filtered_filters_set,braapf_update_url_history_api_from_current]},b,"default")))},braapf_update_url_history_api_from_current=function(){the_ajax_script.seo_friendly_urls&&(url_filtered=braapf_get_url_with_filters_selected(),history.replaceState(history.state,"BeRocket Rules",url_filtered))},braapf_grab_all=function(b){"undefined"==typeof b&&(b=!1);var c=[];if(b===!1)var d=a(".bapf_sfilter");else var d=a(b).find(".bapf_sfilter");return d.each(function(){var a=braapf_grab_single(this,c);a!==!1&&c.push(a)}),c=berocket_apply_filters("grab_all_filters",c,b),b===!1&&(braapf_selected_filters=c),c},braapf_grab_single=function(b,c,d){"undefined"==typeof d&&(d=!1),b=a(b);var e=!1,f=!1,g=b.data("taxonomy");if("undefined"==typeof g||!g)return berocket_apply_filters("grab_single_filter_taxonomy_undefined",e,b,c);if(a.each(c,function(a,b){b.taxonomy==g&&(f=!0)}),!berocket_apply_filters("grab_single_filter_exist",f,b,c)){if(e=berocket_apply_filters("grab_single_filter",e,b,c),e!==!1)return e;var h=b.data("op"),i=b.data("name");"undefined"==typeof i&&(i="");var j=braapf_glue_by_operator(h),k=[],l=[];if(d)var m=b;else var m=a(".bapf_sfilter[data-taxonomy="+g+"]");m.find("input:checked:not(:disabled)").each(function(b,c){l.indexOf(a(this).val())==-1&&(k.push({value:a(this).val(),html:a(this).data("name")}),l.push(a(this).val()))}),e={name:i,taxonomy:g,values:k,glue:j,operator:h}}return berocket_apply_filters("grab_single_filter_default",e,b,c)},braapf_glue_by_operator=function(a){"string"!=typeof a&&(a="");var b="-";return"and"==a.toLowerCase()&&(b="+"),berocket_apply_filters("glue_by_operator",b,a)},braapf_compact_filters=function(b){"undefined"==typeof b&&(b=braapf_selected_filters);var c=[];return a.each(b,function(b,d){var e="";"undefined"!=typeof d.customValuesLine?e=d.customValuesLine:a.each(d.values,function(a,b){e.length&&(e+=d.glue),e+=b.value}),e.length&&c.push(berocket_apply_filters("compat_filters_result_single",{taxonomy:d.taxonomy,values:e},d))}),berocket_apply_filters("compat_filters_result",c,b)},braapf_compat_filters_to_string=function(b,c,d){var e="";return a.each(b,function(a,f){e.length&&(e+=d);var g=c;g=g.replace("%t%",f.taxonomy),g=g.replace("%v%",f.values),e+=berocket_apply_filters("compat_filters_to_string_single",g,f,b,c,d)}),berocket_apply_filters("compat_filters_to_string",e,b,c,d)},braapf_get_current_url_data=function(b){if("undefined"==typeof b)var c=location.href.split("#")[0].split("?")[0],d=location.search.substring(1);else{var c=b.split("#")[0].split("?")[0];if(b.split("#")[0].split("?").length>1)var d=b.split("#")[0].split("?")[1];else var d=""}var e=[],f=1,g=c.match(/\/page\/(\d+)/);return g&&"string"==typeof g[1]&&(f=parseInt(g[1]),c=c.replace(/\/page\/(\d+)/,"")),d=d.split("&"),a.each(d,function(a,b){b.length&&(d[a]=b.split("="),"paged"==d[a][0]?f=parseInt(d[a][1]):e.push({name:d[a][0],value:d[a][1]}))}),berocket_apply_filters("get_current_url_data",{baselink:c,queryargs:e,filter:"",page:f})},braapf_remove_pages_from_url_data=function(b){if(b.page=1,Array.isArray(b.queryargs)){var c=[];a.each(b.queryargs,function(a,b){"product-page"!=b.name&&c.push(b)}),b.queryargs=c}return b},braapf_build_url_from_urldata=function(b,c){"undefined"==typeof c&&(c=braapf_build_url_parameters_default());var d=berocket_apply_filters("url_from_urldata_baselink",b.baselink,b,c),e="";return b.queryargs.length&&a.each(b.queryargs,function(a,b){e.length&&(e+="&"),b.name.length&&(e+=b.name+"="+b.value)}),b.page&&b.page>1&&(e.length&&(e+="&"),e+="paged="+b.page),e.length&&(e="?"+e),d=berocket_apply_filters("url_from_urldata_linkget",d+e,b,c,d,e)},braapf_build_url_parameters_default=function(){return berocket_apply_filters("build_url_parameters_default",{})},braapf_replace_current_with_new=function(b,c,d){"undefined"==typeof d&&(d={}),args={replace:!1},jQuery.extend(args,d);var e=a("<div><div>"+b+"</div></div>"),f=e.find(c),g=a(c);0!=g.length&&(f.length!=g.length&&0!=f.length&&berocket_throw_error("error_notsame_block_qty",c,f.length,g.length),0==f.length?(g.html("").addClass("braapfNotReplaced"),g.hide()):(g.each(function(b,c){"undefined"!=typeof f[b]?args.replace?a(c).replaceWith(a(f[b])):a(c).html(a(f[b]).html()).removeClass("braapfNotReplaced"):a(c).html("").addClass("braapfNotReplaced")}),g.show()))},braapf_replace_products=function(b){var c=the_ajax_script.products_holder_id;a("<div><div>"+b+"</div></div>");a(".bapf_no_products").remove(),braapf_replace_current_with_new(b,c),a(".braapfNotReplaced").filter(c).length&&a(".braapfNotReplaced").filter(c).before(a(the_ajax_script.no_products))},braapf_replace_pagination=function(b){var c=the_ajax_script.pagination_class;if(0==a(c).length){var d=the_ajax_script.products_holder_id,e=a("<div><div>"+b+"</div></div>"),f=e.find(c).last();f.length&&a(d).last().after(f)}else braapf_replace_current_with_new(b,c)},braapf_replace_result_count=function(a){var b=the_ajax_script.result_count_class;braapf_replace_current_with_new(a,b)},braapf_replace_orderby=function(a){var b=the_ajax_script.ordering_class;braapf_replace_current_with_new(a,b)},braapf_replace_each_filter=function(b){var c=a("<div><div>"+b+"</div></div>");a(".berocket_single_filter_widget").each(function(){var b=a(this).data("id");a(".berocket_single_filter_widget_"+b).html(c.find(".berocket_single_filter_widget_"+b).last().html()),c.find(".berocket_single_filter_widget_"+b).is(".bapf_mt_none")?a(".berocket_single_filter_widget_"+b).addClass("bapf_mt_none"):a(".berocket_single_filter_widget_"+b).removeClass("bapf_mt_none")})},braapf_change_url_history_api=function(a,b){if("undefined"!=typeof b&&b.replace){var c={BeRocket:"Rules"};history.replaceState(c,""),history.pushState(c,"",a),history.pathname=a}},berocket_apply_filters("load_products_ajax_on_popstate",!0)&&(window.onpopstate=function(b){if(null!=b.state&&"Rules"==b.state.BeRocket){var c=location.href;berocket_apply_filters("page_has_products_holder",!a(the_ajax_script.products_holder_id).length,c)?location.href=c:braapf_ajax_load_from_url(c,{},berocket_apply_filters("ajax_load_from_filters",{done:[braapf_replace_products,braapf_replace_pagination,braapf_replace_result_count,braapf_replace_orderby,braapf_replace_each_filter,braapf_init_load,braapf_filtered_filters_set,braapf_update_url_history_api_from_current]},c,"default"))}}),braapf_ajax_load_from_url=function(a,b,c,d){"undefined"==typeof d&&(d="default"),"object"!=typeof b&&(b={}),"object"!=typeof c&&(c={done:[],fail:[],always:[]}),"undefined"!=typeof c.done&&Array.isArray(c.done)||(c.done=[]),"undefined"!=typeof c.fail&&Array.isArray(c.fail)||(c.fail=[]),"undefined"!=typeof c.always&&Array.isArray(c.always)||(c.always=[]),a=berocket_apply_filters("ajax_load_from_url_url",a,b,c,d),b=berocket_apply_filters("ajax_load_from_url_data",b,a,c,d),c=berocket_apply_filters("ajax_load_from_url_callback",c,a,b,d),braapf_ajax_load_from_url_request(a,b,c,d)},braapf_ajax_load_from_url_request=function(b,c,d,e){a(document).trigger("berocket_ajax_filtering_start"),"object"==typeof braapf_ajax_request&&"undefined"!=typeof braapf_ajax_request.abort&&braapf_ajax_request.abort(),braapf_ajax_request=a.ajax({method:"GET",url:b,data:c,beforeSend:function(a){a=berocket_apply_filters("ajax_load_from_url_beforeSend",a,b,c,d,e)}}).done(function(f,g,h){a(document).trigger("berocket_ajax_filtering_on_update"),f=berocket_apply_filters("ajax_load_from_url_done",f,b,c,d,e),a.each(d.done,function(a,b){b(f,g,h)}),f=berocket_apply_filters("ajax_load_from_url_done_after",f,b,c,d,e),a(document).trigger("berocket_ajax_products_loaded")}).fail(function(f,g,h){if("abort"==g)return!1;if(a(document).trigger("berocket_ajax_products_not_loaded"),f=berocket_apply_filters("ajax_load_from_url_fail",f,b,c,d,e),a.each(d.fail,function(a,b){b(f,g,h)}),f=berocket_apply_filters("ajax_load_from_url_fail_after",f,b,c,d,e),"default"==e){var i=jQuery.param(c);i&&(b=b.split("?").length>1?b+"&"+i:b+"?"+i),location.href=b}}).always(function(f,g,h){f=berocket_apply_filters("ajax_load_from_url_always",f,b,c,d,e),a.each(d.always,function(a,b){b(f,g,h)}),f=berocket_apply_filters("ajax_load_from_url_always_after",f,b,c,d,e),a(document).trigger("berocket_ajax_filtering_end")})},braapf_init_load=function(){var b=berocket_apply_filters("filter_mobile_width",767),c=berocket_apply_filters("filter_tablet_width",1024);a(window).width()<=b&&a(".bapf_sngl_hd_mobile").remove(),a(window).width()>b&&a(window).width()<=c&&a(".bapf_sngl_hd_tablet").remove(),a(window).width()>c&&a(".bapf_sngl_hd_desktop").remove(),a(".bapf_sfilter .bapf_body.bapf_mcs:not(.bapf_mcs_ready)").each(function(){a(this).css("max-height",a(this).data("mcs-h")).mCustomScrollbar({scrollInertia:300}).addClass("bapf_mcs_ready")}),a(".berocket_single_filter_widget").each(function(){var b=a(this).data("id");berocket_apply_filters("remove_same_filters_to_prevent_errors",a(".berocket_single_filter_widget_"+b).length>1,a(this),b)&&a(".berocket_single_filter_widget_"+b).not(a(".berocket_single_filter_widget_"+b).first()).remove()}),a("body").on("click",".bapf_desci",function(a){a.stopPropagation()}),a("body").on("hover",".bapf_desci",function(a){a.stopPropagation()}),berocket_do_action("braapf_init",braapf_selected_filters),a(document).trigger("berocket_filters_first_load")},braapf_update_page_on_error=function(){berocket_apply_filters("update_page_on_error",!0)&&location.reload()},braapf_selected_filters_area_set=function(){if("undefined"!=typeof braapf_filtered_filters&&braapf_filtered_filters.length>0){var b="";a.each(braapf_filtered_filters,function(c,d){if(d.values.length>0){var e='<div class="bapf_sfa_taxonomy"><span>'+d.name+"</span>";e+="<ul>";var f="";a.each(d.values,function(a,b){f+=berocket_apply_filters("default_selected_filters_area_single",'<li><a href="#unselect_'+b.value+'" class="braapf_unselect" data-taxonomy="'+d.taxonomy+'" data-value="'+b.value+'"><i class="fa fa-times"></i>'+b.html+"</a></li>",b)}),e+=f,e+="</ul></div>",b+=berocket_apply_filters("default_selected_filters_area_single_taxonomy",e,d,f)}}),b?(a(".bapf_sfa_mt_hide").show().parent().removeClass("bapf_mt_none"),b=berocket_apply_filters("default_selected_filters_area_full_exist",'<div class="berocket_aapf_widget_selected_filter">'+b+'<ul class="bapf_sfa_unall"><li><a href="#Unselect_all" class="braapf_unselect_all"><i class="fa fa-times"></i> '+the_ajax_script.translate.unselect_all+"</a></li></ul>",b,braapf_filtered_filters)):(b=berocket_apply_filters("default_selected_filters_area_full_notexist",the_ajax_script.translate.nothing_selected,b,braapf_filtered_filters),a(".bapf_sfa_mt_hide").hide().parent().addClass("bapf_mt_none")),a(".berocket_aapf_widget_selected_area").html(b)}},a(document).on("click",".berocket_aapf_widget_selected_area .braapf_unselect",function(b){b.preventDefault(),a(".bapf_sfilter[data-taxonomy="+a(this).data("taxonomy")+"]").trigger("braapf_unselect",a(this).data()),berocket_do_action("update_products","reset_single",a(this))}),braapf_unselect_all=function(){braapf_grab_all(),"undefined"!=typeof braapf_selected_filters&&braapf_selected_filters.length>0&&a.each(braapf_selected_filters,function(b,c){c.values.length>0&&a(".bapf_sfilter[data-taxonomy="+c.taxonomy+"]").trigger("braapf_unselect_all",c)})},a(document).on("click",".berocket_aapf_widget_selected_area .braapf_unselect_all",function(b){b.preventDefault(),braapf_unselect_all(),berocket_do_action("update_products","reset_all",a(this))}),berocket_add_filter("braapf_init",braapf_grab_all_init,1e3),berocket_add_filter("braapf_init",braapf_selected_filters_area_set_init,1100),berocket_add_filter("braapf_init_filtered_set",braapf_selected_filters_area_set_init,1100),braapf_reload_page_for_products_error=function(a,b){return b==the_ajax_script.products_holder_id&&braapf_update_page_on_error(),a},berocket_add_filter("ajax_load_from_url_beforeSend",c),berocket_add_filter("update_products",braapf_update_products),berocket_add_filter("error_notsame_block_qty",braapf_reload_page_for_products_error),bapf_universal_theme_compatibility=function(b){if(berocket_apply_filters("universal_theme_compatibility",!0)){a(window).trigger("resize");try{berocket_apply_filters("uncode_theme_compatibility","object"==typeof UNCODE&&"function"==typeof UNCODE.init)&&UNCODE.init()}catch(a){berocket_throw_error("uncode_theme_compatibility",a)}try{berocket_apply_filters("flatsome_theme_compatibility","object"==typeof Flatsome&&"function"==typeof Flatsome.attach&&jQuery(the_ajax_script.products_holder_id).length)&&Flatsome.attach(jQuery(the_ajax_script.products_holder_id))}catch(a){berocket_throw_error("flatsome_theme_compatibility",a)}try{berocket_apply_filters("woodmart_theme_compatibility","object"==typeof woodmartThemeModule&&"function"==typeof woodmartThemeModule.init)&&(woodmartThemeModule.wooInit(),woodmartThemeModule.lazyLoading(),woodmartThemeModule.productsLoadMore())}catch(a){berocket_throw_error("woodmart_theme_compatibility",a)}try{berocket_apply_filters("divi_theme_compatibility","function"==typeof et_reinit_waypoint_modules)&&et_reinit_waypoint_modules()}catch(a){berocket_throw_error("divi_theme_compatibility",a)}try{berocket_apply_filters("rey_theme_compatibility","object"==typeof jQuery.reyTheme&&"function"==typeof jQuery.reyTheme.init)&&jQuery.reyTheme.init()}catch(a){berocket_throw_error("rey_theme_compatibility",a)}try{berocket_apply_filters("layzyloadimage_script_compatibility","function"==typeof layzyLoadImage)&&layzyLoadImage()}catch(a){berocket_throw_error("layzyloadimage_script_compatibility",a)}try{berocket_apply_filters("jetpacklazyimages_script_compatibility","function"==typeof jetpackLazyImagesModule)&&jetpackLazyImagesModule()}catch(a){berocket_throw_error("jetpacklazyimages_script_compatibility",a)}}return b},berocket_add_filter("ajax_load_from_url_always_after",bapf_universal_theme_compatibility,2500),a(document).ready(function(){berocket_apply_filters("remove_shortcode_fix_filters",a(".berocket_wc_shortcode_fix").length)&&(braapf_replace_each_filter(a(".berocket_wc_shortcode_fix").html()),a(".berocket_wc_shortcode_fix").html("")),braapf_init_load(),braapf_filtered_filters_set(),a(document).trigger("berocket_filters_document_ready")}),braapf_disable_ajax_loading=function(a){return!0},the_ajax_script.disable_ajax_loading&&berocket_add_filter("page_has_products_holder",braapf_disable_ajax_loading),braapf_close_tippy=function(){try{a(".tippy-box").length&&a(".tippy-box").each(function(){"undefined"!=typeof a(this).parent()[0]._tippy&&a(this).parent()[0]._tippy.hide()})}catch(a){}},berocket_add_filter("update_products",braapf_close_tippy)}(jQuery);var braapf_get_current_filters,braapf_filters_url_decode,braapf_scroll_shop_to_top,braapf_set_filters_to_link,braapf_convert_ckbox_to_radio,braapf_hierarhical_save,braapf_hierarhical_set,braapf_collapse_status_save,braapf_collapse_status_set,braapf_show_hide_values_save,braapf_show_hide_values_set,berocket_custom_sidebar_close,berocket_custom_sidebar_open;!function(a){function b(){jQuery(".berocket_product_table_compat .dataTables_length select").length&&jQuery(".berocket_product_table_compat .wc-product-table").dataTable()._fnSaveState();var a=jQuery(".berocket_product_table_compat .wc-product-table").attr("id");if("undefined"!=typeof window["config_"+a]&&window["config_"+a].serverSide){jQuery(".berocket_product_table_compat .wc-product-table").DataTable().destroy();var b=jQuery(".berocket_product_table_compat").html();jQuery(".berocket_product_table_compat").html(""),jQuery(".berocket_product_table_compat").html(b),jQuery(".berocket_product_table_compat .blockUI.blockOverlay").remove(),jQuery(".berocket_product_table_compat .wc-product-table").productTable()}}braapf_get_current_filters=function(b){if(b.queryargs.length){var c=[];a.each(b.queryargs,function(a,d){d.name==the_ajax_script.url_variable?b.filter=d.value:c.push(d)}),b.queryargs=c}return b},braapf_set_filters_to_link=function(a,b,c,d,e){return"string"==typeof b.filter&&b.filter.length&&(a+=e.length?"&":"?",a+=the_ajax_script.url_variable+"="+b.filter),a},braapf_convert_ckbox_to_radio=function(b,c,d,e){var f=(a(b),a(b).closest(".bapf_sfilter.bapf_ckbox"));f.is(".bapf_asradio")&&f.find("input[type=checkbox]:checked:not(:disabled)").each(function(){var b=a(this).val();b!=d&&braapf_checkbox_same(c,b,!1)})},berocket_add_filter("input_ckbox_changed",braapf_convert_ckbox_to_radio),a(document).on("click",".bapf_ochild, .bapf_cchild",function(b){b.preventDefault,a(this).is(".bapf_ochild")?a(this).trigger("bapf_ochild"):a(this).trigger("bapf_cchild")}),a(document).on("bapf_ochild",".bapf_sfilter.bapf_ckbox ul li",function(b){b.stopPropagation(),a(this).find(".bapf_ochild, .bapf_cchild").first().removeClass("bapf_ochild").removeClass("fa-plus").addClass("bapf_cchild").addClass("fa-minus"),a(this).find("ul").first().show()}),a(document).on("bapf_cchild",".bapf_sfilter.bapf_ckbox ul li",function(b){b.stopPropagation(),a(this).find(".bapf_ochild, .bapf_cchild").first().addClass("bapf_ochild").addClass("fa-plus").removeClass("bapf_cchild").removeClass("fa-minus"),a(this).find("ul").first().hide()});var c=[];braapf_hierarhical_save=function(b){return c=[],a(".bapf_cchild").each(function(){c.push(a(this).parent().children("input[type=checkbox]").attr("id"))}),b},braapf_hierarhical_set=function(b){return a.each(c,function(b,c){a("#"+c).trigger("bapf_ochild")}),b},berocket_add_filter("ajax_load_from_url_done",braapf_hierarhical_save,1),berocket_add_filter("ajax_load_from_url_done_after",braapf_hierarhical_set,1e3),a(document).on("click",".bapf_ocolaps .bapf_colaps_togl, .bapf_ccolaps .bapf_colaps_togl",function(b){b.preventDefault,a(this).closest(".bapf_ocolaps, .bapf_ccolaps").is(".bapf_ocolaps")?a(this).closest(".bapf_ocolaps, .bapf_ccolaps").trigger("bapf_ocolaps"):a(this).closest(".bapf_ocolaps, .bapf_ccolaps").trigger("bapf_ccolaps")}),a(document).on("bapf_ocolaps",".bapf_sfilter.bapf_ocolaps, .bapf_sfilter.bapf_ccolaps",function(b){a(this).removeClass("bapf_ocolaps").addClass("bapf_ccolaps"),berocket_apply_filters("colaps_smb_open_apply",!0,a(this))&&(a(this).find(".bapf_body").first().show(),a(this).find(".bapf_colaps_smb").length&&a(this).find(".bapf_colaps_smb").removeClass("fa-chevron-down").addClass("fa-chevron-up"))}),a(document).on("bapf_ccolaps",".bapf_sfilter.bapf_ocolaps, .bapf_sfilter.bapf_ccolaps",function(b){a(this).addClass("bapf_ocolaps").removeClass("bapf_ccolaps"),berocket_apply_filters("colaps_smb_close_apply",!0,a(this))&&(a(this).find(".bapf_body").first().hide(),a(this).find(".bapf_colaps_smb").length&&a(this).find(".bapf_colaps_smb").addClass("fa-chevron-down").removeClass("fa-chevron-up"))});var d={open:[],close:[]};braapf_collapse_status_save=function(b){return d={open:[],close:[]},a(".bapf_ocolaps, .bapf_ccolaps").each(function(){a(this).is(".bapf_ocolaps")?d.open.push(a(this).attr("id")):d.close.push(a(this).attr("id"))}),b},braapf_collapse_status_set=function(b){return a.each(d.open,function(b,c){a("#"+c).trigger("bapf_ccolaps")}),a.each(d.close,function(b,c){a("#"+c).trigger("bapf_ocolaps")}),b},berocket_add_filter("ajax_load_from_url_done",braapf_collapse_status_save,1),berocket_add_filter("ajax_load_from_url_done_after",braapf_collapse_status_set,1e3),a(document).on("click",".bapf_show_hide",function(){a(this).closest(".bapf_sfilter").toggleClass("bapf_fhide"),a(this).closest(".bapf_sfilter").is(".bapf_fhide")?a(this).text(a(this).data("show")):a(this).text(a(this).data("hide"))});var e={open:[],close:[]};braapf_show_hide_values_save=function(b){return e={open:[],close:[]},a(".bapf_sfilter").each(function(){a(this).is(".bapf_fhide")?e.close.push(a(this).attr("id")):e.open.push(a(this).attr("id"))}),b},braapf_show_hide_values_set=function(b){return a.each(e.open,function(b,c){a("#"+c).removeClass("bapf_fhide"),a("#"+c).find(".bapf_show_hide").text(a("#"+c).find(".bapf_show_hide").data("hide"))}),a.each(e.close,function(b,c){a("#"+c).addClass("bapf_fhide"),a("#"+c).find(".bapf_show_hide").text(a("#"+c).find(".bapf_show_hide").data("show"))}),b},berocket_add_filter("ajax_load_from_url_done",braapf_show_hide_values_save,1),berocket_add_filter("ajax_load_from_url_done_after",braapf_show_hide_values_set,1e3),braapf_scroll_shop_to_top=function(b,c,d,e,f){var g=berocket_apply_filters("filter_mobile_width",767);if(berocket_apply_filters("scroll_shop_to_top","default"==f&&(1==the_ajax_script.scroll_shop_top||2==the_ajax_script.scroll_shop_top&&a(window).width()<g||3==the_ajax_script.scroll_shop_top&&a(window).width()>=g))){var h=0;a(the_ajax_script.products_holder_id).length?(h=a(the_ajax_script.products_holder_id).offset().top+parseInt(the_ajax_script.scroll_shop_top_px),h<0&&(h=0)):a(".bapf_no_products").length&&(h=a(".bapf_no_products").offset().top+parseInt(the_ajax_script.scroll_shop_top_px),h<0&&(h=0)),a("html, body").animate({scrollTop:h},"slow")}return b},berocket_add_filter("ajax_load_from_url_beforeSend",braapf_scroll_shop_to_top),
10
- a(document).on("mousedown",".wc-product-table-reset a",function(){a(this).remove(),br_reset_all_filters()}),a(document).on("click",".berocket_element_above_products_is_hide_toggle",function(b){b.preventDefault(),a(this).toggleClass("active").next().slideToggle(200,"linear");var c="inactive";a(this).is(".active")&&(c="active"),a(document).trigger("berocket_element_above_products_"+c)}),berocket_custom_sidebar_close=function(){a(".berocket_ajax_filters_sidebar_toggle").removeClass("active"),a("#berocket-ajax-filters-sidebar").removeClass("active"),a("body").removeClass("berocket_ajax_filters_sidebar_active")},berocket_custom_sidebar_open=function(){a(".berocket_ajax_filters_sidebar_toggle").addClass("active"),a("#berocket-ajax-filters-sidebar").addClass("active"),a("body").addClass("berocket_ajax_filters_sidebar_active")},a(document).on("berocket_custom_sidebar_close",berocket_custom_sidebar_close),a(document).on("berocket_custom_sidebar_open",berocket_custom_sidebar_open),a(document).on("click",".berocket_ajax_filters_sidebar_toggle",function(b){b.preventDefault(),a(this).is(".active")&&a("#berocket-ajax-filters-sidebar").is(".active")?berocket_custom_sidebar_close():berocket_custom_sidebar_open()}),a(document).on("click","#berocket-ajax-filters-sidebar-shadow, #berocket-ajax-filters-sidebar-close",function(a){a.preventDefault(),berocket_custom_sidebar_close()}),a(document).on("berocket_ajax_filtering_start",function(){jQuery(".berocket_product_table_compat").length&&b()}),braapf_filters_url_decode=function(a){return the_ajax_script.seo_uri_decode&&(a=encodeURIComponent(a),the_ajax_script.nice_urls&&(a=a.replace(/%2F/g,"/"))),a}}(jQuery),berocket_add_filter("get_current_url_data",braapf_get_current_filters),berocket_add_filter("compat_filters_to_string",braapf_filters_url_decode,900),berocket_add_filter("url_from_urldata_linkget",braapf_set_filters_to_link);var braapf_child_parent_grab_single,braapf_child_parent_fix_selected,braapf_child_parent_load_with_update_button,braapf_add_loader_element,braapf_remove_loader_element;!function(a){braapf_child_parent_grab_single=function(b,c,d){var e=c.data("child");if("undefined"!=typeof e&&e>0&&"object"==typeof b&&"undefined"!=typeof b.values&&Array.isArray(b.values)&&b.values.length>0){e++;var f=c.data("taxonomy"),g=a(".bapf_sfilter.bapf_child_"+e+"[data-taxonomy="+f+"]");if(g.length){var h=braapf_grab_single(g,[],!0);"object"==typeof h&&"undefined"!=typeof h.values&&Array.isArray(h.values)&&h.values.length>0&&(b=h)}}return b},braapf_child_parent_fix_selected=function(b,c){if(0!=c){var d=c.closest(".bapf_sfilter");if(d.length){var e=d.data("child"),f=d.data("taxonomy");if("undefined"!=typeof e&&e>0)for(i=e+1;a(".bapf_sfilter.bapf_child_"+i+"[data-taxonomy="+f+"]").length;i++)a(".bapf_sfilter.bapf_child_"+i+"[data-taxonomy="+f+"]").trigger("braapf_unselect",!1)}}return b},braapf_child_parent_load_with_update_button=function(a,b,c){if(0!=c){var d=c.closest(".bapf_sfilter");if(d.length){var e=d.data("child");d.data("taxonomy");"undefined"!=typeof e&&e>0&&(a=!0)}}return a},berocket_add_filter("grab_single_filter_default",braapf_child_parent_grab_single),berocket_add_filter("before_update_products_context",braapf_child_parent_fix_selected),berocket_add_filter("apply_filters_to_page_partial",braapf_child_parent_load_with_update_button);var b;braapf_add_loader_element=function(c,d,e,f,g){return"default"==g&&("undefined"!=typeof b&&"function"==typeof b.remove&&b.remove(),b=a(the_ajax_script.load_image),a("body").append(b)),c},braapf_remove_loader_element=function(a){return"undefined"!=typeof b&&"function"==typeof b.remove&&b.remove(),a},berocket_add_filter("ajax_load_from_url_beforeSend",braapf_add_loader_element),berocket_add_filter("ajax_load_from_url_always_after",braapf_remove_loader_element),a(document).on("click",".bapf_sfilter.bapf_ckbox .bapf_body li label a",function(b){b.preventDefault(),a(this).parent().trigger("click")})}(jQuery);var braapf_init_ion_slidr,braapf_ion_slidr_same,braapf_jqrui_slidr_ion_value_wc_price,braapf_jqrui_slidr_ion_value_arr_attr,braapf_init_ion_slidr_for_parent,braapf_grab_single_ion,braapf_jqrui_slidr_ion_values_link_arr_attr;!function(a){braapf_init_ion_slidr=function(){braapf_init_ion_slidr_for_parent(a(document))},braapf_init_ion_slidr_for_parent=function(b){b.find(".bapf_slidr_ion:not(.bapf_slidr_ready)").each(function(){var b=a(this).find(".bapf_slidr_all .bapf_slidr_main"),c=function(a){if(!b.is(".bapf_ion_blocked")){b.addClass("bapf_ion_blocked");var c=b.closest(".bapf_sfilter").data("taxonomy");braapf_ion_slidr_same(c,a);var d={element:"#"+b.closest(".bapf_sfilter").attr("id"),parent:0,find:".bapf_body"};berocket_apply_filters("filter_changed_element",d,b),berocket_do_action("update_products","filter",b),b.removeClass("bapf_ion_blocked")}},d=berocket_apply_filters("jqrui_data_slidr_ion",{type:"double",from:b.data("start"),to:b.data("end"),grid:!1,force_edges:!0,onFinish:c,onUpdate:c,prettify:function(a){return a=berocket_apply_filters("jqrui_slidr_ion_"+b.data("display"),a,b)}},b);b.ionRangeSlider(d),a(this).addClass("bapf_slidr_ready")})},braapf_ion_slidr_same=function(b,c){a(".bapf_slidr_ion.bapf_slidr_ready[data-taxonomy="+b+"]").each(function(){var b=a(this).find(".bapf_slidr_main");b.addClass("bapf_ion_blocked");var d=b.data("ionRangeSlider");d.update({from:c.from,to:c.to}),b.removeClass("bapf_ion_blocked")})},braapf_jqrui_slidr_ion_value_wc_price=function(a,b){var c=b.data("number_style");return c||(c=the_ajax_script.number_style),a=berocket_format_number(parseFloat(a),c)},braapf_jqrui_slidr_ion_value_arr_attr=function(a,b){var c=b.data("attr");return a=c[a].n},braapf_grab_single_ion=function(a,b){if(b.is(".bapf_slidr_ion.bapf_slidr_ready")&&0!=a){var c=b.find(".bapf_slidr_main").data("ionRangeSlider"),d=b.find(".bapf_slidr_main"),e=[c.options.from,c.options.to],f=[berocket_apply_filters("jqrui_slidr_ion_"+d.data("display"),c.options.from,d),berocket_apply_filters("jqrui_slidr_ion_"+d.data("display"),c.options.to,d)],g=d.data("prefix");"undefined"==typeof g&&(g="");var h=d.data("postfix");if("undefined"==typeof h&&(h=""),f[0]=g+f[0]+h,f[1]=g+f[1]+h,e[0]!=d.data("min")||e[1]!=d.data("max")){var i={value:e[0]+"_"+e[1],html:f[0]+" - "+f[1]};i=berocket_apply_filters("jqrui_slidr_ion_link_"+d.data("display"),i,e,f,d,a),a.values=[i]}}return a},braapf_jqrui_slidr_ion_values_link_arr_attr=function(a,b,c,d,e){var f=d.data("attr");return a.value=f[b[0]].v+"_"+f[b[1]].v,a},a(document).on("braapf_unselect braapf_unselect_all",".bapf_slidr_ion",function(b,c){var d=a(this).find(".bapf_slidr_main"),e=d.data("ionRangeSlider");d.addClass("bapf_ion_blocked"),e.update({from:e.options.min,to:e.options.max}),d.removeClass("bapf_ion_blocked")}),berocket_add_filter("braapf_init",braapf_init_ion_slidr),berocket_add_filter("braapf_init_for_parent",braapf_init_ion_slidr_for_parent),berocket_add_filter("grab_single_filter_default",braapf_grab_single_ion),berocket_add_filter("jqrui_slidr_ion_link_arr_attr",braapf_jqrui_slidr_ion_values_link_arr_attr),berocket_add_filter("jqrui_slidr_ion_wc_price",braapf_jqrui_slidr_ion_value_wc_price),berocket_add_filter("jqrui_slidr_ion_arr_attr",braapf_jqrui_slidr_ion_value_arr_attr)}(jQuery);var braapf_grab_single_select;!function(a){a(document).on("change",".bapf_slct .bapf_body select",function(){var b={element:"#"+a(this).closest(".bapf_sfilter").attr("id"),parent:0,find:".bapf_body"};berocket_apply_filters("filter_changed_element",b,a(this)),berocket_do_action("update_products","filter",a(this))}),braapf_grab_single_select=function(b,c){if(c.is(".bapf_slct")&&0!=b){var d=c.find(".bapf_body select:not(:disabled)");d.find("option:selected:not(:disabled)").each(function(){var c=a(this).val();c&&b.values.push({value:c,html:a(this).data("name")})})}return b},a(document).on("braapf_unselect braapf_unselect_all",".bapf_slct",function(b,c){a(this).find(".bapf_body select:not(:disabled) option:selected:not(:disabled)").each(function(){"undefined"!=typeof c.value&&c.value!=a(this).val()||a(this).prop("selected",!1)})}),berocket_add_filter("grab_single_filter_default",braapf_grab_single_select)}(jQuery);var bapf_select2_init,bapf_select2_init_for_parent,bapf_select2_disable_for_parent;jQuery(document).ready(function(){bapf_select2_init=function(){bapf_select2_init_for_parent(jQuery(document))},bapf_select2_init_for_parent=function(a){a.find(".bapf_select2").length&&"undefined"!=typeof a.find(".bapf_select2").select2&&a.find(".bapf_select2").each(function(){if(!jQuery(this).data("select2")){var a={width:"100%",theme:"default"};jQuery(this).prop("multiple")&&(a.placeholder=jQuery(this).data("placeholder")),jQuery(this).parents("#berocket-ajax-filters-sidebar").length&&(0==jQuery("#bapf-select2-high-zindex").length&&jQuery("body").append('<div id="bapf-select2-high-zindex"></div>'),a.dropdownParent=jQuery("#bapf-select2-high-zindex")),a=berocket_apply_filters("jqrui_data_select2",a,jQuery(this)),jQuery(this).select2(a)}})},bapf_select2_disable_for_parent=function(a){a.find(".bapf_select2").length&&"undefined"!=typeof a.find(".bapf_select2").select2&&a.find(".bapf_select2").each(function(){jQuery(this).data("select2")&&jQuery(this).select2("destroy")})},jQuery(document).on("berocket_ajax_filtering_on_update",function(){bapf_select2_disable_for_parent(jQuery(document))}),bapf_select2_init(),berocket_add_filter("braapf_init",bapf_select2_init,2e3),berocket_add_filter("braapf_init_for_parent",bapf_select2_init_for_parent)});var braapf_init_jqrui_slidr,braapf_jqrui_slidr_same,braapf_jqrui_slidr_values_wc_price,braapf_init_jqrui_slidr_for_parent,braapf_grab_single_jqrui,braapf_jqrui_slidr_values_arr_attr,braapf_jqrui_slidr_values_link_arr_attr;!function(a){function b(b,c){var d=a(b).closest(".bapf_slidr_jqrui.bapf_slidr_ready").find(".bapf_slidr_main"),e=d.slider("values");a(b).val(e[c]),a(b).data("val",e[c])}function c(b,c,d){var e=a(b).closest(".bapf_slidr_jqrui.bapf_slidr_ready").find(".bapf_slidr_main");if("focusout"==d){if(a(b).val()==a(b).data("val")){var f=e.slider("values");e.trigger("braapf_change_jqrui_slidr",[f])}}else{var g=parseInt(a(b).val());e.slider("values",c,g)}}a.each([{position:0,className:"bapf_from"},{position:1,className:"bapf_to"}],function(d,e){a(document).on("focusin",".bapf_slidr_jqrui.bapf_slidr_ready ."+e.className+" input[type=text]",function(){b(this,e.position)}),a(document).on("change focusout",".bapf_slidr_jqrui.bapf_slidr_ready ."+e.className+" input[type=text]",function(a){c(this,e.position,a.type)}),a(document).on("change",".bapf_slidr_jqrui.bapf_slidr_ready ."+e.className+" select",function(a){c(this,e.position,a.type)})}),a(document).on("braapf_change_jqrui_slidr",".bapf_slidr_jqrui .bapf_slidr_main",function(b,c){var d=a(this),e=[c[0],c[1]];e=berocket_apply_filters("jqrui_slidr_"+d.data("display"),e,d),d.closest(".bapf_slidr_jqrui").find(".bapf_from span.bapf_val").length&&d.closest(".bapf_slidr_jqrui").find(".bapf_from span.bapf_val").text(e[0]),d.closest(".bapf_slidr_jqrui").find(".bapf_to span.bapf_val").length&&d.closest(".bapf_slidr_jqrui").find(".bapf_to span.bapf_val").text(e[1])}),a(document).on("braapf_change_jqrui_slidr",".bapf_slidr_jqrui .bapf_slidr_main",function(b,c){var d=a(this),e=[c[0],c[1]];e=berocket_apply_filters("jqrui_slidr_"+d.data("display"),e,d),d.closest(".bapf_slidr_jqrui").find(".bapf_from input[type=text]").length&&d.closest(".bapf_slidr_jqrui").find(".bapf_from input[type=text]").val(e[0]),d.closest(".bapf_slidr_jqrui").find(".bapf_to input[type=text]").length&&d.closest(".bapf_slidr_jqrui").find(".bapf_to input[type=text]").val(e[1])}),a(document).on("braapf_change_jqrui_slidr",".bapf_slidr_jqrui .bapf_slidr_main",function(b,c){var d=a(this),e=d.data("attr");if(d.closest(".bapf_slidr_jqrui").find(".bapf_from select").length||d.closest(".bapf_slidr_jqrui").find(".bapf_to select").length){var e=d.data("attr"),f=[],g=[],h=!1,i=!1;a.each(e,function(a,b){a==c[0]&&(i=!0),h||f.push({v:b.v,n:b.n,ov:a}),i&&g.push({v:b.v,n:b.n,ov:a}),a==c[1]&&(h=!0)})}d.closest(".bapf_slidr_jqrui").find(".bapf_from select").length&&(d.closest(".bapf_slidr_jqrui").find(".bapf_from select option").remove(),a.each(f,function(b,e){var f="";e.ov==c[0]&&(f=" selected"),d.closest(".bapf_slidr_jqrui").find(".bapf_from select").append(a('<option value="'+e.ov+'"'+f+">"+e.n+"</option>"))})),d.closest(".bapf_slidr_jqrui").find(".bapf_to select").length&&(d.closest(".bapf_slidr_jqrui").find(".bapf_to select option").remove(),a.each(g,function(b,e){var f="";e.ov==c[1]&&(f=" selected"),d.closest(".bapf_slidr_jqrui").find(".bapf_to select").append(a('<option value="'+e.ov+'"'+f+">"+e.n+"</option>"))}))}),braapf_init_jqrui_slidr=function(){braapf_init_jqrui_slidr_for_parent(a(document))},braapf_init_jqrui_slidr_for_parent=function(b){b.find(".bapf_slidr_jqrui:not(.bapf_slidr_ready)").each(function(){var b=a(this).find(".bapf_slidr_main"),c=berocket_apply_filters("jqrui_data_slidr_jqrui",{range:!0,min:b.data("min"),max:b.data("max"),values:[b.data("start"),b.data("end")],step:b.data("step"),create:function(b,c){var d=a(this).slider("values");a(this).trigger("braapf_change_jqrui_slidr",[d])},slide:function(b,c){a(this).trigger("braapf_change_jqrui_slidr",[c.values])},change:function(b,c){var d=a(this).slider("values");if(a(this).trigger("braapf_change_jqrui_slidr",[d]),!a(this).is(".bapf_jqrui_blocked")){var d=a(this).slider("values"),e=a(this).parents(".bapf_sfilter").data("taxonomy");braapf_jqrui_slidr_same(e,d);var f={element:"#"+a(this).closest(".bapf_sfilter").attr("id"),parent:0,find:".bapf_body"};berocket_apply_filters("filter_changed_element",f,a(this)),berocket_do_action("update_products","filter",a(this))}}},b);b.slider(c),a(this).addClass("bapf_slidr_ready")})},braapf_jqrui_slidr_same=function(b,c){a(".bapf_slidr_jqrui.bapf_slidr_ready[data-taxonomy="+b+"]").each(function(){var b=a(this).find(".bapf_slidr_main");b.addClass("bapf_jqrui_blocked"),b.slider("values",c),b.removeClass("bapf_jqrui_blocked")})},braapf_jqrui_slidr_values_wc_price=function(a,b){var c=b.data("number_style");return c||(c=the_ajax_script.number_style),a[0]=berocket_format_number(a[0],c),a[1]=berocket_format_number(a[1],c),a},braapf_grab_single_jqrui=function(a,b){if(b.is(".bapf_slidr_jqrui.bapf_slidr_ready")&&0!=a){var c=b.find(".bapf_slidr_main"),d=c.slider("values"),e=c.slider("values"),f="";b.find(".bapf_tbprice").length&&(f=b.find(".bapf_tbprice").first().text());var g="";if(b.find(".bapf_taprice").length&&(g=b.find(".bapf_taprice").first().text()),d[0]!=c.data("min")||d[1]!=c.data("max")){e=berocket_apply_filters("jqrui_slidr_"+c.data("display"),e,c),e[0]=f+e[0]+g,e[1]=f+e[1]+g;var h={value:d[0]+"_"+d[1],html:e[0]+" - "+e[1]};h=berocket_apply_filters("jqrui_slidr_link_"+c.data("display"),h,d,e,c,a),a.values=[h]}}return a},braapf_jqrui_slidr_values_arr_attr=function(a,b){var c=b.data("attr");return Array.isArray(a)&&2==a.length?(a[0]=c[a[0]].n,a[1]=c[a[1]].n):(a=["",""],a[0]=c[0].n,a[1]=c[c.length-1].n),a},braapf_jqrui_slidr_values_link_arr_attr=function(a,b,c,d,e){var f=d.data("attr");return a.value=f[b[0]].v+"_"+f[b[1]].v,a},a(document).on("braapf_unselect braapf_unselect_all",".bapf_slidr_jqrui",function(b,c){var d=a(this).find(".bapf_slidr_main"),e=d.data("min"),f=d.data("max");d.addClass("bapf_jqrui_blocked"),d.slider("values",[e,f]),d.removeClass("bapf_jqrui_blocked")}),berocket_add_filter("jqrui_slidr_wc_price",braapf_jqrui_slidr_values_wc_price),berocket_add_filter("jqrui_slidr_arr_attr",braapf_jqrui_slidr_values_arr_attr),berocket_add_filter("jqrui_slidr_link_arr_attr",braapf_jqrui_slidr_values_link_arr_attr),berocket_add_filter("grab_single_filter_default",braapf_grab_single_jqrui),berocket_add_filter("braapf_init",braapf_init_jqrui_slidr),berocket_add_filter("braapf_init_for_parent",braapf_init_jqrui_slidr_for_parent)}(jQuery);
6
  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){var b=a[0],c=this.$selection.find(".select2-selection__rendered"),d=this.display(b,c);c.empty().append(d);var e=b.title||b.text;e?c.attr("title",e):c.removeAttr("title")}else this.clear()},e}),i.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,e){var f=this;d.__super__.bind.apply(this,arguments),this.$selection.on("click",function(a){f.trigger("toggle",{originalEvent:a})}),this.$selection.on("click",".select2-selection__choice__remove",function(b){if(!f.isDisabled()){var d=a(this).parent(),e=c.GetData(d[0],"data");f.trigger("unselect",{originalEvent:b,data:e})}})},d.prototype.clear=function(){var a=this.$selection.find(".select2-selection__rendered");a.empty(),a.removeAttr("title")},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">&times;</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);var h=e.title||e.text;h&&f.attr("title",h),c.StoreData(f[0],"data",e),b.push(f)}var i=this.$selection.find(".select2-selection__rendered");c.appendMany(i,b)}},d}),i.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(1<b.length||c)return a.call(this,b);this.clear();var d=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(d)},b}),i.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(a,b,c){function d(){}return d.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)})},d.prototype._handleClear=function(a,b){if(!this.isDisabled()){var d=this.$selection.find(".select2-selection__clear");if(0!==d.length){b.stopPropagation();var e=c.GetData(d[0],"data"),f=this.$element.val();this.$element.val(this.placeholder.id);var g={data:e};if(this.trigger("clear",g),g.prevented)this.$element.val(f);else{for(var h=0;h<e.length;h++)if(g={data:e[h]},this.trigger("unselect",g),g.prevented)return void this.$element.val(f);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},d.prototype._handleKeyboardClear=function(a,c,d){d.isOpen()||c.which!=b.DELETE&&c.which!=b.BACKSPACE||this._handleClear(c)},d.prototype.update=function(b,d){if(b.call(this,d),!(0<this.$selection.find(".select2-selection__placeholder").length||0===d.length)){var e=this.options.get("translations").get("removeAllItems"),f=a('<span class="select2-selection__clear" title="'+e()+'">&times;</span>');c.StoreData(f[0],"data",d),this.$selection.find(".select2-selection__rendered").prepend(f)}},d}),i.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="none" spellcheck="false" role="searchbox" 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,d,e){var f=this,g=d.id+"-results";a.call(this,d,e),d.on("open",function(){f.$search.attr("aria-controls",g),f.$search.trigger("focus")}),d.on("close",function(){f.$search.val(""),f.$search.removeAttr("aria-controls"),f.$search.removeAttr("aria-activedescendant"),f.$search.trigger("focus")}),d.on("enable",function(){f.$search.prop("disabled",!1),f._transferTabIndex()}),d.on("disable",function(){f.$search.prop("disabled",!0)}),d.on("focus",function(a){f.$search.trigger("focus")}),d.on("results:focus",function(a){a.data._resultId?f.$search.attr("aria-activedescendant",a.data._resultId):f.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(a){f.trigger("focus",a)}),this.$selection.on("focusout",".select2-search--inline",function(a){f._handleBlur(a)}),this.$selection.on("keydown",".select2-search--inline",function(a){if(a.stopPropagation(),f.trigger("keypress",a),f._keyUpPrevented=a.isDefaultPrevented(),a.which===c.BACKSPACE&&""===f.$search.val()){var d=f.$searchContainer.prev(".select2-selection__choice");if(0<d.length){var e=b.GetData(d[0],"data");f.searchRemoveChoice(e),a.preventDefault()}}}),this.$selection.on("click",".select2-search--inline",function(a){f.$search.val()&&a.stopPropagation()});var h=document.documentMode,i=h&&h<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(a){i?f.$selection.off("input.search input.searchcheck"):f.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(a){if(i&&"input"===a.type)f.$selection.off("input.search input.searchcheck");else{var b=a.which;b!=c.SHIFT&&b!=c.CTRL&&b!=c.ALT&&b!=c.TAB&&f.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.trigger("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="";a=""!==this.$search.attr("placeholder")?this.$selection.find(".select2-selection__rendered").width():.75*(this.$search.val().length+1)+"em",this.$search.css("width",a)},d}),i.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","clear","clearing"],g=["opening","closing","selecting","unselecting","clearing"];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}),i.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}),i.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","Œ":"OE","Ƣ":"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","œ":"oe","ƣ":"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","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}}),i.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}),i.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("input").trigger("change");if(this.$element.prop("multiple"))this.current(function(d){var e=[];(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("input").trigger("change")});else{var d=a.id;this.$element.val(d),this.$element.trigger("input").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("input").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("input").trigger("change")})}},d.prototype.bind=function(a,b){var c=this;(this.container=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(){b.RemoveData(this)})},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 d;a.children?(d=document.createElement("optgroup")).label=a.text:void 0!==(d=document.createElement("option")).textContent?d.textContent=a.text:d.innerText=a.text,void 0!==a.id&&(d.value=a.id),a.disabled&&(d.disabled=!0),a.selected&&(d.selected=!0),a.title&&(d.title=a.title);var e=c(d),f=this._normalizeItem(a);return f.element=d,b.StoreData(d,"data",f),e},d.prototype.item=function(a){var d={};if(null!=(d=b.GetData(a[0],"data")))return d;if(a.is("option"))d={id:a.val(),text:a.text(),disabled:a.prop("disabled"),selected:a.prop("selected"),title:a.prop("title")};else if(a.is("optgroup")){d={text:a.prop("label"),children:[],title:a.prop("title")};for(var e=a.children("option"),f=[],g=0;g<e.length;g++){var h=c(e[g]),i=this.item(h);f.push(i)}d.children=f}return(d=this._normalizeItem(d)).element=a[0],b.StoreData(a[0],"data",d),d},d.prototype._normalizeItem=function(a){return a!==Object(a)&&(a={id:a,text:a}),null!=(a=c.extend({},{text:""},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({},{selected:!1,disabled:!1},a)},d.prototype.matches=function(a,b){return this.options.get("matcher")(a,b)},d}),i.define("select2/data/array",["./select","../utils","jquery"],function(a,b,c){function d(a,b){this._dataToConvert=b.get("data")||[],d.__super__.constructor.call(this,a,b)}return b.Extend(d,a),d.prototype.bind=function(a,b){d.__super__.bind.call(this,a,b),this.addOptions(this.convertToOptions(this._dataToConvert))},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(0<=c.inArray(j.id,g)){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}),i.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(){"status"in d&&(0===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}),i.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){var d=this;this._removeOldTags(),null!=b.term&&null==b.page?a.call(this,b,function a(e,f){for(var g=e.results,h=0;h<g.length;h++){var i=g[h],j=null!=i.children&&!a({results:i.children},!0);if((i.text||"").toUpperCase()===(b.term||"").toUpperCase()||j)return!f&&(e.data=g,void c(e))}if(f)return!0;var k=d.createTag(b);if(null!=k){var l=d.option(k);l.attr("data-select2-tag",!0),d.addOptions([l]),d.insertTag(g,k)}e.results=g,c(e)}):a.call(this,b,c)},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.$element.find("option[data-select2-tag]").each(function(){this.selected||a(this).remove()})},b}),i.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){var e=this;c.term=c.term||"";var f=this.tokenizer(c,this.options,function(b){var c,d=e._normalizeItem(b);if(!e.$element.find("option").filter(function(){return a(this).val()===d.id}).length){var f=e.option(d);f.attr("data-select2-tag",!0),e._removeOldTags(),e.addOptions([f])}c=d,e.trigger("select",{data:c})});f.term!==c.term&&(this.$search.length&&(this.$search.val(f.term),this.$search.trigger("focus")),c.term=f.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=i(a.extend({},c,{term:k}));null!=l?(e(l),g=g.substr(h+1)||"",h=0):h++}else h++}return{term:g}},b}),i.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){b.term=b.term||"",b.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:b.term,params:b}}):a.call(this,b,c)},a}),i.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){b.term=b.term||"",0<this.maximumInputLength&&b.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:b.term,params:b}}):a.call(this,b,c)},a}),i.define("select2/data/maximumSelectionLength",[],function(){function a(a,b,c){this.maximumSelectionLength=c.get("maximumSelectionLength"),a.call(this,b,c)}return a.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),b.on("select",function(){d._checkIfMaximumSelected()})},a.prototype.query=function(a,b,c){var d=this;this._checkIfMaximumSelected(function(){a.call(d,b,c)})},a.prototype._checkIfMaximumSelected=function(a,b){var c=this;this.current(function(a){var d=null!=a?a.length:0;0<c.maximumSelectionLength&&d>=c.maximumSelectionLength?c.trigger("results:message",{message:"maximumSelected",args:{maximum:c.maximumSelectionLength}}):b&&b()})},a}),i.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},c.prototype.bind=function(){},c.prototype.position=function(a,b){},c.prototype.destroy=function(){this.$dropdown.remove()},c}),i.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="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></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-controls",f),e.$search.trigger("focus"),window.setTimeout(function(){e.$search.trigger("focus")},0)}),c.on("close",function(){e.$search.attr("tabindex",-1),e.$search.removeAttr("aria-controls"),e.$search.removeAttr("aria-activedescendant"),e.$search.val(""),e.$search.trigger("blur")}),c.on("focus",function(){c.isOpen()||e.$search.trigger("focus")}),c.on("results:all",function(a){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){a.data._resultId?e.$search.attr("aria-activedescendant",a.data._resultId):e.$search.removeAttr("aria-activedescendant")})},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}),i.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;0<=d;d--){var e=b[d];this.placeholder.id===e.id&&c.splice(d,1)}return c},a}),i.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),this.loadMoreIfNeeded())},b.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),b.on("query",function(a){d.lastParams=a,d.loading=!0}),b.on("query:append",function(a){d.lastParams=a,d.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},b.prototype.loadMoreIfNeeded=function(){var b=a.contains(document.documentElement,this.$loadingMore[0]);if(!this.loading&&b){var c=this.$results.offset().top+this.$results.outerHeight(!1);this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=c+50&&this.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}),i.define("select2/dropdown/attachBody",["jquery","../utils"],function(a,b){function c(b,c,d){this.$dropdownParent=a(d.get("dropdownParent")||document.body),b.call(this,c,d)}return c.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),b.on("open",function(){d._showDropdown(),d._attachPositioningHandler(b),d._bindContainerResultHandlers(b)}),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.prototype._hideDropdown=function(a){this.$dropdownContainer.detach()},c.prototype._bindContainerResultHandlers=function(a,b){if(!this._containerResultsHandlersBound){var c=this;b.on("results:all",function(){c._positionDropdown(),c._resizeDropdown()}),b.on("results:append",function(){c._positionDropdown(),c._resizeDropdown()}),b.on("results:message",function(){c._positionDropdown(),c._resizeDropdown()}),b.on("select",function(){c._positionDropdown(),c._resizeDropdown()}),b.on("unselect",function(){c._positionDropdown(),c._resizeDropdown()}),this._containerResultsHandlersBound=!0}},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(){b.StoreData(this,"select2-scroll-position",{x:a(this).scrollLeft(),y:a(this).scrollTop()})}),i.on(f,function(c){var d=b.GetData(this,"select2-scroll-position");a(this).scrollTop(d.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=this.$dropdown.outerHeight(!1),i=b.scrollTop(),j=b.scrollTop()+b.height(),k=i<f.top-h,l=j>f.bottom+h,m={left:f.left,top:g.bottom},n=this.$dropdownParent;"static"===n.css("position")&&(n=n.offsetParent());var o={top:0,left:0};(a.contains(document.body,n[0])||n[0].isConnected)&&(o=n.offset()),m.top-=o.top,m.left-=o.left,c||d||(e="below"),l||!k||c?!k&&l&&c&&(e="below"):e="above",("above"==e||c&&"below"!==e)&&(m.top=g.top-o.top-h),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)),
7
  this.$dropdownContainer.css(m)},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}),i.define("select2/dropdown/minimumResultsForSearch",[],function(){function a(a,b,c,d){this.minimumResultsForSearch=c.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),a.call(this,b,c,d)}return a.prototype.showSearch=function(a,b){return!(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}(b.data.results)<this.minimumResultsForSearch)&&a.call(this,b)},a}),i.define("select2/dropdown/selectOnClose",["../utils"],function(a){function b(){}return b.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),b.on("close",function(a){d._handleSelectOnClose(a)})},b.prototype._handleSelectOnClose=function(b,c){if(c&&null!=c.originalSelect2Event){var d=c.originalSelect2Event;if("select"===d._type||"unselect"===d._type)return}var e=this.getHighlightedResults();if(!(e.length<1)){var f=a.GetData(e[0],"data");null!=f.element&&f.element.selected||null==f.element&&f.selected||this.trigger("select",{data:f})}},b}),i.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||c.metaKey)||this.trigger("close",{originalEvent:c,originalSelect2Event:b})},a}),i.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…"},removeAllItems:function(){return"Remove all items"}}}),i.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(k){if(null==(k=a.extend(!0,{},this.defaults,k)).dataAdapter){if(null!=k.ajax?k.dataAdapter=o:null!=k.data?k.dataAdapter=n:k.dataAdapter=m,0<k.minimumInputLength&&(k.dataAdapter=j.Decorate(k.dataAdapter,r)),0<k.maximumInputLength&&(k.dataAdapter=j.Decorate(k.dataAdapter,s)),0<k.maximumSelectionLength&&(k.dataAdapter=j.Decorate(k.dataAdapter,t)),k.tags&&(k.dataAdapter=j.Decorate(k.dataAdapter,p)),null==k.tokenSeparators&&null==k.tokenizer||(k.dataAdapter=j.Decorate(k.dataAdapter,q)),null!=k.query){var l=b(k.amdBase+"compat/query");k.dataAdapter=j.Decorate(k.dataAdapter,l)}if(null!=k.initSelection){var C=b(k.amdBase+"compat/initSelection");k.dataAdapter=j.Decorate(k.dataAdapter,C)}}if(null==k.resultsAdapter&&(k.resultsAdapter=c,null!=k.ajax&&(k.resultsAdapter=j.Decorate(k.resultsAdapter,x)),null!=k.placeholder&&(k.resultsAdapter=j.Decorate(k.resultsAdapter,w)),k.selectOnClose&&(k.resultsAdapter=j.Decorate(k.resultsAdapter,A))),null==k.dropdownAdapter){if(k.multiple)k.dropdownAdapter=u;else{var D=j.Decorate(u,v);k.dropdownAdapter=D}if(0!==k.minimumResultsForSearch&&(k.dropdownAdapter=j.Decorate(k.dropdownAdapter,z)),k.closeOnSelect&&(k.dropdownAdapter=j.Decorate(k.dropdownAdapter,B)),null!=k.dropdownCssClass||null!=k.dropdownCss||null!=k.adaptDropdownCssClass){var E=b(k.amdBase+"compat/dropdownCss");k.dropdownAdapter=j.Decorate(k.dropdownAdapter,E)}k.dropdownAdapter=j.Decorate(k.dropdownAdapter,y)}if(null==k.selectionAdapter){if(k.multiple?k.selectionAdapter=e:k.selectionAdapter=d,null!=k.placeholder&&(k.selectionAdapter=j.Decorate(k.selectionAdapter,f)),k.allowClear&&(k.selectionAdapter=j.Decorate(k.selectionAdapter,g)),k.multiple&&(k.selectionAdapter=j.Decorate(k.selectionAdapter,h)),null!=k.containerCssClass||null!=k.containerCss||null!=k.adaptContainerCssClass){var F=b(k.amdBase+"compat/containerCss");k.selectionAdapter=j.Decorate(k.selectionAdapter,F)}k.selectionAdapter=j.Decorate(k.selectionAdapter,i)}k.language=this._resolveLanguage(k.language),k.language.push("en");for(var G=[],H=0;H<k.language.length;H++){var I=k.language[H];-1===G.indexOf(I)&&G.push(I)}return k.language=G,k.translations=this._processTranslations(k.language,k.debug),k},D.prototype.reset=function(){function b(a){return a.replace(/[^\u0000-\u007E]/g,function(a){return l[a]||a})}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:j.escapeMarkup,language:{},matcher:function c(d,e){if(""===a.trim(d.term))return e;if(e.children&&0<e.children.length){for(var f=a.extend(!0,{},e),g=e.children.length-1;0<=g;g--)null==c(d,e.children[g])&&f.children.splice(g,1);return 0<f.children.length?f:c(d,f)}var h=b(e.text).toUpperCase(),i=b(d.term).toUpperCase();return-1<h.indexOf(i)?e:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(a){return a},templateResult:function(a){return a.text},templateSelection:function(a){return a.text},theme:"default",width:"resolve"}},D.prototype.applyFromElement=function(a,b){var c=a.language,d=this.defaults.language,e=b.prop("lang"),f=b.closest("[lang]").prop("lang"),g=Array.prototype.concat.call(this._resolveLanguage(e),this._resolveLanguage(c),this._resolveLanguage(d),this._resolveLanguage(f));return a.language=g,a},D.prototype._resolveLanguage=function(b){if(!b)return[];if(a.isEmptyObject(b))return[];if(a.isPlainObject(b))return[b];var c;c=a.isArray(b)?b:[b];for(var d=[],e=0;e<c.length;e++)if(d.push(c[e]),"string"==typeof c[e]&&0<c[e].indexOf("-")){var f=c[e].split("-")[0];d.push(f)}return d},D.prototype._processTranslations=function(b,c){for(var d=new k,e=0;e<b.length;e++){var f=new k,g=b[e];if("string"==typeof g)try{f=k.loadPath(g)}catch(a){try{g=this.defaults.amdLanguageBase+g,f=k.loadPath(g)}catch(a){c&&window.console&&console.warn&&console.warn('Select2: The language file for "'+g+'" could not be automatically loaded. A fallback will be used instead.')}}else f=a.isPlainObject(g)?new k(g):g;d.extend(f)}return d},D.prototype.set=function(b,c){var d={};d[a.camelCase(b)]=c;var e=j._convertData(d);a.extend(!0,this.defaults,e)},new D}),i.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),null!=e&&(this.options=c.applyFromElement(this.options,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){function c(a,b){return b.toUpperCase()}var e=["select2"];null==this.options.multiple&&(this.options.multiple=a.prop("multiple")),null==this.options.disabled&&(this.options.disabled=a.prop("disabled")),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),d.GetData(a[0],"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.'),d.StoreData(a[0],"data",d.GetData(a[0],"select2Tags")),d.StoreData(a[0],"tags",!0)),d.GetData(a[0],"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",d.GetData(a[0],"ajaxUrl")),d.StoreData(a[0],"ajax-Url",d.GetData(a[0],"ajaxUrl")));for(var f={},g=0;g<a[0].attributes.length;g++){var h=a[0].attributes[g].name,i="data-";if(h.substr(0,i.length)==i){var j=h.substring(i.length),k=d.GetData(a[0],j);f[j.replace(/-([a-z])/g,c)]=k}}b.fn.jquery&&"1."==b.fn.jquery.substr(0,2)&&a[0].dataset&&(f=b.extend(!0,{},a[0].dataset,f));var l=b.extend(!0,{},d.GetData(a[0]),f);for(var m in l=d._convertData(l))-1<b.inArray(m,e)||(b.isPlainObject(this.options[m])?b.extend(this.options[m],l[m]):this.options[m]=l[m]);return this},e.prototype.get=function(a){return this.options[a]},e.prototype.set=function(a,b){this.options[a]=b},e}),i.define("select2/core",["jquery","./options","./utils","./keys"],function(a,b,c,d){var e=function(a,d){null!=c.GetData(a[0],"select2")&&c.GetData(a[0],"select2").destroy(),this.$element=a,this.id=this._generateId(a),d=d||{},this.options=new b(d,a),e.__super__.constructor.call(this);var f=a.attr("tabindex")||0;c.StoreData(a[0],"old-tabindex",f),a.attr("tabindex","-1");var g=this.options.get("dataAdapter");this.dataAdapter=new g(a,this.options);var h=this.render();this._placeContainer(h);var i=this.options.get("selectionAdapter");this.selection=new i(a,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,h);var j=this.options.get("dropdownAdapter");this.dropdown=new j(a,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,h);var k=this.options.get("resultsAdapter");this.results=new k(a,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var l=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(a){l.trigger("selection:update",{data:a})}),a.addClass("select2-hidden-accessible"),a.attr("aria-hidden","true"),this._syncAttributes(),c.StoreData(a[0],"select2",this),a.data("select2",this)};return c.Extend(e,c.Observable),e.prototype._generateId=function(a){return"select2-"+(null!=a.attr("id")?a.attr("id"):null!=a.attr("name")?a.attr("name")+"-"+c.generateChars(2):c.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},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)return"computedstyle"!=b?b:window.getComputedStyle(a[0]).width;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,"").match(c);if(null!==j&&1<=j.length)return j[1]}return null},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 a=this;this.$element.on("change.select2",function(){a.dataAdapter.current(function(b){a.trigger("selection:update",{data:b})})}),this.$element.on("focus.select2",function(b){a.trigger("focus",b)}),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 b=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=b?(this._observer=new b(function(b){a._syncA(),a._syncS(null,b)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",a._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",a._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",a._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),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.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},e.prototype._isChangeMutation=function(b,c){var d=!1,e=this;if(!b||!b.target||"OPTION"===b.target.nodeName||"OPTGROUP"===b.target.nodeName){if(c)if(c.addedNodes&&0<c.addedNodes.length)for(var f=0;f<c.addedNodes.length;f++)c.addedNodes[f].selected&&(d=!0);else c.removedNodes&&0<c.removedNodes.length?d=!0:a.isArray(c)&&a.each(c,function(a,b){if(e._isChangeMutation(a,b))return!(d=!0)});else d=!0;return d}},e.prototype._syncSubtree=function(a,b){var c=this._isChangeMutation(a,b),d=this;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",clear:"clearing"};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.isDisabled()||(this.isOpen()?this.close():this.open())},e.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},e.prototype.close=function(a){this.isOpen()&&this.trigger("close",{originalEvent:a})},e.prototype.isEnabled=function(){return!this.isDisabled()},e.prototype.isDisabled=function(){return this.options.get("disabled")},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")&&0<arguments.length&&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("input").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",c.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),c.RemoveData(this.$element[0]),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")),c.StoreData(b[0],"element",this.$element),b},e}),i.define("select2/compat/utils",["jquery"],function(a){return{syncCssClasses:function(b,c,d){var e,f,g=[];(e=a.trim(b.attr("class")))&&a((e=""+e).split(/\s+/)).each(function(){0===this.indexOf("select2-")&&g.push(this)}),(e=a.trim(c.attr("class")))&&a((e=""+e).split(/\s+/)).each(function(){0!==this.indexOf("select2-")&&null!=(f=d(this))&&g.push(f)}),b.attr("class",g.join(" "))}}}),i.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}),i.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}),i.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;this._isInitialized?b.call(this,c):this.initSelection.call(null,this.$element,function(b){d._isInitialized=!0,a.isArray(b)||(b=[b]),c(b)})},b}),i.define("select2/compat/inputData",["jquery","../utils"],function(a,b){function c(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 c.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)},c.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("input").trigger("change")}else this.current(function(b){a.map(b,function(a){a.selected=!1})}),this.$element.val(c.id),this.$element.trigger("input").trigger("change")},c.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("input").trigger("change")})},c.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})},c.prototype.addOptions=function(c,d){var e=a.map(d,function(a){return b.GetData(a[0],"data")});this._currentData.push.apply(this._currentData,e)},c}),i.define("select2/compat/matcher",["jquery"],function(a){return function(b){return function(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;0<=f;f--){var g=d.children[f];b(c.term,g.text,g)||e.children.splice(f,1)}if(0<e.children.length)return e}return b(c.term,d.text,d)?e:null}}}),i.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}),i.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}),i.define("select2/dropdown/stopPropagation",[],function(){function a(){}return a.prototype.bind=function(a,b,c){a.call(this,b,c),this.$dropdown.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),function(a){a.stopPropagation()})},a}),i.define("select2/selection/stopPropagation",[],function(){function a(){}return a.prototype.bind=function(a,b,c){a.call(this,b,c),this.$selection.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),function(a){a.stopPropagation()})},a}),y=function(a){function b(b){var g,h=b||window.event,j=i.call(arguments,1),l=0,m=0,n=0,o=0,p=0;if((b=a.event.fix(h)).type="mousewheel","detail"in h&&(n=-1*h.detail),"wheelDelta"in h&&(n=h.wheelDelta),"wheelDeltaY"in h&&(n=h.wheelDeltaY),"wheelDeltaX"in h&&(m=-1*h.wheelDeltaX),"axis"in h&&h.axis===h.HORIZONTAL_AXIS&&(m=-1*n,n=0),l=0===n?m:n,"deltaY"in h&&(l=n=-1*h.deltaY),"deltaX"in h&&(m=h.deltaX,0===n&&(l=-1*m)),0!==n||0!==m){if(1===h.deltaMode){var q=a.data(this,"mousewheel-line-height");l*=q,n*=q,m*=q}else if(2===h.deltaMode){var r=a.data(this,"mousewheel-page-height");l*=r,n*=r,m*=r}if(g=Math.max(Math.abs(n),Math.abs(m)),(!f||g<f)&&d(h,f=g)&&(f/=40),d(h,g)&&(l/=40,m/=40,n/=40),l=Math[1<=l?"floor":"ceil"](l/f),m=Math[1<=m?"floor":"ceil"](m/f),n=Math[1<=n?"floor":"ceil"](n/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=m,b.deltaY=n,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,j.unshift(b,l,m,n),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,j)}}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||9<=document.documentMode?["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)}})},"function"==typeof i.define&&i.define.amd?i.define("jquery-mousewheel",["jquery"],y):"object"==typeof exports?module.exports=y:y(a),i.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(a,b,c,d,e){if(null==a.fn.select2){var f=["open","close","destroy"];a.fn.select2=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)throw new Error("Invalid arguments for Select2: "+b);var d,g=Array.prototype.slice.call(arguments,1);return this.each(function(){var a=e.GetData(this,"select2");null==a&&window.console&&console.error&&console.error("The select2('"+b+"') method was called on an element that is not using Select2."),d=a[b].apply(a,g)}),-1<a.inArray(b,f)?this:d}}return null==a.fn.select2.defaults&&(a.fn.select2.defaults=d),c}),{define:i.define,require:i.require}}(),c=b.require("jquery.select2");return a.fn.select2.amd=b,c}),!function(a){"undefined"!=typeof jQuery&&jQuery||"function"!=typeof define||!define.amd?"undefined"!=typeof jQuery&&jQuery||"object"!=typeof exports?a(jQuery,document,window,navigator):a(require("jquery"),document,window,navigator):define(["jquery"],function(b){return a(b,document,window,navigator)})}(function(a,b,c,d,e){"use strict";function f(d,f,g){this.VERSION="2.3.1",this.input=d,this.plugin_count=g,this.current_plugin=0,this.calc_count=0,this.update_tm=0,this.old_from=0,this.old_to=0,this.old_min_interval=null,this.raf_id=null,this.dragging=!1,this.force_redraw=!1,this.no_diapason=!1,this.has_tab_index=!0,this.is_key=!1,this.is_update=!1,this.is_start=!0,this.is_finish=!1,this.is_active=!1,this.is_resize=!1,this.is_click=!1,f=f||{},this.$cache={win:a(c),body:a(b.body),input:a(d),cont:null,rs:null,min:null,max:null,from:null,to:null,single:null,bar:null,line:null,s_single:null,s_from:null,s_to:null,shad_single:null,shad_from:null,shad_to:null,edge:null,grid:null,grid_labels:[]},this.coords={x_gap:0,x_pointer:0,w_rs:0,w_rs_old:0,w_handle:0,p_gap:0,p_gap_left:0,p_gap_right:0,p_step:0,p_pointer:0,p_handle:0,p_single_fake:0,p_single_real:0,p_from_fake:0,p_from_real:0,p_to_fake:0,p_to_real:0,p_bar_x:0,p_bar_w:0,grid_gap:0,big_num:0,big:[],big_w:[],big_p:[],big_x:[]},this.labels={w_min:0,w_max:0,w_from:0,w_to:0,w_single:0,p_min:0,p_max:0,p_from_fake:0,p_from_left:0,p_to_fake:0,p_to_left:0,p_single_fake:0,p_single_left:0};var h,i,j,k=this.$cache.input,l=k.prop("value");for(j in h={skin:"flat",type:"single",min:10,max:100,from:null,to:null,step:1,min_interval:0,max_interval:0,drag_interval:!1,values:[],p_values:[],from_fixed:!1,from_min:null,from_max:null,from_shadow:!1,to_fixed:!1,to_min:null,to_max:null,to_shadow:!1,prettify_enabled:!0,prettify_separator:" ",prettify:null,force_edges:!1,keyboard:!0,grid:!1,grid_margin:!0,grid_num:4,grid_snap:!1,hide_min_max:!1,hide_from_to:!1,prefix:"",postfix:"",max_postfix:"",decorate_both:!0,values_separator:" — ",input_values_separator:";",disable:!1,block:!1,extra_classes:"",scope:null,onStart:null,onChange:null,onFinish:null,onUpdate:null},"INPUT"!==k[0].nodeName&&console&&console.warn&&console.warn("Base element should be <input>!",k[0]),(i={skin:k.data("skin"),type:k.data("type"),min:k.data("min"),max:k.data("max"),from:k.data("from"),to:k.data("to"),step:k.data("step"),min_interval:k.data("minInterval"),max_interval:k.data("maxInterval"),drag_interval:k.data("dragInterval"),values:k.data("values"),from_fixed:k.data("fromFixed"),from_min:k.data("fromMin"),from_max:k.data("fromMax"),from_shadow:k.data("fromShadow"),to_fixed:k.data("toFixed"),to_min:k.data("toMin"),to_max:k.data("toMax"),to_shadow:k.data("toShadow"),prettify_enabled:k.data("prettifyEnabled"),prettify_separator:k.data("prettifySeparator"),force_edges:k.data("forceEdges"),keyboard:k.data("keyboard"),grid:k.data("grid"),grid_margin:k.data("gridMargin"),grid_num:k.data("gridNum"),grid_snap:k.data("gridSnap"),hide_min_max:k.data("hideMinMax"),hide_from_to:k.data("hideFromTo"),prefix:k.data("prefix"),postfix:k.data("postfix"),max_postfix:k.data("maxPostfix"),decorate_both:k.data("decorateBoth"),values_separator:k.data("valuesSeparator"),input_values_separator:k.data("inputValuesSeparator"),disable:k.data("disable"),block:k.data("block"),extra_classes:k.data("extraClasses")}).values=i.values&&i.values.split(","),i)i.hasOwnProperty(j)&&(i[j]!==e&&""!==i[j]||delete i[j]);l!==e&&""!==l&&((l=l.split(i.input_values_separator||f.input_values_separator||";"))[0]&&l[0]==+l[0]&&(l[0]=+l[0]),l[1]&&l[1]==+l[1]&&(l[1]=+l[1]),f&&f.values&&f.values.length?(h.from=l[0]&&f.values.indexOf(l[0]),h.to=l[1]&&f.values.indexOf(l[1])):(h.from=l[0]&&+l[0],h.to=l[1]&&+l[1])),a.extend(h,f),a.extend(h,i),this.options=h,this.update_check={},this.validate(),this.result={input:this.$cache.input,slider:null,min:this.options.min,
8
  max:this.options.max,from:this.options.from,from_percent:0,from_value:null,to:this.options.to,to_percent:0,to_value:null},this.init()}var g,h,i=0,j=(g=d.userAgent,h=/msie\s\d+/i,0<g.search(h)&&h.exec(g).toString().split(" ")[1]<9&&(a("html").addClass("lt-ie9"),!0));Function.prototype.bind||(Function.prototype.bind=function(a){var b=this,c=[].slice;if("function"!=typeof b)throw new TypeError;var d=c.call(arguments,1),e=function(){if(this instanceof e){var f=function(){};f.prototype=b.prototype;var g=new f,h=b.apply(g,d.concat(c.call(arguments)));return Object(h)===h?h:g}return b.apply(a,d.concat(c.call(arguments)))};return e}),Array.prototype.indexOf||(Array.prototype.indexOf=function(a,b){var c;if(null==this)throw new TypeError('"this" is null or not defined');var d=Object(this),e=d.length>>>0;if(0==e)return-1;var f=+b||0;if(Math.abs(f)===1/0&&(f=0),e<=f)return-1;for(c=Math.max(0<=f?f:e-Math.abs(f),0);c<e;){if(c in d&&d[c]===a)return c;c++}return-1}),f.prototype={init:function(a){this.no_diapason=!1,this.coords.p_step=this.convertToPercent(this.options.step,!0),this.target="base",this.toggleInput(),this.append(),this.setMinMax(),a?(this.force_redraw=!0,this.calc(!0),this.callOnUpdate()):(this.force_redraw=!0,this.calc(!0),this.callOnStart()),this.updateScene()},append:function(){var a='<span class="irs irs--'+this.options.skin+" js-irs-"+this.plugin_count+" "+this.options.extra_classes+'"></span>';this.$cache.input.before(a),this.$cache.input.prop("readonly",!0),this.$cache.cont=this.$cache.input.prev(),this.result.slider=this.$cache.cont,this.$cache.cont.html('<span class="irs"><span class="irs-line" tabindex="0"></span><span class="irs-min">0</span><span class="irs-max">1</span><span class="irs-from">0</span><span class="irs-to">0</span><span class="irs-single">0</span></span><span class="irs-grid"></span>'),this.$cache.rs=this.$cache.cont.find(".irs"),this.$cache.min=this.$cache.cont.find(".irs-min"),this.$cache.max=this.$cache.cont.find(".irs-max"),this.$cache.from=this.$cache.cont.find(".irs-from"),this.$cache.to=this.$cache.cont.find(".irs-to"),this.$cache.single=this.$cache.cont.find(".irs-single"),this.$cache.line=this.$cache.cont.find(".irs-line"),this.$cache.grid=this.$cache.cont.find(".irs-grid"),"single"===this.options.type?(this.$cache.cont.append('<span class="irs-bar irs-bar--single"></span><span class="irs-shadow shadow-single"></span><span class="irs-handle single"><i></i><i></i><i></i></span>'),this.$cache.bar=this.$cache.cont.find(".irs-bar"),this.$cache.edge=this.$cache.cont.find(".irs-bar-edge"),this.$cache.s_single=this.$cache.cont.find(".single"),this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.shad_single=this.$cache.cont.find(".shadow-single")):(this.$cache.cont.append('<span class="irs-bar"></span><span class="irs-shadow shadow-from"></span><span class="irs-shadow shadow-to"></span><span class="irs-handle from"><i></i><i></i><i></i></span><span class="irs-handle to"><i></i><i></i><i></i></span>'),this.$cache.bar=this.$cache.cont.find(".irs-bar"),this.$cache.s_from=this.$cache.cont.find(".from"),this.$cache.s_to=this.$cache.cont.find(".to"),this.$cache.shad_from=this.$cache.cont.find(".shadow-from"),this.$cache.shad_to=this.$cache.cont.find(".shadow-to"),this.setTopHandler()),this.options.hide_from_to&&(this.$cache.from[0].style.display="none",this.$cache.to[0].style.display="none",this.$cache.single[0].style.display="none"),this.appendGrid(),this.options.disable?(this.appendDisableMask(),this.$cache.input[0].disabled=!0):(this.$cache.input[0].disabled=!1,this.removeDisableMask(),this.bindEvents()),this.options.disable||(this.options.block?this.appendDisableMask():this.removeDisableMask()),this.options.drag_interval&&(this.$cache.bar[0].style.cursor="ew-resize")},setTopHandler:function(){var a=this.options.min,b=this.options.max,c=this.options.from,d=this.options.to;a<c&&d===b?this.$cache.s_from.addClass("type_last"):d<b&&this.$cache.s_to.addClass("type_last")},changeLevel:function(a){switch(a){case"single":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_single_fake),this.$cache.s_single.addClass("state_hover");break;case"from":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_from_fake),this.$cache.s_from.addClass("state_hover"),this.$cache.s_from.addClass("type_last"),this.$cache.s_to.removeClass("type_last");break;case"to":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_to_fake),this.$cache.s_to.addClass("state_hover"),this.$cache.s_to.addClass("type_last"),this.$cache.s_from.removeClass("type_last");break;case"both":this.coords.p_gap_left=this.toFixed(this.coords.p_pointer-this.coords.p_from_fake),this.coords.p_gap_right=this.toFixed(this.coords.p_to_fake-this.coords.p_pointer),this.$cache.s_to.removeClass("type_last"),this.$cache.s_from.removeClass("type_last")}},appendDisableMask:function(){this.$cache.cont.append('<span class="irs-disable-mask"></span>'),this.$cache.cont.addClass("irs-disabled")},removeDisableMask:function(){this.$cache.cont.remove(".irs-disable-mask"),this.$cache.cont.removeClass("irs-disabled")},remove:function(){this.$cache.cont.remove(),this.$cache.cont=null,this.$cache.line.off("keydown.irs_"+this.plugin_count),this.$cache.body.off("touchmove.irs_"+this.plugin_count),this.$cache.body.off("mousemove.irs_"+this.plugin_count),this.$cache.win.off("touchend.irs_"+this.plugin_count),this.$cache.win.off("mouseup.irs_"+this.plugin_count),j&&(this.$cache.body.off("mouseup.irs_"+this.plugin_count),this.$cache.body.off("mouseleave.irs_"+this.plugin_count)),this.$cache.grid_labels=[],this.coords.big=[],this.coords.big_w=[],this.coords.big_p=[],this.coords.big_x=[],cancelAnimationFrame(this.raf_id)},bindEvents:function(){this.no_diapason||(this.$cache.body.on("touchmove.irs_"+this.plugin_count,this.pointerMove.bind(this)),this.$cache.body.on("mousemove.irs_"+this.plugin_count,this.pointerMove.bind(this)),this.$cache.win.on("touchend.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.win.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.line.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.line.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.line.on("focus.irs_"+this.plugin_count,this.pointerFocus.bind(this)),this.options.drag_interval&&"double"===this.options.type?(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"both")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"both"))):(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))),"single"===this.options.type?(this.$cache.single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.s_single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.shad_single.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.s_single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.edge.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_single.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))):(this.$cache.single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,null)),this.$cache.single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,null)),this.$cache.from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.s_to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.s_to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))),this.options.keyboard&&this.$cache.line.on("keydown.irs_"+this.plugin_count,this.key.bind(this,"keyboard")),j&&(this.$cache.body.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.body.on("mouseleave.irs_"+this.plugin_count,this.pointerUp.bind(this))))},pointerFocus:function(a){var b,c;this.target||(b=(c="single"===this.options.type?this.$cache.single:this.$cache.from).offset().left,b+=c.width()/2-1,this.pointerClick("single",{preventDefault:function(){},pageX:b}))},pointerMove:function(a){if(this.dragging){var b=a.pageX||a.originalEvent.touches&&a.originalEvent.touches[0].pageX;this.coords.x_pointer=b-this.coords.x_gap,this.calc()}},pointerUp:function(b){this.current_plugin===this.plugin_count&&this.is_active&&(this.is_active=!1,this.$cache.cont.find(".state_hover").removeClass("state_hover"),this.force_redraw=!0,j&&a("*").prop("unselectable",!1),this.updateScene(),this.restoreOriginalMinInterval(),(a.contains(this.$cache.cont[0],b.target)||this.dragging)&&this.callOnFinish(),this.dragging=!1)},pointerDown:function(b,c){c.preventDefault();var d=c.pageX||c.originalEvent.touches&&c.originalEvent.touches[0].pageX;2!==c.button&&("both"===b&&this.setTempMinInterval(),b=b||this.target||"from",this.current_plugin=this.plugin_count,this.target=b,this.is_active=!0,this.dragging=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=d-this.coords.x_gap,this.calcPointerPercent(),this.changeLevel(b),j&&a("*").prop("unselectable",!0),this.$cache.line.trigger("focus"),this.updateScene())},pointerClick:function(a,b){b.preventDefault();var c=b.pageX||b.originalEvent.touches&&b.originalEvent.touches[0].pageX;2!==b.button&&(this.current_plugin=this.plugin_count,this.target=a,this.is_click=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=+(c-this.coords.x_gap).toFixed(),this.force_redraw=!0,this.calc(),this.$cache.line.trigger("focus"))},key:function(a,b){if(!(this.current_plugin!==this.plugin_count||b.altKey||b.ctrlKey||b.shiftKey||b.metaKey)){switch(b.which){case 83:case 65:case 40:case 37:b.preventDefault(),this.moveByKey(!1);break;case 87:case 68:case 38:case 39:b.preventDefault(),this.moveByKey(!0)}return!0}},moveByKey:function(a){var b=this.coords.p_pointer,c=(this.options.max-this.options.min)/100;c=this.options.step/c,a?b+=c:b-=c,this.coords.x_pointer=this.toFixed(this.coords.w_rs/100*b),this.is_key=!0,this.calc()},setMinMax:function(){if(this.options){if(this.options.hide_min_max)return this.$cache.min[0].style.display="none",void(this.$cache.max[0].style.display="none");if(this.options.values.length)this.$cache.min.html(this.decorate(this.options.p_values[this.options.min])),this.$cache.max.html(this.decorate(this.options.p_values[this.options.max]));else{var a=this._prettify(this.options.min),b=this._prettify(this.options.max);this.result.min_pretty=a,this.result.max_pretty=b,this.$cache.min.html(this.decorate(a,this.options.min)),this.$cache.max.html(this.decorate(b,this.options.max))}this.labels.w_min=this.$cache.min.outerWidth(!1),this.labels.w_max=this.$cache.max.outerWidth(!1)}},setTempMinInterval:function(){var a=this.result.to-this.result.from;null===this.old_min_interval&&(this.old_min_interval=this.options.min_interval),this.options.min_interval=a},restoreOriginalMinInterval:function(){null!==this.old_min_interval&&(this.options.min_interval=this.old_min_interval,this.old_min_interval=null)},calc:function(a){if(this.options&&(this.calc_count++,10!==this.calc_count&&!a||(this.calc_count=0,this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.calcHandlePercent()),this.coords.w_rs)){this.calcPointerPercent();var b=this.getHandleX();switch("both"===this.target&&(this.coords.p_gap=0,b=this.getHandleX()),"click"===this.target&&(this.coords.p_gap=this.coords.p_handle/2,b=this.getHandleX(),this.options.drag_interval?this.target="both_one":this.target=this.chooseHandle(b)),this.target){case"base":var c=(this.options.max-this.options.min)/100,d=(this.result.from-this.options.min)/c,e=(this.result.to-this.options.min)/c;this.coords.p_single_real=this.toFixed(d),this.coords.p_from_real=this.toFixed(d),this.coords.p_to_real=this.toFixed(e),this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real),this.target=null;break;case"single":if(this.options.from_fixed)break;this.coords.p_single_real=this.convertToRealPercent(b),this.coords.p_single_real=this.calcWithStep(this.coords.p_single_real),this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max),this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real);break;case"from":if(this.options.from_fixed)break;this.coords.p_from_real=this.convertToRealPercent(b),this.coords.p_from_real=this.calcWithStep(this.coords.p_from_real),this.coords.p_from_real>this.coords.p_to_real&&(this.coords.p_from_real=this.coords.p_to_real),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_real=this.checkMaxInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real);break;case"to":if(this.options.to_fixed)break;this.coords.p_to_real=this.convertToRealPercent(b),this.coords.p_to_real=this.calcWithStep(this.coords.p_to_real),this.coords.p_to_real<this.coords.p_from_real&&(this.coords.p_to_real=this.coords.p_from_real),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_real=this.checkMinInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to_real=this.checkMaxInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real);break;case"both":if(this.options.from_fixed||this.options.to_fixed)break;b=this.toFixed(b+.001*this.coords.p_handle),this.coords.p_from_real=this.convertToRealPercent(b)-this.coords.p_gap_left,this.coords.p_from_real=this.calcWithStep(this.coords.p_from_real),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_real=this.convertToRealPercent(b)+this.coords.p_gap_right,this.coords.p_to_real=this.calcWithStep(this.coords.p_to_real),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_real=this.checkMinInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real);break;case"both_one":if(this.options.from_fixed||this.options.to_fixed)break;var f=this.convertToRealPercent(b),g=this.result.from_percent,h=this.result.to_percent-g,i=h/2,j=f-i,k=f+i;j<0&&(k=(j=0)+h),100<k&&(j=(k=100)-h),this.coords.p_from_real=this.calcWithStep(j),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_real=this.calcWithStep(k),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real)}"single"===this.options.type?(this.coords.p_bar_x=this.coords.p_handle/2,this.coords.p_bar_w=this.coords.p_single_fake,this.result.from_percent=this.coords.p_single_real,this.result.from=this.convertToValue(this.coords.p_single_real),this.result.from_pretty=this._prettify(this.result.from),this.options.values.length&&(this.result.from_value=this.options.values[this.result.from])):(this.coords.p_bar_x=this.toFixed(this.coords.p_from_fake+this.coords.p_handle/2),this.coords.p_bar_w=this.toFixed(this.coords.p_to_fake-this.coords.p_from_fake),this.result.from_percent=this.coords.p_from_real,this.result.from=this.convertToValue(this.coords.p_from_real),this.result.from_pretty=this._prettify(this.result.from),this.result.to_percent=this.coords.p_to_real,this.result.to=this.convertToValue(this.coords.p_to_real),this.result.to_pretty=this._prettify(this.result.to),this.options.values.length&&(this.result.from_value=this.options.values[this.result.from],this.result.to_value=this.options.values[this.result.to])),this.calcMinMax(),this.calcLabels()}},calcPointerPercent:function(){this.coords.w_rs?(this.coords.x_pointer<0||isNaN(this.coords.x_pointer)?this.coords.x_pointer=0:this.coords.x_pointer>this.coords.w_rs&&(this.coords.x_pointer=this.coords.w_rs),this.coords.p_pointer=this.toFixed(this.coords.x_pointer/this.coords.w_rs*100)):this.coords.p_pointer=0},convertToRealPercent:function(a){return a/(100-this.coords.p_handle)*100},convertToFakePercent:function(a){return a/100*(100-this.coords.p_handle)},getHandleX:function(){var a=100-this.coords.p_handle,b=this.toFixed(this.coords.p_pointer-this.coords.p_gap);return b<0?b=0:a<b&&(b=a),b},calcHandlePercent:function(){"single"===this.options.type?this.coords.w_handle=this.$cache.s_single.outerWidth(!1):this.coords.w_handle=this.$cache.s_from.outerWidth(!1),this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100)},chooseHandle:function(a){return"single"===this.options.type?"single":this.coords.p_from_real+(this.coords.p_to_real-this.coords.p_from_real)/2<=a?this.options.to_fixed?"from":"to":this.options.from_fixed?"to":"from"},calcMinMax:function(){this.coords.w_rs&&(this.labels.p_min=this.labels.w_min/this.coords.w_rs*100,this.labels.p_max=this.labels.w_max/this.coords.w_rs*100)},calcLabels:function(){this.coords.w_rs&&!this.options.hide_from_to&&("single"===this.options.type?(this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single_fake=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=this.coords.p_single_fake+this.coords.p_handle/2-this.labels.p_single_fake/2):(this.labels.w_from=this.$cache.from.outerWidth(!1),this.labels.p_from_fake=this.labels.w_from/this.coords.w_rs*100,this.labels.p_from_left=this.coords.p_from_fake+this.coords.p_handle/2-this.labels.p_from_fake/2,this.labels.p_from_left=this.toFixed(this.labels.p_from_left),this.labels.p_from_left=this.checkEdges(this.labels.p_from_left,this.labels.p_from_fake),this.labels.w_to=this.$cache.to.outerWidth(!1),this.labels.p_to_fake=this.labels.w_to/this.coords.w_rs*100,this.labels.p_to_left=this.coords.p_to_fake+this.coords.p_handle/2-this.labels.p_to_fake/2,this.labels.p_to_left=this.toFixed(this.labels.p_to_left),this.labels.p_to_left=this.checkEdges(this.labels.p_to_left,this.labels.p_to_fake),this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single_fake=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=(this.labels.p_from_left+this.labels.p_to_left+this.labels.p_to_fake)/2-this.labels.p_single_fake/2,this.labels.p_single_left=this.toFixed(this.labels.p_single_left)),this.labels.p_single_left=this.checkEdges(this.labels.p_single_left,this.labels.p_single_fake))},updateScene:function(){this.raf_id&&(cancelAnimationFrame(this.raf_id),this.raf_id=null),clearTimeout(this.update_tm),this.update_tm=null,this.options&&(this.drawHandles(),this.is_active?this.raf_id=requestAnimationFrame(this.updateScene.bind(this)):this.update_tm=setTimeout(this.updateScene.bind(this),300))},drawHandles:function(){this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_rs&&(this.coords.w_rs!==this.coords.w_rs_old&&(this.target="base",this.is_resize=!0),this.coords.w_rs===this.coords.w_rs_old&&!this.force_redraw||(this.setMinMax(),this.calc(!0),this.drawLabels(),this.options.grid&&(this.calcGridMargin(),this.calcGridLabels()),this.force_redraw=!0,this.coords.w_rs_old=this.coords.w_rs,this.drawShadow()),this.coords.w_rs&&(this.dragging||this.force_redraw||this.is_key)&&((this.old_from!==this.result.from||this.old_to!==this.result.to||this.force_redraw||this.is_key)&&(this.drawLabels(),this.$cache.bar[0].style.left=this.coords.p_bar_x+"%",this.$cache.bar[0].style.width=this.coords.p_bar_w+"%","single"===this.options.type?(this.$cache.bar[0].style.left=0,this.$cache.bar[0].style.width=this.coords.p_bar_w+this.coords.p_bar_x+"%",this.$cache.s_single[0].style.left=this.coords.p_single_fake+"%"):(this.$cache.s_from[0].style.left=this.coords.p_from_fake+"%",this.$cache.s_to[0].style.left=this.coords.p_to_fake+"%",this.old_from===this.result.from&&!this.force_redraw||(this.$cache.from[0].style.left=this.labels.p_from_left+"%"),this.old_to===this.result.to&&!this.force_redraw||(this.$cache.to[0].style.left=this.labels.p_to_left+"%")),this.$cache.single[0].style.left=this.labels.p_single_left+"%",this.writeToInput(),this.old_from===this.result.from&&this.old_to===this.result.to||this.is_start||(this.$cache.input.trigger("change"),this.$cache.input.trigger("input")),this.old_from=this.result.from,this.old_to=this.result.to,this.is_resize||this.is_update||this.is_start||this.is_finish||this.callOnChange(),(this.is_key||this.is_click)&&(this.is_key=!1,this.is_click=!1,this.callOnFinish()),this.is_update=!1,this.is_resize=!1,this.is_finish=!1),this.is_start=!1,this.is_key=!1,this.is_click=!1,this.force_redraw=!1))},drawLabels:function(){if(this.options){var a,b,c,d,e,f=this.options.values.length,g=this.options.p_values;if(!this.options.hide_from_to)if("single"===this.options.type)a=f?this.decorate(g[this.result.from]):(d=this._prettify(this.result.from),this.decorate(d,this.result.from)),this.$cache.single.html(a),this.calcLabels(),this.labels.p_single_left<this.labels.p_min+1?this.$cache.min[0].style.visibility="hidden":this.$cache.min[0].style.visibility="visible",this.labels.p_single_left+this.labels.p_single_fake>100-this.labels.p_max-1?this.$cache.max[0].style.visibility="hidden":this.$cache.max[0].style.visibility="visible";else{c=f?(this.options.decorate_both?(a=this.decorate(g[this.result.from]),a+=this.options.values_separator,a+=this.decorate(g[this.result.to])):a=this.decorate(g[this.result.from]+this.options.values_separator+g[this.result.to]),b=this.decorate(g[this.result.from]),this.decorate(g[this.result.to])):(d=this._prettify(this.result.from),e=this._prettify(this.result.to),this.options.decorate_both?(a=this.decorate(d,this.result.from),a+=this.options.values_separator,a+=this.decorate(e,this.result.to)):a=this.decorate(d+this.options.values_separator+e,this.result.to),b=this.decorate(d,this.result.from),this.decorate(e,this.result.to)),this.$cache.single.html(a),this.$cache.from.html(b),this.$cache.to.html(c),this.calcLabels();var h=Math.min(this.labels.p_single_left,this.labels.p_from_left),i=this.labels.p_single_left+this.labels.p_single_fake,j=this.labels.p_to_left+this.labels.p_to_fake,k=Math.max(i,j);this.labels.p_from_left+this.labels.p_from_fake>=this.labels.p_to_left?(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",k=this.result.from===this.result.to?("from"===this.target?this.$cache.from[0].style.visibility="visible":"to"===this.target?this.$cache.to[0].style.visibility="visible":this.target||(this.$cache.from[0].style.visibility="visible"),this.$cache.single[0].style.visibility="hidden",j):(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",Math.max(i,j))):(this.$cache.from[0].style.visibility="visible",this.$cache.to[0].style.visibility="visible",this.$cache.single[0].style.visibility="hidden"),h<this.labels.p_min+1?this.$cache.min[0].style.visibility="hidden":this.$cache.min[0].style.visibility="visible",k>100-this.labels.p_max-1?this.$cache.max[0].style.visibility="hidden":this.$cache.max[0].style.visibility="visible"}}},drawShadow:function(){var a,b,c,d,e=this.options,f=this.$cache,g="number"==typeof e.from_min&&!isNaN(e.from_min),h="number"==typeof e.from_max&&!isNaN(e.from_max),i="number"==typeof e.to_min&&!isNaN(e.to_min),j="number"==typeof e.to_max&&!isNaN(e.to_max);"single"===e.type?e.from_shadow&&(g||h)?(a=this.convertToPercent(g?e.from_min:e.min),b=this.convertToPercent(h?e.from_max:e.max)-a,a=this.toFixed(a-this.coords.p_handle/100*a),b=this.toFixed(b-this.coords.p_handle/100*b),a+=this.coords.p_handle/2,f.shad_single[0].style.display="block",f.shad_single[0].style.left=a+"%",f.shad_single[0].style.width=b+"%"):f.shad_single[0].style.display="none":(e.from_shadow&&(g||h)?(a=this.convertToPercent(g?e.from_min:e.min),b=this.convertToPercent(h?e.from_max:e.max)-a,a=this.toFixed(a-this.coords.p_handle/100*a),b=this.toFixed(b-this.coords.p_handle/100*b),a+=this.coords.p_handle/2,f.shad_from[0].style.display="block",f.shad_from[0].style.left=a+"%",f.shad_from[0].style.width=b+"%"):f.shad_from[0].style.display="none",e.to_shadow&&(i||j)?(c=this.convertToPercent(i?e.to_min:e.min),d=this.convertToPercent(j?e.to_max:e.max)-c,c=this.toFixed(c-this.coords.p_handle/100*c),d=this.toFixed(d-this.coords.p_handle/100*d),c+=this.coords.p_handle/2,f.shad_to[0].style.display="block",f.shad_to[0].style.left=c+"%",f.shad_to[0].style.width=d+"%"):f.shad_to[0].style.display="none")},writeToInput:function(){"single"===this.options.type?(this.options.values.length?this.$cache.input.prop("value",this.result.from_value):this.$cache.input.prop("value",this.result.from),this.$cache.input.data("from",this.result.from)):(this.options.values.length?this.$cache.input.prop("value",this.result.from_value+this.options.input_values_separator+this.result.to_value):this.$cache.input.prop("value",this.result.from+this.options.input_values_separator+this.result.to),this.$cache.input.data("from",this.result.from),this.$cache.input.data("to",this.result.to))},callOnStart:function(){this.writeToInput(),this.options.onStart&&"function"==typeof this.options.onStart&&(this.options.scope?this.options.onStart.call(this.options.scope,this.result):this.options.onStart(this.result))},callOnChange:function(){this.writeToInput(),this.options.onChange&&"function"==typeof this.options.onChange&&(this.options.scope?this.options.onChange.call(this.options.scope,this.result):this.options.onChange(this.result))},callOnFinish:function(){this.writeToInput(),this.options.onFinish&&"function"==typeof this.options.onFinish&&(this.options.scope?this.options.onFinish.call(this.options.scope,this.result):this.options.onFinish(this.result))},callOnUpdate:function(){this.writeToInput(),this.options.onUpdate&&"function"==typeof this.options.onUpdate&&(this.options.scope?this.options.onUpdate.call(this.options.scope,this.result):this.options.onUpdate(this.result))},toggleInput:function(){this.$cache.input.toggleClass("irs-hidden-input"),this.has_tab_index?this.$cache.input.prop("tabindex",-1):this.$cache.input.removeProp("tabindex"),this.has_tab_index=!this.has_tab_index},convertToPercent:function(a,b){var c,d=this.options.max-this.options.min,e=d/100;return d?(c=(b?a:a-this.options.min)/e,this.toFixed(c)):(this.no_diapason=!0,0)},convertToValue:function(a){var b,c,d=this.options.min,e=this.options.max,f=d.toString().split(".")[1],g=e.toString().split(".")[1],h=0,i=0;if(0===a)return this.options.min;if(100===a)return this.options.max;f&&(h=b=f.length),g&&(h=c=g.length),b&&c&&(h=c<=b?b:c),d<0&&(d=+(d+(i=Math.abs(d))).toFixed(h),e=+(e+i).toFixed(h));var j,k=(e-d)/100*a+d,l=this.options.step.toString().split(".")[1];return k=l?+k.toFixed(l.length):(k/=this.options.step,+(k*=this.options.step).toFixed(0)),i&&(k-=i),(j=l?+k.toFixed(l.length):this.toFixed(k))<this.options.min?j=this.options.min:j>this.options.max&&(j=this.options.max),j},calcWithStep:function(a){var b=Math.round(a/this.coords.p_step)*this.coords.p_step;return 100<b&&(b=100),100===a&&(b=100),this.toFixed(b)},checkMinInterval:function(a,b,c){var d,e,f=this.options;return f.min_interval?(d=this.convertToValue(a),e=this.convertToValue(b),"from"===c?e-d<f.min_interval&&(d=e-f.min_interval):d-e<f.min_interval&&(d=e+f.min_interval),this.convertToPercent(d)):a},checkMaxInterval:function(a,b,c){var d,e,f=this.options;return f.max_interval?(d=this.convertToValue(a),e=this.convertToValue(b),"from"===c?e-d>f.max_interval&&(d=e-f.max_interval):d-e>f.max_interval&&(d=e+f.max_interval),this.convertToPercent(d)):a},checkDiapason:function(a,b,c){var d=this.convertToValue(a),e=this.options;return"number"!=typeof b&&(b=e.min),"number"!=typeof c&&(c=e.max),d<b&&(d=b),c<d&&(d=c),this.convertToPercent(d)},toFixed:function(a){return+(a=a.toFixed(20))},_prettify:function(a){return this.options.prettify_enabled?this.options.prettify&&"function"==typeof this.options.prettify?this.options.prettify(a):this.prettify(a):a},prettify:function(a){return a.toString().replace(/(\d{1,3}(?=(?:\d\d\d)+(?!\d)))/g,"$1"+this.options.prettify_separator)},checkEdges:function(a,b){return this.options.force_edges&&(a<0?a=0:100-b<a&&(a=100-b)),this.toFixed(a)},validate:function(){var a,b,c=this.options,d=this.result,e=c.values,f=e.length;if("string"==typeof c.min&&(c.min=+c.min),"string"==typeof c.max&&(c.max=+c.max),"string"==typeof c.from&&(c.from=+c.from),"string"==typeof c.to&&(c.to=+c.to),"string"==typeof c.step&&(c.step=+c.step),"string"==typeof c.from_min&&(c.from_min=+c.from_min),"string"==typeof c.from_max&&(c.from_max=+c.from_max),"string"==typeof c.to_min&&(c.to_min=+c.to_min),"string"==typeof c.to_max&&(c.to_max=+c.to_max),"string"==typeof c.grid_num&&(c.grid_num=+c.grid_num),c.max<c.min&&(c.max=c.min),f)for(c.p_values=[],c.min=0,c.max=f-1,c.step=1,c.grid_num=c.max,c.grid_snap=!0,b=0;b<f;b++)a=+e[b],a=isNaN(a)?e[b]:(e[b]=a,this._prettify(a)),c.p_values.push(a);"number"==typeof c.from&&!isNaN(c.from)||(c.from=c.min),"number"==typeof c.to&&!isNaN(c.to)||(c.to=c.max),"single"===c.type?(c.from<c.min&&(c.from=c.min),c.from>c.max&&(c.from=c.max)):(c.from<c.min&&(c.from=c.min),c.from>c.max&&(c.from=c.max),c.to<c.min&&(c.to=c.min),c.to>c.max&&(c.to=c.max),this.update_check.from&&(this.update_check.from!==c.from&&c.from>c.to&&(c.from=c.to),this.update_check.to!==c.to&&c.to<c.from&&(c.to=c.from)),c.from>c.to&&(c.from=c.to),c.to<c.from&&(c.to=c.from)),("number"!=typeof c.step||isNaN(c.step)||!c.step||c.step<0)&&(c.step=1),"number"==typeof c.from_min&&c.from<c.from_min&&(c.from=c.from_min),"number"==typeof c.from_max&&c.from>c.from_max&&(c.from=c.from_max),"number"==typeof c.to_min&&c.to<c.to_min&&(c.to=c.to_min),"number"==typeof c.to_max&&c.from>c.to_max&&(c.to=c.to_max),d&&(d.min!==c.min&&(d.min=c.min),d.max!==c.max&&(d.max=c.max),(d.from<d.min||d.from>d.max)&&(d.from=c.from),
9
+ (d.to<d.min||d.to>d.max)&&(d.to=c.to)),("number"!=typeof c.min_interval||isNaN(c.min_interval)||!c.min_interval||c.min_interval<0)&&(c.min_interval=0),("number"!=typeof c.max_interval||isNaN(c.max_interval)||!c.max_interval||c.max_interval<0)&&(c.max_interval=0),c.min_interval&&c.min_interval>c.max-c.min&&(c.min_interval=c.max-c.min),c.max_interval&&c.max_interval>c.max-c.min&&(c.max_interval=c.max-c.min)},decorate:function(a,b){var c="",d=this.options;return d.prefix&&(c+=d.prefix),c+=a,d.max_postfix&&(d.values.length&&a===d.p_values[d.max]?(c+=d.max_postfix,d.postfix&&(c+=" ")):b===d.max&&(c+=d.max_postfix,d.postfix&&(c+=" "))),d.postfix&&(c+=d.postfix),c},updateFrom:function(){this.result.from=this.options.from,this.result.from_percent=this.convertToPercent(this.result.from),this.result.from_pretty=this._prettify(this.result.from),this.options.values&&(this.result.from_value=this.options.values[this.result.from])},updateTo:function(){this.result.to=this.options.to,this.result.to_percent=this.convertToPercent(this.result.to),this.result.to_pretty=this._prettify(this.result.to),this.options.values&&(this.result.to_value=this.options.values[this.result.to])},updateResult:function(){this.result.min=this.options.min,this.result.max=this.options.max,this.updateFrom(),this.updateTo()},appendGrid:function(){if(this.options.grid){var a,b,c,d,e,f,g=this.options,h=g.max-g.min,i=g.grid_num,j=0,k=4,l="";for(this.calcGridMargin(),g.grid_snap&&(i=h/g.step),50<i&&(i=50),c=this.toFixed(100/i),4<i&&(k=3),7<i&&(k=2),14<i&&(k=1),28<i&&(k=0),a=0;a<i+1;a++){for(d=k,100<(j=this.toFixed(c*a))&&(j=100),e=((this.coords.big[a]=j)-c*(a-1))/(d+1),b=1;b<=d&&0!==j;b++)l+='<span class="irs-grid-pol small" style="left: '+this.toFixed(j-e*b)+'%"></span>';l+='<span class="irs-grid-pol" style="left: '+j+'%"></span>',f=this.convertToValue(j),l+='<span class="irs-grid-text js-grid-text-'+a+'" style="left: '+j+'%">'+(f=g.values.length?g.p_values[f]:this._prettify(f))+"</span>"}this.coords.big_num=Math.ceil(i+1),this.$cache.cont.addClass("irs-with-grid"),this.$cache.grid.html(l),this.cacheGridLabels()}},cacheGridLabels:function(){var a,b,c=this.coords.big_num;for(b=0;b<c;b++)a=this.$cache.grid.find(".js-grid-text-"+b),this.$cache.grid_labels.push(a);this.calcGridLabels()},calcGridLabels:function(){var a,b,c=[],d=[],e=this.coords.big_num;for(a=0;a<e;a++)this.coords.big_w[a]=this.$cache.grid_labels[a].outerWidth(!1),this.coords.big_p[a]=this.toFixed(this.coords.big_w[a]/this.coords.w_rs*100),this.coords.big_x[a]=this.toFixed(this.coords.big_p[a]/2),c[a]=this.toFixed(this.coords.big[a]-this.coords.big_x[a]),d[a]=this.toFixed(c[a]+this.coords.big_p[a]);for(this.options.force_edges&&(c[0]<-this.coords.grid_gap&&(c[0]=-this.coords.grid_gap,d[0]=this.toFixed(c[0]+this.coords.big_p[0]),this.coords.big_x[0]=this.coords.grid_gap),d[e-1]>100+this.coords.grid_gap&&(d[e-1]=100+this.coords.grid_gap,c[e-1]=this.toFixed(d[e-1]-this.coords.big_p[e-1]),this.coords.big_x[e-1]=this.toFixed(this.coords.big_p[e-1]-this.coords.grid_gap))),this.calcGridCollision(2,c,d),this.calcGridCollision(4,c,d),a=0;a<e;a++)b=this.$cache.grid_labels[a][0],this.coords.big_x[a]!==Number.POSITIVE_INFINITY&&(b.style.marginLeft=-this.coords.big_x[a]+"%")},calcGridCollision:function(a,b,c){var d,e,f,g=this.coords.big_num;for(d=0;d<g&&!(g<=(e=d+a/2));d+=a)f=this.$cache.grid_labels[e][0],c[d]<=b[e]?f.style.visibility="visible":f.style.visibility="hidden"},calcGridMargin:function(){this.options.grid_margin&&(this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_rs&&("single"===this.options.type?this.coords.w_handle=this.$cache.s_single.outerWidth(!1):this.coords.w_handle=this.$cache.s_from.outerWidth(!1),this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100),this.coords.grid_gap=this.toFixed(this.coords.p_handle/2-.1),this.$cache.grid[0].style.width=this.toFixed(100-this.coords.p_handle)+"%",this.$cache.grid[0].style.left=this.coords.grid_gap+"%"))},update:function(b){this.input&&(this.is_update=!0,this.options.from=this.result.from,this.options.to=this.result.to,this.update_check.from=this.result.from,this.update_check.to=this.result.to,this.options=a.extend(this.options,b),this.validate(),this.updateResult(b),this.toggleInput(),this.remove(),this.init(!0))},reset:function(){this.input&&(this.updateResult(),this.update())},destroy:function(){this.input&&(this.toggleInput(),this.$cache.input.prop("readonly",!1),a.data(this.input,"ionRangeSlider",null),this.remove(),this.input=null,this.options=null)}},a.fn.ionRangeSlider=function(b){return this.each(function(){a.data(this,"ionRangeSlider")||a.data(this,"ionRangeSlider",new f(this,b,i++))})},function(){for(var a=0,b=["ms","moz","webkit","o"],d=0;d<b.length&&!c.requestAnimationFrame;++d)c.requestAnimationFrame=c[b[d]+"RequestAnimationFrame"],c.cancelAnimationFrame=c[b[d]+"CancelAnimationFrame"]||c[b[d]+"CancelRequestAnimationFrame"];c.requestAnimationFrame||(c.requestAnimationFrame=function(b,d){var e=(new Date).getTime(),f=Math.max(0,16-(e-a)),g=c.setTimeout(function(){b(e+f)},f);return a=e+f,g}),c.cancelAnimationFrame||(c.cancelAnimationFrame=function(a){clearTimeout(a)})}()});var berocket_filters={};berocket_add_filter("compat_filters_result_single",function(a){return"object"==typeof a&&"string"==typeof a.taxonomy&&"pa_"==a.taxonomy.substr(0,3)&&(a.taxonomy=a.taxonomy.substr(3)),a});var braapf_filter_blocked=!1,braapf_selected_filters=[],braapf_filtered_filters=[],braapf_filters_var,braapf_ajax_request,braapf_checkbox_same,braapf_update_products,braapf_grab_all,braapf_grab_single,braapf_compact_filters,braapf_compat_filters_to_string,braapf_build_url_from_urldata,braapf_glue_by_operator,braapf_ajax_load_from_url,braapf_ajax_load_from_url_request,braapf_init_load,braapf_remove_pages_from_url_data,braapf_filter_products_by_url,braapf_get_current_url_data,braapf_reset_buttons_hide,bapf_universal_theme_compatibility,braapf_disable_ajax_loading,braapf_close_tippy;!function(a){function b(a){return berocket_remove_filter("ajax_load_from_url_beforeSend",b),a.setRequestHeader("X-Braapfdisable","1"),a}function c(a){return a.setRequestHeader("X-Braapf","1"),a}a(document).on("change",".bapf_sfilter.bapf_ckbox input[type=checkbox]",function(){var b=a(this).val(),c=a(this).parents(".bapf_sfilter").data("taxonomy"),d=a(this).prop("checked");braapf_checkbox_same(c,b,d),berocket_apply_filters("input_ckbox_changed",this,c,b,d);var e={element:"#"+a(this).attr("id"),parent:1,find:!1};berocket_apply_filters("filter_changed_element",e,a(this)),berocket_do_action("update_products","filter",a(this))}),braapf_checkbox_same=function(b,c,d){a('.bapf_sfilter[data-taxonomy="'+b+'"] input[value="'+c+'"]').prop("checked",d),a('.bapf_sfilter[data-taxonomy="'+b+'"]').length<a('.bapf_sfilter.bapf_ckbox[data-taxonomy="'+b+'"]').length&&berocket_throw_error("multiple_filters_for_same_taxonomy",b)},a(document).on("braapf_unselect",".bapf_ckbox",function(b,c){if("undefined"==typeof c&&(c=!1),0==c)var d=a(this).find("input[type=checkbox]");else var d=a(this).find('input[value="'+c.value+'"]');if(d.length>0){var e=d.val(),f=a(this).data("taxonomy");d.prop("checked",!1),braapf_checkbox_same(f,e,!1)}}),a(document).on("braapf_unselect_all",".bapf_ckbox",function(b,c){a(this).trigger("braapf_unselect",!1)}),a(document).on("click",".berocket_aapf_widget_update_button, .bapf_update",function(b){b.preventDefault(),berocket_do_action("update_products","update",a(this))}),a(document).on("click",".berocket_aapf_reset_button, .bapf_reset",function(b){b.preventDefault(),braapf_unselect_all(),berocket_do_action("update_products","reset_all",a(this))}),braapf_reset_buttons_hide=function(){berocket_apply_filters("bapf_rst_nofltr_hide","undefined"==typeof braapf_filtered_filters||braapf_filtered_filters.length<=0)?a(".bapf_rst_nofltr").hide():a(".bapf_rst_nofltr").show();var b=!1;"undefined"!=typeof braapf_filtered_filters&&braapf_filtered_filters.length>0&&a.each(braapf_filtered_filters,function(a,c){if(c.values.length>0)return b=!0,!1}),berocket_apply_filters("bapf_rst_sel_show",b)?a(".bapf_rst_sel").show():a(".bapf_rst_sel").hide()},berocket_add_filter("braapf_init",braapf_reset_buttons_hide,1500),berocket_add_filter("braapf_init_filtered_set",braapf_reset_buttons_hide,1500);var d=the_ajax_script.pagination_class;d=d.replace(","," a,"),d=berocket_apply_filters("pagination_links_a_tags",d+" a",the_ajax_script.pagination_class),!the_ajax_script.disable_ajax_loading&&the_ajax_script.woocommerce_removes.pagination_ajax&&a(document).on("click",d,function(c){c.preventDefault();var d=a(this).attr("href");d=berocket_apply_filters("pagination_href_from_clicked_a",decodeURI(d),a(this)),braapf_change_url_history_api(d,{replace:the_ajax_script.seo_friendly_urls}),berocket_add_filter("ajax_load_from_url_beforeSend",b),braapf_ajax_load_from_url(d,{},berocket_apply_filters("ajax_load_from_pagination",{done:[braapf_replace_products,braapf_replace_pagination,braapf_replace_result_count,braapf_init_load]},d))}),!the_ajax_script.disable_ajax_loading&&the_ajax_script.control_sorting&&a(document).on("submit",the_ajax_script.ordering_class,function(b){b.preventDefault();var c=braapf_get_current_url_data();if(c=braapf_remove_pages_from_url_data(c),Array.isArray(c.queryargs)){var d=[];a.each(c.queryargs,function(a,b){"orderby"!=b.name&&d.push(b)}),c.queryargs=d}else c.queryargs=[];var e=a(this).serializeArray();Array.isArray(e)&&a.each(e,function(a,b){"paged"==b.name?c.page=parseInt(b.value):"orderby"==b.name?the_ajax_script.default_sorting!=b.value&&c.queryargs.push(b):c.queryargs.push(b)});var f=braapf_build_url_from_urldata(c);braapf_filter_products_by_url(f)}),braapf_get_url_with_filters_selected=function(){braapf_grab_all();var a=braapf_compact_filters(),b=berocket_apply_filters("braapf_filters_mask",the_ajax_script.url_mask),c=braapf_compat_filters_to_string(a,b,the_ajax_script.url_split),d=braapf_get_current_url_data();d.filter=c,d=braapf_remove_pages_from_url_data(d);var e=braapf_build_url_from_urldata(d);return e},braapf_update_products=function(b,c){"undefined"==typeof b&&(b="filter"),"undefined"==typeof c&&(c=!1),b=berocket_apply_filters("before_update_products_context",b,c);var d=braapf_get_url_with_filters_selected();berocket_apply_filters("apply_filters_to_page",0==a(".berocket_aapf_widget_update_button:visible, .bapf_update:visible").length||"filter"!=b,b,c,d)?(braapf_selected_filters_area_set(),braapf_filter_products_by_url(d)):berocket_apply_filters("apply_filters_to_page_partial",!1,b,c,d)&&braapf_ajax_load_from_url(d,{},berocket_apply_filters("ajax_load_from_filters_partial",{done:[braapf_replace_each_filter,braapf_init_load]},d,"partial"),"partial")},braapf_filter_products_by_url=function(b){berocket_apply_filters("page_has_products_holder",!a(the_ajax_script.products_holder_id).length,b)?location.href=b:(braapf_change_url_history_api(b,{replace:the_ajax_script.seo_friendly_urls}),braapf_ajax_load_from_url(b,{},berocket_apply_filters("ajax_load_from_filters",{done:[braapf_replace_products,braapf_replace_pagination,braapf_replace_result_count,braapf_replace_orderby,braapf_replace_each_filter,braapf_init_load,braapf_filtered_filters_set,braapf_update_url_history_api_from_current]},b,"default")))},braapf_update_url_history_api_from_current=function(){the_ajax_script.seo_friendly_urls&&(url_filtered=braapf_get_url_with_filters_selected(),history.replaceState(history.state,"BeRocket Rules",url_filtered))},braapf_grab_all=function(b){"undefined"==typeof b&&(b=!1);var c=[];if(b===!1)var d=a(".bapf_sfilter");else var d=a(b).find(".bapf_sfilter");return d.each(function(){var a=braapf_grab_single(this,c);a!==!1&&c.push(a)}),c=berocket_apply_filters("grab_all_filters",c,b),b===!1&&(braapf_selected_filters=c),c},braapf_grab_single=function(b,c,d){"undefined"==typeof d&&(d=!1),b=a(b);var e=!1,f=!1,g=b.data("taxonomy");if("undefined"==typeof g||!g)return berocket_apply_filters("grab_single_filter_taxonomy_undefined",e,b,c);if(a.each(c,function(a,b){b.taxonomy==g&&(f=!0)}),!berocket_apply_filters("grab_single_filter_exist",f,b,c)){if(e=berocket_apply_filters("grab_single_filter",e,b,c),e!==!1)return e;var h=b.data("op"),i=b.data("name");"undefined"==typeof i&&(i="");var j=braapf_glue_by_operator(h),k=[],l=[];if(d)var m=b;else var m=a(".bapf_sfilter[data-taxonomy="+g+"]");m.find("input:checked:not(:disabled)").each(function(b,c){l.indexOf(a(this).val())==-1&&(k.push({value:a(this).val(),html:a(this).data("name")}),l.push(a(this).val()))}),e={name:i,taxonomy:g,values:k,glue:j,operator:h}}return berocket_apply_filters("grab_single_filter_default",e,b,c)},braapf_glue_by_operator=function(a){"string"!=typeof a&&(a="");var b="-";return"and"==a.toLowerCase()&&(b="+"),berocket_apply_filters("glue_by_operator",b,a)},braapf_compact_filters=function(b){"undefined"==typeof b&&(b=braapf_selected_filters);var c=[];return a.each(b,function(b,d){var e="";"undefined"!=typeof d.customValuesLine?e=d.customValuesLine:a.each(d.values,function(a,b){e.length&&(e+=d.glue),e+=b.value}),e.length&&c.push(berocket_apply_filters("compat_filters_result_single",{taxonomy:d.taxonomy,values:e},d))}),berocket_apply_filters("compat_filters_result",c,b)},braapf_compat_filters_to_string=function(b,c,d){var e="";return a.each(b,function(a,f){e.length&&(e+=d);var g=c;g=g.replace("%t%",f.taxonomy),g=g.replace("%v%",f.values),e+=berocket_apply_filters("compat_filters_to_string_single",g,f,b,c,d)}),berocket_apply_filters("compat_filters_to_string",e,b,c,d)},braapf_get_current_url_data=function(b){if("undefined"==typeof b)var c=location.href.split("#")[0].split("?")[0],d=location.search.substring(1);else{var c=b.split("#")[0].split("?")[0];if(b.split("#")[0].split("?").length>1)var d=b.split("#")[0].split("?")[1];else var d=""}var e=[],f=1,g=c.match(/\/page\/(\d+)/);return g&&"string"==typeof g[1]&&(f=parseInt(g[1]),c=c.replace(/\/page\/(\d+)/,"")),d=d.split("&"),a.each(d,function(a,b){b.length&&(d[a]=b.split("="),"paged"==d[a][0]?f=parseInt(d[a][1]):e.push({name:d[a][0],value:d[a][1]}))}),berocket_apply_filters("get_current_url_data",{baselink:c,queryargs:e,filter:"",page:f})},braapf_remove_pages_from_url_data=function(b){if(b.page=1,Array.isArray(b.queryargs)){var c=[];a.each(b.queryargs,function(a,b){"product-page"!=b.name&&c.push(b)}),b.queryargs=c}return b},braapf_build_url_from_urldata=function(b,c){"undefined"==typeof c&&(c=braapf_build_url_parameters_default());var d=berocket_apply_filters("url_from_urldata_baselink",b.baselink,b,c),e="";return b.queryargs.length&&a.each(b.queryargs,function(a,b){e.length&&(e+="&"),b.name.length&&(e+=b.name+"="+b.value)}),b.page&&b.page>1&&(e.length&&(e+="&"),e+="paged="+b.page),e.length&&(e="?"+e),d=berocket_apply_filters("url_from_urldata_linkget",d+e,b,c,d,e)},braapf_build_url_parameters_default=function(){return berocket_apply_filters("build_url_parameters_default",{})},braapf_replace_current_with_new=function(b,c,d){"undefined"==typeof d&&(d={}),args={replace:!1},jQuery.extend(args,d);var e=a("<div><div>"+b+"</div></div>"),f=e.find(c),g=a(c);0!=g.length&&(f.length!=g.length&&0!=f.length&&berocket_throw_error("error_notsame_block_qty",c,f.length,g.length),0==f.length?(g.html("").addClass("braapfNotReplaced"),g.hide()):(g.each(function(b,c){"undefined"!=typeof f[b]?args.replace?a(c).replaceWith(a(f[b])):a(c).html(a(f[b]).html()).removeClass("braapfNotReplaced"):a(c).html("").addClass("braapfNotReplaced")}),g.show()))},braapf_replace_products=function(b){var c=the_ajax_script.products_holder_id;a("<div><div>"+b+"</div></div>");a(".bapf_no_products").remove(),braapf_replace_current_with_new(b,c),a(".braapfNotReplaced").filter(c).length&&a(".braapfNotReplaced").filter(c).before(a(the_ajax_script.no_products))},braapf_replace_pagination=function(b){var c=the_ajax_script.pagination_class;if(0==a(c).length){var d=the_ajax_script.products_holder_id,e=a("<div><div>"+b+"</div></div>"),f=e.find(c).last();f.length&&a(d).last().after(f)}else braapf_replace_current_with_new(b,c)},braapf_replace_result_count=function(a){var b=the_ajax_script.result_count_class;braapf_replace_current_with_new(a,b)},braapf_replace_orderby=function(a){var b=the_ajax_script.ordering_class;braapf_replace_current_with_new(a,b)},braapf_replace_each_filter=function(b){var c=a("<div><div>"+b+"</div></div>");a(".berocket_single_filter_widget").each(function(){var b=a(this).data("id");a(".berocket_single_filter_widget_"+b).html(c.find(".berocket_single_filter_widget_"+b).last().html()),c.find(".berocket_single_filter_widget_"+b).is(".bapf_mt_none")?a(".berocket_single_filter_widget_"+b).addClass("bapf_mt_none"):a(".berocket_single_filter_widget_"+b).removeClass("bapf_mt_none")})},braapf_change_url_history_api=function(a,b){if("undefined"!=typeof b&&b.replace){var c={BeRocket:"Rules"};history.replaceState(c,""),history.pushState(c,"",a),history.pathname=a}},berocket_apply_filters("load_products_ajax_on_popstate",!0)&&(window.onpopstate=function(b){if(null!=b.state&&"Rules"==b.state.BeRocket){var c=location.href;berocket_apply_filters("page_has_products_holder",!a(the_ajax_script.products_holder_id).length,c)?location.href=c:braapf_ajax_load_from_url(c,{},berocket_apply_filters("ajax_load_from_filters",{done:[braapf_replace_products,braapf_replace_pagination,braapf_replace_result_count,braapf_replace_orderby,braapf_replace_each_filter,braapf_init_load,braapf_filtered_filters_set,braapf_update_url_history_api_from_current]},c,"default"))}}),braapf_ajax_load_from_url=function(a,b,c,d){"undefined"==typeof d&&(d="default"),"object"!=typeof b&&(b={}),"object"!=typeof c&&(c={done:[],fail:[],always:[]}),"undefined"!=typeof c.done&&Array.isArray(c.done)||(c.done=[]),"undefined"!=typeof c.fail&&Array.isArray(c.fail)||(c.fail=[]),"undefined"!=typeof c.always&&Array.isArray(c.always)||(c.always=[]),a=berocket_apply_filters("ajax_load_from_url_url",a,b,c,d),b=berocket_apply_filters("ajax_load_from_url_data",b,a,c,d),c=berocket_apply_filters("ajax_load_from_url_callback",c,a,b,d),braapf_ajax_load_from_url_request(a,b,c,d)},braapf_ajax_load_from_url_request=function(b,c,d,e){a(document).trigger("berocket_ajax_filtering_start"),"object"==typeof braapf_ajax_request&&"undefined"!=typeof braapf_ajax_request.abort&&braapf_ajax_request.abort(),braapf_ajax_request=a.ajax({method:"GET",url:b,data:c,beforeSend:function(a){a=berocket_apply_filters("ajax_load_from_url_beforeSend",a,b,c,d,e)}}).done(function(f,g,h){a(document).trigger("berocket_ajax_filtering_on_update"),f=berocket_apply_filters("ajax_load_from_url_done",f,b,c,d,e),a.each(d.done,function(a,b){b(f,g,h)}),f=berocket_apply_filters("ajax_load_from_url_done_after",f,b,c,d,e),a(document).trigger("berocket_ajax_products_loaded")}).fail(function(f,g,h){if("abort"==g)return!1;if(a(document).trigger("berocket_ajax_products_not_loaded"),f=berocket_apply_filters("ajax_load_from_url_fail",f,b,c,d,e),a.each(d.fail,function(a,b){b(f,g,h)}),f=berocket_apply_filters("ajax_load_from_url_fail_after",f,b,c,d,e),"default"==e){var i=jQuery.param(c);i&&(b=b.split("?").length>1?b+"&"+i:b+"?"+i),location.href=b}}).always(function(f,g,h){f=berocket_apply_filters("ajax_load_from_url_always",f,b,c,d,e),a.each(d.always,function(a,b){b(f,g,h)}),f=berocket_apply_filters("ajax_load_from_url_always_after",f,b,c,d,e),a(document).trigger("berocket_ajax_filtering_end")})},braapf_init_load=function(){var b=berocket_apply_filters("filter_mobile_width",767),c=berocket_apply_filters("filter_tablet_width",1024);a(window).width()<=b&&a(".bapf_sngl_hd_mobile").remove(),a(window).width()>b&&a(window).width()<=c&&a(".bapf_sngl_hd_tablet").remove(),a(window).width()>c&&a(".bapf_sngl_hd_desktop").remove(),a(".bapf_sfilter .bapf_body.bapf_mcs:not(.bapf_mcs_ready)").each(function(){a(this).css("max-height",a(this).data("mcs-h")).mCustomScrollbar({scrollInertia:300}).addClass("bapf_mcs_ready")}),a(".berocket_single_filter_widget").each(function(){var b=a(this).data("id");berocket_apply_filters("remove_same_filters_to_prevent_errors",a(".berocket_single_filter_widget_"+b).length>1,a(this),b)&&a(".berocket_single_filter_widget_"+b).not(a(".berocket_single_filter_widget_"+b).first()).remove()}),a("body").on("click",".bapf_desci",function(a){a.stopPropagation()}),a("body").on("hover",".bapf_desci",function(a){a.stopPropagation()}),berocket_do_action("braapf_init",braapf_selected_filters),a(document).trigger("berocket_filters_first_load")},braapf_update_page_on_error=function(){berocket_apply_filters("update_page_on_error",!0)&&location.reload()},braapf_selected_filters_area_set=function(){if("undefined"!=typeof braapf_filtered_filters&&braapf_filtered_filters.length>0){var b="";a.each(braapf_filtered_filters,function(c,d){if(d.values.length>0){var e='<div class="bapf_sfa_taxonomy"><span>'+d.name+"</span>";e+="<ul>";var f="";a.each(d.values,function(a,b){f+=berocket_apply_filters("default_selected_filters_area_single",'<li><a href="#unselect_'+b.value+'" class="braapf_unselect" data-taxonomy="'+d.taxonomy+'" data-value="'+b.value+'"><i class="fa fa-times"></i>'+b.html+"</a></li>",b)}),e+=f,e+="</ul></div>",b+=berocket_apply_filters("default_selected_filters_area_single_taxonomy",e,d,f)}}),b?(a(".bapf_sfa_mt_hide").show().parent().removeClass("bapf_mt_none"),b=berocket_apply_filters("default_selected_filters_area_full_exist",'<div class="berocket_aapf_widget_selected_filter">'+b+'<ul class="bapf_sfa_unall"><li><a href="#Unselect_all" class="braapf_unselect_all"><i class="fa fa-times"></i> '+the_ajax_script.translate.unselect_all+"</a></li></ul>",b,braapf_filtered_filters)):(b=berocket_apply_filters("default_selected_filters_area_full_notexist",the_ajax_script.translate.nothing_selected,b,braapf_filtered_filters),a(".bapf_sfa_mt_hide").hide().parent().addClass("bapf_mt_none")),a(".berocket_aapf_widget_selected_area").html(b)}},a(document).on("click",".berocket_aapf_widget_selected_area .braapf_unselect",function(b){b.preventDefault(),a(".bapf_sfilter[data-taxonomy="+a(this).data("taxonomy")+"]").trigger("braapf_unselect",a(this).data()),berocket_do_action("update_products","reset_single",a(this))}),braapf_unselect_all=function(){braapf_grab_all(),"undefined"!=typeof braapf_selected_filters&&braapf_selected_filters.length>0&&a.each(braapf_selected_filters,function(b,c){c.values.length>0&&a(".bapf_sfilter[data-taxonomy="+c.taxonomy+"]").trigger("braapf_unselect_all",c)})},a(document).on("click",".berocket_aapf_widget_selected_area .braapf_unselect_all",function(b){b.preventDefault(),braapf_unselect_all(),berocket_do_action("update_products","reset_all",a(this))}),berocket_add_filter("braapf_init",braapf_grab_all_init,1e3),berocket_add_filter("braapf_init",braapf_selected_filters_area_set_init,1100),berocket_add_filter("braapf_init_filtered_set",braapf_selected_filters_area_set_init,1100),braapf_reload_page_for_products_error=function(a,b){return b==the_ajax_script.products_holder_id&&braapf_update_page_on_error(),a},berocket_add_filter("ajax_load_from_url_beforeSend",c),berocket_add_filter("update_products",braapf_update_products),berocket_add_filter("error_notsame_block_qty",braapf_reload_page_for_products_error),bapf_universal_theme_compatibility=function(b){if(berocket_apply_filters("universal_theme_compatibility",!0)){a(window).trigger("resize");try{berocket_apply_filters("uncode_theme_compatibility","object"==typeof UNCODE&&"function"==typeof UNCODE.init)&&UNCODE.init()}catch(a){berocket_throw_error("uncode_theme_compatibility",a)}try{berocket_apply_filters("flatsome_theme_compatibility","object"==typeof Flatsome&&"function"==typeof Flatsome.attach&&jQuery(the_ajax_script.products_holder_id).length)&&Flatsome.attach(jQuery(the_ajax_script.products_holder_id))}catch(a){berocket_throw_error("flatsome_theme_compatibility",a)}try{berocket_apply_filters("woodmart_theme_compatibility","object"==typeof woodmartThemeModule&&"function"==typeof woodmartThemeModule.init)&&(woodmartThemeModule.wooInit(),woodmartThemeModule.lazyLoading(),woodmartThemeModule.productsLoadMore())}catch(a){berocket_throw_error("woodmart_theme_compatibility",a)}try{berocket_apply_filters("divi_theme_compatibility","function"==typeof et_reinit_waypoint_modules)&&et_reinit_waypoint_modules()}catch(a){berocket_throw_error("divi_theme_compatibility",a)}try{berocket_apply_filters("rey_theme_compatibility","object"==typeof jQuery.reyTheme&&"function"==typeof jQuery.reyTheme.init)&&jQuery.reyTheme.init()}catch(a){berocket_throw_error("rey_theme_compatibility",a)}try{berocket_apply_filters("layzyloadimage_script_compatibility","function"==typeof layzyLoadImage)&&layzyLoadImage()}catch(a){berocket_throw_error("layzyloadimage_script_compatibility",a)}try{berocket_apply_filters("jetpacklazyimages_script_compatibility","function"==typeof jetpackLazyImagesModule)&&jetpackLazyImagesModule()}catch(a){berocket_throw_error("jetpacklazyimages_script_compatibility",a)}}return b},berocket_add_filter("ajax_load_from_url_always_after",bapf_universal_theme_compatibility,2500),a(document).ready(function(){berocket_apply_filters("remove_shortcode_fix_filters",a(".berocket_wc_shortcode_fix").length)&&(braapf_replace_each_filter(a(".berocket_wc_shortcode_fix").html()),a(".berocket_wc_shortcode_fix").html("")),braapf_init_load(),braapf_filtered_filters_set(),a(document).trigger("berocket_filters_document_ready")}),braapf_disable_ajax_loading=function(a){return!0},the_ajax_script.disable_ajax_loading&&berocket_add_filter("page_has_products_holder",braapf_disable_ajax_loading),braapf_close_tippy=function(){try{a(".tippy-box").length&&a(".tippy-box").each(function(){"undefined"!=typeof a(this).parent()[0]._tippy&&a(this).parent()[0]._tippy.hide()})}catch(a){}},berocket_add_filter("update_products",braapf_close_tippy)}(jQuery);var braapf_get_current_filters,braapf_filters_url_decode,braapf_scroll_shop_to_top,braapf_set_filters_to_link,braapf_convert_ckbox_to_radio,braapf_hierarhical_save,braapf_hierarhical_set,braapf_collapse_status_save,braapf_collapse_status_set,braapf_show_hide_values_save,braapf_show_hide_values_set,berocket_custom_sidebar_close,berocket_custom_sidebar_open;!function(a){function b(){jQuery(".berocket_product_table_compat .dataTables_length select").length&&jQuery(".berocket_product_table_compat .wc-product-table").dataTable()._fnSaveState();var a=jQuery(".berocket_product_table_compat .wc-product-table").attr("id");if("undefined"!=typeof window["config_"+a]&&window["config_"+a].serverSide){jQuery(".berocket_product_table_compat .wc-product-table").DataTable().destroy();var b=jQuery(".berocket_product_table_compat").html();jQuery(".berocket_product_table_compat").html(""),jQuery(".berocket_product_table_compat").html(b),jQuery(".berocket_product_table_compat .blockUI.blockOverlay").remove(),jQuery(".berocket_product_table_compat .wc-product-table").productTable()}}braapf_get_current_filters=function(b){if(b.queryargs.length){var c=[];a.each(b.queryargs,function(a,d){d.name==the_ajax_script.url_variable?b.filter=d.value:c.push(d)}),b.queryargs=c}return b},braapf_set_filters_to_link=function(a,b,c,d,e){return"string"==typeof b.filter&&b.filter.length&&(a+=e.length?"&":"?",a+=the_ajax_script.url_variable+"="+b.filter),a},braapf_convert_ckbox_to_radio=function(b,c,d,e){var f=(a(b),a(b).closest(".bapf_sfilter.bapf_ckbox"));f.is(".bapf_asradio")&&f.find("input[type=checkbox]:checked:not(:disabled)").each(function(){var b=a(this).val();b!=d&&braapf_checkbox_same(c,b,!1)})},berocket_add_filter("input_ckbox_changed",braapf_convert_ckbox_to_radio),a(document).on("click",".bapf_ochild, .bapf_cchild",function(b){b.preventDefault(),b.stopPropagation(),a(this).is(".bapf_ochild")?a(this).trigger("bapf_ochild"):a(this).trigger("bapf_cchild")}),a(document).on("bapf_ochild",".bapf_sfilter.bapf_ckbox ul li",function(b){b.stopPropagation(),berocket_apply_filters("colaps_child_open_apply",!0,a(this))&&(a(this).find(".bapf_ochild, .bapf_cchild").first().removeClass("bapf_ochild").removeClass("fa-plus").addClass("bapf_cchild").addClass("fa-minus"),a(this).find("ul").first().show())}),a(document).on("bapf_cchild",".bapf_sfilter.bapf_ckbox ul li",function(b){b.stopPropagation(),berocket_apply_filters("colaps_child_close_apply",!0,a(this))&&(a(this).find(".bapf_ochild, .bapf_cchild").first().addClass("bapf_ochild").addClass("fa-plus").removeClass("bapf_cchild").removeClass("fa-minus"),a(this).find("ul").first().hide())});var c=[];braapf_hierarhical_save=function(b){return c=[],a(".bapf_cchild").each(function(){c.push(a(this).parent().children("input[type=checkbox]").attr("id"))}),b},braapf_hierarhical_set=function(b){return a.each(c,function(b,c){a("#"+c).trigger("bapf_ochild")}),b},berocket_add_filter("ajax_load_from_url_done",braapf_hierarhical_save,1),berocket_add_filter("ajax_load_from_url_done_after",braapf_hierarhical_set,1e3),a(document).on("click",".bapf_ocolaps .bapf_colaps_togl, .bapf_ccolaps .bapf_colaps_togl",function(b){b.preventDefault,a(this).closest(".bapf_ocolaps, .bapf_ccolaps").is(".bapf_ocolaps")?a(this).closest(".bapf_ocolaps, .bapf_ccolaps").trigger("bapf_ocolaps"):a(this).closest(".bapf_ocolaps, .bapf_ccolaps").trigger("bapf_ccolaps")}),a(document).on("bapf_ocolaps",".bapf_sfilter.bapf_ocolaps, .bapf_sfilter.bapf_ccolaps",function(b){a(this).removeClass("bapf_ocolaps").addClass("bapf_ccolaps"),berocket_apply_filters("colaps_smb_open_apply",!0,a(this))&&(a(this).find(".bapf_body").first().show(),a(this).find(".bapf_colaps_smb").length&&a(this).find(".bapf_colaps_smb").removeClass("fa-chevron-down").addClass("fa-chevron-up"))}),a(document).on("bapf_ccolaps",".bapf_sfilter.bapf_ocolaps, .bapf_sfilter.bapf_ccolaps",function(b){a(this).addClass("bapf_ocolaps").removeClass("bapf_ccolaps"),berocket_apply_filters("colaps_smb_close_apply",!0,a(this))&&(a(this).find(".bapf_body").first().hide(),a(this).find(".bapf_colaps_smb").length&&a(this).find(".bapf_colaps_smb").addClass("fa-chevron-down").removeClass("fa-chevron-up"))});var d={open:[],close:[]};braapf_collapse_status_save=function(b){return d={open:[],close:[]},a(".bapf_ocolaps, .bapf_ccolaps").each(function(){a(this).is(".bapf_ocolaps")?d.open.push(a(this).attr("id")):d.close.push(a(this).attr("id"))}),b},braapf_collapse_status_set=function(b){return a.each(d.open,function(b,c){a("#"+c).trigger("bapf_ccolaps")}),a.each(d.close,function(b,c){a("#"+c).trigger("bapf_ocolaps")}),b},berocket_add_filter("ajax_load_from_url_done",braapf_collapse_status_save,1),berocket_add_filter("ajax_load_from_url_done_after",braapf_collapse_status_set,1e3),a(document).on("click",".bapf_show_hide",function(){a(this).closest(".bapf_sfilter").toggleClass("bapf_fhide"),a(this).closest(".bapf_sfilter").is(".bapf_fhide")?a(this).text(a(this).data("show")):a(this).text(a(this).data("hide"))});var e={open:[],close:[]};braapf_show_hide_values_save=function(b){return e={open:[],close:[]},a(".bapf_sfilter").each(function(){a(this).is(".bapf_fhide")?e.close.push(a(this).attr("id")):e.open.push(a(this).attr("id"))}),b},braapf_show_hide_values_set=function(b){return a.each(e.open,function(b,c){a("#"+c).removeClass("bapf_fhide"),a("#"+c).find(".bapf_show_hide").text(a("#"+c).find(".bapf_show_hide").data("hide"))}),a.each(e.close,function(b,c){a("#"+c).addClass("bapf_fhide"),a("#"+c).find(".bapf_show_hide").text(a("#"+c).find(".bapf_show_hide").data("show"))}),b},berocket_add_filter("ajax_load_from_url_done",braapf_show_hide_values_save,1),berocket_add_filter("ajax_load_from_url_done_after",braapf_show_hide_values_set,1e3),braapf_scroll_shop_to_top=function(b,c,d,e,f){var g=berocket_apply_filters("filter_mobile_width",767);if(berocket_apply_filters("scroll_shop_to_top","default"==f&&(1==the_ajax_script.scroll_shop_top||2==the_ajax_script.scroll_shop_top&&a(window).width()<g||3==the_ajax_script.scroll_shop_top&&a(window).width()>=g))){var h=0;a(the_ajax_script.products_holder_id).length?(h=a(the_ajax_script.products_holder_id).offset().top+parseInt(the_ajax_script.scroll_shop_top_px),h<0&&(h=0)):a(".bapf_no_products").length&&(h=a(".bapf_no_products").offset().top+parseInt(the_ajax_script.scroll_shop_top_px),
10
+ h<0&&(h=0)),a("html, body").animate({scrollTop:h},"slow")}return b},berocket_add_filter("ajax_load_from_url_beforeSend",braapf_scroll_shop_to_top),a(document).on("mousedown",".wc-product-table-reset a",function(){a(this).remove(),br_reset_all_filters()}),a(document).on("click",".berocket_element_above_products_is_hide_toggle",function(b){b.preventDefault(),a(this).toggleClass("active").next().slideToggle(200,"linear");var c="inactive";a(this).is(".active")&&(c="active"),a(document).trigger("berocket_element_above_products_"+c)}),berocket_custom_sidebar_close=function(){a(".berocket_ajax_filters_sidebar_toggle").removeClass("active"),a("#berocket-ajax-filters-sidebar").removeClass("active"),a("body").removeClass("berocket_ajax_filters_sidebar_active")},berocket_custom_sidebar_open=function(){a(".berocket_ajax_filters_sidebar_toggle").addClass("active"),a("#berocket-ajax-filters-sidebar").addClass("active"),a("body").addClass("berocket_ajax_filters_sidebar_active")},a(document).on("berocket_custom_sidebar_close",berocket_custom_sidebar_close),a(document).on("berocket_custom_sidebar_open",berocket_custom_sidebar_open),a(document).on("click",".berocket_ajax_filters_sidebar_toggle",function(b){b.preventDefault(),a(this).is(".active")&&a("#berocket-ajax-filters-sidebar").is(".active")?berocket_custom_sidebar_close():berocket_custom_sidebar_open()}),a(document).on("click","#berocket-ajax-filters-sidebar-shadow, #berocket-ajax-filters-sidebar-close",function(a){a.preventDefault(),berocket_custom_sidebar_close()}),a(document).on("berocket_ajax_filtering_start",function(){jQuery(".berocket_product_table_compat").length&&b()}),braapf_filters_url_decode=function(a){return the_ajax_script.seo_uri_decode&&(a=encodeURIComponent(a),the_ajax_script.nice_urls&&(a=a.replace(/%2F/g,"/"))),a}}(jQuery),berocket_add_filter("get_current_url_data",braapf_get_current_filters),berocket_add_filter("compat_filters_to_string",braapf_filters_url_decode,900),berocket_add_filter("url_from_urldata_linkget",braapf_set_filters_to_link);var braapf_child_parent_grab_single,braapf_child_parent_fix_selected,braapf_child_parent_load_with_update_button,braapf_add_loader_element,braapf_remove_loader_element;!function(a){braapf_child_parent_grab_single=function(b,c,d){var e=c.data("child");if("undefined"!=typeof e&&e>0&&"object"==typeof b&&"undefined"!=typeof b.values&&Array.isArray(b.values)&&b.values.length>0){e++;var f=c.data("taxonomy"),g=a(".bapf_sfilter.bapf_child_"+e+"[data-taxonomy="+f+"]");if(g.length){var h=braapf_grab_single(g,[],!0);"object"==typeof h&&"undefined"!=typeof h.values&&Array.isArray(h.values)&&h.values.length>0&&(b=h)}}return b},braapf_child_parent_fix_selected=function(b,c){if(0!=c){var d=c.closest(".bapf_sfilter");if(d.length){var e=d.data("child"),f=d.data("taxonomy");if("undefined"!=typeof e&&e>0)for(i=e+1;a(".bapf_sfilter.bapf_child_"+i+"[data-taxonomy="+f+"]").length;i++)a(".bapf_sfilter.bapf_child_"+i+"[data-taxonomy="+f+"]").trigger("braapf_unselect",!1)}}return b},braapf_child_parent_load_with_update_button=function(a,b,c){if(0!=c){var d=c.closest(".bapf_sfilter");if(d.length){var e=d.data("child");d.data("taxonomy");"undefined"!=typeof e&&e>0&&(a=!0)}}return a},berocket_add_filter("grab_single_filter_default",braapf_child_parent_grab_single),berocket_add_filter("before_update_products_context",braapf_child_parent_fix_selected),berocket_add_filter("apply_filters_to_page_partial",braapf_child_parent_load_with_update_button);var b;braapf_add_loader_element=function(c,d,e,f,g){return"default"==g&&("undefined"!=typeof b&&"function"==typeof b.remove&&b.remove(),b=a(the_ajax_script.load_image),a("body").append(b)),c},braapf_remove_loader_element=function(a){return"undefined"!=typeof b&&"function"==typeof b.remove&&b.remove(),a},berocket_add_filter("ajax_load_from_url_beforeSend",braapf_add_loader_element),berocket_add_filter("ajax_load_from_url_always_after",braapf_remove_loader_element),a(document).on("click",".bapf_sfilter.bapf_ckbox .bapf_body li label a",function(b){b.preventDefault(),a(this).parent().trigger("click")})}(jQuery);var braapf_init_ion_slidr,braapf_ion_slidr_same,braapf_jqrui_slidr_ion_value_wc_price,braapf_jqrui_slidr_ion_value_arr_attr,braapf_init_ion_slidr_for_parent,braapf_grab_single_ion,braapf_jqrui_slidr_ion_values_link_arr_attr;!function(a){braapf_init_ion_slidr=function(){braapf_init_ion_slidr_for_parent(a(document))},braapf_init_ion_slidr_for_parent=function(b){b.find(".bapf_slidr_ion:not(.bapf_slidr_ready)").each(function(){var b=a(this).find(".bapf_slidr_all .bapf_slidr_main"),c=function(a){if(!b.is(".bapf_ion_blocked")){b.addClass("bapf_ion_blocked");var c=b.closest(".bapf_sfilter").data("taxonomy");braapf_ion_slidr_same(c,a);var d={element:"#"+b.closest(".bapf_sfilter").attr("id"),parent:0,find:".bapf_body"};berocket_apply_filters("filter_changed_element",d,b),berocket_do_action("update_products","filter",b),b.removeClass("bapf_ion_blocked")}},d=berocket_apply_filters("jqrui_data_slidr_ion",{type:"double",from:b.data("start"),to:b.data("end"),grid:!1,force_edges:!0,onFinish:c,onUpdate:c,prettify:function(a){return a=berocket_apply_filters("jqrui_slidr_ion_"+b.data("display"),a,b)}},b);b.ionRangeSlider(d),a(this).addClass("bapf_slidr_ready")})},braapf_ion_slidr_same=function(b,c){a(".bapf_slidr_ion.bapf_slidr_ready[data-taxonomy="+b+"]").each(function(){var b=a(this).find(".bapf_slidr_main");b.addClass("bapf_ion_blocked");var d=b.data("ionRangeSlider");d.update({from:c.from,to:c.to}),b.removeClass("bapf_ion_blocked")})},braapf_jqrui_slidr_ion_value_wc_price=function(a,b){var c=b.data("number_style");return c||(c=the_ajax_script.number_style),a=berocket_format_number(parseFloat(a),c)},braapf_jqrui_slidr_ion_value_arr_attr=function(a,b){var c=b.data("attr");return a=c[a].n},braapf_grab_single_ion=function(a,b){if(b.is(".bapf_slidr_ion.bapf_slidr_ready")&&0!=a){var c=b.find(".bapf_slidr_main").data("ionRangeSlider"),d=b.find(".bapf_slidr_main"),e=[c.options.from,c.options.to],f=[berocket_apply_filters("jqrui_slidr_ion_"+d.data("display"),c.options.from,d),berocket_apply_filters("jqrui_slidr_ion_"+d.data("display"),c.options.to,d)],g=d.data("prefix");"undefined"==typeof g&&(g="");var h=d.data("postfix");if("undefined"==typeof h&&(h=""),f[0]=g+f[0]+h,f[1]=g+f[1]+h,e[0]!=d.data("min")||e[1]!=d.data("max")){var i={value:e[0]+"_"+e[1],html:f[0]+" - "+f[1]};i=berocket_apply_filters("jqrui_slidr_ion_link_"+d.data("display"),i,e,f,d,a),a.values=[i]}}return a},braapf_jqrui_slidr_ion_values_link_arr_attr=function(a,b,c,d,e){var f=d.data("attr");return a.value=f[b[0]].v+"_"+f[b[1]].v,a},a(document).on("braapf_unselect braapf_unselect_all",".bapf_slidr_ion",function(b,c){var d=a(this).find(".bapf_slidr_main"),e=d.data("ionRangeSlider");d.addClass("bapf_ion_blocked"),e.update({from:e.options.min,to:e.options.max}),d.removeClass("bapf_ion_blocked")}),berocket_add_filter("braapf_init",braapf_init_ion_slidr),berocket_add_filter("braapf_init_for_parent",braapf_init_ion_slidr_for_parent),berocket_add_filter("grab_single_filter_default",braapf_grab_single_ion),berocket_add_filter("jqrui_slidr_ion_link_arr_attr",braapf_jqrui_slidr_ion_values_link_arr_attr),berocket_add_filter("jqrui_slidr_ion_wc_price",braapf_jqrui_slidr_ion_value_wc_price),berocket_add_filter("jqrui_slidr_ion_arr_attr",braapf_jqrui_slidr_ion_value_arr_attr)}(jQuery);var braapf_grab_single_select;!function(a){a(document).on("change",".bapf_slct .bapf_body select",function(){var b={element:"#"+a(this).closest(".bapf_sfilter").attr("id"),parent:0,find:".bapf_body"};berocket_apply_filters("filter_changed_element",b,a(this)),berocket_do_action("update_products","filter",a(this))}),braapf_grab_single_select=function(b,c){if(c.is(".bapf_slct")&&0!=b){var d=c.find(".bapf_body select:not(:disabled)");d.find("option:selected:not(:disabled)").each(function(){var c=a(this).val();c&&b.values.push({value:c,html:a(this).data("name")})})}return b},a(document).on("braapf_unselect braapf_unselect_all",".bapf_slct",function(b,c){a(this).find(".bapf_body select:not(:disabled) option:selected:not(:disabled)").each(function(){"undefined"!=typeof c.value&&c.value!=a(this).val()||a(this).prop("selected",!1)})}),berocket_add_filter("grab_single_filter_default",braapf_grab_single_select)}(jQuery);var bapf_select2_init,bapf_select2_init_for_parent,bapf_select2_disable_for_parent;jQuery(document).ready(function(){bapf_select2_init=function(){bapf_select2_init_for_parent(jQuery(document))},bapf_select2_init_for_parent=function(a){a.find(".bapf_select2").length&&"undefined"!=typeof a.find(".bapf_select2").select2&&a.find(".bapf_select2").each(function(){if(!jQuery(this).data("select2")){var a={width:"100%",theme:"default"};jQuery(this).prop("multiple")&&(a.placeholder=jQuery(this).data("placeholder")),jQuery(this).parents("#berocket-ajax-filters-sidebar").length&&(0==jQuery("#bapf-select2-high-zindex").length&&jQuery("body").append('<div id="bapf-select2-high-zindex"></div>'),a.dropdownParent=jQuery("#bapf-select2-high-zindex")),a=berocket_apply_filters("jqrui_data_select2",a,jQuery(this)),jQuery(this).select2(a)}})},bapf_select2_disable_for_parent=function(a){a.find(".bapf_select2").length&&"undefined"!=typeof a.find(".bapf_select2").select2&&a.find(".bapf_select2").each(function(){jQuery(this).data("select2")&&jQuery(this).select2("destroy")})},jQuery(document).on("berocket_ajax_filtering_on_update",function(){bapf_select2_disable_for_parent(jQuery(document))}),bapf_select2_init(),berocket_add_filter("braapf_init",bapf_select2_init,2e3),berocket_add_filter("braapf_init_for_parent",bapf_select2_init_for_parent)});var braapf_init_jqrui_slidr,braapf_jqrui_slidr_same,braapf_jqrui_slidr_values_wc_price,braapf_init_jqrui_slidr_for_parent,braapf_grab_single_jqrui,braapf_jqrui_slidr_values_arr_attr,braapf_jqrui_slidr_values_link_arr_attr;!function(a){function b(b,c){var d=a(b).closest(".bapf_slidr_jqrui.bapf_slidr_ready").find(".bapf_slidr_main"),e=d.slider("values");a(b).val(e[c]),a(b).data("val",e[c])}function c(b,c,d){var e=a(b).closest(".bapf_slidr_jqrui.bapf_slidr_ready").find(".bapf_slidr_main");if("focusout"==d){if(a(b).val()==a(b).data("val")){var f=e.slider("values");e.trigger("braapf_change_jqrui_slidr",[f])}}else{var g=parseInt(a(b).val());e.slider("values",c,g)}}a.each([{position:0,className:"bapf_from"},{position:1,className:"bapf_to"}],function(d,e){a(document).on("focusin",".bapf_slidr_jqrui.bapf_slidr_ready ."+e.className+" input[type=text]",function(){b(this,e.position)}),a(document).on("change focusout",".bapf_slidr_jqrui.bapf_slidr_ready ."+e.className+" input[type=text]",function(a){c(this,e.position,a.type)}),a(document).on("change",".bapf_slidr_jqrui.bapf_slidr_ready ."+e.className+" select",function(a){c(this,e.position,a.type)})}),a(document).on("braapf_change_jqrui_slidr",".bapf_slidr_jqrui .bapf_slidr_main",function(b,c){var d=a(this),e=[c[0],c[1]];e=berocket_apply_filters("jqrui_slidr_"+d.data("display"),e,d),d.closest(".bapf_slidr_jqrui").find(".bapf_from span.bapf_val").length&&d.closest(".bapf_slidr_jqrui").find(".bapf_from span.bapf_val").text(e[0]),d.closest(".bapf_slidr_jqrui").find(".bapf_to span.bapf_val").length&&d.closest(".bapf_slidr_jqrui").find(".bapf_to span.bapf_val").text(e[1])}),a(document).on("braapf_change_jqrui_slidr",".bapf_slidr_jqrui .bapf_slidr_main",function(b,c){var d=a(this),e=[c[0],c[1]];e=berocket_apply_filters("jqrui_slidr_"+d.data("display"),e,d),d.closest(".bapf_slidr_jqrui").find(".bapf_from input[type=text]").length&&d.closest(".bapf_slidr_jqrui").find(".bapf_from input[type=text]").val(e[0]),d.closest(".bapf_slidr_jqrui").find(".bapf_to input[type=text]").length&&d.closest(".bapf_slidr_jqrui").find(".bapf_to input[type=text]").val(e[1])}),a(document).on("braapf_change_jqrui_slidr",".bapf_slidr_jqrui .bapf_slidr_main",function(b,c){var d=a(this),e=d.data("attr");if(d.closest(".bapf_slidr_jqrui").find(".bapf_from select").length||d.closest(".bapf_slidr_jqrui").find(".bapf_to select").length){var e=d.data("attr"),f=[],g=[],h=!1,i=!1;a.each(e,function(a,b){a==c[0]&&(i=!0),h||f.push({v:b.v,n:b.n,ov:a}),i&&g.push({v:b.v,n:b.n,ov:a}),a==c[1]&&(h=!0)})}d.closest(".bapf_slidr_jqrui").find(".bapf_from select").length&&(d.closest(".bapf_slidr_jqrui").find(".bapf_from select option").remove(),a.each(f,function(b,e){var f="";e.ov==c[0]&&(f=" selected"),d.closest(".bapf_slidr_jqrui").find(".bapf_from select").append(a('<option value="'+e.ov+'"'+f+">"+e.n+"</option>"))})),d.closest(".bapf_slidr_jqrui").find(".bapf_to select").length&&(d.closest(".bapf_slidr_jqrui").find(".bapf_to select option").remove(),a.each(g,function(b,e){var f="";e.ov==c[1]&&(f=" selected"),d.closest(".bapf_slidr_jqrui").find(".bapf_to select").append(a('<option value="'+e.ov+'"'+f+">"+e.n+"</option>"))}))}),braapf_init_jqrui_slidr=function(){braapf_init_jqrui_slidr_for_parent(a(document))},braapf_init_jqrui_slidr_for_parent=function(b){b.find(".bapf_slidr_jqrui:not(.bapf_slidr_ready)").each(function(){var b=a(this).find(".bapf_slidr_main"),c=berocket_apply_filters("jqrui_data_slidr_jqrui",{range:!0,min:b.data("min"),max:b.data("max"),values:[b.data("start"),b.data("end")],step:b.data("step"),create:function(b,c){var d=a(this).slider("values");a(this).trigger("braapf_change_jqrui_slidr",[d])},slide:function(b,c){a(this).trigger("braapf_change_jqrui_slidr",[c.values])},change:function(b,c){var d=a(this).slider("values");if(a(this).trigger("braapf_change_jqrui_slidr",[d]),!a(this).is(".bapf_jqrui_blocked")){var d=a(this).slider("values"),e=a(this).parents(".bapf_sfilter").data("taxonomy");braapf_jqrui_slidr_same(e,d);var f={element:"#"+a(this).closest(".bapf_sfilter").attr("id"),parent:0,find:".bapf_body"};berocket_apply_filters("filter_changed_element",f,a(this)),berocket_do_action("update_products","filter",a(this))}}},b);b.slider(c),a(this).addClass("bapf_slidr_ready")})},braapf_jqrui_slidr_same=function(b,c){a(".bapf_slidr_jqrui.bapf_slidr_ready[data-taxonomy="+b+"]").each(function(){var b=a(this).find(".bapf_slidr_main");b.addClass("bapf_jqrui_blocked"),b.slider("values",c),b.removeClass("bapf_jqrui_blocked")})},braapf_jqrui_slidr_values_wc_price=function(a,b){var c=b.data("number_style");return c||(c=the_ajax_script.number_style),a[0]=berocket_format_number(a[0],c),a[1]=berocket_format_number(a[1],c),a},braapf_grab_single_jqrui=function(a,b){if(b.is(".bapf_slidr_jqrui.bapf_slidr_ready")&&0!=a){var c=b.find(".bapf_slidr_main"),d=c.slider("values"),e=c.slider("values"),f="";b.find(".bapf_tbprice").length&&(f=b.find(".bapf_tbprice").first().text());var g="";if(b.find(".bapf_taprice").length&&(g=b.find(".bapf_taprice").first().text()),d[0]!=c.data("min")||d[1]!=c.data("max")){e=berocket_apply_filters("jqrui_slidr_"+c.data("display"),e,c),e[0]=f+e[0]+g,e[1]=f+e[1]+g;var h={value:d[0]+"_"+d[1],html:e[0]+" - "+e[1]};h=berocket_apply_filters("jqrui_slidr_link_"+c.data("display"),h,d,e,c,a),a.values=[h]}}return a},braapf_jqrui_slidr_values_arr_attr=function(a,b){var c=b.data("attr");return Array.isArray(a)&&2==a.length?(a[0]=c[a[0]].n,a[1]=c[a[1]].n):(a=["",""],a[0]=c[0].n,a[1]=c[c.length-1].n),a},braapf_jqrui_slidr_values_link_arr_attr=function(a,b,c,d,e){var f=d.data("attr");return a.value=f[b[0]].v+"_"+f[b[1]].v,a},a(document).on("braapf_unselect braapf_unselect_all",".bapf_slidr_jqrui",function(b,c){var d=a(this).find(".bapf_slidr_main"),e=d.data("min"),f=d.data("max");d.addClass("bapf_jqrui_blocked"),d.slider("values",[e,f]),d.removeClass("bapf_jqrui_blocked")}),berocket_add_filter("jqrui_slidr_wc_price",braapf_jqrui_slidr_values_wc_price),berocket_add_filter("jqrui_slidr_arr_attr",braapf_jqrui_slidr_values_arr_attr),berocket_add_filter("jqrui_slidr_link_arr_attr",braapf_jqrui_slidr_values_link_arr_attr),berocket_add_filter("grab_single_filter_default",braapf_grab_single_jqrui),berocket_add_filter("braapf_init",braapf_init_jqrui_slidr),berocket_add_filter("braapf_init_for_parent",braapf_init_jqrui_slidr_for_parent)}(jQuery);
assets/frontend/js/main.js CHANGED
@@ -906,7 +906,8 @@ berocket_custom_sidebar_open;
906
  berocket_add_filter('input_ckbox_changed', braapf_convert_ckbox_to_radio);
907
  //CHILD HIERARCHICAL
908
  $(document).on('click', '.bapf_ochild, .bapf_cchild', function(e) {
909
- e.preventDefault;
 
910
  if( $(this).is('.bapf_ochild' ) ) {
911
  $(this).trigger('bapf_ochild');
912
  } else {
@@ -915,13 +916,17 @@ berocket_custom_sidebar_open;
915
  });
916
  $(document).on('bapf_ochild', '.bapf_sfilter.bapf_ckbox ul li', function(e) {
917
  e.stopPropagation();
918
- $(this).find('.bapf_ochild, .bapf_cchild').first().removeClass('bapf_ochild').removeClass('fa-plus').addClass('bapf_cchild').addClass('fa-minus');
919
- $(this).find('ul').first().show();
 
 
920
  });
921
  $(document).on('bapf_cchild', '.bapf_sfilter.bapf_ckbox ul li', function(e) {
922
  e.stopPropagation();
923
- $(this).find('.bapf_ochild, .bapf_cchild').first().addClass('bapf_ochild').addClass('fa-plus').removeClass('bapf_cchild').removeClass('fa-minus');
924
- $(this).find('ul').first().hide();
 
 
925
  });
926
  var braapf_hierarhical_values = [];
927
  braapf_hierarhical_save = function(data) {
906
  berocket_add_filter('input_ckbox_changed', braapf_convert_ckbox_to_radio);
907
  //CHILD HIERARCHICAL
908
  $(document).on('click', '.bapf_ochild, .bapf_cchild', function(e) {
909
+ e.preventDefault();
910
+ e.stopPropagation();
911
  if( $(this).is('.bapf_ochild' ) ) {
912
  $(this).trigger('bapf_ochild');
913
  } else {
916
  });
917
  $(document).on('bapf_ochild', '.bapf_sfilter.bapf_ckbox ul li', function(e) {
918
  e.stopPropagation();
919
+ if( berocket_apply_filters('colaps_child_open_apply', true, $(this)) ) {
920
+ $(this).find('.bapf_ochild, .bapf_cchild').first().removeClass('bapf_ochild').removeClass('fa-plus').addClass('bapf_cchild').addClass('fa-minus');
921
+ $(this).find('ul').first().show();
922
+ }
923
  });
924
  $(document).on('bapf_cchild', '.bapf_sfilter.bapf_ckbox ul li', function(e) {
925
  e.stopPropagation();
926
+ if( berocket_apply_filters('colaps_child_close_apply', true, $(this)) ) {
927
+ $(this).find('.bapf_ochild, .bapf_cchild').first().addClass('bapf_ochild').addClass('fa-plus').removeClass('bapf_cchild').removeClass('fa-minus');
928
+ $(this).find('ul').first().hide();
929
+ }
930
  });
931
  var braapf_hierarhical_values = [];
932
  braapf_hierarhical_save = function(data) {
assets/frontend/js/main.min.js CHANGED
@@ -1,2 +1,2 @@
1
- function berocket_make_args_array(a){for(var b=[],c=0;c<a.length;c++)b.push(a[c]);return b}function berocket_apply_filters(a,b){if("undefined"!=typeof berocket_filters[a]){var c=berocket_make_args_array(arguments);c.splice(0,1),jQuery.each(berocket_filters[a],function(a,d){b=d.callback.apply(null,c),c[0]=b})}return b}function berocket_do_action(a){if("undefined"!=typeof berocket_filters[a]){var b=berocket_make_args_array(arguments);b.splice(0,1),jQuery.each(berocket_filters[a],function(a,c){c.callback.apply(null,b)})}}function berocket_throw_error(a){var b="berocket_throw_error";if(error_exist=!0,"undefined"!=typeof berocket_filters[b]){for(var c,d=[error_exist];c<arguments.length;c++)d.push(arguments[c]);jQuery.each(berocket_filters[b],function(a,b){if(error_exist=b.callback.apply(null,d),d[0]=error_exist,!error_exist)return!1})}return error_exist}function berocket_add_filter(a,b,c){"undefined"==typeof c&&(c=10),"undefined"==typeof berocket_filters[a]&&(berocket_filters[a]=[]);var d=!1;jQuery.each(berocket_filters[a],function(a,e){e.priority===c&&e.callback===b&&(d=!0)}),d||(berocket_filters[a].push({callback:b,priority:c}),berocket_filters[a]=berocket_sort_by_priority(berocket_filters[a]))}function berocket_remove_filter(a,b,c){if("undefined"==typeof c&&(c=10),"undefined"!=typeof berocket_filters[a]){var d=[];jQuery.each(berocket_filters[a],function(a,e){e.priority===c&&e.callback===b||d.push(e)}),berocket_filters[a]=berocket_sort_by_priority(d)}}function berocket_sort_by_priority(a){return Array.isArray(a)&&a.sort(function(a,b){return a.priority>b.priority?1:a.priority<b.priority?-1:0}),a}function berocket_format_number(a,b){"undefined"==typeof b&&(b=the_ajax_script.number_style);var c=a.toFixed(b[2]);c=c.toString();var d=c.split("."),e=d[0];return c.indexOf(".")!=-1&&(d=d[1]),e=e.replace(/\d(?=(?:\d{3})+(?:$))/g,function(a,c){return a+b[0]}),c.indexOf(".")!=-1&&(e=e+b[1]+d),e}function braapf_grab_all_init(){braapf_grab_all()}function braapf_selected_filters_area_set_init(){braapf_selected_filters_area_set()}function braapf_filtered_filters_set(){braapf_filtered_filters=braapf_selected_filters.slice(),berocket_do_action("braapf_init_filtered_set",braapf_filtered_filters)}var berocket_filters={};berocket_add_filter("compat_filters_result_single",function(a){return"object"==typeof a&&"string"==typeof a.taxonomy&&"pa_"==a.taxonomy.substr(0,3)&&(a.taxonomy=a.taxonomy.substr(3)),a});var braapf_filter_blocked=!1,braapf_selected_filters=[],braapf_filtered_filters=[],braapf_filters_var,braapf_ajax_request,braapf_checkbox_same,braapf_update_products,braapf_grab_all,braapf_grab_single,braapf_compact_filters,braapf_compat_filters_to_string,braapf_build_url_from_urldata,braapf_glue_by_operator,braapf_ajax_load_from_url,braapf_ajax_load_from_url_request,braapf_init_load,braapf_remove_pages_from_url_data,braapf_filter_products_by_url,braapf_get_current_url_data,braapf_reset_buttons_hide,bapf_universal_theme_compatibility,braapf_disable_ajax_loading,braapf_close_tippy;!function(a){function b(a){return berocket_remove_filter("ajax_load_from_url_beforeSend",b),a.setRequestHeader("X-Braapfdisable","1"),a}function c(a){return a.setRequestHeader("X-Braapf","1"),a}a(document).on("change",".bapf_sfilter.bapf_ckbox input[type=checkbox]",function(){var b=a(this).val(),c=a(this).parents(".bapf_sfilter").data("taxonomy"),d=a(this).prop("checked");braapf_checkbox_same(c,b,d),berocket_apply_filters("input_ckbox_changed",this,c,b,d);var e={element:"#"+a(this).attr("id"),parent:1,find:!1};berocket_apply_filters("filter_changed_element",e,a(this)),berocket_do_action("update_products","filter",a(this))}),braapf_checkbox_same=function(b,c,d){a('.bapf_sfilter[data-taxonomy="'+b+'"] input[value="'+c+'"]').prop("checked",d),a('.bapf_sfilter[data-taxonomy="'+b+'"]').length<a('.bapf_sfilter.bapf_ckbox[data-taxonomy="'+b+'"]').length&&berocket_throw_error("multiple_filters_for_same_taxonomy",b)},a(document).on("braapf_unselect",".bapf_ckbox",function(b,c){if("undefined"==typeof c&&(c=!1),0==c)var d=a(this).find("input[type=checkbox]");else var d=a(this).find('input[value="'+c.value+'"]');if(d.length>0){var e=d.val(),f=a(this).data("taxonomy");d.prop("checked",!1),braapf_checkbox_same(f,e,!1)}}),a(document).on("braapf_unselect_all",".bapf_ckbox",function(b,c){a(this).trigger("braapf_unselect",!1)}),a(document).on("click",".berocket_aapf_widget_update_button, .bapf_update",function(b){b.preventDefault(),berocket_do_action("update_products","update",a(this))}),a(document).on("click",".berocket_aapf_reset_button, .bapf_reset",function(b){b.preventDefault(),braapf_unselect_all(),berocket_do_action("update_products","reset_all",a(this))}),braapf_reset_buttons_hide=function(){berocket_apply_filters("bapf_rst_nofltr_hide","undefined"==typeof braapf_filtered_filters||braapf_filtered_filters.length<=0)?a(".bapf_rst_nofltr").hide():a(".bapf_rst_nofltr").show();var b=!1;"undefined"!=typeof braapf_filtered_filters&&braapf_filtered_filters.length>0&&a.each(braapf_filtered_filters,function(a,c){if(c.values.length>0)return b=!0,!1}),berocket_apply_filters("bapf_rst_sel_show",b)?a(".bapf_rst_sel").show():a(".bapf_rst_sel").hide()},berocket_add_filter("braapf_init",braapf_reset_buttons_hide,1500),berocket_add_filter("braapf_init_filtered_set",braapf_reset_buttons_hide,1500);var d=the_ajax_script.pagination_class;d=d.replace(","," a,"),d=berocket_apply_filters("pagination_links_a_tags",d+" a",the_ajax_script.pagination_class),!the_ajax_script.disable_ajax_loading&&the_ajax_script.woocommerce_removes.pagination_ajax&&a(document).on("click",d,function(c){c.preventDefault();var d=a(this).attr("href");d=berocket_apply_filters("pagination_href_from_clicked_a",decodeURI(d),a(this)),braapf_change_url_history_api(d,{replace:the_ajax_script.seo_friendly_urls}),berocket_add_filter("ajax_load_from_url_beforeSend",b),braapf_ajax_load_from_url(d,{},berocket_apply_filters("ajax_load_from_pagination",{done:[braapf_replace_products,braapf_replace_pagination,braapf_replace_result_count,braapf_init_load]},d))}),!the_ajax_script.disable_ajax_loading&&the_ajax_script.control_sorting&&a(document).on("submit",the_ajax_script.ordering_class,function(b){b.preventDefault();var c=braapf_get_current_url_data();if(c=braapf_remove_pages_from_url_data(c),Array.isArray(c.queryargs)){var d=[];a.each(c.queryargs,function(a,b){"orderby"!=b.name&&d.push(b)}),c.queryargs=d}else c.queryargs=[];var e=a(this).serializeArray();Array.isArray(e)&&a.each(e,function(a,b){"paged"==b.name?c.page=parseInt(b.value):"orderby"==b.name?the_ajax_script.default_sorting!=b.value&&c.queryargs.push(b):c.queryargs.push(b)});var f=braapf_build_url_from_urldata(c);braapf_filter_products_by_url(f)}),braapf_get_url_with_filters_selected=function(){braapf_grab_all();var a=braapf_compact_filters(),b=berocket_apply_filters("braapf_filters_mask",the_ajax_script.url_mask),c=braapf_compat_filters_to_string(a,b,the_ajax_script.url_split),d=braapf_get_current_url_data();d.filter=c,d=braapf_remove_pages_from_url_data(d);var e=braapf_build_url_from_urldata(d);return e},braapf_update_products=function(b,c){"undefined"==typeof b&&(b="filter"),"undefined"==typeof c&&(c=!1),b=berocket_apply_filters("before_update_products_context",b,c);var d=braapf_get_url_with_filters_selected();berocket_apply_filters("apply_filters_to_page",0==a(".berocket_aapf_widget_update_button:visible, .bapf_update:visible").length||"filter"!=b,b,c,d)?(braapf_selected_filters_area_set(),braapf_filter_products_by_url(d)):berocket_apply_filters("apply_filters_to_page_partial",!1,b,c,d)&&braapf_ajax_load_from_url(d,{},berocket_apply_filters("ajax_load_from_filters_partial",{done:[braapf_replace_each_filter,braapf_init_load]},d,"partial"),"partial")},braapf_filter_products_by_url=function(b){berocket_apply_filters("page_has_products_holder",!a(the_ajax_script.products_holder_id).length,b)?location.href=b:(braapf_change_url_history_api(b,{replace:the_ajax_script.seo_friendly_urls}),braapf_ajax_load_from_url(b,{},berocket_apply_filters("ajax_load_from_filters",{done:[braapf_replace_products,braapf_replace_pagination,braapf_replace_result_count,braapf_replace_orderby,braapf_replace_each_filter,braapf_init_load,braapf_filtered_filters_set,braapf_update_url_history_api_from_current]},b,"default")))},braapf_update_url_history_api_from_current=function(){the_ajax_script.seo_friendly_urls&&(url_filtered=braapf_get_url_with_filters_selected(),history.replaceState(history.state,"BeRocket Rules",url_filtered))},braapf_grab_all=function(b){"undefined"==typeof b&&(b=!1);var c=[];if(b===!1)var d=a(".bapf_sfilter");else var d=a(b).find(".bapf_sfilter");return d.each(function(){var a=braapf_grab_single(this,c);a!==!1&&c.push(a)}),c=berocket_apply_filters("grab_all_filters",c,b),b===!1&&(braapf_selected_filters=c),c},braapf_grab_single=function(b,c,d){"undefined"==typeof d&&(d=!1),b=a(b);var e=!1,f=!1,g=b.data("taxonomy");if("undefined"==typeof g||!g)return berocket_apply_filters("grab_single_filter_taxonomy_undefined",e,b,c);if(a.each(c,function(a,b){b.taxonomy==g&&(f=!0)}),!berocket_apply_filters("grab_single_filter_exist",f,b,c)){if(e=berocket_apply_filters("grab_single_filter",e,b,c),e!==!1)return e;var h=b.data("op"),i=b.data("name");"undefined"==typeof i&&(i="");var j=braapf_glue_by_operator(h),k=[],l=[];if(d)var m=b;else var m=a(".bapf_sfilter[data-taxonomy="+g+"]");m.find("input:checked:not(:disabled)").each(function(b,c){l.indexOf(a(this).val())==-1&&(k.push({value:a(this).val(),html:a(this).data("name")}),l.push(a(this).val()))}),e={name:i,taxonomy:g,values:k,glue:j,operator:h}}return berocket_apply_filters("grab_single_filter_default",e,b,c)},braapf_glue_by_operator=function(a){"string"!=typeof a&&(a="");var b="-";return"and"==a.toLowerCase()&&(b="+"),berocket_apply_filters("glue_by_operator",b,a)},braapf_compact_filters=function(b){"undefined"==typeof b&&(b=braapf_selected_filters);var c=[];return a.each(b,function(b,d){var e="";"undefined"!=typeof d.customValuesLine?e=d.customValuesLine:a.each(d.values,function(a,b){e.length&&(e+=d.glue),e+=b.value}),e.length&&c.push(berocket_apply_filters("compat_filters_result_single",{taxonomy:d.taxonomy,values:e},d))}),berocket_apply_filters("compat_filters_result",c,b)},braapf_compat_filters_to_string=function(b,c,d){var e="";return a.each(b,function(a,f){e.length&&(e+=d);var g=c;g=g.replace("%t%",f.taxonomy),g=g.replace("%v%",f.values),e+=berocket_apply_filters("compat_filters_to_string_single",g,f,b,c,d)}),berocket_apply_filters("compat_filters_to_string",e,b,c,d)},braapf_get_current_url_data=function(b){if("undefined"==typeof b)var c=location.href.split("#")[0].split("?")[0],d=location.search.substring(1);else{var c=b.split("#")[0].split("?")[0];if(b.split("#")[0].split("?").length>1)var d=b.split("#")[0].split("?")[1];else var d=""}var e=[],f=1,g=c.match(/\/page\/(\d+)/);return g&&"string"==typeof g[1]&&(f=parseInt(g[1]),c=c.replace(/\/page\/(\d+)/,"")),d=d.split("&"),a.each(d,function(a,b){b.length&&(d[a]=b.split("="),"paged"==d[a][0]?f=parseInt(d[a][1]):e.push({name:d[a][0],value:d[a][1]}))}),berocket_apply_filters("get_current_url_data",{baselink:c,queryargs:e,filter:"",page:f})},braapf_remove_pages_from_url_data=function(b){if(b.page=1,Array.isArray(b.queryargs)){var c=[];a.each(b.queryargs,function(a,b){"product-page"!=b.name&&c.push(b)}),b.queryargs=c}return b},braapf_build_url_from_urldata=function(b,c){"undefined"==typeof c&&(c=braapf_build_url_parameters_default());var d=berocket_apply_filters("url_from_urldata_baselink",b.baselink,b,c),e="";return b.queryargs.length&&a.each(b.queryargs,function(a,b){e.length&&(e+="&"),b.name.length&&(e+=b.name+"="+b.value)}),b.page&&b.page>1&&(e.length&&(e+="&"),e+="paged="+b.page),e.length&&(e="?"+e),d=berocket_apply_filters("url_from_urldata_linkget",d+e,b,c,d,e)},braapf_build_url_parameters_default=function(){return berocket_apply_filters("build_url_parameters_default",{})},braapf_replace_current_with_new=function(b,c,d){"undefined"==typeof d&&(d={}),args={replace:!1},jQuery.extend(args,d);var e=a("<div><div>"+b+"</div></div>"),f=e.find(c),g=a(c);0!=g.length&&(f.length!=g.length&&0!=f.length&&berocket_throw_error("error_notsame_block_qty",c,f.length,g.length),0==f.length?(g.html("").addClass("braapfNotReplaced"),g.hide()):(g.each(function(b,c){"undefined"!=typeof f[b]?args.replace?a(c).replaceWith(a(f[b])):a(c).html(a(f[b]).html()).removeClass("braapfNotReplaced"):a(c).html("").addClass("braapfNotReplaced")}),g.show()))},braapf_replace_products=function(b){var c=the_ajax_script.products_holder_id;a("<div><div>"+b+"</div></div>");a(".bapf_no_products").remove(),braapf_replace_current_with_new(b,c),a(".braapfNotReplaced").filter(c).length&&a(".braapfNotReplaced").filter(c).before(a(the_ajax_script.no_products))},braapf_replace_pagination=function(b){var c=the_ajax_script.pagination_class;if(0==a(c).length){var d=the_ajax_script.products_holder_id,e=a("<div><div>"+b+"</div></div>"),f=e.find(c).last();f.length&&a(d).last().after(f)}else braapf_replace_current_with_new(b,c)},braapf_replace_result_count=function(a){var b=the_ajax_script.result_count_class;braapf_replace_current_with_new(a,b)},braapf_replace_orderby=function(a){var b=the_ajax_script.ordering_class;braapf_replace_current_with_new(a,b)},braapf_replace_each_filter=function(b){var c=a("<div><div>"+b+"</div></div>");a(".berocket_single_filter_widget").each(function(){var b=a(this).data("id");a(".berocket_single_filter_widget_"+b).html(c.find(".berocket_single_filter_widget_"+b).last().html()),c.find(".berocket_single_filter_widget_"+b).is(".bapf_mt_none")?a(".berocket_single_filter_widget_"+b).addClass("bapf_mt_none"):a(".berocket_single_filter_widget_"+b).removeClass("bapf_mt_none")})},braapf_change_url_history_api=function(a,b){if("undefined"!=typeof b&&b.replace){var c={BeRocket:"Rules"};history.replaceState(c,""),history.pushState(c,"",a),history.pathname=a}},berocket_apply_filters("load_products_ajax_on_popstate",!0)&&(window.onpopstate=function(b){if(null!=b.state&&"Rules"==b.state.BeRocket){var c=location.href;berocket_apply_filters("page_has_products_holder",!a(the_ajax_script.products_holder_id).length,c)?location.href=c:braapf_ajax_load_from_url(c,{},berocket_apply_filters("ajax_load_from_filters",{done:[braapf_replace_products,braapf_replace_pagination,braapf_replace_result_count,braapf_replace_orderby,braapf_replace_each_filter,braapf_init_load,braapf_filtered_filters_set,braapf_update_url_history_api_from_current]},c,"default"))}}),braapf_ajax_load_from_url=function(a,b,c,d){"undefined"==typeof d&&(d="default"),"object"!=typeof b&&(b={}),"object"!=typeof c&&(c={done:[],fail:[],always:[]}),"undefined"!=typeof c.done&&Array.isArray(c.done)||(c.done=[]),"undefined"!=typeof c.fail&&Array.isArray(c.fail)||(c.fail=[]),"undefined"!=typeof c.always&&Array.isArray(c.always)||(c.always=[]),a=berocket_apply_filters("ajax_load_from_url_url",a,b,c,d),b=berocket_apply_filters("ajax_load_from_url_data",b,a,c,d),c=berocket_apply_filters("ajax_load_from_url_callback",c,a,b,d),braapf_ajax_load_from_url_request(a,b,c,d)},braapf_ajax_load_from_url_request=function(b,c,d,e){a(document).trigger("berocket_ajax_filtering_start"),"object"==typeof braapf_ajax_request&&"undefined"!=typeof braapf_ajax_request.abort&&braapf_ajax_request.abort(),braapf_ajax_request=a.ajax({method:"GET",url:b,data:c,beforeSend:function(a){a=berocket_apply_filters("ajax_load_from_url_beforeSend",a,b,c,d,e)}}).done(function(f,g,h){a(document).trigger("berocket_ajax_filtering_on_update"),f=berocket_apply_filters("ajax_load_from_url_done",f,b,c,d,e),a.each(d.done,function(a,b){b(f,g,h)}),f=berocket_apply_filters("ajax_load_from_url_done_after",f,b,c,d,e),a(document).trigger("berocket_ajax_products_loaded")}).fail(function(f,g,h){if("abort"==g)return!1;if(a(document).trigger("berocket_ajax_products_not_loaded"),f=berocket_apply_filters("ajax_load_from_url_fail",f,b,c,d,e),a.each(d.fail,function(a,b){b(f,g,h)}),f=berocket_apply_filters("ajax_load_from_url_fail_after",f,b,c,d,e),"default"==e){var i=jQuery.param(c);i&&(b=b.split("?").length>1?b+"&"+i:b+"?"+i),location.href=b}}).always(function(f,g,h){f=berocket_apply_filters("ajax_load_from_url_always",f,b,c,d,e),a.each(d.always,function(a,b){b(f,g,h)}),f=berocket_apply_filters("ajax_load_from_url_always_after",f,b,c,d,e),a(document).trigger("berocket_ajax_filtering_end")})},braapf_init_load=function(){var b=berocket_apply_filters("filter_mobile_width",767),c=berocket_apply_filters("filter_tablet_width",1024);a(window).width()<=b&&a(".bapf_sngl_hd_mobile").remove(),a(window).width()>b&&a(window).width()<=c&&a(".bapf_sngl_hd_tablet").remove(),a(window).width()>c&&a(".bapf_sngl_hd_desktop").remove(),a(".bapf_sfilter .bapf_body.bapf_mcs:not(.bapf_mcs_ready)").each(function(){a(this).css("max-height",a(this).data("mcs-h")).mCustomScrollbar({scrollInertia:300}).addClass("bapf_mcs_ready")}),a(".berocket_single_filter_widget").each(function(){var b=a(this).data("id");berocket_apply_filters("remove_same_filters_to_prevent_errors",a(".berocket_single_filter_widget_"+b).length>1,a(this),b)&&a(".berocket_single_filter_widget_"+b).not(a(".berocket_single_filter_widget_"+b).first()).remove()}),a("body").on("click",".bapf_desci",function(a){a.stopPropagation()}),a("body").on("hover",".bapf_desci",function(a){a.stopPropagation()}),berocket_do_action("braapf_init",braapf_selected_filters),a(document).trigger("berocket_filters_first_load")},braapf_update_page_on_error=function(){berocket_apply_filters("update_page_on_error",!0)&&location.reload()},braapf_selected_filters_area_set=function(){if("undefined"!=typeof braapf_filtered_filters&&braapf_filtered_filters.length>0){var b="";a.each(braapf_filtered_filters,function(c,d){if(d.values.length>0){var e='<div class="bapf_sfa_taxonomy"><span>'+d.name+"</span>";e+="<ul>";var f="";a.each(d.values,function(a,b){f+=berocket_apply_filters("default_selected_filters_area_single",'<li><a href="#unselect_'+b.value+'" class="braapf_unselect" data-taxonomy="'+d.taxonomy+'" data-value="'+b.value+'"><i class="fa fa-times"></i>'+b.html+"</a></li>",b)}),e+=f,e+="</ul></div>",b+=berocket_apply_filters("default_selected_filters_area_single_taxonomy",e,d,f)}}),b?(a(".bapf_sfa_mt_hide").show().parent().removeClass("bapf_mt_none"),b=berocket_apply_filters("default_selected_filters_area_full_exist",'<div class="berocket_aapf_widget_selected_filter">'+b+'<ul class="bapf_sfa_unall"><li><a href="#Unselect_all" class="braapf_unselect_all"><i class="fa fa-times"></i> '+the_ajax_script.translate.unselect_all+"</a></li></ul>",b,braapf_filtered_filters)):(b=berocket_apply_filters("default_selected_filters_area_full_notexist",the_ajax_script.translate.nothing_selected,b,braapf_filtered_filters),a(".bapf_sfa_mt_hide").hide().parent().addClass("bapf_mt_none")),a(".berocket_aapf_widget_selected_area").html(b)}},a(document).on("click",".berocket_aapf_widget_selected_area .braapf_unselect",function(b){b.preventDefault(),a(".bapf_sfilter[data-taxonomy="+a(this).data("taxonomy")+"]").trigger("braapf_unselect",a(this).data()),berocket_do_action("update_products","reset_single",a(this))}),braapf_unselect_all=function(){braapf_grab_all(),"undefined"!=typeof braapf_selected_filters&&braapf_selected_filters.length>0&&a.each(braapf_selected_filters,function(b,c){c.values.length>0&&a(".bapf_sfilter[data-taxonomy="+c.taxonomy+"]").trigger("braapf_unselect_all",c)})},a(document).on("click",".berocket_aapf_widget_selected_area .braapf_unselect_all",function(b){b.preventDefault(),braapf_unselect_all(),berocket_do_action("update_products","reset_all",a(this))}),berocket_add_filter("braapf_init",braapf_grab_all_init,1e3),berocket_add_filter("braapf_init",braapf_selected_filters_area_set_init,1100),berocket_add_filter("braapf_init_filtered_set",braapf_selected_filters_area_set_init,1100),braapf_reload_page_for_products_error=function(a,b){return b==the_ajax_script.products_holder_id&&braapf_update_page_on_error(),a},berocket_add_filter("ajax_load_from_url_beforeSend",c),berocket_add_filter("update_products",braapf_update_products),berocket_add_filter("error_notsame_block_qty",braapf_reload_page_for_products_error),bapf_universal_theme_compatibility=function(b){if(berocket_apply_filters("universal_theme_compatibility",!0)){a(window).trigger("resize");try{berocket_apply_filters("uncode_theme_compatibility","object"==typeof UNCODE&&"function"==typeof UNCODE.init)&&UNCODE.init()}catch(a){berocket_throw_error("uncode_theme_compatibility",a)}try{berocket_apply_filters("flatsome_theme_compatibility","object"==typeof Flatsome&&"function"==typeof Flatsome.attach&&jQuery(the_ajax_script.products_holder_id).length)&&Flatsome.attach(jQuery(the_ajax_script.products_holder_id))}catch(a){berocket_throw_error("flatsome_theme_compatibility",a)}try{berocket_apply_filters("woodmart_theme_compatibility","object"==typeof woodmartThemeModule&&"function"==typeof woodmartThemeModule.init)&&(woodmartThemeModule.wooInit(),woodmartThemeModule.lazyLoading(),woodmartThemeModule.productsLoadMore())}catch(a){berocket_throw_error("woodmart_theme_compatibility",a)}try{berocket_apply_filters("divi_theme_compatibility","function"==typeof et_reinit_waypoint_modules)&&et_reinit_waypoint_modules()}catch(a){berocket_throw_error("divi_theme_compatibility",a)}try{berocket_apply_filters("rey_theme_compatibility","object"==typeof jQuery.reyTheme&&"function"==typeof jQuery.reyTheme.init)&&jQuery.reyTheme.init()}catch(a){berocket_throw_error("rey_theme_compatibility",a)}try{berocket_apply_filters("layzyloadimage_script_compatibility","function"==typeof layzyLoadImage)&&layzyLoadImage()}catch(a){berocket_throw_error("layzyloadimage_script_compatibility",a)}try{berocket_apply_filters("jetpacklazyimages_script_compatibility","function"==typeof jetpackLazyImagesModule)&&jetpackLazyImagesModule()}catch(a){berocket_throw_error("jetpacklazyimages_script_compatibility",a)}}return b},berocket_add_filter("ajax_load_from_url_always_after",bapf_universal_theme_compatibility,2500),a(document).ready(function(){berocket_apply_filters("remove_shortcode_fix_filters",a(".berocket_wc_shortcode_fix").length)&&(braapf_replace_each_filter(a(".berocket_wc_shortcode_fix").html()),a(".berocket_wc_shortcode_fix").html("")),braapf_init_load(),braapf_filtered_filters_set(),a(document).trigger("berocket_filters_document_ready")}),braapf_disable_ajax_loading=function(a){return!0},the_ajax_script.disable_ajax_loading&&berocket_add_filter("page_has_products_holder",braapf_disable_ajax_loading),braapf_close_tippy=function(){try{a(".tippy-box").length&&a(".tippy-box").each(function(){"undefined"!=typeof a(this).parent()[0]._tippy&&a(this).parent()[0]._tippy.hide()})}catch(a){}},berocket_add_filter("update_products",braapf_close_tippy)}(jQuery);var braapf_get_current_filters,braapf_filters_url_decode,braapf_scroll_shop_to_top,braapf_set_filters_to_link,braapf_convert_ckbox_to_radio,braapf_hierarhical_save,braapf_hierarhical_set,braapf_collapse_status_save,braapf_collapse_status_set,braapf_show_hide_values_save,braapf_show_hide_values_set,berocket_custom_sidebar_close,berocket_custom_sidebar_open;!function(a){function b(){jQuery(".berocket_product_table_compat .dataTables_length select").length&&jQuery(".berocket_product_table_compat .wc-product-table").dataTable()._fnSaveState();var a=jQuery(".berocket_product_table_compat .wc-product-table").attr("id");if("undefined"!=typeof window["config_"+a]&&window["config_"+a].serverSide){jQuery(".berocket_product_table_compat .wc-product-table").DataTable().destroy();var b=jQuery(".berocket_product_table_compat").html();jQuery(".berocket_product_table_compat").html(""),jQuery(".berocket_product_table_compat").html(b),jQuery(".berocket_product_table_compat .blockUI.blockOverlay").remove(),jQuery(".berocket_product_table_compat .wc-product-table").productTable()}}braapf_get_current_filters=function(b){if(b.queryargs.length){var c=[];a.each(b.queryargs,function(a,d){d.name==the_ajax_script.url_variable?b.filter=d.value:c.push(d)}),b.queryargs=c}return b},braapf_set_filters_to_link=function(a,b,c,d,e){return"string"==typeof b.filter&&b.filter.length&&(a+=e.length?"&":"?",a+=the_ajax_script.url_variable+"="+b.filter),a},braapf_convert_ckbox_to_radio=function(b,c,d,e){var f=(a(b),a(b).closest(".bapf_sfilter.bapf_ckbox"));f.is(".bapf_asradio")&&f.find("input[type=checkbox]:checked:not(:disabled)").each(function(){var b=a(this).val();b!=d&&braapf_checkbox_same(c,b,!1)})},berocket_add_filter("input_ckbox_changed",braapf_convert_ckbox_to_radio),a(document).on("click",".bapf_ochild, .bapf_cchild",function(b){b.preventDefault,a(this).is(".bapf_ochild")?a(this).trigger("bapf_ochild"):a(this).trigger("bapf_cchild")}),a(document).on("bapf_ochild",".bapf_sfilter.bapf_ckbox ul li",function(b){b.stopPropagation(),a(this).find(".bapf_ochild, .bapf_cchild").first().removeClass("bapf_ochild").removeClass("fa-plus").addClass("bapf_cchild").addClass("fa-minus"),a(this).find("ul").first().show()}),a(document).on("bapf_cchild",".bapf_sfilter.bapf_ckbox ul li",function(b){b.stopPropagation(),a(this).find(".bapf_ochild, .bapf_cchild").first().addClass("bapf_ochild").addClass("fa-plus").removeClass("bapf_cchild").removeClass("fa-minus"),a(this).find("ul").first().hide()});var c=[];braapf_hierarhical_save=function(b){return c=[],a(".bapf_cchild").each(function(){c.push(a(this).parent().children("input[type=checkbox]").attr("id"))}),b},braapf_hierarhical_set=function(b){return a.each(c,function(b,c){a("#"+c).trigger("bapf_ochild")}),b},berocket_add_filter("ajax_load_from_url_done",braapf_hierarhical_save,1),berocket_add_filter("ajax_load_from_url_done_after",braapf_hierarhical_set,1e3),a(document).on("click",".bapf_ocolaps .bapf_colaps_togl, .bapf_ccolaps .bapf_colaps_togl",function(b){b.preventDefault,a(this).closest(".bapf_ocolaps, .bapf_ccolaps").is(".bapf_ocolaps")?a(this).closest(".bapf_ocolaps, .bapf_ccolaps").trigger("bapf_ocolaps"):a(this).closest(".bapf_ocolaps, .bapf_ccolaps").trigger("bapf_ccolaps")}),a(document).on("bapf_ocolaps",".bapf_sfilter.bapf_ocolaps, .bapf_sfilter.bapf_ccolaps",function(b){a(this).removeClass("bapf_ocolaps").addClass("bapf_ccolaps"),berocket_apply_filters("colaps_smb_open_apply",!0,a(this))&&(a(this).find(".bapf_body").first().show(),a(this).find(".bapf_colaps_smb").length&&a(this).find(".bapf_colaps_smb").removeClass("fa-chevron-down").addClass("fa-chevron-up"))}),a(document).on("bapf_ccolaps",".bapf_sfilter.bapf_ocolaps, .bapf_sfilter.bapf_ccolaps",function(b){a(this).addClass("bapf_ocolaps").removeClass("bapf_ccolaps"),berocket_apply_filters("colaps_smb_close_apply",!0,a(this))&&(a(this).find(".bapf_body").first().hide(),a(this).find(".bapf_colaps_smb").length&&a(this).find(".bapf_colaps_smb").addClass("fa-chevron-down").removeClass("fa-chevron-up"))});var d={open:[],close:[]};braapf_collapse_status_save=function(b){return d={open:[],close:[]},a(".bapf_ocolaps, .bapf_ccolaps").each(function(){a(this).is(".bapf_ocolaps")?d.open.push(a(this).attr("id")):d.close.push(a(this).attr("id"))}),b},braapf_collapse_status_set=function(b){return a.each(d.open,function(b,c){a("#"+c).trigger("bapf_ccolaps")}),a.each(d.close,function(b,c){a("#"+c).trigger("bapf_ocolaps")}),b},berocket_add_filter("ajax_load_from_url_done",braapf_collapse_status_save,1),berocket_add_filter("ajax_load_from_url_done_after",braapf_collapse_status_set,1e3),a(document).on("click",".bapf_show_hide",function(){a(this).closest(".bapf_sfilter").toggleClass("bapf_fhide"),a(this).closest(".bapf_sfilter").is(".bapf_fhide")?a(this).text(a(this).data("show")):a(this).text(a(this).data("hide"))});var e={open:[],close:[]};braapf_show_hide_values_save=function(b){return e={open:[],close:[]},a(".bapf_sfilter").each(function(){a(this).is(".bapf_fhide")?e.close.push(a(this).attr("id")):e.open.push(a(this).attr("id"))}),b},braapf_show_hide_values_set=function(b){return a.each(e.open,function(b,c){a("#"+c).removeClass("bapf_fhide"),a("#"+c).find(".bapf_show_hide").text(a("#"+c).find(".bapf_show_hide").data("hide"))}),a.each(e.close,function(b,c){a("#"+c).addClass("bapf_fhide"),a("#"+c).find(".bapf_show_hide").text(a("#"+c).find(".bapf_show_hide").data("show"))}),b},berocket_add_filter("ajax_load_from_url_done",braapf_show_hide_values_save,1),berocket_add_filter("ajax_load_from_url_done_after",braapf_show_hide_values_set,1e3),braapf_scroll_shop_to_top=function(b,c,d,e,f){var g=berocket_apply_filters("filter_mobile_width",767);if(berocket_apply_filters("scroll_shop_to_top","default"==f&&(1==the_ajax_script.scroll_shop_top||2==the_ajax_script.scroll_shop_top&&a(window).width()<g||3==the_ajax_script.scroll_shop_top&&a(window).width()>=g))){var h=0;a(the_ajax_script.products_holder_id).length?(h=a(the_ajax_script.products_holder_id).offset().top+parseInt(the_ajax_script.scroll_shop_top_px),h<0&&(h=0)):a(".bapf_no_products").length&&(h=a(".bapf_no_products").offset().top+parseInt(the_ajax_script.scroll_shop_top_px),h<0&&(h=0)),a("html, body").animate({scrollTop:h},"slow")}return b},berocket_add_filter("ajax_load_from_url_beforeSend",braapf_scroll_shop_to_top),a(document).on("mousedown",".wc-product-table-reset a",function(){a(this).remove(),br_reset_all_filters()}),a(document).on("click",".berocket_element_above_products_is_hide_toggle",function(b){b.preventDefault(),a(this).toggleClass("active").next().slideToggle(200,"linear");var c="inactive";a(this).is(".active")&&(c="active"),a(document).trigger("berocket_element_above_products_"+c)}),berocket_custom_sidebar_close=function(){a(".berocket_ajax_filters_sidebar_toggle").removeClass("active"),a("#berocket-ajax-filters-sidebar").removeClass("active"),a("body").removeClass("berocket_ajax_filters_sidebar_active")},berocket_custom_sidebar_open=function(){a(".berocket_ajax_filters_sidebar_toggle").addClass("active"),a("#berocket-ajax-filters-sidebar").addClass("active"),a("body").addClass("berocket_ajax_filters_sidebar_active")},a(document).on("berocket_custom_sidebar_close",berocket_custom_sidebar_close),a(document).on("berocket_custom_sidebar_open",berocket_custom_sidebar_open),a(document).on("click",".berocket_ajax_filters_sidebar_toggle",function(b){b.preventDefault(),a(this).is(".active")&&a("#berocket-ajax-filters-sidebar").is(".active")?berocket_custom_sidebar_close():berocket_custom_sidebar_open()}),a(document).on("click","#berocket-ajax-filters-sidebar-shadow, #berocket-ajax-filters-sidebar-close",function(a){a.preventDefault(),berocket_custom_sidebar_close()}),a(document).on("berocket_ajax_filtering_start",function(){jQuery(".berocket_product_table_compat").length&&b()}),braapf_filters_url_decode=function(a){return the_ajax_script.seo_uri_decode&&(a=encodeURIComponent(a),the_ajax_script.nice_urls&&(a=a.replace(/%2F/g,"/"))),a}}(jQuery),berocket_add_filter("get_current_url_data",braapf_get_current_filters),berocket_add_filter("compat_filters_to_string",braapf_filters_url_decode,900),berocket_add_filter("url_from_urldata_linkget",braapf_set_filters_to_link);var braapf_child_parent_grab_single,braapf_child_parent_fix_selected,braapf_child_parent_load_with_update_button,braapf_add_loader_element,braapf_remove_loader_element;!function(a){braapf_child_parent_grab_single=function(b,c,d){var e=c.data("child");if("undefined"!=typeof e&&e>0&&"object"==typeof b&&"undefined"!=typeof b.values&&Array.isArray(b.values)&&b.values.length>0){e++;var f=c.data("taxonomy"),g=a(".bapf_sfilter.bapf_child_"+e+"[data-taxonomy="+f+"]");if(g.length){var h=braapf_grab_single(g,[],!0);"object"==typeof h&&"undefined"!=typeof h.values&&Array.isArray(h.values)&&h.values.length>0&&(b=h)}}return b},braapf_child_parent_fix_selected=function(b,c){if(0!=c){var d=c.closest(".bapf_sfilter");if(d.length){var e=d.data("child"),f=d.data("taxonomy");if("undefined"!=typeof e&&e>0)for(i=e+1;a(".bapf_sfilter.bapf_child_"+i+"[data-taxonomy="+f+"]").length;i++)a(".bapf_sfilter.bapf_child_"+i+"[data-taxonomy="+f+"]").trigger("braapf_unselect",!1)}}return b},braapf_child_parent_load_with_update_button=function(a,b,c){
2
- if(0!=c){var d=c.closest(".bapf_sfilter");if(d.length){var e=d.data("child");d.data("taxonomy");"undefined"!=typeof e&&e>0&&(a=!0)}}return a},berocket_add_filter("grab_single_filter_default",braapf_child_parent_grab_single),berocket_add_filter("before_update_products_context",braapf_child_parent_fix_selected),berocket_add_filter("apply_filters_to_page_partial",braapf_child_parent_load_with_update_button);var b;braapf_add_loader_element=function(c,d,e,f,g){return"default"==g&&("undefined"!=typeof b&&"function"==typeof b.remove&&b.remove(),b=a(the_ajax_script.load_image),a("body").append(b)),c},braapf_remove_loader_element=function(a){return"undefined"!=typeof b&&"function"==typeof b.remove&&b.remove(),a},berocket_add_filter("ajax_load_from_url_beforeSend",braapf_add_loader_element),berocket_add_filter("ajax_load_from_url_always_after",braapf_remove_loader_element),a(document).on("click",".bapf_sfilter.bapf_ckbox .bapf_body li label a",function(b){b.preventDefault(),a(this).parent().trigger("click")})}(jQuery);var braapf_init_ion_slidr,braapf_ion_slidr_same,braapf_jqrui_slidr_ion_value_wc_price,braapf_jqrui_slidr_ion_value_arr_attr,braapf_init_ion_slidr_for_parent,braapf_grab_single_ion,braapf_jqrui_slidr_ion_values_link_arr_attr;!function(a){braapf_init_ion_slidr=function(){braapf_init_ion_slidr_for_parent(a(document))},braapf_init_ion_slidr_for_parent=function(b){b.find(".bapf_slidr_ion:not(.bapf_slidr_ready)").each(function(){var b=a(this).find(".bapf_slidr_all .bapf_slidr_main"),c=function(a){if(!b.is(".bapf_ion_blocked")){b.addClass("bapf_ion_blocked");var c=b.closest(".bapf_sfilter").data("taxonomy");braapf_ion_slidr_same(c,a);var d={element:"#"+b.closest(".bapf_sfilter").attr("id"),parent:0,find:".bapf_body"};berocket_apply_filters("filter_changed_element",d,b),berocket_do_action("update_products","filter",b),b.removeClass("bapf_ion_blocked")}},d=berocket_apply_filters("jqrui_data_slidr_ion",{type:"double",from:b.data("start"),to:b.data("end"),grid:!1,force_edges:!0,onFinish:c,onUpdate:c,prettify:function(a){return a=berocket_apply_filters("jqrui_slidr_ion_"+b.data("display"),a,b)}},b);b.ionRangeSlider(d),a(this).addClass("bapf_slidr_ready")})},braapf_ion_slidr_same=function(b,c){a(".bapf_slidr_ion.bapf_slidr_ready[data-taxonomy="+b+"]").each(function(){var b=a(this).find(".bapf_slidr_main");b.addClass("bapf_ion_blocked");var d=b.data("ionRangeSlider");d.update({from:c.from,to:c.to}),b.removeClass("bapf_ion_blocked")})},braapf_jqrui_slidr_ion_value_wc_price=function(a,b){var c=b.data("number_style");return c||(c=the_ajax_script.number_style),a=berocket_format_number(parseFloat(a),c)},braapf_jqrui_slidr_ion_value_arr_attr=function(a,b){var c=b.data("attr");return a=c[a].n},braapf_grab_single_ion=function(a,b){if(b.is(".bapf_slidr_ion.bapf_slidr_ready")&&0!=a){var c=b.find(".bapf_slidr_main").data("ionRangeSlider"),d=b.find(".bapf_slidr_main"),e=[c.options.from,c.options.to],f=[berocket_apply_filters("jqrui_slidr_ion_"+d.data("display"),c.options.from,d),berocket_apply_filters("jqrui_slidr_ion_"+d.data("display"),c.options.to,d)],g=d.data("prefix");"undefined"==typeof g&&(g="");var h=d.data("postfix");if("undefined"==typeof h&&(h=""),f[0]=g+f[0]+h,f[1]=g+f[1]+h,e[0]!=d.data("min")||e[1]!=d.data("max")){var i={value:e[0]+"_"+e[1],html:f[0]+" - "+f[1]};i=berocket_apply_filters("jqrui_slidr_ion_link_"+d.data("display"),i,e,f,d,a),a.values=[i]}}return a},braapf_jqrui_slidr_ion_values_link_arr_attr=function(a,b,c,d,e){var f=d.data("attr");return a.value=f[b[0]].v+"_"+f[b[1]].v,a},a(document).on("braapf_unselect braapf_unselect_all",".bapf_slidr_ion",function(b,c){var d=a(this).find(".bapf_slidr_main"),e=d.data("ionRangeSlider");d.addClass("bapf_ion_blocked"),e.update({from:e.options.min,to:e.options.max}),d.removeClass("bapf_ion_blocked")}),berocket_add_filter("braapf_init",braapf_init_ion_slidr),berocket_add_filter("braapf_init_for_parent",braapf_init_ion_slidr_for_parent),berocket_add_filter("grab_single_filter_default",braapf_grab_single_ion),berocket_add_filter("jqrui_slidr_ion_link_arr_attr",braapf_jqrui_slidr_ion_values_link_arr_attr),berocket_add_filter("jqrui_slidr_ion_wc_price",braapf_jqrui_slidr_ion_value_wc_price),berocket_add_filter("jqrui_slidr_ion_arr_attr",braapf_jqrui_slidr_ion_value_arr_attr)}(jQuery);var braapf_grab_single_select;!function(a){a(document).on("change",".bapf_slct .bapf_body select",function(){var b={element:"#"+a(this).closest(".bapf_sfilter").attr("id"),parent:0,find:".bapf_body"};berocket_apply_filters("filter_changed_element",b,a(this)),berocket_do_action("update_products","filter",a(this))}),braapf_grab_single_select=function(b,c){if(c.is(".bapf_slct")&&0!=b){var d=c.find(".bapf_body select:not(:disabled)");d.find("option:selected:not(:disabled)").each(function(){var c=a(this).val();c&&b.values.push({value:c,html:a(this).data("name")})})}return b},a(document).on("braapf_unselect braapf_unselect_all",".bapf_slct",function(b,c){a(this).find(".bapf_body select:not(:disabled) option:selected:not(:disabled)").each(function(){"undefined"!=typeof c.value&&c.value!=a(this).val()||a(this).prop("selected",!1)})}),berocket_add_filter("grab_single_filter_default",braapf_grab_single_select)}(jQuery);var bapf_select2_init,bapf_select2_init_for_parent,bapf_select2_disable_for_parent;jQuery(document).ready(function(){bapf_select2_init=function(){bapf_select2_init_for_parent(jQuery(document))},bapf_select2_init_for_parent=function(a){a.find(".bapf_select2").length&&"undefined"!=typeof a.find(".bapf_select2").select2&&a.find(".bapf_select2").each(function(){if(!jQuery(this).data("select2")){var a={width:"100%",theme:"default"};jQuery(this).prop("multiple")&&(a.placeholder=jQuery(this).data("placeholder")),jQuery(this).parents("#berocket-ajax-filters-sidebar").length&&(0==jQuery("#bapf-select2-high-zindex").length&&jQuery("body").append('<div id="bapf-select2-high-zindex"></div>'),a.dropdownParent=jQuery("#bapf-select2-high-zindex")),a=berocket_apply_filters("jqrui_data_select2",a,jQuery(this)),jQuery(this).select2(a)}})},bapf_select2_disable_for_parent=function(a){a.find(".bapf_select2").length&&"undefined"!=typeof a.find(".bapf_select2").select2&&a.find(".bapf_select2").each(function(){jQuery(this).data("select2")&&jQuery(this).select2("destroy")})},jQuery(document).on("berocket_ajax_filtering_on_update",function(){bapf_select2_disable_for_parent(jQuery(document))}),bapf_select2_init(),berocket_add_filter("braapf_init",bapf_select2_init,2e3),berocket_add_filter("braapf_init_for_parent",bapf_select2_init_for_parent)});var braapf_init_jqrui_slidr,braapf_jqrui_slidr_same,braapf_jqrui_slidr_values_wc_price,braapf_init_jqrui_slidr_for_parent,braapf_grab_single_jqrui,braapf_jqrui_slidr_values_arr_attr,braapf_jqrui_slidr_values_link_arr_attr;!function(a){function b(b,c){var d=a(b).closest(".bapf_slidr_jqrui.bapf_slidr_ready").find(".bapf_slidr_main"),e=d.slider("values");a(b).val(e[c]),a(b).data("val",e[c])}function c(b,c,d){var e=a(b).closest(".bapf_slidr_jqrui.bapf_slidr_ready").find(".bapf_slidr_main");if("focusout"==d){if(a(b).val()==a(b).data("val")){var f=e.slider("values");e.trigger("braapf_change_jqrui_slidr",[f])}}else{var g=parseInt(a(b).val());e.slider("values",c,g)}}a.each([{position:0,className:"bapf_from"},{position:1,className:"bapf_to"}],function(d,e){a(document).on("focusin",".bapf_slidr_jqrui.bapf_slidr_ready ."+e.className+" input[type=text]",function(){b(this,e.position)}),a(document).on("change focusout",".bapf_slidr_jqrui.bapf_slidr_ready ."+e.className+" input[type=text]",function(a){c(this,e.position,a.type)}),a(document).on("change",".bapf_slidr_jqrui.bapf_slidr_ready ."+e.className+" select",function(a){c(this,e.position,a.type)})}),a(document).on("braapf_change_jqrui_slidr",".bapf_slidr_jqrui .bapf_slidr_main",function(b,c){var d=a(this),e=[c[0],c[1]];e=berocket_apply_filters("jqrui_slidr_"+d.data("display"),e,d),d.closest(".bapf_slidr_jqrui").find(".bapf_from span.bapf_val").length&&d.closest(".bapf_slidr_jqrui").find(".bapf_from span.bapf_val").text(e[0]),d.closest(".bapf_slidr_jqrui").find(".bapf_to span.bapf_val").length&&d.closest(".bapf_slidr_jqrui").find(".bapf_to span.bapf_val").text(e[1])}),a(document).on("braapf_change_jqrui_slidr",".bapf_slidr_jqrui .bapf_slidr_main",function(b,c){var d=a(this),e=[c[0],c[1]];e=berocket_apply_filters("jqrui_slidr_"+d.data("display"),e,d),d.closest(".bapf_slidr_jqrui").find(".bapf_from input[type=text]").length&&d.closest(".bapf_slidr_jqrui").find(".bapf_from input[type=text]").val(e[0]),d.closest(".bapf_slidr_jqrui").find(".bapf_to input[type=text]").length&&d.closest(".bapf_slidr_jqrui").find(".bapf_to input[type=text]").val(e[1])}),a(document).on("braapf_change_jqrui_slidr",".bapf_slidr_jqrui .bapf_slidr_main",function(b,c){var d=a(this),e=d.data("attr");if(d.closest(".bapf_slidr_jqrui").find(".bapf_from select").length||d.closest(".bapf_slidr_jqrui").find(".bapf_to select").length){var e=d.data("attr"),f=[],g=[],h=!1,i=!1;a.each(e,function(a,b){a==c[0]&&(i=!0),h||f.push({v:b.v,n:b.n,ov:a}),i&&g.push({v:b.v,n:b.n,ov:a}),a==c[1]&&(h=!0)})}d.closest(".bapf_slidr_jqrui").find(".bapf_from select").length&&(d.closest(".bapf_slidr_jqrui").find(".bapf_from select option").remove(),a.each(f,function(b,e){var f="";e.ov==c[0]&&(f=" selected"),d.closest(".bapf_slidr_jqrui").find(".bapf_from select").append(a('<option value="'+e.ov+'"'+f+">"+e.n+"</option>"))})),d.closest(".bapf_slidr_jqrui").find(".bapf_to select").length&&(d.closest(".bapf_slidr_jqrui").find(".bapf_to select option").remove(),a.each(g,function(b,e){var f="";e.ov==c[1]&&(f=" selected"),d.closest(".bapf_slidr_jqrui").find(".bapf_to select").append(a('<option value="'+e.ov+'"'+f+">"+e.n+"</option>"))}))}),braapf_init_jqrui_slidr=function(){braapf_init_jqrui_slidr_for_parent(a(document))},braapf_init_jqrui_slidr_for_parent=function(b){b.find(".bapf_slidr_jqrui:not(.bapf_slidr_ready)").each(function(){var b=a(this).find(".bapf_slidr_main"),c=berocket_apply_filters("jqrui_data_slidr_jqrui",{range:!0,min:b.data("min"),max:b.data("max"),values:[b.data("start"),b.data("end")],step:b.data("step"),create:function(b,c){var d=a(this).slider("values");a(this).trigger("braapf_change_jqrui_slidr",[d])},slide:function(b,c){a(this).trigger("braapf_change_jqrui_slidr",[c.values])},change:function(b,c){var d=a(this).slider("values");if(a(this).trigger("braapf_change_jqrui_slidr",[d]),!a(this).is(".bapf_jqrui_blocked")){var d=a(this).slider("values"),e=a(this).parents(".bapf_sfilter").data("taxonomy");braapf_jqrui_slidr_same(e,d);var f={element:"#"+a(this).closest(".bapf_sfilter").attr("id"),parent:0,find:".bapf_body"};berocket_apply_filters("filter_changed_element",f,a(this)),berocket_do_action("update_products","filter",a(this))}}},b);b.slider(c),a(this).addClass("bapf_slidr_ready")})},braapf_jqrui_slidr_same=function(b,c){a(".bapf_slidr_jqrui.bapf_slidr_ready[data-taxonomy="+b+"]").each(function(){var b=a(this).find(".bapf_slidr_main");b.addClass("bapf_jqrui_blocked"),b.slider("values",c),b.removeClass("bapf_jqrui_blocked")})},braapf_jqrui_slidr_values_wc_price=function(a,b){var c=b.data("number_style");return c||(c=the_ajax_script.number_style),a[0]=berocket_format_number(a[0],c),a[1]=berocket_format_number(a[1],c),a},braapf_grab_single_jqrui=function(a,b){if(b.is(".bapf_slidr_jqrui.bapf_slidr_ready")&&0!=a){var c=b.find(".bapf_slidr_main"),d=c.slider("values"),e=c.slider("values"),f="";b.find(".bapf_tbprice").length&&(f=b.find(".bapf_tbprice").first().text());var g="";if(b.find(".bapf_taprice").length&&(g=b.find(".bapf_taprice").first().text()),d[0]!=c.data("min")||d[1]!=c.data("max")){e=berocket_apply_filters("jqrui_slidr_"+c.data("display"),e,c),e[0]=f+e[0]+g,e[1]=f+e[1]+g;var h={value:d[0]+"_"+d[1],html:e[0]+" - "+e[1]};h=berocket_apply_filters("jqrui_slidr_link_"+c.data("display"),h,d,e,c,a),a.values=[h]}}return a},braapf_jqrui_slidr_values_arr_attr=function(a,b){var c=b.data("attr");return Array.isArray(a)&&2==a.length?(a[0]=c[a[0]].n,a[1]=c[a[1]].n):(a=["",""],a[0]=c[0].n,a[1]=c[c.length-1].n),a},braapf_jqrui_slidr_values_link_arr_attr=function(a,b,c,d,e){var f=d.data("attr");return a.value=f[b[0]].v+"_"+f[b[1]].v,a},a(document).on("braapf_unselect braapf_unselect_all",".bapf_slidr_jqrui",function(b,c){var d=a(this).find(".bapf_slidr_main"),e=d.data("min"),f=d.data("max");d.addClass("bapf_jqrui_blocked"),d.slider("values",[e,f]),d.removeClass("bapf_jqrui_blocked")}),berocket_add_filter("jqrui_slidr_wc_price",braapf_jqrui_slidr_values_wc_price),berocket_add_filter("jqrui_slidr_arr_attr",braapf_jqrui_slidr_values_arr_attr),berocket_add_filter("jqrui_slidr_link_arr_attr",braapf_jqrui_slidr_values_link_arr_attr),berocket_add_filter("grab_single_filter_default",braapf_grab_single_jqrui),berocket_add_filter("braapf_init",braapf_init_jqrui_slidr),berocket_add_filter("braapf_init_for_parent",braapf_init_jqrui_slidr_for_parent)}(jQuery);
1
+ function berocket_make_args_array(a){for(var b=[],c=0;c<a.length;c++)b.push(a[c]);return b}function berocket_apply_filters(a,b){if("undefined"!=typeof berocket_filters[a]){var c=berocket_make_args_array(arguments);c.splice(0,1),jQuery.each(berocket_filters[a],function(a,d){b=d.callback.apply(null,c),c[0]=b})}return b}function berocket_do_action(a){if("undefined"!=typeof berocket_filters[a]){var b=berocket_make_args_array(arguments);b.splice(0,1),jQuery.each(berocket_filters[a],function(a,c){c.callback.apply(null,b)})}}function berocket_throw_error(a){var b="berocket_throw_error";if(error_exist=!0,"undefined"!=typeof berocket_filters[b]){for(var c,d=[error_exist];c<arguments.length;c++)d.push(arguments[c]);jQuery.each(berocket_filters[b],function(a,b){if(error_exist=b.callback.apply(null,d),d[0]=error_exist,!error_exist)return!1})}return error_exist}function berocket_add_filter(a,b,c){"undefined"==typeof c&&(c=10),"undefined"==typeof berocket_filters[a]&&(berocket_filters[a]=[]);var d=!1;jQuery.each(berocket_filters[a],function(a,e){e.priority===c&&e.callback===b&&(d=!0)}),d||(berocket_filters[a].push({callback:b,priority:c}),berocket_filters[a]=berocket_sort_by_priority(berocket_filters[a]))}function berocket_remove_filter(a,b,c){if("undefined"==typeof c&&(c=10),"undefined"!=typeof berocket_filters[a]){var d=[];jQuery.each(berocket_filters[a],function(a,e){e.priority===c&&e.callback===b||d.push(e)}),berocket_filters[a]=berocket_sort_by_priority(d)}}function berocket_sort_by_priority(a){return Array.isArray(a)&&a.sort(function(a,b){return a.priority>b.priority?1:a.priority<b.priority?-1:0}),a}function berocket_format_number(a,b){"undefined"==typeof b&&(b=the_ajax_script.number_style);var c=a.toFixed(b[2]);c=c.toString();var d=c.split("."),e=d[0];return c.indexOf(".")!=-1&&(d=d[1]),e=e.replace(/\d(?=(?:\d{3})+(?:$))/g,function(a,c){return a+b[0]}),c.indexOf(".")!=-1&&(e=e+b[1]+d),e}function braapf_grab_all_init(){braapf_grab_all()}function braapf_selected_filters_area_set_init(){braapf_selected_filters_area_set()}function braapf_filtered_filters_set(){braapf_filtered_filters=braapf_selected_filters.slice(),berocket_do_action("braapf_init_filtered_set",braapf_filtered_filters)}var berocket_filters={};berocket_add_filter("compat_filters_result_single",function(a){return"object"==typeof a&&"string"==typeof a.taxonomy&&"pa_"==a.taxonomy.substr(0,3)&&(a.taxonomy=a.taxonomy.substr(3)),a});var braapf_filter_blocked=!1,braapf_selected_filters=[],braapf_filtered_filters=[],braapf_filters_var,braapf_ajax_request,braapf_checkbox_same,braapf_update_products,braapf_grab_all,braapf_grab_single,braapf_compact_filters,braapf_compat_filters_to_string,braapf_build_url_from_urldata,braapf_glue_by_operator,braapf_ajax_load_from_url,braapf_ajax_load_from_url_request,braapf_init_load,braapf_remove_pages_from_url_data,braapf_filter_products_by_url,braapf_get_current_url_data,braapf_reset_buttons_hide,bapf_universal_theme_compatibility,braapf_disable_ajax_loading,braapf_close_tippy;!function(a){function b(a){return berocket_remove_filter("ajax_load_from_url_beforeSend",b),a.setRequestHeader("X-Braapfdisable","1"),a}function c(a){return a.setRequestHeader("X-Braapf","1"),a}a(document).on("change",".bapf_sfilter.bapf_ckbox input[type=checkbox]",function(){var b=a(this).val(),c=a(this).parents(".bapf_sfilter").data("taxonomy"),d=a(this).prop("checked");braapf_checkbox_same(c,b,d),berocket_apply_filters("input_ckbox_changed",this,c,b,d);var e={element:"#"+a(this).attr("id"),parent:1,find:!1};berocket_apply_filters("filter_changed_element",e,a(this)),berocket_do_action("update_products","filter",a(this))}),braapf_checkbox_same=function(b,c,d){a('.bapf_sfilter[data-taxonomy="'+b+'"] input[value="'+c+'"]').prop("checked",d),a('.bapf_sfilter[data-taxonomy="'+b+'"]').length<a('.bapf_sfilter.bapf_ckbox[data-taxonomy="'+b+'"]').length&&berocket_throw_error("multiple_filters_for_same_taxonomy",b)},a(document).on("braapf_unselect",".bapf_ckbox",function(b,c){if("undefined"==typeof c&&(c=!1),0==c)var d=a(this).find("input[type=checkbox]");else var d=a(this).find('input[value="'+c.value+'"]');if(d.length>0){var e=d.val(),f=a(this).data("taxonomy");d.prop("checked",!1),braapf_checkbox_same(f,e,!1)}}),a(document).on("braapf_unselect_all",".bapf_ckbox",function(b,c){a(this).trigger("braapf_unselect",!1)}),a(document).on("click",".berocket_aapf_widget_update_button, .bapf_update",function(b){b.preventDefault(),berocket_do_action("update_products","update",a(this))}),a(document).on("click",".berocket_aapf_reset_button, .bapf_reset",function(b){b.preventDefault(),braapf_unselect_all(),berocket_do_action("update_products","reset_all",a(this))}),braapf_reset_buttons_hide=function(){berocket_apply_filters("bapf_rst_nofltr_hide","undefined"==typeof braapf_filtered_filters||braapf_filtered_filters.length<=0)?a(".bapf_rst_nofltr").hide():a(".bapf_rst_nofltr").show();var b=!1;"undefined"!=typeof braapf_filtered_filters&&braapf_filtered_filters.length>0&&a.each(braapf_filtered_filters,function(a,c){if(c.values.length>0)return b=!0,!1}),berocket_apply_filters("bapf_rst_sel_show",b)?a(".bapf_rst_sel").show():a(".bapf_rst_sel").hide()},berocket_add_filter("braapf_init",braapf_reset_buttons_hide,1500),berocket_add_filter("braapf_init_filtered_set",braapf_reset_buttons_hide,1500);var d=the_ajax_script.pagination_class;d=d.replace(","," a,"),d=berocket_apply_filters("pagination_links_a_tags",d+" a",the_ajax_script.pagination_class),!the_ajax_script.disable_ajax_loading&&the_ajax_script.woocommerce_removes.pagination_ajax&&a(document).on("click",d,function(c){c.preventDefault();var d=a(this).attr("href");d=berocket_apply_filters("pagination_href_from_clicked_a",decodeURI(d),a(this)),braapf_change_url_history_api(d,{replace:the_ajax_script.seo_friendly_urls}),berocket_add_filter("ajax_load_from_url_beforeSend",b),braapf_ajax_load_from_url(d,{},berocket_apply_filters("ajax_load_from_pagination",{done:[braapf_replace_products,braapf_replace_pagination,braapf_replace_result_count,braapf_init_load]},d))}),!the_ajax_script.disable_ajax_loading&&the_ajax_script.control_sorting&&a(document).on("submit",the_ajax_script.ordering_class,function(b){b.preventDefault();var c=braapf_get_current_url_data();if(c=braapf_remove_pages_from_url_data(c),Array.isArray(c.queryargs)){var d=[];a.each(c.queryargs,function(a,b){"orderby"!=b.name&&d.push(b)}),c.queryargs=d}else c.queryargs=[];var e=a(this).serializeArray();Array.isArray(e)&&a.each(e,function(a,b){"paged"==b.name?c.page=parseInt(b.value):"orderby"==b.name?the_ajax_script.default_sorting!=b.value&&c.queryargs.push(b):c.queryargs.push(b)});var f=braapf_build_url_from_urldata(c);braapf_filter_products_by_url(f)}),braapf_get_url_with_filters_selected=function(){braapf_grab_all();var a=braapf_compact_filters(),b=berocket_apply_filters("braapf_filters_mask",the_ajax_script.url_mask),c=braapf_compat_filters_to_string(a,b,the_ajax_script.url_split),d=braapf_get_current_url_data();d.filter=c,d=braapf_remove_pages_from_url_data(d);var e=braapf_build_url_from_urldata(d);return e},braapf_update_products=function(b,c){"undefined"==typeof b&&(b="filter"),"undefined"==typeof c&&(c=!1),b=berocket_apply_filters("before_update_products_context",b,c);var d=braapf_get_url_with_filters_selected();berocket_apply_filters("apply_filters_to_page",0==a(".berocket_aapf_widget_update_button:visible, .bapf_update:visible").length||"filter"!=b,b,c,d)?(braapf_selected_filters_area_set(),braapf_filter_products_by_url(d)):berocket_apply_filters("apply_filters_to_page_partial",!1,b,c,d)&&braapf_ajax_load_from_url(d,{},berocket_apply_filters("ajax_load_from_filters_partial",{done:[braapf_replace_each_filter,braapf_init_load]},d,"partial"),"partial")},braapf_filter_products_by_url=function(b){berocket_apply_filters("page_has_products_holder",!a(the_ajax_script.products_holder_id).length,b)?location.href=b:(braapf_change_url_history_api(b,{replace:the_ajax_script.seo_friendly_urls}),braapf_ajax_load_from_url(b,{},berocket_apply_filters("ajax_load_from_filters",{done:[braapf_replace_products,braapf_replace_pagination,braapf_replace_result_count,braapf_replace_orderby,braapf_replace_each_filter,braapf_init_load,braapf_filtered_filters_set,braapf_update_url_history_api_from_current]},b,"default")))},braapf_update_url_history_api_from_current=function(){the_ajax_script.seo_friendly_urls&&(url_filtered=braapf_get_url_with_filters_selected(),history.replaceState(history.state,"BeRocket Rules",url_filtered))},braapf_grab_all=function(b){"undefined"==typeof b&&(b=!1);var c=[];if(b===!1)var d=a(".bapf_sfilter");else var d=a(b).find(".bapf_sfilter");return d.each(function(){var a=braapf_grab_single(this,c);a!==!1&&c.push(a)}),c=berocket_apply_filters("grab_all_filters",c,b),b===!1&&(braapf_selected_filters=c),c},braapf_grab_single=function(b,c,d){"undefined"==typeof d&&(d=!1),b=a(b);var e=!1,f=!1,g=b.data("taxonomy");if("undefined"==typeof g||!g)return berocket_apply_filters("grab_single_filter_taxonomy_undefined",e,b,c);if(a.each(c,function(a,b){b.taxonomy==g&&(f=!0)}),!berocket_apply_filters("grab_single_filter_exist",f,b,c)){if(e=berocket_apply_filters("grab_single_filter",e,b,c),e!==!1)return e;var h=b.data("op"),i=b.data("name");"undefined"==typeof i&&(i="");var j=braapf_glue_by_operator(h),k=[],l=[];if(d)var m=b;else var m=a(".bapf_sfilter[data-taxonomy="+g+"]");m.find("input:checked:not(:disabled)").each(function(b,c){l.indexOf(a(this).val())==-1&&(k.push({value:a(this).val(),html:a(this).data("name")}),l.push(a(this).val()))}),e={name:i,taxonomy:g,values:k,glue:j,operator:h}}return berocket_apply_filters("grab_single_filter_default",e,b,c)},braapf_glue_by_operator=function(a){"string"!=typeof a&&(a="");var b="-";return"and"==a.toLowerCase()&&(b="+"),berocket_apply_filters("glue_by_operator",b,a)},braapf_compact_filters=function(b){"undefined"==typeof b&&(b=braapf_selected_filters);var c=[];return a.each(b,function(b,d){var e="";"undefined"!=typeof d.customValuesLine?e=d.customValuesLine:a.each(d.values,function(a,b){e.length&&(e+=d.glue),e+=b.value}),e.length&&c.push(berocket_apply_filters("compat_filters_result_single",{taxonomy:d.taxonomy,values:e},d))}),berocket_apply_filters("compat_filters_result",c,b)},braapf_compat_filters_to_string=function(b,c,d){var e="";return a.each(b,function(a,f){e.length&&(e+=d);var g=c;g=g.replace("%t%",f.taxonomy),g=g.replace("%v%",f.values),e+=berocket_apply_filters("compat_filters_to_string_single",g,f,b,c,d)}),berocket_apply_filters("compat_filters_to_string",e,b,c,d)},braapf_get_current_url_data=function(b){if("undefined"==typeof b)var c=location.href.split("#")[0].split("?")[0],d=location.search.substring(1);else{var c=b.split("#")[0].split("?")[0];if(b.split("#")[0].split("?").length>1)var d=b.split("#")[0].split("?")[1];else var d=""}var e=[],f=1,g=c.match(/\/page\/(\d+)/);return g&&"string"==typeof g[1]&&(f=parseInt(g[1]),c=c.replace(/\/page\/(\d+)/,"")),d=d.split("&"),a.each(d,function(a,b){b.length&&(d[a]=b.split("="),"paged"==d[a][0]?f=parseInt(d[a][1]):e.push({name:d[a][0],value:d[a][1]}))}),berocket_apply_filters("get_current_url_data",{baselink:c,queryargs:e,filter:"",page:f})},braapf_remove_pages_from_url_data=function(b){if(b.page=1,Array.isArray(b.queryargs)){var c=[];a.each(b.queryargs,function(a,b){"product-page"!=b.name&&c.push(b)}),b.queryargs=c}return b},braapf_build_url_from_urldata=function(b,c){"undefined"==typeof c&&(c=braapf_build_url_parameters_default());var d=berocket_apply_filters("url_from_urldata_baselink",b.baselink,b,c),e="";return b.queryargs.length&&a.each(b.queryargs,function(a,b){e.length&&(e+="&"),b.name.length&&(e+=b.name+"="+b.value)}),b.page&&b.page>1&&(e.length&&(e+="&"),e+="paged="+b.page),e.length&&(e="?"+e),d=berocket_apply_filters("url_from_urldata_linkget",d+e,b,c,d,e)},braapf_build_url_parameters_default=function(){return berocket_apply_filters("build_url_parameters_default",{})},braapf_replace_current_with_new=function(b,c,d){"undefined"==typeof d&&(d={}),args={replace:!1},jQuery.extend(args,d);var e=a("<div><div>"+b+"</div></div>"),f=e.find(c),g=a(c);0!=g.length&&(f.length!=g.length&&0!=f.length&&berocket_throw_error("error_notsame_block_qty",c,f.length,g.length),0==f.length?(g.html("").addClass("braapfNotReplaced"),g.hide()):(g.each(function(b,c){"undefined"!=typeof f[b]?args.replace?a(c).replaceWith(a(f[b])):a(c).html(a(f[b]).html()).removeClass("braapfNotReplaced"):a(c).html("").addClass("braapfNotReplaced")}),g.show()))},braapf_replace_products=function(b){var c=the_ajax_script.products_holder_id;a("<div><div>"+b+"</div></div>");a(".bapf_no_products").remove(),braapf_replace_current_with_new(b,c),a(".braapfNotReplaced").filter(c).length&&a(".braapfNotReplaced").filter(c).before(a(the_ajax_script.no_products))},braapf_replace_pagination=function(b){var c=the_ajax_script.pagination_class;if(0==a(c).length){var d=the_ajax_script.products_holder_id,e=a("<div><div>"+b+"</div></div>"),f=e.find(c).last();f.length&&a(d).last().after(f)}else braapf_replace_current_with_new(b,c)},braapf_replace_result_count=function(a){var b=the_ajax_script.result_count_class;braapf_replace_current_with_new(a,b)},braapf_replace_orderby=function(a){var b=the_ajax_script.ordering_class;braapf_replace_current_with_new(a,b)},braapf_replace_each_filter=function(b){var c=a("<div><div>"+b+"</div></div>");a(".berocket_single_filter_widget").each(function(){var b=a(this).data("id");a(".berocket_single_filter_widget_"+b).html(c.find(".berocket_single_filter_widget_"+b).last().html()),c.find(".berocket_single_filter_widget_"+b).is(".bapf_mt_none")?a(".berocket_single_filter_widget_"+b).addClass("bapf_mt_none"):a(".berocket_single_filter_widget_"+b).removeClass("bapf_mt_none")})},braapf_change_url_history_api=function(a,b){if("undefined"!=typeof b&&b.replace){var c={BeRocket:"Rules"};history.replaceState(c,""),history.pushState(c,"",a),history.pathname=a}},berocket_apply_filters("load_products_ajax_on_popstate",!0)&&(window.onpopstate=function(b){if(null!=b.state&&"Rules"==b.state.BeRocket){var c=location.href;berocket_apply_filters("page_has_products_holder",!a(the_ajax_script.products_holder_id).length,c)?location.href=c:braapf_ajax_load_from_url(c,{},berocket_apply_filters("ajax_load_from_filters",{done:[braapf_replace_products,braapf_replace_pagination,braapf_replace_result_count,braapf_replace_orderby,braapf_replace_each_filter,braapf_init_load,braapf_filtered_filters_set,braapf_update_url_history_api_from_current]},c,"default"))}}),braapf_ajax_load_from_url=function(a,b,c,d){"undefined"==typeof d&&(d="default"),"object"!=typeof b&&(b={}),"object"!=typeof c&&(c={done:[],fail:[],always:[]}),"undefined"!=typeof c.done&&Array.isArray(c.done)||(c.done=[]),"undefined"!=typeof c.fail&&Array.isArray(c.fail)||(c.fail=[]),"undefined"!=typeof c.always&&Array.isArray(c.always)||(c.always=[]),a=berocket_apply_filters("ajax_load_from_url_url",a,b,c,d),b=berocket_apply_filters("ajax_load_from_url_data",b,a,c,d),c=berocket_apply_filters("ajax_load_from_url_callback",c,a,b,d),braapf_ajax_load_from_url_request(a,b,c,d)},braapf_ajax_load_from_url_request=function(b,c,d,e){a(document).trigger("berocket_ajax_filtering_start"),"object"==typeof braapf_ajax_request&&"undefined"!=typeof braapf_ajax_request.abort&&braapf_ajax_request.abort(),braapf_ajax_request=a.ajax({method:"GET",url:b,data:c,beforeSend:function(a){a=berocket_apply_filters("ajax_load_from_url_beforeSend",a,b,c,d,e)}}).done(function(f,g,h){a(document).trigger("berocket_ajax_filtering_on_update"),f=berocket_apply_filters("ajax_load_from_url_done",f,b,c,d,e),a.each(d.done,function(a,b){b(f,g,h)}),f=berocket_apply_filters("ajax_load_from_url_done_after",f,b,c,d,e),a(document).trigger("berocket_ajax_products_loaded")}).fail(function(f,g,h){if("abort"==g)return!1;if(a(document).trigger("berocket_ajax_products_not_loaded"),f=berocket_apply_filters("ajax_load_from_url_fail",f,b,c,d,e),a.each(d.fail,function(a,b){b(f,g,h)}),f=berocket_apply_filters("ajax_load_from_url_fail_after",f,b,c,d,e),"default"==e){var i=jQuery.param(c);i&&(b=b.split("?").length>1?b+"&"+i:b+"?"+i),location.href=b}}).always(function(f,g,h){f=berocket_apply_filters("ajax_load_from_url_always",f,b,c,d,e),a.each(d.always,function(a,b){b(f,g,h)}),f=berocket_apply_filters("ajax_load_from_url_always_after",f,b,c,d,e),a(document).trigger("berocket_ajax_filtering_end")})},braapf_init_load=function(){var b=berocket_apply_filters("filter_mobile_width",767),c=berocket_apply_filters("filter_tablet_width",1024);a(window).width()<=b&&a(".bapf_sngl_hd_mobile").remove(),a(window).width()>b&&a(window).width()<=c&&a(".bapf_sngl_hd_tablet").remove(),a(window).width()>c&&a(".bapf_sngl_hd_desktop").remove(),a(".bapf_sfilter .bapf_body.bapf_mcs:not(.bapf_mcs_ready)").each(function(){a(this).css("max-height",a(this).data("mcs-h")).mCustomScrollbar({scrollInertia:300}).addClass("bapf_mcs_ready")}),a(".berocket_single_filter_widget").each(function(){var b=a(this).data("id");berocket_apply_filters("remove_same_filters_to_prevent_errors",a(".berocket_single_filter_widget_"+b).length>1,a(this),b)&&a(".berocket_single_filter_widget_"+b).not(a(".berocket_single_filter_widget_"+b).first()).remove()}),a("body").on("click",".bapf_desci",function(a){a.stopPropagation()}),a("body").on("hover",".bapf_desci",function(a){a.stopPropagation()}),berocket_do_action("braapf_init",braapf_selected_filters),a(document).trigger("berocket_filters_first_load")},braapf_update_page_on_error=function(){berocket_apply_filters("update_page_on_error",!0)&&location.reload()},braapf_selected_filters_area_set=function(){if("undefined"!=typeof braapf_filtered_filters&&braapf_filtered_filters.length>0){var b="";a.each(braapf_filtered_filters,function(c,d){if(d.values.length>0){var e='<div class="bapf_sfa_taxonomy"><span>'+d.name+"</span>";e+="<ul>";var f="";a.each(d.values,function(a,b){f+=berocket_apply_filters("default_selected_filters_area_single",'<li><a href="#unselect_'+b.value+'" class="braapf_unselect" data-taxonomy="'+d.taxonomy+'" data-value="'+b.value+'"><i class="fa fa-times"></i>'+b.html+"</a></li>",b)}),e+=f,e+="</ul></div>",b+=berocket_apply_filters("default_selected_filters_area_single_taxonomy",e,d,f)}}),b?(a(".bapf_sfa_mt_hide").show().parent().removeClass("bapf_mt_none"),b=berocket_apply_filters("default_selected_filters_area_full_exist",'<div class="berocket_aapf_widget_selected_filter">'+b+'<ul class="bapf_sfa_unall"><li><a href="#Unselect_all" class="braapf_unselect_all"><i class="fa fa-times"></i> '+the_ajax_script.translate.unselect_all+"</a></li></ul>",b,braapf_filtered_filters)):(b=berocket_apply_filters("default_selected_filters_area_full_notexist",the_ajax_script.translate.nothing_selected,b,braapf_filtered_filters),a(".bapf_sfa_mt_hide").hide().parent().addClass("bapf_mt_none")),a(".berocket_aapf_widget_selected_area").html(b)}},a(document).on("click",".berocket_aapf_widget_selected_area .braapf_unselect",function(b){b.preventDefault(),a(".bapf_sfilter[data-taxonomy="+a(this).data("taxonomy")+"]").trigger("braapf_unselect",a(this).data()),berocket_do_action("update_products","reset_single",a(this))}),braapf_unselect_all=function(){braapf_grab_all(),"undefined"!=typeof braapf_selected_filters&&braapf_selected_filters.length>0&&a.each(braapf_selected_filters,function(b,c){c.values.length>0&&a(".bapf_sfilter[data-taxonomy="+c.taxonomy+"]").trigger("braapf_unselect_all",c)})},a(document).on("click",".berocket_aapf_widget_selected_area .braapf_unselect_all",function(b){b.preventDefault(),braapf_unselect_all(),berocket_do_action("update_products","reset_all",a(this))}),berocket_add_filter("braapf_init",braapf_grab_all_init,1e3),berocket_add_filter("braapf_init",braapf_selected_filters_area_set_init,1100),berocket_add_filter("braapf_init_filtered_set",braapf_selected_filters_area_set_init,1100),braapf_reload_page_for_products_error=function(a,b){return b==the_ajax_script.products_holder_id&&braapf_update_page_on_error(),a},berocket_add_filter("ajax_load_from_url_beforeSend",c),berocket_add_filter("update_products",braapf_update_products),berocket_add_filter("error_notsame_block_qty",braapf_reload_page_for_products_error),bapf_universal_theme_compatibility=function(b){if(berocket_apply_filters("universal_theme_compatibility",!0)){a(window).trigger("resize");try{berocket_apply_filters("uncode_theme_compatibility","object"==typeof UNCODE&&"function"==typeof UNCODE.init)&&UNCODE.init()}catch(a){berocket_throw_error("uncode_theme_compatibility",a)}try{berocket_apply_filters("flatsome_theme_compatibility","object"==typeof Flatsome&&"function"==typeof Flatsome.attach&&jQuery(the_ajax_script.products_holder_id).length)&&Flatsome.attach(jQuery(the_ajax_script.products_holder_id))}catch(a){berocket_throw_error("flatsome_theme_compatibility",a)}try{berocket_apply_filters("woodmart_theme_compatibility","object"==typeof woodmartThemeModule&&"function"==typeof woodmartThemeModule.init)&&(woodmartThemeModule.wooInit(),woodmartThemeModule.lazyLoading(),woodmartThemeModule.productsLoadMore())}catch(a){berocket_throw_error("woodmart_theme_compatibility",a)}try{berocket_apply_filters("divi_theme_compatibility","function"==typeof et_reinit_waypoint_modules)&&et_reinit_waypoint_modules()}catch(a){berocket_throw_error("divi_theme_compatibility",a)}try{berocket_apply_filters("rey_theme_compatibility","object"==typeof jQuery.reyTheme&&"function"==typeof jQuery.reyTheme.init)&&jQuery.reyTheme.init()}catch(a){berocket_throw_error("rey_theme_compatibility",a)}try{berocket_apply_filters("layzyloadimage_script_compatibility","function"==typeof layzyLoadImage)&&layzyLoadImage()}catch(a){berocket_throw_error("layzyloadimage_script_compatibility",a)}try{berocket_apply_filters("jetpacklazyimages_script_compatibility","function"==typeof jetpackLazyImagesModule)&&jetpackLazyImagesModule()}catch(a){berocket_throw_error("jetpacklazyimages_script_compatibility",a)}}return b},berocket_add_filter("ajax_load_from_url_always_after",bapf_universal_theme_compatibility,2500),a(document).ready(function(){berocket_apply_filters("remove_shortcode_fix_filters",a(".berocket_wc_shortcode_fix").length)&&(braapf_replace_each_filter(a(".berocket_wc_shortcode_fix").html()),a(".berocket_wc_shortcode_fix").html("")),braapf_init_load(),braapf_filtered_filters_set(),a(document).trigger("berocket_filters_document_ready")}),braapf_disable_ajax_loading=function(a){return!0},the_ajax_script.disable_ajax_loading&&berocket_add_filter("page_has_products_holder",braapf_disable_ajax_loading),braapf_close_tippy=function(){try{a(".tippy-box").length&&a(".tippy-box").each(function(){"undefined"!=typeof a(this).parent()[0]._tippy&&a(this).parent()[0]._tippy.hide()})}catch(a){}},berocket_add_filter("update_products",braapf_close_tippy)}(jQuery);var braapf_get_current_filters,braapf_filters_url_decode,braapf_scroll_shop_to_top,braapf_set_filters_to_link,braapf_convert_ckbox_to_radio,braapf_hierarhical_save,braapf_hierarhical_set,braapf_collapse_status_save,braapf_collapse_status_set,braapf_show_hide_values_save,braapf_show_hide_values_set,berocket_custom_sidebar_close,berocket_custom_sidebar_open;!function(a){function b(){jQuery(".berocket_product_table_compat .dataTables_length select").length&&jQuery(".berocket_product_table_compat .wc-product-table").dataTable()._fnSaveState();var a=jQuery(".berocket_product_table_compat .wc-product-table").attr("id");if("undefined"!=typeof window["config_"+a]&&window["config_"+a].serverSide){jQuery(".berocket_product_table_compat .wc-product-table").DataTable().destroy();var b=jQuery(".berocket_product_table_compat").html();jQuery(".berocket_product_table_compat").html(""),jQuery(".berocket_product_table_compat").html(b),jQuery(".berocket_product_table_compat .blockUI.blockOverlay").remove(),jQuery(".berocket_product_table_compat .wc-product-table").productTable()}}braapf_get_current_filters=function(b){if(b.queryargs.length){var c=[];a.each(b.queryargs,function(a,d){d.name==the_ajax_script.url_variable?b.filter=d.value:c.push(d)}),b.queryargs=c}return b},braapf_set_filters_to_link=function(a,b,c,d,e){return"string"==typeof b.filter&&b.filter.length&&(a+=e.length?"&":"?",a+=the_ajax_script.url_variable+"="+b.filter),a},braapf_convert_ckbox_to_radio=function(b,c,d,e){var f=(a(b),a(b).closest(".bapf_sfilter.bapf_ckbox"));f.is(".bapf_asradio")&&f.find("input[type=checkbox]:checked:not(:disabled)").each(function(){var b=a(this).val();b!=d&&braapf_checkbox_same(c,b,!1)})},berocket_add_filter("input_ckbox_changed",braapf_convert_ckbox_to_radio),a(document).on("click",".bapf_ochild, .bapf_cchild",function(b){b.preventDefault(),b.stopPropagation(),a(this).is(".bapf_ochild")?a(this).trigger("bapf_ochild"):a(this).trigger("bapf_cchild")}),a(document).on("bapf_ochild",".bapf_sfilter.bapf_ckbox ul li",function(b){b.stopPropagation(),berocket_apply_filters("colaps_child_open_apply",!0,a(this))&&(a(this).find(".bapf_ochild, .bapf_cchild").first().removeClass("bapf_ochild").removeClass("fa-plus").addClass("bapf_cchild").addClass("fa-minus"),a(this).find("ul").first().show())}),a(document).on("bapf_cchild",".bapf_sfilter.bapf_ckbox ul li",function(b){b.stopPropagation(),berocket_apply_filters("colaps_child_close_apply",!0,a(this))&&(a(this).find(".bapf_ochild, .bapf_cchild").first().addClass("bapf_ochild").addClass("fa-plus").removeClass("bapf_cchild").removeClass("fa-minus"),a(this).find("ul").first().hide())});var c=[];braapf_hierarhical_save=function(b){return c=[],a(".bapf_cchild").each(function(){c.push(a(this).parent().children("input[type=checkbox]").attr("id"))}),b},braapf_hierarhical_set=function(b){return a.each(c,function(b,c){a("#"+c).trigger("bapf_ochild")}),b},berocket_add_filter("ajax_load_from_url_done",braapf_hierarhical_save,1),berocket_add_filter("ajax_load_from_url_done_after",braapf_hierarhical_set,1e3),a(document).on("click",".bapf_ocolaps .bapf_colaps_togl, .bapf_ccolaps .bapf_colaps_togl",function(b){b.preventDefault,a(this).closest(".bapf_ocolaps, .bapf_ccolaps").is(".bapf_ocolaps")?a(this).closest(".bapf_ocolaps, .bapf_ccolaps").trigger("bapf_ocolaps"):a(this).closest(".bapf_ocolaps, .bapf_ccolaps").trigger("bapf_ccolaps")}),a(document).on("bapf_ocolaps",".bapf_sfilter.bapf_ocolaps, .bapf_sfilter.bapf_ccolaps",function(b){a(this).removeClass("bapf_ocolaps").addClass("bapf_ccolaps"),berocket_apply_filters("colaps_smb_open_apply",!0,a(this))&&(a(this).find(".bapf_body").first().show(),a(this).find(".bapf_colaps_smb").length&&a(this).find(".bapf_colaps_smb").removeClass("fa-chevron-down").addClass("fa-chevron-up"))}),a(document).on("bapf_ccolaps",".bapf_sfilter.bapf_ocolaps, .bapf_sfilter.bapf_ccolaps",function(b){a(this).addClass("bapf_ocolaps").removeClass("bapf_ccolaps"),berocket_apply_filters("colaps_smb_close_apply",!0,a(this))&&(a(this).find(".bapf_body").first().hide(),a(this).find(".bapf_colaps_smb").length&&a(this).find(".bapf_colaps_smb").addClass("fa-chevron-down").removeClass("fa-chevron-up"))});var d={open:[],close:[]};braapf_collapse_status_save=function(b){return d={open:[],close:[]},a(".bapf_ocolaps, .bapf_ccolaps").each(function(){a(this).is(".bapf_ocolaps")?d.open.push(a(this).attr("id")):d.close.push(a(this).attr("id"))}),b},braapf_collapse_status_set=function(b){return a.each(d.open,function(b,c){a("#"+c).trigger("bapf_ccolaps")}),a.each(d.close,function(b,c){a("#"+c).trigger("bapf_ocolaps")}),b},berocket_add_filter("ajax_load_from_url_done",braapf_collapse_status_save,1),berocket_add_filter("ajax_load_from_url_done_after",braapf_collapse_status_set,1e3),a(document).on("click",".bapf_show_hide",function(){a(this).closest(".bapf_sfilter").toggleClass("bapf_fhide"),a(this).closest(".bapf_sfilter").is(".bapf_fhide")?a(this).text(a(this).data("show")):a(this).text(a(this).data("hide"))});var e={open:[],close:[]};braapf_show_hide_values_save=function(b){return e={open:[],close:[]},a(".bapf_sfilter").each(function(){a(this).is(".bapf_fhide")?e.close.push(a(this).attr("id")):e.open.push(a(this).attr("id"))}),b},braapf_show_hide_values_set=function(b){return a.each(e.open,function(b,c){a("#"+c).removeClass("bapf_fhide"),a("#"+c).find(".bapf_show_hide").text(a("#"+c).find(".bapf_show_hide").data("hide"))}),a.each(e.close,function(b,c){a("#"+c).addClass("bapf_fhide"),a("#"+c).find(".bapf_show_hide").text(a("#"+c).find(".bapf_show_hide").data("show"))}),b},berocket_add_filter("ajax_load_from_url_done",braapf_show_hide_values_save,1),berocket_add_filter("ajax_load_from_url_done_after",braapf_show_hide_values_set,1e3),braapf_scroll_shop_to_top=function(b,c,d,e,f){var g=berocket_apply_filters("filter_mobile_width",767);if(berocket_apply_filters("scroll_shop_to_top","default"==f&&(1==the_ajax_script.scroll_shop_top||2==the_ajax_script.scroll_shop_top&&a(window).width()<g||3==the_ajax_script.scroll_shop_top&&a(window).width()>=g))){var h=0;a(the_ajax_script.products_holder_id).length?(h=a(the_ajax_script.products_holder_id).offset().top+parseInt(the_ajax_script.scroll_shop_top_px),h<0&&(h=0)):a(".bapf_no_products").length&&(h=a(".bapf_no_products").offset().top+parseInt(the_ajax_script.scroll_shop_top_px),h<0&&(h=0)),a("html, body").animate({scrollTop:h},"slow")}return b},berocket_add_filter("ajax_load_from_url_beforeSend",braapf_scroll_shop_to_top),a(document).on("mousedown",".wc-product-table-reset a",function(){a(this).remove(),br_reset_all_filters()}),a(document).on("click",".berocket_element_above_products_is_hide_toggle",function(b){b.preventDefault(),a(this).toggleClass("active").next().slideToggle(200,"linear");var c="inactive";a(this).is(".active")&&(c="active"),a(document).trigger("berocket_element_above_products_"+c)}),berocket_custom_sidebar_close=function(){a(".berocket_ajax_filters_sidebar_toggle").removeClass("active"),a("#berocket-ajax-filters-sidebar").removeClass("active"),a("body").removeClass("berocket_ajax_filters_sidebar_active")},berocket_custom_sidebar_open=function(){a(".berocket_ajax_filters_sidebar_toggle").addClass("active"),a("#berocket-ajax-filters-sidebar").addClass("active"),a("body").addClass("berocket_ajax_filters_sidebar_active")},a(document).on("berocket_custom_sidebar_close",berocket_custom_sidebar_close),a(document).on("berocket_custom_sidebar_open",berocket_custom_sidebar_open),a(document).on("click",".berocket_ajax_filters_sidebar_toggle",function(b){b.preventDefault(),a(this).is(".active")&&a("#berocket-ajax-filters-sidebar").is(".active")?berocket_custom_sidebar_close():berocket_custom_sidebar_open()}),a(document).on("click","#berocket-ajax-filters-sidebar-shadow, #berocket-ajax-filters-sidebar-close",function(a){a.preventDefault(),berocket_custom_sidebar_close()}),a(document).on("berocket_ajax_filtering_start",function(){jQuery(".berocket_product_table_compat").length&&b()}),braapf_filters_url_decode=function(a){return the_ajax_script.seo_uri_decode&&(a=encodeURIComponent(a),the_ajax_script.nice_urls&&(a=a.replace(/%2F/g,"/"))),a}}(jQuery),berocket_add_filter("get_current_url_data",braapf_get_current_filters),berocket_add_filter("compat_filters_to_string",braapf_filters_url_decode,900),berocket_add_filter("url_from_urldata_linkget",braapf_set_filters_to_link);var braapf_child_parent_grab_single,braapf_child_parent_fix_selected,braapf_child_parent_load_with_update_button,braapf_add_loader_element,braapf_remove_loader_element;!function(a){braapf_child_parent_grab_single=function(b,c,d){var e=c.data("child");if("undefined"!=typeof e&&e>0&&"object"==typeof b&&"undefined"!=typeof b.values&&Array.isArray(b.values)&&b.values.length>0){e++;var f=c.data("taxonomy"),g=a(".bapf_sfilter.bapf_child_"+e+"[data-taxonomy="+f+"]");if(g.length){var h=braapf_grab_single(g,[],!0);"object"==typeof h&&"undefined"!=typeof h.values&&Array.isArray(h.values)&&h.values.length>0&&(b=h)}}return b},braapf_child_parent_fix_selected=function(b,c){if(0!=c){var d=c.closest(".bapf_sfilter");if(d.length){var e=d.data("child"),f=d.data("taxonomy");if("undefined"!=typeof e&&e>0)for(i=e+1;a(".bapf_sfilter.bapf_child_"+i+"[data-taxonomy="+f+"]").length;i++)a(".bapf_sfilter.bapf_child_"+i+"[data-taxonomy="+f+"]").trigger("braapf_unselect",!1);
2
+ }}return b},braapf_child_parent_load_with_update_button=function(a,b,c){if(0!=c){var d=c.closest(".bapf_sfilter");if(d.length){var e=d.data("child");d.data("taxonomy");"undefined"!=typeof e&&e>0&&(a=!0)}}return a},berocket_add_filter("grab_single_filter_default",braapf_child_parent_grab_single),berocket_add_filter("before_update_products_context",braapf_child_parent_fix_selected),berocket_add_filter("apply_filters_to_page_partial",braapf_child_parent_load_with_update_button);var b;braapf_add_loader_element=function(c,d,e,f,g){return"default"==g&&("undefined"!=typeof b&&"function"==typeof b.remove&&b.remove(),b=a(the_ajax_script.load_image),a("body").append(b)),c},braapf_remove_loader_element=function(a){return"undefined"!=typeof b&&"function"==typeof b.remove&&b.remove(),a},berocket_add_filter("ajax_load_from_url_beforeSend",braapf_add_loader_element),berocket_add_filter("ajax_load_from_url_always_after",braapf_remove_loader_element),a(document).on("click",".bapf_sfilter.bapf_ckbox .bapf_body li label a",function(b){b.preventDefault(),a(this).parent().trigger("click")})}(jQuery);var braapf_init_ion_slidr,braapf_ion_slidr_same,braapf_jqrui_slidr_ion_value_wc_price,braapf_jqrui_slidr_ion_value_arr_attr,braapf_init_ion_slidr_for_parent,braapf_grab_single_ion,braapf_jqrui_slidr_ion_values_link_arr_attr;!function(a){braapf_init_ion_slidr=function(){braapf_init_ion_slidr_for_parent(a(document))},braapf_init_ion_slidr_for_parent=function(b){b.find(".bapf_slidr_ion:not(.bapf_slidr_ready)").each(function(){var b=a(this).find(".bapf_slidr_all .bapf_slidr_main"),c=function(a){if(!b.is(".bapf_ion_blocked")){b.addClass("bapf_ion_blocked");var c=b.closest(".bapf_sfilter").data("taxonomy");braapf_ion_slidr_same(c,a);var d={element:"#"+b.closest(".bapf_sfilter").attr("id"),parent:0,find:".bapf_body"};berocket_apply_filters("filter_changed_element",d,b),berocket_do_action("update_products","filter",b),b.removeClass("bapf_ion_blocked")}},d=berocket_apply_filters("jqrui_data_slidr_ion",{type:"double",from:b.data("start"),to:b.data("end"),grid:!1,force_edges:!0,onFinish:c,onUpdate:c,prettify:function(a){return a=berocket_apply_filters("jqrui_slidr_ion_"+b.data("display"),a,b)}},b);b.ionRangeSlider(d),a(this).addClass("bapf_slidr_ready")})},braapf_ion_slidr_same=function(b,c){a(".bapf_slidr_ion.bapf_slidr_ready[data-taxonomy="+b+"]").each(function(){var b=a(this).find(".bapf_slidr_main");b.addClass("bapf_ion_blocked");var d=b.data("ionRangeSlider");d.update({from:c.from,to:c.to}),b.removeClass("bapf_ion_blocked")})},braapf_jqrui_slidr_ion_value_wc_price=function(a,b){var c=b.data("number_style");return c||(c=the_ajax_script.number_style),a=berocket_format_number(parseFloat(a),c)},braapf_jqrui_slidr_ion_value_arr_attr=function(a,b){var c=b.data("attr");return a=c[a].n},braapf_grab_single_ion=function(a,b){if(b.is(".bapf_slidr_ion.bapf_slidr_ready")&&0!=a){var c=b.find(".bapf_slidr_main").data("ionRangeSlider"),d=b.find(".bapf_slidr_main"),e=[c.options.from,c.options.to],f=[berocket_apply_filters("jqrui_slidr_ion_"+d.data("display"),c.options.from,d),berocket_apply_filters("jqrui_slidr_ion_"+d.data("display"),c.options.to,d)],g=d.data("prefix");"undefined"==typeof g&&(g="");var h=d.data("postfix");if("undefined"==typeof h&&(h=""),f[0]=g+f[0]+h,f[1]=g+f[1]+h,e[0]!=d.data("min")||e[1]!=d.data("max")){var i={value:e[0]+"_"+e[1],html:f[0]+" - "+f[1]};i=berocket_apply_filters("jqrui_slidr_ion_link_"+d.data("display"),i,e,f,d,a),a.values=[i]}}return a},braapf_jqrui_slidr_ion_values_link_arr_attr=function(a,b,c,d,e){var f=d.data("attr");return a.value=f[b[0]].v+"_"+f[b[1]].v,a},a(document).on("braapf_unselect braapf_unselect_all",".bapf_slidr_ion",function(b,c){var d=a(this).find(".bapf_slidr_main"),e=d.data("ionRangeSlider");d.addClass("bapf_ion_blocked"),e.update({from:e.options.min,to:e.options.max}),d.removeClass("bapf_ion_blocked")}),berocket_add_filter("braapf_init",braapf_init_ion_slidr),berocket_add_filter("braapf_init_for_parent",braapf_init_ion_slidr_for_parent),berocket_add_filter("grab_single_filter_default",braapf_grab_single_ion),berocket_add_filter("jqrui_slidr_ion_link_arr_attr",braapf_jqrui_slidr_ion_values_link_arr_attr),berocket_add_filter("jqrui_slidr_ion_wc_price",braapf_jqrui_slidr_ion_value_wc_price),berocket_add_filter("jqrui_slidr_ion_arr_attr",braapf_jqrui_slidr_ion_value_arr_attr)}(jQuery);var braapf_grab_single_select;!function(a){a(document).on("change",".bapf_slct .bapf_body select",function(){var b={element:"#"+a(this).closest(".bapf_sfilter").attr("id"),parent:0,find:".bapf_body"};berocket_apply_filters("filter_changed_element",b,a(this)),berocket_do_action("update_products","filter",a(this))}),braapf_grab_single_select=function(b,c){if(c.is(".bapf_slct")&&0!=b){var d=c.find(".bapf_body select:not(:disabled)");d.find("option:selected:not(:disabled)").each(function(){var c=a(this).val();c&&b.values.push({value:c,html:a(this).data("name")})})}return b},a(document).on("braapf_unselect braapf_unselect_all",".bapf_slct",function(b,c){a(this).find(".bapf_body select:not(:disabled) option:selected:not(:disabled)").each(function(){"undefined"!=typeof c.value&&c.value!=a(this).val()||a(this).prop("selected",!1)})}),berocket_add_filter("grab_single_filter_default",braapf_grab_single_select)}(jQuery);var bapf_select2_init,bapf_select2_init_for_parent,bapf_select2_disable_for_parent;jQuery(document).ready(function(){bapf_select2_init=function(){bapf_select2_init_for_parent(jQuery(document))},bapf_select2_init_for_parent=function(a){a.find(".bapf_select2").length&&"undefined"!=typeof a.find(".bapf_select2").select2&&a.find(".bapf_select2").each(function(){if(!jQuery(this).data("select2")){var a={width:"100%",theme:"default"};jQuery(this).prop("multiple")&&(a.placeholder=jQuery(this).data("placeholder")),jQuery(this).parents("#berocket-ajax-filters-sidebar").length&&(0==jQuery("#bapf-select2-high-zindex").length&&jQuery("body").append('<div id="bapf-select2-high-zindex"></div>'),a.dropdownParent=jQuery("#bapf-select2-high-zindex")),a=berocket_apply_filters("jqrui_data_select2",a,jQuery(this)),jQuery(this).select2(a)}})},bapf_select2_disable_for_parent=function(a){a.find(".bapf_select2").length&&"undefined"!=typeof a.find(".bapf_select2").select2&&a.find(".bapf_select2").each(function(){jQuery(this).data("select2")&&jQuery(this).select2("destroy")})},jQuery(document).on("berocket_ajax_filtering_on_update",function(){bapf_select2_disable_for_parent(jQuery(document))}),bapf_select2_init(),berocket_add_filter("braapf_init",bapf_select2_init,2e3),berocket_add_filter("braapf_init_for_parent",bapf_select2_init_for_parent)});var braapf_init_jqrui_slidr,braapf_jqrui_slidr_same,braapf_jqrui_slidr_values_wc_price,braapf_init_jqrui_slidr_for_parent,braapf_grab_single_jqrui,braapf_jqrui_slidr_values_arr_attr,braapf_jqrui_slidr_values_link_arr_attr;!function(a){function b(b,c){var d=a(b).closest(".bapf_slidr_jqrui.bapf_slidr_ready").find(".bapf_slidr_main"),e=d.slider("values");a(b).val(e[c]),a(b).data("val",e[c])}function c(b,c,d){var e=a(b).closest(".bapf_slidr_jqrui.bapf_slidr_ready").find(".bapf_slidr_main");if("focusout"==d){if(a(b).val()==a(b).data("val")){var f=e.slider("values");e.trigger("braapf_change_jqrui_slidr",[f])}}else{var g=parseInt(a(b).val());e.slider("values",c,g)}}a.each([{position:0,className:"bapf_from"},{position:1,className:"bapf_to"}],function(d,e){a(document).on("focusin",".bapf_slidr_jqrui.bapf_slidr_ready ."+e.className+" input[type=text]",function(){b(this,e.position)}),a(document).on("change focusout",".bapf_slidr_jqrui.bapf_slidr_ready ."+e.className+" input[type=text]",function(a){c(this,e.position,a.type)}),a(document).on("change",".bapf_slidr_jqrui.bapf_slidr_ready ."+e.className+" select",function(a){c(this,e.position,a.type)})}),a(document).on("braapf_change_jqrui_slidr",".bapf_slidr_jqrui .bapf_slidr_main",function(b,c){var d=a(this),e=[c[0],c[1]];e=berocket_apply_filters("jqrui_slidr_"+d.data("display"),e,d),d.closest(".bapf_slidr_jqrui").find(".bapf_from span.bapf_val").length&&d.closest(".bapf_slidr_jqrui").find(".bapf_from span.bapf_val").text(e[0]),d.closest(".bapf_slidr_jqrui").find(".bapf_to span.bapf_val").length&&d.closest(".bapf_slidr_jqrui").find(".bapf_to span.bapf_val").text(e[1])}),a(document).on("braapf_change_jqrui_slidr",".bapf_slidr_jqrui .bapf_slidr_main",function(b,c){var d=a(this),e=[c[0],c[1]];e=berocket_apply_filters("jqrui_slidr_"+d.data("display"),e,d),d.closest(".bapf_slidr_jqrui").find(".bapf_from input[type=text]").length&&d.closest(".bapf_slidr_jqrui").find(".bapf_from input[type=text]").val(e[0]),d.closest(".bapf_slidr_jqrui").find(".bapf_to input[type=text]").length&&d.closest(".bapf_slidr_jqrui").find(".bapf_to input[type=text]").val(e[1])}),a(document).on("braapf_change_jqrui_slidr",".bapf_slidr_jqrui .bapf_slidr_main",function(b,c){var d=a(this),e=d.data("attr");if(d.closest(".bapf_slidr_jqrui").find(".bapf_from select").length||d.closest(".bapf_slidr_jqrui").find(".bapf_to select").length){var e=d.data("attr"),f=[],g=[],h=!1,i=!1;a.each(e,function(a,b){a==c[0]&&(i=!0),h||f.push({v:b.v,n:b.n,ov:a}),i&&g.push({v:b.v,n:b.n,ov:a}),a==c[1]&&(h=!0)})}d.closest(".bapf_slidr_jqrui").find(".bapf_from select").length&&(d.closest(".bapf_slidr_jqrui").find(".bapf_from select option").remove(),a.each(f,function(b,e){var f="";e.ov==c[0]&&(f=" selected"),d.closest(".bapf_slidr_jqrui").find(".bapf_from select").append(a('<option value="'+e.ov+'"'+f+">"+e.n+"</option>"))})),d.closest(".bapf_slidr_jqrui").find(".bapf_to select").length&&(d.closest(".bapf_slidr_jqrui").find(".bapf_to select option").remove(),a.each(g,function(b,e){var f="";e.ov==c[1]&&(f=" selected"),d.closest(".bapf_slidr_jqrui").find(".bapf_to select").append(a('<option value="'+e.ov+'"'+f+">"+e.n+"</option>"))}))}),braapf_init_jqrui_slidr=function(){braapf_init_jqrui_slidr_for_parent(a(document))},braapf_init_jqrui_slidr_for_parent=function(b){b.find(".bapf_slidr_jqrui:not(.bapf_slidr_ready)").each(function(){var b=a(this).find(".bapf_slidr_main"),c=berocket_apply_filters("jqrui_data_slidr_jqrui",{range:!0,min:b.data("min"),max:b.data("max"),values:[b.data("start"),b.data("end")],step:b.data("step"),create:function(b,c){var d=a(this).slider("values");a(this).trigger("braapf_change_jqrui_slidr",[d])},slide:function(b,c){a(this).trigger("braapf_change_jqrui_slidr",[c.values])},change:function(b,c){var d=a(this).slider("values");if(a(this).trigger("braapf_change_jqrui_slidr",[d]),!a(this).is(".bapf_jqrui_blocked")){var d=a(this).slider("values"),e=a(this).parents(".bapf_sfilter").data("taxonomy");braapf_jqrui_slidr_same(e,d);var f={element:"#"+a(this).closest(".bapf_sfilter").attr("id"),parent:0,find:".bapf_body"};berocket_apply_filters("filter_changed_element",f,a(this)),berocket_do_action("update_products","filter",a(this))}}},b);b.slider(c),a(this).addClass("bapf_slidr_ready")})},braapf_jqrui_slidr_same=function(b,c){a(".bapf_slidr_jqrui.bapf_slidr_ready[data-taxonomy="+b+"]").each(function(){var b=a(this).find(".bapf_slidr_main");b.addClass("bapf_jqrui_blocked"),b.slider("values",c),b.removeClass("bapf_jqrui_blocked")})},braapf_jqrui_slidr_values_wc_price=function(a,b){var c=b.data("number_style");return c||(c=the_ajax_script.number_style),a[0]=berocket_format_number(a[0],c),a[1]=berocket_format_number(a[1],c),a},braapf_grab_single_jqrui=function(a,b){if(b.is(".bapf_slidr_jqrui.bapf_slidr_ready")&&0!=a){var c=b.find(".bapf_slidr_main"),d=c.slider("values"),e=c.slider("values"),f="";b.find(".bapf_tbprice").length&&(f=b.find(".bapf_tbprice").first().text());var g="";if(b.find(".bapf_taprice").length&&(g=b.find(".bapf_taprice").first().text()),d[0]!=c.data("min")||d[1]!=c.data("max")){e=berocket_apply_filters("jqrui_slidr_"+c.data("display"),e,c),e[0]=f+e[0]+g,e[1]=f+e[1]+g;var h={value:d[0]+"_"+d[1],html:e[0]+" - "+e[1]};h=berocket_apply_filters("jqrui_slidr_link_"+c.data("display"),h,d,e,c,a),a.values=[h]}}return a},braapf_jqrui_slidr_values_arr_attr=function(a,b){var c=b.data("attr");return Array.isArray(a)&&2==a.length?(a[0]=c[a[0]].n,a[1]=c[a[1]].n):(a=["",""],a[0]=c[0].n,a[1]=c[c.length-1].n),a},braapf_jqrui_slidr_values_link_arr_attr=function(a,b,c,d,e){var f=d.data("attr");return a.value=f[b[0]].v+"_"+f[b[1]].v,a},a(document).on("braapf_unselect braapf_unselect_all",".bapf_slidr_jqrui",function(b,c){var d=a(this).find(".bapf_slidr_main"),e=d.data("min"),f=d.data("max");d.addClass("bapf_jqrui_blocked"),d.slider("values",[e,f]),d.removeClass("bapf_jqrui_blocked")}),berocket_add_filter("jqrui_slidr_wc_price",braapf_jqrui_slidr_values_wc_price),berocket_add_filter("jqrui_slidr_arr_attr",braapf_jqrui_slidr_values_arr_attr),berocket_add_filter("jqrui_slidr_link_arr_attr",braapf_jqrui_slidr_values_link_arr_attr),berocket_add_filter("grab_single_filter_default",braapf_grab_single_jqrui),berocket_add_filter("braapf_init",braapf_init_jqrui_slidr),berocket_add_filter("braapf_init_for_parent",braapf_init_jqrui_slidr_for_parent)}(jQuery);
berocket/framework.php CHANGED
@@ -35,7 +35,7 @@ if( ! class_exists( 'BeRocket_Framework' ) ) {
35
  include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
36
  load_plugin_textdomain('BeRocket_domain', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/');
37
  class BeRocket_Framework {
38
- public static $framework_version = '2.6.0.3';
39
  public static $settings_name = '';
40
  public $addons;
41
  public $libraries;
@@ -384,33 +384,30 @@ if( ! class_exists( 'BeRocket_Framework' ) ) {
384
  $javascript = br_get_value_from_array($options, array('javascript'));
385
  $is_admin = current_user_can($this->option_page_capability());
386
  if(is_array($javascript)) {
387
- $html = '<script>';
388
  foreach($javascript as $trigger => $script) {
389
- $function_name = strtolower($this->info['plugin_name'] . '_' . $trigger);
390
- $function_name = preg_replace("/[^a-z0-9_\s-]/", "", $function_name);
391
- $function_name = 'brjst_' . preg_replace("/[\s_-]+/", "_", $function_name);
392
- $html .= '
393
- function '.$function_name.'() {
394
- try {
395
- '.$script.'
396
- } catch(err){
397
- ';
398
- if( $is_admin ) {
399
- $html .= 'alert("You have some incorrect custom JavaScript code (Plugin: '.$this->info['full_name'].', Trigger: '.$trigger.')");
400
- console.log(err);';
401
- }
402
- $html .= '
 
403
  }
404
- };
405
- ';
406
- if( $trigger == 'load' ) {
407
- $html .='jQuery(document).ready('.$function_name.');';
408
- } else {
409
- $html .='jQuery(document).on("'.$trigger.'", '.$function_name.');';
410
  }
411
  }
412
- $html .= '</script>';
413
- echo $html;
 
 
414
  }
415
  }
416
 
@@ -1109,7 +1106,7 @@ if( ! class_exists( 'BeRocket_Framework' ) ) {
1109
  $berocket_roles = apply_filters('BeRocket_admin_init_user_capabilities', array('manage_berocket', 'manage_berocket_account'));
1110
  foreach($role_names as $role_name => $role_text) {
1111
  $role_object = get_role( $role_name );
1112
- if( $role_object->has_cap( 'manage_options' ) ) {
1113
  foreach($berocket_roles as $berocket_role) {
1114
  $role_object->add_cap( $berocket_role );
1115
  }
35
  include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
36
  load_plugin_textdomain('BeRocket_domain', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/');
37
  class BeRocket_Framework {
38
+ public static $framework_version = '2.6.0.4';
39
  public static $settings_name = '';
40
  public $addons;
41
  public $libraries;
384
  $javascript = br_get_value_from_array($options, array('javascript'));
385
  $is_admin = current_user_can($this->option_page_capability());
386
  if(is_array($javascript)) {
387
+ $html = '';
388
  foreach($javascript as $trigger => $script) {
389
+ $script = trim($script);
390
+ if( ! empty($script) ) {
391
+ $function_name = strtolower($this->info['plugin_name'] . '_' . $trigger);
392
+ $function_name = preg_replace("/[^a-z0-9_\s-]/", "", $function_name);
393
+ $function_name = 'brjst_' . preg_replace("/[\s_-]+/", "_", $function_name);
394
+ $html .= 'function '.$function_name.'(){try{'.$script.'}catch(err){';
395
+ if( $is_admin ) {
396
+ $html .= 'alert("You have some incorrect custom JavaScript code (Plugin: '.$this->info['full_name'].', Trigger: '.$trigger.')");';
397
+ $html .= 'console.log(err);';
398
+ }
399
+ $html .= '}};';
400
+ if( $trigger == 'load' ) {
401
+ $html .='jQuery(document).ready('.$function_name.');';
402
+ } else {
403
+ $html .='jQuery(document).on("'.$trigger.'", '.$function_name.');';
404
  }
 
 
 
 
 
 
405
  }
406
  }
407
+ $html = trim($html);
408
+ if( ! empty($html) ) {
409
+ echo '<script>', $html, '</script>';
410
+ }
411
  }
412
  }
413
 
1106
  $berocket_roles = apply_filters('BeRocket_admin_init_user_capabilities', array('manage_berocket', 'manage_berocket_account'));
1107
  foreach($role_names as $role_name => $role_text) {
1108
  $role_object = get_role( $role_name );
1109
+ if( $role_object->has_cap( 'manage_options' ) || $role_name == 'administrator' ) {
1110
  foreach($berocket_roles as $berocket_role) {
1111
  $role_object->add_cap( $berocket_role );
1112
  }
berocket/framework_version.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
- $framework_version_current = '2.6.0.3';
3
  if( version_compare($framework_version_current, $framework_version, '>') ) {
4
  $framework_version = $framework_version_current;
5
  $framework_dir = __DIR__;
1
  <?php
2
+ $framework_version_current = '2.6.0.4';
3
  if( version_compare($framework_version_current, $framework_version, '>') ) {
4
  $framework_version = $framework_version_current;
5
  $framework_dir = __DIR__;
berocket/includes/updater.php CHANGED
@@ -226,7 +226,7 @@ if ( ! class_exists( 'BeRocket_updater' ) ) {
226
  foreach ( self::$plugin_info as $plugin ) {
227
  if ( empty( $active_plugin[ $plugin[ 'id' ] ] ) && empty( $active_site_plugin[ $plugin[ 'id' ] ] ) ) {
228
  $version_capability = br_get_value_from_array($plugin, array('version_capability'), 15);
229
- if ( $version_capability > 5 && $version_capability != 15 ) {
230
  $meta_data = '?utm_source=paid_plugin&utm_medium=notice&utm_campaign='.$plugin['plugin_name'];
231
  $not_activated_notices[] = array(
232
  'start' => 0,
226
  foreach ( self::$plugin_info as $plugin ) {
227
  if ( empty( $active_plugin[ $plugin[ 'id' ] ] ) && empty( $active_site_plugin[ $plugin[ 'id' ] ] ) ) {
228
  $version_capability = br_get_value_from_array($plugin, array('version_capability'), 15);
229
+ if ( $version_capability > 5 && ! in_array($version_capability, array(15, 3, 17)) ) {
230
  $meta_data = '?utm_source=paid_plugin&utm_medium=notice&utm_campaign='.$plugin['plugin_name'];
231
  $not_activated_notices[] = array(
232
  'start' => 0,
includes/admin/admin_bar.php CHANGED
@@ -21,6 +21,10 @@ if( ! class_exists('BeRocket_aapf_admin_bar_debug') ) {
21
  $html2 .= '<div><h3>'.esc_html(ucfirst(trim(str_replace('_', ' ', $data_status)))).'</h3><ul>';
22
  foreach($filters as $filter_id => $filter_message) {
23
  $filter_id = intval($filter_id);
 
 
 
 
24
  $html2 .= '<li title="'.esc_html($filter_message).'"><a href="'.admin_url('post.php?post='.$filter_id.'&action=edit').'" target="_blank">'.esc_html($filter_id).'</a></li>';
25
  }
26
  $html2 .= '</ul></div>';
21
  $html2 .= '<div><h3>'.esc_html(ucfirst(trim(str_replace('_', ' ', $data_status)))).'</h3><ul>';
22
  foreach($filters as $filter_id => $filter_message) {
23
  $filter_id = intval($filter_id);
24
+ $title = get_the_title($filter_id);
25
+ if( ! empty($title) ) {
26
+ $filter_message = '('.$title.')'.$filter_message;
27
+ }
28
  $html2 .= '<li title="'.esc_html($filter_message).'"><a href="'.admin_url('post.php?post='.$filter_id.'&action=edit').'" target="_blank">'.esc_html($filter_id).'</a></li>';
29
  }
30
  $html2 .= '</ul></div>';
main.php CHANGED
@@ -2373,10 +2373,10 @@ jQuery(document).on('change', '.berocket_disable_ajax_loading', berocket_disable
2373
  }
2374
  public function br_custom_user_css() {
2375
  $options = $this->get_option();
2376
- $replace_css = array(
2377
- '#widget#' => '.berocket_aapf_widget',
2378
- '#widget-title#' => '.berocket_aapf_widget-title'
2379
- );
2380
  $result_css = str_replace(array('<style>', '</style>', '<'), '', $options[ 'user_custom_css' ]);
2381
  foreach ( $replace_css as $key => $value ) {
2382
  $result_css = str_replace( $key, $value, $result_css );
2373
  }
2374
  public function br_custom_user_css() {
2375
  $options = $this->get_option();
2376
+ $replace_css = apply_filters('braapf_custom_user_css_replacement', array(
2377
+ '#widget#' => 'div.bapf_sfilter',
2378
+ '#widget-title#' => 'div.bapf_sfilter .bapf_head h3'
2379
+ ));
2380
  $result_css = str_replace(array('<style>', '</style>', '<'), '', $options[ 'user_custom_css' ]);
2381
  foreach ( $replace_css as $key => $value ) {
2382
  $result_css = str_replace( $key, $value, $result_css );
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: https://berocket.com/product/woocommerce-ajax-products-filter?utm_s
5
  Tags: filters, product filters, ajax product filters, ajax filter, ajax filter widget, color filter, size filter, product onsale filter, product preview, product category filter, product reset filter, product sort by filter, stock filter, product tag filter, price range filter, price box filter, advanced product filters, woocommerce filters, woocommerce product filters, woocommerce products filter, woocommerce ajax product filters, widget, plugin, woocommerce item filters, filters plugin, ajax filters plugin, filter woocommerce products, filter woocommerce products plugin, wc filters, wc filters products, wc products filters, wc ajax products filters, wc product filters, wc advanced product filters, woocommerce layered nav, woocommerce layered navigation, ajax filtered nav, ajax filtered navigation, price filter, ajax price filter, woocommerce product sorting, sidebar filter, sidebar ajax filter, taxonomy filter, category filter, attribute filter, attributes filter, woocommerce product sort, ajax products filter plugin for woocommerce, rocket, berocket, berocket woocommerce ajax products filter
6
  Requires at least: 5.0
7
  Tested up to: 5.4.2
8
- Stable tag: 1.5.0.5
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -185,6 +185,12 @@ You can try this plugin's admin side [here](https://berocket.com/product/woocomm
185
 
186
  == Changelog ==
187
 
 
 
 
 
 
 
188
  = 1.5.0.5 =
189
  * Enhancement - Deprecated Filters: Custom Class option for buttons
190
  * Fix - Deprecated Filters: Price Slider
5
  Tags: filters, product filters, ajax product filters, ajax filter, ajax filter widget, color filter, size filter, product onsale filter, product preview, product category filter, product reset filter, product sort by filter, stock filter, product tag filter, price range filter, price box filter, advanced product filters, woocommerce filters, woocommerce product filters, woocommerce products filter, woocommerce ajax product filters, widget, plugin, woocommerce item filters, filters plugin, ajax filters plugin, filter woocommerce products, filter woocommerce products plugin, wc filters, wc filters products, wc products filters, wc ajax products filters, wc product filters, wc advanced product filters, woocommerce layered nav, woocommerce layered navigation, ajax filtered nav, ajax filtered navigation, price filter, ajax price filter, woocommerce product sorting, sidebar filter, sidebar ajax filter, taxonomy filter, category filter, attribute filter, attributes filter, woocommerce product sort, ajax products filter plugin for woocommerce, rocket, berocket, berocket woocommerce ajax products filter
6
  Requires at least: 5.0
7
  Tested up to: 5.4.2
8
+ Stable tag: 1.5.0.6
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
185
 
186
  == Changelog ==
187
 
188
+ = 1.5.0.6 =
189
+ * Enhancement - Sub-attribute for Nested filters add-on
190
+ * Fix - Replacement for user custom CSS
191
+ * Fix - Text style with image/color
192
+ * Fix - Slash for canonical URL
193
+
194
  = 1.5.0.5 =
195
  * Enhancement - Deprecated Filters: Custom Class option for buttons
196
  * Fix - Deprecated Filters: Price Slider
woocommerce-filters.php CHANGED
@@ -3,14 +3,14 @@
3
  * Plugin Name: Advanced AJAX Product Filters for WooCommerce
4
  * Plugin URI: https://wordpress.org/plugins/woocommerce-ajax-filters/?utm_source=free_plugin&utm_medium=plugins&utm_campaign=ajax_filters
5
  * Description: Unlimited AJAX products filters to make your shop perfect
6
- * Version: 1.5.0.5
7
  * Author: BeRocket
8
  * Requires at least: 5.0
9
  * Author URI: https://berocket.com?utm_source=free_plugin&utm_medium=plugins&utm_campaign=ajax_filters
10
  * Text Domain: BeRocket_AJAX_domain
11
  * Domain Path: /languages/
12
- * WC tested up to: 4.2.2
13
  */
14
- define( "BeRocket_AJAX_filters_version", '1.5.0.5' );
15
  define( "BeRocket_AJAX_filters_file", __FILE__ );
16
  include_once('main.php');
3
  * Plugin Name: Advanced AJAX Product Filters for WooCommerce
4
  * Plugin URI: https://wordpress.org/plugins/woocommerce-ajax-filters/?utm_source=free_plugin&utm_medium=plugins&utm_campaign=ajax_filters
5
  * Description: Unlimited AJAX products filters to make your shop perfect
6
+ * Version: 1.5.0.6
7
  * Author: BeRocket
8
  * Requires at least: 5.0
9
  * Author URI: https://berocket.com?utm_source=free_plugin&utm_medium=plugins&utm_campaign=ajax_filters
10
  * Text Domain: BeRocket_AJAX_domain
11
  * Domain Path: /languages/
12
+ * WC tested up to: 4.3
13
  */
14
+ define( "BeRocket_AJAX_filters_version", '1.5.0.6' );
15
  define( "BeRocket_AJAX_filters_file", __FILE__ );
16
  include_once('main.php');