facetwp make result in layout builder clickable

<?php

// Add the following to your (child) theme's functions.php

add_action( 'wp_footer', function() {
?>
<script>
(function($) {
    $().on('click', '.fwpl-result', function() {
        let url = $(this).find('a').first().attr('href');
        window.location.href = url;
    });
})(fUtil);
</script>
<?php
}, 100 );