PageSourceSearch

https://shop.steris.com/wcsstore/SterisSAS/javascript/Widgets/header*1788449354000.js

js steris.com collected 2026-09-24 17:57:35 UTC 7,166 bytes, 1 lines download raw bytes

1require(["dojo/topic","dojo/_base/event","dojo/_base/lang","dojo/dom-class","dojo/dom-geometry","dojo/dom-style","dojo/has","dojo/on","dojo/mouse","dojo/query","dojo/_base/sniff","dojo/domReady!","dojo/NodeList-dom","dojo/NodeList-traverse"],function(a,b,c,d,e,f,g,h,i,j){var k=null,l=null,m=null,n={},o=function(){null==k&&(k=h(document.documentElement,"mousedown",q))},p=function(){null!=k&&(k.remove(),k=null)},q=function(a){var b=a.target;if(null!=l&&b!=document.documentElement){for(var c=!0,f=l.getAttribute("data-parent");b&&b!=document.documentElement;){if(b==l||b==m||d.contains(b,"dijitPopup")||f==b.getAttribute("data-parent")){c=!1;break}b=b.parentNode}if(null==b)for(var g=j("div",l),h=0;h<g.length;h++){var i=e.position(g[h]);if(a.clientX>=i.x&&a.clientX<i.x+i.w&&a.clientY>=i.y&&a.clientY<i.y+i.h){c=!1;break}}c&&deactivate(l)}};activate=function(a){var b="departmentMenu_"==a.id.slice(0,"departmentMenu_".length);if("true"==this.ajaxRefresh&&b)return setAjaxRefresh(""),wc.render.updateContext("departmentSubMenuContext",{targetId:a.id}),void("function"==typeof cX&&setTimeout(function(){cX("")},1e3));var c=a.getAttribute("data-parent");c&&n[c]&&deactivate(n[c]),c&&activate(document.getElementById(c)),d.add(a,"active"),j("a[data-activate='"+a.id+"']").addClass("selected");var e=j("a[data-toggle='"+a.id+"']");e.addClass("selected"),c&&(n[c]=a,null==l&&(l=a,m=e.length>0?e[0]:null,o()))},deactivate=function(a){n[a.id]&&deactivate(n[a.id]),d.remove(a,"active"),j("a[data-activate='"+a.id+"']").removeClass("selected"),j("a[data-toggle='"+a.id+"']").removeClass("selected");var b=a.getAttribute("data-parent");delete n[b],a==l&&(l=null,m=null,p())},toggle=function(a){d.contains(a,"active")?deactivate(a):activate(a)},setUpEventActions=function(){h(document,"a[data-activate]:click",function(a){var c=this.getAttribute("data-activate");activate(document.getElementById(c)),b.stop(a)}),h(document,"a[data-deactivate]:click",function(a){var c=this.getAttribute("data-deactivate");deactivate(document.getElementById(c)),b.stop(a)}),h(document,"a[data-toggle]:click",function(a){var c=this.getAttribute("data-toggle");toggle(document.getElementById(c)),b.stop(a)}),h(document,"a[data-toggle]:keydown",function(a){if(27==a.keyCode){var c=this.getAttribute("data-toggle");deactivate(document.getElementById(c)),b.stop(a)}else if(40==a.keyCode){var c=this.getAttribute("data-toggle"),d=document.getElementById(c);activate(d),j('[class*="menuLink"]',d)[0].focus(),b.stop(a)}}),g("ie")<10&&j("input[placeholder]").forEach(function(a){var b=a.getAttribute("placeholder");if(b){var c=document.createElement("label");c.className="placeholder",c.innerHTML=b,a.parentNode.insertBefore(c,a);var d=function(){c.style.display=a.value?"none":"block"};window.setTimeout(d,200),h(a,"blur, focus, keyup",d),h(c,"click",function(b){a.focus()})}})},setUpEventActions(),window.setTimeout(function(){var a=document.getElementById("searchFilterButton");a&&h(a,"keydown",function(b){(9==b.keyCode||9==b.keyCode&&b.shiftKey)&&deactivate(document.getElementById(a.getAttribute("data-toggle")))});var c=document.getElementById("SimpleSearchForm_SearchTerm");c&&h(c,"click",function(a){j('.selected:not(a[data-toggle="searchBar"])',document.getElementById("header")).forEach(function(a,b){deactivate(document.getElementById(a.getAttribute("data-toggle")))})});var d=document.getElementById("searchFilterMenu");if(d){var e=j('[class*="menuLink"]',d);e.forEach(function(a,c){h(a,"keydown",function(a){27==a.keyCode?(deactivate(d),b.stop(a)):9==a.keyCode||9==a.keyCode&&a.shiftKey?deactivate(d):38==a.keyCode?(e[0==c?e.length-1:c-1].focus(),b.stop(a)):40==a.keyCode&&(e[(c+1)%e.length].focus(),b.stop(a))})})}},100);var r=document.getElementById("header"),s=f.getComputedStyle(r).direction;updateDepartmentsMenu=function(){var a=document.getElementById("departmentsMenu"),c=document.getElementById("searchBar"),e=j(".departmentButton"),f=j(".departmentMenu"),g=j("#departmentsMenu > li"),k=g[g.length-1],l=null;c?l=("rtl"==s?a.offsetLeft+a.offsetWidth-(c.offsetLeft+c.offsetWidth):c.offsetLeft-a.offsetLeft)-k.offsetWidth:k&&(l=a.offsetWidth-k.offsetWidth);for(var m=0;m<g.length-1;m++)l-=g[m].offsetWidth,d.toggle(g[m],"hidden",l<0);e.forEach(function(a,b){h(a,i.enter,function(b){(9==b.keyCode||9==b.keyCode&&b.shiftKey)&&deactivate(document.getElementById(a.getAttribute("data-toggle")))})}),f.forEach(function(a,c){h(a,i.enter,function(a){var c=this.getAttribute("data-toggle");null!=c&&(toggle(document.getElementById(c)),b.stop(a))});var d=j('[class*="menuLink"]',a);
1d.forEach(function(c,e){h(c,i.enter,function(c){27==c.keyCode?(deactivate(document.getElementById(a.getAttribute("id"))),b.stop(c)):9==c.keyCode||9==c.keyCode&&c.shiftKey?deactivate(document.getElementById(a.getAttribute("id"))):38==c.keyCode?(d[0==e?d.length-1:e-1].focus(),b.stop(c)):40==c.keyCode&&(d[(e+1)%d.length].focus(),b.stop(c))})})})},window.setTimeout(updateDepartmentsMenu,200),g("ie")<9||h(window,"resize",updateDepartmentsMenu),j("#searchFilterMenu > ul > li > a").on("click",function(a){document.getElementById("searchFilterButton").innerHTML=this.innerHTML,document.getElementById("categoryId").value=this.getAttribute("data-value"),deactivate(document.getElementById("searchFilterMenu"))}),j("#searchBox > .submitButton").on("click",function(a){var b=document.getElementById("SimpleSearchForm_SearchTerm");b.value=c.trim(b.value);var d=c.trim(b.value.replace(/'|"/g,""));b.value&&""!=d&&processAndSubmitForm(document.getElementById("searchBox"))});var t=document.getElementById("searchBox");t&&h(t,"submit",function(a){updateFormWithWcCommonRequestParameters(a.target);var d=document.getElementById("SimpleSearchForm_SearchTerm"),e=d.value,f=c.trim(d.value.replace(/'|"/g,""));if(d.value=f,!d.value)return b.stop(a),!1;d.value=c.trim(e)}),j(".mobile").on("click",function(a){var b=document.getElementById("category-section"),c=document.querySelector(".quick-order-link-container"),d=document.querySelector(".top-right-links"),e=document.querySelector(".corporate-links"),f=document.querySelector(".main-menu"),g=document.querySelector(".hambuger-menu");b.classList.toggle("show"),c.classList.toggle("show"),d.classList.toggle("show"),e.classList.toggle("show"),f.classList.toggle("show"),g.classList.toggle("show"),SterisGlobal.toggleBodyShow()}),j(".search-container").on("click",function(a){var b=document.querySelector(".search-bar"),c=document.querySelector(".search-container");b.classList.toggle("show"),SterisGlobal.toggleBodyShow(),document.getElementById("SimpleSearchForm_SearchTerm")===document.activeElement&&(b.classList.add("show"),c.classList.add("show"))}),wc.render.declareContext("departmentSubMenuContext",{targetId:""},""),wc.render.declareRefreshController({id:"departmentSubMenu_Controller",renderContext:wc.render.getContextById("departmentSubMenuContext"),url:"",formId:"",renderContextChangedHandler:function(a,b){cursor_wait(),b.refresh(this.renderContext.properties)},postRefreshHandler:function(a){updateDepartmentsMenu(),activate(document.getElementById(this.renderContext.properties.targetId)),cursor_clear()}}),setAjaxRefresh=function(a){this.ajaxRefresh=a}});

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.