Skip to Content

JavaScript File

URL: https://www-powermapper-com.azureedge.net/js/store-min-20241107.js
HTTP Status: 200 OK
MIME Type: application/x-javascript
Last Modified: Wed, 06 Nov 2024 11:27:49 GMT
Download Time: Less than a second
Cookies: None
Size: 6 KB
HTTP Headers:  16 headers
Links In:  10 pages
OK Issues: No issues found

1$(document).ready(function(){var e=getQueryVariable("ContractId"),t=getQueryVariable("Quantity"),n=getQueryVariable("SerialNumber");e&&($("input[name='radioProduct']").val(["usecontract"]),$("#selContractId").val(e)),n&&($("input[name='radioProduct']").val(["useserial"]),$("#textSerial").val(n)),t&&$("#textQuantity").val(t),$.ajax({url:"https://order.powermapper.com/order/defaultcurrency"}

2).done(function(e){$("#selCurrency").val(e),changeCurrency(e)}

3)}

4),$("#selProductCode").change(function(){changeSelectedProduct()}

5),$("#textSerial").change(function(){changeSerialBox()}

6),$("#textSerial").keyup(function(){changeSerialBox()}

7),$("#selCurrency").change(function(){var e=$("#selCurrency").val();changeCurrency(e)}

8),$("form.renew").submit(function(){try{var e,n,s,t=$("#textQuantity").val();$("#radioUseSerial").is(":checked")?(n=$("#textSerial").val(),e=renewSerialUrl(n,t)):(s=$("#selProductCode").val(),e=renewContractUrl(s,t)),document.location.href=e}

9catch{alert("Please use a valid serial number or select a product")}

10return!1}

11),$("form.upgrade").submit(function(){try{var e,n,s,t=$("#textQuantity").val();$("#radioUseSerial").is(":checked")?(n=$("#textSerial").val(),e=upgradeSerialUrl(n,t)):(s=$("#selProductCode").val(),e=upgradeContractUrl(s,t)),document.location.href=e}

12catch{alert("Please use a valid serial number or select a product")}

13return!1}

14),$("form.confirm #ok").click(function(){if(document.location.search.indexOf("?https://checkout.bluesnap.com/")==0){var e=document.location.search.substr(1);document.location.href=e}

15return!1}

16),$("form.confirm #cancel").click(function(){return document.location.href="/buy/all/",!1}

17);function changeSerialBox(){var t=$("#textSerial").val(),n=$("form.upgrade").length>0,e=getContractDetails(t,n);e.productCode&&($("#selProductCode").val(e.productCode),$("#textQuantity").val(e.quantity)),$("input[name='radioProduct']").val(["useserial"])}

18function changeSelectedContract(){$("input[name='radioProduct']").val(["usecontract"])}

19function changeSelectedProduct(){$("input[name='radioProduct']").val(["usecode"])}

20function changeCurrency(e){switch(e){case"eur":$(".eur").css("display","inline"),$(".gbp").css("display","none"),$(".usd").css("display","none");break;case"gbp":$(".eur").css("display","none"),$(".gbp").css("display","inline"),$(".usd").css("display","none");break;case"usd":default:$(".eur").css("display","none"),$(".gbp").css("display","none"),$(".usd").css("display","inline");break}

21}

22function bluesnapContractUrl(e,t){if(e==0)throw"Please select a product";return"https://checkout.bluesnap.com/buynow/checkout?sku"+e+"="+t}

23function renewContractUrl(e,t){var n=products[e].renewalId;return bluesnapContractUrl(n,t)}

24function renewSerialUrl(e){var t=getContractDetails(e,!1);return bluesnapContractUrl(t.contractId,t.quantity)}

25function upgradeContractUrl(e,t){var n=products[e].upgradeId;return bluesnapContractUrl(n,t)}

26function upgradeSerialUrl(e){var t=getContractDetails(e,!0);return bluesnapContractUrl(t.contractId,t.quantity)}

27var products={Unknown:{code:"",renewalId:0,upgradeId:0}

28,SortSiteStd_Fixed:{code:"SortSiteStd_Fixed",renewalId:2811956,upgradeId:1727410}

29,SortSitePro_Fixed:{code:"SortSitePro_Fixed",renewalId:2254546,upgradeId:1727408}

30,SortSitePro_Floating:{code:"SortSitePro_Floating",renewalId:3002990,upgradeId:3275412}

31,SortSiteDev_Fixed:{code:"SortSiteDev_Fixed",renewalId:3272820,upgradeId:3272816}

32,SortSiteDev_Floating:{code:"SortSiteDev_Floating",renewalId:3320304,upgradeId:3479130}

33,MapperStd_Fixed:{code:"MapperStd_Fixed",renewalId:2967232,upgradeId:1690429}

34,MapperPro_Fixed:{code:"MapperPro_Fixed",renewalId:1850602,upgradeId:1772266}

35,MapperPro_Floating:{code:"MapperPro_Floating",renewalId:3002986,upgradeId:3275410}

36,Suite_Fixed:{code:"Suite_Fixed",renewalId:1902226,upgradeId:2967226}

37,Suite_Floating:{code:"Suite_Floating",renewalId:3002980,upgradeId:3275408}

38}

39;function getContractDetails(e,t){for(var s={contractId:0,productCode:"",quantity:0}

40,i=e.split(/(\s+)/),n=products.Unknown,o=0;o<i.length;++o)switch(i[o]=i[o].substr(0,2),i[o]){case"TF":n=getProduct(n.code,products.SortSiteDev_Fixed.code),s.quantity=5;break;case"TE":n=getProduct(n.code,products.SortSiteDev_Floating.code),s.quantity=5;break;case"TD":n=getProduct(n.code,products.SortSiteDev_Fixed.code),s.quantity=s.quantity+1;break;case"QF":n=getProduct(n.code,products.SortSitePro_Fixed.code),s.quantity=5;break;case"QE":n=getProduct(n.code,products.SortSitePro_Floating.code),s.quantity=5;break;case"QD":n=getProduct(n.code,products.SortSitePro_Fixed.code),s.quantity=s.quantity+1;break;case"RD":n=getProduct(n.code,products.SortSiteStd_Fixed.code),s.quantity=s.quantity+1;break;case"NF":n=getProduct(n.code,products.MapperPro_Fixed.code),s.quantity=5;break;case"NE":n=getProduct(n.code,products.MapperPro_Floating.code),s.quantity=5;break;case"ND":n=getProduct(n.code,products.MapperPro_Fixed.code),s.quantity=s.quantity+1;break;case"OD":n=getProduct(n.code,products.MapperStd_Fixed.code),s.quantity=s.quantity+1;break}

...

</html>