Set a class for the parent choice if the child options are visible in a hierarchical Checkboxes facet

// This sets the class "checked", which makes the parent choice look selected, with a checked checkbox icon.
// If you just want to make the parent choice bold for example, use a custom class, e.g. 'selected', and add CSS to make it bold:
// .facetwp-checkbox.selected { font-weight: bold; }

add_action( 'facetwp_scripts', function() {
    (function($) {
      document.addEventListener('facetwp-loaded', function() {
}, 100 );