package com.optix.android.di;

import com.optix.android.data.local.AppDatabase;
import com.optix.android.data.local.WorkflowDao;
import dagger.internal.DaggerGenerated;
import dagger.internal.Factory;
import dagger.internal.Preconditions;
import dagger.internal.QualifierMetadata;
import dagger.internal.ScopeMetadata;
import javax.annotation.processing.Generated;
import javax.inject.Provider;

@ScopeMetadata
@QualifierMetadata
@DaggerGenerated
@Generated(
    value = "dagger.internal.codegen.ComponentProcessor",
    comments = "https://dagger.dev"
)
@SuppressWarnings({
    "unchecked",
    "rawtypes",
    "KotlinInternal",
    "KotlinInternalInJava",
    "cast",
    "deprecation"
})
public final class DatabaseModule_ProvideWorkflowDaoFactory implements Factory<WorkflowDao> {
  private final Provider<AppDatabase> dbProvider;

  public DatabaseModule_ProvideWorkflowDaoFactory(Provider<AppDatabase> dbProvider) {
    this.dbProvider = dbProvider;
  }

  @Override
  public WorkflowDao get() {
    return provideWorkflowDao(dbProvider.get());
  }

  public static DatabaseModule_ProvideWorkflowDaoFactory create(Provider<AppDatabase> dbProvider) {
    return new DatabaseModule_ProvideWorkflowDaoFactory(dbProvider);
  }

  public static WorkflowDao provideWorkflowDao(AppDatabase db) {
    return Preconditions.checkNotNullFromProvides(DatabaseModule.INSTANCE.provideWorkflowDao(db));
  }
}
