1"use strict";jQuery(document).ready((function($){function e(){void 0!==f&&void 0!==w&&f&&w&&f.on("slideChange",(function(){const e=this.realIndex;w.slideTo(e,300,!1)}))}function t(){let e=[];$(".checkbox input:checked").each((function(){e.push($(this).next("label").text())})),$("#product-names").text(e.join(", ")),$(".refined-list-wrapper").removeClass("hide-refined"),0!=e.length&&$(".refined-list-wrapper").addClass("hide-refined")}function i(){var e=$("#filter-form");$.ajax({url:e.attr("action"),data:e.serialize(),type:e.attr("method"),beforeSend:function(){$("#product-grid .loading").addClass("active-loading");var e="/products/";g&&m>1&&(e="/products/page/"+m+"/");var t=a();""!=t&&(e+="?"+t),window.history.pushState($("#primary").html(),null,e),g=!1},success:function(e){$("#inner-grid").html(e),$("#product-grid .loading").removeClass("active-loading")}})}function o(){var e;new URLSearchParams(window.location.search).forEach((function(e,t){t.startsWith("categoryFilter")?$("input[name='categoryFilter[]'][value='"+e+"']").prop("checked",!0):t.startsWith("regularFilter")?$("input[name='regularFilter[]'][value='"+e+"']").prop("checked",!0):t.startsWith("letterFilter")&&($(window).width()<=1200?$(".letters-mobile input[name='letterFilter[]'][value='"+e+"']").prop("checked",!0):$(".letters input[name='letterFilter[]'][value='"+e+"']").prop("checked",!0))}))}function r(e){var t=[],i;return jQuery("input[name='"+e+"[]']:checked").each((function(i){t.push(e+"%5B"+i+"%5D="+encodeURIComponent(this.value))})),t.join("&")}function a(){var e=[];return $("input[name='categoryFilter[]']:checked").length>0&&e.push(r("categoryFilter")),$("input[name='regularFilter[]']:checked").length>0&&e.push(r("regularFilter")),$("input[name='letterFilter[]']:checked").length>0&&e.push(r("letterFilter")),e.join("&")}function s(){var e=0;$(".related-posts .post-card").css("height","auto"),$(".related-posts .post-card").each((function(){var t=$(this).outerHeight();t>e&&(e=t)})),$(".related-posts .post-card").css("height",e+"px")}var n=0;if($(".hero-swiper-container").length){var c,l;function C(){var e=$(".hero-swiper-container .swiper-slide").length,t=!1;e>1&&(t={delay:7e3,disableOnInteraction:!1}),c=new Swiper(".hero-swiper-container",{mousewheel:!1,slidesPerView:1,spaceBetween:0,loop:e>1,autoplay:t,pagination:{el:".hero-pagination",clickable:!0},navigation:{prevEl:".hero-prev",nextEl:".hero-next"}})}$(".hero-swiper-container .swiper-slide").length>1&&($(".hero-pagination").removeClass("default-hidden"),$(".hero-prev").removeClass("default-hidden"),$(".hero-next").removeClass("default-hidden"),C())}
1$(".copy-box").each((function(){var e=$(this).height();e>n&&(n=e)})),$(".copy-box").each((function(){$(this).css({height:n+"px"})}));var d=0;if($(".post-type-archive-health_categories .category-name").each((function(){var e=$(this).height();e>d&&(d=e)})),$(".post-type-archive-health_categories .category-name").each((function(){$(this).css({height:d+"px"})})),$(".post-type-archive-health_categories .category-excerpt").each((function(){var e=$(this).height();e>n&&(n=e)})),$(".post-type-archive-health_categories .category-excerpt").each((function(){$(this).css({height:n+"px"})})),$(document).on("focus",".search-form-wrapper .search-field",(function(){$(".search-submit img").each((function(){$(this).toggleClass("active-search-icon")}))})),$(document).on("blur",".search-form-wrapper .search-field",(function(){$(".search-submit img").each((function(){$(this).toggleClass("active-search-icon")}))})),$(".single-product-wrapper .info-title-bar").on("click",(function(e){e.preventDefault();var t=$(this).parent().data("id");$(".info-switcher a").removeClass("product-active"),$(this).parent("section").hasClass("active-switch")&&!$(this).parent("section").hasClass("active-switch-mobile")?$(this).parent("section").removeClass("active-switch"):($(".single-product-wrapper .right-column section").removeClass("active-switch"),$(".single-product-wrapper .right-column section").removeClass("active-switch-mobile"),$('.single-product-wrapper .right-column section[data-id="'+t+'"').addClass("active-switch"),$(".info-switcher a#"+t).addClass("product-active"))})),$(".info-switcher a").on("click",(function(e){var t;switch(e.preventDefault(),$(".single-product-wrapper .right-column section").each((function(){$(this).removeClass("active-switch")})),$(".info-switcher a").each((function(){$(this).removeClass("product-active")})),$(this).attr("id")){case"product-switch":$("section#product-info").addClass("active-switch"),$(this).addClass("product-active");break;case"ingredient-switch":$("section#ingredient-table-wrapper").addClass("active-switch"),$(this).addClass("product-active");break;case"faq-switch":$("section#faq-info").addClass("active-switch"),$(this).addClass("product-active");break;case"literature-switch":$("section#product-literature").addClass("active-switch"),$(this).addClass("product-active");break;case"reviews-switch":$("section#reviews").addClass("active-switch"),$(this).addClass("product-active");break}})),$(".education-switcher a").on("click",(function(e){var t;switch(e.preventDefault(),$("section#events-calendar .calendar-wrapper").removeClass("active-switch"),$("section#events-calendar .list-wrapper").removeClass("active-switch"),$(".education-switcher a").each((function(){$(this).removeClass("product-active")})),$(this).attr("id")){case"calendar-switch":$("section#events-calendar .calendar-wrapper").addClass("active-switch"),$(this).addClass("product-active");break;case"list-switch":$("section#events-calendar .list-wrapper").addClass("active-switch"),$(this).addClass("product-active");break}})),$(document).ajaxComplete((function(e){"#events-calendar"==e.target.location.hash&&$(".eo-fullcalendar a").each((function(){$(this).attr("target","_blank")}))})),$("a.products-back").on("click",(function(e){e.preventDefault(),history.back()})),$(".video-swiper-container").length){var h;function k(){let e=3,t=0,i=20;window.innerWidth<1e3&&(e=2),window.innerWidth<700&&(e=1,t=0,i=10),h=new Swiper(".video-swiper-container",{mousewheel:!1,slidesPerView:e,initialSlide:t,spaceBetween:i,loop:!1,navigation:{prevEl:".video-prev",nextEl:".video-next"}})}k();let y=null;$(window).resize((function(){clearTimeout(y),y=setTimeout((function(){h&&(h.destroy(!0,!0),k())}),300)}))}if($(".protocol-swiper-container").length){var p;function x(){let e=4,t=0,i=25;window.innerWidth<1200&&(e=3),window.innerWidth<1e3&&(e=2),window.innerWidth<700&&(e=1.5,t=0,i=10),p=new Swiper(".protocol-swiper-container",{mousewheel:!1,slidesPerView:e,initialSlide:t,spaceBetween:i,loop:!1,navigation:{prevEl:".lit-prev",nextEl:".lit-next"}})}x();let S=null;$(window).resize((function(){clearTimeout(S),S=setTimeout((function(){p&&(p.destroy(),x())}),350)}))}if($("#featured-products .product-slider").length){var u;function _(){let e=4,t=0,i=25;window.innerWidth<1200&&(e=3),window.innerWidth<1e3&&(e=2),window.innerWidth<700&&(e=1,t=0,i=10),u=new Swiper("#featured-products .product-slider",{mousewheel:!1,slidesPerView:e,initialSlide:t,spaceBetween:i,loop:!1,navigation:{prevEl:".video-prev",nextEl:".video-next"}})}_();let P=null;$(window).resize((function(){clearTimeout(P),P=setTimeout((function(){u&&(u.destroy(),_())}),300)}))}if($(".single-product-swiper").length){var w;function T(){let e=0;w=new Swiper(".single-product-swiper",{mousewheel:!1,slidesPerView:1,initialSlide:0,centeredSlides:!1,loop:!0,watchSlidesProgress:!0,watchOverflow:!0,allowTouchMove:!1})}T();let j=null;$(window).resize((function(){clearTimeout(j),j=setTimeout((function(){w&&(w.destroy(!0,!0),T(),e())}),300)}))}if($(".all-product-swiper").length){var f;function F(){let e=0;f=new Swiper(".all-product-swiper",{mousewheel:!1,slidesPerView:"auto",initialSlide:0,centeredSlides:!1,loop:!0,slideToClickedSlide:!0,watchSlidesProgress:!0,watchOverflow:!0,navigation:{nextEl:".swiper-next"}})}F();let E=null;$(window).resize((function(){clearTimeout(E),E=setTimeout((function(){f&&(f.destroy(!0,!0),F(),e())}),300)}))}if(e(),window.location.hash){var v=window.location.hash.substring(1);$("#filter-form").length&&($("input[value='"+v+"']").prop("checked",!0),i(),t())}$(".woocommerce-shop").on("click","#filters #remove-filter-link",(function(){$("input:checkbox").each((function(){$(this).removeAttr("checked")})),t(),$("#filter-form").submit()})),$(".woocommerce-shop").on("change","#filter-form .checkbox input",(function(){$(this.checked)&&($("input#page-number").val("1"),$("#filter-form").submit()),t()})),$(".page-template-page-products .letters-wrapper .letters .single-letters").css("display","flex");var m="",g=!1;if($(".woocommerce-shop").on("click","#product-grid .pagination a",(function(e){e.preventDefault(),m=parseInt($(this).text()),$("input#page-number").val(m),g=!0,$("html, body").animate({scrollTop:0},500),$("#filter-form").submit()})),$(".woocommerce-shop").on("submit","#filter-form",(function(e){e.preventDefault(),i()})),window.location.pathname.startsWith("/products/")&&(o(),t()),($("body").hasClass("single-health_categories")||$("body").hasClass("page-template-page-products"))&&$("#product-grid,.product-grid").on("click","a.product-link, div.product-link a",(function(){localStorage.setItem("backToPrevious",JSON.stringify({from:window.location.href,to:$(this).attr("href")}))})),$("body").hasClass("single-product")){var b=localStorage.getItem("backToPrevious");null!==b&&(b=JSON.parse(b)).from&&b.to&&window.location.href==b.to&&($(".products-back").attr("href",b.from),$(".products-back").html("< Back to Previous Page"),localStorage.removeItem("backToPrevious"))}if(window.onpopstate=function(e){null!==history.state?$("#primary").html(e.state):"/products/"==window.location.pathname&&location.reload()},$("form .single-letters input:checkbox").on("click",(function(){var e=$
1(this);if(e.is(":checked")){var t="input:checkbox[name='"+e.attr("name")+"']";$(t).prop("checked",!1),e.prop("checked",!0)}else e.prop("checked",!1)})),$(".woocommerce-shop").on("click","button.mobile-filter-toggle",(function(){$("#filters div").each((function(){$(this).toggleClass("mobile-filters-active")})),$("#filters form").each((function(){$(this).toggleClass("mobile-filters-active")}))})),$(window).width()<=1200&&($(".woocommerce-shop").on("click","#filter-form .checkbox input",(function(){$("#filters div").each((function(){$(this).toggleClass("mobile-filters-active")})),$("#filters form").each((function(){$(this).toggleClass("mobile-filters-active")}))})),$(".woocommerce-shop").on("click","#remove-filter-link",(function(){$("#filters div").each((function(){$(this).toggleClass("mobile-filters-active")})),$("#filters form").each((function(){$(this).toggleClass("mobile-filters-active")}))}))),$(".mobile-cta").on("click",(function(){$(".sidebar .sidebar-content").toggleClass("active"),$(this).toggleClass("active")})),$(".non-click-menu > a").on("click",(function(e){e.preventDefault()})),$(".proinput input").on("focus",(function(){$("#ajaxsearchlite1").addClass("input-opacity"),$("#ajaxsearchlite1 .probox, div.asl_w .probox").addClass("blue-border")})),$(".proinput input").on("blur",(function(){$("#ajaxsearchlite1").removeClass("input-opacity"),$("#ajaxsearchlite1 .probox, div.asl_w .probox").removeClass("blue-border")})),$(".event-signup-button").hover((function(){$(this).closest(".single-event-wrapper").find(".left").addClass("blue-highlight")}),(function(){$(this).closest(".single-event-wrapper").find(".left").removeClass("blue-highlight")})),$(".event-signup-button").on("click",(function(){$(".single-event-wrapper").removeClass("blue-highlight"),$(this).closest(".single-event-wrapper").addClass("blue-highlight")})),$(".single-product-swiper .swiper-image").zoom({magnify:1.2}),$(".single-product-swiper #shadow").trigger("zoom.destroy"),$(".single-product-swiper #shadow").zoom({magnify:.8}),$(window).scroll((function(){var e;$(window).scrollTop()>=50?$("#wrapper-header").addClass("add-shadow"):$("#wrapper-header").removeClass("add-shadow")})),$(".review-form .hide-on-click").on("click",(function(e){e.preventDefault(),$('div[data-shortcode="site_reviews_form"]').show(),$("p.show-on-click").show(),$(this).hide()})),$("body.woocommerce-page .wwp_wholesaler_registration #wwp_wholesaler_username").addClass("hide-row").val("BLANK"),$(".related-posts-swiper").length){const W=new Swiper(".related-posts-swiper",{slidesPerView:1,spaceBetween:10,loop:!0,centeredSlides:!0,grabCursor:!0,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},breakpoints:{320:{slidesPerView:1,centeredSlides:!0,spaceBetween:16},768:{slidesPerView:2,centeredSlides:!1,spaceBetween:16},1080:{slidesPerView:3,centeredSlides:!0,spaceBetween:50}},on:{init:function(){s()},resize:function(){s()}}})}})),jQuery(document).on("wfspb-design",(function(){var e;jQuery("body").hasClass("logged-in")?jQuery("#wfspb-top-bar").removeClass("wfspb-hidden"):(jQuery("#wfspb-top-bar").addClass("wfspb-hidden"),jQuery("#wfspb-top-bar").html("")),null!==(e=window._wfsb_params)&&void 0!==e&&e.time_to_disappear&&(window._wfsb_params.time_to_disappear=!1)})); 2//# sourceMappingURL=element-min.js.map
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.