package com.sistemasolton.itranvias.home.data.repository;

import com.google.android.gms.actions.SearchIntents;
import com.sistemasolton.itranvias.home.data.remote.AutocompleteResponse;
import com.sistemasolton.itranvias.home.data.remote.GooglePlacesApi;
import com.sistemasolton.itranvias.home.data.remote.PlaceDetailsResponse;
import com.sistemasolton.itranvias.home.domain.repository.GooglePlacesRepository;
import kotlin.Metadata;
import kotlin.coroutines.Continuation;
import kotlin.jvm.internal.Intrinsics;

/* JADX INFO: compiled from: GooglePlacesRepositoryImpl.kt */
/* JADX INFO: loaded from: classes2.dex */
@Metadata(d1 = {"\u0000(\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0007\u0018\u00002\u00020\u0001B\u000f\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0004\b\u0004\u0010\u0005J\u0016\u0010\u0006\u001a\u00020\u00072\u0006\u0010\b\u001a\u00020\tH\u0096@¢\u0006\u0002\u0010\nJ\u0016\u0010\u000b\u001a\u00020\f2\u0006\u0010\r\u001a\u00020\tH\u0096@¢\u0006\u0002\u0010\nR\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u000e"}, d2 = {"Lcom/sistemasolton/itranvias/home/data/repository/GooglePlacesRepositoryImpl;", "Lcom/sistemasolton/itranvias/home/domain/repository/GooglePlacesRepository;", "api", "Lcom/sistemasolton/itranvias/home/data/remote/GooglePlacesApi;", "<init>", "(Lcom/sistemasolton/itranvias/home/data/remote/GooglePlacesApi;)V", "searchPlaces", "Lcom/sistemasolton/itranvias/home/data/remote/AutocompleteResponse;", SearchIntents.EXTRA_QUERY, "", "(Ljava/lang/String;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "getPlaceDetails", "Lcom/sistemasolton/itranvias/home/data/remote/PlaceDetailsResponse;", "placeId", "composeApp_release"}, k = 1, mv = {2, 1, 0}, xi = 48)
public final class GooglePlacesRepositoryImpl implements GooglePlacesRepository {
    public static final int $stable = 8;
    private final GooglePlacesApi api;

    public GooglePlacesRepositoryImpl(GooglePlacesApi api) {
        Intrinsics.checkNotNullParameter(api, "api");
        this.api = api;
    }

    @Override // com.sistemasolton.itranvias.home.domain.repository.GooglePlacesRepository
    public Object searchPlaces(String str, Continuation<? super AutocompleteResponse> continuation) {
        return this.api.autocomplete(str, continuation);
    }

    @Override // com.sistemasolton.itranvias.home.domain.repository.GooglePlacesRepository
    public Object getPlaceDetails(String str, Continuation<? super PlaceDetailsResponse> continuation) {
        return this.api.placeDetails(str, continuation);
    }
}