PageSourceSearch

https://www.kasaustralia.com/cdn/shop/t/1183/assets/kas-account.js?v=109375180696274197271769858923

js kasaustralia.com collected 2026-10-10 00:38:46 UTC 2,544 bytes, 2 lines download raw bytes

1document.addEventListener("DOMContentLoaded",function(){if(window.customer){let updatePointsUI2=function(pointBalance){const emails=document.querySelectorAll(".c-account-dropdown__loyalty-email"),points=document.querySelectorAll(".c-account-dropdown__loyalty__points"),greetings=document.querySelectorAll(".c-account-dropdown__greeting"),loyaltyRembembered=document.querySelectorAll(".c-account-dropdown__loyalty-remember"),pointAwards=document.querySelectorAll(".c-account-dropdown__loyalty__text");if(points.forEach(function(element){pointBalance==null?element.textContent="-":element.textContent=pointBalance+" points"}),window.KASRewards&&window.KASRewards.updatePoints)window.KASRewards.updatePoints(pointBalance);else{const drawerPoints=document.querySelector("[data-kas-rewards-points]");drawerPoints&&(pointBalance==null?drawerPoints.textContent="-":drawerPoints.textContent=pointBalance),document.querySelectorAll(".swell-point-balance").forEach(function(element){pointBalance==null?element.textContent="-":element.textContent=pointBalance+" points"})}pointAwards.forEach(function(element){if(pointBalance==null)element.querySelector("p").textContent="Points unavailable";else{const pointReachDiscount=100-pointBalance%100,reachDiscount=Math.ceil(pointBalance/100);element.querySelector("p").textContent=`You are ${pointReachDiscount} points away from a $${reachDiscount*10} discount`}}),window.customerRemembered&&(emails.forEach(function(element){element.textContent=window.customer.email}),greetings.forEach(function(element){element.textContent=`Hi, ${window.customer.firstName} ${window.customer.lastName}`}),loyaltyRembembered.forEach(function(element){element.classList.remove("hidden")}))};var updatePointsUI=updatePointsUI2;const apiUrl=`https://data.kasaustralia.com.au/kas/points.php?email=${encodeURIComponent(window.customer.email)}&customer_id=${encodeURIComponent(window.customer.id)}`;fetch(apiUrl,{method:"GET",headers:{Accept:"application/json"}}).then(function(response){if(!response.ok)throw new Error(`HTTP error! status: ${response.status}`);return response.json()}).then(function(data){const pointBalance=data&&data.pointBalance!==void 0?data.pointBalance:null;updatePointsUI2(pointBalance)}).catch(function(error){console.error("API call failed:",error),updatePointsUI2(null)})}else document.querySelectorAll(".c-account-dropdown__loyalty.hidden").forEach(function(element){element.classList.remove("hidden")})});
2//# sourceMappingURL=/cdn/shop/t/1183/assets/kas-account.js.map?v=109375180696274197271769858923

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.