{ "version": 3, "sources": ["../../Assets/scripts/site.ts"], "sourcesContent": ["\uFEFFconst pricingDiscountElement: HTMLInputElement | null = document.getElementById('pricing-discount') as HTMLInputElement;\r\nconst toggleText: HTMLElement | null = document.getElementById('toggleText');\r\nconst pricingCardElements: HTMLCollectionOf | null = document.getElementsByClassName('pricing--card');\r\n\r\nif (pricingDiscountElement && toggleText && pricingCardElements) {\r\n pricingDiscountElement.addEventListener('change', function () {\r\n toggleText.textContent = this.checked ? 'Annual billing' : 'Monthly billing';\r\n for (let i = 0; i < pricingCardElements.length; i++) {\r\n if (pricingCardElements[i] instanceof HTMLElement) {\r\n pricingCardElements[i].classList.toggle('discounted');\r\n }\r\n }\r\n });\r\n}\r\n\r\n// When the user scrolls down 360px from the top of the document, show the button\r\nwindow.onscroll = function () {\r\n const myButton: HTMLElement | null = document.getElementById(\"btn-scroll-to-top\");\r\n if (!myButton) {\r\n return;\r\n }\r\n\r\n const showButtonBelowScollPx: number = 360;\r\n\r\n if (document.body.scrollTop > showButtonBelowScollPx || document.documentElement.scrollTop > showButtonBelowScollPx) {\r\n myButton.style.opacity = \"100\";\r\n return;\r\n }\r\n\r\n myButton.style.opacity = \"0\";\r\n};\r\n\r\n// When the user clicks on the button, scroll to the top of the document\r\nwindow['scrollToTop'] = () => {\r\n window.scrollTo({\r\n top: 0,\r\n behavior: 'smooth'\r\n });\r\n}\r\n"], "mappings": ";;AAAC,MAAM,yBAAkD,SAAS,eAAe,kBAAkB;AACnG,MAAM,aAAiC,SAAS,eAAe,YAAY;AAC3E,MAAM,sBAAwD,SAAS,uBAAuB,eAAe;AAE7G,MAAI,0BAA0B,cAAc,qBAAqB;AAC7D,2BAAuB,iBAAiB,UAAU,WAAY;AAC1D,iBAAW,cAAc,KAAK,UAAU,mBAAmB;AAC3D,eAAS,IAAI,GAAG,IAAI,oBAAoB,QAAQ,KAAK;AACjD,YAAI,oBAAoB,cAAc,aAAa;AAC/C,8BAAoB,GAAG,UAAU,OAAO,YAAY;AAAA,QACxD;AAAA,MACJ;AAAA,IACJ,CAAC;AAAA,EACL;AAGA,SAAO,WAAW,WAAY;AAC1B,UAAM,WAA+B,SAAS,eAAe,mBAAmB;AAChF,QAAI,CAAC,UAAU;AACX;AAAA,IACJ;AAEA,UAAM,yBAAiC;AAEvC,QAAI,SAAS,KAAK,YAAY,0BAA0B,SAAS,gBAAgB,YAAY,wBAAwB;AACjH,eAAS,MAAM,UAAU;AACzB;AAAA,IACJ;AAEA,aAAS,MAAM,UAAU;AAAA,EAC7B;AAGA,SAAO,iBAAiB,MAAM;AAC1B,WAAO,SAAS;AAAA,MACZ,KAAK;AAAA,MACL,UAAU;AAAA,IACd,CAAC;AAAA,EACL;", "names": [] }