1function showMiniShopCartDropDownEvent(a,b,c,d){a.keyCode!=dojo.keys.DOWN_ARROW&&a.keyCode!=dojo.keys.ENTER||(showMiniShopCartDropDown(b,c,d),dojo.stopEvent(a))}function toggleMiniShopCartDropDownEvent(a,b,c,d){a.keyCode!=dojo.keys.DOWN_ARROW&&a.keyCode!=dojo.keys.ENTER||(toggleMiniShopCartDropDown(b,c,d),dojo.stopEvent(a))}function showMiniShopCartDropDown(a,b,c){if(!dropdownInit&&("undefined"==typeof isOnPasswordUpdateForm||0==isOnPasswordUpdateForm))if(dropdownInit=!0,dropdownUpdated)positionMiniShopCartDropDown(a,b,c);else{destroyDialog();var d={};d.status="load",d.relativeId=a,d.contentId=b,d.contentType=c,d.page_view="dropdown",wc.render.updateContext("MiniShopCartContentsContext",d)}}function toggleMiniShopCartDropDown(a,b,c){if(dojo.hasClass(a,"selected")){var d=dijit.byId(b);d&&d.hide()}else showMiniShopCartDropDown(a,b,c);SterisGlobal.toggleBodyShow()}function positionMiniShopCartDropDown(a,b,c){var d=null,e=null;"orderItemsList"==c||"orderItemsListAutoClose"==c?(d=dropDownDlg,e=productAddedDropDownDlg):"orderItemAdded"==c&&(d=productAddedDropDownDlg,e=dropDownDlg);var f=dojo.byId(a),g=dojo.coords(f,!0),h=g.x+60,i=dojo.coords(dojo.byId("widget_minishopcart"),!0).w;8==dojo.isIE?i=dojo.coords(dojo.byId("widget_minishopcart"),!0).w:dojo.isIE>=7&&dojo.isIE<8?i=dojo.coords(dojo.byId("miniShopCartBody"),!0).w:dojo.isIE<7&&(i=originalMiniCartWidth);var j=h;dojo.isIE&&(j=h+dojo.contentBox(dojo.byId(a)).w-i),"ar-eg"!=dojo.locale&&"iw-il"!=dojo.locale||(j+=50),d&&(d.y=70,d.x=j);var k=function(){deactivate(document.getElementById("header")),dojo.addClass("widget_minishopcart","selected")},l=function(){dojo.removeClass("widget_minishopcart","selected")};if(!d){var m=document.getElementById(b),n=document.getElementById(b+"_ACCE_Label");d=null!=n?new wc.widget.WCDialog({relatedSource:a,x:h,y:70,title:n.innerHTML,onShow:k,onHide:l,autoClose:!1},m):new wc.widget.WCDialog({relatedSource:a,x:h,y:70,onShow:k,onHide:l,autoClose:!1},m);var o=dojo.byId("page");void 0!==typeof o&&null!==o&&d.placeAt(o),d.x=j,"function"==typeof showApplePayButtons&&showApplePayButtons()}var p=null;e&&(p=e.displayStatus),d.displayStatus||null!=p&&p||(d.closeOnTimeOut=!1,d.autoClose=!1,d.focus=function(){},"orderItemsList"==c||"orderItemsListAutoClose"==c?(dropdownDisplayed=!0,"orderItemsListAutoClose"==c&&(d.autoClose=!0),dropDownDlg=d,setTimeout(dojo.hitch(dropDownDlg,"show",null),5)):"orderItemAdded"==c&&(dojo.byId("MiniShopCartProductAddedWrapper").style.display="block",productAddedDropDownDlg=d,setTimeout(dojo.hitch(productAddedDropDownDlg,"show",null),5)),setTimeout(removeDijitDialogUnderlayWrapper,5)),dojo.isIE<7&&(d.style.display="block"),dropdownInit=!1}function setMiniShopCartControllerURL(a){wc.render.getRefreshControllerById("MiniShoppingCartController").url=a}function removeDijitDialogUnderlayWrapper(){dojo.query(".dijitDialogUnderlayWrapper",document).forEach(function(a){jQuery(".dijitDialogUnderlayWrapper").remove()})}function updateCartCookie(){if(null!=document.getElementById("currentOrderQuantity")&&null!=document.getElementById("currentOrderAmount")&&null!=document.getElementById("currentOrderCurrency")&&null!=document.getElementById("currentOrderId")&&null!=document.getElementById("currentOrderLanguage")){var a=document.getElementById("currentOrderQuantity").value,b=document.getElementById("currentOrderAmount").value,c=document.getElementById("currentOrderCurrency").value,d=document.getElementById("currentOrderLanguage").value,e=document.getElementById("currentOrderId").value,f=document.getElementById("currentOrderLocked").value,g=getCookie("WC_CartOrderId_"+WCParamJS.storeId);if(null!=g){setCookie("WC_CartOrderId_"+WCParamJS.storeId,null,{expires:-1,path:"/",domain:cookieDomain});null!=getCookie("WC_CartTotal_"+g)&&setCookie("WC_CartTotal_"+g,null,{expires:-1,path:"/",domain:cookieDomain})}setCookie("WC_CartOrderId_"+WCParamJS.storeId,e,{path:"/",domain:cookieDomain}),""!=e&&setCookie("WC_CartTotal_"+e,a+";"+b+";"+c+";"+d+";"+f,{path:"/",domain:cookieDomain}),dojo.cookie(cookiePrefixforCartCount()+WCParamJS.storeId+"_CartCount",a,{domain:".steris.com",path:"/"})}else setCookie("WC_CartOrderId_"+WCParamJS.storeId,"",{path:"/",domain:cookieDomain})}function cookiePrefixforCartCount(){var a="WC_Dev",b=/(\w+)\.steris\.com/.exec(document.location.href);if(null!=b)switch(b[1]){case"shop":a="WC_Prod_";break;case"shoppreview":a="WC_PreProd_";break;case"shoptest":a="WC_Test_";break;case"shopdev":case"shopdevauth":a="WC_Dev_"}return a}function setProductAddedList(a){productAddedList=a}function populateProductAddedDropdown(){for(productId in productAddedList){var a=productAddedList[productId];if(null!=document.getElementById("MiniShopCartAddedProdName_"+productId)&&null!=a[0]&&0!=a[0].length&&(document.getElementById("MiniShopCartAddedProdName_"+productId).innerHTML=a[0]),null!=document.getElementById("MiniShopCartAddedProdImgSrc_"+productId)&&null!=a[1]&&0!=a[1].length&&(document.getElementById("MiniShopCartAddedProdImgSrc_"+productId).src=a[1],document.getElementById("MiniShopCartAddedProdImgSrc_"+productId).alt=a[
10]),null!=document.getElementById("MiniShopCartAddedProdPrice_"+productId)&&null!=a[2]&&0!=a[2].length&&(document.getElementById("MiniShopCartAddedProdPrice_"+productId).innerHTML=a[2]),null!=document.getElementById("MiniShopCartAddedProdQty_"+productId)&&null!=a[3]&&0!=a[3].length&&(document.getElementById("MiniShopCartAddedProdQty_"+productId).innerHTML=a[3]),null!=document.getElementById("MiniShopCartAddedProdAttr_"+productId)&&null!=a[4]&&0!=a[4].length){document.getElementById("MiniShopCartAddedProdAttr_"+productId).innerHTML="";for(attrName in a[4])attrValue=a[4][attrName],null!=attrValue&&"undefined"!=attrValue&&(attrValue=attrValue.replace(/&/g,"&").replace(/'/g,"'").replace(/"/g,'"').replace("'",'"')),document.getElementById("MiniShopCartAddedProdAttr_"+productId).innerHTML+="<div>"+attrName+": "+attrValue+"</div>"}}dojo.topic.publish("ProductInfo_Reset")}function loadMiniCart(a,b){var c=!1,d=getCookie("WC_CartOrderId_"+WCParamJS.storeId);if(checkDeleteCartCookie())c=!0;else if(void 0!=d&&""==d){var e=document.getElementById("minishopcart_subtotal"),f=document.getElementById("currentOrderAmount"),g=null;null!=e&&null!=f&&(g="iw-il"==dojo.locale?dojo.currency.format(f.value,{symbol:"symbol",currency:a,locale:"he"}):dojo.currency.format(f.value,{symbol:"symbol",currency:a}),g=null!=g?g.replace("symbol",shoppingActionsJS.currencySymbol):f.value),null!=e&&(e.innerHTML="\n "+g+"\n ");var h=document.getElementById("minishopcart_total"),i=document.getElementById("currentOrderQuantity");if(null!=h&&null!=i){var j=i.value;h.innerHTML="\n "+j+"\n ",dojo.cookie(cookiePrefixforCartCount()+WCParamJS.storeId+"_CartCount",j,{domain:".steris.com",path:"/"})}}else if(void 0!=d&&""!=d){var k=getCookie("WC_CartTotal_"+d);if(void 0!=k&&null!=k&&""!=k){var l=k.split(";");if(null!=l&&l.length>3)if(l[2]==a&&l[3]==b){var e=document.getElementById("minishopcart_subtotal");if(null!=e){var g=null;g="iw-il"==dojo.locale?dojo.currency.format(l[1].toString(),{symbol:"symbol",currency:a,locale:"he"}):dojo.currency.format(l[1].toString(),{symbol:"symbol",currency:a}),g=null!=g?g.replace("symbol",shoppingActionsJS.currencySymbol):l[1].toString(),e.innerHTML="\n "+g+"\n "}if(null!=l[4]&&"true"==l[4]);var h=document.getElementById("minishopcart_total");document.getElementById("minishopcart_lock");if(null!=h){var j=l[0].toString();h.innerHTML="\n "+j+"\n ",dojo.cookie(cookiePrefixforCartCount()+WCParamJS.storeId+"_CartCount",j,{domain:".steris.com",path:"/"})}}else c=!0;else c=!0}else c=!0}else c=!0;1!=c||"undefined"!=typeof isOnPasswordUpdateForm&&0!=isOnPasswordUpdateForm||wc.render.updateContext("MiniShoppingCartContext",{status:"load"})}function handleMiniCartHover(){dojo.connect(document.getElementById("widget_minishopcart"),"onmouseover",function(){timer=setTimeout(function(){showMiniShopCartDropDown("widget_minishopcart","quick_cart_container","orderItemsListAutoClose")},1e3)}),dojo.connect(document.getElementById("widget_minishopcart"),"onmouseout",function(){clearTimeout(timer)})}function setDeleteCartCookie(){setCookie("WC_DeleteCartCookie_"+WCParamJS.storeId,!0,{path:"/",domain:cookieDomain})}function checkDeleteCartCookie(){var a=getCookie("WC_DeleteCartCookie_"+WCParamJS.storeId);return void 0!=a&&""!=a&&"true"==a}function resetDeleteCartCookie(){null!=getCookie("WC_DeleteCartCookie_"+WCParamJS.storeId)&&setCookie("WC_DeleteCartCookie_"+WCParamJS.storeId,null,{expires:-1,path:"/",domain:cookieDomain})}var order_updated={AjaxAddOrderItem:"AjaxAddOrderItem",AddOrderItem:"AddOrderItem",AjaxAddOrderItemWithShipingInfo:"AjaxAddOrderItemWithShipingInfo",AjaxDeleteOrderItem:"AjaxDeleteOrderItem",AjaxUpdateOrderItem:"AjaxUpdateOrderItem",AjaxUpdateOrderShippingInfo:"AjaxUpdateOrderShippingInfo",AjaxOrderCalculate:"AjaxOrderCalculate",AjaxLogoff:"AjaxLogoff",AjaxSetPendingOrder:"AjaxSetPendingOrder",AjaxUpdatePendingOrder:"AjaxUpdatePendingOrder",AjaxSingleOrderCancel:"AjaxSingleOrderCancel",AjaxUpdateRewardOption:"AjaxUpdateRewardOption",AjaxRemovePromoCode:"AjaxRemovePromoCode"},dropdownUpdated=!1,dropdownInit=!1,timer,productAddedList=new Object;wc.render.declareContext("MiniShoppingCartContext",{status:"init"},""),wc.render.declareContext("MiniShopCartContentsContext",{status:"init",relativeId:"",contentId:"",contentType:""},""),wc.render.declareContext("MiniShopCartDropDownContext",null,""),wc.render.declareRefreshController({id:"MiniShoppingCartController",renderContext:wc.render.getContextById("MiniShoppingCartContext"),url:"",formId:"",modelChangedHandler:function(a,b){this.renderContext;if(a.actionId in order_updated||"AjaxDeleteOrderItemForShippingBillingPage"==a.actionId){var c=[];if("AddOrderItem"==a.actionId){if(null!=a.orderItem&&null!=a.orderItem[0].orderItemId){for(var d="",e=0;e<a.orderItem.length;e++)""!=d&&(d+=","),d+=a.orderItem[e].orderItemId;c.addedOrderItemId=d}else c.addedOrderItemId=a.orderItemId+"";showDropdown=!0}
1c.deleteCartCookie=!0,null!=a.addedFromSKUList&&null!=a.addedFromSKUList[0]&&(c.addedFromSKUList=a.addedFromSKUList[0]),b.refresh(c)}},renderContextChangedHandler:function(a,b){var c=this,d=this.renderContext;c.testForChangedRC(["status"])&&(d.properties.deleteCartCookie=!0,b.refresh(d.properties))},postRefreshHandler:function(a){this.renderContext;destroyDialog("MiniShopCartProductAdded"),showDropdown&&(positionMiniShopCartDropDown("widget_minishopcart","MiniShopCartProductAdded","orderItemAdded"),showDropdown=!1),multiSessionEnabled||updateCartCookie(),populateProductAddedDropdown(),multiSessionEnabled||resetDeleteCartCookie()}}),wc.render.declareRefreshController({id:"MiniShopCartContentsController",renderContext:wc.render.getContextById("MiniShopCartContentsContext"),url:"",formId:"",modelChangedHandler:function(a,b){this.renderContext;(a.actionId in order_updated||"AjaxDeleteOrderItemForShippingBillingPage"==a.actionId||"AjaxRESTOrderLockUnlockOnBehalf"==a.actionId)&&(dropdownUpdated=!1)},renderContextChangedHandler:function(a,b){var c=this.renderContext;dropdownUpdated||(c.properties.fetchCartContents=!0,dropdownUpdated=!0,b.refresh(c.properties))},postRefreshHandler:function(a){var b=this.renderContext;positionMiniShopCartDropDown(b.properties.relativeId,b.properties.contentId,b.properties.contentType),updateCartCookie(),loadMiniCart(WCParamJS.commandContextCurrency,WCParamJS.langId)}}),dojo.topic.subscribe("ProductInfo_Added",setProductAddedList);
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.