Variation Swatches for Woocomerce JS re-init

<?php

add_action( 'facetwp_scripts', function() {
    ?>
      <script>
        document.addEventListener('facetwp-loaded', function() {
            jQuery(document).trigger('woo_variation_swatches_pro_init');
        });
      </script>
    <?php
  }, 100 );