// Generated by dagger.internal.codegen.ComponentProcessor (https://google.github.io/dagger).
package com.sample.sample.modules;

import com.sample.sample.repository.SampleAppRepository;
import com.sample.sample.viewmodel.factory.ViewModelFactory;
import dagger.internal.Factory;
import dagger.internal.Preconditions;
import javax.inject.Provider;

public final class SampleAppModule_ProvidesTmiViewModelFactoryFactory
    implements Factory<ViewModelFactory> {
  private final SampleAppModule module;

  private final Provider<SampleAppRepository> sampleAppRepositoryProvider;

  public SampleAppModule_ProvidesTmiViewModelFactoryFactory(
      SampleAppModule module, Provider<SampleAppRepository> sampleAppRepositoryProvider) {
    assert module != null;
    this.module = module;
    assert sampleAppRepositoryProvider != null;
    this.sampleAppRepositoryProvider = sampleAppRepositoryProvider;
  }

  @Override
  public ViewModelFactory get() {
    return Preconditions.checkNotNull(
        module.providesTmiViewModelFactory(sampleAppRepositoryProvider.get()),
        "Cannot return null from a non-@Nullable @Provides method");
  }

  public static Factory<ViewModelFactory> create(
      SampleAppModule module, Provider<SampleAppRepository> sampleAppRepositoryProvider) {
    return new SampleAppModule_ProvidesTmiViewModelFactoryFactory(
        module, sampleAppRepositoryProvider);
  }

  /** Proxies {@link SampleAppModule#providesTmiViewModelFactory(SampleAppRepository)}. */
  public static ViewModelFactory proxyProvidesTmiViewModelFactory(
      SampleAppModule instance, SampleAppRepository sampleAppRepository) {
    return instance.providesTmiViewModelFactory(sampleAppRepository);
  }
}
