package com.google.maps.android.compose;

import androidx.compose.runtime.Composer;
import androidx.compose.runtime.ComposerKt;
import androidx.compose.runtime.CompositionLocalKt;
import androidx.compose.runtime.ProvidableCompositionLocal;
import androidx.compose.runtime.saveable.RememberSaveableKt;
import androidx.compose.runtime.saveable.Saver;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;

/* JADX INFO: compiled from: CameraPositionState.kt */
/* JADX INFO: loaded from: classes2.dex */
@Metadata(d1 = {"\u0000&\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\u001a8\u0010\u0000\u001a\u00020\u00012\n\b\u0002\u0010\u0002\u001a\u0004\u0018\u00010\u00032\u0019\b\u0006\u0010\u0004\u001a\u0013\u0012\u0004\u0012\u00020\u0001\u0012\u0004\u0012\u00020\u00060\u0005¢\u0006\u0002\b\u0007H\u0087\bø\u0001\u0000¢\u0006\u0002\u0010\b\"\u001a\u0010\t\u001a\b\u0012\u0004\u0012\u00020\u00010\nX\u0080\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\f\"\u0011\u0010\r\u001a\u00020\u00018G¢\u0006\u0006\u001a\u0004\b\u000e\u0010\u000f\u0082\u0002\u0007\n\u0005\b\u009920\u0001¨\u0006\u0010"}, d2 = {"rememberCameraPositionState", "Lcom/google/maps/android/compose/CameraPositionState;", "key", "", "init", "Lkotlin/Function1;", "", "Lkotlin/ExtensionFunctionType;", "(Ljava/lang/String;Lkotlin/jvm/functions/Function1;Landroidx/compose/runtime/Composer;II)Lcom/google/maps/android/compose/CameraPositionState;", "LocalCameraPositionState", "Landroidx/compose/runtime/ProvidableCompositionLocal;", "getLocalCameraPositionState", "()Landroidx/compose/runtime/ProvidableCompositionLocal;", "currentCameraPositionState", "getCurrentCameraPositionState", "(Landroidx/compose/runtime/Composer;I)Lcom/google/maps/android/compose/CameraPositionState;", "maps-compose_release"}, k = 2, mv = {2, 0, 0}, xi = 48)
public final class CameraPositionStateKt {
    private static final ProvidableCompositionLocal<CameraPositionState> LocalCameraPositionState = CompositionLocalKt.staticCompositionLocalOf(new Function0() { // from class: com.google.maps.android.compose.CameraPositionStateKt$$ExternalSyntheticLambda0
        @Override // kotlin.jvm.functions.Function0
        public final Object invoke() {
            return CameraPositionStateKt.LocalCameraPositionState$lambda$0();
        }
    });

    /* JADX INFO: renamed from: com.google.maps.android.compose.CameraPositionStateKt$rememberCameraPositionState$1, reason: invalid class name */
    /* JADX INFO: compiled from: CameraPositionState.kt */
    @Metadata(k = 3, mv = {2, 0, 0}, xi = 176)
    public static final class AnonymousClass1 implements Function1<CameraPositionState, Unit> {
        public static final AnonymousClass1 INSTANCE = new AnonymousClass1();

        /* JADX INFO: renamed from: invoke, reason: avoid collision after fix types in other method */
        public final void invoke2(CameraPositionState cameraPositionState) {
            Intrinsics.checkNotNullParameter(cameraPositionState, "<this>");
        }

        @Override // kotlin.jvm.functions.Function1
        public /* bridge */ /* synthetic */ Unit invoke(CameraPositionState cameraPositionState) {
            invoke2(cameraPositionState);
            return Unit.INSTANCE;
        }
    }

    public static final CameraPositionState rememberCameraPositionState(String str, Function1<? super CameraPositionState, Unit> function1, Composer composer, int i, int i2) {
        composer.startReplaceableGroup(-1911106014);
        if ((i2 & 1) != 0) {
            str = null;
        }
        String str2 = str;
        if ((i2 & 2) != 0) {
            function1 = AnonymousClass1.INSTANCE;
        }
        CameraPositionState cameraPositionState = (CameraPositionState) RememberSaveableKt.m3946rememberSaveable(new Object[0], (Saver) CameraPositionState.INSTANCE.getSaver(), str2, (Function0) new AnonymousClass2(function1), composer, ((i << 6) & 896) | 72, 0);
        composer.endReplaceableGroup();
        return cameraPositionState;
    }

    /* JADX INFO: renamed from: com.google.maps.android.compose.CameraPositionStateKt$rememberCameraPositionState$2, reason: invalid class name */
    /* JADX INFO: compiled from: CameraPositionState.kt */
    @Metadata(k = 3, mv = {2, 0, 0}, xi = 176)
    public static final class AnonymousClass2 implements Function0<CameraPositionState> {
        final /* synthetic */ Function1<CameraPositionState, Unit> $init;

        /* JADX WARN: Multi-variable type inference failed */
        public AnonymousClass2(Function1<? super CameraPositionState, Unit> function1) {
            this.$init = function1;
        }

        /* JADX WARN: Can't rename method to resolve collision */
        @Override // kotlin.jvm.functions.Function0
        public final CameraPositionState invoke() {
            CameraPositionState cameraPositionState = new CameraPositionState(null, 1, null);
            this.$init.invoke(cameraPositionState);
            return cameraPositionState;
        }
    }

    /* JADX INFO: Access modifiers changed from: private */
    public static final CameraPositionState LocalCameraPositionState$lambda$0() {
        return new CameraPositionState(null, 1, null);
    }

    public static final ProvidableCompositionLocal<CameraPositionState> getLocalCameraPositionState() {
        return LocalCameraPositionState;
    }

    public static final CameraPositionState getCurrentCameraPositionState(Composer composer, int i) {
        ProvidableCompositionLocal<CameraPositionState> providableCompositionLocal = LocalCameraPositionState;
        ComposerKt.sourceInformationMarkerStart(composer, 2023513938, "CC:CompositionLocal.kt#9igjgp");
        Object objConsume = composer.consume(providableCompositionLocal);
        ComposerKt.sourceInformationMarkerEnd(composer);
        return (CameraPositionState) objConsume;
    }
}