checkComponentConditions(data, flags, row) {
    data = data || this.rootValue;
    flags = flags || {};
    row = row || this.data;

    if (!this.builderMode & !this.previewMode && this.fieldLogic(data, row)) {
      this.redraw();
    }

    // Check visibility
    const visible = (this.hasCondition() ? !this.conditionallyHidden() : !this.component.hidden);

    if (this.visible !== visible) {
      this.visible = visible;
    }

    this.clearComponentOnHide();
    return visible;
  }
Check for conditionals and hide/show the element based on those conditions.
@param {any} data - The data to check against.
@param {any} flags - The flags passed to checkData function.
@param {any} row - The row data to check against.
@returns {boolean} - TRUE if the component is visible.