PageSourceSearch

https://honeywhale.co.nz/wp-content/cache/wpo-minify/1790987915/as…po-minify-footer-woosc-frontend6.2.8.min.js

js honeywhale.co.nz collected 2026-10-04 04:09:47 UTC 25,043 bytes, 83 lines download raw bytes

1try{
2
3'use strict';(function($){var woosc_timer=0;$(function(){woosc_load_color();woosc_change_count('first');woosc_check_buttons();woosc_hide_empty();woosc_hide_similarities();woosc_highlight_differences();if(woosc_vars.reload_count==='yes'){woosc_load_data('count')}
4if(woosc_vars.open_bar==='yes'){woosc_load_data('bar');woosc_open_bar()}
5$('.woosc-settings-fields').sortable({handle:'.move',update:function(event,ui){woosc_save_settings()},});if(woosc_vars.button_action==='show_message'){$.notiny.addTheme('woosc',{notification_class:'notiny-theme-woosc',})}
6woosc_quick_table()});$(window).on('resize',function(){woosc_quick_table()});$(document).on('click touch','.woosc_table .woosq-btn, .woosc_table .woosq-link',function(e){e.preventDefault();woosc_close()});$(document).on('click touch','.woosc-sidebar .woosq-btn, .woosc-sidebar .woosq-link',function(e){e.preventDefault();woosc_close_sidebar()});$(document).on('click touch','.zqkudu',function(e){e.preventDefault();return!1});$(document).on('click touch','.zqcompareback,.zqcomparetablenoimg .button,.zqselfspace .added_to_cart,.zqaddcard .button--add',function(e){e.preventDefault();if(window.location.href!=$(this).attr("href")){window.location.href=$(this).attr("href")}
7$('.comparator-table__container').removeClass("modal-show").css("display","none");return!1});$(document).on('click touch','.comparator-table__container',function(e){e.preventDefault();$(this).removeClass("modal-show").css("display","none");return!1});$(document).on('click touch','.woosc-table-settings',function(e){e.preventDefault();$('.woosc-settings').toggleClass('open')});$(document).on('click touch','.woosc-bar-print',function(e){e.preventDefault();$.print('#woosc-area')});$(document).on('keydown',function(e){if((e.ctrlKey==!0||e.metaKey==!0)&&(e.which=='80')){if($('.woosc-area').hasClass('woosc-area-open-table')){e.preventDefault();$.print('#woosc-area')}}});$(document).on('click touch','.woosc-bar-share',function(e){e.preventDefault();$('.woosc-share').toggleClass('open');$('.woosc-share-content').addClass('woosc-loading');var data={action:'woosc_share',nonce:woosc_vars.nonce,};jQuery.post(woosc_vars.wc_ajax_url.toString().replace('%%endpoint%%','woosc_share'),data,function(response){$('.woosc-share-content').html(response).removeClass('woosc-loading')})});$(document).on('click touch','#woosc_copy_url, #woosc_copy_btn',function(e){e.preventDefault();let $link=$('#woosc_copy_url');let link=$link.val();navigator.clipboard.writeText(link).then(function(){alert(woosc_vars.copied_text.replace('%s',link))},function(){alert('Failure to copy!')});$link.select()});$(document).on('click touch','.woosc-bar-search',function(e){e.preventDefault();$('.woosc-search').toggleClass('open');if($('.woosc-search-result').text()===''){if(woosc_timer!=null){clearTimeout(woosc_timer)}
8woosc_timer=setTimeout(woosc_search,300);return!1}});$(document).on('click touch','.woosc-popup',function(e){if($(e.target).closest('.woosc-popup-content').length===0){$(this).toggleClass('open')}});$(document).on('keyup','#woosc_search_input',function(){if($('#woosc_search_input').val()!==''){if(woosc_timer!=null){clearTimeout(woosc_timer)}
9woosc_timer=setTimeout(woosc_search,300);return!1}});$(document).on('click touch','.woosc-item-add',function(e){e.preventDefault();var product_id=$(this).attr('data-id');$('.woosc-search').toggleClass('open');woosc_add_product(product_id);woosc_load_data('table');woosc_open_table()});$(document).on('click touch','.woosc-popup-close',function(e){e.preventDefault();$(this).closest('.woosc-popup').toggleClass('open')});$(document).on('click touch','.Compare_Now',function(e){e.preventDefault();$(".modal__dialog").removeClass("modal-show");$(".comparator-table__container").addClass("modal-show").css("display","flex")});$(document).on('woovr_selected',function(e,selected){if(woosc_vars.variations==='yes'){var id=selected.attr('data-id');var pid=selected.attr('data-pid');if(id>0){$('.woosc-btn-'+pid).removeClass('woosc-btn-added woosc-added').attr('data-id',id)}else{$('.woosc-btn-'+pid).removeClass('woosc-btn-added woosc-added').attr('data-id',pid)}}});$(document).on('found_variation',function(e,t){if(woosc_vars.variations==='yes'){var product_id=$(e.target).attr('data-product_id');$('.woosc-btn-'+product_id).removeClass('woosc-btn-added woosc-added').attr('data-id',t.variation_id);$('.woosc-btn-'+product_id+':not(.woosc-btn-has-icon)').html(woosc_vars.button_text);$('.woosc-btn-has-icon.woosc-btn-'+product_id).find('.woosc-btn-icon').removeClass(woosc_vars.button_added_icon).addClass(woosc_vars.button_normal_icon);$('.woosc-btn-has-icon.woosc-btn-'+product_id).find('.woosc-btn-text').html(woosc_vars.button_text)}});$(document).on('reset_data',function(e){if(woosc_vars.variations==='yes'){var product_id=$(e.target).attr('data-product_id');$('.woosc-btn-'+product_id).removeClass('woosc-btn-added woosc-added').attr('data-id',product_id);$('.woosc-btn-'+product_id+':not(.woosc-btn-has-icon)').html(woosc_vars.button_text);$('.woosc-btn-has-icon.woosc-btn-'+product_id).find('.woosc-btn-icon').removeClass(woosc_vars.button_added_icon).addClass(woosc_vars.button_normal_icon);$('.woosc-btn-has-icon.woosc-btn-'+product_id).find('.woosc-btn-text').html(woosc_vars.button_text)}});$(document).on('click touch','.woosc-bar-remove',function(e){e.preventDefault();var r=confirm(woosc_vars.remove_all);if(r==!0){woosc_remove_product('all');woosc_load_data('table')}});$(document).on('click touch','.woosc-btn',function(e){e.preventDefault();var $this=$(this);var id=$this.attr('data-id');var pid=$this.attr('data-pid');var product_id=$this.attr('data-product_id');var product_name=$this.attr('data-product_name');var product_image=$this.attr('data-product_image');if(typeof pid!==typeof undefined&&pid!==!1){id=pid}
10if(typeof product_id!==typeof undefined&&product_id!==!1){id=product_id}
11if($this.hasClass('woosc-btn-added woosc-added')){if(woosc_vars.click_again==='yes'){woosc_remove_product(id);if(woosc_vars.button_action==='show_message'){$.notiny({theme:'woosc',position:woosc_vars.message_position,image:product_image,text:woosc_vars.message_removed.replace('{name}','<strong>'+product_name+'</strong>'),})}}else{if(woosc_vars.button_action==='show_message'){$.notiny({theme:'woosc',position:woosc_vars.message_position,image:product_image,text:woosc_vars.message_exists.replace('{name}','<strong>'+product_name+'</strong>'),})}}}else{$this.addClass('woosc-btn-adding woosc-adding');woosc_add_product(id);if(woosc_vars.button_action==='show_message'){$.notiny({theme:'woosc',position:woosc_vars.message_position,image:product_image,text:woosc_vars.message_added.replace('{name}','<strong>'+product_name+'</strong>'),})}}
12if(woosc_vars.button_action==='show_bar'){woosc_load_data('bar');woosc_open_bar()}
13if(woosc_vars.button_action==='show_table'){woosc_load_data('table');woosc_open_bar();woosc_open_table()}
14if((woosc_vars.button_action==='show_message')||(woosc_vars.button_action==='none')){
14if($('.woosc-bar').hasClass('woosc-bar-open')){woosc_load_data('bar')}}
15if(woosc_vars.button_action==='show_sidebar'){woosc_load_data('sidebar');woosc_open_sidebar()}});$(document).on('click touch','#woosc-area .woosc-bar-item-remove, #woosc-area .woosc-remove',function(e){e.preventDefault();var product_id=$(this).attr('data-id');$(this).parent().addClass('removing');woosc_remove_product(product_id);woosc_load_data('table');woosc_check_buttons()});$(document).on('click touch','.woosc-page .woosc-remove',function(e){e.preventDefault();var product_id=$(this).attr('data-id');woosc_remove_product(product_id);location.reload()});$(document).on('click touch','.woosc-page .woosc-remove-all',function(e){e.preventDefault();var r=confirm(woosc_vars.remove_all);if(r==!0){woosc_remove_product('all')}
16location.reload()});$(document).on('click touch','.Clear_selection',function(e){e.preventDefault();var r=confirm(woosc_vars.remove_all);if(r==!0){$(".ComparorPage__product-card--remove").trigger("click");woosc_remove_product('all')}});$(document).on('click touch','.woosc-sidebar-item-remove',function(e){e.preventDefault();var product_id=$(this).closest('.woosc-sidebar-item').attr('data-id');woosc_remove_product(product_id);$(this).closest('.woosc-sidebar-item').slideUp();woosc_check_buttons()});$(document).on('click touch','.zqRemove',function(e){e.preventDefault();var product_id=$(this).attr('data-id');woosc_remove_product(product_id);$(this).parents('.Carousel__Cell-product-card').css("display","none");$(this).parents('.swiper-slide').find(".noimgslide").removeClass("noimgslide");$(".ComparorPage__product-card--remove[data-id='"+product_id+"']").trigger("click");woosc_check_buttons()});$(document).on('click touch','.modal__dialog .modal__close',function(e){e.preventDefault();$(this).parent().removeClass("modal-show")});$(document).on('click touch','.woosc-bar-btn',function(e){e.preventDefault();if(!$('.woosc-table-items').hasClass('woosc-table-items-loaded')){woosc_load_data('table')}
17woosc_toggle_table()});$(document).on('click touch',function(e){if(((woosc_vars.click_outside==='yes')||((woosc_vars.click_outside==='yes_empty')&&(parseInt($('.woosc-bar').attr('data-count'))===0)))&&($(e.target).closest('.wpc_compare_count').length===0)&&($(e.target).closest('.woosc-popup').length===0)&&($(e.target).closest('.woosc-btn').length===0)&&($(e.target).closest('.woosc-table').length===0)&&($(e.target).closest('.woosc-bar').length===0)&&($(e.target).closest('.woosc-menu-item a').length===0)&&($(e.target).closest('.woosc-menu a').length===0)&&($(e.target).closest('.woosc-sidebar-btn').length===0)&&((woosc_vars.open_button==='')||($(e.target).closest(woosc_vars.open_button).length===0))){woosc_close()}});$(document).on('click touch','.woosc-area-open-sidebar',function(e){if(($(e.target).closest('.woosc-sidebar').length===0)){woosc_close_sidebar()}});$(document).on('click touch','.ComparorPage__product-card--remove',function(e){$(this).parent().find(".ProductItem__ImageWrapper").hide();$(this).parent().find(".ProductItem__Info").hide();$(this).hide();$(this).parent().find(".zqaddcard").show();$(this).parent().find(".zqaddcard .ProductItem__ImageWrapper").show();$(".zqcomparetablenoimg .ProductItem__ImageWrapper").show();var product_id=$(this).attr('data-id');$("td[data-gender='"+product_id+"']").html("-");woosc_remove_product(product_id);woosc_check_buttons()});$(document).on('click touch','.woosc-sidebar-close, .woosc-sidebar-continue',function(e){woosc_close_sidebar()});$(document).on('click touch','.woosc-sidebar-btn',function(e){e.preventDefault();woosc_close_sidebar();woosc_toggle()});$(document).on('click touch','#woosc-table-close',function(e){e.preventDefault();woosc_close_table()});$(document).on('change','.woosc-settings-field, .woosc-settings-tool',function(){woosc_save_settings()});if(woosc_vars.open_button!==''){$(document).on('click touch',woosc_vars.open_button,function(e){e.preventDefault();if(woosc_vars.open_button_action==='open_page'){if((woosc_vars.page_url!=='')&&(woosc_vars.page_url!=='#')){window.location.href=woosc_vars.page_url}}else{if(woosc_vars.open_button_action==='open_popup'){if(!$('.woosc-table-items').hasClass('woosc-table-items-loaded')){woosc_load_data('table')}
18woosc_open_bar();woosc_open_table()}
19if(woosc_vars.open_button_action==='open_sidebar'){if(!$('.woosc-sidebar-items').hasClass('woosc-sidebar-items-loaded')){woosc_load_data('sidebar')}
20woosc_open_sidebar()}}})}
21$(document).on('click touch','.woosc-menu-item a, .woosc-menu a',function(e){if(woosc_vars.menu_action==='open_popup'){e.preventDefault();if(!$('.woosc-table-items').hasClass('woosc-table-items-loaded')){woosc_load_data('table')}
22woosc_open_bar();woosc_open_table()}
23if(woosc_vars.menu_action==='open_sidebar'){e.preventDefault();if(!$('.woosc-sidebar-items').hasClass('woosc-sidebar-items-loaded')){woosc_load_data('sidebar')}
24woosc_open_sidebar()}});function woosc_search(){$('.woosc-search-result').html('').addClass('woosc-loading');woosc_timer=null;var data={action:'woosc_search',keyword:$('#woosc_search_input').val(),nonce:woosc_vars.nonce,};$.post(woosc_vars.wc_ajax_url.toString().replace('%%endpoint%%','woosc_search'),data,function(response){$('.woosc-search-result').html(response).removeClass('woosc-loading')})}
25function woosc_set_cookie(cname,cvalue,exdays){var d=new Date();d.setTime(d.getTime()+(exdays*24*60*60*1000));var expires='expires='+d.toUTCString();document.cookie=cname+'='+cvalue+'; '+expires+'; path=/'}
26function woosc_get_cookie(cname){var name=cname+'=';var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' '){c=c.substring(1)}
27if(c.indexOf(name)==0){return decodeURIComponent(c.substring(name.length,c.length))}}
28return''}
29function woosc_get_products(){var cookie_products=woosc_get_cookie_products();if(woosc_get_cookie(cookie_products)!=''){return woosc_get_cookie(cookie_products)}else{return''}}
30function woosc_save_products(){var cookie_products=woosc_get_cookie_products();var products=[];$('.woosc-bar-item').each(function(){var pid=$(this).attr('data-id');if(pid!==''){products.push(pid)}});var products_str=products.join();woosc_set_cookie(cookie_products,products_str,7);woosc_load_data('table')}
31function woosc_save_settings(){var fields=[];var settings=[];var cookie_fields='woosc_fields_'+woosc_vars.hash;var cookie_settings='woosc_settings_'+woosc_vars.hash;if(woosc_vars.user_id!==''){cookie_fields+='_'+woosc_vars.user_id;cookie_settings+='_'+woosc_vars.user_id}
32$('.woosc-settings-field').each(function(){var _val=$(this).val();if($(this).prop('checked')){fields.push(_val);$('.woosc_table .tr-'+_val).removeClass('tr-hide')}else{$('.woosc_table .tr-'+_val).addClass('tr-hide')}});$('.woosc-settings-tool').each(function(){var _val=$(this).val();if($(this).prop('checked')){settings.push(_val)}});woosc_set_cookie(cookie_fields,fields.join(','),7);woosc_set_cookie(cookie_settings,settings.join(','),7);woosc_load_data('table')}
33function woosc_add_product(product_id){var count;var limit=!1;var limit_notice=woosc_vars.limit_notice;var cookie_products=woosc_get_cookie_products();if(woosc_get_cookie(cookie_products)!==''){var products=woosc_get_cookie(cookie_products).split(',');if(products.length<woosc_vars.limit){products=$.grep(products,function(value){return value!=product_id});if(woosc_vars.adding==='append'){products.push(product_id)}else{products.unshift(product_id)}
34var products_str=products.join();woosc_set_cookie(cookie_products,products_str,7)}else{limit=!0;limit_notice=limit_notice.replace('{limit}',woosc_vars.limit)}
35count=products.length}else{woosc_set_cookie(cookie_products,product_id,7);count=1}
36woosc_change_count(count);$(document.body).trigger('woosc_added',[count]);if(limit){$('.woosc-btn[data-id="'+product_id+'"]').removeClass('woosc-btn-adding woosc-adding');alert(limit_notice)}else{$('.woosc-btn[data-id="'+product_id+'"]').removeClass('woosc-btn-adding woosc-adding').addClass('woosc-btn-added woosc-added');$('.woosc-btn[data-id="'+product_id+'"]:not(.woosc-btn-has-icon)').html(woosc_vars.button_text_added);$('.woosc-btn-has-icon[data-id="'+product_id+'"]').find('.woosc-btn-icon').removeClass(woosc_vars.button_normal_icon).addClass(woosc_vars.button_added_icon);$('.woosc-btn-has-icon[data-id="'+product_id+'"]').find('.woosc-btn-text').html(woosc_vars.button_text_added)}}
37function woosc_remove_product(product_id){var count=0;var cookie_products=woosc_get_cookie_products();if(product_id!=='all'){if(woosc_get_cookie(cookie_products)!=''){var products=woosc_get_cookie(cookie_products).split(',');products=$.grep(products,function(value){return value!=product_id});var products_str=products.join();woosc_set_cookie(cookie_products,products_str,7);count=products.length}
38$('.woosc-btn[data-id="'+product_id+'"]').removeClass('woosc-btn-added woosc-added');$('.woosc-btn[data-id="'+product_id+'"]:not(.woosc-btn-has-icon)').html(woosc_vars.button_text);$('.woosc-btn-has-icon[data-id="'+product_id+'"]').find('.woosc-btn-icon').removeClass(woosc_vars.button_added_icon).addClass(woosc_vars.button_normal_icon);$('.woosc-btn-has-icon[data-id="'+product_id+'"]').find('.woosc-btn-text').html(woosc_vars.button_text)}else{if(woosc_get_cookie(cookie_products)!=''){woosc_set_cookie(cookie_products,'',7);count=0}
39$('.woosc-btn').removeClass('woosc-btn-added woosc-added');$('.woosc-btn:not(.woosc-btn-has-icon)').html(woosc_vars.button_text);$('.woosc-btn-has-icon').find('.woosc-btn-icon').removeClass(woosc_vars.button_added_icon).addClass(woosc_vars.button_normal_icon);$('.woosc-btn-has-icon').find('.woosc-btn-text').html(woosc_vars.button_text)}
40woosc_change_count(count);$(document.body).trigger('woosc_removed',[count])}
41function woosc_check_buttons(){var cookie_products=woosc_get_cookie_products();if(woosc_get_cookie(cookie_products)!=''){var products=woosc_get_cookie(cookie_products).split(',');$('.woosc-btn').removeClass('woosc-btn-added woosc-added');$('.woosc-btn:not(.woosc-btn-has-icon)').html(woosc_vars.button_text);$('.woosc-btn.woosc-btn-has-icon').find('.woosc-btn-icon').removeClass(woosc_vars.button_added_icon).addClass(woosc_vars.button_normal_icon);$('.woosc-btn.woosc-btn-has-icon').find('.woosc-btn-text').html(woosc_vars.button_text);
41products.forEach(function(entry){$('.woosc-btn-'+entry).addClass('woosc-btn-added woosc-added');$('.woosc-btn-'+entry+':not(.woosc-btn-has-icon)').html(woosc_vars.button_text_added);$('.woosc-btn-has-icon.woosc-btn-'+entry).find('.woosc-btn-icon').removeClass(woosc_vars.button_normal_icon).addClass(woosc_vars.button_added_icon);$('.woosc-btn-has-icon.woosc-btn-'+entry).find('.woosc-btn-text').html(woosc_vars.button_text_added)})}}
42function woosc_load_data(get_data){var data={action:'woosc_load',get_data:get_data,nonce:woosc_vars.nonce,};if(get_data==='table'){$('.modal__dialog').addClass('modal-show');$('.woosc-table-inner').addClass('woosc-loading')}
43if(get_data==='bar'){$('.woosc-table-inner').addClass('woosc-loading');$('.modal__dialog').addClass('woosc-loading');$('.modal__dialog').addClass('modal-show')}
44if(get_data==='sidebar'){$('.woosc-sidebar').addClass('woosc-loading')}
45$.post(woosc_vars.wc_ajax_url.toString().replace('%%endpoint%%','woosc_load'),data,function(response){if(get_data==='bar'||get_data==='table'){$('.swiper-wrapper').html(response.bar);mySwiper.update()}
46if(get_data==='table'){$('.comparator-table__container').html(response.table).addClass('woosc-table-items-loaded');if($(window).width()>=768){if((woosc_vars.freeze_column==='yes')&&(woosc_vars.freeze_row==='yes')){$('#woosc_table').tableHeadFixer({'head':!0,left:1})}else if(woosc_vars.freeze_column==='yes'){$('#woosc_table').tableHeadFixer({'head':!1,left:1})}else if(woosc_vars.freeze_row==='yes'){$('#woosc_table').tableHeadFixer({'head':!0})}}else{if(woosc_vars.freeze_row==='yes'){$('#woosc_table').tableHeadFixer({'head':!0})}}
47if(woosc_vars.scrollbar==='yes'){}
48$('.woosc-table-inner').removeClass('woosc-loading');woosc_hide_empty();woosc_hide_similarities();woosc_highlight_differences();$(document.body).trigger('woosc_table_loaded')}
49if(get_data==='sidebar'){$('.woosc-sidebar-items').html(response.sidebar).addClass('woosc-sidebar-items-loaded');$('.woosc-sidebar').removeClass('woosc-loading');if(woosc_vars.scrollbar==='yes'){$('.woosc-sidebar-items').perfectScrollbar({theme:'wpc'})}
50$(document.body).trigger('woosc_sidebar_loaded')}
51if(get_data==='count'){if(response.count!=null){var count=parseInt(response.count);woosc_change_count(count);$(document.body).trigger('woosc_count_loaded',[count])}}})}
52function woosc_quick_table(){let ww=$(window).width();if(ww>=1024){$('.woosc-quick-table .woosc_table').tableHeadFixer({'head':!1,left:2})}
53if(ww>=768&&ww<1024){$('.woosc-quick-table .woosc_table').tableHeadFixer({'head':!1,left:1})}
54if(ww<768){$('.woosc-quick-table .woosc_table').tableHeadFixer({'head':!1,left:0})}}
55function woosc_open_bar(){woosc_close_sidebar();$('#woosc-area').addClass('woosc-area-open-bar');$('.woosc-bar').addClass('woosc-bar-open');$('.woosc-bar-items').sortable({handle:'img',update:function(event,ui){woosc_save_products()},});$(document.body).trigger('woosc_bar_open')}
56function woosc_close_bar(){$('#woosc-area').removeClass('woosc-area-open-bar');$('.woosc-bar').removeClass('woosc-bar-open');$(document.body).trigger('woosc_bar_close')}
57function woosc_open_sidebar(){woosc_close_bar();woosc_close_table();$('#woosc-area').addClass('woosc-area-open-sidebar');$('.woosc-sidebar').addClass('woosc-sidebar-open');$(document.body).trigger('woosc_sidebar_open')}
58function woosc_close_sidebar(){$('#woosc-area').removeClass('woosc-area-open-sidebar');$('.woosc-sidebar').removeClass('woosc-sidebar-open');$(document.body).trigger('woosc_sidebar_close')}
59function woosc_open_table(){woosc_close_sidebar();$('#woosc-area').addClass('woosc-area-open-table');$('.woosc-table').addClass('woosc-table-open');$('.woosc-bar-btn').addClass('woosc-bar-btn-open');if(woosc_vars.bar_bubble==='yes'){$('.woosc-bar').removeClass('woosc-bar-bubble')}
60$(document.body).trigger('woosc_table_open')}
61function woosc_close_table(){$('#woosc-area').removeClass('woosc-area-open woosc-area-open-table');$('.woosc-table').removeClass('woosc-table-open');$('.woosc-bar-btn').removeClass('woosc-bar-btn-open');if(woosc_vars.bar_bubble==='yes'){$('.woosc-bar').addClass('woosc-bar-bubble')}
62$(document.body).trigger('woosc_table_close')}
63function woosc_toggle_table(){if($('.woosc-table').hasClass('woosc-table-open')){woosc_close_table()}else{woosc_open_table()}}
64function woosc_open(){$('#woosc-area').addClass('woosc-area-open');woosc_load_data('table');woosc_open_bar();woosc_open_table();$(document.body).trigger('woosc_open')}
65function woosc_close(){$('#woosc-area').removeClass('woosc-area-open');woosc_close_bar();woosc_close_table();$(document.body).trigger('woosc_close')}
66function woosc_toggle(){if($('#woosc-area').hasClass('woosc-area-open')){woosc_close()}else{woosc_open()}
67$(document.body).trigger('woosc_toggle')}
68function woosc_load_color(){var bg_color=$('#woosc-area').attr('data-bg-color');var btn_color=$('#woosc-area').attr('data-btn-color');$('.woosc-table').css('background-color',bg_color);$('.woosc-bar').css('background-color',bg_color);$('.woosc-bar-btn').css('background-color',btn_color);$('.woosc-sidebar-btn').css('background-color',btn_color)}
69function woosc_change_count(count){if(count==='first'){var products=woosc_get_products();if(products!=''){var products_arr=products.split(',');count=products_arr.length}else{count=0}}
70$('.woosc-menu-item').each(function(){if($(this).hasClass('menu-item-type-woosc')){$(this).find('.woosc-menu-item-inner').attr('data-count',count)}else{$(this).addClass('menu-item-type-woosc').find('a').wrapInner('<span class="woosc-menu-item-inner" data-count="'+count+'"></span>')}});$('#woosc-area').attr('data-count',count);$('.woosc-bar').attr('data-count',count);$('.woosc-sidebar-count').html(' ('+count+')');$('.woosc-bar-items').removeClass('woosc-bar-items-loaded');$('.woosc-sidebar-items').removeClass('woosc-sidebar-items-loaded');$('.woosc-table-items').removeClass('woosc-table-items-loaded');$(document.body).trigger('woosc_change_count',[count])}
71function woosc_hide_empty(){if(woosc_vars.hide_empty_row==='yes'){$('.woosc_table > tbody > tr').each(function(){var $tr=$(this);var _td=0;var _empty=!0;$tr.children('td').each(function(){if((_td>0)&&($(this).html().length>0)){_empty=!1;return!1}
72_td++});if(_empty){$tr.addClass('tr-empty').remove()}})}}
73function woosc_highlight_differences(){if($('#woosc_highlight_differences').prop('checked')){$('.woosc_table > tbody > tr').each(function(){var $tr=$(this);var _td=0;var _val=$(this).children('td').eq(1).html();var _differences=!1;$tr.children('td:not(.td-placeholder)').each(function(){if((_td>1)&&($(this).html()!==_val)){_differences=!0;return!1}
74_td++});if(_differences){$tr.addClass('tr-highlight')}})}else{$('.woosc_table tr').removeClass('tr-highlight')}}
75function woosc_hide_similarities(){if($('#woosc_hide_similarities').prop('checked')){$('.woosc_table > tbody > tr').each(function(){var $tr=$(this);var _td=0;var _val=$(this).children('td').eq(1).html();var _similarities=!0;$tr.children('td:not(.td-placeholder)').each(function(){if((_td>1)&&($(this).html()!==_val)){_similarities=!1;return!1}
76_td++});if(_similarities){$tr.addClass('tr-similar')}})}else{$('.woosc_table tr').removeClass('tr-similar')}}
77function woosc_get_cookie_products(){return woosc_vars.user_id!==''?'woosc_products_'+woosc_vars.user_id:'woosc_products'}
78var mySwiper=new Swiper('.zqcompareswiper',{loop:!1,slidesPerView:3,spaceBetween:0,pagination:{el:'.zqcompareswiper-pagination',},observer:!0,observeSlideChildren:!0,breakpoints:{1280:{slidesPerView:3,spaceBetween:0},768:{slidesPerView:2,spaceBetween:0,},},})})(jQuery);
79
80
81
82}
83catch(e){console.error("WP-Optimize Minify: An error has occurred in the minified code. \n\n- Original script: https://honeywhale.co.nz/wp-content/plugins/woo-smart-compare/assets/js/frontend.js\n- Error message: "+ e.message);}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.