{
isCompareContainerOpen= false;
clearAllBodyScrollLocks();
}"
@resize.debounce.window="
if (window.innerWidth >= 1024) {
isCompareContainerOpen= false;
clearAllBodyScrollLocks();
}
"
x-init="() => {
$nextTick(() => {
// initial set isComparing if it's present in cookies
let providers_arr = [];
if (getCookie('compare_providers_arr')) {
// providers_arr = JSON.parse(getCookie('compare_providers_arr'));
if (localStorage.getItem('compare_providers_arr')) {
providers_arr = JSON.parse(localStorage.getItem('compare_providers_arr'));
}
}
window.setProvidersForComparison(providers_arr);
})
}"
>
= 1024) {
isMenuOpen = false;
isScrolledMobile= false;
}
clearAllBodyScrollLocks();
"
@scroll.window="() => {
// desktop only scroll up/down thing
if (!isMobile) {
if (window.pageYOffset > $refs.header.getBoundingClientRect().height) {
isScrolledDesktop = true;
const st = window.pageYOffset || document.documentElement.scrollTop;
if (st > lastScrollTop) {
scrollDirection = 'down';
} else if (st < lastScrollTop) {
scrollDirection = 'up';
}
lastScrollTop = st <= 0 ? 0 : st; // For Mobile or negative scrolling
} else {
isScrolledDesktop = false;
scrollDirection = 'down';
}
} else {
// mobile only header on scroll
isScrolledMobile = (window.pageYOffset > $refs.header.getBoundingClientRect().height)
}
}"
>
Asia
Looking for the right payment provider?
Stop searching, and start matching! Our Provider Selector does the heavy lifting for you. Get custom PSP recommendations based on your setup and needs – fast, easy, and free.