1const VERTICAL={PL:"PersonalLoan",CC:"CreditCard",BA:"BankAccount",SA:"SecuritiesAccount",MI:"DomesticHelperInsurance",IP:"InvestmentPlan",TI:"TravelInsurance",HI:"HomeInsurance",HL:"HomeLoan"};function getVerticalKeyByValue(val){return Object.keys(VERTICAL).find((key=>VERTICAL[key].toLowerCase()===val.toLowerCase()))}function elementIsVisible(element){let elementStyles=window.getComputedStyle(element);return"none"!=elementStyles.getPropertyValue("display")&&"hidden"!=elementStyles.getPropertyValue("visibility")}function parseLocaleNumber(stringNumber,locale){var thousandSeparator=Intl.NumberFormat(locale).format(11111).replace(/\p{Number}/gu,""),decimalSeparator=Intl.NumberFormat(locale).format(1.1).replace(/\p{Number}/gu,"");return parseFloat(stringNumber.replace(new RegExp("\\"+thousandSeparator,"g"),"").replace(new RegExp("\\"+decimalSeparator),"."))}function convertTenorUnit(from,to,value){switch(from){case"MONTHLY":if("MONTHLY"===to)return value;if("YEARLY"===to)return value/12;console.log("Term Type not supported",to);break;case"YEARLY":if("MONTHLY"===to)return 12*value;if("YEARLY"===to)return value;console.log("Term Type not supported",to);break;default:console.log("Unknown from Term Type ",from,", Not able to convert value")}}function padStart(src,length,char){let strSrc=String(src);return strSrc.length<length?char.repeat(length-strSrc.length)+strSrc:strSrc}function isInView(element){const box=element?.getBoundingClientRect();return!!box&&(box.top<window.innerHeight&&box.bottom>=0)}function isBelowView(element){const box=element?.getBoundingClientRect();return!!box&&box.bottom<0}let scrollLockId=0;function scrollLock(lock){let scrollOffset=0;const locks=new Set,isIOS="undefined"==typeof window||/^iP/.test(navigator.platform)||/^Mac/.test(navigator.platform)&&navigator.maxTouchPoints>4;if(lock){if(scrollLockId++,locks.add(scrollLockId),1===locks.size){const scrollBarWidth=document.scrollingElement?window.innerWidth-document.scrollingElement.clientWidth:0;document.body.style.paddingRight=`${scrollBarWidth}px`,document.body.classList.add("overflow-hidden"),document.body.classList.add("fixed"),document.body.style.position="fixed",isIOS&&(scrollOffset=window.pageYOffset,document.body.style.top=`-${scrollOffset}px`)}}else locks.delete(scrollLockId),0===locks.size&&(document.body.classList.remove("overflow-hidden"),document.body.style.paddingRight="0",document.body.classList.remove("fixed"),document.body.style.position="static",isIOS&&(document.body.style.top="",window.scrollTo(0,scrollOffset)))}function isString(str){return null!=str&&"string"==typeof str.valueOf()}function isNil(value){return null==value}function isEmptyStr(value){if(isNil(value))return!0;if(!isString(value))return!0;let v=value.toString().trim().toLowerCase();return""===v||("null"===v||"undefined"===v)}function getElementByDataPropName(propertyName){return getChildByDataPropName(propertyName,document)}function getChildByDataPropName(propertyName,relativeNode=document){return isString(propertyName)?relativeNode.querySelector(`[data-
1property-name="${propertyName.trim()}"]`):null}function getParentByDataPropName(propertyName,relativeNode=document){return isString(propertyName)?relativeNode.closest(`[data-property-name="${propertyName.trim()}"]`):null}function getSessionStorageOrDefault(key,defaultValue){const stored=sessionStorage.getItem(key);return stored?JSON.parse(stored):""!==defaultValue?defaultValue:null}function getValueByKey(key,object){for(var objectData in object){if(key!==objectData)continue;const pValue=object[key];return isEmptyStr(pValue)||isNil(pValue)?"":pValue}return""}function equalsIgnoreCase(value1,value2){return!!isString(value1)&&(!!isString(value2)&&value1.trim().toLowerCase()===value2.trim().toLowerCase())}function addQueryParamsOnURL(pageUrl,queryParamsObj){let url=new URL(pageUrl);for(pKey in queryParamsObj)url.searchParams.set(pKey,queryParamsObj[pKey]);return url.toString()}function scrollStop(callback){if(!callback||"function"!=typeof callback)return;let isScrolling;window.addEventListener("scroll",(function(event){window.clearTimeout(isScrolling),isScrolling=setTimeout(callback,50)}),!1)}function removeHubspotChat(){document.querySelector("#hubspot-messages-iframe-container")?document.querySelector("#hubspot-messages-iframe-container").remove():setTimeout(removeHubspotChat,5e3)}function debounce(func,delay){let debounceTimer;return function(...args){debounceTimer&&clearTimeout(debounceTimer),debounceTimer=setTimeout((()=>{debounceTimer=null,func.apply(this,args)}),delay)}}function nowIsBetween(startDate,endDate){const now=Date.now();return now>=startDate&&now<endDate}function scrollToTop(){window.scrollTo({top:0,behavior:"smooth"})}"undefined"!=typeof window&&"25756616.hs-sites-eu1.com"===window.location.hostname&&(window.onload=function(){removeHubspotChat()}); 2//# sourceURL=https://cdn1.hubspotusercontent-eu1.net/hub/25174313/hub_generated/template_assets/57960405231/1707878132353/Website_2022/Js/Utils.js
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.