Plugin Directory

Changeset 3342808


Ignore:
Timestamp:
08/11/2025 11:15:18 AM (8 months ago)
Author:
MooveAgency
Message:

Version 5.0.3 released

Location:
gdpr-cookie-compliance
Files:
153 added
9 edited

Legend:

Unmodified
Added
Removed
  • gdpr-cookie-compliance/trunk/assets/scripts/main.js

    r3336406 r3342808  
    648648          var current_cookies = m_g_read_cookies();
    649649
     650          var default_strict = moove_frontend_gdpr_scripts.enabled_default.strict;
    650651          var default_trirdparty = moove_frontend_gdpr_scripts.enabled_default.third_party;
    651652          var default_advanced = moove_frontend_gdpr_scripts.enabled_default.advanced;
     
    656657          var is_created = false;
    657658
    658           if ( ( document.cookie.indexOf("moove_gdpr_popup") >= 0 ) || ( default_trirdparty == 1 || default_advanced == 1 || default_performance == 1 || default_preference == 1 ) ) {
     659          if ( ( document.cookie.indexOf("moove_gdpr_popup") >= 0 ) || ( default_trirdparty == 1 || default_advanced == 1 || default_performance == 1 || default_preference == 1 || default_strict == 1 ) ) {
    659660            var cookies = moove_gdpr_read_cookie('moove_gdpr_popup');
     661
     662            if ( default_strict == 1 ) {
     663              initial_cookies.strict = 1;
     664            }
    660665
    661666            if ( default_trirdparty == 1 ) {
     
    11171122        }
    11181123
    1119         function moove_gdpr_inject_scripts_on_load(cookies) {
     1124        function moove_gdpr_inject_scripts_on_load(cookies) {         
    11201125          initial_cookies = m_g_read_cookies();
     1126
    11211127          if ( cookies ) {
    11221128            var cookie_input = cookies;
     
    11251131
    11261132            if ( injected_scripts !== false ) {
    1127               var already_injected = JSON.parse( injected_scripts );
     1133              var already_injected = JSON.parse( injected_scripts );             
    11281134
    11291135              if ( parseInt( already_injected.thirdparty ) === 1 && parseInt( cookies.thirdparty ) === 1 ) {
     
    11791185                var scripts_defined = JSON.parse( moove_frontend_gdpr_scripts.scripts_defined );
    11801186
    1181                 if ( parseInt( cookies.strict ) === 1 ) {
     1187                if ( ( typeof cookies.strict !== 'undefined' && parseInt( cookies.strict ) === 1 ) || parseInt( moove_frontend_gdpr_scripts.enabled_default.strict ) > 1 ) {
     1188                  if ( ( ( cookies.strict !== 'undefined' && parseInt( cookies.strict ) === 1 ) || parseInt( moove_frontend_gdpr_scripts.enabled_default.strict ) > 1 ) && typeof gdpr_cookies_loaded.strict === 'undefined' ) {
     1189                    if ( typeof scripts_defined.strict !== 'undefined' && scripts_defined.strict.header ) {
     1190                      postscribe(document.head, scripts_defined.strict.header);
     1191                    }
     1192                    if ( typeof scripts_defined.strict !== 'undefined' && scripts_defined.strict.body ) {
     1193                      $(scripts_defined.strict.body).prependTo(document.body);
     1194                    }
     1195
     1196                    if ( typeof scripts_defined.strict !== 'undefined' && scripts_defined.strict.footer ) {
     1197                      postscribe(document.body, scripts_defined.strict.footer);
     1198                    }
     1199                    gdpr_cookies_loaded.strict = true;
     1200                  }
     1201
    11821202                  if ( parseInt( cookies.thirdparty ) === 1 && typeof gdpr_cookies_loaded.thirdparty === 'undefined' ) {
    11831203                    if ( scripts_defined.thirdparty.header ) {
     
    12491269             
    12501270            } else {
    1251               if ( typeof gdpr_cookies_loaded.thirdparty === 'undefined' || typeof gdpr_cookies_loaded.advanced === 'undefined' ) {
     1271              if ( typeof gdpr_cookies_loaded.strict === 'undefined' || typeof gdpr_cookies_loaded.thirdparty === 'undefined' || typeof gdpr_cookies_loaded.advanced === 'undefined' ) {
     1272                if ( cookies.strict === 1 ) {
     1273                  gdpr_cookies_loaded.strict  = true;
     1274                }
    12521275                if ( cookies.thirdparty === 1 ) {
    12531276                  gdpr_cookies_loaded.thirdparty  = true;
     
    12651288                var wp_lang = typeof moove_frontend_gdpr_scripts.wp_lang !== 'undefined' ? moove_frontend_gdpr_scripts.wp_lang : '';
    12661289               
    1267                 if ( parseInt( cookies.thirdparty ) === 0 && parseInt( cookies.advanced ) === 0 && parseInt( cookies.performance ) === 0 && parseInt( cookies.preference ) === 0 ) {
     1290                if ( parseInt( cookies.strict ) === 0 && parseInt( cookies.thirdparty ) === 0 && parseInt( cookies.advanced ) === 0 && parseInt( cookies.performance ) === 0 && parseInt( cookies.preference ) === 0 ) {
    12681291                  gdpr_delete_all_cookies();
    12691292                }
     
    13961419                  var scripts_defined = JSON.parse( moove_frontend_gdpr_scripts.scripts_defined );   
    13971420
    1398                   if ( parseInt( cookies.strict ) === 1 ) {
     1421                  if ( ( typeof cookies.strict !== 'undefined' && parseInt( cookies.strict ) === 1 ) || parseInt( moove_frontend_gdpr_scripts.enabled_default.strict ) > 1 ) {
     1422                    if ( ( ( cookies.strict !== 'undefined' && parseInt( cookies.strict ) === 1 ) || parseInt( moove_frontend_gdpr_scripts.enabled_default.strict ) > 1 ) && typeof gdpr_cookies_loaded.strict === 'undefined' ) {
     1423                      if ( typeof scripts_defined.strict !== 'undefined' && scripts_defined.strict.header ) {
     1424                        postscribe(document.head, scripts_defined.strict.header);
     1425                      }
     1426                      if ( typeof scripts_defined.strict !== 'undefined' && scripts_defined.strict.body ) {
     1427                        $(scripts_defined.strict.body).prependTo(document.body);
     1428                      }
     1429
     1430                      if ( typeof scripts_defined.strict !== 'undefined' && scripts_defined.strict.footer ) {
     1431                        postscribe(document.body, scripts_defined.strict.footer);
     1432                      }
     1433                      gdpr_cookies_loaded.strict = true;
     1434                    }
     1435
    13991436                    if ( parseInt( cookies.thirdparty ) === 1 && typeof gdpr_cookies_loaded.thirdparty === 'undefined' ) {
    14001437                      if ( scripts_defined.thirdparty.header ) {
     
    15181555
    15191556        function moove_gdpr_check_cookie(){
     1557
    15201558          var path = location.pathname;
    15211559          var initial_scroll = $(window).scrollTop();
    15221560          $('#moove_gdpr_save_popup_settings_button').show();
     1561
     1562          var default_strict = moove_frontend_gdpr_scripts.enabled_default.strict;
    15231563          var default_trirdparty = moove_frontend_gdpr_scripts.enabled_default.third_party;
    15241564          var default_advanced = moove_frontend_gdpr_scripts.enabled_default.advanced;
     
    15291569          if ( ( typeof moove_frontend_gdpr_scripts.enable_on_scroll !== 'undefined' ) && moove_frontend_gdpr_scripts.enable_on_scroll === 'true' ) {
    15301570           
    1531             if ( parseInt( default_trirdparty ) !== 1 && parseInt( default_advanced ) !== 1 && parseInt( default_performance ) !== 1 && parseInt( default_preference ) !== 1 ) {
     1571            if ( parseInt( default_trirdparty ) !== 1 && parseInt( default_advanced ) !== 1 && parseInt( default_performance ) !== 1 && parseInt( default_preference ) !== 1 && parseInt( default_strict ) !== 1 ) {
     1572              default_strict = 1;
    15321573              default_trirdparty = 1;
    15331574              default_advanced = 1;
     
    15381579          }
    15391580
    1540           if ( ( document.cookie.indexOf("moove_gdpr_popup") >= 0 ) || ( default_trirdparty == 1 || default_advanced == 1 || default_performance == 1 || default_preference == 1 ) ) {
     1581          if ( ( document.cookie.indexOf("moove_gdpr_popup") >= 0 ) || ( default_trirdparty == 1 || default_advanced == 1 || default_performance == 1 || default_preference == 1 || default_strict > 1 ) ) {
    15411582
    15421583            var cookies = moove_gdpr_read_cookie('moove_gdpr_popup');
  • gdpr-cookie-compliance/trunk/class-gdpr-modules.php

    r3336406 r3342808  
    268268        $tab_title                    = isset( $modal_options[ 'moove_gdpr_strictly_necessary_cookies_tab_title' . $wpml_lang ] ) && $modal_options[ 'moove_gdpr_strictly_necessary_cookies_tab_title' . $wpml_lang ] ? $modal_options[ 'moove_gdpr_strictly_necessary_cookies_tab_title' . $wpml_lang ] : __( 'Strictly Necessary Cookies', 'gdpr-cookie-compliance' );
    269269        $tab_content                  = isset( $modal_options[ 'moove_gdpr_strict_necessary_cookies_tab_content' . $wpml_lang ] ) && $modal_options[ 'moove_gdpr_strict_necessary_cookies_tab_content' . $wpml_lang ] ? $modal_options[ 'moove_gdpr_strict_necessary_cookies_tab_content' . $wpml_lang ] : $gdpr_default_content->moove_gdpr_get_strict_necessary_content();
    270         $strictly                     = 2;
     270        $strictly                     = isset( $modal_options['moove_gdpr_strictly_necessary_cookies_functionality'] ) && intval( $modal_options['moove_gdpr_strictly_necessary_cookies_functionality'] ) ? intval( $modal_options['moove_gdpr_strictly_necessary_cookies_functionality'] ) : 1;
     271        $strictly                                       = $strictly && 3 === intval( $strictly ) ? 2 : $strictly;
     272
     273        $strictly_ccat_enable               = isset( $modal_options['moove_gdpr_strictly_ccat_enable'] ) ? ( intval( $modal_options['moove_gdpr_strictly_ccat_enable'] ) === 1 ? true : ( ! isset( $modal_options['moove_gdpr_strictly_ccat_enable'] ) ? true : false ) ) : true;
     274
    271275        $data                         = new stdClass();
    272276        $data->options                = $modal_options;
     
    275279        $data->tab_content            = wp_kses_post( wpautop( $tab_content ) );
    276280        $data->show                   = 3 !== $strictly;
     281        $data->show                                     = $strictly_ccat_enable ? $data->show : false;
    277282        $data->is_checked             = 1 !== $strictly ? 'disabled checked="checked" ' : '';
     283        if ( 4 === $strictly )  :
     284            $data->is_checked = ' checked="checked" ';
     285        endif;
    278286        $data->text_enable            = isset( $modal_options[ 'moove_gdpr_modal_enabled_checkbox_label' . $wpml_lang ] ) && $modal_options[ 'moove_gdpr_modal_enabled_checkbox_label' . $wpml_lang ] ? $modal_options[ 'moove_gdpr_modal_enabled_checkbox_label' . $wpml_lang ] : __( 'Enabled', 'gdpr-cookie-compliance' );
    279287        $data->text_disable           = isset( $modal_options[ 'moove_gdpr_modal_disabled_checkbox_label' . $wpml_lang ] ) && $modal_options[ 'moove_gdpr_modal_disabled_checkbox_label' . $wpml_lang ] ? $modal_options[ 'moove_gdpr_modal_disabled_checkbox_label' . $wpml_lang ] : __( 'Disabled', 'gdpr-cookie-compliance' );
    280288        $data->warning_message_top    = false;
    281289        $data->warning_message_bottom = false;
    282         $data->checkbox_state         = 1 !== $strictly ? 'gdpr-checkbox-disabled checkbox-selected' : '';
     290        $data->checkbox_state         = 2 === $strictly ? 'gdpr-checkbox-disabled checkbox-selected' : '';
    283291        $data->visibility             = 'v1' === $layout ? 'style="display:none"' : '';
    284292        return $view_controller->load( 'modal.content-sections.strictly', $data );
     
    297305        $tab_title             = isset( $modal_options[ 'moove_gdpr_advanced_cookies_tab_title' . $wpml_lang ] ) && $modal_options[ 'moove_gdpr_advanced_cookies_tab_title' . $wpml_lang ] ? $modal_options[ 'moove_gdpr_advanced_cookies_tab_title' . $wpml_lang ] : __( 'Marketing', 'gdpr-cookie-compliance' );
    298306        $tab_content           = isset( $modal_options[ 'moove_gdpr_advanced_cookies_tab_content' . $wpml_lang ] ) && $modal_options[ 'moove_gdpr_advanced_cookies_tab_content' . $wpml_lang ] ? $modal_options[ 'moove_gdpr_advanced_cookies_tab_content' . $wpml_lang ] : $gdpr_default_content->moove_gdpr_get_advanced_cookies_content();
    299         $strictly              = 2;
     307        $strictly              = isset( $modal_options['moove_gdpr_strictly_necessary_cookies_functionality'] ) && intval( $modal_options['moove_gdpr_strictly_necessary_cookies_functionality'] ) ? intval( $modal_options['moove_gdpr_strictly_necessary_cookies_functionality'] ) : 1;
     308        $strictly                        = $strictly && 3 === intval( $strictly ) ? 2 : $strictly;
    300309        $data                  = new stdClass();
    301310        $data->options         = $modal_options;
     
    326335        $tab_title             = isset( $modal_options[ 'moove_gdpr_performance_cookies_tab_title' . $wpml_lang ] ) && $modal_options[ 'moove_gdpr_performance_cookies_tab_title' . $wpml_lang ] ? $modal_options[ 'moove_gdpr_performance_cookies_tab_title' . $wpml_lang ] : __( 'Analytics', 'gdpr-cookie-compliance' );
    327336        $tab_content           = isset( $modal_options[ 'moove_gdpr_performance_cookies_tab_content' . $wpml_lang ] ) && $modal_options[ 'moove_gdpr_performance_cookies_tab_content' . $wpml_lang ] ? $modal_options[ 'moove_gdpr_performance_cookies_tab_content' . $wpml_lang ] : $gdpr_default_content->moove_gdpr_get_third_party_content();
    328         $strictly              = 2;
     337        $strictly              = isset( $modal_options['moove_gdpr_strictly_necessary_cookies_functionality'] ) && intval( $modal_options['moove_gdpr_strictly_necessary_cookies_functionality'] ) ? intval( $modal_options['moove_gdpr_strictly_necessary_cookies_functionality'] ) : 1;
     338        $strictly                        = $strictly && 3 === intval( $strictly ) ? 2 : $strictly;
    329339        $data                  = new stdClass();
    330340        $data->options         = $modal_options;
     
    426436        $modal_options      = $this->gdpr_options;
    427437        $wpml_lang          = $this->wpml_lang;
    428         $strictly           = 2;
     438        $strictly           = isset( $modal_options['moove_gdpr_strictly_necessary_cookies_functionality'] ) && intval( $modal_options['moove_gdpr_strictly_necessary_cookies_functionality'] ) ? intval( $modal_options['moove_gdpr_strictly_necessary_cookies_functionality'] ) : 1;
     439        $strictly                   = $strictly && 3 === intval( $strictly ) ? 2 : $strictly;
    429440        $data               = new stdClass();
    430441        $data->overview     = new stdClass();
     
    439450
    440451        // STRICTLY.
    441         $data->strictly->show      = 3 !== $strictly;
     452        $strictly_ccat_enable               = isset( $modal_options['moove_gdpr_strictly_ccat_enable'] ) ? ( intval( $modal_options['moove_gdpr_strictly_ccat_enable'] ) === 1 ? true : ( ! isset( $modal_options['moove_gdpr_strictly_ccat_enable'] ) ? true : false ) ) : true;
     453
     454        $data->strictly->show = 3 !== $strictly;
     455        $data->strictly->show = $strictly_ccat_enable ? $data->strictly->show : false;
     456
    442457        $data->strictly->nav_label = isset( $modal_options[ 'moove_gdpr_strictly_necessary_cookies_tab_title' . $wpml_lang ] ) && $modal_options[ 'moove_gdpr_strictly_necessary_cookies_tab_title' . $wpml_lang ] ? $modal_options[ 'moove_gdpr_strictly_necessary_cookies_tab_title' . $wpml_lang ] : __( 'Strictly Necessary Cookies', 'gdpr-cookie-compliance' );
    443458        $data->strictly->nav_label = esc_attr( $data->strictly->nav_label );
  • gdpr-cookie-compliance/trunk/class-moove-gdpr-actions.php

    r3336406 r3342808  
    5959        add_action( 'wp_footer', array( 'Moove_GDPR_Controller', 'moove_gdpr_cookie_popup_modal' ), 99 );
    6060        add_action( 'wp_head', array( 'Moove_GDPR_Content', 'gdpr_google_consent_mode2_snippet' ) );
    61         add_action( 'wp_body_open', array( 'Moove_GDPR_Content', 'moove_gdpr_after_body_open' ) );
    6261
    6362        add_action( 'admin_init', array( 'Moove_GDPR_Controller', 'moove_gdpr_add_editor_styles' ) );
     
    841840            'strict_init'         => 2,
    842841            'enabled_default'     => array(
     842                'strict'    => isset( $modal_options['moove_gdpr_strictly_necessary_cookies_functionality'] ) && intval( $modal_options['moove_gdpr_strictly_necessary_cookies_functionality'] ) ? intval( $modal_options['moove_gdpr_strictly_necessary_cookies_functionality'] ) : 1,
    843843                'third_party' => isset( $modal_options['moove_gdpr_third_party_cookies_enable_first_visit'] ) && intval( $modal_options['moove_gdpr_third_party_cookies_enable_first_visit'] ) ? intval( $modal_options['moove_gdpr_third_party_cookies_enable_first_visit'] ) : 0,
    844844                'advanced'    => isset( $modal_options['moove_gdpr_advanced_cookies_enable_first_visit'] ) && intval( $modal_options['moove_gdpr_advanced_cookies_enable_first_visit'] ) ? intval( $modal_options['moove_gdpr_advanced_cookies_enable_first_visit'] ) : 0,
  • gdpr-cookie-compliance/trunk/class-moove-gdpr-content.php

    r3339399 r3342808  
    238238    }
    239239
    240     public static function moove_gdpr_after_body_open() {
    241         $gdpr_default_content = new Moove_GDPR_Content();
    242         $option_name          = $gdpr_default_content->moove_gdpr_get_option_name();
    243         $gdpr_options         = get_option( $option_name );
    244         if ( isset( $gdpr_options['moove_gdpr_strictly_body_scripts'] ) && $gdpr_options['moove_gdpr_strictly_body_scripts'] ) :
    245             echo $gdpr_options['moove_gdpr_strictly_body_scripts'];
    246         endif;
    247     }
    248 
    249240    /**
    250241     * Get strict secondary notice [DEPRECATED]
     
    264255        $gdin_values          = isset( $gdpr_options['gdin_values'] ) ? json_decode( $gdpr_options['gdin_values'], true ) : array();
    265256        $gdin_modules         = gdpr_get_integration_modules( $gdpr_options, $gdin_values );
    266         if ( isset( $gdpr_options['moove_gdpr_strictly_header_scripts'] ) && $gdpr_options['moove_gdpr_strictly_header_scripts'] ) :
    267             echo $gdpr_options['moove_gdpr_strictly_header_scripts'];
    268         endif;
    269257        if ( isset( $gdin_modules['gtmc2'] ) && isset( $gdin_modules['gtmc2']['tacking_id'] ) && $gdin_modules['gtmc2']['status'] ) :
    270258            ?>
     
    774762        $wpml_lang_options = $this->moove_gdpr_get_wpml_lang();
    775763
    776         $strictly_functionality = 2;
     764        $strictly_functionality = isset( $gdpr_options['moove_gdpr_strictly_necessary_cookies_functionality'] ) && intval( $gdpr_options['moove_gdpr_strictly_necessary_cookies_functionality'] ) ? intval( $gdpr_options['moove_gdpr_strictly_necessary_cookies_functionality'] ) : 1;
     765
     766        $strictly_default     = isset( $gdpr_options['moove_gdpr_strictly_necessary_cookies_functionality'] ) && intval( $gdpr_options['moove_gdpr_strictly_necessary_cookies_functionality'] ) ? intval( $gdpr_options['moove_gdpr_strictly_necessary_cookies_functionality'] ) : 0;
     767        $strictly_default       = 4 === $strictly_default || 2 === $strictly_default ? 1 : 0;
     768
    777769        $thirdparty_default     = isset( $gdpr_options['moove_gdpr_third_party_cookies_enable_first_visit'] ) && intval( $gdpr_options['moove_gdpr_third_party_cookies_enable_first_visit'] ) ? intval( $gdpr_options['moove_gdpr_third_party_cookies_enable_first_visit'] ) : 0;
    778770        $advanced_default       = isset( $gdpr_options['moove_gdpr_advanced_cookies_enable_first_visit'] ) && intval( $gdpr_options['moove_gdpr_advanced_cookies_enable_first_visit'] ) ? intval( $gdpr_options['moove_gdpr_advanced_cookies_enable_first_visit'] ) : 0;
     
    782774        $preference_default = isset( $gdpr_options['moove_gdpr_preference_ccat_enable_first_visit'] ) && intval( $gdpr_options['moove_gdpr_preference_ccat_enable_first_visit'] ) ? intval( $gdpr_options['moove_gdpr_preference_ccat_enable_first_visit'] ) : 0;
    783775
    784         if ( 1 === $strictly_functionality ) :
     776        if ( 1 === $strictly_functionality && 1 !== $strictly_default ) :
    785777            if ( 1 === $thirdparty_default || 1 === $advanced_default || 1 === $performance_default || 1 === $preference_default ) :
    786778                $strict_default = 1;
    787779            else :
    788                 $strict_default = 0;
     780                $strict_default = 2 === $strictly_default ? 1 : 0;
    789781            endif;
    790782        else :
  • gdpr-cookie-compliance/trunk/controllers/class-moove-gdpr-controller.php

    r3336406 r3342808  
    325325            $content = gdpr_get_module( 'infobar-base' );
    326326            apply_filters( 'gdpr_cc_keephtml', $content, true );
    327 
    328             $gdpr_default_content = new Moove_GDPR_Content();
    329             $option_name          = $gdpr_default_content->moove_gdpr_get_option_name();
    330             $gdpr_options         = get_option( $option_name );
    331        
    332             if ( isset( $gdpr_options['moove_gdpr_strictly_footer_scripts'] ) && $gdpr_options['moove_gdpr_strictly_footer_scripts'] ) :
    333                 echo $gdpr_options['moove_gdpr_strictly_footer_scripts'];
    334             endif;
    335327        endif;
    336328    }
     
    356348
    357349            $cache_array = array(
     350                'strict'  => array(
     351                    'header' => '',
     352                    'body'   => '',
     353                    'footer' => '',
     354                ),
    358355                'thirdparty'  => array(
    359356                    'header' => '',
     
    378375            );
    379376
     377            // STRICTLY NECESSARY - SCRIPT CACHE.
     378
     379
     380            ob_start();
     381            if ( isset( $modal_options['moove_gdpr_strictly_ccat_enable'] ) && intval( $modal_options['moove_gdpr_strictly_ccat_enable'] ) === 1 ) :
     382                $strict_scripts = isset( $modal_options['moove_gdpr_strictly_header_scripts'] ) && $modal_options['moove_gdpr_strictly_header_scripts'] ? maybe_unserialize( $modal_options['moove_gdpr_strictly_header_scripts'] ) : '';
     383                $strict_scripts = apply_filters( 'moove_gdpr_strictly_header_assets', $strict_scripts );
     384                apply_filters( 'gdpr_cc_keephtml', $strict_scripts, true );
     385            endif;
     386            $cache_array['strict']['header'] .= ob_get_clean();
     387
     388            ob_start();
     389            if ( isset( $modal_options['moove_gdpr_strictly_ccat_enable'] ) && intval( $modal_options['moove_gdpr_strictly_ccat_enable'] ) === 1 ) :
     390                $strict_scripts = isset( $modal_options['moove_gdpr_strictly_body_scripts'] ) && $modal_options['moove_gdpr_strictly_body_scripts'] ? maybe_unserialize( $modal_options['moove_gdpr_strictly_body_scripts'] ) : '';
     391                $strict_scripts = apply_filters( 'moove_gdpr_strictly_body_assets', $strict_scripts );
     392                apply_filters( 'gdpr_cc_keephtml', $strict_scripts, true );
     393            endif;
     394            $cache_array['strict']['body'] .= ob_get_clean();
     395
     396            ob_start();
     397            if ( isset( $modal_options['moove_gdpr_strictly_ccat_enable'] ) && intval( $modal_options['moove_gdpr_strictly_ccat_enable'] ) === 1 ) :
     398                $strict_scripts = isset( $modal_options['moove_gdpr_strictly_footer_scripts'] ) && $modal_options['moove_gdpr_strictly_footer_scripts'] ? maybe_unserialize( $modal_options['moove_gdpr_strictly_footer_scripts'] ) : '';
     399                $strict_scripts = apply_filters( 'moove_gdpr_strictly_footer_assets', $strict_scripts );
     400                apply_filters( 'gdpr_cc_keephtml', $strict_scripts, true );
     401            endif;
     402            $cache_array['strict']['footer'] .= ob_get_clean();
     403
    380404            // THIRD PARTY - SCRIPT CACHE.
    381405            ob_start();
     
    453477            endif;
    454478
     479            if ( $strict ) :
     480                if ( isset( $transient_from_cache['strict'] ) ) :
     481                    $scripts_array['strict']['header'] = $transient_from_cache['strict']['header'];
     482                    $scripts_array['strict']['body']   = $transient_from_cache['strict']['body'];
     483                    $scripts_array['strict']['footer'] = $transient_from_cache['strict']['footer'];
     484                endif;
     485            endif;
     486
    455487            if ( $advanced ) :
    456488                if ( isset( $transient_from_cache['advanced'] ) ) :
     
    464496
    465497        $scripts_json   = apply_filters( 'gdpr_filter_scripts_before_insert', json_encode( $scripts_array ) ); // phpcs:ignore
     498
     499
    466500        return str_replace( '<script', '<script data-gdpr', $scripts_json );
    467501    }
     
    491525
    492526            $cache_array = array(
     527                'strict' => array(
     528                    'header' => '',
     529                    'body'   => '',
     530                    'footer' => '',
     531                ),
    493532                'thirdparty' => array(
    494533                    'header' => '',
     
    502541                ),
    503542            );
     543
     544            // STRICTLY NECESSARY - SCRIPT CACHE.
     545            ob_start();
     546            if ( isset( $modal_options['moove_gdpr_strictly_ccat_enable'] ) && intval( $modal_options['moove_gdpr_strictly_ccat_enable'] ) === 1 ) :
     547                $third_party_scripts = isset( $modal_options['moove_gdpr_strictly_header_scripts'] ) && $modal_options['moove_gdpr_strictly_header_scripts'] ? maybe_unserialize( $modal_options['moove_gdpr_strictly_header_scripts'] ) : '';
     548                $third_party_scripts = apply_filters( 'moove_gdpr_strictly_header_assets', $third_party_scripts );
     549                apply_filters( 'gdpr_cc_keephtml', $third_party_scripts, true );
     550            endif;
     551            $cache_array['strict']['header'] .= ob_get_clean();
     552
     553            ob_start();
     554            if ( isset( $modal_options['moove_gdpr_strictly_ccat_enable'] ) && intval( $modal_options['moove_gdpr_strictly_ccat_enable'] ) === 1 ) :
     555                $third_party_scripts = isset( $modal_options['moove_gdpr_strictly_body_scripts'] ) && $modal_options['moove_gdpr_strictly_body_scripts'] ? maybe_unserialize( $modal_options['moove_gdpr_strictly_body_scripts'] ) : '';
     556                $third_party_scripts = apply_filters( 'moove_gdpr_strictly_body_assets', $third_party_scripts );
     557                apply_filters( 'gdpr_cc_keephtml', $third_party_scripts, true );
     558            endif;
     559            $cache_array['strict']['body'] .= ob_get_clean();
     560
     561            ob_start();
     562            if ( isset( $modal_options['moove_gdpr_strictly_ccat_enable'] ) && intval( $modal_options['moove_gdpr_strictly_ccat_enable'] ) === 1 ) :
     563                $third_party_scripts = isset( $modal_options['moove_gdpr_strictly_footer_scripts'] ) && $modal_options['moove_gdpr_strictly_footer_scripts'] ? maybe_unserialize( $modal_options['moove_gdpr_strictly_footer_scripts'] ) : '';
     564                $third_party_scripts = apply_filters( 'moove_gdpr_strictly_footer_assets', $third_party_scripts );
     565                apply_filters( 'gdpr_cc_keephtml', $third_party_scripts, true );
     566            endif;
     567            $cache_array['strict']['footer'] .= ob_get_clean();
    504568
    505569            // THIRD PARTY - SCRIPT CACHE.
  • gdpr-cookie-compliance/trunk/dist/scripts/main.js

    r3336406 r3342808  
    1 !function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports.postscribe=o():e.postscribe=o()}(this,function(){return function(e){function o(t){if(r[t])return r[t].exports;var n=r[t]={exports:{},id:t,loaded:!1};return e[t].call(n.exports,n,n.exports,o),n.loaded=!0,n.exports}var r={};return o.m=e,o.c=r,o.p="",o(0)}([function(e,o,r){"use strict";var t=r(1),n=function(e){return e&&e.__esModule?e:{default:e}}(t);e.exports=n.default},function(e,o,r){"use strict";function t(){}function n(){var e=g.shift();if(e){var o=_.last(e);o.afterDequeue(),e.stream=i.apply(void 0,e),o.afterStreamStart()}}function i(e,o,r){function i(e){e=r.beforeWrite(e),m.write(e),r.afterWrite(e)}m=new c.default(e,r),m.id=f++,m.name=r.name||m.id,s.streams[m.name]=m;var d=e.ownerDocument,p={close:d.close,open:d.open,write:d.write,writeln:d.writeln};a(d,{close:t,open:t,write:function(){for(var e=arguments.length,o=Array(e),r=0;r<e;r++)o[r]=arguments[r];return i(o.join(""))},writeln:function(){for(var e=arguments.length,o=Array(e),r=0;r<e;r++)o[r]=arguments[r];return i(o.join("")+"\n")}});var _=m.win.onerror||t;return m.win.onerror=function(e,o,t){r.error({msg:e+" - "+o+": "+t}),_.apply(m.win,[e,o,t])},m.write(o,function(){a(d,p),m.win.onerror=_,r.done(),m=null,n()}),m}function s(e,o,r){if(_.isFunction(r))r={done:r};else if("clear"===r)return g=[],m=null,void(f=0);r=_.defaults(r,l),e=/^#/.test(e)?window.document.getElementById(e.substr(1)):e.jquery?e[0]:e;var i=[e,o,r];return e.postscribe={cancel:function(){i.stream?i.stream.abort():i[1]=t}},r.beforeEnqueue(i),g.push(i),m||n(),e.postscribe}o.__esModule=!0;var a=Object.assign||function(e){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e};o.default=s;var d=r(2),c=function(e){return e&&e.__esModule?e:{default:e}}(d),p=r(4),_=function(e){if(e&&e.__esModule)return e;var o={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);return o.default=e,o}(p),l={afterAsync:t,afterDequeue:t,afterStreamStart:t,afterWrite:t,autoFix:!0,beforeEnqueue:t,beforeWriteToken:function(e){return e},beforeWrite:function(e){return e},done:t,error:function(e){throw new Error(e.msg)},releaseAsync:!1},f=0,g=[],m=null;a(s,{streams:{},queue:g,WriteStream:c.default})},function(e,o,r){"use strict";function t(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}function n(e,o){var r=_+o,t=e.getAttribute(r);return p.existy(t)?String(t):t}function i(e,o){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,t=_+o;p.existy(r)&&""!==r?e.setAttribute(t,r):e.removeAttribute(t)}o.__esModule=!0;var s=Object.assign||function(e){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e},a=r(3),d=function(e){return e&&e.__esModule?e:{default:e}}(a),c=r(4),p=function(e){if(e&&e.__esModule)return e;var o={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);return o.default=e,o}(c),_="data-ps-",l="ps-style",f="ps-script",g=function(){function e(o){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t(this,e),this.root=o,this.options=r,this.doc=o.ownerDocument,this.win=this.doc.defaultView||this.doc.parentWindow,this.parser=new d.default("",{autoFix:r.autoFix}),this.actuals=[o],this.proxyHistory="",this.proxyRoot=this.doc.createElement(o.nodeName),this.scriptStack=[],this.writeQueue=[],i(this.proxyRoot,"proxyof",0)}return e.prototype.write=function(){var e;for((e=this.writeQueue).push.apply(e,arguments);!this.deferredRemote&&this.writeQueue.length;){var o=this.writeQueue.shift();p.isFunction(o)?this._callFunction(o):this._writeImpl(o)}},e.prototype._callFunction=function(e){var o={type:"function",value:e.name||e.toString()};this._onScriptStart(o),e.call(this.win,this.doc),this._onScriptDone(o)},e.prototype._writeImpl=function(e){this.parser.append(e);for(var o=void 0,r=void 0,t=void 0,n=[];(o=this.parser.readToken())&&!(r=p.isScript(o))&&!(t=p.isStyle(o));)(o=this.options.beforeWriteToken(o))&&n.push(o);n.length>0&&this._writeStaticTokens(n),r&&this._handleScriptToken(o),t&&this._handleStyleToken(o)},e.prototype._writeStaticTokens=function(e){var o=this._buildChunk(e);return o.actual?(o.html=this.proxyHistory+o.actual,this.proxyHistory+=o.proxy,this.proxyRoot.innerHTML=o.html,this._walkChunk(),o):null},e.prototype._buildChunk=function(e){for(var o=this.actuals.length,r=[],t=[],n=[],i=e.length,s=0;s<i;s++){var a=e[s],d=a.toString();if(r.push(d),a.attrs){if(!/^noscript$/i.test(a.tagName)){var c=o++;t.push(d.replace(/(\/?>)/," "+_+"id="+c+" $1")),a.attrs.id!==f&&a.attrs.id!==l&&n.push("atomicTag"===a.type?"":"<"+a.tagName+" "+_+"proxyof="+c+(a.unary?" />":">"))}}else t.push(d),n.push("endTag"===a.type?d:"")}return{tokens:e,raw:r.join(""),actual:t.join(""),proxy:n.join("")}},e.prototype._walkChunk=function(){for(var e=void 0,o=[this.proxyRoot];p.existy(e=o.shift());){var r=1===e.nodeType;if(!(r&&n(e,"proxyof"))){r&&(this.actuals[n(e,"id")]=e,i(e,"id"));var t=e.parentNode&&n(e.parentNode,"proxyof");t&&this.actuals[t].appendChild(e)}o.unshift.apply(o,p.toArray(e.childNodes))}},e.prototype._handleScriptToken=function(e){var o=this,r=this.parser.clear();r&&this.writeQueue.unshift(r),e.src=e.attrs.src||e.attrs.SRC,(e=this.options.beforeWriteToken(e))&&(e.src&&this.scriptStack.length?this.deferredRemote=e:this._onScriptStart(e),this._writeScriptToken(e,function(){o._onScriptDone(e)}))},e.prototype._handleStyleToken=function(e){var o=this.parser.clear();o&&this.writeQueue.unshift(o),e.type=e.attrs.type||e.attrs.TYPE||"text/css",e=this.options.beforeWriteToken(e),e&&this._writeStyleToken(e),o&&this.write()},e.prototype._writeStyleToken=function(e){var o=this._buildStyle(e);this._insertCursor(o,l),e.content&&(o.styleSheet&&!o.sheet?o.styleSheet.cssText=e.content:o.appendChild(this.doc.createTextNode(e.content)))},e.prototype._buildStyle=function(e){var o=this.doc.createElement(e.tagName);return o.setAttribute("type",e.type),p.eachKey(e.attrs,function(e,r){o.setAttribute(e,r)}),o},e.prototype._insertCursor=function(e,o){this._writeImpl('<span id="'+o+'"/>');var r=this.doc.getElementById(o);r&&r.parentNode.replaceChild(e,r)},e.prototype._onScriptStart=function(e){e.outerWrites=this.writeQueue,this.writeQueue=[],this.scriptStack.unshift(e)},e.prototype._onScriptDone=function(e){return e!==this.scriptStack[0]?void this.options.error({msg:"Bad script nesting or script finished twice"}):(this.scriptStack.shift(),this.write.apply(this,e.outerWrites),void(!this.scriptStack.length&&this.deferredRemote&&(this._onScriptStart(this.deferredRemote),this.deferredRemote=null)))},e.prototype._writeScriptToken=function(e,o){var r=this._buildScript(e),t=this._shouldRelease(r),n=this.options.afterAsync;e.src&&(r.src=e.src,this._scriptLoadHandler(r,t?n:function(){o(),n()}));try{this._insertCursor(r,f),r.src&&!t||o()}catch(e){this.options.error(e),o()}},e.prototype._buildScript=function(e){var o=this.doc.createElement(e.tagName);return p.eachKey(e.attrs,function(e,r){o.setAttribute(e,r)}),e.content&&(o.text=e.content),o},e.prototype._scriptLoadHandler=function(e,o){function r(){e=e.onload=e.onreadystatechange=e.onerror=null}function t(){r(),null!=o&&o(),o=null}function n(e){r(),a(e),null!=o&&o(),o=null}function i(e,o){var r=e["on"+o];null!=r&&(e["_on"+o]=r)}var a=this.options.error;i(e,"load"),i(e,"error"),s(e,{onload:function(){if(e._onload)try{e._onload.apply(this,Array.prototype.slice.call(arguments,0))}catch(o){n({msg:"onload handler failed "+o+" @ "+e.src})}t()},onerror:function(){if(e._onerror)try{e._onerror.apply(this,Array.prototype.slice.call(arguments,0))}catch(o){return void n({msg:"onerror handler failed "+o+" @ "+e.src})}n({msg:"remote script failed "+e.src})},onreadystatechange:function(){/^(loaded|complete)$/.test(e.readyState)&&t()}})},e.prototype._shouldRelease=function(e){return!/^script$/i.test(e.nodeName)||!!(this.options.releaseAsync&&e.src&&e.hasAttribute("async"))},e}();o.default=g},function(e,o,r){!function(o,r){e.exports=function(){return function(e){function o(t){if(r[t])return r[t].exports;var n=r[t]={exports:{},id:t,loaded:!1};return e[t].call(n.exports,n,n.exports,o),n.loaded=!0,n.exports}var r={};return o.m=e,o.c=r,o.p="",o(0)}([function(e,o,r){"use strict";var t=r(1),n=function(e){return e&&e.__esModule?e:{default:e}}(t);e.exports=n.default},function(e,o,r){"use strict";function t(e){if(e&&e.__esModule)return e;var o={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);return o.default=e,o}function n(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}o.__esModule=!0;var i=r(2),s=t(i),a=r(3),d=t(a),c=r(6),p=function(e){return e&&e.__esModule?e:{default:e}}(c),_=r(5),l={comment:/^<!--/,endTag:/^<\//,atomicTag:/^<\s*(script|style|noscript|iframe|textarea)[\s\/>]/i,startTag:/^</,chars:/^[^<]/},f=function(){function e(){var o=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,e),this.stream=r;var i=!1,a={};for(var d in s)s.hasOwnProperty(d)&&(t.autoFix&&(a[d+"Fix"]=!0),i=i||a[d+"Fix"]);i?(this._readToken=(0,p.default)(this,a,function(){return o._readTokenImpl()}),this._peekToken=(0,p.default)(this,a,function(){return o._peekTokenImpl()})):(this._readToken=this._readTokenImpl,this._peekToken=this._peekTokenImpl)}return e.prototype.append=function(e){this.stream+=e},e.prototype.prepend=function(e){this.stream=e+this.stream},e.prototype._readTokenImpl=function(){var e=this._peekTokenImpl();if(e)return this.stream=this.stream.slice(e.length),e},e.prototype._peekTokenImpl=function(){for(var e in l)if(l.hasOwnProperty(e)&&l[e].test(this.stream)){var o=d[e](this.stream);if(o)return"startTag"===o.type&&/script|style/i.test(o.tagName)?null:(o.text=this.stream.substr(0,o.length),o)}},e.prototype.peekToken=function(){return this._peekToken()},e.prototype.readToken=function(){return this._readToken()},e.prototype.readTokens=function(e){for(var o=void 0;o=this.readToken();)if(e[o.type]&&!1===e[o.type](o))return},e.prototype.clear=function(){var e=this.stream;return this.stream="",e},e.prototype.rest=function(){return this.stream},e}();o.default=f,f.tokenToString=function(e){return e.toString()},f.escapeAttributes=function(e){var o={};for(var r in e)e.hasOwnProperty(r)&&(o[r]=(0,_.escapeQuotes)(e[r],null));return o},f.supports=s;for(var g in s)s.hasOwnProperty(g)&&(f.browserHasFlaw=f.browserHasFlaw||!s[g]&&g)},function(e,o){"use strict";o.__esModule=!0;var r=!1,t=!1,n=window.document.createElement("div");try{var i="<P><I></P></I>";n.innerHTML=i,o.tagSoup=r=n.innerHTML!==i}catch(e){o.tagSoup=r=!1}try{n.innerHTML="<P><i><P></P></i></P>",o.selfClose=t=2===n.childNodes.length}catch(e){o.selfClose=t=!1}n=null,o.tagSoup=r,o.selfClose=t},function(e,o,r){"use strict";function t(e){var o=e.indexOf("--\x3e");if(o>=0)return new c.CommentToken(e.substr(4,o-1),o+3)}function n(e){var o=e.indexOf("<");return new c.CharsToken(o>=0?o:e.length)}function i(e){if(-1!==e.indexOf(">")){var o=e.match(p.startTag);if(o){var r=function(){var e={},r={},t=o[2];return o[2].replace(p.attr,function(o,n){arguments[2]||arguments[3]||arguments[4]||arguments[5]?arguments[5]?(e[arguments[5]]="",r[arguments[5]]=!0):e[n]=arguments[2]||arguments[3]||arguments[4]||p.fillAttr.test(n)&&n||"":e[n]="",t=t.replace(o,"")}),{v:new c.StartTagToken(o[1],o[0].length,e,r,!!o[3],t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""))}}();if("object"===(void 0===r?"undefined":d(r)))return r.v}}}function s(e){var o=i(e);if(o){var r=e.slice(o.length);if(r.match(new RegExp("</\\s*"+o.tagName+"\\s*>","i"))){var t=r.match(new RegExp("([\\s\\S]*?)</\\s*"+o.tagName+"\\s*>","i"));if(t)return new c.AtomicTagToken(o.tagName,t[0].length+o.length,o.attrs,o.booleanAttrs,t[1])}}}function a(e){var o=e.match(p.endTag);if(o)return new c.EndTagToken(o[1],o[0].length)}o.__esModule=!0;var d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};o.comment=t,o.chars=n,o.startTag=i,o.atomicTag=s,o.endTag=a;var c=r(4),p={startTag:/^<([\-A-Za-z0-9_]+)((?:\s+[\w\-]+(?:\s*=?\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,endTag:/^<\/([\-A-Za-z0-9_]+)[^>]*>/,attr:/(?:([\-A-Za-z0-9_]+)\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))|(?:([\-A-Za-z0-9_]+)(\s|$)+)/g,fillAttr:/^(checked|compact|declare|defer|disabled|ismap|multiple|nohref|noresize|noshade|nowrap|readonly|selected)$/i}},function(e,o,r){"use strict";function t(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}o.__esModule=!0,o.EndTagToken=o.AtomicTagToken=o.StartTagToken=o.TagToken=o.CharsToken=o.CommentToken=o.Token=void 0;var n=r(5),i=(o.Token=function e(o,r){t(this,e),this.type=o,this.length=r,this.text=""},o.CommentToken=function(){function e(o,r){t(this,e),this.type="comment",this.length=r||(o?o.length:0),this.text="",this.content=o}return e.prototype.toString=function(){return"\x3c!--"+this.content},e}(),o.CharsToken=function(){function e(o){t(this,e),this.type="chars",this.length=o,this.text=""}return e.prototype.toString=function(){return this.text},e}(),o.TagToken=function(){function e(o,r,n,i,s){t(this,e),this.type=o,this.length=n,this.text="",this.tagName=r,this.attrs=i,this.booleanAttrs=s,this.unary=!1,this.html5Unary=!1}return e.formatTag=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r="<"+e.tagName;for(var t in e.attrs)if(e.attrs.hasOwnProperty(t)){r+=" "+t;var i=e.attrs[t];void 0!==e.booleanAttrs&&void 0!==e.booleanAttrs[t]||(r+='="'+(0,n.escapeQuotes)(i)+'"')}return e.rest&&(r+=" "+e.rest),r+=e.unary&&!e.html5Unary?"/>":">",void 0!==o&&null!==o&&(r+=o+"</"+e.tagName+">"),r},e}());o.StartTagToken=function(){function e(o,r,n,i,s,a){t(this,e),this.type="startTag",this.length=r,this.text="",this.tagName=o,this.attrs=n,this.booleanAttrs=i,this.html5Unary=!1,this.unary=s,this.rest=a}return e.prototype.toString=function(){return i.formatTag(this)},e}(),o.AtomicTagToken=function(){function e(o,r,n,i,s){t(this,e),this.type="atomicTag",this.length=r,this.text="",this.tagName=o,this.attrs=n,this.booleanAttrs=i,this.unary=!1,this.html5Unary=!1,this.content=s}return e.prototype.toString=function(){return i.formatTag(this,this.content)},e}(),o.EndTagToken=function(){function e(o,r){t(this,e),this.type="endTag",this.length=r,this.text="",this.tagName=o}return e.prototype.toString=function(){return"</"+this.tagName+">"},e}()},function(e,o){"use strict";function r(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e?e.replace(/([^"]*)"/g,function(e,o){return/\\/.test(o)?o+'"':o+'\\"'}):o}o.__esModule=!0,o.escapeQuotes=r},function(e,o){"use strict";function r(e){return e&&"startTag"===e.type&&(e.unary=a.test(e.tagName)||e.unary,e.html5Unary=!/\/>$/.test(e.text)),e}function t(e,o){var t=e.stream,n=r(o());return e.stream=t,n}function n(e,o){var r=o.pop();e.prepend("</"+r.tagName+">")}function i(){var e=[];return e.last=function(){return this[this.length-1]},e.lastTagNameEq=function(e){var o=this.last();return o&&o.tagName&&o.tagName.toUpperCase()===e.toUpperCase()},e.containsTagName=function(e){for(var o,r=0;o=this[r];r++)if(o.tagName===e)return!0;return!1},e}function s(e,o,s){function a(){var o=t(e,s);o&&p[o.type]&&p[o.type](o)}var c=i(),p={startTag:function(r){var t=r.tagName;"TR"===t.toUpperCase()&&c.lastTagNameEq("TABLE")?(e.prepend("<TBODY>"),a()):o.selfCloseFix&&d.test(t)&&c.containsTagName(t)?c.lastTagNameEq(t)?n(e,c):(e.prepend("</"+r.tagName+">"),a()):r.unary||c.push(r)},endTag:function(r){c.last()?o.tagSoupFix&&!c.lastTagNameEq(r.tagName)?n(e,c):c.pop():o.tagSoupFix&&(s(),a())}};return function(){return a(),r(s())}}o.__esModule=!0,o.default=s;var a=/^(AREA|BASE|BASEFONT|BR|COL|FRAME|HR|IMG|INPUT|ISINDEX|LINK|META|PARAM|EMBED)$/i,d=/^(COLGROUP|DD|DT|LI|OPTIONS|P|TD|TFOOT|TH|THEAD|TR)$/i}])}()}()},function(e,o){"use strict";function r(e){return void 0!==e&&null!==e}function t(e){return"function"==typeof e}function n(e,o,r){var t=void 0,n=e&&e.length||0;for(t=0;t<n;t++)o.call(r,e[t],t)}function i(e,o,r){for(var t in e)e.hasOwnProperty(t)&&o.call(r,t,e[t])}function s(e,o){return e=e||{},i(o,function(o,t){r(e[o])||(e[o]=t)}),e}function a(e){try{return Array.prototype.slice.call(e)}catch(r){var o=function(){var o=[];return n(e,function(e){o.push(e)}),{v:o}}();if("object"===(void 0===o?"undefined":l(o)))return o.v}}function d(e){return e[e.length-1]}function c(e,o){return!(!e||"startTag"!==e.type&&"atomicTag"!==e.type||!("tagName"in e)||!~e.tagName.toLowerCase().indexOf(o))}function p(e){return c(e,"script")}function _(e){return c(e,"style")}o.__esModule=!0;var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};o.existy=r,o.isFunction=t,o.each=n,o.eachKey=i,o.defaults=s,o.toArray=a,o.last=d,o.isTag=c,o.isScript=p,o.isStyle=_}])}),function(e,o){e.gdpr_lightbox=function(e,o){"use strict";function r(e){var o=I();return F&&e.length?(e.one(F,o.resolve),setTimeout(o.resolve,500)):o.resolve(),o.promise()}function t(e,r,t){if(1===arguments.length)return o.extend({},e);if("string"==typeof r){if(void 0===t)return void 0===e[r]?null:e[r];e[r]=t}else o.extend(e,r);return this}function n(e){for(var o,r=decodeURI(e.split("#")[0]).split("&"),t={},n=0,i=r.length;n<i;n++)r[n]&&(o=r[n].split("="),t[o[0]]=o[1]);return t}function i(e,r){return e+(e.indexOf("?")>-1?"&":"?")+o.param(r)}function s(e,o){var r=e.indexOf("#");return-1===r?o:(r>0&&(e=e.substr(r)),o+e)}function a(e){return o('<span class="gdpr_lightbox-error"></span>').append(e)}function d(e,r){var t=r.opener()&&r.opener().data("gdpr_lightbox-desc")||"Image with no description",n=o('<img src="'+e+'" alt="'+t+'"/>'),i=I(),s=function(){i.reject(a("Failed loading image"))};return n.on("load",function(){if(0===this.naturalWidth)return s();i.resolve(n)}).on("error",s),i.promise()}function c(e,r){var t,n,i;try{t=o(e)}catch(e){return!1}return!!t.length&&(n=o('<i style="display:none !important"></i>'),i=t.hasClass("gdpr_lightbox-hide"),r.element().one("gdpr_lightbox:remove",function(){n.before(t).remove(),i&&!t.closest(".gdpr_lightbox-content").length&&t.addClass("gdpr_lightbox-hide")}),t.removeClass("gdpr_lightbox-hide").after(n))}function p(e){var r=P.exec(e);return!!r&&g(s(e,i("https://www.youtube"+(r[2]||"")+".com/embed/"+r[4],o.extend({autoplay:1},n(r[5]||"")))))}function _(e){var r=R.exec(e);return!!r&&g(s(e,i("https://player.vimeo.com/video/"+r[3],o.extend({autoplay:1},n(r[4]||"")))))}function l(e){var r=U.exec(e);return!!r&&(0!==e.indexOf("http")&&(e="https:"+e),g(s(e,i("https://www.facebook.com/plugins/video.php?href="+e,o.extend({autoplay:1},n(r[4]||""))))))}function f(e){var o=M.exec(e);return!!o&&g(s(e,i("https://www.google."+o[3]+"/maps?"+o[6],{output:o[6].indexOf("layer=c")>0?"svembed":"embed"})))}function g(e){return'<div class="gdpr_lightbox-iframe-container"><iframe frameborder="0" allowfullscreen allow="autoplay; fullscreen" src="'+e+'"/></div>'}function m(){return C.documentElement.clientHeight?C.documentElement.clientHeight:Math.round(S.height())}function v(e){var o=y();o&&(27===e.keyCode&&o.options("esc")&&o.close(),9===e.keyCode&&u(e,o))}function u(e,o){var r=o.element().find(E),t=r.index(C.activeElement);e.shiftKey&&t<=0?(r.get(r.length-1),e.preventDefault()):e.shiftKey||t!==r.length-1||(r.get(0),e.preventDefault())}function h(){o.each(O,function(e,o){o.resize()})}function b(e){1===O.unshift(e)&&(N.addClass("gdpr_lightbox-active"),S.on({resize:h,keydown:v})),o("body > *").not(e.element()).addClass("gdpr_lightbox-hidden").each(function(){var e=o(this);void 0===e.data(D)&&e.data(D,e.attr(j)||null)}).attr(j,"true")}function k(e){var r;e.element().attr(j,"true"),1===O.length&&(N.removeClass("gdpr_lightbox-active"),S.off({resize:h,keydown:v})),O=o.grep(O,function(o){return e!==o}),r=O.length?O[0].element():o(".gdpr_lightbox-hidden"),r.removeClass("gdpr_lightbox-hidden").each(function(){var e=o(this),r=e.data(D);r?e.attr(j,r):e.removeAttr(j),e.removeData(D)})}function y(){return 0===O.length?null:O[0]}function w(e,r,t,n){var i,s="inline",a=o.extend({},t);return n&&a[n]?(i=a[n](e,r),s=n):(o.each(["inline","iframe"],function(e,o){delete a[o],a[o]=t[o]}),o.each(a,function(o,t){return!t||(!(!t.test||t.test(e,r))||(i=t(e,r),!1!==i?(s=o,!1):void 0))})),{handler:s,content:i||""}}function x(e,n,i,s){function a(e){p=o(e).css("max-height",m()+"px"),c.find(".gdpr_lightbox-loader").each(function(){var e=o(this);r(e).always(function(){e.remove()})}),c.removeClass("gdpr_lightbox-loading").find(".gdpr_lightbox-content").empty().append(p),l=!0,p.trigger("gdpr_lightbox:ready",[_])}var d,c,p,_=this,l=!1,f=!1;n=o.extend({},A,n),c=o(n.template),_.element=function(){return c},_.opener=function(){return i},_.options=o.proxy(t,_,n),_.handlers=o.proxy(t,_,n.handlers),_.resize=function(){l&&!f&&p.css("max-height",m()+"px").trigger("gdpr_lightbox:resize",[_])},_.close=function(){if(l&&!f){f=!0,k(_);var e=I();return s&&(C.activeElement===c[0]||o.contains(c[0],C.activeElement)),p.trigger("gdpr_lightbox:close",[_]),c.removeClass("gdpr_lightbox-opened").addClass("gdpr_lightbox-closed"),r(p.add(c)).always(function(){p.trigger("gdpr_lightbox:remove",[_]),c.remove(),c=void 0,e.resolve()}),e.promise()}},d=w(e,_,n.handlers,n.handler),c.attr(j,"false").addClass("gdpr_lightbox-loading gdpr_lightbox-opened gdpr_lightbox-"+d.handler).appendTo("body").on("click","[data-gdpr_lightbox-close]",function(e){o(e.target).is("[data-gdpr_lightbox-close]")&&_.close()}).trigger("gdpr_lightbox:open",[_]),b(_),o.when(d.content).always(a)}function T(e,r,t){e.preventDefault?(e.preventDefault(),t=o(this),e=t.data("gdpr_lightbox-target")||t.attr("href")||t.attr("src")):t=o(t);var n=new x(e,o.extend({},t.data("gdpr_lightbox-options")||t.data("gdpr_lightbox"),r),t,C.activeElement);if(!e.preventDefault)return n}var C=e.document,S=o(e),I=o.Deferred,N=o("html"),O=[],j="ah",D="gdpr_lightbox-"+j,E='a[href],area[href],input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),iframe,object,embed,[contenteditable],[tabindex]:not([tabindex^="-"])',A={esc:!0,handler:null,handlers:{image:d,inline:c,youtube:p,vimeo:_,googlemaps:f,facebookvideo:l,iframe:g},template:'<div class="gdpr_lightbox" role="dialog" aria-label="Dialog Window (Press escape to close)" tabindex="-1"><div class="gdpr_lightbox-wrap" data-gdpr_lightbox-close role="document"><div class="gdpr_lightbox-loader">Loading...</div><div class="gdpr_lightbox-container"><div class="gdpr_lightbox-content"></div><button class="gdpr_lightbox-close" type="button" aria-label="Close (Press escape to close)" data-gdpr_lightbox-close>&times;</button></div></div></div>'},J=/(^data:image\/)|(\.(png|jpe?g|gif|svg|webp|bmp|ico|tiff?)(\?\S*)?$)/i,P=/(youtube(-nocookie)?\.com|youtu\.be)\/(watch\?v=|v\/|u\/|embed\/?)?([\w-]{11})(.*)?/i,R=/(vimeo(pro)?.com)\/(?:[^\d]+)?(\d+)\??(.*)?$/,M=/((maps|www)\.)?google\.([^\/\?]+)\/?((maps\/?)?\?)(.*)/i,U=/(facebook\.com)\/([a-z0-9_-]*)\/videos\/([0-9]*)(.*)?$/i,F=function(){var e=C.createElement("div"),o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var r in o)if(void 0!==e.style[r])return o[r];return!1}();return d.test=function(e){return J.test(e)},T.options=o.proxy(t,T,A),T.handlers=o.proxy(t,T,A.handlers),T.current=y,o(C).on("click.gdpr_lightbox","[data-gdpr_lightbox]",T),T}(e,e.jQuery||e.Zepto)}("undefined"!=typeof window?window:this),function(e){var o={common:{init:function(){"use strict";function o(e){var o;try{o=new URL(e)}catch(e){return!1}return"http:"===o.protocol||"https:"===o.protocol}function r(e){try{new URLSearchParams(window.location.search).has("gdpr_dbg")&&console.warn(e)}catch(e){console.warn(e)}}function t(){"true"===(void 0!==moove_frontend_gdpr_scripts.ajax_cookie_removal?moove_frontend_gdpr_scripts.ajax_cookie_removal:"false")&&e.post(moove_frontend_gdpr_scripts.ajaxurl,{action:"moove_gdpr_remove_php_cookies"},function(e){r("dbg - cookies removed")})}function n(){t();var o=void 0!==moove_frontend_gdpr_scripts.wp_lang?moove_frontend_gdpr_scripts.wp_lang:"";"true"===(void 0!==moove_frontend_gdpr_scripts.ajax_cookie_removal?moove_frontend_gdpr_scripts.ajax_cookie_removal:"false")?e.post(moove_frontend_gdpr_scripts.ajaxurl,{action:"moove_gdpr_get_scripts",strict:0,thirdparty:0,advanced:0,performance:0,preference:0,wp_lang:o},function(e){var o={};o.strict=1,o.thirdparty=0,o.advanced=0,o.performance=0,o.preference=0,h(),i("script_inject",o),_(o)}):h()}function i(e,o){try{jQuery().gdpr_cookie_compliance_analytics(e,o)}catch(e){}}function s(e){try{jQuery().gdpr_cookie_compliance_consent_log(e)}catch(e){}}function a(){var e=m("moove_gdpr_popup"),o={};return o.strict="0",o.thirdparty="0",o.advanced="0",o.performance="0",o.preference="0",e&&(e=JSON.parse(e),o.strict=e.strict,o.thirdparty=e.thirdparty,o.advanced=e.advanced,o.performance=void 0!==e.performance?e.performance:0,o.preference=void 0!==e.preference?e.preference:0,_(o),i("script_inject",e)),void 0!==moove_frontend_gdpr_scripts.ifbc?("strict"===moove_frontend_gdpr_scripts.ifbc&&e&&1===parseInt(e.strict)&&d(),"thirdparty"===moove_frontend_gdpr_scripts.ifbc&&e&&1===parseInt(e.thirdparty)&&d(),"advanced"===moove_frontend_gdpr_scripts.ifbc&&e&&1===parseInt(e.advanced)&&d(),"performance"===moove_frontend_gdpr_scripts.ifbc&&e&&void 0!==e.performance&&1===parseInt(e.performance)&&d(),"preference"===moove_frontend_gdpr_scripts.ifbc&&e&&void 0!==e.preference&&1===parseInt(e.preference)&&d()):"1"!==moove_frontend_gdpr_scripts.strict_init&&d(),o}function d(){e(document).find("iframe[data-gdpr-iframesrc]").each(function(){e(this).attr("src",e(this).attr("data-gdpr-iframesrc"))})}function c(e){w=!0,i("accept_all",""),g("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"1",advanced:"1",performance:"1",preference:"1"}),k),p("enabled-all")}function p(t){var n=!1;try{void 0!==moove_frontend_gdpr_scripts.force_reload&&"true"===moove_frontend_gdpr_scripts.force_reload&&(n=!0)}catch(e){}var s=a(),d=moove_frontend_gdpr_scripts.enabled_default.third_party,c=moove_frontend_gdpr_scripts.enabled_default.advanced,p=void 0!==moove_frontend_gdpr_scripts.enabled_default.performance&&moove_frontend_gdpr_scripts.enabled_default.performance,_=void 0!==moove_frontend_gdpr_scripts.enabled_default.preference&&moove_frontend_gdpr_scripts.enabled_default.preference;if(document.cookie.indexOf("moove_gdpr_popup")>=0||1==d||1==c||1==p||1==_){var f=m("moove_gdpr_popup");1==d&&(N.strict=1,N.thirdparty=d),1==c&&(N.strict=1,N.advanced=c),1==p&&(N.strict=1,N.performance=p),1==_&&(N.strict=1,N.preference=_),N&&(parseInt(s.strict)-parseInt(N.strict)<0&&(n=!0),parseInt(s.thirdparty)-parseInt(N.thirdparty)<0&&(n=!0),parseInt(s.advanced)-parseInt(N.advanced)<0&&(n=!0),parseInt(s.performance)-parseInt(N.performance)<0&&(n=!0),parseInt(s.preference)-parseInt(N.preference)<0&&(n=!0))}if(n)if(f={strict:0,thirdparty:0,advanced:0,performance:0,preference:0},i("script_inject",f),void 0!==moove_frontend_gdpr_scripts.scripts_defined)setTimeout(function(){location.reload(!0)},800);else{var g=e(document).find('script[src*="googletagmanager.com"]');g.length>0&&g.each(function(){var r=e(this).attr("src");if(r&&o(r)){var t=new URL(r),n=t.searchParams.get("id");n&&(document.cookie="woocommerce_"+n+"=true; expires=Thu, 31 Dec 1970 23:59:59 UTC; path=/",window["ga-disable-"+n]=!0),window.gtag&&window.gtag("remove"),e(this).remove()}});var u=void 0!==moove_frontend_gdpr_scripts.ajax_cookie_removal?moove_frontend_gdpr_scripts.ajax_cookie_removal:"true";if("function"==typeof navigator.sendBeacon)if("true"===u){var h=new FormData;h.append("action","moove_gdpr_remove_php_cookies"),navigator.sendBeacon(moove_frontend_gdpr_scripts.ajaxurl,h),location.reload(!0)}else location.reload(!0);else"true"===u?e.post(moove_frontend_gdpr_scripts.ajaxurl,{action:"moove_gdpr_remove_php_cookies"},function(e){location.reload(!0)}).fail(function(){location.reload(!0)}):location.reload(!0)}else{var b=m("moove_gdpr_popup");r("dbg - inject - 4"),v(b),l(),e("#moove_gdpr_save_popup_settings_button").show()}}function _(o){o&&(i("script_inject",o),1===parseInt(o.strict)?(e("#moove_gdpr_strict_cookies").is(":checked")||(e("#moove_gdpr_strict_cookies").prop("checked",!0).trigger("change"),e("#third_party_cookies fieldset, #third_party_cookies .gdpr-cc-form-fieldset").removeClass("fl-disabled"),e("#moove_gdpr_performance_cookies").prop("disabled",!1),e("#third_party_cookies .moove-gdpr-strict-secondary-warning-message").slideUp(),e("#advanced-cookies fieldset, #advanced-cookies .gdpr-cc-form-fieldset").removeClass("fl-disabled"),e("#advanced-cookies .moove-gdpr-strict-secondary-warning-message").slideUp(),e("#moove_gdpr_advanced_cookies").prop("disabled",!1),e("#performance-cookies fieldset, #performance-cookies .gdpr-cc-form-fieldset").removeClass("fl-disabled"),e("#performance-cookies .moove-gdpr-strict-secondary-warning-message").slideUp(),e("#moove_gdpr_performance_cc_cookies").prop("disabled",!1),e("#preference-cookies fieldset, #preference-cookies .gdpr-cc-form-fieldset").removeClass("fl-disabled"),e("#preference-cookies .moove-gdpr-strict-secondary-warning-message").slideUp(),e("#moove_gdpr_preference_cc_cookies").prop("disabled",!1)),void 0!==moove_frontend_gdpr_scripts.wp_consent_api&&"true"===moove_frontend_gdpr_scripts.wp_consent_api&&wp_set_consent("functional","allow")):(e("#moove_gdpr_strict_cookies").is(":checked")&&(e("#moove_gdpr_strict_cookies").prop("checked",!0).trigger("change"),e("#third_party_cookies fieldset, #third_party_cookies .gdpr-cc-form-fieldset").addClass("fl-disabled").closest(".moove-gdpr-status-bar").removeClass("checkbox-selected"),e("#moove_gdpr_performance_cookies").prop("disabled",!0).prop("checked",!1),e("#advanced-cookies fieldset, #advanced-cookies .gdpr-cc-form-fieldset").addClass("fl-disabled").closest(".moove-gdpr-status-bar").removeClass("checkbox-selected"),e("#moove_gdpr_advanced_cookies").prop("disabled",!0).prop("checked",!1),e("#performance-cookies fieldset, #performance-cookies .gdpr-cc-form-fieldset").addClass("fl-disabled").closest(".moove-gdpr-status-bar").removeClass("checkbox-selected"),e("#moove_gdpr_performance_cc_cookies").prop("disabled",!0).prop("checked",!1),e("#preference-cookies fieldset, #preference-cookies .gdpr-cc-form-fieldset").addClass("fl-disabled").closest(".moove-gdpr-status-bar").removeClass("checkbox-selected"),e("#moove_gdpr_preference_cc_cookies").prop("disabled",!0).prop("checked",!1)),void 0!==moove_frontend_gdpr_scripts.wp_consent_api&&"true"===moove_frontend_gdpr_scripts.wp_consent_api&&wp_set_consent("functional","deny")),1===parseInt(o.thirdparty)?(e("#moove_gdpr_performance_cookies").is(":checked")||e("#moove_gdpr_performance_cookies").prop("checked",!0).trigger("change"),void 0!==moove_frontend_gdpr_scripts.wp_consent_api&&"true"===moove_frontend_gdpr_scripts.wp_consent_api&&wp_set_consent("statistics","allow")):(e("#moove_gdpr_performance_cookies").is(":checked")&&e("#moove_gdpr_performance_cookies").prop("checked",!1).trigger("change"),void 0!==moove_frontend_gdpr_scripts.wp_consent_api&&"true"===moove_frontend_gdpr_scripts.wp_consent_api&&wp_set_consent("statistics","deny")),1===parseInt(o.advanced)?(e("#moove_gdpr_advanced_cookies").is(":checked")||e("#moove_gdpr_advanced_cookies").prop("checked",!0).trigger("change"),
    2 void 0!==moove_frontend_gdpr_scripts.wp_consent_api&&"true"===moove_frontend_gdpr_scripts.wp_consent_api&&wp_set_consent("marketing","allow")):(e("#moove_gdpr_advanced_cookies").is(":checked")&&e("#moove_gdpr_advanced_cookies").prop("checked",!1).trigger("change"),void 0!==moove_frontend_gdpr_scripts.wp_consent_api&&"true"===moove_frontend_gdpr_scripts.wp_consent_api&&wp_set_consent("marketing","deny")),1===parseInt(o.performance)?e("#moove_gdpr_performance_cc_cookies").is(":checked")||e("#moove_gdpr_performance_cc_cookies").prop("checked",!0).trigger("change"):e("#moove_gdpr_performance_cc_cookies").is(":checked")&&e("#moove_gdpr_performance_cc_cookies").prop("checked",!1).trigger("change"),1===parseInt(o.preference)?(e("#moove_gdpr_preference_cc_cookies").is(":checked")||e("#moove_gdpr_preference_cc_cookies").prop("checked",!0).trigger("change"),void 0!==moove_frontend_gdpr_scripts.wp_consent_api&&"true"===moove_frontend_gdpr_scripts.wp_consent_api&&wp_set_consent("preferences","allow")):(e("#moove_gdpr_preference_cc_cookies").is(":checked")&&e("#moove_gdpr_preference_cc_cookies").prop("checked",!1).trigger("change"),void 0!==moove_frontend_gdpr_scripts.wp_consent_api&&"true"===moove_frontend_gdpr_scripts.wp_consent_api&&wp_set_consent("preferences","deny")),e('input[data-name="moove_gdpr_performance_cookies"]').prop("checked",e("#moove_gdpr_performance_cookies").is(":checked")),e('input[data-name="moove_gdpr_strict_cookies"]').prop("checked",e("#moove_gdpr_strict_cookies").is(":checked")),e('input[data-name="moove_gdpr_advanced_cookies"]').prop("checked",e("#moove_gdpr_advanced_cookies").is(":checked")),e('input[data-name="moove_gdpr_performance_cc_cookies"]').prop("checked",e("#moove_gdpr_performance_cc_cookies").is(":checked")),e('input[data-name="moove_gdpr_preference_cc_cookies"]').prop("checked",e("#moove_gdpr_preference_cc_cookies").is(":checked")))}function l(){e("#moove_gdpr_cookie_info_bar").length>0&&(e("#moove_gdpr_cookie_info_bar").addClass("moove-gdpr-info-bar-hidden"),e("body").removeClass("gdpr-infobar-visible"),e("#moove_gdpr_cookie_info_bar").hide())}function f(){var o=!0;if("undefined"!=typeof sessionStorage&&1===parseInt(sessionStorage.getItem("gdpr_infobar_hidden"))&&(o=!1),void 0!==moove_frontend_gdpr_scripts.display_cookie_banner&&o){if("true"===moove_frontend_gdpr_scripts.display_cookie_banner)e("#moove_gdpr_cookie_info_bar").length>0&&(e("#moove_gdpr_cookie_info_bar").removeClass("moove-gdpr-info-bar-hidden"),e("#moove_gdpr_save_popup_settings_button:not(.button-visible)").hide(),e("body").addClass("gdpr-infobar-visible"),e("#moove_gdpr_cookie_info_bar").show(),i("show_infobar",""));else if(e("#moove_gdpr_cookie_info_bar").length>0){e("#moove_gdpr_cookie_info_bar").addClass("moove-gdpr-info-bar-hidden"),e("body").removeClass("gdpr-infobar-visible"),e("#moove_gdpr_cookie_info_bar").hide();var t={strict:1,thirdparty:1,advanced:1,performance:1,preference:1};r("dbg - inject - 5"),v(JSON.stringify(t))}}else e("#moove_gdpr_cookie_info_bar").length>0&&o&&(e("#moove_gdpr_cookie_info_bar").removeClass("moove-gdpr-info-bar-hidden"),e("#moove_gdpr_save_popup_settings_button:not(.button-visible)").hide(),e("body").addClass("gdpr-infobar-visible"),e("#moove_gdpr_cookie_info_bar").show(),i("show_infobar",""))}function g(e,o,t){var n;if(t>0){var i=new Date;i.setTime(i.getTime()+24*t*60*60*1e3),n="; expires="+i.toGMTString()}else n="";try{var a="SameSite=Lax";void 0!==moove_frontend_gdpr_scripts.cookie_attributes&&(a=moove_frontend_gdpr_scripts.cookie_attributes),void 0!==moove_frontend_gdpr_scripts.gdpr_consent_version&&(o=JSON.parse(o),o.version=moove_frontend_gdpr_scripts.gdpr_consent_version,o=JSON.stringify(o)),"moove_gdpr_popup"===e&&0===parseInt(o.strict)?void 0!==moove_frontend_gdpr_scripts.gdpr_scor&&"false"===moove_frontend_gdpr_scripts.gdpr_scor?document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(o)+n+"; path=/; "+a:document.cookie=encodeURIComponent(e)+"=; Path=/;":document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(o)+n+"; path=/; "+a,o!==A&&(A=o,s(o))}catch(e){r("error - moove_gdpr_create_cookie: "+e)}}function m(e){for(var o=encodeURIComponent(e)+"=",r=document.cookie.split(";"),t=0;t<r.length;t++){for(var n=r[t];" "===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(o)){var i=decodeURIComponent(n.substring(o.length,n.length)),s=JSON.parse(i);if(void 0!==s.version){if(void 0!==moove_frontend_gdpr_scripts.gdpr_consent_version){var a=moove_frontend_gdpr_scripts.gdpr_consent_version;if(parseFloat(a)>parseFloat(s.version))return document.cookie=e+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;",null}}else if(void 0!==moove_frontend_gdpr_scripts.gdpr_consent_version&&parseFloat(moove_frontend_gdpr_scripts.gdpr_consent_version)>1)return document.cookie=e+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;",null;return i}}return null}function v(o){if(N=a(),o){var r=o;o=JSON.parse(o);a();if(!1!==O){var t=JSON.parse(O);1===parseInt(t.thirdparty)&&1===parseInt(o.thirdparty)&&(o.thirdparty="0"),1===parseInt(t.advanced)&&1===parseInt(o.advanced)&&(o.advanced="0"),1===parseInt(t.performance)&&1===parseInt(o.performance)&&(o.performance="0"),1===parseInt(t.preference)&&1===parseInt(o.preference)&&(o.preference="0")}if(i("script_inject",o),j=!0,void 0!==moove_frontend_gdpr_scripts.ifbc?("strict"===moove_frontend_gdpr_scripts.ifbc&&o&&1===parseInt(o.strict)&&d(),"thirdparty"===moove_frontend_gdpr_scripts.ifbc&&o&&1===parseInt(o.thirdparty)&&d(),"advanced"===moove_frontend_gdpr_scripts.ifbc&&o&&1===parseInt(o.advanced)&&d(),"performance"===moove_frontend_gdpr_scripts.ifbc&&o&&1===parseInt(o.performance)&&d(),"preference"===moove_frontend_gdpr_scripts.ifbc&&o&&1===parseInt(o.preference)&&d()):1===parseInt(o.strict)&&d(),void 0!==moove_frontend_gdpr_scripts.scripts_defined)try{var s=JSON.parse(moove_frontend_gdpr_scripts.scripts_defined);if(1===parseInt(o.strict))1===parseInt(o.thirdparty)&&void 0===y.thirdparty&&(s.thirdparty.header&&postscribe(document.head,s.thirdparty.header),s.thirdparty.body&&e(s.thirdparty.body).prependTo(document.body),s.thirdparty.footer&&postscribe(document.body,s.thirdparty.footer),y.thirdparty=!0),1===parseInt(o.advanced)&&void 0===y.advanced&&(s.advanced.header&&postscribe(document.head,s.advanced.header),s.advanced.body&&e(s.advanced.body).prependTo(document.body),s.advanced.footer&&postscribe(document.body,s.advanced.footer),y.advanced=!0),void 0!==o.performance&&1===parseInt(o.performance)&&void 0===y.performance&&(void 0!==s.performance&&s.performance.header&&postscribe(document.head,s.performance.header),void 0!==s.performance&&s.performance.body&&e(s.performance.body).prependTo(document.body),void 0!==s.performance&&s.performance.footer&&postscribe(document.body,s.performance.footer),y.performance=!0),void 0!==o.preference&&1===parseInt(o.preference)&&void 0===y.preference&&(void 0!==s.preference&&s.preference.header&&postscribe(document.head,s.preference.header),void 0!==s.preference&&s.preference.body&&e(s.preference.body).prependTo(document.body),void 0!==s.preference&&s.preference.footer&&postscribe(document.body,s.preference.footer),y.preference=!0);else{var o=m("moove_gdpr_popup");o&&(h(),n())}}catch(e){console.warn("1"),console.error(e)}else if(void 0===y.thirdparty||void 0===y.advanced){1===o.thirdparty&&(y.thirdparty=!0),1===o.advanced&&(y.advanced=!0),1===o.performance&&(y.performance=!0),1===o.preference&&(y.preference=!0);var c=void 0!==moove_frontend_gdpr_scripts.wp_lang?moove_frontend_gdpr_scripts.wp_lang:"";0===parseInt(o.thirdparty)&&0===parseInt(o.advanced)&&0===parseInt(o.performance)&&0===parseInt(o.preference)&&h(),e.post(moove_frontend_gdpr_scripts.ajaxurl,{action:"moove_gdpr_get_scripts",strict:o.strict,thirdparty:o.thirdparty,advanced:o.advanced,performance:o.performance,preference:o.preference,wp_lang:c},function(t){O=r,i("script_inject",o);var n=JSON.parse(t);n.header&&postscribe(document.head,n.header),n.body&&e(n.body).prependTo(document.body),n.footer&&postscribe(document.body,n.footer)})}}else f()}function u(){var o=!0;e(document).find("#moove_gdpr_cookie_modal input[type=checkbox]").each(function(){e(this).is(":checked")||(o=!1)})}function h(o){try{e(document).find("script[data-gdpr]").each(function(){r("script_removed: "+e(this).attr("src")),e(this).remove()});for(var t=document.cookie.split(";"),n=window.location.hostname,i=0;i<t.length;i++){var s=t[i],a=s.indexOf("="),d=a>-1?s.substr(0,a):s;d.includes("woocommerce")||d.includes("wc_")||d.includes("moove_gdpr_popup")||d.includes("wordpress")||(document.cookie=d+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT;domain="+n,document.cookie=d+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT;domain=."+n,r("cookie removed: "+d+" - "+n))}}catch(e){r("error in gdpr_delete_all_cookies: "+e)}"undefined"!=typeof sessionStorage&&sessionStorage.removeItem("gdpr_session")}function b(o){var r=m("moove_gdpr_popup");o&&(h(),t());var n="0",i="0",s="0",a="0",d="0",c=!1;r&&(r=JSON.parse(r),n=r.strict,i=r.advanced,s=r.thirdparty,a=void 0!==r.performance?r.performance:0,d=void 0!==r.preference?r.preference:0),e(document).find("#moove_gdpr_strict_cookies").length>0?e(document).find("#moove_gdpr_strict_cookies").is(":checked")?(n="1",c=!0):n="0":(c=!0,n="1"),e(document).find("#moove_gdpr_performance_cookies").is(":checked")?(s="1",c=!0):s="0",e(document).find("#moove_gdpr_advanced_cookies").is(":checked")?(i="1",c=!0):i="0",e(document).find("#moove_gdpr_performance_cc_cookies").is(":checked")?(a="1",c=!0):a="0",e(document).find("#moove_gdpr_preference_cc_cookies").is(":checked")?(d="1",c=!0):d="0",!r&&c?(g("moove_gdpr_popup",JSON.stringify({strict:n,thirdparty:s,advanced:i,performance:a,preference:d}),k),l(),e(document).find("#moove_gdpr_save_popup_settings_button").show()):r&&(w||g("moove_gdpr_popup",JSON.stringify({strict:n,thirdparty:s,advanced:i,performance:a,preference:d}),k));var r=m("moove_gdpr_popup");r&&(r=JSON.parse(r),"0"==r.strict&&"0"==r.thirdparty&&"0"==r.advanced&&"0"==r.performance&&"0"==r.preference&&h())}var k=365,y=[],w=!1;void 0!==moove_frontend_gdpr_scripts.cookie_expiration&&(k=moove_frontend_gdpr_scripts.cookie_expiration),e(document).on("click","#moove_gdpr_cookie_modal .moove-gdpr-modal-content.moove_gdpr_modal_theme_v1 .main-modal-content .moove-gdpr-tab-main:not(#privacy_overview) .tab-title",function(o){window.innerWidth<768&&(e(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-tab-main-content").is(":visible")?e(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-tab-main-content").slideUp(300):e(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-tab-main-content").slideDown(300))}),e(document).on("click tap",'#moove_gdpr_cookie_info_bar .moove-gdpr-infobar-reject-btn, [href*="#gdpr-reject-cookies"], .moove-gdpr-modal-reject-all',function(o){o.preventDefault(),h(),n(),e("#moove_gdpr_cookie_info_bar").length>0&&(e("#moove_gdpr_cookie_info_bar").addClass("moove-gdpr-info-bar-hidden"),e("body").removeClass("gdpr-infobar-visible"),e("#moove_gdpr_cookie_info_bar").hide(),e("#moove_gdpr_save_popup_settings_button").show()),e(".gdpr_lightbox .gdpr_lightbox-close").trigger("click"),e(document).moove_gdpr_lightbox_close(),void 0!==moove_frontend_gdpr_scripts.gdpr_scor&&"false"===moove_frontend_gdpr_scripts.gdpr_scor||(g("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"0",advanced:"0",performance:"0",preference:"0"}),k),setTimeout(function(){g("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"0",advanced:"0",performance:"0",preference:"0"}),k)},500)),p("reject-btn")});var x=!1,T=e(".moove_gdpr_modal_theme_v2 .moove-gdpr-tab-main").first(),C=e(".moove_gdpr_modal_theme_v2 .moove-gdpr-tab-main").first(),S=0,I=!1;e(document).on("keydown",function(o){if(e("body").hasClass("moove_gdpr_overflow")&&e(".moove-gdpr-modal-content").hasClass("moove_gdpr_modal_theme_v1")){if(38==o.keyCode){o.preventDefault();var r=e("#moove-gdpr-menu li.menu-item-selected"),t=r.prev();0===t.length&&(t=e("#moove-gdpr-menu li").last()),t.find(".moove-gdpr-tab-nav:visible").trigger("click"),e(".moove-gdpr-tab-main:visible").trigger("focus")}if(40==o.keyCode)if(o.preventDefault(),I){var r=e("#moove-gdpr-menu li.menu-item-selected"),t=r.prev();0===t.length&&(t=e("#moove-gdpr-menu li").last()),t.find(".moove-gdpr-tab-nav:visible").trigger("click"),e(".moove-gdpr-tab-main:visible").trigger("focus")}else{var r=e("#moove-gdpr-menu li.menu-item-selected"),n=r.next();0===n.length&&(n=e("#moove-gdpr-menu li").first()),n.find(".moove-gdpr-tab-nav:visible").trigger("click"),e(".moove-gdpr-tab-main:visible").trigger("focus")}if(9==o.keyCode){o.preventDefault();var i=e("#moove_gdpr_cookie_modal .mgbutton, #moove_gdpr_cookie_modal .moove-gdpr-modal-close, #moove_gdpr_cookie_modal #moove-gdpr-menu > li, #moove_gdpr_cookie_modal .moove-gdpr-branding");if(i.length>0){var s=!1;if(S<=i.length?(I?S--:S++,s=i[S],e(s).is(":visible")||(I?S--:S++,s=i[S])):(S=0,s=i[S]),e("#moove_gdpr_cookie_modal .focus-g").removeClass("focus-g"),S<0&&I&&(S=i.length),!s&&S>i.length&&(S=0,s=i[S]),e(s).addClass("focus-g").trigger("focus"),(e(s).hasClass("menu-item-on")||e(s).hasClass("menu-item-off"))&&e(s).find("button").trigger("click"),e(s).length>0)try{e(s)[0].scrollIntoViewIfNeeded()}catch(e){console.warn(e)}}else{e(".cookie-switch").removeClass("focus-g");var n=T.next();if(T=n,0===n.length&&(n=C,T=C),n.find(".cookie-switch").trigger("focus").addClass("focus-g"),n.find(".cookie-switch").length>0)try{n.find(".cookie-switch")[0].scrollIntoViewIfNeeded()}catch(e){console.warn(e)}}}if(32==o.keyCode){o.preventDefault();e(".moove-gdpr-tab-main:visible").find(".moove-gdpr-status-bar input[type=checkbox]").trigger("click")}13==o.keyCode&&(o.preventDefault(),e(document).find(".focus-g").length>0?e(document).find(".focus-g").trigger("click"):e(".moove-gdpr-modal-save-settings").trigger("click"))}if(e("body").hasClass("moove_gdpr_overflow")&&e(".moove-gdpr-modal-content").hasClass("moove_gdpr_modal_theme_v2")){if(38==o.keyCode){o.preventDefault();var r=e("#moove-gdpr-menu li.menu-item-selected"),t=r.prev();0===t.length&&(t=e("#moove-gdpr-menu li").last()),t.find(".moove-gdpr-tab-nav:visible").trigger("click"),e(".moove-gdpr-tab-main:visible").trigger("focus")}if(40==o.keyCode){o.preventDefault();var r=e("#moove-gdpr-menu li.menu-item-selected"),n=r.next();0===n.length&&(n=e("#moove-gdpr-menu li").first()),n.find(".moove-gdpr-tab-nav:visible").trigger("click"),e(".moove-gdpr-tab-main:visible").trigger("focus")}if(32==o.keyCode){o.preventDefault();e("#moove_gdpr_cookie_modal").find(".focus-g").trigger("click")}if(9==o.keyCode){o.preventDefault();var i=e("#moove_gdpr_cookie_modal .cookie-switch, #moove_gdpr_cookie_modal .mgbutton, #moove_gdpr_cookie_modal a:not(.moove-gdpr-branding), #moove_gdpr_cookie_modal .moove-gdpr-modal-close, #moove_gdpr_cookie_modal .moove-gdpr-branding");if(i.length>0){var s=!1;if(S<=i.length?(I?S--:S++,s=i[S],e(s).is(":visible")||(I?S--:S++,s=i[S])):(S=0,s=i[S]),e("#moove_gdpr_cookie_modal .focus-g").removeClass("focus-g"),S<0&&I&&(S=i.length),!s&&S>i.length&&(S=0,s=i[S]),e(s).addClass("focus-g").trigger("focus"),e(s).length>0)try{e(s)[0].scrollIntoViewIfNeeded()}catch(e){console.warn(e)}}else{e(".cookie-switch").removeClass("focus-g");var n=T.next();if(T=n,0===n.length&&(n=C,T=C),n.find(".cookie-switch").trigger("focus").addClass("focus-g"),n.find(".cookie-switch").length>0)try{n.find(".cookie-switch")[0].scrollIntoViewIfNeeded()}catch(e){console.warn(e)}}}13==o.keyCode&&(e("#moove_gdpr_cookie_modal .focus-g").length>0&&(e("#moove_gdpr_cookie_modal .focus-g").hasClass("mgbutton")||e("#moove_gdpr_cookie_modal .focus-g").hasClass("moove-gdpr-modal-close")||e("#moove_gdpr_cookie_modal .focus-g").attr("href"))?e("#moove_gdpr_cookie_modal .focus-g").attr("href")?e("#moove_gdpr_cookie_modal .focus-g").trigger("click"):(o.preventDefault(),e("#moove_gdpr_cookie_modal .focus-g").trigger("click")):(o.preventDefault(),e(".moove-gdpr-modal-save-settings").trigger("click")))}}),e(document).on("keyup",function(e){16==e.keyCode&&(I=!1),17!=e.keyCode&&18!=e.keyCode&&13!=e.keyCode||(I=!1)}),document.addEventListener("visibilitychange",function(e){I=!1}),e(document).on("keydown",function(o){if(16==o.keyCode&&(I=!0),e("body").hasClass("gdpr-infobar-visible")&&!e("body").hasClass("moove_gdpr_overflow")&&e("#moove_gdpr_cookie_info_bar").hasClass("gdpr-full-screen-infobar")){if(9==o.keyCode){o.preventDefault(),console.warn("fsw-tab");var r=e('#moove_gdpr_cookie_info_bar.gdpr-full-screen-infobar span.change-settings-button, #moove_gdpr_cookie_info_bar.gdpr-full-screen-infobar button.change-settings-button, #moove_gdpr_cookie_info_bar.gdpr-full-screen-infobar [data-target="third_party_cookies"] label, #moove_gdpr_cookie_info_bar.gdpr-full-screen-infobar [data-target="advanced-cookies"] label, #moove_gdpr_cookie_info_bar.gdpr-full-screen-infobar [data-target="performance-cookies"], #moove_gdpr_cookie_info_bar.gdpr-full-screen-infobar [data-target="preference-cookies"], label#moove_gdpr_cookie_info_bar.gdpr-full-screen-infobar .mgbutton');if(r.length>0){var t=!1;if(S<=r.length?(I?S--:S++,t=r[S],e(t).is(":visible")||(I?S--:S++,t=r[S])):(S=0,t=r[S]),e("#moove_gdpr_cookie_info_bar .focus-g").removeClass("focus-g"),S<0&&I&&(S=r.length),!t&&S>r.length&&(S=0,t=r[S]),e(document).find("*").blur(),e(t).addClass("focus-g").trigger("focus"),e(t).length>0)try{e(t)[0].scrollIntoViewIfNeeded()}catch(e){console.warn(e)}}else{e(".cookie-switch").removeClass("focus-g");var n=T.next();if(T=n,0===n.length&&(n=C,T=C),n.find(".cookie-switch").trigger("focus").addClass("focus-g"),n.find(".cookie-switch").length>0)try{n.find(".cookie-switch")[0].scrollIntoViewIfNeeded()}catch(e){console.warn(e)}}}if(32==o.keyCode){o.preventDefault();var i=e("#moove_gdpr_cookie_info_bar").find(".gdpr-shr-switch.focus-g input[type=checkbox]");console.warn("space"),i.trigger("click")}}13==o.keyCode&&e(document.activeElement).length>0&&e(document.activeElement).closest("#moove_gdpr_cookie_info_bar").length>0&&(o.preventDefault(),e(document.activeElement).trigger("click"))}),e.fn.moove_gdpr_read_cookies=function(e){var o=m("moove_gdpr_popup"),r={};return r.strict="0",r.thirdparty="0",r.advanced="0",r.performance="0",r.preference="0",o&&(o=JSON.parse(o),r.strict=parseInt(o.strict),r.thirdparty=parseInt(o.thirdparty),r.advanced=parseInt(o.advanced),r.performance=void 0!==o.performance?parseInt(o.performance):0,r.preference=void 0!==o.preference?parseInt(o.preference):0),r};var N=a(),O=!1,j=!1,D="",E=!1,A="";e(document).on("click tap","#moove_gdpr_cookie_info_bar .moove-gdpr-infobar-close-btn",function(o){if(o.preventDefault(),void 0!==moove_frontend_gdpr_scripts.close_btn_action){var r=parseInt(moove_frontend_gdpr_scripts.close_btn_action);1===r&&(l(),e("#moove_gdpr_save_popup_settings_button").show(),"undefined"!=typeof sessionStorage&&sessionStorage.setItem("gdpr_infobar_hidden",1)),2===r&&(h(),n(),e("#moove_gdpr_cookie_info_bar").length>0&&(e("#moove_gdpr_cookie_info_bar").addClass("moove-gdpr-info-bar-hidden"),e("body").removeClass("gdpr-infobar-visible"),e("#moove_gdpr_cookie_info_bar").hide(),e("#moove_gdpr_save_popup_settings_button").show()),e(".gdpr_lightbox .gdpr_lightbox-close").trigger("click"),e(document).moove_gdpr_lightbox_close(),void 0!==moove_frontend_gdpr_scripts.gdpr_scor&&"false"===moove_frontend_gdpr_scripts.gdpr_scor||(g("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"0",advanced:"0",performance:"0",preference:"0"}),k),setTimeout(function(){g("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"0",advanced:"0",performance:"0",preference:"0"}),k)},500)),p("reject-btn")),3===r&&c("enable_all close-btn"),4===r&&(h(),n(),e("#moove_gdpr_cookie_info_bar").length>0&&(e("#moove_gdpr_cookie_info_bar").addClass("moove-gdpr-info-bar-hidden"),e("body").removeClass("gdpr-infobar-visible"),e("#moove_gdpr_cookie_info_bar").hide(),e("#moove_gdpr_save_popup_settings_button").show()),e(".gdpr_lightbox .gdpr_lightbox-close").trigger("click"),e(document).moove_gdpr_lightbox_close(),void 0!==moove_frontend_gdpr_scripts.gdpr_scor&&"false"===moove_frontend_gdpr_scripts.gdpr_scor||(g("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"0",advanced:"0",performance:"0",preference:"0"}),k),setTimeout(function(){g("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"0",advanced:"0",performance:"0",preference:"0"}),k)},500)),void 0!==moove_frontend_gdpr_scripts.close_btn_rdr&&""!==moove_frontend_gdpr_scripts.close_btn_rdr?window.parent.location.href=moove_frontend_gdpr_scripts.close_btn_rdr:p("reject-btn"))}else l(),e("#moove_gdpr_save_popup_settings_button").show(),"undefined"!=typeof sessionStorage&&sessionStorage.setItem("gdpr_infobar_hidden",1)}),e.fn.moove_gdpr_save_cookie=function(o){var r=m("moove_gdpr_popup"),t=r,s=e(window).scrollTop();if(!r){if(o.thirdParty)var a="1";else var a="0";if(o.advanced)var c="1";else var c="0";if(o.performance)var p="1";else var p="0";if(o.preference)var l="1";else var l="0";if(o.scrollEnable){var f=o.scrollEnable;e(window).scroll(function(){!j&&e(this).scrollTop()-s>f&&("undefined"===o.thirdparty&&"undefined"===o.advanced||(g("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:a,advanced:c,performance:p,preference:l}),k),r=JSON.parse(r),_(r)))})}else"undefined"===o.thirdparty&&"undefined"===o.advanced||(g("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:a,advanced:c,performance:p,preference:l}),k),r=JSON.parse(r),_(r));if(r=m("moove_gdpr_popup"))if(r=JSON.parse(r),i("script_inject",r),j=!0,void 0!==moove_frontend_gdpr_scripts.ifbc?("strict"===moove_frontend_gdpr_scripts.ifbc&&r&&1===parseInt(r.strict)&&d(),"thirdparty"===moove_frontend_gdpr_scripts.ifbc&&r&&1===parseInt(r.thirdparty)&&d(),"advanced"===moove_frontend_gdpr_scripts.ifbc&&r&&1===parseInt(r.advanced)&&d(),"performance"===moove_frontend_gdpr_scripts.ifbc&&r&&1===parseInt(r.performance)&&d(),"preference"===moove_frontend_gdpr_scripts.ifbc&&r&&1===parseInt(r.preference)&&d()):1===parseInt(r.strict)&&d(),void 0!==moove_frontend_gdpr_scripts.scripts_defined)try{var v=JSON.parse(moove_frontend_gdpr_scripts.scripts_defined);if(1===parseInt(r.strict))1===parseInt(r.thirdparty)&&void 0===y.thirdparty&&(v.thirdparty.header&&postscribe(document.head,v.thirdparty.header),v.thirdparty.body&&e(v.thirdparty.body).prependTo(document.body),v.thirdparty.footer&&postscribe(document.body,v.thirdparty.footer),y.thirdparty=!0),1===parseInt(r.advanced)&&void 0===y.advanced&&(v.advanced.header&&postscribe(document.head,v.advanced.header),v.advanced.body&&e(v.advanced.body).prependTo(document.body),v.advanced.footer&&postscribe(document.body,v.advanced.footer),y.advanced=!0),void 0!==r.performance&&1===parseInt(r.performance)&&void 0===y.performance&&(void 0!==v.performance&&v.performance.header&&postscribe(document.head,v.performance.header),void 0!==v.performance&&v.performance.body&&e(v.performance.body).prependTo(document.body),void 0!==v.performance&&v.performance.footer&&postscribe(document.body,v.performance.footer),y.performance=!0),void 0!==r.preference&&1===parseInt(r.preference)&&void 0===y.preference&&(void 0!==v.preference&&v.preference.header&&postscribe(document.head,v.preference.header),void 0!==v.preference&&v.preference.body&&e(v.preference.body).prependTo(document.body),void 0!==v.preference&&v.preference.footer&&postscribe(document.body,v.preference.footer),y.preference=!0);else{var r=m("moove_gdpr_popup");r&&(h(),n())}}catch(e){console.warn("2"),console.error(e)}else if(void 0===y.thirdparty||void 0===y.advanced||void 0===y.performance||void 0===y.preference){1===r.thirdparty&&(y.thirdparty=!0),1===r.advanced&&(y.advanced=!0),1===r.performance&&(y.performance=!0),1===r.preference&&(y.preference=!0);var u=void 0!==moove_frontend_gdpr_scripts.wp_lang?moove_frontend_gdpr_scripts.wp_lang:"";0===parseInt(r.thirdparty)&&0===parseInt(r.advanced)&&0===parseInt(r.performance)&&0===parseInt(r.preference)&&h(),e.post(moove_frontend_gdpr_scripts.ajaxurl,{action:"moove_gdpr_get_scripts",strict:r.strict,thirdparty:r.thirdparty,advanced:r.advanced,performance:r.performance,preference:r.preference,wp_lang:u},function(o){O=t,i("script_inject",r);var n=JSON.parse(o);n.header&&postscribe(document.head,n.header),n.body&&e(n.body).prependTo(document.body),n.footer&&postscribe(document.body,n.footer)})}}},function(){var o=(location.pathname,e(window).scrollTop());e("#moove_gdpr_save_popup_settings_button").show();var t=moove_frontend_gdpr_scripts.enabled_default.third_party,n=moove_frontend_gdpr_scripts.enabled_default.advanced,i=void 0!==moove_frontend_gdpr_scripts.enabled_default.performance&&moove_frontend_gdpr_scripts.enabled_default.performance,s=void 0!==moove_frontend_gdpr_scripts.enabled_default.preference&&moove_frontend_gdpr_scripts.enabled_default.preference;if(void 0!==moove_frontend_gdpr_scripts.enable_on_scroll&&"true"===moove_frontend_gdpr_scripts.enable_on_scroll&&1!==parseInt(t)&&1!==parseInt(n)&&1!==parseInt(i)&&1!==parseInt(s)&&(t=1,n=1,i=1,s=1),document.cookie.indexOf("moove_gdpr_popup")>=0||1==t||1==n||1==i||1==s){var d=m("moove_gdpr_popup");if(d){var c=a();"0"==c.strict&&"0"==c.thirdparty&&"0"==c.advanced&&"0"==c.performance&&"0"==c.preference&&(h(),f())}else{var u=!1;if("undefined"!=typeof sessionStorage&&(u=sessionStorage.getItem("gdpr_session")),void 0!==moove_frontend_gdpr_scripts.enable_on_scroll&&"true"===moove_frontend_gdpr_scripts.enable_on_scroll){if(u)try{_(JSON.parse(u)),j=!0,r("dbg - inject - 1"),v(u),g("moove_gdpr_popup",u,k),l()}catch(e){}else if((!j&&1==moove_frontend_gdpr_scripts.enabled_default.third_party||!j&&1==moove_frontend_gdpr_scripts.enabled_default.advanced||!j&&1==moove_frontend_gdpr_scripts.enabled_default.performance||!j&&1==moove_frontend_gdpr_scripts.enabled_default.performance)&&(d={strict:1,thirdparty:t,advanced:n,performance:i,preference:s},_(d),d=JSON.stringify(d),x=!0,f(),r("dbg - default scroll inject")),void 0!==moove_frontend_gdpr_scripts.gdpr_aos_hide&&("1"===moove_frontend_gdpr_scripts.gdpr_aos_hide||"true"===moove_frontend_gdpr_scripts.gdpr_aos_hide||"object"==typeof moove_frontend_gdpr_scripts.gdpr_aos_hide&&moove_frontend_gdpr_scripts.gdpr_aos_hide.includes("1"))&&(r("dbg - enable on scroll - enter"),e(window).scroll(function(){if((!j||x)&&e(this).scrollTop()-o>200){d={strict:1,thirdparty:t,advanced:n,performance:i,preference:s},m("moove_gdpr_popup")||"undefined"!=typeof sessionStorage&&((u=sessionStorage.getItem("gdpr_session"))||(sessionStorage.setItem("gdpr_session",JSON.stringify(d)),u=sessionStorage.getItem("gdpr_session")));try{_(d),d=JSON.stringify(d),f(),j=!0,r("dbg - inject - 2 - accept on scroll"),x||v(d),x=!1,g("moove_gdpr_popup",d,k),l(),p("check reload on scroll"),e("#moove_gdpr_save_popup_settings_button").show()}catch(e){}}})),void 0!==moove_frontend_gdpr_scripts.gdpr_aos_hide&&("2"===moove_frontend_gdpr_scripts.gdpr_aos_hide||"object"==typeof moove_frontend_gdpr_scripts.gdpr_aos_hide&&moove_frontend_gdpr_scripts.gdpr_aos_hide.includes("2"))){var b=30;if(void 0!==moove_frontend_gdpr_scripts.gdpr_aos_hide_seconds)var b=parseInt(moove_frontend_gdpr_scripts.gdpr_aos_hide_seconds);r("dbg - hidetimer - enter, seconds: "+b),setTimeout(function(){if(r("dbg - hidetimer - is_created: "+j),!j){d={strict:1,thirdparty:t,advanced:n,performance:i,preference:s};var o=m("moove_gdpr_popup");r("dbg - hidetimer - cookies_stored: "+o),o||"undefined"!=typeof sessionStorage&&((u=sessionStorage.getItem("gdpr_session"))||(sessionStorage.setItem("gdpr_session",JSON.stringify(d)),u=sessionStorage.getItem("gdpr_session")));try{_(d),d=JSON.stringify(d),f(),j=!0,r("dbg - inject - 2a"),v(d),g("moove_gdpr_popup",d,k),p("check reload hidetimer")}catch(e){}}l(),e("#moove_gdpr_save_popup_settings_button").show()},1e3*b)}}else d={strict:1,thirdparty:t,advanced:n,performance:i,preference:s},_(d),d=JSON.stringify(d),f()}r("dbg - inject - 3"),v(d)}else f()}(),e(document).on("click",'[data-href*="#moove_gdpr_cookie_modal"],[href*="#moove_gdpr_cookie_modal"]',function(o){o.preventDefault(),e("#moove_gdpr_cookie_modal").length>0&&(E=!0,D=gdpr_lightbox("#moove_gdpr_cookie_modal"),e(".gdpr_lightbox").addClass("moove_gdpr_cookie_modal_open"),e(document).moove_gdpr_lightbox_open(),i("opened_modal_from_link",""))}),e(document).on("click",'[data-href*="#gdpr_cookie_modal"],[href*="#gdpr_cookie_modal"]',function(o){o.preventDefault(),e("#moove_gdpr_cookie_modal").length>0&&(E=!0,D=gdpr_lightbox("#moove_gdpr_cookie_modal"),e(".gdpr_lightbox").addClass("moove_gdpr_cookie_modal_open"),e(document).moove_gdpr_lightbox_open(),i("opened_modal_from_link",""))}),e(document).on("click tap","#moove_gdpr_cookie_info_bar .moove-gdpr-close-modal-button a, #moove_gdpr_cookie_info_bar .moove-gdpr-close-modal-button button",function(e){e.preventDefault()}),e(document).on("click tap",".moove-gdpr-modal-close",function(o){o.preventDefault(),e(".gdpr_lightbox .gdpr_lightbox-close").trigger("click"),e(document).moove_gdpr_lightbox_close()}),e(document).on("click","#moove-gdpr-menu .moove-gdpr-tab-nav",function(o){o.preventDefault(),o.stopPropagation(),e("#moove-gdpr-menu li").removeClass("menu-item-selected"),e(this).parent().addClass("menu-item-selected"),e(".moove-gdpr-tab-content .moove-gdpr-tab-main").hide(),e(e(this).attr("href")).show(),e(e(this).attr("data-href")).show(),i("clicked_to_tab",e(this).attr("data-href"))}),e(document).on("gdpr_lightbox:close",function(o,r){e(document).moove_gdpr_lightbox_close()}),e.fn.moove_gdpr_lightbox_close=function(o){E&&(e("body").removeClass("moove_gdpr_overflow"),E=!1)},e.fn.moove_gdpr_lightbox_open=function(o){if(E){e("body").addClass("moove_gdpr_overflow");var r=m("moove_gdpr_popup");document.activeElement.blur(),"none"===moove_frontend_gdpr_scripts.show_icons&&e("body").addClass("gdpr-no-icons"),e(".moove-gdpr-status-bar input[type=checkbox]").each(function(){e(this).is(":checked")?e(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-strict-warning-message").slideUp():e(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-strict-warning-message").slideDown()}),r?(r=JSON.parse(r),_(r)):e("#moove_gdpr_strict_cookies").is(":checked")||(e("#advanced-cookies .gdpr-cc-form-fieldset").addClass("fl-disabled"),e("#third_party_cookies .gdpr-cc-form-fieldset").addClass("fl-disabled")),void 0!==moove_frontend_gdpr_scripts.hide_save_btn&&"true"===moove_frontend_gdpr_scripts.hide_save_btn?e(".moove-gdpr-modal-save-settings").removeClass("button-visible").hide():e(".moove-gdpr-modal-save-settings").addClass("button-visible").show(),u()}},e(document).on("gdpr_lightbox:open",function(o,r){e(document).moove_gdpr_lightbox_open()}),e(document).on("click tap",".fl-disabled",function(o){e("#moove_gdpr_cookie_modal .moove-gdpr-modal-content").is(".moove_gdpr_modal_theme_v2")?e("#moove_gdpr_strict_cookies").length>0&&(e("#moove_gdpr_strict_cookies").trigger("click"),e(this).trigger("click")):e(this).closest(".moove-gdpr-tab-main-content").find(".moove-gdpr-strict-secondary-warning-message").slideDown()}),e(document).on("change",".moove-gdpr-status-bar input[type=checkbox]",function(o){e(".moove-gdpr-modal-save-settings").addClass("button-visible").show();var r=e(this).closest(".moove-gdpr-tab-main").attr("id");e(this).closest(".moove-gdpr-status-bar").toggleClass("checkbox-selected"),e(this).closest(".moove-gdpr-tab-main").toggleClass("checkbox-selected"),e("#moove-gdpr-menu .menu-item-"+r).toggleClass("menu-item-off"),e(this).is(":checked")?e(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-strict-warning-message").slideUp():e(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-strict-warning-message").slideDown(),e(this).is("#moove_gdpr_strict_cookies")&&(e(this).is(":checked")?(e("#third_party_cookies fieldset, #third_party_cookies .gdpr-cc-form-fieldset").removeClass("fl-disabled"),e("#moove_gdpr_performance_cookies").prop("disabled",!1),e("#third_party_cookies .moove-gdpr-strict-secondary-warning-message").slideUp(),
    3 e("#advanced-cookies fieldset, #advanced-cookies .gdpr-cc-form-fieldset").removeClass("fl-disabled"),e("#advanced-cookies .moove-gdpr-strict-secondary-warning-message").slideUp(),e("#moove_gdpr_advanced_cookies").prop("disabled",!1),e("#performance-cookies fieldset, #performance-cookies .gdpr-cc-form-fieldset").removeClass("fl-disabled"),e("#performance-cookies .moove-gdpr-strict-secondary-warning-message").slideUp(),e("#moove_gdpr_performance_cc_cookies").prop("disabled",!1),e("#preference-cookies fieldset, #preference-cookies .gdpr-cc-form-fieldset").removeClass("fl-disabled"),e("#preference-cookies .moove-gdpr-strict-secondary-warning-message").slideUp(),e("#moove_gdpr_preference_cc_cookies").prop("disabled",!1)):(e(".gdpr_cookie_settings_shortcode_content").find("input").each(function(){e(this).prop("checked",!1)}),e("#third_party_cookies fieldset, #third_party_cookies .gdpr-cc-form-fieldset").addClass("fl-disabled").closest(".moove-gdpr-status-bar").removeClass("checkbox-selected"),e("#moove_gdpr_performance_cookies").prop("disabled",!0).prop("checked",!1),e("#advanced-cookies fieldset, #advanced-cookies .gdpr-cc-form-fieldset").addClass("fl-disabled").closest(".moove-gdpr-status-bar").removeClass("checkbox-selected"),e("#moove_gdpr_advanced_cookies").prop("disabled",!0).prop("checked",!1),e("#performance-cookies fieldset, #performance-cookies .gdpr-cc-form-fieldset").addClass("fl-disabled").closest(".moove-gdpr-status-bar").removeClass("checkbox-selected"),e("#moove_gdpr_performance_cc_cookies").prop("disabled",!0).prop("checked",!1),e("#preference-cookies fieldset, #preference-cookies .gdpr-cc-form-fieldset").addClass("fl-disabled").closest(".moove-gdpr-status-bar").removeClass("checkbox-selected"),e("#moove_gdpr_preference_cc_cookies").prop("disabled",!0).prop("checked",!1))),e('input[data-name="'+e(this).attr("name")+'"]').prop("checked",e(this).is(":checked")),u()}),e(document).on("click tap",".gdpr_cookie_settings_shortcode_content a.gdpr-shr-save-settings",function(o){o.preventDefault(),b(!0),e(".gdpr_lightbox .gdpr_lightbox-close").trigger("click"),e(document).moove_gdpr_lightbox_close(),p("modal-save-settings")}),e(document).on("change",".gdpr_cookie_settings_shortcode_content input[type=checkbox]",function(o){var r=e(this).attr("data-name"),t=e("#"+r);e(this).is(":checked")?(e('input[data-name="'+r+'"]').prop("checked",!0),"moove_gdpr_strict_cookies"!==e(this).attr("data-name")&&(e(this).closest(".gdpr_cookie_settings_shortcode_content").find('input[data-name="moove_gdpr_strict_cookies"]').is(":checked")||(e('input[data-name="'+r+'"]').prop("checked",!1),e('.gdpr_cookie_settings_shortcode_content input[data-name="moove_gdpr_strict_cookies"]').closest(".gdpr-shr-switch").css("transform","scale(1.2)"),setTimeout(function(){e('.gdpr_cookie_settings_shortcode_content input[data-name="moove_gdpr_strict_cookies"]').closest(".gdpr-shr-switch").css("transform","scale(1)")},300)))):(e('input[data-name="'+r+'"]').prop("checked",e(this).is(":checked")),"moove_gdpr_strict_cookies"===e(this).attr("data-name")&&e(".gdpr_cookie_settings_shortcode_content").find('input[type="checkbox"]').prop("checked",!1)),t.trigger("click")}),e(document).on("click tap",'.moove-gdpr-modal-allow-all, [href*="#gdpr-accept-cookies"]',function(o){o.preventDefault(),e("#moove_gdpr_cookie_modal").find("input[type=checkbox]").each(function(){var o=e(this);o.is(":checked")||o.trigger("click")}),c("enable_all enable-all-button"),e(".gdpr_lightbox .gdpr_lightbox-close").trigger("click"),l(),b(!1),e(document).moove_gdpr_lightbox_close()}),e(document).on("click tap",".moove-gdpr-infobar-allow-all",function(o){o.preventDefault(),e("#moove_gdpr_cookie_modal").find("input[type=checkbox]").each(function(){var o=e(this);o.is(":checked")||o.trigger("click")}),c("enable_all allow-btn"),e(".gdpr_lightbox .gdpr_lightbox-close").trigger("click"),l(),b(!1)}),e(document).on("click tap",".moove-gdpr-modal-save-settings",function(o){o.preventDefault(),b(!0),e(".gdpr_lightbox .gdpr_lightbox-close").trigger("click"),e(document).moove_gdpr_lightbox_close(),p("modal-save-settings")});if(window.location.hash){var J=window.location.hash.substring(1);J=J.replace(/\/$/,""),"moove_gdpr_cookie_modal"!==J&&"gdpr_cookie_modal"!==J||(E=!0,i("opened_modal_from_link",""),setTimeout(function(){e("#moove_gdpr_cookie_modal").length>0&&(D=gdpr_lightbox("#moove_gdpr_cookie_modal"),e(".gdpr_lightbox").addClass("moove_gdpr_cookie_modal_open"),e(document).moove_gdpr_lightbox_open())},500)),"gdpr-accept-cookies"===J&&(e("#moove_gdpr_cookie_modal").find("input[type=checkbox]").each(function(){var o=e(this);o.is(":checked")||o.trigger("click")}),c("enable_all enable-all-button"),e(".gdpr_lightbox .gdpr_lightbox-close").trigger("click"),l(),b(!0),e(document).moove_gdpr_lightbox_close()),"gdpr-reject-cookies"===J&&(h(),n(),e("#moove_gdpr_cookie_info_bar").length>0&&(e("#moove_gdpr_cookie_info_bar").addClass("moove-gdpr-info-bar-hidden"),e("body").removeClass("gdpr-infobar-visible"),e("#moove_gdpr_cookie_info_bar").hide(),e("#moove_gdpr_save_popup_settings_button").show()),f(),g("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"0",advanced:"0",performance:"0",preference:"0"}),k),setTimeout(function(){g("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"0",advanced:"0",performance:"0",preference:"0"}),k)},500))}},finalize:function(){}}},r={fire:function(e,r,t){var n,i=o;r=void 0===r?"init":r,n=""!==e,n=n&&i[e],(n=n&&"function"==typeof i[e][r])&&i[e][r](t)},loadEvents:function(){var o=!1,t=!1;if(void 0!==moove_frontend_gdpr_scripts.gpc&&1===parseInt(moove_frontend_gdpr_scripts.gpc)&&void 0!==navigator.globalPrivacyControl&&(gpcValue=navigator.globalPrivacyControl,gpcValue&&(t=!0,console.warn("GDPR Cookie Compliance - Blocked by Global Policy Control (GPC)"))),!t)if(void 0!==moove_frontend_gdpr_scripts.geo_location&&"true"===moove_frontend_gdpr_scripts.geo_location)jQuery.post(moove_frontend_gdpr_scripts.ajaxurl,{action:"moove_gdpr_localize_scripts"},function(e){var t=JSON.parse(e);void 0!==t.display_cookie_banner&&(moove_frontend_gdpr_scripts.display_cookie_banner=t.display_cookie_banner),void 0!==t.enabled_default&&(moove_frontend_gdpr_scripts.enabled_default=t.enabled_default),o||(o=!0,r.fire("common"))});else{var n=void 0!==typeof moove_frontend_gdpr_scripts.script_delay&&parseInt(moove_frontend_gdpr_scripts.script_delay)>=0?parseInt(moove_frontend_gdpr_scripts.script_delay):0;n>0?setTimeout(function(){r.fire("common")},n):r.fire("common")}e.each(document.body.className.replace(/-/g,"_").split(/\s+/),function(e,o){r.fire(o),r.fire(o,"finalize")}),r.fire("common","finalize")}};e(document).ready(r.loadEvents)}(jQuery);
     1!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports.postscribe=o():e.postscribe=o()}(this,function(){return function(e){function o(t){if(r[t])return r[t].exports;var n=r[t]={exports:{},id:t,loaded:!1};return e[t].call(n.exports,n,n.exports,o),n.loaded=!0,n.exports}var r={};return o.m=e,o.c=r,o.p="",o(0)}([function(e,o,r){"use strict";var t=r(1),n=function(e){return e&&e.__esModule?e:{default:e}}(t);e.exports=n.default},function(e,o,r){"use strict";function t(){}function n(){var e=g.shift();if(e){var o=_.last(e);o.afterDequeue(),e.stream=i.apply(void 0,e),o.afterStreamStart()}}function i(e,o,r){function i(e){e=r.beforeWrite(e),m.write(e),r.afterWrite(e)}m=new a.default(e,r),m.id=f++,m.name=r.name||m.id,s.streams[m.name]=m;var c=e.ownerDocument,p={close:c.close,open:c.open,write:c.write,writeln:c.writeln};d(c,{close:t,open:t,write:function(){for(var e=arguments.length,o=Array(e),r=0;r<e;r++)o[r]=arguments[r];return i(o.join(""))},writeln:function(){for(var e=arguments.length,o=Array(e),r=0;r<e;r++)o[r]=arguments[r];return i(o.join("")+"\n")}});var _=m.win.onerror||t;return m.win.onerror=function(e,o,t){r.error({msg:e+" - "+o+": "+t}),_.apply(m.win,[e,o,t])},m.write(o,function(){d(c,p),m.win.onerror=_,r.done(),m=null,n()}),m}function s(e,o,r){if(_.isFunction(r))r={done:r};else if("clear"===r)return g=[],m=null,void(f=0);r=_.defaults(r,l),e=/^#/.test(e)?window.document.getElementById(e.substr(1)):e.jquery?e[0]:e;var i=[e,o,r];return e.postscribe={cancel:function(){i.stream?i.stream.abort():i[1]=t}},r.beforeEnqueue(i),g.push(i),m||n(),e.postscribe}o.__esModule=!0;var d=Object.assign||function(e){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e};o.default=s;var c=r(2),a=function(e){return e&&e.__esModule?e:{default:e}}(c),p=r(4),_=function(e){if(e&&e.__esModule)return e;var o={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);return o.default=e,o}(p),l={afterAsync:t,afterDequeue:t,afterStreamStart:t,afterWrite:t,autoFix:!0,beforeEnqueue:t,beforeWriteToken:function(e){return e},beforeWrite:function(e){return e},done:t,error:function(e){throw new Error(e.msg)},releaseAsync:!1},f=0,g=[],m=null;d(s,{streams:{},queue:g,WriteStream:a.default})},function(e,o,r){"use strict";function t(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}function n(e,o){var r=_+o,t=e.getAttribute(r);return p.existy(t)?String(t):t}function i(e,o){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,t=_+o;p.existy(r)&&""!==r?e.setAttribute(t,r):e.removeAttribute(t)}o.__esModule=!0;var s=Object.assign||function(e){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e},d=r(3),c=function(e){return e&&e.__esModule?e:{default:e}}(d),a=r(4),p=function(e){if(e&&e.__esModule)return e;var o={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);return o.default=e,o}(a),_="data-ps-",l="ps-style",f="ps-script",g=function(){function e(o){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t(this,e),this.root=o,this.options=r,this.doc=o.ownerDocument,this.win=this.doc.defaultView||this.doc.parentWindow,this.parser=new c.default("",{autoFix:r.autoFix}),this.actuals=[o],this.proxyHistory="",this.proxyRoot=this.doc.createElement(o.nodeName),this.scriptStack=[],this.writeQueue=[],i(this.proxyRoot,"proxyof",0)}return e.prototype.write=function(){var e;for((e=this.writeQueue).push.apply(e,arguments);!this.deferredRemote&&this.writeQueue.length;){var o=this.writeQueue.shift();p.isFunction(o)?this._callFunction(o):this._writeImpl(o)}},e.prototype._callFunction=function(e){var o={type:"function",value:e.name||e.toString()};this._onScriptStart(o),e.call(this.win,this.doc),this._onScriptDone(o)},e.prototype._writeImpl=function(e){this.parser.append(e);for(var o=void 0,r=void 0,t=void 0,n=[];(o=this.parser.readToken())&&!(r=p.isScript(o))&&!(t=p.isStyle(o));)(o=this.options.beforeWriteToken(o))&&n.push(o);n.length>0&&this._writeStaticTokens(n),r&&this._handleScriptToken(o),t&&this._handleStyleToken(o)},e.prototype._writeStaticTokens=function(e){var o=this._buildChunk(e);return o.actual?(o.html=this.proxyHistory+o.actual,this.proxyHistory+=o.proxy,this.proxyRoot.innerHTML=o.html,this._walkChunk(),o):null},e.prototype._buildChunk=function(e){for(var o=this.actuals.length,r=[],t=[],n=[],i=e.length,s=0;s<i;s++){var d=e[s],c=d.toString();if(r.push(c),d.attrs){if(!/^noscript$/i.test(d.tagName)){var a=o++;t.push(c.replace(/(\/?>)/," "+_+"id="+a+" $1")),d.attrs.id!==f&&d.attrs.id!==l&&n.push("atomicTag"===d.type?"":"<"+d.tagName+" "+_+"proxyof="+a+(d.unary?" />":">"))}}else t.push(c),n.push("endTag"===d.type?c:"")}return{tokens:e,raw:r.join(""),actual:t.join(""),proxy:n.join("")}},e.prototype._walkChunk=function(){for(var e=void 0,o=[this.proxyRoot];p.existy(e=o.shift());){var r=1===e.nodeType;if(!(r&&n(e,"proxyof"))){r&&(this.actuals[n(e,"id")]=e,i(e,"id"));var t=e.parentNode&&n(e.parentNode,"proxyof");t&&this.actuals[t].appendChild(e)}o.unshift.apply(o,p.toArray(e.childNodes))}},e.prototype._handleScriptToken=function(e){var o=this,r=this.parser.clear();r&&this.writeQueue.unshift(r),e.src=e.attrs.src||e.attrs.SRC,(e=this.options.beforeWriteToken(e))&&(e.src&&this.scriptStack.length?this.deferredRemote=e:this._onScriptStart(e),this._writeScriptToken(e,function(){o._onScriptDone(e)}))},e.prototype._handleStyleToken=function(e){var o=this.parser.clear();o&&this.writeQueue.unshift(o),e.type=e.attrs.type||e.attrs.TYPE||"text/css",e=this.options.beforeWriteToken(e),e&&this._writeStyleToken(e),o&&this.write()},e.prototype._writeStyleToken=function(e){var o=this._buildStyle(e);this._insertCursor(o,l),e.content&&(o.styleSheet&&!o.sheet?o.styleSheet.cssText=e.content:o.appendChild(this.doc.createTextNode(e.content)))},e.prototype._buildStyle=function(e){var o=this.doc.createElement(e.tagName);return o.setAttribute("type",e.type),p.eachKey(e.attrs,function(e,r){o.setAttribute(e,r)}),o},e.prototype._insertCursor=function(e,o){this._writeImpl('<span id="'+o+'"/>');var r=this.doc.getElementById(o);r&&r.parentNode.replaceChild(e,r)},e.prototype._onScriptStart=function(e){e.outerWrites=this.writeQueue,this.writeQueue=[],this.scriptStack.unshift(e)},e.prototype._onScriptDone=function(e){return e!==this.scriptStack[0]?void this.options.error({msg:"Bad script nesting or script finished twice"}):(this.scriptStack.shift(),this.write.apply(this,e.outerWrites),void(!this.scriptStack.length&&this.deferredRemote&&(this._onScriptStart(this.deferredRemote),this.deferredRemote=null)))},e.prototype._writeScriptToken=function(e,o){var r=this._buildScript(e),t=this._shouldRelease(r),n=this.options.afterAsync;e.src&&(r.src=e.src,this._scriptLoadHandler(r,t?n:function(){o(),n()}));try{this._insertCursor(r,f),r.src&&!t||o()}catch(e){this.options.error(e),o()}},e.prototype._buildScript=function(e){var o=this.doc.createElement(e.tagName);return p.eachKey(e.attrs,function(e,r){o.setAttribute(e,r)}),e.content&&(o.text=e.content),o},e.prototype._scriptLoadHandler=function(e,o){function r(){e=e.onload=e.onreadystatechange=e.onerror=null}function t(){r(),null!=o&&o(),o=null}function n(e){r(),d(e),null!=o&&o(),o=null}function i(e,o){var r=e["on"+o];null!=r&&(e["_on"+o]=r)}var d=this.options.error;i(e,"load"),i(e,"error"),s(e,{onload:function(){if(e._onload)try{e._onload.apply(this,Array.prototype.slice.call(arguments,0))}catch(o){n({msg:"onload handler failed "+o+" @ "+e.src})}t()},onerror:function(){if(e._onerror)try{e._onerror.apply(this,Array.prototype.slice.call(arguments,0))}catch(o){return void n({msg:"onerror handler failed "+o+" @ "+e.src})}n({msg:"remote script failed "+e.src})},onreadystatechange:function(){/^(loaded|complete)$/.test(e.readyState)&&t()}})},e.prototype._shouldRelease=function(e){return!/^script$/i.test(e.nodeName)||!!(this.options.releaseAsync&&e.src&&e.hasAttribute("async"))},e}();o.default=g},function(e,o,r){!function(o,r){e.exports=function(){return function(e){function o(t){if(r[t])return r[t].exports;var n=r[t]={exports:{},id:t,loaded:!1};return e[t].call(n.exports,n,n.exports,o),n.loaded=!0,n.exports}var r={};return o.m=e,o.c=r,o.p="",o(0)}([function(e,o,r){"use strict";var t=r(1),n=function(e){return e&&e.__esModule?e:{default:e}}(t);e.exports=n.default},function(e,o,r){"use strict";function t(e){if(e&&e.__esModule)return e;var o={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=e[r]);return o.default=e,o}function n(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}o.__esModule=!0;var i=r(2),s=t(i),d=r(3),c=t(d),a=r(6),p=function(e){return e&&e.__esModule?e:{default:e}}(a),_=r(5),l={comment:/^<!--/,endTag:/^<\//,atomicTag:/^<\s*(script|style|noscript|iframe|textarea)[\s\/>]/i,startTag:/^</,chars:/^[^<]/},f=function(){function e(){var o=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,e),this.stream=r;var i=!1,d={};for(var c in s)s.hasOwnProperty(c)&&(t.autoFix&&(d[c+"Fix"]=!0),i=i||d[c+"Fix"]);i?(this._readToken=(0,p.default)(this,d,function(){return o._readTokenImpl()}),this._peekToken=(0,p.default)(this,d,function(){return o._peekTokenImpl()})):(this._readToken=this._readTokenImpl,this._peekToken=this._peekTokenImpl)}return e.prototype.append=function(e){this.stream+=e},e.prototype.prepend=function(e){this.stream=e+this.stream},e.prototype._readTokenImpl=function(){var e=this._peekTokenImpl();if(e)return this.stream=this.stream.slice(e.length),e},e.prototype._peekTokenImpl=function(){for(var e in l)if(l.hasOwnProperty(e)&&l[e].test(this.stream)){var o=c[e](this.stream);if(o)return"startTag"===o.type&&/script|style/i.test(o.tagName)?null:(o.text=this.stream.substr(0,o.length),o)}},e.prototype.peekToken=function(){return this._peekToken()},e.prototype.readToken=function(){return this._readToken()},e.prototype.readTokens=function(e){for(var o=void 0;o=this.readToken();)if(e[o.type]&&!1===e[o.type](o))return},e.prototype.clear=function(){var e=this.stream;return this.stream="",e},e.prototype.rest=function(){return this.stream},e}();o.default=f,f.tokenToString=function(e){return e.toString()},f.escapeAttributes=function(e){var o={};for(var r in e)e.hasOwnProperty(r)&&(o[r]=(0,_.escapeQuotes)(e[r],null));return o},f.supports=s;for(var g in s)s.hasOwnProperty(g)&&(f.browserHasFlaw=f.browserHasFlaw||!s[g]&&g)},function(e,o){"use strict";o.__esModule=!0;var r=!1,t=!1,n=window.document.createElement("div");try{var i="<P><I></P></I>";n.innerHTML=i,o.tagSoup=r=n.innerHTML!==i}catch(e){o.tagSoup=r=!1}try{n.innerHTML="<P><i><P></P></i></P>",o.selfClose=t=2===n.childNodes.length}catch(e){o.selfClose=t=!1}n=null,o.tagSoup=r,o.selfClose=t},function(e,o,r){"use strict";function t(e){var o=e.indexOf("--\x3e");if(o>=0)return new a.CommentToken(e.substr(4,o-1),o+3)}function n(e){var o=e.indexOf("<");return new a.CharsToken(o>=0?o:e.length)}function i(e){if(-1!==e.indexOf(">")){var o=e.match(p.startTag);if(o){var r=function(){var e={},r={},t=o[2];return o[2].replace(p.attr,function(o,n){arguments[2]||arguments[3]||arguments[4]||arguments[5]?arguments[5]?(e[arguments[5]]="",r[arguments[5]]=!0):e[n]=arguments[2]||arguments[3]||arguments[4]||p.fillAttr.test(n)&&n||"":e[n]="",t=t.replace(o,"")}),{v:new a.StartTagToken(o[1],o[0].length,e,r,!!o[3],t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""))}}();if("object"===(void 0===r?"undefined":c(r)))return r.v}}}function s(e){var o=i(e);if(o){var r=e.slice(o.length);if(r.match(new RegExp("</\\s*"+o.tagName+"\\s*>","i"))){var t=r.match(new RegExp("([\\s\\S]*?)</\\s*"+o.tagName+"\\s*>","i"));if(t)return new a.AtomicTagToken(o.tagName,t[0].length+o.length,o.attrs,o.booleanAttrs,t[1])}}}function d(e){var o=e.match(p.endTag);if(o)return new a.EndTagToken(o[1],o[0].length)}o.__esModule=!0;var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};o.comment=t,o.chars=n,o.startTag=i,o.atomicTag=s,o.endTag=d;var a=r(4),p={startTag:/^<([\-A-Za-z0-9_]+)((?:\s+[\w\-]+(?:\s*=?\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,endTag:/^<\/([\-A-Za-z0-9_]+)[^>]*>/,attr:/(?:([\-A-Za-z0-9_]+)\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))|(?:([\-A-Za-z0-9_]+)(\s|$)+)/g,fillAttr:/^(checked|compact|declare|defer|disabled|ismap|multiple|nohref|noresize|noshade|nowrap|readonly|selected)$/i}},function(e,o,r){"use strict";function t(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}o.__esModule=!0,o.EndTagToken=o.AtomicTagToken=o.StartTagToken=o.TagToken=o.CharsToken=o.CommentToken=o.Token=void 0;var n=r(5),i=(o.Token=function e(o,r){t(this,e),this.type=o,this.length=r,this.text=""},o.CommentToken=function(){function e(o,r){t(this,e),this.type="comment",this.length=r||(o?o.length:0),this.text="",this.content=o}return e.prototype.toString=function(){return"\x3c!--"+this.content},e}(),o.CharsToken=function(){function e(o){t(this,e),this.type="chars",this.length=o,this.text=""}return e.prototype.toString=function(){return this.text},e}(),o.TagToken=function(){function e(o,r,n,i,s){t(this,e),this.type=o,this.length=n,this.text="",this.tagName=r,this.attrs=i,this.booleanAttrs=s,this.unary=!1,this.html5Unary=!1}return e.formatTag=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r="<"+e.tagName;for(var t in e.attrs)if(e.attrs.hasOwnProperty(t)){r+=" "+t;var i=e.attrs[t];void 0!==e.booleanAttrs&&void 0!==e.booleanAttrs[t]||(r+='="'+(0,n.escapeQuotes)(i)+'"')}return e.rest&&(r+=" "+e.rest),r+=e.unary&&!e.html5Unary?"/>":">",void 0!==o&&null!==o&&(r+=o+"</"+e.tagName+">"),r},e}());o.StartTagToken=function(){function e(o,r,n,i,s,d){t(this,e),this.type="startTag",this.length=r,this.text="",this.tagName=o,this.attrs=n,this.booleanAttrs=i,this.html5Unary=!1,this.unary=s,this.rest=d}return e.prototype.toString=function(){return i.formatTag(this)},e}(),o.AtomicTagToken=function(){function e(o,r,n,i,s){t(this,e),this.type="atomicTag",this.length=r,this.text="",this.tagName=o,this.attrs=n,this.booleanAttrs=i,this.unary=!1,this.html5Unary=!1,this.content=s}return e.prototype.toString=function(){return i.formatTag(this,this.content)},e}(),o.EndTagToken=function(){function e(o,r){t(this,e),this.type="endTag",this.length=r,this.text="",this.tagName=o}return e.prototype.toString=function(){return"</"+this.tagName+">"},e}()},function(e,o){"use strict";function r(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e?e.replace(/([^"]*)"/g,function(e,o){return/\\/.test(o)?o+'"':o+'\\"'}):o}o.__esModule=!0,o.escapeQuotes=r},function(e,o){"use strict";function r(e){return e&&"startTag"===e.type&&(e.unary=d.test(e.tagName)||e.unary,e.html5Unary=!/\/>$/.test(e.text)),e}function t(e,o){var t=e.stream,n=r(o());return e.stream=t,n}function n(e,o){var r=o.pop();e.prepend("</"+r.tagName+">")}function i(){var e=[];return e.last=function(){return this[this.length-1]},e.lastTagNameEq=function(e){var o=this.last();return o&&o.tagName&&o.tagName.toUpperCase()===e.toUpperCase()},e.containsTagName=function(e){for(var o,r=0;o=this[r];r++)if(o.tagName===e)return!0;return!1},e}function s(e,o,s){function d(){var o=t(e,s);o&&p[o.type]&&p[o.type](o)}var a=i(),p={startTag:function(r){var t=r.tagName;"TR"===t.toUpperCase()&&a.lastTagNameEq("TABLE")?(e.prepend("<TBODY>"),d()):o.selfCloseFix&&c.test(t)&&a.containsTagName(t)?a.lastTagNameEq(t)?n(e,a):(e.prepend("</"+r.tagName+">"),d()):r.unary||a.push(r)},endTag:function(r){a.last()?o.tagSoupFix&&!a.lastTagNameEq(r.tagName)?n(e,a):a.pop():o.tagSoupFix&&(s(),d())}};return function(){return d(),r(s())}}o.__esModule=!0,o.default=s;var d=/^(AREA|BASE|BASEFONT|BR|COL|FRAME|HR|IMG|INPUT|ISINDEX|LINK|META|PARAM|EMBED)$/i,c=/^(COLGROUP|DD|DT|LI|OPTIONS|P|TD|TFOOT|TH|THEAD|TR)$/i}])}()}()},function(e,o){"use strict";function r(e){return void 0!==e&&null!==e}function t(e){return"function"==typeof e}function n(e,o,r){var t=void 0,n=e&&e.length||0;for(t=0;t<n;t++)o.call(r,e[t],t)}function i(e,o,r){for(var t in e)e.hasOwnProperty(t)&&o.call(r,t,e[t])}function s(e,o){return e=e||{},i(o,function(o,t){r(e[o])||(e[o]=t)}),e}function d(e){try{return Array.prototype.slice.call(e)}catch(r){var o=function(){var o=[];return n(e,function(e){o.push(e)}),{v:o}}();if("object"===(void 0===o?"undefined":l(o)))return o.v}}function c(e){return e[e.length-1]}function a(e,o){return!(!e||"startTag"!==e.type&&"atomicTag"!==e.type||!("tagName"in e)||!~e.tagName.toLowerCase().indexOf(o))}function p(e){return a(e,"script")}function _(e){return a(e,"style")}o.__esModule=!0;var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};o.existy=r,o.isFunction=t,o.each=n,o.eachKey=i,o.defaults=s,o.toArray=d,o.last=c,o.isTag=a,o.isScript=p,o.isStyle=_}])}),function(e,o){e.gdpr_lightbox=function(e,o){"use strict";function r(e){var o=I();return F&&e.length?(e.one(F,o.resolve),setTimeout(o.resolve,500)):o.resolve(),o.promise()}function t(e,r,t){if(1===arguments.length)return o.extend({},e);if("string"==typeof r){if(void 0===t)return void 0===e[r]?null:e[r];e[r]=t}else o.extend(e,r);return this}function n(e){for(var o,r=decodeURI(e.split("#")[0]).split("&"),t={},n=0,i=r.length;n<i;n++)r[n]&&(o=r[n].split("="),t[o[0]]=o[1]);return t}function i(e,r){return e+(e.indexOf("?")>-1?"&":"?")+o.param(r)}function s(e,o){var r=e.indexOf("#");return-1===r?o:(r>0&&(e=e.substr(r)),o+e)}function d(e){return o('<span class="gdpr_lightbox-error"></span>').append(e)}function c(e,r){var t=r.opener()&&r.opener().data("gdpr_lightbox-desc")||"Image with no description",n=o('<img src="'+e+'" alt="'+t+'"/>'),i=I(),s=function(){i.reject(d("Failed loading image"))};return n.on("load",function(){if(0===this.naturalWidth)return s();i.resolve(n)}).on("error",s),i.promise()}function a(e,r){var t,n,i;try{t=o(e)}catch(e){return!1}return!!t.length&&(n=o('<i style="display:none !important"></i>'),i=t.hasClass("gdpr_lightbox-hide"),r.element().one("gdpr_lightbox:remove",function(){n.before(t).remove(),i&&!t.closest(".gdpr_lightbox-content").length&&t.addClass("gdpr_lightbox-hide")}),t.removeClass("gdpr_lightbox-hide").after(n))}function p(e){var r=P.exec(e);return!!r&&g(s(e,i("https://www.youtube"+(r[2]||"")+".com/embed/"+r[4],o.extend({autoplay:1},n(r[5]||"")))))}function _(e){var r=R.exec(e);return!!r&&g(s(e,i("https://player.vimeo.com/video/"+r[3],o.extend({autoplay:1},n(r[4]||"")))))}function l(e){var r=U.exec(e);return!!r&&(0!==e.indexOf("http")&&(e="https:"+e),g(s(e,i("https://www.facebook.com/plugins/video.php?href="+e,o.extend({autoplay:1},n(r[4]||""))))))}function f(e){var o=M.exec(e);return!!o&&g(s(e,i("https://www.google."+o[3]+"/maps?"+o[6],{output:o[6].indexOf("layer=c")>0?"svembed":"embed"})))}function g(e){return'<div class="gdpr_lightbox-iframe-container"><iframe frameborder="0" allowfullscreen allow="autoplay; fullscreen" src="'+e+'"/></div>'}function m(){return C.documentElement.clientHeight?C.documentElement.clientHeight:Math.round(S.height())}function v(e){var o=k();o&&(27===e.keyCode&&o.options("esc")&&o.close(),9===e.keyCode&&u(e,o))}function u(e,o){var r=o.element().find(E),t=r.index(C.activeElement);e.shiftKey&&t<=0?(r.get(r.length-1),e.preventDefault()):e.shiftKey||t!==r.length-1||(r.get(0),e.preventDefault())}function h(){o.each(O,function(e,o){o.resize()})}function b(e){1===O.unshift(e)&&(N.addClass("gdpr_lightbox-active"),S.on({resize:h,keydown:v})),o("body > *").not(e.element()).addClass("gdpr_lightbox-hidden").each(function(){var e=o(this);void 0===e.data(D)&&e.data(D,e.attr(j)||null)}).attr(j,"true")}function y(e){var r;e.element().attr(j,"true"),1===O.length&&(N.removeClass("gdpr_lightbox-active"),S.off({resize:h,keydown:v})),O=o.grep(O,function(o){return e!==o}),r=O.length?O[0].element():o(".gdpr_lightbox-hidden"),r.removeClass("gdpr_lightbox-hidden").each(function(){var e=o(this),r=e.data(D);r?e.attr(j,r):e.removeAttr(j),e.removeData(D)})}function k(){return 0===O.length?null:O[0]}function w(e,r,t,n){var i,s="inline",d=o.extend({},t);return n&&d[n]?(i=d[n](e,r),s=n):(o.each(["inline","iframe"],function(e,o){delete d[o],d[o]=t[o]}),o.each(d,function(o,t){return!t||(!(!t.test||t.test(e,r))||(i=t(e,r),!1!==i?(s=o,!1):void 0))})),{handler:s,content:i||""}}function x(e,n,i,s){function d(e){p=o(e).css("max-height",m()+"px"),a.find(".gdpr_lightbox-loader").each(function(){var e=o(this);r(e).always(function(){e.remove()})}),a.removeClass("gdpr_lightbox-loading").find(".gdpr_lightbox-content").empty().append(p),l=!0,p.trigger("gdpr_lightbox:ready",[_])}var c,a,p,_=this,l=!1,f=!1;n=o.extend({},A,n),a=o(n.template),_.element=function(){return a},_.opener=function(){return i},_.options=o.proxy(t,_,n),_.handlers=o.proxy(t,_,n.handlers),_.resize=function(){l&&!f&&p.css("max-height",m()+"px").trigger("gdpr_lightbox:resize",[_])},_.close=function(){if(l&&!f){f=!0,y(_);var e=I();return s&&(C.activeElement===a[0]||o.contains(a[0],C.activeElement)),p.trigger("gdpr_lightbox:close",[_]),a.removeClass("gdpr_lightbox-opened").addClass("gdpr_lightbox-closed"),r(p.add(a)).always(function(){p.trigger("gdpr_lightbox:remove",[_]),a.remove(),a=void 0,e.resolve()}),e.promise()}},c=w(e,_,n.handlers,n.handler),a.attr(j,"false").addClass("gdpr_lightbox-loading gdpr_lightbox-opened gdpr_lightbox-"+c.handler).appendTo("body").on("click","[data-gdpr_lightbox-close]",function(e){o(e.target).is("[data-gdpr_lightbox-close]")&&_.close()}).trigger("gdpr_lightbox:open",[_]),b(_),o.when(c.content).always(d)}function T(e,r,t){e.preventDefault?(e.preventDefault(),t=o(this),e=t.data("gdpr_lightbox-target")||t.attr("href")||t.attr("src")):t=o(t);var n=new x(e,o.extend({},t.data("gdpr_lightbox-options")||t.data("gdpr_lightbox"),r),t,C.activeElement);if(!e.preventDefault)return n}var C=e.document,S=o(e),I=o.Deferred,N=o("html"),O=[],j="ah",D="gdpr_lightbox-"+j,E='a[href],area[href],input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),iframe,object,embed,[contenteditable],[tabindex]:not([tabindex^="-"])',A={esc:!0,handler:null,handlers:{image:c,inline:a,youtube:p,vimeo:_,googlemaps:f,facebookvideo:l,iframe:g},template:'<div class="gdpr_lightbox" role="dialog" aria-label="Dialog Window (Press escape to close)" tabindex="-1"><div class="gdpr_lightbox-wrap" data-gdpr_lightbox-close role="document"><div class="gdpr_lightbox-loader">Loading...</div><div class="gdpr_lightbox-container"><div class="gdpr_lightbox-content"></div><button class="gdpr_lightbox-close" type="button" aria-label="Close (Press escape to close)" data-gdpr_lightbox-close>&times;</button></div></div></div>'},J=/(^data:image\/)|(\.(png|jpe?g|gif|svg|webp|bmp|ico|tiff?)(\?\S*)?$)/i,P=/(youtube(-nocookie)?\.com|youtu\.be)\/(watch\?v=|v\/|u\/|embed\/?)?([\w-]{11})(.*)?/i,R=/(vimeo(pro)?.com)\/(?:[^\d]+)?(\d+)\??(.*)?$/,M=/((maps|www)\.)?google\.([^\/\?]+)\/?((maps\/?)?\?)(.*)/i,U=/(facebook\.com)\/([a-z0-9_-]*)\/videos\/([0-9]*)(.*)?$/i,F=function(){var e=C.createElement("div"),o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var r in o)if(void 0!==e.style[r])return o[r];return!1}();return c.test=function(e){return J.test(e)},T.options=o.proxy(t,T,A),T.handlers=o.proxy(t,T,A.handlers),T.current=k,o(C).on("click.gdpr_lightbox","[data-gdpr_lightbox]",T),T}(e,e.jQuery||e.Zepto)}("undefined"!=typeof window?window:this),function(e){var o={common:{init:function(){"use strict";function o(e){var o;try{o=new URL(e)}catch(e){return!1}return"http:"===o.protocol||"https:"===o.protocol}function r(e){try{new URLSearchParams(window.location.search).has("gdpr_dbg")&&console.warn(e)}catch(e){console.warn(e)}}function t(){"true"===(void 0!==moove_frontend_gdpr_scripts.ajax_cookie_removal?moove_frontend_gdpr_scripts.ajax_cookie_removal:"false")&&e.post(moove_frontend_gdpr_scripts.ajaxurl,{action:"moove_gdpr_remove_php_cookies"},function(e){r("dbg - cookies removed")})}function n(){t();var o=void 0!==moove_frontend_gdpr_scripts.wp_lang?moove_frontend_gdpr_scripts.wp_lang:"";"true"===(void 0!==moove_frontend_gdpr_scripts.ajax_cookie_removal?moove_frontend_gdpr_scripts.ajax_cookie_removal:"false")?e.post(moove_frontend_gdpr_scripts.ajaxurl,{action:"moove_gdpr_get_scripts",strict:0,thirdparty:0,advanced:0,performance:0,preference:0,wp_lang:o},function(e){var o={};o.strict=1,o.thirdparty=0,o.advanced=0,o.performance=0,o.preference=0,h(),i("script_inject",o),_(o)}):h()}function i(e,o){try{jQuery().gdpr_cookie_compliance_analytics(e,o)}catch(e){}}function s(e){try{jQuery().gdpr_cookie_compliance_consent_log(e)}catch(e){}}function d(){var e=m("moove_gdpr_popup"),o={};return o.strict="0",o.thirdparty="0",o.advanced="0",o.performance="0",o.preference="0",e&&(e=JSON.parse(e),o.strict=e.strict,o.thirdparty=e.thirdparty,o.advanced=e.advanced,o.performance=void 0!==e.performance?e.performance:0,o.preference=void 0!==e.preference?e.preference:0,_(o),i("script_inject",e)),void 0!==moove_frontend_gdpr_scripts.ifbc?("strict"===moove_frontend_gdpr_scripts.ifbc&&e&&1===parseInt(e.strict)&&c(),"thirdparty"===moove_frontend_gdpr_scripts.ifbc&&e&&1===parseInt(e.thirdparty)&&c(),"advanced"===moove_frontend_gdpr_scripts.ifbc&&e&&1===parseInt(e.advanced)&&c(),"performance"===moove_frontend_gdpr_scripts.ifbc&&e&&void 0!==e.performance&&1===parseInt(e.performance)&&c(),"preference"===moove_frontend_gdpr_scripts.ifbc&&e&&void 0!==e.preference&&1===parseInt(e.preference)&&c()):"1"!==moove_frontend_gdpr_scripts.strict_init&&c(),o}function c(){e(document).find("iframe[data-gdpr-iframesrc]").each(function(){e(this).attr("src",e(this).attr("data-gdpr-iframesrc"))})}function a(e){w=!0,i("accept_all",""),g("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"1",advanced:"1",performance:"1",preference:"1"}),y),p("enabled-all")}function p(t){var n=!1;try{void 0!==moove_frontend_gdpr_scripts.force_reload&&"true"===moove_frontend_gdpr_scripts.force_reload&&(n=!0)}catch(e){}var s=d(),c=moove_frontend_gdpr_scripts.enabled_default.strict,a=moove_frontend_gdpr_scripts.enabled_default.third_party,p=moove_frontend_gdpr_scripts.enabled_default.advanced,_=void 0!==moove_frontend_gdpr_scripts.enabled_default.performance&&moove_frontend_gdpr_scripts.enabled_default.performance,f=void 0!==moove_frontend_gdpr_scripts.enabled_default.preference&&moove_frontend_gdpr_scripts.enabled_default.preference;if(document.cookie.indexOf("moove_gdpr_popup")>=0||1==a||1==p||1==_||1==f||1==c){var g=m("moove_gdpr_popup");1==c&&(N.strict=1),1==a&&(N.strict=1,N.thirdparty=a),1==p&&(N.strict=1,N.advanced=p),1==_&&(N.strict=1,N.performance=_),1==f&&(N.strict=1,N.preference=f),N&&(parseInt(s.strict)-parseInt(N.strict)<0&&(n=!0),parseInt(s.thirdparty)-parseInt(N.thirdparty)<0&&(n=!0),parseInt(s.advanced)-parseInt(N.advanced)<0&&(n=!0),parseInt(s.performance)-parseInt(N.performance)<0&&(n=!0),parseInt(s.preference)-parseInt(N.preference)<0&&(n=!0))}if(n)if(g={strict:0,thirdparty:0,advanced:0,performance:0,preference:0},i("script_inject",g),void 0!==moove_frontend_gdpr_scripts.scripts_defined)setTimeout(function(){location.reload(!0)},800);else{var u=e(document).find('script[src*="googletagmanager.com"]');u.length>0&&u.each(function(){var r=e(this).attr("src");if(r&&o(r)){var t=new URL(r),n=t.searchParams.get("id");n&&(document.cookie="woocommerce_"+n+"=true; expires=Thu, 31 Dec 1970 23:59:59 UTC; path=/",window["ga-disable-"+n]=!0),window.gtag&&window.gtag("remove"),e(this).remove()}});var h=void 0!==moove_frontend_gdpr_scripts.ajax_cookie_removal?moove_frontend_gdpr_scripts.ajax_cookie_removal:"true";if("function"==typeof navigator.sendBeacon)if("true"===h){var b=new FormData;b.append("action","moove_gdpr_remove_php_cookies"),navigator.sendBeacon(moove_frontend_gdpr_scripts.ajaxurl,b),location.reload(!0)}else location.reload(!0);else"true"===h?e.post(moove_frontend_gdpr_scripts.ajaxurl,{action:"moove_gdpr_remove_php_cookies"},function(e){location.reload(!0)}).fail(function(){location.reload(!0)}):location.reload(!0)}else{var y=m("moove_gdpr_popup");r("dbg - inject - 4"),v(y),l(),e("#moove_gdpr_save_popup_settings_button").show()}}function _(o){o&&(i("script_inject",o),1===parseInt(o.strict)?(e("#moove_gdpr_strict_cookies").is(":checked")||(e("#moove_gdpr_strict_cookies").prop("checked",!0).trigger("change"),e("#third_party_cookies fieldset, #third_party_cookies .gdpr-cc-form-fieldset").removeClass("fl-disabled"),e("#moove_gdpr_performance_cookies").prop("disabled",!1),e("#third_party_cookies .moove-gdpr-strict-secondary-warning-message").slideUp(),e("#advanced-cookies fieldset, #advanced-cookies .gdpr-cc-form-fieldset").removeClass("fl-disabled"),e("#advanced-cookies .moove-gdpr-strict-secondary-warning-message").slideUp(),e("#moove_gdpr_advanced_cookies").prop("disabled",!1),e("#performance-cookies fieldset, #performance-cookies .gdpr-cc-form-fieldset").removeClass("fl-disabled"),e("#performance-cookies .moove-gdpr-strict-secondary-warning-message").slideUp(),e("#moove_gdpr_performance_cc_cookies").prop("disabled",!1),e("#preference-cookies fieldset, #preference-cookies .gdpr-cc-form-fieldset").removeClass("fl-disabled"),e("#preference-cookies .moove-gdpr-strict-secondary-warning-message").slideUp(),e("#moove_gdpr_preference_cc_cookies").prop("disabled",!1)),void 0!==moove_frontend_gdpr_scripts.wp_consent_api&&"true"===moove_frontend_gdpr_scripts.wp_consent_api&&wp_set_consent("functional","allow")):(e("#moove_gdpr_strict_cookies").is(":checked")&&(e("#moove_gdpr_strict_cookies").prop("checked",!0).trigger("change"),e("#third_party_cookies fieldset, #third_party_cookies .gdpr-cc-form-fieldset").addClass("fl-disabled").closest(".moove-gdpr-status-bar").removeClass("checkbox-selected"),e("#moove_gdpr_performance_cookies").prop("disabled",!0).prop("checked",!1),e("#advanced-cookies fieldset, #advanced-cookies .gdpr-cc-form-fieldset").addClass("fl-disabled").closest(".moove-gdpr-status-bar").removeClass("checkbox-selected"),e("#moove_gdpr_advanced_cookies").prop("disabled",!0).prop("checked",!1),e("#performance-cookies fieldset, #performance-cookies .gdpr-cc-form-fieldset").addClass("fl-disabled").closest(".moove-gdpr-status-bar").removeClass("checkbox-selected"),e("#moove_gdpr_performance_cc_cookies").prop("disabled",!0).prop("checked",!1),e("#preference-cookies fieldset, #preference-cookies .gdpr-cc-form-fieldset").addClass("fl-disabled").closest(".moove-gdpr-status-bar").removeClass("checkbox-selected"),e("#moove_gdpr_preference_cc_cookies").prop("disabled",!0).prop("checked",!1)),void 0!==moove_frontend_gdpr_scripts.wp_consent_api&&"true"===moove_frontend_gdpr_scripts.wp_consent_api&&wp_set_consent("functional","deny")),1===parseInt(o.thirdparty)?(e("#moove_gdpr_performance_cookies").is(":checked")||e("#moove_gdpr_performance_cookies").prop("checked",!0).trigger("change"),void 0!==moove_frontend_gdpr_scripts.wp_consent_api&&"true"===moove_frontend_gdpr_scripts.wp_consent_api&&wp_set_consent("statistics","allow")):(e("#moove_gdpr_performance_cookies").is(":checked")&&e("#moove_gdpr_performance_cookies").prop("checked",!1).trigger("change"),void 0!==moove_frontend_gdpr_scripts.wp_consent_api&&"true"===moove_frontend_gdpr_scripts.wp_consent_api&&wp_set_consent("statistics","deny")),1===parseInt(o.advanced)?(e("#moove_gdpr_advanced_cookies").is(":checked")||e("#moove_gdpr_advanced_cookies").prop("checked",!0).trigger("change"),
     2void 0!==moove_frontend_gdpr_scripts.wp_consent_api&&"true"===moove_frontend_gdpr_scripts.wp_consent_api&&wp_set_consent("marketing","allow")):(e("#moove_gdpr_advanced_cookies").is(":checked")&&e("#moove_gdpr_advanced_cookies").prop("checked",!1).trigger("change"),void 0!==moove_frontend_gdpr_scripts.wp_consent_api&&"true"===moove_frontend_gdpr_scripts.wp_consent_api&&wp_set_consent("marketing","deny")),1===parseInt(o.performance)?e("#moove_gdpr_performance_cc_cookies").is(":checked")||e("#moove_gdpr_performance_cc_cookies").prop("checked",!0).trigger("change"):e("#moove_gdpr_performance_cc_cookies").is(":checked")&&e("#moove_gdpr_performance_cc_cookies").prop("checked",!1).trigger("change"),1===parseInt(o.preference)?(e("#moove_gdpr_preference_cc_cookies").is(":checked")||e("#moove_gdpr_preference_cc_cookies").prop("checked",!0).trigger("change"),void 0!==moove_frontend_gdpr_scripts.wp_consent_api&&"true"===moove_frontend_gdpr_scripts.wp_consent_api&&wp_set_consent("preferences","allow")):(e("#moove_gdpr_preference_cc_cookies").is(":checked")&&e("#moove_gdpr_preference_cc_cookies").prop("checked",!1).trigger("change"),void 0!==moove_frontend_gdpr_scripts.wp_consent_api&&"true"===moove_frontend_gdpr_scripts.wp_consent_api&&wp_set_consent("preferences","deny")),e('input[data-name="moove_gdpr_performance_cookies"]').prop("checked",e("#moove_gdpr_performance_cookies").is(":checked")),e('input[data-name="moove_gdpr_strict_cookies"]').prop("checked",e("#moove_gdpr_strict_cookies").is(":checked")),e('input[data-name="moove_gdpr_advanced_cookies"]').prop("checked",e("#moove_gdpr_advanced_cookies").is(":checked")),e('input[data-name="moove_gdpr_performance_cc_cookies"]').prop("checked",e("#moove_gdpr_performance_cc_cookies").is(":checked")),e('input[data-name="moove_gdpr_preference_cc_cookies"]').prop("checked",e("#moove_gdpr_preference_cc_cookies").is(":checked")))}function l(){e("#moove_gdpr_cookie_info_bar").length>0&&(e("#moove_gdpr_cookie_info_bar").addClass("moove-gdpr-info-bar-hidden"),e("body").removeClass("gdpr-infobar-visible"),e("#moove_gdpr_cookie_info_bar").hide())}function f(){var o=!0;if("undefined"!=typeof sessionStorage&&1===parseInt(sessionStorage.getItem("gdpr_infobar_hidden"))&&(o=!1),void 0!==moove_frontend_gdpr_scripts.display_cookie_banner&&o){if("true"===moove_frontend_gdpr_scripts.display_cookie_banner)e("#moove_gdpr_cookie_info_bar").length>0&&(e("#moove_gdpr_cookie_info_bar").removeClass("moove-gdpr-info-bar-hidden"),e("#moove_gdpr_save_popup_settings_button:not(.button-visible)").hide(),e("body").addClass("gdpr-infobar-visible"),e("#moove_gdpr_cookie_info_bar").show(),i("show_infobar",""));else if(e("#moove_gdpr_cookie_info_bar").length>0){e("#moove_gdpr_cookie_info_bar").addClass("moove-gdpr-info-bar-hidden"),e("body").removeClass("gdpr-infobar-visible"),e("#moove_gdpr_cookie_info_bar").hide();var t={strict:1,thirdparty:1,advanced:1,performance:1,preference:1};r("dbg - inject - 5"),v(JSON.stringify(t))}}else e("#moove_gdpr_cookie_info_bar").length>0&&o&&(e("#moove_gdpr_cookie_info_bar").removeClass("moove-gdpr-info-bar-hidden"),e("#moove_gdpr_save_popup_settings_button:not(.button-visible)").hide(),e("body").addClass("gdpr-infobar-visible"),e("#moove_gdpr_cookie_info_bar").show(),i("show_infobar",""))}function g(e,o,t){var n;if(t>0){var i=new Date;i.setTime(i.getTime()+24*t*60*60*1e3),n="; expires="+i.toGMTString()}else n="";try{var d="SameSite=Lax";void 0!==moove_frontend_gdpr_scripts.cookie_attributes&&(d=moove_frontend_gdpr_scripts.cookie_attributes),void 0!==moove_frontend_gdpr_scripts.gdpr_consent_version&&(o=JSON.parse(o),o.version=moove_frontend_gdpr_scripts.gdpr_consent_version,o=JSON.stringify(o)),"moove_gdpr_popup"===e&&0===parseInt(o.strict)?void 0!==moove_frontend_gdpr_scripts.gdpr_scor&&"false"===moove_frontend_gdpr_scripts.gdpr_scor?document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(o)+n+"; path=/; "+d:document.cookie=encodeURIComponent(e)+"=; Path=/;":document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(o)+n+"; path=/; "+d,o!==A&&(A=o,s(o))}catch(e){r("error - moove_gdpr_create_cookie: "+e)}}function m(e){for(var o=encodeURIComponent(e)+"=",r=document.cookie.split(";"),t=0;t<r.length;t++){for(var n=r[t];" "===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(o)){var i=decodeURIComponent(n.substring(o.length,n.length)),s=JSON.parse(i);if(void 0!==s.version){if(void 0!==moove_frontend_gdpr_scripts.gdpr_consent_version){var d=moove_frontend_gdpr_scripts.gdpr_consent_version;if(parseFloat(d)>parseFloat(s.version))return document.cookie=e+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;",null}}else if(void 0!==moove_frontend_gdpr_scripts.gdpr_consent_version&&parseFloat(moove_frontend_gdpr_scripts.gdpr_consent_version)>1)return document.cookie=e+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;",null;return i}}return null}function v(o){if(N=d(),o){var r=o;o=JSON.parse(o);d();if(!1!==O){var t=JSON.parse(O);1===parseInt(t.thirdparty)&&1===parseInt(o.thirdparty)&&(o.thirdparty="0"),1===parseInt(t.advanced)&&1===parseInt(o.advanced)&&(o.advanced="0"),1===parseInt(t.performance)&&1===parseInt(o.performance)&&(o.performance="0"),1===parseInt(t.preference)&&1===parseInt(o.preference)&&(o.preference="0")}if(i("script_inject",o),j=!0,void 0!==moove_frontend_gdpr_scripts.ifbc?("strict"===moove_frontend_gdpr_scripts.ifbc&&o&&1===parseInt(o.strict)&&c(),"thirdparty"===moove_frontend_gdpr_scripts.ifbc&&o&&1===parseInt(o.thirdparty)&&c(),"advanced"===moove_frontend_gdpr_scripts.ifbc&&o&&1===parseInt(o.advanced)&&c(),"performance"===moove_frontend_gdpr_scripts.ifbc&&o&&1===parseInt(o.performance)&&c(),"preference"===moove_frontend_gdpr_scripts.ifbc&&o&&1===parseInt(o.preference)&&c()):1===parseInt(o.strict)&&c(),void 0!==moove_frontend_gdpr_scripts.scripts_defined)try{var s=JSON.parse(moove_frontend_gdpr_scripts.scripts_defined);if(void 0!==o.strict&&1===parseInt(o.strict)||parseInt(moove_frontend_gdpr_scripts.enabled_default.strict)>1)("undefined"!==o.strict&&1===parseInt(o.strict)||parseInt(moove_frontend_gdpr_scripts.enabled_default.strict)>1)&&void 0===k.strict&&(void 0!==s.strict&&s.strict.header&&postscribe(document.head,s.strict.header),void 0!==s.strict&&s.strict.body&&e(s.strict.body).prependTo(document.body),void 0!==s.strict&&s.strict.footer&&postscribe(document.body,s.strict.footer),k.strict=!0),1===parseInt(o.thirdparty)&&void 0===k.thirdparty&&(s.thirdparty.header&&postscribe(document.head,s.thirdparty.header),s.thirdparty.body&&e(s.thirdparty.body).prependTo(document.body),s.thirdparty.footer&&postscribe(document.body,s.thirdparty.footer),k.thirdparty=!0),1===parseInt(o.advanced)&&void 0===k.advanced&&(s.advanced.header&&postscribe(document.head,s.advanced.header),s.advanced.body&&e(s.advanced.body).prependTo(document.body),s.advanced.footer&&postscribe(document.body,s.advanced.footer),k.advanced=!0),void 0!==o.performance&&1===parseInt(o.performance)&&void 0===k.performance&&(void 0!==s.performance&&s.performance.header&&postscribe(document.head,s.performance.header),void 0!==s.performance&&s.performance.body&&e(s.performance.body).prependTo(document.body),void 0!==s.performance&&s.performance.footer&&postscribe(document.body,s.performance.footer),k.performance=!0),void 0!==o.preference&&1===parseInt(o.preference)&&void 0===k.preference&&(void 0!==s.preference&&s.preference.header&&postscribe(document.head,s.preference.header),void 0!==s.preference&&s.preference.body&&e(s.preference.body).prependTo(document.body),void 0!==s.preference&&s.preference.footer&&postscribe(document.body,s.preference.footer),k.preference=!0);else{var o=m("moove_gdpr_popup");o&&(h(),n())}}catch(e){console.warn("1"),console.error(e)}else if(void 0===k.strict||void 0===k.thirdparty||void 0===k.advanced){1===o.strict&&(k.strict=!0),1===o.thirdparty&&(k.thirdparty=!0),1===o.advanced&&(k.advanced=!0),1===o.performance&&(k.performance=!0),1===o.preference&&(k.preference=!0);var a=void 0!==moove_frontend_gdpr_scripts.wp_lang?moove_frontend_gdpr_scripts.wp_lang:"";0===parseInt(o.strict)&&0===parseInt(o.thirdparty)&&0===parseInt(o.advanced)&&0===parseInt(o.performance)&&0===parseInt(o.preference)&&h(),e.post(moove_frontend_gdpr_scripts.ajaxurl,{action:"moove_gdpr_get_scripts",strict:o.strict,thirdparty:o.thirdparty,advanced:o.advanced,performance:o.performance,preference:o.preference,wp_lang:a},function(t){O=r,i("script_inject",o);var n=JSON.parse(t);n.header&&postscribe(document.head,n.header),n.body&&e(n.body).prependTo(document.body),n.footer&&postscribe(document.body,n.footer)})}}else f()}function u(){var o=!0;e(document).find("#moove_gdpr_cookie_modal input[type=checkbox]").each(function(){e(this).is(":checked")||(o=!1)})}function h(o){try{e(document).find("script[data-gdpr]").each(function(){r("script_removed: "+e(this).attr("src")),e(this).remove()});for(var t=document.cookie.split(";"),n=window.location.hostname,i=0;i<t.length;i++){var s=t[i],d=s.indexOf("="),c=d>-1?s.substr(0,d):s;c.includes("woocommerce")||c.includes("wc_")||c.includes("moove_gdpr_popup")||c.includes("wordpress")||(document.cookie=c+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT;domain="+n,document.cookie=c+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT;domain=."+n,r("cookie removed: "+c+" - "+n))}}catch(e){r("error in gdpr_delete_all_cookies: "+e)}"undefined"!=typeof sessionStorage&&sessionStorage.removeItem("gdpr_session")}function b(o){var r=m("moove_gdpr_popup");o&&(h(),t());var n="0",i="0",s="0",d="0",c="0",a=!1;r&&(r=JSON.parse(r),n=r.strict,i=r.advanced,s=r.thirdparty,d=void 0!==r.performance?r.performance:0,c=void 0!==r.preference?r.preference:0),e(document).find("#moove_gdpr_strict_cookies").length>0?e(document).find("#moove_gdpr_strict_cookies").is(":checked")?(n="1",a=!0):n="0":(a=!0,n="1"),e(document).find("#moove_gdpr_performance_cookies").is(":checked")?(s="1",a=!0):s="0",e(document).find("#moove_gdpr_advanced_cookies").is(":checked")?(i="1",a=!0):i="0",e(document).find("#moove_gdpr_performance_cc_cookies").is(":checked")?(d="1",a=!0):d="0",e(document).find("#moove_gdpr_preference_cc_cookies").is(":checked")?(c="1",a=!0):c="0",!r&&a?(g("moove_gdpr_popup",JSON.stringify({strict:n,thirdparty:s,advanced:i,performance:d,preference:c}),y),l(),e(document).find("#moove_gdpr_save_popup_settings_button").show()):r&&(w||g("moove_gdpr_popup",JSON.stringify({strict:n,thirdparty:s,advanced:i,performance:d,preference:c}),y));var r=m("moove_gdpr_popup");r&&(r=JSON.parse(r),"0"==r.strict&&"0"==r.thirdparty&&"0"==r.advanced&&"0"==r.performance&&"0"==r.preference&&h())}var y=365,k=[],w=!1;void 0!==moove_frontend_gdpr_scripts.cookie_expiration&&(y=moove_frontend_gdpr_scripts.cookie_expiration),e(document).on("click","#moove_gdpr_cookie_modal .moove-gdpr-modal-content.moove_gdpr_modal_theme_v1 .main-modal-content .moove-gdpr-tab-main:not(#privacy_overview) .tab-title",function(o){window.innerWidth<768&&(e(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-tab-main-content").is(":visible")?e(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-tab-main-content").slideUp(300):e(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-tab-main-content").slideDown(300))}),e(document).on("click tap",'#moove_gdpr_cookie_info_bar .moove-gdpr-infobar-reject-btn, [href*="#gdpr-reject-cookies"], .moove-gdpr-modal-reject-all',function(o){o.preventDefault(),h(),n(),e("#moove_gdpr_cookie_info_bar").length>0&&(e("#moove_gdpr_cookie_info_bar").addClass("moove-gdpr-info-bar-hidden"),e("body").removeClass("gdpr-infobar-visible"),e("#moove_gdpr_cookie_info_bar").hide(),e("#moove_gdpr_save_popup_settings_button").show()),e(".gdpr_lightbox .gdpr_lightbox-close").trigger("click"),e(document).moove_gdpr_lightbox_close(),void 0!==moove_frontend_gdpr_scripts.gdpr_scor&&"false"===moove_frontend_gdpr_scripts.gdpr_scor||(g("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"0",advanced:"0",performance:"0",preference:"0"}),y),setTimeout(function(){g("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"0",advanced:"0",performance:"0",preference:"0"}),y)},500)),p("reject-btn")});var x=!1,T=e(".moove_gdpr_modal_theme_v2 .moove-gdpr-tab-main").first(),C=e(".moove_gdpr_modal_theme_v2 .moove-gdpr-tab-main").first(),S=0,I=!1;e(document).on("keydown",function(o){if(e("body").hasClass("moove_gdpr_overflow")&&e(".moove-gdpr-modal-content").hasClass("moove_gdpr_modal_theme_v1")){if(38==o.keyCode){o.preventDefault();var r=e("#moove-gdpr-menu li.menu-item-selected"),t=r.prev();0===t.length&&(t=e("#moove-gdpr-menu li").last()),t.find(".moove-gdpr-tab-nav:visible").trigger("click"),e(".moove-gdpr-tab-main:visible").trigger("focus")}if(40==o.keyCode)if(o.preventDefault(),I){var r=e("#moove-gdpr-menu li.menu-item-selected"),t=r.prev();0===t.length&&(t=e("#moove-gdpr-menu li").last()),t.find(".moove-gdpr-tab-nav:visible").trigger("click"),e(".moove-gdpr-tab-main:visible").trigger("focus")}else{var r=e("#moove-gdpr-menu li.menu-item-selected"),n=r.next();0===n.length&&(n=e("#moove-gdpr-menu li").first()),n.find(".moove-gdpr-tab-nav:visible").trigger("click"),e(".moove-gdpr-tab-main:visible").trigger("focus")}if(9==o.keyCode){o.preventDefault();var i=e("#moove_gdpr_cookie_modal .mgbutton, #moove_gdpr_cookie_modal .moove-gdpr-modal-close, #moove_gdpr_cookie_modal #moove-gdpr-menu > li, #moove_gdpr_cookie_modal .moove-gdpr-branding");if(i.length>0){var s=!1;if(S<=i.length?(I?S--:S++,s=i[S],e(s).is(":visible")||(I?S--:S++,s=i[S])):(S=0,s=i[S]),e("#moove_gdpr_cookie_modal .focus-g").removeClass("focus-g"),S<0&&I&&(S=i.length),!s&&S>i.length&&(S=0,s=i[S]),e(s).addClass("focus-g").trigger("focus"),(e(s).hasClass("menu-item-on")||e(s).hasClass("menu-item-off"))&&e(s).find("button").trigger("click"),e(s).length>0)try{e(s)[0].scrollIntoViewIfNeeded()}catch(e){console.warn(e)}}else{e(".cookie-switch").removeClass("focus-g");var n=T.next();if(T=n,0===n.length&&(n=C,T=C),n.find(".cookie-switch").trigger("focus").addClass("focus-g"),n.find(".cookie-switch").length>0)try{n.find(".cookie-switch")[0].scrollIntoViewIfNeeded()}catch(e){console.warn(e)}}}if(32==o.keyCode){o.preventDefault();e(".moove-gdpr-tab-main:visible").find(".moove-gdpr-status-bar input[type=checkbox]").trigger("click")}13==o.keyCode&&(o.preventDefault(),e(document).find(".focus-g").length>0?e(document).find(".focus-g").trigger("click"):e(".moove-gdpr-modal-save-settings").trigger("click"))}if(e("body").hasClass("moove_gdpr_overflow")&&e(".moove-gdpr-modal-content").hasClass("moove_gdpr_modal_theme_v2")){if(38==o.keyCode){o.preventDefault();var r=e("#moove-gdpr-menu li.menu-item-selected"),t=r.prev();0===t.length&&(t=e("#moove-gdpr-menu li").last()),t.find(".moove-gdpr-tab-nav:visible").trigger("click"),e(".moove-gdpr-tab-main:visible").trigger("focus")}if(40==o.keyCode){o.preventDefault();var r=e("#moove-gdpr-menu li.menu-item-selected"),n=r.next();0===n.length&&(n=e("#moove-gdpr-menu li").first()),n.find(".moove-gdpr-tab-nav:visible").trigger("click"),e(".moove-gdpr-tab-main:visible").trigger("focus")}if(32==o.keyCode){o.preventDefault();e("#moove_gdpr_cookie_modal").find(".focus-g").trigger("click")}if(9==o.keyCode){o.preventDefault();var i=e("#moove_gdpr_cookie_modal .cookie-switch, #moove_gdpr_cookie_modal .mgbutton, #moove_gdpr_cookie_modal a:not(.moove-gdpr-branding), #moove_gdpr_cookie_modal .moove-gdpr-modal-close, #moove_gdpr_cookie_modal .moove-gdpr-branding");if(i.length>0){var s=!1;if(S<=i.length?(I?S--:S++,s=i[S],e(s).is(":visible")||(I?S--:S++,s=i[S])):(S=0,s=i[S]),e("#moove_gdpr_cookie_modal .focus-g").removeClass("focus-g"),S<0&&I&&(S=i.length),!s&&S>i.length&&(S=0,s=i[S]),e(s).addClass("focus-g").trigger("focus"),e(s).length>0)try{e(s)[0].scrollIntoViewIfNeeded()}catch(e){console.warn(e)}}else{e(".cookie-switch").removeClass("focus-g");var n=T.next();if(T=n,0===n.length&&(n=C,T=C),n.find(".cookie-switch").trigger("focus").addClass("focus-g"),n.find(".cookie-switch").length>0)try{n.find(".cookie-switch")[0].scrollIntoViewIfNeeded()}catch(e){console.warn(e)}}}13==o.keyCode&&(e("#moove_gdpr_cookie_modal .focus-g").length>0&&(e("#moove_gdpr_cookie_modal .focus-g").hasClass("mgbutton")||e("#moove_gdpr_cookie_modal .focus-g").hasClass("moove-gdpr-modal-close")||e("#moove_gdpr_cookie_modal .focus-g").attr("href"))?e("#moove_gdpr_cookie_modal .focus-g").attr("href")?e("#moove_gdpr_cookie_modal .focus-g").trigger("click"):(o.preventDefault(),e("#moove_gdpr_cookie_modal .focus-g").trigger("click")):(o.preventDefault(),e(".moove-gdpr-modal-save-settings").trigger("click")))}}),e(document).on("keyup",function(e){16==e.keyCode&&(I=!1),17!=e.keyCode&&18!=e.keyCode&&13!=e.keyCode||(I=!1)}),document.addEventListener("visibilitychange",function(e){I=!1}),e(document).on("keydown",function(o){if(16==o.keyCode&&(I=!0),e("body").hasClass("gdpr-infobar-visible")&&!e("body").hasClass("moove_gdpr_overflow")&&e("#moove_gdpr_cookie_info_bar").hasClass("gdpr-full-screen-infobar")){if(9==o.keyCode){o.preventDefault(),console.warn("fsw-tab");var r=e('#moove_gdpr_cookie_info_bar.gdpr-full-screen-infobar span.change-settings-button, #moove_gdpr_cookie_info_bar.gdpr-full-screen-infobar button.change-settings-button, #moove_gdpr_cookie_info_bar.gdpr-full-screen-infobar [data-target="third_party_cookies"] label, #moove_gdpr_cookie_info_bar.gdpr-full-screen-infobar [data-target="advanced-cookies"] label, #moove_gdpr_cookie_info_bar.gdpr-full-screen-infobar [data-target="performance-cookies"], #moove_gdpr_cookie_info_bar.gdpr-full-screen-infobar [data-target="preference-cookies"], label#moove_gdpr_cookie_info_bar.gdpr-full-screen-infobar .mgbutton');if(r.length>0){var t=!1;if(S<=r.length?(I?S--:S++,t=r[S],e(t).is(":visible")||(I?S--:S++,t=r[S])):(S=0,t=r[S]),e("#moove_gdpr_cookie_info_bar .focus-g").removeClass("focus-g"),S<0&&I&&(S=r.length),!t&&S>r.length&&(S=0,t=r[S]),e(document).find("*").blur(),e(t).addClass("focus-g").trigger("focus"),e(t).length>0)try{e(t)[0].scrollIntoViewIfNeeded()}catch(e){console.warn(e)}}else{e(".cookie-switch").removeClass("focus-g");var n=T.next();if(T=n,0===n.length&&(n=C,T=C),n.find(".cookie-switch").trigger("focus").addClass("focus-g"),n.find(".cookie-switch").length>0)try{n.find(".cookie-switch")[0].scrollIntoViewIfNeeded()}catch(e){console.warn(e)}}}if(32==o.keyCode){o.preventDefault();var i=e("#moove_gdpr_cookie_info_bar").find(".gdpr-shr-switch.focus-g input[type=checkbox]");console.warn("space"),i.trigger("click")}}13==o.keyCode&&e(document.activeElement).length>0&&e(document.activeElement).closest("#moove_gdpr_cookie_info_bar").length>0&&(o.preventDefault(),e(document.activeElement).trigger("click"))}),e.fn.moove_gdpr_read_cookies=function(e){var o=m("moove_gdpr_popup"),r={};return r.strict="0",r.thirdparty="0",r.advanced="0",r.performance="0",r.preference="0",o&&(o=JSON.parse(o),r.strict=parseInt(o.strict),r.thirdparty=parseInt(o.thirdparty),r.advanced=parseInt(o.advanced),r.performance=void 0!==o.performance?parseInt(o.performance):0,r.preference=void 0!==o.preference?parseInt(o.preference):0),r};var N=d(),O=!1,j=!1,D="",E=!1,A="";e(document).on("click tap","#moove_gdpr_cookie_info_bar .moove-gdpr-infobar-close-btn",function(o){if(o.preventDefault(),void 0!==moove_frontend_gdpr_scripts.close_btn_action){var r=parseInt(moove_frontend_gdpr_scripts.close_btn_action);1===r&&(l(),e("#moove_gdpr_save_popup_settings_button").show(),"undefined"!=typeof sessionStorage&&sessionStorage.setItem("gdpr_infobar_hidden",1)),2===r&&(h(),n(),e("#moove_gdpr_cookie_info_bar").length>0&&(e("#moove_gdpr_cookie_info_bar").addClass("moove-gdpr-info-bar-hidden"),e("body").removeClass("gdpr-infobar-visible"),e("#moove_gdpr_cookie_info_bar").hide(),e("#moove_gdpr_save_popup_settings_button").show()),e(".gdpr_lightbox .gdpr_lightbox-close").trigger("click"),e(document).moove_gdpr_lightbox_close(),void 0!==moove_frontend_gdpr_scripts.gdpr_scor&&"false"===moove_frontend_gdpr_scripts.gdpr_scor||(g("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"0",advanced:"0",performance:"0",preference:"0"}),y),setTimeout(function(){g("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"0",advanced:"0",performance:"0",preference:"0"}),y)},500)),p("reject-btn")),3===r&&a("enable_all close-btn"),4===r&&(h(),n(),e("#moove_gdpr_cookie_info_bar").length>0&&(e("#moove_gdpr_cookie_info_bar").addClass("moove-gdpr-info-bar-hidden"),e("body").removeClass("gdpr-infobar-visible"),e("#moove_gdpr_cookie_info_bar").hide(),e("#moove_gdpr_save_popup_settings_button").show()),e(".gdpr_lightbox .gdpr_lightbox-close").trigger("click"),e(document).moove_gdpr_lightbox_close(),void 0!==moove_frontend_gdpr_scripts.gdpr_scor&&"false"===moove_frontend_gdpr_scripts.gdpr_scor||(g("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"0",advanced:"0",performance:"0",preference:"0"}),y),setTimeout(function(){g("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"0",advanced:"0",performance:"0",preference:"0"}),y)},500)),void 0!==moove_frontend_gdpr_scripts.close_btn_rdr&&""!==moove_frontend_gdpr_scripts.close_btn_rdr?window.parent.location.href=moove_frontend_gdpr_scripts.close_btn_rdr:p("reject-btn"))}else l(),e("#moove_gdpr_save_popup_settings_button").show(),"undefined"!=typeof sessionStorage&&sessionStorage.setItem("gdpr_infobar_hidden",1)}),e.fn.moove_gdpr_save_cookie=function(o){var r=m("moove_gdpr_popup"),t=r,s=e(window).scrollTop();if(!r){if(o.thirdParty)var d="1";else var d="0";if(o.advanced)var a="1";else var a="0";if(o.performance)var p="1";else var p="0";if(o.preference)var l="1";else var l="0";if(o.scrollEnable){var f=o.scrollEnable;e(window).scroll(function(){!j&&e(this).scrollTop()-s>f&&("undefined"===o.thirdparty&&"undefined"===o.advanced||(g("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:d,advanced:a,performance:p,preference:l}),y),r=JSON.parse(r),_(r)))})}else"undefined"===o.thirdparty&&"undefined"===o.advanced||(g("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:d,advanced:a,performance:p,preference:l}),y),r=JSON.parse(r),_(r));if(r=m("moove_gdpr_popup"))if(r=JSON.parse(r),i("script_inject",r),j=!0,void 0!==moove_frontend_gdpr_scripts.ifbc?("strict"===moove_frontend_gdpr_scripts.ifbc&&r&&1===parseInt(r.strict)&&c(),"thirdparty"===moove_frontend_gdpr_scripts.ifbc&&r&&1===parseInt(r.thirdparty)&&c(),"advanced"===moove_frontend_gdpr_scripts.ifbc&&r&&1===parseInt(r.advanced)&&c(),"performance"===moove_frontend_gdpr_scripts.ifbc&&r&&1===parseInt(r.performance)&&c(),"preference"===moove_frontend_gdpr_scripts.ifbc&&r&&1===parseInt(r.preference)&&c()):1===parseInt(r.strict)&&c(),void 0!==moove_frontend_gdpr_scripts.scripts_defined)try{var v=JSON.parse(moove_frontend_gdpr_scripts.scripts_defined);if(void 0!==r.strict&&1===parseInt(r.strict)||parseInt(moove_frontend_gdpr_scripts.enabled_default.strict)>1)("undefined"!==r.strict&&1===parseInt(r.strict)||parseInt(moove_frontend_gdpr_scripts.enabled_default.strict)>1)&&void 0===k.strict&&(void 0!==v.strict&&v.strict.header&&postscribe(document.head,v.strict.header),void 0!==v.strict&&v.strict.body&&e(v.strict.body).prependTo(document.body),void 0!==v.strict&&v.strict.footer&&postscribe(document.body,v.strict.footer),k.strict=!0),1===parseInt(r.thirdparty)&&void 0===k.thirdparty&&(v.thirdparty.header&&postscribe(document.head,v.thirdparty.header),v.thirdparty.body&&e(v.thirdparty.body).prependTo(document.body),v.thirdparty.footer&&postscribe(document.body,v.thirdparty.footer),k.thirdparty=!0),1===parseInt(r.advanced)&&void 0===k.advanced&&(v.advanced.header&&postscribe(document.head,v.advanced.header),v.advanced.body&&e(v.advanced.body).prependTo(document.body),v.advanced.footer&&postscribe(document.body,v.advanced.footer),k.advanced=!0),void 0!==r.performance&&1===parseInt(r.performance)&&void 0===k.performance&&(void 0!==v.performance&&v.performance.header&&postscribe(document.head,v.performance.header),void 0!==v.performance&&v.performance.body&&e(v.performance.body).prependTo(document.body),void 0!==v.performance&&v.performance.footer&&postscribe(document.body,v.performance.footer),k.performance=!0),void 0!==r.preference&&1===parseInt(r.preference)&&void 0===k.preference&&(void 0!==v.preference&&v.preference.header&&postscribe(document.head,v.preference.header),void 0!==v.preference&&v.preference.body&&e(v.preference.body).prependTo(document.body),void 0!==v.preference&&v.preference.footer&&postscribe(document.body,v.preference.footer),k.preference=!0);else{var r=m("moove_gdpr_popup");r&&(h(),n())}}catch(e){console.warn("2"),console.error(e)}else if(void 0===k.thirdparty||void 0===k.advanced||void 0===k.performance||void 0===k.preference){1===r.thirdparty&&(k.thirdparty=!0),1===r.advanced&&(k.advanced=!0),1===r.performance&&(k.performance=!0),1===r.preference&&(k.preference=!0);var u=void 0!==moove_frontend_gdpr_scripts.wp_lang?moove_frontend_gdpr_scripts.wp_lang:"";0===parseInt(r.thirdparty)&&0===parseInt(r.advanced)&&0===parseInt(r.performance)&&0===parseInt(r.preference)&&h(),e.post(moove_frontend_gdpr_scripts.ajaxurl,{action:"moove_gdpr_get_scripts",strict:r.strict,thirdparty:r.thirdparty,advanced:r.advanced,performance:r.performance,preference:r.preference,wp_lang:u},function(o){O=t,i("script_inject",r);var n=JSON.parse(o);n.header&&postscribe(document.head,n.header),n.body&&e(n.body).prependTo(document.body),n.footer&&postscribe(document.body,n.footer)})}}},function(){var o=(location.pathname,e(window).scrollTop());e("#moove_gdpr_save_popup_settings_button").show();var t=moove_frontend_gdpr_scripts.enabled_default.strict,n=moove_frontend_gdpr_scripts.enabled_default.third_party,i=moove_frontend_gdpr_scripts.enabled_default.advanced,s=void 0!==moove_frontend_gdpr_scripts.enabled_default.performance&&moove_frontend_gdpr_scripts.enabled_default.performance,c=void 0!==moove_frontend_gdpr_scripts.enabled_default.preference&&moove_frontend_gdpr_scripts.enabled_default.preference;if(void 0!==moove_frontend_gdpr_scripts.enable_on_scroll&&"true"===moove_frontend_gdpr_scripts.enable_on_scroll&&1!==parseInt(n)&&1!==parseInt(i)&&1!==parseInt(s)&&1!==parseInt(c)&&1!==parseInt(t)&&(t=1,n=1,i=1,s=1,c=1),document.cookie.indexOf("moove_gdpr_popup")>=0||1==n||1==i||1==s||1==c||t>1){var a=m("moove_gdpr_popup");if(a){var u=d();"0"==u.strict&&"0"==u.thirdparty&&"0"==u.advanced&&"0"==u.performance&&"0"==u.preference&&(h(),f())}else{var b=!1;if("undefined"!=typeof sessionStorage&&(b=sessionStorage.getItem("gdpr_session")),void 0!==moove_frontend_gdpr_scripts.enable_on_scroll&&"true"===moove_frontend_gdpr_scripts.enable_on_scroll){if(b)try{_(JSON.parse(b)),j=!0,r("dbg - inject - 1"),v(b),g("moove_gdpr_popup",b,y),l()}catch(e){}else if((!j&&1==moove_frontend_gdpr_scripts.enabled_default.third_party||!j&&1==moove_frontend_gdpr_scripts.enabled_default.advanced||!j&&1==moove_frontend_gdpr_scripts.enabled_default.performance||!j&&1==moove_frontend_gdpr_scripts.enabled_default.performance)&&(a={strict:1,thirdparty:n,advanced:i,performance:s,preference:c},_(a),a=JSON.stringify(a),x=!0,f(),r("dbg - default scroll inject")),void 0!==moove_frontend_gdpr_scripts.gdpr_aos_hide&&("1"===moove_frontend_gdpr_scripts.gdpr_aos_hide||"true"===moove_frontend_gdpr_scripts.gdpr_aos_hide||"object"==typeof moove_frontend_gdpr_scripts.gdpr_aos_hide&&moove_frontend_gdpr_scripts.gdpr_aos_hide.includes("1"))&&(r("dbg - enable on scroll - enter"),e(window).scroll(function(){if((!j||x)&&e(this).scrollTop()-o>200){a={strict:1,thirdparty:n,advanced:i,performance:s,preference:c},m("moove_gdpr_popup")||"undefined"!=typeof sessionStorage&&((b=sessionStorage.getItem("gdpr_session"))||(sessionStorage.setItem("gdpr_session",JSON.stringify(a)),b=sessionStorage.getItem("gdpr_session")));try{_(a),a=JSON.stringify(a),f(),j=!0,r("dbg - inject - 2 - accept on scroll"),x||v(a),x=!1,g("moove_gdpr_popup",a,y),l(),p("check reload on scroll"),e("#moove_gdpr_save_popup_settings_button").show()}catch(e){}}})),void 0!==moove_frontend_gdpr_scripts.gdpr_aos_hide&&("2"===moove_frontend_gdpr_scripts.gdpr_aos_hide||"object"==typeof moove_frontend_gdpr_scripts.gdpr_aos_hide&&moove_frontend_gdpr_scripts.gdpr_aos_hide.includes("2"))){var k=30;if(void 0!==moove_frontend_gdpr_scripts.gdpr_aos_hide_seconds)var k=parseInt(moove_frontend_gdpr_scripts.gdpr_aos_hide_seconds);r("dbg - hidetimer - enter, seconds: "+k),setTimeout(function(){if(r("dbg - hidetimer - is_created: "+j),!j){a={strict:1,thirdparty:n,advanced:i,performance:s,preference:c};var o=m("moove_gdpr_popup");r("dbg - hidetimer - cookies_stored: "+o),o||"undefined"!=typeof sessionStorage&&((b=sessionStorage.getItem("gdpr_session"))||(sessionStorage.setItem("gdpr_session",JSON.stringify(a)),b=sessionStorage.getItem("gdpr_session")));try{_(a),a=JSON.stringify(a),f(),j=!0,r("dbg - inject - 2a"),v(a),g("moove_gdpr_popup",a,y),p("check reload hidetimer")}catch(e){}}l(),e("#moove_gdpr_save_popup_settings_button").show()},1e3*k)}}else a={strict:1,thirdparty:n,advanced:i,performance:s,preference:c},_(a),a=JSON.stringify(a),f()}r("dbg - inject - 3"),v(a)}else f()}(),e(document).on("click",'[data-href*="#moove_gdpr_cookie_modal"],[href*="#moove_gdpr_cookie_modal"]',function(o){o.preventDefault(),e("#moove_gdpr_cookie_modal").length>0&&(E=!0,D=gdpr_lightbox("#moove_gdpr_cookie_modal"),e(".gdpr_lightbox").addClass("moove_gdpr_cookie_modal_open"),e(document).moove_gdpr_lightbox_open(),i("opened_modal_from_link",""))}),e(document).on("click",'[data-href*="#gdpr_cookie_modal"],[href*="#gdpr_cookie_modal"]',function(o){o.preventDefault(),e("#moove_gdpr_cookie_modal").length>0&&(E=!0,D=gdpr_lightbox("#moove_gdpr_cookie_modal"),e(".gdpr_lightbox").addClass("moove_gdpr_cookie_modal_open"),e(document).moove_gdpr_lightbox_open(),i("opened_modal_from_link",""))}),e(document).on("click tap","#moove_gdpr_cookie_info_bar .moove-gdpr-close-modal-button a, #moove_gdpr_cookie_info_bar .moove-gdpr-close-modal-button button",function(e){e.preventDefault()}),e(document).on("click tap",".moove-gdpr-modal-close",function(o){o.preventDefault(),e(".gdpr_lightbox .gdpr_lightbox-close").trigger("click"),e(document).moove_gdpr_lightbox_close()}),e(document).on("click","#moove-gdpr-menu .moove-gdpr-tab-nav",function(o){o.preventDefault(),o.stopPropagation(),e("#moove-gdpr-menu li").removeClass("menu-item-selected"),e(this).parent().addClass("menu-item-selected"),e(".moove-gdpr-tab-content .moove-gdpr-tab-main").hide(),e(e(this).attr("href")).show(),e(e(this).attr("data-href")).show(),i("clicked_to_tab",e(this).attr("data-href"))}),e(document).on("gdpr_lightbox:close",function(o,r){e(document).moove_gdpr_lightbox_close()}),e.fn.moove_gdpr_lightbox_close=function(o){E&&(e("body").removeClass("moove_gdpr_overflow"),E=!1)},e.fn.moove_gdpr_lightbox_open=function(o){if(E){e("body").addClass("moove_gdpr_overflow");var r=m("moove_gdpr_popup");document.activeElement.blur(),"none"===moove_frontend_gdpr_scripts.show_icons&&e("body").addClass("gdpr-no-icons"),e(".moove-gdpr-status-bar input[type=checkbox]").each(function(){e(this).is(":checked")?e(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-strict-warning-message").slideUp():e(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-strict-warning-message").slideDown()}),r?(r=JSON.parse(r),_(r)):e("#moove_gdpr_strict_cookies").is(":checked")||(e("#advanced-cookies .gdpr-cc-form-fieldset").addClass("fl-disabled"),e("#third_party_cookies .gdpr-cc-form-fieldset").addClass("fl-disabled")),void 0!==moove_frontend_gdpr_scripts.hide_save_btn&&"true"===moove_frontend_gdpr_scripts.hide_save_btn?e(".moove-gdpr-modal-save-settings").removeClass("button-visible").hide():e(".moove-gdpr-modal-save-settings").addClass("button-visible").show(),u()}},e(document).on("gdpr_lightbox:open",function(o,r){e(document).moove_gdpr_lightbox_open()}),e(document).on("click tap",".fl-disabled",function(o){e("#moove_gdpr_cookie_modal .moove-gdpr-modal-content").is(".moove_gdpr_modal_theme_v2")?e("#moove_gdpr_strict_cookies").length>0&&(e("#moove_gdpr_strict_cookies").trigger("click"),
     3e(this).trigger("click")):e(this).closest(".moove-gdpr-tab-main-content").find(".moove-gdpr-strict-secondary-warning-message").slideDown()}),e(document).on("change",".moove-gdpr-status-bar input[type=checkbox]",function(o){e(".moove-gdpr-modal-save-settings").addClass("button-visible").show();var r=e(this).closest(".moove-gdpr-tab-main").attr("id");e(this).closest(".moove-gdpr-status-bar").toggleClass("checkbox-selected"),e(this).closest(".moove-gdpr-tab-main").toggleClass("checkbox-selected"),e("#moove-gdpr-menu .menu-item-"+r).toggleClass("menu-item-off"),e(this).is(":checked")?e(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-strict-warning-message").slideUp():e(this).closest(".moove-gdpr-tab-main").find(".moove-gdpr-strict-warning-message").slideDown(),e(this).is("#moove_gdpr_strict_cookies")&&(e(this).is(":checked")?(e("#third_party_cookies fieldset, #third_party_cookies .gdpr-cc-form-fieldset").removeClass("fl-disabled"),e("#moove_gdpr_performance_cookies").prop("disabled",!1),e("#third_party_cookies .moove-gdpr-strict-secondary-warning-message").slideUp(),e("#advanced-cookies fieldset, #advanced-cookies .gdpr-cc-form-fieldset").removeClass("fl-disabled"),e("#advanced-cookies .moove-gdpr-strict-secondary-warning-message").slideUp(),e("#moove_gdpr_advanced_cookies").prop("disabled",!1),e("#performance-cookies fieldset, #performance-cookies .gdpr-cc-form-fieldset").removeClass("fl-disabled"),e("#performance-cookies .moove-gdpr-strict-secondary-warning-message").slideUp(),e("#moove_gdpr_performance_cc_cookies").prop("disabled",!1),e("#preference-cookies fieldset, #preference-cookies .gdpr-cc-form-fieldset").removeClass("fl-disabled"),e("#preference-cookies .moove-gdpr-strict-secondary-warning-message").slideUp(),e("#moove_gdpr_preference_cc_cookies").prop("disabled",!1)):(e(".gdpr_cookie_settings_shortcode_content").find("input").each(function(){e(this).prop("checked",!1)}),e("#third_party_cookies fieldset, #third_party_cookies .gdpr-cc-form-fieldset").addClass("fl-disabled").closest(".moove-gdpr-status-bar").removeClass("checkbox-selected"),e("#moove_gdpr_performance_cookies").prop("disabled",!0).prop("checked",!1),e("#advanced-cookies fieldset, #advanced-cookies .gdpr-cc-form-fieldset").addClass("fl-disabled").closest(".moove-gdpr-status-bar").removeClass("checkbox-selected"),e("#moove_gdpr_advanced_cookies").prop("disabled",!0).prop("checked",!1),e("#performance-cookies fieldset, #performance-cookies .gdpr-cc-form-fieldset").addClass("fl-disabled").closest(".moove-gdpr-status-bar").removeClass("checkbox-selected"),e("#moove_gdpr_performance_cc_cookies").prop("disabled",!0).prop("checked",!1),e("#preference-cookies fieldset, #preference-cookies .gdpr-cc-form-fieldset").addClass("fl-disabled").closest(".moove-gdpr-status-bar").removeClass("checkbox-selected"),e("#moove_gdpr_preference_cc_cookies").prop("disabled",!0).prop("checked",!1))),e('input[data-name="'+e(this).attr("name")+'"]').prop("checked",e(this).is(":checked")),u()}),e(document).on("click tap",".gdpr_cookie_settings_shortcode_content a.gdpr-shr-save-settings",function(o){o.preventDefault(),b(!0),e(".gdpr_lightbox .gdpr_lightbox-close").trigger("click"),e(document).moove_gdpr_lightbox_close(),p("modal-save-settings")}),e(document).on("change",".gdpr_cookie_settings_shortcode_content input[type=checkbox]",function(o){var r=e(this).attr("data-name"),t=e("#"+r);e(this).is(":checked")?(e('input[data-name="'+r+'"]').prop("checked",!0),"moove_gdpr_strict_cookies"!==e(this).attr("data-name")&&(e(this).closest(".gdpr_cookie_settings_shortcode_content").find('input[data-name="moove_gdpr_strict_cookies"]').is(":checked")||(e('input[data-name="'+r+'"]').prop("checked",!1),e('.gdpr_cookie_settings_shortcode_content input[data-name="moove_gdpr_strict_cookies"]').closest(".gdpr-shr-switch").css("transform","scale(1.2)"),setTimeout(function(){e('.gdpr_cookie_settings_shortcode_content input[data-name="moove_gdpr_strict_cookies"]').closest(".gdpr-shr-switch").css("transform","scale(1)")},300)))):(e('input[data-name="'+r+'"]').prop("checked",e(this).is(":checked")),"moove_gdpr_strict_cookies"===e(this).attr("data-name")&&e(".gdpr_cookie_settings_shortcode_content").find('input[type="checkbox"]').prop("checked",!1)),t.trigger("click")}),e(document).on("click tap",'.moove-gdpr-modal-allow-all, [href*="#gdpr-accept-cookies"]',function(o){o.preventDefault(),e("#moove_gdpr_cookie_modal").find("input[type=checkbox]").each(function(){var o=e(this);o.is(":checked")||o.trigger("click")}),a("enable_all enable-all-button"),e(".gdpr_lightbox .gdpr_lightbox-close").trigger("click"),l(),b(!1),e(document).moove_gdpr_lightbox_close()}),e(document).on("click tap",".moove-gdpr-infobar-allow-all",function(o){o.preventDefault(),e("#moove_gdpr_cookie_modal").find("input[type=checkbox]").each(function(){var o=e(this);o.is(":checked")||o.trigger("click")}),a("enable_all allow-btn"),e(".gdpr_lightbox .gdpr_lightbox-close").trigger("click"),l(),b(!1)}),e(document).on("click tap",".moove-gdpr-modal-save-settings",function(o){o.preventDefault(),b(!0),e(".gdpr_lightbox .gdpr_lightbox-close").trigger("click"),e(document).moove_gdpr_lightbox_close(),p("modal-save-settings")});if(window.location.hash){var J=window.location.hash.substring(1);J=J.replace(/\/$/,""),"moove_gdpr_cookie_modal"!==J&&"gdpr_cookie_modal"!==J||(E=!0,i("opened_modal_from_link",""),setTimeout(function(){e("#moove_gdpr_cookie_modal").length>0&&(D=gdpr_lightbox("#moove_gdpr_cookie_modal"),e(".gdpr_lightbox").addClass("moove_gdpr_cookie_modal_open"),e(document).moove_gdpr_lightbox_open())},500)),"gdpr-accept-cookies"===J&&(e("#moove_gdpr_cookie_modal").find("input[type=checkbox]").each(function(){var o=e(this);o.is(":checked")||o.trigger("click")}),a("enable_all enable-all-button"),e(".gdpr_lightbox .gdpr_lightbox-close").trigger("click"),l(),b(!0),e(document).moove_gdpr_lightbox_close()),"gdpr-reject-cookies"===J&&(h(),n(),e("#moove_gdpr_cookie_info_bar").length>0&&(e("#moove_gdpr_cookie_info_bar").addClass("moove-gdpr-info-bar-hidden"),e("body").removeClass("gdpr-infobar-visible"),e("#moove_gdpr_cookie_info_bar").hide(),e("#moove_gdpr_save_popup_settings_button").show()),f(),g("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"0",advanced:"0",performance:"0",preference:"0"}),y),setTimeout(function(){g("moove_gdpr_popup",JSON.stringify({strict:"1",thirdparty:"0",advanced:"0",performance:"0",preference:"0"}),y)},500))}},finalize:function(){}}},r={fire:function(e,r,t){var n,i=o;r=void 0===r?"init":r,n=""!==e,n=n&&i[e],(n=n&&"function"==typeof i[e][r])&&i[e][r](t)},loadEvents:function(){var o=!1,t=!1;if(void 0!==moove_frontend_gdpr_scripts.gpc&&1===parseInt(moove_frontend_gdpr_scripts.gpc)&&void 0!==navigator.globalPrivacyControl&&(gpcValue=navigator.globalPrivacyControl,gpcValue&&(t=!0,console.warn("GDPR Cookie Compliance - Blocked by Global Policy Control (GPC)"))),!t)if(void 0!==moove_frontend_gdpr_scripts.geo_location&&"true"===moove_frontend_gdpr_scripts.geo_location)jQuery.post(moove_frontend_gdpr_scripts.ajaxurl,{action:"moove_gdpr_localize_scripts"},function(e){var t=JSON.parse(e);void 0!==t.display_cookie_banner&&(moove_frontend_gdpr_scripts.display_cookie_banner=t.display_cookie_banner),void 0!==t.enabled_default&&(moove_frontend_gdpr_scripts.enabled_default=t.enabled_default),o||(o=!0,r.fire("common"))});else{var n=void 0!==typeof moove_frontend_gdpr_scripts.script_delay&&parseInt(moove_frontend_gdpr_scripts.script_delay)>=0?parseInt(moove_frontend_gdpr_scripts.script_delay):0;n>0?setTimeout(function(){r.fire("common")},n):r.fire("common")}e.each(document.body.className.replace(/-/g,"_").split(/\s+/),function(e,o){r.fire(o),r.fire(o,"finalize")}),r.fire("common","finalize")}};e(document).ready(r.loadEvents)}(jQuery);
  • gdpr-cookie-compliance/trunk/moove-gdpr.php

    r3339399 r3342808  
    55 *  Plugin URI: https://wordpress.org/plugins/gdpr-cookie-compliance/
    66 *  Description: Our plugin is useful in preparing your site for the following data protection and privacy regulations: GDPR, CCPA, PIPEDA, AAP, LGPD and others.
    7  *  Version: 5.0.2
     7 *  Version: 5.0.3
    88 *  Author: Moove Agency
    99 *  Domain Path: /languages
     
    1919} // Exit if accessed directly
    2020
    21 define( 'MOOVE_GDPR_VERSION', '5.0.2' );
     21define( 'MOOVE_GDPR_VERSION', '5.0.3' );
    2222if ( ! defined( 'MOOVE_SHOP_URL' ) ) :
    2323    define( 'MOOVE_SHOP_URL', 'https://shop.mooveagency.com' );
  • gdpr-cookie-compliance/trunk/readme.txt

    r3339399 r3342808  
    33Donate link: https://www.mooveagency.com/wordpress-plugins/gdpr-cookie-compliance/
    44Tags: GDPR, CCPA, DSGVO, cookie banner, cookie consent, cookie notice
    5 Stable tag: 5.0.2
     5Stable tag: 5.0.3
    66Requires at least: 4.5
    77Tested up to: 6.8
     
    265265
    266266== Changelog ==
     267= 5.0.3: 11 August 2025 =
     268* Strictly Necessary cookie improvements
     269* Minor fixes
     270
    267271= 5.0.2: 5 August 2025 =
    268272* Integration script insert improved
  • gdpr-cookie-compliance/trunk/views/moove/admin/settings/strictly-necessary-cookies.php

    r3336406 r3342808  
    2323    else :
    2424        if ( is_array( $_POST ) ) :
     25            $value = 1;
     26            if ( isset( $_POST['moove_gdpr_strictly_necessary_cookies_functionality'] ) && intval( $_POST['moove_gdpr_strictly_necessary_cookies_functionality'] ) ) :
     27                $value = intval( $_POST['moove_gdpr_strictly_necessary_cookies_functionality'] );
     28            endif;
     29
     30            $gdpr_options['moove_gdpr_strictly_necessary_cookies_functionality'] = $value;
     31
     32            $value = 0;
     33            if ( isset( $_POST['moove_gdpr_strictly_ccat_enable'] ) && intval( $_POST['moove_gdpr_strictly_ccat_enable'] ) ) :
     34                $value = intval( $_POST['moove_gdpr_strictly_ccat_enable'] );
     35            endif;
     36
     37            $gdpr_options['moove_gdpr_strictly_ccat_enable'] = $value;
     38
    2539            foreach ( $_POST as $form_key => $form_value ) :
    2640                if ( 'moove_gdpr_strict_necessary_cookies_tab_content' === $form_key ) :
    2741                    $value                                  = wp_unslash( $form_value );
    28                     $gdpr_options[ $form_key . $wpml_lang ] = $value;
    29                     update_option( $option_name, $gdpr_options );
    30                     $gdpr_options = get_option( $option_name );
     42                    $gdpr_options[ $form_key . $wpml_lang ] = $value;                   
    3143                elseif ( 'moove_gdpr_strictly_header_scripts' === $form_key || 'moove_gdpr_strictly_body_scripts' === $form_key || 'moove_gdpr_strictly_footer_scripts' === $form_key || 'moove_gdpr_strictly_necessary_cookies_tab_title' === $form_key ) :
    3244                    $value                     = wp_unslash( $form_value );
    3345                    $gdpr_options[ $form_key ] = maybe_serialize( $value );
    34                     update_option( $option_name, $gdpr_options );
    35                     $gdpr_options = get_option( $option_name );
    3646                endif;
    3747            endforeach;
     48            update_option( $option_name, $gdpr_options );
     49            $gdpr_options = get_option( $option_name );
    3850        endif;
    3951        do_action( 'gdpr_cookie_filter_settings' );
     
    4658endif;
    4759$nav_label = isset( $gdpr_options[ 'moove_gdpr_strictly_necessary_cookies_tab_title' . $wpml_lang ] ) && $gdpr_options[ 'moove_gdpr_strictly_necessary_cookies_tab_title' . $wpml_lang ] ? $gdpr_options[ 'moove_gdpr_strictly_necessary_cookies_tab_title' . $wpml_lang ] : __( 'Necessary', 'gdpr-cookie-compliance' );
     60
     61$strictly              = isset( $gdpr_options['moove_gdpr_strictly_necessary_cookies_functionality'] ) && intval( $gdpr_options['moove_gdpr_strictly_necessary_cookies_functionality'] ) ? intval( $gdpr_options['moove_gdpr_strictly_necessary_cookies_functionality'] ) : 1;
     62$strictly                   = $strictly && 3 === intval( $strictly ) ? 2 : $strictly;
     63   
     64$moove_gdpr_strictly_ccat_enable = isset( $gdpr_options['moove_gdpr_strictly_ccat_enable'] ) ? ( intval( $gdpr_options['moove_gdpr_strictly_ccat_enable'] ) === 1 ? true : ( ! isset( $gdpr_options['moove_gdpr_strictly_ccat_enable'] ) ? true : false ) ) : true;
    4865?>
    4966<form action="<?php echo esc_url( admin_url( 'admin.php?page=moove-gdpr&tab=strictly-necessary-cookies&gcat=cookie_categories' ) ); ?>" method="post" id="moove_gdpr_tab_strictly_necessary_cookies">
    5067    <?php wp_nonce_field( 'moove_gdpr_nonce_field', 'moove_gdpr_nonce' ); ?>
    5168    <table class="form-table">
    52         <tbody>
    53            
     69        <tbody>         
     70            <tr>
     71                <th scope="row">
     72                    <label for="moove_gdpr_strictly_ccat_enable">
     73                        <?php esc_html_e( 'Turn', 'gdpr-cookie-compliance' ); ?>
     74                    </label>
     75                </th>
     76                <td>
     77                    <!-- GDPR Rounded switch -->
     78                    <label class="gdpr-checkbox-toggle">
     79                        <input type="checkbox" name="moove_gdpr_strictly_ccat_enable" id="moove_gdpr_strictly_ccat_enable" <?php echo $moove_gdpr_strictly_ccat_enable ? 'checked' : ''; ?> value="1" >
     80                        <span class="gdpr-checkbox-slider" data-enable="<?php esc_html_e( 'On', 'gdpr-cookie-compliance' ); ?>" data-disable="<?php esc_html_e( 'Off', 'gdpr-cookie-compliance' ); ?>"></span>
     81                    </label>
     82                </td>
     83            </tr>
     84
     85            <tr>
     86                <th scope="row">
     87                    <label for="moove_gdpr_strictly_necessary_cookies_functionality"><?php esc_html_e( 'Default status', 'gdpr-cookie-compliance' ); ?></label>
     88                </th>
     89                <td data-fsm="<?php echo isset( $gdpr_options['moove_gdpr_full_screen_enable'] ) && 1 === intval( $gdpr_options['moove_gdpr_full_screen_enable'] ) ? 'true' : 'false'; ?>">
     90
     91                    <input name="moove_gdpr_strictly_necessary_cookies_functionality" type="radio" value="1" id="moove_gdpr_strictly_necessary_cookies_functionality_1" <?php echo $strictly === 1 ? 'checked' : ''; ?> class="on-off"> <label for="moove_gdpr_strictly_necessary_cookies_functionality_1"><?php esc_html_e( 'Disabled', 'gdpr-cookie-compliance' ); ?></label> <span class="separator"></span><br /><br />
     92
     93                    <input name="moove_gdpr_strictly_necessary_cookies_functionality" type="radio" value="4" id="moove_gdpr_strictly_necessary_cookies_functionality_4" <?php echo $strictly === 4 ? 'checked' : ''; ?> class="on-off"> <label for="moove_gdpr_strictly_necessary_cookies_functionality_4"><?php esc_html_e( 'Enabled', 'gdpr-cookie-compliance' ); ?></label><br /><br />
     94
     95                    <input name="moove_gdpr_strictly_necessary_cookies_functionality" type="radio" value="2" id="moove_gdpr_strictly_necessary_cookies_functionality_2" <?php echo $strictly === 2 ? 'checked' : ''; ?> class="on-off"> <label for="moove_gdpr_strictly_necessary_cookies_functionality_2"><?php esc_html_e( 'Always enabled (user cannot disable these cookies)', 'gdpr-cookie-compliance' ); ?></label><br /><br />
     96                </td>
     97            </tr>
     98
    5499            <tr>
    55100                <th scope="row">
     
    91136    <div class="gdpr-script-tab-content">
    92137        <hr />
    93         <h3><?php esc_html_e( 'The scripts inserted below are considered necessary for the correct functionality of the website and therefore will be loaded on every page load.', 'gdpr-cookie-compliance' ); ?></h3>
    94         <h4><?php esc_html_e( 'Users can’t reject them. Leave the script section below empty if you don’t want to load any default scripts on your site.', 'gdpr-cookie-compliance' ); ?></h4>
     138        <h3><?php esc_html_e( 'Paste your codes and snippets below. They will be added to all pages if user enables these cookies.', 'gdpr-cookie-compliance' ); ?></h3>
    95139
    96140        <div class="gdpr-tab-code-section-nav">
Note: See TracChangeset for help on using the changeset viewer.