PageSourceSearch

https://www.objectivenutrients.com/wp-content/plugins/bricksultima…/js/elements/buGlobal.min.js?ver=1787226497

js objectivenutrients.com collected 2026-09-26 03:28:30 UTC 20,029 bytes, 1 lines download raw bytes

1function changeProductImageOnHover(){jQuery(document).ready(function(o){o(".brxe-bu-product-image").each(function(e,t){t=o(t).attr("data-selector")||!1;t&&o(t).on("mouseenter mouseleave",function(e){"mouseenter"==e.type?o(this).find(".fade .hover-img").addClass("bu-mouse-enter"):o(this).find(".fade .hover-img").removeClass("bu-mouse-enter")})})})}function buGlobal(){var a,e,i,s,t;"function"==typeof bricksQuerySelectorAll&&(bricksQuerySelectorAll(document,".brx-has-hr-dropdown").forEach(e=>{let t=e.querySelector(".brx-dropdown-content"),o=t.querySelectorAll(".brxe-dropdown")||!1,n=0;function r(){o.forEach(e=>{e.removeAttribute("data-always-open")})}e.addEventListener("mouseenter",e=>{o[0].setAttribute("data-always-open","open")}),e.addEventListener("mouseleave",e=>{r()}),o.forEach(e=>{e.addEventListener("mouseenter",function(e){r();let t=this;n=setTimeout(function(){t.setAttribute("data-always-open","open")},2)})}),t.addEventListener("transitionend",function(e){clearTimeout(n)})}),document.querySelectorAll("[data-interactions]").forEach(c=>{const e=JSON.parse(c.getAttribute("data-interactions"))||!1;e&&e.forEach(r=>{if(c.addEventListener(r.trigger,e=>{a(r)}),c.addEventListener("touchstart",e=>{a(r)}),document.addEventListener("bu_update_cart_quantity",function(e){"empty_cart"==r.trigger&&void 0===Cookies.get("woocommerce_items_in_cart")&&bricksInteractionCallbackExecution(c,r)}),"undefined"!=typeof jQuery&&(jQuery(document.body).on("removed_from_cart",function(){"empty_cart"==r.trigger&&void 0===Cookies.get("woocommerce_items_in_cart")&&bricksInteractionCallbackExecution(c,r)}),jQuery(document.body).on("fluentform_submission_success",function(){"apply_coupon"==r.action&&"undefined"!=typeof jQuery&&"undefined"!=typeof woocommerce_params&&i(r,c),"remove_coupon"==r.action&&"undefined"!=typeof jQuery&&"undefined"!=typeof woocommerce_params&&s(r,c)})),"delete_wishlist"==r.action&&c.addEventListener(r.trigger,function(e){e.preventDefault(),deleteWishlistItem(r,c)}),"delete_compare"==r.action&&c.addEventListener(r.trigger,function(e){e.preventDefault(),deleteCompareItem(r,c)}),"tooltip"==r.action&&void 0!==r.ttText){let e=!1;(r.ttText.startsWith(".")||r.ttText.startsWith("#"))&&(e=document.querySelector(r.ttText)),tippy(c,{appendTo:document.querySelector(r.ttAppendTo)||c,trigger:r.trigger,content:e?e.innerHTML:r.ttText,maxWidth:"none",interactive:!0,animation:r.ttAnimation||"auto",placement:r.ttPlacement||"fade",arrow:!0,allowHTML:!0})}if(r.wcCoupon){let e=document.querySelector(r.wcCouponMsg)||!1,t=document.querySelector(r.wcHideCouponBlck)||!1;"yes"==window.sessionStorage.getItem("applied_coupon_"+r.wcCoupon)?(e&&e.classList.remove("screen-reader-text"),t&&t.classList.add("screen-reader-text")):(e&&e.classList.add("screen-reader-text"),t&&t.classList.remove("screen-reader-text")),c.addEventListener(r.trigger,e=>{e.preventDefault(),"apply_coupon"==r.action&&"undefined"!=typeof jQuery&&"undefined"!=typeof woocommerce_params&&i(r,c),"remove_coupon"==r.action&&"undefined"!=typeof jQuery&&"undefined"!=typeof woocommerce_params&&s(r,c)}),document.addEventListener("bricks/form/".concat(r.trigger.replace("form","").toLowerCase()),e=>{"apply_coupon"==r.action&&"undefined"!=typeof jQuery&&"undefined"!=typeof woocommerce_params&&i(r,c),"remove_coupon"==r.action&&"undefined"!=typeof jQuery&&"undefined"!=typeof woocommerce_params&&s(r,c)})}switch(r.trigger){case"buwoo_added_to_wishlist":case"buwoo_removed_from_wishlist":case"buwoo_update_wishlist":case"bu_added_to_compare":case"bu_removed_from_compare":case"bu_update_compare":document.addEventListener(r.trigger,function(){bricksInteractionCallbackExecution(c,r)});break;case"bu_ocp_open":case"bu_ocp_close":var o=r.buOcpSelector||!1;if(o){const n=document.querySelector(o);n.addEventListener(r.trigger,function(){bricksInteractionCallbackExecution(c,r)})}break;case"adding_to_cart":case"added_to_cart":case"removed_from_cart":case"wc_fragments_refreshed":case"update_checkout":"undefined"!=typeof jQuery&&jQuery(document.body).on(r.trigger,function(){bricksInteractionCallbackExecution(c,r),a(r)});break;
1case"found_variation":if("undefined"!=typeof jQuery){let n;n=r?.targetSelector?bricksQuerySelectorAll(document,r.targetSelector):[c],jQuery(document).on("found_variation","form.cart",function(e,t){switch(r?.action){case"sku":n.forEach(e=>{jQuery(e).html(t.sku)});break;case"weight":n.forEach(e=>{jQuery(e).html(t.weight)});break;case"weight_html":n.forEach(e=>{jQuery(e).html(t.weight_html)});break;case"dimensions":n.forEach(e=>{jQuery(e).html(t.dimensions)});break;case"dimensions_html":n.forEach(e=>{jQuery(e).html(t.dimensions_html)});break;case"price_html":n.forEach(e=>{jQuery(e).html(t.price_html)});break;case"variation_description":n.forEach(e=>{jQuery(e).html(t.variation_description)});break;case"variation_unique_id":n.forEach(e=>{jQuery(e).html(t?.variation_unique_id||"")});break;case"variation_cmf":const o=r.variation_cmf_name||!1;o&&n.forEach(e=>{jQuery(e).html(t[o]||"")});break;default:bricksInteractionCallbackExecution(c,r)}}),jQuery(document).on("reset_data","form.cart",function(e){n.forEach(e=>{jQuery(e).wc_reset_content()})})}break;case"applied_coupon":case"applied_coupon_in_checkout":case"removed_coupon":case"removed_coupon_in_checkout":"undefined"!=typeof jQuery&&setTimeout(function(){jQuery(document.body).on(r.trigger,function(e,t){bricksInteractionCallbackExecution(c,r)})},10);break;case"fluentform_init":case"fluentform_submission_success":case"fluentform_reset":case"buwoo_shipping_calculated":case"buwoo_shipping_method_updated":"undefined"!=typeof jQuery&&jQuery(document.body).on(r.trigger,function(){bricksInteractionCallbackExecution(c,r)});break;case"fluentform_init_single":case"fluentform_submission_failed":if("undefined"!=typeof jQuery){o=r.fluentForm||!1;if(!o)return;jQuery(".fluent_form_"+o).on(r.trigger,function(){bricksInteractionCallbackExecution(c,r)})}break;case"wsf-submit-success":case"wsf-submit-error":case"wsf-reset-complete":case"wsf-validate-fail":"undefined"!=typeof jQuery&&jQuery(document).on(r.trigger,function(e,t,o,n){c.querySelector('form[data-instance-id="'+n+'"]')&&bricksInteractionCallbackExecution(c,r)});break;case"empty_cart":void 0===Cookies.get("woocommerce_items_in_cart")&&bricksInteractionCallbackExecution(c,r);break;case"cart_not_empty":void 0!==Cookies.get("woocommerce_items_in_cart")&&bricksInteractionCallbackExecution(c,r);break;case"breakpoint":let e=parseInt(r.breakpoint),t=r.bpOperator||"<=";switch(t){case"==":e==window.innerWidth&&bricksInteractionCallbackExecution(c,r),window.addEventListener("resize",function(){e==window.innerWidth&&bricksInteractionCallbackExecution(c,r)});break;case"<=":window.innerWidth<=e&&bricksInteractionCallbackExecution(c,r),window.addEventListener("resize",function(){window.innerWidth<=e&&bricksInteractionCallbackExecution(c,r)});break;case">=":window.innerWidth>=e&&bricksInteractionCallbackExecution(c,r),window.addEventListener("resize",function(){window.innerWidth>=e&&bricksInteractionCallbackExecution(c,r)});break;case">":window.innerWidth>e&&bricksInteractionCallbackExecution(c,r),window.addEventListener("resize",function(){window.innerWidth>e&&bricksInteractionCallbackExecution(c,r)});break;case"<":window.innerWidth<e&&bricksInteractionCallbackExecution(c,r),window.addEventListener("resize",function(){window.innerWidth<e&&bricksInteractionCallbackExecution(c,r)})}}})}),a=function(t){if("sync_burger"==t.action){let e=t.targetSelector||!1;t=t.abDelay||2;e&&setTimeout(()=>{document.querySelector(e).classList.add("is-active")},t)}},(e=document.querySelectorAll(".brx-offcanvas-backdrop"))&&e.forEach(e=>{e.addEventListener("click",function(e){const t=this.closest(".brxe-offcanvas"),o=t.querySelector(".brxe-bu-animated-burger button");o&&o.classList.contains("is-active")&&o.classList.remove("is-active")})}),document.addEventListener("keyup",function(e){"Escape"===e.key&&bricksQuerySelectorAll(document,".brxe-offcanvas").forEach(function(e){const t=e.querySelector(".brxe-bu-animated-burger button");t&&t.classList.contains("is-active")&&t.classList.remove("is-active")})}),i=function(t,o){let n=document.querySelector(t.wcCouponMsg)||!1,r=document.querySelector(t.wcHideCouponBlck)||!1;var e;"undefined"!=typeof interactionParams&&t.wcCoupon&&(jQuery(o).block({message:"",overlayCSS:{opacity:.15}}),e={security:interactionParams.apply_coupon_nonce,coupon_code:t.wcCoupon},jQuery.ajax({type:"POST",url:woocommerce_params.wc_ajax_url.toString().replace("%%endpoint%%","apply_coupon"),data:e,dataType:"html",success:function(e){jQuery(o).unblock(),0<e.toString().search(/woocommerce-message/)&&(window.sessionStorage.setItem("applied_coupon_"+t.wcCoupon,"yes"),r&&r.classList.add("screen-reader-text"),n&&n.classList.remove("screen-reader-text")),jQuery(document.body).trigger("applied_coupon",[t.wcCoupon]),bricksWooRefreshCartFragments(),"undefined"!=typeof wc_add_to_cart_params&&wc_add_to_cart_params.is_cart&&jQuery(document.body).trigger("wc_update_cart"),(0<jQuery(".woocommerce-checkout-review-order-table").length||0<jQuery(".woocommerce-checkout-payment").length||0<jQuery("#klarna-checkout-iframe").length)&&jQuery(document.body).trigger("update_checkout")}}))},s=function(t,o){let n=document.querySelector(t.wcCouponMsg)||!1,r=document.querySelector(t.wcHideCouponBlck)||!1;var e;"undefined"!=typeof interactionParams&&t.wcCoupon&&(jQuery(o).block({message:"",overlayCSS:{opacity:.15}}),e={security:interactionParams.remove_coupon_nonce,coupon:t.wcCoupon},jQuery.ajax({type:"POST",url:woocommerce_params.wc_ajax_url.toString().replace("%%endpoint%%","remove_coupon"),data:e,dataType:"html",success:function(e){jQuery(o).unblock(),0<e.toString().search(/woocommerce-message/)&&(window.sessionStorage.removeItem("applied_coupon_"+t.wcCoupon),r&&r.classList.add("screen-reader-text"),n&&n.classList.remove("screen-reader-text")),jQuery(document.body).trigger("removed_coupon",[t.wcCoupon]),bricksWooRefreshCartFragments(),"undefined"!=typeof wc_add_to_cart_params&&wc_add_to_cart_params.is_cart&&jQuery(document.body).trigger("wc_update_cart"),(0<jQuery(".woocommerce-checkout-review-order-table").length||0<jQuery(".woocommerce-checkout-payment").length||0<jQuery("#klarna-checkout-iframe").length)&&jQuery(document.body).trigger("update_checkout")}}))},(t=function(){document.querySelectorAll(".brxe-bu-cart-content").forEach(e
1=>{const t=e.querySelector(".bu-empty-cart-msg-tpl")||!1;t&&(void 0===Cookies.get("woocommerce_items_in_cart")?(t.classList.remove("screen-reader-text"),e.classList.add("hide-empty-cart-msg")):(t.classList.add("screen-reader-text"),e.classList.remove("hide-empty-cart-msg")))})})(),"undefined"!=typeof jQuery&&(jQuery(document.body).on("adding_to_cart added_to_cart removed_from_cart wc_fragments_refreshed",function(){t()}),jQuery(document.body).on("applied_coupon",function(e,t){0<jQuery(".woocommerce-message").length&&window.sessionStorage.setItem("applied_coupon_"+t,"yes")}),jQuery(document.body).on("removed_coupon",function(e,t){window.sessionStorage.removeItem("applied_coupon_"+t)})),window.buGlobal=buGlobal)}"undefined"!=typeof jQuery&&(document.addEventListener("bu_update_cart_quantity",function(o){document.querySelectorAll(".brxe-bu-atc").forEach(e=>{const t=jQuery(e).find("a.added-to-cart")||!1;t&&(e=t.attr("data-product_id"),void 0!==o.detail.productId&&o.detail.productId==e&&(e=JSON.parse(t.attr("data-atc-config")),t.removeClass("added-to-cart"),t.removeClass("added"),e&&e.orgText&&t.text(e.orgText)))})}),jQuery(document.body).on("removed_from_cart",function(e,t,o,n){jQuery(".single_buy_now_button").closest(".brxe-bu-atc").removeClass("product--added"),jQuery(".single_add_to_cart_button").removeClass("added");const r=jQuery(".single_add_to_cart_button").closest("form.cart");r&&r.find(".added_to_cart").remove(),document.querySelectorAll(".brxe-bu-atc").forEach(e=>{const t=jQuery(e).find(".add_to_cart_button")||!1;var o;t&&(o=t.attr("data-product_id"),n.attr("data-product_id")==o&&(o=JSON.parse(e.getAttribute("data-atc-config")),t.closest(".brxe-loop-builder-on").removeClass("added-to-cart"),t.removeClass("added"),o&&o.atcText&&t.html(o.atcText)))})}),jQuery(document.body).on("added_to_cart",function(e,t,o,n){if(interactionParams.atc_notice&&"none"!=interactionParams.atc_notice&&void 0!==n){jQuery(".single_buy_now_button").closest(".brxe-bu-atc").addClass("product--added");let t=!1;if(n.hasClass("single_add_to_cart_button")){t=n.attr("value")||!1;let e=n.closest(".variations_form")||!1;e&&(variation_id=e.find(".variation_id").attr("value")||!1,t=variation_id||t)}else t=n.attr("data-product_id")||!1;t&&jQuery.ajax({type:"post",url:woocommerce_params.ajax_url,data:{action:"bu_added_to_cart_notice",security:interactionParams.atc_nonce,product_id:t,template_id:interactionParams.atc_notice},dataType:"json",success:function(e){e.success&&Notify(e.notice,null,null,"info")}})}}),changeProductImageOnHover(),document.addEventListener("bricks/ajax/end",function(e){changeProductImageOnHover()}),document.addEventListener("bricks/ajax/query_result/displayed",function(e){changeProductImageOnHover()}),document.addEventListener("buwoo_update_mini_wishlist",changeProductImageOnHover)),document.addEventListener("DOMContentLoaded",function(){buGlobal(),window.WP_Grid_Builder&&WP_Grid_Builder.on("init",function(e){void 0!==e.facets&&e.facets.on("appended",function(e){buGlobal()})})}),document.addEventListener("bricks/ajax/end",function(e){buGlobal()}),document.addEventListener("bricks/tabs/changed",function(e){buGlobal()}),document.addEventListener("bricks/ajax/popup/loaded",function(){buGlobal()}),document.addEventListener("buAjaxSearchComplete",function(){buGlobal()}),document.addEventListener("buwoo_update_mini_wishlist",function(){buGlobal()}),document.addEventListener("bu_update_mini_compare",function(){buGlobal()}),document.addEventListener("buAfterGridTable",function(){setTimeout(()=>{buGlobal()},100)});var buGetParentItems=function(e,t){Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),o=t.length;0<=--o&&t.item(o)!==this;);return-1<o});for(var o=[];e&&e!==document;e=e.parentNode)(!t||e.matches(t))&&o.push(e);return o};function deleteCompareItem(e,t){let n=e.dynPostId||!1,r=(e.containerSelector,e.tabSelector||!1),c=e.postType||"post";wrap=t.closest(".brxe-loop-builder-on")||!1,n&&wrap&&(wrap.classList.add("del-processing"),fetch(bricksData.ajaxUrl.toString(),{method:"POST",body:"action=bu_delete_compare_item&security="+interactionParams.compare_nonce+"&postId="+n+"&postType="+c,credentials:"same-origin",headers:new Headers({"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"})}).then(function(e){if(200!==e.status)throw console.log("Status Code: "+e.status),wrap.classList.remove("del-processing"),e;return e.json()}).then(function(t){if(t.success){document.querySelector(".compare-item-"+n)&&document.querySelectorAll(".compare-item-"+n).forEac
1h(e=>{const t=e.closest(".brxe-bu-atcomp")||!1;if(t){e.classList.remove("added","action-delete"),e.classList.add("action-add");const o=e.querySelector(".compare-text")||!1,n=JSON.parse(t.getAttribute("data-comp-config"))||!1;n.addText&&o&&(o.innerText=n.addText),n.action="add",t.setAttribute("data-comp-config",JSON.stringify(n))}}),wrap.classList.add("deleted");let e=".bu-comp-counter-btn--"+c+" .bu-comp-counter";document.querySelector(e)&&document.querySelectorAll(e).forEach(e=>{e.innerText=t.count,e.classList.contains(".hide-empty-comp-counter")&&(0<t.count?e.classList.remove("bu-comp-counter-hide-counter"):e.classList.add("bu-comp-counter-hide-counter"))});var o=wrap.closest(".bu-mini-compare")||!1;r&&localStorage.setItem("comparereload",r),wrap.remove(),document.dispatchEvent(new Event("bu_update_compare")),t.count<=0&&!o&&window.location.reload()}else wrap.classList.remove("del-processing")}))}function deleteWishlistItem(e,t){let o=e.dynPostId||!1,d=e.containerSelector||!1,u=e.pgnSelector||!1,l=e.tabSelector||!1,m=e.postType||"post",p=t.closest(".brxe-loop-builder-on")||!1;o&&p&&(p.classList.add("del-processing"),fetch(bricksData.ajaxUrl.toString(),{method:"POST",body:"action=bu_delete_wishlist_item&security="+interactionParams.wsl_nonce+"&postId="+o+"&postType="+m,credentials:"same-origin",headers:new Headers({"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"})}).then(function(e){if(200!==e.status)throw console.log("Status Code: "+e.status),p.classList.remove("del-processing"),e;return e.json()}).then(function(s){s.success?(document.querySelector(".wishlist-item-"+o)&&document.querySelectorAll(".wishlist-item-"+o).forEach(e=>{const t=e.closest(".brxe-bu-atwsl")||!1;if(t){e.classList.remove("added","action-remove"),e.classList.add("action-add");const o=e.querySelector(".wishlist-text")||!1,n=JSON.parse(t.getAttribute("data-wsl-config"))||!1;n.addText&&o&&(o.innerText=n.addText),n.action="add",t.setAttribute("data-wsl-config",JSON.stringify(n))}}),p.classList.add("deleted"),document.dispatchEvent(new Event("buwoo_update_wishlist")),document.addEventListener("transitionend",function(){let e=".bu-wsl-counter-btn--"+m+" .bu-wsl-counter";document.querySelector(e)&&document.querySelectorAll(e).forEach(e=>{e.innerText=s.count,e.classList.contains(".hide-empty-wsl-counter")&&(0<s.count?e.classList.remove("bu-wsl-counter-hide-counter"):e.classList.add("bu-wsl-counter-hide-counter"))});var t=p.closest(".bu-mini-wishlist")||!1;if(l&&localStorage.setItem("wishlistreload",l),p.remove(),s.count<=0&&!t&&window.location.reload(),!1!==d&&!1!==u&&document.querySelector(d)){const o=document.querySelector(d),n=o.querySelectorAll(".brxe-loop-builder-on")||!1;if(n&&0===n.length){const r=document.querySelector(u),c=r.querySelector(".page-numbers.current")||!1,a=r.querySelector(".page-numbers.prev")||!1,i=r.querySelector(".page-numbers.next")||!1;c&&(i?window.location.reload():window.location=a.getAttribute("href"))}}})):p.classList.remove("del-processing")}))}function buParseCurrency(e){return/[,.]/.test(e)?parseInt(e.replace(/[^0-9]+/g,"").replace(",","").replace(".","")):e}Notify=function(e,t,o,n){var r,c,a=document.querySelector("#buwoo-notice"),i=document.createElement("div");function s(){i.classList.remove("slide-from-right"),document.addEventListener("transitionend",function(){i.remove()})}i.className="notice-content",void 0!==e&&(i.innerHTML=e.replace(/\"{/g,"'{").replace(/\}"/g,"}'"),a.insertAdjacentElement("beforeend",i),r=setInterval(function(){i.classList.add("slide-from-right")},2),document.addEventListener("transitionend",function(){clearInterval(r)}),c=setInterval(s,"5000"),i.addEventListener("mouseenter",function(){clearInterval(c)}),i.addEventListener("mouseleave",function(){c=setInterval(s,"5000")}),i.addEventListener("click",function(){clearInterval(c),t&&t(),s()}))};const buDebounce=(o,n)=>{var r;return n=n||50,function(){clearTimeout(r);var e=arguments,t=this;r=setTimeout(function(){o.apply(t,e)},n)}};function singleAjaxAddToCart(e,r,c){e.addEventListener("click",function(e){e.preventDefault();var o=r(this),e=window.location,t=o.val(),n=o.closest("form.cart");o.is(".disabled")||(o.removeClass("added").addClass("loading"),t=void 0!==t&&""!==t?n.serialize()+"&"+encodeURI("add-to-cart")+"="+encodeURI(t):n.serialize(),r.post(e,t+"&_wp_http_referer="+e,function(e){r(document.body).trigger("wc_fragment_refresh");var e=r(".widget_shopping_cart",e),e=(r(".widget_shopping_cart").replaceWith(e),"undefined"!=typeof $fragment_refresh&&r.ajax($fragment_refresh),JSON.parse(window.sessionStorage.getItem(wc_cart_fragments_params.fragment_name))||{}),t=window.sessionStorage.getItem(wc_cart_fragments_params.cart_hash_key)||{};o.removeClass("loading").addClass("added"),r(document.body).trigger("added_to_cart",[e,t,o]),c?window.location=c:n[0].reset()}))})}

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.