$$WP.ShopperPatient=$$WP.ShopperPatient||{},$$WP.ShopperPatient.Utilities=$$WP.ShopperPatient.Utilities||{},$$WP.ShopperPatient.Utilities.SetShopperTimeout=function $$WPShopperPatientUtil$SetShopperTimeout(e,t,i){var o;function popupWarning(){var e={positioningFunction:$$WP.WidgetMode?$$WPContain.Positions.InsideNearTop:$$WPContain.Positions.InsideCentered};$$WPUtil.quickPopup(new $$WPComp.TimeoutWarningComponent({SecondsLeft:30,isPreLogin:!1,StayString:t,LeaveString:i}),e),e.positioningFunction===$$WPContain.Positions.InsideNearTop&&$$WP.ShopperPatient.Utilities.ScrollToTopOfPage()}function resetTimer(){clearTimeout(o),o=setTimeout(popupWarning,1e3*e)}resetTimer(),document.addEventListener("click",resetTimer,!0),document.addEventListener("keydown",resetTimer,!0),document.addEventListener("scroll",resetTimer,!0)},$$WP.ShopperPatient.Utilities.ScrollToTopOfPage=function $$WPShopperPatientUtil$ScrollToTopOfPage(){$$WP.WidgetMode&&!document.hasFocus()||(isDataTile()?scrollTopOfTheIframe(0,!0):$$WP.WidgetMode?$$WPUtil.ScrollTopOfTheIframeCrossDomain():$$WP.Utilities.UI.IsSmallScreen()?$$WP.Utilities.UI.IsLoggedIn?$$WPUtil.SmoothScrollToElementWithOffset($$WPUtil.ScrollableBody(),$afe.select("#main"),-8,300):$$WPUtil.SmoothScrollToElement($$WPUtil.ScrollableBody(),$afe.select("#content"),300):$$WPUtil.SmoothScrollToElement($$WPUtil.ScrollableBody(),$afe.select("#main"),300))},$$WP.ShopperPatient.Utilities.camelCasify=function camelCasify(e){if(null===e)return null;if("object"!=typeof e)return e;if(e instanceof Array){for(var t=[],i=0;i<e.length;i++)t[i]=camelCasify(e[i]);return t}var o={};for(var n in e){o[n.toUpperCase()===n?n.toLowerCase():n.charAt(0).toLowerCase()+n.substr(1,n.length)]=camelCasify(e[n])}return o},$$WP.ShopperPatient.Utilities.pascalCasify=function pascalCasify(e){if(null===e)return null;if("object"!=typeof e)return e;if(e instanceof Array){for(var t=[],i=0;i<e.length;i++)t[i]=pascalCasify(e[i]);return t}var o={};for(var n in e){o[n.toUpperCase()===n?n.toUpperCase():n.charAt(0).toUpperCase()+n.substr(1,n.length)]=pascalCasify(e[n])}return o},$$WP.ShopperPatient.Utilities.convertToPostLoginURL=function convertToPostLoginURL(e,t){void 0===t&&(t=!0),(e=e.toString()).includes(WP.myPath)&&(e=e.substring(e.indexOf(WP.myPath)+WP.myPath.length));var i=new URL(document.location.origin+makeLink("Authentication/Login"));return i.searchParams.append("postloginurl",e),t&&i.searchParams.append("litemode",!0),i};