PageSourceSearch

https://shop.trifectanutrition.com/wp-content/themes/Trifecta_theme/assets/js/global.min.js?ver=4.4.1

js trifectanutrition.com collected 2026-09-24 18:18:29 UTC 5,159 bytes, 1 lines download raw bytes

1(()=>{new URL(window.location.href).searchParams;var e=document.querySelector("#user_switching_switch_on a");null==e||e.addEventListener("mousedown",(function(){document.cookie="edit_mode_active=; Path=/; max-age=0",document.cookie="apollo_partner=; Path=/; max-age=0",sessionStorage.removeItem("edit_mode_active")}));var t=document.documentElement,n=document.getElementById("trifecta-header"),o=document.getElementById("desktop-search-input"),s=document.getElementById("desktop-search-button"),i=document.getElementById("desktop-clear-button"),c=document.getElementById("desktop-search-form"),a=document.getElementById("desktop-search-results"),l=document.getElementById("mobile-search-input"),d=document.getElementById("mobile-search-button"),r=document.getElementById("mobile-clear-button"),u=document.getElementById("mobile-search-form"),m=document.getElementById("mobile-search-results"),v=document.getElementById("mobile-menu-button"),p=document.getElementById("mobile-menu"),h=document.getElementById("mobile-nav"),g=new bootstrap.Collapse(m,{toggle:!1}),L=new bootstrap.Collapse(a,{toggle:!1}),b=function(e){var t;t=e.highlight.title?e.highlight.title:e.title;var n=e.category,o=e.url;return'\n\t\t<a class="list-group-item list-group-item-action py-0 px-lg-3" href="'.concat(o,'">\n\t\t\t<div class="border-bottom py-2">\n\t\t\t\t<p class="mb-0">').concat(t,"</p>\n\t\t\t\t<small>in ").concat(n,"</small>\n\t\t\t</div>\n\t\t</a>\n\t")},f=function(e){var t;t="mobile"===e?l.value:o.value;var n="https://search-api.swiftype.com/api/v1/public/engines/suggest.json?engine_key=sGiebkMgvuwHBBRwpmwr&q=".concat(t,"&per_page=5&page=1");fetch(n).then((function(e){return e.json()})).then((function(n){"mobile"===e?(w(n.records.page,t,e),h.classList.add("d-none"),g.show(),d.classList.add("d-none"),r.classList.add("d-inline-block"),r.classList.remove("d-none")):(w(n.records.page,t,e),L.show(),s.classList.add("d-none"),i.classList.remove("d-none"))})).catch((function(e){console.log(e)}))},w=function(e,t,n){var o='\n\t<div class="p-4 no-results">\n\t\t<p class="search-error-message text-center">Sorry we couldn\'t find any matches for <strong>'.concat(t,'</strong></p>\n\t\t<p class="search-error-faq text-center pb-0">Please try a different search term or browse our <a href="https://www.trifectanutrition.com/ask-us-anything/all">FAQs</a></p>\n\t</div>\n\t');"mobile"===n?e.length>0?m.innerHTML=e.map(b).join(""):m.innerHTML=o:e.length>0?a.innerHTML=e.map(b).join(""):a.innerHTML=o},k=function(){o.value="",L.hide(),a.innerHTML="",s.classList.remove("d-none"),i.classList.add("d-none")},E=function(){l.value="",g.hide(),m.innerHTML="",d.classList.add("d-inline-block"),d.classList.remove("d-none"),r.classList.add("d-none"),r.classList.remove("d-inline-block"),h.classList.remove("d-none")},y=function(){p.classList.remove("active"),B()},B=function(){document.getElementById("mobile-menu-backdrop").remove(),t.classList.remove("mobile-menu-active")};s.addEventListener("click",(function(){f("desktop")})),c.addEventListener("submit",(function(e){e.preventDefault();var t=o.value;window.location="https://www.trifectanutrition.com/search-results?search=".concat(t)})),c.addEventListener("keyup",(function(e){o.value.length>=3&&"Tab"!==e.key?f("desktop"):L.hide()})),i.addEventListener("click",(function(){o.value="",o.focus(),a.innerHTML="",s.classList.remove("d-none"),i.classList.add("d-none"),L.hide()}),!1),n.addEventListener("click",k,!1),null==v||v.addEventListener("click",(function(){(function(){var e=document.createElement("div");e.setAttribute("id","mobile-menu-backdrop"),e.classList.add("active","fade"),document.body.appendChild(e),t.classList.add("mobile-menu-active")})(),p.classList.add("active");var e=document.getElementById("mobile-menu-backdrop");e.addEventListener("click",y,!1),e.addEventListener("click",E,!1)})),document.querySelectorAll("#mobile-nav .nav-link[data-bs-toggle]").forEach((function(e){e.addEventListener("click",(function(){y()}))})),null==d||d.addEventListener("click",(function(){f("mobile")})),null==u||u.addEventListener("submit",(function(e){e.preventDefault();var t=l.value;window.location="https://www.trifectanutrition.com/search-results?search=".concat(t)})),null==u||u.addEventListener("keyup",(function(){l.value.length>=3?f("mobile"):(g.hide(),h.classList.remove("d-none"),d.classList.add("d-inline-block"),d.classList.remove("d-none"),r.classList.add("d-none"),r.classList.remove("d-inline-block"))})),null==r||r.addEventListener("click",(function(){l.value="",l.focus(),m.innerHTML="",d.classList.add("d-inline-block"),d.classList.remove("d-none"),r.classList.add("d-none"),r.classList.remove("d-inline-block"),g.hide(),h.classList.remove("d-none")}),!1),t.addEventListener("click",(function(){k()})),window.onscroll=function(){k()};
1var I=!1,_=document.getElementById("shop-nav"),H=new bootstrap.Collapse(_,{toggle:!1}),M=document.querySelector("body").classList.contains("page-template-trifecta-product-selector");document.addEventListener("scroll",(function(){var e=window.scrollY;I||(window.requestAnimationFrame((function(){!function(e){M||(e>10?H.hide():0===e&&H.show())}(e),I=!1})),I=!0)}))})();

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.