/**
  * Render the admin form for widget customization.
  *
  * @param array $instance The widget instance parameters.
  * @return void
  * @author Paul Hughes
  * @since 3.0.2
  */
 public function form($instance)
 {
     if (muut_is_webhooks_active()) {
         include muut()->getPluginPath() . 'views/widgets/admin-widget-latest-comments.php';
     } else {
         include muut()->getPluginPath() . 'views/widgets/admin-error-widget-requires-webhooks.php';
     }
 }
 /**
  * Enqueues the JS required for this widget.
  *
  * @return void
  * @author Paul Hughes
  * @since 3.0.2
  */
 public function enqueueWidgetScripts()
 {
     if (muut_is_webhooks_active()) {
         wp_enqueue_script('muut-widget-trending-posts', muut()->getPluginUrl() . 'resources/muut-widget-trending-posts.js', array('jquery', 'muut-widgets-initialize'), Muut::VERSION, true);
     }
 }